summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-10-01 07:17:16 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-10-01 07:17:16 +0200
commit71137cc5832110d91599d68790402cf196762ed3 (patch)
treee7985bbfb6ca50ea738b38a9f852ee51431d48a7 /src
parent8ae550d463720d5d1c0e253af29843ff15de1a54 (diff)
parent1e92964463e564bb3359a7110342182fcfdc67f2 (diff)
Merge branch 'release/debian/0.30.1-1'debian/0.30.1-1
Diffstat (limited to 'src')
-rw-r--r--src/.unitize/_CameraInternals.c120
-rw-r--r--src/.unitize/_ConfigInternals.c106
-rw-r--r--src/.unitize/_CoreInternals.c106
-rw-r--r--src/.unitize/_DataImportsInternals.c106
-rw-r--r--src/.unitize/_DbInternals.c106
-rw-r--r--src/.unitize/_DirectInternals.c176
-rw-r--r--src/.unitize/_Direct_unitize_entry.c51
-rw-r--r--src/.unitize/_EditingToolsInternals.c106
-rw-r--r--src/.unitize/_EventsInternals.c120
-rw-r--r--src/.unitize/_FoldersInternals.c134
-rw-r--r--src/.unitize/_LibraryInternals.c316
-rw-r--r--src/.unitize/_Library_unitize_entry.c51
-rw-r--r--src/.unitize/_PhotosInternals.c106
-rw-r--r--src/.unitize/_PluginsInternals.c120
-rw-r--r--src/.unitize/_PublishingInternals.c120
-rw-r--r--src/.unitize/_SearchesInternals.c106
-rw-r--r--src/.unitize/_SidebarInternals.c106
-rw-r--r--src/.unitize/_SlideshowInternals.c120
-rw-r--r--src/.unitize/_TagsInternals.c120
-rw-r--r--src/.unitize/_ThreadsInternals.c106
-rw-r--r--src/.unitize/_UnitInternals.c92
-rw-r--r--src/.unitize/_UtilInternals.c106
-rw-r--r--src/AppDirs.c2647
-rw-r--r--src/AppDirs.vala34
-rw-r--r--src/AppWindow.c5595
-rw-r--r--src/AppWindow.vala48
-rw-r--r--src/Application.c1379
-rw-r--r--src/Application.vala4
-rw-r--r--src/BatchImport.c17579
-rw-r--r--src/Box.c2821
-rw-r--r--src/CheckerboardLayout.c12162
-rw-r--r--src/CheckerboardLayout.vala120
-rw-r--r--src/CollectionPage.c6738
-rw-r--r--src/CollectionPage.vala4
-rw-r--r--src/ColorTransformation.c12905
-rw-r--r--src/CommandManager.c1373
-rw-r--r--src/Commands.c22414
-rw-r--r--src/Commands.vala218
-rw-r--r--src/Debug.c777
-rw-r--r--src/DesktopIntegration.c3038
-rw-r--r--src/Dialogs.c9032
-rw-r--r--src/Dialogs.vala17
-rw-r--r--src/Dimensions.c4306
-rw-r--r--src/Dimensions.vala8
-rw-r--r--src/DirectoryMonitor.c9421
-rw-r--r--src/Event.c7743
-rw-r--r--src/Exporter.c3064
-rw-r--r--src/International.c144
-rw-r--r--src/International.vala2
-rw-r--r--src/LibraryFiles.c1428
-rw-r--r--src/LibraryMonitor.c8820
-rw-r--r--src/MediaDataRepresentation.c8824
-rw-r--r--src/MediaInterfaces.c1488
-rw-r--r--src/MediaMetadata.c1584
-rw-r--r--src/MediaMonitor.c3463
-rw-r--r--src/MediaPage.c8615
-rw-r--r--src/MediaPage.vala87
-rw-r--r--src/MediaViewTracker.c1004
-rw-r--r--src/MetadataWriter.c5280
-rw-r--r--src/NaturalCollate.c679
-rw-r--r--src/Orientation.c2074
-rw-r--r--src/Page.c17156
-rw-r--r--src/Page.vala35
-rw-r--r--src/Photo.c42442
-rw-r--r--src/Photo.vala22
-rw-r--r--src/PhotoMonitor.c8645
-rw-r--r--src/PhotoPage.c20126
-rw-r--r--src/PhotoPage.vala75
-rw-r--r--src/PixbufCache.c2689
-rw-r--r--src/Printing.c8490
-rw-r--r--src/Properties.c5654
-rw-r--r--src/Properties.vala412
-rw-r--r--src/Resources.c3817
-rw-r--r--src/Resources.vala332
-rw-r--r--src/Screensaver.c487
-rw-r--r--src/SearchFilter.c10171
-rw-r--r--src/SearchFilter.vala62
-rw-r--r--src/SlideshowPage.c3324
-rw-r--r--src/SlideshowPage.vala14
-rw-r--r--src/SortedList.c2613
-rw-r--r--src/Tag.c9694
-rw-r--r--src/Thumbnail.c2656
-rw-r--r--src/Thumbnail.vala16
-rw-r--r--src/ThumbnailCache.c4535
-rw-r--r--src/ThumbnailCache.vala2
-rw-r--r--src/TimedQueue.c2416
-rw-r--r--src/Tombstone.c3711
-rw-r--r--src/Upgrades.c1755
-rw-r--r--src/VideoMetadata.c5651
-rw-r--r--src/VideoMonitor.c2456
-rw-r--r--src/VideoSupport.c11394
-rw-r--r--src/camera/Camera.c41
-rw-r--r--src/camera/CameraBranch.c1283
-rw-r--r--src/camera/CameraTable.c4249
-rw-r--r--src/camera/CameraTable.vala20
-rw-r--r--src/camera/GPhoto.c2627
-rw-r--r--src/camera/ImportPage.c13894
-rw-r--r--src/camera/ImportPage.vala16
-rw-r--r--src/config/Config.c1011
-rw-r--r--src/config/Config.vala93
-rw-r--r--src/config/ConfigurationInterfaces.c14452
-rw-r--r--src/config/ConfigurationInterfaces.vala20
-rw-r--r--src/config/GSettingsEngine.c5835
-rw-r--r--src/config/GSettingsEngine.vala35
-rw-r--r--src/core/Alteration.c2817
-rw-r--r--src/core/ContainerSourceCollection.c2236
-rw-r--r--src/core/DataCollection.c4077
-rw-r--r--src/core/DataObject.c733
-rw-r--r--src/core/DataSet.c1195
-rw-r--r--src/core/DataSource.c5127
-rw-r--r--src/core/DataSourceTypes.c1336
-rw-r--r--src/core/DataView.c745
-rw-r--r--src/core/DataViewTypes.c621
-rw-r--r--src/core/DatabaseSourceCollection.c945
-rw-r--r--src/core/SourceCollection.c1807
-rw-r--r--src/core/SourceHoldingTank.c1736
-rw-r--r--src/core/SourceInterfaces.c290
-rw-r--r--src/core/Tracker.c2135
-rw-r--r--src/core/ViewCollection.c9130
-rw-r--r--src/core/util.c2043
-rw-r--r--src/data_imports/DataImportJob.c1817
-rw-r--r--src/data_imports/DataImportSource.c1327
-rw-r--r--src/data_imports/DataImports.c143
-rw-r--r--src/data_imports/DataImportsPluginHost.c3658
-rw-r--r--src/data_imports/DataImportsUI.c2814
-rw-r--r--src/db/DatabaseTable.c2570
-rw-r--r--src/db/Db.c742
-rw-r--r--src/db/EventTable.c1901
-rw-r--r--src/db/FaceLocationTable.vala202
-rw-r--r--src/db/FaceTable.vala169
-rw-r--r--src/db/PhotoTable.c8816
-rw-r--r--src/db/SavedSearchDBTable.c4648
-rw-r--r--src/db/TagTable.c2341
-rw-r--r--src/db/TombstoneTable.c1356
-rw-r--r--src/db/VersionTable.c597
-rw-r--r--src/db/VideoTable.c3266
-rw-r--r--src/dialogs/AdjustDateTimeDialog.c2300
-rw-r--r--src/dialogs/EntryMultiCompletion.c1073
-rw-r--r--src/dialogs/ExportDialog.c2084
-rw-r--r--src/dialogs/MultiTextEntryDialog.c293
-rw-r--r--src/dialogs/Preferences.c3328
-rw-r--r--src/dialogs/Preferences.vala57
-rw-r--r--src/dialogs/ProgressDialog.c714
-rw-r--r--src/dialogs/SetBackground.c295
-rw-r--r--src/dialogs/SetBackgroundSlideshow.c499
-rw-r--r--src/dialogs/TextEntry.c400
-rw-r--r--src/dialogs/WelcomeDialog.c1432
-rw-r--r--src/direct/Direct.c91
-rw-r--r--src/direct/DirectPhoto.c2997
-rw-r--r--src/direct/DirectPhotoPage.c4047
-rw-r--r--src/direct/DirectView.c902
-rw-r--r--src/direct/DirectWindow.c967
-rw-r--r--src/editing_tools/EditingTools.c19536
-rw-r--r--src/editing_tools/EditingTools.vala20
-rw-r--r--src/editing_tools/RGBHistogramManipulator.c1484
-rw-r--r--src/editing_tools/StraightenTool.c3568
-rw-r--r--src/editing_tools/StraightenTool.vala1
-rw-r--r--src/events/EventDirectoryItem.c1897
-rw-r--r--src/events/EventDirectoryItem.vala20
-rw-r--r--src/events/EventPage.c2003
-rw-r--r--src/events/Events.c41
-rw-r--r--src/events/EventsBranch.c4533
-rw-r--r--src/events/EventsDirectoryPage.c3249
-rw-r--r--src/events/EventsDirectoryPage.vala2
-rw-r--r--src/faces/Face.vala681
-rw-r--r--src/faces/FaceLocation.vala209
-rw-r--r--src/faces/FacePage.vala127
-rw-r--r--src/faces/FaceShape.vala783
-rw-r--r--src/faces/Faces.vala37
-rw-r--r--src/faces/FacesBranch.vala146
-rw-r--r--src/faces/FacesTool.vala977
-rw-r--r--src/folders/Folders.c74
-rw-r--r--src/folders/FoldersBranch.c2230
-rw-r--r--src/folders/FoldersPage.c1108
-rw-r--r--src/graphics-processor.c1180
-rw-r--r--src/import-roll/ImportRollBranch.vala45
-rw-r--r--src/import-roll/ImportRollEntry.vala34
-rw-r--r--src/library/FlaggedPage.c1328
-rw-r--r--src/library/FlaggedSidebarEntry.c906
-rw-r--r--src/library/FlaggedSidebarEntry.vala2
-rw-r--r--src/library/ImportQueuePage.c1573
-rw-r--r--src/library/ImportQueuePage.vala2
-rw-r--r--src/library/ImportQueueSidebarEntry.c547
-rw-r--r--src/library/LastImportPage.c1372
-rw-r--r--src/library/LastImportPage.vala14
-rw-r--r--src/library/LastImportSidebarEntry.c644
-rw-r--r--src/library/Library.c51
-rw-r--r--src/library/LibraryBranch.c2363
-rw-r--r--src/library/LibraryWindow.c10044
-rw-r--r--src/library/LibraryWindow.vala91
-rw-r--r--src/library/OfflinePage.c1816
-rw-r--r--src/library/OfflineSidebarEntry.c739
-rw-r--r--src/library/TrashPage.c1722
-rw-r--r--src/library/TrashSidebarEntry.c870
-rw-r--r--src/libshotwell.deps20
-rw-r--r--src/main.c3187
-rw-r--r--src/main.vala23
-rw-r--r--src/meson.build19
-rw-r--r--src/photos/BmpSupport.c2080
-rw-r--r--src/photos/GRaw.c2607
-rw-r--r--src/photos/GdkSupport.c1357
-rw-r--r--src/photos/GifSupport.vala173
-rw-r--r--src/photos/JfifSupport.c2250
-rw-r--r--src/photos/PhotoFileAdapter.c1323
-rw-r--r--src/photos/PhotoFileFormat.c3539
-rw-r--r--src/photos/PhotoFileFormat.vala23
-rw-r--r--src/photos/PhotoFileSniffer.c1534
-rw-r--r--src/photos/PhotoMetadata.c10262
-rw-r--r--src/photos/Photos.c96
-rw-r--r--src/photos/PngSupport.c2096
-rw-r--r--src/photos/RawSupport.c3325
-rw-r--r--src/photos/TiffSupport.c1862
-rw-r--r--src/plugins/DataImportsInterfaces.c2034
-rw-r--r--src/plugins/ManifestWidget.c2049
-rw-r--r--src/plugins/Plugins.c4582
-rw-r--r--src/plugins/Plugins.vala4
-rw-r--r--src/plugins/PublishingInterfaces.c2242
-rw-r--r--src/plugins/SpitInterfaces.c1548
-rw-r--r--src/plugins/StandardHostInterface.c737
-rw-r--r--src/plugins/TransitionsInterfaces.c2249
-rw-r--r--src/publishing/APIGlue.c1504
-rw-r--r--src/publishing/Publishing.c246
-rw-r--r--src/publishing/PublishingPluginHost.c1582
-rw-r--r--src/publishing/PublishingUI.c3669
-rw-r--r--src/searches/SavedSearchDialog.c6239
-rw-r--r--src/searches/SavedSearchDialog.vala3
-rw-r--r--src/searches/SavedSearchPage.c1500
-rw-r--r--src/searches/SearchBoolean.c6867
-rw-r--r--src/searches/SearchBoolean.vala36
-rw-r--r--src/searches/Searches.c56
-rw-r--r--src/searches/SearchesBranch.c1609
-rw-r--r--src/searches/SearchesBranch.vala2
-rw-r--r--src/shotwell-graphics-processor.h767
-rw-r--r--src/shotwell-graphics-processor.vapi225
-rw-r--r--src/sidebar/Branch.c2741
-rw-r--r--src/sidebar/Entry.c750
-rw-r--r--src/sidebar/Sidebar.c33
-rw-r--r--src/sidebar/Tree.c7875
-rw-r--r--src/sidebar/Tree.vala14
-rw-r--r--src/sidebar/common.c1307
-rw-r--r--src/slideshow/Slideshow.c475
-rw-r--r--src/slideshow/TransitionEffects.c2886
-rw-r--r--src/tags/HierarchicalTagIndex.c1086
-rw-r--r--src/tags/HierarchicalTagUtilities.c2251
-rw-r--r--src/tags/TagPage.c1585
-rw-r--r--src/tags/Tags.c41
-rw-r--r--src/tags/TagsBranch.c3233
-rw-r--r--src/threads/BackgroundJob.c2086
-rw-r--r--src/threads/Semaphore.c1267
-rw-r--r--src/threads/Threads.c33
-rw-r--r--src/threads/Workers.c1159
-rw-r--r--src/unit/Unit.c33
-rw-r--r--src/unit/rc/Unit.m4 (renamed from src/core/Core.c)35
-rw-r--r--src/unit/rc/UnitInternals.m432
-rw-r--r--src/unit/rc/template.vala (renamed from src/UnityProgressBar.c)12
-rw-r--r--src/unit/rc/unitize_entry.m419
-rw-r--r--src/util/KeyValueMap.c1143
-rw-r--r--src/util/Util.c36
-rw-r--r--src/util/file.c1733
-rw-r--r--src/util/image.c2633
-rw-r--r--src/util/image.vala121
-rw-r--r--src/util/misc.c3020
-rw-r--r--src/util/string.c2033
-rw-r--r--src/util/system.c189
-rw-r--r--src/util/system.vala30
-rw-r--r--src/util/ui.c234
-rw-r--r--src/util/ui.vala17
267 files changed, 4880 insertions, 657643 deletions
diff --git a/src/.unitize/_CameraInternals.c b/src/.unitize/_CameraInternals.c
deleted file mode 100644
index e3fa04d..0000000
--- a/src/.unitize/_CameraInternals.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* _CameraInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _CameraInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint camera__unit_init_count;
-gint camera__unit_init_count = 0;
-
-void camera_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void sidebar_init_entry (GError** error);
-void camera_init (GError** error);
-void camera_terminate_entry (void);
-void camera_terminate (void);
-void unit_terminate_entry (void);
-void sidebar_terminate_entry (void);
-
-
-void
-camera_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- _tmp0_ = camera__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- camera__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- return;
-#line 45 "_CameraInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- return;
-#line 55 "_CameraInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- sidebar_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- return;
-#line 65 "_CameraInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- camera_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- return;
-#line 75 "_CameraInternals.c"
- }
-}
-
-
-void
-camera_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- _tmp1_ = camera__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- _tmp0_ = TRUE;
-#line 91 "_CameraInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- _tmp2_ = camera__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- camera__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- _tmp3_ = camera__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 103 "_CameraInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- return;
-#line 109 "_CameraInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- camera_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala"
- sidebar_terminate_entry ();
-#line 117 "_CameraInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_ConfigInternals.c b/src/.unitize/_ConfigInternals.c
deleted file mode 100644
index a9c0493..0000000
--- a/src/.unitize/_ConfigInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _ConfigInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _ConfigInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint config__unit_init_count;
-gint config__unit_init_count = 0;
-
-void config_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void config_init (GError** error);
-void config_terminate_entry (void);
-void config_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-config_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- _tmp0_ = config__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- config__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- return;
-#line 43 "_ConfigInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- return;
-#line 53 "_ConfigInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- config_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- return;
-#line 63 "_ConfigInternals.c"
- }
-}
-
-
-void
-config_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- _tmp1_ = config__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_ConfigInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- _tmp2_ = config__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- config__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- _tmp3_ = config__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_ConfigInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- return;
-#line 97 "_ConfigInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- config_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala"
- unit_terminate_entry ();
-#line 103 "_ConfigInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_CoreInternals.c b/src/.unitize/_CoreInternals.c
deleted file mode 100644
index c53d97d..0000000
--- a/src/.unitize/_CoreInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _CoreInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _CoreInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint core__unit_init_count;
-gint core__unit_init_count = 0;
-
-void core_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void core_init (GError** error);
-void core_terminate_entry (void);
-void core_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-core_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- _tmp0_ = core__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- core__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- return;
-#line 43 "_CoreInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- return;
-#line 53 "_CoreInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- core_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- return;
-#line 63 "_CoreInternals.c"
- }
-}
-
-
-void
-core_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- _tmp1_ = core__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_CoreInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- _tmp2_ = core__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- core__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- _tmp3_ = core__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_CoreInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- return;
-#line 97 "_CoreInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- core_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala"
- unit_terminate_entry ();
-#line 103 "_CoreInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_DataImportsInternals.c b/src/.unitize/_DataImportsInternals.c
deleted file mode 100644
index e99bde1..0000000
--- a/src/.unitize/_DataImportsInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _DataImportsInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _DataImportsInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint data_imports__unit_init_count;
-gint data_imports__unit_init_count = 0;
-
-void data_imports_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void data_imports_init (GError** error);
-void data_imports_terminate_entry (void);
-void data_imports_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-data_imports_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- _tmp0_ = data_imports__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- data_imports__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- return;
-#line 43 "_DataImportsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- return;
-#line 53 "_DataImportsInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- data_imports_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- return;
-#line 63 "_DataImportsInternals.c"
- }
-}
-
-
-void
-data_imports_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- _tmp1_ = data_imports__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_DataImportsInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- _tmp2_ = data_imports__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- data_imports__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- _tmp3_ = data_imports__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_DataImportsInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- return;
-#line 97 "_DataImportsInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- data_imports_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala"
- unit_terminate_entry ();
-#line 103 "_DataImportsInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_DbInternals.c b/src/.unitize/_DbInternals.c
deleted file mode 100644
index c024dc5..0000000
--- a/src/.unitize/_DbInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _DbInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _DbInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint db__unit_init_count;
-gint db__unit_init_count = 0;
-
-void db_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void db_init (GError** error);
-void db_terminate_entry (void);
-void db_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-db_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- _tmp0_ = db__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- db__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- return;
-#line 43 "_DbInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- return;
-#line 53 "_DbInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- db_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- return;
-#line 63 "_DbInternals.c"
- }
-}
-
-
-void
-db_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- _tmp1_ = db__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_DbInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- _tmp2_ = db__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- db__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- _tmp3_ = db__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_DbInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- return;
-#line 97 "_DbInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- db_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala"
- unit_terminate_entry ();
-#line 103 "_DbInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_DirectInternals.c b/src/.unitize/_DirectInternals.c
deleted file mode 100644
index e9b9492..0000000
--- a/src/.unitize/_DirectInternals.c
+++ /dev/null
@@ -1,176 +0,0 @@
-/* _DirectInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _DirectInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint direct__unit_init_count;
-gint direct__unit_init_count = 0;
-
-void direct_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void db_init_entry (GError** error);
-void util_init_entry (GError** error);
-void photos_init_entry (GError** error);
-void slideshow_init_entry (GError** error);
-void core_init_entry (GError** error);
-void direct_init (GError** error);
-void direct_terminate_entry (void);
-void direct_terminate (void);
-void unit_terminate_entry (void);
-void db_terminate_entry (void);
-void util_terminate_entry (void);
-void photos_terminate_entry (void);
-void slideshow_terminate_entry (void);
-void core_terminate_entry (void);
-
-
-void
-direct_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- _tmp0_ = direct__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- direct__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 53 "_DirectInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 63 "_DirectInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- db_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 73 "_DirectInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- util_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 83 "_DirectInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- photos_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 93 "_DirectInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- slideshow_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 103 "_DirectInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- core_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 113 "_DirectInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- direct_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 123 "_DirectInternals.c"
- }
-}
-
-
-void
-direct_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- _tmp1_ = direct__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- _tmp0_ = TRUE;
-#line 139 "_DirectInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- _tmp2_ = direct__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- direct__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- _tmp3_ = direct__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 151 "_DirectInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- return;
-#line 157 "_DirectInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- direct_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- db_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- util_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- photos_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- slideshow_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala"
- core_terminate_entry ();
-#line 173 "_DirectInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_Direct_unitize_entry.c b/src/.unitize/_Direct_unitize_entry.c
deleted file mode 100644
index 1e4c50c..0000000
--- a/src/.unitize/_Direct_unitize_entry.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* _Direct_unitize_entry.c generated by valac 0.40.4, the Vala compiler
- * generated from _Direct_unitize_entry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void direct_app_init (GError** error);
-void direct_init_entry (GError** error);
-void direct_app_terminate (void);
-void direct_terminate_entry (void);
-
-
-void
-direct_app_init (GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 12 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala"
- direct_init_entry (&_inner_error_);
-#line 12 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala"
- g_propagate_error (error, _inner_error_);
-#line 12 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala"
- return;
-#line 38 "_Direct_unitize_entry.c"
- }
-}
-
-
-void
-direct_app_terminate (void)
-{
-#line 16 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala"
- direct_terminate_entry ();
-#line 48 "_Direct_unitize_entry.c"
-}
-
-
-
diff --git a/src/.unitize/_EditingToolsInternals.c b/src/.unitize/_EditingToolsInternals.c
deleted file mode 100644
index 0bce746..0000000
--- a/src/.unitize/_EditingToolsInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _EditingToolsInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _EditingToolsInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint editing_tools__unit_init_count;
-gint editing_tools__unit_init_count = 0;
-
-void editing_tools_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void editing_tools_init (GError** error);
-void editing_tools_terminate_entry (void);
-void editing_tools_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-editing_tools_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- _tmp0_ = editing_tools__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- editing_tools__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- return;
-#line 43 "_EditingToolsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- return;
-#line 53 "_EditingToolsInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- editing_tools_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- return;
-#line 63 "_EditingToolsInternals.c"
- }
-}
-
-
-void
-editing_tools_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- _tmp1_ = editing_tools__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_EditingToolsInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- _tmp2_ = editing_tools__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- editing_tools__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- _tmp3_ = editing_tools__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_EditingToolsInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- return;
-#line 97 "_EditingToolsInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- editing_tools_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala"
- unit_terminate_entry ();
-#line 103 "_EditingToolsInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_EventsInternals.c b/src/.unitize/_EventsInternals.c
deleted file mode 100644
index 4474675..0000000
--- a/src/.unitize/_EventsInternals.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* _EventsInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _EventsInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint events__unit_init_count;
-gint events__unit_init_count = 0;
-
-void events_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void sidebar_init_entry (GError** error);
-void events_init (GError** error);
-void events_terminate_entry (void);
-void events_terminate (void);
-void unit_terminate_entry (void);
-void sidebar_terminate_entry (void);
-
-
-void
-events_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- _tmp0_ = events__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- events__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- return;
-#line 45 "_EventsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- return;
-#line 55 "_EventsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- sidebar_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- return;
-#line 65 "_EventsInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- events_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- return;
-#line 75 "_EventsInternals.c"
- }
-}
-
-
-void
-events_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- _tmp1_ = events__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- _tmp0_ = TRUE;
-#line 91 "_EventsInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- _tmp2_ = events__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- events__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- _tmp3_ = events__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 103 "_EventsInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- return;
-#line 109 "_EventsInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- events_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala"
- sidebar_terminate_entry ();
-#line 117 "_EventsInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_FoldersInternals.c b/src/.unitize/_FoldersInternals.c
deleted file mode 100644
index 74a8652..0000000
--- a/src/.unitize/_FoldersInternals.c
+++ /dev/null
@@ -1,134 +0,0 @@
-/* _FoldersInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _FoldersInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint folders__unit_init_count;
-gint folders__unit_init_count = 0;
-
-void folders_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void sidebar_init_entry (GError** error);
-void photos_init_entry (GError** error);
-void folders_init (GError** error);
-void folders_terminate_entry (void);
-void folders_terminate (void);
-void unit_terminate_entry (void);
-void sidebar_terminate_entry (void);
-void photos_terminate_entry (void);
-
-
-void
-folders_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- _tmp0_ = folders__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- folders__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- return;
-#line 47 "_FoldersInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- return;
-#line 57 "_FoldersInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- sidebar_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- return;
-#line 67 "_FoldersInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- photos_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- return;
-#line 77 "_FoldersInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- folders_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- return;
-#line 87 "_FoldersInternals.c"
- }
-}
-
-
-void
-folders_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- _tmp1_ = folders__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- _tmp0_ = TRUE;
-#line 103 "_FoldersInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- _tmp2_ = folders__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- folders__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- _tmp3_ = folders__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 115 "_FoldersInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- return;
-#line 121 "_FoldersInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- folders_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- sidebar_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala"
- photos_terminate_entry ();
-#line 131 "_FoldersInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_LibraryInternals.c b/src/.unitize/_LibraryInternals.c
deleted file mode 100644
index 84c32c0..0000000
--- a/src/.unitize/_LibraryInternals.c
+++ /dev/null
@@ -1,316 +0,0 @@
-/* _LibraryInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _LibraryInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint library__unit_init_count;
-gint library__unit_init_count = 0;
-
-void library_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void util_init_entry (GError** error);
-void threads_init_entry (GError** error);
-void db_init_entry (GError** error);
-void plugins_init_entry (GError** error);
-void slideshow_init_entry (GError** error);
-void photos_init_entry (GError** error);
-void publishing_init_entry (GError** error);
-void core_init_entry (GError** error);
-void sidebar_init_entry (GError** error);
-void events_init_entry (GError** error);
-void tags_init_entry (GError** error);
-void camera_init_entry (GError** error);
-void searches_init_entry (GError** error);
-void data_imports_init_entry (GError** error);
-void folders_init_entry (GError** error);
-void library_init (GError** error);
-void library_terminate_entry (void);
-void library_terminate (void);
-void unit_terminate_entry (void);
-void util_terminate_entry (void);
-void threads_terminate_entry (void);
-void db_terminate_entry (void);
-void plugins_terminate_entry (void);
-void slideshow_terminate_entry (void);
-void photos_terminate_entry (void);
-void publishing_terminate_entry (void);
-void core_terminate_entry (void);
-void sidebar_terminate_entry (void);
-void events_terminate_entry (void);
-void tags_terminate_entry (void);
-void camera_terminate_entry (void);
-void searches_terminate_entry (void);
-void data_imports_terminate_entry (void);
-void folders_terminate_entry (void);
-
-
-void
-library_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- _tmp0_ = library__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- library__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 73 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 83 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- util_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 93 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- threads_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 103 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- db_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 113 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- plugins_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 123 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- slideshow_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 133 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- photos_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 143 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- publishing_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 153 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- core_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 163 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- sidebar_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 173 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- events_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 183 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- tags_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 193 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- camera_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 203 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- searches_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 213 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- data_imports_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 223 "_LibraryInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- folders_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 233 "_LibraryInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- library_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 243 "_LibraryInternals.c"
- }
-}
-
-
-void
-library_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- _tmp1_ = library__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- _tmp0_ = TRUE;
-#line 259 "_LibraryInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- _tmp2_ = library__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- library__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- _tmp3_ = library__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 271 "_LibraryInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- return;
-#line 277 "_LibraryInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- library_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- util_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- threads_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- db_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- plugins_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- slideshow_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- photos_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- publishing_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- core_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- sidebar_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- events_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- tags_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- camera_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- searches_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- data_imports_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala"
- folders_terminate_entry ();
-#line 313 "_LibraryInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_Library_unitize_entry.c b/src/.unitize/_Library_unitize_entry.c
deleted file mode 100644
index a0172d9..0000000
--- a/src/.unitize/_Library_unitize_entry.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* _Library_unitize_entry.c generated by valac 0.40.4, the Vala compiler
- * generated from _Library_unitize_entry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void library_app_init (GError** error);
-void library_init_entry (GError** error);
-void library_app_terminate (void);
-void library_terminate_entry (void);
-
-
-void
-library_app_init (GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 12 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala"
- library_init_entry (&_inner_error_);
-#line 12 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala"
- g_propagate_error (error, _inner_error_);
-#line 12 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala"
- return;
-#line 38 "_Library_unitize_entry.c"
- }
-}
-
-
-void
-library_app_terminate (void)
-{
-#line 16 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala"
- library_terminate_entry ();
-#line 48 "_Library_unitize_entry.c"
-}
-
-
-
diff --git a/src/.unitize/_PhotosInternals.c b/src/.unitize/_PhotosInternals.c
deleted file mode 100644
index 8a32cae..0000000
--- a/src/.unitize/_PhotosInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _PhotosInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _PhotosInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint photos__unit_init_count;
-gint photos__unit_init_count = 0;
-
-void photos_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void photos_init (GError** error);
-void photos_terminate_entry (void);
-void photos_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-photos_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- _tmp0_ = photos__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- photos__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- return;
-#line 43 "_PhotosInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- return;
-#line 53 "_PhotosInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- photos_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- return;
-#line 63 "_PhotosInternals.c"
- }
-}
-
-
-void
-photos_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- _tmp1_ = photos__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_PhotosInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- _tmp2_ = photos__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- photos__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- _tmp3_ = photos__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_PhotosInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- return;
-#line 97 "_PhotosInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- photos_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala"
- unit_terminate_entry ();
-#line 103 "_PhotosInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_PluginsInternals.c b/src/.unitize/_PluginsInternals.c
deleted file mode 100644
index 350ca1d..0000000
--- a/src/.unitize/_PluginsInternals.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* _PluginsInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _PluginsInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint plugins__unit_init_count;
-gint plugins__unit_init_count = 0;
-
-void plugins_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void util_init_entry (GError** error);
-void plugins_init (GError** error);
-void plugins_terminate_entry (void);
-void plugins_terminate (void);
-void unit_terminate_entry (void);
-void util_terminate_entry (void);
-
-
-void
-plugins_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- _tmp0_ = plugins__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- plugins__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- return;
-#line 45 "_PluginsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- return;
-#line 55 "_PluginsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- util_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- return;
-#line 65 "_PluginsInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- plugins_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- return;
-#line 75 "_PluginsInternals.c"
- }
-}
-
-
-void
-plugins_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- _tmp1_ = plugins__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- _tmp0_ = TRUE;
-#line 91 "_PluginsInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- _tmp2_ = plugins__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- plugins__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- _tmp3_ = plugins__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 103 "_PluginsInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- return;
-#line 109 "_PluginsInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- plugins_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala"
- util_terminate_entry ();
-#line 117 "_PluginsInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_PublishingInternals.c b/src/.unitize/_PublishingInternals.c
deleted file mode 100644
index df50c67..0000000
--- a/src/.unitize/_PublishingInternals.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* _PublishingInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _PublishingInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint publishing__unit_init_count;
-gint publishing__unit_init_count = 0;
-
-void publishing_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void plugins_init_entry (GError** error);
-void publishing_init (GError** error);
-void publishing_terminate_entry (void);
-void publishing_terminate (void);
-void unit_terminate_entry (void);
-void plugins_terminate_entry (void);
-
-
-void
-publishing_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- _tmp0_ = publishing__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- publishing__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- return;
-#line 45 "_PublishingInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- return;
-#line 55 "_PublishingInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- plugins_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- return;
-#line 65 "_PublishingInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- publishing_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- return;
-#line 75 "_PublishingInternals.c"
- }
-}
-
-
-void
-publishing_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- _tmp1_ = publishing__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- _tmp0_ = TRUE;
-#line 91 "_PublishingInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- _tmp2_ = publishing__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- publishing__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- _tmp3_ = publishing__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 103 "_PublishingInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- return;
-#line 109 "_PublishingInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- publishing_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala"
- plugins_terminate_entry ();
-#line 117 "_PublishingInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_SearchesInternals.c b/src/.unitize/_SearchesInternals.c
deleted file mode 100644
index c630aff..0000000
--- a/src/.unitize/_SearchesInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _SearchesInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _SearchesInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint searches__unit_init_count;
-gint searches__unit_init_count = 0;
-
-void searches_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void searches_init (GError** error);
-void searches_terminate_entry (void);
-void searches_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-searches_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- _tmp0_ = searches__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- searches__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- return;
-#line 43 "_SearchesInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- return;
-#line 53 "_SearchesInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- searches_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- return;
-#line 63 "_SearchesInternals.c"
- }
-}
-
-
-void
-searches_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- _tmp1_ = searches__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_SearchesInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- _tmp2_ = searches__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- searches__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- _tmp3_ = searches__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_SearchesInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- return;
-#line 97 "_SearchesInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- searches_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala"
- unit_terminate_entry ();
-#line 103 "_SearchesInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_SidebarInternals.c b/src/.unitize/_SidebarInternals.c
deleted file mode 100644
index 6ea5d4e..0000000
--- a/src/.unitize/_SidebarInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _SidebarInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _SidebarInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint sidebar__unit_init_count;
-gint sidebar__unit_init_count = 0;
-
-void sidebar_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void sidebar_init (GError** error);
-void sidebar_terminate_entry (void);
-void sidebar_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-sidebar_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- _tmp0_ = sidebar__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- sidebar__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- return;
-#line 43 "_SidebarInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- return;
-#line 53 "_SidebarInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- sidebar_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- return;
-#line 63 "_SidebarInternals.c"
- }
-}
-
-
-void
-sidebar_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- _tmp1_ = sidebar__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_SidebarInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- _tmp2_ = sidebar__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- sidebar__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- _tmp3_ = sidebar__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_SidebarInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- return;
-#line 97 "_SidebarInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- sidebar_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala"
- unit_terminate_entry ();
-#line 103 "_SidebarInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_SlideshowInternals.c b/src/.unitize/_SlideshowInternals.c
deleted file mode 100644
index 1fc0686..0000000
--- a/src/.unitize/_SlideshowInternals.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* _SlideshowInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _SlideshowInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint slideshow__unit_init_count;
-gint slideshow__unit_init_count = 0;
-
-void slideshow_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void plugins_init_entry (GError** error);
-void slideshow_init (GError** error);
-void slideshow_terminate_entry (void);
-void slideshow_terminate (void);
-void unit_terminate_entry (void);
-void plugins_terminate_entry (void);
-
-
-void
-slideshow_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- _tmp0_ = slideshow__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- slideshow__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- return;
-#line 45 "_SlideshowInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- return;
-#line 55 "_SlideshowInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- plugins_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- return;
-#line 65 "_SlideshowInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- slideshow_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- return;
-#line 75 "_SlideshowInternals.c"
- }
-}
-
-
-void
-slideshow_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- _tmp1_ = slideshow__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- _tmp0_ = TRUE;
-#line 91 "_SlideshowInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- _tmp2_ = slideshow__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- slideshow__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- _tmp3_ = slideshow__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 103 "_SlideshowInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- return;
-#line 109 "_SlideshowInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- slideshow_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala"
- plugins_terminate_entry ();
-#line 117 "_SlideshowInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_TagsInternals.c b/src/.unitize/_TagsInternals.c
deleted file mode 100644
index 0383b23..0000000
--- a/src/.unitize/_TagsInternals.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* _TagsInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _TagsInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint tags__unit_init_count;
-gint tags__unit_init_count = 0;
-
-void tags_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void sidebar_init_entry (GError** error);
-void tags_init (GError** error);
-void tags_terminate_entry (void);
-void tags_terminate (void);
-void unit_terminate_entry (void);
-void sidebar_terminate_entry (void);
-
-
-void
-tags_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- _tmp0_ = tags__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- tags__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- return;
-#line 45 "_TagsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- return;
-#line 55 "_TagsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- sidebar_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- return;
-#line 65 "_TagsInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- tags_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- return;
-#line 75 "_TagsInternals.c"
- }
-}
-
-
-void
-tags_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- _tmp1_ = tags__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- _tmp0_ = TRUE;
-#line 91 "_TagsInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- _tmp2_ = tags__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- tags__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- _tmp3_ = tags__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 103 "_TagsInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- return;
-#line 109 "_TagsInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- tags_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- unit_terminate_entry ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala"
- sidebar_terminate_entry ();
-#line 117 "_TagsInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_ThreadsInternals.c b/src/.unitize/_ThreadsInternals.c
deleted file mode 100644
index db67d9d..0000000
--- a/src/.unitize/_ThreadsInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _ThreadsInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _ThreadsInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint threads__unit_init_count;
-gint threads__unit_init_count = 0;
-
-void threads_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void threads_init (GError** error);
-void threads_terminate_entry (void);
-void threads_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-threads_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- _tmp0_ = threads__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- threads__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- return;
-#line 43 "_ThreadsInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- return;
-#line 53 "_ThreadsInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- threads_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- return;
-#line 63 "_ThreadsInternals.c"
- }
-}
-
-
-void
-threads_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- _tmp1_ = threads__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_ThreadsInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- _tmp2_ = threads__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- threads__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- _tmp3_ = threads__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_ThreadsInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- return;
-#line 97 "_ThreadsInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- threads_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala"
- unit_terminate_entry ();
-#line 103 "_ThreadsInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_UnitInternals.c b/src/.unitize/_UnitInternals.c
deleted file mode 100644
index 998da34..0000000
--- a/src/.unitize/_UnitInternals.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/* _UnitInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _UnitInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint unit__unit_init_count;
-gint unit__unit_init_count = 0;
-
-void unit_init_entry (GError** error);
-void unit_init (GError** error);
-void unit_terminate_entry (void);
-void unit_terminate (void);
-
-
-void
-unit_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- _tmp0_ = unit__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- unit__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- return;
-#line 41 "_UnitInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- unit_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- return;
-#line 51 "_UnitInternals.c"
- }
-}
-
-
-void
-unit_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- _tmp1_ = unit__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- _tmp0_ = TRUE;
-#line 67 "_UnitInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- _tmp2_ = unit__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- unit__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- _tmp3_ = unit__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 79 "_UnitInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- return;
-#line 85 "_UnitInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala"
- unit_terminate ();
-#line 89 "_UnitInternals.c"
-}
-
-
-
diff --git a/src/.unitize/_UtilInternals.c b/src/.unitize/_UtilInternals.c
deleted file mode 100644
index c52fbcd..0000000
--- a/src/.unitize/_UtilInternals.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* _UtilInternals.c generated by valac 0.40.4, the Vala compiler
- * generated from _UtilInternals.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- *
- * Auto-generated file. Do not modify!
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-extern gint util__unit_init_count;
-gint util__unit_init_count = 0;
-
-void util_init_entry (GError** error);
-void unit_init_entry (GError** error);
-void util_init (GError** error);
-void util_terminate_entry (void);
-void util_terminate (void);
-void unit_terminate_entry (void);
-
-
-void
-util_init_entry (GError** error)
-{
- gint _tmp0_;
- GError * _inner_error_ = NULL;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- _tmp0_ = util__unit_init_count;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- util__unit_init_count = _tmp0_ + 1;
-#line 14 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- if (_tmp0_ != 0) {
-#line 15 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- return;
-#line 43 "_UtilInternals.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- unit_init_entry (&_inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 17 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- return;
-#line 53 "_UtilInternals.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- util_init (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- g_propagate_error (error, _inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- return;
-#line 63 "_UtilInternals.c"
- }
-}
-
-
-void
-util_terminate_entry (void)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- _tmp1_ = util__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- if (_tmp1_ == 0) {
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- _tmp0_ = TRUE;
-#line 79 "_UtilInternals.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- _tmp2_ = util__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- util__unit_init_count = _tmp2_ - 1;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- _tmp3_ = util__unit_init_count;
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 91 "_UtilInternals.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- if (_tmp0_) {
-#line 24 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- return;
-#line 97 "_UtilInternals.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- util_terminate ();
-#line 28 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala"
- unit_terminate_entry ();
-#line 103 "_UtilInternals.c"
-}
-
-
-
diff --git a/src/AppDirs.c b/src/AppDirs.c
deleted file mode 100644
index ed0c0ca..0000000
--- a/src/AppDirs.c
+++ /dev/null
@@ -1,2647 +0,0 @@
-/* AppDirs.c generated by valac 0.40.4, the Vala compiler
- * generated from AppDirs.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <glib/gi18n-lib.h>
-#include <glib/gstdio.h>
-#include <time.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_APP_DIRS (app_dirs_get_type ())
-#define APP_DIRS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_DIRS, AppDirs))
-#define APP_DIRS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_DIRS, AppDirsClass))
-#define IS_APP_DIRS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_DIRS))
-#define IS_APP_DIRS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_DIRS))
-#define APP_DIRS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_DIRS, AppDirsClass))
-
-typedef struct _AppDirs AppDirs;
-typedef struct _AppDirsClass AppDirsClass;
-typedef struct _AppDirsPrivate AppDirsPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
-typedef struct _ParamSpecAppDirs ParamSpecAppDirs;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _AppDirs {
- GTypeInstance parent_instance;
- volatile int ref_count;
- AppDirsPrivate * priv;
-};
-
-struct _AppDirsClass {
- GTypeClass parent_class;
- void (*finalize) (AppDirs *self);
-};
-
-struct _ParamSpecAppDirs {
- GParamSpec parent_instance;
-};
-
-
-static gpointer app_dirs_parent_class = NULL;
-static GFile* app_dirs_exec_dir;
-static GFile* app_dirs_exec_dir = NULL;
-static GFile* app_dirs_data_dir;
-static GFile* app_dirs_data_dir = NULL;
-static GFile* app_dirs_tmp_dir;
-static GFile* app_dirs_tmp_dir = NULL;
-static GFile* app_dirs_libexec_dir;
-static GFile* app_dirs_libexec_dir = NULL;
-
-gpointer app_dirs_ref (gpointer instance);
-void app_dirs_unref (gpointer instance);
-GParamSpec* param_spec_app_dirs (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_app_dirs (GValue* value,
- gpointer v_object);
-void value_take_app_dirs (GValue* value,
- gpointer v_object);
-gpointer value_get_app_dirs (const GValue* value);
-GType app_dirs_get_type (void) G_GNUC_CONST;
-#define APP_DIRS_DEFAULT_DATA_DIR "shotwell"
-void app_dirs_init (const gchar* arg0);
-void app_dirs_terminate (void);
-GFile* app_dirs_get_home_dir (void);
-GFile* app_dirs_get_cache_dir (void);
-void app_dirs_try_migrate_data (void);
-GFile* app_dirs_get_user_plugins_dir (void);
-GFile* app_dirs_get_data_dir (void);
-void app_window_panic (const gchar* msg);
-void app_dirs_set_data_dir (const gchar* user_data_dir);
-gboolean is_string_empty (const gchar* s);
-gchar* strip_pretty_path (const gchar* path);
-void app_dirs_verify_data_dir (void);
-void app_dirs_verify_cache_dir (void);
-GFile* app_dirs_get_libexec_dir (void);
-GFile* app_dirs_get_install_dir (void);
-GFile* app_dirs_get_exec_dir (void);
-#define RESOURCES_LIBEXECDIR _LIBEXECDIR
-GFile* get_sys_install_dir (GFile* exec_dir);
-GFile* app_dirs_get_import_dir (void);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gchar* configuration_facade_get_import_dir (ConfigurationFacade* self);
-GFile* app_dirs_get_baked_import_dir (time_t tm);
-gchar* configuration_facade_get_directory_pattern (ConfigurationFacade* self);
-gchar* configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self);
-gboolean app_dirs_is_in_import_dir (GFile* file);
-void app_dirs_set_import_dir (const gchar* path);
-void configuration_facade_set_import_dir (ConfigurationFacade* self,
- const gchar* import_dir);
-GFile* app_dirs_get_temp_dir (void);
-GFile* app_dirs_get_data_subdir (const gchar* name,
- const gchar* subname);
-void app_dirs_ensure_writable (GFile* dir);
-GFile* app_dirs_get_cache_subdir (const gchar* name,
- const gchar* subname);
-GFile* app_dirs_get_lib_dir (void);
-#define RESOURCES_LIB _LIB
-GFile* app_dirs_get_system_plugins_dir (void);
-GFile* app_dirs_get_log_file (void);
-GFile* app_dirs_get_thumbnailer_bin (void);
-GFile* app_dirs_get_settings_migrator_bin (void);
-AppDirs* app_dirs_new (void);
-AppDirs* app_dirs_construct (GType object_type);
-static void app_dirs_finalize (AppDirs * obj);
-
-
-void
-app_dirs_init (const gchar* arg0)
-{
- GFile* exec_file = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 16 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_if_fail (arg0 != NULL);
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = g_find_program_in_path (arg0);
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = realpath (_tmp1_, NULL);
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = g_file_new_for_path (_tmp3_);
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = _tmp4_;
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp3_);
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp1_);
-#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala"
- exec_file = _tmp5_;
-#line 18 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = g_file_get_parent (exec_file);
-#line 18 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (app_dirs_exec_dir);
-#line 18 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_exec_dir = _tmp6_;
-#line 16 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (exec_file);
-#line 191 "AppDirs.c"
-}
-
-
-void
-app_dirs_terminate (void)
-{
-}
-
-
-GFile*
-app_dirs_get_home_dir (void)
-{
- GFile* result = NULL;
- const gchar* _tmp0_;
- GFile* _tmp1_;
-#line 27 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = g_get_home_dir ();
-#line 27 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = g_file_new_for_path (_tmp0_);
-#line 27 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp1_;
-#line 27 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 215 "AppDirs.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return self ? g_object_ref (self) : NULL;
-#line 224 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_cache_dir (void)
-{
- GFile* result = NULL;
- GFile* _tmp0_ = NULL;
- GFile* _tmp1_;
-#line 31 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = app_dirs_data_dir;
-#line 31 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp1_ == NULL) {
-#line 238 "AppDirs.c"
- const gchar* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
-#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_get_user_cache_dir ();
-#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = _tmp3_;
-#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = g_file_get_child (_tmp4_, APP_DIRS_DEFAULT_DATA_DIR);
-#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp0_);
-#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = _tmp5_;
-#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp4_);
-#line 257 "AppDirs.c"
- } else {
- GFile* _tmp6_;
- GFile* _tmp7_;
-#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = app_dirs_data_dir;
-#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp0_);
-#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = _tmp7_;
-#line 269 "AppDirs.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 275 "AppDirs.c"
-}
-
-
-void
-app_dirs_try_migrate_data (void)
-{
- GFile* user_plugin_dir = NULL;
- GFile* _tmp0_;
- GFile* old_dir = NULL;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
- gboolean _tmp9_ = FALSE;
- GFile* _tmp10_;
- GFile* new_dir = NULL;
- GFile* _tmp19_;
- GFile* _tmp20_;
- GFile* _tmp21_;
- GFile* _tmp22_;
- gboolean _tmp23_ = FALSE;
- GFile* _tmp24_;
- GFile* cache_dir = NULL;
- GFile* _tmp26_;
- mode_t mask = {0};
- GFile* _tmp27_;
- GFile* _tmp36_;
- GFile* _tmp37_;
- GFile* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- GFile* _tmp41_;
- GFile* _tmp42_;
- GFile* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- GFile* _tmp46_;
- GFile* _tmp47_;
- GFile* _tmp48_;
- gboolean _tmp49_;
- GFile* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- GFile* _tmp65_;
- gchar* _tmp66_;
- gchar* _tmp67_;
- GFile* _tmp68_;
- gchar* _tmp69_;
- gchar* _tmp70_;
- mode_t _tmp71_;
- GError * _inner_error_ = NULL;
-#line 38 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_user_plugins_dir ();
-#line 38 "/home/jens/Source/shotwell/src/AppDirs.vala"
- user_plugin_dir = _tmp0_;
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = app_dirs_get_home_dir ();
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = _tmp1_;
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = g_file_get_child (_tmp2_, ".gnome2");
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = _tmp3_;
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = g_file_get_child (_tmp4_, "shotwell");
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = _tmp5_;
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = g_file_get_child (_tmp6_, "plugins");
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = _tmp7_;
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp6_);
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp4_);
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp2_);
-#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala"
- old_dir = _tmp8_;
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = old_dir;
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (g_file_query_exists (_tmp10_, NULL)) {
-#line 363 "AppDirs.c"
- GFile* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = user_plugin_dir;
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp12_ = g_file_get_parent (_tmp11_);
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp13_ = _tmp12_;
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = !g_file_query_exists (_tmp13_, NULL);
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp13_);
-#line 377 "AppDirs.c"
- } else {
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = FALSE;
-#line 381 "AppDirs.c"
- }
-#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp9_) {
-#line 385 "AppDirs.c"
- {
- GFile* _tmp14_;
- GFile* _tmp15_;
- GFile* _tmp16_;
-#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp14_ = user_plugin_dir;
-#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp15_ = g_file_get_parent (_tmp14_);
-#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp16_ = _tmp15_;
-#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_make_directory_with_parents (_tmp16_, NULL, &_inner_error_);
-#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp16_);
-#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 402 "AppDirs.c"
- goto __catch452_g_error;
- }
- }
- goto __finally452;
- __catch452_g_error:
- {
- GError* err = NULL;
-#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 416 "AppDirs.c"
- }
- __finally452:
-#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (old_dir);
-#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (user_plugin_dir);
-#line 43 "/home/jens/Source/shotwell/src/AppDirs.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 43 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return;
-#line 431 "AppDirs.c"
- }
- }
- {
- GFile* _tmp17_;
- GFile* _tmp18_;
-#line 49 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp17_ = old_dir;
-#line 49 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp18_ = user_plugin_dir;
-#line 49 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_move (_tmp17_, _tmp18_, G_FILE_COPY_NONE, NULL, NULL, NULL, &_inner_error_);
-#line 49 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 445 "AppDirs.c"
- goto __catch453_g_error;
- }
- }
- goto __finally453;
- __catch453_g_error:
- {
- GError* err = NULL;
-#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 459 "AppDirs.c"
- }
- __finally453:
-#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (old_dir);
-#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (user_plugin_dir);
-#line 48 "/home/jens/Source/shotwell/src/AppDirs.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 48 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return;
-#line 474 "AppDirs.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp19_ = app_dirs_get_data_dir ();
-#line 53 "/home/jens/Source/shotwell/src/AppDirs.vala"
- new_dir = _tmp19_;
-#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp20_ = app_dirs_get_home_dir ();
-#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp21_ = _tmp20_;
-#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp22_ = g_file_get_child (_tmp21_, ".shotwell");
-#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (old_dir);
-#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala"
- old_dir = _tmp22_;
-#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp21_);
-#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp24_ = new_dir;
-#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (g_file_query_exists (_tmp24_, NULL)) {
-#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp23_ = TRUE;
-#line 498 "AppDirs.c"
- } else {
- GFile* _tmp25_;
-#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp25_ = old_dir;
-#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp23_ = !g_file_query_exists (_tmp25_, NULL);
-#line 505 "AppDirs.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp23_) {
-#line 56 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (new_dir);
-#line 56 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (old_dir);
-#line 56 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (user_plugin_dir);
-#line 56 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return;
-#line 517 "AppDirs.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp26_ = app_dirs_get_cache_dir ();
-#line 58 "/home/jens/Source/shotwell/src/AppDirs.vala"
- cache_dir = _tmp26_;
-#line 59 "/home/jens/Source/shotwell/src/AppDirs.vala"
- mask = umask ((mode_t) 0077);
-#line 60 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp27_ = cache_dir;
-#line 60 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_file_query_exists (_tmp27_, NULL)) {
-#line 529 "AppDirs.c"
- {
- GFile* _tmp28_;
-#line 62 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp28_ = cache_dir;
-#line 62 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_make_directory_with_parents (_tmp28_, NULL, &_inner_error_);
-#line 62 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 538 "AppDirs.c"
- goto __catch454_g_error;
- }
- }
- goto __finally454;
- __catch454_g_error:
- {
- GError* err = NULL;
- GFile* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- GError* _tmp32_;
- const gchar* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp29_ = cache_dir;
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp30_ = g_file_get_path (_tmp29_);
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp31_ = _tmp30_;
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp32_ = err;
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp33_ = _tmp32_->message;
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp34_ = g_strdup_printf (_ ("Unable to create cache directory %s: %s"), _tmp31_, _tmp33_);
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp35_ = _tmp34_;
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp35_);
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp35_);
-#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp31_);
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 579 "AppDirs.c"
- }
- __finally454:
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (cache_dir);
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (new_dir);
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (old_dir);
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (user_plugin_dir);
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.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 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return;
-#line 598 "AppDirs.c"
- }
- }
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp36_ = old_dir;
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp37_ = g_file_get_child (_tmp36_, "thumbs");
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp38_ = _tmp37_;
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp39_ = g_file_get_path (_tmp38_);
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp40_ = _tmp39_;
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp41_ = cache_dir;
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp42_ = g_file_get_child (_tmp41_, "thumbs");
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp43_ = _tmp42_;
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp44_ = g_file_get_path (_tmp43_);
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp45_ = _tmp44_;
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_rename (_tmp40_, _tmp45_);
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp45_);
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp43_);
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp40_);
-#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp38_);
-#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp46_ = new_dir;
-#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp47_ = g_file_get_parent (_tmp46_);
-#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp48_ = _tmp47_;
-#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp49_ = !g_file_query_exists (_tmp48_, NULL);
-#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp48_);
-#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp49_) {
-#line 643 "AppDirs.c"
- {
- GFile* _tmp50_;
- GFile* _tmp51_;
- GFile* _tmp52_;
-#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp50_ = new_dir;
-#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp51_ = g_file_get_parent (_tmp50_);
-#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp52_ = _tmp51_;
-#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_make_directory_with_parents (_tmp52_, NULL, &_inner_error_);
-#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp52_);
-#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 660 "AppDirs.c"
- goto __catch455_g_error;
- }
- }
- goto __finally455;
- __catch455_g_error:
- {
- GError* err = NULL;
- GFile* _tmp53_;
- GFile* _tmp54_;
- GFile* _tmp55_;
- gchar* _tmp56_;
- gchar* _tmp57_;
- GError* _tmp58_;
- const gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp53_ = new_dir;
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp54_ = g_file_get_parent (_tmp53_);
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp55_ = _tmp54_;
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp56_ = g_file_get_path (_tmp55_);
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp57_ = _tmp56_;
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp58_ = err;
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp59_ = _tmp58_->message;
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp60_ = g_strdup_printf (_ ("Unable to create data directory %s: %s"), _tmp57_, _tmp59_);
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp61_ = _tmp60_;
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp61_);
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp61_);
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp57_);
-#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp55_);
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 709 "AppDirs.c"
- }
- __finally455:
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (cache_dir);
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (new_dir);
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (old_dir);
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (user_plugin_dir);
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.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 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return;
-#line 728 "AppDirs.c"
- }
- }
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp62_ = old_dir;
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp63_ = g_file_get_path (_tmp62_);
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp64_ = _tmp63_;
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp65_ = new_dir;
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp66_ = g_file_get_path (_tmp65_);
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp67_ = _tmp66_;
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_rename (_tmp64_, _tmp67_);
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp67_);
-#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp64_);
-#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp68_ = new_dir;
-#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp69_ = g_file_get_path (_tmp68_);
-#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp70_ = _tmp69_;
-#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_chmod (_tmp70_, 0700);
-#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp70_);
-#line 81 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp71_ = mask;
-#line 81 "/home/jens/Source/shotwell/src/AppDirs.vala"
- umask (_tmp71_);
-#line 36 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (cache_dir);
-#line 36 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (new_dir);
-#line 36 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (old_dir);
-#line 36 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (user_plugin_dir);
-#line 771 "AppDirs.c"
-}
-
-
-void
-app_dirs_set_data_dir (const gchar* user_data_dir)
-{
- GFile* _tmp0_;
- gchar* path = NULL;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 85 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_if_fail (user_data_dir != NULL);
-#line 85 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _vala_return_if_fail (!is_string_empty (user_data_dir), "!is_string_empty(user_data_dir)");
-#line 86 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_data_dir;
-#line 86 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _vala_assert (_tmp0_ == NULL, "data_dir == null");
-#line 89 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = strip_pretty_path (user_data_dir);
-#line 89 "/home/jens/Source/shotwell/src/AppDirs.vala"
- path = _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = path;
-#line 90 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_path_is_absolute (_tmp2_)) {
-#line 801 "AppDirs.c"
- GFile* _tmp3_;
- GFile* _tmp4_;
- const gchar* _tmp5_;
- GFile* _tmp6_;
-#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = app_dirs_get_home_dir ();
-#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = _tmp3_;
-#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = path;
-#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = g_file_get_child (_tmp4_, _tmp5_);
-#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (app_dirs_data_dir);
-#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_data_dir = _tmp6_;
-#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp4_);
-#line 820 "AppDirs.c"
- } else {
- const gchar* _tmp7_;
- GFile* _tmp8_;
-#line 93 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = path;
-#line 93 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = g_file_new_for_path (_tmp7_);
-#line 93 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (app_dirs_data_dir);
-#line 93 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_data_dir = _tmp8_;
-#line 832 "AppDirs.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = app_dirs_data_dir;
-#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = g_file_get_path (_tmp9_);
-#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = _tmp10_;
-#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_message ("AppDirs.vala:95: Setting private data directory to %s", _tmp11_);
-#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp11_);
-#line 85 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (path);
-#line 846 "AppDirs.c"
-}
-
-
-void
-app_dirs_verify_data_dir (void)
-{
- GFile* data_dir = NULL;
- GFile* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 99 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_data_dir ();
-#line 99 "/home/jens/Source/shotwell/src/AppDirs.vala"
- data_dir = _tmp0_;
-#line 860 "AppDirs.c"
- {
- GFile* _tmp1_;
-#line 101 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = data_dir;
-#line 101 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_file_query_exists (_tmp1_, NULL)) {
-#line 867 "AppDirs.c"
- GFile* _tmp2_;
-#line 102 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = data_dir;
-#line 102 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_make_directory_with_parents (_tmp2_, NULL, &_inner_error_);
-#line 102 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 875 "AppDirs.c"
- goto __catch456_g_error;
- }
- }
- }
- goto __finally456;
- __catch456_g_error:
- {
- GError* err = NULL;
- GFile* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GError* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = data_dir;
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = g_file_get_path (_tmp3_);
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = _tmp4_;
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = err;
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = _tmp6_->message;
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = g_strdup_printf (_ ("Unable to create data directory %s: %s"), _tmp5_, _tmp7_);
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = _tmp8_;
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp9_);
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp9_);
-#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp5_);
-#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 917 "AppDirs.c"
- }
- __finally456:
-#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (data_dir);
-#line 100 "/home/jens/Source/shotwell/src/AppDirs.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 100 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return;
-#line 930 "AppDirs.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (data_dir);
-#line 934 "AppDirs.c"
-}
-
-
-void
-app_dirs_verify_cache_dir (void)
-{
- GFile* cache_dir = NULL;
- GFile* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 110 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_cache_dir ();
-#line 110 "/home/jens/Source/shotwell/src/AppDirs.vala"
- cache_dir = _tmp0_;
-#line 948 "AppDirs.c"
- {
- GFile* _tmp1_;
-#line 112 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = cache_dir;
-#line 112 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_file_query_exists (_tmp1_, NULL)) {
-#line 955 "AppDirs.c"
- GFile* _tmp2_;
-#line 113 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = cache_dir;
-#line 113 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_make_directory_with_parents (_tmp2_, NULL, &_inner_error_);
-#line 113 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 963 "AppDirs.c"
- goto __catch457_g_error;
- }
- }
- }
- goto __finally457;
- __catch457_g_error:
- {
- GError* err = NULL;
- GFile* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GError* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = cache_dir;
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = g_file_get_path (_tmp3_);
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = _tmp4_;
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = err;
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = _tmp6_->message;
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = g_strdup_printf (_ ("Unable to create cache directory %s: %s"), _tmp5_, _tmp7_);
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = _tmp8_;
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp9_);
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp9_);
-#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp5_);
-#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 1005 "AppDirs.c"
- }
- __finally457:
-#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (cache_dir);
-#line 111 "/home/jens/Source/shotwell/src/AppDirs.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 111 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return;
-#line 1018 "AppDirs.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (cache_dir);
-#line 1022 "AppDirs.c"
-}
-
-
-/**
- * @brief Returns the build directory if not installed yet, or a path
- * to where any helper applets we need will live if installed.
- */
-GFile*
-app_dirs_get_libexec_dir (void)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp6_;
- GFile* _tmp7_;
-#line 125 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_libexec_dir;
-#line 125 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp0_ == NULL) {
-#line 1041 "AppDirs.c"
- GFile* _tmp1_;
- GFile* _tmp2_;
- gboolean _tmp3_;
-#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = app_dirs_get_install_dir ();
-#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = _tmp1_;
-#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_ == NULL;
-#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp2_);
-#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp3_) {
-#line 1055 "AppDirs.c"
- GFile* _tmp4_;
-#line 128 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = app_dirs_get_exec_dir ();
-#line 128 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (app_dirs_libexec_dir);
-#line 128 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_libexec_dir = _tmp4_;
-#line 1063 "AppDirs.c"
- } else {
- GFile* _tmp5_;
-#line 130 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = g_file_new_for_path (RESOURCES_LIBEXECDIR);
-#line 130 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (app_dirs_libexec_dir);
-#line 130 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_libexec_dir = _tmp5_;
-#line 1072 "AppDirs.c"
- }
- }
-#line 134 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = app_dirs_libexec_dir;
-#line 134 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 134 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp7_;
-#line 134 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1083 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_install_dir (void)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 139 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_exec_dir;
-#line 139 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = get_sys_install_dir (_tmp0_);
-#line 139 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp1_;
-#line 139 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1101 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_data_dir (void)
-{
- GFile* result = NULL;
- GFile* _tmp0_ = NULL;
- GFile* _tmp1_;
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = app_dirs_data_dir;
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp1_ == NULL) {
-#line 1115 "AppDirs.c"
- const gchar* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_get_user_data_dir ();
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = _tmp3_;
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = g_file_get_child (_tmp4_, APP_DIRS_DEFAULT_DATA_DIR);
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp0_);
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = _tmp5_;
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp4_);
-#line 1134 "AppDirs.c"
- } else {
- GFile* _tmp6_;
- GFile* _tmp7_;
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = app_dirs_data_dir;
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp0_);
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = _tmp7_;
-#line 1146 "AppDirs.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp0_;
-#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1152 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_import_dir (void)
-{
- GFile* result = NULL;
- gchar* path = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- const gchar* _tmp17_;
- GFile* _tmp20_;
- GFile* _tmp21_;
- GFile* _tmp22_;
- GFile* _tmp23_;
-#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = configuration_facade_get_import_dir (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala"
- path = _tmp3_;
-#line 150 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = path;
-#line 150 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!is_string_empty (_tmp4_)) {
-#line 1189 "AppDirs.c"
- const gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
- const gchar* _tmp13_;
- GFile* _tmp14_;
-#line 152 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = path;
-#line 152 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = strip_pretty_path (_tmp5_);
-#line 152 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (path);
-#line 152 "/home/jens/Source/shotwell/src/AppDirs.vala"
- path = _tmp6_;
-#line 155 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = path;
-#line 155 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_path_is_absolute (_tmp7_)) {
-#line 1207 "AppDirs.c"
- GFile* _tmp8_;
- GFile* _tmp9_;
- const gchar* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = app_dirs_get_home_dir ();
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = _tmp8_;
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = path;
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = g_file_get_child (_tmp9_, _tmp10_);
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp12_ = _tmp11_;
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp9_);
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp12_;
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (path);
-#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1231 "AppDirs.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp13_ = path;
-#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp14_ = g_file_new_for_path (_tmp13_);
-#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp14_;
-#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (path);
-#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1243 "AppDirs.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp15_ = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
-#line 163 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 163 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (path);
-#line 163 "/home/jens/Source/shotwell/src/AppDirs.vala"
- path = _tmp16_;
-#line 164 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp17_ = path;
-#line 164 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!is_string_empty (_tmp17_)) {
-#line 1257 "AppDirs.c"
- const gchar* _tmp18_;
- GFile* _tmp19_;
-#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp18_ = path;
-#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp19_ = g_file_new_for_path (_tmp18_);
-#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp19_;
-#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (path);
-#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1270 "AppDirs.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp20_ = app_dirs_get_home_dir ();
-#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp21_ = _tmp20_;
-#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp22_ = g_file_get_child (_tmp21_, _ ("Pictures"));
-#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp23_ = _tmp22_;
-#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp21_);
-#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp23_;
-#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (path);
-#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1288 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_baked_import_dir (time_t tm)
-{
- GFile* result = NULL;
- gchar* pattern = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- const gchar* _tmp8_;
- GDateTime* date = NULL;
- GDateTime* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- const gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GFile* _tmp22_;
- GFile* _tmp23_;
-#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = configuration_facade_get_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala"
- pattern = _tmp3_;
-#line 174 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = pattern;
-#line 174 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (is_string_empty (_tmp4_)) {
-#line 1334 "AppDirs.c"
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- gchar* _tmp7_;
-#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = config_facade_get_instance ();
-#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = _tmp5_;
-#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = configuration_facade_get_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (pattern);
-#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala"
- pattern = _tmp7_;
-#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp6_);
-#line 1350 "AppDirs.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = pattern;
-#line 176 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (is_string_empty (_tmp8_)) {
-#line 1356 "AppDirs.c"
- gchar* _tmp9_;
-#line 177 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = g_strdup ("%Y" G_DIR_SEPARATOR_S "%m" G_DIR_SEPARATOR_S "%d");
-#line 177 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (pattern);
-#line 177 "/home/jens/Source/shotwell/src/AppDirs.vala"
- pattern = _tmp9_;
-#line 1364 "AppDirs.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = g_date_time_new_from_unix_local ((gint64) tm);
-#line 179 "/home/jens/Source/shotwell/src/AppDirs.vala"
- date = _tmp10_;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = app_dirs_get_import_dir ();
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp12_ = _tmp11_;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp13_ = g_file_get_path (_tmp12_);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp14_ = _tmp13_;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp15_ = g_strconcat (_tmp14_, G_DIR_SEPARATOR_S, NULL);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp16_ = _tmp15_;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp17_ = pattern;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp18_ = g_date_time_format (date, _tmp17_);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp19_ = _tmp18_;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp20_ = g_strconcat (_tmp16_, _tmp19_, NULL);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp21_ = _tmp20_;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp22_ = g_file_new_for_path (_tmp21_);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp23_ = _tmp22_;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp21_);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp19_);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp16_);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp14_);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp12_);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp23_;
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_date_time_unref0 (date);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (pattern);
-#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1414 "AppDirs.c"
-}
-
-
-gboolean
-app_dirs_is_in_import_dir (GFile* file)
-{
- gboolean result = FALSE;
- GFile* import_dir = NULL;
- GFile* _tmp0_;
- gboolean _tmp1_ = FALSE;
- GFile* _tmp2_;
-#line 184 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 185 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_import_dir ();
-#line 185 "/home/jens/Source/shotwell/src/AppDirs.vala"
- import_dir = _tmp0_;
-#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = import_dir;
-#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (g_file_has_prefix (file, _tmp2_)) {
-#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = TRUE;
-#line 1438 "AppDirs.c"
- } else {
- GFile* _tmp3_;
-#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = import_dir;
-#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = g_file_equal (file, _tmp3_);
-#line 1445 "AppDirs.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp1_;
-#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (import_dir);
-#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1453 "AppDirs.c"
-}
-
-
-void
-app_dirs_set_import_dir (const gchar* path)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 190 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_if_fail (path != NULL);
-#line 191 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 191 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 191 "/home/jens/Source/shotwell/src/AppDirs.vala"
- configuration_facade_set_import_dir (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), path);
-#line 191 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 1472 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_exec_dir (void)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 195 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_exec_dir;
-#line 195 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 195 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp1_;
-#line 195 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1490 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_temp_dir (void)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp15_;
- GFile* _tmp16_;
- GError * _inner_error_ = NULL;
-#line 199 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_tmp_dir;
-#line 199 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp0_ == NULL) {
-#line 1506 "AppDirs.c"
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GFile* _tmp5_;
-#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = g_get_tmp_dir ();
-#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_strconcat (_tmp1_, "/shotwell-XXXXXX", NULL);
-#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = mkdtemp (_tmp2_);
-#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = _tmp3_;
-#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = g_file_new_for_path (_tmp4_);
-#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (app_dirs_tmp_dir);
-#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_tmp_dir = _tmp5_;
-#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp4_);
-#line 1528 "AppDirs.c"
- {
- GFile* _tmp6_;
-#line 203 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = app_dirs_tmp_dir;
-#line 203 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_file_query_exists (_tmp6_, NULL)) {
-#line 1535 "AppDirs.c"
- GFile* _tmp7_;
-#line 204 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = app_dirs_tmp_dir;
-#line 204 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_make_directory_with_parents (_tmp7_, NULL, &_inner_error_);
-#line 204 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1543 "AppDirs.c"
- goto __catch458_g_error;
- }
- }
- }
- goto __finally458;
- __catch458_g_error:
- {
- GError* err = NULL;
- GFile* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GError* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = app_dirs_tmp_dir;
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = g_file_get_path (_tmp8_);
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = _tmp9_;
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = err;
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp12_ = _tmp11_->message;
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp13_ = g_strdup_printf (_ ("Unable to create temporary directory %s: %s"), _tmp10_, _tmp12_);
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp14_ = _tmp13_;
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp14_);
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp14_);
-#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp10_);
-#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 1585 "AppDirs.c"
- }
- __finally458:
-#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 202 "/home/jens/Source/shotwell/src/AppDirs.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 202 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return NULL;
-#line 1596 "AppDirs.c"
- }
- }
-#line 211 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp15_ = app_dirs_tmp_dir;
-#line 211 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 211 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp16_;
-#line 211 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1607 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_data_subdir (const gchar* name,
- const gchar* subname)
-{
- GFile* result = NULL;
- GFile* subdir = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 214 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_data_dir ();
-#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_file_get_child (_tmp1_, name);
-#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala"
- subdir = _tmp3_;
-#line 216 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (subname != NULL) {
-#line 1638 "AppDirs.c"
- GFile* _tmp4_;
- GFile* _tmp5_;
-#line 217 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = subdir;
-#line 217 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = g_file_get_child (_tmp4_, subname);
-#line 217 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (subdir);
-#line 217 "/home/jens/Source/shotwell/src/AppDirs.vala"
- subdir = _tmp5_;
-#line 1649 "AppDirs.c"
- }
- {
- GFile* _tmp6_;
-#line 220 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = subdir;
-#line 220 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_file_query_exists (_tmp6_, NULL)) {
-#line 1657 "AppDirs.c"
- GFile* _tmp7_;
-#line 221 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = subdir;
-#line 221 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_make_directory_with_parents (_tmp7_, NULL, &_inner_error_);
-#line 221 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1665 "AppDirs.c"
- goto __catch459_g_error;
- }
- }
- }
- goto __finally459;
- __catch459_g_error:
- {
- GError* err = NULL;
- GFile* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GError* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = subdir;
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = g_file_get_path (_tmp8_);
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = _tmp9_;
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = err;
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp12_ = _tmp11_->message;
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp13_ = g_strdup_printf (_ ("Unable to create data subdirectory %s: %s"), _tmp10_, _tmp12_);
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp14_ = _tmp13_;
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp14_);
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp14_);
-#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp10_);
-#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 1707 "AppDirs.c"
- }
- __finally459:
-#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (subdir);
-#line 219 "/home/jens/Source/shotwell/src/AppDirs.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 219 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return NULL;
-#line 1720 "AppDirs.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = subdir;
-#line 227 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1726 "AppDirs.c"
-}
-
-
-void
-app_dirs_ensure_writable (GFile* dir)
-{
- GError * _inner_error_ = NULL;
-#line 230 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 231 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (g_file_query_exists (dir, NULL)) {
-#line 1738 "AppDirs.c"
- {
- GFileInfo* info = NULL;
- GFileInfo* _tmp0_;
- guint32 mode = 0U;
- GFileInfo* _tmp1_;
- gboolean _tmp2_ = FALSE;
- guint32 _tmp3_;
-#line 233 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = g_file_query_info (dir, G_FILE_ATTRIBUTE_UNIX_MODE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 233 "/home/jens/Source/shotwell/src/AppDirs.vala"
- info = _tmp0_;
-#line 233 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1752 "AppDirs.c"
- goto __catch460_g_error;
- }
-#line 234 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = info;
-#line 234 "/home/jens/Source/shotwell/src/AppDirs.vala"
- mode = g_file_info_get_attribute_uint32 (_tmp1_, G_FILE_ATTRIBUTE_UNIX_MODE) | 0700;
-#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = mode;
-#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_file_set_attribute_uint32 (dir, G_FILE_ATTRIBUTE_UNIX_MODE, _tmp3_, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (info);
-#line 1767 "AppDirs.c"
- goto __catch460_g_error;
- }
-#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!_tmp2_) {
-#line 1772 "AppDirs.c"
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = g_file_get_path (dir);
-#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = _tmp4_;
-#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = g_strdup_printf (_ ("Could not make directory %s writable"), _tmp5_);
-#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = _tmp6_;
-#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp7_);
-#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp7_);
-#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp5_);
-#line 1791 "AppDirs.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (info);
-#line 1795 "AppDirs.c"
- }
- goto __finally460;
- __catch460_g_error:
- {
- GError* err = NULL;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GError* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = g_file_get_path (dir);
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = _tmp8_;
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = err;
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = _tmp10_->message;
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp12_ = g_strdup_printf (_ ("Could not make directory %s writable: %s"), _tmp9_, _tmp11_);
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp13_ = _tmp12_;
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp13_);
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp13_);
-#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp9_);
-#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 1831 "AppDirs.c"
- }
- __finally460:
-#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 232 "/home/jens/Source/shotwell/src/AppDirs.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 232 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return;
-#line 1842 "AppDirs.c"
- }
- }
-}
-
-
-GFile*
-app_dirs_get_cache_subdir (const gchar* name,
- const gchar* subname)
-{
- GFile* result = NULL;
- GFile* subdir = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp16_;
- GError * _inner_error_ = NULL;
-#line 244 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_cache_dir ();
-#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_file_get_child (_tmp1_, name);
-#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala"
- subdir = _tmp3_;
-#line 246 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = subdir;
-#line 246 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_ensure_writable (_tmp4_);
-#line 247 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (subname != NULL) {
-#line 1881 "AppDirs.c"
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 248 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = subdir;
-#line 248 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = g_file_get_child (_tmp5_, subname);
-#line 248 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (subdir);
-#line 248 "/home/jens/Source/shotwell/src/AppDirs.vala"
- subdir = _tmp6_;
-#line 1892 "AppDirs.c"
- }
- {
- GFile* _tmp7_;
-#line 251 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = subdir;
-#line 251 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_file_query_exists (_tmp7_, NULL)) {
-#line 1900 "AppDirs.c"
- GFile* _tmp8_;
-#line 252 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = subdir;
-#line 252 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_file_make_directory_with_parents (_tmp8_, NULL, &_inner_error_);
-#line 252 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1908 "AppDirs.c"
- goto __catch461_g_error;
- }
- }
- }
- goto __finally461;
- __catch461_g_error:
- {
- GError* err = NULL;
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GError* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala"
- err = _inner_error_;
-#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _inner_error_ = NULL;
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = subdir;
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = g_file_get_path (_tmp9_);
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = _tmp10_;
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp12_ = err;
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp13_ = _tmp12_->message;
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp14_ = g_strdup_printf (_ ("Unable to create data subdirectory %s: %s"), _tmp11_, _tmp13_);
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp15_ = _tmp14_;
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_window_panic (_tmp15_);
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp15_);
-#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp11_);
-#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_error_free0 (err);
-#line 1950 "AppDirs.c"
- }
- __finally461:
-#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (subdir);
-#line 250 "/home/jens/Source/shotwell/src/AppDirs.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 250 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_clear_error (&_inner_error_);
-#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return NULL;
-#line 1963 "AppDirs.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp16_ = subdir;
-#line 257 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_ensure_writable (_tmp16_);
-#line 258 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = subdir;
-#line 258 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 1973 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_lib_dir (void)
-{
- GFile* result = NULL;
- GFile* install_dir = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- GFile* _tmp14_;
- GFile* _tmp15_;
- GFile* _tmp16_;
-#line 262 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_install_dir ();
-#line 262 "/home/jens/Source/shotwell/src/AppDirs.vala"
- install_dir = _tmp0_;
-#line 265 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = install_dir;
-#line 265 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp1_ == NULL) {
-#line 1997 "AppDirs.c"
- GFile* _tmp2_;
- GFile* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gboolean _tmp6_;
- GFile* _tmp11_;
-#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = app_dirs_get_exec_dir ();
-#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = g_file_get_path (_tmp3_);
-#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = _tmp4_;
-#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = g_str_has_suffix (_tmp5_, "src");
-#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_free0 (_tmp5_);
-#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp3_);
-#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp6_) {
-#line 2020 "AppDirs.c"
- GFile* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
-#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = app_dirs_get_exec_dir ();
-#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = _tmp7_;
-#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = g_file_get_parent (_tmp8_);
-#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = _tmp9_;
-#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp8_);
-#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp10_;
-#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (install_dir);
-#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2041 "AppDirs.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = app_dirs_get_exec_dir ();
-#line 271 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp11_;
-#line 271 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (install_dir);
-#line 271 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2051 "AppDirs.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp12_ = install_dir;
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp13_ = g_file_get_child (_tmp12_, RESOURCES_LIB);
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp14_ = _tmp13_;
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp15_ = g_file_get_child (_tmp14_, "shotwell");
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp16_ = _tmp15_;
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp14_);
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp16_;
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (install_dir);
-#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2071 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_system_plugins_dir (void)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_lib_dir ();
-#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_file_get_child (_tmp1_, "plugins");
-#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp3_;
-#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2097 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_user_plugins_dir (void)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_data_dir ();
-#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_file_get_child (_tmp1_, "plugins");
-#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp3_;
-#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2123 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_log_file (void)
-{
- GFile* result = NULL;
- const gchar* _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = g_getenv ("SHOTWELL_LOG_FILE");
-#line 286 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (_tmp0_ != NULL) {
-#line 2136 "AppDirs.c"
- const gchar* _tmp1_;
-#line 287 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = g_getenv ("SHOTWELL_LOG_FILE");
-#line 287 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (g_strcmp0 (_tmp1_, ":console:") == 0) {
-#line 288 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = NULL;
-#line 288 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2146 "AppDirs.c"
- } else {
- const gchar* _tmp2_;
- GFile* _tmp3_;
-#line 290 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_getenv ("SHOTWELL_LOG_FILE");
-#line 290 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 290 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp3_;
-#line 290 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2158 "AppDirs.c"
- }
- } else {
- const gchar* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = g_get_user_cache_dir ();
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = g_file_new_for_path (_tmp4_);
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = _tmp5_;
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = g_file_get_child (_tmp6_, "shotwell");
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = _tmp7_;
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = g_file_get_child (_tmp8_, "shotwell.log");
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = _tmp9_;
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp8_);
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp6_);
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = _tmp10_;
-#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2190 "AppDirs.c"
- }
-}
-
-
-GFile*
-app_dirs_get_thumbnailer_bin (void)
-{
- GFile* result = NULL;
-#line 299 "/home/jens/Source/shotwell/src/AppDirs.vala"
- static const char filename[] = "shotwell-video-thumbnailer";
-#line 2201 "AppDirs.c"
- GFile* f = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_libexec_dir ();
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_file_get_child (_tmp1_, "thumbnailer");
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = g_file_get_child (_tmp3_, filename);
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = _tmp4_;
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp3_);
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala"
- f = _tmp5_;
-#line 301 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = f;
-#line 301 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_file_query_exists (_tmp6_, NULL)) {
-#line 2232 "AppDirs.c"
- GFile* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = app_dirs_get_libexec_dir ();
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = _tmp7_;
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = g_file_get_child (_tmp8_, "shotwell");
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = _tmp9_;
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = g_file_get_child (_tmp10_, filename);
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (f);
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- f = _tmp11_;
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp10_);
-#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp8_);
-#line 2256 "AppDirs.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = f;
-#line 305 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2262 "AppDirs.c"
-}
-
-
-GFile*
-app_dirs_get_settings_migrator_bin (void)
-{
- GFile* result = NULL;
-#line 309 "/home/jens/Source/shotwell/src/AppDirs.vala"
- static const char filename[] = "shotwell-settings-migrator";
-#line 2272 "AppDirs.c"
- GFile* f = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp0_ = app_dirs_get_libexec_dir ();
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp1_ = _tmp0_;
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp2_ = g_file_get_child (_tmp1_, "settings-migrator");
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp3_ = _tmp2_;
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp4_ = g_file_get_child (_tmp3_, filename);
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp5_ = _tmp4_;
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp3_);
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp1_);
-#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala"
- f = _tmp5_;
-#line 311 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp6_ = f;
-#line 311 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!g_file_query_exists (_tmp6_, NULL)) {
-#line 2303 "AppDirs.c"
- GFile* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp7_ = app_dirs_get_libexec_dir ();
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp8_ = _tmp7_;
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp9_ = g_file_get_child (_tmp8_, "shotwell");
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp10_ = _tmp9_;
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _tmp11_ = g_file_get_child (_tmp10_, filename);
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (f);
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- f = _tmp11_;
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp10_);
-#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala"
- _g_object_unref0 (_tmp8_);
-#line 2327 "AppDirs.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/AppDirs.vala"
- result = f;
-#line 315 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return result;
-#line 2333 "AppDirs.c"
-}
-
-
-AppDirs*
-app_dirs_construct (GType object_type)
-{
- AppDirs* self = NULL;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- self = (AppDirs*) g_type_create_instance (object_type);
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return self;
-#line 2345 "AppDirs.c"
-}
-
-
-AppDirs*
-app_dirs_new (void)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return app_dirs_construct (TYPE_APP_DIRS);
-#line 2354 "AppDirs.c"
-}
-
-
-static void
-value_app_dirs_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- value->data[0].v_pointer = NULL;
-#line 2363 "AppDirs.c"
-}
-
-
-static void
-value_app_dirs_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_unref (value->data[0].v_pointer);
-#line 2374 "AppDirs.c"
- }
-}
-
-
-static void
-value_app_dirs_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- dest_value->data[0].v_pointer = app_dirs_ref (src_value->data[0].v_pointer);
-#line 2387 "AppDirs.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2391 "AppDirs.c"
- }
-}
-
-
-static gpointer
-value_app_dirs_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return value->data[0].v_pointer;
-#line 2401 "AppDirs.c"
-}
-
-
-static gchar*
-value_app_dirs_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (collect_values[0].v_pointer) {
-#line 2413 "AppDirs.c"
- AppDirs * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2420 "AppDirs.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.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 2424 "AppDirs.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- value->data[0].v_pointer = app_dirs_ref (object);
-#line 2428 "AppDirs.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- value->data[0].v_pointer = NULL;
-#line 2432 "AppDirs.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return NULL;
-#line 2436 "AppDirs.c"
-}
-
-
-static gchar*
-value_app_dirs_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- AppDirs ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2452 "AppDirs.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- *object_p = NULL;
-#line 2458 "AppDirs.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- *object_p = value->data[0].v_pointer;
-#line 2462 "AppDirs.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- *object_p = app_dirs_ref (value->data[0].v_pointer);
-#line 2466 "AppDirs.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return NULL;
-#line 2470 "AppDirs.c"
-}
-
-
-GParamSpec*
-param_spec_app_dirs (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecAppDirs* spec;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_APP_DIRS), NULL);
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return G_PARAM_SPEC (spec);
-#line 2490 "AppDirs.c"
-}
-
-
-gpointer
-value_get_app_dirs (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APP_DIRS), NULL);
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return value->data[0].v_pointer;
-#line 2501 "AppDirs.c"
-}
-
-
-void
-value_set_app_dirs (GValue* value,
- gpointer v_object)
-{
- AppDirs * old;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APP_DIRS));
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_APP_DIRS));
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- 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/AppDirs.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_ref (value->data[0].v_pointer);
-#line 2524 "AppDirs.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- value->data[0].v_pointer = NULL;
-#line 2528 "AppDirs.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_unref (old);
-#line 2534 "AppDirs.c"
- }
-}
-
-
-void
-value_take_app_dirs (GValue* value,
- gpointer v_object)
-{
- AppDirs * old;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APP_DIRS));
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_APP_DIRS));
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- 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/AppDirs.vala"
- value->data[0].v_pointer = v_object;
-#line 2556 "AppDirs.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- value->data[0].v_pointer = NULL;
-#line 2560 "AppDirs.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_unref (old);
-#line 2566 "AppDirs.c"
- }
-}
-
-
-static void
-app_dirs_class_init (AppDirsClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- app_dirs_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- ((AppDirsClass *) klass)->finalize = app_dirs_finalize;
-#line 2578 "AppDirs.c"
-}
-
-
-static void
-app_dirs_instance_init (AppDirs * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- self->ref_count = 1;
-#line 2587 "AppDirs.c"
-}
-
-
-static void
-app_dirs_finalize (AppDirs * obj)
-{
- AppDirs * self;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_APP_DIRS, AppDirs);
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_signal_handlers_destroy (self);
-#line 2599 "AppDirs.c"
-}
-
-
-GType
-app_dirs_get_type (void)
-{
- static volatile gsize app_dirs_type_id__volatile = 0;
- if (g_once_init_enter (&app_dirs_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_app_dirs_init, value_app_dirs_free_value, value_app_dirs_copy_value, value_app_dirs_peek_pointer, "p", value_app_dirs_collect_value, "p", value_app_dirs_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (AppDirsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) app_dirs_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AppDirs), 0, (GInstanceInitFunc) app_dirs_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType app_dirs_type_id;
- app_dirs_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AppDirs", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&app_dirs_type_id__volatile, app_dirs_type_id);
- }
- return app_dirs_type_id__volatile;
-}
-
-
-gpointer
-app_dirs_ref (gpointer instance)
-{
- AppDirs * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- return instance;
-#line 2628 "AppDirs.c"
-}
-
-
-void
-app_dirs_unref (gpointer instance)
-{
- AppDirs * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- APP_DIRS_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2643 "AppDirs.c"
- }
-}
-
-
-
diff --git a/src/AppDirs.vala b/src/AppDirs.vala
index ffea859..74b045f 100644
--- a/src/AppDirs.vala
+++ b/src/AppDirs.vala
@@ -258,6 +258,15 @@ class AppDirs {
return subdir;
}
+#if ENABLE_FACES
+ public static File get_resources_dir() {
+ File? install_dir = get_install_dir();
+
+ return (install_dir != null) ? install_dir.get_child("share").get_child("shotwell")
+ : get_exec_dir();
+ }
+#endif
+
public static File get_lib_dir() {
File? install_dir = get_install_dir();
@@ -302,6 +311,11 @@ class AppDirs {
// If we're running installed.
f = AppDirs.get_libexec_dir () .get_child ("shotwell").get_child (filename);
}
+
+ if (!f.query_exists()) {
+ f = AppDirs.get_libexec_dir().get_parent().get_child("thumbnailer").get_child(filename);
+ }
+
return f;
}
@@ -314,5 +328,25 @@ class AppDirs {
}
return f;
}
+
+#if ENABLE_FACES
+ public static File get_facedetect_bin() {
+ const string filename = "shotwell-facedetect";
+ File f = AppDirs.get_libexec_dir().get_parent().get_child("facedetect").get_child (filename);
+ if (!f.query_exists()) {
+ f = AppDirs.get_libexec_dir().get_child("shotwell").get_child(filename);
+ }
+ return f;
+ }
+
+ public static File get_haarcascade_file() {
+ File f = File.new_for_path(AppDirs.get_exec_dir().get_parent().get_parent().get_child("facedetect").get_child("facedetect-haarcascade.xml").get_path());
+ if (f.query_exists()) {//testing meson builddir
+ return f;
+ }
+ return get_resources_dir().get_child("facedetect-haarcascade.xml");
+ }
+#endif
+
}
diff --git a/src/AppWindow.c b/src/AppWindow.c
deleted file mode 100644
index d7a3963..0000000
--- a/src/AppWindow.c
+++ /dev/null
@@ -1,5595 +0,0 @@
-/* AppWindow.c generated by valac 0.40.4, the Vala compiler
- * generated from AppWindow.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <time.h>
-#include <gdk/gdk.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <cairo.h>
-#include <glib/gi18n-lib.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gee.h>
-
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-typedef struct _PageWindowPrivate PageWindowPrivate;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-typedef struct _FullscreenWindowPrivate FullscreenWindowPrivate;
-enum {
- FULLSCREEN_WINDOW_0_PROPERTY,
- FULLSCREEN_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* fullscreen_window_properties[FULLSCREEN_WINDOW_NUM_PROPERTIES];
-#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_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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-
-#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ())
-#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage))
-#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
-#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE))
-#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE))
-#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
-
-typedef struct _SlideshowPage SlideshowPage;
-typedef struct _SlideshowPageClass SlideshowPageClass;
-enum {
- PAGE_WINDOW_0_PROPERTY,
- PAGE_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* page_window_properties[PAGE_WINDOW_NUM_PROPERTIES];
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-typedef struct _AppWindowPrivate AppWindowPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-enum {
- APP_WINDOW_0_PROPERTY,
- APP_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* app_window_properties[APP_WINDOW_NUM_PROPERTIES];
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_DIRECT_WINDOW (direct_window_get_type ())
-#define DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_WINDOW, DirectWindow))
-#define DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_WINDOW, DirectWindowClass))
-#define IS_DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_WINDOW))
-#define IS_DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_WINDOW))
-#define DIRECT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_WINDOW, DirectWindowClass))
-
-typedef struct _DirectWindow DirectWindow;
-typedef struct _DirectWindowClass DirectWindowClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
-
-#define TYPE_COMMAND_DESCRIPTION (command_description_get_type ())
-#define COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescription))
-#define IS_COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_DESCRIPTION))
-#define COMMAND_DESCRIPTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescriptionIface))
-
-typedef struct _CommandDescription CommandDescription;
-typedef struct _CommandDescriptionIface CommandDescriptionIface;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _PageWindow {
- GtkApplicationWindow parent_instance;
- PageWindowPrivate * priv;
-};
-
-struct _PageWindowClass {
- GtkApplicationWindowClass parent_class;
- void (*switched_pages) (PageWindow* self, Page* old_page, Page* new_page);
- void (*set_current_page) (PageWindow* self, Page* page);
- void (*clear_current_page) (PageWindow* self);
-};
-
-struct _FullscreenWindow {
- PageWindow parent_instance;
- FullscreenWindowPrivate * priv;
-};
-
-struct _FullscreenWindowClass {
- PageWindowClass parent_class;
-};
-
-struct _FullscreenWindowPrivate {
- GtkOverlay* overlay;
- GtkToolbar* toolbar;
- GtkToolButton* close_button;
- GtkToggleToolButton* pin_button;
- gboolean is_toolbar_shown;
- gboolean waiting_for_invoke;
- time_t left_toolbar_time;
- gboolean switched_to;
- gboolean is_toolbar_dismissal_enabled;
-};
-
-struct _PageWindowPrivate {
- Page* current_page;
- gint busy_counter;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _AppWindow {
- PageWindow parent_instance;
- AppWindowPrivate * priv;
- gboolean maximized;
- Dimensions dimensions;
- gint pos_x;
- gint pos_y;
-};
-
-struct _AppWindowClass {
- PageWindowClass parent_class;
- void (*on_fullscreen) (AppWindow* self);
- gchar* (*get_app_role) (AppWindow* self);
- void (*on_quit) (AppWindow* self);
- void (*add_actions) (AppWindow* self);
- void (*update_common_action_availability) (AppWindow* self, Page* old_page, Page* new_page);
- void (*update_common_actions) (AppWindow* self, Page* page, gint selected_count, gint count);
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _CommandDescriptionIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (CommandDescription* self);
- gchar* (*get_explanation) (CommandDescription* self);
-};
-
-
-static gpointer fullscreen_window_parent_class = NULL;
-static gpointer page_window_parent_class = NULL;
-static gpointer app_window_parent_class = NULL;
-extern AppWindow* app_window_instance;
-AppWindow* app_window_instance = NULL;
-static FullscreenWindow* app_window_fullscreen_window;
-static FullscreenWindow* app_window_fullscreen_window = NULL;
-static CommandManager* app_window_command_manager;
-static CommandManager* app_window_command_manager = NULL;
-
-GType page_window_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-#define FULLSCREEN_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FULLSCREEN_WINDOW, FullscreenWindowPrivate))
-#define FULLSCREEN_WINDOW_TOOLBAR_INVOCATION_MSEC 250
-#define FULLSCREEN_WINDOW_TOOLBAR_DISMISSAL_SEC 2
-#define FULLSCREEN_WINDOW_TOOLBAR_CHECK_DISMISSAL_MSEC 500
-static void fullscreen_window_on_close (FullscreenWindow* self);
-static void _fullscreen_window_on_close_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-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);
-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;
-ConfigFacade* config_facade_get_instance (void);
-gboolean configuration_facade_get_pin_toolbar_state (ConfigurationFacade* self);
-void fullscreen_window_update_toolbar_dismissal (FullscreenWindow* self);
-static void _fullscreen_window_update_toolbar_dismissal_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-GtkToolbar* page_get_toolbar (Page* self);
-#define RESOURCES_TRANSIENT_WINDOW_OPACITY 0.90
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType slideshow_page_get_type (void) G_GNUC_CONST;
-static void fullscreen_window_hide_toolbar (FullscreenWindow* self);
-static void _fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar (SlideshowPage* _sender,
- gpointer self);
-void page_set_cursor_hide_time (Page* self,
- gint hide_time);
-void page_start_cursor_hiding (Page* self);
-gboolean configuration_facade_get_display_toolbar (ConfigurationFacade* self);
-static void fullscreen_window_invoke_toolbar (FullscreenWindow* self);
-void fullscreen_window_disable_toolbar_dismissal (FullscreenWindow* self);
-static gboolean fullscreen_window_real_configure_event (GtkWidget* base,
- GdkEventConfigure* event);
-Page* page_window_get_current_page (PageWindow* self);
-void page_switched_to (Page* self);
-static gboolean fullscreen_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-void configuration_facade_set_pin_toolbar_state (ConfigurationFacade* self,
- gboolean state);
-void app_window_end_fullscreen (AppWindow* self);
-void fullscreen_window_close (FullscreenWindow* self);
-static void fullscreen_window_real_destroy (GtkWidget* base);
-void page_window_clear_current_page (PageWindow* self);
-void page_stop_cursor_hiding (Page* self);
-void page_switching_from (Page* self);
-static gboolean fullscreen_window_real_delete_event (GtkWidget* base,
- GdkEventAny* event);
-static gboolean fullscreen_window_real_motion_notify_event (GtkWidget* base,
- GdkEventMotion* event);
-static gboolean fullscreen_window_is_pointer_in_toolbar (FullscreenWindow* self);
-static gboolean fullscreen_window_on_check_toolbar_invocation (FullscreenWindow* self);
-static gboolean _fullscreen_window_on_check_toolbar_invocation_gsource_func (gpointer self);
-static gboolean fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* self);
-static gboolean _fullscreen_window_on_check_toolbar_dismissal_gsource_func (gpointer self);
-static void fullscreen_window_finalize (GObject * obj);
-#define PAGE_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PAGE_WINDOW, PageWindowPrivate))
-void page_window_switched_pages (PageWindow* self,
- Page* old_page,
- Page* new_page);
-static void page_window_real_switched_pages (PageWindow* self,
- Page* old_page,
- Page* new_page);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-GtkApplication* application_get_system_app (Application* self);
-static void page_window_real_set_current_page (PageWindow* self,
- Page* page);
-void page_clear_container (Page* self);
-void page_set_container (Page* self,
- GtkWindow* container);
-static void page_window_real_clear_current_page (PageWindow* self);
-static gboolean page_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-gboolean page_notify_app_key_pressed (Page* self,
- GdkEventKey* event);
-static gboolean page_window_real_key_release_event (GtkWidget* base,
- GdkEventKey* event);
-gboolean page_notify_app_key_released (Page* self,
- GdkEventKey* event);
-static gboolean page_window_real_focus_in_event (GtkWidget* base,
- GdkEventFocus* event);
-gboolean page_notify_app_focus_in (Page* self,
- GdkEventFocus* event);
-static gboolean page_window_real_focus_out_event (GtkWidget* base,
- GdkEventFocus* event);
-gboolean page_notify_app_focus_out (Page* self,
- GdkEventFocus* event);
-static gboolean page_window_real_configure_event (GtkWidget* base,
- GdkEventConfigure* event);
-gboolean page_notify_configure_event (Page* self,
- GdkEventConfigure* event);
-void page_window_set_busy_cursor (PageWindow* self);
-void spin_event_loop (void);
-void page_window_set_normal_cursor (PageWindow* self);
-static void page_window_finalize (GObject * obj);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-#define APP_WINDOW_DND_ICON_SCALE 128
-void app_window_on_about (AppWindow* self);
-static void _app_window_on_about_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void app_window_on_quit (AppWindow* self);
-static void _app_window_on_quit_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void app_window_on_fullscreen (AppWindow* self);
-static void _app_window_on_fullscreen_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void app_window_on_help_contents (AppWindow* self);
-static void _app_window_on_help_contents_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void app_window_on_help_faq (AppWindow* self);
-static void _app_window_on_help_faq_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void app_window_on_help_report_problem (AppWindow* self);
-static void _app_window_on_help_report_problem_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void app_window_on_undo (AppWindow* self);
-static void _app_window_on_undo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void app_window_on_redo (AppWindow* self);
-static void _app_window_on_redo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void app_window_on_jump_to_file (AppWindow* self);
-static void _app_window_on_jump_to_file_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void app_window_on_select_all (AppWindow* self);
-static void _app_window_on_select_all_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void app_window_on_select_none (AppWindow* self);
-static void _app_window_on_select_none_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-AppWindow* app_window_construct (GType object_type);
-#define RESOURCES_APP_TITLE "Shotwell"
-GType library_window_get_type (void) G_GNUC_CONST;
-void configuration_facade_get_library_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions);
-GType direct_window_get_type (void) G_GNUC_CONST;
-void configuration_facade_get_direct_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions);
-#define COMMAND_MANAGER_DEFAULT_DEPTH 20
-CommandManager* command_manager_new (gint depth);
-CommandManager* command_manager_construct (GType object_type,
- gint depth);
-static void app_window_on_command_manager_altered (AppWindow* self);
-static void _app_window_on_command_manager_altered_command_manager_altered (CommandManager* _sender,
- gboolean can_undo,
- gboolean can_redo,
- gpointer self);
-void app_window_add_actions (AppWindow* self);
-#define RESOURCES_CUSTOM_CSS "LibraryWindow .pane-separator {\n" \
-" background-color: @borders;\n" \
-" }\n" \
-" SearchFilterToolbar {\n" \
-" border-width: 0 0 1px 0;\n" \
-" border-style: solid;\n" \
-" border-color: @borders;\n" \
-" }"
-static void app_window_real_on_fullscreen (AppWindow* self);
-gboolean app_window_has_instance (void);
-FullscreenWindow* app_window_get_fullscreen (void);
-GtkBuilder* app_window_create_builder (const gchar* glade_filename,
- void* user);
-gchar* resources_get_ui (const gchar* filename);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-void app_window_error_message_with_title (const gchar* title,
- const gchar* message,
- GtkWindow* parent,
- gboolean should_escape);
-gchar* build_alert_body_text (const gchar* primary_text,
- const gchar* secondary_text,
- gboolean should_escape);
-gboolean app_window_negate_affirm_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent);
-GtkResponseType app_window_negate_affirm_cancel_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent);
-GtkResponseType app_window_affirm_cancel_question (const gchar* message,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent);
-GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* affirmative_all,
- const gchar* title,
- GtkWindow* parent);
-GQuark database_error_quark (void);
-void app_window_database_error (GError* err);
-void app_window_panic (const gchar* msg);
-void application_panic (Application* self);
-gchar* app_window_get_app_role (AppWindow* self);
-static gchar* app_window_real_get_app_role (AppWindow* self);
-#define RESOURCES_APP_VERSION _VERSION
-#define RESOURCES_COPYRIGHT _ ("Copyright 2016 Software Freedom Conservancy Inc.")
-#define RESOURCES_HOME_URL "https://wiki.gnome.org/Apps/Shotwell"
-#define RESOURCES_LICENSE "\n" \
-"Shotwell is free software; you can redistribute it and/or modify it un" \
-"der the \n" \
-"terms of the GNU Lesser General Public License as published by the Fre" \
-"e \n" \
-"Software Foundation; either version 2.1 of the License, or (at your op" \
-"tion) \n" \
-"any later version.\n" \
-"\n" \
-"Shotwell is distributed in the hope that it will be useful, but WITHOU" \
-"T \n" \
-"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \
-"FITNESS\n" \
-"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \
-"or \n" \
-"more details.\n" \
-"\n" \
-"You should have received a copy of the GNU Lesser General Public Licen" \
-"se \n" \
-"along with Shotwell; if not, write to the Free Software Foundation, In" \
-"c., \n" \
-"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
-GdkPixbuf* resources_get_icon (const gchar* name,
- gint scale);
-#define RESOURCES_ICON_ABOUT_LOGO "about-braunschweig.jpg"
-void resources_launch_help (GdkScreen* screen,
- const gchar* anchor,
- GError** error);
-void app_window_show_uri (AppWindow* self,
- const gchar* url,
- GError** error);
-#define RESOURCES_BUG_DB_URL "https://wiki.gnome.org/Apps/Shotwell/ReportingABug"
-#define RESOURCES_FAQ_URL "https://wiki.gnome.org/Apps/Shotwell/FAQ"
-static void app_window_real_on_quit (AppWindow* self);
-void application_exit (Application* self);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gint view_collection_get_selected_count (ViewCollection* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-DataView* view_collection_get_selected_at (ViewCollection* self,
- gint index);
-DataSource* data_view_get_source (DataView* self);
-void app_window_show_file_uri (AppWindow* self,
- GFile* file,
- GError** error);
-GFile* media_source_get_master_file (MediaSource* self);
-gchar* resources_jump_to_file_failed (GError* err);
-static void app_window_real_destroy (GtkWidget* base);
-gchar* get_nautilus_install_location (void);
-void show_file_in_nautilus (const gchar* filename,
- GError** error);
-void sys_show_uri (GdkScreen* screen,
- const gchar* uri,
- GError** error);
-static void app_window_real_add_actions (AppWindow* self);
-void app_window_go_fullscreen (AppWindow* self,
- Page* page);
-void page_switching_to_fullscreen (Page* self,
- FullscreenWindow* fsw);
-void page_returning_from_fullscreen (Page* self,
- FullscreenWindow* fsw);
-GAction* app_window_get_common_action (AppWindow* self,
- const gchar* name);
-void app_window_set_common_action_sensitive (AppWindow* self,
- const gchar* name,
- gboolean sensitive);
-void app_window_set_common_action_important (AppWindow* self,
- const gchar* name,
- gboolean important);
-void app_window_set_common_action_visible (AppWindow* self,
- const gchar* name,
- gboolean visible);
-static void app_window_real_switched_pages (PageWindow* base,
- Page* old_page,
- Page* new_page);
-void app_window_update_common_action_availability (AppWindow* self,
- Page* old_page,
- Page* new_page);
-static void app_window_on_update_common_actions (AppWindow* self);
-static void _app_window_on_update_common_actions_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static void _app_window_on_update_common_actions_view_collection_selection_group_altered (ViewCollection* _sender,
- gpointer self);
-static void _app_window_on_update_common_actions_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self);
-void app_window_update_common_actions (AppWindow* self,
- Page* page,
- gint selected_count,
- gint count);
-gint data_collection_get_count (DataCollection* self);
-static void app_window_real_update_common_action_availability (AppWindow* self,
- Page* old_page,
- Page* new_page);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-static void app_window_real_update_common_actions (AppWindow* self,
- Page* page,
- gint selected_count,
- gint count);
-void app_window_decorate_undo_action (AppWindow* self);
-void app_window_decorate_redo_action (AppWindow* self);
-void app_window_update_menu_item_label (AppWindow* self,
- const gchar* id,
- const gchar* new_label);
-GMenuModel* page_get_menubar (Page* self);
-CommandManager* app_window_get_command_manager (void);
-GType command_description_get_type (void) G_GNUC_CONST;
-static void app_window_decorate_command_manager_action (AppWindow* self,
- const gchar* name,
- const gchar* prefix,
- const gchar* default_explanation,
- CommandDescription* desc);
-gchar* command_description_get_name (CommandDescription* self);
-#define RESOURCES_UNDO_MENU _ ("_Undo")
-CommandDescription* command_manager_get_undo_description (CommandManager* self);
-#define RESOURCES_REDO_MENU _ ("_Redo")
-CommandDescription* command_manager_get_redo_description (CommandManager* self);
-gboolean command_manager_undo (CommandManager* self);
-gboolean command_manager_redo (CommandManager* self);
-void view_collection_select_all (ViewCollection* self);
-void view_collection_unselect_all (ViewCollection* self);
-static gboolean app_window_real_configure_event (GtkWidget* base,
- GdkEventConfigure* event);
-static void app_window_finalize (GObject * obj);
-
-static const GActionEntry FULLSCREEN_WINDOW_entries[1] = {{"LeaveFullscreen", _fullscreen_window_on_close_gsimple_action_activate_callback}};
-static const GActionEntry APP_WINDOW_common_actions[11] = {{"CommonAbout", _app_window_on_about_gsimple_action_activate_callback}, {"CommonQuit", _app_window_on_quit_gsimple_action_activate_callback}, {"CommonFullscreen", _app_window_on_fullscreen_gsimple_action_activate_callback}, {"CommonHelpContents", _app_window_on_help_contents_gsimple_action_activate_callback}, {"CommonHelpFAQ", _app_window_on_help_faq_gsimple_action_activate_callback}, {"CommonHelpReportProblem", _app_window_on_help_report_problem_gsimple_action_activate_callback}, {"CommonUndo", _app_window_on_undo_gsimple_action_activate_callback}, {"CommonRedo", _app_window_on_redo_gsimple_action_activate_callback}, {"CommonJumpToFile", _app_window_on_jump_to_file_gsimple_action_activate_callback}, {"CommonSelectAll", _app_window_on_select_all_gsimple_action_activate_callback}, {"CommonSelectNone", _app_window_on_select_none_gsimple_action_activate_callback}};
-extern const gchar* RESOURCES_AUTHORS[6];
-
-static void
-_fullscreen_window_on_close_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 22 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_on_close ((FullscreenWindow*) self);
-#line 737 "AppWindow.c"
-}
-
-
-static void
-_fullscreen_window_update_toolbar_dismissal_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 50 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_update_toolbar_dismissal ((FullscreenWindow*) self);
-#line 747 "AppWindow.c"
-}
-
-
-static void
-_fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar (SlideshowPage* _sender,
- gpointer self)
-{
-#line 65 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_hide_toolbar ((FullscreenWindow*) self);
-#line 757 "AppWindow.c"
-}
-
-
-FullscreenWindow*
-fullscreen_window_construct (GType object_type,
- Page* page)
-{
- FullscreenWindow * self = NULL;
-#line 32 "/home/jens/Source/shotwell/src/AppWindow.vala"
- static const gchar* accels[2] = {"F11", NULL};
-#line 768 "AppWindow.c"
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GdkScreen* _tmp2_;
- GdkRectangle monitor = {0};
- GdkRectangle _tmp3_ = {0};
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- ConfigFacade* _tmp8_;
- ConfigFacade* _tmp9_;
- GtkToggleToolButton* _tmp10_;
- GtkToggleToolButton* _tmp11_;
- GtkToggleToolButton* _tmp12_;
- GtkToggleToolButton* _tmp13_;
- gboolean _tmp14_;
- GtkToggleToolButton* _tmp15_;
- GtkToolButton* _tmp16_;
- GtkToolButton* _tmp17_;
- GtkToolButton* _tmp18_;
- GtkToolbar* _tmp19_;
- GtkToolbar* _tmp20_;
- GtkToolbar* _tmp21_;
- GtkToolbar* _tmp22_;
- GtkToolbar* _tmp23_;
- GtkToolbar* _tmp24_;
- GtkToolbar* _tmp27_;
- GtkToolButton* _tmp28_;
- GtkOverlay* _tmp29_;
- GtkOverlay* _tmp30_;
- GtkOverlay* _tmp31_;
- GtkToolbar* _tmp32_;
- GdkRectangle _tmp33_;
- gint _tmp34_;
- GdkRectangle _tmp35_;
- gint _tmp36_;
- gboolean _tmp37_ = FALSE;
- ConfigFacade* _tmp38_;
- ConfigFacade* _tmp39_;
- gboolean _tmp40_;
-#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"
- self = (FullscreenWindow*) page_window_construct (object_type);
-#line 29 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), page);
-#line 31 "/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), 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"
- _tmp0_ = app_window_get_instance ();
-#line 35 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 35 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, 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), _tmp2_);
-#line 35 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 38 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_get_monitor_geometry (self, &_tmp3_);
-#line 38 "/home/jens/Source/shotwell/src/AppWindow.vala"
- monitor = _tmp3_;
-#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = monitor;
-#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = _tmp4_.x;
-#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = monitor;
-#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = _tmp6_.y;
-#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_move (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp5_, _tmp7_);
-#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"
- _tmp8_ = config_facade_get_instance ();
-#line 44 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = _tmp8_;
-#line 44 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->is_toolbar_dismissal_enabled = configuration_facade_get_pin_toolbar_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 44 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp9_);
-#line 46 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = self->priv->pin_button;
-#line 46 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_tool_button_get_type (), GtkToolButton), "pin-toolbar");
-#line 47 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = self->priv->pin_button;
-#line 47 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_tool_button_get_type (), GtkToolButton), _ ("Pin Toolbar"));
-#line 48 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp12_ = self->priv->pin_button;
-#line 48 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_tool_item_get_type (), GtkToolItem), _ ("Pin the toolbar open"));
-#line 49 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp13_ = self->priv->pin_button;
-#line 49 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp14_ = self->priv->is_toolbar_dismissal_enabled;
-#line 49 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_toggle_tool_button_set_active (_tmp13_, !_tmp14_);
-#line 50 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp15_ = self->priv->pin_button;
-#line 50 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, 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"
- _tmp16_ = self->priv->close_button;
-#line 52 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_tool_button_set_icon_name (_tmp16_, "view-restore");
-#line 53 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp17_ = self->priv->close_button;
-#line 53 "/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), _ ("Leave fullscreen"));
-#line 54 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp18_ = self->priv->close_button;
-#line 54 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_actionable_get_type (), GtkActionable), "win.LeaveFullscreen");
-#line 56 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp19_ = page_get_toolbar (page);
-#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 = _tmp19_;
-#line 57 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp20_ = self->priv->toolbar;
-#line 57 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_toolbar_set_show_arrow (_tmp20_, FALSE);
-#line 58 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp21_ = self->priv->toolbar;
-#line 58 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END);
-#line 59 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp22_ = self->priv->toolbar;
-#line 59 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 60 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp23_ = self->priv->toolbar;
-#line 60 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), "expand", FALSE, NULL);
-#line 61 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp24_ = self->priv->toolbar;
-#line 61 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_set_opacity (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), RESOURCES_TRANSIENT_WINDOW_OPACITY);
-#line 63 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_SLIDESHOW_PAGE)) {
-#line 65 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_SLIDESHOW_PAGE, SlideshowPage), "hide-toolbar", (GCallback) _fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar, self, 0);
-#line 917 "AppWindow.c"
- } else {
- GtkToolbar* _tmp25_;
- GtkToggleToolButton* _tmp26_;
-#line 68 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp25_ = self->priv->toolbar;
-#line 68 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp26_ = self->priv->pin_button;
-#line 68 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_toolbar_insert (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 927 "AppWindow.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_set_cursor_hide_time (page, FULLSCREEN_WINDOW_TOOLBAR_DISMISSAL_SEC * 1000);
-#line 72 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_start_cursor_hiding (page);
-#line 74 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp27_ = self->priv->toolbar;
-#line 74 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp28_ = self->priv->close_button;
-#line 74 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_toolbar_insert (_tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 76 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp29_ = 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 (_tmp29_, gtk_widget_get_type (), GtkWidget));
-#line 77 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp30_ = self->priv->overlay;
-#line 77 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget));
-#line 78 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp31_ = self->priv->overlay;
-#line 78 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp32_ = self->priv->toolbar;
-#line 78 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_overlay_add_overlay (_tmp31_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget));
-#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp33_ = monitor;
-#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp34_ = _tmp33_.width;
-#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp35_ = monitor;
-#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp36_ = _tmp35_.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), _tmp34_, _tmp36_);
-#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"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 90 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_POINTER_MOTION_MASK);
-#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp38_ = config_facade_get_instance ();
-#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp39_ = _tmp38_;
-#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp40_ = configuration_facade_get_display_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp39_);
-#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp40_) {
-#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp37_ = TRUE;
-#line 981 "AppWindow.c"
- } else {
- gboolean _tmp41_;
-#line 96 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp41_ = self->priv->is_toolbar_dismissal_enabled;
-#line 96 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp37_ = !_tmp41_;
-#line 988 "AppWindow.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp37_) {
-#line 97 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_invoke_toolbar (self);
-#line 994 "AppWindow.c"
- } else {
-#line 99 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_hide_toolbar (self);
-#line 998 "AppWindow.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget));
-#line 106 "/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 1006 "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 1015 "AppWindow.c"
-}
-
-
-void
-fullscreen_window_disable_toolbar_dismissal (FullscreenWindow* self)
-{
-#line 109 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (self));
-#line 110 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->is_toolbar_dismissal_enabled = FALSE;
-#line 1026 "AppWindow.c"
-}
-
-
-void
-fullscreen_window_update_toolbar_dismissal (FullscreenWindow* self)
-{
- GtkToggleToolButton* _tmp0_;
-#line 113 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (self));
-#line 114 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->pin_button;
-#line 114 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->is_toolbar_dismissal_enabled = !gtk_toggle_tool_button_get_active (_tmp0_);
-#line 1040 "AppWindow.c"
-}
-
-
-static void
-fullscreen_window_get_monitor_geometry (FullscreenWindow* self,
- GdkRectangle* result)
-{
- GdkRectangle monitor = {0};
- GdkScreen* _tmp0_;
- GdkScreen* _tmp1_;
- AppWindow* _tmp2_;
- AppWindow* _tmp3_;
- GdkWindow* _tmp4_;
- GdkRectangle _tmp5_ = {0};
-#line 117 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (self));
-#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = app_window_get_instance ();
-#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gdk_screen_get_monitor_geometry (_tmp0_, gdk_screen_get_monitor_at_window (_tmp1_, _tmp4_), &_tmp5_);
-#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala"
- monitor = _tmp5_;
-#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 123 "/home/jens/Source/shotwell/src/AppWindow.vala"
- *result = monitor;
-#line 123 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 1077 "AppWindow.c"
-}
-
-
-static gboolean
-fullscreen_window_real_configure_event (GtkWidget* base,
- GdkEventConfigure* event)
-{
- FullscreenWindow * self;
- gboolean result = FALSE;
- gboolean _result_ = FALSE;
- gboolean _tmp0_;
-#line 126 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 126 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 127 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _result_ = GTK_WIDGET_CLASS (fullscreen_window_parent_class)->configure_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget), event);
-#line 129 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->switched_to;
-#line 129 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp0_) {
-#line 1099 "AppWindow.c"
- Page* _tmp1_;
- Page* _tmp2_;
-#line 130 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 130 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = _tmp1_;
-#line 130 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_switched_to (_tmp2_);
-#line 130 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp2_);
-#line 131 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->switched_to = TRUE;
-#line 1112 "AppWindow.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _result_;
-#line 134 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1118 "AppWindow.c"
-}
-
-
-static gboolean
-fullscreen_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- FullscreenWindow * self;
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- gboolean _tmp2_ = FALSE;
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_;
-#line 137 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 137 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 139 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = event->keyval;
-#line 139 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 139 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (g_strcmp0 (_tmp1_, "Escape") == 0) {
-#line 140 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_on_close (self);
-#line 142 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 142 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1151 "AppWindow.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (GTK_WIDGET_CLASS (fullscreen_window_parent_class)->key_press_event != NULL) {
-#line 146 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = 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), event);
-#line 1157 "AppWindow.c"
- } else {
-#line 146 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = FALSE;
-#line 1161 "AppWindow.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_) {
-#line 147 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 147 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1169 "AppWindow.c"
- }
-#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = app_window_get_instance ();
-#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp5_);
-#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = _tmp5_;
-#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp6_;
-#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1185 "AppWindow.c"
-}
-
-
-static void
-fullscreen_window_on_close (FullscreenWindow* self)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
-#line 153 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (self));
-#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->priv->is_toolbar_dismissal_enabled;
-#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala"
- configuration_facade_set_pin_toolbar_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_);
-#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 155 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_hide_toolbar (self);
-#line 157 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = app_window_get_instance ();
-#line 157 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 157 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_end_fullscreen (_tmp4_);
-#line 157 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 1219 "AppWindow.c"
-}
-
-
-void
-fullscreen_window_close (FullscreenWindow* self)
-{
-#line 160 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (self));
-#line 161 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_on_close (self);
-#line 1230 "AppWindow.c"
-}
-
-
-static void
-fullscreen_window_real_destroy (GtkWidget* base)
-{
- FullscreenWindow * self;
- Page* page = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
-#line 164 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 165 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 165 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page = _tmp0_;
-#line 166 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_window_clear_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 168 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = page;
-#line 168 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ != NULL) {
-#line 1253 "AppWindow.c"
- Page* _tmp2_;
- Page* _tmp3_;
-#line 169 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = page;
-#line 169 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_stop_cursor_hiding (_tmp2_);
-#line 170 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = page;
-#line 170 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_switching_from (_tmp3_);
-#line 1264 "AppWindow.c"
- }
-#line 173 "/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 164 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (page);
-#line 1270 "AppWindow.c"
-}
-
-
-static gboolean
-fullscreen_window_real_delete_event (GtkWidget* base,
- GdkEventAny* event)
-{
- FullscreenWindow * self;
- gboolean result = FALSE;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
-#line 176 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 176 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 177 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_on_close (self);
-#line 178 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_get_instance ();
-#line 178 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 178 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 178 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 180 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 180 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1300 "AppWindow.c"
-}
-
-
-static gboolean
-_fullscreen_window_on_check_toolbar_invocation_gsource_func (gpointer self)
-{
- gboolean result;
- result = fullscreen_window_on_check_toolbar_invocation ((FullscreenWindow*) self);
-#line 189 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1311 "AppWindow.c"
-}
-
-
-static gboolean
-fullscreen_window_real_motion_notify_event (GtkWidget* base,
- GdkEventMotion* event)
-{
- FullscreenWindow * self;
- gboolean result = FALSE;
- gboolean _tmp0_;
- gboolean _tmp3_ = FALSE;
-#line 183 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 183 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 184 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->is_toolbar_shown;
-#line 184 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp0_) {
-#line 1331 "AppWindow.c"
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
-#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->priv->waiting_for_invoke;
-#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp2_) {
-#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = fullscreen_window_is_pointer_in_toolbar (self);
-#line 1340 "AppWindow.c"
- } else {
-#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = FALSE;
-#line 1344 "AppWindow.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_) {
-#line 189 "/home/jens/Source/shotwell/src/AppWindow.vala"
- 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 190 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->waiting_for_invoke = TRUE;
-#line 1352 "AppWindow.c"
- }
- }
-#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (GTK_WIDGET_CLASS (fullscreen_window_parent_class)->motion_notify_event != NULL) {
-#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = 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), event);
-#line 1359 "AppWindow.c"
- } else {
-#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = FALSE;
-#line 1363 "AppWindow.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp3_;
-#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1369 "AppWindow.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1378 "AppWindow.c"
-}
-
-
-static gboolean
-fullscreen_window_is_pointer_in_toolbar (FullscreenWindow* self)
-{
- gboolean result = FALSE;
- GdkDeviceManager* devmgr = NULL;
- GdkDisplay* _tmp0_;
- GdkDeviceManager* _tmp1_;
- GdkDeviceManager* _tmp2_;
- GdkDeviceManager* _tmp3_;
- gint py = 0;
- GdkDeviceManager* _tmp4_;
- GdkDevice* _tmp5_;
- gint _tmp6_ = 0;
- gint wy = 0;
- GtkToolbar* _tmp7_;
- GdkWindow* _tmp8_;
- gint _tmp9_ = 0;
- gint _tmp10_;
- gint _tmp11_;
-#line 197 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (IS_FULLSCREEN_WINDOW (self), FALSE);
-#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = gtk_widget_get_display (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = gdk_display_get_device_manager (_tmp0_);
-#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala"
- devmgr = _tmp2_;
-#line 199 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = devmgr;
-#line 199 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp3_ == NULL) {
-#line 200 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_debug ("AppWindow.vala:200: No device manager for display");
-#line 202 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = FALSE;
-#line 202 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (devmgr);
-#line 202 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1423 "AppWindow.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = devmgr;
-#line 206 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = gdk_device_manager_get_client_pointer (_tmp4_);
-#line 206 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gdk_device_get_position (_tmp5_, NULL, NULL, &_tmp6_);
-#line 206 "/home/jens/Source/shotwell/src/AppWindow.vala"
- py = _tmp6_;
-#line 209 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = self->priv->toolbar;
-#line 209 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
-#line 209 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gdk_window_get_geometry (_tmp8_, NULL, &_tmp9_, NULL, NULL);
-#line 209 "/home/jens/Source/shotwell/src/AppWindow.vala"
- wy = _tmp9_;
-#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = py;
-#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = wy;
-#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp10_ >= _tmp11_;
-#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (devmgr);
-#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1451 "AppWindow.c"
-}
-
-
-static gboolean
-fullscreen_window_on_check_toolbar_invocation (FullscreenWindow* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 214 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (IS_FULLSCREEN_WINDOW (self), FALSE);
-#line 215 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->waiting_for_invoke = FALSE;
-#line 217 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->is_toolbar_shown;
-#line 217 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_) {
-#line 218 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = FALSE;
-#line 218 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1472 "AppWindow.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!fullscreen_window_is_pointer_in_toolbar (self)) {
-#line 221 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = FALSE;
-#line 221 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1480 "AppWindow.c"
- }
-#line 223 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_invoke_toolbar (self);
-#line 225 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = FALSE;
-#line 225 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1488 "AppWindow.c"
-}
-
-
-static gboolean
-_fullscreen_window_on_check_toolbar_dismissal_gsource_func (gpointer self)
-{
- gboolean result;
- result = fullscreen_window_on_check_toolbar_dismissal ((FullscreenWindow*) self);
-#line 233 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1499 "AppWindow.c"
-}
-
-
-static void
-fullscreen_window_invoke_toolbar (FullscreenWindow* self)
-{
- GtkToolbar* _tmp0_;
-#line 228 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (self));
-#line 229 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->toolbar;
-#line 229 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 231 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->is_toolbar_shown = TRUE;
-#line 233 "/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 1517 "AppWindow.c"
-}
-
-
-static gboolean
-fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- gboolean _tmp1_;
- time_t _tmp2_;
- time_t now = 0;
- time_t _tmp4_;
- time_t _tmp5_;
- time_t _tmp6_;
- time_t _tmp7_;
- time_t _tmp8_;
-#line 236 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (IS_FULLSCREEN_WINDOW (self), FALSE);
-#line 237 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->is_toolbar_shown;
-#line 237 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp0_) {
-#line 238 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = FALSE;
-#line 238 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1544 "AppWindow.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->priv->is_toolbar_dismissal_enabled;
-#line 241 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp1_) {
-#line 242 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 242 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1554 "AppWindow.c"
- }
-#line 245 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (fullscreen_window_is_pointer_in_toolbar (self)) {
-#line 246 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->left_toolbar_time = (time_t) 0;
-#line 248 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 248 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1564 "AppWindow.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->priv->left_toolbar_time;
-#line 252 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_ == ((time_t) 0)) {
-#line 1570 "AppWindow.c"
- time_t _tmp3_;
-#line 253 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = time (NULL);
-#line 253 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->left_toolbar_time = _tmp3_;
-#line 255 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 255 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1580 "AppWindow.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = time (NULL);
-#line 259 "/home/jens/Source/shotwell/src/AppWindow.vala"
- now = _tmp4_;
-#line 260 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = now;
-#line 260 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = self->priv->left_toolbar_time;
-#line 260 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _vala_assert (_tmp5_ >= _tmp6_, "now >= left_toolbar_time");
-#line 262 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = now;
-#line 262 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = self->priv->left_toolbar_time;
-#line 262 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if ((_tmp7_ - _tmp8_) < ((time_t) FULLSCREEN_WINDOW_TOOLBAR_DISMISSAL_SEC)) {
-#line 263 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 263 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1602 "AppWindow.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_hide_toolbar (self);
-#line 267 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = FALSE;
-#line 267 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1610 "AppWindow.c"
-}
-
-
-static void
-fullscreen_window_hide_toolbar (FullscreenWindow* self)
-{
- GtkToolbar* _tmp0_;
-#line 270 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (self));
-#line 271 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->toolbar;
-#line 271 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 272 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->is_toolbar_shown = FALSE;
-#line 1626 "AppWindow.c"
-}
-
-
-static void
-fullscreen_window_class_init (FullscreenWindowClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fullscreen_window_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_type_class_add_private (klass, sizeof (FullscreenWindowPrivate));
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->configure_event = (gboolean (*) (GtkWidget *, GdkEventConfigure*)) fullscreen_window_real_configure_event;
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) fullscreen_window_real_key_press_event;
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->destroy = (void (*) (GtkWidget *)) fullscreen_window_real_destroy;
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->delete_event = (gboolean (*) (GtkWidget *, GdkEventAny*)) fullscreen_window_real_delete_event;
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->motion_notify_event = (gboolean (*) (GtkWidget *, GdkEventMotion*)) fullscreen_window_real_motion_notify_event;
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- G_OBJECT_CLASS (klass)->finalize = fullscreen_window_finalize;
-#line 1649 "AppWindow.c"
-}
-
-
-static void
-fullscreen_window_instance_init (FullscreenWindow * self)
-{
- GtkOverlay* _tmp0_;
- GtkToolButton* _tmp1_;
- GtkToggleToolButton* _tmp2_;
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv = FULLSCREEN_WINDOW_GET_PRIVATE (self);
-#line 12 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = (GtkOverlay*) gtk_overlay_new ();
-#line 12 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp0_);
-#line 12 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->overlay = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->toolbar = NULL;
-#line 14 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL);
-#line 14 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp1_);
-#line 14 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->close_button = _tmp1_;
-#line 15 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new ();
-#line 15 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp2_);
-#line 15 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->pin_button = _tmp2_;
-#line 16 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->is_toolbar_shown = FALSE;
-#line 17 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->waiting_for_invoke = FALSE;
-#line 18 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->left_toolbar_time = (time_t) 0;
-#line 19 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->switched_to = FALSE;
-#line 1689 "AppWindow.c"
-}
-
-
-static void
-fullscreen_window_finalize (GObject * obj)
-{
- FullscreenWindow * self;
-#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 12 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (self->priv->overlay);
-#line 13 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (self->priv->toolbar);
-#line 14 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (self->priv->close_button);
-#line 15 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _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 1709 "AppWindow.c"
-}
-
-
-GType
-fullscreen_window_get_type (void)
-{
- static volatile gsize fullscreen_window_type_id__volatile = 0;
- if (g_once_init_enter (&fullscreen_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FullscreenWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fullscreen_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FullscreenWindow), 0, (GInstanceInitFunc) fullscreen_window_instance_init, NULL };
- GType fullscreen_window_type_id;
- fullscreen_window_type_id = g_type_register_static (TYPE_PAGE_WINDOW, "FullscreenWindow", &g_define_type_info, 0);
- g_once_init_leave (&fullscreen_window_type_id__volatile, fullscreen_window_type_id);
- }
- return fullscreen_window_type_id__volatile;
-}
-
-
-static void
-page_window_real_switched_pages (PageWindow* self,
- Page* old_page,
- Page* new_page)
-{
-#line 287 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page));
-#line 287 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page));
-#line 1736 "AppWindow.c"
-}
-
-
-void
-page_window_switched_pages (PageWindow* self,
- Page* old_page,
- Page* new_page)
-{
-#line 287 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_PAGE_WINDOW (self));
-#line 287 "/home/jens/Source/shotwell/src/AppWindow.vala"
- PAGE_WINDOW_GET_CLASS (self)->switched_pages (self, old_page, new_page);
-#line 1749 "AppWindow.c"
-}
-
-
-PageWindow*
-page_window_construct (GType object_type)
-{
- PageWindow * self = NULL;
- Application* _tmp0_;
- Application* _tmp1_;
- GtkApplication* _tmp2_;
- GtkApplication* _tmp3_;
-#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = application_get_instance ();
-#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = application_get_system_app (_tmp1_);
-#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = (PageWindow*) g_object_new (object_type, "application", _tmp3_, NULL);
-#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _application_unref0 (_tmp1_);
-#line 294 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) ((GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK) | GDK_STRUCTURE_MASK));
-#line 296 "/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), TRUE);
-#line 290 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return self;
-#line 1781 "AppWindow.c"
-}
-
-
-Page*
-page_window_get_current_page (PageWindow* self)
-{
- Page* result = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
-#line 299 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (IS_PAGE_WINDOW (self), NULL);
-#line 300 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->current_page;
-#line 300 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 300 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp1_;
-#line 300 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1801 "AppWindow.c"
-}
-
-
-static void
-page_window_real_set_current_page (PageWindow* self,
- Page* page)
-{
- Page* _tmp0_;
- Page* old_page = NULL;
- Page* _tmp2_;
- Page* _tmp3_;
- Page* _tmp4_;
- Page* _tmp5_;
-#line 303 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 304 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->current_page;
-#line 304 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_ != NULL) {
-#line 1821 "AppWindow.c"
- Page* _tmp1_;
-#line 305 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->priv->current_page;
-#line 305 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_clear_container (_tmp1_);
-#line 1827 "AppWindow.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->priv->current_page;
-#line 307 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 307 "/home/jens/Source/shotwell/src/AppWindow.vala"
- old_page = _tmp3_;
-#line 308 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _g_object_ref0 (page);
-#line 308 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (self->priv->current_page);
-#line 308 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->current_page = _tmp4_;
-#line 309 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = self->priv->current_page;
-#line 309 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_set_container (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 311 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_window_switched_pages (self, old_page, page);
-#line 303 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (old_page);
-#line 1849 "AppWindow.c"
-}
-
-
-void
-page_window_set_current_page (PageWindow* self,
- Page* page)
-{
-#line 303 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_PAGE_WINDOW (self));
-#line 303 "/home/jens/Source/shotwell/src/AppWindow.vala"
- PAGE_WINDOW_GET_CLASS (self)->set_current_page (self, page);
-#line 1861 "AppWindow.c"
-}
-
-
-static void
-page_window_real_clear_current_page (PageWindow* self)
-{
- Page* _tmp0_;
- Page* old_page = NULL;
- Page* _tmp2_;
- Page* _tmp3_;
-#line 315 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->current_page;
-#line 315 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_ != NULL) {
-#line 1876 "AppWindow.c"
- Page* _tmp1_;
-#line 316 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->priv->current_page;
-#line 316 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_clear_container (_tmp1_);
-#line 1882 "AppWindow.c"
- }
-#line 318 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->priv->current_page;
-#line 318 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 318 "/home/jens/Source/shotwell/src/AppWindow.vala"
- old_page = _tmp3_;
-#line 319 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (self->priv->current_page);
-#line 319 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->current_page = NULL;
-#line 321 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_window_switched_pages (self, old_page, NULL);
-#line 314 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (old_page);
-#line 1898 "AppWindow.c"
-}
-
-
-void
-page_window_clear_current_page (PageWindow* self)
-{
-#line 314 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_PAGE_WINDOW (self));
-#line 314 "/home/jens/Source/shotwell/src/AppWindow.vala"
- PAGE_WINDOW_GET_CLASS (self)->clear_current_page (self);
-#line 1909 "AppWindow.c"
-}
-
-
-static gboolean
-page_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- PageWindow * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GtkWidget* _tmp1_;
- gboolean _tmp4_ = FALSE;
- Page* _tmp5_;
- gboolean _tmp7_ = FALSE;
-#line 324 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow);
-#line 324 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_entry_get_type ())) {
-#line 1932 "AppWindow.c"
- GtkWidget* _tmp2_;
- gboolean _tmp3_ = FALSE;
-#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_emit_by_name (_tmp2_, "key-press-event", event, &_tmp3_);
-#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = _tmp3_;
-#line 1941 "AppWindow.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = FALSE;
-#line 1945 "AppWindow.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_) {
-#line 326 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 326 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1953 "AppWindow.c"
- }
-#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = self->priv->current_page;
-#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp5_ != NULL) {
-#line 1959 "AppWindow.c"
- Page* _tmp6_;
-#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = self->priv->current_page;
-#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = page_notify_app_key_pressed (_tmp6_, event);
-#line 1965 "AppWindow.c"
- } else {
-#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = FALSE;
-#line 1969 "AppWindow.c"
- }
-#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp4_) {
-#line 329 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 329 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1977 "AppWindow.c"
- }
-#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (GTK_WIDGET_CLASS (page_window_parent_class)->key_press_event != NULL) {
-#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = 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), event);
-#line 1983 "AppWindow.c"
- } else {
-#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = FALSE;
-#line 1987 "AppWindow.c"
- }
-#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp7_;
-#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 1993 "AppWindow.c"
-}
-
-
-static gboolean
-page_window_real_key_release_event (GtkWidget* base,
- GdkEventKey* event)
-{
- PageWindow * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GtkWidget* _tmp1_;
- gboolean _tmp4_ = FALSE;
- Page* _tmp5_;
- gboolean _tmp7_ = FALSE;
-#line 334 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow);
-#line 334 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_entry_get_type ())) {
-#line 2016 "AppWindow.c"
- GtkWidget* _tmp2_;
- gboolean _tmp3_ = FALSE;
-#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_emit_by_name (_tmp2_, "key-release-event", event, &_tmp3_);
-#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = _tmp3_;
-#line 2025 "AppWindow.c"
- } else {
-#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = FALSE;
-#line 2029 "AppWindow.c"
- }
-#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_) {
-#line 336 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 336 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2037 "AppWindow.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = self->priv->current_page;
-#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp5_ != NULL) {
-#line 2043 "AppWindow.c"
- Page* _tmp6_;
-#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = self->priv->current_page;
-#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = page_notify_app_key_released (_tmp6_, event);
-#line 2049 "AppWindow.c"
- } else {
-#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = FALSE;
-#line 2053 "AppWindow.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp4_) {
-#line 339 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 339 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2061 "AppWindow.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (GTK_WIDGET_CLASS (page_window_parent_class)->key_release_event != NULL) {
-#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = 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), event);
-#line 2067 "AppWindow.c"
- } else {
-#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = FALSE;
-#line 2071 "AppWindow.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp7_;
-#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2077 "AppWindow.c"
-}
-
-
-static gboolean
-page_window_real_focus_in_event (GtkWidget* base,
- GdkEventFocus* event)
-{
- PageWindow * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- Page* _tmp1_;
- gboolean _tmp3_ = FALSE;
-#line 344 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow);
-#line 344 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->priv->current_page;
-#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ != NULL) {
-#line 2098 "AppWindow.c"
- Page* _tmp2_;
-#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->priv->current_page;
-#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_notify_app_focus_in (_tmp2_, event);
-#line 2104 "AppWindow.c"
- } else {
-#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = FALSE;
-#line 2108 "AppWindow.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_) {
-#line 346 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 346 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2116 "AppWindow.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (GTK_WIDGET_CLASS (page_window_parent_class)->focus_in_event != NULL) {
-#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = 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), event);
-#line 2122 "AppWindow.c"
- } else {
-#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = FALSE;
-#line 2126 "AppWindow.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp3_;
-#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2132 "AppWindow.c"
-}
-
-
-static gboolean
-page_window_real_focus_out_event (GtkWidget* base,
- GdkEventFocus* event)
-{
- PageWindow * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- Page* _tmp1_;
- gboolean _tmp3_ = FALSE;
-#line 351 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow);
-#line 351 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->priv->current_page;
-#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ != NULL) {
-#line 2153 "AppWindow.c"
- Page* _tmp2_;
-#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->priv->current_page;
-#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_notify_app_focus_out (_tmp2_, event);
-#line 2159 "AppWindow.c"
- } else {
-#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = FALSE;
-#line 2163 "AppWindow.c"
- }
-#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_) {
-#line 353 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 353 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2171 "AppWindow.c"
- }
-#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (GTK_WIDGET_CLASS (page_window_parent_class)->focus_out_event != NULL) {
-#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = 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), event);
-#line 2177 "AppWindow.c"
- } else {
-#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = FALSE;
-#line 2181 "AppWindow.c"
- }
-#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp3_;
-#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2187 "AppWindow.c"
-}
-
-
-static gboolean
-page_window_real_configure_event (GtkWidget* base,
- GdkEventConfigure* event)
-{
- PageWindow * self;
- gboolean result = FALSE;
- Page* _tmp0_;
- gboolean _tmp2_ = FALSE;
-#line 358 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow);
-#line 358 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 359 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->current_page;
-#line 359 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_ != NULL) {
-#line 2207 "AppWindow.c"
- Page* _tmp1_;
-#line 360 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->priv->current_page;
-#line 360 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (page_notify_configure_event (_tmp1_, event)) {
-#line 361 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = TRUE;
-#line 361 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2217 "AppWindow.c"
- }
- }
-#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (GTK_WIDGET_CLASS (page_window_parent_class)->configure_event != NULL) {
-#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = 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), event);
-#line 2224 "AppWindow.c"
- } else {
-#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = FALSE;
-#line 2228 "AppWindow.c"
- }
-#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp2_;
-#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2234 "AppWindow.c"
-}
-
-
-void
-page_window_set_busy_cursor (PageWindow* self)
-{
- gint _tmp0_;
- GdkDisplay* display = NULL;
- GdkWindow* _tmp1_;
- GdkDisplay* _tmp2_;
- GdkDisplay* _tmp3_;
- GdkCursor* cursor = NULL;
- GdkDisplay* _tmp4_;
- GdkCursor* _tmp5_;
- GdkWindow* _tmp6_;
- GdkCursor* _tmp7_;
-#line 367 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_PAGE_WINDOW (self));
-#line 368 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->busy_counter;
-#line 368 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->busy_counter = _tmp0_ + 1;
-#line 368 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_ > 0) {
-#line 369 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 2261 "AppWindow.c"
- }
-#line 371 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 371 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = gdk_window_get_display (_tmp1_);
-#line 371 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 371 "/home/jens/Source/shotwell/src/AppWindow.vala"
- display = _tmp3_;
-#line 372 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = display;
-#line 372 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = gdk_cursor_new_for_display (_tmp4_, GDK_WATCH);
-#line 372 "/home/jens/Source/shotwell/src/AppWindow.vala"
- cursor = _tmp5_;
-#line 373 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 373 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = cursor;
-#line 373 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gdk_window_set_cursor (_tmp6_, _tmp7_);
-#line 374 "/home/jens/Source/shotwell/src/AppWindow.vala"
- spin_event_loop ();
-#line 367 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (cursor);
-#line 367 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (display);
-#line 2289 "AppWindow.c"
-}
-
-
-void
-page_window_set_normal_cursor (PageWindow* self)
-{
- gint _tmp0_;
- GdkDisplay* display = NULL;
- GdkWindow* _tmp3_;
- GdkDisplay* _tmp4_;
- GdkDisplay* _tmp5_;
- GdkCursor* cursor = NULL;
- GdkDisplay* _tmp6_;
- GdkCursor* _tmp7_;
- GdkWindow* _tmp8_;
- GdkCursor* _tmp9_;
-#line 377 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_PAGE_WINDOW (self));
-#line 378 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = self->priv->busy_counter;
-#line 378 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_ <= 0) {
-#line 379 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->busy_counter = 0;
-#line 380 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 2316 "AppWindow.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 381 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->priv->busy_counter;
-#line 381 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->busy_counter = _tmp1_ - 1;
-#line 381 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->priv->busy_counter;
-#line 381 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_ > 0) {
-#line 382 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 2330 "AppWindow.c"
- }
- }
-#line 385 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 385 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = gdk_window_get_display (_tmp3_);
-#line 385 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 385 "/home/jens/Source/shotwell/src/AppWindow.vala"
- display = _tmp5_;
-#line 386 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = display;
-#line 386 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = gdk_cursor_new_for_display (_tmp6_, GDK_LEFT_PTR);
-#line 386 "/home/jens/Source/shotwell/src/AppWindow.vala"
- cursor = _tmp7_;
-#line 387 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 387 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = cursor;
-#line 387 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gdk_window_set_cursor (_tmp8_, _tmp9_);
-#line 388 "/home/jens/Source/shotwell/src/AppWindow.vala"
- spin_event_loop ();
-#line 377 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (cursor);
-#line 377 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (display);
-#line 2359 "AppWindow.c"
-}
-
-
-static void
-page_window_class_init (PageWindowClass * klass)
-{
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_window_parent_class = g_type_class_peek_parent (klass);
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_type_class_add_private (klass, sizeof (PageWindowPrivate));
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((PageWindowClass *) klass)->switched_pages = (void (*) (PageWindow *, Page*, Page*)) page_window_real_switched_pages;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((PageWindowClass *) klass)->set_current_page = (void (*) (PageWindow *, Page*)) page_window_real_set_current_page;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((PageWindowClass *) klass)->clear_current_page = (void (*) (PageWindow *)) page_window_real_clear_current_page;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) page_window_real_key_press_event;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->key_release_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) page_window_real_key_release_event;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->focus_in_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) page_window_real_focus_in_event;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->focus_out_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) page_window_real_focus_out_event;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->configure_event = (gboolean (*) (GtkWidget *, GdkEventConfigure*)) page_window_real_configure_event;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- G_OBJECT_CLASS (klass)->finalize = page_window_finalize;
-#line 2388 "AppWindow.c"
-}
-
-
-static void
-page_window_instance_init (PageWindow * self)
-{
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv = PAGE_WINDOW_GET_PRIVATE (self);
-#line 284 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->current_page = NULL;
-#line 285 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->priv->busy_counter = 0;
-#line 2401 "AppWindow.c"
-}
-
-
-static void
-page_window_finalize (GObject * obj)
-{
- PageWindow * self;
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE_WINDOW, PageWindow);
-#line 284 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (self->priv->current_page);
-#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala"
- G_OBJECT_CLASS (page_window_parent_class)->finalize (obj);
-#line 2415 "AppWindow.c"
-}
-
-
-GType
-page_window_get_type (void)
-{
- static volatile gsize page_window_type_id__volatile = 0;
- if (g_once_init_enter (&page_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PageWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) page_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PageWindow), 0, (GInstanceInitFunc) page_window_instance_init, NULL };
- GType page_window_type_id;
- page_window_type_id = g_type_register_static (gtk_application_window_get_type (), "PageWindow", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&page_window_type_id__volatile, page_window_type_id);
- }
- return page_window_type_id__volatile;
-}
-
-
-static void
-_app_window_on_about_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_about ((AppWindow*) self);
-#line 2440 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_quit_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_quit ((AppWindow*) self);
-#line 2451 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_fullscreen_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_fullscreen ((AppWindow*) self);
-#line 2462 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_help_contents_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_help_contents ((AppWindow*) self);
-#line 2473 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_help_faq_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_help_faq ((AppWindow*) self);
-#line 2484 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_help_report_problem_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_help_report_problem ((AppWindow*) self);
-#line 2495 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_undo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_undo ((AppWindow*) self);
-#line 2506 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_redo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_redo ((AppWindow*) self);
-#line 2517 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_jump_to_file_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_jump_to_file ((AppWindow*) self);
-#line 2528 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_select_all_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_select_all ((AppWindow*) self);
-#line 2539 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_select_none_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_select_none ((AppWindow*) self);
-#line 2550 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_command_manager_altered_command_manager_altered (CommandManager* _sender,
- gboolean can_undo,
- gboolean can_redo,
- gpointer self)
-{
-#line 437 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_command_manager_altered ((AppWindow*) self);
-#line 2562 "AppWindow.c"
-}
-
-
-AppWindow*
-app_window_construct (GType object_type)
-{
- AppWindow * self = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- Dimensions _tmp10_;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- gboolean _tmp14_;
- CommandManager* _tmp15_;
- CommandManager* _tmp16_;
- CommandManager* _tmp17_;
- GtkCssProvider* provider = NULL;
- GtkCssProvider* _tmp18_;
- GError * _inner_error_ = NULL;
-#line 414 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = (AppWindow*) page_window_construct (object_type);
-#line 416 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_instance;
-#line 416 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _vala_assert (_tmp0_ == NULL, "instance == null");
-#line 417 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (self);
-#line 417 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (app_window_instance);
-#line 417 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_instance = _tmp1_;
-#line 419 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE);
-#line 420 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_set_default_icon_name ("shotwell");
-#line 423 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_LIBRARY_WINDOW)) {
-#line 2601 "AppWindow.c"
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- gboolean _tmp4_ = FALSE;
- Dimensions _tmp5_ = {0};
-#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala"
- configuration_facade_get_library_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp4_, &_tmp5_);
-#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->maximized = _tmp4_;
-#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->dimensions = _tmp5_;
-#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 2618 "AppWindow.c"
- } else {
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- gboolean _tmp8_ = FALSE;
- Dimensions _tmp9_ = {0};
-#line 426 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_DIRECT_WINDOW), "this is DirectWindow");
-#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = config_facade_get_instance ();
-#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = _tmp6_;
-#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala"
- configuration_facade_get_direct_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp8_, &_tmp9_);
-#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->maximized = _tmp8_;
-#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->dimensions = _tmp9_;
-#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp7_);
-#line 2638 "AppWindow.c"
- }
-#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = self->dimensions;
-#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = _tmp10_.width;
-#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp12_ = self->dimensions;
-#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp13_ = _tmp12_.height;
-#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_set_default_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp11_, _tmp13_);
-#line 432 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp14_ = self->maximized;
-#line 432 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp14_) {
-#line 433 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_maximize (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 2656 "AppWindow.c"
- }
-#line 435 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp15_ = app_window_command_manager;
-#line 435 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _vala_assert (_tmp15_ == NULL, "command_manager == null");
-#line 436 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp16_ = command_manager_new (COMMAND_MANAGER_DEFAULT_DEPTH);
-#line 436 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _command_manager_unref0 (app_window_command_manager);
-#line 436 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_command_manager = _tmp16_;
-#line 437 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp17_ = app_window_command_manager;
-#line 437 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_connect_object (_tmp17_, "altered", (GCallback) _app_window_on_command_manager_altered_command_manager_altered, self, 0);
-#line 445 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_add_actions (self);
-#line 447 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp18_ = gtk_css_provider_new ();
-#line 447 "/home/jens/Source/shotwell/src/AppWindow.vala"
- provider = _tmp18_;
-#line 2678 "AppWindow.c"
- {
- GdkScreen* _tmp19_;
-#line 449 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_css_provider_load_from_data (provider, RESOURCES_CUSTOM_CSS, (gssize) -1, &_inner_error_);
-#line 449 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2685 "AppWindow.c"
- goto __catch238_g_error;
- }
-#line 450 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp19_ = gdk_screen_get_default ();
-#line 450 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_style_context_add_provider_for_screen (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (provider, gtk_style_provider_get_type (), GtkStyleProvider), (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
-#line 2692 "AppWindow.c"
- }
- goto __finally238;
- __catch238_g_error:
- {
- GError* err = NULL;
- GError* _tmp20_;
- const gchar* _tmp21_;
-#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala"
- err = _inner_error_;
-#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _inner_error_ = NULL;
-#line 452 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp20_ = err;
-#line 452 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp21_ = _tmp20_->message;
-#line 452 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_debug ("AppWindow.vala:452: Unable to load custom CSS: %s", _tmp21_);
-#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_error_free0 (err);
-#line 2712 "AppWindow.c"
- }
- __finally238:
-#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (provider);
-#line 448 "/home/jens/Source/shotwell/src/AppWindow.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 448 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_clear_error (&_inner_error_);
-#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return NULL;
-#line 2725 "AppWindow.c"
- }
-#line 414 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (provider);
-#line 414 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return self;
-#line 2731 "AppWindow.c"
-}
-
-
-static void
-app_window_real_on_fullscreen (AppWindow* self)
-{
-#line 470 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_critical ("Type `%s' does not implement abstract method `app_window_on_fullscreen'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 470 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 2742 "AppWindow.c"
-}
-
-
-void
-app_window_on_fullscreen (AppWindow* self)
-{
-#line 470 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 470 "/home/jens/Source/shotwell/src/AppWindow.vala"
- APP_WINDOW_GET_CLASS (self)->on_fullscreen (self);
-#line 2753 "AppWindow.c"
-}
-
-
-gboolean
-app_window_has_instance (void)
-{
- gboolean result = FALSE;
- AppWindow* _tmp0_;
-#line 473 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_instance;
-#line 473 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp0_ != NULL;
-#line 473 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2768 "AppWindow.c"
-}
-
-
-AppWindow*
-app_window_get_instance (void)
-{
- AppWindow* result = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
-#line 477 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_instance;
-#line 477 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 477 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp1_;
-#line 477 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2786 "AppWindow.c"
-}
-
-
-FullscreenWindow*
-app_window_get_fullscreen (void)
-{
- FullscreenWindow* result = NULL;
- FullscreenWindow* _tmp0_;
- FullscreenWindow* _tmp1_;
-#line 481 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_fullscreen_window;
-#line 481 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 481 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp1_;
-#line 481 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2804 "AppWindow.c"
-}
-
-
-GtkBuilder*
-app_window_create_builder (const gchar* glade_filename,
- void* user)
-{
- GtkBuilder* result = NULL;
- GtkBuilder* builder = NULL;
- GtkBuilder* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 484 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (glade_filename != NULL, NULL);
-#line 485 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = gtk_builder_new ();
-#line 485 "/home/jens/Source/shotwell/src/AppWindow.vala"
- builder = _tmp0_;
-#line 2822 "AppWindow.c"
- {
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = resources_get_ui (glade_filename);
-#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = _tmp1_;
-#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_builder_add_from_resource (builder, _tmp2_, &_inner_error_);
-#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp2_);
-#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2836 "AppWindow.c"
- goto __catch239_g_error;
- }
- }
- goto __finally239;
- __catch239_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _error_ = _inner_error_;
-#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _inner_error_ = NULL;
-#line 489 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _error_;
-#line 489 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_->message;
-#line 489 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_warning ("AppWindow.vala:489: Unable to create Gtk.Builder: %s\n", _tmp4_);
-#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_error_free0 (_error_);
-#line 2858 "AppWindow.c"
- }
- __finally239:
-#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (builder);
-#line 486 "/home/jens/Source/shotwell/src/AppWindow.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 486 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_clear_error (&_inner_error_);
-#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return NULL;
-#line 2871 "AppWindow.c"
- }
-#line 492 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_builder_connect_signals (builder, user);
-#line 494 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = builder;
-#line 494 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 2879 "AppWindow.c"
-}
-
-
-void
-app_window_error_message (const gchar* message,
- GtkWindow* parent)
-{
-#line 497 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (message != NULL);
-#line 497 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent));
-#line 498 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_error_message_with_title (RESOURCES_APP_TITLE, message, parent, TRUE);
-#line 2893 "AppWindow.c"
-}
-
-
-void
-app_window_error_message_with_title (const gchar* title,
- const gchar* message,
- GtkWindow* parent,
- gboolean should_escape)
-{
- GtkWindow* _tmp0_ = NULL;
- GtkMessageDialog* dialog = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GtkMessageDialog* _tmp5_;
- GtkMessageDialog* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (title != NULL);
-#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (message != NULL);
-#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent));
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (parent != NULL) {
-#line 2919 "AppWindow.c"
- GtkWindow* _tmp1_;
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (parent);
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = _tmp1_;
-#line 2927 "AppWindow.c"
- } else {
- AppWindow* _tmp2_;
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = app_window_get_instance ();
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow);
-#line 2936 "AppWindow.c"
- }
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = build_alert_body_text (title, message, should_escape);
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new_with_markup (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", _tmp4_);
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp5_);
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = _tmp5_;
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp4_);
-#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala"
- dialog = _tmp6_;
-#line 509 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = build_alert_body_text (title, message, should_escape);
-#line 509 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = _tmp7_;
-#line 509 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_message_dialog_set_markup (dialog, _tmp8_);
-#line 509 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp8_);
-#line 511 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_set (dialog, "use-markup", TRUE, NULL);
-#line 512 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog));
-#line 513 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget));
-#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (dialog);
-#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 2970 "AppWindow.c"
-}
-
-
-gboolean
-app_window_negate_affirm_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent)
-{
- gboolean result = FALSE;
- GtkWindow* _tmp0_ = NULL;
- GtkMessageDialog* dialog = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GtkMessageDialog* _tmp5_;
- GtkMessageDialog* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gboolean response = FALSE;
-#line 516 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (message != NULL, FALSE);
-#line 516 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (negative != NULL, FALSE);
-#line 516 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (affirmative != NULL, FALSE);
-#line 516 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent), FALSE);
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (parent != NULL) {
-#line 3001 "AppWindow.c"
- GtkWindow* _tmp1_;
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (parent);
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = _tmp1_;
-#line 3009 "AppWindow.c"
- } else {
- AppWindow* _tmp2_;
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = app_window_get_instance ();
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow);
-#line 3018 "AppWindow.c"
- }
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = build_alert_body_text (title, message, TRUE);
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", _tmp4_);
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp5_);
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = _tmp5_;
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp4_);
-#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala"
- dialog = _tmp6_;
-#line 521 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = build_alert_body_text (title, message, TRUE);
-#line 521 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = _tmp7_;
-#line 521 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_message_dialog_set_markup (dialog, _tmp8_);
-#line 521 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp8_);
-#line 522 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), negative, GTK_RESPONSE_NO, affirmative, GTK_RESPONSE_YES, NULL);
-#line 523 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_set_urgency_hint (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_window_get_type (), GtkWindow), TRUE);
-#line 525 "/home/jens/Source/shotwell/src/AppWindow.vala"
- response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_YES);
-#line 527 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget));
-#line 529 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = response;
-#line 529 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (dialog);
-#line 529 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 529 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 3058 "AppWindow.c"
-}
-
-
-GtkResponseType
-app_window_negate_affirm_cancel_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent)
-{
- GtkResponseType result = 0;
- GtkWindow* _tmp0_ = NULL;
- GtkMessageDialog* dialog = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GtkMessageDialog* _tmp5_;
- GtkMessageDialog* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gint response = 0;
-#line 532 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (message != NULL, 0);
-#line 532 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (negative != NULL, 0);
-#line 532 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (affirmative != NULL, 0);
-#line 532 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent), 0);
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (parent != NULL) {
-#line 3089 "AppWindow.c"
- GtkWindow* _tmp1_;
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (parent);
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = _tmp1_;
-#line 3097 "AppWindow.c"
- } else {
- AppWindow* _tmp2_;
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = app_window_get_instance ();
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow);
-#line 3106 "AppWindow.c"
- }
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = build_alert_body_text (title, message, TRUE);
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new_with_markup (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", _tmp4_);
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp5_);
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = _tmp5_;
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp4_);
-#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala"
- dialog = _tmp6_;
-#line 537 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), negative, GTK_RESPONSE_NO, affirmative, GTK_RESPONSE_YES, _ ("_Cancel"), GTK_RESPONSE_CANCEL, NULL);
-#line 541 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = build_alert_body_text (title, message, TRUE);
-#line 541 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = _tmp7_;
-#line 541 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_message_dialog_set_markup (dialog, _tmp8_);
-#line 541 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp8_);
-#line 542 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_set (dialog, "use-markup", TRUE, NULL);
-#line 544 "/home/jens/Source/shotwell/src/AppWindow.vala"
- response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog));
-#line 546 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget));
-#line 548 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = (GtkResponseType) response;
-#line 548 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (dialog);
-#line 548 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 548 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 3146 "AppWindow.c"
-}
-
-
-GtkResponseType
-app_window_affirm_cancel_question (const gchar* message,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent)
-{
- GtkResponseType result = 0;
- GtkWindow* _tmp0_ = NULL;
- GtkMessageDialog* dialog = NULL;
- GtkMessageDialog* _tmp3_;
- GtkMessageDialog* _tmp4_;
- GtkMessageDialog* _tmp5_;
- const gchar* _tmp6_ = NULL;
- GtkMessageDialog* _tmp7_;
- GtkMessageDialog* _tmp8_;
- gint response = 0;
- GtkMessageDialog* _tmp9_;
- GtkMessageDialog* _tmp10_;
-#line 551 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (message != NULL, 0);
-#line 551 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (affirmative != NULL, 0);
-#line 551 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent), 0);
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (parent != NULL) {
-#line 3176 "AppWindow.c"
- GtkWindow* _tmp1_;
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (parent);
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = _tmp1_;
-#line 3184 "AppWindow.c"
- } else {
- AppWindow* _tmp2_;
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = app_window_get_instance ();
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow);
-#line 3193 "AppWindow.c"
- }
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new_with_markup (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", message);
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp3_);
-#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala"
- dialog = _tmp3_;
-#line 556 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = dialog;
-#line 556 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_message_dialog_set_markup (_tmp4_, message);
-#line 557 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = dialog;
-#line 557 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_set (_tmp5_, "use-markup", TRUE, NULL);
-#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (title != NULL) {
-#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = title;
-#line 3213 "AppWindow.c"
- } else {
-#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = RESOURCES_APP_TITLE;
-#line 3217 "AppWindow.c"
- }
-#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = dialog;
-#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_window_get_type (), GtkWindow), _tmp6_);
-#line 559 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = dialog;
-#line 559 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_dialog_get_type (), GtkDialog), affirmative, GTK_RESPONSE_YES, _ ("_Cancel"), GTK_RESPONSE_CANCEL, NULL);
-#line 562 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = dialog;
-#line 562 "/home/jens/Source/shotwell/src/AppWindow.vala"
- response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_dialog_get_type (), GtkDialog));
-#line 564 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = dialog;
-#line 564 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 566 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = (GtkResponseType) response;
-#line 566 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (dialog);
-#line 566 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 566 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 3243 "AppWindow.c"
-}
-
-
-GtkResponseType
-app_window_negate_affirm_all_cancel_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* affirmative_all,
- const gchar* title,
- GtkWindow* parent)
-{
- GtkResponseType result = 0;
- GtkWindow* _tmp0_ = NULL;
- GtkMessageDialog* dialog = NULL;
- GtkMessageDialog* _tmp3_;
- const gchar* _tmp4_ = NULL;
- GtkMessageDialog* _tmp5_;
- GtkMessageDialog* _tmp6_;
- gint response = 0;
- GtkMessageDialog* _tmp7_;
- GtkMessageDialog* _tmp8_;
-#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (message != NULL, 0);
-#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (negative != NULL, 0);
-#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (affirmative != NULL, 0);
-#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (affirmative_all != NULL, 0);
-#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent), 0);
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (parent != NULL) {
-#line 3277 "AppWindow.c"
- GtkWindow* _tmp1_;
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (parent);
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = _tmp1_;
-#line 3285 "AppWindow.c"
- } else {
- AppWindow* _tmp2_;
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = app_window_get_instance ();
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow);
-#line 3294 "AppWindow.c"
- }
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", message);
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp3_);
-#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala"
- dialog = _tmp3_;
-#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (title != NULL) {
-#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = title;
-#line 3306 "AppWindow.c"
- } else {
-#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = RESOURCES_APP_TITLE;
-#line 3310 "AppWindow.c"
- }
-#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = dialog;
-#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow), _tmp4_);
-#line 575 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = dialog;
-#line 575 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_dialog_get_type (), GtkDialog), negative, GTK_RESPONSE_NO, affirmative, GTK_RESPONSE_YES, affirmative_all, GTK_RESPONSE_APPLY, _ ("_Cancel"), GTK_RESPONSE_CANCEL, NULL);
-#line 578 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = dialog;
-#line 578 "/home/jens/Source/shotwell/src/AppWindow.vala"
- response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_dialog_get_type (), GtkDialog));
-#line 580 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = dialog;
-#line 580 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 582 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = (GtkResponseType) response;
-#line 582 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (dialog);
-#line 582 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 582 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 3336 "AppWindow.c"
-}
-
-
-void
-app_window_database_error (GError* err)
-{
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = err->message;
-#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = g_strdup_printf (_ ("A fatal error occurred when accessing Shotwell’s library. Shotwell can" \
-"not continue.\n" \
-"\n" \
-"%s"), _tmp0_);
-#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = _tmp1_;
-#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_panic (_tmp2_);
-#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp2_);
-#line 3356 "AppWindow.c"
-}
-
-
-void
-app_window_panic (const gchar* msg)
-{
- Application* _tmp0_;
- Application* _tmp1_;
-#line 590 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (msg != NULL);
-#line 591 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_critical ("AppWindow.vala:591: %s", msg);
-#line 592 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_error_message (msg, NULL);
-#line 594 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = application_get_instance ();
-#line 594 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 594 "/home/jens/Source/shotwell/src/AppWindow.vala"
- application_panic (_tmp1_);
-#line 594 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _application_unref0 (_tmp1_);
-#line 3379 "AppWindow.c"
-}
-
-
-static gchar*
-app_window_real_get_app_role (AppWindow* self)
-{
-#line 597 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_critical ("Type `%s' does not implement abstract method `app_window_get_app_role'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 597 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return NULL;
-#line 3390 "AppWindow.c"
-}
-
-
-gchar*
-app_window_get_app_role (AppWindow* self)
-{
-#line 597 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (IS_APP_WINDOW (self), NULL);
-#line 597 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return APP_WINDOW_GET_CLASS (self)->get_app_role (self);
-#line 3401 "AppWindow.c"
-}
-
-
-void
-app_window_on_about (AppWindow* self)
-{
-#line 600 "/home/jens/Source/shotwell/src/AppWindow.vala"
- static const gchar* artists[2] = {"Braunschweiger Löwe created by Magnus Manske., CC BY-SA 3.0, https://c" \
-"ommons.wikimedia.org/w/index.php?curid=109735", NULL};
-#line 3410 "AppWindow.c"
- gchar* _tmp0_;
- gchar* _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 599 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_get_app_role (self);
-#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = resources_get_icon (RESOURCES_ICON_ABOUT_LOGO, -1);
-#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_show_about_dialog (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), "version", RESOURCES_APP_VERSION " \u2013 \"Braunschweig\"", "comments", _tmp1_, "copyright", RESOURCES_COPYRIGHT, "website", RESOURCES_HOME_URL, "license", RESOURCES_LICENSE, "website-label", _ ("Visit the Shotwell web site"), "authors", RESOURCES_AUTHORS, "logo", _tmp3_, "artists", artists, "translator-credits", _ ("translator-credits"), NULL, NULL);
-#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp1_);
-#line 3431 "AppWindow.c"
-}
-
-
-static void
-app_window_on_help_contents (AppWindow* self)
-{
- GError * _inner_error_ = NULL;
-#line 616 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 3441 "AppWindow.c"
- {
- GdkScreen* _tmp0_;
-#line 618 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 618 "/home/jens/Source/shotwell/src/AppWindow.vala"
- resources_launch_help (_tmp0_, NULL, &_inner_error_);
-#line 618 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3450 "AppWindow.c"
- goto __catch240_g_error;
- }
- }
- goto __finally240;
- __catch240_g_error:
- {
- GError* err = NULL;
- GError* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala"
- err = _inner_error_;
-#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _inner_error_ = NULL;
-#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = err;
-#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = _tmp1_->message;
-#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = g_strdup_printf (_ ("Unable to display help: %s"), _tmp2_);
-#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_error_message (_tmp4_, NULL);
-#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp4_);
-#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_error_free0 (err);
-#line 3480 "AppWindow.c"
- }
- __finally240:
-#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 617 "/home/jens/Source/shotwell/src/AppWindow.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/AppWindow.vala"
- g_clear_error (&_inner_error_);
-#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 3491 "AppWindow.c"
- }
-}
-
-
-static void
-app_window_on_help_report_problem (AppWindow* self)
-{
- GError * _inner_error_ = NULL;
-#line 624 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 3502 "AppWindow.c"
- {
-#line 626 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_show_uri (self, RESOURCES_BUG_DB_URL, &_inner_error_);
-#line 626 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3508 "AppWindow.c"
- goto __catch241_g_error;
- }
- }
- goto __finally241;
- __catch241_g_error:
- {
- GError* err = NULL;
- GError* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala"
- err = _inner_error_;
-#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _inner_error_ = NULL;
-#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = err;
-#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_->message;
-#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = g_strdup_printf (_ ("Unable to navigate to bug database: %s"), _tmp1_);
-#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_error_message (_tmp3_, NULL);
-#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp3_);
-#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_error_free0 (err);
-#line 3538 "AppWindow.c"
- }
- __finally241:
-#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 625 "/home/jens/Source/shotwell/src/AppWindow.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/AppWindow.vala"
- g_clear_error (&_inner_error_);
-#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 3549 "AppWindow.c"
- }
-}
-
-
-static void
-app_window_on_help_faq (AppWindow* self)
-{
- GError * _inner_error_ = NULL;
-#line 632 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 3560 "AppWindow.c"
- {
-#line 634 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_show_uri (self, RESOURCES_FAQ_URL, &_inner_error_);
-#line 634 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3566 "AppWindow.c"
- goto __catch242_g_error;
- }
- }
- goto __finally242;
- __catch242_g_error:
- {
- GError* err = NULL;
- GError* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala"
- err = _inner_error_;
-#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _inner_error_ = NULL;
-#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = err;
-#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_->message;
-#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = g_strdup_printf (_ ("Unable to display FAQ: %s"), _tmp1_);
-#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_error_message (_tmp3_, NULL);
-#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp3_);
-#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_error_free0 (err);
-#line 3596 "AppWindow.c"
- }
- __finally242:
-#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 633 "/home/jens/Source/shotwell/src/AppWindow.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 633 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_clear_error (&_inner_error_);
-#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 3607 "AppWindow.c"
- }
-}
-
-
-static void
-app_window_real_on_quit (AppWindow* self)
-{
- Application* _tmp0_;
- Application* _tmp1_;
-#line 641 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = application_get_instance ();
-#line 641 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 641 "/home/jens/Source/shotwell/src/AppWindow.vala"
- application_exit (_tmp1_);
-#line 641 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _application_unref0 (_tmp1_);
-#line 3625 "AppWindow.c"
-}
-
-
-void
-app_window_on_quit (AppWindow* self)
-{
-#line 640 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 640 "/home/jens/Source/shotwell/src/AppWindow.vala"
- APP_WINDOW_GET_CLASS (self)->on_quit (self);
-#line 3636 "AppWindow.c"
-}
-
-
-void
-app_window_on_jump_to_file (AppWindow* self)
-{
- Page* _tmp0_;
- Page* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- gboolean _tmp4_;
- MediaSource* media = NULL;
- Page* _tmp5_;
- Page* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- DataView* _tmp9_;
- DataView* _tmp10_;
- DataSource* _tmp11_;
- MediaSource* _tmp12_;
- MediaSource* _tmp13_;
- MediaSource* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 644 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = page_get_view (_tmp1_);
-#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = view_collection_get_selected_count (_tmp3_) != 1;
-#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp3_);
-#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp4_) {
-#line 646 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 3680 "AppWindow.c"
- }
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = _tmp5_;
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = page_get_view (_tmp6_);
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = _tmp7_;
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = view_collection_get_selected_at (_tmp8_, 0);
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = _tmp9_;
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = data_view_get_source (_tmp10_);
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp11_) : NULL;
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp12_ == NULL) {
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp11_);
-#line 3702 "AppWindow.c"
- }
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp13_ = _tmp12_;
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp10_);
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp8_);
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp6_);
-#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala"
- media = _tmp13_;
-#line 650 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp14_ = media;
-#line 650 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp14_ == NULL) {
-#line 651 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (media);
-#line 651 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 3722 "AppWindow.c"
- }
- {
- AppWindow* _tmp15_;
- AppWindow* _tmp16_;
- MediaSource* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp15_ = app_window_get_instance ();
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp16_ = _tmp15_;
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp17_ = media;
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp18_ = media_source_get_master_file (_tmp17_);
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp19_ = _tmp18_;
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_show_file_uri (_tmp16_, _tmp19_, &_inner_error_);
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp19_);
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp16_);
-#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3748 "AppWindow.c"
- goto __catch243_g_error;
- }
- }
- goto __finally243;
- __catch243_g_error:
- {
- GError* err = NULL;
- GError* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
-#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala"
- err = _inner_error_;
-#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _inner_error_ = NULL;
-#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp20_ = err;
-#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp21_ = resources_jump_to_file_failed (_tmp20_);
-#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp22_ = _tmp21_;
-#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_error_message (_tmp22_, NULL);
-#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp22_);
-#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_error_free0 (err);
-#line 3775 "AppWindow.c"
- }
- __finally243:
-#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (media);
-#line 653 "/home/jens/Source/shotwell/src/AppWindow.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 653 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_clear_error (&_inner_error_);
-#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 3788 "AppWindow.c"
- }
-#line 644 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (media);
-#line 3792 "AppWindow.c"
-}
-
-
-static void
-app_window_real_destroy (GtkWidget* base)
-{
- AppWindow * self;
-#line 660 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_APP_WINDOW, AppWindow);
-#line 661 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_quit (self);
-#line 3804 "AppWindow.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 3827 "AppWindow.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 3831 "AppWindow.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 3837 "AppWindow.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 3841 "AppWindow.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 3845 "AppWindow.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3853 "AppWindow.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 3881 "AppWindow.c"
- goto __catch244_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 3890 "AppWindow.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 3904 "AppWindow.c"
- goto __catch244_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 3915 "AppWindow.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3929 "AppWindow.c"
- }
- goto __finally244;
- __catch244_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 3943 "AppWindow.c"
- }
- __finally244:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 3954 "AppWindow.c"
- }
-}
-
-
-void
-app_window_show_file_uri (AppWindow* self,
- GFile* file,
- GError** error)
-{
- gchar* tmp = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
- GError * _inner_error_ = NULL;
-#line 664 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 664 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = get_nautilus_install_location ();
-#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = _tmp1_ != NULL;
-#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp1_);
-#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_) {
-#line 3983 "AppWindow.c"
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = g_file_get_uri (file);
-#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = string_replace (_tmp4_, "'", "\\\'");
-#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (tmp);
-#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala"
- tmp = _tmp5_;
-#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp4_);
-#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = tmp;
-#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala"
- show_file_in_nautilus (_tmp6_, &_inner_error_);
-#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_propagate_error (error, _inner_error_);
-#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (tmp);
-#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 4012 "AppWindow.c"
- }
- } else {
- GFile* _tmp7_;
- GFile* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- const gchar* _tmp12_;
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = g_file_get_parent (file);
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = _tmp7_;
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = g_file_get_uri (_tmp8_);
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = _tmp9_;
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = string_replace (_tmp10_, "'", "\\\'");
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (tmp);
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- tmp = _tmp11_;
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp10_);
-#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp8_);
-#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp12_ = tmp;
-#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_show_uri (self, _tmp12_, &_inner_error_);
-#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_propagate_error (error, _inner_error_);
-#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (tmp);
-#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 4051 "AppWindow.c"
- }
- }
-#line 664 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (tmp);
-#line 4056 "AppWindow.c"
-}
-
-
-void
-app_window_show_uri (AppWindow* self,
- const gchar* url,
- GError** error)
-{
- GdkWindow* _tmp0_;
- GdkScreen* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 678 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 678 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (url != NULL);
-#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = gdk_window_get_screen (_tmp0_);
-#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala"
- sys_show_uri (_tmp1_, url, &_inner_error_);
-#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_propagate_error (error, _inner_error_);
-#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 4084 "AppWindow.c"
- }
-}
-
-
-static void
-app_window_real_add_actions (AppWindow* self)
-{
-#line 683 "/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 4094 "AppWindow.c"
-}
-
-
-void
-app_window_add_actions (AppWindow* self)
-{
-#line 682 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 682 "/home/jens/Source/shotwell/src/AppWindow.vala"
- APP_WINDOW_GET_CLASS (self)->add_actions (self);
-#line 4105 "AppWindow.c"
-}
-
-
-void
-app_window_go_fullscreen (AppWindow* self,
- Page* page)
-{
- FullscreenWindow* _tmp0_;
- gint _tmp2_ = 0;
- gint _tmp3_ = 0;
- FullscreenWindow* fsw = NULL;
- FullscreenWindow* _tmp4_;
- Page* _tmp5_;
- Page* _tmp6_;
- gboolean _tmp7_;
- FullscreenWindow* _tmp11_;
- FullscreenWindow* _tmp12_;
- FullscreenWindow* _tmp13_;
-#line 686 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 686 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 688 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_fullscreen_window;
-#line 688 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_ != NULL) {
-#line 4132 "AppWindow.c"
- FullscreenWindow* _tmp1_;
-#line 689 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = app_window_fullscreen_window;
-#line 689 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow));
-#line 691 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 4140 "AppWindow.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_get_position (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), &_tmp2_, &_tmp3_);
-#line 694 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->pos_x = _tmp2_;
-#line 694 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->pos_y = _tmp3_;
-#line 695 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 697 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = fullscreen_window_new (page);
-#line 697 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_object_ref_sink (_tmp4_);
-#line 697 "/home/jens/Source/shotwell/src/AppWindow.vala"
- fsw = _tmp4_;
-#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = _tmp5_;
-#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = _tmp6_ != NULL;
-#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp6_);
-#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp7_) {
-#line 4166 "AppWindow.c"
- Page* _tmp8_;
- Page* _tmp9_;
- FullscreenWindow* _tmp10_;
-#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = _tmp8_;
-#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = fsw;
-#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_switching_to_fullscreen (_tmp9_, _tmp10_);
-#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp9_);
-#line 4180 "AppWindow.c"
- }
-#line 702 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = fsw;
-#line 702 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp12_ = _g_object_ref0 (_tmp11_);
-#line 702 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (app_window_fullscreen_window);
-#line 702 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_fullscreen_window = _tmp12_;
-#line 703 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp13_ = app_window_fullscreen_window;
-#line 703 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_window_get_type (), GtkWindow));
-#line 686 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (fsw);
-#line 4196 "AppWindow.c"
-}
-
-
-void
-app_window_end_fullscreen (AppWindow* self)
-{
- FullscreenWindow* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- Page* _tmp3_;
- Page* _tmp4_;
- gboolean _tmp5_;
- FullscreenWindow* _tmp9_;
- FullscreenWindow* _tmp10_;
-#line 706 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 707 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_fullscreen_window;
-#line 707 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp0_ == NULL) {
-#line 708 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 4219 "AppWindow.c"
- }
-#line 710 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->pos_x;
-#line 710 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = self->pos_y;
-#line 710 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_move (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp1_, _tmp2_);
-#line 712 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = _tmp4_ != NULL;
-#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp5_) {
-#line 4239 "AppWindow.c"
- Page* _tmp6_;
- Page* _tmp7_;
- FullscreenWindow* _tmp8_;
-#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = _tmp6_;
-#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = app_window_fullscreen_window;
-#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page_returning_from_fullscreen (_tmp7_, _tmp8_);
-#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp7_);
-#line 4253 "AppWindow.c"
- }
-#line 717 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = app_window_fullscreen_window;
-#line 717 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 718 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = app_window_fullscreen_window;
-#line 718 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 719 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (app_window_fullscreen_window);
-#line 719 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_fullscreen_window = NULL;
-#line 721 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow));
-#line 4269 "AppWindow.c"
-}
-
-
-GAction*
-app_window_get_common_action (AppWindow* self,
- const gchar* name)
-{
- GAction* result = NULL;
- GAction* _tmp0_;
- GAction* _tmp1_;
-#line 724 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (IS_APP_WINDOW (self), NULL);
-#line 724 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 725 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), name);
-#line 725 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 725 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp1_;
-#line 725 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 4292 "AppWindow.c"
-}
-
-
-void
-app_window_set_common_action_sensitive (AppWindow* self,
- const gchar* name,
- gboolean sensitive)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 728 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 728 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (name != NULL);
-#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_get_common_action (self, name);
-#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ == NULL) {
-#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 4317 "AppWindow.c"
- }
-#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala"
- action = _tmp1_;
-#line 730 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = action;
-#line 730 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_ != NULL) {
-#line 4325 "AppWindow.c"
- GSimpleAction* _tmp3_;
-#line 731 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = action;
-#line 731 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_simple_action_set_enabled (_tmp3_, sensitive);
-#line 4331 "AppWindow.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (action);
-#line 4335 "AppWindow.c"
-}
-
-
-void
-app_window_set_common_action_important (AppWindow* self,
- const gchar* name,
- gboolean important)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 734 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 734 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (name != NULL);
-#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_get_common_action (self, name);
-#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ == NULL) {
-#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 4360 "AppWindow.c"
- }
-#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala"
- action = _tmp1_;
-#line 736 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = action;
-#line 736 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_ != NULL) {
-#line 4368 "AppWindow.c"
- GSimpleAction* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
-#line 737 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = action;
-#line 737 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 737 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = _tmp4_;
-#line 737 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_simple_action_set_enabled (_tmp3_, _tmp5_);
-#line 4380 "AppWindow.c"
- }
-#line 734 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (action);
-#line 4384 "AppWindow.c"
-}
-
-
-void
-app_window_set_common_action_visible (AppWindow* self,
- const gchar* name,
- gboolean visible)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 740 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 740 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (name != NULL);
-#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_get_common_action (self, name);
-#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ == NULL) {
-#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 4409 "AppWindow.c"
- }
-#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala"
- action = _tmp1_;
-#line 742 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = action;
-#line 742 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_ != NULL) {
-#line 4417 "AppWindow.c"
- GSimpleAction* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
-#line 743 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = action;
-#line 743 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 743 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = _tmp4_;
-#line 743 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_simple_action_set_enabled (_tmp3_, _tmp5_);
-#line 4429 "AppWindow.c"
- }
-#line 740 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (action);
-#line 4433 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_update_common_actions_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_update_common_actions ((AppWindow*) self);
-#line 4445 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_update_common_actions_view_collection_selection_group_altered (ViewCollection* _sender,
- gpointer self)
-{
-#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_update_common_actions ((AppWindow*) self);
-#line 4455 "AppWindow.c"
-}
-
-
-static void
-_app_window_on_update_common_actions_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self)
-{
-#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_on_update_common_actions ((AppWindow*) self);
-#line 4466 "AppWindow.c"
-}
-
-
-static void
-app_window_real_switched_pages (PageWindow* base,
- Page* old_page,
- Page* new_page)
-{
- AppWindow * self;
-#line 746 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_APP_WINDOW, AppWindow);
-#line 746 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page));
-#line 746 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page));
-#line 747 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_update_common_action_availability (self, old_page, new_page);
-#line 749 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (old_page != NULL) {
-#line 4486 "AppWindow.c"
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- guint _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- guint _tmp5_;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- guint _tmp8_;
-#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_get_view (old_page);
-#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE);
-#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _app_window_on_update_common_actions_data_collection_contents_altered, self);
-#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp1_);
-#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = page_get_view (old_page);
-#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_parse_name ("selection-group-altered", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _app_window_on_update_common_actions_view_collection_selection_group_altered, self);
-#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp4_);
-#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = page_get_view (old_page);
-#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = _tmp6_;
-#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp8_, NULL, FALSE);
-#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _app_window_on_update_common_actions_view_collection_items_state_changed, self);
-#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp7_);
-#line 4526 "AppWindow.c"
- }
-#line 755 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (new_page != NULL) {
-#line 4530 "AppWindow.c"
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- ViewCollection* _tmp15_;
- ViewCollection* _tmp16_;
- ViewCollection* _tmp17_;
- ViewCollection* _tmp18_;
-#line 756 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = page_get_view (new_page);
-#line 756 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = _tmp9_;
-#line 756 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _app_window_on_update_common_actions_data_collection_contents_altered, self, 0);
-#line 756 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp10_);
-#line 757 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = page_get_view (new_page);
-#line 757 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp12_ = _tmp11_;
-#line 757 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_connect_object (_tmp12_, "selection-group-altered", (GCallback) _app_window_on_update_common_actions_view_collection_selection_group_altered, self, 0);
-#line 757 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp12_);
-#line 758 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp13_ = page_get_view (new_page);
-#line 758 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp14_ = _tmp13_;
-#line 758 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_signal_connect_object (_tmp14_, "items-state-changed", (GCallback) _app_window_on_update_common_actions_view_collection_items_state_changed, self, 0);
-#line 758 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp14_);
-#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp15_ = page_get_view (new_page);
-#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp16_ = _tmp15_;
-#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp17_ = page_get_view (new_page);
-#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp18_ = _tmp17_;
-#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_update_common_actions (self, new_page, view_collection_get_selected_count (_tmp16_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection)));
-#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp18_);
-#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp16_);
-#line 4579 "AppWindow.c"
- }
-#line 764 "/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), old_page, new_page);
-#line 4583 "AppWindow.c"
-}
-
-
-static void
-app_window_real_update_common_action_availability (AppWindow* self,
- Page* old_page,
- Page* new_page)
-{
- gboolean is_checkerboard = FALSE;
-#line 770 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page));
-#line 770 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page));
-#line 771 "/home/jens/Source/shotwell/src/AppWindow.vala"
- is_checkerboard = G_TYPE_CHECK_INSTANCE_TYPE (new_page, TYPE_CHECKERBOARD_PAGE);
-#line 773 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_set_common_action_sensitive (self, "CommonSelectAll", is_checkerboard);
-#line 774 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_set_common_action_sensitive (self, "CommonSelectNone", is_checkerboard);
-#line 4603 "AppWindow.c"
-}
-
-
-void
-app_window_update_common_action_availability (AppWindow* self,
- Page* old_page,
- Page* new_page)
-{
-#line 770 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 770 "/home/jens/Source/shotwell/src/AppWindow.vala"
- APP_WINDOW_GET_CLASS (self)->update_common_action_availability (self, old_page, new_page);
-#line 4616 "AppWindow.c"
-}
-
-
-static void
-app_window_real_update_common_actions (AppWindow* self,
- Page* page,
- gint selected_count,
- gint count)
-{
-#line 780 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 781 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_CHECKERBOARD_PAGE)) {
-#line 782 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_set_common_action_sensitive (self, "CommonSelectAll", count > 0);
-#line 4632 "AppWindow.c"
- }
-#line 783 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_set_common_action_sensitive (self, "CommonJumpToFile", selected_count == 1);
-#line 785 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_decorate_undo_action (self);
-#line 786 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_decorate_redo_action (self);
-#line 4640 "AppWindow.c"
-}
-
-
-void
-app_window_update_common_actions (AppWindow* self,
- Page* page,
- gint selected_count,
- gint count)
-{
-#line 780 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 780 "/home/jens/Source/shotwell/src/AppWindow.vala"
- APP_WINDOW_GET_CLASS (self)->update_common_actions (self, page, selected_count, count);
-#line 4654 "AppWindow.c"
-}
-
-
-static void
-app_window_on_update_common_actions (AppWindow* self)
-{
- Page* page = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
-#line 789 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 790 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 790 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page = _tmp0_;
-#line 791 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = page;
-#line 791 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ != NULL) {
-#line 4674 "AppWindow.c"
- Page* _tmp2_;
- Page* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- Page* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = page;
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = page;
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = page_get_view (_tmp3_);
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = _tmp4_;
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = page;
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = page_get_view (_tmp6_);
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = _tmp7_;
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_update_common_actions (self, _tmp2_, view_collection_get_selected_count (_tmp5_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)));
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp8_);
-#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp5_);
-#line 4702 "AppWindow.c"
- }
-#line 789 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (page);
-#line 4706 "AppWindow.c"
-}
-
-
-void
-app_window_update_menu_item_label (AppWindow* self,
- const gchar* id,
- const gchar* new_label)
-{
- GMenu* bar = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
- GMenuModel* _tmp2_;
- GMenu* _tmp3_;
- GMenu* _tmp4_;
- GMenu* _tmp5_;
- gint items = 0;
- GMenu* _tmp6_;
-#line 795 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 795 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (id != NULL);
-#line 795 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (new_label != NULL);
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = page_get_menubar (_tmp1_);
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_menu_get_type ()) ? ((GMenu*) _tmp2_) : NULL;
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp3_ == NULL) {
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp2_);
-#line 4742 "AppWindow.c"
- }
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = _tmp3_;
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala"
- bar = _tmp4_;
-#line 799 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = bar;
-#line 799 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp5_ == NULL) {
-#line 800 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (bar);
-#line 800 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 4758 "AppWindow.c"
- }
-#line 803 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = bar;
-#line 803 "/home/jens/Source/shotwell/src/AppWindow.vala"
- items = g_menu_model_get_n_items (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, g_menu_model_get_type (), GMenuModel));
-#line 4764 "AppWindow.c"
- {
- gint i = 0;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- i = 0;
-#line 4769 "AppWindow.c"
- {
- gboolean _tmp7_ = FALSE;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = TRUE;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- while (TRUE) {
-#line 4776 "AppWindow.c"
- gint _tmp9_;
- gint _tmp10_;
- GMenuModel* model = NULL;
- GMenu* _tmp11_;
- gint _tmp12_;
- GMenuModel* _tmp13_;
- GMenu* _tmp14_;
- gint model_items = 0;
- GMenuModel* _tmp15_;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp7_) {
-#line 4788 "AppWindow.c"
- gint _tmp8_;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = i;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- i = _tmp8_ + 1;
-#line 4794 "AppWindow.c"
- }
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = FALSE;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = i;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = items;
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!(_tmp9_ < _tmp10_)) {
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- break;
-#line 4806 "AppWindow.c"
- }
-#line 805 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = bar;
-#line 805 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp12_ = i;
-#line 805 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp13_ = g_menu_model_get_item_link (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, g_menu_model_get_type (), GMenuModel), _tmp12_, G_MENU_LINK_SUBMENU);
-#line 805 "/home/jens/Source/shotwell/src/AppWindow.vala"
- model = _tmp13_;
-#line 806 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp14_ = bar;
-#line 806 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp14_ == NULL) {
-#line 807 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (model);
-#line 807 "/home/jens/Source/shotwell/src/AppWindow.vala"
- continue;
-#line 4824 "AppWindow.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp15_ = model;
-#line 810 "/home/jens/Source/shotwell/src/AppWindow.vala"
- model_items = g_menu_model_get_n_items (_tmp15_);
-#line 4830 "AppWindow.c"
- {
- gint j = 0;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- j = 0;
-#line 4835 "AppWindow.c"
- {
- gboolean _tmp16_ = FALSE;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp16_ = TRUE;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- while (TRUE) {
-#line 4842 "AppWindow.c"
- gint _tmp18_;
- gint _tmp19_;
- GMenuModel* subsection = NULL;
- GMenuModel* _tmp20_;
- gint _tmp21_;
- GMenuModel* _tmp22_;
- GMenuModel* _tmp23_;
- gint sub_items = 0;
- GMenuModel* _tmp24_;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp16_) {
-#line 4854 "AppWindow.c"
- gint _tmp17_;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp17_ = j;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- j = _tmp17_ + 1;
-#line 4860 "AppWindow.c"
- }
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp16_ = FALSE;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp18_ = j;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp19_ = model_items;
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!(_tmp18_ < _tmp19_)) {
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- break;
-#line 4872 "AppWindow.c"
- }
-#line 812 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp20_ = model;
-#line 812 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp21_ = j;
-#line 812 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp22_ = g_menu_model_get_item_link (_tmp20_, _tmp21_, G_MENU_LINK_SECTION);
-#line 812 "/home/jens/Source/shotwell/src/AppWindow.vala"
- subsection = _tmp22_;
-#line 814 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp23_ = subsection;
-#line 814 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp23_ == NULL) {
-#line 815 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (subsection);
-#line 815 "/home/jens/Source/shotwell/src/AppWindow.vala"
- continue;
-#line 4890 "AppWindow.c"
- }
-#line 818 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp24_ = subsection;
-#line 818 "/home/jens/Source/shotwell/src/AppWindow.vala"
- sub_items = g_menu_model_get_n_items (_tmp24_);
-#line 4896 "AppWindow.c"
- {
- gint k = 0;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- k = 0;
-#line 4901 "AppWindow.c"
- {
- gboolean _tmp25_ = FALSE;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp25_ = TRUE;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- while (TRUE) {
-#line 4908 "AppWindow.c"
- gint _tmp27_;
- gint _tmp28_;
- GMenuAttributeIter* it = NULL;
- GMenuModel* _tmp29_;
- gint _tmp30_;
- GMenuAttributeIter* _tmp31_;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp25_) {
-#line 4917 "AppWindow.c"
- gint _tmp26_;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp26_ = k;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- k = _tmp26_ + 1;
-#line 4923 "AppWindow.c"
- }
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp25_ = FALSE;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp27_ = k;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp28_ = sub_items;
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!(_tmp27_ < _tmp28_)) {
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- break;
-#line 4935 "AppWindow.c"
- }
-#line 820 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp29_ = subsection;
-#line 820 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp30_ = k;
-#line 820 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp31_ = g_menu_model_iterate_item_attributes (_tmp29_, _tmp30_);
-#line 820 "/home/jens/Source/shotwell/src/AppWindow.vala"
- it = _tmp31_;
-#line 821 "/home/jens/Source/shotwell/src/AppWindow.vala"
- while (TRUE) {
-#line 4947 "AppWindow.c"
- GMenuAttributeIter* _tmp32_;
- gboolean _tmp33_ = FALSE;
- gboolean _tmp34_ = FALSE;
- GMenuAttributeIter* _tmp35_;
- const gchar* _tmp36_;
-#line 821 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp32_ = it;
-#line 821 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!g_menu_attribute_iter_next (_tmp32_)) {
-#line 821 "/home/jens/Source/shotwell/src/AppWindow.vala"
- break;
-#line 4959 "AppWindow.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp35_ = it;
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp36_ = g_menu_attribute_iter_get_name (_tmp35_);
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (g_strcmp0 (_tmp36_, "id") == 0) {
-#line 4967 "AppWindow.c"
- GMenuAttributeIter* _tmp37_;
- GVariant* _tmp38_;
- GVariant* _tmp39_;
- const gchar* _tmp40_;
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp37_ = it;
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp38_ = g_menu_attribute_iter_get_value (_tmp37_);
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp39_ = _tmp38_;
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp40_ = g_variant_get_string (_tmp39_, NULL);
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp34_ = g_strcmp0 (_tmp40_, id) == 0;
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_variant_unref0 (_tmp39_);
-#line 4984 "AppWindow.c"
- } else {
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp34_ = FALSE;
-#line 4988 "AppWindow.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp34_) {
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp33_ = TRUE;
-#line 4994 "AppWindow.c"
- } else {
- gboolean _tmp41_ = FALSE;
- GMenuAttributeIter* _tmp42_;
- const gchar* _tmp43_;
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp42_ = it;
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp43_ = g_menu_attribute_iter_get_name (_tmp42_);
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (g_strcmp0 (_tmp43_, "action") == 0) {
-#line 5005 "AppWindow.c"
- GMenuAttributeIter* _tmp44_;
- GVariant* _tmp45_;
- GVariant* _tmp46_;
- const gchar* _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp44_ = it;
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp45_ = g_menu_attribute_iter_get_value (_tmp44_);
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp46_ = _tmp45_;
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp47_ = g_variant_get_string (_tmp46_, NULL);
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp48_ = g_strconcat (".", id, NULL);
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp49_ = _tmp48_;
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp41_ = g_str_has_suffix (_tmp47_, _tmp49_);
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp49_);
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_variant_unref0 (_tmp46_);
-#line 5030 "AppWindow.c"
- } else {
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp41_ = FALSE;
-#line 5034 "AppWindow.c"
- }
-#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp33_ = _tmp41_;
-#line 5038 "AppWindow.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp33_) {
-#line 5042 "AppWindow.c"
- GMenu* md = NULL;
- GMenuModel* _tmp50_;
- GMenu* _tmp51_;
- GMenuItem* m = NULL;
- GMenuModel* _tmp52_;
- gint _tmp53_;
- GMenuItem* _tmp54_;
- GMenuItem* _tmp55_;
- GMenu* _tmp56_;
- gint _tmp57_;
- GMenu* _tmp58_;
- gint _tmp59_;
- GMenuItem* _tmp60_;
-#line 824 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp50_ = subsection;
-#line 824 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp51_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp50_, g_menu_get_type ()) ? ((GMenu*) _tmp50_) : NULL);
-#line 824 "/home/jens/Source/shotwell/src/AppWindow.vala"
- md = _tmp51_;
-#line 825 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp52_ = subsection;
-#line 825 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp53_ = k;
-#line 825 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp54_ = g_menu_item_new_from_model (_tmp52_, _tmp53_);
-#line 825 "/home/jens/Source/shotwell/src/AppWindow.vala"
- m = _tmp54_;
-#line 826 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp55_ = m;
-#line 826 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_menu_item_set_label (_tmp55_, new_label);
-#line 827 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp56_ = md;
-#line 827 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp57_ = k;
-#line 827 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_menu_remove (_tmp56_, _tmp57_);
-#line 828 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp58_ = md;
-#line 828 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp59_ = k;
-#line 828 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp60_ = m;
-#line 828 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_menu_insert_item (_tmp58_, _tmp59_, _tmp60_);
-#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (m);
-#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (md);
-#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (it);
-#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (subsection);
-#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (model);
-#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (bar);
-#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 5102 "AppWindow.c"
- }
- }
-#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (it);
-#line 5107 "AppWindow.c"
- }
- }
- }
-#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (subsection);
-#line 5113 "AppWindow.c"
- }
- }
- }
-#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (model);
-#line 5119 "AppWindow.c"
- }
- }
- }
-#line 795 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (bar);
-#line 5125 "AppWindow.c"
-}
-
-
-static gpointer
-_command_manager_ref0 (gpointer self)
-{
-#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return self ? command_manager_ref (self) : NULL;
-#line 5134 "AppWindow.c"
-}
-
-
-CommandManager*
-app_window_get_command_manager (void)
-{
- CommandManager* result = NULL;
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_command_manager;
-#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _command_manager_ref0 (_tmp0_);
-#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = _tmp1_;
-#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 5152 "AppWindow.c"
-}
-
-
-static void
-app_window_on_command_manager_altered (AppWindow* self)
-{
-#line 844 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 845 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_decorate_undo_action (self);
-#line 846 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_decorate_redo_action (self);
-#line 5165 "AppWindow.c"
-}
-
-
-static void
-app_window_decorate_command_manager_action (AppWindow* self,
- const gchar* name,
- const gchar* prefix,
- const gchar* default_explanation,
- CommandDescription* desc)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
- gchar* label = NULL;
- gchar* _tmp3_;
- const gchar* _tmp13_;
-#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (name != NULL);
-#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (prefix != NULL);
-#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (default_explanation != NULL);
-#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail ((desc == NULL) || IS_COMMAND_DESCRIPTION (desc));
-#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_get_common_action (self, name);
-#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ == NULL) {
-#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 5201 "AppWindow.c"
- }
-#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala"
- action = _tmp1_;
-#line 852 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = action;
-#line 852 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_ == NULL) {
-#line 853 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (action);
-#line 853 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return;
-#line 5213 "AppWindow.c"
- }
-#line 856 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = g_strdup (prefix);
-#line 856 "/home/jens/Source/shotwell/src/AppWindow.vala"
- label = _tmp3_;
-#line 858 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (desc != NULL) {
-#line 5221 "AppWindow.c"
- const gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GSimpleAction* _tmp10_;
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = label;
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = command_description_get_name (desc);
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp6_ = _tmp5_;
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp7_ = g_strconcat (" ", _tmp6_, NULL);
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp8_ = _tmp7_;
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp9_ = g_strconcat (_tmp4_, _tmp8_, NULL);
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (label);
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- label = _tmp9_;
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp8_);
-#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (_tmp6_);
-#line 860 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp10_ = action;
-#line 860 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_simple_action_set_enabled (_tmp10_, TRUE);
-#line 5253 "AppWindow.c"
- } else {
- gchar* _tmp11_;
- GSimpleAction* _tmp12_;
-#line 862 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp11_ = g_strdup (prefix);
-#line 862 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (label);
-#line 862 "/home/jens/Source/shotwell/src/AppWindow.vala"
- label = _tmp11_;
-#line 863 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp12_ = action;
-#line 863 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_simple_action_set_enabled (_tmp12_, FALSE);
-#line 5267 "AppWindow.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp13_ = label;
-#line 865 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_update_menu_item_label (self, name, _tmp13_);
-#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_free0 (label);
-#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (action);
-#line 5277 "AppWindow.c"
-}
-
-
-void
-app_window_decorate_undo_action (AppWindow* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
- CommandDescription* _tmp2_;
- CommandDescription* _tmp3_;
-#line 868 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_get_command_manager ();
-#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = command_manager_get_undo_description (_tmp1_);
-#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_decorate_command_manager_action (self, "CommonUndo", RESOURCES_UNDO_MENU, "", _tmp3_);
-#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _command_manager_unref0 (_tmp1_);
-#line 5304 "AppWindow.c"
-}
-
-
-void
-app_window_decorate_redo_action (AppWindow* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
- CommandDescription* _tmp2_;
- CommandDescription* _tmp3_;
-#line 873 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_get_command_manager ();
-#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = _tmp0_;
-#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = command_manager_get_redo_description (_tmp1_);
-#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = _tmp2_;
-#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_decorate_command_manager_action (self, "CommonRedo", RESOURCES_REDO_MENU, "", _tmp3_);
-#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _command_manager_unref0 (_tmp1_);
-#line 5331 "AppWindow.c"
-}
-
-
-static void
-app_window_on_undo (AppWindow* self)
-{
- CommandManager* _tmp0_;
-#line 878 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 879 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_command_manager;
-#line 879 "/home/jens/Source/shotwell/src/AppWindow.vala"
- command_manager_undo (_tmp0_);
-#line 5345 "AppWindow.c"
-}
-
-
-static void
-app_window_on_redo (AppWindow* self)
-{
- CommandManager* _tmp0_;
-#line 882 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 883 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = app_window_command_manager;
-#line 883 "/home/jens/Source/shotwell/src/AppWindow.vala"
- command_manager_redo (_tmp0_);
-#line 5359 "AppWindow.c"
-}
-
-
-static void
-app_window_on_select_all (AppWindow* self)
-{
- Page* page = NULL;
- Page* _tmp0_;
- CheckerboardPage* _tmp1_;
- Page* _tmp2_;
-#line 886 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp0_) : NULL;
-#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ == NULL) {
-#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 5380 "AppWindow.c"
- }
-#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 888 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = page;
-#line 888 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_ != NULL) {
-#line 5388 "AppWindow.c"
- Page* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = page;
-#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = page_get_view (_tmp3_);
-#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = _tmp4_;
-#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala"
- view_collection_select_all (_tmp5_);
-#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp5_);
-#line 5402 "AppWindow.c"
- }
-#line 886 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (page);
-#line 5406 "AppWindow.c"
-}
-
-
-static void
-app_window_on_select_none (AppWindow* self)
-{
- Page* page = NULL;
- Page* _tmp0_;
- CheckerboardPage* _tmp1_;
- Page* _tmp2_;
-#line 892 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_if_fail (IS_APP_WINDOW (self));
-#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp0_) : NULL;
-#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp1_ == NULL) {
-#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (_tmp0_);
-#line 5427 "AppWindow.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala"
- page = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 894 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp2_ = page;
-#line 894 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (_tmp2_ != NULL) {
-#line 5435 "AppWindow.c"
- Page* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp3_ = page;
-#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp4_ = page_get_view (_tmp3_);
-#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp5_ = _tmp4_;
-#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala"
- view_collection_unselect_all (_tmp5_);
-#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _data_collection_unref0 (_tmp5_);
-#line 5449 "AppWindow.c"
- }
-#line 892 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _g_object_unref0 (page);
-#line 5453 "AppWindow.c"
-}
-
-
-static gboolean
-app_window_real_configure_event (GtkWidget* base,
- GdkEventConfigure* event)
-{
- AppWindow * self;
- gboolean result = FALSE;
- GdkWindow* _tmp0_;
- gboolean _tmp1_;
-#line 898 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_APP_WINDOW, AppWindow);
-#line 898 "/home/jens/Source/shotwell/src/AppWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 899 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp0_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 899 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->maximized = gdk_window_get_state (_tmp0_) == GDK_WINDOW_STATE_MAXIMIZED;
-#line 901 "/home/jens/Source/shotwell/src/AppWindow.vala"
- _tmp1_ = self->maximized;
-#line 901 "/home/jens/Source/shotwell/src/AppWindow.vala"
- if (!_tmp1_) {
-#line 5477 "AppWindow.c"
- gint _tmp2_ = 0;
- gint _tmp3_ = 0;
-#line 902 "/home/jens/Source/shotwell/src/AppWindow.vala"
- gtk_window_get_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), &_tmp2_, &_tmp3_);
-#line 902 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->dimensions.width = _tmp2_;
-#line 902 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->dimensions.height = _tmp3_;
-#line 5486 "AppWindow.c"
- }
-#line 904 "/home/jens/Source/shotwell/src/AppWindow.vala"
- result = GTK_WIDGET_CLASS (app_window_parent_class)->configure_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget), event);
-#line 904 "/home/jens/Source/shotwell/src/AppWindow.vala"
- return result;
-#line 5492 "AppWindow.c"
-}
-
-
-static void
-app_window_class_init (AppWindowClass * klass)
-{
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- app_window_parent_class = g_type_class_peek_parent (klass);
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((AppWindowClass *) klass)->on_fullscreen = (void (*) (AppWindow *)) app_window_real_on_fullscreen;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((AppWindowClass *) klass)->get_app_role = (gchar* (*) (AppWindow *)) app_window_real_get_app_role;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((AppWindowClass *) klass)->on_quit = (void (*) (AppWindow *)) app_window_real_on_quit;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->destroy = (void (*) (GtkWidget *)) app_window_real_destroy;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((AppWindowClass *) klass)->add_actions = (void (*) (AppWindow *)) app_window_real_add_actions;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((PageWindowClass *) klass)->switched_pages = (void (*) (PageWindow *, Page*, Page*)) app_window_real_switched_pages;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((AppWindowClass *) klass)->update_common_action_availability = (void (*) (AppWindow *, Page*, Page*)) app_window_real_update_common_action_availability;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((AppWindowClass *) klass)->update_common_actions = (void (*) (AppWindow *, Page*, gint, gint)) app_window_real_update_common_actions;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- ((GtkWidgetClass *) klass)->configure_event = (gboolean (*) (GtkWidget *, GdkEventConfigure*)) app_window_real_configure_event;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- G_OBJECT_CLASS (klass)->finalize = app_window_finalize;
-#line 5521 "AppWindow.c"
-}
-
-
-static void
-app_window_instance_init (AppWindow * self)
-{
-#line 409 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->maximized = FALSE;
-#line 411 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->pos_x = 0;
-#line 412 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self->pos_y = 0;
-#line 5534 "AppWindow.c"
-}
-
-
-static void
-app_window_finalize (GObject * obj)
-{
- AppWindow * self;
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_APP_WINDOW, AppWindow);
-#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala"
- G_OBJECT_CLASS (app_window_parent_class)->finalize (obj);
-#line 5546 "AppWindow.c"
-}
-
-
-GType
-app_window_get_type (void)
-{
- static volatile gsize app_window_type_id__volatile = 0;
- if (g_once_init_enter (&app_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (AppWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) app_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AppWindow), 0, (GInstanceInitFunc) app_window_instance_init, NULL };
- GType app_window_type_id;
- app_window_type_id = g_type_register_static (TYPE_PAGE_WINDOW, "AppWindow", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&app_window_type_id__volatile, app_window_type_id);
- }
- return app_window_type_id__volatile;
-}
-
-
-
diff --git a/src/AppWindow.vala b/src/AppWindow.vala
index aefe3c6..22b47c2 100644
--- a/src/AppWindow.vala
+++ b/src/AppWindow.vala
@@ -43,13 +43,13 @@ public class FullscreenWindow : PageWindow {
// restore pin state
is_toolbar_dismissal_enabled = Config.Facade.get_instance().get_pin_toolbar_state();
- pin_button.set_icon_name("pin-toolbar");
+ pin_button.set_icon_name("view-pin-symbolic");
pin_button.set_label(_("Pin Toolbar"));
pin_button.set_tooltip_text(_("Pin the toolbar open"));
pin_button.set_active(!is_toolbar_dismissal_enabled);
pin_button.clicked.connect(update_toolbar_dismissal);
- close_button.set_icon_name("view-restore");
+ close_button.set_icon_name("view-restore-symbolic");
close_button.set_tooltip_text(_("Leave fullscreen"));
close_button.set_action_name ("win.LeaveFullscreen");
@@ -115,12 +115,8 @@ public class FullscreenWindow : PageWindow {
}
private Gdk.Rectangle get_monitor_geometry() {
- Gdk.Rectangle monitor;
-
- get_screen().get_monitor_geometry(
- get_screen().get_monitor_at_window(AppWindow.get_instance().get_window()), out monitor);
-
- return monitor;
+ var monitor = get_display().get_monitor_at_window(AppWindow.get_instance().get_window());
+ return monitor.get_geometry();
}
public override bool configure_event(Gdk.EventConfigure event) {
@@ -195,15 +191,15 @@ public class FullscreenWindow : PageWindow {
}
private bool is_pointer_in_toolbar() {
- Gdk.DeviceManager? devmgr = get_display().get_device_manager();
- if (devmgr == null) {
- debug("No device manager for display");
+ var seat = get_display().get_default_seat();
+ if (seat == null) {
+ debug("No seat for display");
return false;
}
int py;
- devmgr.get_client_pointer().get_position(null, null, out py);
+ seat.get_pointer().get_position(null, null, out py);
int wy;
toolbar.get_window().get_geometry(null, out wy, null, null);
@@ -445,12 +441,8 @@ public abstract class AppWindow : PageWindow {
add_actions ();
Gtk.CssProvider provider = new Gtk.CssProvider();
- try {
- provider.load_from_data(Resources.CUSTOM_CSS, -1);
- Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
- } catch (Error err) {
- debug("Unable to load custom CSS: %s", err.message);
- }
+ provider.load_from_resource("/org/gnome/Shotwell/misc/org.gnome.Shotwell.css");
+ Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
}
private const GLib.ActionEntry[] common_actions = {
@@ -597,9 +589,9 @@ public abstract class AppWindow : PageWindow {
public abstract string get_app_role();
protected void on_about() {
- const string[] artists = { "Braunschweiger Löwe created by Magnus Manske., CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=109735", null };
+ const string[] artists = { "Celler Schloss created by Hajotthu, CC BY-SA 3.0, https://commons.wikimedia.org/wiki/File:Celler_Schloss_April_2010.jpg#file", null };
Gtk.show_about_dialog(this,
- "version", Resources.APP_VERSION + " \u2013 \"Braunschweig\"",
+ "version", Resources.APP_VERSION + " \u2013 “Celle”",
"comments", get_app_role(),
"copyright", Resources.COPYRIGHT,
"website", Resources.HOME_URL,
@@ -615,7 +607,7 @@ public abstract class AppWindow : PageWindow {
private void on_help_contents() {
try {
- Resources.launch_help(get_screen());
+ Resources.launch_help(this);
} catch (Error err) {
error_message(_("Unable to display help: %s").printf(err.message));
}
@@ -662,21 +654,11 @@ public abstract class AppWindow : PageWindow {
}
public void show_file_uri(File file) throws Error {
- string tmp;
-
- // if file manager is nautilus then pass the full path to file; otherwise pass
- // the enclosing directory
- if(get_nautilus_install_location() != null) {
- tmp = file.get_uri().replace("'","\\\'");
- show_file_in_nautilus(tmp);
- } else {
- tmp = file.get_parent().get_uri().replace("'","\\\'");
- show_uri(tmp);
- }
+ show_file_in_filemanager.begin(file);
}
public void show_uri(string url) throws Error {
- sys_show_uri(get_window().get_screen(), url);
+ Gtk.show_uri_on_window(this, url, Gdk.CURRENT_TIME);
}
protected virtual void add_actions () {
diff --git a/src/Application.c b/src/Application.c
deleted file mode 100644
index fe89877..0000000
--- a/src/Application.c
+++ /dev/null
@@ -1,1379 +0,0 @@
-/* Application.c generated by valac 0.40.4, the Vala compiler
- * generated from Application.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-typedef struct _ApplicationPrivate ApplicationPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecApplication ParamSpecApplication;
-enum {
- APPLICATION_STARTING_SIGNAL,
- APPLICATION_EXITING_SIGNAL,
- APPLICATION_INIT_DONE_SIGNAL,
- APPLICATION_NUM_SIGNALS
-};
-static guint application_signals[APPLICATION_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Application {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ApplicationPrivate * priv;
-};
-
-struct _ApplicationClass {
- GTypeClass parent_class;
- void (*finalize) (Application *self);
- void (*starting) (Application* self);
- void (*exiting) (Application* self, gboolean panicked);
- void (*init_done) (Application* self);
-};
-
-struct _ApplicationPrivate {
- GtkApplication* system_app;
- gint system_app_run_retval;
- gboolean direct;
- gboolean fixup_raw_thumbs;
- gboolean running;
- gboolean exiting_fired;
-};
-
-struct _ParamSpecApplication {
- GParamSpec parent_instance;
-};
-
-
-static gpointer application_parent_class = NULL;
-static Application* application_instance;
-static Application* application_instance = NULL;
-
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-#define APPLICATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_APPLICATION, ApplicationPrivate))
-void application_set_raw_thumbs_fix_required (Application* self,
- gboolean should_fixup);
-gboolean application_get_raw_thumbs_fix_required (Application* self);
-GtkApplication* application_get_system_app (Application* self);
-static Application* application_new (gboolean is_direct);
-static Application* application_construct (GType object_type,
- gboolean is_direct);
-void application_panic (Application* self);
-gint application_on_command_line (GApplicationCommandLine* acl);
-static gint _application_on_command_line_g_application_command_line (GApplication* _sender,
- GApplicationCommandLine* command_line,
- gpointer self);
-void application_on_activated (void);
-static void _application_on_activated_g_application_activate (GApplication* _sender,
- gpointer self);
-static void _application_on_activated_g_application_startup (GApplication* _sender,
- gpointer self);
-void application_send_to_primary_instance (gchar** argv,
- int argv_length1);
-Application* application_get_instance (void);
-void application_present_primary_instance (void);
-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);
-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;
-AppWindow* app_window_get_instance (void);
-LibraryWindow* library_window_get_app (void);
-void library_window_mounted_camera_shell_notification (LibraryWindow* self,
- const gchar* uri,
- gboolean at_startup);
-void application_init (gboolean is_direct);
-void application_terminate (void);
-void application_exit (Application* self);
-void application_start (Application* self,
- gchar** argv,
- int argv_length1);
-guint application_inhibit (Application* self,
- GtkApplicationInhibitFlags what,
- const gchar* reason);
-void application_uninhibit (Application* self,
- guint cookie);
-gint application_get_run_return_value (Application* self);
-static void application_real_starting (Application* self);
-static void application_real_exiting (Application* self,
- gboolean panicked);
-static void application_real_init_done (Application* self);
-static void application_finalize (Application * 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);
-
-
-void
-application_set_raw_thumbs_fix_required (Application* self,
- gboolean should_fixup)
-{
-#line 24 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (IS_APPLICATION (self));
-#line 25 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->fixup_raw_thumbs = should_fixup;
-#line 192 "Application.c"
-}
-
-
-gboolean
-application_get_raw_thumbs_fix_required (Application* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_val_if_fail (IS_APPLICATION (self), FALSE);
-#line 29 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = self->priv->fixup_raw_thumbs;
-#line 29 "/home/jens/Source/shotwell/src/Application.vala"
- result = _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 209 "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 218 "Application.c"
-}
-
-
-GtkApplication*
-application_get_system_app (Application* self)
-{
- GtkApplication* result = NULL;
- GtkApplication* _tmp0_;
- GtkApplication* _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_val_if_fail (IS_APPLICATION (self), NULL);
-#line 33 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = self->priv->system_app;
-#line 33 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 33 "/home/jens/Source/shotwell/src/Application.vala"
- result = _tmp1_;
-#line 33 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 238 "Application.c"
-}
-
-
-static gint
-_application_on_command_line_g_application_command_line (GApplication* _sender,
- GApplicationCommandLine* command_line,
- gpointer self)
-{
- gint result;
- result = application_on_command_line (command_line);
-#line 65 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 251 "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 261 "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 271 "Application.c"
-}
-
-
-static Application*
-application_construct (GType object_type,
- gboolean is_direct)
-{
- Application* self = NULL;
- gboolean _tmp3_;
- GtkApplication* _tmp5_;
- GtkApplication* _tmp6_;
- GError * _inner_error_ = NULL;
-#line 39 "/home/jens/Source/shotwell/src/Application.vala"
- self = (Application*) g_type_create_instance (object_type);
-#line 40 "/home/jens/Source/shotwell/src/Application.vala"
- if (is_direct) {
-#line 288 "Application.c"
- GtkApplication* _tmp0_;
-#line 45 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = gtk_application_new ("org.yorba.shotwell-direct", G_APPLICATION_HANDLES_OPEN | G_APPLICATION_NON_UNIQUE);
-#line 45 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (self->priv->system_app);
-#line 45 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->system_app = _tmp0_;
-#line 296 "Application.c"
- } else {
- GtkApplication* _tmp1_;
-#line 51 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = gtk_application_new ("org.yorba.shotwell", G_APPLICATION_HANDLES_OPEN | G_APPLICATION_HANDLES_COMMAND_LINE);
-#line 51 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (self->priv->system_app);
-#line 51 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->system_app = _tmp1_;
-#line 305 "Application.c"
- }
- {
- GtkApplication* _tmp2_;
-#line 57 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = self->priv->system_app;
-#line 57 "/home/jens/Source/shotwell/src/Application.vala"
- g_application_register (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication), NULL, &_inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/Application.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 315 "Application.c"
- goto __catch569_g_error;
- }
- }
- goto __finally569;
- __catch569_g_error:
- {
- GError* e = NULL;
-#line 56 "/home/jens/Source/shotwell/src/Application.vala"
- e = _inner_error_;
-#line 56 "/home/jens/Source/shotwell/src/Application.vala"
- _inner_error_ = NULL;
-#line 59 "/home/jens/Source/shotwell/src/Application.vala"
- application_panic (self);
-#line 56 "/home/jens/Source/shotwell/src/Application.vala"
- _g_error_free0 (e);
-#line 331 "Application.c"
- }
- __finally569:
-#line 56 "/home/jens/Source/shotwell/src/Application.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 56 "/home/jens/Source/shotwell/src/Application.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 56 "/home/jens/Source/shotwell/src/Application.vala"
- g_clear_error (&_inner_error_);
-#line 56 "/home/jens/Source/shotwell/src/Application.vala"
- return NULL;
-#line 342 "Application.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->direct = is_direct;
-#line 64 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3_ = self->priv->direct;
-#line 64 "/home/jens/Source/shotwell/src/Application.vala"
- if (!_tmp3_) {
-#line 350 "Application.c"
- GtkApplication* _tmp4_;
-#line 65 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp4_ = self->priv->system_app;
-#line 65 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, g_application_get_type (), GApplication), "command-line", (GCallback) _application_on_command_line_g_application_command_line, NULL);
-#line 356 "Application.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp5_ = self->priv->system_app;
-#line 68 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, g_application_get_type (), GApplication), "activate", (GCallback) _application_on_activated_g_application_activate, NULL);
-#line 69 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp6_ = self->priv->system_app;
-#line 69 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, 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 368 "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 377 "Application.c"
-}
-
-
-/**
- * @brief This is a helper for library mode that should only be
- * called if we've gotten a camera mount and are _not_ the primary
- * instance.
- */
-void
-application_send_to_primary_instance (gchar** argv,
- int argv_length1)
-{
- Application* _tmp0_;
- Application* _tmp1_;
- GtkApplication* _tmp2_;
-#line 78 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_get_instance ();
-#line 78 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _tmp0_;
-#line 78 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _tmp1_->priv->system_app;
-#line 78 "/home/jens/Source/shotwell/src/Application.vala"
- g_application_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication), argv_length1, argv);
-#line 78 "/home/jens/Source/shotwell/src/Application.vala"
- _application_unref0 (_tmp1_);
-#line 403 "Application.c"
-}
-
-
-/**
- * @brief A helper for library mode that tells the primary
- * instance to bring its window to the foreground. This
- * should only be called if we are _not_ the primary instance.
- */
-void
-application_present_primary_instance (void)
-{
- Application* _tmp0_;
- Application* _tmp1_;
- GtkApplication* _tmp2_;
-#line 87 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_get_instance ();
-#line 87 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _tmp1_->priv->system_app;
-#line 87 "/home/jens/Source/shotwell/src/Application.vala"
- 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 428 "Application.c"
-}
-
-
-gboolean
-application_get_is_remote (void)
-{
- gboolean result = FALSE;
- Application* _tmp0_;
- Application* _tmp1_;
- GtkApplication* _tmp2_;
- gboolean _tmp3_;
-#line 91 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_get_instance ();
-#line 91 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _tmp0_;
-#line 91 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _tmp1_->priv->system_app;
-#line 91 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3_ = g_application_get_is_remote (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication));
-#line 91 "/home/jens/Source/shotwell/src/Application.vala"
- _application_unref0 (_tmp1_);
-#line 91 "/home/jens/Source/shotwell/src/Application.vala"
- result = _tmp3_;
-#line 91 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 454 "Application.c"
-}
-
-
-gboolean
-application_get_is_direct (void)
-{
- gboolean result = FALSE;
- Application* _tmp0_;
- Application* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
-#line 95 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_get_instance ();
-#line 95 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _tmp0_;
-#line 95 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _tmp1_->priv->direct;
-#line 95 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3_ = _tmp2_;
-#line 95 "/home/jens/Source/shotwell/src/Application.vala"
- _application_unref0 (_tmp1_);
-#line 95 "/home/jens/Source/shotwell/src/Application.vala"
- result = _tmp3_;
-#line 95 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 480 "Application.c"
-}
-
-
-void
-application_set_accels_for_action (const gchar* action,
- gchar** accel,
- int accel_length1)
-{
- Application* _tmp0_;
- Application* _tmp1_;
- GtkApplication* _tmp2_;
-#line 98 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (action != NULL);
-#line 99 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_get_instance ();
-#line 99 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _tmp0_;
-#line 99 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _tmp1_->priv->system_app;
-#line 99 "/home/jens/Source/shotwell/src/Application.vala"
- gtk_application_set_accels_for_action (_tmp2_, action, accel);
-#line 99 "/home/jens/Source/shotwell/src/Application.vala"
- _application_unref0 (_tmp1_);
-#line 504 "Application.c"
-}
-
-
-void
-application_set_menubar (GMenuModel* model)
-{
- Application* _tmp0_;
- Application* _tmp1_;
- GtkApplication* _tmp2_;
-#line 102 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail ((model == NULL) || G_IS_MENU_MODEL (model));
-#line 103 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_get_instance ();
-#line 103 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _tmp0_;
-#line 103 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _tmp1_->priv->system_app;
-#line 103 "/home/jens/Source/shotwell/src/Application.vala"
- gtk_application_set_menubar (_tmp2_, model);
-#line 103 "/home/jens/Source/shotwell/src/Application.vala"
- _application_unref0 (_tmp1_);
-#line 526 "Application.c"
-}
-
-
-/**
- * @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/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)
-{
- Application* _tmp0_;
- Application* _tmp1_;
- LibraryWindow* lw = NULL;
- AppWindow* _tmp2_;
- LibraryWindow* _tmp3_;
- gboolean _tmp4_ = FALSE;
- LibraryWindow* _tmp5_;
-#line 115 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_get_instance ();
-#line 115 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _tmp0_;
-#line 115 "/home/jens/Source/shotwell/src/Application.vala"
- _application_unref0 (_tmp1_);
-#line 117 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = app_window_get_instance ();
-#line 117 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_LIBRARY_WINDOW) ? ((LibraryWindow*) _tmp2_) : NULL;
-#line 117 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp3_ == NULL) {
-#line 117 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (_tmp2_);
-#line 562 "Application.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/Application.vala"
- lw = _tmp3_;
-#line 118 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp5_ = lw;
-#line 118 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp5_ != NULL) {
-#line 118 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp4_ = !application_get_is_direct ();
-#line 572 "Application.c"
- } else {
-#line 118 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp4_ = FALSE;
-#line 576 "Application.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp4_) {
-#line 580 "Application.c"
- LibraryWindow* _tmp6_;
- LibraryWindow* _tmp7_;
-#line 119 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp6_ = library_window_get_app ();
-#line 119 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp7_ = _tmp6_;
-#line 119 "/home/jens/Source/shotwell/src/Application.vala"
- gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_window_get_type (), GtkWindow));
-#line 119 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (_tmp7_);
-#line 591 "Application.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (lw);
-#line 595 "Application.c"
-}
-
-
-/**
- * @brief Signal handler for GApplication's 'command-line' signal.
- *
- * Gets fired whenever a remote instance tries to run, usually
- * with an incoming camera connection.
- *
- * @note This does _not_ get called in direct-edit mode.
- */
-gint
-application_on_command_line (GApplicationCommandLine* acl)
-{
- gint result = 0;
- gchar** argv = NULL;
- gint _tmp0_;
- gchar** _tmp1_;
- gint argv_length1;
- gint _argv_size_;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 131 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_val_if_fail (G_IS_APPLICATION_COMMAND_LINE (acl), 0);
-#line 132 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = g_application_command_line_get_arguments (acl, &_tmp0_);
-#line 132 "/home/jens/Source/shotwell/src/Application.vala"
- argv = _tmp1_;
-#line 132 "/home/jens/Source/shotwell/src/Application.vala"
- argv_length1 = _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/Application.vala"
- _argv_size_ = argv_length1;
-#line 134 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = argv;
-#line 134 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2__length1 = argv_length1;
-#line 134 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp2_ != NULL) {
-#line 634 "Application.c"
- gchar** _tmp3_;
- gint _tmp3__length1;
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3_ = argv;
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3__length1 = argv_length1;
-#line 641 "Application.c"
- {
- gchar** s_collection = NULL;
- gint s_collection_length1 = 0;
- gint _s_collection_size_ = 0;
- gint s_it = 0;
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- s_collection = _tmp3_;
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- s_collection_length1 = _tmp3__length1;
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- for (s_it = 0; s_it < _tmp3__length1; s_it = s_it + 1) {
-#line 653 "Application.c"
- gchar* _tmp4_;
- gchar* s = NULL;
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp4_ = g_strdup (s_collection[s_it]);
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- s = _tmp4_;
-#line 660 "Application.c"
- {
- LibraryWindow* lw = NULL;
- AppWindow* _tmp5_;
- LibraryWindow* _tmp6_;
- LibraryWindow* _tmp7_;
-#line 136 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp5_ = app_window_get_instance ();
-#line 136 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_WINDOW) ? ((LibraryWindow*) _tmp5_) : NULL;
-#line 136 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp6_ == NULL) {
-#line 136 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (_tmp5_);
-#line 674 "Application.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/Application.vala"
- lw = _tmp6_;
-#line 137 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp7_ = lw;
-#line 137 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp7_ != NULL) {
-#line 682 "Application.c"
- LibraryWindow* _tmp8_;
- const gchar* _tmp9_;
-#line 138 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp8_ = lw;
-#line 138 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp9_ = s;
-#line 138 "/home/jens/Source/shotwell/src/Application.vala"
- library_window_mounted_camera_shell_notification (_tmp8_, _tmp9_, FALSE);
-#line 691 "Application.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (lw);
-#line 135 "/home/jens/Source/shotwell/src/Application.vala"
- _g_free0 (s);
-#line 697 "Application.c"
- }
- }
- }
- }
-#line 142 "/home/jens/Source/shotwell/src/Application.vala"
- application_on_activated ();
-#line 143 "/home/jens/Source/shotwell/src/Application.vala"
- result = 0;
-#line 143 "/home/jens/Source/shotwell/src/Application.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 143 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 710 "Application.c"
-}
-
-
-/**
- * @brief Initializes the Shotwell application object and prepares
- * it for use.
- *
- * @param is_direct Whether the application was invoked in direct
- * or in library mode; defaults to FALSE, that is, library mode.
- *
- * @note This MUST be called prior to calling get_instance(), as the
- * application needs to know what mode it was brought up in; failure to
- * call this first will lead to an assertion.
- */
-void
-application_init (gboolean is_direct)
-{
- Application* _tmp0_;
-#line 158 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_instance;
-#line 158 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp0_ == NULL) {
-#line 733 "Application.c"
- Application* _tmp1_;
-#line 159 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = application_new (is_direct);
-#line 159 "/home/jens/Source/shotwell/src/Application.vala"
- _application_unref0 (application_instance);
-#line 159 "/home/jens/Source/shotwell/src/Application.vala"
- application_instance = _tmp1_;
-#line 741 "Application.c"
- }
-}
-
-
-void
-application_terminate (void)
-{
- Application* _tmp0_;
- Application* _tmp1_;
-#line 163 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_get_instance ();
-#line 163 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = _tmp0_;
-#line 163 "/home/jens/Source/shotwell/src/Application.vala"
- application_exit (_tmp1_);
-#line 163 "/home/jens/Source/shotwell/src/Application.vala"
- _application_unref0 (_tmp1_);
-#line 759 "Application.c"
-}
-
-
-static gpointer
-_application_ref0 (gpointer self)
-{
-#line 169 "/home/jens/Source/shotwell/src/Application.vala"
- return self ? application_ref (self) : NULL;
-#line 768 "Application.c"
-}
-
-
-Application*
-application_get_instance (void)
-{
- Application* result = NULL;
- Application* _tmp0_;
- Application* _tmp1_;
- Application* _tmp2_;
-#line 167 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = application_instance;
-#line 167 "/home/jens/Source/shotwell/src/Application.vala"
- _vala_assert (_tmp0_ != NULL, "instance != null");
-#line 169 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = application_instance;
-#line 169 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _application_ref0 (_tmp1_);
-#line 169 "/home/jens/Source/shotwell/src/Application.vala"
- result = _tmp2_;
-#line 169 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 791 "Application.c"
-}
-
-
-void
-application_start (Application* self,
- gchar** argv,
- int argv_length1)
-{
- gboolean _tmp0_;
- AppWindow* _tmp1_;
- AppWindow* _tmp2_;
- GtkApplication* _tmp3_;
- AppWindow* _tmp4_;
- AppWindow* _tmp5_;
- GtkApplication* _tmp6_;
- gboolean _tmp7_;
- GtkApplication* _tmp10_;
- guint _tmp11_;
- GtkApplication* _tmp12_;
- guint _tmp13_;
-#line 172 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (IS_APPLICATION (self));
-#line 173 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = self->priv->running;
-#line 173 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp0_) {
-#line 174 "/home/jens/Source/shotwell/src/Application.vala"
- return;
-#line 820 "Application.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->running = TRUE;
-#line 178 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_emit (self, application_signals[APPLICATION_STARTING_SIGNAL], 0);
-#line 180 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = app_window_get_instance ();
-#line 180 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _tmp1_;
-#line 180 "/home/jens/Source/shotwell/src/Application.vala"
- _vala_assert (_tmp2_ != NULL, "AppWindow.get_instance() != null");
-#line 180 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (_tmp2_);
-#line 181 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3_ = self->priv->system_app;
-#line 181 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp4_ = app_window_get_instance ();
-#line 181 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp5_ = _tmp4_;
-#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 181 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (_tmp5_);
-#line 182 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp6_ = self->priv->system_app;
-#line 182 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->system_app_run_retval = g_application_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, g_application_get_type (), GApplication), argv_length1, argv);
-#line 184 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp7_ = self->priv->direct;
-#line 184 "/home/jens/Source/shotwell/src/Application.vala"
- if (!_tmp7_) {
-#line 852 "Application.c"
- GtkApplication* _tmp8_;
- guint _tmp9_;
-#line 185 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp8_ = self->priv->system_app;
-#line 185 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_parse_name ("command-line", g_application_get_type (), &_tmp9_, NULL, FALSE);
-#line 185 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, g_application_get_type (), GApplication), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _application_on_command_line_g_application_command_line, NULL);
-#line 861 "Application.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp10_ = self->priv->system_app;
-#line 188 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_parse_name ("activate", g_application_get_type (), &_tmp11_, NULL, FALSE);
-#line 188 "/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_activated_g_application_activate, NULL);
-#line 189 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp12_ = self->priv->system_app;
-#line 189 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_parse_name ("startup", g_application_get_type (), &_tmp13_, NULL, FALSE);
-#line 189 "/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_startup, NULL);
-#line 191 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->running = FALSE;
-#line 877 "Application.c"
-}
-
-
-void
-application_exit (Application* self)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- GtkApplication* _tmp3_;
-#line 194 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (IS_APPLICATION (self));
-#line 197 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = self->priv->exiting_fired;
-#line 197 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp1_) {
-#line 197 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = TRUE;
-#line 895 "Application.c"
- } else {
- gboolean _tmp2_;
-#line 197 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = self->priv->running;
-#line 197 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = !_tmp2_;
-#line 902 "Application.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/Application.vala"
- if (_tmp0_) {
-#line 198 "/home/jens/Source/shotwell/src/Application.vala"
- return;
-#line 908 "Application.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->exiting_fired = TRUE;
-#line 202 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_emit (self, application_signals[APPLICATION_EXITING_SIGNAL], 0, FALSE);
-#line 204 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3_ = self->priv->system_app;
-#line 204 "/home/jens/Source/shotwell/src/Application.vala"
- g_application_release (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_application_get_type (), GApplication));
-#line 918 "Application.c"
-}
-
-
-void
-application_panic (Application* self)
-{
- gboolean _tmp0_;
-#line 209 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (IS_APPLICATION (self));
-#line 210 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = self->priv->exiting_fired;
-#line 210 "/home/jens/Source/shotwell/src/Application.vala"
- if (!_tmp0_) {
-#line 211 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->exiting_fired = TRUE;
-#line 212 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_emit (self, application_signals[APPLICATION_EXITING_SIGNAL], 0, TRUE);
-#line 936 "Application.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/Application.vala"
- exit (1);
-#line 940 "Application.c"
-}
-
-
-/**
- * @brief Allows the caller to ask for some part of the desktop session's functionality to
- * be prevented from running; wrapper for Gtk.Application.inhibit().
- *
- * @note The return value is a 'cookie' that needs to be passed to 'uninhibit' to turn
- * off a requested inhibition and should be saved by the caller.
- */
-guint
-application_inhibit (Application* self,
- GtkApplicationInhibitFlags what,
- const gchar* reason)
-{
- guint result = 0U;
- GtkApplication* _tmp0_;
- AppWindow* _tmp1_;
- AppWindow* _tmp2_;
- guint _tmp3_;
-#line 224 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_val_if_fail (IS_APPLICATION (self), 0U);
-#line 225 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = self->priv->system_app;
-#line 225 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp1_ = app_window_get_instance ();
-#line 225 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp2_ = _tmp1_;
-#line 225 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp3_ = gtk_application_inhibit (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow), what, reason);
-#line 225 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (_tmp2_);
-#line 225 "/home/jens/Source/shotwell/src/Application.vala"
- result = _tmp3_;
-#line 225 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 977 "Application.c"
-}
-
-
-/**
- * @brief Turns off a previously-requested inhibition. Wrapper for
- * Gtk.Application.uninhibit().
- */
-void
-application_uninhibit (Application* self,
- guint cookie)
-{
- GtkApplication* _tmp0_;
-#line 232 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (IS_APPLICATION (self));
-#line 233 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = self->priv->system_app;
-#line 233 "/home/jens/Source/shotwell/src/Application.vala"
- gtk_application_uninhibit (_tmp0_, cookie);
-#line 996 "Application.c"
-}
-
-
-gint
-application_get_run_return_value (Application* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 236 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_val_if_fail (IS_APPLICATION (self), 0);
-#line 237 "/home/jens/Source/shotwell/src/Application.vala"
- _tmp0_ = self->priv->system_app_run_retval;
-#line 237 "/home/jens/Source/shotwell/src/Application.vala"
- result = _tmp0_;
-#line 237 "/home/jens/Source/shotwell/src/Application.vala"
- return result;
-#line 1013 "Application.c"
-}
-
-
-static void
-application_real_starting (Application* self)
-{
-}
-
-
-static void
-application_real_exiting (Application* self,
- gboolean panicked)
-{
-}
-
-
-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 1041 "Application.c"
-}
-
-
-static void
-value_application_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- application_unref (value->data[0].v_pointer);
-#line 1052 "Application.c"
- }
-}
-
-
-static void
-value_application_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- 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 1065 "Application.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1069 "Application.c"
- }
-}
-
-
-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 1079 "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 1091 "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 1098 "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 1102 "Application.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- value->data[0].v_pointer = application_ref (object);
-#line 1106 "Application.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- value->data[0].v_pointer = NULL;
-#line 1110 "Application.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- return NULL;
-#line 1114 "Application.c"
-}
-
-
-static gchar*
-value_application_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- Application ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- 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 1130 "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 1136 "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 1140 "Application.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- *object_p = application_ref (value->data[0].v_pointer);
-#line 1144 "Application.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- return NULL;
-#line 1148 "Application.c"
-}
-
-
-GParamSpec*
-param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecApplication* spec;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_APPLICATION), NULL);
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- return G_PARAM_SPEC (spec);
-#line 1168 "Application.c"
-}
-
-
-gpointer
-value_get_application (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- 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 1179 "Application.c"
-}
-
-
-void
-value_set_application (GValue* value,
- gpointer v_object)
-{
- Application * old;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APPLICATION));
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_APPLICATION));
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- 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 7 "/home/jens/Source/shotwell/src/Application.vala"
- application_ref (value->data[0].v_pointer);
-#line 1202 "Application.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- value->data[0].v_pointer = NULL;
-#line 1206 "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 1212 "Application.c"
- }
-}
-
-
-void
-value_take_application (GValue* value,
- gpointer v_object)
-{
- Application * old;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APPLICATION));
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_APPLICATION));
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- 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 1234 "Application.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- value->data[0].v_pointer = NULL;
-#line 1238 "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 1244 "Application.c"
- }
-}
-
-
-static void
-application_class_init (ApplicationClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- application_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- ((ApplicationClass *) klass)->finalize = application_finalize;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_type_class_add_private (klass, sizeof (ApplicationPrivate));
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- ((ApplicationClass *) klass)->starting = application_real_starting;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- ((ApplicationClass *) klass)->exiting = application_real_exiting;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- ((ApplicationClass *) klass)->init_done = application_real_init_done;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- application_signals[APPLICATION_STARTING_SIGNAL] = g_signal_new ("starting", TYPE_APPLICATION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ApplicationClass, starting), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- application_signals[APPLICATION_EXITING_SIGNAL] = 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"
- application_signals[APPLICATION_INIT_DONE_SIGNAL] = 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 1270 "Application.c"
-}
-
-
-static void
-application_instance_init (Application * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv = APPLICATION_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->system_app = NULL;
-#line 10 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->system_app_run_retval = 0;
-#line 22 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->fixup_raw_thumbs = FALSE;
-#line 36 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->running = FALSE;
-#line 37 "/home/jens/Source/shotwell/src/Application.vala"
- self->priv->exiting_fired = FALSE;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- self->ref_count = 1;
-#line 1291 "Application.c"
-}
-
-
-static void
-application_finalize (Application * obj)
-{
- Application * self;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_APPLICATION, Application);
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_signal_handlers_destroy (self);
-#line 9 "/home/jens/Source/shotwell/src/Application.vala"
- _g_object_unref0 (self->priv->system_app);
-#line 1305 "Application.c"
-}
-
-
-GType
-application_get_type (void)
-{
- static volatile gsize application_type_id__volatile = 0;
- if (g_once_init_enter (&application_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_application_init, value_application_free_value, value_application_copy_value, value_application_peek_pointer, "p", value_application_collect_value, "p", value_application_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ApplicationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) application_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Application), 0, (GInstanceInitFunc) application_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType application_type_id;
- application_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Application", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&application_type_id__volatile, application_type_id);
- }
- return application_type_id__volatile;
-}
-
-
-gpointer
-application_ref (gpointer instance)
-{
- Application * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- return instance;
-#line 1334 "Application.c"
-}
-
-
-void
-application_unref (gpointer instance)
-{
- Application * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- APPLICATION_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/Application.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1349 "Application.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Application.vala b/src/Application.vala
index a1fff47..36acc41 100644
--- a/src/Application.vala
+++ b/src/Application.vala
@@ -42,13 +42,13 @@ public class Application {
// attempt to be unique. We don't request any command-line handling
// here because this is processed elsewhere, and we don't need to handle
// command lines from remote instances, since we don't care about them.
- system_app = new Gtk.Application("org.yorba.shotwell-direct", GLib.ApplicationFlags.HANDLES_OPEN |
+ system_app = new Gtk.Application("org.gnome.Shotwell-direct", GLib.ApplicationFlags.HANDLES_OPEN |
GLib.ApplicationFlags.NON_UNIQUE);
} else {
// we've been invoked in library mode; set up for uniqueness and handling
// of incoming command lines from remote instances (needed for getting
// storage device and camera mounts).
- system_app = new Gtk.Application("org.yorba.shotwell", GLib.ApplicationFlags.HANDLES_OPEN |
+ system_app = new Gtk.Application("org.gnome.Shotwell", GLib.ApplicationFlags.HANDLES_OPEN |
GLib.ApplicationFlags.HANDLES_COMMAND_LINE);
}
diff --git a/src/BatchImport.c b/src/BatchImport.c
deleted file mode 100644
index 8ee3b4f..0000000
--- a/src/BatchImport.c
+++ /dev/null
@@ -1,17579 +0,0 @@
-/* BatchImport.c generated by valac 0.40.4, the Vala compiler
- * generated from BatchImport.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <time.h>
-#include <gee.h>
-#include <float.h>
-#include <math.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_IMPORT_RESULT (import_result_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-typedef struct _BatchImportJobPrivate BatchImportJobPrivate;
-
-#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ())
-#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile))
-#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE))
-#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE))
-#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-
-typedef struct _DuplicatedFile DuplicatedFile;
-typedef struct _DuplicatedFileClass DuplicatedFileClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-typedef struct _BatchImportRollClass BatchImportRollClass;
-typedef struct _ParamSpecBatchImportJob ParamSpecBatchImportJob;
-
-#define TYPE_FILE_IMPORT_JOB (file_import_job_get_type ())
-#define FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_IMPORT_JOB, FileImportJob))
-#define FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_IMPORT_JOB, FileImportJobClass))
-#define IS_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_IMPORT_JOB))
-#define IS_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_IMPORT_JOB))
-#define FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_IMPORT_JOB, FileImportJobClass))
-
-typedef struct _FileImportJob FileImportJob;
-typedef struct _FileImportJobClass FileImportJobClass;
-typedef struct _FileImportJobPrivate FileImportJobPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _BatchImportRollPrivate BatchImportRollPrivate;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-typedef struct _ParamSpecBatchImportRoll ParamSpecBatchImportRoll;
-
-#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ())
-#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult))
-#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT))
-#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT))
-#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-
-typedef struct _BatchImportResult BatchImportResult;
-typedef struct _BatchImportResultClass BatchImportResultClass;
-typedef struct _BatchImportResultPrivate BatchImportResultPrivate;
-typedef struct _ParamSpecBatchImportResult ParamSpecBatchImportResult;
-
-#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ())
-#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
-#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
-#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
-#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-
-typedef struct _ImportManifest ImportManifest;
-typedef struct _ImportManifestClass ImportManifestClass;
-typedef struct _ImportManifestPrivate ImportManifestPrivate;
-#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
-#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL)))
-typedef struct _ParamSpecImportManifest ParamSpecImportManifest;
-
-#define TYPE_BATCH_IMPORT (batch_import_get_type ())
-#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
-#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
-#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
-#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
-#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
-
-typedef struct _BatchImport BatchImport;
-typedef struct _BatchImportClass BatchImportClass;
-typedef struct _BatchImportPrivate BatchImportPrivate;
-
-#define TYPE_PREPARED_FILE (prepared_file_get_type ())
-#define PREPARED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREPARED_FILE, PreparedFile))
-#define PREPARED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREPARED_FILE, PreparedFileClass))
-#define IS_PREPARED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREPARED_FILE))
-#define IS_PREPARED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREPARED_FILE))
-#define PREPARED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREPARED_FILE, PreparedFileClass))
-
-typedef struct _PreparedFile PreparedFile;
-typedef struct _PreparedFileClass PreparedFileClass;
-
-#define TYPE_COMPLETED_IMPORT_OBJECT (completed_import_object_get_type ())
-#define COMPLETED_IMPORT_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObject))
-#define COMPLETED_IMPORT_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObjectClass))
-#define IS_COMPLETED_IMPORT_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMPLETED_IMPORT_OBJECT))
-#define IS_COMPLETED_IMPORT_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMPLETED_IMPORT_OBJECT))
-#define COMPLETED_IMPORT_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObjectClass))
-
-typedef struct _CompletedImportObject CompletedImportObject;
-typedef struct _CompletedImportObjectClass CompletedImportObjectClass;
-enum {
- BATCH_IMPORT_0_PROPERTY,
- BATCH_IMPORT_NUM_PROPERTIES
-};
-static GParamSpec* batch_import_properties[BATCH_IMPORT_NUM_PROPERTIES];
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-#define _batch_import_roll_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_roll_unref (var), NULL)))
-#define _import_manifest_unref0(var) ((var == NULL) ? NULL : (var = (import_manifest_unref (var), NULL)))
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define TYPE_BACKGROUND_IMPORT_JOB (background_import_job_get_type ())
-#define BACKGROUND_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob))
-#define BACKGROUND_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJobClass))
-#define IS_BACKGROUND_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_IMPORT_JOB))
-#define IS_BACKGROUND_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_IMPORT_JOB))
-#define BACKGROUND_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJobClass))
-
-typedef struct _BackgroundImportJob BackgroundImportJob;
-typedef struct _BackgroundImportJobClass BackgroundImportJobClass;
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _BackgroundImportJobPrivate BackgroundImportJobPrivate;
-
-#define TYPE_WORK_SNIFFER (work_sniffer_get_type ())
-#define WORK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORK_SNIFFER, WorkSniffer))
-#define WORK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORK_SNIFFER, WorkSnifferClass))
-#define IS_WORK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORK_SNIFFER))
-#define IS_WORK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORK_SNIFFER))
-#define WORK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORK_SNIFFER, WorkSnifferClass))
-
-typedef struct _WorkSniffer WorkSniffer;
-typedef struct _WorkSnifferClass WorkSnifferClass;
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-typedef struct _WorkSnifferPrivate WorkSnifferPrivate;
-
-#define TYPE_FILE_TO_PREPARE (file_to_prepare_get_type ())
-#define FILE_TO_PREPARE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_TO_PREPARE, FileToPrepare))
-#define FILE_TO_PREPARE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_TO_PREPARE, FileToPrepareClass))
-#define IS_FILE_TO_PREPARE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_TO_PREPARE))
-#define IS_FILE_TO_PREPARE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_TO_PREPARE))
-#define FILE_TO_PREPARE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_TO_PREPARE, FileToPrepareClass))
-
-typedef struct _FileToPrepare FileToPrepare;
-typedef struct _FileToPrepareClass FileToPrepareClass;
-
-#define TYPE_PREPARE_FILES_JOB (prepare_files_job_get_type ())
-#define PREPARE_FILES_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREPARE_FILES_JOB, PrepareFilesJob))
-#define PREPARE_FILES_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREPARE_FILES_JOB, PrepareFilesJobClass))
-#define IS_PREPARE_FILES_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREPARE_FILES_JOB))
-#define IS_PREPARE_FILES_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREPARE_FILES_JOB))
-#define PREPARE_FILES_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREPARE_FILES_JOB, PrepareFilesJobClass))
-
-typedef struct _PrepareFilesJob PrepareFilesJob;
-typedef struct _PrepareFilesJobClass PrepareFilesJobClass;
-
-#define TYPE_NOTIFICATION_OBJECT (notification_object_get_type ())
-#define NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NOTIFICATION_OBJECT, NotificationObject))
-#define NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NOTIFICATION_OBJECT, NotificationObjectClass))
-#define IS_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NOTIFICATION_OBJECT))
-#define IS_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NOTIFICATION_OBJECT))
-#define NOTIFICATION_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NOTIFICATION_OBJECT, NotificationObjectClass))
-
-typedef struct _NotificationObject NotificationObject;
-typedef struct _NotificationObjectClass NotificationObjectClass;
-
-#define TYPE_THUMBNAIL_WRITER_JOB (thumbnail_writer_job_get_type ())
-#define THUMBNAIL_WRITER_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob))
-#define THUMBNAIL_WRITER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJobClass))
-#define IS_THUMBNAIL_WRITER_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_WRITER_JOB))
-#define IS_THUMBNAIL_WRITER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_WRITER_JOB))
-#define THUMBNAIL_WRITER_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJobClass))
-
-typedef struct _ThumbnailWriterJob ThumbnailWriterJob;
-typedef struct _ThumbnailWriterJobClass ThumbnailWriterJobClass;
-#define _completed_import_object_unref0(var) ((var == NULL) ? NULL : (var = (completed_import_object_unref (var), NULL)))
-
-#define TYPE_PREPARED_FILE_IMPORT_JOB (prepared_file_import_job_get_type ())
-#define PREPARED_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob))
-#define PREPARED_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJobClass))
-#define IS_PREPARED_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREPARED_FILE_IMPORT_JOB))
-#define IS_PREPARED_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREPARED_FILE_IMPORT_JOB))
-#define PREPARED_FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJobClass))
-
-typedef struct _PreparedFileImportJob PreparedFileImportJob;
-typedef struct _PreparedFileImportJobClass PreparedFileImportJobClass;
-#define _prepared_file_unref0(var) ((var == NULL) ? NULL : (var = (prepared_file_unref (var), NULL)))
-typedef struct _PreparedFilePrivate PreparedFilePrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_INTERLOCKED_NOTIFICATION_OBJECT (interlocked_notification_object_get_type ())
-#define INTERLOCKED_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObject))
-#define INTERLOCKED_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectClass))
-#define IS_INTERLOCKED_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT))
-#define IS_INTERLOCKED_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INTERLOCKED_NOTIFICATION_OBJECT))
-#define INTERLOCKED_NOTIFICATION_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectClass))
-
-typedef struct _InterlockedNotificationObject InterlockedNotificationObject;
-typedef struct _InterlockedNotificationObjectClass InterlockedNotificationObjectClass;
-
-#define TYPE_PREPARED_FILE_CLUSTER (prepared_file_cluster_get_type ())
-#define PREPARED_FILE_CLUSTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster))
-#define PREPARED_FILE_CLUSTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREPARED_FILE_CLUSTER, PreparedFileClusterClass))
-#define IS_PREPARED_FILE_CLUSTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREPARED_FILE_CLUSTER))
-#define IS_PREPARED_FILE_CLUSTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREPARED_FILE_CLUSTER))
-#define PREPARED_FILE_CLUSTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREPARED_FILE_CLUSTER, PreparedFileClusterClass))
-
-typedef struct _PreparedFileCluster PreparedFileCluster;
-typedef struct _PreparedFileClusterClass PreparedFileClusterClass;
-typedef struct _NotificationObjectPrivate NotificationObjectPrivate;
-typedef struct _InterlockedNotificationObjectPrivate InterlockedNotificationObjectPrivate;
-typedef struct _PreparedFileClusterPrivate PreparedFileClusterPrivate;
-#define _notification_object_unref0(var) ((var == NULL) ? NULL : (var = (notification_object_unref (var), NULL)))
-
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE (library_photo_source_collection_state_get_type ())
-
-#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_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#define VIDEO_SOURCE_COLLECTION_TYPE_STATE (video_source_collection_state_get_type ())
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#define TYPE_VIDEO_ID (video_id_get_type ())
-typedef struct _VideoID VideoID;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_VIDEO_TABLE (video_table_get_type ())
-#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable))
-#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass))
-#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE))
-#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE))
-#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass))
-
-typedef struct _VideoTable VideoTable;
-typedef struct _VideoTableClass VideoTableClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ())
-#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank))
-#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-
-typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank;
-typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass;
-
-#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ())
-#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank))
-#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-
-typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank;
-typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass;
-#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL)))
-
-#define TYPE_MONITORABLE (monitorable_get_type ())
-#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
-#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
-#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
-
-typedef struct _Monitorable Monitorable;
-typedef struct _MonitorableIface MonitorableIface;
-
-#define TYPE_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-
-#define TYPE_PHOTO_TABLE (photo_table_get_type ())
-#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable))
-#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass))
-#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE))
-#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE))
-#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass))
-
-typedef struct _PhotoTable PhotoTable;
-typedef struct _PhotoTableClass PhotoTableClass;
-typedef struct _BatchImportProcessPreparedFilesData BatchImportProcessPreparedFilesData;
-typedef struct _PrepareFilesJobPrivate PrepareFilesJobPrivate;
-typedef struct _PreparedFileImportJobPrivate PreparedFileImportJobPrivate;
-
-#define TYPE_READY_FOR_IMPORT (ready_for_import_get_type ())
-#define READY_FOR_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_READY_FOR_IMPORT, ReadyForImport))
-#define READY_FOR_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_READY_FOR_IMPORT, ReadyForImportClass))
-#define IS_READY_FOR_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_READY_FOR_IMPORT))
-#define IS_READY_FOR_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_READY_FOR_IMPORT))
-#define READY_FOR_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_READY_FOR_IMPORT, ReadyForImportClass))
-
-typedef struct _ReadyForImport ReadyForImport;
-typedef struct _ReadyForImportClass ReadyForImportClass;
-typedef struct _ReadyForImportPrivate ReadyForImportPrivate;
-
-#define TYPE_PHOTO_IMPORT_PARAMS (photo_import_params_get_type ())
-#define PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams))
-#define PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass))
-#define IS_PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_PARAMS))
-#define IS_PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_PARAMS))
-#define PHOTO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass))
-
-typedef struct _PhotoImportParams PhotoImportParams;
-typedef struct _PhotoImportParamsClass PhotoImportParamsClass;
-
-#define TYPE_VIDEO_IMPORT_PARAMS (video_import_params_get_type ())
-#define VIDEO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParams))
-#define VIDEO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParamsClass))
-#define IS_VIDEO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_IMPORT_PARAMS))
-#define IS_VIDEO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_IMPORT_PARAMS))
-#define VIDEO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParamsClass))
-
-typedef struct _VideoImportParams VideoImportParams;
-typedef struct _VideoImportParamsClass VideoImportParamsClass;
-
-#define TYPE_TOMBSTONE (tombstone_get_type ())
-#define TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE, Tombstone))
-#define TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE, TombstoneClass))
-#define IS_TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE))
-#define IS_TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE))
-#define TOMBSTONE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE, TombstoneClass))
-
-typedef struct _Tombstone Tombstone;
-typedef struct _TombstoneClass TombstoneClass;
-
-#define TYPE_TOMBSTONE_SOURCE_COLLECTION (tombstone_source_collection_get_type ())
-#define TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection))
-#define TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass))
-#define IS_TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION))
-#define IS_TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION))
-#define TOMBSTONE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass))
-
-typedef struct _TombstoneSourceCollection TombstoneSourceCollection;
-typedef struct _TombstoneSourceCollectionClass TombstoneSourceCollectionClass;
-typedef struct _PhotoImportParamsPrivate PhotoImportParamsPrivate;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_THUMBNAILS (thumbnails_get_type ())
-#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails))
-#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass))
-#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS))
-#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS))
-#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass))
-
-typedef struct _Thumbnails Thumbnails;
-typedef struct _ThumbnailsClass ThumbnailsClass;
-
-#define TYPE_PHOTO_ROW (photo_row_get_type ())
-#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow))
-#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass))
-#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW))
-#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW))
-#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass))
-
-typedef struct _PhotoRow PhotoRow;
-typedef struct _PhotoRowClass PhotoRowClass;
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _thumbnails_unref0(var) ((var == NULL) ? NULL : (var = (thumbnails_unref (var), NULL)))
-typedef struct _ThumbnailWriterJobPrivate ThumbnailWriterJobPrivate;
-typedef struct _CompletedImportObjectPrivate CompletedImportObjectPrivate;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ())
-#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection))
-#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION))
-#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION))
-#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-
-typedef struct _EventSourceCollection EventSourceCollection;
-typedef struct _EventSourceCollectionClass EventSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-enum {
- BATCH_IMPORT_STARTING_SIGNAL,
- BATCH_IMPORT_PREPARING_SIGNAL,
- BATCH_IMPORT_PROGRESS_SIGNAL,
- BATCH_IMPORT_IMPORTED_SIGNAL,
- BATCH_IMPORT_FATAL_ERROR_SIGNAL,
- BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL,
- BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL,
- BATCH_IMPORT_NUM_SIGNALS
-};
-static guint batch_import_signals[BATCH_IMPORT_NUM_SIGNALS] = {0};
-typedef struct _DuplicatedFilePrivate DuplicatedFilePrivate;
-enum {
- DUPLICATED_FILE_0_PROPERTY,
- DUPLICATED_FILE_NUM_PROPERTIES
-};
-static GParamSpec* duplicated_file_properties[DUPLICATED_FILE_NUM_PROPERTIES];
-#define _video_id_free0(var) ((var == NULL) ? NULL : (var = (video_id_free (var), NULL)))
-#define _photo_id_free0(var) ((var == NULL) ? NULL : (var = (photo_id_free (var), NULL)))
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-typedef struct _FileToPreparePrivate FileToPreparePrivate;
-#define _file_to_prepare_unref0(var) ((var == NULL) ? NULL : (var = (file_to_prepare_unref (var), NULL)))
-typedef struct _ParamSpecFileToPrepare ParamSpecFileToPrepare;
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties;
-typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass;
-
-#define TYPE_RAW_FILE_FORMAT_PROPERTIES (raw_file_format_properties_get_type ())
-#define RAW_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties))
-#define RAW_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatPropertiesClass))
-#define IS_RAW_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES))
-#define IS_RAW_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_PROPERTIES))
-#define RAW_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatPropertiesClass))
-
-typedef struct _RawFileFormatProperties RawFileFormatProperties;
-typedef struct _RawFileFormatPropertiesClass RawFileFormatPropertiesClass;
-#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL)))
-
-#define TYPE_JFIF_FILE_FORMAT_PROPERTIES (jfif_file_format_properties_get_type ())
-#define JFIF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties))
-#define JFIF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatPropertiesClass))
-#define IS_JFIF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES))
-#define IS_JFIF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_PROPERTIES))
-#define JFIF_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatPropertiesClass))
-
-typedef struct _JfifFileFormatProperties JfifFileFormatProperties;
-typedef struct _JfifFileFormatPropertiesClass JfifFileFormatPropertiesClass;
-typedef struct _ParamSpecPreparedFile ParamSpecPreparedFile;
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
-#define _photo_import_params_unref0(var) ((var == NULL) ? NULL : (var = (photo_import_params_unref (var), NULL)))
-#define _video_import_params_unref0(var) ((var == NULL) ? NULL : (var = (video_import_params_unref (var), NULL)))
-typedef struct _VideoImportParamsPrivate VideoImportParamsPrivate;
-
-#define TYPE_VIDEO_ROW (video_row_get_type ())
-#define VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_ROW, VideoRow))
-#define VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_ROW, VideoRowClass))
-#define IS_VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_ROW))
-#define IS_VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_ROW))
-#define VIDEO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_ROW, VideoRowClass))
-
-typedef struct _VideoRow VideoRow;
-typedef struct _VideoRowClass VideoRowClass;
-typedef struct _ParamSpecReadyForImport ParamSpecReadyForImport;
-#define _ready_for_import_unref0(var) ((var == NULL) ? NULL : (var = (ready_for_import_unref (var), NULL)))
-
-#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ())
-typedef struct _ParamSpecCompletedImportObject ParamSpecCompletedImportObject;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-typedef enum {
- GPHOTO_ERROR_LIBRARY
-} GPhotoError;
-#define GPHOTO_ERROR gphoto_error_quark ()
-struct _BatchImportJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportJobPrivate * priv;
-};
-
-struct _BatchImportJobClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportJob *self);
- gchar* (*get_dest_identifier) (BatchImportJob* self);
- gchar* (*get_source_identifier) (BatchImportJob* self);
- gboolean (*is_directory) (BatchImportJob* self);
- gchar* (*get_basename) (BatchImportJob* self);
- gchar* (*get_path) (BatchImportJob* self);
- DuplicatedFile* (*get_duplicated_file) (BatchImportJob* self);
- GFile* (*get_associated_file) (BatchImportJob* self);
- void (*set_associated) (BatchImportJob* self, BatchImportJob* associated);
- gboolean (*determine_file_size) (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir);
- gboolean (*prepare) (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error);
- gboolean (*complete) (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error);
- time_t (*get_exposure_time_override) (BatchImportJob* self);
- gboolean (*recurse) (BatchImportJob* self);
-};
-
-struct _ParamSpecBatchImportJob {
- GParamSpec parent_instance;
-};
-
-struct _FileImportJob {
- BatchImportJob parent_instance;
- FileImportJobPrivate * priv;
-};
-
-struct _FileImportJobClass {
- BatchImportJobClass parent_class;
-};
-
-struct _FileImportJobPrivate {
- GFile* file_or_dir;
- gboolean copy_to_library;
- FileImportJob* associated;
- gboolean _recurse;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _BatchImportRoll {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportRollPrivate * priv;
- ImportID import_id;
- ViewCollection* generated_events;
-};
-
-struct _BatchImportRollClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportRoll *self);
-};
-
-struct _ParamSpecBatchImportRoll {
- GParamSpec parent_instance;
-};
-
-struct _BatchImportResult {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportResultPrivate * priv;
- BatchImportJob* job;
- GFile* file;
- gchar* src_identifier;
- gchar* dest_identifier;
- ImportResult result;
- gchar* errmsg;
- DuplicatedFile* duplicate_of;
-};
-
-struct _BatchImportResultClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportResult *self);
-};
-
-struct _ParamSpecBatchImportResult {
- GParamSpec parent_instance;
-};
-
-struct _ImportManifest {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ImportManifestPrivate * priv;
- GeeList* imported;
- GeeList* success;
- GeeList* camera_failed;
- GeeList* failed;
- GeeList* write_failed;
- GeeList* skipped_photos;
- GeeList* skipped_files;
- GeeList* aborted;
- GeeList* already_imported;
- GeeList* corrupt_files;
- GeeList* all;
- GTimer* timer;
-};
-
-struct _ImportManifestClass {
- GTypeClass parent_class;
- void (*finalize) (ImportManifest *self);
-};
-
-struct _ParamSpecImportManifest {
- GParamSpec parent_instance;
-};
-
-struct _BatchImport {
- GObject parent_instance;
- BatchImportPrivate * priv;
-};
-
-struct _BatchImportClass {
- GObjectClass parent_class;
-};
-
-typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data);
-struct _BatchImportPrivate {
- GeeIterable* jobs;
- BatchImportRoll* import_roll;
- gchar* name;
- guint64 completed_bytes;
- guint64 total_bytes;
- BatchImportImportReporter reporter;
- gpointer reporter_target;
- ImportManifest* manifest;
- gboolean scheduled;
- gboolean completed;
- gint file_imports_to_perform;
- gint file_imports_completed;
- GCancellable* cancellable;
- gulong last_preparing_ms;
- GeeHashSet* skipset;
- GeeHashMap* imported_full_md5_table;
- guint throbber_id;
- guint max_outstanding_import_jobs;
- gboolean untrash_duplicates;
- gboolean mark_duplicates_online;
- GeeList* ready_files;
- GeeList* ready_thumbnails;
- GeeList* display_imported_queue;
- GeeList* ready_sources;
-};
-
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _BackgroundImportJob {
- BackgroundJob parent_instance;
- BackgroundImportJobPrivate * priv;
- ImportResult abort_flag;
- GeeList* failed;
-};
-
-struct _BackgroundImportJobClass {
- BackgroundJobClass parent_class;
-};
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-struct _WorkSniffer {
- BackgroundImportJob parent_instance;
- WorkSnifferPrivate * priv;
- GeeList* files_to_prepare;
- guint64 total_bytes;
-};
-
-struct _WorkSnifferClass {
- BackgroundImportJobClass parent_class;
-};
-
-typedef void (*NotificationCallback) (BackgroundJob* job, NotificationObject* user, void* user_data);
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _PreparedFile {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PreparedFilePrivate * priv;
- BatchImportJob* job;
- ImportResult result;
- GFile* file;
- GFile* associated_file;
- gchar* source_id;
- gchar* dest_id;
- gboolean copy_to_library;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* full_md5;
- PhotoFileFormat file_format;
- guint64 filesize;
- gboolean is_video;
-};
-
-struct _PreparedFileClass {
- GTypeClass parent_class;
- void (*finalize) (PreparedFile *self);
-};
-
-struct _NotificationObject {
- GTypeInstance parent_instance;
- volatile int ref_count;
- NotificationObjectPrivate * priv;
-};
-
-struct _NotificationObjectClass {
- GTypeClass parent_class;
- void (*finalize) (NotificationObject *self);
-};
-
-struct _InterlockedNotificationObject {
- NotificationObject parent_instance;
- InterlockedNotificationObjectPrivate * priv;
-};
-
-struct _InterlockedNotificationObjectClass {
- NotificationObjectClass parent_class;
-};
-
-struct _PreparedFileCluster {
- InterlockedNotificationObject parent_instance;
- PreparedFileClusterPrivate * priv;
- GeeArrayList* list;
-};
-
-struct _PreparedFileClusterClass {
- InterlockedNotificationObjectClass parent_class;
-};
-
-typedef enum {
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER
-} LibraryPhotoSourceCollectionState;
-
-typedef enum {
- VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN,
- VIDEO_SOURCE_COLLECTION_STATE_ONLINE,
- VIDEO_SOURCE_COLLECTION_STATE_OFFLINE,
- VIDEO_SOURCE_COLLECTION_STATE_TRASH
-} VideoSourceCollectionState;
-
-struct _VideoID {
- gint64 id;
-};
-
-struct _MonitorableIface {
- GTypeInterface parent_iface;
- gboolean (*is_offline) (Monitorable* self);
- void (*mark_online) (Monitorable* self);
- void (*mark_offline) (Monitorable* self);
- void (*set_master_file) (Monitorable* self, GFile* file);
- void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
-};
-
-struct _PhotoID {
- gint64 id;
-};
-
-struct _BatchImportProcessPreparedFilesData {
- int _state_;
- GObject* _source_object_;
- GAsyncResult* _res_;
- GTask* _async_result;
- GAsyncReadyCallback _callback_;
- gboolean _task_complete_;
- BatchImport* self;
- GeeList* list;
- GeeList* _prepared_file_list;
- GeeList* _tmp0_;
- gint _prepared_file_size;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _prepared_file_index;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- PreparedFile* prepared_file;
- GeeList* _tmp7_;
- gint _tmp8_;
- gpointer _tmp9_;
- BatchImportResult* import_result;
- LibraryPhotoSourceCollectionState photo_state;
- LibraryPhoto* photo;
- LibraryPhotoSourceCollection* _tmp10_;
- PreparedFile* _tmp11_;
- GFile* _tmp12_;
- LibraryPhotoSourceCollectionState _tmp13_;
- LibraryPhoto* _tmp14_;
- LibraryPhoto* _tmp15_;
- LibraryPhotoSourceCollectionState _tmp16_;
- PreparedFile* _tmp17_;
- BatchImportJob* _tmp18_;
- PreparedFile* _tmp19_;
- GFile* _tmp20_;
- PreparedFile* _tmp21_;
- GFile* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- PreparedFile* _tmp25_;
- GFile* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- LibraryPhoto* _tmp29_;
- GFile* _tmp30_;
- GFile* _tmp31_;
- DuplicatedFile* _tmp32_;
- DuplicatedFile* _tmp33_;
- BatchImportResult* _tmp34_;
- LibraryPhotoSourceCollectionState _tmp35_;
- LibraryPhoto* _tmp36_;
- LibraryPhotoSourceCollectionState _tmp37_;
- GEnumValue* _tmp38_;
- BatchImportResult* _tmp39_;
- BatchImportResult* _tmp40_;
- VideoSourceCollectionState video_state;
- Video* video;
- VideoSourceCollection* _tmp41_;
- PreparedFile* _tmp42_;
- GFile* _tmp43_;
- VideoSourceCollectionState _tmp44_;
- Video* _tmp45_;
- Video* _tmp46_;
- VideoSourceCollectionState _tmp47_;
- PreparedFile* _tmp48_;
- BatchImportJob* _tmp49_;
- PreparedFile* _tmp50_;
- GFile* _tmp51_;
- PreparedFile* _tmp52_;
- GFile* _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_;
- PreparedFile* _tmp56_;
- GFile* _tmp57_;
- gchar* _tmp58_;
- gchar* _tmp59_;
- Video* _tmp60_;
- GFile* _tmp61_;
- GFile* _tmp62_;
- DuplicatedFile* _tmp63_;
- DuplicatedFile* _tmp64_;
- BatchImportResult* _tmp65_;
- VideoSourceCollectionState _tmp66_;
- Video* _tmp67_;
- VideoSourceCollectionState _tmp68_;
- GEnumValue* _tmp69_;
- BatchImportResult* _tmp70_;
- BatchImportResult* _tmp71_;
- gboolean _tmp72_;
- PreparedFile* _tmp73_;
- gboolean _tmp74_;
- PreparedFile* _tmp75_;
- GFile* _tmp76_;
- PreparedFile* _tmp77_;
- const gchar* _tmp78_;
- VideoID* duplicate_ids;
- VideoTable* _tmp79_;
- VideoTable* _tmp80_;
- PreparedFile* _tmp81_;
- GFile* _tmp82_;
- PreparedFile* _tmp83_;
- const gchar* _tmp84_;
- gint _tmp85_;
- VideoID* _tmp86_;
- VideoID* _tmp87_;
- gint _tmp87__length1;
- gint duplicate_ids_length1;
- gint _duplicate_ids_size_;
- VideoID* _tmp88_;
- gint _tmp88__length1;
- DuplicatedFile* duplicated_file;
- VideoID* _tmp89_;
- gint _tmp89__length1;
- VideoID _tmp90_;
- DuplicatedFile* _tmp91_;
- ImportResult result_code;
- gboolean _tmp92_;
- Video* dupe_video;
- VideoSourceCollection* _tmp93_;
- MediaSourceHoldingTank* _tmp94_;
- MediaSourceHoldingTank* _tmp95_;
- PreparedFile* _tmp96_;
- GFile* _tmp97_;
- MediaSource* _tmp98_;
- Video* _tmp99_;
- Video* _tmp100_;
- VideoSourceCollection* _tmp101_;
- MediaSourceHoldingTank* _tmp102_;
- MediaSourceHoldingTank* _tmp103_;
- PreparedFile* _tmp104_;
- const gchar* _tmp105_;
- MediaSource* _tmp106_;
- Video* _tmp107_;
- PreparedFile* _tmp108_;
- GFile* _tmp109_;
- gchar* _tmp110_;
- gchar* _tmp111_;
- Video* _tmp112_;
- PreparedFile* _tmp113_;
- GFile* _tmp114_;
- Video* _tmp115_;
- ImportManifest* _tmp116_;
- GeeList* _tmp117_;
- Video* _tmp118_;
- Video* _tmp119_;
- PreparedFile* _tmp120_;
- BatchImportJob* _tmp121_;
- PreparedFile* _tmp122_;
- GFile* _tmp123_;
- PreparedFile* _tmp124_;
- GFile* _tmp125_;
- gchar* _tmp126_;
- gchar* _tmp127_;
- PreparedFile* _tmp128_;
- GFile* _tmp129_;
- gchar* _tmp130_;
- gchar* _tmp131_;
- DuplicatedFile* _tmp132_;
- ImportResult _tmp133_;
- BatchImportResult* _tmp134_;
- ImportResult _tmp135_;
- ImportManifest* _tmp136_;
- BatchImportResult* _tmp137_;
- PreparedFile* _tmp138_;
- GFile* _tmp139_;
- GFile* _tmp140_;
- gboolean _tmp141_;
- PreparedFile* _tmp142_;
- BatchImportJob* _tmp143_;
- PreparedFile* _tmp144_;
- GFile* _tmp145_;
- PreparedFile* _tmp146_;
- GFile* _tmp147_;
- gchar* _tmp148_;
- gchar* _tmp149_;
- PreparedFile* _tmp150_;
- GFile* _tmp151_;
- gchar* _tmp152_;
- gchar* _tmp153_;
- PreparedFile* _tmp154_;
- GFile* _tmp155_;
- GFile* _tmp156_;
- DuplicatedFile* _tmp157_;
- DuplicatedFile* _tmp158_;
- BatchImportResult* _tmp159_;
- PreparedFile* _tmp160_;
- GFile* _tmp161_;
- PreparedFile* _tmp162_;
- const gchar* _tmp163_;
- PreparedFile* _tmp164_;
- PhotoFileFormat _tmp165_;
- gboolean _tmp166_;
- LibraryPhotoSourceCollection* _tmp167_;
- PreparedFile* _tmp168_;
- GFile* _tmp169_;
- LibraryPhoto* _tmp170_;
- gboolean _tmp171_;
- LibraryPhoto* _tmp172_;
- PreparedFile* _tmp173_;
- const gchar* _tmp174_;
- LibraryPhotoSourceCollection* _tmp175_;
- PreparedFile* _tmp176_;
- const gchar* _tmp177_;
- LibraryPhoto* _tmp178_;
- LibraryPhoto* _tmp179_;
- PreparedFile* _tmp180_;
- GFile* _tmp181_;
- gchar* _tmp182_;
- gchar* _tmp183_;
- LibraryPhoto* _tmp184_;
- PreparedFile* _tmp185_;
- GFile* _tmp186_;
- LibraryPhoto* _tmp187_;
- LibraryPhoto* _tmp188_;
- gboolean _tmp189_;
- LibraryPhoto* _tmp190_;
- gboolean _tmp191_;
- LibraryPhotoSourceCollection* _tmp192_;
- PreparedFile* _tmp193_;
- GFile* _tmp194_;
- LibraryPhoto* _tmp195_;
- gboolean _tmp196_;
- LibraryPhoto* _tmp197_;
- PreparedFile* _tmp198_;
- const gchar* _tmp199_;
- LibraryPhotoSourceCollection* _tmp200_;
- PreparedFile* _tmp201_;
- const gchar* _tmp202_;
- LibraryPhoto* _tmp203_;
- LibraryPhoto* _tmp204_;
- PreparedFile* _tmp205_;
- GFile* _tmp206_;
- gchar* _tmp207_;
- gchar* _tmp208_;
- LibraryPhoto* _tmp209_;
- PreparedFile* _tmp210_;
- GFile* _tmp211_;
- LibraryPhoto* _tmp212_;
- LibraryPhoto* _tmp213_;
- PreparedFile* _tmp214_;
- BatchImportJob* _tmp215_;
- PreparedFile* _tmp216_;
- GFile* _tmp217_;
- PreparedFile* _tmp218_;
- GFile* _tmp219_;
- gchar* _tmp220_;
- gchar* _tmp221_;
- PreparedFile* _tmp222_;
- GFile* _tmp223_;
- gchar* _tmp224_;
- gchar* _tmp225_;
- BatchImportResult* _tmp226_;
- ImportManifest* _tmp227_;
- GeeList* _tmp228_;
- LibraryPhoto* _tmp229_;
- ImportManifest* _tmp230_;
- BatchImportResult* _tmp231_;
- LibraryPhoto* _tmp232_;
- PreparedFile* _tmp233_;
- GFile* _tmp234_;
- gchar* _tmp235_;
- gchar* _tmp236_;
- PhotoID* photo_ids;
- PhotoTable* _tmp237_;
- PhotoTable* _tmp238_;
- PreparedFile* _tmp239_;
- GFile* _tmp240_;
- PreparedFile* _tmp241_;
- const gchar* _tmp242_;
- PreparedFile* _tmp243_;
- PhotoFileFormat _tmp244_;
- gint _tmp245_;
- PhotoID* _tmp246_;
- PhotoID* _tmp247_;
- gint _tmp247__length1;
- gint photo_ids_length1;
- gint _photo_ids_size_;
- PhotoID* _tmp248_;
- gint _tmp248__length1;
- DuplicatedFile* _vala1_duplicated_file;
- PhotoID* _tmp249_;
- gint _tmp249__length1;
- PhotoID _tmp250_;
- DuplicatedFile* _tmp251_;
- PreparedFile* _tmp252_;
- BatchImportJob* _tmp253_;
- PreparedFile* _tmp254_;
- GFile* _tmp255_;
- PreparedFile* _tmp256_;
- GFile* _tmp257_;
- gchar* _tmp258_;
- gchar* _tmp259_;
- PreparedFile* _tmp260_;
- GFile* _tmp261_;
- gchar* _tmp262_;
- gchar* _tmp263_;
- DuplicatedFile* _tmp264_;
- BatchImportResult* _tmp265_;
- BatchImportResult* _tmp266_;
- BatchImportResult* _tmp267_;
- GeeList* _tmp268_;
- PreparedFile* _tmp269_;
-};
-
-struct _PrepareFilesJob {
- BackgroundImportJob parent_instance;
- PrepareFilesJobPrivate * priv;
- gint prepared_files;
-};
-
-struct _PrepareFilesJobClass {
- BackgroundImportJobClass parent_class;
-};
-
-struct _PreparedFileImportJob {
- BackgroundJob parent_instance;
- PreparedFileImportJobPrivate * priv;
- PreparedFile* not_ready;
- ReadyForImport* ready;
- BatchImportResult* failed;
-};
-
-struct _PreparedFileImportJobClass {
- BackgroundJobClass parent_class;
-};
-
-struct _ReadyForImport {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ReadyForImportPrivate * priv;
- GFile* final_file;
- PreparedFile* prepared_file;
- PhotoImportParams* photo_import_params;
- VideoImportParams* video_import_params;
- BatchImportResult* batch_result;
- gboolean is_video;
-};
-
-struct _ReadyForImportClass {
- GTypeClass parent_class;
- void (*finalize) (ReadyForImport *self);
-};
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoImportParams {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoImportParamsPrivate * priv;
- GFile* file;
- GFile* final_associated_file;
- ImportID import_id;
- PhotoFileSnifferOptions sniffer_options;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* full_md5;
- Thumbnails* thumbnails;
- PhotoRow* row;
- GeeCollection* keywords;
-};
-
-struct _PhotoImportParamsClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoImportParams *self);
-};
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _ThumbnailWriterJob {
- BackgroundImportJob parent_instance;
- ThumbnailWriterJobPrivate * priv;
- CompletedImportObject* completed_import_source;
-};
-
-struct _ThumbnailWriterJobClass {
- BackgroundImportJobClass parent_class;
-};
-
-struct _CompletedImportObject {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CompletedImportObjectPrivate * priv;
- Thumbnails* thumbnails;
- BatchImportResult* batch_result;
- MediaSource* source;
- BatchImportJob* original_job;
- GdkPixbuf* user_preview;
-};
-
-struct _CompletedImportObjectClass {
- GTypeClass parent_class;
- void (*finalize) (CompletedImportObject *self);
-};
-
-struct _DuplicatedFile {
- GObject parent_instance;
- DuplicatedFilePrivate * priv;
-};
-
-struct _DuplicatedFileClass {
- GObjectClass parent_class;
-};
-
-struct _DuplicatedFilePrivate {
- VideoID* video_id;
- PhotoID* photo_id;
- GFile* file;
-};
-
-struct _FileToPrepare {
- GTypeInstance parent_instance;
- volatile int ref_count;
- FileToPreparePrivate * priv;
- BatchImportJob* job;
- GFile* file;
- gboolean copy_to_library;
- FileToPrepare* associated;
-};
-
-struct _FileToPrepareClass {
- GTypeClass parent_class;
- void (*finalize) (FileToPrepare *self);
-};
-
-struct _ParamSpecFileToPrepare {
- GParamSpec parent_instance;
-};
-
-struct _WorkSnifferPrivate {
- GeeIterable* jobs;
- GeeHashSet* skipset;
-};
-
-struct _ParamSpecPreparedFile {
- GParamSpec parent_instance;
-};
-
-struct _PrepareFilesJobPrivate {
- GeeList* files_to_prepare;
- NotificationCallback notification;
- gpointer notification_target;
- GFile* library_dir;
- gint import_file_count;
- gint fail_every;
- gint skip_every;
-};
-
-struct _VideoImportParams {
- GTypeInstance parent_instance;
- volatile int ref_count;
- VideoImportParamsPrivate * priv;
- GFile* file;
- ImportID import_id;
- gchar* md5;
- time_t exposure_time_override;
- Thumbnails* thumbnails;
- VideoRow* row;
-};
-
-struct _VideoImportParamsClass {
- GTypeClass parent_class;
- void (*finalize) (VideoImportParams *self);
-};
-
-struct _ParamSpecReadyForImport {
- GParamSpec parent_instance;
-};
-
-struct _PreparedFileImportJobPrivate {
- ImportID import_id;
-};
-
-typedef enum {
- THUMBNAIL_CACHE_SIZE_LARGEST = 360,
- THUMBNAIL_CACHE_SIZE_BIG = 360,
- THUMBNAIL_CACHE_SIZE_MEDIUM = 128,
- THUMBNAIL_CACHE_SIZE_SMALLEST = 128
-} ThumbnailCacheSize;
-
-struct _ParamSpecCompletedImportObject {
- GParamSpec parent_instance;
-};
-
-
-static gpointer batch_import_job_parent_class = NULL;
-static gpointer file_import_job_parent_class = NULL;
-static gpointer batch_import_roll_parent_class = NULL;
-static gpointer batch_import_result_parent_class = NULL;
-static gpointer import_manifest_parent_class = NULL;
-static gpointer batch_import_parent_class = NULL;
-static Workers* batch_import_feeder_workers;
-static Workers* batch_import_feeder_workers = NULL;
-static Workers* batch_import_import_workers;
-static Workers* batch_import_import_workers = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-extern TombstoneSourceCollection* tombstone_global;
-extern EventSourceCollection* event_global;
-extern TagSourceCollection* tag_global;
-static gpointer duplicated_file_parent_class = NULL;
-static gpointer background_import_job_parent_class = NULL;
-static gpointer file_to_prepare_parent_class = NULL;
-static gpointer work_sniffer_parent_class = NULL;
-static gpointer prepared_file_parent_class = NULL;
-static gpointer prepared_file_cluster_parent_class = NULL;
-static gpointer prepare_files_job_parent_class = NULL;
-static gpointer ready_for_import_parent_class = NULL;
-static gpointer prepared_file_import_job_parent_class = NULL;
-static gpointer completed_import_object_parent_class = NULL;
-static gpointer thumbnail_writer_job_parent_class = NULL;
-
-GType import_result_get_type (void) G_GNUC_CONST;
-gchar* import_result_to_string (ImportResult self);
-gboolean import_result_is_abort (ImportResult self);
-gboolean import_result_is_nonuser_abort (ImportResult self);
-ImportResult import_result_convert_error (GError* err,
- ImportResult default_result);
-GQuark gphoto_error_quark (void);
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-GType duplicated_file_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-gchar* batch_import_job_get_dest_identifier (BatchImportJob* self);
-static gchar* batch_import_job_real_get_dest_identifier (BatchImportJob* self);
-gchar* batch_import_job_get_source_identifier (BatchImportJob* self);
-static gchar* batch_import_job_real_get_source_identifier (BatchImportJob* self);
-gboolean batch_import_job_is_directory (BatchImportJob* self);
-static gboolean batch_import_job_real_is_directory (BatchImportJob* self);
-gchar* batch_import_job_get_basename (BatchImportJob* self);
-static gchar* batch_import_job_real_get_basename (BatchImportJob* self);
-gchar* batch_import_job_get_path (BatchImportJob* self);
-static gchar* batch_import_job_real_get_path (BatchImportJob* self);
-DuplicatedFile* batch_import_job_get_duplicated_file (BatchImportJob* self);
-static DuplicatedFile* batch_import_job_real_get_duplicated_file (BatchImportJob* self);
-GFile* batch_import_job_get_associated_file (BatchImportJob* self);
-static GFile* batch_import_job_real_get_associated_file (BatchImportJob* self);
-void batch_import_job_set_associated (BatchImportJob* self,
- BatchImportJob* associated);
-static void batch_import_job_real_set_associated (BatchImportJob* self,
- BatchImportJob* associated);
-gboolean batch_import_job_determine_file_size (BatchImportJob* self,
- guint64* filesize,
- GFile* * file_or_dir);
-static gboolean batch_import_job_real_determine_file_size (BatchImportJob* self,
- guint64* filesize,
- GFile* * file_or_dir);
-gboolean batch_import_job_prepare (BatchImportJob* self,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error);
-static gboolean batch_import_job_real_prepare (BatchImportJob* self,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error);
-gboolean batch_import_job_complete (BatchImportJob* self,
- MediaSource* source,
- BatchImportRoll* import_roll,
- GError** error);
-static gboolean batch_import_job_real_complete (BatchImportJob* self,
- MediaSource* source,
- BatchImportRoll* import_roll,
- GError** error);
-time_t batch_import_job_get_exposure_time_override (BatchImportJob* self);
-static time_t batch_import_job_real_get_exposure_time_override (BatchImportJob* self);
-gboolean batch_import_job_recurse (BatchImportJob* self);
-static gboolean batch_import_job_real_recurse (BatchImportJob* self);
-BatchImportJob* batch_import_job_construct (GType object_type);
-static void batch_import_job_finalize (BatchImportJob * obj);
-GType file_import_job_get_type (void) G_GNUC_CONST;
-#define FILE_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FILE_IMPORT_JOB, FileImportJobPrivate))
-FileImportJob* file_import_job_new (GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse);
-FileImportJob* file_import_job_construct (GType object_type,
- GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse);
-static gchar* file_import_job_real_get_dest_identifier (BatchImportJob* base);
-static gchar* file_import_job_real_get_source_identifier (BatchImportJob* base);
-static gboolean file_import_job_real_is_directory (BatchImportJob* base);
-gboolean query_is_directory (GFile* file);
-static gchar* file_import_job_real_get_basename (BatchImportJob* base);
-static gchar* file_import_job_real_get_path (BatchImportJob* base);
-static void file_import_job_real_set_associated (BatchImportJob* base,
- BatchImportJob* associated);
-static gboolean file_import_job_real_determine_file_size (BatchImportJob* base,
- guint64* filesize,
- GFile* * file);
-static gboolean file_import_job_real_prepare (BatchImportJob* base,
- GFile* * file_to_import,
- gboolean* copy,
- GError** error);
-GFile* file_import_job_get_file (FileImportJob* self);
-static gboolean file_import_job_real_recurse (BatchImportJob* base);
-static void file_import_job_finalize (BatchImportJob * obj);
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* view_collection_new (const gchar* name);
-ViewCollection* view_collection_construct (GType object_type,
- const gchar* name);
-BatchImportRoll* batch_import_roll_new (void);
-BatchImportRoll* batch_import_roll_construct (GType object_type);
-void import_id_generate (ImportID* result);
-static void batch_import_roll_finalize (BatchImportRoll * obj);
-gpointer batch_import_result_ref (gpointer instance);
-void batch_import_result_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_result (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_result (GValue* value,
- gpointer v_object);
-void value_take_batch_import_result (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_result (const GValue* value);
-GType batch_import_result_get_type (void) G_GNUC_CONST;
-BatchImportResult* batch_import_result_new (BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- DuplicatedFile* duplicate_of,
- ImportResult _result_);
-BatchImportResult* batch_import_result_construct (GType object_type,
- BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- DuplicatedFile* duplicate_of,
- ImportResult _result_);
-BatchImportResult* batch_import_result_new_from_error (BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- GError* err,
- ImportResult default_result);
-BatchImportResult* batch_import_result_construct_from_error (GType object_type,
- BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- GError* err,
- ImportResult default_result);
-static void batch_import_result_finalize (BatchImportResult * obj);
-gpointer import_manifest_ref (gpointer instance);
-void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_import_manifest (GValue* value,
- gpointer v_object);
-void value_take_import_manifest (GValue* value,
- gpointer v_object);
-gpointer value_get_import_manifest (const GValue* value);
-GType import_manifest_get_type (void) G_GNUC_CONST;
-ImportManifest* import_manifest_new (GeeList* prefailed,
- GeeList* pre_already_imported);
-ImportManifest* import_manifest_construct (GType object_type,
- GeeList* prefailed,
- GeeList* pre_already_imported);
-void import_manifest_add_result (ImportManifest* self,
- BatchImportResult* batch_result);
-static void import_manifest_finalize (ImportManifest * obj);
-GType batch_import_get_type (void) G_GNUC_CONST;
-gpointer prepared_file_ref (gpointer instance);
-void prepared_file_unref (gpointer instance);
-GParamSpec* param_spec_prepared_file (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_prepared_file (GValue* value,
- gpointer v_object);
-void value_take_prepared_file (GValue* value,
- gpointer v_object);
-gpointer value_get_prepared_file (const GValue* value);
-GType prepared_file_get_type (void) G_GNUC_CONST;
-gpointer completed_import_object_ref (gpointer instance);
-void completed_import_object_unref (gpointer instance);
-GParamSpec* param_spec_completed_import_object (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_completed_import_object (GValue* value,
- gpointer v_object);
-void value_take_completed_import_object (GValue* value,
- gpointer v_object);
-gpointer value_get_completed_import_object (const GValue* value);
-GType completed_import_object_get_type (void) G_GNUC_CONST;
-#define BATCH_IMPORT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BATCH_IMPORT, BatchImportPrivate))
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-void batch_import_user_halt (BatchImport* self);
-static void _batch_import_user_halt_application_exiting (Application* _sender,
- gboolean panicked,
- gpointer self);
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-guint workers_thread_per_cpu_minus_one (void);
-#define BATCH_IMPORT_WORK_SNIFFER_THROBBER_MSEC 125
-#define BATCH_IMPORT_REPORT_EVERY_N_PREPARED_FILES 100
-#define BATCH_IMPORT_REPORT_PREPARED_FILES_EVERY_N_MSEC 3000
-#define BATCH_IMPORT_READY_SOURCES_COUNT_OVERFLOW 10
-#define BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC 125
-#define BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW ((3 * 1000) / BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC)
-BatchImport* batch_import_new (GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-BatchImport* batch_import_construct (GType object_type,
- GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean file_equal (GFile* a,
- GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-GFile* media_source_get_file (MediaSource* self);
-static gboolean batch_import_display_imported_timer (BatchImport* self);
-static gboolean _batch_import_display_imported_timer_gsource_func (gpointer self);
-gchar* batch_import_get_name (BatchImport* self);
-gboolean batch_import_get_untrash_duplicates (BatchImport* self);
-void batch_import_set_untrash_duplicates (BatchImport* self,
- gboolean untrash_duplicates);
-gboolean batch_import_get_mark_duplicates_online (BatchImport* self);
-void batch_import_set_mark_duplicates_online (BatchImport* self,
- gboolean mark_duplicates_online);
-static void batch_import_log_status (BatchImport* self,
- const gchar* where);
-static gboolean batch_import_report_failure (BatchImport* self,
- BatchImportResult* import_result);
-guint64 query_total_file_size (GFile* file_or_dir,
- GCancellable* cancellable,
- GError** error);
-static void batch_import_report_progress (BatchImport* self,
- guint64 increment_of_progress);
-gulong now_ms (void);
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-GType background_import_job_get_type (void) G_GNUC_CONST;
-static gboolean batch_import_report_failures (BatchImport* self,
- BackgroundImportJob* background_job);
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-static void batch_import_report_completed (BatchImport* self,
- const gchar* where);
-static void batch_import_flush_ready_sources (BatchImport* self);
-static void batch_import_file_import_complete (BatchImport* self);
-void batch_import_schedule (BatchImport* self);
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-static void batch_import_on_work_sniffed_out (BatchImport* self,
- BackgroundJob* j);
-static void _batch_import_on_work_sniffed_out_completion_callback (BackgroundJob* job,
- gpointer self);
-static void batch_import_on_sniffer_cancelled (BatchImport* self,
- BackgroundJob* j);
-static void _batch_import_on_sniffer_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-WorkSniffer* work_sniffer_new (BatchImport* owner,
- GeeIterable* jobs,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- GeeHashSet* skipset);
-WorkSniffer* work_sniffer_construct (GType object_type,
- BatchImport* owner,
- GeeIterable* jobs,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- GeeHashSet* skipset);
-GType work_sniffer_get_type (void) G_GNUC_CONST;
-static gboolean batch_import_on_sniffer_working (BatchImport* self);
-static gboolean _batch_import_on_sniffer_working_gsource_func (gpointer self);
-gpointer file_to_prepare_ref (gpointer instance);
-void file_to_prepare_unref (gpointer instance);
-GParamSpec* param_spec_file_to_prepare (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_file_to_prepare (GValue* value,
- gpointer v_object);
-void value_take_file_to_prepare (GValue* value,
- gpointer v_object);
-gpointer value_get_file_to_prepare (const GValue* value);
-GType file_to_prepare_get_type (void) G_GNUC_CONST;
-GType prepare_files_job_get_type (void) G_GNUC_CONST;
-gpointer notification_object_ref (gpointer instance);
-void notification_object_unref (gpointer instance);
-GParamSpec* param_spec_notification_object (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_notification_object (GValue* value,
- gpointer v_object);
-void value_take_notification_object (GValue* value,
- gpointer v_object);
-gpointer value_get_notification_object (const GValue* value);
-GType notification_object_get_type (void) G_GNUC_CONST;
-static void batch_import_on_file_prepared (BatchImport* self,
- BackgroundJob* j,
- NotificationObject* user);
-static void _batch_import_on_file_prepared_notification_callback (BackgroundJob* job,
- NotificationObject* user,
- gpointer self);
-static void batch_import_on_files_prepared (BatchImport* self,
- BackgroundJob* j);
-static void _batch_import_on_files_prepared_completion_callback (BackgroundJob* job,
- gpointer self);
-static void batch_import_on_file_prepare_cancelled (BatchImport* self,
- BackgroundJob* j);
-static void _batch_import_on_file_prepare_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-PrepareFilesJob* prepare_files_job_new (BatchImport* owner,
- GeeList* files_to_prepare,
- NotificationCallback notification,
- void* notification_target,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target);
-PrepareFilesJob* prepare_files_job_construct (GType object_type,
- BatchImport* owner,
- GeeList* files_to_prepare,
- NotificationCallback notification,
- void* notification_target,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target);
-static void batch_import_flush_import_jobs (BatchImport* self);
-gint workers_get_pending_job_count (Workers* self);
-static void batch_import_on_thumbnail_writer_completed (BatchImport* self,
- BackgroundJob* j);
-static void _batch_import_on_thumbnail_writer_completed_completion_callback (BackgroundJob* job,
- gpointer self);
-static void batch_import_on_thumbnail_writer_cancelled (BatchImport* self,
- BackgroundJob* j);
-static void _batch_import_on_thumbnail_writer_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-ThumbnailWriterJob* thumbnail_writer_job_new (BatchImport* owner,
- CompletedImportObject* completed_import_source,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancel_callback,
- void* cancel_callback_target);
-ThumbnailWriterJob* thumbnail_writer_job_construct (GType object_type,
- BatchImport* owner,
- CompletedImportObject* completed_import_source,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancel_callback,
- void* cancel_callback_target);
-GType thumbnail_writer_job_get_type (void) G_GNUC_CONST;
-static void batch_import_on_import_files_completed (BatchImport* self,
- BackgroundJob* j);
-static void _batch_import_on_import_files_completed_completion_callback (BackgroundJob* job,
- gpointer self);
-static void batch_import_on_import_files_cancelled (BatchImport* self,
- BackgroundJob* j);
-static void _batch_import_on_import_files_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-PreparedFileImportJob* prepared_file_import_job_new (BatchImport* owner,
- PreparedFile* prepared_file,
- ImportID* import_id,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target);
-PreparedFileImportJob* prepared_file_import_job_construct (GType object_type,
- BatchImport* owner,
- PreparedFile* prepared_file,
- ImportID* import_id,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target);
-GType prepared_file_import_job_get_type (void) G_GNUC_CONST;
-static GFile* batch_import_get_in_current_import (BatchImport* self,
- PreparedFile* prepared_file);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType interlocked_notification_object_get_type (void) G_GNUC_CONST;
-GType prepared_file_cluster_get_type (void) G_GNUC_CONST;
-static void batch_import_process_prepared_files (BatchImport* self,
- GeeList* list,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_);
-static void batch_import_process_prepared_files_finish (BatchImport* self,
- GAsyncResult* _res_);
-static void batch_import_process_prepared_files_data_free (gpointer _data);
-static void batch_import_process_prepared_files_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data);
-static gboolean batch_import_process_prepared_files_co (BatchImportProcessPreparedFilesData* _data_);
-static gboolean _batch_import_process_prepared_files_co_gsource_func (gpointer self);
-GType library_photo_source_collection_state_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;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self,
- GFile* file,
- LibraryPhotoSourceCollectionState* state);
-DuplicatedFile* duplicated_file_create_from_file (GFile* file);
-GFile* media_source_get_master_file (MediaSource* self);
-void media_source_mark_online (MediaSource* self);
-const gchar* library_photo_source_collection_state_to_string (LibraryPhotoSourceCollectionState self);
-GType video_source_collection_state_get_type (void) G_GNUC_CONST;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-Video* video_source_collection_get_state_by_file (VideoSourceCollection* self,
- GFile* file,
- VideoSourceCollectionState* state);
-const gchar* video_source_collection_state_to_string (VideoSourceCollectionState self);
-gboolean video_is_duplicate (GFile* file,
- const gchar* full_md5);
-GType video_id_get_type (void) G_GNUC_CONST;
-VideoID* video_id_dup (const VideoID* self);
-void video_id_free (VideoID* self);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType video_table_get_type (void) G_GNUC_CONST;
-VideoTable* video_table_get_instance (void);
-VideoID* video_table_get_duplicate_ids (VideoTable* self,
- GFile* file,
- const gchar* md5,
- int* result_length1);
-DuplicatedFile* duplicated_file_create_from_video_id (VideoID* video_id);
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType database_source_holding_tank_get_type (void) G_GNUC_CONST;
-GType media_source_holding_tank_get_type (void) G_GNUC_CONST;
-MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self);
-MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self,
- GFile* file);
-MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self,
- const gchar* md5);
-GType monitorable_get_type (void) G_GNUC_CONST;
-void monitorable_set_master_file (Monitorable* self,
- GFile* file);
-guint64 media_source_get_filesize (MediaSource* self);
-gboolean photo_is_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format);
-LibraryPhoto* library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self,
- GFile* file);
-LibraryPhoto* library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self,
- const gchar* md5);
-void media_source_untrash (MediaSource* self);
-void photo_remove_all_transformations (Photo* self);
-LibraryPhoto* library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self,
- GFile* file);
-LibraryPhoto* library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self,
- const gchar* md5);
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-GType photo_table_get_type (void) G_GNUC_CONST;
-PhotoTable* photo_table_get_instance (void);
-PhotoID* photo_table_get_duplicate_ids (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format,
- int* result_length1);
-DuplicatedFile* duplicated_file_create_from_photo_id (PhotoID* photo_id);
-static void batch_import_done_preparing_files (BatchImport* self,
- BackgroundJob* j,
- const gchar* caller);
-gpointer ready_for_import_ref (gpointer instance);
-void ready_for_import_unref (gpointer instance);
-GParamSpec* param_spec_ready_for_import (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_ready_for_import (GValue* value,
- gpointer v_object);
-void value_take_ready_for_import (GValue* value,
- gpointer v_object);
-gpointer value_get_ready_for_import (const GValue* value);
-GType ready_for_import_get_type (void) G_GNUC_CONST;
-gpointer photo_import_params_ref (gpointer instance);
-void photo_import_params_unref (gpointer instance);
-GParamSpec* param_spec_photo_import_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_import_params (GValue* value,
- gpointer v_object);
-void value_take_photo_import_params (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_import_params (const GValue* value);
-GType photo_import_params_get_type (void) G_GNUC_CONST;
-gpointer video_import_params_ref (gpointer instance);
-void video_import_params_unref (gpointer instance);
-GParamSpec* param_spec_video_import_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_video_import_params (GValue* value,
- gpointer v_object);
-void value_take_video_import_params (GValue* value,
- gpointer v_object);
-gpointer value_get_video_import_params (const GValue* value);
-GType video_import_params_get_type (void) G_GNUC_CONST;
-GType tombstone_get_type (void) G_GNUC_CONST;
-GType tombstone_source_collection_get_type (void) G_GNUC_CONST;
-Tombstone* tombstone_source_collection_locate (TombstoneSourceCollection* self,
- GFile* file);
-void tombstone_source_collection_resurrect (TombstoneSourceCollection* self,
- Tombstone* tombstone);
-ImportResult video_import_create (VideoImportParams* params,
- Video* * video);
-ImportResult library_photo_import_create (PhotoImportParams* params,
- LibraryPhoto* * photo);
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-gpointer thumbnails_ref (gpointer instance);
-void thumbnails_unref (gpointer instance);
-GParamSpec* param_spec_thumbnails (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_thumbnails (GValue* value,
- gpointer v_object);
-void value_take_thumbnails (GValue* value,
- gpointer v_object);
-gpointer value_get_thumbnails (const GValue* value);
-GType thumbnails_get_type (void) G_GNUC_CONST;
-gpointer photo_row_ref (gpointer instance);
-void photo_row_unref (gpointer instance);
-GParamSpec* param_spec_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_row (GValue* value,
- gpointer v_object);
-void value_take_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_row (const GValue* value);
-GType photo_row_get_type (void) G_GNUC_CONST;
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-BackingPhotoRow* backing_photo_row_new (void);
-BackingPhotoRow* backing_photo_row_construct (GType object_type);
-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);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType orientation_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-void photo_add_backing_photo_for_development (Photo* self,
- RawDeveloper d,
- BackingPhotoRow* bpr,
- gboolean notify,
- GError** error);
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self);
-gboolean photo_is_raw_developer_available (Photo* self,
- RawDeveloper d);
-void photo_set_default_raw_developer (Photo* self,
- RawDeveloper d);
-void photo_set_raw_developer (Photo* self,
- RawDeveloper d,
- gboolean notify);
-Thumbnails* ready_for_import_get_thumbnails (ReadyForImport* self);
-CompletedImportObject* completed_import_object_new (MediaSource* source,
- Thumbnails* thumbnails,
- BatchImportJob* original_job,
- BatchImportResult* import_result);
-CompletedImportObject* completed_import_object_construct (GType object_type,
- MediaSource* source,
- Thumbnails* thumbnails,
- BatchImportJob* original_job,
- BatchImportResult* import_result);
-BatchImportResult* ready_for_import_abort (ReadyForImport* self);
-gchar* data_object_to_string (DataObject* self);
-void library_photo_import_failed (LibraryPhoto* photo);
-void video_import_failed (Video* video);
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-void media_collection_registry_begin_transaction_on_all (MediaCollectionRegistry* self);
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType event_source_collection_get_type (void) G_GNUC_CONST;
-void data_collection_freeze_notifications (DataCollection* self);
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-void media_source_collection_import_many (MediaSourceCollection* self,
- GeeCollection* media);
-void event_generate_many_events (GeeCollection* sources,
- ViewCollection* events_so_far);
-void data_collection_thaw_notifications (DataCollection* self);
-void media_collection_registry_commit_transaction_on_all (MediaCollectionRegistry* self);
-guint64 media_source_get_master_filesize (MediaSource* self);
-static void g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__ENUM_STRING (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void batch_import_finalize (GObject * obj);
-#define DUPLICATED_FILE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DUPLICATED_FILE, DuplicatedFilePrivate))
-static DuplicatedFile* duplicated_file_new (void);
-static DuplicatedFile* duplicated_file_construct (GType object_type);
-gboolean photo_id_is_valid (PhotoID *self);
-gboolean video_id_is_valid (VideoID *self);
-GFile* duplicated_file_get_file (DuplicatedFile* self);
-LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self,
- PhotoID* photo_id);
-Video* video_source_collection_fetch (VideoSourceCollection* self,
- VideoID* video_id);
-static void duplicated_file_finalize (GObject * obj);
-BackgroundImportJob* background_import_job_construct (GType object_type,
- BatchImport* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target);
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-ImportResult background_import_job_abort_check (BackgroundImportJob* self);
-gboolean background_job_is_cancelled (BackgroundJob* self);
-void background_import_job_abort (BackgroundImportJob* self,
- ImportResult _result_);
-void background_import_job_report_failure (BackgroundImportJob* self,
- BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- ImportResult _result_);
-void background_import_job_report_error (BackgroundImportJob* self,
- BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- GError* err,
- ImportResult default_result);
-static void background_import_job_finalize (BackgroundJob * obj);
-FileToPrepare* file_to_prepare_new (BatchImportJob* job,
- GFile* file,
- gboolean copy_to_library);
-FileToPrepare* file_to_prepare_construct (GType object_type,
- BatchImportJob* job,
- GFile* file,
- gboolean copy_to_library);
-void file_to_prepare_set_associated (FileToPrepare* self,
- FileToPrepare* a);
-gchar* file_to_prepare_get_parent_path (FileToPrepare* self);
-gchar* file_to_prepare_get_path (FileToPrepare* self);
-gchar* file_to_prepare_get_basename (FileToPrepare* self);
-gboolean file_to_prepare_is_directory (FileToPrepare* self);
-static void file_to_prepare_finalize (FileToPrepare * obj);
-#define WORK_SNIFFER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_WORK_SNIFFER, WorkSnifferPrivate))
-static void work_sniffer_real_execute (BackgroundJob* base);
-static void work_sniffer_sniff_job (WorkSniffer* self,
- BatchImportJob* job,
- GError** error);
-static gint __lambda11_ (WorkSniffer* self,
- FileToPrepare* a,
- FileToPrepare* b);
-gint utf8_cs_compare (void* a,
- void* b);
-static gint ___lambda11__gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-gboolean is_string_empty (const gchar* s);
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_properties (const GValue* value);
-GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
-GType raw_file_format_properties_get_type (void) G_GNUC_CONST;
-RawFileFormatProperties* raw_file_format_properties_get_instance (void);
-gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self,
- const gchar* ext);
-static gboolean work_sniffer_is_paired (WorkSniffer* self,
- FileToPrepare* raw,
- FileToPrepare* maybe_paired);
-GType jfif_file_format_properties_get_type (void) G_GNUC_CONST;
-JfifFileFormatProperties* jfif_file_format_properties_get_instance (void);
-void work_sniffer_search_dir (WorkSniffer* self,
- BatchImportJob* job,
- GFile* dir,
- gboolean copy_to_library,
- gboolean recurse,
- GError** error);
-GCancellable* background_job_get_cancellable (BackgroundJob* self);
-gboolean photo_is_file_image (GFile* file);
-gboolean photo_file_format_is_file_supported (GFile* file);
-gboolean video_reader_is_supported_video_file (GFile* file);
-static void work_sniffer_finalize (BackgroundJob * obj);
-PreparedFile* prepared_file_new (BatchImportJob* job,
- GFile* file,
- GFile* associated_file,
- const gchar* source_id,
- const gchar* dest_id,
- gboolean copy_to_library,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- guint64 filesize,
- gboolean is_video);
-PreparedFile* prepared_file_construct (GType object_type,
- BatchImportJob* job,
- GFile* file,
- GFile* associated_file,
- const gchar* source_id,
- const gchar* dest_id,
- gboolean copy_to_library,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- guint64 filesize,
- gboolean is_video);
-static void prepared_file_finalize (PreparedFile * obj);
-PreparedFileCluster* prepared_file_cluster_new (GeeArrayList* list);
-PreparedFileCluster* prepared_file_cluster_construct (GType object_type,
- GeeArrayList* list);
-InterlockedNotificationObject* interlocked_notification_object_construct (GType object_type);
-static void prepared_file_cluster_finalize (NotificationObject * obj);
-#define PREPARE_FILES_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREPARE_FILES_JOB, PrepareFilesJobPrivate))
-GFile* app_dirs_get_import_dir (void);
-static gint prepare_files_job_get_test_variable (const gchar* name);
-void background_job_set_notification_priority (BackgroundJob* self,
- gint priority);
-static void prepare_files_job_real_execute (BackgroundJob* base);
-static gboolean prepare_files_job_create_file (PrepareFilesJob* self,
- BatchImportJob* job,
- GFile* * file,
- gboolean* copy_to_library);
-static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self,
- BatchImportJob* job,
- GFile* file,
- GFile* associated_file,
- gboolean copy_to_library,
- PreparedFile* * prepared_file);
-void background_job_notify (BackgroundJob* self,
- NotificationCallback callback,
- void* callback_target,
- NotificationObject* user);
-gchar* md5_file (GFile* file,
- GError** error);
-PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file);
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self,
- const gchar* filepath);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self,
- GError** error);
-gchar* photo_metadata_exif_hash (PhotoMetadata* self);
-gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self);
-static void prepare_files_job_finalize (BackgroundJob * obj);
-ReadyForImport* ready_for_import_new (GFile* final_file,
- PreparedFile* prepared_file,
- PhotoImportParams* photo_import_params,
- VideoImportParams* video_import_params,
- BatchImportResult* batch_result);
-ReadyForImport* ready_for_import_construct (GType object_type,
- GFile* final_file,
- PreparedFile* prepared_file,
- PhotoImportParams* photo_import_params,
- VideoImportParams* video_import_params,
- BatchImportResult* batch_result);
-gpointer video_row_ref (gpointer instance);
-void video_row_unref (gpointer instance);
-GParamSpec* param_spec_video_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_video_row (GValue* value,
- gpointer v_object);
-void value_take_video_row (GValue* value,
- gpointer v_object);
-gpointer value_get_video_row (const GValue* value);
-GType video_row_get_type (void) G_GNUC_CONST;
-static void ready_for_import_finalize (ReadyForImport * obj);
-#define PREPARED_FILE_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJobPrivate))
-void background_job_set_completion_priority (BackgroundJob* self,
- gint priority);
-static void prepared_file_import_job_real_execute (BackgroundJob* base);
-GFile* library_files_duplicate (GFile* src,
- GFileProgressCallback progress_callback,
- void* progress_callback_target,
- gboolean blacklist,
- GError** error);
-Thumbnails* thumbnails_new (void);
-Thumbnails* thumbnails_construct (GType object_type);
-VideoImportParams* video_import_params_new (GFile* file,
- ImportID* import_id,
- const gchar* md5,
- Thumbnails* thumbnails,
- time_t exposure_time_override);
-VideoImportParams* video_import_params_construct (GType object_type,
- GFile* file,
- ImportID* import_id,
- const gchar* md5,
- Thumbnails* thumbnails,
- time_t exposure_time_override);
-ImportResult video_reader_prepare_for_import (VideoImportParams* params);
-PhotoImportParams* photo_import_params_new (GFile* file,
- GFile* final_associated_file,
- ImportID* import_id,
- PhotoFileSnifferOptions sniffer_options,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- Thumbnails* thumbnails);
-PhotoImportParams* photo_import_params_construct (GType object_type,
- GFile* file,
- GFile* final_associated_file,
- ImportID* import_id,
- PhotoFileSnifferOptions sniffer_options,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- Thumbnails* thumbnails);
-ImportResult photo_prepare_for_import (PhotoImportParams* params);
-static void prepared_file_import_job_finalize (BackgroundJob * obj);
-GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
-GdkPixbuf* thumbnails_get (Thumbnails* self,
- ThumbnailCacheSize size);
-static void completed_import_object_finalize (CompletedImportObject * obj);
-static void thumbnail_writer_job_real_execute (BackgroundJob* base);
-void thumbnail_cache_import_thumbnails (ThumbnailSource* source,
- Thumbnails* thumbnails,
- gboolean force,
- GError** error);
-static void thumbnail_writer_job_finalize (BackgroundJob * obj);
-
-
-gchar*
-import_result_to_string (ImportResult self)
-{
- gchar* result = NULL;
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (self) {
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_SUCCESS:
-#line 2767 "BatchImport.c"
- {
- gchar* _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = g_strdup (_ ("Success"));
-#line 26 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2776 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_FILE_ERROR:
-#line 2780 "BatchImport.c"
- {
- gchar* _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_strdup (_ ("File error"));
-#line 29 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2789 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_DECODE_ERROR:
-#line 2793 "BatchImport.c"
- {
- gchar* _tmp2_;
-#line 32 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = g_strdup (_ ("Unable to decode file"));
-#line 32 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp2_;
-#line 32 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2802 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_DATABASE_ERROR:
-#line 2806 "BatchImport.c"
- {
- gchar* _tmp3_;
-#line 35 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_strdup (_ ("Database error"));
-#line 35 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp3_;
-#line 35 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2815 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_USER_ABORT:
-#line 2819 "BatchImport.c"
- {
- gchar* _tmp4_;
-#line 38 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = g_strdup (_ ("User aborted import"));
-#line 38 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp4_;
-#line 38 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2828 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_NOT_A_FILE:
-#line 2832 "BatchImport.c"
- {
- gchar* _tmp5_;
-#line 41 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_strdup (_ ("Not a file"));
-#line 41 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp5_;
-#line 41 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2841 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_PHOTO_EXISTS:
-#line 2845 "BatchImport.c"
- {
- gchar* _tmp6_;
-#line 44 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = g_strdup (_ ("File already exists in database"));
-#line 44 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp6_;
-#line 44 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2854 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_UNSUPPORTED_FORMAT:
-#line 2858 "BatchImport.c"
- {
- gchar* _tmp7_;
-#line 47 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = g_strdup (_ ("Unsupported file format"));
-#line 47 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp7_;
-#line 47 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2867 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_NOT_AN_IMAGE:
-#line 2871 "BatchImport.c"
- {
- gchar* _tmp8_;
-#line 50 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = g_strdup (_ ("Not an image file"));
-#line 50 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp8_;
-#line 50 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2880 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_DISK_FAILURE:
-#line 2884 "BatchImport.c"
- {
- gchar* _tmp9_;
-#line 53 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = g_strdup (_ ("Disk failure"));
-#line 53 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp9_;
-#line 53 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2893 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_DISK_FULL:
-#line 2897 "BatchImport.c"
- {
- gchar* _tmp10_;
-#line 56 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = g_strdup (_ ("Disk full"));
-#line 56 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp10_;
-#line 56 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2906 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_CAMERA_ERROR:
-#line 2910 "BatchImport.c"
- {
- gchar* _tmp11_;
-#line 59 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = g_strdup (_ ("Camera error"));
-#line 59 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp11_;
-#line 59 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2919 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_FILE_WRITE_ERROR:
-#line 2923 "BatchImport.c"
- {
- gchar* _tmp12_;
-#line 62 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = g_strdup (_ ("File write error"));
-#line 62 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp12_;
-#line 62 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2932 "BatchImport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE:
-#line 2936 "BatchImport.c"
- {
- gchar* _tmp13_;
-#line 65 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = g_strdup (_ ("Corrupt image file"));
-#line 65 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp13_;
-#line 65 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2945 "BatchImport.c"
- }
- default:
- {
- gchar* _tmp14_;
-#line 68 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = g_strdup_printf (_ ("Imported failed (%d)"), (gint) self);
-#line 68 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp14_;
-#line 68 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2956 "BatchImport.c"
- }
- }
-}
-
-
-gboolean
-import_result_is_abort (ImportResult self)
-{
- gboolean result = FALSE;
-#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (self) {
-#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_DISK_FULL:
-#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_DISK_FAILURE:
-#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_USER_ABORT:
-#line 2974 "BatchImport.c"
- {
-#line 77 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = TRUE;
-#line 77 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2980 "BatchImport.c"
- }
- default:
- {
-#line 80 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = FALSE;
-#line 80 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 2988 "BatchImport.c"
- }
- }
-}
-
-
-gboolean
-import_result_is_nonuser_abort (ImportResult self)
-{
- gboolean result = FALSE;
-#line 85 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (self) {
-#line 85 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_DISK_FULL:
-#line 85 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_DISK_FAILURE:
-#line 3004 "BatchImport.c"
- {
-#line 88 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = TRUE;
-#line 88 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3010 "BatchImport.c"
- }
- default:
- {
-#line 91 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = FALSE;
-#line 91 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3018 "BatchImport.c"
- }
- }
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? g_error_copy (self) : NULL;
-#line 3029 "BatchImport.c"
-}
-
-
-ImportResult
-import_result_convert_error (GError* err,
- ImportResult default_result)
-{
- ImportResult result = 0;
-#line 96 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (err->domain == G_FILE_ERROR) {
-#line 3040 "BatchImport.c"
- GError* ferr = NULL;
- GError* _tmp0_;
- GError* _tmp1_;
-#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _g_error_copy0 ((GError*) err);
-#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ferr = _tmp0_;
-#line 99 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = ferr;
-#line 99 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp1_, G_FILE_ERROR, G_FILE_ERROR_NOSPC)) {
-#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_DISK_FULL;
-#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ferr);
-#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3058 "BatchImport.c"
- } else {
- GError* _tmp2_;
-#line 101 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = ferr;
-#line 101 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp2_, G_FILE_ERROR, G_FILE_ERROR_IO)) {
-#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_DISK_FAILURE;
-#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ferr);
-#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3071 "BatchImport.c"
- } else {
- GError* _tmp3_;
-#line 103 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = ferr;
-#line 103 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp3_, G_FILE_ERROR, G_FILE_ERROR_ISDIR)) {
-#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_NOT_A_FILE;
-#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ferr);
-#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3084 "BatchImport.c"
- } else {
- GError* _tmp4_;
-#line 105 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = ferr;
-#line 105 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp4_, G_FILE_ERROR, G_FILE_ERROR_ACCES)) {
-#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_FILE_WRITE_ERROR;
-#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ferr);
-#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3097 "BatchImport.c"
- } else {
- GError* _tmp5_;
-#line 107 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = ferr;
-#line 107 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp5_, G_FILE_ERROR, G_FILE_ERROR_PERM)) {
-#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_FILE_WRITE_ERROR;
-#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ferr);
-#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3110 "BatchImport.c"
- } else {
-#line 110 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_FILE_ERROR;
-#line 110 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ferr);
-#line 110 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3118 "BatchImport.c"
- }
- }
- }
- }
- }
-#line 96 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ferr);
-#line 3126 "BatchImport.c"
- } else {
-#line 111 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (err->domain == G_IO_ERROR) {
-#line 3130 "BatchImport.c"
- GError* ioerr = NULL;
- GError* _tmp6_;
- GError* _tmp7_;
-#line 112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _g_error_copy0 ((GError*) err);
-#line 112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ioerr = _tmp6_;
-#line 114 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = ioerr;
-#line 114 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp7_, G_IO_ERROR, G_IO_ERROR_NO_SPACE)) {
-#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_DISK_FULL;
-#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ioerr);
-#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3148 "BatchImport.c"
- } else {
- GError* _tmp8_;
-#line 116 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = ioerr;
-#line 116 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp8_, G_IO_ERROR, G_IO_ERROR_FAILED)) {
-#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_DISK_FAILURE;
-#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ioerr);
-#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3161 "BatchImport.c"
- } else {
- GError* _tmp9_;
-#line 118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = ioerr;
-#line 118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp9_, G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY)) {
-#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_NOT_A_FILE;
-#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ioerr);
-#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3174 "BatchImport.c"
- } else {
- GError* _tmp10_;
-#line 120 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = ioerr;
-#line 120 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp10_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
-#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_USER_ABORT;
-#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ioerr);
-#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3187 "BatchImport.c"
- } else {
- GError* _tmp11_;
-#line 122 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = ioerr;
-#line 122 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp11_, G_IO_ERROR, G_IO_ERROR_READ_ONLY)) {
-#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_FILE_WRITE_ERROR;
-#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ioerr);
-#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3200 "BatchImport.c"
- } else {
- GError* _tmp12_;
-#line 124 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = ioerr;
-#line 124 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp12_, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)) {
-#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_FILE_WRITE_ERROR;
-#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ioerr);
-#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3213 "BatchImport.c"
- } else {
-#line 127 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_FILE_ERROR;
-#line 127 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ioerr);
-#line 127 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3221 "BatchImport.c"
- }
- }
- }
- }
- }
- }
-#line 111 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (ioerr);
-#line 3230 "BatchImport.c"
- } else {
-#line 128 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (err->domain == GPHOTO_ERROR) {
-#line 129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_CAMERA_ERROR;
-#line 129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3238 "BatchImport.c"
- } else {
-#line 130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (err->domain == GDK_PIXBUF_ERROR) {
-#line 3242 "BatchImport.c"
- GError* pixbuferr = NULL;
- GError* _tmp13_;
- GError* _tmp14_;
-#line 131 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _g_error_copy0 ((GError*) err);
-#line 131 "/home/jens/Source/shotwell/src/BatchImport.vala"
- pixbuferr = _tmp13_;
-#line 133 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = pixbuferr;
-#line 133 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp14_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE)) {
-#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE;
-#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (pixbuferr);
-#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3260 "BatchImport.c"
- } else {
- GError* _tmp15_;
-#line 135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = pixbuferr;
-#line 135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp15_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY)) {
-#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = default_result;
-#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (pixbuferr);
-#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3273 "BatchImport.c"
- } else {
- GError* _tmp16_;
-#line 137 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = pixbuferr;
-#line 137 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp16_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_BAD_OPTION)) {
-#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = default_result;
-#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (pixbuferr);
-#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3286 "BatchImport.c"
- } else {
- GError* _tmp17_;
-#line 139 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = pixbuferr;
-#line 139 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp17_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE)) {
-#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (pixbuferr);
-#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3299 "BatchImport.c"
- } else {
- GError* _tmp18_;
-#line 141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = pixbuferr;
-#line 141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp18_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION)) {
-#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = default_result;
-#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (pixbuferr);
-#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3312 "BatchImport.c"
- } else {
- GError* _tmp19_;
-#line 143 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = pixbuferr;
-#line 143 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp19_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_FAILED)) {
-#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = default_result;
-#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (pixbuferr);
-#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3325 "BatchImport.c"
- } else {
-#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = default_result;
-#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (pixbuferr);
-#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3333 "BatchImport.c"
- }
- }
- }
- }
- }
- }
-#line 130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (pixbuferr);
-#line 3342 "BatchImport.c"
- }
- }
- }
- }
-#line 149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = default_result;
-#line 149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3351 "BatchImport.c"
-}
-
-
-GType
-import_result_get_type (void)
-{
- static volatile gsize import_result_type_id__volatile = 0;
- if (g_once_init_enter (&import_result_type_id__volatile)) {
- static const GEnumValue values[] = {{IMPORT_RESULT_SUCCESS, "IMPORT_RESULT_SUCCESS", "success"}, {IMPORT_RESULT_FILE_ERROR, "IMPORT_RESULT_FILE_ERROR", "file-error"}, {IMPORT_RESULT_DECODE_ERROR, "IMPORT_RESULT_DECODE_ERROR", "decode-error"}, {IMPORT_RESULT_DATABASE_ERROR, "IMPORT_RESULT_DATABASE_ERROR", "database-error"}, {IMPORT_RESULT_USER_ABORT, "IMPORT_RESULT_USER_ABORT", "user-abort"}, {IMPORT_RESULT_NOT_A_FILE, "IMPORT_RESULT_NOT_A_FILE", "not-a-file"}, {IMPORT_RESULT_PHOTO_EXISTS, "IMPORT_RESULT_PHOTO_EXISTS", "photo-exists"}, {IMPORT_RESULT_UNSUPPORTED_FORMAT, "IMPORT_RESULT_UNSUPPORTED_FORMAT", "unsupported-format"}, {IMPORT_RESULT_NOT_AN_IMAGE, "IMPORT_RESULT_NOT_AN_IMAGE", "not-an-image"}, {IMPORT_RESULT_DISK_FAILURE, "IMPORT_RESULT_DISK_FAILURE", "disk-failure"}, {IMPORT_RESULT_DISK_FULL, "IMPORT_RESULT_DISK_FULL", "disk-full"}, {IMPORT_RESULT_CAMERA_ERROR, "IMPORT_RESULT_CAMERA_ERROR", "camera-error"}, {IMPORT_RESULT_FILE_WRITE_ERROR, "IMPORT_RESULT_FILE_WRITE_ERROR", "file-write-error"}, {IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE, "IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE", "pixbuf-corrupt-image"}, {0, NULL, NULL}};
- GType import_result_type_id;
- import_result_type_id = g_enum_register_static ("ImportResult", values);
- g_once_init_leave (&import_result_type_id__volatile, import_result_type_id);
- }
- return import_result_type_id__volatile;
-}
-
-
-static gchar*
-batch_import_job_real_get_dest_identifier (BatchImportJob* self)
-{
-#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_dest_identifier'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 3376 "BatchImport.c"
-}
-
-
-gchar*
-batch_import_job_get_dest_identifier (BatchImportJob* self)
-{
-#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
-#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->get_dest_identifier (self);
-#line 3387 "BatchImport.c"
-}
-
-
-static gchar*
-batch_import_job_real_get_source_identifier (BatchImportJob* self)
-{
-#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_source_identifier'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 3398 "BatchImport.c"
-}
-
-
-gchar*
-batch_import_job_get_source_identifier (BatchImportJob* self)
-{
-#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
-#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->get_source_identifier (self);
-#line 3409 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_job_real_is_directory (BatchImportJob* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_is_directory'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return _tmp0_;
-#line 3421 "BatchImport.c"
-}
-
-
-gboolean
-batch_import_job_is_directory (BatchImportJob* self)
-{
-#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
-#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->is_directory (self);
-#line 3432 "BatchImport.c"
-}
-
-
-static gchar*
-batch_import_job_real_get_basename (BatchImportJob* self)
-{
-#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_basename'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 3443 "BatchImport.c"
-}
-
-
-gchar*
-batch_import_job_get_basename (BatchImportJob* self)
-{
-#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
-#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->get_basename (self);
-#line 3454 "BatchImport.c"
-}
-
-
-static gchar*
-batch_import_job_real_get_path (BatchImportJob* self)
-{
-#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_path'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 3465 "BatchImport.c"
-}
-
-
-gchar*
-batch_import_job_get_path (BatchImportJob* self)
-{
-#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
-#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->get_path (self);
-#line 3476 "BatchImport.c"
-}
-
-
-static DuplicatedFile*
-batch_import_job_real_get_duplicated_file (BatchImportJob* self)
-{
- DuplicatedFile* result = NULL;
-#line 172 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = NULL;
-#line 172 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3488 "BatchImport.c"
-}
-
-
-DuplicatedFile*
-batch_import_job_get_duplicated_file (BatchImportJob* self)
-{
-#line 171 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
-#line 171 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->get_duplicated_file (self);
-#line 3499 "BatchImport.c"
-}
-
-
-static GFile*
-batch_import_job_real_get_associated_file (BatchImportJob* self)
-{
- GFile* result = NULL;
-#line 176 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = NULL;
-#line 176 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3511 "BatchImport.c"
-}
-
-
-GFile*
-batch_import_job_get_associated_file (BatchImportJob* self)
-{
-#line 175 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
-#line 175 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->get_associated_file (self);
-#line 3522 "BatchImport.c"
-}
-
-
-static void
-batch_import_job_real_set_associated (BatchImportJob* self,
- BatchImportJob* associated)
-{
-#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_set_associated'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 3534 "BatchImport.c"
-}
-
-
-void
-batch_import_job_set_associated (BatchImportJob* self,
- BatchImportJob* associated)
-{
-#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (self));
-#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BATCH_IMPORT_JOB_GET_CLASS (self)->set_associated (self, associated);
-#line 3546 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_job_real_determine_file_size (BatchImportJob* self,
- guint64* filesize,
- GFile* * file_or_dir)
-{
- gboolean _tmp0_ = FALSE;
-#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_determine_file_size'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return _tmp0_;
-#line 3560 "BatchImport.c"
-}
-
-
-gboolean
-batch_import_job_determine_file_size (BatchImportJob* self,
- guint64* filesize,
- GFile* * file_or_dir)
-{
-#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
-#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->determine_file_size (self, filesize, file_or_dir);
-#line 3573 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_job_real_prepare (BatchImportJob* self,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error)
-{
- gboolean _tmp0_ = FALSE;
-#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_prepare'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return _tmp0_;
-#line 3588 "BatchImport.c"
-}
-
-
-gboolean
-batch_import_job_prepare (BatchImportJob* self,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error)
-{
-#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
-#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->prepare (self, file_to_import, copy_to_library, error);
-#line 3602 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_job_real_complete (BatchImportJob* self,
- MediaSource* source,
- BatchImportRoll* import_roll,
- GError** error)
-{
- gboolean result = FALSE;
-#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_ROLL (import_roll), FALSE);
-#line 201 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = FALSE;
-#line 201 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3621 "BatchImport.c"
-}
-
-
-gboolean
-batch_import_job_complete (BatchImportJob* self,
- MediaSource* source,
- BatchImportRoll* import_roll,
- GError** error)
-{
-#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
-#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->complete (self, source, import_roll, error);
-#line 3635 "BatchImport.c"
-}
-
-
-static time_t
-batch_import_job_real_get_exposure_time_override (BatchImportJob* self)
-{
- time_t result = 0;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = (time_t) 0;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3647 "BatchImport.c"
-}
-
-
-time_t
-batch_import_job_get_exposure_time_override (BatchImportJob* self)
-{
-#line 206 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), 0);
-#line 206 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->get_exposure_time_override (self);
-#line 3658 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_job_real_recurse (BatchImportJob* self)
-{
- gboolean result = FALSE;
-#line 211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = TRUE;
-#line 211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 3670 "BatchImport.c"
-}
-
-
-gboolean
-batch_import_job_recurse (BatchImportJob* self)
-{
-#line 210 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
-#line 210 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return BATCH_IMPORT_JOB_GET_CLASS (self)->recurse (self);
-#line 3681 "BatchImport.c"
-}
-
-
-BatchImportJob*
-batch_import_job_construct (GType object_type)
-{
- BatchImportJob* self = NULL;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (BatchImportJob*) g_type_create_instance (object_type);
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 3693 "BatchImport.c"
-}
-
-
-static void
-value_batch_import_job_init (GValue* value)
-{
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 3702 "BatchImport.c"
-}
-
-
-static void
-value_batch_import_job_free_value (GValue* value)
-{
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (value->data[0].v_pointer) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_job_unref (value->data[0].v_pointer);
-#line 3713 "BatchImport.c"
- }
-}
-
-
-static void
-value_batch_import_job_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (src_value->data[0].v_pointer) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = batch_import_job_ref (src_value->data[0].v_pointer);
-#line 3726 "BatchImport.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3730 "BatchImport.c"
- }
-}
-
-
-static gpointer
-value_batch_import_job_peek_pointer (const GValue* value)
-{
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 3740 "BatchImport.c"
-}
-
-
-static gchar*
-value_batch_import_job_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (collect_values[0].v_pointer) {
-#line 3752 "BatchImport.c"
- BatchImportJob * object;
- object = collect_values[0].v_pointer;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3759 "BatchImport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.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 3763 "BatchImport.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = batch_import_job_ref (object);
-#line 3767 "BatchImport.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 3771 "BatchImport.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 3775 "BatchImport.c"
-}
-
-
-static gchar*
-value_batch_import_job_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- BatchImportJob ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!object_p) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3791 "BatchImport.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!value->data[0].v_pointer) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = NULL;
-#line 3797 "BatchImport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = value->data[0].v_pointer;
-#line 3801 "BatchImport.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = batch_import_job_ref (value->data[0].v_pointer);
-#line 3805 "BatchImport.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 3809 "BatchImport.c"
-}
-
-
-GParamSpec*
-param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecBatchImportJob* spec;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_JOB), NULL);
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return G_PARAM_SPEC (spec);
-#line 3829 "BatchImport.c"
-}
-
-
-gpointer
-value_get_batch_import_job (const GValue* value)
-{
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB), NULL);
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 3840 "BatchImport.c"
-}
-
-
-void
-value_set_batch_import_job (GValue* value,
- gpointer v_object)
-{
- BatchImportJob * old;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB));
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_JOB));
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_job_ref (value->data[0].v_pointer);
-#line 3863 "BatchImport.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 3867 "BatchImport.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_job_unref (old);
-#line 3873 "BatchImport.c"
- }
-}
-
-
-void
-value_take_batch_import_job (GValue* value,
- gpointer v_object)
-{
- BatchImportJob * old;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB));
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_JOB));
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 3895 "BatchImport.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 3899 "BatchImport.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_job_unref (old);
-#line 3905 "BatchImport.c"
- }
-}
-
-
-static void
-batch_import_job_class_init (BatchImportJobClass * klass)
-{
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->finalize = batch_import_job_finalize;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) batch_import_job_real_get_dest_identifier;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) batch_import_job_real_get_source_identifier;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) batch_import_job_real_is_directory;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) batch_import_job_real_get_basename;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) batch_import_job_real_get_path;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_duplicated_file = (DuplicatedFile* (*) (BatchImportJob *)) batch_import_job_real_get_duplicated_file;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_associated_file = (GFile* (*) (BatchImportJob *)) batch_import_job_real_get_associated_file;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) batch_import_job_real_set_associated;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) batch_import_job_real_determine_file_size;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) batch_import_job_real_prepare;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->complete = (gboolean (*) (BatchImportJob *, MediaSource*, BatchImportRoll*, GError**)) batch_import_job_real_complete;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_exposure_time_override = (time_t (*) (BatchImportJob *)) batch_import_job_real_get_exposure_time_override;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->recurse = (gboolean (*) (BatchImportJob *)) batch_import_job_real_recurse;
-#line 3943 "BatchImport.c"
-}
-
-
-static void
-batch_import_job_instance_init (BatchImportJob * self)
-{
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ref_count = 1;
-#line 3952 "BatchImport.c"
-}
-
-
-static void
-batch_import_job_finalize (BatchImportJob * obj)
-{
- BatchImportJob * self;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_JOB, BatchImportJob);
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_destroy (self);
-#line 3964 "BatchImport.c"
-}
-
-
-GType
-batch_import_job_get_type (void)
-{
- static volatile gsize batch_import_job_type_id__volatile = 0;
- if (g_once_init_enter (&batch_import_job_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_batch_import_job_init, value_batch_import_job_free_value, value_batch_import_job_copy_value, value_batch_import_job_peek_pointer, "p", value_batch_import_job_collect_value, "p", value_batch_import_job_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (BatchImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImportJob), 0, (GInstanceInitFunc) batch_import_job_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType batch_import_job_type_id;
- batch_import_job_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BatchImportJob", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&batch_import_job_type_id__volatile, batch_import_job_type_id);
- }
- return batch_import_job_type_id__volatile;
-}
-
-
-gpointer
-batch_import_job_ref (gpointer instance)
-{
- BatchImportJob * self;
- self = instance;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return instance;
-#line 3993 "BatchImport.c"
-}
-
-
-void
-batch_import_job_unref (gpointer instance)
-{
- BatchImportJob * self;
- self = instance;
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BATCH_IMPORT_JOB_GET_CLASS (self)->finalize (self);
-#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4008 "BatchImport.c"
- }
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? g_object_ref (self) : NULL;
-#line 4018 "BatchImport.c"
-}
-
-
-FileImportJob*
-file_import_job_construct (GType object_type,
- GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse)
-{
- FileImportJob* self = NULL;
- GFile* _tmp0_;
-#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_FILE (file_or_dir), NULL);
-#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (FileImportJob*) batch_import_job_construct (object_type);
-#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _g_object_ref0 (file_or_dir);
-#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->file_or_dir);
-#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file_or_dir = _tmp0_;
-#line 223 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->copy_to_library = copy_to_library;
-#line 224 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->_recurse = recurse;
-#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 4046 "BatchImport.c"
-}
-
-
-FileImportJob*
-file_import_job_new (GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse)
-{
-#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return file_import_job_construct (TYPE_FILE_IMPORT_JOB, file_or_dir, copy_to_library, recurse);
-#line 4057 "BatchImport.c"
-}
-
-
-static gchar*
-file_import_job_real_get_dest_identifier (BatchImportJob* base)
-{
- FileImportJob * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
-#line 227 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file_or_dir;
-#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_file_get_path (_tmp0_);
-#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp1_;
-#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4078 "BatchImport.c"
-}
-
-
-static gchar*
-file_import_job_real_get_source_identifier (BatchImportJob* base)
-{
- FileImportJob * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
-#line 231 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file_or_dir;
-#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_file_get_path (_tmp0_);
-#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp1_;
-#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4099 "BatchImport.c"
-}
-
-
-static gboolean
-file_import_job_real_is_directory (BatchImportJob* base)
-{
- FileImportJob * self;
- gboolean result = FALSE;
- GFile* _tmp0_;
-#line 235 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file_or_dir;
-#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = query_is_directory (_tmp0_);
-#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4117 "BatchImport.c"
-}
-
-
-static gchar*
-file_import_job_real_get_basename (BatchImportJob* base)
-{
- FileImportJob * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
-#line 239 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file_or_dir;
-#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_file_get_basename (_tmp0_);
-#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp1_;
-#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4138 "BatchImport.c"
-}
-
-
-static gchar*
-file_import_job_real_get_path (BatchImportJob* base)
-{
- FileImportJob * self;
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
-#line 243 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (batch_import_job_is_directory (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BATCH_IMPORT_JOB, BatchImportJob))) {
-#line 4152 "BatchImport.c"
- GFile* _tmp1_;
- gchar* _tmp2_;
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->priv->file_or_dir;
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp0_);
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp2_;
-#line 4163 "BatchImport.c"
- } else {
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- gchar* _tmp6_;
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->file_or_dir;
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = g_file_get_parent (_tmp3_);
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_;
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = g_file_get_path (_tmp5_);
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp0_);
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp6_;
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp5_);
-#line 4183 "BatchImport.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4189 "BatchImport.c"
-}
-
-
-static gpointer
-_batch_import_job_ref0 (gpointer self)
-{
-#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? batch_import_job_ref (self) : NULL;
-#line 4198 "BatchImport.c"
-}
-
-
-static void
-file_import_job_real_set_associated (BatchImportJob* base,
- BatchImportJob* associated)
-{
- FileImportJob * self;
- FileImportJob* _tmp0_;
-#line 247 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 247 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (associated));
-#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (associated, TYPE_FILE_IMPORT_JOB) ? ((FileImportJob*) associated) : NULL);
-#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->priv->associated);
-#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->associated = _tmp0_;
-#line 4218 "BatchImport.c"
-}
-
-
-static gboolean
-file_import_job_real_determine_file_size (BatchImportJob* base,
- guint64* filesize,
- GFile* * file)
-{
- FileImportJob * self;
- guint64 _vala_filesize = 0ULL;
- GFile* _vala_file = NULL;
- gboolean result = FALSE;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 251 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_filesize = (guint64) 0;
-#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file_or_dir;
-#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_vala_file);
-#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_file = _tmp1_;
-#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = FALSE;
-#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (filesize) {
-#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *filesize = _vala_filesize;
-#line 4251 "BatchImport.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (file) {
-#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *file = _vala_file;
-#line 4257 "BatchImport.c"
- } else {
-#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_vala_file);
-#line 4261 "BatchImport.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4265 "BatchImport.c"
-}
-
-
-static gboolean
-file_import_job_real_prepare (BatchImportJob* base,
- GFile* * file_to_import,
- gboolean* copy,
- GError** error)
-{
- FileImportJob * self;
- GFile* _vala_file_to_import = NULL;
- gboolean _vala_copy = FALSE;
- gboolean result = FALSE;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gboolean _tmp2_;
-#line 258 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file_or_dir;
-#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_file_to_import = _tmp1_;
-#line 260 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->priv->copy_to_library;
-#line 260 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_copy = _tmp2_;
-#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = TRUE;
-#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (file_to_import) {
-#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *file_to_import = _vala_file_to_import;
-#line 4302 "BatchImport.c"
- } else {
-#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 4306 "BatchImport.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (copy) {
-#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *copy = _vala_copy;
-#line 4312 "BatchImport.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4316 "BatchImport.c"
-}
-
-
-GFile*
-file_import_job_get_file (FileImportJob* self)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 265 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_IMPORT_JOB (self), NULL);
-#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file_or_dir;
-#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp1_;
-#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4336 "BatchImport.c"
-}
-
-
-static gboolean
-file_import_job_real_recurse (BatchImportJob* base)
-{
- FileImportJob * self;
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 269 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->_recurse;
-#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 4354 "BatchImport.c"
-}
-
-
-static void
-file_import_job_class_init (FileImportJobClass * klass)
-{
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->finalize = file_import_job_finalize;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_class_add_private (klass, sizeof (FileImportJobPrivate));
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_dest_identifier;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_source_identifier;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) file_import_job_real_is_directory;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_basename;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_path;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) file_import_job_real_set_associated;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) file_import_job_real_determine_file_size;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) file_import_job_real_prepare;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportJobClass *) klass)->recurse = (gboolean (*) (BatchImportJob *)) file_import_job_real_recurse;
-#line 4385 "BatchImport.c"
-}
-
-
-static void
-file_import_job_instance_init (FileImportJob * self)
-{
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv = FILE_IMPORT_JOB_GET_PRIVATE (self);
-#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->associated = NULL;
-#line 4396 "BatchImport.c"
-}
-
-
-static void
-file_import_job_finalize (BatchImportJob * obj)
-{
- FileImportJob * self;
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 216 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->file_or_dir);
-#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->priv->associated);
-#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BATCH_IMPORT_JOB_CLASS (file_import_job_parent_class)->finalize (obj);
-#line 4412 "BatchImport.c"
-}
-
-
-GType
-file_import_job_get_type (void)
-{
- static volatile gsize file_import_job_type_id__volatile = 0;
- if (g_once_init_enter (&file_import_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FileImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) file_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FileImportJob), 0, (GInstanceInitFunc) file_import_job_instance_init, NULL };
- GType file_import_job_type_id;
- file_import_job_type_id = g_type_register_static (TYPE_BATCH_IMPORT_JOB, "FileImportJob", &g_define_type_info, 0);
- g_once_init_leave (&file_import_job_type_id__volatile, file_import_job_type_id);
- }
- return file_import_job_type_id__volatile;
-}
-
-
-BatchImportRoll*
-batch_import_roll_construct (GType object_type)
-{
- BatchImportRoll* self = NULL;
- ImportID _tmp0_ = {0};
-#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (BatchImportRoll*) g_type_create_instance (object_type);
-#line 282 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_id_generate (&_tmp0_);
-#line 282 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->import_id = _tmp0_;
-#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 4443 "BatchImport.c"
-}
-
-
-BatchImportRoll*
-batch_import_roll_new (void)
-{
-#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return batch_import_roll_construct (TYPE_BATCH_IMPORT_ROLL);
-#line 4452 "BatchImport.c"
-}
-
-
-static void
-value_batch_import_roll_init (GValue* value)
-{
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 4461 "BatchImport.c"
-}
-
-
-static void
-value_batch_import_roll_free_value (GValue* value)
-{
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (value->data[0].v_pointer) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_roll_unref (value->data[0].v_pointer);
-#line 4472 "BatchImport.c"
- }
-}
-
-
-static void
-value_batch_import_roll_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (src_value->data[0].v_pointer) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = batch_import_roll_ref (src_value->data[0].v_pointer);
-#line 4485 "BatchImport.c"
- } else {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4489 "BatchImport.c"
- }
-}
-
-
-static gpointer
-value_batch_import_roll_peek_pointer (const GValue* value)
-{
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 4499 "BatchImport.c"
-}
-
-
-static gchar*
-value_batch_import_roll_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (collect_values[0].v_pointer) {
-#line 4511 "BatchImport.c"
- BatchImportRoll * object;
- object = collect_values[0].v_pointer;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4518 "BatchImport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.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 4522 "BatchImport.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = batch_import_roll_ref (object);
-#line 4526 "BatchImport.c"
- } else {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 4530 "BatchImport.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 4534 "BatchImport.c"
-}
-
-
-static gchar*
-value_batch_import_roll_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- BatchImportRoll ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!object_p) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4550 "BatchImport.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!value->data[0].v_pointer) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = NULL;
-#line 4556 "BatchImport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = value->data[0].v_pointer;
-#line 4560 "BatchImport.c"
- } else {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = batch_import_roll_ref (value->data[0].v_pointer);
-#line 4564 "BatchImport.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 4568 "BatchImport.c"
-}
-
-
-GParamSpec*
-param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecBatchImportRoll* spec;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_ROLL), NULL);
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return G_PARAM_SPEC (spec);
-#line 4588 "BatchImport.c"
-}
-
-
-gpointer
-value_get_batch_import_roll (const GValue* value)
-{
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL), NULL);
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 4599 "BatchImport.c"
-}
-
-
-void
-value_set_batch_import_roll (GValue* value,
- gpointer v_object)
-{
- BatchImportRoll * old;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL));
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_ROLL));
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_roll_ref (value->data[0].v_pointer);
-#line 4622 "BatchImport.c"
- } else {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 4626 "BatchImport.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_roll_unref (old);
-#line 4632 "BatchImport.c"
- }
-}
-
-
-void
-value_take_batch_import_roll (GValue* value,
- gpointer v_object)
-{
- BatchImportRoll * old;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL));
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_ROLL));
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 4654 "BatchImport.c"
- } else {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 4658 "BatchImport.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_roll_unref (old);
-#line 4664 "BatchImport.c"
- }
-}
-
-
-static void
-batch_import_roll_class_init (BatchImportRollClass * klass)
-{
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_roll_parent_class = g_type_class_peek_parent (klass);
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportRollClass *) klass)->finalize = batch_import_roll_finalize;
-#line 4676 "BatchImport.c"
-}
-
-
-static void
-batch_import_roll_instance_init (BatchImportRoll * self)
-{
- ViewCollection* _tmp0_;
-#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = view_collection_new ("BatchImportRoll generated events");
-#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->generated_events = _tmp0_;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ref_count = 1;
-#line 4690 "BatchImport.c"
-}
-
-
-static void
-batch_import_roll_finalize (BatchImportRoll * obj)
-{
- BatchImportRoll * self;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_ROLL, BatchImportRoll);
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_destroy (self);
-#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_collection_unref0 (self->generated_events);
-#line 4704 "BatchImport.c"
-}
-
-
-GType
-batch_import_roll_get_type (void)
-{
- static volatile gsize batch_import_roll_type_id__volatile = 0;
- if (g_once_init_enter (&batch_import_roll_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_batch_import_roll_init, value_batch_import_roll_free_value, value_batch_import_roll_copy_value, value_batch_import_roll_peek_pointer, "p", value_batch_import_roll_collect_value, "p", value_batch_import_roll_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (BatchImportRollClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_roll_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImportRoll), 0, (GInstanceInitFunc) batch_import_roll_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType batch_import_roll_type_id;
- batch_import_roll_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BatchImportRoll", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&batch_import_roll_type_id__volatile, batch_import_roll_type_id);
- }
- return batch_import_roll_type_id__volatile;
-}
-
-
-gpointer
-batch_import_roll_ref (gpointer instance)
-{
- BatchImportRoll * self;
- self = instance;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return instance;
-#line 4733 "BatchImport.c"
-}
-
-
-void
-batch_import_roll_unref (gpointer instance)
-{
- BatchImportRoll * self;
- self = instance;
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BATCH_IMPORT_ROLL_GET_CLASS (self)->finalize (self);
-#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4748 "BatchImport.c"
- }
-}
-
-
-BatchImportResult*
-batch_import_result_construct (GType object_type,
- BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- DuplicatedFile* duplicate_of,
- ImportResult _result_)
-{
- BatchImportResult* self = NULL;
- BatchImportJob* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- DuplicatedFile* _tmp4_;
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL);
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (src_identifier != NULL, NULL);
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (dest_identifier != NULL, NULL);
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((duplicate_of == NULL) || IS_DUPLICATED_FILE (duplicate_of), NULL);
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (BatchImportResult*) g_type_create_instance (object_type);
-#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _batch_import_job_ref0 (job);
-#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->job);
-#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->job = _tmp0_;
-#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (file);
-#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->file);
-#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file = _tmp1_;
-#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = g_strdup (src_identifier);
-#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->src_identifier);
-#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->src_identifier = _tmp2_;
-#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_strdup (dest_identifier);
-#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->dest_identifier);
-#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->dest_identifier = _tmp3_;
-#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _g_object_ref0 (duplicate_of);
-#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->duplicate_of);
-#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->duplicate_of = _tmp4_;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->result = _result_;
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 4814 "BatchImport.c"
-}
-
-
-BatchImportResult*
-batch_import_result_new (BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- DuplicatedFile* duplicate_of,
- ImportResult _result_)
-{
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return batch_import_result_construct (TYPE_BATCH_IMPORT_RESULT, job, file, src_identifier, dest_identifier, duplicate_of, _result_);
-#line 4828 "BatchImport.c"
-}
-
-
-BatchImportResult*
-batch_import_result_construct_from_error (GType object_type,
- BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- GError* err,
- ImportResult default_result)
-{
- BatchImportResult* self = NULL;
- BatchImportJob* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL);
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (src_identifier != NULL, NULL);
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (dest_identifier != NULL, NULL);
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (BatchImportResult*) g_type_create_instance (object_type);
-#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _batch_import_job_ref0 (job);
-#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->job);
-#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->job = _tmp0_;
-#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (file);
-#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->file);
-#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file = _tmp1_;
-#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = g_strdup (src_identifier);
-#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->src_identifier);
-#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->src_identifier = _tmp2_;
-#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_strdup (dest_identifier);
-#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->dest_identifier);
-#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->dest_identifier = _tmp3_;
-#line 317 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->result = import_result_convert_error (err, default_result);
-#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = err->message;
-#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->errmsg);
-#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->errmsg = _tmp5_;
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 4894 "BatchImport.c"
-}
-
-
-BatchImportResult*
-batch_import_result_new_from_error (BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- GError* err,
- ImportResult default_result)
-{
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return batch_import_result_construct_from_error (TYPE_BATCH_IMPORT_RESULT, job, file, src_identifier, dest_identifier, err, default_result);
-#line 4908 "BatchImport.c"
-}
-
-
-static void
-value_batch_import_result_init (GValue* value)
-{
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 4917 "BatchImport.c"
-}
-
-
-static void
-value_batch_import_result_free_value (GValue* value)
-{
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (value->data[0].v_pointer) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_result_unref (value->data[0].v_pointer);
-#line 4928 "BatchImport.c"
- }
-}
-
-
-static void
-value_batch_import_result_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (src_value->data[0].v_pointer) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = batch_import_result_ref (src_value->data[0].v_pointer);
-#line 4941 "BatchImport.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4945 "BatchImport.c"
- }
-}
-
-
-static gpointer
-value_batch_import_result_peek_pointer (const GValue* value)
-{
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 4955 "BatchImport.c"
-}
-
-
-static gchar*
-value_batch_import_result_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (collect_values[0].v_pointer) {
-#line 4967 "BatchImport.c"
- BatchImportResult * object;
- object = collect_values[0].v_pointer;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4974 "BatchImport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.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 4978 "BatchImport.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = batch_import_result_ref (object);
-#line 4982 "BatchImport.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 4986 "BatchImport.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 4990 "BatchImport.c"
-}
-
-
-static gchar*
-value_batch_import_result_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- BatchImportResult ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!object_p) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5006 "BatchImport.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!value->data[0].v_pointer) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = NULL;
-#line 5012 "BatchImport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = value->data[0].v_pointer;
-#line 5016 "BatchImport.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = batch_import_result_ref (value->data[0].v_pointer);
-#line 5020 "BatchImport.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 5024 "BatchImport.c"
-}
-
-
-GParamSpec*
-param_spec_batch_import_result (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecBatchImportResult* spec;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_RESULT), NULL);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return G_PARAM_SPEC (spec);
-#line 5044 "BatchImport.c"
-}
-
-
-gpointer
-value_get_batch_import_result (const GValue* value)
-{
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT), NULL);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 5055 "BatchImport.c"
-}
-
-
-void
-value_set_batch_import_result (GValue* value,
- gpointer v_object)
-{
- BatchImportResult * old;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT));
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_RESULT));
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_result_ref (value->data[0].v_pointer);
-#line 5078 "BatchImport.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 5082 "BatchImport.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_result_unref (old);
-#line 5088 "BatchImport.c"
- }
-}
-
-
-void
-value_take_batch_import_result (GValue* value,
- gpointer v_object)
-{
- BatchImportResult * old;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT));
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_RESULT));
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 5110 "BatchImport.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 5114 "BatchImport.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_result_unref (old);
-#line 5120 "BatchImport.c"
- }
-}
-
-
-static void
-batch_import_result_class_init (BatchImportResultClass * klass)
-{
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_result_parent_class = g_type_class_peek_parent (klass);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BatchImportResultClass *) klass)->finalize = batch_import_result_finalize;
-#line 5132 "BatchImport.c"
-}
-
-
-static void
-batch_import_result_instance_init (BatchImportResult * self)
-{
-#line 298 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->errmsg = NULL;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ref_count = 1;
-#line 5143 "BatchImport.c"
-}
-
-
-static void
-batch_import_result_finalize (BatchImportResult * obj)
-{
- BatchImportResult * self;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_RESULT, BatchImportResult);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_destroy (self);
-#line 293 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->job);
-#line 294 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->file);
-#line 295 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->src_identifier);
-#line 296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->dest_identifier);
-#line 298 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->errmsg);
-#line 299 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->duplicate_of);
-#line 5167 "BatchImport.c"
-}
-
-
-GType
-batch_import_result_get_type (void)
-{
- static volatile gsize batch_import_result_type_id__volatile = 0;
- if (g_once_init_enter (&batch_import_result_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_batch_import_result_init, value_batch_import_result_free_value, value_batch_import_result_copy_value, value_batch_import_result_peek_pointer, "p", value_batch_import_result_collect_value, "p", value_batch_import_result_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (BatchImportResultClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_result_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImportResult), 0, (GInstanceInitFunc) batch_import_result_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType batch_import_result_type_id;
- batch_import_result_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BatchImportResult", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&batch_import_result_type_id__volatile, batch_import_result_type_id);
- }
- return batch_import_result_type_id__volatile;
-}
-
-
-gpointer
-batch_import_result_ref (gpointer instance)
-{
- BatchImportResult * self;
- self = instance;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return instance;
-#line 5196 "BatchImport.c"
-}
-
-
-void
-batch_import_result_unref (gpointer instance)
-{
- BatchImportResult * self;
- self = instance;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BATCH_IMPORT_RESULT_GET_CLASS (self)->finalize (self);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 5211 "BatchImport.c"
- }
-}
-
-
-ImportManifest*
-import_manifest_construct (GType object_type,
- GeeList* prefailed,
- GeeList* pre_already_imported)
-{
- ImportManifest* self = NULL;
- GTimer* _tmp0_;
-#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((prefailed == NULL) || GEE_IS_LIST (prefailed), NULL);
-#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((pre_already_imported == NULL) || GEE_IS_LIST (pre_already_imported), NULL);
-#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (ImportManifest*) g_type_create_instance (object_type);
-#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = g_timer_new ();
-#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_timer_destroy0 (self->timer);
-#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->timer = _tmp0_;
-#line 339 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prefailed != NULL) {
-#line 5237 "BatchImport.c"
- {
- GeeList* _job_list = NULL;
- GeeList* _tmp1_;
- gint _job_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _job_index = 0;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (prefailed);
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_list = _tmp1_;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _job_list;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_size = _tmp4_;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_index = -1;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 5262 "BatchImport.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- BatchImportJob* job = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- BatchImportResult* batch_result = NULL;
- BatchImportJob* _tmp11_;
- BatchImportJob* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- BatchImportJob* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- BatchImportResult* _tmp18_;
- BatchImportResult* _tmp19_;
- BatchImportResult* _tmp20_;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _job_index;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_index = _tmp5_ + 1;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _job_index;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _job_size;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5293 "BatchImport.c"
- }
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _job_list;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _job_index;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = (BatchImportJob*) _tmp10_;
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = job;
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = job;
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = batch_import_job_get_source_identifier (_tmp12_);
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_;
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = job;
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = batch_import_job_get_dest_identifier (_tmp15_);
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_;
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = batch_import_result_new (_tmp11_, NULL, _tmp14_, _tmp17_, NULL, IMPORT_RESULT_FILE_ERROR);
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_;
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp17_);
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp14_);
-#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_result = _tmp19_;
-#line 345 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = batch_result;
-#line 345 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (self, _tmp20_);
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (batch_result);
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (job);
-#line 5335 "BatchImport.c"
- }
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_job_list);
-#line 5339 "BatchImport.c"
- }
- }
-#line 349 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (pre_already_imported != NULL) {
-#line 5344 "BatchImport.c"
- {
- GeeList* _job_list = NULL;
- GeeList* _tmp21_;
- gint _job_size = 0;
- GeeList* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gint _job_index = 0;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _g_object_ref0 (pre_already_imported);
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_list = _tmp21_;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = _job_list;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _tmp23_;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_size = _tmp24_;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_index = -1;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 5369 "BatchImport.c"
- gint _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
- BatchImportJob* job = NULL;
- GeeList* _tmp28_;
- gint _tmp29_;
- gpointer _tmp30_;
- BatchImportResult* batch_result = NULL;
- BatchImportJob* _tmp31_;
- BatchImportJob* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- GFile* _tmp35_;
- GFile* _tmp36_;
- BatchImportJob* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- BatchImportJob* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- BatchImportJob* _tmp43_;
- DuplicatedFile* _tmp44_;
- DuplicatedFile* _tmp45_;
- BatchImportResult* _tmp46_;
- BatchImportResult* _tmp47_;
- BatchImportResult* _tmp48_;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _job_index;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_index = _tmp25_ + 1;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = _job_index;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _job_size;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp26_ < _tmp27_)) {
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5408 "BatchImport.c"
- }
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _job_list;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _job_index;
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = gee_list_get (_tmp28_, _tmp29_);
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = (BatchImportJob*) _tmp30_;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = job;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = job;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = batch_import_job_get_basename (_tmp32_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _tmp33_;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = g_file_new_for_path (_tmp34_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = _tmp35_;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = job;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = batch_import_job_get_source_identifier (_tmp37_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = _tmp38_;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = job;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = batch_import_job_get_dest_identifier (_tmp40_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = _tmp41_;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = job;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = batch_import_job_get_duplicated_file (_tmp43_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = _tmp44_;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = batch_import_result_new (_tmp31_, _tmp36_, _tmp39_, _tmp42_, _tmp45_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = _tmp46_;
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp45_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp42_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp39_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp36_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp34_);
-#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_result = _tmp47_;
-#line 356 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = batch_result;
-#line 356 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (self, _tmp48_);
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (batch_result);
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (job);
-#line 5472 "BatchImport.c"
- }
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_job_list);
-#line 5476 "BatchImport.c"
- }
- }
-#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 5481 "BatchImport.c"
-}
-
-
-ImportManifest*
-import_manifest_new (GeeList* prefailed,
- GeeList* pre_already_imported)
-{
-#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return import_manifest_construct (TYPE_IMPORT_MANIFEST, prefailed, pre_already_imported);
-#line 5491 "BatchImport.c"
-}
-
-
-void
-import_manifest_add_result (ImportManifest* self,
- BatchImportResult* batch_result)
-{
- gboolean reported = FALSE;
- ImportResult _tmp0_;
- gboolean _tmp13_;
-#line 361 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_IMPORT_MANIFEST (self));
-#line 361 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT_RESULT (batch_result));
-#line 362 "/home/jens/Source/shotwell/src/BatchImport.vala"
- reported = TRUE;
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = batch_result->result;
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (_tmp0_) {
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_SUCCESS:
-#line 5514 "BatchImport.c"
- {
- GeeList* _tmp1_;
-#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->success;
-#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 366 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5523 "BatchImport.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_USER_ABORT:
-#line 5527 "BatchImport.c"
- {
- gboolean _tmp2_ = FALSE;
- GFile* _tmp3_;
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = batch_result->file;
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_ != NULL) {
-#line 5535 "BatchImport.c"
- GFile* _tmp4_;
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = batch_result->file;
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = !query_is_directory (_tmp4_);
-#line 5541 "BatchImport.c"
- } else {
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = FALSE;
-#line 5545 "BatchImport.c"
- }
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_) {
-#line 5549 "BatchImport.c"
- GeeList* _tmp5_;
-#line 370 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->aborted;
-#line 370 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 5555 "BatchImport.c"
- } else {
-#line 372 "/home/jens/Source/shotwell/src/BatchImport.vala"
- reported = FALSE;
-#line 5559 "BatchImport.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5563 "BatchImport.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_UNSUPPORTED_FORMAT:
-#line 5567 "BatchImport.c"
- {
- GeeList* _tmp6_;
-#line 376 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->skipped_photos;
-#line 376 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5576 "BatchImport.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_NOT_A_FILE:
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_NOT_AN_IMAGE:
-#line 5582 "BatchImport.c"
- {
- GeeList* _tmp7_;
-#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = self->skipped_files;
-#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 382 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5591 "BatchImport.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_PHOTO_EXISTS:
-#line 5595 "BatchImport.c"
- {
- GeeList* _tmp8_;
-#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->already_imported;
-#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 386 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5604 "BatchImport.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_CAMERA_ERROR:
-#line 5608 "BatchImport.c"
- {
- GeeList* _tmp9_;
-#line 389 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->camera_failed;
-#line 389 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5617 "BatchImport.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_FILE_WRITE_ERROR:
-#line 5621 "BatchImport.c"
- {
- GeeList* _tmp10_;
-#line 393 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->write_failed;
-#line 393 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 394 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5630 "BatchImport.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE:
-#line 5634 "BatchImport.c"
- {
- GeeList* _tmp11_;
-#line 397 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = self->corrupt_files;
-#line 397 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5643 "BatchImport.c"
- }
- default:
- {
- GeeList* _tmp12_;
-#line 401 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->failed;
-#line 401 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 5654 "BatchImport.c"
- }
- }
-#line 405 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = reported;
-#line 405 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp13_) {
-#line 5661 "BatchImport.c"
- GeeList* _tmp14_;
-#line 406 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->all;
-#line 406 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
-#line 5667 "BatchImport.c"
- }
-}
-
-
-static void
-value_import_manifest_init (GValue* value)
-{
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 5677 "BatchImport.c"
-}
-
-
-static void
-value_import_manifest_free_value (GValue* value)
-{
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (value->data[0].v_pointer) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_unref (value->data[0].v_pointer);
-#line 5688 "BatchImport.c"
- }
-}
-
-
-static void
-value_import_manifest_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (src_value->data[0].v_pointer) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = import_manifest_ref (src_value->data[0].v_pointer);
-#line 5701 "BatchImport.c"
- } else {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 5705 "BatchImport.c"
- }
-}
-
-
-static gpointer
-value_import_manifest_peek_pointer (const GValue* value)
-{
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 5715 "BatchImport.c"
-}
-
-
-static gchar*
-value_import_manifest_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (collect_values[0].v_pointer) {
-#line 5727 "BatchImport.c"
- ImportManifest * object;
- object = collect_values[0].v_pointer;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5734 "BatchImport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.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 5738 "BatchImport.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = import_manifest_ref (object);
-#line 5742 "BatchImport.c"
- } else {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 5746 "BatchImport.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 5750 "BatchImport.c"
-}
-
-
-static gchar*
-value_import_manifest_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- ImportManifest ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!object_p) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5766 "BatchImport.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!value->data[0].v_pointer) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = NULL;
-#line 5772 "BatchImport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = value->data[0].v_pointer;
-#line 5776 "BatchImport.c"
- } else {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = import_manifest_ref (value->data[0].v_pointer);
-#line 5780 "BatchImport.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 5784 "BatchImport.c"
-}
-
-
-GParamSpec*
-param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecImportManifest* spec;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_IMPORT_MANIFEST), NULL);
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return G_PARAM_SPEC (spec);
-#line 5804 "BatchImport.c"
-}
-
-
-gpointer
-value_get_import_manifest (const GValue* value)
-{
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST), NULL);
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 5815 "BatchImport.c"
-}
-
-
-void
-value_set_import_manifest (GValue* value,
- gpointer v_object)
-{
- ImportManifest * old;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST));
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMPORT_MANIFEST));
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_ref (value->data[0].v_pointer);
-#line 5838 "BatchImport.c"
- } else {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 5842 "BatchImport.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_unref (old);
-#line 5848 "BatchImport.c"
- }
-}
-
-
-void
-value_take_import_manifest (GValue* value,
- gpointer v_object)
-{
- ImportManifest * old;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST));
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMPORT_MANIFEST));
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 5870 "BatchImport.c"
- } else {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 5874 "BatchImport.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_unref (old);
-#line 5880 "BatchImport.c"
- }
-}
-
-
-static void
-import_manifest_class_init (ImportManifestClass * klass)
-{
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_parent_class = g_type_class_peek_parent (klass);
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((ImportManifestClass *) klass)->finalize = import_manifest_finalize;
-#line 5892 "BatchImport.c"
-}
-
-
-static void
-import_manifest_instance_init (ImportManifest * self)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
- GeeArrayList* _tmp4_;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
- GeeArrayList* _tmp7_;
- GeeArrayList* _tmp8_;
- GeeArrayList* _tmp9_;
- GeeArrayList* _tmp10_;
-#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->imported = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->success = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList);
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->camera_failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
-#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList);
-#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->write_failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList);
-#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->skipped_photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList);
-#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->skipped_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList);
-#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->aborted = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_LIST, GeeList);
-#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->already_imported = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_LIST, GeeList);
-#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->corrupt_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_LIST, GeeList);
-#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->all = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_LIST, GeeList);
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ref_count = 1;
-#line 5956 "BatchImport.c"
-}
-
-
-static void
-import_manifest_finalize (ImportManifest * obj)
-{
- ImportManifest * self;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_MANIFEST, ImportManifest);
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_destroy (self);
-#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->imported);
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->success);
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->camera_failed);
-#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->failed);
-#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->write_failed);
-#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->skipped_photos);
-#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->skipped_files);
-#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->aborted);
-#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->already_imported);
-#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->corrupt_files);
-#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->all);
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_timer_destroy0 (self->timer);
-#line 5992 "BatchImport.c"
-}
-
-
-GType
-import_manifest_get_type (void)
-{
- static volatile gsize import_manifest_type_id__volatile = 0;
- if (g_once_init_enter (&import_manifest_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_import_manifest_init, value_import_manifest_free_value, value_import_manifest_copy_value, value_import_manifest_peek_pointer, "p", value_import_manifest_collect_value, "p", value_import_manifest_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ImportManifestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_manifest_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportManifest), 0, (GInstanceInitFunc) import_manifest_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType import_manifest_type_id;
- import_manifest_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ImportManifest", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&import_manifest_type_id__volatile, import_manifest_type_id);
- }
- return import_manifest_type_id__volatile;
-}
-
-
-gpointer
-import_manifest_ref (gpointer instance)
-{
- ImportManifest * self;
- self = instance;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return instance;
-#line 6021 "BatchImport.c"
-}
-
-
-void
-import_manifest_unref (gpointer instance)
-{
- ImportManifest * self;
- self = instance;
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- IMPORT_MANIFEST_GET_CLASS (self)->finalize (self);
-#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 6036 "BatchImport.c"
- }
-}
-
-
-static void
-_batch_import_user_halt_application_exiting (Application* _sender,
- gboolean panicked,
- gpointer self)
-{
-#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_user_halt ((BatchImport*) self);
-#line 6048 "BatchImport.c"
-}
-
-
-static gpointer
-_batch_import_roll_ref0 (gpointer self)
-{
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? batch_import_roll_ref (self) : NULL;
-#line 6057 "BatchImport.c"
-}
-
-
-static guint
-_file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = file_hash ((GFile*) v);
-#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6069 "BatchImport.c"
-}
-
-
-static gboolean
-_file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = file_equal ((GFile*) a, (GFile*) b);
-#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6082 "BatchImport.c"
-}
-
-
-static gboolean
-_batch_import_display_imported_timer_gsource_func (gpointer self)
-{
- gboolean result;
- result = batch_import_display_imported_timer ((BatchImport*) self);
-#line 517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6093 "BatchImport.c"
-}
-
-
-BatchImport*
-batch_import_construct (GType object_type,
- GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest)
-{
- BatchImport * self = NULL;
- GeeIterable* _tmp0_;
- gchar* _tmp1_;
- ImportManifest* _tmp2_;
- GCancellable* _tmp3_ = NULL;
- GCancellable* _tmp6_;
- BatchImportRoll* _tmp7_ = NULL;
- BatchImportRoll* _tmp10_;
- Application* _tmp27_;
- Application* _tmp28_;
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (jobs), NULL);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((prefailed == NULL) || GEE_IS_ARRAY_LIST (prefailed), NULL);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((pre_already_imported == NULL) || GEE_IS_ARRAY_LIST (pre_already_imported), NULL);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((import_roll == NULL) || IS_BATCH_IMPORT_ROLL (import_roll), NULL);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((skip_manifest == NULL) || IS_IMPORT_MANIFEST (skip_manifest), NULL);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (BatchImport*) g_object_new (object_type, NULL);
-#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _g_object_ref0 (jobs);
-#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->jobs);
-#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->jobs = _tmp0_;
-#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_strdup (name);
-#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->priv->name);
-#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->name = _tmp1_;
-#line 501 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->reporter = reporter;
-#line 501 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->reporter_target = reporter_target;
-#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = import_manifest_new (G_TYPE_CHECK_INSTANCE_CAST (prefailed, GEE_TYPE_LIST, GeeList), G_TYPE_CHECK_INSTANCE_CAST (pre_already_imported, GEE_TYPE_LIST, GeeList));
-#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_manifest_unref0 (self->priv->manifest);
-#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->manifest = _tmp2_;
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (cancellable != NULL) {
-#line 6159 "BatchImport.c"
- GCancellable* _tmp4_;
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _g_object_ref0 (cancellable);
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp3_);
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp4_;
-#line 6167 "BatchImport.c"
- } else {
- GCancellable* _tmp5_;
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_cancellable_new ();
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp3_);
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp5_;
-#line 6176 "BatchImport.c"
- }
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _g_object_ref0 (_tmp3_);
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->cancellable = _tmp6_;
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (import_roll != NULL) {
-#line 6186 "BatchImport.c"
- BatchImportRoll* _tmp8_;
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _batch_import_roll_ref0 (import_roll);
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_roll_unref0 (_tmp7_);
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp8_;
-#line 6194 "BatchImport.c"
- } else {
- BatchImportRoll* _tmp9_;
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = batch_import_roll_new ();
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_roll_unref0 (_tmp7_);
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp9_;
-#line 6203 "BatchImport.c"
- }
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _batch_import_roll_ref0 (_tmp7_);
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_roll_unref0 (self->priv->import_roll);
-#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->import_roll = _tmp10_;
-#line 506 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (skip_manifest != NULL) {
-#line 6213 "BatchImport.c"
- GeeHashSet* _tmp11_;
-#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL);
-#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->skipset);
-#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->skipset = _tmp11_;
-#line 6221 "BatchImport.c"
- {
- GeeList* _source_list = NULL;
- GeeList* _tmp12_;
- GeeList* _tmp13_;
- gint _source_size = 0;
- GeeList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _source_index = 0;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = skip_manifest->imported;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _g_object_ref0 (_tmp12_);
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_list = _tmp13_;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _source_list;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_size = _tmp16_;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_index = -1;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 6249 "BatchImport.c"
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- MediaSource* source = NULL;
- GeeList* _tmp20_;
- gint _tmp21_;
- gpointer _tmp22_;
- GeeHashSet* _tmp23_;
- MediaSource* _tmp24_;
- GFile* _tmp25_;
- GFile* _tmp26_;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _source_index;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_index = _tmp17_ + 1;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _source_index;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _source_size;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp18_ < _tmp19_)) {
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 6273 "BatchImport.c"
- }
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _source_list;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _source_index;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = gee_list_get (_tmp20_, _tmp21_);
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- source = (MediaSource*) _tmp22_;
-#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = self->priv->skipset;
-#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = source;
-#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = media_source_get_file (_tmp24_);
-#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = _tmp25_;
-#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_);
-#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp26_);
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (source);
-#line 6297 "BatchImport.c"
- }
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_source_list);
-#line 6301 "BatchImport.c"
- }
- }
-#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = application_get_instance ();
-#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _tmp27_;
-#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_connect_object (_tmp28_, "exiting", (GCallback) _batch_import_user_halt_application_exiting, self, 0);
-#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _application_unref0 (_tmp28_);
-#line 517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC, _batch_import_display_imported_timer_gsource_func, g_object_ref (self), g_object_unref);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_roll_unref0 (_tmp7_);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp3_);
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 6320 "BatchImport.c"
-}
-
-
-BatchImport*
-batch_import_new (GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest)
-{
-#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return batch_import_construct (TYPE_BATCH_IMPORT, jobs, name, reporter, reporter_target, prefailed, pre_already_imported, cancellable, import_roll, skip_manifest);
-#line 6337 "BatchImport.c"
-}
-
-
-gchar*
-batch_import_get_name (BatchImport* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 527 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (self), NULL);
-#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->name;
-#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp1_;
-#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6357 "BatchImport.c"
-}
-
-
-void
-batch_import_user_halt (BatchImport* self)
-{
- GCancellable* _tmp0_;
-#line 531 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->cancellable;
-#line 532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_cancellable_cancel (_tmp0_);
-#line 6371 "BatchImport.c"
-}
-
-
-gboolean
-batch_import_get_untrash_duplicates (BatchImport* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 535 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->untrash_duplicates;
-#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6388 "BatchImport.c"
-}
-
-
-void
-batch_import_set_untrash_duplicates (BatchImport* self,
- gboolean untrash_duplicates)
-{
-#line 539 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 540 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->untrash_duplicates = untrash_duplicates;
-#line 6400 "BatchImport.c"
-}
-
-
-gboolean
-batch_import_get_mark_duplicates_online (BatchImport* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 543 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->mark_duplicates_online;
-#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6417 "BatchImport.c"
-}
-
-
-void
-batch_import_set_mark_duplicates_online (BatchImport* self,
- gboolean mark_duplicates_online)
-{
-#line 547 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 548 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->mark_duplicates_online = mark_duplicates_online;
-#line 6429 "BatchImport.c"
-}
-
-
-static void
-batch_import_log_status (BatchImport* self,
- const gchar* where)
-{
-#line 551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (where != NULL);
-#line 6441 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_report_failure (BatchImport* self,
- BatchImportResult* import_result)
-{
- gboolean result = FALSE;
- gboolean proceed = FALSE;
- ImportManifest* _tmp0_;
- ImportResult _tmp1_;
- gboolean _tmp14_ = FALSE;
- ImportResult _tmp15_;
- GError * _inner_error_ = NULL;
-#line 561 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 561 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (import_result), FALSE);
-#line 562 "/home/jens/Source/shotwell/src/BatchImport.vala"
- proceed = TRUE;
-#line 564 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->manifest;
-#line 564 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (_tmp0_, import_result);
-#line 566 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = import_result->result;
-#line 566 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != IMPORT_RESULT_SUCCESS) {
-#line 6470 "BatchImport.c"
- gboolean _tmp2_ = FALSE;
- GFile* _tmp3_;
-#line 567 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL], 0, import_result);
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = import_result->file;
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_ != NULL) {
-#line 6479 "BatchImport.c"
- ImportResult _tmp4_;
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = import_result->result;
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = !import_result_is_abort (_tmp4_);
-#line 6485 "BatchImport.c"
- } else {
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = FALSE;
-#line 6489 "BatchImport.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_) {
-#line 6493 "BatchImport.c"
- guint64 filesize = 0ULL;
- guint64 _tmp13_;
-#line 570 "/home/jens/Source/shotwell/src/BatchImport.vala"
- filesize = (guint64) 0;
-#line 6498 "BatchImport.c"
- {
- guint64 _tmp5_ = 0ULL;
- GFile* _tmp6_;
-#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = import_result->file;
-#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = query_total_file_size (_tmp6_, NULL, &_inner_error_);
-#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6508 "BatchImport.c"
- goto __catch423_g_error;
- }
-#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
- filesize = _tmp5_;
-#line 6513 "BatchImport.c"
- }
- goto __finally423;
- __catch423_g_error:
- {
- GError* err = NULL;
- GFile* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GError* _tmp10_;
- const gchar* _tmp11_;
-#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = import_result->file;
-#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = g_file_get_path (_tmp7_);
-#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_;
-#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = err;
-#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_->message;
-#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:575: Unable to query file size of %s: %s", _tmp9_, _tmp11_);
-#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp9_);
-#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 6544 "BatchImport.c"
- }
- __finally423:
-#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6549 "BatchImport.c"
- gboolean _tmp12_ = FALSE;
-#line 571 "/home/jens/Source/shotwell/src/BatchImport.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 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return _tmp12_;
-#line 6557 "BatchImport.c"
- }
-#line 579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = filesize;
-#line 579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (self, _tmp13_);
-#line 6563 "BatchImport.c"
- }
- }
-#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = import_result->result;
-#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (import_result_is_nonuser_abort (_tmp15_)) {
-#line 6570 "BatchImport.c"
- gboolean _tmp16_;
-#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = proceed;
-#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp16_;
-#line 6576 "BatchImport.c"
- } else {
-#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = FALSE;
-#line 6580 "BatchImport.c"
- }
-#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp14_) {
-#line 6584 "BatchImport.c"
- ImportResult _tmp17_;
- const gchar* _tmp18_;
-#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = import_result->result;
-#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = import_result->errmsg;
-#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_FATAL_ERROR_SIGNAL], 0, _tmp17_, _tmp18_);
-#line 586 "/home/jens/Source/shotwell/src/BatchImport.vala"
- proceed = FALSE;
-#line 6595 "BatchImport.c"
- }
-#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = proceed;
-#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6601 "BatchImport.c"
-}
-
-
-static void
-batch_import_report_progress (BatchImport* self,
- guint64 increment_of_progress)
-{
- guint64 _tmp0_;
- guint64 _tmp1_;
-#line 592 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 593 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed_bytes;
-#line 593 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->completed_bytes = _tmp0_ + increment_of_progress;
-#line 597 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->priv->completed_bytes;
-#line 597 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ == ((guint64) 0)) {
-#line 6621 "BatchImport.c"
- gulong now = 0UL;
- gulong _tmp2_;
- gulong _tmp3_;
-#line 598 "/home/jens/Source/shotwell/src/BatchImport.vala"
- now = now_ms ();
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = now;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->last_preparing_ms;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp2_ - _tmp3_) > ((gulong) 250)) {
-#line 6633 "BatchImport.c"
- gulong _tmp4_;
-#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = now;
-#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->last_preparing_ms = _tmp4_;
-#line 601 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_PREPARING_SIGNAL], 0);
-#line 6641 "BatchImport.c"
- }
- } else {
-#line 603 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (increment_of_progress > ((guint64) 0)) {
-#line 6646 "BatchImport.c"
- gulong now = 0UL;
- gulong _tmp5_;
- gulong _tmp6_;
-#line 604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- now = now_ms ();
-#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = now;
-#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->last_preparing_ms;
-#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp5_ - _tmp6_) > ((gulong) 250)) {
-#line 6658 "BatchImport.c"
- gulong _tmp7_;
- guint64 _tmp8_;
- guint64 _tmp9_;
-#line 606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = now;
-#line 606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->last_preparing_ms = _tmp7_;
-#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->priv->completed_bytes;
-#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->priv->total_bytes;
-#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_PROGRESS_SIGNAL], 0, _tmp8_, _tmp9_);
-#line 6672 "BatchImport.c"
- }
- }
- }
-}
-
-
-static gboolean
-batch_import_report_failures (BatchImport* self,
- BackgroundImportJob* background_job)
-{
- gboolean result = FALSE;
- gboolean proceed = FALSE;
-#line 612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BACKGROUND_IMPORT_JOB (background_job), FALSE);
-#line 613 "/home/jens/Source/shotwell/src/BatchImport.vala"
- proceed = TRUE;
-#line 6691 "BatchImport.c"
- {
- GeeList* _import_result_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _import_result_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _import_result_index = 0;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = background_job->failed;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_result_list = _tmp1_;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _import_result_list;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_result_size = _tmp4_;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_result_index = -1;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 6719 "BatchImport.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- BatchImportResult* import_result = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- BatchImportResult* _tmp11_;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _import_result_index;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_result_index = _tmp5_ + 1;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _import_result_index;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _import_result_size;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 6740 "BatchImport.c"
- }
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _import_result_list;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _import_result_index;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_result = (BatchImportResult*) _tmp10_;
-#line 616 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = import_result;
-#line 616 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!batch_import_report_failure (self, _tmp11_)) {
-#line 617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- proceed = FALSE;
-#line 6756 "BatchImport.c"
- }
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (import_result);
-#line 6760 "BatchImport.c"
- }
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_import_result_list);
-#line 6764 "BatchImport.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = proceed;
-#line 620 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6770 "BatchImport.c"
-}
-
-
-static void
-batch_import_report_completed (BatchImport* self,
- const gchar* where)
-{
- gboolean _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- ImportManifest* _tmp3_;
- GTimer* _tmp4_;
- gdouble _tmp5_;
- BatchImportImportReporter _tmp6_;
- void* _tmp6__target;
- ImportManifest* _tmp10_;
- BatchImportRoll* _tmp11_;
-#line 623 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 623 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (where != NULL);
-#line 624 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 624 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_) {
-#line 625 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_error ("BatchImport.vala:625: Attempted to complete already-completed import: " \
-"%s", where);
-#line 6798 "BatchImport.c"
- }
-#line 627 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->completed = TRUE;
-#line 629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_flush_ready_sources (self);
-#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_strdup_printf ("Import completed: %s", where);
-#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _tmp1_;
-#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, _tmp2_);
-#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp2_);
-#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->manifest;
-#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_->timer;
-#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_timer_elapsed (_tmp4_, NULL);
-#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:632: Import complete after %f", _tmp5_);
-#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->reporter;
-#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6__target = self->priv->reporter_target;
-#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp6_ != NULL) {
-#line 6826 "BatchImport.c"
- BatchImportImportReporter _tmp7_;
- void* _tmp7__target;
- ImportManifest* _tmp8_;
- BatchImportRoll* _tmp9_;
-#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = self->priv->reporter;
-#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7__target = self->priv->reporter_target;
-#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->priv->manifest;
-#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->priv->import_roll;
-#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ (_tmp8_, _tmp9_, _tmp7__target);
-#line 6841 "BatchImport.c"
- }
-#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->priv->manifest;
-#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = self->priv->import_roll;
-#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL], 0, _tmp10_, _tmp11_);
-#line 6849 "BatchImport.c"
-}
-
-
-static void
-batch_import_file_import_complete (BatchImport* self)
-{
- gint _tmp0_;
- gint _tmp1_;
- gboolean _tmp4_ = FALSE;
- gint _tmp5_;
-#line 642 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file_imports_completed;
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file_imports_completed = _tmp0_ + 1;
-#line 645 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->priv->file_imports_to_perform;
-#line 645 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != -1) {
-#line 6870 "BatchImport.c"
- gint _tmp2_;
- gint _tmp3_;
-#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->priv->file_imports_completed;
-#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->file_imports_to_perform;
-#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp2_ <= _tmp3_, "file_imports_completed <= file_imports_to_perform");
-#line 6879 "BatchImport.c"
- }
-#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->file_imports_to_perform;
-#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp5_ != -1) {
-#line 6885 "BatchImport.c"
- gint _tmp6_;
- gint _tmp7_;
-#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->file_imports_completed;
-#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = self->priv->file_imports_to_perform;
-#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp6_ == _tmp7_;
-#line 6894 "BatchImport.c"
- } else {
-#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = FALSE;
-#line 6898 "BatchImport.c"
- }
-#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp4_) {
-#line 651 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_completed (self, "completed preparing files, all outstanding imports completed");
-#line 6904 "BatchImport.c"
- }
-}
-
-
-static void
-_batch_import_on_work_sniffed_out_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_work_sniffed_out ((BatchImport*) self, job);
-#line 6915 "BatchImport.c"
-}
-
-
-static void
-_batch_import_on_sniffer_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_sniffer_cancelled ((BatchImport*) self, job);
-#line 6925 "BatchImport.c"
-}
-
-
-static gboolean
-_batch_import_on_sniffer_working_gsource_func (gpointer self)
-{
- gboolean result;
- result = batch_import_on_sniffer_working ((BatchImport*) self);
-#line 663 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6936 "BatchImport.c"
-}
-
-
-void
-batch_import_schedule (BatchImport* self)
-{
- gboolean _tmp0_;
- Workers* _tmp1_;
- GeeIterable* _tmp2_;
- GCancellable* _tmp3_;
- GeeHashSet* _tmp4_;
- WorkSniffer* _tmp5_;
- WorkSniffer* _tmp6_;
-#line 654 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 655 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->scheduled;
-#line 655 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp0_ == FALSE, "scheduled == false");
-#line 656 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->scheduled = TRUE;
-#line 658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_STARTING_SIGNAL], 0);
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = batch_import_feeder_workers;
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->priv->jobs;
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->cancellable;
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->priv->skipset;
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = work_sniffer_new (self, _tmp2_, _batch_import_on_work_sniffed_out_completion_callback, self, _tmp3_, _batch_import_on_sniffer_cancelled_cancellation_callback, self, _tmp4_);
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_;
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- workers_enqueue (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (_tmp6_);
-#line 663 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->throbber_id = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) BATCH_IMPORT_WORK_SNIFFER_THROBBER_MSEC, _batch_import_on_sniffer_working_gsource_func, g_object_ref (self), g_object_unref);
-#line 6978 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_on_sniffer_working (BatchImport* self)
-{
- gboolean result = FALSE;
-#line 670 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 671 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (self, (guint64) 0);
-#line 673 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = TRUE;
-#line 673 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 6994 "BatchImport.c"
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? background_job_ref (self) : NULL;
-#line 7003 "BatchImport.c"
-}
-
-
-static void
-_batch_import_on_file_prepared_notification_callback (BackgroundJob* job,
- NotificationObject* user,
- gpointer self)
-{
-#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_file_prepared ((BatchImport*) self, job, user);
-#line 7014 "BatchImport.c"
-}
-
-
-static void
-_batch_import_on_files_prepared_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_files_prepared ((BatchImport*) self, job);
-#line 7024 "BatchImport.c"
-}
-
-
-static void
-_batch_import_on_file_prepare_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_file_prepare_cancelled ((BatchImport*) self, job);
-#line 7034 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_work_sniffed_out (BatchImport* self,
- BackgroundJob* j)
-{
- gboolean _tmp0_;
- WorkSniffer* sniffer = NULL;
- WorkSniffer* _tmp1_;
- gboolean _tmp2_ = FALSE;
- WorkSniffer* _tmp3_;
- WorkSniffer* _tmp8_;
- guint64 _tmp9_;
- PrepareFilesJob* prepare_files_job = NULL;
- WorkSniffer* _tmp10_;
- GeeList* _tmp11_;
- GCancellable* _tmp12_;
- PrepareFilesJob* _tmp13_;
- Workers* _tmp14_;
- PrepareFilesJob* _tmp15_;
- guint _tmp16_;
-#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 677 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 677 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (!_tmp0_, "!completed");
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_WORK_SNIFFER, WorkSniffer));
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sniffer = _tmp1_;
-#line 681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, "on_work_sniffed_out");
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = sniffer;
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob))) {
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = TRUE;
-#line 7077 "BatchImport.c"
- } else {
- WorkSniffer* _tmp4_;
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = sniffer;
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->files_to_prepare;
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _tmp7_ == 0;
-#line 7093 "BatchImport.c"
- }
-#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_) {
-#line 684 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_completed (self, "work sniffed out: nothing to do");
-#line 686 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (sniffer);
-#line 686 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 7103 "BatchImport.c"
- }
-#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = sniffer;
-#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->total_bytes;
-#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->total_bytes = _tmp9_;
-#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = sniffer;
-#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_->files_to_prepare;
-#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->priv->cancellable;
-#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = prepare_files_job_new (self, _tmp11_, _batch_import_on_file_prepared_notification_callback, self, _batch_import_on_files_prepared_completion_callback, self, _tmp12_, _batch_import_on_file_prepare_cancelled_cancellation_callback, self);
-#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepare_files_job = _tmp13_;
-#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = batch_import_feeder_workers;
-#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = prepare_files_job;
-#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala"
- workers_enqueue (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 701 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = self->priv->throbber_id;
-#line 701 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp16_ > ((guint) 0)) {
-#line 7131 "BatchImport.c"
- guint _tmp17_;
-#line 702 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = self->priv->throbber_id;
-#line 702 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_source_remove (_tmp17_);
-#line 703 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->throbber_id = (guint) 0;
-#line 7139 "BatchImport.c"
- }
-#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (prepare_files_job);
-#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (sniffer);
-#line 7145 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_sniffer_cancelled (BatchImport* self,
- BackgroundJob* j)
-{
- gboolean _tmp0_;
- WorkSniffer* sniffer = NULL;
- WorkSniffer* _tmp1_;
- WorkSniffer* _tmp2_;
- guint _tmp3_;
-#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 708 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 708 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (!_tmp0_, "!completed");
-#line 710 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_WORK_SNIFFER, WorkSniffer));
-#line 710 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sniffer = _tmp1_;
-#line 712 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, "on_sniffer_cancelled");
-#line 714 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = sniffer;
-#line 714 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_completed (self, "work sniffer cancelled");
-#line 717 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->throbber_id;
-#line 717 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_ > ((guint) 0)) {
-#line 7182 "BatchImport.c"
- guint _tmp4_;
-#line 718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->priv->throbber_id;
-#line 718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_source_remove (_tmp4_);
-#line 719 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->throbber_id = (guint) 0;
-#line 7190 "BatchImport.c"
- }
-#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (sniffer);
-#line 7194 "BatchImport.c"
-}
-
-
-static void
-_batch_import_on_thumbnail_writer_completed_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_thumbnail_writer_completed ((BatchImport*) self, job);
-#line 7204 "BatchImport.c"
-}
-
-
-static void
-_batch_import_on_thumbnail_writer_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_thumbnail_writer_cancelled ((BatchImport*) self, job);
-#line 7214 "BatchImport.c"
-}
-
-
-static void
-_batch_import_on_import_files_completed_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_import_files_completed ((BatchImport*) self, job);
-#line 7224 "BatchImport.c"
-}
-
-
-static void
-_batch_import_on_import_files_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_on_import_files_cancelled ((BatchImport*) self, job);
-#line 7234 "BatchImport.c"
-}
-
-
-static void
-batch_import_flush_import_jobs (BatchImport* self)
-{
-#line 727 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 7245 "BatchImport.c"
- gboolean _tmp0_ = FALSE;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- Workers* _tmp6_;
- GeeList* _tmp7_;
- gpointer _tmp8_;
- CompletedImportObject* _tmp9_;
- GCancellable* _tmp10_;
- ThumbnailWriterJob* _tmp11_;
- ThumbnailWriterJob* _tmp12_;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->priv->ready_thumbnails;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_ > 0) {
-#line 7265 "BatchImport.c"
- Workers* _tmp4_;
- guint _tmp5_;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = batch_import_import_workers;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->max_outstanding_import_jobs;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = ((guint) workers_get_pending_job_count (_tmp4_)) < _tmp5_;
-#line 7274 "BatchImport.c"
- } else {
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = FALSE;
-#line 7278 "BatchImport.c"
- }
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp0_) {
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 7284 "BatchImport.c"
- }
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = batch_import_import_workers;
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = self->priv->ready_thumbnails;
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = gee_list_remove_at (_tmp7_, 0);
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = (CompletedImportObject*) _tmp8_;
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->priv->cancellable;
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = thumbnail_writer_job_new (self, _tmp9_, _batch_import_on_thumbnail_writer_completed_completion_callback, self, _tmp10_, _batch_import_on_thumbnail_writer_cancelled_cancellation_callback, self);
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_;
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- workers_enqueue (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (_tmp12_);
-#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (_tmp9_);
-#line 7306 "BatchImport.c"
- }
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 7310 "BatchImport.c"
- gboolean _tmp13_ = FALSE;
- GeeList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- Workers* _tmp19_;
- GeeList* _tmp20_;
- gpointer _tmp21_;
- PreparedFile* _tmp22_;
- BatchImportRoll* _tmp23_;
- ImportID _tmp24_;
- GCancellable* _tmp25_;
- PreparedFileImportJob* _tmp26_;
- PreparedFileImportJob* _tmp27_;
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->priv->ready_files;
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_;
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp16_ > 0) {
-#line 7332 "BatchImport.c"
- Workers* _tmp17_;
- guint _tmp18_;
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = batch_import_import_workers;
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = self->priv->max_outstanding_import_jobs;
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = ((guint) workers_get_pending_job_count (_tmp17_)) < _tmp18_;
-#line 7341 "BatchImport.c"
- } else {
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = FALSE;
-#line 7345 "BatchImport.c"
- }
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp13_) {
-#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 7351 "BatchImport.c"
- }
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = batch_import_import_workers;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = self->priv->ready_files;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = gee_list_remove_at (_tmp20_, 0);
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = (PreparedFile*) _tmp21_;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = self->priv->import_roll;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _tmp23_->import_id;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = self->priv->cancellable;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = prepared_file_import_job_new (self, _tmp22_, &_tmp24_, _batch_import_on_import_files_completed_completion_callback, self, _tmp25_, _batch_import_on_import_files_cancelled_cancellation_callback, self);
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- workers_enqueue (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (_tmp27_);
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_tmp22_);
-#line 7377 "BatchImport.c"
- }
-}
-
-
-static GFile*
-batch_import_get_in_current_import (BatchImport* self,
- PreparedFile* prepared_file)
-{
- GFile* result = NULL;
- gboolean _tmp0_ = FALSE;
- const gchar* _tmp1_;
- const gchar* _tmp7_;
-#line 746 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (self), NULL);
-#line 746 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL);
-#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = prepared_file->full_md5;
-#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != NULL) {
-#line 7398 "BatchImport.c"
- GeeHashMap* _tmp2_;
- const gchar* _tmp3_;
-#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->priv->imported_full_md5_table;
-#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = prepared_file->full_md5;
-#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_);
-#line 7407 "BatchImport.c"
- } else {
-#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = FALSE;
-#line 7411 "BatchImport.c"
- }
-#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_) {
-#line 7415 "BatchImport.c"
- GeeHashMap* _tmp4_;
- const gchar* _tmp5_;
- gpointer _tmp6_;
-#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->priv->imported_full_md5_table;
-#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = prepared_file->full_md5;
-#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
-#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = (GFile*) _tmp6_;
-#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 7429 "BatchImport.c"
- }
-#line 755 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = prepared_file->full_md5;
-#line 755 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp7_ != NULL) {
-#line 7435 "BatchImport.c"
- GeeHashMap* _tmp8_;
- const gchar* _tmp9_;
- GFile* _tmp10_;
-#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->priv->imported_full_md5_table;
-#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = prepared_file->full_md5;
-#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = prepared_file->file;
-#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_);
-#line 7447 "BatchImport.c"
- }
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = NULL;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 7453 "BatchImport.c"
-}
-
-
-static gpointer
-_notification_object_ref0 (gpointer self)
-{
-#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? notification_object_ref (self) : NULL;
-#line 7462 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_file_prepared (BatchImport* self,
- BackgroundJob* j,
- NotificationObject* user)
-{
- gboolean _tmp0_;
- PreparedFileCluster* cluster = NULL;
- PreparedFileCluster* _tmp1_;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GeeArrayList* _tmp7_;
-#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user));
-#line 763 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 763 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (!_tmp0_, "!completed");
-#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (user, TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster));
-#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala"
- cluster = _tmp1_;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = cluster->list;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_strdup_printf ("on_file_prepared (%d files)", _tmp4_);
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, _tmp6_);
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp6_);
-#line 769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = cluster->list;
-#line 769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_process_prepared_files (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_LIST, GeeList), NULL, NULL);
-#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _notification_object_unref0 (cluster);
-#line 7514 "BatchImport.c"
-}
-
-
-static void
-batch_import_process_prepared_files_data_free (gpointer _data)
-{
- BatchImportProcessPreparedFilesData* _data_;
- _data_ = _data;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->list);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->self);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_slice_free (BatchImportProcessPreparedFilesData, _data_);
-#line 7529 "BatchImport.c"
-}
-
-
-static void
-batch_import_process_prepared_files_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data)
-{
- BatchImportProcessPreparedFilesData* _task_data_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _task_data_ = g_task_get_task_data (G_TASK (res));
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_task_data_->_callback_ != NULL) {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _task_data_->_callback_ (source_object, res, user_data);
-#line 7545 "BatchImport.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _task_data_->_task_complete_ = TRUE;
-#line 7549 "BatchImport.c"
-}
-
-
-static void
-batch_import_process_prepared_files (BatchImport* self,
- GeeList* list,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_)
-{
- BatchImportProcessPreparedFilesData* _data_;
- BatchImport* _tmp0_;
- GeeList* _tmp1_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_ = g_slice_new0 (BatchImportProcessPreparedFilesData);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_callback_ = _callback_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_async_result = g_task_new (G_OBJECT (self), NULL, batch_import_process_prepared_files_async_ready_wrapper, _user_data_);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_callback_ == NULL) {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_task_complete_ = TRUE;
-#line 7572 "BatchImport.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_task_set_task_data (_data_->_async_result, _data_, batch_import_process_prepared_files_data_free);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->self = _tmp0_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (list);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->list);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->list = _tmp1_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_process_prepared_files_co (_data_);
-#line 7588 "BatchImport.c"
-}
-
-
-static void
-batch_import_process_prepared_files_finish (BatchImport* self,
- GAsyncResult* _res_)
-{
- BatchImportProcessPreparedFilesData* _data_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 7599 "BatchImport.c"
-}
-
-
-static gboolean
-_batch_import_process_prepared_files_co_gsource_func (gpointer self)
-{
- gboolean result;
- result = batch_import_process_prepared_files_co (self);
-#line 776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 7610 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_process_prepared_files_co (BatchImportProcessPreparedFilesData* _data_)
-{
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (_data_->_state_) {
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case 0:
-#line 7621 "BatchImport.c"
- goto _state_0;
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case 1:
-#line 7625 "BatchImport.c"
- goto _state_1;
- default:
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_assert_not_reached ();
-#line 7630 "BatchImport.c"
- }
- _state_0:
- {
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp0_ = _g_object_ref0 (_data_->list);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_prepared_file_list = _data_->_tmp0_;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp1_ = _data_->_prepared_file_list;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp3_ = _data_->_tmp2_;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_prepared_file_size = _data_->_tmp3_;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_prepared_file_index = -1;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp4_ = _data_->_prepared_file_index;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_prepared_file_index = _data_->_tmp4_ + 1;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp5_ = _data_->_prepared_file_index;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp6_ = _data_->_prepared_file_size;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_data_->_tmp5_ < _data_->_tmp6_)) {
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 7662 "BatchImport.c"
- }
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp7_ = _data_->_prepared_file_list;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp8_ = _data_->_prepared_file_index;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp9_ = gee_list_get (_data_->_tmp7_, _data_->_tmp8_);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->prepared_file = (PreparedFile*) _data_->_tmp9_;
-#line 776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _batch_import_process_prepared_files_co_gsource_func, _data_, NULL);
-#line 777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_state_ = 1;
-#line 777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return FALSE;
-#line 7678 "BatchImport.c"
- _state_1:
- ;
-#line 779 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = NULL;
-#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp10_ = library_photo_global;
-#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp11_ = _data_->prepared_file;
-#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp12_ = _data_->_tmp11_->file;
-#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp13_ = 0;
-#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp14_ = library_photo_source_collection_get_state_by_file (_data_->_tmp10_, _data_->_tmp12_, &_data_->_tmp13_);
-#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo_state = _data_->_tmp13_;
-#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp14_;
-#line 786 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp15_ = _data_->photo;
-#line 786 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp15_ != NULL) {
-#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp16_ = _data_->photo_state;
-#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (_data_->_tmp16_) {
-#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 7713 "BatchImport.c"
- {
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp17_ = _data_->prepared_file;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp18_ = _data_->_tmp17_->job;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp19_ = _data_->prepared_file;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp20_ = _data_->_tmp19_->file;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp21_ = _data_->prepared_file;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp22_ = _data_->_tmp21_->file;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp23_ = g_file_get_path (_data_->_tmp22_);
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp24_ = _data_->_tmp23_;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp25_ = _data_->prepared_file;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp26_ = _data_->_tmp25_->file;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp27_ = g_file_get_path (_data_->_tmp26_);
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp28_ = _data_->_tmp27_;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp29_ = _data_->photo;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp30_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp29_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp31_ = _data_->_tmp30_;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp32_ = duplicated_file_create_from_file (_data_->_tmp31_);
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp33_ = _data_->_tmp32_;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp34_ = batch_import_result_new (_data_->_tmp18_, _data_->_tmp20_, _data_->_tmp24_, _data_->_tmp28_, _data_->_tmp33_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp34_;
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp33_);
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp31_);
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp28_);
-#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp24_);
-#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp35_ = _data_->photo_state;
-#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp35_ == LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE) {
-#line 798 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp36_ = _data_->photo;
-#line 798 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp36_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 7771 "BatchImport.c"
- }
-#line 799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 7775 "BatchImport.c"
- }
-#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 7779 "BatchImport.c"
- {
-#line 803 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 7783 "BatchImport.c"
- }
- default:
- {
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp37_ = _data_->photo_state;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp38_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _data_->_tmp37_);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_error ("BatchImport.vala:806: Unknown LibraryPhotoSourceCollection state: %s", (_data_->_tmp38_ != NULL) ? _data_->_tmp38_->value_name : NULL);
-#line 7793 "BatchImport.c"
- }
- }
- }
-#line 810 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp39_ = _data_->import_result;
-#line 810 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp39_ != NULL) {
-#line 811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp40_ = _data_->import_result;
-#line 811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (_data_->self, _data_->_tmp40_);
-#line 812 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (_data_->self);
-#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_data_->prepared_file);
-#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 7815 "BatchImport.c"
- }
-#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp41_ = video_global;
-#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp42_ = _data_->prepared_file;
-#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp43_ = _data_->_tmp42_->file;
-#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp44_ = 0;
-#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp45_ = video_source_collection_get_state_by_file (_data_->_tmp41_, _data_->_tmp43_, &_data_->_tmp44_);
-#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->video_state = _data_->_tmp44_;
-#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->video = _data_->_tmp45_;
-#line 819 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp46_ = _data_->video;
-#line 819 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp46_ != NULL) {
-#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp47_ = _data_->video_state;
-#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (_data_->_tmp47_) {
-#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case VIDEO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case VIDEO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 7843 "BatchImport.c"
- {
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp48_ = _data_->prepared_file;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp49_ = _data_->_tmp48_->job;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp50_ = _data_->prepared_file;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp51_ = _data_->_tmp50_->file;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp52_ = _data_->prepared_file;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp53_ = _data_->_tmp52_->file;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp54_ = g_file_get_path (_data_->_tmp53_);
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp55_ = _data_->_tmp54_;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp56_ = _data_->prepared_file;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp57_ = _data_->_tmp56_->file;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp58_ = g_file_get_path (_data_->_tmp57_);
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp59_ = _data_->_tmp58_;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp60_ = _data_->video;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp61_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp60_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp62_ = _data_->_tmp61_;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp63_ = duplicated_file_create_from_file (_data_->_tmp62_);
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp64_ = _data_->_tmp63_;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp65_ = batch_import_result_new (_data_->_tmp49_, _data_->_tmp51_, _data_->_tmp55_, _data_->_tmp59_, _data_->_tmp64_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp65_;
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp64_);
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp62_);
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp59_);
-#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp55_);
-#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp66_ = _data_->video_state;
-#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp66_ == VIDEO_SOURCE_COLLECTION_STATE_OFFLINE) {
-#line 829 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp67_ = _data_->video;
-#line 829 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp67_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 7901 "BatchImport.c"
- }
-#line 830 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 7905 "BatchImport.c"
- }
-#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case VIDEO_SOURCE_COLLECTION_STATE_TRASH:
-#line 7909 "BatchImport.c"
- {
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 7913 "BatchImport.c"
- }
- default:
- {
-#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp68_ = _data_->video_state;
-#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp69_ = g_enum_get_value (g_type_class_ref (VIDEO_SOURCE_COLLECTION_TYPE_STATE), _data_->_tmp68_);
-#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_error ("BatchImport.vala:837: Unknown VideoSourceCollection state: %s", (_data_->_tmp69_ != NULL) ? _data_->_tmp69_->value_name : NULL);
-#line 7923 "BatchImport.c"
- }
- }
- }
-#line 841 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp70_ = _data_->import_result;
-#line 841 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp70_ != NULL) {
-#line 842 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp71_ = _data_->import_result;
-#line 842 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (_data_->self, _data_->_tmp71_);
-#line 843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (_data_->self);
-#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->video);
-#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_data_->prepared_file);
-#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 7947 "BatchImport.c"
- }
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp73_ = _data_->prepared_file;
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp74_ = _data_->_tmp73_->is_video;
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp74_) {
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp75_ = _data_->prepared_file;
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp76_ = _data_->_tmp75_->file;
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp77_ = _data_->prepared_file;
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp78_ = _data_->_tmp77_->full_md5;
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp72_ = video_is_duplicate (_data_->_tmp76_, _data_->_tmp78_);
-#line 7965 "BatchImport.c"
- } else {
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp72_ = FALSE;
-#line 7969 "BatchImport.c"
- }
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp72_) {
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp79_ = video_table_get_instance ();
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp80_ = _data_->_tmp79_;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp81_ = _data_->prepared_file;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp82_ = _data_->_tmp81_->file;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp83_ = _data_->prepared_file;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp84_ = _data_->_tmp83_->full_md5;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp86_ = video_table_get_duplicate_ids (_data_->_tmp80_, _data_->_tmp82_, _data_->_tmp84_, &_data_->_tmp85_);
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp87_ = _data_->_tmp86_;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp87__length1 = _data_->_tmp85_;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _database_table_unref0 (_data_->_tmp80_);
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicate_ids = _data_->_tmp87_;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicate_ids_length1 = _data_->_tmp87__length1;
-#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_duplicate_ids_size_ = _data_->duplicate_ids_length1;
-#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp88_ = _data_->duplicate_ids;
-#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp88__length1 = _data_->duplicate_ids_length1;
-#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_data_->_tmp88__length1 > 0, "duplicate_ids.length > 0");
-#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp89_ = _data_->duplicate_ids;
-#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp89__length1 = _data_->duplicate_ids_length1;
-#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp90_ = _data_->_tmp89_[0];
-#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp91_ = duplicated_file_create_from_video_id (&_data_->_tmp90_);
-#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicated_file = _data_->_tmp91_;
-#line 859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->result_code = IMPORT_RESULT_PHOTO_EXISTS;
-#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp92_ = _data_->self->priv->mark_duplicates_online;
-#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp92_) {
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp93_ = video_global;
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp94_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp93_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp95_ = _data_->_tmp94_;
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp96_ = _data_->prepared_file;
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp97_ = _data_->_tmp96_->file;
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp98_ = media_source_holding_tank_fetch_by_master_file (_data_->_tmp95_, _data_->_tmp97_);
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp99_ = G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp98_, TYPE_VIDEO, Video);
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_holding_tank_unref0 (_data_->_tmp95_);
-#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->dupe_video = _data_->_tmp99_;
-#line 863 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp100_ = _data_->dupe_video;
-#line 863 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp100_ == NULL) {
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp101_ = video_global;
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp102_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp101_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp103_ = _data_->_tmp102_;
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp104_ = _data_->prepared_file;
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp105_ = _data_->_tmp104_->full_md5;
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp106_ = media_source_holding_tank_fetch_by_md5 (_data_->_tmp103_, _data_->_tmp105_);
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->dupe_video);
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->dupe_video = G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp106_, TYPE_VIDEO, Video);
-#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_holding_tank_unref0 (_data_->_tmp103_);
-#line 8061 "BatchImport.c"
- }
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp107_ = _data_->dupe_video;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp107_ != NULL) {
-#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp108_ = _data_->prepared_file;
-#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp109_ = _data_->_tmp108_->file;
-#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp110_ = g_file_get_path (_data_->_tmp109_);
-#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp111_ = _data_->_tmp110_;
-#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:867: duplicate video found offline, marking as online" \
-": %s", _data_->_tmp111_);
-#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp111_);
-#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp112_ = _data_->dupe_video;
-#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp113_ = _data_->prepared_file;
-#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp114_ = _data_->_tmp113_->file;
-#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala"
- monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp112_, TYPE_MONITORABLE, Monitorable), _data_->_tmp114_);
-#line 871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp115_ = _data_->dupe_video;
-#line 871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp115_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->duplicated_file);
-#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicated_file = NULL;
-#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp116_ = _data_->self->priv->manifest;
-#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp117_ = _data_->_tmp116_->imported;
-#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp118_ = _data_->dupe_video;
-#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp117_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp118_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp119_ = _data_->dupe_video;
-#line 876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (_data_->self, media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp119_, TYPE_MEDIA_SOURCE, MediaSource)));
-#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (_data_->self);
-#line 879 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->result_code = IMPORT_RESULT_SUCCESS;
-#line 8111 "BatchImport.c"
- }
-#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->dupe_video);
-#line 8115 "BatchImport.c"
- }
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp120_ = _data_->prepared_file;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp121_ = _data_->_tmp120_->job;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp122_ = _data_->prepared_file;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp123_ = _data_->_tmp122_->file;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp124_ = _data_->prepared_file;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp125_ = _data_->_tmp124_->file;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp126_ = g_file_get_path (_data_->_tmp125_);
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp127_ = _data_->_tmp126_;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp128_ = _data_->prepared_file;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp129_ = _data_->_tmp128_->file;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp130_ = g_file_get_path (_data_->_tmp129_);
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp131_ = _data_->_tmp130_;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp132_ = _data_->duplicated_file;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp133_ = _data_->result_code;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp134_ = batch_import_result_new (_data_->_tmp121_, _data_->_tmp123_, _data_->_tmp127_, _data_->_tmp131_, _data_->_tmp132_, _data_->_tmp133_);
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp134_;
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp131_);
-#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp127_);
-#line 887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp135_ = _data_->result_code;
-#line 887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp135_ == IMPORT_RESULT_SUCCESS) {
-#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp136_ = _data_->self->priv->manifest;
-#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp137_ = _data_->import_result;
-#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (_data_->_tmp136_, _data_->_tmp137_);
-#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->duplicated_file);
-#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicate_ids = (g_free (_data_->duplicate_ids), NULL);
-#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->video);
-#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_data_->prepared_file);
-#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 8179 "BatchImport.c"
- }
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->duplicated_file);
-#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicate_ids = (g_free (_data_->duplicate_ids), NULL);
-#line 8185 "BatchImport.c"
- }
-#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp138_ = _data_->prepared_file;
-#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp139_ = batch_import_get_in_current_import (_data_->self, _data_->_tmp138_);
-#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp140_ = _data_->_tmp139_;
-#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp141_ = _data_->_tmp140_ != NULL;
-#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp140_);
-#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp141_) {
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp142_ = _data_->prepared_file;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp143_ = _data_->_tmp142_->job;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp144_ = _data_->prepared_file;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp145_ = _data_->_tmp144_->file;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp146_ = _data_->prepared_file;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp147_ = _data_->_tmp146_->file;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp148_ = g_file_get_path (_data_->_tmp147_);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp149_ = _data_->_tmp148_;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp150_ = _data_->prepared_file;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp151_ = _data_->_tmp150_->file;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp152_ = g_file_get_path (_data_->_tmp151_);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp153_ = _data_->_tmp152_;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp154_ = _data_->prepared_file;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp155_ = batch_import_get_in_current_import (_data_->self, _data_->_tmp154_);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp156_ = _data_->_tmp155_;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp157_ = duplicated_file_create_from_file (_data_->_tmp156_);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp158_ = _data_->_tmp157_;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp159_ = batch_import_result_new (_data_->_tmp143_, _data_->_tmp145_, _data_->_tmp149_, _data_->_tmp153_, _data_->_tmp158_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp159_;
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp158_);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp156_);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp153_);
-#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp149_);
-#line 8247 "BatchImport.c"
- } else {
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp160_ = _data_->prepared_file;
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp161_ = _data_->_tmp160_->file;
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp162_ = _data_->prepared_file;
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp163_ = _data_->_tmp162_->full_md5;
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp164_ = _data_->prepared_file;
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp165_ = _data_->_tmp164_->file_format;
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (photo_is_duplicate (_data_->_tmp161_, NULL, _data_->_tmp163_, _data_->_tmp165_)) {
-#line 903 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp166_ = _data_->self->priv->untrash_duplicates;
-#line 903 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp166_) {
-#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp167_ = library_photo_global;
-#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp168_ = _data_->prepared_file;
-#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp169_ = _data_->_tmp168_->file;
-#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp170_ = library_photo_source_collection_get_trashed_by_file (_data_->_tmp167_, _data_->_tmp169_);
-#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp170_;
-#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp172_ = _data_->photo;
-#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp172_ == NULL) {
-#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp173_ = _data_->prepared_file;
-#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp174_ = _data_->_tmp173_->full_md5;
-#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp171_ = _data_->_tmp174_ != NULL;
-#line 8289 "BatchImport.c"
- } else {
-#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp171_ = FALSE;
-#line 8293 "BatchImport.c"
- }
-#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp171_) {
-#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp175_ = library_photo_global;
-#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp176_ = _data_->prepared_file;
-#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp177_ = _data_->_tmp176_->full_md5;
-#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp178_ = library_photo_source_collection_get_trashed_by_md5 (_data_->_tmp175_, _data_->_tmp177_);
-#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp178_;
-#line 8309 "BatchImport.c"
- }
-#line 911 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp179_ = _data_->photo;
-#line 911 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp179_ != NULL) {
-#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp180_ = _data_->prepared_file;
-#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp181_ = _data_->_tmp180_->file;
-#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp182_ = g_file_get_path (_data_->_tmp181_);
-#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp183_ = _data_->_tmp182_;
-#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:912: duplicate linked photo found in trash, untrashin" \
-"g and removing transforms for %s", _data_->_tmp183_);
-#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp183_);
-#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp184_ = _data_->photo;
-#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp185_ = _data_->prepared_file;
-#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp186_ = _data_->_tmp185_->file;
-#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp184_, TYPE_MONITORABLE, Monitorable), _data_->_tmp186_);
-#line 916 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp187_ = _data_->photo;
-#line 916 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_untrash (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp187_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp188_ = _data_->photo;
-#line 917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_remove_all_transformations (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp188_, TYPE_PHOTO, Photo));
-#line 8343 "BatchImport.c"
- }
- }
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp190_ = _data_->photo;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp190_ == NULL) {
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp191_ = _data_->self->priv->mark_duplicates_online;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp189_ = _data_->_tmp191_;
-#line 8354 "BatchImport.c"
- } else {
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp189_ = FALSE;
-#line 8358 "BatchImport.c"
- }
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp189_) {
-#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp192_ = library_photo_global;
-#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp193_ = _data_->prepared_file;
-#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp194_ = _data_->_tmp193_->file;
-#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp195_ = library_photo_source_collection_get_offline_by_file (_data_->_tmp192_, _data_->_tmp194_);
-#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp195_;
-#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp197_ = _data_->photo;
-#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp197_ == NULL) {
-#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp198_ = _data_->prepared_file;
-#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp199_ = _data_->_tmp198_->full_md5;
-#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp196_ = _data_->_tmp199_ != NULL;
-#line 8384 "BatchImport.c"
- } else {
-#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp196_ = FALSE;
-#line 8388 "BatchImport.c"
- }
-#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp196_) {
-#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp200_ = library_photo_global;
-#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp201_ = _data_->prepared_file;
-#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp202_ = _data_->_tmp201_->full_md5;
-#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp203_ = library_photo_source_collection_get_offline_by_md5 (_data_->_tmp200_, _data_->_tmp202_);
-#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp203_;
-#line 8404 "BatchImport.c"
- }
-#line 928 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp204_ = _data_->photo;
-#line 928 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp204_ != NULL) {
-#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp205_ = _data_->prepared_file;
-#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp206_ = _data_->_tmp205_->file;
-#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp207_ = g_file_get_path (_data_->_tmp206_);
-#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp208_ = _data_->_tmp207_;
-#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:929: duplicate photo found marked offline, marking on" \
-"line: %s", _data_->_tmp208_);
-#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp208_);
-#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp209_ = _data_->photo;
-#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp210_ = _data_->prepared_file;
-#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp211_ = _data_->_tmp210_->file;
-#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala"
- monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp209_, TYPE_MONITORABLE, Monitorable), _data_->_tmp211_);
-#line 933 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp212_ = _data_->photo;
-#line 933 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp212_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 8434 "BatchImport.c"
- }
- }
-#line 937 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp213_ = _data_->photo;
-#line 937 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp213_ != NULL) {
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp214_ = _data_->prepared_file;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp215_ = _data_->_tmp214_->job;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp216_ = _data_->prepared_file;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp217_ = _data_->_tmp216_->file;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp218_ = _data_->prepared_file;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp219_ = _data_->_tmp218_->file;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp220_ = g_file_get_path (_data_->_tmp219_);
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp221_ = _data_->_tmp220_;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp222_ = _data_->prepared_file;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp223_ = _data_->_tmp222_->file;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp224_ = g_file_get_path (_data_->_tmp223_);
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp225_ = _data_->_tmp224_;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp226_ = batch_import_result_new (_data_->_tmp215_, _data_->_tmp217_, _data_->_tmp221_, _data_->_tmp225_, NULL, IMPORT_RESULT_SUCCESS);
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp226_;
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp225_);
-#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp221_);
-#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp227_ = _data_->self->priv->manifest;
-#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp228_ = _data_->_tmp227_->imported;
-#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp229_ = _data_->photo;
-#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp228_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp229_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp230_ = _data_->self->priv->manifest;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp231_ = _data_->import_result;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (_data_->_tmp230_, _data_->_tmp231_);
-#line 945 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp232_ = _data_->photo;
-#line 945 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (_data_->self, media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp232_, TYPE_MEDIA_SOURCE, MediaSource)));
-#line 946 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (_data_->self);
-#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->video);
-#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_data_->prepared_file);
-#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 8505 "BatchImport.c"
- }
-#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp233_ = _data_->prepared_file;
-#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp234_ = _data_->_tmp233_->file;
-#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp235_ = g_file_get_path (_data_->_tmp234_);
-#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp236_ = _data_->_tmp235_;
-#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:951: duplicate photo detected, not importing %s", _data_->_tmp236_);
-#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp236_);
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp237_ = photo_table_get_instance ();
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp238_ = _data_->_tmp237_;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp239_ = _data_->prepared_file;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp240_ = _data_->_tmp239_->file;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp241_ = _data_->prepared_file;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp242_ = _data_->_tmp241_->full_md5;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp243_ = _data_->prepared_file;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp244_ = _data_->_tmp243_->file_format;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp246_ = photo_table_get_duplicate_ids (_data_->_tmp238_, _data_->_tmp240_, NULL, _data_->_tmp242_, _data_->_tmp244_, &_data_->_tmp245_);
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp247_ = _data_->_tmp246_;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp247__length1 = _data_->_tmp245_;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _database_table_unref0 (_data_->_tmp238_);
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo_ids = _data_->_tmp247_;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo_ids_length1 = _data_->_tmp247__length1;
-#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_photo_ids_size_ = _data_->photo_ids_length1;
-#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp248_ = _data_->photo_ids;
-#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp248__length1 = _data_->photo_ids_length1;
-#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_data_->_tmp248__length1 > 0, "photo_ids.length > 0");
-#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp249_ = _data_->photo_ids;
-#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp249__length1 = _data_->photo_ids_length1;
-#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp250_ = _data_->_tmp249_[0];
-#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp251_ = duplicated_file_create_from_photo_id (&_data_->_tmp250_);
-#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_vala1_duplicated_file = _data_->_tmp251_;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp252_ = _data_->prepared_file;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp253_ = _data_->_tmp252_->job;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp254_ = _data_->prepared_file;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp255_ = _data_->_tmp254_->file;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp256_ = _data_->prepared_file;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp257_ = _data_->_tmp256_->file;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp258_ = g_file_get_path (_data_->_tmp257_);
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp259_ = _data_->_tmp258_;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp260_ = _data_->prepared_file;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp261_ = _data_->_tmp260_->file;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp262_ = g_file_get_path (_data_->_tmp261_);
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp263_ = _data_->_tmp262_;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp264_ = _data_->_vala1_duplicated_file;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp265_ = batch_import_result_new (_data_->_tmp253_, _data_->_tmp255_, _data_->_tmp259_, _data_->_tmp263_, _data_->_tmp264_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp265_;
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp263_);
-#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp259_);
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_vala1_duplicated_file);
-#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo_ids = (g_free (_data_->photo_ids), NULL);
-#line 8605 "BatchImport.c"
- }
- }
-#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp266_ = _data_->import_result;
-#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp266_ != NULL) {
-#line 966 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp267_ = _data_->import_result;
-#line 966 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (_data_->self, _data_->_tmp267_);
-#line 967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (_data_->self);
-#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->video);
-#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_data_->prepared_file);
-#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 8628 "BatchImport.c"
- }
-#line 972 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (_data_->self, (guint64) 0);
-#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp268_ = _data_->self->priv->ready_files;
-#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp269_ = _data_->prepared_file;
-#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp268_, GEE_TYPE_COLLECTION, GeeCollection), _data_->_tmp269_);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->video);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_data_->prepared_file);
-#line 8646 "BatchImport.c"
- }
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_prepared_file_list);
-#line 8650 "BatchImport.c"
- }
-#line 976 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_flush_import_jobs (_data_->self);
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_state_ != 0) {
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 8662 "BatchImport.c"
- }
- }
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_object_unref (_data_->_async_result);
-#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return FALSE;
-#line 8669 "BatchImport.c"
-}
-
-
-static void
-batch_import_done_preparing_files (BatchImport* self,
- BackgroundJob* j,
- const gchar* caller)
-{
- gboolean _tmp0_;
- PrepareFilesJob* prepare_files_job = NULL;
- PrepareFilesJob* _tmp1_;
- PrepareFilesJob* _tmp2_;
- PrepareFilesJob* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gboolean _tmp7_ = FALSE;
- gint _tmp8_;
-#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (caller != NULL);
-#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (!_tmp0_, "!completed");
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARE_FILES_JOB, PrepareFilesJob));
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepare_files_job = _tmp1_;
-#line 984 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = prepare_files_job;
-#line 984 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = prepare_files_job;
-#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_->prepared_files;
-#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file_imports_to_perform = _tmp4_;
-#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->file_imports_to_perform;
-#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->file_imports_completed;
-#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp5_ >= _tmp6_, "file_imports_to_perform >= file_imports_completed");
-#line 990 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, caller);
-#line 993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_flush_import_jobs (self);
-#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->priv->file_imports_to_perform;
-#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp8_ == 0) {
-#line 8726 "BatchImport.c"
- gboolean _tmp9_;
-#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->priv->completed;
-#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = !_tmp9_;
-#line 8732 "BatchImport.c"
- } else {
-#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = FALSE;
-#line 8736 "BatchImport.c"
- }
-#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp7_) {
-#line 998 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_completed (self, "no files prepared for import");
-#line 8742 "BatchImport.c"
- } else {
- gboolean _tmp10_ = FALSE;
- gint _tmp11_;
- gint _tmp12_;
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = self->priv->file_imports_completed;
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->priv->file_imports_to_perform;
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp11_ == _tmp12_) {
-#line 8753 "BatchImport.c"
- gboolean _tmp13_;
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = self->priv->completed;
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = !_tmp13_;
-#line 8759 "BatchImport.c"
- } else {
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = FALSE;
-#line 8763 "BatchImport.c"
- }
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp10_) {
-#line 1000 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_completed (self, "completed preparing files, all outstanding imports completed");
-#line 8769 "BatchImport.c"
- }
- }
-#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (prepare_files_job);
-#line 8774 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_files_prepared (BatchImport* self,
- BackgroundJob* j)
-{
-#line 1003 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1003 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_done_preparing_files (self, j, "on_files_prepared");
-#line 8788 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_file_prepare_cancelled (BatchImport* self,
- BackgroundJob* j)
-{
-#line 1007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1008 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_done_preparing_files (self, j, "on_file_prepare_cancelled");
-#line 8802 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_import_files_completed (BatchImport* self,
- BackgroundJob* j)
-{
- gboolean _tmp0_;
- PreparedFileImportJob* job = NULL;
- PreparedFileImportJob* _tmp1_;
- PreparedFileImportJob* _tmp2_;
- PreparedFile* _tmp3_;
- PreparedFileImportJob* _tmp4_;
- BatchImportResult* _tmp5_;
- PreparedFileImportJob* _tmp11_;
- ReadyForImport* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 1016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (!_tmp0_, "!completed");
-#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob));
-#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp1_;
-#line 1020 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, "on_import_files_completed");
-#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = job;
-#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_->not_ready;
-#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp3_ == NULL, "job.not_ready == null");
-#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = job;
-#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->failed;
-#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp5_ != NULL) {
-#line 8846 "BatchImport.c"
- PreparedFileImportJob* _tmp6_;
- BatchImportResult* _tmp7_;
- ImportResult _tmp8_;
- PreparedFileImportJob* _tmp9_;
- BatchImportResult* _tmp10_;
-#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = job;
-#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_->failed;
-#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_->result;
-#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp8_ != IMPORT_RESULT_SUCCESS, "job.failed.result != ImportResult.SUCCESS");
-#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = job;
-#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _tmp9_->failed;
-#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp10_);
-#line 1030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 8868 "BatchImport.c"
- }
-#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = job;
-#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_->ready;
-#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp12_ != NULL) {
-#line 8876 "BatchImport.c"
- PreparedFileImportJob* _tmp13_;
- ReadyForImport* _tmp14_;
- BatchImportResult* _tmp15_;
- ImportResult _tmp16_;
- Tombstone* tombstone = NULL;
- TombstoneSourceCollection* _tmp17_;
- PreparedFileImportJob* _tmp18_;
- ReadyForImport* _tmp19_;
- GFile* _tmp20_;
- Tombstone* _tmp21_;
- Tombstone* _tmp22_;
- MediaSource* source = NULL;
- PreparedFileImportJob* _tmp25_;
- ReadyForImport* _tmp26_;
- gboolean _tmp27_;
- PreparedFileImportJob* _tmp83_;
- ReadyForImport* _tmp84_;
- BatchImportResult* _tmp85_;
- ImportResult _tmp86_;
-#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = job;
-#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_->ready;
-#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_->batch_result;
-#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_->result;
-#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp16_ == IMPORT_RESULT_SUCCESS, "job.ready.batch_result.result == ImportResult.SUCCESS");
-#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = tombstone_global;
-#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = job;
-#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_->ready;
-#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_->final_file;
-#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = tombstone_source_collection_locate (_tmp17_, _tmp20_);
-#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- tombstone = _tmp21_;
-#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = tombstone;
-#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp22_ != NULL) {
-#line 8922 "BatchImport.c"
- TombstoneSourceCollection* _tmp23_;
- Tombstone* _tmp24_;
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = tombstone_global;
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = tombstone;
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- tombstone_source_collection_resurrect (_tmp23_, _tmp24_);
-#line 8931 "BatchImport.c"
- }
-#line 1043 "/home/jens/Source/shotwell/src/BatchImport.vala"
- source = NULL;
-#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = job;
-#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = _tmp25_->ready;
-#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_->is_video;
-#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp27_) {
-#line 8943 "BatchImport.c"
- PreparedFileImportJob* _tmp28_;
- ReadyForImport* _tmp29_;
- BatchImportResult* _tmp30_;
- PreparedFileImportJob* _tmp31_;
- ReadyForImport* _tmp32_;
- VideoImportParams* _tmp33_;
- Video* _tmp34_ = NULL;
- ImportResult _tmp35_;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = job;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _tmp28_->ready;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp29_->batch_result;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = job;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _tmp31_->ready;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = _tmp32_->video_import_params;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = video_import_create (_tmp33_, &_tmp34_);
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (source);
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_->result = _tmp35_;
-#line 8972 "BatchImport.c"
- } else {
- PreparedFileImportJob* _tmp36_;
- ReadyForImport* _tmp37_;
- BatchImportResult* _tmp38_;
- PreparedFileImportJob* _tmp39_;
- ReadyForImport* _tmp40_;
- PhotoImportParams* _tmp41_;
- LibraryPhoto* _tmp42_ = NULL;
- ImportResult _tmp43_;
- Photo* photo = NULL;
- MediaSource* _tmp44_;
- Photo* _tmp45_;
- PreparedFileImportJob* _tmp46_;
- ReadyForImport* _tmp47_;
- PhotoImportParams* _tmp48_;
- GFile* _tmp49_;
- Photo* _tmp71_;
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = job;
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = _tmp36_->ready;
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = _tmp37_->batch_result;
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = job;
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = _tmp39_->ready;
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = _tmp40_->photo_import_params;
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = library_photo_import_create (_tmp41_, &_tmp42_);
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (source);
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_->result = _tmp43_;
-#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = source;
-#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp44_, TYPE_PHOTO) ? ((Photo*) _tmp44_) : NULL);
-#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo = _tmp45_;
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = job;
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = _tmp46_->ready;
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = _tmp47_->photo_import_params;
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = _tmp48_->final_associated_file;
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp49_ != NULL) {
-#line 9026 "BatchImport.c"
- BackingPhotoRow* bpr = NULL;
- BackingPhotoRow* _tmp50_;
- BackingPhotoRow* _tmp51_;
- BackingPhotoRow* _tmp52_;
- PreparedFileImportJob* _tmp53_;
- ReadyForImport* _tmp54_;
- PhotoImportParams* _tmp55_;
- GFile* _tmp56_;
- gchar* _tmp57_;
- MediaSource* _tmp58_;
- GFile* _tmp59_;
- GFile* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- BackingPhotoRow* _tmp63_;
- const gchar* _tmp64_;
-#line 1054 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = backing_photo_row_new ();
-#line 1054 "/home/jens/Source/shotwell/src/BatchImport.vala"
- bpr = _tmp50_;
-#line 1055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = bpr;
-#line 1055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_->file_format = PHOTO_FILE_FORMAT_JFIF;
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = bpr;
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = job;
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = _tmp53_->ready;
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = _tmp54_->photo_import_params;
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = _tmp55_->final_associated_file;
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = g_file_get_path (_tmp56_);
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp52_->filepath);
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_->filepath = _tmp57_;
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = source;
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_PHOTO, Photo), TYPE_MEDIA_SOURCE, MediaSource));
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = _tmp59_;
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = g_file_get_path (_tmp60_);
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = _tmp61_;
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = bpr;
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = _tmp63_->filepath;
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1057: Associating %s with sibling %s", _tmp62_, _tmp64_);
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp62_);
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp60_);
-#line 9087 "BatchImport.c"
- {
- MediaSource* _tmp65_;
- BackingPhotoRow* _tmp66_;
-#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = source;
-#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = bpr;
-#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_add_backing_photo_for_development (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_PHOTO, Photo), RAW_DEVELOPER_CAMERA, _tmp66_, TRUE, &_inner_error_);
-#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9099 "BatchImport.c"
- goto __catch424_g_error;
- }
- }
- goto __finally424;
- __catch424_g_error:
- {
- GError* e = NULL;
- BackingPhotoRow* _tmp67_;
- const gchar* _tmp68_;
- GError* _tmp69_;
- const gchar* _tmp70_;
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- e = _inner_error_;
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = bpr;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = _tmp67_->filepath;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = e;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = _tmp69_->message;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1062: Unable to associate JPEG with RAW. File: %s Err" \
-"or: %s", _tmp68_, _tmp70_);
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (e);
-#line 9127 "BatchImport.c"
- }
- __finally424:
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _backing_photo_row_unref0 (bpr);
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (photo);
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (source);
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (tombstone);
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (job);
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.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 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 9148 "BatchImport.c"
- }
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _backing_photo_row_unref0 (bpr);
-#line 9152 "BatchImport.c"
- }
-#line 1068 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = photo;
-#line 1068 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (photo_get_master_file_format (_tmp71_) == PHOTO_FILE_FORMAT_RAW) {
-#line 9158 "BatchImport.c"
- RawDeveloper d = 0;
- ConfigFacade* _tmp72_;
- ConfigFacade* _tmp73_;
- RawDeveloper _tmp74_;
- gboolean _tmp75_ = FALSE;
- RawDeveloper _tmp76_;
- Photo* _tmp79_;
- RawDeveloper _tmp80_;
- Photo* _tmp81_;
- RawDeveloper _tmp82_;
-#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = config_facade_get_instance ();
-#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = _tmp72_;
-#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp73_);
-#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
- d = _tmp74_;
-#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = d;
-#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp76_ == RAW_DEVELOPER_CAMERA) {
-#line 9183 "BatchImport.c"
- Photo* _tmp77_;
- RawDeveloper _tmp78_;
-#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = photo;
-#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = d;
-#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = !photo_is_raw_developer_available (_tmp77_, _tmp78_);
-#line 9192 "BatchImport.c"
- } else {
-#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = FALSE;
-#line 9196 "BatchImport.c"
- }
-#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp75_) {
-#line 1071 "/home/jens/Source/shotwell/src/BatchImport.vala"
- d = RAW_DEVELOPER_EMBEDDED;
-#line 9202 "BatchImport.c"
- }
-#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = photo;
-#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = d;
-#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_set_default_raw_developer (_tmp79_, _tmp80_);
-#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = photo;
-#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = d;
-#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_set_raw_developer (_tmp81_, _tmp82_, FALSE);
-#line 9216 "BatchImport.c"
- }
-#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (photo);
-#line 9220 "BatchImport.c"
- }
-#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = job;
-#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = _tmp83_->ready;
-#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = _tmp84_->batch_result;
-#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = _tmp85_->result;
-#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp86_ != IMPORT_RESULT_SUCCESS) {
-#line 9232 "BatchImport.c"
- PreparedFileImportJob* _tmp87_;
- ReadyForImport* _tmp88_;
- BatchImportResult* _tmp89_;
- ImportResult _tmp90_;
- gchar* _tmp91_;
- gchar* _tmp92_;
- PreparedFileImportJob* _tmp93_;
- ReadyForImport* _tmp94_;
- BatchImportResult* _tmp95_;
-#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = job;
-#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = _tmp87_->ready;
-#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp89_ = _tmp88_->batch_result;
-#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp90_ = _tmp89_->result;
-#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp91_ = import_result_to_string (_tmp90_);
-#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp92_ = _tmp91_;
-#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1079: on_import_file_completed: %s", _tmp92_);
-#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp92_);
-#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93_ = job;
-#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp94_ = _tmp93_->ready;
-#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95_ = _tmp94_->batch_result;
-#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp95_);
-#line 1082 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 9268 "BatchImport.c"
- } else {
- GeeList* _tmp96_;
- MediaSource* _tmp97_;
- PreparedFileImportJob* _tmp98_;
- ReadyForImport* _tmp99_;
- Thumbnails* _tmp100_;
- Thumbnails* _tmp101_;
- PreparedFileImportJob* _tmp102_;
- ReadyForImport* _tmp103_;
- PreparedFile* _tmp104_;
- BatchImportJob* _tmp105_;
- PreparedFileImportJob* _tmp106_;
- ReadyForImport* _tmp107_;
- BatchImportResult* _tmp108_;
- CompletedImportObject* _tmp109_;
- CompletedImportObject* _tmp110_;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp96_ = self->priv->ready_thumbnails;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp97_ = source;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp98_ = job;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp99_ = _tmp98_->ready;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp100_ = ready_for_import_get_thumbnails (_tmp99_);
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp101_ = _tmp100_;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp102_ = job;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp103_ = _tmp102_->ready;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp104_ = _tmp103_->prepared_file;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp105_ = _tmp104_->job;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp106_ = job;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp107_ = _tmp106_->ready;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp108_ = _tmp107_->batch_result;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp109_ = completed_import_object_new (_tmp97_, _tmp101_, _tmp105_, _tmp108_);
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp110_ = _tmp109_;
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, GEE_TYPE_COLLECTION, GeeCollection), _tmp110_);
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (_tmp110_);
-#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp101_);
-#line 9321 "BatchImport.c"
- }
-#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (source);
-#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (tombstone);
-#line 9327 "BatchImport.c"
- }
-#line 1089 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_flush_import_jobs (self);
-#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (job);
-#line 9333 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_import_files_cancelled (BatchImport* self,
- BackgroundJob* j)
-{
- gboolean _tmp0_;
- PreparedFileImportJob* job = NULL;
- PreparedFileImportJob* _tmp1_;
- PreparedFileImportJob* _tmp2_;
- PreparedFile* _tmp3_;
- PreparedFileImportJob* _tmp22_;
- BatchImportResult* _tmp23_;
- PreparedFileImportJob* _tmp26_;
- ReadyForImport* _tmp27_;
-#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1093 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 1093 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (!_tmp0_, "!completed");
-#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob));
-#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp1_;
-#line 1097 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, "on_import_files_cancelled");
-#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = job;
-#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_->not_ready;
-#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_ != NULL) {
-#line 9370 "BatchImport.c"
- PreparedFileImportJob* _tmp4_;
- PreparedFile* _tmp5_;
- BatchImportJob* _tmp6_;
- PreparedFileImportJob* _tmp7_;
- PreparedFile* _tmp8_;
- GFile* _tmp9_;
- PreparedFileImportJob* _tmp10_;
- PreparedFile* _tmp11_;
- GFile* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- PreparedFileImportJob* _tmp15_;
- PreparedFile* _tmp16_;
- GFile* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- BatchImportResult* _tmp20_;
- BatchImportResult* _tmp21_;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = job;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->not_ready;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_->job;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = job;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_->not_ready;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->file;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = job;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_->not_ready;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_->file;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = g_file_get_path (_tmp12_);
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = job;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_->not_ready;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_->file;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = g_file_get_path (_tmp17_);
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = batch_import_result_new (_tmp6_, _tmp9_, _tmp14_, _tmp19_, NULL, IMPORT_RESULT_USER_ABORT);
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _tmp20_;
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp21_);
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_tmp21_);
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp19_);
-#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp14_);
-#line 1103 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 9435 "BatchImport.c"
- }
-#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = job;
-#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_->failed;
-#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp23_ != NULL) {
-#line 9443 "BatchImport.c"
- PreparedFileImportJob* _tmp24_;
- BatchImportResult* _tmp25_;
-#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = job;
-#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp24_->failed;
-#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp25_);
-#line 1108 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 9454 "BatchImport.c"
- }
-#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = job;
-#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_->ready;
-#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp27_ != NULL) {
-#line 9462 "BatchImport.c"
- PreparedFileImportJob* _tmp28_;
- ReadyForImport* _tmp29_;
- BatchImportResult* _tmp30_;
- BatchImportResult* _tmp31_;
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = job;
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _tmp28_->ready;
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = ready_for_import_abort (_tmp29_);
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _tmp30_;
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp31_);
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_tmp31_);
-#line 1113 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 9481 "BatchImport.c"
- }
-#line 1116 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_flush_import_jobs (self);
-#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (job);
-#line 9487 "BatchImport.c"
-}
-
-
-static gpointer
-_completed_import_object_ref0 (gpointer self)
-{
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? completed_import_object_ref (self) : NULL;
-#line 9496 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_thumbnail_writer_completed (BatchImport* self,
- BackgroundJob* j)
-{
- gboolean _tmp0_;
- ThumbnailWriterJob* job = NULL;
- ThumbnailWriterJob* _tmp1_;
- CompletedImportObject* completed = NULL;
- ThumbnailWriterJob* _tmp2_;
- CompletedImportObject* _tmp3_;
- CompletedImportObject* _tmp4_;
- CompletedImportObject* _tmp5_;
- BatchImportResult* _tmp6_;
- ImportResult _tmp7_;
-#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1127 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 1127 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (!_tmp0_, "!completed");
-#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob));
-#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp1_;
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = job;
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_->completed_import_source;
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _completed_import_object_ref0 (_tmp3_);
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed = _tmp4_;
-#line 1132 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, "on_thumbnail_writer_completed");
-#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = completed;
-#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_->batch_result;
-#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_->result;
-#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp7_ != IMPORT_RESULT_SUCCESS) {
-#line 9544 "BatchImport.c"
- CompletedImportObject* _tmp8_;
- MediaSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- CompletedImportObject* _tmp12_;
- BatchImportResult* _tmp13_;
- ImportResult _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- CompletedImportObject* _tmp17_;
- MediaSource* _tmp18_;
- CompletedImportObject* _tmp25_;
- BatchImportResult* _tmp26_;
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = completed;
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->source;
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_;
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = completed;
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_->batch_result;
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_->result;
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = import_result_to_string (_tmp14_);
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_;
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1135: Failed to import %s: unable to write thumbnails" \
-" (%s)", _tmp11_, _tmp16_);
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp16_);
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp11_);
-#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = completed;
-#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _tmp17_->source;
-#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_LIBRARY_PHOTO)) {
-#line 9588 "BatchImport.c"
- CompletedImportObject* _tmp19_;
- MediaSource* _tmp20_;
-#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = completed;
-#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_->source;
-#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala"
- library_photo_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp20_) : NULL);
-#line 9597 "BatchImport.c"
- } else {
- CompletedImportObject* _tmp21_;
- MediaSource* _tmp22_;
-#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = completed;
-#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = _tmp21_->source;
-#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_VIDEO)) {
-#line 9607 "BatchImport.c"
- CompletedImportObject* _tmp23_;
- MediaSource* _tmp24_;
-#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = completed;
-#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _tmp23_->source;
-#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- video_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, TYPE_VIDEO) ? ((Video*) _tmp24_) : NULL);
-#line 9616 "BatchImport.c"
- }
- }
-#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = completed;
-#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = _tmp25_->batch_result;
-#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp26_);
-#line 1144 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 9627 "BatchImport.c"
- } else {
- ImportManifest* _tmp27_;
- GeeList* _tmp28_;
- CompletedImportObject* _tmp29_;
- MediaSource* _tmp30_;
- ImportManifest* _tmp31_;
- CompletedImportObject* _tmp32_;
- BatchImportResult* _tmp33_;
- GeeList* _tmp34_;
- CompletedImportObject* _tmp35_;
-#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = self->priv->manifest;
-#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _tmp27_->imported;
-#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = completed;
-#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp29_->source;
-#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), _tmp30_);
-#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = self->priv->manifest;
-#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = completed;
-#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = _tmp32_->batch_result;
-#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (_tmp31_, _tmp33_);
-#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = self->priv->display_imported_queue;
-#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = completed;
-#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), _tmp35_);
-#line 9662 "BatchImport.c"
- }
-#line 1152 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_flush_import_jobs (self);
-#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (completed);
-#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (job);
-#line 9670 "BatchImport.c"
-}
-
-
-static void
-batch_import_on_thumbnail_writer_cancelled (BatchImport* self,
- BackgroundJob* j)
-{
- gboolean _tmp0_;
- ThumbnailWriterJob* job = NULL;
- ThumbnailWriterJob* _tmp1_;
- CompletedImportObject* completed = NULL;
- ThumbnailWriterJob* _tmp2_;
- CompletedImportObject* _tmp3_;
- CompletedImportObject* _tmp4_;
- CompletedImportObject* _tmp5_;
- MediaSource* _tmp6_;
- CompletedImportObject* _tmp13_;
- BatchImportResult* _tmp14_;
-#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1156 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->completed;
-#line 1156 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (!_tmp0_, "!completed");
-#line 1158 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob));
-#line 1158 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp1_;
-#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = job;
-#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_->completed_import_source;
-#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _completed_import_object_ref0 (_tmp3_);
-#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed = _tmp4_;
-#line 1161 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, "on_thumbnail_writer_cancelled");
-#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = completed;
-#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_->source;
-#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_PHOTO)) {
-#line 9717 "BatchImport.c"
- CompletedImportObject* _tmp7_;
- MediaSource* _tmp8_;
-#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = completed;
-#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_->source;
-#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala"
- library_photo_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp8_) : NULL);
-#line 9726 "BatchImport.c"
- } else {
- CompletedImportObject* _tmp9_;
- MediaSource* _tmp10_;
-#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = completed;
-#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _tmp9_->source;
-#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_VIDEO)) {
-#line 9736 "BatchImport.c"
- CompletedImportObject* _tmp11_;
- MediaSource* _tmp12_;
-#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = completed;
-#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_->source;
-#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala"
- video_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_VIDEO) ? ((Video*) _tmp12_) : NULL);
-#line 9745 "BatchImport.c"
- }
- }
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = completed;
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_->batch_result;
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp14_);
-#line 1169 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 1171 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_flush_import_jobs (self);
-#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (completed);
-#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (job);
-#line 9762 "BatchImport.c"
-}
-
-
-static void
-batch_import_flush_ready_sources (BatchImport* self)
-{
- GeeList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GeeList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- GeeArrayList* all = NULL;
- GeeArrayList* _tmp8_;
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp9_;
- GeeArrayList* videos = NULL;
- GeeArrayList* _tmp10_;
- GeeHashMap* completion_list = NULL;
- GeeHashMap* _tmp11_;
- MediaCollectionRegistry* _tmp41_;
- MediaCollectionRegistry* _tmp42_;
- EventSourceCollection* _tmp43_;
- TagSourceCollection* _tmp44_;
- LibraryPhotoSourceCollection* _tmp45_;
- GeeArrayList* _tmp46_;
- VideoSourceCollection* _tmp47_;
- GeeArrayList* _tmp48_;
- GeeArrayList* _tmp69_;
- BatchImportRoll* _tmp70_;
- ViewCollection* _tmp71_;
- TagSourceCollection* _tmp72_;
- EventSourceCollection* _tmp73_;
- MediaCollectionRegistry* _tmp74_;
- MediaCollectionRegistry* _tmp75_;
- GeeList* _tmp76_;
- GError * _inner_error_ = NULL;
-#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->ready_sources;
-#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _tmp1_;
-#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_ == 0) {
-#line 1180 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 9814 "BatchImport.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->ready_sources;
-#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_;
-#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = g_strdup_printf ("flush_ready_sources (%d)", _tmp5_);
-#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, _tmp7_);
-#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp7_);
-#line 1187 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1187 "/home/jens/Source/shotwell/src/BatchImport.vala"
- all = _tmp8_;
-#line 1188 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1188 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photos = _tmp9_;
-#line 1189 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1189 "/home/jens/Source/shotwell/src/BatchImport.vala"
- videos = _tmp10_;
-#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_BATCH_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completion_list = _tmp11_;
-#line 9846 "BatchImport.c"
- {
- GeeList* _completed_list = NULL;
- GeeList* _tmp12_;
- GeeList* _tmp13_;
- gint _completed_size = 0;
- GeeList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _completed_index = 0;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->priv->ready_sources;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _g_object_ref0 (_tmp12_);
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_list = _tmp13_;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _completed_list;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_size = _tmp16_;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_index = -1;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 9874 "BatchImport.c"
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- CompletedImportObject* completed = NULL;
- GeeList* _tmp20_;
- gint _tmp21_;
- gpointer _tmp22_;
- GeeArrayList* _tmp23_;
- CompletedImportObject* _tmp24_;
- MediaSource* _tmp25_;
- CompletedImportObject* _tmp26_;
- MediaSource* _tmp27_;
- GeeHashMap* _tmp36_;
- CompletedImportObject* _tmp37_;
- MediaSource* _tmp38_;
- CompletedImportObject* _tmp39_;
- BatchImportJob* _tmp40_;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _completed_index;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_index = _tmp17_ + 1;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _completed_index;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _completed_size;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp18_ < _tmp19_)) {
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 9904 "BatchImport.c"
- }
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _completed_list;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _completed_index;
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = gee_list_get (_tmp20_, _tmp21_);
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed = (CompletedImportObject*) _tmp22_;
-#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = all;
-#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = completed;
-#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp24_->source;
-#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp25_);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = completed;
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_->source;
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, TYPE_LIBRARY_PHOTO)) {
-#line 9928 "BatchImport.c"
- GeeArrayList* _tmp28_;
- CompletedImportObject* _tmp29_;
- MediaSource* _tmp30_;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = photos;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = completed;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp29_->source;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 9940 "BatchImport.c"
- } else {
- CompletedImportObject* _tmp31_;
- MediaSource* _tmp32_;
-#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = completed;
-#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _tmp31_->source;
-#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, TYPE_VIDEO)) {
-#line 9950 "BatchImport.c"
- GeeArrayList* _tmp33_;
- CompletedImportObject* _tmp34_;
- MediaSource* _tmp35_;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = videos;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = completed;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = _tmp34_->source;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_VIDEO, Video));
-#line 9962 "BatchImport.c"
- }
- }
-#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = completion_list;
-#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = completed;
-#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = _tmp37_->source;
-#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = completed;
-#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = _tmp39_->original_job;
-#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp38_, _tmp40_);
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (completed);
-#line 9979 "BatchImport.c"
- }
-#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_completed_list);
-#line 9983 "BatchImport.c"
- }
-#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = media_collection_registry_get_instance ();
-#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = _tmp41_;
-#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_collection_registry_begin_transaction_on_all (_tmp42_);
-#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_collection_registry_unref0 (_tmp42_);
-#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = event_global;
-#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1205 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = tag_global;
-#line 1205 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = library_photo_global;
-#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = photos;
-#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_collection_import_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = video_global;
-#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = videos;
-#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_collection_import_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 10013 "BatchImport.c"
- {
- GeeIterator* _media_it = NULL;
- GeeHashMap* _tmp49_;
- GeeSet* _tmp50_;
- GeeSet* _tmp51_;
- GeeSet* _tmp52_;
- GeeIterator* _tmp53_;
- GeeIterator* _tmp54_;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = completion_list;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = _tmp50_;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = _tmp51_;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = _tmp53_;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp52_);
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_it = _tmp54_;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 10040 "BatchImport.c"
- GeeIterator* _tmp55_;
- MediaSource* media = NULL;
- GeeIterator* _tmp56_;
- gpointer _tmp57_;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = _media_it;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!gee_iterator_next (_tmp55_)) {
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 10051 "BatchImport.c"
- }
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = _media_it;
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = gee_iterator_get (_tmp56_);
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media = (MediaSource*) _tmp57_;
-#line 10059 "BatchImport.c"
- {
- GeeHashMap* _tmp58_;
- MediaSource* _tmp59_;
- gpointer _tmp60_;
- BatchImportJob* _tmp61_;
- MediaSource* _tmp62_;
- BatchImportRoll* _tmp63_;
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = completion_list;
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = media;
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp59_);
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = (BatchImportJob*) _tmp60_;
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = media;
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = self->priv->import_roll;
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_job_complete (_tmp61_, _tmp62_, _tmp63_, &_inner_error_);
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (_tmp61_);
-#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10085 "BatchImport.c"
- goto __catch425_g_error;
- }
- }
- goto __finally425;
- __catch425_g_error:
- {
- GError* err = NULL;
- MediaSource* _tmp64_;
- gchar* _tmp65_;
- gchar* _tmp66_;
- GError* _tmp67_;
- const gchar* _tmp68_;
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = media;
-#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_DATA_OBJECT, DataObject));
-#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = _tmp65_;
-#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = err;
-#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = _tmp67_->message;
-#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1215: Completion error when finalizing import of %s: " \
-"%s", _tmp66_, _tmp68_);
-#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp66_);
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 10118 "BatchImport.c"
- }
- __finally425:
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (media);
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_media_it);
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (completion_list);
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (videos);
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (photos);
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (all);
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.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 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 10141 "BatchImport.c"
- }
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (media);
-#line 10145 "BatchImport.c"
- }
-#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_media_it);
-#line 10149 "BatchImport.c"
- }
-#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = all;
-#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = self->priv->import_roll;
-#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = _tmp70_->generated_events;
-#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala"
- event_generate_many_events (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_COLLECTION, GeeCollection), _tmp71_);
-#line 1223 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = tag_global;
-#line 1223 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1224 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = event_global;
-#line 1224 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = media_collection_registry_get_instance ();
-#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = _tmp74_;
-#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_collection_registry_commit_transaction_on_all (_tmp75_);
-#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_collection_registry_unref0 (_tmp75_);
-#line 1227 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = self->priv->ready_sources;
-#line 1227 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (completion_list);
-#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (videos);
-#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (photos);
-#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (all);
-#line 10187 "BatchImport.c"
-}
-
-
-static gboolean
-batch_import_display_imported_timer (BatchImport* self)
-{
- gboolean result = FALSE;
- GeeList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GCancellable* _tmp4_;
- gint total = 0;
- GCancellable* _tmp8_;
- gint _tmp15_;
- GeeList* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- gboolean _tmp41_ = FALSE;
- GeeList* _tmp42_;
- gint _tmp43_;
- gint _tmp44_;
-#line 1232 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->display_imported_queue;
-#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _tmp1_;
-#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_ == 0) {
-#line 10219 "BatchImport.c"
- gboolean _tmp3_;
-#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->completed;
-#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = !_tmp3_;
-#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 10227 "BatchImport.c"
- }
-#line 1236 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->priv->cancellable;
-#line 1236 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_cancellable_is_cancelled (_tmp4_)) {
-#line 10233 "BatchImport.c"
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->display_imported_queue;
-#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1237: Importing %d photos at once", _tmp7_);
-#line 10245 "BatchImport.c"
- }
-#line 1239 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, "display_imported_timer");
-#line 1249 "/home/jens/Source/shotwell/src/BatchImport.vala"
- total = 1;
-#line 1250 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->priv->cancellable;
-#line 1250 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!g_cancellable_is_cancelled (_tmp8_)) {
-#line 10255 "BatchImport.c"
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->priv->display_imported_queue;
-#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_;
-#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp11_ > BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW) {
-#line 10267 "BatchImport.c"
- GeeList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->priv->display_imported_queue;
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_;
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
- total = 1 << CLAMP ((_tmp14_ / BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW) + 2, 0, 16);
-#line 10279 "BatchImport.c"
- }
- } else {
-#line 1256 "/home/jens/Source/shotwell/src/BatchImport.vala"
- total = BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW;
-#line 10284 "BatchImport.c"
- }
-#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = total;
-#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = self->priv->display_imported_queue;
-#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _tmp17_;
-#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- total = MIN (_tmp15_, _tmp18_);
-#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 10298 "BatchImport.c"
- gint _tmp19_;
- CompletedImportObject* completed_object = NULL;
- GeeList* _tmp20_;
- gpointer _tmp21_;
- GdkPixbuf* user_preview = NULL;
- CompletedImportObject* _tmp22_;
- GdkPixbuf* _tmp23_;
- GdkPixbuf* _tmp24_;
- CompletedImportObject* _tmp25_;
- CompletedImportObject* _tmp26_;
- GeeList* _tmp27_;
- CompletedImportObject* _tmp28_;
- CompletedImportObject* _tmp29_;
- MediaSource* _tmp30_;
- GdkPixbuf* _tmp31_;
- gint _tmp32_;
- CompletedImportObject* _tmp33_;
- MediaSource* _tmp34_;
-#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = total;
-#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
- total = _tmp19_ - 1;
-#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp19_ > 0)) {
-#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 10325 "BatchImport.c"
- }
-#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = self->priv->display_imported_queue;
-#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = gee_list_remove_at (_tmp20_, 0);
-#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed_object = (CompletedImportObject*) _tmp21_;
-#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = completed_object;
-#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_->user_preview;
-#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _g_object_ref0 (_tmp23_);
-#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala"
- user_preview = _tmp24_;
-#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = completed_object;
-#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp25_->user_preview);
-#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_->user_preview = NULL;
-#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = completed_object;
-#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp26_->thumbnails);
-#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_->thumbnails = NULL;
-#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = self->priv->ready_sources;
-#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = completed_object;
-#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_);
-#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = completed_object;
-#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp29_->source;
-#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = user_preview;
-#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = total;
-#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORTED_SIGNAL], 0, _tmp30_, _tmp31_, _tmp32_);
-#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = completed_object;
-#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _tmp33_->source;
-#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp34_, TYPE_PHOTO_SOURCE)) {
-#line 10375 "BatchImport.c"
- PhotoSource* photo_source = NULL;
- CompletedImportObject* _tmp35_;
- MediaSource* _tmp36_;
- PhotoSource* _tmp37_;
- PhotoSource* _tmp38_;
-#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = completed_object;
-#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = _tmp35_->source;
-#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp36_, TYPE_PHOTO_SOURCE) ? ((PhotoSource*) _tmp36_) : NULL);
-#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_source = _tmp37_;
-#line 1289 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = photo_source;
-#line 1289 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (self, media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_MEDIA_SOURCE, MediaSource)));
-#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (photo_source);
-#line 10395 "BatchImport.c"
- } else {
- CompletedImportObject* _tmp39_;
- MediaSource* _tmp40_;
-#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = completed_object;
-#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = _tmp39_->source;
-#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (self, media_source_get_filesize (_tmp40_));
-#line 10405 "BatchImport.c"
- }
-#line 1293 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (user_preview);
-#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (completed_object);
-#line 10413 "BatchImport.c"
- }
-#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = self->priv->ready_sources;
-#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = _tmp43_;
-#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp44_ >= BATCH_IMPORT_READY_SOURCES_COUNT_OVERFLOW) {
-#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = TRUE;
-#line 10425 "BatchImport.c"
- } else {
- GCancellable* _tmp45_;
-#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = self->priv->cancellable;
-#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = g_cancellable_is_cancelled (_tmp45_);
-#line 10432 "BatchImport.c"
- }
-#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp41_) {
-#line 1297 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_flush_ready_sources (self);
-#line 10438 "BatchImport.c"
- }
-#line 1299 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = TRUE;
-#line 1299 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 10444 "BatchImport.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__UINT64_UINT64) (gpointer data1, guint64 arg_1, guint64 arg_2, gpointer data2);
- register GMarshalFunc_VOID__UINT64_UINT64 callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (n_param_values == 3);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = closure->data;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = param_values->data[0].v_pointer;
-#line 10470 "BatchImport.c"
- } else {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = param_values->data[0].v_pointer;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = closure->data;
-#line 10476 "BatchImport.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback = (GMarshalFunc_VOID__UINT64_UINT64) (marshal_data ? marshal_data : cc->callback);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback (data1, g_value_get_uint64 (param_values + 1), g_value_get_uint64 (param_values + 2), data2);
-#line 10482 "BatchImport.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_INT) (gpointer data1, gpointer arg_1, gpointer arg_2, gint arg_3, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT_INT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (n_param_values == 4);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = closure->data;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = param_values->data[0].v_pointer;
-#line 10508 "BatchImport.c"
- } else {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = param_values->data[0].v_pointer;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = closure->data;
-#line 10514 "BatchImport.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT_INT) (marshal_data ? marshal_data : cc->callback);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_int (param_values + 3), data2);
-#line 10520 "BatchImport.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__ENUM_STRING (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__ENUM_STRING) (gpointer data1, gint arg_1, const char* arg_2, gpointer data2);
- register GMarshalFunc_VOID__ENUM_STRING callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (n_param_values == 3);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = closure->data;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = param_values->data[0].v_pointer;
-#line 10546 "BatchImport.c"
- } else {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = param_values->data[0].v_pointer;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = closure->data;
-#line 10552 "BatchImport.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback = (GMarshalFunc_VOID__ENUM_STRING) (marshal_data ? marshal_data : cc->callback);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback (data1, g_value_get_enum (param_values + 1), g_value_get_string (param_values + 2), data2);
-#line 10558 "BatchImport.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__BATCH_IMPORT_RESULT) (gpointer data1, gpointer arg_1, gpointer data2);
- register GMarshalFunc_VOID__BATCH_IMPORT_RESULT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (n_param_values == 2);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = closure->data;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = param_values->data[0].v_pointer;
-#line 10584 "BatchImport.c"
- } else {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = param_values->data[0].v_pointer;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = closure->data;
-#line 10590 "BatchImport.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback = (GMarshalFunc_VOID__BATCH_IMPORT_RESULT) (marshal_data ? marshal_data : cc->callback);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback (data1, value_get_batch_import_result (param_values + 1), data2);
-#line 10596 "BatchImport.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (n_param_values == 3);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = closure->data;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = param_values->data[0].v_pointer;
-#line 10622 "BatchImport.c"
- } else {
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data1 = param_values->data[0].v_pointer;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data2 = closure->data;
-#line 10628 "BatchImport.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback = (GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL) (marshal_data ? marshal_data : cc->callback);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- callback (data1, value_get_import_manifest (param_values + 1), value_get_batch_import_roll (param_values + 2), data2);
-#line 10634 "BatchImport.c"
-}
-
-
-static void
-batch_import_class_init (BatchImportClass * klass)
-{
- Workers* _tmp0_;
- Workers* _tmp1_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_parent_class = g_type_class_peek_parent (klass);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_class_add_private (klass, sizeof (BatchImportPrivate));
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_OBJECT_CLASS (klass)->finalize = batch_import_finalize;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_signals[BATCH_IMPORT_STARTING_SIGNAL] = g_signal_new ("starting", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_signals[BATCH_IMPORT_PREPARING_SIGNAL] = g_signal_new ("preparing", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_signals[BATCH_IMPORT_PROGRESS_SIGNAL] = 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 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_signals[BATCH_IMPORT_IMPORTED_SIGNAL] = 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 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_signals[BATCH_IMPORT_FATAL_ERROR_SIGNAL] = 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 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_signals[BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL] = g_signal_new ("import-job-failed", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT, G_TYPE_NONE, 1, TYPE_BATCH_IMPORT_RESULT);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_signals[BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL] = g_signal_new ("import-complete", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL, G_TYPE_NONE, 2, TYPE_IMPORT_MANIFEST, TYPE_BATCH_IMPORT_ROLL);
-#line 429 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = workers_new ((guint) 1, FALSE);
-#line 429 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_feeder_workers = _tmp0_;
-#line 430 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = workers_new (workers_thread_per_cpu_minus_one (), FALSE);
-#line 430 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_import_workers = _tmp1_;
-#line 10671 "BatchImport.c"
-}
-
-
-static void
-batch_import_instance_init (BatchImport * self)
-{
- GeeHashMap* _tmp0_;
- GeeLinkedList* _tmp1_;
- GeeLinkedList* _tmp2_;
- GeeLinkedList* _tmp3_;
- GeeLinkedList* _tmp4_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv = BATCH_IMPORT_GET_PRIVATE (self);
-#line 435 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->completed_bytes = (guint64) 0;
-#line 436 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->total_bytes = (guint64) 0;
-#line 439 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->scheduled = FALSE;
-#line 440 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->completed = FALSE;
-#line 441 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file_imports_to_perform = -1;
-#line 442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file_imports_completed = 0;
-#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->cancellable = NULL;
-#line 444 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->last_preparing_ms = (gulong) 0;
-#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->imported_full_md5_table = _tmp0_;
-#line 449 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->throbber_id = (guint) 0;
-#line 450 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->max_outstanding_import_jobs = workers_thread_per_cpu_minus_one ();
-#line 451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->untrash_duplicates = TRUE;
-#line 452 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->mark_duplicates_online = TRUE;
-#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = gee_linked_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL);
-#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->ready_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList);
-#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL);
-#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->ready_thumbnails = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
-#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL);
-#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->display_imported_queue = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList);
-#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL);
-#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->ready_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList);
-#line 10729 "BatchImport.c"
-}
-
-
-static void
-batch_import_finalize (GObject * obj)
-{
- BatchImport * self;
- Application* _tmp0_;
- Application* _tmp1_;
- guint _tmp2_;
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT, BatchImport);
-#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = application_get_instance ();
-#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _tmp0_;
-#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_parse_name ("exiting", TYPE_APPLICATION, &_tmp2_, NULL, FALSE);
-#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _batch_import_user_halt_application_exiting, self);
-#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _application_unref0 (_tmp1_);
-#line 432 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->jobs);
-#line 433 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_roll_unref0 (self->priv->import_roll);
-#line 434 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->priv->name);
-#line 438 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_manifest_unref0 (self->priv->manifest);
-#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 445 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->skipset);
-#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->imported_full_md5_table);
-#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->ready_files);
-#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->ready_thumbnails);
-#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->display_imported_queue);
-#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->ready_sources);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_OBJECT_CLASS (batch_import_parent_class)->finalize (obj);
-#line 10776 "BatchImport.c"
-}
-
-
-GType
-batch_import_get_type (void)
-{
- static volatile gsize batch_import_type_id__volatile = 0;
- if (g_once_init_enter (&batch_import_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (BatchImportClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImport), 0, (GInstanceInitFunc) batch_import_instance_init, NULL };
- GType batch_import_type_id;
- batch_import_type_id = g_type_register_static (G_TYPE_OBJECT, "BatchImport", &g_define_type_info, 0);
- g_once_init_leave (&batch_import_type_id__volatile, batch_import_type_id);
- }
- return batch_import_type_id__volatile;
-}
-
-
-static DuplicatedFile*
-duplicated_file_construct (GType object_type)
-{
- DuplicatedFile * self = NULL;
-#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (DuplicatedFile*) g_object_new (object_type, NULL);
-#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _video_id_free0 (self->priv->video_id);
-#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->video_id = NULL;
-#line 1310 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_id_free0 (self->priv->photo_id);
-#line 1310 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->photo_id = NULL;
-#line 1311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->file);
-#line 1311 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file = NULL;
-#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 10814 "BatchImport.c"
-}
-
-
-static DuplicatedFile*
-duplicated_file_new (void)
-{
-#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return duplicated_file_construct (TYPE_DUPLICATED_FILE);
-#line 10823 "BatchImport.c"
-}
-
-
-static gpointer
-_photo_id_dup0 (gpointer self)
-{
-#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? photo_id_dup (self) : NULL;
-#line 10832 "BatchImport.c"
-}
-
-
-DuplicatedFile*
-duplicated_file_create_from_photo_id (PhotoID* photo_id)
-{
- DuplicatedFile* result = NULL;
- DuplicatedFile* _result_ = NULL;
- DuplicatedFile* _tmp0_;
- PhotoID _tmp1_;
- PhotoID* _tmp2_;
-#line 1314 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (photo_id != NULL, NULL);
-#line 1315 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (photo_id_is_valid (photo_id), "photo_id.is_valid()");
-#line 1317 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = duplicated_file_new ();
-#line 1317 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp0_;
-#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = *photo_id;
-#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _photo_id_dup0 (&_tmp1_);
-#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_id_free0 (_result_->priv->photo_id);
-#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_->priv->photo_id = _tmp2_;
-#line 1319 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _result_;
-#line 1319 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 10864 "BatchImport.c"
-}
-
-
-static gpointer
-_video_id_dup0 (gpointer self)
-{
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? video_id_dup (self) : NULL;
-#line 10873 "BatchImport.c"
-}
-
-
-DuplicatedFile*
-duplicated_file_create_from_video_id (VideoID* video_id)
-{
- DuplicatedFile* result = NULL;
- DuplicatedFile* _result_ = NULL;
- DuplicatedFile* _tmp0_;
- VideoID _tmp1_;
- VideoID* _tmp2_;
-#line 1322 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (video_id != NULL, NULL);
-#line 1323 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (video_id_is_valid (video_id), "video_id.is_valid()");
-#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = duplicated_file_new ();
-#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp0_;
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = *video_id;
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _video_id_dup0 (&_tmp1_);
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _video_id_free0 (_result_->priv->video_id);
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_->priv->video_id = _tmp2_;
-#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _result_;
-#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 10905 "BatchImport.c"
-}
-
-
-DuplicatedFile*
-duplicated_file_create_from_file (GFile* file)
-{
- DuplicatedFile* result = NULL;
- DuplicatedFile* _result_ = NULL;
- DuplicatedFile* _tmp0_;
- GFile* _tmp1_;
-#line 1330 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = duplicated_file_new ();
-#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp0_;
-#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (file);
-#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_result_->priv->file);
-#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_->priv->file = _tmp1_;
-#line 1335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _result_;
-#line 1335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 10932 "BatchImport.c"
-}
-
-
-GFile*
-duplicated_file_get_file (DuplicatedFile* self)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
-#line 1338 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_DUPLICATED_FILE (self), NULL);
-#line 1339 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->file;
-#line 1339 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_ != NULL) {
-#line 10947 "BatchImport.c"
- GFile* _tmp1_;
- GFile* _tmp2_;
-#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->priv->file;
-#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp2_;
-#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 10958 "BatchImport.c"
- } else {
- PhotoID* _tmp3_;
-#line 1341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->photo_id;
-#line 1341 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_ != NULL) {
-#line 10965 "BatchImport.c"
- Photo* photo_object = NULL;
- LibraryPhotoSourceCollection* _tmp4_;
- PhotoID* _tmp5_;
- PhotoID _tmp6_;
- LibraryPhoto* _tmp7_;
- Photo* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
-#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = library_photo_global;
-#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->photo_id;
-#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = *_tmp5_;
-#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = library_photo_source_collection_fetch (_tmp4_, &_tmp6_);
-#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_object = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo);
-#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = photo_object;
-#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->file);
-#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file = _tmp9_;
-#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->priv->file;
-#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp11_;
-#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (photo_object);
-#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 11003 "BatchImport.c"
- } else {
- VideoID* _tmp12_;
-#line 1345 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->priv->video_id;
-#line 1345 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp12_ != NULL) {
-#line 11010 "BatchImport.c"
- Video* video_object = NULL;
- VideoSourceCollection* _tmp13_;
- VideoID* _tmp14_;
- VideoID _tmp15_;
- Video* _tmp16_;
- Video* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
- GFile* _tmp20_;
-#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = video_global;
-#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->priv->video_id;
-#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = *_tmp14_;
-#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = video_source_collection_fetch (_tmp13_, &_tmp15_);
-#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
- video_object = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_VIDEO, Video);
-#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = video_object;
-#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->file);
-#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file = _tmp18_;
-#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = self->priv->file;
-#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _g_object_ref0 (_tmp19_);
-#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp20_;
-#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (video_object);
-#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 11048 "BatchImport.c"
- } else {
-#line 1350 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_assert_not_reached ();
-#line 11052 "BatchImport.c"
- }
- }
- }
-}
-
-
-static void
-duplicated_file_class_init (DuplicatedFileClass * klass)
-{
-#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- duplicated_file_parent_class = g_type_class_peek_parent (klass);
-#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_class_add_private (klass, sizeof (DuplicatedFilePrivate));
-#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_OBJECT_CLASS (klass)->finalize = duplicated_file_finalize;
-#line 11068 "BatchImport.c"
-}
-
-
-static void
-duplicated_file_instance_init (DuplicatedFile * self)
-{
-#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv = DUPLICATED_FILE_GET_PRIVATE (self);
-#line 11077 "BatchImport.c"
-}
-
-
-static void
-duplicated_file_finalize (GObject * obj)
-{
- DuplicatedFile * self;
-#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DUPLICATED_FILE, DuplicatedFile);
-#line 1304 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _video_id_free0 (self->priv->video_id);
-#line 1305 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_id_free0 (self->priv->photo_id);
-#line 1306 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->file);
-#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_OBJECT_CLASS (duplicated_file_parent_class)->finalize (obj);
-#line 11095 "BatchImport.c"
-}
-
-
-GType
-duplicated_file_get_type (void)
-{
- static volatile gsize duplicated_file_type_id__volatile = 0;
- if (g_once_init_enter (&duplicated_file_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DuplicatedFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) duplicated_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DuplicatedFile), 0, (GInstanceInitFunc) duplicated_file_instance_init, NULL };
- GType duplicated_file_type_id;
- duplicated_file_type_id = g_type_register_static (G_TYPE_OBJECT, "DuplicatedFile", &g_define_type_info, 0);
- g_once_init_leave (&duplicated_file_type_id__volatile, duplicated_file_type_id);
- }
- return duplicated_file_type_id__volatile;
-}
-
-
-BackgroundImportJob*
-background_import_job_construct (GType object_type,
- BatchImport* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target)
-{
- BackgroundImportJob* self = NULL;
-#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1379 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (BackgroundImportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), callback, callback_target, cancellable, cancellation, cancellation_target, NULL);
-#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 11131 "BatchImport.c"
-}
-
-
-ImportResult
-background_import_job_abort_check (BackgroundImportJob* self)
-{
- ImportResult result = 0;
- gboolean _tmp0_ = FALSE;
- ImportResult _tmp1_;
- ImportResult _tmp2_;
-#line 1384 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BACKGROUND_IMPORT_JOB (self), 0);
-#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->abort_flag;
-#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ == IMPORT_RESULT_SUCCESS) {
-#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 11150 "BatchImport.c"
- } else {
-#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = FALSE;
-#line 11154 "BatchImport.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_) {
-#line 1386 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->abort_flag = IMPORT_RESULT_USER_ABORT;
-#line 11160 "BatchImport.c"
- }
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->abort_flag;
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp2_;
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 11168 "BatchImport.c"
-}
-
-
-void
-background_import_job_abort (BackgroundImportJob* self,
- ImportResult _result_)
-{
- ImportResult _tmp0_;
-#line 1391 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self));
-#line 1393 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->abort_flag;
-#line 1393 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_ == IMPORT_RESULT_SUCCESS) {
-#line 1394 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->abort_flag = _result_;
-#line 11185 "BatchImport.c"
- }
-}
-
-
-void
-background_import_job_report_failure (BackgroundImportJob* self,
- BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- ImportResult _result_)
-{
- GeeList* _tmp2_;
- BatchImportResult* _tmp3_;
- BatchImportResult* _tmp4_;
-#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self));
-#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (job));
-#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail ((file == NULL) || G_IS_FILE (file));
-#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (src_identifier != NULL);
-#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (dest_identifier != NULL);
-#line 1399 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_result_ != IMPORT_RESULT_SUCCESS, "result != ImportResult.SUCCESS");
-#line 1402 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (import_result_is_abort (_result_)) {
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_abort (self, _result_);
-#line 11217 "BatchImport.c"
- } else {
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = import_result_to_string (_result_);
-#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _tmp0_;
-#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1405: Import failure %s: %s", src_identifier, _tmp1_);
-#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp1_);
-#line 11229 "BatchImport.c"
- }
-#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->failed;
-#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = batch_import_result_new (job, file, src_identifier, dest_identifier, NULL, _result_);
-#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_;
-#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), _tmp4_);
-#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_tmp4_);
-#line 11241 "BatchImport.c"
-}
-
-
-void
-background_import_job_report_error (BackgroundImportJob* self,
- BatchImportJob* job,
- GFile* file,
- const gchar* src_identifier,
- const gchar* dest_identifier,
- GError* err,
- ImportResult default_result)
-{
- ImportResult _result_ = 0;
- const gchar* _tmp0_;
- ImportResult _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- ImportResult _tmp4_;
- GeeList* _tmp6_;
- BatchImportResult* _tmp7_;
- BatchImportResult* _tmp8_;
-#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self));
-#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (job));
-#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail ((file == NULL) || G_IS_FILE (file));
-#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (src_identifier != NULL);
-#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (dest_identifier != NULL);
-#line 1413 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = import_result_convert_error (err, default_result);
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = err->message;
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _result_;
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = import_result_to_string (_tmp1_);
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_;
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1415: Import error %s: %s (%s)", src_identifier, _tmp0_, _tmp3_);
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp3_);
-#line 1417 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _result_;
-#line 1417 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (import_result_is_abort (_tmp4_)) {
-#line 11291 "BatchImport.c"
- ImportResult _tmp5_;
-#line 1418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _result_;
-#line 1418 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_abort (self, _tmp5_);
-#line 11297 "BatchImport.c"
- }
-#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->failed;
-#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = batch_import_result_new_from_error (job, file, src_identifier, dest_identifier, err, default_result);
-#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_;
-#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp8_);
-#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_tmp8_);
-#line 11309 "BatchImport.c"
-}
-
-
-static void
-background_import_job_class_init (BackgroundImportJobClass * klass)
-{
-#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->finalize = background_import_job_finalize;
-#line 11320 "BatchImport.c"
-}
-
-
-static void
-background_import_job_instance_init (BackgroundImportJob * self)
-{
- GeeArrayList* _tmp0_;
-#line 1374 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->abort_flag = IMPORT_RESULT_SUCCESS;
-#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 11334 "BatchImport.c"
-}
-
-
-static void
-background_import_job_finalize (BackgroundJob * obj)
-{
- BackgroundImportJob * self;
-#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob);
-#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->failed);
-#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BACKGROUND_JOB_CLASS (background_import_job_parent_class)->finalize (obj);
-#line 11348 "BatchImport.c"
-}
-
-
-GType
-background_import_job_get_type (void)
-{
- static volatile gsize background_import_job_type_id__volatile = 0;
- if (g_once_init_enter (&background_import_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (BackgroundImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundImportJob), 0, (GInstanceInitFunc) background_import_job_instance_init, NULL };
- GType background_import_job_type_id;
- background_import_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "BackgroundImportJob", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&background_import_job_type_id__volatile, background_import_job_type_id);
- }
- return background_import_job_type_id__volatile;
-}
-
-
-FileToPrepare*
-file_to_prepare_construct (GType object_type,
- BatchImportJob* job,
- GFile* file,
- gboolean copy_to_library)
-{
- FileToPrepare* self = NULL;
- BatchImportJob* _tmp0_;
- GFile* _tmp1_;
-#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL);
-#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (FileToPrepare*) g_type_create_instance (object_type);
-#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _batch_import_job_ref0 (job);
-#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->job);
-#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->job = _tmp0_;
-#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (file);
-#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->file);
-#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file = _tmp1_;
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->copy_to_library = copy_to_library;
-#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 11397 "BatchImport.c"
-}
-
-
-FileToPrepare*
-file_to_prepare_new (BatchImportJob* job,
- GFile* file,
- gboolean copy_to_library)
-{
-#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return file_to_prepare_construct (TYPE_FILE_TO_PREPARE, job, file, copy_to_library);
-#line 11408 "BatchImport.c"
-}
-
-
-static gpointer
-_file_to_prepare_ref0 (gpointer self)
-{
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? file_to_prepare_ref (self) : NULL;
-#line 11417 "BatchImport.c"
-}
-
-
-void
-file_to_prepare_set_associated (FileToPrepare* self,
- FileToPrepare* a)
-{
- FileToPrepare* _tmp0_;
-#line 1437 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_FILE_TO_PREPARE (self));
-#line 1437 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail ((a == NULL) || IS_FILE_TO_PREPARE (a));
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _file_to_prepare_ref0 (a);
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (self->associated);
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->associated = _tmp0_;
-#line 11436 "BatchImport.c"
-}
-
-
-gchar*
-file_to_prepare_get_parent_path (FileToPrepare* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- GFile* _tmp1_;
-#line 1441 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL);
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->file;
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != NULL) {
-#line 11452 "BatchImport.c"
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- gchar* _tmp5_;
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->file;
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_file_get_parent (_tmp2_);
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_;
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_file_get_path (_tmp4_);
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp0_);
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp5_;
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp4_);
-#line 11471 "BatchImport.c"
- } else {
- BatchImportJob* _tmp6_;
- gchar* _tmp7_;
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->job;
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = batch_import_job_get_path (_tmp6_);
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp0_);
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp7_;
-#line 11483 "BatchImport.c"
- }
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 11489 "BatchImport.c"
-}
-
-
-gchar*
-file_to_prepare_get_path (FileToPrepare* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- GFile* _tmp1_;
-#line 1445 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->file;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != NULL) {
-#line 11505 "BatchImport.c"
- GFile* _tmp2_;
- gchar* _tmp3_;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->file;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_file_get_path (_tmp2_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp0_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp3_;
-#line 11516 "BatchImport.c"
- } else {
- BatchImportJob* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
- BatchImportJob* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- gchar* _tmp14_;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->job;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = batch_import_job_get_path (_tmp4_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = g_file_new_for_path (_tmp6_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->job;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = batch_import_job_get_basename (_tmp9_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = g_file_get_child (_tmp8_, _tmp11_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = g_file_get_path (_tmp13_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp0_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp14_;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp13_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp11_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp8_);
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp6_);
-#line 11563 "BatchImport.c"
- }
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 11569 "BatchImport.c"
-}
-
-
-gchar*
-file_to_prepare_get_basename (FileToPrepare* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- GFile* _tmp1_;
-#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL);
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->file;
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != NULL) {
-#line 11585 "BatchImport.c"
- GFile* _tmp2_;
- gchar* _tmp3_;
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->file;
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_file_get_basename (_tmp2_);
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp0_);
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp3_;
-#line 11596 "BatchImport.c"
- } else {
- BatchImportJob* _tmp4_;
- gchar* _tmp5_;
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->job;
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = batch_import_job_get_basename (_tmp4_);
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp0_);
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp5_;
-#line 11608 "BatchImport.c"
- }
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 11614 "BatchImport.c"
-}
-
-
-gboolean
-file_to_prepare_is_directory (FileToPrepare* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_;
-#line 1454 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_TO_PREPARE (self), FALSE);
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->file;
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != NULL) {
-#line 11630 "BatchImport.c"
- GFile* _tmp2_;
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->file;
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = g_file_query_file_type (_tmp2_, G_FILE_QUERY_INFO_NONE, NULL) == G_FILE_TYPE_DIRECTORY;
-#line 11636 "BatchImport.c"
- } else {
- BatchImportJob* _tmp3_;
-#line 1456 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->job;
-#line 1456 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = batch_import_job_is_directory (_tmp3_);
-#line 11643 "BatchImport.c"
- }
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp0_;
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 11649 "BatchImport.c"
-}
-
-
-static void
-value_file_to_prepare_init (GValue* value)
-{
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 11658 "BatchImport.c"
-}
-
-
-static void
-value_file_to_prepare_free_value (GValue* value)
-{
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (value->data[0].v_pointer) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_unref (value->data[0].v_pointer);
-#line 11669 "BatchImport.c"
- }
-}
-
-
-static void
-value_file_to_prepare_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (src_value->data[0].v_pointer) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = file_to_prepare_ref (src_value->data[0].v_pointer);
-#line 11682 "BatchImport.c"
- } else {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 11686 "BatchImport.c"
- }
-}
-
-
-static gpointer
-value_file_to_prepare_peek_pointer (const GValue* value)
-{
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 11696 "BatchImport.c"
-}
-
-
-static gchar*
-value_file_to_prepare_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (collect_values[0].v_pointer) {
-#line 11708 "BatchImport.c"
- FileToPrepare * object;
- object = collect_values[0].v_pointer;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 11715 "BatchImport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.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 11719 "BatchImport.c"
- }
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = file_to_prepare_ref (object);
-#line 11723 "BatchImport.c"
- } else {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 11727 "BatchImport.c"
- }
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 11731 "BatchImport.c"
-}
-
-
-static gchar*
-value_file_to_prepare_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- FileToPrepare ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!object_p) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 11747 "BatchImport.c"
- }
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!value->data[0].v_pointer) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = NULL;
-#line 11753 "BatchImport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = value->data[0].v_pointer;
-#line 11757 "BatchImport.c"
- } else {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = file_to_prepare_ref (value->data[0].v_pointer);
-#line 11761 "BatchImport.c"
- }
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 11765 "BatchImport.c"
-}
-
-
-GParamSpec*
-param_spec_file_to_prepare (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecFileToPrepare* spec;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_FILE_TO_PREPARE), NULL);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return G_PARAM_SPEC (spec);
-#line 11785 "BatchImport.c"
-}
-
-
-gpointer
-value_get_file_to_prepare (const GValue* value)
-{
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE), NULL);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 11796 "BatchImport.c"
-}
-
-
-void
-value_set_file_to_prepare (GValue* value,
- gpointer v_object)
-{
- FileToPrepare * old;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE));
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_FILE_TO_PREPARE));
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_ref (value->data[0].v_pointer);
-#line 11819 "BatchImport.c"
- } else {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 11823 "BatchImport.c"
- }
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_unref (old);
-#line 11829 "BatchImport.c"
- }
-}
-
-
-void
-value_take_file_to_prepare (GValue* value,
- gpointer v_object)
-{
- FileToPrepare * old;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE));
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_FILE_TO_PREPARE));
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 11851 "BatchImport.c"
- } else {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 11855 "BatchImport.c"
- }
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_unref (old);
-#line 11861 "BatchImport.c"
- }
-}
-
-
-static void
-file_to_prepare_class_init (FileToPrepareClass * klass)
-{
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_parent_class = g_type_class_peek_parent (klass);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((FileToPrepareClass *) klass)->finalize = file_to_prepare_finalize;
-#line 11873 "BatchImport.c"
-}
-
-
-static void
-file_to_prepare_instance_init (FileToPrepare * self)
-{
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->associated = NULL;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ref_count = 1;
-#line 11884 "BatchImport.c"
-}
-
-
-static void
-file_to_prepare_finalize (FileToPrepare * obj)
-{
- FileToPrepare * self;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FILE_TO_PREPARE, FileToPrepare);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_destroy (self);
-#line 1426 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->job);
-#line 1427 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->file);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (self->associated);
-#line 11902 "BatchImport.c"
-}
-
-
-GType
-file_to_prepare_get_type (void)
-{
- static volatile gsize file_to_prepare_type_id__volatile = 0;
- if (g_once_init_enter (&file_to_prepare_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_file_to_prepare_init, value_file_to_prepare_free_value, value_file_to_prepare_copy_value, value_file_to_prepare_peek_pointer, "p", value_file_to_prepare_collect_value, "p", value_file_to_prepare_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (FileToPrepareClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) file_to_prepare_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FileToPrepare), 0, (GInstanceInitFunc) file_to_prepare_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType file_to_prepare_type_id;
- file_to_prepare_type_id = g_type_register_fundamental (g_type_fundamental_next (), "FileToPrepare", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&file_to_prepare_type_id__volatile, file_to_prepare_type_id);
- }
- return file_to_prepare_type_id__volatile;
-}
-
-
-gpointer
-file_to_prepare_ref (gpointer instance)
-{
- FileToPrepare * self;
- self = instance;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return instance;
-#line 11931 "BatchImport.c"
-}
-
-
-void
-file_to_prepare_unref (gpointer instance)
-{
- FileToPrepare * self;
- self = instance;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- FILE_TO_PREPARE_GET_CLASS (self)->finalize (self);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 11946 "BatchImport.c"
- }
-}
-
-
-WorkSniffer*
-work_sniffer_construct (GType object_type,
- BatchImport* owner,
- GeeIterable* jobs,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- GeeHashSet* skipset)
-{
- WorkSniffer* self = NULL;
- GeeIterable* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (jobs), NULL);
-#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((skipset == NULL) || GEE_IS_HASH_SET (skipset), NULL);
-#line 1469 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (WorkSniffer*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancellation, cancellation_target);
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _g_object_ref0 (jobs);
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->jobs);
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->jobs = _tmp0_;
-#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (skipset);
-#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->skipset);
-#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->skipset = _tmp1_;
-#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 11989 "BatchImport.c"
-}
-
-
-WorkSniffer*
-work_sniffer_new (BatchImport* owner,
- GeeIterable* jobs,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- GeeHashSet* skipset)
-{
-#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return work_sniffer_construct (TYPE_WORK_SNIFFER, owner, jobs, callback, callback_target, cancellable, cancellation, cancellation_target, skipset);
-#line 12005 "BatchImport.c"
-}
-
-
-static gint
-__lambda11_ (WorkSniffer* self,
- FileToPrepare* a,
- FileToPrepare* b)
-{
- gint result = 0;
- FileToPrepare* file_a = NULL;
- FileToPrepare* _tmp0_;
- FileToPrepare* file_b = NULL;
- FileToPrepare* _tmp1_;
- gchar* sa = NULL;
- gchar* _tmp2_;
- gchar* sb = NULL;
- gchar* _tmp3_;
-#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_TO_PREPARE (a), 0);
-#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_TO_PREPARE (b), 0);
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _file_to_prepare_ref0 (G_TYPE_CHECK_INSTANCE_CAST (a, TYPE_FILE_TO_PREPARE, FileToPrepare));
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_a = _tmp0_;
-#line 1509 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _file_to_prepare_ref0 (G_TYPE_CHECK_INSTANCE_CAST (b, TYPE_FILE_TO_PREPARE, FileToPrepare));
-#line 1509 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_b = _tmp1_;
-#line 1510 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = file_to_prepare_get_path (file_a);
-#line 1510 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sa = _tmp2_;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = file_to_prepare_get_path (file_b);
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sb = _tmp3_;
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = utf8_cs_compare (sa, sb);
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (sb);
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (sa);
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (file_b);
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (file_a);
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 12055 "BatchImport.c"
-}
-
-
-static gint
-___lambda11__gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = __lambda11_ ((WorkSniffer*) self, (FileToPrepare*) a, (FileToPrepare*) b);
-#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 12068 "BatchImport.c"
-}
-
-
-static void
-work_sniffer_real_execute (BackgroundJob* base)
-{
- WorkSniffer * self;
- GeeList* sorted = NULL;
- GeeArrayList* _tmp23_;
- GeeList* _tmp38_;
- GError * _inner_error_ = NULL;
-#line 1475 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_WORK_SNIFFER, WorkSniffer);
-#line 12082 "BatchImport.c"
- {
- GeeIterator* _job_it = NULL;
- GeeIterable* _tmp0_;
- GeeIterator* _tmp1_;
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->priv->jobs;
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = gee_iterable_iterator (_tmp0_);
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_it = _tmp1_;
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 12095 "BatchImport.c"
- GeeIterator* _tmp2_;
- BatchImportJob* job = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- ImportResult _result_ = 0;
- ImportResult _tmp5_;
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _job_it;
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 12108 "BatchImport.c"
- }
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _job_it;
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = (BatchImportJob*) _tmp4_;
-#line 1480 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 1481 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _result_;
-#line 1481 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp5_ != IMPORT_RESULT_SUCCESS) {
-#line 12122 "BatchImport.c"
- BatchImportJob* _tmp6_;
- BatchImportJob* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- BatchImportJob* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- ImportResult _tmp13_;
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = job;
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = job;
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = batch_import_job_get_source_identifier (_tmp7_);
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_;
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = job;
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = batch_import_job_get_dest_identifier (_tmp10_);
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_;
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _result_;
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp6_, NULL, _tmp9_, _tmp12_, _tmp13_);
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp12_);
-#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp9_);
-#line 1485 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (job);
-#line 1485 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 12157 "BatchImport.c"
- }
- {
- BatchImportJob* _tmp14_;
-#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = job;
-#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala"
- work_sniffer_sniff_job (self, _tmp14_, &_inner_error_);
-#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12167 "BatchImport.c"
- goto __catch426_g_error;
- }
- }
- goto __finally426;
- __catch426_g_error:
- {
- GError* err = NULL;
- BatchImportJob* _tmp15_;
- BatchImportJob* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- BatchImportJob* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GError* _tmp22_;
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = job;
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = job;
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = batch_import_job_get_source_identifier (_tmp16_);
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _tmp17_;
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = job;
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = batch_import_job_get_dest_identifier (_tmp19_);
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _tmp20_;
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = err;
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp15_, NULL, _tmp18_, _tmp21_, _tmp22_, IMPORT_RESULT_FILE_ERROR);
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp21_);
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp18_);
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 12211 "BatchImport.c"
- }
- __finally426:
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (job);
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_job_it);
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.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 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 12226 "BatchImport.c"
- }
-#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob))) {
-#line 1496 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (job);
-#line 1496 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 12234 "BatchImport.c"
- }
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (job);
-#line 12238 "BatchImport.c"
- }
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_job_it);
-#line 12242 "BatchImport.c"
- }
-#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = gee_array_list_new (TYPE_FILE_TO_PREPARE, (GBoxedCopyFunc) file_to_prepare_ref, (GDestroyNotify) file_to_prepare_unref, NULL, NULL, NULL);
-#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sorted = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_LIST, GeeList);
-#line 12248 "BatchImport.c"
- {
- GeeList* _ftp_list = NULL;
- GeeList* _tmp24_;
- GeeList* _tmp25_;
- gint _ftp_size = 0;
- GeeList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint _ftp_index = 0;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = self->files_to_prepare;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _g_object_ref0 (_tmp24_);
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ftp_list = _tmp25_;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = _ftp_list;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _tmp27_;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ftp_size = _tmp28_;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ftp_index = -1;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 12276 "BatchImport.c"
- gint _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- FileToPrepare* ftp = NULL;
- GeeList* _tmp32_;
- gint _tmp33_;
- gpointer _tmp34_;
- FileToPrepare* _tmp35_;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _ftp_index;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ftp_index = _tmp29_ + 1;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _ftp_index;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _ftp_size;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp30_ < _tmp31_)) {
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 12297 "BatchImport.c"
- }
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _ftp_list;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = _ftp_index;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = gee_list_get (_tmp32_, _tmp33_);
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ftp = (FileToPrepare*) _tmp34_;
-#line 1504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = ftp;
-#line 1504 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!file_to_prepare_is_directory (_tmp35_)) {
-#line 12311 "BatchImport.c"
- GeeList* _tmp36_;
- FileToPrepare* _tmp37_;
-#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = sorted;
-#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = ftp;
-#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_);
-#line 12320 "BatchImport.c"
- }
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (ftp);
-#line 12324 "BatchImport.c"
- }
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_ftp_list);
-#line 12328 "BatchImport.c"
- }
-#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = sorted;
-#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_list_sort (_tmp38_, ___lambda11__gcompare_data_func, background_job_ref (self), background_job_unref);
-#line 12334 "BatchImport.c"
- {
- gint i = 0;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- i = 0;
-#line 12339 "BatchImport.c"
- {
- gboolean _tmp39_ = FALSE;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = TRUE;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 12346 "BatchImport.c"
- gint _tmp41_;
- GeeList* _tmp42_;
- gint _tmp43_;
- gint _tmp44_;
- gchar* name = NULL;
- gchar* ext = NULL;
- FileToPrepare* ftp = NULL;
- GeeList* _tmp45_;
- gint _tmp46_;
- gpointer _tmp47_;
- FileToPrepare* _tmp48_;
- gchar* _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_ = NULL;
- gchar* _tmp52_ = NULL;
- const gchar* _tmp53_;
- RawFileFormatProperties* _tmp54_;
- RawFileFormatProperties* _tmp55_;
- const gchar* _tmp56_;
- gboolean _tmp57_;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp39_) {
-#line 12369 "BatchImport.c"
- gint _tmp40_;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = i;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- i = _tmp40_ + 1;
-#line 12375 "BatchImport.c"
- }
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = FALSE;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = i;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = sorted;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = _tmp43_;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp41_ < _tmp44_)) {
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 12391 "BatchImport.c"
- }
-#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = sorted;
-#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = i;
-#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = gee_list_get (_tmp45_, _tmp46_);
-#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ftp = (FileToPrepare*) _tmp47_;
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = ftp;
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = file_to_prepare_get_basename (_tmp48_);
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = _tmp49_;
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- disassemble_filename (_tmp50_, &_tmp51_, &_tmp52_);
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (name);
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- name = _tmp51_;
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (ext);
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ext = _tmp52_;
-#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp50_);
-#line 1522 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = ext;
-#line 1522 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (is_string_empty (_tmp53_)) {
-#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (ftp);
-#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (ext);
-#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (name);
-#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 12431 "BatchImport.c"
- }
-#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = raw_file_format_properties_get_instance ();
-#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = _tmp54_;
-#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = ext;
-#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = photo_file_format_properties_is_recognized_extension (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties), _tmp56_);
-#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_file_format_properties_unref0 (_tmp55_);
-#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp57_) {
-#line 12445 "BatchImport.c"
- gboolean _tmp58_ = FALSE;
- gint _tmp59_;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = i;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp59_ > 0) {
-#line 12452 "BatchImport.c"
- FileToPrepare* _tmp60_;
- GeeList* _tmp61_;
- gint _tmp62_;
- gpointer _tmp63_;
- FileToPrepare* _tmp64_;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = ftp;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = sorted;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = i;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = gee_list_get (_tmp61_, _tmp62_ - 1);
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = (FileToPrepare*) _tmp63_;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = work_sniffer_is_paired (self, _tmp60_, _tmp64_);
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (_tmp64_);
-#line 12472 "BatchImport.c"
- } else {
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = FALSE;
-#line 12476 "BatchImport.c"
- }
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp58_) {
-#line 12480 "BatchImport.c"
- FileToPrepare* associated_file = NULL;
- GeeList* _tmp65_;
- gint _tmp66_;
- gpointer _tmp67_;
- GeeList* _tmp68_;
- FileToPrepare* _tmp69_;
- FileToPrepare* _tmp70_;
- FileToPrepare* _tmp71_;
-#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = sorted;
-#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = i;
-#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = gee_list_get (_tmp65_, _tmp66_ - 1);
-#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
- associated_file = (FileToPrepare*) _tmp67_;
-#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = self->files_to_prepare;
-#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = associated_file;
-#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection), _tmp69_);
-#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = ftp;
-#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = associated_file;
-#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_set_associated (_tmp70_, _tmp71_);
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (associated_file);
-#line 12511 "BatchImport.c"
- } else {
- gboolean _tmp72_ = FALSE;
- gint _tmp73_;
- GeeList* _tmp74_;
- gint _tmp75_;
- gint _tmp76_;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = i;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = sorted;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = _tmp75_;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp73_ < (_tmp76_ - 1)) {
-#line 12528 "BatchImport.c"
- FileToPrepare* _tmp77_;
- GeeList* _tmp78_;
- gint _tmp79_;
- gpointer _tmp80_;
- FileToPrepare* _tmp81_;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = ftp;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = sorted;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = i;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = gee_list_get (_tmp78_, _tmp79_ + 1);
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = (FileToPrepare*) _tmp80_;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = work_sniffer_is_paired (self, _tmp77_, _tmp81_);
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (_tmp81_);
-#line 12548 "BatchImport.c"
- } else {
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = FALSE;
-#line 12552 "BatchImport.c"
- }
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp72_) {
-#line 12556 "BatchImport.c"
- FileToPrepare* associated_file = NULL;
- GeeList* _tmp82_;
- gint _tmp83_;
- gpointer _tmp84_;
- GeeList* _tmp85_;
- FileToPrepare* _tmp86_;
- FileToPrepare* _tmp87_;
- FileToPrepare* _tmp88_;
-#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = sorted;
-#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = i;
-#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = gee_list_get (_tmp82_, _tmp83_ + 1);
-#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala"
- associated_file = (FileToPrepare*) _tmp84_;
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = self->files_to_prepare;
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = associated_file;
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection), _tmp86_);
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = ftp;
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = associated_file;
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_set_associated (_tmp87_, _tmp88_);
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (associated_file);
-#line 12587 "BatchImport.c"
- }
- }
- }
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (ftp);
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (ext);
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (name);
-#line 12597 "BatchImport.c"
- }
- }
- }
-#line 1475 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (sorted);
-#line 12603 "BatchImport.c"
-}
-
-
-static gboolean
-work_sniffer_is_paired (WorkSniffer* self,
- FileToPrepare* raw,
- FileToPrepare* maybe_paired)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
- gchar* name = NULL;
- gchar* ext = NULL;
- gchar* test_name = NULL;
- gchar* test_ext = NULL;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- JfifFileFormatProperties* _tmp9_;
- JfifFileFormatProperties* _tmp10_;
- const gchar* _tmp11_;
- gboolean _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_ = NULL;
- gchar* _tmp16_ = NULL;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
-#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_WORK_SNIFFER (self), FALSE);
-#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_TO_PREPARE (raw), FALSE);
-#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_FILE_TO_PREPARE (maybe_paired), FALSE);
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = file_to_prepare_get_parent_path (raw);
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _tmp0_;
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = file_to_prepare_get_parent_path (maybe_paired);
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_;
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = g_strcmp0 (_tmp1_, _tmp3_) != 0;
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp3_);
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp1_);
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp4_) {
-#line 1546 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = FALSE;
-#line 1546 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 12662 "BatchImport.c"
- }
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = file_to_prepare_get_basename (maybe_paired);
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_;
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- disassemble_filename (_tmp6_, &_tmp7_, &_tmp8_);
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (test_name);
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- test_name = _tmp7_;
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (test_ext);
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- test_ext = _tmp8_;
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp6_);
-#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = jfif_file_format_properties_get_instance ();
-#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _tmp9_;
-#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = test_ext;
-#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = !photo_file_format_properties_is_recognized_extension (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties), _tmp11_);
-#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_file_format_properties_unref0 (_tmp10_);
-#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp12_) {
-#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = FALSE;
-#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (test_ext);
-#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (test_name);
-#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (ext);
-#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (name);
-#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 12704 "BatchImport.c"
- }
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = file_to_prepare_get_basename (raw);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_;
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- disassemble_filename (_tmp14_, &_tmp15_, &_tmp16_);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (name);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- name = _tmp15_;
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (ext);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ext = _tmp16_;
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp14_);
-#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = name;
-#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = test_name;
-#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = g_strcmp0 (_tmp17_, _tmp18_) == 0;
-#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (test_ext);
-#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (test_name);
-#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (ext);
-#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (name);
-#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 12738 "BatchImport.c"
-}
-
-
-static void
-work_sniffer_sniff_job (WorkSniffer* self,
- BatchImportJob* job,
- GError** error)
-{
- guint64 size = 0ULL;
- GFile* file_or_dir = NULL;
- gboolean determined_size = FALSE;
- guint64 _tmp0_ = 0ULL;
- GFile* _tmp1_ = NULL;
- gboolean _tmp2_;
- gboolean _tmp3_;
- GError * _inner_error_ = NULL;
-#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_WORK_SNIFFER (self));
-#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (job));
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = batch_import_job_determine_file_size (job, &_tmp0_, &_tmp1_);
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
- size = _tmp0_;
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file_or_dir);
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_or_dir = _tmp1_;
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
- determined_size = _tmp2_;
-#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = determined_size;
-#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_) {
-#line 12773 "BatchImport.c"
- guint64 _tmp4_;
- guint64 _tmp5_;
-#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->total_bytes;
-#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = size;
-#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->total_bytes = _tmp4_ + _tmp5_;
-#line 12782 "BatchImport.c"
- }
-#line 1566 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (batch_import_job_is_directory (job)) {
-#line 12786 "BatchImport.c"
- GFile* dir = NULL;
- gboolean copy_to_library = FALSE;
- gboolean _tmp6_ = FALSE;
- GFile* _tmp7_ = NULL;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_;
- GFile* _tmp14_;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = batch_import_job_prepare (job, &_tmp7_, &_tmp8_, &_inner_error_);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (dir);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dir = _tmp7_;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- copy_to_library = _tmp8_;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp9_;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_propagate_error (error, _inner_error_);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (dir);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file_or_dir);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 12814 "BatchImport.c"
- }
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp6_) {
-#line 12818 "BatchImport.c"
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = batch_import_job_get_source_identifier (job);
-#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_;
-#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = batch_import_job_get_dest_identifier (job);
-#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_;
-#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp11_, _tmp13_, IMPORT_RESULT_FILE_ERROR);
-#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp13_);
-#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp11_);
-#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (dir);
-#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file_or_dir);
-#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 12843 "BatchImport.c"
- }
-#line 1577 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = dir;
-#line 1577 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (query_is_directory (_tmp14_), "query_is_directory(dir)");
-#line 12849 "BatchImport.c"
- {
- GFile* _tmp15_;
- gboolean _tmp16_;
-#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = dir;
-#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = copy_to_library;
-#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala"
- work_sniffer_search_dir (self, job, _tmp15_, _tmp16_, batch_import_job_recurse (job), &_inner_error_);
-#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12861 "BatchImport.c"
- goto __catch427_g_error;
- }
- }
- goto __finally427;
- __catch427_g_error:
- {
- GError* err = NULL;
- GFile* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- GFile* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- GError* _tmp23_;
-#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = dir;
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = batch_import_job_get_source_identifier (job);
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_;
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = dir;
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = g_file_get_path (_tmp20_);
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = _tmp21_;
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = err;
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, _tmp17_, _tmp19_, _tmp22_, _tmp23_, IMPORT_RESULT_FILE_ERROR);
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp22_);
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp19_);
-#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 12902 "BatchImport.c"
- }
- __finally427:
-#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_propagate_error (error, _inner_error_);
-#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (dir);
-#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file_or_dir);
-#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 12915 "BatchImport.c"
- }
-#line 1566 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (dir);
-#line 12919 "BatchImport.c"
- } else {
- gboolean _tmp24_;
- gboolean _tmp31_ = FALSE;
- gboolean _tmp32_ = FALSE;
- GFile* _tmp33_;
- GeeList* _tmp37_;
- FileToPrepare* _tmp38_;
- FileToPrepare* _tmp39_;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = determined_size;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp24_) {
-#line 12932 "BatchImport.c"
- guint64 _tmp25_ = 0ULL;
- GFile* _tmp26_;
- GCancellable* _tmp27_;
- GCancellable* _tmp28_;
- guint64 _tmp29_;
- guint64 _tmp30_;
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = file_or_dir;
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _tmp27_;
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = query_total_file_size (_tmp26_, _tmp28_, &_inner_error_);
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp28_);
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp29_;
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_propagate_error (error, _inner_error_);
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file_or_dir);
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 12959 "BatchImport.c"
- }
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = self->total_bytes;
-#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->total_bytes = _tmp30_ + _tmp25_;
-#line 12965 "BatchImport.c"
- }
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = file_or_dir;
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp33_ != NULL) {
-#line 12971 "BatchImport.c"
- GeeHashSet* _tmp34_;
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = self->priv->skipset;
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _tmp34_ != NULL;
-#line 12977 "BatchImport.c"
- } else {
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = FALSE;
-#line 12981 "BatchImport.c"
- }
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp32_) {
-#line 12985 "BatchImport.c"
- GeeHashSet* _tmp35_;
- GFile* _tmp36_;
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = self->priv->skipset;
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = file_or_dir;
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_);
-#line 12994 "BatchImport.c"
- } else {
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = FALSE;
-#line 12998 "BatchImport.c"
- }
-#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp31_) {
-#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file_or_dir);
-#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 13006 "BatchImport.c"
- }
-#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = self->files_to_prepare;
-#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = file_to_prepare_new (job, NULL, TRUE);
-#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = _tmp38_;
-#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), _tmp39_);
-#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (_tmp39_);
-#line 13018 "BatchImport.c"
- }
-#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file_or_dir);
-#line 13022 "BatchImport.c"
-}
-
-
-void
-work_sniffer_search_dir (WorkSniffer* self,
- BatchImportJob* job,
- GFile* dir,
- gboolean copy_to_library,
- gboolean recurse,
- GError** error)
-{
- GFileEnumerator* enumerator = NULL;
- GFileEnumerator* _tmp0_;
- GFileInfo* info = NULL;
- GError * _inner_error_ = NULL;
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_WORK_SNIFFER (self));
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (job));
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = g_file_enumerate_children (dir, "standard::*", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- enumerator = _tmp0_;
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_propagate_error (error, _inner_error_);
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 13054 "BatchImport.c"
- }
-#line 1603 "/home/jens/Source/shotwell/src/BatchImport.vala"
- info = NULL;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 13060 "BatchImport.c"
- GFileInfo* _tmp1_ = NULL;
- GFileEnumerator* _tmp2_;
- GCancellable* _tmp3_;
- GCancellable* _tmp4_;
- GFileInfo* _tmp5_;
- GFileInfo* _tmp6_;
- GFileInfo* _tmp7_;
- GFileInfo* _tmp8_;
- GFile* child = NULL;
- GFileInfo* _tmp9_;
- const gchar* _tmp10_;
- GFile* _tmp11_;
- GFileType file_type = 0;
- GFileInfo* _tmp12_;
- GFileType _tmp13_;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = enumerator;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_file_enumerator_next_file (_tmp2_, _tmp4_, &_inner_error_);
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp4_);
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _tmp6_;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_propagate_error (error, _inner_error_);
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (info);
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (enumerator);
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 13100 "BatchImport.c"
- }
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp1_;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = NULL;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (info);
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- info = _tmp7_;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = info;
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp8_ != NULL)) {
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp1_);
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 13118 "BatchImport.c"
- }
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob))) {
-#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp1_);
-#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 13126 "BatchImport.c"
- }
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = info;
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = g_file_info_get_name (_tmp9_);
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = g_file_get_child (dir, _tmp10_);
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- child = _tmp11_;
-#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = info;
-#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_type = g_file_info_get_file_type (_tmp12_);
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = file_type;
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp13_ == G_FILE_TYPE_DIRECTORY) {
-#line 13144 "BatchImport.c"
- GFileInfo* _tmp14_;
- const gchar* _tmp15_;
-#line 1613 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!recurse) {
-#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (child);
-#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp1_);
-#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 13155 "BatchImport.c"
- }
-#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = info;
-#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = g_file_info_get_name (_tmp14_);
-#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_str_has_prefix (_tmp15_, ".")) {
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (child);
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp1_);
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 13169 "BatchImport.c"
- }
- {
- GFile* _tmp16_;
-#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = child;
-#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala"
- work_sniffer_search_dir (self, job, _tmp16_, copy_to_library, recurse, &_inner_error_);
-#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13179 "BatchImport.c"
- goto __catch428_g_error;
- }
- }
- goto __finally428;
- __catch428_g_error:
- {
- GError* err = NULL;
- GFile* _tmp17_;
- GFile* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GError* _tmp24_;
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = child;
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = child;
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = g_file_get_path (_tmp18_);
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_;
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = child;
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = g_file_get_path (_tmp21_);
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_;
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = err;
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, _tmp17_, _tmp20_, _tmp23_, _tmp24_, IMPORT_RESULT_FILE_ERROR);
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp23_);
-#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp20_);
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 13223 "BatchImport.c"
- }
- __finally428:
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_propagate_error (error, _inner_error_);
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (child);
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp1_);
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (info);
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (enumerator);
-#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 13240 "BatchImport.c"
- }
- } else {
- GFileType _tmp25_;
-#line 1625 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = file_type;
-#line 1625 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp25_ == G_FILE_TYPE_REGULAR) {
-#line 13248 "BatchImport.c"
- gboolean _tmp26_ = FALSE;
- GeeHashSet* _tmp27_;
- gboolean _tmp30_ = FALSE;
- gboolean _tmp31_ = FALSE;
- GFile* _tmp32_;
-#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = self->priv->skipset;
-#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp27_ != NULL) {
-#line 13258 "BatchImport.c"
- GeeHashSet* _tmp28_;
- GFile* _tmp29_;
-#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = self->priv->skipset;
-#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = child;
-#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_);
-#line 13267 "BatchImport.c"
- } else {
-#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = FALSE;
-#line 13271 "BatchImport.c"
- }
-#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp26_) {
-#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (child);
-#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp1_);
-#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 13281 "BatchImport.c"
- }
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = child;
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (photo_is_file_image (_tmp32_)) {
-#line 13287 "BatchImport.c"
- GFile* _tmp33_;
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = child;
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = photo_file_format_is_file_supported (_tmp33_);
-#line 13293 "BatchImport.c"
- } else {
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = FALSE;
-#line 13297 "BatchImport.c"
- }
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp31_) {
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = TRUE;
-#line 13303 "BatchImport.c"
- } else {
- GFile* _tmp34_;
-#line 1630 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = child;
-#line 1630 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = video_reader_is_supported_video_file (_tmp34_);
-#line 13310 "BatchImport.c"
- }
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp30_) {
-#line 13314 "BatchImport.c"
- guint64 _tmp35_;
- GFileInfo* _tmp36_;
- GeeList* _tmp37_;
- GFile* _tmp38_;
- FileToPrepare* _tmp39_;
- FileToPrepare* _tmp40_;
-#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = self->total_bytes;
-#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = info;
-#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->total_bytes = _tmp35_ + g_file_info_get_size (_tmp36_);
-#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = self->files_to_prepare;
-#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = child;
-#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = file_to_prepare_new (job, _tmp38_, copy_to_library);
-#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = _tmp39_;
-#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), _tmp40_);
-#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (_tmp40_);
-#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (child);
-#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp1_);
-#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 13345 "BatchImport.c"
- }
- } else {
- GFile* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- GFileType _tmp44_;
-#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = child;
-#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = g_file_get_path (_tmp41_);
-#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = _tmp42_;
-#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = file_type;
-#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1637: Ignoring import of %s file type %d", _tmp43_, (gint) _tmp44_);
-#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp43_);
-#line 13364 "BatchImport.c"
- }
- }
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (child);
-#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp1_);
-#line 13371 "BatchImport.c"
- }
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (info);
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (enumerator);
-#line 13377 "BatchImport.c"
-}
-
-
-static void
-work_sniffer_class_init (WorkSnifferClass * klass)
-{
-#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
- work_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->finalize = work_sniffer_finalize;
-#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_class_add_private (klass, sizeof (WorkSnifferPrivate));
-#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) work_sniffer_real_execute;
-#line 13392 "BatchImport.c"
-}
-
-
-static void
-work_sniffer_instance_init (WorkSniffer * self)
-{
- GeeArrayList* _tmp0_;
-#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv = WORK_SNIFFER_GET_PRIVATE (self);
-#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = gee_array_list_new (TYPE_FILE_TO_PREPARE, (GBoxedCopyFunc) file_to_prepare_ref, (GDestroyNotify) file_to_prepare_unref, NULL, NULL, NULL);
-#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->files_to_prepare = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->total_bytes = (guint64) 0;
-#line 13408 "BatchImport.c"
-}
-
-
-static void
-work_sniffer_finalize (BackgroundJob * obj)
-{
- WorkSniffer * self;
-#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_WORK_SNIFFER, WorkSniffer);
-#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->files_to_prepare);
-#line 1464 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->jobs);
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->skipset);
-#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BACKGROUND_JOB_CLASS (work_sniffer_parent_class)->finalize (obj);
-#line 13426 "BatchImport.c"
-}
-
-
-GType
-work_sniffer_get_type (void)
-{
- static volatile gsize work_sniffer_type_id__volatile = 0;
- if (g_once_init_enter (&work_sniffer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (WorkSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) work_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (WorkSniffer), 0, (GInstanceInitFunc) work_sniffer_instance_init, NULL };
- GType work_sniffer_type_id;
- work_sniffer_type_id = g_type_register_static (TYPE_BACKGROUND_IMPORT_JOB, "WorkSniffer", &g_define_type_info, 0);
- g_once_init_leave (&work_sniffer_type_id__volatile, work_sniffer_type_id);
- }
- return work_sniffer_type_id__volatile;
-}
-
-
-PreparedFile*
-prepared_file_construct (GType object_type,
- BatchImportJob* job,
- GFile* file,
- GFile* associated_file,
- const gchar* source_id,
- const gchar* dest_id,
- gboolean copy_to_library,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- guint64 filesize,
- gboolean is_video)
-{
- PreparedFile* self = NULL;
- BatchImportJob* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL);
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((associated_file == NULL) || G_IS_FILE (associated_file), NULL);
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (source_id != NULL, NULL);
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (dest_id != NULL, NULL);
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (PreparedFile*) g_type_create_instance (object_type);
-#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _batch_import_job_ref0 (job);
-#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->job);
-#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->job = _tmp0_;
-#line 1662 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->result = IMPORT_RESULT_SUCCESS;
-#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (file);
-#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->file);
-#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file = _tmp1_;
-#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _g_object_ref0 (associated_file);
-#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->associated_file);
-#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->associated_file = _tmp2_;
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_strdup (source_id);
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->source_id);
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->source_id = _tmp3_;
-#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = g_strdup (dest_id);
-#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->dest_id);
-#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->dest_id = _tmp4_;
-#line 1667 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->copy_to_library = copy_to_library;
-#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_strdup (exif_md5);
-#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->exif_md5);
-#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->exif_md5 = _tmp5_;
-#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = g_strdup (thumbnail_md5);
-#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->thumbnail_md5);
-#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->thumbnail_md5 = _tmp6_;
-#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = g_strdup (full_md5);
-#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->full_md5);
-#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->full_md5 = _tmp7_;
-#line 1671 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file_format = file_format;
-#line 1672 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->filesize = filesize;
-#line 1673 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->is_video = is_video;
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 13540 "BatchImport.c"
-}
-
-
-PreparedFile*
-prepared_file_new (BatchImportJob* job,
- GFile* file,
- GFile* associated_file,
- const gchar* source_id,
- const gchar* dest_id,
- gboolean copy_to_library,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- guint64 filesize,
- gboolean is_video)
-{
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return prepared_file_construct (TYPE_PREPARED_FILE, job, file, associated_file, source_id, dest_id, copy_to_library, exif_md5, thumbnail_md5, full_md5, file_format, filesize, is_video);
-#line 13560 "BatchImport.c"
-}
-
-
-static void
-value_prepared_file_init (GValue* value)
-{
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 13569 "BatchImport.c"
-}
-
-
-static void
-value_prepared_file_free_value (GValue* value)
-{
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (value->data[0].v_pointer) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file_unref (value->data[0].v_pointer);
-#line 13580 "BatchImport.c"
- }
-}
-
-
-static void
-value_prepared_file_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (src_value->data[0].v_pointer) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = prepared_file_ref (src_value->data[0].v_pointer);
-#line 13593 "BatchImport.c"
- } else {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 13597 "BatchImport.c"
- }
-}
-
-
-static gpointer
-value_prepared_file_peek_pointer (const GValue* value)
-{
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 13607 "BatchImport.c"
-}
-
-
-static gchar*
-value_prepared_file_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (collect_values[0].v_pointer) {
-#line 13619 "BatchImport.c"
- PreparedFile * object;
- object = collect_values[0].v_pointer;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 13626 "BatchImport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.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 13630 "BatchImport.c"
- }
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = prepared_file_ref (object);
-#line 13634 "BatchImport.c"
- } else {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 13638 "BatchImport.c"
- }
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 13642 "BatchImport.c"
-}
-
-
-static gchar*
-value_prepared_file_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PreparedFile ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!object_p) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 13658 "BatchImport.c"
- }
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!value->data[0].v_pointer) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = NULL;
-#line 13664 "BatchImport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = value->data[0].v_pointer;
-#line 13668 "BatchImport.c"
- } else {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = prepared_file_ref (value->data[0].v_pointer);
-#line 13672 "BatchImport.c"
- }
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 13676 "BatchImport.c"
-}
-
-
-GParamSpec*
-param_spec_prepared_file (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPreparedFile* spec;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PREPARED_FILE), NULL);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return G_PARAM_SPEC (spec);
-#line 13696 "BatchImport.c"
-}
-
-
-gpointer
-value_get_prepared_file (const GValue* value)
-{
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE), NULL);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 13707 "BatchImport.c"
-}
-
-
-void
-value_set_prepared_file (GValue* value,
- gpointer v_object)
-{
- PreparedFile * old;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE));
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PREPARED_FILE));
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file_ref (value->data[0].v_pointer);
-#line 13730 "BatchImport.c"
- } else {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 13734 "BatchImport.c"
- }
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file_unref (old);
-#line 13740 "BatchImport.c"
- }
-}
-
-
-void
-value_take_prepared_file (GValue* value,
- gpointer v_object)
-{
- PreparedFile * old;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE));
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PREPARED_FILE));
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 13762 "BatchImport.c"
- } else {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 13766 "BatchImport.c"
- }
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file_unref (old);
-#line 13772 "BatchImport.c"
- }
-}
-
-
-static void
-prepared_file_class_init (PreparedFileClass * klass)
-{
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file_parent_class = g_type_class_peek_parent (klass);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((PreparedFileClass *) klass)->finalize = prepared_file_finalize;
-#line 13784 "BatchImport.c"
-}
-
-
-static void
-prepared_file_instance_init (PreparedFile * self)
-{
-#line 1647 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->associated_file = NULL;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ref_count = 1;
-#line 13795 "BatchImport.c"
-}
-
-
-static void
-prepared_file_finalize (PreparedFile * obj)
-{
- PreparedFile * self;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE, PreparedFile);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_destroy (self);
-#line 1644 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->job);
-#line 1646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->file);
-#line 1647 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->associated_file);
-#line 1648 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->source_id);
-#line 1649 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->dest_id);
-#line 1651 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->exif_md5);
-#line 1652 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->thumbnail_md5);
-#line 1653 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (self->full_md5);
-#line 13823 "BatchImport.c"
-}
-
-
-GType
-prepared_file_get_type (void)
-{
- static volatile gsize prepared_file_type_id__volatile = 0;
- if (g_once_init_enter (&prepared_file_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_prepared_file_init, value_prepared_file_free_value, value_prepared_file_copy_value, value_prepared_file_peek_pointer, "p", value_prepared_file_collect_value, "p", value_prepared_file_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PreparedFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepared_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreparedFile), 0, (GInstanceInitFunc) prepared_file_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType prepared_file_type_id;
- prepared_file_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PreparedFile", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&prepared_file_type_id__volatile, prepared_file_type_id);
- }
- return prepared_file_type_id__volatile;
-}
-
-
-gpointer
-prepared_file_ref (gpointer instance)
-{
- PreparedFile * self;
- self = instance;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return instance;
-#line 13852 "BatchImport.c"
-}
-
-
-void
-prepared_file_unref (gpointer instance)
-{
- PreparedFile * self;
- self = instance;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- PREPARED_FILE_GET_CLASS (self)->finalize (self);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 13867 "BatchImport.c"
- }
-}
-
-
-PreparedFileCluster*
-prepared_file_cluster_construct (GType object_type,
- GeeArrayList* list)
-{
- PreparedFileCluster* self = NULL;
- GeeArrayList* _tmp0_;
-#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (GEE_IS_ARRAY_LIST (list), NULL);
-#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (PreparedFileCluster*) interlocked_notification_object_construct (object_type);
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _g_object_ref0 (list);
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->list);
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->list = _tmp0_;
-#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 13890 "BatchImport.c"
-}
-
-
-PreparedFileCluster*
-prepared_file_cluster_new (GeeArrayList* list)
-{
-#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return prepared_file_cluster_construct (TYPE_PREPARED_FILE_CLUSTER, list);
-#line 13899 "BatchImport.c"
-}
-
-
-static void
-prepared_file_cluster_class_init (PreparedFileClusterClass * klass)
-{
-#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file_cluster_parent_class = g_type_class_peek_parent (klass);
-#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((NotificationObjectClass *) klass)->finalize = prepared_file_cluster_finalize;
-#line 13910 "BatchImport.c"
-}
-
-
-static void
-prepared_file_cluster_instance_init (PreparedFileCluster * self)
-{
-}
-
-
-static void
-prepared_file_cluster_finalize (NotificationObject * obj)
-{
- PreparedFileCluster * self;
-#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster);
-#line 1678 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->list);
-#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala"
- NOTIFICATION_OBJECT_CLASS (prepared_file_cluster_parent_class)->finalize (obj);
-#line 13930 "BatchImport.c"
-}
-
-
-GType
-prepared_file_cluster_get_type (void)
-{
- static volatile gsize prepared_file_cluster_type_id__volatile = 0;
- if (g_once_init_enter (&prepared_file_cluster_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PreparedFileClusterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepared_file_cluster_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreparedFileCluster), 0, (GInstanceInitFunc) prepared_file_cluster_instance_init, NULL };
- GType prepared_file_cluster_type_id;
- prepared_file_cluster_type_id = g_type_register_static (TYPE_INTERLOCKED_NOTIFICATION_OBJECT, "PreparedFileCluster", &g_define_type_info, 0);
- g_once_init_leave (&prepared_file_cluster_type_id__volatile, prepared_file_cluster_type_id);
- }
- return prepared_file_cluster_type_id__volatile;
-}
-
-
-PrepareFilesJob*
-prepare_files_job_construct (GType object_type,
- BatchImport* owner,
- GeeList* files_to_prepare,
- NotificationCallback notification,
- void* notification_target,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target)
-{
- PrepareFilesJob* self = NULL;
- GeeList* _tmp0_;
- GFile* _tmp1_;
-#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (GEE_IS_LIST (files_to_prepare), NULL);
-#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1701 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (PrepareFilesJob*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancellation, cancellation_target);
-#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _g_object_ref0 (files_to_prepare);
-#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->files_to_prepare);
-#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->files_to_prepare = _tmp0_;
-#line 1704 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->notification = notification;
-#line 1704 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->notification_target = notification_target;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = app_dirs_get_import_dir ();
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->library_dir);
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->library_dir = _tmp1_;
-#line 1706 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->fail_every = prepare_files_job_get_test_variable ("SHOTWELL_FAIL_EVERY");
-#line 1707 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->skip_every = prepare_files_job_get_test_variable ("SHOTWELL_SKIP_EVERY");
-#line 1709 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_job_set_notification_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW);
-#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 13995 "BatchImport.c"
-}
-
-
-PrepareFilesJob*
-prepare_files_job_new (BatchImport* owner,
- GeeList* files_to_prepare,
- NotificationCallback notification,
- void* notification_target,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target)
-{
-#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return prepare_files_job_construct (TYPE_PREPARE_FILES_JOB, owner, files_to_prepare, notification, notification_target, callback, callback_target, cancellable, cancellation, cancellation_target);
-#line 14012 "BatchImport.c"
-}
-
-
-static gint
-prepare_files_job_get_test_variable (const gchar* name)
-{
- gint result = 0;
- gchar* value = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gint _tmp2_ = 0;
- gboolean _tmp3_ = FALSE;
- const gchar* _tmp4_;
-#line 1712 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (name != NULL, 0);
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = g_getenv (name);
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value = _tmp1_;
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = value;
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp4_ == NULL) {
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = TRUE;
-#line 14040 "BatchImport.c"
- } else {
- const gchar* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = value;
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = strlen (_tmp5_);
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp7_ == 0;
-#line 14053 "BatchImport.c"
- }
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_) {
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = 0;
-#line 14059 "BatchImport.c"
- } else {
- const gchar* _tmp8_;
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = value;
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = atoi (_tmp8_);
-#line 14066 "BatchImport.c"
- }
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp2_;
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (value);
-#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 14074 "BatchImport.c"
-}
-
-
-static void
-prepare_files_job_real_execute (BackgroundJob* base)
-{
- PrepareFilesJob * self;
- GTimer* timer = NULL;
- GTimer* _tmp0_;
- GeeArrayList* list = NULL;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp89_;
- gint _tmp90_;
- gint _tmp91_;
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREPARE_FILES_JOB, PrepareFilesJob);
-#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = g_timer_new ();
-#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
- timer = _tmp0_;
-#line 1721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = gee_array_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL);
-#line 1721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- list = _tmp1_;
-#line 14099 "BatchImport.c"
- {
- GeeList* _file_to_prepare_list = NULL;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _file_to_prepare_size = 0;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _file_to_prepare_index = 0;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->priv->files_to_prepare;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_list = _tmp3_;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _file_to_prepare_list;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_size = _tmp6_;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_index = -1;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 14127 "BatchImport.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- FileToPrepare* file_to_prepare = NULL;
- GeeList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- ImportResult _result_ = 0;
- ImportResult _tmp13_;
- BatchImportJob* job = NULL;
- FileToPrepare* _tmp25_;
- BatchImportJob* _tmp26_;
- BatchImportJob* _tmp27_;
- GFile* file = NULL;
- FileToPrepare* _tmp28_;
- GFile* _tmp29_;
- GFile* _tmp30_;
- GFile* _tmp31_ = NULL;
- FileToPrepare* _tmp32_;
- FileToPrepare* _tmp33_;
- GFile* associated = NULL;
- GFile* _tmp37_;
- gboolean copy_to_library = FALSE;
- FileToPrepare* _tmp38_;
- gboolean _tmp39_;
- GFile* _tmp40_;
- gboolean _tmp45_ = FALSE;
- GFile* _tmp46_;
- PreparedFile* prepared_file = NULL;
- BatchImportJob* _tmp54_;
- GFile* _tmp55_;
- GFile* _tmp56_;
- gboolean _tmp57_;
- PreparedFile* _tmp58_ = NULL;
- ImportResult _tmp59_;
- ImportResult _tmp60_;
- gboolean _tmp73_ = FALSE;
- GeeArrayList* _tmp74_;
- gint _tmp75_;
- gint _tmp76_;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _file_to_prepare_index;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_index = _tmp7_ + 1;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _file_to_prepare_index;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _file_to_prepare_size;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 14180 "BatchImport.c"
- }
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _file_to_prepare_list;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _file_to_prepare_index;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare = (FileToPrepare*) _tmp12_;
-#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 1724 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _result_;
-#line 1724 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp13_ != IMPORT_RESULT_SUCCESS) {
-#line 14196 "BatchImport.c"
- FileToPrepare* _tmp14_;
- BatchImportJob* _tmp15_;
- FileToPrepare* _tmp16_;
- BatchImportJob* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- FileToPrepare* _tmp20_;
- BatchImportJob* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- ImportResult _tmp24_;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = file_to_prepare;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_->job;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = file_to_prepare;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_->job;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = batch_import_job_get_dest_identifier (_tmp17_);
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = file_to_prepare;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _tmp20_->job;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = batch_import_job_get_source_identifier (_tmp21_);
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _result_;
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp15_, NULL, _tmp19_, _tmp23_, _tmp24_);
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp23_);
-#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp19_);
-#line 1728 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (file_to_prepare);
-#line 1728 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 14240 "BatchImport.c"
- }
-#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = file_to_prepare;
-#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = _tmp25_->job;
-#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _batch_import_job_ref0 (_tmp26_);
-#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp27_;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = file_to_prepare;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _tmp28_->file;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _g_object_ref0 (_tmp29_);
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file = _tmp30_;
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = file_to_prepare;
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = _tmp32_->associated;
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp33_ != NULL) {
-#line 14264 "BatchImport.c"
- FileToPrepare* _tmp34_;
- FileToPrepare* _tmp35_;
- GFile* _tmp36_;
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = file_to_prepare;
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = _tmp34_->associated;
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = _tmp35_->file;
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _tmp36_;
-#line 14276 "BatchImport.c"
- } else {
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = NULL;
-#line 14280 "BatchImport.c"
- }
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = _g_object_ref0 (_tmp31_);
-#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
- associated = _tmp37_;
-#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = file_to_prepare;
-#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = _tmp38_->copy_to_library;
-#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala"
- copy_to_library = _tmp39_;
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = file;
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp40_ == NULL) {
-#line 14296 "BatchImport.c"
- BatchImportJob* _tmp41_;
- GFile* _tmp42_ = NULL;
- gboolean _tmp43_ = FALSE;
- gboolean _tmp44_;
-#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = job;
-#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = prepare_files_job_create_file (self, _tmp41_, &_tmp42_, &_tmp43_);
-#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file);
-#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file = _tmp42_;
-#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- copy_to_library = _tmp43_;
-#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp44_) {
-#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (associated);
-#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file);
-#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (job);
-#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (file_to_prepare);
-#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- continue;
-#line 14323 "BatchImport.c"
- }
- }
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = associated;
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp46_ == NULL) {
-#line 14330 "BatchImport.c"
- FileToPrepare* _tmp47_;
- FileToPrepare* _tmp48_;
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = file_to_prepare;
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = _tmp47_->associated;
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = _tmp48_ != NULL;
-#line 14339 "BatchImport.c"
- } else {
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = FALSE;
-#line 14343 "BatchImport.c"
- }
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp45_) {
-#line 14347 "BatchImport.c"
- FileToPrepare* _tmp49_;
- FileToPrepare* _tmp50_;
- BatchImportJob* _tmp51_;
- GFile* _tmp52_ = NULL;
- gboolean _tmp53_ = FALSE;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = file_to_prepare;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = _tmp49_->associated;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = _tmp50_->job;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepare_files_job_create_file (self, _tmp51_, &_tmp52_, &_tmp53_);
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (associated);
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- associated = _tmp52_;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- copy_to_library = _tmp53_;
-#line 14367 "BatchImport.c"
- }
-#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = job;
-#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = file;
-#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = associated;
-#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = copy_to_library;
-#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = prepare_files_job_prepare_file (self, _tmp54_, _tmp55_, _tmp56_, _tmp57_, &_tmp58_);
-#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (prepared_file);
-#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file = _tmp58_;
-#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp59_;
-#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = _result_;
-#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp60_ == IMPORT_RESULT_SUCCESS) {
-#line 14389 "BatchImport.c"
- gint _tmp61_;
- GeeArrayList* _tmp62_;
- PreparedFile* _tmp63_;
-#line 1749 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = self->prepared_files;
-#line 1749 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->prepared_files = _tmp61_ + 1;
-#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = list;
-#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = prepared_file;
-#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp63_);
-#line 14403 "BatchImport.c"
- } else {
- BatchImportJob* _tmp64_;
- GFile* _tmp65_;
- BatchImportJob* _tmp66_;
- gchar* _tmp67_;
- gchar* _tmp68_;
- GFile* _tmp69_;
- gchar* _tmp70_;
- gchar* _tmp71_;
- ImportResult _tmp72_;
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = job;
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = file;
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = job;
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = batch_import_job_get_source_identifier (_tmp66_);
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = _tmp67_;
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = file;
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = g_file_get_path (_tmp69_);
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = _tmp70_;
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = _result_;
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp64_, _tmp65_, _tmp68_, _tmp71_, _tmp72_);
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp71_);
-#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp68_);
-#line 14438 "BatchImport.c"
- }
-#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = list;
-#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = _tmp75_;
-#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp76_ >= BATCH_IMPORT_REPORT_EVERY_N_PREPARED_FILES) {
-#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = TRUE;
-#line 14450 "BatchImport.c"
- } else {
- gboolean _tmp77_ = FALSE;
- GTimer* _tmp78_;
- gdouble _tmp79_;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = timer;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = g_timer_elapsed (_tmp78_, NULL);
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp79_ * 1000.0) > ((gdouble) BATCH_IMPORT_REPORT_PREPARED_FILES_EVERY_N_MSEC)) {
-#line 14461 "BatchImport.c"
- GeeArrayList* _tmp80_;
- gint _tmp81_;
- gint _tmp82_;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = list;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = _tmp81_;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = _tmp82_ > 0;
-#line 14473 "BatchImport.c"
- } else {
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = FALSE;
-#line 14477 "BatchImport.c"
- }
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = _tmp77_;
-#line 14481 "BatchImport.c"
- }
-#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp73_) {
-#line 14485 "BatchImport.c"
- PreparedFileCluster* cluster = NULL;
- GeeArrayList* _tmp83_;
- PreparedFileCluster* _tmp84_;
- GeeArrayList* _tmp85_;
- NotificationCallback _tmp86_;
- void* _tmp86__target;
- PreparedFileCluster* _tmp87_;
- GTimer* _tmp88_;
-#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = list;
-#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = prepared_file_cluster_new (_tmp83_);
-#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala"
- cluster = _tmp84_;
-#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = gee_array_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL);
-#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (list);
-#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala"
- list = _tmp85_;
-#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = self->priv->notification;
-#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86__target = self->priv->notification_target;
-#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = cluster;
-#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_job_notify (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), _tmp86_, _tmp86__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, TYPE_NOTIFICATION_OBJECT, NotificationObject));
-#line 1764 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = timer;
-#line 1764 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_timer_start (_tmp88_);
-#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _notification_object_unref0 (cluster);
-#line 14520 "BatchImport.c"
- }
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (prepared_file);
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (associated);
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (file);
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (job);
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (file_to_prepare);
-#line 14532 "BatchImport.c"
- }
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_file_to_prepare_list);
-#line 14536 "BatchImport.c"
- }
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp89_ = list;
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp90_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp89_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp91_ = _tmp90_;
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp91_ > 0) {
-#line 14546 "BatchImport.c"
- ImportResult _result_ = 0;
- ImportResult _tmp92_;
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp92_ = _result_;
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp92_ == IMPORT_RESULT_SUCCESS) {
-#line 14555 "BatchImport.c"
- NotificationCallback _tmp93_;
- void* _tmp93__target;
- GeeArrayList* _tmp94_;
- PreparedFileCluster* _tmp95_;
- PreparedFileCluster* _tmp96_;
-#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93_ = self->priv->notification;
-#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93__target = self->priv->notification_target;
-#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp94_ = list;
-#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95_ = prepared_file_cluster_new (_tmp94_);
-#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp96_ = _tmp95_;
-#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_job_notify (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), _tmp93_, _tmp93__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, TYPE_NOTIFICATION_OBJECT, NotificationObject));
-#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _notification_object_unref0 (_tmp96_);
-#line 14575 "BatchImport.c"
- } else {
- gint _tmp97_;
- GeeArrayList* _tmp98_;
- gint _tmp99_;
- gint _tmp100_;
- gint _tmp101_;
- GeeArrayList* _tmp102_;
- gint _tmp103_;
- gint _tmp104_;
-#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp97_ = self->prepared_files;
-#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp98_ = list;
-#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp99_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp100_ = _tmp99_;
-#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp97_ >= _tmp100_, "prepared_files >= list.size");
-#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp101_ = self->prepared_files;
-#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp102_ = list;
-#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp103_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp104_ = _tmp103_;
-#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->prepared_files = _tmp101_ - _tmp104_;
-#line 14605 "BatchImport.c"
- {
- GeeArrayList* _prepared_file_list = NULL;
- GeeArrayList* _tmp105_;
- GeeArrayList* _tmp106_;
- gint _prepared_file_size = 0;
- GeeArrayList* _tmp107_;
- gint _tmp108_;
- gint _tmp109_;
- gint _prepared_file_index = 0;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp105_ = list;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp106_ = _g_object_ref0 (_tmp105_);
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_list = _tmp106_;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp107_ = _prepared_file_list;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp108_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp109_ = _tmp108_;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_size = _tmp109_;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_index = -1;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 14633 "BatchImport.c"
- gint _tmp110_;
- gint _tmp111_;
- gint _tmp112_;
- PreparedFile* prepared_file = NULL;
- GeeArrayList* _tmp113_;
- gint _tmp114_;
- gpointer _tmp115_;
- PreparedFile* _tmp116_;
- BatchImportJob* _tmp117_;
- PreparedFile* _tmp118_;
- GFile* _tmp119_;
- PreparedFile* _tmp120_;
- BatchImportJob* _tmp121_;
- gchar* _tmp122_;
- gchar* _tmp123_;
- PreparedFile* _tmp124_;
- GFile* _tmp125_;
- gchar* _tmp126_;
- gchar* _tmp127_;
- ImportResult _tmp128_;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp110_ = _prepared_file_index;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_index = _tmp110_ + 1;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp111_ = _prepared_file_index;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp112_ = _prepared_file_size;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp111_ < _tmp112_)) {
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 14666 "BatchImport.c"
- }
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp113_ = _prepared_file_list;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp114_ = _prepared_file_index;
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp115_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp113_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp114_);
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file = (PreparedFile*) _tmp115_;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp116_ = prepared_file;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp117_ = _tmp116_->job;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp118_ = prepared_file;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp119_ = _tmp118_->file;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp120_ = prepared_file;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp121_ = _tmp120_->job;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp122_ = batch_import_job_get_source_identifier (_tmp121_);
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp123_ = _tmp122_;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp124_ = prepared_file;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp125_ = _tmp124_->file;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp126_ = g_file_get_path (_tmp125_);
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp127_ = _tmp126_;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp128_ = _result_;
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp117_, _tmp119_, _tmp123_, _tmp127_, _tmp128_);
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp127_);
-#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp123_);
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (prepared_file);
-#line 14710 "BatchImport.c"
- }
-#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_prepared_file_list);
-#line 14714 "BatchImport.c"
- }
- }
- }
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (list);
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_timer_destroy0 (timer);
-#line 14722 "BatchImport.c"
-}
-
-
-static gboolean
-prepare_files_job_create_file (PrepareFilesJob* self,
- BatchImportJob* job,
- GFile* * file,
- gboolean* copy_to_library)
-{
- GFile* _vala_file = NULL;
- gboolean _vala_copy_to_library = FALSE;
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 1787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_PREPARE_FILES_JOB (self), FALSE);
-#line 1787 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), FALSE);
-#line 14740 "BatchImport.c"
- {
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
-#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = batch_import_job_prepare (job, &_tmp1_, &_tmp2_, &_inner_error_);
-#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_vala_file);
-#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_file = _tmp1_;
-#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_copy_to_library = _tmp2_;
-#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp3_;
-#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14758 "BatchImport.c"
- goto __catch429_g_error;
- }
-#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp0_) {
-#line 14763 "BatchImport.c"
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = batch_import_job_get_source_identifier (job);
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_;
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = batch_import_job_get_dest_identifier (job);
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp5_, _tmp7_, IMPORT_RESULT_FILE_ERROR);
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp7_);
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp5_);
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = FALSE;
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (file) {
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *file = _vala_file;
-#line 14788 "BatchImport.c"
- } else {
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_vala_file);
-#line 14792 "BatchImport.c"
- }
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (copy_to_library) {
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *copy_to_library = _vala_copy_to_library;
-#line 14798 "BatchImport.c"
- }
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 14802 "BatchImport.c"
- }
- }
- goto __finally429;
- __catch429_g_error:
- {
- GError* err = NULL;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GError* _tmp12_;
-#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = batch_import_job_get_source_identifier (job);
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_;
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = batch_import_job_get_dest_identifier (job);
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_;
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = err;
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp9_, _tmp11_, _tmp12_, IMPORT_RESULT_FILE_ERROR);
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp11_);
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp9_);
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = FALSE;
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (file) {
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *file = _vala_file;
-#line 14842 "BatchImport.c"
- } else {
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_vala_file);
-#line 14846 "BatchImport.c"
- }
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (copy_to_library) {
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *copy_to_library = _vala_copy_to_library;
-#line 14852 "BatchImport.c"
- }
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 14856 "BatchImport.c"
- }
- __finally429:
-#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14861 "BatchImport.c"
- gboolean _tmp13_ = FALSE;
-#line 1788 "/home/jens/Source/shotwell/src/BatchImport.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 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return _tmp13_;
-#line 14869 "BatchImport.c"
- }
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = TRUE;
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (file) {
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *file = _vala_file;
-#line 14877 "BatchImport.c"
- } else {
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_vala_file);
-#line 14881 "BatchImport.c"
- }
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (copy_to_library) {
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *copy_to_library = _vala_copy_to_library;
-#line 14887 "BatchImport.c"
- }
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 14891 "BatchImport.c"
-}
-
-
-static ImportResult
-prepare_files_job_prepare_file (PrepareFilesJob* self,
- BatchImportJob* job,
- GFile* file,
- GFile* associated_file,
- gboolean copy_to_library,
- PreparedFile* * prepared_file)
-{
- PreparedFile* _vala_prepared_file = NULL;
- ImportResult result = 0;
- gboolean is_video = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp8_;
- gchar* exif_only_md5 = NULL;
- gchar* thumbnail_md5 = NULL;
- gchar* full_md5 = NULL;
- PhotoFileFormat file_format = 0;
- gboolean _tmp19_;
- guint64 filesize = 0ULL;
- gboolean is_in_library_dir = FALSE;
- GFile* _tmp50_;
- gboolean _tmp51_ = FALSE;
- gchar* _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_;
- gchar* _tmp56_;
- const gchar* _tmp57_;
- const gchar* _tmp58_;
- const gchar* _tmp59_;
- PhotoFileFormat _tmp60_;
- guint64 _tmp61_;
- gboolean _tmp62_;
- PreparedFile* _tmp63_;
- GError * _inner_error_ = NULL;
-#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_PREPARE_FILES_JOB (self), 0);
-#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), 0);
-#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_FILE (file), 0);
-#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((associated_file == NULL) || G_IS_FILE (associated_file), 0);
-#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_prepared_file = NULL;
-#line 1808 "/home/jens/Source/shotwell/src/BatchImport.vala"
- is_video = video_reader_is_supported_video_file (file);
-#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = is_video;
-#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp1_) {
-#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = !photo_is_file_image (file);
-#line 14954 "BatchImport.c"
- } else {
-#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = FALSE;
-#line 14958 "BatchImport.c"
- }
-#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_) {
-#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_NOT_AN_IMAGE;
-#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prepared_file) {
-#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *prepared_file = _vala_prepared_file;
-#line 14968 "BatchImport.c"
- } else {
-#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 14972 "BatchImport.c"
- }
-#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 14976 "BatchImport.c"
- }
-#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = is_video;
-#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp3_) {
-#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = !photo_file_format_is_file_supported (file);
-#line 14984 "BatchImport.c"
- } else {
-#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = FALSE;
-#line 14988 "BatchImport.c"
- }
-#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_) {
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prepared_file) {
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *prepared_file = _vala_prepared_file;
-#line 14998 "BatchImport.c"
- } else {
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 15002 "BatchImport.c"
- }
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15006 "BatchImport.c"
- }
-#line 1816 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->priv->import_file_count;
-#line 1816 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->import_file_count = _tmp4_ + 1;
-#line 1819 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->fail_every;
-#line 1819 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp5_ > 0) {
-#line 15016 "BatchImport.c"
- gint _tmp6_;
- gint _tmp7_;
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->import_file_count;
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = self->priv->fail_every;
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp6_ % _tmp7_) == 0) {
-#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_FILE_ERROR;
-#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prepared_file) {
-#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *prepared_file = _vala_prepared_file;
-#line 15031 "BatchImport.c"
- } else {
-#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 15035 "BatchImport.c"
- }
-#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15039 "BatchImport.c"
- }
- }
-#line 1825 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->priv->skip_every;
-#line 1825 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp8_ > 0) {
-#line 15046 "BatchImport.c"
- gint _tmp9_;
- gint _tmp10_;
-#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->priv->import_file_count;
-#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->priv->skip_every;
-#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp9_ % _tmp10_) == 0) {
-#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_NOT_A_FILE;
-#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prepared_file) {
-#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *prepared_file = _vala_prepared_file;
-#line 15061 "BatchImport.c"
- } else {
-#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 15065 "BatchImport.c"
- }
-#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15069 "BatchImport.c"
- }
- }
-#line 1830 "/home/jens/Source/shotwell/src/BatchImport.vala"
- exif_only_md5 = NULL;
-#line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala"
- thumbnail_md5 = NULL;
-#line 1832 "/home/jens/Source/shotwell/src/BatchImport.vala"
- full_md5 = NULL;
-#line 15078 "BatchImport.c"
- {
- gchar* _tmp11_ = NULL;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = md5_file (file, &_inner_error_);
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp12_;
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15089 "BatchImport.c"
- goto __catch430_g_error;
- }
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp11_;
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = NULL;
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (full_md5);
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- full_md5 = _tmp13_;
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp11_);
-#line 15102 "BatchImport.c"
- }
- goto __finally430;
- __catch430_g_error:
- {
- GError* err = NULL;
- gchar* _tmp14_;
- gchar* _tmp15_;
- GError* _tmp16_;
- const gchar* _tmp17_;
- GError* _tmp18_;
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = g_file_get_path (file);
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = err;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_->message;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1840: Unable to perform MD5 checksum on file %s: %s", _tmp15_, _tmp17_);
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp15_);
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = err;
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = import_result_convert_error (_tmp18_, IMPORT_RESULT_FILE_ERROR);
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (full_md5);
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prepared_file) {
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *prepared_file = _vala_prepared_file;
-#line 15145 "BatchImport.c"
- } else {
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 15149 "BatchImport.c"
- }
-#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15153 "BatchImport.c"
- }
- __finally430:
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (full_md5);
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.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 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return 0;
-#line 15170 "BatchImport.c"
- }
-#line 1848 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_format = photo_file_format_get_by_file_extension (file);
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = is_video;
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp19_) {
-#line 15178 "BatchImport.c"
- PhotoFileFormat _tmp20_;
- PhotoFileReader* reader = NULL;
- PhotoFileFormat _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- PhotoFileReader* _tmp26_;
- PhotoFileReader* _tmp27_;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp36_;
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = file_format;
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp20_ == PHOTO_FILE_FORMAT_UNKNOWN) {
-#line 15192 "BatchImport.c"
- gchar* _tmp21_;
- gchar* _tmp22_;
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = g_file_get_path (file);
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = _tmp21_;
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1851: Skipping %s: unrecognized file extension", _tmp22_);
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp22_);
-#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (full_md5);
-#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prepared_file) {
-#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *prepared_file = _vala_prepared_file;
-#line 15215 "BatchImport.c"
- } else {
-#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 15219 "BatchImport.c"
- }
-#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15223 "BatchImport.c"
- }
-#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = file_format;
-#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = g_file_get_path (file);
-#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp24_;
-#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = photo_file_format_create_reader (_tmp23_, _tmp25_);
-#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_;
-#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp25_);
-#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
- reader = _tmp27_;
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
- metadata = NULL;
-#line 15241 "BatchImport.c"
- {
- PhotoMetadata* _tmp28_ = NULL;
- PhotoFileReader* _tmp29_;
- PhotoMetadata* _tmp30_;
- PhotoMetadata* _tmp31_;
-#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = reader;
-#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = photo_file_reader_read_metadata (_tmp29_, &_inner_error_);
-#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _tmp30_;
-#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15255 "BatchImport.c"
- goto __catch431_g_error;
- }
-#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _tmp28_;
-#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = NULL;
-#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_metadata_unref0 (metadata);
-#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- metadata = _tmp31_;
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_metadata_unref0 (_tmp28_);
-#line 15268 "BatchImport.c"
- }
- goto __finally431;
- __catch431_g_error:
- {
- GError* err = NULL;
- gchar* _tmp32_;
- gchar* _tmp33_;
- GError* _tmp34_;
- const gchar* _tmp35_;
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = g_file_get_path (file);
-#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = _tmp32_;
-#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = err;
-#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = _tmp34_->message;
-#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1860: Unable to read metadata for %s (%s): continuing" \
-" to attempt import", _tmp33_, _tmp35_);
-#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp33_);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 15296 "BatchImport.c"
- }
- __finally431:
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_metadata_unref0 (metadata);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_file_adapter_unref0 (reader);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (full_md5);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.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 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return 0;
-#line 15317 "BatchImport.c"
- }
-#line 1864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = metadata;
-#line 1864 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp36_ != NULL) {
-#line 15323 "BatchImport.c"
- PhotoMetadata* _tmp37_;
- gchar* _tmp38_;
- PhotoMetadata* _tmp39_;
- gchar* _tmp40_;
-#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = metadata;
-#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = photo_metadata_exif_hash (_tmp37_);
-#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
- exif_only_md5 = _tmp38_;
-#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = metadata;
-#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = photo_metadata_thumbnail_hash (_tmp39_);
-#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- thumbnail_md5 = _tmp40_;
-#line 15344 "BatchImport.c"
- }
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_metadata_unref0 (metadata);
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_file_adapter_unref0 (reader);
-#line 15350 "BatchImport.c"
- }
-#line 1870 "/home/jens/Source/shotwell/src/BatchImport.vala"
- filesize = (guint64) 0;
-#line 15354 "BatchImport.c"
- {
- guint64 _tmp41_ = 0ULL;
- GCancellable* _tmp42_;
- GCancellable* _tmp43_;
- guint64 _tmp44_;
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = _tmp42_;
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = query_total_file_size (file, _tmp43_, &_inner_error_);
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp43_);
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = _tmp44_;
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15372 "BatchImport.c"
- goto __catch432_g_error;
- }
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
- filesize = _tmp41_;
-#line 15377 "BatchImport.c"
- }
- goto __finally432;
- __catch432_g_error:
- {
- GError* err = NULL;
- gchar* _tmp45_;
- gchar* _tmp46_;
- GError* _tmp47_;
- const gchar* _tmp48_;
- GError* _tmp49_;
-#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = g_file_get_path (file);
-#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = _tmp45_;
-#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = err;
-#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = _tmp47_->message;
-#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1874: Unable to query file size of %s: %s", _tmp46_, _tmp48_);
-#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp46_);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = err;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = import_result_convert_error (_tmp49_, IMPORT_RESULT_FILE_ERROR);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (full_md5);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prepared_file) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *prepared_file = _vala_prepared_file;
-#line 15420 "BatchImport.c"
- } else {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 15424 "BatchImport.c"
- }
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15428 "BatchImport.c"
- }
- __finally432:
-#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (full_md5);
-#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1871 "/home/jens/Source/shotwell/src/BatchImport.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 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return 0;
-#line 15445 "BatchImport.c"
- }
-#line 1880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = self->priv->library_dir;
-#line 1880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- is_in_library_dir = g_file_has_prefix (file, _tmp50_);
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (copy_to_library) {
-#line 15453 "BatchImport.c"
- gboolean _tmp52_;
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = is_in_library_dir;
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = !_tmp52_;
-#line 15459 "BatchImport.c"
- } else {
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = FALSE;
-#line 15463 "BatchImport.c"
- }
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = batch_import_job_get_source_identifier (job);
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = _tmp53_;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = batch_import_job_get_dest_identifier (job);
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = _tmp55_;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = exif_only_md5;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = thumbnail_md5;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = full_md5;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = file_format;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = filesize;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = is_video;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = prepared_file_new (job, file, associated_file, _tmp54_, _tmp56_, _tmp51_, _tmp57_, _tmp58_, _tmp59_, _tmp60_, _tmp61_, _tmp62_);
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_prepared_file = _tmp63_;
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp56_);
-#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp54_);
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = IMPORT_RESULT_SUCCESS;
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (full_md5);
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (prepared_file) {
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *prepared_file = _vala_prepared_file;
-#line 15507 "BatchImport.c"
- } else {
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_vala_prepared_file);
-#line 15511 "BatchImport.c"
- }
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15515 "BatchImport.c"
-}
-
-
-static void
-prepare_files_job_class_init (PrepareFilesJobClass * klass)
-{
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepare_files_job_parent_class = g_type_class_peek_parent (klass);
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->finalize = prepare_files_job_finalize;
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_class_add_private (klass, sizeof (PrepareFilesJobPrivate));
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) prepare_files_job_real_execute;
-#line 15530 "BatchImport.c"
-}
-
-
-static void
-prepare_files_job_instance_init (PrepareFilesJob * self)
-{
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv = PREPARE_FILES_JOB_GET_PRIVATE (self);
-#line 1687 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->prepared_files = 0;
-#line 1694 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->import_file_count = 0;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->fail_every = 0;
-#line 1696 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->skip_every = 0;
-#line 15547 "BatchImport.c"
-}
-
-
-static void
-prepare_files_job_finalize (BackgroundJob * obj)
-{
- PrepareFilesJob * self;
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARE_FILES_JOB, PrepareFilesJob);
-#line 1689 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->files_to_prepare);
-#line 1691 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->priv->library_dir);
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BACKGROUND_JOB_CLASS (prepare_files_job_parent_class)->finalize (obj);
-#line 15563 "BatchImport.c"
-}
-
-
-GType
-prepare_files_job_get_type (void)
-{
- static volatile gsize prepare_files_job_type_id__volatile = 0;
- if (g_once_init_enter (&prepare_files_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PrepareFilesJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepare_files_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrepareFilesJob), 0, (GInstanceInitFunc) prepare_files_job_instance_init, NULL };
- GType prepare_files_job_type_id;
- prepare_files_job_type_id = g_type_register_static (TYPE_BACKGROUND_IMPORT_JOB, "PrepareFilesJob", &g_define_type_info, 0);
- g_once_init_leave (&prepare_files_job_type_id__volatile, prepare_files_job_type_id);
- }
- return prepare_files_job_type_id__volatile;
-}
-
-
-static gpointer
-_prepared_file_ref0 (gpointer self)
-{
-#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? prepared_file_ref (self) : NULL;
-#line 15586 "BatchImport.c"
-}
-
-
-static gpointer
-_batch_import_result_ref0 (gpointer self)
-{
-#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? batch_import_result_ref (self) : NULL;
-#line 15595 "BatchImport.c"
-}
-
-
-static gpointer
-_video_import_params_ref0 (gpointer self)
-{
-#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? video_import_params_ref (self) : NULL;
-#line 15604 "BatchImport.c"
-}
-
-
-static gpointer
-_photo_import_params_ref0 (gpointer self)
-{
-#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? photo_import_params_ref (self) : NULL;
-#line 15613 "BatchImport.c"
-}
-
-
-ReadyForImport*
-ready_for_import_construct (GType object_type,
- GFile* final_file,
- PreparedFile* prepared_file,
- PhotoImportParams* photo_import_params,
- VideoImportParams* video_import_params,
- BatchImportResult* batch_result)
-{
- ReadyForImport* self = NULL;
- gboolean _tmp0_;
- GFile* _tmp3_;
- PreparedFile* _tmp4_;
- BatchImportResult* _tmp5_;
- VideoImportParams* _tmp6_;
- PhotoImportParams* _tmp7_;
- gboolean _tmp8_;
-#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_FILE (final_file), NULL);
-#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL);
-#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((photo_import_params == NULL) || IS_PHOTO_IMPORT_PARAMS (photo_import_params), NULL);
-#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail ((video_import_params == NULL) || IS_VIDEO_IMPORT_PARAMS (video_import_params), NULL);
-#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (batch_result), NULL);
-#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (ReadyForImport*) g_type_create_instance (object_type);
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = prepared_file->is_video;
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_) {
-#line 15649 "BatchImport.c"
- gboolean _tmp1_ = FALSE;
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (video_import_params != NULL) {
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = photo_import_params == NULL;
-#line 15655 "BatchImport.c"
- } else {
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = FALSE;
-#line 15659 "BatchImport.c"
- }
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp1_, "(video_import_params != null) && (photo_import_params == null)");
-#line 15663 "BatchImport.c"
- } else {
- gboolean _tmp2_ = FALSE;
-#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (video_import_params == NULL) {
-#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = photo_import_params != NULL;
-#line 15670 "BatchImport.c"
- } else {
-#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = FALSE;
-#line 15674 "BatchImport.c"
- }
-#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp2_, "(video_import_params == null) && (photo_import_params != null)");
-#line 15678 "BatchImport.c"
- }
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _g_object_ref0 (final_file);
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->final_file);
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->final_file = _tmp3_;
-#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _prepared_file_ref0 (prepared_file);
-#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (self->prepared_file);
-#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->prepared_file = _tmp4_;
-#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _batch_import_result_ref0 (batch_result);
-#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->batch_result);
-#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->batch_result = _tmp5_;
-#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _video_import_params_ref0 (video_import_params);
-#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _video_import_params_unref0 (self->video_import_params);
-#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->video_import_params = _tmp6_;
-#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _photo_import_params_ref0 (photo_import_params);
-#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_import_params_unref0 (self->photo_import_params);
-#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->photo_import_params = _tmp7_;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = prepared_file->is_video;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->is_video = _tmp8_;
-#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 15716 "BatchImport.c"
-}
-
-
-ReadyForImport*
-ready_for_import_new (GFile* final_file,
- PreparedFile* prepared_file,
- PhotoImportParams* photo_import_params,
- VideoImportParams* video_import_params,
- BatchImportResult* batch_result)
-{
-#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return ready_for_import_construct (TYPE_READY_FOR_IMPORT, final_file, prepared_file, photo_import_params, video_import_params, batch_result);
-#line 15729 "BatchImport.c"
-}
-
-
-BatchImportResult*
-ready_for_import_abort (ReadyForImport* self)
-{
- BatchImportResult* result = NULL;
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_;
- PreparedFile* _tmp14_;
- BatchImportJob* _tmp15_;
- PreparedFile* _tmp16_;
- GFile* _tmp17_;
- PreparedFile* _tmp18_;
- BatchImportJob* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- PreparedFile* _tmp22_;
- BatchImportJob* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- BatchImportResult* _tmp26_;
- BatchImportResult* _tmp27_;
- BatchImportResult* _tmp28_;
- GError * _inner_error_ = NULL;
-#line 1915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_READY_FOR_IMPORT (self), NULL);
-#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->final_file;
-#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != NULL) {
-#line 15761 "BatchImport.c"
- GFile* _tmp2_;
- PreparedFile* _tmp3_;
- GFile* _tmp4_;
-#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->final_file;
-#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->prepared_file;
-#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_->file;
-#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp2_ != _tmp4_;
-#line 15773 "BatchImport.c"
- } else {
-#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = FALSE;
-#line 15777 "BatchImport.c"
- }
-#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_) {
-#line 15781 "BatchImport.c"
- GFile* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->final_file;
-#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = g_file_get_path (_tmp5_);
-#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1918: Deleting aborted import copy %s", _tmp7_);
-#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp7_);
-#line 15795 "BatchImport.c"
- {
- GFile* _tmp8_;
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->final_file;
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_file_delete (_tmp8_, NULL, &_inner_error_);
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15804 "BatchImport.c"
- goto __catch433_g_error;
- }
- }
- goto __finally433;
- __catch433_g_error:
- {
- GError* err = NULL;
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GError* _tmp12_;
- const gchar* _tmp13_;
-#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->final_file;
-#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = g_file_get_path (_tmp9_);
-#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_;
-#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = err;
-#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_->message;
-#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1922: Unable to delete copy of imported file (aborted" \
-" import) %s: %s", _tmp11_, _tmp13_);
-#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp11_);
-#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 15837 "BatchImport.c"
- }
- __finally433:
-#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1919 "/home/jens/Source/shotwell/src/BatchImport.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 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 15848 "BatchImport.c"
- }
- }
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->prepared_file;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_->job;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = self->prepared_file;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_->file;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = self->prepared_file;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_->job;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = batch_import_job_get_source_identifier (_tmp19_);
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _tmp20_;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = self->prepared_file;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_->job;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = batch_import_job_get_dest_identifier (_tmp23_);
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp24_;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = batch_import_result_new (_tmp15_, _tmp17_, _tmp21_, _tmp25_, NULL, IMPORT_RESULT_USER_ABORT);
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->batch_result);
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->batch_result = _tmp26_;
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp25_);
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp21_);
-#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = self->batch_result;
-#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _batch_import_result_ref0 (_tmp27_);
-#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp28_;
-#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15893 "BatchImport.c"
-}
-
-
-static gpointer
-_thumbnails_ref0 (gpointer self)
-{
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self ? thumbnails_ref (self) : NULL;
-#line 15902 "BatchImport.c"
-}
-
-
-Thumbnails*
-ready_for_import_get_thumbnails (ReadyForImport* self)
-{
- Thumbnails* result = NULL;
- Thumbnails* _tmp0_ = NULL;
- PhotoImportParams* _tmp1_;
- Thumbnails* _tmp6_;
-#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_READY_FOR_IMPORT (self), NULL);
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = self->photo_import_params;
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_ != NULL) {
-#line 15919 "BatchImport.c"
- PhotoImportParams* _tmp2_;
- Thumbnails* _tmp3_;
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->photo_import_params;
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_->thumbnails;
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp3_;
-#line 15928 "BatchImport.c"
- } else {
- VideoImportParams* _tmp4_;
- Thumbnails* _tmp5_;
-#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->video_import_params;
-#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->thumbnails;
-#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp5_;
-#line 15938 "BatchImport.c"
- }
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _thumbnails_ref0 (_tmp0_);
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp6_;
-#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return result;
-#line 15946 "BatchImport.c"
-}
-
-
-static void
-value_ready_for_import_init (GValue* value)
-{
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 15955 "BatchImport.c"
-}
-
-
-static void
-value_ready_for_import_free_value (GValue* value)
-{
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (value->data[0].v_pointer) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ready_for_import_unref (value->data[0].v_pointer);
-#line 15966 "BatchImport.c"
- }
-}
-
-
-static void
-value_ready_for_import_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (src_value->data[0].v_pointer) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = ready_for_import_ref (src_value->data[0].v_pointer);
-#line 15979 "BatchImport.c"
- } else {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 15983 "BatchImport.c"
- }
-}
-
-
-static gpointer
-value_ready_for_import_peek_pointer (const GValue* value)
-{
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 15993 "BatchImport.c"
-}
-
-
-static gchar*
-value_ready_for_import_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (collect_values[0].v_pointer) {
-#line 16005 "BatchImport.c"
- ReadyForImport * object;
- object = collect_values[0].v_pointer;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 16012 "BatchImport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.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 16016 "BatchImport.c"
- }
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = ready_for_import_ref (object);
-#line 16020 "BatchImport.c"
- } else {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 16024 "BatchImport.c"
- }
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 16028 "BatchImport.c"
-}
-
-
-static gchar*
-value_ready_for_import_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- ReadyForImport ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!object_p) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 16044 "BatchImport.c"
- }
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!value->data[0].v_pointer) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = NULL;
-#line 16050 "BatchImport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = value->data[0].v_pointer;
-#line 16054 "BatchImport.c"
- } else {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = ready_for_import_ref (value->data[0].v_pointer);
-#line 16058 "BatchImport.c"
- }
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 16062 "BatchImport.c"
-}
-
-
-GParamSpec*
-param_spec_ready_for_import (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecReadyForImport* spec;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_READY_FOR_IMPORT), NULL);
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return G_PARAM_SPEC (spec);
-#line 16082 "BatchImport.c"
-}
-
-
-gpointer
-value_get_ready_for_import (const GValue* value)
-{
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT), NULL);
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 16093 "BatchImport.c"
-}
-
-
-void
-value_set_ready_for_import (GValue* value,
- gpointer v_object)
-{
- ReadyForImport * old;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT));
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_READY_FOR_IMPORT));
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ready_for_import_ref (value->data[0].v_pointer);
-#line 16116 "BatchImport.c"
- } else {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 16120 "BatchImport.c"
- }
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ready_for_import_unref (old);
-#line 16126 "BatchImport.c"
- }
-}
-
-
-void
-value_take_ready_for_import (GValue* value,
- gpointer v_object)
-{
- ReadyForImport * old;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT));
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_READY_FOR_IMPORT));
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 16148 "BatchImport.c"
- } else {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 16152 "BatchImport.c"
- }
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ready_for_import_unref (old);
-#line 16158 "BatchImport.c"
- }
-}
-
-
-static void
-ready_for_import_class_init (ReadyForImportClass * klass)
-{
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ready_for_import_parent_class = g_type_class_peek_parent (klass);
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((ReadyForImportClass *) klass)->finalize = ready_for_import_finalize;
-#line 16170 "BatchImport.c"
-}
-
-
-static void
-ready_for_import_instance_init (ReadyForImport * self)
-{
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ref_count = 1;
-#line 16179 "BatchImport.c"
-}
-
-
-static void
-ready_for_import_finalize (ReadyForImport * obj)
-{
- ReadyForImport * self;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_READY_FOR_IMPORT, ReadyForImport);
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_destroy (self);
-#line 1892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->final_file);
-#line 1893 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (self->prepared_file);
-#line 1894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_import_params_unref0 (self->photo_import_params);
-#line 1895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _video_import_params_unref0 (self->video_import_params);
-#line 1896 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->batch_result);
-#line 16201 "BatchImport.c"
-}
-
-
-GType
-ready_for_import_get_type (void)
-{
- static volatile gsize ready_for_import_type_id__volatile = 0;
- if (g_once_init_enter (&ready_for_import_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_ready_for_import_init, value_ready_for_import_free_value, value_ready_for_import_copy_value, value_ready_for_import_peek_pointer, "p", value_ready_for_import_collect_value, "p", value_ready_for_import_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ReadyForImportClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) ready_for_import_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ReadyForImport), 0, (GInstanceInitFunc) ready_for_import_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType ready_for_import_type_id;
- ready_for_import_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ReadyForImport", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&ready_for_import_type_id__volatile, ready_for_import_type_id);
- }
- return ready_for_import_type_id__volatile;
-}
-
-
-gpointer
-ready_for_import_ref (gpointer instance)
-{
- ReadyForImport * self;
- self = instance;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return instance;
-#line 16230 "BatchImport.c"
-}
-
-
-void
-ready_for_import_unref (gpointer instance)
-{
- ReadyForImport * self;
- self = instance;
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- READY_FOR_IMPORT_GET_CLASS (self)->finalize (self);
-#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 16245 "BatchImport.c"
- }
-}
-
-
-PreparedFileImportJob*
-prepared_file_import_job_construct (GType object_type,
- BatchImport* owner,
- PreparedFile* prepared_file,
- ImportID* import_id,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target)
-{
- PreparedFileImportJob* self = NULL;
- ImportID _tmp0_;
- PreparedFile* _tmp1_;
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL);
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (import_id != NULL, NULL);
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1949 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (PreparedFileImportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), callback, callback_target, cancellable, cancellation, cancellation_target, NULL);
-#line 1951 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = *import_id;
-#line 1951 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->import_id = _tmp0_;
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _prepared_file_ref0 (prepared_file);
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (self->not_ready);
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->not_ready = _tmp1_;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW);
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 16288 "BatchImport.c"
-}
-
-
-PreparedFileImportJob*
-prepared_file_import_job_new (BatchImport* owner,
- PreparedFile* prepared_file,
- ImportID* import_id,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target)
-{
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return prepared_file_import_job_construct (TYPE_PREPARED_FILE_IMPORT_JOB, owner, prepared_file, import_id, callback, callback_target, cancellable, cancellation, cancellation_target);
-#line 16304 "BatchImport.c"
-}
-
-
-static void
-prepared_file_import_job_real_execute (BackgroundJob* base)
-{
- PreparedFileImportJob * self;
- PreparedFile* prepared_file = NULL;
- PreparedFile* _tmp0_;
- PreparedFile* _tmp1_;
- GFile* final_file = NULL;
- PreparedFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* final_associated_file = NULL;
- PreparedFile* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
- PreparedFile* _tmp8_;
- gboolean _tmp9_;
- GFile* _tmp51_;
- GFile* _tmp55_;
- gchar* _tmp56_;
- gchar* _tmp57_;
- ImportResult _result_ = 0;
- VideoImportParams* video_import_params = NULL;
- PhotoImportParams* photo_import_params = NULL;
- PreparedFile* _tmp58_;
- gboolean _tmp59_;
- gboolean _tmp83_ = FALSE;
- ImportResult _tmp84_;
- BatchImportResult* batch_result = NULL;
- PreparedFile* _tmp97_;
- BatchImportJob* _tmp98_;
- GFile* _tmp99_;
- GFile* _tmp100_;
- gchar* _tmp101_;
- gchar* _tmp102_;
- GFile* _tmp103_;
- gchar* _tmp104_;
- gchar* _tmp105_;
- ImportResult _tmp106_;
- BatchImportResult* _tmp107_;
- BatchImportResult* _tmp108_;
- BatchImportResult* _tmp109_;
- ImportResult _tmp110_;
- GError * _inner_error_ = NULL;
-#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob);
-#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->not_ready;
-#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _prepared_file_ref0 (_tmp0_);
-#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file = _tmp1_;
-#line 1959 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (self->not_ready);
-#line 1959 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->not_ready = NULL;
-#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = prepared_file;
-#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_->file;
-#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala"
- final_file = _tmp4_;
-#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = prepared_file;
-#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_->associated_file;
-#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
- final_associated_file = _tmp7_;
-#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = prepared_file;
-#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->copy_to_library;
-#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp9_) {
-#line 16386 "BatchImport.c"
- {
- GFile* _tmp10_ = NULL;
- PreparedFile* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- GFile* _tmp14_;
- GFile* _tmp15_;
- GFile* _tmp29_;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = prepared_file;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_->file;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = library_files_duplicate (_tmp12_, NULL, NULL, TRUE, &_inner_error_);
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _tmp13_;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 16405 "BatchImport.c"
- goto __catch434_g_error;
- }
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp10_;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = NULL;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_file);
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- final_file = _tmp14_;
-#line 1968 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = final_file;
-#line 1968 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp15_ == NULL) {
-#line 16420 "BatchImport.c"
- PreparedFile* _tmp16_;
- BatchImportJob* _tmp17_;
- PreparedFile* _tmp18_;
- GFile* _tmp19_;
- PreparedFile* _tmp20_;
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- PreparedFile* _tmp24_;
- GFile* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- BatchImportResult* _tmp28_;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = prepared_file;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_->job;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = prepared_file;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_->file;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = prepared_file;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _tmp20_->file;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = g_file_get_path (_tmp21_);
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = prepared_file;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp24_->file;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = g_file_get_path (_tmp25_);
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = batch_import_result_new (_tmp17_, _tmp19_, _tmp23_, _tmp27_, NULL, IMPORT_RESULT_FILE_ERROR);
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->failed);
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->failed = _tmp28_;
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp27_);
-#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp23_);
-#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp10_);
-#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_associated_file);
-#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_file);
-#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (prepared_file);
-#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 16478 "BatchImport.c"
- }
-#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = final_associated_file;
-#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp29_ != NULL) {
-#line 16484 "BatchImport.c"
- GFile* _tmp30_ = NULL;
- PreparedFile* _tmp31_;
- GFile* _tmp32_;
- GFile* _tmp33_;
- GFile* _tmp34_;
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = prepared_file;
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _tmp31_->associated_file;
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = library_files_duplicate (_tmp32_, NULL, NULL, TRUE, &_inner_error_);
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp33_;
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp10_);
-#line 16502 "BatchImport.c"
- goto __catch434_g_error;
- }
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _tmp30_;
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = NULL;
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_associated_file);
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
- final_associated_file = _tmp34_;
-#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp30_);
-#line 16515 "BatchImport.c"
- }
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp10_);
-#line 16519 "BatchImport.c"
- }
- goto __finally434;
- __catch434_g_error:
- {
- GError* err = NULL;
- gchar* _tmp35_ = NULL;
- GFile* _tmp36_;
- gchar* filename = NULL;
- gchar* _tmp42_;
- PreparedFile* _tmp43_;
- BatchImportJob* _tmp44_;
- PreparedFile* _tmp45_;
- GFile* _tmp46_;
- const gchar* _tmp47_;
- const gchar* _tmp48_;
- GError* _tmp49_;
- BatchImportResult* _tmp50_;
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = final_file;
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp36_ != NULL) {
-#line 16545 "BatchImport.c"
- GFile* _tmp37_;
- gchar* _tmp38_;
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = final_file;
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = g_file_get_path (_tmp37_);
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp35_);
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = _tmp38_;
-#line 16556 "BatchImport.c"
- } else {
- PreparedFile* _tmp39_;
- const gchar* _tmp40_;
- gchar* _tmp41_;
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = prepared_file;
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = _tmp39_->source_id;
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = g_strdup (_tmp40_);
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp35_);
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = _tmp41_;
-#line 16571 "BatchImport.c"
- }
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = g_strdup (_tmp35_);
-#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
- filename = _tmp42_;
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = prepared_file;
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = _tmp43_->job;
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = prepared_file;
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = _tmp45_->file;
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = filename;
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = filename;
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = err;
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = batch_import_result_new_from_error (_tmp44_, _tmp46_, _tmp47_, _tmp48_, _tmp49_, IMPORT_RESULT_FILE_ERROR);
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->failed);
-#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->failed = _tmp50_;
-#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (filename);
-#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp35_);
-#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_associated_file);
-#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_file);
-#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (prepared_file);
-#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 16611 "BatchImport.c"
- }
- __finally434:
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_associated_file);
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_file);
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (prepared_file);
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.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 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 16628 "BatchImport.c"
- }
- }
-#line 1991 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = final_associated_file;
-#line 1991 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp51_ == NULL) {
-#line 16635 "BatchImport.c"
- PreparedFile* _tmp52_;
- BatchImportJob* _tmp53_;
- GFile* _tmp54_;
-#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = prepared_file;
-#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = _tmp52_->job;
-#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = batch_import_job_get_associated_file (_tmp53_);
-#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_associated_file);
-#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
- final_associated_file = _tmp54_;
-#line 16649 "BatchImport.c"
- }
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = final_file;
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = g_file_get_path (_tmp55_);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = _tmp56_;
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1995: Importing %s", _tmp57_);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp57_);
-#line 1997 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = IMPORT_RESULT_SUCCESS;
-#line 1998 "/home/jens/Source/shotwell/src/BatchImport.vala"
- video_import_params = NULL;
-#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_import_params = NULL;
-#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = prepared_file;
-#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = _tmp58_->is_video;
-#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp59_) {
-#line 16673 "BatchImport.c"
- GFile* _tmp60_;
- ImportID _tmp61_;
- PreparedFile* _tmp62_;
- const gchar* _tmp63_;
- Thumbnails* _tmp64_;
- Thumbnails* _tmp65_;
- PreparedFile* _tmp66_;
- BatchImportJob* _tmp67_;
- VideoImportParams* _tmp68_;
- VideoImportParams* _tmp69_;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = final_file;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = self->priv->import_id;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = prepared_file;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = _tmp62_->full_md5;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = thumbnails_new ();
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = _tmp64_;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = prepared_file;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = _tmp66_->job;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = video_import_params_new (_tmp60_, &_tmp61_, _tmp63_, _tmp65_, batch_import_job_get_exposure_time_override (_tmp67_));
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _video_import_params_unref0 (video_import_params);
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- video_import_params = _tmp68_;
-#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp65_);
-#line 2005 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = video_import_params;
-#line 2005 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = video_reader_prepare_for_import (_tmp69_);
-#line 16712 "BatchImport.c"
- } else {
- GFile* _tmp70_;
- GFile* _tmp71_;
- ImportID _tmp72_;
- PreparedFile* _tmp73_;
- const gchar* _tmp74_;
- PreparedFile* _tmp75_;
- const gchar* _tmp76_;
- PreparedFile* _tmp77_;
- const gchar* _tmp78_;
- Thumbnails* _tmp79_;
- Thumbnails* _tmp80_;
- PhotoImportParams* _tmp81_;
- PhotoImportParams* _tmp82_;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = final_file;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = final_associated_file;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = self->priv->import_id;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = prepared_file;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = _tmp73_->exif_md5;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = prepared_file;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = _tmp75_->thumbnail_md5;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = prepared_file;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = _tmp77_->full_md5;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = thumbnails_new ();
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = _tmp79_;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = photo_import_params_new (_tmp70_, _tmp71_, &_tmp72_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, _tmp74_, _tmp76_, _tmp78_, _tmp80_);
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_import_params_unref0 (photo_import_params);
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_import_params = _tmp81_;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp80_);
-#line 2011 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = photo_import_params;
-#line 2011 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = photo_prepare_for_import (_tmp82_);
-#line 16761 "BatchImport.c"
- }
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = _result_;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp84_ != IMPORT_RESULT_SUCCESS) {
-#line 16767 "BatchImport.c"
- GFile* _tmp85_;
- PreparedFile* _tmp86_;
- GFile* _tmp87_;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = final_file;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = prepared_file;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = _tmp86_->file;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = _tmp85_ != _tmp87_;
-#line 16779 "BatchImport.c"
- } else {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = FALSE;
-#line 16783 "BatchImport.c"
- }
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp83_) {
-#line 16787 "BatchImport.c"
- GFile* _tmp88_;
- gchar* _tmp89_;
- gchar* _tmp90_;
-#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = final_file;
-#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp89_ = g_file_get_path (_tmp88_);
-#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp90_ = _tmp89_;
-#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:2015: Deleting failed imported copy %s", _tmp90_);
-#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp90_);
-#line 16801 "BatchImport.c"
- {
- GFile* _tmp91_;
-#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp91_ = final_file;
-#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_file_delete (_tmp91_, NULL, &_inner_error_);
-#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 16810 "BatchImport.c"
- goto __catch435_g_error;
- }
- }
- goto __finally435;
- __catch435_g_error:
- {
- GError* err = NULL;
- GFile* _tmp92_;
- gchar* _tmp93_;
- gchar* _tmp94_;
- GError* _tmp95_;
- const gchar* _tmp96_;
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp92_ = final_file;
-#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93_ = g_file_get_path (_tmp92_);
-#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp94_ = _tmp93_;
-#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95_ = err;
-#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp96_ = _tmp95_->message;
-#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:2020: Unable to delete copy of imported file %s: %s", _tmp94_, _tmp96_);
-#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp94_);
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 16843 "BatchImport.c"
- }
- __finally435:
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_import_params_unref0 (photo_import_params);
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _video_import_params_unref0 (video_import_params);
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_associated_file);
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_file);
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (prepared_file);
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.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 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 16864 "BatchImport.c"
- }
- }
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp97_ = prepared_file;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp98_ = _tmp97_->job;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp99_ = final_file;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp100_ = final_file;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp101_ = g_file_get_path (_tmp100_);
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp102_ = _tmp101_;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp103_ = final_file;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp104_ = g_file_get_path (_tmp103_);
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp105_ = _tmp104_;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp106_ = _result_;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp107_ = batch_import_result_new (_tmp98_, _tmp99_, _tmp102_, _tmp105_, NULL, _tmp106_);
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp108_ = _tmp107_;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp105_);
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp102_);
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_result = _tmp108_;
-#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp109_ = batch_result;
-#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp110_ = _tmp109_->result;
-#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp110_ != IMPORT_RESULT_SUCCESS) {
-#line 16903 "BatchImport.c"
- BatchImportResult* _tmp111_;
- BatchImportResult* _tmp112_;
-#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp111_ = batch_result;
-#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp112_ = _batch_import_result_ref0 (_tmp111_);
-#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->failed);
-#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->failed = _tmp112_;
-#line 16914 "BatchImport.c"
- } else {
- GFile* _tmp113_;
- PreparedFile* _tmp114_;
- PhotoImportParams* _tmp115_;
- VideoImportParams* _tmp116_;
- BatchImportResult* _tmp117_;
- ReadyForImport* _tmp118_;
-#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp113_ = final_file;
-#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp114_ = prepared_file;
-#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp115_ = photo_import_params;
-#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp116_ = video_import_params;
-#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp117_ = batch_result;
-#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp118_ = ready_for_import_new (_tmp113_, _tmp114_, _tmp115_, _tmp116_, _tmp117_);
-#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ready_for_import_unref0 (self->ready);
-#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ready = _tmp118_;
-#line 16938 "BatchImport.c"
- }
-#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (batch_result);
-#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_import_params_unref0 (photo_import_params);
-#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _video_import_params_unref0 (video_import_params);
-#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_associated_file);
-#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (final_file);
-#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (prepared_file);
-#line 16952 "BatchImport.c"
-}
-
-
-static void
-prepared_file_import_job_class_init (PreparedFileImportJobClass * klass)
-{
-#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->finalize = prepared_file_import_job_finalize;
-#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_class_add_private (klass, sizeof (PreparedFileImportJobPrivate));
-#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) prepared_file_import_job_real_execute;
-#line 16967 "BatchImport.c"
-}
-
-
-static void
-prepared_file_import_job_instance_init (PreparedFileImportJob * self)
-{
-#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv = PREPARED_FILE_IMPORT_JOB_GET_PRIVATE (self);
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ready = NULL;
-#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->failed = NULL;
-#line 16980 "BatchImport.c"
-}
-
-
-static void
-prepared_file_import_job_finalize (BackgroundJob * obj)
-{
- PreparedFileImportJob * self;
-#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob);
-#line 1941 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (self->not_ready);
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ready_for_import_unref0 (self->ready);
-#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->failed);
-#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BACKGROUND_JOB_CLASS (prepared_file_import_job_parent_class)->finalize (obj);
-#line 16998 "BatchImport.c"
-}
-
-
-GType
-prepared_file_import_job_get_type (void)
-{
- static volatile gsize prepared_file_import_job_type_id__volatile = 0;
- if (g_once_init_enter (&prepared_file_import_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PreparedFileImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepared_file_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreparedFileImportJob), 0, (GInstanceInitFunc) prepared_file_import_job_instance_init, NULL };
- GType prepared_file_import_job_type_id;
- prepared_file_import_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PreparedFileImportJob", &g_define_type_info, 0);
- g_once_init_leave (&prepared_file_import_job_type_id__volatile, prepared_file_import_job_type_id);
- }
- return prepared_file_import_job_type_id__volatile;
-}
-
-
-CompletedImportObject*
-completed_import_object_construct (GType object_type,
- MediaSource* source,
- Thumbnails* thumbnails,
- BatchImportJob* original_job,
- BatchImportResult* import_result)
-{
- CompletedImportObject* self = NULL;
- Thumbnails* _tmp0_;
- BatchImportResult* _tmp1_;
- MediaSource* _tmp2_;
- BatchImportJob* _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_THUMBNAILS (thumbnails), NULL);
-#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_JOB (original_job), NULL);
-#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (import_result), NULL);
-#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (CompletedImportObject*) g_type_create_instance (object_type);
-#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _thumbnails_ref0 (thumbnails);
-#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (self->thumbnails);
-#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->thumbnails = _tmp0_;
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _batch_import_result_ref0 (import_result);
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->batch_result);
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->batch_result = _tmp1_;
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _g_object_ref0 (source);
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->source);
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->source = _tmp2_;
-#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _batch_import_job_ref0 (original_job);
-#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->original_job);
-#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->original_job = _tmp3_;
-#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = thumbnails_get (thumbnails, THUMBNAIL_CACHE_SIZE_LARGEST);
-#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->user_preview);
-#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->user_preview = _tmp4_;
-#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 17071 "BatchImport.c"
-}
-
-
-CompletedImportObject*
-completed_import_object_new (MediaSource* source,
- Thumbnails* thumbnails,
- BatchImportJob* original_job,
- BatchImportResult* import_result)
-{
-#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return completed_import_object_construct (TYPE_COMPLETED_IMPORT_OBJECT, source, thumbnails, original_job, import_result);
-#line 17083 "BatchImport.c"
-}
-
-
-static void
-value_completed_import_object_init (GValue* value)
-{
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 17092 "BatchImport.c"
-}
-
-
-static void
-value_completed_import_object_free_value (GValue* value)
-{
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (value->data[0].v_pointer) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed_import_object_unref (value->data[0].v_pointer);
-#line 17103 "BatchImport.c"
- }
-}
-
-
-static void
-value_completed_import_object_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (src_value->data[0].v_pointer) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = completed_import_object_ref (src_value->data[0].v_pointer);
-#line 17116 "BatchImport.c"
- } else {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 17120 "BatchImport.c"
- }
-}
-
-
-static gpointer
-value_completed_import_object_peek_pointer (const GValue* value)
-{
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 17130 "BatchImport.c"
-}
-
-
-static gchar*
-value_completed_import_object_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (collect_values[0].v_pointer) {
-#line 17142 "BatchImport.c"
- CompletedImportObject * object;
- object = collect_values[0].v_pointer;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 17149 "BatchImport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.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 17153 "BatchImport.c"
- }
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = completed_import_object_ref (object);
-#line 17157 "BatchImport.c"
- } else {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 17161 "BatchImport.c"
- }
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 17165 "BatchImport.c"
-}
-
-
-static gchar*
-value_completed_import_object_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- CompletedImportObject ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!object_p) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 17181 "BatchImport.c"
- }
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!value->data[0].v_pointer) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = NULL;
-#line 17187 "BatchImport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = value->data[0].v_pointer;
-#line 17191 "BatchImport.c"
- } else {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- *object_p = completed_import_object_ref (value->data[0].v_pointer);
-#line 17195 "BatchImport.c"
- }
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return NULL;
-#line 17199 "BatchImport.c"
-}
-
-
-GParamSpec*
-param_spec_completed_import_object (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecCompletedImportObject* spec;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_COMPLETED_IMPORT_OBJECT), NULL);
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return G_PARAM_SPEC (spec);
-#line 17219 "BatchImport.c"
-}
-
-
-gpointer
-value_get_completed_import_object (const GValue* value)
-{
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT), NULL);
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return value->data[0].v_pointer;
-#line 17230 "BatchImport.c"
-}
-
-
-void
-value_set_completed_import_object (GValue* value,
- gpointer v_object)
-{
- CompletedImportObject * old;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT));
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMPLETED_IMPORT_OBJECT));
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed_import_object_ref (value->data[0].v_pointer);
-#line 17253 "BatchImport.c"
- } else {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 17257 "BatchImport.c"
- }
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed_import_object_unref (old);
-#line 17263 "BatchImport.c"
- }
-}
-
-
-void
-value_take_completed_import_object (GValue* value,
- gpointer v_object)
-{
- CompletedImportObject * old;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT));
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- old = value->data[0].v_pointer;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (v_object) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMPLETED_IMPORT_OBJECT));
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = v_object;
-#line 17285 "BatchImport.c"
- } else {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value->data[0].v_pointer = NULL;
-#line 17289 "BatchImport.c"
- }
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (old) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed_import_object_unref (old);
-#line 17295 "BatchImport.c"
- }
-}
-
-
-static void
-completed_import_object_class_init (CompletedImportObjectClass * klass)
-{
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed_import_object_parent_class = g_type_class_peek_parent (klass);
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((CompletedImportObjectClass *) klass)->finalize = completed_import_object_finalize;
-#line 17307 "BatchImport.c"
-}
-
-
-static void
-completed_import_object_instance_init (CompletedImportObject * self)
-{
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ref_count = 1;
-#line 17316 "BatchImport.c"
-}
-
-
-static void
-completed_import_object_finalize (CompletedImportObject * obj)
-{
- CompletedImportObject * self;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObject);
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_handlers_destroy (self);
-#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (self->thumbnails);
-#line 2037 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (self->batch_result);
-#line 2038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->source);
-#line 2039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (self->original_job);
-#line 2040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (self->user_preview);
-#line 17338 "BatchImport.c"
-}
-
-
-GType
-completed_import_object_get_type (void)
-{
- static volatile gsize completed_import_object_type_id__volatile = 0;
- if (g_once_init_enter (&completed_import_object_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_completed_import_object_init, value_completed_import_object_free_value, value_completed_import_object_copy_value, value_completed_import_object_peek_pointer, "p", value_completed_import_object_collect_value, "p", value_completed_import_object_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (CompletedImportObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) completed_import_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CompletedImportObject), 0, (GInstanceInitFunc) completed_import_object_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType completed_import_object_type_id;
- completed_import_object_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CompletedImportObject", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&completed_import_object_type_id__volatile, completed_import_object_type_id);
- }
- return completed_import_object_type_id__volatile;
-}
-
-
-gpointer
-completed_import_object_ref (gpointer instance)
-{
- CompletedImportObject * self;
- self = instance;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return instance;
-#line 17367 "BatchImport.c"
-}
-
-
-void
-completed_import_object_unref (gpointer instance)
-{
- CompletedImportObject * self;
- self = instance;
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- COMPLETED_IMPORT_OBJECT_GET_CLASS (self)->finalize (self);
-#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 17382 "BatchImport.c"
- }
-}
-
-
-ThumbnailWriterJob*
-thumbnail_writer_job_construct (GType object_type,
- BatchImport* owner,
- CompletedImportObject* completed_import_source,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancel_callback,
- void* cancel_callback_target)
-{
- ThumbnailWriterJob* self = NULL;
- Thumbnails* _tmp0_;
- CompletedImportObject* _tmp1_;
-#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (IS_COMPLETED_IMPORT_OBJECT (completed_import_source), NULL);
-#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 2057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (ThumbnailWriterJob*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancel_callback, cancel_callback_target);
-#line 2059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = completed_import_source->thumbnails;
-#line 2059 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp0_ != NULL, "completed_import_source.thumbnails != null");
-#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _completed_import_object_ref0 (completed_import_source);
-#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (self->completed_import_source);
-#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->completed_import_source = _tmp1_;
-#line 2062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW);
-#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return self;
-#line 17422 "BatchImport.c"
-}
-
-
-ThumbnailWriterJob*
-thumbnail_writer_job_new (BatchImport* owner,
- CompletedImportObject* completed_import_source,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancel_callback,
- void* cancel_callback_target)
-{
-#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return thumbnail_writer_job_construct (TYPE_THUMBNAIL_WRITER_JOB, owner, completed_import_source, callback, callback_target, cancellable, cancel_callback, cancel_callback_target);
-#line 17437 "BatchImport.c"
-}
-
-
-static void
-thumbnail_writer_job_real_execute (BackgroundJob* base)
-{
- ThumbnailWriterJob * self;
- CompletedImportObject* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 2065 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob);
-#line 17449 "BatchImport.c"
- {
- CompletedImportObject* _tmp0_;
- MediaSource* _tmp1_;
- CompletedImportObject* _tmp2_;
- Thumbnails* _tmp3_;
- CompletedImportObject* _tmp4_;
- BatchImportResult* _tmp5_;
-#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = self->completed_import_source;
-#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _tmp0_->source;
-#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->completed_import_source;
-#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_->thumbnails;
-#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- thumbnail_cache_import_thumbnails (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp3_, TRUE, &_inner_error_);
-#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17469 "BatchImport.c"
- goto __catch436_g_error;
- }
-#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->completed_import_source;
-#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->batch_result;
-#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_->result = IMPORT_RESULT_SUCCESS;
-#line 17478 "BatchImport.c"
- }
- goto __finally436;
- __catch436_g_error:
- {
- GError* err = NULL;
- CompletedImportObject* _tmp6_;
- BatchImportResult* _tmp7_;
- GError* _tmp8_;
-#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
- err = _inner_error_;
-#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _inner_error_ = NULL;
-#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->completed_import_source;
-#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_->batch_result;
-#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = err;
-#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_->result = import_result_convert_error (_tmp8_, IMPORT_RESULT_FILE_ERROR);
-#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_error_free0 (err);
-#line 17501 "BatchImport.c"
- }
- __finally436:
-#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2066 "/home/jens/Source/shotwell/src/BatchImport.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 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_clear_error (&_inner_error_);
-#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return;
-#line 17512 "BatchImport.c"
- }
-#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->completed_import_source;
-#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp9_->thumbnails);
-#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_->thumbnails = NULL;
-#line 17520 "BatchImport.c"
-}
-
-
-static void
-thumbnail_writer_job_class_init (ThumbnailWriterJobClass * klass)
-{
-#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- thumbnail_writer_job_parent_class = g_type_class_peek_parent (klass);
-#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->finalize = thumbnail_writer_job_finalize;
-#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) thumbnail_writer_job_real_execute;
-#line 17533 "BatchImport.c"
-}
-
-
-static void
-thumbnail_writer_job_instance_init (ThumbnailWriterJob * self)
-{
-}
-
-
-static void
-thumbnail_writer_job_finalize (BackgroundJob * obj)
-{
- ThumbnailWriterJob * self;
-#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob);
-#line 2053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (self->completed_import_source);
-#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- BACKGROUND_JOB_CLASS (thumbnail_writer_job_parent_class)->finalize (obj);
-#line 17553 "BatchImport.c"
-}
-
-
-GType
-thumbnail_writer_job_get_type (void)
-{
- static volatile gsize thumbnail_writer_job_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnail_writer_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ThumbnailWriterJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_writer_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailWriterJob), 0, (GInstanceInitFunc) thumbnail_writer_job_instance_init, NULL };
- GType thumbnail_writer_job_type_id;
- thumbnail_writer_job_type_id = g_type_register_static (TYPE_BACKGROUND_IMPORT_JOB, "ThumbnailWriterJob", &g_define_type_info, 0);
- g_once_init_leave (&thumbnail_writer_job_type_id__volatile, thumbnail_writer_job_type_id);
- }
- return thumbnail_writer_job_type_id__volatile;
-}
-
-
-
diff --git a/src/Box.c b/src/Box.c
deleted file mode 100644
index e88688d..0000000
--- a/src/Box.c
+++ /dev/null
@@ -1,2821 +0,0 @@
-/* Box.c generated by valac 0.40.4, the Vala compiler
- * generated from Box.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <gdk/gdk.h>
-#include <cairo.h>
-#include <gtk/gtk.h>
-#include <float.h>
-#include <math.h>
-#include <stdlib.h>
-
-
-#define TYPE_BOX_LOCATION (box_location_get_type ())
-
-#define TYPE_BOX_COMPLEMENTS (box_complements_get_type ())
-
-#define TYPE_BOX (box_get_type ())
-typedef struct _Box Box;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- BOX_LOCATION_OUTSIDE,
- BOX_LOCATION_INSIDE,
- BOX_LOCATION_TOP_SIDE,
- BOX_LOCATION_LEFT_SIDE,
- BOX_LOCATION_RIGHT_SIDE,
- BOX_LOCATION_BOTTOM_SIDE,
- BOX_LOCATION_TOP_LEFT,
- BOX_LOCATION_BOTTOM_LEFT,
- BOX_LOCATION_TOP_RIGHT,
- BOX_LOCATION_BOTTOM_RIGHT
-} BoxLocation;
-
-typedef enum {
- BOX_COMPLEMENTS_NONE,
- BOX_COMPLEMENTS_VERTICAL,
- BOX_COMPLEMENTS_HORIZONTAL,
- BOX_COMPLEMENTS_BOTH
-} BoxComplements;
-
-struct _Box {
- gint left;
- gint top;
- gint right;
- gint bottom;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-
-
-GType box_location_get_type (void) G_GNUC_CONST;
-GType box_complements_get_type (void) G_GNUC_CONST;
-BoxComplements box_complements_derive (gboolean horizontal_complement,
- gboolean vertical_complement);
-GType box_get_type (void) G_GNUC_CONST;
-Box* box_dup (const Box* self);
-void box_free (Box* self);
-#define BOX_HAND_GRENADES 12
-void box_init (Box *self,
- gint left,
- gint top,
- gint right,
- gint bottom);
-void box_from_rectangle (GdkRectangle* rect,
- Box* result);
-void box_from_allocation (GtkAllocation* alloc,
- Box* result);
-void box_from_points (GdkPoint* corner1,
- GdkPoint* corner2,
- Box* result);
-void box_from_center (GdkPoint* center,
- gint width,
- gint height,
- Box* result);
-gint box_get_width (Box *self);
-gint box_get_height (Box *self);
-gboolean box_is_valid (Box *self);
-gboolean box_equals (Box *self,
- Box* box);
-void box_adjust_width (Box *self,
- gint width);
-void box_adjust_height (Box *self,
- gint height);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-void box_get_scaled (Box *self,
- Dimensions* scaled,
- Box* result);
-void box_get_dimensions (Box *self,
- Dimensions* result);
-void dimensions_get_scale_ratios (Dimensions *self,
- Dimensions* scaled,
- gdouble* width_ratio,
- gdouble* height_ratio);
-void box_get_scaled_similar (Box *self,
- Dimensions* original,
- Dimensions* scaled,
- Box* result);
-void box_get_offset (Box *self,
- gint xofs,
- gint yofs,
- Box* result);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-void box_get_points (Box *self,
- GdkPoint* top_left,
- GdkPoint* bottom_right);
-void box_get_rectangle (Box *self,
- GdkRectangle* result);
-void box_get_center (Box *self,
- GdkPoint* result);
-void box_rotate_clockwise (Box *self,
- Dimensions* space,
- Box* result);
-void box_rotate_counterclockwise (Box *self,
- Dimensions* space,
- Box* result);
-void box_flip_left_to_right (Box *self,
- Dimensions* space,
- Box* result);
-void box_flip_top_to_bottom (Box *self,
- Dimensions* space,
- Box* result);
-gboolean box_intersects (Box *self,
- Box* compare);
-void box_get_reduced (Box *self,
- gint amount,
- Box* result);
-void box_get_expanded (Box *self,
- gint amount,
- Box* result);
-gboolean box_contains (Box *self,
- GdkPoint* point);
-BoxComplements box_resized_complements (Box *self,
- Box* resized,
- Box* horizontal,
- gboolean* horizontal_enlarged,
- Box* vertical,
- gboolean* vertical_enlarged);
-BoxComplements box_shifted_complements (Box *self,
- Box* shifted,
- Box* horizontal_this,
- Box* vertical_this,
- Box* horizontal_shifted,
- Box* vertical_shifted);
-void box_rubber_band (Box *self,
- GdkPoint* point,
- Box* result);
-gchar* box_to_string (Box *self);
-gchar* dimensions_to_string (Dimensions *self);
-static gboolean box_in_zone (gdouble pos,
- gint zone);
-static gboolean box_in_between (gdouble pos,
- gint top,
- gint bottom);
-static gboolean box_near_in_between (gdouble pos,
- gint top,
- gint bottom);
-BoxLocation box_approx_location (Box *self,
- gint x,
- gint y);
-
-
-GType
-box_location_get_type (void)
-{
- static volatile gsize box_location_type_id__volatile = 0;
- if (g_once_init_enter (&box_location_type_id__volatile)) {
- static const GEnumValue values[] = {{BOX_LOCATION_OUTSIDE, "BOX_LOCATION_OUTSIDE", "outside"}, {BOX_LOCATION_INSIDE, "BOX_LOCATION_INSIDE", "inside"}, {BOX_LOCATION_TOP_SIDE, "BOX_LOCATION_TOP_SIDE", "top-side"}, {BOX_LOCATION_LEFT_SIDE, "BOX_LOCATION_LEFT_SIDE", "left-side"}, {BOX_LOCATION_RIGHT_SIDE, "BOX_LOCATION_RIGHT_SIDE", "right-side"}, {BOX_LOCATION_BOTTOM_SIDE, "BOX_LOCATION_BOTTOM_SIDE", "bottom-side"}, {BOX_LOCATION_TOP_LEFT, "BOX_LOCATION_TOP_LEFT", "top-left"}, {BOX_LOCATION_BOTTOM_LEFT, "BOX_LOCATION_BOTTOM_LEFT", "bottom-left"}, {BOX_LOCATION_TOP_RIGHT, "BOX_LOCATION_TOP_RIGHT", "top-right"}, {BOX_LOCATION_BOTTOM_RIGHT, "BOX_LOCATION_BOTTOM_RIGHT", "bottom-right"}, {0, NULL, NULL}};
- GType box_location_type_id;
- box_location_type_id = g_enum_register_static ("BoxLocation", values);
- g_once_init_leave (&box_location_type_id__volatile, box_location_type_id);
- }
- return box_location_type_id__volatile;
-}
-
-
-BoxComplements
-box_complements_derive (gboolean horizontal_complement,
- gboolean vertical_complement)
-{
- BoxComplements result = 0;
- gboolean _tmp0_ = FALSE;
-#line 27 "/home/jens/Source/shotwell/src/Box.vala"
- if (horizontal_complement) {
-#line 27 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = vertical_complement;
-#line 211 "Box.c"
- } else {
-#line 27 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = FALSE;
-#line 215 "Box.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp0_) {
-#line 28 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_COMPLEMENTS_BOTH;
-#line 28 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 223 "Box.c"
- } else {
-#line 29 "/home/jens/Source/shotwell/src/Box.vala"
- if (horizontal_complement) {
-#line 30 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_COMPLEMENTS_HORIZONTAL;
-#line 30 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 231 "Box.c"
- } else {
-#line 31 "/home/jens/Source/shotwell/src/Box.vala"
- if (vertical_complement) {
-#line 32 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_COMPLEMENTS_VERTICAL;
-#line 32 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 239 "Box.c"
- }
- }
- }
-#line 34 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_COMPLEMENTS_NONE;
-#line 34 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 247 "Box.c"
-}
-
-
-GType
-box_complements_get_type (void)
-{
- static volatile gsize box_complements_type_id__volatile = 0;
- if (g_once_init_enter (&box_complements_type_id__volatile)) {
- static const GEnumValue values[] = {{BOX_COMPLEMENTS_NONE, "BOX_COMPLEMENTS_NONE", "none"}, {BOX_COMPLEMENTS_VERTICAL, "BOX_COMPLEMENTS_VERTICAL", "vertical"}, {BOX_COMPLEMENTS_HORIZONTAL, "BOX_COMPLEMENTS_HORIZONTAL", "horizontal"}, {BOX_COMPLEMENTS_BOTH, "BOX_COMPLEMENTS_BOTH", "both"}, {0, NULL, NULL}};
- GType box_complements_type_id;
- box_complements_type_id = g_enum_register_static ("BoxComplements", values);
- g_once_init_leave (&box_complements_type_id__volatile, box_complements_type_id);
- }
- return box_complements_type_id__volatile;
-}
-
-
-void
-box_init (Box *self,
- gint left,
- gint top,
- gint right,
- gint bottom)
-{
-#line 46 "/home/jens/Source/shotwell/src/Box.vala"
- memset (self, 0, sizeof (Box));
-#line 48 "/home/jens/Source/shotwell/src/Box.vala"
- left = CLAMP (left, 0, G_MAXINT);
-#line 49 "/home/jens/Source/shotwell/src/Box.vala"
- top = CLAMP (top, 0, G_MAXINT);
-#line 53 "/home/jens/Source/shotwell/src/Box.vala"
- if (right <= left) {
-#line 54 "/home/jens/Source/shotwell/src/Box.vala"
- right = left + 1;
-#line 282 "Box.c"
- }
-#line 56 "/home/jens/Source/shotwell/src/Box.vala"
- if (bottom <= top) {
-#line 57 "/home/jens/Source/shotwell/src/Box.vala"
- bottom = top + 1;
-#line 288 "Box.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/Box.vala"
- (*self).left = left;
-#line 60 "/home/jens/Source/shotwell/src/Box.vala"
- (*self).top = top;
-#line 61 "/home/jens/Source/shotwell/src/Box.vala"
- (*self).right = right;
-#line 62 "/home/jens/Source/shotwell/src/Box.vala"
- (*self).bottom = bottom;
-#line 298 "Box.c"
-}
-
-
-void
-box_from_rectangle (GdkRectangle* rect,
- Box* result)
-{
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkRectangle _tmp10_;
- gint _tmp11_;
- Box _tmp12_ = {0};
-#line 65 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (rect != NULL);
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *rect;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.x;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = *rect;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = _tmp2_.y;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = *rect;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = _tmp4_.x;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = *rect;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = _tmp6_.width;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = *rect;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = _tmp8_.y;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = *rect;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = _tmp10_.height;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp12_, _tmp1_, _tmp3_, (_tmp5_ + _tmp7_) - 1, (_tmp9_ + _tmp11_) - 1);
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp12_;
-#line 66 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 351 "Box.c"
-}
-
-
-void
-box_from_allocation (GtkAllocation* alloc,
- Box* result)
-{
- GtkAllocation _tmp0_;
- gint _tmp1_;
- GtkAllocation _tmp2_;
- gint _tmp3_;
- GtkAllocation _tmp4_;
- gint _tmp5_;
- GtkAllocation _tmp6_;
- gint _tmp7_;
- GtkAllocation _tmp8_;
- gint _tmp9_;
- GtkAllocation _tmp10_;
- gint _tmp11_;
- Box _tmp12_ = {0};
-#line 69 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (alloc != NULL);
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *alloc;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.x;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = *alloc;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = _tmp2_.y;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = *alloc;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = _tmp4_.x;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = *alloc;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = _tmp6_.width;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = *alloc;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = _tmp8_.y;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = *alloc;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = _tmp10_.height;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp12_, _tmp1_, _tmp3_, (_tmp5_ + _tmp7_) - 1, (_tmp9_ + _tmp11_) - 1);
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp12_;
-#line 70 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 404 "Box.c"
-}
-
-
-void
-box_from_points (GdkPoint* corner1,
- GdkPoint* corner2,
- Box* result)
-{
- GdkPoint _tmp0_;
- gint _tmp1_;
- GdkPoint _tmp2_;
- gint _tmp3_;
- GdkPoint _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- GdkPoint _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_;
- gint _tmp11_;
- GdkPoint _tmp12_;
- gint _tmp13_;
- GdkPoint _tmp14_;
- gint _tmp15_;
- Box _tmp16_ = {0};
-#line 75 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (corner1 != NULL);
-#line 75 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (corner2 != NULL);
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *corner1;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.x;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = *corner2;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = _tmp2_.x;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = *corner1;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = _tmp4_.y;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = *corner2;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = _tmp6_.y;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = *corner1;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = _tmp8_.x;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = *corner2;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = _tmp10_.x;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = *corner1;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = _tmp12_.y;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = *corner2;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp15_ = _tmp14_.y;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp16_, MIN (_tmp1_, _tmp3_), MIN (_tmp5_, _tmp7_), MAX (_tmp9_, _tmp11_), MAX (_tmp13_, _tmp15_));
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp16_;
-#line 76 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 472 "Box.c"
-}
-
-
-void
-box_from_center (GdkPoint* center,
- gint width,
- gint height,
- Box* result)
-{
- GdkPoint _tmp0_;
- gint _tmp1_;
- GdkPoint _tmp2_;
- gint _tmp3_;
- GdkPoint _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- Box _tmp8_ = {0};
-#line 80 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (center != NULL);
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *center;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.x;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = *center;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = _tmp2_.y;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = *center;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = _tmp4_.x;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = *center;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = _tmp6_.y;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp8_, _tmp1_ - (width / 2), _tmp3_ - (height / 2), _tmp5_ + (width / 2), _tmp7_ + (height / 2));
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp8_;
-#line 81 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 515 "Box.c"
-}
-
-
-gint
-box_get_width (Box *self)
-{
- gint result = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 86 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).right;
-#line 86 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).left;
-#line 86 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_assert (_tmp0_ >= _tmp1_, "right >= left");
-#line 88 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).right;
-#line 88 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).left;
-#line 88 "/home/jens/Source/shotwell/src/Box.vala"
- result = (_tmp2_ - _tmp3_) + 1;
-#line 88 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 541 "Box.c"
-}
-
-
-gint
-box_get_height (Box *self)
-{
- gint result = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 92 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).bottom;
-#line 92 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).top;
-#line 92 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_assert (_tmp0_ >= _tmp1_, "bottom >= top");
-#line 94 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).bottom;
-#line 94 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).top;
-#line 94 "/home/jens/Source/shotwell/src/Box.vala"
- result = (_tmp2_ - _tmp3_) + 1;
-#line 94 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 567 "Box.c"
-}
-
-
-gboolean
-box_is_valid (Box *self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).left;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp3_ >= 0) {
-#line 583 "Box.c"
- gint _tmp4_;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = (*self).top;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = _tmp4_ >= 0;
-#line 589 "Box.c"
- } else {
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = FALSE;
-#line 593 "Box.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp2_) {
-#line 597 "Box.c"
- gint _tmp5_;
- gint _tmp6_;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = (*self).right;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = (*self).left;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp5_ >= _tmp6_;
-#line 606 "Box.c"
- } else {
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = FALSE;
-#line 610 "Box.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp1_) {
-#line 614 "Box.c"
- gint _tmp7_;
- gint _tmp8_;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).bottom;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = (*self).top;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = _tmp7_ >= _tmp8_;
-#line 623 "Box.c"
- } else {
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = FALSE;
-#line 627 "Box.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- result = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 633 "Box.c"
-}
-
-
-gboolean
-box_equals (Box *self,
- Box* box)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_;
- Box _tmp4_;
- gint _tmp5_;
-#line 101 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_val_if_fail (box != NULL, FALSE);
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).left;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = *box;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = _tmp4_.left;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp3_ == _tmp5_) {
-#line 658 "Box.c"
- gint _tmp6_;
- Box _tmp7_;
- gint _tmp8_;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = (*self).top;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = *box;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = _tmp7_.top;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = _tmp6_ == _tmp8_;
-#line 670 "Box.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = FALSE;
-#line 674 "Box.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp2_) {
-#line 678 "Box.c"
- gint _tmp9_;
- Box _tmp10_;
- gint _tmp11_;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = (*self).right;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = *box;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = _tmp10_.right;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp9_ == _tmp11_;
-#line 690 "Box.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = FALSE;
-#line 694 "Box.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp1_) {
-#line 698 "Box.c"
- gint _tmp12_;
- Box _tmp13_;
- gint _tmp14_;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = (*self).bottom;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = *box;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = _tmp13_.bottom;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = _tmp12_ == _tmp14_;
-#line 710 "Box.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = FALSE;
-#line 714 "Box.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- result = _tmp0_;
-#line 102 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 720 "Box.c"
-}
-
-
-void
-box_adjust_width (Box *self,
- gint width)
-{
- gint center_x = 0;
- gint _tmp0_;
- gint _tmp1_;
-#line 107 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 107 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).right;
-#line 107 "/home/jens/Source/shotwell/src/Box.vala"
- center_x = (_tmp0_ + _tmp1_) / 2;
-#line 108 "/home/jens/Source/shotwell/src/Box.vala"
- (*self).left = center_x - (width / 2);
-#line 109 "/home/jens/Source/shotwell/src/Box.vala"
- (*self).right = center_x + (width / 2);
-#line 741 "Box.c"
-}
-
-
-void
-box_adjust_height (Box *self,
- gint height)
-{
- gint center_y = 0;
- gint _tmp0_;
- gint _tmp1_;
-#line 114 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).top;
-#line 114 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).bottom;
-#line 114 "/home/jens/Source/shotwell/src/Box.vala"
- center_y = (_tmp0_ + _tmp1_) / 2;
-#line 115 "/home/jens/Source/shotwell/src/Box.vala"
- (*self).top = center_y - (height / 2);
-#line 116 "/home/jens/Source/shotwell/src/Box.vala"
- (*self).bottom = center_y + (height / 2);
-#line 762 "Box.c"
-}
-
-
-void
-box_get_scaled (Box *self,
- Dimensions* scaled,
- Box* result)
-{
- gdouble x_scale = 0.0;
- gdouble y_scale = 0.0;
- Dimensions _tmp0_ = {0};
- Dimensions _tmp1_;
- gdouble _tmp2_ = 0.0;
- gdouble _tmp3_ = 0.0;
- gint l = 0;
- gint _tmp4_;
- gdouble _tmp5_;
- gint t = 0;
- gint _tmp6_;
- gdouble _tmp7_;
- gint r = 0;
- gint _tmp8_;
- Dimensions _tmp9_;
- gint _tmp10_;
- gint b = 0;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- Box box = {0};
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gboolean _tmp18_ = FALSE;
- Dimensions _tmp19_;
- gint _tmp20_;
-#line 119 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (scaled != NULL);
-#line 121 "/home/jens/Source/shotwell/src/Box.vala"
- box_get_dimensions (&(*self), &_tmp0_);
-#line 121 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = *scaled;
-#line 121 "/home/jens/Source/shotwell/src/Box.vala"
- dimensions_get_scale_ratios (&_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_);
-#line 121 "/home/jens/Source/shotwell/src/Box.vala"
- x_scale = _tmp2_;
-#line 121 "/home/jens/Source/shotwell/src/Box.vala"
- y_scale = _tmp3_;
-#line 123 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = (*self).left;
-#line 123 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = x_scale;
-#line 123 "/home/jens/Source/shotwell/src/Box.vala"
- l = (gint) round (((gdouble) _tmp4_) * _tmp5_);
-#line 124 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = (*self).top;
-#line 124 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = y_scale;
-#line 124 "/home/jens/Source/shotwell/src/Box.vala"
- t = (gint) round (((gdouble) _tmp6_) * _tmp7_);
-#line 127 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = l;
-#line 127 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = *scaled;
-#line 127 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = _tmp9_.width;
-#line 127 "/home/jens/Source/shotwell/src/Box.vala"
- r = (_tmp8_ + _tmp10_) - 1;
-#line 128 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = t;
-#line 128 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = *scaled;
-#line 128 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = _tmp12_.height;
-#line 128 "/home/jens/Source/shotwell/src/Box.vala"
- b = (_tmp11_ + _tmp13_) - 1;
-#line 130 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = l;
-#line 130 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp15_ = t;
-#line 130 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp16_ = r;
-#line 130 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp17_ = b;
-#line 130 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&box, _tmp14_, _tmp15_, _tmp16_, _tmp17_);
-#line 131 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp19_ = *scaled;
-#line 131 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp20_ = _tmp19_.width;
-#line 131 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_get_width (&box) == _tmp20_) {
-#line 131 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp18_ = TRUE;
-#line 857 "Box.c"
- } else {
- Dimensions _tmp21_;
- gint _tmp22_;
-#line 131 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp21_ = *scaled;
-#line 131 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp22_ = _tmp21_.height;
-#line 131 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp18_ = box_get_height (&box) == _tmp22_;
-#line 867 "Box.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_assert (_tmp18_, "box.get_width() == scaled.width || box.get_height() == scaled.height");
-#line 133 "/home/jens/Source/shotwell/src/Box.vala"
- *result = box;
-#line 133 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 875 "Box.c"
-}
-
-
-void
-box_get_scaled_similar (Box *self,
- Dimensions* original,
- Dimensions* scaled,
- Box* result)
-{
- gdouble x_scale = 0.0;
- gdouble y_scale = 0.0;
- Dimensions _tmp0_;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- gint l = 0;
- gint _tmp3_;
- gdouble _tmp4_;
- gint t = 0;
- gint _tmp5_;
- gdouble _tmp6_;
- gint r = 0;
- gint _tmp7_;
- gdouble _tmp8_;
- gint b = 0;
- gint _tmp9_;
- gdouble _tmp10_;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- gint _tmp16_;
- Dimensions _tmp17_;
- gint _tmp18_;
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- Box _tmp25_ = {0};
-#line 136 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (original != NULL);
-#line 136 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (scaled != NULL);
-#line 138 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *scaled;
-#line 138 "/home/jens/Source/shotwell/src/Box.vala"
- dimensions_get_scale_ratios (original, &_tmp0_, &_tmp1_, &_tmp2_);
-#line 138 "/home/jens/Source/shotwell/src/Box.vala"
- x_scale = _tmp1_;
-#line 138 "/home/jens/Source/shotwell/src/Box.vala"
- y_scale = _tmp2_;
-#line 140 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).left;
-#line 140 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = x_scale;
-#line 140 "/home/jens/Source/shotwell/src/Box.vala"
- l = (gint) round (((gdouble) _tmp3_) * _tmp4_);
-#line 141 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = (*self).top;
-#line 141 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = y_scale;
-#line 141 "/home/jens/Source/shotwell/src/Box.vala"
- t = (gint) round (((gdouble) _tmp5_) * _tmp6_);
-#line 142 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).right;
-#line 142 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = x_scale;
-#line 142 "/home/jens/Source/shotwell/src/Box.vala"
- r = (gint) round (((gdouble) _tmp7_) * _tmp8_);
-#line 143 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = (*self).bottom;
-#line 143 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = y_scale;
-#line 143 "/home/jens/Source/shotwell/src/Box.vala"
- b = (gint) round (((gdouble) _tmp9_) * _tmp10_);
-#line 146 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = r;
-#line 146 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = *scaled;
-#line 146 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = _tmp12_.width;
-#line 146 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp11_ >= _tmp13_) {
-#line 957 "Box.c"
- Dimensions _tmp14_;
- gint _tmp15_;
-#line 147 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = *scaled;
-#line 147 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp15_ = _tmp14_.width;
-#line 147 "/home/jens/Source/shotwell/src/Box.vala"
- r = _tmp15_ - 1;
-#line 966 "Box.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp16_ = b;
-#line 149 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp17_ = *scaled;
-#line 149 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp18_ = _tmp17_.height;
-#line 149 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp16_ >= _tmp18_) {
-#line 976 "Box.c"
- Dimensions _tmp19_;
- gint _tmp20_;
-#line 150 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp19_ = *scaled;
-#line 150 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp20_ = _tmp19_.height;
-#line 150 "/home/jens/Source/shotwell/src/Box.vala"
- b = _tmp20_ - 1;
-#line 985 "Box.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp21_ = l;
-#line 152 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp22_ = t;
-#line 152 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp23_ = r;
-#line 152 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp24_ = b;
-#line 152 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp25_, _tmp21_, _tmp22_, _tmp23_, _tmp24_);
-#line 152 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp25_;
-#line 152 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1001 "Box.c"
-}
-
-
-void
-box_get_offset (Box *self,
- gint xofs,
- gint yofs,
- Box* result)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- Box _tmp4_ = {0};
-#line 156 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 156 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).top;
-#line 156 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).right;
-#line 156 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).bottom;
-#line 156 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp4_, _tmp0_ + xofs, _tmp1_ + yofs, _tmp2_ + xofs, _tmp3_ + yofs);
-#line 156 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp4_;
-#line 156 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1030 "Box.c"
-}
-
-
-void
-box_get_dimensions (Box *self,
- Dimensions* result)
-{
- Dimensions _tmp0_ = {0};
-#line 160 "/home/jens/Source/shotwell/src/Box.vala"
- dimensions_init (&_tmp0_, box_get_width (&(*self)), box_get_height (&(*self)));
-#line 160 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp0_;
-#line 160 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1045 "Box.c"
-}
-
-
-void
-box_get_points (Box *self,
- GdkPoint* top_left,
- GdkPoint* bottom_right)
-{
- GdkPoint _vala_top_left = {0};
- GdkPoint _vala_bottom_right = {0};
- gint _tmp0_;
- gint _tmp1_;
- GdkPoint _tmp2_ = {0};
- gint _tmp3_;
- gint _tmp4_;
- GdkPoint _tmp5_ = {0};
-#line 164 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 164 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).top;
-#line 164 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_.x = _tmp0_;
-#line 164 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_.y = _tmp1_;
-#line 164 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_top_left = _tmp2_;
-#line 165 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).right;
-#line 165 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = (*self).bottom;
-#line 165 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_.x = _tmp3_;
-#line 165 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_.y = _tmp4_;
-#line 165 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_bottom_right = _tmp5_;
-#line 163 "/home/jens/Source/shotwell/src/Box.vala"
- if (top_left) {
-#line 163 "/home/jens/Source/shotwell/src/Box.vala"
- *top_left = _vala_top_left;
-#line 1086 "Box.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/Box.vala"
- if (bottom_right) {
-#line 163 "/home/jens/Source/shotwell/src/Box.vala"
- *bottom_right = _vala_bottom_right;
-#line 1092 "Box.c"
- }
-}
-
-
-void
-box_get_rectangle (Box *self,
- GdkRectangle* result)
-{
- GdkRectangle rect = {0};
- gint _tmp0_;
- gint _tmp1_;
-#line 169 "/home/jens/Source/shotwell/src/Box.vala"
- memset (&rect, 0, sizeof (GdkRectangle));
-#line 170 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 170 "/home/jens/Source/shotwell/src/Box.vala"
- rect.x = _tmp0_;
-#line 171 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).top;
-#line 171 "/home/jens/Source/shotwell/src/Box.vala"
- rect.y = _tmp1_;
-#line 172 "/home/jens/Source/shotwell/src/Box.vala"
- rect.width = box_get_width (&(*self));
-#line 173 "/home/jens/Source/shotwell/src/Box.vala"
- rect.height = box_get_height (&(*self));
-#line 175 "/home/jens/Source/shotwell/src/Box.vala"
- *result = rect;
-#line 175 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1122 "Box.c"
-}
-
-
-void
-box_get_center (Box *self,
- GdkPoint* result)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- GdkPoint _tmp4_ = {0};
-#line 179 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 179 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).right;
-#line 179 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).top;
-#line 179 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).bottom;
-#line 179 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_.x = (_tmp0_ + _tmp1_) / 2;
-#line 179 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_.y = (_tmp2_ + _tmp3_) / 2;
-#line 179 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp4_;
-#line 179 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1151 "Box.c"
-}
-
-
-void
-box_rotate_clockwise (Box *self,
- Dimensions* space,
- Box* result)
-{
- gint l = 0;
- Dimensions _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint t = 0;
- gint _tmp3_;
- gint r = 0;
- Dimensions _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint b = 0;
- gint _tmp7_;
- Box _tmp8_ = {0};
-#line 182 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (space != NULL);
-#line 183 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *space;
-#line 183 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.width;
-#line 183 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).bottom;
-#line 183 "/home/jens/Source/shotwell/src/Box.vala"
- l = (_tmp1_ - _tmp2_) - 1;
-#line 184 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).left;
-#line 184 "/home/jens/Source/shotwell/src/Box.vala"
- t = _tmp3_;
-#line 185 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = *space;
-#line 185 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = _tmp4_.width;
-#line 185 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = (*self).top;
-#line 185 "/home/jens/Source/shotwell/src/Box.vala"
- r = (_tmp5_ - _tmp6_) - 1;
-#line 186 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).right;
-#line 186 "/home/jens/Source/shotwell/src/Box.vala"
- b = _tmp7_;
-#line 188 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp8_, l, t, r, b);
-#line 188 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp8_;
-#line 188 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1205 "Box.c"
-}
-
-
-void
-box_rotate_counterclockwise (Box *self,
- Dimensions* space,
- Box* result)
-{
- gint l = 0;
- gint _tmp0_;
- gint t = 0;
- Dimensions _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint r = 0;
- gint _tmp4_;
- gint b = 0;
- Dimensions _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- Box _tmp8_ = {0};
-#line 191 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (space != NULL);
-#line 192 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).top;
-#line 192 "/home/jens/Source/shotwell/src/Box.vala"
- l = _tmp0_;
-#line 193 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = *space;
-#line 193 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = _tmp1_.height;
-#line 193 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).right;
-#line 193 "/home/jens/Source/shotwell/src/Box.vala"
- t = (_tmp2_ - _tmp3_) - 1;
-#line 194 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = (*self).bottom;
-#line 194 "/home/jens/Source/shotwell/src/Box.vala"
- r = _tmp4_;
-#line 195 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = *space;
-#line 195 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = _tmp5_.height;
-#line 195 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).left;
-#line 195 "/home/jens/Source/shotwell/src/Box.vala"
- b = (_tmp6_ - _tmp7_) - 1;
-#line 197 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp8_, l, t, r, b);
-#line 197 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp8_;
-#line 197 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1259 "Box.c"
-}
-
-
-void
-box_flip_left_to_right (Box *self,
- Dimensions* space,
- Box* result)
-{
- gint l = 0;
- Dimensions _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint r = 0;
- Dimensions _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- Box _tmp8_ = {0};
-#line 200 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (space != NULL);
-#line 201 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *space;
-#line 201 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.width;
-#line 201 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).right;
-#line 201 "/home/jens/Source/shotwell/src/Box.vala"
- l = (_tmp1_ - _tmp2_) - 1;
-#line 202 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = *space;
-#line 202 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = _tmp3_.width;
-#line 202 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = (*self).left;
-#line 202 "/home/jens/Source/shotwell/src/Box.vala"
- r = (_tmp4_ - _tmp5_) - 1;
-#line 204 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = (*self).top;
-#line 204 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).bottom;
-#line 204 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp8_, l, _tmp6_, r, _tmp7_);
-#line 204 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp8_;
-#line 204 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1307 "Box.c"
-}
-
-
-void
-box_flip_top_to_bottom (Box *self,
- Dimensions* space,
- Box* result)
-{
- gint t = 0;
- Dimensions _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint b = 0;
- Dimensions _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- Box _tmp8_ = {0};
-#line 207 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (space != NULL);
-#line 208 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *space;
-#line 208 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.height;
-#line 208 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).bottom;
-#line 208 "/home/jens/Source/shotwell/src/Box.vala"
- t = (_tmp1_ - _tmp2_) - 1;
-#line 209 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = *space;
-#line 209 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = _tmp3_.height;
-#line 209 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = (*self).top;
-#line 209 "/home/jens/Source/shotwell/src/Box.vala"
- b = (_tmp4_ - _tmp5_) - 1;
-#line 211 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = (*self).left;
-#line 211 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).right;
-#line 211 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp8_, _tmp6_, t, _tmp7_, b);
-#line 211 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp8_;
-#line 211 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1355 "Box.c"
-}
-
-
-gboolean
-box_intersects (Box *self,
- Box* compare)
-{
- gboolean result = FALSE;
- gint left_intersect = 0;
- gint _tmp0_;
- Box _tmp1_;
- gint _tmp2_;
- gint top_intersect = 0;
- gint _tmp3_;
- Box _tmp4_;
- gint _tmp5_;
- gint right_intersect = 0;
- gint _tmp6_;
- Box _tmp7_;
- gint _tmp8_;
- gint bottom_intersect = 0;
- gint _tmp9_;
- Box _tmp10_;
- gint _tmp11_;
- gboolean _tmp12_ = FALSE;
- gint _tmp13_;
- gint _tmp14_;
-#line 214 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_val_if_fail (compare != NULL, FALSE);
-#line 215 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 215 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = *compare;
-#line 215 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = _tmp1_.left;
-#line 215 "/home/jens/Source/shotwell/src/Box.vala"
- left_intersect = MAX (_tmp0_, _tmp2_);
-#line 216 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).top;
-#line 216 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = *compare;
-#line 216 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = _tmp4_.top;
-#line 216 "/home/jens/Source/shotwell/src/Box.vala"
- top_intersect = MAX (_tmp3_, _tmp5_);
-#line 217 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = (*self).right;
-#line 217 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = *compare;
-#line 217 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = _tmp7_.right;
-#line 217 "/home/jens/Source/shotwell/src/Box.vala"
- right_intersect = MIN (_tmp6_, _tmp8_);
-#line 218 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = (*self).bottom;
-#line 218 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = *compare;
-#line 218 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = _tmp10_.bottom;
-#line 218 "/home/jens/Source/shotwell/src/Box.vala"
- bottom_intersect = MIN (_tmp9_, _tmp11_);
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = right_intersect;
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = left_intersect;
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp13_ >= _tmp14_) {
-#line 1423 "Box.c"
- gint _tmp15_;
- gint _tmp16_;
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp15_ = bottom_intersect;
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp16_ = top_intersect;
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = _tmp15_ >= _tmp16_;
-#line 1432 "Box.c"
- } else {
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = FALSE;
-#line 1436 "Box.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- result = _tmp12_;
-#line 220 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 1442 "Box.c"
-}
-
-
-void
-box_get_reduced (Box *self,
- gint amount,
- Box* result)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- Box _tmp4_ = {0};
-#line 224 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 224 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).top;
-#line 224 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).right;
-#line 224 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).bottom;
-#line 224 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp4_, _tmp0_ + amount, _tmp1_ + amount, _tmp2_ - amount, _tmp3_ - amount);
-#line 224 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp4_;
-#line 224 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1470 "Box.c"
-}
-
-
-void
-box_get_expanded (Box *self,
- gint amount,
- Box* result)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- Box _tmp4_ = {0};
-#line 228 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 228 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).top;
-#line 228 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).right;
-#line 228 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).bottom;
-#line 228 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp4_, _tmp0_ - amount, _tmp1_ - amount, _tmp2_ + amount, _tmp3_ + amount);
-#line 228 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp4_;
-#line 228 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 1498 "Box.c"
-}
-
-
-gboolean
-box_contains (Box *self,
- GdkPoint* point)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- GdkPoint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 231 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_val_if_fail (point != NULL, FALSE);
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = *point;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = _tmp3_.x;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = (*self).left;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp4_ >= _tmp5_) {
-#line 1523 "Box.c"
- GdkPoint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = *point;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = _tmp6_.x;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = (*self).right;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = _tmp7_ <= _tmp8_;
-#line 1535 "Box.c"
- } else {
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = FALSE;
-#line 1539 "Box.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp2_) {
-#line 1543 "Box.c"
- GdkPoint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = *point;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = _tmp9_.y;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = (*self).top;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp10_ >= _tmp11_;
-#line 1555 "Box.c"
- } else {
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = FALSE;
-#line 1559 "Box.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp1_) {
-#line 1563 "Box.c"
- GdkPoint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = *point;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = _tmp12_.y;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = (*self).bottom;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = _tmp13_ <= _tmp14_;
-#line 1575 "Box.c"
- } else {
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = FALSE;
-#line 1579 "Box.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- result = _tmp0_;
-#line 232 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 1585 "Box.c"
-}
-
-
-BoxComplements
-box_resized_complements (Box *self,
- Box* resized,
- Box* horizontal,
- gboolean* horizontal_enlarged,
- Box* vertical,
- gboolean* vertical_enlarged)
-{
- Box _vala_horizontal = {0};
- gboolean _vala_horizontal_enlarged = FALSE;
- Box _vala_vertical = {0};
- gboolean _vala_vertical_enlarged = FALSE;
- BoxComplements result = 0;
- gboolean horizontal_complement = FALSE;
- Box _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gboolean vertical_complement = FALSE;
- Box _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- gboolean _tmp72_;
- gboolean _tmp73_;
-#line 238 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_val_if_fail (resized != NULL, 0);
-#line 241 "/home/jens/Source/shotwell/src/Box.vala"
- horizontal_complement = TRUE;
-#line 242 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *resized;
-#line 242 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.top;
-#line 242 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).top;
-#line 242 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp1_ < _tmp2_) {
-#line 1624 "Box.c"
- Box _tmp3_;
- gint _tmp4_;
- Box _tmp5_;
- gint _tmp6_;
- Box _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 244 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = *resized;
-#line 244 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = _tmp3_.left;
-#line 244 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = *resized;
-#line 244 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = _tmp5_.top;
-#line 244 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = *resized;
-#line 244 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = _tmp7_.right;
-#line 244 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = (*self).top;
-#line 244 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal, _tmp4_, _tmp6_, _tmp8_, _tmp9_);
-#line 245 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_horizontal_enlarged = TRUE;
-#line 1650 "Box.c"
- } else {
- Box _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 246 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = *resized;
-#line 246 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = _tmp10_.top;
-#line 246 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = (*self).top;
-#line 246 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp11_ > _tmp12_) {
-#line 1663 "Box.c"
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- Box _tmp16_;
- gint _tmp17_;
-#line 248 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = (*self).left;
-#line 248 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = (*self).top;
-#line 248 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp15_ = (*self).right;
-#line 248 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp16_ = *resized;
-#line 248 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp17_ = _tmp16_.top;
-#line 248 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal, _tmp13_, _tmp14_, _tmp15_, _tmp17_);
-#line 249 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_horizontal_enlarged = FALSE;
-#line 1683 "Box.c"
- } else {
- Box _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 250 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp18_ = *resized;
-#line 250 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp19_ = _tmp18_.bottom;
-#line 250 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp20_ = (*self).bottom;
-#line 250 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp19_ < _tmp20_) {
-#line 1696 "Box.c"
- gint _tmp21_;
- Box _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
-#line 252 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp21_ = (*self).left;
-#line 252 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp22_ = *resized;
-#line 252 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp23_ = _tmp22_.bottom;
-#line 252 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp24_ = (*self).right;
-#line 252 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp25_ = (*self).bottom;
-#line 252 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal, _tmp21_, _tmp23_, _tmp24_, _tmp25_);
-#line 253 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_horizontal_enlarged = FALSE;
-#line 1716 "Box.c"
- } else {
- Box _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
-#line 254 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp26_ = *resized;
-#line 254 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp27_ = _tmp26_.bottom;
-#line 254 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp28_ = (*self).bottom;
-#line 254 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp27_ > _tmp28_) {
-#line 1729 "Box.c"
- Box _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- Box _tmp32_;
- gint _tmp33_;
- Box _tmp34_;
- gint _tmp35_;
-#line 256 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp29_ = *resized;
-#line 256 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp30_ = _tmp29_.left;
-#line 256 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp31_ = (*self).bottom;
-#line 256 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp32_ = *resized;
-#line 256 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp33_ = _tmp32_.right;
-#line 256 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp34_ = *resized;
-#line 256 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp35_ = _tmp34_.bottom;
-#line 256 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal, _tmp30_, _tmp31_, _tmp33_, _tmp35_);
-#line 257 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_horizontal_enlarged = TRUE;
-#line 1755 "Box.c"
- } else {
-#line 259 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal, 0, 0, 0, 0);
-#line 260 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_horizontal_enlarged = FALSE;
-#line 261 "/home/jens/Source/shotwell/src/Box.vala"
- horizontal_complement = FALSE;
-#line 1763 "Box.c"
- }
- }
- }
- }
-#line 264 "/home/jens/Source/shotwell/src/Box.vala"
- vertical_complement = TRUE;
-#line 265 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp36_ = *resized;
-#line 265 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp37_ = _tmp36_.left;
-#line 265 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp38_ = (*self).left;
-#line 265 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp37_ < _tmp38_) {
-#line 1778 "Box.c"
- Box _tmp39_;
- gint _tmp40_;
- Box _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- Box _tmp44_;
- gint _tmp45_;
-#line 267 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp39_ = *resized;
-#line 267 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp40_ = _tmp39_.left;
-#line 267 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp41_ = *resized;
-#line 267 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp42_ = _tmp41_.top;
-#line 267 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp43_ = (*self).left;
-#line 267 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp44_ = *resized;
-#line 267 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp45_ = _tmp44_.bottom;
-#line 267 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical, _tmp40_, _tmp42_, _tmp43_, _tmp45_);
-#line 268 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_vertical_enlarged = TRUE;
-#line 1804 "Box.c"
- } else {
- Box _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
-#line 269 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp46_ = *resized;
-#line 269 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp47_ = _tmp46_.left;
-#line 269 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp48_ = (*self).left;
-#line 269 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp47_ > _tmp48_) {
-#line 1817 "Box.c"
- gint _tmp49_;
- gint _tmp50_;
- Box _tmp51_;
- gint _tmp52_;
- gint _tmp53_;
-#line 271 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp49_ = (*self).left;
-#line 271 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp50_ = (*self).top;
-#line 271 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp51_ = *resized;
-#line 271 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp52_ = _tmp51_.left;
-#line 271 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp53_ = (*self).bottom;
-#line 271 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical, _tmp49_, _tmp50_, _tmp52_, _tmp53_);
-#line 272 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_vertical_enlarged = FALSE;
-#line 1837 "Box.c"
- } else {
- Box _tmp54_;
- gint _tmp55_;
- gint _tmp56_;
-#line 273 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp54_ = *resized;
-#line 273 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp55_ = _tmp54_.right;
-#line 273 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp56_ = (*self).right;
-#line 273 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp55_ < _tmp56_) {
-#line 1850 "Box.c"
- Box _tmp57_;
- gint _tmp58_;
- gint _tmp59_;
- gint _tmp60_;
- gint _tmp61_;
-#line 275 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp57_ = *resized;
-#line 275 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp58_ = _tmp57_.right;
-#line 275 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp59_ = (*self).top;
-#line 275 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp60_ = (*self).right;
-#line 275 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp61_ = (*self).bottom;
-#line 275 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical, _tmp58_, _tmp59_, _tmp60_, _tmp61_);
-#line 276 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_vertical_enlarged = FALSE;
-#line 1870 "Box.c"
- } else {
- Box _tmp62_;
- gint _tmp63_;
- gint _tmp64_;
-#line 277 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp62_ = *resized;
-#line 277 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp63_ = _tmp62_.right;
-#line 277 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp64_ = (*self).right;
-#line 277 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp63_ > _tmp64_) {
-#line 1883 "Box.c"
- gint _tmp65_;
- Box _tmp66_;
- gint _tmp67_;
- Box _tmp68_;
- gint _tmp69_;
- Box _tmp70_;
- gint _tmp71_;
-#line 279 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp65_ = (*self).right;
-#line 279 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp66_ = *resized;
-#line 279 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp67_ = _tmp66_.top;
-#line 279 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp68_ = *resized;
-#line 279 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp69_ = _tmp68_.right;
-#line 279 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp70_ = *resized;
-#line 279 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp71_ = _tmp70_.bottom;
-#line 279 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical, _tmp65_, _tmp67_, _tmp69_, _tmp71_);
-#line 280 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_vertical_enlarged = TRUE;
-#line 1909 "Box.c"
- } else {
-#line 282 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical, 0, 0, 0, 0);
-#line 283 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_vertical_enlarged = FALSE;
-#line 284 "/home/jens/Source/shotwell/src/Box.vala"
- vertical_complement = FALSE;
-#line 1917 "Box.c"
- }
- }
- }
- }
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp72_ = horizontal_complement;
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp73_ = vertical_complement;
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- result = box_complements_derive (_tmp72_, _tmp73_);
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- if (horizontal) {
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- *horizontal = _vala_horizontal;
-#line 1932 "Box.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- if (horizontal_enlarged) {
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- *horizontal_enlarged = _vala_horizontal_enlarged;
-#line 1938 "Box.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- if (vertical) {
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- *vertical = _vala_vertical;
-#line 1944 "Box.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- if (vertical_enlarged) {
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- *vertical_enlarged = _vala_vertical_enlarged;
-#line 1950 "Box.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 1954 "Box.c"
-}
-
-
-BoxComplements
-box_shifted_complements (Box *self,
- Box* shifted,
- Box* horizontal_this,
- Box* vertical_this,
- Box* horizontal_shifted,
- Box* vertical_shifted)
-{
- Box _vala_horizontal_this = {0};
- Box _vala_vertical_this = {0};
- Box _vala_horizontal_shifted = {0};
- Box _vala_vertical_shifted = {0};
- BoxComplements result = 0;
- gboolean horizontal_complement = FALSE;
- gboolean _tmp0_ = FALSE;
- Box _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gboolean vertical_complement = FALSE;
- gboolean _tmp38_ = FALSE;
- Box _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- gboolean _tmp76_;
- gboolean _tmp77_;
-#line 293 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_val_if_fail (shifted != NULL, 0);
-#line 295 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_assert (box_get_width (&(*self)) == box_get_width (shifted), "get_width() == shifted.get_width()");
-#line 296 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_assert (box_get_height (&(*self)) == box_get_height (shifted), "get_height() == shifted.get_height()");
-#line 298 "/home/jens/Source/shotwell/src/Box.vala"
- horizontal_complement = TRUE;
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = *shifted;
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = _tmp1_.top;
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).top;
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp2_ < _tmp3_) {
-#line 1999 "Box.c"
- Box _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = *shifted;
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = _tmp4_.bottom;
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = (*self).top;
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = _tmp5_ > _tmp6_;
-#line 2011 "Box.c"
- } else {
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = FALSE;
-#line 2015 "Box.c"
- }
-#line 299 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp0_) {
-#line 2019 "Box.c"
- gint _tmp7_;
- Box _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- Box _tmp12_;
- gint _tmp13_;
- Box _tmp14_;
- gint _tmp15_;
- Box _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
-#line 301 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).left;
-#line 301 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = *shifted;
-#line 301 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = _tmp8_.bottom;
-#line 301 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = (*self).right;
-#line 301 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = (*self).bottom;
-#line 301 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal_this, _tmp7_, _tmp9_, _tmp10_, _tmp11_);
-#line 302 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = *shifted;
-#line 302 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = _tmp12_.left;
-#line 302 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = *shifted;
-#line 302 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp15_ = _tmp14_.top;
-#line 302 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp16_ = *shifted;
-#line 302 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp17_ = _tmp16_.right;
-#line 302 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp18_ = (*self).top;
-#line 302 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal_shifted, _tmp13_, _tmp15_, _tmp17_, _tmp18_);
-#line 2060 "Box.c"
- } else {
- gboolean _tmp19_ = FALSE;
- Box _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp20_ = *shifted;
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp21_ = _tmp20_.top;
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp22_ = (*self).top;
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp21_ > _tmp22_) {
-#line 2074 "Box.c"
- Box _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp23_ = *shifted;
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp24_ = _tmp23_.top;
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp25_ = (*self).bottom;
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp19_ = _tmp24_ < _tmp25_;
-#line 2086 "Box.c"
- } else {
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp19_ = FALSE;
-#line 2090 "Box.c"
- }
-#line 303 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp19_) {
-#line 2094 "Box.c"
- gint _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- Box _tmp29_;
- gint _tmp30_;
- Box _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- Box _tmp34_;
- gint _tmp35_;
- Box _tmp36_;
- gint _tmp37_;
-#line 305 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp26_ = (*self).left;
-#line 305 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp27_ = (*self).top;
-#line 305 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp28_ = (*self).right;
-#line 305 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp29_ = *shifted;
-#line 305 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp30_ = _tmp29_.top;
-#line 305 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal_this, _tmp26_, _tmp27_, _tmp28_, _tmp30_);
-#line 306 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp31_ = *shifted;
-#line 306 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp32_ = _tmp31_.left;
-#line 306 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp33_ = (*self).bottom;
-#line 306 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp34_ = *shifted;
-#line 306 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp35_ = _tmp34_.right;
-#line 306 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp36_ = *shifted;
-#line 306 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp37_ = _tmp36_.bottom;
-#line 306 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal_shifted, _tmp32_, _tmp33_, _tmp35_, _tmp37_);
-#line 2135 "Box.c"
- } else {
-#line 309 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal_this, 0, 0, 0, 0);
-#line 310 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_horizontal_shifted, 0, 0, 0, 0);
-#line 311 "/home/jens/Source/shotwell/src/Box.vala"
- horizontal_complement = FALSE;
-#line 2143 "Box.c"
- }
- }
-#line 314 "/home/jens/Source/shotwell/src/Box.vala"
- vertical_complement = TRUE;
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp39_ = *shifted;
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp40_ = _tmp39_.left;
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp41_ = (*self).left;
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp40_ < _tmp41_) {
-#line 2156 "Box.c"
- Box _tmp42_;
- gint _tmp43_;
- gint _tmp44_;
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp42_ = *shifted;
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp43_ = _tmp42_.right;
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp44_ = (*self).left;
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp38_ = _tmp43_ > _tmp44_;
-#line 2168 "Box.c"
- } else {
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp38_ = FALSE;
-#line 2172 "Box.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp38_) {
-#line 2176 "Box.c"
- Box _tmp45_;
- gint _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
- Box _tmp50_;
- gint _tmp51_;
- Box _tmp52_;
- gint _tmp53_;
- gint _tmp54_;
- Box _tmp55_;
- gint _tmp56_;
-#line 317 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp45_ = *shifted;
-#line 317 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp46_ = _tmp45_.right;
-#line 317 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp47_ = (*self).top;
-#line 317 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp48_ = (*self).right;
-#line 317 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp49_ = (*self).bottom;
-#line 317 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical_this, _tmp46_, _tmp47_, _tmp48_, _tmp49_);
-#line 318 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp50_ = *shifted;
-#line 318 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp51_ = _tmp50_.left;
-#line 318 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp52_ = *shifted;
-#line 318 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp53_ = _tmp52_.top;
-#line 318 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp54_ = (*self).left;
-#line 318 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp55_ = *shifted;
-#line 318 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp56_ = _tmp55_.bottom;
-#line 318 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical_shifted, _tmp51_, _tmp53_, _tmp54_, _tmp56_);
-#line 2217 "Box.c"
- } else {
- gboolean _tmp57_ = FALSE;
- Box _tmp58_;
- gint _tmp59_;
- gint _tmp60_;
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp58_ = *shifted;
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp59_ = _tmp58_.left;
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp60_ = (*self).left;
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp59_ > _tmp60_) {
-#line 2231 "Box.c"
- Box _tmp61_;
- gint _tmp62_;
- gint _tmp63_;
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp61_ = *shifted;
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp62_ = _tmp61_.left;
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp63_ = (*self).right;
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp57_ = _tmp62_ < _tmp63_;
-#line 2243 "Box.c"
- } else {
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp57_ = FALSE;
-#line 2247 "Box.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp57_) {
-#line 2251 "Box.c"
- gint _tmp64_;
- gint _tmp65_;
- Box _tmp66_;
- gint _tmp67_;
- gint _tmp68_;
- gint _tmp69_;
- Box _tmp70_;
- gint _tmp71_;
- Box _tmp72_;
- gint _tmp73_;
- Box _tmp74_;
- gint _tmp75_;
-#line 321 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp64_ = (*self).left;
-#line 321 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp65_ = (*self).top;
-#line 321 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp66_ = *shifted;
-#line 321 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp67_ = _tmp66_.left;
-#line 321 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp68_ = (*self).bottom;
-#line 321 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical_this, _tmp64_, _tmp65_, _tmp67_, _tmp68_);
-#line 322 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp69_ = (*self).right;
-#line 322 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp70_ = *shifted;
-#line 322 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp71_ = _tmp70_.top;
-#line 322 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp72_ = *shifted;
-#line 322 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp73_ = _tmp72_.right;
-#line 322 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp74_ = *shifted;
-#line 322 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp75_ = _tmp74_.bottom;
-#line 322 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical_shifted, _tmp69_, _tmp71_, _tmp73_, _tmp75_);
-#line 2292 "Box.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical_this, 0, 0, 0, 0);
-#line 326 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_vala_vertical_shifted, 0, 0, 0, 0);
-#line 327 "/home/jens/Source/shotwell/src/Box.vala"
- vertical_complement = FALSE;
-#line 2300 "Box.c"
- }
- }
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp76_ = horizontal_complement;
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp77_ = vertical_complement;
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- result = box_complements_derive (_tmp76_, _tmp77_);
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- if (horizontal_this) {
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- *horizontal_this = _vala_horizontal_this;
-#line 2313 "Box.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- if (vertical_this) {
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- *vertical_this = _vala_vertical_this;
-#line 2319 "Box.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- if (horizontal_shifted) {
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- *horizontal_shifted = _vala_horizontal_shifted;
-#line 2325 "Box.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- if (vertical_shifted) {
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- *vertical_shifted = _vala_vertical_shifted;
-#line 2331 "Box.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2335 "Box.c"
-}
-
-
-void
-box_rubber_band (Box *self,
- GdkPoint* point,
- Box* result)
-{
- GdkPoint _tmp0_;
- gint _tmp1_;
- GdkPoint _tmp2_;
- gint _tmp3_;
- gint t = 0;
- gint _tmp4_;
- GdkPoint _tmp5_;
- gint _tmp6_;
- gint b = 0;
- gint _tmp7_;
- GdkPoint _tmp8_;
- gint _tmp9_;
- gint l = 0;
- gint _tmp10_;
- GdkPoint _tmp11_;
- gint _tmp12_;
- gint r = 0;
- gint _tmp13_;
- GdkPoint _tmp14_;
- gint _tmp15_;
- Box _tmp16_ = {0};
-#line 333 "/home/jens/Source/shotwell/src/Box.vala"
- g_return_if_fail (point != NULL);
-#line 334 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = *point;
-#line 334 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = _tmp0_.x;
-#line 334 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_assert (_tmp1_ >= 0, "point.x >= 0");
-#line 335 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = *point;
-#line 335 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = _tmp2_.y;
-#line 335 "/home/jens/Source/shotwell/src/Box.vala"
- _vala_assert (_tmp3_ >= 0, "point.y >= 0");
-#line 337 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = (*self).top;
-#line 337 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = *point;
-#line 337 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = _tmp5_.y;
-#line 337 "/home/jens/Source/shotwell/src/Box.vala"
- t = MIN (_tmp4_, _tmp6_);
-#line 338 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).bottom;
-#line 338 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = *point;
-#line 338 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = _tmp8_.y;
-#line 338 "/home/jens/Source/shotwell/src/Box.vala"
- b = MAX (_tmp7_, _tmp9_);
-#line 339 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = (*self).left;
-#line 339 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = *point;
-#line 339 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = _tmp11_.x;
-#line 339 "/home/jens/Source/shotwell/src/Box.vala"
- l = MIN (_tmp10_, _tmp12_);
-#line 340 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = (*self).right;
-#line 340 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = *point;
-#line 340 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp15_ = _tmp14_.x;
-#line 340 "/home/jens/Source/shotwell/src/Box.vala"
- r = MAX (_tmp13_, _tmp15_);
-#line 342 "/home/jens/Source/shotwell/src/Box.vala"
- box_init (&_tmp16_, l, t, r, b);
-#line 342 "/home/jens/Source/shotwell/src/Box.vala"
- *result = _tmp16_;
-#line 342 "/home/jens/Source/shotwell/src/Box.vala"
- return;
-#line 2417 "Box.c"
-}
-
-
-gchar*
-box_to_string (Box *self)
-{
- gchar* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_ = {0};
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).top;
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).right;
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).bottom;
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- box_get_dimensions (&(*self), &_tmp4_);
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = dimensions_to_string (&_tmp4_);
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = _tmp5_;
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = g_strdup_printf ("%d,%d %d,%d (%s)", _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp6_);
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = _tmp7_;
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- _g_free0 (_tmp6_);
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- result = _tmp8_;
-#line 346 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2458 "Box.c"
-}
-
-
-static gboolean
-box_in_zone (gdouble pos,
- gint zone)
-{
- gboolean result = FALSE;
- gint top_zone = 0;
- gint bottom_zone = 0;
-#line 350 "/home/jens/Source/shotwell/src/Box.vala"
- top_zone = zone - BOX_HAND_GRENADES;
-#line 351 "/home/jens/Source/shotwell/src/Box.vala"
- bottom_zone = zone + BOX_HAND_GRENADES;
-#line 353 "/home/jens/Source/shotwell/src/Box.vala"
- result = box_in_between (pos, top_zone, bottom_zone);
-#line 353 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2477 "Box.c"
-}
-
-
-static gboolean
-box_in_between (gdouble pos,
- gint top,
- gint bottom)
-{
- gboolean result = FALSE;
- gint ipos = 0;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 357 "/home/jens/Source/shotwell/src/Box.vala"
- ipos = (gint) pos;
-#line 359 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = ipos;
-#line 359 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp1_ > top) {
-#line 2496 "Box.c"
- gint _tmp2_;
-#line 359 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = ipos;
-#line 359 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = _tmp2_ < bottom;
-#line 2502 "Box.c"
- } else {
-#line 359 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = FALSE;
-#line 2506 "Box.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/Box.vala"
- result = _tmp0_;
-#line 359 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2512 "Box.c"
-}
-
-
-static gboolean
-box_near_in_between (gdouble pos,
- gint top,
- gint bottom)
-{
- gboolean result = FALSE;
- gint ipos = 0;
- gint top_zone = 0;
- gint bottom_zone = 0;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- gint _tmp2_;
-#line 363 "/home/jens/Source/shotwell/src/Box.vala"
- ipos = (gint) pos;
-#line 364 "/home/jens/Source/shotwell/src/Box.vala"
- top_zone = top - BOX_HAND_GRENADES;
-#line 365 "/home/jens/Source/shotwell/src/Box.vala"
- bottom_zone = bottom + BOX_HAND_GRENADES;
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = ipos;
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = top_zone;
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp1_ > _tmp2_) {
-#line 2540 "Box.c"
- gint _tmp3_;
- gint _tmp4_;
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = ipos;
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = bottom_zone;
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = _tmp3_ < _tmp4_;
-#line 2549 "Box.c"
- } else {
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = FALSE;
-#line 2553 "Box.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- result = _tmp0_;
-#line 367 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2559 "Box.c"
-}
-
-
-BoxLocation
-box_approx_location (Box *self,
- gint x,
- gint y)
-{
- BoxLocation result = 0;
- gboolean near_width = FALSE;
- gint _tmp0_;
- gint _tmp1_;
- gboolean near_height = FALSE;
- gint _tmp2_;
- gint _tmp3_;
- gboolean _tmp4_ = FALSE;
- gint _tmp5_;
-#line 371 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp0_ = (*self).left;
-#line 371 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp1_ = (*self).right;
-#line 371 "/home/jens/Source/shotwell/src/Box.vala"
- near_width = box_near_in_between ((gdouble) x, _tmp0_, _tmp1_);
-#line 372 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp2_ = (*self).top;
-#line 372 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp3_ = (*self).bottom;
-#line 372 "/home/jens/Source/shotwell/src/Box.vala"
- near_height = box_near_in_between ((gdouble) y, _tmp2_, _tmp3_);
-#line 374 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp5_ = (*self).left;
-#line 374 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_zone ((gdouble) x, _tmp5_)) {
-#line 2593 "Box.c"
- gboolean _tmp6_;
-#line 374 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp6_ = near_height;
-#line 374 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = _tmp6_;
-#line 2599 "Box.c"
- } else {
-#line 374 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp4_ = FALSE;
-#line 2603 "Box.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp4_) {
-#line 2607 "Box.c"
- gint _tmp7_;
-#line 375 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp7_ = (*self).top;
-#line 375 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_zone ((gdouble) y, _tmp7_)) {
-#line 376 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_TOP_LEFT;
-#line 376 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2617 "Box.c"
- } else {
- gint _tmp8_;
-#line 377 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp8_ = (*self).bottom;
-#line 377 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_zone ((gdouble) y, _tmp8_)) {
-#line 378 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_BOTTOM_LEFT;
-#line 378 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2628 "Box.c"
- } else {
-#line 380 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_LEFT_SIDE;
-#line 380 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2634 "Box.c"
- }
- }
- } else {
- gboolean _tmp9_ = FALSE;
- gint _tmp10_;
-#line 382 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp10_ = (*self).right;
-#line 382 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_zone ((gdouble) x, _tmp10_)) {
-#line 2644 "Box.c"
- gboolean _tmp11_;
-#line 382 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp11_ = near_height;
-#line 382 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = _tmp11_;
-#line 2650 "Box.c"
- } else {
-#line 382 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp9_ = FALSE;
-#line 2654 "Box.c"
- }
-#line 382 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp9_) {
-#line 2658 "Box.c"
- gint _tmp12_;
-#line 383 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp12_ = (*self).top;
-#line 383 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_zone ((gdouble) y, _tmp12_)) {
-#line 384 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_TOP_RIGHT;
-#line 384 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2668 "Box.c"
- } else {
- gint _tmp13_;
-#line 385 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp13_ = (*self).bottom;
-#line 385 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_zone ((gdouble) y, _tmp13_)) {
-#line 386 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_BOTTOM_RIGHT;
-#line 386 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2679 "Box.c"
- } else {
-#line 388 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_RIGHT_SIDE;
-#line 388 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2685 "Box.c"
- }
- }
- } else {
- gboolean _tmp14_ = FALSE;
- gint _tmp15_;
-#line 390 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp15_ = (*self).top;
-#line 390 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_zone ((gdouble) y, _tmp15_)) {
-#line 2695 "Box.c"
- gboolean _tmp16_;
-#line 390 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp16_ = near_width;
-#line 390 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = _tmp16_;
-#line 2701 "Box.c"
- } else {
-#line 390 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp14_ = FALSE;
-#line 2705 "Box.c"
- }
-#line 390 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp14_) {
-#line 392 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_TOP_SIDE;
-#line 392 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2713 "Box.c"
- } else {
- gboolean _tmp17_ = FALSE;
- gint _tmp18_;
-#line 393 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp18_ = (*self).bottom;
-#line 393 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_zone ((gdouble) y, _tmp18_)) {
-#line 2721 "Box.c"
- gboolean _tmp19_;
-#line 393 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp19_ = near_width;
-#line 393 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp17_ = _tmp19_;
-#line 2727 "Box.c"
- } else {
-#line 393 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp17_ = FALSE;
-#line 2731 "Box.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp17_) {
-#line 395 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_BOTTOM_SIDE;
-#line 395 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2739 "Box.c"
- } else {
- gboolean _tmp20_ = FALSE;
- gint _tmp21_;
- gint _tmp22_;
-#line 396 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp21_ = (*self).left;
-#line 396 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp22_ = (*self).right;
-#line 396 "/home/jens/Source/shotwell/src/Box.vala"
- if (box_in_between ((gdouble) x, _tmp21_, _tmp22_)) {
-#line 2750 "Box.c"
- gint _tmp23_;
- gint _tmp24_;
-#line 396 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp23_ = (*self).top;
-#line 396 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp24_ = (*self).bottom;
-#line 396 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp20_ = box_in_between ((gdouble) y, _tmp23_, _tmp24_);
-#line 2759 "Box.c"
- } else {
-#line 396 "/home/jens/Source/shotwell/src/Box.vala"
- _tmp20_ = FALSE;
-#line 2763 "Box.c"
- }
-#line 396 "/home/jens/Source/shotwell/src/Box.vala"
- if (_tmp20_) {
-#line 397 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_INSIDE;
-#line 397 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2771 "Box.c"
- } else {
-#line 399 "/home/jens/Source/shotwell/src/Box.vala"
- result = BOX_LOCATION_OUTSIDE;
-#line 399 "/home/jens/Source/shotwell/src/Box.vala"
- return result;
-#line 2777 "Box.c"
- }
- }
- }
- }
- }
-}
-
-
-Box*
-box_dup (const Box* self)
-{
- Box* dup;
-#line 38 "/home/jens/Source/shotwell/src/Box.vala"
- dup = g_new0 (Box, 1);
-#line 38 "/home/jens/Source/shotwell/src/Box.vala"
- memcpy (dup, self, sizeof (Box));
-#line 38 "/home/jens/Source/shotwell/src/Box.vala"
- return dup;
-#line 2796 "Box.c"
-}
-
-
-void
-box_free (Box* self)
-{
-#line 38 "/home/jens/Source/shotwell/src/Box.vala"
- g_free (self);
-#line 2805 "Box.c"
-}
-
-
-GType
-box_get_type (void)
-{
- static volatile gsize box_type_id__volatile = 0;
- if (g_once_init_enter (&box_type_id__volatile)) {
- GType box_type_id;
- box_type_id = g_boxed_type_register_static ("Box", (GBoxedCopyFunc) box_dup, (GBoxedFreeFunc) box_free);
- g_once_init_leave (&box_type_id__volatile, box_type_id);
- }
- return box_type_id__volatile;
-}
-
-
-
diff --git a/src/CheckerboardLayout.c b/src/CheckerboardLayout.c
deleted file mode 100644
index 18080e8..0000000
--- a/src/CheckerboardLayout.c
+++ /dev/null
@@ -1,12162 +0,0 @@
-/* CheckerboardLayout.c generated by valac 0.40.4, the Vala compiler
- * generated from CheckerboardLayout.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gdk/gdk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <pango/pango.h>
-#include <gtk/gtk.h>
-#include <cairo.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gee.h>
-#include <pango/pangocairo.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_CHECKERBOARD_ITEM_TEXT (checkerboard_item_text_get_type ())
-#define CHECKERBOARD_ITEM_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemText))
-#define CHECKERBOARD_ITEM_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemTextClass))
-#define IS_CHECKERBOARD_ITEM_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM_TEXT))
-#define IS_CHECKERBOARD_ITEM_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM_TEXT))
-#define CHECKERBOARD_ITEM_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemTextClass))
-
-typedef struct _CheckerboardItemText CheckerboardItemText;
-typedef struct _CheckerboardItemTextClass CheckerboardItemTextClass;
-typedef struct _CheckerboardItemTextPrivate CheckerboardItemTextPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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;
-typedef struct _ParamSpecCheckerboardItemText ParamSpecCheckerboardItemText;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-enum {
- CHECKERBOARD_ITEM_0_PROPERTY,
- CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY,
- CHECKERBOARD_ITEM_NUM_PROPERTIES
-};
-static GParamSpec* checkerboard_item_properties[CHECKERBOARD_ITEM_NUM_PROPERTIES];
-#define _checkerboard_item_text_unref0(var) ((var == NULL) ? NULL : (var = (checkerboard_item_text_unref (var), NULL)))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
-#define _cairo_pattern_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_pattern_destroy (var), NULL)))
-
-#define TYPE_CHECKERBOARD_LAYOUT (checkerboard_layout_get_type ())
-#define CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout))
-#define CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass))
-#define IS_CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_LAYOUT))
-#define IS_CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_LAYOUT))
-#define CHECKERBOARD_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass))
-
-typedef struct _CheckerboardLayout CheckerboardLayout;
-typedef struct _CheckerboardLayoutClass CheckerboardLayoutClass;
-typedef struct _CheckerboardLayoutPrivate CheckerboardLayoutPrivate;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW (checkerboard_layout_layout_row_get_type ())
-#define CHECKERBOARD_LAYOUT_LAYOUT_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, CheckerboardLayoutLayoutRow))
-#define CHECKERBOARD_LAYOUT_LAYOUT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, CheckerboardLayoutLayoutRowClass))
-#define CHECKERBOARD_LAYOUT_IS_LAYOUT_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW))
-#define CHECKERBOARD_LAYOUT_IS_LAYOUT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW))
-#define CHECKERBOARD_LAYOUT_LAYOUT_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, CheckerboardLayoutLayoutRowClass))
-
-typedef struct _CheckerboardLayoutLayoutRow CheckerboardLayoutLayoutRow;
-typedef struct _CheckerboardLayoutLayoutRowClass CheckerboardLayoutLayoutRowClass;
-enum {
- CHECKERBOARD_LAYOUT_0_PROPERTY,
- CHECKERBOARD_LAYOUT_NUM_PROPERTIES
-};
-static GParamSpec* checkerboard_layout_properties[CHECKERBOARD_LAYOUT_NUM_PROPERTIES];
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-typedef struct _CheckerboardLayoutLayoutRowPrivate CheckerboardLayoutLayoutRowPrivate;
-#define _checkerboard_layout_layout_row_unref0(var) ((var == NULL) ? NULL : (var = (checkerboard_layout_layout_row_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))
-#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_COMPASS_POINT (compass_point_get_type ())
-
-#define TYPE_BOX (box_get_type ())
-typedef struct _Box Box;
-typedef struct _CheckerboardLayoutParamSpecLayoutRow CheckerboardLayoutParamSpecLayoutRow;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _CheckerboardItemText {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CheckerboardItemTextPrivate * priv;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemTextClass {
- GTypeClass parent_class;
- void (*finalize) (CheckerboardItemText *self);
-};
-
-struct _CheckerboardItemTextPrivate {
- gchar* text;
- gboolean marked_up;
- PangoAlignment alignment;
- PangoLayout* layout;
- gboolean single_line;
- gint height;
-};
-
-struct _ParamSpecCheckerboardItemText {
- GParamSpec parent_instance;
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-struct _CheckerboardItemPrivate {
- gboolean exposure;
- CheckerboardItemText* title;
- gboolean title_visible;
- CheckerboardItemText* comment;
- gboolean comment_visible;
- CheckerboardItemText* subtitle;
- gboolean subtitle_visible;
- gboolean is_cursor;
- PangoAlignment tag_alignment;
- GeeList* user_visible_tag_list;
- GeeCollection* tags;
- GdkPixbuf* pixbuf;
- GdkPixbuf* display_pixbuf;
- GdkPixbuf* brightened;
- Dimensions pixbuf_dim;
- gint col;
- gint row;
- gint horizontal_trinket_offset;
- gboolean _has_tags;
-};
-
-struct _CheckerboardLayout {
- GtkDrawingArea parent_instance;
- CheckerboardLayoutPrivate * priv;
-};
-
-struct _CheckerboardLayoutClass {
- GtkDrawingAreaClass parent_class;
-};
-
-struct _CheckerboardLayoutPrivate {
- ViewCollection* view;
- gchar* page_name;
- CheckerboardLayoutLayoutRow** item_rows;
- gint item_rows_length1;
- gint _item_rows_size_;
- GeeHashSet* exposed_items;
- GtkAdjustment* hadjustment;
- GtkAdjustment* vadjustment;
- gchar* message;
- GdkRGBA selected_color;
- GdkRGBA unselected_color;
- GdkRGBA border_color;
- GdkRGBA bg_color;
- GdkRectangle visible_page;
- gint last_width;
- gint columns;
- gint rows;
- GdkPoint drag_origin;
- GdkPoint drag_endpoint;
- GdkRectangle selection_band;
- gint scale;
- gboolean flow_scheduled;
- gboolean exposure_dirty;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
- gboolean in_center_on_anchor;
- gboolean size_allocate_due_to_reflow;
- gboolean is_in_view;
- gboolean reflow_needed;
-};
-
-struct _CheckerboardLayoutLayoutRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CheckerboardLayoutLayoutRowPrivate * priv;
- gint y;
- gint height;
- CheckerboardItem** items;
- gint items_length1;
- gint _items_size_;
-};
-
-struct _CheckerboardLayoutLayoutRowClass {
- GTypeClass parent_class;
- void (*finalize) (CheckerboardLayoutLayoutRow *self);
-};
-
-typedef enum {
- COMPASS_POINT_NORTH,
- COMPASS_POINT_SOUTH,
- COMPASS_POINT_EAST,
- COMPASS_POINT_WEST
-} CompassPoint;
-
-struct _Box {
- gint left;
- gint top;
- gint right;
- gint bottom;
-};
-
-struct _CheckerboardLayoutParamSpecLayoutRow {
- GParamSpec parent_instance;
-};
-
-
-static gpointer checkerboard_item_text_parent_class = NULL;
-static gint checkerboard_item_text_one_line_height;
-static gint checkerboard_item_text_one_line_height = 0;
-static gpointer checkerboard_item_parent_class = NULL;
-static gpointer checkerboard_layout_parent_class = NULL;
-static gpointer checkerboard_layout_layout_row_parent_class = NULL;
-
-gpointer checkerboard_item_text_ref (gpointer instance);
-void checkerboard_item_text_unref (gpointer instance);
-GParamSpec* param_spec_checkerboard_item_text (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_checkerboard_item_text (GValue* value,
- gpointer v_object);
-void value_take_checkerboard_item_text (GValue* value,
- gpointer v_object);
-gpointer value_get_checkerboard_item_text (const GValue* value);
-GType checkerboard_item_text_get_type (void) G_GNUC_CONST;
-#define CHECKERBOARD_ITEM_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemTextPrivate))
-CheckerboardItemText* checkerboard_item_text_new (const gchar* text,
- PangoAlignment alignment,
- gboolean marked_up);
-CheckerboardItemText* checkerboard_item_text_construct (GType object_type,
- const gchar* text,
- PangoAlignment alignment,
- gboolean marked_up);
-static gboolean checkerboard_item_text_is_single_line (CheckerboardItemText* self);
-gboolean string_contains_char (const gchar* haystack,
- gunichar needle);
-gboolean checkerboard_item_text_is_marked_up (CheckerboardItemText* self);
-gboolean checkerboard_item_text_is_set_to (CheckerboardItemText* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-gchar* checkerboard_item_text_get_text (CheckerboardItemText* self);
-gint checkerboard_item_text_get_height (CheckerboardItemText* self);
-static void checkerboard_item_text_update_height (CheckerboardItemText* self);
-PangoLayout* checkerboard_item_text_get_pango_layout (CheckerboardItemText* self,
- gint max_width);
-static void checkerboard_item_text_create_pango (CheckerboardItemText* self);
-void checkerboard_item_text_clear_pango_layout (CheckerboardItemText* self);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-static void checkerboard_item_text_finalize (CheckerboardItemText * obj);
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType tag_get_type (void) G_GNUC_CONST;
-#define CHECKERBOARD_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHECKERBOARD_ITEM, CheckerboardItemPrivate))
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-#define CHECKERBOARD_ITEM_PROP_SHOW_TITLES "show-titles"
-#define CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS "show-comments"
-#define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles"
-#define CHECKERBOARD_ITEM_FRAME_WIDTH 8
-#define CHECKERBOARD_ITEM_LABEL_PADDING 4
-#define CHECKERBOARD_ITEM_BORDER_WIDTH 1
-#define CHECKERBOARD_ITEM_SHADOW_RADIUS 4
-#define CHECKERBOARD_ITEM_SHADOW_INITIAL_ALPHA 0.5f
-#define CHECKERBOARD_ITEM_TRINKET_SCALE 12
-#define CHECKERBOARD_ITEM_TRINKET_PADDING 1
-#define CHECKERBOARD_ITEM_BRIGHTEN_SHIFT 0x18
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-CheckerboardItem* checkerboard_item_construct (GType object_type,
- ThumbnailSource* source,
- Dimensions* initial_pixbuf_dim,
- const gchar* title,
- const gchar* comment,
- gboolean marked_up,
- PangoAlignment alignment);
-ThumbnailView* thumbnail_view_new (ThumbnailSource* source);
-ThumbnailView* thumbnail_view_construct (GType object_type,
- ThumbnailSource* source);
-static gchar* checkerboard_item_real_get_name (DataObject* base);
-gchar* data_object_get_name (DataObject* self);
-gchar* checkerboard_item_get_title (CheckerboardItem* self);
-gchar* checkerboard_item_get_comment (CheckerboardItem* self);
-void checkerboard_item_set_title (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-static void checkerboard_item_recalc_size (CheckerboardItem* self,
- const gchar* reason);
-void data_view_notify_view_altered (DataView* self);
-void checkerboard_item_translate_coordinates (CheckerboardItem* self,
- gint* x,
- gint* y);
-void checkerboard_item_clear_title (CheckerboardItem* self);
-static void checkerboard_item_set_title_visible (CheckerboardItem* self,
- gboolean visible);
-void checkerboard_item_set_comment (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-void checkerboard_item_clear_comment (CheckerboardItem* self);
-static void checkerboard_item_set_comment_visible (CheckerboardItem* self,
- gboolean visible);
-void checkerboard_item_set_tags (CheckerboardItem* self,
- GeeCollection* tags,
- PangoAlignment alignment);
-static void checkerboard_item_set_has_tags (CheckerboardItem* self,
- gboolean value);
-gboolean checkerboard_item_get_has_tags (CheckerboardItem* self);
-GeeList* tag_make_user_visible_tag_list (GeeCollection* tags);
-gchar* tag_make_tag_markup_string (GeeList* tags,
- gint highlight_index);
-void checkerboard_item_clear_tags (CheckerboardItem* self);
-void checkerboard_item_clear_subtitle (CheckerboardItem* self);
-void checkerboard_item_highlight_user_visible_tag (CheckerboardItem* self,
- gint index);
-Tag* checkerboard_item_get_user_visible_tag (CheckerboardItem* self,
- gint index);
-PangoLayout* checkerboard_item_get_tag_list_layout (CheckerboardItem* self);
-void checkerboard_item_get_subtitle_allocation (CheckerboardItem* self,
- GdkRectangle* result);
-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_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);
-gboolean dimensions_has_area (Dimensions *self);
-void data_object_notify_membership_changed (DataObject* self,
- DataCollection* collection);
-static void checkerboard_item_real_notify_collection_property_set (DataObject* base,
- const gchar* name,
- GValue* old,
- GValue* val);
-void data_object_notify_collection_property_set (DataObject* self,
- const gchar* name,
- GValue* old,
- GValue* val);
-gint checkerboard_item_get_alignment_point (CheckerboardItem* self);
-void checkerboard_item_exposed (CheckerboardItem* self);
-static void checkerboard_item_real_exposed (CheckerboardItem* self);
-void checkerboard_item_unexposed (CheckerboardItem* self);
-static void checkerboard_item_real_unexposed (CheckerboardItem* self);
-gboolean checkerboard_item_is_exposed (CheckerboardItem* self);
-static gboolean checkerboard_item_real_is_exposed (CheckerboardItem* self);
-gboolean checkerboard_item_has_image (CheckerboardItem* self);
-GdkPixbuf* checkerboard_item_get_image (CheckerboardItem* self);
-void checkerboard_item_set_image (CheckerboardItem* self,
- GdkPixbuf* pixbuf);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-void checkerboard_item_clear_image (CheckerboardItem* self,
- Dimensions* dim);
-gint checkerboard_item_get_max_width (gint scale);
-gboolean dimensions_approx_equals (Dimensions *self,
- Dimensions* dim,
- gint fudge);
-void data_view_notify_geometry_altered (DataView* self);
-void checkerboard_item_get_border_dimensions (Dimensions* object_dim,
- gint border_width,
- Dimensions* result);
-void checkerboard_item_get_border_origin (GdkPoint* object_origin,
- gint border_width,
- GdkPoint* result);
-void checkerboard_item_paint_shadow (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* dimensions,
- GdkPoint* origin,
- gint radius,
- gfloat initial_alpha);
-static void checkerboard_item_real_paint_shadow (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* dimensions,
- GdkPoint* origin,
- gint radius,
- gfloat initial_alpha);
-void checkerboard_item_paint_shadow_in_corner (CheckerboardItem* self,
- cairo_t* ctx,
- gint x,
- gint y,
- gdouble rgb_all,
- gfloat radius,
- gfloat initial_alpha,
- gdouble arc1,
- gdouble arc2);
-void checkerboard_item_paint_border (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* object_dimensions,
- GdkPoint* object_origin,
- gint border_width);
-static void checkerboard_item_real_paint_border (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* object_dimensions,
- GdkPoint* object_origin,
- gint border_width);
-void draw_rounded_corners_filled (cairo_t* ctx,
- Dimensions* dim,
- GdkPoint* origin,
- gdouble radius_proportion);
-void checkerboard_item_paint_image (CheckerboardItem* self,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin);
-static void checkerboard_item_real_paint_image (CheckerboardItem* self,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin);
-void paint_pixmap_with_background (cairo_t* ctx,
- GdkPixbuf* pixbuf,
- gint x,
- gint y);
-static gint checkerboard_item_get_selection_border_width (CheckerboardItem* self,
- gint scale);
-gint thumbnail_get_MIN_SCALE (void);
-gint thumbnail_get_MAX_SCALE (void);
-GdkPixbuf* checkerboard_item_get_top_left_trinket (CheckerboardItem* self,
- gint scale);
-static GdkPixbuf* checkerboard_item_real_get_top_left_trinket (CheckerboardItem* self,
- gint scale);
-GdkPixbuf* checkerboard_item_get_top_right_trinket (CheckerboardItem* self,
- gint scale);
-static GdkPixbuf* checkerboard_item_real_get_top_right_trinket (CheckerboardItem* self,
- gint scale);
-GdkPixbuf* checkerboard_item_get_bottom_left_trinket (CheckerboardItem* self,
- gint scale);
-static GdkPixbuf* checkerboard_item_real_get_bottom_left_trinket (CheckerboardItem* self,
- gint scale);
-GdkPixbuf* checkerboard_item_get_bottom_right_trinket (CheckerboardItem* self,
- gint scale);
-static GdkPixbuf* checkerboard_item_real_get_bottom_right_trinket (CheckerboardItem* self,
- gint scale);
-void checkerboard_item_paint (CheckerboardItem* self,
- cairo_t* ctx,
- GdkRGBA* bg_color,
- GdkRGBA* selected_color,
- GdkRGBA* text_color,
- GdkRGBA* border_color);
-gboolean data_view_is_selected (DataView* self);
-gint checkerboard_item_get_horizontal_trinket_offset (CheckerboardItem* self);
-void checkerboard_item_set_horizontal_trinket_offset (CheckerboardItem* self,
- gint horizontal_trinket_offset);
-void checkerboard_item_set_grid_coordinates (CheckerboardItem* self,
- gint col,
- gint row);
-gint checkerboard_item_get_column (CheckerboardItem* self);
-gint checkerboard_item_get_row (CheckerboardItem* self);
-void checkerboard_item_brighten (CheckerboardItem* self);
-void shift_colors (GdkPixbuf* pixbuf,
- gint red,
- gint green,
- gint blue,
- gint alpha);
-void checkerboard_item_unbrighten (CheckerboardItem* self);
-static void checkerboard_item_real_visibility_changed (DataView* base,
- gboolean visible);
-static gboolean checkerboard_item_query_tooltip_on_text (CheckerboardItem* self,
- CheckerboardItemText* text,
- GtkTooltip* tooltip);
-gboolean checkerboard_item_query_tooltip (CheckerboardItem* self,
- gint x,
- gint y,
- GtkTooltip* tooltip);
-gboolean coord_in_rectangle (gint x,
- gint y,
- GdkRectangle* rect);
-static void checkerboard_item_finalize (GObject * obj);
-static void _vala_checkerboard_item_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_checkerboard_item_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-GType checkerboard_layout_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-static gpointer checkerboard_layout_layout_row_ref (gpointer instance);
-static void checkerboard_layout_layout_row_unref (gpointer instance);
-static GParamSpec* checkerboard_layout_param_spec_layout_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void checkerboard_layout_value_set_layout_row (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void checkerboard_layout_value_take_layout_row (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer checkerboard_layout_value_get_layout_row (const GValue* value) G_GNUC_UNUSED;
-static GType checkerboard_layout_layout_row_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define CHECKERBOARD_LAYOUT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutPrivate))
-static void checkerboard_layout_on_contents_altered (CheckerboardLayout* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void _checkerboard_layout_on_contents_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static void checkerboard_layout_on_items_altered (CheckerboardLayout* self);
-static void _checkerboard_layout_on_items_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void checkerboard_layout_on_items_state_changed (CheckerboardLayout* self,
- GeeIterable* changed);
-static void _checkerboard_layout_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self);
-static void checkerboard_layout_on_items_visibility_changed (CheckerboardLayout* self,
- GeeIterable* changed);
-static void _checkerboard_layout_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self);
-static void checkerboard_layout_on_ordering_changed (CheckerboardLayout* self);
-static void _checkerboard_layout_on_ordering_changed_data_collection_ordering_changed (DataCollection* _sender,
- gpointer self);
-static void checkerboard_layout_on_views_altered (CheckerboardLayout* self,
- GeeCollection* altered);
-static void _checkerboard_layout_on_views_altered_view_collection_views_altered (ViewCollection* _sender,
- GeeCollection* views,
- gpointer self);
-static void checkerboard_layout_on_geometries_altered (CheckerboardLayout* self);
-static void _checkerboard_layout_on_geometries_altered_view_collection_geometries_altered (ViewCollection* _sender,
- GeeCollection* views,
- gpointer self);
-static void checkerboard_layout_on_items_selection_changed (CheckerboardLayout* self);
-static void _checkerboard_layout_on_items_selection_changed_view_collection_items_selected (ViewCollection* _sender,
- GeeIterable* selected,
- gpointer self);
-static void _checkerboard_layout_on_items_selection_changed_view_collection_items_unselected (ViewCollection* _sender,
- GeeIterable* unselected,
- gpointer self);
-static void checkerboard_layout_on_viewport_shifted (CheckerboardLayout* self);
-static void _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed (GtkAdjustment* _sender,
- gpointer self);
-static void checkerboard_layout_on_viewport_resized (CheckerboardLayout* self);
-static void _checkerboard_layout_on_viewport_resized_gtk_widget_size_allocate (GtkWidget* _sender,
- GtkAllocation* allocation,
- gpointer self);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-static void checkerboard_layout_on_colors_changed (CheckerboardLayout* self);
-static void _checkerboard_layout_on_colors_changed_config_facade_colors_changed (ConfigFacade* _sender,
- gpointer self);
-#define CHECKERBOARD_LAYOUT_TOP_PADDING 16
-#define CHECKERBOARD_LAYOUT_BOTTOM_PADDING 16
-#define CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING 24
-#define CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING 24
-#define CHECKERBOARD_LAYOUT_SELECTION_ALPHA 0.40
-#define CHECKERBOARD_LAYOUT_SCROLLBAR_PLACEHOLDER_WIDTH 1
-CheckerboardLayout* checkerboard_layout_new (ViewCollection* view);
-CheckerboardLayout* checkerboard_layout_construct (GType object_type,
- ViewCollection* view);
-void checkerboard_layout_clear_drag_select (CheckerboardLayout* self);
-void config_facade_get_bg_color (ConfigFacade* self,
- GdkRGBA* result);
-void checkerboard_layout_set_adjustments (CheckerboardLayout* self,
- GtkAdjustment* hadjustment,
- GtkAdjustment* vadjustment);
-void checkerboard_layout_set_scale (CheckerboardLayout* self,
- gint scale);
-gint checkerboard_layout_get_scale (CheckerboardLayout* self);
-void checkerboard_layout_set_name (CheckerboardLayout* self,
- const gchar* name);
-static void checkerboard_layout_viewport_resized (CheckerboardLayout* self);
-static void checkerboard_layout_clear_anchor (CheckerboardLayout* self);
-static void checkerboard_layout_update_visible_page (CheckerboardLayout* self);
-static void checkerboard_layout_need_exposure (CheckerboardLayout* self,
- const gchar* caller);
-static void checkerboard_layout_update_anchor (CheckerboardLayout* self);
-GeeList* checkerboard_layout_intersection (CheckerboardLayout* self,
- GdkRectangle* area);
-static void checkerboard_layout_center_on_anchor (CheckerboardLayout* self,
- gdouble upper);
-void checkerboard_layout_set_cursor (CheckerboardLayout* self,
- CheckerboardItem* item);
-gboolean data_collection_contains (DataCollection* self,
- DataObject* object);
-CheckerboardItem* checkerboard_layout_get_cursor (CheckerboardLayout* self);
-static void checkerboard_layout_need_reflow (CheckerboardLayout* self,
- const gchar* caller);
-static void checkerboard_layout_items_dirty (CheckerboardLayout* self,
- const gchar* reason,
- GeeIterable* items);
-static gboolean checkerboard_layout_do_reflow (CheckerboardLayout* self);
-static gboolean _checkerboard_layout_do_reflow_gsource_func (gpointer self);
-static void checkerboard_layout_reflow (CheckerboardLayout* self,
- const gchar* caller);
-void checkerboard_layout_set_message (CheckerboardLayout* self,
- const gchar* text);
-void checkerboard_layout_unset_message (CheckerboardLayout* self);
-void get_adjustment_page (GtkAdjustment* hadj,
- GtkAdjustment* vadj,
- GdkRectangle* result);
-void checkerboard_layout_set_in_view (CheckerboardLayout* self,
- gboolean in_view);
-static void checkerboard_layout_unexpose_items (CheckerboardLayout* self,
- const gchar* caller);
-CheckerboardItem* checkerboard_layout_get_item_at_pixel (CheckerboardLayout* self,
- gdouble xd,
- gdouble yd);
-gint checkerboard_layout_get_tag_index_at_pos (const gchar* tag_list,
- gint pos);
-#define TAG_TAG_LIST_SEPARATOR_STRING ", "
-static gint checkerboard_layout_internal_handle_tag_mouse_event (CheckerboardLayout* self,
- CheckerboardItem* item,
- gint x,
- gint y);
-gboolean checkerboard_layout_handle_mouse_motion (CheckerboardLayout* self,
- CheckerboardItem* item,
- gint x,
- gint y,
- GdkModifierType mask);
-gboolean checkerboard_layout_is_drag_select_active (CheckerboardLayout* self);
-gboolean checkerboard_layout_handle_left_click (CheckerboardLayout* self,
- CheckerboardItem* item,
- gdouble xd,
- gdouble yd,
- GdkModifierType mask);
-GType library_window_get_type (void) G_GNUC_CONST;
-LibraryWindow* library_window_get_app (void);
-void library_window_switch_to_tag (LibraryWindow* self,
- Tag* tag);
-GeeList* checkerboard_layout_get_visible_items (CheckerboardLayout* self);
-GType compass_point_get_type (void) G_GNUC_CONST;
-CheckerboardItem* checkerboard_layout_get_item_relative_to (CheckerboardLayout* self,
- CheckerboardItem* item,
- CompassPoint point);
-gint data_collection_get_count (DataCollection* self);
-CheckerboardItem* checkerboard_layout_get_item_at_coordinate (CheckerboardLayout* self,
- gint col,
- gint row);
-DataView* view_collection_get_last (ViewCollection* self);
-void checkerboard_layout_set_drag_select_origin (CheckerboardLayout* self,
- gint x,
- gint y);
-void checkerboard_layout_set_drag_select_endpoint (CheckerboardLayout* self,
- gint x,
- gint y);
-GType box_get_type (void) G_GNUC_CONST;
-Box* box_dup (const Box* self);
-void box_free (Box* self);
-void box_from_points (GdkPoint* corner1,
- GdkPoint* corner2,
- Box* result);
-void box_get_rectangle (Box *self,
- GdkRectangle* result);
-GeeList* checkerboard_layout_items_in_selection_band (CheckerboardLayout* self);
-void dimensions_for_rectangle (GdkRectangle* rect,
- Dimensions* result);
-static void checkerboard_layout_expose_items (CheckerboardLayout* self,
- const gchar* caller);
-void data_collection_freeze_notifications (DataCollection* self);
-void data_collection_thaw_notifications (DataCollection* self);
-gboolean data_view_is_visible (DataView* self);
-DataObject* data_collection_get_at (DataCollection* self,
- gint index);
-static CheckerboardLayoutLayoutRow* checkerboard_layout_layout_row_new (gint y,
- gint height,
- gint num_in_row);
-static CheckerboardLayoutLayoutRow* checkerboard_layout_layout_row_construct (GType object_type,
- gint y,
- gint height,
- gint num_in_row);
-static void checkerboard_layout_real_map (GtkWidget* base);
-static void checkerboard_layout_set_colors (CheckerboardLayout* self,
- gboolean in_focus);
-void config_facade_get_selected_color (ConfigFacade* self,
- gboolean in_focus,
- GdkRGBA* result);
-void config_facade_get_unselected_color (ConfigFacade* self,
- GdkRGBA* result);
-void config_facade_get_border_color (ConfigFacade* self,
- GdkRGBA* result);
-static void checkerboard_layout_real_size_allocate (GtkWidget* base,
- GtkAllocation* allocation);
-static gboolean checkerboard_layout_real_draw (GtkWidget* base,
- cairo_t* ctx);
-static void checkerboard_layout_draw_selection_band (CheckerboardLayout* self,
- cairo_t* ctx);
-static gboolean checkerboard_layout_real_query_tooltip (GtkWidget* base,
- gint x,
- gint y,
- gboolean keyboard_mode,
- GtkTooltip* tooltip);
-void invalidate_transparent_background (void);
-static gboolean checkerboard_layout_real_focus_in_event (GtkWidget* base,
- GdkEventFocus* event);
-GeeList* view_collection_get_selected (ViewCollection* self);
-static gboolean checkerboard_layout_real_focus_out_event (GtkWidget* base,
- GdkEventFocus* event);
-static void checkerboard_layout_layout_row_finalize (CheckerboardLayoutLayoutRow * obj);
-static void checkerboard_layout_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);
-
-
-CheckerboardItemText*
-checkerboard_item_text_construct (GType object_type,
- const gchar* text,
- PangoAlignment alignment,
- gboolean marked_up)
-{
- CheckerboardItemText* self = NULL;
- gchar* _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (text != NULL, NULL);
-#line 19 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = (CheckerboardItemText*) g_type_create_instance (object_type);
-#line 21 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = g_strdup (text);
-#line 21 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (self->priv->text);
-#line 21 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->text = _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->marked_up = marked_up;
-#line 23 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->alignment = alignment;
-#line 25 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->single_line = checkerboard_item_text_is_single_line (self);
-#line 19 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return self;
-#line 1007 "CheckerboardLayout.c"
-}
-
-
-CheckerboardItemText*
-checkerboard_item_text_new (const gchar* text,
- PangoAlignment alignment,
- gboolean marked_up)
-{
-#line 19 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return checkerboard_item_text_construct (TYPE_CHECKERBOARD_ITEM_TEXT, text, alignment, marked_up);
-#line 1018 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-checkerboard_item_text_is_single_line (CheckerboardItemText* self)
-{
- gboolean result = FALSE;
- const gchar* _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), FALSE);
-#line 29 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->text;
-#line 29 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = !string_contains_char (_tmp0_, (gunichar) '\n');
-#line 29 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 1035 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_item_text_is_marked_up (CheckerboardItemText* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 32 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), FALSE);
-#line 33 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->marked_up;
-#line 33 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 1052 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_item_text_is_set_to (CheckerboardItemText* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
-#line 36 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), FALSE);
-#line 36 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (text != NULL, FALSE);
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->marked_up;
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_ == marked_up) {
-#line 1074 "CheckerboardLayout.c"
- PangoAlignment _tmp3_;
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->alignment;
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp3_ == alignment;
-#line 1080 "CheckerboardLayout.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = FALSE;
-#line 1084 "CheckerboardLayout.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_) {
-#line 1088 "CheckerboardLayout.c"
- const gchar* _tmp4_;
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->text;
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = g_strcmp0 (_tmp4_, text) == 0;
-#line 1094 "CheckerboardLayout.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 1098 "CheckerboardLayout.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 1104 "CheckerboardLayout.c"
-}
-
-
-gchar*
-checkerboard_item_text_get_text (CheckerboardItemText* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 40 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), NULL);
-#line 41 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->text;
-#line 41 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 41 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp1_;
-#line 41 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 1124 "CheckerboardLayout.c"
-}
-
-
-gint
-checkerboard_item_text_get_height (CheckerboardItemText* self)
-{
- gint result = 0;
- gint _tmp0_;
- gint _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), 0);
-#line 45 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->height;
-#line 45 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == 0) {
-#line 46 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_update_height (self);
-#line 1142 "CheckerboardLayout.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->height;
-#line 48 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 1150 "CheckerboardLayout.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1159 "CheckerboardLayout.c"
-}
-
-
-PangoLayout*
-checkerboard_item_text_get_pango_layout (CheckerboardItemText* self,
- gint max_width)
-{
- PangoLayout* result = NULL;
- PangoLayout* _tmp0_;
- PangoLayout* _tmp2_;
- PangoLayout* _tmp3_;
-#line 51 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), NULL);
-#line 52 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->layout;
-#line 52 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == NULL) {
-#line 53 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_create_pango (self);
-#line 1179 "CheckerboardLayout.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (max_width > 0) {
-#line 1183 "CheckerboardLayout.c"
- PangoLayout* _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->layout;
-#line 56 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_layout_set_width (_tmp1_, max_width * PANGO_SCALE);
-#line 1189 "CheckerboardLayout.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->layout;
-#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp3_;
-#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 1199 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_text_clear_pango_layout (CheckerboardItemText* self)
-{
-#line 61 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self));
-#line 62 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->layout);
-#line 62 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->layout = NULL;
-#line 1212 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_text_update_height (CheckerboardItemText* self)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self));
-#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = checkerboard_item_text_one_line_height;
-#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != 0) {
-#line 1227 "CheckerboardLayout.c"
- gboolean _tmp2_;
-#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->single_line;
-#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp2_;
-#line 1233 "CheckerboardLayout.c"
- } else {
-#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 1237 "CheckerboardLayout.c"
- }
-#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 1241 "CheckerboardLayout.c"
- gint _tmp3_;
-#line 67 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_one_line_height;
-#line 67 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->height = _tmp3_;
-#line 1247 "CheckerboardLayout.c"
- } else {
-#line 69 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_create_pango (self);
-#line 1251 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_item_text_create_pango (CheckerboardItemText* self)
-{
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- PangoLayout* _tmp2_;
- gboolean _tmp3_;
- PangoLayout* _tmp8_;
- PangoLayout* _tmp9_;
- PangoAlignment _tmp10_;
- gboolean _tmp11_ = FALSE;
- gint _tmp12_;
-#line 72 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self));
-#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = app_window_get_instance ();
-#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_;
-#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), NULL);
-#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->layout);
-#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->layout = _tmp2_;
-#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp1_);
-#line 75 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->marked_up;
-#line 75 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp3_) {
-#line 1286 "CheckerboardLayout.c"
- PangoLayout* _tmp4_;
- const gchar* _tmp5_;
-#line 76 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->layout;
-#line 76 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = self->priv->text;
-#line 76 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_layout_set_text (_tmp4_, _tmp5_, -1);
-#line 1295 "CheckerboardLayout.c"
- } else {
- PangoLayout* _tmp6_;
- const gchar* _tmp7_;
-#line 78 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->layout;
-#line 78 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = self->priv->text;
-#line 78 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_layout_set_markup (_tmp6_, _tmp7_, -1);
-#line 1305 "CheckerboardLayout.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = self->priv->layout;
-#line 80 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_layout_set_ellipsize (_tmp8_, PANGO_ELLIPSIZE_END);
-#line 81 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = self->priv->layout;
-#line 81 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = self->priv->alignment;
-#line 81 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_layout_set_alignment (_tmp9_, _tmp10_);
-#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = checkerboard_item_text_one_line_height;
-#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp12_ != 0) {
-#line 1321 "CheckerboardLayout.c"
- gboolean _tmp13_;
-#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = self->priv->single_line;
-#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = _tmp13_;
-#line 1327 "CheckerboardLayout.c"
- } else {
-#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = FALSE;
-#line 1331 "CheckerboardLayout.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp11_) {
-#line 1335 "CheckerboardLayout.c"
- gint _tmp14_;
-#line 86 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = checkerboard_item_text_one_line_height;
-#line 86 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->height = _tmp14_;
-#line 1341 "CheckerboardLayout.c"
- } else {
- gint width = 0;
- PangoLayout* _tmp15_;
- gint _tmp16_ = 0;
- gint _tmp17_ = 0;
- gboolean _tmp18_ = FALSE;
- gint _tmp19_;
-#line 89 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = self->priv->layout;
-#line 89 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_layout_get_pixel_size (_tmp15_, &_tmp16_, &_tmp17_);
-#line 89 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- width = _tmp16_;
-#line 89 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->height = _tmp17_;
-#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = checkerboard_item_text_one_line_height;
-#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp19_ == 0) {
-#line 1361 "CheckerboardLayout.c"
- gboolean _tmp20_;
-#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = self->priv->single_line;
-#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = _tmp20_;
-#line 1367 "CheckerboardLayout.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = FALSE;
-#line 1371 "CheckerboardLayout.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp18_) {
-#line 1375 "CheckerboardLayout.c"
- gint _tmp21_;
-#line 93 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = self->priv->height;
-#line 93 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_one_line_height = _tmp21_;
-#line 1381 "CheckerboardLayout.c"
- }
- }
-}
-
-
-static void
-value_checkerboard_item_text_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = NULL;
-#line 1392 "CheckerboardLayout.c"
-}
-
-
-static void
-value_checkerboard_item_text_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_unref (value->data[0].v_pointer);
-#line 1403 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-value_checkerboard_item_text_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dest_value->data[0].v_pointer = checkerboard_item_text_ref (src_value->data[0].v_pointer);
-#line 1416 "CheckerboardLayout.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1420 "CheckerboardLayout.c"
- }
-}
-
-
-static gpointer
-value_checkerboard_item_text_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return value->data[0].v_pointer;
-#line 1430 "CheckerboardLayout.c"
-}
-
-
-static gchar*
-value_checkerboard_item_text_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (collect_values[0].v_pointer) {
-#line 1442 "CheckerboardLayout.c"
- CheckerboardItemText * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1449 "CheckerboardLayout.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.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 1453 "CheckerboardLayout.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = checkerboard_item_text_ref (object);
-#line 1457 "CheckerboardLayout.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = NULL;
-#line 1461 "CheckerboardLayout.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return NULL;
-#line 1465 "CheckerboardLayout.c"
-}
-
-
-static gchar*
-value_checkerboard_item_text_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- CheckerboardItemText ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1481 "CheckerboardLayout.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *object_p = NULL;
-#line 1487 "CheckerboardLayout.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *object_p = value->data[0].v_pointer;
-#line 1491 "CheckerboardLayout.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *object_p = checkerboard_item_text_ref (value->data[0].v_pointer);
-#line 1495 "CheckerboardLayout.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return NULL;
-#line 1499 "CheckerboardLayout.c"
-}
-
-
-GParamSpec*
-param_spec_checkerboard_item_text (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecCheckerboardItemText* spec;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_CHECKERBOARD_ITEM_TEXT), NULL);
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return G_PARAM_SPEC (spec);
-#line 1519 "CheckerboardLayout.c"
-}
-
-
-gpointer
-value_get_checkerboard_item_text (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CHECKERBOARD_ITEM_TEXT), NULL);
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return value->data[0].v_pointer;
-#line 1530 "CheckerboardLayout.c"
-}
-
-
-void
-value_set_checkerboard_item_text (GValue* value,
- gpointer v_object)
-{
- CheckerboardItemText * old;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CHECKERBOARD_ITEM_TEXT));
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CHECKERBOARD_ITEM_TEXT));
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- 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/CheckerboardLayout.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_ref (value->data[0].v_pointer);
-#line 1553 "CheckerboardLayout.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = NULL;
-#line 1557 "CheckerboardLayout.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_unref (old);
-#line 1563 "CheckerboardLayout.c"
- }
-}
-
-
-void
-value_take_checkerboard_item_text (GValue* value,
- gpointer v_object)
-{
- CheckerboardItemText * old;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CHECKERBOARD_ITEM_TEXT));
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CHECKERBOARD_ITEM_TEXT));
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- 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/CheckerboardLayout.vala"
- value->data[0].v_pointer = v_object;
-#line 1585 "CheckerboardLayout.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = NULL;
-#line 1589 "CheckerboardLayout.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_unref (old);
-#line 1595 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_item_text_class_init (CheckerboardItemTextClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemTextClass *) klass)->finalize = checkerboard_item_text_finalize;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_type_class_add_private (klass, sizeof (CheckerboardItemTextPrivate));
-#line 1609 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_text_instance_init (CheckerboardItemText * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv = CHECKERBOARD_ITEM_TEXT_GET_PRIVATE (self);
-#line 13 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->layout = NULL;
-#line 14 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->single_line = TRUE;
-#line 15 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->height = 0;
-#line 17 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&self->allocation, 0, sizeof (GdkRectangle));
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->ref_count = 1;
-#line 1628 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_text_finalize (CheckerboardItemText * obj)
-{
- CheckerboardItemText * self;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemText);
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_destroy (self);
-#line 10 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (self->priv->text);
-#line 13 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->layout);
-#line 1644 "CheckerboardLayout.c"
-}
-
-
-GType
-checkerboard_item_text_get_type (void)
-{
- static volatile gsize checkerboard_item_text_type_id__volatile = 0;
- if (g_once_init_enter (&checkerboard_item_text_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_checkerboard_item_text_init, value_checkerboard_item_text_free_value, value_checkerboard_item_text_copy_value, value_checkerboard_item_text_peek_pointer, "p", value_checkerboard_item_text_collect_value, "p", value_checkerboard_item_text_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (CheckerboardItemTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_item_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardItemText), 0, (GInstanceInitFunc) checkerboard_item_text_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType checkerboard_item_text_type_id;
- checkerboard_item_text_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CheckerboardItemText", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&checkerboard_item_text_type_id__volatile, checkerboard_item_text_type_id);
- }
- return checkerboard_item_text_type_id__volatile;
-}
-
-
-gpointer
-checkerboard_item_text_ref (gpointer instance)
-{
- CheckerboardItemText * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return instance;
-#line 1673 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_text_unref (gpointer instance)
-{
- CheckerboardItemText * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- CHECKERBOARD_ITEM_TEXT_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1688 "CheckerboardLayout.c"
- }
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 1712 "CheckerboardLayout.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 1716 "CheckerboardLayout.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 1722 "CheckerboardLayout.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 1726 "CheckerboardLayout.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1730 "CheckerboardLayout.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1738 "CheckerboardLayout.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 1766 "CheckerboardLayout.c"
- goto __catch254_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1775 "CheckerboardLayout.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 1789 "CheckerboardLayout.c"
- goto __catch254_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1800 "CheckerboardLayout.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1814 "CheckerboardLayout.c"
- }
- goto __finally254;
- __catch254_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 1828 "CheckerboardLayout.c"
- }
- __finally254:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1839 "CheckerboardLayout.c"
- }
-}
-
-
-CheckerboardItem*
-checkerboard_item_construct (GType object_type,
- ThumbnailSource* source,
- Dimensions* initial_pixbuf_dim,
- const gchar* title,
- const gchar* comment,
- gboolean marked_up,
- PangoAlignment alignment)
-{
- CheckerboardItem * self = NULL;
- Dimensions _tmp0_;
- CheckerboardItemText* _tmp1_;
-#line 141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL);
-#line 141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (initial_pixbuf_dim != NULL, NULL);
-#line 141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (title != NULL, NULL);
-#line 143 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = (CheckerboardItem*) thumbnail_view_construct (object_type, source);
-#line 145 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = *initial_pixbuf_dim;
-#line 145 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->pixbuf_dim = _tmp0_;
-#line 146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = checkerboard_item_text_new (title, alignment, marked_up);
-#line 146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->title);
-#line 146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->title = _tmp1_;
-#line 152 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (comment != NULL) {
-#line 1876 "CheckerboardLayout.c"
- gchar* _tmp2_;
- gchar* _tmp3_;
- CheckerboardItemText* _tmp4_;
-#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = string_replace (comment, "\n", " ");
-#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_;
-#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = checkerboard_item_text_new (_tmp3_, alignment, marked_up);
-#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->comment);
-#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->comment = _tmp4_;
-#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp3_);
-#line 1892 "CheckerboardLayout.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return self;
-#line 1896 "CheckerboardLayout.c"
-}
-
-
-static gchar*
-checkerboard_item_real_get_name (DataObject* base)
-{
- CheckerboardItem * self;
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- CheckerboardItemText* _tmp1_;
-#line 163 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->title;
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 1913 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp2_;
- gchar* _tmp3_;
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->title;
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_get_text (_tmp2_);
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp0_);
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp3_;
-#line 1924 "CheckerboardLayout.c"
- } else {
- gchar* _tmp4_;
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = DATA_OBJECT_CLASS (checkerboard_item_parent_class)->get_name (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_VIEW, ThumbnailView), TYPE_DATA_OBJECT, DataObject));
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp0_);
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp4_;
-#line 1933 "CheckerboardLayout.c"
- }
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 1939 "CheckerboardLayout.c"
-}
-
-
-gchar*
-checkerboard_item_get_title (CheckerboardItem* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- CheckerboardItemText* _tmp1_;
-#line 167 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->title;
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 1955 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp2_;
- gchar* _tmp3_;
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->title;
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_get_text (_tmp2_);
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp0_);
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp3_;
-#line 1966 "CheckerboardLayout.c"
- } else {
- gchar* _tmp4_;
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = g_strdup ("");
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp0_);
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp4_;
-#line 1975 "CheckerboardLayout.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 1981 "CheckerboardLayout.c"
-}
-
-
-gchar*
-checkerboard_item_get_comment (CheckerboardItem* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- CheckerboardItemText* _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->comment;
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 1997 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp2_;
- gchar* _tmp3_;
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->comment;
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_get_text (_tmp2_);
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp0_);
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp3_;
-#line 2008 "CheckerboardLayout.c"
- } else {
- gchar* _tmp4_;
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = g_strdup ("");
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp0_);
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp4_;
-#line 2017 "CheckerboardLayout.c"
- }
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 2023 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_set_title (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment)
-{
- gboolean _tmp0_ = FALSE;
- CheckerboardItemText* _tmp1_;
- CheckerboardItemText* _tmp3_;
- gboolean _tmp4_;
-#line 175 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 175 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (text != NULL);
-#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->title;
-#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 2045 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp2_;
-#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->title;
-#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = checkerboard_item_text_is_set_to (_tmp2_, text, marked_up, alignment);
-#line 2051 "CheckerboardLayout.c"
- } else {
-#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 2055 "CheckerboardLayout.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 178 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2061 "CheckerboardLayout.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_new (text, alignment, marked_up);
-#line 180 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->title);
-#line 180 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->title = _tmp3_;
-#line 182 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->title_visible;
-#line 182 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp4_) {
-#line 183 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "set_title");
-#line 184 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2077 "CheckerboardLayout.c"
- }
-}
-
-
-void
-checkerboard_item_translate_coordinates (CheckerboardItem* self,
- gint* x,
- gint* y)
-{
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
-#line 188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->allocation;
-#line 189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.x;
-#line 189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *x = (*x) - (_tmp1_ + CHECKERBOARD_ITEM_FRAME_WIDTH);
-#line 190 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->allocation;
-#line 190 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.y;
-#line 190 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *y = (*y) - (_tmp3_ + CHECKERBOARD_ITEM_FRAME_WIDTH);
-#line 2105 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_clear_title (CheckerboardItem* self)
-{
- CheckerboardItemText* _tmp0_;
- gboolean _tmp1_;
-#line 193 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 194 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->title;
-#line 194 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == NULL) {
-#line 195 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2122 "CheckerboardLayout.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->title);
-#line 197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->title = NULL;
-#line 199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->title_visible;
-#line 199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_) {
-#line 200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "clear_title");
-#line 201 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2136 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_item_set_title_visible (CheckerboardItem* self,
- gboolean visible)
-{
- gboolean _tmp0_;
-#line 205 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->title_visible;
-#line 206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == visible) {
-#line 207 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2154 "CheckerboardLayout.c"
- }
-#line 209 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->title_visible = visible;
-#line 211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "set_title_visible");
-#line 212 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2162 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_set_comment (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment)
-{
- gboolean _tmp0_ = FALSE;
- CheckerboardItemText* _tmp1_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- CheckerboardItemText* _tmp5_;
- gboolean _tmp6_;
-#line 215 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 215 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (text != NULL);
-#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->comment;
-#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 2186 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp2_;
-#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->comment;
-#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = checkerboard_item_text_is_set_to (_tmp2_, text, marked_up, alignment);
-#line 2192 "CheckerboardLayout.c"
- } else {
-#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 2196 "CheckerboardLayout.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 218 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2202 "CheckerboardLayout.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = string_replace (text, "\n", " ");
-#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_;
-#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = checkerboard_item_text_new (_tmp4_, alignment, marked_up);
-#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->comment);
-#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->comment = _tmp5_;
-#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp4_);
-#line 222 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->comment_visible;
-#line 222 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp6_) {
-#line 223 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "set_comment");
-#line 224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2224 "CheckerboardLayout.c"
- }
-}
-
-
-void
-checkerboard_item_clear_comment (CheckerboardItem* self)
-{
- CheckerboardItemText* _tmp0_;
- gboolean _tmp1_;
-#line 228 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 229 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->comment;
-#line 229 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == NULL) {
-#line 230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2242 "CheckerboardLayout.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->comment);
-#line 232 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->comment = NULL;
-#line 234 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->comment_visible;
-#line 234 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_) {
-#line 235 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "clear_comment");
-#line 236 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2256 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_item_set_comment_visible (CheckerboardItem* self,
- gboolean visible)
-{
- gboolean _tmp0_;
-#line 240 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 241 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->comment_visible;
-#line 241 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == visible) {
-#line 242 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2274 "CheckerboardLayout.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->comment_visible = visible;
-#line 246 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "set_comment_visible");
-#line 247 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2282 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_set_tags (CheckerboardItem* self,
- GeeCollection* tags,
- PangoAlignment alignment)
-{
- gboolean _tmp0_ = FALSE;
- gchar* text = NULL;
- gboolean _tmp3_;
- gboolean _tmp9_ = FALSE;
- CheckerboardItemText* _tmp10_;
- const gchar* _tmp13_;
- CheckerboardItemText* _tmp14_;
- gboolean _tmp15_;
-#line 250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail ((tags == NULL) || GEE_IS_COLLECTION (tags));
-#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (tags != NULL) {
-#line 2305 "CheckerboardLayout.c"
- gint _tmp1_;
- gint _tmp2_;
-#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = gee_collection_get_size (tags);
-#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_;
-#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp2_ > 0;
-#line 2314 "CheckerboardLayout.c"
- } else {
-#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 2318 "CheckerboardLayout.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_has_tags (self, _tmp0_);
-#line 253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->tag_alignment = alignment;
-#line 255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->_has_tags;
-#line 255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp3_) {
-#line 2328 "CheckerboardLayout.c"
- GeeCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- gchar* _tmp7_;
-#line 256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _g_object_ref0 (tags);
-#line 256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->tags);
-#line 256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->tags = _tmp4_;
-#line 257 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = tag_make_user_visible_tag_list (tags);
-#line 257 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->user_visible_tag_list);
-#line 257 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->user_visible_tag_list = _tmp5_;
-#line 258 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->user_visible_tag_list;
-#line 258 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = tag_make_tag_markup_string (_tmp6_, -1);
-#line 258 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (text);
-#line 258 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- text = _tmp7_;
-#line 2353 "CheckerboardLayout.c"
- } else {
- gchar* _tmp8_;
-#line 260 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = g_strdup ("<small>.</small>");
-#line 260 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (text);
-#line 260 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- text = _tmp8_;
-#line 2362 "CheckerboardLayout.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = self->priv->subtitle;
-#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp10_ != NULL) {
-#line 2368 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp11_;
- const gchar* _tmp12_;
-#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = self->priv->subtitle;
-#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = text;
-#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = checkerboard_item_text_is_set_to (_tmp11_, _tmp12_, TRUE, alignment);
-#line 2377 "CheckerboardLayout.c"
- } else {
-#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = FALSE;
-#line 2381 "CheckerboardLayout.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp9_) {
-#line 264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (text);
-#line 264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2389 "CheckerboardLayout.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = text;
-#line 265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = checkerboard_item_text_new (_tmp13_, alignment, TRUE);
-#line 265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->subtitle);
-#line 265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->subtitle = _tmp14_;
-#line 267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = self->priv->subtitle_visible;
-#line 267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp15_) {
-#line 268 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "set_subtitle");
-#line 269 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2407 "CheckerboardLayout.c"
- }
-#line 250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (text);
-#line 2411 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_clear_tags (CheckerboardItem* self)
-{
-#line 273 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 274 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_clear_subtitle (self);
-#line 275 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_has_tags (self, FALSE);
-#line 276 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->user_visible_tag_list);
-#line 276 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->user_visible_tag_list = NULL;
-#line 2428 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_highlight_user_visible_tag (CheckerboardItem* self,
- gint index)
-{
- GeeList* _tmp0_;
- gchar* text = NULL;
- GeeList* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- PangoAlignment _tmp4_;
- CheckerboardItemText* _tmp5_;
- gboolean _tmp6_;
-#line 279 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 279 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->user_visible_tag_list;
-#line 279 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_return_if_fail (_tmp0_ != NULL, "user_visible_tag_list != null");
-#line 281 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->user_visible_tag_list;
-#line 281 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = tag_make_tag_markup_string (_tmp1_, index);
-#line 281 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- text = _tmp2_;
-#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = text;
-#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->tag_alignment;
-#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = checkerboard_item_text_new (_tmp3_, _tmp4_, TRUE);
-#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->subtitle);
-#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->subtitle = _tmp5_;
-#line 284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->subtitle_visible;
-#line 284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp6_) {
-#line 285 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2472 "CheckerboardLayout.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (text);
-#line 2476 "CheckerboardLayout.c"
-}
-
-
-Tag*
-checkerboard_item_get_user_visible_tag (CheckerboardItem* self,
- gint index)
-{
- Tag* result = NULL;
- GeeList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GeeList* _tmp3_;
- gpointer _tmp4_;
-#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->user_visible_tag_list;
-#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_;
-#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_return_val_if_fail ((index >= 0) && (index < _tmp2_), "index >= 0 && index < user_visible_tag_list.size", NULL);
-#line 290 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->user_visible_tag_list;
-#line 290 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = gee_list_get (_tmp3_, index);
-#line 290 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = (Tag*) _tmp4_;
-#line 290 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 2508 "CheckerboardLayout.c"
-}
-
-
-PangoLayout*
-checkerboard_item_get_tag_list_layout (CheckerboardItem* self)
-{
- PangoLayout* result = NULL;
- PangoLayout* _tmp0_ = NULL;
- gboolean _tmp1_;
-#line 293 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->_has_tags;
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_) {
-#line 2524 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp2_;
- PangoLayout* _tmp3_;
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->subtitle;
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_get_pango_layout (_tmp2_, 0);
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp0_);
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp3_;
-#line 2535 "CheckerboardLayout.c"
- } else {
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp0_);
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = NULL;
-#line 2541 "CheckerboardLayout.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 2547 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_get_subtitle_allocation (CheckerboardItem* self,
- GdkRectangle* result)
-{
- CheckerboardItemText* _tmp0_;
- GdkRectangle _tmp1_;
-#line 297 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 298 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->subtitle;
-#line 298 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_->allocation;
-#line 298 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *result = _tmp1_;
-#line 298 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2567 "CheckerboardLayout.c"
-}
-
-
-gchar*
-checkerboard_item_get_subtitle (CheckerboardItem* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- CheckerboardItemText* _tmp1_;
-#line 301 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->subtitle;
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 2583 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp2_;
- gchar* _tmp3_;
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->subtitle;
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_get_text (_tmp2_);
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp0_);
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp3_;
-#line 2594 "CheckerboardLayout.c"
- } else {
- gchar* _tmp4_;
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = g_strdup ("");
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp0_);
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp4_;
-#line 2603 "CheckerboardLayout.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 2609 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_set_subtitle (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment)
-{
- gboolean _tmp0_ = FALSE;
- CheckerboardItemText* _tmp1_;
- CheckerboardItemText* _tmp3_;
- gboolean _tmp4_;
-#line 305 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 305 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (text != NULL);
-#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->subtitle;
-#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 2631 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp2_;
-#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->subtitle;
-#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = checkerboard_item_text_is_set_to (_tmp2_, text, marked_up, alignment);
-#line 2637 "CheckerboardLayout.c"
- } else {
-#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 2641 "CheckerboardLayout.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 308 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2647 "CheckerboardLayout.c"
- }
-#line 310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_new (text, alignment, marked_up);
-#line 310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->subtitle);
-#line 310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->subtitle = _tmp3_;
-#line 312 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->subtitle_visible;
-#line 312 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp4_) {
-#line 313 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "set_subtitle");
-#line 314 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2663 "CheckerboardLayout.c"
- }
-}
-
-
-void
-checkerboard_item_clear_subtitle (CheckerboardItem* self)
-{
- CheckerboardItemText* _tmp0_;
- gboolean _tmp1_;
-#line 318 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 319 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->subtitle;
-#line 319 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == NULL) {
-#line 320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2681 "CheckerboardLayout.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->subtitle);
-#line 322 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->subtitle = NULL;
-#line 324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->subtitle_visible;
-#line 324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_) {
-#line 325 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "clear_subtitle");
-#line 326 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2695 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_item_set_subtitle_visible (CheckerboardItem* self,
- gboolean visible)
-{
- gboolean _tmp0_;
-#line 330 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 331 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->subtitle_visible;
-#line 331 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == visible) {
-#line 332 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 2713 "CheckerboardLayout.c"
- }
-#line 334 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->subtitle_visible = visible;
-#line 336 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "set_subtitle_visible");
-#line 337 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2721 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_set_is_cursor (CheckerboardItem* self,
- gboolean is_cursor)
-{
-#line 340 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->is_cursor = is_cursor;
-#line 2733 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_item_get_is_cursor (CheckerboardItem* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 344 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE);
-#line 345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->is_cursor;
-#line 345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 2750 "CheckerboardLayout.c"
-}
-
-
-static void
-_vala_GValue_free (GValue* self)
-{
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_value_unset (self);
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_free (self);
-#line 2761 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_real_notify_membership_changed (DataObject* base,
- DataCollection* collection)
-{
- CheckerboardItem * self;
- gboolean title_visible = FALSE;
- GValue* _tmp0_ = NULL;
- GValue _tmp1_ = {0};
- gboolean _tmp2_;
- gboolean comment_visible = FALSE;
- GValue* _tmp3_ = NULL;
- GValue _tmp4_ = {0};
- gboolean _tmp5_;
- gboolean subtitle_visible = FALSE;
- GValue* _tmp6_ = NULL;
- GValue _tmp7_ = {0};
- gboolean _tmp8_;
- gboolean altered = FALSE;
- gboolean _tmp9_;
- gboolean _tmp10_;
- gboolean _tmp12_;
- gboolean _tmp13_;
- gboolean _tmp15_;
- gboolean _tmp16_;
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_;
-#line 348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail ((collection == NULL) || IS_DATA_COLLECTION (collection));
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = g_new0 (GValue, 1);
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_value_init (_tmp0_, G_TYPE_BOOLEAN);
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_value_set_boolean (_tmp0_, TRUE);
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_object_get_collection_property (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), CHECKERBOARD_ITEM_PROP_SHOW_TITLES, _tmp0_, &_tmp1_);
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = g_value_get_boolean (&_tmp1_);
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- __vala_GValue_free0 (_tmp0_);
-#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- title_visible = _tmp2_;
-#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = g_new0 (GValue, 1);
-#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_value_init (_tmp3_, G_TYPE_BOOLEAN);
-#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_value_set_boolean (_tmp3_, TRUE);
-#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_object_get_collection_property (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS, _tmp3_, &_tmp4_);
-#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = g_value_get_boolean (&_tmp4_);
-#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- __vala_GValue_free0 (_tmp3_);
-#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- comment_visible = _tmp5_;
-#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = g_new0 (GValue, 1);
-#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_value_init (_tmp6_, G_TYPE_BOOLEAN);
-#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_value_set_boolean (_tmp6_, FALSE);
-#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_object_get_collection_property (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES, _tmp6_, &_tmp7_);
-#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = g_value_get_boolean (&_tmp7_);
-#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- __vala_GValue_free0 (_tmp6_);
-#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- subtitle_visible = _tmp8_;
-#line 353 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- altered = FALSE;
-#line 354 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = self->priv->title_visible;
-#line 354 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = title_visible;
-#line 354 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp9_ != _tmp10_) {
-#line 2845 "CheckerboardLayout.c"
- gboolean _tmp11_;
-#line 355 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = title_visible;
-#line 355 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->title_visible = _tmp11_;
-#line 356 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- altered = TRUE;
-#line 2853 "CheckerboardLayout.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = self->priv->comment_visible;
-#line 359 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = comment_visible;
-#line 359 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp12_ != _tmp13_) {
-#line 2861 "CheckerboardLayout.c"
- gboolean _tmp14_;
-#line 360 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = comment_visible;
-#line 360 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->comment_visible = _tmp14_;
-#line 361 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- altered = TRUE;
-#line 2869 "CheckerboardLayout.c"
- }
-#line 364 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = self->priv->subtitle_visible;
-#line 364 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = subtitle_visible;
-#line 364 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp15_ != _tmp16_) {
-#line 2877 "CheckerboardLayout.c"
- gboolean _tmp17_;
-#line 365 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = subtitle_visible;
-#line 365 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->subtitle_visible = _tmp17_;
-#line 366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- altered = TRUE;
-#line 2885 "CheckerboardLayout.c"
- }
-#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = altered;
-#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp19_) {
-#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = TRUE;
-#line 2893 "CheckerboardLayout.c"
- } else {
-#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = !dimensions_has_area (&self->requisition);
-#line 2897 "CheckerboardLayout.c"
- }
-#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp18_) {
-#line 370 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "notify_membership_changed");
-#line 371 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 2905 "CheckerboardLayout.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- DATA_OBJECT_CLASS (checkerboard_item_parent_class)->notify_membership_changed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_VIEW, ThumbnailView), TYPE_DATA_OBJECT, DataObject), collection);
-#line 2909 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_real_notify_collection_property_set (DataObject* base,
- const gchar* name,
- GValue* old,
- GValue* val)
-{
- CheckerboardItem * self;
- const gchar* _tmp0_;
- GQuark _tmp2_ = 0U;
- GValue _tmp6_;
-#line 377 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 377 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (name != NULL);
-#line 377 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (val != NULL);
-#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = name;
-#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_);
-#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_ == g_quark_from_string (CHECKERBOARD_ITEM_PROP_SHOW_TITLES)) {
-#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- switch (0) {
-#line 2937 "CheckerboardLayout.c"
- default:
- {
- GValue _tmp3_;
-#line 380 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = *val;
-#line 380 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_title_visible (self, g_value_get_boolean (&_tmp3_));
-#line 381 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 2947 "CheckerboardLayout.c"
- }
- }
- } else if (_tmp2_ == g_quark_from_string (CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS)) {
-#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- switch (0) {
-#line 2953 "CheckerboardLayout.c"
- default:
- {
- GValue _tmp4_;
-#line 384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = *val;
-#line 384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_comment_visible (self, g_value_get_boolean (&_tmp4_));
-#line 385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 2963 "CheckerboardLayout.c"
- }
- }
- } else if (_tmp2_ == g_quark_from_string (CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES)) {
-#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- switch (0) {
-#line 2969 "CheckerboardLayout.c"
- default:
- {
- GValue _tmp5_;
-#line 388 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = *val;
-#line 388 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_subtitle_visible (self, g_value_get_boolean (&_tmp5_));
-#line 389 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 2979 "CheckerboardLayout.c"
- }
- }
- }
-#line 392 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = *val;
-#line 392 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- DATA_OBJECT_CLASS (checkerboard_item_parent_class)->notify_collection_property_set (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_VIEW, ThumbnailView), TYPE_DATA_OBJECT, DataObject), name, old, &_tmp6_);
-#line 2987 "CheckerboardLayout.c"
-}
-
-
-gint
-checkerboard_item_get_alignment_point (CheckerboardItem* self)
-{
- gint result = 0;
- Dimensions _tmp0_;
- gint _tmp1_;
-#line 398 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0);
-#line 399 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->pixbuf_dim;
-#line 399 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.height;
-#line 399 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = (CHECKERBOARD_ITEM_FRAME_WIDTH + CHECKERBOARD_ITEM_BORDER_WIDTH) + _tmp1_;
-#line 399 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3007 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_real_exposed (CheckerboardItem* self)
-{
-#line 403 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposure = TRUE;
-#line 3016 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_exposed (CheckerboardItem* self)
-{
-#line 402 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 402 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- CHECKERBOARD_ITEM_GET_CLASS (self)->exposed (self);
-#line 3027 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_real_unexposed (CheckerboardItem* self)
-{
- CheckerboardItemText* _tmp0_;
- CheckerboardItemText* _tmp2_;
- CheckerboardItemText* _tmp4_;
-#line 407 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposure = FALSE;
-#line 409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->title;
-#line 409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ != NULL) {
-#line 3043 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp1_;
-#line 410 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->title;
-#line 410 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_clear_pango_layout (_tmp1_);
-#line 3049 "CheckerboardLayout.c"
- }
-#line 412 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->comment;
-#line 412 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_ != NULL) {
-#line 3055 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp3_;
-#line 413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->comment;
-#line 413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_clear_pango_layout (_tmp3_);
-#line 3061 "CheckerboardLayout.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->subtitle;
-#line 415 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp4_ != NULL) {
-#line 3067 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp5_;
-#line 416 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = self->priv->subtitle;
-#line 416 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_text_clear_pango_layout (_tmp5_);
-#line 3073 "CheckerboardLayout.c"
- }
-}
-
-
-void
-checkerboard_item_unexposed (CheckerboardItem* self)
-{
-#line 406 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 406 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- CHECKERBOARD_ITEM_GET_CLASS (self)->unexposed (self);
-#line 3085 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-checkerboard_item_real_is_exposed (CheckerboardItem* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 420 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->exposure;
-#line 420 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 420 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3100 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_item_is_exposed (CheckerboardItem* self)
-{
-#line 419 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE);
-#line 419 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return CHECKERBOARD_ITEM_GET_CLASS (self)->is_exposed (self);
-#line 3111 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_item_has_image (CheckerboardItem* self)
-{
- gboolean result = FALSE;
- GdkPixbuf* _tmp0_;
-#line 423 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE);
-#line 424 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->pixbuf;
-#line 424 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_ != NULL;
-#line 424 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3128 "CheckerboardLayout.c"
-}
-
-
-GdkPixbuf*
-checkerboard_item_get_image (CheckerboardItem* self)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 427 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 428 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->pixbuf;
-#line 428 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 428 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp1_;
-#line 428 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3148 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_set_image (CheckerboardItem* self,
- GdkPixbuf* pixbuf)
-{
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
- Dimensions _tmp2_ = {0};
-#line 431 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 431 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _g_object_ref0 (pixbuf);
-#line 432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->pixbuf);
-#line 432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->pixbuf = _tmp0_;
-#line 433 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _g_object_ref0 (pixbuf);
-#line 433 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->display_pixbuf);
-#line 433 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->display_pixbuf = _tmp1_;
-#line 434 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions_for_pixbuf (pixbuf, &_tmp2_);
-#line 434 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->pixbuf_dim = _tmp2_;
-#line 436 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "set_image");
-#line 437 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 3183 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_clear_image (CheckerboardItem* self,
- Dimensions* dim)
-{
- gboolean had_image = FALSE;
- GdkPixbuf* _tmp0_;
- Dimensions _tmp1_;
- gboolean _tmp2_;
-#line 440 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 440 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (dim != NULL);
-#line 441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->pixbuf;
-#line 441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- had_image = _tmp0_ != NULL;
-#line 443 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->pixbuf);
-#line 443 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->pixbuf = NULL;
-#line 444 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->display_pixbuf);
-#line 444 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->display_pixbuf = NULL;
-#line 445 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = *dim;
-#line 445 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->pixbuf_dim = _tmp1_;
-#line 447 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_recalc_size (self, "clear_image");
-#line 449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = had_image;
-#line 449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_) {
-#line 450 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 3223 "CheckerboardLayout.c"
- }
-}
-
-
-gint
-checkerboard_item_get_max_width (gint scale)
-{
- gint result = 0;
-#line 456 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = (CHECKERBOARD_ITEM_FRAME_WIDTH * 2) + scale;
-#line 456 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3236 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_recalc_size (CheckerboardItem* self,
- const gchar* reason)
-{
- Dimensions old_requisition = {0};
- Dimensions _tmp0_;
- gint _tmp1_ = 0;
- gboolean _tmp2_ = FALSE;
- CheckerboardItemText* _tmp3_;
- gint title_height = 0;
- gint _tmp6_ = 0;
- gboolean _tmp7_ = FALSE;
- CheckerboardItemText* _tmp8_;
- gint comment_height = 0;
- gint _tmp11_ = 0;
- gboolean _tmp12_ = FALSE;
- CheckerboardItemText* _tmp13_;
- gint subtitle_height = 0;
- Dimensions _tmp16_;
- gint _tmp17_;
- Dimensions _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- Dimensions _tmp23_;
-#line 459 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 459 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (reason != NULL);
-#line 460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->requisition;
-#line 460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- old_requisition = _tmp0_;
-#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->title;
-#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp3_ != NULL) {
-#line 3278 "CheckerboardLayout.c"
- gboolean _tmp4_;
-#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->title_visible;
-#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp4_;
-#line 3284 "CheckerboardLayout.c"
- } else {
-#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = FALSE;
-#line 3288 "CheckerboardLayout.c"
- }
-#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_) {
-#line 3292 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp5_;
-#line 464 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = self->priv->title;
-#line 464 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = checkerboard_item_text_get_height (_tmp5_) + CHECKERBOARD_ITEM_LABEL_PADDING;
-#line 3298 "CheckerboardLayout.c"
- } else {
-#line 464 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = 0;
-#line 3302 "CheckerboardLayout.c"
- }
-#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- title_height = _tmp1_;
-#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = self->priv->comment;
-#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp8_ != NULL) {
-#line 3310 "CheckerboardLayout.c"
- gboolean _tmp9_;
-#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = self->priv->comment_visible;
-#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _tmp9_;
-#line 3316 "CheckerboardLayout.c"
- } else {
-#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = FALSE;
-#line 3320 "CheckerboardLayout.c"
- }
-#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp7_) {
-#line 3324 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp10_;
-#line 466 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = self->priv->comment;
-#line 466 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = checkerboard_item_text_get_height (_tmp10_) + CHECKERBOARD_ITEM_LABEL_PADDING;
-#line 3330 "CheckerboardLayout.c"
- } else {
-#line 466 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = 0;
-#line 3334 "CheckerboardLayout.c"
- }
-#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- comment_height = _tmp6_;
-#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = self->priv->subtitle;
-#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp13_ != NULL) {
-#line 3342 "CheckerboardLayout.c"
- gboolean _tmp14_;
-#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = self->priv->subtitle_visible;
-#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _tmp14_;
-#line 3348 "CheckerboardLayout.c"
- } else {
-#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = FALSE;
-#line 3352 "CheckerboardLayout.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp12_) {
-#line 3356 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp15_;
-#line 468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = self->priv->subtitle;
-#line 468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = checkerboard_item_text_get_height (_tmp15_) + CHECKERBOARD_ITEM_LABEL_PADDING;
-#line 3362 "CheckerboardLayout.c"
- } else {
-#line 468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = 0;
-#line 3366 "CheckerboardLayout.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- subtitle_height = _tmp11_;
-#line 472 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = self->priv->pixbuf_dim;
-#line 472 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = _tmp16_.width;
-#line 472 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->requisition.width = ((CHECKERBOARD_ITEM_FRAME_WIDTH * 2) + (CHECKERBOARD_ITEM_BORDER_WIDTH * 2)) + _tmp17_;
-#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = self->priv->pixbuf_dim;
-#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _tmp18_.height;
-#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = title_height;
-#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = comment_height;
-#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = subtitle_height;
-#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->requisition.height = (((((CHECKERBOARD_ITEM_FRAME_WIDTH * 2) + (CHECKERBOARD_ITEM_BORDER_WIDTH * 2)) + _tmp19_) + _tmp20_) + _tmp21_) + _tmp22_;
-#line 485 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = old_requisition;
-#line 485 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!dimensions_approx_equals (&self->requisition, &_tmp23_, 1)) {
-#line 489 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_geometry_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 3394 "CheckerboardLayout.c"
- }
-}
-
-
-void
-checkerboard_item_get_border_dimensions (Dimensions* object_dim,
- gint border_width,
- Dimensions* result)
-{
- Dimensions dimensions = {0};
- Dimensions _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
-#line 493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (object_dim != NULL);
-#line 494 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions_init (&dimensions, 0, 0);
-#line 495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = *object_dim;
-#line 495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.width;
-#line 495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions.width = _tmp1_ + (border_width * 2);
-#line 496 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = *object_dim;
-#line 496 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.height;
-#line 496 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions.height = _tmp3_ + (border_width * 2);
-#line 497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *result = dimensions;
-#line 497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 3429 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_get_border_origin (GdkPoint* object_origin,
- gint border_width,
- GdkPoint* result)
-{
- GdkPoint origin = {0};
- GdkPoint _tmp0_;
- gint _tmp1_;
- GdkPoint _tmp2_;
- gint _tmp3_;
-#line 500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (object_origin != NULL);
-#line 501 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&origin, 0, sizeof (GdkPoint));
-#line 502 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = *object_origin;
-#line 502 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.x;
-#line 502 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- origin.x = _tmp1_ - border_width;
-#line 503 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = *object_origin;
-#line 503 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.y;
-#line 503 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- origin.y = _tmp3_ - border_width;
-#line 504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *result = origin;
-#line 504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 3463 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_real_paint_shadow (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* dimensions,
- GdkPoint* origin,
- gint radius,
- gfloat initial_alpha)
-{
- gdouble rgb_all = 0.0;
- GdkPoint _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
- GdkPoint _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- GdkPoint _tmp14_;
- gint _tmp15_;
- GdkPoint _tmp16_;
- gint _tmp17_;
- Dimensions _tmp18_;
- gint _tmp19_;
- cairo_pattern_t* lr = NULL;
- GdkPoint _tmp20_;
- gint _tmp21_;
- Dimensions _tmp22_;
- gint _tmp23_;
- GdkPoint _tmp24_;
- gint _tmp25_;
- Dimensions _tmp26_;
- gint _tmp27_;
- cairo_pattern_t* _tmp28_;
- GdkPoint _tmp29_;
- gint _tmp30_;
- GdkPoint _tmp31_;
- gint _tmp32_;
- Dimensions _tmp33_;
- gint _tmp34_;
- Dimensions _tmp35_;
- gint _tmp36_;
- cairo_pattern_t* td = NULL;
- GdkPoint _tmp37_;
- gint _tmp38_;
- Dimensions _tmp39_;
- gint _tmp40_;
- GdkPoint _tmp41_;
- gint _tmp42_;
- Dimensions _tmp43_;
- gint _tmp44_;
- cairo_pattern_t* _tmp45_;
- GdkPoint _tmp46_;
- gint _tmp47_;
- Dimensions _tmp48_;
- gint _tmp49_;
- GdkPoint _tmp50_;
- gint _tmp51_;
- Dimensions _tmp52_;
- gint _tmp53_;
-#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (ctx != NULL);
-#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (dimensions != NULL);
-#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (origin != NULL);
-#line 509 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- rgb_all = 0.0;
-#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = *origin;
-#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.x;
-#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = *dimensions;
-#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.width;
-#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = *origin;
-#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_.y;
-#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint_shadow_in_corner (self, ctx, _tmp1_ + _tmp3_, _tmp5_ + radius, rgb_all, (gfloat) radius, initial_alpha, (-0.5) * G_PI, (gdouble) 0);
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = *origin;
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _tmp6_.x;
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = *dimensions;
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = _tmp8_.width;
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = *origin;
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = _tmp10_.y;
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = *dimensions;
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = _tmp12_.height;
-#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint_shadow_in_corner (self, ctx, _tmp7_ + _tmp9_, _tmp11_ + _tmp13_, rgb_all, (gfloat) radius, initial_alpha, (gdouble) 0, 0.5 * G_PI);
-#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = *origin;
-#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _tmp14_.x;
-#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = *origin;
-#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = _tmp16_.y;
-#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = *dimensions;
-#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _tmp18_.height;
-#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint_shadow_in_corner (self, ctx, _tmp15_ + radius, _tmp17_ + _tmp19_, rgb_all, (gfloat) radius, initial_alpha, 0.5 * G_PI, G_PI);
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = *origin;
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = _tmp20_.y;
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = *dimensions;
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = _tmp22_.height;
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = *origin;
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = _tmp24_.y;
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = *dimensions;
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = _tmp26_.height;
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = cairo_pattern_create_linear ((gdouble) 0, (gdouble) (_tmp21_ + _tmp23_), (gdouble) 0, (gdouble) ((_tmp25_ + _tmp27_) + radius));
-#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- lr = _tmp28_;
-#line 524 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_pattern_add_color_stop_rgba (lr, 0.0, rgb_all, rgb_all, rgb_all, (gdouble) initial_alpha);
-#line 525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_pattern_add_color_stop_rgba (lr, 1.0, rgb_all, rgb_all, rgb_all, 0.0);
-#line 526 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source (ctx, lr);
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = *origin;
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = _tmp29_.x;
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = *origin;
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp32_ = _tmp31_.y;
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = *dimensions;
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = _tmp33_.height;
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = *dimensions;
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = _tmp35_.width;
-#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, (gdouble) (_tmp30_ + radius), (gdouble) (_tmp32_ + _tmp34_), (gdouble) (_tmp36_ - radius), (gdouble) radius);
-#line 528 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = *origin;
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = _tmp37_.x;
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp39_ = *dimensions;
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp40_ = _tmp39_.width;
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp41_ = *origin;
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp42_ = _tmp41_.x;
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp43_ = *dimensions;
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp44_ = _tmp43_.width;
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp45_ = cairo_pattern_create_linear ((gdouble) (_tmp38_ + _tmp40_), (gdouble) 0, (gdouble) ((_tmp42_ + _tmp44_) + radius), (gdouble) 0);
-#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- td = _tmp45_;
-#line 533 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_pattern_add_color_stop_rgba (td, 0.0, rgb_all, rgb_all, rgb_all, (gdouble) initial_alpha);
-#line 534 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_pattern_add_color_stop_rgba (td, 1.0, rgb_all, rgb_all, rgb_all, 0.0);
-#line 535 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source (ctx, td);
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp46_ = *origin;
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp47_ = _tmp46_.x;
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp48_ = *dimensions;
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp49_ = _tmp48_.width;
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp50_ = *origin;
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp51_ = _tmp50_.y;
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp52_ = *dimensions;
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp53_ = _tmp52_.height;
-#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, (gdouble) (_tmp47_ + _tmp49_), (gdouble) (_tmp51_ + radius), (gdouble) radius, (gdouble) (_tmp53_ - radius));
-#line 538 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _cairo_pattern_destroy0 (td);
-#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _cairo_pattern_destroy0 (lr);
-#line 3682 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_paint_shadow (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* dimensions,
- GdkPoint* origin,
- gint radius,
- gfloat initial_alpha)
-{
-#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- CHECKERBOARD_ITEM_GET_CLASS (self)->paint_shadow (self, ctx, dimensions, origin, radius, initial_alpha);
-#line 3698 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_paint_shadow_in_corner (CheckerboardItem* self,
- cairo_t* ctx,
- gint x,
- gint y,
- gdouble rgb_all,
- gfloat radius,
- gfloat initial_alpha,
- gdouble arc1,
- gdouble arc2)
-{
- cairo_pattern_t* p = NULL;
- cairo_pattern_t* _tmp0_;
-#line 541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (ctx != NULL);
-#line 543 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = cairo_pattern_create_radial ((gdouble) x, (gdouble) y, (gdouble) 0, (gdouble) x, (gdouble) y, (gdouble) radius);
-#line 543 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- p = _tmp0_;
-#line 544 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_pattern_add_color_stop_rgba (p, 0.0, rgb_all, rgb_all, rgb_all, (gdouble) initial_alpha);
-#line 545 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_pattern_add_color_stop_rgba (p, 1.0, rgb_all, rgb_all, rgb_all, (gdouble) 0);
-#line 546 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source (ctx, p);
-#line 547 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_move_to (ctx, (gdouble) x, (gdouble) y);
-#line 548 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_arc (ctx, (gdouble) x, (gdouble) y, (gdouble) radius, arc1, arc2);
-#line 549 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_close_path (ctx);
-#line 550 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _cairo_pattern_destroy0 (p);
-#line 3739 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_real_paint_border (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* object_dimensions,
- GdkPoint* object_origin,
- gint border_width)
-{
-#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (ctx != NULL);
-#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (object_dimensions != NULL);
-#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (object_origin != NULL);
-#line 555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (border_width == 1) {
-#line 3758 "CheckerboardLayout.c"
- GdkPoint _tmp0_;
- gint _tmp1_;
- GdkPoint _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_;
- gint _tmp5_;
- Dimensions _tmp6_;
- gint _tmp7_;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = *object_origin;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.x;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = *object_origin;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.y;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = *object_dimensions;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_.width;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = *object_dimensions;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _tmp6_.height;
-#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, (gdouble) (_tmp1_ - border_width), (gdouble) (_tmp3_ - border_width), (gdouble) (_tmp5_ + (border_width * 2)), (gdouble) (_tmp7_ + (border_width * 2)));
-#line 559 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 3787 "CheckerboardLayout.c"
- } else {
- Dimensions dimensions = {0};
- Dimensions _tmp8_;
- Dimensions _tmp9_ = {0};
- GdkPoint origin = {0};
- GdkPoint _tmp10_;
- GdkPoint _tmp11_ = {0};
- gdouble scale = 0.0;
- Dimensions _tmp12_;
- gint _tmp13_;
- Dimensions _tmp14_;
- gint _tmp15_;
- Dimensions _tmp16_;
- GdkPoint _tmp17_;
- gdouble _tmp18_;
-#line 561 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = *object_dimensions;
-#line 561 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_get_border_dimensions (&_tmp8_, border_width, &_tmp9_);
-#line 561 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions = _tmp9_;
-#line 562 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = *object_origin;
-#line 562 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_get_border_origin (&_tmp10_, border_width, &_tmp11_);
-#line 562 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- origin = _tmp11_;
-#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = *object_dimensions;
-#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = _tmp12_.width;
-#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = *object_dimensions;
-#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _tmp14_.height;
-#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- scale = (gdouble) MAX (_tmp13_, _tmp15_);
-#line 566 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = dimensions;
-#line 566 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = origin;
-#line 566 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = scale;
-#line 566 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- draw_rounded_corners_filled (ctx, &_tmp16_, &_tmp17_, 0.25 * _tmp18_);
-#line 3833 "CheckerboardLayout.c"
- }
-}
-
-
-void
-checkerboard_item_paint_border (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* object_dimensions,
- GdkPoint* object_origin,
- gint border_width)
-{
-#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- CHECKERBOARD_ITEM_GET_CLASS (self)->paint_border (self, ctx, object_dimensions, object_origin, border_width);
-#line 3849 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_real_paint_image (CheckerboardItem* self,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin)
-{
- GdkPoint _tmp0_;
- gint _tmp1_;
- GdkPoint _tmp2_;
- gint _tmp3_;
-#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (ctx != NULL);
-#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (origin != NULL);
-#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = *origin;
-#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.x;
-#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = *origin;
-#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.y;
-#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- paint_pixmap_with_background (ctx, pixbuf, _tmp1_, _tmp3_);
-#line 3879 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_paint_image (CheckerboardItem* self,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin)
-{
-#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- CHECKERBOARD_ITEM_GET_CLASS (self)->paint_image (self, ctx, pixbuf, origin);
-#line 3893 "CheckerboardLayout.c"
-}
-
-
-static gint
-checkerboard_item_get_selection_border_width (CheckerboardItem* self,
- gint scale)
-{
- gint result = 0;
- gint _tmp0_ = 0;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 574 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0);
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = thumbnail_get_MIN_SCALE ();
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_;
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = thumbnail_get_MAX_SCALE ();
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_;
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (scale <= ((_tmp2_ + _tmp4_) / 3)) {
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = 2;
-#line 3921 "CheckerboardLayout.c"
- } else {
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = 3;
-#line 3925 "CheckerboardLayout.c"
- }
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_ + CHECKERBOARD_ITEM_BORDER_WIDTH;
-#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3931 "CheckerboardLayout.c"
-}
-
-
-static GdkPixbuf*
-checkerboard_item_real_get_top_left_trinket (CheckerboardItem* self,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 580 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 580 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3944 "CheckerboardLayout.c"
-}
-
-
-GdkPixbuf*
-checkerboard_item_get_top_left_trinket (CheckerboardItem* self,
- gint scale)
-{
-#line 579 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 579 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return CHECKERBOARD_ITEM_GET_CLASS (self)->get_top_left_trinket (self, scale);
-#line 3956 "CheckerboardLayout.c"
-}
-
-
-static GdkPixbuf*
-checkerboard_item_real_get_top_right_trinket (CheckerboardItem* self,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 584 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 584 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3969 "CheckerboardLayout.c"
-}
-
-
-GdkPixbuf*
-checkerboard_item_get_top_right_trinket (CheckerboardItem* self,
- gint scale)
-{
-#line 583 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 583 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return CHECKERBOARD_ITEM_GET_CLASS (self)->get_top_right_trinket (self, scale);
-#line 3981 "CheckerboardLayout.c"
-}
-
-
-static GdkPixbuf*
-checkerboard_item_real_get_bottom_left_trinket (CheckerboardItem* self,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 588 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 588 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 3994 "CheckerboardLayout.c"
-}
-
-
-GdkPixbuf*
-checkerboard_item_get_bottom_left_trinket (CheckerboardItem* self,
- gint scale)
-{
-#line 587 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 587 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return CHECKERBOARD_ITEM_GET_CLASS (self)->get_bottom_left_trinket (self, scale);
-#line 4006 "CheckerboardLayout.c"
-}
-
-
-static GdkPixbuf*
-checkerboard_item_real_get_bottom_right_trinket (CheckerboardItem* self,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 592 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 592 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 4019 "CheckerboardLayout.c"
-}
-
-
-GdkPixbuf*
-checkerboard_item_get_bottom_right_trinket (CheckerboardItem* self,
- gint scale)
-{
-#line 591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL);
-#line 591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return CHECKERBOARD_ITEM_GET_CLASS (self)->get_bottom_right_trinket (self, scale);
-#line 4031 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_paint (CheckerboardItem* self,
- cairo_t* ctx,
- GdkRGBA* bg_color,
- GdkRGBA* selected_color,
- GdkRGBA* text_color,
- GdkRGBA* border_color)
-{
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkPoint pixbuf_origin = {0};
- GdkRGBA _tmp4_;
- gdouble _tmp5_;
- GdkRGBA _tmp6_;
- gdouble _tmp7_;
- GdkRGBA _tmp8_;
- gdouble _tmp9_;
- GdkRGBA _tmp10_;
- gdouble _tmp11_;
- gboolean _tmp18_;
- GdkPixbuf* _tmp41_;
- GdkRGBA _tmp52_;
- gdouble _tmp53_;
- GdkRGBA _tmp54_;
- gdouble _tmp55_;
- GdkRGBA _tmp56_;
- gdouble _tmp57_;
- GdkRGBA _tmp58_;
- gdouble _tmp59_;
- gint text_y = 0;
- Dimensions _tmp60_;
- gint _tmp61_;
- gboolean _tmp62_ = FALSE;
- CheckerboardItemText* _tmp63_;
- gboolean _tmp86_ = FALSE;
- CheckerboardItemText* _tmp87_;
- gboolean _tmp110_ = FALSE;
- CheckerboardItemText* _tmp111_;
- GdkRGBA _tmp132_;
- gdouble _tmp133_;
- GdkRGBA _tmp134_;
- gdouble _tmp135_;
- GdkRGBA _tmp136_;
- gdouble _tmp137_;
- GdkRGBA _tmp138_;
- gdouble _tmp139_;
- GdkPixbuf* trinket = NULL;
- GdkPixbuf* _tmp140_;
- GdkPixbuf* _tmp141_;
- GdkPixbuf* _tmp156_;
- GdkPixbuf* _tmp157_;
- GdkPixbuf* _tmp169_;
- GdkPixbuf* _tmp170_;
- GdkPixbuf* _tmp187_;
- GdkPixbuf* _tmp188_;
-#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (ctx != NULL);
-#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (bg_color != NULL);
-#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (selected_color != NULL);
-#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (text_color != NULL);
-#line 597 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_save (ctx);
-#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->allocation;
-#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.x;
-#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->allocation;
-#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.y;
-#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_translate (ctx, (gdouble) (_tmp1_ + CHECKERBOARD_ITEM_FRAME_WIDTH), (gdouble) (_tmp3_ + CHECKERBOARD_ITEM_FRAME_WIDTH));
-#line 601 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&pixbuf_origin, 0, sizeof (GdkPoint));
-#line 602 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pixbuf_origin.x = CHECKERBOARD_ITEM_BORDER_WIDTH;
-#line 603 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pixbuf_origin.y = CHECKERBOARD_ITEM_BORDER_WIDTH;
-#line 605 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_line_width (ctx, (gdouble) CHECKERBOARD_ITEM_FRAME_WIDTH);
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = *selected_color;
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_.red;
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = *selected_color;
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _tmp6_.green;
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = *selected_color;
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = _tmp8_.blue;
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = *selected_color;
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = _tmp10_.alpha;
-#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgba (ctx, _tmp5_, _tmp7_, _tmp9_, _tmp11_);
-#line 610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (border_color != NULL) {
-#line 4142 "CheckerboardLayout.c"
- Dimensions shadow_dim = {0};
- Dimensions _tmp12_;
- gint _tmp13_;
- Dimensions _tmp14_;
- gint _tmp15_;
- Dimensions _tmp16_;
- GdkPoint _tmp17_;
-#line 611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_save (ctx);
-#line 612 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions_init (&shadow_dim, 0, 0);
-#line 613 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = self->priv->pixbuf_dim;
-#line 613 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = _tmp12_.width;
-#line 613 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- shadow_dim.width = _tmp13_ + CHECKERBOARD_ITEM_BORDER_WIDTH;
-#line 614 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = self->priv->pixbuf_dim;
-#line 614 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _tmp14_.height;
-#line 614 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- shadow_dim.height = _tmp15_ + CHECKERBOARD_ITEM_BORDER_WIDTH;
-#line 615 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = shadow_dim;
-#line 615 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = pixbuf_origin;
-#line 615 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint_shadow (self, ctx, &_tmp16_, &_tmp17_, CHECKERBOARD_ITEM_SHADOW_RADIUS, CHECKERBOARD_ITEM_SHADOW_INITIAL_ALPHA);
-#line 616 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_restore (ctx);
-#line 4174 "CheckerboardLayout.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = self->priv->is_cursor;
-#line 620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp18_) {
-#line 4180 "CheckerboardLayout.c"
- gdouble _tmp19_;
- gdouble _tmp20_;
- gdouble _tmp21_;
- gdouble _tmp22_;
- Dimensions _tmp23_;
- GdkPoint _tmp24_;
- Dimensions _tmp25_;
- gint _tmp26_;
- Dimensions _tmp27_;
- gint _tmp28_;
-#line 621 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_save (ctx);
-#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = (*border_color).red;
-#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = (*border_color).green;
-#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = (*border_color).blue;
-#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = (*border_color).alpha;
-#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgba (ctx, _tmp19_, _tmp20_, _tmp21_, _tmp22_);
-#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = self->priv->pixbuf_dim;
-#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = pixbuf_origin;
-#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = self->priv->pixbuf_dim;
-#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = _tmp25_.width;
-#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = self->priv->pixbuf_dim;
-#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = _tmp27_.height;
-#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint_border (self, ctx, &_tmp23_, &_tmp24_, checkerboard_item_get_selection_border_width (self, MAX (_tmp26_, _tmp28_)));
-#line 626 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_restore (ctx);
-#line 4219 "CheckerboardLayout.c"
- }
-#line 630 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView))) {
-#line 4223 "CheckerboardLayout.c"
- Dimensions _tmp29_;
- GdkPoint _tmp30_;
- Dimensions _tmp31_;
- gint _tmp32_;
- Dimensions _tmp33_;
- gint _tmp34_;
-#line 632 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_save (ctx);
-#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = self->priv->pixbuf_dim;
-#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = pixbuf_origin;
-#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = self->priv->pixbuf_dim;
-#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp32_ = _tmp31_.width;
-#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = self->priv->pixbuf_dim;
-#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = _tmp33_.height;
-#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint_border (self, ctx, &_tmp29_, &_tmp30_, checkerboard_item_get_selection_border_width (self, MAX (_tmp32_, _tmp34_)));
-#line 635 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_restore (ctx);
-#line 4248 "CheckerboardLayout.c"
- }
-#line 639 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (border_color != NULL) {
-#line 4252 "CheckerboardLayout.c"
- gdouble _tmp35_;
- gdouble _tmp36_;
- gdouble _tmp37_;
- gdouble _tmp38_;
- Dimensions _tmp39_;
- GdkPoint _tmp40_;
-#line 640 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_save (ctx);
-#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = (*border_color).red;
-#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = (*border_color).green;
-#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = (*border_color).blue;
-#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = (*border_color).alpha;
-#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgba (ctx, _tmp35_, _tmp36_, _tmp37_, _tmp38_);
-#line 643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp39_ = self->priv->pixbuf_dim;
-#line 643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp40_ = pixbuf_origin;
-#line 643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint_border (self, ctx, &_tmp39_, &_tmp40_, CHECKERBOARD_ITEM_BORDER_WIDTH);
-#line 644 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_restore (ctx);
-#line 4279 "CheckerboardLayout.c"
- }
-#line 647 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp41_ = self->priv->display_pixbuf;
-#line 647 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp41_ != NULL) {
-#line 4285 "CheckerboardLayout.c"
- GdkRGBA _tmp42_;
- gdouble _tmp43_;
- GdkRGBA _tmp44_;
- gdouble _tmp45_;
- GdkRGBA _tmp46_;
- gdouble _tmp47_;
- GdkRGBA _tmp48_;
- gdouble _tmp49_;
- GdkPixbuf* _tmp50_;
- GdkPoint _tmp51_;
-#line 648 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_save (ctx);
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp42_ = *bg_color;
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp43_ = _tmp42_.red;
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp44_ = *bg_color;
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp45_ = _tmp44_.green;
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp46_ = *bg_color;
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp47_ = _tmp46_.blue;
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp48_ = *bg_color;
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp49_ = _tmp48_.alpha;
-#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgba (ctx, _tmp43_, _tmp45_, _tmp47_, _tmp49_);
-#line 650 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp50_ = self->priv->display_pixbuf;
-#line 650 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp51_ = pixbuf_origin;
-#line 650 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint_image (self, ctx, _tmp50_, &_tmp51_);
-#line 651 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_restore (ctx);
-#line 4324 "CheckerboardLayout.c"
- }
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp52_ = *text_color;
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp53_ = _tmp52_.red;
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp54_ = *text_color;
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp55_ = _tmp54_.green;
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp56_ = *text_color;
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp57_ = _tmp56_.blue;
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp58_ = *text_color;
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp59_ = _tmp58_.alpha;
-#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgba (ctx, _tmp53_, _tmp55_, _tmp57_, _tmp59_);
-#line 657 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp60_ = self->priv->pixbuf_dim;
-#line 657 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp61_ = _tmp60_.height;
-#line 657 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- text_y = (_tmp61_ + CHECKERBOARD_ITEM_FRAME_WIDTH) + CHECKERBOARD_ITEM_LABEL_PADDING;
-#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp63_ = self->priv->title;
-#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp63_ != NULL) {
-#line 4354 "CheckerboardLayout.c"
- gboolean _tmp64_;
-#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp64_ = self->priv->title_visible;
-#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp62_ = _tmp64_;
-#line 4360 "CheckerboardLayout.c"
- } else {
-#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp62_ = FALSE;
-#line 4364 "CheckerboardLayout.c"
- }
-#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp62_) {
-#line 4368 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp65_;
- CheckerboardItemText* _tmp66_;
- gint _tmp67_;
- CheckerboardItemText* _tmp68_;
- Dimensions _tmp69_;
- gint _tmp70_;
- CheckerboardItemText* _tmp71_;
- CheckerboardItemText* _tmp72_;
- CheckerboardItemText* _tmp73_;
- GdkRectangle _tmp74_;
- gint _tmp75_;
- CheckerboardItemText* _tmp76_;
- GdkRectangle _tmp77_;
- gint _tmp78_;
- CheckerboardItemText* _tmp79_;
- Dimensions _tmp80_;
- gint _tmp81_;
- PangoLayout* _tmp82_;
- PangoLayout* _tmp83_;
- gint _tmp84_;
- CheckerboardItemText* _tmp85_;
-#line 661 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp65_ = self->priv->title;
-#line 661 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp65_->allocation.x = 0;
-#line 662 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp66_ = self->priv->title;
-#line 662 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp67_ = text_y;
-#line 662 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp66_->allocation.y = _tmp67_;
-#line 663 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp68_ = self->priv->title;
-#line 663 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp69_ = self->priv->pixbuf_dim;
-#line 663 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp70_ = _tmp69_.width;
-#line 663 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp68_->allocation.width = _tmp70_;
-#line 664 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp71_ = self->priv->title;
-#line 664 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp72_ = self->priv->title;
-#line 664 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp71_->allocation.height = checkerboard_item_text_get_height (_tmp72_);
-#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp73_ = self->priv->title;
-#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp74_ = _tmp73_->allocation;
-#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp75_ = _tmp74_.x;
-#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp76_ = self->priv->title;
-#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp77_ = _tmp76_->allocation;
-#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp78_ = _tmp77_.y;
-#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_move_to (ctx, (gdouble) _tmp75_, (gdouble) _tmp78_);
-#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp79_ = self->priv->title;
-#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp80_ = self->priv->pixbuf_dim;
-#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp81_ = _tmp80_.width;
-#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp82_ = checkerboard_item_text_get_pango_layout (_tmp79_, _tmp81_);
-#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp83_ = _tmp82_;
-#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_cairo_show_layout (ctx, _tmp83_);
-#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp83_);
-#line 669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp84_ = text_y;
-#line 669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp85_ = self->priv->title;
-#line 669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- text_y = _tmp84_ + (checkerboard_item_text_get_height (_tmp85_) + CHECKERBOARD_ITEM_LABEL_PADDING);
-#line 4448 "CheckerboardLayout.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp87_ = self->priv->comment;
-#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp87_ != NULL) {
-#line 4454 "CheckerboardLayout.c"
- gboolean _tmp88_;
-#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp88_ = self->priv->comment_visible;
-#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp86_ = _tmp88_;
-#line 4460 "CheckerboardLayout.c"
- } else {
-#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp86_ = FALSE;
-#line 4464 "CheckerboardLayout.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp86_) {
-#line 4468 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp89_;
- CheckerboardItemText* _tmp90_;
- gint _tmp91_;
- CheckerboardItemText* _tmp92_;
- Dimensions _tmp93_;
- gint _tmp94_;
- CheckerboardItemText* _tmp95_;
- CheckerboardItemText* _tmp96_;
- CheckerboardItemText* _tmp97_;
- GdkRectangle _tmp98_;
- gint _tmp99_;
- CheckerboardItemText* _tmp100_;
- GdkRectangle _tmp101_;
- gint _tmp102_;
- CheckerboardItemText* _tmp103_;
- Dimensions _tmp104_;
- gint _tmp105_;
- PangoLayout* _tmp106_;
- PangoLayout* _tmp107_;
- gint _tmp108_;
- CheckerboardItemText* _tmp109_;
-#line 673 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp89_ = self->priv->comment;
-#line 673 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp89_->allocation.x = 0;
-#line 674 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp90_ = self->priv->comment;
-#line 674 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp91_ = text_y;
-#line 674 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp90_->allocation.y = _tmp91_;
-#line 675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp92_ = self->priv->comment;
-#line 675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp93_ = self->priv->pixbuf_dim;
-#line 675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp94_ = _tmp93_.width;
-#line 675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp92_->allocation.width = _tmp94_;
-#line 676 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp95_ = self->priv->comment;
-#line 676 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp96_ = self->priv->comment;
-#line 676 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp95_->allocation.height = checkerboard_item_text_get_height (_tmp96_);
-#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp97_ = self->priv->comment;
-#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp98_ = _tmp97_->allocation;
-#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp99_ = _tmp98_.x;
-#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp100_ = self->priv->comment;
-#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp101_ = _tmp100_->allocation;
-#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp102_ = _tmp101_.y;
-#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_move_to (ctx, (gdouble) _tmp99_, (gdouble) _tmp102_);
-#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp103_ = self->priv->comment;
-#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp104_ = self->priv->pixbuf_dim;
-#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp105_ = _tmp104_.width;
-#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp106_ = checkerboard_item_text_get_pango_layout (_tmp103_, _tmp105_);
-#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp107_ = _tmp106_;
-#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_cairo_show_layout (ctx, _tmp107_);
-#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp107_);
-#line 681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp108_ = text_y;
-#line 681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp109_ = self->priv->comment;
-#line 681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- text_y = _tmp108_ + (checkerboard_item_text_get_height (_tmp109_) + CHECKERBOARD_ITEM_LABEL_PADDING);
-#line 4548 "CheckerboardLayout.c"
- }
-#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp111_ = self->priv->subtitle;
-#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp111_ != NULL) {
-#line 4554 "CheckerboardLayout.c"
- gboolean _tmp112_;
-#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp112_ = self->priv->subtitle_visible;
-#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp110_ = _tmp112_;
-#line 4560 "CheckerboardLayout.c"
- } else {
-#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp110_ = FALSE;
-#line 4564 "CheckerboardLayout.c"
- }
-#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp110_) {
-#line 4568 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp113_;
- CheckerboardItemText* _tmp114_;
- gint _tmp115_;
- CheckerboardItemText* _tmp116_;
- Dimensions _tmp117_;
- gint _tmp118_;
- CheckerboardItemText* _tmp119_;
- CheckerboardItemText* _tmp120_;
- CheckerboardItemText* _tmp121_;
- GdkRectangle _tmp122_;
- gint _tmp123_;
- CheckerboardItemText* _tmp124_;
- GdkRectangle _tmp125_;
- gint _tmp126_;
- CheckerboardItemText* _tmp127_;
- Dimensions _tmp128_;
- gint _tmp129_;
- PangoLayout* _tmp130_;
- PangoLayout* _tmp131_;
-#line 685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp113_ = self->priv->subtitle;
-#line 685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp113_->allocation.x = 0;
-#line 686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp114_ = self->priv->subtitle;
-#line 686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp115_ = text_y;
-#line 686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp114_->allocation.y = _tmp115_;
-#line 687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp116_ = self->priv->subtitle;
-#line 687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp117_ = self->priv->pixbuf_dim;
-#line 687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp118_ = _tmp117_.width;
-#line 687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp116_->allocation.width = _tmp118_;
-#line 688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp119_ = self->priv->subtitle;
-#line 688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp120_ = self->priv->subtitle;
-#line 688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp119_->allocation.height = checkerboard_item_text_get_height (_tmp120_);
-#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp121_ = self->priv->subtitle;
-#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp122_ = _tmp121_->allocation;
-#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp123_ = _tmp122_.x;
-#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp124_ = self->priv->subtitle;
-#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp125_ = _tmp124_->allocation;
-#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp126_ = _tmp125_.y;
-#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_move_to (ctx, (gdouble) _tmp123_, (gdouble) _tmp126_);
-#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp127_ = self->priv->subtitle;
-#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp128_ = self->priv->pixbuf_dim;
-#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp129_ = _tmp128_.width;
-#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp130_ = checkerboard_item_text_get_pango_layout (_tmp127_, _tmp129_);
-#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp131_ = _tmp130_;
-#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_cairo_show_layout (ctx, _tmp131_);
-#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp131_);
-#line 4640 "CheckerboardLayout.c"
- }
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp132_ = *selected_color;
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp133_ = _tmp132_.red;
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp134_ = *selected_color;
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp135_ = _tmp134_.green;
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp136_ = *selected_color;
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp137_ = _tmp136_.blue;
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp138_ = *selected_color;
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp139_ = _tmp138_.alpha;
-#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgba (ctx, _tmp133_, _tmp135_, _tmp137_, _tmp139_);
-#line 700 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp140_ = checkerboard_item_get_bottom_left_trinket (self, CHECKERBOARD_ITEM_TRINKET_SCALE);
-#line 700 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- trinket = _tmp140_;
-#line 701 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp141_ = trinket;
-#line 701 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp141_ != NULL) {
-#line 4668 "CheckerboardLayout.c"
- gint x = 0;
- GdkPoint _tmp142_;
- gint _tmp143_;
- gint y = 0;
- GdkPoint _tmp144_;
- gint _tmp145_;
- Dimensions _tmp146_;
- gint _tmp147_;
- GdkPixbuf* _tmp148_;
- GdkPixbuf* _tmp149_;
- gint _tmp150_;
- gint _tmp151_;
- gint _tmp152_;
- gint _tmp153_;
- GdkPixbuf* _tmp154_;
- GdkPixbuf* _tmp155_;
-#line 702 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp142_ = pixbuf_origin;
-#line 702 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp143_ = _tmp142_.x;
-#line 702 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = (_tmp143_ + CHECKERBOARD_ITEM_TRINKET_PADDING) + checkerboard_item_get_horizontal_trinket_offset (self);
-#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp144_ = pixbuf_origin;
-#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp145_ = _tmp144_.y;
-#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp146_ = self->priv->pixbuf_dim;
-#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp147_ = _tmp146_.height;
-#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp148_ = trinket;
-#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = ((_tmp145_ + _tmp147_) - gdk_pixbuf_get_height (_tmp148_)) - CHECKERBOARD_ITEM_TRINKET_PADDING;
-#line 705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp149_ = trinket;
-#line 705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp150_ = x;
-#line 705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp151_ = y;
-#line 705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp149_, (gdouble) _tmp150_, (gdouble) _tmp151_);
-#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp152_ = x;
-#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp153_ = y;
-#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp154_ = trinket;
-#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp155_ = trinket;
-#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, (gdouble) _tmp152_, (gdouble) _tmp153_, (gdouble) gdk_pixbuf_get_width (_tmp154_), (gdouble) gdk_pixbuf_get_height (_tmp155_));
-#line 707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 4723 "CheckerboardLayout.c"
- }
-#line 710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp156_ = checkerboard_item_get_top_left_trinket (self, CHECKERBOARD_ITEM_TRINKET_SCALE);
-#line 710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (trinket);
-#line 710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- trinket = _tmp156_;
-#line 711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp157_ = trinket;
-#line 711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp157_ != NULL) {
-#line 4735 "CheckerboardLayout.c"
- gint x = 0;
- GdkPoint _tmp158_;
- gint _tmp159_;
- gint y = 0;
- GdkPoint _tmp160_;
- gint _tmp161_;
- GdkPixbuf* _tmp162_;
- gint _tmp163_;
- gint _tmp164_;
- gint _tmp165_;
- gint _tmp166_;
- GdkPixbuf* _tmp167_;
- GdkPixbuf* _tmp168_;
-#line 712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp158_ = pixbuf_origin;
-#line 712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp159_ = _tmp158_.x;
-#line 712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = (_tmp159_ + CHECKERBOARD_ITEM_TRINKET_PADDING) + checkerboard_item_get_horizontal_trinket_offset (self);
-#line 713 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp160_ = pixbuf_origin;
-#line 713 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp161_ = _tmp160_.y;
-#line 713 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = _tmp161_ + CHECKERBOARD_ITEM_TRINKET_PADDING;
-#line 714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp162_ = trinket;
-#line 714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp163_ = x;
-#line 714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp164_ = y;
-#line 714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp162_, (gdouble) _tmp163_, (gdouble) _tmp164_);
-#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp165_ = x;
-#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp166_ = y;
-#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp167_ = trinket;
-#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp168_ = trinket;
-#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, (gdouble) _tmp165_, (gdouble) _tmp166_, (gdouble) gdk_pixbuf_get_width (_tmp167_), (gdouble) gdk_pixbuf_get_height (_tmp168_));
-#line 716 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 4781 "CheckerboardLayout.c"
- }
-#line 719 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp169_ = checkerboard_item_get_top_right_trinket (self, CHECKERBOARD_ITEM_TRINKET_SCALE);
-#line 719 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (trinket);
-#line 719 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- trinket = _tmp169_;
-#line 720 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp170_ = trinket;
-#line 720 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp170_ != NULL) {
-#line 4793 "CheckerboardLayout.c"
- gint x = 0;
- GdkPoint _tmp171_;
- gint _tmp172_;
- Dimensions _tmp173_;
- gint _tmp174_;
- GdkPixbuf* _tmp175_;
- gint _tmp176_;
- gint _tmp177_;
- gint y = 0;
- GdkPoint _tmp178_;
- gint _tmp179_;
- GdkPixbuf* _tmp180_;
- gint _tmp181_;
- gint _tmp182_;
- gint _tmp183_;
- gint _tmp184_;
- GdkPixbuf* _tmp185_;
- GdkPixbuf* _tmp186_;
-#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp171_ = pixbuf_origin;
-#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp172_ = _tmp171_.x;
-#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp173_ = self->priv->pixbuf_dim;
-#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp174_ = _tmp173_.width;
-#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp175_ = trinket;
-#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp176_ = gdk_pixbuf_get_width (_tmp175_);
-#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp177_ = _tmp176_;
-#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = (((_tmp172_ + _tmp174_) - _tmp177_) - checkerboard_item_get_horizontal_trinket_offset (self)) - CHECKERBOARD_ITEM_TRINKET_PADDING;
-#line 723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp178_ = pixbuf_origin;
-#line 723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp179_ = _tmp178_.y;
-#line 723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = _tmp179_ + CHECKERBOARD_ITEM_TRINKET_PADDING;
-#line 724 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp180_ = trinket;
-#line 724 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp181_ = x;
-#line 724 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp182_ = y;
-#line 724 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp180_, (gdouble) _tmp181_, (gdouble) _tmp182_);
-#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp183_ = x;
-#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp184_ = y;
-#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp185_ = trinket;
-#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp186_ = trinket;
-#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, (gdouble) _tmp183_, (gdouble) _tmp184_, (gdouble) gdk_pixbuf_get_width (_tmp185_), (gdouble) gdk_pixbuf_get_height (_tmp186_));
-#line 726 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 4854 "CheckerboardLayout.c"
- }
-#line 729 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp187_ = checkerboard_item_get_bottom_right_trinket (self, CHECKERBOARD_ITEM_TRINKET_SCALE);
-#line 729 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (trinket);
-#line 729 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- trinket = _tmp187_;
-#line 730 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp188_ = trinket;
-#line 730 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp188_ != NULL) {
-#line 4866 "CheckerboardLayout.c"
- gint x = 0;
- GdkPoint _tmp189_;
- gint _tmp190_;
- Dimensions _tmp191_;
- gint _tmp192_;
- GdkPixbuf* _tmp193_;
- gint _tmp194_;
- gint _tmp195_;
- gint y = 0;
- GdkPoint _tmp196_;
- gint _tmp197_;
- Dimensions _tmp198_;
- gint _tmp199_;
- GdkPixbuf* _tmp200_;
- gint _tmp201_;
- gint _tmp202_;
- GdkPixbuf* _tmp203_;
- gint _tmp204_;
- gint _tmp205_;
- gint _tmp206_;
- gint _tmp207_;
- GdkPixbuf* _tmp208_;
- GdkPixbuf* _tmp209_;
-#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp189_ = pixbuf_origin;
-#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp190_ = _tmp189_.x;
-#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp191_ = self->priv->pixbuf_dim;
-#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp192_ = _tmp191_.width;
-#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp193_ = trinket;
-#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp194_ = gdk_pixbuf_get_width (_tmp193_);
-#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp195_ = _tmp194_;
-#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = (((_tmp190_ + _tmp192_) - _tmp195_) - checkerboard_item_get_horizontal_trinket_offset (self)) - CHECKERBOARD_ITEM_TRINKET_PADDING;
-#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp196_ = pixbuf_origin;
-#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp197_ = _tmp196_.y;
-#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp198_ = self->priv->pixbuf_dim;
-#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp199_ = _tmp198_.height;
-#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp200_ = trinket;
-#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp201_ = gdk_pixbuf_get_height (_tmp200_);
-#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp202_ = _tmp201_;
-#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = ((_tmp197_ + _tmp199_) - _tmp202_) - CHECKERBOARD_ITEM_TRINKET_PADDING;
-#line 735 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp203_ = trinket;
-#line 735 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp204_ = x;
-#line 735 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp205_ = y;
-#line 735 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp203_, (gdouble) _tmp204_, (gdouble) _tmp205_);
-#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp206_ = x;
-#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp207_ = y;
-#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp208_ = trinket;
-#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp209_ = trinket;
-#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, (gdouble) _tmp206_, (gdouble) _tmp207_, (gdouble) gdk_pixbuf_get_width (_tmp208_), (gdouble) gdk_pixbuf_get_height (_tmp209_));
-#line 737 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 4942 "CheckerboardLayout.c"
- }
-#line 739 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_restore (ctx);
-#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (trinket);
-#line 4948 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_set_horizontal_trinket_offset (CheckerboardItem* self,
- gint horizontal_trinket_offset)
-{
-#line 742 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 743 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (horizontal_trinket_offset >= 0, "horizontal_trinket_offset >= 0");
-#line 744 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->horizontal_trinket_offset = horizontal_trinket_offset;
-#line 4962 "CheckerboardLayout.c"
-}
-
-
-gint
-checkerboard_item_get_horizontal_trinket_offset (CheckerboardItem* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 747 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0);
-#line 748 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->horizontal_trinket_offset;
-#line 748 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 748 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 4979 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_set_grid_coordinates (CheckerboardItem* self,
- gint col,
- gint row)
-{
-#line 751 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->col = col;
-#line 753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->row = row;
-#line 4994 "CheckerboardLayout.c"
-}
-
-
-gint
-checkerboard_item_get_column (CheckerboardItem* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 756 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0);
-#line 757 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->col;
-#line 757 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 757 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5011 "CheckerboardLayout.c"
-}
-
-
-gint
-checkerboard_item_get_row (CheckerboardItem* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 760 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0);
-#line 761 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->row;
-#line 761 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 761 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5028 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_brighten (CheckerboardItem* self)
-{
- gboolean _tmp0_ = FALSE;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
- GdkPixbuf* _tmp7_;
-#line 764 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->brightened;
-#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = TRUE;
-#line 5050 "CheckerboardLayout.c"
- } else {
- GdkPixbuf* _tmp2_;
-#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->pixbuf;
-#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp2_ == NULL;
-#line 5057 "CheckerboardLayout.c"
- }
-#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 767 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 5063 "CheckerboardLayout.c"
- }
-#line 770 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->pixbuf;
-#line 770 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = gdk_pixbuf_copy (_tmp3_);
-#line 770 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->brightened);
-#line 770 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->brightened = _tmp4_;
-#line 771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = self->priv->brightened;
-#line 771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- shift_colors (_tmp5_, CHECKERBOARD_ITEM_BRIGHTEN_SHIFT, CHECKERBOARD_ITEM_BRIGHTEN_SHIFT, CHECKERBOARD_ITEM_BRIGHTEN_SHIFT, 0);
-#line 773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->brightened;
-#line 773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->display_pixbuf);
-#line 773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->display_pixbuf = _tmp7_;
-#line 775 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 5087 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_item_unbrighten (CheckerboardItem* self)
-{
- gboolean _tmp0_ = FALSE;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->brightened;
-#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ == NULL) {
-#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = TRUE;
-#line 5106 "CheckerboardLayout.c"
- } else {
- GdkPixbuf* _tmp2_;
-#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->pixbuf;
-#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp2_ == NULL;
-#line 5113 "CheckerboardLayout.c"
- }
-#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 781 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 5119 "CheckerboardLayout.c"
- }
-#line 783 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->brightened);
-#line 783 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->brightened = NULL;
-#line 786 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->pixbuf;
-#line 786 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 786 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->display_pixbuf);
-#line 786 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->display_pixbuf = _tmp4_;
-#line 788 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 5135 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_real_visibility_changed (DataView* base,
- gboolean visible)
-{
- CheckerboardItem * self;
-#line 791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 793 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!visible) {
-#line 794 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_unbrighten (self);
-#line 5150 "CheckerboardLayout.c"
- }
-#line 796 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- DATA_VIEW_CLASS (checkerboard_item_parent_class)->visibility_changed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_VIEW, ThumbnailView), TYPE_DATA_VIEW, DataView), visible);
-#line 5154 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-checkerboard_item_query_tooltip_on_text (CheckerboardItem* self,
- CheckerboardItemText* text,
- GtkTooltip* tooltip)
-{
- gboolean result = FALSE;
- PangoLayout* _tmp0_;
- PangoLayout* _tmp1_;
- gboolean _tmp2_;
-#line 799 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE);
-#line 799 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (text), FALSE);
-#line 799 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (GTK_IS_TOOLTIP (tooltip), FALSE);
-#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = checkerboard_item_text_get_pango_layout (text, 0);
-#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_;
-#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = !pango_layout_is_ellipsized (_tmp1_);
-#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp1_);
-#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_) {
-#line 801 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = FALSE;
-#line 801 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5187 "CheckerboardLayout.c"
- }
-#line 803 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (checkerboard_item_text_is_marked_up (text)) {
-#line 5191 "CheckerboardLayout.c"
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_item_text_get_text (text);
-#line 804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_;
-#line 804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_tooltip_set_markup (tooltip, _tmp4_);
-#line 804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp4_);
-#line 5202 "CheckerboardLayout.c"
- } else {
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 806 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = checkerboard_item_text_get_text (text);
-#line 806 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = _tmp5_;
-#line 806 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_tooltip_set_text (tooltip, _tmp6_);
-#line 806 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp6_);
-#line 5214 "CheckerboardLayout.c"
- }
-#line 808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = TRUE;
-#line 808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5220 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_item_query_tooltip (CheckerboardItem* self,
- gint x,
- gint y,
- GtkTooltip* tooltip)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- CheckerboardItemText* _tmp2_;
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_ = FALSE;
- CheckerboardItemText* _tmp9_;
- gboolean _tmp14_ = FALSE;
- gboolean _tmp15_ = FALSE;
- CheckerboardItemText* _tmp16_;
-#line 811 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE);
-#line 811 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (GTK_IS_TOOLTIP (tooltip), FALSE);
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->title;
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_ != NULL) {
-#line 5248 "CheckerboardLayout.c"
- gboolean _tmp3_;
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->title_visible;
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp3_;
-#line 5254 "CheckerboardLayout.c"
- } else {
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = FALSE;
-#line 5258 "CheckerboardLayout.c"
- }
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_) {
-#line 5262 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp4_;
- GdkRectangle _tmp5_;
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->title;
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_->allocation;
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = coord_in_rectangle (x, y, &_tmp5_);
-#line 5271 "CheckerboardLayout.c"
- } else {
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 5275 "CheckerboardLayout.c"
- }
-#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 5279 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp6_;
-#line 813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->title;
-#line 813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = checkerboard_item_query_tooltip_on_text (self, _tmp6_, tooltip);
-#line 813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5287 "CheckerboardLayout.c"
- }
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = self->priv->comment;
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp9_ != NULL) {
-#line 5293 "CheckerboardLayout.c"
- gboolean _tmp10_;
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = self->priv->comment_visible;
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _tmp10_;
-#line 5299 "CheckerboardLayout.c"
- } else {
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = FALSE;
-#line 5303 "CheckerboardLayout.c"
- }
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp8_) {
-#line 5307 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp11_;
- GdkRectangle _tmp12_;
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = self->priv->comment;
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _tmp11_->allocation;
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = coord_in_rectangle (x, y, &_tmp12_);
-#line 5316 "CheckerboardLayout.c"
- } else {
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = FALSE;
-#line 5320 "CheckerboardLayout.c"
- }
-#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp7_) {
-#line 5324 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp13_;
-#line 816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = self->priv->comment;
-#line 816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = checkerboard_item_query_tooltip_on_text (self, _tmp13_, tooltip);
-#line 816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5332 "CheckerboardLayout.c"
- }
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = self->priv->subtitle;
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp16_ != NULL) {
-#line 5338 "CheckerboardLayout.c"
- gboolean _tmp17_;
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = self->priv->subtitle_visible;
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _tmp17_;
-#line 5344 "CheckerboardLayout.c"
- } else {
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = FALSE;
-#line 5348 "CheckerboardLayout.c"
- }
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp15_) {
-#line 5352 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp18_;
- GdkRectangle _tmp19_;
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = self->priv->subtitle;
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _tmp18_->allocation;
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = coord_in_rectangle (x, y, &_tmp19_);
-#line 5361 "CheckerboardLayout.c"
- } else {
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = FALSE;
-#line 5365 "CheckerboardLayout.c"
- }
-#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp14_) {
-#line 5369 "CheckerboardLayout.c"
- CheckerboardItemText* _tmp20_;
-#line 819 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = self->priv->subtitle;
-#line 819 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = checkerboard_item_query_tooltip_on_text (self, _tmp20_, tooltip);
-#line 819 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5377 "CheckerboardLayout.c"
- }
-#line 821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = FALSE;
-#line 821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5383 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_item_get_has_tags (CheckerboardItem* self)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE);
-#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->_has_tags;
-#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5400 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_set_has_tags (CheckerboardItem* self,
- gboolean value)
-{
-#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (self));
-#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (checkerboard_item_get_has_tags (self) != value) {
-#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->_has_tags = value;
-#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_object_notify_by_pspec ((GObject *) self, checkerboard_item_properties[CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY]);
-#line 5416 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_item_class_init (CheckerboardItemClass * klass)
-{
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_parent_class = g_type_class_peek_parent (klass);
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_type_class_add_private (klass, sizeof (CheckerboardItemPrivate));
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) checkerboard_item_real_get_name;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((DataObjectClass *) klass)->notify_membership_changed = (void (*) (DataObject *, DataCollection*)) checkerboard_item_real_notify_membership_changed;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((DataObjectClass *) klass)->notify_collection_property_set = (void (*) (DataObject *, const gchar*, GValue*, GValue*)) checkerboard_item_real_notify_collection_property_set;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->exposed = (void (*) (CheckerboardItem *)) checkerboard_item_real_exposed;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->unexposed = (void (*) (CheckerboardItem *)) checkerboard_item_real_unexposed;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->is_exposed = (gboolean (*) (CheckerboardItem *)) checkerboard_item_real_is_exposed;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->paint_shadow = (void (*) (CheckerboardItem *, cairo_t*, Dimensions*, GdkPoint*, gint, gfloat)) checkerboard_item_real_paint_shadow;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->paint_border = (void (*) (CheckerboardItem *, cairo_t*, Dimensions*, GdkPoint*, gint)) checkerboard_item_real_paint_border;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->paint_image = (void (*) (CheckerboardItem *, cairo_t*, GdkPixbuf*, GdkPoint*)) checkerboard_item_real_paint_image;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->get_top_left_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) checkerboard_item_real_get_top_left_trinket;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->get_top_right_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) checkerboard_item_real_get_top_right_trinket;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->get_bottom_left_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) checkerboard_item_real_get_bottom_left_trinket;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardItemClass *) klass)->get_bottom_right_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) checkerboard_item_real_get_bottom_right_trinket;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((DataViewClass *) klass)->visibility_changed = (void (*) (DataView *, gboolean)) checkerboard_item_real_visibility_changed;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_checkerboard_item_get_property;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_checkerboard_item_set_property;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_OBJECT_CLASS (klass)->finalize = checkerboard_item_finalize;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY, checkerboard_item_properties[CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY] = g_param_spec_boolean ("has-tags", "has-tags", "has-tags", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 5464 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_instance_init (CheckerboardItem * self)
-{
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv = CHECKERBOARD_ITEM_GET_PRIVATE (self);
-#line 119 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions_init (&self->requisition, 0, 0);
-#line 120 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&self->allocation, 0, sizeof (GdkRectangle));
-#line 122 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposure = FALSE;
-#line 123 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->title = NULL;
-#line 124 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->title_visible = TRUE;
-#line 125 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->comment = NULL;
-#line 126 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->comment_visible = TRUE;
-#line 127 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->subtitle = NULL;
-#line 128 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->subtitle_visible = FALSE;
-#line 129 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->is_cursor = FALSE;
-#line 130 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->tag_alignment = PANGO_ALIGN_LEFT;
-#line 131 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->user_visible_tag_list = NULL;
-#line 133 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->pixbuf = NULL;
-#line 134 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->display_pixbuf = NULL;
-#line 135 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->brightened = NULL;
-#line 136 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions_init (&self->priv->pixbuf_dim, 0, 0);
-#line 137 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->col = -1;
-#line 138 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->row = -1;
-#line 139 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->horizontal_trinket_offset = 0;
-#line 5511 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_item_finalize (GObject * obj)
-{
- CheckerboardItem * self;
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 123 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->title);
-#line 125 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->comment);
-#line 127 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_item_text_unref0 (self->priv->subtitle);
-#line 131 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->user_visible_tag_list);
-#line 132 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->tags);
-#line 133 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->pixbuf);
-#line 134 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->display_pixbuf);
-#line 135 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->brightened);
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_OBJECT_CLASS (checkerboard_item_parent_class)->finalize (obj);
-#line 5539 "CheckerboardLayout.c"
-}
-
-
-GType
-checkerboard_item_get_type (void)
-{
- static volatile gsize checkerboard_item_type_id__volatile = 0;
- if (g_once_init_enter (&checkerboard_item_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CheckerboardItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardItem), 0, (GInstanceInitFunc) checkerboard_item_instance_init, NULL };
- GType checkerboard_item_type_id;
- checkerboard_item_type_id = g_type_register_static (TYPE_THUMBNAIL_VIEW, "CheckerboardItem", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&checkerboard_item_type_id__volatile, checkerboard_item_type_id);
- }
- return checkerboard_item_type_id__volatile;
-}
-
-
-static void
-_vala_checkerboard_item_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- CheckerboardItem * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- switch (property_id) {
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- case CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY:
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_value_set_boolean (value, checkerboard_item_get_has_tags (self));
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 5573 "CheckerboardLayout.c"
- default:
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 5579 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-_vala_checkerboard_item_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- CheckerboardItem * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- switch (property_id) {
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- case CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY:
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_has_tags (self, g_value_get_boolean (value));
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 5600 "CheckerboardLayout.c"
- default:
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 5606 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-_checkerboard_layout_on_contents_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_contents_altered ((CheckerboardLayout*) self, added, removed);
-#line 5619 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_items_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_items_altered ((CheckerboardLayout*) self);
-#line 5630 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self)
-{
-#line 913 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_items_state_changed ((CheckerboardLayout*) self, changed);
-#line 5641 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self)
-{
-#line 914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_items_visibility_changed ((CheckerboardLayout*) self, changed);
-#line 5652 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_ordering_changed_data_collection_ordering_changed (DataCollection* _sender,
- gpointer self)
-{
-#line 915 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_ordering_changed ((CheckerboardLayout*) self);
-#line 5662 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_views_altered_view_collection_views_altered (ViewCollection* _sender,
- GeeCollection* views,
- gpointer self)
-{
-#line 916 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_views_altered ((CheckerboardLayout*) self, views);
-#line 5673 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_geometries_altered_view_collection_geometries_altered (ViewCollection* _sender,
- GeeCollection* views,
- gpointer self)
-{
-#line 917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_geometries_altered ((CheckerboardLayout*) self);
-#line 5684 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_items_selection_changed_view_collection_items_selected (ViewCollection* _sender,
- GeeIterable* selected,
- gpointer self)
-{
-#line 918 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_items_selection_changed ((CheckerboardLayout*) self);
-#line 5695 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_items_selection_changed_view_collection_items_unselected (ViewCollection* _sender,
- GeeIterable* unselected,
- gpointer self)
-{
-#line 919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_items_selection_changed ((CheckerboardLayout*) self);
-#line 5706 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed (GtkAdjustment* _sender,
- gpointer self)
-{
-#line 922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_viewport_shifted ((CheckerboardLayout*) self);
-#line 5716 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_viewport_resized_gtk_widget_size_allocate (GtkWidget* _sender,
- GtkAllocation* allocation,
- gpointer self)
-{
-#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_viewport_resized ((CheckerboardLayout*) self);
-#line 5727 "CheckerboardLayout.c"
-}
-
-
-static void
-_checkerboard_layout_on_colors_changed_config_facade_colors_changed (ConfigFacade* _sender,
- gpointer self)
-{
-#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_colors_changed ((CheckerboardLayout*) self);
-#line 5737 "CheckerboardLayout.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 883 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 5746 "CheckerboardLayout.c"
-}
-
-
-CheckerboardLayout*
-checkerboard_layout_construct (GType object_type,
- ViewCollection* view)
-{
- CheckerboardLayout * self = NULL;
- ViewCollection* _tmp0_;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- GdkRGBA _tmp3_ = {0};
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
-#line 882 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (view), NULL);
-#line 882 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = (CheckerboardLayout*) g_object_new (object_type, NULL);
-#line 883 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _data_collection_ref0 (view);
-#line 883 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _data_collection_unref0 (self->priv->view);
-#line 883 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->view = _tmp0_;
-#line 885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_clear_drag_select (self);
-#line 888 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _checkerboard_layout_on_contents_altered_data_collection_contents_altered, self, 0);
-#line 889 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _checkerboard_layout_on_items_altered_data_collection_items_altered, self, 0);
-#line 890 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (view, "items-state-changed", (GCallback) _checkerboard_layout_on_items_state_changed_view_collection_items_state_changed, self, 0);
-#line 891 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (view, "items-visibility-changed", (GCallback) _checkerboard_layout_on_items_visibility_changed_view_collection_items_visibility_changed, self, 0);
-#line 892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "ordering-changed", (GCallback) _checkerboard_layout_on_ordering_changed_data_collection_ordering_changed, self, 0);
-#line 893 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (view, "views-altered", (GCallback) _checkerboard_layout_on_views_altered_view_collection_views_altered, self, 0);
-#line 894 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (view, "geometries-altered", (GCallback) _checkerboard_layout_on_geometries_altered_view_collection_geometries_altered, self, 0);
-#line 895 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (view, "items-selected", (GCallback) _checkerboard_layout_on_items_selection_changed_view_collection_items_selected, self, 0);
-#line 896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (view, "items-unselected", (GCallback) _checkerboard_layout_on_items_selection_changed_view_collection_items_unselected, self, 0);
-#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_;
-#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- config_facade_get_bg_color (_tmp2_, &_tmp3_);
-#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_override_background_color (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), GTK_STATE_FLAG_NORMAL, &_tmp3_);
-#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp2_);
-#line 900 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 900 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_;
-#line 900 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (_tmp5_, "colors-changed", (GCallback) _checkerboard_layout_on_colors_changed_config_facade_colors_changed, self, 0);
-#line 900 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp5_);
-#line 903 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_set_has_tooltip (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 882 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return self;
-#line 5813 "CheckerboardLayout.c"
-}
-
-
-CheckerboardLayout*
-checkerboard_layout_new (ViewCollection* view)
-{
-#line 882 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return checkerboard_layout_construct (TYPE_CHECKERBOARD_LAYOUT, view);
-#line 5822 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_layout_set_adjustments (CheckerboardLayout* self,
- GtkAdjustment* hadjustment,
- GtkAdjustment* vadjustment)
-{
- GtkAdjustment* _tmp0_;
- GtkAdjustment* _tmp1_;
- GtkContainer* _tmp2_;
- GtkContainer* _tmp3_;
-#line 933 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 933 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (GTK_IS_ADJUSTMENT (hadjustment));
-#line 933 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (GTK_IS_ADJUSTMENT (vadjustment));
-#line 934 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _g_object_ref0 (hadjustment);
-#line 934 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->hadjustment);
-#line 934 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->hadjustment = _tmp0_;
-#line 935 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _g_object_ref0 (vadjustment);
-#line 935 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->vadjustment);
-#line 935 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->vadjustment = _tmp1_;
-#line 938 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (hadjustment, "value-changed", (GCallback) _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed, self, 0);
-#line 939 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (vadjustment, "value-changed", (GCallback) _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed, self, 0);
-#line 942 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 942 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_;
-#line 942 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _checkerboard_layout_on_viewport_resized_gtk_widget_size_allocate, self, 0);
-#line 5863 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_layout_set_scale (CheckerboardLayout* self,
- gint scale)
-{
-#line 947 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 948 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->scale = scale;
-#line 5875 "CheckerboardLayout.c"
-}
-
-
-gint
-checkerboard_layout_get_scale (CheckerboardLayout* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 951 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), 0);
-#line 952 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->scale;
-#line 952 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 952 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 5892 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_layout_set_name (CheckerboardLayout* self,
- const gchar* name)
-{
- gchar* _tmp0_;
-#line 955 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 955 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (name != NULL);
-#line 956 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = g_strdup (name);
-#line 956 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (self->priv->page_name);
-#line 956 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->page_name = _tmp0_;
-#line 5911 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_viewport_resized (CheckerboardLayout* self)
-{
- GtkRequisition req = {0};
- GtkRequisition _tmp0_ = {0};
- GtkAllocation parent_allocation = {0};
- GtkContainer* _tmp1_;
- GtkContainer* _tmp2_;
- GtkAllocation _tmp3_ = {0};
- const gchar* _tmp4_;
- gboolean _tmp15_;
-#line 959 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_preferred_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL, &_tmp0_);
-#line 961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- req = _tmp0_;
-#line 964 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 964 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_;
-#line 964 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), &_tmp3_);
-#line 964 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- parent_allocation = _tmp3_;
-#line 966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->message;
-#line 966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp4_ == NULL) {
-#line 5944 "CheckerboardLayout.c"
- GtkRequisition _tmp5_;
- gint _tmp6_;
-#line 975 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = req;
-#line 975 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = _tmp5_.height;
-#line 975 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp6_ != 0) {
-#line 5953 "CheckerboardLayout.c"
- GtkAllocation _tmp7_;
- gint _tmp8_;
- GtkRequisition _tmp9_;
- gint _tmp10_;
-#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = parent_allocation;
-#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _tmp7_.width;
-#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = req;
-#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _tmp9_.height;
-#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp8_ - CHECKERBOARD_LAYOUT_SCROLLBAR_PLACEHOLDER_WIDTH, _tmp10_);
-#line 5968 "CheckerboardLayout.c"
- }
- } else {
- GtkAllocation _tmp11_;
- gint _tmp12_;
- GtkAllocation _tmp13_;
- gint _tmp14_;
-#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = parent_allocation;
-#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _tmp11_.width;
-#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = parent_allocation;
-#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = _tmp13_.height;
-#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp12_, _tmp14_);
-#line 5985 "CheckerboardLayout.c"
- }
-#line 985 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_viewport_resized (self);
-#line 987 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = self->priv->size_allocate_due_to_reflow;
-#line 987 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp15_) {
-#line 988 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_clear_anchor (self);
-#line 5995 "CheckerboardLayout.c"
- } else {
-#line 990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->size_allocate_due_to_reflow = FALSE;
-#line 5999 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_layout_on_viewport_shifted (CheckerboardLayout* self)
-{
-#line 993 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_update_visible_page (self);
-#line 995 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_exposure (self, "on_viewport_shift");
-#line 997 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_clear_anchor (self);
-#line 6015 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_items_selection_changed (CheckerboardLayout* self)
-{
-#line 1000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1001 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_clear_anchor (self);
-#line 6026 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_clear_anchor (CheckerboardLayout* self)
-{
- gboolean _tmp0_;
-#line 1004 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1005 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->in_center_on_anchor;
-#line 1005 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 1006 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 6042 "CheckerboardLayout.c"
- }
-#line 1008 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->anchor);
-#line 1008 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->anchor = NULL;
-#line 6048 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_update_anchor (CheckerboardLayout* self)
-{
- gboolean _tmp0_;
- GeeList* items_on_page = NULL;
- GdkRectangle _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- GtkAdjustment* _tmp20_;
- GeeList* _tmp21_;
- GeeList* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gpointer _tmp25_;
-#line 1011 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->in_center_on_anchor;
-#line 1012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (!_tmp0_, "!in_center_on_anchor");
-#line 1014 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->visible_page;
-#line 1014 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = checkerboard_layout_intersection (self, &_tmp1_);
-#line 1014 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- items_on_page = _tmp2_;
-#line 1015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = items_on_page;
-#line 1015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_;
-#line 1015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp5_ == 0) {
-#line 1016 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->anchor);
-#line 1016 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->anchor = NULL;
-#line 1017 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (items_on_page);
-#line 1017 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 6096 "CheckerboardLayout.c"
- }
- {
- GeeList* _item_list = NULL;
- GeeList* _tmp6_;
- GeeList* _tmp7_;
- gint _item_size = 0;
- GeeList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _item_index = 0;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = items_on_page;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_list = _tmp7_;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _item_list;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _tmp9_;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_size = _tmp10_;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_index = -1;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 6125 "CheckerboardLayout.c"
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- CheckerboardItem* item = NULL;
- GeeList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- CheckerboardItem* _tmp17_;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = _item_index;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_index = _tmp11_ + 1;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _item_index;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = _item_size;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 6146 "CheckerboardLayout.c"
- }
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = _item_list;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _item_index;
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = gee_list_get (_tmp14_, _tmp15_);
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = (CheckerboardItem*) _tmp16_;
-#line 1021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = item;
-#line 1021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_VIEW, DataView))) {
-#line 6160 "CheckerboardLayout.c"
- CheckerboardItem* _tmp18_;
- CheckerboardItem* _tmp19_;
-#line 1022 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = item;
-#line 1022 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _g_object_ref0 (_tmp18_);
-#line 1022 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->anchor);
-#line 1022 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->anchor = _tmp19_;
-#line 1023 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 1023 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_item_list);
-#line 1023 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (items_on_page);
-#line 1023 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 6179 "CheckerboardLayout.c"
- }
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 6183 "CheckerboardLayout.c"
- }
-#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_item_list);
-#line 6187 "CheckerboardLayout.c"
- }
-#line 1027 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = self->priv->vadjustment;
-#line 1027 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (gtk_adjustment_get_value (_tmp20_) == ((gdouble) 0)) {
-#line 1028 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->anchor);
-#line 1028 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->anchor = NULL;
-#line 1029 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (items_on_page);
-#line 1029 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 6201 "CheckerboardLayout.c"
- }
-#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = items_on_page;
-#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = items_on_page;
-#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = _tmp23_;
-#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = gee_list_get (_tmp21_, ((gint) _tmp24_) / 2);
-#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->anchor);
-#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->anchor = (CheckerboardItem*) _tmp25_;
-#line 1011 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (items_on_page);
-#line 6219 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_center_on_anchor (CheckerboardLayout* self,
- gdouble upper)
-{
- CheckerboardItem* _tmp0_;
- gdouble anchor_pos = 0.0;
- CheckerboardItem* _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
- CheckerboardItem* _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- GtkAdjustment* _tmp7_;
- GtkAdjustment* _tmp8_;
- gdouble _tmp9_;
- GtkAdjustment* _tmp10_;
- GtkAdjustment* _tmp11_;
- GtkAdjustment* _tmp12_;
-#line 1037 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1038 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->anchor;
-#line 1038 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ == NULL) {
-#line 1039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 6249 "CheckerboardLayout.c"
- }
-#line 1041 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->in_center_on_anchor = TRUE;
-#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->anchor;
-#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_->allocation;
-#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.y;
-#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->anchor;
-#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_->allocation;
-#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = _tmp5_.height;
-#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = self->priv->vadjustment;
-#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- anchor_pos = (_tmp3_ + (_tmp6_ / 2)) - (gtk_adjustment_get_page_size (_tmp7_) / 2);
-#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = self->priv->vadjustment;
-#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = anchor_pos;
-#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = self->priv->vadjustment;
-#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = self->priv->vadjustment;
-#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = self->priv->vadjustment;
-#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_adjustment_set_value (_tmp8_, CLAMP (_tmp9_, gtk_adjustment_get_lower (_tmp10_), gtk_adjustment_get_upper (_tmp11_) - gtk_adjustment_get_page_size (_tmp12_)));
-#line 1048 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->in_center_on_anchor = FALSE;
-#line 6283 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_layout_set_cursor (CheckerboardLayout* self,
- CheckerboardItem* item)
-{
- GeeHashSet* collection = NULL;
- GeeHashSet* _tmp0_;
- CheckerboardItem* _tmp1_;
- CheckerboardItem* _tmp7_;
- GeeHashSet* _tmp8_;
- GeeHashSet* _tmp9_;
-#line 1051 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1051 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (item));
-#line 1052 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = gee_hash_set_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1052 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- collection = _tmp0_;
-#line 1053 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->cursor;
-#line 1053 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 6309 "CheckerboardLayout.c"
- CheckerboardItem* _tmp2_;
- ViewCollection* _tmp3_;
- CheckerboardItem* _tmp4_;
-#line 1054 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->cursor;
-#line 1054 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_is_cursor (_tmp2_, FALSE);
-#line 1056 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->view;
-#line 1056 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->cursor;
-#line 1056 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject))) {
-#line 6323 "CheckerboardLayout.c"
- GeeHashSet* _tmp5_;
- CheckerboardItem* _tmp6_;
-#line 1057 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = collection;
-#line 1057 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->cursor;
-#line 1057 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_VIEW, DataView));
-#line 6332 "CheckerboardLayout.c"
- }
- }
-#line 1060 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_is_cursor (item, TRUE);
-#line 1061 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _g_object_ref0 (item);
-#line 1061 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->cursor);
-#line 1061 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->cursor = _tmp7_;
-#line 1062 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = collection;
-#line 1062 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_DATA_VIEW, DataView));
-#line 1063 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = collection;
-#line 1063 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_on_items_state_changed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1051 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (collection);
-#line 6353 "CheckerboardLayout.c"
-}
-
-
-CheckerboardItem*
-checkerboard_layout_get_cursor (CheckerboardLayout* self)
-{
- CheckerboardItem* result = NULL;
- CheckerboardItem* _tmp0_;
- CheckerboardItem* _tmp1_;
-#line 1066 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL);
-#line 1067 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->cursor;
-#line 1067 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 1067 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp1_;
-#line 1067 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 6373 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_contents_altered (CheckerboardLayout* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
-#line 1071 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1071 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 1071 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 1073 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (added != NULL) {
-#line 1074 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (self->priv->message);
-#line 1074 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->message = NULL;
-#line 6394 "CheckerboardLayout.c"
- }
-#line 1076 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (removed != NULL) {
-#line 6398 "CheckerboardLayout.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = gee_iterable_iterator (removed);
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _object_it = _tmp0_;
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 6408 "CheckerboardLayout.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- GeeHashSet* _tmp4_;
- DataObject* _tmp5_;
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _object_it;
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 6421 "CheckerboardLayout.c"
- }
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _object_it;
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- object = (DataObject*) _tmp3_;
-#line 1078 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->exposed_items;
-#line 1078 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = object;
-#line 1078 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (object);
-#line 6437 "CheckerboardLayout.c"
- }
-#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_object_it);
-#line 6441 "CheckerboardLayout.c"
- }
- }
-#line 1083 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL);
-#line 1083 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = NULL;
-#line 1083 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows_length1 = 0;
-#line 1083 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->_item_rows_size_ = self->priv->item_rows_length1;
-#line 1085 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, "on_contents_altered");
-#line 6454 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_items_altered (CheckerboardLayout* self)
-{
-#line 1088 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1089 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, "on_items_altered");
-#line 6465 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_items_state_changed (CheckerboardLayout* self,
- GeeIterable* changed)
-{
-#line 1092 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1092 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (GEE_IS_ITERABLE (changed));
-#line 1093 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_items_dirty (self, "on_items_state_changed", changed);
-#line 6479 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_items_visibility_changed (CheckerboardLayout* self,
- GeeIterable* changed)
-{
-#line 1096 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1096 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (GEE_IS_ITERABLE (changed));
-#line 1097 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, "on_items_visibility_changed");
-#line 6493 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_ordering_changed (CheckerboardLayout* self)
-{
-#line 1100 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1101 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, "on_ordering_changed");
-#line 6504 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_views_altered (CheckerboardLayout* self,
- GeeCollection* altered)
-{
-#line 1104 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1104 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (GEE_IS_COLLECTION (altered));
-#line 1105 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_items_dirty (self, "on_views_altered", G_TYPE_CHECK_INSTANCE_CAST (altered, GEE_TYPE_ITERABLE, GeeIterable));
-#line 6518 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_geometries_altered (CheckerboardLayout* self)
-{
-#line 1108 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1109 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, "on_geometries_altered");
-#line 6529 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-_checkerboard_layout_do_reflow_gsource_func (gpointer self)
-{
- gboolean result;
- result = checkerboard_layout_do_reflow ((CheckerboardLayout*) self);
-#line 1125 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 6540 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_need_reflow (CheckerboardLayout* self,
- const gchar* caller)
-{
- gboolean _tmp0_;
- gboolean _tmp1_;
-#line 1112 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1112 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (caller != NULL);
-#line 1113 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->flow_scheduled;
-#line 1113 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 1114 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 6560 "CheckerboardLayout.c"
- }
-#line 1116 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->is_in_view;
-#line 1116 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp1_) {
-#line 1117 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->reflow_needed = TRUE;
-#line 1118 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 6570 "CheckerboardLayout.c"
- }
-#line 1124 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->flow_scheduled = TRUE;
-#line 1125 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_idle_add_full (G_PRIORITY_HIGH, _checkerboard_layout_do_reflow_gsource_func, g_object_ref (self), g_object_unref);
-#line 6576 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-checkerboard_layout_do_reflow (CheckerboardLayout* self)
-{
- gboolean result = FALSE;
-#line 1128 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), FALSE);
-#line 1129 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_reflow (self, "do_reflow");
-#line 1130 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_exposure (self, "do_reflow");
-#line 1132 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->flow_scheduled = FALSE;
-#line 1134 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = FALSE;
-#line 1134 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 6596 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_need_exposure (CheckerboardLayout* self,
- const gchar* caller)
-{
-#line 1137 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1137 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (caller != NULL);
-#line 1141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposure_dirty = TRUE;
-#line 1142 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 6612 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_layout_set_message (CheckerboardLayout* self,
- const gchar* text)
-{
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1145 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->message;
-#line 1146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (g_strcmp0 (text, _tmp0_) == 0) {
-#line 1147 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 6630 "CheckerboardLayout.c"
- }
-#line 1149 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = g_strdup (text);
-#line 1149 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (self->priv->message);
-#line 1149 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->message = _tmp1_;
-#line 1151 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (text != NULL) {
-#line 6640 "CheckerboardLayout.c"
- GtkContainer* _tmp2_;
- GtkContainer* _tmp3_;
-#line 1154 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1154 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_;
-#line 1154 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp3_ != NULL) {
-#line 6649 "CheckerboardLayout.c"
- GtkAllocation parent_allocation = {0};
- GtkContainer* _tmp4_;
- GtkContainer* _tmp5_;
- GtkAllocation _tmp6_ = {0};
- GtkAllocation _tmp7_;
- gint _tmp8_;
- GtkAllocation _tmp9_;
- gint _tmp10_;
-#line 1156 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1156 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_;
-#line 1156 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), &_tmp6_);
-#line 1156 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- parent_allocation = _tmp6_;
-#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = parent_allocation;
-#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _tmp7_.width;
-#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = parent_allocation;
-#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _tmp9_.height;
-#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp8_, _tmp10_);
-#line 6676 "CheckerboardLayout.c"
- }
- } else {
-#line 1162 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, "set_message");
-#line 6681 "CheckerboardLayout.c"
- }
-}
-
-
-void
-checkerboard_layout_unset_message (CheckerboardLayout* self)
-{
-#line 1166 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1167 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_set_message (self, NULL);
-#line 6693 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_update_visible_page (CheckerboardLayout* self)
-{
- gboolean _tmp0_ = FALSE;
- GtkAdjustment* _tmp1_;
-#line 1170 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->hadjustment;
-#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 6708 "CheckerboardLayout.c"
- GtkAdjustment* _tmp2_;
-#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->vadjustment;
-#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp2_ != NULL;
-#line 6714 "CheckerboardLayout.c"
- } else {
-#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 6718 "CheckerboardLayout.c"
- }
-#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 6722 "CheckerboardLayout.c"
- GtkAdjustment* _tmp3_;
- GtkAdjustment* _tmp4_;
- GdkRectangle _tmp5_ = {0};
-#line 1172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->hadjustment;
-#line 1172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->vadjustment;
-#line 1172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- get_adjustment_page (_tmp3_, _tmp4_, &_tmp5_);
-#line 1172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->visible_page = _tmp5_;
-#line 6734 "CheckerboardLayout.c"
- }
-}
-
-
-void
-checkerboard_layout_set_in_view (CheckerboardLayout* self,
- gboolean in_view)
-{
-#line 1175 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1176 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->is_in_view = in_view;
-#line 1178 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (in_view) {
-#line 6749 "CheckerboardLayout.c"
- gboolean _tmp0_;
-#line 1179 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->reflow_needed;
-#line 1179 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 1180 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, "set_in_view (true)");
-#line 6757 "CheckerboardLayout.c"
- } else {
-#line 1182 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_exposure (self, "set_in_view (true)");
-#line 6761 "CheckerboardLayout.c"
- }
- } else {
-#line 1184 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_unexpose_items (self, "set_in_view (false)");
-#line 6766 "CheckerboardLayout.c"
- }
-}
-
-
-static gpointer
-_checkerboard_layout_layout_row_ref0 (gpointer self)
-{
-#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return self ? checkerboard_layout_layout_row_ref (self) : NULL;
-#line 6776 "CheckerboardLayout.c"
-}
-
-
-CheckerboardItem*
-checkerboard_layout_get_item_at_pixel (CheckerboardLayout* self,
- gdouble xd,
- gdouble yd)
-{
- CheckerboardItem* result = NULL;
- gboolean _tmp0_ = FALSE;
- const gchar* _tmp1_;
- gint x = 0;
- gint y = 0;
- CheckerboardLayoutLayoutRow* in_range = NULL;
- gint min = 0;
- gint max = 0;
- CheckerboardLayoutLayoutRow** _tmp3_;
- gint _tmp3__length1;
- CheckerboardLayoutLayoutRow* _tmp28_;
- CheckerboardLayoutLayoutRow* _tmp29_;
- CheckerboardItem** _tmp30_;
- gint _tmp30__length1;
-#line 1187 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL);
-#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->message;
-#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != NULL) {
-#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = TRUE;
-#line 6807 "CheckerboardLayout.c"
- } else {
- CheckerboardLayoutLayoutRow** _tmp2_;
- gint _tmp2__length1;
-#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->item_rows;
-#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2__length1 = self->priv->item_rows_length1;
-#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp2_ == NULL;
-#line 6817 "CheckerboardLayout.c"
- }
-#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 1189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 6825 "CheckerboardLayout.c"
- }
-#line 1191 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = (gint) xd;
-#line 1192 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = (gint) yd;
-#line 1195 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- in_range = NULL;
-#line 1196 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- min = 0;
-#line 1197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->item_rows;
-#line 1197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3__length1 = self->priv->item_rows_length1;
-#line 1197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max = _tmp3__length1;
-#line 6841 "CheckerboardLayout.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = TRUE;
-#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 6848 "CheckerboardLayout.c"
- gint mid = 0;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- CheckerboardLayoutLayoutRow* row = NULL;
- CheckerboardLayoutLayoutRow** _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- CheckerboardLayoutLayoutRow* _tmp10_;
- CheckerboardLayoutLayoutRow* _tmp11_;
- gboolean _tmp12_ = FALSE;
- CheckerboardLayoutLayoutRow* _tmp13_;
- gint _tmp26_;
- gint _tmp27_;
-#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp4_) {
-#line 6865 "CheckerboardLayout.c"
- }
-#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = FALSE;
-#line 1199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = min;
-#line 1199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = max;
-#line 1199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = min;
-#line 1199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- mid = _tmp5_ + ((_tmp6_ - _tmp7_) / 2);
-#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = self->priv->item_rows;
-#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8__length1 = self->priv->item_rows_length1;
-#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = mid;
-#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _tmp8_[_tmp9_];
-#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = _checkerboard_layout_layout_row_ref0 (_tmp10_);
-#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp11_;
-#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = row;
-#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp13_ == NULL) {
-#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = TRUE;
-#line 6895 "CheckerboardLayout.c"
- } else {
- gint _tmp14_;
- CheckerboardLayoutLayoutRow* _tmp15_;
- gint _tmp16_;
-#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = y;
-#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = row;
-#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = _tmp15_->y;
-#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _tmp14_ < _tmp16_;
-#line 6908 "CheckerboardLayout.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp12_) {
-#line 6912 "CheckerboardLayout.c"
- gint _tmp17_;
-#line 1205 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = mid;
-#line 1205 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max = _tmp17_ - 1;
-#line 6918 "CheckerboardLayout.c"
- } else {
- gint _tmp18_;
- CheckerboardLayoutLayoutRow* _tmp19_;
- gint _tmp20_;
- CheckerboardLayoutLayoutRow* _tmp21_;
- gint _tmp22_;
-#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = y;
-#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = row;
-#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = _tmp19_->y;
-#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = row;
-#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = _tmp21_->height;
-#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp18_ > (_tmp20_ + _tmp22_)) {
-#line 6937 "CheckerboardLayout.c"
- gint _tmp23_;
-#line 1208 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = mid;
-#line 1208 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- min = _tmp23_ + 1;
-#line 6943 "CheckerboardLayout.c"
- } else {
- CheckerboardLayoutLayoutRow* _tmp24_;
- CheckerboardLayoutLayoutRow* _tmp25_;
-#line 1211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = row;
-#line 1211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = _checkerboard_layout_layout_row_ref0 (_tmp24_);
-#line 1211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (in_range);
-#line 1211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- in_range = _tmp25_;
-#line 1213 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (row);
-#line 1213 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 6959 "CheckerboardLayout.c"
- }
- }
-#line 1216 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = min;
-#line 1216 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = max;
-#line 1216 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp26_ > _tmp27_) {
-#line 1217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (row);
-#line 1217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 6972 "CheckerboardLayout.c"
- }
-#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (row);
-#line 6976 "CheckerboardLayout.c"
- }
- }
-#line 1220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = in_range;
-#line 1220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp28_ == NULL) {
-#line 1221 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1221 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (in_range);
-#line 1221 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 6989 "CheckerboardLayout.c"
- }
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = in_range;
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = _tmp29_->items;
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30__length1 = _tmp29_->items_length1;
-#line 6997 "CheckerboardLayout.c"
- {
- CheckerboardItem** item_collection = NULL;
- gint item_collection_length1 = 0;
- gint _item_collection_size_ = 0;
- gint item_it = 0;
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item_collection = _tmp30_;
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item_collection_length1 = _tmp30__length1;
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- for (item_it = 0; item_it < _tmp30__length1; item_it = item_it + 1) {
-#line 7009 "CheckerboardLayout.c"
- CheckerboardItem* _tmp31_;
- CheckerboardItem* item = NULL;
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = _g_object_ref0 (item_collection[item_it]);
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = _tmp31_;
-#line 7016 "CheckerboardLayout.c"
- {
- CheckerboardItem* _tmp32_;
- gint _tmp33_;
- CheckerboardItem* _tmp34_;
- GdkRectangle _tmp35_;
- gint _tmp36_;
- gboolean _tmp37_ = FALSE;
- gboolean _tmp38_ = FALSE;
- gint _tmp39_;
- CheckerboardItem* _tmp40_;
- GdkRectangle _tmp41_;
- gint _tmp42_;
- CheckerboardItem* _tmp43_;
- GdkRectangle _tmp44_;
- gint _tmp45_;
-#line 1227 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp32_ = item;
-#line 1227 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp32_ == NULL) {
-#line 1228 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 1228 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- continue;
-#line 7040 "CheckerboardLayout.c"
- }
-#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = x;
-#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = item;
-#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = _tmp34_->allocation;
-#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = _tmp35_.x;
-#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp33_ < _tmp36_) {
-#line 1232 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 1232 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 7056 "CheckerboardLayout.c"
- }
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp39_ = x;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp40_ = item;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp41_ = _tmp40_->allocation;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp42_ = _tmp41_.x;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp43_ = item;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp44_ = _tmp43_->allocation;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp45_ = _tmp44_.width;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp39_ <= (_tmp42_ + _tmp45_)) {
-#line 7074 "CheckerboardLayout.c"
- gint _tmp46_;
- CheckerboardItem* _tmp47_;
- GdkRectangle _tmp48_;
- gint _tmp49_;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp46_ = y;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp47_ = item;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp48_ = _tmp47_->allocation;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp49_ = _tmp48_.y;
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = _tmp46_ >= _tmp49_;
-#line 7089 "CheckerboardLayout.c"
- } else {
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = FALSE;
-#line 7093 "CheckerboardLayout.c"
- }
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp38_) {
-#line 7097 "CheckerboardLayout.c"
- gint _tmp50_;
- CheckerboardItem* _tmp51_;
- GdkRectangle _tmp52_;
- gint _tmp53_;
- CheckerboardItem* _tmp54_;
- GdkRectangle _tmp55_;
- gint _tmp56_;
-#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp50_ = y;
-#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp51_ = item;
-#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp52_ = _tmp51_->allocation;
-#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp53_ = _tmp52_.y;
-#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp54_ = item;
-#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp55_ = _tmp54_->allocation;
-#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp56_ = _tmp55_.height;
-#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = _tmp50_ <= (_tmp53_ + _tmp56_);
-#line 7121 "CheckerboardLayout.c"
- } else {
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = FALSE;
-#line 7125 "CheckerboardLayout.c"
- }
-#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp37_) {
-#line 1239 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = item;
-#line 1239 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (in_range);
-#line 1239 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7135 "CheckerboardLayout.c"
- }
-#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 7139 "CheckerboardLayout.c"
- }
- }
- }
-#line 1242 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1242 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (in_range);
-#line 1242 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7149 "CheckerboardLayout.c"
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7167 "CheckerboardLayout.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7191 "CheckerboardLayout.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7200 "CheckerboardLayout.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 7221 "CheckerboardLayout.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 7225 "CheckerboardLayout.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 7231 "CheckerboardLayout.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 7241 "CheckerboardLayout.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 7245 "CheckerboardLayout.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 7253 "CheckerboardLayout.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 7260 "CheckerboardLayout.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 7264 "CheckerboardLayout.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 7270 "CheckerboardLayout.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7282 "CheckerboardLayout.c"
-}
-
-
-gint
-checkerboard_layout_get_tag_index_at_pos (const gchar* tag_list,
- gint pos)
-{
- gint result = 0;
- gint sep_len = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint len = 0;
- gint _tmp3_;
- gint _tmp4_;
- gboolean _tmp5_ = FALSE;
- gint index = 0;
-#line 1245 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (tag_list != NULL, 0);
-#line 1246 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = strlen (TAG_TAG_LIST_SEPARATOR_STRING);
-#line 1246 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_;
-#line 1246 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- sep_len = _tmp1_;
-#line 1247 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = sep_len;
-#line 1247 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp2_ > 0, "sep_len > 0");
-#line 1248 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = strlen (tag_list);
-#line 1248 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_;
-#line 1248 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- len = _tmp4_;
-#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (pos < 0) {
-#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = TRUE;
-#line 7322 "CheckerboardLayout.c"
- } else {
- gint _tmp6_;
-#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = len;
-#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = pos >= _tmp6_;
-#line 7329 "CheckerboardLayout.c"
- }
-#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp5_) {
-#line 1250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = -1;
-#line 1250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7337 "CheckerboardLayout.c"
- }
- {
- gint i = 0;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- i = 0;
-#line 7343 "CheckerboardLayout.c"
- {
- gboolean _tmp7_ = FALSE;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = TRUE;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 7350 "CheckerboardLayout.c"
- gint _tmp9_;
- gint _tmp10_;
- gboolean _tmp11_ = FALSE;
- gint _tmp12_;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp7_) {
-#line 7357 "CheckerboardLayout.c"
- gint _tmp8_;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = i;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- i = _tmp8_ + 1;
-#line 7363 "CheckerboardLayout.c"
- }
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = FALSE;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = i;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = sep_len;
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp9_ < _tmp10_)) {
-#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 7375 "CheckerboardLayout.c"
- }
-#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = i;
-#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (string_get (tag_list, (glong) pos) == string_get (TAG_TAG_LIST_SEPARATOR_STRING, (glong) _tmp12_)) {
-#line 7381 "CheckerboardLayout.c"
- gint _tmp13_;
-#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = i;
-#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = pos >= _tmp13_;
-#line 7387 "CheckerboardLayout.c"
- } else {
-#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = FALSE;
-#line 7391 "CheckerboardLayout.c"
- }
-#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp11_) {
-#line 7395 "CheckerboardLayout.c"
- gint _tmp14_;
- gint _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gboolean _tmp18_;
-#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = i;
-#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = sep_len;
-#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = string_substring (tag_list, (glong) (pos - _tmp14_), (glong) _tmp15_);
-#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = _tmp16_;
-#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = g_strcmp0 (_tmp17_, TAG_TAG_LIST_SEPARATOR_STRING) == 0;
-#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp17_);
-#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp18_) {
-#line 1256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = -1;
-#line 1256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7419 "CheckerboardLayout.c"
- }
- }
- }
- }
- }
-#line 1263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- index = 0;
-#line 7427 "CheckerboardLayout.c"
- {
- gint i = 0;
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- i = 0;
-#line 7432 "CheckerboardLayout.c"
- {
- gboolean _tmp19_ = FALSE;
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = TRUE;
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 7439 "CheckerboardLayout.c"
- gint _tmp21_;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_ = FALSE;
- gint _tmp24_;
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp19_) {
-#line 7446 "CheckerboardLayout.c"
- gint _tmp20_;
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = i;
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- i = _tmp20_ + 1;
-#line 7452 "CheckerboardLayout.c"
- }
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = FALSE;
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = i;
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp21_ < pos)) {
-#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 7462 "CheckerboardLayout.c"
- }
-#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = i;
-#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (string_get (tag_list, (glong) _tmp24_) == string_get (TAG_TAG_LIST_SEPARATOR_STRING, (glong) 0)) {
-#line 7468 "CheckerboardLayout.c"
- gint _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
-#line 1266 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = i;
-#line 1266 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = sep_len;
-#line 1266 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = len;
-#line 1266 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = (_tmp25_ + _tmp26_) <= _tmp27_;
-#line 7480 "CheckerboardLayout.c"
- } else {
-#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = FALSE;
-#line 7484 "CheckerboardLayout.c"
- }
-#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp23_) {
-#line 7488 "CheckerboardLayout.c"
- gint _tmp28_;
- gint _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
-#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = i;
-#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = sep_len;
-#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = string_substring (tag_list, (glong) _tmp28_, (glong) _tmp29_);
-#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = _tmp30_;
-#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = g_strcmp0 (_tmp31_, TAG_TAG_LIST_SEPARATOR_STRING) == 0;
-#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp31_);
-#line 7505 "CheckerboardLayout.c"
- } else {
-#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = FALSE;
-#line 7509 "CheckerboardLayout.c"
- }
-#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp22_) {
-#line 7513 "CheckerboardLayout.c"
- gint _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
-#line 1268 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp32_ = index;
-#line 1268 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- index = _tmp32_ + 1;
-#line 1269 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = i;
-#line 1269 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = sep_len;
-#line 1269 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- i = _tmp33_ + (_tmp34_ - 1);
-#line 7527 "CheckerboardLayout.c"
- }
- }
- }
- }
-#line 1272 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = index;
-#line 1272 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7536 "CheckerboardLayout.c"
-}
-
-
-static gint
-checkerboard_layout_internal_handle_tag_mouse_event (CheckerboardLayout* self,
- CheckerboardItem* item,
- gint x,
- gint y)
-{
- gint result = 0;
- PangoLayout* layout = NULL;
- PangoLayout* _tmp0_;
- PangoLayout* _tmp1_;
- GdkRectangle rect = {0};
- GdkRectangle _tmp2_ = {0};
- gint index = 0;
- gint trailing = 0;
- gint px = 0;
- GdkRectangle _tmp3_;
- gint _tmp4_;
- gint py = 0;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- PangoLayout* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_ = 0;
- gint _tmp11_ = 0;
- gboolean _tmp12_;
-#line 1275 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), 0);
-#line 1275 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (item), 0);
-#line 1276 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = checkerboard_item_get_tag_list_layout (item);
-#line 1276 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- layout = _tmp0_;
-#line 1277 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = layout;
-#line 1277 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ == NULL) {
-#line 1278 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = -1;
-#line 1278 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (layout);
-#line 1278 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7584 "CheckerboardLayout.c"
- }
-#line 1280 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_translate_coordinates (item, &x, &y);
-#line 1282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_get_subtitle_allocation (item, &_tmp2_);
-#line 1282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- rect = _tmp2_;
-#line 1284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = rect;
-#line 1284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_.x;
-#line 1284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- px = (x - _tmp4_) * PANGO_SCALE;
-#line 1285 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = rect;
-#line 1285 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = _tmp5_.y;
-#line 1285 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- py = (y - _tmp6_) * PANGO_SCALE;
-#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = layout;
-#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = px;
-#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = py;
-#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = pango_layout_xy_to_index (_tmp7_, _tmp8_, _tmp9_, &_tmp10_, &_tmp11_);
-#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- index = _tmp10_;
-#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- trailing = _tmp11_;
-#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp12_) {
-#line 7618 "CheckerboardLayout.c"
- PangoLayout* _tmp13_;
- const gchar* _tmp14_;
- gint _tmp15_;
-#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = layout;
-#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = pango_layout_get_text (_tmp13_);
-#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = index;
-#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = checkerboard_layout_get_tag_index_at_pos (_tmp14_, _tmp15_);
-#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (layout);
-#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7634 "CheckerboardLayout.c"
- }
-#line 1288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = -1;
-#line 1288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (layout);
-#line 1288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7642 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_layout_handle_mouse_motion (CheckerboardLayout* self,
- CheckerboardItem* item,
- gint x,
- gint y,
- GdkModifierType mask)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- gboolean _tmp2_;
- gint tag_index = 0;
- gint _tmp3_;
- gint _tmp4_;
-#line 1291 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), FALSE);
-#line 1291 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (item), FALSE);
-#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = checkerboard_item_get_has_tags (item);
-#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_;
-#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp2_) {
-#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = TRUE;
-#line 7672 "CheckerboardLayout.c"
- } else {
-#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = checkerboard_layout_is_drag_select_active (self);
-#line 7676 "CheckerboardLayout.c"
- }
-#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 1293 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = FALSE;
-#line 1293 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7684 "CheckerboardLayout.c"
- }
-#line 1294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- tag_index = checkerboard_layout_internal_handle_tag_mouse_event (self, item, x, y);
-#line 1295 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = tag_index;
-#line 1295 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_highlight_user_visible_tag (item, _tmp3_);
-#line 1296 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = tag_index;
-#line 1296 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp4_ >= 0;
-#line 1296 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7698 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_layout_handle_left_click (CheckerboardLayout* self,
- CheckerboardItem* item,
- gdouble xd,
- gdouble yd,
- GdkModifierType mask)
-{
- gboolean result = FALSE;
- gint tag_index = 0;
- gint _tmp0_;
-#line 1299 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), FALSE);
-#line 1299 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (item), FALSE);
-#line 1300 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- tag_index = checkerboard_layout_internal_handle_tag_mouse_event (self, item, (gint) round (xd), (gint) round (yd));
-#line 1301 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = tag_index;
-#line 1301 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ >= 0) {
-#line 7722 "CheckerboardLayout.c"
- Tag* tag = NULL;
- gint _tmp1_;
- Tag* _tmp2_;
- LibraryWindow* _tmp3_;
- LibraryWindow* _tmp4_;
- Tag* _tmp5_;
-#line 1302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = tag_index;
-#line 1302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = checkerboard_item_get_user_visible_tag (item, _tmp1_);
-#line 1302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- tag = _tmp2_;
-#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = library_window_get_app ();
-#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_;
-#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = tag;
-#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- library_window_switch_to_tag (_tmp4_, _tmp5_);
-#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp4_);
-#line 1304 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = TRUE;
-#line 1304 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (tag);
-#line 1304 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7751 "CheckerboardLayout.c"
- }
-#line 1306 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = FALSE;
-#line 1306 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7757 "CheckerboardLayout.c"
-}
-
-
-GeeList*
-checkerboard_layout_get_visible_items (CheckerboardLayout* self)
-{
- GeeList* result = NULL;
- GdkRectangle _tmp0_;
- GeeList* _tmp1_;
-#line 1309 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL);
-#line 1310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->visible_page;
-#line 1310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = checkerboard_layout_intersection (self, &_tmp0_);
-#line 1310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp1_;
-#line 1310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 7777 "CheckerboardLayout.c"
-}
-
-
-GeeList*
-checkerboard_layout_intersection (CheckerboardLayout* self,
- GdkRectangle* area)
-{
- GeeList* result = NULL;
- GeeArrayList* intersects = NULL;
- GeeArrayList* _tmp0_;
- GtkAllocation allocation = {0};
- GtkAllocation _tmp1_ = {0};
- GdkRectangle bitbucket = {0};
- CheckerboardLayoutLayoutRow** _tmp2_;
- gint _tmp2__length1;
-#line 1313 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL);
-#line 1313 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (area != NULL, NULL);
-#line 1314 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = gee_array_list_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1314 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- intersects = _tmp0_;
-#line 1317 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp1_);
-#line 1317 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- allocation = _tmp1_;
-#line 1319 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&bitbucket, 0, sizeof (GdkRectangle));
-#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->item_rows;
-#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2__length1 = self->priv->item_rows_length1;
-#line 7811 "CheckerboardLayout.c"
- {
- CheckerboardLayoutLayoutRow** row_collection = NULL;
- gint row_collection_length1 = 0;
- gint _row_collection_size_ = 0;
- gint row_it = 0;
-#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_collection = _tmp2_;
-#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_collection_length1 = _tmp2__length1;
-#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- for (row_it = 0; row_it < _tmp2__length1; row_it = row_it + 1) {
-#line 7823 "CheckerboardLayout.c"
- CheckerboardLayoutLayoutRow* _tmp3_;
- CheckerboardLayoutLayoutRow* row = NULL;
-#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _checkerboard_layout_layout_row_ref0 (row_collection[row_it]);
-#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp3_;
-#line 7830 "CheckerboardLayout.c"
- {
- CheckerboardLayoutLayoutRow* _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- GdkRectangle _tmp7_;
- gint _tmp8_;
- CheckerboardLayoutLayoutRow* _tmp9_;
- gint _tmp10_;
- CheckerboardLayoutLayoutRow* _tmp11_;
- gint _tmp12_;
- CheckerboardLayoutLayoutRow* _tmp13_;
- gint _tmp14_;
- GdkRectangle _tmp15_;
- gint _tmp16_;
- GdkRectangle row_rect = {0};
- CheckerboardLayoutLayoutRow* _tmp17_;
- gint _tmp18_;
- GtkAllocation _tmp19_;
- gint _tmp20_;
- CheckerboardLayoutLayoutRow* _tmp21_;
- gint _tmp22_;
- GdkRectangle _tmp23_;
- GdkRectangle _tmp24_ = {0};
- gboolean _tmp25_;
-#line 1321 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = row;
-#line 1321 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp4_ == NULL) {
-#line 1322 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (row);
-#line 1322 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- continue;
-#line 7863 "CheckerboardLayout.c"
- }
-#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = *area;
-#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = _tmp5_.y;
-#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = *area;
-#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _tmp7_.height;
-#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = row;
-#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _tmp9_->y;
-#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if ((_tmp6_ + _tmp8_) < _tmp10_) {
-#line 1326 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (row);
-#line 1326 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 7883 "CheckerboardLayout.c"
- }
-#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = row;
-#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _tmp11_->y;
-#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = row;
-#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = _tmp13_->height;
-#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = *area;
-#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = _tmp15_.y;
-#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if ((_tmp12_ + _tmp14_) < _tmp16_) {
-#line 1331 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (row);
-#line 1331 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- continue;
-#line 7903 "CheckerboardLayout.c"
- }
-#line 1335 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&row_rect, 0, sizeof (GdkRectangle));
-#line 1336 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_rect.x = 0;
-#line 1337 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = row;
-#line 1337 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = _tmp17_->y;
-#line 1337 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_rect.y = _tmp18_;
-#line 1338 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = allocation;
-#line 1338 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = _tmp19_.width;
-#line 1338 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_rect.width = _tmp20_;
-#line 1339 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = row;
-#line 1339 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = _tmp21_->height;
-#line 1339 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_rect.height = _tmp22_;
-#line 1341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = row_rect;
-#line 1341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = gdk_rectangle_intersect (area, &_tmp23_, &_tmp24_);
-#line 1341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- bitbucket = _tmp24_;
-#line 1341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp25_) {
-#line 7935 "CheckerboardLayout.c"
- CheckerboardLayoutLayoutRow* _tmp26_;
- CheckerboardItem** _tmp27_;
- gint _tmp27__length1;
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = row;
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = _tmp26_->items;
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27__length1 = _tmp26_->items_length1;
-#line 7945 "CheckerboardLayout.c"
- {
- CheckerboardItem** item_collection = NULL;
- gint item_collection_length1 = 0;
- gint _item_collection_size_ = 0;
- gint item_it = 0;
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item_collection = _tmp27_;
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item_collection_length1 = _tmp27__length1;
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- for (item_it = 0; item_it < _tmp27__length1; item_it = item_it + 1) {
-#line 7957 "CheckerboardLayout.c"
- CheckerboardItem* _tmp28_;
- CheckerboardItem* item = NULL;
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = _g_object_ref0 (item_collection[item_it]);
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = _tmp28_;
-#line 7964 "CheckerboardLayout.c"
- {
- CheckerboardItem* _tmp29_;
- CheckerboardItem* _tmp30_;
- GdkRectangle _tmp31_;
- GdkRectangle _tmp32_ = {0};
- gboolean _tmp33_;
-#line 1344 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = item;
-#line 1344 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp29_ == NULL) {
-#line 1345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 1345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- continue;
-#line 7979 "CheckerboardLayout.c"
- }
-#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = item;
-#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = _tmp30_->allocation;
-#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = gdk_rectangle_intersect (area, &_tmp31_, &_tmp32_);
-#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- bitbucket = _tmp32_;
-#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp33_) {
-#line 7991 "CheckerboardLayout.c"
- GeeArrayList* _tmp34_;
- CheckerboardItem* _tmp35_;
-#line 1348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = intersects;
-#line 1348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = item;
-#line 1348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp35_);
-#line 8000 "CheckerboardLayout.c"
- }
-#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 8004 "CheckerboardLayout.c"
- }
- }
- }
- }
-#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (row);
-#line 8011 "CheckerboardLayout.c"
- }
- }
- }
-#line 1353 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (intersects, GEE_TYPE_LIST, GeeList);
-#line 1353 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8019 "CheckerboardLayout.c"
-}
-
-
-CheckerboardItem*
-checkerboard_layout_get_item_relative_to (CheckerboardLayout* self,
- CheckerboardItem* item,
- CompassPoint point)
-{
- CheckerboardItem* result = NULL;
- ViewCollection* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint col = 0;
- gint row = 0;
- gboolean _tmp3_ = FALSE;
- gint _tmp4_;
- CheckerboardItem* new_item = NULL;
- gint _tmp27_;
- gint _tmp28_;
- CheckerboardItem* _tmp29_;
- gboolean _tmp30_ = FALSE;
- CheckerboardItem* _tmp31_;
- CheckerboardItem* _tmp35_ = NULL;
- CheckerboardItem* _tmp36_;
- CheckerboardItem* _tmp38_;
-#line 1356 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL);
-#line 1356 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_ITEM (item), NULL);
-#line 1357 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->view;
-#line 1357 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)) == 0) {
-#line 1358 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1358 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8057 "CheckerboardLayout.c"
- }
-#line 1360 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->columns;
-#line 1360 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp1_ > 0, "columns > 0");
-#line 1361 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->rows;
-#line 1361 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp2_ > 0, "rows > 0");
-#line 1363 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = checkerboard_item_get_column (item);
-#line 1364 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = checkerboard_item_get_row (item);
-#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = col;
-#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp4_ < 0) {
-#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = TRUE;
-#line 8077 "CheckerboardLayout.c"
- } else {
- gint _tmp5_;
-#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = row;
-#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp5_ < 0;
-#line 8084 "CheckerboardLayout.c"
- }
-#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp3_) {
-#line 8088 "CheckerboardLayout.c"
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 1367 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = checkerboard_item_get_title (item);
-#line 1367 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _tmp6_;
-#line 1367 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_critical ("CheckerboardLayout.vala:1367: Attempting to locate item not placed in " \
-"layout: %s", _tmp7_);
-#line 1367 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp7_);
-#line 1369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8103 "CheckerboardLayout.c"
- }
-#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- switch (point) {
-#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- case COMPASS_POINT_NORTH:
-#line 8109 "CheckerboardLayout.c"
- {
- gint _tmp8_;
- gint _tmp9_;
-#line 1374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = row;
-#line 1374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp8_ - 1;
-#line 1374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = row;
-#line 1374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp9_ < 0) {
-#line 1375 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = 0;
-#line 8123 "CheckerboardLayout.c"
- }
-#line 1376 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 8127 "CheckerboardLayout.c"
- }
-#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- case COMPASS_POINT_SOUTH:
-#line 8131 "CheckerboardLayout.c"
- {
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = row;
-#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp10_ + 1;
-#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = row;
-#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = self->priv->rows;
-#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp11_ >= _tmp12_) {
-#line 8146 "CheckerboardLayout.c"
- gint _tmp13_;
-#line 1380 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = self->priv->rows;
-#line 1380 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp13_ - 1;
-#line 8152 "CheckerboardLayout.c"
- }
-#line 1381 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 8156 "CheckerboardLayout.c"
- }
-#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- case COMPASS_POINT_EAST:
-#line 8160 "CheckerboardLayout.c"
- {
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
-#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = col;
-#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = _tmp14_ + 1;
-#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = col;
-#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = self->priv->columns;
-#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp15_ >= _tmp16_) {
-#line 8175 "CheckerboardLayout.c"
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
-#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = row;
-#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp17_ + 1;
-#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = row;
-#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = self->priv->rows;
-#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp18_ >= _tmp19_) {
-#line 8189 "CheckerboardLayout.c"
- gint _tmp20_;
- gint _tmp21_;
-#line 1386 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = self->priv->rows;
-#line 1386 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp20_ - 1;
-#line 1387 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = self->priv->columns;
-#line 1387 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = _tmp21_ - 1;
-#line 8200 "CheckerboardLayout.c"
- } else {
-#line 1389 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 8204 "CheckerboardLayout.c"
- }
- }
-#line 1392 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 8209 "CheckerboardLayout.c"
- }
-#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- case COMPASS_POINT_WEST:
-#line 8213 "CheckerboardLayout.c"
- {
- gint _tmp22_;
- gint _tmp23_;
-#line 1395 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = col;
-#line 1395 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = _tmp22_ - 1;
-#line 1395 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = col;
-#line 1395 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp23_ < 0) {
-#line 8225 "CheckerboardLayout.c"
- gint _tmp24_;
- gint _tmp25_;
-#line 1396 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = row;
-#line 1396 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp24_ - 1;
-#line 1396 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = row;
-#line 1396 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp25_ < 0) {
-#line 1397 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = 0;
-#line 1398 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 8240 "CheckerboardLayout.c"
- } else {
- gint _tmp26_;
-#line 1400 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = self->priv->columns;
-#line 1400 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = _tmp26_ - 1;
-#line 8247 "CheckerboardLayout.c"
- }
- }
-#line 1403 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 8252 "CheckerboardLayout.c"
- }
- default:
- {
-#line 1406 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_error ("CheckerboardLayout.vala:1406: Bad compass point %d", (gint) point);
-#line 8258 "CheckerboardLayout.c"
- }
- }
-#line 1409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = col;
-#line 1409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = row;
-#line 1409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = checkerboard_layout_get_item_at_coordinate (self, _tmp27_, _tmp28_);
-#line 1409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- new_item = _tmp29_;
-#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = new_item;
-#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp31_ == NULL) {
-#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = point == COMPASS_POINT_SOUTH;
-#line 8275 "CheckerboardLayout.c"
- } else {
-#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = FALSE;
-#line 8279 "CheckerboardLayout.c"
- }
-#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp30_) {
-#line 8283 "CheckerboardLayout.c"
- ViewCollection* _tmp32_;
- DataView* _tmp33_;
- CheckerboardItem* _tmp34_;
-#line 1413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp32_ = self->priv->view;
-#line 1413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = view_collection_get_last (_tmp32_);
-#line 1413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (new_item);
-#line 1413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- new_item = G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1414 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = new_item;
-#line 1414 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (checkerboard_item_get_row (_tmp34_) <= checkerboard_item_get_row (item)) {
-#line 1415 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (new_item);
-#line 1415 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- new_item = NULL;
-#line 8303 "CheckerboardLayout.c"
- }
- }
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = new_item;
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp36_ != NULL) {
-#line 8310 "CheckerboardLayout.c"
- CheckerboardItem* _tmp37_;
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = new_item;
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = _tmp37_;
-#line 8316 "CheckerboardLayout.c"
- } else {
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = item;
-#line 8320 "CheckerboardLayout.c"
- }
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = _g_object_ref0 (_tmp35_);
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp38_;
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (new_item);
-#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8330 "CheckerboardLayout.c"
-}
-
-
-CheckerboardItem*
-checkerboard_layout_get_item_at_coordinate (CheckerboardLayout* self,
- gint col,
- gint row)
-{
- CheckerboardItem* result = NULL;
- CheckerboardLayoutLayoutRow** _tmp0_;
- gint _tmp0__length1;
- CheckerboardLayoutLayoutRow* item_row = NULL;
- CheckerboardLayoutLayoutRow** _tmp1_;
- gint _tmp1__length1;
- CheckerboardLayoutLayoutRow* _tmp2_;
- CheckerboardLayoutLayoutRow* _tmp3_;
- CheckerboardLayoutLayoutRow* _tmp4_;
- CheckerboardLayoutLayoutRow* _tmp5_;
- CheckerboardItem** _tmp6_;
- gint _tmp6__length1;
- CheckerboardLayoutLayoutRow* _tmp7_;
- CheckerboardItem** _tmp8_;
- gint _tmp8__length1;
- CheckerboardItem* _tmp9_;
- CheckerboardItem* _tmp10_;
-#line 1421 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL);
-#line 1422 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->item_rows;
-#line 1422 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0__length1 = self->priv->item_rows_length1;
-#line 1422 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (row >= _tmp0__length1) {
-#line 1423 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1423 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8368 "CheckerboardLayout.c"
- }
-#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->item_rows;
-#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1__length1 = self->priv->item_rows_length1;
-#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_[row];
-#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _checkerboard_layout_layout_row_ref0 (_tmp2_);
-#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item_row = _tmp3_;
-#line 1426 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = item_row;
-#line 1426 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp4_ == NULL) {
-#line 1427 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1427 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (item_row);
-#line 1427 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8390 "CheckerboardLayout.c"
- }
-#line 1429 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = item_row;
-#line 1429 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = _tmp5_->items;
-#line 1429 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6__length1 = _tmp5_->items_length1;
-#line 1429 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (col >= _tmp6__length1) {
-#line 1430 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1430 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (item_row);
-#line 1430 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8406 "CheckerboardLayout.c"
- }
-#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = item_row;
-#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _tmp7_->items;
-#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8__length1 = _tmp7_->items_length1;
-#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = _tmp8_[col];
-#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp10_;
-#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (item_row);
-#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8424 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_layout_set_drag_select_origin (CheckerboardLayout* self,
- gint x,
- gint y)
-{
- GtkAllocation allocation = {0};
- GtkAllocation _tmp0_ = {0};
- GtkAllocation _tmp1_;
- gint _tmp2_;
- GtkAllocation _tmp3_;
- gint _tmp4_;
-#line 1435 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1436 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_clear_drag_select (self);
-#line 1439 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp0_);
-#line 1439 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- allocation = _tmp0_;
-#line 1441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = allocation;
-#line 1441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_.width;
-#line 1441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->drag_origin.x = CLAMP (x, 0, _tmp2_);
-#line 1442 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = allocation;
-#line 1442 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_.height;
-#line 1442 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->drag_origin.y = CLAMP (y, 0, _tmp4_);
-#line 8459 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_layout_set_drag_select_endpoint (CheckerboardLayout* self,
- gint x,
- gint y)
-{
- GtkAllocation allocation = {0};
- GtkAllocation _tmp0_ = {0};
- GtkAllocation _tmp1_;
- gint _tmp2_;
- GtkAllocation _tmp3_;
- gint _tmp4_;
- GdkRectangle old_selection_band = {0};
- GdkRectangle _tmp5_;
- GdkPoint _tmp6_;
- GdkPoint _tmp7_;
- Box _tmp8_ = {0};
- GdkRectangle _tmp9_ = {0};
- GdkWindow* _tmp10_;
-#line 1445 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1447 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp0_);
-#line 1447 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- allocation = _tmp0_;
-#line 1449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = allocation;
-#line 1449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_.width;
-#line 1449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->drag_endpoint.x = CLAMP (x, 0, _tmp2_);
-#line 1450 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = allocation;
-#line 1450 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_.height;
-#line 1450 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->drag_endpoint.y = CLAMP (y, 0, _tmp4_);
-#line 1454 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = self->priv->selection_band;
-#line 1454 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- old_selection_band = _tmp5_;
-#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->drag_origin;
-#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = self->priv->drag_endpoint;
-#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- box_from_points (&_tmp6_, &_tmp7_, &_tmp8_);
-#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- box_get_rectangle (&_tmp8_, &_tmp9_);
-#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->selection_band = _tmp9_;
-#line 1458 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1458 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp10_ != NULL) {
-#line 8517 "CheckerboardLayout.c"
- GdkRectangle _union_ = {0};
- GdkRectangle _tmp11_;
- GdkRectangle _tmp12_ = {0};
- GdkRectangle _tmp13_;
- gint _tmp14_;
- GdkRectangle _tmp15_;
- gint _tmp16_;
- GdkRectangle _tmp17_;
- gint _tmp18_;
- GdkRectangle _tmp19_;
- gint _tmp20_;
-#line 1460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = old_selection_band;
-#line 1460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gdk_rectangle_union (&self->priv->selection_band, &_tmp11_, &_tmp12_);
-#line 1460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _union_ = _tmp12_;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = _union_;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = _tmp13_.x;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _union_;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = _tmp15_.y;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = _union_;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = _tmp17_.width;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _union_;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = _tmp19_.height;
-#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_queue_draw_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp14_, _tmp16_, _tmp18_, _tmp20_);
-#line 8553 "CheckerboardLayout.c"
- }
-}
-
-
-GeeList*
-checkerboard_layout_items_in_selection_band (CheckerboardLayout* self)
-{
- GeeList* result = NULL;
- GdkRectangle _tmp0_;
- Dimensions _tmp1_ = {0};
- GdkRectangle _tmp2_;
- GeeList* _tmp3_;
-#line 1466 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL);
-#line 1467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->selection_band;
-#line 1467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dimensions_for_rectangle (&_tmp0_, &_tmp1_);
-#line 1467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!dimensions_has_area (&_tmp1_)) {
-#line 1468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = NULL;
-#line 1468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8578 "CheckerboardLayout.c"
- }
-#line 1470 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->selection_band;
-#line 1470 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = checkerboard_layout_intersection (self, &_tmp2_);
-#line 1470 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp3_;
-#line 1470 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8588 "CheckerboardLayout.c"
-}
-
-
-gboolean
-checkerboard_layout_is_drag_select_active (CheckerboardLayout* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GdkPoint _tmp1_;
- gint _tmp2_;
-#line 1473 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), FALSE);
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->drag_origin;
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_.x;
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_ >= 0) {
-#line 8607 "CheckerboardLayout.c"
- GdkPoint _tmp3_;
- gint _tmp4_;
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->drag_origin;
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_.y;
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp4_ >= 0;
-#line 8616 "CheckerboardLayout.c"
- } else {
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = FALSE;
-#line 8620 "CheckerboardLayout.c"
- }
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp0_;
-#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 8626 "CheckerboardLayout.c"
-}
-
-
-void
-checkerboard_layout_clear_drag_select (CheckerboardLayout* self)
-{
-#line 1477 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1478 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&self->priv->selection_band, 0, sizeof (GdkRectangle));
-#line 1479 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->drag_origin.x = -1;
-#line 1480 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->drag_origin.y = -1;
-#line 1481 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->drag_endpoint.x = -1;
-#line 1482 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->drag_endpoint.y = -1;
-#line 1485 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 8647 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_viewport_resized (CheckerboardLayout* self)
-{
- GdkRectangle _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 1488 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1490 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_update_visible_page (self);
-#line 1493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->visible_page;
-#line 1493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_.width;
-#line 1493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->last_width;
-#line 1493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp1_ != _tmp2_) {
-#line 8669 "CheckerboardLayout.c"
- gint old_width = 0;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- GdkRectangle _tmp7_;
- gint _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1494 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->last_width;
-#line 1494 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- old_width = _tmp3_;
-#line 1495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->visible_page;
-#line 1495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_.width;
-#line 1495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->last_width = _tmp5_;
-#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = old_width;
-#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = self->priv->visible_page;
-#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _tmp7_.width;
-#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = g_strdup_printf ("viewport_resized (%d -> %d)", _tmp6_, _tmp8_);
-#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _tmp9_;
-#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, _tmp10_);
-#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp10_);
-#line 8703 "CheckerboardLayout.c"
- } else {
- gint _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = self->priv->last_width;
-#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = g_strdup_printf ("viewport_resized (same width=%d)", _tmp11_);
-#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = _tmp12_;
-#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_exposure (self, _tmp13_);
-#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp13_);
-#line 8718 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_layout_expose_items (CheckerboardLayout* self,
- const gchar* caller)
-{
- GeeHashSet* new_exposed_items = NULL;
- GeeHashSet* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* items = NULL;
- GeeList* _tmp2_;
- GeeHashSet* _tmp25_;
- GeeHashSet* _tmp26_;
- ViewCollection* _tmp27_;
-#line 1504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (caller != NULL);
-#line 1507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = gee_hash_set_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- new_exposed_items = _tmp0_;
-#line 1509 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->view;
-#line 1509 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1511 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = checkerboard_layout_get_visible_items (self);
-#line 1511 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- items = _tmp2_;
-#line 8751 "CheckerboardLayout.c"
- {
- GeeList* _item_list = NULL;
- GeeList* _tmp3_;
- GeeList* _tmp4_;
- gint _item_size = 0;
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _item_index = 0;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = items;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_list = _tmp4_;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _item_list;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _tmp6_;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_size = _tmp7_;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_index = -1;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 8779 "CheckerboardLayout.c"
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- CheckerboardItem* item = NULL;
- GeeList* _tmp11_;
- gint _tmp12_;
- gpointer _tmp13_;
- GeeHashSet* _tmp14_;
- CheckerboardItem* _tmp15_;
- GeeHashSet* _tmp16_;
- CheckerboardItem* _tmp17_;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _item_index;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_index = _tmp8_ + 1;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = _item_index;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _item_size;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp9_ < _tmp10_)) {
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 8803 "CheckerboardLayout.c"
- }
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = _item_list;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _item_index;
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = gee_list_get (_tmp11_, _tmp12_);
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = (CheckerboardItem*) _tmp13_;
-#line 1513 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = new_exposed_items;
-#line 1513 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = item;
-#line 1513 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 1516 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = self->priv->exposed_items;
-#line 1516 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = item;
-#line 1516 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_)) {
-#line 8825 "CheckerboardLayout.c"
- CheckerboardItem* _tmp18_;
-#line 1517 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = item;
-#line 1517 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_exposed (_tmp18_);
-#line 8831 "CheckerboardLayout.c"
- }
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 8835 "CheckerboardLayout.c"
- }
-#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_item_list);
-#line 8839 "CheckerboardLayout.c"
- }
- {
- GeeIterator* _item_it = NULL;
- GeeHashSet* _tmp19_;
- GeeIterator* _tmp20_;
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = self->priv->exposed_items;
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_it = _tmp20_;
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 8853 "CheckerboardLayout.c"
- GeeIterator* _tmp21_;
- CheckerboardItem* item = NULL;
- GeeIterator* _tmp22_;
- gpointer _tmp23_;
- CheckerboardItem* _tmp24_;
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = _item_it;
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!gee_iterator_next (_tmp21_)) {
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 8865 "CheckerboardLayout.c"
- }
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = _item_it;
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = gee_iterator_get (_tmp22_);
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = (CheckerboardItem*) _tmp23_;
-#line 1522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = item;
-#line 1522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_unexposed (_tmp24_);
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 8879 "CheckerboardLayout.c"
- }
-#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_item_it);
-#line 8883 "CheckerboardLayout.c"
- }
-#line 1525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = new_exposed_items;
-#line 1525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = _g_object_ref0 (_tmp25_);
-#line 1525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->exposed_items);
-#line 1525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposed_items = _tmp26_;
-#line 1526 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposure_dirty = FALSE;
-#line 1531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = self->priv->view;
-#line 1531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (items);
-#line 1504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (new_exposed_items);
-#line 8903 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_unexpose_items (CheckerboardLayout* self,
- const gchar* caller)
-{
- ViewCollection* _tmp0_;
- GeeHashSet* _tmp7_;
- ViewCollection* _tmp8_;
-#line 1537 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1537 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (caller != NULL);
-#line 1538 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->view;
-#line 1538 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 8922 "CheckerboardLayout.c"
- {
- GeeIterator* _item_it = NULL;
- GeeHashSet* _tmp1_;
- GeeIterator* _tmp2_;
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->exposed_items;
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_it = _tmp2_;
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 8935 "CheckerboardLayout.c"
- GeeIterator* _tmp3_;
- CheckerboardItem* item = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- CheckerboardItem* _tmp6_;
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _item_it;
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 8947 "CheckerboardLayout.c"
- }
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _item_it;
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = (CheckerboardItem*) _tmp5_;
-#line 1541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = item;
-#line 1541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_unexposed (_tmp6_);
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 8961 "CheckerboardLayout.c"
- }
-#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_item_it);
-#line 8965 "CheckerboardLayout.c"
- }
-#line 1543 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = self->priv->exposed_items;
-#line 1543 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1544 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposure_dirty = FALSE;
-#line 1549 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = self->priv->view;
-#line 1549 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
-#line 8977 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_reflow (CheckerboardLayout* self,
- const gchar* caller)
-{
- const gchar* _tmp0_;
- GtkAllocation allocation = {0};
- GtkAllocation _tmp1_ = {0};
- gint _tmp2_ = 0;
- GdkRectangle _tmp3_;
- gint _tmp4_;
- gint visible_width = 0;
- gint _tmp9_;
- gint total_items = 0;
- ViewCollection* _tmp10_;
- gint _tmp11_;
- gboolean _tmp14_ = FALSE;
- CheckerboardItem* _tmp15_;
- gint max_cols = 0;
- gint _tmp17_;
- gint _tmp60_;
- gint max_rows = 0;
- gint _tmp61_;
- gint _tmp62_;
- gint row = 0;
- gint tallest = 0;
- gint widest = 0;
- gint row_alignment_point = 0;
- gint total_width = 0;
- gint col = 0;
- gint* column_widths = NULL;
- gint _tmp63_;
- gint* _tmp64_;
- gint column_widths_length1;
- gint _column_widths_size_;
- gint* row_heights = NULL;
- gint _tmp65_;
- gint* _tmp66_;
- gint row_heights_length1;
- gint _row_heights_size_;
- gint* alignment_points = NULL;
- gint _tmp67_;
- gint* _tmp68_;
- gint alignment_points_length1;
- gint _alignment_points_size_;
- gint gutter = 0;
- gint _tmp177_;
- CheckerboardLayoutLayoutRow** _tmp178_;
- gint x = 0;
- gint _tmp179_;
- gint y = 0;
- CheckerboardLayoutLayoutRow* current_row = NULL;
- CheckerboardLayoutLayoutRow* _tmp248_;
- gint _tmp254_;
- gint _tmp255_;
- gint _tmp256_;
- gint _tmp257_;
- gint total_height = 0;
- gint _tmp258_;
- gint* _tmp259_;
- gint _tmp259__length1;
- gint _tmp260_;
- gint _tmp261_;
- gboolean _tmp262_ = FALSE;
- gint _tmp263_;
- GtkAllocation _tmp264_;
- gint _tmp265_;
-#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (caller != NULL);
-#line 1556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->reflow_needed = FALSE;
-#line 1559 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->message;
-#line 1559 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_ != NULL) {
-#line 1560 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 9059 "CheckerboardLayout.c"
- }
-#line 1563 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp1_);
-#line 1563 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- allocation = _tmp1_;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->visible_page;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_.width;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp4_ > 0) {
-#line 9071 "CheckerboardLayout.c"
- GdkRectangle _tmp5_;
- gint _tmp6_;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = self->priv->visible_page;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = _tmp5_.width;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp6_;
-#line 9080 "CheckerboardLayout.c"
- } else {
- GtkAllocation _tmp7_;
- gint _tmp8_;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = allocation;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = _tmp7_.width;
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp8_;
-#line 9090 "CheckerboardLayout.c"
- }
-#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- visible_width = _tmp2_;
-#line 1573 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = visible_width;
-#line 1573 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp9_ <= 1) {
-#line 1574 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 9100 "CheckerboardLayout.c"
- }
-#line 1576 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = self->priv->view;
-#line 1576 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- total_items = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1579 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = total_items;
-#line 1579 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp11_ == 0) {
-#line 9110 "CheckerboardLayout.c"
- gint _tmp12_;
- CheckerboardLayoutLayoutRow** _tmp13_;
-#line 1580 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = visible_width;
-#line 1580 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp12_, 0);
-#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = g_new0 (CheckerboardLayoutLayoutRow*, 0 + 1);
-#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL);
-#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = _tmp13_;
-#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows_length1 = 0;
-#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->_item_rows_size_ = self->priv->item_rows_length1;
-#line 1583 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 9129 "CheckerboardLayout.c"
- }
-#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = self->priv->anchor;
-#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp15_ == NULL) {
-#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = TRUE;
-#line 9137 "CheckerboardLayout.c"
- } else {
- CheckerboardItem* _tmp16_;
-#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = self->priv->anchor;
-#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = !data_view_is_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_VIEW, DataView));
-#line 9144 "CheckerboardLayout.c"
- }
-#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp14_) {
-#line 1592 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_update_anchor (self);
-#line 9150 "CheckerboardLayout.c"
- }
-#line 1595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL);
-#line 1595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = NULL;
-#line 1595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows_length1 = 0;
-#line 1595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->_item_rows_size_ = self->priv->item_rows_length1;
-#line 1600 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_cols = 0;
-#line 1601 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = self->priv->scale;
-#line 1601 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp17_ > 0) {
-#line 9166 "CheckerboardLayout.c"
- gint remaining_width = 0;
- gint _tmp18_;
- gint max_item_width = 0;
- gint _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp30_;
- gint _tmp31_;
-#line 1603 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = visible_width;
-#line 1603 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- remaining_width = _tmp18_ - (CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING * 2);
-#line 1604 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = self->priv->scale;
-#line 1604 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_item_width = checkerboard_item_get_max_width (_tmp19_);
-#line 1605 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = remaining_width;
-#line 1605 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = max_item_width;
-#line 1605 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_cols = _tmp20_ / _tmp21_;
-#line 1606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = max_cols;
-#line 1606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp22_ <= 0) {
-#line 1607 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_cols = 1;
-#line 9196 "CheckerboardLayout.c"
- }
-#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 9200 "CheckerboardLayout.c"
- gboolean _tmp23_ = FALSE;
- gint _tmp24_;
- gint _tmp29_;
-#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = max_cols;
-#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp24_ > 1) {
-#line 9208 "CheckerboardLayout.c"
- gint _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
-#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = max_cols;
-#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = max_item_width;
-#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = max_cols;
-#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = remaining_width;
-#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = ((_tmp25_ * _tmp26_) + ((_tmp27_ - 1) * CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING)) > _tmp28_;
-#line 9223 "CheckerboardLayout.c"
- } else {
-#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = FALSE;
-#line 9227 "CheckerboardLayout.c"
- }
-#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp23_) {
-#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 9233 "CheckerboardLayout.c"
- }
-#line 1616 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = max_cols;
-#line 1616 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_cols = _tmp29_ - 1;
-#line 9239 "CheckerboardLayout.c"
- }
-#line 1620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = total_items;
-#line 1620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = max_cols;
-#line 1620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp30_ < _tmp31_) {
-#line 9247 "CheckerboardLayout.c"
- gint _tmp32_;
-#line 1621 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp32_ = total_items;
-#line 1621 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_cols = _tmp32_;
-#line 9253 "CheckerboardLayout.c"
- }
- } else {
- gint x = 0;
- gint col = 0;
- gint row_width = 0;
- gint widest_row = 0;
- gint _tmp57_;
- gint _tmp58_;
-#line 1628 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING;
-#line 1629 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1630 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_width = 0;
-#line 1631 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- widest_row = 0;
-#line 9270 "CheckerboardLayout.c"
- {
- gint ctr = 0;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ctr = 0;
-#line 9275 "CheckerboardLayout.c"
- {
- gboolean _tmp33_ = FALSE;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = TRUE;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 9282 "CheckerboardLayout.c"
- gint _tmp35_;
- gint _tmp36_;
- CheckerboardItem* item = NULL;
- ViewCollection* _tmp37_;
- gint _tmp38_;
- DataObject* _tmp39_;
- Dimensions req = {0};
- CheckerboardItem* _tmp40_;
- Dimensions _tmp41_;
- gint _tmp42_;
- Dimensions _tmp43_;
- gint _tmp44_;
- gint _tmp45_;
- gint _tmp50_;
- Dimensions _tmp51_;
- gint _tmp52_;
- gint _tmp53_;
- Dimensions _tmp54_;
- gint _tmp55_;
- gint _tmp56_;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp33_) {
-#line 9305 "CheckerboardLayout.c"
- gint _tmp34_;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = ctr;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ctr = _tmp34_ + 1;
-#line 9311 "CheckerboardLayout.c"
- }
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = FALSE;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = ctr;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = total_items;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp35_ < _tmp36_)) {
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 9323 "CheckerboardLayout.c"
- }
-#line 1634 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = self->priv->view;
-#line 1634 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = ctr;
-#line 1634 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp39_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATA_COLLECTION, DataCollection), _tmp38_);
-#line 1634 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1635 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp40_ = item;
-#line 1635 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp41_ = _tmp40_->requisition;
-#line 1635 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- req = _tmp41_;
-#line 1638 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (dimensions_has_area (&req), "req.has_area()");
-#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp42_ = x;
-#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp43_ = req;
-#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp44_ = _tmp43_.width;
-#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp45_ = visible_width;
-#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (((_tmp42_ + _tmp44_) + CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING) > _tmp45_) {
-#line 9351 "CheckerboardLayout.c"
- gint _tmp46_;
- gint _tmp47_;
-#line 1642 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp46_ = row_width;
-#line 1642 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp47_ = widest_row;
-#line 1642 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp46_ > _tmp47_) {
-#line 9360 "CheckerboardLayout.c"
- gint _tmp48_;
- gint _tmp49_;
-#line 1643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp48_ = row_width;
-#line 1643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- widest_row = _tmp48_;
-#line 1644 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp49_ = col;
-#line 1644 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_cols = _tmp49_;
-#line 9371 "CheckerboardLayout.c"
- }
-#line 1647 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1648 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING;
-#line 1649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_width = 0;
-#line 9379 "CheckerboardLayout.c"
- }
-#line 1652 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp50_ = x;
-#line 1652 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp51_ = req;
-#line 1652 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp52_ = _tmp51_.width;
-#line 1652 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = _tmp50_ + (_tmp52_ + CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING);
-#line 1653 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp53_ = row_width;
-#line 1653 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp54_ = req;
-#line 1653 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp55_ = _tmp54_.width;
-#line 1653 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_width = _tmp53_ + _tmp55_;
-#line 1655 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp56_ = col;
-#line 1655 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = _tmp56_ + 1;
-#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 9403 "CheckerboardLayout.c"
- }
- }
- }
-#line 1659 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp57_ = row_width;
-#line 1659 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp58_ = widest_row;
-#line 1659 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp57_ > _tmp58_) {
-#line 9413 "CheckerboardLayout.c"
- gint _tmp59_;
-#line 1660 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp59_ = col;
-#line 1660 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_cols = _tmp59_;
-#line 9419 "CheckerboardLayout.c"
- }
- }
-#line 1668 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp60_ = max_cols;
-#line 1668 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp60_ > 0, "max_cols > 0");
-#line 1669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp61_ = total_items;
-#line 1669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp62_ = max_cols;
-#line 1669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_rows = (_tmp61_ / _tmp62_) + 1;
-#line 1673 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = 0;
-#line 1674 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- tallest = 0;
-#line 1675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- widest = 0;
-#line 1676 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_alignment_point = 0;
-#line 1677 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- total_width = 0;
-#line 1678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp63_ = max_cols;
-#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp64_ = g_new0 (gint, _tmp63_);
-#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- column_widths = _tmp64_;
-#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- column_widths_length1 = _tmp63_;
-#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _column_widths_size_ = column_widths_length1;
-#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp65_ = max_rows;
-#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp66_ = g_new0 (gint, _tmp65_);
-#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_heights = _tmp66_;
-#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_heights_length1 = _tmp65_;
-#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _row_heights_size_ = row_heights_length1;
-#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp67_ = max_rows;
-#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp68_ = g_new0 (gint, _tmp67_);
-#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- alignment_points = _tmp68_;
-#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- alignment_points_length1 = _tmp67_;
-#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _alignment_points_size_ = alignment_points_length1;
-#line 1682 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gutter = 0;
-#line 9476 "CheckerboardLayout.c"
- {
- gboolean _tmp69_ = FALSE;
-#line 1684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp69_ = TRUE;
-#line 1684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 9483 "CheckerboardLayout.c"
- gint _tmp124_;
- gint _tmp133_;
- gint _tmp134_;
- gint _tmp135_;
- gint _tmp136_;
- gint _tmp137_;
-#line 1684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp69_) {
-#line 9492 "CheckerboardLayout.c"
- }
-#line 1684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp69_ = FALSE;
-#line 9496 "CheckerboardLayout.c"
- {
- gint ctr = 0;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ctr = 0;
-#line 9501 "CheckerboardLayout.c"
- {
- gboolean _tmp70_ = FALSE;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp70_ = TRUE;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 9508 "CheckerboardLayout.c"
- gint _tmp72_;
- gint _tmp73_;
- CheckerboardItem* item = NULL;
- ViewCollection* _tmp74_;
- gint _tmp75_;
- DataObject* _tmp76_;
- Dimensions req = {0};
- CheckerboardItem* _tmp77_;
- Dimensions _tmp78_;
- gint alignment_point = 0;
- CheckerboardItem* _tmp79_;
- gint _tmp80_;
- Dimensions _tmp81_;
- gint _tmp82_;
- Dimensions _tmp83_;
- gint _tmp84_;
- gint _tmp85_;
- Dimensions _tmp88_;
- gint _tmp89_;
- gint _tmp90_;
- gint _tmp93_;
- gint _tmp94_;
- gint* _tmp96_;
- gint _tmp96__length1;
- gint _tmp97_;
- gint _tmp98_;
- Dimensions _tmp99_;
- gint _tmp100_;
- gint _tmp113_;
- gint _tmp114_;
- gint _tmp115_;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp70_) {
-#line 9542 "CheckerboardLayout.c"
- gint _tmp71_;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp71_ = ctr;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ctr = _tmp71_ + 1;
-#line 9548 "CheckerboardLayout.c"
- }
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp70_ = FALSE;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp72_ = ctr;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp73_ = total_items;
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp72_ < _tmp73_)) {
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 9560 "CheckerboardLayout.c"
- }
-#line 1686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp74_ = self->priv->view;
-#line 1686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp75_ = ctr;
-#line 1686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp76_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, TYPE_DATA_COLLECTION, DataCollection), _tmp75_);
-#line 1686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp77_ = item;
-#line 1687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp78_ = _tmp77_->requisition;
-#line 1687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- req = _tmp78_;
-#line 1688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp79_ = item;
-#line 1688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- alignment_point = checkerboard_item_get_alignment_point (_tmp79_);
-#line 1691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp80_ = alignment_point;
-#line 1691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp81_ = req;
-#line 1691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp82_ = _tmp81_.height;
-#line 1691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp80_ < _tmp82_, "alignment_point < req.height");
-#line 1693 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp83_ = req;
-#line 1693 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp84_ = _tmp83_.height;
-#line 1693 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp85_ = tallest;
-#line 1693 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp84_ > _tmp85_) {
-#line 9596 "CheckerboardLayout.c"
- Dimensions _tmp86_;
- gint _tmp87_;
-#line 1694 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp86_ = req;
-#line 1694 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp87_ = _tmp86_.height;
-#line 1694 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- tallest = _tmp87_;
-#line 9605 "CheckerboardLayout.c"
- }
-#line 1696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp88_ = req;
-#line 1696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp89_ = _tmp88_.width;
-#line 1696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp90_ = widest;
-#line 1696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp89_ > _tmp90_) {
-#line 9615 "CheckerboardLayout.c"
- Dimensions _tmp91_;
- gint _tmp92_;
-#line 1697 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp91_ = req;
-#line 1697 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp92_ = _tmp91_.width;
-#line 1697 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- widest = _tmp92_;
-#line 9624 "CheckerboardLayout.c"
- }
-#line 1699 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp93_ = alignment_point;
-#line 1699 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp94_ = row_alignment_point;
-#line 1699 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp93_ > _tmp94_) {
-#line 9632 "CheckerboardLayout.c"
- gint _tmp95_;
-#line 1700 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp95_ = alignment_point;
-#line 1700 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_alignment_point = _tmp95_;
-#line 9638 "CheckerboardLayout.c"
- }
-#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp96_ = column_widths;
-#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp96__length1 = column_widths_length1;
-#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp97_ = col;
-#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp98_ = _tmp96_[_tmp97_];
-#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp99_ = req;
-#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp100_ = _tmp99_.width;
-#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp98_ < _tmp100_) {
-#line 9654 "CheckerboardLayout.c"
- gint _tmp101_;
- gint* _tmp102_;
- gint _tmp102__length1;
- gint _tmp103_;
- gint _tmp104_;
- gint* _tmp105_;
- gint _tmp105__length1;
- gint _tmp106_;
- Dimensions _tmp107_;
- gint _tmp108_;
- gint _tmp109_;
- gint _tmp110_;
- Dimensions _tmp111_;
- gint _tmp112_;
-#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp101_ = total_width;
-#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp102_ = column_widths;
-#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp102__length1 = column_widths_length1;
-#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp103_ = col;
-#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp104_ = _tmp102_[_tmp103_];
-#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- total_width = _tmp101_ - _tmp104_;
-#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp105_ = column_widths;
-#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp105__length1 = column_widths_length1;
-#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp106_ = col;
-#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp107_ = req;
-#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp108_ = _tmp107_.width;
-#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp105_[_tmp106_] = _tmp108_;
-#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp109_ = _tmp105_[_tmp106_];
-#line 1707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp110_ = total_width;
-#line 1707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp111_ = req;
-#line 1707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp112_ = _tmp111_.width;
-#line 1707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- total_width = _tmp110_ + _tmp112_;
-#line 9703 "CheckerboardLayout.c"
- }
-#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp113_ = col;
-#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = _tmp113_ + 1;
-#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp114_ = col;
-#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp115_ = max_cols;
-#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp114_ >= _tmp115_) {
-#line 9715 "CheckerboardLayout.c"
- gint* _tmp116_;
- gint _tmp116__length1;
- gint _tmp117_;
- gint _tmp118_;
- gint _tmp119_;
- gint* _tmp120_;
- gint _tmp120__length1;
- gint _tmp121_;
- gint _tmp122_;
- gint _tmp123_;
-#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp116_ = alignment_points;
-#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp116__length1 = alignment_points_length1;
-#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp117_ = row;
-#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp118_ = row_alignment_point;
-#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp116_[_tmp117_] = _tmp118_;
-#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp119_ = _tmp116_[_tmp117_];
-#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp120_ = row_heights;
-#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp120__length1 = row_heights_length1;
-#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp121_ = row;
-#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp121_ + 1;
-#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp122_ = tallest;
-#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp120_[_tmp121_] = _tmp122_;
-#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp123_ = _tmp120_[_tmp121_];
-#line 1714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_alignment_point = 0;
-#line 1716 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- tallest = 0;
-#line 9758 "CheckerboardLayout.c"
- }
-#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 9762 "CheckerboardLayout.c"
- }
- }
- }
-#line 1721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp124_ = col;
-#line 1721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp124_ != 0) {
-#line 9770 "CheckerboardLayout.c"
- gint* _tmp125_;
- gint _tmp125__length1;
- gint _tmp126_;
- gint _tmp127_;
- gint _tmp128_;
- gint* _tmp129_;
- gint _tmp129__length1;
- gint _tmp130_;
- gint _tmp131_;
- gint _tmp132_;
-#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp125_ = alignment_points;
-#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp125__length1 = alignment_points_length1;
-#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp126_ = row;
-#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp127_ = row_alignment_point;
-#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp125_[_tmp126_] = _tmp127_;
-#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp128_ = _tmp125_[_tmp126_];
-#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp129_ = row_heights;
-#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp129__length1 = row_heights_length1;
-#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp130_ = row;
-#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp131_ = tallest;
-#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp129_[_tmp130_] = _tmp131_;
-#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp132_ = _tmp129_[_tmp130_];
-#line 9805 "CheckerboardLayout.c"
- }
-#line 1728 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp133_ = visible_width;
-#line 1728 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp134_ = total_width;
-#line 1728 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp135_ = max_cols;
-#line 1728 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gutter = (_tmp133_ - _tmp134_) / (_tmp135_ + 1);
-#line 1731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp136_ = max_cols;
-#line 1731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp136_ == 1) {
-#line 1732 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 9821 "CheckerboardLayout.c"
- }
-#line 1737 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp137_ = gutter;
-#line 1737 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp137_ < CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING) {
-#line 9827 "CheckerboardLayout.c"
- gint _tmp138_;
- gint _tmp139_;
- gint _tmp140_;
- gint _tmp141_;
- gint* _tmp142_;
- gint _tmp143_;
- gint* _tmp144_;
- gint _tmp145_;
- gint* _tmp146_;
-#line 1738 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp138_ = max_cols;
-#line 1738 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_cols = _tmp138_ - 1;
-#line 1739 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp139_ = total_items;
-#line 1739 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp140_ = max_cols;
-#line 1739 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- max_rows = (_tmp139_ / _tmp140_) + 1;
-#line 1746 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1747 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = 0;
-#line 1748 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- tallest = 0;
-#line 1749 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- widest = 0;
-#line 1750 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- total_width = 0;
-#line 1751 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_alignment_point = 0;
-#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp141_ = max_cols;
-#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp142_ = g_new0 (gint, _tmp141_);
-#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- column_widths = (g_free (column_widths), NULL);
-#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- column_widths = _tmp142_;
-#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- column_widths_length1 = _tmp141_;
-#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _column_widths_size_ = column_widths_length1;
-#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp143_ = max_rows;
-#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp144_ = g_new0 (gint, _tmp143_);
-#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_heights = (g_free (row_heights), NULL);
-#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_heights = _tmp144_;
-#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_heights_length1 = _tmp143_;
-#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _row_heights_size_ = row_heights_length1;
-#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp145_ = max_rows;
-#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp146_ = g_new0 (gint, _tmp145_);
-#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- alignment_points = (g_free (alignment_points), NULL);
-#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- alignment_points = _tmp146_;
-#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- alignment_points_length1 = _tmp145_;
-#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _alignment_points_size_ = alignment_points_length1;
-#line 9895 "CheckerboardLayout.c"
- } else {
-#line 1756 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 9899 "CheckerboardLayout.c"
- }
- }
- }
-#line 1768 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1769 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = 0;
-#line 9907 "CheckerboardLayout.c"
- {
- gint ctr = 0;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ctr = 0;
-#line 9912 "CheckerboardLayout.c"
- {
- gboolean _tmp147_ = FALSE;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp147_ = TRUE;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 9919 "CheckerboardLayout.c"
- gint _tmp149_;
- gint _tmp150_;
- CheckerboardItem* item = NULL;
- ViewCollection* _tmp151_;
- gint _tmp152_;
- DataObject* _tmp153_;
- Dimensions req = {0};
- CheckerboardItem* _tmp154_;
- Dimensions _tmp155_;
- gint true_height = 0;
- Dimensions _tmp156_;
- gint _tmp157_;
- gint* _tmp158_;
- gint _tmp158__length1;
- gint _tmp159_;
- gint _tmp160_;
- CheckerboardItem* _tmp161_;
- gint _tmp162_;
- Dimensions _tmp163_;
- gint _tmp164_;
- gint _tmp165_;
- gint* _tmp166_;
- gint _tmp166__length1;
- gint _tmp167_;
- gint _tmp168_;
- gint _tmp173_;
- gint _tmp174_;
- gint _tmp175_;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp147_) {
-#line 9950 "CheckerboardLayout.c"
- gint _tmp148_;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp148_ = ctr;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ctr = _tmp148_ + 1;
-#line 9956 "CheckerboardLayout.c"
- }
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp147_ = FALSE;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp149_ = ctr;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp150_ = total_items;
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp149_ < _tmp150_)) {
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 9968 "CheckerboardLayout.c"
- }
-#line 1772 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp151_ = self->priv->view;
-#line 1772 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp152_ = ctr;
-#line 1772 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp153_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp151_, TYPE_DATA_COLLECTION, DataCollection), _tmp152_);
-#line 1772 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = G_TYPE_CHECK_INSTANCE_CAST (_tmp153_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp154_ = item;
-#line 1773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp155_ = _tmp154_->requisition;
-#line 1773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- req = _tmp155_;
-#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp156_ = req;
-#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp157_ = _tmp156_.height;
-#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp158_ = alignment_points;
-#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp158__length1 = alignment_points_length1;
-#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp159_ = row;
-#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp160_ = _tmp158_[_tmp159_];
-#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp161_ = item;
-#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- true_height = _tmp157_ + (_tmp160_ - checkerboard_item_get_alignment_point (_tmp161_));
-#line 1779 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp162_ = true_height;
-#line 1779 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp163_ = req;
-#line 1779 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp164_ = _tmp163_.height;
-#line 1779 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp162_ >= _tmp164_, "true_height >= req.height");
-#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp165_ = true_height;
-#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp166_ = row_heights;
-#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp166__length1 = row_heights_length1;
-#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp167_ = row;
-#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp168_ = _tmp166_[_tmp167_];
-#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp165_ > _tmp168_) {
-#line 10020 "CheckerboardLayout.c"
- gint* _tmp169_;
- gint _tmp169__length1;
- gint _tmp170_;
- gint _tmp171_;
- gint _tmp172_;
-#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp169_ = row_heights;
-#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp169__length1 = row_heights_length1;
-#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp170_ = row;
-#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp171_ = true_height;
-#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp169_[_tmp170_] = _tmp171_;
-#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp172_ = _tmp169_[_tmp170_];
-#line 10038 "CheckerboardLayout.c"
- }
-#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp173_ = col;
-#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = _tmp173_ + 1;
-#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp174_ = col;
-#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp175_ = max_cols;
-#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp174_ >= _tmp175_) {
-#line 10050 "CheckerboardLayout.c"
- gint _tmp176_;
-#line 1792 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1793 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp176_ = row;
-#line 1793 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp176_ + 1;
-#line 10058 "CheckerboardLayout.c"
- }
-#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 10062 "CheckerboardLayout.c"
- }
- }
- }
-#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp177_ = max_rows;
-#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp178_ = g_new0 (CheckerboardLayoutLayoutRow*, _tmp177_ + 1);
-#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL);
-#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = _tmp178_;
-#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows_length1 = _tmp177_;
-#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->_item_rows_size_ = self->priv->item_rows_length1;
-#line 1801 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp179_ = gutter;
-#line 1801 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = _tmp179_;
-#line 1802 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = CHECKERBOARD_LAYOUT_TOP_PADDING;
-#line 1803 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = 0;
-#line 1805 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- current_row = NULL;
-#line 10090 "CheckerboardLayout.c"
- {
- gint ctr = 0;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ctr = 0;
-#line 10095 "CheckerboardLayout.c"
- {
- gboolean _tmp180_ = FALSE;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp180_ = TRUE;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 10102 "CheckerboardLayout.c"
- gint _tmp182_;
- gint _tmp183_;
- CheckerboardItem* item = NULL;
- ViewCollection* _tmp184_;
- gint _tmp185_;
- DataObject* _tmp186_;
- Dimensions req = {0};
- CheckerboardItem* _tmp187_;
- Dimensions _tmp188_;
- gint xpadding = 0;
- gint* _tmp189_;
- gint _tmp189__length1;
- gint _tmp190_;
- gint _tmp191_;
- Dimensions _tmp192_;
- gint _tmp193_;
- gint _tmp194_;
- gint ypadding = 0;
- gint* _tmp195_;
- gint _tmp195__length1;
- gint _tmp196_;
- gint _tmp197_;
- CheckerboardItem* _tmp198_;
- gint _tmp199_;
- CheckerboardItem* _tmp200_;
- gint _tmp201_;
- gint _tmp202_;
- CheckerboardItem* _tmp203_;
- gint _tmp204_;
- gint _tmp205_;
- CheckerboardItem* _tmp206_;
- Dimensions _tmp207_;
- gint _tmp208_;
- CheckerboardItem* _tmp209_;
- Dimensions _tmp210_;
- gint _tmp211_;
- CheckerboardItem* _tmp212_;
- gint _tmp213_;
- gint _tmp214_;
- CheckerboardLayoutLayoutRow* _tmp215_;
- CheckerboardLayoutLayoutRow* _tmp222_;
- CheckerboardItem** _tmp223_;
- gint _tmp223__length1;
- gint _tmp224_;
- CheckerboardItem* _tmp225_;
- CheckerboardItem* _tmp226_;
- CheckerboardItem* _tmp227_;
- gint _tmp228_;
- gint* _tmp229_;
- gint _tmp229__length1;
- gint _tmp230_;
- gint _tmp231_;
- gint _tmp232_;
- gint _tmp233_;
- gint _tmp234_;
- gint _tmp235_;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp180_) {
-#line 10161 "CheckerboardLayout.c"
- gint _tmp181_;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp181_ = ctr;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ctr = _tmp181_ + 1;
-#line 10167 "CheckerboardLayout.c"
- }
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp180_ = FALSE;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp182_ = ctr;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp183_ = total_items;
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp182_ < _tmp183_)) {
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 10179 "CheckerboardLayout.c"
- }
-#line 1808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp184_ = self->priv->view;
-#line 1808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp185_ = ctr;
-#line 1808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp186_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp184_, TYPE_DATA_COLLECTION, DataCollection), _tmp185_);
-#line 1808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = G_TYPE_CHECK_INSTANCE_CAST (_tmp186_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1809 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp187_ = item;
-#line 1809 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp188_ = _tmp187_->requisition;
-#line 1809 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- req = _tmp188_;
-#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp189_ = column_widths;
-#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp189__length1 = column_widths_length1;
-#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp190_ = col;
-#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp191_ = _tmp189_[_tmp190_];
-#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp192_ = req;
-#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp193_ = _tmp192_.width;
-#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- xpadding = (_tmp191_ - _tmp193_) / 2;
-#line 1813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp194_ = xpadding;
-#line 1813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp194_ >= 0, "xpadding >= 0");
-#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp195_ = alignment_points;
-#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp195__length1 = alignment_points_length1;
-#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp196_ = row;
-#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp197_ = _tmp195_[_tmp196_];
-#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp198_ = item;
-#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ypadding = _tmp197_ - checkerboard_item_get_alignment_point (_tmp198_);
-#line 1817 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp199_ = ypadding;
-#line 1817 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp199_ >= 0, "ypadding >= 0");
-#line 1820 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp200_ = item;
-#line 1820 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp201_ = x;
-#line 1820 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp202_ = xpadding;
-#line 1820 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp200_->allocation.x = _tmp201_ + _tmp202_;
-#line 1821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp203_ = item;
-#line 1821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp204_ = y;
-#line 1821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp205_ = ypadding;
-#line 1821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp203_->allocation.y = _tmp204_ + _tmp205_;
-#line 1822 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp206_ = item;
-#line 1822 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp207_ = req;
-#line 1822 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp208_ = _tmp207_.width;
-#line 1822 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp206_->allocation.width = _tmp208_;
-#line 1823 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp209_ = item;
-#line 1823 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp210_ = req;
-#line 1823 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp211_ = _tmp210_.height;
-#line 1823 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp209_->allocation.height = _tmp211_;
-#line 1824 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp212_ = item;
-#line 1824 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp213_ = col;
-#line 1824 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp214_ = row;
-#line 1824 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_set_grid_coordinates (_tmp212_, _tmp213_, _tmp214_);
-#line 1827 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp215_ = current_row;
-#line 1827 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp215_ == NULL) {
-#line 10273 "CheckerboardLayout.c"
- gint _tmp216_;
- gint* _tmp217_;
- gint _tmp217__length1;
- gint _tmp218_;
- gint _tmp219_;
- gint _tmp220_;
- CheckerboardLayoutLayoutRow* _tmp221_;
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp216_ = y;
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp217_ = row_heights;
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp217__length1 = row_heights_length1;
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp218_ = row;
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp219_ = _tmp217_[_tmp218_];
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp220_ = max_cols;
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp221_ = checkerboard_layout_layout_row_new (_tmp216_, _tmp219_, _tmp220_);
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (current_row);
-#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- current_row = _tmp221_;
-#line 10299 "CheckerboardLayout.c"
- }
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp222_ = current_row;
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp223_ = _tmp222_->items;
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp223__length1 = _tmp222_->items_length1;
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp224_ = col;
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp225_ = item;
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp226_ = _g_object_ref0 (_tmp225_);
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp223_[_tmp224_]);
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp223_[_tmp224_] = _tmp226_;
-#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp227_ = _tmp223_[_tmp224_];
-#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp228_ = x;
-#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp229_ = column_widths;
-#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp229__length1 = column_widths_length1;
-#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp230_ = col;
-#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp231_ = _tmp229_[_tmp230_];
-#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp232_ = gutter;
-#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = _tmp228_ + (_tmp231_ + _tmp232_);
-#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp233_ = col;
-#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = _tmp233_ + 1;
-#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp234_ = col;
-#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp235_ = max_cols;
-#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp234_ >= _tmp235_) {
-#line 10343 "CheckerboardLayout.c"
- CheckerboardLayoutLayoutRow* _tmp236_;
- CheckerboardLayoutLayoutRow** _tmp237_;
- gint _tmp237__length1;
- gint _tmp238_;
- CheckerboardLayoutLayoutRow* _tmp239_;
- CheckerboardLayoutLayoutRow* _tmp240_;
- CheckerboardLayoutLayoutRow* _tmp241_;
- gint _tmp242_;
- gint _tmp243_;
- gint* _tmp244_;
- gint _tmp244__length1;
- gint _tmp245_;
- gint _tmp246_;
- gint _tmp247_;
-#line 1836 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp236_ = current_row;
-#line 1836 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp236_ != NULL, "current_row != null");
-#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp237_ = self->priv->item_rows;
-#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp237__length1 = self->priv->item_rows_length1;
-#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp238_ = row;
-#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp239_ = current_row;
-#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp240_ = _checkerboard_layout_layout_row_ref0 (_tmp239_);
-#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (_tmp237_[_tmp238_]);
-#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp237_[_tmp238_] = _tmp240_;
-#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp241_ = _tmp237_[_tmp238_];
-#line 1838 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (current_row);
-#line 1838 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- current_row = NULL;
-#line 1840 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp242_ = gutter;
-#line 1840 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = _tmp242_;
-#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp243_ = y;
-#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp244_ = row_heights;
-#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp244__length1 = row_heights_length1;
-#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp245_ = row;
-#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp246_ = _tmp244_[_tmp245_];
-#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = _tmp243_ + (_tmp246_ + CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING);
-#line 1842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- col = 0;
-#line 1843 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp247_ = row;
-#line 1843 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row = _tmp247_ + 1;
-#line 10404 "CheckerboardLayout.c"
- }
-#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 10408 "CheckerboardLayout.c"
- }
- }
- }
-#line 1848 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp248_ = current_row;
-#line 1848 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp248_ != NULL) {
-#line 10416 "CheckerboardLayout.c"
- CheckerboardLayoutLayoutRow** _tmp249_;
- gint _tmp249__length1;
- gint _tmp250_;
- CheckerboardLayoutLayoutRow* _tmp251_;
- CheckerboardLayoutLayoutRow* _tmp252_;
- CheckerboardLayoutLayoutRow* _tmp253_;
-#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp249_ = self->priv->item_rows;
-#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp249__length1 = self->priv->item_rows_length1;
-#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp250_ = row;
-#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp251_ = current_row;
-#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp252_ = _checkerboard_layout_layout_row_ref0 (_tmp251_);
-#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (_tmp249_[_tmp250_]);
-#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp249_[_tmp250_] = _tmp252_;
-#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp253_ = _tmp249_[_tmp250_];
-#line 10439 "CheckerboardLayout.c"
- }
-#line 1852 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp254_ = max_cols;
-#line 1852 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->columns = _tmp254_;
-#line 1853 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp255_ = row;
-#line 1853 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->rows = _tmp255_ + 1;
-#line 1854 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp256_ = self->priv->rows;
-#line 1854 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp257_ = max_rows;
-#line 1854 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (_tmp256_ == _tmp257_, "rows == max_rows");
-#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp258_ = y;
-#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp259_ = row_heights;
-#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp259__length1 = row_heights_length1;
-#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp260_ = row;
-#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp261_ = _tmp259_[_tmp260_];
-#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- total_height = (_tmp258_ + _tmp261_) + CHECKERBOARD_LAYOUT_BOTTOM_PADDING;
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp263_ = visible_width;
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp264_ = allocation;
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp265_ = _tmp264_.width;
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp263_ != _tmp265_) {
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp262_ = TRUE;
-#line 10477 "CheckerboardLayout.c"
- } else {
- gint _tmp266_;
- GtkAllocation _tmp267_;
- gint _tmp268_;
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp266_ = total_height;
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp267_ = allocation;
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp268_ = _tmp267_.height;
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp262_ = _tmp266_ != _tmp268_;
-#line 10490 "CheckerboardLayout.c"
- }
-#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp262_) {
-#line 10494 "CheckerboardLayout.c"
- gint _tmp269_;
- gint _tmp270_;
- gint _tmp271_;
-#line 1864 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp269_ = visible_width;
-#line 1864 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp270_ = total_height;
-#line 1864 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp269_, _tmp270_);
-#line 1865 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->size_allocate_due_to_reflow = TRUE;
-#line 1868 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp271_ = total_height;
-#line 1868 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_center_on_anchor (self, (gdouble) _tmp271_);
-#line 10510 "CheckerboardLayout.c"
- }
-#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _checkerboard_layout_layout_row_unref0 (current_row);
-#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- alignment_points = (g_free (alignment_points), NULL);
-#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- row_heights = (g_free (row_heights), NULL);
-#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- column_widths = (g_free (column_widths), NULL);
-#line 10520 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_items_dirty (CheckerboardLayout* self,
- const gchar* reason,
- GeeIterable* items)
-{
- GdkRectangle dirty = {0};
- gboolean _tmp30_ = FALSE;
- GdkRectangle _tmp31_;
- gint _tmp32_;
-#line 1872 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1872 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (reason != NULL);
-#line 1872 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (GEE_IS_ITERABLE (items));
-#line 1873 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&dirty, 0, sizeof (GdkRectangle));
-#line 10541 "CheckerboardLayout.c"
- {
- GeeIterator* _data_view_it = NULL;
- GeeIterator* _tmp0_;
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = gee_iterable_iterator (items);
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _data_view_it = _tmp0_;
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 10551 "CheckerboardLayout.c"
- GeeIterator* _tmp1_;
- DataView* data_view = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- CheckerboardItem* item = NULL;
- DataView* _tmp4_;
- CheckerboardItem* _tmp5_;
- CheckerboardItem* _tmp6_;
- ViewCollection* _tmp7_;
- CheckerboardItem* _tmp8_;
- gboolean _tmp9_ = FALSE;
- CheckerboardItem* _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle intersection = {0};
- CheckerboardItem* _tmp18_;
- GdkRectangle _tmp19_;
- GdkRectangle _tmp20_ = {0};
- gboolean _tmp21_;
- gboolean _tmp22_ = FALSE;
- GdkRectangle _tmp23_;
- gint _tmp24_;
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _data_view_it;
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 10580 "CheckerboardLayout.c"
- }
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _data_view_it;
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- data_view = (DataView*) _tmp3_;
-#line 1875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = data_view;
-#line 1875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = _tmp5_;
-#line 1877 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = item;
-#line 1877 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!data_view_is_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_VIEW, DataView))) {
-#line 1878 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 1878 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (data_view);
-#line 1878 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- continue;
-#line 10604 "CheckerboardLayout.c"
- }
-#line 1880 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = self->priv->view;
-#line 1880 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = item;
-#line 1880 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _vala_assert (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)), "view.contains(item)");
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = item;
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = _tmp10_->allocation;
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _tmp11_.width;
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp12_ <= 0) {
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = TRUE;
-#line 10622 "CheckerboardLayout.c"
- } else {
- CheckerboardItem* _tmp13_;
- GdkRectangle _tmp14_;
- gint _tmp15_;
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = item;
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = _tmp13_->allocation;
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _tmp14_.height;
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = _tmp15_ <= 0;
-#line 10635 "CheckerboardLayout.c"
- }
-#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp9_) {
-#line 10639 "CheckerboardLayout.c"
- gchar* _tmp16_;
- gchar* _tmp17_;
-#line 1885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = g_strdup_printf ("items_dirty: %s", reason);
-#line 1885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = _tmp16_;
-#line 1885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_need_reflow (self, _tmp17_);
-#line 1885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (_tmp17_);
-#line 1887 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 1887 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (data_view);
-#line 1887 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_data_view_it);
-#line 1887 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 10658 "CheckerboardLayout.c"
- }
-#line 1891 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&intersection, 0, sizeof (GdkRectangle));
-#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = item;
-#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _tmp18_->allocation;
-#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = gdk_rectangle_intersect (&self->priv->visible_page, &_tmp19_, &_tmp20_);
-#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- intersection = _tmp20_;
-#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!_tmp21_) {
-#line 1893 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 1893 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (data_view);
-#line 1893 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- continue;
-#line 10678 "CheckerboardLayout.c"
- }
-#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = dirty;
-#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = _tmp23_.width;
-#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp24_ == 0) {
-#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = TRUE;
-#line 10688 "CheckerboardLayout.c"
- } else {
- GdkRectangle _tmp25_;
- gint _tmp26_;
-#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = dirty;
-#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = _tmp25_.height;
-#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = _tmp26_ == 0;
-#line 10698 "CheckerboardLayout.c"
- }
-#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp22_) {
-#line 10702 "CheckerboardLayout.c"
- GdkRectangle _tmp27_;
-#line 1897 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = intersection;
-#line 1897 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dirty = _tmp27_;
-#line 10708 "CheckerboardLayout.c"
- } else {
- GdkRectangle _tmp28_;
- GdkRectangle _tmp29_ = {0};
-#line 1899 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = intersection;
-#line 1899 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gdk_rectangle_union (&dirty, &_tmp28_, &_tmp29_);
-#line 1899 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dirty = _tmp29_;
-#line 10718 "CheckerboardLayout.c"
- }
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (data_view);
-#line 10724 "CheckerboardLayout.c"
- }
-#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_data_view_it);
-#line 10728 "CheckerboardLayout.c"
- }
-#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = dirty;
-#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp32_ = _tmp31_.width;
-#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp32_ > 0) {
-#line 10736 "CheckerboardLayout.c"
- GdkRectangle _tmp33_;
- gint _tmp34_;
-#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = dirty;
-#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = _tmp33_.height;
-#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = _tmp34_ > 0;
-#line 10745 "CheckerboardLayout.c"
- } else {
-#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = FALSE;
-#line 10749 "CheckerboardLayout.c"
- }
-#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp30_) {
-#line 10753 "CheckerboardLayout.c"
- GdkRectangle _tmp35_;
- gint _tmp36_;
- GdkRectangle _tmp37_;
- gint _tmp38_;
- GdkRectangle _tmp39_;
- gint _tmp40_;
- GdkRectangle _tmp41_;
- gint _tmp42_;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = dirty;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = _tmp35_.x;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = dirty;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = _tmp37_.y;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp39_ = dirty;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp40_ = _tmp39_.width;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp41_ = dirty;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp42_ = _tmp41_.height;
-#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_queue_draw_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp36_, _tmp38_, _tmp40_, _tmp42_);
-#line 10780 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_layout_real_map (GtkWidget* base)
-{
- CheckerboardLayout * self;
-#line 1911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout);
-#line 1912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->map (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget));
-#line 1914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_set_colors (self, TRUE);
-#line 10795 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_set_colors (CheckerboardLayout* self,
- gboolean in_focus)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- GdkRGBA _tmp2_ = {0};
- ConfigFacade* _tmp3_;
- ConfigFacade* _tmp4_;
- GdkRGBA _tmp5_ = {0};
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- GdkRGBA _tmp8_ = {0};
- GtkStyleContext* _tmp9_;
- GdkRGBA _tmp10_ = {0};
-#line 1917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_;
-#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- config_facade_get_selected_color (_tmp1_, in_focus, &_tmp2_);
-#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->selected_color = _tmp2_;
-#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp1_);
-#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = config_facade_get_instance ();
-#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_;
-#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- config_facade_get_unselected_color (_tmp4_, &_tmp5_);
-#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->unselected_color = _tmp5_;
-#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp4_);
-#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = config_facade_get_instance ();
-#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = _tmp6_;
-#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- config_facade_get_border_color (_tmp7_, &_tmp8_);
-#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->border_color = _tmp8_;
-#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp7_);
-#line 1922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_style_context_get_background_color (_tmp9_, GTK_STATE_FLAG_NORMAL, &_tmp10_);
-#line 1922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->bg_color = _tmp10_;
-#line 10852 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_real_size_allocate (GtkWidget* base,
- GtkAllocation* allocation)
-{
- CheckerboardLayout * self;
- GtkAllocation _tmp0_;
-#line 1925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout);
-#line 1925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (allocation != NULL);
-#line 1926 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = *allocation;
-#line 1926 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->size_allocate (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), &_tmp0_);
-#line 1928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_viewport_resized (self);
-#line 10872 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-checkerboard_layout_real_draw (GtkWidget* base,
- cairo_t* ctx)
-{
- CheckerboardLayout * self;
- gboolean result = FALSE;
- GtkAllocation allocation = {0};
- GtkAllocation _tmp0_ = {0};
- GtkStyleContext* _tmp1_;
- GtkAllocation _tmp2_;
- gint _tmp3_;
- GtkAllocation _tmp4_;
- gint _tmp5_;
- const gchar* _tmp6_;
- gboolean _tmp54_ = FALSE;
- gboolean _result_ = FALSE;
-#line 1931 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout);
-#line 1931 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (ctx != NULL, FALSE);
-#line 1940 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp0_);
-#line 1940 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- allocation = _tmp0_;
-#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = allocation;
-#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = _tmp2_.width;
-#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = allocation;
-#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp4_.height;
-#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_render_background (_tmp1_, ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp3_, (gdouble) _tmp5_);
-#line 1944 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->message;
-#line 1944 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp6_ == NULL) {
-#line 10916 "CheckerboardLayout.c"
- gboolean _tmp7_;
-#line 1949 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = self->priv->exposure_dirty;
-#line 1949 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp7_) {
-#line 1950 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_expose_items (self, "draw");
-#line 10924 "CheckerboardLayout.c"
- }
- {
- GeeList* _item_list = NULL;
- GdkRectangle _tmp8_;
- GeeList* _tmp9_;
- gint _item_size = 0;
- GeeList* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gint _item_index = 0;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = self->priv->visible_page;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = checkerboard_layout_intersection (self, &_tmp8_);
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_list = _tmp9_;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = _item_list;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = _tmp11_;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_size = _tmp12_;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_index = -1;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- while (TRUE) {
-#line 10953 "CheckerboardLayout.c"
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- CheckerboardItem* item = NULL;
- GeeList* _tmp16_;
- gint _tmp17_;
- gpointer _tmp18_;
- GdkRGBA _tmp19_ = {0};
- CheckerboardItem* _tmp20_;
- CheckerboardItem* _tmp23_;
- GdkRGBA _tmp24_;
- GdkRGBA _tmp25_;
- GdkRGBA _tmp26_;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = _item_index;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _item_index = _tmp13_ + 1;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = _item_index;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _item_size;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!(_tmp14_ < _tmp15_)) {
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- break;
-#line 10979 "CheckerboardLayout.c"
- }
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = _item_list;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = _item_index;
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = gee_list_get (_tmp16_, _tmp17_);
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = (CheckerboardItem*) _tmp18_;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = item;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_VIEW, DataView))) {
-#line 10993 "CheckerboardLayout.c"
- GdkRGBA _tmp21_;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = self->priv->selected_color;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _tmp21_;
-#line 10999 "CheckerboardLayout.c"
- } else {
- GdkRGBA _tmp22_;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = self->priv->unselected_color;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _tmp22_;
-#line 11006 "CheckerboardLayout.c"
- }
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = item;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = self->priv->bg_color;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = self->priv->unselected_color;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = self->priv->border_color;
-#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_item_paint (_tmp23_, ctx, &_tmp24_, &_tmp19_, &_tmp25_, &_tmp26_);
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 11020 "CheckerboardLayout.c"
- }
-#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_item_list);
-#line 11024 "CheckerboardLayout.c"
- }
- } else {
- PangoLayout* pango_layout = NULL;
- const gchar* _tmp27_;
- PangoLayout* _tmp28_;
- gint text_width = 0;
- gint text_height = 0;
- PangoLayout* _tmp29_;
- gint _tmp30_ = 0;
- gint _tmp31_ = 0;
- GtkAllocation _tmp32_ = {0};
- gint x = 0;
- GtkAllocation _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- gint _tmp36_ = 0;
- gint _tmp37_;
- gint y = 0;
- GtkAllocation _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- gint _tmp42_ = 0;
- gint _tmp43_;
- GdkRGBA _tmp45_;
- gdouble _tmp46_;
- GdkRGBA _tmp47_;
- gdouble _tmp48_;
- GdkRGBA _tmp49_;
- gdouble _tmp50_;
- gint _tmp51_;
- gint _tmp52_;
- PangoLayout* _tmp53_;
-#line 1959 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = self->priv->message;
-#line 1959 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp27_);
-#line 1959 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_layout = _tmp28_;
-#line 1961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = pango_layout;
-#line 1961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_layout_get_pixel_size (_tmp29_, &_tmp30_, &_tmp31_);
-#line 1961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- text_width = _tmp30_;
-#line 1961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- text_height = _tmp31_;
-#line 1963 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp32_);
-#line 1963 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- allocation = _tmp32_;
-#line 1965 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = allocation;
-#line 1965 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = _tmp33_.width;
-#line 1965 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = text_width;
-#line 1965 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = _tmp34_ - _tmp35_;
-#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = x;
-#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp37_ > 0) {
-#line 11087 "CheckerboardLayout.c"
- gint _tmp38_;
-#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = x;
-#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = _tmp38_ / 2;
-#line 11093 "CheckerboardLayout.c"
- } else {
-#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = 0;
-#line 11097 "CheckerboardLayout.c"
- }
-#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- x = _tmp36_;
-#line 1968 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp39_ = allocation;
-#line 1968 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp40_ = _tmp39_.height;
-#line 1968 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp41_ = text_height;
-#line 1968 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = _tmp40_ - _tmp41_;
-#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp43_ = y;
-#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp43_ > 0) {
-#line 11113 "CheckerboardLayout.c"
- gint _tmp44_;
-#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp44_ = y;
-#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp42_ = _tmp44_ / 2;
-#line 11119 "CheckerboardLayout.c"
- } else {
-#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp42_ = 0;
-#line 11123 "CheckerboardLayout.c"
- }
-#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- y = _tmp42_;
-#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp45_ = self->priv->unselected_color;
-#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp46_ = _tmp45_.red;
-#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp47_ = self->priv->unselected_color;
-#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp48_ = _tmp47_.green;
-#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp49_ = self->priv->unselected_color;
-#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp50_ = _tmp49_.blue;
-#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgb (ctx, _tmp46_, _tmp48_, _tmp50_);
-#line 1972 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp51_ = x;
-#line 1972 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp52_ = y;
-#line 1972 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_move_to (ctx, (gdouble) _tmp51_, (gdouble) _tmp52_);
-#line 1973 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp53_ = pango_layout;
-#line 1973 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- pango_cairo_show_layout (ctx, _tmp53_);
-#line 1944 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (pango_layout);
-#line 11153 "CheckerboardLayout.c"
- }
-#line 1976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->draw != NULL) {
-#line 1976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp54_ = GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->draw (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), ctx);
-#line 11159 "CheckerboardLayout.c"
- } else {
-#line 1976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp54_ = TRUE;
-#line 11163 "CheckerboardLayout.c"
- }
-#line 1976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _result_ = _tmp54_;
-#line 1979 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_draw_selection_band (self, ctx);
-#line 1981 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _result_;
-#line 1981 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 11173 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_draw_selection_band (CheckerboardLayout* self,
- cairo_t* ctx)
-{
- gboolean _tmp0_ = FALSE;
- GdkRectangle _tmp1_;
- gint _tmp2_;
- gboolean _tmp5_ = FALSE;
- GtkAdjustment* _tmp6_;
- GdkRectangle visible_page = {0};
- GtkAdjustment* _tmp8_;
- GtkAdjustment* _tmp9_;
- GdkRectangle _tmp10_ = {0};
- GdkRectangle visible_band = {0};
- GdkRectangle _tmp11_;
- GdkRectangle _tmp12_ = {0};
- gboolean _tmp13_ = FALSE;
- GdkRectangle _tmp14_;
- gint _tmp15_;
- GdkRGBA _tmp32_;
- gdouble _tmp33_;
- GdkRGBA _tmp34_;
- gdouble _tmp35_;
- GdkRGBA _tmp36_;
- gdouble _tmp37_;
- GdkRectangle _tmp38_;
- gint _tmp39_;
- GdkRectangle _tmp40_;
- gint _tmp41_;
- GdkRectangle _tmp42_;
- gint _tmp43_;
- GdkRectangle _tmp44_;
- gint _tmp45_;
-#line 1984 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 1984 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (ctx != NULL);
-#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = self->priv->selection_band;
-#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_.width;
-#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_ <= 1) {
-#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = TRUE;
-#line 11222 "CheckerboardLayout.c"
- } else {
- GdkRectangle _tmp3_;
- gint _tmp4_;
-#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = self->priv->selection_band;
-#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = _tmp3_.height;
-#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = _tmp4_ <= 1;
-#line 11232 "CheckerboardLayout.c"
- }
-#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp0_) {
-#line 1987 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 11238 "CheckerboardLayout.c"
- }
-#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->hadjustment;
-#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp6_ == NULL) {
-#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = TRUE;
-#line 11246 "CheckerboardLayout.c"
- } else {
- GtkAdjustment* _tmp7_;
-#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp7_ = self->priv->vadjustment;
-#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp5_ = _tmp7_ == NULL;
-#line 11253 "CheckerboardLayout.c"
- }
-#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp5_) {
-#line 1991 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return;
-#line 11259 "CheckerboardLayout.c"
- }
-#line 1994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = self->priv->hadjustment;
-#line 1994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp9_ = self->priv->vadjustment;
-#line 1994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- get_adjustment_page (_tmp8_, _tmp9_, &_tmp10_);
-#line 1994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- visible_page = _tmp10_;
-#line 1995 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&visible_band, 0, sizeof (GdkRectangle));
-#line 1996 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp11_ = self->priv->selection_band;
-#line 1996 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gdk_rectangle_intersect (&visible_page, &_tmp11_, &_tmp12_);
-#line 1996 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- visible_band = _tmp12_;
-#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = visible_band;
-#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp15_ = _tmp14_.width;
-#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp15_ > 1) {
-#line 11283 "CheckerboardLayout.c"
- GdkRectangle _tmp16_;
- gint _tmp17_;
-#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = visible_band;
-#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp17_ = _tmp16_.height;
-#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = _tmp17_ > 1;
-#line 11292 "CheckerboardLayout.c"
- } else {
-#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp13_ = FALSE;
-#line 11296 "CheckerboardLayout.c"
- }
-#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp13_) {
-#line 11300 "CheckerboardLayout.c"
- GdkRGBA _tmp18_;
- gdouble _tmp19_;
- GdkRGBA _tmp20_;
- gdouble _tmp21_;
- GdkRGBA _tmp22_;
- gdouble _tmp23_;
- GdkRectangle _tmp24_;
- gint _tmp25_;
- GdkRectangle _tmp26_;
- gint _tmp27_;
- GdkRectangle _tmp28_;
- gint _tmp29_;
- GdkRectangle _tmp30_;
- gint _tmp31_;
-#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = self->priv->selected_color;
-#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = _tmp18_.red;
-#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp20_ = self->priv->selected_color;
-#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = _tmp20_.green;
-#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = self->priv->selected_color;
-#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp23_ = _tmp22_.blue;
-#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgba (ctx, _tmp19_, _tmp21_, _tmp23_, CHECKERBOARD_LAYOUT_SELECTION_ALPHA);
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = visible_band;
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = _tmp24_.x;
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = visible_band;
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = _tmp26_.y;
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp28_ = visible_band;
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = _tmp28_.width;
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = visible_band;
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp31_ = _tmp30_.height;
-#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, (gdouble) _tmp25_, (gdouble) _tmp27_, (gdouble) _tmp29_, (gdouble) _tmp31_);
-#line 2004 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_fill (ctx);
-#line 11349 "CheckerboardLayout.c"
- }
-#line 2010 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_line_width (ctx, 1.0);
-#line 2011 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_line_cap (ctx, CAIRO_LINE_CAP_SQUARE);
-#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp32_ = self->priv->selected_color;
-#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp33_ = _tmp32_.red;
-#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp34_ = self->priv->selected_color;
-#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp35_ = _tmp34_.green;
-#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp36_ = self->priv->selected_color;
-#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp37_ = _tmp36_.blue;
-#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_set_source_rgb (ctx, _tmp33_, _tmp35_, _tmp37_);
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp38_ = self->priv->selection_band;
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp39_ = _tmp38_.x;
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp40_ = self->priv->selection_band;
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp41_ = _tmp40_.y;
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp42_ = self->priv->selection_band;
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp43_ = _tmp42_.width;
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp44_ = self->priv->selection_band;
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp45_ = _tmp44_.height;
-#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_rectangle (ctx, ((gdouble) _tmp39_) + 0.5, ((gdouble) _tmp41_) + 0.5, ((gdouble) _tmp43_) - 1.0, ((gdouble) _tmp45_) - 1.0);
-#line 2015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- cairo_stroke (ctx);
-#line 11389 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-checkerboard_layout_real_query_tooltip (GtkWidget* base,
- gint x,
- gint y,
- gboolean keyboard_mode,
- GtkTooltip* tooltip)
-{
- CheckerboardLayout * self;
- gboolean result = FALSE;
- CheckerboardItem* item = NULL;
- CheckerboardItem* _tmp0_;
- gboolean _tmp1_ = FALSE;
- CheckerboardItem* _tmp2_;
-#line 2018 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout);
-#line 2018 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (GTK_IS_TOOLTIP (tooltip), FALSE);
-#line 2019 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = checkerboard_layout_get_item_at_pixel (self, (gdouble) x, (gdouble) y);
-#line 2019 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- item = _tmp0_;
-#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = item;
-#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp2_ != NULL) {
-#line 11418 "CheckerboardLayout.c"
- CheckerboardItem* _tmp3_;
-#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp3_ = item;
-#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = checkerboard_item_query_tooltip (_tmp3_, x, y, tooltip);
-#line 11424 "CheckerboardLayout.c"
- } else {
-#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = FALSE;
-#line 11428 "CheckerboardLayout.c"
- }
-#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = _tmp1_;
-#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (item);
-#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 11436 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_on_colors_changed (CheckerboardLayout* self)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- GdkRGBA _tmp2_ = {0};
-#line 2024 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self));
-#line 2025 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- invalidate_transparent_background ();
-#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = _tmp0_;
-#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- config_facade_get_bg_color (_tmp1_, &_tmp2_);
-#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- gtk_widget_override_background_color (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), GTK_STATE_FLAG_NORMAL, &_tmp2_);
-#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp1_);
-#line 2027 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_set_colors (self, TRUE);
-#line 11462 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-checkerboard_layout_real_focus_in_event (GtkWidget* base,
- GdkEventFocus* event)
-{
- CheckerboardLayout * self;
- gboolean result = FALSE;
- ViewCollection* _tmp0_;
- GeeList* _tmp1_;
- GeeList* _tmp2_;
-#line 2030 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout);
-#line 2030 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2031 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_set_colors (self, TRUE);
-#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->view;
-#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = view_collection_get_selected (_tmp0_);
-#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_;
-#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_items_dirty (self, "focus_in_event", G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp2_);
-#line 2034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->focus_in_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), event);
-#line 2034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 11495 "CheckerboardLayout.c"
-}
-
-
-static gboolean
-checkerboard_layout_real_focus_out_event (GtkWidget* base,
- GdkEventFocus* event)
-{
- CheckerboardLayout * self;
- gboolean result = FALSE;
- ViewCollection* _tmp0_;
- GeeList* _tmp1_;
- GeeList* _tmp2_;
-#line 2037 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout);
-#line 2037 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2038 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_set_colors (self, FALSE);
-#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->view;
-#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = view_collection_get_selected (_tmp0_);
-#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = _tmp1_;
-#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_items_dirty (self, "focus_out_event", G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp2_);
-#line 2041 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- result = GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->focus_out_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), event);
-#line 2041 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return result;
-#line 11528 "CheckerboardLayout.c"
-}
-
-
-static CheckerboardLayoutLayoutRow*
-checkerboard_layout_layout_row_construct (GType object_type,
- gint y,
- gint height,
- gint num_in_row)
-{
- CheckerboardLayoutLayoutRow* self = NULL;
- CheckerboardItem** _tmp0_;
-#line 847 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = (CheckerboardLayoutLayoutRow*) g_type_create_instance (object_type);
-#line 848 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->y = y;
-#line 849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->height = height;
-#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = g_new0 (CheckerboardItem*, num_in_row + 1);
-#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->items = (_vala_array_free (self->items, self->items_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->items = _tmp0_;
-#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->items_length1 = num_in_row;
-#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->_items_size_ = self->items_length1;
-#line 847 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return self;
-#line 11558 "CheckerboardLayout.c"
-}
-
-
-static CheckerboardLayoutLayoutRow*
-checkerboard_layout_layout_row_new (gint y,
- gint height,
- gint num_in_row)
-{
-#line 847 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return checkerboard_layout_layout_row_construct (CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, y, height, num_in_row);
-#line 11569 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_value_layout_row_init (GValue* value)
-{
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = NULL;
-#line 11578 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_value_layout_row_free_value (GValue* value)
-{
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (value->data[0].v_pointer) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_layout_row_unref (value->data[0].v_pointer);
-#line 11589 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_layout_value_layout_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (src_value->data[0].v_pointer) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dest_value->data[0].v_pointer = checkerboard_layout_layout_row_ref (src_value->data[0].v_pointer);
-#line 11602 "CheckerboardLayout.c"
- } else {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 11606 "CheckerboardLayout.c"
- }
-}
-
-
-static gpointer
-checkerboard_layout_value_layout_row_peek_pointer (const GValue* value)
-{
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return value->data[0].v_pointer;
-#line 11616 "CheckerboardLayout.c"
-}
-
-
-static gchar*
-checkerboard_layout_value_layout_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (collect_values[0].v_pointer) {
-#line 11628 "CheckerboardLayout.c"
- CheckerboardLayoutLayoutRow * object;
- object = collect_values[0].v_pointer;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 11635 "CheckerboardLayout.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.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 11639 "CheckerboardLayout.c"
- }
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = checkerboard_layout_layout_row_ref (object);
-#line 11643 "CheckerboardLayout.c"
- } else {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = NULL;
-#line 11647 "CheckerboardLayout.c"
- }
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return NULL;
-#line 11651 "CheckerboardLayout.c"
-}
-
-
-static gchar*
-checkerboard_layout_value_layout_row_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- CheckerboardLayoutLayoutRow ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!object_p) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 11667 "CheckerboardLayout.c"
- }
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (!value->data[0].v_pointer) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *object_p = NULL;
-#line 11673 "CheckerboardLayout.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *object_p = value->data[0].v_pointer;
-#line 11677 "CheckerboardLayout.c"
- } else {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- *object_p = checkerboard_layout_layout_row_ref (value->data[0].v_pointer);
-#line 11681 "CheckerboardLayout.c"
- }
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return NULL;
-#line 11685 "CheckerboardLayout.c"
-}
-
-
-static GParamSpec*
-checkerboard_layout_param_spec_layout_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- CheckerboardLayoutParamSpecLayoutRow* spec;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (g_type_is_a (object_type, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW), NULL);
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return G_PARAM_SPEC (spec);
-#line 11705 "CheckerboardLayout.c"
-}
-
-
-static gpointer
-checkerboard_layout_value_get_layout_row (const GValue* value)
-{
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW), NULL);
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return value->data[0].v_pointer;
-#line 11716 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_value_set_layout_row (GValue* value,
- gpointer v_object)
-{
- CheckerboardLayoutLayoutRow * old;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW));
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- old = value->data[0].v_pointer;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (v_object) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW));
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = v_object;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_layout_row_ref (value->data[0].v_pointer);
-#line 11739 "CheckerboardLayout.c"
- } else {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = NULL;
-#line 11743 "CheckerboardLayout.c"
- }
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (old) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_layout_row_unref (old);
-#line 11749 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_layout_value_take_layout_row (GValue* value,
- gpointer v_object)
-{
- CheckerboardLayoutLayoutRow * old;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW));
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- old = value->data[0].v_pointer;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (v_object) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW));
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = v_object;
-#line 11771 "CheckerboardLayout.c"
- } else {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- value->data[0].v_pointer = NULL;
-#line 11775 "CheckerboardLayout.c"
- }
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (old) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_layout_row_unref (old);
-#line 11781 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_layout_layout_row_class_init (CheckerboardLayoutLayoutRowClass * klass)
-{
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_layout_row_parent_class = g_type_class_peek_parent (klass);
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((CheckerboardLayoutLayoutRowClass *) klass)->finalize = checkerboard_layout_layout_row_finalize;
-#line 11793 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_layout_row_instance_init (CheckerboardLayoutLayoutRow * self)
-{
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->ref_count = 1;
-#line 11802 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_layout_row_finalize (CheckerboardLayoutLayoutRow * obj)
-{
- CheckerboardLayoutLayoutRow * self;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, CheckerboardLayoutLayoutRow);
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_destroy (self);
-#line 845 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->items = (_vala_array_free (self->items, self->items_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 11816 "CheckerboardLayout.c"
-}
-
-
-static GType
-checkerboard_layout_layout_row_get_type (void)
-{
- static volatile gsize checkerboard_layout_layout_row_type_id__volatile = 0;
- if (g_once_init_enter (&checkerboard_layout_layout_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { checkerboard_layout_value_layout_row_init, checkerboard_layout_value_layout_row_free_value, checkerboard_layout_value_layout_row_copy_value, checkerboard_layout_value_layout_row_peek_pointer, "p", checkerboard_layout_value_layout_row_collect_value, "p", checkerboard_layout_value_layout_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (CheckerboardLayoutLayoutRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_layout_layout_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardLayoutLayoutRow), 0, (GInstanceInitFunc) checkerboard_layout_layout_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType checkerboard_layout_layout_row_type_id;
- checkerboard_layout_layout_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CheckerboardLayoutLayoutRow", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&checkerboard_layout_layout_row_type_id__volatile, checkerboard_layout_layout_row_type_id);
- }
- return checkerboard_layout_layout_row_type_id__volatile;
-}
-
-
-static gpointer
-checkerboard_layout_layout_row_ref (gpointer instance)
-{
- CheckerboardLayoutLayoutRow * self;
- self = instance;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- return instance;
-#line 11845 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_layout_row_unref (gpointer instance)
-{
- CheckerboardLayoutLayoutRow * self;
- self = instance;
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- CHECKERBOARD_LAYOUT_LAYOUT_ROW_GET_CLASS (self)->finalize (self);
-#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 11860 "CheckerboardLayout.c"
- }
-}
-
-
-static void
-checkerboard_layout_class_init (CheckerboardLayoutClass * klass)
-{
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- checkerboard_layout_parent_class = g_type_class_peek_parent (klass);
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_type_class_add_private (klass, sizeof (CheckerboardLayoutPrivate));
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((GtkWidgetClass *) klass)->map = (void (*) (GtkWidget *)) checkerboard_layout_real_map;
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((GtkWidgetClass *) klass)->size_allocate = (void (*) (GtkWidget *, GtkAllocation*)) checkerboard_layout_real_size_allocate;
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((GtkWidgetClass *) klass)->draw = (gboolean (*) (GtkWidget *, cairo_t*)) checkerboard_layout_real_draw;
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((GtkWidgetClass *) klass)->query_tooltip = (gboolean (*) (GtkWidget *, gint, gint, gboolean, GtkTooltip*)) checkerboard_layout_real_query_tooltip;
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((GtkWidgetClass *) klass)->focus_in_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) checkerboard_layout_real_focus_in_event;
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- ((GtkWidgetClass *) klass)->focus_out_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) checkerboard_layout_real_focus_out_event;
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_OBJECT_CLASS (klass)->finalize = checkerboard_layout_finalize;
-#line 11886 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_instance_init (CheckerboardLayout * self)
-{
- gchar* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv = CHECKERBOARD_LAYOUT_GET_PRIVATE (self);
-#line 855 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = g_strdup ("");
-#line 855 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->page_name = _tmp0_;
-#line 856 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = NULL;
-#line 856 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows_length1 = 0;
-#line 856 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->_item_rows_size_ = self->priv->item_rows_length1;
-#line 857 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp1_ = gee_hash_set_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 857 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposed_items = _tmp1_;
-#line 858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->hadjustment = NULL;
-#line 859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->vadjustment = NULL;
-#line 860 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->message = NULL;
-#line 865 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&self->priv->visible_page, 0, sizeof (GdkRectangle));
-#line 866 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->last_width = 0;
-#line 867 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->columns = 0;
-#line 868 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->rows = 0;
-#line 869 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&self->priv->drag_origin, 0, sizeof (GdkPoint));
-#line 870 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&self->priv->drag_endpoint, 0, sizeof (GdkPoint));
-#line 871 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- memset (&self->priv->selection_band, 0, sizeof (GdkRectangle));
-#line 872 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->scale = 0;
-#line 873 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->flow_scheduled = FALSE;
-#line 874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->exposure_dirty = TRUE;
-#line 875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->anchor = NULL;
-#line 876 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->cursor = NULL;
-#line 877 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->in_center_on_anchor = FALSE;
-#line 878 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->size_allocate_due_to_reflow = FALSE;
-#line 879 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->is_in_view = FALSE;
-#line 880 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->reflow_needed = FALSE;
-#line 11949 "CheckerboardLayout.c"
-}
-
-
-static void
-checkerboard_layout_finalize (GObject * obj)
-{
- CheckerboardLayout * self;
- ViewCollection* _tmp0_;
- guint _tmp1_;
- ViewCollection* _tmp2_;
- guint _tmp3_;
- ViewCollection* _tmp4_;
- guint _tmp5_;
- ViewCollection* _tmp6_;
- guint _tmp7_;
- ViewCollection* _tmp8_;
- guint _tmp9_;
- ViewCollection* _tmp10_;
- guint _tmp11_;
- ViewCollection* _tmp12_;
- guint _tmp13_;
- ViewCollection* _tmp14_;
- guint _tmp15_;
- ViewCollection* _tmp16_;
- guint _tmp17_;
- GtkAdjustment* _tmp18_;
- GtkAdjustment* _tmp21_;
- GtkContainer* _tmp24_;
- GtkContainer* _tmp25_;
- ConfigFacade* _tmp29_;
- ConfigFacade* _tmp30_;
- guint _tmp31_;
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout);
-#line 911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp0_ = self->priv->view;
-#line 911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 911 "/home/jens/Source/shotwell/src/CheckerboardLayout.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) _checkerboard_layout_on_contents_altered_data_collection_contents_altered, self);
-#line 912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp2_ = self->priv->view;
-#line 912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 912 "/home/jens/Source/shotwell/src/CheckerboardLayout.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) _checkerboard_layout_on_items_altered_data_collection_items_altered, self);
-#line 913 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp4_ = self->priv->view;
-#line 913 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 913 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _checkerboard_layout_on_items_state_changed_view_collection_items_state_changed, self);
-#line 914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp6_ = self->priv->view;
-#line 914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("items-visibility-changed", TYPE_VIEW_COLLECTION, &_tmp7_, NULL, FALSE);
-#line 914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _checkerboard_layout_on_items_visibility_changed_view_collection_items_visibility_changed, self);
-#line 915 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp8_ = self->priv->view;
-#line 915 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("ordering-changed", TYPE_DATA_COLLECTION, &_tmp9_, NULL, FALSE);
-#line 915 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _checkerboard_layout_on_ordering_changed_data_collection_ordering_changed, self);
-#line 916 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp10_ = self->priv->view;
-#line 916 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("views-altered", TYPE_VIEW_COLLECTION, &_tmp11_, NULL, FALSE);
-#line 916 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _checkerboard_layout_on_views_altered_view_collection_views_altered, self);
-#line 917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp12_ = self->priv->view;
-#line 917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("geometries-altered", TYPE_VIEW_COLLECTION, &_tmp13_, NULL, FALSE);
-#line 917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _checkerboard_layout_on_geometries_altered_view_collection_geometries_altered, self);
-#line 918 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp14_ = self->priv->view;
-#line 918 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("items-selected", TYPE_VIEW_COLLECTION, &_tmp15_, NULL, FALSE);
-#line 918 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp14_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _checkerboard_layout_on_items_selection_changed_view_collection_items_selected, self);
-#line 919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp16_ = self->priv->view;
-#line 919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("items-unselected", TYPE_VIEW_COLLECTION, &_tmp17_, NULL, FALSE);
-#line 919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp16_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, 0, NULL, (GCallback) _checkerboard_layout_on_items_selection_changed_view_collection_items_unselected, self);
-#line 921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp18_ = self->priv->hadjustment;
-#line 921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp18_ != NULL) {
-#line 12042 "CheckerboardLayout.c"
- GtkAdjustment* _tmp19_;
- guint _tmp20_;
-#line 922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp19_ = self->priv->hadjustment;
-#line 922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("value-changed", gtk_adjustment_get_type (), &_tmp20_, NULL, FALSE);
-#line 922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp19_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed, self);
-#line 12051 "CheckerboardLayout.c"
- }
-#line 924 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp21_ = self->priv->vadjustment;
-#line 924 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp21_ != NULL) {
-#line 12057 "CheckerboardLayout.c"
- GtkAdjustment* _tmp22_;
- guint _tmp23_;
-#line 925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp22_ = self->priv->vadjustment;
-#line 925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("value-changed", gtk_adjustment_get_type (), &_tmp23_, NULL, FALSE);
-#line 925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp22_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp23_, 0, NULL, (GCallback) _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed, self);
-#line 12066 "CheckerboardLayout.c"
- }
-#line 927 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp24_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 927 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp25_ = _tmp24_;
-#line 927 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- if (_tmp25_ != NULL) {
-#line 12074 "CheckerboardLayout.c"
- GtkContainer* _tmp26_;
- GtkContainer* _tmp27_;
- guint _tmp28_;
-#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp26_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp27_ = _tmp26_;
-#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("size-allocate", gtk_widget_get_type (), &_tmp28_, NULL, FALSE);
-#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp28_, 0, NULL, (GCallback) _checkerboard_layout_on_viewport_resized_gtk_widget_size_allocate, self);
-#line 12086 "CheckerboardLayout.c"
- }
-#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp29_ = config_facade_get_instance ();
-#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _tmp30_ = _tmp29_;
-#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_parse_name ("colors-changed", CONFIG_TYPE_FACADE, &_tmp31_, NULL, FALSE);
-#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- g_signal_handlers_disconnect_matched (_tmp30_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp31_, 0, NULL, (GCallback) _checkerboard_layout_on_colors_changed_config_facade_colors_changed, self);
-#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (_tmp30_);
-#line 854 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _data_collection_unref0 (self->priv->view);
-#line 855 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (self->priv->page_name);
-#line 856 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL);
-#line 857 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->exposed_items);
-#line 858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->hadjustment);
-#line 859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->vadjustment);
-#line 860 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_free0 (self->priv->message);
-#line 875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->anchor);
-#line 876 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- _g_object_unref0 (self->priv->cursor);
-#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala"
- G_OBJECT_CLASS (checkerboard_layout_parent_class)->finalize (obj);
-#line 12118 "CheckerboardLayout.c"
-}
-
-
-GType
-checkerboard_layout_get_type (void)
-{
- static volatile gsize checkerboard_layout_type_id__volatile = 0;
- if (g_once_init_enter (&checkerboard_layout_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CheckerboardLayoutClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_layout_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardLayout), 0, (GInstanceInitFunc) checkerboard_layout_instance_init, NULL };
- GType checkerboard_layout_type_id;
- checkerboard_layout_type_id = g_type_register_static (gtk_drawing_area_get_type (), "CheckerboardLayout", &g_define_type_info, 0);
- g_once_init_leave (&checkerboard_layout_type_id__volatile, checkerboard_layout_type_id);
- }
- return checkerboard_layout_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/CheckerboardLayout.vala b/src/CheckerboardLayout.vala
index 0c52748..c2d1a52 100644
--- a/src/CheckerboardLayout.vala
+++ b/src/CheckerboardLayout.vala
@@ -345,6 +345,18 @@ public abstract class CheckerboardItem : ThumbnailView {
return is_cursor;
}
+ public virtual void handle_mouse_motion(int x, int y, int height, int width) {
+
+ }
+
+ public virtual void handle_mouse_leave() {
+ unbrighten();
+ }
+
+ public virtual void handle_mouse_enter() {
+ brighten();
+ }
+
protected override void notify_membership_changed(DataCollection? collection) {
bool title_visible = (bool) get_collection_property(PROP_SHOW_TITLES, true);
bool comment_visible = (bool) get_collection_property(PROP_SHOW_COMMENTS, true);
@@ -572,7 +584,7 @@ public abstract class CheckerboardItem : ThumbnailView {
}
private int get_selection_border_width(int scale) {
- return ((scale <= ((Thumbnail.MIN_SCALE + Thumbnail.MAX_SCALE) / 3)) ? 2 : 3)
+ return ((scale <= ((Thumbnail.MIN_SCALE + Thumbnail.MAX_SCALE) / 3)) ? 5 : 4)
+ BORDER_WIDTH;
}
@@ -592,8 +604,8 @@ public abstract class CheckerboardItem : ThumbnailView {
return null;
}
- public void paint(Cairo.Context ctx, Gdk.RGBA bg_color, Gdk.RGBA selected_color,
- Gdk.RGBA text_color, Gdk.RGBA? border_color) {
+ public void paint(Gtk.StyleContext style_context, Cairo.Context ctx, Gdk.RGBA bg_color, Gdk.RGBA selected_color,
+ Gdk.RGBA? border_color, Gdk.RGBA? focus_color) {
ctx.save();
ctx.translate(allocation.x + FRAME_WIDTH,
allocation.y + FRAME_WIDTH);
@@ -619,8 +631,8 @@ public abstract class CheckerboardItem : ThumbnailView {
// draw a border for the cursor with the selection width and normal border color
if (is_cursor) {
ctx.save();
- ctx.set_source_rgba(border_color.red, border_color.green, border_color.blue,
- border_color.alpha);
+ ctx.set_source_rgba(focus_color.red, focus_color.green, focus_color.blue,
+ focus_color.alpha);
paint_border(ctx, pixbuf_dim, pixbuf_origin,
get_selection_border_width(int.max(pixbuf_dim.width, pixbuf_dim.height)));
ctx.restore();
@@ -635,15 +647,6 @@ public abstract class CheckerboardItem : ThumbnailView {
ctx.restore();
}
- // draw border
- if (border_color != null) {
- ctx.save();
- ctx.set_source_rgba(border_color.red, border_color.green, border_color.blue,
- border_color.alpha);
- paint_border(ctx, pixbuf_dim, pixbuf_origin, BORDER_WIDTH);
- ctx.restore();
- }
-
if (display_pixbuf != null) {
ctx.save();
ctx.set_source_rgba(bg_color.red, bg_color.green, bg_color.blue, bg_color.alpha);
@@ -651,45 +654,41 @@ public abstract class CheckerboardItem : ThumbnailView {
ctx.restore();
}
- ctx.set_source_rgba(text_color.red, text_color.green, text_color.blue, text_color.alpha);
-
// title and subtitles are LABEL_PADDING below bottom of pixbuf
int text_y = pixbuf_dim.height + FRAME_WIDTH + LABEL_PADDING;
if (title != null && title_visible) {
- // get the layout sized so its with is no more than the pixbuf's
+ // get the layout sized so its width is no more than the pixbuf's
// resize the text width to be no more than the pixbuf's
title.allocation.x = 0;
title.allocation.y = text_y;
title.allocation.width = pixbuf_dim.width;
title.allocation.height = title.get_height();
-
- ctx.move_to(title.allocation.x, title.allocation.y);
- Pango.cairo_show_layout(ctx, title.get_pango_layout(pixbuf_dim.width));
-
+ style_context.render_layout(ctx, title.allocation.x, title.allocation.y,
+ title.get_pango_layout(pixbuf_dim.width));
+
text_y += title.get_height() + LABEL_PADDING;
}
-
+
if (comment != null && comment_visible) {
comment.allocation.x = 0;
comment.allocation.y = text_y;
comment.allocation.width = pixbuf_dim.width;
comment.allocation.height = comment.get_height();
-
- ctx.move_to(comment.allocation.x, comment.allocation.y);
- Pango.cairo_show_layout(ctx, comment.get_pango_layout(pixbuf_dim.width));
-
+ style_context.render_layout(ctx, comment.allocation.x, comment.allocation.y,
+ comment.get_pango_layout(pixbuf_dim.width));
+
text_y += comment.get_height() + LABEL_PADDING;
}
-
+
if (subtitle != null && subtitle_visible) {
subtitle.allocation.x = 0;
subtitle.allocation.y = text_y;
subtitle.allocation.width = pixbuf_dim.width;
subtitle.allocation.height = subtitle.get_height();
-
- ctx.move_to(subtitle.allocation.x, subtitle.allocation.y);
- Pango.cairo_show_layout(ctx, subtitle.get_pango_layout(pixbuf_dim.width));
-
+
+ style_context.render_layout(ctx, subtitle.allocation.x, subtitle.allocation.y,
+ subtitle.get_pango_layout(pixbuf_dim.width));
+
// increment text_y if more text lines follow
}
@@ -775,6 +774,7 @@ public abstract class CheckerboardItem : ThumbnailView {
notify_view_altered();
}
+
public void unbrighten() {
// "should", "can", "didn't already"
if (brightened == null || pixbuf == null)
@@ -860,6 +860,7 @@ public class CheckerboardLayout : Gtk.DrawingArea {
private string message = null;
private Gdk.RGBA selected_color;
private Gdk.RGBA unselected_color;
+ private Gdk.RGBA focus_color;
private Gdk.RGBA border_color;
private Gdk.RGBA bg_color;
private Gdk.Rectangle visible_page = Gdk.Rectangle();
@@ -880,6 +881,7 @@ public class CheckerboardLayout : Gtk.DrawingArea {
private bool reflow_needed = false;
public CheckerboardLayout(ViewCollection view) {
+ this.get_style_context().add_class("content-view");
this.view = view;
clear_drag_select();
@@ -894,8 +896,6 @@ public class CheckerboardLayout : Gtk.DrawingArea {
view.geometries_altered.connect(on_geometries_altered);
view.items_selected.connect(on_items_selection_changed);
view.items_unselected.connect(on_items_selection_changed);
-
- override_background_color(Gtk.StateFlags.NORMAL, Config.Facade.get_instance().get_bg_color());
Config.Facade.get_instance().colors_changed.connect(on_colors_changed);
@@ -1289,6 +1289,11 @@ public class CheckerboardLayout : Gtk.DrawingArea {
}
public bool handle_mouse_motion(CheckerboardItem item, int x, int y, Gdk.ModifierType mask) {
+ int dx = x - item.allocation.x;
+ int dy = y - item.allocation.y;
+
+ item.handle_mouse_motion(dx, dy, item.allocation.height, item.allocation.width);
+
if (!item.has_tags || is_drag_select_active())
return false;
int tag_index = internal_handle_tag_mouse_event(item, x, y);
@@ -1916,10 +1921,22 @@ public class CheckerboardLayout : Gtk.DrawingArea {
private void set_colors(bool in_focus = true) {
// set up selected/unselected colors
- selected_color = Config.Facade.get_instance().get_selected_color(in_focus);
- unselected_color = Config.Facade.get_instance().get_unselected_color();
- border_color = Config.Facade.get_instance().get_border_color();
- bg_color = get_style_context().get_background_color(Gtk.StateFlags.NORMAL);
+ var ctx = get_style_context();
+ ctx.save();
+ ctx.add_class("view");
+ var val = ctx.get_property("border-color", Gtk.StateFlags.NORMAL);
+ focus_color = *(Gdk.RGBA*)val.get_boxed();
+
+ val = ctx.get_property("border-color", Gtk.StateFlags.FOCUSED);
+ border_color = *(Gdk.RGBA*)val.get_boxed();
+
+ // Checked in GtkIconView - The selection is drawn using render_background
+ val = ctx.get_property("background-color", Gtk.StateFlags.FOCUSED | Gtk.StateFlags.SELECTED);
+ selected_color = *(Gdk.RGBA*)val.get_boxed();
+
+ val = ctx.get_property("color", Gtk.StateFlags.NORMAL);
+ unselected_color = *(Gdk.RGBA*)val.get_boxed();
+ ctx.restore();
}
public override void size_allocate(Gtk.Allocation allocation) {
@@ -1951,8 +1968,8 @@ public class CheckerboardLayout : Gtk.DrawingArea {
// have all items in the exposed area paint themselves
foreach (CheckerboardItem item in intersection(visible_page)) {
- item.paint(ctx, bg_color, item.is_selected() ? selected_color : unselected_color,
- unselected_color, border_color);
+ item.paint(get_style_context(), ctx, bg_color, item.is_selected() ? selected_color : unselected_color,
+ border_color, focus_color);
}
} else {
// draw the message in the center of the window
@@ -1968,9 +1985,7 @@ public class CheckerboardLayout : Gtk.DrawingArea {
int y = allocation.height - text_height;
y = (y > 0) ? y / 2 : 0;
- ctx.set_source_rgb(unselected_color.red, unselected_color.green, unselected_color.blue);
- ctx.move_to(x, y);
- Pango.cairo_show_layout(ctx, pango_layout);
+ get_style_context().render_layout(ctx, x, y, pango_layout);
}
bool result = (base.draw != null) ? base.draw(ctx) : true;
@@ -1995,24 +2010,16 @@ public class CheckerboardLayout : Gtk.DrawingArea {
Gdk.Rectangle visible_band = Gdk.Rectangle();
visible_page.intersect(selection_band, out visible_band);
+ get_style_context().save();
+ get_style_context().add_class(Gtk.STYLE_CLASS_RUBBERBAND);
// pixelate selection rectangle interior
if (visible_band.width > 1 && visible_band.height > 1) {
- ctx.set_source_rgba(selected_color.red, selected_color.green, selected_color.blue,
- SELECTION_ALPHA);
- ctx.rectangle(visible_band.x, visible_band.y, visible_band.width,
- visible_band.height);
- ctx.fill();
+ get_style_context().render_background(ctx, visible_band.x, visible_band.y, visible_band.width, visible_band.height);
}
// border
- // See this for an explanation of the adjustments to the band's dimensions
- // http://cairographics.org/FAQ/#sharp_lines
- ctx.set_line_width(1.0);
- ctx.set_line_cap(Cairo.LineCap.SQUARE);
- ctx.set_source_rgb(selected_color.red, selected_color.green, selected_color.blue);
- ctx.rectangle((double) selection_band.x + 0.5, (double) selection_band.y + 0.5,
- (double) selection_band.width - 1.0, (double) selection_band.height - 1.0);
- ctx.stroke();
+ get_style_context().render_frame(ctx, visible_band.x, visible_band.y, visible_band.width, visible_band.height);
+ get_style_context().restore();
}
public override bool query_tooltip(int x, int y, bool keyboard_mode, Gtk.Tooltip tooltip) {
@@ -2023,8 +2030,7 @@ public class CheckerboardLayout : Gtk.DrawingArea {
private void on_colors_changed() {
invalidate_transparent_background();
- override_background_color(Gtk.StateFlags.NORMAL, Config.Facade.get_instance().get_bg_color());
- set_colors();
+ queue_draw();
}
public override bool focus_in_event(Gdk.EventFocus event) {
diff --git a/src/CollectionPage.c b/src/CollectionPage.c
deleted file mode 100644
index 9c194d3..0000000
--- a/src/CollectionPage.c
+++ /dev/null
@@ -1,6738 +0,0 @@
-/* CollectionPage.c generated by valac 0.40.4, the Vala compiler
- * generated from CollectionPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <gdk/gdk.h>
-#include <float.h>
-#include <math.h>
-#include <glib/gi18n-lib.h>
-#include "shotwell-graphics-processor.h"
-#include <time.h>
-
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ())
-#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager))
-#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER))
-#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER))
-#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-
-typedef struct _CollectionViewManager CollectionViewManager;
-typedef struct _CollectionViewManagerClass CollectionViewManagerClass;
-typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-typedef struct _CollectionPagePrivate CollectionPagePrivate;
-
-#define TYPE_EXPORTER_UI (exporter_ui_get_type ())
-#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI))
-#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass))
-#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI))
-#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI))
-#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass))
-
-typedef struct _ExporterUI ExporterUI;
-typedef struct _ExporterUIClass ExporterUIClass;
-
-#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ())
-#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter))
-#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-
-typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter;
-typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass;
-
-#define COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER (collection_page_collection_search_view_filter_get_type ())
-#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilter))
-#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass))
-#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER))
-#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER))
-#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass))
-
-typedef struct _CollectionPageCollectionSearchViewFilter CollectionPageCollectionSearchViewFilter;
-typedef struct _CollectionPageCollectionSearchViewFilterClass CollectionPageCollectionSearchViewFilterClass;
-enum {
- COLLECTION_PAGE_0_PROPERTY,
- COLLECTION_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* collection_page_properties[COLLECTION_PAGE_NUM_PROPERTIES];
-#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL)))
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY (media_page_zoom_slider_assembly_get_type ())
-#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly))
-#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass))
-#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY))
-#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY))
-#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass))
-
-typedef struct _MediaPageZoomSliderAssembly MediaPageZoomSliderAssembly;
-typedef struct _MediaPageZoomSliderAssemblyClass MediaPageZoomSliderAssemblyClass;
-#define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL)))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#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_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#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_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))
-#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER))
-#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER))
-#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass))
-
-typedef struct _PrintManager PrintManager;
-typedef struct _PrintManagerClass PrintManagerClass;
-#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL)))
-
-#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))
-#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
-#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
-#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
-
-typedef struct _MediaSourceItem MediaSourceItem;
-typedef struct _MediaSourceItemClass MediaSourceItemClass;
-
-#define TYPE_THUMBNAIL (thumbnail_get_type ())
-#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail))
-#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass))
-#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL))
-#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL))
-#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass))
-
-typedef struct _Thumbnail Thumbnail;
-typedef struct _ThumbnailClass ThumbnailClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_EXPORTER (exporter_get_type ())
-#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter))
-#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass))
-#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER))
-#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER))
-#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass))
-
-typedef struct _Exporter Exporter;
-typedef struct _ExporterClass ExporterClass;
-
-#define TYPE_EXPORT_DIALOG (export_dialog_get_type ())
-#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog))
-#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass))
-#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG))
-#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG))
-#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass))
-
-typedef struct _ExportDialog ExportDialog;
-typedef struct _ExportDialogClass ExportDialogClass;
-
-#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _Scaling Scaling;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ())
-#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand))
-#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
-#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
-#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
-#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
-
-typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand;
-typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass;
-
-#define TYPE_ROTATE_MULTIPLE_COMMAND (rotate_multiple_command_get_type ())
-#define ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand))
-#define ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass))
-#define IS_ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_MULTIPLE_COMMAND))
-#define IS_ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_MULTIPLE_COMMAND))
-#define ROTATE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass))
-
-typedef struct _RotateMultipleCommand RotateMultipleCommand;
-typedef struct _RotateMultipleCommandClass RotateMultipleCommandClass;
-
-#define TYPE_ROTATION (rotation_get_type ())
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND (multiple_photo_transformation_command_get_type ())
-#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand))
-#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass))
-#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND))
-#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND))
-#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass))
-
-typedef struct _MultiplePhotoTransformationCommand MultiplePhotoTransformationCommand;
-typedef struct _MultiplePhotoTransformationCommandClass MultiplePhotoTransformationCommandClass;
-
-#define TYPE_REVERT_MULTIPLE_COMMAND (revert_multiple_command_get_type ())
-#define REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand))
-#define REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass))
-#define IS_REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_MULTIPLE_COMMAND))
-#define IS_REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_MULTIPLE_COMMAND))
-#define REVERT_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass))
-
-typedef struct _RevertMultipleCommand RevertMultipleCommand;
-typedef struct _RevertMultipleCommandClass RevertMultipleCommandClass;
-#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
-
-#define TYPE_ADJUST_COLORS_MULTIPLE_COMMAND (adjust_colors_multiple_command_get_type ())
-#define ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand))
-#define ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass))
-#define IS_ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND))
-#define IS_ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND))
-#define ADJUST_COLORS_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass))
-
-typedef struct _AdjustColorsMultipleCommand AdjustColorsMultipleCommand;
-typedef struct _AdjustColorsMultipleCommandClass AdjustColorsMultipleCommandClass;
-
-#define TYPE_ENHANCE_MULTIPLE_COMMAND (enhance_multiple_command_get_type ())
-#define ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand))
-#define ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass))
-#define IS_ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND))
-#define IS_ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND))
-#define ENHANCE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass))
-
-typedef struct _EnhanceMultipleCommand EnhanceMultipleCommand;
-typedef struct _EnhanceMultipleCommandClass EnhanceMultipleCommandClass;
-
-#define TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (duplicate_multiple_photos_command_get_type ())
-#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand))
-#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass))
-#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND))
-#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND))
-#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass))
-
-typedef struct _DuplicateMultiplePhotosCommand DuplicateMultiplePhotosCommand;
-typedef struct _DuplicateMultiplePhotosCommandClass DuplicateMultiplePhotosCommandClass;
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-
-#define TYPE_ADJUST_DATE_TIME_DIALOG (adjust_date_time_dialog_get_type ())
-#define ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog))
-#define ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass))
-#define IS_ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_DIALOG))
-#define IS_ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_DIALOG))
-#define ADJUST_DATE_TIME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass))
-
-typedef struct _AdjustDateTimeDialog AdjustDateTimeDialog;
-typedef struct _AdjustDateTimeDialogClass AdjustDateTimeDialogClass;
-
-#define TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND (adjust_date_time_photos_command_get_type ())
-#define ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand))
-#define ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass))
-#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND))
-#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND))
-#define ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass))
-
-typedef struct _AdjustDateTimePhotosCommand AdjustDateTimePhotosCommand;
-typedef struct _AdjustDateTimePhotosCommandClass AdjustDateTimePhotosCommandClass;
-
-#define TYPE_SET_BACKGROUND_PHOTO_DIALOG (set_background_photo_dialog_get_type ())
-#define SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog))
-#define SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass))
-#define IS_SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG))
-#define IS_SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG))
-#define SET_BACKGROUND_PHOTO_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass))
-
-typedef struct _SetBackgroundPhotoDialog SetBackgroundPhotoDialog;
-typedef struct _SetBackgroundPhotoDialogClass SetBackgroundPhotoDialogClass;
-
-#define TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG (set_background_slideshow_dialog_get_type ())
-#define SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog))
-#define SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass))
-#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG))
-#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG))
-#define SET_BACKGROUND_SLIDESHOW_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass))
-
-typedef struct _SetBackgroundSlideshowDialog SetBackgroundSlideshowDialog;
-typedef struct _SetBackgroundSlideshowDialogClass SetBackgroundSlideshowDialogClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-
-#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ())
-#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage))
-#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
-#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE))
-#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE))
-#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
-
-typedef struct _SlideshowPage SlideshowPage;
-typedef struct _SlideshowPageClass SlideshowPageClass;
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate;
-typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate;
-typedef struct _CollectionPageCollectionSearchViewFilterPrivate CollectionPageCollectionSearchViewFilterPrivate;
-
-#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ())
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _CollectionViewManager {
- ViewManager parent_instance;
- CollectionViewManagerPrivate * priv;
-};
-
-struct _CollectionViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _CollectionViewManagerPrivate {
- CollectionPage* page;
-};
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _CollectionPage {
- MediaPage parent_instance;
- CollectionPagePrivate * priv;
-};
-
-struct _CollectionPageClass {
- MediaPageClass parent_class;
-};
-
-struct _CollectionPagePrivate {
- ExporterUI* exporter;
- CollectionPageCollectionSearchViewFilter* search_filter;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data);
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef enum {
- ROTATION_CLOCKWISE,
- ROTATION_COUNTERCLOCKWISE,
- ROTATION_MIRROR,
- ROTATION_UPSIDE_DOWN
-} Rotation;
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _SearchViewFilter {
- ViewFilter parent_instance;
- SearchViewFilterPrivate * priv;
-};
-
-struct _SearchViewFilterClass {
- ViewFilterClass parent_class;
- guint (*get_criteria) (SearchViewFilter* self);
-};
-
-struct _DefaultSearchViewFilter {
- SearchViewFilter parent_instance;
- DefaultSearchViewFilterPrivate * priv;
-};
-
-struct _DefaultSearchViewFilterClass {
- SearchViewFilterClass parent_class;
-};
-
-struct _CollectionPageCollectionSearchViewFilter {
- DefaultSearchViewFilter parent_instance;
- CollectionPageCollectionSearchViewFilterPrivate * priv;
-};
-
-struct _CollectionPageCollectionSearchViewFilterClass {
- DefaultSearchViewFilterClass parent_class;
-};
-
-typedef enum {
- SEARCH_FILTER_CRITERIA_NONE = 0,
- SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0,
- SEARCH_FILTER_CRITERIA_TEXT = 1 << 1,
- SEARCH_FILTER_CRITERIA_FLAG = 1 << 2,
- SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3,
- SEARCH_FILTER_CRITERIA_RATING = 1 << 4,
- SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5,
- SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL
-} SearchFilterCriteria;
-
-
-static gpointer collection_view_manager_parent_class = NULL;
-static gpointer collection_page_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-static gpointer collection_page_collection_search_view_filter_parent_class = NULL;
-
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType collection_view_manager_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-#define COLLECTION_VIEW_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerPrivate))
-CollectionViewManager* collection_view_manager_new (CollectionPage* page);
-CollectionViewManager* collection_view_manager_construct (GType object_type,
- CollectionPage* page);
-ViewManager* view_manager_construct (GType object_type);
-static DataView* collection_view_manager_real_create_view (ViewManager* base,
- DataSource* source);
-DataView* media_page_create_thumbnail (MediaPage* self,
- DataSource* source);
-static void collection_view_manager_finalize (ViewManager * obj);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-gpointer exporter_ui_ref (gpointer instance);
-void exporter_ui_unref (gpointer instance);
-GParamSpec* param_spec_exporter_ui (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_exporter_ui (GValue* value,
- gpointer v_object);
-void value_take_exporter_ui (GValue* value,
- gpointer v_object);
-gpointer value_get_exporter_ui (const GValue* value);
-GType exporter_ui_get_type (void) G_GNUC_CONST;
-GType default_search_view_filter_get_type (void) G_GNUC_CONST;
-GType collection_page_collection_search_view_filter_get_type (void) G_GNUC_CONST;
-#define COLLECTION_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLLECTION_PAGE, CollectionPagePrivate))
-CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void);
-CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_construct (GType object_type);
-#define COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC 2.0
-static void collection_page_on_print (CollectionPage* self);
-static void _collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_publish (CollectionPage* self);
-static void _collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_rotate_clockwise (CollectionPage* self);
-static void _collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_rotate_counterclockwise (CollectionPage* self);
-static void _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_flip_horizontally (CollectionPage* self);
-static void _collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_flip_vertically (CollectionPage* self);
-static void _collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_enhance (CollectionPage* self);
-static void _collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void collection_page_on_copy_adjustments (CollectionPage* self);
-static void _collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void collection_page_on_paste_adjustments (CollectionPage* self);
-static void _collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_revert (CollectionPage* self);
-static void _collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void collection_page_on_set_background (CollectionPage* self);
-static void _collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_duplicate_photo (CollectionPage* self);
-static void _collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_adjust_date_time (CollectionPage* self);
-static void _collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_external_edit (CollectionPage* self);
-static void _collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_external_edit_raw (CollectionPage* self);
-static void _collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void collection_page_on_slideshow (CollectionPage* self);
-static void _collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-CollectionPage* collection_page_construct (GType object_type,
- const gchar* page_name);
-MediaPage* media_page_construct (GType object_type,
- const gchar* page_name);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void collection_page_on_photos_altered (CollectionPage* self,
- GeeMap* altered);
-static void _collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-void checkerboard_page_init_item_context_menu (CheckerboardPage* self,
- const gchar* path);
-void page_init_toolbar (Page* self,
- const gchar* path);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-static void collection_page_on_external_app_changed (CollectionPage* self);
-static void _collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender,
- gpointer self);
-static GtkToolbar* collection_page_real_get_toolbar (Page* base);
-GtkToolbar* page_get_toolbar (Page* self);
-GType media_page_zoom_slider_assembly_get_type (void) G_GNUC_CONST;
-MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self);
-void media_page_connect_slider (MediaPage* self,
- MediaPageZoomSliderAssembly* slider);
-static InjectionGroup* collection_page_create_file_menu_injectables (void);
-InjectionGroup* injection_group_new (const gchar* path);
-InjectionGroup* injection_group_construct (GType object_type,
- const gchar* path);
-void injection_group_add_menu_item (InjectionGroup* self,
- const gchar* name,
- const gchar* action,
- const gchar* accellerator);
-void injection_group_add_separator (InjectionGroup* self);
-static InjectionGroup* collection_page_create_edit_menu_injectables (void);
-static InjectionGroup* collection_page_create_view_menu_fullscreen_injectables (void);
-static InjectionGroup* collection_page_create_photos_menu_edits_injectables (void);
-static InjectionGroup* collection_page_create_photos_menu_date_injectables (void);
-static InjectionGroup* collection_page_create_photos_menu_externals_injectables (void);
-static void collection_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames);
-void page_init_collect_ui_filenames (Page* self,
- GeeList* ui_filenames);
-static void collection_page_real_add_actions (Page* base,
- GActionMap* map);
-void page_add_actions (Page* self,
- GActionMap* map);
-static void collection_page_real_remove_actions (Page* base,
- GActionMap* map);
-void page_remove_actions (Page* self,
- GActionMap* map);
-static InjectionGroup** collection_page_real_init_collect_injection_groups (Page* base,
- int* result_length1);
-InjectionGroup** page_init_collect_injection_groups (Page* self,
- int* result_length1);
-static void _vala_array_add79 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void _vala_array_add80 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void _vala_array_add81 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void _vala_array_add82 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void _vala_array_add83 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void _vala_array_add84 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static gboolean collection_page_selection_has_video (CollectionPage* self);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-gboolean media_source_collection_has_video (GeeCollection* media);
-GeeList* view_collection_get_selected_sources (ViewCollection* self);
-static gboolean collection_page_page_has_photo (CollectionPage* self);
-gboolean media_source_collection_has_photo (GeeCollection* media);
-GeeCollection* view_collection_get_sources (ViewCollection* self);
-static gboolean collection_page_selection_has_photo (CollectionPage* self);
-static void collection_page_real_init_actions (Page* base,
- gint selected_count,
- gint count);
-void page_init_actions (Page* self,
- gint selected_count,
- gint count);
-void page_set_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive);
-static void collection_page_real_update_actions (Page* base,
- gint selected_count,
- gint count);
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-Page* page_window_get_current_page (PageWindow* self);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-DataView* view_collection_get_selected_at (ViewCollection* self,
- gint index);
-DataSource* data_view_get_source (DataView* self);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-gboolean is_string_empty (const gchar* s);
-gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self);
-static gboolean collection_page_can_revert_selected (CollectionPage* self);
-gboolean photo_has_color_adjustments (Photo* self);
-#define RESOURCES_SET_BACKGROUND_MENU _ ("Set as _Desktop Background")
-#define RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU _ ("Set as _Desktop Slideshow…")
-void page_update_menu_item_label (Page* self,
- const gchar* id,
- const gchar* new_label);
-gboolean data_view_is_selected (DataView* self);
-gboolean alteration_has_subject (Alteration* self,
- const gchar* subject);
-GType library_photo_get_type (void) G_GNUC_CONST;
-gint view_collection_get_selected_count (ViewCollection* self);
-gpointer print_manager_ref (gpointer instance);
-void print_manager_unref (gpointer instance);
-GParamSpec* param_spec_print_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_print_manager (GValue* value,
- gpointer v_object);
-void value_take_print_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_print_manager (const GValue* value);
-GType print_manager_get_type (void) G_GNUC_CONST;
-PrintManager* print_manager_get_instance (void);
-void print_manager_spool_photo (PrintManager* self,
- GeeCollection* to_print);
-GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self,
- GType t);
-static void collection_page_real_on_item_activated (CheckerboardPage* base,
- CheckerboardItem* item,
- CheckerboardPageActivator activator,
- CheckerboardPageKeyboardModifiers* modifiers);
-GType media_source_item_get_type (void) G_GNUC_CONST;
-GType thumbnail_get_type (void) G_GNUC_CONST;
-MediaSource* thumbnail_get_media_source (Thumbnail* self);
-void media_page_on_play_video (MediaPage* self);
-gchar* data_object_to_string (DataObject* self);
-GType library_window_get_type (void) G_GNUC_CONST;
-LibraryWindow* library_window_get_app (void);
-void library_window_switch_to_photo_page (LibraryWindow* self,
- CollectionPage* controller,
- Photo* current);
-static gboolean collection_page_real_on_app_key_pressed (Page* base,
- GdkEventKey* event);
-void page_activate_action (Page* self,
- const gchar* name);
-gboolean page_on_app_key_pressed (Page* self,
- GdkEventKey* event);
-static void collection_page_real_on_export (MediaPage* base);
-GType exporter_get_type (void) G_GNUC_CONST;
-ExporterUI* video_export_many (GeeCollection* videos,
- ExporterCompletionCallback done,
- void* done_target,
- gboolean export_in_place);
-static void collection_page_on_export_completed (CollectionPage* self);
-static void _collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self);
-GType export_dialog_get_type (void) G_GNUC_CONST;
-ExportDialog* export_dialog_new (const gchar* title);
-ExportDialog* export_dialog_construct (GType object_type,
- const gchar* title);
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-void export_format_parameters_current (ExportFormatParameters* result);
-void export_format_parameters_last (ExportFormatParameters* result);
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-gboolean export_dialog_execute (ExportDialog* self,
- gint* scale,
- ScaleConstraint* constraint,
- ExportFormatParameters* parameters);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void scaling_for_constraint (ScaleConstraint constraint,
- gint scale,
- gboolean scale_up,
- Scaling* result);
-GFile* export_ui_choose_file (const gchar* current_file_basename);
-gchar* photo_get_export_basename_for_parameters (Photo* self,
- ExportFormatParameters* params);
-void page_window_set_busy_cursor (PageWindow* self);
-void photo_export (Photo* self,
- GFile* dest_file,
- Scaling* scaling,
- JpegQuality quality,
- PhotoFileFormat export_format,
- gboolean direct_copy_unmodified,
- gboolean export_metadata,
- GError** error);
-PhotoFileFormat photo_get_export_format_for_parameters (Photo* self,
- ExportFormatParameters* params);
-void page_window_set_normal_cursor (PageWindow* self);
-GtkResponseType export_error_dialog (GFile* dest,
- gboolean photos_remaining);
-GFile* export_ui_choose_dir (const gchar* user_title);
-Exporter* exporter_new (GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-Exporter* exporter_construct (GType object_type,
- GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-ExporterUI* exporter_ui_new (Exporter* exporter);
-ExporterUI* exporter_ui_construct (GType object_type,
- Exporter* exporter);
-void exporter_ui_export (ExporterUI* self,
- ExporterCompletionCallback completion_callback,
- void* completion_callback_target);
-gboolean photo_has_transformations (Photo* self);
-gboolean photo_has_editable (Photo* self);
-static gboolean collection_page_can_revert_editable_selected (CollectionPage* self);
-GType command_get_type (void) G_GNUC_CONST;
-GType page_command_get_type (void) G_GNUC_CONST;
-GType multiple_data_source_command_get_type (void) G_GNUC_CONST;
-GType rotate_multiple_command_get_type (void) G_GNUC_CONST;
-GeeList* view_collection_get_selected (ViewCollection* self);
-GType rotation_get_type (void) G_GNUC_CONST;
-#define RESOURCES_ROTATE_CW_FULL_LABEL _ ("Rotate Right")
-#define RESOURCES_ROTATE_CW_TOOLTIP _ ("Rotate the photos right (press Ctrl to rotate left)")
-RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation,
- const gchar* progress_text,
- const gchar* undo_progress_text);
-RotateMultipleCommand* rotate_multiple_command_construct (GType object_type,
- GeeIterable* iter,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation,
- const gchar* progress_text,
- const gchar* undo_progress_text);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* page_get_command_manager (Page* self);
-void command_manager_execute (CommandManager* self,
- Command* command);
-void publishing_ui_publishing_dialog_go (GeeCollection* to_publish);
-#define RESOURCES_ROTATE_CCW_FULL_LABEL _ ("Rotate Left")
-#define RESOURCES_ROTATE_CCW_TOOLTIP _ ("Rotate the photos left")
-#define RESOURCES_HFLIP_LABEL _ ("Flip Horizontally")
-#define RESOURCES_VFLIP_LABEL _ ("Flip Vertically")
-gboolean revert_editable_dialog (GtkWindow* owner,
- GeeCollection* photos);
-void photo_revert_to_master (Photo* self,
- gboolean notify);
-GType multiple_photo_transformation_command_get_type (void) G_GNUC_CONST;
-GType revert_multiple_command_get_type (void) G_GNUC_CONST;
-RevertMultipleCommand* revert_multiple_command_new (GeeIterable* iter);
-RevertMultipleCommand* revert_multiple_command_construct (GType object_type,
- GeeIterable* iter);
-PixelTransformationBundle* photo_get_color_adjustments (Photo* self);
-GType adjust_colors_multiple_command_get_type (void) G_GNUC_CONST;
-#define RESOURCES_PASTE_ADJUSTMENTS_LABEL _ ("Paste Color Adjustments")
-#define RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP _ ("Apply copied color adjustments to the selected photos")
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type,
- GeeIterable* iter,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-GType enhance_multiple_command_get_type (void) G_GNUC_CONST;
-EnhanceMultipleCommand* enhance_multiple_command_new (GeeIterable* iter);
-EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type,
- GeeIterable* iter);
-GType duplicate_multiple_photos_command_get_type (void) G_GNUC_CONST;
-DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_new (GeeIterable* iter);
-DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type,
- GeeIterable* iter);
-GType dateable_get_type (void) G_GNUC_CONST;
-GType adjust_date_time_dialog_get_type (void) G_GNUC_CONST;
-AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source,
- gint photo_count,
- gboolean display_options,
- gboolean contains_video,
- gboolean only_video);
-AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type,
- Dateable* source,
- gint photo_count,
- gboolean display_options,
- gboolean contains_video,
- gboolean only_video);
-gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self,
- gint64* time_shift,
- gboolean* keep_relativity,
- gboolean* modify_originals);
-GType adjust_date_time_photos_command_get_type (void) G_GNUC_CONST;
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter,
- gint64 time_shift,
- gboolean keep_relativity,
- gboolean modify_originals);
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type,
- GeeIterable* iter,
- gint64 time_shift,
- gboolean keep_relativity,
- gboolean modify_originals);
-void photo_open_with_external_editor (Photo* self,
- GError** error);
-void open_external_editor_error_dialog (GError* err,
- Photo* photo);
-void photo_open_with_raw_external_editor (Photo* self,
- GError** error);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-gchar* resources_launch_editor_failed (GError* err);
-void media_source_collection_filter_media (GeeCollection* media,
- GeeCollection* photos,
- GeeCollection* videos);
-GType set_background_photo_dialog_get_type (void) G_GNUC_CONST;
-SetBackgroundPhotoDialog* set_background_photo_dialog_new (void);
-SetBackgroundPhotoDialog* set_background_photo_dialog_construct (GType object_type);
-gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self,
- gboolean* desktop_background,
- gboolean* screensaver);
-void desktop_integration_set_background (Photo* photo,
- gboolean desktop,
- gboolean screensaver);
-GType set_background_slideshow_dialog_get_type (void) G_GNUC_CONST;
-SetBackgroundSlideshowDialog* set_background_slideshow_dialog_new (void);
-SetBackgroundSlideshowDialog* set_background_slideshow_dialog_construct (GType object_type);
-gboolean set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self,
- gint* delay_value,
- gboolean* desktop_background,
- gboolean* screensaver);
-void desktop_integration_set_background_slideshow (GeeCollection* photos,
- gdouble duration,
- gdouble transition,
- gboolean desktop_background,
- gboolean screensaver);
-gint data_collection_get_count (DataCollection* self);
-GeeList* view_collection_get_sources_of_type (ViewCollection* self,
- GType t);
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-void app_window_go_fullscreen (AppWindow* self,
- Page* page);
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-SlideshowPage* slideshow_page_new (SourceCollection* sources,
- ViewCollection* controller,
- Photo* start);
-SlideshowPage* slideshow_page_construct (GType object_type,
- SourceCollection* sources,
- ViewCollection* controller,
- Photo* start);
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType slideshow_page_get_type (void) G_GNUC_CONST;
-static gboolean collection_page_real_on_ctrl_pressed (Page* base,
- GdkEventKey* event);
-gboolean page_on_ctrl_pressed (Page* self,
- GdkEventKey* event);
-static gboolean collection_page_real_on_ctrl_released (Page* base,
- GdkEventKey* event);
-gboolean page_on_ctrl_released (Page* self,
- GdkEventKey* event);
-static SearchViewFilter* collection_page_real_get_search_view_filter (CheckerboardPage* base);
-static guint collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base);
-GType search_filter_criteria_get_type (void) G_GNUC_CONST;
-DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type);
-static void collection_page_finalize (GObject * obj);
-static void _vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func);
-static void _vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func);
-
-static const GActionEntry COLLECTION_PAGE_entries[16] = {{"Print", _collection_page_on_print_gsimple_action_activate_callback}, {"Publish", _collection_page_on_publish_gsimple_action_activate_callback}, {"RotateClockwise", _collection_page_on_rotate_clockwise_gsimple_action_activate_callback}, {"RotateCounterclockwise", _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback}, {"FlipHorizontally", _collection_page_on_flip_horizontally_gsimple_action_activate_callback}, {"FlipVertically", _collection_page_on_flip_vertically_gsimple_action_activate_callback}, {"Enhance", _collection_page_on_enhance_gsimple_action_activate_callback}, {"CopyColorAdjustments", _collection_page_on_copy_adjustments_gsimple_action_activate_callback}, {"PasteColorAdjustments", _collection_page_on_paste_adjustments_gsimple_action_activate_callback}, {"Revert", _collection_page_on_revert_gsimple_action_activate_callback}, {"SetBackground", _collection_page_on_set_background_gsimple_action_activate_callback}, {"Duplicate", _collection_page_on_duplicate_photo_gsimple_action_activate_callback}, {"AdjustDateTime", _collection_page_on_adjust_date_time_gsimple_action_activate_callback}, {"ExternalEdit", _collection_page_on_external_edit_gsimple_action_activate_callback}, {"ExternalEditRAW", _collection_page_on_external_edit_raw_gsimple_action_activate_callback}, {"Slideshow", _collection_page_on_slideshow_gsimple_action_activate_callback}};
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1626 "CollectionPage.c"
-}
-
-
-CollectionViewManager*
-collection_view_manager_construct (GType object_type,
- CollectionPage* page)
-{
- CollectionViewManager* self = NULL;
- CollectionPage* _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (IS_COLLECTION_PAGE (page), NULL);
-#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = (CollectionViewManager*) view_manager_construct (object_type);
-#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = _g_object_ref0 (page);
-#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (self->priv->page);
-#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->page = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return self;
-#line 1648 "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 1657 "CollectionPage.c"
-}
-
-
-static DataView*
-collection_view_manager_real_create_view (ViewManager* base,
- DataSource* source)
-{
- CollectionViewManager * self;
- DataView* result = NULL;
- CollectionPage* _tmp0_;
- DataView* _tmp1_;
-#line 14 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager);
-#line 14 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = self->priv->page;
-#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = media_page_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_PAGE, MediaPage), source);
-#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp1_;
-#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 1681 "CollectionPage.c"
-}
-
-
-static void
-collection_view_manager_class_init (CollectionViewManagerClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_view_manager_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((ViewManagerClass *) klass)->finalize = collection_view_manager_finalize;
-#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_type_class_add_private (klass, sizeof (CollectionViewManagerPrivate));
-#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) collection_view_manager_real_create_view;
-#line 1696 "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 1705 "CollectionPage.c"
-}
-
-
-static void
-collection_view_manager_finalize (ViewManager * obj)
-{
- CollectionViewManager * self;
-#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager);
-#line 8 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _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 1719 "CollectionPage.c"
-}
-
-
-GType
-collection_view_manager_get_type (void)
-{
- static volatile gsize collection_view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&collection_view_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CollectionViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionViewManager), 0, (GInstanceInitFunc) collection_view_manager_instance_init, NULL };
- GType collection_view_manager_type_id;
- collection_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "CollectionViewManager", &g_define_type_info, 0);
- g_once_init_leave (&collection_view_manager_type_id__volatile, collection_view_manager_type_id);
- }
- return collection_view_manager_type_id__volatile;
-}
-
-
-static void
-_collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_print ((CollectionPage*) self);
-#line 1744 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_publish ((CollectionPage*) self);
-#line 1755 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_rotate_clockwise ((CollectionPage*) self);
-#line 1766 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_rotate_counterclockwise ((CollectionPage*) self);
-#line 1777 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_flip_horizontally ((CollectionPage*) self);
-#line 1788 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_flip_vertically ((CollectionPage*) self);
-#line 1799 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_enhance ((CollectionPage*) self);
-#line 1810 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_copy_adjustments ((CollectionPage*) self);
-#line 1821 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_paste_adjustments ((CollectionPage*) self);
-#line 1832 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_revert ((CollectionPage*) self);
-#line 1843 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_set_background ((CollectionPage*) self);
-#line 1854 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_duplicate_photo ((CollectionPage*) self);
-#line 1865 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_adjust_date_time ((CollectionPage*) self);
-#line 1876 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_external_edit ((CollectionPage*) self);
-#line 1887 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_external_edit_raw ((CollectionPage*) self);
-#line 1898 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_slideshow ((CollectionPage*) self);
-#line 1909 "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 1920 "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 1930 "CollectionPage.c"
-}
-
-
-CollectionPage*
-collection_page_construct (GType object_type,
- const gchar* page_name)
-{
- CollectionPage * self = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
-#line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (page_name != NULL, NULL);
-#line 33 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = (CollectionPage*) media_page_construct (object_type, page_name);
-#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _collection_page_on_photos_altered_data_collection_items_altered, self, 0);
-#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 37 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "CollectionContextMenu");
-#line 38 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_init_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CollectionToolbar");
-#line 40 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "external-app-changed", (GCallback) _collection_page_on_external_app_changed_configuration_facade_external_app_changed, self, 0);
-#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return self;
-#line 1971 "CollectionPage.c"
-}
-
-
-static GtkToolbar*
-collection_page_real_get_toolbar (Page* base)
-{
- CollectionPage * self;
- GtkToolbar* result = NULL;
- GtkToolbar* _tmp0_;
- GtkToolbar* _tmp28_;
- GtkToolbar* _tmp29_;
-#line 46 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp0_ == NULL) {
-#line 1989 "CollectionPage.c"
- GtkToolbar* _tmp1_;
- GtkToolbar* _tmp2_;
- GtkSeparatorToolItem* separator = NULL;
- GtkSeparatorToolItem* _tmp3_;
- GtkSeparatorToolItem* _tmp4_;
- GtkSeparatorToolItem* _tmp5_;
- GtkToolbar* _tmp6_;
- GtkToolbar* _tmp7_;
- GtkSeparatorToolItem* _tmp8_;
- GtkSeparatorToolItem* drawn_separator = NULL;
- GtkSeparatorToolItem* _tmp9_;
- GtkSeparatorToolItem* _tmp10_;
- GtkSeparatorToolItem* _tmp11_;
- GtkToolbar* _tmp12_;
- GtkToolbar* _tmp13_;
- GtkSeparatorToolItem* _tmp14_;
- MediaPageZoomSliderAssembly* zoom_slider_assembly = NULL;
- MediaPageZoomSliderAssembly* _tmp15_;
- MediaPageZoomSliderAssembly* _tmp16_;
- GtkToolbar* _tmp17_;
- GtkToolbar* _tmp18_;
- MediaPageZoomSliderAssembly* _tmp19_;
- GtkToolButton* rotate_button = NULL;
- GtkBuilder* _tmp20_;
- GObject* _tmp21_;
- GtkToolButton* _tmp22_;
- GtkBindingSet* binding_set = NULL;
- GtkToolButton* _tmp23_;
- GObjectClass* _tmp24_;
- GtkBindingSet* _tmp25_;
- GtkBindingSet* _tmp26_;
- GtkBindingSet* _tmp27_;
-#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = PAGE_CLASS (collection_page_parent_class)->get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page));
-#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp3_);
-#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- separator = _tmp3_;
-#line 52 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = separator;
-#line 52 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 53 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = separator;
-#line 53 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_separator_tool_item_set_draw (_tmp5_, FALSE);
-#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = separator;
-#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_toolbar_insert (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp9_);
-#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- drawn_separator = _tmp9_;
-#line 57 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = drawn_separator;
-#line 57 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_tool_item_get_type (), GtkToolItem), FALSE);
-#line 58 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = drawn_separator;
-#line 58 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_separator_tool_item_set_draw (_tmp11_, TRUE);
-#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _tmp12_;
-#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = drawn_separator;
-#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_toolbar_insert (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 63 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = media_page_create_zoom_slider_assembly (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
-#line 63 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- zoom_slider_assembly = _tmp15_;
-#line 64 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = zoom_slider_assembly;
-#line 64 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- media_page_connect_slider (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), _tmp16_);
-#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = _tmp17_;
-#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = zoom_slider_assembly;
-#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_toolbar_insert (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = gtk_builder_get_object (_tmp20_, "ToolRotate");
-#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp21_) : NULL);
-#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- rotate_button = _tmp22_;
-#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = rotate_button;
-#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = G_OBJECT_GET_CLASS (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, G_TYPE_OBJECT, GObject));
-#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = gtk_binding_set_by_class ((gpointer) _tmp24_);
-#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- binding_set = _tmp25_;
-#line 69 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = binding_set;
-#line 69 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_binding_entry_add_signal (_tmp26_, (guint) GDK_KEY_KP_Space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL);
-#line 70 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = binding_set;
-#line 70 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_binding_entry_add_signal (_tmp27_, (guint) GDK_KEY_space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL);
-#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (rotate_button);
-#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (zoom_slider_assembly);
-#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (drawn_separator);
-#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (separator);
-#line 2126 "CollectionPage.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = _g_object_ref0 (_tmp28_);
-#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp29_;
-#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2136 "CollectionPage.c"
-}
-
-
-static InjectionGroup*
-collection_page_create_file_menu_injectables (void)
-{
- InjectionGroup* result = NULL;
- InjectionGroup* group = NULL;
- InjectionGroup* _tmp0_;
-#line 78 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = injection_group_new ("FileExtrasPlaceholder");
-#line 78 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- group = _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("_Print"), "Print", "<Primary>p");
-#line 81 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_separator (group);
-#line 82 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("_Publish"), "Publish", "<Primary><Shift>p");
-#line 83 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Send _To…"), "SendTo", NULL);
-#line 84 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Set as _Desktop Background"), "SetBackground", "<Primary>b");
-#line 86 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = group;
-#line 86 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2164 "CollectionPage.c"
-}
-
-
-static InjectionGroup*
-collection_page_create_edit_menu_injectables (void)
-{
- InjectionGroup* result = NULL;
- InjectionGroup* group = NULL;
- InjectionGroup* _tmp0_;
-#line 90 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = injection_group_new ("EditExtrasPlaceholder");
-#line 90 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- group = _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("_Duplicate"), "Duplicate", "<Primary>D");
-#line 94 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = group;
-#line 94 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2184 "CollectionPage.c"
-}
-
-
-static InjectionGroup*
-collection_page_create_view_menu_fullscreen_injectables (void)
-{
- InjectionGroup* result = NULL;
- InjectionGroup* group = NULL;
- InjectionGroup* _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = injection_group_new ("ViewExtrasFullscreenSlideshowPlaceholder");
-#line 98 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- group = _tmp0_;
-#line 100 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Fullscreen"), "CommonFullscreen", "F11");
-#line 101 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_separator (group);
-#line 102 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("S_lideshow"), "Slideshow", "F5");
-#line 104 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = group;
-#line 104 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2208 "CollectionPage.c"
-}
-
-
-static InjectionGroup*
-collection_page_create_photos_menu_edits_injectables (void)
-{
- InjectionGroup* result = NULL;
- InjectionGroup* group = NULL;
- InjectionGroup* _tmp0_;
-#line 108 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = injection_group_new ("PhotosExtrasEditsPlaceholder");
-#line 108 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- group = _tmp0_;
-#line 110 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Rotate _Right"), "RotateClockwise", "<Primary>r");
-#line 113 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Rotate _Left"), "RotateCounterclockwise", "<Primary><Shift>r");
-#line 116 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Flip Hori_zontally"), "FlipHorizontally", NULL);
-#line 117 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Flip Verti_cally"), "FlipVertically", NULL);
-#line 118 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_separator (group);
-#line 119 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("_Enhance"), "Enhance", NULL);
-#line 120 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Re_vert to Original"), "Revert", NULL);
-#line 121 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_separator (group);
-#line 122 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("_Copy Color Adjustments"), "CopyColorAdjustments", "<Primary><Shift>c");
-#line 125 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("_Paste Color Adjustments"), "PasteColorAdjustments", "<Primary><Shift>v");
-#line 129 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = group;
-#line 129 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2246 "CollectionPage.c"
-}
-
-
-static InjectionGroup*
-collection_page_create_photos_menu_date_injectables (void)
-{
- InjectionGroup* result = NULL;
- InjectionGroup* group = NULL;
- InjectionGroup* _tmp0_;
-#line 133 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = injection_group_new ("PhotosExtrasDateTimePlaceholder");
-#line 133 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- group = _tmp0_;
-#line 135 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Adjust Date and Time…"), "AdjustDateTime", "F4");
-#line 137 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = group;
-#line 137 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2266 "CollectionPage.c"
-}
-
-
-static InjectionGroup*
-collection_page_create_photos_menu_externals_injectables (void)
-{
- InjectionGroup* result = NULL;
- InjectionGroup* group = NULL;
- InjectionGroup* _tmp0_;
-#line 141 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = injection_group_new ("PhotosExtrasExternalsPlaceholder");
-#line 141 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- group = _tmp0_;
-#line 143 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Open With E_xternal Editor"), "ExternalEdit", "<Primary>Return");
-#line 146 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Open With RA_W Editor"), "ExternalEditRAW", "<Primary><Shift>Return");
-#line 149 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("_Play"), "PlayVideo", "<Primary>Y");
-#line 151 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = group;
-#line 151 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2290 "CollectionPage.c"
-}
-
-
-static void
-collection_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- CollectionPage * self;
-#line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 155 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), ui_filenames);
-#line 157 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "collection.ui");
-#line 2307 "CollectionPage.c"
-}
-
-
-static void
-collection_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- CollectionPage * self;
-#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"
- PAGE_CLASS (collection_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), map);
-#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_action_map_add_action_entries (map, COLLECTION_PAGE_entries, G_N_ELEMENTS (COLLECTION_PAGE_entries), self);
-#line 2324 "CollectionPage.c"
-}
-
-
-static void
-collection_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- CollectionPage * self;
-#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), map);
-#line 2339 "CollectionPage.c"
- {
- GActionEntry* entry_collection = NULL;
- gint entry_collection_length1 = 0;
- gint _entry_collection_size_ = 0;
- gint entry_it = 0;
-#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- entry_collection = COLLECTION_PAGE_entries;
-#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- entry_collection_length1 = G_N_ELEMENTS (COLLECTION_PAGE_entries);
-#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- for (entry_it = 0; entry_it < G_N_ELEMENTS (COLLECTION_PAGE_entries); entry_it = entry_it + 1) {
-#line 2351 "CollectionPage.c"
- GActionEntry entry = {0};
-#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- entry = entry_collection[entry_it];
-#line 2355 "CollectionPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = entry;
-#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 2365 "CollectionPage.c"
- }
- }
- }
-}
-
-
-static void
-_vala_array_add79 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if ((*length) == (*size)) {
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2384 "CollectionPage.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[(*length)++] = value;
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[*length] = NULL;
-#line 2390 "CollectionPage.c"
-}
-
-
-static void
-_vala_array_add80 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if ((*length) == (*size)) {
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2406 "CollectionPage.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[(*length)++] = value;
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[*length] = NULL;
-#line 2412 "CollectionPage.c"
-}
-
-
-static void
-_vala_array_add81 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if ((*length) == (*size)) {
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2428 "CollectionPage.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[(*length)++] = value;
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[*length] = NULL;
-#line 2434 "CollectionPage.c"
-}
-
-
-static void
-_vala_array_add82 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if ((*length) == (*size)) {
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2450 "CollectionPage.c"
- }
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[(*length)++] = value;
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[*length] = NULL;
-#line 2456 "CollectionPage.c"
-}
-
-
-static void
-_vala_array_add83 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if ((*length) == (*size)) {
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2472 "CollectionPage.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[(*length)++] = value;
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[*length] = NULL;
-#line 2478 "CollectionPage.c"
-}
-
-
-static void
-_vala_array_add84 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if ((*length) == (*size)) {
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2494 "CollectionPage.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[(*length)++] = value;
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- (*array)[*length] = NULL;
-#line 2500 "CollectionPage.c"
-}
-
-
-static InjectionGroup**
-collection_page_real_init_collect_injection_groups (Page* base,
- int* result_length1)
-{
- CollectionPage * self;
- InjectionGroup** result = NULL;
- InjectionGroup** groups = NULL;
- gint _tmp0_;
- InjectionGroup** _tmp1_;
- gint groups_length1;
- gint _groups_size_;
- InjectionGroup** _tmp2_;
- gint _tmp2__length1;
- InjectionGroup* _tmp3_;
- InjectionGroup** _tmp4_;
- gint _tmp4__length1;
- InjectionGroup* _tmp5_;
- InjectionGroup** _tmp6_;
- gint _tmp6__length1;
- InjectionGroup* _tmp7_;
- InjectionGroup** _tmp8_;
- gint _tmp8__length1;
- InjectionGroup* _tmp9_;
- InjectionGroup** _tmp10_;
- gint _tmp10__length1;
- InjectionGroup* _tmp11_;
- InjectionGroup** _tmp12_;
- gint _tmp12__length1;
- InjectionGroup* _tmp13_;
- InjectionGroup** _tmp14_;
- gint _tmp14__length1;
-#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 193 "/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 193 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- groups = _tmp1_;
-#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- groups_length1 = _tmp0_;
-#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _groups_size_ = groups_length1;
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = groups;
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2__length1 = groups_length1;
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = collection_page_create_file_menu_injectables ();
-#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add79 (&groups, &groups_length1, &_groups_size_, _tmp3_);
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = groups;
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4__length1 = groups_length1;
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = collection_page_create_edit_menu_injectables ();
-#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add80 (&groups, &groups_length1, &_groups_size_, _tmp5_);
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = groups;
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6__length1 = groups_length1;
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = collection_page_create_view_menu_fullscreen_injectables ();
-#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add81 (&groups, &groups_length1, &_groups_size_, _tmp7_);
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = groups;
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8__length1 = groups_length1;
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = collection_page_create_photos_menu_edits_injectables ();
-#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add82 (&groups, &groups_length1, &_groups_size_, _tmp9_);
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = groups;
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10__length1 = groups_length1;
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = collection_page_create_photos_menu_date_injectables ();
-#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add83 (&groups, &groups_length1, &_groups_size_, _tmp11_);
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = groups;
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12__length1 = groups_length1;
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = collection_page_create_photos_menu_externals_injectables ();
-#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add84 (&groups, &groups_length1, &_groups_size_, _tmp13_);
-#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = groups;
-#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14__length1 = groups_length1;
-#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (result_length1) {
-#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- *result_length1 = _tmp14__length1;
-#line 2601 "CollectionPage.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp14_;
-#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2607 "CollectionPage.c"
-}
-
-
-static gboolean
-collection_page_selection_has_video (CollectionPage* self)
-{
- gboolean result = FALSE;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeCollection* _tmp3_;
- gboolean _tmp4_;
-#line 205 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = media_source_collection_has_video (_tmp3_);
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp4_;
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2640 "CollectionPage.c"
-}
-
-
-static gboolean
-collection_page_page_has_photo (CollectionPage* self)
-{
- gboolean result = FALSE;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- gboolean _tmp4_;
-#line 209 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_sources (_tmp1_);
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = media_source_collection_has_photo (_tmp3_);
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp4_;
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2673 "CollectionPage.c"
-}
-
-
-static gboolean
-collection_page_selection_has_photo (CollectionPage* self)
-{
- gboolean result = FALSE;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeCollection* _tmp3_;
- gboolean _tmp4_;
-#line 213 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = media_source_collection_has_photo (_tmp3_);
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp4_;
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 2706 "CollectionPage.c"
-}
-
-
-static void
-collection_page_real_init_actions (Page* base,
- gint selected_count,
- gint count)
-{
- CollectionPage * self;
-#line 217 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), selected_count, count);
-#line 220 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", TRUE);
-#line 221 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", TRUE);
-#line 222 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", TRUE);
-#line 223 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", TRUE);
-#line 2728 "CollectionPage.c"
-}
-
-
-static void
-collection_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- CollectionPage * self;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- Page* _tmp2_;
- Page* _tmp3_;
- gboolean _tmp4_;
- gboolean one_selected = FALSE;
- gboolean has_selected = FALSE;
- gboolean primary_is_video = FALSE;
- gboolean _tmp5_;
- gboolean selection_has_videos = FALSE;
- gboolean page_has_photos = FALSE;
- gboolean _tmp13_ = FALSE;
- gboolean _tmp14_;
- gboolean _tmp16_ = FALSE;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_;
- gboolean _tmp24_ = FALSE;
- gboolean _tmp25_ = FALSE;
- gboolean _tmp26_ = FALSE;
- gboolean _tmp27_;
- gboolean _tmp39_ = FALSE;
- gboolean _tmp40_;
- gboolean _tmp41_ = FALSE;
- gboolean _tmp42_;
- gboolean _tmp44_ = FALSE;
- gboolean _tmp45_ = FALSE;
- gboolean _tmp46_;
- gboolean _tmp54_ = FALSE;
- gboolean _tmp55_ = FALSE;
- gboolean _tmp56_;
- gboolean _tmp58_ = FALSE;
- gboolean _tmp59_;
- gboolean _tmp61_ = FALSE;
- gboolean _tmp62_;
- gboolean _tmp64_ = FALSE;
- gboolean _tmp65_;
- gboolean _tmp67_ = FALSE;
- gboolean _tmp68_;
- gboolean _tmp70_;
- gboolean _tmp71_;
- gboolean _tmp72_;
- gboolean _tmp73_;
- gboolean _tmp74_ = FALSE;
- gboolean _tmp75_;
- gboolean _tmp77_ = FALSE;
- gboolean _tmp78_;
- gboolean _tmp80_;
- gboolean _tmp81_ = FALSE;
- gboolean _tmp82_;
- gboolean _tmp84_;
-#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = app_window_get_instance ();
-#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_ != G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page);
-#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp4_) {
-#line 229 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 2808 "CollectionPage.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), selected_count, count);
-#line 234 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- one_selected = selected_count == 1;
-#line 235 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- has_selected = selected_count > 0;
-#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- primary_is_video = FALSE;
-#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = has_selected;
-#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp5_) {
-#line 2822 "CollectionPage.c"
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- DataView* _tmp8_;
- DataView* _tmp9_;
- DataSource* _tmp10_;
- DataSource* _tmp11_;
- gboolean _tmp12_;
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = view_collection_get_selected_at (_tmp7_, 0);
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = data_view_get_source (_tmp9_);
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_VIDEO);
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp7_);
-#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp12_) {
-#line 240 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- primary_is_video = TRUE;
-#line 2854 "CollectionPage.c"
- }
- }
-#line 242 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- selection_has_videos = collection_page_selection_has_video (self);
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_has_photos = collection_page_page_has_photo (self);
-#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = has_selected;
-#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp14_) {
-#line 2865 "CollectionPage.c"
- gboolean _tmp15_;
-#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = selection_has_videos;
-#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = !_tmp15_;
-#line 2871 "CollectionPage.c"
- } else {
-#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = FALSE;
-#line 2875 "CollectionPage.c"
- }
-#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Duplicate", _tmp13_);
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = primary_is_video;
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp18_) {
-#line 2883 "CollectionPage.c"
- gboolean _tmp19_;
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = one_selected;
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = _tmp19_;
-#line 2889 "CollectionPage.c"
- } else {
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = FALSE;
-#line 2893 "CollectionPage.c"
- }
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp17_) {
-#line 2897 "CollectionPage.c"
- ConfigFacade* _tmp20_;
- ConfigFacade* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = config_facade_get_instance ();
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = _tmp20_;
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = _tmp22_;
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = !is_string_empty (_tmp23_);
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp23_);
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp21_);
-#line 2916 "CollectionPage.c"
- } else {
-#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = FALSE;
-#line 2920 "CollectionPage.c"
- }
-#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp16_);
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = one_selected;
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp27_) {
-#line 2928 "CollectionPage.c"
- gboolean _tmp28_;
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = primary_is_video;
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = !_tmp28_;
-#line 2934 "CollectionPage.c"
- } else {
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = FALSE;
-#line 2938 "CollectionPage.c"
- }
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp26_) {
-#line 2942 "CollectionPage.c"
- ViewCollection* _tmp29_;
- ViewCollection* _tmp30_;
- DataView* _tmp31_;
- DataView* _tmp32_;
- DataSource* _tmp33_;
- Photo* _tmp34_;
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = _tmp29_;
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = view_collection_get_selected_at (_tmp30_, 0);
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = _tmp31_;
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = data_view_get_source (_tmp32_);
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp34_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PHOTO, Photo);
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = photo_get_master_file_format (_tmp34_) == PHOTO_FILE_FORMAT_RAW;
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp34_);
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp32_);
-#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp30_);
-#line 2969 "CollectionPage.c"
- } else {
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = FALSE;
-#line 2973 "CollectionPage.c"
- }
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp25_) {
-#line 2977 "CollectionPage.c"
- ConfigFacade* _tmp35_;
- ConfigFacade* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp35_ = config_facade_get_instance ();
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp36_ = _tmp35_;
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp37_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp38_ = _tmp37_;
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = !is_string_empty (_tmp38_);
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp38_);
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp36_);
-#line 2996 "CollectionPage.c"
- } else {
-#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = FALSE;
-#line 3000 "CollectionPage.c"
- }
-#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp24_);
-#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp40_ = selection_has_videos;
-#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp40_) {
-#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp39_ = collection_page_can_revert_selected (self);
-#line 3010 "CollectionPage.c"
- } else {
-#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp39_ = FALSE;
-#line 3014 "CollectionPage.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp39_);
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp42_ = selection_has_videos;
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp42_) {
-#line 3022 "CollectionPage.c"
- gboolean _tmp43_;
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp43_ = has_selected;
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp41_ = _tmp43_;
-#line 3028 "CollectionPage.c"
- } else {
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp41_ = FALSE;
-#line 3032 "CollectionPage.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp41_);
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp46_ = selection_has_videos;
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp46_) {
-#line 3040 "CollectionPage.c"
- gboolean _tmp47_;
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp47_ = one_selected;
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp45_ = _tmp47_;
-#line 3046 "CollectionPage.c"
- } else {
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp45_ = FALSE;
-#line 3050 "CollectionPage.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp45_) {
-#line 3054 "CollectionPage.c"
- ViewCollection* _tmp48_;
- ViewCollection* _tmp49_;
- DataView* _tmp50_;
- DataView* _tmp51_;
- DataSource* _tmp52_;
- Photo* _tmp53_;
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp48_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp49_ = _tmp48_;
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp50_ = view_collection_get_selected_at (_tmp49_, 0);
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp51_ = _tmp50_;
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp52_ = data_view_get_source (_tmp51_);
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp53_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_PHOTO, Photo);
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp44_ = photo_has_color_adjustments (_tmp53_);
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp53_);
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp51_);
-#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp49_);
-#line 3081 "CollectionPage.c"
- } else {
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp44_ = FALSE;
-#line 3085 "CollectionPage.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp44_);
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp56_ = selection_has_videos;
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp56_) {
-#line 3093 "CollectionPage.c"
- gboolean _tmp57_;
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp57_ = has_selected;
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp55_ = _tmp57_;
-#line 3099 "CollectionPage.c"
- } else {
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp55_ = FALSE;
-#line 3103 "CollectionPage.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp55_) {
-#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp54_ = pixel_transformation_bundle_has_copied_color_adjustments ();
-#line 3109 "CollectionPage.c"
- } else {
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp54_ = FALSE;
-#line 3113 "CollectionPage.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", _tmp54_);
-#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp59_ = selection_has_videos;
-#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp59_) {
-#line 3121 "CollectionPage.c"
- gboolean _tmp60_;
-#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp60_ = has_selected;
-#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp58_ = _tmp60_;
-#line 3127 "CollectionPage.c"
- } else {
-#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp58_ = FALSE;
-#line 3131 "CollectionPage.c"
- }
-#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp58_);
-#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp62_ = selection_has_videos;
-#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp62_) {
-#line 3139 "CollectionPage.c"
- gboolean _tmp63_;
-#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp63_ = has_selected;
-#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp61_ = _tmp63_;
-#line 3145 "CollectionPage.c"
- } else {
-#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp61_ = FALSE;
-#line 3149 "CollectionPage.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp61_);
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp65_ = selection_has_videos;
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp65_) {
-#line 3157 "CollectionPage.c"
- gboolean _tmp66_;
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp66_ = has_selected;
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp64_ = _tmp66_;
-#line 3163 "CollectionPage.c"
- } else {
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp64_ = FALSE;
-#line 3167 "CollectionPage.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp64_);
-#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp68_ = selection_has_videos;
-#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp68_) {
-#line 3175 "CollectionPage.c"
- gboolean _tmp69_;
-#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp69_ = has_selected;
-#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp67_ = _tmp69_;
-#line 3181 "CollectionPage.c"
- } else {
-#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp67_ = FALSE;
-#line 3185 "CollectionPage.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp67_);
-#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp70_ = has_selected;
-#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp70_);
-#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp71_ = has_selected;
-#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NewEvent", _tmp71_);
-#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp72_ = has_selected;
-#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", _tmp72_);
-#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp73_ = one_selected;
-#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", _tmp73_);
-#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp75_ = page_has_photos;
-#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp75_) {
-#line 3209 "CollectionPage.c"
- gboolean _tmp76_;
-#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp76_ = primary_is_video;
-#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp74_ = !_tmp76_;
-#line 3215 "CollectionPage.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp74_ = FALSE;
-#line 3219 "CollectionPage.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", _tmp74_);
-#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp78_ = selection_has_videos;
-#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp78_) {
-#line 3227 "CollectionPage.c"
- gboolean _tmp79_;
-#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp79_ = has_selected;
-#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp77_ = _tmp79_;
-#line 3233 "CollectionPage.c"
- } else {
-#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp77_ = FALSE;
-#line 3237 "CollectionPage.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp77_);
-#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp80_ = has_selected;
-#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp80_);
-#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp82_ = selection_has_videos;
-#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp82_) {
-#line 3249 "CollectionPage.c"
- gboolean _tmp83_;
-#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp83_ = has_selected;
-#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp81_ = _tmp83_;
-#line 3255 "CollectionPage.c"
- } else {
-#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp81_ = FALSE;
-#line 3259 "CollectionPage.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp81_);
-#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp84_ = has_selected;
-#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp84_) {
-#line 3267 "CollectionPage.c"
- const gchar* _tmp85_ = NULL;
- gboolean _tmp86_;
- gchar* label = NULL;
- gchar* _tmp87_;
- const gchar* _tmp88_;
-#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_debug ("CollectionPage.vala:279: Setting action label for SetBackground...");
-#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp86_ = one_selected;
-#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp86_) {
-#line 281 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp85_ = RESOURCES_SET_BACKGROUND_MENU;
-#line 3281 "CollectionPage.c"
- } else {
-#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp85_ = RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU;
-#line 3285 "CollectionPage.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp87_ = g_strdup (_tmp85_);
-#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- label = _tmp87_;
-#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp88_ = label;
-#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp88_);
-#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (label);
-#line 3297 "CollectionPage.c"
- }
-}
-
-
-static void
-collection_page_on_photos_altered (CollectionPage* self,
- GeeMap* altered)
-{
-#line 287 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 287 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (GEE_IS_MAP (altered));
-#line 3310 "CollectionPage.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = gee_map_get_keys (altered);
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = _tmp1_;
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_it = _tmp4_;
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- while (TRUE) {
-#line 3334 "CollectionPage.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- DataView* view = NULL;
- DataObject* _tmp8_;
- DataView* _tmp9_;
- gboolean _tmp10_ = FALSE;
- DataView* _tmp11_;
- LibraryPhoto* photo = NULL;
- DataView* _tmp15_;
- DataSource* _tmp16_;
- LibraryPhoto* _tmp17_;
- LibraryPhoto* _tmp18_;
- LibraryPhoto* _tmp19_;
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _object_it;
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 3356 "CollectionPage.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _object_it;
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- object = (DataObject*) _tmp7_;
-#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = object;
-#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_VIEW, DataView));
-#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- view = _tmp9_;
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = view;
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!data_view_is_selected (_tmp11_)) {
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = TRUE;
-#line 3376 "CollectionPage.c"
- } else {
- DataView* _tmp12_;
- gpointer _tmp13_;
- Alteration* _tmp14_;
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = view;
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = gee_map_get (altered, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = (Alteration*) _tmp13_;
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = !alteration_has_subject (_tmp14_, "image");
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _alteration_unref0 (_tmp14_);
-#line 3391 "CollectionPage.c"
- }
-#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp10_) {
-#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (view);
-#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (object);
-#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- continue;
-#line 3401 "CollectionPage.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = view;
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = data_view_get_source (_tmp15_);
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp16_) : NULL;
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp17_ == NULL) {
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 3413 "CollectionPage.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp17_;
-#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = photo;
-#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp18_ == NULL) {
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (view);
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (object);
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- continue;
-#line 3429 "CollectionPage.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", collection_page_can_revert_selected (self));
-#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = photo;
-#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", photo_has_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO, Photo)));
-#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (view);
-#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (object);
-#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 3445 "CollectionPage.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_object_it);
-#line 3449 "CollectionPage.c"
- }
-}
-
-
-static void
-collection_page_on_print (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
-#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 3472 "CollectionPage.c"
- PrintManager* _tmp3_;
- PrintManager* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- GeeList* _tmp7_;
- GeeCollection* _tmp8_;
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = print_manager_get_instance ();
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = view_collection_get_selected_sources_of_type (_tmp6_, TYPE_PHOTO);
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- print_manager_spool_photo (_tmp4_, _tmp8_);
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _print_manager_unref0 (_tmp4_);
-#line 3499 "CollectionPage.c"
- }
-}
-
-
-static void
-collection_page_on_external_app_changed (CollectionPage* self)
-{
- gint selected_count = 0;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_ = FALSE;
- gint _tmp4_;
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- selected_count = _tmp2_;
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = selected_count;
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp4_ == 1) {
-#line 3529 "CollectionPage.c"
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = config_facade_get_instance ();
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = g_strcmp0 (_tmp8_, "") != 0;
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp8_);
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 3548 "CollectionPage.c"
- } else {
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = FALSE;
-#line 3552 "CollectionPage.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp3_);
-#line 3556 "CollectionPage.c"
-}
-
-
-static void
-collection_page_real_on_item_activated (CheckerboardPage* base,
- CheckerboardItem* item,
- CheckerboardPageActivator activator,
- CheckerboardPageKeyboardModifiers* modifiers)
-{
- CollectionPage * self;
- Thumbnail* thumbnail = NULL;
- Thumbnail* _tmp0_;
- Thumbnail* _tmp1_;
- MediaSource* _tmp2_;
- MediaSource* _tmp3_;
- gboolean _tmp4_;
- LibraryPhoto* photo = NULL;
- Thumbnail* _tmp5_;
- MediaSource* _tmp6_;
- LibraryPhoto* _tmp7_;
- LibraryPhoto* _tmp8_;
- LibraryPhoto* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (item));
-#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (modifiers != NULL);
-#line 330 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_THUMBNAIL, Thumbnail));
-#line 330 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- thumbnail = _tmp0_;
-#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = thumbnail;
-#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = thumbnail_get_media_source (_tmp1_);
-#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_VIDEO);
-#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp4_) {
-#line 336 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- media_page_on_play_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
-#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (thumbnail);
-#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 3609 "CollectionPage.c"
- }
-#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = thumbnail;
-#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = thumbnail_get_media_source (_tmp5_);
-#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp6_) : NULL;
-#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp7_ == NULL) {
-#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 3621 "CollectionPage.c"
- }
-#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp7_;
-#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = photo;
-#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp8_ == NULL) {
-#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (thumbnail);
-#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 3635 "CollectionPage.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = photo;
-#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_debug ("CollectionPage.vala:345: activating %s", _tmp11_);
-#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp11_);
-#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (activator == CHECKERBOARD_PAGE_ACTIVATOR_MOUSE) {
-#line 3649 "CollectionPage.c"
- CheckerboardPageKeyboardModifiers _tmp12_;
- gboolean _tmp13_;
-#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = *modifiers;
-#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _tmp12_.super_pressed;
-#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp13_) {
-#line 349 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_external_edit (self);
-#line 3660 "CollectionPage.c"
- } else {
- LibraryWindow* _tmp14_;
- LibraryWindow* _tmp15_;
- LibraryPhoto* _tmp16_;
-#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = library_window_get_app ();
-#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _tmp14_;
-#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = photo;
-#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- library_window_switch_to_photo_page (_tmp15_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo));
-#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 3675 "CollectionPage.c"
- }
- } else {
-#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (activator == CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD) {
-#line 3680 "CollectionPage.c"
- gboolean _tmp17_ = FALSE;
- CheckerboardPageKeyboardModifiers _tmp18_;
- gboolean _tmp19_;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = *modifiers;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = _tmp18_.shift_pressed;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp19_) {
-#line 3690 "CollectionPage.c"
- CheckerboardPageKeyboardModifiers _tmp20_;
- gboolean _tmp21_;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = *modifiers;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = _tmp20_.ctrl_pressed;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = !_tmp21_;
-#line 3699 "CollectionPage.c"
- } else {
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = FALSE;
-#line 3703 "CollectionPage.c"
- }
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp17_) {
-#line 3707 "CollectionPage.c"
- LibraryWindow* _tmp22_;
- LibraryWindow* _tmp23_;
- LibraryPhoto* _tmp24_;
-#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = library_window_get_app ();
-#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = _tmp22_;
-#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = photo;
-#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- library_window_switch_to_photo_page (_tmp23_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PHOTO, Photo));
-#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp23_);
-#line 3721 "CollectionPage.c"
- }
- }
- }
-#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (thumbnail);
-#line 3729 "CollectionPage.c"
-}
-
-
-static gboolean
-collection_page_real_on_app_key_pressed (Page* base,
- GdkEventKey* event)
-{
- CollectionPage * self;
- gboolean result = FALSE;
- gboolean handled = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- GQuark _tmp4_ = 0U;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label0 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label1 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label2 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label3 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label4 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label5 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label6 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label7 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label8 = 0;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp3_label9 = 0;
-#line 3764 "CollectionPage.c"
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_;
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- handled = TRUE;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = event->keyval;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = _tmp1_;
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if ((((((((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("Page_Up")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("KP_Page_Up"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("Page_Down"))))) || (_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("KP_Page_Down"))))) || (_tmp4_ == ((0 != _tmp3_label4) ? _tmp3_label4 : (_tmp3_label4 = g_quark_from_static_string ("Home"))))) || (_tmp4_ == ((0 != _tmp3_label5) ? _tmp3_label5 : (_tmp3_label5 = g_quark_from_static_string ("KP_Home"))))) || (_tmp4_ == ((0 != _tmp3_label6) ? _tmp3_label6 : (_tmp3_label6 = g_quark_from_static_string ("End"))))) || (_tmp4_ == ((0 != _tmp3_label7) ? _tmp3_label7 : (_tmp3_label7 = g_quark_from_static_string ("KP_End"))))) {
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- switch (0) {
-#line 3785 "CollectionPage.c"
- default:
- {
- gboolean _tmp5_ = FALSE;
-#line 369 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp5_);
-#line 370 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 3793 "CollectionPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label8) ? _tmp3_label8 : (_tmp3_label8 = g_quark_from_static_string ("bracketright")))) {
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- switch (0) {
-#line 3799 "CollectionPage.c"
- default:
- {
-#line 373 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise");
-#line 374 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 3806 "CollectionPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label9) ? _tmp3_label9 : (_tmp3_label9 = g_quark_from_static_string ("bracketleft")))) {
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- switch (0) {
-#line 3812 "CollectionPage.c"
- default:
- {
-#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise");
-#line 378 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 3819 "CollectionPage.c"
- }
- }
- } else {
-#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- switch (0) {
-#line 3825 "CollectionPage.c"
- default:
- {
-#line 381 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- handled = FALSE;
-#line 382 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 3832 "CollectionPage.c"
- }
- }
- }
-#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = handled;
-#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp7_) {
-#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = TRUE;
-#line 3842 "CollectionPage.c"
- } else {
-#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = PAGE_CLASS (collection_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event);
-#line 3846 "CollectionPage.c"
- }
-#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp6_;
-#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 3852 "CollectionPage.c"
-}
-
-
-static void
-_collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self)
-{
-#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_on_export_completed ((CollectionPage*) self);
-#line 3863 "CollectionPage.c"
-}
-
-
-static void
-collection_page_real_on_export (MediaPage* base)
-{
- CollectionPage * self;
- ExporterUI* _tmp0_;
- GeeCollection* export_list = NULL;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- GeeList* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gboolean has_some_photos = FALSE;
- gboolean has_some_videos = FALSE;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_;
- gboolean _tmp11_;
- gchar* title = NULL;
- gboolean _tmp14_;
- ExportDialog* export_dialog = NULL;
- const gchar* _tmp23_;
- ExportDialog* _tmp24_;
- ExportFormatParameters _tmp25_ = {0};
- gboolean _tmp26_;
- ExportFormatParameters export_params = {0};
- gint scale = 0;
- ScaleConstraint constraint = 0;
- ExportDialog* _tmp29_;
- gint _tmp30_ = 0;
- ScaleConstraint _tmp31_ = 0;
- gboolean _tmp32_;
- Scaling scaling = {0};
- ScaleConstraint _tmp33_;
- gint _tmp34_;
- Scaling _tmp35_ = {0};
- GeeCollection* _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- GFile* export_dir = NULL;
- const gchar* _tmp71_;
- GFile* _tmp72_;
- GFile* _tmp73_;
- GeeCollection* _tmp74_;
- GFile* _tmp75_;
- Scaling _tmp76_;
- ExportFormatParameters _tmp77_;
- Exporter* _tmp78_;
- Exporter* _tmp79_;
- ExporterUI* _tmp80_;
- ExporterUI* _tmp81_;
- GError * _inner_error_ = NULL;
-#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = self->priv->exporter;
-#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp0_ != NULL) {
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 3927 "CollectionPage.c"
- }
-#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = _tmp1_;
-#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = view_collection_get_selected_sources (_tmp2_);
-#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp2_);
-#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_list = _tmp4_;
-#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = export_list;
-#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = gee_collection_get_size (_tmp5_);
-#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp7_ == 0) {
-#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
-#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 3953 "CollectionPage.c"
- }
-#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- has_some_photos = collection_page_selection_has_photo (self);
-#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- has_some_videos = collection_page_selection_has_video (self);
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = has_some_photos;
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp9_) {
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = TRUE;
-#line 3965 "CollectionPage.c"
- } else {
- gboolean _tmp10_;
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = has_some_videos;
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp10_;
-#line 3972 "CollectionPage.c"
- }
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_assert (_tmp8_, "has_some_photos || has_some_videos");
-#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = has_some_photos;
-#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp11_) {
-#line 3980 "CollectionPage.c"
- GeeCollection* _tmp12_;
- ExporterUI* _tmp13_;
-#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = export_list;
-#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _collection_page_on_export_completed_exporter_completion_callback, self, FALSE);
-#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _exporter_ui_unref0 (self->priv->exporter);
-#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->exporter = _tmp13_;
-#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
-#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 3995 "CollectionPage.c"
- }
-#line 408 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- title = NULL;
-#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = has_some_videos;
-#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp14_) {
-#line 4003 "CollectionPage.c"
- GeeCollection* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gchar* _tmp18_;
-#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = export_list;
-#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = gee_collection_get_size (_tmp15_);
-#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = _tmp16_;
-#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = g_strdup (ngettext ("Export Photo/Video", "Export Photos/Videos", (gulong) _tmp17_));
-#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
-#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- title = _tmp18_;
-#line 4020 "CollectionPage.c"
- } else {
- GeeCollection* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gchar* _tmp22_;
-#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = export_list;
-#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = gee_collection_get_size (_tmp19_);
-#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = _tmp20_;
-#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = g_strdup (ngettext ("Export Photo", "Export Photos", (gulong) _tmp21_));
-#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
-#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- title = _tmp22_;
-#line 4038 "CollectionPage.c"
- }
-#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = title;
-#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = export_dialog_new (_tmp23_);
-#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp24_);
-#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_dialog = _tmp24_;
-#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = has_some_videos;
-#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp26_) {
-#line 4052 "CollectionPage.c"
- ExportFormatParameters _tmp27_ = {0};
-#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_format_parameters_current (&_tmp27_);
-#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = _tmp27_;
-#line 4058 "CollectionPage.c"
- } else {
- ExportFormatParameters _tmp28_ = {0};
-#line 424 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_format_parameters_last (&_tmp28_);
-#line 424 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = _tmp28_;
-#line 4065 "CollectionPage.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_params = _tmp25_;
-#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = export_dialog;
-#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = export_dialog_execute (_tmp29_, &_tmp30_, &_tmp31_, &export_params);
-#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- scale = _tmp30_;
-#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- constraint = _tmp31_;
-#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp32_) {
-#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dialog);
-#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
-#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
-#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4087 "CollectionPage.c"
- }
-#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = constraint;
-#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp34_ = scale;
-#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- scaling_for_constraint (_tmp33_, _tmp34_, FALSE, &_tmp35_);
-#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- scaling = _tmp35_;
-#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp36_ = export_list;
-#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp37_ = gee_collection_get_size (_tmp36_);
-#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp38_ = _tmp37_;
-#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp38_ == 1) {
-#line 4105 "CollectionPage.c"
- LibraryPhoto* photo = NULL;
- GFile* save_as = NULL;
- LibraryPhoto* _tmp46_;
- ExportFormatParameters _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
- GFile* _tmp50_;
- GFile* _tmp51_;
- GFile* _tmp52_;
-#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = NULL;
-#line 4117 "CollectionPage.c"
- {
- GeeIterator* _p_it = NULL;
- GeeCollection* _tmp39_;
- GeeIterator* _tmp40_;
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp39_ = export_list;
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp40_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), GEE_TYPE_ITERABLE, GeeIterable));
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _p_it = _tmp40_;
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- while (TRUE) {
-#line 4130 "CollectionPage.c"
- GeeIterator* _tmp41_;
- LibraryPhoto* p = NULL;
- GeeIterator* _tmp42_;
- gpointer _tmp43_;
- LibraryPhoto* _tmp44_;
- LibraryPhoto* _tmp45_;
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp41_ = _p_it;
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!gee_iterator_next (_tmp41_)) {
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 4143 "CollectionPage.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp42_ = _p_it;
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp43_ = gee_iterator_get (_tmp42_);
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- p = (LibraryPhoto*) _tmp43_;
-#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp44_ = p;
-#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp45_ = _g_object_ref0 (_tmp44_);
-#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp45_;
-#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (p);
-#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 4163 "CollectionPage.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_p_it);
-#line 4167 "CollectionPage.c"
- }
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp46_ = photo;
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp47_ = export_params;
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp48_ = photo_get_export_basename_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_PHOTO, Photo), &_tmp47_);
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp49_ = _tmp48_;
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp50_ = export_ui_choose_file (_tmp49_);
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp51_ = _tmp50_;
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp49_);
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- save_as = _tmp51_;
-#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp52_ = save_as;
-#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp52_ == NULL) {
-#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (save_as);
-#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dialog);
-#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
-#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
-#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4201 "CollectionPage.c"
- }
- {
- AppWindow* _tmp53_;
- AppWindow* _tmp54_;
- LibraryPhoto* _tmp55_;
- GFile* _tmp56_;
- Scaling _tmp57_;
- ExportFormatParameters _tmp58_;
- JpegQuality _tmp59_;
- LibraryPhoto* _tmp60_;
- ExportFormatParameters _tmp61_;
- ExportFormatParameters _tmp62_;
- ExportFormatMode _tmp63_;
- ExportFormatParameters _tmp64_;
- gboolean _tmp65_;
- AppWindow* _tmp66_;
- AppWindow* _tmp67_;
-#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp53_ = app_window_get_instance ();
-#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp54_ = _tmp53_;
-#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_PAGE_WINDOW, PageWindow));
-#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp54_);
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp55_ = photo;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp56_ = save_as;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp57_ = scaling;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp58_ = export_params;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp59_ = _tmp58_.quality;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp60_ = photo;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp61_ = export_params;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp62_ = export_params;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp63_ = _tmp62_.mode;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp64_ = export_params;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp65_ = _tmp64_.export_metadata;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO, Photo), _tmp56_, &_tmp57_, _tmp59_, photo_get_export_format_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_PHOTO, Photo), &_tmp61_), _tmp63_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp65_, &_inner_error_);
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4253 "CollectionPage.c"
- goto __catch245_g_error;
- }
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp66_ = app_window_get_instance ();
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp67_ = _tmp66_;
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_PAGE_WINDOW, PageWindow));
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp67_);
-#line 4264 "CollectionPage.c"
- }
- goto __finally245;
- __catch245_g_error:
- {
- GError* err = NULL;
- AppWindow* _tmp68_;
- AppWindow* _tmp69_;
- GFile* _tmp70_;
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- err = _inner_error_;
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _inner_error_ = NULL;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp68_ = app_window_get_instance ();
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp69_ = _tmp68_;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_PAGE_WINDOW, PageWindow));
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp69_);
-#line 454 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp70_ = save_as;
-#line 454 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_error_dialog (_tmp70_, FALSE);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_error_free0 (err);
-#line 4291 "CollectionPage.c"
- }
- __finally245:
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (save_as);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dialog);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_clear_error (&_inner_error_);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4312 "CollectionPage.c"
- }
-#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (save_as);
-#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dialog);
-#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
-#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
-#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4326 "CollectionPage.c"
- }
-#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp71_ = title;
-#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp72_ = export_ui_choose_dir (_tmp71_);
-#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_dir = _tmp72_;
-#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp73_ = export_dir;
-#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp73_ == NULL) {
-#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dir);
-#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dialog);
-#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
-#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
-#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4348 "CollectionPage.c"
- }
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp74_ = export_list;
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp75_ = export_dir;
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp76_ = scaling;
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp77_ = export_params;
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp78_ = exporter_new (_tmp74_, _tmp75_, &_tmp76_, &_tmp77_, FALSE);
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp79_ = _tmp78_;
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp80_ = exporter_ui_new (_tmp79_);
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _exporter_ui_unref0 (self->priv->exporter);
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->exporter = _tmp80_;
-#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp79_);
-#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp81_ = self->priv->exporter;
-#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- exporter_ui_export (_tmp81_, _collection_page_on_export_completed_exporter_completion_callback, self);
-#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dir);
-#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dialog);
-#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
-#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
-#line 4382 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_export_completed (CollectionPage* self)
-{
-#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _exporter_ui_unref0 (self->priv->exporter);
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->exporter = NULL;
-#line 4395 "CollectionPage.c"
-}
-
-
-static gboolean
-collection_page_can_revert_selected (CollectionPage* self)
-{
- gboolean result = FALSE;
-#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
-#line 4405 "CollectionPage.c"
- {
- GeeList* _source_list = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _source_size = 0;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _source_index = 0;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _source_list = _tmp3_;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _source_list;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _source_size = _tmp6_;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _source_index = -1;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- while (TRUE) {
-#line 4441 "CollectionPage.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- DataSource* source = NULL;
- GeeList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- LibraryPhoto* photo = NULL;
- DataSource* _tmp13_;
- LibraryPhoto* _tmp14_;
- gboolean _tmp15_ = FALSE;
- LibraryPhoto* _tmp16_;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _source_index;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _source_index = _tmp7_ + 1;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _source_index;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _source_size;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 4466 "CollectionPage.c"
- }
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _source_list;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _source_index;
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- source = (DataSource*) _tmp12_;
-#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = source;
-#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL);
-#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp14_;
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = photo;
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp16_ != NULL) {
-#line 4486 "CollectionPage.c"
- gboolean _tmp17_ = FALSE;
- LibraryPhoto* _tmp18_;
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = photo;
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (photo_has_transformations (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo))) {
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = TRUE;
-#line 4495 "CollectionPage.c"
- } else {
- LibraryPhoto* _tmp19_;
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = photo;
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO, Photo));
-#line 4502 "CollectionPage.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _tmp17_;
-#line 4506 "CollectionPage.c"
- } else {
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = FALSE;
-#line 4510 "CollectionPage.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp15_) {
-#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = TRUE;
-#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (source);
-#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_source_list);
-#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 4524 "CollectionPage.c"
- }
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (source);
-#line 4530 "CollectionPage.c"
- }
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_source_list);
-#line 4534 "CollectionPage.c"
- }
-#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = FALSE;
-#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 4540 "CollectionPage.c"
-}
-
-
-static gboolean
-collection_page_can_revert_editable_selected (CollectionPage* self)
-{
- gboolean result = FALSE;
-#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
-#line 4550 "CollectionPage.c"
- {
- GeeList* _source_list = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _source_size = 0;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _source_index = 0;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _source_list = _tmp3_;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _source_list;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _source_size = _tmp6_;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _source_index = -1;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- while (TRUE) {
-#line 4586 "CollectionPage.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- DataSource* source = NULL;
- GeeList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- LibraryPhoto* photo = NULL;
- DataSource* _tmp13_;
- LibraryPhoto* _tmp14_;
- gboolean _tmp15_ = FALSE;
- LibraryPhoto* _tmp16_;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _source_index;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _source_index = _tmp7_ + 1;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _source_index;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _source_size;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 4611 "CollectionPage.c"
- }
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _source_list;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _source_index;
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- source = (DataSource*) _tmp12_;
-#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = source;
-#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL);
-#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp14_;
-#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = photo;
-#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp16_ != NULL) {
-#line 4631 "CollectionPage.c"
- LibraryPhoto* _tmp17_;
-#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = photo;
-#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo));
-#line 4637 "CollectionPage.c"
- } else {
-#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = FALSE;
-#line 4641 "CollectionPage.c"
- }
-#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp15_) {
-#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = TRUE;
-#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (source);
-#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_source_list);
-#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 4655 "CollectionPage.c"
- }
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (source);
-#line 4661 "CollectionPage.c"
- }
-#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_source_list);
-#line 4665 "CollectionPage.c"
- }
-#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = FALSE;
-#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 4671 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_rotate_clockwise (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- RotateMultipleCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- RotateMultipleCommand* _tmp7_;
- RotateMultipleCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- RotateMultipleCommand* _tmp11_;
-#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 495 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4705 "CollectionPage.c"
- }
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP, _ ("Rotating"), _ ("Undoing Rotate"));
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp8_;
-#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = command;
-#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 4737 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_publish (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
-#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
-#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 4759 "CollectionPage.c"
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeCollection* _tmp6_;
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected_sources (_tmp4_);
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- publishing_ui_publishing_dialog_go (_tmp6_);
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 4778 "CollectionPage.c"
- }
-}
-
-
-static void
-collection_page_on_rotate_counterclockwise (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- RotateMultipleCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- RotateMultipleCommand* _tmp7_;
- RotateMultipleCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- RotateMultipleCommand* _tmp11_;
-#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 511 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4813 "CollectionPage.c"
- }
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP, _ ("Rotating"), _ ("Undoing Rotate"));
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp8_;
-#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = command;
-#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 4845 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_flip_horizontally (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- RotateMultipleCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- RotateMultipleCommand* _tmp7_;
- RotateMultipleCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- RotateMultipleCommand* _tmp11_;
-#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4879 "CollectionPage.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, "", _ ("Flipping Horizontally"), _ ("Undoing Flip Horizontally"));
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp8_;
-#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = command;
-#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 4911 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_flip_vertically (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- RotateMultipleCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- RotateMultipleCommand* _tmp7_;
- RotateMultipleCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- RotateMultipleCommand* _tmp11_;
-#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4945 "CollectionPage.c"
- }
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, "", _ ("Flipping Vertically"), _ ("Undoing Flip Vertically"));
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp8_;
-#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = command;
-#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 4977 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_revert (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- RevertMultipleCommand* command = NULL;
- ViewCollection* _tmp24_;
- ViewCollection* _tmp25_;
- GeeList* _tmp26_;
- GeeList* _tmp27_;
- RevertMultipleCommand* _tmp28_;
- RevertMultipleCommand* _tmp29_;
- CommandManager* _tmp30_;
- CommandManager* _tmp31_;
- RevertMultipleCommand* _tmp32_;
-#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5011 "CollectionPage.c"
- }
-#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (collection_page_can_revert_editable_selected (self)) {
-#line 5015 "CollectionPage.c"
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- GeeList* _tmp7_;
- GeeCollection* _tmp8_;
- gboolean _tmp9_;
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = app_window_get_instance ();
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = view_collection_get_selected_sources (_tmp6_);
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = !revert_editable_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow), _tmp8_);
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp9_) {
-#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5047 "CollectionPage.c"
- }
- {
- GeeList* _object_list = NULL;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- GeeList* _tmp12_;
- GeeList* _tmp13_;
- gint _object_size = 0;
- GeeList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _object_index = 0;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = view_collection_get_selected_sources (_tmp11_);
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _tmp12_;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp11_);
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_list = _tmp13_;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _object_list;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = _tmp15_;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_size = _tmp16_;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_index = -1;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- while (TRUE) {
-#line 5084 "CollectionPage.c"
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- DataObject* object = NULL;
- GeeList* _tmp20_;
- gint _tmp21_;
- gpointer _tmp22_;
- DataObject* _tmp23_;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = _object_index;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_index = _tmp17_ + 1;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = _object_index;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = _object_size;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!(_tmp18_ < _tmp19_)) {
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 5105 "CollectionPage.c"
- }
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = _object_list;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = _object_index;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = gee_list_get (_tmp20_, _tmp21_);
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- object = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp22_, TYPE_DATA_OBJECT, DataObject);
-#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = object;
-#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PHOTO, Photo), TRUE);
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (object);
-#line 5121 "CollectionPage.c"
- }
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_object_list);
-#line 5125 "CollectionPage.c"
- }
- }
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = _tmp24_;
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = view_collection_get_selected (_tmp25_);
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = _tmp26_;
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = revert_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = _tmp28_;
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp27_);
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp25_);
-#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp29_;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = _tmp30_;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = command;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp31_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_COMMAND, Command));
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp31_);
-#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 5158 "CollectionPage.c"
-}
-
-
-void
-collection_page_on_copy_adjustments (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- Photo* photo = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- DataView* _tmp5_;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
- PixelTransformationBundle* _tmp10_;
- PixelTransformationBundle* _tmp11_;
-#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5192 "CollectionPage.c"
- }
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo);
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp8_;
-#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = photo;
-#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = photo_get_color_adjustments (_tmp9_);
-#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- pixel_transformation_bundle_set_copied_color_adjustments (_tmp11_);
-#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _pixel_transformation_bundle_unref0 (_tmp11_);
-#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE);
-#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 5226 "CollectionPage.c"
-}
-
-
-void
-collection_page_on_paste_adjustments (CollectionPage* self)
-{
- PixelTransformationBundle* copied_adjustments = NULL;
- PixelTransformationBundle* _tmp0_;
- gboolean _tmp1_ = FALSE;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- gboolean _tmp4_;
- AdjustColorsMultipleCommand* command = NULL;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- GeeList* _tmp8_;
- GeeList* _tmp9_;
- PixelTransformationBundle* _tmp10_;
- AdjustColorsMultipleCommand* _tmp11_;
- AdjustColorsMultipleCommand* _tmp12_;
- CommandManager* _tmp13_;
- CommandManager* _tmp14_;
- AdjustColorsMultipleCommand* _tmp15_;
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = pixel_transformation_bundle_get_copied_color_adjustments ();
-#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- copied_adjustments = _tmp0_;
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = view_collection_get_selected_count (_tmp3_) == 0;
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp3_);
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp4_) {
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = TRUE;
-#line 5268 "CollectionPage.c"
- } else {
- PixelTransformationBundle* _tmp5_;
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = copied_adjustments;
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp5_ == NULL;
-#line 5275 "CollectionPage.c"
- }
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp1_) {
-#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _pixel_transformation_bundle_unref0 (copied_adjustments);
-#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5283 "CollectionPage.c"
- }
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = view_collection_get_selected (_tmp7_);
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = copied_adjustments;
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = adjust_colors_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable), _tmp10_, RESOURCES_PASTE_ADJUSTMENTS_LABEL, RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP);
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = _tmp11_;
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp7_);
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp12_;
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _tmp13_;
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = command;
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_COMMAND, Command));
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp14_);
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _pixel_transformation_bundle_unref0 (copied_adjustments);
-#line 5319 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_enhance (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- EnhanceMultipleCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- EnhanceMultipleCommand* _tmp7_;
- EnhanceMultipleCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- EnhanceMultipleCommand* _tmp11_;
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 576 "/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"
- _tmp1_ = _tmp0_;
-#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5353 "CollectionPage.c"
- }
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = enhance_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp8_;
-#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = command;
-#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 5385 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_duplicate_photo (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- DuplicateMultiplePhotosCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- DuplicateMultiplePhotosCommand* _tmp7_;
- DuplicateMultiplePhotosCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- DuplicateMultiplePhotosCommand* _tmp11_;
-#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5419 "CollectionPage.c"
- }
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = duplicate_multiple_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp8_;
-#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = command;
-#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 5451 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_adjust_date_time (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- gboolean selected_has_videos = FALSE;
- gboolean only_videos_selected = FALSE;
- Dateable* photo_source = NULL;
- ViewCollection* _tmp20_;
- ViewCollection* _tmp21_;
- DataView* _tmp22_;
- DataView* _tmp23_;
- DataSource* _tmp24_;
- Dateable* _tmp25_;
- AdjustDateTimeDialog* dialog = NULL;
- Dateable* _tmp26_;
- ViewCollection* _tmp27_;
- ViewCollection* _tmp28_;
- gboolean _tmp29_;
- gboolean _tmp30_;
- AdjustDateTimeDialog* _tmp31_;
- AdjustDateTimeDialog* _tmp32_;
- gint64 time_shift = 0LL;
- gboolean keep_relativity = FALSE;
- gboolean modify_originals = FALSE;
- AdjustDateTimeDialog* _tmp33_;
- gint64 _tmp34_ = 0LL;
- gboolean _tmp35_ = FALSE;
- gboolean _tmp36_ = FALSE;
- gboolean _tmp37_;
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5500 "CollectionPage.c"
- }
-#line 596 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- selected_has_videos = FALSE;
-#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- only_videos_selected = TRUE;
-#line 5506 "CollectionPage.c"
- {
- GeeList* _dv_list = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- gint _dv_size = 0;
- GeeList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _dv_index = 0;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _dv_list = _tmp6_;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _dv_list;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _dv_size = _tmp9_;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _dv_index = -1;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- while (TRUE) {
-#line 5542 "CollectionPage.c"
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- DataView* dv = NULL;
- GeeList* _tmp13_;
- gint _tmp14_;
- gpointer _tmp15_;
- DataView* _tmp16_;
- DataSource* _tmp17_;
- DataSource* _tmp18_;
- gboolean _tmp19_;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _dv_index;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _dv_index = _tmp10_ + 1;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _dv_index;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = _dv_size;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!(_tmp11_ < _tmp12_)) {
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 5566 "CollectionPage.c"
- }
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _dv_list;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _dv_index;
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = gee_list_get (_tmp13_, _tmp14_);
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- dv = (DataView*) _tmp15_;
-#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = dv;
-#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = data_view_get_source (_tmp16_);
-#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = _tmp17_;
-#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_VIDEO);
-#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp19_) {
-#line 601 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- selected_has_videos = TRUE;
-#line 5590 "CollectionPage.c"
- } else {
-#line 603 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- only_videos_selected = FALSE;
-#line 5594 "CollectionPage.c"
- }
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (dv);
-#line 5598 "CollectionPage.c"
- }
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_dv_list);
-#line 5602 "CollectionPage.c"
- }
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = _tmp20_;
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = view_collection_get_selected_at (_tmp21_, 0);
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = _tmp22_;
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = data_view_get_source (_tmp23_);
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATEABLE, Dateable);
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp23_);
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp21_);
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_source = _tmp25_;
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = photo_source;
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = _tmp27_;
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = selected_has_videos;
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = only_videos_selected;
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = adjust_date_time_dialog_new (_tmp26_, view_collection_get_selected_count (_tmp28_), TRUE, _tmp29_, _tmp30_);
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp31_);
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = _tmp31_;
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp28_);
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- dialog = _tmp32_;
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = dialog;
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp37_ = adjust_date_time_dialog_execute (_tmp33_, &_tmp34_, &_tmp35_, &_tmp36_);
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- time_shift = _tmp34_;
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- keep_relativity = _tmp35_;
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- modify_originals = _tmp36_;
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp37_) {
-#line 5654 "CollectionPage.c"
- AdjustDateTimePhotosCommand* command = NULL;
- ViewCollection* _tmp38_;
- ViewCollection* _tmp39_;
- GeeList* _tmp40_;
- GeeList* _tmp41_;
- gint64 _tmp42_;
- gboolean _tmp43_;
- gboolean _tmp44_;
- AdjustDateTimePhotosCommand* _tmp45_;
- AdjustDateTimePhotosCommand* _tmp46_;
- CommandManager* _tmp47_;
- CommandManager* _tmp48_;
- AdjustDateTimePhotosCommand* _tmp49_;
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp38_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp39_ = _tmp38_;
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp40_ = view_collection_get_selected (_tmp39_);
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp41_ = _tmp40_;
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp42_ = time_shift;
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp43_ = keep_relativity;
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp44_ = modify_originals;
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp45_ = adjust_date_time_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ITERABLE, GeeIterable), _tmp42_, _tmp43_, _tmp44_);
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp46_ = _tmp45_;
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp41_);
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp39_);
-#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp46_;
-#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp47_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp48_ = _tmp47_;
-#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp49_ = command;
-#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_COMMAND, Command));
-#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp48_);
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
-#line 5704 "CollectionPage.c"
- }
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (dialog);
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo_source);
-#line 5710 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_external_edit (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- Photo* photo = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- DataView* _tmp5_;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- Photo* _tmp8_;
- GError * _inner_error_ = NULL;
-#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 622 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5742 "CollectionPage.c"
- }
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo);
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp8_;
-#line 5762 "CollectionPage.c"
- {
- AppWindow* _tmp9_;
- AppWindow* _tmp10_;
- Photo* _tmp11_;
- AppWindow* _tmp12_;
- AppWindow* _tmp13_;
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = app_window_get_instance ();
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PAGE_WINDOW, PageWindow));
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = photo;
-#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_open_with_external_editor (_tmp11_, &_inner_error_);
-#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5783 "CollectionPage.c"
- goto __catch246_g_error;
- }
-#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = app_window_get_instance ();
-#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _tmp12_;
-#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PAGE_WINDOW, PageWindow));
-#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 5794 "CollectionPage.c"
- }
- goto __finally246;
- __catch246_g_error:
- {
- GError* err = NULL;
- AppWindow* _tmp14_;
- AppWindow* _tmp15_;
- GError* _tmp16_;
- Photo* _tmp17_;
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- err = _inner_error_;
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _inner_error_ = NULL;
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = app_window_get_instance ();
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _tmp14_;
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow));
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = err;
-#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = photo;
-#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- open_external_editor_error_dialog (_tmp16_, _tmp17_);
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_error_free0 (err);
-#line 5824 "CollectionPage.c"
- }
- __finally246:
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_clear_error (&_inner_error_);
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5837 "CollectionPage.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 5841 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_external_edit_raw (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- Photo* photo = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- DataView* _tmp5_;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 637 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5874 "CollectionPage.c"
- }
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo);
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp8_;
-#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = photo;
-#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (photo_get_master_file_format (_tmp9_) != PHOTO_FILE_FORMAT_RAW) {
-#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5902 "CollectionPage.c"
- }
- {
- AppWindow* _tmp10_;
- AppWindow* _tmp11_;
- Photo* _tmp12_;
- AppWindow* _tmp13_;
- AppWindow* _tmp14_;
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = app_window_get_instance ();
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow));
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = photo;
-#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_open_with_raw_external_editor (_tmp12_, &_inner_error_);
-#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5924 "CollectionPage.c"
- goto __catch247_g_error;
- }
-#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = app_window_get_instance ();
-#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _tmp13_;
-#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow));
-#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp14_);
-#line 5935 "CollectionPage.c"
- }
- goto __finally247;
- __catch247_g_error:
- {
- GError* err = NULL;
- AppWindow* _tmp15_;
- AppWindow* _tmp16_;
- GError* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
-#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- err = _inner_error_;
-#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _inner_error_ = NULL;
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = app_window_get_instance ();
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = _tmp15_;
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow));
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = err;
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = resources_launch_editor_failed (_tmp17_);
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = _tmp18_;
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- app_window_error_message (_tmp19_, NULL);
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp19_);
-#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_error_free0 (err);
-#line 5970 "CollectionPage.c"
- }
- __finally247:
-#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_clear_error (&_inner_error_);
-#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5983 "CollectionPage.c"
- }
-#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 5987 "CollectionPage.c"
-}
-
-
-void
-collection_page_on_set_background (CollectionPage* self)
-{
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- GeeList* _tmp3_;
- GeeCollection* _tmp4_;
- GeeArrayList* _tmp5_;
- gboolean desktop = FALSE;
- gboolean screensaver = FALSE;
- GeeArrayList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photos = _tmp0_;
-#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = _tmp1_;
-#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = view_collection_get_selected_sources (_tmp2_);
-#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = photos;
-#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- media_source_collection_filter_media (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), NULL);
-#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp2_);
-#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = photos;
-#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp8_ == 1) {
-#line 6036 "CollectionPage.c"
- SetBackgroundPhotoDialog* dialog = NULL;
- SetBackgroundPhotoDialog* _tmp9_;
- SetBackgroundPhotoDialog* _tmp10_;
- gboolean _tmp11_ = FALSE;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_;
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = set_background_photo_dialog_new ();
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp9_);
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- dialog = _tmp9_;
-#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = dialog;
-#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = set_background_photo_dialog_execute (_tmp10_, &_tmp11_, &_tmp12_);
-#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- desktop = _tmp11_;
-#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- screensaver = _tmp12_;
-#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp13_) {
-#line 6059 "CollectionPage.c"
- AppWindow* _tmp14_;
- AppWindow* _tmp15_;
- GeeArrayList* _tmp16_;
- gpointer _tmp17_;
- LibraryPhoto* _tmp18_;
- gboolean _tmp19_;
- gboolean _tmp20_;
- AppWindow* _tmp21_;
- AppWindow* _tmp22_;
-#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = app_window_get_instance ();
-#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _tmp14_;
-#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow));
-#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = photos;
-#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = (LibraryPhoto*) _tmp17_;
-#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = desktop;
-#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = screensaver;
-#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- desktop_integration_set_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo), _tmp19_, _tmp20_);
-#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = app_window_get_instance ();
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = _tmp21_;
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PAGE_WINDOW, PageWindow));
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp22_);
-#line 6099 "CollectionPage.c"
- }
-#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (dialog);
-#line 6103 "CollectionPage.c"
- } else {
- GeeArrayList* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = photos;
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = _tmp24_;
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp25_ > 1) {
-#line 6116 "CollectionPage.c"
- SetBackgroundSlideshowDialog* dialog = NULL;
- SetBackgroundSlideshowDialog* _tmp26_;
- gint delay = 0;
- SetBackgroundSlideshowDialog* _tmp27_;
- gint _tmp28_ = 0;
- gboolean _tmp29_ = FALSE;
- gboolean _tmp30_ = FALSE;
- gboolean _tmp31_;
-#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = set_background_slideshow_dialog_new ();
-#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp26_);
-#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- dialog = _tmp26_;
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = dialog;
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = set_background_slideshow_dialog_execute (_tmp27_, &_tmp28_, &_tmp29_, &_tmp30_);
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- delay = _tmp28_;
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- desktop = _tmp29_;
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- screensaver = _tmp30_;
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp31_) {
-#line 6143 "CollectionPage.c"
- AppWindow* _tmp32_;
- AppWindow* _tmp33_;
- GeeArrayList* _tmp34_;
- gint _tmp35_;
- gboolean _tmp36_;
- gboolean _tmp37_;
- AppWindow* _tmp38_;
- AppWindow* _tmp39_;
-#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = app_window_get_instance ();
-#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = _tmp32_;
-#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PAGE_WINDOW, PageWindow));
-#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp33_);
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp34_ = photos;
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp35_ = delay;
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp36_ = desktop;
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp37_ = screensaver;
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- desktop_integration_set_background_slideshow (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), (gdouble) _tmp35_, COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC, _tmp36_, _tmp37_);
-#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp38_ = app_window_get_instance ();
-#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp39_ = _tmp38_;
-#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PAGE_WINDOW, PageWindow));
-#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp39_);
-#line 6178 "CollectionPage.c"
- }
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (dialog);
-#line 6182 "CollectionPage.c"
- }
- }
-#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photos);
-#line 6187 "CollectionPage.c"
-}
-
-
-static void
-collection_page_on_slideshow (CollectionPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- GeeList* _tmp3_ = NULL;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- gboolean _tmp6_;
- GeeList* sources = NULL;
- GeeList* _tmp13_;
- gboolean _tmp14_ = FALSE;
- GeeList* _tmp15_;
- Thumbnail* thumbnail = NULL;
- ViewCollection* _tmp19_;
- ViewCollection* _tmp20_;
- GeeList* _tmp21_;
- gpointer _tmp22_;
- DataSource* _tmp23_;
- DataView* _tmp24_;
- Thumbnail* _tmp25_;
- Thumbnail* _tmp26_;
- LibraryPhoto* photo = NULL;
- Thumbnail* _tmp27_;
- MediaSource* _tmp28_;
- LibraryPhoto* _tmp29_;
- LibraryPhoto* _tmp30_;
- AppWindow* _tmp31_;
- AppWindow* _tmp32_;
- LibraryPhotoSourceCollection* _tmp33_;
- ViewCollection* _tmp34_;
- ViewCollection* _tmp35_;
- LibraryPhoto* _tmp36_;
- SlideshowPage* _tmp37_;
- SlideshowPage* _tmp38_;
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_;
-#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) == 0;
-#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp2_) {
-#line 680 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 6241 "CollectionPage.c"
- }
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected_count (_tmp5_) > 0;
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp6_) {
-#line 6253 "CollectionPage.c"
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- GeeList* _tmp9_;
-#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = view_collection_get_selected_sources_of_type (_tmp8_, TYPE_LIBRARY_PHOTO);
-#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp9_;
-#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 6269 "CollectionPage.c"
- } else {
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- GeeList* _tmp12_;
-#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = view_collection_get_sources_of_type (_tmp11_, TYPE_LIBRARY_PHOTO);
-#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp12_;
-#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp11_);
-#line 6286 "CollectionPage.c"
- }
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _g_object_ref0 (_tmp3_);
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- sources = _tmp13_;
-#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = sources;
-#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp15_ == NULL) {
-#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = TRUE;
-#line 6298 "CollectionPage.c"
- } else {
- GeeList* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
-#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = sources;
-#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = _tmp17_;
-#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _tmp18_ == 0;
-#line 6311 "CollectionPage.c"
- }
-#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp14_) {
-#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (sources);
-#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 6321 "CollectionPage.c"
- }
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = _tmp19_;
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = sources;
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = gee_list_get (_tmp21_, 0);
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = (DataSource*) _tmp22_;
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = view_collection_get_view_for_source (_tmp20_, _tmp23_);
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_THUMBNAIL, Thumbnail);
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp23_);
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp20_);
-#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- thumbnail = _tmp25_;
-#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = thumbnail;
-#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp26_ == NULL) {
-#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (thumbnail);
-#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (sources);
-#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 6355 "CollectionPage.c"
- }
-#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = thumbnail;
-#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = thumbnail_get_media_source (_tmp27_);
-#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp28_) : NULL;
-#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp29_ == NULL) {
-#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp28_);
-#line 6367 "CollectionPage.c"
- }
-#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp29_;
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = photo;
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp30_ == NULL) {
-#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (thumbnail);
-#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (sources);
-#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 6385 "CollectionPage.c"
- }
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = app_window_get_instance ();
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = _tmp31_;
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = library_photo_global;
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp34_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp35_ = _tmp34_;
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp36_ = photo;
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp37_ = slideshow_page_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_PHOTO, Photo));
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp37_);
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp38_ = _tmp37_;
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- app_window_go_fullscreen (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PAGE, Page));
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp38_);
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp35_);
-#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp32_);
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (thumbnail);
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (sources);
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 6421 "CollectionPage.c"
-}
-
-
-static gboolean
-collection_page_real_on_ctrl_pressed (Page* base,
- GdkEventKey* event)
-{
- CollectionPage * self;
- gboolean result = FALSE;
- GtkToolButton* rotate_button = NULL;
- GtkBuilder* _tmp0_;
- GObject* _tmp1_;
- GtkToolButton* _tmp2_;
- GtkToolButton* _tmp3_;
-#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate");
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL);
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- rotate_button = _tmp2_;
-#line 703 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = rotate_button;
-#line 703 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_ != NULL) {
-#line 6450 "CollectionPage.c"
- GtkToolButton* _tmp4_;
- GtkToolButton* _tmp5_;
- GtkToolButton* _tmp6_;
-#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = rotate_button;
-#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_actionable_get_type (), GtkActionable), "win.RotateCounterclockwise");
-#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = rotate_button;
-#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-left");
-#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = rotate_button;
-#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CCW_TOOLTIP);
-#line 6466 "CollectionPage.c"
- }
-#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = PAGE_CLASS (collection_page_parent_class)->on_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event);
-#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (rotate_button);
-#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 6474 "CollectionPage.c"
-}
-
-
-static gboolean
-collection_page_real_on_ctrl_released (Page* base,
- GdkEventKey* event)
-{
- CollectionPage * self;
- gboolean result = FALSE;
- GtkToolButton* rotate_button = NULL;
- GtkBuilder* _tmp0_;
- GObject* _tmp1_;
- GtkToolButton* _tmp2_;
- GtkToolButton* _tmp3_;
-#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate");
-#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL);
-#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- rotate_button = _tmp2_;
-#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = rotate_button;
-#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_ != NULL) {
-#line 6503 "CollectionPage.c"
- GtkToolButton* _tmp4_;
- GtkToolButton* _tmp5_;
- GtkToolButton* _tmp6_;
-#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = rotate_button;
-#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_actionable_get_type (), GtkActionable), "win.RotateClockwise");
-#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = rotate_button;
-#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-right");
-#line 717 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = rotate_button;
-#line 717 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP);
-#line 6519 "CollectionPage.c"
- }
-#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = PAGE_CLASS (collection_page_parent_class)->on_ctrl_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event);
-#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (rotate_button);
-#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 6527 "CollectionPage.c"
-}
-
-
-static gpointer
-_view_filter_ref0 (gpointer self)
-{
-#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return self ? view_filter_ref (self) : NULL;
-#line 6536 "CollectionPage.c"
-}
-
-
-static SearchViewFilter*
-collection_page_real_get_search_view_filter (CheckerboardPage* base)
-{
- CollectionPage * self;
- SearchViewFilter* result = NULL;
- CollectionPageCollectionSearchViewFilter* _tmp0_;
- SearchViewFilter* _tmp1_;
-#line 723 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = self->priv->search_filter;
-#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp1_;
-#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return result;
-#line 6557 "CollectionPage.c"
-}
-
-
-static guint
-collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base)
-{
- CollectionPageCollectionSearchViewFilter * self;
- guint result = 0U;
-#line 23 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilter);
-#line 24 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- 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 6572 "CollectionPage.c"
-}
-
-
-CollectionPageCollectionSearchViewFilter*
-collection_page_collection_search_view_filter_construct (GType object_type)
-{
- CollectionPageCollectionSearchViewFilter* self = NULL;
-#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = (CollectionPageCollectionSearchViewFilter*) default_search_view_filter_construct (object_type);
-#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return self;
-#line 6584 "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 6593 "CollectionPage.c"
-}
-
-
-static void
-collection_page_collection_search_view_filter_class_init (CollectionPageCollectionSearchViewFilterClass * klass)
-{
-#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_collection_search_view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) collection_page_collection_search_view_filter_real_get_criteria;
-#line 6604 "CollectionPage.c"
-}
-
-
-static void
-collection_page_collection_search_view_filter_instance_init (CollectionPageCollectionSearchViewFilter * self)
-{
-}
-
-
-GType
-collection_page_collection_search_view_filter_get_type (void)
-{
- static volatile gsize collection_page_collection_search_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&collection_page_collection_search_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CollectionPageCollectionSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_page_collection_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionPageCollectionSearchViewFilter), 0, (GInstanceInitFunc) collection_page_collection_search_view_filter_instance_init, NULL };
- GType collection_page_collection_search_view_filter_type_id;
- collection_page_collection_search_view_filter_type_id = g_type_register_static (TYPE_DEFAULT_SEARCH_VIEW_FILTER, "CollectionPageCollectionSearchViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&collection_page_collection_search_view_filter_type_id__volatile, collection_page_collection_search_view_filter_type_id);
- }
- return collection_page_collection_search_view_filter_type_id__volatile;
-}
-
-
-static void
-collection_page_class_init (CollectionPageClass * klass)
-{
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- collection_page_parent_class = g_type_class_peek_parent (klass);
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_type_class_add_private (klass, sizeof (CollectionPagePrivate));
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->get_toolbar = (GtkToolbar* (*) (Page *)) collection_page_real_get_toolbar;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) collection_page_real_init_collect_ui_filenames;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) collection_page_real_add_actions;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) collection_page_real_remove_actions;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) collection_page_real_init_collect_injection_groups;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) collection_page_real_init_actions;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) collection_page_real_update_actions;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((CheckerboardPageClass *) klass)->on_item_activated = (void (*) (CheckerboardPage *, CheckerboardItem*, CheckerboardPageActivator, CheckerboardPageKeyboardModifiers*)) collection_page_real_on_item_activated;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) collection_page_real_on_app_key_pressed;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((MediaPageClass *) klass)->on_export = (void (*) (MediaPage *)) collection_page_real_on_export;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->on_ctrl_pressed = (gboolean (*) (Page *, GdkEventKey*)) collection_page_real_on_ctrl_pressed;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((PageClass *) klass)->on_ctrl_released = (gboolean (*) (Page *, GdkEventKey*)) collection_page_real_on_ctrl_released;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) collection_page_real_get_search_view_filter;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- G_OBJECT_CLASS (klass)->finalize = collection_page_finalize;
-#line 6663 "CollectionPage.c"
-}
-
-
-static void
-collection_page_instance_init (CollectionPage * self)
-{
- CollectionPageCollectionSearchViewFilter* _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv = COLLECTION_PAGE_GET_PRIVATE (self);
-#line 29 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->exporter = NULL;
-#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = collection_page_collection_search_view_filter_new ();
-#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->search_filter = _tmp0_;
-#line 6679 "CollectionPage.c"
-}
-
-
-static void
-collection_page_finalize (GObject * obj)
-{
- CollectionPage * self;
-#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 29 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _exporter_ui_unref0 (self->priv->exporter);
-#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _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 6695 "CollectionPage.c"
-}
-
-
-GType
-collection_page_get_type (void)
-{
- static volatile gsize collection_page_type_id__volatile = 0;
- if (g_once_init_enter (&collection_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CollectionPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionPage), 0, (GInstanceInitFunc) collection_page_instance_init, NULL };
- GType collection_page_type_id;
- collection_page_type_id = g_type_register_static (TYPE_MEDIA_PAGE, "CollectionPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&collection_page_type_id__volatile, collection_page_type_id);
- }
- return collection_page_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/CollectionPage.vala b/src/CollectionPage.vala
index 2b308b9..4206ec8 100644
--- a/src/CollectionPage.vala
+++ b/src/CollectionPage.vala
@@ -702,7 +702,7 @@ public abstract class CollectionPage : MediaPage {
Gtk.ToolButton? rotate_button = this.builder.get_object ("ToolRotate") as Gtk.ToolButton;
if (rotate_button != null) {
rotate_button.set_action_name ("win.RotateCounterclockwise");
- rotate_button.set_icon_name ("object-rotate-left");
+ rotate_button.set_icon_name (Resources.COUNTERCLOCKWISE);
rotate_button.set_tooltip_text (Resources.ROTATE_CCW_TOOLTIP);
}
@@ -713,7 +713,7 @@ public abstract class CollectionPage : MediaPage {
Gtk.ToolButton? rotate_button = this.builder.get_object ("ToolRotate") as Gtk.ToolButton;
if (rotate_button != null) {
rotate_button.set_action_name ("win.RotateClockwise");
- rotate_button.set_icon_name ("object-rotate-right");
+ rotate_button.set_icon_name (Resources.CLOCKWISE);
rotate_button.set_tooltip_text (Resources.ROTATE_CW_TOOLTIP);
}
diff --git a/src/ColorTransformation.c b/src/ColorTransformation.c
deleted file mode 100644
index 9110ffc..0000000
--- a/src/ColorTransformation.c
+++ /dev/null
@@ -1,12905 +0,0 @@
-/* ColorTransformation.c generated by valac 0.40.4, the Vala compiler
- * generated from ColorTransformation.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <float.h>
-#include <math.h>
-#include <string.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <stdio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_RGB_ANALYTIC_PIXEL (rgb_analytic_pixel_get_type ())
-typedef struct _RGBAnalyticPixel RGBAnalyticPixel;
-
-#define TYPE_HSV_ANALYTIC_PIXEL (hsv_analytic_pixel_get_type ())
-typedef struct _HSVAnalyticPixel HSVAnalyticPixel;
-
-#define TYPE_COMPOSITION_MODE (composition_mode_get_type ())
-
-#define TYPE_PIXEL_FORMAT (pixel_format_get_type ())
-
-#define TYPE_PIXEL_TRANSFORMATION_TYPE (pixel_transformation_type_get_type ())
-
-#define TYPE_PIXEL_TRANSFORMATION_BUNDLE (pixel_transformation_bundle_get_type ())
-#define PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle))
-#define PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
-#define IS_PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
-#define IS_PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
-#define PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
-
-typedef struct _PixelTransformationBundle PixelTransformationBundle;
-typedef struct _PixelTransformationBundleClass PixelTransformationBundleClass;
-typedef struct _PixelTransformationBundlePrivate PixelTransformationBundlePrivate;
-
-#define TYPE_PIXEL_TRANSFORMATION (pixel_transformation_get_type ())
-#define PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformation))
-#define PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass))
-#define IS_PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION))
-#define IS_PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION))
-#define PIXEL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass))
-
-typedef struct _PixelTransformation PixelTransformation;
-typedef struct _PixelTransformationClass PixelTransformationClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
-
-#define TYPE_HSV_TRANSFORMATION (hsv_transformation_get_type ())
-#define HSV_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HSV_TRANSFORMATION, HSVTransformation))
-#define HSV_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HSV_TRANSFORMATION, HSVTransformationClass))
-#define IS_HSV_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HSV_TRANSFORMATION))
-#define IS_HSV_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HSV_TRANSFORMATION))
-#define HSV_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HSV_TRANSFORMATION, HSVTransformationClass))
-
-typedef struct _HSVTransformation HSVTransformation;
-typedef struct _HSVTransformationClass HSVTransformationClass;
-
-#define TYPE_EXPANSION_TRANSFORMATION (expansion_transformation_get_type ())
-#define EXPANSION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation))
-#define EXPANSION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationClass))
-#define IS_EXPANSION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPANSION_TRANSFORMATION))
-#define IS_EXPANSION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPANSION_TRANSFORMATION))
-#define EXPANSION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationClass))
-
-typedef struct _ExpansionTransformation ExpansionTransformation;
-typedef struct _ExpansionTransformationClass ExpansionTransformationClass;
-#define _pixel_transformation_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_unref (var), NULL)))
-
-#define TYPE_SHADOW_DETAIL_TRANSFORMATION (shadow_detail_transformation_get_type ())
-#define SHADOW_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation))
-#define SHADOW_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationClass))
-#define IS_SHADOW_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION))
-#define IS_SHADOW_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHADOW_DETAIL_TRANSFORMATION))
-#define SHADOW_DETAIL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationClass))
-
-typedef struct _ShadowDetailTransformation ShadowDetailTransformation;
-typedef struct _ShadowDetailTransformationClass ShadowDetailTransformationClass;
-
-#define TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION (highlight_detail_transformation_get_type ())
-#define HIGHLIGHT_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation))
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationClass))
-#define IS_HIGHLIGHT_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION))
-#define IS_HIGHLIGHT_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION))
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationClass))
-
-typedef struct _HighlightDetailTransformation HighlightDetailTransformation;
-typedef struct _HighlightDetailTransformationClass HighlightDetailTransformationClass;
-
-#define TYPE_RGB_TRANSFORMATION (rgb_transformation_get_type ())
-#define RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformation))
-#define RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_TRANSFORMATION, RGBTransformationClass))
-#define IS_RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_TRANSFORMATION))
-#define IS_RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_TRANSFORMATION))
-#define RGB_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformationClass))
-
-typedef struct _RGBTransformation RGBTransformation;
-typedef struct _RGBTransformationClass RGBTransformationClass;
-
-#define TYPE_TEMPERATURE_TRANSFORMATION (temperature_transformation_get_type ())
-#define TEMPERATURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation))
-#define TEMPERATURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationClass))
-#define IS_TEMPERATURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEMPERATURE_TRANSFORMATION))
-#define IS_TEMPERATURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEMPERATURE_TRANSFORMATION))
-#define TEMPERATURE_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationClass))
-
-typedef struct _TemperatureTransformation TemperatureTransformation;
-typedef struct _TemperatureTransformationClass TemperatureTransformationClass;
-
-#define TYPE_TINT_TRANSFORMATION (tint_transformation_get_type ())
-#define TINT_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TINT_TRANSFORMATION, TintTransformation))
-#define TINT_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TINT_TRANSFORMATION, TintTransformationClass))
-#define IS_TINT_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TINT_TRANSFORMATION))
-#define IS_TINT_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TINT_TRANSFORMATION))
-#define TINT_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TINT_TRANSFORMATION, TintTransformationClass))
-
-typedef struct _TintTransformation TintTransformation;
-typedef struct _TintTransformationClass TintTransformationClass;
-
-#define TYPE_SATURATION_TRANSFORMATION (saturation_transformation_get_type ())
-#define SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformation))
-#define SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass))
-#define IS_SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SATURATION_TRANSFORMATION))
-#define IS_SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SATURATION_TRANSFORMATION))
-#define SATURATION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass))
-
-typedef struct _SaturationTransformation SaturationTransformation;
-typedef struct _SaturationTransformationClass SaturationTransformationClass;
-
-#define TYPE_EXPOSURE_TRANSFORMATION (exposure_transformation_get_type ())
-#define EXPOSURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation))
-#define EXPOSURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationClass))
-#define IS_EXPOSURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPOSURE_TRANSFORMATION))
-#define IS_EXPOSURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPOSURE_TRANSFORMATION))
-#define EXPOSURE_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationClass))
-
-typedef struct _ExposureTransformation ExposureTransformation;
-typedef struct _ExposureTransformationClass ExposureTransformationClass;
-
-#define TYPE_CONTRAST_TRANSFORMATION (contrast_transformation_get_type ())
-#define CONTRAST_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation))
-#define CONTRAST_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationClass))
-#define IS_CONTRAST_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTRAST_TRANSFORMATION))
-#define IS_CONTRAST_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTRAST_TRANSFORMATION))
-#define CONTRAST_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationClass))
-
-typedef struct _ContrastTransformation ContrastTransformation;
-typedef struct _ContrastTransformationClass ContrastTransformationClass;
-
-#define TYPE_KEY_VALUE_MAP (key_value_map_get_type ())
-#define KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY_VALUE_MAP, KeyValueMap))
-#define KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY_VALUE_MAP, KeyValueMapClass))
-#define IS_KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY_VALUE_MAP))
-#define IS_KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY_VALUE_MAP))
-#define KEY_VALUE_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY_VALUE_MAP, KeyValueMapClass))
-
-typedef struct _KeyValueMap KeyValueMap;
-typedef struct _KeyValueMapClass KeyValueMapClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL)))
-
-#define TYPE_PIXEL_TRANSFORMER (pixel_transformer_get_type ())
-#define PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformer))
-#define PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass))
-#define IS_PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMER))
-#define IS_PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMER))
-#define PIXEL_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass))
-
-typedef struct _PixelTransformer PixelTransformer;
-typedef struct _PixelTransformerClass PixelTransformerClass;
-#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL)))
-typedef struct _ParamSpecPixelTransformationBundle ParamSpecPixelTransformationBundle;
-typedef struct _PixelTransformationPrivate PixelTransformationPrivate;
-typedef struct _ParamSpecPixelTransformation ParamSpecPixelTransformation;
-typedef struct _RGBTransformationPrivate RGBTransformationPrivate;
-typedef struct _HSVTransformationPrivate HSVTransformationPrivate;
-typedef struct _TintTransformationPrivate TintTransformationPrivate;
-typedef struct _TemperatureTransformationPrivate TemperatureTransformationPrivate;
-typedef struct _SaturationTransformationPrivate SaturationTransformationPrivate;
-typedef struct _ExposureTransformationPrivate ExposureTransformationPrivate;
-typedef struct _ContrastTransformationPrivate ContrastTransformationPrivate;
-typedef struct _PixelTransformerPrivate PixelTransformerPrivate;
-typedef struct _Block1Data Block1Data;
-typedef struct _Block2Data Block2Data;
-#define _g_thread_unref0(var) ((var == NULL) ? NULL : (var = (g_thread_unref (var), NULL)))
-typedef struct _Block3Data Block3Data;
-typedef struct _Block4Data Block4Data;
-typedef struct _ParamSpecPixelTransformer ParamSpecPixelTransformer;
-
-#define TYPE_RGB_HISTOGRAM (rgb_histogram_get_type ())
-#define RGB_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_HISTOGRAM, RGBHistogram))
-#define RGB_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_HISTOGRAM, RGBHistogramClass))
-#define IS_RGB_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_HISTOGRAM))
-#define IS_RGB_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_HISTOGRAM))
-#define RGB_HISTOGRAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_HISTOGRAM, RGBHistogramClass))
-
-typedef struct _RGBHistogram RGBHistogram;
-typedef struct _RGBHistogramClass RGBHistogramClass;
-typedef struct _RGBHistogramPrivate RGBHistogramPrivate;
-typedef struct _ParamSpecRGBHistogram ParamSpecRGBHistogram;
-
-#define TYPE_INTENSITY_HISTOGRAM (intensity_histogram_get_type ())
-#define INTENSITY_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INTENSITY_HISTOGRAM, IntensityHistogram))
-#define INTENSITY_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramClass))
-#define IS_INTENSITY_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INTENSITY_HISTOGRAM))
-#define IS_INTENSITY_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INTENSITY_HISTOGRAM))
-#define INTENSITY_HISTOGRAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramClass))
-
-typedef struct _IntensityHistogram IntensityHistogram;
-typedef struct _IntensityHistogramClass IntensityHistogramClass;
-typedef struct _IntensityHistogramPrivate IntensityHistogramPrivate;
-typedef struct _ParamSpecIntensityHistogram ParamSpecIntensityHistogram;
-typedef struct _ExpansionTransformationPrivate ExpansionTransformationPrivate;
-typedef struct _ShadowDetailTransformationPrivate ShadowDetailTransformationPrivate;
-
-#define TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION (hermite_gamma_approximation_function_get_type ())
-#define HERMITE_GAMMA_APPROXIMATION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunction))
-#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionClass))
-#define IS_HERMITE_GAMMA_APPROXIMATION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION))
-#define IS_HERMITE_GAMMA_APPROXIMATION_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION))
-#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionClass))
-
-typedef struct _HermiteGammaApproximationFunction HermiteGammaApproximationFunction;
-typedef struct _HermiteGammaApproximationFunctionClass HermiteGammaApproximationFunctionClass;
-#define _hermite_gamma_approximation_function_unref0(var) ((var == NULL) ? NULL : (var = (hermite_gamma_approximation_function_unref (var), NULL)))
-typedef struct _HermiteGammaApproximationFunctionPrivate HermiteGammaApproximationFunctionPrivate;
-typedef struct _ParamSpecHermiteGammaApproximationFunction ParamSpecHermiteGammaApproximationFunction;
-typedef struct _HighlightDetailTransformationPrivate HighlightDetailTransformationPrivate;
-#define _intensity_histogram_unref0(var) ((var == NULL) ? NULL : (var = (intensity_histogram_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _RGBAnalyticPixel {
- gfloat red;
- gfloat green;
- gfloat blue;
-};
-
-struct _HSVAnalyticPixel {
- gfloat hue;
- gfloat saturation;
- gfloat light_value;
-};
-
-typedef enum {
- COMPOSITION_MODE_NONE,
- COMPOSITION_MODE_RGB_MATRIX,
- COMPOSITION_MODE_HSV_LOOKUP
-} CompositionMode;
-
-typedef enum {
- PIXEL_FORMAT_RGB,
- PIXEL_FORMAT_HSV
-} PixelFormat;
-
-typedef enum {
- PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION,
- PIXEL_TRANSFORMATION_TYPE_SHADOWS,
- PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS,
- PIXEL_TRANSFORMATION_TYPE_TEMPERATURE,
- PIXEL_TRANSFORMATION_TYPE_TINT,
- PIXEL_TRANSFORMATION_TYPE_SATURATION,
- PIXEL_TRANSFORMATION_TYPE_EXPOSURE,
- PIXEL_TRANSFORMATION_TYPE_CONTRAST
-} PixelTransformationType;
-
-struct _PixelTransformationBundle {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PixelTransformationBundlePrivate * priv;
-};
-
-struct _PixelTransformationBundleClass {
- GTypeClass parent_class;
- void (*finalize) (PixelTransformationBundle *self);
-};
-
-struct _PixelTransformationBundlePrivate {
- GeeHashMap* map;
-};
-
-struct _ParamSpecPixelTransformationBundle {
- GParamSpec parent_instance;
-};
-
-struct _PixelTransformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PixelTransformationPrivate * priv;
-};
-
-struct _PixelTransformationClass {
- GTypeClass parent_class;
- void (*finalize) (PixelTransformation *self);
- CompositionMode (*get_composition_mode) (PixelTransformation* self);
- void (*compose_with) (PixelTransformation* self, PixelTransformation* other);
- gboolean (*is_identity) (PixelTransformation* self);
- void (*transform_pixel_hsv) (PixelTransformation* self, HSVAnalyticPixel* p, HSVAnalyticPixel* result);
- void (*transform_pixel_rgb) (PixelTransformation* self, RGBAnalyticPixel* p, RGBAnalyticPixel* result);
- gchar* (*to_string) (PixelTransformation* self);
- PixelTransformation* (*copy) (PixelTransformation* self);
-};
-
-struct _PixelTransformationPrivate {
- PixelTransformationType type;
- PixelFormat preferred_format;
-};
-
-struct _ParamSpecPixelTransformation {
- GParamSpec parent_instance;
-};
-
-struct _RGBTransformation {
- PixelTransformation parent_instance;
- RGBTransformationPrivate * priv;
- gfloat* matrix_entries;
- gint matrix_entries_length1;
- gboolean identity;
-};
-
-struct _RGBTransformationClass {
- PixelTransformationClass parent_class;
-};
-
-struct _HSVTransformation {
- PixelTransformation parent_instance;
- HSVTransformationPrivate * priv;
- gfloat remap_table[256];
-};
-
-struct _HSVTransformationClass {
- PixelTransformationClass parent_class;
-};
-
-struct _TintTransformation {
- RGBTransformation parent_instance;
- TintTransformationPrivate * priv;
-};
-
-struct _TintTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _TintTransformationPrivate {
- gfloat parameter;
-};
-
-struct _TemperatureTransformation {
- RGBTransformation parent_instance;
- TemperatureTransformationPrivate * priv;
-};
-
-struct _TemperatureTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _TemperatureTransformationPrivate {
- gfloat parameter;
-};
-
-struct _SaturationTransformation {
- RGBTransformation parent_instance;
- SaturationTransformationPrivate * priv;
-};
-
-struct _SaturationTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _SaturationTransformationPrivate {
- gfloat parameter;
-};
-
-struct _ExposureTransformation {
- RGBTransformation parent_instance;
- ExposureTransformationPrivate * priv;
-};
-
-struct _ExposureTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _ExposureTransformationPrivate {
- gfloat parameter;
-};
-
-struct _ContrastTransformation {
- RGBTransformation parent_instance;
- ContrastTransformationPrivate * priv;
-};
-
-struct _ContrastTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _ContrastTransformationPrivate {
- gfloat parameter;
-};
-
-struct _PixelTransformer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PixelTransformerPrivate * priv;
- PixelTransformation** optimized_transformations;
- gint optimized_transformations_length1;
- gint optimized_slots_used;
-};
-
-struct _PixelTransformerClass {
- GTypeClass parent_class;
- void (*finalize) (PixelTransformer *self);
-};
-
-struct _PixelTransformerPrivate {
- GeeArrayList* transformations;
-};
-
-struct _Block1Data {
- int _ref_count_;
- PixelTransformer* self;
- gint dest_width;
- gint dest_num_channels;
- gint dest_rowstride;
- guchar* dest_pixels;
- gint dest_pixels_length1;
- gint _dest_pixels_size_;
- gfloat* cache;
- gint cache_length1;
- gint _cache_size_;
-};
-
-struct _Block2Data {
- int _ref_count_;
- Block1Data * _data1_;
- guint row;
- guint slice_height;
-};
-
-struct _Block3Data {
- int _ref_count_;
- PixelTransformer* self;
- gint n_channels;
- gint rowstride;
- gint rowbytes;
- guchar* source_pixels;
- gint source_pixels_length1;
- gint _source_pixels_size_;
- guchar* dest_pixels;
- gint dest_pixels_length1;
- gint _dest_pixels_size_;
- GCancellable* cancellable;
-};
-
-struct _Block4Data {
- int _ref_count_;
- Block3Data * _data3_;
- guint row;
- guint slice_height;
-};
-
-struct _ParamSpecPixelTransformer {
- GParamSpec parent_instance;
-};
-
-struct _RGBHistogram {
- GTypeInstance parent_instance;
- volatile int ref_count;
- RGBHistogramPrivate * priv;
-};
-
-struct _RGBHistogramClass {
- GTypeClass parent_class;
- void (*finalize) (RGBHistogram *self);
-};
-
-struct _RGBHistogramPrivate {
- gint* red_counts;
- gint red_counts_length1;
- gint _red_counts_size_;
- gint* green_counts;
- gint green_counts_length1;
- gint _green_counts_size_;
- gint* blue_counts;
- gint blue_counts_length1;
- gint _blue_counts_size_;
- gint* qualitative_red_counts;
- gint qualitative_red_counts_length1;
- gint _qualitative_red_counts_size_;
- gint* qualitative_green_counts;
- gint qualitative_green_counts_length1;
- gint _qualitative_green_counts_size_;
- gint* qualitative_blue_counts;
- gint qualitative_blue_counts_length1;
- gint _qualitative_blue_counts_size_;
- GdkPixbuf* graphic;
-};
-
-struct _ParamSpecRGBHistogram {
- GParamSpec parent_instance;
-};
-
-struct _IntensityHistogram {
- GTypeInstance parent_instance;
- volatile int ref_count;
- IntensityHistogramPrivate * priv;
-};
-
-struct _IntensityHistogramClass {
- GTypeClass parent_class;
- void (*finalize) (IntensityHistogram *self);
-};
-
-struct _IntensityHistogramPrivate {
- gint* counts;
- gint counts_length1;
- gint _counts_size_;
- gfloat* probabilities;
- gint probabilities_length1;
- gint _probabilities_size_;
- gfloat* cumulative_probabilities;
- gint cumulative_probabilities_length1;
- gint _cumulative_probabilities_size_;
-};
-
-struct _ParamSpecIntensityHistogram {
- GParamSpec parent_instance;
-};
-
-struct _ExpansionTransformation {
- HSVTransformation parent_instance;
- ExpansionTransformationPrivate * priv;
-};
-
-struct _ExpansionTransformationClass {
- HSVTransformationClass parent_class;
-};
-
-struct _ExpansionTransformationPrivate {
- gint low_kink;
- gint high_kink;
-};
-
-struct _ShadowDetailTransformation {
- HSVTransformation parent_instance;
- ShadowDetailTransformationPrivate * priv;
-};
-
-struct _ShadowDetailTransformationClass {
- HSVTransformationClass parent_class;
-};
-
-struct _ShadowDetailTransformationPrivate {
- gfloat intensity;
-};
-
-struct _HermiteGammaApproximationFunction {
- GTypeInstance parent_instance;
- volatile int ref_count;
- HermiteGammaApproximationFunctionPrivate * priv;
-};
-
-struct _HermiteGammaApproximationFunctionClass {
- GTypeClass parent_class;
- void (*finalize) (HermiteGammaApproximationFunction *self);
-};
-
-struct _HermiteGammaApproximationFunctionPrivate {
- gfloat x_scale;
- gfloat nonzero_interval_upper;
-};
-
-struct _ParamSpecHermiteGammaApproximationFunction {
- GParamSpec parent_instance;
-};
-
-struct _HighlightDetailTransformation {
- HSVTransformation parent_instance;
- HighlightDetailTransformationPrivate * priv;
-};
-
-struct _HighlightDetailTransformationClass {
- HSVTransformationClass parent_class;
-};
-
-struct _HighlightDetailTransformationPrivate {
- gfloat intensity;
-};
-
-
-static gpointer pixel_transformation_bundle_parent_class = NULL;
-static PixelTransformationBundle* pixel_transformation_bundle_copied_color_adjustments;
-static PixelTransformationBundle* pixel_transformation_bundle_copied_color_adjustments = NULL;
-static gpointer pixel_transformation_parent_class = NULL;
-static gpointer rgb_transformation_parent_class = NULL;
-static gpointer hsv_transformation_parent_class = NULL;
-static gpointer tint_transformation_parent_class = NULL;
-static gpointer temperature_transformation_parent_class = NULL;
-static gpointer saturation_transformation_parent_class = NULL;
-static gpointer exposure_transformation_parent_class = NULL;
-static gpointer contrast_transformation_parent_class = NULL;
-static gpointer pixel_transformer_parent_class = NULL;
-static gpointer rgb_histogram_parent_class = NULL;
-static gpointer intensity_histogram_parent_class = NULL;
-static gpointer expansion_transformation_parent_class = NULL;
-static gpointer shadow_detail_transformation_parent_class = NULL;
-static gpointer hermite_gamma_approximation_function_parent_class = NULL;
-static gpointer highlight_detail_transformation_parent_class = NULL;
-
-GType rgb_analytic_pixel_get_type (void) G_GNUC_CONST;
-RGBAnalyticPixel* rgb_analytic_pixel_dup (const RGBAnalyticPixel* self);
-void rgb_analytic_pixel_free (RGBAnalyticPixel* self);
-#define RGB_ANALYTIC_PIXEL_INV_255 (1.0f / 255.0f)
-void rgb_analytic_pixel_init (RGBAnalyticPixel *self);
-void rgb_analytic_pixel_init_from_components (RGBAnalyticPixel *self,
- gfloat red,
- gfloat green,
- gfloat blue);
-void rgb_analytic_pixel_init_from_quantized_components (RGBAnalyticPixel *self,
- guchar red_quantized,
- guchar green_quantized,
- guchar blue_quantized);
-GType hsv_analytic_pixel_get_type (void) G_GNUC_CONST;
-HSVAnalyticPixel* hsv_analytic_pixel_dup (const HSVAnalyticPixel* self);
-void hsv_analytic_pixel_free (HSVAnalyticPixel* self);
-void rgb_analytic_pixel_init_from_hsv (RGBAnalyticPixel *self,
- HSVAnalyticPixel* hsv_pixel);
-void hsv_analytic_pixel_to_rgb (HSVAnalyticPixel *self,
- RGBAnalyticPixel* result);
-guchar rgb_analytic_pixel_quantized_red (RGBAnalyticPixel *self);
-guchar rgb_analytic_pixel_quantized_green (RGBAnalyticPixel *self);
-guchar rgb_analytic_pixel_quantized_blue (RGBAnalyticPixel *self);
-gboolean rgb_analytic_pixel_equals (RGBAnalyticPixel *self,
- RGBAnalyticPixel* rhs);
-guint rgb_analytic_pixel_hash_code (RGBAnalyticPixel *self);
-void rgb_analytic_pixel_to_hsv (RGBAnalyticPixel *self,
- HSVAnalyticPixel* result);
-void hsv_analytic_pixel_init_from_rgb (HSVAnalyticPixel *self,
- RGBAnalyticPixel* p);
-#define HSV_ANALYTIC_PIXEL_INV_255 (1.0f / 255.0f)
-void hsv_analytic_pixel_init (HSVAnalyticPixel *self);
-void hsv_analytic_pixel_init_from_components (HSVAnalyticPixel *self,
- gfloat hue,
- gfloat saturation,
- gfloat light_value);
-void hsv_analytic_pixel_init_from_quantized_components (HSVAnalyticPixel *self,
- guchar hue_quantized,
- guchar saturation_quantized,
- guchar light_value_quantized);
-gboolean hsv_analytic_pixel_equals (HSVAnalyticPixel *self,
- HSVAnalyticPixel* rhs);
-guint hsv_analytic_pixel_hash_code (HSVAnalyticPixel *self);
-GType composition_mode_get_type (void) G_GNUC_CONST;
-GType pixel_format_get_type (void) G_GNUC_CONST;
-GType pixel_transformation_type_get_type (void) G_GNUC_CONST;
-gpointer pixel_transformation_bundle_ref (gpointer instance);
-void pixel_transformation_bundle_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformation_bundle (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_pixel_transformation_bundle (GValue* value,
- gpointer v_object);
-void value_take_pixel_transformation_bundle (GValue* value,
- gpointer v_object);
-gpointer value_get_pixel_transformation_bundle (const GValue* value);
-GType pixel_transformation_bundle_get_type (void) G_GNUC_CONST;
-gpointer pixel_transformation_ref (gpointer instance);
-void pixel_transformation_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformation (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_pixel_transformation (GValue* value,
- gpointer v_object);
-void value_take_pixel_transformation (GValue* value,
- gpointer v_object);
-gpointer value_get_pixel_transformation (const GValue* value);
-GType pixel_transformation_get_type (void) G_GNUC_CONST;
-#define PIXEL_TRANSFORMATION_BUNDLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundlePrivate))
-PixelTransformationBundle* pixel_transformation_bundle_new (void);
-PixelTransformationBundle* pixel_transformation_bundle_construct (GType object_type);
-PixelTransformationBundle* pixel_transformation_bundle_get_copied_color_adjustments (void);
-void pixel_transformation_bundle_set_copied_color_adjustments (PixelTransformationBundle* adjustments);
-gboolean pixel_transformation_bundle_has_copied_color_adjustments (void);
-void pixel_transformation_bundle_set (PixelTransformationBundle* self,
- PixelTransformation* transformation);
-PixelTransformationType pixel_transformation_get_transformation_type (PixelTransformation* self);
-void pixel_transformation_bundle_set_to_identity (PixelTransformationBundle* self);
-ExpansionTransformation* expansion_transformation_new_from_extrema (gint black_point,
- gint white_point);
-ExpansionTransformation* expansion_transformation_construct_from_extrema (GType object_type,
- gint black_point,
- gint white_point);
-GType hsv_transformation_get_type (void) G_GNUC_CONST;
-GType expansion_transformation_get_type (void) G_GNUC_CONST;
-ShadowDetailTransformation* shadow_detail_transformation_new (gfloat user_intensity);
-ShadowDetailTransformation* shadow_detail_transformation_construct (GType object_type,
- gfloat user_intensity);
-GType shadow_detail_transformation_get_type (void) G_GNUC_CONST;
-HighlightDetailTransformation* highlight_detail_transformation_new (gfloat user_intensity);
-HighlightDetailTransformation* highlight_detail_transformation_construct (GType object_type,
- gfloat user_intensity);
-GType highlight_detail_transformation_get_type (void) G_GNUC_CONST;
-TemperatureTransformation* temperature_transformation_new (gfloat client_parameter);
-TemperatureTransformation* temperature_transformation_construct (GType object_type,
- gfloat client_parameter);
-GType rgb_transformation_get_type (void) G_GNUC_CONST;
-GType temperature_transformation_get_type (void) G_GNUC_CONST;
-TintTransformation* tint_transformation_new (gfloat client_param);
-TintTransformation* tint_transformation_construct (GType object_type,
- gfloat client_param);
-GType tint_transformation_get_type (void) G_GNUC_CONST;
-SaturationTransformation* saturation_transformation_new (gfloat client_parameter);
-SaturationTransformation* saturation_transformation_construct (GType object_type,
- gfloat client_parameter);
-GType saturation_transformation_get_type (void) G_GNUC_CONST;
-ExposureTransformation* exposure_transformation_new (gfloat client_parameter);
-ExposureTransformation* exposure_transformation_construct (GType object_type,
- gfloat client_parameter);
-GType exposure_transformation_get_type (void) G_GNUC_CONST;
-ContrastTransformation* contrast_transformation_new (gfloat client_parameter);
-ContrastTransformation* contrast_transformation_construct (GType object_type,
- gfloat client_parameter);
-GType contrast_transformation_get_type (void) G_GNUC_CONST;
-gpointer key_value_map_ref (gpointer instance);
-void key_value_map_unref (gpointer instance);
-GParamSpec* param_spec_key_value_map (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_key_value_map (GValue* value,
- gpointer v_object);
-void value_take_key_value_map (GValue* value,
- gpointer v_object);
-gpointer value_get_key_value_map (const GValue* value);
-GType key_value_map_get_type (void) G_GNUC_CONST;
-void pixel_transformation_bundle_load (PixelTransformationBundle* self,
- KeyValueMap* store);
-gchar* key_value_map_get_string (KeyValueMap* self,
- const gchar* key,
- const gchar* def);
-ExpansionTransformation* expansion_transformation_new_from_string (const gchar* encoded_transformation);
-ExpansionTransformation* expansion_transformation_construct_from_string (GType object_type,
- const gchar* encoded_transformation);
-gfloat key_value_map_get_float (KeyValueMap* self,
- const gchar* key,
- gfloat def);
-KeyValueMap* pixel_transformation_bundle_save (PixelTransformationBundle* self,
- const gchar* group);
-KeyValueMap* key_value_map_new (const gchar* group);
-KeyValueMap* key_value_map_construct (GType object_type,
- const gchar* group);
-PixelTransformation* pixel_transformation_bundle_get_transformation (PixelTransformationBundle* self,
- PixelTransformationType type);
-void key_value_map_set_string (KeyValueMap* self,
- const gchar* key,
- const gchar* value);
-gchar* pixel_transformation_to_string (PixelTransformation* self);
-void key_value_map_set_float (KeyValueMap* self,
- const gchar* key,
- gfloat value);
-gfloat shadow_detail_transformation_get_parameter (ShadowDetailTransformation* self);
-gfloat highlight_detail_transformation_get_parameter (HighlightDetailTransformation* self);
-gfloat temperature_transformation_get_parameter (TemperatureTransformation* self);
-gfloat tint_transformation_get_parameter (TintTransformation* self);
-gfloat saturation_transformation_get_parameter (SaturationTransformation* self);
-gfloat exposure_transformation_get_parameter (ExposureTransformation* self);
-gfloat contrast_transformation_get_parameter (ContrastTransformation* self);
-gint pixel_transformation_bundle_get_count (PixelTransformationBundle* self);
-GeeIterable* pixel_transformation_bundle_get_transformations (PixelTransformationBundle* self);
-gboolean pixel_transformation_bundle_is_identity (PixelTransformationBundle* self);
-gboolean pixel_transformation_is_identity (PixelTransformation* self);
-gpointer pixel_transformer_ref (gpointer instance);
-void pixel_transformer_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_pixel_transformer (GValue* value,
- gpointer v_object);
-void value_take_pixel_transformer (GValue* value,
- gpointer v_object);
-gpointer value_get_pixel_transformer (const GValue* value);
-GType pixel_transformer_get_type (void) G_GNUC_CONST;
-PixelTransformer* pixel_transformation_bundle_generate_transformer (PixelTransformationBundle* self);
-PixelTransformer* pixel_transformer_new (void);
-PixelTransformer* pixel_transformer_construct (GType object_type);
-void pixel_transformer_attach_transformation (PixelTransformer* self,
- PixelTransformation* trans);
-PixelTransformationBundle* pixel_transformation_bundle_copy (PixelTransformationBundle* self);
-static void pixel_transformation_bundle_finalize (PixelTransformationBundle * obj);
-#define PIXEL_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PIXEL_TRANSFORMATION, PixelTransformationPrivate))
-PixelTransformation* pixel_transformation_construct (GType object_type,
- PixelTransformationType type,
- PixelFormat preferred_format);
-PixelFormat pixel_transformation_get_preferred_format (PixelTransformation* self);
-CompositionMode pixel_transformation_get_composition_mode (PixelTransformation* self);
-static CompositionMode pixel_transformation_real_get_composition_mode (PixelTransformation* self);
-void pixel_transformation_compose_with (PixelTransformation* self,
- PixelTransformation* other);
-static void pixel_transformation_real_compose_with (PixelTransformation* self,
- PixelTransformation* other);
-static gboolean pixel_transformation_real_is_identity (PixelTransformation* self);
-void pixel_transformation_transform_pixel_hsv (PixelTransformation* self,
- HSVAnalyticPixel* p,
- HSVAnalyticPixel* result);
-static void pixel_transformation_real_transform_pixel_hsv (PixelTransformation* self,
- HSVAnalyticPixel* p,
- HSVAnalyticPixel* result);
-void pixel_transformation_transform_pixel_rgb (PixelTransformation* self,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result);
-static void pixel_transformation_real_transform_pixel_rgb (PixelTransformation* self,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result);
-static gchar* pixel_transformation_real_to_string (PixelTransformation* self);
-PixelTransformation* pixel_transformation_copy (PixelTransformation* self);
-static PixelTransformation* pixel_transformation_real_copy (PixelTransformation* self);
-static void pixel_transformation_finalize (PixelTransformation * obj);
-#define RGB_TRANSFORMATION_MATRIX_SIZE 16
-RGBTransformation* rgb_transformation_new (PixelTransformationType type);
-RGBTransformation* rgb_transformation_construct (GType object_type,
- PixelTransformationType type);
-static CompositionMode rgb_transformation_real_get_composition_mode (PixelTransformation* base);
-static void rgb_transformation_real_compose_with (PixelTransformation* base,
- PixelTransformation* other);
-static void rgb_transformation_real_transform_pixel_hsv (PixelTransformation* base,
- HSVAnalyticPixel* p,
- HSVAnalyticPixel* result);
-static void rgb_transformation_real_transform_pixel_rgb (PixelTransformation* base,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result);
-static gboolean rgb_transformation_real_is_identity (PixelTransformation* base);
-static PixelTransformation* rgb_transformation_real_copy (PixelTransformation* base);
-static void rgb_transformation_finalize (PixelTransformation * obj);
-HSVTransformation* hsv_transformation_construct (GType object_type,
- PixelTransformationType type);
-static CompositionMode hsv_transformation_real_get_composition_mode (PixelTransformation* base);
-static void hsv_transformation_real_transform_pixel_rgb (PixelTransformation* base,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result);
-static void hsv_transformation_real_compose_with (PixelTransformation* base,
- PixelTransformation* other);
-static void hsv_transformation_real_transform_pixel_hsv (PixelTransformation* base,
- HSVAnalyticPixel* pixel,
- HSVAnalyticPixel* result);
-static void hsv_transformation_finalize (PixelTransformation * obj);
-#define TINT_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TINT_TRANSFORMATION, TintTransformationPrivate))
-#define TINT_TRANSFORMATION_INTENSITY_FACTOR 0.25f
-#define TINT_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define TINT_TRANSFORMATION_MAX_PARAMETER 16.0f
-static void tint_transformation_finalize (PixelTransformation * obj);
-#define TEMPERATURE_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationPrivate))
-#define TEMPERATURE_TRANSFORMATION_INTENSITY_FACTOR 0.33f
-#define TEMPERATURE_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define TEMPERATURE_TRANSFORMATION_MAX_PARAMETER 16.0f
-static void temperature_transformation_finalize (PixelTransformation * obj);
-#define SATURATION_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationPrivate))
-#define SATURATION_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define SATURATION_TRANSFORMATION_MAX_PARAMETER 16.0f
-static void saturation_transformation_finalize (PixelTransformation * obj);
-#define EXPOSURE_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationPrivate))
-#define EXPOSURE_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define EXPOSURE_TRANSFORMATION_MAX_PARAMETER 16.0f
-static void exposure_transformation_finalize (PixelTransformation * obj);
-#define CONTRAST_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationPrivate))
-#define CONTRAST_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define CONTRAST_TRANSFORMATION_MAX_PARAMETER 16.0f
-#define CONTRAST_TRANSFORMATION_MAX_CONTRAST_ADJUSTMENT 0.5f
-static void contrast_transformation_finalize (PixelTransformation * obj);
-#define PIXEL_TRANSFORMER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PIXEL_TRANSFORMER, PixelTransformerPrivate))
-PixelTransformer* pixel_transformer_copy (PixelTransformer* self);
-static void pixel_transformer_build_optimized_transformations (PixelTransformer* self);
-void pixel_transformer_apply_transformations (PixelTransformer* self,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result);
-void pixel_transformer_detach_transformation (PixelTransformer* self,
- PixelTransformation* victim);
-void pixel_transformer_replace_transformation (PixelTransformer* self,
- PixelTransformation* old_trans,
- PixelTransformation* new_trans);
-void pixel_transformer_transform_pixbuf (PixelTransformer* self,
- GdkPixbuf* pixbuf,
- GCancellable* cancellable);
-void pixel_transformer_transform_to_other_pixbuf (PixelTransformer* self,
- GdkPixbuf* source,
- GdkPixbuf* dest,
- GCancellable* cancellable,
- gint jobs);
-void pixel_transformer_transform_from_fp (PixelTransformer* self,
- gfloat** fp_pixel_cache,
- int* fp_pixel_cache_length1,
- GdkPixbuf* dest);
-static Block1Data* block1_data_ref (Block1Data* _data1_);
-static void block1_data_unref (void * _userdata_);
-static Block2Data* block2_data_ref (Block2Data* _data2_);
-static void block2_data_unref (void * _userdata_);
-static void* _____lambda5_ (Block2Data* _data2_);
-static gpointer ______lambda5__gthread_func (gpointer self);
-static Block3Data* block3_data_ref (Block3Data* _data3_);
-static void block3_data_unref (void * _userdata_);
-static Block4Data* block4_data_ref (Block4Data* _data4_);
-static void block4_data_unref (void * _userdata_);
-static void* _____lambda4_ (Block4Data* _data4_);
-void pixel_transformer_apply_transformation (PixelTransformer* self,
- guint row,
- gint rowstride,
- gint rowbytes,
- gint n_channels,
- guchar* source_pixels,
- int source_pixels_length1,
- guchar* dest_pixels,
- int dest_pixels_length1);
-static gpointer ______lambda4__gthread_func (gpointer self);
-static void pixel_transformer_finalize (PixelTransformer * obj);
-gpointer rgb_histogram_ref (gpointer instance);
-void rgb_histogram_unref (gpointer instance);
-GParamSpec* param_spec_rgb_histogram (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_rgb_histogram (GValue* value,
- gpointer v_object);
-void value_take_rgb_histogram (GValue* value,
- gpointer v_object);
-gpointer value_get_rgb_histogram (const GValue* value);
-GType rgb_histogram_get_type (void) G_GNUC_CONST;
-#define RGB_HISTOGRAM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RGB_HISTOGRAM, RGBHistogramPrivate))
-#define RGB_HISTOGRAM_MARKED_BACKGROUND ((guchar) 30)
-#define RGB_HISTOGRAM_MARKED_FOREGROUND ((guchar) 210)
-#define RGB_HISTOGRAM_UNMARKED_BACKGROUND ((guchar) 120)
-#define RGB_HISTOGRAM_GRAPHIC_WIDTH 256
-#define RGB_HISTOGRAM_GRAPHIC_HEIGHT 100
-RGBHistogram* rgb_histogram_new (GdkPixbuf* pixbuf);
-RGBHistogram* rgb_histogram_construct (GType object_type,
- GdkPixbuf* pixbuf);
-static gint rgb_histogram_correct_snap_to_quantization (RGBHistogram* self,
- gint* buckets,
- int buckets_length1,
- gint i);
-static gint rgb_histogram_correct_snap_from_quantization (RGBHistogram* self,
- gint* buckets,
- int buckets_length1,
- gint i);
-static void rgb_histogram_smooth_extrema (RGBHistogram* self,
- gint** count_data,
- int* count_data_length1);
-static void rgb_histogram_prepare_qualitative_counts (RGBHistogram* self);
-GdkPixbuf* rgb_histogram_get_graphic (RGBHistogram* self);
-static void rgb_histogram_finalize (RGBHistogram * obj);
-gpointer intensity_histogram_ref (gpointer instance);
-void intensity_histogram_unref (gpointer instance);
-GParamSpec* param_spec_intensity_histogram (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_intensity_histogram (GValue* value,
- gpointer v_object);
-void value_take_intensity_histogram (GValue* value,
- gpointer v_object);
-gpointer value_get_intensity_histogram (const GValue* value);
-GType intensity_histogram_get_type (void) G_GNUC_CONST;
-#define INTENSITY_HISTOGRAM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramPrivate))
-IntensityHistogram* intensity_histogram_new (GdkPixbuf* pixbuf);
-IntensityHistogram* intensity_histogram_construct (GType object_type,
- GdkPixbuf* pixbuf);
-gfloat intensity_histogram_get_cumulative_probability (IntensityHistogram* self,
- gint level);
-static void intensity_histogram_finalize (IntensityHistogram * obj);
-#define EXPANSION_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationPrivate))
-#define EXPANSION_TRANSFORMATION_LOW_DISCARD_MASS 0.02f
-#define EXPANSION_TRANSFORMATION_HIGH_DISCARD_MASS 0.02f
-ExpansionTransformation* expansion_transformation_new (IntensityHistogram* histogram);
-ExpansionTransformation* expansion_transformation_construct (GType object_type,
- IntensityHistogram* histogram);
-static void expansion_transformation_build_remap_table (ExpansionTransformation* self);
-static gchar* expansion_transformation_real_to_string (PixelTransformation* base);
-gint expansion_transformation_get_white_point (ExpansionTransformation* self);
-gint expansion_transformation_get_black_point (ExpansionTransformation* self);
-static gboolean expansion_transformation_real_is_identity (PixelTransformation* base);
-static PixelTransformation* expansion_transformation_real_copy (PixelTransformation* base);
-static void expansion_transformation_finalize (PixelTransformation * obj);
-#define SHADOW_DETAIL_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationPrivate))
-#define SHADOW_DETAIL_TRANSFORMATION_MAX_EFFECT_SHIFT 0.5f
-#define SHADOW_DETAIL_TRANSFORMATION_MIN_TONAL_WIDTH 0.1f
-#define SHADOW_DETAIL_TRANSFORMATION_MAX_TONAL_WIDTH 1.0f
-#define SHADOW_DETAIL_TRANSFORMATION_TONAL_WIDTH 1.0f
-#define SHADOW_DETAIL_TRANSFORMATION_MIN_PARAMETER 0.0f
-#define SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER 32.0f
-gpointer hermite_gamma_approximation_function_ref (gpointer instance);
-void hermite_gamma_approximation_function_unref (gpointer instance);
-GParamSpec* param_spec_hermite_gamma_approximation_function (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hermite_gamma_approximation_function (GValue* value,
- gpointer v_object);
-void value_take_hermite_gamma_approximation_function (GValue* value,
- gpointer v_object);
-gpointer value_get_hermite_gamma_approximation_function (const GValue* value);
-GType hermite_gamma_approximation_function_get_type (void) G_GNUC_CONST;
-HermiteGammaApproximationFunction* hermite_gamma_approximation_function_new (gfloat user_interval_upper);
-HermiteGammaApproximationFunction* hermite_gamma_approximation_function_construct (GType object_type,
- gfloat user_interval_upper);
-gfloat hermite_gamma_approximation_function_evaluate (HermiteGammaApproximationFunction* self,
- gfloat x);
-static PixelTransformation* shadow_detail_transformation_real_copy (PixelTransformation* base);
-static gboolean shadow_detail_transformation_real_is_identity (PixelTransformation* base);
-static void shadow_detail_transformation_finalize (PixelTransformation * obj);
-#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionPrivate))
-static void hermite_gamma_approximation_function_finalize (HermiteGammaApproximationFunction * obj);
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationPrivate))
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_EFFECT_SHIFT 0.5f
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_TONAL_WIDTH 0.1f
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_TONAL_WIDTH 1.0f
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_TONAL_WIDTH 1.0f
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_PARAMETER (-32.0f)
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_PARAMETER 0.0f
-static PixelTransformation* highlight_detail_transformation_real_copy (PixelTransformation* base);
-static gboolean highlight_detail_transformation_real_is_identity (PixelTransformation* base);
-static void highlight_detail_transformation_finalize (PixelTransformation * obj);
-#define AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY 8
-#define AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY 100
-#define AUTO_ENHANCE_SHADOW_DETECT_INTENSITY_RANGE (AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY - AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY)
-#define AUTO_ENHANCE_SHADOW_MODE_HIGH_DISCARD_MASS 0.02f
-#define AUTO_ENHANCE_SHADOW_AGGRESSIVENESS_MUL 0.4f
-#define AUTO_ENHANCE_EMPIRICAL_DARK 30
-PixelTransformationBundle* auto_enhance_create_auto_enhance_adjustments (GdkPixbuf* pixbuf);
-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);
-
-const gfloat rgb_lookup_table[256] = {0.0f / 255.0f, 1.0f / 255.0f, 2.0f / 255.0f, 3.0f / 255.0f, 4.0f / 255.0f, 5.0f / 255.0f, 6.0f / 255.0f, 7.0f / 255.0f, 8.0f / 255.0f, 9.0f / 255.0f, 10.0f / 255.0f, 11.0f / 255.0f, 12.0f / 255.0f, 13.0f / 255.0f, 14.0f / 255.0f, 15.0f / 255.0f, 16.0f / 255.0f, 17.0f / 255.0f, 18.0f / 255.0f, 19.0f / 255.0f, 20.0f / 255.0f, 21.0f / 255.0f, 22.0f / 255.0f, 23.0f / 255.0f, 24.0f / 255.0f, 25.0f / 255.0f, 26.0f / 255.0f, 27.0f / 255.0f, 28.0f / 255.0f, 29.0f / 255.0f, 30.0f / 255.0f, 31.0f / 255.0f, 32.0f / 255.0f, 33.0f / 255.0f, 34.0f / 255.0f, 35.0f / 255.0f, 36.0f / 255.0f, 37.0f / 255.0f, 38.0f / 255.0f, 39.0f / 255.0f, 40.0f / 255.0f, 41.0f / 255.0f, 42.0f / 255.0f, 43.0f / 255.0f, 44.0f / 255.0f, 45.0f / 255.0f, 46.0f / 255.0f, 47.0f / 255.0f, 48.0f / 255.0f, 49.0f / 255.0f, 50.0f / 255.0f, 51.0f / 255.0f, 52.0f / 255.0f, 53.0f / 255.0f, 54.0f / 255.0f, 55.0f / 255.0f, 56.0f / 255.0f, 57.0f / 255.0f, 58.0f / 255.0f, 59.0f / 255.0f, 60.0f / 255.0f, 61.0f / 255.0f, 62.0f / 255.0f, 63.0f / 255.0f, 64.0f / 255.0f, 65.0f / 255.0f, 66.0f / 255.0f, 67.0f / 255.0f, 68.0f / 255.0f, 69.0f / 255.0f, 70.0f / 255.0f, 71.0f / 255.0f, 72.0f / 255.0f, 73.0f / 255.0f, 74.0f / 255.0f, 75.0f / 255.0f, 76.0f / 255.0f, 77.0f / 255.0f, 78.0f / 255.0f, 79.0f / 255.0f, 80.0f / 255.0f, 81.0f / 255.0f, 82.0f / 255.0f, 83.0f / 255.0f, 84.0f / 255.0f, 85.0f / 255.0f, 86.0f / 255.0f, 87.0f / 255.0f, 88.0f / 255.0f, 89.0f / 255.0f, 90.0f / 255.0f, 91.0f / 255.0f, 92.0f / 255.0f, 93.0f / 255.0f, 94.0f / 255.0f, 95.0f / 255.0f, 96.0f / 255.0f, 97.0f / 255.0f, 98.0f / 255.0f, 99.0f / 255.0f, 100.0f / 255.0f, 101.0f / 255.0f, 102.0f / 255.0f, 103.0f / 255.0f, 104.0f / 255.0f, 105.0f / 255.0f, 106.0f / 255.0f, 107.0f / 255.0f, 108.0f / 255.0f, 109.0f / 255.0f, 110.0f / 255.0f, 111.0f / 255.0f, 112.0f / 255.0f, 113.0f / 255.0f, 114.0f / 255.0f, 115.0f / 255.0f, 116.0f / 255.0f, 117.0f / 255.0f, 118.0f / 255.0f, 119.0f / 255.0f, 120.0f / 255.0f, 121.0f / 255.0f, 122.0f / 255.0f, 123.0f / 255.0f, 124.0f / 255.0f, 125.0f / 255.0f, 126.0f / 255.0f, 127.0f / 255.0f, 128.0f / 255.0f, 129.0f / 255.0f, 130.0f / 255.0f, 131.0f / 255.0f, 132.0f / 255.0f, 133.0f / 255.0f, 134.0f / 255.0f, 135.0f / 255.0f, 136.0f / 255.0f, 137.0f / 255.0f, 138.0f / 255.0f, 139.0f / 255.0f, 140.0f / 255.0f, 141.0f / 255.0f, 142.0f / 255.0f, 143.0f / 255.0f, 144.0f / 255.0f, 145.0f / 255.0f, 146.0f / 255.0f, 147.0f / 255.0f, 148.0f / 255.0f, 149.0f / 255.0f, 150.0f / 255.0f, 151.0f / 255.0f, 152.0f / 255.0f, 153.0f / 255.0f, 154.0f / 255.0f, 155.0f / 255.0f, 156.0f / 255.0f, 157.0f / 255.0f, 158.0f / 255.0f, 159.0f / 255.0f, 160.0f / 255.0f, 161.0f / 255.0f, 162.0f / 255.0f, 163.0f / 255.0f, 164.0f / 255.0f, 165.0f / 255.0f, 166.0f / 255.0f, 167.0f / 255.0f, 168.0f / 255.0f, 169.0f / 255.0f, 170.0f / 255.0f, 171.0f / 255.0f, 172.0f / 255.0f, 173.0f / 255.0f, 174.0f / 255.0f, 175.0f / 255.0f, 176.0f / 255.0f, 177.0f / 255.0f, 178.0f / 255.0f, 179.0f / 255.0f, 180.0f / 255.0f, 181.0f / 255.0f, 182.0f / 255.0f, 183.0f / 255.0f, 184.0f / 255.0f, 185.0f / 255.0f, 186.0f / 255.0f, 187.0f / 255.0f, 188.0f / 255.0f, 189.0f / 255.0f, 190.0f / 255.0f, 191.0f / 255.0f, 192.0f / 255.0f, 193.0f / 255.0f, 194.0f / 255.0f, 195.0f / 255.0f, 196.0f / 255.0f, 197.0f / 255.0f, 198.0f / 255.0f, 199.0f / 255.0f, 200.0f / 255.0f, 201.0f / 255.0f, 202.0f / 255.0f, 203.0f / 255.0f, 204.0f / 255.0f, 205.0f / 255.0f, 206.0f / 255.0f, 207.0f / 255.0f, 208.0f / 255.0f, 209.0f / 255.0f, 210.0f / 255.0f, 211.0f / 255.0f, 212.0f / 255.0f, 213.0f / 255.0f, 214.0f / 255.0f, 215.0f / 255.0f, 216.0f / 255.0f, 217.0f / 255.0f, 218.0f / 255.0f, 219.0f / 255.0f, 220.0f / 255.0f, 221.0f / 255.0f, 222.0f / 255.0f, 223.0f / 255.0f, 224.0f / 255.0f, 225.0f / 255.0f, 226.0f / 255.0f, 227.0f / 255.0f, 228.0f / 255.0f, 229.0f / 255.0f, 230.0f / 255.0f, 231.0f / 255.0f, 232.0f / 255.0f, 233.0f / 255.0f, 234.0f / 255.0f, 235.0f / 255.0f, 236.0f / 255.0f, 237.0f / 255.0f, 238.0f / 255.0f, 239.0f / 255.0f, 240.0f / 255.0f, 241.0f / 255.0f, 242.0f / 255.0f, 243.0f / 255.0f, 244.0f / 255.0f, 245.0f / 255.0f, 246.0f / 255.0f, 247.0f / 255.0f, 248.0f / 255.0f, 249.0f / 255.0f, 250.0f / 255.0f, 251.0f / 255.0f, 252.0f / 255.0f, 253.0f / 255.0f, 254.0f / 255.0f, 255.0f / 255.0f};
-
-void
-rgb_analytic_pixel_init (RGBAnalyticPixel *self)
-{
-#line 14 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memset (self, 0, sizeof (RGBAnalyticPixel));
-#line 15 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).red = 0.0f;
-#line 16 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).green = 0.0f;
-#line 17 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).blue = 0.0f;
-#line 1069 "ColorTransformation.c"
-}
-
-
-void
-rgb_analytic_pixel_init_from_components (RGBAnalyticPixel *self,
- gfloat red,
- gfloat green,
- gfloat blue)
-{
-#line 20 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memset (self, 0, sizeof (RGBAnalyticPixel));
-#line 22 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).red = CLAMP (red, 0.0f, 1.0f);
-#line 23 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).green = CLAMP (green, 0.0f, 1.0f);
-#line 24 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).blue = CLAMP (blue, 0.0f, 1.0f);
-#line 1087 "ColorTransformation.c"
-}
-
-
-void
-rgb_analytic_pixel_init_from_quantized_components (RGBAnalyticPixel *self,
- guchar red_quantized,
- guchar green_quantized,
- guchar blue_quantized)
-{
- gfloat _tmp0_;
- gfloat _tmp1_;
- gfloat _tmp2_;
-#line 27 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memset (self, 0, sizeof (RGBAnalyticPixel));
-#line 29 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = rgb_lookup_table[red_quantized];
-#line 29 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).red = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = rgb_lookup_table[green_quantized];
-#line 30 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).green = _tmp1_;
-#line 31 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = rgb_lookup_table[blue_quantized];
-#line 31 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).blue = _tmp2_;
-#line 1114 "ColorTransformation.c"
-}
-
-
-void
-rgb_analytic_pixel_init_from_hsv (RGBAnalyticPixel *self,
- HSVAnalyticPixel* hsv_pixel)
-{
- RGBAnalyticPixel from_hsv = {0};
- RGBAnalyticPixel _tmp0_ = {0};
- RGBAnalyticPixel _tmp1_;
- gfloat _tmp2_;
- RGBAnalyticPixel _tmp3_;
- gfloat _tmp4_;
- RGBAnalyticPixel _tmp5_;
- gfloat _tmp6_;
-#line 34 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memset (self, 0, sizeof (RGBAnalyticPixel));
-#line 35 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hsv_analytic_pixel_to_rgb (hsv_pixel, &_tmp0_);
-#line 35 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- from_hsv = _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = from_hsv;
-#line 36 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _tmp1_.red;
-#line 36 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).red = _tmp2_;
-#line 37 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = from_hsv;
-#line 37 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _tmp3_.green;
-#line 37 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).green = _tmp4_;
-#line 38 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = from_hsv;
-#line 38 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _tmp5_.blue;
-#line 38 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).blue = _tmp6_;
-#line 1154 "ColorTransformation.c"
-}
-
-
-guchar
-rgb_analytic_pixel_quantized_red (RGBAnalyticPixel *self)
-{
- guchar result = '\0';
- gfloat _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = (*self).red;
-#line 42 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = (guchar) (_tmp0_ * 255.0f);
-#line 42 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1169 "ColorTransformation.c"
-}
-
-
-guchar
-rgb_analytic_pixel_quantized_green (RGBAnalyticPixel *self)
-{
- guchar result = '\0';
- gfloat _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = (*self).green;
-#line 46 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = (guchar) (_tmp0_ * 255.0f);
-#line 46 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1184 "ColorTransformation.c"
-}
-
-
-guchar
-rgb_analytic_pixel_quantized_blue (RGBAnalyticPixel *self)
-{
- guchar result = '\0';
- gfloat _tmp0_;
-#line 50 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = (*self).blue;
-#line 50 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = (guchar) (_tmp0_ * 255.0f);
-#line 50 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1199 "ColorTransformation.c"
-}
-
-
-gboolean
-rgb_analytic_pixel_equals (RGBAnalyticPixel *self,
- RGBAnalyticPixel* rhs)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gfloat _tmp2_;
- gfloat _tmp3_;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = (*self).red;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = (*rhs).red;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp2_ == _tmp3_) {
-#line 1218 "ColorTransformation.c"
- gfloat _tmp4_;
- gfloat _tmp5_;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = (*self).green;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = (*rhs).green;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _tmp4_ == _tmp5_;
-#line 1227 "ColorTransformation.c"
- } else {
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = FALSE;
-#line 1231 "ColorTransformation.c"
- }
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp1_) {
-#line 1235 "ColorTransformation.c"
- gfloat _tmp6_;
- gfloat _tmp7_;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = (*self).blue;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = (*rhs).blue;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _tmp6_ == _tmp7_;
-#line 1244 "ColorTransformation.c"
- } else {
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = FALSE;
-#line 1248 "ColorTransformation.c"
- }
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1254 "ColorTransformation.c"
-}
-
-
-guint
-rgb_analytic_pixel_hash_code (RGBAnalyticPixel *self)
-{
- guint result = 0U;
- gfloat _tmp0_;
- gfloat _tmp1_;
- gfloat _tmp2_;
-#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = (*self).red;
-#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = (*self).green;
-#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = (*self).blue;
-#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = ((((guint) (_tmp0_ * 255.0f)) << 16) + (((guint) (_tmp1_ * 255.0f)) << 8)) + ((guint) (_tmp2_ * 255.0f));
-#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1275 "ColorTransformation.c"
-}
-
-
-void
-rgb_analytic_pixel_to_hsv (RGBAnalyticPixel *self,
- HSVAnalyticPixel* result)
-{
- HSVAnalyticPixel _tmp0_ = {0};
-#line 63 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hsv_analytic_pixel_init_from_rgb (&_tmp0_, &(*self));
-#line 63 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *result = _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return;
-#line 1290 "ColorTransformation.c"
-}
-
-
-RGBAnalyticPixel*
-rgb_analytic_pixel_dup (const RGBAnalyticPixel* self)
-{
- RGBAnalyticPixel* dup;
-#line 7 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dup = g_new0 (RGBAnalyticPixel, 1);
-#line 7 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memcpy (dup, self, sizeof (RGBAnalyticPixel));
-#line 7 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return dup;
-#line 1304 "ColorTransformation.c"
-}
-
-
-void
-rgb_analytic_pixel_free (RGBAnalyticPixel* self)
-{
-#line 7 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_free (self);
-#line 1313 "ColorTransformation.c"
-}
-
-
-GType
-rgb_analytic_pixel_get_type (void)
-{
- static volatile gsize rgb_analytic_pixel_type_id__volatile = 0;
- if (g_once_init_enter (&rgb_analytic_pixel_type_id__volatile)) {
- GType rgb_analytic_pixel_type_id;
- rgb_analytic_pixel_type_id = g_boxed_type_register_static ("RGBAnalyticPixel", (GBoxedCopyFunc) rgb_analytic_pixel_dup, (GBoxedFreeFunc) rgb_analytic_pixel_free);
- g_once_init_leave (&rgb_analytic_pixel_type_id__volatile, rgb_analytic_pixel_type_id);
- }
- return rgb_analytic_pixel_type_id__volatile;
-}
-
-
-void
-hsv_analytic_pixel_init (HSVAnalyticPixel *self)
-{
-#line 74 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memset (self, 0, sizeof (HSVAnalyticPixel));
-#line 75 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).hue = 0.0f;
-#line 76 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).saturation = 0.0f;
-#line 77 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).light_value = 0.0f;
-#line 1341 "ColorTransformation.c"
-}
-
-
-void
-hsv_analytic_pixel_init_from_components (HSVAnalyticPixel *self,
- gfloat hue,
- gfloat saturation,
- gfloat light_value)
-{
-#line 80 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memset (self, 0, sizeof (HSVAnalyticPixel));
-#line 82 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).hue = CLAMP (hue, 0.0f, 1.0f);
-#line 83 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).saturation = CLAMP (saturation, 0.0f, 1.0f);
-#line 84 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).light_value = CLAMP (light_value, 0.0f, 1.0f);
-#line 1359 "ColorTransformation.c"
-}
-
-
-void
-hsv_analytic_pixel_init_from_quantized_components (HSVAnalyticPixel *self,
- guchar hue_quantized,
- guchar saturation_quantized,
- guchar light_value_quantized)
-{
- gfloat _tmp0_;
- gfloat _tmp1_;
- gfloat _tmp2_;
-#line 87 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memset (self, 0, sizeof (HSVAnalyticPixel));
-#line 89 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = rgb_lookup_table[hue_quantized];
-#line 89 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).hue = _tmp0_;
-#line 90 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = rgb_lookup_table[saturation_quantized];
-#line 90 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).saturation = _tmp1_;
-#line 91 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = rgb_lookup_table[light_value_quantized];
-#line 91 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*self).light_value = _tmp2_;
-#line 1386 "ColorTransformation.c"
-}
-
-
-gboolean
-hsv_analytic_pixel_equals (HSVAnalyticPixel *self,
- HSVAnalyticPixel* rhs)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gfloat _tmp2_;
- HSVAnalyticPixel _tmp3_;
- gfloat _tmp4_;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = (*self).hue;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = *rhs;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _tmp3_.hue;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp2_ == _tmp4_) {
-#line 1408 "ColorTransformation.c"
- gfloat _tmp5_;
- HSVAnalyticPixel _tmp6_;
- gfloat _tmp7_;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = (*self).saturation;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = *rhs;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = _tmp6_.saturation;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _tmp5_ == _tmp7_;
-#line 1420 "ColorTransformation.c"
- } else {
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = FALSE;
-#line 1424 "ColorTransformation.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp1_) {
-#line 1428 "ColorTransformation.c"
- gfloat _tmp8_;
- HSVAnalyticPixel _tmp9_;
- gfloat _tmp10_;
-#line 100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = (*self).light_value;
-#line 100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = *rhs;
-#line 100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _tmp9_.light_value;
-#line 100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _tmp8_ == _tmp10_;
-#line 1440 "ColorTransformation.c"
- } else {
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = FALSE;
-#line 1444 "ColorTransformation.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1450 "ColorTransformation.c"
-}
-
-
-guint
-hsv_analytic_pixel_hash_code (HSVAnalyticPixel *self)
-{
- guint result = 0U;
- gfloat _tmp0_;
- gfloat _tmp1_;
- gfloat _tmp2_;
-#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = (*self).hue;
-#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = (*self).saturation;
-#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = (*self).light_value;
-#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = ((((guint) (_tmp0_ * 255.0f)) << 16) + (((guint) (_tmp1_ * 255.0f)) << 8)) + ((guint) (_tmp2_ * 255.0f));
-#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1471 "ColorTransformation.c"
-}
-
-
-HSVAnalyticPixel*
-hsv_analytic_pixel_dup (const HSVAnalyticPixel* self)
-{
- HSVAnalyticPixel* dup;
-#line 67 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dup = g_new0 (HSVAnalyticPixel, 1);
-#line 67 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- memcpy (dup, self, sizeof (HSVAnalyticPixel));
-#line 67 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return dup;
-#line 1485 "ColorTransformation.c"
-}
-
-
-void
-hsv_analytic_pixel_free (HSVAnalyticPixel* self)
-{
-#line 67 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_free (self);
-#line 1494 "ColorTransformation.c"
-}
-
-
-GType
-hsv_analytic_pixel_get_type (void)
-{
- static volatile gsize hsv_analytic_pixel_type_id__volatile = 0;
- if (g_once_init_enter (&hsv_analytic_pixel_type_id__volatile)) {
- GType hsv_analytic_pixel_type_id;
- hsv_analytic_pixel_type_id = g_boxed_type_register_static ("HSVAnalyticPixel", (GBoxedCopyFunc) hsv_analytic_pixel_dup, (GBoxedFreeFunc) hsv_analytic_pixel_free);
- g_once_init_leave (&hsv_analytic_pixel_type_id__volatile, hsv_analytic_pixel_type_id);
- }
- return hsv_analytic_pixel_type_id__volatile;
-}
-
-
-GType
-composition_mode_get_type (void)
-{
- static volatile gsize composition_mode_type_id__volatile = 0;
- if (g_once_init_enter (&composition_mode_type_id__volatile)) {
- static const GEnumValue values[] = {{COMPOSITION_MODE_NONE, "COMPOSITION_MODE_NONE", "none"}, {COMPOSITION_MODE_RGB_MATRIX, "COMPOSITION_MODE_RGB_MATRIX", "rgb-matrix"}, {COMPOSITION_MODE_HSV_LOOKUP, "COMPOSITION_MODE_HSV_LOOKUP", "hsv-lookup"}, {0, NULL, NULL}};
- GType composition_mode_type_id;
- composition_mode_type_id = g_enum_register_static ("CompositionMode", values);
- g_once_init_leave (&composition_mode_type_id__volatile, composition_mode_type_id);
- }
- return composition_mode_type_id__volatile;
-}
-
-
-GType
-pixel_format_get_type (void)
-{
- static volatile gsize pixel_format_type_id__volatile = 0;
- if (g_once_init_enter (&pixel_format_type_id__volatile)) {
- static const GEnumValue values[] = {{PIXEL_FORMAT_RGB, "PIXEL_FORMAT_RGB", "rgb"}, {PIXEL_FORMAT_HSV, "PIXEL_FORMAT_HSV", "hsv"}, {0, NULL, NULL}};
- GType pixel_format_type_id;
- pixel_format_type_id = g_enum_register_static ("PixelFormat", values);
- g_once_init_leave (&pixel_format_type_id__volatile, pixel_format_type_id);
- }
- return pixel_format_type_id__volatile;
-}
-
-
-GType
-pixel_transformation_type_get_type (void)
-{
- static volatile gsize pixel_transformation_type_type_id__volatile = 0;
- if (g_once_init_enter (&pixel_transformation_type_type_id__volatile)) {
- static const GEnumValue values[] = {{PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION, "PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION", "tone-expansion"}, {PIXEL_TRANSFORMATION_TYPE_SHADOWS, "PIXEL_TRANSFORMATION_TYPE_SHADOWS", "shadows"}, {PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS, "PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS", "highlights"}, {PIXEL_TRANSFORMATION_TYPE_TEMPERATURE, "PIXEL_TRANSFORMATION_TYPE_TEMPERATURE", "temperature"}, {PIXEL_TRANSFORMATION_TYPE_TINT, "PIXEL_TRANSFORMATION_TYPE_TINT", "tint"}, {PIXEL_TRANSFORMATION_TYPE_SATURATION, "PIXEL_TRANSFORMATION_TYPE_SATURATION", "saturation"}, {PIXEL_TRANSFORMATION_TYPE_EXPOSURE, "PIXEL_TRANSFORMATION_TYPE_EXPOSURE", "exposure"}, {PIXEL_TRANSFORMATION_TYPE_CONTRAST, "PIXEL_TRANSFORMATION_TYPE_CONTRAST", "contrast"}, {0, NULL, NULL}};
- GType pixel_transformation_type_type_id;
- pixel_transformation_type_type_id = g_enum_register_static ("PixelTransformationType", values);
- g_once_init_leave (&pixel_transformation_type_type_id__volatile, pixel_transformation_type_type_id);
- }
- return pixel_transformation_type_type_id__volatile;
-}
-
-
-PixelTransformationBundle*
-pixel_transformation_bundle_construct (GType object_type)
-{
- PixelTransformationBundle* self = NULL;
-#line 137 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (PixelTransformationBundle*) g_type_create_instance (object_type);
-#line 137 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 1561 "ColorTransformation.c"
-}
-
-
-PixelTransformationBundle*
-pixel_transformation_bundle_new (void)
-{
-#line 137 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return pixel_transformation_bundle_construct (TYPE_PIXEL_TRANSFORMATION_BUNDLE);
-#line 1570 "ColorTransformation.c"
-}
-
-
-static gpointer
-_pixel_transformation_bundle_ref0 (gpointer self)
-{
-#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self ? pixel_transformation_bundle_ref (self) : NULL;
-#line 1579 "ColorTransformation.c"
-}
-
-
-PixelTransformationBundle*
-pixel_transformation_bundle_get_copied_color_adjustments (void)
-{
- PixelTransformationBundle* result = NULL;
- PixelTransformationBundle* _tmp0_;
- PixelTransformationBundle* _tmp1_;
-#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = pixel_transformation_bundle_copied_color_adjustments;
-#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _pixel_transformation_bundle_ref0 (_tmp0_);
-#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp1_;
-#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1597 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_bundle_set_copied_color_adjustments (PixelTransformationBundle* adjustments)
-{
- PixelTransformationBundle* _tmp0_;
-#line 145 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _pixel_transformation_bundle_ref0 (adjustments);
-#line 145 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_bundle_unref0 (pixel_transformation_bundle_copied_color_adjustments);
-#line 145 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_copied_color_adjustments = _tmp0_;
-#line 1611 "ColorTransformation.c"
-}
-
-
-gboolean
-pixel_transformation_bundle_has_copied_color_adjustments (void)
-{
- gboolean result = FALSE;
- PixelTransformationBundle* _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = pixel_transformation_bundle_copied_color_adjustments;
-#line 149 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_ != NULL;
-#line 149 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1626 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_bundle_set (PixelTransformationBundle* self,
- PixelTransformation* transformation)
-{
- GeeHashMap* _tmp0_;
-#line 153 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->map;
-#line 153 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) ((gint) pixel_transformation_get_transformation_type (transformation))), transformation);
-#line 1639 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_bundle_set_to_identity (PixelTransformationBundle* self)
-{
- ExpansionTransformation* _tmp0_;
- ExpansionTransformation* _tmp1_;
- ShadowDetailTransformation* _tmp2_;
- ShadowDetailTransformation* _tmp3_;
- HighlightDetailTransformation* _tmp4_;
- HighlightDetailTransformation* _tmp5_;
- TemperatureTransformation* _tmp6_;
- TemperatureTransformation* _tmp7_;
- TintTransformation* _tmp8_;
- TintTransformation* _tmp9_;
- SaturationTransformation* _tmp10_;
- SaturationTransformation* _tmp11_;
- ExposureTransformation* _tmp12_;
- ExposureTransformation* _tmp13_;
- ContrastTransformation* _tmp14_;
- ContrastTransformation* _tmp15_;
-#line 157 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = expansion_transformation_new_from_extrema (0, 255);
-#line 157 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _tmp0_;
-#line 157 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 157 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp1_);
-#line 158 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = shadow_detail_transformation_new (0.0f);
-#line 158 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = _tmp2_;
-#line 158 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 158 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp3_);
-#line 159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = highlight_detail_transformation_new (0.0f);
-#line 159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _tmp4_;
-#line 159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp5_);
-#line 160 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = temperature_transformation_new (0.0f);
-#line 160 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = _tmp6_;
-#line 160 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 160 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp7_);
-#line 161 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = tint_transformation_new (0.0f);
-#line 161 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _tmp8_;
-#line 161 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 161 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp9_);
-#line 162 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = saturation_transformation_new (0.0f);
-#line 162 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = _tmp10_;
-#line 162 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 162 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp11_);
-#line 163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = exposure_transformation_new (0.0f);
-#line 163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = _tmp12_;
-#line 163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp13_);
-#line 164 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = contrast_transformation_new (0.0f);
-#line 164 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = _tmp14_;
-#line 164 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 164 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp15_);
-#line 1726 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_bundle_load (PixelTransformationBundle* self,
- KeyValueMap* store)
-{
- gchar* expansion_params_encoded = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- ShadowDetailTransformation* _tmp7_;
- ShadowDetailTransformation* _tmp8_;
- HighlightDetailTransformation* _tmp9_;
- HighlightDetailTransformation* _tmp10_;
- TemperatureTransformation* _tmp11_;
- TemperatureTransformation* _tmp12_;
- TintTransformation* _tmp13_;
- TintTransformation* _tmp14_;
- SaturationTransformation* _tmp15_;
- SaturationTransformation* _tmp16_;
- ExposureTransformation* _tmp17_;
- ExposureTransformation* _tmp18_;
- ContrastTransformation* _tmp19_;
- ContrastTransformation* _tmp20_;
-#line 168 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = key_value_map_get_string (store, "expansion", "-");
-#line 168 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- expansion_params_encoded = _tmp0_;
-#line 169 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = expansion_params_encoded;
-#line 169 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_strcmp0 (_tmp1_, "-") == 0) {
-#line 1759 "ColorTransformation.c"
- ExpansionTransformation* _tmp2_;
- ExpansionTransformation* _tmp3_;
-#line 170 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = expansion_transformation_new_from_extrema (0, 255);
-#line 170 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = _tmp2_;
-#line 170 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 170 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp3_);
-#line 1770 "ColorTransformation.c"
- } else {
- const gchar* _tmp4_;
- ExpansionTransformation* _tmp5_;
- ExpansionTransformation* _tmp6_;
-#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = expansion_params_encoded;
-#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = expansion_transformation_new_from_string (_tmp4_);
-#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _tmp5_;
-#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp6_);
-#line 1785 "ColorTransformation.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = shadow_detail_transformation_new (key_value_map_get_float (store, "shadows", 0.0f));
-#line 174 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = _tmp7_;
-#line 174 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 174 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp8_);
-#line 175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = highlight_detail_transformation_new (key_value_map_get_float (store, "highlights", 0.0f));
-#line 175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _tmp9_;
-#line 175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp10_);
-#line 176 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = temperature_transformation_new (key_value_map_get_float (store, "temperature", 0.0f));
-#line 176 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = _tmp11_;
-#line 176 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 176 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp12_);
-#line 177 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = tint_transformation_new (key_value_map_get_float (store, "tint", 0.0f));
-#line 177 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = _tmp13_;
-#line 177 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 177 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp14_);
-#line 178 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = saturation_transformation_new (key_value_map_get_float (store, "saturation", 0.0f));
-#line 178 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = _tmp15_;
-#line 178 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 178 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp16_);
-#line 179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = exposure_transformation_new (key_value_map_get_float (store, "exposure", 0.0f));
-#line 179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = _tmp17_;
-#line 179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp18_);
-#line 180 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = contrast_transformation_new (key_value_map_get_float (store, "contrast", 0.0f));
-#line 180 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = _tmp19_;
-#line 180 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 180 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp20_);
-#line 167 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_free0 (expansion_params_encoded);
-#line 1845 "ColorTransformation.c"
-}
-
-
-KeyValueMap*
-pixel_transformation_bundle_save (PixelTransformationBundle* self,
- const gchar* group)
-{
- KeyValueMap* result = NULL;
- KeyValueMap* store = NULL;
- KeyValueMap* _tmp0_;
- ExpansionTransformation* new_expansion_trans = NULL;
- PixelTransformation* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- ShadowDetailTransformation* new_shadows_trans = NULL;
- PixelTransformation* _tmp4_;
- HighlightDetailTransformation* new_highlight_trans = NULL;
- PixelTransformation* _tmp5_;
- TemperatureTransformation* new_temp_trans = NULL;
- PixelTransformation* _tmp6_;
- TintTransformation* new_tint_trans = NULL;
- PixelTransformation* _tmp7_;
- SaturationTransformation* new_sat_trans = NULL;
- PixelTransformation* _tmp8_;
- ExposureTransformation* new_exposure_trans = NULL;
- PixelTransformation* _tmp9_;
- ContrastTransformation* new_contrast_trans = NULL;
- PixelTransformation* _tmp10_;
-#line 184 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = key_value_map_new (group);
-#line 184 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- store = _tmp0_;
-#line 186 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION);
-#line 186 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- new_expansion_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation);
-#line 188 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (new_expansion_trans != NULL, "new_expansion_trans != null");
-#line 189 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = pixel_transformation_to_string (G_TYPE_CHECK_INSTANCE_CAST (new_expansion_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 189 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = _tmp2_;
-#line 189 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- key_value_map_set_string (store, "expansion", _tmp3_);
-#line 189 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_free0 (_tmp3_);
-#line 191 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_SHADOWS);
-#line 191 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- new_shadows_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation);
-#line 193 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (new_shadows_trans != NULL, "new_shadows_trans != null");
-#line 194 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- key_value_map_set_float (store, "shadows", shadow_detail_transformation_get_parameter (new_shadows_trans));
-#line 196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS);
-#line 196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- new_highlight_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation);
-#line 198 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (new_highlight_trans != NULL, "new_highlight_trans != null");
-#line 199 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- key_value_map_set_float (store, "highlights", highlight_detail_transformation_get_parameter (new_highlight_trans));
-#line 201 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_TEMPERATURE);
-#line 201 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- new_temp_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation);
-#line 203 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (new_temp_trans != NULL, "new_temp_trans != null");
-#line 204 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- key_value_map_set_float (store, "temperature", temperature_transformation_get_parameter (new_temp_trans));
-#line 206 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_TINT);
-#line 206 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- new_tint_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_TINT_TRANSFORMATION, TintTransformation);
-#line 208 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (new_tint_trans != NULL, "new_tint_trans != null");
-#line 209 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- key_value_map_set_float (store, "tint", tint_transformation_get_parameter (new_tint_trans));
-#line 211 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_SATURATION);
-#line 211 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- new_sat_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SATURATION_TRANSFORMATION, SaturationTransformation);
-#line 213 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (new_sat_trans != NULL, "new_sat_trans != null");
-#line 214 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- key_value_map_set_float (store, "saturation", saturation_transformation_get_parameter (new_sat_trans));
-#line 216 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_EXPOSURE);
-#line 216 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- new_exposure_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation);
-#line 218 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (new_exposure_trans != NULL, "new_exposure_trans != null");
-#line 219 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- key_value_map_set_float (store, "exposure", exposure_transformation_get_parameter (new_exposure_trans));
-#line 221 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_CONTRAST);
-#line 221 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- new_contrast_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation);
-#line 223 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (new_contrast_trans != NULL, "new_contrast_trans != null");
-#line 224 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- key_value_map_set_float (store, "contrast", contrast_transformation_get_parameter (new_contrast_trans));
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = store;
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (new_contrast_trans);
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (new_exposure_trans);
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (new_sat_trans);
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (new_tint_trans);
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (new_temp_trans);
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (new_highlight_trans);
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (new_shadows_trans);
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (new_expansion_trans);
-#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1968 "ColorTransformation.c"
-}
-
-
-gint
-pixel_transformation_bundle_get_count (PixelTransformationBundle* self)
-{
- gint result = 0;
- GeeHashMap* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->map;
-#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _tmp1_;
-#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp2_;
-#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 1989 "ColorTransformation.c"
-}
-
-
-PixelTransformation*
-pixel_transformation_bundle_get_transformation (PixelTransformationBundle* self,
- PixelTransformationType type)
-{
- PixelTransformation* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 234 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->map;
-#line 234 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) ((gint) type)));
-#line 234 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = (PixelTransformation*) _tmp1_;
-#line 234 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2008 "ColorTransformation.c"
-}
-
-
-GeeIterable*
-pixel_transformation_bundle_get_transformations (PixelTransformationBundle* self)
-{
- GeeIterable* result = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
-#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->map;
-#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _tmp1_;
-#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable);
-#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2029 "ColorTransformation.c"
-}
-
-
-gboolean
-pixel_transformation_bundle_is_identity (PixelTransformationBundle* self)
-{
- gboolean result = FALSE;
- {
- GeeIterator* _adjustment_it = NULL;
- GeeIterable* _tmp0_;
- GeeIterable* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = pixel_transformation_bundle_get_transformations (self);
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _tmp0_;
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = gee_iterable_iterator (_tmp1_);
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = _tmp2_;
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_tmp1_);
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _adjustment_it = _tmp3_;
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 2057 "ColorTransformation.c"
- GeeIterator* _tmp4_;
- PixelTransformation* adjustment = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- PixelTransformation* _tmp7_;
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _adjustment_it;
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 2069 "ColorTransformation.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _adjustment_it;
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjustment = (PixelTransformation*) _tmp6_;
-#line 243 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = adjustment;
-#line 243 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!pixel_transformation_is_identity (_tmp7_)) {
-#line 244 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = FALSE;
-#line 244 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (adjustment);
-#line 244 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_adjustment_it);
-#line 244 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2089 "ColorTransformation.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (adjustment);
-#line 2093 "ColorTransformation.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_adjustment_it);
-#line 2097 "ColorTransformation.c"
- }
-#line 247 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = TRUE;
-#line 247 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2103 "ColorTransformation.c"
-}
-
-
-PixelTransformer*
-pixel_transformation_bundle_generate_transformer (PixelTransformationBundle* self)
-{
- PixelTransformer* result = NULL;
- PixelTransformer* transformer = NULL;
- PixelTransformer* _tmp0_;
-#line 251 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = pixel_transformer_new ();
-#line 251 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- transformer = _tmp0_;
-#line 2117 "ColorTransformation.c"
- {
- GeeIterator* _transformation_it = NULL;
- GeeIterable* _tmp1_;
- GeeIterable* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = pixel_transformation_bundle_get_transformations (self);
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _tmp1_;
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = gee_iterable_iterator (_tmp2_);
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _tmp3_;
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_tmp2_);
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _transformation_it = _tmp4_;
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 2138 "ColorTransformation.c"
- GeeIterator* _tmp5_;
- PixelTransformation* transformation = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- PixelTransformer* _tmp8_;
- PixelTransformation* _tmp9_;
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _transformation_it;
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 2151 "ColorTransformation.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _transformation_it;
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- transformation = (PixelTransformation*) _tmp7_;
-#line 253 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = transformer;
-#line 253 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = transformation;
-#line 253 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_attach_transformation (_tmp8_, _tmp9_);
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (transformation);
-#line 2167 "ColorTransformation.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_transformation_it);
-#line 2171 "ColorTransformation.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = transformer;
-#line 255 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2177 "ColorTransformation.c"
-}
-
-
-PixelTransformationBundle*
-pixel_transformation_bundle_copy (PixelTransformationBundle* self)
-{
- PixelTransformationBundle* result = NULL;
- PixelTransformationBundle* bundle = NULL;
- PixelTransformationBundle* _tmp0_;
-#line 259 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = pixel_transformation_bundle_new ();
-#line 259 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- bundle = _tmp0_;
-#line 2191 "ColorTransformation.c"
- {
- GeeIterator* _transformation_it = NULL;
- GeeIterable* _tmp1_;
- GeeIterable* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = pixel_transformation_bundle_get_transformations (self);
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _tmp1_;
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = gee_iterable_iterator (_tmp2_);
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _tmp3_;
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_tmp2_);
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _transformation_it = _tmp4_;
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 2212 "ColorTransformation.c"
- GeeIterator* _tmp5_;
- PixelTransformation* transformation = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- PixelTransformationBundle* _tmp8_;
- PixelTransformation* _tmp9_;
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _transformation_it;
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 2225 "ColorTransformation.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _transformation_it;
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- transformation = (PixelTransformation*) _tmp7_;
-#line 261 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = bundle;
-#line 261 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = transformation;
-#line 261 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp8_, _tmp9_);
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (transformation);
-#line 2241 "ColorTransformation.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_transformation_it);
-#line 2245 "ColorTransformation.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = bundle;
-#line 263 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2251 "ColorTransformation.c"
-}
-
-
-static void
-value_pixel_transformation_bundle_init (GValue* value)
-{
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 2260 "ColorTransformation.c"
-}
-
-
-static void
-value_pixel_transformation_bundle_free_value (GValue* value)
-{
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (value->data[0].v_pointer) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_unref (value->data[0].v_pointer);
-#line 2271 "ColorTransformation.c"
- }
-}
-
-
-static void
-value_pixel_transformation_bundle_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (src_value->data[0].v_pointer) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = pixel_transformation_bundle_ref (src_value->data[0].v_pointer);
-#line 2284 "ColorTransformation.c"
- } else {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2288 "ColorTransformation.c"
- }
-}
-
-
-static gpointer
-value_pixel_transformation_bundle_peek_pointer (const GValue* value)
-{
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 2298 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_pixel_transformation_bundle_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (collect_values[0].v_pointer) {
-#line 2310 "ColorTransformation.c"
- PixelTransformationBundle * object;
- object = collect_values[0].v_pointer;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2317 "ColorTransformation.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.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 2321 "ColorTransformation.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = pixel_transformation_bundle_ref (object);
-#line 2325 "ColorTransformation.c"
- } else {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 2329 "ColorTransformation.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 2333 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_pixel_transformation_bundle_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PixelTransformationBundle ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!object_p) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2349 "ColorTransformation.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!value->data[0].v_pointer) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = NULL;
-#line 2355 "ColorTransformation.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = value->data[0].v_pointer;
-#line 2359 "ColorTransformation.c"
- } else {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = pixel_transformation_bundle_ref (value->data[0].v_pointer);
-#line 2363 "ColorTransformation.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 2367 "ColorTransformation.c"
-}
-
-
-GParamSpec*
-param_spec_pixel_transformation_bundle (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPixelTransformationBundle* spec;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PIXEL_TRANSFORMATION_BUNDLE), NULL);
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return G_PARAM_SPEC (spec);
-#line 2387 "ColorTransformation.c"
-}
-
-
-gpointer
-value_get_pixel_transformation_bundle (const GValue* value)
-{
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION_BUNDLE), NULL);
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 2398 "ColorTransformation.c"
-}
-
-
-void
-value_set_pixel_transformation_bundle (GValue* value,
- gpointer v_object)
-{
- PixelTransformationBundle * old;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION_BUNDLE));
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMATION_BUNDLE));
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_ref (value->data[0].v_pointer);
-#line 2421 "ColorTransformation.c"
- } else {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 2425 "ColorTransformation.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_unref (old);
-#line 2431 "ColorTransformation.c"
- }
-}
-
-
-void
-value_take_pixel_transformation_bundle (GValue* value,
- gpointer v_object)
-{
- PixelTransformationBundle * old;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION_BUNDLE));
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMATION_BUNDLE));
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 2453 "ColorTransformation.c"
- } else {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 2457 "ColorTransformation.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_unref (old);
-#line 2463 "ColorTransformation.c"
- }
-}
-
-
-static void
-pixel_transformation_bundle_class_init (PixelTransformationBundleClass * klass)
-{
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_parent_class = g_type_class_peek_parent (klass);
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationBundleClass *) klass)->finalize = pixel_transformation_bundle_finalize;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (PixelTransformationBundlePrivate));
-#line 2477 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformation_bundle_instance_init (PixelTransformationBundle * self)
-{
- void* _tmp0_;
- GDestroyNotify _tmp1_;
- GeeHashDataFunc _tmp2_;
- void* _tmp3_;
- GDestroyNotify _tmp4_;
- GeeEqualDataFunc _tmp5_;
- GeeHashMap* _tmp6_;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = PIXEL_TRANSFORMATION_BUNDLE_GET_PRIVATE (self);
-#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = gee_functions_get_hash_func_for (G_TYPE_INT, &_tmp0_, &_tmp1_);
-#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = gee_functions_get_equal_func_for (G_TYPE_INT, &_tmp3_, &_tmp4_);
-#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = gee_hash_map_new (G_TYPE_INT, NULL, NULL, TYPE_PIXEL_TRANSFORMATION, (GBoxedCopyFunc) pixel_transformation_ref, (GDestroyNotify) pixel_transformation_unref, _tmp2_, _tmp0_, _tmp1_, _tmp5_, _tmp3_, _tmp4_, NULL, NULL, NULL);
-#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->map = _tmp6_;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->ref_count = 1;
-#line 2503 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformation_bundle_finalize (PixelTransformationBundle * obj)
-{
- PixelTransformationBundle * self;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle);
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_signal_handlers_destroy (self);
-#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (self->priv->map);
-#line 2517 "ColorTransformation.c"
-}
-
-
-GType
-pixel_transformation_bundle_get_type (void)
-{
- static volatile gsize pixel_transformation_bundle_type_id__volatile = 0;
- if (g_once_init_enter (&pixel_transformation_bundle_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_pixel_transformation_bundle_init, value_pixel_transformation_bundle_free_value, value_pixel_transformation_bundle_copy_value, value_pixel_transformation_bundle_peek_pointer, "p", value_pixel_transformation_bundle_collect_value, "p", value_pixel_transformation_bundle_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PixelTransformationBundleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixel_transformation_bundle_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixelTransformationBundle), 0, (GInstanceInitFunc) pixel_transformation_bundle_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType pixel_transformation_bundle_type_id;
- pixel_transformation_bundle_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PixelTransformationBundle", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&pixel_transformation_bundle_type_id__volatile, pixel_transformation_bundle_type_id);
- }
- return pixel_transformation_bundle_type_id__volatile;
-}
-
-
-gpointer
-pixel_transformation_bundle_ref (gpointer instance)
-{
- PixelTransformationBundle * self;
- self = instance;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return instance;
-#line 2546 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_bundle_unref (gpointer instance)
-{
- PixelTransformationBundle * self;
- self = instance;
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS (self)->finalize (self);
-#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2561 "ColorTransformation.c"
- }
-}
-
-
-PixelTransformation*
-pixel_transformation_construct (GType object_type,
- PixelTransformationType type,
- PixelFormat preferred_format)
-{
- PixelTransformation* self = NULL;
-#line 271 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (PixelTransformation*) g_type_create_instance (object_type);
-#line 273 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->type = type;
-#line 274 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->preferred_format = preferred_format;
-#line 271 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 2580 "ColorTransformation.c"
-}
-
-
-PixelTransformationType
-pixel_transformation_get_transformation_type (PixelTransformation* self)
-{
- PixelTransformationType result = 0;
- PixelTransformationType _tmp0_;
-#line 278 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->type;
-#line 278 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 278 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2595 "ColorTransformation.c"
-}
-
-
-PixelFormat
-pixel_transformation_get_preferred_format (PixelTransformation* self)
-{
- PixelFormat result = 0;
- PixelFormat _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->preferred_format;
-#line 282 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2610 "ColorTransformation.c"
-}
-
-
-static CompositionMode
-pixel_transformation_real_get_composition_mode (PixelTransformation* self)
-{
- CompositionMode result = 0;
-#line 286 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = COMPOSITION_MODE_NONE;
-#line 286 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2622 "ColorTransformation.c"
-}
-
-
-CompositionMode
-pixel_transformation_get_composition_mode (PixelTransformation* self)
-{
-#line 285 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return PIXEL_TRANSFORMATION_GET_CLASS (self)->get_composition_mode (self);
-#line 2631 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformation_real_compose_with (PixelTransformation* self,
- PixelTransformation* other)
-{
-#line 290 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_error ("ColorTransformation.vala:290: %s", "PixelTransformation: compose_with( ): this type of pixel " "transformation doesn't support composition.");
-#line 2641 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_compose_with (PixelTransformation* self,
- PixelTransformation* other)
-{
-#line 289 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_GET_CLASS (self)->compose_with (self, other);
-#line 2651 "ColorTransformation.c"
-}
-
-
-static gboolean
-pixel_transformation_real_is_identity (PixelTransformation* self)
-{
- gboolean result = FALSE;
-#line 295 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = TRUE;
-#line 295 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2663 "ColorTransformation.c"
-}
-
-
-gboolean
-pixel_transformation_is_identity (PixelTransformation* self)
-{
-#line 294 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return PIXEL_TRANSFORMATION_GET_CLASS (self)->is_identity (self);
-#line 2672 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformation_real_transform_pixel_hsv (PixelTransformation* self,
- HSVAnalyticPixel* p,
- HSVAnalyticPixel* result)
-{
- HSVAnalyticPixel _tmp0_;
-#line 299 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = *p;
-#line 299 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *result = _tmp0_;
-#line 299 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return;
-#line 2688 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_transform_pixel_hsv (PixelTransformation* self,
- HSVAnalyticPixel* p,
- HSVAnalyticPixel* result)
-{
-#line 298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_GET_CLASS (self)->transform_pixel_hsv (self, p, result);
-#line 2699 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformation_real_transform_pixel_rgb (PixelTransformation* self,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result)
-{
- RGBAnalyticPixel _tmp0_;
-#line 303 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = *p;
-#line 303 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *result = _tmp0_;
-#line 303 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return;
-#line 2715 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_transform_pixel_rgb (PixelTransformation* self,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result)
-{
-#line 302 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_GET_CLASS (self)->transform_pixel_rgb (self, p, result);
-#line 2726 "ColorTransformation.c"
-}
-
-
-static gchar*
-pixel_transformation_real_to_string (PixelTransformation* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 307 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = g_strdup ("PixelTransformation");
-#line 307 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 307 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 2741 "ColorTransformation.c"
-}
-
-
-gchar*
-pixel_transformation_to_string (PixelTransformation* self)
-{
-#line 306 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return PIXEL_TRANSFORMATION_GET_CLASS (self)->to_string (self);
-#line 2750 "ColorTransformation.c"
-}
-
-
-static PixelTransformation*
-pixel_transformation_real_copy (PixelTransformation* self)
-{
-#line 310 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_critical ("Type `%s' does not implement abstract method `pixel_transformation_copy'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 310 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 2761 "ColorTransformation.c"
-}
-
-
-PixelTransformation*
-pixel_transformation_copy (PixelTransformation* self)
-{
-#line 310 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return PIXEL_TRANSFORMATION_GET_CLASS (self)->copy (self);
-#line 2770 "ColorTransformation.c"
-}
-
-
-static void
-value_pixel_transformation_init (GValue* value)
-{
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 2779 "ColorTransformation.c"
-}
-
-
-static void
-value_pixel_transformation_free_value (GValue* value)
-{
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (value->data[0].v_pointer) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_unref (value->data[0].v_pointer);
-#line 2790 "ColorTransformation.c"
- }
-}
-
-
-static void
-value_pixel_transformation_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (src_value->data[0].v_pointer) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = pixel_transformation_ref (src_value->data[0].v_pointer);
-#line 2803 "ColorTransformation.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2807 "ColorTransformation.c"
- }
-}
-
-
-static gpointer
-value_pixel_transformation_peek_pointer (const GValue* value)
-{
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 2817 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_pixel_transformation_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (collect_values[0].v_pointer) {
-#line 2829 "ColorTransformation.c"
- PixelTransformation * object;
- object = collect_values[0].v_pointer;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2836 "ColorTransformation.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.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 2840 "ColorTransformation.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = pixel_transformation_ref (object);
-#line 2844 "ColorTransformation.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 2848 "ColorTransformation.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 2852 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_pixel_transformation_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PixelTransformation ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!object_p) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2868 "ColorTransformation.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!value->data[0].v_pointer) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = NULL;
-#line 2874 "ColorTransformation.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = value->data[0].v_pointer;
-#line 2878 "ColorTransformation.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = pixel_transformation_ref (value->data[0].v_pointer);
-#line 2882 "ColorTransformation.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 2886 "ColorTransformation.c"
-}
-
-
-GParamSpec*
-param_spec_pixel_transformation (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPixelTransformation* spec;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PIXEL_TRANSFORMATION), NULL);
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return G_PARAM_SPEC (spec);
-#line 2906 "ColorTransformation.c"
-}
-
-
-gpointer
-value_get_pixel_transformation (const GValue* value)
-{
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION), NULL);
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 2917 "ColorTransformation.c"
-}
-
-
-void
-value_set_pixel_transformation (GValue* value,
- gpointer v_object)
-{
- PixelTransformation * old;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION));
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMATION));
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_ref (value->data[0].v_pointer);
-#line 2940 "ColorTransformation.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 2944 "ColorTransformation.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_unref (old);
-#line 2950 "ColorTransformation.c"
- }
-}
-
-
-void
-value_take_pixel_transformation (GValue* value,
- gpointer v_object)
-{
- PixelTransformation * old;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION));
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMATION));
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 2972 "ColorTransformation.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 2976 "ColorTransformation.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_unref (old);
-#line 2982 "ColorTransformation.c"
- }
-}
-
-
-static void
-pixel_transformation_class_init (PixelTransformationClass * klass)
-{
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = pixel_transformation_finalize;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (PixelTransformationPrivate));
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->get_composition_mode = (CompositionMode (*) (PixelTransformation *)) pixel_transformation_real_get_composition_mode;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->compose_with = (void (*) (PixelTransformation *, PixelTransformation*)) pixel_transformation_real_compose_with;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) pixel_transformation_real_is_identity;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->transform_pixel_hsv = (void (*) (PixelTransformation *, HSVAnalyticPixel*, HSVAnalyticPixel*)) pixel_transformation_real_transform_pixel_hsv;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->transform_pixel_rgb = (void (*) (PixelTransformation *, RGBAnalyticPixel*, RGBAnalyticPixel*)) pixel_transformation_real_transform_pixel_rgb;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->to_string = (gchar* (*) (PixelTransformation *)) pixel_transformation_real_to_string;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) pixel_transformation_real_copy;
-#line 3010 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformation_instance_init (PixelTransformation * self)
-{
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = PIXEL_TRANSFORMATION_GET_PRIVATE (self);
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->ref_count = 1;
-#line 3021 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformation_finalize (PixelTransformation * obj)
-{
- PixelTransformation * self;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXEL_TRANSFORMATION, PixelTransformation);
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_signal_handlers_destroy (self);
-#line 3033 "ColorTransformation.c"
-}
-
-
-GType
-pixel_transformation_get_type (void)
-{
- static volatile gsize pixel_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&pixel_transformation_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_pixel_transformation_init, value_pixel_transformation_free_value, value_pixel_transformation_copy_value, value_pixel_transformation_peek_pointer, "p", value_pixel_transformation_collect_value, "p", value_pixel_transformation_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PixelTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixel_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixelTransformation), 0, (GInstanceInitFunc) pixel_transformation_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType pixel_transformation_type_id;
- pixel_transformation_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PixelTransformation", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&pixel_transformation_type_id__volatile, pixel_transformation_type_id);
- }
- return pixel_transformation_type_id__volatile;
-}
-
-
-gpointer
-pixel_transformation_ref (gpointer instance)
-{
- PixelTransformation * self;
- self = instance;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return instance;
-#line 3062 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformation_unref (gpointer instance)
-{
- PixelTransformation * self;
- self = instance;
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_GET_CLASS (self)->finalize (self);
-#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3077 "ColorTransformation.c"
- }
-}
-
-
-RGBTransformation*
-rgb_transformation_construct (GType object_type,
- PixelTransformationType type)
-{
- RGBTransformation* self = NULL;
- gfloat* _tmp0_;
-#line 323 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (RGBTransformation*) pixel_transformation_construct (object_type, type, PIXEL_FORMAT_RGB);
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = g_new0 (gfloat, 16);
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[0] = 1.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[1] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[2] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[3] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[4] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[5] = 1.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[6] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[7] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[8] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[9] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[10] = 1.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[11] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[12] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[13] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[14] = 0.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_[15] = 1.0f;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->matrix_entries = (g_free (self->matrix_entries), NULL);
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->matrix_entries = _tmp0_;
-#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->matrix_entries_length1 = 16;
-#line 322 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 3132 "ColorTransformation.c"
-}
-
-
-RGBTransformation*
-rgb_transformation_new (PixelTransformationType type)
-{
-#line 322 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return rgb_transformation_construct (TYPE_RGB_TRANSFORMATION, type);
-#line 3141 "ColorTransformation.c"
-}
-
-
-static CompositionMode
-rgb_transformation_real_get_composition_mode (PixelTransformation* base)
-{
- RGBTransformation * self;
- CompositionMode result = 0;
-#line 336 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation);
-#line 337 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = COMPOSITION_MODE_RGB_MATRIX;
-#line 337 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 3156 "ColorTransformation.c"
-}
-
-
-static gpointer
-_pixel_transformation_ref0 (gpointer self)
-{
-#line 345 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self ? pixel_transformation_ref (self) : NULL;
-#line 3165 "ColorTransformation.c"
-}
-
-
-static void
-rgb_transformation_real_compose_with (PixelTransformation* base,
- PixelTransformation* other)
-{
- RGBTransformation * self;
- RGBTransformation* transform = NULL;
- RGBTransformation* _tmp0_;
- gfloat* result_matrix_entries = NULL;
- gfloat* _tmp1_;
- gint result_matrix_entries_length1;
- gint _result_matrix_entries_size_;
- gfloat* _tmp2_;
- gint _tmp2__length1;
- RGBTransformation* _tmp3_;
- gfloat* _tmp4_;
- gint _tmp4__length1;
- gfloat _tmp5_;
- gfloat* _tmp6_;
- gint _tmp6__length1;
- gfloat _tmp7_;
- RGBTransformation* _tmp8_;
- gfloat* _tmp9_;
- gint _tmp9__length1;
- gfloat _tmp10_;
- gfloat* _tmp11_;
- gint _tmp11__length1;
- gfloat _tmp12_;
- RGBTransformation* _tmp13_;
- gfloat* _tmp14_;
- gint _tmp14__length1;
- gfloat _tmp15_;
- gfloat* _tmp16_;
- gint _tmp16__length1;
- gfloat _tmp17_;
- RGBTransformation* _tmp18_;
- gfloat* _tmp19_;
- gint _tmp19__length1;
- gfloat _tmp20_;
- gfloat* _tmp21_;
- gint _tmp21__length1;
- gfloat _tmp22_;
- gfloat _tmp23_;
- gfloat* _tmp24_;
- gint _tmp24__length1;
- RGBTransformation* _tmp25_;
- gfloat* _tmp26_;
- gint _tmp26__length1;
- gfloat _tmp27_;
- gfloat* _tmp28_;
- gint _tmp28__length1;
- gfloat _tmp29_;
- RGBTransformation* _tmp30_;
- gfloat* _tmp31_;
- gint _tmp31__length1;
- gfloat _tmp32_;
- gfloat* _tmp33_;
- gint _tmp33__length1;
- gfloat _tmp34_;
- RGBTransformation* _tmp35_;
- gfloat* _tmp36_;
- gint _tmp36__length1;
- gfloat _tmp37_;
- gfloat* _tmp38_;
- gint _tmp38__length1;
- gfloat _tmp39_;
- RGBTransformation* _tmp40_;
- gfloat* _tmp41_;
- gint _tmp41__length1;
- gfloat _tmp42_;
- gfloat* _tmp43_;
- gint _tmp43__length1;
- gfloat _tmp44_;
- gfloat _tmp45_;
- gfloat* _tmp46_;
- gint _tmp46__length1;
- RGBTransformation* _tmp47_;
- gfloat* _tmp48_;
- gint _tmp48__length1;
- gfloat _tmp49_;
- gfloat* _tmp50_;
- gint _tmp50__length1;
- gfloat _tmp51_;
- RGBTransformation* _tmp52_;
- gfloat* _tmp53_;
- gint _tmp53__length1;
- gfloat _tmp54_;
- gfloat* _tmp55_;
- gint _tmp55__length1;
- gfloat _tmp56_;
- RGBTransformation* _tmp57_;
- gfloat* _tmp58_;
- gint _tmp58__length1;
- gfloat _tmp59_;
- gfloat* _tmp60_;
- gint _tmp60__length1;
- gfloat _tmp61_;
- RGBTransformation* _tmp62_;
- gfloat* _tmp63_;
- gint _tmp63__length1;
- gfloat _tmp64_;
- gfloat* _tmp65_;
- gint _tmp65__length1;
- gfloat _tmp66_;
- gfloat _tmp67_;
- gfloat* _tmp68_;
- gint _tmp68__length1;
- RGBTransformation* _tmp69_;
- gfloat* _tmp70_;
- gint _tmp70__length1;
- gfloat _tmp71_;
- gfloat* _tmp72_;
- gint _tmp72__length1;
- gfloat _tmp73_;
- RGBTransformation* _tmp74_;
- gfloat* _tmp75_;
- gint _tmp75__length1;
- gfloat _tmp76_;
- gfloat* _tmp77_;
- gint _tmp77__length1;
- gfloat _tmp78_;
- RGBTransformation* _tmp79_;
- gfloat* _tmp80_;
- gint _tmp80__length1;
- gfloat _tmp81_;
- gfloat* _tmp82_;
- gint _tmp82__length1;
- gfloat _tmp83_;
- RGBTransformation* _tmp84_;
- gfloat* _tmp85_;
- gint _tmp85__length1;
- gfloat _tmp86_;
- gfloat* _tmp87_;
- gint _tmp87__length1;
- gfloat _tmp88_;
- gfloat _tmp89_;
- gfloat* _tmp90_;
- gint _tmp90__length1;
- RGBTransformation* _tmp91_;
- gfloat* _tmp92_;
- gint _tmp92__length1;
- gfloat _tmp93_;
- gfloat* _tmp94_;
- gint _tmp94__length1;
- gfloat _tmp95_;
- RGBTransformation* _tmp96_;
- gfloat* _tmp97_;
- gint _tmp97__length1;
- gfloat _tmp98_;
- gfloat* _tmp99_;
- gint _tmp99__length1;
- gfloat _tmp100_;
- RGBTransformation* _tmp101_;
- gfloat* _tmp102_;
- gint _tmp102__length1;
- gfloat _tmp103_;
- gfloat* _tmp104_;
- gint _tmp104__length1;
- gfloat _tmp105_;
- RGBTransformation* _tmp106_;
- gfloat* _tmp107_;
- gint _tmp107__length1;
- gfloat _tmp108_;
- gfloat* _tmp109_;
- gint _tmp109__length1;
- gfloat _tmp110_;
- gfloat _tmp111_;
- gfloat* _tmp112_;
- gint _tmp112__length1;
- RGBTransformation* _tmp113_;
- gfloat* _tmp114_;
- gint _tmp114__length1;
- gfloat _tmp115_;
- gfloat* _tmp116_;
- gint _tmp116__length1;
- gfloat _tmp117_;
- RGBTransformation* _tmp118_;
- gfloat* _tmp119_;
- gint _tmp119__length1;
- gfloat _tmp120_;
- gfloat* _tmp121_;
- gint _tmp121__length1;
- gfloat _tmp122_;
- RGBTransformation* _tmp123_;
- gfloat* _tmp124_;
- gint _tmp124__length1;
- gfloat _tmp125_;
- gfloat* _tmp126_;
- gint _tmp126__length1;
- gfloat _tmp127_;
- RGBTransformation* _tmp128_;
- gfloat* _tmp129_;
- gint _tmp129__length1;
- gfloat _tmp130_;
- gfloat* _tmp131_;
- gint _tmp131__length1;
- gfloat _tmp132_;
- gfloat _tmp133_;
- gfloat* _tmp134_;
- gint _tmp134__length1;
- RGBTransformation* _tmp135_;
- gfloat* _tmp136_;
- gint _tmp136__length1;
- gfloat _tmp137_;
- gfloat* _tmp138_;
- gint _tmp138__length1;
- gfloat _tmp139_;
- RGBTransformation* _tmp140_;
- gfloat* _tmp141_;
- gint _tmp141__length1;
- gfloat _tmp142_;
- gfloat* _tmp143_;
- gint _tmp143__length1;
- gfloat _tmp144_;
- RGBTransformation* _tmp145_;
- gfloat* _tmp146_;
- gint _tmp146__length1;
- gfloat _tmp147_;
- gfloat* _tmp148_;
- gint _tmp148__length1;
- gfloat _tmp149_;
- RGBTransformation* _tmp150_;
- gfloat* _tmp151_;
- gint _tmp151__length1;
- gfloat _tmp152_;
- gfloat* _tmp153_;
- gint _tmp153__length1;
- gfloat _tmp154_;
- gfloat _tmp155_;
- gfloat* _tmp156_;
- gint _tmp156__length1;
- RGBTransformation* _tmp157_;
- gfloat* _tmp158_;
- gint _tmp158__length1;
- gfloat _tmp159_;
- gfloat* _tmp160_;
- gint _tmp160__length1;
- gfloat _tmp161_;
- RGBTransformation* _tmp162_;
- gfloat* _tmp163_;
- gint _tmp163__length1;
- gfloat _tmp164_;
- gfloat* _tmp165_;
- gint _tmp165__length1;
- gfloat _tmp166_;
- RGBTransformation* _tmp167_;
- gfloat* _tmp168_;
- gint _tmp168__length1;
- gfloat _tmp169_;
- gfloat* _tmp170_;
- gint _tmp170__length1;
- gfloat _tmp171_;
- RGBTransformation* _tmp172_;
- gfloat* _tmp173_;
- gint _tmp173__length1;
- gfloat _tmp174_;
- gfloat* _tmp175_;
- gint _tmp175__length1;
- gfloat _tmp176_;
- gfloat _tmp177_;
- gfloat* _tmp178_;
- gint _tmp178__length1;
- RGBTransformation* _tmp179_;
- gfloat* _tmp180_;
- gint _tmp180__length1;
- gfloat _tmp181_;
- gfloat* _tmp182_;
- gint _tmp182__length1;
- gfloat _tmp183_;
- RGBTransformation* _tmp184_;
- gfloat* _tmp185_;
- gint _tmp185__length1;
- gfloat _tmp186_;
- gfloat* _tmp187_;
- gint _tmp187__length1;
- gfloat _tmp188_;
- RGBTransformation* _tmp189_;
- gfloat* _tmp190_;
- gint _tmp190__length1;
- gfloat _tmp191_;
- gfloat* _tmp192_;
- gint _tmp192__length1;
- gfloat _tmp193_;
- RGBTransformation* _tmp194_;
- gfloat* _tmp195_;
- gint _tmp195__length1;
- gfloat _tmp196_;
- gfloat* _tmp197_;
- gint _tmp197__length1;
- gfloat _tmp198_;
- gfloat _tmp199_;
- gfloat* _tmp200_;
- gint _tmp200__length1;
- RGBTransformation* _tmp201_;
- gfloat* _tmp202_;
- gint _tmp202__length1;
- gfloat _tmp203_;
- gfloat* _tmp204_;
- gint _tmp204__length1;
- gfloat _tmp205_;
- RGBTransformation* _tmp206_;
- gfloat* _tmp207_;
- gint _tmp207__length1;
- gfloat _tmp208_;
- gfloat* _tmp209_;
- gint _tmp209__length1;
- gfloat _tmp210_;
- RGBTransformation* _tmp211_;
- gfloat* _tmp212_;
- gint _tmp212__length1;
- gfloat _tmp213_;
- gfloat* _tmp214_;
- gint _tmp214__length1;
- gfloat _tmp215_;
- RGBTransformation* _tmp216_;
- gfloat* _tmp217_;
- gint _tmp217__length1;
- gfloat _tmp218_;
- gfloat* _tmp219_;
- gint _tmp219__length1;
- gfloat _tmp220_;
- gfloat _tmp221_;
- gfloat* _tmp222_;
- gint _tmp222__length1;
- RGBTransformation* _tmp223_;
- gfloat* _tmp224_;
- gint _tmp224__length1;
- gfloat _tmp225_;
- gfloat* _tmp226_;
- gint _tmp226__length1;
- gfloat _tmp227_;
- RGBTransformation* _tmp228_;
- gfloat* _tmp229_;
- gint _tmp229__length1;
- gfloat _tmp230_;
- gfloat* _tmp231_;
- gint _tmp231__length1;
- gfloat _tmp232_;
- RGBTransformation* _tmp233_;
- gfloat* _tmp234_;
- gint _tmp234__length1;
- gfloat _tmp235_;
- gfloat* _tmp236_;
- gint _tmp236__length1;
- gfloat _tmp237_;
- RGBTransformation* _tmp238_;
- gfloat* _tmp239_;
- gint _tmp239__length1;
- gfloat _tmp240_;
- gfloat* _tmp241_;
- gint _tmp241__length1;
- gfloat _tmp242_;
- gfloat _tmp243_;
- gfloat* _tmp244_;
- gint _tmp244__length1;
- RGBTransformation* _tmp245_;
- gfloat* _tmp246_;
- gint _tmp246__length1;
- gfloat _tmp247_;
- gfloat* _tmp248_;
- gint _tmp248__length1;
- gfloat _tmp249_;
- RGBTransformation* _tmp250_;
- gfloat* _tmp251_;
- gint _tmp251__length1;
- gfloat _tmp252_;
- gfloat* _tmp253_;
- gint _tmp253__length1;
- gfloat _tmp254_;
- RGBTransformation* _tmp255_;
- gfloat* _tmp256_;
- gint _tmp256__length1;
- gfloat _tmp257_;
- gfloat* _tmp258_;
- gint _tmp258__length1;
- gfloat _tmp259_;
- RGBTransformation* _tmp260_;
- gfloat* _tmp261_;
- gint _tmp261__length1;
- gfloat _tmp262_;
- gfloat* _tmp263_;
- gint _tmp263__length1;
- gfloat _tmp264_;
- gfloat _tmp265_;
- gfloat* _tmp266_;
- gint _tmp266__length1;
- RGBTransformation* _tmp267_;
- gfloat* _tmp268_;
- gint _tmp268__length1;
- gfloat _tmp269_;
- gfloat* _tmp270_;
- gint _tmp270__length1;
- gfloat _tmp271_;
- RGBTransformation* _tmp272_;
- gfloat* _tmp273_;
- gint _tmp273__length1;
- gfloat _tmp274_;
- gfloat* _tmp275_;
- gint _tmp275__length1;
- gfloat _tmp276_;
- RGBTransformation* _tmp277_;
- gfloat* _tmp278_;
- gint _tmp278__length1;
- gfloat _tmp279_;
- gfloat* _tmp280_;
- gint _tmp280__length1;
- gfloat _tmp281_;
- RGBTransformation* _tmp282_;
- gfloat* _tmp283_;
- gint _tmp283__length1;
- gfloat _tmp284_;
- gfloat* _tmp285_;
- gint _tmp285__length1;
- gfloat _tmp286_;
- gfloat _tmp287_;
- gfloat* _tmp288_;
- gint _tmp288__length1;
- RGBTransformation* _tmp289_;
- gfloat* _tmp290_;
- gint _tmp290__length1;
- gfloat _tmp291_;
- gfloat* _tmp292_;
- gint _tmp292__length1;
- gfloat _tmp293_;
- RGBTransformation* _tmp294_;
- gfloat* _tmp295_;
- gint _tmp295__length1;
- gfloat _tmp296_;
- gfloat* _tmp297_;
- gint _tmp297__length1;
- gfloat _tmp298_;
- RGBTransformation* _tmp299_;
- gfloat* _tmp300_;
- gint _tmp300__length1;
- gfloat _tmp301_;
- gfloat* _tmp302_;
- gint _tmp302__length1;
- gfloat _tmp303_;
- RGBTransformation* _tmp304_;
- gfloat* _tmp305_;
- gint _tmp305__length1;
- gfloat _tmp306_;
- gfloat* _tmp307_;
- gint _tmp307__length1;
- gfloat _tmp308_;
- gfloat _tmp309_;
- gfloat* _tmp310_;
- gint _tmp310__length1;
- RGBTransformation* _tmp311_;
- gfloat* _tmp312_;
- gint _tmp312__length1;
- gfloat _tmp313_;
- gfloat* _tmp314_;
- gint _tmp314__length1;
- gfloat _tmp315_;
- RGBTransformation* _tmp316_;
- gfloat* _tmp317_;
- gint _tmp317__length1;
- gfloat _tmp318_;
- gfloat* _tmp319_;
- gint _tmp319__length1;
- gfloat _tmp320_;
- RGBTransformation* _tmp321_;
- gfloat* _tmp322_;
- gint _tmp322__length1;
- gfloat _tmp323_;
- gfloat* _tmp324_;
- gint _tmp324__length1;
- gfloat _tmp325_;
- RGBTransformation* _tmp326_;
- gfloat* _tmp327_;
- gint _tmp327__length1;
- gfloat _tmp328_;
- gfloat* _tmp329_;
- gint _tmp329__length1;
- gfloat _tmp330_;
- gfloat _tmp331_;
- gfloat* _tmp332_;
- gint _tmp332__length1;
- RGBTransformation* _tmp333_;
- gfloat* _tmp334_;
- gint _tmp334__length1;
- gfloat _tmp335_;
- gfloat* _tmp336_;
- gint _tmp336__length1;
- gfloat _tmp337_;
- RGBTransformation* _tmp338_;
- gfloat* _tmp339_;
- gint _tmp339__length1;
- gfloat _tmp340_;
- gfloat* _tmp341_;
- gint _tmp341__length1;
- gfloat _tmp342_;
- RGBTransformation* _tmp343_;
- gfloat* _tmp344_;
- gint _tmp344__length1;
- gfloat _tmp345_;
- gfloat* _tmp346_;
- gint _tmp346__length1;
- gfloat _tmp347_;
- RGBTransformation* _tmp348_;
- gfloat* _tmp349_;
- gint _tmp349__length1;
- gfloat _tmp350_;
- gfloat* _tmp351_;
- gint _tmp351__length1;
- gfloat _tmp352_;
- gfloat _tmp353_;
- gboolean _tmp363_ = FALSE;
- gboolean _tmp364_;
-#line 340 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation);
-#line 341 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (pixel_transformation_get_composition_mode (other) != COMPOSITION_MODE_RGB_MATRIX) {
-#line 342 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_error ("ColorTransformation.vala:342: %s", "RGBTransformation: compose_with( ): 'other' transformation " "does not support RGB_MATRIX composition mode");
-#line 3684 "ColorTransformation.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _pixel_transformation_ref0 (G_TYPE_CHECK_INSTANCE_CAST (other, TYPE_RGB_TRANSFORMATION, RGBTransformation));
-#line 345 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- transform = _tmp0_;
-#line 347 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = g_new0 (gfloat, 16);
-#line 347 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result_matrix_entries = _tmp1_;
-#line 347 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result_matrix_entries_length1 = 16;
-#line 347 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _result_matrix_entries_size_ = result_matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = result_matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2__length1 = result_matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = transform;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _tmp3_->matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4__length1 = _tmp3_->matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _tmp4_[0];
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = self->matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6__length1 = self->matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = _tmp6_[0];
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = transform;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _tmp8_->matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9__length1 = _tmp8_->matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _tmp9_[1];
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = self->matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11__length1 = self->matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = _tmp11_[4];
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = transform;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = _tmp13_->matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14__length1 = _tmp13_->matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = _tmp14_[2];
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = self->matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16__length1 = self->matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = _tmp16_[8];
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = transform;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = _tmp18_->matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19__length1 = _tmp18_->matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = _tmp19_[3];
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = self->matrix_entries;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21__length1 = self->matrix_entries_length1;
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = _tmp21_[12];
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_[0] = (((_tmp5_ * _tmp7_) + (_tmp10_ * _tmp12_)) + (_tmp15_ * _tmp17_)) + (_tmp20_ * _tmp22_);
-#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = _tmp2_[0];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = result_matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24__length1 = result_matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = transform;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = _tmp25_->matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26__length1 = _tmp25_->matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = _tmp26_[0];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = self->matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28__length1 = self->matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = _tmp28_[1];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = transform;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = _tmp30_->matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31__length1 = _tmp30_->matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = _tmp31_[1];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = self->matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33__length1 = self->matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = _tmp33_[5];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = transform;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = _tmp35_->matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36__length1 = _tmp35_->matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = _tmp36_[2];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = self->matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38__length1 = self->matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = _tmp38_[9];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = transform;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = _tmp40_->matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41__length1 = _tmp40_->matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp42_ = _tmp41_[3];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp43_ = self->matrix_entries;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp43__length1 = self->matrix_entries_length1;
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44_ = _tmp43_[13];
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_[1] = (((_tmp27_ * _tmp29_) + (_tmp32_ * _tmp34_)) + (_tmp37_ * _tmp39_)) + (_tmp42_ * _tmp44_);
-#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp45_ = _tmp24_[1];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46_ = result_matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46__length1 = result_matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp47_ = transform;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp48_ = _tmp47_->matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp48__length1 = _tmp47_->matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp49_ = _tmp48_[0];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50_ = self->matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50__length1 = self->matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp51_ = _tmp50_[2];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp52_ = transform;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53_ = _tmp52_->matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53__length1 = _tmp52_->matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp54_ = _tmp53_[1];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp55_ = self->matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp55__length1 = self->matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp56_ = _tmp55_[6];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp57_ = transform;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp58_ = _tmp57_->matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp58__length1 = _tmp57_->matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp59_ = _tmp58_[2];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp60_ = self->matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp60__length1 = self->matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp61_ = _tmp60_[10];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp62_ = transform;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp63_ = _tmp62_->matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp63__length1 = _tmp62_->matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp64_ = _tmp63_[3];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp65_ = self->matrix_entries;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp65__length1 = self->matrix_entries_length1;
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp66_ = _tmp65_[14];
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46_[2] = (((_tmp49_ * _tmp51_) + (_tmp54_ * _tmp56_)) + (_tmp59_ * _tmp61_)) + (_tmp64_ * _tmp66_);
-#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp67_ = _tmp46_[2];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp68_ = result_matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp68__length1 = result_matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp69_ = transform;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp70_ = _tmp69_->matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp70__length1 = _tmp69_->matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp71_ = _tmp70_[0];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp72_ = self->matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp72__length1 = self->matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp73_ = _tmp72_[3];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp74_ = transform;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp75_ = _tmp74_->matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp75__length1 = _tmp74_->matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp76_ = _tmp75_[1];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp77_ = self->matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp77__length1 = self->matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp78_ = _tmp77_[7];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp79_ = transform;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp80_ = _tmp79_->matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp80__length1 = _tmp79_->matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp81_ = _tmp80_[2];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp82_ = self->matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp82__length1 = self->matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp83_ = _tmp82_[11];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp84_ = transform;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp85_ = _tmp84_->matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp85__length1 = _tmp84_->matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp86_ = _tmp85_[3];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp87_ = self->matrix_entries;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp87__length1 = self->matrix_entries_length1;
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp88_ = _tmp87_[15];
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp68_[3] = (((_tmp71_ * _tmp73_) + (_tmp76_ * _tmp78_)) + (_tmp81_ * _tmp83_)) + (_tmp86_ * _tmp88_);
-#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp89_ = _tmp68_[3];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp90_ = result_matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp90__length1 = result_matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp91_ = transform;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp92_ = _tmp91_->matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp92__length1 = _tmp91_->matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp93_ = _tmp92_[4];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp94_ = self->matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp94__length1 = self->matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp95_ = _tmp94_[0];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp96_ = transform;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp97_ = _tmp96_->matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp97__length1 = _tmp96_->matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp98_ = _tmp97_[5];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp99_ = self->matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp99__length1 = self->matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp100_ = _tmp99_[4];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp101_ = transform;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp102_ = _tmp101_->matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp102__length1 = _tmp101_->matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp103_ = _tmp102_[6];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp104_ = self->matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp104__length1 = self->matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp105_ = _tmp104_[8];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp106_ = transform;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp107_ = _tmp106_->matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp107__length1 = _tmp106_->matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp108_ = _tmp107_[7];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp109_ = self->matrix_entries;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp109__length1 = self->matrix_entries_length1;
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp110_ = _tmp109_[12];
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp90_[4] = (((_tmp93_ * _tmp95_) + (_tmp98_ * _tmp100_)) + (_tmp103_ * _tmp105_)) + (_tmp108_ * _tmp110_);
-#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp111_ = _tmp90_[4];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp112_ = result_matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp112__length1 = result_matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp113_ = transform;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp114_ = _tmp113_->matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp114__length1 = _tmp113_->matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp115_ = _tmp114_[4];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp116_ = self->matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp116__length1 = self->matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp117_ = _tmp116_[1];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp118_ = transform;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp119_ = _tmp118_->matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp119__length1 = _tmp118_->matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp120_ = _tmp119_[5];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp121_ = self->matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp121__length1 = self->matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp122_ = _tmp121_[5];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp123_ = transform;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp124_ = _tmp123_->matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp124__length1 = _tmp123_->matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp125_ = _tmp124_[6];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp126_ = self->matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp126__length1 = self->matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp127_ = _tmp126_[9];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp128_ = transform;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp129_ = _tmp128_->matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp129__length1 = _tmp128_->matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp130_ = _tmp129_[7];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp131_ = self->matrix_entries;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp131__length1 = self->matrix_entries_length1;
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp132_ = _tmp131_[13];
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp112_[5] = (((_tmp115_ * _tmp117_) + (_tmp120_ * _tmp122_)) + (_tmp125_ * _tmp127_)) + (_tmp130_ * _tmp132_);
-#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp133_ = _tmp112_[5];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp134_ = result_matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp134__length1 = result_matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp135_ = transform;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp136_ = _tmp135_->matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp136__length1 = _tmp135_->matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp137_ = _tmp136_[4];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp138_ = self->matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp138__length1 = self->matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp139_ = _tmp138_[2];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp140_ = transform;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp141_ = _tmp140_->matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp141__length1 = _tmp140_->matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp142_ = _tmp141_[5];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp143_ = self->matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp143__length1 = self->matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp144_ = _tmp143_[6];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp145_ = transform;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp146_ = _tmp145_->matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp146__length1 = _tmp145_->matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp147_ = _tmp146_[6];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp148_ = self->matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp148__length1 = self->matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp149_ = _tmp148_[10];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp150_ = transform;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp151_ = _tmp150_->matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp151__length1 = _tmp150_->matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp152_ = _tmp151_[7];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp153_ = self->matrix_entries;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp153__length1 = self->matrix_entries_length1;
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp154_ = _tmp153_[14];
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp134_[6] = (((_tmp137_ * _tmp139_) + (_tmp142_ * _tmp144_)) + (_tmp147_ * _tmp149_)) + (_tmp152_ * _tmp154_);
-#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp155_ = _tmp134_[6];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp156_ = result_matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp156__length1 = result_matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp157_ = transform;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp158_ = _tmp157_->matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp158__length1 = _tmp157_->matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp159_ = _tmp158_[4];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp160_ = self->matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp160__length1 = self->matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp161_ = _tmp160_[3];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp162_ = transform;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp163_ = _tmp162_->matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp163__length1 = _tmp162_->matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp164_ = _tmp163_[5];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp165_ = self->matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp165__length1 = self->matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp166_ = _tmp165_[7];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp167_ = transform;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp168_ = _tmp167_->matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp168__length1 = _tmp167_->matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp169_ = _tmp168_[6];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp170_ = self->matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp170__length1 = self->matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp171_ = _tmp170_[11];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp172_ = transform;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp173_ = _tmp172_->matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp173__length1 = _tmp172_->matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp174_ = _tmp173_[7];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp175_ = self->matrix_entries;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp175__length1 = self->matrix_entries_length1;
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp176_ = _tmp175_[15];
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp156_[7] = (((_tmp159_ * _tmp161_) + (_tmp164_ * _tmp166_)) + (_tmp169_ * _tmp171_)) + (_tmp174_ * _tmp176_);
-#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp177_ = _tmp156_[7];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp178_ = result_matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp178__length1 = result_matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp179_ = transform;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp180_ = _tmp179_->matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp180__length1 = _tmp179_->matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp181_ = _tmp180_[8];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp182_ = self->matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp182__length1 = self->matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp183_ = _tmp182_[0];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp184_ = transform;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp185_ = _tmp184_->matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp185__length1 = _tmp184_->matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp186_ = _tmp185_[9];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp187_ = self->matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp187__length1 = self->matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp188_ = _tmp187_[4];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp189_ = transform;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp190_ = _tmp189_->matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp190__length1 = _tmp189_->matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp191_ = _tmp190_[10];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp192_ = self->matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp192__length1 = self->matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp193_ = _tmp192_[8];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp194_ = transform;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp195_ = _tmp194_->matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp195__length1 = _tmp194_->matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp196_ = _tmp195_[11];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp197_ = self->matrix_entries;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp197__length1 = self->matrix_entries_length1;
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp198_ = _tmp197_[12];
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp178_[8] = (((_tmp181_ * _tmp183_) + (_tmp186_ * _tmp188_)) + (_tmp191_ * _tmp193_)) + (_tmp196_ * _tmp198_);
-#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp199_ = _tmp178_[8];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp200_ = result_matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp200__length1 = result_matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp201_ = transform;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp202_ = _tmp201_->matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp202__length1 = _tmp201_->matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp203_ = _tmp202_[8];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp204_ = self->matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp204__length1 = self->matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp205_ = _tmp204_[1];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp206_ = transform;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp207_ = _tmp206_->matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp207__length1 = _tmp206_->matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp208_ = _tmp207_[9];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp209_ = self->matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp209__length1 = self->matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp210_ = _tmp209_[5];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp211_ = transform;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp212_ = _tmp211_->matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp212__length1 = _tmp211_->matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp213_ = _tmp212_[10];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp214_ = self->matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp214__length1 = self->matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp215_ = _tmp214_[9];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp216_ = transform;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp217_ = _tmp216_->matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp217__length1 = _tmp216_->matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp218_ = _tmp217_[11];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp219_ = self->matrix_entries;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp219__length1 = self->matrix_entries_length1;
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp220_ = _tmp219_[13];
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp200_[9] = (((_tmp203_ * _tmp205_) + (_tmp208_ * _tmp210_)) + (_tmp213_ * _tmp215_)) + (_tmp218_ * _tmp220_);
-#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp221_ = _tmp200_[9];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp222_ = result_matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp222__length1 = result_matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp223_ = transform;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp224_ = _tmp223_->matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp224__length1 = _tmp223_->matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp225_ = _tmp224_[8];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp226_ = self->matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp226__length1 = self->matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp227_ = _tmp226_[2];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp228_ = transform;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp229_ = _tmp228_->matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp229__length1 = _tmp228_->matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp230_ = _tmp229_[9];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp231_ = self->matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp231__length1 = self->matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp232_ = _tmp231_[6];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp233_ = transform;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp234_ = _tmp233_->matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp234__length1 = _tmp233_->matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp235_ = _tmp234_[10];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp236_ = self->matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp236__length1 = self->matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp237_ = _tmp236_[10];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp238_ = transform;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp239_ = _tmp238_->matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp239__length1 = _tmp238_->matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp240_ = _tmp239_[11];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp241_ = self->matrix_entries;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp241__length1 = self->matrix_entries_length1;
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp242_ = _tmp241_[14];
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp222_[10] = (((_tmp225_ * _tmp227_) + (_tmp230_ * _tmp232_)) + (_tmp235_ * _tmp237_)) + (_tmp240_ * _tmp242_);
-#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp243_ = _tmp222_[10];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp244_ = result_matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp244__length1 = result_matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp245_ = transform;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp246_ = _tmp245_->matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp246__length1 = _tmp245_->matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp247_ = _tmp246_[8];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp248_ = self->matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp248__length1 = self->matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp249_ = _tmp248_[3];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp250_ = transform;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp251_ = _tmp250_->matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp251__length1 = _tmp250_->matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp252_ = _tmp251_[9];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp253_ = self->matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp253__length1 = self->matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp254_ = _tmp253_[7];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp255_ = transform;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp256_ = _tmp255_->matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp256__length1 = _tmp255_->matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp257_ = _tmp256_[10];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp258_ = self->matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp258__length1 = self->matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp259_ = _tmp258_[11];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp260_ = transform;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp261_ = _tmp260_->matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp261__length1 = _tmp260_->matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp262_ = _tmp261_[11];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp263_ = self->matrix_entries;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp263__length1 = self->matrix_entries_length1;
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp264_ = _tmp263_[15];
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp244_[11] = (((_tmp247_ * _tmp249_) + (_tmp252_ * _tmp254_)) + (_tmp257_ * _tmp259_)) + (_tmp262_ * _tmp264_);
-#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp265_ = _tmp244_[11];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp266_ = result_matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp266__length1 = result_matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp267_ = transform;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp268_ = _tmp267_->matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp268__length1 = _tmp267_->matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp269_ = _tmp268_[12];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp270_ = self->matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp270__length1 = self->matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp271_ = _tmp270_[0];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp272_ = transform;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp273_ = _tmp272_->matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp273__length1 = _tmp272_->matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp274_ = _tmp273_[13];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp275_ = self->matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp275__length1 = self->matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp276_ = _tmp275_[4];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp277_ = transform;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp278_ = _tmp277_->matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp278__length1 = _tmp277_->matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp279_ = _tmp278_[14];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp280_ = self->matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp280__length1 = self->matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp281_ = _tmp280_[8];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp282_ = transform;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp283_ = _tmp282_->matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp283__length1 = _tmp282_->matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp284_ = _tmp283_[15];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp285_ = self->matrix_entries;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp285__length1 = self->matrix_entries_length1;
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp286_ = _tmp285_[12];
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp266_[12] = (((_tmp269_ * _tmp271_) + (_tmp274_ * _tmp276_)) + (_tmp279_ * _tmp281_)) + (_tmp284_ * _tmp286_);
-#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp287_ = _tmp266_[12];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp288_ = result_matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp288__length1 = result_matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp289_ = transform;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp290_ = _tmp289_->matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp290__length1 = _tmp289_->matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp291_ = _tmp290_[12];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp292_ = self->matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp292__length1 = self->matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp293_ = _tmp292_[1];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp294_ = transform;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp295_ = _tmp294_->matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp295__length1 = _tmp294_->matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp296_ = _tmp295_[13];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp297_ = self->matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp297__length1 = self->matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp298_ = _tmp297_[5];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp299_ = transform;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp300_ = _tmp299_->matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp300__length1 = _tmp299_->matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp301_ = _tmp300_[14];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp302_ = self->matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp302__length1 = self->matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp303_ = _tmp302_[9];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp304_ = transform;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp305_ = _tmp304_->matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp305__length1 = _tmp304_->matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp306_ = _tmp305_[15];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp307_ = self->matrix_entries;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp307__length1 = self->matrix_entries_length1;
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp308_ = _tmp307_[13];
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp288_[13] = (((_tmp291_ * _tmp293_) + (_tmp296_ * _tmp298_)) + (_tmp301_ * _tmp303_)) + (_tmp306_ * _tmp308_);
-#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp309_ = _tmp288_[13];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp310_ = result_matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp310__length1 = result_matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp311_ = transform;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp312_ = _tmp311_->matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp312__length1 = _tmp311_->matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp313_ = _tmp312_[12];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp314_ = self->matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp314__length1 = self->matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp315_ = _tmp314_[2];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp316_ = transform;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp317_ = _tmp316_->matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp317__length1 = _tmp316_->matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp318_ = _tmp317_[13];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp319_ = self->matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp319__length1 = self->matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp320_ = _tmp319_[6];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp321_ = transform;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp322_ = _tmp321_->matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp322__length1 = _tmp321_->matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp323_ = _tmp322_[14];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp324_ = self->matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp324__length1 = self->matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp325_ = _tmp324_[10];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp326_ = transform;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp327_ = _tmp326_->matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp327__length1 = _tmp326_->matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp328_ = _tmp327_[15];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp329_ = self->matrix_entries;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp329__length1 = self->matrix_entries_length1;
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp330_ = _tmp329_[14];
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp310_[14] = (((_tmp313_ * _tmp315_) + (_tmp318_ * _tmp320_)) + (_tmp323_ * _tmp325_)) + (_tmp328_ * _tmp330_);
-#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp331_ = _tmp310_[14];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp332_ = result_matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp332__length1 = result_matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp333_ = transform;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp334_ = _tmp333_->matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp334__length1 = _tmp333_->matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp335_ = _tmp334_[12];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp336_ = self->matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp336__length1 = self->matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp337_ = _tmp336_[3];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp338_ = transform;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp339_ = _tmp338_->matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp339__length1 = _tmp338_->matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp340_ = _tmp339_[13];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp341_ = self->matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp341__length1 = self->matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp342_ = _tmp341_[7];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp343_ = transform;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp344_ = _tmp343_->matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp344__length1 = _tmp343_->matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp345_ = _tmp344_[14];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp346_ = self->matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp346__length1 = self->matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp347_ = _tmp346_[11];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp348_ = transform;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp349_ = _tmp348_->matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp349__length1 = _tmp348_->matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp350_ = _tmp349_[15];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp351_ = self->matrix_entries;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp351__length1 = self->matrix_entries_length1;
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp352_ = _tmp351_[15];
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp332_[15] = (((_tmp335_ * _tmp337_) + (_tmp340_ * _tmp342_)) + (_tmp345_ * _tmp347_)) + (_tmp350_ * _tmp352_);
-#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp353_ = _tmp332_[15];
-#line 4722 "ColorTransformation.c"
- {
- gint i = 0;
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 4727 "ColorTransformation.c"
- {
- gboolean _tmp354_ = FALSE;
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp354_ = TRUE;
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 4734 "ColorTransformation.c"
- gint _tmp356_;
- gfloat* _tmp357_;
- gint _tmp357__length1;
- gint _tmp358_;
- gfloat* _tmp359_;
- gint _tmp359__length1;
- gint _tmp360_;
- gfloat _tmp361_;
- gfloat _tmp362_;
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp354_) {
-#line 4746 "ColorTransformation.c"
- gint _tmp355_;
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp355_ = i;
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp355_ + 1;
-#line 4752 "ColorTransformation.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp354_ = FALSE;
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp356_ = i;
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp356_ < RGB_TRANSFORMATION_MATRIX_SIZE)) {
-#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 4762 "ColorTransformation.c"
- }
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp357_ = self->matrix_entries;
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp357__length1 = self->matrix_entries_length1;
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp358_ = i;
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp359_ = result_matrix_entries;
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp359__length1 = result_matrix_entries_length1;
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp360_ = i;
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp361_ = _tmp359_[_tmp360_];
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp357_[_tmp358_] = _tmp361_;
-#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp362_ = _tmp357_[_tmp358_];
-#line 4782 "ColorTransformation.c"
- }
- }
- }
-#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp364_ = self->identity;
-#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp364_) {
-#line 4790 "ColorTransformation.c"
- RGBTransformation* _tmp365_;
- gboolean _tmp366_;
-#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp365_ = transform;
-#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp366_ = _tmp365_->identity;
-#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp363_ = _tmp366_;
-#line 4799 "ColorTransformation.c"
- } else {
-#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp363_ = FALSE;
-#line 4803 "ColorTransformation.c"
- }
-#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->identity = _tmp363_;
-#line 340 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result_matrix_entries = (g_free (result_matrix_entries), NULL);
-#line 340 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (transform);
-#line 4811 "ColorTransformation.c"
-}
-
-
-static void
-rgb_transformation_real_transform_pixel_hsv (PixelTransformation* base,
- HSVAnalyticPixel* p,
- HSVAnalyticPixel* result)
-{
- RGBTransformation * self;
- RGBAnalyticPixel _tmp0_ = {0};
- RGBAnalyticPixel _tmp1_ = {0};
- HSVAnalyticPixel _tmp2_ = {0};
-#line 455 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation);
-#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hsv_analytic_pixel_to_rgb (p, &_tmp0_);
-#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_transform_pixel_rgb (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), &_tmp0_, &_tmp1_);
-#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_analytic_pixel_to_hsv (&_tmp1_, &_tmp2_);
-#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *result = _tmp2_;
-#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return;
-#line 4836 "ColorTransformation.c"
-}
-
-
-static gboolean
-rgb_transformation_real_is_identity (PixelTransformation* base)
-{
- RGBTransformation * self;
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 461 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation);
-#line 462 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->identity;
-#line 462 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 462 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 4854 "ColorTransformation.c"
-}
-
-
-static PixelTransformation*
-rgb_transformation_real_copy (PixelTransformation* base)
-{
- RGBTransformation * self;
- PixelTransformation* result = NULL;
- RGBTransformation* _result_ = NULL;
- RGBTransformation* _tmp0_;
-#line 465 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation);
-#line 466 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = rgb_transformation_new (pixel_transformation_get_transformation_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)));
-#line 466 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _result_ = _tmp0_;
-#line 4871 "ColorTransformation.c"
- {
- gint i = 0;
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 4876 "ColorTransformation.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = TRUE;
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 4883 "ColorTransformation.c"
- gint _tmp3_;
- RGBTransformation* _tmp4_;
- gfloat* _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- gfloat* _tmp7_;
- gint _tmp7__length1;
- gint _tmp8_;
- gfloat _tmp9_;
- gfloat _tmp10_;
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp1_) {
-#line 4896 "ColorTransformation.c"
- gint _tmp2_;
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = i;
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp2_ + 1;
-#line 4902 "ColorTransformation.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = FALSE;
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = i;
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp3_ < RGB_TRANSFORMATION_MATRIX_SIZE)) {
-#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 4912 "ColorTransformation.c"
- }
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _result_;
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _tmp4_->matrix_entries;
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5__length1 = _tmp4_->matrix_entries_length1;
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = i;
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = self->matrix_entries;
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7__length1 = self->matrix_entries_length1;
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = i;
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _tmp7_[_tmp8_];
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_[_tmp6_] = _tmp9_;
-#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _tmp5_[_tmp6_];
-#line 4934 "ColorTransformation.c"
- }
- }
- }
-#line 472 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_result_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation);
-#line 472 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 4942 "ColorTransformation.c"
-}
-
-
-static void
-rgb_transformation_class_init (RGBTransformationClass * klass)
-{
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = rgb_transformation_finalize;
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->get_composition_mode = (CompositionMode (*) (PixelTransformation *)) rgb_transformation_real_get_composition_mode;
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->compose_with = (void (*) (PixelTransformation *, PixelTransformation*)) rgb_transformation_real_compose_with;
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->transform_pixel_hsv = (void (*) (PixelTransformation *, HSVAnalyticPixel*, HSVAnalyticPixel*)) rgb_transformation_real_transform_pixel_hsv;
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->transform_pixel_rgb = (void (*) (PixelTransformation *, RGBAnalyticPixel*, RGBAnalyticPixel*)) rgb_transformation_real_transform_pixel_rgb;
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) rgb_transformation_real_is_identity;
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) rgb_transformation_real_copy;
-#line 4965 "ColorTransformation.c"
-}
-
-
-static void
-rgb_transformation_instance_init (RGBTransformation * self)
-{
-#line 320 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->identity = TRUE;
-#line 4974 "ColorTransformation.c"
-}
-
-
-static void
-rgb_transformation_finalize (PixelTransformation * obj)
-{
- RGBTransformation * self;
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RGB_TRANSFORMATION, RGBTransformation);
-#line 316 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->matrix_entries = (g_free (self->matrix_entries), NULL);
-#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (rgb_transformation_parent_class)->finalize (obj);
-#line 4988 "ColorTransformation.c"
-}
-
-
-GType
-rgb_transformation_get_type (void)
-{
- static volatile gsize rgb_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&rgb_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RGBTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rgb_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RGBTransformation), 0, (GInstanceInitFunc) rgb_transformation_instance_init, NULL };
- GType rgb_transformation_type_id;
- rgb_transformation_type_id = g_type_register_static (TYPE_PIXEL_TRANSFORMATION, "RGBTransformation", &g_define_type_info, 0);
- g_once_init_leave (&rgb_transformation_type_id__volatile, rgb_transformation_type_id);
- }
- return rgb_transformation_type_id__volatile;
-}
-
-
-HSVTransformation*
-hsv_transformation_construct (GType object_type,
- PixelTransformationType type)
-{
- HSVTransformation* self = NULL;
-#line 480 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (HSVTransformation*) pixel_transformation_construct (object_type, type, PIXEL_FORMAT_HSV);
-#line 479 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 5015 "ColorTransformation.c"
-}
-
-
-static CompositionMode
-hsv_transformation_real_get_composition_mode (PixelTransformation* base)
-{
- HSVTransformation * self;
- CompositionMode result = 0;
-#line 483 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HSV_TRANSFORMATION, HSVTransformation);
-#line 484 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = COMPOSITION_MODE_HSV_LOOKUP;
-#line 484 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 5030 "ColorTransformation.c"
-}
-
-
-static void
-hsv_transformation_real_transform_pixel_rgb (PixelTransformation* base,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result)
-{
- HSVTransformation * self;
- HSVAnalyticPixel _tmp0_ = {0};
- HSVAnalyticPixel _tmp1_ = {0};
- RGBAnalyticPixel _tmp2_ = {0};
-#line 487 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HSV_TRANSFORMATION, HSVTransformation);
-#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_analytic_pixel_to_hsv (p, &_tmp0_);
-#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_transform_pixel_hsv (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), &_tmp0_, &_tmp1_);
-#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hsv_analytic_pixel_to_rgb (&_tmp1_, &_tmp2_);
-#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *result = _tmp2_;
-#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return;
-#line 5055 "ColorTransformation.c"
-}
-
-
-static void
-hsv_transformation_real_compose_with (PixelTransformation* base,
- PixelTransformation* other)
-{
- HSVTransformation * self;
- HSVTransformation* hsv_trans = NULL;
- HSVTransformation* _tmp0_;
-#line 491 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HSV_TRANSFORMATION, HSVTransformation);
-#line 492 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (pixel_transformation_get_composition_mode (other) != COMPOSITION_MODE_HSV_LOOKUP) {
-#line 493 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_error ("ColorTransformation.vala:493: HSVTransformation: compose_with(): wrong");
-#line 5072 "ColorTransformation.c"
- }
-#line 496 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _pixel_transformation_ref0 (G_TYPE_CHECK_INSTANCE_CAST (other, TYPE_HSV_TRANSFORMATION, HSVTransformation));
-#line 496 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hsv_trans = _tmp0_;
-#line 5078 "ColorTransformation.c"
- {
- gint i = 0;
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 5083 "ColorTransformation.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = TRUE;
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 5090 "ColorTransformation.c"
- gint _tmp3_;
- gint idx = 0;
- gint _tmp4_;
- gfloat _tmp5_;
- gint _tmp6_;
- HSVTransformation* _tmp7_;
- gint _tmp8_;
- gfloat _tmp9_;
- gfloat _tmp10_;
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp1_) {
-#line 5102 "ColorTransformation.c"
- gint _tmp2_;
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = i;
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp2_ + 1;
-#line 5108 "ColorTransformation.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = FALSE;
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = i;
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp3_ < 256)) {
-#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 5118 "ColorTransformation.c"
- }
-#line 501 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = i;
-#line 501 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = self->remap_table[_tmp4_];
-#line 501 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- idx = (gint) (_tmp5_ * 255.0f);
-#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = i;
-#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = hsv_trans;
-#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = idx;
-#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _tmp7_->remap_table[_tmp8_];
-#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->remap_table[_tmp6_] = CLAMP (_tmp9_, 0.0f, 1.0f);
-#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = self->remap_table[_tmp6_];
-#line 5138 "ColorTransformation.c"
- }
- }
- }
-#line 491 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (hsv_trans);
-#line 5144 "ColorTransformation.c"
-}
-
-
-static void
-hsv_transformation_real_transform_pixel_hsv (PixelTransformation* base,
- HSVAnalyticPixel* pixel,
- HSVAnalyticPixel* result)
-{
- HSVTransformation * self;
- gint remap_index = 0;
- HSVAnalyticPixel _tmp0_;
- gfloat _tmp1_;
- HSVAnalyticPixel _result_ = {0};
- HSVAnalyticPixel _tmp2_;
- gfloat _tmp3_;
- HSVAnalyticPixel _tmp4_;
- gfloat _tmp5_;
-#line 506 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HSV_TRANSFORMATION, HSVTransformation);
-#line 507 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = *pixel;
-#line 507 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _tmp0_.light_value;
-#line 507 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- remap_index = (gint) (_tmp1_ * 255.0f);
-#line 509 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = *pixel;
-#line 509 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _result_ = _tmp2_;
-#line 510 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = self->remap_table[remap_index];
-#line 510 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _result_.light_value = _tmp3_;
-#line 512 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _result_;
-#line 512 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _tmp4_.light_value;
-#line 512 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _result_.light_value = CLAMP (_tmp5_, 0.0f, 1.0f);
-#line 514 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *result = _result_;
-#line 514 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return;
-#line 5188 "ColorTransformation.c"
-}
-
-
-static void
-hsv_transformation_class_init (HSVTransformationClass * klass)
-{
-#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hsv_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = hsv_transformation_finalize;
-#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->get_composition_mode = (CompositionMode (*) (PixelTransformation *)) hsv_transformation_real_get_composition_mode;
-#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->transform_pixel_rgb = (void (*) (PixelTransformation *, RGBAnalyticPixel*, RGBAnalyticPixel*)) hsv_transformation_real_transform_pixel_rgb;
-#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->compose_with = (void (*) (PixelTransformation *, PixelTransformation*)) hsv_transformation_real_compose_with;
-#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->transform_pixel_hsv = (void (*) (PixelTransformation *, HSVAnalyticPixel*, HSVAnalyticPixel*)) hsv_transformation_real_transform_pixel_hsv;
-#line 5207 "ColorTransformation.c"
-}
-
-
-static void
-hsv_transformation_instance_init (HSVTransformation * self)
-{
-}
-
-
-static void
-hsv_transformation_finalize (PixelTransformation * obj)
-{
- HSVTransformation * self;
-#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HSV_TRANSFORMATION, HSVTransformation);
-#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (hsv_transformation_parent_class)->finalize (obj);
-#line 5225 "ColorTransformation.c"
-}
-
-
-GType
-hsv_transformation_get_type (void)
-{
- static volatile gsize hsv_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&hsv_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (HSVTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hsv_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HSVTransformation), 0, (GInstanceInitFunc) hsv_transformation_instance_init, NULL };
- GType hsv_transformation_type_id;
- hsv_transformation_type_id = g_type_register_static (TYPE_PIXEL_TRANSFORMATION, "HSVTransformation", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&hsv_transformation_type_id__volatile, hsv_transformation_type_id);
- }
- return hsv_transformation_type_id__volatile;
-}
-
-
-TintTransformation*
-tint_transformation_construct (GType object_type,
- gfloat client_param)
-{
- TintTransformation* self = NULL;
- gfloat _tmp0_;
-#line 527 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (TintTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TINT);
-#line 529 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->parameter = CLAMP (client_param, TINT_TRANSFORMATION_MIN_PARAMETER, TINT_TRANSFORMATION_MAX_PARAMETER);
-#line 531 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 531 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp0_ != 0.0f) {
-#line 5257 "ColorTransformation.c"
- gfloat adjusted_param = 0.0F;
- gfloat _tmp1_;
- gfloat _tmp2_;
- gfloat* _tmp3_;
- gint _tmp3__length1;
- gfloat _tmp4_;
- gfloat _tmp5_;
- gfloat* _tmp6_;
- gint _tmp6__length1;
- gfloat _tmp7_;
- gfloat _tmp8_;
- gfloat* _tmp9_;
- gint _tmp9__length1;
- gfloat _tmp10_;
- gfloat _tmp11_;
-#line 532 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->parameter;
-#line 532 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjusted_param = _tmp1_ / TINT_TRANSFORMATION_MAX_PARAMETER;
-#line 533 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = adjusted_param;
-#line 533 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjusted_param = _tmp2_ * TINT_TRANSFORMATION_INTENSITY_FACTOR;
-#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = adjusted_param;
-#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_[11] -= _tmp4_ / 2;
-#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _tmp3_[11];
-#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = adjusted_param;
-#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_[7] += _tmp7_;
-#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = _tmp6_[7];
-#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = adjusted_param;
-#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_[3] -= _tmp10_ / 2;
-#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = _tmp9_[3];
-#line 539 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE;
-#line 5313 "ColorTransformation.c"
- }
-#line 526 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 5317 "ColorTransformation.c"
-}
-
-
-TintTransformation*
-tint_transformation_new (gfloat client_param)
-{
-#line 526 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return tint_transformation_construct (TYPE_TINT_TRANSFORMATION, client_param);
-#line 5326 "ColorTransformation.c"
-}
-
-
-gfloat
-tint_transformation_get_parameter (TintTransformation* self)
-{
- gfloat result = 0.0F;
- gfloat _tmp0_;
-#line 544 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 544 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 544 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 5341 "ColorTransformation.c"
-}
-
-
-static void
-tint_transformation_class_init (TintTransformationClass * klass)
-{
-#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- tint_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = tint_transformation_finalize;
-#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (TintTransformationPrivate));
-#line 5354 "ColorTransformation.c"
-}
-
-
-static void
-tint_transformation_instance_init (TintTransformation * self)
-{
-#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = TINT_TRANSFORMATION_GET_PRIVATE (self);
-#line 5363 "ColorTransformation.c"
-}
-
-
-static void
-tint_transformation_finalize (PixelTransformation * obj)
-{
- TintTransformation * self;
-#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TINT_TRANSFORMATION, TintTransformation);
-#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (tint_transformation_parent_class)->finalize (obj);
-#line 5375 "ColorTransformation.c"
-}
-
-
-GType
-tint_transformation_get_type (void)
-{
- static volatile gsize tint_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&tint_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TintTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tint_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TintTransformation), 0, (GInstanceInitFunc) tint_transformation_instance_init, NULL };
- GType tint_transformation_type_id;
- tint_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "TintTransformation", &g_define_type_info, 0);
- g_once_init_leave (&tint_transformation_type_id__volatile, tint_transformation_type_id);
- }
- return tint_transformation_type_id__volatile;
-}
-
-
-TemperatureTransformation*
-temperature_transformation_construct (GType object_type,
- gfloat client_parameter)
-{
- TemperatureTransformation* self = NULL;
- gfloat _tmp0_;
-#line 556 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (TemperatureTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TEMPERATURE);
-#line 558 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->parameter = CLAMP (client_parameter, TEMPERATURE_TRANSFORMATION_MIN_PARAMETER, TEMPERATURE_TRANSFORMATION_MAX_PARAMETER);
-#line 560 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 560 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp0_ != 0.0f) {
-#line 5407 "ColorTransformation.c"
- gfloat adjusted_param = 0.0F;
- gfloat _tmp1_;
- gfloat _tmp2_;
- gfloat* _tmp3_;
- gint _tmp3__length1;
- gfloat _tmp4_;
- gfloat _tmp5_;
- gfloat* _tmp6_;
- gint _tmp6__length1;
- gfloat _tmp7_;
- gfloat _tmp8_;
- gfloat* _tmp9_;
- gint _tmp9__length1;
- gfloat _tmp10_;
- gfloat _tmp11_;
-#line 561 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->parameter;
-#line 561 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjusted_param = _tmp1_ / TEMPERATURE_TRANSFORMATION_MAX_PARAMETER;
-#line 562 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = adjusted_param;
-#line 562 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjusted_param = _tmp2_ * TEMPERATURE_TRANSFORMATION_INTENSITY_FACTOR;
-#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = adjusted_param;
-#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_[11] -= _tmp4_;
-#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _tmp3_[11];
-#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = adjusted_param;
-#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_[7] += _tmp7_ / 2;
-#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = _tmp6_[7];
-#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = adjusted_param;
-#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_[3] += _tmp10_ / 2;
-#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = _tmp9_[3];
-#line 568 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE;
-#line 5463 "ColorTransformation.c"
- }
-#line 555 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 5467 "ColorTransformation.c"
-}
-
-
-TemperatureTransformation*
-temperature_transformation_new (gfloat client_parameter)
-{
-#line 555 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return temperature_transformation_construct (TYPE_TEMPERATURE_TRANSFORMATION, client_parameter);
-#line 5476 "ColorTransformation.c"
-}
-
-
-gfloat
-temperature_transformation_get_parameter (TemperatureTransformation* self)
-{
- gfloat result = 0.0F;
- gfloat _tmp0_;
-#line 573 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 573 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 573 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 5491 "ColorTransformation.c"
-}
-
-
-static void
-temperature_transformation_class_init (TemperatureTransformationClass * klass)
-{
-#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temperature_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = temperature_transformation_finalize;
-#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (TemperatureTransformationPrivate));
-#line 5504 "ColorTransformation.c"
-}
-
-
-static void
-temperature_transformation_instance_init (TemperatureTransformation * self)
-{
-#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = TEMPERATURE_TRANSFORMATION_GET_PRIVATE (self);
-#line 5513 "ColorTransformation.c"
-}
-
-
-static void
-temperature_transformation_finalize (PixelTransformation * obj)
-{
- TemperatureTransformation * self;
-#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation);
-#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (temperature_transformation_parent_class)->finalize (obj);
-#line 5525 "ColorTransformation.c"
-}
-
-
-GType
-temperature_transformation_get_type (void)
-{
- static volatile gsize temperature_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&temperature_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TemperatureTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) temperature_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TemperatureTransformation), 0, (GInstanceInitFunc) temperature_transformation_instance_init, NULL };
- GType temperature_transformation_type_id;
- temperature_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "TemperatureTransformation", &g_define_type_info, 0);
- g_once_init_leave (&temperature_transformation_type_id__volatile, temperature_transformation_type_id);
- }
- return temperature_transformation_type_id__volatile;
-}
-
-
-SaturationTransformation*
-saturation_transformation_construct (GType object_type,
- gfloat client_parameter)
-{
- SaturationTransformation* self = NULL;
- gfloat _tmp0_;
-#line 584 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (SaturationTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_SATURATION);
-#line 586 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->parameter = CLAMP (client_parameter, SATURATION_TRANSFORMATION_MIN_PARAMETER, SATURATION_TRANSFORMATION_MAX_PARAMETER);
-#line 588 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 588 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp0_ != 0.0f) {
-#line 5557 "ColorTransformation.c"
- gfloat adjusted_param = 0.0F;
- gfloat _tmp1_;
- gfloat _tmp2_;
- gfloat one_third = 0.0F;
- gfloat* _tmp3_;
- gint _tmp3__length1;
- gfloat _tmp4_;
- gfloat _tmp5_;
- gfloat _tmp6_;
- gfloat _tmp7_;
- gfloat* _tmp8_;
- gint _tmp8__length1;
- gfloat _tmp9_;
- gfloat _tmp10_;
- gfloat _tmp11_;
- gfloat* _tmp12_;
- gint _tmp12__length1;
- gfloat _tmp13_;
- gfloat _tmp14_;
- gfloat _tmp15_;
- gfloat* _tmp16_;
- gint _tmp16__length1;
- gfloat _tmp17_;
- gfloat _tmp18_;
- gfloat _tmp19_;
- gfloat* _tmp20_;
- gint _tmp20__length1;
- gfloat _tmp21_;
- gfloat _tmp22_;
- gfloat _tmp23_;
- gfloat _tmp24_;
- gfloat* _tmp25_;
- gint _tmp25__length1;
- gfloat _tmp26_;
- gfloat _tmp27_;
- gfloat _tmp28_;
- gfloat* _tmp29_;
- gint _tmp29__length1;
- gfloat _tmp30_;
- gfloat _tmp31_;
- gfloat _tmp32_;
- gfloat* _tmp33_;
- gint _tmp33__length1;
- gfloat _tmp34_;
- gfloat _tmp35_;
- gfloat _tmp36_;
- gfloat* _tmp37_;
- gint _tmp37__length1;
- gfloat _tmp38_;
- gfloat _tmp39_;
- gfloat _tmp40_;
- gfloat _tmp41_;
-#line 589 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->parameter;
-#line 589 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjusted_param = _tmp1_ / SATURATION_TRANSFORMATION_MAX_PARAMETER;
-#line 590 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = adjusted_param;
-#line 590 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjusted_param = _tmp2_ + 1.0f;
-#line 592 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- one_third = 0.3333333f;
-#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = adjusted_param;
-#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = one_third;
-#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = adjusted_param;
-#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_[0] = ((1.0f - _tmp4_) * _tmp5_) + _tmp6_;
-#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = _tmp3_[0];
-#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = adjusted_param;
-#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = one_third;
-#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_[1] = (1.0f - _tmp9_) * _tmp10_;
-#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = _tmp8_[1];
-#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = adjusted_param;
-#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = one_third;
-#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_[2] = (1.0f - _tmp13_) * _tmp14_;
-#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = _tmp12_[2];
-#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = adjusted_param;
-#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = one_third;
-#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_[4] = (1.0f - _tmp17_) * _tmp18_;
-#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = _tmp16_[4];
-#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = adjusted_param;
-#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = one_third;
-#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = adjusted_param;
-#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_[5] = ((1.0f - _tmp21_) * _tmp22_) + _tmp23_;
-#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = _tmp20_[5];
-#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = adjusted_param;
-#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = one_third;
-#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_[6] = (1.0f - _tmp26_) * _tmp27_;
-#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = _tmp25_[6];
-#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = adjusted_param;
-#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = one_third;
-#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_[8] = (1.0f - _tmp30_) * _tmp31_;
-#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = _tmp29_[8];
-#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = adjusted_param;
-#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = one_third;
-#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_[9] = (1.0f - _tmp34_) * _tmp35_;
-#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = _tmp33_[9];
-#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = adjusted_param;
-#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = one_third;
-#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = adjusted_param;
-#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_[10] = ((1.0f - _tmp38_) * _tmp39_) + _tmp40_;
-#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = _tmp37_[10];
-#line 609 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE;
-#line 5736 "ColorTransformation.c"
- }
-#line 583 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 5740 "ColorTransformation.c"
-}
-
-
-SaturationTransformation*
-saturation_transformation_new (gfloat client_parameter)
-{
-#line 583 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return saturation_transformation_construct (TYPE_SATURATION_TRANSFORMATION, client_parameter);
-#line 5749 "ColorTransformation.c"
-}
-
-
-gfloat
-saturation_transformation_get_parameter (SaturationTransformation* self)
-{
- gfloat result = 0.0F;
- gfloat _tmp0_;
-#line 614 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 614 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 614 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 5764 "ColorTransformation.c"
-}
-
-
-static void
-saturation_transformation_class_init (SaturationTransformationClass * klass)
-{
-#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- saturation_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = saturation_transformation_finalize;
-#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (SaturationTransformationPrivate));
-#line 5777 "ColorTransformation.c"
-}
-
-
-static void
-saturation_transformation_instance_init (SaturationTransformation * self)
-{
-#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = SATURATION_TRANSFORMATION_GET_PRIVATE (self);
-#line 5786 "ColorTransformation.c"
-}
-
-
-static void
-saturation_transformation_finalize (PixelTransformation * obj)
-{
- SaturationTransformation * self;
-#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SATURATION_TRANSFORMATION, SaturationTransformation);
-#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (saturation_transformation_parent_class)->finalize (obj);
-#line 5798 "ColorTransformation.c"
-}
-
-
-GType
-saturation_transformation_get_type (void)
-{
- static volatile gsize saturation_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&saturation_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SaturationTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saturation_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SaturationTransformation), 0, (GInstanceInitFunc) saturation_transformation_instance_init, NULL };
- GType saturation_transformation_type_id;
- saturation_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "SaturationTransformation", &g_define_type_info, 0);
- g_once_init_leave (&saturation_transformation_type_id__volatile, saturation_transformation_type_id);
- }
- return saturation_transformation_type_id__volatile;
-}
-
-
-ExposureTransformation*
-exposure_transformation_construct (GType object_type,
- gfloat client_parameter)
-{
- ExposureTransformation* self = NULL;
- gfloat _tmp0_;
-#line 625 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (ExposureTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_EXPOSURE);
-#line 627 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->parameter = CLAMP (client_parameter, EXPOSURE_TRANSFORMATION_MIN_PARAMETER, EXPOSURE_TRANSFORMATION_MAX_PARAMETER);
-#line 629 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 629 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp0_ != 0.0f) {
-#line 5830 "ColorTransformation.c"
- gfloat adjusted_param = 0.0F;
- gfloat _tmp1_;
- gfloat* _tmp2_;
- gint _tmp2__length1;
- gfloat _tmp3_;
- gfloat _tmp4_;
- gfloat* _tmp5_;
- gint _tmp5__length1;
- gfloat _tmp6_;
- gfloat _tmp7_;
- gfloat* _tmp8_;
- gint _tmp8__length1;
- gfloat _tmp9_;
- gfloat _tmp10_;
-#line 631 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->parameter;
-#line 631 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjusted_param = ((_tmp1_ + 16.0f) / 32.0f) + 0.5f;
-#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = adjusted_param;
-#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_[0] = _tmp3_;
-#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _tmp2_[0];
-#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = adjusted_param;
-#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_[5] = _tmp6_;
-#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = _tmp5_[5];
-#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = adjusted_param;
-#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_[10] = _tmp9_;
-#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _tmp8_[10];
-#line 637 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE;
-#line 5881 "ColorTransformation.c"
- }
-#line 624 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 5885 "ColorTransformation.c"
-}
-
-
-ExposureTransformation*
-exposure_transformation_new (gfloat client_parameter)
-{
-#line 624 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return exposure_transformation_construct (TYPE_EXPOSURE_TRANSFORMATION, client_parameter);
-#line 5894 "ColorTransformation.c"
-}
-
-
-gfloat
-exposure_transformation_get_parameter (ExposureTransformation* self)
-{
- gfloat result = 0.0F;
- gfloat _tmp0_;
-#line 642 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 642 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 642 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 5909 "ColorTransformation.c"
-}
-
-
-static void
-exposure_transformation_class_init (ExposureTransformationClass * klass)
-{
-#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- exposure_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = exposure_transformation_finalize;
-#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (ExposureTransformationPrivate));
-#line 5922 "ColorTransformation.c"
-}
-
-
-static void
-exposure_transformation_instance_init (ExposureTransformation * self)
-{
-#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = EXPOSURE_TRANSFORMATION_GET_PRIVATE (self);
-#line 5931 "ColorTransformation.c"
-}
-
-
-static void
-exposure_transformation_finalize (PixelTransformation * obj)
-{
- ExposureTransformation * self;
-#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation);
-#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (exposure_transformation_parent_class)->finalize (obj);
-#line 5943 "ColorTransformation.c"
-}
-
-
-GType
-exposure_transformation_get_type (void)
-{
- static volatile gsize exposure_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&exposure_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ExposureTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exposure_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExposureTransformation), 0, (GInstanceInitFunc) exposure_transformation_instance_init, NULL };
- GType exposure_transformation_type_id;
- exposure_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "ExposureTransformation", &g_define_type_info, 0);
- g_once_init_leave (&exposure_transformation_type_id__volatile, exposure_transformation_type_id);
- }
- return exposure_transformation_type_id__volatile;
-}
-
-
-ContrastTransformation*
-contrast_transformation_construct (GType object_type,
- gfloat client_parameter)
-{
- ContrastTransformation* self = NULL;
- gfloat _tmp0_;
-#line 655 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (ContrastTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_CONTRAST);
-#line 657 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->parameter = CLAMP (client_parameter, CONTRAST_TRANSFORMATION_MIN_PARAMETER, CONTRAST_TRANSFORMATION_MAX_PARAMETER);
-#line 659 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 659 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp0_ != 0.0f) {
-#line 5975 "ColorTransformation.c"
- gfloat contrast_adjustment = 0.0F;
- gfloat _tmp1_;
- gfloat component_coefficient = 0.0F;
- gfloat _tmp2_;
- gfloat component_offset = 0.0F;
- gfloat _tmp3_;
- gfloat* _tmp4_;
- gint _tmp4__length1;
- gfloat _tmp5_;
- gfloat _tmp6_;
- gfloat* _tmp7_;
- gint _tmp7__length1;
- gfloat _tmp8_;
- gfloat _tmp9_;
- gfloat* _tmp10_;
- gint _tmp10__length1;
- gfloat _tmp11_;
- gfloat _tmp12_;
- gfloat* _tmp13_;
- gint _tmp13__length1;
- gfloat _tmp14_;
- gfloat _tmp15_;
- gfloat* _tmp16_;
- gint _tmp16__length1;
- gfloat _tmp17_;
- gfloat _tmp18_;
- gfloat* _tmp19_;
- gint _tmp19__length1;
- gfloat _tmp20_;
- gfloat _tmp21_;
-#line 661 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->parameter;
-#line 661 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- contrast_adjustment = (_tmp1_ / 16.0f) * CONTRAST_TRANSFORMATION_MAX_CONTRAST_ADJUSTMENT;
-#line 662 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = contrast_adjustment;
-#line 662 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- component_coefficient = 1.0f + _tmp2_;
-#line 663 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = contrast_adjustment;
-#line 663 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- component_offset = _tmp3_ / (-2.0f);
-#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = component_coefficient;
-#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_[0] = _tmp5_;
-#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _tmp4_[0];
-#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = component_coefficient;
-#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_[5] = _tmp8_;
-#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _tmp7_[5];
-#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = component_coefficient;
-#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_[10] = _tmp11_;
-#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = _tmp10_[10];
-#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = component_offset;
-#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_[3] = _tmp14_;
-#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = _tmp13_[3];
-#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = component_offset;
-#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_[7] = _tmp17_;
-#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = _tmp16_[7];
-#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries;
-#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1;
-#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = component_offset;
-#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_[11] = _tmp20_;
-#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = _tmp19_[11];
-#line 673 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE;
-#line 6080 "ColorTransformation.c"
- }
-#line 654 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 6084 "ColorTransformation.c"
-}
-
-
-ContrastTransformation*
-contrast_transformation_new (gfloat client_parameter)
-{
-#line 654 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return contrast_transformation_construct (TYPE_CONTRAST_TRANSFORMATION, client_parameter);
-#line 6093 "ColorTransformation.c"
-}
-
-
-gfloat
-contrast_transformation_get_parameter (ContrastTransformation* self)
-{
- gfloat result = 0.0F;
- gfloat _tmp0_;
-#line 678 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->parameter;
-#line 678 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 678 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 6108 "ColorTransformation.c"
-}
-
-
-static void
-contrast_transformation_class_init (ContrastTransformationClass * klass)
-{
-#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- contrast_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = contrast_transformation_finalize;
-#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (ContrastTransformationPrivate));
-#line 6121 "ColorTransformation.c"
-}
-
-
-static void
-contrast_transformation_instance_init (ContrastTransformation * self)
-{
-#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = CONTRAST_TRANSFORMATION_GET_PRIVATE (self);
-#line 6130 "ColorTransformation.c"
-}
-
-
-static void
-contrast_transformation_finalize (PixelTransformation * obj)
-{
- ContrastTransformation * self;
-#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation);
-#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (contrast_transformation_parent_class)->finalize (obj);
-#line 6142 "ColorTransformation.c"
-}
-
-
-GType
-contrast_transformation_get_type (void)
-{
- static volatile gsize contrast_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&contrast_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ContrastTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) contrast_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ContrastTransformation), 0, (GInstanceInitFunc) contrast_transformation_instance_init, NULL };
- GType contrast_transformation_type_id;
- contrast_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "ContrastTransformation", &g_define_type_info, 0);
- g_once_init_leave (&contrast_transformation_type_id__volatile, contrast_transformation_type_id);
- }
- return contrast_transformation_type_id__volatile;
-}
-
-
-PixelTransformer*
-pixel_transformer_construct (GType object_type)
-{
- PixelTransformer* self = NULL;
-#line 688 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (PixelTransformer*) g_type_create_instance (object_type);
-#line 688 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 6168 "ColorTransformation.c"
-}
-
-
-PixelTransformer*
-pixel_transformer_new (void)
-{
-#line 688 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return pixel_transformer_construct (TYPE_PIXEL_TRANSFORMER);
-#line 6177 "ColorTransformation.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self ? g_object_ref (self) : NULL;
-#line 6186 "ColorTransformation.c"
-}
-
-
-PixelTransformer*
-pixel_transformer_copy (PixelTransformer* self)
-{
- PixelTransformer* result = NULL;
- PixelTransformer* clone = NULL;
- PixelTransformer* _tmp0_;
-#line 692 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = pixel_transformer_new ();
-#line 692 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- clone = _tmp0_;
-#line 6200 "ColorTransformation.c"
- {
- GeeArrayList* _transformation_list = NULL;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- gint _transformation_size = 0;
- GeeArrayList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _transformation_index = 0;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->transformations;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _transformation_list = _tmp2_;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = _transformation_list;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _tmp4_;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _transformation_size = _tmp5_;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _transformation_index = -1;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 6228 "ColorTransformation.c"
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- PixelTransformation* transformation = NULL;
- GeeArrayList* _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
- PixelTransformer* _tmp12_;
- GeeArrayList* _tmp13_;
- PixelTransformation* _tmp14_;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _transformation_index;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _transformation_index = _tmp6_ + 1;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = _transformation_index;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = _transformation_size;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp7_ < _tmp8_)) {
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 6251 "ColorTransformation.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _transformation_list;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _transformation_index;
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp10_);
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- transformation = (PixelTransformation*) _tmp11_;
-#line 695 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = clone;
-#line 695 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = _tmp12_->priv->transformations;
-#line 695 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = transformation;
-#line 695 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (transformation);
-#line 6271 "ColorTransformation.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_transformation_list);
-#line 6275 "ColorTransformation.c"
- }
-#line 697 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = clone;
-#line 697 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 6281 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformer_build_optimized_transformations (PixelTransformer* self)
-{
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- PixelTransformation** _tmp3_;
- PixelTransformation* pre_trans = NULL;
-#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->transformations;
-#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _tmp1_;
-#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = g_new0 (PixelTransformation*, _tmp2_ + 1);
-#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL);
-#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = _tmp3_;
-#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations_length1 = _tmp2_;
-#line 703 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pre_trans = NULL;
-#line 704 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_slots_used = 0;
-#line 6311 "ColorTransformation.c"
- {
- gint i = 0;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 6316 "ColorTransformation.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = TRUE;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 6323 "ColorTransformation.c"
- gint _tmp6_;
- GeeArrayList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- PixelTransformation* trans = NULL;
- GeeArrayList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- PixelTransformation* _tmp13_;
- PixelTransformation* this_trans = NULL;
- PixelTransformation* _tmp14_;
- gboolean _tmp19_ = FALSE;
- gboolean _tmp20_ = FALSE;
- PixelTransformation* _tmp21_;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp4_) {
-#line 6340 "ColorTransformation.c"
- gint _tmp5_;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = i;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp5_ + 1;
-#line 6346 "ColorTransformation.c"
- }
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = FALSE;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = i;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = self->priv->transformations;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _tmp8_;
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp6_ < _tmp9_)) {
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 6362 "ColorTransformation.c"
- }
-#line 706 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = self->priv->transformations;
-#line 706 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = i;
-#line 706 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp11_);
-#line 706 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- trans = (PixelTransformation*) _tmp12_;
-#line 708 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = trans;
-#line 708 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (pixel_transformation_is_identity (_tmp13_)) {
-#line 709 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (trans);
-#line 709 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- continue;
-#line 6380 "ColorTransformation.c"
- }
-#line 711 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- this_trans = NULL;
-#line 712 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = trans;
-#line 712 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (pixel_transformation_get_composition_mode (_tmp14_) == COMPOSITION_MODE_NONE) {
-#line 6388 "ColorTransformation.c"
- PixelTransformation* _tmp15_;
- PixelTransformation* _tmp16_;
-#line 713 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = trans;
-#line 713 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = _pixel_transformation_ref0 (_tmp15_);
-#line 713 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (this_trans);
-#line 713 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- this_trans = _tmp16_;
-#line 6399 "ColorTransformation.c"
- } else {
- PixelTransformation* _tmp17_;
- PixelTransformation* _tmp18_;
-#line 715 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = trans;
-#line 715 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = pixel_transformation_copy (_tmp17_);
-#line 715 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (this_trans);
-#line 715 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- this_trans = _tmp18_;
-#line 6411 "ColorTransformation.c"
- }
-#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = pre_trans;
-#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp21_ != NULL) {
-#line 6417 "ColorTransformation.c"
- PixelTransformation* _tmp22_;
-#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = this_trans;
-#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = pixel_transformation_get_composition_mode (_tmp22_) != COMPOSITION_MODE_NONE;
-#line 6423 "ColorTransformation.c"
- } else {
-#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = FALSE;
-#line 6427 "ColorTransformation.c"
- }
-#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp20_) {
-#line 6431 "ColorTransformation.c"
- PixelTransformation* _tmp23_;
- PixelTransformation* _tmp24_;
-#line 718 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = this_trans;
-#line 718 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = pre_trans;
-#line 718 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = pixel_transformation_get_composition_mode (_tmp23_) == pixel_transformation_get_composition_mode (_tmp24_);
-#line 6440 "ColorTransformation.c"
- } else {
-#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = FALSE;
-#line 6444 "ColorTransformation.c"
- }
-#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp19_) {
-#line 6448 "ColorTransformation.c"
- PixelTransformation* _tmp25_;
- PixelTransformation* _tmp26_;
-#line 719 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = pre_trans;
-#line 719 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = this_trans;
-#line 719 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_compose_with (_tmp25_, _tmp26_);
-#line 6457 "ColorTransformation.c"
- } else {
- PixelTransformation** _tmp27_;
- gint _tmp27__length1;
- gint _tmp28_;
- PixelTransformation* _tmp29_;
- PixelTransformation* _tmp30_;
- PixelTransformation* _tmp31_;
- PixelTransformation* _tmp32_;
- PixelTransformation* _tmp33_;
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = self->optimized_transformations;
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27__length1 = self->optimized_transformations_length1;
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = self->optimized_slots_used;
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_slots_used = _tmp28_ + 1;
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = this_trans;
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = _pixel_transformation_ref0 (_tmp29_);
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp27_[_tmp28_]);
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_[_tmp28_] = _tmp30_;
-#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = _tmp27_[_tmp28_];
-#line 722 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = this_trans;
-#line 722 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = _pixel_transformation_ref0 (_tmp32_);
-#line 722 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (pre_trans);
-#line 722 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pre_trans = _tmp33_;
-#line 6493 "ColorTransformation.c"
- }
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (this_trans);
-#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (trans);
-#line 6499 "ColorTransformation.c"
- }
- }
- }
-#line 700 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (pre_trans);
-#line 6505 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformer_attach_transformation (PixelTransformer* self,
- PixelTransformation* trans)
-{
- GeeArrayList* _tmp0_;
-#line 733 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->transformations;
-#line 733 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), trans);
-#line 734 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL);
-#line 734 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = NULL;
-#line 734 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations_length1 = 0;
-#line 6524 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformer_detach_transformation (PixelTransformer* self,
- PixelTransformation* victim)
-{
- GeeArrayList* _tmp0_;
-#line 740 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->transformations;
-#line 740 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), victim);
-#line 741 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL);
-#line 741 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = NULL;
-#line 741 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations_length1 = 0;
-#line 6543 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformer_replace_transformation (PixelTransformer* self,
- PixelTransformation* old_trans,
- PixelTransformation* new_trans)
-{
- {
- gint i = 0;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 6556 "ColorTransformation.c"
- {
- gboolean _tmp0_ = FALSE;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = TRUE;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 6563 "ColorTransformation.c"
- gint _tmp2_;
- GeeArrayList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- GeeArrayList* _tmp6_;
- gint _tmp7_;
- gpointer _tmp8_;
- PixelTransformation* _tmp9_;
- gboolean _tmp10_;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp0_) {
-#line 6575 "ColorTransformation.c"
- gint _tmp1_;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = i;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp1_ + 1;
-#line 6581 "ColorTransformation.c"
- }
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = FALSE;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = i;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = self->priv->transformations;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = _tmp4_;
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp2_ < _tmp5_)) {
-#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 6597 "ColorTransformation.c"
- }
-#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = self->priv->transformations;
-#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = i;
-#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp7_);
-#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = (PixelTransformation*) _tmp8_;
-#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _tmp9_ == old_trans;
-#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp9_);
-#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp10_) {
-#line 6613 "ColorTransformation.c"
- GeeArrayList* _tmp11_;
- gint _tmp12_;
-#line 750 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = self->priv->transformations;
-#line 750 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = i;
-#line 750 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- gee_abstract_list_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp12_, new_trans);
-#line 752 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL);
-#line 752 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = NULL;
-#line 752 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations_length1 = 0;
-#line 753 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return;
-#line 6630 "ColorTransformation.c"
- }
- }
- }
- }
-#line 756 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_error ("ColorTransformation.vala:756: %s", "PixelTransformer: replace_transformation( ): old_trans is not present " \
-"in " "transformation collection");
-#line 6637 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformer_transform_pixbuf (PixelTransformer* self,
- GdkPixbuf* pixbuf,
- GCancellable* cancellable)
-{
-#line 761 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_transform_to_other_pixbuf (self, pixbuf, pixbuf, cancellable, -1);
-#line 6648 "ColorTransformation.c"
-}
-
-
-static Block1Data*
-block1_data_ref (Block1Data* _data1_)
-{
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&_data1_->_ref_count_);
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return _data1_;
-#line 6659 "ColorTransformation.c"
-}
-
-
-static void
-block1_data_unref (void * _userdata_)
-{
- Block1Data* _data1_;
- _data1_ = (Block1Data*) _userdata_;
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
-#line 6670 "ColorTransformation.c"
- PixelTransformer* self;
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = _data1_->self;
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformer_unref0 (self);
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_slice_free (Block1Data, _data1_);
-#line 6678 "ColorTransformation.c"
- }
-}
-
-
-static Block2Data*
-block2_data_ref (Block2Data* _data2_)
-{
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&_data2_->_ref_count_);
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return _data2_;
-#line 6690 "ColorTransformation.c"
-}
-
-
-static void
-block2_data_unref (void * _userdata_)
-{
- Block2Data* _data2_;
- _data2_ = (Block2Data*) _userdata_;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
-#line 6701 "ColorTransformation.c"
- PixelTransformer* self;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = _data2_->_data1_->self;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block1_data_unref (_data2_->_data1_);
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data2_->_data1_ = NULL;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_slice_free (Block2Data, _data2_);
-#line 6711 "ColorTransformation.c"
- }
-}
-
-
-static void*
-_____lambda5_ (Block2Data* _data2_)
-{
- Block1Data* _data1_;
- PixelTransformer* self;
- void* result = NULL;
- guint cache_pixel_ticker = 0U;
- guint _tmp0_;
- gint _tmp1_;
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_ = _data2_->_data1_;
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = _data1_->self;
-#line 788 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _data2_->row;
-#line 788 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _data1_->dest_width;
-#line 788 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- cache_pixel_ticker = (_tmp0_ * _tmp1_) * 3;
-#line 6735 "ColorTransformation.c"
- {
- guint j = 0U;
- guint _tmp2_;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _data2_->row;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- j = _tmp2_;
-#line 6743 "ColorTransformation.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = TRUE;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 6750 "ColorTransformation.c"
- guint _tmp5_;
- guint _tmp6_;
- guint row_start_index = 0U;
- guint _tmp7_;
- gint _tmp8_;
- guint row_end_index = 0U;
- guint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp3_) {
-#line 6762 "ColorTransformation.c"
- guint _tmp4_;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = j;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- j = _tmp4_ + 1;
-#line 6768 "ColorTransformation.c"
- }
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = FALSE;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = j;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _data2_->slice_height;
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp5_ < _tmp6_)) {
-#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 6780 "ColorTransformation.c"
- }
-#line 790 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = j;
-#line 790 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = _data1_->dest_rowstride;
-#line 790 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- row_start_index = _tmp7_ * _tmp8_;
-#line 791 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = row_start_index;
-#line 791 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _data1_->dest_width;
-#line 791 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = _data1_->dest_num_channels;
-#line 791 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- row_end_index = _tmp9_ + (_tmp10_ * _tmp11_);
-#line 6796 "ColorTransformation.c"
- {
- guint i = 0U;
- guint _tmp12_;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = row_start_index;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp12_;
-#line 6804 "ColorTransformation.c"
- {
- gboolean _tmp13_ = FALSE;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = TRUE;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 6811 "ColorTransformation.c"
- guint _tmp16_;
- guint _tmp17_;
- RGBAnalyticPixel pixel = {0};
- gfloat* _tmp18_;
- gint _tmp18__length1;
- guint _tmp19_;
- gfloat _tmp20_;
- gfloat* _tmp21_;
- gint _tmp21__length1;
- guint _tmp22_;
- gfloat _tmp23_;
- gfloat* _tmp24_;
- gint _tmp24__length1;
- guint _tmp25_;
- gfloat _tmp26_;
- guint _tmp27_;
- RGBAnalyticPixel _tmp28_;
- RGBAnalyticPixel _tmp29_ = {0};
- guchar* _tmp30_;
- gint _tmp30__length1;
- guint _tmp31_;
- RGBAnalyticPixel _tmp32_;
- gfloat _tmp33_;
- guchar _tmp34_;
- guchar* _tmp35_;
- gint _tmp35__length1;
- guint _tmp36_;
- RGBAnalyticPixel _tmp37_;
- gfloat _tmp38_;
- guchar _tmp39_;
- guchar* _tmp40_;
- gint _tmp40__length1;
- guint _tmp41_;
- RGBAnalyticPixel _tmp42_;
- gfloat _tmp43_;
- guchar _tmp44_;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp13_) {
-#line 6850 "ColorTransformation.c"
- guint _tmp14_;
- gint _tmp15_;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = i;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = _data1_->dest_num_channels;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp14_ + _tmp15_;
-#line 6859 "ColorTransformation.c"
- }
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = FALSE;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = i;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = row_end_index;
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp16_ < _tmp17_)) {
-#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 6871 "ColorTransformation.c"
- }
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = _data1_->cache;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18__length1 = _data1_->cache_length1;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = cache_pixel_ticker;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = _tmp18_[_tmp19_];
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = _data1_->cache;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21__length1 = _data1_->cache_length1;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = cache_pixel_ticker;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = _tmp21_[_tmp22_ + 1];
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = _data1_->cache;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24__length1 = _data1_->cache_length1;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = cache_pixel_ticker;
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = _tmp24_[_tmp25_ + 2];
-#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_analytic_pixel_init_from_components (&pixel, _tmp20_, _tmp23_, _tmp26_);
-#line 798 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = cache_pixel_ticker;
-#line 798 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- cache_pixel_ticker = _tmp27_ + 3;
-#line 800 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = pixel;
-#line 800 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_apply_transformations (self, &_tmp28_, &_tmp29_);
-#line 800 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel = _tmp29_;
-#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = _data1_->dest_pixels;
-#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30__length1 = _data1_->dest_pixels_length1;
-#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = i;
-#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = pixel;
-#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = _tmp32_.red;
-#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_[_tmp31_] = (guchar) (_tmp33_ * 255.0f);
-#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = _tmp30_[_tmp31_];
-#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = _data1_->dest_pixels;
-#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35__length1 = _data1_->dest_pixels_length1;
-#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = i;
-#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = pixel;
-#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = _tmp37_.green;
-#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_[_tmp36_ + 1] = (guchar) (_tmp38_ * 255.0f);
-#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = _tmp35_[_tmp36_ + 1];
-#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = _data1_->dest_pixels;
-#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40__length1 = _data1_->dest_pixels_length1;
-#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = i;
-#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp42_ = pixel;
-#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp43_ = _tmp42_.blue;
-#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_[_tmp41_ + 2] = (guchar) (_tmp43_ * 255.0f);
-#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44_ = _tmp40_[_tmp41_ + 2];
-#line 6951 "ColorTransformation.c"
- }
- }
- }
- }
- }
- }
-#line 808 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = NULL;
-#line 808 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 6962 "ColorTransformation.c"
-}
-
-
-static gpointer
-______lambda5__gthread_func (gpointer self)
-{
- gpointer result;
- result = _____lambda5_ (self);
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block2_data_unref (self);
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 6975 "ColorTransformation.c"
-}
-
-
-static gpointer
-_g_thread_ref0 (gpointer self)
-{
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self ? g_thread_ref (self) : NULL;
-#line 6984 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformer_transform_from_fp (PixelTransformer* self,
- gfloat** fp_pixel_cache,
- int* fp_pixel_cache_length1,
- GdkPixbuf* dest)
-{
- Block1Data* _data1_;
- PixelTransformation** _tmp0_;
- gint _tmp0__length1;
- gint dest_height = 0;
- guint8* _tmp1_;
- gint jobs = 0;
- guint slice_length = 0U;
- gint _tmp2_;
- gint _tmp3_;
- GThread** threads = NULL;
- gint _tmp7_;
- GThread** _tmp8_;
- gint threads_length1;
- gint _threads_size_;
- GThread** _tmp22_;
- gint _tmp22__length1;
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_ = g_slice_new0 (Block1Data);
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->_ref_count_ = 1;
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->self = pixel_transformer_ref (self);
-#line 765 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->optimized_transformations;
-#line 765 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0__length1 = self->optimized_transformations_length1;
-#line 765 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp0_ == NULL) {
-#line 766 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_build_optimized_transformations (self);
-#line 7024 "ColorTransformation.c"
- }
-#line 768 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->dest_width = gdk_pixbuf_get_width (dest);
-#line 769 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_height = gdk_pixbuf_get_height (dest);
-#line 770 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->dest_num_channels = gdk_pixbuf_get_n_channels (dest);
-#line 771 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->dest_rowstride = gdk_pixbuf_get_rowstride (dest);
-#line 772 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = gdk_pixbuf_get_pixels (dest);
-#line 772 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->dest_pixels = _tmp1_;
-#line 772 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->dest_pixels_length1 = -1;
-#line 772 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->_dest_pixels_size_ = _data1_->dest_pixels_length1;
-#line 774 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- jobs = ((gint) g_get_num_processors ()) - 1;
-#line 776 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = dest_height;
-#line 776 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- slice_length = (guint) _tmp2_;
-#line 777 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = jobs;
-#line 777 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp3_ > 0) {
-#line 7052 "ColorTransformation.c"
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 778 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = dest_height;
-#line 778 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = jobs;
-#line 778 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = jobs;
-#line 778 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- slice_length = (guint) ((_tmp4_ + (_tmp5_ - 1)) / _tmp6_);
-#line 7064 "ColorTransformation.c"
- }
-#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = jobs;
-#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = g_new0 (GThread*, _tmp7_ + 1);
-#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- threads = _tmp8_;
-#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- threads_length1 = _tmp7_;
-#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _threads_size_ = threads_length1;
-#line 783 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->cache = *fp_pixel_cache;
-#line 783 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->cache_length1 = *fp_pixel_cache_length1;
-#line 783 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_->_cache_size_ = _data1_->cache_length1;
-#line 7082 "ColorTransformation.c"
- {
- gint job = 0;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- job = 0;
-#line 7087 "ColorTransformation.c"
- {
- gboolean _tmp9_ = FALSE;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = TRUE;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 7094 "ColorTransformation.c"
- Block2Data* _data2_;
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- guint _tmp14_;
- guint _tmp15_;
- guint _tmp16_;
- gint _tmp17_;
- GThread** _tmp18_;
- gint _tmp18__length1;
- gint _tmp19_;
- GThread* _tmp20_;
- GThread* _tmp21_;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data2_ = g_slice_new0 (Block2Data);
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data2_->_ref_count_ = 1;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data2_->_data1_ = block1_data_ref (_data1_);
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp9_) {
-#line 7116 "ColorTransformation.c"
- gint _tmp10_;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = job;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- job = _tmp10_ + 1;
-#line 7122 "ColorTransformation.c"
- }
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = FALSE;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = job;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = jobs;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp11_ < _tmp12_)) {
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block2_data_unref (_data2_);
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data2_ = NULL;
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 7138 "ColorTransformation.c"
- }
-#line 785 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = job;
-#line 785 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = slice_length;
-#line 785 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data2_->row = _tmp13_ * _tmp14_;
-#line 786 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = _data2_->row;
-#line 786 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = slice_length;
-#line 786 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = dest_height;
-#line 786 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data2_->slice_height = CLAMP (_tmp15_ + _tmp16_, (guint) 0, (guint) _tmp17_);
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = threads;
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18__length1 = threads_length1;
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = job;
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = g_thread_new ("shotwell-worker", ______lambda5__gthread_func, block2_data_ref (_data2_));
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_thread_unref0 (_tmp18_[_tmp19_]);
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_[_tmp19_] = _tmp20_;
-#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = _tmp18_[_tmp19_];
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block2_data_unref (_data2_);
-#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data2_ = NULL;
-#line 7172 "ColorTransformation.c"
- }
- }
- }
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = threads;
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22__length1 = threads_length1;
-#line 7180 "ColorTransformation.c"
- {
- GThread** thread_collection = NULL;
- gint thread_collection_length1 = 0;
- gint _thread_collection_size_ = 0;
- gint thread_it = 0;
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- thread_collection = _tmp22_;
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- thread_collection_length1 = _tmp22__length1;
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- for (thread_it = 0; thread_it < _tmp22__length1; thread_it = thread_it + 1) {
-#line 7192 "ColorTransformation.c"
- GThread* _tmp23_;
- GThread* thread = NULL;
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = _g_thread_ref0 (thread_collection[thread_it]);
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- thread = _tmp23_;
-#line 7199 "ColorTransformation.c"
- {
- GThread* _tmp24_;
- GThread* _tmp25_;
-#line 813 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = thread;
-#line 813 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = _g_thread_ref0 (_tmp24_);
-#line 813 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_thread_join (_tmp25_);
-#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_thread_unref0 (thread);
-#line 7211 "ColorTransformation.c"
- }
- }
- }
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- threads = (_vala_array_free (threads, threads_length1, (GDestroyNotify) g_thread_unref), NULL);
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block1_data_unref (_data1_);
-#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data1_ = NULL;
-#line 7221 "ColorTransformation.c"
-}
-
-
-static Block3Data*
-block3_data_ref (Block3Data* _data3_)
-{
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&_data3_->_ref_count_);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return _data3_;
-#line 7232 "ColorTransformation.c"
-}
-
-
-static void
-block3_data_unref (void * _userdata_)
-{
- Block3Data* _data3_;
- _data3_ = (Block3Data*) _userdata_;
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
-#line 7243 "ColorTransformation.c"
- PixelTransformer* self;
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = _data3_->self;
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_data3_->cancellable);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformer_unref0 (self);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_slice_free (Block3Data, _data3_);
-#line 7253 "ColorTransformation.c"
- }
-}
-
-
-static Block4Data*
-block4_data_ref (Block4Data* _data4_)
-{
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&_data4_->_ref_count_);
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return _data4_;
-#line 7265 "ColorTransformation.c"
-}
-
-
-static void
-block4_data_unref (void * _userdata_)
-{
- Block4Data* _data4_;
- _data4_ = (Block4Data*) _userdata_;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
-#line 7276 "ColorTransformation.c"
- PixelTransformer* self;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = _data4_->_data3_->self;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block3_data_unref (_data4_->_data3_);
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data4_->_data3_ = NULL;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_slice_free (Block4Data, _data4_);
-#line 7286 "ColorTransformation.c"
- }
-}
-
-
-static void*
-_____lambda4_ (Block4Data* _data4_)
-{
- Block3Data* _data3_;
- PixelTransformer* self;
- void* result = NULL;
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_ = _data4_->_data3_;
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = _data3_->self;
-#line 7301 "ColorTransformation.c"
- {
- guint j = 0U;
- guint _tmp0_;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _data4_->row;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- j = _tmp0_;
-#line 7309 "ColorTransformation.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = TRUE;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 7316 "ColorTransformation.c"
- guint _tmp3_;
- guint _tmp4_;
- guint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- guchar* _tmp9_;
- gint _tmp9__length1;
- guchar* _tmp10_;
- gint _tmp10__length1;
- gboolean _tmp11_ = FALSE;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp1_) {
-#line 7330 "ColorTransformation.c"
- guint _tmp2_;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = j;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- j = _tmp2_ + 1;
-#line 7336 "ColorTransformation.c"
- }
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = FALSE;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = j;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _data4_->slice_height;
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp3_ < _tmp4_)) {
-#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 7348 "ColorTransformation.c"
- }
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = j;
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _data3_->rowstride;
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = _data3_->rowbytes;
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = _data3_->n_channels;
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _data3_->source_pixels;
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9__length1 = _data3_->source_pixels_length1;
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _data3_->dest_pixels;
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10__length1 = _data3_->dest_pixels_length1;
-#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_apply_transformation (self, _tmp5_, _tmp6_, _tmp7_, _tmp8_, _tmp9_, _tmp9__length1, _tmp10_, _tmp10__length1);
-#line 859 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_data3_->cancellable != NULL) {
-#line 859 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = g_cancellable_is_cancelled (_data3_->cancellable);
-#line 7372 "ColorTransformation.c"
- } else {
-#line 859 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = FALSE;
-#line 7376 "ColorTransformation.c"
- }
-#line 859 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp11_) {
-#line 860 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 7382 "ColorTransformation.c"
- }
- }
- }
- }
-#line 864 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = NULL;
-#line 864 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 7391 "ColorTransformation.c"
-}
-
-
-static gpointer
-______lambda4__gthread_func (gpointer self)
-{
- gpointer result;
- result = _____lambda4_ (self);
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block4_data_unref (self);
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 7404 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformer_transform_to_other_pixbuf (PixelTransformer* self,
- GdkPixbuf* source,
- GdkPixbuf* dest,
- GCancellable* cancellable,
- gint jobs)
-{
- Block3Data* _data3_;
- GCancellable* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- PixelTransformation** _tmp13_;
- gint _tmp13__length1;
- gint width = 0;
- gint height = 0;
- gint _tmp14_;
- gint _tmp15_;
- guint8* _tmp16_;
- guint8* _tmp17_;
- guint slice_length = 0U;
- gint _tmp18_;
- GThread** threads = NULL;
- GThread** _tmp20_;
- gint threads_length1;
- gint _threads_size_;
- GThread** _tmp33_;
- gint _tmp33__length1;
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_ = g_slice_new0 (Block3Data);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->_ref_count_ = 1;
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->self = pixel_transformer_ref (self);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _g_object_ref0 (cancellable);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (_data3_->cancellable);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->cancellable = _tmp0_;
-#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = gdk_pixbuf_get_width (source);
-#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = _tmp1_;
-#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = gdk_pixbuf_get_width (dest);
-#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = _tmp3_;
-#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp2_ != _tmp4_) {
-#line 820 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_error ("ColorTransformation.vala:820: PixelTransformer: source and destination" \
-" pixbufs must have the same width");
-#line 7469 "ColorTransformation.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = gdk_pixbuf_get_height (source);
-#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _tmp5_;
-#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = gdk_pixbuf_get_height (dest);
-#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = _tmp7_;
-#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp6_ != _tmp8_) {
-#line 823 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_error ("ColorTransformation.vala:823: PixelTransformer: source and destination" \
-" pixbufs must have the same height");
-#line 7483 "ColorTransformation.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = gdk_pixbuf_get_n_channels (source);
-#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _tmp9_;
-#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = gdk_pixbuf_get_n_channels (dest);
-#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = _tmp11_;
-#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp10_ != _tmp12_) {
-#line 826 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_error ("ColorTransformation.vala:826: %s", "PixelTransformer: source and destination pixbufs must have the same nu" \
-"mber " "of channels");
-#line 7497 "ColorTransformation.c"
- }
-#line 829 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = self->optimized_transformations;
-#line 829 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13__length1 = self->optimized_transformations_length1;
-#line 829 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp13_ == NULL) {
-#line 830 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_build_optimized_transformations (self);
-#line 7507 "ColorTransformation.c"
- }
-#line 832 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->n_channels = gdk_pixbuf_get_n_channels (source);
-#line 833 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->rowstride = gdk_pixbuf_get_rowstride (source);
-#line 834 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- width = gdk_pixbuf_get_width (source);
-#line 835 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- height = gdk_pixbuf_get_height (source);
-#line 836 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = _data3_->n_channels;
-#line 836 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = width;
-#line 836 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->rowbytes = _tmp14_ * _tmp15_;
-#line 837 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = gdk_pixbuf_get_pixels (source);
-#line 837 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->source_pixels = _tmp16_;
-#line 837 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->source_pixels_length1 = -1;
-#line 837 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->_source_pixels_size_ = _data3_->source_pixels_length1;
-#line 838 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = gdk_pixbuf_get_pixels (dest);
-#line 838 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->dest_pixels = _tmp17_;
-#line 838 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->dest_pixels_length1 = -1;
-#line 838 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_->_dest_pixels_size_ = _data3_->dest_pixels_length1;
-#line 839 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (jobs == -1) {
-#line 840 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- jobs = ((gint) g_get_num_processors ()) - 1;
-#line 7543 "ColorTransformation.c"
- }
-#line 843 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = height;
-#line 843 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- slice_length = (guint) _tmp18_;
-#line 844 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (jobs > 0) {
-#line 7551 "ColorTransformation.c"
- gint _tmp19_;
-#line 845 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = height;
-#line 845 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- slice_length = (guint) ((_tmp19_ + (jobs - 1)) / jobs);
-#line 7557 "ColorTransformation.c"
- }
-#line 848 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = g_new0 (GThread*, jobs + 1);
-#line 848 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- threads = _tmp20_;
-#line 848 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- threads_length1 = jobs;
-#line 848 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _threads_size_ = threads_length1;
-#line 7567 "ColorTransformation.c"
- {
- gint job = 0;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- job = 0;
-#line 7572 "ColorTransformation.c"
- {
- gboolean _tmp21_ = FALSE;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = TRUE;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 7579 "ColorTransformation.c"
- Block4Data* _data4_;
- gint _tmp23_;
- gint _tmp24_;
- guint _tmp25_;
- guint _tmp26_;
- guint _tmp27_;
- gint _tmp28_;
- GThread** _tmp29_;
- gint _tmp29__length1;
- gint _tmp30_;
- GThread* _tmp31_;
- GThread* _tmp32_;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data4_ = g_slice_new0 (Block4Data);
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data4_->_ref_count_ = 1;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data4_->_data3_ = block3_data_ref (_data3_);
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp21_) {
-#line 7600 "ColorTransformation.c"
- gint _tmp22_;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = job;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- job = _tmp22_ + 1;
-#line 7606 "ColorTransformation.c"
- }
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = FALSE;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = job;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp23_ < jobs)) {
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block4_data_unref (_data4_);
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data4_ = NULL;
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 7620 "ColorTransformation.c"
- }
-#line 851 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = job;
-#line 851 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = slice_length;
-#line 851 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data4_->row = _tmp24_ * _tmp25_;
-#line 852 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = _data4_->row;
-#line 852 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = slice_length;
-#line 852 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = height;
-#line 852 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data4_->slice_height = CLAMP (_tmp26_ + _tmp27_, (guint) 0, (guint) _tmp28_);
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = threads;
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29__length1 = threads_length1;
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = job;
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = g_thread_new ("shotwell-worker", ______lambda4__gthread_func, block4_data_ref (_data4_));
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_thread_unref0 (_tmp29_[_tmp30_]);
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_[_tmp30_] = _tmp31_;
-#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = _tmp29_[_tmp30_];
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block4_data_unref (_data4_);
-#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data4_ = NULL;
-#line 7654 "ColorTransformation.c"
- }
- }
- }
-#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = threads;
-#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33__length1 = threads_length1;
-#line 7662 "ColorTransformation.c"
- {
- GThread** thread_collection = NULL;
- gint thread_collection_length1 = 0;
- gint _thread_collection_size_ = 0;
- gint thread_it = 0;
-#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- thread_collection = _tmp33_;
-#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- thread_collection_length1 = _tmp33__length1;
-#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- for (thread_it = 0; thread_it < _tmp33__length1; thread_it = thread_it + 1) {
-#line 7674 "ColorTransformation.c"
- GThread* _tmp34_;
- GThread* thread = NULL;
-#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = _g_thread_ref0 (thread_collection[thread_it]);
-#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- thread = _tmp34_;
-#line 7681 "ColorTransformation.c"
- {
- GThread* _tmp35_;
- GThread* _tmp36_;
-#line 869 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = thread;
-#line 869 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = _g_thread_ref0 (_tmp35_);
-#line 869 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_thread_join (_tmp36_);
-#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_thread_unref0 (thread);
-#line 7693 "ColorTransformation.c"
- }
- }
- }
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- threads = (_vala_array_free (threads, threads_length1, (GDestroyNotify) g_thread_unref), NULL);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- block3_data_unref (_data3_);
-#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _data3_ = NULL;
-#line 7703 "ColorTransformation.c"
-}
-
-
-static void
-value_pixel_transformer_init (GValue* value)
-{
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 7712 "ColorTransformation.c"
-}
-
-
-static void
-value_pixel_transformer_free_value (GValue* value)
-{
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (value->data[0].v_pointer) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_unref (value->data[0].v_pointer);
-#line 7723 "ColorTransformation.c"
- }
-}
-
-
-static void
-value_pixel_transformer_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (src_value->data[0].v_pointer) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = pixel_transformer_ref (src_value->data[0].v_pointer);
-#line 7736 "ColorTransformation.c"
- } else {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 7740 "ColorTransformation.c"
- }
-}
-
-
-static gpointer
-value_pixel_transformer_peek_pointer (const GValue* value)
-{
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 7750 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_pixel_transformer_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (collect_values[0].v_pointer) {
-#line 7762 "ColorTransformation.c"
- PixelTransformer * object;
- object = collect_values[0].v_pointer;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 7769 "ColorTransformation.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.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 7773 "ColorTransformation.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = pixel_transformer_ref (object);
-#line 7777 "ColorTransformation.c"
- } else {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 7781 "ColorTransformation.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 7785 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_pixel_transformer_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PixelTransformer ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!object_p) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 7801 "ColorTransformation.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!value->data[0].v_pointer) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = NULL;
-#line 7807 "ColorTransformation.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = value->data[0].v_pointer;
-#line 7811 "ColorTransformation.c"
- } else {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = pixel_transformer_ref (value->data[0].v_pointer);
-#line 7815 "ColorTransformation.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 7819 "ColorTransformation.c"
-}
-
-
-GParamSpec*
-param_spec_pixel_transformer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPixelTransformer* spec;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PIXEL_TRANSFORMER), NULL);
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return G_PARAM_SPEC (spec);
-#line 7839 "ColorTransformation.c"
-}
-
-
-gpointer
-value_get_pixel_transformer (const GValue* value)
-{
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMER), NULL);
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 7850 "ColorTransformation.c"
-}
-
-
-void
-value_set_pixel_transformer (GValue* value,
- gpointer v_object)
-{
- PixelTransformer * old;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMER));
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMER));
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_ref (value->data[0].v_pointer);
-#line 7873 "ColorTransformation.c"
- } else {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 7877 "ColorTransformation.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_unref (old);
-#line 7883 "ColorTransformation.c"
- }
-}
-
-
-void
-value_take_pixel_transformer (GValue* value,
- gpointer v_object)
-{
- PixelTransformer * old;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMER));
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMER));
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 7905 "ColorTransformation.c"
- } else {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 7909 "ColorTransformation.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_unref (old);
-#line 7915 "ColorTransformation.c"
- }
-}
-
-
-static void
-pixel_transformer_class_init (PixelTransformerClass * klass)
-{
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformer_parent_class = g_type_class_peek_parent (klass);
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformerClass *) klass)->finalize = pixel_transformer_finalize;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (PixelTransformerPrivate));
-#line 7929 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformer_instance_init (PixelTransformer * self)
-{
- GeeArrayList* _tmp0_;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = PIXEL_TRANSFORMER_GET_PRIVATE (self);
-#line 683 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = gee_array_list_new (TYPE_PIXEL_TRANSFORMATION, (GBoxedCopyFunc) pixel_transformation_ref, (GDestroyNotify) pixel_transformation_unref, NULL, NULL, NULL);
-#line 683 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->transformations = _tmp0_;
-#line 685 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = NULL;
-#line 685 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations_length1 = 0;
-#line 686 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_slots_used = 0;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->ref_count = 1;
-#line 7951 "ColorTransformation.c"
-}
-
-
-static void
-pixel_transformer_finalize (PixelTransformer * obj)
-{
- PixelTransformer * self;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXEL_TRANSFORMER, PixelTransformer);
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_signal_handlers_destroy (self);
-#line 683 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (self->priv->transformations);
-#line 685 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL);
-#line 7967 "ColorTransformation.c"
-}
-
-
-GType
-pixel_transformer_get_type (void)
-{
- static volatile gsize pixel_transformer_type_id__volatile = 0;
- if (g_once_init_enter (&pixel_transformer_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_pixel_transformer_init, value_pixel_transformer_free_value, value_pixel_transformer_copy_value, value_pixel_transformer_peek_pointer, "p", value_pixel_transformer_collect_value, "p", value_pixel_transformer_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PixelTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixel_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixelTransformer), 0, (GInstanceInitFunc) pixel_transformer_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType pixel_transformer_type_id;
- pixel_transformer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PixelTransformer", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&pixel_transformer_type_id__volatile, pixel_transformer_type_id);
- }
- return pixel_transformer_type_id__volatile;
-}
-
-
-gpointer
-pixel_transformer_ref (gpointer instance)
-{
- PixelTransformer * self;
- self = instance;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return instance;
-#line 7996 "ColorTransformation.c"
-}
-
-
-void
-pixel_transformer_unref (gpointer instance)
-{
- PixelTransformer * self;
- self = instance;
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMER_GET_CLASS (self)->finalize (self);
-#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 8011 "ColorTransformation.c"
- }
-}
-
-
-RGBHistogram*
-rgb_histogram_construct (GType object_type,
- GdkPixbuf* pixbuf)
-{
- RGBHistogram* self = NULL;
- gint sample_bytes = 0;
- gint pixel_bytes = 0;
- gint _tmp0_;
- gint row_length_bytes = 0;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- guchar* pixel_data = NULL;
- guint8* _tmp4_;
- gint pixel_data_length1;
- gint _pixel_data_size_;
-#line 898 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (RGBHistogram*) g_type_create_instance (object_type);
-#line 899 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- sample_bytes = gdk_pixbuf_get_bits_per_sample (pixbuf) / 8;
-#line 900 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = sample_bytes;
-#line 900 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_bytes = _tmp0_ * gdk_pixbuf_get_n_channels (pixbuf);
-#line 901 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = pixel_bytes;
-#line 901 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = gdk_pixbuf_get_width (pixbuf);
-#line 901 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = _tmp2_;
-#line 901 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- row_length_bytes = _tmp1_ * _tmp3_;
-#line 903 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = gdk_pixbuf_get_pixels (pixbuf);
-#line 903 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_data = _tmp4_;
-#line 903 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_data_length1 = -1;
-#line 903 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_data_size_ = pixel_data_length1;
-#line 8056 "ColorTransformation.c"
- {
- gint y = 0;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- y = 0;
-#line 8061 "ColorTransformation.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = TRUE;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 8068 "ColorTransformation.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint row_start_offset = 0;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gint r_offset = 0;
- gint _tmp13_;
- gint g_offset = 0;
- gint _tmp14_;
- gint _tmp15_;
- gint b_offset = 0;
- gint _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp5_) {
-#line 8087 "ColorTransformation.c"
- gint _tmp6_;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = y;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- y = _tmp6_ + 1;
-#line 8093 "ColorTransformation.c"
- }
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = FALSE;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = y;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = gdk_pixbuf_get_height (pixbuf);
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = _tmp8_;
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp7_ < _tmp9_)) {
-#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 8107 "ColorTransformation.c"
- }
-#line 906 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = y;
-#line 906 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = gdk_pixbuf_get_rowstride (pixbuf);
-#line 906 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = _tmp11_;
-#line 906 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- row_start_offset = _tmp10_ * _tmp12_;
-#line 908 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = row_start_offset;
-#line 908 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- r_offset = _tmp13_;
-#line 909 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = row_start_offset;
-#line 909 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = sample_bytes;
-#line 909 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_offset = _tmp14_ + _tmp15_;
-#line 910 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = row_start_offset;
-#line 910 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = sample_bytes;
-#line 910 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = sample_bytes;
-#line 910 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- b_offset = (_tmp16_ + _tmp17_) + _tmp18_;
-#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 8137 "ColorTransformation.c"
- gint _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint* _tmp22_;
- gint _tmp22__length1;
- guchar* _tmp23_;
- gint _tmp23__length1;
- gint _tmp24_;
- guchar _tmp25_;
- gint _tmp26_;
- gint* _tmp27_;
- gint _tmp27__length1;
- guchar* _tmp28_;
- gint _tmp28__length1;
- gint _tmp29_;
- guchar _tmp30_;
- gint _tmp31_;
- gint* _tmp32_;
- gint _tmp32__length1;
- guchar* _tmp33_;
- gint _tmp33__length1;
- gint _tmp34_;
- guchar _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- gint _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
-#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = b_offset;
-#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = row_start_offset;
-#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = row_length_bytes;
-#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp19_ < (_tmp20_ + _tmp21_))) {
-#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 8178 "ColorTransformation.c"
- }
-#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = self->priv->red_counts;
-#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22__length1 = self->priv->red_counts_length1;
-#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = pixel_data;
-#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23__length1 = pixel_data_length1;
-#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = r_offset;
-#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = _tmp23_[_tmp24_];
-#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_[_tmp25_] += 1;
-#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = _tmp22_[_tmp25_];
-#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = self->priv->green_counts;
-#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27__length1 = self->priv->green_counts_length1;
-#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = pixel_data;
-#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28__length1 = pixel_data_length1;
-#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = g_offset;
-#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = _tmp28_[_tmp29_];
-#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_[_tmp30_] += 1;
-#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = _tmp27_[_tmp30_];
-#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = self->priv->blue_counts;
-#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32__length1 = self->priv->blue_counts_length1;
-#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = pixel_data;
-#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33__length1 = pixel_data_length1;
-#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = b_offset;
-#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = _tmp33_[_tmp34_];
-#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_[_tmp35_] += 1;
-#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = _tmp32_[_tmp35_];
-#line 917 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = r_offset;
-#line 917 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = pixel_bytes;
-#line 917 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- r_offset = _tmp37_ + _tmp38_;
-#line 918 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = g_offset;
-#line 918 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = pixel_bytes;
-#line 918 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_offset = _tmp39_ + _tmp40_;
-#line 919 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = b_offset;
-#line 919 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp42_ = pixel_bytes;
-#line 919 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- b_offset = _tmp41_ + _tmp42_;
-#line 8246 "ColorTransformation.c"
- }
- }
- }
- }
-#line 898 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 8253 "ColorTransformation.c"
-}
-
-
-RGBHistogram*
-rgb_histogram_new (GdkPixbuf* pixbuf)
-{
-#line 898 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return rgb_histogram_construct (TYPE_RGB_HISTOGRAM, pixbuf);
-#line 8262 "ColorTransformation.c"
-}
-
-
-static gint
-rgb_histogram_correct_snap_to_quantization (RGBHistogram* self,
- gint* buckets,
- int buckets_length1,
- gint i)
-{
- gint result = 0;
- gboolean _tmp0_ = FALSE;
- gint _tmp17_;
-#line 925 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (buckets_length1 == 256, "buckets.length == 256");
-#line 926 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (i >= 0) {
-#line 926 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = i <= 255;
-#line 8281 "ColorTransformation.c"
- } else {
-#line 926 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = FALSE;
-#line 8285 "ColorTransformation.c"
- }
-#line 926 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (_tmp0_, "(i >= 0) && (i <= 255)");
-#line 928 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (i == 0) {
-#line 8291 "ColorTransformation.c"
- gint _tmp1_;
-#line 929 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = buckets[i];
-#line 929 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp1_ > 0) {
-#line 8297 "ColorTransformation.c"
- gint _tmp2_;
-#line 930 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = buckets[i + 1];
-#line 930 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp2_ > 0) {
-#line 8303 "ColorTransformation.c"
- gint _tmp3_;
- gint _tmp4_;
-#line 931 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = buckets[i];
-#line 931 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = buckets[i + 1];
-#line 931 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp3_ > (2 * _tmp4_)) {
-#line 8312 "ColorTransformation.c"
- gint _tmp5_;
-#line 932 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = buckets[i + 1];
-#line 932 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp5_;
-#line 932 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 8320 "ColorTransformation.c"
- }
- }
- }
- } else {
-#line 933 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (i == 255) {
-#line 8327 "ColorTransformation.c"
- gint _tmp6_;
-#line 934 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = buckets[i];
-#line 934 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp6_ > 0) {
-#line 8333 "ColorTransformation.c"
- gint _tmp7_;
-#line 935 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = buckets[i - 1];
-#line 935 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp7_ > 0) {
-#line 8339 "ColorTransformation.c"
- gint _tmp8_;
- gint _tmp9_;
-#line 936 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = buckets[i];
-#line 936 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = buckets[i - 1];
-#line 936 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp8_ > (2 * _tmp9_)) {
-#line 8348 "ColorTransformation.c"
- gint _tmp10_;
-#line 937 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = buckets[i - 1];
-#line 937 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp10_;
-#line 937 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 8356 "ColorTransformation.c"
- }
- }
- }
- } else {
- gint _tmp11_;
-#line 939 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = buckets[i];
-#line 939 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp11_ > 0) {
-#line 8366 "ColorTransformation.c"
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
-#line 940 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = buckets[i];
-#line 940 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = buckets[i - 1];
-#line 940 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = buckets[i + 1];
-#line 940 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp12_ > ((_tmp13_ + _tmp14_) / 2)) {
-#line 8378 "ColorTransformation.c"
- gint _tmp15_;
- gint _tmp16_;
-#line 941 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = buckets[i - 1];
-#line 941 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = buckets[i + 1];
-#line 941 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = (_tmp15_ + _tmp16_) / 2;
-#line 941 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 8389 "ColorTransformation.c"
- }
- }
- }
- }
-#line 944 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = buckets[i];
-#line 944 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp17_;
-#line 944 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 8400 "ColorTransformation.c"
-}
-
-
-static gint
-rgb_histogram_correct_snap_from_quantization (RGBHistogram* self,
- gint* buckets,
- int buckets_length1,
- gint i)
-{
- gint result = 0;
- gboolean _tmp0_ = FALSE;
- gint _tmp8_;
-#line 948 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (buckets_length1 == 256, "buckets.length == 256");
-#line 949 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (i >= 0) {
-#line 949 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = i <= 255;
-#line 8419 "ColorTransformation.c"
- } else {
-#line 949 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = FALSE;
-#line 8423 "ColorTransformation.c"
- }
-#line 949 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (_tmp0_, "(i >= 0) && (i <= 255)");
-#line 951 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (i == 0) {
-#line 8429 "ColorTransformation.c"
- gint _tmp1_;
-#line 952 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = buckets[i];
-#line 952 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp1_;
-#line 952 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 8437 "ColorTransformation.c"
- } else {
-#line 953 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (i == 255) {
-#line 8441 "ColorTransformation.c"
- gint _tmp2_;
-#line 954 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = buckets[i];
-#line 954 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp2_;
-#line 954 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 8449 "ColorTransformation.c"
- } else {
- gint _tmp3_;
-#line 956 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = buckets[i];
-#line 956 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp3_ == 0) {
-#line 8456 "ColorTransformation.c"
- gint _tmp4_;
-#line 957 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = buckets[i - 1];
-#line 957 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp4_ > 0) {
-#line 8462 "ColorTransformation.c"
- gint _tmp5_;
-#line 958 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = buckets[i + 1];
-#line 958 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp5_ > 0) {
-#line 8468 "ColorTransformation.c"
- gint _tmp6_;
- gint _tmp7_;
-#line 959 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = buckets[i - 1];
-#line 959 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = buckets[i + 1];
-#line 959 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = (_tmp6_ + _tmp7_) / 2;
-#line 959 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 8479 "ColorTransformation.c"
- }
- }
- }
- }
- }
-#line 962 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = buckets[i];
-#line 962 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp8_;
-#line 962 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 8491 "ColorTransformation.c"
-}
-
-
-static void
-rgb_histogram_smooth_extrema (RGBHistogram* self,
- gint** count_data,
- int* count_data_length1)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- gint _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- gint _tmp44_;
- gint _tmp45_;
- gint _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
- gint _tmp52_;
- gint _tmp53_;
-#line 966 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert ((*count_data_length1) == 256, "count_data.length == 256");
-#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = (*count_data)[0];
-#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = (*count_data)[1];
-#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = (*count_data)[2];
-#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[0] = (((5 * _tmp0_) + (3 * _tmp1_)) + (2 * _tmp2_)) / 10;
-#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = (*count_data)[0];
-#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = (*count_data)[0];
-#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = (*count_data)[1];
-#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = (*count_data)[2];
-#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = (*count_data)[3];
-#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[1] = ((((3 * _tmp4_) + (5 * _tmp5_)) + (3 * _tmp6_)) + (2 * _tmp7_)) / 13;
-#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = (*count_data)[1];
-#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = (*count_data)[0];
-#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = (*count_data)[1];
-#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = (*count_data)[2];
-#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = (*count_data)[3];
-#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = (*count_data)[4];
-#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[2] = (((((2 * _tmp9_) + (3 * _tmp10_)) + (5 * _tmp11_)) + (3 * _tmp12_)) + (2 * _tmp13_)) / 15;
-#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = (*count_data)[2];
-#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = (*count_data)[1];
-#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = (*count_data)[2];
-#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = (*count_data)[3];
-#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = (*count_data)[4];
-#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = (*count_data)[5];
-#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[3] = (((((2 * _tmp15_) + (3 * _tmp16_)) + (5 * _tmp17_)) + (3 * _tmp18_)) + (2 * _tmp19_)) / 15;
-#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = (*count_data)[3];
-#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = (*count_data)[2];
-#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = (*count_data)[3];
-#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = (*count_data)[4];
-#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = (*count_data)[5];
-#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = (*count_data)[6];
-#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[4] = (((((2 * _tmp21_) + (3 * _tmp22_)) + (5 * _tmp23_)) + (3 * _tmp24_)) + (2 * _tmp25_)) / 15;
-#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = (*count_data)[4];
-#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = (*count_data)[255];
-#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = (*count_data)[254];
-#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = (*count_data)[253];
-#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[255] = (((5 * _tmp27_) + (3 * _tmp28_)) + (2 * _tmp29_)) / 10;
-#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = (*count_data)[255];
-#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = (*count_data)[255];
-#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = (*count_data)[254];
-#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = (*count_data)[253];
-#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = (*count_data)[252];
-#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[254] = ((((3 * _tmp31_) + (5 * _tmp32_)) + (3 * _tmp33_)) + (2 * _tmp34_)) / 13;
-#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = (*count_data)[254];
-#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = (*count_data)[255];
-#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = (*count_data)[254];
-#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = (*count_data)[253];
-#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = (*count_data)[252];
-#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = (*count_data)[251];
-#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[253] = (((((2 * _tmp36_) + (3 * _tmp37_)) + (5 * _tmp38_)) + (3 * _tmp39_)) + (2 * _tmp40_)) / 15;
-#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = (*count_data)[253];
-#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp42_ = (*count_data)[254];
-#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp43_ = (*count_data)[253];
-#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44_ = (*count_data)[252];
-#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp45_ = (*count_data)[251];
-#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46_ = (*count_data)[250];
-#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[252] = (((((2 * _tmp42_) + (3 * _tmp43_)) + (5 * _tmp44_)) + (3 * _tmp45_)) + (2 * _tmp46_)) / 15;
-#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp47_ = (*count_data)[252];
-#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp48_ = (*count_data)[253];
-#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp49_ = (*count_data)[252];
-#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50_ = (*count_data)[251];
-#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp51_ = (*count_data)[250];
-#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp52_ = (*count_data)[249];
-#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- (*count_data)[251] = (((((2 * _tmp48_) + (3 * _tmp49_)) + (5 * _tmp50_)) + (3 * _tmp51_)) + (2 * _tmp52_)) / 15;
-#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53_ = (*count_data)[251];
-#line 8684 "ColorTransformation.c"
-}
-
-
-static void
-rgb_histogram_prepare_qualitative_counts (RGBHistogram* self)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gint* _tmp2_;
- gint _tmp2__length1;
- gint* _tmp5_;
- gint* _tmp6_;
- gint* _tmp7_;
- gint* temp_red_counts = NULL;
- gint* _tmp8_;
- gint temp_red_counts_length1;
- gint _temp_red_counts_size_;
- gint* temp_green_counts = NULL;
- gint* _tmp9_;
- gint temp_green_counts_length1;
- gint _temp_green_counts_size_;
- gint* temp_blue_counts = NULL;
- gint* _tmp10_;
- gint temp_blue_counts_length1;
- gint _temp_blue_counts_size_;
- gint mean_qual_count = 0;
- gint _tmp81_;
- gint constrained_max_qual_count = 0;
- gint _tmp82_;
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = self->priv->qualitative_red_counts;
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2__length1 = self->priv->qualitative_red_counts_length1;
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp2_ != NULL) {
-#line 8720 "ColorTransformation.c"
- gint* _tmp3_;
- gint _tmp3__length1;
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = self->priv->qualitative_green_counts;
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3__length1 = self->priv->qualitative_green_counts_length1;
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _tmp3_ != NULL;
-#line 8729 "ColorTransformation.c"
- } else {
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = FALSE;
-#line 8733 "ColorTransformation.c"
- }
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp1_) {
-#line 8737 "ColorTransformation.c"
- gint* _tmp4_;
- gint _tmp4__length1;
-#line 997 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = self->priv->qualitative_blue_counts;
-#line 997 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4__length1 = self->priv->qualitative_blue_counts_length1;
-#line 997 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _tmp4_ != NULL;
-#line 8746 "ColorTransformation.c"
- } else {
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = FALSE;
-#line 8750 "ColorTransformation.c"
- }
-#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp0_) {
-#line 998 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return;
-#line 8756 "ColorTransformation.c"
- }
-#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = g_new0 (gint, 256);
-#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_red_counts = (g_free (self->priv->qualitative_red_counts), NULL);
-#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_red_counts = _tmp5_;
-#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_red_counts_length1 = 256;
-#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_qualitative_red_counts_size_ = self->priv->qualitative_red_counts_length1;
-#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = g_new0 (gint, 256);
-#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_green_counts = (g_free (self->priv->qualitative_green_counts), NULL);
-#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_green_counts = _tmp6_;
-#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_green_counts_length1 = 256;
-#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_qualitative_green_counts_size_ = self->priv->qualitative_green_counts_length1;
-#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = g_new0 (gint, 256);
-#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_blue_counts = (g_free (self->priv->qualitative_blue_counts), NULL);
-#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_blue_counts = _tmp7_;
-#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_blue_counts_length1 = 256;
-#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_qualitative_blue_counts_size_ = self->priv->qualitative_blue_counts_length1;
-#line 1004 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = g_new0 (gint, 256);
-#line 1004 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_red_counts = _tmp8_;
-#line 1004 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_red_counts_length1 = 256;
-#line 1004 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _temp_red_counts_size_ = temp_red_counts_length1;
-#line 1005 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = g_new0 (gint, 256);
-#line 1005 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_green_counts = _tmp9_;
-#line 1005 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_green_counts_length1 = 256;
-#line 1005 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _temp_green_counts_size_ = temp_green_counts_length1;
-#line 1006 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = g_new0 (gint, 256);
-#line 1006 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_blue_counts = _tmp10_;
-#line 1006 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_blue_counts_length1 = 256;
-#line 1006 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _temp_blue_counts_size_ = temp_blue_counts_length1;
-#line 8812 "ColorTransformation.c"
- {
- gint i = 0;
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 8817 "ColorTransformation.c"
- {
- gboolean _tmp11_ = FALSE;
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = TRUE;
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 8824 "ColorTransformation.c"
- gint _tmp13_;
- gint* _tmp14_;
- gint _tmp14__length1;
- gint _tmp15_;
- gint* _tmp16_;
- gint _tmp16__length1;
- gint _tmp17_;
- gint _tmp18_;
- gint* _tmp19_;
- gint _tmp19__length1;
- gint _tmp20_;
- gint* _tmp21_;
- gint _tmp21__length1;
- gint _tmp22_;
- gint _tmp23_;
- gint* _tmp24_;
- gint _tmp24__length1;
- gint _tmp25_;
- gint* _tmp26_;
- gint _tmp26__length1;
- gint _tmp27_;
- gint _tmp28_;
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp11_) {
-#line 8849 "ColorTransformation.c"
- gint _tmp12_;
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = i;
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp12_ + 1;
-#line 8855 "ColorTransformation.c"
- }
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = FALSE;
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = i;
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp13_ < 256)) {
-#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 8865 "ColorTransformation.c"
- }
-#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = self->priv->qualitative_red_counts;
-#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14__length1 = self->priv->qualitative_red_counts_length1;
-#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = i;
-#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = self->priv->red_counts;
-#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16__length1 = self->priv->red_counts_length1;
-#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = i;
-#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_[_tmp15_] = rgb_histogram_correct_snap_from_quantization (self, _tmp16_, _tmp16__length1, _tmp17_);
-#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = _tmp14_[_tmp15_];
-#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = self->priv->qualitative_green_counts;
-#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19__length1 = self->priv->qualitative_green_counts_length1;
-#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = i;
-#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = self->priv->green_counts;
-#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21__length1 = self->priv->green_counts_length1;
-#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = i;
-#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_[_tmp20_] = rgb_histogram_correct_snap_from_quantization (self, _tmp21_, _tmp21__length1, _tmp22_);
-#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = _tmp19_[_tmp20_];
-#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = self->priv->qualitative_blue_counts;
-#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = i;
-#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = self->priv->blue_counts;
-#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26__length1 = self->priv->blue_counts_length1;
-#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = i;
-#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_[_tmp25_] = rgb_histogram_correct_snap_from_quantization (self, _tmp26_, _tmp26__length1, _tmp27_);
-#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = _tmp24_[_tmp25_];
-#line 8915 "ColorTransformation.c"
- }
- }
- }
- {
- gint i = 0;
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 8923 "ColorTransformation.c"
- {
- gboolean _tmp29_ = FALSE;
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = TRUE;
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 8930 "ColorTransformation.c"
- gint _tmp31_;
- gint* _tmp32_;
- gint _tmp32__length1;
- gint _tmp33_;
- gint* _tmp34_;
- gint _tmp34__length1;
- gint _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- gint* _tmp38_;
- gint _tmp38__length1;
- gint _tmp39_;
- gint* _tmp40_;
- gint _tmp40__length1;
- gint _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- gint* _tmp44_;
- gint _tmp44__length1;
- gint _tmp45_;
- gint* _tmp46_;
- gint _tmp46__length1;
- gint _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp29_) {
-#line 8958 "ColorTransformation.c"
- gint _tmp30_;
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = i;
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp30_ + 1;
-#line 8964 "ColorTransformation.c"
- }
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = FALSE;
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = i;
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp31_ < 256)) {
-#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 8974 "ColorTransformation.c"
- }
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = temp_red_counts;
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32__length1 = temp_red_counts_length1;
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = i;
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = self->priv->qualitative_red_counts;
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34__length1 = self->priv->qualitative_red_counts_length1;
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = i;
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = _tmp34_[_tmp35_];
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_[_tmp33_] = _tmp36_;
-#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = _tmp32_[_tmp33_];
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = temp_green_counts;
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38__length1 = temp_green_counts_length1;
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = i;
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = self->priv->qualitative_green_counts;
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40__length1 = self->priv->qualitative_green_counts_length1;
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = i;
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp42_ = _tmp40_[_tmp41_];
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_[_tmp39_] = _tmp42_;
-#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp43_ = _tmp38_[_tmp39_];
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44_ = temp_blue_counts;
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44__length1 = temp_blue_counts_length1;
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp45_ = i;
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46_ = self->priv->qualitative_blue_counts;
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp47_ = i;
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp48_ = _tmp46_[_tmp47_];
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44_[_tmp45_] = _tmp48_;
-#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp49_ = _tmp44_[_tmp45_];
-#line 9030 "ColorTransformation.c"
- }
- }
- }
- {
- gint i = 0;
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 9038 "ColorTransformation.c"
- {
- gboolean _tmp50_ = FALSE;
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50_ = TRUE;
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 9045 "ColorTransformation.c"
- gint _tmp52_;
- gint* _tmp53_;
- gint _tmp53__length1;
- gint _tmp54_;
- gint* _tmp55_;
- gint _tmp55__length1;
- gint _tmp56_;
- gint _tmp57_;
- gint* _tmp58_;
- gint _tmp58__length1;
- gint _tmp59_;
- gint* _tmp60_;
- gint _tmp60__length1;
- gint _tmp61_;
- gint _tmp62_;
- gint* _tmp63_;
- gint _tmp63__length1;
- gint _tmp64_;
- gint* _tmp65_;
- gint _tmp65__length1;
- gint _tmp66_;
- gint _tmp67_;
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp50_) {
-#line 9070 "ColorTransformation.c"
- gint _tmp51_;
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp51_ = i;
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp51_ + 1;
-#line 9076 "ColorTransformation.c"
- }
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50_ = FALSE;
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp52_ = i;
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp52_ < 256)) {
-#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 9086 "ColorTransformation.c"
- }
-#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53_ = self->priv->qualitative_red_counts;
-#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53__length1 = self->priv->qualitative_red_counts_length1;
-#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp54_ = i;
-#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp55_ = temp_red_counts;
-#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp55__length1 = temp_red_counts_length1;
-#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp56_ = i;
-#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53_[_tmp54_] = rgb_histogram_correct_snap_to_quantization (self, _tmp55_, _tmp55__length1, _tmp56_);
-#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp57_ = _tmp53_[_tmp54_];
-#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp58_ = self->priv->qualitative_green_counts;
-#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp58__length1 = self->priv->qualitative_green_counts_length1;
-#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp59_ = i;
-#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp60_ = temp_green_counts;
-#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp60__length1 = temp_green_counts_length1;
-#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp61_ = i;
-#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp58_[_tmp59_] = rgb_histogram_correct_snap_to_quantization (self, _tmp60_, _tmp60__length1, _tmp61_);
-#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp62_ = _tmp58_[_tmp59_];
-#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp63_ = self->priv->qualitative_blue_counts;
-#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp63__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp64_ = i;
-#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp65_ = temp_blue_counts;
-#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp65__length1 = temp_blue_counts_length1;
-#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp66_ = i;
-#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp63_[_tmp64_] = rgb_histogram_correct_snap_to_quantization (self, _tmp65_, _tmp65__length1, _tmp66_);
-#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp67_ = _tmp63_[_tmp64_];
-#line 9136 "ColorTransformation.c"
- }
- }
- }
-#line 1040 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- mean_qual_count = 0;
-#line 9142 "ColorTransformation.c"
- {
- gint i = 0;
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 9147 "ColorTransformation.c"
- {
- gboolean _tmp68_ = FALSE;
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp68_ = TRUE;
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 9154 "ColorTransformation.c"
- gint _tmp70_;
- gint _tmp71_;
- gint* _tmp72_;
- gint _tmp72__length1;
- gint _tmp73_;
- gint _tmp74_;
- gint* _tmp75_;
- gint _tmp75__length1;
- gint _tmp76_;
- gint _tmp77_;
- gint* _tmp78_;
- gint _tmp78__length1;
- gint _tmp79_;
- gint _tmp80_;
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp68_) {
-#line 9171 "ColorTransformation.c"
- gint _tmp69_;
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp69_ = i;
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp69_ + 1;
-#line 9177 "ColorTransformation.c"
- }
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp68_ = FALSE;
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp70_ = i;
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp70_ < 256)) {
-#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 9187 "ColorTransformation.c"
- }
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp71_ = mean_qual_count;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp72_ = self->priv->qualitative_red_counts;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp72__length1 = self->priv->qualitative_red_counts_length1;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp73_ = i;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp74_ = _tmp72_[_tmp73_];
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp75_ = self->priv->qualitative_green_counts;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp75__length1 = self->priv->qualitative_green_counts_length1;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp76_ = i;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp77_ = _tmp75_[_tmp76_];
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp78_ = self->priv->qualitative_blue_counts;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp78__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp79_ = i;
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp80_ = _tmp78_[_tmp79_];
-#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- mean_qual_count = _tmp71_ + ((_tmp74_ + _tmp77_) + _tmp80_);
-#line 9217 "ColorTransformation.c"
- }
- }
- }
-#line 1045 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp81_ = mean_qual_count;
-#line 1045 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- mean_qual_count = _tmp81_ / (256 * 3);
-#line 1046 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp82_ = mean_qual_count;
-#line 1046 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- constrained_max_qual_count = 8 * _tmp82_;
-#line 9229 "ColorTransformation.c"
- {
- gint i = 0;
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 9234 "ColorTransformation.c"
- {
- gboolean _tmp83_ = FALSE;
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp83_ = TRUE;
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 9241 "ColorTransformation.c"
- gint _tmp85_;
- gint* _tmp86_;
- gint _tmp86__length1;
- gint _tmp87_;
- gint _tmp88_;
- gint _tmp89_;
- gint* _tmp94_;
- gint _tmp94__length1;
- gint _tmp95_;
- gint _tmp96_;
- gint _tmp97_;
- gint* _tmp102_;
- gint _tmp102__length1;
- gint _tmp103_;
- gint _tmp104_;
- gint _tmp105_;
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp83_) {
-#line 9260 "ColorTransformation.c"
- gint _tmp84_;
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp84_ = i;
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp84_ + 1;
-#line 9266 "ColorTransformation.c"
- }
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp83_ = FALSE;
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp85_ = i;
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp85_ < 256)) {
-#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 9276 "ColorTransformation.c"
- }
-#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp86_ = self->priv->qualitative_red_counts;
-#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp86__length1 = self->priv->qualitative_red_counts_length1;
-#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp87_ = i;
-#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp88_ = _tmp86_[_tmp87_];
-#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp89_ = constrained_max_qual_count;
-#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp88_ > _tmp89_) {
-#line 9290 "ColorTransformation.c"
- gint* _tmp90_;
- gint _tmp90__length1;
- gint _tmp91_;
- gint _tmp92_;
- gint _tmp93_;
-#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp90_ = self->priv->qualitative_red_counts;
-#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp90__length1 = self->priv->qualitative_red_counts_length1;
-#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp91_ = i;
-#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp92_ = constrained_max_qual_count;
-#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp90_[_tmp91_] = _tmp92_;
-#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp93_ = _tmp90_[_tmp91_];
-#line 9308 "ColorTransformation.c"
- }
-#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp94_ = self->priv->qualitative_green_counts;
-#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp94__length1 = self->priv->qualitative_green_counts_length1;
-#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp95_ = i;
-#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp96_ = _tmp94_[_tmp95_];
-#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp97_ = constrained_max_qual_count;
-#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp96_ > _tmp97_) {
-#line 9322 "ColorTransformation.c"
- gint* _tmp98_;
- gint _tmp98__length1;
- gint _tmp99_;
- gint _tmp100_;
- gint _tmp101_;
-#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp98_ = self->priv->qualitative_green_counts;
-#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp98__length1 = self->priv->qualitative_green_counts_length1;
-#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp99_ = i;
-#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp100_ = constrained_max_qual_count;
-#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp98_[_tmp99_] = _tmp100_;
-#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp101_ = _tmp98_[_tmp99_];
-#line 9340 "ColorTransformation.c"
- }
-#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp102_ = self->priv->qualitative_blue_counts;
-#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp102__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp103_ = i;
-#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp104_ = _tmp102_[_tmp103_];
-#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp105_ = constrained_max_qual_count;
-#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp104_ > _tmp105_) {
-#line 9354 "ColorTransformation.c"
- gint* _tmp106_;
- gint _tmp106__length1;
- gint _tmp107_;
- gint _tmp108_;
- gint _tmp109_;
-#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp106_ = self->priv->qualitative_blue_counts;
-#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp106__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp107_ = i;
-#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp108_ = constrained_max_qual_count;
-#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp106_[_tmp107_] = _tmp108_;
-#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp109_ = _tmp106_[_tmp107_];
-#line 9372 "ColorTransformation.c"
- }
- }
- }
- }
-#line 1058 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_smooth_extrema (self, &self->priv->qualitative_red_counts, &self->priv->qualitative_red_counts_length1);
-#line 1059 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_smooth_extrema (self, &self->priv->qualitative_green_counts, &self->priv->qualitative_green_counts_length1);
-#line 1060 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_smooth_extrema (self, &self->priv->qualitative_blue_counts, &self->priv->qualitative_blue_counts_length1);
-#line 995 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_blue_counts = (g_free (temp_blue_counts), NULL);
-#line 995 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_green_counts = (g_free (temp_green_counts), NULL);
-#line 995 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- temp_red_counts = (g_free (temp_red_counts), NULL);
-#line 9389 "ColorTransformation.c"
-}
-
-
-GdkPixbuf*
-rgb_histogram_get_graphic (RGBHistogram* self)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp117_;
- GdkPixbuf* _tmp118_;
-#line 1064 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->graphic;
-#line 1064 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp0_ == NULL) {
-#line 9404 "ColorTransformation.c"
- gint max_count = 0;
- GdkPixbuf* _tmp25_;
- gint rowstride = 0;
- GdkPixbuf* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint sample_bytes = 0;
- GdkPixbuf* _tmp29_;
- gint pixel_bytes = 0;
- gint _tmp30_;
- GdkPixbuf* _tmp31_;
- gdouble scale_bar = 0.0;
- gint _tmp32_;
- guchar* pixel_data = NULL;
- GdkPixbuf* _tmp33_;
- guint8* _tmp34_;
- gint pixel_data_length1;
- gint _pixel_data_size_;
- gint _tmp35_;
-#line 1065 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_prepare_qualitative_counts (self);
-#line 1066 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- max_count = 0;
-#line 9428 "ColorTransformation.c"
- {
- gint i = 0;
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 9433 "ColorTransformation.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = TRUE;
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 9440 "ColorTransformation.c"
- gint _tmp3_;
- gint* _tmp4_;
- gint _tmp4__length1;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint* _tmp11_;
- gint _tmp11__length1;
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint* _tmp18_;
- gint _tmp18__length1;
- gint _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp1_) {
-#line 9459 "ColorTransformation.c"
- gint _tmp2_;
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = i;
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp2_ + 1;
-#line 9465 "ColorTransformation.c"
- }
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = FALSE;
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = i;
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp3_ < 256)) {
-#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 9475 "ColorTransformation.c"
- }
-#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = self->priv->qualitative_red_counts;
-#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4__length1 = self->priv->qualitative_red_counts_length1;
-#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = i;
-#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = _tmp4_[_tmp5_];
-#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = max_count;
-#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp6_ > _tmp7_) {
-#line 9489 "ColorTransformation.c"
- gint* _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- gint _tmp10_;
-#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = self->priv->qualitative_red_counts;
-#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8__length1 = self->priv->qualitative_red_counts_length1;
-#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = i;
-#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = _tmp8_[_tmp9_];
-#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- max_count = _tmp10_;
-#line 9504 "ColorTransformation.c"
- }
-#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = self->priv->qualitative_green_counts;
-#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11__length1 = self->priv->qualitative_green_counts_length1;
-#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = i;
-#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = _tmp11_[_tmp12_];
-#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = max_count;
-#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp13_ > _tmp14_) {
-#line 9518 "ColorTransformation.c"
- gint* _tmp15_;
- gint _tmp15__length1;
- gint _tmp16_;
- gint _tmp17_;
-#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = self->priv->qualitative_green_counts;
-#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15__length1 = self->priv->qualitative_green_counts_length1;
-#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = i;
-#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = _tmp15_[_tmp16_];
-#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- max_count = _tmp17_;
-#line 9533 "ColorTransformation.c"
- }
-#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = self->priv->qualitative_blue_counts;
-#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = i;
-#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = _tmp18_[_tmp19_];
-#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = max_count;
-#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp20_ > _tmp21_) {
-#line 9547 "ColorTransformation.c"
- gint* _tmp22_;
- gint _tmp22__length1;
- gint _tmp23_;
- gint _tmp24_;
-#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = self->priv->qualitative_blue_counts;
-#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = i;
-#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = _tmp22_[_tmp23_];
-#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- max_count = _tmp24_;
-#line 9562 "ColorTransformation.c"
- }
- }
- }
- }
-#line 1076 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, RGB_HISTOGRAM_GRAPHIC_WIDTH, RGB_HISTOGRAM_GRAPHIC_HEIGHT);
-#line 1076 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (self->priv->graphic);
-#line 1076 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->graphic = _tmp25_;
-#line 1079 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = self->priv->graphic;
-#line 1079 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = gdk_pixbuf_get_rowstride (_tmp26_);
-#line 1079 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = _tmp27_;
-#line 1079 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rowstride = _tmp28_;
-#line 1080 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = self->priv->graphic;
-#line 1080 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- sample_bytes = gdk_pixbuf_get_bits_per_sample (_tmp29_) / 8;
-#line 1081 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = sample_bytes;
-#line 1081 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = self->priv->graphic;
-#line 1081 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_bytes = _tmp30_ * gdk_pixbuf_get_n_channels (_tmp31_);
-#line 1083 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = max_count;
-#line 1083 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- scale_bar = (0.98 * ((gdouble) RGB_HISTOGRAM_GRAPHIC_HEIGHT)) / ((gdouble) _tmp32_);
-#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = self->priv->graphic;
-#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = gdk_pixbuf_get_pixels (_tmp33_);
-#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_data = _tmp34_;
-#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_data_length1 = -1;
-#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_data_size_ = pixel_data_length1;
-#line 1090 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = max_count;
-#line 1090 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp35_ == 0) {
-#line 9609 "ColorTransformation.c"
- GdkPixbuf* _tmp49_;
- GdkPixbuf* _tmp50_;
- {
- gint i = 0;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 9616 "ColorTransformation.c"
- {
- gboolean _tmp36_ = FALSE;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = TRUE;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 9623 "ColorTransformation.c"
- gint _tmp38_;
- gint _tmp39_;
- GdkPixbuf* _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- GdkPixbuf* _tmp43_;
- gint _tmp44_;
- gint _tmp45_;
- guchar* _tmp46_;
- gint _tmp46__length1;
- gint _tmp47_;
- guchar _tmp48_;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp36_) {
-#line 9638 "ColorTransformation.c"
- gint _tmp37_;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = i;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp37_ + 1;
-#line 9644 "ColorTransformation.c"
- }
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = FALSE;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = i;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = pixel_bytes;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = self->priv->graphic;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = gdk_pixbuf_get_width (_tmp40_);
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp42_ = _tmp41_;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp43_ = self->priv->graphic;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44_ = gdk_pixbuf_get_height (_tmp43_);
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp45_ = _tmp44_;
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp38_ < ((_tmp39_ * _tmp42_) * _tmp45_))) {
-#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 9668 "ColorTransformation.c"
- }
-#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46_ = pixel_data;
-#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46__length1 = pixel_data_length1;
-#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp47_ = i;
-#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46_[_tmp47_] = RGB_HISTOGRAM_UNMARKED_BACKGROUND;
-#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp48_ = _tmp46_[_tmp47_];
-#line 9680 "ColorTransformation.c"
- }
- }
- }
-#line 1094 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp49_ = self->priv->graphic;
-#line 1094 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50_ = _g_object_ref0 (_tmp49_);
-#line 1094 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp50_;
-#line 1094 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 9692 "ColorTransformation.c"
- }
- {
- gint x = 0;
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- x = 0;
-#line 9698 "ColorTransformation.c"
- {
- gboolean _tmp51_ = FALSE;
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp51_ = TRUE;
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 9705 "ColorTransformation.c"
- gint _tmp53_;
- gint red_bar_height = 0;
- gint* _tmp54_;
- gint _tmp54__length1;
- gint _tmp55_;
- gint _tmp56_;
- gdouble _tmp57_;
- gint green_bar_height = 0;
- gint* _tmp58_;
- gint _tmp58__length1;
- gint _tmp59_;
- gint _tmp60_;
- gdouble _tmp61_;
- gint blue_bar_height = 0;
- gint* _tmp62_;
- gint _tmp62__length1;
- gint _tmp63_;
- gint _tmp64_;
- gdouble _tmp65_;
- gint max_bar_height = 0;
- gint _tmp66_;
- gint _tmp67_;
- gint _tmp68_;
- gint y = 0;
- gint pixel_index = 0;
- gint _tmp69_;
- gint _tmp70_;
- gint _tmp71_;
- gint _tmp72_;
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp51_) {
-#line 9737 "ColorTransformation.c"
- gint _tmp52_;
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp52_ = x;
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- x = _tmp52_ + 1;
-#line 9743 "ColorTransformation.c"
- }
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp51_ = FALSE;
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53_ = x;
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp53_ < 256)) {
-#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 9753 "ColorTransformation.c"
- }
-#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp54_ = self->priv->qualitative_red_counts;
-#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp54__length1 = self->priv->qualitative_red_counts_length1;
-#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp55_ = x;
-#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp56_ = _tmp54_[_tmp55_];
-#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp57_ = scale_bar;
-#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- red_bar_height = (gint) (((gdouble) _tmp56_) * _tmp57_);
-#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp58_ = self->priv->qualitative_green_counts;
-#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp58__length1 = self->priv->qualitative_green_counts_length1;
-#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp59_ = x;
-#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp60_ = _tmp58_[_tmp59_];
-#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp61_ = scale_bar;
-#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- green_bar_height = (gint) (((gdouble) _tmp60_) * _tmp61_);
-#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp62_ = self->priv->qualitative_blue_counts;
-#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp62__length1 = self->priv->qualitative_blue_counts_length1;
-#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp63_ = x;
-#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp64_ = _tmp62_[_tmp63_];
-#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp65_ = scale_bar;
-#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- blue_bar_height = (gint) (((gdouble) _tmp64_) * _tmp65_);
-#line 1105 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp66_ = red_bar_height;
-#line 1105 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp67_ = green_bar_height;
-#line 1105 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp68_ = blue_bar_height;
-#line 1105 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- max_bar_height = MAX (MAX (_tmp66_, _tmp67_), _tmp68_);
-#line 1108 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- y = RGB_HISTOGRAM_GRAPHIC_HEIGHT - 1;
-#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp69_ = x;
-#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp70_ = pixel_bytes;
-#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp71_ = y;
-#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp72_ = rowstride;
-#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_index = (_tmp69_ * _tmp70_) + (_tmp71_ * _tmp72_);
-#line 9811 "ColorTransformation.c"
- {
- gboolean _tmp73_ = FALSE;
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp73_ = TRUE;
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 9818 "ColorTransformation.c"
- gint _tmp75_;
- gint _tmp76_;
- guchar* _tmp77_;
- gint _tmp77__length1;
- gint _tmp78_;
- guchar _tmp79_;
- guchar* _tmp80_;
- gint _tmp80__length1;
- gint _tmp81_;
- guchar _tmp82_;
- guchar* _tmp83_;
- gint _tmp83__length1;
- gint _tmp84_;
- guchar _tmp85_;
- gint _tmp86_;
- gint _tmp87_;
- gint _tmp91_;
- gint _tmp92_;
- gint _tmp96_;
- gint _tmp97_;
- gint _tmp101_;
- gint _tmp102_;
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp73_) {
-#line 9843 "ColorTransformation.c"
- gint _tmp74_;
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp74_ = y;
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- y = _tmp74_ - 1;
-#line 9849 "ColorTransformation.c"
- }
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp73_ = FALSE;
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp75_ = y;
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp76_ = max_bar_height;
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp75_ >= (RGB_HISTOGRAM_GRAPHIC_HEIGHT - _tmp76_))) {
-#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 9861 "ColorTransformation.c"
- }
-#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp77_ = pixel_data;
-#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp77__length1 = pixel_data_length1;
-#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp78_ = pixel_index;
-#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp77_[_tmp78_] = RGB_HISTOGRAM_MARKED_BACKGROUND;
-#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp79_ = _tmp77_[_tmp78_];
-#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp80_ = pixel_data;
-#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp80__length1 = pixel_data_length1;
-#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp81_ = pixel_index;
-#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp80_[_tmp81_ + 1] = RGB_HISTOGRAM_MARKED_BACKGROUND;
-#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp82_ = _tmp80_[_tmp81_ + 1];
-#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp83_ = pixel_data;
-#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp83__length1 = pixel_data_length1;
-#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp84_ = pixel_index;
-#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp83_[_tmp84_ + 2] = RGB_HISTOGRAM_MARKED_BACKGROUND;
-#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp85_ = _tmp83_[_tmp84_ + 2];
-#line 1115 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp86_ = y;
-#line 1115 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp87_ = red_bar_height;
-#line 1115 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp86_ >= ((RGB_HISTOGRAM_GRAPHIC_HEIGHT - _tmp87_) - 1)) {
-#line 9899 "ColorTransformation.c"
- guchar* _tmp88_;
- gint _tmp88__length1;
- gint _tmp89_;
- guchar _tmp90_;
-#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp88_ = pixel_data;
-#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp88__length1 = pixel_data_length1;
-#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp89_ = pixel_index;
-#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp88_[_tmp89_] = RGB_HISTOGRAM_MARKED_FOREGROUND;
-#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp90_ = _tmp88_[_tmp89_];
-#line 9914 "ColorTransformation.c"
- }
-#line 1117 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp91_ = y;
-#line 1117 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp92_ = green_bar_height;
-#line 1117 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp91_ >= ((RGB_HISTOGRAM_GRAPHIC_HEIGHT - _tmp92_) - 1)) {
-#line 9922 "ColorTransformation.c"
- guchar* _tmp93_;
- gint _tmp93__length1;
- gint _tmp94_;
- guchar _tmp95_;
-#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp93_ = pixel_data;
-#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp93__length1 = pixel_data_length1;
-#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp94_ = pixel_index;
-#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp93_[_tmp94_ + 1] = RGB_HISTOGRAM_MARKED_FOREGROUND;
-#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp95_ = _tmp93_[_tmp94_ + 1];
-#line 9937 "ColorTransformation.c"
- }
-#line 1119 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp96_ = y;
-#line 1119 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp97_ = blue_bar_height;
-#line 1119 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp96_ >= ((RGB_HISTOGRAM_GRAPHIC_HEIGHT - _tmp97_) - 1)) {
-#line 9945 "ColorTransformation.c"
- guchar* _tmp98_;
- gint _tmp98__length1;
- gint _tmp99_;
- guchar _tmp100_;
-#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp98_ = pixel_data;
-#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp98__length1 = pixel_data_length1;
-#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp99_ = pixel_index;
-#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp98_[_tmp99_ + 2] = RGB_HISTOGRAM_MARKED_FOREGROUND;
-#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp100_ = _tmp98_[_tmp99_ + 2];
-#line 9960 "ColorTransformation.c"
- }
-#line 1122 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp101_ = pixel_index;
-#line 1122 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp102_ = rowstride;
-#line 1122 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_index = _tmp101_ - _tmp102_;
-#line 9968 "ColorTransformation.c"
- }
- }
- {
- gboolean _tmp103_ = FALSE;
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp103_ = TRUE;
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 9977 "ColorTransformation.c"
- gint _tmp105_;
- guchar* _tmp106_;
- gint _tmp106__length1;
- gint _tmp107_;
- guchar _tmp108_;
- guchar* _tmp109_;
- gint _tmp109__length1;
- gint _tmp110_;
- guchar _tmp111_;
- guchar* _tmp112_;
- gint _tmp112__length1;
- gint _tmp113_;
- guchar _tmp114_;
- gint _tmp115_;
- gint _tmp116_;
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp103_) {
-#line 9995 "ColorTransformation.c"
- gint _tmp104_;
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp104_ = y;
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- y = _tmp104_ - 1;
-#line 10001 "ColorTransformation.c"
- }
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp103_ = FALSE;
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp105_ = y;
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp105_ >= 0)) {
-#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 10011 "ColorTransformation.c"
- }
-#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp106_ = pixel_data;
-#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp106__length1 = pixel_data_length1;
-#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp107_ = pixel_index;
-#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp106_[_tmp107_] = RGB_HISTOGRAM_UNMARKED_BACKGROUND;
-#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp108_ = _tmp106_[_tmp107_];
-#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp109_ = pixel_data;
-#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp109__length1 = pixel_data_length1;
-#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp110_ = pixel_index;
-#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp109_[_tmp110_ + 1] = RGB_HISTOGRAM_UNMARKED_BACKGROUND;
-#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp111_ = _tmp109_[_tmp110_ + 1];
-#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp112_ = pixel_data;
-#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp112__length1 = pixel_data_length1;
-#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp113_ = pixel_index;
-#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp112_[_tmp113_ + 2] = RGB_HISTOGRAM_UNMARKED_BACKGROUND;
-#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp114_ = _tmp112_[_tmp113_ + 2];
-#line 1130 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp115_ = pixel_index;
-#line 1130 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp116_ = rowstride;
-#line 1130 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_index = _tmp115_ - _tmp116_;
-#line 10049 "ColorTransformation.c"
- }
- }
- }
- }
- }
- }
-#line 1135 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp117_ = self->priv->graphic;
-#line 1135 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp118_ = _g_object_ref0 (_tmp117_);
-#line 1135 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp118_;
-#line 1135 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 10064 "ColorTransformation.c"
-}
-
-
-static void
-value_rgb_histogram_init (GValue* value)
-{
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 10073 "ColorTransformation.c"
-}
-
-
-static void
-value_rgb_histogram_free_value (GValue* value)
-{
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (value->data[0].v_pointer) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_unref (value->data[0].v_pointer);
-#line 10084 "ColorTransformation.c"
- }
-}
-
-
-static void
-value_rgb_histogram_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (src_value->data[0].v_pointer) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = rgb_histogram_ref (src_value->data[0].v_pointer);
-#line 10097 "ColorTransformation.c"
- } else {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 10101 "ColorTransformation.c"
- }
-}
-
-
-static gpointer
-value_rgb_histogram_peek_pointer (const GValue* value)
-{
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 10111 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_rgb_histogram_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (collect_values[0].v_pointer) {
-#line 10123 "ColorTransformation.c"
- RGBHistogram * object;
- object = collect_values[0].v_pointer;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 10130 "ColorTransformation.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.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 10134 "ColorTransformation.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = rgb_histogram_ref (object);
-#line 10138 "ColorTransformation.c"
- } else {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 10142 "ColorTransformation.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 10146 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_rgb_histogram_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- RGBHistogram ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!object_p) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 10162 "ColorTransformation.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!value->data[0].v_pointer) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = NULL;
-#line 10168 "ColorTransformation.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = value->data[0].v_pointer;
-#line 10172 "ColorTransformation.c"
- } else {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = rgb_histogram_ref (value->data[0].v_pointer);
-#line 10176 "ColorTransformation.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 10180 "ColorTransformation.c"
-}
-
-
-GParamSpec*
-param_spec_rgb_histogram (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecRGBHistogram* spec;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_RGB_HISTOGRAM), NULL);
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return G_PARAM_SPEC (spec);
-#line 10200 "ColorTransformation.c"
-}
-
-
-gpointer
-value_get_rgb_histogram (const GValue* value)
-{
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_RGB_HISTOGRAM), NULL);
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 10211 "ColorTransformation.c"
-}
-
-
-void
-value_set_rgb_histogram (GValue* value,
- gpointer v_object)
-{
- RGBHistogram * old;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_RGB_HISTOGRAM));
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_RGB_HISTOGRAM));
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_ref (value->data[0].v_pointer);
-#line 10234 "ColorTransformation.c"
- } else {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 10238 "ColorTransformation.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_unref (old);
-#line 10244 "ColorTransformation.c"
- }
-}
-
-
-void
-value_take_rgb_histogram (GValue* value,
- gpointer v_object)
-{
- RGBHistogram * old;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_RGB_HISTOGRAM));
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_RGB_HISTOGRAM));
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 10266 "ColorTransformation.c"
- } else {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 10270 "ColorTransformation.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_unref (old);
-#line 10276 "ColorTransformation.c"
- }
-}
-
-
-static void
-rgb_histogram_class_init (RGBHistogramClass * klass)
-{
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_histogram_parent_class = g_type_class_peek_parent (klass);
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((RGBHistogramClass *) klass)->finalize = rgb_histogram_finalize;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (RGBHistogramPrivate));
-#line 10290 "ColorTransformation.c"
-}
-
-
-static void
-rgb_histogram_instance_init (RGBHistogram * self)
-{
- gint* _tmp0_;
- gint* _tmp1_;
- gint* _tmp2_;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = RGB_HISTOGRAM_GET_PRIVATE (self);
-#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = g_new0 (gint, 256);
-#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->red_counts = _tmp0_;
-#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->red_counts_length1 = 256;
-#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_red_counts_size_ = self->priv->red_counts_length1;
-#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = g_new0 (gint, 256);
-#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->green_counts = _tmp1_;
-#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->green_counts_length1 = 256;
-#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_green_counts_size_ = self->priv->green_counts_length1;
-#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = g_new0 (gint, 256);
-#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->blue_counts = _tmp2_;
-#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->blue_counts_length1 = 256;
-#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_blue_counts_size_ = self->priv->blue_counts_length1;
-#line 893 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_red_counts = NULL;
-#line 893 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_red_counts_length1 = 0;
-#line 893 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_qualitative_red_counts_size_ = self->priv->qualitative_red_counts_length1;
-#line 894 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_green_counts = NULL;
-#line 894 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_green_counts_length1 = 0;
-#line 894 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_qualitative_green_counts_size_ = self->priv->qualitative_green_counts_length1;
-#line 895 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_blue_counts = NULL;
-#line 895 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_blue_counts_length1 = 0;
-#line 895 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_qualitative_blue_counts_size_ = self->priv->qualitative_blue_counts_length1;
-#line 896 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->graphic = NULL;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->ref_count = 1;
-#line 10348 "ColorTransformation.c"
-}
-
-
-static void
-rgb_histogram_finalize (RGBHistogram * obj)
-{
- RGBHistogram * self;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RGB_HISTOGRAM, RGBHistogram);
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_signal_handlers_destroy (self);
-#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->red_counts = (g_free (self->priv->red_counts), NULL);
-#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->green_counts = (g_free (self->priv->green_counts), NULL);
-#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->blue_counts = (g_free (self->priv->blue_counts), NULL);
-#line 893 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_red_counts = (g_free (self->priv->qualitative_red_counts), NULL);
-#line 894 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_green_counts = (g_free (self->priv->qualitative_green_counts), NULL);
-#line 895 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->qualitative_blue_counts = (g_free (self->priv->qualitative_blue_counts), NULL);
-#line 896 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_object_unref0 (self->priv->graphic);
-#line 10374 "ColorTransformation.c"
-}
-
-
-GType
-rgb_histogram_get_type (void)
-{
- static volatile gsize rgb_histogram_type_id__volatile = 0;
- if (g_once_init_enter (&rgb_histogram_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_rgb_histogram_init, value_rgb_histogram_free_value, value_rgb_histogram_copy_value, value_rgb_histogram_peek_pointer, "p", value_rgb_histogram_collect_value, "p", value_rgb_histogram_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (RGBHistogramClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rgb_histogram_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RGBHistogram), 0, (GInstanceInitFunc) rgb_histogram_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType rgb_histogram_type_id;
- rgb_histogram_type_id = g_type_register_fundamental (g_type_fundamental_next (), "RGBHistogram", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&rgb_histogram_type_id__volatile, rgb_histogram_type_id);
- }
- return rgb_histogram_type_id__volatile;
-}
-
-
-gpointer
-rgb_histogram_ref (gpointer instance)
-{
- RGBHistogram * self;
- self = instance;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return instance;
-#line 10403 "ColorTransformation.c"
-}
-
-
-void
-rgb_histogram_unref (gpointer instance)
-{
- RGBHistogram * self;
- self = instance;
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- RGB_HISTOGRAM_GET_CLASS (self)->finalize (self);
-#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 10418 "ColorTransformation.c"
- }
-}
-
-
-IntensityHistogram*
-intensity_histogram_construct (GType object_type,
- GdkPixbuf* pixbuf)
-{
- IntensityHistogram* self = NULL;
- gint n_channels = 0;
- gint rowstride = 0;
- gint width = 0;
- gint height = 0;
- gint rowbytes = 0;
- gint _tmp0_;
- gint _tmp1_;
- guchar* pixels = NULL;
- guint8* _tmp2_;
- gint pixels_length1;
- gint _pixels_size_;
- gfloat pixel_count = 0.0F;
- gint _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- gfloat accumulator = 0.0F;
-#line 1144 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (IntensityHistogram*) g_type_create_instance (object_type);
-#line 1145 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- n_channels = gdk_pixbuf_get_n_channels (pixbuf);
-#line 1146 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rowstride = gdk_pixbuf_get_rowstride (pixbuf);
-#line 1147 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- width = gdk_pixbuf_get_width (pixbuf);
-#line 1148 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- height = gdk_pixbuf_get_height (pixbuf);
-#line 1149 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = n_channels;
-#line 1149 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = width;
-#line 1149 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rowbytes = _tmp0_ * _tmp1_;
-#line 1150 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = gdk_pixbuf_get_pixels (pixbuf);
-#line 1150 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixels = _tmp2_;
-#line 1150 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixels_length1 = -1;
-#line 1150 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixels_size_ = pixels_length1;
-#line 10469 "ColorTransformation.c"
- {
- gint j = 0;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- j = 0;
-#line 10474 "ColorTransformation.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = TRUE;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 10481 "ColorTransformation.c"
- gint _tmp5_;
- gint _tmp6_;
- gint row_start_index = 0;
- gint _tmp7_;
- gint _tmp8_;
- gint row_end_index = 0;
- gint _tmp9_;
- gint _tmp10_;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp3_) {
-#line 10492 "ColorTransformation.c"
- gint _tmp4_;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = j;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- j = _tmp4_ + 1;
-#line 10498 "ColorTransformation.c"
- }
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = FALSE;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = j;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = height;
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp5_ < _tmp6_)) {
-#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 10510 "ColorTransformation.c"
- }
-#line 1152 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = j;
-#line 1152 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = rowstride;
-#line 1152 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- row_start_index = _tmp7_ * _tmp8_;
-#line 1153 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = row_start_index;
-#line 1153 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = rowbytes;
-#line 1153 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- row_end_index = _tmp9_ + _tmp10_;
-#line 10524 "ColorTransformation.c"
- {
- gint i = 0;
- gint _tmp11_;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = row_start_index;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp11_;
-#line 10532 "ColorTransformation.c"
- {
- gboolean _tmp12_ = FALSE;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = TRUE;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 10539 "ColorTransformation.c"
- gint _tmp15_;
- gint _tmp16_;
- RGBAnalyticPixel pix_rgb = {0};
- guchar* _tmp17_;
- gint _tmp17__length1;
- gint _tmp18_;
- guchar _tmp19_;
- guchar* _tmp20_;
- gint _tmp20__length1;
- gint _tmp21_;
- guchar _tmp22_;
- guchar* _tmp23_;
- gint _tmp23__length1;
- gint _tmp24_;
- guchar _tmp25_;
- HSVAnalyticPixel pix_hsi = {0};
- RGBAnalyticPixel _tmp26_;
- gint quantized_light_value = 0;
- HSVAnalyticPixel _tmp27_;
- gfloat _tmp28_;
- gint* _tmp29_;
- gint _tmp29__length1;
- gint _tmp30_;
- gint _tmp31_;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp12_) {
-#line 10566 "ColorTransformation.c"
- gint _tmp13_;
- gint _tmp14_;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = i;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = n_channels;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp13_ + _tmp14_;
-#line 10575 "ColorTransformation.c"
- }
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = FALSE;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = i;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = row_end_index;
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp15_ < _tmp16_)) {
-#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 10587 "ColorTransformation.c"
- }
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = pixels;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17__length1 = pixels_length1;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = i;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = _tmp17_[_tmp18_];
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = pixels;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20__length1 = pixels_length1;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = i;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = _tmp20_[_tmp21_ + 1];
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = pixels;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23__length1 = pixels_length1;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = i;
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = _tmp23_[_tmp24_ + 2];
-#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- rgb_analytic_pixel_init_from_quantized_components (&pix_rgb, _tmp19_, _tmp22_, _tmp25_);
-#line 1157 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = pix_rgb;
-#line 1157 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hsv_analytic_pixel_init_from_rgb (&pix_hsi, &_tmp26_);
-#line 1158 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = pix_hsi;
-#line 1158 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = _tmp27_.light_value;
-#line 1158 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- quantized_light_value = (gint) (_tmp28_ * 255.0f);
-#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = self->priv->counts;
-#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29__length1 = self->priv->counts_length1;
-#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = quantized_light_value;
-#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_[_tmp30_] += 1;
-#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = _tmp29_[_tmp30_];
-#line 10635 "ColorTransformation.c"
- }
- }
- }
- }
- }
- }
-#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = gdk_pixbuf_get_width (pixbuf);
-#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = _tmp32_;
-#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = gdk_pixbuf_get_height (pixbuf);
-#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = _tmp34_;
-#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_count = (gfloat) (_tmp33_ * _tmp35_);
-#line 1164 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- accumulator = 0.0f;
-#line 10654 "ColorTransformation.c"
- {
- gint i = 0;
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 10659 "ColorTransformation.c"
- {
- gboolean _tmp36_ = FALSE;
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = TRUE;
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 10666 "ColorTransformation.c"
- gint _tmp38_;
- gfloat* _tmp39_;
- gint _tmp39__length1;
- gint _tmp40_;
- gint* _tmp41_;
- gint _tmp41__length1;
- gint _tmp42_;
- gint _tmp43_;
- gfloat _tmp44_;
- gfloat _tmp45_;
- gfloat _tmp46_;
- gfloat* _tmp47_;
- gint _tmp47__length1;
- gint _tmp48_;
- gfloat _tmp49_;
- gfloat* _tmp50_;
- gint _tmp50__length1;
- gint _tmp51_;
- gfloat _tmp52_;
- gfloat _tmp53_;
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp36_) {
-#line 10689 "ColorTransformation.c"
- gint _tmp37_;
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = i;
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp37_ + 1;
-#line 10695 "ColorTransformation.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = FALSE;
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = i;
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp38_ < 256)) {
-#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 10705 "ColorTransformation.c"
- }
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = self->priv->probabilities;
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39__length1 = self->priv->probabilities_length1;
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = i;
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = self->priv->counts;
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41__length1 = self->priv->counts_length1;
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp42_ = i;
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp43_ = _tmp41_[_tmp42_];
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44_ = pixel_count;
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_[_tmp40_] = ((gfloat) _tmp43_) / _tmp44_;
-#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp45_ = _tmp39_[_tmp40_];
-#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46_ = accumulator;
-#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp47_ = self->priv->probabilities;
-#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp47__length1 = self->priv->probabilities_length1;
-#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp48_ = i;
-#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp49_ = _tmp47_[_tmp48_];
-#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- accumulator = _tmp46_ + _tmp49_;
-#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50_ = self->priv->cumulative_probabilities;
-#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50__length1 = self->priv->cumulative_probabilities_length1;
-#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp51_ = i;
-#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp52_ = accumulator;
-#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50_[_tmp51_] = _tmp52_;
-#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53_ = _tmp50_[_tmp51_];
-#line 10751 "ColorTransformation.c"
- }
- }
- }
-#line 1144 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 10757 "ColorTransformation.c"
-}
-
-
-IntensityHistogram*
-intensity_histogram_new (GdkPixbuf* pixbuf)
-{
-#line 1144 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return intensity_histogram_construct (TYPE_INTENSITY_HISTOGRAM, pixbuf);
-#line 10766 "ColorTransformation.c"
-}
-
-
-gfloat
-intensity_histogram_get_cumulative_probability (IntensityHistogram* self,
- gint level)
-{
- gfloat result = 0.0F;
- gfloat* _tmp0_;
- gint _tmp0__length1;
- gfloat _tmp1_;
-#line 1174 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- level = CLAMP (level, 0, 255);
-#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->cumulative_probabilities;
-#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0__length1 = self->priv->cumulative_probabilities_length1;
-#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _tmp0_[level];
-#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp1_;
-#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 10790 "ColorTransformation.c"
-}
-
-
-static void
-value_intensity_histogram_init (GValue* value)
-{
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 10799 "ColorTransformation.c"
-}
-
-
-static void
-value_intensity_histogram_free_value (GValue* value)
-{
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (value->data[0].v_pointer) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- intensity_histogram_unref (value->data[0].v_pointer);
-#line 10810 "ColorTransformation.c"
- }
-}
-
-
-static void
-value_intensity_histogram_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (src_value->data[0].v_pointer) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = intensity_histogram_ref (src_value->data[0].v_pointer);
-#line 10823 "ColorTransformation.c"
- } else {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 10827 "ColorTransformation.c"
- }
-}
-
-
-static gpointer
-value_intensity_histogram_peek_pointer (const GValue* value)
-{
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 10837 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_intensity_histogram_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (collect_values[0].v_pointer) {
-#line 10849 "ColorTransformation.c"
- IntensityHistogram * object;
- object = collect_values[0].v_pointer;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 10856 "ColorTransformation.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.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 10860 "ColorTransformation.c"
- }
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = intensity_histogram_ref (object);
-#line 10864 "ColorTransformation.c"
- } else {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 10868 "ColorTransformation.c"
- }
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 10872 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_intensity_histogram_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- IntensityHistogram ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!object_p) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 10888 "ColorTransformation.c"
- }
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!value->data[0].v_pointer) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = NULL;
-#line 10894 "ColorTransformation.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = value->data[0].v_pointer;
-#line 10898 "ColorTransformation.c"
- } else {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = intensity_histogram_ref (value->data[0].v_pointer);
-#line 10902 "ColorTransformation.c"
- }
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 10906 "ColorTransformation.c"
-}
-
-
-GParamSpec*
-param_spec_intensity_histogram (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecIntensityHistogram* spec;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_INTENSITY_HISTOGRAM), NULL);
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return G_PARAM_SPEC (spec);
-#line 10926 "ColorTransformation.c"
-}
-
-
-gpointer
-value_get_intensity_histogram (const GValue* value)
-{
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INTENSITY_HISTOGRAM), NULL);
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 10937 "ColorTransformation.c"
-}
-
-
-void
-value_set_intensity_histogram (GValue* value,
- gpointer v_object)
-{
- IntensityHistogram * old;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INTENSITY_HISTOGRAM));
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_INTENSITY_HISTOGRAM));
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- intensity_histogram_ref (value->data[0].v_pointer);
-#line 10960 "ColorTransformation.c"
- } else {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 10964 "ColorTransformation.c"
- }
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- intensity_histogram_unref (old);
-#line 10970 "ColorTransformation.c"
- }
-}
-
-
-void
-value_take_intensity_histogram (GValue* value,
- gpointer v_object)
-{
- IntensityHistogram * old;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INTENSITY_HISTOGRAM));
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_INTENSITY_HISTOGRAM));
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 10992 "ColorTransformation.c"
- } else {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 10996 "ColorTransformation.c"
- }
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- intensity_histogram_unref (old);
-#line 11002 "ColorTransformation.c"
- }
-}
-
-
-static void
-intensity_histogram_class_init (IntensityHistogramClass * klass)
-{
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- intensity_histogram_parent_class = g_type_class_peek_parent (klass);
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((IntensityHistogramClass *) klass)->finalize = intensity_histogram_finalize;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (IntensityHistogramPrivate));
-#line 11016 "ColorTransformation.c"
-}
-
-
-static void
-intensity_histogram_instance_init (IntensityHistogram * self)
-{
- gint* _tmp0_;
- gfloat* _tmp1_;
- gfloat* _tmp2_;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = INTENSITY_HISTOGRAM_GET_PRIVATE (self);
-#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = g_new0 (gint, 256);
-#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->counts = _tmp0_;
-#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->counts_length1 = 256;
-#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_counts_size_ = self->priv->counts_length1;
-#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = g_new0 (gfloat, 256);
-#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->probabilities = _tmp1_;
-#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->probabilities_length1 = 256;
-#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_probabilities_size_ = self->priv->probabilities_length1;
-#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = g_new0 (gfloat, 256);
-#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->cumulative_probabilities = _tmp2_;
-#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->cumulative_probabilities_length1 = 256;
-#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->_cumulative_probabilities_size_ = self->priv->cumulative_probabilities_length1;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->ref_count = 1;
-#line 11054 "ColorTransformation.c"
-}
-
-
-static void
-intensity_histogram_finalize (IntensityHistogram * obj)
-{
- IntensityHistogram * self;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INTENSITY_HISTOGRAM, IntensityHistogram);
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_signal_handlers_destroy (self);
-#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->counts = (g_free (self->priv->counts), NULL);
-#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->probabilities = (g_free (self->priv->probabilities), NULL);
-#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->cumulative_probabilities = (g_free (self->priv->cumulative_probabilities), NULL);
-#line 11072 "ColorTransformation.c"
-}
-
-
-GType
-intensity_histogram_get_type (void)
-{
- static volatile gsize intensity_histogram_type_id__volatile = 0;
- if (g_once_init_enter (&intensity_histogram_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_intensity_histogram_init, value_intensity_histogram_free_value, value_intensity_histogram_copy_value, value_intensity_histogram_peek_pointer, "p", value_intensity_histogram_collect_value, "p", value_intensity_histogram_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (IntensityHistogramClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) intensity_histogram_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (IntensityHistogram), 0, (GInstanceInitFunc) intensity_histogram_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType intensity_histogram_type_id;
- intensity_histogram_type_id = g_type_register_fundamental (g_type_fundamental_next (), "IntensityHistogram", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&intensity_histogram_type_id__volatile, intensity_histogram_type_id);
- }
- return intensity_histogram_type_id__volatile;
-}
-
-
-gpointer
-intensity_histogram_ref (gpointer instance)
-{
- IntensityHistogram * self;
- self = instance;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return instance;
-#line 11101 "ColorTransformation.c"
-}
-
-
-void
-intensity_histogram_unref (gpointer instance)
-{
- IntensityHistogram * self;
- self = instance;
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- INTENSITY_HISTOGRAM_GET_CLASS (self)->finalize (self);
-#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 11116 "ColorTransformation.c"
- }
-}
-
-
-ExpansionTransformation*
-expansion_transformation_construct (GType object_type,
- IntensityHistogram* histogram)
-{
- ExpansionTransformation* self = NULL;
- gfloat LOW_KINK_MASS = 0.0F;
- gfloat HIGH_KINK_MASS = 0.0F;
-#line 1187 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (ExpansionTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION);
-#line 1189 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- LOW_KINK_MASS = EXPANSION_TRANSFORMATION_LOW_DISCARD_MASS;
-#line 1190 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->low_kink = 0;
-#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 11136 "ColorTransformation.c"
- gint _tmp0_;
- gfloat _tmp1_;
- gint _tmp2_;
-#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->low_kink;
-#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = LOW_KINK_MASS;
-#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(intensity_histogram_get_cumulative_probability (histogram, _tmp0_) < _tmp1_)) {
-#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 11148 "ColorTransformation.c"
- }
-#line 1192 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = self->priv->low_kink;
-#line 1192 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->low_kink = _tmp2_ + 1;
-#line 11154 "ColorTransformation.c"
- }
-#line 1194 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- HIGH_KINK_MASS = 1.0f - EXPANSION_TRANSFORMATION_HIGH_DISCARD_MASS;
-#line 1195 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->high_kink = 255;
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 11162 "ColorTransformation.c"
- gboolean _tmp3_ = FALSE;
- gint _tmp4_;
- gfloat _tmp5_;
- gint _tmp7_;
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = self->priv->high_kink;
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = HIGH_KINK_MASS;
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (intensity_histogram_get_cumulative_probability (histogram, _tmp4_) > _tmp5_) {
-#line 11173 "ColorTransformation.c"
- gint _tmp6_;
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = self->priv->high_kink;
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = _tmp6_ > 0;
-#line 11179 "ColorTransformation.c"
- } else {
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = FALSE;
-#line 11183 "ColorTransformation.c"
- }
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp3_) {
-#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 11189 "ColorTransformation.c"
- }
-#line 1197 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = self->priv->high_kink;
-#line 1197 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->high_kink = _tmp7_ - 1;
-#line 11195 "ColorTransformation.c"
- }
-#line 1199 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- expansion_transformation_build_remap_table (self);
-#line 1186 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 11201 "ColorTransformation.c"
-}
-
-
-ExpansionTransformation*
-expansion_transformation_new (IntensityHistogram* histogram)
-{
-#line 1186 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return expansion_transformation_construct (TYPE_EXPANSION_TRANSFORMATION, histogram);
-#line 11210 "ColorTransformation.c"
-}
-
-
-ExpansionTransformation*
-expansion_transformation_construct_from_extrema (GType object_type,
- gint black_point,
- gint white_point)
-{
- ExpansionTransformation* self = NULL;
-#line 1203 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (ExpansionTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION);
-#line 1205 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- white_point = CLAMP (white_point, 0, 255);
-#line 1206 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- black_point = CLAMP (black_point, 0, 255);
-#line 1208 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (black_point == white_point) {
-#line 1209 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (black_point == 0) {
-#line 1210 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- white_point = 1;
-#line 11232 "ColorTransformation.c"
- } else {
-#line 1211 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (white_point == 255) {
-#line 1212 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- black_point = 254;
-#line 11238 "ColorTransformation.c"
- } else {
-#line 1214 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- black_point = white_point - 1;
-#line 11242 "ColorTransformation.c"
- }
- }
- }
-#line 1217 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->low_kink = black_point;
-#line 1218 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->high_kink = white_point;
-#line 1220 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- expansion_transformation_build_remap_table (self);
-#line 1202 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 11254 "ColorTransformation.c"
-}
-
-
-ExpansionTransformation*
-expansion_transformation_new_from_extrema (gint black_point,
- gint white_point)
-{
-#line 1202 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return expansion_transformation_construct_from_extrema (TYPE_EXPANSION_TRANSFORMATION, black_point, white_point);
-#line 11264 "ColorTransformation.c"
-}
-
-
-static gchar*
-string_chug (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1241 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1241 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1242 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1242 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strchug (_tmp1_);
-#line 1243 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1243 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 11287 "ColorTransformation.c"
-}
-
-
-static gchar*
-string_chomp (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strchomp (_tmp1_);
-#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 11310 "ColorTransformation.c"
-}
-
-
-ExpansionTransformation*
-expansion_transformation_construct_from_string (GType object_type,
- const gchar* encoded_transformation)
-{
- ExpansionTransformation* self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gint num_captured = 0;
-#line 1224 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (ExpansionTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION);
-#line 1226 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_strcanon (encoded_transformation, "0123456789. ", ' ');
-#line 1227 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = string_chug (encoded_transformation);
-#line 1227 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = _tmp0_;
-#line 1227 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_free0 (_tmp1_);
-#line 1228 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = string_chomp (encoded_transformation);
-#line 1228 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = _tmp2_;
-#line 1228 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _g_free0 (_tmp3_);
-#line 1230 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- num_captured = sscanf (encoded_transformation, "%d %d", &self->priv->low_kink, &self->priv->high_kink);
-#line 1233 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _vala_assert (num_captured == 2, "num_captured == 2");
-#line 1235 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- expansion_transformation_build_remap_table (self);
-#line 1223 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 11348 "ColorTransformation.c"
-}
-
-
-ExpansionTransformation*
-expansion_transformation_new_from_string (const gchar* encoded_transformation)
-{
-#line 1223 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return expansion_transformation_construct_from_string (TYPE_EXPANSION_TRANSFORMATION, encoded_transformation);
-#line 11357 "ColorTransformation.c"
-}
-
-
-static void
-expansion_transformation_build_remap_table (ExpansionTransformation* self)
-{
- gfloat low_kink_f = 0.0F;
- gint _tmp0_;
- gfloat high_kink_f = 0.0F;
- gint _tmp1_;
- gfloat slope = 0.0F;
- gfloat _tmp2_;
- gfloat _tmp3_;
- gfloat intercept = 0.0F;
- gfloat _tmp4_;
- gfloat _tmp5_;
- gfloat _tmp6_;
- gint i = 0;
-#line 1239 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->low_kink;
-#line 1239 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- low_kink_f = ((gfloat) _tmp0_) / 255.0f;
-#line 1240 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->high_kink;
-#line 1240 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- high_kink_f = ((gfloat) _tmp1_) / 255.0f;
-#line 1242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = high_kink_f;
-#line 1242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = low_kink_f;
-#line 1242 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- slope = 1.0f / (_tmp2_ - _tmp3_);
-#line 1243 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = low_kink_f;
-#line 1243 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = high_kink_f;
-#line 1243 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = low_kink_f;
-#line 1243 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- intercept = -(_tmp4_ / (_tmp5_ - _tmp6_));
-#line 1245 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 11400 "ColorTransformation.c"
- {
- gboolean _tmp7_ = FALSE;
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = TRUE;
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 11407 "ColorTransformation.c"
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gfloat _tmp12_;
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp7_) {
-#line 11414 "ColorTransformation.c"
- gint _tmp8_;
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = i;
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp8_ + 1;
-#line 11420 "ColorTransformation.c"
- }
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = FALSE;
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = i;
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = self->priv->low_kink;
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp9_ <= _tmp10_)) {
-#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 11432 "ColorTransformation.c"
- }
-#line 1247 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = i;
-#line 1247 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp11_] = 0.0f;
-#line 1247 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp11_];
-#line 11440 "ColorTransformation.c"
- }
- }
- {
- gboolean _tmp13_ = FALSE;
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = TRUE;
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 11449 "ColorTransformation.c"
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gfloat _tmp18_;
- gint _tmp19_;
- gfloat _tmp20_;
- gfloat _tmp21_;
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp13_) {
-#line 11459 "ColorTransformation.c"
- gint _tmp14_;
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = i;
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp14_ + 1;
-#line 11465 "ColorTransformation.c"
- }
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = FALSE;
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = i;
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = self->priv->high_kink;
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp15_ < _tmp16_)) {
-#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 11477 "ColorTransformation.c"
- }
-#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = i;
-#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = slope;
-#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = i;
-#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = intercept;
-#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp17_] = (_tmp18_ * (((gfloat) _tmp19_) / 255.0f)) + _tmp20_;
-#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp17_];
-#line 11491 "ColorTransformation.c"
- }
- }
- {
- gboolean _tmp22_ = FALSE;
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = TRUE;
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 11500 "ColorTransformation.c"
- gint _tmp24_;
- gint _tmp25_;
- gfloat _tmp26_;
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp22_) {
-#line 11506 "ColorTransformation.c"
- gint _tmp23_;
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = i;
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp23_ + 1;
-#line 11512 "ColorTransformation.c"
- }
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = FALSE;
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = i;
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp24_ < 256)) {
-#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 11522 "ColorTransformation.c"
- }
-#line 1253 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = i;
-#line 1253 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp25_] = 1.0f;
-#line 1253 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp25_];
-#line 11530 "ColorTransformation.c"
- }
- }
-}
-
-
-static gchar*
-expansion_transformation_real_to_string (PixelTransformation* base)
-{
- ExpansionTransformation * self;
- gchar* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gchar* _tmp2_;
-#line 1256 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation);
-#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->low_kink;
-#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->high_kink;
-#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = g_strdup_printf ("{ %d, %d }", _tmp0_, _tmp1_);
-#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp2_;
-#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11556 "ColorTransformation.c"
-}
-
-
-gint
-expansion_transformation_get_white_point (ExpansionTransformation* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 1261 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->high_kink;
-#line 1261 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 1261 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11571 "ColorTransformation.c"
-}
-
-
-gint
-expansion_transformation_get_black_point (ExpansionTransformation* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 1265 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->low_kink;
-#line 1265 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 1265 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11586 "ColorTransformation.c"
-}
-
-
-static gboolean
-expansion_transformation_real_is_identity (PixelTransformation* base)
-{
- ExpansionTransformation * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 1268 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation);
-#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->low_kink;
-#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp1_ == 0) {
-#line 11603 "ColorTransformation.c"
- gint _tmp2_;
-#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = self->priv->high_kink;
-#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = _tmp2_ == 255;
-#line 11609 "ColorTransformation.c"
- } else {
-#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = FALSE;
-#line 11613 "ColorTransformation.c"
- }
-#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11619 "ColorTransformation.c"
-}
-
-
-static PixelTransformation*
-expansion_transformation_real_copy (PixelTransformation* base)
-{
- ExpansionTransformation * self;
- PixelTransformation* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- ExpansionTransformation* _tmp2_;
-#line 1272 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation);
-#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->low_kink;
-#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->high_kink;
-#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = expansion_transformation_new_from_extrema (_tmp0_, _tmp1_);
-#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation);
-#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11643 "ColorTransformation.c"
-}
-
-
-static void
-expansion_transformation_class_init (ExpansionTransformationClass * klass)
-{
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- expansion_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = expansion_transformation_finalize;
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (ExpansionTransformationPrivate));
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->to_string = (gchar* (*) (PixelTransformation *)) expansion_transformation_real_to_string;
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) expansion_transformation_real_is_identity;
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) expansion_transformation_real_copy;
-#line 11662 "ColorTransformation.c"
-}
-
-
-static void
-expansion_transformation_instance_init (ExpansionTransformation * self)
-{
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = EXPANSION_TRANSFORMATION_GET_PRIVATE (self);
-#line 11671 "ColorTransformation.c"
-}
-
-
-static void
-expansion_transformation_finalize (PixelTransformation * obj)
-{
- ExpansionTransformation * self;
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation);
-#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (expansion_transformation_parent_class)->finalize (obj);
-#line 11683 "ColorTransformation.c"
-}
-
-
-GType
-expansion_transformation_get_type (void)
-{
- static volatile gsize expansion_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&expansion_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ExpansionTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) expansion_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExpansionTransformation), 0, (GInstanceInitFunc) expansion_transformation_instance_init, NULL };
- GType expansion_transformation_type_id;
- expansion_transformation_type_id = g_type_register_static (TYPE_HSV_TRANSFORMATION, "ExpansionTransformation", &g_define_type_info, 0);
- g_once_init_leave (&expansion_transformation_type_id__volatile, expansion_transformation_type_id);
- }
- return expansion_transformation_type_id__volatile;
-}
-
-
-ShadowDetailTransformation*
-shadow_detail_transformation_construct (GType object_type,
- gfloat user_intensity)
-{
- ShadowDetailTransformation* self = NULL;
- gfloat intensity_adj = 0.0F;
- gfloat _tmp0_;
- gfloat effect_shift = 0.0F;
- gfloat _tmp1_;
- HermiteGammaApproximationFunction* func = NULL;
- HermiteGammaApproximationFunction* _tmp2_;
-#line 1289 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (ShadowDetailTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_SHADOWS);
-#line 1291 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->intensity = user_intensity;
-#line 1292 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->intensity;
-#line 1292 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- intensity_adj = CLAMP (_tmp0_ / SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER, 0.0f, 1.0f);
-#line 1294 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = intensity_adj;
-#line 1294 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- effect_shift = SHADOW_DETAIL_TRANSFORMATION_MAX_EFFECT_SHIFT * _tmp1_;
-#line 1295 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = hermite_gamma_approximation_function_new (SHADOW_DETAIL_TRANSFORMATION_TONAL_WIDTH);
-#line 1295 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- func = _tmp2_;
-#line 11728 "ColorTransformation.c"
- {
- gint i = 0;
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 11733 "ColorTransformation.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = TRUE;
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 11740 "ColorTransformation.c"
- gint _tmp5_;
- gfloat x = 0.0F;
- gint _tmp6_;
- gfloat weight = 0.0F;
- HermiteGammaApproximationFunction* _tmp7_;
- gfloat _tmp8_;
- gint _tmp9_;
- gfloat _tmp10_;
- gfloat _tmp11_;
- gfloat _tmp12_;
- gfloat _tmp13_;
- gfloat _tmp14_;
- gfloat _tmp15_;
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp3_) {
-#line 11756 "ColorTransformation.c"
- gint _tmp4_;
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = i;
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp4_ + 1;
-#line 11762 "ColorTransformation.c"
- }
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = FALSE;
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = i;
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp5_ < 256)) {
-#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 11772 "ColorTransformation.c"
- }
-#line 1299 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = i;
-#line 1299 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- x = ((gfloat) _tmp6_) / 255.0f;
-#line 1300 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = func;
-#line 1300 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = x;
-#line 1300 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- weight = hermite_gamma_approximation_function_evaluate (_tmp7_, _tmp8_);
-#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = i;
-#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = weight;
-#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = x;
-#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = effect_shift;
-#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = weight;
-#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = x;
-#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp9_] = (_tmp10_ * (_tmp11_ + _tmp12_)) + ((1.0f - _tmp13_) * _tmp14_);
-#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp9_];
-#line 11800 "ColorTransformation.c"
- }
- }
- }
-#line 1288 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _hermite_gamma_approximation_function_unref0 (func);
-#line 1288 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 11808 "ColorTransformation.c"
-}
-
-
-ShadowDetailTransformation*
-shadow_detail_transformation_new (gfloat user_intensity)
-{
-#line 1288 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return shadow_detail_transformation_construct (TYPE_SHADOW_DETAIL_TRANSFORMATION, user_intensity);
-#line 11817 "ColorTransformation.c"
-}
-
-
-static PixelTransformation*
-shadow_detail_transformation_real_copy (PixelTransformation* base)
-{
- ShadowDetailTransformation * self;
- PixelTransformation* result = NULL;
- gfloat _tmp0_;
- ShadowDetailTransformation* _tmp1_;
-#line 1305 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation);
-#line 1306 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->intensity;
-#line 1306 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = shadow_detail_transformation_new (_tmp0_);
-#line 1306 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation);
-#line 1306 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11838 "ColorTransformation.c"
-}
-
-
-static gboolean
-shadow_detail_transformation_real_is_identity (PixelTransformation* base)
-{
- ShadowDetailTransformation * self;
- gboolean result = FALSE;
- gfloat _tmp0_;
-#line 1309 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation);
-#line 1310 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->intensity;
-#line 1310 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_ == 0.0f;
-#line 1310 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11856 "ColorTransformation.c"
-}
-
-
-gfloat
-shadow_detail_transformation_get_parameter (ShadowDetailTransformation* self)
-{
- gfloat result = 0.0F;
- gfloat _tmp0_;
-#line 1314 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->intensity;
-#line 1314 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 1314 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11871 "ColorTransformation.c"
-}
-
-
-static void
-shadow_detail_transformation_class_init (ShadowDetailTransformationClass * klass)
-{
-#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- shadow_detail_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = shadow_detail_transformation_finalize;
-#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (ShadowDetailTransformationPrivate));
-#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) shadow_detail_transformation_real_copy;
-#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) shadow_detail_transformation_real_is_identity;
-#line 11888 "ColorTransformation.c"
-}
-
-
-static void
-shadow_detail_transformation_instance_init (ShadowDetailTransformation * self)
-{
-#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = SHADOW_DETAIL_TRANSFORMATION_GET_PRIVATE (self);
-#line 1283 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->intensity = 0.0f;
-#line 11899 "ColorTransformation.c"
-}
-
-
-static void
-shadow_detail_transformation_finalize (PixelTransformation * obj)
-{
- ShadowDetailTransformation * self;
-#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation);
-#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (shadow_detail_transformation_parent_class)->finalize (obj);
-#line 11911 "ColorTransformation.c"
-}
-
-
-GType
-shadow_detail_transformation_get_type (void)
-{
- static volatile gsize shadow_detail_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&shadow_detail_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ShadowDetailTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shadow_detail_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShadowDetailTransformation), 0, (GInstanceInitFunc) shadow_detail_transformation_instance_init, NULL };
- GType shadow_detail_transformation_type_id;
- shadow_detail_transformation_type_id = g_type_register_static (TYPE_HSV_TRANSFORMATION, "ShadowDetailTransformation", &g_define_type_info, 0);
- g_once_init_leave (&shadow_detail_transformation_type_id__volatile, shadow_detail_transformation_type_id);
- }
- return shadow_detail_transformation_type_id__volatile;
-}
-
-
-HermiteGammaApproximationFunction*
-hermite_gamma_approximation_function_construct (GType object_type,
- gfloat user_interval_upper)
-{
- HermiteGammaApproximationFunction* self = NULL;
- gfloat _tmp0_;
-#line 1322 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (HermiteGammaApproximationFunction*) g_type_create_instance (object_type);
-#line 1323 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->nonzero_interval_upper = CLAMP (user_interval_upper, 0.1f, 1.0f);
-#line 1324 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->nonzero_interval_upper;
-#line 1324 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->x_scale = 1.0f / _tmp0_;
-#line 1322 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 11945 "ColorTransformation.c"
-}
-
-
-HermiteGammaApproximationFunction*
-hermite_gamma_approximation_function_new (gfloat user_interval_upper)
-{
-#line 1322 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return hermite_gamma_approximation_function_construct (TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, user_interval_upper);
-#line 11954 "ColorTransformation.c"
-}
-
-
-gfloat
-hermite_gamma_approximation_function_evaluate (HermiteGammaApproximationFunction* self,
- gfloat x)
-{
- gfloat result = 0.0F;
-#line 1328 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (x < 0.0f) {
-#line 1329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = 0.0f;
-#line 1329 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11969 "ColorTransformation.c"
- } else {
- gfloat _tmp0_;
-#line 1330 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->nonzero_interval_upper;
-#line 1330 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (x > _tmp0_) {
-#line 1331 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = 0.0f;
-#line 1331 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 11980 "ColorTransformation.c"
- } else {
- gfloat indep_var = 0.0F;
- gfloat _tmp1_;
- gfloat dep_var = 0.0F;
- gfloat _tmp2_;
- gfloat _tmp3_;
- gfloat _tmp4_;
- gfloat _tmp5_;
- gfloat _tmp6_;
- gfloat _tmp7_;
- gfloat _tmp8_;
-#line 1333 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = self->priv->x_scale;
-#line 1333 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- indep_var = _tmp1_ * x;
-#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = indep_var;
-#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = indep_var;
-#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = indep_var;
-#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = indep_var;
-#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = indep_var;
-#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = indep_var;
-#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dep_var = 6.0f * ((((_tmp2_ * _tmp3_) * _tmp4_) - (2.0f * (_tmp5_ * _tmp6_))) + _tmp7_);
-#line 1338 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = dep_var;
-#line 1338 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = CLAMP (_tmp8_, 0.0f, 1.0f);
-#line 1338 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 12016 "ColorTransformation.c"
- }
- }
-}
-
-
-static void
-value_hermite_gamma_approximation_function_init (GValue* value)
-{
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 12027 "ColorTransformation.c"
-}
-
-
-static void
-value_hermite_gamma_approximation_function_free_value (GValue* value)
-{
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (value->data[0].v_pointer) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hermite_gamma_approximation_function_unref (value->data[0].v_pointer);
-#line 12038 "ColorTransformation.c"
- }
-}
-
-
-static void
-value_hermite_gamma_approximation_function_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (src_value->data[0].v_pointer) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = hermite_gamma_approximation_function_ref (src_value->data[0].v_pointer);
-#line 12051 "ColorTransformation.c"
- } else {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 12055 "ColorTransformation.c"
- }
-}
-
-
-static gpointer
-value_hermite_gamma_approximation_function_peek_pointer (const GValue* value)
-{
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 12065 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_hermite_gamma_approximation_function_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (collect_values[0].v_pointer) {
-#line 12077 "ColorTransformation.c"
- HermiteGammaApproximationFunction * object;
- object = collect_values[0].v_pointer;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 12084 "ColorTransformation.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.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 12088 "ColorTransformation.c"
- }
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = hermite_gamma_approximation_function_ref (object);
-#line 12092 "ColorTransformation.c"
- } else {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 12096 "ColorTransformation.c"
- }
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 12100 "ColorTransformation.c"
-}
-
-
-static gchar*
-value_hermite_gamma_approximation_function_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- HermiteGammaApproximationFunction ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!object_p) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 12116 "ColorTransformation.c"
- }
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!value->data[0].v_pointer) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = NULL;
-#line 12122 "ColorTransformation.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = value->data[0].v_pointer;
-#line 12126 "ColorTransformation.c"
- } else {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- *object_p = hermite_gamma_approximation_function_ref (value->data[0].v_pointer);
-#line 12130 "ColorTransformation.c"
- }
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return NULL;
-#line 12134 "ColorTransformation.c"
-}
-
-
-GParamSpec*
-param_spec_hermite_gamma_approximation_function (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecHermiteGammaApproximationFunction* spec;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION), NULL);
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return G_PARAM_SPEC (spec);
-#line 12154 "ColorTransformation.c"
-}
-
-
-gpointer
-value_get_hermite_gamma_approximation_function (const GValue* value)
-{
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION), NULL);
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return value->data[0].v_pointer;
-#line 12165 "ColorTransformation.c"
-}
-
-
-void
-value_set_hermite_gamma_approximation_function (GValue* value,
- gpointer v_object)
-{
- HermiteGammaApproximationFunction * old;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION));
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION));
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hermite_gamma_approximation_function_ref (value->data[0].v_pointer);
-#line 12188 "ColorTransformation.c"
- } else {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 12192 "ColorTransformation.c"
- }
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hermite_gamma_approximation_function_unref (old);
-#line 12198 "ColorTransformation.c"
- }
-}
-
-
-void
-value_take_hermite_gamma_approximation_function (GValue* value,
- gpointer v_object)
-{
- HermiteGammaApproximationFunction * old;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION));
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- old = value->data[0].v_pointer;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (v_object) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION));
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = v_object;
-#line 12220 "ColorTransformation.c"
- } else {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- value->data[0].v_pointer = NULL;
-#line 12224 "ColorTransformation.c"
- }
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (old) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hermite_gamma_approximation_function_unref (old);
-#line 12230 "ColorTransformation.c"
- }
-}
-
-
-static void
-hermite_gamma_approximation_function_class_init (HermiteGammaApproximationFunctionClass * klass)
-{
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- hermite_gamma_approximation_function_parent_class = g_type_class_peek_parent (klass);
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((HermiteGammaApproximationFunctionClass *) klass)->finalize = hermite_gamma_approximation_function_finalize;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (HermiteGammaApproximationFunctionPrivate));
-#line 12244 "ColorTransformation.c"
-}
-
-
-static void
-hermite_gamma_approximation_function_instance_init (HermiteGammaApproximationFunction * self)
-{
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_PRIVATE (self);
-#line 1319 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->x_scale = 1.0f;
-#line 1320 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->nonzero_interval_upper = 1.0f;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->ref_count = 1;
-#line 12259 "ColorTransformation.c"
-}
-
-
-static void
-hermite_gamma_approximation_function_finalize (HermiteGammaApproximationFunction * obj)
-{
- HermiteGammaApproximationFunction * self;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunction);
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_signal_handlers_destroy (self);
-#line 12271 "ColorTransformation.c"
-}
-
-
-GType
-hermite_gamma_approximation_function_get_type (void)
-{
- static volatile gsize hermite_gamma_approximation_function_type_id__volatile = 0;
- if (g_once_init_enter (&hermite_gamma_approximation_function_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_hermite_gamma_approximation_function_init, value_hermite_gamma_approximation_function_free_value, value_hermite_gamma_approximation_function_copy_value, value_hermite_gamma_approximation_function_peek_pointer, "p", value_hermite_gamma_approximation_function_collect_value, "p", value_hermite_gamma_approximation_function_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (HermiteGammaApproximationFunctionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hermite_gamma_approximation_function_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HermiteGammaApproximationFunction), 0, (GInstanceInitFunc) hermite_gamma_approximation_function_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType hermite_gamma_approximation_function_type_id;
- hermite_gamma_approximation_function_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HermiteGammaApproximationFunction", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&hermite_gamma_approximation_function_type_id__volatile, hermite_gamma_approximation_function_type_id);
- }
- return hermite_gamma_approximation_function_type_id__volatile;
-}
-
-
-gpointer
-hermite_gamma_approximation_function_ref (gpointer instance)
-{
- HermiteGammaApproximationFunction * self;
- self = instance;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return instance;
-#line 12300 "ColorTransformation.c"
-}
-
-
-void
-hermite_gamma_approximation_function_unref (gpointer instance)
-{
- HermiteGammaApproximationFunction * self;
- self = instance;
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_CLASS (self)->finalize (self);
-#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 12315 "ColorTransformation.c"
- }
-}
-
-
-HighlightDetailTransformation*
-highlight_detail_transformation_construct (GType object_type,
- gfloat user_intensity)
-{
- HighlightDetailTransformation* self = NULL;
- gfloat intensity_adj = 0.0F;
- gfloat _tmp0_;
- gfloat effect_shift = 0.0F;
- gfloat _tmp1_;
- HermiteGammaApproximationFunction* func = NULL;
- HermiteGammaApproximationFunction* _tmp2_;
-#line 1355 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = (HighlightDetailTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS);
-#line 1357 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->intensity = user_intensity;
-#line 1358 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->intensity;
-#line 1358 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- intensity_adj = CLAMP (_tmp0_ / HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_PARAMETER, 0.0f, 1.0f);
-#line 1360 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = intensity_adj;
-#line 1360 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- effect_shift = HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_EFFECT_SHIFT * _tmp1_;
-#line 1361 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = hermite_gamma_approximation_function_new (HIGHLIGHT_DETAIL_TRANSFORMATION_TONAL_WIDTH);
-#line 1361 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- func = _tmp2_;
-#line 12347 "ColorTransformation.c"
- {
- gint i = 0;
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = 0;
-#line 12352 "ColorTransformation.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = TRUE;
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 12359 "ColorTransformation.c"
- gint _tmp5_;
- gfloat x = 0.0F;
- gint _tmp6_;
- gfloat weight = 0.0F;
- HermiteGammaApproximationFunction* _tmp7_;
- gfloat _tmp8_;
- gint _tmp9_;
- gfloat _tmp10_;
- gfloat _tmp11_;
- gfloat _tmp12_;
- gfloat _tmp13_;
- gfloat _tmp14_;
- gfloat _tmp15_;
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp3_) {
-#line 12375 "ColorTransformation.c"
- gint _tmp4_;
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = i;
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- i = _tmp4_ + 1;
-#line 12381 "ColorTransformation.c"
- }
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = FALSE;
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = i;
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp5_ < 256)) {
-#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 12391 "ColorTransformation.c"
- }
-#line 1365 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = i;
-#line 1365 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- x = ((gfloat) _tmp6_) / 255.0f;
-#line 1366 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = func;
-#line 1366 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = x;
-#line 1366 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- weight = hermite_gamma_approximation_function_evaluate (_tmp7_, 1.0f - _tmp8_);
-#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = i;
-#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = weight;
-#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = x;
-#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = effect_shift;
-#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = weight;
-#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = x;
-#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp9_] = (_tmp10_ * (_tmp11_ - _tmp12_)) + ((1.0f - _tmp13_) * _tmp14_);
-#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp9_];
-#line 12419 "ColorTransformation.c"
- }
- }
- }
-#line 1354 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _hermite_gamma_approximation_function_unref0 (func);
-#line 1354 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return self;
-#line 12427 "ColorTransformation.c"
-}
-
-
-HighlightDetailTransformation*
-highlight_detail_transformation_new (gfloat user_intensity)
-{
-#line 1354 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return highlight_detail_transformation_construct (TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, user_intensity);
-#line 12436 "ColorTransformation.c"
-}
-
-
-static PixelTransformation*
-highlight_detail_transformation_real_copy (PixelTransformation* base)
-{
- HighlightDetailTransformation * self;
- PixelTransformation* result = NULL;
- gfloat _tmp0_;
- HighlightDetailTransformation* _tmp1_;
-#line 1371 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation);
-#line 1372 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->intensity;
-#line 1372 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = highlight_detail_transformation_new (_tmp0_);
-#line 1372 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation);
-#line 1372 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 12457 "ColorTransformation.c"
-}
-
-
-static gboolean
-highlight_detail_transformation_real_is_identity (PixelTransformation* base)
-{
- HighlightDetailTransformation * self;
- gboolean result = FALSE;
- gfloat _tmp0_;
-#line 1375 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation);
-#line 1376 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->intensity;
-#line 1376 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_ == 0.0f;
-#line 1376 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 12475 "ColorTransformation.c"
-}
-
-
-gfloat
-highlight_detail_transformation_get_parameter (HighlightDetailTransformation* self)
-{
- gfloat result = 0.0F;
- gfloat _tmp0_;
-#line 1380 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = self->priv->intensity;
-#line 1380 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = _tmp0_;
-#line 1380 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 12490 "ColorTransformation.c"
-}
-
-
-static void
-highlight_detail_transformation_class_init (HighlightDetailTransformationClass * klass)
-{
-#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- highlight_detail_transformation_parent_class = g_type_class_peek_parent (klass);
-#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->finalize = highlight_detail_transformation_finalize;
-#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- g_type_class_add_private (klass, sizeof (HighlightDetailTransformationPrivate));
-#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) highlight_detail_transformation_real_copy;
-#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) highlight_detail_transformation_real_is_identity;
-#line 12507 "ColorTransformation.c"
-}
-
-
-static void
-highlight_detail_transformation_instance_init (HighlightDetailTransformation * self)
-{
-#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv = HIGHLIGHT_DETAIL_TRANSFORMATION_GET_PRIVATE (self);
-#line 1349 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self->priv->intensity = 0.0f;
-#line 12518 "ColorTransformation.c"
-}
-
-
-static void
-highlight_detail_transformation_finalize (PixelTransformation * obj)
-{
- HighlightDetailTransformation * self;
-#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation);
-#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- PIXEL_TRANSFORMATION_CLASS (highlight_detail_transformation_parent_class)->finalize (obj);
-#line 12530 "ColorTransformation.c"
-}
-
-
-GType
-highlight_detail_transformation_get_type (void)
-{
- static volatile gsize highlight_detail_transformation_type_id__volatile = 0;
- if (g_once_init_enter (&highlight_detail_transformation_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (HighlightDetailTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) highlight_detail_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HighlightDetailTransformation), 0, (GInstanceInitFunc) highlight_detail_transformation_instance_init, NULL };
- GType highlight_detail_transformation_type_id;
- highlight_detail_transformation_type_id = g_type_register_static (TYPE_HSV_TRANSFORMATION, "HighlightDetailTransformation", &g_define_type_info, 0);
- g_once_init_leave (&highlight_detail_transformation_type_id__volatile, highlight_detail_transformation_type_id);
- }
- return highlight_detail_transformation_type_id__volatile;
-}
-
-
-PixelTransformationBundle*
-auto_enhance_create_auto_enhance_adjustments (GdkPixbuf* pixbuf)
-{
- PixelTransformationBundle* result = NULL;
- PixelTransformationBundle* adjustments = NULL;
- PixelTransformationBundle* _tmp0_;
- IntensityHistogram* analysis_histogram = NULL;
- IntensityHistogram* _tmp1_;
- gfloat pct_in_range = 0.0F;
- IntensityHistogram* _tmp2_;
- IntensityHistogram* _tmp3_;
- gfloat shadow_range_mean_prob_val = 0.0F;
- IntensityHistogram* _tmp4_;
- IntensityHistogram* _tmp5_;
- gint shadow_mean_intensity = 0;
- gboolean _tmp12_ = FALSE;
- gfloat _tmp13_;
- PixelTransformationBundle* _tmp39_;
- HighlightDetailTransformation* _tmp40_;
- HighlightDetailTransformation* _tmp41_;
- PixelTransformationBundle* _tmp42_;
- TemperatureTransformation* _tmp43_;
- TemperatureTransformation* _tmp44_;
- PixelTransformationBundle* _tmp45_;
- TintTransformation* _tmp46_;
- TintTransformation* _tmp47_;
- PixelTransformationBundle* _tmp48_;
- ExposureTransformation* _tmp49_;
- ExposureTransformation* _tmp50_;
- PixelTransformationBundle* _tmp51_;
- ContrastTransformation* _tmp52_;
- ContrastTransformation* _tmp53_;
- PixelTransformationBundle* _tmp54_;
- SaturationTransformation* _tmp55_;
- SaturationTransformation* _tmp56_;
-#line 1394 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp0_ = pixel_transformation_bundle_new ();
-#line 1394 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- adjustments = _tmp0_;
-#line 1396 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp1_ = intensity_histogram_new (pixbuf);
-#line 1396 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- analysis_histogram = _tmp1_;
-#line 1399 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp2_ = analysis_histogram;
-#line 1399 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp3_ = analysis_histogram;
-#line 1399 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pct_in_range = 100.0f * (intensity_histogram_get_cumulative_probability (_tmp2_, AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY) - intensity_histogram_get_cumulative_probability (_tmp3_, AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY));
-#line 1405 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp4_ = analysis_histogram;
-#line 1405 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp5_ = analysis_histogram;
-#line 1405 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- shadow_range_mean_prob_val = (intensity_histogram_get_cumulative_probability (_tmp4_, AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY) + intensity_histogram_get_cumulative_probability (_tmp5_, AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY)) * 0.5f;
-#line 1408 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- shadow_mean_intensity = AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY;
-#line 12605 "ColorTransformation.c"
- {
- gboolean _tmp6_ = FALSE;
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = TRUE;
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 12612 "ColorTransformation.c"
- gint _tmp8_;
- IntensityHistogram* _tmp9_;
- gint _tmp10_;
- gfloat _tmp11_;
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp6_) {
-#line 12619 "ColorTransformation.c"
- gint _tmp7_;
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp7_ = shadow_mean_intensity;
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- shadow_mean_intensity = _tmp7_ + 1;
-#line 12625 "ColorTransformation.c"
- }
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp6_ = FALSE;
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp8_ = shadow_mean_intensity;
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp8_ <= AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY)) {
-#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 12635 "ColorTransformation.c"
- }
-#line 1410 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp9_ = analysis_histogram;
-#line 1410 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp10_ = shadow_mean_intensity;
-#line 1410 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp11_ = shadow_range_mean_prob_val;
-#line 1410 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (intensity_histogram_get_cumulative_probability (_tmp9_, _tmp10_) >= _tmp11_) {
-#line 1411 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 12647 "ColorTransformation.c"
- }
- }
- }
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp13_ = pct_in_range;
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp13_ > 40.0f) {
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = TRUE;
-#line 12657 "ColorTransformation.c"
- } else {
- gboolean _tmp14_ = FALSE;
- gfloat _tmp15_;
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp15_ = pct_in_range;
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp15_ > 20.0f) {
-#line 12665 "ColorTransformation.c"
- gint _tmp16_;
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp16_ = shadow_mean_intensity;
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = _tmp16_ < AUTO_ENHANCE_EMPIRICAL_DARK;
-#line 12671 "ColorTransformation.c"
- } else {
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp14_ = FALSE;
-#line 12675 "ColorTransformation.c"
- }
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp12_ = _tmp14_;
-#line 12679 "ColorTransformation.c"
- }
-#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (_tmp12_) {
-#line 12683 "ColorTransformation.c"
- gfloat shadow_trans_effect_size = 0.0F;
- gint _tmp17_;
- gfloat _tmp18_;
- PixelTransformationBundle* _tmp19_;
- gfloat _tmp20_;
- ShadowDetailTransformation* _tmp21_;
- ShadowDetailTransformation* _tmp22_;
- gint discard_point = 0;
- PixelTransformationBundle* _tmp28_;
- gint _tmp29_;
- ExpansionTransformation* _tmp30_;
- ExpansionTransformation* _tmp31_;
-#line 1420 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp17_ = shadow_mean_intensity;
-#line 1420 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- shadow_trans_effect_size = ((((gfloat) AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY) - ((gfloat) _tmp17_)) / ((gfloat) AUTO_ENHANCE_SHADOW_DETECT_INTENSITY_RANGE)) * SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER;
-#line 1424 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp18_ = shadow_trans_effect_size;
-#line 1424 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- shadow_trans_effect_size = _tmp18_ * AUTO_ENHANCE_SHADOW_AGGRESSIVENESS_MUL;
-#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp19_ = adjustments;
-#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp20_ = shadow_trans_effect_size;
-#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp21_ = shadow_detail_transformation_new (_tmp20_);
-#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp22_ = _tmp21_;
-#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp22_);
-#line 1430 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- discard_point = 255;
-#line 12718 "ColorTransformation.c"
- {
- gboolean _tmp23_ = FALSE;
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = TRUE;
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- while (TRUE) {
-#line 12725 "ColorTransformation.c"
- gint _tmp25_;
- IntensityHistogram* _tmp26_;
- gint _tmp27_;
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!_tmp23_) {
-#line 12731 "ColorTransformation.c"
- gint _tmp24_;
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp24_ = discard_point;
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- discard_point = _tmp24_ - 1;
-#line 12737 "ColorTransformation.c"
- }
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp23_ = FALSE;
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp25_ = discard_point;
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if (!(_tmp25_ > -1)) {
-#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 12747 "ColorTransformation.c"
- }
-#line 1432 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp26_ = analysis_histogram;
-#line 1432 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp27_ = discard_point;
-#line 1432 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- if ((1.0f - intensity_histogram_get_cumulative_probability (_tmp26_, _tmp27_)) > AUTO_ENHANCE_SHADOW_MODE_HIGH_DISCARD_MASS) {
-#line 1434 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- break;
-#line 12757 "ColorTransformation.c"
- }
- }
- }
-#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp28_ = adjustments;
-#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp29_ = discard_point;
-#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp30_ = expansion_transformation_new_from_extrema (0, _tmp29_);
-#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp31_ = _tmp30_;
-#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp31_);
-#line 12773 "ColorTransformation.c"
- } else {
- PixelTransformationBundle* _tmp32_;
- IntensityHistogram* _tmp33_;
- ExpansionTransformation* _tmp34_;
- ExpansionTransformation* _tmp35_;
- PixelTransformationBundle* _tmp36_;
- ShadowDetailTransformation* _tmp37_;
- ShadowDetailTransformation* _tmp38_;
-#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp32_ = adjustments;
-#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp33_ = analysis_histogram;
-#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp34_ = expansion_transformation_new (_tmp33_);
-#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp35_ = _tmp34_;
-#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp35_);
-#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp36_ = adjustments;
-#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp37_ = shadow_detail_transformation_new ((gfloat) 0);
-#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp38_ = _tmp37_;
-#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp38_);
-#line 12804 "ColorTransformation.c"
- }
-#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp39_ = adjustments;
-#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp40_ = highlight_detail_transformation_new (0.0f);
-#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp41_ = _tmp40_;
-#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp39_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp41_);
-#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp42_ = adjustments;
-#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp43_ = temperature_transformation_new (0.0f);
-#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp44_ = _tmp43_;
-#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp44_);
-#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp45_ = adjustments;
-#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp46_ = tint_transformation_new (0.0f);
-#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp47_ = _tmp46_;
-#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp47_);
-#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp48_ = adjustments;
-#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp49_ = exposure_transformation_new (0.0f);
-#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp50_ = _tmp49_;
-#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp50_);
-#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp51_ = adjustments;
-#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp52_ = contrast_transformation_new (0.0f);
-#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp53_ = _tmp52_;
-#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp53_);
-#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp54_ = adjustments;
-#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp55_ = saturation_transformation_new (0.0f);
-#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _tmp56_ = _tmp55_;
-#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- pixel_transformation_bundle_set (_tmp54_, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _pixel_transformation_unref0 (_tmp56_);
-#line 1452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- result = adjustments;
-#line 1452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- _intensity_histogram_unref0 (analysis_histogram);
-#line 1452 "/home/jens/Source/shotwell/src/ColorTransformation.vala"
- return result;
-#line 12872 "ColorTransformation.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/CommandManager.c b/src/CommandManager.c
deleted file mode 100644
index baf7d78..0000000
--- a/src/CommandManager.c
+++ /dev/null
@@ -1,1373 +0,0 @@
-/* CommandManager.c generated by valac 0.40.4, the Vala compiler
- * generated from CommandManager.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_COMMAND_DESCRIPTION (command_description_get_type ())
-#define COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescription))
-#define IS_COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_DESCRIPTION))
-#define COMMAND_DESCRIPTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescriptionIface))
-
-typedef struct _CommandDescription CommandDescription;
-typedef struct _CommandDescriptionIface CommandDescriptionIface;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-typedef struct _CommandPrivate CommandPrivate;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-enum {
- COMMAND_0_PROPERTY,
- COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* command_properties[COMMAND_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _CommandManagerPrivate CommandManagerPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecCommandManager ParamSpecCommandManager;
-enum {
- COMMAND_MANAGER_ALTERED_SIGNAL,
- COMMAND_MANAGER_NUM_SIGNALS
-};
-static guint command_manager_signals[COMMAND_MANAGER_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _CommandDescriptionIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (CommandDescription* self);
- gchar* (*get_explanation) (CommandDescription* self);
-};
-
-struct _Command {
- GObject parent_instance;
- CommandPrivate * priv;
-};
-
-struct _CommandClass {
- GObjectClass parent_class;
- void (*prepare) (Command* self);
- void (*execute) (Command* self);
- void (*undo) (Command* self);
- void (*redo) (Command* self);
- gboolean (*compress) (Command* self, Command* command);
- gchar* (*get_name) (Command* self);
- gchar* (*get_explanation) (Command* self);
-};
-
-struct _CommandPrivate {
- gchar* name;
- gchar* explanation;
- CommandManager* manager;
-};
-
-struct _CommandManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CommandManagerPrivate * priv;
-};
-
-struct _CommandManagerClass {
- GTypeClass parent_class;
- void (*finalize) (CommandManager *self);
-};
-
-struct _CommandManagerPrivate {
- gint depth;
- GeeArrayList* undo_stack;
- GeeArrayList* redo_stack;
-};
-
-struct _ParamSpecCommandManager {
- GParamSpec parent_instance;
-};
-
-
-static gpointer command_parent_class = NULL;
-static CommandDescriptionIface * command_command_description_parent_iface = NULL;
-static gpointer command_manager_parent_class = NULL;
-
-GType command_description_get_type (void) G_GNUC_CONST;
-gchar* command_description_get_name (CommandDescription* self);
-gchar* command_description_get_explanation (CommandDescription* self);
-GType command_get_type (void) G_GNUC_CONST;
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-#define COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COMMAND, CommandPrivate))
-Command* command_construct (GType object_type,
- const gchar* name,
- const gchar* explanation);
-void command_prepare (Command* self);
-static void command_real_prepare (Command* self);
-void command_execute (Command* self);
-static void command_real_execute (Command* self);
-void command_undo (Command* self);
-static void command_real_undo (Command* self);
-void command_redo (Command* self);
-static void command_real_redo (Command* self);
-gboolean command_compress (Command* self,
- Command* command);
-static gboolean command_real_compress (Command* self,
- Command* command);
-gchar* command_get_name (Command* self);
-static gchar* command_real_get_name (Command* self);
-gchar* command_get_explanation (Command* self);
-static gchar* command_real_get_explanation (Command* self);
-CommandManager* command_get_command_manager (Command* self);
-void command_internal_set_command_manager (Command* self,
- CommandManager* manager);
-static void command_finalize (GObject * obj);
-#define COMMAND_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COMMAND_MANAGER, CommandManagerPrivate))
-#define COMMAND_MANAGER_DEFAULT_DEPTH 20
-CommandManager* command_manager_new (gint depth);
-CommandManager* command_manager_construct (GType object_type,
- gint depth);
-void command_manager_reset (CommandManager* self);
-void command_manager_execute (CommandManager* self,
- Command* command);
-static Command* command_manager_top (CommandManager* self,
- GeeArrayList* stack);
-static void command_manager_push (CommandManager* self,
- GeeArrayList* stack,
- Command* command);
-gboolean command_manager_can_undo (CommandManager* self);
-gboolean command_manager_can_redo (CommandManager* self);
-CommandDescription* command_manager_get_undo_description (CommandManager* self);
-gboolean command_manager_undo (CommandManager* self);
-static Command* command_manager_pop (CommandManager* self,
- GeeArrayList* stack);
-CommandDescription* command_manager_get_redo_description (CommandManager* self);
-gboolean command_manager_redo (CommandManager* self);
-static void g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void command_manager_finalize (CommandManager * obj);
-
-
-gchar*
-command_description_get_name (CommandDescription* self)
-{
-#line 8 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_DESCRIPTION (self), NULL);
-#line 8 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return COMMAND_DESCRIPTION_GET_INTERFACE (self)->get_name (self);
-#line 199 "CommandManager.c"
-}
-
-
-gchar*
-command_description_get_explanation (CommandDescription* self)
-{
-#line 10 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_DESCRIPTION (self), NULL);
-#line 10 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return COMMAND_DESCRIPTION_GET_INTERFACE (self)->get_explanation (self);
-#line 210 "CommandManager.c"
-}
-
-
-static void
-command_description_base_init (CommandDescriptionIface * iface)
-{
-#line 7 "/home/jens/Source/shotwell/src/CommandManager.vala"
- static gboolean initialized = FALSE;
-#line 7 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (!initialized) {
-#line 7 "/home/jens/Source/shotwell/src/CommandManager.vala"
- initialized = TRUE;
-#line 223 "CommandManager.c"
- }
-}
-
-
-GType
-command_description_get_type (void)
-{
- static volatile gsize command_description_type_id__volatile = 0;
- if (g_once_init_enter (&command_description_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CommandDescriptionIface), (GBaseInitFunc) command_description_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType command_description_type_id;
- command_description_type_id = g_type_register_static (G_TYPE_INTERFACE, "CommandDescription", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (command_description_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&command_description_type_id__volatile, command_description_type_id);
- }
- return command_description_type_id__volatile;
-}
-
-
-Command*
-command_construct (GType object_type,
- const gchar* name,
- const gchar* explanation)
-{
- Command * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 32 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 32 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self = (Command*) g_object_new (object_type, NULL);
-#line 33 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = g_strdup (name);
-#line 33 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_free0 (self->priv->name);
-#line 33 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv->name = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = g_strdup (explanation);
-#line 34 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_free0 (self->priv->explanation);
-#line 34 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv->explanation = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return self;
-#line 271 "CommandManager.c"
-}
-
-
-static void
-command_real_prepare (Command* self)
-{
-}
-
-
-void
-command_prepare (Command* self)
-{
-#line 43 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND (self));
-#line 43 "/home/jens/Source/shotwell/src/CommandManager.vala"
- COMMAND_GET_CLASS (self)->prepare (self);
-#line 288 "CommandManager.c"
-}
-
-
-static void
-command_real_execute (Command* self)
-{
-#line 46 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_critical ("Type `%s' does not implement abstract method `command_execute'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 46 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return;
-#line 299 "CommandManager.c"
-}
-
-
-void
-command_execute (Command* self)
-{
-#line 46 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND (self));
-#line 46 "/home/jens/Source/shotwell/src/CommandManager.vala"
- COMMAND_GET_CLASS (self)->execute (self);
-#line 310 "CommandManager.c"
-}
-
-
-static void
-command_real_undo (Command* self)
-{
-#line 48 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_critical ("Type `%s' does not implement abstract method `command_undo'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 48 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return;
-#line 321 "CommandManager.c"
-}
-
-
-void
-command_undo (Command* self)
-{
-#line 48 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND (self));
-#line 48 "/home/jens/Source/shotwell/src/CommandManager.vala"
- COMMAND_GET_CLASS (self)->undo (self);
-#line 332 "CommandManager.c"
-}
-
-
-static void
-command_real_redo (Command* self)
-{
-#line 51 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_execute (self);
-#line 341 "CommandManager.c"
-}
-
-
-void
-command_redo (Command* self)
-{
-#line 50 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND (self));
-#line 50 "/home/jens/Source/shotwell/src/CommandManager.vala"
- COMMAND_GET_CLASS (self)->redo (self);
-#line 352 "CommandManager.c"
-}
-
-
-static gboolean
-command_real_compress (Command* self,
- Command* command)
-{
- gboolean result = FALSE;
-#line 56 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 57 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = FALSE;
-#line 57 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 367 "CommandManager.c"
-}
-
-
-gboolean
-command_compress (Command* self,
- Command* command)
-{
-#line 56 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND (self), FALSE);
-#line 56 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return COMMAND_GET_CLASS (self)->compress (self, command);
-#line 379 "CommandManager.c"
-}
-
-
-static gchar*
-command_real_get_name (Command* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 61 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->name;
-#line 61 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 61 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = _tmp1_;
-#line 61 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 397 "CommandManager.c"
-}
-
-
-gchar*
-command_get_name (Command* self)
-{
-#line 60 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND (self), NULL);
-#line 60 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return COMMAND_GET_CLASS (self)->get_name (self);
-#line 408 "CommandManager.c"
-}
-
-
-static gchar*
-command_real_get_explanation (Command* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->explanation;
-#line 65 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 65 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 426 "CommandManager.c"
-}
-
-
-gchar*
-command_get_explanation (Command* self)
-{
-#line 64 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND (self), NULL);
-#line 64 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return COMMAND_GET_CLASS (self)->get_explanation (self);
-#line 437 "CommandManager.c"
-}
-
-
-static gpointer
-_command_manager_ref0 (gpointer self)
-{
-#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return self ? command_manager_ref (self) : NULL;
-#line 446 "CommandManager.c"
-}
-
-
-CommandManager*
-command_get_command_manager (Command* self)
-{
- CommandManager* result = NULL;
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND (self), NULL);
-#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->manager;
-#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = _command_manager_ref0 (_tmp0_);
-#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = _tmp1_;
-#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 466 "CommandManager.c"
-}
-
-
-void
-command_internal_set_command_manager (Command* self,
- CommandManager* manager)
-{
- CommandManager* _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND (self));
-#line 73 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND_MANAGER (manager));
-#line 74 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->manager;
-#line 74 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _vala_assert (_tmp0_ == NULL, "this.manager == null");
-#line 76 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv->manager = manager;
-#line 485 "CommandManager.c"
-}
-
-
-static void
-command_class_init (CommandClass * klass)
-{
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_parent_class = g_type_class_peek_parent (klass);
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_type_class_add_private (klass, sizeof (CommandPrivate));
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- ((CommandClass *) klass)->prepare = (void (*) (Command *)) command_real_prepare;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) command_real_execute;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) command_real_undo;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- ((CommandClass *) klass)->redo = (void (*) (Command *)) command_real_redo;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) command_real_compress;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- ((CommandClass *) klass)->get_name = (gchar* (*) (Command *)) command_real_get_name;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- ((CommandClass *) klass)->get_explanation = (gchar* (*) (Command *)) command_real_get_explanation;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- G_OBJECT_CLASS (klass)->finalize = command_finalize;
-#line 512 "CommandManager.c"
-}
-
-
-static void
-command_command_description_interface_init (CommandDescriptionIface * iface)
-{
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_command_description_parent_iface = g_type_interface_peek_parent (iface);
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- iface->get_name = (gchar* (*) (CommandDescription *)) command_get_name;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- iface->get_explanation = (gchar* (*) (CommandDescription *)) command_get_explanation;
-#line 525 "CommandManager.c"
-}
-
-
-static void
-command_instance_init (Command * self)
-{
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv = COMMAND_GET_PRIVATE (self);
-#line 30 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv->manager = NULL;
-#line 536 "CommandManager.c"
-}
-
-
-static void
-command_finalize (GObject * obj)
-{
- Command * self;
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COMMAND, Command);
-#line 28 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_free0 (self->priv->name);
-#line 29 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_free0 (self->priv->explanation);
-#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala"
- G_OBJECT_CLASS (command_parent_class)->finalize (obj);
-#line 552 "CommandManager.c"
-}
-
-
-GType
-command_get_type (void)
-{
- static volatile gsize command_type_id__volatile = 0;
- if (g_once_init_enter (&command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Command), 0, (GInstanceInitFunc) command_instance_init, NULL };
- static const GInterfaceInfo command_description_info = { (GInterfaceInitFunc) command_command_description_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType command_type_id;
- command_type_id = g_type_register_static (G_TYPE_OBJECT, "Command", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_type_add_interface_static (command_type_id, TYPE_COMMAND_DESCRIPTION, &command_description_info);
- g_once_init_leave (&command_type_id__volatile, command_type_id);
- }
- return command_type_id__volatile;
-}
-
-
-CommandManager*
-command_manager_construct (GType object_type,
- gint depth)
-{
- CommandManager* self = NULL;
-#line 89 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self = (CommandManager*) g_type_create_instance (object_type);
-#line 90 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _vala_assert (depth > 0, "depth > 0");
-#line 92 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv->depth = depth;
-#line 89 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return self;
-#line 585 "CommandManager.c"
-}
-
-
-CommandManager*
-command_manager_new (gint depth)
-{
-#line 89 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return command_manager_construct (TYPE_COMMAND_MANAGER, depth);
-#line 594 "CommandManager.c"
-}
-
-
-void
-command_manager_reset (CommandManager* self)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 95 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND_MANAGER (self));
-#line 96 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->undo_stack;
-#line 96 "/home/jens/Source/shotwell/src/CommandManager.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 97 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = self->priv->redo_stack;
-#line 97 "/home/jens/Source/shotwell/src/CommandManager.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 99 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_signal_emit (self, command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL], 0, FALSE, FALSE);
-#line 615 "CommandManager.c"
-}
-
-
-void
-command_manager_execute (CommandManager* self,
- Command* command)
-{
- GeeArrayList* _tmp0_;
- Command* top_command = NULL;
- GeeArrayList* _tmp1_;
- Command* _tmp2_;
- Command* _tmp3_;
- GeeArrayList* _tmp5_;
-#line 102 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND_MANAGER (self));
-#line 102 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND (command));
-#line 104 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_internal_set_command_manager (command, self);
-#line 107 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->redo_stack;
-#line 107 "/home/jens/Source/shotwell/src/CommandManager.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 110 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = self->priv->undo_stack;
-#line 110 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp2_ = command_manager_top (self, _tmp1_);
-#line 110 "/home/jens/Source/shotwell/src/CommandManager.vala"
- top_command = _tmp2_;
-#line 111 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp3_ = top_command;
-#line 111 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (_tmp3_ != NULL) {
-#line 649 "CommandManager.c"
- Command* _tmp4_;
-#line 112 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp4_ = top_command;
-#line 112 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (command_compress (_tmp4_, command)) {
-#line 113 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (top_command);
-#line 113 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return;
-#line 659 "CommandManager.c"
- }
- }
-#line 117 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp5_ = self->priv->undo_stack;
-#line 117 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_push (self, _tmp5_, command);
-#line 119 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_prepare (command);
-#line 120 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_execute (command);
-#line 123 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_signal_emit (self, command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL], 0, command_manager_can_undo (self), command_manager_can_redo (self));
-#line 102 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (top_command);
-#line 674 "CommandManager.c"
-}
-
-
-gboolean
-command_manager_can_undo (CommandManager* self)
-{
- gboolean result = FALSE;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 126 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_MANAGER (self), FALSE);
-#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->undo_stack;
-#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp2_ = _tmp1_;
-#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = _tmp2_ > 0;
-#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 697 "CommandManager.c"
-}
-
-
-CommandDescription*
-command_manager_get_undo_description (CommandManager* self)
-{
- CommandDescription* result = NULL;
- GeeArrayList* _tmp0_;
- Command* _tmp1_;
-#line 130 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_MANAGER (self), NULL);
-#line 131 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->undo_stack;
-#line 131 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = command_manager_top (self, _tmp0_);
-#line 131 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND_DESCRIPTION, CommandDescription);
-#line 131 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 717 "CommandManager.c"
-}
-
-
-gboolean
-command_manager_undo (CommandManager* self)
-{
- gboolean result = FALSE;
- Command* command = NULL;
- GeeArrayList* _tmp0_;
- Command* _tmp1_;
- Command* _tmp2_;
- GeeArrayList* _tmp3_;
- Command* _tmp4_;
- Command* _tmp5_;
- Command* _tmp6_;
-#line 134 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_MANAGER (self), FALSE);
-#line 135 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->undo_stack;
-#line 135 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = command_manager_pop (self, _tmp0_);
-#line 135 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command = _tmp1_;
-#line 136 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp2_ = command;
-#line 136 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (_tmp2_ == NULL) {
-#line 137 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = FALSE;
-#line 137 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (command);
-#line 137 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 751 "CommandManager.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp3_ = self->priv->redo_stack;
-#line 140 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp4_ = command;
-#line 140 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_push (self, _tmp3_, _tmp4_);
-#line 143 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp5_ = command;
-#line 143 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_prepare (_tmp5_);
-#line 144 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp6_ = command;
-#line 144 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_undo (_tmp6_);
-#line 147 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_signal_emit (self, command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL], 0, command_manager_can_undo (self), command_manager_can_redo (self));
-#line 149 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = TRUE;
-#line 149 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (command);
-#line 149 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 775 "CommandManager.c"
-}
-
-
-gboolean
-command_manager_can_redo (CommandManager* self)
-{
- gboolean result = FALSE;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 152 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_MANAGER (self), FALSE);
-#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->redo_stack;
-#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp2_ = _tmp1_;
-#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = _tmp2_ > 0;
-#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 798 "CommandManager.c"
-}
-
-
-CommandDescription*
-command_manager_get_redo_description (CommandManager* self)
-{
- CommandDescription* result = NULL;
- GeeArrayList* _tmp0_;
- Command* _tmp1_;
-#line 156 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_MANAGER (self), NULL);
-#line 157 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->redo_stack;
-#line 157 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = command_manager_top (self, _tmp0_);
-#line 157 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND_DESCRIPTION, CommandDescription);
-#line 157 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 818 "CommandManager.c"
-}
-
-
-gboolean
-command_manager_redo (CommandManager* self)
-{
- gboolean result = FALSE;
- Command* command = NULL;
- GeeArrayList* _tmp0_;
- Command* _tmp1_;
- Command* _tmp2_;
- GeeArrayList* _tmp3_;
- Command* _tmp4_;
- Command* _tmp5_;
- Command* _tmp6_;
-#line 160 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_MANAGER (self), FALSE);
-#line 161 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = self->priv->redo_stack;
-#line 161 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = command_manager_pop (self, _tmp0_);
-#line 161 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command = _tmp1_;
-#line 162 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp2_ = command;
-#line 162 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (_tmp2_ == NULL) {
-#line 163 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = FALSE;
-#line 163 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (command);
-#line 163 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 852 "CommandManager.c"
- }
-#line 166 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp3_ = self->priv->undo_stack;
-#line 166 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp4_ = command;
-#line 166 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_push (self, _tmp3_, _tmp4_);
-#line 169 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp5_ = command;
-#line 169 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_prepare (_tmp5_);
-#line 170 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp6_ = command;
-#line 170 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_redo (_tmp6_);
-#line 173 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_signal_emit (self, command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL], 0, command_manager_can_undo (self), command_manager_can_redo (self));
-#line 175 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = TRUE;
-#line 175 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (command);
-#line 175 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 876 "CommandManager.c"
-}
-
-
-static Command*
-command_manager_top (CommandManager* self,
- GeeArrayList* stack)
-{
- Command* result = NULL;
- Command* _tmp0_ = NULL;
- gint _tmp1_;
- gint _tmp2_;
-#line 178 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_MANAGER (self), NULL);
-#line 178 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (GEE_IS_ARRAY_LIST (stack), NULL);
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp2_ = _tmp1_;
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (_tmp2_ > 0) {
-#line 898 "CommandManager.c"
- gint _tmp3_;
- gint _tmp4_;
- gpointer _tmp5_;
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp4_ = _tmp3_;
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp5_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp4_ - 1);
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (_tmp0_);
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = (Command*) _tmp5_;
-#line 912 "CommandManager.c"
- } else {
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (_tmp0_);
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = NULL;
-#line 918 "CommandManager.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = _tmp0_;
-#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 924 "CommandManager.c"
-}
-
-
-static void
-command_manager_push (CommandManager* self,
- GeeArrayList* stack,
- Command* command)
-{
-#line 182 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND_MANAGER (self));
-#line 182 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (GEE_IS_ARRAY_LIST (stack));
-#line 182 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (IS_COMMAND (command));
-#line 183 "/home/jens/Source/shotwell/src/CommandManager.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), command);
-#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala"
- while (TRUE) {
-#line 943 "CommandManager.c"
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gpointer _tmp3_;
- Command* _tmp4_;
-#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = _tmp0_;
-#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp2_ = self->priv->depth;
-#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (!(_tmp1_ >= _tmp2_)) {
-#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala"
- break;
-#line 959 "CommandManager.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp3_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 187 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp4_ = (Command*) _tmp3_;
-#line 187 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (_tmp4_);
-#line 967 "CommandManager.c"
- }
-}
-
-
-static Command*
-command_manager_pop (CommandManager* self,
- GeeArrayList* stack)
-{
- Command* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- Command* command = NULL;
- gint _tmp2_;
- gint _tmp3_;
- gpointer _tmp4_;
- gboolean removed = FALSE;
- Command* _tmp5_;
- gboolean _tmp6_;
-#line 190 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (IS_COMMAND_MANAGER (self), NULL);
-#line 190 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (GEE_IS_ARRAY_LIST (stack), NULL);
-#line 191 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 191 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = _tmp0_;
-#line 191 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (_tmp1_ <= 0) {
-#line 192 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = NULL;
-#line 192 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 1000 "CommandManager.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 194 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp3_ = _tmp2_;
-#line 194 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp4_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp3_ - 1);
-#line 194 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command = (Command*) _tmp4_;
-#line 195 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp5_ = command;
-#line 195 "/home/jens/Source/shotwell/src/CommandManager.vala"
- removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_);
-#line 196 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp6_ = removed;
-#line 196 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _vala_assert (_tmp6_, "removed");
-#line 198 "/home/jens/Source/shotwell/src/CommandManager.vala"
- result = command;
-#line 198 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return result;
-#line 1022 "CommandManager.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (gpointer data1, gboolean arg_1, gboolean arg_2, gpointer data2);
- register GMarshalFunc_VOID__BOOLEAN_BOOLEAN callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (n_param_values == 3);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- data1 = closure->data;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- data2 = param_values->data[0].v_pointer;
-#line 1048 "CommandManager.c"
- } else {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- data1 = param_values->data[0].v_pointer;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- data2 = closure->data;
-#line 1054 "CommandManager.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- callback = (GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- callback (data1, g_value_get_boolean (param_values + 1), g_value_get_boolean (param_values + 2), data2);
-#line 1060 "CommandManager.c"
-}
-
-
-static void
-value_command_manager_init (GValue* value)
-{
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- value->data[0].v_pointer = NULL;
-#line 1069 "CommandManager.c"
-}
-
-
-static void
-value_command_manager_free_value (GValue* value)
-{
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (value->data[0].v_pointer) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_unref (value->data[0].v_pointer);
-#line 1080 "CommandManager.c"
- }
-}
-
-
-static void
-value_command_manager_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (src_value->data[0].v_pointer) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- dest_value->data[0].v_pointer = command_manager_ref (src_value->data[0].v_pointer);
-#line 1093 "CommandManager.c"
- } else {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1097 "CommandManager.c"
- }
-}
-
-
-static gpointer
-value_command_manager_peek_pointer (const GValue* value)
-{
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return value->data[0].v_pointer;
-#line 1107 "CommandManager.c"
-}
-
-
-static gchar*
-value_command_manager_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (collect_values[0].v_pointer) {
-#line 1119 "CommandManager.c"
- CommandManager * object;
- object = collect_values[0].v_pointer;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1126 "CommandManager.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.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 1130 "CommandManager.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- value->data[0].v_pointer = command_manager_ref (object);
-#line 1134 "CommandManager.c"
- } else {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- value->data[0].v_pointer = NULL;
-#line 1138 "CommandManager.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return NULL;
-#line 1142 "CommandManager.c"
-}
-
-
-static gchar*
-value_command_manager_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- CommandManager ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (!object_p) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1158 "CommandManager.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (!value->data[0].v_pointer) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- *object_p = NULL;
-#line 1164 "CommandManager.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- *object_p = value->data[0].v_pointer;
-#line 1168 "CommandManager.c"
- } else {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- *object_p = command_manager_ref (value->data[0].v_pointer);
-#line 1172 "CommandManager.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return NULL;
-#line 1176 "CommandManager.c"
-}
-
-
-GParamSpec*
-param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecCommandManager* spec;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_COMMAND_MANAGER), NULL);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return G_PARAM_SPEC (spec);
-#line 1196 "CommandManager.c"
-}
-
-
-gpointer
-value_get_command_manager (const GValue* value)
-{
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMMAND_MANAGER), NULL);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return value->data[0].v_pointer;
-#line 1207 "CommandManager.c"
-}
-
-
-void
-value_set_command_manager (GValue* value,
- gpointer v_object)
-{
- CommandManager * old;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMMAND_MANAGER));
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- old = value->data[0].v_pointer;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (v_object) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMMAND_MANAGER));
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- value->data[0].v_pointer = v_object;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_ref (value->data[0].v_pointer);
-#line 1230 "CommandManager.c"
- } else {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- value->data[0].v_pointer = NULL;
-#line 1234 "CommandManager.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (old) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_unref (old);
-#line 1240 "CommandManager.c"
- }
-}
-
-
-void
-value_take_command_manager (GValue* value,
- gpointer v_object)
-{
- CommandManager * old;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMMAND_MANAGER));
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- old = value->data[0].v_pointer;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (v_object) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMMAND_MANAGER));
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- value->data[0].v_pointer = v_object;
-#line 1262 "CommandManager.c"
- } else {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- value->data[0].v_pointer = NULL;
-#line 1266 "CommandManager.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (old) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_unref (old);
-#line 1272 "CommandManager.c"
- }
-}
-
-
-static void
-command_manager_class_init (CommandManagerClass * klass)
-{
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_parent_class = g_type_class_peek_parent (klass);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- ((CommandManagerClass *) klass)->finalize = command_manager_finalize;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_type_class_add_private (klass, sizeof (CommandManagerPrivate));
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL] = g_signal_new ("altered", TYPE_COMMAND_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN, G_TYPE_NONE, 2, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);
-#line 1288 "CommandManager.c"
-}
-
-
-static void
-command_manager_instance_init (CommandManager * self)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv = COMMAND_MANAGER_GET_PRIVATE (self);
-#line 84 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp0_ = gee_array_list_new (TYPE_COMMAND, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 84 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv->undo_stack = _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _tmp1_ = gee_array_list_new (TYPE_COMMAND, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 85 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->priv->redo_stack = _tmp1_;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self->ref_count = 1;
-#line 1309 "CommandManager.c"
-}
-
-
-static void
-command_manager_finalize (CommandManager * obj)
-{
- CommandManager * self;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COMMAND_MANAGER, CommandManager);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_signal_handlers_destroy (self);
-#line 84 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (self->priv->undo_stack);
-#line 85 "/home/jens/Source/shotwell/src/CommandManager.vala"
- _g_object_unref0 (self->priv->redo_stack);
-#line 1325 "CommandManager.c"
-}
-
-
-GType
-command_manager_get_type (void)
-{
- static volatile gsize command_manager_type_id__volatile = 0;
- if (g_once_init_enter (&command_manager_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_command_manager_init, value_command_manager_free_value, value_command_manager_copy_value, value_command_manager_peek_pointer, "p", value_command_manager_collect_value, "p", value_command_manager_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (CommandManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) command_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CommandManager), 0, (GInstanceInitFunc) command_manager_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType command_manager_type_id;
- command_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CommandManager", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&command_manager_type_id__volatile, command_manager_type_id);
- }
- return command_manager_type_id__volatile;
-}
-
-
-gpointer
-command_manager_ref (gpointer instance)
-{
- CommandManager * self;
- self = instance;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- return instance;
-#line 1354 "CommandManager.c"
-}
-
-
-void
-command_manager_unref (gpointer instance)
-{
- CommandManager * self;
- self = instance;
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- COMMAND_MANAGER_GET_CLASS (self)->finalize (self);
-#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1369 "CommandManager.c"
- }
-}
-
-
-
diff --git a/src/Commands.c b/src/Commands.c
deleted file mode 100644
index 9bbd51a..0000000
--- a/src/Commands.c
+++ /dev/null
@@ -1,22414 +0,0 @@
-/* Commands.c generated by valac 0.40.4, the Vala compiler
- * generated from Commands.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* PageCommand stores the current page when a Command is created. Subclasses can call return_to_page()*/
-/* if it's appropriate to return to that page when executing an undo() or redo().*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gee.h>
-#include <float.h>
-#include <math.h>
-#include <gio/gio.h>
-#include <glib/gi18n-lib.h>
-#include "shotwell-graphics-processor.h"
-#include <gdk/gdk.h>
-#include <time.h>
-
-
-#define TYPE_COMMAND_DESCRIPTION (command_description_get_type ())
-#define COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescription))
-#define IS_COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_DESCRIPTION))
-#define COMMAND_DESCRIPTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescriptionIface))
-
-typedef struct _CommandDescription CommandDescription;
-typedef struct _CommandDescriptionIface CommandDescriptionIface;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-typedef struct _CommandPrivate CommandPrivate;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-typedef struct _PageCommandPrivate PageCommandPrivate;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-enum {
- PAGE_COMMAND_0_PROPERTY,
- PAGE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* page_command_properties[PAGE_COMMAND_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-
-#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ())
-#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage))
-#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE))
-#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE))
-#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-
-typedef struct _EditingHostPage EditingHostPage;
-typedef struct _EditingHostPageClass EditingHostPageClass;
-
-#define TYPE_LIBRARY_PHOTO_PAGE (library_photo_page_get_type ())
-#define LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage))
-#define LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass))
-#define IS_LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_PAGE))
-#define IS_LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_PAGE))
-#define LIBRARY_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass))
-
-typedef struct _LibraryPhotoPage LibraryPhotoPage;
-typedef struct _LibraryPhotoPageClass LibraryPhotoPageClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#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))
-#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
-#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
-#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
-
-typedef struct _MediaSourceItem MediaSourceItem;
-typedef struct _MediaSourceItemClass MediaSourceItemClass;
-
-#define TYPE_THUMBNAIL (thumbnail_get_type ())
-#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail))
-#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass))
-#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL))
-#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL))
-#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass))
-
-typedef struct _Thumbnail Thumbnail;
-typedef struct _ThumbnailClass ThumbnailClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ())
-#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand))
-#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-
-typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
-typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
-typedef struct _SingleDataSourceCommandPrivate SingleDataSourceCommandPrivate;
-enum {
- SINGLE_DATA_SOURCE_COMMAND_0_PROPERTY,
- SINGLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* single_data_source_command_properties[SINGLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES];
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ())
-#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand))
-#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-
-typedef struct _SimpleProxyableCommand SimpleProxyableCommand;
-typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass;
-typedef struct _SimpleProxyableCommandPrivate SimpleProxyableCommandPrivate;
-
-#define TYPE_SOURCE_PROXY (source_proxy_get_type ())
-#define SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_PROXY, SourceProxy))
-#define SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_PROXY, SourceProxyClass))
-#define IS_SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_PROXY))
-#define IS_SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_PROXY))
-#define SOURCE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_PROXY, SourceProxyClass))
-
-typedef struct _SourceProxy SourceProxy;
-typedef struct _SourceProxyClass SourceProxyClass;
-enum {
- SIMPLE_PROXYABLE_COMMAND_0_PROPERTY,
- SIMPLE_PROXYABLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* simple_proxyable_command_properties[SIMPLE_PROXYABLE_COMMAND_NUM_PROPERTIES];
-#define _source_proxy_unref0(var) ((var == NULL) ? NULL : (var = (source_proxy_unref (var), NULL)))
-
-#define TYPE_PROXYABLE (proxyable_get_type ())
-#define PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROXYABLE, Proxyable))
-#define IS_PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROXYABLE))
-#define PROXYABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_PROXYABLE, ProxyableIface))
-
-typedef struct _Proxyable Proxyable;
-typedef struct _ProxyableIface ProxyableIface;
-
-#define TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND (single_photo_transformation_command_get_type ())
-#define SINGLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommand))
-#define SINGLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommandClass))
-#define IS_SINGLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND))
-#define IS_SINGLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND))
-#define SINGLE_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommandClass))
-
-typedef struct _SinglePhotoTransformationCommand SinglePhotoTransformationCommand;
-typedef struct _SinglePhotoTransformationCommandClass SinglePhotoTransformationCommandClass;
-typedef struct _SinglePhotoTransformationCommandPrivate SinglePhotoTransformationCommandPrivate;
-
-#define TYPE_PHOTO_TRANSFORMATION_STATE (photo_transformation_state_get_type ())
-#define PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState))
-#define PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass))
-#define IS_PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TRANSFORMATION_STATE))
-#define IS_PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TRANSFORMATION_STATE))
-#define PHOTO_TRANSFORMATION_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass))
-
-typedef struct _PhotoTransformationState PhotoTransformationState;
-typedef struct _PhotoTransformationStateClass PhotoTransformationStateClass;
-enum {
- SINGLE_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY,
- SINGLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* single_photo_transformation_command_properties[SINGLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ())
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand))
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass))
-#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND))
-#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND))
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass))
-
-typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand;
-typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass;
-typedef struct _GenericPhotoTransformationCommandPrivate GenericPhotoTransformationCommandPrivate;
-enum {
- GENERIC_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY,
- GENERIC_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* generic_photo_transformation_command_properties[GENERIC_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ())
-#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand))
-#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
-#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
-#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
-#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
-
-typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand;
-typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass;
-typedef struct _MultipleDataSourceCommandPrivate MultipleDataSourceCommandPrivate;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-enum {
- MULTIPLE_DATA_SOURCE_COMMAND_0_PROPERTY,
- MULTIPLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* multiple_data_source_command_properties[MULTIPLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-
-#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))
-#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG))
-#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG))
-#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass))
-
-typedef struct _ProgressDialog ProgressDialog;
-typedef struct _ProgressDialogClass ProgressDialogClass;
-
-#define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ())
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand))
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass))
-#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND))
-#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND))
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass))
-
-typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand;
-typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass;
-typedef struct _MultipleDataSourceAtOnceCommandPrivate MultipleDataSourceAtOnceCommandPrivate;
-enum {
- MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_0_PROPERTY,
- MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* multiple_data_source_at_once_command_properties[MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND (multiple_photo_transformation_command_get_type ())
-#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand))
-#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass))
-#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND))
-#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND))
-#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass))
-
-typedef struct _MultiplePhotoTransformationCommand MultiplePhotoTransformationCommand;
-typedef struct _MultiplePhotoTransformationCommandClass MultiplePhotoTransformationCommandClass;
-typedef struct _MultiplePhotoTransformationCommandPrivate MultiplePhotoTransformationCommandPrivate;
-enum {
- MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY,
- MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* multiple_photo_transformation_command_properties[MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_ROTATE_SINGLE_COMMAND (rotate_single_command_get_type ())
-#define ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand))
-#define ROTATE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandClass))
-#define IS_ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_SINGLE_COMMAND))
-#define IS_ROTATE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_SINGLE_COMMAND))
-#define ROTATE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandClass))
-
-typedef struct _RotateSingleCommand RotateSingleCommand;
-typedef struct _RotateSingleCommandClass RotateSingleCommandClass;
-typedef struct _RotateSingleCommandPrivate RotateSingleCommandPrivate;
-
-#define TYPE_ROTATION (rotation_get_type ())
-enum {
- ROTATE_SINGLE_COMMAND_0_PROPERTY,
- ROTATE_SINGLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* rotate_single_command_properties[ROTATE_SINGLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_ROTATE_MULTIPLE_COMMAND (rotate_multiple_command_get_type ())
-#define ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand))
-#define ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass))
-#define IS_ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_MULTIPLE_COMMAND))
-#define IS_ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_MULTIPLE_COMMAND))
-#define ROTATE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass))
-
-typedef struct _RotateMultipleCommand RotateMultipleCommand;
-typedef struct _RotateMultipleCommandClass RotateMultipleCommandClass;
-typedef struct _RotateMultipleCommandPrivate RotateMultipleCommandPrivate;
-enum {
- ROTATE_MULTIPLE_COMMAND_0_PROPERTY,
- ROTATE_MULTIPLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* rotate_multiple_command_properties[ROTATE_MULTIPLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_EDIT_TITLE_COMMAND (edit_title_command_get_type ())
-#define EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommand))
-#define EDIT_TITLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandClass))
-#define IS_EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_COMMAND))
-#define IS_EDIT_TITLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_COMMAND))
-#define EDIT_TITLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandClass))
-
-typedef struct _EditTitleCommand EditTitleCommand;
-typedef struct _EditTitleCommandClass EditTitleCommandClass;
-typedef struct _EditTitleCommandPrivate EditTitleCommandPrivate;
-enum {
- EDIT_TITLE_COMMAND_0_PROPERTY,
- EDIT_TITLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* edit_title_command_properties[EDIT_TITLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_EDIT_COMMENT_COMMAND (edit_comment_command_get_type ())
-#define EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand))
-#define EDIT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandClass))
-#define IS_EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_COMMAND))
-#define IS_EDIT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_COMMAND))
-#define EDIT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandClass))
-
-typedef struct _EditCommentCommand EditCommentCommand;
-typedef struct _EditCommentCommandClass EditCommentCommandClass;
-typedef struct _EditCommentCommandPrivate EditCommentCommandPrivate;
-enum {
- EDIT_COMMENT_COMMAND_0_PROPERTY,
- EDIT_COMMENT_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* edit_comment_command_properties[EDIT_COMMENT_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_EDIT_MULTIPLE_TITLES_COMMAND (edit_multiple_titles_command_get_type ())
-#define EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand))
-#define EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass))
-#define IS_EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND))
-#define IS_EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND))
-#define EDIT_MULTIPLE_TITLES_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass))
-
-typedef struct _EditMultipleTitlesCommand EditMultipleTitlesCommand;
-typedef struct _EditMultipleTitlesCommandClass EditMultipleTitlesCommandClass;
-typedef struct _EditMultipleTitlesCommandPrivate EditMultipleTitlesCommandPrivate;
-enum {
- EDIT_MULTIPLE_TITLES_COMMAND_0_PROPERTY,
- EDIT_MULTIPLE_TITLES_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* edit_multiple_titles_command_properties[EDIT_MULTIPLE_TITLES_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND (edit_multiple_comments_command_get_type ())
-#define EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand))
-#define EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass))
-#define IS_EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND))
-#define IS_EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND))
-#define EDIT_MULTIPLE_COMMENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass))
-
-typedef struct _EditMultipleCommentsCommand EditMultipleCommentsCommand;
-typedef struct _EditMultipleCommentsCommandClass EditMultipleCommentsCommandClass;
-typedef struct _EditMultipleCommentsCommandPrivate EditMultipleCommentsCommandPrivate;
-enum {
- EDIT_MULTIPLE_COMMENTS_COMMAND_0_PROPERTY,
- EDIT_MULTIPLE_COMMENTS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* edit_multiple_comments_command_properties[EDIT_MULTIPLE_COMMENTS_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_RENAME_EVENT_COMMAND (rename_event_command_get_type ())
-#define RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommand))
-#define RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass))
-#define IS_RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_EVENT_COMMAND))
-#define IS_RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_EVENT_COMMAND))
-#define RENAME_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass))
-
-typedef struct _RenameEventCommand RenameEventCommand;
-typedef struct _RenameEventCommandClass RenameEventCommandClass;
-typedef struct _RenameEventCommandPrivate RenameEventCommandPrivate;
-enum {
- RENAME_EVENT_COMMAND_0_PROPERTY,
- RENAME_EVENT_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* rename_event_command_properties[RENAME_EVENT_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define TYPE_EDIT_EVENT_COMMENT_COMMAND (edit_event_comment_command_get_type ())
-#define EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand))
-#define EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass))
-#define IS_EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND))
-#define IS_EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND))
-#define EDIT_EVENT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass))
-
-typedef struct _EditEventCommentCommand EditEventCommentCommand;
-typedef struct _EditEventCommentCommandClass EditEventCommentCommandClass;
-typedef struct _EditEventCommentCommandPrivate EditEventCommentCommandPrivate;
-enum {
- EDIT_EVENT_COMMENT_COMMAND_0_PROPERTY,
- EDIT_EVENT_COMMENT_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* edit_event_comment_command_properties[EDIT_EVENT_COMMENT_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_SET_KEY_PHOTO_COMMAND (set_key_photo_command_get_type ())
-#define SET_KEY_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand))
-#define SET_KEY_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommandClass))
-#define IS_SET_KEY_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_KEY_PHOTO_COMMAND))
-#define IS_SET_KEY_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_KEY_PHOTO_COMMAND))
-#define SET_KEY_PHOTO_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommandClass))
-
-typedef struct _SetKeyPhotoCommand SetKeyPhotoCommand;
-typedef struct _SetKeyPhotoCommandClass SetKeyPhotoCommandClass;
-typedef struct _SetKeyPhotoCommandPrivate SetKeyPhotoCommandPrivate;
-enum {
- SET_KEY_PHOTO_COMMAND_0_PROPERTY,
- SET_KEY_PHOTO_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* set_key_photo_command_properties[SET_KEY_PHOTO_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_REVERT_SINGLE_COMMAND (revert_single_command_get_type ())
-#define REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand))
-#define REVERT_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommandClass))
-#define IS_REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_SINGLE_COMMAND))
-#define IS_REVERT_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_SINGLE_COMMAND))
-#define REVERT_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommandClass))
-
-typedef struct _RevertSingleCommand RevertSingleCommand;
-typedef struct _RevertSingleCommandClass RevertSingleCommandClass;
-typedef struct _RevertSingleCommandPrivate RevertSingleCommandPrivate;
-enum {
- REVERT_SINGLE_COMMAND_0_PROPERTY,
- REVERT_SINGLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* revert_single_command_properties[REVERT_SINGLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_REVERT_MULTIPLE_COMMAND (revert_multiple_command_get_type ())
-#define REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand))
-#define REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass))
-#define IS_REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_MULTIPLE_COMMAND))
-#define IS_REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_MULTIPLE_COMMAND))
-#define REVERT_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass))
-
-typedef struct _RevertMultipleCommand RevertMultipleCommand;
-typedef struct _RevertMultipleCommandClass RevertMultipleCommandClass;
-typedef struct _RevertMultipleCommandPrivate RevertMultipleCommandPrivate;
-enum {
- REVERT_MULTIPLE_COMMAND_0_PROPERTY,
- REVERT_MULTIPLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* revert_multiple_command_properties[REVERT_MULTIPLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_ENHANCE_SINGLE_COMMAND (enhance_single_command_get_type ())
-#define ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand))
-#define ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass))
-#define IS_ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_SINGLE_COMMAND))
-#define IS_ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_SINGLE_COMMAND))
-#define ENHANCE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass))
-
-typedef struct _EnhanceSingleCommand EnhanceSingleCommand;
-typedef struct _EnhanceSingleCommandClass EnhanceSingleCommandClass;
-typedef struct _EnhanceSingleCommandPrivate EnhanceSingleCommandPrivate;
-enum {
- ENHANCE_SINGLE_COMMAND_0_PROPERTY,
- ENHANCE_SINGLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* enhance_single_command_properties[ENHANCE_SINGLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_ENHANCE_MULTIPLE_COMMAND (enhance_multiple_command_get_type ())
-#define ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand))
-#define ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass))
-#define IS_ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND))
-#define IS_ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND))
-#define ENHANCE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass))
-
-typedef struct _EnhanceMultipleCommand EnhanceMultipleCommand;
-typedef struct _EnhanceMultipleCommandClass EnhanceMultipleCommandClass;
-typedef struct _EnhanceMultipleCommandPrivate EnhanceMultipleCommandPrivate;
-enum {
- ENHANCE_MULTIPLE_COMMAND_0_PROPERTY,
- ENHANCE_MULTIPLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* enhance_multiple_command_properties[ENHANCE_MULTIPLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_STRAIGHTEN_COMMAND (straighten_command_get_type ())
-#define STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommand))
-#define STRAIGHTEN_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRAIGHTEN_COMMAND, StraightenCommandClass))
-#define IS_STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRAIGHTEN_COMMAND))
-#define IS_STRAIGHTEN_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRAIGHTEN_COMMAND))
-#define STRAIGHTEN_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommandClass))
-
-typedef struct _StraightenCommand StraightenCommand;
-typedef struct _StraightenCommandClass StraightenCommandClass;
-typedef struct _StraightenCommandPrivate StraightenCommandPrivate;
-
-#define TYPE_BOX (box_get_type ())
-typedef struct _Box Box;
-enum {
- STRAIGHTEN_COMMAND_0_PROPERTY,
- STRAIGHTEN_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* straighten_command_properties[STRAIGHTEN_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_CROP_COMMAND (crop_command_get_type ())
-#define CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CROP_COMMAND, CropCommand))
-#define CROP_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CROP_COMMAND, CropCommandClass))
-#define IS_CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CROP_COMMAND))
-#define IS_CROP_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CROP_COMMAND))
-#define CROP_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CROP_COMMAND, CropCommandClass))
-
-typedef struct _CropCommand CropCommand;
-typedef struct _CropCommandClass CropCommandClass;
-typedef struct _CropCommandPrivate CropCommandPrivate;
-enum {
- CROP_COMMAND_0_PROPERTY,
- CROP_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* crop_command_properties[CROP_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_ADJUST_COLORS_SINGLE_COMMAND (adjust_colors_single_command_get_type ())
-#define ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand))
-#define ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass))
-#define IS_ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND))
-#define IS_ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND))
-#define ADJUST_COLORS_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass))
-
-typedef struct _AdjustColorsSingleCommand AdjustColorsSingleCommand;
-typedef struct _AdjustColorsSingleCommandClass AdjustColorsSingleCommandClass;
-typedef struct _AdjustColorsSingleCommandPrivate AdjustColorsSingleCommandPrivate;
-enum {
- ADJUST_COLORS_SINGLE_COMMAND_0_PROPERTY,
- ADJUST_COLORS_SINGLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* adjust_colors_single_command_properties[ADJUST_COLORS_SINGLE_COMMAND_NUM_PROPERTIES];
-#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
-
-#define TYPE_ADJUST_COLORS_MULTIPLE_COMMAND (adjust_colors_multiple_command_get_type ())
-#define ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand))
-#define ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass))
-#define IS_ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND))
-#define IS_ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND))
-#define ADJUST_COLORS_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass))
-
-typedef struct _AdjustColorsMultipleCommand AdjustColorsMultipleCommand;
-typedef struct _AdjustColorsMultipleCommandClass AdjustColorsMultipleCommandClass;
-typedef struct _AdjustColorsMultipleCommandPrivate AdjustColorsMultipleCommandPrivate;
-enum {
- ADJUST_COLORS_MULTIPLE_COMMAND_0_PROPERTY,
- ADJUST_COLORS_MULTIPLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* adjust_colors_multiple_command_properties[ADJUST_COLORS_MULTIPLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_REDEYE_COMMAND (redeye_command_get_type ())
-#define REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REDEYE_COMMAND, RedeyeCommand))
-#define REDEYE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REDEYE_COMMAND, RedeyeCommandClass))
-#define IS_REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REDEYE_COMMAND))
-#define IS_REDEYE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REDEYE_COMMAND))
-#define REDEYE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REDEYE_COMMAND, RedeyeCommandClass))
-
-typedef struct _RedeyeCommand RedeyeCommand;
-typedef struct _RedeyeCommandClass RedeyeCommandClass;
-typedef struct _RedeyeCommandPrivate RedeyeCommandPrivate;
-
-#define EDITING_TOOLS_TYPE_REDEYE_INSTANCE (editing_tools_redeye_instance_get_type ())
-typedef struct _EditingToolsRedeyeInstance EditingToolsRedeyeInstance;
-enum {
- REDEYE_COMMAND_0_PROPERTY,
- REDEYE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* redeye_command_properties[REDEYE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ())
-#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand))
-#define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass))
-#define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND))
-#define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND))
-#define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass))
-
-typedef struct _MovePhotosCommand MovePhotosCommand;
-typedef struct _MovePhotosCommandClass MovePhotosCommandClass;
-typedef struct _MovePhotosCommandPrivate MovePhotosCommandPrivate;
-
-#define MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND (move_photos_command_real_move_photos_command_get_type ())
-#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand))
-#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommandClass))
-#define MOVE_PHOTOS_COMMAND_IS_REAL_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND))
-#define MOVE_PHOTOS_COMMAND_IS_REAL_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND))
-#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommandClass))
-
-typedef struct _MovePhotosCommandRealMovePhotosCommand MovePhotosCommandRealMovePhotosCommand;
-typedef struct _MovePhotosCommandRealMovePhotosCommandClass MovePhotosCommandRealMovePhotosCommandClass;
-enum {
- MOVE_PHOTOS_COMMAND_0_PROPERTY,
- MOVE_PHOTOS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* move_photos_command_properties[MOVE_PHOTOS_COMMAND_NUM_PROPERTIES];
-typedef struct _MovePhotosCommandRealMovePhotosCommandPrivate MovePhotosCommandRealMovePhotosCommandPrivate;
-enum {
- MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_0_PROPERTY,
- MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* move_photos_command_real_move_photos_command_properties[MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_EVENT_PAGE (event_page_get_type ())
-#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage))
-#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass))
-#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE))
-#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE))
-#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass))
-
-typedef struct _EventPage EventPage;
-typedef struct _EventPageClass EventPageClass;
-
-#define TYPE_NEW_EVENT_COMMAND (new_event_command_get_type ())
-#define NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommand))
-#define NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass))
-#define IS_NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_EVENT_COMMAND))
-#define IS_NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_EVENT_COMMAND))
-#define NEW_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass))
-
-typedef struct _NewEventCommand NewEventCommand;
-typedef struct _NewEventCommandClass NewEventCommandClass;
-typedef struct _NewEventCommandPrivate NewEventCommandPrivate;
-enum {
- NEW_EVENT_COMMAND_0_PROPERTY,
- NEW_EVENT_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* new_event_command_properties[NEW_EVENT_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_SET_EVENT_COMMAND (set_event_command_get_type ())
-#define SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommand))
-#define SET_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_EVENT_COMMAND, SetEventCommandClass))
-#define IS_SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_EVENT_COMMAND))
-#define IS_SET_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_EVENT_COMMAND))
-#define SET_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommandClass))
-
-typedef struct _SetEventCommand SetEventCommand;
-typedef struct _SetEventCommandClass SetEventCommandClass;
-typedef struct _SetEventCommandPrivate SetEventCommandPrivate;
-enum {
- SET_EVENT_COMMAND_0_PROPERTY,
- SET_EVENT_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* set_event_command_properties[SET_EVENT_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_MERGE_EVENTS_COMMAND (merge_events_command_get_type ())
-#define MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommand))
-#define MERGE_EVENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommandClass))
-#define IS_MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MERGE_EVENTS_COMMAND))
-#define IS_MERGE_EVENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MERGE_EVENTS_COMMAND))
-#define MERGE_EVENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommandClass))
-
-typedef struct _MergeEventsCommand MergeEventsCommand;
-typedef struct _MergeEventsCommandClass MergeEventsCommandClass;
-typedef struct _MergeEventsCommandPrivate MergeEventsCommandPrivate;
-enum {
- MERGE_EVENTS_COMMAND_0_PROPERTY,
- MERGE_EVENTS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* merge_events_command_properties[MERGE_EVENTS_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (duplicate_multiple_photos_command_get_type ())
-#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand))
-#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass))
-#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND))
-#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND))
-#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass))
-
-typedef struct _DuplicateMultiplePhotosCommand DuplicateMultiplePhotosCommand;
-typedef struct _DuplicateMultiplePhotosCommandClass DuplicateMultiplePhotosCommandClass;
-typedef struct _DuplicateMultiplePhotosCommandPrivate DuplicateMultiplePhotosCommandPrivate;
-
-#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;
-enum {
- DUPLICATE_MULTIPLE_PHOTOS_COMMAND_0_PROPERTY,
- DUPLICATE_MULTIPLE_PHOTOS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* duplicate_multiple_photos_command_properties[DUPLICATE_MULTIPLE_PHOTOS_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SET_RATING_SINGLE_COMMAND (set_rating_single_command_get_type ())
-#define SET_RATING_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand))
-#define SET_RATING_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandClass))
-#define IS_SET_RATING_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_SINGLE_COMMAND))
-#define IS_SET_RATING_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_SINGLE_COMMAND))
-#define SET_RATING_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandClass))
-
-typedef struct _SetRatingSingleCommand SetRatingSingleCommand;
-typedef struct _SetRatingSingleCommandClass SetRatingSingleCommandClass;
-typedef struct _SetRatingSingleCommandPrivate SetRatingSingleCommandPrivate;
-
-#define TYPE_RATING (rating_get_type ())
-enum {
- SET_RATING_SINGLE_COMMAND_0_PROPERTY,
- SET_RATING_SINGLE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* set_rating_single_command_properties[SET_RATING_SINGLE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_SET_RATING_COMMAND (set_rating_command_get_type ())
-#define SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommand))
-#define SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_COMMAND, SetRatingCommandClass))
-#define IS_SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_COMMAND))
-#define IS_SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_COMMAND))
-#define SET_RATING_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommandClass))
-
-typedef struct _SetRatingCommand SetRatingCommand;
-typedef struct _SetRatingCommandClass SetRatingCommandClass;
-typedef struct _SetRatingCommandPrivate SetRatingCommandPrivate;
-enum {
- SET_RATING_COMMAND_0_PROPERTY,
- SET_RATING_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* set_rating_command_properties[SET_RATING_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_SET_RAW_DEVELOPER_COMMAND (set_raw_developer_command_get_type ())
-#define SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand))
-#define SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass))
-#define IS_SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND))
-#define IS_SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND))
-#define SET_RAW_DEVELOPER_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass))
-
-typedef struct _SetRawDeveloperCommand SetRawDeveloperCommand;
-typedef struct _SetRawDeveloperCommandClass SetRawDeveloperCommandClass;
-typedef struct _SetRawDeveloperCommandPrivate SetRawDeveloperCommandPrivate;
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-enum {
- SET_RAW_DEVELOPER_COMMAND_0_PROPERTY,
- SET_RAW_DEVELOPER_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* set_raw_developer_command_properties[SET_RAW_DEVELOPER_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND (adjust_date_time_photo_command_get_type ())
-#define ADJUST_DATE_TIME_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand))
-#define ADJUST_DATE_TIME_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandClass))
-#define IS_ADJUST_DATE_TIME_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND))
-#define IS_ADJUST_DATE_TIME_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND))
-#define ADJUST_DATE_TIME_PHOTO_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandClass))
-
-typedef struct _AdjustDateTimePhotoCommand AdjustDateTimePhotoCommand;
-typedef struct _AdjustDateTimePhotoCommandClass AdjustDateTimePhotoCommandClass;
-typedef struct _AdjustDateTimePhotoCommandPrivate AdjustDateTimePhotoCommandPrivate;
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-enum {
- ADJUST_DATE_TIME_PHOTO_COMMAND_0_PROPERTY,
- ADJUST_DATE_TIME_PHOTO_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* adjust_date_time_photo_command_properties[ADJUST_DATE_TIME_PHOTO_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ())
-#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection))
-#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION))
-#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION))
-#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-
-typedef struct _EventSourceCollection EventSourceCollection;
-typedef struct _EventSourceCollectionClass EventSourceCollectionClass;
-
-#define TYPE_EVENT_VIEW (event_view_get_type ())
-#define EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_VIEW, EventView))
-#define EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_VIEW, EventViewClass))
-#define IS_EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_VIEW))
-#define IS_EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_VIEW))
-#define EVENT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_VIEW, EventViewClass))
-
-typedef struct _EventView EventView;
-typedef struct _EventViewClass EventViewClass;
-
-#define TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND (adjust_date_time_photos_command_get_type ())
-#define ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand))
-#define ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass))
-#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND))
-#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND))
-#define ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass))
-
-typedef struct _AdjustDateTimePhotosCommand AdjustDateTimePhotosCommand;
-typedef struct _AdjustDateTimePhotosCommandClass AdjustDateTimePhotosCommandClass;
-typedef struct _AdjustDateTimePhotosCommandPrivate AdjustDateTimePhotosCommandPrivate;
-enum {
- ADJUST_DATE_TIME_PHOTOS_COMMAND_0_PROPERTY,
- ADJUST_DATE_TIME_PHOTOS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* adjust_date_time_photos_command_properties[ADJUST_DATE_TIME_PHOTOS_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ())
-#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand))
-#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
-#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND))
-#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND))
-#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
-
-typedef struct _AddTagsCommand AddTagsCommand;
-typedef struct _AddTagsCommandClass AddTagsCommandClass;
-typedef struct _AddTagsCommandPrivate AddTagsCommandPrivate;
-enum {
- ADD_TAGS_COMMAND_0_PROPERTY,
- ADD_TAGS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* add_tags_command_properties[ADD_TAGS_COMMAND_NUM_PROPERTIES];
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_RENAME_TAG_COMMAND (rename_tag_command_get_type ())
-#define RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommand))
-#define RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass))
-#define IS_RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_TAG_COMMAND))
-#define IS_RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_TAG_COMMAND))
-#define RENAME_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass))
-
-typedef struct _RenameTagCommand RenameTagCommand;
-typedef struct _RenameTagCommandClass RenameTagCommandClass;
-typedef struct _RenameTagCommandPrivate RenameTagCommandPrivate;
-enum {
- RENAME_TAG_COMMAND_0_PROPERTY,
- RENAME_TAG_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* rename_tag_command_properties[RENAME_TAG_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ())
-#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand))
-#define DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
-#define IS_DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_TAG_COMMAND))
-#define IS_DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_TAG_COMMAND))
-#define DELETE_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
-
-typedef struct _DeleteTagCommand DeleteTagCommand;
-typedef struct _DeleteTagCommandClass DeleteTagCommandClass;
-typedef struct _DeleteTagCommandPrivate DeleteTagCommandPrivate;
-enum {
- DELETE_TAG_COMMAND_0_PROPERTY,
- DELETE_TAG_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* delete_tag_command_properties[DELETE_TAG_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#define TYPE_NEW_CHILD_TAG_COMMAND (new_child_tag_command_get_type ())
-#define NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand))
-#define NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass))
-#define IS_NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_CHILD_TAG_COMMAND))
-#define IS_NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_CHILD_TAG_COMMAND))
-#define NEW_CHILD_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass))
-
-typedef struct _NewChildTagCommand NewChildTagCommand;
-typedef struct _NewChildTagCommandClass NewChildTagCommandClass;
-typedef struct _NewChildTagCommandPrivate NewChildTagCommandPrivate;
-enum {
- NEW_CHILD_TAG_COMMAND_0_PROPERTY,
- NEW_CHILD_TAG_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* new_child_tag_command_properties[NEW_CHILD_TAG_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_NEW_ROOT_TAG_COMMAND (new_root_tag_command_get_type ())
-#define NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand))
-#define NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass))
-#define IS_NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_ROOT_TAG_COMMAND))
-#define IS_NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_ROOT_TAG_COMMAND))
-#define NEW_ROOT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass))
-
-typedef struct _NewRootTagCommand NewRootTagCommand;
-typedef struct _NewRootTagCommandClass NewRootTagCommandClass;
-typedef struct _NewRootTagCommandPrivate NewRootTagCommandPrivate;
-enum {
- NEW_ROOT_TAG_COMMAND_0_PROPERTY,
- NEW_ROOT_TAG_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* new_root_tag_command_properties[NEW_ROOT_TAG_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_REPARENT_TAG_COMMAND (reparent_tag_command_get_type ())
-#define REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand))
-#define REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass))
-#define IS_REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REPARENT_TAG_COMMAND))
-#define IS_REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REPARENT_TAG_COMMAND))
-#define REPARENT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass))
-
-typedef struct _ReparentTagCommand ReparentTagCommand;
-typedef struct _ReparentTagCommandClass ReparentTagCommandClass;
-typedef struct _ReparentTagCommandPrivate ReparentTagCommandPrivate;
-enum {
- REPARENT_TAG_COMMAND_0_PROPERTY,
- REPARENT_TAG_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* reparent_tag_command_properties[REPARENT_TAG_COMMAND_NUM_PROPERTIES];
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-
-#define TYPE_MODIFY_TAGS_COMMAND (modify_tags_command_get_type ())
-#define MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand))
-#define MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass))
-#define IS_MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_COMMAND))
-#define IS_MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_COMMAND))
-#define MODIFY_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass))
-
-typedef struct _ModifyTagsCommand ModifyTagsCommand;
-typedef struct _ModifyTagsCommandClass ModifyTagsCommandClass;
-typedef struct _ModifyTagsCommandPrivate ModifyTagsCommandPrivate;
-enum {
- MODIFY_TAGS_COMMAND_0_PROPERTY,
- MODIFY_TAGS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* modify_tags_command_properties[MODIFY_TAGS_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ())
-#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand))
-#define TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
-#define IS_TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
-#define IS_TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
-#define TAG_UNTAG_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
-
-typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand;
-typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass;
-typedef struct _TagUntagPhotosCommandPrivate TagUntagPhotosCommandPrivate;
-enum {
- TAG_UNTAG_PHOTOS_COMMAND_0_PROPERTY,
- TAG_UNTAG_PHOTOS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* tag_untag_photos_command_properties[TAG_UNTAG_PHOTOS_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_RENAME_SAVED_SEARCH_COMMAND (rename_saved_search_command_get_type ())
-#define RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand))
-#define RENAME_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandClass))
-#define IS_RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND))
-#define IS_RENAME_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_SAVED_SEARCH_COMMAND))
-#define RENAME_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandClass))
-
-typedef struct _RenameSavedSearchCommand RenameSavedSearchCommand;
-typedef struct _RenameSavedSearchCommandClass RenameSavedSearchCommandClass;
-typedef struct _RenameSavedSearchCommandPrivate RenameSavedSearchCommandPrivate;
-
-#define TYPE_SAVED_SEARCH (saved_search_get_type ())
-#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch))
-#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass))
-#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH))
-#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH))
-#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass))
-
-typedef struct _SavedSearch SavedSearch;
-typedef struct _SavedSearchClass SavedSearchClass;
-enum {
- RENAME_SAVED_SEARCH_COMMAND_0_PROPERTY,
- RENAME_SAVED_SEARCH_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* rename_saved_search_command_properties[RENAME_SAVED_SEARCH_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ())
-#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand))
-#define DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass))
-#define IS_DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND))
-#define IS_DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND))
-#define DELETE_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass))
-
-typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand;
-typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass;
-typedef struct _DeleteSavedSearchCommandPrivate DeleteSavedSearchCommandPrivate;
-enum {
- DELETE_SAVED_SEARCH_COMMAND_0_PROPERTY,
- DELETE_SAVED_SEARCH_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* delete_saved_search_command_properties[DELETE_SAVED_SEARCH_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ())
-#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable))
-#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE))
-#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE))
-#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-
-typedef struct _SavedSearchTable SavedSearchTable;
-typedef struct _SavedSearchTableClass SavedSearchTableClass;
-#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL)))
-
-#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ())
-#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-
-typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand;
-typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass;
-typedef struct _TrashUntrashPhotosCommandPrivate TrashUntrashPhotosCommandPrivate;
-enum {
- TRASH_UNTRASH_PHOTOS_COMMAND_0_PROPERTY,
- TRASH_UNTRASH_PHOTOS_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* trash_untrash_photos_command_properties[TRASH_UNTRASH_PHOTOS_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ())
-#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand))
-#define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass))
-#define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND))
-#define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND))
-#define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass))
-
-typedef struct _FlagUnflagCommand FlagUnflagCommand;
-typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass;
-typedef struct _FlagUnflagCommandPrivate FlagUnflagCommandPrivate;
-enum {
- FLAG_UNFLAG_COMMAND_0_PROPERTY,
- FLAG_UNFLAG_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* flag_unflag_command_properties[FLAG_UNFLAG_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _CommandDescriptionIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (CommandDescription* self);
- gchar* (*get_explanation) (CommandDescription* self);
-};
-
-struct _Command {
- GObject parent_instance;
- CommandPrivate * priv;
-};
-
-struct _CommandClass {
- GObjectClass parent_class;
- void (*prepare) (Command* self);
- void (*execute) (Command* self);
- void (*undo) (Command* self);
- void (*redo) (Command* self);
- gboolean (*compress) (Command* self, Command* command);
- gchar* (*get_name) (Command* self);
- gchar* (*get_explanation) (Command* self);
-};
-
-struct _PageCommand {
- Command parent_instance;
- PageCommandPrivate * priv;
-};
-
-struct _PageCommandClass {
- CommandClass parent_class;
-};
-
-struct _PageCommandPrivate {
- Page* page;
- gboolean auto_return;
- Photo* library_photo;
- CollectionPage* collection_page;
-};
-
-struct _SingleDataSourceCommand {
- PageCommand parent_instance;
- SingleDataSourceCommandPrivate * priv;
- DataSource* source;
-};
-
-struct _SingleDataSourceCommandClass {
- PageCommandClass parent_class;
-};
-
-struct _SimpleProxyableCommand {
- PageCommand parent_instance;
- SimpleProxyableCommandPrivate * priv;
-};
-
-struct _SimpleProxyableCommandClass {
- PageCommandClass parent_class;
- void (*execute_on_source) (SimpleProxyableCommand* self, DataSource* source);
- void (*undo_on_source) (SimpleProxyableCommand* self, DataSource* source);
-};
-
-struct _SimpleProxyableCommandPrivate {
- SourceProxy* proxy;
- GeeHashSet* proxies;
-};
-
-struct _ProxyableIface {
- GTypeInterface parent_iface;
- SourceProxy* (*get_proxy) (Proxyable* self);
-};
-
-struct _SinglePhotoTransformationCommand {
- SingleDataSourceCommand parent_instance;
- SinglePhotoTransformationCommandPrivate * priv;
-};
-
-struct _SinglePhotoTransformationCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-struct _SinglePhotoTransformationCommandPrivate {
- PhotoTransformationState* state;
-};
-
-struct _GenericPhotoTransformationCommand {
- SingleDataSourceCommand parent_instance;
- GenericPhotoTransformationCommandPrivate * priv;
-};
-
-struct _GenericPhotoTransformationCommandClass {
- SingleDataSourceCommandClass parent_class;
- void (*execute_on_photo) (GenericPhotoTransformationCommand* self, Photo* photo);
- gboolean (*can_compress) (GenericPhotoTransformationCommand* self, Command* command);
-};
-
-struct _GenericPhotoTransformationCommandPrivate {
- PhotoTransformationState* original_state;
- PhotoTransformationState* transformed_state;
-};
-
-struct _MultipleDataSourceCommand {
- PageCommand parent_instance;
- MultipleDataSourceCommandPrivate * priv;
- GeeArrayList* source_list;
-};
-
-struct _MultipleDataSourceCommandClass {
- PageCommandClass parent_class;
- void (*execute_on_source) (MultipleDataSourceCommand* self, DataSource* source);
- void (*undo_on_source) (MultipleDataSourceCommand* self, DataSource* source);
-};
-
-struct _MultipleDataSourceCommandPrivate {
- gchar* progress_text;
- gchar* undo_progress_text;
- GeeArrayList* acted_upon;
- GeeHashSet* hooked_collections;
-};
-
-struct _MultipleDataSourceAtOnceCommand {
- PageCommand parent_instance;
- MultipleDataSourceAtOnceCommandPrivate * priv;
-};
-
-struct _MultipleDataSourceAtOnceCommandClass {
- PageCommandClass parent_class;
- void (*execute_on_all) (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources);
- void (*undo_on_all) (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources);
-};
-
-struct _MultipleDataSourceAtOnceCommandPrivate {
- GeeHashSet* sources;
- GeeHashSet* hooked_collections;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _MultiplePhotoTransformationCommand {
- MultipleDataSourceCommand parent_instance;
- MultiplePhotoTransformationCommandPrivate * priv;
-};
-
-struct _MultiplePhotoTransformationCommandClass {
- MultipleDataSourceCommandClass parent_class;
-};
-
-struct _MultiplePhotoTransformationCommandPrivate {
- GeeHashMap* map;
-};
-
-struct _RotateSingleCommand {
- SingleDataSourceCommand parent_instance;
- RotateSingleCommandPrivate * priv;
-};
-
-struct _RotateSingleCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-typedef enum {
- ROTATION_CLOCKWISE,
- ROTATION_COUNTERCLOCKWISE,
- ROTATION_MIRROR,
- ROTATION_UPSIDE_DOWN
-} Rotation;
-
-struct _RotateSingleCommandPrivate {
- Rotation rotation;
-};
-
-struct _RotateMultipleCommand {
- MultipleDataSourceCommand parent_instance;
- RotateMultipleCommandPrivate * priv;
-};
-
-struct _RotateMultipleCommandClass {
- MultipleDataSourceCommandClass parent_class;
-};
-
-struct _RotateMultipleCommandPrivate {
- Rotation rotation;
-};
-
-struct _EditTitleCommand {
- SingleDataSourceCommand parent_instance;
- EditTitleCommandPrivate * priv;
-};
-
-struct _EditTitleCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-struct _EditTitleCommandPrivate {
- gchar* new_title;
- gchar* old_title;
-};
-
-struct _EditCommentCommand {
- SingleDataSourceCommand parent_instance;
- EditCommentCommandPrivate * priv;
-};
-
-struct _EditCommentCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-struct _EditCommentCommandPrivate {
- gchar* new_comment;
- gchar* old_comment;
-};
-
-struct _EditMultipleTitlesCommand {
- MultipleDataSourceAtOnceCommand parent_instance;
- EditMultipleTitlesCommandPrivate * priv;
- gchar* new_title;
- GeeHashMap* old_titles;
-};
-
-struct _EditMultipleTitlesCommandClass {
- MultipleDataSourceAtOnceCommandClass parent_class;
-};
-
-struct _EditMultipleCommentsCommand {
- MultipleDataSourceAtOnceCommand parent_instance;
- EditMultipleCommentsCommandPrivate * priv;
- gchar* new_comment;
- GeeHashMap* old_comments;
-};
-
-struct _EditMultipleCommentsCommandClass {
- MultipleDataSourceAtOnceCommandClass parent_class;
-};
-
-struct _RenameEventCommand {
- SimpleProxyableCommand parent_instance;
- RenameEventCommandPrivate * priv;
-};
-
-struct _RenameEventCommandClass {
- SimpleProxyableCommandClass parent_class;
-};
-
-struct _RenameEventCommandPrivate {
- gchar* new_name;
- gchar* old_name;
-};
-
-struct _EditEventCommentCommand {
- SimpleProxyableCommand parent_instance;
- EditEventCommentCommandPrivate * priv;
-};
-
-struct _EditEventCommentCommandClass {
- SimpleProxyableCommandClass parent_class;
-};
-
-struct _EditEventCommentCommandPrivate {
- gchar* new_comment;
- gchar* old_comment;
-};
-
-struct _SetKeyPhotoCommand {
- SingleDataSourceCommand parent_instance;
- SetKeyPhotoCommandPrivate * priv;
-};
-
-struct _SetKeyPhotoCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-struct _SetKeyPhotoCommandPrivate {
- MediaSource* new_primary_source;
- MediaSource* old_primary_source;
-};
-
-struct _RevertSingleCommand {
- GenericPhotoTransformationCommand parent_instance;
- RevertSingleCommandPrivate * priv;
-};
-
-struct _RevertSingleCommandClass {
- GenericPhotoTransformationCommandClass parent_class;
-};
-
-struct _RevertMultipleCommand {
- MultiplePhotoTransformationCommand parent_instance;
- RevertMultipleCommandPrivate * priv;
-};
-
-struct _RevertMultipleCommandClass {
- MultiplePhotoTransformationCommandClass parent_class;
-};
-
-struct _EnhanceSingleCommand {
- GenericPhotoTransformationCommand parent_instance;
- EnhanceSingleCommandPrivate * priv;
-};
-
-struct _EnhanceSingleCommandClass {
- GenericPhotoTransformationCommandClass parent_class;
-};
-
-struct _EnhanceMultipleCommand {
- MultiplePhotoTransformationCommand parent_instance;
- EnhanceMultipleCommandPrivate * priv;
-};
-
-struct _EnhanceMultipleCommandClass {
- MultiplePhotoTransformationCommandClass parent_class;
-};
-
-struct _StraightenCommand {
- GenericPhotoTransformationCommand parent_instance;
- StraightenCommandPrivate * priv;
-};
-
-struct _StraightenCommandClass {
- GenericPhotoTransformationCommandClass parent_class;
-};
-
-struct _Box {
- gint left;
- gint top;
- gint right;
- gint bottom;
-};
-
-struct _StraightenCommandPrivate {
- gdouble theta;
- Box crop;
-};
-
-struct _CropCommand {
- GenericPhotoTransformationCommand parent_instance;
- CropCommandPrivate * priv;
-};
-
-struct _CropCommandClass {
- GenericPhotoTransformationCommandClass parent_class;
-};
-
-struct _CropCommandPrivate {
- Box crop;
-};
-
-struct _AdjustColorsSingleCommand {
- GenericPhotoTransformationCommand parent_instance;
- AdjustColorsSingleCommandPrivate * priv;
-};
-
-struct _AdjustColorsSingleCommandClass {
- GenericPhotoTransformationCommandClass parent_class;
-};
-
-struct _AdjustColorsSingleCommandPrivate {
- PixelTransformationBundle* transformations;
-};
-
-struct _AdjustColorsMultipleCommand {
- MultiplePhotoTransformationCommand parent_instance;
- AdjustColorsMultipleCommandPrivate * priv;
-};
-
-struct _AdjustColorsMultipleCommandClass {
- MultiplePhotoTransformationCommandClass parent_class;
-};
-
-struct _AdjustColorsMultipleCommandPrivate {
- PixelTransformationBundle* transformations;
-};
-
-struct _RedeyeCommand {
- GenericPhotoTransformationCommand parent_instance;
- RedeyeCommandPrivate * priv;
-};
-
-struct _RedeyeCommandClass {
- GenericPhotoTransformationCommandClass parent_class;
-};
-
-struct _EditingToolsRedeyeInstance {
- GdkPoint center;
- gint radius;
-};
-
-struct _RedeyeCommandPrivate {
- EditingToolsRedeyeInstance redeye_instance;
-};
-
-struct _MovePhotosCommand {
- Command parent_instance;
- MovePhotosCommandPrivate * priv;
- MovePhotosCommandRealMovePhotosCommand* real_command;
-};
-
-struct _MovePhotosCommandClass {
- CommandClass parent_class;
-};
-
-struct _MovePhotosCommandRealMovePhotosCommand {
- MultipleDataSourceCommand parent_instance;
- MovePhotosCommandRealMovePhotosCommandPrivate * priv;
-};
-
-struct _MovePhotosCommandRealMovePhotosCommandClass {
- MultipleDataSourceCommandClass parent_class;
-};
-
-struct _MovePhotosCommandRealMovePhotosCommandPrivate {
- SourceProxy* new_event_proxy;
- GeeHashMap* old_events;
-};
-
-struct _NewEventCommand {
- MovePhotosCommand parent_instance;
- NewEventCommandPrivate * priv;
-};
-
-struct _NewEventCommandClass {
- MovePhotosCommandClass parent_class;
-};
-
-struct _SetEventCommand {
- MovePhotosCommand parent_instance;
- SetEventCommandPrivate * priv;
-};
-
-struct _SetEventCommandClass {
- MovePhotosCommandClass parent_class;
-};
-
-struct _MergeEventsCommand {
- MovePhotosCommand parent_instance;
- MergeEventsCommandPrivate * priv;
-};
-
-struct _MergeEventsCommandClass {
- MovePhotosCommandClass parent_class;
-};
-
-struct _DuplicateMultiplePhotosCommand {
- MultipleDataSourceCommand parent_instance;
- DuplicateMultiplePhotosCommandPrivate * priv;
-};
-
-struct _DuplicateMultiplePhotosCommandClass {
- MultipleDataSourceCommandClass parent_class;
-};
-
-struct _DuplicateMultiplePhotosCommandPrivate {
- GeeHashMap* dupes;
- gint failed;
-};
-
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _SetRatingSingleCommand {
- SingleDataSourceCommand parent_instance;
- SetRatingSingleCommandPrivate * priv;
-};
-
-struct _SetRatingSingleCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _SetRatingSingleCommandPrivate {
- Rating last_rating;
- Rating new_rating;
- gboolean set_direct;
- gboolean incrementing;
-};
-
-struct _SetRatingCommand {
- MultipleDataSourceCommand parent_instance;
- SetRatingCommandPrivate * priv;
-};
-
-struct _SetRatingCommandClass {
- MultipleDataSourceCommandClass parent_class;
-};
-
-struct _SetRatingCommandPrivate {
- GeeHashMap* last_rating_map;
- Rating new_rating;
- gboolean set_direct;
- gboolean incrementing;
- gint action_count;
-};
-
-struct _SetRawDeveloperCommand {
- MultipleDataSourceCommand parent_instance;
- SetRawDeveloperCommandPrivate * priv;
-};
-
-struct _SetRawDeveloperCommandClass {
- MultipleDataSourceCommandClass parent_class;
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _SetRawDeveloperCommandPrivate {
- GeeHashMap* last_developer_map;
- GeeHashMap* last_transformation_map;
- RawDeveloper new_developer;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _AdjustDateTimePhotoCommand {
- SingleDataSourceCommand parent_instance;
- AdjustDateTimePhotoCommandPrivate * priv;
-};
-
-struct _AdjustDateTimePhotoCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-struct _AdjustDateTimePhotoCommandPrivate {
- Dateable* dateable;
- Event* prev_event;
- gint64 time_shift;
- gboolean modify_original;
-};
-
-struct _AdjustDateTimePhotosCommand {
- MultipleDataSourceCommand parent_instance;
- AdjustDateTimePhotosCommandPrivate * priv;
-};
-
-struct _AdjustDateTimePhotosCommandClass {
- MultipleDataSourceCommandClass parent_class;
-};
-
-struct _AdjustDateTimePhotosCommandPrivate {
- gint64 time_shift;
- gboolean keep_relativity;
- gboolean modify_originals;
- GeeMap* prev_events;
- time_t* new_time;
- GeeHashMap* old_times;
- GeeArrayList* error_list;
-};
-
-struct _AddTagsCommand {
- PageCommand parent_instance;
- AddTagsCommandPrivate * priv;
-};
-
-struct _AddTagsCommandClass {
- PageCommandClass parent_class;
-};
-
-struct _AddTagsCommandPrivate {
- GeeHashMap* map;
-};
-
-struct _RenameTagCommand {
- SimpleProxyableCommand parent_instance;
- RenameTagCommandPrivate * priv;
-};
-
-struct _RenameTagCommandClass {
- SimpleProxyableCommandClass parent_class;
-};
-
-struct _RenameTagCommandPrivate {
- gchar* old_name;
- gchar* new_name;
-};
-
-struct _DeleteTagCommand {
- SimpleProxyableCommand parent_instance;
- DeleteTagCommandPrivate * priv;
-};
-
-struct _DeleteTagCommandClass {
- SimpleProxyableCommandClass parent_class;
-};
-
-struct _DeleteTagCommandPrivate {
- GeeList* recursive_victim_proxies;
-};
-
-struct _NewChildTagCommand {
- SimpleProxyableCommand parent_instance;
- NewChildTagCommandPrivate * priv;
-};
-
-struct _NewChildTagCommandClass {
- SimpleProxyableCommandClass parent_class;
-};
-
-struct _NewChildTagCommandPrivate {
- Tag* created_child;
-};
-
-struct _NewRootTagCommand {
- PageCommand parent_instance;
- NewRootTagCommandPrivate * priv;
-};
-
-struct _NewRootTagCommandClass {
- PageCommandClass parent_class;
-};
-
-struct _NewRootTagCommandPrivate {
- SourceProxy* created_proxy;
-};
-
-struct _ReparentTagCommand {
- PageCommand parent_instance;
- ReparentTagCommandPrivate * priv;
-};
-
-struct _ReparentTagCommandClass {
- PageCommandClass parent_class;
-};
-
-struct _ReparentTagCommandPrivate {
- gchar* from_path;
- gchar* to_path;
- gchar* to_path_parent_path;
- GeeList* src_before_state;
- GeeList* dest_before_state;
- GeeList* after_state;
- GeeHashSet* sources_in_play;
- GeeMap* dest_parent_attachments;
- GeeMap* src_parent_detachments;
- GeeMap* in_play_child_structure;
- GeeMap* existing_dest_child_structure;
- GeeSet* existing_dest_membership;
- gboolean to_path_exists;
-};
-
-struct _ModifyTagsCommand {
- SingleDataSourceCommand parent_instance;
- ModifyTagsCommandPrivate * priv;
-};
-
-struct _ModifyTagsCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-struct _ModifyTagsCommandPrivate {
- MediaSource* media;
- GeeArrayList* to_add;
- GeeArrayList* to_remove;
-};
-
-struct _TagUntagPhotosCommand {
- SimpleProxyableCommand parent_instance;
- TagUntagPhotosCommandPrivate * priv;
-};
-
-struct _TagUntagPhotosCommandClass {
- SimpleProxyableCommandClass parent_class;
-};
-
-struct _TagUntagPhotosCommandPrivate {
- GeeCollection* sources;
- gboolean attach;
- GeeMultiMap* detached_from;
- GeeList* attached_to;
-};
-
-struct _RenameSavedSearchCommand {
- SingleDataSourceCommand parent_instance;
- RenameSavedSearchCommandPrivate * priv;
-};
-
-struct _RenameSavedSearchCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-struct _RenameSavedSearchCommandPrivate {
- SavedSearch* search;
- gchar* old_name;
- gchar* new_name;
-};
-
-struct _DeleteSavedSearchCommand {
- SingleDataSourceCommand parent_instance;
- DeleteSavedSearchCommandPrivate * priv;
-};
-
-struct _DeleteSavedSearchCommandClass {
- SingleDataSourceCommandClass parent_class;
-};
-
-struct _DeleteSavedSearchCommandPrivate {
- SavedSearch* search;
-};
-
-struct _TrashUntrashPhotosCommand {
- PageCommand parent_instance;
- TrashUntrashPhotosCommandPrivate * priv;
-};
-
-struct _TrashUntrashPhotosCommandClass {
- PageCommandClass parent_class;
-};
-
-struct _TrashUntrashPhotosCommandPrivate {
- GeeCollection* sources;
- gboolean to_trash;
-};
-
-struct _FlagUnflagCommand {
- MultipleDataSourceAtOnceCommand parent_instance;
- FlagUnflagCommandPrivate * priv;
-};
-
-struct _FlagUnflagCommandClass {
- MultipleDataSourceAtOnceCommandClass parent_class;
-};
-
-struct _FlagUnflagCommandPrivate {
- gboolean flag;
- ProgressDialog* progress_dialog;
-};
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-
-static gpointer page_command_parent_class = NULL;
-static gpointer single_data_source_command_parent_class = NULL;
-static gpointer simple_proxyable_command_parent_class = NULL;
-static gpointer single_photo_transformation_command_parent_class = NULL;
-static gpointer generic_photo_transformation_command_parent_class = NULL;
-static gpointer multiple_data_source_command_parent_class = NULL;
-static gpointer multiple_data_source_at_once_command_parent_class = NULL;
-static gpointer multiple_photo_transformation_command_parent_class = NULL;
-static gpointer rotate_single_command_parent_class = NULL;
-static gpointer rotate_multiple_command_parent_class = NULL;
-static gpointer edit_title_command_parent_class = NULL;
-static gpointer edit_comment_command_parent_class = NULL;
-static gpointer edit_multiple_titles_command_parent_class = NULL;
-static gpointer edit_multiple_comments_command_parent_class = NULL;
-static gpointer rename_event_command_parent_class = NULL;
-static gpointer edit_event_comment_command_parent_class = NULL;
-static gpointer set_key_photo_command_parent_class = NULL;
-static gpointer revert_single_command_parent_class = NULL;
-static gpointer revert_multiple_command_parent_class = NULL;
-static gpointer enhance_single_command_parent_class = NULL;
-static gpointer enhance_multiple_command_parent_class = NULL;
-static gpointer straighten_command_parent_class = NULL;
-static gpointer crop_command_parent_class = NULL;
-static gpointer adjust_colors_single_command_parent_class = NULL;
-static gpointer adjust_colors_multiple_command_parent_class = NULL;
-static gpointer redeye_command_parent_class = NULL;
-static gpointer move_photos_command_parent_class = NULL;
-static gpointer move_photos_command_real_move_photos_command_parent_class = NULL;
-static gpointer new_event_command_parent_class = NULL;
-static gpointer set_event_command_parent_class = NULL;
-static gpointer merge_events_command_parent_class = NULL;
-static gpointer duplicate_multiple_photos_command_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-static gpointer set_rating_single_command_parent_class = NULL;
-static gpointer set_rating_command_parent_class = NULL;
-static gpointer set_raw_developer_command_parent_class = NULL;
-static gpointer adjust_date_time_photo_command_parent_class = NULL;
-extern EventSourceCollection* event_global;
-static gpointer adjust_date_time_photos_command_parent_class = NULL;
-static gpointer add_tags_command_parent_class = NULL;
-extern VideoSourceCollection* video_global;
-static gpointer rename_tag_command_parent_class = NULL;
-static gpointer delete_tag_command_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-static gpointer new_child_tag_command_parent_class = NULL;
-static gpointer new_root_tag_command_parent_class = NULL;
-static gpointer reparent_tag_command_parent_class = NULL;
-static gpointer modify_tags_command_parent_class = NULL;
-static gpointer tag_untag_photos_command_parent_class = NULL;
-static gpointer rename_saved_search_command_parent_class = NULL;
-static gpointer delete_saved_search_command_parent_class = NULL;
-static gpointer trash_untrash_photos_command_parent_class = NULL;
-static gpointer flag_unflag_command_parent_class = NULL;
-
-GType command_description_get_type (void) G_GNUC_CONST;
-GType command_get_type (void) G_GNUC_CONST;
-GType page_command_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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 checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-#define PAGE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PAGE_COMMAND, PageCommandPrivate))
-static void page_command_on_page_destroyed (PageCommand* self);
-static void _page_command_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender,
- gpointer self);
-static void page_command_on_photo_destroyed (PageCommand* self);
-static void _page_command_on_photo_destroyed_data_source_destroyed (DataSource* _sender,
- gpointer self);
-static void page_command_on_controller_destroyed (PageCommand* self);
-static void _page_command_on_controller_destroyed_gtk_widget_destroy (GtkWidget* _sender,
- gpointer self);
-PageCommand* page_command_construct (GType object_type,
- const gchar* name,
- const gchar* explanation);
-Command* command_construct (GType object_type,
- const gchar* name,
- const gchar* explanation);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-Page* page_window_get_current_page (PageWindow* self);
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType editing_host_page_get_type (void) G_GNUC_CONST;
-GType library_photo_page_get_type (void) G_GNUC_CONST;
-Photo* editing_host_page_get_photo (EditingHostPage* self);
-CollectionPage* library_photo_page_get_controller_page (LibraryPhotoPage* self);
-void page_command_set_auto_return_to_page (PageCommand* self,
- gboolean auto_return);
-static void page_command_real_prepare (Command* base);
-void page_command_return_to_page (PageCommand* self);
-void command_prepare (Command* self);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gint data_collection_get_count (DataCollection* self);
-DataObject* data_collection_get_at (DataCollection* self,
- gint index);
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType media_source_item_get_type (void) G_GNUC_CONST;
-GType thumbnail_get_type (void) G_GNUC_CONST;
-MediaSource* thumbnail_get_media_source (Thumbnail* self);
-GType library_window_get_type (void) G_GNUC_CONST;
-LibraryWindow* library_window_get_app (void);
-void library_window_switch_to_photo_page (LibraryWindow* self,
- CollectionPage* controller,
- Photo* current);
-void page_window_set_current_page (PageWindow* self,
- Page* page);
-static void page_command_finalize (GObject * obj);
-GType single_data_source_command_get_type (void) G_GNUC_CONST;
-static void single_data_source_command_on_source_destroyed (SingleDataSourceCommand* self);
-static void _single_data_source_command_on_source_destroyed_data_source_destroyed (DataSource* _sender,
- gpointer self);
-SingleDataSourceCommand* single_data_source_command_construct (GType object_type,
- DataSource* source,
- const gchar* name,
- const gchar* explanation);
-DataSource* single_data_source_command_get_source (SingleDataSourceCommand* self);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* command_get_command_manager (Command* self);
-void command_manager_reset (CommandManager* self);
-static void single_data_source_command_finalize (GObject * obj);
-GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
-gpointer source_proxy_ref (gpointer instance);
-void source_proxy_unref (gpointer instance);
-GParamSpec* param_spec_source_proxy (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_proxy (GValue* value,
- gpointer v_object);
-void value_take_source_proxy (GValue* value,
- gpointer v_object);
-gpointer value_get_source_proxy (const GValue* value);
-GType source_proxy_get_type (void) G_GNUC_CONST;
-#define SIMPLE_PROXYABLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandPrivate))
-static void simple_proxyable_command_on_proxy_broken (SimpleProxyableCommand* self);
-static void _simple_proxyable_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self);
-void simple_proxyable_command_clear_added_proxies (SimpleProxyableCommand* self);
-GType proxyable_get_type (void) G_GNUC_CONST;
-SimpleProxyableCommand* simple_proxyable_command_construct (GType object_type,
- Proxyable* proxyable,
- const gchar* name,
- const gchar* explanation);
-SourceProxy* proxyable_get_proxy (Proxyable* self);
-static void simple_proxyable_command_real_execute (Command* base);
-void simple_proxyable_command_execute_on_source (SimpleProxyableCommand* self,
- DataSource* source);
-DataSource* source_proxy_get_source (SourceProxy* self);
-static void simple_proxyable_command_real_execute_on_source (SimpleProxyableCommand* self,
- DataSource* source);
-static void simple_proxyable_command_real_undo (Command* base);
-void simple_proxyable_command_undo_on_source (SimpleProxyableCommand* self,
- DataSource* source);
-static void simple_proxyable_command_real_undo_on_source (SimpleProxyableCommand* self,
- DataSource* source);
-void simple_proxyable_command_add_proxyables (SimpleProxyableCommand* self,
- GeeCollection* proxyables);
-static void simple_proxyable_command_finalize (GObject * obj);
-GType single_photo_transformation_command_get_type (void) G_GNUC_CONST;
-GType photo_transformation_state_get_type (void) G_GNUC_CONST;
-#define SINGLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommandPrivate))
-static void single_photo_transformation_command_on_state_broken (SinglePhotoTransformationCommand* self);
-static void _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
- gpointer self);
-SinglePhotoTransformationCommand* single_photo_transformation_command_construct (GType object_type,
- Photo* photo,
- const gchar* name,
- const gchar* explanation);
-PhotoTransformationState* photo_save_transformation_state (Photo* self);
-static void single_photo_transformation_command_real_undo (Command* base);
-gboolean photo_load_transformation_state (Photo* self,
- PhotoTransformationState* state);
-static void single_photo_transformation_command_finalize (GObject * obj);
-GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST;
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandPrivate))
-static void generic_photo_transformation_command_on_state_broken (GenericPhotoTransformationCommand* self);
-static void _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
- gpointer self);
-GenericPhotoTransformationCommand* generic_photo_transformation_command_construct (GType object_type,
- Photo* photo,
- const gchar* name,
- const gchar* explanation);
-static void generic_photo_transformation_command_real_execute (Command* base);
-void generic_photo_transformation_command_execute_on_photo (GenericPhotoTransformationCommand* self,
- Photo* photo);
-static void generic_photo_transformation_command_real_execute_on_photo (GenericPhotoTransformationCommand* self,
- Photo* photo);
-static void generic_photo_transformation_command_real_undo (Command* base);
-static void generic_photo_transformation_command_real_redo (Command* base);
-gboolean generic_photo_transformation_command_can_compress (GenericPhotoTransformationCommand* self,
- Command* command);
-static gboolean generic_photo_transformation_command_real_can_compress (GenericPhotoTransformationCommand* self,
- Command* command);
-static gboolean generic_photo_transformation_command_real_compress (Command* base,
- Command* command);
-void command_execute (Command* self);
-static void generic_photo_transformation_command_finalize (GObject * obj);
-GType multiple_data_source_command_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-#define MULTIPLE_DATA_SOURCE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandPrivate))
-static void multiple_data_source_command_on_source_destroyed (MultipleDataSourceCommand* self,
- DataSource* source);
-static void _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-#define MULTIPLE_DATA_SOURCE_COMMAND_MIN_OPS_FOR_PROGRESS_WINDOW 5
-MultipleDataSourceCommand* multiple_data_source_command_construct (GType object_type,
- GeeIterable* iter,
- const gchar* progress_text,
- const gchar* undo_progress_text,
- const gchar* name,
- const gchar* explanation);
-DataSource* data_view_get_source (DataView* self);
-DataCollection* data_object_get_membership (DataObject* self);
-GeeIterable* multiple_data_source_command_get_sources (MultipleDataSourceCommand* self);
-gint multiple_data_source_command_get_source_count (MultipleDataSourceCommand* self);
-static void multiple_data_source_command_real_execute (Command* base);
-static void multiple_data_source_command_start_transaction (MultipleDataSourceCommand* self);
-static void multiple_data_source_command_execute_all (MultipleDataSourceCommand* self,
- gboolean exec,
- gboolean can_cancel,
- GeeArrayList* todo,
- GeeArrayList* completed);
-static void multiple_data_source_command_commit_transaction (MultipleDataSourceCommand* self);
-void multiple_data_source_command_execute_on_source (MultipleDataSourceCommand* self,
- DataSource* source);
-static void multiple_data_source_command_real_execute_on_source (MultipleDataSourceCommand* self,
- DataSource* source);
-static void multiple_data_source_command_real_undo (Command* base);
-void multiple_data_source_command_undo_on_source (MultipleDataSourceCommand* self,
- DataSource* source);
-static void multiple_data_source_command_real_undo_on_source (MultipleDataSourceCommand* self,
- DataSource* source);
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self);
-void transaction_controller_begin (TransactionController* self);
-void transaction_controller_commit (TransactionController* self);
-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);
-ProgressDialog* progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-void progress_dialog_set_fraction (ProgressDialog* self,
- gint current,
- gint total);
-void spin_event_loop (void);
-void progress_dialog_close (ProgressDialog* self);
-void page_window_set_normal_cursor (PageWindow* self);
-static void multiple_data_source_command_finalize (GObject * obj);
-GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST;
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandPrivate))
-static void multiple_data_source_at_once_command_on_sources_destroyed (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* destroyed);
-static void _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
- GeeCollection* destroyed,
- gpointer self);
-MultipleDataSourceAtOnceCommand* multiple_data_source_at_once_command_construct (GType object_type,
- GeeCollection* sources,
- const gchar* name,
- const gchar* explanation);
-static void multiple_data_source_at_once_command_real_execute (Command* base);
-void database_table_begin_transaction (void);
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-void media_collection_registry_freeze_all (MediaCollectionRegistry* self);
-void multiple_data_source_at_once_command_execute_on_all (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* sources);
-void media_collection_registry_thaw_all (MediaCollectionRegistry* self);
-GQuark database_error_quark (void);
-void database_table_commit_transaction (GError** error);
-void app_window_database_error (GError* err);
-static void multiple_data_source_at_once_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* sources);
-static void multiple_data_source_at_once_command_real_undo (Command* base);
-void multiple_data_source_at_once_command_undo_on_all (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* sources);
-static void multiple_data_source_at_once_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* sources);
-static void multiple_data_source_at_once_command_finalize (GObject * obj);
-GType multiple_photo_transformation_command_get_type (void) G_GNUC_CONST;
-#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandPrivate))
-static void multiple_photo_transformation_command_on_state_broken (MultiplePhotoTransformationCommand* self);
-static void _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
- gpointer self);
-MultiplePhotoTransformationCommand* multiple_photo_transformation_command_construct (GType object_type,
- GeeIterable* iter,
- const gchar* progress_text,
- const gchar* undo_progress_text,
- const gchar* name,
- const gchar* explanation);
-static void multiple_photo_transformation_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void multiple_photo_transformation_command_finalize (GObject * obj);
-GType rotate_single_command_get_type (void) G_GNUC_CONST;
-GType rotation_get_type (void) G_GNUC_CONST;
-#define ROTATE_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandPrivate))
-RotateSingleCommand* rotate_single_command_new (Photo* photo,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation);
-RotateSingleCommand* rotate_single_command_construct (GType object_type,
- Photo* photo,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation);
-static void rotate_single_command_real_execute (Command* base);
-void photo_rotate (Photo* self,
- Rotation rotation);
-static void rotate_single_command_real_undo (Command* base);
-Rotation rotation_opposite (Rotation self);
-static void rotate_single_command_finalize (GObject * obj);
-GType rotate_multiple_command_get_type (void) G_GNUC_CONST;
-#define ROTATE_MULTIPLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandPrivate))
-RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation,
- const gchar* progress_text,
- const gchar* undo_progress_text);
-RotateMultipleCommand* rotate_multiple_command_construct (GType object_type,
- GeeIterable* iter,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation,
- const gchar* progress_text,
- const gchar* undo_progress_text);
-static void rotate_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void rotate_multiple_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void rotate_multiple_command_finalize (GObject * obj);
-GType edit_title_command_get_type (void) G_GNUC_CONST;
-#define EDIT_TITLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandPrivate))
-EditTitleCommand* edit_title_command_new (MediaSource* source,
- const gchar* new_title);
-EditTitleCommand* edit_title_command_construct (GType object_type,
- MediaSource* source,
- const gchar* new_title);
-#define RESOURCES_EDIT_TITLE_LABEL NC_ ("Button Label", "Edit Title")
-gchar* media_source_get_title (MediaSource* self);
-static void edit_title_command_real_execute (Command* base);
-void media_source_set_title (MediaSource* self,
- const gchar* title);
-static void edit_title_command_real_undo (Command* base);
-static void edit_title_command_finalize (GObject * obj);
-GType edit_comment_command_get_type (void) G_GNUC_CONST;
-#define EDIT_COMMENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandPrivate))
-EditCommentCommand* edit_comment_command_new (MediaSource* source,
- const gchar* new_comment);
-EditCommentCommand* edit_comment_command_construct (GType object_type,
- MediaSource* source,
- const gchar* new_comment);
-#define RESOURCES_EDIT_COMMENT_LABEL _ ("Edit Comment")
-gchar* media_source_get_comment (MediaSource* self);
-static void edit_comment_command_real_execute (Command* base);
-gboolean media_source_set_comment (MediaSource* self,
- const gchar* comment);
-static void edit_comment_command_real_undo (Command* base);
-static void edit_comment_command_finalize (GObject * obj);
-GType edit_multiple_titles_command_get_type (void) G_GNUC_CONST;
-EditMultipleTitlesCommand* edit_multiple_titles_command_new (GeeCollection* media_sources,
- const gchar* new_title);
-EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_type,
- GeeCollection* media_sources,
- const gchar* new_title);
-static void edit_multiple_titles_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources);
-static void edit_multiple_titles_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources);
-static void edit_multiple_titles_command_finalize (GObject * obj);
-GType edit_multiple_comments_command_get_type (void) G_GNUC_CONST;
-EditMultipleCommentsCommand* edit_multiple_comments_command_new (GeeCollection* media_sources,
- const gchar* new_comment);
-EditMultipleCommentsCommand* edit_multiple_comments_command_construct (GType object_type,
- GeeCollection* media_sources,
- const gchar* new_comment);
-static void edit_multiple_comments_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources);
-static void edit_multiple_comments_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources);
-static void edit_multiple_comments_command_finalize (GObject * obj);
-GType rename_event_command_get_type (void) G_GNUC_CONST;
-#define RENAME_EVENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandPrivate))
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-RenameEventCommand* rename_event_command_new (Event* event,
- const gchar* new_name);
-RenameEventCommand* rename_event_command_construct (GType object_type,
- Event* event,
- const gchar* new_name);
-#define RESOURCES_RENAME_EVENT_LABEL _ ("Rename Event")
-gchar* event_get_raw_name (Event* self);
-static void rename_event_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-gboolean event_rename (Event* self,
- const gchar* name);
-static void rename_event_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-static void rename_event_command_finalize (GObject * obj);
-GType edit_event_comment_command_get_type (void) G_GNUC_CONST;
-#define EDIT_EVENT_COMMENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandPrivate))
-EditEventCommentCommand* edit_event_comment_command_new (Event* event,
- const gchar* new_comment);
-EditEventCommentCommand* edit_event_comment_command_construct (GType object_type,
- Event* event,
- const gchar* new_comment);
-gchar* event_source_get_comment (EventSource* self);
-static void edit_event_comment_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-gboolean event_source_set_comment (EventSource* self,
- const gchar* comment);
-static void edit_event_comment_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-static void edit_event_comment_command_finalize (GObject * obj);
-GType set_key_photo_command_get_type (void) G_GNUC_CONST;
-#define SET_KEY_PHOTO_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommandPrivate))
-SetKeyPhotoCommand* set_key_photo_command_new (Event* event,
- MediaSource* new_primary_source);
-SetKeyPhotoCommand* set_key_photo_command_construct (GType object_type,
- Event* event,
- MediaSource* new_primary_source);
-#define RESOURCES_MAKE_KEY_PHOTO_LABEL _ ("Make Key Photo for Event")
-MediaSource* event_get_primary_source (Event* self);
-static void set_key_photo_command_real_execute (Command* base);
-gboolean event_set_primary_source (Event* self,
- MediaSource* source);
-static void set_key_photo_command_real_undo (Command* base);
-static void set_key_photo_command_finalize (GObject * obj);
-GType revert_single_command_get_type (void) G_GNUC_CONST;
-RevertSingleCommand* revert_single_command_new (Photo* photo);
-RevertSingleCommand* revert_single_command_construct (GType object_type,
- Photo* photo);
-#define RESOURCES_REVERT_LABEL _ ("Revert to Original")
-static void revert_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo);
-void photo_remove_all_transformations (Photo* self);
-static gboolean revert_single_command_real_compress (Command* base,
- Command* command);
-GType revert_multiple_command_get_type (void) G_GNUC_CONST;
-RevertMultipleCommand* revert_multiple_command_new (GeeIterable* iter);
-RevertMultipleCommand* revert_multiple_command_construct (GType object_type,
- GeeIterable* iter);
-static void revert_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-GType enhance_single_command_get_type (void) G_GNUC_CONST;
-EnhanceSingleCommand* enhance_single_command_new (Photo* photo);
-EnhanceSingleCommand* enhance_single_command_construct (GType object_type,
- Photo* photo);
-#define RESOURCES_ENHANCE_LABEL _ ("Enhance")
-#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance")
-static void enhance_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo);
-gboolean photo_enhance (Photo* self);
-static gboolean enhance_single_command_real_compress (Command* base,
- Command* command);
-GType enhance_multiple_command_get_type (void) G_GNUC_CONST;
-EnhanceMultipleCommand* enhance_multiple_command_new (GeeIterable* iter);
-EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type,
- GeeIterable* iter);
-static void enhance_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-GType straighten_command_get_type (void) G_GNUC_CONST;
-GType box_get_type (void) G_GNUC_CONST;
-Box* box_dup (const Box* self);
-void box_free (Box* self);
-#define STRAIGHTEN_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_STRAIGHTEN_COMMAND, StraightenCommandPrivate))
-StraightenCommand* straighten_command_new (Photo* photo,
- gdouble theta,
- Box* crop,
- const gchar* name,
- const gchar* explanation);
-StraightenCommand* straighten_command_construct (GType object_type,
- Photo* photo,
- gdouble theta,
- Box* crop,
- const gchar* name,
- const gchar* explanation);
-static void straighten_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo);
-void data_collection_freeze_notifications (DataCollection* self);
-void photo_set_straighten (Photo* self,
- gdouble theta);
-void photo_set_crop (Photo* self,
- Box* crop);
-void data_collection_thaw_notifications (DataCollection* self);
-static void straighten_command_finalize (GObject * obj);
-GType crop_command_get_type (void) G_GNUC_CONST;
-#define CROP_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CROP_COMMAND, CropCommandPrivate))
-CropCommand* crop_command_new (Photo* photo,
- Box* crop,
- const gchar* name,
- const gchar* explanation);
-CropCommand* crop_command_construct (GType object_type,
- Photo* photo,
- Box* crop,
- const gchar* name,
- const gchar* explanation);
-static void crop_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo);
-static void crop_command_finalize (GObject * obj);
-GType adjust_colors_single_command_get_type (void) G_GNUC_CONST;
-#define ADJUST_COLORS_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandPrivate))
-AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type,
- Photo* photo,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-static void adjust_colors_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo);
-void photo_set_color_adjustments (Photo* self,
- PixelTransformationBundle* new_adjustments);
-static gboolean adjust_colors_single_command_real_can_compress (GenericPhotoTransformationCommand* base,
- Command* command);
-static void adjust_colors_single_command_finalize (GObject * obj);
-GType adjust_colors_multiple_command_get_type (void) G_GNUC_CONST;
-#define ADJUST_COLORS_MULTIPLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandPrivate))
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type,
- GeeIterable* iter,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-static void adjust_colors_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void adjust_colors_multiple_command_finalize (GObject * obj);
-GType redeye_command_get_type (void) G_GNUC_CONST;
-GType editing_tools_redeye_instance_get_type (void) G_GNUC_CONST;
-EditingToolsRedeyeInstance* editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self);
-void editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self);
-#define REDEYE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_REDEYE_COMMAND, RedeyeCommandPrivate))
-RedeyeCommand* redeye_command_new (Photo* photo,
- EditingToolsRedeyeInstance* redeye_instance,
- const gchar* name,
- const gchar* explanation);
-RedeyeCommand* redeye_command_construct (GType object_type,
- Photo* photo,
- EditingToolsRedeyeInstance* redeye_instance,
- const gchar* name,
- const gchar* explanation);
-static void redeye_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo);
-void photo_add_redeye_instance (Photo* self,
- EditingToolsRedeyeInstance* redeye);
-static void redeye_command_finalize (GObject * obj);
-GType move_photos_command_get_type (void) G_GNUC_CONST;
-GType move_photos_command_real_move_photos_command_get_type (void) G_GNUC_CONST;
-MovePhotosCommand* move_photos_command_construct (GType object_type,
- const gchar* name,
- const gchar* explanation);
-static void move_photos_command_real_prepare (Command* base);
-static void move_photos_command_real_execute (Command* base);
-static void move_photos_command_real_undo (Command* base);
-void command_undo (Command* self);
-#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommandPrivate))
-static void move_photos_command_real_move_photos_command_on_proxy_broken (MovePhotosCommandRealMovePhotosCommand* self);
-static void _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self);
-MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_new (Event* new_event,
- GeeIterable* source_views,
- const gchar* progress_text,
- const gchar* undo_progress_text,
- const gchar* name,
- const gchar* explanation);
-MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_construct (GType object_type,
- Event* new_event,
- GeeIterable* source_views,
- const gchar* progress_text,
- const gchar* undo_progress_text,
- const gchar* name,
- const gchar* explanation);
-Event* media_source_get_event (MediaSource* self);
-static void move_photos_command_real_move_photos_command_real_execute (Command* base);
-GType event_page_get_type (void) G_GNUC_CONST;
-Event* event_page_get_event (EventPage* self);
-gint event_source_get_media_count (EventSource* self);
-void library_window_switch_to_event (LibraryWindow* self,
- Event* event);
-static void move_photos_command_real_move_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-gboolean media_source_set_event (MediaSource* self,
- Event* new_event);
-static void move_photos_command_real_move_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void move_photos_command_real_move_photos_command_finalize (GObject * obj);
-static void move_photos_command_finalize (GObject * obj);
-GType new_event_command_get_type (void) G_GNUC_CONST;
-NewEventCommand* new_event_command_new (GeeIterable* iter);
-NewEventCommand* new_event_command_construct (GType object_type,
- GeeIterable* iter);
-#define RESOURCES_NEW_EVENT_LABEL _ ("New Event")
-Event* event_create_empty_event (MediaSource* source);
-GType set_event_command_get_type (void) G_GNUC_CONST;
-SetEventCommand* set_event_command_new (GeeIterable* iter,
- Event* new_event);
-SetEventCommand* set_event_command_construct (GType object_type,
- GeeIterable* iter,
- Event* new_event);
-#define RESOURCES_SET_PHOTO_EVENT_LABEL _ ("Move Photos")
-#define RESOURCES_SET_PHOTO_EVENT_TOOLTIP _ ("Move photos to an event")
-GType merge_events_command_get_type (void) G_GNUC_CONST;
-MergeEventsCommand* merge_events_command_new (GeeIterable* iter);
-MergeEventsCommand* merge_events_command_construct (GType object_type,
- GeeIterable* iter);
-#define RESOURCES_MERGE_LABEL _ ("Merge")
-gboolean event_has_name (Event* self);
-GeeCollection* event_source_get_media (EventSource* self);
-ThumbnailView* thumbnail_view_new (ThumbnailSource* source);
-ThumbnailView* thumbnail_view_construct (GType object_type,
- ThumbnailSource* source);
-GType duplicate_multiple_photos_command_get_type (void) G_GNUC_CONST;
-GType library_photo_get_type (void) G_GNUC_CONST;
-#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandPrivate))
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-static void duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMultiplePhotosCommand* self,
- DataSource* source);
-static void _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_new (GeeIterable* iter);
-DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type,
- GeeIterable* iter);
-#define RESOURCES_DUPLICATE_PHOTO_LABEL _ ("Duplicate")
-#define RESOURCES_DUPLICATE_PHOTO_TOOLTIP _ ("Make a duplicate of the photo")
-static void duplicate_multiple_photos_command_real_execute (Command* base);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-LibraryPhoto* library_photo_duplicate (LibraryPhoto* self,
- GError** error);
-GFile* media_source_get_file (MediaSource* self);
-static void duplicate_multiple_photos_command_real_undo (Command* base);
-static void duplicate_multiple_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-GType marker_get_type (void) G_GNUC_CONST;
-Marker* data_collection_mark (DataCollection* self,
- DataObject* object);
-gint source_collection_destroy_marked (SourceCollection* self,
- Marker* marker,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed);
-static void duplicate_multiple_photos_command_finalize (GObject * obj);
-GType set_rating_single_command_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-#define SET_RATING_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandPrivate))
-SetRatingSingleCommand* set_rating_single_command_new (DataSource* source,
- Rating rating);
-SetRatingSingleCommand* set_rating_single_command_construct (GType object_type,
- DataSource* source,
- Rating rating);
-const gchar* resources_rating_label (Rating rating);
-Rating media_source_get_rating (MediaSource* self);
-SetRatingSingleCommand* set_rating_single_command_new_inc_dec (DataSource* source,
- gboolean is_incrementing);
-SetRatingSingleCommand* set_rating_single_command_construct_inc_dec (GType object_type,
- DataSource* source,
- gboolean is_incrementing);
-#define RESOURCES_INCREASE_RATING_LABEL _ ("Increase Rating")
-#define RESOURCES_DECREASE_RATING_LABEL _ ("Decrease Rating")
-static void set_rating_single_command_real_execute (Command* base);
-void media_source_set_rating (MediaSource* self,
- Rating rating);
-void media_source_increase_rating (MediaSource* self);
-void media_source_decrease_rating (MediaSource* self);
-static void set_rating_single_command_real_undo (Command* base);
-static void set_rating_single_command_finalize (GObject * obj);
-GType set_rating_command_get_type (void) G_GNUC_CONST;
-#define SET_RATING_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RATING_COMMAND, SetRatingCommandPrivate))
-SetRatingCommand* set_rating_command_new (GeeIterable* iter,
- Rating rating);
-SetRatingCommand* set_rating_command_construct (GType object_type,
- GeeIterable* iter,
- Rating rating);
-gchar* resources_rating_progress (Rating rating);
-static void set_rating_command_save_source_states (SetRatingCommand* self,
- GeeIterable* iter);
-SetRatingCommand* set_rating_command_new_inc_dec (GeeIterable* iter,
- gboolean is_incrementing);
-SetRatingCommand* set_rating_command_construct_inc_dec (GType object_type,
- GeeIterable* iter,
- gboolean is_incrementing);
-static void set_rating_command_real_execute (Command* base);
-static void set_rating_command_real_undo (Command* base);
-static void set_rating_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void set_rating_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void set_rating_command_finalize (GObject * obj);
-GType set_raw_developer_command_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-#define SET_RAW_DEVELOPER_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandPrivate))
-SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter,
- RawDeveloper developer);
-SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type,
- GeeIterable* iter,
- RawDeveloper developer);
-static void set_raw_developer_command_save_source_states (SetRawDeveloperCommand* self,
- GeeIterable* iter);
-static gboolean set_raw_developer_command_is_raw_photo (SetRawDeveloperCommand* self,
- Photo* photo);
-RawDeveloper photo_get_raw_developer (Photo* self);
-static void set_raw_developer_command_real_execute (Command* base);
-static void set_raw_developer_command_real_undo (Command* base);
-static void set_raw_developer_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-gboolean photo_is_raw_developer_available (Photo* self,
- RawDeveloper d);
-void photo_set_raw_developer (Photo* self,
- RawDeveloper d,
- gboolean notify);
-static void set_raw_developer_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-static void set_raw_developer_command_finalize (GObject * obj);
-GType adjust_date_time_photo_command_get_type (void) G_GNUC_CONST;
-GType dateable_get_type (void) G_GNUC_CONST;
-#define ADJUST_DATE_TIME_PHOTO_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandPrivate))
-AdjustDateTimePhotoCommand* adjust_date_time_photo_command_new (Dateable* dateable,
- gint64 time_shift,
- gboolean modify_original);
-AdjustDateTimePhotoCommand* adjust_date_time_photo_command_construct (GType object_type,
- Dateable* dateable,
- gint64 time_shift,
- gboolean modify_original);
-#define RESOURCES_ADJUST_DATE_TIME_LABEL _ ("Adjust Date and Time")
-static void adjust_date_time_photo_command_real_execute (Command* base);
-static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* self,
- Dateable* dateable,
- time_t exposure_time);
-time_t dateable_get_exposure_time (Dateable* self);
-ViewCollection* view_collection_new (const gchar* name);
-ViewCollection* view_collection_construct (GType object_type,
- const gchar* name);
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType event_source_collection_get_type (void) G_GNUC_CONST;
-GeeCollection* data_collection_get_all (DataCollection* self);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-EventView* event_view_new (EventSource* source);
-EventView* event_view_construct (GType object_type,
- EventSource* source);
-GType event_view_get_type (void) G_GNUC_CONST;
-void event_generate_single_event (MediaSource* media,
- ViewCollection* events_so_far,
- const gchar* event_name);
-static void adjust_date_time_photo_command_real_undo (Command* base);
-void photo_set_exposure_time_persistent (Photo* self,
- time_t time,
- GError** error);
-void dateable_set_exposure_time (Dateable* self,
- time_t target_time);
-static void adjust_date_time_photo_command_finalize (GObject * obj);
-GType adjust_date_time_photos_command_get_type (void) G_GNUC_CONST;
-#define ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandPrivate))
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter,
- gint64 time_shift,
- gboolean keep_relativity,
- gboolean modify_originals);
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type,
- GeeIterable* iter,
- gint64 time_shift,
- gboolean keep_relativity,
- gboolean modify_originals);
-static time_t* _time_t_dup (time_t* self);
-static void adjust_date_time_photos_command_real_execute (Command* base);
-void multiple_object_error_dialog (GeeArrayList* objects,
- const gchar* message,
- const gchar* title);
-static void adjust_date_time_photos_command_real_undo (Command* base);
-static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosCommand* self,
- Dateable* dateable,
- time_t exposure_time);
-static void adjust_date_time_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void adjust_date_time_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source);
-static void adjust_date_time_photos_command_finalize (GObject * obj);
-GType add_tags_command_get_type (void) G_GNUC_CONST;
-#define ADD_TAGS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADD_TAGS_COMMAND, AddTagsCommandPrivate))
-static void add_tags_command_on_proxy_broken (AddTagsCommand* self);
-static void _add_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self);
-static void add_tags_command_on_source_destroyed (AddTagsCommand* self,
- DataSource* source);
-static void _add_tags_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-AddTagsCommand* add_tags_command_new (gchar** paths,
- int paths_length1,
- GeeCollection* sources);
-AddTagsCommand* add_tags_command_construct (GType object_type,
- gchar** paths,
- int paths_length1,
- GeeCollection* sources);
-gchar* resources_add_tags_label (gchar** names,
- int names_length1);
-GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
-GType tag_get_type (void) G_GNUC_CONST;
-Tag* tag_for_path (const gchar* name);
-gboolean tag_contains (Tag* self,
- MediaSource* source);
-static void add_tags_command_real_execute (Command* base);
-void tag_attach_many (Tag* self,
- GeeCollection* sources);
-static void add_tags_command_real_undo (Command* base);
-GeeMultiMap* tag_detach_many (Tag* self,
- GeeCollection* sources);
-static void add_tags_command_finalize (GObject * obj);
-GType rename_tag_command_get_type (void) G_GNUC_CONST;
-#define RENAME_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_TAG_COMMAND, RenameTagCommandPrivate))
-RenameTagCommand* rename_tag_command_new (Tag* tag,
- const gchar* new_name);
-RenameTagCommand* rename_tag_command_construct (GType object_type,
- Tag* tag,
- const gchar* new_name);
-gchar* resources_rename_tag_label (const gchar* old_name,
- const gchar* new_name);
-gchar* tag_get_user_visible_name (Tag* self);
-gchar* data_object_get_name (DataObject* self);
-static void rename_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-gboolean tag_rename (Tag* self,
- const gchar* name);
-gchar* resources_rename_tag_exists_message (const gchar* name);
-static void rename_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-static void rename_tag_command_finalize (GObject * obj);
-GType delete_tag_command_get_type (void) G_GNUC_CONST;
-#define DELETE_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandPrivate))
-DeleteTagCommand* delete_tag_command_new (Tag* tag);
-DeleteTagCommand* delete_tag_command_construct (GType object_type,
- Tag* tag);
-gchar* resources_delete_tag_label (const gchar* name);
-static void delete_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-GeeList* tag_get_hierarchical_children (Tag* self);
-static void delete_tag_command_on_proxy_broken (DeleteTagCommand* self);
-static void _delete_tag_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self);
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-static void delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-static void delete_tag_command_finalize (GObject * obj);
-GType new_child_tag_command_get_type (void) G_GNUC_CONST;
-#define NEW_CHILD_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandPrivate))
-NewChildTagCommand* new_child_tag_command_new (Tag* tag);
-NewChildTagCommand* new_child_tag_command_construct (GType object_type,
- Tag* tag);
-static void new_child_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-Tag* tag_create_new_child (Tag* self);
-static void new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self);
-static void new_child_tag_command_finalize (GObject * obj);
-GType new_root_tag_command_get_type (void) G_GNUC_CONST;
-#define NEW_ROOT_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandPrivate))
-NewRootTagCommand* new_root_tag_command_new (void);
-NewRootTagCommand* new_root_tag_command_construct (GType object_type);
-static void new_root_tag_command_real_execute (Command* base);
-Tag* tag_create_new_root (void);
-static void new_root_tag_command_real_undo (Command* base);
-Tag* new_root_tag_command_get_created_tag (NewRootTagCommand* self);
-static void new_root_tag_command_finalize (GObject * obj);
-GType reparent_tag_command_get_type (void) G_GNUC_CONST;
-#define REPARENT_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandPrivate))
-static void reparent_tag_command_on_items_destroyed (ReparentTagCommand* self,
- GeeCollection* destroyed);
-static void _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
- GeeCollection* destroyed,
- gpointer self);
-ReparentTagCommand* reparent_tag_command_new (Tag* tag,
- const gchar* new_parent_path);
-ReparentTagCommand* reparent_tag_command_construct (GType object_type,
- Tag* tag,
- const gchar* new_parent_path);
-gchar* tag_get_path (Tag* self);
-#define TAG_PATH_SEPARATOR_STRING "/"
-gchar* hierarchical_tag_utilities_get_root_path_form (const gchar* client_path);
-gboolean tag_source_collection_exists (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root);
-GeeCollection* tag_get_sources (Tag* self);
-static GeeMap* reparent_tag_command_get_child_structure_at (ReparentTagCommand* self,
- const gchar* client_path);
-static void reparent_tag_command_restore_child_attachments_at (ReparentTagCommand* self,
- const gchar* client_path,
- GeeMap* child_structure);
-void tag_promote (Tag* self);
-void tag_attach (Tag* self,
- MediaSource* source);
-static void reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand* self,
- const gchar* client_path);
-static void reparent_tag_command_save_before_state (ReparentTagCommand* self);
-static void reparent_tag_command_restore_before_state (ReparentTagCommand* self);
-GeeList* tag_detach (Tag* self,
- MediaSource* source);
-static void reparent_tag_command_save_after_state (ReparentTagCommand* self);
-static void reparent_tag_command_restore_after_state (ReparentTagCommand* self);
-static void reparent_tag_command_prepare_parent (ReparentTagCommand* self,
- const gchar* path);
-static void reparent_tag_command_do_source_parent_detachments (ReparentTagCommand* self);
-Tag* tag_get_hierarchical_parent (Tag* self);
-gint tag_get_attachment_count (Tag* self,
- MediaSource* source);
-static void reparent_tag_command_do_source_parent_reattachments (ReparentTagCommand* self);
-static void reparent_tag_command_do_destination_parent_detachments (ReparentTagCommand* self);
-static void reparent_tag_command_do_destination_parent_reattachments (ReparentTagCommand* self);
-static void reparent_tag_command_copy_subtree (ReparentTagCommand* self,
- const gchar* from,
- const gchar* to);
-static void reparent_tag_command_destroy_subtree (ReparentTagCommand* self,
- const gchar* client_path);
-static void reparent_tag_command_real_execute (Command* base);
-static void reparent_tag_command_real_undo (Command* base);
-void hierarchical_tag_utilities_cleanup_root_path (const gchar* path);
-static void reparent_tag_command_finalize (GObject * obj);
-GType modify_tags_command_get_type (void) G_GNUC_CONST;
-#define MODIFY_TAGS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandPrivate))
-static void modify_tags_command_on_proxy_broken (ModifyTagsCommand* self);
-static void _modify_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self);
-ModifyTagsCommand* modify_tags_command_new (MediaSource* media,
- GeeCollection* new_tag_list);
-ModifyTagsCommand* modify_tags_command_construct (GType object_type,
- MediaSource* media,
- GeeCollection* new_tag_list);
-#define RESOURCES_MODIFY_TAGS_LABEL _ ("Modify Tags")
-GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self,
- MediaSource* source);
-static void modify_tags_command_real_execute (Command* base);
-static void modify_tags_command_real_undo (Command* base);
-static void modify_tags_command_finalize (GObject * obj);
-GType tag_untag_photos_command_get_type (void) G_GNUC_CONST;
-#define TAG_UNTAG_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandPrivate))
-static void tag_untag_photos_command_on_source_destroyed (TagUntagPhotosCommand* self,
- DataSource* source);
-static void _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag,
- GeeCollection* sources,
- gint count,
- gboolean attach);
-TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type,
- Tag* tag,
- GeeCollection* sources,
- gint count,
- gboolean attach);
-gchar* resources_tag_photos_label (const gchar* name,
- gint count);
-gchar* resources_untag_photos_label (const gchar* name,
- gint count);
-static void tag_untag_photos_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-static void tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self,
- Tag* tag);
-static void tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self,
- Tag* tag);
-static void tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source);
-gchar* data_object_to_string (DataObject* self);
-static void tag_untag_photos_command_finalize (GObject * obj);
-GType rename_saved_search_command_get_type (void) G_GNUC_CONST;
-GType saved_search_get_type (void) G_GNUC_CONST;
-#define RENAME_SAVED_SEARCH_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandPrivate))
-RenameSavedSearchCommand* rename_saved_search_command_new (SavedSearch* search,
- const gchar* new_name);
-RenameSavedSearchCommand* rename_saved_search_command_construct (GType object_type,
- SavedSearch* search,
- const gchar* new_name);
-gchar* resources_rename_search_label (const gchar* old_name,
- const gchar* new_name);
-static void rename_saved_search_command_real_execute (Command* base);
-gboolean saved_search_rename (SavedSearch* self,
- const gchar* new_name);
-gchar* resources_rename_search_exists_message (const gchar* name);
-static void rename_saved_search_command_real_undo (Command* base);
-static void rename_saved_search_command_finalize (GObject * obj);
-GType delete_saved_search_command_get_type (void) G_GNUC_CONST;
-#define DELETE_SAVED_SEARCH_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandPrivate))
-DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search);
-DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type,
- SavedSearch* search);
-gchar* resources_delete_search_label (const gchar* name);
-static void delete_saved_search_command_real_execute (Command* base);
-gpointer saved_search_table_ref (gpointer instance);
-void saved_search_table_unref (gpointer instance);
-GParamSpec* param_spec_saved_search_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_saved_search_table (GValue* value,
- gpointer v_object);
-void value_take_saved_search_table (GValue* value,
- gpointer v_object);
-gpointer value_get_saved_search_table (const GValue* value);
-GType saved_search_table_get_type (void) G_GNUC_CONST;
-SavedSearchTable* saved_search_table_get_instance (void);
-void saved_search_table_remove (SavedSearchTable* self,
- SavedSearch* search);
-static void delete_saved_search_command_real_undo (Command* base);
-void saved_search_reconstitute (SavedSearch* self);
-static void delete_saved_search_command_finalize (GObject * obj);
-GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST;
-#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandPrivate))
-static void trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosCommand* self,
- DataSource* source);
-static void _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources,
- gboolean to_trash);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean to_trash);
-static ProgressDialog* trash_untrash_photos_command_get_progress_dialog (TrashUntrashPhotosCommand* self,
- gboolean to_trash);
-void progress_dialog_update_display_every (ProgressDialog* self,
- gint update_every);
-static void trash_untrash_photos_command_real_execute (Command* base);
-gboolean progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop);
-static gboolean _progress_dialog_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self);
-static void trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self,
- ProgressMonitor monitor,
- void* monitor_target);
-static void trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* self,
- ProgressMonitor monitor,
- void* monitor_target);
-static void trash_untrash_photos_command_real_undo (Command* base);
-void media_source_trash (MediaSource* self);
-void media_source_untrash (MediaSource* self);
-static void trash_untrash_photos_command_finalize (GObject * obj);
-GType flag_unflag_command_get_type (void) G_GNUC_CONST;
-#define FLAG_UNFLAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandPrivate))
-#define FLAG_UNFLAG_COMMAND_MIN_PROGRESS_BAR_THRESHOLD 1000
-#define FLAG_UNFLAG_COMMAND_FLAG_SELECTED_STRING _ ("Flag selected photos")
-#define FLAG_UNFLAG_COMMAND_UNFLAG_SELECTED_STRING _ ("Unflag selected photos")
-#define FLAG_UNFLAG_COMMAND_FLAG_PROGRESS _ ("Flagging selected photos")
-#define FLAG_UNFLAG_COMMAND_UNFLAG_PROGRESS _ ("Unflagging selected photos")
-FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources,
- gboolean flag);
-FlagUnflagCommand* flag_unflag_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean flag);
-static void flag_unflag_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources);
-static void flag_unflag_command_flag_unflag (FlagUnflagCommand* self,
- DataSource* source,
- gboolean flag);
-static void flag_unflag_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources);
-GType flaggable_get_type (void) G_GNUC_CONST;
-void flaggable_mark_flagged (Flaggable* self);
-void flaggable_mark_unflagged (Flaggable* self);
-static void flag_unflag_command_finalize (GObject * obj);
-
-
-static void
-_page_command_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender,
- gpointer self)
-{
-#line 45 "/home/jens/Source/shotwell/src/Commands.vala"
- page_command_on_page_destroyed ((PageCommand*) self);
-#line 3261 "Commands.c"
-}
-
-
-static void
-_page_command_on_photo_destroyed_data_source_destroyed (DataSource* _sender,
- gpointer self)
-{
-#line 48 "/home/jens/Source/shotwell/src/Commands.vala"
- page_command_on_photo_destroyed ((PageCommand*) self);
-#line 3271 "Commands.c"
-}
-
-
-static void
-_page_command_on_controller_destroyed_gtk_widget_destroy (GtkWidget* _sender,
- gpointer self)
-{
-#line 51 "/home/jens/Source/shotwell/src/Commands.vala"
- page_command_on_controller_destroyed ((PageCommand*) self);
-#line 3281 "Commands.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 27 "/home/jens/Source/shotwell/src/Commands.vala"
- return self ? g_object_ref (self) : NULL;
-#line 3290 "Commands.c"
-}
-
-
-PageCommand*
-page_command_construct (GType object_type,
- const gchar* name,
- const gchar* explanation)
-{
- PageCommand * self = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- Page* _tmp2_;
- Page* _tmp3_;
-#line 15 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 15 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 16 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (PageCommand*) command_construct (object_type, name, explanation);
-#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = app_window_get_instance ();
-#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->page);
-#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->page = _tmp2_;
-#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp1_);
-#line 20 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->page;
-#line 20 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != NULL) {
-#line 3326 "Commands.c"
- Page* _tmp4_;
- LibraryPhotoPage* photo_page = NULL;
- Page* _tmp5_;
- LibraryPhotoPage* _tmp6_;
- LibraryPhotoPage* _tmp7_;
-#line 21 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->page;
-#line 21 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self, 0);
-#line 27 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->page;
-#line 27 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_PHOTO_PAGE) ? ((LibraryPhotoPage*) _tmp5_) : NULL);
-#line 27 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_page = _tmp6_;
-#line 28 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = photo_page;
-#line 28 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp7_ != NULL) {
-#line 3346 "Commands.c"
- LibraryPhotoPage* _tmp8_;
- Photo* _tmp9_;
- LibraryPhotoPage* _tmp10_;
- CollectionPage* _tmp11_;
- gboolean _tmp12_ = FALSE;
- Photo* _tmp13_;
-#line 29 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = photo_page;
-#line 29 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 29 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->library_photo);
-#line 29 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->library_photo = _tmp9_;
-#line 30 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = photo_page;
-#line 30 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = library_photo_page_get_controller_page (_tmp10_);
-#line 30 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->collection_page);
-#line 30 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->collection_page = _tmp11_;
-#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->library_photo;
-#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp13_ != NULL) {
-#line 3373 "Commands.c"
- CollectionPage* _tmp14_;
-#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = self->priv->collection_page;
-#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tmp14_ != NULL;
-#line 3379 "Commands.c"
- } else {
-#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = FALSE;
-#line 3383 "Commands.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_) {
-#line 3387 "Commands.c"
- Photo* _tmp15_;
- CollectionPage* _tmp16_;
-#line 33 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = self->priv->library_photo;
-#line 33 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource), "destroyed", (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self, 0);
-#line 34 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = self->priv->collection_page;
-#line 34 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self, 0);
-#line 3398 "Commands.c"
- } else {
-#line 36 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->library_photo);
-#line 36 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->library_photo = NULL;
-#line 37 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->collection_page);
-#line 37 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->collection_page = NULL;
-#line 3408 "Commands.c"
- }
- }
-#line 20 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo_page);
-#line 3413 "Commands.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 3417 "Commands.c"
-}
-
-
-void
-page_command_set_auto_return_to_page (PageCommand* self,
- gboolean auto_return)
-{
-#line 54 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PAGE_COMMAND (self));
-#line 55 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->auto_return = auto_return;
-#line 3429 "Commands.c"
-}
-
-
-static void
-page_command_real_prepare (Command* base)
-{
- PageCommand * self;
- gboolean _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_COMMAND, PageCommand);
-#line 59 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->auto_return;
-#line 59 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_) {
-#line 60 "/home/jens/Source/shotwell/src/Commands.vala"
- page_command_return_to_page (self);
-#line 3446 "Commands.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (page_command_parent_class)->prepare (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 3450 "Commands.c"
-}
-
-
-void
-page_command_return_to_page (PageCommand* self)
-{
- LibraryPhotoPage* photo_page = NULL;
- Page* _tmp0_;
- LibraryPhotoPage* _tmp1_;
- LibraryPhotoPage* _tmp2_;
-#line 65 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PAGE_COMMAND (self));
-#line 66 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->page;
-#line 66 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO_PAGE) ? ((LibraryPhotoPage*) _tmp0_) : NULL);
-#line 66 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_page = _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo_page;
-#line 68 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 3473 "Commands.c"
- gboolean _tmp3_ = FALSE;
- Photo* _tmp4_;
-#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->library_photo;
-#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_ != NULL) {
-#line 3480 "Commands.c"
- CollectionPage* _tmp5_;
-#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->collection_page;
-#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp5_ != NULL;
-#line 3486 "Commands.c"
- } else {
-#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = FALSE;
-#line 3490 "Commands.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
-#line 3494 "Commands.c"
- gboolean photo_in_collection = FALSE;
- gint count = 0;
- CollectionPage* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- gint _tmp9_;
- gboolean _tmp24_;
-#line 70 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_in_collection = FALSE;
-#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->collection_page;
-#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE, Page));
-#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
-#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (_tmp8_);
-#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
- count = _tmp9_;
-#line 3516 "Commands.c"
- {
- gint i = 0;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- i = 0;
-#line 3521 "Commands.c"
- {
- gboolean _tmp10_ = FALSE;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = TRUE;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 3528 "Commands.c"
- gint _tmp12_;
- gint _tmp13_;
- CollectionPage* _tmp14_;
- ViewCollection* _tmp15_;
- ViewCollection* _tmp16_;
- gint _tmp17_;
- DataObject* _tmp18_;
- Thumbnail* _tmp19_;
- MediaSource* _tmp20_;
- MediaSource* _tmp21_;
- Photo* _tmp22_;
- gboolean _tmp23_;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp10_) {
-#line 3543 "Commands.c"
- gint _tmp11_;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = i;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp11_ + 1;
-#line 3549 "Commands.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = FALSE;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = i;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = count;
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 3561 "Commands.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = self->priv->collection_page;
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE, Page));
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = i;
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), _tmp17_);
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_THUMBNAIL, Thumbnail);
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = thumbnail_get_media_source (_tmp19_);
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = self->priv->library_photo;
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp21_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp21_);
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp19_);
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (_tmp16_);
-#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp23_) {
-#line 74 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_in_collection = TRUE;
-#line 75 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 3595 "Commands.c"
- }
- }
- }
- }
-#line 79 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = photo_in_collection;
-#line 79 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp24_) {
-#line 3604 "Commands.c"
- LibraryWindow* _tmp25_;
- LibraryWindow* _tmp26_;
- CollectionPage* _tmp27_;
- Photo* _tmp28_;
-#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = library_window_get_app ();
-#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _tmp25_;
-#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = self->priv->collection_page;
-#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = self->priv->library_photo;
-#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- library_window_switch_to_photo_page (_tmp26_, _tmp27_, _tmp28_);
-#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp26_);
-#line 3621 "Commands.c"
- }
- }
- } else {
- Page* _tmp29_;
-#line 82 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = self->priv->page;
-#line 82 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp29_ != NULL) {
-#line 3630 "Commands.c"
- AppWindow* _tmp30_;
- AppWindow* _tmp31_;
- Page* _tmp32_;
-#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = app_window_get_instance ();
-#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = _tmp30_;
-#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = self->priv->page;
-#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PAGE_WINDOW, PageWindow), _tmp32_);
-#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp31_);
-#line 3644 "Commands.c"
- }
- }
-#line 65 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo_page);
-#line 3649 "Commands.c"
-}
-
-
-static void
-page_command_on_page_destroyed (PageCommand* self)
-{
- Page* _tmp0_;
- guint _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PAGE_COMMAND (self));
-#line 87 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->page;
-#line 87 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp1_, NULL, FALSE);
-#line 87 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self);
-#line 88 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->page);
-#line 88 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->page = NULL;
-#line 3670 "Commands.c"
-}
-
-
-static void
-page_command_on_photo_destroyed (PageCommand* self)
-{
- Photo* _tmp0_;
- guint _tmp1_;
-#line 91 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PAGE_COMMAND (self));
-#line 92 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->library_photo;
-#line 92 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp1_, NULL, FALSE);
-#line 92 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self);
-#line 93 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->library_photo);
-#line 93 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->library_photo = NULL;
-#line 3691 "Commands.c"
-}
-
-
-static void
-page_command_on_controller_destroyed (PageCommand* self)
-{
- CollectionPage* _tmp0_;
- guint _tmp1_;
-#line 96 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PAGE_COMMAND (self));
-#line 97 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->collection_page;
-#line 97 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp1_, NULL, FALSE);
-#line 97 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self);
-#line 98 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->collection_page);
-#line 98 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->collection_page = NULL;
-#line 3712 "Commands.c"
-}
-
-
-static void
-page_command_class_init (PageCommandClass * klass)
-{
-#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
- page_command_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (PageCommandPrivate));
-#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->prepare = (void (*) (Command *)) page_command_real_prepare;
-#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = page_command_finalize;
-#line 3727 "Commands.c"
-}
-
-
-static void
-page_command_instance_init (PageCommand * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = PAGE_COMMAND_GET_PRIVATE (self);
-#line 11 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->auto_return = TRUE;
-#line 12 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->library_photo = NULL;
-#line 13 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->collection_page = NULL;
-#line 3742 "Commands.c"
-}
-
-
-static void
-page_command_finalize (GObject * obj)
-{
- PageCommand * self;
- Page* _tmp0_;
- Photo* _tmp3_;
- CollectionPage* _tmp6_;
-#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE_COMMAND, PageCommand);
-#line 44 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->page;
-#line 44 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_ != NULL) {
-#line 3759 "Commands.c"
- Page* _tmp1_;
- guint _tmp2_;
-#line 45 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->page;
-#line 45 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp2_, NULL, FALSE);
-#line 45 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self);
-#line 3768 "Commands.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->library_photo;
-#line 47 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != NULL) {
-#line 3774 "Commands.c"
- Photo* _tmp4_;
- guint _tmp5_;
-#line 48 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->library_photo;
-#line 48 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp5_, NULL, FALSE);
-#line 48 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self);
-#line 3783 "Commands.c"
- }
-#line 50 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->collection_page;
-#line 50 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ != NULL) {
-#line 3789 "Commands.c"
- CollectionPage* _tmp7_;
- guint _tmp8_;
-#line 51 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->collection_page;
-#line 51 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp8_, NULL, FALSE);
-#line 51 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self);
-#line 3798 "Commands.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->page);
-#line 12 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->library_photo);
-#line 13 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->collection_page);
-#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (page_command_parent_class)->finalize (obj);
-#line 3808 "Commands.c"
-}
-
-
-GType
-page_command_get_type (void)
-{
- static volatile gsize page_command_type_id__volatile = 0;
- if (g_once_init_enter (&page_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PageCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) page_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PageCommand), 0, (GInstanceInitFunc) page_command_instance_init, NULL };
- GType page_command_type_id;
- page_command_type_id = g_type_register_static (TYPE_COMMAND, "PageCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&page_command_type_id__volatile, page_command_type_id);
- }
- return page_command_type_id__volatile;
-}
-
-
-static void
-_single_data_source_command_on_source_destroyed_data_source_destroyed (DataSource* _sender,
- gpointer self)
-{
-#line 115 "/home/jens/Source/shotwell/src/Commands.vala"
- single_data_source_command_on_source_destroyed ((SingleDataSourceCommand*) self);
-#line 3832 "Commands.c"
-}
-
-
-SingleDataSourceCommand*
-single_data_source_command_construct (GType object_type,
- DataSource* source,
- const gchar* name,
- const gchar* explanation)
-{
- SingleDataSourceCommand * self = NULL;
- DataSource* _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 106 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 106 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 107 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SingleDataSourceCommand*) page_command_construct (object_type, name, explanation);
-#line 109 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (source);
-#line 109 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->source);
-#line 109 "/home/jens/Source/shotwell/src/Commands.vala"
- self->source = _tmp0_;
-#line 111 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (source, "destroyed", (GCallback) _single_data_source_command_on_source_destroyed_data_source_destroyed, self, 0);
-#line 106 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 3862 "Commands.c"
-}
-
-
-DataSource*
-single_data_source_command_get_source (SingleDataSourceCommand* self)
-{
- DataSource* result = NULL;
- DataSource* _tmp0_;
- DataSource* _tmp1_;
-#line 118 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_SINGLE_DATA_SOURCE_COMMAND (self), NULL);
-#line 119 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->source;
-#line 119 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 119 "/home/jens/Source/shotwell/src/Commands.vala"
- result = _tmp1_;
-#line 119 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 3882 "Commands.c"
-}
-
-
-static void
-single_data_source_command_on_source_destroyed (SingleDataSourceCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 122 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SINGLE_DATA_SOURCE_COMMAND (self));
-#line 125 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 125 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 125 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 125 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 3901 "Commands.c"
-}
-
-
-static void
-single_data_source_command_class_init (SingleDataSourceCommandClass * klass)
-{
-#line 103 "/home/jens/Source/shotwell/src/Commands.vala"
- single_data_source_command_parent_class = g_type_class_peek_parent (klass);
-#line 103 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = single_data_source_command_finalize;
-#line 3912 "Commands.c"
-}
-
-
-static void
-single_data_source_command_instance_init (SingleDataSourceCommand * self)
-{
-}
-
-
-static void
-single_data_source_command_finalize (GObject * obj)
-{
- SingleDataSourceCommand * self;
- DataSource* _tmp0_;
- guint _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand);
-#line 115 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->source;
-#line 115 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp1_, NULL, FALSE);
-#line 115 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _single_data_source_command_on_source_destroyed_data_source_destroyed, self);
-#line 104 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->source);
-#line 103 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (single_data_source_command_parent_class)->finalize (obj);
-#line 3940 "Commands.c"
-}
-
-
-GType
-single_data_source_command_get_type (void)
-{
- static volatile gsize single_data_source_command_type_id__volatile = 0;
- if (g_once_init_enter (&single_data_source_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SingleDataSourceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) single_data_source_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SingleDataSourceCommand), 0, (GInstanceInitFunc) single_data_source_command_instance_init, NULL };
- GType single_data_source_command_type_id;
- single_data_source_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "SingleDataSourceCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&single_data_source_command_type_id__volatile, single_data_source_command_type_id);
- }
- return single_data_source_command_type_id__volatile;
-}
-
-
-static void
-_simple_proxyable_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self)
-{
-#line 141 "/home/jens/Source/shotwell/src/Commands.vala"
- simple_proxyable_command_on_proxy_broken ((SimpleProxyableCommand*) self);
-#line 3964 "Commands.c"
-}
-
-
-SimpleProxyableCommand*
-simple_proxyable_command_construct (GType object_type,
- Proxyable* proxyable,
- const gchar* name,
- const gchar* explanation)
-{
- SimpleProxyableCommand * self = NULL;
- SourceProxy* _tmp0_;
- SourceProxy* _tmp1_;
-#line 133 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PROXYABLE (proxyable), NULL);
-#line 133 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 133 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 134 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SimpleProxyableCommand*) page_command_construct (object_type, name, explanation);
-#line 136 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = proxyable_get_proxy (proxyable);
-#line 136 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (self->priv->proxy);
-#line 136 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->proxy = _tmp0_;
-#line 137 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->proxy;
-#line 137 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp1_, "broken", (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 133 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 3997 "Commands.c"
-}
-
-
-static void
-simple_proxyable_command_real_execute (Command* base)
-{
- SimpleProxyableCommand * self;
- SourceProxy* _tmp0_;
- DataSource* _tmp1_;
- DataSource* _tmp2_;
-#line 145 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand);
-#line 146 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->proxy;
-#line 146 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source_proxy_get_source (_tmp0_);
-#line 146 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 146 "/home/jens/Source/shotwell/src/Commands.vala"
- simple_proxyable_command_execute_on_source (self, _tmp2_);
-#line 146 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp2_);
-#line 4020 "Commands.c"
-}
-
-
-static void
-simple_proxyable_command_real_execute_on_source (SimpleProxyableCommand* self,
- DataSource* source)
-{
-#line 149 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Type `%s' does not implement abstract method `simple_proxyable_command_execute_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 149 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 4032 "Commands.c"
-}
-
-
-void
-simple_proxyable_command_execute_on_source (SimpleProxyableCommand* self,
- DataSource* source)
-{
-#line 149 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
-#line 149 "/home/jens/Source/shotwell/src/Commands.vala"
- SIMPLE_PROXYABLE_COMMAND_GET_CLASS (self)->execute_on_source (self, source);
-#line 4044 "Commands.c"
-}
-
-
-static void
-simple_proxyable_command_real_undo (Command* base)
-{
- SimpleProxyableCommand * self;
- SourceProxy* _tmp0_;
- DataSource* _tmp1_;
- DataSource* _tmp2_;
-#line 151 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand);
-#line 152 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->proxy;
-#line 152 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source_proxy_get_source (_tmp0_);
-#line 152 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 152 "/home/jens/Source/shotwell/src/Commands.vala"
- simple_proxyable_command_undo_on_source (self, _tmp2_);
-#line 152 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp2_);
-#line 4067 "Commands.c"
-}
-
-
-static void
-simple_proxyable_command_real_undo_on_source (SimpleProxyableCommand* self,
- DataSource* source)
-{
-#line 155 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Type `%s' does not implement abstract method `simple_proxyable_command_undo_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 155 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 4079 "Commands.c"
-}
-
-
-void
-simple_proxyable_command_undo_on_source (SimpleProxyableCommand* self,
- DataSource* source)
-{
-#line 155 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
-#line 155 "/home/jens/Source/shotwell/src/Commands.vala"
- SIMPLE_PROXYABLE_COMMAND_GET_CLASS (self)->undo_on_source (self, source);
-#line 4091 "Commands.c"
-}
-
-
-void
-simple_proxyable_command_add_proxyables (SimpleProxyableCommand* self,
- GeeCollection* proxyables)
-{
-#line 161 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
-#line 161 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (proxyables));
-#line 4103 "Commands.c"
- {
- GeeIterator* _proxyable_it = NULL;
- GeeIterator* _tmp0_;
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (proxyables, GEE_TYPE_ITERABLE, GeeIterable));
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxyable_it = _tmp0_;
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 4113 "Commands.c"
- GeeIterator* _tmp1_;
- Proxyable* proxyable = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- SourceProxy* added_proxy = NULL;
- Proxyable* _tmp4_;
- SourceProxy* _tmp5_;
- SourceProxy* _tmp6_;
- GeeHashSet* _tmp7_;
- SourceProxy* _tmp8_;
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _proxyable_it;
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 4130 "Commands.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _proxyable_it;
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- proxyable = (Proxyable*) _tmp3_;
-#line 163 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = proxyable;
-#line 163 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = proxyable_get_proxy (_tmp4_);
-#line 163 "/home/jens/Source/shotwell/src/Commands.vala"
- added_proxy = _tmp5_;
-#line 164 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = added_proxy;
-#line 164 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp6_, "broken", (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->proxies;
-#line 165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = added_proxy;
-#line 165 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_);
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (added_proxy);
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (proxyable);
-#line 4158 "Commands.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_proxyable_it);
-#line 4162 "Commands.c"
- }
-}
-
-
-void
-simple_proxyable_command_clear_added_proxies (SimpleProxyableCommand* self)
-{
- GeeHashSet* _tmp7_;
-#line 170 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
-#line 4173 "Commands.c"
- {
- GeeIterator* _added_proxy_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->proxies;
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _added_proxy_it = _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 4186 "Commands.c"
- GeeIterator* _tmp2_;
- SourceProxy* added_proxy = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SourceProxy* _tmp5_;
- guint _tmp6_;
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _added_proxy_it;
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 4199 "Commands.c"
- }
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _added_proxy_it;
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- added_proxy = (SourceProxy*) _tmp4_;
-#line 172 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = added_proxy;
-#line 172 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp6_, NULL, FALSE);
-#line 172 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self);
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (added_proxy);
-#line 4215 "Commands.c"
- }
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_added_proxy_it);
-#line 4219 "Commands.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->proxies;
-#line 174 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 4225 "Commands.c"
-}
-
-
-static void
-simple_proxyable_command_on_proxy_broken (SimpleProxyableCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 177 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
-#line 178 "/home/jens/Source/shotwell/src/Commands.vala"
- g_debug ("Commands.vala:178: on_proxy_broken");
-#line 179 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 179 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 179 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 179 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 4246 "Commands.c"
-}
-
-
-static void
-simple_proxyable_command_class_init (SimpleProxyableCommandClass * klass)
-{
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- simple_proxyable_command_parent_class = g_type_class_peek_parent (klass);
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (SimpleProxyableCommandPrivate));
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) simple_proxyable_command_real_execute;
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) simple_proxyable_command_real_execute_on_source;
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) simple_proxyable_command_real_undo;
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) simple_proxyable_command_real_undo_on_source;
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = simple_proxyable_command_finalize;
-#line 4267 "Commands.c"
-}
-
-
-static void
-simple_proxyable_command_instance_init (SimpleProxyableCommand * self)
-{
- GeeHashSet* _tmp0_;
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = SIMPLE_PROXYABLE_COMMAND_GET_PRIVATE (self);
-#line 131 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_set_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 131 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->proxies = _tmp0_;
-#line 4281 "Commands.c"
-}
-
-
-static void
-simple_proxyable_command_finalize (GObject * obj)
-{
- SimpleProxyableCommand * self;
- SourceProxy* _tmp0_;
- guint _tmp1_;
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand);
-#line 141 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->proxy;
-#line 141 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp1_, NULL, FALSE);
-#line 141 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self);
-#line 142 "/home/jens/Source/shotwell/src/Commands.vala"
- simple_proxyable_command_clear_added_proxies (self);
-#line 130 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (self->priv->proxy);
-#line 131 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->proxies);
-#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (simple_proxyable_command_parent_class)->finalize (obj);
-#line 4307 "Commands.c"
-}
-
-
-GType
-simple_proxyable_command_get_type (void)
-{
- static volatile gsize simple_proxyable_command_type_id__volatile = 0;
- if (g_once_init_enter (&simple_proxyable_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SimpleProxyableCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) simple_proxyable_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SimpleProxyableCommand), 0, (GInstanceInitFunc) simple_proxyable_command_instance_init, NULL };
- GType simple_proxyable_command_type_id;
- simple_proxyable_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "SimpleProxyableCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&simple_proxyable_command_type_id__volatile, simple_proxyable_command_type_id);
- }
- return simple_proxyable_command_type_id__volatile;
-}
-
-
-static void
-_single_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
- gpointer self)
-{
-#line 194 "/home/jens/Source/shotwell/src/Commands.vala"
- single_photo_transformation_command_on_state_broken ((SinglePhotoTransformationCommand*) self);
-#line 4331 "Commands.c"
-}
-
-
-SinglePhotoTransformationCommand*
-single_photo_transformation_command_construct (GType object_type,
- Photo* photo,
- const gchar* name,
- const gchar* explanation)
-{
- SinglePhotoTransformationCommand * self = NULL;
- PhotoTransformationState* _tmp0_;
- PhotoTransformationState* _tmp1_;
-#line 186 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 186 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 186 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 187 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SinglePhotoTransformationCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation);
-#line 189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo_save_transformation_state (photo);
-#line 189 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->state);
-#line 189 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->state = _tmp0_;
-#line 190 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->state;
-#line 190 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp1_, "broken", (GCallback) _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
-#line 186 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 4364 "Commands.c"
-}
-
-
-static void
-single_photo_transformation_command_real_undo (Command* base)
-{
- SinglePhotoTransformationCommand * self;
- DataSource* _tmp0_;
- PhotoTransformationState* _tmp1_;
-#line 197 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommand);
-#line 198 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 198 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->state;
-#line 198 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 4382 "Commands.c"
-}
-
-
-static void
-single_photo_transformation_command_on_state_broken (SinglePhotoTransformationCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 201 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_TRANSFORMATION_COMMAND (self));
-#line 202 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 202 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 202 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 202 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 4401 "Commands.c"
-}
-
-
-static void
-single_photo_transformation_command_class_init (SinglePhotoTransformationCommandClass * klass)
-{
-#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
- single_photo_transformation_command_parent_class = g_type_class_peek_parent (klass);
-#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (SinglePhotoTransformationCommandPrivate));
-#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) single_photo_transformation_command_real_undo;
-#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = single_photo_transformation_command_finalize;
-#line 4416 "Commands.c"
-}
-
-
-static void
-single_photo_transformation_command_instance_init (SinglePhotoTransformationCommand * self)
-{
-#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = SINGLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self);
-#line 4425 "Commands.c"
-}
-
-
-static void
-single_photo_transformation_command_finalize (GObject * obj)
-{
- SinglePhotoTransformationCommand * self;
- PhotoTransformationState* _tmp0_;
- guint _tmp1_;
-#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommand);
-#line 194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->state;
-#line 194 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp1_, NULL, FALSE);
-#line 194 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self);
-#line 184 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->state);
-#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (single_photo_transformation_command_parent_class)->finalize (obj);
-#line 4447 "Commands.c"
-}
-
-
-GType
-single_photo_transformation_command_get_type (void)
-{
- static volatile gsize single_photo_transformation_command_type_id__volatile = 0;
- if (g_once_init_enter (&single_photo_transformation_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SinglePhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) single_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SinglePhotoTransformationCommand), 0, (GInstanceInitFunc) single_photo_transformation_command_instance_init, NULL };
- GType single_photo_transformation_command_type_id;
- single_photo_transformation_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "SinglePhotoTransformationCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&single_photo_transformation_command_type_id__volatile, single_photo_transformation_command_type_id);
- }
- return single_photo_transformation_command_type_id__volatile;
-}
-
-
-static void
-_generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
- gpointer self)
-{
-#line 216 "/home/jens/Source/shotwell/src/Commands.vala"
- generic_photo_transformation_command_on_state_broken ((GenericPhotoTransformationCommand*) self);
-#line 4471 "Commands.c"
-}
-
-
-GenericPhotoTransformationCommand*
-generic_photo_transformation_command_construct (GType object_type,
- Photo* photo,
- const gchar* name,
- const gchar* explanation)
-{
- GenericPhotoTransformationCommand * self = NULL;
-#line 210 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 210 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 210 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 211 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (GenericPhotoTransformationCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation);
-#line 210 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 4492 "Commands.c"
-}
-
-
-static void
-generic_photo_transformation_command_real_execute (Command* base)
-{
- GenericPhotoTransformationCommand * self;
- Photo* photo = NULL;
- DataSource* _tmp0_;
- Photo* _tmp1_;
- PhotoTransformationState* _tmp2_;
- PhotoTransformationState* _tmp3_;
- PhotoTransformationState* _tmp4_;
- PhotoTransformationState* _tmp5_;
-#line 222 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand);
-#line 223 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 223 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo));
-#line 223 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp1_;
-#line 225 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo_save_transformation_state (photo);
-#line 225 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->original_state);
-#line 225 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->original_state = _tmp2_;
-#line 226 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->original_state;
-#line 226 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp3_, "broken", (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
-#line 228 "/home/jens/Source/shotwell/src/Commands.vala"
- generic_photo_transformation_command_execute_on_photo (self, photo);
-#line 230 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = photo_save_transformation_state (photo);
-#line 230 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->transformed_state);
-#line 230 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->transformed_state = _tmp4_;
-#line 231 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->transformed_state;
-#line 231 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp5_, "broken", (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
-#line 222 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 4539 "Commands.c"
-}
-
-
-static void
-generic_photo_transformation_command_real_execute_on_photo (GenericPhotoTransformationCommand* self,
- Photo* photo)
-{
-#line 234 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Type `%s' does not implement abstract method `generic_photo_transformation_command_execute_on_photo'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 234 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 4551 "Commands.c"
-}
-
-
-void
-generic_photo_transformation_command_execute_on_photo (GenericPhotoTransformationCommand* self,
- Photo* photo)
-{
-#line 234 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND (self));
-#line 234 "/home/jens/Source/shotwell/src/Commands.vala"
- GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS (self)->execute_on_photo (self, photo);
-#line 4563 "Commands.c"
-}
-
-
-static void
-generic_photo_transformation_command_real_undo (Command* base)
-{
- GenericPhotoTransformationCommand * self;
- DataSource* _tmp0_;
- PhotoTransformationState* _tmp1_;
-#line 236 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand);
-#line 238 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 238 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->original_state;
-#line 238 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 4581 "Commands.c"
-}
-
-
-static void
-generic_photo_transformation_command_real_redo (Command* base)
-{
- GenericPhotoTransformationCommand * self;
- DataSource* _tmp0_;
- PhotoTransformationState* _tmp1_;
-#line 241 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand);
-#line 243 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 243 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->transformed_state;
-#line 243 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 4599 "Commands.c"
-}
-
-
-static gboolean
-generic_photo_transformation_command_real_can_compress (GenericPhotoTransformationCommand* self,
- Command* command)
-{
- gboolean result = FALSE;
-#line 246 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 247 "/home/jens/Source/shotwell/src/Commands.vala"
- result = FALSE;
-#line 247 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 4614 "Commands.c"
-}
-
-
-gboolean
-generic_photo_transformation_command_can_compress (GenericPhotoTransformationCommand* self,
- Command* command)
-{
-#line 246 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND (self), FALSE);
-#line 246 "/home/jens/Source/shotwell/src/Commands.vala"
- return GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS (self)->can_compress (self, command);
-#line 4626 "Commands.c"
-}
-
-
-static gboolean
-generic_photo_transformation_command_real_compress (Command* base,
- Command* command)
-{
- GenericPhotoTransformationCommand * self;
- gboolean result = FALSE;
- GenericPhotoTransformationCommand* generic = NULL;
- GenericPhotoTransformationCommand* _tmp0_;
- GenericPhotoTransformationCommand* _tmp1_;
- GenericPhotoTransformationCommand* _tmp2_;
- DataSource* _tmp3_;
- DataSource* _tmp4_;
- GenericPhotoTransformationCommand* _tmp5_;
- GenericPhotoTransformationCommand* _tmp6_;
- PhotoTransformationState* _tmp7_;
- PhotoTransformationState* _tmp8_;
-#line 250 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand);
-#line 250 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 251 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!generic_photo_transformation_command_can_compress (self, command)) {
-#line 252 "/home/jens/Source/shotwell/src/Commands.vala"
- result = FALSE;
-#line 252 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 4656 "Commands.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND) ? ((GenericPhotoTransformationCommand*) command) : NULL);
-#line 254 "/home/jens/Source/shotwell/src/Commands.vala"
- generic = _tmp0_;
-#line 255 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = generic;
-#line 255 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ == NULL) {
-#line 256 "/home/jens/Source/shotwell/src/Commands.vala"
- result = FALSE;
-#line 256 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (generic);
-#line 256 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 4672 "Commands.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = generic;
-#line 258 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 258 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 258 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != _tmp4_) {
-#line 259 "/home/jens/Source/shotwell/src/Commands.vala"
- result = FALSE;
-#line 259 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (generic);
-#line 259 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 4688 "Commands.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = generic;
-#line 262 "/home/jens/Source/shotwell/src/Commands.vala"
- command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command));
-#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = generic;
-#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_->priv->transformed_state;
-#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->transformed_state);
-#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->transformed_state = _tmp8_;
-#line 267 "/home/jens/Source/shotwell/src/Commands.vala"
- result = TRUE;
-#line 267 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (generic);
-#line 267 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 4710 "Commands.c"
-}
-
-
-static void
-generic_photo_transformation_command_on_state_broken (GenericPhotoTransformationCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 270 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND (self));
-#line 271 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 271 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 271 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 271 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 4729 "Commands.c"
-}
-
-
-static void
-generic_photo_transformation_command_class_init (GenericPhotoTransformationCommandClass * klass)
-{
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- generic_photo_transformation_command_parent_class = g_type_class_peek_parent (klass);
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (GenericPhotoTransformationCommandPrivate));
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) generic_photo_transformation_command_real_execute;
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) generic_photo_transformation_command_real_execute_on_photo;
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) generic_photo_transformation_command_real_undo;
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->redo = (void (*) (Command *)) generic_photo_transformation_command_real_redo;
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->can_compress = (gboolean (*) (GenericPhotoTransformationCommand *, Command*)) generic_photo_transformation_command_real_can_compress;
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) generic_photo_transformation_command_real_compress;
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = generic_photo_transformation_command_finalize;
-#line 4754 "Commands.c"
-}
-
-
-static void
-generic_photo_transformation_command_instance_init (GenericPhotoTransformationCommand * self)
-{
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self);
-#line 207 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->original_state = NULL;
-#line 208 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->transformed_state = NULL;
-#line 4767 "Commands.c"
-}
-
-
-static void
-generic_photo_transformation_command_finalize (GObject * obj)
-{
- GenericPhotoTransformationCommand * self;
- PhotoTransformationState* _tmp0_;
- PhotoTransformationState* _tmp3_;
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand);
-#line 215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->original_state;
-#line 215 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_ != NULL) {
-#line 4783 "Commands.c"
- PhotoTransformationState* _tmp1_;
- guint _tmp2_;
-#line 216 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->original_state;
-#line 216 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp2_, NULL, FALSE);
-#line 216 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self);
-#line 4792 "Commands.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->transformed_state;
-#line 218 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != NULL) {
-#line 4798 "Commands.c"
- PhotoTransformationState* _tmp4_;
- guint _tmp5_;
-#line 219 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->transformed_state;
-#line 219 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp5_, NULL, FALSE);
-#line 219 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self);
-#line 4807 "Commands.c"
- }
-#line 207 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->original_state);
-#line 208 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->transformed_state);
-#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (generic_photo_transformation_command_parent_class)->finalize (obj);
-#line 4815 "Commands.c"
-}
-
-
-GType
-generic_photo_transformation_command_get_type (void)
-{
- static volatile gsize generic_photo_transformation_command_type_id__volatile = 0;
- if (g_once_init_enter (&generic_photo_transformation_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (GenericPhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) generic_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GenericPhotoTransformationCommand), 0, (GInstanceInitFunc) generic_photo_transformation_command_instance_init, NULL };
- GType generic_photo_transformation_command_type_id;
- generic_photo_transformation_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "GenericPhotoTransformationCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&generic_photo_transformation_command_type_id__volatile, generic_photo_transformation_command_type_id);
- }
- return generic_photo_transformation_command_type_id__volatile;
-}
-
-
-static void
-_multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 309 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_on_source_destroyed ((MultipleDataSourceCommand*) self, source);
-#line 4840 "Commands.c"
-}
-
-
-MultipleDataSourceCommand*
-multiple_data_source_command_construct (GType object_type,
- GeeIterable* iter,
- const gchar* progress_text,
- const gchar* undo_progress_text,
- const gchar* name,
- const gchar* explanation)
-{
- MultipleDataSourceCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (progress_text != NULL, NULL);
-#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (undo_progress_text != NULL, NULL);
-#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 287 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MultipleDataSourceCommand*) page_command_construct (object_type, name, explanation);
-#line 289 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = g_strdup (progress_text);
-#line 289 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->progress_text);
-#line 289 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->progress_text = _tmp0_;
-#line 290 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = g_strdup (undo_progress_text);
-#line 290 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->undo_progress_text);
-#line 290 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->undo_progress_text = _tmp1_;
-#line 4879 "Commands.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp2_;
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_iterable_iterator (iter);
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp2_;
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 4889 "Commands.c"
- GeeIterator* _tmp3_;
- DataView* view = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataSource* source = NULL;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- SourceCollection* collection = NULL;
- DataSource* _tmp8_;
- DataCollection* _tmp9_;
- SourceCollection* _tmp10_;
- GeeArrayList* _tmp13_;
- DataSource* _tmp14_;
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _view_it;
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 4909 "Commands.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _view_it;
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp5_;
-#line 293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = view;
-#line 293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
-#line 293 "/home/jens/Source/shotwell/src/Commands.vala"
- source = _tmp7_;
-#line 294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = source;
-#line 294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 294 "/home/jens/Source/shotwell/src/Commands.vala"
- collection = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_SOURCE_COLLECTION, SourceCollection);
-#line 296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = collection;
-#line 296 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp10_ != NULL) {
-#line 4933 "Commands.c"
- GeeHashSet* _tmp11_;
- SourceCollection* _tmp12_;
-#line 297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->priv->hooked_collections;
-#line 297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = collection;
-#line 297 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_);
-#line 4942 "Commands.c"
- }
-#line 299 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->source_list;
-#line 299 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = source;
-#line 299 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (collection);
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (view);
-#line 4956 "Commands.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_view_it);
-#line 4960 "Commands.c"
- }
- {
- GeeIterator* _current_collection_it = NULL;
- GeeHashSet* _tmp15_;
- GeeIterator* _tmp16_;
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = self->priv->hooked_collections;
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _current_collection_it = _tmp16_;
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 4974 "Commands.c"
- GeeIterator* _tmp17_;
- SourceCollection* current_collection = NULL;
- GeeIterator* _tmp18_;
- gpointer _tmp19_;
- SourceCollection* _tmp20_;
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _current_collection_it;
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp17_)) {
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 4986 "Commands.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _current_collection_it;
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_iterator_get (_tmp18_);
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- current_collection = (SourceCollection*) _tmp19_;
-#line 303 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = current_collection;
-#line 303 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp20_, "item-destroyed", (GCallback) _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (current_collection);
-#line 5000 "Commands.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_current_collection_it);
-#line 5004 "Commands.c"
- }
-#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 5008 "Commands.c"
-}
-
-
-GeeIterable*
-multiple_data_source_command_get_sources (MultipleDataSourceCommand* self)
-{
- GeeIterable* result = NULL;
- GeeArrayList* _tmp0_;
- GeeIterable* _tmp1_;
-#line 313 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self), NULL);
-#line 314 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->source_list;
-#line 314 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 314 "/home/jens/Source/shotwell/src/Commands.vala"
- result = _tmp1_;
-#line 314 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 5028 "Commands.c"
-}
-
-
-gint
-multiple_data_source_command_get_source_count (MultipleDataSourceCommand* self)
-{
- gint result = 0;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 317 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self), 0);
-#line 318 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->source_list;
-#line 318 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 318 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 318 "/home/jens/Source/shotwell/src/Commands.vala"
- result = _tmp2_;
-#line 318 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 5051 "Commands.c"
-}
-
-
-static void
-multiple_data_source_command_on_source_destroyed (MultipleDataSourceCommand* self,
- DataSource* source)
-{
- GeeArrayList* _tmp0_;
-#line 321 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
-#line 321 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 324 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->source_list;
-#line 324 "/home/jens/Source/shotwell/src/Commands.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source)) {
-#line 5068 "Commands.c"
- CommandManager* _tmp1_;
- CommandManager* _tmp2_;
-#line 325 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 325 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 325 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp2_);
-#line 325 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp2_);
-#line 5079 "Commands.c"
- }
-}
-
-
-static void
-multiple_data_source_command_real_execute (Command* base)
-{
- MultipleDataSourceCommand * self;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
-#line 328 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand);
-#line 329 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->acted_upon;
-#line 329 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 331 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_start_transaction (self);
-#line 332 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->source_list;
-#line 332 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->acted_upon;
-#line 332 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_execute_all (self, TRUE, TRUE, _tmp1_, _tmp2_);
-#line 333 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_commit_transaction (self);
-#line 5107 "Commands.c"
-}
-
-
-static void
-multiple_data_source_command_real_execute_on_source (MultipleDataSourceCommand* self,
- DataSource* source)
-{
-#line 336 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Type `%s' does not implement abstract method `multiple_data_source_command_execute_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 336 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 5119 "Commands.c"
-}
-
-
-void
-multiple_data_source_command_execute_on_source (MultipleDataSourceCommand* self,
- DataSource* source)
-{
-#line 336 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
-#line 336 "/home/jens/Source/shotwell/src/Commands.vala"
- MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS (self)->execute_on_source (self, source);
-#line 5131 "Commands.c"
-}
-
-
-static void
-multiple_data_source_command_real_undo (Command* base)
-{
- MultipleDataSourceCommand * self;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 338 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand);
-#line 339 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->acted_upon;
-#line 339 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 339 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 339 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ > 0) {
-#line 5152 "Commands.c"
- GeeArrayList* _tmp3_;
- GeeArrayList* _tmp4_;
-#line 340 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_start_transaction (self);
-#line 341 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->acted_upon;
-#line 341 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_execute_all (self, FALSE, FALSE, _tmp3_, NULL);
-#line 342 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_commit_transaction (self);
-#line 344 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->acted_upon;
-#line 344 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 5167 "Commands.c"
- }
-}
-
-
-static void
-multiple_data_source_command_real_undo_on_source (MultipleDataSourceCommand* self,
- DataSource* source)
-{
-#line 348 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Type `%s' does not implement abstract method `multiple_data_source_command_undo_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 348 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 5180 "Commands.c"
-}
-
-
-void
-multiple_data_source_command_undo_on_source (MultipleDataSourceCommand* self,
- DataSource* source)
-{
-#line 348 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
-#line 348 "/home/jens/Source/shotwell/src/Commands.vala"
- MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS (self)->undo_on_source (self, source);
-#line 5192 "Commands.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 352 "/home/jens/Source/shotwell/src/Commands.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 5201 "Commands.c"
-}
-
-
-static void
-multiple_data_source_command_start_transaction (MultipleDataSourceCommand* self)
-{
-#line 350 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
-#line 5210 "Commands.c"
- {
- GeeIterator* _sources_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->hooked_collections;
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _sources_it = _tmp1_;
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 5223 "Commands.c"
- GeeIterator* _tmp2_;
- SourceCollection* sources = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- MediaSourceCollection* media_collection = NULL;
- SourceCollection* _tmp5_;
- MediaSourceCollection* _tmp6_;
- MediaSourceCollection* _tmp7_;
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _sources_it;
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 5238 "Commands.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _sources_it;
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- sources = (SourceCollection*) _tmp4_;
-#line 352 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = sources;
-#line 352 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION) ? ((MediaSourceCollection*) _tmp5_) : NULL);
-#line 352 "/home/jens/Source/shotwell/src/Commands.vala"
- media_collection = _tmp6_;
-#line 353 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = media_collection;
-#line 353 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp7_ != NULL) {
-#line 5256 "Commands.c"
- MediaSourceCollection* _tmp8_;
- TransactionController* _tmp9_;
- TransactionController* _tmp10_;
-#line 354 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = media_collection;
-#line 354 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = media_source_collection_get_transaction_controller (_tmp8_);
-#line 354 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
-#line 354 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_begin (_tmp10_);
-#line 5268 "Commands.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (media_collection);
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (sources);
-#line 5274 "Commands.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_sources_it);
-#line 5278 "Commands.c"
- }
-}
-
-
-static void
-multiple_data_source_command_commit_transaction (MultipleDataSourceCommand* self)
-{
-#line 358 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
-#line 5288 "Commands.c"
- {
- GeeIterator* _sources_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->hooked_collections;
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _sources_it = _tmp1_;
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 5301 "Commands.c"
- GeeIterator* _tmp2_;
- SourceCollection* sources = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- MediaSourceCollection* media_collection = NULL;
- SourceCollection* _tmp5_;
- MediaSourceCollection* _tmp6_;
- MediaSourceCollection* _tmp7_;
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _sources_it;
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 5316 "Commands.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _sources_it;
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- sources = (SourceCollection*) _tmp4_;
-#line 360 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = sources;
-#line 360 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION) ? ((MediaSourceCollection*) _tmp5_) : NULL);
-#line 360 "/home/jens/Source/shotwell/src/Commands.vala"
- media_collection = _tmp6_;
-#line 361 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = media_collection;
-#line 361 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp7_ != NULL) {
-#line 5334 "Commands.c"
- MediaSourceCollection* _tmp8_;
- TransactionController* _tmp9_;
- TransactionController* _tmp10_;
-#line 362 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = media_collection;
-#line 362 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = media_source_collection_get_transaction_controller (_tmp8_);
-#line 362 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
-#line 362 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp10_);
-#line 5346 "Commands.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (media_collection);
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (sources);
-#line 5352 "Commands.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_sources_it);
-#line 5356 "Commands.c"
- }
-}
-
-
-static void
-multiple_data_source_command_execute_all (MultipleDataSourceCommand* self,
- gboolean exec,
- gboolean can_cancel,
- GeeArrayList* todo,
- GeeArrayList* completed)
-{
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- gint count = 0;
- gint total = 0;
- gint _tmp2_;
- gint _tmp3_;
- gint two_percent = 0;
- gint _tmp4_;
- gint _tmp5_;
- const gchar* _tmp6_ = NULL;
- gchar* text = NULL;
- gchar* _tmp9_;
- GCancellable* cancellable = NULL;
- ProgressDialog* progress = NULL;
- gint _tmp10_;
- ProgressDialog* _tmp42_;
- AppWindow* _tmp44_;
- AppWindow* _tmp45_;
-#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
-#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_ARRAY_LIST (todo));
-#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail ((completed == NULL) || GEE_IS_ARRAY_LIST (completed));
-#line 368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = app_window_get_instance ();
-#line 368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 368 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 368 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp1_);
-#line 370 "/home/jens/Source/shotwell/src/Commands.vala"
- count = 0;
-#line 371 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (todo, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 371 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 371 "/home/jens/Source/shotwell/src/Commands.vala"
- total = _tmp3_;
-#line 372 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = total;
-#line 372 "/home/jens/Source/shotwell/src/Commands.vala"
- two_percent = (gint) (((gdouble) _tmp4_) / 50.0);
-#line 373 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = two_percent;
-#line 373 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_ <= 0) {
-#line 374 "/home/jens/Source/shotwell/src/Commands.vala"
- two_percent = 1;
-#line 5418 "Commands.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- if (exec) {
-#line 5422 "Commands.c"
- const gchar* _tmp7_;
-#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->progress_text;
-#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp7_;
-#line 5428 "Commands.c"
- } else {
- const gchar* _tmp8_;
-#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->undo_progress_text;
-#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp8_;
-#line 5435 "Commands.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = g_strdup (_tmp6_);
-#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- text = _tmp9_;
-#line 378 "/home/jens/Source/shotwell/src/Commands.vala"
- cancellable = NULL;
-#line 379 "/home/jens/Source/shotwell/src/Commands.vala"
- progress = NULL;
-#line 380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = total;
-#line 380 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp10_ >= MULTIPLE_DATA_SOURCE_COMMAND_MIN_OPS_FOR_PROGRESS_WINDOW) {
-#line 5449 "Commands.c"
- GCancellable* _tmp11_ = NULL;
- GCancellable* _tmp13_;
- AppWindow* _tmp14_;
- AppWindow* _tmp15_;
- const gchar* _tmp16_;
- GCancellable* _tmp17_;
- ProgressDialog* _tmp18_;
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- if (can_cancel) {
-#line 5459 "Commands.c"
- GCancellable* _tmp12_;
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = g_cancellable_new ();
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp12_;
-#line 5467 "Commands.c"
- } else {
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = NULL;
-#line 5473 "Commands.c"
- }
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _g_object_ref0 (_tmp11_);
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (cancellable);
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- cancellable = _tmp13_;
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = app_window_get_instance ();
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = text;
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = cancellable;
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_window_get_type (), GtkWindow), _tmp16_, _tmp17_);
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- g_object_ref_sink (_tmp18_);
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (progress);
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- progress = _tmp18_;
-#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp15_);
-#line 380 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 5501 "Commands.c"
- }
- {
- GeeArrayList* _source_list = NULL;
- GeeArrayList* _tmp19_;
- gint _source_size = 0;
- GeeArrayList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _source_index = 0;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _g_object_ref0 (todo);
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_list = _tmp19_;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _source_list;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_size = _tmp22_;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = -1;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 5527 "Commands.c"
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- DataSource* source = NULL;
- GeeArrayList* _tmp26_;
- gint _tmp27_;
- gpointer _tmp28_;
- ProgressDialog* _tmp32_;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _source_index;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = _tmp23_ + 1;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _source_index;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _source_size;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp24_ < _tmp25_)) {
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 5548 "Commands.c"
- }
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _source_list;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _source_index;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp27_);
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp28_;
-#line 386 "/home/jens/Source/shotwell/src/Commands.vala"
- if (exec) {
-#line 5560 "Commands.c"
- DataSource* _tmp29_;
-#line 387 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = source;
-#line 387 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_execute_on_source (self, _tmp29_);
-#line 5566 "Commands.c"
- } else {
- DataSource* _tmp30_;
-#line 389 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = source;
-#line 389 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_undo_on_source (self, _tmp30_);
-#line 5573 "Commands.c"
- }
-#line 391 "/home/jens/Source/shotwell/src/Commands.vala"
- if (completed != NULL) {
-#line 5577 "Commands.c"
- DataSource* _tmp31_;
-#line 392 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = source;
-#line 392 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (completed, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp31_);
-#line 5583 "Commands.c"
- }
-#line 394 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = progress;
-#line 394 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp32_ != NULL) {
-#line 5589 "Commands.c"
- gint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- gboolean _tmp39_ = FALSE;
- GCancellable* _tmp40_;
-#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = count;
-#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- count = _tmp33_ + 1;
-#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = count;
-#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = two_percent;
-#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- if ((_tmp34_ % _tmp35_) == 0) {
-#line 5605 "Commands.c"
- ProgressDialog* _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
-#line 396 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = progress;
-#line 396 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = count;
-#line 396 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = total;
-#line 396 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_set_fraction (_tmp36_, _tmp37_, _tmp38_);
-#line 397 "/home/jens/Source/shotwell/src/Commands.vala"
- spin_event_loop ();
-#line 5619 "Commands.c"
- }
-#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = cancellable;
-#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp40_ != NULL) {
-#line 5625 "Commands.c"
- GCancellable* _tmp41_;
-#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = cancellable;
-#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = g_cancellable_is_cancelled (_tmp41_);
-#line 5631 "Commands.c"
- } else {
-#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = FALSE;
-#line 5635 "Commands.c"
- }
-#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp39_) {
-#line 401 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 401 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 5643 "Commands.c"
- }
- }
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 5648 "Commands.c"
- }
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_list);
-#line 5652 "Commands.c"
- }
-#line 405 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = progress;
-#line 405 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp42_ != NULL) {
-#line 5658 "Commands.c"
- ProgressDialog* _tmp43_;
-#line 406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = progress;
-#line 406 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_close (_tmp43_);
-#line 5664 "Commands.c"
- }
-#line 408 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = app_window_get_instance ();
-#line 408 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = _tmp44_;
-#line 408 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PAGE_WINDOW, PageWindow));
-#line 408 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp45_);
-#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (progress);
-#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (cancellable);
-#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (text);
-#line 5680 "Commands.c"
-}
-
-
-static void
-multiple_data_source_command_class_init (MultipleDataSourceCommandClass * klass)
-{
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_parent_class = g_type_class_peek_parent (klass);
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (MultipleDataSourceCommandPrivate));
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) multiple_data_source_command_real_execute;
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) multiple_data_source_command_real_execute_on_source;
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) multiple_data_source_command_real_undo;
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) multiple_data_source_command_real_undo_on_source;
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = multiple_data_source_command_finalize;
-#line 5701 "Commands.c"
-}
-
-
-static void
-multiple_data_source_command_instance_init (MultipleDataSourceCommand * self)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeHashSet* _tmp2_;
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = MULTIPLE_DATA_SOURCE_COMMAND_GET_PRIVATE (self);
-#line 278 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 278 "/home/jens/Source/shotwell/src/Commands.vala"
- self->source_list = _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 282 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->acted_upon = _tmp1_;
-#line 283 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_hash_set_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 283 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->hooked_collections = _tmp2_;
-#line 5725 "Commands.c"
-}
-
-
-static void
-multiple_data_source_command_finalize (GObject * obj)
-{
- MultipleDataSourceCommand * self;
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand);
-#line 5735 "Commands.c"
- {
- GeeIterator* _current_collection_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->hooked_collections;
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _current_collection_it = _tmp1_;
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 5748 "Commands.c"
- GeeIterator* _tmp2_;
- SourceCollection* current_collection = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SourceCollection* _tmp5_;
- guint _tmp6_;
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _current_collection_it;
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 5761 "Commands.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _current_collection_it;
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- current_collection = (SourceCollection*) _tmp4_;
-#line 309 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = current_collection;
-#line 309 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE);
-#line 309 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed, self);
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (current_collection);
-#line 5777 "Commands.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_current_collection_it);
-#line 5781 "Commands.c"
- }
-#line 278 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->source_list);
-#line 280 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->progress_text);
-#line 281 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->undo_progress_text);
-#line 282 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->acted_upon);
-#line 283 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->hooked_collections);
-#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (multiple_data_source_command_parent_class)->finalize (obj);
-#line 5795 "Commands.c"
-}
-
-
-GType
-multiple_data_source_command_get_type (void)
-{
- static volatile gsize multiple_data_source_command_type_id__volatile = 0;
- if (g_once_init_enter (&multiple_data_source_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MultipleDataSourceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_data_source_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultipleDataSourceCommand), 0, (GInstanceInitFunc) multiple_data_source_command_instance_init, NULL };
- GType multiple_data_source_command_type_id;
- multiple_data_source_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "MultipleDataSourceCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&multiple_data_source_command_type_id__volatile, multiple_data_source_command_type_id);
- }
- return multiple_data_source_command_type_id__volatile;
-}
-
-
-static void
-_multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
- GeeCollection* destroyed,
- gpointer self)
-{
-#line 435 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_at_once_command_on_sources_destroyed ((MultipleDataSourceAtOnceCommand*) self, destroyed);
-#line 5820 "Commands.c"
-}
-
-
-MultipleDataSourceAtOnceCommand*
-multiple_data_source_at_once_command_construct (GType object_type,
- GeeCollection* sources,
- const gchar* name,
- const gchar* explanation)
-{
- MultipleDataSourceAtOnceCommand * self = NULL;
- GeeHashSet* _tmp0_;
-#line 417 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
-#line 417 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 417 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 419 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MultipleDataSourceAtOnceCommand*) page_command_construct (object_type, name, explanation);
-#line 421 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->sources;
-#line 421 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), sources);
-#line 5844 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeHashSet* _tmp1_;
- GeeIterator* _tmp2_;
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->sources;
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp2_;
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 5857 "Commands.c"
- GeeIterator* _tmp3_;
- DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceCollection* membership = NULL;
- DataSource* _tmp6_;
- DataCollection* _tmp7_;
- SourceCollection* _tmp8_;
- SourceCollection* _tmp9_;
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _source_it;
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 5873 "Commands.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
-#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
-#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_OBJECT, DataObject));
-#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_SOURCE_COLLECTION) ? ((SourceCollection*) _tmp7_) : NULL;
-#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_ == NULL) {
-#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (_tmp7_);
-#line 5891 "Commands.c"
- }
-#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- membership = _tmp8_;
-#line 425 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = membership;
-#line 425 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp9_ != NULL) {
-#line 5899 "Commands.c"
- GeeHashSet* _tmp10_;
- SourceCollection* _tmp11_;
-#line 426 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->hooked_collections;
-#line 426 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = membership;
-#line 426 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp11_);
-#line 5908 "Commands.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (membership);
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 5914 "Commands.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 5918 "Commands.c"
- }
- {
- GeeIterator* _source_collection_it = NULL;
- GeeHashSet* _tmp12_;
- GeeIterator* _tmp13_;
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->hooked_collections;
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_collection_it = _tmp13_;
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 5932 "Commands.c"
- GeeIterator* _tmp14_;
- SourceCollection* source_collection = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- SourceCollection* _tmp17_;
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _source_collection_it;
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 5944 "Commands.c"
- }
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _source_collection_it;
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection = (SourceCollection*) _tmp16_;
-#line 430 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = source_collection;
-#line 430 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp17_, "items-destroyed", (GCallback) _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed, self, 0);
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (source_collection);
-#line 5958 "Commands.c"
- }
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_collection_it);
-#line 5962 "Commands.c"
- }
-#line 417 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 5966 "Commands.c"
-}
-
-
-static void
-multiple_data_source_at_once_command_real_execute (Command* base)
-{
- MultipleDataSourceAtOnceCommand * self;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- MediaCollectionRegistry* _tmp2_;
- MediaCollectionRegistry* _tmp3_;
- GeeHashSet* _tmp4_;
- MediaCollectionRegistry* _tmp5_;
- MediaCollectionRegistry* _tmp6_;
- GError * _inner_error_ = NULL;
-#line 438 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand);
-#line 439 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = app_window_get_instance ();
-#line 439 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 439 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 439 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp1_);
-#line 441 "/home/jens/Source/shotwell/src/Commands.vala"
- database_table_begin_transaction ();
-#line 442 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = media_collection_registry_get_instance ();
-#line 442 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 442 "/home/jens/Source/shotwell/src/Commands.vala"
- media_collection_registry_freeze_all (_tmp3_);
-#line 442 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_collection_registry_unref0 (_tmp3_);
-#line 444 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->sources;
-#line 444 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_at_once_command_execute_on_all (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 446 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = media_collection_registry_get_instance ();
-#line 446 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 446 "/home/jens/Source/shotwell/src/Commands.vala"
- media_collection_registry_thaw_all (_tmp6_);
-#line 446 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_collection_registry_unref0 (_tmp6_);
-#line 6014 "Commands.c"
- {
-#line 448 "/home/jens/Source/shotwell/src/Commands.vala"
- database_table_commit_transaction (&_inner_error_);
-#line 448 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 448 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6022 "Commands.c"
- goto __catch464_database_error;
- }
- {
- AppWindow* _tmp7_;
- AppWindow* _tmp8_;
-#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = app_window_get_instance ();
-#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow));
-#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp8_);
-#line 6036 "Commands.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/Commands.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 448 "/home/jens/Source/shotwell/src/Commands.vala"
- g_clear_error (&_inner_error_);
-#line 448 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 6044 "Commands.c"
- }
- }
- goto __finally464;
- __catch464_database_error:
- {
- GError* err = NULL;
- GError* _tmp9_;
-#line 447 "/home/jens/Source/shotwell/src/Commands.vala"
- err = _inner_error_;
-#line 447 "/home/jens/Source/shotwell/src/Commands.vala"
- _inner_error_ = NULL;
-#line 450 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = err;
-#line 450 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_database_error (_tmp9_);
-#line 447 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_error_free0 (err);
-#line 6062 "Commands.c"
- }
- __finally464:
- {
- AppWindow* _tmp10_;
- AppWindow* _tmp11_;
-#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = app_window_get_instance ();
-#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow));
-#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 6076 "Commands.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 447 "/home/jens/Source/shotwell/src/Commands.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 447 "/home/jens/Source/shotwell/src/Commands.vala"
- g_clear_error (&_inner_error_);
-#line 447 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 6086 "Commands.c"
- }
-}
-
-
-static void
-multiple_data_source_at_once_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* sources)
-{
-#line 456 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Type `%s' does not implement abstract method `multiple_data_source_at_once_command_execute_on_all'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 456 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 6099 "Commands.c"
-}
-
-
-void
-multiple_data_source_at_once_command_execute_on_all (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* sources)
-{
-#line 456 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self));
-#line 456 "/home/jens/Source/shotwell/src/Commands.vala"
- MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS (self)->execute_on_all (self, sources);
-#line 6111 "Commands.c"
-}
-
-
-static void
-multiple_data_source_at_once_command_real_undo (Command* base)
-{
- MultipleDataSourceAtOnceCommand * self;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- MediaCollectionRegistry* _tmp2_;
- MediaCollectionRegistry* _tmp3_;
- GeeHashSet* _tmp4_;
- MediaCollectionRegistry* _tmp5_;
- MediaCollectionRegistry* _tmp6_;
- GError * _inner_error_ = NULL;
-#line 458 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand);
-#line 459 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = app_window_get_instance ();
-#line 459 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 459 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 459 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp1_);
-#line 461 "/home/jens/Source/shotwell/src/Commands.vala"
- database_table_begin_transaction ();
-#line 462 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = media_collection_registry_get_instance ();
-#line 462 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 462 "/home/jens/Source/shotwell/src/Commands.vala"
- media_collection_registry_freeze_all (_tmp3_);
-#line 462 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_collection_registry_unref0 (_tmp3_);
-#line 464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->sources;
-#line 464 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_at_once_command_undo_on_all (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 466 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = media_collection_registry_get_instance ();
-#line 466 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 466 "/home/jens/Source/shotwell/src/Commands.vala"
- media_collection_registry_thaw_all (_tmp6_);
-#line 466 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_collection_registry_unref0 (_tmp6_);
-#line 6159 "Commands.c"
- {
-#line 468 "/home/jens/Source/shotwell/src/Commands.vala"
- database_table_commit_transaction (&_inner_error_);
-#line 468 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 468 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6167 "Commands.c"
- goto __catch465_database_error;
- }
- {
- AppWindow* _tmp7_;
- AppWindow* _tmp8_;
-#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = app_window_get_instance ();
-#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow));
-#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp8_);
-#line 6181 "Commands.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/Commands.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 468 "/home/jens/Source/shotwell/src/Commands.vala"
- g_clear_error (&_inner_error_);
-#line 468 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 6189 "Commands.c"
- }
- }
- goto __finally465;
- __catch465_database_error:
- {
- GError* err = NULL;
- GError* _tmp9_;
-#line 467 "/home/jens/Source/shotwell/src/Commands.vala"
- err = _inner_error_;
-#line 467 "/home/jens/Source/shotwell/src/Commands.vala"
- _inner_error_ = NULL;
-#line 470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = err;
-#line 470 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_database_error (_tmp9_);
-#line 467 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_error_free0 (err);
-#line 6207 "Commands.c"
- }
- __finally465:
- {
- AppWindow* _tmp10_;
- AppWindow* _tmp11_;
-#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = app_window_get_instance ();
-#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow));
-#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 6221 "Commands.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 467 "/home/jens/Source/shotwell/src/Commands.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 467 "/home/jens/Source/shotwell/src/Commands.vala"
- g_clear_error (&_inner_error_);
-#line 467 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 6231 "Commands.c"
- }
-}
-
-
-static void
-multiple_data_source_at_once_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* sources)
-{
-#line 476 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Type `%s' does not implement abstract method `multiple_data_source_at_once_command_undo_on_all'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 476 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 6244 "Commands.c"
-}
-
-
-void
-multiple_data_source_at_once_command_undo_on_all (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* sources)
-{
-#line 476 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self));
-#line 476 "/home/jens/Source/shotwell/src/Commands.vala"
- MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS (self)->undo_on_all (self, sources);
-#line 6256 "Commands.c"
-}
-
-
-static void
-multiple_data_source_at_once_command_on_sources_destroyed (MultipleDataSourceAtOnceCommand* self,
- GeeCollection* destroyed)
-{
-#line 478 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self));
-#line 478 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (destroyed));
-#line 6268 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (destroyed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp0_;
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 6278 "Commands.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- GeeHashSet* _tmp4_;
- DataSource* _tmp5_;
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _source_it;
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 6291 "Commands.c"
- }
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp3_;
-#line 480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->sources;
-#line 480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = source;
-#line 480 "/home/jens/Source/shotwell/src/Commands.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_)) {
-#line 6305 "Commands.c"
- CommandManager* _tmp6_;
- CommandManager* _tmp7_;
-#line 481 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 481 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
-#line 481 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp7_);
-#line 481 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp7_);
-#line 483 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 483 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 6320 "Commands.c"
- }
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 6324 "Commands.c"
- }
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 6328 "Commands.c"
- }
-}
-
-
-static void
-multiple_data_source_at_once_command_class_init (MultipleDataSourceAtOnceCommandClass * klass)
-{
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_at_once_command_parent_class = g_type_class_peek_parent (klass);
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (MultipleDataSourceAtOnceCommandPrivate));
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) multiple_data_source_at_once_command_real_execute;
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceAtOnceCommandClass *) klass)->execute_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) multiple_data_source_at_once_command_real_execute_on_all;
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) multiple_data_source_at_once_command_real_undo;
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) multiple_data_source_at_once_command_real_undo_on_all;
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = multiple_data_source_at_once_command_finalize;
-#line 6350 "Commands.c"
-}
-
-
-static void
-multiple_data_source_at_once_command_instance_init (MultipleDataSourceAtOnceCommand * self)
-{
- GeeHashSet* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_PRIVATE (self);
-#line 414 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 414 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->sources = _tmp0_;
-#line 415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_hash_set_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 415 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->hooked_collections = _tmp1_;
-#line 6369 "Commands.c"
-}
-
-
-static void
-multiple_data_source_at_once_command_finalize (GObject * obj)
-{
- MultipleDataSourceAtOnceCommand * self;
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand);
-#line 6379 "Commands.c"
- {
- GeeIterator* _source_collection_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->hooked_collections;
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_collection_it = _tmp1_;
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 6392 "Commands.c"
- GeeIterator* _tmp2_;
- SourceCollection* source_collection = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SourceCollection* _tmp5_;
- guint _tmp6_;
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_collection_it;
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 6405 "Commands.c"
- }
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _source_collection_it;
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection = (SourceCollection*) _tmp4_;
-#line 435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = source_collection;
-#line 435 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE);
-#line 435 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed, self);
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (source_collection);
-#line 6421 "Commands.c"
- }
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_collection_it);
-#line 6425 "Commands.c"
- }
-#line 414 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->sources);
-#line 415 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->hooked_collections);
-#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (multiple_data_source_at_once_command_parent_class)->finalize (obj);
-#line 6433 "Commands.c"
-}
-
-
-GType
-multiple_data_source_at_once_command_get_type (void)
-{
- static volatile gsize multiple_data_source_at_once_command_type_id__volatile = 0;
- if (g_once_init_enter (&multiple_data_source_at_once_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MultipleDataSourceAtOnceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_data_source_at_once_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultipleDataSourceAtOnceCommand), 0, (GInstanceInitFunc) multiple_data_source_at_once_command_instance_init, NULL };
- GType multiple_data_source_at_once_command_type_id;
- multiple_data_source_at_once_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "MultipleDataSourceAtOnceCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&multiple_data_source_at_once_command_type_id__volatile, multiple_data_source_at_once_command_type_id);
- }
- return multiple_data_source_at_once_command_type_id__volatile;
-}
-
-
-static void
-_multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
- gpointer self)
-{
-#line 508 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_photo_transformation_command_on_state_broken ((MultiplePhotoTransformationCommand*) self);
-#line 6457 "Commands.c"
-}
-
-
-MultiplePhotoTransformationCommand*
-multiple_photo_transformation_command_construct (GType object_type,
- GeeIterable* iter,
- const gchar* progress_text,
- const gchar* undo_progress_text,
- const gchar* name,
- const gchar* explanation)
-{
- MultiplePhotoTransformationCommand * self = NULL;
-#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (progress_text != NULL, NULL);
-#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (undo_progress_text != NULL, NULL);
-#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 495 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MultiplePhotoTransformationCommand*) multiple_data_source_command_construct (object_type, iter, progress_text, undo_progress_text, name, explanation);
-#line 6482 "Commands.c"
- {
- GeeArrayList* _source_list = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _source_size = 0;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _source_index = 0;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_list = _tmp1_;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_list;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_size = _tmp4_;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = -1;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 6510 "Commands.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- DataSource* source = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- Photo* photo = NULL;
- DataSource* _tmp11_;
- Photo* _tmp12_;
- PhotoTransformationState* state = NULL;
- Photo* _tmp13_;
- PhotoTransformationState* _tmp14_;
- PhotoTransformationState* _tmp15_;
- GeeHashMap* _tmp16_;
- Photo* _tmp17_;
- PhotoTransformationState* _tmp18_;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _source_index;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = _tmp5_ + 1;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _source_index;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _source_size;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 6540 "Commands.c"
- }
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _source_list;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _source_index;
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp10_;
-#line 498 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = source;
-#line 498 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO, Photo));
-#line 498 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp12_;
-#line 499 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = photo;
-#line 499 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = photo_save_transformation_state (_tmp13_);
-#line 499 "/home/jens/Source/shotwell/src/Commands.vala"
- state = _tmp14_;
-#line 500 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = state;
-#line 500 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp15_, "broken", (GCallback) _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
-#line 502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = self->priv->map;
-#line 502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = photo;
-#line 502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = state;
-#line 502 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp17_, _tmp18_);
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (state);
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 6580 "Commands.c"
- }
-#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_list);
-#line 6584 "Commands.c"
- }
-#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 6588 "Commands.c"
-}
-
-
-static void
-multiple_photo_transformation_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- MultiplePhotoTransformationCommand * self;
- Photo* photo = NULL;
- Photo* _tmp0_;
- PhotoTransformationState* state = NULL;
- GeeHashMap* _tmp1_;
- gpointer _tmp2_;
-#line 511 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand);
-#line 511 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 512 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo));
-#line 512 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp0_;
-#line 514 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->map;
-#line 514 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 514 "/home/jens/Source/shotwell/src/Commands.vala"
- state = (PhotoTransformationState*) _tmp2_;
-#line 515 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (state != NULL, "state != null");
-#line 517 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_load_transformation_state (photo, state);
-#line 511 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (state);
-#line 511 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 6624 "Commands.c"
-}
-
-
-static void
-multiple_photo_transformation_command_on_state_broken (MultiplePhotoTransformationCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 520 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND (self));
-#line 521 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 521 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 521 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 521 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 6643 "Commands.c"
-}
-
-
-static void
-multiple_photo_transformation_command_class_init (MultiplePhotoTransformationCommandClass * klass)
-{
-#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_photo_transformation_command_parent_class = g_type_class_peek_parent (klass);
-#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (MultiplePhotoTransformationCommandPrivate));
-#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) multiple_photo_transformation_command_real_undo_on_source;
-#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = multiple_photo_transformation_command_finalize;
-#line 6658 "Commands.c"
-}
-
-
-static void
-multiple_photo_transformation_command_instance_init (MultiplePhotoTransformationCommand * self)
-{
- GeeHashMap* _tmp0_;
-#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self);
-#line 490 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_PHOTO_TRANSFORMATION_STATE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 490 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->map = _tmp0_;
-#line 6672 "Commands.c"
-}
-
-
-static void
-multiple_photo_transformation_command_finalize (GObject * obj)
-{
- MultiplePhotoTransformationCommand * self;
-#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand);
-#line 6682 "Commands.c"
- {
- GeeIterator* _state_it = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->map;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _state_it = _tmp5_;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 6709 "Commands.c"
- GeeIterator* _tmp6_;
- PhotoTransformationState* state = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- PhotoTransformationState* _tmp9_;
- guint _tmp10_;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _state_it;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 6722 "Commands.c"
- }
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _state_it;
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- state = (PhotoTransformationState*) _tmp8_;
-#line 508 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = state;
-#line 508 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp10_, NULL, FALSE);
-#line 508 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self);
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (state);
-#line 6738 "Commands.c"
- }
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_state_it);
-#line 6742 "Commands.c"
- }
-#line 490 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->map);
-#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (multiple_photo_transformation_command_parent_class)->finalize (obj);
-#line 6748 "Commands.c"
-}
-
-
-GType
-multiple_photo_transformation_command_get_type (void)
-{
- static volatile gsize multiple_photo_transformation_command_type_id__volatile = 0;
- if (g_once_init_enter (&multiple_photo_transformation_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MultiplePhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultiplePhotoTransformationCommand), 0, (GInstanceInitFunc) multiple_photo_transformation_command_instance_init, NULL };
- GType multiple_photo_transformation_command_type_id;
- multiple_photo_transformation_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "MultiplePhotoTransformationCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&multiple_photo_transformation_command_type_id__volatile, multiple_photo_transformation_command_type_id);
- }
- return multiple_photo_transformation_command_type_id__volatile;
-}
-
-
-RotateSingleCommand*
-rotate_single_command_construct (GType object_type,
- Photo* photo,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation)
-{
- RotateSingleCommand * self = NULL;
-#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 529 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RotateSingleCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation);
-#line 531 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->rotation = rotation;
-#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 6786 "Commands.c"
-}
-
-
-RotateSingleCommand*
-rotate_single_command_new (Photo* photo,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation)
-{
-#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
- return rotate_single_command_construct (TYPE_ROTATE_SINGLE_COMMAND, photo, rotation, name, explanation);
-#line 6798 "Commands.c"
-}
-
-
-static void
-rotate_single_command_real_execute (Command* base)
-{
- RotateSingleCommand * self;
- DataSource* _tmp0_;
- Rotation _tmp1_;
-#line 534 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand);
-#line 535 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 535 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->rotation;
-#line 535 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 6816 "Commands.c"
-}
-
-
-static void
-rotate_single_command_real_undo (Command* base)
-{
- RotateSingleCommand * self;
- DataSource* _tmp0_;
- Rotation _tmp1_;
-#line 538 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand);
-#line 539 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 539 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->rotation;
-#line 539 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), rotation_opposite (_tmp1_));
-#line 6834 "Commands.c"
-}
-
-
-static void
-rotate_single_command_class_init (RotateSingleCommandClass * klass)
-{
-#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
- rotate_single_command_parent_class = g_type_class_peek_parent (klass);
-#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (RotateSingleCommandPrivate));
-#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) rotate_single_command_real_execute;
-#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) rotate_single_command_real_undo;
-#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = rotate_single_command_finalize;
-#line 6851 "Commands.c"
-}
-
-
-static void
-rotate_single_command_instance_init (RotateSingleCommand * self)
-{
-#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = ROTATE_SINGLE_COMMAND_GET_PRIVATE (self);
-#line 6860 "Commands.c"
-}
-
-
-static void
-rotate_single_command_finalize (GObject * obj)
-{
- RotateSingleCommand * self;
-#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand);
-#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (rotate_single_command_parent_class)->finalize (obj);
-#line 6872 "Commands.c"
-}
-
-
-GType
-rotate_single_command_get_type (void)
-{
- static volatile gsize rotate_single_command_type_id__volatile = 0;
- if (g_once_init_enter (&rotate_single_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RotateSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rotate_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RotateSingleCommand), 0, (GInstanceInitFunc) rotate_single_command_instance_init, NULL };
- GType rotate_single_command_type_id;
- rotate_single_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "RotateSingleCommand", &g_define_type_info, 0);
- g_once_init_leave (&rotate_single_command_type_id__volatile, rotate_single_command_type_id);
- }
- return rotate_single_command_type_id__volatile;
-}
-
-
-RotateMultipleCommand*
-rotate_multiple_command_construct (GType object_type,
- GeeIterable* iter,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation,
- const gchar* progress_text,
- const gchar* undo_progress_text)
-{
- RotateMultipleCommand * self = NULL;
-#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (progress_text != NULL, NULL);
-#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (undo_progress_text != NULL, NULL);
-#line 548 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RotateMultipleCommand*) multiple_data_source_command_construct (object_type, iter, progress_text, undo_progress_text, name, explanation);
-#line 550 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->rotation = rotation;
-#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 6916 "Commands.c"
-}
-
-
-RotateMultipleCommand*
-rotate_multiple_command_new (GeeIterable* iter,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation,
- const gchar* progress_text,
- const gchar* undo_progress_text)
-{
-#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
- return rotate_multiple_command_construct (TYPE_ROTATE_MULTIPLE_COMMAND, iter, rotation, name, explanation, progress_text, undo_progress_text);
-#line 6930 "Commands.c"
-}
-
-
-static void
-rotate_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- RotateMultipleCommand * self;
- Rotation _tmp0_;
-#line 553 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand);
-#line 553 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 554 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->rotation;
-#line 554 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), _tmp0_);
-#line 6948 "Commands.c"
-}
-
-
-static void
-rotate_multiple_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- RotateMultipleCommand * self;
- Rotation _tmp0_;
-#line 557 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand);
-#line 557 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 558 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->rotation;
-#line 558 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), rotation_opposite (_tmp0_));
-#line 6966 "Commands.c"
-}
-
-
-static void
-rotate_multiple_command_class_init (RotateMultipleCommandClass * klass)
-{
-#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
- rotate_multiple_command_parent_class = g_type_class_peek_parent (klass);
-#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (RotateMultipleCommandPrivate));
-#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) rotate_multiple_command_real_execute_on_source;
-#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) rotate_multiple_command_real_undo_on_source;
-#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = rotate_multiple_command_finalize;
-#line 6983 "Commands.c"
-}
-
-
-static void
-rotate_multiple_command_instance_init (RotateMultipleCommand * self)
-{
-#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = ROTATE_MULTIPLE_COMMAND_GET_PRIVATE (self);
-#line 6992 "Commands.c"
-}
-
-
-static void
-rotate_multiple_command_finalize (GObject * obj)
-{
- RotateMultipleCommand * self;
-#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand);
-#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (rotate_multiple_command_parent_class)->finalize (obj);
-#line 7004 "Commands.c"
-}
-
-
-GType
-rotate_multiple_command_get_type (void)
-{
- static volatile gsize rotate_multiple_command_type_id__volatile = 0;
- if (g_once_init_enter (&rotate_multiple_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RotateMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rotate_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RotateMultipleCommand), 0, (GInstanceInitFunc) rotate_multiple_command_instance_init, NULL };
- GType rotate_multiple_command_type_id;
- rotate_multiple_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "RotateMultipleCommand", &g_define_type_info, 0);
- g_once_init_leave (&rotate_multiple_command_type_id__volatile, rotate_multiple_command_type_id);
- }
- return rotate_multiple_command_type_id__volatile;
-}
-
-
-EditTitleCommand*
-edit_title_command_construct (GType object_type,
- MediaSource* source,
- const gchar* new_title)
-{
- EditTitleCommand * self = NULL;
- gchar* title = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_title != NULL, NULL);
-#line 567 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = g_strdup (g_dpgettext2 (NULL, "Button Label", RESOURCES_EDIT_TITLE_LABEL));
-#line 567 "/home/jens/Source/shotwell/src/Commands.vala"
- title = _tmp0_;
-#line 569 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditTitleCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource), title, "");
-#line 571 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = g_strdup (new_title);
-#line 571 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_title);
-#line 571 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_title = _tmp1_;
-#line 572 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = media_source_get_title (source);
-#line 572 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_title);
-#line 572 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_title = _tmp2_;
-#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (title);
-#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 7058 "Commands.c"
-}
-
-
-EditTitleCommand*
-edit_title_command_new (MediaSource* source,
- const gchar* new_title)
-{
-#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
- return edit_title_command_construct (TYPE_EDIT_TITLE_COMMAND, source, new_title);
-#line 7068 "Commands.c"
-}
-
-
-static void
-edit_title_command_real_execute (Command* base)
-{
- EditTitleCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
-#line 575 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_TITLE_COMMAND, EditTitleCommand);
-#line 576 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 576 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_title;
-#line 576 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 7086 "Commands.c"
-}
-
-
-static void
-edit_title_command_real_undo (Command* base)
-{
- EditTitleCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
-#line 579 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_TITLE_COMMAND, EditTitleCommand);
-#line 580 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 580 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_title;
-#line 580 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 7104 "Commands.c"
-}
-
-
-static void
-edit_title_command_class_init (EditTitleCommandClass * klass)
-{
-#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
- edit_title_command_parent_class = g_type_class_peek_parent (klass);
-#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (EditTitleCommandPrivate));
-#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) edit_title_command_real_execute;
-#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) edit_title_command_real_undo;
-#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = edit_title_command_finalize;
-#line 7121 "Commands.c"
-}
-
-
-static void
-edit_title_command_instance_init (EditTitleCommand * self)
-{
-#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = EDIT_TITLE_COMMAND_GET_PRIVATE (self);
-#line 7130 "Commands.c"
-}
-
-
-static void
-edit_title_command_finalize (GObject * obj)
-{
- EditTitleCommand * self;
-#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_TITLE_COMMAND, EditTitleCommand);
-#line 563 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_title);
-#line 564 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_title);
-#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (edit_title_command_parent_class)->finalize (obj);
-#line 7146 "Commands.c"
-}
-
-
-GType
-edit_title_command_get_type (void)
-{
- static volatile gsize edit_title_command_type_id__volatile = 0;
- if (g_once_init_enter (&edit_title_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditTitleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_title_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditTitleCommand), 0, (GInstanceInitFunc) edit_title_command_instance_init, NULL };
- GType edit_title_command_type_id;
- edit_title_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "EditTitleCommand", &g_define_type_info, 0);
- g_once_init_leave (&edit_title_command_type_id__volatile, edit_title_command_type_id);
- }
- return edit_title_command_type_id__volatile;
-}
-
-
-EditCommentCommand*
-edit_comment_command_construct (GType object_type,
- MediaSource* source,
- const gchar* new_comment)
-{
- EditCommentCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 588 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 588 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_comment != NULL, NULL);
-#line 589 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditCommentCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource), RESOURCES_EDIT_COMMENT_LABEL, "");
-#line 591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = g_strdup (new_comment);
-#line 591 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_comment);
-#line 591 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_comment = _tmp0_;
-#line 592 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = media_source_get_comment (source);
-#line 592 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_comment);
-#line 592 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_comment = _tmp1_;
-#line 588 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 7192 "Commands.c"
-}
-
-
-EditCommentCommand*
-edit_comment_command_new (MediaSource* source,
- const gchar* new_comment)
-{
-#line 588 "/home/jens/Source/shotwell/src/Commands.vala"
- return edit_comment_command_construct (TYPE_EDIT_COMMENT_COMMAND, source, new_comment);
-#line 7202 "Commands.c"
-}
-
-
-static void
-edit_comment_command_real_execute (Command* base)
-{
- EditCommentCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
-#line 595 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand);
-#line 596 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 596 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_comment;
-#line 596 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 7220 "Commands.c"
-}
-
-
-static void
-edit_comment_command_real_undo (Command* base)
-{
- EditCommentCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
-#line 599 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand);
-#line 600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_comment;
-#line 600 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 7238 "Commands.c"
-}
-
-
-static void
-edit_comment_command_class_init (EditCommentCommandClass * klass)
-{
-#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
- edit_comment_command_parent_class = g_type_class_peek_parent (klass);
-#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (EditCommentCommandPrivate));
-#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) edit_comment_command_real_execute;
-#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) edit_comment_command_real_undo;
-#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = edit_comment_command_finalize;
-#line 7255 "Commands.c"
-}
-
-
-static void
-edit_comment_command_instance_init (EditCommentCommand * self)
-{
-#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = EDIT_COMMENT_COMMAND_GET_PRIVATE (self);
-#line 7264 "Commands.c"
-}
-
-
-static void
-edit_comment_command_finalize (GObject * obj)
-{
- EditCommentCommand * self;
-#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand);
-#line 585 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_comment);
-#line 586 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_comment);
-#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (edit_comment_command_parent_class)->finalize (obj);
-#line 7280 "Commands.c"
-}
-
-
-GType
-edit_comment_command_get_type (void)
-{
- static volatile gsize edit_comment_command_type_id__volatile = 0;
- if (g_once_init_enter (&edit_comment_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditCommentCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_comment_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditCommentCommand), 0, (GInstanceInitFunc) edit_comment_command_instance_init, NULL };
- GType edit_comment_command_type_id;
- edit_comment_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "EditCommentCommand", &g_define_type_info, 0);
- g_once_init_leave (&edit_comment_command_type_id__volatile, edit_comment_command_type_id);
- }
- return edit_comment_command_type_id__volatile;
-}
-
-
-EditMultipleTitlesCommand*
-edit_multiple_titles_command_construct (GType object_type,
- GeeCollection* media_sources,
- const gchar* new_title)
-{
- EditMultipleTitlesCommand * self = NULL;
- gchar* title = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (media_sources), NULL);
-#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_title != NULL, NULL);
-#line 609 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = g_strdup (g_dpgettext2 (NULL, "Button Label", RESOURCES_EDIT_TITLE_LABEL));
-#line 609 "/home/jens/Source/shotwell/src/Commands.vala"
- title = _tmp0_;
-#line 611 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = title;
-#line 611 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditMultipleTitlesCommand*) multiple_data_source_at_once_command_construct (object_type, media_sources, _tmp1_, "");
-#line 613 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = g_strdup (new_title);
-#line 613 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->new_title);
-#line 613 "/home/jens/Source/shotwell/src/Commands.vala"
- self->new_title = _tmp2_;
-#line 7326 "Commands.c"
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp3_;
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_it = _tmp3_;
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 7336 "Commands.c"
- GeeIterator* _tmp4_;
- MediaSource* media = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- GeeHashMap* _tmp7_;
- MediaSource* _tmp8_;
- MediaSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _media_it;
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 7352 "Commands.c"
- }
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _media_it;
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- media = (MediaSource*) _tmp6_;
-#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->old_titles;
-#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = media;
-#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = media;
-#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = media_source_get_title (_tmp9_);
-#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, _tmp11_);
-#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp11_);
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (media);
-#line 7376 "Commands.c"
- }
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_media_it);
-#line 7380 "Commands.c"
- }
-#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (title);
-#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 7386 "Commands.c"
-}
-
-
-EditMultipleTitlesCommand*
-edit_multiple_titles_command_new (GeeCollection* media_sources,
- const gchar* new_title)
-{
-#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
- return edit_multiple_titles_command_construct (TYPE_EDIT_MULTIPLE_TITLES_COMMAND, media_sources, new_title);
-#line 7396 "Commands.c"
-}
-
-
-static void
-edit_multiple_titles_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources)
-{
- EditMultipleTitlesCommand * self;
-#line 618 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand);
-#line 618 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 7409 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp0_;
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 7419 "Commands.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* _tmp4_;
- const gchar* _tmp5_;
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _source_it;
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 7432 "Commands.c"
- }
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp3_;
-#line 620 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 620 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->new_title;
-#line 620 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp5_);
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 7448 "Commands.c"
- }
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 7452 "Commands.c"
- }
-}
-
-
-static void
-edit_multiple_titles_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources)
-{
- EditMultipleTitlesCommand * self;
-#line 623 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand);
-#line 623 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 7466 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp0_;
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 7476 "Commands.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* _tmp4_;
- GeeHashMap* _tmp5_;
- DataSource* _tmp6_;
- gpointer _tmp7_;
- gchar* _tmp8_;
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _source_it;
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 7492 "Commands.c"
- }
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp3_;
-#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->old_titles;
-#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
-#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = (gchar*) _tmp7_;
-#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp8_);
-#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp8_);
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 7516 "Commands.c"
- }
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 7520 "Commands.c"
- }
-}
-
-
-static void
-edit_multiple_titles_command_class_init (EditMultipleTitlesCommandClass * klass)
-{
-#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
- edit_multiple_titles_command_parent_class = g_type_class_peek_parent (klass);
-#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceAtOnceCommandClass *) klass)->execute_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_titles_command_real_execute_on_all;
-#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_titles_command_real_undo_on_all;
-#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = edit_multiple_titles_command_finalize;
-#line 7536 "Commands.c"
-}
-
-
-static void
-edit_multiple_titles_command_instance_init (EditMultipleTitlesCommand * self)
-{
- GeeHashMap* _tmp0_;
-#line 606 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 606 "/home/jens/Source/shotwell/src/Commands.vala"
- self->old_titles = _tmp0_;
-#line 7548 "Commands.c"
-}
-
-
-static void
-edit_multiple_titles_command_finalize (GObject * obj)
-{
- EditMultipleTitlesCommand * self;
-#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand);
-#line 605 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->new_title);
-#line 606 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->old_titles);
-#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (edit_multiple_titles_command_parent_class)->finalize (obj);
-#line 7564 "Commands.c"
-}
-
-
-GType
-edit_multiple_titles_command_get_type (void)
-{
- static volatile gsize edit_multiple_titles_command_type_id__volatile = 0;
- if (g_once_init_enter (&edit_multiple_titles_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditMultipleTitlesCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_multiple_titles_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditMultipleTitlesCommand), 0, (GInstanceInitFunc) edit_multiple_titles_command_instance_init, NULL };
- GType edit_multiple_titles_command_type_id;
- edit_multiple_titles_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, "EditMultipleTitlesCommand", &g_define_type_info, 0);
- g_once_init_leave (&edit_multiple_titles_command_type_id__volatile, edit_multiple_titles_command_type_id);
- }
- return edit_multiple_titles_command_type_id__volatile;
-}
-
-
-EditMultipleCommentsCommand*
-edit_multiple_comments_command_construct (GType object_type,
- GeeCollection* media_sources,
- const gchar* new_comment)
-{
- EditMultipleCommentsCommand * self = NULL;
- gchar* _tmp0_;
-#line 633 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (media_sources), NULL);
-#line 633 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_comment != NULL, NULL);
-#line 634 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditMultipleCommentsCommand*) multiple_data_source_at_once_command_construct (object_type, media_sources, RESOURCES_EDIT_COMMENT_LABEL, "");
-#line 636 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = g_strdup (new_comment);
-#line 636 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->new_comment);
-#line 636 "/home/jens/Source/shotwell/src/Commands.vala"
- self->new_comment = _tmp0_;
-#line 7601 "Commands.c"
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp1_;
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_it = _tmp1_;
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 7611 "Commands.c"
- GeeIterator* _tmp2_;
- MediaSource* media = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeHashMap* _tmp5_;
- MediaSource* _tmp6_;
- MediaSource* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _media_it;
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 7627 "Commands.c"
- }
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _media_it;
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- media = (MediaSource*) _tmp4_;
-#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->old_comments;
-#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = media;
-#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = media;
-#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = media_source_get_comment (_tmp7_);
-#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
-#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_, _tmp9_);
-#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp9_);
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (media);
-#line 7651 "Commands.c"
- }
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_media_it);
-#line 7655 "Commands.c"
- }
-#line 633 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 7659 "Commands.c"
-}
-
-
-EditMultipleCommentsCommand*
-edit_multiple_comments_command_new (GeeCollection* media_sources,
- const gchar* new_comment)
-{
-#line 633 "/home/jens/Source/shotwell/src/Commands.vala"
- return edit_multiple_comments_command_construct (TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, media_sources, new_comment);
-#line 7669 "Commands.c"
-}
-
-
-static void
-edit_multiple_comments_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources)
-{
- EditMultipleCommentsCommand * self;
-#line 641 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand);
-#line 641 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 7682 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp0_;
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 7692 "Commands.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* _tmp4_;
- const gchar* _tmp5_;
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _source_it;
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 7705 "Commands.c"
- }
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp3_;
-#line 643 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 643 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->new_comment;
-#line 643 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp5_);
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 7721 "Commands.c"
- }
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 7725 "Commands.c"
- }
-}
-
-
-static void
-edit_multiple_comments_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources)
-{
- EditMultipleCommentsCommand * self;
-#line 646 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand);
-#line 646 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 7739 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp0_;
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 7749 "Commands.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* _tmp4_;
- GeeHashMap* _tmp5_;
- DataSource* _tmp6_;
- gpointer _tmp7_;
- gchar* _tmp8_;
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _source_it;
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 7765 "Commands.c"
- }
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp3_;
-#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->old_comments;
-#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
-#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = (gchar*) _tmp7_;
-#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp8_);
-#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp8_);
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 7789 "Commands.c"
- }
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 7793 "Commands.c"
- }
-}
-
-
-static void
-edit_multiple_comments_command_class_init (EditMultipleCommentsCommandClass * klass)
-{
-#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
- edit_multiple_comments_command_parent_class = g_type_class_peek_parent (klass);
-#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceAtOnceCommandClass *) klass)->execute_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_comments_command_real_execute_on_all;
-#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_comments_command_real_undo_on_all;
-#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = edit_multiple_comments_command_finalize;
-#line 7809 "Commands.c"
-}
-
-
-static void
-edit_multiple_comments_command_instance_init (EditMultipleCommentsCommand * self)
-{
- GeeHashMap* _tmp0_;
-#line 631 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 631 "/home/jens/Source/shotwell/src/Commands.vala"
- self->old_comments = _tmp0_;
-#line 7821 "Commands.c"
-}
-
-
-static void
-edit_multiple_comments_command_finalize (GObject * obj)
-{
- EditMultipleCommentsCommand * self;
-#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand);
-#line 630 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->new_comment);
-#line 631 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->old_comments);
-#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (edit_multiple_comments_command_parent_class)->finalize (obj);
-#line 7837 "Commands.c"
-}
-
-
-GType
-edit_multiple_comments_command_get_type (void)
-{
- static volatile gsize edit_multiple_comments_command_type_id__volatile = 0;
- if (g_once_init_enter (&edit_multiple_comments_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditMultipleCommentsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_multiple_comments_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditMultipleCommentsCommand), 0, (GInstanceInitFunc) edit_multiple_comments_command_instance_init, NULL };
- GType edit_multiple_comments_command_type_id;
- edit_multiple_comments_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, "EditMultipleCommentsCommand", &g_define_type_info, 0);
- g_once_init_leave (&edit_multiple_comments_command_type_id__volatile, edit_multiple_comments_command_type_id);
- }
- return edit_multiple_comments_command_type_id__volatile;
-}
-
-
-RenameEventCommand*
-rename_event_command_construct (GType object_type,
- Event* event,
- const gchar* new_name)
-{
- RenameEventCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 656 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 656 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_name != NULL, NULL);
-#line 657 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RenameEventCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_PROXYABLE, Proxyable), RESOURCES_RENAME_EVENT_LABEL, "");
-#line 659 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = g_strdup (new_name);
-#line 659 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_name);
-#line 659 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_name = _tmp0_;
-#line 660 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = event_get_raw_name (event);
-#line 660 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_name);
-#line 660 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_name = _tmp1_;
-#line 656 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 7883 "Commands.c"
-}
-
-
-RenameEventCommand*
-rename_event_command_new (Event* event,
- const gchar* new_name)
-{
-#line 656 "/home/jens/Source/shotwell/src/Commands.vala"
- return rename_event_command_construct (TYPE_RENAME_EVENT_COMMAND, event, new_name);
-#line 7893 "Commands.c"
-}
-
-
-static void
-rename_event_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- RenameEventCommand * self;
- const gchar* _tmp0_;
-#line 663 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand);
-#line 663 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 664 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->new_name;
-#line 664 "/home/jens/Source/shotwell/src/Commands.vala"
- event_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), _tmp0_);
-#line 7911 "Commands.c"
-}
-
-
-static void
-rename_event_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- RenameEventCommand * self;
- const gchar* _tmp0_;
-#line 667 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand);
-#line 667 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 668 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->old_name;
-#line 668 "/home/jens/Source/shotwell/src/Commands.vala"
- event_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), _tmp0_);
-#line 7929 "Commands.c"
-}
-
-
-static void
-rename_event_command_class_init (RenameEventCommandClass * klass)
-{
-#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
- rename_event_command_parent_class = g_type_class_peek_parent (klass);
-#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (RenameEventCommandPrivate));
-#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_event_command_real_execute_on_source;
-#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_event_command_real_undo_on_source;
-#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = rename_event_command_finalize;
-#line 7946 "Commands.c"
-}
-
-
-static void
-rename_event_command_instance_init (RenameEventCommand * self)
-{
-#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = RENAME_EVENT_COMMAND_GET_PRIVATE (self);
-#line 7955 "Commands.c"
-}
-
-
-static void
-rename_event_command_finalize (GObject * obj)
-{
- RenameEventCommand * self;
-#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand);
-#line 653 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_name);
-#line 654 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_name);
-#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (rename_event_command_parent_class)->finalize (obj);
-#line 7971 "Commands.c"
-}
-
-
-GType
-rename_event_command_get_type (void)
-{
- static volatile gsize rename_event_command_type_id__volatile = 0;
- if (g_once_init_enter (&rename_event_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RenameEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameEventCommand), 0, (GInstanceInitFunc) rename_event_command_instance_init, NULL };
- GType rename_event_command_type_id;
- rename_event_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "RenameEventCommand", &g_define_type_info, 0);
- g_once_init_leave (&rename_event_command_type_id__volatile, rename_event_command_type_id);
- }
- return rename_event_command_type_id__volatile;
-}
-
-
-EditEventCommentCommand*
-edit_event_comment_command_construct (GType object_type,
- Event* event,
- const gchar* new_comment)
-{
- EditEventCommentCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 676 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 676 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_comment != NULL, NULL);
-#line 677 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditEventCommentCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_PROXYABLE, Proxyable), RESOURCES_EDIT_COMMENT_LABEL, "");
-#line 679 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = g_strdup (new_comment);
-#line 679 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_comment);
-#line 679 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_comment = _tmp0_;
-#line 680 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
-#line 680 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_comment);
-#line 680 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_comment = _tmp1_;
-#line 676 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8017 "Commands.c"
-}
-
-
-EditEventCommentCommand*
-edit_event_comment_command_new (Event* event,
- const gchar* new_comment)
-{
-#line 676 "/home/jens/Source/shotwell/src/Commands.vala"
- return edit_event_comment_command_construct (TYPE_EDIT_EVENT_COMMENT_COMMAND, event, new_comment);
-#line 8027 "Commands.c"
-}
-
-
-static void
-edit_event_comment_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- EditEventCommentCommand * self;
- const gchar* _tmp0_;
-#line 683 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand);
-#line 683 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 684 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->new_comment;
-#line 684 "/home/jens/Source/shotwell/src/Commands.vala"
- event_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), TYPE_EVENT_SOURCE, EventSource), _tmp0_);
-#line 8045 "Commands.c"
-}
-
-
-static void
-edit_event_comment_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- EditEventCommentCommand * self;
- const gchar* _tmp0_;
-#line 687 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand);
-#line 687 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 688 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->old_comment;
-#line 688 "/home/jens/Source/shotwell/src/Commands.vala"
- event_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), TYPE_EVENT_SOURCE, EventSource), _tmp0_);
-#line 8063 "Commands.c"
-}
-
-
-static void
-edit_event_comment_command_class_init (EditEventCommentCommandClass * klass)
-{
-#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
- edit_event_comment_command_parent_class = g_type_class_peek_parent (klass);
-#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (EditEventCommentCommandPrivate));
-#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) edit_event_comment_command_real_execute_on_source;
-#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) edit_event_comment_command_real_undo_on_source;
-#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = edit_event_comment_command_finalize;
-#line 8080 "Commands.c"
-}
-
-
-static void
-edit_event_comment_command_instance_init (EditEventCommentCommand * self)
-{
-#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = EDIT_EVENT_COMMENT_COMMAND_GET_PRIVATE (self);
-#line 8089 "Commands.c"
-}
-
-
-static void
-edit_event_comment_command_finalize (GObject * obj)
-{
- EditEventCommentCommand * self;
-#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand);
-#line 673 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_comment);
-#line 674 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_comment);
-#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (edit_event_comment_command_parent_class)->finalize (obj);
-#line 8105 "Commands.c"
-}
-
-
-GType
-edit_event_comment_command_get_type (void)
-{
- static volatile gsize edit_event_comment_command_type_id__volatile = 0;
- if (g_once_init_enter (&edit_event_comment_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditEventCommentCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_event_comment_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditEventCommentCommand), 0, (GInstanceInitFunc) edit_event_comment_command_instance_init, NULL };
- GType edit_event_comment_command_type_id;
- edit_event_comment_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "EditEventCommentCommand", &g_define_type_info, 0);
- g_once_init_leave (&edit_event_comment_command_type_id__volatile, edit_event_comment_command_type_id);
- }
- return edit_event_comment_command_type_id__volatile;
-}
-
-
-SetKeyPhotoCommand*
-set_key_photo_command_construct (GType object_type,
- Event* event,
- MediaSource* new_primary_source)
-{
- SetKeyPhotoCommand * self = NULL;
- MediaSource* _tmp0_;
- MediaSource* _tmp1_;
-#line 696 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 696 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (new_primary_source), NULL);
-#line 697 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetKeyPhotoCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_SOURCE, DataSource), RESOURCES_MAKE_KEY_PHOTO_LABEL, "");
-#line 699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (new_primary_source);
-#line 699 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->new_primary_source);
-#line 699 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_primary_source = _tmp0_;
-#line 700 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = event_get_primary_source (event);
-#line 700 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->old_primary_source);
-#line 700 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_primary_source = _tmp1_;
-#line 696 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8151 "Commands.c"
-}
-
-
-SetKeyPhotoCommand*
-set_key_photo_command_new (Event* event,
- MediaSource* new_primary_source)
-{
-#line 696 "/home/jens/Source/shotwell/src/Commands.vala"
- return set_key_photo_command_construct (TYPE_SET_KEY_PHOTO_COMMAND, event, new_primary_source);
-#line 8161 "Commands.c"
-}
-
-
-static void
-set_key_photo_command_real_execute (Command* base)
-{
- SetKeyPhotoCommand * self;
- DataSource* _tmp0_;
- MediaSource* _tmp1_;
-#line 703 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand);
-#line 704 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 704 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_primary_source;
-#line 704 "/home/jens/Source/shotwell/src/Commands.vala"
- event_set_primary_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), _tmp1_);
-#line 8179 "Commands.c"
-}
-
-
-static void
-set_key_photo_command_real_undo (Command* base)
-{
- SetKeyPhotoCommand * self;
- DataSource* _tmp0_;
- MediaSource* _tmp1_;
-#line 707 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand);
-#line 708 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 708 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_primary_source;
-#line 708 "/home/jens/Source/shotwell/src/Commands.vala"
- event_set_primary_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), _tmp1_);
-#line 8197 "Commands.c"
-}
-
-
-static void
-set_key_photo_command_class_init (SetKeyPhotoCommandClass * klass)
-{
-#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
- set_key_photo_command_parent_class = g_type_class_peek_parent (klass);
-#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (SetKeyPhotoCommandPrivate));
-#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) set_key_photo_command_real_execute;
-#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) set_key_photo_command_real_undo;
-#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = set_key_photo_command_finalize;
-#line 8214 "Commands.c"
-}
-
-
-static void
-set_key_photo_command_instance_init (SetKeyPhotoCommand * self)
-{
-#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = SET_KEY_PHOTO_COMMAND_GET_PRIVATE (self);
-#line 8223 "Commands.c"
-}
-
-
-static void
-set_key_photo_command_finalize (GObject * obj)
-{
- SetKeyPhotoCommand * self;
-#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand);
-#line 693 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->new_primary_source);
-#line 694 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->old_primary_source);
-#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (set_key_photo_command_parent_class)->finalize (obj);
-#line 8239 "Commands.c"
-}
-
-
-GType
-set_key_photo_command_get_type (void)
-{
- static volatile gsize set_key_photo_command_type_id__volatile = 0;
- if (g_once_init_enter (&set_key_photo_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SetKeyPhotoCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_key_photo_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetKeyPhotoCommand), 0, (GInstanceInitFunc) set_key_photo_command_instance_init, NULL };
- GType set_key_photo_command_type_id;
- set_key_photo_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "SetKeyPhotoCommand", &g_define_type_info, 0);
- g_once_init_leave (&set_key_photo_command_type_id__volatile, set_key_photo_command_type_id);
- }
- return set_key_photo_command_type_id__volatile;
-}
-
-
-RevertSingleCommand*
-revert_single_command_construct (GType object_type,
- Photo* photo)
-{
- RevertSingleCommand * self = NULL;
-#line 713 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 714 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RevertSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, RESOURCES_REVERT_LABEL, "");
-#line 713 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8268 "Commands.c"
-}
-
-
-RevertSingleCommand*
-revert_single_command_new (Photo* photo)
-{
-#line 713 "/home/jens/Source/shotwell/src/Commands.vala"
- return revert_single_command_construct (TYPE_REVERT_SINGLE_COMMAND, photo);
-#line 8277 "Commands.c"
-}
-
-
-static void
-revert_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo)
-{
- RevertSingleCommand * self;
-#line 717 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand);
-#line 717 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 718 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_remove_all_transformations (photo);
-#line 8292 "Commands.c"
-}
-
-
-static gboolean
-revert_single_command_real_compress (Command* base,
- Command* command)
-{
- RevertSingleCommand * self;
- gboolean result = FALSE;
- RevertSingleCommand* revert_single_command = NULL;
- RevertSingleCommand* _tmp0_;
- RevertSingleCommand* _tmp1_;
- RevertSingleCommand* _tmp2_;
- DataSource* _tmp3_;
- DataSource* _tmp4_;
-#line 721 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand);
-#line 721 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 722 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_REVERT_SINGLE_COMMAND) ? ((RevertSingleCommand*) command) : NULL);
-#line 722 "/home/jens/Source/shotwell/src/Commands.vala"
- revert_single_command = _tmp0_;
-#line 723 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = revert_single_command;
-#line 723 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ == NULL) {
-#line 724 "/home/jens/Source/shotwell/src/Commands.vala"
- result = FALSE;
-#line 724 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (revert_single_command);
-#line 724 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 8326 "Commands.c"
- }
-#line 726 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = revert_single_command;
-#line 726 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 726 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 726 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != _tmp4_) {
-#line 727 "/home/jens/Source/shotwell/src/Commands.vala"
- result = FALSE;
-#line 727 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (revert_single_command);
-#line 727 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 8342 "Commands.c"
- }
-#line 731 "/home/jens/Source/shotwell/src/Commands.vala"
- result = TRUE;
-#line 731 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (revert_single_command);
-#line 731 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 8350 "Commands.c"
-}
-
-
-static void
-revert_single_command_class_init (RevertSingleCommandClass * klass)
-{
-#line 712 "/home/jens/Source/shotwell/src/Commands.vala"
- revert_single_command_parent_class = g_type_class_peek_parent (klass);
-#line 712 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) revert_single_command_real_execute_on_photo;
-#line 712 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) revert_single_command_real_compress;
-#line 8363 "Commands.c"
-}
-
-
-static void
-revert_single_command_instance_init (RevertSingleCommand * self)
-{
-}
-
-
-GType
-revert_single_command_get_type (void)
-{
- static volatile gsize revert_single_command_type_id__volatile = 0;
- if (g_once_init_enter (&revert_single_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RevertSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) revert_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RevertSingleCommand), 0, (GInstanceInitFunc) revert_single_command_instance_init, NULL };
- GType revert_single_command_type_id;
- revert_single_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "RevertSingleCommand", &g_define_type_info, 0);
- g_once_init_leave (&revert_single_command_type_id__volatile, revert_single_command_type_id);
- }
- return revert_single_command_type_id__volatile;
-}
-
-
-RevertMultipleCommand*
-revert_multiple_command_construct (GType object_type,
- GeeIterable* iter)
-{
- RevertMultipleCommand * self = NULL;
-#line 736 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 737 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RevertMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Reverting"), _ ("Undoing Revert"), RESOURCES_REVERT_LABEL, "");
-#line 736 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8398 "Commands.c"
-}
-
-
-RevertMultipleCommand*
-revert_multiple_command_new (GeeIterable* iter)
-{
-#line 736 "/home/jens/Source/shotwell/src/Commands.vala"
- return revert_multiple_command_construct (TYPE_REVERT_MULTIPLE_COMMAND, iter);
-#line 8407 "Commands.c"
-}
-
-
-static void
-revert_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- RevertMultipleCommand * self;
-#line 741 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand);
-#line 741 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 742 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_remove_all_transformations (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo));
-#line 8422 "Commands.c"
-}
-
-
-static void
-revert_multiple_command_class_init (RevertMultipleCommandClass * klass)
-{
-#line 735 "/home/jens/Source/shotwell/src/Commands.vala"
- revert_multiple_command_parent_class = g_type_class_peek_parent (klass);
-#line 735 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) revert_multiple_command_real_execute_on_source;
-#line 8433 "Commands.c"
-}
-
-
-static void
-revert_multiple_command_instance_init (RevertMultipleCommand * self)
-{
-}
-
-
-GType
-revert_multiple_command_get_type (void)
-{
- static volatile gsize revert_multiple_command_type_id__volatile = 0;
- if (g_once_init_enter (&revert_multiple_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RevertMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) revert_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RevertMultipleCommand), 0, (GInstanceInitFunc) revert_multiple_command_instance_init, NULL };
- GType revert_multiple_command_type_id;
- revert_multiple_command_type_id = g_type_register_static (TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, "RevertMultipleCommand", &g_define_type_info, 0);
- g_once_init_leave (&revert_multiple_command_type_id__volatile, revert_multiple_command_type_id);
- }
- return revert_multiple_command_type_id__volatile;
-}
-
-
-EnhanceSingleCommand*
-enhance_single_command_construct (GType object_type,
- Photo* photo)
-{
- EnhanceSingleCommand * self = NULL;
-#line 747 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 748 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EnhanceSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP);
-#line 747 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8468 "Commands.c"
-}
-
-
-EnhanceSingleCommand*
-enhance_single_command_new (Photo* photo)
-{
-#line 747 "/home/jens/Source/shotwell/src/Commands.vala"
- return enhance_single_command_construct (TYPE_ENHANCE_SINGLE_COMMAND, photo);
-#line 8477 "Commands.c"
-}
-
-
-static void
-enhance_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo)
-{
- EnhanceSingleCommand * self;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- AppWindow* _tmp2_;
- AppWindow* _tmp3_;
-#line 751 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand);
-#line 751 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = app_window_get_instance ();
-#line 752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 752 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 752 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp1_);
-#line 757 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_enhance (photo);
-#line 763 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = app_window_get_instance ();
-#line 763 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 763 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE_WINDOW, PageWindow));
-#line 763 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 8512 "Commands.c"
-}
-
-
-static gboolean
-enhance_single_command_real_compress (Command* base,
- Command* command)
-{
- EnhanceSingleCommand * self;
- gboolean result = FALSE;
- EnhanceSingleCommand* enhance_single_command = NULL;
- EnhanceSingleCommand* _tmp0_;
- EnhanceSingleCommand* _tmp1_;
- EnhanceSingleCommand* _tmp2_;
- DataSource* _tmp3_;
- DataSource* _tmp4_;
-#line 766 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand);
-#line 766 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_ENHANCE_SINGLE_COMMAND) ? ((EnhanceSingleCommand*) command) : NULL);
-#line 767 "/home/jens/Source/shotwell/src/Commands.vala"
- enhance_single_command = _tmp0_;
-#line 768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = enhance_single_command;
-#line 768 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ == NULL) {
-#line 769 "/home/jens/Source/shotwell/src/Commands.vala"
- result = FALSE;
-#line 769 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (enhance_single_command);
-#line 769 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 8546 "Commands.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = enhance_single_command;
-#line 771 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 771 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 771 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != _tmp4_) {
-#line 772 "/home/jens/Source/shotwell/src/Commands.vala"
- result = FALSE;
-#line 772 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (enhance_single_command);
-#line 772 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 8562 "Commands.c"
- }
-#line 775 "/home/jens/Source/shotwell/src/Commands.vala"
- result = TRUE;
-#line 775 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (enhance_single_command);
-#line 775 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 8570 "Commands.c"
-}
-
-
-static void
-enhance_single_command_class_init (EnhanceSingleCommandClass * klass)
-{
-#line 746 "/home/jens/Source/shotwell/src/Commands.vala"
- enhance_single_command_parent_class = g_type_class_peek_parent (klass);
-#line 746 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) enhance_single_command_real_execute_on_photo;
-#line 746 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) enhance_single_command_real_compress;
-#line 8583 "Commands.c"
-}
-
-
-static void
-enhance_single_command_instance_init (EnhanceSingleCommand * self)
-{
-}
-
-
-GType
-enhance_single_command_get_type (void)
-{
- static volatile gsize enhance_single_command_type_id__volatile = 0;
- if (g_once_init_enter (&enhance_single_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EnhanceSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) enhance_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EnhanceSingleCommand), 0, (GInstanceInitFunc) enhance_single_command_instance_init, NULL };
- GType enhance_single_command_type_id;
- enhance_single_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "EnhanceSingleCommand", &g_define_type_info, 0);
- g_once_init_leave (&enhance_single_command_type_id__volatile, enhance_single_command_type_id);
- }
- return enhance_single_command_type_id__volatile;
-}
-
-
-EnhanceMultipleCommand*
-enhance_multiple_command_construct (GType object_type,
- GeeIterable* iter)
-{
- EnhanceMultipleCommand * self = NULL;
-#line 780 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 781 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EnhanceMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Enhancing"), _ ("Undoing Enhance"), RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP);
-#line 780 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8618 "Commands.c"
-}
-
-
-EnhanceMultipleCommand*
-enhance_multiple_command_new (GeeIterable* iter)
-{
-#line 780 "/home/jens/Source/shotwell/src/Commands.vala"
- return enhance_multiple_command_construct (TYPE_ENHANCE_MULTIPLE_COMMAND, iter);
-#line 8627 "Commands.c"
-}
-
-
-static void
-enhance_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- EnhanceMultipleCommand * self;
-#line 785 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand);
-#line 785 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 786 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_enhance (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo));
-#line 8642 "Commands.c"
-}
-
-
-static void
-enhance_multiple_command_class_init (EnhanceMultipleCommandClass * klass)
-{
-#line 779 "/home/jens/Source/shotwell/src/Commands.vala"
- enhance_multiple_command_parent_class = g_type_class_peek_parent (klass);
-#line 779 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) enhance_multiple_command_real_execute_on_source;
-#line 8653 "Commands.c"
-}
-
-
-static void
-enhance_multiple_command_instance_init (EnhanceMultipleCommand * self)
-{
-}
-
-
-GType
-enhance_multiple_command_get_type (void)
-{
- static volatile gsize enhance_multiple_command_type_id__volatile = 0;
- if (g_once_init_enter (&enhance_multiple_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EnhanceMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) enhance_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EnhanceMultipleCommand), 0, (GInstanceInitFunc) enhance_multiple_command_instance_init, NULL };
- GType enhance_multiple_command_type_id;
- enhance_multiple_command_type_id = g_type_register_static (TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, "EnhanceMultipleCommand", &g_define_type_info, 0);
- g_once_init_leave (&enhance_multiple_command_type_id__volatile, enhance_multiple_command_type_id);
- }
- return enhance_multiple_command_type_id__volatile;
-}
-
-
-StraightenCommand*
-straighten_command_construct (GType object_type,
- Photo* photo,
- gdouble theta,
- Box* crop,
- const gchar* name,
- const gchar* explanation)
-{
- StraightenCommand * self = NULL;
- Box _tmp0_;
-#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (crop != NULL, NULL);
-#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 795 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (StraightenCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation);
-#line 797 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->theta = theta;
-#line 798 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = *crop;
-#line 798 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->crop = _tmp0_;
-#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8705 "Commands.c"
-}
-
-
-StraightenCommand*
-straighten_command_new (Photo* photo,
- gdouble theta,
- Box* crop,
- const gchar* name,
- const gchar* explanation)
-{
-#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
- return straighten_command_construct (TYPE_STRAIGHTEN_COMMAND, photo, theta, crop, name, explanation);
-#line 8718 "Commands.c"
-}
-
-
-static void
-straighten_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo)
-{
- StraightenCommand * self;
- DataCollection* collection = NULL;
- DataCollection* _tmp0_;
- DataCollection* _tmp1_;
- gdouble _tmp3_;
- Box _tmp4_;
- DataCollection* _tmp5_;
-#line 801 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRAIGHTEN_COMMAND, StraightenCommand);
-#line 801 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 803 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_OBJECT, DataObject));
-#line 803 "/home/jens/Source/shotwell/src/Commands.vala"
- collection = _tmp0_;
-#line 804 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = collection;
-#line 804 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ != NULL) {
-#line 8745 "Commands.c"
- DataCollection* _tmp2_;
-#line 805 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = collection;
-#line 805 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_freeze_notifications (_tmp2_);
-#line 8751 "Commands.c"
- }
-#line 807 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->theta;
-#line 807 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_straighten (photo, _tmp3_);
-#line 808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->crop;
-#line 808 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_crop (photo, &_tmp4_);
-#line 810 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = collection;
-#line 810 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_ != NULL) {
-#line 8765 "Commands.c"
- DataCollection* _tmp6_;
-#line 811 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = collection;
-#line 811 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_thaw_notifications (_tmp6_);
-#line 8771 "Commands.c"
- }
-#line 801 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (collection);
-#line 8775 "Commands.c"
-}
-
-
-static void
-straighten_command_class_init (StraightenCommandClass * klass)
-{
-#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
- straighten_command_parent_class = g_type_class_peek_parent (klass);
-#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (StraightenCommandPrivate));
-#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) straighten_command_real_execute_on_photo;
-#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = straighten_command_finalize;
-#line 8790 "Commands.c"
-}
-
-
-static void
-straighten_command_instance_init (StraightenCommand * self)
-{
-#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = STRAIGHTEN_COMMAND_GET_PRIVATE (self);
-#line 8799 "Commands.c"
-}
-
-
-static void
-straighten_command_finalize (GObject * obj)
-{
- StraightenCommand * self;
-#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STRAIGHTEN_COMMAND, StraightenCommand);
-#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (straighten_command_parent_class)->finalize (obj);
-#line 8811 "Commands.c"
-}
-
-
-GType
-straighten_command_get_type (void)
-{
- static volatile gsize straighten_command_type_id__volatile = 0;
- if (g_once_init_enter (&straighten_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (StraightenCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) straighten_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StraightenCommand), 0, (GInstanceInitFunc) straighten_command_instance_init, NULL };
- GType straighten_command_type_id;
- straighten_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "StraightenCommand", &g_define_type_info, 0);
- g_once_init_leave (&straighten_command_type_id__volatile, straighten_command_type_id);
- }
- return straighten_command_type_id__volatile;
-}
-
-
-CropCommand*
-crop_command_construct (GType object_type,
- Photo* photo,
- Box* crop,
- const gchar* name,
- const gchar* explanation)
-{
- CropCommand * self = NULL;
- Box _tmp0_;
-#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (crop != NULL, NULL);
-#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 819 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (CropCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation);
-#line 821 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = *crop;
-#line 821 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->crop = _tmp0_;
-#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8854 "Commands.c"
-}
-
-
-CropCommand*
-crop_command_new (Photo* photo,
- Box* crop,
- const gchar* name,
- const gchar* explanation)
-{
-#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
- return crop_command_construct (TYPE_CROP_COMMAND, photo, crop, name, explanation);
-#line 8866 "Commands.c"
-}
-
-
-static void
-crop_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo)
-{
- CropCommand * self;
- Box _tmp0_;
-#line 824 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CROP_COMMAND, CropCommand);
-#line 824 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->crop;
-#line 825 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_crop (photo, &_tmp0_);
-#line 8884 "Commands.c"
-}
-
-
-static void
-crop_command_class_init (CropCommandClass * klass)
-{
-#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
- crop_command_parent_class = g_type_class_peek_parent (klass);
-#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (CropCommandPrivate));
-#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) crop_command_real_execute_on_photo;
-#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = crop_command_finalize;
-#line 8899 "Commands.c"
-}
-
-
-static void
-crop_command_instance_init (CropCommand * self)
-{
-#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = CROP_COMMAND_GET_PRIVATE (self);
-#line 8908 "Commands.c"
-}
-
-
-static void
-crop_command_finalize (GObject * obj)
-{
- CropCommand * self;
-#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CROP_COMMAND, CropCommand);
-#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (crop_command_parent_class)->finalize (obj);
-#line 8920 "Commands.c"
-}
-
-
-GType
-crop_command_get_type (void)
-{
- static volatile gsize crop_command_type_id__volatile = 0;
- if (g_once_init_enter (&crop_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CropCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crop_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CropCommand), 0, (GInstanceInitFunc) crop_command_instance_init, NULL };
- GType crop_command_type_id;
- crop_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "CropCommand", &g_define_type_info, 0);
- g_once_init_leave (&crop_command_type_id__volatile, crop_command_type_id);
- }
- return crop_command_type_id__volatile;
-}
-
-
-static gpointer
-_pixel_transformation_bundle_ref0 (gpointer self)
-{
-#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
- return self ? pixel_transformation_bundle_ref (self) : NULL;
-#line 8943 "Commands.c"
-}
-
-
-AdjustColorsSingleCommand*
-adjust_colors_single_command_construct (GType object_type,
- Photo* photo,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation)
-{
- AdjustColorsSingleCommand * self = NULL;
- PixelTransformationBundle* _tmp0_;
-#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (transformations), NULL);
-#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 834 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AdjustColorsSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation);
-#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _pixel_transformation_bundle_ref0 (transformations);
-#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
- _pixel_transformation_bundle_unref0 (self->priv->transformations);
-#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->transformations = _tmp0_;
-#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 8974 "Commands.c"
-}
-
-
-AdjustColorsSingleCommand*
-adjust_colors_single_command_new (Photo* photo,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation)
-{
-#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
- return adjust_colors_single_command_construct (TYPE_ADJUST_COLORS_SINGLE_COMMAND, photo, transformations, name, explanation);
-#line 8986 "Commands.c"
-}
-
-
-static void
-adjust_colors_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo)
-{
- AdjustColorsSingleCommand * self;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- PixelTransformationBundle* _tmp2_;
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
-#line 839 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand);
-#line 839 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 840 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = app_window_get_instance ();
-#line 840 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 840 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 840 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp1_);
-#line 842 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->transformations;
-#line 842 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_color_adjustments (photo, _tmp2_);
-#line 844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = app_window_get_instance ();
-#line 844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 844 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE_WINDOW, PageWindow));
-#line 844 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 9024 "Commands.c"
-}
-
-
-static gboolean
-adjust_colors_single_command_real_can_compress (GenericPhotoTransformationCommand* base,
- Command* command)
-{
- AdjustColorsSingleCommand * self;
- gboolean result = FALSE;
-#line 847 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand);
-#line 847 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 848 "/home/jens/Source/shotwell/src/Commands.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_ADJUST_COLORS_SINGLE_COMMAND);
-#line 848 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 9042 "Commands.c"
-}
-
-
-static void
-adjust_colors_single_command_class_init (AdjustColorsSingleCommandClass * klass)
-{
-#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_colors_single_command_parent_class = g_type_class_peek_parent (klass);
-#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (AdjustColorsSingleCommandPrivate));
-#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) adjust_colors_single_command_real_execute_on_photo;
-#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->can_compress = (gboolean (*) (GenericPhotoTransformationCommand *, Command*)) adjust_colors_single_command_real_can_compress;
-#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = adjust_colors_single_command_finalize;
-#line 9059 "Commands.c"
-}
-
-
-static void
-adjust_colors_single_command_instance_init (AdjustColorsSingleCommand * self)
-{
-#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = ADJUST_COLORS_SINGLE_COMMAND_GET_PRIVATE (self);
-#line 9068 "Commands.c"
-}
-
-
-static void
-adjust_colors_single_command_finalize (GObject * obj)
-{
- AdjustColorsSingleCommand * self;
-#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand);
-#line 830 "/home/jens/Source/shotwell/src/Commands.vala"
- _pixel_transformation_bundle_unref0 (self->priv->transformations);
-#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (adjust_colors_single_command_parent_class)->finalize (obj);
-#line 9082 "Commands.c"
-}
-
-
-GType
-adjust_colors_single_command_get_type (void)
-{
- static volatile gsize adjust_colors_single_command_type_id__volatile = 0;
- if (g_once_init_enter (&adjust_colors_single_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (AdjustColorsSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_colors_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustColorsSingleCommand), 0, (GInstanceInitFunc) adjust_colors_single_command_instance_init, NULL };
- GType adjust_colors_single_command_type_id;
- adjust_colors_single_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "AdjustColorsSingleCommand", &g_define_type_info, 0);
- g_once_init_leave (&adjust_colors_single_command_type_id__volatile, adjust_colors_single_command_type_id);
- }
- return adjust_colors_single_command_type_id__volatile;
-}
-
-
-AdjustColorsMultipleCommand*
-adjust_colors_multiple_command_construct (GType object_type,
- GeeIterable* iter,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation)
-{
- AdjustColorsMultipleCommand * self = NULL;
- PixelTransformationBundle* _tmp0_;
-#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (transformations), NULL);
-#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 857 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AdjustColorsMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Applying Color Transformations"), _ ("Undoing Color Transformations"), name, explanation);
-#line 860 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _pixel_transformation_bundle_ref0 (transformations);
-#line 860 "/home/jens/Source/shotwell/src/Commands.vala"
- _pixel_transformation_bundle_unref0 (self->priv->transformations);
-#line 860 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->transformations = _tmp0_;
-#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 9127 "Commands.c"
-}
-
-
-AdjustColorsMultipleCommand*
-adjust_colors_multiple_command_new (GeeIterable* iter,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation)
-{
-#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
- return adjust_colors_multiple_command_construct (TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, iter, transformations, name, explanation);
-#line 9139 "Commands.c"
-}
-
-
-static void
-adjust_colors_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- AdjustColorsMultipleCommand * self;
- PixelTransformationBundle* _tmp0_;
-#line 863 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand);
-#line 863 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 864 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->transformations;
-#line 864 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), _tmp0_);
-#line 9157 "Commands.c"
-}
-
-
-static void
-adjust_colors_multiple_command_class_init (AdjustColorsMultipleCommandClass * klass)
-{
-#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_colors_multiple_command_parent_class = g_type_class_peek_parent (klass);
-#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (AdjustColorsMultipleCommandPrivate));
-#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) adjust_colors_multiple_command_real_execute_on_source;
-#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = adjust_colors_multiple_command_finalize;
-#line 9172 "Commands.c"
-}
-
-
-static void
-adjust_colors_multiple_command_instance_init (AdjustColorsMultipleCommand * self)
-{
-#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = ADJUST_COLORS_MULTIPLE_COMMAND_GET_PRIVATE (self);
-#line 9181 "Commands.c"
-}
-
-
-static void
-adjust_colors_multiple_command_finalize (GObject * obj)
-{
- AdjustColorsMultipleCommand * self;
-#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand);
-#line 853 "/home/jens/Source/shotwell/src/Commands.vala"
- _pixel_transformation_bundle_unref0 (self->priv->transformations);
-#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (adjust_colors_multiple_command_parent_class)->finalize (obj);
-#line 9195 "Commands.c"
-}
-
-
-GType
-adjust_colors_multiple_command_get_type (void)
-{
- static volatile gsize adjust_colors_multiple_command_type_id__volatile = 0;
- if (g_once_init_enter (&adjust_colors_multiple_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (AdjustColorsMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_colors_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustColorsMultipleCommand), 0, (GInstanceInitFunc) adjust_colors_multiple_command_instance_init, NULL };
- GType adjust_colors_multiple_command_type_id;
- adjust_colors_multiple_command_type_id = g_type_register_static (TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, "AdjustColorsMultipleCommand", &g_define_type_info, 0);
- g_once_init_leave (&adjust_colors_multiple_command_type_id__volatile, adjust_colors_multiple_command_type_id);
- }
- return adjust_colors_multiple_command_type_id__volatile;
-}
-
-
-RedeyeCommand*
-redeye_command_construct (GType object_type,
- Photo* photo,
- EditingToolsRedeyeInstance* redeye_instance,
- const gchar* name,
- const gchar* explanation)
-{
- RedeyeCommand * self = NULL;
- EditingToolsRedeyeInstance _tmp0_;
-#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (redeye_instance != NULL, NULL);
-#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 873 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RedeyeCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation);
-#line 875 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = *redeye_instance;
-#line 875 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->redeye_instance = _tmp0_;
-#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 9238 "Commands.c"
-}
-
-
-RedeyeCommand*
-redeye_command_new (Photo* photo,
- EditingToolsRedeyeInstance* redeye_instance,
- const gchar* name,
- const gchar* explanation)
-{
-#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
- return redeye_command_construct (TYPE_REDEYE_COMMAND, photo, redeye_instance, name, explanation);
-#line 9250 "Commands.c"
-}
-
-
-static void
-redeye_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
- Photo* photo)
-{
- RedeyeCommand * self;
- EditingToolsRedeyeInstance _tmp0_;
-#line 878 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REDEYE_COMMAND, RedeyeCommand);
-#line 878 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 879 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->redeye_instance;
-#line 879 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_add_redeye_instance (photo, &_tmp0_);
-#line 9268 "Commands.c"
-}
-
-
-static void
-redeye_command_class_init (RedeyeCommandClass * klass)
-{
-#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
- redeye_command_parent_class = g_type_class_peek_parent (klass);
-#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (RedeyeCommandPrivate));
-#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
- ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) redeye_command_real_execute_on_photo;
-#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = redeye_command_finalize;
-#line 9283 "Commands.c"
-}
-
-
-static void
-redeye_command_instance_init (RedeyeCommand * self)
-{
-#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = REDEYE_COMMAND_GET_PRIVATE (self);
-#line 9292 "Commands.c"
-}
-
-
-static void
-redeye_command_finalize (GObject * obj)
-{
- RedeyeCommand * self;
-#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_REDEYE_COMMAND, RedeyeCommand);
-#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (redeye_command_parent_class)->finalize (obj);
-#line 9304 "Commands.c"
-}
-
-
-GType
-redeye_command_get_type (void)
-{
- static volatile gsize redeye_command_type_id__volatile = 0;
- if (g_once_init_enter (&redeye_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RedeyeCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) redeye_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RedeyeCommand), 0, (GInstanceInitFunc) redeye_command_instance_init, NULL };
- GType redeye_command_type_id;
- redeye_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "RedeyeCommand", &g_define_type_info, 0);
- g_once_init_leave (&redeye_command_type_id__volatile, redeye_command_type_id);
- }
- return redeye_command_type_id__volatile;
-}
-
-
-MovePhotosCommand*
-move_photos_command_construct (GType object_type,
- const gchar* name,
- const gchar* explanation)
-{
- MovePhotosCommand * self = NULL;
-#line 967 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 967 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 968 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MovePhotosCommand*) command_construct (object_type, name, explanation);
-#line 967 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 9336 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_prepare (Command* base)
-{
- MovePhotosCommand * self;
- MovePhotosCommandRealMovePhotosCommand* _tmp0_;
- MovePhotosCommandRealMovePhotosCommand* _tmp1_;
-#line 971 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand);
-#line 972 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->real_command;
-#line 972 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "real_command != null");
-#line 973 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->real_command;
-#line 973 "/home/jens/Source/shotwell/src/Commands.vala"
- command_prepare (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command));
-#line 9356 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_execute (Command* base)
-{
- MovePhotosCommand * self;
- MovePhotosCommandRealMovePhotosCommand* _tmp0_;
- MovePhotosCommandRealMovePhotosCommand* _tmp1_;
-#line 976 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand);
-#line 977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->real_command;
-#line 977 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "real_command != null");
-#line 978 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->real_command;
-#line 978 "/home/jens/Source/shotwell/src/Commands.vala"
- command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command));
-#line 9376 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_undo (Command* base)
-{
- MovePhotosCommand * self;
- MovePhotosCommandRealMovePhotosCommand* _tmp0_;
- MovePhotosCommandRealMovePhotosCommand* _tmp1_;
-#line 981 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand);
-#line 982 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->real_command;
-#line 982 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "real_command != null");
-#line 983 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->real_command;
-#line 983 "/home/jens/Source/shotwell/src/Commands.vala"
- command_undo (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command));
-#line 9396 "Commands.c"
-}
-
-
-static void
-_move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self)
-{
-#line 914 "/home/jens/Source/shotwell/src/Commands.vala"
- move_photos_command_real_move_photos_command_on_proxy_broken ((MovePhotosCommandRealMovePhotosCommand*) self);
-#line 9406 "Commands.c"
-}
-
-
-static gpointer
-_source_proxy_ref0 (gpointer self)
-{
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- return self ? source_proxy_ref (self) : NULL;
-#line 9415 "Commands.c"
-}
-
-
-MovePhotosCommandRealMovePhotosCommand*
-move_photos_command_real_move_photos_command_construct (GType object_type,
- Event* new_event,
- GeeIterable* source_views,
- const gchar* progress_text,
- const gchar* undo_progress_text,
- const gchar* name,
- const gchar* explanation)
-{
- MovePhotosCommandRealMovePhotosCommand * self = NULL;
- SourceProxy* _tmp25_;
- SourceProxy* _tmp26_;
-#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail ((new_event == NULL) || IS_EVENT (new_event), NULL);
-#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (source_views), NULL);
-#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (progress_text != NULL, NULL);
-#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (undo_progress_text != NULL, NULL);
-#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 893 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MovePhotosCommandRealMovePhotosCommand*) multiple_data_source_command_construct (object_type, source_views, progress_text, undo_progress_text, name, explanation);
-#line 9445 "Commands.c"
- {
- GeeArrayList* _source_list = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _source_size = 0;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _source_index = 0;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_list = _tmp1_;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_list;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_size = _tmp4_;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = -1;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 9473 "Commands.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- DataSource* source = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- MediaSource* current_media = NULL;
- DataSource* _tmp11_;
- MediaSource* _tmp12_;
- Event* old_event = NULL;
- MediaSource* _tmp13_;
- Event* _tmp14_;
- SourceProxy* _tmp15_ = NULL;
- Event* _tmp16_;
- SourceProxy* old_event_proxy = NULL;
- SourceProxy* _tmp19_;
- SourceProxy* _tmp20_;
- GeeHashMap* _tmp22_;
- MediaSource* _tmp23_;
- SourceProxy* _tmp24_;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _source_index;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = _tmp5_ + 1;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _source_index;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _source_size;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 9507 "Commands.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _source_list;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _source_index;
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp10_;
-#line 897 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = source;
-#line 897 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 897 "/home/jens/Source/shotwell/src/Commands.vala"
- current_media = _tmp12_;
-#line 898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = current_media;
-#line 898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = media_source_get_event (_tmp13_);
-#line 898 "/home/jens/Source/shotwell/src/Commands.vala"
- old_event = _tmp14_;
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = old_event;
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp16_ != NULL) {
-#line 9533 "Commands.c"
- Event* _tmp17_;
- SourceProxy* _tmp18_;
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = old_event;
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PROXYABLE, Proxyable));
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp15_);
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp18_;
-#line 9544 "Commands.c"
- } else {
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp15_);
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = NULL;
-#line 9550 "Commands.c"
- }
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _source_proxy_ref0 (_tmp15_);
-#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- old_event_proxy = _tmp19_;
-#line 902 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = old_event_proxy;
-#line 902 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp20_ != NULL) {
-#line 9560 "Commands.c"
- SourceProxy* _tmp21_;
-#line 903 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = old_event_proxy;
-#line 903 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp21_, "broken", (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 9566 "Commands.c"
- }
-#line 905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = self->priv->old_events;
-#line 905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = current_media;
-#line 905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = old_event_proxy;
-#line 905 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp23_, _tmp24_);
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (old_event_proxy);
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp15_);
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (old_event);
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (current_media);
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 9586 "Commands.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_list);
-#line 9590 "Commands.c"
- }
-#line 909 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (new_event, TYPE_PROXYABLE, Proxyable));
-#line 909 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (self->priv->new_event_proxy);
-#line 909 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_event_proxy = _tmp25_;
-#line 910 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = self->priv->new_event_proxy;
-#line 910 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp26_, "broken", (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 9604 "Commands.c"
-}
-
-
-MovePhotosCommandRealMovePhotosCommand*
-move_photos_command_real_move_photos_command_new (Event* new_event,
- GeeIterable* source_views,
- const gchar* progress_text,
- const gchar* undo_progress_text,
- const gchar* name,
- const gchar* explanation)
-{
-#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
- return move_photos_command_real_move_photos_command_construct (MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, new_event, source_views, progress_text, undo_progress_text, name, explanation);
-#line 9618 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_move_photos_command_real_execute (Command* base)
-{
- MovePhotosCommandRealMovePhotosCommand * self;
- LibraryWindow* _tmp0_;
- LibraryWindow* _tmp1_;
- Page* _tmp2_;
- Page* _tmp3_;
- gboolean _tmp4_;
-#line 922 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand);
-#line 925 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (move_photos_command_real_move_photos_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = library_window_get_app ();
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_EVENT_PAGE);
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp1_);
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_) {
-#line 9651 "Commands.c"
- Event* evt = NULL;
- LibraryWindow* _tmp5_;
- LibraryWindow* _tmp6_;
- Page* _tmp7_;
- EventPage* _tmp8_;
- Event* _tmp9_;
- Event* _tmp10_;
- Event* _tmp11_;
- GeeArrayList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = library_window_get_app ();
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE_WINDOW, PageWindow));
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_EVENT_PAGE, EventPage);
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = event_page_get_event (_tmp8_);
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp8_);
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp6_);
-#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
- evt = _tmp10_;
-#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = evt;
-#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
-#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
-#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_EVENT_SOURCE, EventSource)) == _tmp14_) {
-#line 9691 "Commands.c"
- LibraryWindow* _tmp15_;
- LibraryWindow* _tmp16_;
- SourceProxy* _tmp17_;
- DataSource* _tmp18_;
- Event* _tmp19_;
-#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = library_window_get_app ();
-#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
-#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->new_event_proxy;
-#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = source_proxy_get_source (_tmp17_);
-#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_EVENT, Event);
-#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- library_window_switch_to_event (_tmp16_, _tmp19_);
-#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp19_);
-#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp16_);
-#line 9713 "Commands.c"
- }
-#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (evt);
-#line 9717 "Commands.c"
- } else {
- SourceProxy* _tmp20_;
- DataSource* _tmp21_;
- Event* _tmp22_;
- GeeArrayList* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- gboolean _tmp26_;
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = self->priv->new_event_proxy;
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = source_proxy_get_source (_tmp20_);
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_EVENT, Event);
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _tmp24_;
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT_SOURCE, EventSource)) == _tmp25_;
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp22_);
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp26_) {
-#line 9744 "Commands.c"
- LibraryWindow* _tmp27_;
- LibraryWindow* _tmp28_;
- SourceProxy* _tmp29_;
- DataSource* _tmp30_;
- Event* _tmp31_;
-#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = library_window_get_app ();
-#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _tmp27_;
-#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = self->priv->new_event_proxy;
-#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = source_proxy_get_source (_tmp29_);
-#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_EVENT, Event);
-#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- library_window_switch_to_event (_tmp28_, _tmp31_);
-#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp31_);
-#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp28_);
-#line 9766 "Commands.c"
- }
- }
-}
-
-
-static void
-move_photos_command_real_move_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- MovePhotosCommandRealMovePhotosCommand * self;
- SourceProxy* _tmp0_;
- DataSource* _tmp1_;
- Event* _tmp2_;
-#line 949 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand);
-#line 949 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->new_event_proxy;
-#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source_proxy_get_source (_tmp0_);
-#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_EVENT, Event);
-#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), _tmp2_);
-#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp2_);
-#line 9794 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_move_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- MovePhotosCommandRealMovePhotosCommand * self;
- MediaSource* current_media = NULL;
- MediaSource* _tmp0_;
- SourceProxy* event_proxy = NULL;
- GeeHashMap* _tmp1_;
- MediaSource* _tmp2_;
- gpointer _tmp3_;
- Event* _tmp4_ = NULL;
- SourceProxy* _tmp5_;
- MediaSource* _tmp8_;
-#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand);
-#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 954 "/home/jens/Source/shotwell/src/Commands.vala"
- current_media = _tmp0_;
-#line 955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_events;
-#line 955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = current_media;
-#line 955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_);
-#line 955 "/home/jens/Source/shotwell/src/Commands.vala"
- event_proxy = (SourceProxy*) _tmp3_;
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = event_proxy;
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_ != NULL) {
-#line 9832 "Commands.c"
- SourceProxy* _tmp6_;
- DataSource* _tmp7_;
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = event_proxy;
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = source_proxy_get_source (_tmp6_);
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_EVENT, Event);
-#line 9843 "Commands.c"
- } else {
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = NULL;
-#line 9849 "Commands.c"
- }
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = current_media;
-#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_event (_tmp8_, _tmp4_);
-#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (event_proxy);
-#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (current_media);
-#line 9861 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_move_photos_command_on_proxy_broken (MovePhotosCommandRealMovePhotosCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 960 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (MOVE_PHOTOS_COMMAND_IS_REAL_MOVE_PHOTOS_COMMAND (self));
-#line 961 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 961 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 961 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 961 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 9880 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_move_photos_command_class_init (MovePhotosCommandRealMovePhotosCommandClass * klass)
-{
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- move_photos_command_real_move_photos_command_parent_class = g_type_class_peek_parent (klass);
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (MovePhotosCommandRealMovePhotosCommandPrivate));
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) move_photos_command_real_move_photos_command_real_execute;
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) move_photos_command_real_move_photos_command_real_execute_on_source;
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) move_photos_command_real_move_photos_command_real_undo_on_source;
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = move_photos_command_real_move_photos_command_finalize;
-#line 9899 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_move_photos_command_instance_init (MovePhotosCommandRealMovePhotosCommand * self)
-{
- GeeHashMap* _tmp0_;
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_GET_PRIVATE (self);
-#line 887 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_event_proxy = NULL;
-#line 888 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 888 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_events = _tmp0_;
-#line 9915 "Commands.c"
-}
-
-
-static void
-move_photos_command_real_move_photos_command_finalize (GObject * obj)
-{
- MovePhotosCommandRealMovePhotosCommand * self;
- SourceProxy* _tmp0_;
- guint _tmp1_;
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand);
-#line 914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->new_event_proxy;
-#line 914 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp1_, NULL, FALSE);
-#line 914 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self);
-#line 9933 "Commands.c"
- {
- GeeIterator* _proxy_it = NULL;
- GeeHashMap* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
- GeeIterator* _tmp7_;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->old_events;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_it = _tmp7_;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 9960 "Commands.c"
- GeeIterator* _tmp8_;
- SourceProxy* proxy = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- SourceProxy* _tmp11_;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _proxy_it;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 9972 "Commands.c"
- }
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _proxy_it;
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp10_;
-#line 917 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = proxy;
-#line 917 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp11_ != NULL) {
-#line 9984 "Commands.c"
- SourceProxy* _tmp12_;
- guint _tmp13_;
-#line 918 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = proxy;
-#line 918 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp13_, NULL, FALSE);
-#line 918 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self);
-#line 9993 "Commands.c"
- }
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 9997 "Commands.c"
- }
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_proxy_it);
-#line 10001 "Commands.c"
- }
-#line 887 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (self->priv->new_event_proxy);
-#line 888 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->old_events);
-#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (move_photos_command_real_move_photos_command_parent_class)->finalize (obj);
-#line 10009 "Commands.c"
-}
-
-
-GType
-move_photos_command_real_move_photos_command_get_type (void)
-{
- static volatile gsize move_photos_command_real_move_photos_command_type_id__volatile = 0;
- if (g_once_init_enter (&move_photos_command_real_move_photos_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MovePhotosCommandRealMovePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) move_photos_command_real_move_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MovePhotosCommandRealMovePhotosCommand), 0, (GInstanceInitFunc) move_photos_command_real_move_photos_command_instance_init, NULL };
- GType move_photos_command_real_move_photos_command_type_id;
- move_photos_command_real_move_photos_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "MovePhotosCommandRealMovePhotosCommand", &g_define_type_info, 0);
- g_once_init_leave (&move_photos_command_real_move_photos_command_type_id__volatile, move_photos_command_real_move_photos_command_type_id);
- }
- return move_photos_command_real_move_photos_command_type_id__volatile;
-}
-
-
-static void
-move_photos_command_class_init (MovePhotosCommandClass * klass)
-{
-#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
- move_photos_command_parent_class = g_type_class_peek_parent (klass);
-#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->prepare = (void (*) (Command *)) move_photos_command_real_prepare;
-#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) move_photos_command_real_execute;
-#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) move_photos_command_real_undo;
-#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = move_photos_command_finalize;
-#line 10040 "Commands.c"
-}
-
-
-static void
-move_photos_command_instance_init (MovePhotosCommand * self)
-{
-}
-
-
-static void
-move_photos_command_finalize (GObject * obj)
-{
- MovePhotosCommand * self;
-#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand);
-#line 965 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->real_command);
-#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (move_photos_command_parent_class)->finalize (obj);
-#line 10060 "Commands.c"
-}
-
-
-GType
-move_photos_command_get_type (void)
-{
- static volatile gsize move_photos_command_type_id__volatile = 0;
- if (g_once_init_enter (&move_photos_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MovePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) move_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MovePhotosCommand), 0, (GInstanceInitFunc) move_photos_command_instance_init, NULL };
- GType move_photos_command_type_id;
- move_photos_command_type_id = g_type_register_static (TYPE_COMMAND, "MovePhotosCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&move_photos_command_type_id__volatile, move_photos_command_type_id);
- }
- return move_photos_command_type_id__volatile;
-}
-
-
-NewEventCommand*
-new_event_command_construct (GType object_type,
- GeeIterable* iter)
-{
- NewEventCommand * self = NULL;
- MediaSource* key_source = NULL;
- MediaSource* _tmp9_;
- Event* new_event = NULL;
- MediaSource* _tmp10_;
- Event* _tmp11_;
- MovePhotosCommandRealMovePhotosCommand* _tmp12_;
-#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 989 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (NewEventCommand*) move_photos_command_construct (object_type, RESOURCES_NEW_EVENT_LABEL, "");
-#line 992 "/home/jens/Source/shotwell/src/Commands.vala"
- key_source = NULL;
-#line 10095 "Commands.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp0_;
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (iter);
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp0_;
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 10105 "Commands.c"
- GeeIterator* _tmp1_;
- DataView* view = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- MediaSource* current_source = NULL;
- DataView* _tmp4_;
- DataSource* _tmp5_;
- MediaSource* _tmp6_;
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _view_it;
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 10120 "Commands.c"
- }
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _view_it;
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp3_;
-#line 994 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = view;
-#line 994 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = data_view_get_source (_tmp4_);
-#line 994 "/home/jens/Source/shotwell/src/Commands.vala"
- current_source = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = key_source;
-#line 996 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ == NULL) {
-#line 10138 "Commands.c"
- MediaSource* _tmp7_;
- MediaSource* _tmp8_;
-#line 997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = current_source;
-#line 997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 997 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (key_source);
-#line 997 "/home/jens/Source/shotwell/src/Commands.vala"
- key_source = _tmp8_;
-#line 998 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (current_source);
-#line 998 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (view);
-#line 998 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 10155 "Commands.c"
- }
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (current_source);
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (view);
-#line 10161 "Commands.c"
- }
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_view_it);
-#line 10165 "Commands.c"
- }
-#line 1003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = key_source;
-#line 1003 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp9_ != NULL, "key_source != null");
-#line 1005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = key_source;
-#line 1005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = event_create_empty_event (_tmp10_);
-#line 1005 "/home/jens/Source/shotwell/src/Commands.vala"
- new_event = _tmp11_;
-#line 1007 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = move_photos_command_real_move_photos_command_new (new_event, iter, _ ("Creating New Event"), _ ("Removing Event"), RESOURCES_NEW_EVENT_LABEL, "");
-#line 1007 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command);
-#line 1007 "/home/jens/Source/shotwell/src/Commands.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp12_;
-#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (new_event);
-#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (key_source);
-#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 10189 "Commands.c"
-}
-
-
-NewEventCommand*
-new_event_command_new (GeeIterable* iter)
-{
-#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
- return new_event_command_construct (TYPE_NEW_EVENT_COMMAND, iter);
-#line 10198 "Commands.c"
-}
-
-
-static void
-new_event_command_class_init (NewEventCommandClass * klass)
-{
-#line 987 "/home/jens/Source/shotwell/src/Commands.vala"
- new_event_command_parent_class = g_type_class_peek_parent (klass);
-#line 10207 "Commands.c"
-}
-
-
-static void
-new_event_command_instance_init (NewEventCommand * self)
-{
-}
-
-
-GType
-new_event_command_get_type (void)
-{
- static volatile gsize new_event_command_type_id__volatile = 0;
- if (g_once_init_enter (&new_event_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (NewEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewEventCommand), 0, (GInstanceInitFunc) new_event_command_instance_init, NULL };
- GType new_event_command_type_id;
- new_event_command_type_id = g_type_register_static (TYPE_MOVE_PHOTOS_COMMAND, "NewEventCommand", &g_define_type_info, 0);
- g_once_init_leave (&new_event_command_type_id__volatile, new_event_command_type_id);
- }
- return new_event_command_type_id__volatile;
-}
-
-
-SetEventCommand*
-set_event_command_construct (GType object_type,
- GeeIterable* iter,
- Event* new_event)
-{
- SetEventCommand * self = NULL;
- MovePhotosCommandRealMovePhotosCommand* _tmp0_;
-#line 1014 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 1014 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_EVENT (new_event), NULL);
-#line 1015 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetEventCommand*) move_photos_command_construct (object_type, RESOURCES_SET_PHOTO_EVENT_LABEL, RESOURCES_SET_PHOTO_EVENT_TOOLTIP);
-#line 1017 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = move_photos_command_real_move_photos_command_new (new_event, iter, _ ("Moving Photos to New Event"), _ ("Setting Photos to Previous Event"), RESOURCES_SET_PHOTO_EVENT_LABEL, "");
-#line 1017 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command);
-#line 1017 "/home/jens/Source/shotwell/src/Commands.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp0_;
-#line 1014 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 10252 "Commands.c"
-}
-
-
-SetEventCommand*
-set_event_command_new (GeeIterable* iter,
- Event* new_event)
-{
-#line 1014 "/home/jens/Source/shotwell/src/Commands.vala"
- return set_event_command_construct (TYPE_SET_EVENT_COMMAND, iter, new_event);
-#line 10262 "Commands.c"
-}
-
-
-static void
-set_event_command_class_init (SetEventCommandClass * klass)
-{
-#line 1013 "/home/jens/Source/shotwell/src/Commands.vala"
- set_event_command_parent_class = g_type_class_peek_parent (klass);
-#line 10271 "Commands.c"
-}
-
-
-static void
-set_event_command_instance_init (SetEventCommand * self)
-{
-}
-
-
-GType
-set_event_command_get_type (void)
-{
- static volatile gsize set_event_command_type_id__volatile = 0;
- if (g_once_init_enter (&set_event_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SetEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetEventCommand), 0, (GInstanceInitFunc) set_event_command_instance_init, NULL };
- GType set_event_command_type_id;
- set_event_command_type_id = g_type_register_static (TYPE_MOVE_PHOTOS_COMMAND, "SetEventCommand", &g_define_type_info, 0);
- g_once_init_leave (&set_event_command_type_id__volatile, set_event_command_type_id);
- }
- return set_event_command_type_id__volatile;
-}
-
-
-MergeEventsCommand*
-merge_events_command_construct (GType object_type,
- GeeIterable* iter)
-{
- MergeEventsCommand * self = NULL;
- Event* master_event = NULL;
- gint named_evt_src_count = 0;
- gint unnamed_evt_src_count = 0;
- GeeArrayList* media_thumbs = NULL;
- GeeArrayList* _tmp0_;
- Event* _tmp37_;
- GeeArrayList* _tmp38_;
- gint _tmp39_;
- gint _tmp40_;
- Event* _tmp41_;
- GeeArrayList* _tmp42_;
- MovePhotosCommandRealMovePhotosCommand* _tmp43_;
-#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 1025 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MergeEventsCommand*) move_photos_command_construct (object_type, RESOURCES_MERGE_LABEL, "");
-#line 1031 "/home/jens/Source/shotwell/src/Commands.vala"
- master_event = NULL;
-#line 1032 "/home/jens/Source/shotwell/src/Commands.vala"
- named_evt_src_count = 0;
-#line 1033 "/home/jens/Source/shotwell/src/Commands.vala"
- unnamed_evt_src_count = 0;
-#line 1034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1034 "/home/jens/Source/shotwell/src/Commands.vala"
- media_thumbs = _tmp0_;
-#line 10326 "Commands.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp1_;
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (iter);
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp1_;
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 10336 "Commands.c"
- GeeIterator* _tmp2_;
- DataView* view = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- Event* event = NULL;
- DataView* _tmp5_;
- DataSource* _tmp6_;
- Event* _tmp7_;
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _view_it;
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 10351 "Commands.c"
- }
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _view_it;
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp4_;
-#line 1037 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = view;
-#line 1037 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = data_view_get_source (_tmp5_);
-#line 1037 "/home/jens/Source/shotwell/src/Commands.vala"
- event = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_EVENT, Event);
-#line 1040 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = master_event;
-#line 1040 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp7_ == NULL) {
-#line 10369 "Commands.c"
- Event* _tmp8_;
- Event* _tmp9_;
- Event* _tmp10_;
- Event* _tmp11_;
-#line 1043 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = event;
-#line 1043 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
-#line 1043 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (master_event);
-#line 1043 "/home/jens/Source/shotwell/src/Commands.vala"
- master_event = _tmp9_;
-#line 1044 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = master_event;
-#line 1044 "/home/jens/Source/shotwell/src/Commands.vala"
- unnamed_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_EVENT_SOURCE, EventSource));
-#line 1045 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = event;
-#line 1045 "/home/jens/Source/shotwell/src/Commands.vala"
- if (event_has_name (_tmp11_)) {
-#line 10390 "Commands.c"
- Event* _tmp12_;
-#line 1046 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = master_event;
-#line 1046 "/home/jens/Source/shotwell/src/Commands.vala"
- named_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_EVENT_SOURCE, EventSource));
-#line 10396 "Commands.c"
- }
- } else {
- Event* _tmp13_;
-#line 1050 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = event;
-#line 1050 "/home/jens/Source/shotwell/src/Commands.vala"
- if (event_has_name (_tmp13_)) {
-#line 10404 "Commands.c"
- Event* _tmp14_;
- gint _tmp15_;
-#line 1051 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = event;
-#line 1051 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = named_evt_src_count;
-#line 1051 "/home/jens/Source/shotwell/src/Commands.vala"
- if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_EVENT_SOURCE, EventSource)) > _tmp15_) {
-#line 10413 "Commands.c"
- Event* _tmp16_;
- Event* _tmp17_;
- Event* _tmp18_;
-#line 1052 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = event;
-#line 1052 "/home/jens/Source/shotwell/src/Commands.vala"
- named_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_EVENT_SOURCE, EventSource));
-#line 1053 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = event;
-#line 1053 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 1053 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (master_event);
-#line 1053 "/home/jens/Source/shotwell/src/Commands.vala"
- master_event = _tmp18_;
-#line 10429 "Commands.c"
- }
- } else {
- gint _tmp19_;
-#line 1055 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = named_evt_src_count;
-#line 1055 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp19_ == 0) {
-#line 10437 "Commands.c"
- Event* _tmp20_;
- gint _tmp21_;
-#line 1059 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = event;
-#line 1059 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = unnamed_evt_src_count;
-#line 1059 "/home/jens/Source/shotwell/src/Commands.vala"
- if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_EVENT_SOURCE, EventSource)) > _tmp21_) {
-#line 10446 "Commands.c"
- Event* _tmp22_;
- Event* _tmp23_;
- Event* _tmp24_;
-#line 1060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = event;
-#line 1060 "/home/jens/Source/shotwell/src/Commands.vala"
- unnamed_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT_SOURCE, EventSource));
-#line 1061 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = event;
-#line 1061 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _g_object_ref0 (_tmp23_);
-#line 1061 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (master_event);
-#line 1061 "/home/jens/Source/shotwell/src/Commands.vala"
- master_event = _tmp24_;
-#line 10462 "Commands.c"
- }
- }
- }
- }
- {
- GeeIterator* _media_source_it = NULL;
- Event* _tmp25_;
- GeeCollection* _tmp26_;
- GeeCollection* _tmp27_;
- GeeIterator* _tmp28_;
- GeeIterator* _tmp29_;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = event;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_EVENT_SOURCE, EventSource));
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _tmp26_;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = _tmp28_;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp27_);
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_source_it = _tmp29_;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 10490 "Commands.c"
- GeeIterator* _tmp30_;
- MediaSource* media_source = NULL;
- GeeIterator* _tmp31_;
- gpointer _tmp32_;
- GeeArrayList* _tmp33_;
- MediaSource* _tmp34_;
- ThumbnailView* _tmp35_;
- ThumbnailView* _tmp36_;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = _media_source_it;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp30_)) {
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 10505 "Commands.c"
- }
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = _media_source_it;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = gee_iterator_get (_tmp31_);
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source = (MediaSource*) _tmp32_;
-#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = media_thumbs;
-#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = media_source;
-#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = _tmp35_;
-#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_);
-#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp36_);
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (media_source);
-#line 10527 "Commands.c"
- }
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_media_source_it);
-#line 10531 "Commands.c"
- }
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (event);
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (view);
-#line 10537 "Commands.c"
- }
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_view_it);
-#line 10541 "Commands.c"
- }
-#line 1072 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = master_event;
-#line 1072 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp37_ != NULL, "master_event != null");
-#line 1073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = media_thumbs;
-#line 1073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = _tmp39_;
-#line 1073 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp40_ > 0, "media_thumbs.size > 0");
-#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = master_event;
-#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = media_thumbs;
-#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = move_photos_command_real_move_photos_command_new (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ITERABLE, GeeIterable), _ ("Merging"), _ ("Unmerging"), RESOURCES_MERGE_LABEL, "");
-#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command);
-#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp43_;
-#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (media_thumbs);
-#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (master_event);
-#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 10571 "Commands.c"
-}
-
-
-MergeEventsCommand*
-merge_events_command_new (GeeIterable* iter)
-{
-#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
- return merge_events_command_construct (TYPE_MERGE_EVENTS_COMMAND, iter);
-#line 10580 "Commands.c"
-}
-
-
-static void
-merge_events_command_class_init (MergeEventsCommandClass * klass)
-{
-#line 1023 "/home/jens/Source/shotwell/src/Commands.vala"
- merge_events_command_parent_class = g_type_class_peek_parent (klass);
-#line 10589 "Commands.c"
-}
-
-
-static void
-merge_events_command_instance_init (MergeEventsCommand * self)
-{
-}
-
-
-GType
-merge_events_command_get_type (void)
-{
- static volatile gsize merge_events_command_type_id__volatile = 0;
- if (g_once_init_enter (&merge_events_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MergeEventsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) merge_events_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MergeEventsCommand), 0, (GInstanceInitFunc) merge_events_command_instance_init, NULL };
- GType merge_events_command_type_id;
- merge_events_command_type_id = g_type_register_static (TYPE_MOVE_PHOTOS_COMMAND, "MergeEventsCommand", &g_define_type_info, 0);
- g_once_init_leave (&merge_events_command_type_id__volatile, merge_events_command_type_id);
- }
- return merge_events_command_type_id__volatile;
-}
-
-
-static void
-_duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 1092 "/home/jens/Source/shotwell/src/Commands.vala"
- duplicate_multiple_photos_command_on_photo_destroyed ((DuplicateMultiplePhotosCommand*) self, source);
-#line 10620 "Commands.c"
-}
-
-
-DuplicateMultiplePhotosCommand*
-duplicate_multiple_photos_command_construct (GType object_type,
- GeeIterable* iter)
-{
- DuplicateMultiplePhotosCommand * self = NULL;
- LibraryPhotoSourceCollection* _tmp0_;
-#line 1084 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 1085 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (DuplicateMultiplePhotosCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Duplicating photos"), _ ("Removing duplicated photos"), RESOURCES_DUPLICATE_PHOTO_LABEL, RESOURCES_DUPLICATE_PHOTO_TOOLTIP);
-#line 1088 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = library_photo_global;
-#line 1088 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
-#line 1084 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 10640 "Commands.c"
-}
-
-
-DuplicateMultiplePhotosCommand*
-duplicate_multiple_photos_command_new (GeeIterable* iter)
-{
-#line 1084 "/home/jens/Source/shotwell/src/Commands.vala"
- return duplicate_multiple_photos_command_construct (TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, iter);
-#line 10649 "Commands.c"
-}
-
-
-static void
-duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMultiplePhotosCommand* self,
- DataSource* source)
-{
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- gboolean _tmp4_;
-#line 1095 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (self));
-#line 1095 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->dupes;
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_collection_contains (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_) {
-#line 10680 "Commands.c"
- CommandManager* _tmp5_;
- CommandManager* _tmp6_;
-#line 1098 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 1098 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 1098 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp6_);
-#line 1098 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp6_);
-#line 10691 "Commands.c"
- }
-}
-
-
-static void
-duplicate_multiple_photos_command_real_execute (Command* base)
-{
- DuplicateMultiplePhotosCommand * self;
- GeeHashMap* _tmp0_;
- gint _tmp1_;
-#line 1101 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand);
-#line 1102 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->dupes;
-#line 1102 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1103 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->failed = 0;
-#line 1105 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (duplicate_multiple_photos_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 1107 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->failed;
-#line 1107 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ > 0) {
-#line 10716 "Commands.c"
- gchar* error_string = NULL;
- gint _tmp2_;
- gint _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
-#line 1108 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->failed;
-#line 1108 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->failed;
-#line 1108 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = g_strdup_printf (ngettext ("Unable to duplicate one photo due to a file error", "Unable to duplicate %d photos due to file errors", (gulong) _tmp2_), _tmp3_);
-#line 1108 "/home/jens/Source/shotwell/src/Commands.vala"
- error_string = _tmp4_;
-#line 1110 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = error_string;
-#line 1110 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp5_, NULL);
-#line 1107 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (error_string);
-#line 10736 "Commands.c"
- }
-}
-
-
-static void
-duplicate_multiple_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- DuplicateMultiplePhotosCommand * self;
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 1114 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand);
-#line 1114 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1115 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 1115 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp0_;
-#line 10757 "Commands.c"
- {
- LibraryPhoto* dupe = NULL;
- LibraryPhoto* _tmp1_;
- GeeHashMap* _tmp2_;
-#line 1118 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = library_photo_duplicate (photo, &_inner_error_);
-#line 1118 "/home/jens/Source/shotwell/src/Commands.vala"
- dupe = _tmp1_;
-#line 1118 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10768 "Commands.c"
- goto __catch466_g_error;
- }
-#line 1119 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->dupes;
-#line 1119 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, dupe);
-#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (dupe);
-#line 10777 "Commands.c"
- }
- goto __finally466;
- __catch466_g_error:
- {
- GError* err = NULL;
- GFile* _tmp3_;
- GFile* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GError* _tmp7_;
- const gchar* _tmp8_;
- gint _tmp9_;
-#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
- err = _inner_error_;
-#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
- _inner_error_ = NULL;
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = g_file_get_path (_tmp4_);
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = err;
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_->message;
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Commands.vala:1121: Unable to duplicate file %s: %s", _tmp6_, _tmp8_);
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp6_);
-#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 1122 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->failed;
-#line 1122 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->failed = _tmp9_ + 1;
-#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_error_free0 (err);
-#line 10818 "Commands.c"
- }
- __finally466:
-#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 1117 "/home/jens/Source/shotwell/src/Commands.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 1117 "/home/jens/Source/shotwell/src/Commands.vala"
- g_clear_error (&_inner_error_);
-#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 10831 "Commands.c"
- }
-#line 1114 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 10835 "Commands.c"
-}
-
-
-static void
-duplicate_multiple_photos_command_real_undo (Command* base)
-{
- DuplicateMultiplePhotosCommand * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- GeeHashMap* _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
-#line 1126 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand);
-#line 1128 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = library_photo_global;
-#line 1128 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 1128 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self);
-#line 1130 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (duplicate_multiple_photos_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 1133 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->dupes;
-#line 1133 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1134 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->failed = 0;
-#line 1137 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = library_photo_global;
-#line 1137 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
-#line 10867 "Commands.c"
-}
-
-
-static void
-duplicate_multiple_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- DuplicateMultiplePhotosCommand * self;
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- Marker* marker = NULL;
- LibraryPhotoSourceCollection* _tmp1_;
- GeeHashMap* _tmp2_;
- gpointer _tmp3_;
- LibraryPhoto* _tmp4_;
- Marker* _tmp5_;
- Marker* _tmp6_;
- LibraryPhotoSourceCollection* _tmp7_;
-#line 1140 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand);
-#line 1140 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1141 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 1141 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp0_;
-#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = library_photo_global;
-#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->dupes;
-#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = (LibraryPhoto*) _tmp3_;
-#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- marker = _tmp6_;
-#line 1144 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = library_photo_global;
-#line 1144 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_SOURCE_COLLECTION, SourceCollection), marker, TRUE, NULL, NULL, NULL);
-#line 1140 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (marker);
-#line 1140 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 10918 "Commands.c"
-}
-
-
-static void
-duplicate_multiple_photos_command_class_init (DuplicateMultiplePhotosCommandClass * klass)
-{
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- duplicate_multiple_photos_command_parent_class = g_type_class_peek_parent (klass);
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (DuplicateMultiplePhotosCommandPrivate));
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) duplicate_multiple_photos_command_real_execute;
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) duplicate_multiple_photos_command_real_execute_on_source;
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) duplicate_multiple_photos_command_real_undo;
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) duplicate_multiple_photos_command_real_undo_on_source;
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = duplicate_multiple_photos_command_finalize;
-#line 10939 "Commands.c"
-}
-
-
-static void
-duplicate_multiple_photos_command_instance_init (DuplicateMultiplePhotosCommand * self)
-{
- GeeHashMap* _tmp0_;
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_PRIVATE (self);
-#line 1081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1081 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->dupes = _tmp0_;
-#line 1082 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->failed = 0;
-#line 10955 "Commands.c"
-}
-
-
-static void
-duplicate_multiple_photos_command_finalize (GObject * obj)
-{
- DuplicateMultiplePhotosCommand * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand);
-#line 1092 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = library_photo_global;
-#line 1092 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 1092 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self);
-#line 1081 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->dupes);
-#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (duplicate_multiple_photos_command_parent_class)->finalize (obj);
-#line 10977 "Commands.c"
-}
-
-
-GType
-duplicate_multiple_photos_command_get_type (void)
-{
- static volatile gsize duplicate_multiple_photos_command_type_id__volatile = 0;
- if (g_once_init_enter (&duplicate_multiple_photos_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DuplicateMultiplePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) duplicate_multiple_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DuplicateMultiplePhotosCommand), 0, (GInstanceInitFunc) duplicate_multiple_photos_command_instance_init, NULL };
- GType duplicate_multiple_photos_command_type_id;
- duplicate_multiple_photos_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "DuplicateMultiplePhotosCommand", &g_define_type_info, 0);
- g_once_init_leave (&duplicate_multiple_photos_command_type_id__volatile, duplicate_multiple_photos_command_type_id);
- }
- return duplicate_multiple_photos_command_type_id__volatile;
-}
-
-
-SetRatingSingleCommand*
-set_rating_single_command_construct (GType object_type,
- DataSource* source,
- Rating rating)
-{
- SetRatingSingleCommand * self = NULL;
- const gchar* _tmp0_;
-#line 1154 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 1155 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = resources_rating_label (rating);
-#line 1155 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRatingSingleCommand*) single_data_source_command_construct (object_type, source, _tmp0_, "");
-#line 1156 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->set_direct = TRUE;
-#line 1157 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_rating = rating;
-#line 1159 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->last_rating = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
-#line 1154 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 11016 "Commands.c"
-}
-
-
-SetRatingSingleCommand*
-set_rating_single_command_new (DataSource* source,
- Rating rating)
-{
-#line 1154 "/home/jens/Source/shotwell/src/Commands.vala"
- return set_rating_single_command_construct (TYPE_SET_RATING_SINGLE_COMMAND, source, rating);
-#line 11026 "Commands.c"
-}
-
-
-SetRatingSingleCommand*
-set_rating_single_command_construct_inc_dec (GType object_type,
- DataSource* source,
- gboolean is_incrementing)
-{
- SetRatingSingleCommand * self = NULL;
- const gchar* _tmp0_ = NULL;
-#line 1162 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 1163 "/home/jens/Source/shotwell/src/Commands.vala"
- if (is_incrementing) {
-#line 1163 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = RESOURCES_INCREASE_RATING_LABEL;
-#line 11043 "Commands.c"
- } else {
-#line 1164 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = RESOURCES_DECREASE_RATING_LABEL;
-#line 11047 "Commands.c"
- }
-#line 1163 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRatingSingleCommand*) single_data_source_command_construct (object_type, source, _tmp0_, "");
-#line 1165 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->set_direct = FALSE;
-#line 1166 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->incrementing = is_incrementing;
-#line 1168 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->last_rating = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1162 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 11059 "Commands.c"
-}
-
-
-SetRatingSingleCommand*
-set_rating_single_command_new_inc_dec (DataSource* source,
- gboolean is_incrementing)
-{
-#line 1162 "/home/jens/Source/shotwell/src/Commands.vala"
- return set_rating_single_command_construct_inc_dec (TYPE_SET_RATING_SINGLE_COMMAND, source, is_incrementing);
-#line 11069 "Commands.c"
-}
-
-
-static void
-set_rating_single_command_real_execute (Command* base)
-{
- SetRatingSingleCommand * self;
- gboolean _tmp0_;
-#line 1171 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand);
-#line 1172 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->set_direct;
-#line 1172 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_) {
-#line 11084 "Commands.c"
- DataSource* _tmp1_;
- Rating _tmp2_;
-#line 1173 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 1173 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->new_rating;
-#line 1173 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource), _tmp2_);
-#line 11093 "Commands.c"
- } else {
- gboolean _tmp3_;
-#line 1175 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->incrementing;
-#line 1175 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
-#line 11100 "Commands.c"
- DataSource* _tmp4_;
-#line 1176 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 1176 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_increase_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 11106 "Commands.c"
- } else {
- DataSource* _tmp5_;
-#line 1178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 1178 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_decrease_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 11113 "Commands.c"
- }
- }
-}
-
-
-static void
-set_rating_single_command_real_undo (Command* base)
-{
- SetRatingSingleCommand * self;
- DataSource* _tmp0_;
- Rating _tmp1_;
-#line 1182 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand);
-#line 1183 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
-#line 1183 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->last_rating;
-#line 1183 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 11133 "Commands.c"
-}
-
-
-static void
-set_rating_single_command_class_init (SetRatingSingleCommandClass * klass)
-{
-#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
- set_rating_single_command_parent_class = g_type_class_peek_parent (klass);
-#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (SetRatingSingleCommandPrivate));
-#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) set_rating_single_command_real_execute;
-#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) set_rating_single_command_real_undo;
-#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = set_rating_single_command_finalize;
-#line 11150 "Commands.c"
-}
-
-
-static void
-set_rating_single_command_instance_init (SetRatingSingleCommand * self)
-{
-#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = SET_RATING_SINGLE_COMMAND_GET_PRIVATE (self);
-#line 11159 "Commands.c"
-}
-
-
-static void
-set_rating_single_command_finalize (GObject * obj)
-{
- SetRatingSingleCommand * self;
-#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand);
-#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (set_rating_single_command_parent_class)->finalize (obj);
-#line 11171 "Commands.c"
-}
-
-
-GType
-set_rating_single_command_get_type (void)
-{
- static volatile gsize set_rating_single_command_type_id__volatile = 0;
- if (g_once_init_enter (&set_rating_single_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SetRatingSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_rating_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRatingSingleCommand), 0, (GInstanceInitFunc) set_rating_single_command_instance_init, NULL };
- GType set_rating_single_command_type_id;
- set_rating_single_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "SetRatingSingleCommand", &g_define_type_info, 0);
- g_once_init_leave (&set_rating_single_command_type_id__volatile, set_rating_single_command_type_id);
- }
- return set_rating_single_command_type_id__volatile;
-}
-
-
-SetRatingCommand*
-set_rating_command_construct (GType object_type,
- GeeIterable* iter,
- Rating rating)
-{
- SetRatingCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
-#line 1194 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = resources_rating_progress (rating);
-#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_rating_label (rating);
-#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRatingCommand*) multiple_data_source_command_construct (object_type, iter, _tmp1_, _ ("Restoring previous rating"), _tmp2_, "");
-#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 1197 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->set_direct = TRUE;
-#line 1198 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_rating = rating;
-#line 1200 "/home/jens/Source/shotwell/src/Commands.vala"
- set_rating_command_save_source_states (self, iter);
-#line 1194 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 11218 "Commands.c"
-}
-
-
-SetRatingCommand*
-set_rating_command_new (GeeIterable* iter,
- Rating rating)
-{
-#line 1194 "/home/jens/Source/shotwell/src/Commands.vala"
- return set_rating_command_construct (TYPE_SET_RATING_COMMAND, iter, rating);
-#line 11228 "Commands.c"
-}
-
-
-SetRatingCommand*
-set_rating_command_construct_inc_dec (GType object_type,
- GeeIterable* iter,
- gboolean is_incrementing)
-{
- SetRatingCommand * self = NULL;
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
-#line 1203 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 1205 "/home/jens/Source/shotwell/src/Commands.vala"
- if (is_incrementing) {
-#line 1205 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _ ("Increasing ratings");
-#line 11247 "Commands.c"
- } else {
-#line 1205 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _ ("Decreasing ratings");
-#line 11251 "Commands.c"
- }
-#line 1206 "/home/jens/Source/shotwell/src/Commands.vala"
- if (is_incrementing) {
-#line 1206 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _ ("Decreasing ratings");
-#line 11257 "Commands.c"
- } else {
-#line 1206 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _ ("Increasing ratings");
-#line 11261 "Commands.c"
- }
-#line 1207 "/home/jens/Source/shotwell/src/Commands.vala"
- if (is_incrementing) {
-#line 1207 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = RESOURCES_INCREASE_RATING_LABEL;
-#line 11267 "Commands.c"
- } else {
-#line 1207 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = RESOURCES_DECREASE_RATING_LABEL;
-#line 11271 "Commands.c"
- }
-#line 1204 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRatingCommand*) multiple_data_source_command_construct (object_type, iter, _tmp0_, _tmp1_, _tmp2_, "");
-#line 1209 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->set_direct = FALSE;
-#line 1210 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->incrementing = is_incrementing;
-#line 1212 "/home/jens/Source/shotwell/src/Commands.vala"
- set_rating_command_save_source_states (self, iter);
-#line 1203 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 11283 "Commands.c"
-}
-
-
-SetRatingCommand*
-set_rating_command_new_inc_dec (GeeIterable* iter,
- gboolean is_incrementing)
-{
-#line 1203 "/home/jens/Source/shotwell/src/Commands.vala"
- return set_rating_command_construct_inc_dec (TYPE_SET_RATING_COMMAND, iter, is_incrementing);
-#line 11293 "Commands.c"
-}
-
-
-static void
-set_rating_command_save_source_states (SetRatingCommand* self,
- GeeIterable* iter)
-{
- GeeHashMap* _tmp0_;
-#line 1215 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SET_RATING_COMMAND (self));
-#line 1215 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_ITERABLE (iter));
-#line 1216 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_RATING, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1216 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->last_rating_map);
-#line 1216 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->last_rating_map = _tmp0_;
-#line 11312 "Commands.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp1_;
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (iter);
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp1_;
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 11322 "Commands.c"
- GeeIterator* _tmp2_;
- DataView* view = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- DataSource* source = NULL;
- DataView* _tmp5_;
- DataSource* _tmp6_;
- GeeHashMap* _tmp7_;
- DataSource* _tmp8_;
- DataSource* _tmp9_;
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _view_it;
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 11339 "Commands.c"
- }
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _view_it;
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp4_;
-#line 1219 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = view;
-#line 1219 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = data_view_get_source (_tmp5_);
-#line 1219 "/home/jens/Source/shotwell/src/Commands.vala"
- source = _tmp6_;
-#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->last_rating_map;
-#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = source;
-#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = source;
-#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, (gpointer) ((gintptr) media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource))));
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (view);
-#line 11365 "Commands.c"
- }
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_view_it);
-#line 11369 "Commands.c"
- }
-}
-
-
-static void
-set_rating_command_real_execute (Command* base)
-{
- SetRatingCommand * self;
-#line 1224 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand);
-#line 1225 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->action_count = 0;
-#line 1226 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (set_rating_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 11384 "Commands.c"
-}
-
-
-static void
-set_rating_command_real_undo (Command* base)
-{
- SetRatingCommand * self;
-#line 1229 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand);
-#line 1230 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->action_count = 0;
-#line 1231 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (set_rating_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 11398 "Commands.c"
-}
-
-
-static void
-set_rating_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- SetRatingCommand * self;
- gboolean _tmp0_;
-#line 1234 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand);
-#line 1234 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1235 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->set_direct;
-#line 1235 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_) {
-#line 11416 "Commands.c"
- Rating _tmp1_;
-#line 1236 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_rating;
-#line 1236 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 11422 "Commands.c"
- } else {
- gboolean _tmp2_;
-#line 1238 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->incrementing;
-#line 1238 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_) {
-#line 1239 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_increase_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 11431 "Commands.c"
- } else {
-#line 1241 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_decrease_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 11435 "Commands.c"
- }
- }
-}
-
-
-static void
-set_rating_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- SetRatingCommand * self;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 1245 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand);
-#line 1245 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1246 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->last_rating_map;
-#line 1246 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source);
-#line 1246 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), (Rating) ((gintptr) _tmp1_));
-#line 11458 "Commands.c"
-}
-
-
-static void
-set_rating_command_class_init (SetRatingCommandClass * klass)
-{
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- set_rating_command_parent_class = g_type_class_peek_parent (klass);
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (SetRatingCommandPrivate));
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) set_rating_command_real_execute;
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) set_rating_command_real_undo;
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_rating_command_real_execute_on_source;
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_rating_command_real_undo_on_source;
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = set_rating_command_finalize;
-#line 11479 "Commands.c"
-}
-
-
-static void
-set_rating_command_instance_init (SetRatingCommand * self)
-{
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = SET_RATING_COMMAND_GET_PRIVATE (self);
-#line 1192 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->action_count = 0;
-#line 11490 "Commands.c"
-}
-
-
-static void
-set_rating_command_finalize (GObject * obj)
-{
- SetRatingCommand * self;
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RATING_COMMAND, SetRatingCommand);
-#line 1188 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->last_rating_map);
-#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (set_rating_command_parent_class)->finalize (obj);
-#line 11504 "Commands.c"
-}
-
-
-GType
-set_rating_command_get_type (void)
-{
- static volatile gsize set_rating_command_type_id__volatile = 0;
- if (g_once_init_enter (&set_rating_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SetRatingCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_rating_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRatingCommand), 0, (GInstanceInitFunc) set_rating_command_instance_init, NULL };
- GType set_rating_command_type_id;
- set_rating_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "SetRatingCommand", &g_define_type_info, 0);
- g_once_init_leave (&set_rating_command_type_id__volatile, set_rating_command_type_id);
- }
- return set_rating_command_type_id__volatile;
-}
-
-
-SetRawDeveloperCommand*
-set_raw_developer_command_construct (GType object_type,
- GeeIterable* iter,
- RawDeveloper developer)
-{
- SetRawDeveloperCommand * self = NULL;
-#line 1255 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 1256 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRawDeveloperCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Setting RAW developer"), _ ("Restoring previous RAW developer"), _ ("Set Developer"), "");
-#line 1258 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_developer = developer;
-#line 1259 "/home/jens/Source/shotwell/src/Commands.vala"
- set_raw_developer_command_save_source_states (self, iter);
-#line 1255 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 11538 "Commands.c"
-}
-
-
-SetRawDeveloperCommand*
-set_raw_developer_command_new (GeeIterable* iter,
- RawDeveloper developer)
-{
-#line 1255 "/home/jens/Source/shotwell/src/Commands.vala"
- return set_raw_developer_command_construct (TYPE_SET_RAW_DEVELOPER_COMMAND, iter, developer);
-#line 11548 "Commands.c"
-}
-
-
-static void
-set_raw_developer_command_save_source_states (SetRawDeveloperCommand* self,
- GeeIterable* iter)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 1262 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_SET_RAW_DEVELOPER_COMMAND (self));
-#line 1262 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_ITERABLE (iter));
-#line 1263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_RAW_DEVELOPER, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1263 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->last_developer_map);
-#line 1263 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->last_developer_map = _tmp0_;
-#line 1264 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_PHOTO_TRANSFORMATION_STATE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1264 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->last_transformation_map);
-#line 1264 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->last_transformation_map = _tmp1_;
-#line 11574 "Commands.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp2_;
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_iterable_iterator (iter);
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp2_;
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 11584 "Commands.c"
- GeeIterator* _tmp3_;
- DataView* view = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- Photo* photo = NULL;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _view_it;
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 11600 "Commands.c"
- }
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _view_it;
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp5_;
-#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = view;
-#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
-#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO) ? ((Photo*) _tmp7_) : NULL;
-#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_ == NULL) {
-#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp7_);
-#line 11618 "Commands.c"
- }
-#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp8_;
-#line 1268 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = photo;
-#line 1268 "/home/jens/Source/shotwell/src/Commands.vala"
- if (set_raw_developer_command_is_raw_photo (self, _tmp9_)) {
-#line 11626 "Commands.c"
- GeeHashMap* _tmp10_;
- Photo* _tmp11_;
- Photo* _tmp12_;
- GeeHashMap* _tmp13_;
- Photo* _tmp14_;
- Photo* _tmp15_;
- PhotoTransformationState* _tmp16_;
- PhotoTransformationState* _tmp17_;
-#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->last_developer_map;
-#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = photo;
-#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = photo;
-#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, (gpointer) ((gintptr) photo_get_raw_developer (_tmp12_)));
-#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->last_transformation_map;
-#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = photo;
-#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = photo;
-#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = photo_save_transformation_state (_tmp15_);
-#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
-#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_, _tmp17_);
-#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp17_);
-#line 11657 "Commands.c"
- }
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (view);
-#line 11663 "Commands.c"
- }
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_view_it);
-#line 11667 "Commands.c"
- }
-}
-
-
-static void
-set_raw_developer_command_real_execute (Command* base)
-{
- SetRawDeveloperCommand * self;
-#line 1275 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
-#line 1276 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (set_raw_developer_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 11680 "Commands.c"
-}
-
-
-static void
-set_raw_developer_command_real_undo (Command* base)
-{
- SetRawDeveloperCommand * self;
-#line 1279 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
-#line 1280 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (set_raw_developer_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 11692 "Commands.c"
-}
-
-
-static void
-set_raw_developer_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- SetRawDeveloperCommand * self;
- Photo* photo = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
-#line 1283 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
-#line 1283 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1284 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL);
-#line 1284 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp0_;
-#line 1285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = photo;
-#line 1285 "/home/jens/Source/shotwell/src/Commands.vala"
- if (set_raw_developer_command_is_raw_photo (self, _tmp1_)) {
-#line 11716 "Commands.c"
- gboolean _tmp2_ = FALSE;
- RawDeveloper _tmp3_;
-#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->new_developer;
-#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ == RAW_DEVELOPER_CAMERA) {
-#line 11723 "Commands.c"
- Photo* _tmp4_;
-#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = photo;
-#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = !photo_is_raw_developer_available (_tmp4_, RAW_DEVELOPER_CAMERA);
-#line 11729 "Commands.c"
- } else {
-#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = FALSE;
-#line 11733 "Commands.c"
- }
-#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_) {
-#line 11737 "Commands.c"
- Photo* _tmp5_;
-#line 1287 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = photo;
-#line 1287 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_raw_developer (_tmp5_, RAW_DEVELOPER_EMBEDDED, TRUE);
-#line 11743 "Commands.c"
- } else {
- Photo* _tmp6_;
- RawDeveloper _tmp7_;
-#line 1289 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = photo;
-#line 1289 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->new_developer;
-#line 1289 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_raw_developer (_tmp6_, _tmp7_, TRUE);
-#line 11753 "Commands.c"
- }
- }
-#line 1283 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 11758 "Commands.c"
-}
-
-
-static void
-set_raw_developer_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- SetRawDeveloperCommand * self;
- Photo* photo = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
-#line 1293 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
-#line 1293 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL);
-#line 1294 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp0_;
-#line 1295 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = photo;
-#line 1295 "/home/jens/Source/shotwell/src/Commands.vala"
- if (set_raw_developer_command_is_raw_photo (self, _tmp1_)) {
-#line 11782 "Commands.c"
- Photo* _tmp2_;
- GeeHashMap* _tmp3_;
- Photo* _tmp4_;
- gpointer _tmp5_;
- Photo* _tmp6_;
- GeeHashMap* _tmp7_;
- Photo* _tmp8_;
- gpointer _tmp9_;
- PhotoTransformationState* _tmp10_;
-#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo;
-#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->last_developer_map;
-#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = photo;
-#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_);
-#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_raw_developer (_tmp2_, (RawDeveloper) ((gintptr) _tmp5_), TRUE);
-#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = photo;
-#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->last_transformation_map;
-#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = photo;
-#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_);
-#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = (PhotoTransformationState*) _tmp9_;
-#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_load_transformation_state (_tmp6_, _tmp10_);
-#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp10_);
-#line 11816 "Commands.c"
- }
-#line 1293 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 11820 "Commands.c"
-}
-
-
-static gboolean
-set_raw_developer_command_is_raw_photo (SetRawDeveloperCommand* self,
- Photo* photo)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 1301 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_SET_RAW_DEVELOPER_COMMAND (self), FALSE);
-#line 1301 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail ((photo == NULL) || IS_PHOTO (photo), FALSE);
-#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- if (photo != NULL) {
-#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo_get_master_file_format (photo) == PHOTO_FILE_FORMAT_RAW;
-#line 11838 "Commands.c"
- } else {
-#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = FALSE;
-#line 11842 "Commands.c"
- }
-#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- result = _tmp0_;
-#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 11848 "Commands.c"
-}
-
-
-static void
-set_raw_developer_command_class_init (SetRawDeveloperCommandClass * klass)
-{
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- set_raw_developer_command_parent_class = g_type_class_peek_parent (klass);
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (SetRawDeveloperCommandPrivate));
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) set_raw_developer_command_real_execute;
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) set_raw_developer_command_real_undo;
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_raw_developer_command_real_execute_on_source;
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_raw_developer_command_real_undo_on_source;
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = set_raw_developer_command_finalize;
-#line 11869 "Commands.c"
-}
-
-
-static void
-set_raw_developer_command_instance_init (SetRawDeveloperCommand * self)
-{
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = SET_RAW_DEVELOPER_COMMAND_GET_PRIVATE (self);
-#line 11878 "Commands.c"
-}
-
-
-static void
-set_raw_developer_command_finalize (GObject * obj)
-{
- SetRawDeveloperCommand * self;
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
-#line 1251 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->last_developer_map);
-#line 1252 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->last_transformation_map);
-#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (set_raw_developer_command_parent_class)->finalize (obj);
-#line 11894 "Commands.c"
-}
-
-
-GType
-set_raw_developer_command_get_type (void)
-{
- static volatile gsize set_raw_developer_command_type_id__volatile = 0;
- if (g_once_init_enter (&set_raw_developer_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SetRawDeveloperCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_raw_developer_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRawDeveloperCommand), 0, (GInstanceInitFunc) set_raw_developer_command_instance_init, NULL };
- GType set_raw_developer_command_type_id;
- set_raw_developer_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "SetRawDeveloperCommand", &g_define_type_info, 0);
- g_once_init_leave (&set_raw_developer_command_type_id__volatile, set_raw_developer_command_type_id);
- }
- return set_raw_developer_command_type_id__volatile;
-}
-
-
-AdjustDateTimePhotoCommand*
-adjust_date_time_photo_command_construct (GType object_type,
- Dateable* dateable,
- gint64 time_shift,
- gboolean modify_original)
-{
- AdjustDateTimePhotoCommand * self = NULL;
- Dateable* _tmp0_;
-#line 1312 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_DATEABLE (dateable), NULL);
-#line 1313 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AdjustDateTimePhotoCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_DATA_SOURCE, DataSource), RESOURCES_ADJUST_DATE_TIME_LABEL, "");
-#line 1315 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (dateable);
-#line 1315 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->dateable);
-#line 1315 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->dateable = _tmp0_;
-#line 1316 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->time_shift = time_shift;
-#line 1317 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->modify_original = modify_original;
-#line 1312 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 11936 "Commands.c"
-}
-
-
-AdjustDateTimePhotoCommand*
-adjust_date_time_photo_command_new (Dateable* dateable,
- gint64 time_shift,
- gboolean modify_original)
-{
-#line 1312 "/home/jens/Source/shotwell/src/Commands.vala"
- return adjust_date_time_photo_command_construct (TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, dateable, time_shift, modify_original);
-#line 11947 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photo_command_real_execute (Command* base)
-{
- AdjustDateTimePhotoCommand * self;
- Dateable* _tmp0_;
- Dateable* _tmp1_;
- gint64 _tmp2_;
- Dateable* _tmp3_;
- Event* _tmp4_;
- ViewCollection* all_events = NULL;
- ViewCollection* _tmp5_;
- Dateable* _tmp21_;
- ViewCollection* _tmp22_;
-#line 1320 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand);
-#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->dateable;
-#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->dateable;
-#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->time_shift;
-#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photo_command_set_time (self, _tmp0_, dateable_get_exposure_time (_tmp1_) + ((time_t) _tmp2_));
-#line 1323 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->dateable;
-#line 1323 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1323 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->prev_event);
-#line 1323 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->prev_event = _tmp4_;
-#line 1325 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = view_collection_new ("tmp");
-#line 1325 "/home/jens/Source/shotwell/src/Commands.vala"
- all_events = _tmp5_;
-#line 11986 "Commands.c"
- {
- GeeIterator* _dobj_it = NULL;
- EventSourceCollection* _tmp6_;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
- GeeIterator* _tmp9_;
- GeeIterator* _tmp10_;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = event_global;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp8_);
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _dobj_it = _tmp10_;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 12010 "Commands.c"
- GeeIterator* _tmp11_;
- DataObject* dobj = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- Event* event = NULL;
- DataObject* _tmp14_;
- Event* _tmp15_;
- Event* _tmp16_;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _dobj_it;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 12025 "Commands.c"
- }
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _dobj_it;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- dobj = (DataObject*) _tmp13_;
-#line 1328 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = dobj;
-#line 1328 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_EVENT) ? ((Event*) _tmp14_) : NULL);
-#line 1328 "/home/jens/Source/shotwell/src/Commands.vala"
- event = _tmp15_;
-#line 1329 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = event;
-#line 1329 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp16_ != NULL) {
-#line 12043 "Commands.c"
- ViewCollection* _tmp17_;
- Event* _tmp18_;
- EventView* _tmp19_;
- EventView* _tmp20_;
-#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = all_events;
-#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = event;
-#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_EVENT_SOURCE, EventSource));
-#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _tmp19_;
-#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject));
-#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp20_);
-#line 12060 "Commands.c"
- }
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (event);
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (dobj);
-#line 12066 "Commands.c"
- }
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_dobj_it);
-#line 12070 "Commands.c"
- }
-#line 1333 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = self->priv->dateable;
-#line 1333 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = all_events;
-#line 1333 "/home/jens/Source/shotwell/src/Commands.vala"
- event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE, MediaSource), _tmp22_, NULL);
-#line 1320 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (all_events);
-#line 12080 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photo_command_real_undo (Command* base)
-{
- AdjustDateTimePhotoCommand * self;
- Dateable* _tmp0_;
- Dateable* _tmp1_;
- gint64 _tmp2_;
- Dateable* _tmp3_;
- Event* _tmp4_;
-#line 1336 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand);
-#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->dateable;
-#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->dateable;
-#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->time_shift;
-#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photo_command_set_time (self, _tmp0_, dateable_get_exposure_time (_tmp1_) - ((time_t) _tmp2_));
-#line 1339 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->dateable;
-#line 1339 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->prev_event;
-#line 1339 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), _tmp4_);
-#line 12109 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* self,
- Dateable* dateable,
- time_t exposure_time)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- GError * _inner_error_ = NULL;
-#line 1342 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_ADJUST_DATE_TIME_PHOTO_COMMAND (self));
-#line 1342 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATEABLE (dateable));
-#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->modify_original;
-#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
-#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (dateable, TYPE_PHOTO);
-#line 12131 "Commands.c"
- } else {
-#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = FALSE;
-#line 12135 "Commands.c"
- }
-#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_) {
-#line 12139 "Commands.c"
- {
-#line 1345 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_exposure_time_persistent (G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_PHOTO, Photo), exposure_time, &_inner_error_);
-#line 1345 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12145 "Commands.c"
- goto __catch467_g_error;
- }
- }
- goto __finally467;
- __catch467_g_error:
- {
- GError* err = NULL;
-#line 1344 "/home/jens/Source/shotwell/src/Commands.vala"
- err = _inner_error_;
-#line 1344 "/home/jens/Source/shotwell/src/Commands.vala"
- _inner_error_ = NULL;
-#line 1347 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_ ("Original photo could not be adjusted."), NULL);
-#line 1344 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_error_free0 (err);
-#line 12161 "Commands.c"
- }
- __finally467:
-#line 1344 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1344 "/home/jens/Source/shotwell/src/Commands.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 1344 "/home/jens/Source/shotwell/src/Commands.vala"
- g_clear_error (&_inner_error_);
-#line 1344 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 12172 "Commands.c"
- }
- } else {
-#line 1350 "/home/jens/Source/shotwell/src/Commands.vala"
- dateable_set_exposure_time (dateable, exposure_time);
-#line 12177 "Commands.c"
- }
-}
-
-
-static void
-adjust_date_time_photo_command_class_init (AdjustDateTimePhotoCommandClass * klass)
-{
-#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photo_command_parent_class = g_type_class_peek_parent (klass);
-#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (AdjustDateTimePhotoCommandPrivate));
-#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) adjust_date_time_photo_command_real_execute;
-#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) adjust_date_time_photo_command_real_undo;
-#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = adjust_date_time_photo_command_finalize;
-#line 12195 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photo_command_instance_init (AdjustDateTimePhotoCommand * self)
-{
-#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = ADJUST_DATE_TIME_PHOTO_COMMAND_GET_PRIVATE (self);
-#line 12204 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photo_command_finalize (GObject * obj)
-{
- AdjustDateTimePhotoCommand * self;
-#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand);
-#line 1307 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->dateable);
-#line 1308 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->prev_event);
-#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (adjust_date_time_photo_command_parent_class)->finalize (obj);
-#line 12220 "Commands.c"
-}
-
-
-GType
-adjust_date_time_photo_command_get_type (void)
-{
- static volatile gsize adjust_date_time_photo_command_type_id__volatile = 0;
- if (g_once_init_enter (&adjust_date_time_photo_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (AdjustDateTimePhotoCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_date_time_photo_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustDateTimePhotoCommand), 0, (GInstanceInitFunc) adjust_date_time_photo_command_instance_init, NULL };
- GType adjust_date_time_photo_command_type_id;
- adjust_date_time_photo_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "AdjustDateTimePhotoCommand", &g_define_type_info, 0);
- g_once_init_leave (&adjust_date_time_photo_command_type_id__volatile, adjust_date_time_photo_command_type_id);
- }
- return adjust_date_time_photo_command_type_id__volatile;
-}
-
-
-static time_t*
-_time_t_dup (time_t* self)
-{
- time_t* dup;
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- dup = g_new0 (time_t, 1);
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- memcpy (dup, self, sizeof (time_t));
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- return dup;
-#line 12248 "Commands.c"
-}
-
-
-static gpointer
-__time_t_dup0 (gpointer self)
-{
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- return self ? _time_t_dup (self) : NULL;
-#line 12257 "Commands.c"
-}
-
-
-AdjustDateTimePhotosCommand*
-adjust_date_time_photos_command_construct (GType object_type,
- GeeIterable* iter,
- gint64 time_shift,
- gboolean keep_relativity,
- gboolean modify_originals)
-{
- AdjustDateTimePhotosCommand * self = NULL;
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp22_;
-#line 1366 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
-#line 1368 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AdjustDateTimePhotosCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Adjusting Date and Time"), _ ("Undoing Date and Time Adjustment"), RESOURCES_ADJUST_DATE_TIME_LABEL, "");
-#line 1371 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->time_shift = time_shift;
-#line 1372 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->keep_relativity = keep_relativity;
-#line 1373 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->modify_originals = modify_originals;
-#line 1377 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1377 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->prev_events);
-#line 1377 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->prev_events = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
-#line 12287 "Commands.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp1_;
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (iter);
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp1_;
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 12297 "Commands.c"
- GeeIterator* _tmp2_;
- DataView* view = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeMap* _tmp5_;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- Dateable* _tmp8_;
- Dateable* _tmp9_;
- DataView* _tmp10_;
- DataSource* _tmp11_;
- MediaSource* _tmp12_;
- MediaSource* _tmp13_;
- Event* _tmp14_;
- Event* _tmp15_;
- time_t* _tmp16_;
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _view_it;
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 12320 "Commands.c"
- }
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _view_it;
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp4_;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->prev_events;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = view;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_DATEABLE) ? ((Dateable*) _tmp7_) : NULL;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_ == NULL) {
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp7_);
-#line 12340 "Commands.c"
- }
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = view;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = data_view_get_source (_tmp10_);
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp11_) : NULL;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_ == NULL) {
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 12354 "Commands.c"
- }
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tmp12_;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = media_source_get_event (_tmp13_);
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_map_set (_tmp5_, _tmp9_, _tmp15_);
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp15_);
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp9_);
-#line 1383 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = self->priv->new_time;
-#line 1383 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp16_ == NULL) {
-#line 12374 "Commands.c"
- DataView* _tmp17_;
- DataSource* _tmp18_;
- Dateable* _tmp19_;
- time_t _tmp20_;
- time_t* _tmp21_;
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = view;
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = data_view_get_source (_tmp17_);
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATEABLE, Dateable);
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = dateable_get_exposure_time (_tmp19_) + ((time_t) time_shift);
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = __time_t_dup0 (&_tmp20_);
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_time);
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_time = _tmp21_;
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp19_);
-#line 1386 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (view);
-#line 1386 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 12400 "Commands.c"
- }
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (view);
-#line 12404 "Commands.c"
- }
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_view_it);
-#line 12408 "Commands.c"
- }
-#line 1390 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = gee_hash_map_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INVALID, (GBoxedCopyFunc) _time_t_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1390 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->old_times);
-#line 1390 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_times = _tmp22_;
-#line 1366 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 12418 "Commands.c"
-}
-
-
-AdjustDateTimePhotosCommand*
-adjust_date_time_photos_command_new (GeeIterable* iter,
- gint64 time_shift,
- gboolean keep_relativity,
- gboolean modify_originals)
-{
-#line 1366 "/home/jens/Source/shotwell/src/Commands.vala"
- return adjust_date_time_photos_command_construct (TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, iter, time_shift, keep_relativity, modify_originals);
-#line 12430 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photos_command_real_execute (Command* base)
-{
- AdjustDateTimePhotosCommand * self;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- ViewCollection* all_events = NULL;
- ViewCollection* _tmp8_;
-#line 1393 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand);
-#line 1394 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1394 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->error_list);
-#line 1394 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->error_list = _tmp0_;
-#line 1395 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (adjust_date_time_photos_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 1397 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->error_list;
-#line 1397 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1397 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1397 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ > 0) {
-#line 12462 "Commands.c"
- GeeArrayList* _tmp4_;
- GeeArrayList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 1398 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->error_list;
-#line 1398 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->error_list;
-#line 1398 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1398 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
-#line 1398 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_object_error_dialog (_tmp4_, ngettext ("One original photo could not be adjusted.", "The following original photos could not be adjusted.", (gulong) _tmp7_), _ ("Time Adjustment Error"));
-#line 12477 "Commands.c"
- }
-#line 1404 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = view_collection_new ("tmp");
-#line 1404 "/home/jens/Source/shotwell/src/Commands.vala"
- all_events = _tmp8_;
-#line 12483 "Commands.c"
- {
- GeeIterator* _d_it = NULL;
- GeeMap* _tmp9_;
- GeeSet* _tmp10_;
- GeeSet* _tmp11_;
- GeeSet* _tmp12_;
- GeeIterator* _tmp13_;
- GeeIterator* _tmp14_;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->prev_events;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_map_get_keys (_tmp9_);
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tmp11_;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp12_);
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _d_it = _tmp14_;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 12510 "Commands.c"
- GeeIterator* _tmp15_;
- Dateable* d = NULL;
- GeeIterator* _tmp16_;
- gpointer _tmp17_;
- Dateable* _tmp33_;
- ViewCollection* _tmp34_;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _d_it;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp15_)) {
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 12523 "Commands.c"
- }
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _d_it;
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_iterator_get (_tmp16_);
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- d = (Dateable*) _tmp17_;
-#line 12531 "Commands.c"
- {
- GeeIterator* _dobj_it = NULL;
- EventSourceCollection* _tmp18_;
- GeeCollection* _tmp19_;
- GeeCollection* _tmp20_;
- GeeIterator* _tmp21_;
- GeeIterator* _tmp22_;
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = event_global;
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _tmp19_;
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp20_);
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _dobj_it = _tmp22_;
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 12555 "Commands.c"
- GeeIterator* _tmp23_;
- DataObject* dobj = NULL;
- GeeIterator* _tmp24_;
- gpointer _tmp25_;
- Event* event = NULL;
- DataObject* _tmp26_;
- Event* _tmp27_;
- Event* _tmp28_;
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _dobj_it;
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp23_)) {
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 12570 "Commands.c"
- }
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _dobj_it;
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = gee_iterator_get (_tmp24_);
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- dobj = (DataObject*) _tmp25_;
-#line 1408 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = dobj;
-#line 1408 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, TYPE_EVENT) ? ((Event*) _tmp26_) : NULL);
-#line 1408 "/home/jens/Source/shotwell/src/Commands.vala"
- event = _tmp27_;
-#line 1409 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = event;
-#line 1409 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp28_ != NULL) {
-#line 12588 "Commands.c"
- ViewCollection* _tmp29_;
- Event* _tmp30_;
- EventView* _tmp31_;
- EventView* _tmp32_;
-#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = all_events;
-#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = event;
-#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_EVENT_SOURCE, EventSource));
-#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = _tmp31_;
-#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_OBJECT, DataObject));
-#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp32_);
-#line 12605 "Commands.c"
- }
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (event);
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (dobj);
-#line 12611 "Commands.c"
- }
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_dobj_it);
-#line 12615 "Commands.c"
- }
-#line 1413 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = d;
-#line 1413 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = all_events;
-#line 1413 "/home/jens/Source/shotwell/src/Commands.vala"
- event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_MEDIA_SOURCE, MediaSource), _tmp34_, NULL);
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (d);
-#line 12625 "Commands.c"
- }
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_d_it);
-#line 12629 "Commands.c"
- }
-#line 1393 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (all_events);
-#line 12633 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photos_command_real_undo (Command* base)
-{
- AdjustDateTimePhotosCommand * self;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 1417 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand);
-#line 1418 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1418 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->error_list);
-#line 1418 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->error_list = _tmp0_;
-#line 1419 "/home/jens/Source/shotwell/src/Commands.vala"
- COMMAND_CLASS (adjust_date_time_photos_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 1421 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->error_list;
-#line 1421 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1421 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1421 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ > 0) {
-#line 12663 "Commands.c"
- GeeArrayList* _tmp4_;
- GeeArrayList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 1422 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->error_list;
-#line 1422 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->error_list;
-#line 1422 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1422 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
-#line 1422 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_object_error_dialog (_tmp4_, ngettext ("Time adjustments could not be undone on the following photo file.", "Time adjustments could not be undone on the following photo files.", (gulong) _tmp7_), _ ("Time Adjustment Error"));
-#line 12678 "Commands.c"
- }
-}
-
-
-static void
-adjust_date_time_photos_command_set_time (AdjustDateTimePhotosCommand* self,
- Dateable* dateable,
- time_t exposure_time)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- GError * _inner_error_ = NULL;
-#line 1429 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_ADJUST_DATE_TIME_PHOTOS_COMMAND (self));
-#line 1429 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATEABLE (dateable));
-#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->modify_originals;
-#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
-#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (dateable, TYPE_PHOTO);
-#line 12701 "Commands.c"
- } else {
-#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = FALSE;
-#line 12705 "Commands.c"
- }
-#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_) {
-#line 12709 "Commands.c"
- {
-#line 1435 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_exposure_time_persistent (G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_PHOTO, Photo), exposure_time, &_inner_error_);
-#line 1435 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12715 "Commands.c"
- goto __catch468_g_error;
- }
- }
- goto __finally468;
- __catch468_g_error:
- {
- GError* err = NULL;
- GeeArrayList* _tmp2_;
-#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
- err = _inner_error_;
-#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
- _inner_error_ = NULL;
-#line 1437 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->error_list;
-#line 1437 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), dateable);
-#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_error_free0 (err);
-#line 12734 "Commands.c"
- }
- __finally468:
-#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1434 "/home/jens/Source/shotwell/src/Commands.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 1434 "/home/jens/Source/shotwell/src/Commands.vala"
- g_clear_error (&_inner_error_);
-#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 12745 "Commands.c"
- }
- } else {
-#line 1442 "/home/jens/Source/shotwell/src/Commands.vala"
- dateable_set_exposure_time (dateable, exposure_time);
-#line 12750 "Commands.c"
- }
-}
-
-
-static void
-adjust_date_time_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- AdjustDateTimePhotosCommand * self;
- Dateable* dateable = NULL;
- Dateable* _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
- ViewCollection* all_events = NULL;
- ViewCollection* _tmp13_;
- Dateable* _tmp29_;
- ViewCollection* _tmp30_;
-#line 1446 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand);
-#line 1446 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1447 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATEABLE, Dateable));
-#line 1447 "/home/jens/Source/shotwell/src/Commands.vala"
- dateable = _tmp0_;
-#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->keep_relativity;
-#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_) {
-#line 12780 "Commands.c"
- Dateable* _tmp3_;
-#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = dateable;
-#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = dateable_get_exposure_time (_tmp3_) != ((time_t) 0);
-#line 12786 "Commands.c"
- } else {
-#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = FALSE;
-#line 12790 "Commands.c"
- }
-#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
-#line 12794 "Commands.c"
- Dateable* _tmp4_;
- Dateable* _tmp5_;
- gint64 _tmp6_;
-#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = dateable;
-#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = dateable;
-#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->time_shift;
-#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_set_time (self, _tmp4_, dateable_get_exposure_time (_tmp5_) + ((time_t) _tmp6_));
-#line 12806 "Commands.c"
- } else {
- GeeHashMap* _tmp7_;
- Dateable* _tmp8_;
- Dateable* _tmp9_;
- time_t _tmp10_;
- Dateable* _tmp11_;
- time_t* _tmp12_;
-#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->old_times;
-#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = dateable;
-#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = dateable;
-#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = dateable_get_exposure_time (_tmp9_);
-#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, &_tmp10_);
-#line 1453 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = dateable;
-#line 1453 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->new_time;
-#line 1453 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_set_time (self, _tmp11_, *_tmp12_);
-#line 12830 "Commands.c"
- }
-#line 1456 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = view_collection_new ("tmp");
-#line 1456 "/home/jens/Source/shotwell/src/Commands.vala"
- all_events = _tmp13_;
-#line 12836 "Commands.c"
- {
- GeeIterator* _dobj_it = NULL;
- EventSourceCollection* _tmp14_;
- GeeCollection* _tmp15_;
- GeeCollection* _tmp16_;
- GeeIterator* _tmp17_;
- GeeIterator* _tmp18_;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = event_global;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _tmp17_;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp16_);
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _dobj_it = _tmp18_;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 12860 "Commands.c"
- GeeIterator* _tmp19_;
- DataObject* dobj = NULL;
- GeeIterator* _tmp20_;
- gpointer _tmp21_;
- Event* event = NULL;
- DataObject* _tmp22_;
- Event* _tmp23_;
- Event* _tmp24_;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _dobj_it;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp19_)) {
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 12875 "Commands.c"
- }
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _dobj_it;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_iterator_get (_tmp20_);
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- dobj = (DataObject*) _tmp21_;
-#line 1459 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = dobj;
-#line 1459 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_EVENT) ? ((Event*) _tmp22_) : NULL);
-#line 1459 "/home/jens/Source/shotwell/src/Commands.vala"
- event = _tmp23_;
-#line 1460 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = event;
-#line 1460 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp24_ != NULL) {
-#line 12893 "Commands.c"
- ViewCollection* _tmp25_;
- Event* _tmp26_;
- EventView* _tmp27_;
- EventView* _tmp28_;
-#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = all_events;
-#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = event;
-#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_EVENT_SOURCE, EventSource));
-#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _tmp27_;
-#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_OBJECT, DataObject));
-#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp28_);
-#line 12910 "Commands.c"
- }
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (event);
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (dobj);
-#line 12916 "Commands.c"
- }
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_dobj_it);
-#line 12920 "Commands.c"
- }
-#line 1464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = dateable;
-#line 1464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = all_events;
-#line 1464 "/home/jens/Source/shotwell/src/Commands.vala"
- event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource), _tmp30_, NULL);
-#line 1446 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (all_events);
-#line 1446 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (dateable);
-#line 12932 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
- DataSource* source)
-{
- AdjustDateTimePhotosCommand * self;
- Dateable* photo = NULL;
- Dateable* _tmp0_;
- GeeHashMap* _tmp1_;
- Dateable* _tmp2_;
- GeeMap* _tmp13_;
- gpointer _tmp14_;
- Event* _tmp15_;
-#line 1467 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand);
-#line 1467 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1468 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATEABLE, Dateable));
-#line 1468 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp0_;
-#line 1470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_times;
-#line 1470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo;
-#line 1470 "/home/jens/Source/shotwell/src/Commands.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_)) {
-#line 12962 "Commands.c"
- Dateable* _tmp3_;
- GeeHashMap* _tmp4_;
- Dateable* _tmp5_;
- gpointer _tmp6_;
- time_t* _tmp7_;
- GeeHashMap* _tmp8_;
- Dateable* _tmp9_;
-#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = photo;
-#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->old_times;
-#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = photo;
-#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
-#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = (time_t*) _tmp6_;
-#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_set_time (self, _tmp3_, *_tmp7_);
-#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp7_);
-#line 1472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->old_times;
-#line 1472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = photo;
-#line 1472 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL);
-#line 12990 "Commands.c"
- } else {
- Dateable* _tmp10_;
- Dateable* _tmp11_;
- gint64 _tmp12_;
-#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = photo;
-#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = photo;
-#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->time_shift;
-#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_set_time (self, _tmp10_, dateable_get_exposure_time (_tmp11_) - ((time_t) _tmp12_));
-#line 13003 "Commands.c"
- }
-#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->prev_events;
-#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_map_get (_tmp13_, G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_DATEABLE) ? ((Dateable*) source) : NULL);
-#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = (Event*) _tmp14_;
-#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_event (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_MEDIA_SOURCE) ? ((MediaSource*) source) : NULL, _tmp15_);
-#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp15_);
-#line 1467 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (photo);
-#line 13017 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photos_command_class_init (AdjustDateTimePhotosCommandClass * klass)
-{
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_parent_class = g_type_class_peek_parent (klass);
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (AdjustDateTimePhotosCommandPrivate));
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) adjust_date_time_photos_command_real_execute;
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) adjust_date_time_photos_command_real_undo;
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) adjust_date_time_photos_command_real_execute_on_source;
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) adjust_date_time_photos_command_real_undo_on_source;
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = adjust_date_time_photos_command_finalize;
-#line 13038 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photos_command_instance_init (AdjustDateTimePhotosCommand * self)
-{
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_PRIVATE (self);
-#line 1362 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_time = NULL;
-#line 13049 "Commands.c"
-}
-
-
-static void
-adjust_date_time_photos_command_finalize (GObject * obj)
-{
- AdjustDateTimePhotosCommand * self;
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand);
-#line 1359 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->prev_events);
-#line 1362 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_time);
-#line 1363 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->old_times);
-#line 1364 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->error_list);
-#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (adjust_date_time_photos_command_parent_class)->finalize (obj);
-#line 13069 "Commands.c"
-}
-
-
-GType
-adjust_date_time_photos_command_get_type (void)
-{
- static volatile gsize adjust_date_time_photos_command_type_id__volatile = 0;
- if (g_once_init_enter (&adjust_date_time_photos_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (AdjustDateTimePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_date_time_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustDateTimePhotosCommand), 0, (GInstanceInitFunc) adjust_date_time_photos_command_instance_init, NULL };
- GType adjust_date_time_photos_command_type_id;
- adjust_date_time_photos_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "AdjustDateTimePhotosCommand", &g_define_type_info, 0);
- g_once_init_leave (&adjust_date_time_photos_command_type_id__volatile, adjust_date_time_photos_command_type_id);
- }
- return adjust_date_time_photos_command_type_id__volatile;
-}
-
-
-static void
-_add_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self)
-{
-#line 1521 "/home/jens/Source/shotwell/src/Commands.vala"
- add_tags_command_on_proxy_broken ((AddTagsCommand*) self);
-#line 13093 "Commands.c"
-}
-
-
-static void
-_add_tags_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 1523 "/home/jens/Source/shotwell/src/Commands.vala"
- add_tags_command_on_source_destroyed ((AddTagsCommand*) self, source);
-#line 13104 "Commands.c"
-}
-
-
-AddTagsCommand*
-add_tags_command_construct (GType object_type,
- gchar** paths,
- int paths_length1,
- GeeCollection* sources)
-{
- AddTagsCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- LibraryPhotoSourceCollection* _tmp38_;
- VideoSourceCollection* _tmp39_;
-#line 1485 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
-#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = resources_add_tags_label (paths, paths_length1);
-#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AddTagsCommand*) page_command_construct (object_type, _tmp1_, "");
-#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 13129 "Commands.c"
- {
- gchar** path_collection = NULL;
- gint path_collection_length1 = 0;
- gint _path_collection_size_ = 0;
- gint path_it = 0;
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- path_collection = paths;
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- path_collection_length1 = paths_length1;
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- for (path_it = 0; path_it < paths_length1; path_it = path_it + 1) {
-#line 13141 "Commands.c"
- gchar* _tmp2_;
- gchar* path = NULL;
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = g_strdup (path_collection[path_it]);
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp2_;
-#line 13148 "Commands.c"
- {
- GeeList* paths_to_create = NULL;
- const gchar* _tmp3_;
- GeeList* _tmp4_;
- GeeList* _tmp5_;
- const gchar* _tmp6_;
-#line 1492 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = path;
-#line 1492 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp3_);
-#line 1492 "/home/jens/Source/shotwell/src/Commands.vala"
- paths_to_create = _tmp4_;
-#line 1494 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = paths_to_create;
-#line 1494 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = path;
-#line 1494 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_);
-#line 13167 "Commands.c"
- {
- GeeList* _create_path_list = NULL;
- GeeList* _tmp7_;
- GeeList* _tmp8_;
- gint _create_path_size = 0;
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _create_path_index = 0;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = paths_to_create;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _create_path_list = _tmp8_;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _create_path_list;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _create_path_size = _tmp11_;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _create_path_index = -1;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 13195 "Commands.c"
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gchar* create_path = NULL;
- GeeList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
- Tag* tag = NULL;
- const gchar* _tmp18_;
- Tag* _tmp19_;
- SourceProxy* tag_proxy = NULL;
- Tag* _tmp20_;
- SourceProxy* _tmp21_;
- GeeArrayList* add_sources = NULL;
- GeeArrayList* _tmp22_;
- GeeArrayList* _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _create_path_index;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _create_path_index = _tmp12_ + 1;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _create_path_index;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _create_path_size;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp13_ < _tmp14_)) {
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 13226 "Commands.c"
- }
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _create_path_list;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _create_path_index;
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- create_path = (gchar*) _tmp17_;
-#line 1497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = create_path;
-#line 1497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = tag_for_path (_tmp18_);
-#line 1497 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp19_;
-#line 1498 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = tag;
-#line 1498 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PROXYABLE, Proxyable));
-#line 1498 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_proxy = _tmp21_;
-#line 1502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1502 "/home/jens/Source/shotwell/src/Commands.vala"
- add_sources = _tmp22_;
-#line 13252 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp23_;
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp23_;
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 13262 "Commands.c"
- GeeIterator* _tmp24_;
- MediaSource* source = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- Tag* _tmp27_;
- MediaSource* _tmp28_;
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _source_it;
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp24_)) {
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 13275 "Commands.c"
- }
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _source_it;
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp26_;
-#line 1504 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = tag;
-#line 1504 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = source;
-#line 1504 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!tag_contains (_tmp27_, _tmp28_)) {
-#line 13289 "Commands.c"
- GeeArrayList* _tmp29_;
- MediaSource* _tmp30_;
-#line 1505 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = add_sources;
-#line 1505 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = source;
-#line 1505 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp30_);
-#line 13298 "Commands.c"
- }
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 13302 "Commands.c"
- }
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 13306 "Commands.c"
- }
-#line 1508 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = add_sources;
-#line 1508 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1508 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = _tmp32_;
-#line 1508 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp33_ > 0) {
-#line 13316 "Commands.c"
- SourceProxy* _tmp34_;
- GeeHashMap* _tmp35_;
- SourceProxy* _tmp36_;
- GeeArrayList* _tmp37_;
-#line 1509 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = tag_proxy;
-#line 1509 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp34_, "broken", (GCallback) _add_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 1510 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = self->priv->map;
-#line 1510 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = tag_proxy;
-#line 1510 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = add_sources;
-#line 1510 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp36_, _tmp37_);
-#line 13333 "Commands.c"
- }
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (add_sources);
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (tag_proxy);
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (tag);
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (create_path);
-#line 13343 "Commands.c"
- }
-#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_create_path_list);
-#line 13347 "Commands.c"
- }
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (paths_to_create);
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path);
-#line 13353 "Commands.c"
- }
- }
- }
-#line 1515 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = library_photo_global;
-#line 1515 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
-#line 1516 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = video_global;
-#line 1516 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
-#line 1485 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 13367 "Commands.c"
-}
-
-
-AddTagsCommand*
-add_tags_command_new (gchar** paths,
- int paths_length1,
- GeeCollection* sources)
-{
-#line 1485 "/home/jens/Source/shotwell/src/Commands.vala"
- return add_tags_command_construct (TYPE_ADD_TAGS_COMMAND, paths, paths_length1, sources);
-#line 13378 "Commands.c"
-}
-
-
-static void
-add_tags_command_real_execute (Command* base)
-{
- AddTagsCommand * self;
-#line 1527 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADD_TAGS_COMMAND, AddTagsCommand);
-#line 13388 "Commands.c"
- {
- GeeIterator* _tag_proxy_it = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->map;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_proxy_it = _tmp5_;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 13415 "Commands.c"
- GeeIterator* _tmp6_;
- SourceProxy* tag_proxy = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- SourceProxy* _tmp9_;
- DataSource* _tmp10_;
- Tag* _tmp11_;
- GeeHashMap* _tmp12_;
- SourceProxy* _tmp13_;
- gpointer _tmp14_;
- GeeArrayList* _tmp15_;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tag_proxy_it;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 13433 "Commands.c"
- }
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tag_proxy_it;
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_proxy = (SourceProxy*) _tmp8_;
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_proxy;
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = source_proxy_get_source (_tmp9_);
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_TAG, Tag);
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->map;
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = tag_proxy;
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_);
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = (GeeArrayList*) _tmp14_;
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach_many (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp15_);
-#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (tag_proxy);
-#line 13463 "Commands.c"
- }
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tag_proxy_it);
-#line 13467 "Commands.c"
- }
-}
-
-
-static void
-add_tags_command_real_undo (Command* base)
-{
- AddTagsCommand * self;
-#line 1532 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADD_TAGS_COMMAND, AddTagsCommand);
-#line 13478 "Commands.c"
- {
- GeeIterator* _tag_proxy_it = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->map;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_proxy_it = _tmp5_;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 13505 "Commands.c"
- GeeIterator* _tmp6_;
- SourceProxy* tag_proxy = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- Tag* tag = NULL;
- SourceProxy* _tmp9_;
- DataSource* _tmp10_;
- Tag* _tmp11_;
- GeeHashMap* _tmp12_;
- SourceProxy* _tmp13_;
- gpointer _tmp14_;
- GeeArrayList* _tmp15_;
- GeeMultiMap* _tmp16_;
- GeeMultiMap* _tmp17_;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tag_proxy_it;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 13526 "Commands.c"
- }
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tag_proxy_it;
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_proxy = (SourceProxy*) _tmp8_;
-#line 1534 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_proxy;
-#line 1534 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = source_proxy_get_source (_tmp9_);
-#line 1534 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_TAG, Tag);
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = tag;
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->map;
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = tag_proxy;
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_);
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = (GeeArrayList*) _tmp14_;
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = tag_detach_many (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp17_);
-#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp15_);
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (tag);
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (tag_proxy);
-#line 13562 "Commands.c"
- }
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tag_proxy_it);
-#line 13566 "Commands.c"
- }
-}
-
-
-static void
-add_tags_command_on_source_destroyed (AddTagsCommand* self,
- DataSource* source)
-{
-#line 1540 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_ADD_TAGS_COMMAND (self));
-#line 1540 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 13579 "Commands.c"
- {
- GeeIterator* _sources_it = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->map;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _sources_it = _tmp5_;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 13606 "Commands.c"
- GeeIterator* _tmp6_;
- GeeArrayList* sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- GeeArrayList* _tmp9_;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _sources_it;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 13618 "Commands.c"
- }
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _sources_it;
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- sources = (GeeArrayList*) _tmp8_;
-#line 1542 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = sources;
-#line 1542 "/home/jens/Source/shotwell/src/Commands.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource))) {
-#line 13630 "Commands.c"
- CommandManager* _tmp10_;
- CommandManager* _tmp11_;
-#line 1543 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 1543 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 1543 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp11_);
-#line 1543 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp11_);
-#line 1545 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (sources);
-#line 1545 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_sources_it);
-#line 1545 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 13647 "Commands.c"
- }
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (sources);
-#line 13651 "Commands.c"
- }
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_sources_it);
-#line 13655 "Commands.c"
- }
-}
-
-
-static void
-add_tags_command_on_proxy_broken (AddTagsCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 1550 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_ADD_TAGS_COMMAND (self));
-#line 1551 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 1551 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 1551 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 1551 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 13675 "Commands.c"
-}
-
-
-static void
-add_tags_command_class_init (AddTagsCommandClass * klass)
-{
-#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
- add_tags_command_parent_class = g_type_class_peek_parent (klass);
-#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (AddTagsCommandPrivate));
-#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) add_tags_command_real_execute;
-#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) add_tags_command_real_undo;
-#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = add_tags_command_finalize;
-#line 13692 "Commands.c"
-}
-
-
-static void
-add_tags_command_instance_init (AddTagsCommand * self)
-{
- GeeHashMap* _tmp0_;
-#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = ADD_TAGS_COMMAND_GET_PRIVATE (self);
-#line 1482 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_map_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, GEE_TYPE_ARRAY_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1482 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->map = _tmp0_;
-#line 13706 "Commands.c"
-}
-
-
-static void
-add_tags_command_finalize (GObject * obj)
-{
- AddTagsCommand * self;
- LibraryPhotoSourceCollection* _tmp11_;
- guint _tmp12_;
- VideoSourceCollection* _tmp13_;
- guint _tmp14_;
-#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADD_TAGS_COMMAND, AddTagsCommand);
-#line 13720 "Commands.c"
- {
- GeeIterator* _tag_proxy_it = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->map;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_proxy_it = _tmp5_;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 13747 "Commands.c"
- GeeIterator* _tmp6_;
- SourceProxy* tag_proxy = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- SourceProxy* _tmp9_;
- guint _tmp10_;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tag_proxy_it;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 13760 "Commands.c"
- }
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tag_proxy_it;
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_proxy = (SourceProxy*) _tmp8_;
-#line 1521 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_proxy;
-#line 1521 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp10_, NULL, FALSE);
-#line 1521 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _add_tags_command_on_proxy_broken_source_proxy_broken, self);
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (tag_proxy);
-#line 13776 "Commands.c"
- }
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tag_proxy_it);
-#line 13780 "Commands.c"
- }
-#line 1523 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = library_photo_global;
-#line 1523 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp12_, NULL, FALSE);
-#line 1523 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self);
-#line 1524 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = video_global;
-#line 1524 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp14_, NULL, FALSE);
-#line 1524 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self);
-#line 1482 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->map);
-#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (add_tags_command_parent_class)->finalize (obj);
-#line 13798 "Commands.c"
-}
-
-
-GType
-add_tags_command_get_type (void)
-{
- static volatile gsize add_tags_command_type_id__volatile = 0;
- if (g_once_init_enter (&add_tags_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (AddTagsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) add_tags_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AddTagsCommand), 0, (GInstanceInitFunc) add_tags_command_instance_init, NULL };
- GType add_tags_command_type_id;
- add_tags_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "AddTagsCommand", &g_define_type_info, 0);
- g_once_init_leave (&add_tags_command_type_id__volatile, add_tags_command_type_id);
- }
- return add_tags_command_type_id__volatile;
-}
-
-
-RenameTagCommand*
-rename_tag_command_construct (GType object_type,
- Tag* tag,
- const gchar* new_name)
-{
- RenameTagCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 1560 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 1560 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_name != NULL, NULL);
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag_get_user_visible_name (tag);
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_rename_tag_label (_tmp1_, new_name);
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RenameTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp3_, _tmp5_);
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 1564 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = tag_get_user_visible_name (tag);
-#line 1564 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_name);
-#line 1564 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_name = _tmp6_;
-#line 1565 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = g_strdup (new_name);
-#line 1565 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_name);
-#line 1565 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_name = _tmp7_;
-#line 1560 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 13868 "Commands.c"
-}
-
-
-RenameTagCommand*
-rename_tag_command_new (Tag* tag,
- const gchar* new_name)
-{
-#line 1560 "/home/jens/Source/shotwell/src/Commands.vala"
- return rename_tag_command_construct (TYPE_RENAME_TAG_COMMAND, tag, new_name);
-#line 13878 "Commands.c"
-}
-
-
-static void
-rename_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- RenameTagCommand * self;
- const gchar* _tmp0_;
-#line 1568 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_TAG_COMMAND, RenameTagCommand);
-#line 1568 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1569 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->new_name;
-#line 1569 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!tag_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag), _tmp0_)) {
-#line 13896 "Commands.c"
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_name;
-#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_rename_tag_exists_message (_tmp1_);
-#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp3_, NULL);
-#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
-#line 13910 "Commands.c"
- }
-}
-
-
-static void
-rename_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- RenameTagCommand * self;
- const gchar* _tmp0_;
-#line 1573 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_TAG_COMMAND, RenameTagCommand);
-#line 1573 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1574 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->old_name;
-#line 1574 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!tag_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag), _tmp0_)) {
-#line 13929 "Commands.c"
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_name;
-#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_rename_tag_exists_message (_tmp1_);
-#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp3_, NULL);
-#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
-#line 13943 "Commands.c"
- }
-}
-
-
-static void
-rename_tag_command_class_init (RenameTagCommandClass * klass)
-{
-#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
- rename_tag_command_parent_class = g_type_class_peek_parent (klass);
-#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (RenameTagCommandPrivate));
-#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_tag_command_real_execute_on_source;
-#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_tag_command_real_undo_on_source;
-#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = rename_tag_command_finalize;
-#line 13961 "Commands.c"
-}
-
-
-static void
-rename_tag_command_instance_init (RenameTagCommand * self)
-{
-#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = RENAME_TAG_COMMAND_GET_PRIVATE (self);
-#line 13970 "Commands.c"
-}
-
-
-static void
-rename_tag_command_finalize (GObject * obj)
-{
- RenameTagCommand * self;
-#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_TAG_COMMAND, RenameTagCommand);
-#line 1556 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_name);
-#line 1557 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_name);
-#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (rename_tag_command_parent_class)->finalize (obj);
-#line 13986 "Commands.c"
-}
-
-
-GType
-rename_tag_command_get_type (void)
-{
- static volatile gsize rename_tag_command_type_id__volatile = 0;
- if (g_once_init_enter (&rename_tag_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RenameTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameTagCommand), 0, (GInstanceInitFunc) rename_tag_command_instance_init, NULL };
- GType rename_tag_command_type_id;
- rename_tag_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "RenameTagCommand", &g_define_type_info, 0);
- g_once_init_leave (&rename_tag_command_type_id__volatile, rename_tag_command_type_id);
- }
- return rename_tag_command_type_id__volatile;
-}
-
-
-DeleteTagCommand*
-delete_tag_command_construct (GType object_type,
- Tag* tag)
-{
- DeleteTagCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 1582 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag_get_user_visible_name (tag);
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_delete_tag_label (_tmp1_);
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (DeleteTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp3_, _tmp5_);
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 1582 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 14039 "Commands.c"
-}
-
-
-DeleteTagCommand*
-delete_tag_command_new (Tag* tag)
-{
-#line 1582 "/home/jens/Source/shotwell/src/Commands.vala"
- return delete_tag_command_construct (TYPE_DELETE_TAG_COMMAND, tag);
-#line 14048 "Commands.c"
-}
-
-
-static void
-_delete_tag_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self)
-{
-#line 1597 "/home/jens/Source/shotwell/src/Commands.vala"
- delete_tag_command_on_proxy_broken ((DeleteTagCommand*) self);
-#line 14058 "Commands.c"
-}
-
-
-static void
-delete_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- DeleteTagCommand * self;
- Tag* tag = NULL;
- Tag* _tmp0_;
- GeeList* recursive_victims = NULL;
- Tag* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- TagSourceCollection* _tmp28_;
- TagSourceCollection* _tmp29_;
- Marker* _tmp30_;
- Marker* _tmp31_;
-#line 1586 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand);
-#line 1586 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1587 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
-#line 1587 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp0_;
-#line 1590 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag;
-#line 1590 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_get_hierarchical_children (_tmp1_);
-#line 1590 "/home/jens/Source/shotwell/src/Commands.vala"
- recursive_victims = _tmp2_;
-#line 1591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = recursive_victims;
-#line 1591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 1591 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_ > 0) {
-#line 14101 "Commands.c"
- GeeArrayList* _tmp6_;
-#line 1594 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
-#line 1594 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->recursive_victim_proxies);
-#line 1594 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->recursive_victim_proxies = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList);
-#line 14109 "Commands.c"
- {
- GeeList* _victim_list = NULL;
- GeeList* _tmp7_;
- GeeList* _tmp8_;
- gint _victim_size = 0;
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _victim_index = 0;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = recursive_victims;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _victim_list = _tmp8_;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _victim_list;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _victim_size = _tmp11_;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _victim_index = -1;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 14137 "Commands.c"
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- Tag* victim = NULL;
- GeeList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
- SourceProxy* proxy = NULL;
- Tag* _tmp18_;
- SourceProxy* _tmp19_;
- SourceProxy* _tmp20_;
- GeeList* _tmp21_;
- SourceProxy* _tmp22_;
- TagSourceCollection* _tmp23_;
- TagSourceCollection* _tmp24_;
- Tag* _tmp25_;
- Marker* _tmp26_;
- Marker* _tmp27_;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _victim_index;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _victim_index = _tmp12_ + 1;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _victim_index;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _victim_size;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp13_ < _tmp14_)) {
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 14168 "Commands.c"
- }
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _victim_list;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _victim_index;
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- victim = (Tag*) _tmp17_;
-#line 1596 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = victim;
-#line 1596 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PROXYABLE, Proxyable));
-#line 1596 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = _tmp19_;
-#line 1597 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = proxy;
-#line 1597 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp20_, "broken", (GCallback) _delete_tag_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 1598 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = self->priv->recursive_victim_proxies;
-#line 1598 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = proxy;
-#line 1598 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_);
-#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = tag_global;
-#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = tag_global;
-#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = victim;
-#line 1600 "/home/jens/Source/shotwell/src/Commands.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 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _tmp26_;
-#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp27_, FALSE, NULL, NULL, NULL);
-#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp27_);
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (victim);
-#line 14212 "Commands.c"
- }
-#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_victim_list);
-#line 14216 "Commands.c"
- }
- }
-#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = tag_global;
-#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = tag_global;
-#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = _tmp30_;
-#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp31_, FALSE, NULL, NULL, NULL);
-#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp31_);
-#line 1586 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (recursive_victims);
-#line 1586 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (tag);
-#line 14235 "Commands.c"
-}
-
-
-static void
-delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- DeleteTagCommand * self;
- GeeList* _tmp0_;
-#line 1608 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand);
-#line 1608 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1611 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TAG), "source is Tag");
-#line 1614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->recursive_victim_proxies;
-#line 1614 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_ != NULL) {
-#line 14255 "Commands.c"
- {
- gint i = 0;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->recursive_victim_proxies;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp3_ - 1;
-#line 14269 "Commands.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = TRUE;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 14276 "Commands.c"
- gint _tmp6_;
- SourceProxy* proxy = NULL;
- GeeList* _tmp7_;
- gint _tmp8_;
- gpointer _tmp9_;
- DataSource* victim_source = NULL;
- SourceProxy* _tmp10_;
- DataSource* _tmp11_;
- DataSource* _tmp12_;
- SourceProxy* _tmp13_;
- guint _tmp14_;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp4_) {
-#line 14290 "Commands.c"
- gint _tmp5_;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = i;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp5_ - 1;
-#line 14296 "Commands.c"
- }
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = FALSE;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = i;
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp6_ >= 0)) {
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 14306 "Commands.c"
- }
-#line 1616 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->recursive_victim_proxies;
-#line 1616 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = i;
-#line 1616 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_list_get (_tmp7_, _tmp8_);
-#line 1616 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp9_;
-#line 1618 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = proxy;
-#line 1618 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = source_proxy_get_source (_tmp10_);
-#line 1618 "/home/jens/Source/shotwell/src/Commands.vala"
- victim_source = _tmp11_;
-#line 1619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = victim_source;
-#line 1619 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_TAG), "victim_source is Tag");
-#line 1621 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = proxy;
-#line 1621 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp14_, NULL, FALSE);
-#line 1621 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _delete_tag_command_on_proxy_broken_source_proxy_broken, self);
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (victim_source);
-#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 14336 "Commands.c"
- }
- }
- }
-#line 1624 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->recursive_victim_proxies);
-#line 1624 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->recursive_victim_proxies = NULL;
-#line 14344 "Commands.c"
- }
-}
-
-
-static void
-delete_tag_command_on_proxy_broken (DeleteTagCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 1628 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DELETE_TAG_COMMAND (self));
-#line 1629 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 1629 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 1629 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 1629 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 14364 "Commands.c"
-}
-
-
-static void
-delete_tag_command_class_init (DeleteTagCommandClass * klass)
-{
-#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
- delete_tag_command_parent_class = g_type_class_peek_parent (klass);
-#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (DeleteTagCommandPrivate));
-#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) delete_tag_command_real_execute_on_source;
-#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) delete_tag_command_real_undo_on_source;
-#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = delete_tag_command_finalize;
-#line 14381 "Commands.c"
-}
-
-
-static void
-delete_tag_command_instance_init (DeleteTagCommand * self)
-{
-#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = DELETE_TAG_COMMAND_GET_PRIVATE (self);
-#line 1580 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->recursive_victim_proxies = NULL;
-#line 14392 "Commands.c"
-}
-
-
-static void
-delete_tag_command_finalize (GObject * obj)
-{
- DeleteTagCommand * self;
-#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand);
-#line 1580 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->recursive_victim_proxies);
-#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (delete_tag_command_parent_class)->finalize (obj);
-#line 14406 "Commands.c"
-}
-
-
-GType
-delete_tag_command_get_type (void)
-{
- static volatile gsize delete_tag_command_type_id__volatile = 0;
- if (g_once_init_enter (&delete_tag_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DeleteTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) delete_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DeleteTagCommand), 0, (GInstanceInitFunc) delete_tag_command_instance_init, NULL };
- GType delete_tag_command_type_id;
- delete_tag_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "DeleteTagCommand", &g_define_type_info, 0);
- g_once_init_leave (&delete_tag_command_type_id__volatile, delete_tag_command_type_id);
- }
- return delete_tag_command_type_id__volatile;
-}
-
-
-NewChildTagCommand*
-new_child_tag_command_construct (GType object_type,
- Tag* tag)
-{
- NewChildTagCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1636 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
-#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (NewChildTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _ ("Create Tag"), _tmp1_);
-#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 1636 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 14443 "Commands.c"
-}
-
-
-NewChildTagCommand*
-new_child_tag_command_new (Tag* tag)
-{
-#line 1636 "/home/jens/Source/shotwell/src/Commands.vala"
- return new_child_tag_command_construct (TYPE_NEW_CHILD_TAG_COMMAND, tag);
-#line 14452 "Commands.c"
-}
-
-
-static void
-new_child_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- NewChildTagCommand * self;
- Tag* tag = NULL;
- Tag* _tmp0_;
- Tag* _tmp1_;
-#line 1640 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand);
-#line 1640 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1641 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
-#line 1641 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp0_;
-#line 1642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag_create_new_child (tag);
-#line 1642 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->created_child);
-#line 1642 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->created_child = _tmp1_;
-#line 1640 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (tag);
-#line 14480 "Commands.c"
-}
-
-
-static void
-new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- NewChildTagCommand * self;
- TagSourceCollection* _tmp0_;
- TagSourceCollection* _tmp1_;
- Tag* _tmp2_;
- Marker* _tmp3_;
- Marker* _tmp4_;
-#line 1645 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand);
-#line 1645 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1646 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag_global;
-#line 1646 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag_global;
-#line 1646 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->created_child;
-#line 1646 "/home/jens/Source/shotwell/src/Commands.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 1646 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 1646 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp4_, TRUE, NULL, NULL, NULL);
-#line 1646 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 14512 "Commands.c"
-}
-
-
-Tag*
-new_child_tag_command_get_created_child (NewChildTagCommand* self)
-{
- Tag* result = NULL;
- Tag* _tmp0_;
- Tag* _tmp1_;
- Tag* _tmp2_;
-#line 1649 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_NEW_CHILD_TAG_COMMAND (self), NULL);
-#line 1650 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->created_child;
-#line 1650 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "created_child != null");
-#line 1652 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->created_child;
-#line 1652 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 1652 "/home/jens/Source/shotwell/src/Commands.vala"
- result = _tmp2_;
-#line 1652 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 14537 "Commands.c"
-}
-
-
-static void
-new_child_tag_command_class_init (NewChildTagCommandClass * klass)
-{
-#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
- new_child_tag_command_parent_class = g_type_class_peek_parent (klass);
-#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (NewChildTagCommandPrivate));
-#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) new_child_tag_command_real_execute_on_source;
-#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) new_child_tag_command_real_undo_on_source;
-#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = new_child_tag_command_finalize;
-#line 14554 "Commands.c"
-}
-
-
-static void
-new_child_tag_command_instance_init (NewChildTagCommand * self)
-{
-#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = NEW_CHILD_TAG_COMMAND_GET_PRIVATE (self);
-#line 1634 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->created_child = NULL;
-#line 14565 "Commands.c"
-}
-
-
-static void
-new_child_tag_command_finalize (GObject * obj)
-{
- NewChildTagCommand * self;
-#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand);
-#line 1634 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->created_child);
-#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (new_child_tag_command_parent_class)->finalize (obj);
-#line 14579 "Commands.c"
-}
-
-
-GType
-new_child_tag_command_get_type (void)
-{
- static volatile gsize new_child_tag_command_type_id__volatile = 0;
- if (g_once_init_enter (&new_child_tag_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (NewChildTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_child_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewChildTagCommand), 0, (GInstanceInitFunc) new_child_tag_command_instance_init, NULL };
- GType new_child_tag_command_type_id;
- new_child_tag_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "NewChildTagCommand", &g_define_type_info, 0);
- g_once_init_leave (&new_child_tag_command_type_id__volatile, new_child_tag_command_type_id);
- }
- return new_child_tag_command_type_id__volatile;
-}
-
-
-NewRootTagCommand*
-new_root_tag_command_construct (GType object_type)
-{
- NewRootTagCommand * self = NULL;
-#line 1660 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (NewRootTagCommand*) page_command_construct (object_type, _ ("Create Tag"), "");
-#line 1659 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 14605 "Commands.c"
-}
-
-
-NewRootTagCommand*
-new_root_tag_command_new (void)
-{
-#line 1659 "/home/jens/Source/shotwell/src/Commands.vala"
- return new_root_tag_command_construct (TYPE_NEW_ROOT_TAG_COMMAND);
-#line 14614 "Commands.c"
-}
-
-
-static void
-new_root_tag_command_real_execute (Command* base)
-{
- NewRootTagCommand * self;
- SourceProxy* _tmp0_;
-#line 1663 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand);
-#line 1664 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->created_proxy;
-#line 1664 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_ == NULL) {
-#line 14629 "Commands.c"
- Tag* _tmp1_;
- Tag* _tmp2_;
- SourceProxy* _tmp3_;
-#line 1665 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag_create_new_root ();
-#line 1665 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 1665 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PROXYABLE, Proxyable));
-#line 1665 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (self->priv->created_proxy);
-#line 1665 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->created_proxy = _tmp3_;
-#line 1665 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp2_);
-#line 14645 "Commands.c"
- } else {
- SourceProxy* _tmp4_;
- DataSource* _tmp5_;
- DataSource* _tmp6_;
-#line 1667 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->created_proxy;
-#line 1667 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = source_proxy_get_source (_tmp4_);
-#line 1667 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 1667 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp6_);
-#line 14658 "Commands.c"
- }
-}
-
-
-static void
-new_root_tag_command_real_undo (Command* base)
-{
- NewRootTagCommand * self;
- TagSourceCollection* _tmp0_;
- TagSourceCollection* _tmp1_;
- SourceProxy* _tmp2_;
- DataSource* _tmp3_;
- DataSource* _tmp4_;
- Marker* _tmp5_;
- Marker* _tmp6_;
-#line 1670 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand);
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag_global;
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag_global;
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->created_proxy;
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = source_proxy_get_source (_tmp2_);
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp6_, TRUE, NULL, NULL, NULL);
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp6_);
-#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 14696 "Commands.c"
-}
-
-
-Tag*
-new_root_tag_command_get_created_tag (NewRootTagCommand* self)
-{
- Tag* result = NULL;
- SourceProxy* _tmp0_;
- DataSource* _tmp1_;
-#line 1674 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_NEW_ROOT_TAG_COMMAND (self), NULL);
-#line 1675 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->created_proxy;
-#line 1675 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source_proxy_get_source (_tmp0_);
-#line 1675 "/home/jens/Source/shotwell/src/Commands.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TAG, Tag);
-#line 1675 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 14716 "Commands.c"
-}
-
-
-static void
-new_root_tag_command_class_init (NewRootTagCommandClass * klass)
-{
-#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
- new_root_tag_command_parent_class = g_type_class_peek_parent (klass);
-#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (NewRootTagCommandPrivate));
-#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) new_root_tag_command_real_execute;
-#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) new_root_tag_command_real_undo;
-#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = new_root_tag_command_finalize;
-#line 14733 "Commands.c"
-}
-
-
-static void
-new_root_tag_command_instance_init (NewRootTagCommand * self)
-{
-#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = NEW_ROOT_TAG_COMMAND_GET_PRIVATE (self);
-#line 1657 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->created_proxy = NULL;
-#line 14744 "Commands.c"
-}
-
-
-static void
-new_root_tag_command_finalize (GObject * obj)
-{
- NewRootTagCommand * self;
-#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand);
-#line 1657 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (self->priv->created_proxy);
-#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (new_root_tag_command_parent_class)->finalize (obj);
-#line 14758 "Commands.c"
-}
-
-
-GType
-new_root_tag_command_get_type (void)
-{
- static volatile gsize new_root_tag_command_type_id__volatile = 0;
- if (g_once_init_enter (&new_root_tag_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (NewRootTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_root_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewRootTagCommand), 0, (GInstanceInitFunc) new_root_tag_command_instance_init, NULL };
- GType new_root_tag_command_type_id;
- new_root_tag_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "NewRootTagCommand", &g_define_type_info, 0);
- g_once_init_leave (&new_root_tag_command_type_id__volatile, new_root_tag_command_type_id);
- }
- return new_root_tag_command_type_id__volatile;
-}
-
-
-static void
-_reparent_tag_command_on_items_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
- GeeCollection* destroyed,
- gpointer self)
-{
-#line 1724 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_on_items_destroyed ((ReparentTagCommand*) self, destroyed);
-#line 14783 "Commands.c"
-}
-
-
-ReparentTagCommand*
-reparent_tag_command_construct (GType object_type,
- Tag* tag,
- const gchar* new_parent_path)
-{
- ReparentTagCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gboolean has_children = FALSE;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gboolean _tmp9_;
- gchar* basename = NULL;
- gchar* _tmp10_;
- gchar* new_to_path = NULL;
- const gchar* _tmp28_;
- gchar* _tmp29_;
- const gchar* _tmp30_;
- TagSourceCollection* _tmp33_;
- const gchar* _tmp34_;
- GeeHashSet* _tmp35_;
- GeeCollection* _tmp36_;
- GeeCollection* _tmp37_;
- LibraryPhotoSourceCollection* _tmp38_;
- VideoSourceCollection* _tmp39_;
-#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_parent_path != NULL, NULL);
-#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag_get_user_visible_name (tag);
-#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = g_strdup_printf (_ ("Move Tag “%s”"), _tmp1_);
-#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (ReparentTagCommand*) page_command_construct (object_type, _tmp3_, "");
-#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
-#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 1697 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = tag_get_path (tag);
-#line 1697 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->from_path);
-#line 1697 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->from_path = _tmp4_;
-#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = tag_get_hierarchical_children (tag);
-#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_ > 0;
-#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp6_);
-#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- has_children = _tmp9_;
-#line 1700 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag_get_user_visible_name (tag);
-#line 1700 "/home/jens/Source/shotwell/src/Commands.vala"
- basename = _tmp10_;
-#line 1702 "/home/jens/Source/shotwell/src/Commands.vala"
- if (g_strcmp0 (new_parent_path, TAG_PATH_SEPARATOR_STRING) == 0) {
-#line 14861 "Commands.c"
- gchar* _tmp11_ = NULL;
- gboolean _tmp12_;
- gchar* _tmp17_;
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = has_children;
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_) {
-#line 14869 "Commands.c"
- const gchar* _tmp13_;
- gchar* _tmp14_;
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = basename;
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp13_, NULL);
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp11_);
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp14_;
-#line 14880 "Commands.c"
- } else {
- const gchar* _tmp15_;
- gchar* _tmp16_;
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = basename;
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp11_);
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp16_;
-#line 14892 "Commands.c"
- }
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = g_strdup (_tmp11_);
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path);
-#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path = _tmp17_;
-#line 1702 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp11_);
-#line 14902 "Commands.c"
- } else {
-#line 1704 "/home/jens/Source/shotwell/src/Commands.vala"
- if (g_str_has_prefix (new_parent_path, TAG_PATH_SEPARATOR_STRING)) {
-#line 14906 "Commands.c"
- gchar* _tmp18_;
- gchar* _tmp19_;
- const gchar* _tmp20_;
- gchar* _tmp21_;
-#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = g_strconcat (new_parent_path, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _tmp18_;
-#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = basename;
-#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = g_strconcat (_tmp19_, _tmp20_, NULL);
-#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path);
-#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path = _tmp21_;
-#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp19_);
-#line 14925 "Commands.c"
- } else {
- gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, new_parent_path, NULL);
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = g_strconcat (_tmp23_, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _tmp24_;
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = basename;
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = g_strconcat (_tmp25_, _tmp26_, NULL);
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path);
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path = _tmp27_;
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp25_);
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp23_);
-#line 14953 "Commands.c"
- }
- }
-#line 1710 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = self->priv->to_path;
-#line 1710 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = hierarchical_tag_utilities_get_root_path_form (_tmp28_);
-#line 1710 "/home/jens/Source/shotwell/src/Commands.vala"
- new_to_path = _tmp29_;
-#line 1711 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = new_to_path;
-#line 1711 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp30_ != NULL) {
-#line 14966 "Commands.c"
- const gchar* _tmp31_;
- gchar* _tmp32_;
-#line 1712 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = new_to_path;
-#line 1712 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = g_strdup (_tmp31_);
-#line 1712 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path);
-#line 1712 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path = _tmp32_;
-#line 14977 "Commands.c"
- }
-#line 1714 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = tag_global;
-#line 1714 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = self->priv->to_path;
-#line 1714 "/home/jens/Source/shotwell/src/Commands.vala"
- if (tag_source_collection_exists (_tmp33_, _tmp34_, FALSE)) {
-#line 1715 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path_exists = TRUE;
-#line 14987 "Commands.c"
- }
-#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = self->priv->sources_in_play;
-#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = tag_get_sources (tag);
-#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = _tmp36_;
-#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_);
-#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp37_);
-#line 1719 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = library_photo_global;
-#line 1719 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self, 0);
-#line 1720 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = video_global;
-#line 1720 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self, 0);
-#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (new_to_path);
-#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (basename);
-#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 15013 "Commands.c"
-}
-
-
-ReparentTagCommand*
-reparent_tag_command_new (Tag* tag,
- const gchar* new_parent_path)
-{
-#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
- return reparent_tag_command_construct (TYPE_REPARENT_TAG_COMMAND, tag, new_parent_path);
-#line 15023 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_on_items_destroyed (ReparentTagCommand* self,
- GeeCollection* destroyed)
-{
-#line 1728 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1728 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (destroyed));
-#line 15035 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (destroyed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp0_;
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 15045 "Commands.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- GeeHashSet* _tmp4_;
- DataSource* _tmp5_;
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _source_it;
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 15058 "Commands.c"
- }
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp3_;
-#line 1730 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->sources_in_play;
-#line 1730 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = source;
-#line 1730 "/home/jens/Source/shotwell/src/Commands.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource))) {
-#line 15072 "Commands.c"
- CommandManager* _tmp6_;
- CommandManager* _tmp7_;
-#line 1731 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 1731 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
-#line 1731 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp7_);
-#line 1731 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp7_);
-#line 15083 "Commands.c"
- }
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 15087 "Commands.c"
- }
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 15091 "Commands.c"
- }
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 15115 "Commands.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 15119 "Commands.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 15125 "Commands.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 15129 "Commands.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 15133 "Commands.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 15141 "Commands.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 15169 "Commands.c"
- goto __catch469_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 15178 "Commands.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 15192 "Commands.c"
- goto __catch469_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 15203 "Commands.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 15217 "Commands.c"
- }
- goto __finally469;
- __catch469_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 15231 "Commands.c"
- }
- __finally469:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 15242 "Commands.c"
- }
-}
-
-
-static GeeMap*
-reparent_tag_command_get_child_structure_at (ReparentTagCommand* self,
- const gchar* client_path)
-{
- GeeMap* result = NULL;
- gchar* path = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
- gchar* _tmp4_;
- GeeMap* _result_ = NULL;
- GeeHashMap* _tmp5_;
- TagSourceCollection* _tmp6_;
- const gchar* _tmp7_;
- Tag* tag = NULL;
- const gchar* _tmp8_;
- Tag* _tmp9_;
- gchar* path_prefix = NULL;
- Tag* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 1735 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_REPARENT_TAG_COMMAND (self), NULL);
-#line 1735 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (client_path != NULL, NULL);
-#line 1736 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path);
-#line 1736 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp0_;
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = path;
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 15282 "Commands.c"
- const gchar* _tmp3_;
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = path;
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp3_;
-#line 15288 "Commands.c"
- } else {
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = client_path;
-#line 15292 "Commands.c"
- }
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = g_strdup (_tmp1_);
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path);
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp4_;
-#line 1739 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1739 "/home/jens/Source/shotwell/src/Commands.vala"
- _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MAP, GeeMap);
-#line 1742 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = tag_global;
-#line 1742 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = path;
-#line 1742 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!tag_source_collection_exists (_tmp6_, _tmp7_, FALSE)) {
-#line 1743 "/home/jens/Source/shotwell/src/Commands.vala"
- result = _result_;
-#line 1743 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path);
-#line 1743 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 15316 "Commands.c"
- }
-#line 1745 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = path;
-#line 1745 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_for_path (_tmp8_);
-#line 1745 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp9_;
-#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag;
-#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = tag_get_path (_tmp10_);
-#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tmp11_;
-#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = g_strconcat (_tmp12_, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
-#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp12_);
-#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- path_prefix = _tmp14_;
-#line 15338 "Commands.c"
- {
- GeeList* _t_list = NULL;
- Tag* _tmp15_;
- GeeList* _tmp16_;
- gint _t_size = 0;
- GeeList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- gint _t_index = 0;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = tag;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = tag_get_hierarchical_children (_tmp15_);
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_list = _tmp16_;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _t_list;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _tmp18_;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_size = _tmp19_;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_index = -1;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 15366 "Commands.c"
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- Tag* t = NULL;
- GeeList* _tmp23_;
- gint _tmp24_;
- gpointer _tmp25_;
- gchar* child_subpath = NULL;
- Tag* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- const gchar* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- GeeMap* _tmp32_;
- const gchar* _tmp33_;
- GeeHashSet* _tmp34_;
- GeeHashSet* _tmp35_;
- GeeMap* _tmp36_;
- const gchar* _tmp37_;
- gpointer _tmp38_;
- GeeSet* _tmp39_;
- Tag* _tmp40_;
- GeeCollection* _tmp41_;
- GeeCollection* _tmp42_;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _t_index;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_index = _tmp20_ + 1;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _t_index;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _t_size;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp21_ < _tmp22_)) {
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 15404 "Commands.c"
- }
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _t_list;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _t_index;
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = gee_list_get (_tmp23_, _tmp24_);
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- t = (Tag*) _tmp25_;
-#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = t;
-#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = tag_get_path (_tmp26_);
-#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _tmp27_;
-#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = path_prefix;
-#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = string_replace (_tmp28_, _tmp29_, "");
-#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = _tmp30_;
-#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp28_);
-#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = _tmp31_;
-#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = _result_;
-#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = child_subpath;
-#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = _tmp34_;
-#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_map_set (_tmp32_, _tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_SET, GeeSet));
-#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp35_);
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = _result_;
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = child_subpath;
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = gee_map_get (_tmp36_, _tmp37_);
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = (GeeSet*) _tmp38_;
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = t;
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = tag_get_sources (_tmp40_);
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = _tmp41_;
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), _tmp42_);
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp42_);
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp39_);
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (child_subpath);
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (t);
-#line 15466 "Commands.c"
- }
-#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_t_list);
-#line 15470 "Commands.c"
- }
-#line 1755 "/home/jens/Source/shotwell/src/Commands.vala"
- result = _result_;
-#line 1755 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path_prefix);
-#line 1755 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (tag);
-#line 1755 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path);
-#line 1755 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 15482 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_restore_child_attachments_at (ReparentTagCommand* self,
- const gchar* client_path,
- GeeMap* child_structure)
-{
- gchar* new_path = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
- gchar* path = NULL;
- gchar* _tmp4_;
- TagSourceCollection* _tmp5_;
- const gchar* _tmp6_;
- Tag* tag = NULL;
- const gchar* _tmp7_;
- Tag* _tmp8_;
-#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (client_path != NULL);
-#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_MAP (child_structure));
-#line 1761 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path);
-#line 1761 "/home/jens/Source/shotwell/src/Commands.vala"
- new_path = _tmp0_;
-#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = new_path;
-#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 15516 "Commands.c"
- const gchar* _tmp3_;
-#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = new_path;
-#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp3_;
-#line 15522 "Commands.c"
- } else {
-#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = client_path;
-#line 15526 "Commands.c"
- }
-#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = g_strdup (_tmp1_);
-#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp4_;
-#line 1764 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = tag_global;
-#line 1764 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = path;
-#line 1764 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp5_, _tmp6_, FALSE), "Tag.global.exists(path)");
-#line 1765 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = path;
-#line 1765 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = tag_for_path (_tmp7_);
-#line 1765 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp8_;
-#line 15544 "Commands.c"
- {
- GeeIterator* _child_subpath_it = NULL;
- GeeSet* _tmp9_;
- GeeSet* _tmp10_;
- GeeSet* _tmp11_;
- GeeIterator* _tmp12_;
- GeeIterator* _tmp13_;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_map_get_keys (child_structure);
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tmp12_;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _child_subpath_it = _tmp13_;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 15568 "Commands.c"
- GeeIterator* _tmp14_;
- gchar* child_subpath = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- gchar* child_path = NULL;
- Tag* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- const gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- Tag* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gboolean _tmp28_;
- TagSourceCollection* _tmp37_;
- const gchar* _tmp38_;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _child_subpath_it;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 15594 "Commands.c"
- }
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _child_subpath_it;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = (gchar*) _tmp16_;
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = tag;
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = tag_get_path (_tmp17_);
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _tmp18_;
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = g_strconcat (_tmp19_, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = child_subpath;
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = g_strconcat (_tmp21_, _tmp22_, NULL);
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _tmp23_;
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp21_);
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp19_);
-#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- child_path = _tmp24_;
-#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = tag;
-#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = tag_get_path (_tmp25_);
-#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _tmp26_;
-#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = !g_str_has_prefix (_tmp27_, TAG_PATH_SEPARATOR_STRING);
-#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp27_);
-#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp28_) {
-#line 15636 "Commands.c"
- Tag* _tmp29_;
- Tag* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- const gchar* _tmp35_;
- gchar* _tmp36_;
-#line 1771 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = tag;
-#line 1771 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_promote (_tmp29_);
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = tag;
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = tag_get_path (_tmp30_);
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = _tmp31_;
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = g_strconcat (_tmp32_, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = _tmp33_;
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = child_subpath;
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = g_strconcat (_tmp34_, _tmp35_, NULL);
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (child_path);
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- child_path = _tmp36_;
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp34_);
-#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp32_);
-#line 15671 "Commands.c"
- }
-#line 1775 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = tag_global;
-#line 1775 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = child_path;
-#line 1775 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp37_, _tmp38_, FALSE), "Tag.global.exists(child_path)");
-#line 15679 "Commands.c"
- {
- GeeIterator* _s_it = NULL;
- const gchar* _tmp39_;
- gpointer _tmp40_;
- GeeSet* _tmp41_;
- GeeIterator* _tmp42_;
- GeeIterator* _tmp43_;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = child_subpath;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = gee_map_get (child_structure, _tmp39_);
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = (GeeSet*) _tmp40_;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = _tmp42_;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp41_);
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp43_;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 15703 "Commands.c"
- GeeIterator* _tmp44_;
- MediaSource* s = NULL;
- GeeIterator* _tmp45_;
- gpointer _tmp46_;
- const gchar* _tmp47_;
- Tag* _tmp48_;
- Tag* _tmp49_;
- MediaSource* _tmp50_;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = _s_it;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp44_)) {
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 15718 "Commands.c"
- }
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = _s_it;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = gee_iterator_get (_tmp45_);
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp46_;
-#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = child_path;
-#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = tag_for_path (_tmp47_);
-#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = _tmp48_;
-#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = s;
-#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp49_, _tmp50_);
-#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp49_);
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (s);
-#line 15740 "Commands.c"
- }
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_s_it);
-#line 15744 "Commands.c"
- }
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (child_path);
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (child_subpath);
-#line 15750 "Commands.c"
- }
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_child_subpath_it);
-#line 15754 "Commands.c"
- }
-#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (tag);
-#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path);
-#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (new_path);
-#line 15762 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand* self,
- const gchar* client_path)
-{
- gchar* new_path = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
- gchar* path = NULL;
- gchar* _tmp4_;
- TagSourceCollection* _tmp5_;
- const gchar* _tmp6_;
- Tag* tag = NULL;
- const gchar* _tmp7_;
- Tag* _tmp8_;
-#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (client_path != NULL);
-#line 1783 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path);
-#line 1783 "/home/jens/Source/shotwell/src/Commands.vala"
- new_path = _tmp0_;
-#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = new_path;
-#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 15793 "Commands.c"
- const gchar* _tmp3_;
-#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = new_path;
-#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp3_;
-#line 15799 "Commands.c"
- } else {
-#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = client_path;
-#line 15803 "Commands.c"
- }
-#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = g_strdup (_tmp1_);
-#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp4_;
-#line 1786 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = tag_global;
-#line 1786 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = path;
-#line 1786 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp5_, _tmp6_, FALSE), "Tag.global.exists(path)");
-#line 1788 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = path;
-#line 1788 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = tag_for_path (_tmp7_);
-#line 1788 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp8_;
-#line 15821 "Commands.c"
- {
- GeeIterator* _s_it = NULL;
- GeeHashSet* _tmp9_;
- GeeIterator* _tmp10_;
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->sources_in_play;
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp10_;
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 15834 "Commands.c"
- GeeIterator* _tmp11_;
- MediaSource* s = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- Tag* _tmp14_;
- MediaSource* _tmp15_;
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _s_it;
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 15847 "Commands.c"
- }
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _s_it;
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp13_;
-#line 1791 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = tag;
-#line 1791 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = s;
-#line 1791 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp14_, _tmp15_);
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (s);
-#line 15863 "Commands.c"
- }
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_s_it);
-#line 15867 "Commands.c"
- }
-#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (tag);
-#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path);
-#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (new_path);
-#line 15875 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_save_before_state (ReparentTagCommand* self)
-{
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
- GeeMap* _tmp4_;
- const gchar* _tmp5_;
- GeeMap* _tmp6_;
- TagSourceCollection* _tmp7_;
- const gchar* _tmp8_;
- Tag* from_tag = NULL;
- const gchar* _tmp9_;
- Tag* _tmp10_;
- GeeList* _tmp11_;
- Tag* _tmp12_;
- SourceProxy* _tmp13_;
- SourceProxy* _tmp14_;
- GeeList* parent_paths = NULL;
- const gchar* _tmp15_;
- GeeList* _tmp16_;
- GeeList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- const gchar* _tmp25_;
- const gchar* _tmp29_;
- const gchar* _tmp41_;
- const gchar* _tmp57_;
- GeeList* from_children = NULL;
- Tag* _tmp64_;
- GeeList* _tmp65_;
- const gchar* _tmp79_;
- const gchar* _tmp98_;
-#line 1794 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1795 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->src_before_state;
-#line 1795 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ == NULL, "src_before_state == null");
-#line 1796 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->dest_before_state;
-#line 1796 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp1_ == NULL, "dest_before_state == null");
-#line 1798 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
-#line 1798 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->src_before_state);
-#line 1798 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->src_before_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
-#line 1799 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
-#line 1799 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->dest_before_state);
-#line 1799 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->dest_before_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList);
-#line 1802 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->in_play_child_structure;
-#line 1802 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp4_ == NULL, "in_play_child_structure == null");
-#line 1803 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->from_path;
-#line 1803 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = reparent_tag_command_get_child_structure_at (self, _tmp5_);
-#line 1803 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->in_play_child_structure);
-#line 1803 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->in_play_child_structure = _tmp6_;
-#line 1806 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = tag_global;
-#line 1806 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->from_path;
-#line 1806 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp7_, _tmp8_, FALSE), "Tag.global.exists(from_path)");
-#line 1807 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->from_path;
-#line 1807 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag_for_path (_tmp9_);
-#line 1807 "/home/jens/Source/shotwell/src/Commands.vala"
- from_tag = _tmp10_;
-#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->priv->src_before_state;
-#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = from_tag;
-#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PROXYABLE, Proxyable));
-#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
-#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_);
-#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp14_);
-#line 1811 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = self->priv->to_path;
-#line 1811 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp15_);
-#line 1811 "/home/jens/Source/shotwell/src/Commands.vala"
- parent_paths = _tmp16_;
-#line 1812 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = parent_paths;
-#line 1812 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1812 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _tmp18_;
-#line 1812 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp19_ > 0) {
-#line 15985 "Commands.c"
- GeeList* _tmp20_;
- GeeList* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- gpointer _tmp24_;
-#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = parent_paths;
-#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = parent_paths;
-#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
-#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = gee_list_get (_tmp20_, _tmp23_ - 1);
-#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path_parent_path);
-#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path_parent_path = (gchar*) _tmp24_;
-#line 16005 "Commands.c"
- }
-#line 1814 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = self->priv->to_path_parent_path;
-#line 1814 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp25_ != NULL) {
-#line 16011 "Commands.c"
- GeeMap* _tmp26_;
- const gchar* _tmp27_;
- GeeMap* _tmp28_;
-#line 1815 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = self->priv->existing_dest_child_structure;
-#line 1815 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp26_ == NULL, "existing_dest_child_structure == null");
-#line 1816 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = self->priv->to_path_parent_path;
-#line 1816 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = reparent_tag_command_get_child_structure_at (self, _tmp27_);
-#line 1816 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->existing_dest_child_structure);
-#line 1816 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->existing_dest_child_structure = _tmp28_;
-#line 16027 "Commands.c"
- }
-#line 1820 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = self->priv->to_path_parent_path;
-#line 1820 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp29_ == NULL) {
-#line 16033 "Commands.c"
- GeeMap* _tmp30_;
- GeeSet* _tmp31_;
- const gchar* _tmp32_;
- GeeMap* _tmp33_;
- GeeHashSet* _tmp34_;
- GeeSet* _tmp35_;
- const gchar* _tmp36_;
- Tag* _tmp37_;
- Tag* _tmp38_;
- GeeCollection* _tmp39_;
- GeeCollection* _tmp40_;
-#line 1821 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = self->priv->existing_dest_child_structure;
-#line 1821 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp30_ == NULL, "existing_dest_child_structure == null");
-#line 1822 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = self->priv->existing_dest_membership;
-#line 1822 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp31_ == NULL, "existing_dest_membership == null");
-#line 1823 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = self->priv->to_path;
-#line 1823 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = reparent_tag_command_get_child_structure_at (self, _tmp32_);
-#line 1823 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->existing_dest_child_structure);
-#line 1823 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->existing_dest_child_structure = _tmp33_;
-#line 1824 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1824 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->existing_dest_membership);
-#line 1824 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->existing_dest_membership = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_SET, GeeSet);
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = self->priv->existing_dest_membership;
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = self->priv->to_path;
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = tag_for_path (_tmp36_);
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = _tmp37_;
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = tag_get_sources (_tmp38_);
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = _tmp39_;
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), _tmp40_);
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp40_);
-#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp38_);
-#line 16085 "Commands.c"
- }
-#line 1829 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = self->priv->to_path_parent_path;
-#line 1829 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp41_ != NULL) {
-#line 16091 "Commands.c"
- gchar* new_tpp = NULL;
- const gchar* _tmp42_;
- gchar* _tmp43_;
- const gchar* _tmp44_ = NULL;
- const gchar* _tmp45_;
- gchar* _tmp48_;
- TagSourceCollection* _tmp49_;
- const gchar* _tmp50_;
- GeeList* _tmp51_;
- const gchar* _tmp52_;
- Tag* _tmp53_;
- Tag* _tmp54_;
- SourceProxy* _tmp55_;
- SourceProxy* _tmp56_;
-#line 1830 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = self->priv->to_path_parent_path;
-#line 1830 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = hierarchical_tag_utilities_get_root_path_form (_tmp42_);
-#line 1830 "/home/jens/Source/shotwell/src/Commands.vala"
- new_tpp = _tmp43_;
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = new_tpp;
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp45_ != NULL) {
-#line 16116 "Commands.c"
- const gchar* _tmp46_;
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = new_tpp;
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = _tmp46_;
-#line 16122 "Commands.c"
- } else {
- const gchar* _tmp47_;
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = self->priv->to_path_parent_path;
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = _tmp47_;
-#line 16129 "Commands.c"
- }
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = g_strdup (_tmp44_);
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path_parent_path);
-#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path_parent_path = _tmp48_;
-#line 1832 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = tag_global;
-#line 1832 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = self->priv->to_path_parent_path;
-#line 1832 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp49_, _tmp50_, FALSE), "Tag.global.exists(to_path_parent_path)");
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = self->priv->dest_before_state;
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = self->priv->to_path_parent_path;
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = tag_for_path (_tmp52_);
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = _tmp53_;
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_PROXYABLE, Proxyable));
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = _tmp55_;
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), _tmp56_);
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp56_);
-#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp54_);
-#line 1829 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (new_tpp);
-#line 16163 "Commands.c"
- }
-#line 1837 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = self->priv->to_path_parent_path;
-#line 1837 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp57_ == NULL) {
-#line 16169 "Commands.c"
- GeeList* _tmp58_;
- const gchar* _tmp59_;
- Tag* _tmp60_;
- Tag* _tmp61_;
- SourceProxy* _tmp62_;
- SourceProxy* _tmp63_;
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = self->priv->dest_before_state;
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = self->priv->to_path;
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp60_ = tag_for_path (_tmp59_);
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp61_ = _tmp60_;
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp62_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_PROXYABLE, Proxyable));
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp63_ = _tmp62_;
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_COLLECTION, GeeCollection), _tmp63_);
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp63_);
-#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp61_);
-#line 16194 "Commands.c"
- }
-#line 1842 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp64_ = from_tag;
-#line 1842 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp65_ = tag_get_hierarchical_children (_tmp64_);
-#line 1842 "/home/jens/Source/shotwell/src/Commands.vala"
- from_children = _tmp65_;
-#line 16202 "Commands.c"
- {
- gint i = 0;
- GeeList* _tmp66_;
- gint _tmp67_;
- gint _tmp68_;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp66_ = from_children;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp67_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp68_ = _tmp67_;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp68_ - 1;
-#line 16216 "Commands.c"
- {
- gboolean _tmp69_ = FALSE;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = TRUE;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 16223 "Commands.c"
- gint _tmp71_;
- GeeList* _tmp72_;
- GeeList* _tmp73_;
- gint _tmp74_;
- gpointer _tmp75_;
- Tag* _tmp76_;
- SourceProxy* _tmp77_;
- SourceProxy* _tmp78_;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp69_) {
-#line 16234 "Commands.c"
- gint _tmp70_;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp70_ = i;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp70_ - 1;
-#line 16240 "Commands.c"
- }
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = FALSE;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp71_ = i;
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp71_ >= 0)) {
-#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 16250 "Commands.c"
- }
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp72_ = self->priv->src_before_state;
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp73_ = from_children;
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp74_ = i;
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp75_ = gee_list_get (_tmp73_, _tmp74_);
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp76_ = (Tag*) _tmp75_;
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp77_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_PROXYABLE, Proxyable));
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp78_ = _tmp77_;
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_COLLECTION, GeeCollection), _tmp78_);
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp78_);
-#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp76_);
-#line 16272 "Commands.c"
- }
- }
- }
-#line 1848 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp79_ = self->priv->to_path_parent_path;
-#line 1848 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp79_ != NULL) {
-#line 16280 "Commands.c"
- GeeList* to_children = NULL;
- const gchar* _tmp80_;
- Tag* _tmp81_;
- Tag* _tmp82_;
- GeeList* _tmp83_;
- GeeList* _tmp84_;
-#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp80_ = self->priv->to_path_parent_path;
-#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp81_ = tag_for_path (_tmp80_);
-#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp82_ = _tmp81_;
-#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp83_ = tag_get_hierarchical_children (_tmp82_);
-#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp84_ = _tmp83_;
-#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp82_);
-#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- to_children = _tmp84_;
-#line 16301 "Commands.c"
- {
- gint i = 0;
- GeeList* _tmp85_;
- gint _tmp86_;
- gint _tmp87_;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp85_ = to_children;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp86_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp87_ = _tmp86_;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp87_ - 1;
-#line 16315 "Commands.c"
- {
- gboolean _tmp88_ = FALSE;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp88_ = TRUE;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 16322 "Commands.c"
- gint _tmp90_;
- GeeList* _tmp91_;
- GeeList* _tmp92_;
- gint _tmp93_;
- gpointer _tmp94_;
- Tag* _tmp95_;
- SourceProxy* _tmp96_;
- SourceProxy* _tmp97_;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp88_) {
-#line 16333 "Commands.c"
- gint _tmp89_;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp89_ = i;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp89_ - 1;
-#line 16339 "Commands.c"
- }
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp88_ = FALSE;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp90_ = i;
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp90_ >= 0)) {
-#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 16349 "Commands.c"
- }
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp91_ = self->priv->dest_before_state;
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp92_ = to_children;
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp93_ = i;
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp94_ = gee_list_get (_tmp92_, _tmp93_);
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp95_ = (Tag*) _tmp94_;
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp96_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp95_, TYPE_PROXYABLE, Proxyable));
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp97_ = _tmp96_;
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_COLLECTION, GeeCollection), _tmp97_);
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp97_);
-#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp95_);
-#line 16371 "Commands.c"
- }
- }
- }
-#line 1848 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (to_children);
-#line 16377 "Commands.c"
- }
-#line 1856 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp98_ = self->priv->to_path_parent_path;
-#line 1856 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp98_ == NULL) {
-#line 16383 "Commands.c"
- GeeList* to_children = NULL;
- const gchar* _tmp99_;
- Tag* _tmp100_;
- Tag* _tmp101_;
- GeeList* _tmp102_;
- GeeList* _tmp103_;
-#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp99_ = self->priv->to_path;
-#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp100_ = tag_for_path (_tmp99_);
-#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp101_ = _tmp100_;
-#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp102_ = tag_get_hierarchical_children (_tmp101_);
-#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp103_ = _tmp102_;
-#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp101_);
-#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- to_children = _tmp103_;
-#line 16404 "Commands.c"
- {
- gint i = 0;
- GeeList* _tmp104_;
- gint _tmp105_;
- gint _tmp106_;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp104_ = to_children;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp105_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp106_ = _tmp105_;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp106_ - 1;
-#line 16418 "Commands.c"
- {
- gboolean _tmp107_ = FALSE;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp107_ = TRUE;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 16425 "Commands.c"
- gint _tmp109_;
- GeeList* _tmp110_;
- GeeList* _tmp111_;
- gint _tmp112_;
- gpointer _tmp113_;
- Tag* _tmp114_;
- SourceProxy* _tmp115_;
- SourceProxy* _tmp116_;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp107_) {
-#line 16436 "Commands.c"
- gint _tmp108_;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp108_ = i;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp108_ - 1;
-#line 16442 "Commands.c"
- }
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp107_ = FALSE;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp109_ = i;
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp109_ >= 0)) {
-#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 16452 "Commands.c"
- }
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp110_ = self->priv->dest_before_state;
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp111_ = to_children;
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp112_ = i;
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp113_ = gee_list_get (_tmp111_, _tmp112_);
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp114_ = (Tag*) _tmp113_;
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp115_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, TYPE_PROXYABLE, Proxyable));
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp116_ = _tmp115_;
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, GEE_TYPE_COLLECTION, GeeCollection), _tmp116_);
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp116_);
-#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp114_);
-#line 16474 "Commands.c"
- }
- }
- }
-#line 1856 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (to_children);
-#line 16480 "Commands.c"
- }
-#line 1794 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (from_children);
-#line 1794 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (parent_paths);
-#line 1794 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (from_tag);
-#line 16488 "Commands.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 16512 "Commands.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 16521 "Commands.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 16542 "Commands.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 16546 "Commands.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 16552 "Commands.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 16562 "Commands.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 16566 "Commands.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 16574 "Commands.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 16581 "Commands.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 16585 "Commands.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 16591 "Commands.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 16603 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_restore_before_state (ReparentTagCommand* self)
-{
- GeeList* _tmp0_;
- GeeMap* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp10_ = NULL;
- const gchar* _tmp11_;
- gchar* unwind_target = NULL;
- gchar* _tmp14_;
- const gchar* _tmp89_;
-#line 1863 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1864 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->src_before_state;
-#line 1864 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "src_before_state != null");
-#line 1865 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->existing_dest_child_structure;
-#line 1865 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp1_ != NULL, "existing_dest_child_structure != null");
-#line 1868 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->to_path_parent_path;
-#line 1868 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 16632 "Commands.c"
- gchar* new_tpp = NULL;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_ = NULL;
- const gchar* _tmp6_;
- gchar* _tmp9_;
-#line 1869 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->to_path_parent_path;
-#line 1869 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = hierarchical_tag_utilities_get_root_path_form (_tmp3_);
-#line 1869 "/home/jens/Source/shotwell/src/Commands.vala"
- new_tpp = _tmp4_;
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = new_tpp;
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ != NULL) {
-#line 16649 "Commands.c"
- const gchar* _tmp7_;
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = new_tpp;
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp7_;
-#line 16655 "Commands.c"
- } else {
- const gchar* _tmp8_;
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->to_path_parent_path;
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp8_;
-#line 16662 "Commands.c"
- }
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = g_strdup (_tmp5_);
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path_parent_path);
-#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path_parent_path = _tmp9_;
-#line 1868 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (new_tpp);
-#line 16672 "Commands.c"
- }
-#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->priv->to_path_parent_path;
-#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp11_ != NULL) {
-#line 16678 "Commands.c"
- const gchar* _tmp12_;
-#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->to_path_parent_path;
-#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp12_;
-#line 16684 "Commands.c"
- } else {
- const gchar* _tmp13_;
-#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->to_path;
-#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp13_;
-#line 16691 "Commands.c"
- }
-#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = g_strdup (_tmp10_);
-#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
- unwind_target = _tmp14_;
-#line 16697 "Commands.c"
- {
- GeeList* _t_list = NULL;
- const gchar* _tmp15_;
- Tag* _tmp16_;
- Tag* _tmp17_;
- GeeList* _tmp18_;
- GeeList* _tmp19_;
- gint _t_size = 0;
- GeeList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _t_index = 0;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = unwind_target;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = tag_for_path (_tmp15_);
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = tag_get_hierarchical_children (_tmp17_);
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _tmp18_;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp17_);
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_list = _tmp19_;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _t_list;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_size = _tmp22_;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_index = -1;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 16736 "Commands.c"
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- Tag* t = NULL;
- GeeList* _tmp26_;
- gint _tmp27_;
- gpointer _tmp28_;
- gchar* child_subpath = NULL;
- Tag* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- const gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- const gchar* _tmp35_;
- GeeMap* _tmp38_;
- const gchar* _tmp39_;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _t_index;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_index = _tmp23_ + 1;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _t_index;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _t_size;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp24_ < _tmp25_)) {
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 16766 "Commands.c"
- }
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _t_list;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _t_index;
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = gee_list_get (_tmp26_, _tmp27_);
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- t = (Tag*) _tmp28_;
-#line 1875 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = t;
-#line 1875 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = tag_get_path (_tmp29_);
-#line 1875 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = _tmp30_;
-#line 1875 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = unwind_target;
-#line 1875 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = string_replace (_tmp31_, _tmp32_, "");
-#line 1875 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = _tmp33_;
-#line 1875 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp31_);
-#line 1875 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = _tmp34_;
-#line 1876 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = child_subpath;
-#line 1876 "/home/jens/Source/shotwell/src/Commands.vala"
- if (g_str_has_prefix (_tmp35_, TAG_PATH_SEPARATOR_STRING)) {
-#line 16796 "Commands.c"
- const gchar* _tmp36_;
- gchar* _tmp37_;
-#line 1877 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = child_subpath;
-#line 1877 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = string_substring (_tmp36_, (glong) 1, (glong) -1);
-#line 1877 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (child_subpath);
-#line 1877 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = _tmp37_;
-#line 16807 "Commands.c"
- }
-#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = self->priv->existing_dest_child_structure;
-#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = child_subpath;
-#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_map_has_key (_tmp38_, _tmp39_)) {
-#line 16815 "Commands.c"
- TagSourceCollection* _tmp40_;
- TagSourceCollection* _tmp41_;
- Tag* _tmp42_;
- Marker* _tmp43_;
- Marker* _tmp44_;
-#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = tag_global;
-#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = tag_global;
-#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = t;
-#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_DATA_OBJECT, DataObject));
-#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = _tmp43_;
-#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp44_, TRUE, NULL, NULL, NULL);
-#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp44_);
-#line 16835 "Commands.c"
- } else {
- GeeSet* starting_sources = NULL;
- GeeHashSet* _tmp45_;
- GeeSet* _tmp46_;
- Tag* _tmp47_;
- GeeCollection* _tmp48_;
- GeeCollection* _tmp49_;
-#line 1882 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1882 "/home/jens/Source/shotwell/src/Commands.vala"
- starting_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_SET, GeeSet);
-#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = starting_sources;
-#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = t;
-#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = tag_get_sources (_tmp47_);
-#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = _tmp48_;
-#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection), _tmp49_);
-#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp49_);
-#line 16859 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeSet* _tmp50_;
- GeeIterator* _tmp51_;
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = starting_sources;
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp51_;
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 16872 "Commands.c"
- GeeIterator* _tmp52_;
- MediaSource* source = NULL;
- GeeIterator* _tmp53_;
- gpointer _tmp54_;
- GeeMap* _tmp55_;
- const gchar* _tmp56_;
- gpointer _tmp57_;
- GeeSet* _tmp58_;
- MediaSource* _tmp59_;
- gboolean _tmp60_;
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = _source_it;
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp52_)) {
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 16889 "Commands.c"
- }
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = _source_it;
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = gee_iterator_get (_tmp53_);
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp54_;
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = self->priv->existing_dest_child_structure;
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = child_subpath;
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = gee_map_get (_tmp55_, _tmp56_);
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = (GeeSet*) _tmp57_;
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = source;
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp60_ = !gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_COLLECTION, GeeCollection), _tmp59_);
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp58_);
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp60_) {
-#line 16913 "Commands.c"
- Tag* _tmp61_;
- MediaSource* _tmp62_;
- GeeList* _tmp63_;
- GeeList* _tmp64_;
-#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp61_ = t;
-#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp62_ = source;
-#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp63_ = tag_detach (_tmp61_, _tmp62_);
-#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp64_ = _tmp63_;
-#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp64_);
-#line 16928 "Commands.c"
- }
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 16932 "Commands.c"
- }
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 16936 "Commands.c"
- }
-#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (starting_sources);
-#line 16940 "Commands.c"
- }
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (child_subpath);
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (t);
-#line 16946 "Commands.c"
- }
-#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_t_list);
-#line 16950 "Commands.c"
- }
- {
- gint i = 0;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- i = 0;
-#line 16956 "Commands.c"
- {
- gboolean _tmp65_ = FALSE;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp65_ = TRUE;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 16963 "Commands.c"
- gint _tmp67_;
- GeeList* _tmp68_;
- gint _tmp69_;
- gint _tmp70_;
- GeeList* _tmp71_;
- gint _tmp72_;
- gpointer _tmp73_;
- SourceProxy* _tmp74_;
- DataSource* _tmp75_;
- DataSource* _tmp76_;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp65_) {
-#line 16976 "Commands.c"
- gint _tmp66_;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp66_ = i;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp66_ + 1;
-#line 16982 "Commands.c"
- }
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp65_ = FALSE;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp67_ = i;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp68_ = self->priv->src_before_state;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp70_ = _tmp69_;
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp67_ < _tmp70_)) {
-#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 16998 "Commands.c"
- }
-#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp71_ = self->priv->src_before_state;
-#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp72_ = i;
-#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp73_ = gee_list_get (_tmp71_, _tmp72_);
-#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp74_ = (SourceProxy*) _tmp73_;
-#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp75_ = source_proxy_get_source (_tmp74_);
-#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp76_ = _tmp75_;
-#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp76_);
-#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp74_);
-#line 17016 "Commands.c"
- }
- }
- }
- {
- gint i = 0;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- i = 0;
-#line 17024 "Commands.c"
- {
- gboolean _tmp77_ = FALSE;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp77_ = TRUE;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 17031 "Commands.c"
- gint _tmp79_;
- GeeList* _tmp80_;
- gint _tmp81_;
- gint _tmp82_;
- GeeList* _tmp83_;
- gint _tmp84_;
- gpointer _tmp85_;
- SourceProxy* _tmp86_;
- DataSource* _tmp87_;
- DataSource* _tmp88_;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp77_) {
-#line 17044 "Commands.c"
- gint _tmp78_;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp78_ = i;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp78_ + 1;
-#line 17050 "Commands.c"
- }
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp77_ = FALSE;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp79_ = i;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp80_ = self->priv->dest_before_state;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp81_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp82_ = _tmp81_;
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp79_ < _tmp82_)) {
-#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 17066 "Commands.c"
- }
-#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp83_ = self->priv->dest_before_state;
-#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp84_ = i;
-#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp85_ = gee_list_get (_tmp83_, _tmp84_);
-#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp86_ = (SourceProxy*) _tmp85_;
-#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp87_ = source_proxy_get_source (_tmp86_);
-#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp88_ = _tmp87_;
-#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp88_);
-#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp86_);
-#line 17084 "Commands.c"
- }
- }
- }
-#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp89_ = self->priv->to_path_parent_path;
-#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp89_ != NULL) {
-#line 17092 "Commands.c"
- gchar* new_path = NULL;
- const gchar* _tmp90_;
- gchar* _tmp91_;
- const gchar* _tmp92_ = NULL;
- const gchar* _tmp93_;
- gchar* path = NULL;
- gchar* _tmp96_;
- TagSourceCollection* _tmp97_;
- const gchar* _tmp98_;
- Tag* t = NULL;
- const gchar* _tmp99_;
- Tag* _tmp100_;
- GeeList* kids = NULL;
- Tag* _tmp101_;
- GeeList* _tmp102_;
- const gchar* _tmp120_;
- GeeMap* _tmp121_;
-#line 1897 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp90_ = self->priv->to_path_parent_path;
-#line 1897 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp91_ = hierarchical_tag_utilities_get_root_path_form (_tmp90_);
-#line 1897 "/home/jens/Source/shotwell/src/Commands.vala"
- new_path = _tmp91_;
-#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp93_ = new_path;
-#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp93_ != NULL) {
-#line 17120 "Commands.c"
- const gchar* _tmp94_;
-#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp94_ = new_path;
-#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp92_ = _tmp94_;
-#line 17126 "Commands.c"
- } else {
- const gchar* _tmp95_;
-#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp95_ = self->priv->to_path_parent_path;
-#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp92_ = _tmp95_;
-#line 17133 "Commands.c"
- }
-#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp96_ = g_strdup (_tmp92_);
-#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp96_;
-#line 1900 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp97_ = tag_global;
-#line 1900 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp98_ = path;
-#line 1900 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp97_, _tmp98_, FALSE), "Tag.global.exists(path)");
-#line 1902 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp99_ = path;
-#line 1902 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp100_ = tag_for_path (_tmp99_);
-#line 1902 "/home/jens/Source/shotwell/src/Commands.vala"
- t = _tmp100_;
-#line 1904 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp101_ = t;
-#line 1904 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp102_ = tag_get_hierarchical_children (_tmp101_);
-#line 1904 "/home/jens/Source/shotwell/src/Commands.vala"
- kids = _tmp102_;
-#line 17157 "Commands.c"
- {
- GeeList* _kidtag_list = NULL;
- GeeList* _tmp103_;
- GeeList* _tmp104_;
- gint _kidtag_size = 0;
- GeeList* _tmp105_;
- gint _tmp106_;
- gint _tmp107_;
- gint _kidtag_index = 0;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp103_ = kids;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp104_ = _g_object_ref0 (_tmp103_);
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_list = _tmp104_;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp105_ = _kidtag_list;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp106_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp107_ = _tmp106_;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_size = _tmp107_;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_index = -1;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 17185 "Commands.c"
- gint _tmp108_;
- gint _tmp109_;
- gint _tmp110_;
- Tag* kidtag = NULL;
- GeeList* _tmp111_;
- gint _tmp112_;
- gpointer _tmp113_;
- Tag* _tmp114_;
- Tag* _tmp115_;
- GeeCollection* _tmp116_;
- GeeCollection* _tmp117_;
- GeeMultiMap* _tmp118_;
- GeeMultiMap* _tmp119_;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp108_ = _kidtag_index;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_index = _tmp108_ + 1;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp109_ = _kidtag_index;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp110_ = _kidtag_size;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp109_ < _tmp110_)) {
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 17211 "Commands.c"
- }
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp111_ = _kidtag_list;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp112_ = _kidtag_index;
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp113_ = gee_list_get (_tmp111_, _tmp112_);
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- kidtag = (Tag*) _tmp113_;
-#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp114_ = kidtag;
-#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp115_ = kidtag;
-#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp116_ = tag_get_sources (_tmp115_);
-#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp117_ = _tmp116_;
-#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp118_ = tag_detach_many (_tmp114_, _tmp117_);
-#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp119_ = _tmp118_;
-#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp119_);
-#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp117_);
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (kidtag);
-#line 17239 "Commands.c"
- }
-#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_kidtag_list);
-#line 17243 "Commands.c"
- }
-#line 1908 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp120_ = path;
-#line 1908 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp121_ = self->priv->existing_dest_child_structure;
-#line 1908 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_restore_child_attachments_at (self, _tmp120_, _tmp121_);
-#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (kids);
-#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (t);
-#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path);
-#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (new_path);
-#line 17259 "Commands.c"
- } else {
- GeeSet* _tmp122_;
- const gchar* _tmp123_;
- Tag* _tmp124_;
- Tag* _tmp125_;
- const gchar* _tmp126_;
- Tag* _tmp127_;
- Tag* _tmp128_;
- GeeCollection* _tmp129_;
- GeeCollection* _tmp130_;
- GeeMultiMap* _tmp131_;
- GeeMultiMap* _tmp132_;
- const gchar* _tmp133_;
- Tag* _tmp134_;
- Tag* _tmp135_;
- GeeSet* _tmp136_;
- GeeList* kids = NULL;
- const gchar* _tmp137_;
- Tag* _tmp138_;
- Tag* _tmp139_;
- GeeList* _tmp140_;
- GeeList* _tmp141_;
- const gchar* _tmp159_;
- GeeMap* _tmp160_;
-#line 1910 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp122_ = self->priv->existing_dest_membership;
-#line 1910 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp122_ != NULL, "existing_dest_membership != null");
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp123_ = self->priv->to_path;
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp124_ = tag_for_path (_tmp123_);
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp125_ = _tmp124_;
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp126_ = self->priv->to_path;
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp127_ = tag_for_path (_tmp126_);
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp128_ = _tmp127_;
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp129_ = tag_get_sources (_tmp128_);
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp130_ = _tmp129_;
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp131_ = tag_detach_many (_tmp125_, _tmp130_);
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp132_ = _tmp131_;
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp132_);
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp130_);
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp128_);
-#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp125_);
-#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp133_ = self->priv->to_path;
-#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp134_ = tag_for_path (_tmp133_);
-#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp135_ = _tmp134_;
-#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp136_ = self->priv->existing_dest_membership;
-#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach_many (_tmp135_, G_TYPE_CHECK_INSTANCE_CAST (_tmp136_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp135_);
-#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp137_ = self->priv->to_path;
-#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp138_ = tag_for_path (_tmp137_);
-#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp139_ = _tmp138_;
-#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp140_ = tag_get_hierarchical_children (_tmp139_);
-#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp141_ = _tmp140_;
-#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp139_);
-#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- kids = _tmp141_;
-#line 17342 "Commands.c"
- {
- GeeList* _kidtag_list = NULL;
- GeeList* _tmp142_;
- GeeList* _tmp143_;
- gint _kidtag_size = 0;
- GeeList* _tmp144_;
- gint _tmp145_;
- gint _tmp146_;
- gint _kidtag_index = 0;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp142_ = kids;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp143_ = _g_object_ref0 (_tmp142_);
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_list = _tmp143_;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp144_ = _kidtag_list;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp145_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp144_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp146_ = _tmp145_;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_size = _tmp146_;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_index = -1;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 17370 "Commands.c"
- gint _tmp147_;
- gint _tmp148_;
- gint _tmp149_;
- Tag* kidtag = NULL;
- GeeList* _tmp150_;
- gint _tmp151_;
- gpointer _tmp152_;
- Tag* _tmp153_;
- Tag* _tmp154_;
- GeeCollection* _tmp155_;
- GeeCollection* _tmp156_;
- GeeMultiMap* _tmp157_;
- GeeMultiMap* _tmp158_;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp147_ = _kidtag_index;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_index = _tmp147_ + 1;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp148_ = _kidtag_index;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp149_ = _kidtag_size;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp148_ < _tmp149_)) {
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 17396 "Commands.c"
- }
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp150_ = _kidtag_list;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp151_ = _kidtag_index;
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp152_ = gee_list_get (_tmp150_, _tmp151_);
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- kidtag = (Tag*) _tmp152_;
-#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp153_ = kidtag;
-#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp154_ = kidtag;
-#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp155_ = tag_get_sources (_tmp154_);
-#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp156_ = _tmp155_;
-#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp157_ = tag_detach_many (_tmp153_, _tmp156_);
-#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp158_ = _tmp157_;
-#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp158_);
-#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp156_);
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (kidtag);
-#line 17424 "Commands.c"
- }
-#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_kidtag_list);
-#line 17428 "Commands.c"
- }
-#line 1918 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp159_ = self->priv->to_path;
-#line 1918 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp160_ = self->priv->existing_dest_child_structure;
-#line 1918 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_restore_child_attachments_at (self, _tmp159_, _tmp160_);
-#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (kids);
-#line 17438 "Commands.c"
- }
-#line 1863 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (unwind_target);
-#line 17442 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_save_after_state (ReparentTagCommand* self)
-{
- GeeList* _tmp0_;
- GeeArrayList* _tmp1_;
- TagSourceCollection* _tmp2_;
- const gchar* _tmp3_;
- Tag* to_tag = NULL;
- const gchar* _tmp4_;
- Tag* _tmp5_;
- GeeList* _tmp6_;
- Tag* _tmp7_;
- SourceProxy* _tmp8_;
- SourceProxy* _tmp9_;
- GeeList* to_children = NULL;
- Tag* _tmp10_;
- GeeList* _tmp11_;
-#line 1922 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1923 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->after_state;
-#line 1923 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ == NULL, "after_state == null");
-#line 1925 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
-#line 1925 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->after_state);
-#line 1925 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->after_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList);
-#line 1928 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_global;
-#line 1928 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->to_path;
-#line 1928 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp2_, _tmp3_, FALSE), "Tag.global.exists(to_path)");
-#line 1929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->to_path;
-#line 1929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = tag_for_path (_tmp4_);
-#line 1929 "/home/jens/Source/shotwell/src/Commands.vala"
- to_tag = _tmp5_;
-#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->after_state;
-#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = to_tag;
-#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PROXYABLE, Proxyable));
-#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
-#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_);
-#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp9_);
-#line 1933 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = to_tag;
-#line 1933 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = tag_get_hierarchical_children (_tmp10_);
-#line 1933 "/home/jens/Source/shotwell/src/Commands.vala"
- to_children = _tmp11_;
-#line 17505 "Commands.c"
- {
- gint i = 0;
- GeeList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = to_children;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp14_ - 1;
-#line 17519 "Commands.c"
- {
- gboolean _tmp15_ = FALSE;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = TRUE;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 17526 "Commands.c"
- gint _tmp17_;
- GeeList* _tmp18_;
- GeeList* _tmp19_;
- gint _tmp20_;
- gpointer _tmp21_;
- Tag* _tmp22_;
- SourceProxy* _tmp23_;
- SourceProxy* _tmp24_;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp15_) {
-#line 17537 "Commands.c"
- gint _tmp16_;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = i;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp16_ - 1;
-#line 17543 "Commands.c"
- }
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = FALSE;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = i;
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp17_ >= 0)) {
-#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 17553 "Commands.c"
- }
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = self->priv->after_state;
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = to_children;
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = i;
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_list_get (_tmp19_, _tmp20_);
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = (Tag*) _tmp21_;
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PROXYABLE, Proxyable));
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _tmp23_;
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), _tmp24_);
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp24_);
-#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp22_);
-#line 17575 "Commands.c"
- }
- }
- }
-#line 1922 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (to_children);
-#line 1922 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (to_tag);
-#line 17583 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_restore_after_state (ReparentTagCommand* self)
-{
- GeeList* _tmp0_;
-#line 1938 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1939 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->after_state;
-#line 1939 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "after_state != null");
-#line 17597 "Commands.c"
- {
- gint i = 0;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- i = 0;
-#line 17602 "Commands.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = TRUE;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 17609 "Commands.c"
- gint _tmp3_;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- GeeList* _tmp7_;
- gint _tmp8_;
- gpointer _tmp9_;
- SourceProxy* _tmp10_;
- DataSource* _tmp11_;
- DataSource* _tmp12_;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp1_) {
-#line 17622 "Commands.c"
- gint _tmp2_;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = i;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp2_ + 1;
-#line 17628 "Commands.c"
- }
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = FALSE;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = i;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->after_state;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp3_ < _tmp6_)) {
-#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 17644 "Commands.c"
- }
-#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->after_state;
-#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = i;
-#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_list_get (_tmp7_, _tmp8_);
-#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = (SourceProxy*) _tmp9_;
-#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = source_proxy_get_source (_tmp10_);
-#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tmp11_;
-#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp12_);
-#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp10_);
-#line 17662 "Commands.c"
- }
- }
- }
-}
-
-
-static void
-reparent_tag_command_prepare_parent (ReparentTagCommand* self,
- const gchar* path)
-{
- Tag* new_parent = NULL;
- Tag* _tmp22_;
-#line 1945 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1945 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (path != NULL);
-#line 1947 "/home/jens/Source/shotwell/src/Commands.vala"
- new_parent = NULL;
-#line 1948 "/home/jens/Source/shotwell/src/Commands.vala"
- if (g_str_has_prefix (path, TAG_PATH_SEPARATOR_STRING)) {
-#line 17683 "Commands.c"
- GeeList* parent_paths = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 1949 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = hierarchical_tag_utilities_enumerate_parent_paths (path);
-#line 1949 "/home/jens/Source/shotwell/src/Commands.vala"
- parent_paths = _tmp0_;
-#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = parent_paths;
-#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ > 0) {
-#line 17701 "Commands.c"
- gchar* immediate_parent_path = NULL;
- GeeList* _tmp4_;
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gpointer _tmp8_;
- TagSourceCollection* _tmp9_;
- const gchar* _tmp10_;
-#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = parent_paths;
-#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = parent_paths;
-#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
-#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_list_get (_tmp4_, _tmp7_ - 1);
-#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- immediate_parent_path = (gchar*) _tmp8_;
-#line 1952 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_global;
-#line 1952 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = immediate_parent_path;
-#line 1952 "/home/jens/Source/shotwell/src/Commands.vala"
- if (tag_source_collection_exists (_tmp9_, _tmp10_, FALSE)) {
-#line 17728 "Commands.c"
- const gchar* _tmp11_;
- Tag* _tmp12_;
-#line 1953 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = immediate_parent_path;
-#line 1953 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = tag_for_path (_tmp11_);
-#line 1953 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (new_parent);
-#line 1953 "/home/jens/Source/shotwell/src/Commands.vala"
- new_parent = _tmp12_;
-#line 17739 "Commands.c"
- } else {
- TagSourceCollection* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gboolean _tmp17_;
-#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = tag_global;
-#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = immediate_parent_path;
-#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = string_substring (_tmp14_, (glong) 1, (glong) -1);
-#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
-#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = tag_source_collection_exists (_tmp13_, _tmp16_, FALSE);
-#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp16_);
-#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp17_) {
-#line 17760 "Commands.c"
- const gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- Tag* _tmp21_;
-#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = immediate_parent_path;
-#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = string_substring (_tmp18_, (glong) 1, (glong) -1);
-#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _tmp19_;
-#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = tag_for_path (_tmp20_);
-#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (new_parent);
-#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- new_parent = _tmp21_;
-#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp20_);
-#line 17779 "Commands.c"
- } else {
-#line 1957 "/home/jens/Source/shotwell/src/Commands.vala"
- g_assert_not_reached ();
-#line 17783 "Commands.c"
- }
- }
-#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (immediate_parent_path);
-#line 17788 "Commands.c"
- }
-#line 1948 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (parent_paths);
-#line 17792 "Commands.c"
- }
-#line 1960 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = new_parent;
-#line 1960 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp22_ != NULL) {
-#line 17798 "Commands.c"
- Tag* _tmp23_;
-#line 1961 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = new_parent;
-#line 1961 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_promote (_tmp23_);
-#line 17804 "Commands.c"
- }
-#line 1945 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (new_parent);
-#line 17808 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_do_source_parent_detachments (ReparentTagCommand* self)
-{
- TagSourceCollection* _tmp0_;
- const gchar* _tmp1_;
- Tag* from_tag = NULL;
- const gchar* _tmp2_;
- Tag* _tmp3_;
- GeeMap* _tmp4_;
-#line 1964 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 1965 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag_global;
-#line 1965 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->from_path;
-#line 1965 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp0_, _tmp1_, FALSE), "Tag.global.exists(from_path)");
-#line 1966 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->from_path;
-#line 1966 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = tag_for_path (_tmp2_);
-#line 1966 "/home/jens/Source/shotwell/src/Commands.vala"
- from_tag = _tmp3_;
-#line 1969 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->src_parent_detachments;
-#line 1969 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_ == NULL) {
-#line 17839 "Commands.c"
- GeeHashMap* _tmp5_;
-#line 1970 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1970 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->src_parent_detachments);
-#line 1970 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->src_parent_detachments = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MAP, GeeMap);
-#line 17847 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- Tag* _tmp6_;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
- GeeIterator* _tmp9_;
- GeeIterator* _tmp10_;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = from_tag;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = tag_get_sources (_tmp6_);
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp8_);
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp10_;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 17871 "Commands.c"
- GeeIterator* _tmp11_;
- MediaSource* source = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- Tag* current_parent = NULL;
- Tag* _tmp14_;
- Tag* _tmp15_;
- gint running_attach_count = 0;
- Tag* _tmp16_;
- MediaSource* _tmp17_;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _source_it;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 17888 "Commands.c"
- }
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _source_it;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp13_;
-#line 1972 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = from_tag;
-#line 1972 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = tag_get_hierarchical_parent (_tmp14_);
-#line 1972 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent = _tmp15_;
-#line 1973 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = from_tag;
-#line 1973 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = source;
-#line 1973 "/home/jens/Source/shotwell/src/Commands.vala"
- running_attach_count = tag_get_attachment_count (_tmp16_, _tmp17_) + 1;
-#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 17910 "Commands.c"
- Tag* _tmp18_;
- gchar* current_parent_path = NULL;
- Tag* _tmp19_;
- gchar* _tmp20_;
- GeeMap* _tmp21_;
- const gchar* _tmp22_;
- gint curr_parent_attach_count = 0;
- Tag* _tmp27_;
- MediaSource* _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- gint _tmp38_;
- Tag* _tmp39_;
- Tag* _tmp40_;
-#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = current_parent;
-#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp18_ != NULL)) {
-#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 17933 "Commands.c"
- }
-#line 1975 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = current_parent;
-#line 1975 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = tag_get_path (_tmp19_);
-#line 1975 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent_path = _tmp20_;
-#line 1976 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = self->priv->src_parent_detachments;
-#line 1976 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = current_parent_path;
-#line 1976 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_map_has_key (_tmp21_, _tmp22_)) {
-#line 17947 "Commands.c"
- GeeMap* _tmp23_;
- const gchar* _tmp24_;
- GeeHashSet* _tmp25_;
- GeeHashSet* _tmp26_;
-#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = self->priv->src_parent_detachments;
-#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = current_parent_path;
-#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _tmp25_;
-#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_map_set (_tmp23_, _tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_SET, GeeSet));
-#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp26_);
-#line 17964 "Commands.c"
- }
-#line 1979 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = current_parent;
-#line 1979 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = source;
-#line 1979 "/home/jens/Source/shotwell/src/Commands.vala"
- curr_parent_attach_count = tag_get_attachment_count (_tmp27_, _tmp28_);
-#line 1981 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = curr_parent_attach_count;
-#line 1981 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = running_attach_count;
-#line 1981 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp29_ >= _tmp30_, "curr_parent_attach_count >= running_attach_count");
-#line 1985 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = curr_parent_attach_count;
-#line 1985 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = running_attach_count;
-#line 1985 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp31_ == _tmp32_) {
-#line 17984 "Commands.c"
- GeeMap* _tmp33_;
- const gchar* _tmp34_;
- gpointer _tmp35_;
- GeeSet* _tmp36_;
- MediaSource* _tmp37_;
-#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = self->priv->src_parent_detachments;
-#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = current_parent_path;
-#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = gee_map_get (_tmp33_, _tmp34_);
-#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = (GeeSet*) _tmp35_;
-#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = source;
-#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_);
-#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp36_);
-#line 18004 "Commands.c"
- }
-#line 1988 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = running_attach_count;
-#line 1988 "/home/jens/Source/shotwell/src/Commands.vala"
- running_attach_count = _tmp38_ + 1;
-#line 1989 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = current_parent;
-#line 1989 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = tag_get_hierarchical_parent (_tmp39_);
-#line 1989 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (current_parent);
-#line 1989 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent = _tmp40_;
-#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (current_parent_path);
-#line 18020 "Commands.c"
- }
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (current_parent);
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 18026 "Commands.c"
- }
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 18030 "Commands.c"
- }
- }
- {
- GeeIterator* _p_it = NULL;
- GeeMap* _tmp41_;
- GeeSet* _tmp42_;
- GeeSet* _tmp43_;
- GeeSet* _tmp44_;
- GeeIterator* _tmp45_;
- GeeIterator* _tmp46_;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = self->priv->src_parent_detachments;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = gee_map_get_keys (_tmp41_);
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = _tmp42_;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = _tmp43_;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = _tmp45_;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp44_);
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _p_it = _tmp46_;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18059 "Commands.c"
- GeeIterator* _tmp47_;
- gchar* p = NULL;
- GeeIterator* _tmp48_;
- gpointer _tmp49_;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = _p_it;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp47_)) {
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18070 "Commands.c"
- }
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = _p_it;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = gee_iterator_get (_tmp48_);
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- p = (gchar*) _tmp49_;
-#line 18078 "Commands.c"
- {
- GeeIterator* _s_it = NULL;
- GeeMap* _tmp50_;
- const gchar* _tmp51_;
- gpointer _tmp52_;
- GeeSet* _tmp53_;
- GeeIterator* _tmp54_;
- GeeIterator* _tmp55_;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = self->priv->src_parent_detachments;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = p;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = gee_map_get (_tmp50_, _tmp51_);
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = (GeeSet*) _tmp52_;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = _tmp54_;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp53_);
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp55_;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18105 "Commands.c"
- GeeIterator* _tmp56_;
- MediaSource* s = NULL;
- GeeIterator* _tmp57_;
- gpointer _tmp58_;
- const gchar* _tmp59_;
- Tag* _tmp60_;
- Tag* _tmp61_;
- MediaSource* _tmp62_;
- GeeList* _tmp63_;
- GeeList* _tmp64_;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = _s_it;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp56_)) {
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18122 "Commands.c"
- }
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = _s_it;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = gee_iterator_get (_tmp57_);
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp58_;
-#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = p;
-#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp60_ = tag_for_path (_tmp59_);
-#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp61_ = _tmp60_;
-#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp62_ = s;
-#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp63_ = tag_detach (_tmp61_, _tmp62_);
-#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp64_ = _tmp63_;
-#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp64_);
-#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp61_);
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (s);
-#line 18148 "Commands.c"
- }
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_s_it);
-#line 18152 "Commands.c"
- }
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (p);
-#line 18156 "Commands.c"
- }
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_p_it);
-#line 18160 "Commands.c"
- }
-#line 1964 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (from_tag);
-#line 18164 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_do_source_parent_reattachments (ReparentTagCommand* self)
-{
- GeeMap* _tmp0_;
-#line 2000 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 2001 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->src_parent_detachments;
-#line 2001 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "src_parent_detachments != null");
-#line 18178 "Commands.c"
- {
- GeeIterator* _p_it = NULL;
- GeeMap* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeSet* _tmp4_;
- GeeIterator* _tmp5_;
- GeeIterator* _tmp6_;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->src_parent_detachments;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_map_get_keys (_tmp1_);
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _p_it = _tmp6_;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18205 "Commands.c"
- GeeIterator* _tmp7_;
- gchar* p = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _p_it;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18216 "Commands.c"
- }
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _p_it;
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- p = (gchar*) _tmp9_;
-#line 18224 "Commands.c"
- {
- GeeIterator* _s_it = NULL;
- GeeMap* _tmp10_;
- const gchar* _tmp11_;
- gpointer _tmp12_;
- GeeSet* _tmp13_;
- GeeIterator* _tmp14_;
- GeeIterator* _tmp15_;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->src_parent_detachments;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = p;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_map_get (_tmp10_, _tmp11_);
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = (GeeSet*) _tmp12_;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp15_;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18251 "Commands.c"
- GeeIterator* _tmp16_;
- MediaSource* s = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
- const gchar* _tmp19_;
- Tag* _tmp20_;
- Tag* _tmp21_;
- MediaSource* _tmp22_;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _s_it;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp16_)) {
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18266 "Commands.c"
- }
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _s_it;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp18_;
-#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = p;
-#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = tag_for_path (_tmp19_);
-#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
-#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = s;
-#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp21_, _tmp22_);
-#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp21_);
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (s);
-#line 18288 "Commands.c"
- }
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_s_it);
-#line 18292 "Commands.c"
- }
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (p);
-#line 18296 "Commands.c"
- }
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_p_it);
-#line 18300 "Commands.c"
- }
-}
-
-
-static void
-reparent_tag_command_do_destination_parent_detachments (ReparentTagCommand* self)
-{
- GeeMap* _tmp0_;
-#line 2008 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 2009 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->dest_parent_attachments;
-#line 2009 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "dest_parent_attachments != null");
-#line 18315 "Commands.c"
- {
- GeeIterator* _p_it = NULL;
- GeeMap* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeSet* _tmp4_;
- GeeIterator* _tmp5_;
- GeeIterator* _tmp6_;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->dest_parent_attachments;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_map_get_keys (_tmp1_);
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _p_it = _tmp6_;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18342 "Commands.c"
- GeeIterator* _tmp7_;
- gchar* p = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _p_it;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18353 "Commands.c"
- }
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _p_it;
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- p = (gchar*) _tmp9_;
-#line 18361 "Commands.c"
- {
- GeeIterator* _s_it = NULL;
- GeeMap* _tmp10_;
- const gchar* _tmp11_;
- gpointer _tmp12_;
- GeeSet* _tmp13_;
- GeeIterator* _tmp14_;
- GeeIterator* _tmp15_;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->dest_parent_attachments;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = p;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_map_get (_tmp10_, _tmp11_);
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = (GeeSet*) _tmp12_;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp15_;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18388 "Commands.c"
- GeeIterator* _tmp16_;
- MediaSource* s = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
- const gchar* _tmp19_;
- Tag* _tmp20_;
- Tag* _tmp21_;
- MediaSource* _tmp22_;
- GeeList* _tmp23_;
- GeeList* _tmp24_;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _s_it;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp16_)) {
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18405 "Commands.c"
- }
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _s_it;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp18_;
-#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = p;
-#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = tag_for_path (_tmp19_);
-#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
-#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = s;
-#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = tag_detach (_tmp21_, _tmp22_);
-#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _tmp23_;
-#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp24_);
-#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp21_);
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (s);
-#line 18431 "Commands.c"
- }
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_s_it);
-#line 18435 "Commands.c"
- }
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (p);
-#line 18439 "Commands.c"
- }
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_p_it);
-#line 18443 "Commands.c"
- }
-}
-
-
-static void
-reparent_tag_command_do_destination_parent_reattachments (ReparentTagCommand* self)
-{
- GeeMap* _tmp0_;
-#line 2016 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 2017 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->dest_parent_attachments;
-#line 2017 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "dest_parent_attachments != null");
-#line 18458 "Commands.c"
- {
- GeeIterator* _p_it = NULL;
- GeeMap* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeSet* _tmp4_;
- GeeIterator* _tmp5_;
- GeeIterator* _tmp6_;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->dest_parent_attachments;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_map_get_keys (_tmp1_);
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _p_it = _tmp6_;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18485 "Commands.c"
- GeeIterator* _tmp7_;
- gchar* p = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _p_it;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18496 "Commands.c"
- }
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _p_it;
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- p = (gchar*) _tmp9_;
-#line 18504 "Commands.c"
- {
- GeeIterator* _s_it = NULL;
- GeeMap* _tmp10_;
- const gchar* _tmp11_;
- gpointer _tmp12_;
- GeeSet* _tmp13_;
- GeeIterator* _tmp14_;
- GeeIterator* _tmp15_;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->dest_parent_attachments;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = p;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_map_get (_tmp10_, _tmp11_);
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = (GeeSet*) _tmp12_;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp15_;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18531 "Commands.c"
- GeeIterator* _tmp16_;
- MediaSource* s = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
- const gchar* _tmp19_;
- Tag* _tmp20_;
- Tag* _tmp21_;
- MediaSource* _tmp22_;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _s_it;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp16_)) {
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18546 "Commands.c"
- }
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _s_it;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp18_;
-#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = p;
-#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = tag_for_path (_tmp19_);
-#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
-#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = s;
-#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp21_, _tmp22_);
-#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp21_);
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (s);
-#line 18568 "Commands.c"
- }
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_s_it);
-#line 18572 "Commands.c"
- }
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (p);
-#line 18576 "Commands.c"
- }
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_p_it);
-#line 18580 "Commands.c"
- }
-}
-
-
-static void
-reparent_tag_command_copy_subtree (ReparentTagCommand* self,
- const gchar* from,
- const gchar* to)
-{
- TagSourceCollection* _tmp0_;
- Tag* from_tag = NULL;
- Tag* _tmp1_;
- Tag* to_tag = NULL;
- Tag* _tmp2_;
- GeeHashMap* _tmp3_;
- GeeList* from_children = NULL;
- Tag* _tmp42_;
- GeeList* _tmp43_;
-#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (from != NULL);
-#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (to != NULL);
-#line 2025 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag_global;
-#line 2025 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp0_, from, FALSE), "Tag.global.exists(from)");
-#line 2026 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag_for_path (from);
-#line 2026 "/home/jens/Source/shotwell/src/Commands.vala"
- from_tag = _tmp1_;
-#line 2029 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_for_path (to);
-#line 2029 "/home/jens/Source/shotwell/src/Commands.vala"
- to_tag = _tmp2_;
-#line 2033 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 2033 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->dest_parent_attachments);
-#line 2033 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->dest_parent_attachments = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MAP, GeeMap);
-#line 18623 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- Tag* _tmp4_;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
- GeeIterator* _tmp8_;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = from_tag;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = tag_get_sources (_tmp4_);
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp6_);
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp8_;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18647 "Commands.c"
- GeeIterator* _tmp9_;
- MediaSource* source = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- Tag* current_parent = NULL;
- Tag* _tmp12_;
- Tag* _tmp13_;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _source_it;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18661 "Commands.c"
- }
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _source_it;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp11_;
-#line 2035 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = to_tag;
-#line 2035 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = tag_get_hierarchical_parent (_tmp12_);
-#line 2035 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent = _tmp13_;
-#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18677 "Commands.c"
- Tag* _tmp14_;
- gchar* current_parent_path = NULL;
- Tag* _tmp15_;
- gchar* _tmp16_;
- GeeMap* _tmp17_;
- const gchar* _tmp18_;
- Tag* _tmp23_;
- MediaSource* _tmp24_;
- Tag* _tmp30_;
- Tag* _tmp31_;
-#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = current_parent;
-#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp14_ != NULL)) {
-#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18694 "Commands.c"
- }
-#line 2037 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = current_parent;
-#line 2037 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = tag_get_path (_tmp15_);
-#line 2037 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent_path = _tmp16_;
-#line 2038 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->dest_parent_attachments;
-#line 2038 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = current_parent_path;
-#line 2038 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_map_has_key (_tmp17_, _tmp18_)) {
-#line 18708 "Commands.c"
- GeeMap* _tmp19_;
- const gchar* _tmp20_;
- GeeHashSet* _tmp21_;
- GeeHashSet* _tmp22_;
-#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = self->priv->dest_parent_attachments;
-#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = current_parent_path;
-#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
-#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_map_set (_tmp19_, _tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_SET, GeeSet));
-#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp22_);
-#line 18725 "Commands.c"
- }
-#line 2041 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = current_parent;
-#line 2041 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = source;
-#line 2041 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!tag_contains (_tmp23_, _tmp24_)) {
-#line 18733 "Commands.c"
- GeeMap* _tmp25_;
- const gchar* _tmp26_;
- gpointer _tmp27_;
- GeeSet* _tmp28_;
- MediaSource* _tmp29_;
-#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = self->priv->dest_parent_attachments;
-#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = current_parent_path;
-#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = gee_map_get (_tmp25_, _tmp26_);
-#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = (GeeSet*) _tmp27_;
-#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = source;
-#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), _tmp29_);
-#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp28_);
-#line 18753 "Commands.c"
- }
-#line 2044 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = current_parent;
-#line 2044 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = tag_get_hierarchical_parent (_tmp30_);
-#line 2044 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (current_parent);
-#line 2044 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent = _tmp31_;
-#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (current_parent_path);
-#line 18765 "Commands.c"
- }
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (current_parent);
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 18771 "Commands.c"
- }
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 18775 "Commands.c"
- }
- {
- GeeIterator* _source_it = NULL;
- Tag* _tmp32_;
- GeeCollection* _tmp33_;
- GeeCollection* _tmp34_;
- GeeIterator* _tmp35_;
- GeeIterator* _tmp36_;
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = from_tag;
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = tag_get_sources (_tmp32_);
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = _tmp33_;
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = _tmp35_;
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp34_);
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp36_;
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18800 "Commands.c"
- GeeIterator* _tmp37_;
- MediaSource* source = NULL;
- GeeIterator* _tmp38_;
- gpointer _tmp39_;
- Tag* _tmp40_;
- MediaSource* _tmp41_;
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = _source_it;
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp37_)) {
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18813 "Commands.c"
- }
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = _source_it;
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = gee_iterator_get (_tmp38_);
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp39_;
-#line 2049 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = to_tag;
-#line 2049 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = source;
-#line 2049 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp40_, _tmp41_);
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 18829 "Commands.c"
- }
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 18833 "Commands.c"
- }
-#line 2053 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = from_tag;
-#line 2053 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = tag_get_hierarchical_children (_tmp42_);
-#line 2053 "/home/jens/Source/shotwell/src/Commands.vala"
- from_children = _tmp43_;
-#line 18841 "Commands.c"
- {
- gint i = 0;
- GeeList* _tmp44_;
- gint _tmp45_;
- gint _tmp46_;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = from_children;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = _tmp45_;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp46_ - 1;
-#line 18855 "Commands.c"
- {
- gboolean _tmp47_ = FALSE;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = TRUE;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18862 "Commands.c"
- gint _tmp49_;
- Tag* from_child = NULL;
- GeeList* _tmp50_;
- gint _tmp51_;
- gpointer _tmp52_;
- gchar* child_subpath = NULL;
- Tag* _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_;
- gchar* _tmp56_;
- gchar* _tmp57_;
- gchar* _tmp58_;
- gchar* _tmp59_;
- Tag* to_child = NULL;
- Tag* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- const gchar* _tmp65_;
- gchar* _tmp66_;
- gchar* _tmp67_;
- Tag* _tmp68_;
- Tag* _tmp69_;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp47_) {
-#line 18889 "Commands.c"
- gint _tmp48_;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = i;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp48_ - 1;
-#line 18895 "Commands.c"
- }
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = FALSE;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = i;
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp49_ >= 0)) {
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 18905 "Commands.c"
- }
-#line 2055 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = from_children;
-#line 2055 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = i;
-#line 2055 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = gee_list_get (_tmp50_, _tmp51_);
-#line 2055 "/home/jens/Source/shotwell/src/Commands.vala"
- from_child = (Tag*) _tmp52_;
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = from_child;
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = tag_get_path (_tmp53_);
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = _tmp54_;
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = g_strconcat (from, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = _tmp56_;
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = string_replace (_tmp55_, _tmp57_, "");
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = _tmp58_;
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp57_);
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp55_);
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = _tmp59_;
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp60_ = to_tag;
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp61_ = tag_get_path (_tmp60_);
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp62_ = _tmp61_;
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp63_ = g_strconcat (_tmp62_, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp64_ = _tmp63_;
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp65_ = child_subpath;
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp66_ = g_strconcat (_tmp64_, _tmp65_, NULL);
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp67_ = _tmp66_;
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp68_ = tag_for_path (_tmp67_);
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = _tmp68_;
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp67_);
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp64_);
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp62_);
-#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- to_child = _tmp69_;
-#line 18963 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- Tag* _tmp70_;
- GeeCollection* _tmp71_;
- GeeCollection* _tmp72_;
- GeeIterator* _tmp73_;
- GeeIterator* _tmp74_;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp70_ = from_child;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp71_ = tag_get_sources (_tmp70_);
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp72_ = _tmp71_;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp73_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp74_ = _tmp73_;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp72_);
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp74_;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 18987 "Commands.c"
- GeeIterator* _tmp75_;
- MediaSource* source = NULL;
- GeeIterator* _tmp76_;
- gpointer _tmp77_;
- Tag* _tmp78_;
- MediaSource* _tmp79_;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp75_ = _source_it;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp75_)) {
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 19000 "Commands.c"
- }
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp76_ = _source_it;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp77_ = gee_iterator_get (_tmp76_);
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp77_;
-#line 2064 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp78_ = to_child;
-#line 2064 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp79_ = source;
-#line 2064 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp78_, _tmp79_);
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 19016 "Commands.c"
- }
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 19020 "Commands.c"
- }
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (to_child);
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (child_subpath);
-#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (from_child);
-#line 19028 "Commands.c"
- }
- }
- }
-#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (from_children);
-#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (to_tag);
-#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (from_tag);
-#line 19038 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_destroy_subtree (ReparentTagCommand* self,
- const gchar* client_path)
-{
- gchar* victim_path = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- TagSourceCollection* _tmp3_;
- const gchar* _tmp4_;
- Tag* victim = NULL;
- const gchar* _tmp5_;
- Tag* _tmp6_;
- GeeList* victim_children = NULL;
- Tag* _tmp7_;
- GeeList* _tmp8_;
- TagSourceCollection* _tmp23_;
- TagSourceCollection* _tmp24_;
- Tag* _tmp25_;
- Marker* _tmp26_;
- Marker* _tmp27_;
-#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
-#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (client_path != NULL);
-#line 2069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path);
-#line 2069 "/home/jens/Source/shotwell/src/Commands.vala"
- victim_path = _tmp0_;
-#line 2070 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = victim_path;
-#line 2070 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ == NULL) {
-#line 19074 "Commands.c"
- gchar* _tmp2_;
-#line 2071 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = g_strdup (client_path);
-#line 2071 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (victim_path);
-#line 2071 "/home/jens/Source/shotwell/src/Commands.vala"
- victim_path = _tmp2_;
-#line 19082 "Commands.c"
- }
-#line 2073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = tag_global;
-#line 2073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = victim_path;
-#line 2073 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!tag_source_collection_exists (_tmp3_, _tmp4_, FALSE)) {
-#line 2074 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (victim_path);
-#line 2074 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 19094 "Commands.c"
- }
-#line 2076 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = victim_path;
-#line 2076 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = tag_for_path (_tmp5_);
-#line 2076 "/home/jens/Source/shotwell/src/Commands.vala"
- victim = _tmp6_;
-#line 2079 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = victim;
-#line 2079 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = tag_get_hierarchical_children (_tmp7_);
-#line 2079 "/home/jens/Source/shotwell/src/Commands.vala"
- victim_children = _tmp8_;
-#line 19108 "Commands.c"
- {
- gint i = 0;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- i = 0;
-#line 19113 "Commands.c"
- {
- gboolean _tmp9_ = FALSE;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = TRUE;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 19120 "Commands.c"
- gint _tmp11_;
- GeeList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- TagSourceCollection* _tmp15_;
- TagSourceCollection* _tmp16_;
- GeeList* _tmp17_;
- gint _tmp18_;
- gpointer _tmp19_;
- Tag* _tmp20_;
- Marker* _tmp21_;
- Marker* _tmp22_;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp9_) {
-#line 19135 "Commands.c"
- gint _tmp10_;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = i;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp10_ + 1;
-#line 19141 "Commands.c"
- }
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = FALSE;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = i;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = victim_children;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp11_ < _tmp14_)) {
-#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 19157 "Commands.c"
- }
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = tag_global;
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = tag_global;
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = victim_children;
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = i;
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_list_get (_tmp17_, _tmp18_);
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = (Tag*) _tmp19_;
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject));
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp22_, TRUE, NULL, NULL, NULL);
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp22_);
-#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp20_);
-#line 19181 "Commands.c"
- }
- }
- }
-#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = tag_global;
-#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = tag_global;
-#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = victim;
-#line 2084 "/home/jens/Source/shotwell/src/Commands.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 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _tmp26_;
-#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp27_, TRUE, NULL, NULL, NULL);
-#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp27_);
-#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (victim_children);
-#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (victim);
-#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (victim_path);
-#line 19205 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_real_execute (Command* base)
-{
- ReparentTagCommand * self;
- GeeList* _tmp0_;
-#line 2087 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand);
-#line 2088 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->after_state;
-#line 2088 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_ == NULL) {
-#line 19220 "Commands.c"
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
-#line 2089 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_save_before_state (self);
-#line 2091 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->to_path;
-#line 2091 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_prepare_parent (self, _tmp1_);
-#line 2093 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->from_path;
-#line 2093 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->to_path;
-#line 2093 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_copy_subtree (self, _tmp2_, _tmp3_);
-#line 2095 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_save_after_state (self);
-#line 2097 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_do_source_parent_detachments (self);
-#line 2099 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->from_path;
-#line 2099 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_destroy_subtree (self, _tmp4_);
-#line 19245 "Commands.c"
- } else {
- const gchar* _tmp5_;
- const gchar* _tmp6_;
- GeeMap* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
-#line 2101 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->to_path;
-#line 2101 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_prepare_parent (self, _tmp5_);
-#line 2103 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_restore_after_state (self);
-#line 2105 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->to_path;
-#line 2105 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->in_play_child_structure;
-#line 2105 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_restore_child_attachments_at (self, _tmp6_, _tmp7_);
-#line 2106 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->to_path;
-#line 2106 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_reattach_in_play_sources_at (self, _tmp8_);
-#line 2108 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_do_source_parent_detachments (self);
-#line 2109 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_do_destination_parent_reattachments (self);
-#line 2111 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->from_path;
-#line 2111 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_destroy_subtree (self, _tmp9_);
-#line 19276 "Commands.c"
- }
-}
-
-
-static void
-reparent_tag_command_real_undo (Command* base)
-{
- ReparentTagCommand * self;
- GeeList* _tmp0_;
- const gchar* _tmp1_;
- gboolean _tmp2_;
- const gchar* _tmp4_;
- GeeMap* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
-#line 2115 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand);
-#line 2116 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->src_before_state;
-#line 2116 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp0_ != NULL, "src_before_state != null");
-#line 2118 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->from_path;
-#line 2118 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_prepare_parent (self, _tmp1_);
-#line 2120 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_restore_before_state (self);
-#line 2122 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->to_path_exists;
-#line 2122 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp2_) {
-#line 19310 "Commands.c"
- const gchar* _tmp3_;
-#line 2123 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->to_path;
-#line 2123 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_destroy_subtree (self, _tmp3_);
-#line 19316 "Commands.c"
- }
-#line 2125 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->from_path;
-#line 2125 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->in_play_child_structure;
-#line 2125 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_restore_child_attachments_at (self, _tmp4_, _tmp5_);
-#line 2126 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->from_path;
-#line 2126 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_reattach_in_play_sources_at (self, _tmp6_);
-#line 2128 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_do_source_parent_reattachments (self);
-#line 2129 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_do_destination_parent_detachments (self);
-#line 2131 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->to_path;
-#line 2131 "/home/jens/Source/shotwell/src/Commands.vala"
- hierarchical_tag_utilities_cleanup_root_path (_tmp7_);
-#line 2132 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->from_path;
-#line 2132 "/home/jens/Source/shotwell/src/Commands.vala"
- hierarchical_tag_utilities_cleanup_root_path (_tmp8_);
-#line 2133 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->to_path_parent_path;
-#line 2133 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp9_ != NULL) {
-#line 19344 "Commands.c"
- const gchar* _tmp10_;
-#line 2134 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->to_path_parent_path;
-#line 2134 "/home/jens/Source/shotwell/src/Commands.vala"
- hierarchical_tag_utilities_cleanup_root_path (_tmp10_);
-#line 19350 "Commands.c"
- }
-}
-
-
-static void
-reparent_tag_command_class_init (ReparentTagCommandClass * klass)
-{
-#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_parent_class = g_type_class_peek_parent (klass);
-#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (ReparentTagCommandPrivate));
-#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) reparent_tag_command_real_execute;
-#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) reparent_tag_command_real_undo;
-#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = reparent_tag_command_finalize;
-#line 19368 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_instance_init (ReparentTagCommand * self)
-{
- GeeHashSet* _tmp0_;
-#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = REPARENT_TAG_COMMAND_GET_PRIVATE (self);
-#line 1683 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->src_before_state = NULL;
-#line 1684 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->dest_before_state = NULL;
-#line 1685 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->after_state = NULL;
-#line 1686 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1686 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->sources_in_play = _tmp0_;
-#line 1687 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->dest_parent_attachments = NULL;
-#line 1688 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->src_parent_detachments = NULL;
-#line 1689 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->in_play_child_structure = NULL;
-#line 1690 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->existing_dest_child_structure = NULL;
-#line 1691 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->existing_dest_membership = NULL;
-#line 1692 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path_exists = FALSE;
-#line 19400 "Commands.c"
-}
-
-
-static void
-reparent_tag_command_finalize (GObject * obj)
-{
- ReparentTagCommand * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- VideoSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand);
-#line 1724 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = library_photo_global;
-#line 1724 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 1724 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self);
-#line 1725 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = video_global;
-#line 1725 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 1725 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self);
-#line 1680 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->from_path);
-#line 1681 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path);
-#line 1682 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->to_path_parent_path);
-#line 1683 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->src_before_state);
-#line 1684 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->dest_before_state);
-#line 1685 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->after_state);
-#line 1686 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->sources_in_play);
-#line 1687 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->dest_parent_attachments);
-#line 1688 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->src_parent_detachments);
-#line 1689 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->in_play_child_structure);
-#line 1690 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->existing_dest_child_structure);
-#line 1691 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->existing_dest_membership);
-#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (reparent_tag_command_parent_class)->finalize (obj);
-#line 19452 "Commands.c"
-}
-
-
-GType
-reparent_tag_command_get_type (void)
-{
- static volatile gsize reparent_tag_command_type_id__volatile = 0;
- if (g_once_init_enter (&reparent_tag_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ReparentTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) reparent_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ReparentTagCommand), 0, (GInstanceInitFunc) reparent_tag_command_instance_init, NULL };
- GType reparent_tag_command_type_id;
- reparent_tag_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "ReparentTagCommand", &g_define_type_info, 0);
- g_once_init_leave (&reparent_tag_command_type_id__volatile, reparent_tag_command_type_id);
- }
- return reparent_tag_command_type_id__volatile;
-}
-
-
-static void
-_modify_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
- gpointer self)
-{
-#line 2179 "/home/jens/Source/shotwell/src/Commands.vala"
- modify_tags_command_on_proxy_broken ((ModifyTagsCommand*) self);
-#line 19476 "Commands.c"
-}
-
-
-ModifyTagsCommand*
-modify_tags_command_construct (GType object_type,
- MediaSource* media,
- GeeCollection* new_tag_list)
-{
- ModifyTagsCommand * self = NULL;
- MediaSource* _tmp0_;
- GeeList* original_tags = NULL;
- TagSourceCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- GeeSortedSet* new_paths = NULL;
- GeeTreeSet* _tmp20_;
-#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL);
-#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (new_tag_list), NULL);
-#line 2144 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (ModifyTagsCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_SOURCE, DataSource), RESOURCES_MODIFY_TAGS_LABEL, "");
-#line 2146 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (media);
-#line 2146 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->media);
-#line 2146 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->media = _tmp0_;
-#line 2149 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag_global;
-#line 2149 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_source_collection_fetch_for_source (_tmp1_, media);
-#line 2149 "/home/jens/Source/shotwell/src/Commands.vala"
- original_tags = _tmp2_;
-#line 2150 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = original_tags;
-#line 2150 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != NULL) {
-#line 19515 "Commands.c"
- {
- GeeList* _tag_list = NULL;
- GeeList* _tmp4_;
- GeeList* _tmp5_;
- gint _tag_size = 0;
- GeeList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tag_index = 0;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = original_tags;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_list = _tmp5_;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tag_list;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_size = _tmp8_;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_index = -1;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 19543 "Commands.c"
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- Tag* tag = NULL;
- GeeList* _tmp12_;
- gint _tmp13_;
- gpointer _tmp14_;
- SourceProxy* proxy = NULL;
- Tag* _tmp15_;
- SourceProxy* _tmp16_;
- GeeArrayList* _tmp17_;
- SourceProxy* _tmp18_;
- SourceProxy* _tmp19_;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tag_index;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_index = _tmp9_ + 1;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tag_index;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tag_size;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp10_ < _tmp11_)) {
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 19569 "Commands.c"
- }
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tag_list;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tag_index;
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_list_get (_tmp12_, _tmp13_);
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = (Tag*) _tmp14_;
-#line 2152 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = tag;
-#line 2152 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PROXYABLE, Proxyable));
-#line 2152 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = _tmp16_;
-#line 2153 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->to_remove;
-#line 2153 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = proxy;
-#line 2153 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_);
-#line 2154 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = proxy;
-#line 2154 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp19_, "broken", (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (tag);
-#line 19599 "Commands.c"
- }
-#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tag_list);
-#line 19603 "Commands.c"
- }
- }
-#line 2160 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 2160 "/home/jens/Source/shotwell/src/Commands.vala"
- new_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 19610 "Commands.c"
- {
- GeeIterator* _new_tag_it = NULL;
- GeeIterator* _tmp21_;
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (new_tag_list, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _new_tag_it = _tmp21_;
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 19620 "Commands.c"
- GeeIterator* _tmp22_;
- Tag* new_tag = NULL;
- GeeIterator* _tmp23_;
- gpointer _tmp24_;
- gchar* new_tag_path = NULL;
- Tag* _tmp25_;
- gchar* _tmp26_;
- GeeSortedSet* _tmp27_;
- const gchar* _tmp28_;
- GeeSortedSet* _tmp29_;
- const gchar* _tmp30_;
- GeeList* _tmp31_;
- GeeList* _tmp32_;
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _new_tag_it;
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp22_)) {
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 19640 "Commands.c"
- }
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _new_tag_it;
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = gee_iterator_get (_tmp23_);
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- new_tag = (Tag*) _tmp24_;
-#line 2162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = new_tag;
-#line 2162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = tag_get_path (_tmp25_);
-#line 2162 "/home/jens/Source/shotwell/src/Commands.vala"
- new_tag_path = _tmp26_;
-#line 2164 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = new_paths;
-#line 2164 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = new_tag_path;
-#line 2164 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_);
-#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = new_paths;
-#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = new_tag_path;
-#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp30_);
-#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = _tmp31_;
-#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp32_);
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (new_tag_path);
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (new_tag);
-#line 19676 "Commands.c"
- }
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_new_tag_it);
-#line 19680 "Commands.c"
- }
- {
- GeeIterator* _path_it = NULL;
- GeeSortedSet* _tmp33_;
- GeeIterator* _tmp34_;
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = new_paths;
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _path_it = _tmp34_;
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 19694 "Commands.c"
- GeeIterator* _tmp35_;
- gchar* path = NULL;
- GeeIterator* _tmp36_;
- gpointer _tmp37_;
- TagSourceCollection* _tmp38_;
- const gchar* _tmp39_;
- SourceProxy* proxy = NULL;
- const gchar* _tmp40_;
- Tag* _tmp41_;
- Tag* _tmp42_;
- SourceProxy* _tmp43_;
- SourceProxy* _tmp44_;
- GeeArrayList* _tmp45_;
- SourceProxy* _tmp46_;
- SourceProxy* _tmp47_;
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = _path_it;
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp35_)) {
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 19716 "Commands.c"
- }
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = _path_it;
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = gee_iterator_get (_tmp36_);
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- path = (gchar*) _tmp37_;
-#line 2169 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = tag_global;
-#line 2169 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = path;
-#line 2169 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (tag_source_collection_exists (_tmp38_, _tmp39_, FALSE), "Tag.global.exists(path)");
-#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = path;
-#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = tag_for_path (_tmp40_);
-#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = _tmp41_;
-#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PROXYABLE, Proxyable));
-#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = _tmp43_;
-#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp42_);
-#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = _tmp44_;
-#line 2172 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = self->priv->to_add;
-#line 2172 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = proxy;
-#line 2172 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp46_);
-#line 2173 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = proxy;
-#line 2173 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp47_, "broken", (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (path);
-#line 19758 "Commands.c"
- }
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_path_it);
-#line 19762 "Commands.c"
- }
-#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (new_paths);
-#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (original_tags);
-#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 19770 "Commands.c"
-}
-
-
-ModifyTagsCommand*
-modify_tags_command_new (MediaSource* media,
- GeeCollection* new_tag_list)
-{
-#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
- return modify_tags_command_construct (TYPE_MODIFY_TAGS_COMMAND, media, new_tag_list);
-#line 19780 "Commands.c"
-}
-
-
-static void
-modify_tags_command_real_execute (Command* base)
-{
- ModifyTagsCommand * self;
-#line 2185 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand);
-#line 19790 "Commands.c"
- {
- GeeArrayList* _proxy_list = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _proxy_size = 0;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _proxy_index = 0;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->to_remove;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_list = _tmp1_;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _proxy_list;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_size = _tmp4_;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = -1;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 19818 "Commands.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- SourceProxy* proxy = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- SourceProxy* _tmp11_;
- DataSource* _tmp12_;
- Tag* _tmp13_;
- MediaSource* _tmp14_;
- GeeList* _tmp15_;
- GeeList* _tmp16_;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _proxy_index;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = _tmp5_ + 1;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _proxy_index;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _proxy_size;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 19844 "Commands.c"
- }
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _proxy_list;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _proxy_index;
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp10_;
-#line 2187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = proxy;
-#line 2187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = source_proxy_get_source (_tmp11_);
-#line 2187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_TAG, Tag);
-#line 2187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = self->priv->media;
-#line 2187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = tag_detach (_tmp13_, _tmp14_);
-#line 2187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
-#line 2187 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp16_);
-#line 2187 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 19872 "Commands.c"
- }
-#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_proxy_list);
-#line 19876 "Commands.c"
- }
- {
- GeeArrayList* _proxy_list = NULL;
- GeeArrayList* _tmp17_;
- GeeArrayList* _tmp18_;
- gint _proxy_size = 0;
- GeeArrayList* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _proxy_index = 0;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->to_add;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_list = _tmp18_;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _proxy_list;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_size = _tmp21_;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = -1;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 19905 "Commands.c"
- gint _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- SourceProxy* proxy = NULL;
- GeeArrayList* _tmp25_;
- gint _tmp26_;
- gpointer _tmp27_;
- SourceProxy* _tmp28_;
- DataSource* _tmp29_;
- Tag* _tmp30_;
- MediaSource* _tmp31_;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _proxy_index;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = _tmp22_ + 1;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _proxy_index;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _proxy_size;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp23_ < _tmp24_)) {
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 19929 "Commands.c"
- }
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _proxy_list;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _proxy_index;
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp26_);
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp27_;
-#line 2190 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = proxy;
-#line 2190 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = source_proxy_get_source (_tmp28_);
-#line 2190 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_TAG, Tag);
-#line 2190 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = self->priv->media;
-#line 2190 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp30_, _tmp31_);
-#line 2190 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp30_);
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 19953 "Commands.c"
- }
-#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_proxy_list);
-#line 19957 "Commands.c"
- }
-}
-
-
-static void
-modify_tags_command_real_undo (Command* base)
-{
- ModifyTagsCommand * self;
-#line 2193 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand);
-#line 19968 "Commands.c"
- {
- GeeArrayList* _proxy_list = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _proxy_size = 0;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _proxy_index = 0;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->to_add;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_list = _tmp1_;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _proxy_list;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_size = _tmp4_;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = -1;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 19996 "Commands.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- SourceProxy* proxy = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- SourceProxy* _tmp11_;
- DataSource* _tmp12_;
- Tag* _tmp13_;
- MediaSource* _tmp14_;
- GeeList* _tmp15_;
- GeeList* _tmp16_;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _proxy_index;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = _tmp5_ + 1;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _proxy_index;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _proxy_size;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 20022 "Commands.c"
- }
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _proxy_list;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _proxy_index;
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp10_;
-#line 2195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = proxy;
-#line 2195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = source_proxy_get_source (_tmp11_);
-#line 2195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_TAG, Tag);
-#line 2195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = self->priv->media;
-#line 2195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = tag_detach (_tmp13_, _tmp14_);
-#line 2195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
-#line 2195 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp16_);
-#line 2195 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 20050 "Commands.c"
- }
-#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_proxy_list);
-#line 20054 "Commands.c"
- }
- {
- GeeArrayList* _proxy_list = NULL;
- GeeArrayList* _tmp17_;
- GeeArrayList* _tmp18_;
- gint _proxy_size = 0;
- GeeArrayList* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _proxy_index = 0;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->to_remove;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_list = _tmp18_;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _proxy_list;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_size = _tmp21_;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = -1;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 20083 "Commands.c"
- gint _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- SourceProxy* proxy = NULL;
- GeeArrayList* _tmp25_;
- gint _tmp26_;
- gpointer _tmp27_;
- SourceProxy* _tmp28_;
- DataSource* _tmp29_;
- Tag* _tmp30_;
- MediaSource* _tmp31_;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _proxy_index;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = _tmp22_ + 1;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _proxy_index;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _proxy_size;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp23_ < _tmp24_)) {
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 20107 "Commands.c"
- }
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _proxy_list;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _proxy_index;
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp26_);
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp27_;
-#line 2198 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = proxy;
-#line 2198 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = source_proxy_get_source (_tmp28_);
-#line 2198 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_TAG, Tag);
-#line 2198 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = self->priv->media;
-#line 2198 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp30_, _tmp31_);
-#line 2198 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp30_);
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 20131 "Commands.c"
- }
-#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_proxy_list);
-#line 20135 "Commands.c"
- }
-}
-
-
-static void
-modify_tags_command_on_proxy_broken (ModifyTagsCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 2201 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_MODIFY_TAGS_COMMAND (self));
-#line 2202 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 2202 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 2202 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp1_);
-#line 2202 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp1_);
-#line 20155 "Commands.c"
-}
-
-
-static void
-modify_tags_command_class_init (ModifyTagsCommandClass * klass)
-{
-#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
- modify_tags_command_parent_class = g_type_class_peek_parent (klass);
-#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (ModifyTagsCommandPrivate));
-#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) modify_tags_command_real_execute;
-#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) modify_tags_command_real_undo;
-#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = modify_tags_command_finalize;
-#line 20172 "Commands.c"
-}
-
-
-static void
-modify_tags_command_instance_init (ModifyTagsCommand * self)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = MODIFY_TAGS_COMMAND_GET_PRIVATE (self);
-#line 2140 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
-#line 2140 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_add = _tmp0_;
-#line 2141 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
-#line 2141 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_remove = _tmp1_;
-#line 20191 "Commands.c"
-}
-
-
-static void
-modify_tags_command_finalize (GObject * obj)
-{
- ModifyTagsCommand * self;
-#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand);
-#line 20201 "Commands.c"
- {
- GeeArrayList* _proxy_list = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _proxy_size = 0;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _proxy_index = 0;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->to_add;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_list = _tmp1_;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _proxy_list;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_size = _tmp4_;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = -1;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 20229 "Commands.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- SourceProxy* proxy = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- SourceProxy* _tmp11_;
- guint _tmp12_;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _proxy_index;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = _tmp5_ + 1;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _proxy_index;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _proxy_size;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 20251 "Commands.c"
- }
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _proxy_list;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _proxy_index;
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp10_;
-#line 2179 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = proxy;
-#line 2179 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp12_, NULL, FALSE);
-#line 2179 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self);
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 20269 "Commands.c"
- }
-#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_proxy_list);
-#line 20273 "Commands.c"
- }
- {
- GeeArrayList* _proxy_list = NULL;
- GeeArrayList* _tmp13_;
- GeeArrayList* _tmp14_;
- gint _proxy_size = 0;
- GeeArrayList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gint _proxy_index = 0;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->to_remove;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_list = _tmp14_;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _proxy_list;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_size = _tmp17_;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = -1;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 20302 "Commands.c"
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- SourceProxy* proxy = NULL;
- GeeArrayList* _tmp21_;
- gint _tmp22_;
- gpointer _tmp23_;
- SourceProxy* _tmp24_;
- guint _tmp25_;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _proxy_index;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxy_index = _tmp18_ + 1;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _proxy_index;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _proxy_size;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp19_ < _tmp20_)) {
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 20324 "Commands.c"
- }
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _proxy_list;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _proxy_index;
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp22_);
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp23_;
-#line 2182 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = proxy;
-#line 2182 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp25_, NULL, FALSE);
-#line 2182 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp24_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp25_, 0, NULL, (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self);
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (proxy);
-#line 20342 "Commands.c"
- }
-#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_proxy_list);
-#line 20346 "Commands.c"
- }
-#line 2139 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->media);
-#line 2140 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->to_add);
-#line 2141 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->to_remove);
-#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (modify_tags_command_parent_class)->finalize (obj);
-#line 20356 "Commands.c"
-}
-
-
-GType
-modify_tags_command_get_type (void)
-{
- static volatile gsize modify_tags_command_type_id__volatile = 0;
- if (g_once_init_enter (&modify_tags_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ModifyTagsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) modify_tags_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ModifyTagsCommand), 0, (GInstanceInitFunc) modify_tags_command_instance_init, NULL };
- GType modify_tags_command_type_id;
- modify_tags_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "ModifyTagsCommand", &g_define_type_info, 0);
- g_once_init_leave (&modify_tags_command_type_id__volatile, modify_tags_command_type_id);
- }
- return modify_tags_command_type_id__volatile;
-}
-
-
-static void
-_tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 2226 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_on_source_destroyed ((TagUntagPhotosCommand*) self, source);
-#line 20381 "Commands.c"
-}
-
-
-TagUntagPhotosCommand*
-tag_untag_photos_command_construct (GType object_type,
- Tag* tag,
- GeeCollection* sources,
- gint count,
- gboolean attach)
-{
- TagUntagPhotosCommand * self = NULL;
- gchar* _tmp0_ = NULL;
- gchar* _tmp7_;
- gchar* _tmp8_;
- GeeCollection* _tmp9_;
- LibraryPhotoSourceCollection* _tmp10_;
- VideoSourceCollection* _tmp11_;
-#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- if (attach) {
-#line 20405 "Commands.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag_get_user_visible_name (tag);
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = resources_tag_photos_label (_tmp2_, count);
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp0_);
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _tmp3_;
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp2_);
-#line 20421 "Commands.c"
- } else {
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = tag_get_user_visible_name (tag);
-#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = resources_untag_photos_label (_tmp5_, count);
-#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp0_);
-#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _tmp6_;
-#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 20438 "Commands.c"
- }
-#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
-#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (TagUntagPhotosCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp0_, _tmp8_);
-#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp8_);
-#line 2218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _g_object_ref0 (sources);
-#line 2218 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->sources);
-#line 2218 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->sources = _tmp9_;
-#line 2219 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->attach = attach;
-#line 2221 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = library_photo_global;
-#line 2221 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
-#line 2222 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = video_global;
-#line 2222 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
-#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp0_);
-#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 20468 "Commands.c"
-}
-
-
-TagUntagPhotosCommand*
-tag_untag_photos_command_new (Tag* tag,
- GeeCollection* sources,
- gint count,
- gboolean attach)
-{
-#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
- return tag_untag_photos_command_construct (TYPE_TAG_UNTAG_PHOTOS_COMMAND, tag, sources, count, attach);
-#line 20480 "Commands.c"
-}
-
-
-static void
-tag_untag_photos_command_real_execute_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- TagUntagPhotosCommand * self;
- gboolean _tmp0_;
-#line 2230 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand);
-#line 2230 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 2231 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->attach;
-#line 2231 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_) {
-#line 2232 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_do_attach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
-#line 20500 "Commands.c"
- } else {
-#line 2234 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_do_detach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
-#line 20504 "Commands.c"
- }
-}
-
-
-static void
-tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand* base,
- DataSource* source)
-{
- TagUntagPhotosCommand * self;
- gboolean _tmp0_;
-#line 2237 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand);
-#line 2237 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 2238 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->attach;
-#line 2238 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_) {
-#line 2239 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_do_detach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
-#line 20525 "Commands.c"
- } else {
-#line 2241 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_do_attach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
-#line 20529 "Commands.c"
- }
-}
-
-
-static void
-tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self,
- Tag* tag)
-{
- GeeMultiMap* _tmp0_;
-#line 2244 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self));
-#line 2244 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_TAG (tag));
-#line 2246 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->detached_from;
-#line 2246 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_ == NULL) {
-#line 20547 "Commands.c"
- GeeCollection* _tmp1_;
- GeeArrayList* _tmp2_;
- Tag* curr_tmp = NULL;
- Tag* _tmp3_;
-#line 2247 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->sources;
-#line 2247 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach_many (tag, _tmp1_);
-#line 2249 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 2249 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->attached_to);
-#line 2249 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->attached_to = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
-#line 2251 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _g_object_ref0 (tag);
-#line 2251 "/home/jens/Source/shotwell/src/Commands.vala"
- curr_tmp = _tmp3_;
-#line 2253 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 20568 "Commands.c"
- Tag* _tmp4_;
- GeeList* _tmp5_;
- Tag* _tmp6_;
- Tag* _tmp7_;
- Tag* _tmp8_;
-#line 2253 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = curr_tmp;
-#line 2253 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp4_ != NULL)) {
-#line 2253 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 20580 "Commands.c"
- }
-#line 2254 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->attached_to;
-#line 2254 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = curr_tmp;
-#line 2254 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_);
-#line 2255 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = curr_tmp;
-#line 2255 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = tag_get_hierarchical_parent (_tmp7_);
-#line 2255 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (curr_tmp);
-#line 2255 "/home/jens/Source/shotwell/src/Commands.vala"
- curr_tmp = _tmp8_;
-#line 20596 "Commands.c"
- }
-#line 2258 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (curr_tmp);
-#line 2258 "/home/jens/Source/shotwell/src/Commands.vala"
- return;
-#line 20602 "Commands.c"
- }
- {
- GeeIterator* _detached_tag_it = NULL;
- GeeMultiMap* _tmp9_;
- GeeMultiSet* _tmp10_;
- GeeMultiSet* _tmp11_;
- GeeIterator* _tmp12_;
- GeeIterator* _tmp13_;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->detached_from;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_multi_map_get_all_keys (_tmp9_);
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tmp12_;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp11_);
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _detached_tag_it = _tmp13_;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 20627 "Commands.c"
- GeeIterator* _tmp14_;
- Tag* detached_tag = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- Tag* _tmp17_;
- GeeMultiMap* _tmp18_;
- Tag* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _detached_tag_it;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 20643 "Commands.c"
- }
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _detached_tag_it;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- detached_tag = (Tag*) _tmp16_;
-#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = detached_tag;
-#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = self->priv->detached_from;
-#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = detached_tag;
-#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = gee_multi_map_get (_tmp18_, _tmp19_);
-#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
-#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach_many (_tmp17_, _tmp21_);
-#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp21_);
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (detached_tag);
-#line 20667 "Commands.c"
- }
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_detached_tag_it);
-#line 20671 "Commands.c"
- }
-#line 2265 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->detached_from);
-#line 2265 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->detached_from = NULL;
-#line 2266 "/home/jens/Source/shotwell/src/Commands.vala"
- simple_proxyable_command_clear_added_proxies (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand));
-#line 20679 "Commands.c"
-}
-
-
-static void
-tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self,
- Tag* tag)
-{
- GeeList* _tmp0_;
-#line 2269 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self));
-#line 2269 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_TAG (tag));
-#line 2270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->attached_to;
-#line 2270 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp0_ == NULL) {
-#line 20696 "Commands.c"
- GeeCollection* _tmp1_;
- GeeMultiMap* _tmp2_;
- GeeMultiMap* _tmp3_;
- GeeSet* _tmp4_;
- GeeSet* _tmp5_;
-#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->sources;
-#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_detach_many (tag, _tmp1_);
-#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->detached_from);
-#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->detached_from = _tmp2_;
-#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->detached_from;
-#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_multi_map_get_keys (_tmp3_);
-#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- simple_proxyable_command_add_proxyables (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
-#line 20720 "Commands.c"
- } else {
- {
- GeeList* _t_list = NULL;
- GeeList* _tmp6_;
- GeeList* _tmp7_;
- gint _t_size = 0;
- GeeList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _t_index = 0;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->attached_to;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_list = _tmp7_;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _t_list;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_size = _tmp10_;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_index = -1;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 20749 "Commands.c"
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- Tag* t = NULL;
- GeeList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _t_index;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_index = _tmp11_ + 1;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _t_index;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _t_size;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 20769 "Commands.c"
- }
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _t_list;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _t_index;
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_list_get (_tmp14_, _tmp15_);
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- t = (Tag*) _tmp16_;
-#line 20779 "Commands.c"
- {
- GeeIterator* _ms_it = NULL;
- GeeCollection* _tmp17_;
- GeeIterator* _tmp18_;
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->sources;
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _ms_it = _tmp18_;
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 20792 "Commands.c"
- GeeIterator* _tmp19_;
- MediaSource* ms = NULL;
- GeeIterator* _tmp20_;
- gpointer _tmp21_;
- Tag* _tmp22_;
- MediaSource* _tmp23_;
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _ms_it;
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp19_)) {
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 20805 "Commands.c"
- }
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _ms_it;
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_iterator_get (_tmp20_);
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- ms = (MediaSource*) _tmp21_;
-#line 2283 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = t;
-#line 2283 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = ms;
-#line 2283 "/home/jens/Source/shotwell/src/Commands.vala"
- if (tag_get_attachment_count (_tmp22_, _tmp23_) < 2) {
-#line 20819 "Commands.c"
- Tag* _tmp24_;
- MediaSource* _tmp25_;
- GeeList* _tmp26_;
- GeeList* _tmp27_;
-#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = t;
-#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = ms;
-#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = tag_detach (_tmp24_, _tmp25_);
-#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _tmp26_;
-#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp27_);
-#line 20834 "Commands.c"
- }
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (ms);
-#line 20838 "Commands.c"
- }
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_ms_it);
-#line 20842 "Commands.c"
- }
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (t);
-#line 20846 "Commands.c"
- }
-#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_t_list);
-#line 20850 "Commands.c"
- }
- }
-}
-
-
-static void
-tag_untag_photos_command_on_source_destroyed (TagUntagPhotosCommand* self,
- DataSource* source)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- GeeCollection* _tmp2_;
-#line 2292 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self));
-#line 2292 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- g_debug ("Commands.vala:2293: on_source_destroyed: %s", _tmp1_);
-#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 2294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->sources;
-#line 2294 "/home/jens/Source/shotwell/src/Commands.vala"
- if (gee_collection_contains (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource))) {
-#line 20879 "Commands.c"
- CommandManager* _tmp3_;
- CommandManager* _tmp4_;
-#line 2295 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 2295 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2295 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp4_);
-#line 2295 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp4_);
-#line 20890 "Commands.c"
- }
-}
-
-
-static void
-tag_untag_photos_command_class_init (TagUntagPhotosCommandClass * klass)
-{
-#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_parent_class = g_type_class_peek_parent (klass);
-#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (TagUntagPhotosCommandPrivate));
-#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) tag_untag_photos_command_real_execute_on_source;
-#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
- ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) tag_untag_photos_command_real_undo_on_source;
-#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = tag_untag_photos_command_finalize;
-#line 20908 "Commands.c"
-}
-
-
-static void
-tag_untag_photos_command_instance_init (TagUntagPhotosCommand * self)
-{
-#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = TAG_UNTAG_PHOTOS_COMMAND_GET_PRIVATE (self);
-#line 2209 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->detached_from = NULL;
-#line 2210 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->attached_to = NULL;
-#line 20921 "Commands.c"
-}
-
-
-static void
-tag_untag_photos_command_finalize (GObject * obj)
-{
- TagUntagPhotosCommand * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- VideoSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand);
-#line 2226 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = library_photo_global;
-#line 2226 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 2226 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self);
-#line 2227 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = video_global;
-#line 2227 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 2227 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self);
-#line 2207 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->sources);
-#line 2209 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->detached_from);
-#line 2210 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->attached_to);
-#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (tag_untag_photos_command_parent_class)->finalize (obj);
-#line 20955 "Commands.c"
-}
-
-
-GType
-tag_untag_photos_command_get_type (void)
-{
- static volatile gsize tag_untag_photos_command_type_id__volatile = 0;
- if (g_once_init_enter (&tag_untag_photos_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagUntagPhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_untag_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagUntagPhotosCommand), 0, (GInstanceInitFunc) tag_untag_photos_command_instance_init, NULL };
- GType tag_untag_photos_command_type_id;
- tag_untag_photos_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "TagUntagPhotosCommand", &g_define_type_info, 0);
- g_once_init_leave (&tag_untag_photos_command_type_id__volatile, tag_untag_photos_command_type_id);
- }
- return tag_untag_photos_command_type_id__volatile;
-}
-
-
-RenameSavedSearchCommand*
-rename_saved_search_command_construct (GType object_type,
- SavedSearch* search,
- const gchar* new_name)
-{
- RenameSavedSearchCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- SavedSearch* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 2304 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
-#line 2304 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (new_name != NULL, NULL);
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_rename_search_label (_tmp1_, new_name);
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RenameSavedSearchCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_SOURCE, DataSource), _tmp3_, _tmp5_);
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 2307 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _g_object_ref0 (search);
-#line 2307 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->search);
-#line 2307 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->search = _tmp6_;
-#line 2308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 2308 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_name);
-#line 2308 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_name = _tmp7_;
-#line 2309 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = g_strdup (new_name);
-#line 2309 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_name);
-#line 2309 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_name = _tmp8_;
-#line 2304 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 21032 "Commands.c"
-}
-
-
-RenameSavedSearchCommand*
-rename_saved_search_command_new (SavedSearch* search,
- const gchar* new_name)
-{
-#line 2304 "/home/jens/Source/shotwell/src/Commands.vala"
- return rename_saved_search_command_construct (TYPE_RENAME_SAVED_SEARCH_COMMAND, search, new_name);
-#line 21042 "Commands.c"
-}
-
-
-static void
-rename_saved_search_command_real_execute (Command* base)
-{
- RenameSavedSearchCommand * self;
- SavedSearch* _tmp0_;
- const gchar* _tmp1_;
-#line 2312 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand);
-#line 2313 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->search;
-#line 2313 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_name;
-#line 2313 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!saved_search_rename (_tmp0_, _tmp1_)) {
-#line 21060 "Commands.c"
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->new_name;
-#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = resources_rename_search_exists_message (_tmp2_);
-#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp4_, NULL);
-#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp4_);
-#line 21074 "Commands.c"
- }
-}
-
-
-static void
-rename_saved_search_command_real_undo (Command* base)
-{
- RenameSavedSearchCommand * self;
- SavedSearch* _tmp0_;
- const gchar* _tmp1_;
-#line 2317 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand);
-#line 2318 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->search;
-#line 2318 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_name;
-#line 2318 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!saved_search_rename (_tmp0_, _tmp1_)) {
-#line 21093 "Commands.c"
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->old_name;
-#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = resources_rename_search_exists_message (_tmp2_);
-#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp4_, NULL);
-#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp4_);
-#line 21107 "Commands.c"
- }
-}
-
-
-static void
-rename_saved_search_command_class_init (RenameSavedSearchCommandClass * klass)
-{
-#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
- rename_saved_search_command_parent_class = g_type_class_peek_parent (klass);
-#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (RenameSavedSearchCommandPrivate));
-#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) rename_saved_search_command_real_execute;
-#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) rename_saved_search_command_real_undo;
-#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = rename_saved_search_command_finalize;
-#line 21125 "Commands.c"
-}
-
-
-static void
-rename_saved_search_command_instance_init (RenameSavedSearchCommand * self)
-{
-#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = RENAME_SAVED_SEARCH_COMMAND_GET_PRIVATE (self);
-#line 21134 "Commands.c"
-}
-
-
-static void
-rename_saved_search_command_finalize (GObject * obj)
-{
- RenameSavedSearchCommand * self;
-#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand);
-#line 2300 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->search);
-#line 2301 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->old_name);
-#line 2302 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (self->priv->new_name);
-#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (rename_saved_search_command_parent_class)->finalize (obj);
-#line 21152 "Commands.c"
-}
-
-
-GType
-rename_saved_search_command_get_type (void)
-{
- static volatile gsize rename_saved_search_command_type_id__volatile = 0;
- if (g_once_init_enter (&rename_saved_search_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RenameSavedSearchCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_saved_search_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameSavedSearchCommand), 0, (GInstanceInitFunc) rename_saved_search_command_instance_init, NULL };
- GType rename_saved_search_command_type_id;
- rename_saved_search_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "RenameSavedSearchCommand", &g_define_type_info, 0);
- g_once_init_leave (&rename_saved_search_command_type_id__volatile, rename_saved_search_command_type_id);
- }
- return rename_saved_search_command_type_id__volatile;
-}
-
-
-DeleteSavedSearchCommand*
-delete_saved_search_command_construct (GType object_type,
- SavedSearch* search)
-{
- DeleteSavedSearchCommand * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- SavedSearch* _tmp6_;
-#line 2326 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_delete_search_label (_tmp1_);
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (DeleteSavedSearchCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_SOURCE, DataSource), _tmp3_, _tmp5_);
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp1_);
-#line 2329 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _g_object_ref0 (search);
-#line 2329 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->search);
-#line 2329 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->search = _tmp6_;
-#line 2326 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 21212 "Commands.c"
-}
-
-
-DeleteSavedSearchCommand*
-delete_saved_search_command_new (SavedSearch* search)
-{
-#line 2326 "/home/jens/Source/shotwell/src/Commands.vala"
- return delete_saved_search_command_construct (TYPE_DELETE_SAVED_SEARCH_COMMAND, search);
-#line 21221 "Commands.c"
-}
-
-
-static void
-delete_saved_search_command_real_execute (Command* base)
-{
- DeleteSavedSearchCommand * self;
- SavedSearchTable* _tmp0_;
- SavedSearchTable* _tmp1_;
- SavedSearch* _tmp2_;
-#line 2332 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand);
-#line 2333 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = saved_search_table_get_instance ();
-#line 2333 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _tmp0_;
-#line 2333 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->search;
-#line 2333 "/home/jens/Source/shotwell/src/Commands.vala"
- saved_search_table_remove (_tmp1_, _tmp2_);
-#line 2333 "/home/jens/Source/shotwell/src/Commands.vala"
- _saved_search_table_unref0 (_tmp1_);
-#line 21244 "Commands.c"
-}
-
-
-static void
-delete_saved_search_command_real_undo (Command* base)
-{
- DeleteSavedSearchCommand * self;
- SavedSearch* _tmp0_;
-#line 2336 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand);
-#line 2337 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->search;
-#line 2337 "/home/jens/Source/shotwell/src/Commands.vala"
- saved_search_reconstitute (_tmp0_);
-#line 21259 "Commands.c"
-}
-
-
-static void
-delete_saved_search_command_class_init (DeleteSavedSearchCommandClass * klass)
-{
-#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
- delete_saved_search_command_parent_class = g_type_class_peek_parent (klass);
-#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (DeleteSavedSearchCommandPrivate));
-#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) delete_saved_search_command_real_execute;
-#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) delete_saved_search_command_real_undo;
-#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = delete_saved_search_command_finalize;
-#line 21276 "Commands.c"
-}
-
-
-static void
-delete_saved_search_command_instance_init (DeleteSavedSearchCommand * self)
-{
-#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = DELETE_SAVED_SEARCH_COMMAND_GET_PRIVATE (self);
-#line 21285 "Commands.c"
-}
-
-
-static void
-delete_saved_search_command_finalize (GObject * obj)
-{
- DeleteSavedSearchCommand * self;
-#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand);
-#line 2324 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->search);
-#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (delete_saved_search_command_parent_class)->finalize (obj);
-#line 21299 "Commands.c"
-}
-
-
-GType
-delete_saved_search_command_get_type (void)
-{
- static volatile gsize delete_saved_search_command_type_id__volatile = 0;
- if (g_once_init_enter (&delete_saved_search_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DeleteSavedSearchCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) delete_saved_search_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DeleteSavedSearchCommand), 0, (GInstanceInitFunc) delete_saved_search_command_instance_init, NULL };
- GType delete_saved_search_command_type_id;
- delete_saved_search_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "DeleteSavedSearchCommand", &g_define_type_info, 0);
- g_once_init_leave (&delete_saved_search_command_type_id__volatile, delete_saved_search_command_type_id);
- }
- return delete_saved_search_command_type_id__volatile;
-}
-
-
-static void
-_trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 2358 "/home/jens/Source/shotwell/src/Commands.vala"
- trash_untrash_photos_command_on_photo_destroyed ((TrashUntrashPhotosCommand*) self, source);
-#line 21324 "Commands.c"
-}
-
-
-TrashUntrashPhotosCommand*
-trash_untrash_photos_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean to_trash)
-{
- TrashUntrashPhotosCommand * self = NULL;
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- GeeCollection* _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- VideoSourceCollection* _tmp4_;
-#line 2345 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
-#line 2347 "/home/jens/Source/shotwell/src/Commands.vala"
- if (to_trash) {
-#line 2347 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _ ("Move Photos to Trash");
-#line 21345 "Commands.c"
- } else {
-#line 2347 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _ ("Restore Photos from Trash");
-#line 21349 "Commands.c"
- }
-#line 2348 "/home/jens/Source/shotwell/src/Commands.vala"
- if (to_trash) {
-#line 2348 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _ ("Move the photos to the Shotwell trash");
-#line 21355 "Commands.c"
- } else {
-#line 2348 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _ ("Restore the photos back to the Shotwell library");
-#line 21359 "Commands.c"
- }
-#line 2346 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (TrashUntrashPhotosCommand*) page_command_construct (object_type, _tmp0_, _tmp1_);
-#line 2350 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _g_object_ref0 (sources);
-#line 2350 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->sources);
-#line 2350 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->sources = _tmp2_;
-#line 2351 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_trash = to_trash;
-#line 2353 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = library_photo_global;
-#line 2353 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
-#line 2354 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = video_global;
-#line 2354 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
-#line 2345 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 21381 "Commands.c"
-}
-
-
-TrashUntrashPhotosCommand*
-trash_untrash_photos_command_new (GeeCollection* sources,
- gboolean to_trash)
-{
-#line 2345 "/home/jens/Source/shotwell/src/Commands.vala"
- return trash_untrash_photos_command_construct (TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, sources, to_trash);
-#line 21391 "Commands.c"
-}
-
-
-static ProgressDialog*
-trash_untrash_photos_command_get_progress_dialog (TrashUntrashPhotosCommand* self,
- gboolean to_trash)
-{
- ProgressDialog* result = NULL;
- GeeCollection* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- const gchar* _tmp3_ = NULL;
- ProgressDialog* dialog = NULL;
- AppWindow* _tmp4_;
- AppWindow* _tmp5_;
- ProgressDialog* _tmp6_;
- ProgressDialog* _tmp7_;
- ProgressDialog* _tmp8_;
- GeeCollection* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 2362 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self), NULL);
-#line 2363 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->sources;
-#line 2363 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_collection_get_size (_tmp0_);
-#line 2363 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 2363 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ <= 5) {
-#line 2364 "/home/jens/Source/shotwell/src/Commands.vala"
- result = NULL;
-#line 2364 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 21427 "Commands.c"
- }
-#line 2367 "/home/jens/Source/shotwell/src/Commands.vala"
- if (to_trash) {
-#line 2367 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _ ("Moving Photos to Trash");
-#line 21433 "Commands.c"
- } else {
-#line 2367 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _ ("Restoring Photos From Trash");
-#line 21437 "Commands.c"
- }
-#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = app_window_get_instance ();
-#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow), _tmp3_, NULL);
-#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- g_object_ref_sink (_tmp6_);
-#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
-#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
-#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- dialog = _tmp7_;
-#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = dialog;
-#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->sources;
-#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_collection_get_size (_tmp9_);
-#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_update_display_every (_tmp8_, CLAMP (_tmp11_ / 5, 2, 10));
-#line 2370 "/home/jens/Source/shotwell/src/Commands.vala"
- result = dialog;
-#line 2370 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 21467 "Commands.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 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- return result;
-#line 21481 "Commands.c"
-}
-
-
-static void
-trash_untrash_photos_command_real_execute (Command* base)
-{
- TrashUntrashPhotosCommand * self;
- ProgressDialog* dialog = NULL;
- gboolean _tmp0_;
- ProgressDialog* _tmp1_;
- ProgressMonitor monitor = NULL;
- void* monitor_target;
- GDestroyNotify monitor_target_destroy_notify;
- ProgressDialog* _tmp2_;
- gboolean _tmp4_;
- ProgressDialog* _tmp7_;
-#line 2373 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand);
-#line 2374 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->to_trash;
-#line 2374 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = trash_untrash_photos_command_get_progress_dialog (self, _tmp0_);
-#line 2374 "/home/jens/Source/shotwell/src/Commands.vala"
- dialog = _tmp1_;
-#line 2376 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor = NULL;
-#line 2376 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target = NULL;
-#line 2376 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target_destroy_notify = NULL;
-#line 2377 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = dialog;
-#line 2377 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 21516 "Commands.c"
- ProgressDialog* _tmp3_;
-#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = dialog;
-#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor = NULL;
-#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target = NULL;
-#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target_destroy_notify = NULL;
-#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor = _progress_dialog_monitor_progress_monitor;
-#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target = g_object_ref (_tmp3_);
-#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target_destroy_notify = g_object_unref;
-#line 21534 "Commands.c"
- }
-#line 2380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->to_trash;
-#line 2380 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_) {
-#line 21540 "Commands.c"
- ProgressMonitor _tmp5_;
- void* _tmp5__target;
-#line 2381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = monitor;
-#line 2381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5__target = monitor_target;
-#line 2381 "/home/jens/Source/shotwell/src/Commands.vala"
- trash_untrash_photos_command_trash (self, _tmp5_, _tmp5__target);
-#line 21549 "Commands.c"
- } else {
- ProgressMonitor _tmp6_;
- void* _tmp6__target;
-#line 2383 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = monitor;
-#line 2383 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6__target = monitor_target;
-#line 2383 "/home/jens/Source/shotwell/src/Commands.vala"
- trash_untrash_photos_command_untrash (self, _tmp6_, _tmp6__target);
-#line 21559 "Commands.c"
- }
-#line 2385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = dialog;
-#line 2385 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp7_ != NULL) {
-#line 21565 "Commands.c"
- ProgressDialog* _tmp8_;
-#line 2386 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = dialog;
-#line 2386 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_close (_tmp8_);
-#line 21571 "Commands.c"
- }
-#line 2373 "/home/jens/Source/shotwell/src/Commands.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 2373 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor = NULL;
-#line 2373 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target = NULL;
-#line 2373 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target_destroy_notify = NULL;
-#line 2373 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (dialog);
-#line 21583 "Commands.c"
-}
-
-
-static void
-trash_untrash_photos_command_real_undo (Command* base)
-{
- TrashUntrashPhotosCommand * self;
- ProgressDialog* dialog = NULL;
- gboolean _tmp0_;
- ProgressDialog* _tmp1_;
- ProgressMonitor monitor = NULL;
- void* monitor_target;
- GDestroyNotify monitor_target_destroy_notify;
- ProgressDialog* _tmp2_;
- gboolean _tmp4_;
- ProgressDialog* _tmp7_;
-#line 2389 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand);
-#line 2390 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->to_trash;
-#line 2390 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = trash_untrash_photos_command_get_progress_dialog (self, !_tmp0_);
-#line 2390 "/home/jens/Source/shotwell/src/Commands.vala"
- dialog = _tmp1_;
-#line 2392 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor = NULL;
-#line 2392 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target = NULL;
-#line 2392 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target_destroy_notify = NULL;
-#line 2393 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = dialog;
-#line 2393 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 21618 "Commands.c"
- ProgressDialog* _tmp3_;
-#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = dialog;
-#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor = NULL;
-#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target = NULL;
-#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target_destroy_notify = NULL;
-#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor = _progress_dialog_monitor_progress_monitor;
-#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target = g_object_ref (_tmp3_);
-#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target_destroy_notify = g_object_unref;
-#line 21636 "Commands.c"
- }
-#line 2396 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->to_trash;
-#line 2396 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_) {
-#line 21642 "Commands.c"
- ProgressMonitor _tmp5_;
- void* _tmp5__target;
-#line 2397 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = monitor;
-#line 2397 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5__target = monitor_target;
-#line 2397 "/home/jens/Source/shotwell/src/Commands.vala"
- trash_untrash_photos_command_untrash (self, _tmp5_, _tmp5__target);
-#line 21651 "Commands.c"
- } else {
- ProgressMonitor _tmp6_;
- void* _tmp6__target;
-#line 2399 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = monitor;
-#line 2399 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6__target = monitor_target;
-#line 2399 "/home/jens/Source/shotwell/src/Commands.vala"
- trash_untrash_photos_command_trash (self, _tmp6_, _tmp6__target);
-#line 21661 "Commands.c"
- }
-#line 2401 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = dialog;
-#line 2401 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp7_ != NULL) {
-#line 21667 "Commands.c"
- ProgressDialog* _tmp8_;
-#line 2402 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = dialog;
-#line 2402 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_close (_tmp8_);
-#line 21673 "Commands.c"
- }
-#line 2389 "/home/jens/Source/shotwell/src/Commands.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 2389 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor = NULL;
-#line 2389 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target = NULL;
-#line 2389 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor_target_destroy_notify = NULL;
-#line 2389 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (dialog);
-#line 21685 "Commands.c"
-}
-
-
-static void
-trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- gint ctr = 0;
- gint count = 0;
- GeeCollection* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- TransactionController* _tmp4_;
- TransactionController* _tmp5_;
- VideoSourceCollection* _tmp6_;
- TransactionController* _tmp7_;
- TransactionController* _tmp8_;
- LibraryPhotoSourceCollection* _tmp18_;
- TransactionController* _tmp19_;
- TransactionController* _tmp20_;
- VideoSourceCollection* _tmp21_;
- TransactionController* _tmp22_;
- TransactionController* _tmp23_;
-#line 2405 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self));
-#line 2406 "/home/jens/Source/shotwell/src/Commands.vala"
- ctr = 0;
-#line 2407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->sources;
-#line 2407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_collection_get_size (_tmp0_);
-#line 2407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 2407 "/home/jens/Source/shotwell/src/Commands.vala"
- count = _tmp2_;
-#line 2409 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = library_photo_global;
-#line 2409 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 2409 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 2409 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_begin (_tmp5_);
-#line 2410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = video_global;
-#line 2410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 2410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 2410 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_begin (_tmp8_);
-#line 21739 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeCollection* _tmp9_;
- GeeIterator* _tmp10_;
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->sources;
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp10_;
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 21752 "Commands.c"
- GeeIterator* _tmp11_;
- MediaSource* source = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- MediaSource* _tmp14_;
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _source_it;
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 21764 "Commands.c"
- }
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _source_it;
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp13_;
-#line 2413 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = source;
-#line 2413 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_trash (_tmp14_);
-#line 2414 "/home/jens/Source/shotwell/src/Commands.vala"
- if (monitor != NULL) {
-#line 21778 "Commands.c"
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = ctr;
-#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- ctr = _tmp15_ + 1;
-#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = ctr;
-#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = count;
-#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor ((guint64) _tmp16_, (guint64) _tmp17_, TRUE, monitor_target);
-#line 21792 "Commands.c"
- }
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 21796 "Commands.c"
- }
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 21800 "Commands.c"
- }
-#line 2418 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = library_photo_global;
-#line 2418 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 2418 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _tmp19_;
-#line 2418 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp20_);
-#line 2419 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = video_global;
-#line 2419 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 2419 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
-#line 2419 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp23_);
-#line 21818 "Commands.c"
-}
-
-
-static void
-trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* self,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- gint ctr = 0;
- gint count = 0;
- GeeCollection* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- TransactionController* _tmp4_;
- TransactionController* _tmp5_;
- VideoSourceCollection* _tmp6_;
- TransactionController* _tmp7_;
- TransactionController* _tmp8_;
- LibraryPhotoSourceCollection* _tmp18_;
- TransactionController* _tmp19_;
- TransactionController* _tmp20_;
- VideoSourceCollection* _tmp21_;
- TransactionController* _tmp22_;
- TransactionController* _tmp23_;
-#line 2422 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self));
-#line 2423 "/home/jens/Source/shotwell/src/Commands.vala"
- ctr = 0;
-#line 2424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->sources;
-#line 2424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_collection_get_size (_tmp0_);
-#line 2424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
-#line 2424 "/home/jens/Source/shotwell/src/Commands.vala"
- count = _tmp2_;
-#line 2426 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = library_photo_global;
-#line 2426 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 2426 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 2426 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_begin (_tmp5_);
-#line 2427 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = video_global;
-#line 2427 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 2427 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 2427 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_begin (_tmp8_);
-#line 21872 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeCollection* _tmp9_;
- GeeIterator* _tmp10_;
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->sources;
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp10_;
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 21885 "Commands.c"
- GeeIterator* _tmp11_;
- MediaSource* source = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- MediaSource* _tmp14_;
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _source_it;
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 21897 "Commands.c"
- }
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _source_it;
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp13_;
-#line 2430 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = source;
-#line 2430 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_untrash (_tmp14_);
-#line 2431 "/home/jens/Source/shotwell/src/Commands.vala"
- if (monitor != NULL) {
-#line 21911 "Commands.c"
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = ctr;
-#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- ctr = _tmp15_ + 1;
-#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = ctr;
-#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = count;
-#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- monitor ((guint64) _tmp16_, (guint64) _tmp17_, TRUE, monitor_target);
-#line 21925 "Commands.c"
- }
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 21929 "Commands.c"
- }
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 21933 "Commands.c"
- }
-#line 2435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = library_photo_global;
-#line 2435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 2435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _tmp19_;
-#line 2435 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp20_);
-#line 2436 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = video_global;
-#line 2436 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 2436 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
-#line 2436 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp23_);
-#line 21951 "Commands.c"
-}
-
-
-static void
-trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosCommand* self,
- DataSource* source)
-{
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 2439 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self));
-#line 2439 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 2442 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = self->priv->sources;
-#line 2442 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_remove (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 2446 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->sources;
-#line 2446 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_collection_get_size (_tmp1_);
-#line 2446 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 2446 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ == 0) {
-#line 21979 "Commands.c"
- CommandManager* _tmp4_;
- CommandManager* _tmp5_;
-#line 2447 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 2447 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
-#line 2447 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp5_);
-#line 2447 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp5_);
-#line 21990 "Commands.c"
- }
-}
-
-
-static void
-trash_untrash_photos_command_class_init (TrashUntrashPhotosCommandClass * klass)
-{
-#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
- trash_untrash_photos_command_parent_class = g_type_class_peek_parent (klass);
-#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (TrashUntrashPhotosCommandPrivate));
-#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) trash_untrash_photos_command_real_execute;
-#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) trash_untrash_photos_command_real_undo;
-#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = trash_untrash_photos_command_finalize;
-#line 22008 "Commands.c"
-}
-
-
-static void
-trash_untrash_photos_command_instance_init (TrashUntrashPhotosCommand * self)
-{
-#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = TRASH_UNTRASH_PHOTOS_COMMAND_GET_PRIVATE (self);
-#line 22017 "Commands.c"
-}
-
-
-static void
-trash_untrash_photos_command_finalize (GObject * obj)
-{
- TrashUntrashPhotosCommand * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- VideoSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand);
-#line 2358 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = library_photo_global;
-#line 2358 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 2358 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self);
-#line 2359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = video_global;
-#line 2359 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 2359 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self);
-#line 2342 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->sources);
-#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (trash_untrash_photos_command_parent_class)->finalize (obj);
-#line 22047 "Commands.c"
-}
-
-
-GType
-trash_untrash_photos_command_get_type (void)
-{
- static volatile gsize trash_untrash_photos_command_type_id__volatile = 0;
- if (g_once_init_enter (&trash_untrash_photos_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TrashUntrashPhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_untrash_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashUntrashPhotosCommand), 0, (GInstanceInitFunc) trash_untrash_photos_command_instance_init, NULL };
- GType trash_untrash_photos_command_type_id;
- trash_untrash_photos_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "TrashUntrashPhotosCommand", &g_define_type_info, 0);
- g_once_init_leave (&trash_untrash_photos_command_type_id__volatile, trash_untrash_photos_command_type_id);
- }
- return trash_untrash_photos_command_type_id__volatile;
-}
-
-
-FlagUnflagCommand*
-flag_unflag_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean flag)
-{
- FlagUnflagCommand * self = NULL;
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
-#line 2461 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
-#line 2463 "/home/jens/Source/shotwell/src/Commands.vala"
- if (flag) {
-#line 2463 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _ ("Flag");
-#line 22081 "Commands.c"
- } else {
-#line 2463 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _ ("Unflag");
-#line 22085 "Commands.c"
- }
-#line 2464 "/home/jens/Source/shotwell/src/Commands.vala"
- if (flag) {
-#line 2464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = FLAG_UNFLAG_COMMAND_FLAG_SELECTED_STRING;
-#line 22091 "Commands.c"
- } else {
-#line 2464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = FLAG_UNFLAG_COMMAND_UNFLAG_SELECTED_STRING;
-#line 22095 "Commands.c"
- }
-#line 2462 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (FlagUnflagCommand*) multiple_data_source_at_once_command_construct (object_type, sources, _tmp0_, _tmp1_);
-#line 2466 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->flag = flag;
-#line 2468 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_collection_get_size (sources);
-#line 2468 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 2468 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ >= FLAG_UNFLAG_COMMAND_MIN_PROGRESS_BAR_THRESHOLD) {
-#line 22107 "Commands.c"
- const gchar* _tmp4_ = NULL;
- ProgressDialog* _tmp5_;
- ProgressDialog* _tmp6_;
-#line 2470 "/home/jens/Source/shotwell/src/Commands.vala"
- if (flag) {
-#line 2470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = FLAG_UNFLAG_COMMAND_FLAG_PROGRESS;
-#line 22115 "Commands.c"
- } else {
-#line 2470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = FLAG_UNFLAG_COMMAND_UNFLAG_PROGRESS;
-#line 22119 "Commands.c"
- }
-#line 2469 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = progress_dialog_new (NULL, _tmp4_, NULL);
-#line 2469 "/home/jens/Source/shotwell/src/Commands.vala"
- g_object_ref_sink (_tmp5_);
-#line 2469 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->progress_dialog);
-#line 2469 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->progress_dialog = _tmp5_;
-#line 2472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->progress_dialog;
-#line 2472 "/home/jens/Source/shotwell/src/Commands.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget));
-#line 22133 "Commands.c"
- }
-#line 2461 "/home/jens/Source/shotwell/src/Commands.vala"
- return self;
-#line 22137 "Commands.c"
-}
-
-
-FlagUnflagCommand*
-flag_unflag_command_new (GeeCollection* sources,
- gboolean flag)
-{
-#line 2461 "/home/jens/Source/shotwell/src/Commands.vala"
- return flag_unflag_command_construct (TYPE_FLAG_UNFLAG_COMMAND, sources, flag);
-#line 22147 "Commands.c"
-}
-
-
-static void
-flag_unflag_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources)
-{
- FlagUnflagCommand * self;
- gint num_processed = 0;
- ProgressDialog* _tmp13_;
-#line 2476 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand);
-#line 2476 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 2477 "/home/jens/Source/shotwell/src/Commands.vala"
- num_processed = 0;
-#line 22164 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp0_;
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 22174 "Commands.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* _tmp4_;
- gboolean _tmp5_;
- gint _tmp6_;
- ProgressDialog* _tmp7_;
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _source_it;
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 22189 "Commands.c"
- }
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp3_;
-#line 2480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 2480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->flag;
-#line 2480 "/home/jens/Source/shotwell/src/Commands.vala"
- flag_unflag_command_flag_unflag (self, _tmp4_, _tmp5_);
-#line 2482 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = num_processed;
-#line 2482 "/home/jens/Source/shotwell/src/Commands.vala"
- num_processed = _tmp6_ + 1;
-#line 2484 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->progress_dialog;
-#line 2484 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp7_ != NULL) {
-#line 22211 "Commands.c"
- ProgressDialog* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- ProgressDialog* _tmp12_;
-#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->progress_dialog;
-#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = num_processed;
-#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_collection_get_size (sources);
-#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
-#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_set_fraction (_tmp8_, _tmp9_, _tmp11_);
-#line 2486 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->progress_dialog;
-#line 2486 "/home/jens/Source/shotwell/src/Commands.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
-#line 2487 "/home/jens/Source/shotwell/src/Commands.vala"
- spin_event_loop ();
-#line 22233 "Commands.c"
- }
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 22237 "Commands.c"
- }
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 22241 "Commands.c"
- }
-#line 2491 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->progress_dialog;
-#line 2491 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp13_ != NULL) {
-#line 22247 "Commands.c"
- ProgressDialog* _tmp14_;
-#line 2492 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = self->priv->progress_dialog;
-#line 2492 "/home/jens/Source/shotwell/src/Commands.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget));
-#line 22253 "Commands.c"
- }
-}
-
-
-static void
-flag_unflag_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
- GeeCollection* sources)
-{
- FlagUnflagCommand * self;
-#line 2495 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand);
-#line 2495 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 22267 "Commands.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp0_;
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- while (TRUE) {
-#line 22277 "Commands.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* _tmp4_;
- gboolean _tmp5_;
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _source_it;
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- break;
-#line 22290 "Commands.c"
- }
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp3_;
-#line 2497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 2497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->flag;
-#line 2497 "/home/jens/Source/shotwell/src/Commands.vala"
- flag_unflag_command_flag_unflag (self, _tmp4_, !_tmp5_);
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (source);
-#line 22306 "Commands.c"
- }
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_source_it);
-#line 22310 "Commands.c"
- }
-}
-
-
-static void
-flag_unflag_command_flag_unflag (FlagUnflagCommand* self,
- DataSource* source,
- gboolean flag)
-{
- Flaggable* flaggable = NULL;
- Flaggable* _tmp0_;
- Flaggable* _tmp1_;
-#line 2500 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_FLAG_UNFLAG_COMMAND (self));
-#line 2500 "/home/jens/Source/shotwell/src/Commands.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 2501 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_FLAGGABLE) ? ((Flaggable*) source) : NULL);
-#line 2501 "/home/jens/Source/shotwell/src/Commands.vala"
- flaggable = _tmp0_;
-#line 2502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = flaggable;
-#line 2502 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ != NULL) {
-#line 2503 "/home/jens/Source/shotwell/src/Commands.vala"
- if (flag) {
-#line 22337 "Commands.c"
- Flaggable* _tmp2_;
-#line 2504 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = flaggable;
-#line 2504 "/home/jens/Source/shotwell/src/Commands.vala"
- flaggable_mark_flagged (_tmp2_);
-#line 22343 "Commands.c"
- } else {
- Flaggable* _tmp3_;
-#line 2506 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = flaggable;
-#line 2506 "/home/jens/Source/shotwell/src/Commands.vala"
- flaggable_mark_unflagged (_tmp3_);
-#line 22350 "Commands.c"
- }
- }
-#line 2500 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (flaggable);
-#line 22355 "Commands.c"
-}
-
-
-static void
-flag_unflag_command_class_init (FlagUnflagCommandClass * klass)
-{
-#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
- flag_unflag_command_parent_class = g_type_class_peek_parent (klass);
-#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
- g_type_class_add_private (klass, sizeof (FlagUnflagCommandPrivate));
-#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceAtOnceCommandClass *) klass)->execute_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) flag_unflag_command_real_execute_on_all;
-#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
- ((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) flag_unflag_command_real_undo_on_all;
-#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (klass)->finalize = flag_unflag_command_finalize;
-#line 22372 "Commands.c"
-}
-
-
-static void
-flag_unflag_command_instance_init (FlagUnflagCommand * self)
-{
-#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv = FLAG_UNFLAG_COMMAND_GET_PRIVATE (self);
-#line 2459 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->progress_dialog = NULL;
-#line 22383 "Commands.c"
-}
-
-
-static void
-flag_unflag_command_finalize (GObject * obj)
-{
- FlagUnflagCommand * self;
-#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand);
-#line 2459 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (self->priv->progress_dialog);
-#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
- G_OBJECT_CLASS (flag_unflag_command_parent_class)->finalize (obj);
-#line 22397 "Commands.c"
-}
-
-
-GType
-flag_unflag_command_get_type (void)
-{
- static volatile gsize flag_unflag_command_type_id__volatile = 0;
- if (g_once_init_enter (&flag_unflag_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FlagUnflagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flag_unflag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlagUnflagCommand), 0, (GInstanceInitFunc) flag_unflag_command_instance_init, NULL };
- GType flag_unflag_command_type_id;
- flag_unflag_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, "FlagUnflagCommand", &g_define_type_info, 0);
- g_once_init_leave (&flag_unflag_command_type_id__volatile, flag_unflag_command_type_id);
- }
- return flag_unflag_command_type_id__volatile;
-}
-
-
-
diff --git a/src/Commands.vala b/src/Commands.vala
index 7441a50..6924f82 100644
--- a/src/Commands.vala
+++ b/src/Commands.vala
@@ -920,7 +920,6 @@ public abstract class MovePhotosCommand : Command {
}
public override void execute() {
-
// create the new event
base.execute();
@@ -2507,3 +2506,220 @@ public class FlagUnflagCommand : MultipleDataSourceAtOnceCommand {
}
}
}
+
+#if ENABLE_FACES
+public class RemoveFacesFromPhotosCommand : SimpleProxyableCommand {
+ private Gee.Map<MediaSource, string> map_source_geometry = new Gee.HashMap<MediaSource, string>();
+
+ public RemoveFacesFromPhotosCommand(Face face, Gee.Collection<MediaSource> sources) {
+ base (face,
+ Resources.remove_face_from_photos_label(face.get_name(), sources.size),
+ face.get_name());
+
+ foreach (MediaSource source in sources) {
+ FaceLocation? face_location =
+ FaceLocation.get_face_location(face.get_face_id(), ((Photo) source).get_photo_id());
+ assert(face_location != null);
+
+ this.map_source_geometry.set(source, face_location.get_serialized_geometry());
+ }
+
+ LibraryPhoto.global.item_destroyed.connect(on_source_destroyed);
+ Video.global.item_destroyed.connect(on_source_destroyed);
+ }
+
+ ~RemoveFacesFromPhotosCommand() {
+ LibraryPhoto.global.item_destroyed.disconnect(on_source_destroyed);
+ Video.global.item_destroyed.disconnect(on_source_destroyed);
+ }
+
+ public override void execute_on_source(DataSource source) {
+ ((Face) source).detach_many(map_source_geometry.keys);
+ }
+
+ public override void undo_on_source(DataSource source) {
+ Face face = (Face) source;
+
+ face.attach_many(map_source_geometry.keys);
+ foreach (Gee.Map.Entry<MediaSource, string> entry in map_source_geometry.entries)
+ FaceLocation.create(face.get_face_id(), ((Photo) entry.key).get_photo_id(), entry.value);
+ }
+
+ private void on_source_destroyed(DataSource source) {
+ if (map_source_geometry.keys.contains((MediaSource) source))
+ get_command_manager().reset();
+ }
+}
+
+public class RenameFaceCommand : SimpleProxyableCommand {
+ private string old_name;
+ private string new_name;
+
+ public RenameFaceCommand(Face face, string new_name) {
+ base (face, Resources.rename_face_label(face.get_name(), new_name), face.get_name());
+
+ old_name = face.get_name();
+ this.new_name = new_name;
+ }
+
+ protected override void execute_on_source(DataSource source) {
+ if (!((Face) source).rename(new_name))
+ AppWindow.error_message(Resources.rename_face_exists_message(new_name));
+ }
+
+ protected override void undo_on_source(DataSource source) {
+ if (!((Face) source).rename(old_name))
+ AppWindow.error_message(Resources.rename_face_exists_message(old_name));
+ }
+}
+
+public class DeleteFaceCommand : SimpleProxyableCommand {
+ private Gee.Map<PhotoID?, string> photo_geometry_map = new Gee.HashMap<PhotoID?, string>
+ ((Gee.HashDataFunc)FaceLocation.photo_id_hash, (Gee.EqualDataFunc)FaceLocation.photo_ids_equal);
+
+ public DeleteFaceCommand(Face face) {
+ base (face, Resources.delete_face_label(face.get_name()), face.get_name());
+
+ // we can't use the Gee.Map returned by FaceLocation.get_locations_by_face
+ // because it will be modified in execute_on_source
+ Gee.Map<PhotoID?, FaceLocation>? temp = FaceLocation.get_locations_by_face(face);
+ assert(temp != null);
+ foreach (Gee.Map.Entry<PhotoID?, FaceLocation> entry in temp.entries)
+ photo_geometry_map.set(entry.key, entry.value.get_serialized_geometry());
+ }
+
+ protected override void execute_on_source(DataSource source) {
+ FaceID face_id = ((Face) source).get_face_id();
+ foreach (PhotoID photo_id in photo_geometry_map.keys)
+ FaceLocation.destroy(face_id, photo_id);
+
+ Face.global.destroy_marked(Face.global.mark(source), false);
+ }
+
+ protected override void undo_on_source(DataSource source) {
+ // merely instantiating the Face will rehydrate it ... should always work, because the
+ // undo stack is cleared if the proxy ever breaks
+ assert(source is Face);
+
+ foreach (Gee.Map.Entry<PhotoID?, string> entry in photo_geometry_map.entries) {
+ Photo? photo = LibraryPhoto.global.fetch(entry.key);
+
+ if (photo != null) {
+ Face face = (Face) source;
+
+ face.attach(photo);
+ FaceLocation.create(face.get_face_id(), entry.key, entry.value);
+ }
+ }
+ }
+}
+
+public class ModifyFacesCommand : SingleDataSourceCommand {
+ private MediaSource media;
+ private Gee.ArrayList<SourceProxy> to_add = new Gee.ArrayList<SourceProxy>();
+ private Gee.ArrayList<SourceProxy> to_remove = new Gee.ArrayList<SourceProxy>();
+ private Gee.Map<SourceProxy, string> to_update = new Gee.HashMap<SourceProxy, string>();
+ private Gee.Map<SourceProxy, string> geometries = new Gee.HashMap<SourceProxy, string>();
+
+ public ModifyFacesCommand(MediaSource media, Gee.Map<Face, string> new_face_list) {
+ base (media, Resources.MODIFY_FACES_LABEL, "");
+
+ this.media = media;
+
+ // Remove any face that's in the original list but not the new one
+ Gee.Collection<Face>? original_faces = Face.global.fetch_for_source(media);
+ if (original_faces != null) {
+ foreach (Face face in original_faces) {
+ if (!new_face_list.keys.contains(face)) {
+ SourceProxy proxy = face.get_proxy();
+
+ to_remove.add(proxy);
+ proxy.broken.connect(on_proxy_broken);
+
+ FaceLocation? face_location =
+ FaceLocation.get_face_location(face.get_face_id(), ((Photo) media).get_photo_id());
+ assert(face_location != null);
+
+ geometries.set(proxy, face_location.get_serialized_geometry());
+ }
+ }
+ }
+
+ // Add any face that's in the new list but not the original
+ foreach (Gee.Map.Entry<Face, string> entry in new_face_list.entries) {
+ if (original_faces == null || !original_faces.contains(entry.key)) {
+ SourceProxy proxy = entry.key.get_proxy();
+
+ to_add.add(proxy);
+ proxy.broken.connect(on_proxy_broken);
+
+ geometries.set(proxy, entry.value);
+ } else {
+ // If it is already in the original list we need to check if it's
+ // geometry has changed.
+ FaceLocation? face_location =
+ FaceLocation.get_face_location(entry.key.get_face_id(), ((Photo) media).get_photo_id());
+ assert(face_location != null);
+
+ string old_geometry = face_location.get_serialized_geometry();
+ if (old_geometry != entry.value) {
+ SourceProxy proxy = entry.key.get_proxy();
+
+ to_update.set(proxy, entry.value);
+ proxy.broken.connect(on_proxy_broken);
+
+ geometries.set(proxy, old_geometry);
+ }
+ }
+ }
+ }
+
+ ~ModifyFacesCommand() {
+ foreach (SourceProxy proxy in to_add)
+ proxy.broken.disconnect(on_proxy_broken);
+
+ foreach (SourceProxy proxy in to_remove)
+ proxy.broken.disconnect(on_proxy_broken);
+
+ foreach (SourceProxy proxy in to_update.keys)
+ proxy.broken.disconnect(on_proxy_broken);
+ }
+
+ public override void execute() {
+ foreach (SourceProxy proxy in to_add) {
+ Face face = (Face) proxy.get_source();
+ face.attach(media);
+ FaceLocation.create(face.get_face_id(), ((Photo) media).get_photo_id(), geometries.get(proxy));
+ }
+
+ foreach (SourceProxy proxy in to_remove)
+ ((Face) proxy.get_source()).detach(media);
+
+ foreach (Gee.Map.Entry<SourceProxy, string> entry in to_update.entries) {
+ Face face = (Face) entry.key.get_source();
+ FaceLocation.create(face.get_face_id(), ((Photo) media).get_photo_id(), entry.value);
+ }
+ }
+
+ public override void undo() {
+ foreach (SourceProxy proxy in to_add)
+ ((Face) proxy.get_source()).detach(media);
+
+ foreach (SourceProxy proxy in to_remove) {
+ Face face = (Face) proxy.get_source();
+ face.attach(media);
+ FaceLocation.create(face.get_face_id(), ((Photo) media).get_photo_id(), geometries.get(proxy));
+ }
+
+ foreach (SourceProxy proxy in to_update.keys) {
+ Face face = (Face) proxy.get_source();
+ FaceLocation.create(face.get_face_id(), ((Photo) media).get_photo_id(), geometries.get(proxy));
+ }
+ }
+
+ private void on_proxy_broken() {
+ get_command_manager().reset();
+ }
+}
+
+#endif
diff --git a/src/Debug.c b/src/Debug.c
deleted file mode 100644
index a44d811..0000000
--- a/src/Debug.c
+++ /dev/null
@@ -1,777 +0,0 @@
-/* Debug.c generated by valac 0.40.4, the Vala compiler
- * generated from Debug.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <gio/gio.h>
-#include <glib/gstdio.h>
-#include <time.h>
-#include <unistd.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _fclose0(var) ((var == NULL) ? NULL : (var = (fclose (var), NULL)))
-
-
-extern GLogLevelFlags debug_log_mask;
-GLogLevelFlags debug_log_mask = 0;
-extern gchar* debug_log_app_version_prefix;
-gchar* debug_log_app_version_prefix = NULL;
-extern FILE* debug_log_out;
-FILE* debug_log_out = NULL;
-extern FILE* debug_log_err;
-FILE* debug_log_err = NULL;
-extern FILE* debug_log_file_stream;
-FILE* debug_log_file_stream = NULL;
-
-#define DEBUG_DEFAULT_LOG_MASK ((G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING) | G_LOG_LEVEL_MESSAGE)
-#define DEBUG_VIEWER_PREFIX "V"
-#define DEBUG_LIBRARY_PREFIX "L"
-void debug_init (const gchar* app_version_prefix);
-GFile* app_dirs_get_log_file (void);
-void debug_info_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message);
-static void _debug_info_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self);
-void debug_debug_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message);
-static void _debug_debug_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self);
-void debug_message_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message);
-static void _debug_message_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self);
-void debug_warning_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message);
-static void _debug_warning_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self);
-void debug_critical_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message);
-static void _debug_critical_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self);
-void debug_terminate (void);
-gboolean debug_is_enabled (GLogLevelFlags flag);
-void debug_log (FILE* stream,
- const gchar* prefix,
- const gchar* message);
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- return self ? g_object_ref (self) : NULL;
-#line 91 "Debug.c"
-}
-
-
-static void
-_debug_info_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self)
-{
-#line 82 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_info_handler (log_domain, log_levels, message);
-#line 103 "Debug.c"
-}
-
-
-static void
-_debug_debug_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self)
-{
-#line 83 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_debug_handler (log_domain, log_levels, message);
-#line 115 "Debug.c"
-}
-
-
-static void
-_debug_message_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self)
-{
-#line 84 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_message_handler (log_domain, log_levels, message);
-#line 127 "Debug.c"
-}
-
-
-static void
-_debug_warning_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self)
-{
-#line 85 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_warning_handler (log_domain, log_levels, message);
-#line 139 "Debug.c"
-}
-
-
-static void
-_debug_critical_handler_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self)
-{
-#line 86 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_critical_handler (log_domain, log_levels, message);
-#line 151 "Debug.c"
-}
-
-
-void
-debug_init (const gchar* app_version_prefix)
-{
- gchar* _tmp0_;
- FILE* _tmp1_;
- FILE* _tmp2_;
- gchar* log_file_error_msg = NULL;
- GFile* _tmp3_ = NULL;
- const gchar* _tmp4_;
- GFile* log_file = NULL;
- GFile* _tmp6_;
- GFile* _tmp7_;
- const gchar* _tmp31_;
- gboolean _tmp52_ = FALSE;
- GLogLevelFlags _tmp53_;
- const gchar* _tmp55_;
- GError * _inner_error_ = NULL;
-#line 27 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (app_version_prefix != NULL);
-#line 28 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp0_ = g_strdup (app_version_prefix);
-#line 28 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (debug_log_app_version_prefix);
-#line 28 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_app_version_prefix = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp1_ = stdout;
-#line 31 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_out = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp2_ = stderr;
-#line 32 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_err = _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/Debug.vala"
- log_file_error_msg = NULL;
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp4_ = debug_log_app_version_prefix;
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- if (g_strcmp0 (_tmp4_, DEBUG_LIBRARY_PREFIX) == 0) {
-#line 194 "Debug.c"
- GFile* _tmp5_;
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp5_ = app_dirs_get_log_file ();
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_object_unref0 (_tmp3_);
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp3_ = _tmp5_;
-#line 202 "Debug.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_object_unref0 (_tmp3_);
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp3_ = NULL;
-#line 208 "Debug.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp6_ = _g_object_ref0 (_tmp3_);
-#line 37 "/home/jens/Source/shotwell/src/Debug.vala"
- log_file = _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp7_ = log_file;
-#line 38 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp7_ != NULL) {
-#line 218 "Debug.c"
- GFile* log_dir = NULL;
- GFile* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- FILE* _tmp23_;
- FILE* _tmp24_;
-#line 39 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp8_ = log_file;
-#line 39 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp9_ = g_file_get_parent (_tmp8_);
-#line 39 "/home/jens/Source/shotwell/src/Debug.vala"
- log_dir = _tmp9_;
-#line 233 "Debug.c"
- {
- GFile* _tmp10_;
-#line 41 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp10_ = log_dir;
-#line 41 "/home/jens/Source/shotwell/src/Debug.vala"
- if (g_file_query_exists (_tmp10_, NULL) == FALSE) {
-#line 240 "Debug.c"
- gboolean _tmp11_ = FALSE;
- GFile* _tmp12_;
-#line 42 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp12_ = log_dir;
-#line 42 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp11_ = g_file_make_directory_with_parents (_tmp12_, NULL, &_inner_error_);
-#line 42 "/home/jens/Source/shotwell/src/Debug.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 249 "Debug.c"
- goto __catch441_g_error;
- }
-#line 42 "/home/jens/Source/shotwell/src/Debug.vala"
- if (!_tmp11_) {
-#line 254 "Debug.c"
- GFile* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 43 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp13_ = log_dir;
-#line 43 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp14_ = g_file_get_path (_tmp13_);
-#line 43 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp15_ = _tmp14_;
-#line 43 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp16_ = g_strdup_printf ("Unable to create data directory %s", _tmp15_);
-#line 43 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (log_file_error_msg);
-#line 43 "/home/jens/Source/shotwell/src/Debug.vala"
- log_file_error_msg = _tmp16_;
-#line 43 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (_tmp15_);
-#line 273 "Debug.c"
- }
- }
- }
- goto __finally441;
- __catch441_g_error:
- {
- GError* err = NULL;
- GError* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- err = _inner_error_;
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- _inner_error_ = NULL;
-#line 47 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp17_ = err;
-#line 47 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp18_ = _tmp17_->message;
-#line 47 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp19_ = g_strdup (_tmp18_);
-#line 47 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (log_file_error_msg);
-#line 47 "/home/jens/Source/shotwell/src/Debug.vala"
- log_file_error_msg = _tmp19_;
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_error_free0 (err);
-#line 300 "Debug.c"
- }
- __finally441:
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_object_unref0 (log_dir);
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_object_unref0 (log_file);
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_object_unref0 (_tmp3_);
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (log_file_error_msg);
-#line 40 "/home/jens/Source/shotwell/src/Debug.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 40 "/home/jens/Source/shotwell/src/Debug.vala"
- g_clear_error (&_inner_error_);
-#line 40 "/home/jens/Source/shotwell/src/Debug.vala"
- return;
-#line 319 "Debug.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp20_ = log_file;
-#line 53 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp21_ = g_file_get_path (_tmp20_);
-#line 53 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp22_ = _tmp21_;
-#line 53 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp23_ = g_fopen (_tmp22_, "w");
-#line 53 "/home/jens/Source/shotwell/src/Debug.vala"
- _fclose0 (debug_log_file_stream);
-#line 53 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_file_stream = _tmp23_;
-#line 53 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (_tmp22_);
-#line 54 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp24_ = debug_log_file_stream;
-#line 54 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp24_ != NULL) {
-#line 339 "Debug.c"
- FILE* _tmp25_;
- FILE* _tmp26_;
-#line 55 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp25_ = debug_log_file_stream;
-#line 55 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_out = _tmp25_;
-#line 56 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp26_ = debug_log_file_stream;
-#line 56 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_err = _tmp26_;
-#line 350 "Debug.c"
- } else {
- GFile* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
-#line 58 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp27_ = log_file;
-#line 58 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp28_ = g_file_get_path (_tmp27_);
-#line 58 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp29_ = _tmp28_;
-#line 58 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp30_ = g_strdup_printf ("Unable to open or create log file %s", _tmp29_);
-#line 58 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (log_file_error_msg);
-#line 58 "/home/jens/Source/shotwell/src/Debug.vala"
- log_file_error_msg = _tmp30_;
-#line 58 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (_tmp29_);
-#line 370 "Debug.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_object_unref0 (log_dir);
-#line 374 "Debug.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp31_ = g_getenv ("SHOTWELL_LOG");
-#line 62 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp31_ != NULL) {
-#line 63 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_mask = G_LOG_LEVEL_MASK;
-#line 382 "Debug.c"
- } else {
- GLogLevelFlags _tmp32_ = 0;
- const gchar* _tmp33_;
- GLogLevelFlags _tmp36_ = 0;
- const gchar* _tmp37_;
- GLogLevelFlags _tmp40_ = 0;
- const gchar* _tmp41_;
- GLogLevelFlags _tmp44_ = 0;
- const gchar* _tmp45_;
- GLogLevelFlags _tmp48_ = 0;
- const gchar* _tmp49_;
-#line 65 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp33_ = g_getenv ("SHOTWELL_INFO");
-#line 65 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp33_ != NULL) {
-#line 398 "Debug.c"
- GLogLevelFlags _tmp34_;
-#line 66 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp34_ = debug_log_mask;
-#line 66 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp32_ = _tmp34_ | G_LOG_LEVEL_INFO;
-#line 404 "Debug.c"
- } else {
- GLogLevelFlags _tmp35_;
-#line 67 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp35_ = debug_log_mask;
-#line 67 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp32_ = _tmp35_;
-#line 411 "Debug.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_mask = _tmp32_;
-#line 68 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp37_ = g_getenv ("SHOTWELL_DEBUG");
-#line 68 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp37_ != NULL) {
-#line 419 "Debug.c"
- GLogLevelFlags _tmp38_;
-#line 69 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp38_ = debug_log_mask;
-#line 69 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp36_ = _tmp38_ | G_LOG_LEVEL_DEBUG;
-#line 425 "Debug.c"
- } else {
- GLogLevelFlags _tmp39_;
-#line 70 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp39_ = debug_log_mask;
-#line 70 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp36_ = _tmp39_;
-#line 432 "Debug.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_mask = _tmp36_;
-#line 71 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp41_ = g_getenv ("SHOTWELL_MESSAGE");
-#line 71 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp41_ != NULL) {
-#line 440 "Debug.c"
- GLogLevelFlags _tmp42_;
-#line 72 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp42_ = debug_log_mask;
-#line 72 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp40_ = _tmp42_ | G_LOG_LEVEL_MESSAGE;
-#line 446 "Debug.c"
- } else {
- GLogLevelFlags _tmp43_;
-#line 73 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp43_ = debug_log_mask;
-#line 73 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp40_ = _tmp43_;
-#line 453 "Debug.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_mask = _tmp40_;
-#line 74 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp45_ = g_getenv ("SHOTWELL_WARNING");
-#line 74 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp45_ != NULL) {
-#line 461 "Debug.c"
- GLogLevelFlags _tmp46_;
-#line 75 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp46_ = debug_log_mask;
-#line 75 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp44_ = _tmp46_ | G_LOG_LEVEL_WARNING;
-#line 467 "Debug.c"
- } else {
- GLogLevelFlags _tmp47_;
-#line 76 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp47_ = debug_log_mask;
-#line 76 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp44_ = _tmp47_;
-#line 474 "Debug.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_mask = _tmp44_;
-#line 77 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp49_ = g_getenv ("SHOTWELL_CRITICAL");
-#line 77 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp49_ != NULL) {
-#line 482 "Debug.c"
- GLogLevelFlags _tmp50_;
-#line 78 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp50_ = debug_log_mask;
-#line 78 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp48_ = _tmp50_ | G_LOG_LEVEL_CRITICAL;
-#line 488 "Debug.c"
- } else {
- GLogLevelFlags _tmp51_;
-#line 79 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp51_ = debug_log_mask;
-#line 79 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp48_ = _tmp51_;
-#line 495 "Debug.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_mask = _tmp48_;
-#line 499 "Debug.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Debug.vala"
- g_log_set_handler (NULL, G_LOG_LEVEL_INFO, _debug_info_handler_glog_func, NULL);
-#line 83 "/home/jens/Source/shotwell/src/Debug.vala"
- g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, _debug_debug_handler_glog_func, NULL);
-#line 84 "/home/jens/Source/shotwell/src/Debug.vala"
- g_log_set_handler (NULL, G_LOG_LEVEL_MESSAGE, _debug_message_handler_glog_func, NULL);
-#line 85 "/home/jens/Source/shotwell/src/Debug.vala"
- g_log_set_handler (NULL, G_LOG_LEVEL_WARNING, _debug_warning_handler_glog_func, NULL);
-#line 86 "/home/jens/Source/shotwell/src/Debug.vala"
- g_log_set_handler (NULL, G_LOG_LEVEL_CRITICAL, _debug_critical_handler_glog_func, NULL);
-#line 88 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp53_ = debug_log_mask;
-#line 88 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp53_ == 0) {
-#line 515 "Debug.c"
- GFile* _tmp54_;
-#line 88 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp54_ = log_file;
-#line 88 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp52_ = _tmp54_ != NULL;
-#line 521 "Debug.c"
- } else {
-#line 88 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp52_ = FALSE;
-#line 525 "Debug.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp52_) {
-#line 91 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log_mask = DEBUG_DEFAULT_LOG_MASK;
-#line 531 "Debug.c"
- }
-#line 94 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp55_ = log_file_error_msg;
-#line 94 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp55_ != NULL) {
-#line 537 "Debug.c"
- const gchar* _tmp56_;
-#line 95 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp56_ = log_file_error_msg;
-#line 95 "/home/jens/Source/shotwell/src/Debug.vala"
- g_warning ("Debug.vala:95: %s", _tmp56_);
-#line 543 "Debug.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_object_unref0 (log_file);
-#line 27 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_object_unref0 (_tmp3_);
-#line 27 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (log_file_error_msg);
-#line 551 "Debug.c"
-}
-
-
-void
-debug_terminate (void)
-{
-}
-
-
-gboolean
-debug_is_enabled (GLogLevelFlags flag)
-{
- gboolean result = FALSE;
- GLogLevelFlags _tmp0_;
-#line 103 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp0_ = debug_log_mask;
-#line 103 "/home/jens/Source/shotwell/src/Debug.vala"
- result = (_tmp0_ & flag) > 0;
-#line 103 "/home/jens/Source/shotwell/src/Debug.vala"
- return result;
-#line 572 "Debug.c"
-}
-
-
-static void
-g_time_local (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- localtime_r (&time, &_tmp0_);
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 590 "Debug.c"
-}
-
-
-static gchar*
-g_time_to_string (struct tm *self)
-{
- gchar* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gchar* _tmp6_;
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = (*self).tm_year;
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*self).tm_mon;
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = (*self).tm_mday;
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = (*self).tm_hour;
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = (*self).tm_min;
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = (*self).tm_sec;
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = g_strdup_printf ("%04d-%02d-%02d %02d:%02d:%02d", _tmp0_ + 1900, _tmp1_ + 1, _tmp2_, _tmp3_, _tmp4_, _tmp5_);
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp6_;
-#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 623 "Debug.c"
-}
-
-
-void
-debug_log (FILE* stream,
- const gchar* prefix,
- const gchar* message)
-{
- time_t now = 0;
- time_t _tmp0_;
- const gchar* _tmp1_;
- struct tm _tmp2_ = {0};
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 106 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (stream != NULL);
-#line 106 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (prefix != NULL);
-#line 106 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (message != NULL);
-#line 107 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp0_ = time (NULL);
-#line 107 "/home/jens/Source/shotwell/src/Debug.vala"
- now = _tmp0_;
-#line 108 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp1_ = debug_log_app_version_prefix;
-#line 108 "/home/jens/Source/shotwell/src/Debug.vala"
- g_time_local (now, &_tmp2_);
-#line 108 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp3_ = g_time_to_string (&_tmp2_);
-#line 108 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp4_ = _tmp3_;
-#line 108 "/home/jens/Source/shotwell/src/Debug.vala"
- fprintf (stream, "%s %d %s [%s] %s\n", _tmp1_, (gint) getpid (), _tmp4_, prefix, message);
-#line 108 "/home/jens/Source/shotwell/src/Debug.vala"
- _g_free0 (_tmp4_);
-#line 115 "/home/jens/Source/shotwell/src/Debug.vala"
- fflush (stream);
-#line 662 "Debug.c"
-}
-
-
-void
-debug_info_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message)
-{
-#line 118 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (message != NULL);
-#line 119 "/home/jens/Source/shotwell/src/Debug.vala"
- if (debug_is_enabled (G_LOG_LEVEL_INFO)) {
-#line 675 "Debug.c"
- FILE* _tmp0_;
-#line 120 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp0_ = debug_log_out;
-#line 120 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log (_tmp0_, "INF", message);
-#line 681 "Debug.c"
- }
-}
-
-
-void
-debug_debug_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message)
-{
-#line 123 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (message != NULL);
-#line 124 "/home/jens/Source/shotwell/src/Debug.vala"
- if (debug_is_enabled (G_LOG_LEVEL_DEBUG)) {
-#line 695 "Debug.c"
- FILE* _tmp0_;
-#line 125 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp0_ = debug_log_out;
-#line 125 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log (_tmp0_, "DBG", message);
-#line 701 "Debug.c"
- }
-}
-
-
-void
-debug_message_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message)
-{
-#line 128 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (message != NULL);
-#line 129 "/home/jens/Source/shotwell/src/Debug.vala"
- if (debug_is_enabled (G_LOG_LEVEL_MESSAGE)) {
-#line 715 "Debug.c"
- FILE* _tmp0_;
-#line 130 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp0_ = debug_log_err;
-#line 130 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log (_tmp0_, "MSG", message);
-#line 721 "Debug.c"
- }
-}
-
-
-void
-debug_warning_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message)
-{
-#line 133 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (message != NULL);
-#line 134 "/home/jens/Source/shotwell/src/Debug.vala"
- if (debug_is_enabled (G_LOG_LEVEL_WARNING)) {
-#line 735 "Debug.c"
- FILE* _tmp0_;
-#line 135 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp0_ = debug_log_err;
-#line 135 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log (_tmp0_, "WRN", message);
-#line 741 "Debug.c"
- }
-}
-
-
-void
-debug_critical_handler (const gchar* domain,
- GLogLevelFlags flags,
- const gchar* message)
-{
-#line 138 "/home/jens/Source/shotwell/src/Debug.vala"
- g_return_if_fail (message != NULL);
-#line 139 "/home/jens/Source/shotwell/src/Debug.vala"
- if (debug_is_enabled (G_LOG_LEVEL_CRITICAL)) {
-#line 755 "Debug.c"
- FILE* _tmp0_;
- FILE* _tmp1_;
-#line 140 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp0_ = debug_log_err;
-#line 140 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log (_tmp0_, "CRT", message);
-#line 141 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp1_ = debug_log_file_stream;
-#line 141 "/home/jens/Source/shotwell/src/Debug.vala"
- if (_tmp1_ != NULL) {
-#line 766 "Debug.c"
- FILE* _tmp2_;
-#line 142 "/home/jens/Source/shotwell/src/Debug.vala"
- _tmp2_ = stderr;
-#line 142 "/home/jens/Source/shotwell/src/Debug.vala"
- debug_log (_tmp2_, "CRT", message);
-#line 772 "Debug.c"
- }
- }
-}
-
-
-
diff --git a/src/DesktopIntegration.c b/src/DesktopIntegration.c
deleted file mode 100644
index 5fb90ef..0000000
--- a/src/DesktopIntegration.c
+++ /dev/null
@@ -1,3038 +0,0 @@
-/* DesktopIntegration.c generated by valac 0.40.4, the Vala compiler
- * generated from DesktopIntegration.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n-lib.h>
-#include <glib/gstdio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_EXPORTER_UI (exporter_ui_get_type ())
-#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI))
-#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass))
-#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI))
-#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI))
-#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass))
-
-typedef struct _ExporterUI ExporterUI;
-typedef struct _ExporterUIClass ExporterUIClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_SORTED_LIST (sorted_list_get_type ())
-#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
-#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
-#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
-#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
-#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
-
-typedef struct _SortedList SortedList;
-typedef struct _SortedListClass SortedListClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_EXPORT_DIALOG (export_dialog_get_type ())
-#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog))
-#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass))
-#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG))
-#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG))
-#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass))
-
-typedef struct _ExportDialog ExportDialog;
-typedef struct _ExportDialogClass ExportDialogClass;
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#define TYPE_EXPORTER (exporter_get_type ())
-#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter))
-#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass))
-#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER))
-#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER))
-#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass))
-
-typedef struct _Exporter Exporter;
-typedef struct _ExporterClass ExporterClass;
-#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL)))
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _Scaling Scaling;
-
-#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_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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER (desktop_integration_background_slideshow_xml_builder_get_type ())
-#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilder))
-#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilderClass))
-#define DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER))
-#define DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER))
-#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilderClass))
-
-typedef struct _DesktopIntegrationBackgroundSlideshowXMLBuilder DesktopIntegrationBackgroundSlideshowXMLBuilder;
-typedef struct _DesktopIntegrationBackgroundSlideshowXMLBuilderClass DesktopIntegrationBackgroundSlideshowXMLBuilderClass;
-typedef struct _DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate;
-typedef struct _DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder;
-#define _desktop_integration_background_slideshow_xml_builder_unref0(var) ((var == NULL) ? NULL : (var = (desktop_integration_background_slideshow_xml_builder_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data);
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _DesktopIntegrationBackgroundSlideshowXMLBuilder {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate * priv;
-};
-
-struct _DesktopIntegrationBackgroundSlideshowXMLBuilderClass {
- GTypeClass parent_class;
- void (*finalize) (DesktopIntegrationBackgroundSlideshowXMLBuilder *self);
-};
-
-struct _DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate {
- GFile* destination;
- gdouble duration;
- gdouble transition;
- GFile* tmp_file;
- GDataOutputStream* outs;
- GFile* first_file;
- GFile* last_file;
-};
-
-struct _DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder {
- GParamSpec parent_instance;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-
-extern gint desktop_integration_init_count;
-gint desktop_integration_init_count = 0;
-extern gboolean desktop_integration_send_to_installed;
-gboolean desktop_integration_send_to_installed = FALSE;
-extern ExporterUI* desktop_integration_send_to_exporter;
-ExporterUI* desktop_integration_send_to_exporter = NULL;
-extern ExporterUI* desktop_integration_desktop_slideshow_exporter;
-ExporterUI* desktop_integration_desktop_slideshow_exporter = NULL;
-extern gdouble desktop_integration_desktop_slideshow_transition;
-gdouble desktop_integration_desktop_slideshow_transition = 0.0;
-extern gdouble desktop_integration_desktop_slideshow_duration;
-gdouble desktop_integration_desktop_slideshow_duration = 0.0;
-extern gboolean desktop_integration_set_desktop_background;
-gboolean desktop_integration_set_desktop_background = FALSE;
-extern gboolean desktop_integration_set_screensaver;
-gboolean desktop_integration_set_screensaver = FALSE;
-static gpointer desktop_integration_background_slideshow_xml_builder_parent_class = NULL;
-
-#define DESKTOP_INTEGRATION_SENDTO_EXEC "nautilus-sendto"
-#define DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME "wallpaper.xml"
-gpointer exporter_ui_ref (gpointer instance);
-void exporter_ui_unref (gpointer instance);
-GParamSpec* param_spec_exporter_ui (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_exporter_ui (GValue* value,
- gpointer v_object);
-void value_take_exporter_ui (GValue* value,
- gpointer v_object);
-gpointer value_get_exporter_ui (const GValue* value);
-GType exporter_ui_get_type (void) G_GNUC_CONST;
-void desktop_integration_init (void);
-void desktop_integration_terminate (void);
-GAppInfo* desktop_integration_get_default_app_for_mime_types (gchar** mime_types,
- int mime_types_length1,
- GeeArrayList* preferred_apps);
-GType sorted_list_get_type (void) G_GNUC_CONST;
-SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types,
- int mime_types_length1);
-gint64 desktop_integration_app_info_comparator (void* a,
- void* b);
-static gint64 _desktop_integration_app_info_comparator_comparator (void* a,
- void* b,
- gpointer self);
-SortedList* sorted_list_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-SortedList* sorted_list_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-#define RESOURCES_APP_TITLE "Shotwell"
-static void _g_object_unref0_ (gpointer var);
-static inline void _g_list_free__g_object_unref0_ (GList* self);
-gchar* desktop_integration_get_app_open_command (GAppInfo* app_info);
-gboolean desktop_integration_is_send_to_installed (void);
-void desktop_integration_files_send_to (GFile** files,
- int files_length1);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-void page_window_set_busy_cursor (PageWindow* self);
-void page_window_set_normal_cursor (PageWindow* self);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-void desktop_integration_send_to (GeeCollection* media);
-GType export_dialog_get_type (void) G_GNUC_CONST;
-ExportDialog* export_dialog_new (const gchar* title);
-ExportDialog* export_dialog_construct (GType object_type,
- const gchar* title);
-gboolean media_source_collection_has_video (GeeCollection* media);
-gboolean media_source_collection_has_photo (GeeCollection* media);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-GType exporter_get_type (void) G_GNUC_CONST;
-ExporterUI* video_export_many (GeeCollection* videos,
- ExporterCompletionCallback done,
- void* done_target,
- gboolean export_in_place);
-void desktop_integration_on_send_to_export_completed (Exporter* exporter,
- gboolean is_cancelled);
-static void _desktop_integration_on_send_to_export_completed_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self);
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-void export_format_parameters_current (ExportFormatParameters* result);
-gboolean export_dialog_execute (ExportDialog* self,
- gint* scale,
- ScaleConstraint* constraint,
- ExportFormatParameters* parameters);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void scaling_for_constraint (ScaleConstraint constraint,
- gint scale,
- gboolean scale_up,
- Scaling* result);
-Exporter* exporter_new_for_temp_file (GeeCollection* to_export,
- Scaling* scaling,
- ExportFormatParameters* export_params);
-Exporter* exporter_construct_for_temp_file (GType object_type,
- GeeCollection* to_export,
- Scaling* scaling,
- ExportFormatParameters* export_params);
-ExporterUI* exporter_ui_new (Exporter* exporter);
-ExporterUI* exporter_ui_construct (GType object_type,
- Exporter* exporter);
-void exporter_ui_export (ExporterUI* self,
- ExporterCompletionCallback completion_callback,
- void* completion_callback_target);
-GFile** exporter_get_exported_files (Exporter* self,
- int* result_length1);
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-void desktop_integration_set_background (Photo* photo,
- gboolean desktop,
- gboolean screensaver);
-PhotoFileFormat photo_get_best_export_file_format (Photo* self);
-GFile* app_dirs_get_data_subdir (const gchar* name,
- const gchar* subname);
-gchar* photo_file_format_get_default_basename (PhotoFileFormat self,
- const gchar* name);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gchar* configuration_facade_get_desktop_background (ConfigurationFacade* self);
-void photo_export (Photo* self,
- GFile* dest_file,
- Scaling* scaling,
- JpegQuality quality,
- PhotoFileFormat export_format,
- gboolean direct_copy_unmodified,
- gboolean export_metadata,
- GError** error);
-void scaling_for_original (Scaling* result);
-void configuration_facade_set_desktop_background (ConfigurationFacade* self,
- const gchar* filename);
-void configuration_facade_set_screensaver (ConfigurationFacade* self,
- const gchar* filename);
-gpointer desktop_integration_background_slideshow_xml_builder_ref (gpointer instance);
-void desktop_integration_background_slideshow_xml_builder_unref (gpointer instance);
-GParamSpec* desktop_integration_param_spec_background_slideshow_xml_builder (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void desktop_integration_value_set_background_slideshow_xml_builder (GValue* value,
- gpointer v_object);
-void desktop_integration_value_take_background_slideshow_xml_builder (GValue* value,
- gpointer v_object);
-gpointer desktop_integration_value_get_background_slideshow_xml_builder (const GValue* value);
-GType desktop_integration_background_slideshow_xml_builder_get_type (void) G_GNUC_CONST;
-#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate))
-DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_new (GFile* destination,
- gdouble duration,
- gdouble transition);
-DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_construct (GType object_type,
- GFile* destination,
- gdouble duration,
- gdouble transition);
-void desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GError** error);
-static void desktop_integration_background_slideshow_xml_builder_write_transition (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GFile* from,
- GFile* to,
- GError** error);
-static void desktop_integration_background_slideshow_xml_builder_write_static (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GFile* file,
- GError** error);
-void desktop_integration_background_slideshow_xml_builder_add_photo (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GFile* file,
- GError** error);
-GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GError** error);
-static void desktop_integration_background_slideshow_xml_builder_finalize (DesktopIntegrationBackgroundSlideshowXMLBuilder * obj);
-void desktop_integration_set_background_slideshow (GeeCollection* photos,
- gdouble duration,
- gdouble transition,
- gboolean desktop_background,
- gboolean screensaver);
-void delete_all_files (GFile* dir,
- GeeSet* exceptions,
- ProgressMonitor monitor,
- void* monitor_target,
- guint64 file_count,
- GCancellable* cancellable,
- GError** error);
-void scaling_to_fill_screen (GtkWindow* window,
- Scaling* result);
-Exporter* exporter_new (GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-Exporter* exporter_construct (GType object_type,
- GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter,
- gboolean is_cancelled);
-static void _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self);
-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);
-
-
-void
-desktop_integration_init (void)
-{
- gint _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = desktop_integration_init_count;
-#line 23 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_init_count = _tmp0_ + 1;
-#line 23 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp0_ != 0) {
-#line 24 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 550 "DesktopIntegration.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = g_find_program_in_path (DESKTOP_INTEGRATION_SENDTO_EXEC);
-#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _tmp1_;
-#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_send_to_installed = _tmp2_ != NULL;
-#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp2_);
-#line 560 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_terminate (void)
-{
- gint _tmp0_;
- gint _tmp1_;
-#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = desktop_integration_init_count;
-#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_init_count = _tmp0_ - 1;
-#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = desktop_integration_init_count;
-#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp1_ == 0) {
-#line 31 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 579 "DesktopIntegration.c"
- }
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return self ? g_object_ref (self) : NULL;
-#line 589 "DesktopIntegration.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 609 "DesktopIntegration.c"
-}
-
-
-GAppInfo*
-desktop_integration_get_default_app_for_mime_types (gchar** mime_types,
- int mime_types_length1,
- GeeArrayList* preferred_apps)
-{
- GAppInfo* result = NULL;
- SortedList* external_apps = NULL;
- SortedList* _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_val_if_fail (GEE_IS_ARRAY_LIST (preferred_apps), NULL);
-#line 36 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = desktop_integration_get_apps_for_mime_types (mime_types, mime_types_length1);
-#line 36 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_apps = _tmp0_;
-#line 627 "DesktopIntegration.c"
- {
- GeeArrayList* _preferred_app_list = NULL;
- GeeArrayList* _tmp1_;
- gint _preferred_app_size = 0;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _preferred_app_index = 0;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = _g_object_ref0 (preferred_apps);
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _preferred_app_list = _tmp1_;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _preferred_app_list;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = _tmp3_;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _preferred_app_size = _tmp4_;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _preferred_app_index = -1;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- while (TRUE) {
-#line 652 "DesktopIntegration.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gchar* preferred_app = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = _preferred_app_index;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _preferred_app_index = _tmp5_ + 1;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = _preferred_app_index;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = _preferred_app_size;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- break;
-#line 672 "DesktopIntegration.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = _preferred_app_list;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = _preferred_app_index;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- preferred_app = (gchar*) _tmp10_;
-#line 682 "DesktopIntegration.c"
- {
- GeeIterator* _external_app_it = NULL;
- SortedList* _tmp11_;
- GeeIterator* _tmp12_;
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = external_apps;
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _external_app_it = _tmp12_;
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- while (TRUE) {
-#line 695 "DesktopIntegration.c"
- GeeIterator* _tmp13_;
- GAppInfo* external_app = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
- GAppInfo* _tmp16_;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = _external_app_it;
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!gee_iterator_next (_tmp13_)) {
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- break;
-#line 709 "DesktopIntegration.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = _external_app_it;
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_app = (GAppInfo*) _tmp15_;
-#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = external_app;
-#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = g_app_info_get_name (_tmp16_);
-#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = preferred_app;
-#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (string_contains (_tmp17_, _tmp18_)) {
-#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = external_app;
-#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_external_app_it);
-#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (preferred_app);
-#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_preferred_app_list);
-#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (external_apps);
-#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 737 "DesktopIntegration.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (external_app);
-#line 741 "DesktopIntegration.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_external_app_it);
-#line 745 "DesktopIntegration.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (preferred_app);
-#line 749 "DesktopIntegration.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_preferred_app_list);
-#line 753 "DesktopIntegration.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = NULL;
-#line 45 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (external_apps);
-#line 45 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 761 "DesktopIntegration.c"
-}
-
-
-gint64
-desktop_integration_app_info_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gint64 _tmp6_;
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = g_app_info_get_name (G_TYPE_CHECK_INSTANCE_CAST (a, g_app_info_get_type (), GAppInfo));
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = g_utf8_strdown (_tmp0_, (gssize) -1);
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _tmp1_;
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = g_app_info_get_name (G_TYPE_CHECK_INSTANCE_CAST (b, g_app_info_get_type (), GAppInfo));
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1);
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = _tmp4_;
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = (gint64) g_utf8_collate (_tmp2_, _tmp5_);
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp5_);
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp2_);
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = _tmp6_;
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 799 "DesktopIntegration.c"
-}
-
-
-static gint64
-_desktop_integration_app_info_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = desktop_integration_app_info_comparator (a, b);
-#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 812 "DesktopIntegration.c"
-}
-
-
-static void
-_g_object_unref0_ (gpointer var)
-{
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- (var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
-#line 821 "DesktopIntegration.c"
-}
-
-
-static inline void
-_g_list_free__g_object_unref0_ (GList* self)
-{
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
-#line 830 "DesktopIntegration.c"
-}
-
-
-SortedList*
-desktop_integration_get_apps_for_mime_types (gchar** mime_types,
- int mime_types_length1)
-{
- SortedList* result = NULL;
- SortedList* external_apps = NULL;
- SortedList* _tmp0_;
-#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = sorted_list_new (g_app_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _desktop_integration_app_info_comparator_comparator, NULL);
-#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_apps = _tmp0_;
-#line 56 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (mime_types_length1 == 0) {
-#line 57 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = external_apps;
-#line 57 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 851 "DesktopIntegration.c"
- }
- {
- gchar** mime_type_collection = NULL;
- gint mime_type_collection_length1 = 0;
- gint _mime_type_collection_size_ = 0;
- gint mime_type_it = 0;
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- mime_type_collection = mime_types;
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- mime_type_collection_length1 = mime_types_length1;
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- for (mime_type_it = 0; mime_type_it < mime_types_length1; mime_type_it = mime_type_it + 1) {
-#line 864 "DesktopIntegration.c"
- gchar* _tmp1_;
- gchar* mime_type = NULL;
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = g_strdup (mime_type_collection[mime_type_it]);
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- mime_type = _tmp1_;
-#line 871 "DesktopIntegration.c"
- {
- gchar* content_type = NULL;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- const gchar* _tmp5_;
- GList* _tmp6_;
-#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = mime_type;
-#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = g_content_type_from_mime_type (_tmp2_);
-#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- content_type = _tmp3_;
-#line 63 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = content_type;
-#line 63 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp4_ == NULL) {
-#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (content_type);
-#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (mime_type);
-#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- break;
-#line 895 "DesktopIntegration.c"
- }
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = content_type;
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = g_app_info_get_all_for_type (_tmp5_);
-#line 901 "DesktopIntegration.c"
- {
- GList* external_app_collection = NULL;
- GList* external_app_it = NULL;
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_app_collection = _tmp6_;
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- for (external_app_it = external_app_collection; external_app_it != NULL; external_app_it = external_app_it->next) {
-#line 909 "DesktopIntegration.c"
- GAppInfo* _tmp7_;
- GAppInfo* external_app = NULL;
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = _g_object_ref0 ((GAppInfo*) external_app_it->data);
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_app = _tmp7_;
-#line 916 "DesktopIntegration.c"
- {
- gboolean already_contains = FALSE;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_;
-#line 68 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- already_contains = FALSE;
-#line 923 "DesktopIntegration.c"
- {
- GeeIterator* _app_it = NULL;
- SortedList* _tmp8_;
- GeeIterator* _tmp9_;
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = external_apps;
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _app_it = _tmp9_;
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- while (TRUE) {
-#line 936 "DesktopIntegration.c"
- GeeIterator* _tmp10_;
- GAppInfo* app = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- GAppInfo* _tmp13_;
- const gchar* _tmp14_;
- GAppInfo* _tmp15_;
- const gchar* _tmp16_;
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = _app_it;
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- break;
-#line 951 "DesktopIntegration.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = _app_it;
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- app = (GAppInfo*) _tmp12_;
-#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = app;
-#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = g_app_info_get_name (_tmp13_);
-#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = external_app;
-#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = g_app_info_get_name (_tmp15_);
-#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (g_strcmp0 (_tmp14_, _tmp16_) == 0) {
-#line 72 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- already_contains = TRUE;
-#line 73 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (app);
-#line 73 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- break;
-#line 975 "DesktopIntegration.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (app);
-#line 979 "DesktopIntegration.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_app_it);
-#line 983 "DesktopIntegration.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = already_contains;
-#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp18_) {
-#line 989 "DesktopIntegration.c"
- GAppInfo* _tmp19_;
- const gchar* _tmp20_;
-#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = external_app;
-#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = g_app_info_get_name (_tmp19_);
-#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = !string_contains (_tmp20_, RESOURCES_APP_TITLE);
-#line 998 "DesktopIntegration.c"
- } else {
-#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = FALSE;
-#line 1002 "DesktopIntegration.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp17_) {
-#line 1006 "DesktopIntegration.c"
- SortedList* _tmp21_;
- GAppInfo* _tmp22_;
-#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = external_apps;
-#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = external_app;
-#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_);
-#line 1015 "DesktopIntegration.c"
- }
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (external_app);
-#line 1019 "DesktopIntegration.c"
- }
- }
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- __g_list_free__g_object_unref0_0 (external_app_collection);
-#line 1024 "DesktopIntegration.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (content_type);
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (mime_type);
-#line 1030 "DesktopIntegration.c"
- }
- }
- }
-#line 83 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = external_apps;
-#line 83 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 1038 "DesktopIntegration.c"
-}
-
-
-gchar*
-desktop_integration_get_app_open_command (GAppInfo* app_info)
-{
- gchar* result = NULL;
- gchar* str = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_ = NULL;
- const gchar* _tmp3_;
- gchar* _tmp6_;
-#line 86 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_val_if_fail (G_IS_APP_INFO (app_info), NULL);
-#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = g_app_info_get_commandline (app_info);
-#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- str = _tmp1_;
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = str;
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp3_ != NULL) {
-#line 1064 "DesktopIntegration.c"
- const gchar* _tmp4_;
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = str;
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _tmp4_;
-#line 1070 "DesktopIntegration.c"
- } else {
- const gchar* _tmp5_;
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = g_app_info_get_executable (app_info);
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _tmp5_;
-#line 1077 "DesktopIntegration.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = g_strdup (_tmp2_);
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = _tmp6_;
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (str);
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 1087 "DesktopIntegration.c"
-}
-
-
-gboolean
-desktop_integration_is_send_to_installed (void)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 93 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = desktop_integration_send_to_installed;
-#line 93 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = _tmp0_;
-#line 93 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 1102 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_files_send_to (GFile** files,
- int files_length1)
-{
- gchar** argv = NULL;
- gchar** _tmp0_;
- gint argv_length1;
- gint _argv_size_;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 97 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (files_length1 == 0) {
-#line 98 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1123 "DesktopIntegration.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = g_new0 (gchar*, (files_length1 + 1) + 1);
-#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- argv = _tmp0_;
-#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- argv_length1 = files_length1 + 1;
-#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _argv_size_ = argv_length1;
-#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = argv;
-#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1__length1 = argv_length1;
-#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = g_strdup (DESKTOP_INTEGRATION_SENDTO_EXEC);
-#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp1_[0]);
-#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_[0] = _tmp2_;
-#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _tmp1_[0];
-#line 1145 "DesktopIntegration.c"
- {
- gint ctr = 0;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- ctr = 0;
-#line 1150 "DesktopIntegration.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = TRUE;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- while (TRUE) {
-#line 1157 "DesktopIntegration.c"
- gint _tmp6_;
- gchar** _tmp7_;
- gint _tmp7__length1;
- gint _tmp8_;
- gint _tmp9_;
- GFile* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp4_) {
-#line 1168 "DesktopIntegration.c"
- gint _tmp5_;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = ctr;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- ctr = _tmp5_ + 1;
-#line 1174 "DesktopIntegration.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = FALSE;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = ctr;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!(_tmp6_ < files_length1)) {
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- break;
-#line 1184 "DesktopIntegration.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = argv;
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7__length1 = argv_length1;
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = ctr;
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = ctr;
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = files[_tmp9_];
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = g_file_get_path (_tmp10_);
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp7_[_tmp8_ + 1]);
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_[_tmp8_ + 1] = _tmp11_;
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = _tmp7_[_tmp8_ + 1];
-#line 1204 "DesktopIntegration.c"
- }
- }
- }
- {
- AppWindow* _tmp13_;
- AppWindow* _tmp14_;
- GPid child_pid = 0;
- gchar** _tmp15_;
- gint _tmp15__length1;
- GPid _tmp16_ = 0;
- AppWindow* _tmp17_;
- AppWindow* _tmp18_;
-#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = app_window_get_instance ();
-#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = _tmp13_;
-#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow));
-#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp14_);
-#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = argv;
-#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15__length1 = argv_length1;
-#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_spawn_async ("/", _tmp15_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp16_, &_inner_error_);
-#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- child_pid = _tmp16_;
-#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1235 "DesktopIntegration.c"
- goto __catch577_g_error;
- }
-#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = app_window_get_instance ();
-#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = _tmp17_;
-#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PAGE_WINDOW, PageWindow));
-#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp18_);
-#line 1246 "DesktopIntegration.c"
- }
- goto __finally577;
- __catch577_g_error:
- {
- GError* err = NULL;
- AppWindow* _tmp19_;
- AppWindow* _tmp20_;
- GError* _tmp21_;
- const gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
-#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- err = _inner_error_;
-#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _inner_error_ = NULL;
-#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = app_window_get_instance ();
-#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = _tmp19_;
-#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PAGE_WINDOW, PageWindow));
-#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp20_);
-#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = err;
-#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = _tmp21_->message;
-#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp23_ = g_strdup_printf (_ ("Unable to launch Nautilus Send-To: %s"), _tmp22_);
-#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp24_ = _tmp23_;
-#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- app_window_error_message (_tmp24_, NULL);
-#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp24_);
-#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_error_free0 (err);
-#line 1284 "DesktopIntegration.c"
- }
- __finally577:
-#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.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 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_clear_error (&_inner_error_);
-#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1297 "DesktopIntegration.c"
- }
-#line 96 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 1301 "DesktopIntegration.c"
-}
-
-
-static void
-_desktop_integration_on_send_to_export_completed_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self)
-{
-#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_on_send_to_export_completed (exporter, is_cancelled);
-#line 1312 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_send_to (GeeCollection* media)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- gint _tmp2_;
- ExportDialog* dialog = NULL;
- ExportDialog* _tmp4_;
- gboolean _tmp5_ = FALSE;
- gint scale = 0;
- ScaleConstraint constraint = 0;
- ExportFormatParameters export_params = {0};
- ExportFormatParameters _tmp7_ = {0};
- ExportDialog* _tmp8_;
- gint _tmp9_ = 0;
- ScaleConstraint _tmp10_ = 0;
- gboolean _tmp11_;
- ScaleConstraint _tmp12_;
- gint _tmp13_;
- Scaling _tmp14_ = {0};
- ExportFormatParameters _tmp15_;
- Exporter* _tmp16_;
- Exporter* _tmp17_;
- ExporterUI* _tmp18_;
- ExporterUI* _tmp19_;
-#line 125 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = gee_collection_get_size (media);
-#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _tmp1_;
-#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp2_ == 0) {
-#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = TRUE;
-#line 1351 "DesktopIntegration.c"
- } else {
- ExporterUI* _tmp3_;
-#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = desktop_integration_send_to_exporter;
-#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = _tmp3_ != NULL;
-#line 1358 "DesktopIntegration.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp0_) {
-#line 127 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1364 "DesktopIntegration.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = export_dialog_new (_ ("Send To"));
-#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_object_ref_sink (_tmp4_);
-#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- dialog = _tmp4_;
-#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (media_source_collection_has_video (media)) {
-#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = !media_source_collection_has_photo (media);
-#line 1376 "DesktopIntegration.c"
- } else {
-#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = FALSE;
-#line 1380 "DesktopIntegration.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp5_) {
-#line 1384 "DesktopIntegration.c"
- ExporterUI* _tmp6_;
-#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), _desktop_integration_on_send_to_export_completed_exporter_completion_callback, NULL, TRUE);
-#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _exporter_ui_unref0 (desktop_integration_send_to_exporter);
-#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_send_to_exporter = _tmp6_;
-#line 137 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (dialog);
-#line 137 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1396 "DesktopIntegration.c"
- }
-#line 142 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- export_format_parameters_current (&_tmp7_);
-#line 142 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- export_params = _tmp7_;
-#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = dialog;
-#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = export_dialog_execute (_tmp8_, &_tmp9_, &_tmp10_, &export_params);
-#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- scale = _tmp9_;
-#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- constraint = _tmp10_;
-#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp11_) {
-#line 144 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (dialog);
-#line 144 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1416 "DesktopIntegration.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = constraint;
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = scale;
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- scaling_for_constraint (_tmp12_, _tmp13_, FALSE, &_tmp14_);
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = export_params;
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = exporter_new_for_temp_file (media, &_tmp14_, &_tmp15_);
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = _tmp16_;
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = exporter_ui_new (_tmp17_);
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _exporter_ui_unref0 (desktop_integration_send_to_exporter);
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_send_to_exporter = _tmp18_;
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp17_);
-#line 148 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = desktop_integration_send_to_exporter;
-#line 148 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- exporter_ui_export (_tmp19_, _desktop_integration_on_send_to_export_completed_exporter_completion_callback, NULL);
-#line 125 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (dialog);
-#line 1444 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_on_send_to_export_completed (Exporter* exporter,
- gboolean is_cancelled)
-{
-#line 151 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (IS_EXPORTER (exporter));
-#line 152 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!is_cancelled) {
-#line 1456 "DesktopIntegration.c"
- gint _tmp0_;
- GFile** _tmp1_;
- GFile** _tmp2_;
- gint _tmp2__length1;
-#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = exporter_get_exported_files (exporter, &_tmp0_);
-#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _tmp1_;
-#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2__length1 = _tmp0_;
-#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_files_send_to (_tmp2_, _tmp0_);
-#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_object_unref), NULL);
-#line 1471 "DesktopIntegration.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _exporter_ui_unref0 (desktop_integration_send_to_exporter);
-#line 155 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_send_to_exporter = NULL;
-#line 1477 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_set_background (Photo* photo,
- gboolean desktop,
- gboolean screensaver)
-{
- PhotoFileFormat file_format = 0;
- GFile* save_as = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- PhotoFileFormat _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GFile* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gboolean _tmp14_;
- GFile* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- GError * _inner_error_ = NULL;
-#line 158 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 161 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file_format = photo_get_best_export_file_format (photo);
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = app_dirs_get_data_subdir ("wallpaper", NULL);
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = _tmp0_;
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = file_format;
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = photo_file_format_get_default_basename (_tmp2_, "wallpaper");
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = _tmp3_;
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = g_file_get_child (_tmp1_, _tmp4_);
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = _tmp5_;
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp4_);
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp1_);
-#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- save_as = _tmp6_;
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = _tmp7_;
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = configuration_facade_get_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = _tmp9_;
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = save_as;
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = g_file_get_path (_tmp11_);
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = _tmp12_;
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = g_strcmp0 (_tmp10_, _tmp13_) == 0;
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp13_);
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp10_);
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp8_);
-#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp14_) {
-#line 1555 "DesktopIntegration.c"
- GFile* _tmp15_;
- GFile* _tmp16_;
- PhotoFileFormat _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- GFile* _tmp20_;
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = app_dirs_get_data_subdir ("wallpaper", NULL);
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = _tmp15_;
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = file_format;
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = photo_file_format_get_default_basename (_tmp17_, "wallpaper_alt");
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = _tmp18_;
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = g_file_get_child (_tmp16_, _tmp19_);
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (save_as);
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- save_as = _tmp20_;
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp19_);
-#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp16_);
-#line 1582 "DesktopIntegration.c"
- }
- {
- GFile* _tmp21_;
- Scaling _tmp22_ = {0};
- PhotoFileFormat _tmp23_;
-#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = save_as;
-#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- scaling_for_original (&_tmp22_);
-#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp23_ = file_format;
-#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- photo_export (photo, _tmp21_, &_tmp22_, JPEG_QUALITY_HIGH, _tmp23_, FALSE, TRUE, &_inner_error_);
-#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1598 "DesktopIntegration.c"
- goto __catch578_g_error;
- }
- }
- goto __finally578;
- __catch578_g_error:
- {
- GError* err = NULL;
- GFile* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- GError* _tmp27_;
- const gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
-#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- err = _inner_error_;
-#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _inner_error_ = NULL;
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp24_ = save_as;
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp25_ = g_file_get_path (_tmp24_);
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp26_ = _tmp25_;
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp27_ = err;
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp28_ = _tmp27_->message;
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp29_ = g_strdup_printf (_ ("Unable to export background to %s: %s"), _tmp26_, _tmp28_);
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp30_ = _tmp29_;
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- app_window_error_message (_tmp30_, NULL);
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp30_);
-#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp26_);
-#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_error_free0 (err);
-#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (save_as);
-#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1643 "DesktopIntegration.c"
- }
- __finally578:
-#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (save_as);
-#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.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 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_clear_error (&_inner_error_);
-#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1656 "DesktopIntegration.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (desktop) {
-#line 1660 "DesktopIntegration.c"
- ConfigFacade* _tmp31_;
- ConfigFacade* _tmp32_;
- GFile* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
-#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp31_ = config_facade_get_instance ();
-#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp32_ = _tmp31_;
-#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp33_ = save_as;
-#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp34_ = g_file_get_path (_tmp33_);
-#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp35_ = _tmp34_;
-#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- configuration_facade_set_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp35_);
-#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp35_);
-#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp32_);
-#line 1682 "DesktopIntegration.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (screensaver) {
-#line 1686 "DesktopIntegration.c"
- ConfigFacade* _tmp36_;
- ConfigFacade* _tmp37_;
- GFile* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
-#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp36_ = config_facade_get_instance ();
-#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp37_ = _tmp36_;
-#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp38_ = save_as;
-#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp39_ = g_file_get_path (_tmp38_);
-#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp40_ = _tmp39_;
-#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- configuration_facade_set_screensaver (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp40_);
-#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp40_);
-#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp37_);
-#line 1708 "DesktopIntegration.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp41_ = save_as;
-#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp42_ = g_file_get_parse_name (_tmp41_);
-#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp43_ = _tmp42_;
-#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_chmod (_tmp43_, 0644);
-#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp43_);
-#line 158 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (save_as);
-#line 1722 "DesktopIntegration.c"
-}
-
-
-DesktopIntegrationBackgroundSlideshowXMLBuilder*
-desktop_integration_background_slideshow_xml_builder_construct (GType object_type,
- GFile* destination,
- gdouble duration,
- gdouble transition)
-{
- DesktopIntegrationBackgroundSlideshowXMLBuilder* self = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GFile* _tmp7_;
-#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_val_if_fail (G_IS_FILE (destination), NULL);
-#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self = (DesktopIntegrationBackgroundSlideshowXMLBuilder*) g_type_create_instance (object_type);
-#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = _g_object_ref0 (destination);
-#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->destination);
-#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->destination = _tmp0_;
-#line 204 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->duration = duration;
-#line 205 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->transition = transition;
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = g_file_get_parent (destination);
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _tmp1_;
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = g_file_get_basename (destination);
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = _tmp3_;
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = g_strconcat (_tmp4_, ".tmp", NULL);
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = _tmp5_;
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = g_file_get_child (_tmp2_, _tmp6_);
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->tmp_file);
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->tmp_file = _tmp7_;
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp6_);
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp4_);
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp2_);
-#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return self;
-#line 1781 "DesktopIntegration.c"
-}
-
-
-DesktopIntegrationBackgroundSlideshowXMLBuilder*
-desktop_integration_background_slideshow_xml_builder_new (GFile* destination,
- gdouble duration,
- gdouble transition)
-{
-#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return desktop_integration_background_slideshow_xml_builder_construct (DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, destination, duration, transition);
-#line 1792 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GError** error)
-{
- GFileOutputStream* _tmp0_ = NULL;
- GFile* _tmp1_;
- GFileOutputStream* _tmp2_;
- GDataOutputStream* _tmp3_;
- GDataOutputStream* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 210 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self));
-#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = self->priv->tmp_file;
-#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = g_file_replace (_tmp1_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &_inner_error_);
-#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = _tmp2_;
-#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1820 "DesktopIntegration.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _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"
- self->priv->outs = _tmp3_;
-#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = self->priv->outs;
-#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp4_, "<background>\n", NULL, &_inner_error_);
-#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp0_);
-#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1840 "DesktopIntegration.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp0_);
-#line 1844 "DesktopIntegration.c"
-}
-
-
-static void
-desktop_integration_background_slideshow_xml_builder_write_transition (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GFile* from,
- GFile* to,
- GError** error)
-{
- GDataOutputStream* _tmp0_;
- GDataOutputStream* _tmp1_;
- gdouble _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GDataOutputStream* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GDataOutputStream* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GDataOutputStream* _tmp19_;
- GError * _inner_error_ = NULL;
-#line 215 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self));
-#line 215 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (G_IS_FILE (from));
-#line 215 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (G_IS_FILE (to));
-#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = self->priv->outs;
-#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp0_, " <transition>\n", NULL, &_inner_error_);
-#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1891 "DesktopIntegration.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = self->priv->outs;
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = self->priv->transition;
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = g_strdup_printf (" <duration>%2.2f</duration>\n", _tmp2_);
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = _tmp3_;
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp1_, _tmp4_, NULL, &_inner_error_);
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp4_);
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1911 "DesktopIntegration.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = self->priv->outs;
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = g_file_get_path (from);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = _tmp6_;
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = g_markup_escape_text (_tmp7_, (gssize) -1);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = _tmp8_;
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = g_strdup_printf (" <from>%s</from>\n", _tmp9_);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = _tmp10_;
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp5_, _tmp11_, NULL, &_inner_error_);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp11_);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp9_);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp7_);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1941 "DesktopIntegration.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = self->priv->outs;
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = g_file_get_path (to);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = _tmp13_;
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = g_markup_escape_text (_tmp14_, (gssize) -1);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = _tmp15_;
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = g_strdup_printf (" <to>%s</to>\n", _tmp16_);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = _tmp17_;
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp12_, _tmp18_, NULL, &_inner_error_);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp18_);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp16_);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp14_);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1971 "DesktopIntegration.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = self->priv->outs;
-#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp19_, " </transition>\n", NULL, &_inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 1983 "DesktopIntegration.c"
- }
-}
-
-
-static void
-desktop_integration_background_slideshow_xml_builder_write_static (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GFile* file,
- GError** error)
-{
- GDataOutputStream* _tmp0_;
- GDataOutputStream* _tmp1_;
- gdouble _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GDataOutputStream* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GDataOutputStream* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 223 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self));
-#line 223 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = self->priv->outs;
-#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp0_, " <static>\n", NULL, &_inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2021 "DesktopIntegration.c"
- }
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = self->priv->outs;
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = self->priv->duration;
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = g_strdup_printf (" <duration>%2.2f</duration>\n", _tmp2_);
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = _tmp3_;
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp1_, _tmp4_, NULL, &_inner_error_);
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp4_);
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2041 "DesktopIntegration.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = self->priv->outs;
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = g_file_get_path (file);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = _tmp6_;
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = g_markup_escape_text (_tmp7_, (gssize) -1);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = _tmp8_;
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = g_strdup_printf (" <file>%s</file>\n", _tmp9_);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = _tmp10_;
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp5_, _tmp11_, NULL, &_inner_error_);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp11_);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp9_);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp7_);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2071 "DesktopIntegration.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = self->priv->outs;
-#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp12_, " </static>\n", NULL, &_inner_error_);
-#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2083 "DesktopIntegration.c"
- }
-}
-
-
-void
-desktop_integration_background_slideshow_xml_builder_add_photo (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GFile* file,
- GError** error)
-{
- GDataOutputStream* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp3_;
- GFile* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 230 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self));
-#line 230 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 231 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = self->priv->outs;
-#line 231 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _vala_assert (_tmp0_ != NULL, "outs != null");
-#line 233 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = self->priv->first_file;
-#line 233 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp1_ == NULL) {
-#line 2110 "DesktopIntegration.c"
- GFile* _tmp2_;
-#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _g_object_ref0 (file);
-#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->first_file);
-#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->first_file = _tmp2_;
-#line 2118 "DesktopIntegration.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = self->priv->last_file;
-#line 236 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp3_ != NULL) {
-#line 2124 "DesktopIntegration.c"
- GFile* _tmp4_;
-#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = self->priv->last_file;
-#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_write_transition (self, _tmp4_, file, &_inner_error_);
-#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2136 "DesktopIntegration.c"
- }
- }
-#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_write_static (self, file, &_inner_error_);
-#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2147 "DesktopIntegration.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = _g_object_ref0 (file);
-#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->last_file);
-#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->last_file = _tmp5_;
-#line 2155 "DesktopIntegration.c"
-}
-
-
-GFile*
-desktop_integration_background_slideshow_xml_builder_close (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
- GError** error)
-{
- GFile* result = NULL;
- GDataOutputStream* _tmp0_;
- gboolean _tmp1_ = FALSE;
- GFile* _tmp2_;
- GDataOutputStream* _tmp6_;
- GDataOutputStream* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- GFile* _tmp13_;
- GFile* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 244 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_val_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self), NULL);
-#line 245 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = self->priv->outs;
-#line 245 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp0_ == NULL) {
-#line 246 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = NULL;
-#line 246 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 2187 "DesktopIntegration.c"
- }
-#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = self->priv->first_file;
-#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp2_ != NULL) {
-#line 2193 "DesktopIntegration.c"
- GFile* _tmp3_;
-#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = self->priv->last_file;
-#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = _tmp3_ != NULL;
-#line 2199 "DesktopIntegration.c"
- } else {
-#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = FALSE;
-#line 2203 "DesktopIntegration.c"
- }
-#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp1_) {
-#line 2207 "DesktopIntegration.c"
- GFile* _tmp4_;
- GFile* _tmp5_;
-#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = self->priv->last_file;
-#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = self->priv->first_file;
-#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_write_transition (self, _tmp4_, _tmp5_, &_inner_error_);
-#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return NULL;
-#line 2222 "DesktopIntegration.c"
- }
- }
-#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = self->priv->outs;
-#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp6_, "</background>\n", NULL, &_inner_error_);
-#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return NULL;
-#line 2235 "DesktopIntegration.c"
- }
-#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_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"
- g_propagate_error (error, _inner_error_);
-#line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return NULL;
-#line 2247 "DesktopIntegration.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->outs);
-#line 255 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->outs = NULL;
-#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = self->priv->tmp_file;
-#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = self->priv->destination;
-#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_file_move (_tmp8_, _tmp9_, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &_inner_error_);
-#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_propagate_error (error, _inner_error_);
-#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return NULL;
-#line 2265 "DesktopIntegration.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = self->priv->destination;
-#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = g_file_get_parse_name (_tmp10_);
-#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = _tmp11_;
-#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_chmod (_tmp12_, 0644);
-#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp12_);
-#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = self->priv->destination;
-#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = _tmp14_;
-#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return result;
-#line 2285 "DesktopIntegration.c"
-}
-
-
-static void
-desktop_integration_value_background_slideshow_xml_builder_init (GValue* value)
-{
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- value->data[0].v_pointer = NULL;
-#line 2294 "DesktopIntegration.c"
-}
-
-
-static void
-desktop_integration_value_background_slideshow_xml_builder_free_value (GValue* value)
-{
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (value->data[0].v_pointer) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_unref (value->data[0].v_pointer);
-#line 2305 "DesktopIntegration.c"
- }
-}
-
-
-static void
-desktop_integration_value_background_slideshow_xml_builder_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (src_value->data[0].v_pointer) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- dest_value->data[0].v_pointer = desktop_integration_background_slideshow_xml_builder_ref (src_value->data[0].v_pointer);
-#line 2318 "DesktopIntegration.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2322 "DesktopIntegration.c"
- }
-}
-
-
-static gpointer
-desktop_integration_value_background_slideshow_xml_builder_peek_pointer (const GValue* value)
-{
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return value->data[0].v_pointer;
-#line 2332 "DesktopIntegration.c"
-}
-
-
-static gchar*
-desktop_integration_value_background_slideshow_xml_builder_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (collect_values[0].v_pointer) {
-#line 2344 "DesktopIntegration.c"
- DesktopIntegrationBackgroundSlideshowXMLBuilder * object;
- object = collect_values[0].v_pointer;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2351 "DesktopIntegration.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.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 2355 "DesktopIntegration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- value->data[0].v_pointer = desktop_integration_background_slideshow_xml_builder_ref (object);
-#line 2359 "DesktopIntegration.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- value->data[0].v_pointer = NULL;
-#line 2363 "DesktopIntegration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return NULL;
-#line 2367 "DesktopIntegration.c"
-}
-
-
-static gchar*
-desktop_integration_value_background_slideshow_xml_builder_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- DesktopIntegrationBackgroundSlideshowXMLBuilder ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!object_p) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2383 "DesktopIntegration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!value->data[0].v_pointer) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- *object_p = NULL;
-#line 2389 "DesktopIntegration.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- *object_p = value->data[0].v_pointer;
-#line 2393 "DesktopIntegration.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- *object_p = desktop_integration_background_slideshow_xml_builder_ref (value->data[0].v_pointer);
-#line 2397 "DesktopIntegration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return NULL;
-#line 2401 "DesktopIntegration.c"
-}
-
-
-GParamSpec*
-desktop_integration_param_spec_background_slideshow_xml_builder (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder* spec;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_val_if_fail (g_type_is_a (object_type, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER), NULL);
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return G_PARAM_SPEC (spec);
-#line 2421 "DesktopIntegration.c"
-}
-
-
-gpointer
-desktop_integration_value_get_background_slideshow_xml_builder (const GValue* value)
-{
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER), NULL);
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return value->data[0].v_pointer;
-#line 2432 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_value_set_background_slideshow_xml_builder (GValue* value,
- gpointer v_object)
-{
- DesktopIntegrationBackgroundSlideshowXMLBuilder * old;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER));
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- old = value->data[0].v_pointer;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (v_object) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER));
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- value->data[0].v_pointer = v_object;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_ref (value->data[0].v_pointer);
-#line 2455 "DesktopIntegration.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- value->data[0].v_pointer = NULL;
-#line 2459 "DesktopIntegration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (old) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_unref (old);
-#line 2465 "DesktopIntegration.c"
- }
-}
-
-
-void
-desktop_integration_value_take_background_slideshow_xml_builder (GValue* value,
- gpointer v_object)
-{
- DesktopIntegrationBackgroundSlideshowXMLBuilder * old;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER));
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- old = value->data[0].v_pointer;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (v_object) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER));
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- value->data[0].v_pointer = v_object;
-#line 2487 "DesktopIntegration.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- value->data[0].v_pointer = NULL;
-#line 2491 "DesktopIntegration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (old) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_unref (old);
-#line 2497 "DesktopIntegration.c"
- }
-}
-
-
-static void
-desktop_integration_background_slideshow_xml_builder_class_init (DesktopIntegrationBackgroundSlideshowXMLBuilderClass * klass)
-{
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_parent_class = g_type_class_peek_parent (klass);
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- ((DesktopIntegrationBackgroundSlideshowXMLBuilderClass *) klass)->finalize = desktop_integration_background_slideshow_xml_builder_finalize;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_type_class_add_private (klass, sizeof (DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate));
-#line 2511 "DesktopIntegration.c"
-}
-
-
-static void
-desktop_integration_background_slideshow_xml_builder_instance_init (DesktopIntegrationBackgroundSlideshowXMLBuilder * self)
-{
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv = DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_PRIVATE (self);
-#line 198 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->outs = NULL;
-#line 199 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->first_file = NULL;
-#line 200 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->last_file = NULL;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->ref_count = 1;
-#line 2528 "DesktopIntegration.c"
-}
-
-
-static void
-desktop_integration_background_slideshow_xml_builder_finalize (DesktopIntegrationBackgroundSlideshowXMLBuilder * obj)
-{
- DesktopIntegrationBackgroundSlideshowXMLBuilder * self;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilder);
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_signal_handlers_destroy (self);
-#line 194 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->destination);
-#line 197 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->tmp_file);
-#line 198 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->outs);
-#line 199 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->first_file);
-#line 200 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (self->priv->last_file);
-#line 2550 "DesktopIntegration.c"
-}
-
-
-GType
-desktop_integration_background_slideshow_xml_builder_get_type (void)
-{
- static volatile gsize desktop_integration_background_slideshow_xml_builder_type_id__volatile = 0;
- if (g_once_init_enter (&desktop_integration_background_slideshow_xml_builder_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { desktop_integration_value_background_slideshow_xml_builder_init, desktop_integration_value_background_slideshow_xml_builder_free_value, desktop_integration_value_background_slideshow_xml_builder_copy_value, desktop_integration_value_background_slideshow_xml_builder_peek_pointer, "p", desktop_integration_value_background_slideshow_xml_builder_collect_value, "p", desktop_integration_value_background_slideshow_xml_builder_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DesktopIntegrationBackgroundSlideshowXMLBuilderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) desktop_integration_background_slideshow_xml_builder_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DesktopIntegrationBackgroundSlideshowXMLBuilder), 0, (GInstanceInitFunc) desktop_integration_background_slideshow_xml_builder_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType desktop_integration_background_slideshow_xml_builder_type_id;
- desktop_integration_background_slideshow_xml_builder_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DesktopIntegrationBackgroundSlideshowXMLBuilder", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&desktop_integration_background_slideshow_xml_builder_type_id__volatile, desktop_integration_background_slideshow_xml_builder_type_id);
- }
- return desktop_integration_background_slideshow_xml_builder_type_id__volatile;
-}
-
-
-gpointer
-desktop_integration_background_slideshow_xml_builder_ref (gpointer instance)
-{
- DesktopIntegrationBackgroundSlideshowXMLBuilder * self;
- self = instance;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return instance;
-#line 2579 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_background_slideshow_xml_builder_unref (gpointer instance)
-{
- DesktopIntegrationBackgroundSlideshowXMLBuilder * self;
- self = instance;
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_CLASS (self)->finalize (self);
-#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2594 "DesktopIntegration.c"
- }
-}
-
-
-static void
-_desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self)
-{
-#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_on_desktop_slideshow_exported (exporter, is_cancelled);
-#line 2606 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_set_background_slideshow (GeeCollection* photos,
- gdouble duration,
- gdouble transition,
- gboolean desktop_background,
- gboolean screensaver)
-{
- ExporterUI* _tmp0_;
- GFile* wallpaper_dir = NULL;
- GFile* _tmp1_;
- GeeSet* exceptions = NULL;
- GeeHashSet* _tmp2_;
- GeeSet* _tmp3_;
- Exporter* exporter = NULL;
- GFile* _tmp8_;
- AppWindow* _tmp9_;
- AppWindow* _tmp10_;
- Scaling _tmp11_ = {0};
- ExportFormatParameters _tmp12_ = {0};
- Exporter* _tmp13_;
- Exporter* _tmp14_;
- Exporter* _tmp15_;
- ExporterUI* _tmp16_;
- ExporterUI* _tmp17_;
- GError * _inner_error_ = NULL;
-#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (GEE_IS_COLLECTION (photos));
-#line 267 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = desktop_integration_desktop_slideshow_exporter;
-#line 267 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp0_ != NULL) {
-#line 268 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2643 "DesktopIntegration.c"
- }
-#line 270 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_set_desktop_background = desktop_background;
-#line 271 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_set_screensaver = screensaver;
-#line 273 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = app_dirs_get_data_subdir ("wallpaper", NULL);
-#line 273 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- wallpaper_dir = _tmp1_;
-#line 275 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 275 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- exceptions = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_SET, GeeSet);
-#line 276 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = exceptions;
-#line 276 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME);
-#line 2661 "DesktopIntegration.c"
- {
- GFile* _tmp4_;
- GeeSet* _tmp5_;
-#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = wallpaper_dir;
-#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = exceptions;
-#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- delete_all_files (_tmp4_, _tmp5_, NULL, NULL, (guint64) 0, NULL, &_inner_error_);
-#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2673 "DesktopIntegration.c"
- goto __catch579_g_error;
- }
- }
- goto __finally579;
- __catch579_g_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- err = _inner_error_;
-#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _inner_error_ = NULL;
-#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = err;
-#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = _tmp6_->message;
-#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_warning ("DesktopIntegration.vala:280: Error attempting to clear wallpaper direc" \
-"tory: %s", _tmp7_);
-#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_error_free0 (err);
-#line 2695 "DesktopIntegration.c"
- }
- __finally579:
-#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (exceptions);
-#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (wallpaper_dir);
-#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.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 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_clear_error (&_inner_error_);
-#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2710 "DesktopIntegration.c"
- }
-#line 283 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_desktop_slideshow_duration = duration;
-#line 284 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_desktop_slideshow_transition = transition;
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = wallpaper_dir;
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = app_window_get_instance ();
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = _tmp9_;
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- scaling_to_fill_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_window_get_type (), GtkWindow), &_tmp11_);
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- export_format_parameters_current (&_tmp12_);
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = exporter_new (photos, _tmp8_, &_tmp11_, &_tmp12_, TRUE);
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = _tmp13_;
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp10_);
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- exporter = _tmp14_;
-#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = exporter;
-#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = exporter_ui_new (_tmp15_);
-#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _exporter_ui_unref0 (desktop_integration_desktop_slideshow_exporter);
-#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_desktop_slideshow_exporter = _tmp16_;
-#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = desktop_integration_desktop_slideshow_exporter;
-#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- exporter_ui_export (_tmp17_, _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback, NULL);
-#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (exporter);
-#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (exceptions);
-#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (wallpaper_dir);
-#line 2752 "DesktopIntegration.c"
-}
-
-
-void
-desktop_integration_on_desktop_slideshow_exported (Exporter* exporter,
- gboolean is_cancelled)
-{
- GFile* xml_file = NULL;
- DesktopIntegrationBackgroundSlideshowXMLBuilder* xml_builder = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- gdouble _tmp4_;
- gdouble _tmp5_;
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp6_;
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp7_;
- gboolean _tmp22_;
- gboolean _tmp28_;
- GError * _inner_error_ = NULL;
-#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_return_if_fail (IS_EXPORTER (exporter));
-#line 294 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _exporter_ui_unref0 (desktop_integration_desktop_slideshow_exporter);
-#line 294 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_desktop_slideshow_exporter = NULL;
-#line 296 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (is_cancelled) {
-#line 297 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2783 "DesktopIntegration.c"
- }
-#line 299 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- xml_file = NULL;
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = app_dirs_get_data_subdir ("wallpaper", NULL);
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = _tmp0_;
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = g_file_get_child (_tmp1_, DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME);
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _tmp2_;
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = desktop_integration_desktop_slideshow_duration;
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = desktop_integration_desktop_slideshow_transition;
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = desktop_integration_background_slideshow_xml_builder_new (_tmp3_, _tmp4_, _tmp5_);
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = _tmp6_;
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp3_);
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp1_);
-#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- xml_builder = _tmp7_;
-#line 2809 "DesktopIntegration.c"
- {
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp8_;
- gint _tmp9_;
- GFile** _tmp10_;
- GFile* _tmp14_ = NULL;
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp15_;
- GFile* _tmp16_;
- GFile* _tmp17_;
-#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = xml_builder;
-#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_open (_tmp8_, &_inner_error_);
-#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2824 "DesktopIntegration.c"
- goto __catch580_g_error;
- }
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = exporter_get_exported_files (exporter, &_tmp9_);
-#line 2829 "DesktopIntegration.c"
- {
- GFile** file_collection = NULL;
- gint file_collection_length1 = 0;
- gint _file_collection_size_ = 0;
- gint file_it = 0;
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file_collection = _tmp10_;
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file_collection_length1 = _tmp9_;
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- for (file_it = 0; file_it < _tmp9_; file_it = file_it + 1) {
-#line 2841 "DesktopIntegration.c"
- GFile* _tmp11_;
- GFile* file = NULL;
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = _g_object_ref0 (file_collection[file_it]);
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file = _tmp11_;
-#line 2848 "DesktopIntegration.c"
- {
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp12_;
- GFile* _tmp13_;
-#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = xml_builder;
-#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = file;
-#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_add_photo (_tmp12_, _tmp13_, &_inner_error_);
-#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (file);
-#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 2864 "DesktopIntegration.c"
- goto __catch580_g_error;
- }
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (file);
-#line 2869 "DesktopIntegration.c"
- }
- }
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file_collection = (_vala_array_free (file_collection, file_collection_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 2874 "DesktopIntegration.c"
- }
-#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = xml_builder;
-#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = desktop_integration_background_slideshow_xml_builder_close (_tmp15_, &_inner_error_);
-#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = _tmp16_;
-#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2884 "DesktopIntegration.c"
- goto __catch580_g_error;
- }
-#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = _tmp14_;
-#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = NULL;
-#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (xml_file);
-#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- xml_file = _tmp17_;
-#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp14_);
-#line 2897 "DesktopIntegration.c"
- }
- goto __finally580;
- __catch580_g_error:
- {
- GError* err = NULL;
- GError* _tmp18_;
- const gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
-#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- err = _inner_error_;
-#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _inner_error_ = NULL;
-#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = err;
-#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = _tmp18_->message;
-#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = g_strdup_printf (_ ("Unable to prepare desktop slideshow: %s"), _tmp19_);
-#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = _tmp20_;
-#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- app_window_error_message (_tmp21_, NULL);
-#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp21_);
-#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_error_free0 (err);
-#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _desktop_integration_background_slideshow_xml_builder_unref0 (xml_builder);
-#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (xml_file);
-#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2931 "DesktopIntegration.c"
- }
- __finally580:
-#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _desktop_integration_background_slideshow_xml_builder_unref0 (xml_builder);
-#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (xml_file);
-#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.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 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_clear_error (&_inner_error_);
-#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- return;
-#line 2946 "DesktopIntegration.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = desktop_integration_set_desktop_background;
-#line 317 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp22_) {
-#line 2952 "DesktopIntegration.c"
- ConfigFacade* _tmp23_;
- ConfigFacade* _tmp24_;
- GFile* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
-#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp23_ = config_facade_get_instance ();
-#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp24_ = _tmp23_;
-#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp25_ = xml_file;
-#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp26_ = g_file_get_path (_tmp25_);
-#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp27_ = _tmp26_;
-#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- configuration_facade_set_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp27_);
-#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp27_);
-#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp24_);
-#line 2974 "DesktopIntegration.c"
- }
-#line 320 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp28_ = desktop_integration_set_screensaver;
-#line 320 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp28_) {
-#line 2980 "DesktopIntegration.c"
- ConfigFacade* _tmp29_;
- ConfigFacade* _tmp30_;
- GFile* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
-#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp29_ = config_facade_get_instance ();
-#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp30_ = _tmp29_;
-#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp31_ = xml_file;
-#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp32_ = g_file_get_path (_tmp31_);
-#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp33_ = _tmp32_;
-#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- configuration_facade_set_screensaver (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp33_);
-#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp33_);
-#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp30_);
-#line 3002 "DesktopIntegration.c"
- }
-#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _desktop_integration_background_slideshow_xml_builder_unref0 (xml_builder);
-#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (xml_file);
-#line 3008 "DesktopIntegration.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Dialogs.c b/src/Dialogs.c
deleted file mode 100644
index ae9723a..0000000
--- a/src/Dialogs.c
+++ /dev/null
@@ -1,9032 +0,0 @@
-/* Dialogs.c generated by valac 0.40.4, the Vala compiler
- * generated from Dialogs.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* namespace for future migration of AppWindow alert and other question dialogs into single*/
-/* place: http://trac.yorba.org/ticket/3452*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_SAVED_SEARCH (saved_search_get_type ())
-#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch))
-#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass))
-#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH))
-#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH))
-#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass))
-
-typedef struct _SavedSearch SavedSearch;
-typedef struct _SavedSearchClass SavedSearchClass;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_BATCH_IMPORT_RESULT (batch_import_result_get_type ())
-#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult))
-#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT))
-#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT))
-#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-
-typedef struct _BatchImportResult BatchImportResult;
-typedef struct _BatchImportResultClass BatchImportResultClass;
-typedef struct _BatchImportResultPrivate BatchImportResultPrivate;
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-
-#define TYPE_IMPORT_RESULT (import_result_get_type ())
-
-#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ())
-#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile))
-#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE))
-#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE))
-#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-
-typedef struct _DuplicatedFile DuplicatedFile;
-typedef struct _DuplicatedFileClass DuplicatedFileClass;
-#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL)))
-
-#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ())
-#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams))
-#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-
-typedef struct _ImportUIQuestionParams ImportUIQuestionParams;
-typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass;
-typedef struct _ImportUIQuestionParamsPrivate ImportUIQuestionParamsPrivate;
-typedef struct _ImportUIParamSpecQuestionParams ImportUIParamSpecQuestionParams;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ())
-#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
-#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
-#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
-#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-
-typedef struct _ImportManifest ImportManifest;
-typedef struct _ImportManifestClass ImportManifestClass;
-typedef struct _ImportManifestPrivate ImportManifestPrivate;
-#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ())
-#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-
-typedef struct _TextEntryDialogMediator TextEntryDialogMediator;
-typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass;
-typedef struct _TextEntryDialogMediatorPrivate TextEntryDialogMediatorPrivate;
-
-#define TYPE_TEXT_ENTRY_DIALOG (text_entry_dialog_get_type ())
-#define TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialog))
-#define TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass))
-#define IS_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG))
-#define IS_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG))
-#define TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass))
-
-typedef struct _TextEntryDialog TextEntryDialog;
-typedef struct _TextEntryDialogClass TextEntryDialogClass;
-typedef struct _ParamSpecTextEntryDialogMediator ParamSpecTextEntryDialogMediator;
-
-#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ())
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-
-typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator;
-typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass;
-typedef struct _MultiTextEntryDialogMediatorPrivate MultiTextEntryDialogMediatorPrivate;
-
-#define TYPE_MULTI_TEXT_ENTRY_DIALOG (multi_text_entry_dialog_get_type ())
-#define MULTI_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialog))
-#define MULTI_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogClass))
-#define IS_MULTI_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG))
-#define MULTI_TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogClass))
-
-typedef struct _MultiTextEntryDialog MultiTextEntryDialog;
-typedef struct _MultiTextEntryDialogClass MultiTextEntryDialogClass;
-typedef struct _ParamSpecMultiTextEntryDialogMediator ParamSpecMultiTextEntryDialogMediator;
-
-#define TYPE_EVENT_RENAME_DIALOG (event_rename_dialog_get_type ())
-#define EVENT_RENAME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_RENAME_DIALOG, EventRenameDialog))
-#define EVENT_RENAME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_RENAME_DIALOG, EventRenameDialogClass))
-#define IS_EVENT_RENAME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_RENAME_DIALOG))
-#define IS_EVENT_RENAME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_RENAME_DIALOG))
-#define EVENT_RENAME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_RENAME_DIALOG, EventRenameDialogClass))
-
-typedef struct _EventRenameDialog EventRenameDialog;
-typedef struct _EventRenameDialogClass EventRenameDialogClass;
-typedef struct _EventRenameDialogPrivate EventRenameDialogPrivate;
-
-#define TYPE_EDIT_TITLE_DIALOG (edit_title_dialog_get_type ())
-#define EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialog))
-#define EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass))
-#define IS_EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_DIALOG))
-#define IS_EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_DIALOG))
-#define EDIT_TITLE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass))
-
-typedef struct _EditTitleDialog EditTitleDialog;
-typedef struct _EditTitleDialogClass EditTitleDialogClass;
-typedef struct _EditTitleDialogPrivate EditTitleDialogPrivate;
-
-#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ())
-#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog))
-#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG))
-#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG))
-#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-
-typedef struct _EditCommentDialog EditCommentDialog;
-typedef struct _EditCommentDialogClass EditCommentDialogClass;
-typedef struct _EditCommentDialogPrivate EditCommentDialogPrivate;
-
-#define TYPE_TAGS_DIALOG (tags_dialog_get_type ())
-#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog))
-#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass))
-#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG))
-#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG))
-#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass))
-
-typedef struct _TagsDialog TagsDialog;
-typedef struct _TagsDialogClass TagsDialogClass;
-typedef struct _TagsDialogPrivate TagsDialogPrivate;
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-
-#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ())
-#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog))
-#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
-#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG))
-#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG))
-#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
-
-typedef struct _AddTagsDialog AddTagsDialog;
-typedef struct _AddTagsDialogClass AddTagsDialogClass;
-typedef struct _AddTagsDialogPrivate AddTagsDialogPrivate;
-
-#define TYPE_MODIFY_TAGS_DIALOG (modify_tags_dialog_get_type ())
-#define MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog))
-#define MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass))
-#define IS_MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_DIALOG))
-#define IS_MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_DIALOG))
-#define MODIFY_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass))
-
-typedef struct _ModifyTagsDialog ModifyTagsDialog;
-typedef struct _ModifyTagsDialogClass ModifyTagsDialogClass;
-typedef struct _ModifyTagsDialogPrivate ModifyTagsDialogPrivate;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#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 (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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#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))
-#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG))
-#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG))
-#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass))
-
-typedef struct _ProgressDialog ProgressDialog;
-typedef struct _ProgressDialogClass ProgressDialogClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-struct _BatchImportResult {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportResultPrivate * priv;
- BatchImportJob* job;
- GFile* file;
- gchar* src_identifier;
- gchar* dest_identifier;
- ImportResult result;
- gchar* errmsg;
- DuplicatedFile* duplicate_of;
-};
-
-struct _BatchImportResultClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportResult *self);
-};
-
-struct _ImportUIQuestionParams {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ImportUIQuestionParamsPrivate * priv;
- gchar* question;
- gchar* yes_button;
- gchar* no_button;
-};
-
-struct _ImportUIQuestionParamsClass {
- GTypeClass parent_class;
- void (*finalize) (ImportUIQuestionParams *self);
-};
-
-struct _ImportUIParamSpecQuestionParams {
- GParamSpec parent_instance;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _ImportManifest {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ImportManifestPrivate * priv;
- GeeList* imported;
- GeeList* success;
- GeeList* camera_failed;
- GeeList* failed;
- GeeList* write_failed;
- GeeList* skipped_photos;
- GeeList* skipped_files;
- GeeList* aborted;
- GeeList* already_imported;
- GeeList* corrupt_files;
- GeeList* all;
- GTimer* timer;
-};
-
-struct _ImportManifestClass {
- GTypeClass parent_class;
- void (*finalize) (ImportManifest *self);
-};
-
-struct _TextEntryDialogMediator {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TextEntryDialogMediatorPrivate * priv;
-};
-
-struct _TextEntryDialogMediatorClass {
- GTypeClass parent_class;
- void (*finalize) (TextEntryDialogMediator *self);
- gboolean (*on_modify_validate) (TextEntryDialogMediator* self, const gchar* text);
-};
-
-struct _TextEntryDialogMediatorPrivate {
- TextEntryDialog* dialog;
-};
-
-typedef gboolean (*TextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data);
-struct _ParamSpecTextEntryDialogMediator {
- GParamSpec parent_instance;
-};
-
-struct _MultiTextEntryDialogMediator {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MultiTextEntryDialogMediatorPrivate * priv;
-};
-
-struct _MultiTextEntryDialogMediatorClass {
- GTypeClass parent_class;
- void (*finalize) (MultiTextEntryDialogMediator *self);
- gboolean (*on_modify_validate) (MultiTextEntryDialogMediator* self, const gchar* text);
-};
-
-struct _MultiTextEntryDialogMediatorPrivate {
- MultiTextEntryDialog* dialog;
-};
-
-typedef gboolean (*MultiTextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data);
-struct _ParamSpecMultiTextEntryDialogMediator {
- GParamSpec parent_instance;
-};
-
-struct _EventRenameDialog {
- TextEntryDialogMediator parent_instance;
- EventRenameDialogPrivate * priv;
-};
-
-struct _EventRenameDialogClass {
- TextEntryDialogMediatorClass parent_class;
- gchar* (*execute) (EventRenameDialog* self);
-};
-
-struct _EditTitleDialog {
- TextEntryDialogMediator parent_instance;
- EditTitleDialogPrivate * priv;
-};
-
-struct _EditTitleDialogClass {
- TextEntryDialogMediatorClass parent_class;
- gchar* (*execute) (EditTitleDialog* self);
-};
-
-struct _EditCommentDialog {
- MultiTextEntryDialogMediator parent_instance;
- EditCommentDialogPrivate * priv;
-};
-
-struct _EditCommentDialogClass {
- MultiTextEntryDialogMediatorClass parent_class;
- gchar* (*execute) (EditCommentDialog* self);
-};
-
-struct _TagsDialog {
- TextEntryDialogMediator parent_instance;
- TagsDialogPrivate * priv;
-};
-
-struct _TagsDialogClass {
- TextEntryDialogMediatorClass parent_class;
-};
-
-struct _AddTagsDialog {
- TagsDialog parent_instance;
- AddTagsDialogPrivate * priv;
-};
-
-struct _AddTagsDialogClass {
- TagsDialogClass parent_class;
-};
-
-struct _ModifyTagsDialog {
- TagsDialog parent_instance;
- ModifyTagsDialogPrivate * priv;
-};
-
-struct _ModifyTagsDialogClass {
- TagsDialogClass parent_class;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-
-extern GFile* export_ui_current_export_dir;
-GFile* export_ui_current_export_dir = NULL;
-static gpointer import_ui_question_params_parent_class = NULL;
-static gpointer text_entry_dialog_mediator_parent_class = NULL;
-static gpointer multi_text_entry_dialog_mediator_parent_class = NULL;
-static gpointer event_rename_dialog_parent_class = NULL;
-static gpointer edit_title_dialog_parent_class = NULL;
-static gpointer edit_comment_dialog_parent_class = NULL;
-static gpointer tags_dialog_parent_class = NULL;
-static gpointer add_tags_dialog_parent_class = NULL;
-static gpointer modify_tags_dialog_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType tag_get_type (void) G_GNUC_CONST;
-gboolean dialogs_confirm_delete_tag (Tag* tag);
-gint tag_get_sources_count (Tag* self);
-gchar* tag_get_user_visible_name (Tag* self);
-gboolean app_window_negate_affirm_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent);
-#define RESOURCES_DELETE_TAG_TITLE _ ("Delete Tag")
-GType saved_search_get_type (void) G_GNUC_CONST;
-gboolean dialogs_confirm_delete_saved_search (SavedSearch* search);
-gchar* data_object_get_name (DataObject* self);
-#define RESOURCES_DELETE_SAVED_SEARCH_DIALOG_TITLE _ ("Delete Search")
-gboolean dialogs_confirm_warn_developer_changed (gint number);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
-GFile* export_ui_choose_file (const gchar* current_file_basename);
-gboolean video_reader_is_supported_video_filename (const gchar* filename);
-#define RESOURCES_SAVE_LABEL _ ("_Save")
-GFile* export_ui_choose_dir (const gchar* user_title);
-#define RESOURCES_OK_LABEL _ ("_OK")
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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;
-void open_external_editor_error_dialog (GError* err,
- Photo* photo);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-GFile* media_source_get_master_file (MediaSource* self);
-gchar* resources_launch_editor_failed (GError* err);
-GtkResponseType export_error_dialog (GFile* dest,
- gboolean photos_remaining);
-GtkResponseType app_window_affirm_cancel_question (const gchar* message,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent);
-#define IMPORT_UI_REPORT_FAILURE_COUNT 4
-#define IMPORT_UI_SAVE_RESULTS_BUTTON_NAME _ ("Save Details…")
-#define IMPORT_UI_SAVE_RESULTS_FILE_CHOOSER_TITLE _ ("Save Details")
-#define IMPORT_UI_SAVE_RESULTS_RESPONSE_ID 1024
-gpointer batch_import_result_ref (gpointer instance);
-void batch_import_result_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_result (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_result (GValue* value,
- gpointer v_object);
-void value_take_batch_import_result (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_result (const GValue* value);
-GType batch_import_result_get_type (void) G_GNUC_CONST;
-gchar* import_ui_generate_import_failure_list (GeeList* failed,
- gboolean show_dest_id);
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-GType import_result_get_type (void) G_GNUC_CONST;
-GType duplicated_file_get_type (void) G_GNUC_CONST;
-gpointer import_ui_question_params_ref (gpointer instance);
-void import_ui_question_params_unref (gpointer instance);
-GParamSpec* import_ui_param_spec_question_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void import_ui_value_set_question_params (GValue* value,
- gpointer v_object);
-void import_ui_value_take_question_params (GValue* value,
- gpointer v_object);
-gpointer import_ui_value_get_question_params (const GValue* value);
-GType import_ui_question_params_get_type (void) G_GNUC_CONST;
-ImportUIQuestionParams* import_ui_question_params_new (const gchar* question,
- const gchar* yes_button,
- const gchar* no_button);
-ImportUIQuestionParams* import_ui_question_params_construct (GType object_type,
- const gchar* question,
- const gchar* yes_button,
- const gchar* no_button);
-static void import_ui_question_params_finalize (ImportUIQuestionParams * obj);
-gboolean import_ui_import_has_photos (GeeCollection* import_collection);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file);
-gboolean import_ui_import_has_videos (GeeCollection* import_collection);
-gboolean video_reader_is_supported_video_file (GFile* file);
-gchar* import_ui_get_media_specific_string (GeeCollection* import_collection,
- const gchar* photos_msg,
- const gchar* videos_msg,
- const gchar* both_msg,
- const gchar* neither_msg);
-gpointer import_manifest_ref (gpointer instance);
-void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_import_manifest (GValue* value,
- gpointer v_object);
-void value_take_import_manifest (GValue* value,
- gpointer v_object);
-gpointer value_get_import_manifest (const GValue* value);
-GType import_manifest_get_type (void) G_GNUC_CONST;
-gchar* import_ui_create_result_report_from_manifest (ImportManifest* manifest);
-#define RESOURCES_APP_VERSION _VERSION
-GFile* duplicated_file_get_file (DuplicatedFile* self);
-gboolean import_ui_report_manifest (ImportManifest* manifest,
- gboolean show_dest_id,
- ImportUIQuestionParams* question);
-void import_ui_save_import_results (GtkWindow* chooser_dialog_parent,
- const gchar* results_log);
-#define RESOURCES_SAVE_AS_LABEL _ ("Save _As")
-gpointer text_entry_dialog_mediator_ref (gpointer instance);
-void text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_text_entry_dialog_mediator (const GValue* value);
-GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType text_entry_dialog_get_type (void) G_GNUC_CONST;
-#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorPrivate))
-TextEntryDialogMediator* text_entry_dialog_mediator_construct (GType object_type,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text,
- GeeCollection* completion_list,
- const gchar* completion_delimiter);
-TextEntryDialog* text_entry_dialog_new (void);
-TextEntryDialog* text_entry_dialog_construct (GType object_type);
-void text_entry_dialog_setup (TextEntryDialog* self,
- TextEntryDialogOnModifyValidateType modify_validate,
- void* modify_validate_target,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text,
- GeeCollection* completion_list,
- const gchar* completion_delimiter);
-gboolean text_entry_dialog_mediator_on_modify_validate (TextEntryDialogMediator* self,
- const gchar* text);
-static gboolean _text_entry_dialog_mediator_on_modify_validate_text_entry_dialog_on_modify_validate_type (const gchar* text,
- gpointer self);
-static gboolean text_entry_dialog_mediator_real_on_modify_validate (TextEntryDialogMediator* self,
- const gchar* text);
-gchar* _text_entry_dialog_mediator_execute (TextEntryDialogMediator* self);
-gchar* text_entry_dialog_execute (TextEntryDialog* self);
-static void text_entry_dialog_mediator_finalize (TextEntryDialogMediator * obj);
-gpointer multi_text_entry_dialog_mediator_ref (gpointer instance);
-void multi_text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value);
-GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType multi_text_entry_dialog_get_type (void) G_GNUC_CONST;
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorPrivate))
-MultiTextEntryDialogMediator* multi_text_entry_dialog_mediator_construct (GType object_type,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text);
-MultiTextEntryDialog* multi_text_entry_dialog_new (void);
-MultiTextEntryDialog* multi_text_entry_dialog_construct (GType object_type);
-void multi_text_entry_dialog_setup (MultiTextEntryDialog* self,
- MultiTextEntryDialogOnModifyValidateType modify_validate,
- void* modify_validate_target,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text);
-gboolean multi_text_entry_dialog_mediator_on_modify_validate (MultiTextEntryDialogMediator* self,
- const gchar* text);
-static gboolean _multi_text_entry_dialog_mediator_on_modify_validate_multi_text_entry_dialog_on_modify_validate_type (const gchar* text,
- gpointer self);
-static gboolean multi_text_entry_dialog_mediator_real_on_modify_validate (MultiTextEntryDialogMediator* self,
- const gchar* text);
-gchar* _multi_text_entry_dialog_mediator_execute (MultiTextEntryDialogMediator* self);
-gchar* multi_text_entry_dialog_execute (MultiTextEntryDialog* self);
-static void multi_text_entry_dialog_mediator_finalize (MultiTextEntryDialogMediator * obj);
-gchar* build_alert_body_text (const gchar* primary_text,
- const gchar* secondary_text,
- gboolean should_escape);
-gchar* guarded_markup_escape_text (const gchar* plain);
-GType event_rename_dialog_get_type (void) G_GNUC_CONST;
-EventRenameDialog* event_rename_dialog_new (const gchar* event_name);
-EventRenameDialog* event_rename_dialog_construct (GType object_type,
- const gchar* event_name);
-gchar* event_rename_dialog_execute (EventRenameDialog* self);
-static gchar* event_rename_dialog_real_execute (EventRenameDialog* self);
-gchar* event_prep_event_name (const gchar* name);
-GType edit_title_dialog_get_type (void) G_GNUC_CONST;
-EditTitleDialog* edit_title_dialog_new (const gchar* photo_title);
-EditTitleDialog* edit_title_dialog_construct (GType object_type,
- const gchar* photo_title);
-gchar* edit_title_dialog_execute (EditTitleDialog* self);
-static gchar* edit_title_dialog_real_execute (EditTitleDialog* self);
-gchar* media_source_prep_title (const gchar* title);
-static gboolean edit_title_dialog_real_on_modify_validate (TextEntryDialogMediator* base,
- const gchar* text);
-GType edit_comment_dialog_get_type (void) G_GNUC_CONST;
-EditCommentDialog* edit_comment_dialog_new (const gchar* comment,
- gboolean is_event);
-EditCommentDialog* edit_comment_dialog_construct (GType object_type,
- const gchar* comment,
- gboolean is_event);
-gchar* edit_comment_dialog_execute (EditCommentDialog* self);
-static gchar* edit_comment_dialog_real_execute (EditCommentDialog* self);
-gchar* media_source_prep_comment (const gchar* comment);
-static gboolean edit_comment_dialog_real_on_modify_validate (MultiTextEntryDialogMediator* base,
- const gchar* text);
-GtkResponseType remove_from_library_dialog (GtkWindow* owner,
- const gchar* title,
- const gchar* user_message,
- gint count);
-GtkResponseType remove_from_filesystem_dialog (GtkWindow* owner,
- const gchar* title,
- const gchar* user_message);
-gboolean revert_editable_dialog (GtkWindow* owner,
- GeeCollection* photos);
-gboolean photo_has_editable (Photo* self);
-gboolean remove_offline_dialog (GtkWindow* owner,
- gint count);
-#define MAX_OBJECTS_DISPLAYED 3
-void multiple_object_error_dialog (GeeArrayList* objects,
- const gchar* message,
- const gchar* title);
-gchar* data_object_to_string (DataObject* self);
-GType tags_dialog_get_type (void) G_GNUC_CONST;
-TagsDialog* tags_dialog_construct (GType object_type,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text);
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void);
-GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self);
-GType add_tags_dialog_get_type (void) G_GNUC_CONST;
-AddTagsDialog* add_tags_dialog_new (void);
-AddTagsDialog* add_tags_dialog_construct (GType object_type);
-#define RESOURCES_ADD_TAGS_TITLE NC_ ("Dialog Title", "Add Tags")
-gchar** add_tags_dialog_execute (AddTagsDialog* self,
- int* result_length1);
-gchar** tag_prep_tag_names (gchar** names,
- int names_length1,
- int* result_length1);
-static gboolean add_tags_dialog_real_on_modify_validate (TextEntryDialogMediator* base,
- const gchar* text);
-#define TAG_PATH_SEPARATOR_STRING "/"
-GType modify_tags_dialog_get_type (void) G_GNUC_CONST;
-ModifyTagsDialog* modify_tags_dialog_new (MediaSource* source);
-ModifyTagsDialog* modify_tags_dialog_construct (GType object_type,
- MediaSource* source);
-#define RESOURCES_MODIFY_TAGS_LABEL _ ("Modify Tags")
-static gchar* modify_tags_dialog_get_initial_text (MediaSource* source);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self,
- MediaSource* source);
-GeeCollection* tag_get_terminal_tags (GeeCollection* tags);
-gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path);
-gchar* tag_get_path (Tag* self);
-GeeArrayList* modify_tags_dialog_execute (ModifyTagsDialog* self);
-gboolean is_string_empty (const gchar* s);
-gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self,
- gchar** names,
- int names_length1,
- int* result_length1);
-Tag* tag_for_path (const gchar* name);
-static gboolean modify_tags_dialog_real_on_modify_validate (TextEntryDialogMediator* base,
- const gchar* text);
-GtkResponseType copy_files_dialog (void);
-GType library_photo_get_type (void) G_GNUC_CONST;
-void remove_photos_from_library (GeeCollection* photos);
-void remove_from_app (GeeCollection* sources,
- const gchar* dialog_title,
- const gchar* progress_dialog_text);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-void media_source_collection_filter_media (GeeCollection* media,
- GeeCollection* photos,
- GeeCollection* videos);
-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);
-ProgressDialog* progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-gboolean progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop);
-static gboolean _progress_dialog_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self);
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-void media_source_collection_remove_from_app (MediaSourceCollection* self,
- GeeCollection* sources,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed);
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-void media_source_collection_delete_backing_files (MediaSourceCollection* self,
- GeeCollection* sources,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_deleted);
-void app_window_error_message_with_title (const gchar* title,
- const gchar* message,
- GtkWindow* parent,
- gboolean should_escape);
-void progress_dialog_close (ProgressDialog* self);
-void page_window_set_normal_cursor (PageWindow* self);
-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 gint _vala_array_length (gpointer array);
-
-
-gboolean
-dialogs_confirm_delete_tag (Tag* tag)
-{
- gboolean result = FALSE;
- gint count = 0;
- gint _tmp0_;
- gchar* msg = NULL;
- gint _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gint _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 11 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_TAG (tag), FALSE);
-#line 12 "/home/jens/Source/shotwell/src/Dialogs.vala"
- count = tag_get_sources_count (tag);
-#line 13 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = count;
-#line 13 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp0_ == 0) {
-#line 14 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = TRUE;
-#line 14 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1039 "Dialogs.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = count;
-#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = tag_get_user_visible_name (tag);
-#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = count;
-#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = g_strdup_printf (ngettext ("This will remove the tag “%s” from one photo. Continue?", "This will remove the tag “%s” from %d photos. Continue?", (gulong) _tmp1_), _tmp3_, _tmp4_);
-#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_;
-#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp3_);
-#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala"
- msg = _tmp6_;
-#line 20 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = msg;
-#line 20 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = app_window_negate_affirm_question (_tmp7_, _ ("_Cancel"), _ ("_Delete"), RESOURCES_DELETE_TAG_TITLE, NULL);
-#line 20 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (msg);
-#line 20 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1065 "Dialogs.c"
-}
-
-
-gboolean
-dialogs_confirm_delete_saved_search (SavedSearch* search)
-{
- gboolean result = FALSE;
- gchar* msg = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 24 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (search), FALSE);
-#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = g_strdup_printf (_ ("This will remove the saved search “%s”. Continue?"), _tmp1_);
-#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp1_);
-#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala"
- msg = _tmp3_;
-#line 28 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = app_window_negate_affirm_question (msg, _ ("_Cancel"), _ ("_Delete"), RESOURCES_DELETE_SAVED_SEARCH_DIALOG_TITLE, NULL);
-#line 28 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (msg);
-#line 28 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1098 "Dialogs.c"
-}
-
-
-gboolean
-dialogs_confirm_warn_developer_changed (gint number)
-{
- gboolean result = FALSE;
- GtkMessageDialog* dialog = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GtkMessageDialog* _tmp2_;
- GtkMessageDialog* _tmp3_;
- gint response = 0;
-#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = app_window_get_instance ();
-#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = (GtkMessageDialog*) gtk_message_dialog_new_with_markup (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "<span weight=\"bold\" size=\"larger\">%s</span>", ngettext ("Switching developers will undo all changes you have made to this photo" \
-" in Shotwell", "Switching developers will undo all changes you have made to these phot" \
-"os in Shotwell", (gulong) number));
-#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp2_);
-#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp1_);
-#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp3_;
-#line 39 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, NULL);
-#line 40 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Switch Developer"), GTK_RESPONSE_YES, NULL);
-#line 42 "/home/jens/Source/shotwell/src/Dialogs.vala"
- response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog));
-#line 44 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget));
-#line 46 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = response == ((gint) GTK_RESPONSE_YES);
-#line 46 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 46 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1140 "Dialogs.c"
-}
-
-
-GFile*
-export_ui_choose_file (const gchar* current_file_basename)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- const gchar* _tmp3_ = NULL;
- gchar* file_chooser_title = NULL;
- gchar* _tmp4_;
- GtkFileChooserDialog* chooser = NULL;
- const gchar* _tmp5_;
- AppWindow* _tmp6_;
- AppWindow* _tmp7_;
- GtkFileChooserDialog* _tmp8_;
- GtkFileChooserDialog* _tmp9_;
- GtkFileChooserDialog* _tmp10_;
- GtkFileChooserDialog* _tmp11_;
- GFile* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- GtkFileChooserDialog* _tmp15_;
- GtkFileChooserDialog* _tmp16_;
- GFile* file = NULL;
- GtkFileChooserDialog* _tmp17_;
- GtkFileChooserDialog* _tmp24_;
-#line 54 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (current_file_basename != NULL, NULL);
-#line 55 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = export_ui_current_export_dir;
-#line 55 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp0_ == NULL) {
-#line 1174 "Dialogs.c"
- const gchar* _tmp1_;
- GFile* _tmp2_;
-#line 56 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = g_get_home_dir ();
-#line 56 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = g_file_new_for_path (_tmp1_);
-#line 56 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (export_ui_current_export_dir);
-#line 56 "/home/jens/Source/shotwell/src/Dialogs.vala"
- export_ui_current_export_dir = _tmp2_;
-#line 1185 "Dialogs.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (video_reader_is_supported_video_filename (current_file_basename)) {
-#line 59 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _ ("Export Video");
-#line 1191 "Dialogs.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _ ("Export Photo");
-#line 1195 "Dialogs.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = g_strdup (_tmp3_);
-#line 58 "/home/jens/Source/shotwell/src/Dialogs.vala"
- file_chooser_title = _tmp4_;
-#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = file_chooser_title;
-#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = app_window_get_instance ();
-#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = _tmp6_;
-#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_window_get_type (), GtkWindow), GTK_FILE_CHOOSER_ACTION_SAVE, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_SAVE_LABEL, GTK_RESPONSE_ACCEPT, NULL, NULL);
-#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp8_);
-#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _tmp8_;
-#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp7_);
-#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala"
- chooser = _tmp9_;
-#line 64 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = chooser;
-#line 64 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_do_overwrite_confirmation (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_file_chooser_get_type (), GtkFileChooser), TRUE);
-#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = chooser;
-#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = export_ui_current_export_dir;
-#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = g_file_get_path (_tmp12_);
-#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = _tmp13_;
-#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp14_);
-#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp14_);
-#line 66 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = chooser;
-#line 66 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_current_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_file_chooser_get_type (), GtkFileChooser), current_file_basename);
-#line 67 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = chooser;
-#line 67 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE);
-#line 69 "/home/jens/Source/shotwell/src/Dialogs.vala"
- file = NULL;
-#line 70 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = chooser;
-#line 70 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_ACCEPT)) {
-#line 1247 "Dialogs.c"
- GtkFileChooserDialog* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- GFile* _tmp21_;
- GFile* _tmp22_;
- GFile* _tmp23_;
-#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = chooser;
-#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = gtk_file_chooser_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = _tmp19_;
-#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = g_file_new_for_path (_tmp20_);
-#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (file);
-#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala"
- file = _tmp21_;
-#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp20_);
-#line 72 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = file;
-#line 72 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = g_file_get_parent (_tmp22_);
-#line 72 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (export_ui_current_export_dir);
-#line 72 "/home/jens/Source/shotwell/src/Dialogs.vala"
- export_ui_current_export_dir = _tmp23_;
-#line 1276 "Dialogs.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = chooser;
-#line 74 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget));
-#line 76 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = file;
-#line 76 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (chooser);
-#line 76 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (file_chooser_title);
-#line 76 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1290 "Dialogs.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1299 "Dialogs.c"
-}
-
-
-GFile*
-export_ui_choose_dir (const gchar* user_title)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GtkFileChooserDialog* chooser = NULL;
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
- GtkFileChooserDialog* _tmp5_;
- GtkFileChooserDialog* _tmp6_;
- GtkFileChooserDialog* _tmp7_;
- GFile* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GtkFileChooserDialog* _tmp11_;
- GFile* dir = NULL;
- GtkFileChooserDialog* _tmp12_;
- GtkFileChooserDialog* _tmp19_;
-#line 80 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = export_ui_current_export_dir;
-#line 80 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp0_ == NULL) {
-#line 1325 "Dialogs.c"
- const gchar* _tmp1_;
- GFile* _tmp2_;
-#line 81 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = g_get_home_dir ();
-#line 81 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = g_file_new_for_path (_tmp1_);
-#line 81 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (export_ui_current_export_dir);
-#line 81 "/home/jens/Source/shotwell/src/Dialogs.vala"
- export_ui_current_export_dir = _tmp2_;
-#line 1336 "Dialogs.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (user_title == NULL) {
-#line 84 "/home/jens/Source/shotwell/src/Dialogs.vala"
- user_title = _ ("Export Photos");
-#line 1342 "Dialogs.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = app_window_get_instance ();
-#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = _tmp3_;
-#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (user_title, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_ACCEPT, NULL, NULL);
-#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp5_);
-#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_;
-#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp4_);
-#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala"
- chooser = _tmp6_;
-#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = chooser;
-#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = export_ui_current_export_dir;
-#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = g_file_get_path (_tmp8_);
-#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = _tmp9_;
-#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp10_);
-#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp10_);
-#line 90 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = chooser;
-#line 90 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE);
-#line 92 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dir = NULL;
-#line 93 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = chooser;
-#line 93 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_ACCEPT)) {
-#line 1380 "Dialogs.c"
- GtkFileChooserDialog* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- GFile* _tmp16_;
- GFile* _tmp17_;
- GFile* _tmp18_;
-#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = chooser;
-#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = gtk_file_chooser_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = _tmp14_;
-#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = g_file_new_for_path (_tmp15_);
-#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dir);
-#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dir = _tmp16_;
-#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp15_);
-#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = dir;
-#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (export_ui_current_export_dir);
-#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala"
- export_ui_current_export_dir = _tmp18_;
-#line 1409 "Dialogs.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = chooser;
-#line 98 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget));
-#line 100 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = dir;
-#line 100 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (chooser);
-#line 100 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1421 "Dialogs.c"
-}
-
-
-void
-open_external_editor_error_dialog (GError* err,
- Photo* photo)
-{
- gboolean _tmp0_ = FALSE;
-#line 107 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 109 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)) {
-#line 109 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = TRUE;
-#line 1436 "Dialogs.c"
- } else {
-#line 109 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_error_matches (err, G_FILE_ERROR, G_FILE_ERROR_PERM);
-#line 1440 "Dialogs.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp0_) {
-#line 1444 "Dialogs.c"
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource));
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = g_file_get_parent (_tmp2_);
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = _tmp3_;
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = g_file_get_path (_tmp4_);
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_;
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = g_strdup_printf (_ ("Shotwell couldn’t create a file for editing this photo because you do " \
-"not have permission to write to %s."), _tmp6_);
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = _tmp7_;
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- app_window_error_message (_tmp8_, NULL);
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp8_);
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp6_);
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp4_);
-#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp2_);
-#line 1479 "Dialogs.c"
- } else {
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 116 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = resources_launch_editor_failed (err);
-#line 116 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = _tmp9_;
-#line 116 "/home/jens/Source/shotwell/src/Dialogs.vala"
- app_window_error_message (_tmp10_, NULL);
-#line 116 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp10_);
-#line 1491 "Dialogs.c"
- }
-}
-
-
-GtkResponseType
-export_error_dialog (GFile* dest,
- gboolean photos_remaining)
-{
- GtkResponseType result = 0;
- gchar* message = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GtkResponseType response = 0;
-#line 120 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (G_IS_FILE (dest), 0);
-#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_file_get_path (dest);
-#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = g_strconcat (_ ("Unable to export the following photo due to a file error.\n\n"), _tmp1_, NULL);
-#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp1_);
-#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp3_;
-#line 124 "/home/jens/Source/shotwell/src/Dialogs.vala"
- response = GTK_RESPONSE_NONE;
-#line 126 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (photos_remaining) {
-#line 1525 "Dialogs.c"
- const gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 127 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = message;
-#line 127 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = g_strconcat (_tmp4_, _ ("\n\nWould you like to continue exporting?"), NULL);
-#line 127 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 127 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp5_;
-#line 128 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = message;
-#line 128 "/home/jens/Source/shotwell/src/Dialogs.vala"
- response = app_window_affirm_cancel_question (_tmp6_, _ ("Con_tinue"), NULL, NULL);
-#line 1541 "Dialogs.c"
- } else {
- const gchar* _tmp7_;
-#line 130 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = message;
-#line 130 "/home/jens/Source/shotwell/src/Dialogs.vala"
- app_window_error_message (_tmp7_, NULL);
-#line 1548 "Dialogs.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = response;
-#line 133 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 133 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1556 "Dialogs.c"
-}
-
-
-gchar*
-import_ui_generate_import_failure_list (GeeList* failed,
- gboolean show_dest_id)
-{
- gchar* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gchar* list = NULL;
- gchar* _tmp2_;
- gint remaining = 0;
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
-#line 143 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GEE_IS_LIST (failed), NULL);
-#line 144 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (failed, GEE_TYPE_COLLECTION, GeeCollection));
-#line 144 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 144 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp1_ == 0) {
-#line 145 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = NULL;
-#line 145 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1585 "Dialogs.c"
- }
-#line 147 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = g_strdup ("");
-#line 147 "/home/jens/Source/shotwell/src/Dialogs.vala"
- list = _tmp2_;
-#line 1591 "Dialogs.c"
- {
- gint ctr = 0;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ctr = 0;
-#line 1596 "Dialogs.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = TRUE;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 1603 "Dialogs.c"
- gboolean _tmp5_ = FALSE;
- gint _tmp6_;
- const gchar* _tmp10_ = NULL;
- const gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!_tmp3_) {
-#line 1613 "Dialogs.c"
- gint _tmp4_;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = ctr;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ctr = _tmp4_ + 1;
-#line 1619 "Dialogs.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = FALSE;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = ctr;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp6_ < IMPORT_UI_REPORT_FAILURE_COUNT) {
-#line 1627 "Dialogs.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = ctr;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (failed, GEE_TYPE_COLLECTION, GeeCollection));
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _tmp8_;
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = _tmp7_ < _tmp9_;
-#line 1639 "Dialogs.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = FALSE;
-#line 1643 "Dialogs.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!_tmp5_) {
-#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 1649 "Dialogs.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (show_dest_id) {
-#line 1653 "Dialogs.c"
- gint _tmp11_;
- gpointer _tmp12_;
- BatchImportResult* _tmp13_;
- const gchar* _tmp14_;
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = ctr;
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = gee_list_get (failed, _tmp11_);
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = (BatchImportResult*) _tmp12_;
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = _tmp13_->dest_identifier;
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = _tmp14_;
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_tmp13_);
-#line 1670 "Dialogs.c"
- } else {
- gint _tmp15_;
- gpointer _tmp16_;
- BatchImportResult* _tmp17_;
- const gchar* _tmp18_;
-#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = ctr;
-#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = gee_list_get (failed, _tmp15_);
-#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = (BatchImportResult*) _tmp16_;
-#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = _tmp17_->src_identifier;
-#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = _tmp18_;
-#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_tmp17_);
-#line 1688 "Dialogs.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = list;
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = g_strdup_printf ("%s\n", _tmp10_);
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = _tmp20_;
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = g_strconcat (_tmp19_, _tmp21_, NULL);
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (list);
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- list = _tmp22_;
-#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp21_);
-#line 1704 "Dialogs.c"
- }
- }
- }
-#line 153 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (failed, GEE_TYPE_COLLECTION, GeeCollection));
-#line 153 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = _tmp23_;
-#line 153 "/home/jens/Source/shotwell/src/Dialogs.vala"
- remaining = _tmp24_ - IMPORT_UI_REPORT_FAILURE_COUNT;
-#line 154 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp25_ = remaining;
-#line 154 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp25_ > 0) {
-#line 1718 "Dialogs.c"
- const gchar* _tmp26_;
- gint _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
-#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp26_ = list;
-#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp27_ = remaining;
-#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp28_ = g_strdup_printf (_ ("(and %d more)\n"), _tmp27_);
-#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp29_ = _tmp28_;
-#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp30_ = g_strconcat (_tmp26_, _tmp29_, NULL);
-#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (list);
-#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala"
- list = _tmp30_;
-#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp29_);
-#line 1740 "Dialogs.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = list;
-#line 157 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 1746 "Dialogs.c"
-}
-
-
-ImportUIQuestionParams*
-import_ui_question_params_construct (GType object_type,
- const gchar* question,
- const gchar* yes_button,
- const gchar* no_button)
-{
- ImportUIQuestionParams* self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (question != NULL, NULL);
-#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (yes_button != NULL, NULL);
-#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (no_button != NULL, NULL);
-#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (ImportUIQuestionParams*) g_type_create_instance (object_type);
-#line 166 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_strdup (question);
-#line 166 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (self->question);
-#line 166 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->question = _tmp0_;
-#line 167 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = g_strdup (yes_button);
-#line 167 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (self->yes_button);
-#line 167 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->yes_button = _tmp1_;
-#line 168 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = g_strdup (no_button);
-#line 168 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (self->no_button);
-#line 168 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->no_button = _tmp2_;
-#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 1788 "Dialogs.c"
-}
-
-
-ImportUIQuestionParams*
-import_ui_question_params_new (const gchar* question,
- const gchar* yes_button,
- const gchar* no_button)
-{
-#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return import_ui_question_params_construct (IMPORT_UI_TYPE_QUESTION_PARAMS, question, yes_button, no_button);
-#line 1799 "Dialogs.c"
-}
-
-
-static void
-import_ui_value_question_params_init (GValue* value)
-{
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 1808 "Dialogs.c"
-}
-
-
-static void
-import_ui_value_question_params_free_value (GValue* value)
-{
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (value->data[0].v_pointer) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- import_ui_question_params_unref (value->data[0].v_pointer);
-#line 1819 "Dialogs.c"
- }
-}
-
-
-static void
-import_ui_value_question_params_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (src_value->data[0].v_pointer) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dest_value->data[0].v_pointer = import_ui_question_params_ref (src_value->data[0].v_pointer);
-#line 1832 "Dialogs.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1836 "Dialogs.c"
- }
-}
-
-
-static gpointer
-import_ui_value_question_params_peek_pointer (const GValue* value)
-{
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return value->data[0].v_pointer;
-#line 1846 "Dialogs.c"
-}
-
-
-static gchar*
-import_ui_value_question_params_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (collect_values[0].v_pointer) {
-#line 1858 "Dialogs.c"
- ImportUIQuestionParams * object;
- object = collect_values[0].v_pointer;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1865 "Dialogs.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.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 1869 "Dialogs.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = import_ui_question_params_ref (object);
-#line 1873 "Dialogs.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 1877 "Dialogs.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return NULL;
-#line 1881 "Dialogs.c"
-}
-
-
-static gchar*
-import_ui_value_question_params_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- ImportUIQuestionParams ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!object_p) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1897 "Dialogs.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!value->data[0].v_pointer) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = NULL;
-#line 1903 "Dialogs.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = value->data[0].v_pointer;
-#line 1907 "Dialogs.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = import_ui_question_params_ref (value->data[0].v_pointer);
-#line 1911 "Dialogs.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return NULL;
-#line 1915 "Dialogs.c"
-}
-
-
-GParamSpec*
-import_ui_param_spec_question_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ImportUIParamSpecQuestionParams* spec;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (g_type_is_a (object_type, IMPORT_UI_TYPE_QUESTION_PARAMS), NULL);
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return G_PARAM_SPEC (spec);
-#line 1935 "Dialogs.c"
-}
-
-
-gpointer
-import_ui_value_get_question_params (const GValue* value)
-{
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, IMPORT_UI_TYPE_QUESTION_PARAMS), NULL);
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return value->data[0].v_pointer;
-#line 1946 "Dialogs.c"
-}
-
-
-void
-import_ui_value_set_question_params (GValue* value,
- gpointer v_object)
-{
- ImportUIQuestionParams * old;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, IMPORT_UI_TYPE_QUESTION_PARAMS));
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- old = value->data[0].v_pointer;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (v_object) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, IMPORT_UI_TYPE_QUESTION_PARAMS));
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = v_object;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- import_ui_question_params_ref (value->data[0].v_pointer);
-#line 1969 "Dialogs.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 1973 "Dialogs.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (old) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- import_ui_question_params_unref (old);
-#line 1979 "Dialogs.c"
- }
-}
-
-
-void
-import_ui_value_take_question_params (GValue* value,
- gpointer v_object)
-{
- ImportUIQuestionParams * old;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, IMPORT_UI_TYPE_QUESTION_PARAMS));
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- old = value->data[0].v_pointer;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (v_object) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, IMPORT_UI_TYPE_QUESTION_PARAMS));
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = v_object;
-#line 2001 "Dialogs.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 2005 "Dialogs.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (old) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- import_ui_question_params_unref (old);
-#line 2011 "Dialogs.c"
- }
-}
-
-
-static void
-import_ui_question_params_class_init (ImportUIQuestionParamsClass * klass)
-{
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- import_ui_question_params_parent_class = g_type_class_peek_parent (klass);
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((ImportUIQuestionParamsClass *) klass)->finalize = import_ui_question_params_finalize;
-#line 2023 "Dialogs.c"
-}
-
-
-static void
-import_ui_question_params_instance_init (ImportUIQuestionParams * self)
-{
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->ref_count = 1;
-#line 2032 "Dialogs.c"
-}
-
-
-static void
-import_ui_question_params_finalize (ImportUIQuestionParams * obj)
-{
- ImportUIQuestionParams * self;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams);
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_signal_handlers_destroy (self);
-#line 161 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (self->question);
-#line 162 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (self->yes_button);
-#line 163 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (self->no_button);
-#line 2050 "Dialogs.c"
-}
-
-
-GType
-import_ui_question_params_get_type (void)
-{
- static volatile gsize import_ui_question_params_type_id__volatile = 0;
- if (g_once_init_enter (&import_ui_question_params_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { import_ui_value_question_params_init, import_ui_value_question_params_free_value, import_ui_value_question_params_copy_value, import_ui_value_question_params_peek_pointer, "p", import_ui_value_question_params_collect_value, "p", import_ui_value_question_params_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ImportUIQuestionParamsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_ui_question_params_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportUIQuestionParams), 0, (GInstanceInitFunc) import_ui_question_params_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType import_ui_question_params_type_id;
- import_ui_question_params_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ImportUIQuestionParams", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&import_ui_question_params_type_id__volatile, import_ui_question_params_type_id);
- }
- return import_ui_question_params_type_id__volatile;
-}
-
-
-gpointer
-import_ui_question_params_ref (gpointer instance)
-{
- ImportUIQuestionParams * self;
- self = instance;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return instance;
-#line 2079 "Dialogs.c"
-}
-
-
-void
-import_ui_question_params_unref (gpointer instance)
-{
- ImportUIQuestionParams * self;
- self = instance;
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- IMPORT_UI_QUESTION_PARAMS_GET_CLASS (self)->finalize (self);
-#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2094 "Dialogs.c"
- }
-}
-
-
-gboolean
-import_ui_import_has_photos (GeeCollection* import_collection)
-{
- gboolean result = FALSE;
-#line 172 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (import_collection), FALSE);
-#line 2105 "Dialogs.c"
- {
- GeeIterator* _current_result_it = NULL;
- GeeIterator* _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (import_collection, GEE_TYPE_ITERABLE, GeeIterable));
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _current_result_it = _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 2115 "Dialogs.c"
- GeeIterator* _tmp1_;
- BatchImportResult* current_result = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- gboolean _tmp4_ = FALSE;
- BatchImportResult* _tmp5_;
- GFile* _tmp6_;
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _current_result_it;
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 2129 "Dialogs.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _current_result_it;
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_result = (BatchImportResult*) _tmp3_;
-#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = current_result;
-#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_->file;
-#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp6_ != NULL) {
-#line 2143 "Dialogs.c"
- BatchImportResult* _tmp7_;
- GFile* _tmp8_;
-#line 175 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = current_result;
-#line 175 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = _tmp7_->file;
-#line 175 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = photo_file_format_get_by_file_extension (_tmp8_) != PHOTO_FILE_FORMAT_UNKNOWN;
-#line 2152 "Dialogs.c"
- } else {
-#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = FALSE;
-#line 2156 "Dialogs.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp4_) {
-#line 176 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = TRUE;
-#line 176 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (current_result);
-#line 176 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_current_result_it);
-#line 176 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 2168 "Dialogs.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (current_result);
-#line 2172 "Dialogs.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_current_result_it);
-#line 2176 "Dialogs.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = FALSE;
-#line 179 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 2182 "Dialogs.c"
-}
-
-
-gboolean
-import_ui_import_has_videos (GeeCollection* import_collection)
-{
- gboolean result = FALSE;
-#line 182 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (import_collection), FALSE);
-#line 2192 "Dialogs.c"
- {
- GeeIterator* _current_result_it = NULL;
- GeeIterator* _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (import_collection, GEE_TYPE_ITERABLE, GeeIterable));
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _current_result_it = _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 2202 "Dialogs.c"
- GeeIterator* _tmp1_;
- BatchImportResult* current_result = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- gboolean _tmp4_ = FALSE;
- BatchImportResult* _tmp5_;
- GFile* _tmp6_;
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _current_result_it;
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 2216 "Dialogs.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _current_result_it;
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_result = (BatchImportResult*) _tmp3_;
-#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = current_result;
-#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_->file;
-#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp6_ != NULL) {
-#line 2230 "Dialogs.c"
- BatchImportResult* _tmp7_;
- GFile* _tmp8_;
-#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = current_result;
-#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = _tmp7_->file;
-#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = video_reader_is_supported_video_file (_tmp8_);
-#line 2239 "Dialogs.c"
- } else {
-#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = FALSE;
-#line 2243 "Dialogs.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp4_) {
-#line 185 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = TRUE;
-#line 185 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (current_result);
-#line 185 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_current_result_it);
-#line 185 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 2255 "Dialogs.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (current_result);
-#line 2259 "Dialogs.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_current_result_it);
-#line 2263 "Dialogs.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = FALSE;
-#line 187 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 2269 "Dialogs.c"
-}
-
-
-gchar*
-import_ui_get_media_specific_string (GeeCollection* import_collection,
- const gchar* photos_msg,
- const gchar* videos_msg,
- const gchar* both_msg,
- const gchar* neither_msg)
-{
- gchar* result = NULL;
- gboolean has_photos = FALSE;
- gboolean has_videos = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (import_collection), NULL);
-#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (photos_msg != NULL, NULL);
-#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (videos_msg != NULL, NULL);
-#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (both_msg != NULL, NULL);
-#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (neither_msg != NULL, NULL);
-#line 192 "/home/jens/Source/shotwell/src/Dialogs.vala"
- has_photos = import_ui_import_has_photos (import_collection);
-#line 193 "/home/jens/Source/shotwell/src/Dialogs.vala"
- has_videos = import_ui_import_has_videos (import_collection);
-#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = has_photos;
-#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp1_) {
-#line 2303 "Dialogs.c"
- gboolean _tmp2_;
-#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = has_videos;
-#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _tmp2_;
-#line 2309 "Dialogs.c"
- } else {
-#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = FALSE;
-#line 2313 "Dialogs.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp0_) {
-#line 2317 "Dialogs.c"
- gchar* _tmp3_;
-#line 196 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = g_strdup (both_msg);
-#line 196 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp3_;
-#line 196 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 2325 "Dialogs.c"
- } else {
- gboolean _tmp4_;
-#line 197 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = has_photos;
-#line 197 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp4_) {
-#line 2332 "Dialogs.c"
- gchar* _tmp5_;
-#line 198 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = g_strdup (photos_msg);
-#line 198 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp5_;
-#line 198 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 2340 "Dialogs.c"
- } else {
- gboolean _tmp6_;
-#line 199 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = has_videos;
-#line 199 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp6_) {
-#line 2347 "Dialogs.c"
- gchar* _tmp7_;
-#line 200 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = g_strdup (videos_msg);
-#line 200 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp7_;
-#line 200 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 2355 "Dialogs.c"
- } else {
- gchar* _tmp8_;
-#line 202 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = g_strdup (neither_msg);
-#line 202 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp8_;
-#line 202 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 2364 "Dialogs.c"
- }
- }
- }
-}
-
-
-gchar*
-import_ui_create_result_report_from_manifest (ImportManifest* manifest)
-{
- gchar* result = NULL;
- GString* builder = NULL;
- GString* _tmp0_;
- gchar* header = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GTimeVal _tmp7_ = {0};
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- GString* _tmp14_;
- const gchar* _tmp15_;
- gchar* subhead = NULL;
- GeeList* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- GeeList* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gchar* _tmp22_;
- const gchar* _tmp23_;
- gchar* _tmp24_;
- const gchar* _tmp25_;
- GeeList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- GeeList* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- const gchar* _tmp35_;
- gchar* _tmp36_;
- GString* _tmp37_;
- const gchar* _tmp38_;
- gchar* current_file_summary = NULL;
- gchar* _tmp39_;
- GeeList* _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- GeeList* _tmp76_;
- gint _tmp77_;
- gint _tmp78_;
- GeeList* _tmp108_;
- gint _tmp109_;
- gint _tmp110_;
- GeeList* _tmp140_;
- gint _tmp141_;
- gint _tmp142_;
- GeeList* _tmp172_;
- gint _tmp173_;
- gint _tmp174_;
- GeeList* _tmp208_;
- gint _tmp209_;
- gint _tmp210_;
- GeeList* _tmp240_;
- gint _tmp241_;
- gint _tmp242_;
- GString* _tmp272_;
- const gchar* _tmp273_;
- gchar* _tmp274_;
-#line 205 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_IMPORT_MANIFEST (manifest), NULL);
-#line 206 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_string_new ("");
-#line 206 "/home/jens/Source/shotwell/src/Dialogs.vala"
- builder = _tmp0_;
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = g_strconcat (_ ("Import Results Report"), " (Shotwell ", NULL);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _tmp1_;
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = g_strconcat (_tmp2_, RESOURCES_APP_VERSION, NULL);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = _tmp3_;
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = g_strconcat (_tmp4_, " @ ", NULL);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_;
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_get_current_time (&_tmp7_);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = g_time_val_to_iso8601 (&_tmp7_);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _tmp8_;
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = g_strconcat (_tmp6_, _tmp9_, NULL);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = _tmp10_;
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = g_strconcat (_tmp11_, ")\n\n", NULL);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = _tmp12_;
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp11_);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp9_);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp6_);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp4_);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp2_);
-#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala"
- header = _tmp13_;
-#line 210 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = builder;
-#line 210 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = header;
-#line 210 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp14_, _tmp15_);
-#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = manifest->all;
-#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = _tmp17_;
-#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = manifest->all;
-#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = _tmp20_;
-#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = g_strdup_printf (ngettext ("Attempted to import %d file.", "Attempted to import %d files.", (gulong) _tmp18_), _tmp21_);
-#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala"
- subhead = _tmp22_;
-#line 214 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = subhead;
-#line 214 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = g_strconcat (_tmp23_, " ", NULL);
-#line 214 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (subhead);
-#line 214 "/home/jens/Source/shotwell/src/Dialogs.vala"
- subhead = _tmp24_;
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp25_ = subhead;
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp26_ = manifest->success;
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp28_ = _tmp27_;
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp29_ = manifest->success;
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp30_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp31_ = _tmp30_;
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp32_ = g_strdup_printf (ngettext ("Of these, %d file was successfully imported.", "Of these, %d files were successfully imported.", (gulong) _tmp28_), _tmp31_);
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp33_ = _tmp32_;
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp34_ = g_strconcat (_tmp25_, _tmp33_, NULL);
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (subhead);
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- subhead = _tmp34_;
-#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp33_);
-#line 218 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp35_ = subhead;
-#line 218 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp36_ = g_strconcat (_tmp35_, "\n\n", NULL);
-#line 218 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (subhead);
-#line 218 "/home/jens/Source/shotwell/src/Dialogs.vala"
- subhead = _tmp36_;
-#line 219 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp37_ = builder;
-#line 219 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp38_ = subhead;
-#line 219 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp37_, _tmp38_);
-#line 221 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp39_ = g_strdup ("");
-#line 221 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_file_summary = _tmp39_;
-#line 226 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp40_ = manifest->already_imported;
-#line 226 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp41_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 226 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp42_ = _tmp41_;
-#line 226 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp42_ > 0) {
-#line 2569 "Dialogs.c"
- GString* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
-#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp43_ = builder;
-#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp44_ = g_strconcat (_ ("Duplicate Photos/Videos Not Imported:"), "\n\n", NULL);
-#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp45_ = _tmp44_;
-#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp43_, _tmp45_);
-#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp45_);
-#line 2583 "Dialogs.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp46_;
- GeeList* _tmp47_;
- gint _result_size = 0;
- GeeList* _tmp48_;
- gint _tmp49_;
- gint _tmp50_;
- gint _result_index = 0;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp46_ = manifest->already_imported;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp47_ = _g_object_ref0 (_tmp46_);
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_list = _tmp47_;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp48_ = _result_list;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp49_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp50_ = _tmp49_;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_size = _tmp50_;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = -1;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 2611 "Dialogs.c"
- gint _tmp51_;
- gint _tmp52_;
- gint _tmp53_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp54_;
- gint _tmp55_;
- gpointer _tmp56_;
- BatchImportResult* _tmp57_;
- const gchar* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- BatchImportResult* _tmp65_;
- DuplicatedFile* _tmp66_;
- GFile* _tmp67_;
- GFile* _tmp68_;
- gchar* _tmp69_;
- gchar* _tmp70_;
- gchar* _tmp71_;
- gchar* _tmp72_;
- gchar* _tmp73_;
- GString* _tmp74_;
- const gchar* _tmp75_;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp51_ = _result_index;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = _tmp51_ + 1;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp52_ = _result_index;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp53_ = _result_size;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!(_tmp52_ < _tmp53_)) {
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 2650 "Dialogs.c"
- }
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp54_ = _result_list;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp55_ = _result_index;
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp56_ = gee_list_get (_tmp54_, _tmp55_);
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (BatchImportResult*) _tmp56_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp57_ = _result_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp58_ = _tmp57_->src_identifier;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp59_ = g_strconcat (_tmp58_, " ", NULL);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp60_ = _tmp59_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp61_ = g_strconcat (_tmp60_, _ ("duplicates existing media item"), NULL);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp62_ = _tmp61_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp63_ = g_strconcat (_tmp62_, "\n\t", NULL);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp64_ = _tmp63_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp65_ = _result_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp66_ = _tmp65_->duplicate_of;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp67_ = duplicated_file_get_file (_tmp66_);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp68_ = _tmp67_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp69_ = g_file_get_path (_tmp68_);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp70_ = _tmp69_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp71_ = g_strconcat (_tmp64_, _tmp70_, NULL);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp72_ = _tmp71_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp73_ = g_strconcat (_tmp72_, "\n\n", NULL);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (current_file_summary);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_file_summary = _tmp73_;
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp72_);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp70_);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp68_);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp64_);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp62_);
-#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp60_);
-#line 234 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp74_ = builder;
-#line 234 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp75_ = current_file_summary;
-#line 234 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp74_, _tmp75_);
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_result_);
-#line 2718 "Dialogs.c"
- }
-#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_result_list);
-#line 2722 "Dialogs.c"
- }
- }
-#line 241 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp76_ = manifest->camera_failed;
-#line 241 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp77_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 241 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp78_ = _tmp77_;
-#line 241 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp78_ > 0) {
-#line 2733 "Dialogs.c"
- GString* _tmp79_;
- gchar* _tmp80_;
- gchar* _tmp81_;
-#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp79_ = builder;
-#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp80_ = g_strconcat (_ ("Photos/Videos Not Imported Due to Camera Errors:"), "\n\n", NULL);
-#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp81_ = _tmp80_;
-#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp79_, _tmp81_);
-#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp81_);
-#line 2747 "Dialogs.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp82_;
- GeeList* _tmp83_;
- gint _result_size = 0;
- GeeList* _tmp84_;
- gint _tmp85_;
- gint _tmp86_;
- gint _result_index = 0;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp82_ = manifest->camera_failed;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp83_ = _g_object_ref0 (_tmp82_);
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_list = _tmp83_;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp84_ = _result_list;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp85_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp86_ = _tmp85_;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_size = _tmp86_;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = -1;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 2775 "Dialogs.c"
- gint _tmp87_;
- gint _tmp88_;
- gint _tmp89_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp90_;
- gint _tmp91_;
- gpointer _tmp92_;
- BatchImportResult* _tmp93_;
- const gchar* _tmp94_;
- gchar* _tmp95_;
- gchar* _tmp96_;
- gchar* _tmp97_;
- gchar* _tmp98_;
- gchar* _tmp99_;
- gchar* _tmp100_;
- BatchImportResult* _tmp101_;
- const gchar* _tmp102_;
- gchar* _tmp103_;
- gchar* _tmp104_;
- gchar* _tmp105_;
- GString* _tmp106_;
- const gchar* _tmp107_;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp87_ = _result_index;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = _tmp87_ + 1;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp88_ = _result_index;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp89_ = _result_size;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!(_tmp88_ < _tmp89_)) {
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 2810 "Dialogs.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp90_ = _result_list;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp91_ = _result_index;
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp92_ = gee_list_get (_tmp90_, _tmp91_);
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (BatchImportResult*) _tmp92_;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp93_ = _result_;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp94_ = _tmp93_->src_identifier;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp95_ = g_strconcat (_tmp94_, "\n\t", NULL);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp96_ = _tmp95_;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp97_ = g_strconcat (_tmp96_, _ ("error message:"), NULL);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp98_ = _tmp97_;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp99_ = g_strconcat (_tmp98_, " ", NULL);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp100_ = _tmp99_;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp101_ = _result_;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp102_ = _tmp101_->errmsg;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp103_ = g_strconcat (_tmp100_, _tmp102_, NULL);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp104_ = _tmp103_;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp105_ = g_strconcat (_tmp104_, "\n\n", NULL);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (current_file_summary);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_file_summary = _tmp105_;
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp104_);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp100_);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp98_);
-#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp96_);
-#line 248 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp106_ = builder;
-#line 248 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp107_ = current_file_summary;
-#line 248 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp106_, _tmp107_);
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_result_);
-#line 2866 "Dialogs.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_result_list);
-#line 2870 "Dialogs.c"
- }
- }
-#line 255 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp108_ = manifest->skipped_files;
-#line 255 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp109_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp108_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 255 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp110_ = _tmp109_;
-#line 255 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp110_ > 0) {
-#line 2881 "Dialogs.c"
- GString* _tmp111_;
- gchar* _tmp112_;
- gchar* _tmp113_;
-#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp111_ = builder;
-#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp112_ = g_strconcat (_ ("Files Not Imported Because They Weren’t Recognized as Photos or Videos" \
-":"), "\n\n", NULL);
-#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp113_ = _tmp112_;
-#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp111_, _tmp113_);
-#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp113_);
-#line 2895 "Dialogs.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp114_;
- GeeList* _tmp115_;
- gint _result_size = 0;
- GeeList* _tmp116_;
- gint _tmp117_;
- gint _tmp118_;
- gint _result_index = 0;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp114_ = manifest->skipped_files;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp115_ = _g_object_ref0 (_tmp114_);
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_list = _tmp115_;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp116_ = _result_list;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp117_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp116_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp118_ = _tmp117_;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_size = _tmp118_;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = -1;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 2923 "Dialogs.c"
- gint _tmp119_;
- gint _tmp120_;
- gint _tmp121_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp122_;
- gint _tmp123_;
- gpointer _tmp124_;
- BatchImportResult* _tmp125_;
- const gchar* _tmp126_;
- gchar* _tmp127_;
- gchar* _tmp128_;
- gchar* _tmp129_;
- gchar* _tmp130_;
- gchar* _tmp131_;
- gchar* _tmp132_;
- BatchImportResult* _tmp133_;
- const gchar* _tmp134_;
- gchar* _tmp135_;
- gchar* _tmp136_;
- gchar* _tmp137_;
- GString* _tmp138_;
- const gchar* _tmp139_;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp119_ = _result_index;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = _tmp119_ + 1;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp120_ = _result_index;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp121_ = _result_size;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!(_tmp120_ < _tmp121_)) {
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 2958 "Dialogs.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp122_ = _result_list;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp123_ = _result_index;
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp124_ = gee_list_get (_tmp122_, _tmp123_);
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (BatchImportResult*) _tmp124_;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp125_ = _result_;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp126_ = _tmp125_->src_identifier;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp127_ = g_strconcat (_tmp126_, "\n\t", NULL);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp128_ = _tmp127_;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp129_ = g_strconcat (_tmp128_, _ ("error message:"), NULL);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp130_ = _tmp129_;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp131_ = g_strconcat (_tmp130_, " ", NULL);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp132_ = _tmp131_;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp133_ = _result_;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp134_ = _tmp133_->errmsg;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp135_ = g_strconcat (_tmp132_, _tmp134_, NULL);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp136_ = _tmp135_;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp137_ = g_strconcat (_tmp136_, "\n\n", NULL);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (current_file_summary);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_file_summary = _tmp137_;
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp136_);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp132_);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp130_);
-#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp128_);
-#line 263 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp138_ = builder;
-#line 263 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp139_ = current_file_summary;
-#line 263 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp138_, _tmp139_);
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_result_);
-#line 3014 "Dialogs.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_result_list);
-#line 3018 "Dialogs.c"
- }
- }
-#line 270 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp140_ = manifest->skipped_photos;
-#line 270 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp141_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp140_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 270 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp142_ = _tmp141_;
-#line 270 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp142_ > 0) {
-#line 3029 "Dialogs.c"
- GString* _tmp143_;
- gchar* _tmp144_;
- gchar* _tmp145_;
-#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp143_ = builder;
-#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp144_ = g_strconcat (_ ("Photos/Videos Not Imported Because They Weren’t in a Format Shotwell U" \
-"nderstands:"), "\n\n", NULL);
-#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp145_ = _tmp144_;
-#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp143_, _tmp145_);
-#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp145_);
-#line 3043 "Dialogs.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp146_;
- GeeList* _tmp147_;
- gint _result_size = 0;
- GeeList* _tmp148_;
- gint _tmp149_;
- gint _tmp150_;
- gint _result_index = 0;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp146_ = manifest->skipped_photos;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp147_ = _g_object_ref0 (_tmp146_);
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_list = _tmp147_;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp148_ = _result_list;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp149_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp148_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp150_ = _tmp149_;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_size = _tmp150_;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = -1;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 3071 "Dialogs.c"
- gint _tmp151_;
- gint _tmp152_;
- gint _tmp153_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp154_;
- gint _tmp155_;
- gpointer _tmp156_;
- BatchImportResult* _tmp157_;
- const gchar* _tmp158_;
- gchar* _tmp159_;
- gchar* _tmp160_;
- gchar* _tmp161_;
- gchar* _tmp162_;
- gchar* _tmp163_;
- gchar* _tmp164_;
- BatchImportResult* _tmp165_;
- const gchar* _tmp166_;
- gchar* _tmp167_;
- gchar* _tmp168_;
- gchar* _tmp169_;
- GString* _tmp170_;
- const gchar* _tmp171_;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp151_ = _result_index;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = _tmp151_ + 1;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp152_ = _result_index;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp153_ = _result_size;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!(_tmp152_ < _tmp153_)) {
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 3106 "Dialogs.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp154_ = _result_list;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp155_ = _result_index;
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp156_ = gee_list_get (_tmp154_, _tmp155_);
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (BatchImportResult*) _tmp156_;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp157_ = _result_;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp158_ = _tmp157_->src_identifier;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp159_ = g_strconcat (_tmp158_, "\n\t", NULL);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp160_ = _tmp159_;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp161_ = g_strconcat (_tmp160_, _ ("error message:"), NULL);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp162_ = _tmp161_;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp163_ = g_strconcat (_tmp162_, " ", NULL);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp164_ = _tmp163_;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp165_ = _result_;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp166_ = _tmp165_->errmsg;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp167_ = g_strconcat (_tmp164_, _tmp166_, NULL);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp168_ = _tmp167_;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp169_ = g_strconcat (_tmp168_, "\n\n", NULL);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (current_file_summary);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_file_summary = _tmp169_;
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp168_);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp164_);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp162_);
-#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp160_);
-#line 278 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp170_ = builder;
-#line 278 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp171_ = current_file_summary;
-#line 278 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp170_, _tmp171_);
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_result_);
-#line 3162 "Dialogs.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_result_list);
-#line 3166 "Dialogs.c"
- }
- }
-#line 285 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp172_ = manifest->write_failed;
-#line 285 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp173_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp172_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 285 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp174_ = _tmp173_;
-#line 285 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp174_ > 0) {
-#line 3177 "Dialogs.c"
- GString* _tmp175_;
- gchar* _tmp176_;
- gchar* _tmp177_;
-#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp175_ = builder;
-#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp176_ = g_strconcat (_ ("Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into it" \
-"s Library:"), "\n\n", NULL);
-#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp177_ = _tmp176_;
-#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp175_, _tmp177_);
-#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp177_);
-#line 3191 "Dialogs.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp178_;
- GeeList* _tmp179_;
- gint _result_size = 0;
- GeeList* _tmp180_;
- gint _tmp181_;
- gint _tmp182_;
- gint _result_index = 0;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp178_ = manifest->write_failed;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp179_ = _g_object_ref0 (_tmp178_);
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_list = _tmp179_;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp180_ = _result_list;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp181_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp180_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp182_ = _tmp181_;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_size = _tmp182_;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = -1;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 3219 "Dialogs.c"
- gint _tmp183_;
- gint _tmp184_;
- gint _tmp185_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp186_;
- gint _tmp187_;
- gpointer _tmp188_;
- BatchImportResult* _tmp189_;
- const gchar* _tmp190_;
- BatchImportResult* _tmp191_;
- const gchar* _tmp192_;
- gchar* _tmp193_;
- gchar* _tmp194_;
- gchar* _tmp195_;
- gchar* _tmp196_;
- gchar* _tmp197_;
- gchar* _tmp198_;
- gchar* _tmp199_;
- gchar* _tmp200_;
- BatchImportResult* _tmp201_;
- const gchar* _tmp202_;
- gchar* _tmp203_;
- gchar* _tmp204_;
- gchar* _tmp205_;
- GString* _tmp206_;
- const gchar* _tmp207_;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp183_ = _result_index;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = _tmp183_ + 1;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp184_ = _result_index;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp185_ = _result_size;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!(_tmp184_ < _tmp185_)) {
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 3258 "Dialogs.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp186_ = _result_list;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp187_ = _result_index;
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp188_ = gee_list_get (_tmp186_, _tmp187_);
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (BatchImportResult*) _tmp188_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp189_ = _result_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp190_ = _tmp189_->src_identifier;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp191_ = _result_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp192_ = _tmp191_->dest_identifier;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp193_ = g_strdup_printf (_ ("couldn’t copy %s\n\tto %s"), _tmp190_, _tmp192_);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp194_ = _tmp193_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp195_ = g_strconcat (_tmp194_, "\n\t", NULL);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp196_ = _tmp195_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp197_ = g_strconcat (_tmp196_, _ ("error message:"), NULL);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp198_ = _tmp197_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp199_ = g_strconcat (_tmp198_, " ", NULL);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp200_ = _tmp199_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp201_ = _result_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp202_ = _tmp201_->errmsg;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp203_ = g_strconcat (_tmp200_, _tmp202_, NULL);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp204_ = _tmp203_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp205_ = g_strconcat (_tmp204_, "\n\n", NULL);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (current_file_summary);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_file_summary = _tmp205_;
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp204_);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp200_);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp198_);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp196_);
-#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp194_);
-#line 294 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp206_ = builder;
-#line 294 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp207_ = current_file_summary;
-#line 294 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp206_, _tmp207_);
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_result_);
-#line 3324 "Dialogs.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_result_list);
-#line 3328 "Dialogs.c"
- }
- }
-#line 301 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp208_ = manifest->corrupt_files;
-#line 301 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp209_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp208_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 301 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp210_ = _tmp209_;
-#line 301 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp210_ > 0) {
-#line 3339 "Dialogs.c"
- GString* _tmp211_;
- gchar* _tmp212_;
- gchar* _tmp213_;
-#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp211_ = builder;
-#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp212_ = g_strconcat (_ ("Photos/Videos Not Imported Because Files Are Corrupt:"), "\n\n", NULL);
-#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp213_ = _tmp212_;
-#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp211_, _tmp213_);
-#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp213_);
-#line 3353 "Dialogs.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp214_;
- GeeList* _tmp215_;
- gint _result_size = 0;
- GeeList* _tmp216_;
- gint _tmp217_;
- gint _tmp218_;
- gint _result_index = 0;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp214_ = manifest->corrupt_files;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp215_ = _g_object_ref0 (_tmp214_);
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_list = _tmp215_;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp216_ = _result_list;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp217_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp216_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp218_ = _tmp217_;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_size = _tmp218_;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = -1;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 3381 "Dialogs.c"
- gint _tmp219_;
- gint _tmp220_;
- gint _tmp221_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp222_;
- gint _tmp223_;
- gpointer _tmp224_;
- BatchImportResult* _tmp225_;
- const gchar* _tmp226_;
- gchar* _tmp227_;
- gchar* _tmp228_;
- gchar* _tmp229_;
- gchar* _tmp230_;
- gchar* _tmp231_;
- gchar* _tmp232_;
- BatchImportResult* _tmp233_;
- const gchar* _tmp234_;
- gchar* _tmp235_;
- gchar* _tmp236_;
- gchar* _tmp237_;
- GString* _tmp238_;
- const gchar* _tmp239_;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp219_ = _result_index;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = _tmp219_ + 1;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp220_ = _result_index;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp221_ = _result_size;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!(_tmp220_ < _tmp221_)) {
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 3416 "Dialogs.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp222_ = _result_list;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp223_ = _result_index;
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp224_ = gee_list_get (_tmp222_, _tmp223_);
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (BatchImportResult*) _tmp224_;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp225_ = _result_;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp226_ = _tmp225_->src_identifier;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp227_ = g_strconcat (_tmp226_, "\n\t", NULL);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp228_ = _tmp227_;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp229_ = g_strconcat (_tmp228_, _ ("error message:"), NULL);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp230_ = _tmp229_;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp231_ = g_strconcat (_tmp230_, " |", NULL);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp232_ = _tmp231_;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp233_ = _result_;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp234_ = _tmp233_->errmsg;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp235_ = g_strconcat (_tmp232_, _tmp234_, NULL);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp236_ = _tmp235_;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp237_ = g_strconcat (_tmp236_, "|\n\n", NULL);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (current_file_summary);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_file_summary = _tmp237_;
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp236_);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp232_);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp230_);
-#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp228_);
-#line 309 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp238_ = builder;
-#line 309 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp239_ = current_file_summary;
-#line 309 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp238_, _tmp239_);
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_result_);
-#line 3472 "Dialogs.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_result_list);
-#line 3476 "Dialogs.c"
- }
- }
-#line 316 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp240_ = manifest->failed;
-#line 316 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp241_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp240_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 316 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp242_ = _tmp241_;
-#line 316 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp242_ > 0) {
-#line 3487 "Dialogs.c"
- GString* _tmp243_;
- gchar* _tmp244_;
- gchar* _tmp245_;
-#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp243_ = builder;
-#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp244_ = g_strconcat (_ ("Photos/Videos Not Imported for Other Reasons:"), "\n\n", NULL);
-#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp245_ = _tmp244_;
-#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp243_, _tmp245_);
-#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp245_);
-#line 3501 "Dialogs.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp246_;
- GeeList* _tmp247_;
- gint _result_size = 0;
- GeeList* _tmp248_;
- gint _tmp249_;
- gint _tmp250_;
- gint _result_index = 0;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp246_ = manifest->failed;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp247_ = _g_object_ref0 (_tmp246_);
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_list = _tmp247_;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp248_ = _result_list;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp249_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp248_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp250_ = _tmp249_;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_size = _tmp250_;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = -1;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 3529 "Dialogs.c"
- gint _tmp251_;
- gint _tmp252_;
- gint _tmp253_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp254_;
- gint _tmp255_;
- gpointer _tmp256_;
- BatchImportResult* _tmp257_;
- const gchar* _tmp258_;
- gchar* _tmp259_;
- gchar* _tmp260_;
- gchar* _tmp261_;
- gchar* _tmp262_;
- gchar* _tmp263_;
- gchar* _tmp264_;
- BatchImportResult* _tmp265_;
- const gchar* _tmp266_;
- gchar* _tmp267_;
- gchar* _tmp268_;
- gchar* _tmp269_;
- GString* _tmp270_;
- const gchar* _tmp271_;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp251_ = _result_index;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_index = _tmp251_ + 1;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp252_ = _result_index;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp253_ = _result_size;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!(_tmp252_ < _tmp253_)) {
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 3564 "Dialogs.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp254_ = _result_list;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp255_ = _result_index;
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp256_ = gee_list_get (_tmp254_, _tmp255_);
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (BatchImportResult*) _tmp256_;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp257_ = _result_;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp258_ = _tmp257_->src_identifier;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp259_ = g_strconcat (_tmp258_, "\n\t", NULL);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp260_ = _tmp259_;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp261_ = g_strconcat (_tmp260_, _ ("error message:"), NULL);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp262_ = _tmp261_;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp263_ = g_strconcat (_tmp262_, " ", NULL);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp264_ = _tmp263_;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp265_ = _result_;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp266_ = _tmp265_->errmsg;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp267_ = g_strconcat (_tmp264_, _tmp266_, NULL);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp268_ = _tmp267_;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp269_ = g_strconcat (_tmp268_, "\n\n", NULL);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (current_file_summary);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- current_file_summary = _tmp269_;
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp268_);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp264_);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp262_);
-#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp260_);
-#line 323 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp270_ = builder;
-#line 323 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp271_ = current_file_summary;
-#line 323 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_string_append (_tmp270_, _tmp271_);
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _batch_import_result_unref0 (_result_);
-#line 3620 "Dialogs.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_result_list);
-#line 3624 "Dialogs.c"
- }
- }
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp272_ = builder;
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp273_ = _tmp272_->str;
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp274_ = g_strdup (_tmp273_);
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp274_;
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (current_file_summary);
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (subhead);
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (header);
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_string_free0 (builder);
-#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 3645 "Dialogs.c"
-}
-
-
-gboolean
-import_ui_report_manifest (ImportManifest* manifest,
- gboolean show_dest_id,
- ImportUIQuestionParams* question)
-{
- gboolean result = FALSE;
- gchar* message = NULL;
- gchar* _tmp0_;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- GeeList* _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- GeeList* _tmp89_;
- gint _tmp90_;
- gint _tmp91_;
- GeeList* _tmp139_;
- gint _tmp140_;
- gint _tmp141_;
- GeeList* _tmp189_;
- gint _tmp190_;
- gint _tmp191_;
- GeeList* _tmp239_;
- gint _tmp240_;
- gint _tmp241_;
- GeeList* _tmp262_;
- gint _tmp263_;
- gint _tmp264_;
- GeeList* _tmp280_;
- gint _tmp281_;
- gint _tmp282_;
- GeeList* _tmp330_;
- gint _tmp331_;
- gint _tmp332_;
- gint total = 0;
- GeeList* _tmp367_;
- gint _tmp368_;
- gint _tmp369_;
- GeeList* _tmp370_;
- gint _tmp371_;
- gint _tmp372_;
- GeeList* _tmp373_;
- gint _tmp374_;
- gint _tmp375_;
- GeeList* _tmp376_;
- gint _tmp377_;
- gint _tmp378_;
- GeeList* _tmp379_;
- gint _tmp380_;
- gint _tmp381_;
- GeeList* _tmp382_;
- gint _tmp383_;
- gint _tmp384_;
- GeeList* _tmp385_;
- gint _tmp386_;
- gint _tmp387_;
- GeeList* _tmp388_;
- gint _tmp389_;
- gint _tmp390_;
- GeeList* _tmp391_;
- gint _tmp392_;
- gint _tmp393_;
- gint _tmp394_;
- GeeList* _tmp395_;
- gint _tmp396_;
- gint _tmp397_;
- gint _tmp398_;
- GtkMessageDialog* dialog = NULL;
- gint dialog_response = 0;
- gint _tmp466_;
-#line 332 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_IMPORT_MANIFEST (manifest), FALSE);
-#line 332 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail ((question == NULL) || IMPORT_UI_IS_QUESTION_PARAMS (question), FALSE);
-#line 334 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_strdup ("");
-#line 334 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp0_;
-#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = manifest->already_imported;
-#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp3_ > 0) {
-#line 3736 "Dialogs.c"
- gchar* photos_message = NULL;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- GeeList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gchar* _tmp10_;
- gchar* videos_message = NULL;
- GeeList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- GeeList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gchar* _tmp17_;
- gchar* both_message = NULL;
- GeeList* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- GeeList* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- gchar* _tmp24_;
- const gchar* _tmp25_;
- GeeList* _tmp26_;
- const gchar* _tmp27_;
- const gchar* _tmp28_;
- const gchar* _tmp29_;
- const gchar* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- const gchar* _tmp34_;
- GeeList* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
-#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = manifest->already_imported;
-#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_;
-#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = manifest->already_imported;
-#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _tmp8_;
-#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = g_strdup_printf (ngettext ("1 duplicate photo was not imported:\n", "%d duplicate photos were not imported:\n", (gulong) _tmp6_), _tmp9_);
-#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photos_message = _tmp10_;
-#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = manifest->already_imported;
-#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = _tmp12_;
-#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = manifest->already_imported;
-#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = _tmp15_;
-#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = g_strdup_printf (ngettext ("1 duplicate video was not imported:\n", "%d duplicate videos were not imported:\n", (gulong) _tmp13_), _tmp16_);
-#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala"
- videos_message = _tmp17_;
-#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = manifest->already_imported;
-#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = _tmp19_;
-#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = manifest->already_imported;
-#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = _tmp22_;
-#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = g_strdup_printf (ngettext ("1 duplicate photo/video was not imported:\n", "%d duplicate photos/videos were not imported:\n", (gulong) _tmp20_), _tmp23_);
-#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala"
- both_message = _tmp24_;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp25_ = message;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp26_ = manifest->already_imported;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp27_ = photos_message;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp28_ = videos_message;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp29_ = both_message;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp30_ = both_message;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp31_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_, _tmp28_, _tmp29_, _tmp30_);
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp32_ = _tmp31_;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp33_ = g_strconcat (_tmp25_, _tmp32_, NULL);
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp33_;
-#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp32_);
-#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp34_ = message;
-#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp35_ = manifest->already_imported;
-#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp36_ = import_ui_generate_import_failure_list (_tmp35_, show_dest_id);
-#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp37_ = _tmp36_;
-#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp38_ = g_strconcat (_tmp34_, _tmp37_, NULL);
-#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp38_;
-#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp37_);
-#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (both_message);
-#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (videos_message);
-#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (photos_message);
-#line 3869 "Dialogs.c"
- }
-#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp39_ = manifest->failed;
-#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp40_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp41_ = _tmp40_;
-#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp41_ > 0) {
-#line 3879 "Dialogs.c"
- const gchar* _tmp42_;
- gint _tmp43_;
- gint _tmp44_;
- gchar* photos_message = NULL;
- GeeList* _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
- GeeList* _tmp50_;
- gint _tmp51_;
- gint _tmp52_;
- gchar* _tmp53_;
- gchar* videos_message = NULL;
- GeeList* _tmp54_;
- gint _tmp55_;
- gint _tmp56_;
- GeeList* _tmp57_;
- gint _tmp58_;
- gint _tmp59_;
- gchar* _tmp60_;
- gchar* both_message = NULL;
- GeeList* _tmp61_;
- gint _tmp62_;
- gint _tmp63_;
- GeeList* _tmp64_;
- gint _tmp65_;
- gint _tmp66_;
- gchar* _tmp67_;
- gchar* neither_message = NULL;
- GeeList* _tmp68_;
- gint _tmp69_;
- gint _tmp70_;
- GeeList* _tmp71_;
- gint _tmp72_;
- gint _tmp73_;
- gchar* _tmp74_;
- const gchar* _tmp75_;
- GeeList* _tmp76_;
- const gchar* _tmp77_;
- const gchar* _tmp78_;
- const gchar* _tmp79_;
- const gchar* _tmp80_;
- gchar* _tmp81_;
- gchar* _tmp82_;
- gchar* _tmp83_;
- const gchar* _tmp84_;
- GeeList* _tmp85_;
- gchar* _tmp86_;
- gchar* _tmp87_;
- gchar* _tmp88_;
-#line 354 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp42_ = message;
-#line 354 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp43_ = strlen (_tmp42_);
-#line 354 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp44_ = _tmp43_;
-#line 354 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp44_ > 0) {
-#line 3937 "Dialogs.c"
- const gchar* _tmp45_;
- gchar* _tmp46_;
-#line 355 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp45_ = message;
-#line 355 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp46_ = g_strconcat (_tmp45_, "\n", NULL);
-#line 355 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 355 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp46_;
-#line 3948 "Dialogs.c"
- }
-#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp47_ = manifest->failed;
-#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp48_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp49_ = _tmp48_;
-#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp50_ = manifest->failed;
-#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp51_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp52_ = _tmp51_;
-#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp53_ = g_strdup_printf (ngettext ("1 photo failed to import due to a file or hardware error:\n", "%d photos failed to import due to a file or hardware error:\n", (gulong) _tmp49_), _tmp52_);
-#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photos_message = _tmp53_;
-#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp54_ = manifest->failed;
-#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp55_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp56_ = _tmp55_;
-#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp57_ = manifest->failed;
-#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp58_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp59_ = _tmp58_;
-#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp60_ = g_strdup_printf (ngettext ("1 video failed to import due to a file or hardware error:\n", "%d videos failed to import due to a file or hardware error:\n", (gulong) _tmp56_), _tmp59_);
-#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala"
- videos_message = _tmp60_;
-#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp61_ = manifest->failed;
-#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp62_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp63_ = _tmp62_;
-#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp64_ = manifest->failed;
-#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp65_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp66_ = _tmp65_;
-#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp67_ = g_strdup_printf (ngettext ("1 photo/video failed to import due to a file or hardware error:\n", "%d photos/videos failed to import due to a file or hardware error:\n", (gulong) _tmp63_), _tmp66_);
-#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala"
- both_message = _tmp67_;
-#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp68_ = manifest->failed;
-#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp69_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp70_ = _tmp69_;
-#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp71_ = manifest->failed;
-#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp72_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp73_ = _tmp72_;
-#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp74_ = g_strdup_printf (ngettext ("1 file failed to import due to a file or hardware error:\n", "%d files failed to import due to a file or hardware error:\n", (gulong) _tmp70_), _tmp73_);
-#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala"
- neither_message = _tmp74_;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp75_ = message;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp76_ = manifest->failed;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp77_ = photos_message;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp78_ = videos_message;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp79_ = both_message;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp80_ = neither_message;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp81_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_COLLECTION, GeeCollection), _tmp77_, _tmp78_, _tmp79_, _tmp80_);
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp82_ = _tmp81_;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp83_ = g_strconcat (_tmp75_, _tmp82_, NULL);
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp83_;
-#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp82_);
-#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp84_ = message;
-#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp85_ = manifest->failed;
-#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp86_ = import_ui_generate_import_failure_list (_tmp85_, show_dest_id);
-#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp87_ = _tmp86_;
-#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp88_ = g_strconcat (_tmp84_, _tmp87_, NULL);
-#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp88_;
-#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp87_);
-#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (neither_message);
-#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (both_message);
-#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (videos_message);
-#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (photos_message);
-#line 4062 "Dialogs.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp89_ = manifest->write_failed;
-#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp90_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp89_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp91_ = _tmp90_;
-#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp91_ > 0) {
-#line 4072 "Dialogs.c"
- const gchar* _tmp92_;
- gint _tmp93_;
- gint _tmp94_;
- gchar* photos_message = NULL;
- GeeList* _tmp97_;
- gint _tmp98_;
- gint _tmp99_;
- GeeList* _tmp100_;
- gint _tmp101_;
- gint _tmp102_;
- gchar* _tmp103_;
- gchar* videos_message = NULL;
- GeeList* _tmp104_;
- gint _tmp105_;
- gint _tmp106_;
- GeeList* _tmp107_;
- gint _tmp108_;
- gint _tmp109_;
- gchar* _tmp110_;
- gchar* both_message = NULL;
- GeeList* _tmp111_;
- gint _tmp112_;
- gint _tmp113_;
- GeeList* _tmp114_;
- gint _tmp115_;
- gint _tmp116_;
- gchar* _tmp117_;
- gchar* neither_message = NULL;
- GeeList* _tmp118_;
- gint _tmp119_;
- gint _tmp120_;
- GeeList* _tmp121_;
- gint _tmp122_;
- gint _tmp123_;
- gchar* _tmp124_;
- const gchar* _tmp125_;
- GeeList* _tmp126_;
- const gchar* _tmp127_;
- const gchar* _tmp128_;
- const gchar* _tmp129_;
- const gchar* _tmp130_;
- gchar* _tmp131_;
- gchar* _tmp132_;
- gchar* _tmp133_;
- const gchar* _tmp134_;
- GeeList* _tmp135_;
- gchar* _tmp136_;
- gchar* _tmp137_;
- gchar* _tmp138_;
-#line 377 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp92_ = message;
-#line 377 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp93_ = strlen (_tmp92_);
-#line 377 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp94_ = _tmp93_;
-#line 377 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp94_ > 0) {
-#line 4130 "Dialogs.c"
- const gchar* _tmp95_;
- gchar* _tmp96_;
-#line 378 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp95_ = message;
-#line 378 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp96_ = g_strconcat (_tmp95_, "\n", NULL);
-#line 378 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 378 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp96_;
-#line 4141 "Dialogs.c"
- }
-#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp97_ = manifest->write_failed;
-#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp98_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp99_ = _tmp98_;
-#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp100_ = manifest->write_failed;
-#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp101_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp102_ = _tmp101_;
-#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp103_ = g_strdup_printf (ngettext ("1 photo failed to import because the photo library folder was not writ" \
-"able:\n", "%d photos failed to import because the photo library folder was not wr" \
-"itable:\n", (gulong) _tmp99_), _tmp102_);
-#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photos_message = _tmp103_;
-#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp104_ = manifest->write_failed;
-#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp105_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp106_ = _tmp105_;
-#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp107_ = manifest->write_failed;
-#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp108_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp109_ = _tmp108_;
-#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp110_ = g_strdup_printf (ngettext ("1 video failed to import because the photo library folder was not writ" \
-"able:\n", "%d videos failed to import because the photo library folder was not wr" \
-"itable:\n", (gulong) _tmp106_), _tmp109_);
-#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala"
- videos_message = _tmp110_;
-#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp111_ = manifest->write_failed;
-#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp112_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp111_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp113_ = _tmp112_;
-#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp114_ = manifest->write_failed;
-#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp115_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp116_ = _tmp115_;
-#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp117_ = g_strdup_printf (ngettext ("1 photo/video failed to import because the photo library folder was no" \
-"t writable:\n", "%d photos/videos failed to import because the photo library folder was" \
-" not writable:\n", (gulong) _tmp113_), _tmp116_);
-#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala"
- both_message = _tmp117_;
-#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp118_ = manifest->write_failed;
-#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp119_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp118_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp120_ = _tmp119_;
-#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp121_ = manifest->write_failed;
-#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp122_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp121_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp123_ = _tmp122_;
-#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp124_ = g_strdup_printf (ngettext ("1 file failed to import because the photo library folder was not writa" \
-"ble:\n", "%d files failed to import because the photo library folder was not wri" \
-"table:\n", (gulong) _tmp120_), _tmp123_);
-#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala"
- neither_message = _tmp124_;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp125_ = message;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp126_ = manifest->write_failed;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp127_ = photos_message;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp128_ = videos_message;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp129_ = both_message;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp130_ = neither_message;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp131_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp126_, GEE_TYPE_COLLECTION, GeeCollection), _tmp127_, _tmp128_, _tmp129_, _tmp130_);
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp132_ = _tmp131_;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp133_ = g_strconcat (_tmp125_, _tmp132_, NULL);
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp133_;
-#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp132_);
-#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp134_ = message;
-#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp135_ = manifest->write_failed;
-#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp136_ = import_ui_generate_import_failure_list (_tmp135_, show_dest_id);
-#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp137_ = _tmp136_;
-#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp138_ = g_strconcat (_tmp134_, _tmp137_, NULL);
-#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp138_;
-#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp137_);
-#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (neither_message);
-#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (both_message);
-#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (videos_message);
-#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (photos_message);
-#line 4255 "Dialogs.c"
- }
-#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp139_ = manifest->camera_failed;
-#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp140_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp139_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp141_ = _tmp140_;
-#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp141_ > 0) {
-#line 4265 "Dialogs.c"
- const gchar* _tmp142_;
- gint _tmp143_;
- gint _tmp144_;
- gchar* photos_message = NULL;
- GeeList* _tmp147_;
- gint _tmp148_;
- gint _tmp149_;
- GeeList* _tmp150_;
- gint _tmp151_;
- gint _tmp152_;
- gchar* _tmp153_;
- gchar* videos_message = NULL;
- GeeList* _tmp154_;
- gint _tmp155_;
- gint _tmp156_;
- GeeList* _tmp157_;
- gint _tmp158_;
- gint _tmp159_;
- gchar* _tmp160_;
- gchar* both_message = NULL;
- GeeList* _tmp161_;
- gint _tmp162_;
- gint _tmp163_;
- GeeList* _tmp164_;
- gint _tmp165_;
- gint _tmp166_;
- gchar* _tmp167_;
- gchar* neither_message = NULL;
- GeeList* _tmp168_;
- gint _tmp169_;
- gint _tmp170_;
- GeeList* _tmp171_;
- gint _tmp172_;
- gint _tmp173_;
- gchar* _tmp174_;
- const gchar* _tmp175_;
- GeeList* _tmp176_;
- const gchar* _tmp177_;
- const gchar* _tmp178_;
- const gchar* _tmp179_;
- const gchar* _tmp180_;
- gchar* _tmp181_;
- gchar* _tmp182_;
- gchar* _tmp183_;
- const gchar* _tmp184_;
- GeeList* _tmp185_;
- gchar* _tmp186_;
- gchar* _tmp187_;
- gchar* _tmp188_;
-#line 400 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp142_ = message;
-#line 400 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp143_ = strlen (_tmp142_);
-#line 400 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp144_ = _tmp143_;
-#line 400 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp144_ > 0) {
-#line 4323 "Dialogs.c"
- const gchar* _tmp145_;
- gchar* _tmp146_;
-#line 401 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp145_ = message;
-#line 401 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp146_ = g_strconcat (_tmp145_, "\n", NULL);
-#line 401 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 401 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp146_;
-#line 4334 "Dialogs.c"
- }
-#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp147_ = manifest->camera_failed;
-#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp148_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp147_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp149_ = _tmp148_;
-#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp150_ = manifest->camera_failed;
-#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp151_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp150_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp152_ = _tmp151_;
-#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp153_ = g_strdup_printf (ngettext ("1 photo failed to import due to a camera error:\n", "%d photos failed to import due to a camera error:\n", (gulong) _tmp149_), _tmp152_);
-#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photos_message = _tmp153_;
-#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp154_ = manifest->camera_failed;
-#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp155_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp154_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp156_ = _tmp155_;
-#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp157_ = manifest->camera_failed;
-#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp158_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp157_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp159_ = _tmp158_;
-#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp160_ = g_strdup_printf (ngettext ("1 video failed to import due to a camera error:\n", "%d videos failed to import due to a camera error:\n", (gulong) _tmp156_), _tmp159_);
-#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala"
- videos_message = _tmp160_;
-#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp161_ = manifest->camera_failed;
-#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp162_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp161_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp163_ = _tmp162_;
-#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp164_ = manifest->camera_failed;
-#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp165_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp164_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp166_ = _tmp165_;
-#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp167_ = g_strdup_printf (ngettext ("1 photo/video failed to import due to a camera error:\n", "%d photos/videos failed to import due to a camera error:\n", (gulong) _tmp163_), _tmp166_);
-#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala"
- both_message = _tmp167_;
-#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp168_ = manifest->camera_failed;
-#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp169_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp168_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp170_ = _tmp169_;
-#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp171_ = manifest->camera_failed;
-#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp172_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp171_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp173_ = _tmp172_;
-#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp174_ = g_strdup_printf (ngettext ("1 file failed to import due to a camera error:\n", "%d files failed to import due to a camera error:\n", (gulong) _tmp170_), _tmp173_);
-#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala"
- neither_message = _tmp174_;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp175_ = message;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp176_ = manifest->camera_failed;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp177_ = photos_message;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp178_ = videos_message;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp179_ = both_message;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp180_ = neither_message;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp181_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp176_, GEE_TYPE_COLLECTION, GeeCollection), _tmp177_, _tmp178_, _tmp179_, _tmp180_);
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp182_ = _tmp181_;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp183_ = g_strconcat (_tmp175_, _tmp182_, NULL);
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp183_;
-#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp182_);
-#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp184_ = message;
-#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp185_ = manifest->camera_failed;
-#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp186_ = import_ui_generate_import_failure_list (_tmp185_, show_dest_id);
-#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp187_ = _tmp186_;
-#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp188_ = g_strconcat (_tmp184_, _tmp187_, NULL);
-#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp188_;
-#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp187_);
-#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (neither_message);
-#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (both_message);
-#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (videos_message);
-#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (photos_message);
-#line 4448 "Dialogs.c"
- }
-#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp189_ = manifest->corrupt_files;
-#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp190_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp189_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp191_ = _tmp190_;
-#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp191_ > 0) {
-#line 4458 "Dialogs.c"
- const gchar* _tmp192_;
- gint _tmp193_;
- gint _tmp194_;
- gchar* photos_message = NULL;
- GeeList* _tmp197_;
- gint _tmp198_;
- gint _tmp199_;
- GeeList* _tmp200_;
- gint _tmp201_;
- gint _tmp202_;
- gchar* _tmp203_;
- gchar* videos_message = NULL;
- GeeList* _tmp204_;
- gint _tmp205_;
- gint _tmp206_;
- GeeList* _tmp207_;
- gint _tmp208_;
- gint _tmp209_;
- gchar* _tmp210_;
- gchar* both_message = NULL;
- GeeList* _tmp211_;
- gint _tmp212_;
- gint _tmp213_;
- GeeList* _tmp214_;
- gint _tmp215_;
- gint _tmp216_;
- gchar* _tmp217_;
- gchar* neither_message = NULL;
- GeeList* _tmp218_;
- gint _tmp219_;
- gint _tmp220_;
- GeeList* _tmp221_;
- gint _tmp222_;
- gint _tmp223_;
- gchar* _tmp224_;
- const gchar* _tmp225_;
- GeeList* _tmp226_;
- const gchar* _tmp227_;
- const gchar* _tmp228_;
- const gchar* _tmp229_;
- const gchar* _tmp230_;
- gchar* _tmp231_;
- gchar* _tmp232_;
- gchar* _tmp233_;
- const gchar* _tmp234_;
- GeeList* _tmp235_;
- gchar* _tmp236_;
- gchar* _tmp237_;
- gchar* _tmp238_;
-#line 423 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp192_ = message;
-#line 423 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp193_ = strlen (_tmp192_);
-#line 423 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp194_ = _tmp193_;
-#line 423 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp194_ > 0) {
-#line 4516 "Dialogs.c"
- const gchar* _tmp195_;
- gchar* _tmp196_;
-#line 424 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp195_ = message;
-#line 424 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp196_ = g_strconcat (_tmp195_, "\n", NULL);
-#line 424 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 424 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp196_;
-#line 4527 "Dialogs.c"
- }
-#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp197_ = manifest->corrupt_files;
-#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp198_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp197_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp199_ = _tmp198_;
-#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp200_ = manifest->corrupt_files;
-#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp201_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp200_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp202_ = _tmp201_;
-#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp203_ = g_strdup_printf (ngettext ("1 photo failed to import because it was corrupt:\n", "%d photos failed to import because they were corrupt:\n", (gulong) _tmp199_), _tmp202_);
-#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photos_message = _tmp203_;
-#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp204_ = manifest->corrupt_files;
-#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp205_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp204_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp206_ = _tmp205_;
-#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp207_ = manifest->corrupt_files;
-#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp208_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp207_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp209_ = _tmp208_;
-#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp210_ = g_strdup_printf (ngettext ("1 video failed to import because it was corrupt:\n", "%d videos failed to import because they were corrupt:\n", (gulong) _tmp206_), _tmp209_);
-#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala"
- videos_message = _tmp210_;
-#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp211_ = manifest->corrupt_files;
-#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp212_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp211_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp213_ = _tmp212_;
-#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp214_ = manifest->corrupt_files;
-#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp215_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp214_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp216_ = _tmp215_;
-#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp217_ = g_strdup_printf (ngettext ("1 photo/video failed to import because it was corrupt:\n", "%d photos/videos failed to import because they were corrupt:\n", (gulong) _tmp213_), _tmp216_);
-#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala"
- both_message = _tmp217_;
-#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp218_ = manifest->corrupt_files;
-#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp219_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp218_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp220_ = _tmp219_;
-#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp221_ = manifest->corrupt_files;
-#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp222_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp221_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp223_ = _tmp222_;
-#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp224_ = g_strdup_printf (ngettext ("1 file failed to import because it was corrupt:\n", "%d files failed to import because it was corrupt:\n", (gulong) _tmp220_), _tmp223_);
-#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala"
- neither_message = _tmp224_;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp225_ = message;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp226_ = manifest->corrupt_files;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp227_ = photos_message;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp228_ = videos_message;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp229_ = both_message;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp230_ = neither_message;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp231_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp226_, GEE_TYPE_COLLECTION, GeeCollection), _tmp227_, _tmp228_, _tmp229_, _tmp230_);
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp232_ = _tmp231_;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp233_ = g_strconcat (_tmp225_, _tmp232_, NULL);
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp233_;
-#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp232_);
-#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp234_ = message;
-#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp235_ = manifest->corrupt_files;
-#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp236_ = import_ui_generate_import_failure_list (_tmp235_, show_dest_id);
-#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp237_ = _tmp236_;
-#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp238_ = g_strconcat (_tmp234_, _tmp237_, NULL);
-#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp238_;
-#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp237_);
-#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (neither_message);
-#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (both_message);
-#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (videos_message);
-#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (photos_message);
-#line 4641 "Dialogs.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp239_ = manifest->skipped_photos;
-#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp240_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp239_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp241_ = _tmp240_;
-#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp241_ > 0) {
-#line 4651 "Dialogs.c"
- const gchar* _tmp242_;
- gint _tmp243_;
- gint _tmp244_;
- gchar* skipped_photos_message = NULL;
- GeeList* _tmp247_;
- gint _tmp248_;
- gint _tmp249_;
- GeeList* _tmp250_;
- gint _tmp251_;
- gint _tmp252_;
- gchar* _tmp253_;
- const gchar* _tmp254_;
- const gchar* _tmp255_;
- gchar* _tmp256_;
- const gchar* _tmp257_;
- GeeList* _tmp258_;
- gchar* _tmp259_;
- gchar* _tmp260_;
- gchar* _tmp261_;
-#line 446 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp242_ = message;
-#line 446 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp243_ = strlen (_tmp242_);
-#line 446 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp244_ = _tmp243_;
-#line 446 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp244_ > 0) {
-#line 4679 "Dialogs.c"
- const gchar* _tmp245_;
- gchar* _tmp246_;
-#line 447 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp245_ = message;
-#line 447 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp246_ = g_strconcat (_tmp245_, "\n", NULL);
-#line 447 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 447 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp246_;
-#line 4690 "Dialogs.c"
- }
-#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp247_ = manifest->skipped_photos;
-#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp248_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp247_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp249_ = _tmp248_;
-#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp250_ = manifest->skipped_photos;
-#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp251_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp250_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp252_ = _tmp251_;
-#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp253_ = g_strdup_printf (ngettext ("1 unsupported photo skipped:\n", "%d unsupported photos skipped:\n", (gulong) _tmp249_), _tmp252_);
-#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala"
- skipped_photos_message = _tmp253_;
-#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp254_ = message;
-#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp255_ = skipped_photos_message;
-#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp256_ = g_strconcat (_tmp254_, _tmp255_, NULL);
-#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp256_;
-#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp257_ = message;
-#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp258_ = manifest->skipped_photos;
-#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp259_ = import_ui_generate_import_failure_list (_tmp258_, show_dest_id);
-#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp260_ = _tmp259_;
-#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp261_ = g_strconcat (_tmp257_, _tmp260_, NULL);
-#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp261_;
-#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp260_);
-#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (skipped_photos_message);
-#line 4736 "Dialogs.c"
- }
-#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp262_ = manifest->skipped_files;
-#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp263_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp262_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp264_ = _tmp263_;
-#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp264_ > 0) {
-#line 4746 "Dialogs.c"
- const gchar* _tmp265_;
- gint _tmp266_;
- gint _tmp267_;
- gchar* skipped_files_message = NULL;
- GeeList* _tmp270_;
- gint _tmp271_;
- gint _tmp272_;
- GeeList* _tmp273_;
- gint _tmp274_;
- gint _tmp275_;
- gchar* _tmp276_;
- const gchar* _tmp277_;
- const gchar* _tmp278_;
- gchar* _tmp279_;
-#line 462 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp265_ = message;
-#line 462 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp266_ = strlen (_tmp265_);
-#line 462 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp267_ = _tmp266_;
-#line 462 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp267_ > 0) {
-#line 4769 "Dialogs.c"
- const gchar* _tmp268_;
- gchar* _tmp269_;
-#line 463 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp268_ = message;
-#line 463 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp269_ = g_strconcat (_tmp268_, "\n", NULL);
-#line 463 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 463 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp269_;
-#line 4780 "Dialogs.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp270_ = manifest->skipped_files;
-#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp271_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp270_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp272_ = _tmp271_;
-#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp273_ = manifest->skipped_files;
-#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp274_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp273_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp275_ = _tmp274_;
-#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp276_ = g_strdup_printf (ngettext ("1 non-image file skipped.\n", "%d non-image files skipped.\n", (gulong) _tmp272_), _tmp275_);
-#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala"
- skipped_files_message = _tmp276_;
-#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp277_ = message;
-#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp278_ = skipped_files_message;
-#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp279_ = g_strconcat (_tmp277_, _tmp278_, NULL);
-#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp279_;
-#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (skipped_files_message);
-#line 4810 "Dialogs.c"
- }
-#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp280_ = manifest->aborted;
-#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp281_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp280_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp282_ = _tmp281_;
-#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp282_ > 0) {
-#line 4820 "Dialogs.c"
- const gchar* _tmp283_;
- gint _tmp284_;
- gint _tmp285_;
- gchar* photos_message = NULL;
- GeeList* _tmp288_;
- gint _tmp289_;
- gint _tmp290_;
- GeeList* _tmp291_;
- gint _tmp292_;
- gint _tmp293_;
- gchar* _tmp294_;
- gchar* videos_message = NULL;
- GeeList* _tmp295_;
- gint _tmp296_;
- gint _tmp297_;
- GeeList* _tmp298_;
- gint _tmp299_;
- gint _tmp300_;
- gchar* _tmp301_;
- gchar* both_message = NULL;
- GeeList* _tmp302_;
- gint _tmp303_;
- gint _tmp304_;
- GeeList* _tmp305_;
- gint _tmp306_;
- gint _tmp307_;
- gchar* _tmp308_;
- gchar* neither_message = NULL;
- GeeList* _tmp309_;
- gint _tmp310_;
- gint _tmp311_;
- GeeList* _tmp312_;
- gint _tmp313_;
- gint _tmp314_;
- gchar* _tmp315_;
- const gchar* _tmp316_;
- GeeList* _tmp317_;
- const gchar* _tmp318_;
- const gchar* _tmp319_;
- const gchar* _tmp320_;
- const gchar* _tmp321_;
- gchar* _tmp322_;
- gchar* _tmp323_;
- gchar* _tmp324_;
- const gchar* _tmp325_;
- GeeList* _tmp326_;
- gchar* _tmp327_;
- gchar* _tmp328_;
- gchar* _tmp329_;
-#line 475 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp283_ = message;
-#line 475 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp284_ = strlen (_tmp283_);
-#line 475 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp285_ = _tmp284_;
-#line 475 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp285_ > 0) {
-#line 4878 "Dialogs.c"
- const gchar* _tmp286_;
- gchar* _tmp287_;
-#line 476 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp286_ = message;
-#line 476 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp287_ = g_strconcat (_tmp286_, "\n", NULL);
-#line 476 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 476 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp287_;
-#line 4889 "Dialogs.c"
- }
-#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp288_ = manifest->aborted;
-#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp289_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp288_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp290_ = _tmp289_;
-#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp291_ = manifest->aborted;
-#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp292_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp291_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp293_ = _tmp292_;
-#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp294_ = g_strdup_printf (ngettext ("1 photo skipped due to user cancel:\n", "%d photos skipped due to user cancel:\n", (gulong) _tmp290_), _tmp293_);
-#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photos_message = _tmp294_;
-#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp295_ = manifest->aborted;
-#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp296_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp295_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp297_ = _tmp296_;
-#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp298_ = manifest->aborted;
-#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp299_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp298_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp300_ = _tmp299_;
-#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp301_ = g_strdup_printf (ngettext ("1 video skipped due to user cancel:\n", "%d videos skipped due to user cancel:\n", (gulong) _tmp297_), _tmp300_);
-#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala"
- videos_message = _tmp301_;
-#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp302_ = manifest->aborted;
-#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp303_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp302_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp304_ = _tmp303_;
-#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp305_ = manifest->aborted;
-#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp306_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp305_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp307_ = _tmp306_;
-#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp308_ = g_strdup_printf (ngettext ("1 photo/video skipped due to user cancel:\n", "%d photos/videos skipped due to user cancel:\n", (gulong) _tmp304_), _tmp307_);
-#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala"
- both_message = _tmp308_;
-#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp309_ = manifest->aborted;
-#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp310_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp309_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp311_ = _tmp310_;
-#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp312_ = manifest->aborted;
-#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp313_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp312_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp314_ = _tmp313_;
-#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp315_ = g_strdup_printf (ngettext ("1 file skipped due to user cancel:\n", "%d file skipped due to user cancel:\n", (gulong) _tmp311_), _tmp314_);
-#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala"
- neither_message = _tmp315_;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp316_ = message;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp317_ = manifest->aborted;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp318_ = photos_message;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp319_ = videos_message;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp320_ = both_message;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp321_ = neither_message;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp322_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp317_, GEE_TYPE_COLLECTION, GeeCollection), _tmp318_, _tmp319_, _tmp320_, _tmp321_);
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp323_ = _tmp322_;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp324_ = g_strconcat (_tmp316_, _tmp323_, NULL);
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp324_;
-#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp323_);
-#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp325_ = message;
-#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp326_ = manifest->aborted;
-#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp327_ = import_ui_generate_import_failure_list (_tmp326_, show_dest_id);
-#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp328_ = _tmp327_;
-#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp329_ = g_strconcat (_tmp325_, _tmp328_, NULL);
-#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp329_;
-#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp328_);
-#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (neither_message);
-#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (both_message);
-#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (videos_message);
-#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (photos_message);
-#line 5003 "Dialogs.c"
- }
-#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp330_ = manifest->success;
-#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp331_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp330_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp332_ = _tmp331_;
-#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp332_ > 0) {
-#line 5013 "Dialogs.c"
- const gchar* _tmp333_;
- gint _tmp334_;
- gint _tmp335_;
- gchar* photos_message = NULL;
- GeeList* _tmp338_;
- gint _tmp339_;
- gint _tmp340_;
- GeeList* _tmp341_;
- gint _tmp342_;
- gint _tmp343_;
- gchar* _tmp344_;
- gchar* videos_message = NULL;
- GeeList* _tmp345_;
- gint _tmp346_;
- gint _tmp347_;
- GeeList* _tmp348_;
- gint _tmp349_;
- gint _tmp350_;
- gchar* _tmp351_;
- gchar* both_message = NULL;
- GeeList* _tmp352_;
- gint _tmp353_;
- gint _tmp354_;
- GeeList* _tmp355_;
- gint _tmp356_;
- gint _tmp357_;
- gchar* _tmp358_;
- const gchar* _tmp359_;
- GeeList* _tmp360_;
- const gchar* _tmp361_;
- const gchar* _tmp362_;
- const gchar* _tmp363_;
- gchar* _tmp364_;
- gchar* _tmp365_;
- gchar* _tmp366_;
-#line 498 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp333_ = message;
-#line 498 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp334_ = strlen (_tmp333_);
-#line 498 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp335_ = _tmp334_;
-#line 498 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp335_ > 0) {
-#line 5057 "Dialogs.c"
- const gchar* _tmp336_;
- gchar* _tmp337_;
-#line 499 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp336_ = message;
-#line 499 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp337_ = g_strconcat (_tmp336_, "\n", NULL);
-#line 499 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 499 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp337_;
-#line 5068 "Dialogs.c"
- }
-#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp338_ = manifest->success;
-#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp339_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp338_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp340_ = _tmp339_;
-#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp341_ = manifest->success;
-#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp342_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp341_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp343_ = _tmp342_;
-#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp344_ = g_strdup_printf (ngettext ("1 photo successfully imported.\n", "%d photos successfully imported.\n", (gulong) _tmp340_), _tmp343_);
-#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photos_message = _tmp344_;
-#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp345_ = manifest->success;
-#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp346_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp345_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp347_ = _tmp346_;
-#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp348_ = manifest->success;
-#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp349_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp348_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp350_ = _tmp349_;
-#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp351_ = g_strdup_printf (ngettext ("1 video successfully imported.\n", "%d videos successfully imported.\n", (gulong) _tmp347_), _tmp350_);
-#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala"
- videos_message = _tmp351_;
-#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp352_ = manifest->success;
-#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp353_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp352_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp354_ = _tmp353_;
-#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp355_ = manifest->success;
-#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp356_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp355_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp357_ = _tmp356_;
-#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp358_ = g_strdup_printf (ngettext ("1 photo/video successfully imported.\n", "%d photos/videos successfully imported.\n", (gulong) _tmp354_), _tmp357_);
-#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala"
- both_message = _tmp358_;
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp359_ = message;
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp360_ = manifest->success;
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp361_ = photos_message;
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp362_ = videos_message;
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp363_ = both_message;
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp364_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp360_, GEE_TYPE_COLLECTION, GeeCollection), _tmp361_, _tmp362_, _tmp363_, "");
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp365_ = _tmp364_;
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp366_ = g_strconcat (_tmp359_, _tmp365_, NULL);
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp366_;
-#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp365_);
-#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (both_message);
-#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (videos_message);
-#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (photos_message);
-#line 5146 "Dialogs.c"
- }
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp367_ = manifest->success;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp368_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp367_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp369_ = _tmp368_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp370_ = manifest->failed;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp371_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp370_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp372_ = _tmp371_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp373_ = manifest->camera_failed;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp374_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp373_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp375_ = _tmp374_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp376_ = manifest->skipped_photos;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp377_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp376_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp378_ = _tmp377_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp379_ = manifest->skipped_files;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp380_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp379_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp381_ = _tmp380_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp382_ = manifest->corrupt_files;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp383_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp382_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp384_ = _tmp383_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp385_ = manifest->already_imported;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp386_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp385_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp387_ = _tmp386_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp388_ = manifest->aborted;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp389_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp388_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp390_ = _tmp389_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp391_ = manifest->write_failed;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp392_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp391_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp393_ = _tmp392_;
-#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala"
- total = (((((((_tmp369_ + _tmp372_) + _tmp375_) + _tmp378_) + _tmp381_) + _tmp384_) + _tmp387_) + _tmp390_) + _tmp393_;
-#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp394_ = total;
-#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp395_ = manifest->all;
-#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp396_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp395_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp397_ = _tmp396_;
-#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _vala_assert (_tmp394_ == _tmp397_, "total == manifest.all.size");
-#line 522 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp398_ = total;
-#line 522 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp398_ == 0) {
-#line 5218 "Dialogs.c"
- const gchar* _tmp399_;
- gchar* _tmp400_;
-#line 523 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp399_ = message;
-#line 523 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp400_ = g_strconcat (_tmp399_, _ ("No photos or videos imported.\n"), NULL);
-#line 523 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 523 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp400_;
-#line 5229 "Dialogs.c"
- }
-#line 525 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = NULL;
-#line 526 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_response = (gint) GTK_RESPONSE_NONE;
-#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (question == NULL) {
-#line 5237 "Dialogs.c"
- AppWindow* _tmp401_;
- AppWindow* _tmp402_;
- const gchar* _tmp403_;
- GtkMessageDialog* _tmp404_;
- GtkMessageDialog* _tmp405_;
- GtkWidget* save_results_button = NULL;
- GtkMessageDialog* _tmp406_;
- GtkWidget* _tmp407_;
- GtkWidget* _tmp408_;
- GtkWidget* _tmp409_;
- GeeList* _tmp410_;
- gint _tmp411_;
- gint _tmp412_;
- GeeList* _tmp413_;
- gint _tmp414_;
- gint _tmp415_;
- GtkWidget* ok_button = NULL;
- GtkMessageDialog* _tmp416_;
- GtkWidget* _tmp417_;
- GtkWidget* _tmp418_;
- GtkMessageDialog* _tmp419_;
- GtkWidget* _tmp420_;
- GtkWindow* dialog_parent = NULL;
- GtkMessageDialog* _tmp421_;
- GtkContainer* _tmp422_;
- GtkWindow* _tmp423_;
- GtkMessageDialog* _tmp424_;
- GtkMessageDialog* _tmp425_;
- gint _tmp426_;
-#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp401_ = app_window_get_instance ();
-#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp402_ = _tmp401_;
-#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp403_ = message;
-#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp404_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp402_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_NONE, "%s", _tmp403_);
-#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp404_);
-#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp404_;
-#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp402_);
-#line 530 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp405_ = dialog;
-#line 530 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp405_, gtk_window_get_type (), GtkWindow), _ ("Import Complete"));
-#line 531 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp406_ = dialog;
-#line 531 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp407_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp406_, gtk_dialog_get_type (), GtkDialog), IMPORT_UI_SAVE_RESULTS_BUTTON_NAME, IMPORT_UI_SAVE_RESULTS_RESPONSE_ID);
-#line 531 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp408_ = _g_object_ref0 (_tmp407_);
-#line 531 "/home/jens/Source/shotwell/src/Dialogs.vala"
- save_results_button = _tmp408_;
-#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp409_ = save_results_button;
-#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp410_ = manifest->success;
-#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp411_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp410_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp412_ = _tmp411_;
-#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp413_ = manifest->all;
-#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp414_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp413_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp415_ = _tmp414_;
-#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_set_visible (_tmp409_, _tmp412_ < _tmp415_);
-#line 534 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp416_ = dialog;
-#line 534 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp417_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp416_, gtk_dialog_get_type (), GtkDialog), RESOURCES_OK_LABEL, (gint) GTK_RESPONSE_OK);
-#line 534 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp418_ = _g_object_ref0 (_tmp417_);
-#line 534 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ok_button = _tmp418_;
-#line 535 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp419_ = dialog;
-#line 535 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp420_ = ok_button;
-#line 535 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp419_, gtk_window_get_type (), GtkWindow), _tmp420_);
-#line 537 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp421_ = dialog;
-#line 537 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp422_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp421_, gtk_widget_get_type (), GtkWidget));
-#line 537 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp423_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp422_, gtk_window_get_type (), GtkWindow));
-#line 537 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_parent = _tmp423_;
-#line 538 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp424_ = dialog;
-#line 538 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp424_, gtk_dialog_get_type (), GtkDialog));
-#line 539 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp425_ = dialog;
-#line 539 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp425_, gtk_widget_get_type (), GtkWidget));
-#line 541 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp426_ = dialog_response;
-#line 541 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp426_ == IMPORT_UI_SAVE_RESULTS_RESPONSE_ID) {
-#line 5345 "Dialogs.c"
- GtkWindow* _tmp427_;
- gchar* _tmp428_;
- gchar* _tmp429_;
-#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp427_ = dialog_parent;
-#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp428_ = import_ui_create_result_report_from_manifest (manifest);
-#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp429_ = _tmp428_;
-#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala"
- import_ui_save_import_results (_tmp427_, _tmp429_);
-#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp429_);
-#line 5359 "Dialogs.c"
- }
-#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog_parent);
-#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (ok_button);
-#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (save_results_button);
-#line 5367 "Dialogs.c"
- } else {
- const gchar* _tmp430_;
- const gchar* _tmp431_;
- gchar* _tmp432_;
- gchar* _tmp433_;
- gchar* _tmp434_;
- AppWindow* _tmp435_;
- AppWindow* _tmp436_;
- const gchar* _tmp437_;
- GtkMessageDialog* _tmp438_;
- GtkMessageDialog* _tmp439_;
- GtkWidget* save_results_button = NULL;
- GtkMessageDialog* _tmp440_;
- GtkWidget* _tmp441_;
- GtkWidget* _tmp442_;
- GtkWidget* _tmp443_;
- GeeList* _tmp444_;
- gint _tmp445_;
- gint _tmp446_;
- GeeList* _tmp447_;
- gint _tmp448_;
- gint _tmp449_;
- GtkWidget* no_button = NULL;
- GtkMessageDialog* _tmp450_;
- const gchar* _tmp451_;
- GtkWidget* _tmp452_;
- GtkWidget* _tmp453_;
- GtkMessageDialog* _tmp454_;
- const gchar* _tmp455_;
- GtkMessageDialog* _tmp456_;
- GtkWidget* _tmp457_;
- GtkMessageDialog* _tmp458_;
- GtkMessageDialog* _tmp464_;
- GtkMessageDialog* _tmp465_;
-#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp430_ = message;
-#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp431_ = question->question;
-#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp432_ = g_strconcat ("\n", _tmp431_, NULL);
-#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp433_ = _tmp432_;
-#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp434_ = g_strconcat (_tmp430_, _tmp433_, NULL);
-#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala"
- message = _tmp434_;
-#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp433_);
-#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp435_ = app_window_get_instance ();
-#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp436_ = _tmp435_;
-#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp437_ = message;
-#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp438_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp436_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", _tmp437_);
-#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp438_);
-#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp438_;
-#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp436_);
-#line 549 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp439_ = dialog;
-#line 549 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp439_, gtk_window_get_type (), GtkWindow), _ ("Import Complete"));
-#line 550 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp440_ = dialog;
-#line 550 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp441_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp440_, gtk_dialog_get_type (), GtkDialog), IMPORT_UI_SAVE_RESULTS_BUTTON_NAME, IMPORT_UI_SAVE_RESULTS_RESPONSE_ID);
-#line 550 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp442_ = _g_object_ref0 (_tmp441_);
-#line 550 "/home/jens/Source/shotwell/src/Dialogs.vala"
- save_results_button = _tmp442_;
-#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp443_ = save_results_button;
-#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp444_ = manifest->success;
-#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp445_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp444_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp446_ = _tmp445_;
-#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp447_ = manifest->all;
-#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp448_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp447_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp449_ = _tmp448_;
-#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_set_visible (_tmp443_, _tmp446_ < _tmp449_);
-#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp450_ = dialog;
-#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp451_ = question->no_button;
-#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp452_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp450_, gtk_dialog_get_type (), GtkDialog), _tmp451_, (gint) GTK_RESPONSE_NO);
-#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp453_ = _g_object_ref0 (_tmp452_);
-#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala"
- no_button = _tmp453_;
-#line 554 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp454_ = dialog;
-#line 554 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp455_ = question->yes_button;
-#line 554 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp454_, gtk_dialog_get_type (), GtkDialog), _tmp455_, (gint) GTK_RESPONSE_YES);
-#line 555 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp456_ = dialog;
-#line 555 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp457_ = no_button;
-#line 555 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp456_, gtk_window_get_type (), GtkWindow), _tmp457_);
-#line 557 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp458_ = dialog;
-#line 557 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp458_, gtk_dialog_get_type (), GtkDialog));
-#line 558 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 5490 "Dialogs.c"
- gint _tmp459_;
- GtkMessageDialog* _tmp460_;
- gchar* _tmp461_;
- gchar* _tmp462_;
- GtkMessageDialog* _tmp463_;
-#line 558 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp459_ = dialog_response;
-#line 558 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!(_tmp459_ == IMPORT_UI_SAVE_RESULTS_RESPONSE_ID)) {
-#line 558 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 5502 "Dialogs.c"
- }
-#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp460_ = dialog;
-#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp461_ = import_ui_create_result_report_from_manifest (manifest);
-#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp462_ = _tmp461_;
-#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala"
- import_ui_save_import_results (G_TYPE_CHECK_INSTANCE_CAST (_tmp460_, gtk_window_get_type (), GtkWindow), _tmp462_);
-#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp462_);
-#line 560 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp463_ = dialog;
-#line 560 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp463_, gtk_dialog_get_type (), GtkDialog));
-#line 5518 "Dialogs.c"
- }
-#line 563 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp464_ = dialog;
-#line 563 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp464_, gtk_widget_get_type (), GtkWidget));
-#line 564 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp465_ = dialog;
-#line 564 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp465_, gtk_widget_get_type (), GtkWidget));
-#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (no_button);
-#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (save_results_button);
-#line 5532 "Dialogs.c"
- }
-#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp466_ = dialog_response;
-#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp466_ == ((gint) GTK_RESPONSE_YES);
-#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (message);
-#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 5544 "Dialogs.c"
-}
-
-
-static guint8*
-string_get_data (const gchar* self,
- int* result_length1)
-{
- guint8* result;
- guint8* res = NULL;
- gint res_length1;
- gint _res_size_;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- guint8* _tmp3_;
- gint _tmp3__length1;
- guint8* _tmp4_;
- gint _tmp4__length1;
-#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res = (guint8*) self;
-#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res_length1 = -1;
-#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _res_size_ = res_length1;
-#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strlen (self);
-#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _tmp0_;
-#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res_length1 = (gint) _tmp1_;
-#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = res_length1;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = res;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3__length1 = res_length1;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4__length1 = _tmp3__length1;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (result_length1) {
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result_length1 = _tmp4__length1;
-#line 5591 "Dialogs.c"
- }
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp4_;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 5597 "Dialogs.c"
-}
-
-
-void
-import_ui_save_import_results (GtkWindow* chooser_dialog_parent,
- const gchar* results_log)
-{
- GtkFileChooserDialog* chooser_dialog = NULL;
- GtkFileChooserDialog* _tmp0_;
- GtkFileChooserDialog* _tmp1_;
- GtkFileChooserDialog* _tmp2_;
- const gchar* _tmp3_;
- GtkFileChooserDialog* _tmp4_;
- GtkFileChooserDialog* _tmp5_;
- gint dialog_result = 0;
- GtkFileChooserDialog* _tmp6_;
- GFile* chosen_file = NULL;
- GtkFileChooserDialog* _tmp7_;
- GFile* _tmp8_;
- GtkFileChooserDialog* _tmp9_;
- GtkFileChooserDialog* _tmp10_;
- gboolean _tmp11_ = FALSE;
- gint _tmp12_;
- GError * _inner_error_ = NULL;
-#line 570 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail ((chooser_dialog_parent == NULL) || GTK_IS_WINDOW (chooser_dialog_parent));
-#line 570 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (results_log != NULL);
-#line 571 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (IMPORT_UI_SAVE_RESULTS_FILE_CHOOSER_TITLE, chooser_dialog_parent, GTK_FILE_CHOOSER_ACTION_SAVE, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_SAVE_AS_LABEL, GTK_RESPONSE_ACCEPT, NULL, NULL);
-#line 571 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp0_);
-#line 571 "/home/jens/Source/shotwell/src/Dialogs.vala"
- chooser_dialog = _tmp0_;
-#line 574 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = chooser_dialog;
-#line 574 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_do_overwrite_confirmation (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_file_chooser_get_type (), GtkFileChooser), TRUE);
-#line 575 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = chooser_dialog;
-#line 575 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = g_get_home_dir ();
-#line 575 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp3_);
-#line 576 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = chooser_dialog;
-#line 576 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_current_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_file_chooser_get_type (), GtkFileChooser), "Shotwell Import Log.txt");
-#line 577 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = chooser_dialog;
-#line 577 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE);
-#line 579 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = chooser_dialog;
-#line 579 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_result = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_dialog_get_type (), GtkDialog));
-#line 580 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = chooser_dialog;
-#line 580 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = gtk_file_chooser_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 580 "/home/jens/Source/shotwell/src/Dialogs.vala"
- chosen_file = _tmp8_;
-#line 581 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = chooser_dialog;
-#line 581 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 582 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = chooser_dialog;
-#line 582 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = dialog_result;
-#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp12_ == ((gint) GTK_RESPONSE_ACCEPT)) {
-#line 5672 "Dialogs.c"
- GFile* _tmp13_;
-#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = chosen_file;
-#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = _tmp13_ != NULL;
-#line 5678 "Dialogs.c"
- } else {
-#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = FALSE;
-#line 5682 "Dialogs.c"
- }
-#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp11_) {
-#line 5686 "Dialogs.c"
- {
- GFileOutputStream* outstream = NULL;
- GFile* _tmp14_;
- GFileOutputStream* _tmp15_;
- GFileOutputStream* _tmp16_;
- guint8* _tmp17_;
- gint _tmp17__length1;
- guint8* _tmp18_;
- gint _tmp18__length1;
- GFileOutputStream* _tmp19_;
-#line 586 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = chosen_file;
-#line 586 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = g_file_replace (_tmp14_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &_inner_error_);
-#line 586 "/home/jens/Source/shotwell/src/Dialogs.vala"
- outstream = _tmp15_;
-#line 586 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5705 "Dialogs.c"
- goto __catch437_g_error;
- }
-#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = outstream;
-#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = string_get_data (results_log, &_tmp17__length1);
-#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = _tmp17_;
-#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18__length1 = _tmp17__length1;
-#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_output_stream_write (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, g_output_stream_get_type (), GOutputStream), _tmp18_, (gsize) _tmp18__length1, NULL, &_inner_error_);
-#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (outstream);
-#line 5722 "Dialogs.c"
- goto __catch437_g_error;
- }
-#line 588 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = outstream;
-#line 588 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_output_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, g_output_stream_get_type (), GOutputStream), NULL, &_inner_error_);
-#line 588 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 588 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (outstream);
-#line 5733 "Dialogs.c"
- goto __catch437_g_error;
- }
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (outstream);
-#line 5738 "Dialogs.c"
- }
- goto __finally437;
- __catch437_g_error:
- {
- GError* err = NULL;
- GFile* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- GError* _tmp23_;
- const gchar* _tmp24_;
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- err = _inner_error_;
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _inner_error_ = NULL;
-#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = chosen_file;
-#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = g_file_get_path (_tmp20_);
-#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = _tmp21_;
-#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = err;
-#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = _tmp23_->message;
-#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_critical ("Dialogs.vala:590: couldn't save import results to log file %s: %s", _tmp22_, _tmp24_);
-#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp22_);
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_error_free0 (err);
-#line 5769 "Dialogs.c"
- }
- __finally437:
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (chosen_file);
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (chooser_dialog);
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.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 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_clear_error (&_inner_error_);
-#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return;
-#line 5784 "Dialogs.c"
- }
- }
-#line 570 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (chosen_file);
-#line 570 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (chooser_dialog);
-#line 5791 "Dialogs.c"
-}
-
-
-static gboolean
-_text_entry_dialog_mediator_on_modify_validate_text_entry_dialog_on_modify_validate_type (const gchar* text,
- gpointer self)
-{
- gboolean result;
- result = text_entry_dialog_mediator_on_modify_validate ((TextEntryDialogMediator*) self, text);
-#line 604 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 5803 "Dialogs.c"
-}
-
-
-TextEntryDialogMediator*
-text_entry_dialog_mediator_construct (GType object_type,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text,
- GeeCollection* completion_list,
- const gchar* completion_delimiter)
-{
- TextEntryDialogMediator* self = NULL;
- TextEntryDialog* _tmp0_;
- TextEntryDialog* _tmp1_;
-#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (title != NULL, NULL);
-#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (label != NULL, NULL);
-#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail ((completion_list == NULL) || GEE_IS_COLLECTION (completion_list), NULL);
-#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (TextEntryDialogMediator*) g_type_create_instance (object_type);
-#line 603 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = text_entry_dialog_new ();
-#line 603 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp0_);
-#line 603 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (self->priv->dialog);
-#line 603 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->priv->dialog = _tmp0_;
-#line 604 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = self->priv->dialog;
-#line 604 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text_entry_dialog_setup (_tmp1_, _text_entry_dialog_mediator_on_modify_validate_text_entry_dialog_on_modify_validate_type, self, title, label, initial_text, completion_list, completion_delimiter);
-#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 5840 "Dialogs.c"
-}
-
-
-static gboolean
-text_entry_dialog_mediator_real_on_modify_validate (TextEntryDialogMediator* self,
- const gchar* text)
-{
- gboolean result = FALSE;
-#line 607 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (text != NULL, FALSE);
-#line 608 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = TRUE;
-#line 608 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 5855 "Dialogs.c"
-}
-
-
-gboolean
-text_entry_dialog_mediator_on_modify_validate (TextEntryDialogMediator* self,
- const gchar* text)
-{
-#line 607 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_TEXT_ENTRY_DIALOG_MEDIATOR (self), FALSE);
-#line 607 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS (self)->on_modify_validate (self, text);
-#line 5867 "Dialogs.c"
-}
-
-
-gchar*
-_text_entry_dialog_mediator_execute (TextEntryDialogMediator* self)
-{
- gchar* result = NULL;
- TextEntryDialog* _tmp0_;
- gchar* _tmp1_;
-#line 611 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_TEXT_ENTRY_DIALOG_MEDIATOR (self), NULL);
-#line 612 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = self->priv->dialog;
-#line 612 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = text_entry_dialog_execute (_tmp0_);
-#line 612 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp1_;
-#line 612 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 5887 "Dialogs.c"
-}
-
-
-static void
-value_text_entry_dialog_mediator_init (GValue* value)
-{
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 5896 "Dialogs.c"
-}
-
-
-static void
-value_text_entry_dialog_mediator_free_value (GValue* value)
-{
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (value->data[0].v_pointer) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text_entry_dialog_mediator_unref (value->data[0].v_pointer);
-#line 5907 "Dialogs.c"
- }
-}
-
-
-static void
-value_text_entry_dialog_mediator_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (src_value->data[0].v_pointer) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dest_value->data[0].v_pointer = text_entry_dialog_mediator_ref (src_value->data[0].v_pointer);
-#line 5920 "Dialogs.c"
- } else {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 5924 "Dialogs.c"
- }
-}
-
-
-static gpointer
-value_text_entry_dialog_mediator_peek_pointer (const GValue* value)
-{
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return value->data[0].v_pointer;
-#line 5934 "Dialogs.c"
-}
-
-
-static gchar*
-value_text_entry_dialog_mediator_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (collect_values[0].v_pointer) {
-#line 5946 "Dialogs.c"
- TextEntryDialogMediator * object;
- object = collect_values[0].v_pointer;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5953 "Dialogs.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.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 5957 "Dialogs.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = text_entry_dialog_mediator_ref (object);
-#line 5961 "Dialogs.c"
- } else {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 5965 "Dialogs.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return NULL;
-#line 5969 "Dialogs.c"
-}
-
-
-static gchar*
-value_text_entry_dialog_mediator_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TextEntryDialogMediator ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!object_p) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5985 "Dialogs.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!value->data[0].v_pointer) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = NULL;
-#line 5991 "Dialogs.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = value->data[0].v_pointer;
-#line 5995 "Dialogs.c"
- } else {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = text_entry_dialog_mediator_ref (value->data[0].v_pointer);
-#line 5999 "Dialogs.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return NULL;
-#line 6003 "Dialogs.c"
-}
-
-
-GParamSpec*
-param_spec_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTextEntryDialogMediator* spec;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR), NULL);
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return G_PARAM_SPEC (spec);
-#line 6023 "Dialogs.c"
-}
-
-
-gpointer
-value_get_text_entry_dialog_mediator (const GValue* value)
-{
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR), NULL);
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return value->data[0].v_pointer;
-#line 6034 "Dialogs.c"
-}
-
-
-void
-value_set_text_entry_dialog_mediator (GValue* value,
- gpointer v_object)
-{
- TextEntryDialogMediator * old;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR));
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- old = value->data[0].v_pointer;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (v_object) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR));
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = v_object;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text_entry_dialog_mediator_ref (value->data[0].v_pointer);
-#line 6057 "Dialogs.c"
- } else {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 6061 "Dialogs.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (old) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text_entry_dialog_mediator_unref (old);
-#line 6067 "Dialogs.c"
- }
-}
-
-
-void
-value_take_text_entry_dialog_mediator (GValue* value,
- gpointer v_object)
-{
- TextEntryDialogMediator * old;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR));
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- old = value->data[0].v_pointer;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (v_object) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR));
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = v_object;
-#line 6089 "Dialogs.c"
- } else {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 6093 "Dialogs.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (old) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text_entry_dialog_mediator_unref (old);
-#line 6099 "Dialogs.c"
- }
-}
-
-
-static void
-text_entry_dialog_mediator_class_init (TextEntryDialogMediatorClass * klass)
-{
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text_entry_dialog_mediator_parent_class = g_type_class_peek_parent (klass);
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((TextEntryDialogMediatorClass *) klass)->finalize = text_entry_dialog_mediator_finalize;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_type_class_add_private (klass, sizeof (TextEntryDialogMediatorPrivate));
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((TextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (TextEntryDialogMediator *, const gchar*)) text_entry_dialog_mediator_real_on_modify_validate;
-#line 6115 "Dialogs.c"
-}
-
-
-static void
-text_entry_dialog_mediator_instance_init (TextEntryDialogMediator * self)
-{
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->priv = TEXT_ENTRY_DIALOG_MEDIATOR_GET_PRIVATE (self);
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->ref_count = 1;
-#line 6126 "Dialogs.c"
-}
-
-
-static void
-text_entry_dialog_mediator_finalize (TextEntryDialogMediator * obj)
-{
- TextEntryDialogMediator * self;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator);
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_signal_handlers_destroy (self);
-#line 599 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (self->priv->dialog);
-#line 6140 "Dialogs.c"
-}
-
-
-GType
-text_entry_dialog_mediator_get_type (void)
-{
- static volatile gsize text_entry_dialog_mediator_type_id__volatile = 0;
- if (g_once_init_enter (&text_entry_dialog_mediator_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_text_entry_dialog_mediator_init, value_text_entry_dialog_mediator_free_value, value_text_entry_dialog_mediator_copy_value, value_text_entry_dialog_mediator_peek_pointer, "p", value_text_entry_dialog_mediator_collect_value, "p", value_text_entry_dialog_mediator_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TextEntryDialogMediatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) text_entry_dialog_mediator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TextEntryDialogMediator), 0, (GInstanceInitFunc) text_entry_dialog_mediator_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType text_entry_dialog_mediator_type_id;
- text_entry_dialog_mediator_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TextEntryDialogMediator", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&text_entry_dialog_mediator_type_id__volatile, text_entry_dialog_mediator_type_id);
- }
- return text_entry_dialog_mediator_type_id__volatile;
-}
-
-
-gpointer
-text_entry_dialog_mediator_ref (gpointer instance)
-{
- TextEntryDialogMediator * self;
- self = instance;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return instance;
-#line 6169 "Dialogs.c"
-}
-
-
-void
-text_entry_dialog_mediator_unref (gpointer instance)
-{
- TextEntryDialogMediator * self;
- self = instance;
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS (self)->finalize (self);
-#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 6184 "Dialogs.c"
- }
-}
-
-
-static gboolean
-_multi_text_entry_dialog_mediator_on_modify_validate_multi_text_entry_dialog_on_modify_validate_type (const gchar* text,
- gpointer self)
-{
- gboolean result;
- result = multi_text_entry_dialog_mediator_on_modify_validate ((MultiTextEntryDialogMediator*) self, text);
-#line 621 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6197 "Dialogs.c"
-}
-
-
-MultiTextEntryDialogMediator*
-multi_text_entry_dialog_mediator_construct (GType object_type,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text)
-{
- MultiTextEntryDialogMediator* self = NULL;
- MultiTextEntryDialog* _tmp0_;
- MultiTextEntryDialog* _tmp1_;
-#line 619 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (title != NULL, NULL);
-#line 619 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (label != NULL, NULL);
-#line 619 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (MultiTextEntryDialogMediator*) g_type_create_instance (object_type);
-#line 620 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = multi_text_entry_dialog_new ();
-#line 620 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp0_);
-#line 620 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (self->priv->dialog);
-#line 620 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->priv->dialog = _tmp0_;
-#line 621 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = self->priv->dialog;
-#line 621 "/home/jens/Source/shotwell/src/Dialogs.vala"
- multi_text_entry_dialog_setup (_tmp1_, _multi_text_entry_dialog_mediator_on_modify_validate_multi_text_entry_dialog_on_modify_validate_type, self, title, label, initial_text);
-#line 619 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 6230 "Dialogs.c"
-}
-
-
-static gboolean
-multi_text_entry_dialog_mediator_real_on_modify_validate (MultiTextEntryDialogMediator* self,
- const gchar* text)
-{
- gboolean result = FALSE;
-#line 624 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (text != NULL, FALSE);
-#line 625 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = TRUE;
-#line 625 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6245 "Dialogs.c"
-}
-
-
-gboolean
-multi_text_entry_dialog_mediator_on_modify_validate (MultiTextEntryDialogMediator* self,
- const gchar* text)
-{
-#line 624 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (self), FALSE);
-#line 624 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS (self)->on_modify_validate (self, text);
-#line 6257 "Dialogs.c"
-}
-
-
-gchar*
-_multi_text_entry_dialog_mediator_execute (MultiTextEntryDialogMediator* self)
-{
- gchar* result = NULL;
- MultiTextEntryDialog* _tmp0_;
- gchar* _tmp1_;
-#line 628 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (self), NULL);
-#line 629 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = self->priv->dialog;
-#line 629 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = multi_text_entry_dialog_execute (_tmp0_);
-#line 629 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp1_;
-#line 629 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6277 "Dialogs.c"
-}
-
-
-static void
-value_multi_text_entry_dialog_mediator_init (GValue* value)
-{
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 6286 "Dialogs.c"
-}
-
-
-static void
-value_multi_text_entry_dialog_mediator_free_value (GValue* value)
-{
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (value->data[0].v_pointer) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- multi_text_entry_dialog_mediator_unref (value->data[0].v_pointer);
-#line 6297 "Dialogs.c"
- }
-}
-
-
-static void
-value_multi_text_entry_dialog_mediator_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (src_value->data[0].v_pointer) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dest_value->data[0].v_pointer = multi_text_entry_dialog_mediator_ref (src_value->data[0].v_pointer);
-#line 6310 "Dialogs.c"
- } else {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 6314 "Dialogs.c"
- }
-}
-
-
-static gpointer
-value_multi_text_entry_dialog_mediator_peek_pointer (const GValue* value)
-{
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return value->data[0].v_pointer;
-#line 6324 "Dialogs.c"
-}
-
-
-static gchar*
-value_multi_text_entry_dialog_mediator_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (collect_values[0].v_pointer) {
-#line 6336 "Dialogs.c"
- MultiTextEntryDialogMediator * object;
- object = collect_values[0].v_pointer;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 6343 "Dialogs.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.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 6347 "Dialogs.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = multi_text_entry_dialog_mediator_ref (object);
-#line 6351 "Dialogs.c"
- } else {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 6355 "Dialogs.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return NULL;
-#line 6359 "Dialogs.c"
-}
-
-
-static gchar*
-value_multi_text_entry_dialog_mediator_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- MultiTextEntryDialogMediator ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!object_p) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 6375 "Dialogs.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!value->data[0].v_pointer) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = NULL;
-#line 6381 "Dialogs.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = value->data[0].v_pointer;
-#line 6385 "Dialogs.c"
- } else {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *object_p = multi_text_entry_dialog_mediator_ref (value->data[0].v_pointer);
-#line 6389 "Dialogs.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return NULL;
-#line 6393 "Dialogs.c"
-}
-
-
-GParamSpec*
-param_spec_multi_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecMultiTextEntryDialogMediator* spec;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR), NULL);
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return G_PARAM_SPEC (spec);
-#line 6413 "Dialogs.c"
-}
-
-
-gpointer
-value_get_multi_text_entry_dialog_mediator (const GValue* value)
-{
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR), NULL);
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return value->data[0].v_pointer;
-#line 6424 "Dialogs.c"
-}
-
-
-void
-value_set_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object)
-{
- MultiTextEntryDialogMediator * old;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR));
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- old = value->data[0].v_pointer;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (v_object) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR));
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = v_object;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- multi_text_entry_dialog_mediator_ref (value->data[0].v_pointer);
-#line 6447 "Dialogs.c"
- } else {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 6451 "Dialogs.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (old) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- multi_text_entry_dialog_mediator_unref (old);
-#line 6457 "Dialogs.c"
- }
-}
-
-
-void
-value_take_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object)
-{
- MultiTextEntryDialogMediator * old;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR));
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- old = value->data[0].v_pointer;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (v_object) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR));
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = v_object;
-#line 6479 "Dialogs.c"
- } else {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- value->data[0].v_pointer = NULL;
-#line 6483 "Dialogs.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (old) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- multi_text_entry_dialog_mediator_unref (old);
-#line 6489 "Dialogs.c"
- }
-}
-
-
-static void
-multi_text_entry_dialog_mediator_class_init (MultiTextEntryDialogMediatorClass * klass)
-{
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- multi_text_entry_dialog_mediator_parent_class = g_type_class_peek_parent (klass);
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((MultiTextEntryDialogMediatorClass *) klass)->finalize = multi_text_entry_dialog_mediator_finalize;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_type_class_add_private (klass, sizeof (MultiTextEntryDialogMediatorPrivate));
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((MultiTextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (MultiTextEntryDialogMediator *, const gchar*)) multi_text_entry_dialog_mediator_real_on_modify_validate;
-#line 6505 "Dialogs.c"
-}
-
-
-static void
-multi_text_entry_dialog_mediator_instance_init (MultiTextEntryDialogMediator * self)
-{
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->priv = MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_PRIVATE (self);
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self->ref_count = 1;
-#line 6516 "Dialogs.c"
-}
-
-
-static void
-multi_text_entry_dialog_mediator_finalize (MultiTextEntryDialogMediator * obj)
-{
- MultiTextEntryDialogMediator * self;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator);
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_signal_handlers_destroy (self);
-#line 617 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (self->priv->dialog);
-#line 6530 "Dialogs.c"
-}
-
-
-GType
-multi_text_entry_dialog_mediator_get_type (void)
-{
- static volatile gsize multi_text_entry_dialog_mediator_type_id__volatile = 0;
- if (g_once_init_enter (&multi_text_entry_dialog_mediator_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_multi_text_entry_dialog_mediator_init, value_multi_text_entry_dialog_mediator_free_value, value_multi_text_entry_dialog_mediator_copy_value, value_multi_text_entry_dialog_mediator_peek_pointer, "p", value_multi_text_entry_dialog_mediator_collect_value, "p", value_multi_text_entry_dialog_mediator_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (MultiTextEntryDialogMediatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multi_text_entry_dialog_mediator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultiTextEntryDialogMediator), 0, (GInstanceInitFunc) multi_text_entry_dialog_mediator_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType multi_text_entry_dialog_mediator_type_id;
- multi_text_entry_dialog_mediator_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MultiTextEntryDialogMediator", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&multi_text_entry_dialog_mediator_type_id__volatile, multi_text_entry_dialog_mediator_type_id);
- }
- return multi_text_entry_dialog_mediator_type_id__volatile;
-}
-
-
-gpointer
-multi_text_entry_dialog_mediator_ref (gpointer instance)
-{
- MultiTextEntryDialogMediator * self;
- self = instance;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return instance;
-#line 6559 "Dialogs.c"
-}
-
-
-void
-multi_text_entry_dialog_mediator_unref (gpointer instance)
-{
- MultiTextEntryDialogMediator * self;
- self = instance;
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS (self)->finalize (self);
-#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 6574 "Dialogs.c"
- }
-}
-
-
-gchar*
-build_alert_body_text (const gchar* primary_text,
- const gchar* secondary_text,
- gboolean should_escape)
-{
- gchar* result = NULL;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 638 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (should_escape) {
-#line 6591 "Dialogs.c"
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = guarded_markup_escape_text (primary_text);
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = guarded_markup_escape_text (secondary_text);
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = g_strdup_printf ("<span weight=\"Bold\" size=\"larger\">%s</span>\n%s", _tmp1_, _tmp3_);
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = _tmp4_;
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp3_);
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp1_);
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp5_;
-#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6618 "Dialogs.c"
- }
-#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = guarded_markup_escape_text (primary_text);
-#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = _tmp6_;
-#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = g_strdup_printf ("<span weight=\"Bold\" size=\"larger\">%s</span>\n%s", _tmp7_, secondary_text);
-#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _tmp8_;
-#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp7_);
-#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp9_;
-#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6634 "Dialogs.c"
-}
-
-
-EventRenameDialog*
-event_rename_dialog_construct (GType object_type,
- const gchar* event_name)
-{
- EventRenameDialog* self = NULL;
-#line 650 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (EventRenameDialog*) text_entry_dialog_mediator_construct (object_type, _ ("Rename Event"), _ ("Name:"), event_name, NULL, NULL);
-#line 649 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 6647 "Dialogs.c"
-}
-
-
-EventRenameDialog*
-event_rename_dialog_new (const gchar* event_name)
-{
-#line 649 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return event_rename_dialog_construct (TYPE_EVENT_RENAME_DIALOG, event_name);
-#line 6656 "Dialogs.c"
-}
-
-
-static gchar*
-event_rename_dialog_real_execute (EventRenameDialog* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator));
-#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = event_prep_event_name (_tmp1_);
-#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp1_);
-#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp3_;
-#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6682 "Dialogs.c"
-}
-
-
-gchar*
-event_rename_dialog_execute (EventRenameDialog* self)
-{
-#line 653 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_EVENT_RENAME_DIALOG (self), NULL);
-#line 653 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return EVENT_RENAME_DIALOG_GET_CLASS (self)->execute (self);
-#line 6693 "Dialogs.c"
-}
-
-
-static void
-event_rename_dialog_class_init (EventRenameDialogClass * klass)
-{
-#line 648 "/home/jens/Source/shotwell/src/Dialogs.vala"
- event_rename_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 648 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((EventRenameDialogClass *) klass)->execute = (gchar* (*) (EventRenameDialog *)) event_rename_dialog_real_execute;
-#line 6704 "Dialogs.c"
-}
-
-
-static void
-event_rename_dialog_instance_init (EventRenameDialog * self)
-{
-}
-
-
-GType
-event_rename_dialog_get_type (void)
-{
- static volatile gsize event_rename_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&event_rename_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventRenameDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_rename_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventRenameDialog), 0, (GInstanceInitFunc) event_rename_dialog_instance_init, NULL };
- GType event_rename_dialog_type_id;
- event_rename_dialog_type_id = g_type_register_static (TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, "EventRenameDialog", &g_define_type_info, 0);
- g_once_init_leave (&event_rename_dialog_type_id__volatile, event_rename_dialog_type_id);
- }
- return event_rename_dialog_type_id__volatile;
-}
-
-
-EditTitleDialog*
-edit_title_dialog_construct (GType object_type,
- const gchar* photo_title)
-{
- EditTitleDialog* self = NULL;
-#line 661 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (EditTitleDialog*) text_entry_dialog_mediator_construct (object_type, C_ ("Dialog Title", "Edit Title"), _ ("Title:"), photo_title, NULL, NULL);
-#line 659 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 6737 "Dialogs.c"
-}
-
-
-EditTitleDialog*
-edit_title_dialog_new (const gchar* photo_title)
-{
-#line 659 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return edit_title_dialog_construct (TYPE_EDIT_TITLE_DIALOG, photo_title);
-#line 6746 "Dialogs.c"
-}
-
-
-static gchar*
-edit_title_dialog_real_execute (EditTitleDialog* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator));
-#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = media_source_prep_title (_tmp1_);
-#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp1_);
-#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp3_;
-#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6772 "Dialogs.c"
-}
-
-
-gchar*
-edit_title_dialog_execute (EditTitleDialog* self)
-{
-#line 665 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_EDIT_TITLE_DIALOG (self), NULL);
-#line 665 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return EDIT_TITLE_DIALOG_GET_CLASS (self)->execute (self);
-#line 6783 "Dialogs.c"
-}
-
-
-static gboolean
-edit_title_dialog_real_on_modify_validate (TextEntryDialogMediator* base,
- const gchar* text)
-{
- EditTitleDialog * self;
- gboolean result = FALSE;
-#line 669 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_TITLE_DIALOG, EditTitleDialog);
-#line 669 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (text != NULL, FALSE);
-#line 670 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = TRUE;
-#line 670 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6801 "Dialogs.c"
-}
-
-
-static void
-edit_title_dialog_class_init (EditTitleDialogClass * klass)
-{
-#line 658 "/home/jens/Source/shotwell/src/Dialogs.vala"
- edit_title_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 658 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((EditTitleDialogClass *) klass)->execute = (gchar* (*) (EditTitleDialog *)) edit_title_dialog_real_execute;
-#line 658 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((TextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (TextEntryDialogMediator *, const gchar*)) edit_title_dialog_real_on_modify_validate;
-#line 6814 "Dialogs.c"
-}
-
-
-static void
-edit_title_dialog_instance_init (EditTitleDialog * self)
-{
-}
-
-
-GType
-edit_title_dialog_get_type (void)
-{
- static volatile gsize edit_title_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&edit_title_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditTitleDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_title_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditTitleDialog), 0, (GInstanceInitFunc) edit_title_dialog_instance_init, NULL };
- GType edit_title_dialog_type_id;
- edit_title_dialog_type_id = g_type_register_static (TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, "EditTitleDialog", &g_define_type_info, 0);
- g_once_init_leave (&edit_title_dialog_type_id__volatile, edit_title_dialog_type_id);
- }
- return edit_title_dialog_type_id__volatile;
-}
-
-
-EditCommentDialog*
-edit_comment_dialog_construct (GType object_type,
- const gchar* comment,
- gboolean is_event)
-{
- EditCommentDialog* self = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* title_tmp = NULL;
- gchar* _tmp1_;
-#line 676 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (is_event) {
-#line 678 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _ ("Edit Event Comment");
-#line 6851 "Dialogs.c"
- } else {
-#line 679 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _ ("Edit Photo/Video Comment");
-#line 6855 "Dialogs.c"
- }
-#line 676 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 676 "/home/jens/Source/shotwell/src/Dialogs.vala"
- title_tmp = _tmp1_;
-#line 680 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (EditCommentDialog*) multi_text_entry_dialog_mediator_construct (object_type, title_tmp, _ ("Comment:"), comment);
-#line 675 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (title_tmp);
-#line 675 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 6867 "Dialogs.c"
-}
-
-
-EditCommentDialog*
-edit_comment_dialog_new (const gchar* comment,
- gboolean is_event)
-{
-#line 675 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return edit_comment_dialog_construct (TYPE_EDIT_COMMENT_DIALOG, comment, is_event);
-#line 6877 "Dialogs.c"
-}
-
-
-static gchar*
-edit_comment_dialog_real_execute (EditCommentDialog* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _multi_text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator));
-#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = media_source_prep_comment (_tmp1_);
-#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp1_);
-#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp3_;
-#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6903 "Dialogs.c"
-}
-
-
-gchar*
-edit_comment_dialog_execute (EditCommentDialog* self)
-{
-#line 683 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_EDIT_COMMENT_DIALOG (self), NULL);
-#line 683 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return EDIT_COMMENT_DIALOG_GET_CLASS (self)->execute (self);
-#line 6914 "Dialogs.c"
-}
-
-
-static gboolean
-edit_comment_dialog_real_on_modify_validate (MultiTextEntryDialogMediator* base,
- const gchar* text)
-{
- EditCommentDialog * self;
- gboolean result = FALSE;
-#line 687 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog);
-#line 687 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (text != NULL, FALSE);
-#line 688 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = TRUE;
-#line 688 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 6932 "Dialogs.c"
-}
-
-
-static void
-edit_comment_dialog_class_init (EditCommentDialogClass * klass)
-{
-#line 674 "/home/jens/Source/shotwell/src/Dialogs.vala"
- edit_comment_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 674 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((EditCommentDialogClass *) klass)->execute = (gchar* (*) (EditCommentDialog *)) edit_comment_dialog_real_execute;
-#line 674 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((MultiTextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (MultiTextEntryDialogMediator *, const gchar*)) edit_comment_dialog_real_on_modify_validate;
-#line 6945 "Dialogs.c"
-}
-
-
-static void
-edit_comment_dialog_instance_init (EditCommentDialog * self)
-{
-}
-
-
-GType
-edit_comment_dialog_get_type (void)
-{
- static volatile gsize edit_comment_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&edit_comment_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditCommentDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_comment_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditCommentDialog), 0, (GInstanceInitFunc) edit_comment_dialog_instance_init, NULL };
- GType edit_comment_dialog_type_id;
- edit_comment_dialog_type_id = g_type_register_static (TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, "EditCommentDialog", &g_define_type_info, 0);
- g_once_init_leave (&edit_comment_dialog_type_id__volatile, edit_comment_dialog_type_id);
- }
- return edit_comment_dialog_type_id__volatile;
-}
-
-
-GtkResponseType
-remove_from_library_dialog (GtkWindow* owner,
- const gchar* title,
- const gchar* user_message,
- gint count)
-{
- GtkResponseType result = 0;
- gchar* trash_action = NULL;
- gchar* _tmp0_;
- GtkMessageDialog* dialog = NULL;
- GtkMessageDialog* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GtkResponseType _result_ = 0;
-#line 694 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (owner), 0);
-#line 694 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (title != NULL, 0);
-#line 694 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (user_message != NULL, 0);
-#line 696 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_strdup (ngettext ("Remove and _Trash File", "Remove and _Trash Files", (gulong) count));
-#line 696 "/home/jens/Source/shotwell/src/Dialogs.vala"
- trash_action = _tmp0_;
-#line 698 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = (GtkMessageDialog*) gtk_message_dialog_new (owner, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_CANCEL, "%s", user_message);
-#line 698 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp1_);
-#line 698 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp1_;
-#line 700 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Remove From Library"), (gint) GTK_RESPONSE_NO);
-#line 701 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), trash_action, (gint) GTK_RESPONSE_YES);
-#line 706 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = build_alert_body_text (title, user_message, TRUE);
-#line 706 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 706 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_message_dialog_set_markup (dialog, _tmp3_);
-#line 706 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp3_);
-#line 708 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog));
-#line 710 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget));
-#line 712 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _result_;
-#line 712 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 712 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (trash_action);
-#line 712 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7023 "Dialogs.c"
-}
-
-
-GtkResponseType
-remove_from_filesystem_dialog (GtkWindow* owner,
- const gchar* title,
- const gchar* user_message)
-{
- GtkResponseType result = 0;
- GtkMessageDialog* dialog = NULL;
- GtkMessageDialog* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GtkResponseType _result_ = 0;
-#line 716 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (owner), 0);
-#line 716 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (title != NULL, 0);
-#line 716 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (user_message != NULL, 0);
-#line 718 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = (GtkMessageDialog*) gtk_message_dialog_new (owner, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", user_message);
-#line 718 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp0_);
-#line 718 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp0_;
-#line 720 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Keep"), (gint) GTK_RESPONSE_NO);
-#line 721 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Delete"), (gint) GTK_RESPONSE_YES);
-#line 722 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_NO);
-#line 724 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = build_alert_body_text (title, user_message, TRUE);
-#line 724 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _tmp1_;
-#line 724 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_message_dialog_set_markup (dialog, _tmp2_);
-#line 724 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp2_);
-#line 726 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog));
-#line 728 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget));
-#line 730 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _result_;
-#line 730 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 730 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7074 "Dialogs.c"
-}
-
-
-gboolean
-revert_editable_dialog (GtkWindow* owner,
- GeeCollection* photos)
-{
- gboolean result = FALSE;
- gint count = 0;
- gint _tmp6_;
- const gchar* _tmp7_ = NULL;
- gint _tmp8_;
- gchar* headline = NULL;
- gchar* _tmp9_;
- gchar* msg = NULL;
- gint _tmp10_;
- gint _tmp11_;
- gchar* _tmp12_;
- const gchar* _tmp13_ = NULL;
- gint _tmp14_;
- gchar* action = NULL;
- gchar* _tmp15_;
- GtkMessageDialog* dialog = NULL;
- const gchar* _tmp16_;
- GtkMessageDialog* _tmp17_;
- GtkMessageDialog* _tmp18_;
- GtkMessageDialog* _tmp19_;
- const gchar* _tmp20_;
- GtkMessageDialog* _tmp21_;
- const gchar* _tmp22_;
- const gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- GtkResponseType _result_ = 0;
- GtkMessageDialog* _tmp26_;
- GtkMessageDialog* _tmp27_;
- GtkResponseType _tmp28_;
-#line 733 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (owner), FALSE);
-#line 733 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (photos), FALSE);
-#line 734 "/home/jens/Source/shotwell/src/Dialogs.vala"
- count = 0;
-#line 7118 "Dialogs.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeIterator* _tmp0_;
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable));
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _photo_it = _tmp0_;
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 7128 "Dialogs.c"
- GeeIterator* _tmp1_;
- Photo* photo = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Photo* _tmp4_;
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _photo_it;
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 7140 "Dialogs.c"
- }
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _photo_it;
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photo = (Photo*) _tmp3_;
-#line 736 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = photo;
-#line 736 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (photo_has_editable (_tmp4_)) {
-#line 7152 "Dialogs.c"
- gint _tmp5_;
-#line 737 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = count;
-#line 737 "/home/jens/Source/shotwell/src/Dialogs.vala"
- count = _tmp5_ + 1;
-#line 7158 "Dialogs.c"
- }
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (photo);
-#line 7162 "Dialogs.c"
- }
-#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_photo_it);
-#line 7166 "Dialogs.c"
- }
-#line 740 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = count;
-#line 740 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp6_ == 0) {
-#line 741 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = FALSE;
-#line 741 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7176 "Dialogs.c"
- }
-#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = count;
-#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp8_ == 1) {
-#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = _ ("Revert External Edit?");
-#line 7184 "Dialogs.c"
- } else {
-#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = _ ("Revert External Edits?");
-#line 7188 "Dialogs.c"
- }
-#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = g_strdup (_tmp7_);
-#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala"
- headline = _tmp9_;
-#line 744 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = count;
-#line 744 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = count;
-#line 744 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = g_strdup_printf (ngettext ("This will destroy all changes made to the external file. Continue?", "This will destroy all changes made to %d external files. Continue?", (gulong) _tmp10_), _tmp11_);
-#line 744 "/home/jens/Source/shotwell/src/Dialogs.vala"
- msg = _tmp12_;
-#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = count;
-#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp14_ == 1) {
-#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = _ ("Re_vert External Edit");
-#line 7208 "Dialogs.c"
- } else {
-#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = _ ("Re_vert External Edits");
-#line 7212 "Dialogs.c"
- }
-#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = g_strdup (_tmp13_);
-#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala"
- action = _tmp15_;
-#line 751 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = msg;
-#line 751 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = (GtkMessageDialog*) gtk_message_dialog_new (owner, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", _tmp16_);
-#line 751 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp17_);
-#line 751 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp17_;
-#line 753 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = dialog;
-#line 753 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_dialog_get_type (), GtkDialog), _ ("_Cancel"), (gint) GTK_RESPONSE_CANCEL);
-#line 754 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = dialog;
-#line 754 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = action;
-#line 754 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_dialog_get_type (), GtkDialog), _tmp20_, (gint) GTK_RESPONSE_YES);
-#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = dialog;
-#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = headline;
-#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = msg;
-#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = build_alert_body_text (_tmp22_, _tmp23_, TRUE);
-#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp25_ = _tmp24_;
-#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_message_dialog_set_markup (_tmp21_, _tmp25_);
-#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp25_);
-#line 758 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp26_ = dialog;
-#line 758 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_dialog_get_type (), GtkDialog));
-#line 760 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp27_ = dialog;
-#line 760 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget));
-#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp28_ = _result_;
-#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp28_ == GTK_RESPONSE_YES;
-#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (action);
-#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (msg);
-#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (headline);
-#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7272 "Dialogs.c"
-}
-
-
-gboolean
-remove_offline_dialog (GtkWindow* owner,
- gint count)
-{
- gboolean result = FALSE;
- gchar* msg = NULL;
- gchar* _tmp0_;
- GtkMessageDialog* dialog = NULL;
- const gchar* _tmp1_;
- GtkMessageDialog* _tmp2_;
- GtkMessageDialog* _tmp3_;
- GtkMessageDialog* _tmp4_;
- const gchar* _tmp5_ = NULL;
- GtkMessageDialog* _tmp6_;
- GtkResponseType _result_ = 0;
- GtkMessageDialog* _tmp7_;
- GtkMessageDialog* _tmp8_;
- GtkResponseType _tmp9_;
-#line 765 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (owner), FALSE);
-#line 766 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (count == 0) {
-#line 767 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = FALSE;
-#line 767 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7302 "Dialogs.c"
- }
-#line 769 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_strdup_printf (ngettext ("This will remove the photo from the library. Continue?", "This will remove %d photos from the library. Continue?", (gulong) count), count);
-#line 769 "/home/jens/Source/shotwell/src/Dialogs.vala"
- msg = _tmp0_;
-#line 774 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = msg;
-#line 774 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = (GtkMessageDialog*) gtk_message_dialog_new (owner, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", _tmp1_);
-#line 774 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp2_);
-#line 774 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp2_;
-#line 776 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = dialog;
-#line 776 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_dialog_get_type (), GtkDialog), _ ("_Cancel"), (gint) GTK_RESPONSE_CANCEL);
-#line 777 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = dialog;
-#line 777 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_dialog_get_type (), GtkDialog), _ ("_Remove"), (gint) GTK_RESPONSE_OK);
-#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (count == 1) {
-#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = _ ("Remove Photo From Library");
-#line 7328 "Dialogs.c"
- } else {
-#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = _ ("Remove Photos From Library");
-#line 7332 "Dialogs.c"
- }
-#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = dialog;
-#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), _tmp5_);
-#line 780 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = dialog;
-#line 780 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_dialog_get_type (), GtkDialog));
-#line 782 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = dialog;
-#line 782 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _result_;
-#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp9_ == GTK_RESPONSE_OK;
-#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (msg);
-#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7356 "Dialogs.c"
-}
-
-
-void
-multiple_object_error_dialog (GeeArrayList* objects,
- const gchar* message,
- const gchar* title)
-{
- gchar* dialog_message = NULL;
- gchar* _tmp0_;
- gint remainder = 0;
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- GtkMessageDialog* dialog = NULL;
- AppWindow* _tmp26_;
- AppWindow* _tmp27_;
- const gchar* _tmp28_;
- GtkMessageDialog* _tmp29_;
- GtkMessageDialog* _tmp30_;
-#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (GEE_IS_ARRAY_LIST (objects));
-#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (message != NULL);
-#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (title != NULL);
-#line 790 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_strconcat (message, "\n", NULL);
-#line 790 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_message = _tmp0_;
-#line 7387 "Dialogs.c"
- {
- gint i = 0;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- i = 0;
-#line 7392 "Dialogs.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = TRUE;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 7399 "Dialogs.c"
- gboolean _tmp3_ = FALSE;
- gint _tmp4_;
- const gchar* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- DataObject* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!_tmp1_) {
-#line 7413 "Dialogs.c"
- gint _tmp2_;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = i;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- i = _tmp2_ + 1;
-#line 7419 "Dialogs.c"
- }
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = FALSE;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = i;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp4_ < MAX_OBJECTS_DISPLAYED) {
-#line 7427 "Dialogs.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = i;
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp6_ > _tmp7_;
-#line 7439 "Dialogs.c"
- } else {
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = FALSE;
-#line 7443 "Dialogs.c"
- }
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!_tmp3_) {
-#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 7449 "Dialogs.c"
- }
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = dialog_message;
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = i;
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = (DataObject*) _tmp10_;
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = data_object_to_string (_tmp11_);
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = _tmp12_;
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = g_strconcat ("\n", _tmp13_, NULL);
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = _tmp14_;
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = g_strconcat (_tmp8_, _tmp15_, NULL);
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (dialog_message);
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_message = _tmp16_;
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp15_);
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp13_);
-#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp11_);
-#line 7479 "Dialogs.c"
- }
- }
- }
-#line 796 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 796 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = _tmp17_;
-#line 796 "/home/jens/Source/shotwell/src/Dialogs.vala"
- remainder = _tmp18_ - MAX_OBJECTS_DISPLAYED;
-#line 797 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = remainder;
-#line 797 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp19_ > 0) {
-#line 7493 "Dialogs.c"
- const gchar* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = dialog_message;
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = remainder;
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = remainder;
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = g_strdup_printf (ngettext ("\n\nAnd %d other.", "\n\nAnd %d others.", (gulong) _tmp21_), _tmp22_);
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = _tmp23_;
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp25_ = g_strconcat (_tmp20_, _tmp24_, NULL);
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (dialog_message);
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog_message = _tmp25_;
-#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp24_);
-#line 7518 "Dialogs.c"
- }
-#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp26_ = app_window_get_instance ();
-#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp27_ = _tmp26_;
-#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp28_ = dialog_message;
-#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp29_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", _tmp28_);
-#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp29_);
-#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp30_ = _tmp29_;
-#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp27_);
-#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp30_;
-#line 805 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_window_get_type (), GtkWindow), title);
-#line 807 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog));
-#line 808 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget));
-#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (dialog_message);
-#line 7546 "Dialogs.c"
-}
-
-
-TagsDialog*
-tags_dialog_construct (GType object_type,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text)
-{
- TagsDialog* self = NULL;
- HierarchicalTagIndex* _tmp0_;
- HierarchicalTagIndex* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
-#line 812 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (title != NULL, NULL);
-#line 812 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (label != NULL, NULL);
-#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = hierarchical_tag_index_get_global_index ();
-#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = hierarchical_tag_index_get_all_tags (_tmp1_);
-#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = _tmp2_;
-#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (TagsDialog*) text_entry_dialog_mediator_construct (object_type, title, label, initial_text, _tmp3_, ",");
-#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp3_);
-#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _hierarchical_tag_index_unref0 (_tmp1_);
-#line 812 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 7581 "Dialogs.c"
-}
-
-
-static void
-tags_dialog_class_init (TagsDialogClass * klass)
-{
-#line 811 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tags_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 7590 "Dialogs.c"
-}
-
-
-static void
-tags_dialog_instance_init (TagsDialog * self)
-{
-}
-
-
-GType
-tags_dialog_get_type (void)
-{
- static volatile gsize tags_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&tags_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsDialog), 0, (GInstanceInitFunc) tags_dialog_instance_init, NULL };
- GType tags_dialog_type_id;
- tags_dialog_type_id = g_type_register_static (TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, "TagsDialog", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&tags_dialog_type_id__volatile, tags_dialog_type_id);
- }
- return tags_dialog_type_id__volatile;
-}
-
-
-AddTagsDialog*
-add_tags_dialog_construct (GType object_type)
-{
- AddTagsDialog* self = NULL;
- gchar* title = NULL;
- gchar* _tmp0_;
-#line 820 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_strdup (g_dpgettext2 (NULL, "Dialog Title", RESOURCES_ADD_TAGS_TITLE));
-#line 820 "/home/jens/Source/shotwell/src/Dialogs.vala"
- title = _tmp0_;
-#line 822 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (AddTagsDialog*) tags_dialog_construct (object_type, title, _ ("Tags (separated by commas):"), NULL);
-#line 819 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (title);
-#line 819 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 7630 "Dialogs.c"
-}
-
-
-AddTagsDialog*
-add_tags_dialog_new (void)
-{
-#line 819 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return add_tags_dialog_construct (TYPE_ADD_TAGS_DIALOG);
-#line 7639 "Dialogs.c"
-}
-
-
-gchar**
-add_tags_dialog_execute (AddTagsDialog* self,
- int* result_length1)
-{
- gchar** result = NULL;
- gchar* text = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp3_;
- gchar** _tmp4_;
- gchar** _tmp5_;
- gchar** _tmp6_;
- gint _tmp6__length1;
- gint _tmp7_;
- gchar** _tmp8_;
- gchar** _tmp9_;
- gint _tmp9__length1;
- gchar** _tmp10_;
- gint _tmp10__length1;
-#line 825 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_ADD_TAGS_DIALOG (self), NULL);
-#line 826 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator));
-#line 826 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text = _tmp0_;
-#line 827 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = text;
-#line 827 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp1_ == NULL) {
-#line 7672 "Dialogs.c"
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = NULL;
-#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2__length1 = 0;
-#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (result_length1) {
-#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *result_length1 = _tmp2__length1;
-#line 7683 "Dialogs.c"
- }
-#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp2_;
-#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (text);
-#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7691 "Dialogs.c"
- }
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = text;
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = _tmp4_ = g_strsplit (_tmp3_, ",", 0);
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_;
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6__length1 = _vala_array_length (_tmp4_);
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = tag_prep_tag_names (_tmp6_, _vala_array_length (_tmp4_), &_tmp7_);
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _tmp8_;
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9__length1 = _tmp7_;
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = (_vala_array_free (_tmp6_, _tmp6__length1, (GDestroyNotify) g_free), NULL);
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = _tmp9_;
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10__length1 = _tmp9__length1;
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (result_length1) {
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- *result_length1 = _tmp10__length1;
-#line 7717 "Dialogs.c"
- }
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp10_;
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (text);
-#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7725 "Dialogs.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7745 "Dialogs.c"
-}
-
-
-static gboolean
-add_tags_dialog_real_on_modify_validate (TextEntryDialogMediator* base,
- const gchar* text)
-{
- AddTagsDialog * self;
- gboolean result = FALSE;
- gchar** names = NULL;
- gchar** _tmp0_;
- gchar** _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- gint _tmp3_;
- gchar** _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- gint names_length1;
- gint _names_size_;
- gchar** _tmp6_;
- gint _tmp6__length1;
-#line 835 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADD_TAGS_DIALOG, AddTagsDialog);
-#line 835 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (text != NULL, FALSE);
-#line 836 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (string_contains (text, TAG_PATH_SEPARATOR_STRING)) {
-#line 837 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = FALSE;
-#line 837 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7778 "Dialogs.c"
- }
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_ = g_strsplit (text, ",", 0);
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _tmp1_;
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2__length1 = _vala_array_length (_tmp0_);
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = tag_prep_tag_names (_tmp2_, _vala_array_length (_tmp0_), &_tmp3_);
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = _tmp4_;
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5__length1 = _tmp3_;
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL);
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- names = _tmp5_;
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- names_length1 = _tmp5__length1;
-#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _names_size_ = names_length1;
-#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = names;
-#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6__length1 = names_length1;
-#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _tmp6__length1 > 0;
-#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala"
- names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL);
-#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7810 "Dialogs.c"
-}
-
-
-static void
-add_tags_dialog_class_init (AddTagsDialogClass * klass)
-{
-#line 818 "/home/jens/Source/shotwell/src/Dialogs.vala"
- add_tags_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 818 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((TextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (TextEntryDialogMediator *, const gchar*)) add_tags_dialog_real_on_modify_validate;
-#line 7821 "Dialogs.c"
-}
-
-
-static void
-add_tags_dialog_instance_init (AddTagsDialog * self)
-{
-}
-
-
-GType
-add_tags_dialog_get_type (void)
-{
- static volatile gsize add_tags_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&add_tags_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (AddTagsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) add_tags_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AddTagsDialog), 0, (GInstanceInitFunc) add_tags_dialog_instance_init, NULL };
- GType add_tags_dialog_type_id;
- add_tags_dialog_type_id = g_type_register_static (TYPE_TAGS_DIALOG, "AddTagsDialog", &g_define_type_info, 0);
- g_once_init_leave (&add_tags_dialog_type_id__volatile, add_tags_dialog_type_id);
- }
- return add_tags_dialog_type_id__volatile;
-}
-
-
-ModifyTagsDialog*
-modify_tags_dialog_construct (GType object_type,
- MediaSource* source)
-{
- ModifyTagsDialog* self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 848 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 849 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = modify_tags_dialog_get_initial_text (source);
-#line 849 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 849 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = (ModifyTagsDialog*) tags_dialog_construct (object_type, RESOURCES_MODIFY_TAGS_LABEL, _ ("Tags (separated by commas):"), _tmp1_);
-#line 849 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp1_);
-#line 848 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return self;
-#line 7864 "Dialogs.c"
-}
-
-
-ModifyTagsDialog*
-modify_tags_dialog_new (MediaSource* source)
-{
-#line 848 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return modify_tags_dialog_construct (TYPE_MODIFY_TAGS_DIALOG, source);
-#line 7873 "Dialogs.c"
-}
-
-
-static gchar*
-modify_tags_dialog_get_initial_text (MediaSource* source)
-{
- gchar* result = NULL;
- GeeCollection* source_tags = NULL;
- TagSourceCollection* _tmp0_;
- GeeList* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* terminal_tags = NULL;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeSortedSet* tag_basenames = NULL;
- GeeTreeSet* _tmp5_;
- gchar* text = NULL;
-#line 853 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 854 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = tag_global;
-#line 854 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = tag_source_collection_fetch_for_source (_tmp0_, source);
-#line 854 "/home/jens/Source/shotwell/src/Dialogs.vala"
- source_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 855 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = source_tags;
-#line 855 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp2_ == NULL) {
-#line 856 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = NULL;
-#line 856 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (source_tags);
-#line 856 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 7909 "Dialogs.c"
- }
-#line 858 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = source_tags;
-#line 858 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = tag_get_terminal_tags (_tmp3_);
-#line 858 "/home/jens/Source/shotwell/src/Dialogs.vala"
- terminal_tags = _tmp4_;
-#line 860 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 860 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tag_basenames = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 7921 "Dialogs.c"
- {
- GeeIterator* _tag_it = NULL;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = terminal_tags;
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tag_it = _tmp7_;
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 7934 "Dialogs.c"
- GeeIterator* _tmp8_;
- Tag* tag = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- GeeSortedSet* _tmp11_;
- Tag* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = _tag_it;
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 7951 "Dialogs.c"
- }
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _tag_it;
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tag = (Tag*) _tmp10_;
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = tag_basenames;
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = tag;
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = tag_get_path (_tmp12_);
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = _tmp13_;
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = hierarchical_tag_utilities_get_basename (_tmp14_);
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = _tmp15_;
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp16_);
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp16_);
-#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (_tmp14_);
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (tag);
-#line 7979 "Dialogs.c"
- }
-#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tag_it);
-#line 7983 "Dialogs.c"
- }
-#line 864 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text = NULL;
-#line 7987 "Dialogs.c"
- {
- GeeIterator* _name_it = NULL;
- GeeSortedSet* _tmp17_;
- GeeIterator* _tmp18_;
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = tag_basenames;
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _name_it = _tmp18_;
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- while (TRUE) {
-#line 8000 "Dialogs.c"
- GeeIterator* _tmp19_;
- gchar* name = NULL;
- GeeIterator* _tmp20_;
- gpointer _tmp21_;
- const gchar* _tmp22_;
- const gchar* _tmp26_;
- const gchar* _tmp27_;
- gchar* _tmp28_;
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = _name_it;
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!gee_iterator_next (_tmp19_)) {
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- break;
-#line 8015 "Dialogs.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = _name_it;
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = gee_iterator_get (_tmp20_);
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- name = (gchar*) _tmp21_;
-#line 866 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = text;
-#line 866 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp22_ == NULL) {
-#line 8027 "Dialogs.c"
- gchar* _tmp23_;
-#line 867 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = g_strdup ("");
-#line 867 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (text);
-#line 867 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text = _tmp23_;
-#line 8035 "Dialogs.c"
- } else {
- const gchar* _tmp24_;
- gchar* _tmp25_;
-#line 869 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = text;
-#line 869 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp25_ = g_strconcat (_tmp24_, ", ", NULL);
-#line 869 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (text);
-#line 869 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text = _tmp25_;
-#line 8047 "Dialogs.c"
- }
-#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp26_ = text;
-#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp27_ = name;
-#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp28_ = g_strconcat (_tmp26_, _tmp27_, NULL);
-#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (text);
-#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text = _tmp28_;
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (name);
-#line 8061 "Dialogs.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_name_it);
-#line 8065 "Dialogs.c"
- }
-#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = text;
-#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (tag_basenames);
-#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (terminal_tags);
-#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (source_tags);
-#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 8077 "Dialogs.c"
-}
-
-
-GeeArrayList*
-modify_tags_dialog_execute (ModifyTagsDialog* self)
-{
- GeeArrayList* result = NULL;
- gchar* text = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- GeeArrayList* new_tags = NULL;
- GeeArrayList* _tmp2_;
- const gchar* _tmp3_;
- gchar** tag_names = NULL;
- const gchar* _tmp4_;
- gchar** _tmp5_;
- gchar** _tmp6_;
- gchar** _tmp7_;
- gint _tmp7__length1;
- gint _tmp8_;
- gchar** _tmp9_;
- gchar** _tmp10_;
- gint _tmp10__length1;
- gint tag_names_length1;
- gint _tag_names_size_;
- HierarchicalTagIndex* _tmp11_;
- HierarchicalTagIndex* _tmp12_;
- gchar** _tmp13_;
- gint _tmp13__length1;
- gint _tmp14_;
- gchar** _tmp15_;
- gchar** _tmp16_;
- gint _tmp16__length1;
-#line 877 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (IS_MODIFY_TAGS_DIALOG (self), NULL);
-#line 878 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator));
-#line 878 "/home/jens/Source/shotwell/src/Dialogs.vala"
- text = _tmp0_;
-#line 879 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = text;
-#line 879 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp1_ == NULL) {
-#line 880 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = NULL;
-#line 880 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (text);
-#line 880 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 8127 "Dialogs.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 882 "/home/jens/Source/shotwell/src/Dialogs.vala"
- new_tags = _tmp2_;
-#line 885 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = text;
-#line 885 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (is_string_empty (_tmp3_)) {
-#line 886 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = new_tags;
-#line 886 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (text);
-#line 886 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 8143 "Dialogs.c"
- }
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = text;
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = _tmp5_ = g_strsplit (_tmp4_, ",", 0);
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = _tmp6_;
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7__length1 = _vala_array_length (_tmp5_);
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = tag_prep_tag_names (_tmp7_, _vala_array_length (_tmp5_), &_tmp8_);
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = _tmp9_;
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10__length1 = _tmp8_;
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tag_names = _tmp10_;
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tag_names_length1 = _tmp10__length1;
-#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tag_names_size_ = tag_names_length1;
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = hierarchical_tag_index_get_global_index ();
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = _tmp11_;
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = tag_names;
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13__length1 = tag_names_length1;
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = hierarchical_tag_index_get_paths_for_names_array (_tmp12_, _tmp13_, _tmp13__length1, &_tmp14_);
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tag_names = (_vala_array_free (tag_names, tag_names_length1, (GDestroyNotify) g_free), NULL);
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tag_names = _tmp15_;
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tag_names_length1 = _tmp14_;
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tag_names_size_ = tag_names_length1;
-#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _hierarchical_tag_index_unref0 (_tmp12_);
-#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = tag_names;
-#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16__length1 = tag_names_length1;
-#line 8191 "Dialogs.c"
- {
- gchar** name_collection = NULL;
- gint name_collection_length1 = 0;
- gint _name_collection_size_ = 0;
- gint name_it = 0;
-#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala"
- name_collection = _tmp16_;
-#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala"
- name_collection_length1 = _tmp16__length1;
-#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala"
- for (name_it = 0; name_it < _tmp16__length1; name_it = name_it + 1) {
-#line 8203 "Dialogs.c"
- gchar* _tmp17_;
- gchar* name = NULL;
-#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = g_strdup (name_collection[name_it]);
-#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala"
- name = _tmp17_;
-#line 8210 "Dialogs.c"
- {
- GeeArrayList* _tmp18_;
- const gchar* _tmp19_;
- Tag* _tmp20_;
- Tag* _tmp21_;
-#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = new_tags;
-#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = name;
-#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = tag_for_path (_tmp19_);
-#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = _tmp20_;
-#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_);
-#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp21_);
-#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (name);
-#line 8230 "Dialogs.c"
- }
- }
- }
-#line 896 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = new_tags;
-#line 896 "/home/jens/Source/shotwell/src/Dialogs.vala"
- tag_names = (_vala_array_free (tag_names, tag_names_length1, (GDestroyNotify) g_free), NULL);
-#line 896 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (text);
-#line 896 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 8242 "Dialogs.c"
-}
-
-
-static gboolean
-modify_tags_dialog_real_on_modify_validate (TextEntryDialogMediator* base,
- const gchar* text)
-{
- ModifyTagsDialog * self;
- gboolean result = FALSE;
-#line 899 "/home/jens/Source/shotwell/src/Dialogs.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog);
-#line 899 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_val_if_fail (text != NULL, FALSE);
-#line 900 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = !string_contains (text, TAG_PATH_SEPARATOR_STRING);
-#line 900 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 8260 "Dialogs.c"
-}
-
-
-static void
-modify_tags_dialog_class_init (ModifyTagsDialogClass * klass)
-{
-#line 847 "/home/jens/Source/shotwell/src/Dialogs.vala"
- modify_tags_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 847 "/home/jens/Source/shotwell/src/Dialogs.vala"
- ((TextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (TextEntryDialogMediator *, const gchar*)) modify_tags_dialog_real_on_modify_validate;
-#line 8271 "Dialogs.c"
-}
-
-
-static void
-modify_tags_dialog_instance_init (ModifyTagsDialog * self)
-{
-}
-
-
-GType
-modify_tags_dialog_get_type (void)
-{
- static volatile gsize modify_tags_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&modify_tags_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ModifyTagsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) modify_tags_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ModifyTagsDialog), 0, (GInstanceInitFunc) modify_tags_dialog_instance_init, NULL };
- GType modify_tags_dialog_type_id;
- modify_tags_dialog_type_id = g_type_register_static (TYPE_TAGS_DIALOG, "ModifyTagsDialog", &g_define_type_info, 0);
- g_once_init_leave (&modify_tags_dialog_type_id__volatile, modify_tags_dialog_type_id);
- }
- return modify_tags_dialog_type_id__volatile;
-}
-
-
-GtkResponseType
-copy_files_dialog (void)
-{
- GtkResponseType result = 0;
- gchar* msg = NULL;
- gchar* _tmp0_;
- GtkMessageDialog* dialog = NULL;
- AppWindow* _tmp1_;
- AppWindow* _tmp2_;
- GtkMessageDialog* _tmp3_;
- GtkMessageDialog* _tmp4_;
- GtkResponseType _result_ = 0;
-#line 908 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = g_strdup (_ ("Shotwell can copy the photos into your library folder or it can import" \
-" them without copying."));
-#line 908 "/home/jens/Source/shotwell/src/Dialogs.vala"
- msg = _tmp0_;
-#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = app_window_get_instance ();
-#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _tmp1_;
-#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_CANCEL, "%s", msg);
-#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp3_);
-#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = _tmp3_;
-#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp2_);
-#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala"
- dialog = _tmp4_;
-#line 913 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("Co_py Photos"), (gint) GTK_RESPONSE_ACCEPT);
-#line 914 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Import in Place"), (gint) GTK_RESPONSE_REJECT);
-#line 915 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_window_get_type (), GtkWindow), _ ("Import to Library"));
-#line 917 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog));
-#line 919 "/home/jens/Source/shotwell/src/Dialogs.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget));
-#line 921 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result = _result_;
-#line 921 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (dialog);
-#line 921 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (msg);
-#line 921 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 8343 "Dialogs.c"
-}
-
-
-void
-remove_photos_from_library (GeeCollection* photos)
-{
- const gchar* _tmp0_ = NULL;
- gint _tmp1_;
- gint _tmp2_;
-#line 924 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (GEE_IS_COLLECTION (photos));
-#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = gee_collection_get_size (photos);
-#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = _tmp1_;
-#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp2_ == 1) {
-#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _ ("Removing Photo From Library");
-#line 8363 "Dialogs.c"
- } else {
-#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = _ ("Removing Photos From Library");
-#line 8367 "Dialogs.c"
- }
-#line 925 "/home/jens/Source/shotwell/src/Dialogs.vala"
- remove_from_app (photos, _ ("Remove From Library"), _tmp0_);
-#line 8371 "Dialogs.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 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return result;
-#line 8385 "Dialogs.c"
-}
-
-
-void
-remove_from_app (GeeCollection* sources,
- const gchar* dialog_title,
- const gchar* progress_dialog_text)
-{
- gint _tmp0_;
- gint _tmp1_;
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp2_;
- GeeArrayList* videos = NULL;
- GeeArrayList* _tmp3_;
- GeeArrayList* _tmp4_;
- GeeArrayList* _tmp5_;
- gchar* user_message = NULL;
- gboolean _tmp6_ = FALSE;
- GeeArrayList* _tmp7_;
- gboolean _tmp8_;
- gboolean _tmp9_;
- GtkResponseType _result_ = 0;
- AppWindow* _tmp31_;
- AppWindow* _tmp32_;
- const gchar* _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- GtkResponseType _tmp36_;
- gboolean _tmp37_ = FALSE;
- GtkResponseType _tmp38_;
- gboolean delete_backing = FALSE;
- GtkResponseType _tmp40_;
- AppWindow* _tmp41_;
- AppWindow* _tmp42_;
- ProgressDialog* progress = NULL;
- ProgressMonitor monitor = NULL;
- void* monitor_target;
- GDestroyNotify monitor_target_destroy_notify;
- gint _tmp43_;
- gint _tmp44_;
- GeeArrayList* not_removed_photos = NULL;
- GeeArrayList* _tmp49_;
- GeeArrayList* not_removed_videos = NULL;
- GeeArrayList* _tmp50_;
- LibraryPhotoSourceCollection* _tmp51_;
- GeeArrayList* _tmp52_;
- gboolean _tmp53_;
- ProgressMonitor _tmp54_;
- void* _tmp54__target;
- GeeArrayList* _tmp55_;
- VideoSourceCollection* _tmp56_;
- GeeArrayList* _tmp57_;
- gboolean _tmp58_;
- ProgressMonitor _tmp59_;
- void* _tmp59__target;
- GeeArrayList* _tmp60_;
- gint num_not_removed = 0;
- GeeArrayList* _tmp61_;
- gint _tmp62_;
- gint _tmp63_;
- GeeArrayList* _tmp64_;
- gint _tmp65_;
- gint _tmp66_;
- gboolean _tmp67_ = FALSE;
- gboolean _tmp68_;
- ProgressDialog* _tmp101_;
- AppWindow* _tmp103_;
- AppWindow* _tmp104_;
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (dialog_title != NULL);
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_return_if_fail (progress_dialog_text != NULL);
-#line 931 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp0_ = gee_collection_get_size (sources);
-#line 931 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp1_ = _tmp0_;
-#line 931 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp1_ == 0) {
-#line 932 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return;
-#line 8468 "Dialogs.c"
- }
-#line 934 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp2_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 934 "/home/jens/Source/shotwell/src/Dialogs.vala"
- photos = _tmp2_;
-#line 935 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp3_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 935 "/home/jens/Source/shotwell/src/Dialogs.vala"
- videos = _tmp3_;
-#line 936 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp4_ = photos;
-#line 936 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp5_ = videos;
-#line 936 "/home/jens/Source/shotwell/src/Dialogs.vala"
- media_source_collection_filter_media (sources, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 938 "/home/jens/Source/shotwell/src/Dialogs.vala"
- user_message = NULL;
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp7_ = photos;
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp8_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp9_ = _tmp8_;
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!_tmp9_) {
-#line 8494 "Dialogs.c"
- GeeArrayList* _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_;
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp10_ = videos;
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp11_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp12_ = _tmp11_;
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = !_tmp12_;
-#line 8506 "Dialogs.c"
- } else {
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp6_ = FALSE;
-#line 8510 "Dialogs.c"
- }
-#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp6_) {
-#line 8514 "Dialogs.c"
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gchar* _tmp17_;
-#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp13_ = gee_collection_get_size (sources);
-#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp14_ = _tmp13_;
-#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp15_ = gee_collection_get_size (sources);
-#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp16_ = _tmp15_;
-#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp17_ = g_strdup_printf (ngettext ("This will remove the photo/video from your Shotwell library. Would you" \
-" also like to move the file to your desktop trash?\n" \
-"\n" \
-"This action cannot be undone.", "This will remove %d photos/videos from your Shotwell library. Would yo" \
-"u also like to move the files to your desktop trash?\n" \
-"\n" \
-"This action cannot be undone.", (gulong) _tmp14_), _tmp16_);
-#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (user_message);
-#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala"
- user_message = _tmp17_;
-#line 8534 "Dialogs.c"
- } else {
- GeeArrayList* _tmp18_;
- gboolean _tmp19_;
- gboolean _tmp20_;
-#line 943 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp18_ = videos;
-#line 943 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp19_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 943 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp20_ = _tmp19_;
-#line 943 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (!_tmp20_) {
-#line 8547 "Dialogs.c"
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gchar* _tmp25_;
-#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp21_ = gee_collection_get_size (sources);
-#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp22_ = _tmp21_;
-#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp23_ = gee_collection_get_size (sources);
-#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp24_ = _tmp23_;
-#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp25_ = g_strdup_printf (ngettext ("This will remove the video from your Shotwell library. Would you also " \
-"like to move the file to your desktop trash?\n" \
-"\n" \
-"This action cannot be undone.", "This will remove %d videos from your Shotwell library. Would you also " \
-"like to move the files to your desktop trash?\n" \
-"\n" \
-"This action cannot be undone.", (gulong) _tmp22_), _tmp24_);
-#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (user_message);
-#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala"
- user_message = _tmp25_;
-#line 8567 "Dialogs.c"
- } else {
- gint _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- gchar* _tmp30_;
-#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp26_ = gee_collection_get_size (sources);
-#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp27_ = _tmp26_;
-#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp28_ = gee_collection_get_size (sources);
-#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp29_ = _tmp28_;
-#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp30_ = g_strdup_printf (ngettext ("This will remove the photo from your Shotwell library. Would you also " \
-"like to move the file to your desktop trash?\n" \
-"\n" \
-"This action cannot be undone.", "This will remove %d photos from your Shotwell library. Would you also " \
-"like to move the files to your desktop trash?\n" \
-"\n" \
-"This action cannot be undone.", (gulong) _tmp27_), _tmp29_);
-#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (user_message);
-#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala"
- user_message = _tmp30_;
-#line 8588 "Dialogs.c"
- }
- }
-#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp31_ = app_window_get_instance ();
-#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp32_ = _tmp31_;
-#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp33_ = user_message;
-#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp34_ = gee_collection_get_size (sources);
-#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp35_ = _tmp34_;
-#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp36_ = remove_from_library_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_window_get_type (), GtkWindow), dialog_title, _tmp33_, _tmp35_);
-#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp32_);
-#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _result_ = _tmp36_;
-#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp38_ = _result_;
-#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp38_ != GTK_RESPONSE_YES) {
-#line 8611 "Dialogs.c"
- GtkResponseType _tmp39_;
-#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp39_ = _result_;
-#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp37_ = _tmp39_ != GTK_RESPONSE_NO;
-#line 8617 "Dialogs.c"
- } else {
-#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp37_ = FALSE;
-#line 8621 "Dialogs.c"
- }
-#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp37_) {
-#line 956 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (user_message);
-#line 956 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (videos);
-#line 956 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (photos);
-#line 956 "/home/jens/Source/shotwell/src/Dialogs.vala"
- return;
-#line 8633 "Dialogs.c"
- }
-#line 958 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp40_ = _result_;
-#line 958 "/home/jens/Source/shotwell/src/Dialogs.vala"
- delete_backing = _tmp40_ == GTK_RESPONSE_YES;
-#line 960 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp41_ = app_window_get_instance ();
-#line 960 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp42_ = _tmp41_;
-#line 960 "/home/jens/Source/shotwell/src/Dialogs.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PAGE_WINDOW, PageWindow));
-#line 960 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp42_);
-#line 962 "/home/jens/Source/shotwell/src/Dialogs.vala"
- progress = NULL;
-#line 963 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor = NULL;
-#line 963 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor_target = NULL;
-#line 963 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor_target_destroy_notify = NULL;
-#line 964 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp43_ = gee_collection_get_size (sources);
-#line 964 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp44_ = _tmp43_;
-#line 964 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp44_ >= 20) {
-#line 8661 "Dialogs.c"
- AppWindow* _tmp45_;
- AppWindow* _tmp46_;
- ProgressDialog* _tmp47_;
- ProgressDialog* _tmp48_;
-#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp45_ = app_window_get_instance ();
-#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp46_ = _tmp45_;
-#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp47_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_window_get_type (), GtkWindow), progress_dialog_text, NULL);
-#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala"
- g_object_ref_sink (_tmp47_);
-#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (progress);
-#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala"
- progress = _tmp47_;
-#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp46_);
-#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp48_ = progress;
-#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor = NULL;
-#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor_target = NULL;
-#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor_target_destroy_notify = NULL;
-#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor = _progress_dialog_monitor_progress_monitor;
-#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor_target = g_object_ref (_tmp48_);
-#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor_target_destroy_notify = g_object_unref;
-#line 8696 "Dialogs.c"
- }
-#line 969 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp49_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 969 "/home/jens/Source/shotwell/src/Dialogs.vala"
- not_removed_photos = _tmp49_;
-#line 970 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp50_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 970 "/home/jens/Source/shotwell/src/Dialogs.vala"
- not_removed_videos = _tmp50_;
-#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp51_ = library_photo_global;
-#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp52_ = photos;
-#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp53_ = delete_backing;
-#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp54_ = monitor;
-#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp54__target = monitor_target;
-#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp55_ = not_removed_photos;
-#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala"
- media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_COLLECTION, GeeCollection), _tmp53_, _tmp54_, _tmp54__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_LIST, GeeList));
-#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp56_ = video_global;
-#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp57_ = videos;
-#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp58_ = delete_backing;
-#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp59_ = monitor;
-#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp59__target = monitor_target;
-#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp60_ = not_removed_videos;
-#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala"
- media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GEE_TYPE_COLLECTION, GeeCollection), _tmp58_, _tmp59_, _tmp59__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, GEE_TYPE_LIST, GeeList));
-#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp61_ = not_removed_photos;
-#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp62_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp63_ = _tmp62_;
-#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp64_ = not_removed_videos;
-#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp65_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp66_ = _tmp65_;
-#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala"
- num_not_removed = _tmp63_ + _tmp66_;
-#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp68_ = delete_backing;
-#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp68_) {
-#line 8752 "Dialogs.c"
- gint _tmp69_;
-#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp69_ = num_not_removed;
-#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp67_ = _tmp69_ > 0;
-#line 8758 "Dialogs.c"
- } else {
-#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp67_ = FALSE;
-#line 8762 "Dialogs.c"
- }
-#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp67_) {
-#line 8766 "Dialogs.c"
- gchar* not_deleted_message = NULL;
- gint _tmp70_;
- gint _tmp71_;
- gchar* _tmp72_;
- GtkResponseType result_delete = 0;
- AppWindow* _tmp73_;
- AppWindow* _tmp74_;
- const gchar* _tmp75_;
- GtkResponseType _tmp76_;
- GtkResponseType _tmp77_;
-#line 979 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp70_ = num_not_removed;
-#line 979 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp71_ = num_not_removed;
-#line 979 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp72_ = g_strdup_printf (ngettext ("The photo or video cannot be moved to your desktop trash. Delete this " \
-"file?", "%d photos/videos cannot be moved to your desktop trash. Delete these f" \
-"iles?", (gulong) _tmp70_), _tmp71_);
-#line 979 "/home/jens/Source/shotwell/src/Dialogs.vala"
- not_deleted_message = _tmp72_;
-#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp73_ = app_window_get_instance ();
-#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp74_ = _tmp73_;
-#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp75_ = not_deleted_message;
-#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp76_ = remove_from_filesystem_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_window_get_type (), GtkWindow), dialog_title, _tmp75_);
-#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp74_);
-#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala"
- result_delete = _tmp76_;
-#line 986 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp77_ = result_delete;
-#line 986 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (GTK_RESPONSE_YES == _tmp77_) {
-#line 8801 "Dialogs.c"
- GeeArrayList* not_deleted_photos = NULL;
- GeeArrayList* _tmp78_;
- GeeArrayList* not_deleted_videos = NULL;
- GeeArrayList* _tmp79_;
- LibraryPhotoSourceCollection* _tmp80_;
- GeeArrayList* _tmp81_;
- ProgressMonitor _tmp82_;
- void* _tmp82__target;
- GeeArrayList* _tmp83_;
- VideoSourceCollection* _tmp84_;
- GeeArrayList* _tmp85_;
- ProgressMonitor _tmp86_;
- void* _tmp86__target;
- GeeArrayList* _tmp87_;
- gint num_not_deleted = 0;
- GeeArrayList* _tmp88_;
- gint _tmp89_;
- gint _tmp90_;
- GeeArrayList* _tmp91_;
- gint _tmp92_;
- gint _tmp93_;
- gint _tmp94_;
-#line 988 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp78_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 988 "/home/jens/Source/shotwell/src/Dialogs.vala"
- not_deleted_photos = _tmp78_;
-#line 989 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp79_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 989 "/home/jens/Source/shotwell/src/Dialogs.vala"
- not_deleted_videos = _tmp79_;
-#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp80_ = library_photo_global;
-#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp81_ = not_removed_photos;
-#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp82_ = monitor;
-#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp82__target = monitor_target;
-#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp83_ = not_deleted_photos;
-#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala"
- media_source_collection_delete_backing_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GEE_TYPE_COLLECTION, GeeCollection), _tmp82_, _tmp82__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, GEE_TYPE_LIST, GeeList));
-#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp84_ = video_global;
-#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp85_ = not_removed_videos;
-#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp86_ = monitor;
-#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp86__target = monitor_target;
-#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp87_ = not_deleted_videos;
-#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala"
- media_source_collection_delete_backing_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection), _tmp86_, _tmp86__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, GEE_TYPE_LIST, GeeList));
-#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp88_ = not_deleted_photos;
-#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp89_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp90_ = _tmp89_;
-#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp91_ = not_deleted_videos;
-#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp92_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp93_ = _tmp92_;
-#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala"
- num_not_deleted = _tmp90_ + _tmp93_;
-#line 994 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp94_ = num_not_deleted;
-#line 994 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp94_ > 0) {
-#line 8874 "Dialogs.c"
- gchar* delete_failed_message = NULL;
- gint _tmp95_;
- gint _tmp96_;
- gchar* _tmp97_;
- const gchar* _tmp98_;
- AppWindow* _tmp99_;
- AppWindow* _tmp100_;
-#line 996 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp95_ = num_not_deleted;
-#line 996 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp96_ = num_not_deleted;
-#line 996 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp97_ = g_strdup_printf (ngettext ("The photo or video cannot be deleted.", "%d photos/videos cannot be deleted.", (gulong) _tmp95_), _tmp96_);
-#line 996 "/home/jens/Source/shotwell/src/Dialogs.vala"
- delete_failed_message = _tmp97_;
-#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp98_ = delete_failed_message;
-#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp99_ = app_window_get_instance ();
-#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp100_ = _tmp99_;
-#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala"
- app_window_error_message_with_title (dialog_title, _tmp98_, G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, gtk_window_get_type (), GtkWindow), TRUE);
-#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp100_);
-#line 994 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (delete_failed_message);
-#line 8902 "Dialogs.c"
- }
-#line 986 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (not_deleted_videos);
-#line 986 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (not_deleted_photos);
-#line 8908 "Dialogs.c"
- }
-#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (not_deleted_message);
-#line 8912 "Dialogs.c"
- }
-#line 1005 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp101_ = progress;
-#line 1005 "/home/jens/Source/shotwell/src/Dialogs.vala"
- if (_tmp101_ != NULL) {
-#line 8918 "Dialogs.c"
- ProgressDialog* _tmp102_;
-#line 1006 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp102_ = progress;
-#line 1006 "/home/jens/Source/shotwell/src/Dialogs.vala"
- progress_dialog_close (_tmp102_);
-#line 8924 "Dialogs.c"
- }
-#line 1008 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp103_ = app_window_get_instance ();
-#line 1008 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _tmp104_ = _tmp103_;
-#line 1008 "/home/jens/Source/shotwell/src/Dialogs.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, TYPE_PAGE_WINDOW, PageWindow));
-#line 1008 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (_tmp104_);
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (not_removed_videos);
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (not_removed_photos);
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor = NULL;
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor_target = NULL;
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- monitor_target_destroy_notify = NULL;
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (progress);
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_free0 (user_message);
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (videos);
-#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala"
- _g_object_unref0 (photos);
-#line 8954 "Dialogs.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/Dialogs.vala b/src/Dialogs.vala
index 2ca2678..d99ac9f 100644
--- a/src/Dialogs.vala
+++ b/src/Dialogs.vala
@@ -46,6 +46,21 @@ public bool confirm_warn_developer_changed(int number) {
return response == Gtk.ResponseType.YES;
}
+#if ENABLE_FACES
+
+public bool confirm_delete_face(Face face) {
+ int count = face.get_sources_count();
+ string msg = ngettext(
+ "This will remove the face “%s” from one photo. Continue?",
+ "This will remove the face “%s” from %d photos. Continue?",
+ count).printf(face.get_name(), count);
+
+ return AppWindow.negate_affirm_question(msg, _("_Cancel"), _("_Delete"),
+ Resources.DELETE_FACE_TITLE);
+}
+
+#endif
+
}
namespace ExportUI {
@@ -133,7 +148,6 @@ public Gtk.ResponseType export_error_dialog(File dest, bool photos_remaining) {
return response;
}
-
namespace ImportUI {
private const int REPORT_FAILURE_COUNT = 4;
internal const string SAVE_RESULTS_BUTTON_NAME = _("Save Details…");
@@ -644,7 +658,6 @@ public string build_alert_body_text(string? primary_text, string? secondary_text
guarded_markup_escape_text(primary_text), secondary_text);
}
-
public class EventRenameDialog : TextEntryDialogMediator {
public EventRenameDialog(string? event_name) {
base (_("Rename Event"), _("Name:"), event_name);
diff --git a/src/Dimensions.c b/src/Dimensions.c
deleted file mode 100644
index a547b10..0000000
--- a/src/Dimensions.c
+++ /dev/null
@@ -1,4306 +0,0 @@
-/* Dimensions.c generated by valac 0.40.4, the Vala compiler
- * generated from Dimensions.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gtk/gtk.h>
-#include <cairo.h>
-#include <gdk/gdk.h>
-#include <float.h>
-#include <math.h>
-
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_SCALING (scaling_get_type ())
-typedef struct _Scaling Scaling;
-#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_ZOOM_STATE (zoom_state_get_type ())
-typedef struct _ZoomState ZoomState;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _ZoomState {
- Dimensions content_dimensions;
- Dimensions viewport_dimensions;
- gdouble zoom_factor;
- gdouble interpolation_factor;
- gdouble min_factor;
- gdouble max_factor;
- GdkPoint viewport_center;
-};
-
-
-
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-gchar* scale_constraint_to_string (ScaleConstraint self);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-void dimensions_for_allocation (GtkAllocation* allocation,
- Dimensions* result);
-void dimensions_for_widget_allocation (GtkWidget* widget,
- Dimensions* result);
-void dimensions_for_rectangle (GdkRectangle* rect,
- Dimensions* result);
-gboolean dimensions_has_area (Dimensions *self);
-void dimensions_floor (Dimensions *self,
- Dimensions* min,
- Dimensions* result);
-gchar* dimensions_to_string (Dimensions *self);
-gboolean dimensions_equals (Dimensions *self,
- Dimensions* dim);
-gboolean dimensions_approx_equals (Dimensions *self,
- Dimensions* dim,
- gint fudge);
-gboolean dimensions_approx_scaled (Dimensions *self,
- gint scale,
- gint fudge);
-gint dimensions_major_axis (Dimensions *self);
-gint dimensions_minor_axis (Dimensions *self);
-void dimensions_with_min (Dimensions *self,
- gint min_width,
- gint min_height,
- Dimensions* result);
-void dimensions_with_max (Dimensions *self,
- gint max_width,
- gint max_height,
- Dimensions* result);
-void dimensions_get_scaled (Dimensions *self,
- gint scale,
- gboolean scale_up,
- Dimensions* result);
-void dimensions_get_scaled_by_width (Dimensions *self,
- gint scale,
- Dimensions* result);
-void dimensions_get_scaled_by_height (Dimensions *self,
- gint scale,
- Dimensions* result);
-void dimensions_get_scale_ratios (Dimensions *self,
- Dimensions* scaled,
- gdouble* width_ratio,
- gdouble* height_ratio);
-gdouble dimensions_get_aspect_ratio (Dimensions *self);
-void dimensions_get_scaled_proportional (Dimensions *self,
- Dimensions* viewport,
- Dimensions* result);
-void dimensions_get_scaled_to_fill_viewport (Dimensions *self,
- Dimensions* viewport,
- Dimensions* result);
-void dimensions_get_scaled_rectangle (Dimensions *self,
- Dimensions* scaled,
- GdkRectangle* rect,
- GdkRectangle* result);
-void dimensions_get_scaled_similar (Dimensions *self,
- Dimensions* original,
- Dimensions* scaled,
- Dimensions* result);
-void dimensions_get_scaled_by_constraint (Dimensions *self,
- gint scale,
- ScaleConstraint constraint,
- Dimensions* result);
-GType scaling_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-#define SCALING_NO_SCALE 0
-static void scaling_init (Scaling *self,
- ScaleConstraint constraint,
- gint scale,
- Dimensions* viewport,
- gboolean scale_up);
-void scaling_for_original (Scaling* result);
-void scaling_for_screen (GtkWindow* window,
- gboolean scale_up,
- Scaling* result);
-void scaling_for_viewport (Dimensions* viewport,
- gboolean scale_up,
- Scaling* result);
-static void scaling_get_screen_dimensions (GtkWindow* window,
- Dimensions* result);
-void scaling_for_best_fit (gint pixels,
- gboolean scale_up,
- Scaling* result);
-void scaling_for_widget (GtkWidget* widget,
- gboolean scale_up,
- Scaling* result);
-void scaling_to_fill_viewport (Dimensions* viewport,
- Scaling* result);
-void scaling_to_fill_screen (GtkWindow* window,
- Scaling* result);
-void scaling_for_constraint (ScaleConstraint constraint,
- gint scale,
- gboolean scale_up,
- Scaling* result);
-static gint scaling_scale_to_pixels (Scaling *self);
-gboolean scaling_is_unscaled (Scaling *self);
-gboolean scaling_is_best_fit (Scaling *self,
- Dimensions* original,
- gint* pixels);
-gboolean scaling_is_best_fit_dimensions (Scaling *self,
- Dimensions* original,
- Dimensions* scaled);
-gboolean scaling_is_for_viewport (Scaling *self,
- Dimensions* original,
- Dimensions* scaled);
-gboolean scaling_is_fill_viewport (Scaling *self,
- Dimensions* original,
- Dimensions* scaled);
-void scaling_get_scaled_dimensions (Scaling *self,
- Dimensions* original,
- Dimensions* result);
-GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self,
- GdkPixbuf* pixbuf,
- GdkInterpType interp,
- gboolean scale_up);
-GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf,
- gint scale,
- GdkInterpType interp,
- gboolean scale_up);
-GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* resized,
- GdkInterpType interp);
-gchar* scaling_to_string (Scaling *self);
-gboolean scaling_equals (Scaling *self,
- Scaling* scaling);
-GType zoom_state_get_type (void) G_GNUC_CONST;
-ZoomState* zoom_state_dup (const ZoomState* self);
-void zoom_state_free (ZoomState* self);
-void zoom_state_init (ZoomState *self,
- Dimensions* content_dimensions,
- Dimensions* viewport_dimensions,
- gdouble slider_val,
- GdkPoint* viewport_center);
-static void zoom_state_compute_zoom_factors (ZoomState *self);
-static void zoom_state_center_viewport (ZoomState *self);
-static void zoom_state_clamp_viewport_center (ZoomState *self);
-void zoom_state_init_rescale (ZoomState *self,
- ZoomState* existing,
- gdouble new_slider_val);
-void zoom_state_init_rescale_to_isomorphic (ZoomState *self,
- ZoomState* existing);
-void zoom_state_init_pan (ZoomState *self,
- ZoomState* existing,
- GdkPoint* new_viewport_center);
-gint zoom_state_get_zoomed_width (ZoomState *self);
-gint zoom_state_get_zoomed_height (ZoomState *self);
-gdouble zoom_state_get_interpolation_factor (ZoomState *self);
-void zoom_state_get_viewing_rectangle_wrt_content (ZoomState *self,
- GdkRectangle* result);
-void zoom_state_get_viewing_rectangle_wrt_screen (ZoomState *self,
- GdkRectangle* result);
-void zoom_state_get_viewing_rectangle_projection (ZoomState *self,
- GdkPixbuf* for_pixbuf,
- GdkRectangle* result);
-gdouble zoom_state_get_zoom_factor (ZoomState *self);
-void zoom_state_get_viewport_center (ZoomState *self,
- GdkPoint* result);
-gchar* zoom_state_to_string (ZoomState *self);
-gboolean zoom_state_is_min (ZoomState *self);
-gboolean zoom_state_is_default (ZoomState *self);
-gboolean zoom_state_is_isomorphic (ZoomState *self);
-gboolean zoom_state_is_max (ZoomState *self);
-gboolean zoom_state_equals (ZoomState *self,
- ZoomState* other);
-
-
-gchar*
-scale_constraint_to_string (ScaleConstraint self)
-{
- gchar* result = NULL;
-#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala"
- switch (self) {
-#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_ORIGINAL:
-#line 258 "Dimensions.c"
- {
- gchar* _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = g_strdup (_ ("Original size"));
-#line 17 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 267 "Dimensions.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_DIMENSIONS:
-#line 271 "Dimensions.c"
- {
- gchar* _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = g_strdup (_ ("Longest edge"));
-#line 20 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 280 "Dimensions.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_WIDTH:
-#line 284 "Dimensions.c"
- {
- gchar* _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = g_strdup (_ ("Width"));
-#line 23 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 293 "Dimensions.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_HEIGHT:
-#line 297 "Dimensions.c"
- {
- gchar* _tmp3_;
-#line 26 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = g_strdup (_ ("Height"));
-#line 26 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp3_;
-#line 26 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 306 "Dimensions.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_FILL_VIEWPORT:
-#line 310 "Dimensions.c"
- {
- gchar* _tmp4_;
-#line 30 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = g_strdup ("Fill Viewport");
-#line 30 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp4_;
-#line 30 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 319 "Dimensions.c"
- }
- default:
-#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala"
- break;
-#line 324 "Dimensions.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_warn_if_reached ();
-#line 35 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = NULL;
-#line 35 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 332 "Dimensions.c"
-}
-
-
-GType
-scale_constraint_get_type (void)
-{
- static volatile gsize scale_constraint_type_id__volatile = 0;
- if (g_once_init_enter (&scale_constraint_type_id__volatile)) {
- static const GEnumValue values[] = {{SCALE_CONSTRAINT_ORIGINAL, "SCALE_CONSTRAINT_ORIGINAL", "original"}, {SCALE_CONSTRAINT_DIMENSIONS, "SCALE_CONSTRAINT_DIMENSIONS", "dimensions"}, {SCALE_CONSTRAINT_WIDTH, "SCALE_CONSTRAINT_WIDTH", "width"}, {SCALE_CONSTRAINT_HEIGHT, "SCALE_CONSTRAINT_HEIGHT", "height"}, {SCALE_CONSTRAINT_FILL_VIEWPORT, "SCALE_CONSTRAINT_FILL_VIEWPORT", "fill-viewport"}, {0, NULL, NULL}};
- GType scale_constraint_type_id;
- scale_constraint_type_id = g_enum_register_static ("ScaleConstraint", values);
- g_once_init_leave (&scale_constraint_type_id__volatile, scale_constraint_type_id);
- }
- return scale_constraint_type_id__volatile;
-}
-
-
-void
-dimensions_init (Dimensions *self,
- gint width,
- gint height)
-{
- gboolean _tmp0_ = FALSE;
-#line 43 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (self, 0, sizeof (Dimensions));
-#line 44 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (width < 0) {
-#line 44 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = TRUE;
-#line 362 "Dimensions.c"
- } else {
-#line 44 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = height < 0;
-#line 366 "Dimensions.c"
- }
-#line 44 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp0_) {
-#line 45 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_warning ("Dimensions.vala:45: Tried to construct a Dimensions object with negati" \
-"ve width or height - forcing sensible default values.");
-#line 372 "Dimensions.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).width = CLAMP (width, 0, width);
-#line 48 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).height = CLAMP (height, 0, height);
-#line 378 "Dimensions.c"
-}
-
-
-void
-dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result)
-{
- Dimensions _tmp0_ = {0};
-#line 51 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 52 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp0_, gdk_pixbuf_get_width (pixbuf), gdk_pixbuf_get_height (pixbuf));
-#line 52 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 395 "Dimensions.c"
-}
-
-
-void
-dimensions_for_allocation (GtkAllocation* allocation,
- Dimensions* result)
-{
- GtkAllocation _tmp0_;
- gint _tmp1_;
- GtkAllocation _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_ = {0};
-#line 55 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (allocation != NULL);
-#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *allocation;
-#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.width;
-#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *allocation;
-#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.height;
-#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp4_, _tmp1_, _tmp3_);
-#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp4_;
-#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 424 "Dimensions.c"
-}
-
-
-void
-dimensions_for_widget_allocation (GtkWidget* widget,
- Dimensions* result)
-{
- GtkAllocation allocation = {0};
- GtkAllocation _tmp0_ = {0};
- GtkAllocation _tmp1_;
- gint _tmp2_;
- GtkAllocation _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_ = {0};
-#line 59 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (GTK_IS_WIDGET (widget));
-#line 61 "/home/jens/Source/shotwell/src/Dimensions.vala"
- gtk_widget_get_allocation (widget, &_tmp0_);
-#line 61 "/home/jens/Source/shotwell/src/Dimensions.vala"
- allocation = _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = allocation;
-#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = _tmp1_.width;
-#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = allocation;
-#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp3_.height;
-#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp5_, _tmp2_, _tmp4_);
-#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp5_;
-#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 459 "Dimensions.c"
-}
-
-
-void
-dimensions_for_rectangle (GdkRectangle* rect,
- Dimensions* result)
-{
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_ = {0};
-#line 66 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (rect != NULL);
-#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *rect;
-#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.width;
-#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *rect;
-#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.height;
-#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp4_, _tmp1_, _tmp3_);
-#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp4_;
-#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 488 "Dimensions.c"
-}
-
-
-gboolean
-dimensions_has_area (Dimensions *self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).width;
-#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_ > 0) {
-#line 502 "Dimensions.c"
- gint _tmp2_;
-#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).height;
-#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _tmp2_ > 0;
-#line 508 "Dimensions.c"
- } else {
-#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = FALSE;
-#line 512 "Dimensions.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 518 "Dimensions.c"
-}
-
-
-void
-dimensions_floor (Dimensions *self,
- Dimensions* min,
- Dimensions* result)
-{
- gint _tmp0_ = 0;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
- gint _tmp7_ = 0;
- gint _tmp8_;
- Dimensions _tmp9_;
- gint _tmp10_;
- Dimensions _tmp14_ = {0};
-#line 74 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (min != NULL);
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).width;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *min;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.width;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_ > _tmp3_) {
-#line 546 "Dimensions.c"
- gint _tmp4_;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).width;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _tmp4_;
-#line 552 "Dimensions.c"
- } else {
- Dimensions _tmp5_;
- gint _tmp6_;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = *min;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.width;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _tmp6_;
-#line 562 "Dimensions.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = (*self).height;
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = *min;
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = _tmp9_.height;
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp8_ > _tmp10_) {
-#line 572 "Dimensions.c"
- gint _tmp11_;
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = (*self).height;
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = _tmp11_;
-#line 578 "Dimensions.c"
- } else {
- Dimensions _tmp12_;
- gint _tmp13_;
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = *min;
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = _tmp12_.height;
-#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = _tmp13_;
-#line 588 "Dimensions.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp14_, _tmp0_, _tmp7_);
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp14_;
-#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 596 "Dimensions.c"
-}
-
-
-gchar*
-dimensions_to_string (Dimensions *self)
-{
- gchar* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gchar* _tmp2_;
-#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).width;
-#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).height;
-#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = g_strdup_printf ("%dx%d", _tmp0_, _tmp1_);
-#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp2_;
-#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 617 "Dimensions.c"
-}
-
-
-gboolean
-dimensions_equals (Dimensions *self,
- Dimensions* dim)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
-#line 83 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (dim != NULL, FALSE);
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).width;
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *dim;
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.width;
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_ == _tmp3_) {
-#line 640 "Dimensions.c"
- gint _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).height;
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = *dim;
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.height;
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _tmp4_ == _tmp6_;
-#line 652 "Dimensions.c"
- } else {
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = FALSE;
-#line 656 "Dimensions.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 662 "Dimensions.c"
-}
-
-
-gboolean
-dimensions_approx_equals (Dimensions *self,
- Dimensions* dim,
- gint fudge)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
-#line 88 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (dim != NULL, FALSE);
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).width;
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *dim;
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.width;
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (abs (_tmp1_ - _tmp3_) <= fudge) {
-#line 686 "Dimensions.c"
- gint _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).height;
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = *dim;
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.height;
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = abs (_tmp4_ - _tmp6_) <= fudge;
-#line 698 "Dimensions.c"
- } else {
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = FALSE;
-#line 702 "Dimensions.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 708 "Dimensions.c"
-}
-
-
-gboolean
-dimensions_approx_scaled (Dimensions *self,
- gint scale,
- gint fudge)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).width;
-#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_ <= (scale + fudge)) {
-#line 724 "Dimensions.c"
- gint _tmp2_;
-#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).height;
-#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _tmp2_ <= (scale + fudge);
-#line 730 "Dimensions.c"
- } else {
-#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = FALSE;
-#line 734 "Dimensions.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 740 "Dimensions.c"
-}
-
-
-gint
-dimensions_major_axis (Dimensions *self)
-{
- gint result = 0;
- gint _tmp0_;
- gint _tmp1_;
-#line 97 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).width;
-#line 97 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).height;
-#line 97 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = MAX (_tmp0_, _tmp1_);
-#line 97 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 758 "Dimensions.c"
-}
-
-
-gint
-dimensions_minor_axis (Dimensions *self)
-{
- gint result = 0;
- gint _tmp0_;
- gint _tmp1_;
-#line 101 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).width;
-#line 101 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).height;
-#line 101 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = MIN (_tmp0_, _tmp1_);
-#line 101 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 776 "Dimensions.c"
-}
-
-
-void
-dimensions_with_min (Dimensions *self,
- gint min_width,
- gint min_height,
- Dimensions* result)
-{
- gint _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_ = {0};
-#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).width;
-#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).height;
-#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp2_, MAX (_tmp0_, min_width), MAX (_tmp1_, min_height));
-#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp2_;
-#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 799 "Dimensions.c"
-}
-
-
-void
-dimensions_with_max (Dimensions *self,
- gint max_width,
- gint max_height,
- Dimensions* result)
-{
- gint _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_ = {0};
-#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).width;
-#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).height;
-#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp2_, MIN (_tmp0_, max_width), MIN (_tmp1_, max_height));
-#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp2_;
-#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 822 "Dimensions.c"
-}
-
-
-void
-dimensions_get_scaled (Dimensions *self,
- gint scale,
- gboolean scale_up,
- Dimensions* result)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gint _tmp2_;
- gboolean _tmp10_ = FALSE;
- gint _tmp17_;
- gint _tmp18_;
-#line 113 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (scale > 0, "scale > 0");
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).width;
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp2_ == scale) {
-#line 844 "Dimensions.c"
- gint _tmp3_;
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = (*self).height;
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp3_ < scale;
-#line 850 "Dimensions.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = FALSE;
-#line 854 "Dimensions.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_) {
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = TRUE;
-#line 860 "Dimensions.c"
- } else {
- gboolean _tmp4_ = FALSE;
- gint _tmp5_;
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = (*self).height;
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp5_ == scale) {
-#line 868 "Dimensions.c"
- gint _tmp6_;
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = (*self).width;
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp6_ < scale;
-#line 874 "Dimensions.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = FALSE;
-#line 878 "Dimensions.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _tmp4_;
-#line 882 "Dimensions.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp0_) {
-#line 886 "Dimensions.c"
- gint _tmp7_;
- gint _tmp8_;
- Dimensions _tmp9_ = {0};
-#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = (*self).width;
-#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = (*self).height;
-#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp9_, _tmp7_, _tmp8_);
-#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp9_;
-#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 900 "Dimensions.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (!scale_up) {
-#line 904 "Dimensions.c"
- gboolean _tmp11_ = FALSE;
- gint _tmp12_;
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = (*self).width;
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp12_ < scale) {
-#line 911 "Dimensions.c"
- gint _tmp13_;
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = (*self).height;
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = _tmp13_ < scale;
-#line 917 "Dimensions.c"
- } else {
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = FALSE;
-#line 921 "Dimensions.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = _tmp11_;
-#line 925 "Dimensions.c"
- } else {
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = FALSE;
-#line 929 "Dimensions.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp10_) {
-#line 933 "Dimensions.c"
- gint _tmp14_;
- gint _tmp15_;
- Dimensions _tmp16_ = {0};
-#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = (*self).width;
-#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = (*self).height;
-#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp16_, _tmp14_, _tmp15_);
-#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp16_;
-#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 947 "Dimensions.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = (*self).width;
-#line 123 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = (*self).height;
-#line 123 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if ((_tmp17_ - scale) > (_tmp18_ - scale)) {
-#line 955 "Dimensions.c"
- Dimensions _tmp19_ = {0};
-#line 124 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_by_width (&(*self), scale, &_tmp19_);
-#line 124 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp19_;
-#line 124 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 963 "Dimensions.c"
- } else {
- Dimensions _tmp20_ = {0};
-#line 126 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_by_height (&(*self), scale, &_tmp20_);
-#line 126 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp20_;
-#line 126 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 972 "Dimensions.c"
- }
-}
-
-
-void
-dimensions_get_scale_ratios (Dimensions *self,
- Dimensions* scaled,
- gdouble* width_ratio,
- gdouble* height_ratio)
-{
- gdouble _vala_width_ratio = 0.0;
- gdouble _vala_height_ratio = 0.0;
- Dimensions _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- Dimensions _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (scaled != NULL);
-#line 130 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *scaled;
-#line 130 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.width;
-#line 130 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).width;
-#line 130 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_width_ratio = ((gdouble) _tmp1_) / ((gdouble) _tmp2_);
-#line 131 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = *scaled;
-#line 131 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp3_.height;
-#line 131 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = (*self).height;
-#line 131 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_height_ratio = ((gdouble) _tmp4_) / ((gdouble) _tmp5_);
-#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (width_ratio) {
-#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *width_ratio = _vala_width_ratio;
-#line 1013 "Dimensions.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (height_ratio) {
-#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *height_ratio = _vala_height_ratio;
-#line 1019 "Dimensions.c"
- }
-}
-
-
-gdouble
-dimensions_get_aspect_ratio (Dimensions *self)
-{
- gdouble result = 0.0;
- gint _tmp0_;
- gint _tmp1_;
-#line 135 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).width;
-#line 135 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).height;
-#line 135 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = ((gdouble) _tmp0_) / _tmp1_;
-#line 135 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 1038 "Dimensions.c"
-}
-
-
-void
-dimensions_get_scaled_proportional (Dimensions *self,
- Dimensions* viewport,
- Dimensions* result)
-{
- gdouble width_ratio = 0.0;
- gdouble height_ratio = 0.0;
- Dimensions _tmp0_;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- gdouble scaled_width = 0.0;
- gdouble scaled_height = 0.0;
- gdouble _tmp3_;
- gdouble _tmp4_;
- Dimensions scaled = {0};
- gdouble _tmp13_;
- gdouble _tmp14_;
- Dimensions _tmp15_ = {0};
- Dimensions _tmp16_ = {0};
- Dimensions _tmp17_ = {0};
- Dimensions _tmp18_;
- gint _tmp19_;
- Dimensions _tmp20_;
- gint _tmp21_;
- Dimensions _tmp22_;
- gint _tmp23_;
- Dimensions _tmp24_;
- gint _tmp25_;
-#line 138 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (viewport != NULL);
-#line 140 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *viewport;
-#line 140 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scale_ratios (&(*self), &_tmp0_, &_tmp1_, &_tmp2_);
-#line 140 "/home/jens/Source/shotwell/src/Dimensions.vala"
- width_ratio = _tmp1_;
-#line 140 "/home/jens/Source/shotwell/src/Dimensions.vala"
- height_ratio = _tmp2_;
-#line 143 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = width_ratio;
-#line 143 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = height_ratio;
-#line 143 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp3_ < _tmp4_) {
-#line 1086 "Dimensions.c"
- Dimensions _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gdouble _tmp8_;
-#line 144 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = *viewport;
-#line 144 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.width;
-#line 144 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_width = (gdouble) _tmp6_;
-#line 145 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = (*self).height;
-#line 145 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = width_ratio;
-#line 145 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_height = ((gdouble) _tmp7_) * _tmp8_;
-#line 1103 "Dimensions.c"
- } else {
- gint _tmp9_;
- gdouble _tmp10_;
- Dimensions _tmp11_;
- gint _tmp12_;
-#line 147 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = (*self).width;
-#line 147 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = height_ratio;
-#line 147 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_width = ((gdouble) _tmp9_) * _tmp10_;
-#line 148 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = *viewport;
-#line 148 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = _tmp11_.height;
-#line 148 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_height = (gdouble) _tmp12_;
-#line 1121 "Dimensions.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = scaled_width;
-#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = scaled_height;
-#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp15_, (gint) round (_tmp13_), (gint) round (_tmp14_));
-#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp16_, 1, 1);
-#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_floor (&_tmp15_, &_tmp16_, &_tmp17_);
-#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled = _tmp17_;
-#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = scaled;
-#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp19_ = _tmp18_.height;
-#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp20_ = *viewport;
-#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp21_ = _tmp20_.height;
-#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (_tmp19_ <= _tmp21_, "scaled.height <= viewport.height");
-#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp22_ = scaled;
-#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp23_ = _tmp22_.width;
-#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp24_ = *viewport;
-#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp25_ = _tmp24_.width;
-#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (_tmp23_ <= _tmp25_, "scaled.width <= viewport.width");
-#line 156 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = scaled;
-#line 156 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1159 "Dimensions.c"
-}
-
-
-void
-dimensions_get_scaled_to_fill_viewport (Dimensions *self,
- Dimensions* viewport,
- Dimensions* result)
-{
- gdouble width_ratio = 0.0;
- gdouble height_ratio = 0.0;
- Dimensions _tmp0_;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- gdouble scaled_width = 0.0;
- gdouble scaled_height = 0.0;
- gboolean _tmp3_ = FALSE;
- gint _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
- gdouble _tmp31_;
- gdouble _tmp32_;
- Dimensions _tmp33_ = {0};
- Dimensions _tmp34_ = {0};
- Dimensions _tmp35_ = {0};
-#line 159 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (viewport != NULL);
-#line 161 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *viewport;
-#line 161 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scale_ratios (&(*self), &_tmp0_, &_tmp1_, &_tmp2_);
-#line 161 "/home/jens/Source/shotwell/src/Dimensions.vala"
- width_ratio = _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/Dimensions.vala"
- height_ratio = _tmp2_;
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).width;
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = *viewport;
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.width;
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp4_ < _tmp6_) {
-#line 1202 "Dimensions.c"
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = (*self).height;
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = *viewport;
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = _tmp8_.height;
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp7_ >= _tmp9_;
-#line 1214 "Dimensions.c"
- } else {
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = FALSE;
-#line 1218 "Dimensions.c"
- }
-#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp3_) {
-#line 1222 "Dimensions.c"
- Dimensions _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gdouble _tmp13_;
-#line 166 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = *viewport;
-#line 166 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = _tmp10_.width;
-#line 166 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_width = (gdouble) _tmp11_;
-#line 167 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = (*self).height;
-#line 167 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = width_ratio;
-#line 167 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_height = ((gdouble) _tmp12_) * _tmp13_;
-#line 1239 "Dimensions.c"
- } else {
- gboolean _tmp14_ = FALSE;
- gint _tmp15_;
- Dimensions _tmp16_;
- gint _tmp17_;
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = (*self).width;
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = *viewport;
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = _tmp16_.width;
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp15_ >= _tmp17_) {
-#line 1253 "Dimensions.c"
- gint _tmp18_;
- Dimensions _tmp19_;
- gint _tmp20_;
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = (*self).height;
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp19_ = *viewport;
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp20_ = _tmp19_.height;
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = _tmp18_ < _tmp20_;
-#line 1265 "Dimensions.c"
- } else {
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = FALSE;
-#line 1269 "Dimensions.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp14_) {
-#line 1273 "Dimensions.c"
- gint _tmp21_;
- gdouble _tmp22_;
- Dimensions _tmp23_;
- gint _tmp24_;
-#line 170 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp21_ = (*self).width;
-#line 170 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp22_ = height_ratio;
-#line 170 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_width = ((gdouble) _tmp21_) * _tmp22_;
-#line 171 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp23_ = *viewport;
-#line 171 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp24_ = _tmp23_.height;
-#line 171 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_height = (gdouble) _tmp24_;
-#line 1290 "Dimensions.c"
- } else {
- gdouble ratio = 0.0;
- gdouble _tmp25_;
- gdouble _tmp26_;
- gint _tmp27_;
- gdouble _tmp28_;
- gint _tmp29_;
- gdouble _tmp30_;
-#line 174 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp25_ = width_ratio;
-#line 174 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp26_ = height_ratio;
-#line 174 "/home/jens/Source/shotwell/src/Dimensions.vala"
- ratio = MAX (_tmp25_, _tmp26_);
-#line 176 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp27_ = (*self).width;
-#line 176 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp28_ = ratio;
-#line 176 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_width = ((gdouble) _tmp27_) * _tmp28_;
-#line 177 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp29_ = (*self).height;
-#line 177 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp30_ = ratio;
-#line 177 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_height = ((gdouble) _tmp29_) * _tmp30_;
-#line 1317 "Dimensions.c"
- }
- }
-#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp31_ = scaled_width;
-#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp32_ = scaled_height;
-#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp33_, (gint) round (_tmp31_), (gint) round (_tmp32_));
-#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp34_, 1, 1);
-#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_floor (&_tmp33_, &_tmp34_, &_tmp35_);
-#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp35_;
-#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1334 "Dimensions.c"
-}
-
-
-void
-dimensions_get_scaled_rectangle (Dimensions *self,
- Dimensions* scaled,
- GdkRectangle* rect,
- GdkRectangle* result)
-{
- gdouble x_scale = 0.0;
- gdouble y_scale = 0.0;
- Dimensions _tmp0_;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- GdkRectangle scaled_rect = {0};
- GdkRectangle _tmp3_;
- gint _tmp4_;
- gdouble _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- gdouble _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- gdouble _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
- gdouble _tmp14_;
- GdkRectangle _tmp15_;
- gint _tmp16_;
- GdkRectangle _tmp17_;
- gint _tmp18_;
-#line 183 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (scaled != NULL);
-#line 183 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (rect != NULL);
-#line 185 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *scaled;
-#line 185 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scale_ratios (&(*self), &_tmp0_, &_tmp1_, &_tmp2_);
-#line 185 "/home/jens/Source/shotwell/src/Dimensions.vala"
- x_scale = _tmp1_;
-#line 185 "/home/jens/Source/shotwell/src/Dimensions.vala"
- y_scale = _tmp2_;
-#line 187 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (&scaled_rect, 0, sizeof (GdkRectangle));
-#line 188 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = *rect;
-#line 188 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp3_.x;
-#line 188 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = x_scale;
-#line 188 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_rect.x = (gint) round (((gdouble) _tmp4_) * _tmp5_);
-#line 189 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = *rect;
-#line 189 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = _tmp6_.y;
-#line 189 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = y_scale;
-#line 189 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_rect.y = (gint) round (((gdouble) _tmp7_) * _tmp8_);
-#line 190 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = *rect;
-#line 190 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = _tmp9_.width;
-#line 190 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = x_scale;
-#line 190 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_rect.width = (gint) round (((gdouble) _tmp10_) * _tmp11_);
-#line 191 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = *rect;
-#line 191 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = _tmp12_.height;
-#line 191 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = y_scale;
-#line 191 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_rect.height = (gint) round (((gdouble) _tmp13_) * _tmp14_);
-#line 193 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = scaled_rect;
-#line 193 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = _tmp15_.width;
-#line 193 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp16_ <= 0) {
-#line 194 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_rect.width = 1;
-#line 1420 "Dimensions.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = scaled_rect;
-#line 196 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = _tmp17_.height;
-#line 196 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp18_ <= 0) {
-#line 197 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled_rect.height = 1;
-#line 1430 "Dimensions.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = scaled_rect;
-#line 199 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1436 "Dimensions.c"
-}
-
-
-void
-dimensions_get_scaled_similar (Dimensions *self,
- Dimensions* original,
- Dimensions* scaled,
- Dimensions* result)
-{
- gdouble x_scale = 0.0;
- gdouble y_scale = 0.0;
- Dimensions _tmp0_;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- gdouble scale = 0.0;
- gint _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_ = {0};
- Dimensions _tmp6_ = {0};
- Dimensions _tmp7_ = {0};
-#line 203 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (original != NULL);
-#line 203 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (scaled != NULL);
-#line 205 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *scaled;
-#line 205 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scale_ratios (original, &_tmp0_, &_tmp1_, &_tmp2_);
-#line 205 "/home/jens/Source/shotwell/src/Dimensions.vala"
- x_scale = _tmp1_;
-#line 205 "/home/jens/Source/shotwell/src/Dimensions.vala"
- y_scale = _tmp2_;
-#line 207 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scale = MIN (x_scale, y_scale);
-#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = (*self).width;
-#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).height;
-#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp5_, (gint) round (((gdouble) _tmp3_) * scale), (gint) round (((gdouble) _tmp4_) * scale));
-#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp6_, 1, 1);
-#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_floor (&_tmp5_, &_tmp6_, &_tmp7_);
-#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp7_;
-#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1485 "Dimensions.c"
-}
-
-
-void
-dimensions_get_scaled_by_width (Dimensions *self,
- gint scale,
- Dimensions* result)
-{
- gdouble ratio = 0.0;
- gint _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_ = {0};
- Dimensions _tmp3_ = {0};
- Dimensions _tmp4_ = {0};
-#line 214 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (scale > 0, "scale > 0");
-#line 216 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).width;
-#line 216 "/home/jens/Source/shotwell/src/Dimensions.vala"
- ratio = ((gdouble) scale) / ((gdouble) _tmp0_);
-#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).height;
-#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp2_, scale, (gint) round (((gdouble) _tmp1_) * ratio));
-#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp3_, 1, 1);
-#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_floor (&_tmp2_, &_tmp3_, &_tmp4_);
-#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp4_;
-#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1518 "Dimensions.c"
-}
-
-
-void
-dimensions_get_scaled_by_height (Dimensions *self,
- gint scale,
- Dimensions* result)
-{
- gdouble ratio = 0.0;
- gint _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_ = {0};
- Dimensions _tmp3_ = {0};
- Dimensions _tmp4_ = {0};
-#line 222 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (scale > 0, "scale > 0");
-#line 224 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).height;
-#line 224 "/home/jens/Source/shotwell/src/Dimensions.vala"
- ratio = ((gdouble) scale) / ((gdouble) _tmp0_);
-#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).width;
-#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp2_, (gint) round (((gdouble) _tmp1_) * ratio), scale);
-#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp3_, 1, 1);
-#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_floor (&_tmp2_, &_tmp3_, &_tmp4_);
-#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp4_;
-#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1551 "Dimensions.c"
-}
-
-
-void
-dimensions_get_scaled_by_constraint (Dimensions *self,
- gint scale,
- ScaleConstraint constraint,
- Dimensions* result)
-{
-#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala"
- switch (constraint) {
-#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_ORIGINAL:
-#line 1565 "Dimensions.c"
- {
- gint _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_ = {0};
-#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).width;
-#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).height;
-#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp2_, _tmp0_, _tmp1_);
-#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp2_;
-#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1580 "Dimensions.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_DIMENSIONS:
-#line 1584 "Dimensions.c"
- {
- Dimensions _tmp3_ = {0};
- gint _tmp4_;
- gint _tmp5_;
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).width;
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = (*self).height;
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp4_ >= _tmp5_) {
-#line 1595 "Dimensions.c"
- Dimensions _tmp6_ = {0};
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_by_width (&(*self), scale, &_tmp6_);
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp6_;
-#line 1601 "Dimensions.c"
- } else {
- Dimensions _tmp7_ = {0};
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_by_height (&(*self), scale, &_tmp7_);
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp7_;
-#line 1608 "Dimensions.c"
- }
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp3_;
-#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1614 "Dimensions.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_WIDTH:
-#line 1618 "Dimensions.c"
- {
- Dimensions _tmp8_ = {0};
-#line 238 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_by_width (&(*self), scale, &_tmp8_);
-#line 238 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp8_;
-#line 238 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1627 "Dimensions.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_HEIGHT:
-#line 1631 "Dimensions.c"
- {
- Dimensions _tmp9_ = {0};
-#line 241 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_by_height (&(*self), scale, &_tmp9_);
-#line 241 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp9_;
-#line 241 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1640 "Dimensions.c"
- }
- default:
- {
-#line 244 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_error ("Dimensions.vala:244: Bad constraint: %d", (gint) constraint);
-#line 1646 "Dimensions.c"
- }
- }
-}
-
-
-Dimensions*
-dimensions_dup (const Dimensions* self)
-{
- Dimensions* dup;
-#line 39 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dup = g_new0 (Dimensions, 1);
-#line 39 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memcpy (dup, self, sizeof (Dimensions));
-#line 39 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return dup;
-#line 1662 "Dimensions.c"
-}
-
-
-void
-dimensions_free (Dimensions* self)
-{
-#line 39 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_free (self);
-#line 1671 "Dimensions.c"
-}
-
-
-GType
-dimensions_get_type (void)
-{
- static volatile gsize dimensions_type_id__volatile = 0;
- if (g_once_init_enter (&dimensions_type_id__volatile)) {
- GType dimensions_type_id;
- dimensions_type_id = g_boxed_type_register_static ("Dimensions", (GBoxedCopyFunc) dimensions_dup, (GBoxedFreeFunc) dimensions_free);
- g_once_init_leave (&dimensions_type_id__volatile, dimensions_type_id);
- }
- return dimensions_type_id__volatile;
-}
-
-
-static void
-scaling_init (Scaling *self,
- ScaleConstraint constraint,
- gint scale,
- Dimensions* viewport,
- gboolean scale_up)
-{
- Dimensions _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (viewport != NULL);
-#line 257 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (self, 0, sizeof (Scaling));
-#line 258 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).constraint = constraint;
-#line 259 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).scale = scale;
-#line 260 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *viewport;
-#line 260 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport = _tmp0_;
-#line 261 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).scale_up = scale_up;
-#line 1710 "Dimensions.c"
-}
-
-
-void
-scaling_for_original (Scaling* result)
-{
- Dimensions _tmp0_ = {0};
- Scaling _tmp1_ = {0};
-#line 265 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 265 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_init (&_tmp1_, SCALE_CONSTRAINT_ORIGINAL, SCALING_NO_SCALE, &_tmp0_, FALSE);
-#line 265 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp1_;
-#line 265 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1727 "Dimensions.c"
-}
-
-
-void
-scaling_for_screen (GtkWindow* window,
- gboolean scale_up,
- Scaling* result)
-{
- Dimensions _tmp0_ = {0};
- Scaling _tmp1_ = {0};
-#line 268 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (GTK_IS_WINDOW (window));
-#line 269 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_get_screen_dimensions (window, &_tmp0_);
-#line 269 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_for_viewport (&_tmp0_, scale_up, &_tmp1_);
-#line 269 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp1_;
-#line 269 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1748 "Dimensions.c"
-}
-
-
-void
-scaling_for_best_fit (gint pixels,
- gboolean scale_up,
- Scaling* result)
-{
- Dimensions _tmp0_ = {0};
- Scaling _tmp1_ = {0};
-#line 273 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (pixels > 0, "pixels > 0");
-#line 275 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 275 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_init (&_tmp1_, SCALE_CONSTRAINT_DIMENSIONS, pixels, &_tmp0_, scale_up);
-#line 275 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp1_;
-#line 275 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1769 "Dimensions.c"
-}
-
-
-void
-scaling_for_viewport (Dimensions* viewport,
- gboolean scale_up,
- Scaling* result)
-{
- Dimensions _tmp0_;
- Scaling _tmp1_ = {0};
-#line 278 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (viewport != NULL);
-#line 279 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (dimensions_has_area (viewport), "viewport.has_area()");
-#line 281 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *viewport;
-#line 281 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_init (&_tmp1_, SCALE_CONSTRAINT_DIMENSIONS, SCALING_NO_SCALE, &_tmp0_, scale_up);
-#line 281 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp1_;
-#line 281 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1792 "Dimensions.c"
-}
-
-
-void
-scaling_for_widget (GtkWidget* widget,
- gboolean scale_up,
- Scaling* result)
-{
- Dimensions viewport = {0};
- Dimensions _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
- Dimensions _tmp2_;
- gint _tmp3_;
- Dimensions _tmp7_;
- Scaling _tmp8_ = {0};
-#line 284 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (GTK_IS_WIDGET (widget));
-#line 285 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_for_widget_allocation (widget, &_tmp0_);
-#line 285 "/home/jens/Source/shotwell/src/Dimensions.vala"
- viewport = _tmp0_;
-#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = viewport;
-#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.width;
-#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp3_ <= 1) {
-#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = TRUE;
-#line 1822 "Dimensions.c"
- } else {
- Dimensions _tmp4_;
- gint _tmp5_;
-#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = viewport;
-#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = _tmp4_.height;
-#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp5_ <= 1;
-#line 1832 "Dimensions.c"
- }
-#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_) {
-#line 1836 "Dimensions.c"
- Scaling _tmp6_ = {0};
-#line 296 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_for_original (&_tmp6_);
-#line 296 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp6_;
-#line 296 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1844 "Dimensions.c"
- }
-#line 298 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = viewport;
-#line 298 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_init (&_tmp8_, SCALE_CONSTRAINT_DIMENSIONS, SCALING_NO_SCALE, &_tmp7_, scale_up);
-#line 298 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp8_;
-#line 298 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1854 "Dimensions.c"
-}
-
-
-void
-scaling_to_fill_viewport (Dimensions* viewport,
- Scaling* result)
-{
- gboolean _tmp0_ = FALSE;
- Dimensions _tmp1_;
- gint _tmp2_;
- Dimensions _tmp6_;
- Scaling _tmp7_ = {0};
-#line 301 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (viewport != NULL);
-#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = *viewport;
-#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = _tmp1_.width;
-#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp2_ <= 1) {
-#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = TRUE;
-#line 1877 "Dimensions.c"
- } else {
- Dimensions _tmp3_;
- gint _tmp4_;
-#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = *viewport;
-#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp3_.height;
-#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _tmp4_ <= 1;
-#line 1887 "Dimensions.c"
- }
-#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp0_) {
-#line 1891 "Dimensions.c"
- Scaling _tmp5_ = {0};
-#line 305 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_for_original (&_tmp5_);
-#line 305 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp5_;
-#line 305 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1899 "Dimensions.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = *viewport;
-#line 307 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_init (&_tmp7_, SCALE_CONSTRAINT_FILL_VIEWPORT, SCALING_NO_SCALE, &_tmp6_, TRUE);
-#line 307 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp7_;
-#line 307 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1909 "Dimensions.c"
-}
-
-
-void
-scaling_to_fill_screen (GtkWindow* window,
- Scaling* result)
-{
- Dimensions _tmp0_ = {0};
- Scaling _tmp1_ = {0};
-#line 310 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (GTK_IS_WINDOW (window));
-#line 311 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_get_screen_dimensions (window, &_tmp0_);
-#line 311 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_to_fill_viewport (&_tmp0_, &_tmp1_);
-#line 311 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp1_;
-#line 311 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1929 "Dimensions.c"
-}
-
-
-void
-scaling_for_constraint (ScaleConstraint constraint,
- gint scale,
- gboolean scale_up,
- Scaling* result)
-{
- Dimensions _tmp0_ = {0};
- Scaling _tmp1_ = {0};
-#line 315 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 315 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaling_init (&_tmp1_, constraint, scale, &_tmp0_, scale_up);
-#line 315 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp1_;
-#line 315 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1949 "Dimensions.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 319 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1958 "Dimensions.c"
-}
-
-
-static void
-scaling_get_screen_dimensions (GtkWindow* window,
- Dimensions* result)
-{
- GdkScreen* screen = NULL;
- GdkScreen* _tmp0_;
- GdkScreen* _tmp1_;
- Dimensions _tmp2_ = {0};
-#line 318 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (GTK_IS_WINDOW (window));
-#line 319 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = gtk_window_get_screen (window);
-#line 319 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 319 "/home/jens/Source/shotwell/src/Dimensions.vala"
- screen = _tmp1_;
-#line 321 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_tmp2_, gdk_screen_get_width (screen), gdk_screen_get_height (screen));
-#line 321 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp2_;
-#line 321 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_object_unref0 (screen);
-#line 321 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 1986 "Dimensions.c"
-}
-
-
-static gint
-scaling_scale_to_pixels (Scaling *self)
-{
- gint result = 0;
- gint _tmp0_ = 0;
- gint _tmp1_;
-#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).scale;
-#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_ >= 0) {
-#line 2000 "Dimensions.c"
- gint _tmp2_;
-#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).scale;
-#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _tmp2_;
-#line 2006 "Dimensions.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = 0;
-#line 2010 "Dimensions.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2016 "Dimensions.c"
-}
-
-
-gboolean
-scaling_is_unscaled (Scaling *self)
-{
- gboolean result = FALSE;
- ScaleConstraint _tmp0_;
-#line 329 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).constraint;
-#line 329 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_ == SCALE_CONSTRAINT_ORIGINAL;
-#line 329 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2031 "Dimensions.c"
-}
-
-
-gboolean
-scaling_is_best_fit (Scaling *self,
- Dimensions* original,
- gint* pixels)
-{
- gint _vala_pixels = 0;
- gboolean result = FALSE;
- gint _tmp0_;
- ScaleConstraint _tmp1_;
-#line 332 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (original != NULL, FALSE);
-#line 333 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_pixels = 0;
-#line 335 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).scale;
-#line 335 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp0_ == SCALING_NO_SCALE) {
-#line 336 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 336 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (pixels) {
-#line 336 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *pixels = _vala_pixels;
-#line 2058 "Dimensions.c"
- }
-#line 336 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2062 "Dimensions.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).constraint;
-#line 338 "/home/jens/Source/shotwell/src/Dimensions.vala"
- switch (_tmp1_) {
-#line 338 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_ORIGINAL:
-#line 338 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_FILL_VIEWPORT:
-#line 2072 "Dimensions.c"
- {
-#line 341 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 341 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (pixels) {
-#line 341 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *pixels = _vala_pixels;
-#line 2080 "Dimensions.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2084 "Dimensions.c"
- }
- default:
- {
- gint _tmp2_;
-#line 344 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_pixels = scaling_scale_to_pixels (&(*self));
-#line 345 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = _vala_pixels;
-#line 345 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (_tmp2_ > 0, "pixels > 0");
-#line 347 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = TRUE;
-#line 347 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (pixels) {
-#line 347 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *pixels = _vala_pixels;
-#line 2101 "Dimensions.c"
- }
-#line 347 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2105 "Dimensions.c"
- }
- }
-#line 332 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (pixels) {
-#line 332 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *pixels = _vala_pixels;
-#line 2112 "Dimensions.c"
- }
-}
-
-
-gboolean
-scaling_is_best_fit_dimensions (Scaling *self,
- Dimensions* original,
- Dimensions* scaled)
-{
- Dimensions _vala_scaled = {0};
- gboolean result = FALSE;
- gint _tmp0_;
- ScaleConstraint _tmp1_;
-#line 351 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (original != NULL, FALSE);
-#line 352 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_vala_scaled, 0, 0);
-#line 354 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).scale;
-#line 354 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp0_ == SCALING_NO_SCALE) {
-#line 355 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 355 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 355 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2140 "Dimensions.c"
- }
-#line 355 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2144 "Dimensions.c"
- }
-#line 357 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).constraint;
-#line 357 "/home/jens/Source/shotwell/src/Dimensions.vala"
- switch (_tmp1_) {
-#line 357 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_ORIGINAL:
-#line 357 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_FILL_VIEWPORT:
-#line 2154 "Dimensions.c"
- {
-#line 360 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 360 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 360 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2162 "Dimensions.c"
- }
-#line 360 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2166 "Dimensions.c"
- }
- default:
- {
- gint pixels = 0;
- gint _tmp2_;
- gint _tmp3_;
- ScaleConstraint _tmp4_;
- Dimensions _tmp5_ = {0};
-#line 363 "/home/jens/Source/shotwell/src/Dimensions.vala"
- pixels = scaling_scale_to_pixels (&(*self));
-#line 364 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = pixels;
-#line 364 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (_tmp2_ > 0, "pixels > 0");
-#line 366 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = pixels;
-#line 366 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).constraint;
-#line 366 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_by_constraint (original, _tmp3_, _tmp4_, &_tmp5_);
-#line 366 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_scaled = _tmp5_;
-#line 368 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = TRUE;
-#line 368 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 368 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2195 "Dimensions.c"
- }
-#line 368 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2199 "Dimensions.c"
- }
- }
-#line 351 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 351 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2206 "Dimensions.c"
- }
-}
-
-
-gboolean
-scaling_is_for_viewport (Scaling *self,
- Dimensions* original,
- Dimensions* scaled)
-{
- Dimensions _vala_scaled = {0};
- gboolean result = FALSE;
- gint _tmp0_;
- ScaleConstraint _tmp1_;
-#line 372 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (original != NULL, FALSE);
-#line 373 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_vala_scaled, 0, 0);
-#line 375 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).scale;
-#line 375 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp0_ != SCALING_NO_SCALE) {
-#line 376 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 376 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 376 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2234 "Dimensions.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2238 "Dimensions.c"
- }
-#line 378 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).constraint;
-#line 378 "/home/jens/Source/shotwell/src/Dimensions.vala"
- switch (_tmp1_) {
-#line 378 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_ORIGINAL:
-#line 378 "/home/jens/Source/shotwell/src/Dimensions.vala"
- case SCALE_CONSTRAINT_FILL_VIEWPORT:
-#line 2248 "Dimensions.c"
- {
-#line 381 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 381 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 381 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2256 "Dimensions.c"
- }
-#line 381 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2260 "Dimensions.c"
- }
- default:
- {
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_;
-#line 384 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (dimensions_has_area (&(*self).viewport), "viewport.has_area()");
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).scale_up;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (!_tmp4_) {
-#line 2273 "Dimensions.c"
- Dimensions _tmp5_;
- gint _tmp6_;
- Dimensions _tmp7_;
- gint _tmp8_;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = *original;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.width;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = (*self).viewport;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = _tmp7_.width;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp6_ < _tmp8_;
-#line 2288 "Dimensions.c"
- } else {
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = FALSE;
-#line 2292 "Dimensions.c"
- }
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp3_) {
-#line 2296 "Dimensions.c"
- Dimensions _tmp9_;
- gint _tmp10_;
- Dimensions _tmp11_;
- gint _tmp12_;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = *original;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = _tmp9_.height;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = (*self).viewport;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = _tmp11_.height;
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = _tmp10_ < _tmp12_;
-#line 2311 "Dimensions.c"
- } else {
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = FALSE;
-#line 2315 "Dimensions.c"
- }
-#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp2_) {
-#line 2319 "Dimensions.c"
- Dimensions _tmp13_;
-#line 387 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = *original;
-#line 387 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_scaled = _tmp13_;
-#line 2325 "Dimensions.c"
- } else {
- Dimensions _tmp14_;
- Dimensions _tmp15_ = {0};
-#line 389 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = (*self).viewport;
-#line 389 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_proportional (original, &_tmp14_, &_tmp15_);
-#line 389 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_scaled = _tmp15_;
-#line 2335 "Dimensions.c"
- }
-#line 391 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = TRUE;
-#line 391 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 391 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2343 "Dimensions.c"
- }
-#line 391 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2347 "Dimensions.c"
- }
- }
-#line 372 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 372 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2354 "Dimensions.c"
- }
-}
-
-
-gboolean
-scaling_is_fill_viewport (Scaling *self,
- Dimensions* original,
- Dimensions* scaled)
-{
- Dimensions _vala_scaled = {0};
- gboolean result = FALSE;
- ScaleConstraint _tmp0_;
- Dimensions _tmp1_;
- Dimensions _tmp2_ = {0};
-#line 395 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (original != NULL, FALSE);
-#line 396 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_init (&_vala_scaled, 0, 0);
-#line 398 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).constraint;
-#line 398 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp0_ != SCALE_CONSTRAINT_FILL_VIEWPORT) {
-#line 399 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 399 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 399 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2383 "Dimensions.c"
- }
-#line 399 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2387 "Dimensions.c"
- }
-#line 401 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (dimensions_has_area (&(*self).viewport), "viewport.has_area()");
-#line 402 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).viewport;
-#line 402 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scaled_to_fill_viewport (original, &_tmp1_, &_tmp2_);
-#line 402 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_scaled = _tmp2_;
-#line 404 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = TRUE;
-#line 404 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaled) {
-#line 404 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *scaled = _vala_scaled;
-#line 2403 "Dimensions.c"
- }
-#line 404 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2407 "Dimensions.c"
-}
-
-
-void
-scaling_get_scaled_dimensions (Scaling *self,
- Dimensions* original,
- Dimensions* result)
-{
- Dimensions scaled = {0};
- Dimensions _tmp1_;
- Dimensions _tmp2_ = {0};
- gboolean _tmp3_;
- Dimensions _tmp4_;
- Dimensions _tmp5_ = {0};
- gboolean _tmp6_;
- gboolean is_viewport = FALSE;
- Dimensions _tmp7_;
- Dimensions _tmp8_ = {0};
- gboolean _tmp9_;
- gboolean _tmp10_;
-#line 407 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (original != NULL);
-#line 408 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaling_is_unscaled (&(*self))) {
-#line 2432 "Dimensions.c"
- Dimensions _tmp0_;
-#line 409 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *original;
-#line 409 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp0_;
-#line 409 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 2440 "Dimensions.c"
- }
-#line 412 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = *original;
-#line 412 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = scaling_is_fill_viewport (&(*self), &_tmp1_, &_tmp2_);
-#line 412 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled = _tmp2_;
-#line 412 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp3_) {
-#line 413 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = scaled;
-#line 413 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 2454 "Dimensions.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = *original;
-#line 415 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = scaling_is_best_fit_dimensions (&(*self), &_tmp4_, &_tmp5_);
-#line 415 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled = _tmp5_;
-#line 415 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp6_) {
-#line 416 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = scaled;
-#line 416 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 2468 "Dimensions.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = *original;
-#line 418 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = scaling_is_for_viewport (&(*self), &_tmp7_, &_tmp8_);
-#line 418 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled = _tmp8_;
-#line 418 "/home/jens/Source/shotwell/src/Dimensions.vala"
- is_viewport = _tmp9_;
-#line 419 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = is_viewport;
-#line 419 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (_tmp10_, "is_viewport");
-#line 421 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = scaled;
-#line 421 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 2486 "Dimensions.c"
-}
-
-
-GdkPixbuf*
-scaling_perform_on_pixbuf (Scaling *self,
- GdkPixbuf* pixbuf,
- GdkInterpType interp,
- gboolean scale_up)
-{
- GdkPixbuf* result = NULL;
- Dimensions pixbuf_dim = {0};
- Dimensions _tmp1_ = {0};
- gint pixels = 0;
- Dimensions _tmp2_;
- gint _tmp3_ = 0;
- gboolean _tmp4_;
- Dimensions scaled = {0};
- Dimensions _tmp7_;
- Dimensions _tmp8_ = {0};
- gboolean _tmp9_;
- gboolean is_viewport = FALSE;
- Dimensions _tmp12_;
- Dimensions _tmp13_ = {0};
- gboolean _tmp14_;
- gboolean _tmp15_;
- Dimensions _tmp16_;
- GdkPixbuf* _tmp17_;
-#line 424 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 425 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (scaling_is_unscaled (&(*self))) {
-#line 2518 "Dimensions.c"
- GdkPixbuf* _tmp0_;
-#line 426 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = _g_object_ref0 (pixbuf);
-#line 426 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 426 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2526 "Dimensions.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_for_pixbuf (pixbuf, &_tmp1_);
-#line 428 "/home/jens/Source/shotwell/src/Dimensions.vala"
- pixbuf_dim = _tmp1_;
-#line 431 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = pixbuf_dim;
-#line 431 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = scaling_is_best_fit (&(*self), &_tmp2_, &_tmp3_);
-#line 431 "/home/jens/Source/shotwell/src/Dimensions.vala"
- pixels = _tmp3_;
-#line 431 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp4_) {
-#line 2540 "Dimensions.c"
- gint _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 432 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = pixels;
-#line 432 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = scale_pixbuf (pixbuf, _tmp5_, interp, scale_up);
-#line 432 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp6_;
-#line 432 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2551 "Dimensions.c"
- }
-#line 435 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = pixbuf_dim;
-#line 435 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = scaling_is_fill_viewport (&(*self), &_tmp7_, &_tmp8_);
-#line 435 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled = _tmp8_;
-#line 435 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp9_) {
-#line 2561 "Dimensions.c"
- Dimensions _tmp10_;
- GdkPixbuf* _tmp11_;
-#line 436 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = scaled;
-#line 436 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = resize_pixbuf (pixbuf, &_tmp10_, interp);
-#line 436 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp11_;
-#line 436 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2572 "Dimensions.c"
- }
-#line 438 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = pixbuf_dim;
-#line 438 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = scaling_is_for_viewport (&(*self), &_tmp12_, &_tmp13_);
-#line 438 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scaled = _tmp13_;
-#line 438 "/home/jens/Source/shotwell/src/Dimensions.vala"
- is_viewport = _tmp14_;
-#line 439 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = is_viewport;
-#line 439 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _vala_assert (_tmp15_, "is_viewport");
-#line 441 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = scaled;
-#line 441 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = resize_pixbuf (pixbuf, &_tmp16_, interp);
-#line 441 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp17_;
-#line 441 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2594 "Dimensions.c"
-}
-
-
-gchar*
-scaling_to_string (Scaling *self)
-{
- gchar* result = NULL;
- ScaleConstraint _tmp0_;
-#line 445 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).constraint;
-#line 445 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp0_ == SCALE_CONSTRAINT_ORIGINAL) {
-#line 2607 "Dimensions.c"
- gchar* _tmp1_;
-#line 446 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = g_strdup ("scaling: UNSCALED");
-#line 446 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp1_;
-#line 446 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2615 "Dimensions.c"
- } else {
- ScaleConstraint _tmp2_;
-#line 447 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).constraint;
-#line 447 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp2_ == SCALE_CONSTRAINT_FILL_VIEWPORT) {
-#line 2622 "Dimensions.c"
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = dimensions_to_string (&(*self).viewport);
-#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp3_;
-#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = g_strdup_printf ("scaling: fill viewport %s", _tmp4_);
-#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_;
-#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (_tmp4_);
-#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp6_;
-#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2641 "Dimensions.c"
- } else {
- gint _tmp7_;
-#line 449 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = (*self).scale;
-#line 449 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp7_ != SCALING_NO_SCALE) {
-#line 2648 "Dimensions.c"
- const gchar* _tmp8_ = NULL;
- gboolean _tmp9_;
- ScaleConstraint _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 451 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = (*self).scale_up;
-#line 451 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp9_) {
-#line 451 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = "scaled up";
-#line 2662 "Dimensions.c"
- } else {
-#line 451 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = "not scaled up";
-#line 2666 "Dimensions.c"
- }
-#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = (*self).constraint;
-#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = scale_constraint_to_string (_tmp10_);
-#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = _tmp11_;
-#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = g_strdup_printf ("scaling: best-fit (%s %d pixels %s)", _tmp12_, scaling_scale_to_pixels (&(*self)), _tmp8_);
-#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = _tmp13_;
-#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (_tmp12_);
-#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp14_;
-#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2684 "Dimensions.c"
- } else {
- const gchar* _tmp15_ = NULL;
- gboolean _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
-#line 454 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = (*self).scale_up;
-#line 454 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp16_) {
-#line 454 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = "scaled up";
-#line 2698 "Dimensions.c"
- } else {
-#line 454 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = "not scaled up";
-#line 2702 "Dimensions.c"
- }
-#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = dimensions_to_string (&(*self).viewport);
-#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = _tmp17_;
-#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp19_ = g_strdup_printf ("scaling: viewport %s (%s)", _tmp18_, _tmp15_);
-#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp20_ = _tmp19_;
-#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (_tmp18_);
-#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp20_;
-#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2718 "Dimensions.c"
- }
- }
- }
-}
-
-
-gboolean
-scaling_equals (Scaling *self,
- Scaling* scaling)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- ScaleConstraint _tmp2_;
- Scaling _tmp3_;
- ScaleConstraint _tmp4_;
-#line 457 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (scaling != NULL, FALSE);
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).constraint;
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = *scaling;
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp3_.constraint;
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp2_ == _tmp4_) {
-#line 2745 "Dimensions.c"
- gint _tmp5_;
- Scaling _tmp6_;
- gint _tmp7_;
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = (*self).scale;
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = *scaling;
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = _tmp6_.scale;
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp5_ == _tmp7_;
-#line 2757 "Dimensions.c"
- } else {
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = FALSE;
-#line 2761 "Dimensions.c"
- }
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_) {
-#line 2765 "Dimensions.c"
- Scaling _tmp8_;
- Dimensions _tmp9_;
-#line 459 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = *scaling;
-#line 459 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = _tmp8_.viewport;
-#line 459 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = dimensions_equals (&(*self).viewport, &_tmp9_);
-#line 2774 "Dimensions.c"
- } else {
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = FALSE;
-#line 2778 "Dimensions.c"
- }
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 2784 "Dimensions.c"
-}
-
-
-Scaling*
-scaling_dup (const Scaling* self)
-{
- Scaling* dup;
-#line 249 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dup = g_new0 (Scaling, 1);
-#line 249 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memcpy (dup, self, sizeof (Scaling));
-#line 249 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return dup;
-#line 2798 "Dimensions.c"
-}
-
-
-void
-scaling_free (Scaling* self)
-{
-#line 249 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_free (self);
-#line 2807 "Dimensions.c"
-}
-
-
-GType
-scaling_get_type (void)
-{
- static volatile gsize scaling_type_id__volatile = 0;
- if (g_once_init_enter (&scaling_type_id__volatile)) {
- GType scaling_type_id;
- scaling_type_id = g_boxed_type_register_static ("Scaling", (GBoxedCopyFunc) scaling_dup, (GBoxedFreeFunc) scaling_free);
- g_once_init_leave (&scaling_type_id__volatile, scaling_type_id);
- }
- return scaling_type_id__volatile;
-}
-
-
-void
-zoom_state_init (ZoomState *self,
- Dimensions* content_dimensions,
- Dimensions* viewport_dimensions,
- gdouble slider_val,
- GdkPoint* viewport_center)
-{
- Dimensions _tmp0_;
- Dimensions _tmp1_;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
-#line 472 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (content_dimensions != NULL);
-#line 472 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (viewport_dimensions != NULL);
-#line 472 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (self, 0, sizeof (ZoomState));
-#line 474 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *content_dimensions;
-#line 474 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).content_dimensions = _tmp0_;
-#line 475 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = *viewport_dimensions;
-#line 475 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_dimensions = _tmp1_;
-#line 476 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).interpolation_factor = slider_val;
-#line 478 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_compute_zoom_factors (&(*self));
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (viewport_center == NULL) {
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = TRUE;
-#line 2857 "Dimensions.c"
- } else {
- gboolean _tmp4_ = FALSE;
- gint _tmp5_;
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = (*viewport_center).x;
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp5_ == 0) {
-#line 2865 "Dimensions.c"
- gint _tmp6_;
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = (*viewport_center).y;
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp6_ == 0;
-#line 2871 "Dimensions.c"
- } else {
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = FALSE;
-#line 2875 "Dimensions.c"
- }
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp4_;
-#line 2879 "Dimensions.c"
- }
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp3_) {
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = TRUE;
-#line 2885 "Dimensions.c"
- } else {
-#line 481 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = slider_val == 0.0;
-#line 2889 "Dimensions.c"
- }
-#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp2_) {
-#line 482 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_center_viewport (&(*self));
-#line 2895 "Dimensions.c"
- } else {
-#line 484 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center = *viewport_center;
-#line 485 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_clamp_viewport_center (&(*self));
-#line 2901 "Dimensions.c"
- }
-}
-
-
-void
-zoom_state_init_rescale (ZoomState *self,
- ZoomState* existing,
- gdouble new_slider_val)
-{
- ZoomState _tmp0_;
- Dimensions _tmp1_;
- ZoomState _tmp2_;
- Dimensions _tmp3_;
-#line 489 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (existing != NULL);
-#line 489 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (self, 0, sizeof (ZoomState));
-#line 490 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *existing;
-#line 490 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.content_dimensions;
-#line 490 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).content_dimensions = _tmp1_;
-#line 491 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *existing;
-#line 491 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.viewport_dimensions;
-#line 491 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_dimensions = _tmp3_;
-#line 492 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).interpolation_factor = new_slider_val;
-#line 494 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_compute_zoom_factors (&(*self));
-#line 496 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (new_slider_val == 0.0) {
-#line 497 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_center_viewport (&(*self));
-#line 2939 "Dimensions.c"
- } else {
- gdouble _tmp4_;
- ZoomState _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- ZoomState _tmp8_;
- gdouble _tmp9_;
- gdouble _tmp10_;
- ZoomState _tmp11_;
- GdkPoint _tmp12_;
- gint _tmp13_;
- ZoomState _tmp14_;
- gdouble _tmp15_;
-#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).zoom_factor;
-#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = *existing;
-#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.viewport_center;
-#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = _tmp6_.x;
-#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = *existing;
-#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = _tmp8_.zoom_factor;
-#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center.x = (gint) (_tmp4_ * (_tmp7_ / _tmp9_));
-#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = (*self).zoom_factor;
-#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = *existing;
-#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = _tmp11_.viewport_center;
-#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = _tmp12_.y;
-#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = *existing;
-#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = _tmp14_.zoom_factor;
-#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center.y = (gint) (_tmp10_ * (_tmp13_ / _tmp15_));
-#line 503 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_clamp_viewport_center (&(*self));
-#line 2983 "Dimensions.c"
- }
-}
-
-
-void
-zoom_state_init_rescale_to_isomorphic (ZoomState *self,
- ZoomState* existing)
-{
- ZoomState _tmp0_;
- Dimensions _tmp1_;
- ZoomState _tmp2_;
- Dimensions _tmp3_;
- ZoomState _tmp4_;
- gdouble _tmp5_;
- ZoomState _tmp6_;
- gdouble _tmp7_;
- ZoomState _tmp8_;
- gdouble _tmp9_;
- gdouble _tmp10_;
-#line 507 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (existing != NULL);
-#line 507 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (self, 0, sizeof (ZoomState));
-#line 508 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *existing;
-#line 508 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.content_dimensions;
-#line 508 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).content_dimensions = _tmp1_;
-#line 509 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *existing;
-#line 509 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.viewport_dimensions;
-#line 509 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_dimensions = _tmp3_;
-#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = *existing;
-#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = _tmp4_.min_factor;
-#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = *existing;
-#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = _tmp6_.max_factor;
-#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = *existing;
-#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = _tmp8_.min_factor;
-#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).interpolation_factor = log (1.0 / _tmp5_) / log (_tmp7_ / _tmp9_);
-#line 513 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_compute_zoom_factors (&(*self));
-#line 515 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = (*self).interpolation_factor;
-#line 515 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp10_ == 0.0) {
-#line 516 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_center_viewport (&(*self));
-#line 3041 "Dimensions.c"
- } else {
- gdouble _tmp11_;
- ZoomState _tmp12_;
- GdkPoint _tmp13_;
- gint _tmp14_;
- ZoomState _tmp15_;
- gdouble _tmp16_;
- gdouble _tmp17_;
- ZoomState _tmp18_;
- GdkPoint _tmp19_;
- gint _tmp20_;
- ZoomState _tmp21_;
- gdouble _tmp22_;
-#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = (*self).zoom_factor;
-#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = *existing;
-#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = _tmp12_.viewport_center;
-#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = _tmp13_.x;
-#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = *existing;
-#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = _tmp15_.zoom_factor;
-#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center.x = (gint) (_tmp11_ * (_tmp14_ / _tmp16_));
-#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = (*self).zoom_factor;
-#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = *existing;
-#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp19_ = _tmp18_.viewport_center;
-#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp20_ = _tmp19_.y;
-#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp21_ = *existing;
-#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp22_ = _tmp21_.zoom_factor;
-#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center.y = (gint) (_tmp17_ * (_tmp20_ / _tmp22_));
-#line 522 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_clamp_viewport_center (&(*self));
-#line 3085 "Dimensions.c"
- }
-}
-
-
-void
-zoom_state_init_pan (ZoomState *self,
- ZoomState* existing,
- GdkPoint* new_viewport_center)
-{
- ZoomState _tmp0_;
- Dimensions _tmp1_;
- ZoomState _tmp2_;
- Dimensions _tmp3_;
- ZoomState _tmp4_;
- gdouble _tmp5_;
- GdkPoint _tmp6_;
-#line 526 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (existing != NULL);
-#line 526 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (new_viewport_center != NULL);
-#line 526 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (self, 0, sizeof (ZoomState));
-#line 527 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *existing;
-#line 527 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.content_dimensions;
-#line 527 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).content_dimensions = _tmp1_;
-#line 528 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *existing;
-#line 528 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.viewport_dimensions;
-#line 528 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_dimensions = _tmp3_;
-#line 529 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = *existing;
-#line 529 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = _tmp4_.interpolation_factor;
-#line 529 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).interpolation_factor = _tmp5_;
-#line 531 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_compute_zoom_factors (&(*self));
-#line 533 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = *new_viewport_center;
-#line 533 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center = _tmp6_;
-#line 535 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_clamp_viewport_center (&(*self));
-#line 3134 "Dimensions.c"
-}
-
-
-static void
-zoom_state_clamp_viewport_center (ZoomState *self)
-{
- gint zoomed_width = 0;
- gint zoomed_height = 0;
- GdkPoint _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
- Dimensions _tmp10_;
- gint _tmp11_;
-#line 539 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoomed_width = zoom_state_get_zoomed_width (&(*self));
-#line 540 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoomed_height = zoom_state_get_zoomed_height (&(*self));
-#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).viewport_center;
-#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.x;
-#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).viewport_dimensions;
-#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.width;
-#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).viewport_dimensions;
-#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = _tmp4_.width;
-#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center.x = CLAMP (_tmp1_, _tmp3_ / 2, (zoomed_width - (_tmp5_ / 2)) - 1);
-#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = (*self).viewport_center;
-#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = _tmp6_.y;
-#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = (*self).viewport_dimensions;
-#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = _tmp8_.height;
-#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = (*self).viewport_dimensions;
-#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = _tmp10_.height;
-#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center.y = CLAMP (_tmp7_, _tmp9_ / 2, (zoomed_height - (_tmp11_ / 2)) - 1);
-#line 3187 "Dimensions.c"
-}
-
-
-static void
-zoom_state_center_viewport (ZoomState *self)
-{
-#line 549 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center.x = zoom_state_get_zoomed_width (&(*self)) / 2;
-#line 550 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).viewport_center.y = zoom_state_get_zoomed_height (&(*self)) / 2;
-#line 3198 "Dimensions.c"
-}
-
-
-static void
-zoom_state_compute_zoom_factors (ZoomState *self)
-{
- gdouble viewport_to_content_x = 0.0;
- gdouble viewport_to_content_y = 0.0;
- Dimensions _tmp0_;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- gdouble _tmp3_;
- gdouble _tmp4_;
- gdouble _tmp5_;
- gdouble _tmp6_;
- gdouble _tmp7_;
- gdouble _tmp8_;
- gdouble _tmp9_;
-#line 554 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).max_factor = 2.0;
-#line 558 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).viewport_dimensions;
-#line 558 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dimensions_get_scale_ratios (&(*self).content_dimensions, &_tmp0_, &_tmp1_, &_tmp2_);
-#line 558 "/home/jens/Source/shotwell/src/Dimensions.vala"
- viewport_to_content_x = _tmp1_;
-#line 558 "/home/jens/Source/shotwell/src/Dimensions.vala"
- viewport_to_content_y = _tmp2_;
-#line 560 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = viewport_to_content_x;
-#line 560 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = viewport_to_content_y;
-#line 560 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).min_factor = MIN (_tmp3_, _tmp4_);
-#line 561 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = (*self).min_factor;
-#line 561 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp5_ > 1.0) {
-#line 562 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).min_factor = 1.0;
-#line 3239 "Dimensions.c"
- }
-#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = (*self).min_factor;
-#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = (*self).max_factor;
-#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = (*self).min_factor;
-#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = (*self).interpolation_factor;
-#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala"
- (*self).zoom_factor = _tmp6_ * pow (_tmp7_ / _tmp8_, _tmp9_);
-#line 3251 "Dimensions.c"
-}
-
-
-gdouble
-zoom_state_get_interpolation_factor (ZoomState *self)
-{
- gdouble result = 0.0;
- gdouble _tmp0_;
-#line 568 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).interpolation_factor;
-#line 568 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 568 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 3266 "Dimensions.c"
-}
-
-
-void
-zoom_state_get_viewing_rectangle_wrt_content (ZoomState *self,
- GdkRectangle* result)
-{
- gint zoomed_width = 0;
- gint zoomed_height = 0;
- GdkRectangle _result_ = {0};
- Dimensions _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GdkRectangle _tmp10_;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
- gint right = 0;
- GdkRectangle _tmp24_;
- gint _tmp25_;
- Dimensions _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- gint _tmp31_;
- GdkRectangle _tmp32_;
- gint _tmp33_;
- gint bottom = 0;
- GdkRectangle _tmp34_;
- gint _tmp35_;
- Dimensions _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- gint _tmp39_;
- gint _tmp41_;
- GdkRectangle _tmp42_;
- gint _tmp43_;
- GdkRectangle _tmp44_;
- gint _tmp45_;
- GdkRectangle _tmp46_;
- gint _tmp47_;
-#line 573 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoomed_width = zoom_state_get_zoomed_width (&(*self));
-#line 574 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoomed_height = zoom_state_get_zoomed_height (&(*self));
-#line 576 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (&_result_, 0, sizeof (GdkRectangle));
-#line 578 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).viewport_dimensions;
-#line 578 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.width;
-#line 578 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = zoomed_width;
-#line 578 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp1_ < _tmp2_) {
-#line 3325 "Dimensions.c"
- GdkPoint _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
-#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = (*self).viewport_center;
-#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp3_.x;
-#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = (*self).viewport_dimensions;
-#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.width;
-#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.x = _tmp4_ - (_tmp6_ / 2);
-#line 3340 "Dimensions.c"
- } else {
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
-#line 581 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = zoomed_width;
-#line 581 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = (*self).viewport_dimensions;
-#line 581 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = _tmp8_.width;
-#line 581 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.x = (_tmp7_ - _tmp9_) / 2;
-#line 3353 "Dimensions.c"
- }
-#line 583 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = _result_;
-#line 583 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = _tmp10_.x;
-#line 583 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp11_ < 0) {
-#line 584 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.x = 0;
-#line 3363 "Dimensions.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = (*self).viewport_dimensions;
-#line 586 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = _tmp12_.height;
-#line 586 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = zoomed_height;
-#line 586 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp13_ < _tmp14_) {
-#line 3373 "Dimensions.c"
- GdkPoint _tmp15_;
- gint _tmp16_;
- Dimensions _tmp17_;
- gint _tmp18_;
-#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = (*self).viewport_center;
-#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = _tmp15_.y;
-#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = (*self).viewport_dimensions;
-#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = _tmp17_.height;
-#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.y = _tmp16_ - (_tmp18_ / 2);
-#line 3388 "Dimensions.c"
- } else {
- gint _tmp19_;
- Dimensions _tmp20_;
- gint _tmp21_;
-#line 589 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp19_ = zoomed_height;
-#line 589 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp20_ = (*self).viewport_dimensions;
-#line 589 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp21_ = _tmp20_.height;
-#line 589 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.y = (_tmp19_ - _tmp21_) / 2;
-#line 3401 "Dimensions.c"
- }
-#line 591 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp22_ = _result_;
-#line 591 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp23_ = _tmp22_.y;
-#line 591 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp23_ < 0) {
-#line 592 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.y = 0;
-#line 3411 "Dimensions.c"
- }
-#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp24_ = _result_;
-#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp25_ = _tmp24_.x;
-#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp26_ = (*self).viewport_dimensions;
-#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp27_ = _tmp26_.width;
-#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala"
- right = _tmp25_ + _tmp27_;
-#line 595 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp28_ = right;
-#line 595 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp29_ = zoomed_width;
-#line 595 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp28_ > _tmp29_) {
-#line 3429 "Dimensions.c"
- gint _tmp30_;
-#line 596 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp30_ = zoomed_width;
-#line 596 "/home/jens/Source/shotwell/src/Dimensions.vala"
- right = _tmp30_;
-#line 3435 "Dimensions.c"
- }
-#line 597 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp31_ = right;
-#line 597 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp32_ = _result_;
-#line 597 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp33_ = _tmp32_.x;
-#line 597 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.width = _tmp31_ - _tmp33_;
-#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp34_ = _result_;
-#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp35_ = _tmp34_.y;
-#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp36_ = (*self).viewport_dimensions;
-#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp37_ = _tmp36_.height;
-#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala"
- bottom = _tmp35_ + _tmp37_;
-#line 600 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp38_ = bottom;
-#line 600 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp39_ = zoomed_height;
-#line 600 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp38_ > _tmp39_) {
-#line 3461 "Dimensions.c"
- gint _tmp40_;
-#line 601 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp40_ = zoomed_height;
-#line 601 "/home/jens/Source/shotwell/src/Dimensions.vala"
- bottom = _tmp40_;
-#line 3467 "Dimensions.c"
- }
-#line 602 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp41_ = bottom;
-#line 602 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp42_ = _result_;
-#line 602 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp43_ = _tmp42_.y;
-#line 602 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.height = _tmp41_ - _tmp43_;
-#line 604 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp44_ = _result_;
-#line 604 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp45_ = _tmp44_.width;
-#line 604 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.width = CLAMP (_tmp45_, 1, G_MAXINT);
-#line 605 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp46_ = _result_;
-#line 605 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp47_ = _tmp46_.height;
-#line 605 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.height = CLAMP (_tmp47_, 1, G_MAXINT);
-#line 607 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _result_;
-#line 607 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 3493 "Dimensions.c"
-}
-
-
-void
-zoom_state_get_viewing_rectangle_wrt_screen (ZoomState *self,
- GdkRectangle* result)
-{
- GdkRectangle wrt_content = {0};
- GdkRectangle _tmp0_ = {0};
- GdkRectangle _result_ = {0};
- Dimensions _tmp1_;
- gint _tmp2_;
- GdkRectangle _tmp3_;
- gint _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- Dimensions _tmp7_;
- gint _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
- GdkRectangle _tmp15_;
- gint _tmp16_;
-#line 613 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_get_viewing_rectangle_wrt_content (&(*self), &_tmp0_);
-#line 613 "/home/jens/Source/shotwell/src/Dimensions.vala"
- wrt_content = _tmp0_;
-#line 615 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (&_result_, 0, sizeof (GdkRectangle));
-#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).viewport_dimensions;
-#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = _tmp1_.width;
-#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = wrt_content;
-#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = _tmp3_.width;
-#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.x = (_tmp2_ / 2) - (_tmp4_ / 2);
-#line 617 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = _result_;
-#line 617 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.x;
-#line 617 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp6_ < 0) {
-#line 618 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.x = 0;
-#line 3544 "Dimensions.c"
- }
-#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = (*self).viewport_dimensions;
-#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = _tmp7_.height;
-#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = wrt_content;
-#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = _tmp9_.height;
-#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.y = (_tmp8_ / 2) - (_tmp10_ / 2);
-#line 620 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = _result_;
-#line 620 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = _tmp11_.y;
-#line 620 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp12_ < 0) {
-#line 621 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.y = 0;
-#line 3564 "Dimensions.c"
- }
-#line 622 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = wrt_content;
-#line 622 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = _tmp13_.width;
-#line 622 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.width = _tmp14_;
-#line 623 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = wrt_content;
-#line 623 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = _tmp15_.height;
-#line 623 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.height = _tmp16_;
-#line 625 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _result_;
-#line 625 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 3582 "Dimensions.c"
-}
-
-
-void
-zoom_state_get_viewing_rectangle_projection (ZoomState *self,
- GdkPixbuf* for_pixbuf,
- GdkRectangle* result)
-{
- gdouble zoomed_width = 0.0;
- gdouble zoomed_height = 0.0;
- gdouble horiz_scale = 0.0;
- gint _tmp0_;
- gint _tmp1_;
- gdouble vert_scale = 0.0;
- gint _tmp2_;
- gint _tmp3_;
- gdouble scale = 0.0;
- GdkRectangle viewing_rectangle = {0};
- GdkRectangle _tmp4_ = {0};
- GdkRectangle _result_ = {0};
- GdkRectangle _tmp5_;
- gint _tmp6_;
- GdkRectangle _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint right = 0;
- GdkRectangle _tmp17_;
- gint _tmp18_;
- GdkRectangle _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- gint bottom = 0;
- GdkRectangle _tmp24_;
- gint _tmp25_;
- GdkRectangle _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- GdkRectangle _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- GdkRectangle _tmp35_;
- gint _tmp36_;
-#line 629 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_if_fail (GDK_IS_PIXBUF (for_pixbuf));
-#line 630 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoomed_width = (gdouble) zoom_state_get_zoomed_width (&(*self));
-#line 631 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoomed_height = (gdouble) zoom_state_get_zoomed_height (&(*self));
-#line 633 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = gdk_pixbuf_get_width (for_pixbuf);
-#line 633 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_;
-#line 633 "/home/jens/Source/shotwell/src/Dimensions.vala"
- horiz_scale = _tmp1_ / zoomed_width;
-#line 634 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = gdk_pixbuf_get_height (for_pixbuf);
-#line 634 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_;
-#line 634 "/home/jens/Source/shotwell/src/Dimensions.vala"
- vert_scale = _tmp3_ / zoomed_height;
-#line 635 "/home/jens/Source/shotwell/src/Dimensions.vala"
- scale = (horiz_scale + vert_scale) / 2.0;
-#line 637 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_get_viewing_rectangle_wrt_content (&(*self), &_tmp4_);
-#line 637 "/home/jens/Source/shotwell/src/Dimensions.vala"
- viewing_rectangle = _tmp4_;
-#line 639 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memset (&_result_, 0, sizeof (GdkRectangle));
-#line 640 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = viewing_rectangle;
-#line 640 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.x;
-#line 640 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.x = (gint) (_tmp6_ * scale);
-#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = _result_;
-#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = _tmp7_.x;
-#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = gdk_pixbuf_get_width (for_pixbuf);
-#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = _tmp9_;
-#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.x = CLAMP (_tmp8_, 0, _tmp10_);
-#line 642 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = viewing_rectangle;
-#line 642 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = _tmp11_.y;
-#line 642 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.y = (gint) (_tmp12_ * scale);
-#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = _result_;
-#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = _tmp13_.y;
-#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = gdk_pixbuf_get_height (for_pixbuf);
-#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = _tmp15_;
-#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.y = CLAMP (_tmp14_, 0, _tmp16_);
-#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = viewing_rectangle;
-#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = _tmp17_.x;
-#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp19_ = viewing_rectangle;
-#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp20_ = _tmp19_.width;
-#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala"
- right = (gint) ((_tmp18_ + _tmp20_) * scale);
-#line 645 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp21_ = right;
-#line 645 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp22_ = gdk_pixbuf_get_width (for_pixbuf);
-#line 645 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp23_ = _tmp22_;
-#line 645 "/home/jens/Source/shotwell/src/Dimensions.vala"
- right = CLAMP (_tmp21_, 0, _tmp23_);
-#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp24_ = viewing_rectangle;
-#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp25_ = _tmp24_.y;
-#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp26_ = viewing_rectangle;
-#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp27_ = _tmp26_.height;
-#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala"
- bottom = (gint) ((_tmp25_ + _tmp27_) * scale);
-#line 647 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp28_ = bottom;
-#line 647 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp29_ = gdk_pixbuf_get_height (for_pixbuf);
-#line 647 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp30_ = _tmp29_;
-#line 647 "/home/jens/Source/shotwell/src/Dimensions.vala"
- bottom = CLAMP (_tmp28_, 0, _tmp30_);
-#line 648 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp31_ = right;
-#line 648 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp32_ = _result_;
-#line 648 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp33_ = _tmp32_.x;
-#line 648 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.width = _tmp31_ - _tmp33_;
-#line 649 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp34_ = bottom;
-#line 649 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp35_ = _result_;
-#line 649 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp36_ = _tmp35_.y;
-#line 649 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _result_.height = _tmp34_ - _tmp36_;
-#line 651 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _result_;
-#line 651 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 3751 "Dimensions.c"
-}
-
-
-gdouble
-zoom_state_get_zoom_factor (ZoomState *self)
-{
- gdouble result = 0.0;
- gdouble _tmp0_;
-#line 656 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).zoom_factor;
-#line 656 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_;
-#line 656 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 3766 "Dimensions.c"
-}
-
-
-gint
-zoom_state_get_zoomed_width (ZoomState *self)
-{
- gint result = 0;
- Dimensions _tmp0_;
- gint _tmp1_;
- gdouble _tmp2_;
-#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).content_dimensions;
-#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.width;
-#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).zoom_factor;
-#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = (gint) (_tmp1_ * _tmp2_);
-#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 3787 "Dimensions.c"
-}
-
-
-gint
-zoom_state_get_zoomed_height (ZoomState *self)
-{
- gint result = 0;
- Dimensions _tmp0_;
- gint _tmp1_;
- gdouble _tmp2_;
-#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).content_dimensions;
-#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.height;
-#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = (*self).zoom_factor;
-#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = (gint) (_tmp1_ * _tmp2_);
-#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 3808 "Dimensions.c"
-}
-
-
-void
-zoom_state_get_viewport_center (ZoomState *self,
- GdkPoint* result)
-{
- GdkPoint _tmp0_;
-#line 668 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).viewport_center;
-#line 668 "/home/jens/Source/shotwell/src/Dimensions.vala"
- *result = _tmp0_;
-#line 668 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return;
-#line 3823 "Dimensions.c"
-}
-
-
-gchar*
-zoom_state_to_string (ZoomState *self)
-{
- gchar* result = NULL;
- gchar* named_modes = NULL;
- gchar* _tmp0_;
- const gchar* _tmp17_;
- GdkRectangle viewing_rect = {0};
- GdkRectangle _tmp19_ = {0};
- Dimensions _tmp20_;
- gint _tmp21_;
- Dimensions _tmp22_;
- gint _tmp23_;
- Dimensions _tmp24_;
- gint _tmp25_;
- Dimensions _tmp26_;
- gint _tmp27_;
- gdouble _tmp28_;
- gdouble _tmp29_;
- gdouble _tmp30_;
- const gchar* _tmp31_;
- GdkRectangle _tmp32_;
- gint _tmp33_;
- GdkRectangle _tmp34_;
- gint _tmp35_;
- GdkRectangle _tmp36_;
- gint _tmp37_;
- GdkRectangle _tmp38_;
- gint _tmp39_;
- GdkPoint _tmp40_;
- gint _tmp41_;
- GdkPoint _tmp42_;
- gint _tmp43_;
- gchar* _tmp44_;
-#line 672 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = g_strdup ("");
-#line 672 "/home/jens/Source/shotwell/src/Dimensions.vala"
- named_modes = _tmp0_;
-#line 673 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (zoom_state_is_min (&(*self))) {
-#line 3867 "Dimensions.c"
- const gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = named_modes;
-#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (g_strcmp0 (_tmp2_, "") == 0) {
-#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = "MIN";
-#line 3878 "Dimensions.c"
- } else {
-#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = ", MIN";
-#line 3882 "Dimensions.c"
- }
-#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = named_modes;
-#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = g_strconcat (_tmp3_, _tmp1_, NULL);
-#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (named_modes);
-#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala"
- named_modes = _tmp4_;
-#line 3892 "Dimensions.c"
- }
-#line 675 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (zoom_state_is_default (&(*self))) {
-#line 3896 "Dimensions.c"
- const gchar* _tmp5_ = NULL;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
-#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = named_modes;
-#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (g_strcmp0 (_tmp6_, "") == 0) {
-#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = "DEFAULT";
-#line 3907 "Dimensions.c"
- } else {
-#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = ", DEFAULT";
-#line 3911 "Dimensions.c"
- }
-#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = named_modes;
-#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = g_strconcat (_tmp7_, _tmp5_, NULL);
-#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (named_modes);
-#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala"
- named_modes = _tmp8_;
-#line 3921 "Dimensions.c"
- }
-#line 677 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (zoom_state_is_isomorphic (&(*self))) {
-#line 3925 "Dimensions.c"
- const gchar* _tmp9_ = NULL;
- const gchar* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
-#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = named_modes;
-#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (g_strcmp0 (_tmp10_, "") == 0) {
-#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = "ISOMORPHIC";
-#line 3936 "Dimensions.c"
- } else {
-#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = ", ISOMORPHIC";
-#line 3940 "Dimensions.c"
- }
-#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = named_modes;
-#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = g_strconcat (_tmp11_, _tmp9_, NULL);
-#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (named_modes);
-#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala"
- named_modes = _tmp12_;
-#line 3950 "Dimensions.c"
- }
-#line 679 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (zoom_state_is_max (&(*self))) {
-#line 3954 "Dimensions.c"
- const gchar* _tmp13_ = NULL;
- const gchar* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
-#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = named_modes;
-#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (g_strcmp0 (_tmp14_, "") == 0) {
-#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = "MAX";
-#line 3965 "Dimensions.c"
- } else {
-#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = ", MAX";
-#line 3969 "Dimensions.c"
- }
-#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = named_modes;
-#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = g_strconcat (_tmp15_, _tmp13_, NULL);
-#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (named_modes);
-#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala"
- named_modes = _tmp16_;
-#line 3979 "Dimensions.c"
- }
-#line 681 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = named_modes;
-#line 681 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (g_strcmp0 (_tmp17_, "") == 0) {
-#line 3985 "Dimensions.c"
- gchar* _tmp18_;
-#line 682 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = g_strdup ("(none)");
-#line 682 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (named_modes);
-#line 682 "/home/jens/Source/shotwell/src/Dimensions.vala"
- named_modes = _tmp18_;
-#line 3993 "Dimensions.c"
- }
-#line 684 "/home/jens/Source/shotwell/src/Dimensions.vala"
- zoom_state_get_viewing_rectangle_wrt_content (&(*self), &_tmp19_);
-#line 684 "/home/jens/Source/shotwell/src/Dimensions.vala"
- viewing_rect = _tmp19_;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp20_ = (*self).content_dimensions;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp21_ = _tmp20_.width;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp22_ = (*self).content_dimensions;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp23_ = _tmp22_.height;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp24_ = (*self).viewport_dimensions;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp25_ = _tmp24_.width;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp26_ = (*self).viewport_dimensions;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp27_ = _tmp26_.height;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp28_ = (*self).min_factor;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp29_ = (*self).max_factor;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp30_ = (*self).zoom_factor;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp31_ = named_modes;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp32_ = viewing_rect;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp33_ = _tmp32_.x;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp34_ = viewing_rect;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp35_ = _tmp34_.y;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp36_ = viewing_rect;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp37_ = _tmp36_.width;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp38_ = viewing_rect;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp39_ = _tmp38_.height;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp40_ = (*self).viewport_center;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp41_ = _tmp40_.x;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp42_ = (*self).viewport_center;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp43_ = _tmp42_.y;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp44_ = g_strdup_printf ("ZoomState {\n" \
-" content dimensions = %d x %d;\n" \
-" viewport dimensions = " "%d x %d;\n" \
-" min factor = %f;\n" \
-" max factor = %f;\n" \
-" current factor = %f;" "\n" \
-" zoomed width = %d;\n" \
-" zoomed height = %d;\n" \
-" named modes = %s;" "\n viewing rectangle = { x: %d, y: %d, width: %d, height: %d };" "\n viewport center = (%d, %d);\n}\n", _tmp21_, _tmp23_, _tmp25_, _tmp27_, _tmp28_, _tmp29_, _tmp30_, zoom_state_get_zoomed_width (&(*self)), zoom_state_get_zoomed_height (&(*self)), _tmp31_, _tmp33_, _tmp35_, _tmp37_, _tmp39_, _tmp41_, _tmp43_);
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp44_;
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _g_free0 (named_modes);
-#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4055 "Dimensions.c"
-}
-
-
-gboolean
-zoom_state_is_min (ZoomState *self)
-{
- gboolean result = FALSE;
- gdouble _tmp0_;
- gdouble _tmp1_;
-#line 698 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).zoom_factor;
-#line 698 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).min_factor;
-#line 698 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_ == _tmp1_;
-#line 698 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4073 "Dimensions.c"
-}
-
-
-gboolean
-zoom_state_is_default (ZoomState *self)
-{
- gboolean result = FALSE;
-#line 702 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = zoom_state_is_min (&(*self));
-#line 702 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4085 "Dimensions.c"
-}
-
-
-gboolean
-zoom_state_is_max (ZoomState *self)
-{
- gboolean result = FALSE;
- gdouble _tmp0_;
- gdouble _tmp1_;
-#line 706 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).zoom_factor;
-#line 706 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = (*self).max_factor;
-#line 706 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_ == _tmp1_;
-#line 706 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4103 "Dimensions.c"
-}
-
-
-gboolean
-zoom_state_is_isomorphic (ZoomState *self)
-{
- gboolean result = FALSE;
- gdouble _tmp0_;
-#line 710 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = (*self).zoom_factor;
-#line 710 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = _tmp0_ == 1.0;
-#line 710 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4118 "Dimensions.c"
-}
-
-
-gboolean
-zoom_state_equals (ZoomState *self,
- ZoomState* other)
-{
- gboolean result = FALSE;
- ZoomState _tmp0_;
- Dimensions _tmp1_;
- ZoomState _tmp2_;
- Dimensions _tmp3_;
- gdouble _tmp4_;
- ZoomState _tmp5_;
- gdouble _tmp6_;
- gdouble _tmp7_;
- ZoomState _tmp8_;
- gdouble _tmp9_;
- gdouble _tmp10_;
- ZoomState _tmp11_;
- gdouble _tmp12_;
- GdkPoint _tmp13_;
- gint _tmp14_;
- ZoomState _tmp15_;
- GdkPoint _tmp16_;
- gint _tmp17_;
- GdkPoint _tmp18_;
- gint _tmp19_;
- ZoomState _tmp20_;
- GdkPoint _tmp21_;
- gint _tmp22_;
-#line 713 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_return_val_if_fail (other != NULL, FALSE);
-#line 714 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp0_ = *other;
-#line 714 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp1_ = _tmp0_.content_dimensions;
-#line 714 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (!dimensions_equals (&(*self).content_dimensions, &_tmp1_)) {
-#line 715 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 715 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4162 "Dimensions.c"
- }
-#line 716 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp2_ = *other;
-#line 716 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp3_ = _tmp2_.viewport_dimensions;
-#line 716 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (!dimensions_equals (&(*self).viewport_dimensions, &_tmp3_)) {
-#line 717 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 717 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4174 "Dimensions.c"
- }
-#line 718 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp4_ = (*self).zoom_factor;
-#line 718 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp5_ = *other;
-#line 718 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp6_ = _tmp5_.zoom_factor;
-#line 718 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp4_ != _tmp6_) {
-#line 719 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 719 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4188 "Dimensions.c"
- }
-#line 720 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp7_ = (*self).min_factor;
-#line 720 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp8_ = *other;
-#line 720 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp9_ = _tmp8_.min_factor;
-#line 720 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp7_ != _tmp9_) {
-#line 721 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 721 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4202 "Dimensions.c"
- }
-#line 722 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp10_ = (*self).max_factor;
-#line 722 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp11_ = *other;
-#line 722 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp12_ = _tmp11_.max_factor;
-#line 722 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp10_ != _tmp12_) {
-#line 723 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 723 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4216 "Dimensions.c"
- }
-#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp13_ = (*self).viewport_center;
-#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp14_ = _tmp13_.x;
-#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp15_ = *other;
-#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp16_ = _tmp15_.viewport_center;
-#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp17_ = _tmp16_.x;
-#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp14_ != _tmp17_) {
-#line 725 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 725 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4234 "Dimensions.c"
- }
-#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp18_ = (*self).viewport_center;
-#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp19_ = _tmp18_.y;
-#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp20_ = *other;
-#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp21_ = _tmp20_.viewport_center;
-#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala"
- _tmp22_ = _tmp21_.y;
-#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala"
- if (_tmp19_ != _tmp22_) {
-#line 727 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = FALSE;
-#line 727 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4252 "Dimensions.c"
- }
-#line 729 "/home/jens/Source/shotwell/src/Dimensions.vala"
- result = TRUE;
-#line 729 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return result;
-#line 4258 "Dimensions.c"
-}
-
-
-ZoomState*
-zoom_state_dup (const ZoomState* self)
-{
- ZoomState* dup;
-#line 463 "/home/jens/Source/shotwell/src/Dimensions.vala"
- dup = g_new0 (ZoomState, 1);
-#line 463 "/home/jens/Source/shotwell/src/Dimensions.vala"
- memcpy (dup, self, sizeof (ZoomState));
-#line 463 "/home/jens/Source/shotwell/src/Dimensions.vala"
- return dup;
-#line 4272 "Dimensions.c"
-}
-
-
-void
-zoom_state_free (ZoomState* self)
-{
-#line 463 "/home/jens/Source/shotwell/src/Dimensions.vala"
- g_free (self);
-#line 4281 "Dimensions.c"
-}
-
-
-GType
-zoom_state_get_type (void)
-{
- static volatile gsize zoom_state_type_id__volatile = 0;
- if (g_once_init_enter (&zoom_state_type_id__volatile)) {
- GType zoom_state_type_id;
- zoom_state_type_id = g_boxed_type_register_static ("ZoomState", (GBoxedCopyFunc) zoom_state_dup, (GBoxedFreeFunc) zoom_state_free);
- g_once_init_leave (&zoom_state_type_id__volatile, zoom_state_type_id);
- }
- return zoom_state_type_id__volatile;
-}
-
-
-
diff --git a/src/Dimensions.vala b/src/Dimensions.vala
index 99fe469..3b4163c 100644
--- a/src/Dimensions.vala
+++ b/src/Dimensions.vala
@@ -315,10 +315,12 @@ public struct Scaling {
return Scaling(constraint, scale, Dimensions(), scale_up);
}
- private static Dimensions get_screen_dimensions(Gtk.Window window) {
- Gdk.Screen screen = window.get_screen();
+ public static Dimensions get_screen_dimensions(Gtk.Window window) {
+ var display = window.get_window().get_display();
+ var monitor = display.get_monitor_at_window(window.get_window());
+ var geom = monitor.get_geometry();
- return Dimensions(screen.get_width(), screen.get_height());
+ return Dimensions(geom.width, geom.height);
}
private int scale_to_pixels() {
diff --git a/src/DirectoryMonitor.c b/src/DirectoryMonitor.c
deleted file mode 100644
index 05b8eee..0000000
--- a/src/DirectoryMonitor.c
+++ /dev/null
@@ -1,9421 +0,0 @@
-/* DirectoryMonitor.c generated by valac 0.40.4, the Vala compiler
- * generated from DirectoryMonitor.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/**/
-/* DirectoryMonitor will monitor an entire directory for changes to all files and directories*/
-/* within it. It uses FileMonitor to monitor all directories it discovers at initialization*/
-/* and reports changes to the files and directories just as FileMonitor reports them. Subclasses*/
-/* can override the notify_* methods to filter or monitor events before the signal is fired,*/
-/* or can override the signals themselves to be notified afterwards.*/
-/**/
-/* start_discovery() must be called to initiate monitoring. Directories and files will be reported*/
-/* as they're discovered. Directories will be monitored as they're discovered as well. Discovery*/
-/* can only be initiated once.*/
-/**/
-/* All signals are virtual and have a corresponding notify_* protected virtual function.*/
-/* Subclasses can either override the notify or the signal to decide when they want to process*/
-/* the event.*/
-/**/
-/* DirectoryMonitor also adds a level of intelligence to GLib's monitoring API.Because certain*/
-/* file/directory events are decomposed by FileMonitor into more atomic events, it's difficult*/
-/* to know when these "composed" events have occurred. (For example, a file move is reported*/
-/* as a DELETED event followed by a CREATED event, with no clue that the two are related.) Later*/
-/* versions added the MOVE event, but we can't rely on those being installed. Also, documentation*/
-/* suggests it's only available with certain back-ends.*/
-/**/
-/* DirectoryMonitor attempts to solve this by deducing when a set of events actually equals*/
-/* a composite event. It requires more memory in order to do this (i.e. it stores all files and*/
-/* their information), but the trade-off is easier file/directory monitoring via familiar*/
-/* semantics.*/
-/**/
-/* DirectoryMonitor also will synthesize events when normal monitor events don't produce expected*/
-/* results. For example, if a directory is moved out of DirectoryMonitor's root, it is reported*/
-/* as a delete event, but none of its children are reported as deleted. Similarly, a directory*/
-/* rename can be captured as a move, but notifications for all its children are not fired and*/
-/* are synthesized by DirectoryMonitor. DirectoryMonitor will fire delete and move notifications*/
-/* for all the directory's children in depth-first order.*/
-/**/
-/* In general, DirectoryMonitor attempts to preserve ordering of events, so that (for example) a*/
-/* file-altered event doesn't fire before a file-created, and so on.*/
-/**/
-/* Because of these requirements, DirectoryMonitor maintains a FileInfo struct on all directories */
-/* and files being monitored. (It maintains the attributes gather during the discovery phase, i.e. */
-/* SUPPLIED_ATTRIBUTES.) This information can be retrieved via get_info(), get_file_id(), and*/
-/* get_etag(). These calls can be made at any time; the information is stored before any signal*/
-/* is fired.*/
-/**/
-/* Note that DirectoryMonitor currently only supports files and directories. Other file types*/
-/* (special, symbolic links, shortcuts, and mount points) are not supported. It has been seen*/
-/* when a temporary file is created for its file type to be reported as "unknown" and when it's*/
-/* altered/deleted to be reported as a regular file. This means it's possible for a file not to*/
-/* be reported as discovered or created but to be reported as altered and/or deleted.*/
-/**/
-/* DirectoryMonitor can be configured to not recurse (in which case it only discovers/monitors*/
-/* the root directory) and to not monitor (in which case only discovery occurs).*/
-/**/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ())
-#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor))
-#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR))
-#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR))
-#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-
-typedef struct _DirectoryMonitor DirectoryMonitor;
-typedef struct _DirectoryMonitorClass DirectoryMonitorClass;
-typedef struct _DirectoryMonitorPrivate DirectoryMonitorPrivate;
-
-#define DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT (directory_monitor_query_info_queue_element_get_type ())
-#define DIRECTORY_MONITOR_QUERY_INFO_QUEUE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, DirectoryMonitorQueryInfoQueueElement))
-#define DIRECTORY_MONITOR_QUERY_INFO_QUEUE_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, DirectoryMonitorQueryInfoQueueElementClass))
-#define DIRECTORY_MONITOR_IS_QUERY_INFO_QUEUE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT))
-#define DIRECTORY_MONITOR_IS_QUERY_INFO_QUEUE_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT))
-#define DIRECTORY_MONITOR_QUERY_INFO_QUEUE_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, DirectoryMonitorQueryInfoQueueElementClass))
-
-typedef struct _DirectoryMonitorQueryInfoQueueElement DirectoryMonitorQueryInfoQueueElement;
-typedef struct _DirectoryMonitorQueryInfoQueueElementClass DirectoryMonitorQueryInfoQueueElementClass;
-
-#define DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP (directory_monitor_file_info_map_get_type ())
-#define DIRECTORY_MONITOR_FILE_INFO_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMap))
-#define DIRECTORY_MONITOR_FILE_INFO_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMapClass))
-#define DIRECTORY_MONITOR_IS_FILE_INFO_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP))
-#define DIRECTORY_MONITOR_IS_FILE_INFO_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP))
-#define DIRECTORY_MONITOR_FILE_INFO_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMapClass))
-
-typedef struct _DirectoryMonitorFileInfoMap DirectoryMonitorFileInfoMap;
-typedef struct _DirectoryMonitorFileInfoMapClass DirectoryMonitorFileInfoMapClass;
-enum {
- DIRECTORY_MONITOR_0_PROPERTY,
- DIRECTORY_MONITOR_NUM_PROPERTIES
-};
-static GParamSpec* directory_monitor_properties[DIRECTORY_MONITOR_NUM_PROPERTIES];
-
-#define DIRECTORY_MONITOR_TYPE_FTYPE (directory_monitor_ftype_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _directory_monitor_file_info_map_unref0(var) ((var == NULL) ? NULL : (var = (directory_monitor_file_info_map_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _DirectoryMonitorAsyncInternalNotifyDirectoryMovedData DirectoryMonitorAsyncInternalNotifyDirectoryMovedData;
-typedef struct _DirectoryMonitorAsyncNotifyDirectoryDeletedData DirectoryMonitorAsyncNotifyDirectoryDeletedData;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
-typedef struct _DirectoryMonitorExploreAsyncData DirectoryMonitorExploreAsyncData;
-typedef struct _DirectoryMonitorNotifyDirectoryFilesData DirectoryMonitorNotifyDirectoryFilesData;
-typedef struct _DirectoryMonitorQueryInfoQueueElementPrivate DirectoryMonitorQueryInfoQueueElementPrivate;
-#define _directory_monitor_query_info_queue_element_unref0(var) ((var == NULL) ? NULL : (var = (directory_monitor_query_info_queue_element_unref (var), NULL)))
-typedef struct _DirectoryMonitorParamSpecQueryInfoQueueElement DirectoryMonitorParamSpecQueryInfoQueueElement;
-typedef struct _DirectoryMonitorFileInfoMapPrivate DirectoryMonitorFileInfoMapPrivate;
-typedef struct _DirectoryMonitorParamSpecFileInfoMap DirectoryMonitorParamSpecFileInfoMap;
-enum {
- DIRECTORY_MONITOR_ROOT_MOVED_SIGNAL,
- DIRECTORY_MONITOR_ROOT_DELETED_SIGNAL,
- DIRECTORY_MONITOR_DISCOVERY_STARTED_SIGNAL,
- DIRECTORY_MONITOR_FILE_DISCOVERED_SIGNAL,
- DIRECTORY_MONITOR_DIRECTORY_DISCOVERED_SIGNAL,
- DIRECTORY_MONITOR_DISCOVERY_FAILED_SIGNAL,
- DIRECTORY_MONITOR_DISCOVERY_COMPLETED_SIGNAL,
- DIRECTORY_MONITOR_FILE_CREATED_SIGNAL,
- DIRECTORY_MONITOR_FILE_MOVED_SIGNAL,
- DIRECTORY_MONITOR_FILE_ALTERED_SIGNAL,
- DIRECTORY_MONITOR_FILE_ALTERATION_COMPLETED_SIGNAL,
- DIRECTORY_MONITOR_FILE_ATTRIBUTES_ALTERED_SIGNAL,
- DIRECTORY_MONITOR_FILE_DELETED_SIGNAL,
- DIRECTORY_MONITOR_DIRECTORY_CREATED_SIGNAL,
- DIRECTORY_MONITOR_DIRECTORY_MOVED_SIGNAL,
- DIRECTORY_MONITOR_DIRECTORY_ALTERED_SIGNAL,
- DIRECTORY_MONITOR_DIRECTORY_ALTERATION_COMPLETED_SIGNAL,
- DIRECTORY_MONITOR_DIRECTORY_ATTRIBUTES_ALTERED_SIGNAL,
- DIRECTORY_MONITOR_DIRECTORY_DELETED_SIGNAL,
- DIRECTORY_MONITOR_CLOSED_SIGNAL,
- DIRECTORY_MONITOR_NUM_SIGNALS
-};
-static guint directory_monitor_signals[DIRECTORY_MONITOR_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DirectoryMonitor {
- GObject parent_instance;
- DirectoryMonitorPrivate * priv;
-};
-
-struct _DirectoryMonitorClass {
- GObjectClass parent_class;
- void (*notify_root_deleted) (DirectoryMonitor* self, GFile* root);
- void (*notify_root_moved) (DirectoryMonitor* self, GFile* old_root, GFile* new_root, GFileInfo* new_root_info);
- void (*notify_discovery_started) (DirectoryMonitor* self);
- void (*internal_notify_file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*notify_file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*internal_notify_directory_discovered) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*notify_directory_discovered) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*notify_discovery_failed) (DirectoryMonitor* self, const gchar* reason);
- void (*notify_discovery_completed) (DirectoryMonitor* self);
- void (*notify_file_created) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*notify_file_moved) (DirectoryMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info);
- void (*notify_file_altered) (DirectoryMonitor* self, GFile* file);
- void (*notify_file_alteration_completed) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*notify_file_attributes_altered) (DirectoryMonitor* self, GFile* file);
- void (*notify_file_deleted) (DirectoryMonitor* self, GFile* file);
- void (*notify_directory_created) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*notify_directory_moved) (DirectoryMonitor* self, GFile* old_dir, GFile* new_dir, GFileInfo* new_dir_info);
- void (*notify_directory_altered) (DirectoryMonitor* self, GFile* dir);
- void (*notify_directory_alteration_completed) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*notify_directory_attributes_altered) (DirectoryMonitor* self, GFile* dir);
- void (*notify_directory_deleted) (DirectoryMonitor* self, GFile* dir);
- void (*notify_closed) (DirectoryMonitor* self);
- void (*close) (DirectoryMonitor* self);
- void (*root_moved) (DirectoryMonitor* self, GFile* old_root, GFile* new_root, GFileInfo* new_root_info);
- void (*root_deleted) (DirectoryMonitor* self, GFile* root);
- void (*discovery_started) (DirectoryMonitor* self);
- void (*file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*directory_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*discovery_failed) (DirectoryMonitor* self, const gchar* reason);
- void (*discovery_completed) (DirectoryMonitor* self);
- void (*file_created) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*file_moved) (DirectoryMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info);
- void (*file_altered) (DirectoryMonitor* self, GFile* file);
- void (*file_alteration_completed) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*file_attributes_altered) (DirectoryMonitor* self, GFile* file);
- void (*file_deleted) (DirectoryMonitor* self, GFile* file);
- void (*directory_created) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*directory_moved) (DirectoryMonitor* self, GFile* old_dir, GFile* new_dir, GFileInfo* new_dir_info);
- void (*directory_altered) (DirectoryMonitor* self, GFile* dir);
- void (*directory_alteration_completed) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*directory_attributes_altered) (DirectoryMonitor* self, GFile* dir);
- void (*directory_deleted) (DirectoryMonitor* self, GFile* dir);
- void (*closed) (DirectoryMonitor* self);
-};
-
-struct _DirectoryMonitorPrivate {
- GFile* root;
- gboolean recurse;
- gboolean monitoring;
- GeeHashMap* monitors;
- GeeQueue* query_info_queue;
- DirectoryMonitorFileInfoMap* files;
- DirectoryMonitorFileInfoMap* parent_moved;
- GCancellable* cancellable;
- gint outstanding_exploration_dirs;
- gboolean started;
- gboolean has_discovery_started;
- guint delete_timer_id;
-};
-
-typedef enum {
- DIRECTORY_MONITOR_FTYPE_FILE,
- DIRECTORY_MONITOR_FTYPE_DIRECTORY,
- DIRECTORY_MONITOR_FTYPE_UNSUPPORTED
-} DirectoryMonitorFType;
-
-struct _DirectoryMonitorAsyncInternalNotifyDirectoryMovedData {
- int _state_;
- GObject* _source_object_;
- GAsyncResult* _res_;
- GTask* _async_result;
- GAsyncReadyCallback _callback_;
- gboolean _task_complete_;
- DirectoryMonitor* self;
- GFile* old_dir;
- GFileInfo* old_dir_info;
- GFile* new_dir;
- GFileInfo* new_dir_info;
- GeeArrayList* file_children;
- GeeArrayList* _tmp0_;
- GeeArrayList* dir_children;
- GeeArrayList* _tmp1_;
- gint count;
- DirectoryMonitorFileInfoMap* _tmp2_;
- GeeArrayList* _tmp3_;
- GeeArrayList* _tmp4_;
- gint _tmp5_;
- GeeArrayList* _dir_child_list;
- GeeArrayList* _tmp6_;
- GeeArrayList* _tmp7_;
- gint _dir_child_size;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _dir_child_index;
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- GFile* dir_child;
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- GFileInfo* dir_info;
- DirectoryMonitorFileInfoMap* _tmp17_;
- GFile* _tmp18_;
- GFileInfo* _tmp19_;
- GFileInfo* _tmp20_;
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GFile* _tmp24_;
- GFileInfo* _tmp25_;
- GFile* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- GFile* _tmp29_;
- GFile* _tmp30_;
- GFileInfo* _tmp31_;
- GeeArrayList* _file_child_list;
- GeeArrayList* _tmp32_;
- GeeArrayList* _tmp33_;
- gint _file_child_size;
- GeeArrayList* _tmp34_;
- gint _tmp35_;
- gint _tmp36_;
- gint _file_child_index;
- gint _tmp37_;
- gint _tmp38_;
- gint _tmp39_;
- GFile* file_child;
- GeeArrayList* _tmp40_;
- gint _tmp41_;
- gpointer _tmp42_;
- GFileInfo* file_info;
- DirectoryMonitorFileInfoMap* _tmp43_;
- GFile* _tmp44_;
- GFileInfo* _tmp45_;
- GFileInfo* _tmp46_;
- GFile* _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
- GFile* _tmp50_;
- GFile* _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
- GFile* _tmp54_;
- GFile* _tmp55_;
- GFileInfo* _tmp56_;
- DirectoryMonitorFileInfoMap* _tmp57_;
- gboolean updated;
- DirectoryMonitorFileInfoMap* _tmp58_;
-};
-
-struct _DirectoryMonitorAsyncNotifyDirectoryDeletedData {
- int _state_;
- GObject* _source_object_;
- GAsyncResult* _res_;
- GTask* _async_result;
- GAsyncReadyCallback _callback_;
- gboolean _task_complete_;
- DirectoryMonitor* self;
- GFile* dir;
- gboolean already_removed;
- GeeArrayList* file_children;
- GeeArrayList* _tmp0_;
- GeeArrayList* dir_children;
- GeeArrayList* _tmp1_;
- gint count;
- DirectoryMonitorFileInfoMap* _tmp2_;
- GeeArrayList* _tmp3_;
- GeeArrayList* _tmp4_;
- gint _tmp5_;
- GeeArrayList* _dir_child_list;
- GeeArrayList* _tmp6_;
- GeeArrayList* _tmp7_;
- gint _dir_child_size;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _dir_child_index;
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- GFile* dir_child;
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- GFile* _tmp17_;
- GeeArrayList* _file_child_list;
- GeeArrayList* _tmp18_;
- GeeArrayList* _tmp19_;
- gint _file_child_size;
- GeeArrayList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _file_child_index;
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- GFile* file_child;
- GeeArrayList* _tmp26_;
- gint _tmp27_;
- gpointer _tmp28_;
- DirectoryMonitorFileInfoMap* _tmp29_;
- GFile* _tmp30_;
- GFile* _tmp31_;
- DirectoryMonitorFileInfoMap* _tmp32_;
-};
-
-struct _DirectoryMonitorExploreAsyncData {
- int _state_;
- GObject* _source_object_;
- GAsyncResult* _res_;
- GTask* _async_result;
- GAsyncReadyCallback _callback_;
- gboolean _task_complete_;
- DirectoryMonitor* self;
- GFile* dir;
- GFileInfo* dir_info;
- gboolean in_discovery;
- DirectoryMonitorFileInfoMap* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GFileInfo* local_dir_info;
- GFileInfo* _tmp3_;
- GFileInfo* _tmp4_;
- GFileInfo* _tmp5_;
- GCancellable* _tmp6_;
- GFileInfo* _tmp7_;
- GFileInfo* _tmp8_;
- GError* err;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GError* _tmp11_;
- const gchar* _tmp12_;
- GFileInfo* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- GFileInfo* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gboolean _tmp19_;
- GFileInfo* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- GFileInfo* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- GFileInfo* _tmp26_;
- GEnumValue* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- GeeHashMap* dir_map;
- GeeHashMap* file_map;
- GFileEnumerator* enumerator;
- GCancellable* _tmp30_;
- GFileEnumerator* _tmp31_;
- gboolean _tmp32_;
- GList* infos;
- GFileEnumerator* _tmp33_;
- GCancellable* _tmp34_;
- GList* _tmp35_;
- GList* _tmp36_;
- GList* _tmp37_;
- GList* info_collection;
- GList* info_it;
- GFileInfo* _tmp38_;
- GFileInfo* info;
- GFileInfo* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
- gboolean _tmp42_;
- GFileInfo* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- GFileInfo* _tmp46_;
- GFileInfo* _tmp47_;
- const gchar* _tmp48_;
- GFile* _tmp49_;
- GFile* _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- GFileInfo* _tmp53_;
- GFileInfo* _tmp54_;
- GeeHashMap* _tmp55_;
- GeeHashMap* _tmp56_;
- GeeHashMap* _tmp57_;
- GFileInfo* _tmp58_;
- const gchar* _tmp59_;
- GFile* _tmp60_;
- GFile* _tmp61_;
- GFileInfo* _tmp62_;
- GeeHashMap* _tmp63_;
- GeeHashMap* _tmp64_;
- GeeHashMap* _tmp65_;
- GFileInfo* _tmp66_;
- const gchar* _tmp67_;
- GFile* _tmp68_;
- GFile* _tmp69_;
- GFileInfo* _tmp70_;
- GError* err2;
- gchar* _tmp71_;
- gchar* _tmp72_;
- GError* _tmp73_;
- const gchar* _tmp74_;
- GFileInfo* _tmp75_;
- GFileInfo* _tmp76_;
- GFileInfo* _tmp77_;
- GeeHashMap* _tmp78_;
- GeeHashMap* _tmp79_;
- gboolean _tmp80_;
- gboolean _tmp81_;
- GeeHashMap* _tmp82_;
- GeeIterator* _subdir_it;
- GeeHashMap* _tmp83_;
- GeeSet* _tmp84_;
- GeeSet* _tmp85_;
- GeeSet* _tmp86_;
- GeeIterator* _tmp87_;
- GeeIterator* _tmp88_;
- GeeIterator* _tmp89_;
- GFile* subdir;
- GeeIterator* _tmp90_;
- gpointer _tmp91_;
- gint _tmp92_;
- gint _tmp93_;
- GFile* _tmp94_;
- GeeHashMap* _tmp95_;
- GFile* _tmp96_;
- gpointer _tmp97_;
- GFileInfo* _tmp98_;
- GFile* _tmp99_;
- GeeHashMap* _tmp100_;
- GFile* _tmp101_;
- gpointer _tmp102_;
- GFileInfo* _tmp103_;
- GError * _inner_error_;
-};
-
-struct _DirectoryMonitorNotifyDirectoryFilesData {
- int _state_;
- GObject* _source_object_;
- GAsyncResult* _res_;
- GTask* _async_result;
- GAsyncReadyCallback _callback_;
- gboolean _task_complete_;
- DirectoryMonitor* self;
- GeeMap* map;
- gboolean in_discovery;
- GeeMapIterator* iter;
- GeeMapIterator* _tmp0_;
- GeeMapIterator* _tmp1_;
- GeeMapIterator* _tmp2_;
- gpointer _tmp3_;
- GFile* _tmp4_;
- GeeMapIterator* _tmp5_;
- gpointer _tmp6_;
- GFileInfo* _tmp7_;
- GeeMapIterator* _tmp8_;
- gpointer _tmp9_;
- GFile* _tmp10_;
- GeeMapIterator* _tmp11_;
- gpointer _tmp12_;
- GFileInfo* _tmp13_;
-};
-
-struct _DirectoryMonitorQueryInfoQueueElement {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DirectoryMonitorQueryInfoQueueElementPrivate * priv;
- DirectoryMonitor* owner;
- GFile* file;
- GFile* other_file;
- GFileMonitorEvent event;
- guint position;
- gulong time_created_msec;
- GFileInfo* info;
- GError* err;
- gboolean completed;
-};
-
-struct _DirectoryMonitorQueryInfoQueueElementClass {
- GTypeClass parent_class;
- void (*finalize) (DirectoryMonitorQueryInfoQueueElement *self);
-};
-
-struct _DirectoryMonitorParamSpecQueryInfoQueueElement {
- GParamSpec parent_instance;
-};
-
-struct _DirectoryMonitorFileInfoMap {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DirectoryMonitorFileInfoMapPrivate * priv;
-};
-
-struct _DirectoryMonitorFileInfoMapClass {
- GTypeClass parent_class;
- void (*finalize) (DirectoryMonitorFileInfoMap *self);
-};
-
-struct _DirectoryMonitorFileInfoMapPrivate {
- GeeHashMap* map;
- GeeHashMap* id_map;
-};
-
-struct _DirectoryMonitorParamSpecFileInfoMap {
- GParamSpec parent_instance;
-};
-
-
-static gpointer directory_monitor_parent_class = NULL;
-static gpointer directory_monitor_query_info_queue_element_parent_class = NULL;
-static guint directory_monitor_query_info_queue_element_current;
-static guint directory_monitor_query_info_queue_element_current = (guint) 0;
-static gpointer directory_monitor_file_info_map_parent_class = NULL;
-
-GType directory_monitor_get_type (void) G_GNUC_CONST;
-static gpointer directory_monitor_query_info_queue_element_ref (gpointer instance);
-static void directory_monitor_query_info_queue_element_unref (gpointer instance);
-static GParamSpec* directory_monitor_param_spec_query_info_queue_element (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void directory_monitor_value_set_query_info_queue_element (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void directory_monitor_value_take_query_info_queue_element (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer directory_monitor_value_get_query_info_queue_element (const GValue* value) G_GNUC_UNUSED;
-static GType directory_monitor_query_info_queue_element_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static gpointer directory_monitor_file_info_map_ref (gpointer instance);
-static void directory_monitor_file_info_map_unref (gpointer instance);
-static GParamSpec* directory_monitor_param_spec_file_info_map (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void directory_monitor_value_set_file_info_map (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void directory_monitor_value_take_file_info_map (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer directory_monitor_value_get_file_info_map (const GValue* value) G_GNUC_UNUSED;
-static GType directory_monitor_file_info_map_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define DIRECTORY_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECTORY_MONITOR, DirectoryMonitorPrivate))
-static GType directory_monitor_ftype_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static DirectoryMonitorFileInfoMap* directory_monitor_file_info_map_new (void);
-static DirectoryMonitorFileInfoMap* directory_monitor_file_info_map_construct (GType object_type);
-#define DIRECTORY_MONITOR_DEFAULT_PRIORITY G_PRIORITY_LOW
-#define DIRECTORY_MONITOR_DIR_INFO_FLAGS G_FILE_QUERY_INFO_NONE
-#define DIRECTORY_MONITOR_FILE_INFO_FLAGS G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS
-#define DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS G_FILE_QUERY_INFO_NONE
-#define DIRECTORY_MONITOR_SUPPORT_DIR_SYMLINKS TRUE
-#define DIRECTORY_MONITOR_SUPPORT_FILE_SYMLINKS FALSE
-#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value"
-#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES
-#define DIRECTORY_MONITOR_FILE_MONITOR_FLAGS G_FILE_MONITOR_SEND_MOVED
-#define DIRECTORY_MONITOR_DELETED_EXPIRATION_MSEC ((guint) 500)
-#define DIRECTORY_MONITOR_MAX_EXPLORATION_DIRS 5
-DirectoryMonitor* directory_monitor_new (GFile* root,
- gboolean recurse,
- gboolean monitoring);
-DirectoryMonitor* directory_monitor_construct (GType object_type,
- GFile* root,
- gboolean recurse,
- gboolean monitoring);
-void directory_monitor_mdbg (const gchar* msg);
-gboolean directory_monitor_is_recursive (DirectoryMonitor* self);
-gboolean directory_monitor_is_monitoring (DirectoryMonitor* self);
-void directory_monitor_notify_root_deleted (DirectoryMonitor* self,
- GFile* root);
-static void directory_monitor_real_notify_root_deleted (DirectoryMonitor* self,
- GFile* root);
-static void directory_monitor_internal_notify_root_moved (DirectoryMonitor* self,
- GFile* old_root,
- GFile* new_root,
- GFileInfo* new_root_info);
-static gboolean directory_monitor_file_info_map_remove (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info);
-static gboolean directory_monitor_file_info_map_update (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info);
-void directory_monitor_notify_root_moved (DirectoryMonitor* self,
- GFile* old_root,
- GFile* new_root,
- GFileInfo* new_root_info);
-static void directory_monitor_real_notify_root_moved (DirectoryMonitor* self,
- GFile* old_root,
- GFile* new_root,
- GFileInfo* new_root_info);
-void directory_monitor_notify_discovery_started (DirectoryMonitor* self);
-static void directory_monitor_real_notify_discovery_started (DirectoryMonitor* self);
-void directory_monitor_internal_notify_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_real_internal_notify_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-void directory_monitor_notify_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_real_notify_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-void directory_monitor_internal_notify_directory_discovered (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static void directory_monitor_real_internal_notify_directory_discovered (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-void directory_monitor_notify_directory_discovered (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static void directory_monitor_real_notify_directory_discovered (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-void directory_monitor_notify_discovery_failed (DirectoryMonitor* self,
- const gchar* reason);
-static void directory_monitor_real_notify_discovery_failed (DirectoryMonitor* self,
- const gchar* reason);
-void directory_monitor_notify_discovery_completed (DirectoryMonitor* self);
-static void directory_monitor_real_notify_discovery_completed (DirectoryMonitor* self);
-static void directory_monitor_internal_notify_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static gboolean directory_monitor_is_file_create_move (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info,
- GFile* * old_file,
- GFileInfo* * old_file_info);
-static void directory_monitor_internal_notify_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-void directory_monitor_notify_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_real_notify_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-void directory_monitor_notify_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-static void directory_monitor_real_notify_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-void directory_monitor_notify_file_altered (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_real_notify_file_altered (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_internal_notify_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-void directory_monitor_notify_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_real_notify_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-void directory_monitor_notify_file_attributes_altered (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_real_notify_file_attributes_altered (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_internal_notify_file_deleted (DirectoryMonitor* self,
- GFile* file);
-void directory_monitor_notify_file_deleted (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_real_notify_file_deleted (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_internal_notify_directory_created (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static void directory_monitor_file_info_map_remove_descendents (DirectoryMonitorFileInfoMap* self,
- GFile* root,
- DirectoryMonitorFileInfoMap* descendents);
-static void directory_monitor_internal_notify_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFileInfo* old_dir_info,
- GFile* new_dir,
- GFileInfo* new_dir_info);
-void directory_monitor_notify_directory_created (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static void directory_monitor_real_notify_directory_created (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static void directory_monitor_async_internal_notify_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFileInfo* old_dir_info,
- GFile* new_dir,
- GFileInfo* new_dir_info,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_);
-static void directory_monitor_async_internal_notify_directory_moved_finish (DirectoryMonitor* self,
- GAsyncResult* _res_);
-static void directory_monitor_async_internal_notify_directory_moved_data_free (gpointer _data);
-static void directory_monitor_async_internal_notify_directory_moved_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data);
-static gboolean directory_monitor_async_internal_notify_directory_moved_co (DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_);
-gboolean file_equal (GFile* a,
- GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-static gint directory_monitor_file_info_map_get_children (DirectoryMonitorFileInfoMap* self,
- GFile* root,
- GeeCollection* files,
- GeeCollection* dirs);
-static GFileInfo* directory_monitor_file_info_map_get_info (DirectoryMonitorFileInfoMap* self,
- GFile* file);
-static void directory_monitor_async_internal_notify_directory_moved_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_);
-static gboolean _directory_monitor_async_internal_notify_directory_moved_co_gsource_func (gpointer self);
-static gboolean directory_monitor_remove_monitor (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static gboolean directory_monitor_add_monitor (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-void directory_monitor_notify_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFile* new_dir,
- GFileInfo* new_dir_info);
-static void directory_monitor_real_notify_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFile* new_dir,
- GFileInfo* new_dir_info);
-void directory_monitor_notify_directory_altered (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_real_notify_directory_altered (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_internal_notify_directory_alteration_completed (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-void directory_monitor_notify_directory_alteration_completed (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static void directory_monitor_real_notify_directory_alteration_completed (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-void directory_monitor_notify_directory_attributes_altered (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_real_notify_directory_attributes_altered (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_internal_notify_directory_deleted (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_async_notify_directory_deleted (DirectoryMonitor* self,
- GFile* dir,
- gboolean already_removed,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_);
-static void directory_monitor_async_notify_directory_deleted_finish (DirectoryMonitor* self,
- GAsyncResult* _res_);
-static void directory_monitor_async_notify_directory_deleted_data_free (gpointer _data);
-static void directory_monitor_async_notify_directory_deleted_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data);
-static gboolean directory_monitor_async_notify_directory_deleted_co (DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_);
-static void directory_monitor_async_notify_directory_deleted_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_);
-static gboolean _directory_monitor_async_notify_directory_deleted_co_gsource_func (gpointer self);
-void directory_monitor_notify_directory_deleted (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_real_notify_directory_deleted (DirectoryMonitor* self,
- GFile* dir);
-void directory_monitor_notify_closed (DirectoryMonitor* self);
-static void directory_monitor_real_notify_closed (DirectoryMonitor* self);
-GFile* directory_monitor_get_root (DirectoryMonitor* self);
-gboolean directory_monitor_is_in_root (DirectoryMonitor* self,
- GFile* file);
-gboolean directory_monitor_has_started (DirectoryMonitor* self);
-void directory_monitor_start_discovery (DirectoryMonitor* self);
-static void directory_monitor_explore_async (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* dir_info,
- gboolean in_discovery,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_);
-static void directory_monitor_explore_finish (DirectoryMonitor* self,
- GAsyncResult* _res_);
-void directory_monitor_close (DirectoryMonitor* self);
-static void directory_monitor_real_close (DirectoryMonitor* self);
-static void directory_monitor_cancel_monitor (DirectoryMonitor* self,
- GFileMonitor* monitor);
-static DirectoryMonitorFType directory_monitor_get_ftype (GFileInfo* info);
-const gchar* g_file_type_to_string (GFileType self);
-static void directory_monitor_explore_async_data_free (gpointer _data);
-static void directory_monitor_explore_async_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data);
-static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsyncData* _data_);
-static gboolean directory_monitor_file_info_map_contains (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_explore_directory_completed (DirectoryMonitor* self,
- gboolean in_discovery);
-static void directory_monitor_explore_async_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_);
-gchar* get_file_info_id (GFileInfo* info);
-static void _g_object_unref0_ (gpointer var);
-static inline void _g_list_free__g_object_unref0_ (GList* self);
-gboolean directory_monitor_is_file_symlink_supported (GFileInfo* info);
-guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-static void directory_monitor_notify_directory_files (DirectoryMonitor* self,
- GeeMap* map,
- gboolean in_discovery,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_);
-static void directory_monitor_notify_directory_files_finish (DirectoryMonitor* self,
- GAsyncResult* _res_);
-static void directory_monitor_notify_directory_files_data_free (gpointer _data);
-static void directory_monitor_notify_directory_files_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data);
-static gboolean directory_monitor_notify_directory_files_co (DirectoryMonitorNotifyDirectoryFilesData* _data_);
-static gboolean _directory_monitor_notify_directory_files_co_gsource_func (gpointer self);
-static gchar* directory_monitor_file_info_map_get_id (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_on_monitor_notification (DirectoryMonitor* self,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event);
-static void _directory_monitor_on_monitor_notification_g_file_monitor_changed (GFileMonitor* _sender,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event_type,
- gpointer self);
-const gchar* g_file_monitor_event_to_string (GFileMonitorEvent self);
-static DirectoryMonitorQueryInfoQueueElement* directory_monitor_query_info_queue_element_new (DirectoryMonitor* owner,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event);
-static DirectoryMonitorQueryInfoQueueElement* directory_monitor_query_info_queue_element_construct (GType object_type,
- DirectoryMonitor* owner,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event);
-static void directory_monitor_query_info_queue_element_on_completed (DirectoryMonitorQueryInfoQueueElement* self,
- GObject* source,
- GAsyncResult* aresult);
-static void _directory_monitor_query_info_queue_element_on_completed_gasync_ready_callback (GObject* source_object,
- GAsyncResult* res,
- gpointer self);
-static gboolean directory_monitor_check_for_expired_delete_events (DirectoryMonitor* self);
-static gboolean _directory_monitor_check_for_expired_delete_events_gsource_func (gpointer self);
-static void directory_monitor_process_query_queue (DirectoryMonitor* self,
- DirectoryMonitorQueryInfoQueueElement* query_info);
-static GFile* directory_monitor_file_info_map_find_match (DirectoryMonitorFileInfoMap* self,
- GFileInfo* match);
-static void directory_monitor_on_monitor_notification_ready (DirectoryMonitor* self,
- GFile* file,
- GFile* other_file,
- GFileInfo* info,
- GFileMonitorEvent event);
-GFileInfo* directory_monitor_get_file_info (DirectoryMonitor* self,
- GFile* file);
-gulong now_ms (void);
-GeeCollection* directory_monitor_get_files (DirectoryMonitor* self);
-static GeeCollection* directory_monitor_file_info_map_get_all (DirectoryMonitorFileInfoMap* self);
-GFileInfo* directory_monitor_query_file_info (DirectoryMonitor* self,
- GFile* file);
-static GFileInfo* directory_monitor_file_info_map_query_info (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GCancellable* cancellable);
-static void directory_monitor_real_root_moved (DirectoryMonitor* self,
- GFile* old_root,
- GFile* new_root,
- GFileInfo* new_root_info);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void directory_monitor_real_root_deleted (DirectoryMonitor* self,
- GFile* root);
-static void directory_monitor_real_discovery_started (DirectoryMonitor* self);
-static void directory_monitor_real_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void directory_monitor_real_directory_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_real_discovery_failed (DirectoryMonitor* self,
- const gchar* reason);
-static void directory_monitor_real_discovery_completed (DirectoryMonitor* self);
-static void directory_monitor_real_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_real_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-static void directory_monitor_real_file_altered (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_real_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void directory_monitor_real_file_attributes_altered (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_real_file_deleted (DirectoryMonitor* self,
- GFile* file);
-static void directory_monitor_real_directory_created (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static void directory_monitor_real_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFile* new_dir,
- GFileInfo* new_dir_info);
-static void directory_monitor_real_directory_altered (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_real_directory_alteration_completed (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info);
-static void directory_monitor_real_directory_attributes_altered (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_real_directory_deleted (DirectoryMonitor* self,
- GFile* dir);
-static void directory_monitor_real_closed (DirectoryMonitor* self);
-static void directory_monitor_query_info_queue_element_finalize (DirectoryMonitorQueryInfoQueueElement * obj);
-#define DIRECTORY_MONITOR_FILE_INFO_MAP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMapPrivate))
-static gboolean directory_monitor_file_info_map_normalize_file (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info,
- GFile* * normalized,
- gchar* * id);
-static void directory_monitor_file_info_map_remove_all (DirectoryMonitorFileInfoMap* self,
- GeeCollection* files);
-static void directory_monitor_file_info_map_finalize (DirectoryMonitorFileInfoMap * obj);
-static void directory_monitor_finalize (GObject * obj);
-
-
-static GType
-directory_monitor_ftype_get_type (void)
-{
- static volatile gsize directory_monitor_ftype_type_id__volatile = 0;
- if (g_once_init_enter (&directory_monitor_ftype_type_id__volatile)) {
- static const GEnumValue values[] = {{DIRECTORY_MONITOR_FTYPE_FILE, "DIRECTORY_MONITOR_FTYPE_FILE", "file"}, {DIRECTORY_MONITOR_FTYPE_DIRECTORY, "DIRECTORY_MONITOR_FTYPE_DIRECTORY", "directory"}, {DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "DIRECTORY_MONITOR_FTYPE_UNSUPPORTED", "unsupported"}, {0, NULL, NULL}};
- GType directory_monitor_ftype_type_id;
- directory_monitor_ftype_type_id = g_enum_register_static ("DirectoryMonitorFType", values);
- g_once_init_leave (&directory_monitor_ftype_type_id__volatile, directory_monitor_ftype_type_id);
- }
- return directory_monitor_ftype_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 465 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1028 "DirectoryMonitor.c"
-}
-
-
-DirectoryMonitor*
-directory_monitor_construct (GType object_type,
- GFile* root,
- gboolean recurse,
- gboolean monitoring)
-{
- DirectoryMonitor * self = NULL;
- GFile* _tmp0_;
-#line 464 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (root), NULL);
-#line 464 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self = (DirectoryMonitor*) g_object_new (object_type, NULL);
-#line 465 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _g_object_ref0 (root);
-#line 465 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->priv->root);
-#line 465 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->root = _tmp0_;
-#line 466 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->recurse = recurse;
-#line 467 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->monitoring = monitoring;
-#line 464 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return self;
-#line 1056 "DirectoryMonitor.c"
-}
-
-
-DirectoryMonitor*
-directory_monitor_new (GFile* root,
- gboolean recurse,
- gboolean monitoring)
-{
-#line 464 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return directory_monitor_construct (TYPE_DIRECTORY_MONITOR, root, recurse, monitoring);
-#line 1067 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_mdbg (const gchar* msg)
-{
-#line 470 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (msg != NULL);
-#line 1076 "DirectoryMonitor.c"
-}
-
-
-gboolean
-directory_monitor_is_recursive (DirectoryMonitor* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 476 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE);
-#line 477 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->recurse;
-#line 477 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = _tmp0_;
-#line 477 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 1093 "DirectoryMonitor.c"
-}
-
-
-gboolean
-directory_monitor_is_monitoring (DirectoryMonitor* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 480 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE);
-#line 481 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->monitoring;
-#line 481 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = _tmp0_;
-#line 481 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 1110 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_root_deleted (DirectoryMonitor* self,
- GFile* root)
-{
- GFile* _tmp0_;
-#line 484 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (root));
-#line 485 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->root;
-#line 485 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (g_file_equal (_tmp0_, root), "this.root.equal(root)");
-#line 487 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg ("root deleted");
-#line 488 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_ROOT_DELETED_SIGNAL], 0, root);
-#line 1129 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_root_deleted (DirectoryMonitor* self,
- GFile* root)
-{
-#line 484 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 484 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_root_deleted (self, root);
-#line 1141 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_root_moved (DirectoryMonitor* self,
- GFile* old_root,
- GFile* new_root,
- GFileInfo* new_root_info)
-{
- gboolean removed = FALSE;
- DirectoryMonitorFileInfoMap* _tmp0_;
- gboolean updated = FALSE;
- DirectoryMonitorFileInfoMap* _tmp1_;
- GFile* _tmp2_;
-#line 491 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 491 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_root));
-#line 491 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_root));
-#line 491 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_root_info));
-#line 492 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 492 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- removed = directory_monitor_file_info_map_remove (_tmp0_, old_root, NULL);
-#line 493 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (removed, "removed");
-#line 495 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->files;
-#line 495 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- updated = directory_monitor_file_info_map_update (_tmp1_, new_root, new_root_info);
-#line 496 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (updated, "updated");
-#line 498 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _g_object_ref0 (new_root);
-#line 498 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->priv->root);
-#line 498 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->root = _tmp2_;
-#line 500 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_root_moved (self, old_root, new_root, new_root_info);
-#line 1184 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_root_moved (DirectoryMonitor* self,
- GFile* old_root,
- GFile* new_root,
- GFileInfo* new_root_info)
-{
- GFile* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_root));
-#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_root));
-#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_root_info));
-#line 504 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->root;
-#line 504 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (g_file_equal (_tmp0_, old_root), "this.root.equal(old_root)");
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = g_file_get_path (old_root);
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = g_file_get_path (new_root);
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = g_strdup_printf ("root moved: %s -> %s", _tmp2_, _tmp4_);
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp6_);
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp6_);
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp4_);
-#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp2_);
-#line 507 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_ROOT_MOVED_SIGNAL], 0, old_root, new_root, new_root_info);
-#line 1233 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_root_moved (DirectoryMonitor* self,
- GFile* old_root,
- GFile* new_root,
- GFileInfo* new_root_info)
-{
-#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_root_moved (self, old_root, new_root, new_root_info);
-#line 1247 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_discovery_started (DirectoryMonitor* self)
-{
-#line 511 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg ("discovery started");
-#line 512 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_STARTED_SIGNAL], 0);
-#line 1258 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_discovery_started (DirectoryMonitor* self)
-{
-#line 510 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 510 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_discovery_started (self);
-#line 1269 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_internal_notify_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
- DirectoryMonitorFileInfoMap* _tmp0_;
-#line 515 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 515 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 516 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 516 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!directory_monitor_file_info_map_update (_tmp0_, file, info)) {
-#line 1287 "DirectoryMonitor.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 517 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = g_file_get_path (file);
-#line 517 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 517 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_debug ("DirectoryMonitor.vala:517: DirectoryMonitor.internal_notify_file_disco" \
-"vered: %s discovered but not added to file map", _tmp2_);
-#line 517 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp2_);
-#line 520 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return;
-#line 1300 "DirectoryMonitor.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_file_discovered (self, file, info);
-#line 1304 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_internal_notify_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 515 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 515 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->internal_notify_file_discovered (self, file, info);
-#line 1317 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 526 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 526 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (file);
-#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("file discovered: %s", _tmp1_);
-#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 528 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_DISCOVERED_SIGNAL], 0, file, info);
-#line 1350 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 526 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 526 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_discovered (self, file, info);
-#line 1363 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_internal_notify_directory_discovered (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
- gboolean updated = FALSE;
- DirectoryMonitorFileInfoMap* _tmp0_;
-#line 531 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 531 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 532 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 532 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- updated = directory_monitor_file_info_map_update (_tmp0_, dir, info);
-#line 533 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (updated, "updated");
-#line 535 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_discovered (self, dir, info);
-#line 1386 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_internal_notify_directory_discovered (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
-#line 531 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 531 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->internal_notify_directory_discovered (self, dir, info);
-#line 1399 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_directory_discovered (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 538 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 538 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("directory discovered: %s", _tmp1_);
-#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 540 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_DISCOVERED_SIGNAL], 0, dir, info);
-#line 1432 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_directory_discovered (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
-#line 538 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 538 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_discovered (self, dir, info);
-#line 1445 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_discovery_failed (DirectoryMonitor* self,
- const gchar* reason)
-{
-#line 543 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (reason != NULL);
-#line 544 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:544: discovery failed: %s", reason);
-#line 545 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_FAILED_SIGNAL], 0, reason);
-#line 1459 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_discovery_failed (DirectoryMonitor* self,
- const gchar* reason)
-{
-#line 543 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 543 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_discovery_failed (self, reason);
-#line 1471 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_discovery_completed (DirectoryMonitor* self)
-{
-#line 549 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_COMPLETED_SIGNAL], 0);
-#line 1480 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_discovery_completed (DirectoryMonitor* self)
-{
-#line 548 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 548 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_discovery_completed (self);
-#line 1491 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
- GFile* old_file = NULL;
- GFileInfo* old_file_info = NULL;
- GFile* _tmp0_ = NULL;
- GFileInfo* _tmp1_ = NULL;
- gboolean _tmp2_;
-#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = directory_monitor_is_file_create_move (self, file, info, &_tmp0_, &_tmp1_);
-#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_file);
-#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old_file = _tmp0_;
-#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_file_info);
-#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old_file_info = _tmp1_;
-#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp2_) {
-#line 1523 "DirectoryMonitor.c"
- GFile* _tmp3_;
-#line 556 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = old_file;
-#line 556 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_file_moved (self, _tmp3_, file, info);
-#line 1529 "DirectoryMonitor.c"
- } else {
- gboolean updated = FALSE;
- DirectoryMonitorFileInfoMap* _tmp4_;
- gboolean _tmp5_;
-#line 558 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = self->priv->files;
-#line 558 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- updated = directory_monitor_file_info_map_update (_tmp4_, file, info);
-#line 559 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = updated;
-#line 559 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp5_, "updated");
-#line 561 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_file_created (self, file, info);
-#line 1544 "DirectoryMonitor.c"
- }
-#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_file_info);
-#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_file);
-#line 1550 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 565 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 565 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (file);
-#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("file created: %s", _tmp1_);
-#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 567 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_CREATED_SIGNAL], 0, file, info);
-#line 1583 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 565 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 565 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_created (self, file, info);
-#line 1596 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info)
-{
- DirectoryMonitorFileInfoMap* _tmp0_;
- gboolean updated = FALSE;
- DirectoryMonitorFileInfoMap* _tmp1_;
-#line 570 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 570 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 570 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 570 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_file_info));
-#line 573 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 573 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_remove (_tmp0_, old_file, NULL);
-#line 575 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->files;
-#line 575 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- updated = directory_monitor_file_info_map_update (_tmp1_, new_file, new_file_info);
-#line 576 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (updated, "updated");
-#line 578 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_file_moved (self, old_file, new_file, new_file_info);
-#line 1629 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_file_info));
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (old_file);
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_file_get_path (new_file);
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = g_strdup_printf ("file moved: %s -> %s", _tmp1_, _tmp3_);
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp5_);
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp5_);
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 583 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_MOVED_SIGNAL], 0, old_file, new_file, new_file_info);
-#line 1673 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info)
-{
-#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_moved (self, old_file, new_file, new_file_info);
-#line 1687 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_file_altered (DirectoryMonitor* self,
- GFile* file)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 586 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (file);
-#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("file altered: %s", _tmp1_);
-#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 588 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_ALTERED_SIGNAL], 0, file);
-#line 1717 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_file_altered (DirectoryMonitor* self,
- GFile* file)
-{
-#line 586 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 586 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_altered (self, file);
-#line 1729 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
- gboolean updated = FALSE;
- DirectoryMonitorFileInfoMap* _tmp0_;
-#line 591 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 591 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 591 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 592 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 592 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- updated = directory_monitor_file_info_map_update (_tmp0_, file, info);
-#line 593 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (updated, "updated");
-#line 595 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_file_alteration_completed (self, file, info);
-#line 1754 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 598 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 598 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (file);
-#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("file alteration completed: %s", _tmp1_);
-#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 600 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_ALTERATION_COMPLETED_SIGNAL], 0, file, info);
-#line 1787 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 598 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 598 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_alteration_completed (self, file, info);
-#line 1800 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_file_attributes_altered (DirectoryMonitor* self,
- GFile* file)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 603 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (file);
-#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("file attributes altered: %s", _tmp1_);
-#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 605 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_ATTRIBUTES_ALTERED_SIGNAL], 0, file);
-#line 1830 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_file_attributes_altered (DirectoryMonitor* self,
- GFile* file)
-{
-#line 603 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 603 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_attributes_altered (self, file);
-#line 1842 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_file_deleted (DirectoryMonitor* self,
- GFile* file)
-{
- gboolean removed = FALSE;
- DirectoryMonitorFileInfoMap* _tmp0_;
-#line 608 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 608 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 609 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 609 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- removed = directory_monitor_file_info_map_remove (_tmp0_, file, NULL);
-#line 610 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (removed, "removed");
-#line 612 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_file_deleted (self, file);
-#line 1864 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_file_deleted (DirectoryMonitor* self,
- GFile* file)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 615 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (file);
-#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("file deleted: %s", _tmp1_);
-#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 617 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_DELETED_SIGNAL], 0, file);
-#line 1894 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_file_deleted (DirectoryMonitor* self,
- GFile* file)
-{
-#line 615 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 615 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_deleted (self, file);
-#line 1906 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_directory_created (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
- GFile* old_dir = NULL;
- GFileInfo* old_dir_info = NULL;
- GFile* _tmp0_ = NULL;
- GFileInfo* _tmp1_ = NULL;
- gboolean _tmp2_;
-#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = directory_monitor_is_file_create_move (self, dir, info, &_tmp0_, &_tmp1_);
-#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_dir);
-#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old_dir = _tmp0_;
-#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_dir_info);
-#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old_dir_info = _tmp1_;
-#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp2_) {
-#line 1938 "DirectoryMonitor.c"
- DirectoryMonitorFileInfoMap* _tmp3_;
- GFile* _tmp4_;
- DirectoryMonitorFileInfoMap* _tmp5_;
- GFile* _tmp6_;
- GFileInfo* _tmp7_;
-#line 629 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = self->priv->files;
-#line 629 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = old_dir;
-#line 629 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = self->priv->parent_moved;
-#line 629 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_remove_descendents (_tmp3_, _tmp4_, _tmp5_);
-#line 631 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = old_dir;
-#line 631 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = old_dir_info;
-#line 631 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_directory_moved (self, _tmp6_, _tmp7_, dir, info);
-#line 1958 "DirectoryMonitor.c"
- } else {
- gboolean updated = FALSE;
- DirectoryMonitorFileInfoMap* _tmp8_;
- gboolean _tmp9_;
-#line 633 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = self->priv->files;
-#line 633 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- updated = directory_monitor_file_info_map_update (_tmp8_, dir, info);
-#line 634 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = updated;
-#line 634 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp9_, "updated");
-#line 636 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_created (self, dir, info);
-#line 1973 "DirectoryMonitor.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_dir_info);
-#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_dir);
-#line 1979 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_directory_created (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 640 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 640 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("directory created: %s", _tmp1_);
-#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 642 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_CREATED_SIGNAL], 0, dir, info);
-#line 2012 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_directory_created (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
-#line 640 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 640 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_created (self, dir, info);
-#line 2025 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFileInfo* old_dir_info,
- GFile* new_dir,
- GFileInfo* new_dir_info)
-{
-#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_dir));
-#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (old_dir_info));
-#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_dir));
-#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_dir_info));
-#line 647 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_internal_notify_directory_moved (self, old_dir, old_dir_info, new_dir, new_dir_info, NULL, NULL);
-#line 2048 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_internal_notify_directory_moved_data_free (gpointer _data)
-{
- DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_;
- _data_ = _data;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->old_dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->old_dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->new_dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->new_dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->self);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_slice_free (DirectoryMonitorAsyncInternalNotifyDirectoryMovedData, _data_);
-#line 2069 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_internal_notify_directory_moved_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data)
-{
- DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _task_data_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_ = g_task_get_task_data (G_TASK (res));
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_task_data_->_callback_ != NULL) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_->_callback_ (source_object, res, user_data);
-#line 2085 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_->_task_complete_ = TRUE;
-#line 2089 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_internal_notify_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFileInfo* old_dir_info,
- GFile* new_dir,
- GFileInfo* new_dir_info,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_)
-{
- DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_;
- DirectoryMonitor* _tmp0_;
- GFile* _tmp1_;
- GFileInfo* _tmp2_;
- GFile* _tmp3_;
- GFileInfo* _tmp4_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = g_slice_new0 (DirectoryMonitorAsyncInternalNotifyDirectoryMovedData);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_callback_ = _callback_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_async_result = g_task_new (G_OBJECT (self), NULL, directory_monitor_async_internal_notify_directory_moved_async_ready_wrapper, _user_data_);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_callback_ == NULL) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 2118 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_set_task_data (_data_->_async_result, _data_, directory_monitor_async_internal_notify_directory_moved_data_free);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->self = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _g_object_ref0 (old_dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->old_dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->old_dir = _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _g_object_ref0 (old_dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->old_dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->old_dir_info = _tmp2_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _g_object_ref0 (new_dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->new_dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->new_dir = _tmp3_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = _g_object_ref0 (new_dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->new_dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->new_dir_info = _tmp4_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_internal_notify_directory_moved_co (_data_);
-#line 2152 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_internal_notify_directory_moved_finish (DirectoryMonitor* self,
- GAsyncResult* _res_)
-{
- DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 2163 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-_file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = file_equal ((GFile*) a, (GFile*) b);
-#line 652 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 2176 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_internal_notify_directory_moved_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_)
-{
- DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = _user_data_;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_source_object_ = source_object;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_res_ = _res_;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_internal_notify_directory_moved_co (_data_);
-#line 2196 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-_directory_monitor_async_internal_notify_directory_moved_co_gsource_func (gpointer self)
-{
- gboolean result;
- result = directory_monitor_async_internal_notify_directory_moved_co (self);
-#line 683 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 2207 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_async_internal_notify_directory_moved_co (DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_)
-{
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_data_->_state_) {
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 0:
-#line 2218 "DirectoryMonitor.c"
- goto _state_0;
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 1:
-#line 2222 "DirectoryMonitor.c"
- goto _state_1;
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 2:
-#line 2226 "DirectoryMonitor.c"
- goto _state_2;
- default:
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_assert_not_reached ();
-#line 2231 "DirectoryMonitor.c"
- }
- _state_0:
-#line 652 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL);
-#line 652 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->file_children = _data_->_tmp0_;
-#line 653 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL);
-#line 653 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir_children = _data_->_tmp1_;
-#line 654 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp2_ = _data_->self->priv->files;
-#line 654 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp3_ = _data_->file_children;
-#line 654 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp4_ = _data_->dir_children;
-#line 654 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->count = directory_monitor_file_info_map_get_children (_data_->_tmp2_, _data_->old_dir, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 655 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp5_ = _data_->count;
-#line 655 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp5_ > 0) {
-#line 2254 "DirectoryMonitor.c"
- {
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp6_ = _data_->dir_children;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp7_ = _g_object_ref0 (_data_->_tmp6_);
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_dir_child_list = _data_->_tmp7_;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp8_ = _data_->_dir_child_list;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp10_ = _data_->_tmp9_;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_dir_child_size = _data_->_tmp10_;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_dir_child_index = -1;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp11_ = _data_->_dir_child_index;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_dir_child_index = _data_->_tmp11_ + 1;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp12_ = _data_->_dir_child_index;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp13_ = _data_->_dir_child_size;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!(_data_->_tmp12_ < _data_->_tmp13_)) {
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 2286 "DirectoryMonitor.c"
- }
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp14_ = _data_->_dir_child_list;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp15_ = _data_->_dir_child_index;
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _data_->_tmp15_);
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir_child = (GFile*) _data_->_tmp16_;
-#line 660 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp17_ = _data_->self->priv->files;
-#line 660 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp18_ = _data_->dir_child;
-#line 660 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp19_ = directory_monitor_file_info_map_get_info (_data_->_tmp17_, _data_->_tmp18_);
-#line 660 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir_info = _data_->_tmp19_;
-#line 661 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp20_ = _data_->dir_info;
-#line 661 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp20_ == NULL) {
-#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp21_ = _data_->dir_child;
-#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp22_ = g_file_get_path (_data_->_tmp21_);
-#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp23_ = _data_->_tmp22_;
-#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:662: Unable to retrieve directory-moved info for" \
-" %s", _data_->_tmp23_);
-#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp23_);
-#line 664 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_info);
-#line 664 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_child);
-#line 664 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 2324 "DirectoryMonitor.c"
- }
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp24_ = _data_->dir_child;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp25_ = _data_->dir_info;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp26_ = _data_->dir_child;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp27_ = g_file_get_basename (_data_->_tmp26_);
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp28_ = _data_->_tmp27_;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp29_ = g_file_get_child (_data_->new_dir, _data_->_tmp28_);
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp30_ = _data_->_tmp29_;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp31_ = _data_->dir_info;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 1;
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_internal_notify_directory_moved (_data_->self, _data_->_tmp24_, _data_->_tmp25_, _data_->_tmp30_, _data_->_tmp31_, directory_monitor_async_internal_notify_directory_moved_ready, _data_);
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 2348 "DirectoryMonitor.c"
- _state_1:
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_internal_notify_directory_moved_finish (_data_->self, _data_->_res_);
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp30_);
-#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp28_);
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_info);
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_child);
-#line 2360 "DirectoryMonitor.c"
- }
-#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_dir_child_list);
-#line 2364 "DirectoryMonitor.c"
- }
- {
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp32_ = _data_->file_children;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp33_ = _g_object_ref0 (_data_->_tmp32_);
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_file_child_list = _data_->_tmp33_;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp34_ = _data_->_file_child_list;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp35_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp34_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp36_ = _data_->_tmp35_;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_file_child_size = _data_->_tmp36_;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_file_child_index = -1;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp37_ = _data_->_file_child_index;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_file_child_index = _data_->_tmp37_ + 1;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp38_ = _data_->_file_child_index;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp39_ = _data_->_file_child_size;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!(_data_->_tmp38_ < _data_->_tmp39_)) {
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 2397 "DirectoryMonitor.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp40_ = _data_->_file_child_list;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp41_ = _data_->_file_child_index;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp42_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp40_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _data_->_tmp41_);
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->file_child = (GFile*) _data_->_tmp42_;
-#line 673 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp43_ = _data_->self->priv->files;
-#line 673 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp44_ = _data_->file_child;
-#line 673 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp45_ = directory_monitor_file_info_map_get_info (_data_->_tmp43_, _data_->_tmp44_);
-#line 673 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->file_info = _data_->_tmp45_;
-#line 674 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp46_ = _data_->file_info;
-#line 674 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp46_ == NULL) {
-#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp47_ = _data_->file_child;
-#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp48_ = g_file_get_path (_data_->_tmp47_);
-#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp49_ = _data_->_tmp48_;
-#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:675: Unable to retrieve directory-moved info for" \
-" %s", _data_->_tmp49_);
-#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp49_);
-#line 677 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_info);
-#line 677 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_child);
-#line 677 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 2435 "DirectoryMonitor.c"
- }
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp50_ = _data_->file_child;
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp51_ = _data_->file_child;
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp52_ = g_file_get_basename (_data_->_tmp51_);
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp53_ = _data_->_tmp52_;
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp54_ = g_file_get_child (_data_->new_dir, _data_->_tmp53_);
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp55_ = _data_->_tmp54_;
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp56_ = _data_->file_info;
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_file_moved (_data_->self, _data_->_tmp50_, _data_->_tmp55_, _data_->_tmp56_);
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp55_);
-#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp53_);
-#line 683 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_idle_add_full (DIRECTORY_MONITOR_DEFAULT_PRIORITY, _directory_monitor_async_internal_notify_directory_moved_co_gsource_func, _data_, NULL);
-#line 684 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 2;
-#line 684 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 2463 "DirectoryMonitor.c"
- _state_2:
- ;
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_info);
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_child);
-#line 2470 "DirectoryMonitor.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_file_child_list);
-#line 2474 "DirectoryMonitor.c"
- }
- }
-#line 690 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp57_ = _data_->self->priv->files;
-#line 690 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_remove (_data_->_tmp57_, _data_->old_dir, NULL);
-#line 692 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp58_ = _data_->self->priv->files;
-#line 692 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->updated = directory_monitor_file_info_map_update (_data_->_tmp58_, _data_->new_dir, _data_->new_dir_info);
-#line 693 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_data_->updated, "updated");
-#line 696 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_remove_monitor (_data_->self, _data_->old_dir, _data_->old_dir_info);
-#line 697 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_add_monitor (_data_->self, _data_->new_dir, _data_->new_dir_info);
-#line 699 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_moved (_data_->self, _data_->old_dir, _data_->new_dir, _data_->new_dir_info);
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_children);
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_children);
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 2505 "DirectoryMonitor.c"
- }
- }
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 2512 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFile* new_dir,
- GFileInfo* new_dir_info)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GFile* _tmp6_;
-#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_dir));
-#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_dir));
-#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_dir_info));
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (old_dir);
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_file_get_path (new_dir);
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = g_strdup_printf ("directory moved: %s -> %s", _tmp1_, _tmp3_);
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp5_);
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp5_);
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 704 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_MOVED_SIGNAL], 0, old_dir, new_dir, new_dir_info);
-#line 706 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = self->priv->root;
-#line 706 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (g_file_equal (old_dir, _tmp6_)) {
-#line 707 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_root_moved (self, old_dir, new_dir, new_dir_info);
-#line 2563 "DirectoryMonitor.c"
- }
-}
-
-
-void
-directory_monitor_notify_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFile* new_dir,
- GFileInfo* new_dir_info)
-{
-#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_moved (self, old_dir, new_dir, new_dir_info);
-#line 2578 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_directory_altered (DirectoryMonitor* self,
- GFile* dir)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 710 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("directory altered: %s", _tmp1_);
-#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 712 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ALTERED_SIGNAL], 0, dir);
-#line 2608 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_directory_altered (DirectoryMonitor* self,
- GFile* dir)
-{
-#line 710 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 710 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_altered (self, dir);
-#line 2620 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_directory_alteration_completed (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
- gboolean updated = FALSE;
- DirectoryMonitorFileInfoMap* _tmp0_;
-#line 715 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 715 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 715 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 716 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 716 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- updated = directory_monitor_file_info_map_update (_tmp0_, dir, info);
-#line 717 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (updated, "updated");
-#line 719 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_alteration_completed (self, dir, info);
-#line 2645 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_directory_alteration_completed (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 722 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 722 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("directory alteration completed: %s", _tmp1_);
-#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 724 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ALTERATION_COMPLETED_SIGNAL], 0, dir, info);
-#line 2678 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_directory_alteration_completed (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
-#line 722 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 722 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_alteration_completed (self, dir, info);
-#line 2691 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_directory_attributes_altered (DirectoryMonitor* self,
- GFile* dir)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 727 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("directory attributes altered: %s", _tmp1_);
-#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 729 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ATTRIBUTES_ALTERED_SIGNAL], 0, dir);
-#line 2721 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_directory_attributes_altered (DirectoryMonitor* self,
- GFile* dir)
-{
-#line 727 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 727 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_attributes_altered (self, dir);
-#line 2733 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_internal_notify_directory_deleted (DirectoryMonitor* self,
- GFile* dir)
-{
- GFileInfo* info = NULL;
- DirectoryMonitorFileInfoMap* _tmp0_;
- GFileInfo* _tmp1_;
-#line 732 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 732 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 733 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 733 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = directory_monitor_file_info_map_get_info (_tmp0_, dir);
-#line 733 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- info = _tmp1_;
-#line 734 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (info != NULL, "info != null");
-#line 737 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_remove_monitor (self, dir, info);
-#line 739 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_notify_directory_deleted (self, dir, FALSE, NULL, NULL);
-#line 732 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 2762 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_notify_directory_deleted_data_free (gpointer _data)
-{
- DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_;
- _data_ = _data;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->self);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_slice_free (DirectoryMonitorAsyncNotifyDirectoryDeletedData, _data_);
-#line 2777 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_notify_directory_deleted_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data)
-{
- DirectoryMonitorAsyncNotifyDirectoryDeletedData* _task_data_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_ = g_task_get_task_data (G_TASK (res));
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_task_data_->_callback_ != NULL) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_->_callback_ (source_object, res, user_data);
-#line 2793 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_->_task_complete_ = TRUE;
-#line 2797 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_notify_directory_deleted (DirectoryMonitor* self,
- GFile* dir,
- gboolean already_removed,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_)
-{
- DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_;
- DirectoryMonitor* _tmp0_;
- GFile* _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = g_slice_new0 (DirectoryMonitorAsyncNotifyDirectoryDeletedData);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_callback_ = _callback_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_async_result = g_task_new (G_OBJECT (self), NULL, directory_monitor_async_notify_directory_deleted_async_ready_wrapper, _user_data_);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_callback_ == NULL) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 2821 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_set_task_data (_data_->_async_result, _data_, directory_monitor_async_notify_directory_deleted_data_free);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->self = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _g_object_ref0 (dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir = _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->already_removed = already_removed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_notify_directory_deleted_co (_data_);
-#line 2839 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_notify_directory_deleted_finish (DirectoryMonitor* self,
- GAsyncResult* _res_)
-{
- DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 2850 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_async_notify_directory_deleted_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_)
-{
- DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_;
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = _user_data_;
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_source_object_ = source_object;
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_res_ = _res_;
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_notify_directory_deleted_co (_data_);
-#line 2870 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-_directory_monitor_async_notify_directory_deleted_co_gsource_func (gpointer self)
-{
- gboolean result;
- result = directory_monitor_async_notify_directory_deleted_co (self);
-#line 771 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 2881 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_async_notify_directory_deleted_co (DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_)
-{
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_data_->_state_) {
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 0:
-#line 2892 "DirectoryMonitor.c"
- goto _state_0;
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 1:
-#line 2896 "DirectoryMonitor.c"
- goto _state_1;
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 2:
-#line 2900 "DirectoryMonitor.c"
- goto _state_2;
- default:
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_assert_not_reached ();
-#line 2905 "DirectoryMonitor.c"
- }
- _state_0:
-#line 750 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL);
-#line 750 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->file_children = _data_->_tmp0_;
-#line 751 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL);
-#line 751 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir_children = _data_->_tmp1_;
-#line 752 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp2_ = _data_->self->priv->files;
-#line 752 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp3_ = _data_->file_children;
-#line 752 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp4_ = _data_->dir_children;
-#line 752 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->count = directory_monitor_file_info_map_get_children (_data_->_tmp2_, _data_->dir, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 753 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp5_ = _data_->count;
-#line 753 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp5_ > 0) {
-#line 2928 "DirectoryMonitor.c"
- {
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp6_ = _data_->dir_children;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp7_ = _g_object_ref0 (_data_->_tmp6_);
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_dir_child_list = _data_->_tmp7_;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp8_ = _data_->_dir_child_list;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp10_ = _data_->_tmp9_;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_dir_child_size = _data_->_tmp10_;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_dir_child_index = -1;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp11_ = _data_->_dir_child_index;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_dir_child_index = _data_->_tmp11_ + 1;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp12_ = _data_->_dir_child_index;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp13_ = _data_->_dir_child_size;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!(_data_->_tmp12_ < _data_->_tmp13_)) {
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 2960 "DirectoryMonitor.c"
- }
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp14_ = _data_->_dir_child_list;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp15_ = _data_->_dir_child_index;
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _data_->_tmp15_);
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir_child = (GFile*) _data_->_tmp16_;
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp17_ = _data_->dir_child;
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 1;
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_notify_directory_deleted (_data_->self, _data_->_tmp17_, FALSE, directory_monitor_async_notify_directory_deleted_ready, _data_);
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 2978 "DirectoryMonitor.c"
- _state_1:
-#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_async_notify_directory_deleted_finish (_data_->self, _data_->_res_);
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_child);
-#line 2984 "DirectoryMonitor.c"
- }
-#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_dir_child_list);
-#line 2988 "DirectoryMonitor.c"
- }
- {
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp18_ = _data_->file_children;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp19_ = _g_object_ref0 (_data_->_tmp18_);
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_file_child_list = _data_->_tmp19_;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp20_ = _data_->_file_child_list;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp21_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp22_ = _data_->_tmp21_;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_file_child_size = _data_->_tmp22_;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_file_child_index = -1;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp23_ = _data_->_file_child_index;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_file_child_index = _data_->_tmp23_ + 1;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp24_ = _data_->_file_child_index;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp25_ = _data_->_file_child_size;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!(_data_->_tmp24_ < _data_->_tmp25_)) {
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 3021 "DirectoryMonitor.c"
- }
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp26_ = _data_->_file_child_list;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp27_ = _data_->_file_child_index;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp28_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp26_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _data_->_tmp27_);
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->file_child = (GFile*) _data_->_tmp28_;
-#line 767 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp29_ = _data_->self->priv->files;
-#line 767 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp30_ = _data_->file_child;
-#line 767 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_remove (_data_->_tmp29_, _data_->_tmp30_, NULL);
-#line 769 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp31_ = _data_->file_child;
-#line 769 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_file_deleted (_data_->self, _data_->_tmp31_);
-#line 771 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_idle_add_full (DIRECTORY_MONITOR_DEFAULT_PRIORITY, _directory_monitor_async_notify_directory_deleted_co_gsource_func, _data_, NULL);
-#line 772 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 2;
-#line 772 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3047 "DirectoryMonitor.c"
- _state_2:
- ;
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_child);
-#line 3052 "DirectoryMonitor.c"
- }
-#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_file_child_list);
-#line 3056 "DirectoryMonitor.c"
- }
- }
-#line 776 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_data_->already_removed) {
-#line 777 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp32_ = _data_->self->priv->files;
-#line 777 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_remove (_data_->_tmp32_, _data_->dir, NULL);
-#line 3065 "DirectoryMonitor.c"
- }
-#line 779 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_deleted (_data_->self, _data_->dir);
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_children);
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_children);
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 3081 "DirectoryMonitor.c"
- }
- }
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3088 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_directory_deleted (DirectoryMonitor* self,
- GFile* dir)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GFile* _tmp4_;
-#line 782 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup_printf ("directory deleted: %s", _tmp1_);
-#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 784 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_DELETED_SIGNAL], 0, dir);
-#line 786 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = self->priv->root;
-#line 786 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (g_file_equal (dir, _tmp4_)) {
-#line 787 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_root_deleted (self, dir);
-#line 3125 "DirectoryMonitor.c"
- }
-}
-
-
-void
-directory_monitor_notify_directory_deleted (DirectoryMonitor* self,
- GFile* dir)
-{
-#line 782 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 782 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_deleted (self, dir);
-#line 3138 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_notify_closed (DirectoryMonitor* self)
-{
- GFile* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->root;
-#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = g_file_get_path (_tmp0_);
-#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = g_strdup_printf ("monitoring of %s closed", _tmp2_);
-#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp4_);
-#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp4_);
-#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp2_);
-#line 792 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_CLOSED_SIGNAL], 0);
-#line 3168 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_notify_closed (DirectoryMonitor* self)
-{
-#line 790 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 790 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->notify_closed (self);
-#line 3179 "DirectoryMonitor.c"
-}
-
-
-GFile*
-directory_monitor_get_root (DirectoryMonitor* self)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 795 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), NULL);
-#line 796 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->root;
-#line 796 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 796 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = _tmp1_;
-#line 796 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 3199 "DirectoryMonitor.c"
-}
-
-
-gboolean
-directory_monitor_is_in_root (DirectoryMonitor* self,
- GFile* file)
-{
- gboolean result = FALSE;
- GFile* _tmp0_;
-#line 799 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE);
-#line 799 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 800 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->root;
-#line 800 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = g_file_has_prefix (file, _tmp0_);
-#line 800 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 3219 "DirectoryMonitor.c"
-}
-
-
-gboolean
-directory_monitor_has_started (DirectoryMonitor* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 803 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE);
-#line 804 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->started;
-#line 804 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = _tmp0_;
-#line 804 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 3236 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_start_discovery (DirectoryMonitor* self)
-{
- gboolean _tmp0_;
- GFile* _tmp1_;
-#line 807 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 808 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->started;
-#line 808 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (!_tmp0_, "!started");
-#line 810 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->has_discovery_started = TRUE;
-#line 811 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->started = TRUE;
-#line 813 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_discovery_started (self);
-#line 816 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->outstanding_exploration_dirs = 1;
-#line 817 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->root;
-#line 817 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_async (self, _tmp1_, NULL, TRUE, NULL, NULL);
-#line 3263 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_close (DirectoryMonitor* self)
-{
- GCancellable* _tmp0_;
- GeeHashMap* _tmp11_;
-#line 824 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->cancellable;
-#line 824 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_cancellable_cancel (_tmp0_);
-#line 3276 "DirectoryMonitor.c"
- {
- GeeIterator* _monitor_it = NULL;
- GeeHashMap* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeIterator* _tmp5_;
- GeeIterator* _tmp6_;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->monitors;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp4_);
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _monitor_it = _tmp6_;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 3303 "DirectoryMonitor.c"
- GeeIterator* _tmp7_;
- GFileMonitor* monitor = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- GFileMonitor* _tmp10_;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = _monitor_it;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 3315 "DirectoryMonitor.c"
- }
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = _monitor_it;
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- monitor = (GFileMonitor*) _tmp9_;
-#line 828 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = monitor;
-#line 828 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_cancel_monitor (self, _tmp10_);
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 3329 "DirectoryMonitor.c"
- }
-#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_monitor_it);
-#line 3333 "DirectoryMonitor.c"
- }
-#line 830 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = self->priv->monitors;
-#line 830 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 832 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_closed (self);
-#line 3341 "DirectoryMonitor.c"
-}
-
-
-void
-directory_monitor_close (DirectoryMonitor* self)
-{
-#line 822 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 822 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_GET_CLASS (self)->close (self);
-#line 3352 "DirectoryMonitor.c"
-}
-
-
-static DirectoryMonitorFType
-directory_monitor_get_ftype (GFileInfo* info)
-{
- DirectoryMonitorFType result = 0;
- GFileType file_type = 0;
- GFileType _tmp0_;
-#line 835 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), 0);
-#line 836 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- file_type = g_file_info_get_file_type (info);
-#line 837 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = file_type;
-#line 837 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp0_) {
-#line 837 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_TYPE_REGULAR:
-#line 3372 "DirectoryMonitor.c"
- {
-#line 839 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = DIRECTORY_MONITOR_FTYPE_FILE;
-#line 839 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 3378 "DirectoryMonitor.c"
- }
-#line 837 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_TYPE_DIRECTORY:
-#line 3382 "DirectoryMonitor.c"
- {
-#line 842 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = DIRECTORY_MONITOR_FTYPE_DIRECTORY;
-#line 842 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 3388 "DirectoryMonitor.c"
- }
- default:
- {
- GFileType _tmp1_;
- GEnumValue* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = file_type;
-#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_enum_get_value (g_type_class_ref (g_file_type_get_type ()), _tmp1_);
-#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = g_strdup_printf ("query_ftype: Unknown file type %s", (_tmp2_ != NULL) ? _tmp2_->value_name : NULL);
-#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp4_);
-#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp4_);
-#line 846 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = DIRECTORY_MONITOR_FTYPE_UNSUPPORTED;
-#line 846 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 3412 "DirectoryMonitor.c"
- }
- }
-}
-
-
-static void
-directory_monitor_explore_async_data_free (gpointer _data)
-{
- DirectoryMonitorExploreAsyncData* _data_;
- _data_ = _data;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->self);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_slice_free (DirectoryMonitorExploreAsyncData, _data_);
-#line 3431 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_explore_async_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data)
-{
- DirectoryMonitorExploreAsyncData* _task_data_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_ = g_task_get_task_data (G_TASK (res));
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_task_data_->_callback_ != NULL) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_->_callback_ (source_object, res, user_data);
-#line 3447 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_->_task_complete_ = TRUE;
-#line 3451 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_explore_async (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* dir_info,
- gboolean in_discovery,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_)
-{
- DirectoryMonitorExploreAsyncData* _data_;
- DirectoryMonitor* _tmp0_;
- GFile* _tmp1_;
- GFileInfo* _tmp2_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = g_slice_new0 (DirectoryMonitorExploreAsyncData);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_callback_ = _callback_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_async_result = g_task_new (G_OBJECT (self), NULL, directory_monitor_explore_async_async_ready_wrapper, _user_data_);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_callback_ == NULL) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 3477 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_set_task_data (_data_->_async_result, _data_, directory_monitor_explore_async_data_free);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->self = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _g_object_ref0 (dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir = _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _g_object_ref0 (dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_info);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir_info = _tmp2_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->in_discovery = in_discovery;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_async_co (_data_);
-#line 3501 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_explore_finish (DirectoryMonitor* self,
- GAsyncResult* _res_)
-{
- DirectoryMonitorExploreAsyncData* _data_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 3512 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_explore_async_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_)
-{
- DirectoryMonitorExploreAsyncData* _data_;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = _user_data_;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_source_object_ = source_object;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_res_ = _res_;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_async_co (_data_);
-#line 3532 "DirectoryMonitor.c"
-}
-
-
-static void
-_g_object_unref0_ (gpointer var)
-{
-#line 913 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- (var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
-#line 3541 "DirectoryMonitor.c"
-}
-
-
-static inline void
-_g_list_free__g_object_unref0_ (GList* self)
-{
-#line 913 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
-#line 3550 "DirectoryMonitor.c"
-}
-
-
-static guint
-_file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = file_hash ((GFile*) v);
-#line 935 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 3562 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_explore_async_co (DirectoryMonitorExploreAsyncData* _data_)
-{
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_data_->_state_) {
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 0:
-#line 3573 "DirectoryMonitor.c"
- goto _state_0;
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 1:
-#line 3577 "DirectoryMonitor.c"
- goto _state_1;
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 2:
-#line 3581 "DirectoryMonitor.c"
- goto _state_2;
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 3:
-#line 3585 "DirectoryMonitor.c"
- goto _state_3;
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 4:
-#line 3589 "DirectoryMonitor.c"
- goto _state_4;
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 5:
-#line 3593 "DirectoryMonitor.c"
- goto _state_5;
- default:
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_assert_not_reached ();
-#line 3598 "DirectoryMonitor.c"
- }
- _state_0:
-#line 851 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp0_ = _data_->self->priv->files;
-#line 851 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (directory_monitor_file_info_map_contains (_data_->_tmp0_, _data_->dir, _data_->dir_info)) {
-#line 852 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp1_ = g_file_get_path (_data_->dir);
-#line 852 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp2_ = _data_->_tmp1_;
-#line 852 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:852: Directory loop detected at %s, not explorin" \
-"g", _data_->_tmp2_);
-#line 852 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp2_);
-#line 854 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery);
-#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 3623 "DirectoryMonitor.c"
- }
- }
-#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3630 "DirectoryMonitor.c"
- }
-#line 860 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp3_ = _g_object_ref0 (_data_->dir_info);
-#line 860 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->local_dir_info = _data_->_tmp3_;
-#line 861 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp4_ = _data_->local_dir_info;
-#line 861 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp4_ == NULL) {
-#line 3640 "DirectoryMonitor.c"
- {
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp6_ = _data_->self->priv->cancellable;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 1;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_query_info_async (_data_->dir, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_DIR_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _data_->_tmp6_, directory_monitor_explore_async_ready, _data_);
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3650 "DirectoryMonitor.c"
- _state_1:
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp7_ = g_file_query_info_finish (_data_->dir, _data_->_res_, &_data_->_inner_error_);
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp5_ = _data_->_tmp7_;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
-#line 3658 "DirectoryMonitor.c"
- goto __catch490_g_error;
- }
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp8_ = _data_->_tmp5_;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp5_ = NULL;
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->local_dir_info);
-#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->local_dir_info = _data_->_tmp8_;
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp5_);
-#line 3671 "DirectoryMonitor.c"
- }
- goto __finally490;
- __catch490_g_error:
- {
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->err = _data_->_inner_error_;
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_inner_error_ = NULL;
-#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp9_ = g_file_get_path (_data_->dir);
-#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp10_ = _data_->_tmp9_;
-#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp11_ = _data_->err;
-#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp12_ = _data_->_tmp11_->message;
-#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:866: Unable to retrieve info on %s: %s", _data_->_tmp10_, _data_->_tmp12_);
-#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp10_);
-#line 868 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery);
-#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_error_free0 (_data_->err);
-#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->local_dir_info);
-#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 3706 "DirectoryMonitor.c"
- }
- }
-#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3713 "DirectoryMonitor.c"
- }
- __finally490:
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->local_dir_info);
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_clear_error (&_data_->_inner_error_);
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3728 "DirectoryMonitor.c"
- }
- }
-#line 874 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp13_ = _data_->local_dir_info;
-#line 874 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (g_file_info_get_is_hidden (_data_->_tmp13_)) {
-#line 875 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp14_ = g_file_get_path (_data_->dir);
-#line 875 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp15_ = _data_->_tmp14_;
-#line 875 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:875: Ignoring hidden directory %s", _data_->_tmp15_);
-#line 875 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp15_);
-#line 877 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery);
-#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->local_dir_info);
-#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 3755 "DirectoryMonitor.c"
- }
- }
-#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3762 "DirectoryMonitor.c"
- }
-#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp16_ = _data_->local_dir_info;
-#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp17_ = get_file_info_id (_data_->_tmp16_);
-#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp18_ = _data_->_tmp17_;
-#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp19_ = _data_->_tmp18_ == NULL;
-#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp18_);
-#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp19_) {
-#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp20_ = _data_->local_dir_info;
-#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp21_ = g_file_get_uri (_data_->dir);
-#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp22_ = _data_->_tmp21_;
-#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_info_set_attribute_string (_data_->_tmp20_, G_FILE_ATTRIBUTE_ID_FILE, _data_->_tmp22_);
-#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp22_);
-#line 3786 "DirectoryMonitor.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp23_ = _data_->local_dir_info;
-#line 890 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (g_file_info_get_file_type (_data_->_tmp23_) != G_FILE_TYPE_DIRECTORY) {
-#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp24_ = g_file_get_path (_data_->dir);
-#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp25_ = _data_->_tmp24_;
-#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp26_ = _data_->local_dir_info;
-#line 892 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp27_ = g_enum_get_value (g_type_class_ref (g_file_type_get_type ()), g_file_info_get_file_type (_data_->_tmp26_));
-#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp28_ = g_strdup_printf (_ ("Unable to monitor %s: Not a directory (%s)"), _data_->_tmp25_, (_data_->_tmp27_ != NULL) ? _data_->_tmp27_->value_name : NULL);
-#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp29_ = _data_->_tmp28_;
-#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_discovery_failed (_data_->self, _data_->_tmp29_);
-#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp29_);
-#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp25_);
-#line 894 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery);
-#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->local_dir_info);
-#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 3822 "DirectoryMonitor.c"
- }
- }
-#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3829 "DirectoryMonitor.c"
- }
-#line 903 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir_map = NULL;
-#line 904 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->file_map = NULL;
-#line 3835 "DirectoryMonitor.c"
- {
-#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp30_ = _data_->self->priv->cancellable;
-#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 2;
-#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_enumerate_children_async (_data_->dir, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _data_->_tmp30_, directory_monitor_explore_async_ready, _data_);
-#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3845 "DirectoryMonitor.c"
- _state_2:
-#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp31_ = g_file_enumerate_children_finish (_data_->dir, _data_->_res_, &_data_->_inner_error_);
-#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->enumerator = _data_->_tmp31_;
-#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
-#line 3853 "DirectoryMonitor.c"
- goto __catch491_g_error;
- }
- {
-#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp32_ = TRUE;
-#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_data_->_tmp32_) {
-#line 3863 "DirectoryMonitor.c"
- }
-#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp32_ = FALSE;
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp33_ = _data_->enumerator;
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp34_ = _data_->self->priv->cancellable;
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 3;
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_enumerator_next_files_async (_data_->_tmp33_, 10, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _data_->_tmp34_, directory_monitor_explore_async_ready, _data_);
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 3877 "DirectoryMonitor.c"
- _state_3:
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp35_ = g_file_enumerator_next_files_finish (_data_->_tmp33_, _data_->_res_, &_data_->_inner_error_);
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->infos = _data_->_tmp35_;
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
-#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->enumerator);
-#line 3887 "DirectoryMonitor.c"
- goto __catch491_g_error;
- }
-#line 912 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp36_ = _data_->infos;
-#line 912 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp36_ == NULL) {
-#line 913 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- __g_list_free__g_object_unref0_0 (_data_->infos);
-#line 913 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 3898 "DirectoryMonitor.c"
- }
-#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp37_ = _data_->infos;
-#line 3902 "DirectoryMonitor.c"
- {
-#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->info_collection = _data_->_tmp37_;
-#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- for (_data_->info_it = _data_->info_collection; _data_->info_it != NULL; _data_->info_it = _data_->info_it->next) {
-#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp38_ = _g_object_ref0 ((GFileInfo*) _data_->info_it->data);
-#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->info = _data_->_tmp38_;
-#line 3912 "DirectoryMonitor.c"
- {
-#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp39_ = _data_->info;
-#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp40_ = get_file_info_id (_data_->_tmp39_);
-#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp41_ = _data_->_tmp40_;
-#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp42_ = _data_->_tmp41_ == NULL;
-#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp41_);
-#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp42_) {
-#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp43_ = _data_->info;
-#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp44_ = g_file_get_uri (_data_->dir);
-#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp45_ = _data_->_tmp44_;
-#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_info_set_attribute_string (_data_->_tmp43_, G_FILE_ATTRIBUTE_ID_FILE, _data_->_tmp45_);
-#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp45_);
-#line 3936 "DirectoryMonitor.c"
- }
-#line 921 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp46_ = _data_->info;
-#line 921 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (g_file_info_get_is_hidden (_data_->_tmp46_)) {
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp47_ = _data_->info;
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp48_ = g_file_info_get_name (_data_->_tmp47_);
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp49_ = g_file_get_child (_data_->dir, _data_->_tmp48_);
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp50_ = _data_->_tmp49_;
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp51_ = g_file_get_path (_data_->_tmp50_);
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp52_ = _data_->_tmp51_;
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:922: Skipping hidden file/directory %s", _data_->_tmp52_);
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp52_);
-#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp50_);
-#line 925 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->info);
-#line 925 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 3964 "DirectoryMonitor.c"
- }
-#line 929 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp53_ = _data_->info;
-#line 929 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!directory_monitor_is_file_symlink_supported (_data_->_tmp53_)) {
-#line 930 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->info);
-#line 930 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 3974 "DirectoryMonitor.c"
- }
-#line 932 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp54_ = _data_->info;
-#line 932 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (g_file_info_get_file_type (_data_->_tmp54_)) {
-#line 932 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_TYPE_REGULAR:
-#line 3982 "DirectoryMonitor.c"
- {
-#line 934 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp55_ = _data_->file_map;
-#line 934 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp55_ == NULL) {
-#line 935 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp56_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 935 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_map);
-#line 935 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->file_map = _data_->_tmp56_;
-#line 3994 "DirectoryMonitor.c"
- }
-#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp57_ = _data_->file_map;
-#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp58_ = _data_->info;
-#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp59_ = g_file_info_get_name (_data_->_tmp58_);
-#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp60_ = g_file_get_child (_data_->dir, _data_->_tmp59_);
-#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp61_ = _data_->_tmp60_;
-#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp62_ = _data_->info;
-#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp57_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _data_->_tmp61_, _data_->_tmp62_);
-#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp61_);
-#line 938 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 4014 "DirectoryMonitor.c"
- }
-#line 932 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_TYPE_DIRECTORY:
-#line 4018 "DirectoryMonitor.c"
- {
-#line 941 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp63_ = _data_->dir_map;
-#line 941 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp63_ == NULL) {
-#line 942 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp64_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 942 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_map);
-#line 942 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->dir_map = _data_->_tmp64_;
-#line 4030 "DirectoryMonitor.c"
- }
-#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp65_ = _data_->dir_map;
-#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp66_ = _data_->info;
-#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp67_ = g_file_info_get_name (_data_->_tmp66_);
-#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp68_ = g_file_get_child (_data_->dir, _data_->_tmp67_);
-#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp69_ = _data_->_tmp68_;
-#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp70_ = _data_->info;
-#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp65_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _data_->_tmp69_, _data_->_tmp70_);
-#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp69_);
-#line 945 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 4050 "DirectoryMonitor.c"
- }
- default:
- {
-#line 949 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 4056 "DirectoryMonitor.c"
- }
- }
-#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->info);
-#line 4061 "DirectoryMonitor.c"
- }
- }
- }
-#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- __g_list_free__g_object_unref0_0 (_data_->infos);
-#line 4067 "DirectoryMonitor.c"
- }
- }
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->enumerator);
-#line 4072 "DirectoryMonitor.c"
- }
- goto __finally491;
- __catch491_g_error:
- {
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->err2 = _data_->_inner_error_;
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_inner_error_ = NULL;
-#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp71_ = g_file_get_path (_data_->dir);
-#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp72_ = _data_->_tmp71_;
-#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp73_ = _data_->err2;
-#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp74_ = _data_->_tmp73_->message;
-#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:954: Aborted directory traversal of %s: %s", _data_->_tmp72_, _data_->_tmp74_);
-#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_data_->_tmp72_);
-#line 956 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery);
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_error_free0 (_data_->err2);
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_map);
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_map);
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->local_dir_info);
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 4111 "DirectoryMonitor.c"
- }
- }
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 4118 "DirectoryMonitor.c"
- }
- __finally491:
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_map);
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_map);
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->local_dir_info);
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_clear_error (&_data_->_inner_error_);
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 4137 "DirectoryMonitor.c"
- }
-#line 962 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->in_discovery) {
-#line 963 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp75_ = _data_->local_dir_info;
-#line 963 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_directory_discovered (_data_->self, _data_->dir, _data_->_tmp75_);
-#line 4145 "DirectoryMonitor.c"
- } else {
-#line 965 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp76_ = _data_->local_dir_info;
-#line 965 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_directory_created (_data_->self, _data_->dir, _data_->_tmp76_);
-#line 4151 "DirectoryMonitor.c"
- }
-#line 969 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp77_ = _data_->local_dir_info;
-#line 969 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_add_monitor (_data_->self, _data_->dir, _data_->_tmp77_);
-#line 972 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp78_ = _data_->file_map;
-#line 972 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp78_ != NULL) {
-#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp79_ = _data_->file_map;
-#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 4;
-#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_files (_data_->self, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp79_, GEE_TYPE_MAP, GeeMap), _data_->in_discovery, directory_monitor_explore_async_ready, _data_);
-#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 4169 "DirectoryMonitor.c"
- _state_4:
-#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_files_finish (_data_->self, _data_->_res_);
-#line 4173 "DirectoryMonitor.c"
- }
-#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp81_ = _data_->self->priv->recurse;
-#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp81_) {
-#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp82_ = _data_->dir_map;
-#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp80_ = _data_->_tmp82_ != NULL;
-#line 4183 "DirectoryMonitor.c"
- } else {
-#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp80_ = FALSE;
-#line 4187 "DirectoryMonitor.c"
- }
-#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp80_) {
-#line 4191 "DirectoryMonitor.c"
- {
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp83_ = _data_->dir_map;
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp84_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp83_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp85_ = _data_->_tmp84_;
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp86_ = _data_->_tmp85_;
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp87_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp86_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp88_ = _data_->_tmp87_;
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp86_);
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_subdir_it = _data_->_tmp88_;
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp89_ = _data_->_subdir_it;
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_iterator_next (_data_->_tmp89_)) {
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 4217 "DirectoryMonitor.c"
- }
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp90_ = _data_->_subdir_it;
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp91_ = gee_iterator_get (_data_->_tmp90_);
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->subdir = (GFile*) _data_->_tmp91_;
-#line 978 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp92_ = _data_->self->priv->outstanding_exploration_dirs;
-#line 978 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->self->priv->outstanding_exploration_dirs = _data_->_tmp92_ + 1;
-#line 978 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp93_ = _data_->self->priv->outstanding_exploration_dirs;
-#line 978 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_tmp93_ > DIRECTORY_MONITOR_MAX_EXPLORATION_DIRS) {
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp94_ = _data_->subdir;
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp95_ = _data_->dir_map;
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp96_ = _data_->subdir;
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp97_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp95_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _data_->_tmp96_);
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp98_ = (GFileInfo*) _data_->_tmp97_;
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 5;
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_async (_data_->self, _data_->_tmp94_, _data_->_tmp98_, _data_->in_discovery, directory_monitor_explore_async_ready, _data_);
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 4249 "DirectoryMonitor.c"
- _state_5:
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_finish (_data_->self, _data_->_res_);
-#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp98_);
-#line 4255 "DirectoryMonitor.c"
- } else {
-#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp99_ = _data_->subdir;
-#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp100_ = _data_->dir_map;
-#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp101_ = _data_->subdir;
-#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp102_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp100_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _data_->_tmp101_);
-#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp103_ = (GFileInfo*) _data_->_tmp102_;
-#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_async (_data_->self, _data_->_tmp99_, _data_->_tmp103_, _data_->in_discovery, NULL, NULL);
-#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp103_);
-#line 4271 "DirectoryMonitor.c"
- }
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->subdir);
-#line 4275 "DirectoryMonitor.c"
- }
-#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_subdir_it);
-#line 4279 "DirectoryMonitor.c"
- }
- }
-#line 985 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery);
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->file_map);
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->dir_map);
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->local_dir_info);
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 4298 "DirectoryMonitor.c"
- }
- }
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 4305 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_notify_directory_files_data_free (gpointer _data)
-{
- DirectoryMonitorNotifyDirectoryFilesData* _data_;
- _data_ = _data;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->map);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->self);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_slice_free (DirectoryMonitorNotifyDirectoryFilesData, _data_);
-#line 4320 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_notify_directory_files_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data)
-{
- DirectoryMonitorNotifyDirectoryFilesData* _task_data_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_ = g_task_get_task_data (G_TASK (res));
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_task_data_->_callback_ != NULL) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_->_callback_ (source_object, res, user_data);
-#line 4336 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _task_data_->_task_complete_ = TRUE;
-#line 4340 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_notify_directory_files (DirectoryMonitor* self,
- GeeMap* map,
- gboolean in_discovery,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_)
-{
- DirectoryMonitorNotifyDirectoryFilesData* _data_;
- DirectoryMonitor* _tmp0_;
- GeeMap* _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = g_slice_new0 (DirectoryMonitorNotifyDirectoryFilesData);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_callback_ = _callback_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_async_result = g_task_new (G_OBJECT (self), NULL, directory_monitor_notify_directory_files_async_ready_wrapper, _user_data_);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_callback_ == NULL) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 4364 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_set_task_data (_data_->_async_result, _data_, directory_monitor_notify_directory_files_data_free);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->self = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _g_object_ref0 (map);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->map);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->map = _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->in_discovery = in_discovery;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_files_co (_data_);
-#line 4382 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_notify_directory_files_finish (DirectoryMonitor* self,
- GAsyncResult* _res_)
-{
- DirectoryMonitorNotifyDirectoryFilesData* _data_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 4393 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-_directory_monitor_notify_directory_files_co_gsource_func (gpointer self)
-{
- gboolean result;
- result = directory_monitor_notify_directory_files_co (self);
-#line 996 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4404 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_notify_directory_files_co (DirectoryMonitorNotifyDirectoryFilesData* _data_)
-{
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_data_->_state_) {
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 0:
-#line 4415 "DirectoryMonitor.c"
- goto _state_0;
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case 1:
-#line 4419 "DirectoryMonitor.c"
- goto _state_1;
- default:
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_assert_not_reached ();
-#line 4424 "DirectoryMonitor.c"
- }
- _state_0:
-#line 989 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp0_ = gee_map_map_iterator (_data_->map);
-#line 989 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->iter = _data_->_tmp0_;
-#line 990 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 990 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp1_ = _data_->iter;
-#line 990 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_map_iterator_next (_data_->_tmp1_)) {
-#line 990 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 4439 "DirectoryMonitor.c"
- }
-#line 991 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->in_discovery) {
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp2_ = _data_->iter;
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp3_ = gee_map_iterator_get_key (_data_->_tmp2_);
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp4_ = (GFile*) _data_->_tmp3_;
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp5_ = _data_->iter;
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp6_ = gee_map_iterator_get_value (_data_->_tmp5_);
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp7_ = (GFileInfo*) _data_->_tmp6_;
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_file_discovered (_data_->self, _data_->_tmp4_, _data_->_tmp7_);
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp7_);
-#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp4_);
-#line 4461 "DirectoryMonitor.c"
- } else {
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp8_ = _data_->iter;
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp9_ = gee_map_iterator_get_key (_data_->_tmp8_);
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp10_ = (GFile*) _data_->_tmp9_;
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp11_ = _data_->iter;
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp12_ = gee_map_iterator_get_value (_data_->_tmp11_);
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_tmp13_ = (GFileInfo*) _data_->_tmp12_;
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_file_created (_data_->self, _data_->_tmp10_, _data_->_tmp13_);
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp13_);
-#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->_tmp10_);
-#line 4481 "DirectoryMonitor.c"
- }
-#line 996 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_idle_add_full (DIRECTORY_MONITOR_DEFAULT_PRIORITY, _directory_monitor_notify_directory_files_co_gsource_func, _data_, NULL);
-#line 997 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _data_->_state_ = 1;
-#line 997 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 4489 "DirectoryMonitor.c"
- _state_1:
- ;
- }
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_data_->iter);
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 4503 "DirectoryMonitor.c"
- }
- }
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return FALSE;
-#line 4510 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_explore_directory_completed (DirectoryMonitor* self,
- gboolean in_discovery)
-{
- gint _tmp0_;
- gint _tmp1_;
- gboolean _tmp2_ = FALSE;
-#line 1003 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 1004 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->outstanding_exploration_dirs;
-#line 1004 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp0_ > 0, "outstanding_exploration_dirs > 0");
-#line 1005 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->outstanding_exploration_dirs;
-#line 1005 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->outstanding_exploration_dirs = _tmp1_ - 1;
-#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (in_discovery) {
-#line 4533 "DirectoryMonitor.c"
- gint _tmp3_;
-#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = self->priv->outstanding_exploration_dirs;
-#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _tmp3_ == 0;
-#line 4539 "DirectoryMonitor.c"
- } else {
-#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = FALSE;
-#line 4543 "DirectoryMonitor.c"
- }
-#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp2_) {
-#line 1008 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_discovery_completed (self);
-#line 4549 "DirectoryMonitor.c"
- }
-}
-
-
-static void
-_directory_monitor_on_monitor_notification_g_file_monitor_changed (GFileMonitor* _sender,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event_type,
- gpointer self)
-{
-#line 1036 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_on_monitor_notification ((DirectoryMonitor*) self, file, other_file, event_type);
-#line 4563 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_add_monitor (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- gchar* id = NULL;
- DirectoryMonitorFileInfoMap* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- GeeHashMap* _tmp4_;
- const gchar* _tmp5_;
- GFileMonitor* monitor = NULL;
- GeeHashMap* _tmp14_;
- const gchar* _tmp15_;
- GFileMonitor* _tmp16_;
- GFileMonitor* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GError * _inner_error_ = NULL;
-#line 1014 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE);
-#line 1014 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (dir), FALSE);
-#line 1014 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 1015 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->monitoring;
-#line 1015 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp0_) {
-#line 1016 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1016 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4604 "DirectoryMonitor.c"
- }
-#line 1018 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->files;
-#line 1018 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = directory_monitor_file_info_map_get_id (_tmp1_, dir, info);
-#line 1018 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- id = _tmp2_;
-#line 1019 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = id;
-#line 1019 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp3_ == NULL) {
-#line 1020 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1020 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 1020 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4622 "DirectoryMonitor.c"
- }
-#line 1023 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = self->priv->monitors;
-#line 1023 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = id;
-#line 1023 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_)) {
-#line 1024 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1024 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 1024 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4636 "DirectoryMonitor.c"
- }
-#line 1026 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- monitor = NULL;
-#line 4640 "DirectoryMonitor.c"
- {
- GFileMonitor* _tmp6_ = NULL;
- GFileMonitor* _tmp7_;
- GFileMonitor* _tmp8_;
-#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = g_file_monitor_directory (dir, DIRECTORY_MONITOR_FILE_MONITOR_FLAGS, NULL, &_inner_error_);
-#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _tmp7_;
-#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4651 "DirectoryMonitor.c"
- goto __catch492_g_error;
- }
-#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = _tmp6_;
-#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = NULL;
-#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- monitor = _tmp8_;
-#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp6_);
-#line 4664 "DirectoryMonitor.c"
- }
- goto __finally492;
- __catch492_g_error:
- {
- GError* err = NULL;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GError* _tmp11_;
- const gchar* _tmp12_;
-#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- err = _inner_error_;
-#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _inner_error_ = NULL;
-#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = g_file_get_path (dir);
-#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = _tmp9_;
-#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = err;
-#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = _tmp11_->message;
-#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:1030: Unable to monitor %s: %s", _tmp10_, _tmp12_);
-#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp10_);
-#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_error_free0 (err);
-#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4700 "DirectoryMonitor.c"
- }
- __finally492:
-#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4705 "DirectoryMonitor.c"
- gboolean _tmp13_ = FALSE;
-#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.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/DirectoryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return _tmp13_;
-#line 4717 "DirectoryMonitor.c"
- }
-#line 1035 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = self->priv->monitors;
-#line 1035 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = id;
-#line 1035 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = monitor;
-#line 1035 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_, _tmp16_);
-#line 1036 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = monitor;
-#line 1036 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_connect_object (_tmp17_, "changed", (GCallback) _directory_monitor_on_monitor_notification_g_file_monitor_changed, self, 0);
-#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = g_file_get_path (dir);
-#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = _tmp18_;
-#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp20_ = g_strdup_printf ("Added monitor for %s", _tmp19_);
-#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp21_ = _tmp20_;
-#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp21_);
-#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp21_);
-#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp19_);
-#line 1040 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = TRUE;
-#line 1040 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 1040 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 1040 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4753 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_remove_monitor (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- gchar* id = NULL;
- DirectoryMonitorFileInfoMap* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- GFileMonitor* monitor = NULL;
- GeeHashMap* _tmp4_;
- const gchar* _tmp5_;
- gpointer _tmp6_;
- GFileMonitor* _tmp7_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp8_;
- const gchar* _tmp9_;
- gboolean _tmp10_;
- gboolean _tmp11_;
- GFileMonitor* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 1044 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE);
-#line 1044 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (dir), FALSE);
-#line 1044 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 1045 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->monitoring;
-#line 1045 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp0_) {
-#line 1046 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1046 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4797 "DirectoryMonitor.c"
- }
-#line 1048 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->files;
-#line 1048 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = directory_monitor_file_info_map_get_id (_tmp1_, dir, info);
-#line 1048 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- id = _tmp2_;
-#line 1049 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = id;
-#line 1049 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp3_ == NULL) {
-#line 1050 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1050 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 1050 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4815 "DirectoryMonitor.c"
- }
-#line 1052 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = self->priv->monitors;
-#line 1052 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = id;
-#line 1052 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
-#line 1052 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- monitor = (GFileMonitor*) _tmp6_;
-#line 1053 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = monitor;
-#line 1053 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp7_ == NULL) {
-#line 1054 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1054 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 1054 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 1054 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4837 "DirectoryMonitor.c"
- }
-#line 1056 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = self->priv->monitors;
-#line 1056 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = id;
-#line 1056 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL);
-#line 1056 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- removed = _tmp10_;
-#line 1057 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = removed;
-#line 1057 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp11_, "removed");
-#line 1059 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = monitor;
-#line 1059 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_cancel_monitor (self, _tmp12_);
-#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = g_file_get_path (dir);
-#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = _tmp13_;
-#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = g_strdup_printf ("Removed monitor for %s", _tmp14_);
-#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = _tmp15_;
-#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp16_);
-#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp16_);
-#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp14_);
-#line 1063 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = TRUE;
-#line 1063 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 1063 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 1063 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4877 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_cancel_monitor (DirectoryMonitor* self,
- GFileMonitor* monitor)
-{
- guint _tmp0_;
-#line 1066 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 1066 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_MONITOR (monitor));
-#line 1067 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_parse_name ("changed", g_file_monitor_get_type (), &_tmp0_, NULL, FALSE);
-#line 1067 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_handlers_disconnect_matched (monitor, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _directory_monitor_on_monitor_notification_g_file_monitor_changed, self);
-#line 1068 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_monitor_cancel (monitor);
-#line 4896 "DirectoryMonitor.c"
-}
-
-
-static void
-_directory_monitor_query_info_queue_element_on_completed_gasync_ready_callback (GObject* source_object,
- GAsyncResult* res,
- gpointer self)
-{
-#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_query_info_queue_element_on_completed ((DirectoryMonitorQueryInfoQueueElement*) self, source_object, res);
-#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_query_info_queue_element_unref (self);
-#line 4909 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-_directory_monitor_check_for_expired_delete_events_gsource_func (gpointer self)
-{
- gboolean result;
- result = directory_monitor_check_for_expired_delete_events ((DirectoryMonitor*) self);
-#line 1097 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 4920 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_on_monitor_notification (DirectoryMonitor* self,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event)
-{
- gchar* _tmp0_ = NULL;
- GEnumValue* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- DirectoryMonitorQueryInfoQueueElement* query_info = NULL;
- DirectoryMonitorQueryInfoQueueElement* _tmp8_;
- GeeQueue* _tmp9_;
- DirectoryMonitorQueryInfoQueueElement* _tmp10_;
-#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail ((other_file == NULL) || G_IS_FILE (other_file));
-#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (other_file != NULL) {
-#line 4948 "DirectoryMonitor.c"
- gchar* _tmp1_;
-#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = g_file_get_path (other_file);
-#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp0_);
-#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _tmp1_;
-#line 4956 "DirectoryMonitor.c"
- } else {
- gchar* _tmp2_;
-#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup ("(none)");
-#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp0_);
-#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _tmp2_;
-#line 4965 "DirectoryMonitor.c"
- }
-#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), event);
-#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = g_file_get_path (file);
-#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = g_strdup_printf ("NOTIFY %s: file=%s other_file=%s", (_tmp3_ != NULL) ? _tmp3_->value_name : NULL, _tmp5_, _tmp0_);
-#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = _tmp6_;
-#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp7_);
-#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp7_);
-#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp5_);
-#line 1082 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = directory_monitor_query_info_queue_element_new (self, file, other_file, event);
-#line 1082 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- query_info = _tmp8_;
-#line 1083 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = self->priv->query_info_queue;
-#line 1083 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = query_info;
-#line 1083 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_queue_offer (_tmp9_, _tmp10_);
-#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (event) {
-#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_CREATED:
-#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
-#line 4999 "DirectoryMonitor.c"
- {
- GCancellable* _tmp11_;
- DirectoryMonitorQueryInfoQueueElement* _tmp12_;
-#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = self->priv->cancellable;
-#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = query_info;
-#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_query_info_async (file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _tmp11_, _directory_monitor_query_info_queue_element_on_completed_gasync_ready_callback, directory_monitor_query_info_queue_element_ref (_tmp12_));
-#line 1090 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5011 "DirectoryMonitor.c"
- }
-#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_DELETED:
-#line 5015 "DirectoryMonitor.c"
- {
- guint _tmp13_;
-#line 1096 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = self->priv->delete_timer_id;
-#line 1096 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp13_ == ((guint) 0)) {
-#line 1097 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->delete_timer_id = g_timeout_add_full (G_PRIORITY_DEFAULT, DIRECTORY_MONITOR_DELETED_EXPIRATION_MSEC / 2, _directory_monitor_check_for_expired_delete_events_gsource_func, g_object_ref (self), g_object_unref);
-#line 5024 "DirectoryMonitor.c"
- }
-#line 1098 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5028 "DirectoryMonitor.c"
- }
-#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_MOVED:
-#line 5032 "DirectoryMonitor.c"
- {
-#line 1103 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (other_file != NULL) {
-#line 5036 "DirectoryMonitor.c"
- GCancellable* _tmp14_;
- DirectoryMonitorQueryInfoQueueElement* _tmp15_;
-#line 1104 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = self->priv->cancellable;
-#line 1104 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = query_info;
-#line 1104 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_query_info_async (other_file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _tmp14_, _directory_monitor_query_info_queue_element_on_completed_gasync_ready_callback, directory_monitor_query_info_queue_element_ref (_tmp15_));
-#line 5045 "DirectoryMonitor.c"
- } else {
- GeeQueue* _tmp16_;
- DirectoryMonitorQueryInfoQueueElement* _tmp17_;
-#line 1107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:1107: Unable to process MOVED event: no other_fi" \
-"le");
-#line 1108 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = self->priv->query_info_queue;
-#line 1108 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = query_info;
-#line 1108 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_);
-#line 5057 "DirectoryMonitor.c"
- }
-#line 1110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5061 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorQueryInfoQueueElement* _tmp18_;
- DirectoryMonitorQueryInfoQueueElement* _tmp19_;
-#line 1114 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = query_info;
-#line 1114 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_->completed = TRUE;
-#line 1115 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = query_info;
-#line 1115 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_process_query_queue (self, _tmp19_);
-#line 1116 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5077 "DirectoryMonitor.c"
- }
- }
-#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (query_info);
-#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp0_);
-#line 5084 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_process_query_queue (DirectoryMonitor* self,
- DirectoryMonitorQueryInfoQueueElement* query_info)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
-#line 1120 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 1120 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail ((query_info == NULL) || DIRECTORY_MONITOR_IS_QUERY_INFO_QUEUE_ELEMENT (query_info));
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (query_info != NULL) {
-#line 5100 "DirectoryMonitor.c"
- GFileInfo* _tmp2_;
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = query_info->info;
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp2_ != NULL;
-#line 5106 "DirectoryMonitor.c"
- } else {
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = FALSE;
-#line 5110 "DirectoryMonitor.c"
- }
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp1_) {
-#line 5114 "DirectoryMonitor.c"
- GFileMonitorEvent _tmp3_;
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = query_info->event;
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _tmp3_ == G_FILE_MONITOR_EVENT_CREATED;
-#line 5120 "DirectoryMonitor.c"
- } else {
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = FALSE;
-#line 5124 "DirectoryMonitor.c"
- }
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp0_) {
-#line 5128 "DirectoryMonitor.c"
- GFile* match = NULL;
- DirectoryMonitorFileInfoMap* _tmp4_;
- GFileInfo* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
-#line 1126 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = self->priv->files;
-#line 1126 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = query_info->info;
-#line 1126 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = directory_monitor_file_info_map_find_match (_tmp4_, _tmp5_);
-#line 1126 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- match = _tmp6_;
-#line 1127 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = match;
-#line 1127 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp7_ != NULL) {
-#line 5146 "DirectoryMonitor.c"
- gboolean matched = FALSE;
- gboolean _tmp39_;
-#line 1128 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- matched = FALSE;
-#line 5151 "DirectoryMonitor.c"
- {
- GeeIterator* _enqueued_it = NULL;
- GeeQueue* _tmp8_;
- GeeIterator* _tmp9_;
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = self->priv->query_info_queue;
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _enqueued_it = _tmp9_;
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 5164 "DirectoryMonitor.c"
- GeeIterator* _tmp10_;
- DirectoryMonitorQueryInfoQueueElement* enqueued = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- gboolean _tmp13_ = FALSE;
- gboolean _tmp14_ = FALSE;
- DirectoryMonitorQueryInfoQueueElement* _tmp15_;
- GFileMonitorEvent _tmp16_;
- GFile* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- DirectoryMonitorQueryInfoQueueElement* _tmp25_;
- GFile* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- DirectoryMonitorQueryInfoQueueElement* _tmp31_;
- DirectoryMonitorQueryInfoQueueElement* _tmp32_;
- GFile* _tmp33_;
- GFile* _tmp34_;
- DirectoryMonitorQueryInfoQueueElement* _tmp35_;
- GFileInfo* _tmp36_;
- GFileInfo* _tmp37_;
- DirectoryMonitorQueryInfoQueueElement* _tmp38_;
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = _enqueued_it;
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5196 "DirectoryMonitor.c"
- }
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = _enqueued_it;
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- enqueued = (DirectoryMonitorQueryInfoQueueElement*) _tmp12_;
-#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = enqueued;
-#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = _tmp15_->event;
-#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp16_ != G_FILE_MONITOR_EVENT_DELETED) {
-#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = TRUE;
-#line 5212 "DirectoryMonitor.c"
- } else {
- DirectoryMonitorQueryInfoQueueElement* _tmp17_;
- gboolean _tmp18_;
-#line 1131 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = enqueued;
-#line 1131 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = _tmp17_->completed;
-#line 1131 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = _tmp18_;
-#line 5222 "DirectoryMonitor.c"
- }
-#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp14_) {
-#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = TRUE;
-#line 5228 "DirectoryMonitor.c"
- } else {
- GFile* _tmp19_;
- DirectoryMonitorQueryInfoQueueElement* _tmp20_;
- GFile* _tmp21_;
-#line 1132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = match;
-#line 1132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp20_ = enqueued;
-#line 1132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp21_ = _tmp20_->file;
-#line 1132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = !g_file_equal (_tmp19_, _tmp21_);
-#line 5241 "DirectoryMonitor.c"
- }
-#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp13_) {
-#line 1133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (enqueued);
-#line 1133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 5249 "DirectoryMonitor.c"
- }
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp22_ = query_info->file;
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp23_ = g_file_get_path (_tmp22_);
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp24_ = _tmp23_;
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp25_ = enqueued;
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp26_ = _tmp25_->file;
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp27_ = g_file_get_path (_tmp26_);
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp28_ = _tmp27_;
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp29_ = g_strdup_printf ("Matching CREATED %s to DELETED %s for MOVED", _tmp24_, _tmp28_);
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp30_ = _tmp29_;
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp30_);
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp30_);
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp28_);
-#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp24_);
-#line 1139 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp31_ = enqueued;
-#line 1139 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp31_->event = G_FILE_MONITOR_EVENT_MOVED;
-#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp32_ = enqueued;
-#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp33_ = query_info->file;
-#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp34_ = _g_object_ref0 (_tmp33_);
-#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp32_->other_file);
-#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp32_->other_file = _tmp34_;
-#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp35_ = enqueued;
-#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp36_ = query_info->info;
-#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp37_ = _g_object_ref0 (_tmp36_);
-#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp35_->info);
-#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp35_->info = _tmp37_;
-#line 1142 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp38_ = enqueued;
-#line 1142 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp38_->completed = TRUE;
-#line 1144 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- matched = TRUE;
-#line 1146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (enqueued);
-#line 1146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5311 "DirectoryMonitor.c"
- }
-#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_enqueued_it);
-#line 5315 "DirectoryMonitor.c"
- }
-#line 1149 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp39_ = matched;
-#line 1149 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp39_) {
-#line 5321 "DirectoryMonitor.c"
- GeeQueue* _tmp40_;
-#line 1150 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp40_ = self->priv->query_info_queue;
-#line 1150 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_COLLECTION, GeeCollection), query_info);
-#line 5327 "DirectoryMonitor.c"
- }
- }
-#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (match);
-#line 5332 "DirectoryMonitor.c"
- }
- {
- gboolean _tmp41_ = FALSE;
-#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp41_ = TRUE;
-#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 5340 "DirectoryMonitor.c"
- DirectoryMonitorQueryInfoQueueElement* next = NULL;
- GeeQueue* _tmp42_;
- gpointer _tmp43_;
- gboolean _tmp44_ = FALSE;
- DirectoryMonitorQueryInfoQueueElement* _tmp45_;
- DirectoryMonitorQueryInfoQueueElement* n = NULL;
- GeeQueue* _tmp48_;
- gpointer _tmp49_;
- DirectoryMonitorQueryInfoQueueElement* _tmp50_;
- DirectoryMonitorQueryInfoQueueElement* _tmp51_;
- DirectoryMonitorQueryInfoQueueElement* _tmp52_;
- guint _tmp53_;
- DirectoryMonitorQueryInfoQueueElement* _tmp54_;
- GFileMonitorEvent _tmp55_;
- GEnumValue* _tmp56_;
- DirectoryMonitorQueryInfoQueueElement* _tmp57_;
- GFile* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- DirectoryMonitorQueryInfoQueueElement* _tmp63_;
- GError* _tmp64_;
- gboolean _tmp77_ = FALSE;
- DirectoryMonitorQueryInfoQueueElement* _tmp78_;
- GFileInfo* _tmp79_;
- gboolean _tmp93_ = FALSE;
- DirectoryMonitorQueryInfoQueueElement* _tmp94_;
- GFileInfo* _tmp95_;
- DirectoryMonitorQueryInfoQueueElement* _tmp107_;
- GFile* _tmp108_;
- DirectoryMonitorQueryInfoQueueElement* _tmp109_;
- GFile* _tmp110_;
- DirectoryMonitorQueryInfoQueueElement* _tmp111_;
- GFileInfo* _tmp112_;
- DirectoryMonitorQueryInfoQueueElement* _tmp113_;
- GFileMonitorEvent _tmp114_;
-#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp41_) {
-#line 5380 "DirectoryMonitor.c"
- }
-#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp41_ = FALSE;
-#line 1157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp42_ = self->priv->query_info_queue;
-#line 1157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp43_ = gee_queue_peek (_tmp42_);
-#line 1157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- next = (DirectoryMonitorQueryInfoQueueElement*) _tmp43_;
-#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp45_ = next;
-#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp45_ == NULL) {
-#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp44_ = TRUE;
-#line 5396 "DirectoryMonitor.c"
- } else {
- DirectoryMonitorQueryInfoQueueElement* _tmp46_;
- gboolean _tmp47_;
-#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp46_ = next;
-#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp47_ = _tmp46_->completed;
-#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp44_ = !_tmp47_;
-#line 5406 "DirectoryMonitor.c"
- }
-#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp44_) {
-#line 1159 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (next);
-#line 1159 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5414 "DirectoryMonitor.c"
- }
-#line 1162 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp48_ = self->priv->query_info_queue;
-#line 1162 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp49_ = gee_queue_poll (_tmp48_);
-#line 1162 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- n = (DirectoryMonitorQueryInfoQueueElement*) _tmp49_;
-#line 1163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp50_ = next;
-#line 1163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp51_ = n;
-#line 1163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp50_ == _tmp51_, "next == n");
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp52_ = next;
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp53_ = _tmp52_->position;
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp54_ = next;
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp55_ = _tmp54_->event;
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp56_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp55_);
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp57_ = next;
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp58_ = _tmp57_->file;
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp59_ = g_file_get_path (_tmp58_);
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp60_ = _tmp59_;
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp61_ = g_strdup_printf ("Completed info query %u for %s on %s", _tmp53_, (_tmp56_ != NULL) ? _tmp56_->value_name : NULL, _tmp60_);
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp62_ = _tmp61_;
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp62_);
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp62_);
-#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp60_);
-#line 1168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp63_ = next;
-#line 1168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp64_ = _tmp63_->err;
-#line 1168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp64_ != NULL) {
-#line 5462 "DirectoryMonitor.c"
- DirectoryMonitorQueryInfoQueueElement* _tmp65_;
- GFile* _tmp66_;
- gchar* _tmp67_;
- gchar* _tmp68_;
- DirectoryMonitorQueryInfoQueueElement* _tmp69_;
- GFileMonitorEvent _tmp70_;
- GEnumValue* _tmp71_;
- DirectoryMonitorQueryInfoQueueElement* _tmp72_;
- GError* _tmp73_;
- const gchar* _tmp74_;
- gchar* _tmp75_;
- gchar* _tmp76_;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp65_ = next;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp66_ = _tmp65_->file;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp67_ = g_file_get_path (_tmp66_);
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp68_ = _tmp67_;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp69_ = next;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp70_ = _tmp69_->event;
-#line 1170 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp71_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp70_);
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp72_ = next;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp73_ = _tmp72_->err;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp74_ = _tmp73_->message;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp75_ = g_strdup_printf ("Unable to retrieve file information for %s, dropping %s: %s", _tmp68_, (_tmp71_ != NULL) ? _tmp71_->value_name : NULL, _tmp74_);
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp76_ = _tmp75_;
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp76_);
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp76_);
-#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp68_);
-#line 1172 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (n);
-#line 1172 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (next);
-#line 1172 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 5511 "DirectoryMonitor.c"
- }
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp78_ = next;
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp79_ = _tmp78_->info;
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp79_ != NULL) {
-#line 5519 "DirectoryMonitor.c"
- DirectoryMonitorQueryInfoQueueElement* _tmp80_;
- GFileInfo* _tmp81_;
- gchar* _tmp82_;
- gchar* _tmp83_;
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp80_ = next;
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp81_ = _tmp80_->info;
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp82_ = get_file_info_id (_tmp81_);
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp83_ = _tmp82_;
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp77_ = _tmp83_ == NULL;
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp83_);
-#line 5536 "DirectoryMonitor.c"
- } else {
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp77_ = FALSE;
-#line 5540 "DirectoryMonitor.c"
- }
-#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp77_) {
-#line 5544 "DirectoryMonitor.c"
- DirectoryMonitorQueryInfoQueueElement* _tmp84_;
- GFile* _tmp85_;
- gchar* _tmp86_;
- gchar* _tmp87_;
- DirectoryMonitorQueryInfoQueueElement* _tmp88_;
- GFileMonitorEvent _tmp89_;
- GEnumValue* _tmp90_;
- gchar* _tmp91_;
- gchar* _tmp92_;
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp84_ = next;
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp85_ = _tmp84_->file;
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp86_ = g_file_get_path (_tmp85_);
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp87_ = _tmp86_;
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp88_ = next;
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp89_ = _tmp88_->event;
-#line 1178 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp90_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp89_);
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp91_ = g_strdup_printf ("Unable to retrieve file ID for %s, dropping %s", _tmp87_, (_tmp90_ != NULL) ? _tmp90_->value_name : NULL);
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp92_ = _tmp91_;
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp92_);
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp92_);
-#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp87_);
-#line 1180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (n);
-#line 1180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (next);
-#line 1180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 5584 "DirectoryMonitor.c"
- }
-#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp94_ = next;
-#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp95_ = _tmp94_->info;
-#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp95_ != NULL) {
-#line 5592 "DirectoryMonitor.c"
- DirectoryMonitorQueryInfoQueueElement* _tmp96_;
- GFileInfo* _tmp97_;
-#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp96_ = next;
-#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp97_ = _tmp96_->info;
-#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp93_ = !directory_monitor_is_file_symlink_supported (_tmp97_);
-#line 5601 "DirectoryMonitor.c"
- } else {
-#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp93_ = FALSE;
-#line 5605 "DirectoryMonitor.c"
- }
-#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp93_) {
-#line 5609 "DirectoryMonitor.c"
- DirectoryMonitorQueryInfoQueueElement* _tmp98_;
- GFile* _tmp99_;
- gchar* _tmp100_;
- gchar* _tmp101_;
- DirectoryMonitorQueryInfoQueueElement* _tmp102_;
- GFileMonitorEvent _tmp103_;
- GEnumValue* _tmp104_;
- gchar* _tmp105_;
- gchar* _tmp106_;
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp98_ = next;
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp99_ = _tmp98_->file;
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp100_ = g_file_get_path (_tmp99_);
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp101_ = _tmp100_;
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp102_ = next;
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp103_ = _tmp102_->event;
-#line 1186 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp104_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp103_);
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp105_ = g_strdup_printf ("No symlink support for %s, dropping %s", _tmp101_, (_tmp104_ != NULL) ? _tmp104_->value_name : NULL);
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp106_ = _tmp105_;
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp106_);
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp106_);
-#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp101_);
-#line 1188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (n);
-#line 1188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (next);
-#line 1188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 5649 "DirectoryMonitor.c"
- }
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp107_ = next;
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp108_ = _tmp107_->file;
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp109_ = next;
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp110_ = _tmp109_->other_file;
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp111_ = next;
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp112_ = _tmp111_->info;
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp113_ = next;
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp114_ = _tmp113_->event;
-#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_on_monitor_notification_ready (self, _tmp108_, _tmp110_, _tmp112_, _tmp114_);
-#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (n);
-#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (next);
-#line 5673 "DirectoryMonitor.c"
- }
- }
-}
-
-
-static void
-directory_monitor_on_monitor_notification_ready (DirectoryMonitor* self,
- GFile* file,
- GFile* other_file,
- GFileInfo* info,
- GFileMonitorEvent event)
-{
- gchar* _tmp0_ = NULL;
- GEnumValue* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (IS_DIRECTORY_MONITOR (self));
-#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail ((other_file == NULL) || G_IS_FILE (other_file));
-#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info));
-#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (other_file != NULL) {
-#line 5702 "DirectoryMonitor.c"
- gchar* _tmp1_;
-#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = g_file_get_path (other_file);
-#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp0_);
-#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _tmp1_;
-#line 5710 "DirectoryMonitor.c"
- } else {
- gchar* _tmp2_;
-#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_strdup ("(null)");
-#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp0_);
-#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _tmp2_;
-#line 5719 "DirectoryMonitor.c"
- }
-#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), event);
-#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = g_file_get_path (file);
-#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = g_strdup_printf ("READY %s: file=%s other_file=%s", (_tmp3_ != NULL) ? _tmp3_->value_name : NULL, _tmp5_, _tmp0_);
-#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = _tmp6_;
-#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp7_);
-#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp7_);
-#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp5_);
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (event) {
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_CREATED:
-#line 5741 "DirectoryMonitor.c"
- {
- DirectoryMonitorFType ftype = 0;
- DirectoryMonitorFType _tmp8_;
-#line 1204 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (info != NULL, "info != null");
-#line 1206 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ftype = directory_monitor_get_ftype (info);
-#line 1207 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = ftype;
-#line 1207 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp8_) {
-#line 1207 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_FILE:
-#line 5755 "DirectoryMonitor.c"
- {
-#line 1209 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_file_created (self, file, info);
-#line 1210 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5761 "DirectoryMonitor.c"
- }
-#line 1207 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_DIRECTORY:
-#line 5765 "DirectoryMonitor.c"
- {
- gint _tmp9_;
-#line 1217 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = self->priv->outstanding_exploration_dirs;
-#line 1217 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->outstanding_exploration_dirs = _tmp9_ + 1;
-#line 1218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_explore_async (self, file, info, FALSE, NULL, NULL);
-#line 1219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5776 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorFType _tmp10_;
-#line 1222 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = ftype;
-#line 1222 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp10_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED");
-#line 1223 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5787 "DirectoryMonitor.c"
- }
- }
-#line 1225 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5792 "DirectoryMonitor.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_CHANGED:
-#line 5796 "DirectoryMonitor.c"
- {
- GFileInfo* local_info = NULL;
- GFileInfo* _tmp11_;
- GFileInfo* _tmp12_;
- DirectoryMonitorFType ftype = 0;
- GFileInfo* _tmp17_;
- DirectoryMonitorFType _tmp18_;
-#line 1229 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (info == NULL, "info == null");
-#line 1231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = directory_monitor_get_file_info (self, file);
-#line 1231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- local_info = _tmp11_;
-#line 1232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = local_info;
-#line 1232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp12_ == NULL) {
-#line 5814 "DirectoryMonitor.c"
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = g_file_get_path (file);
-#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = _tmp13_;
-#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = g_strdup_printf ("Changed event for unknown file %s", _tmp14_);
-#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = _tmp15_;
-#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg (_tmp16_);
-#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp16_);
-#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp14_);
-#line 1235 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 1235 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5837 "DirectoryMonitor.c"
- }
-#line 1238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = local_info;
-#line 1238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ftype = directory_monitor_get_ftype (_tmp17_);
-#line 1239 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = ftype;
-#line 1239 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp18_) {
-#line 1239 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_FILE:
-#line 5849 "DirectoryMonitor.c"
- {
-#line 1241 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_file_altered (self, file);
-#line 1242 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5855 "DirectoryMonitor.c"
- }
-#line 1239 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_DIRECTORY:
-#line 5859 "DirectoryMonitor.c"
- {
-#line 1245 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_altered (self, file);
-#line 1246 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5865 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorFType _tmp19_;
-#line 1249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = ftype;
-#line 1249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp19_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED");
-#line 1250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5876 "DirectoryMonitor.c"
- }
- }
-#line 1252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 1252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5883 "DirectoryMonitor.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
-#line 5887 "DirectoryMonitor.c"
- {
- DirectoryMonitorFType ftype = 0;
- DirectoryMonitorFType _tmp20_;
-#line 1255 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (info != NULL, "info != null");
-#line 1257 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ftype = directory_monitor_get_ftype (info);
-#line 1258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp20_ = ftype;
-#line 1258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp20_) {
-#line 1258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_FILE:
-#line 5901 "DirectoryMonitor.c"
- {
-#line 1260 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_file_alteration_completed (self, file, info);
-#line 1261 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5907 "DirectoryMonitor.c"
- }
-#line 1258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_DIRECTORY:
-#line 5911 "DirectoryMonitor.c"
- {
-#line 1264 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_directory_alteration_completed (self, file, info);
-#line 1265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5917 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorFType _tmp21_;
-#line 1268 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp21_ = ftype;
-#line 1268 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp21_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED");
-#line 1269 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5928 "DirectoryMonitor.c"
- }
- }
-#line 1271 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5933 "DirectoryMonitor.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_MOVED:
-#line 5937 "DirectoryMonitor.c"
- {
- DirectoryMonitorFType ftype = 0;
- DirectoryMonitorFType _tmp22_;
-#line 1274 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (info != NULL, "info != null");
-#line 1275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (other_file != NULL, "other_file != null");
-#line 1279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ftype = directory_monitor_get_ftype (info);
-#line 1280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp22_ = ftype;
-#line 1280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp22_) {
-#line 1280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_FILE:
-#line 5953 "DirectoryMonitor.c"
- {
-#line 1282 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_file_moved (self, file, other_file, info);
-#line 1283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5959 "DirectoryMonitor.c"
- }
-#line 1280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_DIRECTORY:
-#line 5963 "DirectoryMonitor.c"
- {
- GFileInfo* old_dir_info = NULL;
- DirectoryMonitorFileInfoMap* _tmp23_;
- GFileInfo* _tmp24_;
- GFileInfo* _tmp25_;
- GFileInfo* _tmp28_;
-#line 1287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp23_ = self->priv->files;
-#line 1287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp24_ = directory_monitor_file_info_map_get_info (_tmp23_, file);
-#line 1287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old_dir_info = _tmp24_;
-#line 1288 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp25_ = old_dir_info;
-#line 1288 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp25_ == NULL) {
-#line 5980 "DirectoryMonitor.c"
- gchar* _tmp26_;
- gchar* _tmp27_;
-#line 1289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp26_ = g_file_get_path (file);
-#line 1289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp27_ = _tmp26_;
-#line 1289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:1289: Directory moved event for unknown file %s", _tmp27_);
-#line 1289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp27_);
-#line 1291 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_dir_info);
-#line 1291 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 5995 "DirectoryMonitor.c"
- }
-#line 1294 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp28_ = old_dir_info;
-#line 1294 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_directory_moved (self, file, _tmp28_, other_file, info);
-#line 1295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (old_dir_info);
-#line 1295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6005 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorFType _tmp29_;
-#line 1298 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp29_ = ftype;
-#line 1298 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp29_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED");
-#line 1299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6016 "DirectoryMonitor.c"
- }
- }
-#line 1301 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6021 "DirectoryMonitor.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_DELETED:
-#line 6025 "DirectoryMonitor.c"
- {
- GFileInfo* local_info = NULL;
- GFileInfo* _tmp30_;
- GFileInfo* _tmp31_;
- DirectoryMonitorFType ftype = 0;
- GFileInfo* _tmp34_;
- DirectoryMonitorFType _tmp35_;
-#line 1304 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (info == NULL, "info == null");
-#line 1306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp30_ = directory_monitor_get_file_info (self, file);
-#line 1306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- local_info = _tmp30_;
-#line 1307 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp31_ = local_info;
-#line 1307 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp31_ == NULL) {
-#line 6043 "DirectoryMonitor.c"
- gchar* _tmp32_;
- gchar* _tmp33_;
-#line 1308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp32_ = g_file_get_path (file);
-#line 1308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp33_ = _tmp32_;
-#line 1308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:1308: Deleted event for unknown file %s", _tmp33_);
-#line 1308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp33_);
-#line 1310 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 1310 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6058 "DirectoryMonitor.c"
- }
-#line 1313 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp34_ = local_info;
-#line 1313 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ftype = directory_monitor_get_ftype (_tmp34_);
-#line 1314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp35_ = ftype;
-#line 1314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp35_) {
-#line 1314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_FILE:
-#line 6070 "DirectoryMonitor.c"
- {
-#line 1316 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_file_deleted (self, file);
-#line 1317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6076 "DirectoryMonitor.c"
- }
-#line 1314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_DIRECTORY:
-#line 6080 "DirectoryMonitor.c"
- {
-#line 1320 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_internal_notify_directory_deleted (self, file);
-#line 1321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6086 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorFType _tmp36_;
-#line 1324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp36_ = ftype;
-#line 1324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp36_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED");
-#line 1325 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6097 "DirectoryMonitor.c"
- }
- }
-#line 1327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 1327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6104 "DirectoryMonitor.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED:
-#line 6108 "DirectoryMonitor.c"
- {
- GFileInfo* local_info = NULL;
- GFileInfo* _tmp37_;
- GFileInfo* _tmp38_;
- DirectoryMonitorFType ftype = 0;
- GFileInfo* _tmp41_;
- DirectoryMonitorFType _tmp42_;
-#line 1331 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (info == NULL, "info == null");
-#line 1333 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp37_ = directory_monitor_get_file_info (self, file);
-#line 1333 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- local_info = _tmp37_;
-#line 1334 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp38_ = local_info;
-#line 1334 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp38_ == NULL) {
-#line 6126 "DirectoryMonitor.c"
- gchar* _tmp39_;
- gchar* _tmp40_;
-#line 1335 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp39_ = g_file_get_path (file);
-#line 1335 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp40_ = _tmp39_;
-#line 1335 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:1335: Attribute changed event for unknown file %" \
-"s", _tmp40_);
-#line 1335 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp40_);
-#line 1337 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 1337 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6141 "DirectoryMonitor.c"
- }
-#line 1340 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp41_ = local_info;
-#line 1340 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ftype = directory_monitor_get_ftype (_tmp41_);
-#line 1341 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp42_ = ftype;
-#line 1341 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp42_) {
-#line 1341 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_FILE:
-#line 6153 "DirectoryMonitor.c"
- {
-#line 1343 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_file_attributes_altered (self, file);
-#line 1344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6159 "DirectoryMonitor.c"
- }
-#line 1341 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_DIRECTORY:
-#line 6163 "DirectoryMonitor.c"
- {
-#line 1347 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_notify_directory_attributes_altered (self, file);
-#line 1348 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6169 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorFType _tmp43_;
-#line 1351 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp43_ = ftype;
-#line 1351 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp43_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED");
-#line 1352 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6180 "DirectoryMonitor.c"
- }
- }
-#line 1354 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 1354 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6187 "DirectoryMonitor.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_PRE_UNMOUNT:
-#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case G_FILE_MONITOR_EVENT_UNMOUNTED:
-#line 6193 "DirectoryMonitor.c"
- {
-#line 1359 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6197 "DirectoryMonitor.c"
- }
- default:
- {
- GEnumValue* _tmp44_;
-#line 1362 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp44_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), event);
-#line 1362 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:1362: Unknown directory monitor event %s", (_tmp44_ != NULL) ? _tmp44_->value_name : NULL);
-#line 1363 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6208 "DirectoryMonitor.c"
- }
- }
-#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp0_);
-#line 6213 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_is_file_create_move (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info,
- GFile* * old_file,
- GFileInfo* * old_file_info)
-{
- GFile* _vala_old_file = NULL;
- GFileInfo* _vala_old_file_info = NULL;
- gboolean result = FALSE;
- GFile* match = NULL;
- DirectoryMonitorFileInfoMap* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
-#line 1369 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE);
-#line 1369 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 1369 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 1372 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->parent_moved;
-#line 1372 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = directory_monitor_file_info_map_find_match (_tmp0_, info);
-#line 1372 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- match = _tmp1_;
-#line 1373 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = match;
-#line 1373 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp2_ != NULL) {
-#line 6247 "DirectoryMonitor.c"
- GFile* _tmp3_;
- GFile* _tmp4_;
- DirectoryMonitorFileInfoMap* _tmp5_;
- GFile* _tmp6_;
- GFileInfo* _tmp7_;
- DirectoryMonitorFileInfoMap* _tmp8_;
- GFile* _tmp9_;
-#line 1374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = match;
-#line 1374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 1374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_old_file);
-#line 1374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_old_file = _tmp4_;
-#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = self->priv->parent_moved;
-#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = match;
-#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = directory_monitor_file_info_map_get_info (_tmp5_, _tmp6_);
-#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_old_file_info);
-#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_old_file_info = _tmp7_;
-#line 1377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = self->priv->parent_moved;
-#line 1377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = match;
-#line 1377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_remove (_tmp8_, _tmp9_, info);
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = TRUE;
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (match);
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (old_file) {
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *old_file = _vala_old_file;
-#line 6287 "DirectoryMonitor.c"
- } else {
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_old_file);
-#line 6291 "DirectoryMonitor.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (old_file_info) {
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *old_file_info = _vala_old_file_info;
-#line 6297 "DirectoryMonitor.c"
- } else {
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_old_file_info);
-#line 6301 "DirectoryMonitor.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6305 "DirectoryMonitor.c"
- }
-#line 1382 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_old_file);
-#line 1382 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_old_file = NULL;
-#line 1383 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_old_file_info);
-#line 1383 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_old_file_info = NULL;
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (match);
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (old_file) {
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *old_file = _vala_old_file;
-#line 6323 "DirectoryMonitor.c"
- } else {
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_old_file);
-#line 6327 "DirectoryMonitor.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (old_file_info) {
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *old_file_info = _vala_old_file_info;
-#line 6333 "DirectoryMonitor.c"
- } else {
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_old_file_info);
-#line 6337 "DirectoryMonitor.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6341 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_check_for_expired_delete_events (DirectoryMonitor* self)
-{
- gboolean result = FALSE;
- gulong expiration = 0UL;
- gboolean any_deleted = FALSE;
- gboolean any_expired = FALSE;
- gboolean _tmp11_;
- gboolean _tmp12_;
-#line 1388 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE);
-#line 1389 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- expiration = now_ms () - DIRECTORY_MONITOR_DELETED_EXPIRATION_MSEC;
-#line 1391 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- any_deleted = FALSE;
-#line 1392 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- any_expired = FALSE;
-#line 6362 "DirectoryMonitor.c"
- {
- GeeIterator* _element_it = NULL;
- GeeQueue* _tmp0_;
- GeeIterator* _tmp1_;
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->query_info_queue;
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _element_it = _tmp1_;
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 6375 "DirectoryMonitor.c"
- GeeIterator* _tmp2_;
- DirectoryMonitorQueryInfoQueueElement* element = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- DirectoryMonitorQueryInfoQueueElement* _tmp5_;
- GFileMonitorEvent _tmp6_;
- DirectoryMonitorQueryInfoQueueElement* _tmp7_;
- gulong _tmp8_;
- gulong _tmp9_;
- DirectoryMonitorQueryInfoQueueElement* _tmp10_;
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _element_it;
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 6392 "DirectoryMonitor.c"
- }
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _element_it;
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- element = (DirectoryMonitorQueryInfoQueueElement*) _tmp4_;
-#line 1394 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = element;
-#line 1394 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _tmp5_->event;
-#line 1394 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp6_ != G_FILE_MONITOR_EVENT_DELETED) {
-#line 1395 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (element);
-#line 1395 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 6410 "DirectoryMonitor.c"
- }
-#line 1397 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- any_deleted = TRUE;
-#line 1399 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = element;
-#line 1399 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = _tmp7_->time_created_msec;
-#line 1399 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = expiration;
-#line 1399 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp8_ > _tmp9_) {
-#line 1400 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (element);
-#line 1400 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 6426 "DirectoryMonitor.c"
- }
-#line 1403 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = element;
-#line 1403 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_->completed = TRUE;
-#line 1404 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- any_expired = TRUE;
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_query_info_queue_element_unref0 (element);
-#line 6436 "DirectoryMonitor.c"
- }
-#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_element_it);
-#line 6440 "DirectoryMonitor.c"
- }
-#line 1407 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = any_expired;
-#line 1407 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp11_) {
-#line 1408 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_process_query_queue (self, NULL);
-#line 6448 "DirectoryMonitor.c"
- }
-#line 1410 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = any_deleted;
-#line 1410 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp12_) {
-#line 1411 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->delete_timer_id = (guint) 0;
-#line 6456 "DirectoryMonitor.c"
- }
-#line 1413 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = any_deleted;
-#line 1413 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6462 "DirectoryMonitor.c"
-}
-
-
-GFileInfo*
-directory_monitor_get_file_info (DirectoryMonitor* self,
- GFile* file)
-{
- GFileInfo* result = NULL;
- DirectoryMonitorFileInfoMap* _tmp0_;
- GFileInfo* _tmp1_;
-#line 1417 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), NULL);
-#line 1417 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 1418 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 1418 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = directory_monitor_file_info_map_get_info (_tmp0_, file);
-#line 1418 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = _tmp1_;
-#line 1418 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6485 "DirectoryMonitor.c"
-}
-
-
-GeeCollection*
-directory_monitor_get_files (DirectoryMonitor* self)
-{
- GeeCollection* result = NULL;
- DirectoryMonitorFileInfoMap* _tmp0_;
- GeeCollection* _tmp1_;
-#line 1423 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), NULL);
-#line 1424 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 1424 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = directory_monitor_file_info_map_get_all (_tmp0_);
-#line 1424 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = _tmp1_;
-#line 1424 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6505 "DirectoryMonitor.c"
-}
-
-
-GFileInfo*
-directory_monitor_query_file_info (DirectoryMonitor* self,
- GFile* file)
-{
- GFileInfo* result = NULL;
- DirectoryMonitorFileInfoMap* _tmp0_;
- GCancellable* _tmp1_;
- GFileInfo* _tmp2_;
-#line 1430 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), NULL);
-#line 1430 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->files;
-#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->cancellable;
-#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = directory_monitor_file_info_map_query_info (_tmp0_, file, _tmp1_);
-#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = _tmp2_;
-#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6531 "DirectoryMonitor.c"
-}
-
-
-gboolean
-directory_monitor_is_file_symlink_supported (GFileInfo* info)
-{
- gboolean result = FALSE;
- DirectoryMonitorFType ftype = 0;
- DirectoryMonitorFType _tmp0_;
-#line 1441 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 1442 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!g_file_info_get_is_symlink (info)) {
-#line 1443 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = TRUE;
-#line 1443 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6549 "DirectoryMonitor.c"
- }
-#line 1445 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ftype = directory_monitor_get_ftype (info);
-#line 1446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = ftype;
-#line 1446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp0_) {
-#line 1446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_DIRECTORY:
-#line 6559 "DirectoryMonitor.c"
- {
-#line 1448 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = DIRECTORY_MONITOR_SUPPORT_DIR_SYMLINKS;
-#line 1448 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6565 "DirectoryMonitor.c"
- }
-#line 1446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_FILE:
-#line 6569 "DirectoryMonitor.c"
- {
-#line 1451 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = DIRECTORY_MONITOR_SUPPORT_FILE_SYMLINKS;
-#line 1451 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6575 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorFType _tmp1_;
-#line 1454 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = ftype;
-#line 1454 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp1_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED");
-#line 1456 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 1456 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 6588 "DirectoryMonitor.c"
- }
- }
-}
-
-
-static void
-directory_monitor_real_root_moved (DirectoryMonitor* self,
- GFile* old_root,
- GFile* new_root,
- GFileInfo* new_root_info)
-{
-#line 386 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_root));
-#line 386 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_root));
-#line 386 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_root_info));
-#line 6606 "DirectoryMonitor.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (n_param_values == 4);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- data1 = closure->data;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- data2 = param_values->data[0].v_pointer;
-#line 6632 "DirectoryMonitor.c"
- } else {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- data1 = param_values->data[0].v_pointer;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- data2 = closure->data;
-#line 6638 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_object (param_values + 3), data2);
-#line 6644 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_root_deleted (DirectoryMonitor* self,
- GFile* root)
-{
-#line 394 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (root));
-#line 6654 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_discovery_started (DirectoryMonitor* self)
-{
-}
-
-
-static void
-directory_monitor_real_file_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 400 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 400 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 6673 "DirectoryMonitor.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (n_param_values == 3);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- data1 = closure->data;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- data2 = param_values->data[0].v_pointer;
-#line 6699 "DirectoryMonitor.c"
- } else {
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- data1 = param_values->data[0].v_pointer;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- data2 = closure->data;
-#line 6705 "DirectoryMonitor.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 6711 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_directory_discovered (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 403 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 403 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 6724 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_discovery_failed (DirectoryMonitor* self,
- const gchar* reason)
-{
-#line 408 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (reason != NULL);
-#line 6734 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_discovery_completed (DirectoryMonitor* self)
-{
-#line 412 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->has_discovery_started = FALSE;
-#line 413 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_mdbg ("discovery completed");
-#line 6745 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 416 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 416 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 6758 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info)
-{
-#line 419 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 419 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 419 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_file_info));
-#line 6774 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_file_altered (DirectoryMonitor* self,
- GFile* file)
-{
-#line 423 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 6784 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 428 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 428 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 6797 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_file_attributes_altered (DirectoryMonitor* self,
- GFile* file)
-{
-#line 431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 6807 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_file_deleted (DirectoryMonitor* self,
- GFile* file)
-{
-#line 434 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 6817 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_directory_created (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
-#line 438 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 438 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 6830 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_directory_moved (DirectoryMonitor* self,
- GFile* old_dir,
- GFile* new_dir,
- GFileInfo* new_dir_info)
-{
-#line 442 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_dir));
-#line 442 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_dir));
-#line 442 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_dir_info));
-#line 6846 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_directory_altered (DirectoryMonitor* self,
- GFile* dir)
-{
-#line 446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 6856 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_directory_alteration_completed (DirectoryMonitor* self,
- GFile* dir,
- GFileInfo* info)
-{
-#line 451 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 451 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 6869 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_directory_attributes_altered (DirectoryMonitor* self,
- GFile* dir)
-{
-#line 454 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 6879 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_directory_deleted (DirectoryMonitor* self,
- GFile* dir)
-{
-#line 458 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 6889 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_real_closed (DirectoryMonitor* self)
-{
-}
-
-
-static DirectoryMonitorQueryInfoQueueElement*
-directory_monitor_query_info_queue_element_construct (GType object_type,
- DirectoryMonitor* owner,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event)
-{
- DirectoryMonitorQueryInfoQueueElement* self = NULL;
- DirectoryMonitor* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- guint _tmp3_;
-#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (IS_DIRECTORY_MONITOR (owner), NULL);
-#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail ((other_file == NULL) || G_IS_FILE (other_file), NULL);
-#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self = (DirectoryMonitorQueryInfoQueueElement*) g_type_create_instance (object_type);
-#line 98 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _g_object_ref0 (owner);
-#line 98 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->owner);
-#line 98 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->owner = _tmp0_;
-#line 99 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _g_object_ref0 (file);
-#line 99 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->file);
-#line 99 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->file = _tmp1_;
-#line 100 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _g_object_ref0 (other_file);
-#line 100 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->other_file);
-#line 100 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->other_file = _tmp2_;
-#line 101 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->event = event;
-#line 102 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = directory_monitor_query_info_queue_element_current;
-#line 102 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_query_info_queue_element_current = _tmp3_ + 1;
-#line 102 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->position = _tmp3_;
-#line 103 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->time_created_msec = now_ms ();
-#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return self;
-#line 6949 "DirectoryMonitor.c"
-}
-
-
-static DirectoryMonitorQueryInfoQueueElement*
-directory_monitor_query_info_queue_element_new (DirectoryMonitor* owner,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event)
-{
-#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return directory_monitor_query_info_queue_element_construct (DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, owner, file, other_file, event);
-#line 6961 "DirectoryMonitor.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return self ? g_error_copy (self) : NULL;
-#line 6970 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_query_info_queue_element_on_completed (DirectoryMonitorQueryInfoQueueElement* self,
- GObject* source,
- GAsyncResult* aresult)
-{
- GFile* source_file = NULL;
- GFile* _tmp0_;
- DirectoryMonitor* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 106 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (DIRECTORY_MONITOR_IS_QUERY_INFO_QUEUE_ELEMENT (self));
-#line 106 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail ((source == NULL) || G_IS_OBJECT (source));
-#line 106 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_ASYNC_RESULT (aresult));
-#line 107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, g_file_get_type (), GFile));
-#line 107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- source_file = _tmp0_;
-#line 6993 "DirectoryMonitor.c"
- {
- GFileInfo* _tmp1_ = NULL;
- GFileInfo* _tmp2_;
- GFileInfo* _tmp3_;
- GFileInfo* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gboolean _tmp7_;
-#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = g_file_query_info_finish (source_file, aresult, &_inner_error_);
-#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _tmp2_;
-#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7008 "DirectoryMonitor.c"
- goto __catch493_g_error;
- }
-#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = NULL;
-#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->info);
-#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->info = _tmp3_;
-#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = self->info;
-#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = get_file_info_id (_tmp4_);
-#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = _tmp6_ == NULL;
-#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp6_);
-#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp7_) {
-#line 7031 "DirectoryMonitor.c"
- GFileInfo* _tmp8_;
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = self->info;
-#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = self->file;
-#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = g_file_get_uri (_tmp9_);
-#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = _tmp10_;
-#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_info_set_attribute_string (_tmp8_, G_FILE_ATTRIBUTE_ID_FILE, _tmp11_);
-#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp11_);
-#line 7048 "DirectoryMonitor.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 7052 "DirectoryMonitor.c"
- }
- goto __finally493;
- __catch493_g_error:
- {
- GError* err = NULL;
- GError* _tmp12_;
- GError* _tmp13_;
-#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- err = _inner_error_;
-#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _inner_error_ = NULL;
-#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = err;
-#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = _g_error_copy0 (_tmp12_);
-#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_error_free0 (self->err);
-#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->err = _tmp13_;
-#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_error_free0 (err);
-#line 7074 "DirectoryMonitor.c"
- }
- __finally493:
-#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (source_file);
-#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.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 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return;
-#line 7087 "DirectoryMonitor.c"
- }
-#line 121 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->completed = TRUE;
-#line 124 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = self->owner;
-#line 124 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_process_query_queue (_tmp14_, self);
-#line 106 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (source_file);
-#line 7097 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_value_query_info_queue_element_init (GValue* value)
-{
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 7106 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_value_query_info_queue_element_free_value (GValue* value)
-{
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (value->data[0].v_pointer) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_query_info_queue_element_unref (value->data[0].v_pointer);
-#line 7117 "DirectoryMonitor.c"
- }
-}
-
-
-static void
-directory_monitor_value_query_info_queue_element_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (src_value->data[0].v_pointer) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- dest_value->data[0].v_pointer = directory_monitor_query_info_queue_element_ref (src_value->data[0].v_pointer);
-#line 7130 "DirectoryMonitor.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 7134 "DirectoryMonitor.c"
- }
-}
-
-
-static gpointer
-directory_monitor_value_query_info_queue_element_peek_pointer (const GValue* value)
-{
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return value->data[0].v_pointer;
-#line 7144 "DirectoryMonitor.c"
-}
-
-
-static gchar*
-directory_monitor_value_query_info_queue_element_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (collect_values[0].v_pointer) {
-#line 7156 "DirectoryMonitor.c"
- DirectoryMonitorQueryInfoQueueElement * object;
- object = collect_values[0].v_pointer;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 7163 "DirectoryMonitor.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.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 7167 "DirectoryMonitor.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = directory_monitor_query_info_queue_element_ref (object);
-#line 7171 "DirectoryMonitor.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 7175 "DirectoryMonitor.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return NULL;
-#line 7179 "DirectoryMonitor.c"
-}
-
-
-static gchar*
-directory_monitor_value_query_info_queue_element_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- DirectoryMonitorQueryInfoQueueElement ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!object_p) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 7195 "DirectoryMonitor.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!value->data[0].v_pointer) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *object_p = NULL;
-#line 7201 "DirectoryMonitor.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *object_p = value->data[0].v_pointer;
-#line 7205 "DirectoryMonitor.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *object_p = directory_monitor_query_info_queue_element_ref (value->data[0].v_pointer);
-#line 7209 "DirectoryMonitor.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return NULL;
-#line 7213 "DirectoryMonitor.c"
-}
-
-
-static GParamSpec*
-directory_monitor_param_spec_query_info_queue_element (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- DirectoryMonitorParamSpecQueryInfoQueueElement* spec;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (g_type_is_a (object_type, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT), NULL);
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return G_PARAM_SPEC (spec);
-#line 7233 "DirectoryMonitor.c"
-}
-
-
-static gpointer
-directory_monitor_value_get_query_info_queue_element (const GValue* value)
-{
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT), NULL);
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return value->data[0].v_pointer;
-#line 7244 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_value_set_query_info_queue_element (GValue* value,
- gpointer v_object)
-{
- DirectoryMonitorQueryInfoQueueElement * old;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT));
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old = value->data[0].v_pointer;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (v_object) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT));
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_query_info_queue_element_ref (value->data[0].v_pointer);
-#line 7267 "DirectoryMonitor.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 7271 "DirectoryMonitor.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (old) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_query_info_queue_element_unref (old);
-#line 7277 "DirectoryMonitor.c"
- }
-}
-
-
-static void
-directory_monitor_value_take_query_info_queue_element (GValue* value,
- gpointer v_object)
-{
- DirectoryMonitorQueryInfoQueueElement * old;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT));
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old = value->data[0].v_pointer;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (v_object) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT));
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 7299 "DirectoryMonitor.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 7303 "DirectoryMonitor.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (old) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_query_info_queue_element_unref (old);
-#line 7309 "DirectoryMonitor.c"
- }
-}
-
-
-static void
-directory_monitor_query_info_queue_element_class_init (DirectoryMonitorQueryInfoQueueElementClass * klass)
-{
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_query_info_queue_element_parent_class = g_type_class_peek_parent (klass);
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorQueryInfoQueueElementClass *) klass)->finalize = directory_monitor_query_info_queue_element_finalize;
-#line 7321 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_query_info_queue_element_instance_init (DirectoryMonitorQueryInfoQueueElement * self)
-{
-#line 92 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->info = NULL;
-#line 93 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->err = NULL;
-#line 94 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->completed = FALSE;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->ref_count = 1;
-#line 7336 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_query_info_queue_element_finalize (DirectoryMonitorQueryInfoQueueElement * obj)
-{
- DirectoryMonitorQueryInfoQueueElement * self;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, DirectoryMonitorQueryInfoQueueElement);
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_handlers_destroy (self);
-#line 86 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->owner);
-#line 87 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->file);
-#line 88 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->other_file);
-#line 92 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->info);
-#line 93 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_error_free0 (self->err);
-#line 7358 "DirectoryMonitor.c"
-}
-
-
-static GType
-directory_monitor_query_info_queue_element_get_type (void)
-{
- static volatile gsize directory_monitor_query_info_queue_element_type_id__volatile = 0;
- if (g_once_init_enter (&directory_monitor_query_info_queue_element_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { directory_monitor_value_query_info_queue_element_init, directory_monitor_value_query_info_queue_element_free_value, directory_monitor_value_query_info_queue_element_copy_value, directory_monitor_value_query_info_queue_element_peek_pointer, "p", directory_monitor_value_query_info_queue_element_collect_value, "p", directory_monitor_value_query_info_queue_element_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DirectoryMonitorQueryInfoQueueElementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) directory_monitor_query_info_queue_element_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectoryMonitorQueryInfoQueueElement), 0, (GInstanceInitFunc) directory_monitor_query_info_queue_element_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType directory_monitor_query_info_queue_element_type_id;
- directory_monitor_query_info_queue_element_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DirectoryMonitorQueryInfoQueueElement", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&directory_monitor_query_info_queue_element_type_id__volatile, directory_monitor_query_info_queue_element_type_id);
- }
- return directory_monitor_query_info_queue_element_type_id__volatile;
-}
-
-
-static gpointer
-directory_monitor_query_info_queue_element_ref (gpointer instance)
-{
- DirectoryMonitorQueryInfoQueueElement * self;
- self = instance;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return instance;
-#line 7387 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_query_info_queue_element_unref (gpointer instance)
-{
- DirectoryMonitorQueryInfoQueueElement * self;
- self = instance;
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_QUERY_INFO_QUEUE_ELEMENT_GET_CLASS (self)->finalize (self);
-#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 7402 "DirectoryMonitor.c"
- }
-}
-
-
-static DirectoryMonitorFileInfoMap*
-directory_monitor_file_info_map_construct (GType object_type)
-{
- DirectoryMonitorFileInfoMap* self = NULL;
-#line 138 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self = (DirectoryMonitorFileInfoMap*) g_type_create_instance (object_type);
-#line 138 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return self;
-#line 7415 "DirectoryMonitor.c"
-}
-
-
-static DirectoryMonitorFileInfoMap*
-directory_monitor_file_info_map_new (void)
-{
-#line 138 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return directory_monitor_file_info_map_construct (DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP);
-#line 7424 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_file_info_map_normalize_file (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info,
- GFile* * normalized,
- gchar* * id)
-{
- GFile* _vala_normalized = NULL;
- gchar* _vala_id = NULL;
- gboolean result = FALSE;
- GFileInfo* local_info = NULL;
- GFileInfo* _tmp0_;
- GFileInfo* _tmp1_;
- gchar* file_id = NULL;
- GFileInfo* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
- GFile* known_file = NULL;
- GeeHashMap* _tmp8_;
- const gchar* _tmp9_;
- gpointer _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- GFile* _tmp13_ = NULL;
- GFile* _tmp14_;
- GFile* _tmp16_;
-#line 141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), FALSE);
-#line 141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail ((info == NULL) || G_IS_FILE_INFO (info), FALSE);
-#line 144 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = _g_object_ref0 (info);
-#line 144 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- local_info = _tmp0_;
-#line 145 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = local_info;
-#line 145 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp1_ == NULL) {
-#line 7468 "DirectoryMonitor.c"
- GeeHashMap* _tmp2_;
- gpointer _tmp3_;
- GFileInfo* _tmp4_;
-#line 146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = self->priv->map;
-#line 146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- local_info = (GFileInfo*) _tmp3_;
-#line 147 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = local_info;
-#line 147 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp4_ == NULL) {
-#line 148 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_normalized);
-#line 148 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_normalized = NULL;
-#line 149 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_vala_id);
-#line 149 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_id = NULL;
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (normalized) {
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *normalized = _vala_normalized;
-#line 7500 "DirectoryMonitor.c"
- } else {
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_normalized);
-#line 7504 "DirectoryMonitor.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (id) {
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *id = _vala_id;
-#line 7510 "DirectoryMonitor.c"
- } else {
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_vala_id);
-#line 7514 "DirectoryMonitor.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7518 "DirectoryMonitor.c"
- }
- }
-#line 155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = local_info;
-#line 155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = get_file_info_id (_tmp5_);
-#line 155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- file_id = _tmp6_;
-#line 156 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = file_id;
-#line 156 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp7_ == NULL) {
-#line 157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_normalized);
-#line 157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_normalized = NULL;
-#line 158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_vala_id);
-#line 158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_id = NULL;
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (file_id);
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (normalized) {
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *normalized = _vala_normalized;
-#line 7549 "DirectoryMonitor.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_normalized);
-#line 7553 "DirectoryMonitor.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (id) {
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *id = _vala_id;
-#line 7559 "DirectoryMonitor.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_vala_id);
-#line 7563 "DirectoryMonitor.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7567 "DirectoryMonitor.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = self->priv->id_map;
-#line 163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = file_id;
-#line 163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_);
-#line 163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- known_file = (GFile*) _tmp10_;
-#line 165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = file_id;
-#line 165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = g_strdup ((const gchar*) _tmp11_);
-#line 165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_vala_id);
-#line 165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_id = _tmp12_;
-#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = known_file;
-#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp14_ != NULL) {
-#line 7589 "DirectoryMonitor.c"
- GFile* _tmp15_;
-#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = known_file;
-#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = _tmp15_;
-#line 7595 "DirectoryMonitor.c"
- } else {
-#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = file;
-#line 7599 "DirectoryMonitor.c"
- }
-#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = _g_object_ref0 (_tmp13_);
-#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_normalized);
-#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_normalized = _tmp16_;
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = TRUE;
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (known_file);
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (file_id);
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (local_info);
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (normalized) {
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *normalized = _vala_normalized;
-#line 7619 "DirectoryMonitor.c"
- } else {
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_vala_normalized);
-#line 7623 "DirectoryMonitor.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (id) {
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *id = _vala_id;
-#line 7629 "DirectoryMonitor.c"
- } else {
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_vala_id);
-#line 7633 "DirectoryMonitor.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7637 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_file_info_map_update (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
- gchar* existing_id = NULL;
- gchar* _tmp4_;
- gboolean _tmp5_ = FALSE;
- const gchar* _tmp6_;
- gchar* id = NULL;
- GFile* normalized = NULL;
- GFile* _tmp13_ = NULL;
- gchar* _tmp14_ = NULL;
- gboolean _tmp15_;
- GeeHashMap* _tmp16_;
- GFile* _tmp17_;
- GeeHashMap* _tmp18_;
- const gchar* _tmp19_;
- GFile* _tmp20_;
-#line 171 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), FALSE);
-#line 171 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 171 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 173 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->map;
-#line 173 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file)) {
-#line 7672 "DirectoryMonitor.c"
- gboolean removed = FALSE;
- GeeHashMap* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
-#line 174 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = self->priv->map;
-#line 174 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file, NULL);
-#line 174 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- removed = _tmp2_;
-#line 175 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = removed;
-#line 175 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp3_, "removed");
-#line 7687 "DirectoryMonitor.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = get_file_info_id (info);
-#line 179 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- existing_id = _tmp4_;
-#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = existing_id;
-#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp6_ != NULL) {
-#line 7697 "DirectoryMonitor.c"
- GeeHashMap* _tmp7_;
- const gchar* _tmp8_;
-#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = self->priv->id_map;
-#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = existing_id;
-#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_);
-#line 7706 "DirectoryMonitor.c"
- } else {
-#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = FALSE;
-#line 7710 "DirectoryMonitor.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp5_) {
-#line 7714 "DirectoryMonitor.c"
- gboolean removed = FALSE;
- GeeHashMap* _tmp9_;
- const gchar* _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_;
-#line 181 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = self->priv->id_map;
-#line 181 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = existing_id;
-#line 181 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_, NULL);
-#line 181 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- removed = _tmp11_;
-#line 182 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = removed;
-#line 182 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp12_, "removed");
-#line 7732 "DirectoryMonitor.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = directory_monitor_file_info_map_normalize_file (self, file, info, &_tmp13_, &_tmp14_);
-#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- normalized = _tmp13_;
-#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- id = _tmp14_;
-#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp15_) {
-#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (existing_id);
-#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7756 "DirectoryMonitor.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = self->priv->map;
-#line 190 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = normalized;
-#line 190 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp17_, info);
-#line 191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = self->priv->id_map;
-#line 191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = id;
-#line 191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp20_ = normalized;
-#line 191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp19_, _tmp20_);
-#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = TRUE;
-#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (existing_id);
-#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7782 "DirectoryMonitor.c"
-}
-
-
-static gboolean
-directory_monitor_file_info_map_remove (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info)
-{
- gboolean result = FALSE;
- gchar* id = NULL;
- GFile* normalized = NULL;
- GFile* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- gboolean _tmp2_;
- GeeHashMap* _tmp3_;
- GFile* _tmp4_;
- GeeHashMap* _tmp5_;
- const gchar* _tmp6_;
-#line 196 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), FALSE);
-#line 196 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 196 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail ((info == NULL) || G_IS_FILE_INFO (info), FALSE);
-#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = directory_monitor_file_info_map_normalize_file (self, file, info, &_tmp0_, &_tmp1_);
-#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- normalized = _tmp0_;
-#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- id = _tmp1_;
-#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp2_) {
-#line 200 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 200 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 200 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 200 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7827 "DirectoryMonitor.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = self->priv->map;
-#line 202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = normalized;
-#line 202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_, NULL);
-#line 203 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = self->priv->id_map;
-#line 203 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = id;
-#line 203 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_, NULL);
-#line 205 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = TRUE;
-#line 205 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 205 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 205 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7849 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_file_info_map_remove_all (DirectoryMonitorFileInfoMap* self,
- GeeCollection* files)
-{
-#line 210 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self));
-#line 210 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (GEE_IS_COLLECTION (files));
-#line 7861 "DirectoryMonitor.c"
- {
- GeeIterator* _file_it = NULL;
- GeeIterator* _tmp0_;
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (files, GEE_TYPE_ITERABLE, GeeIterable));
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _file_it = _tmp0_;
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 7871 "DirectoryMonitor.c"
- GeeIterator* _tmp1_;
- GFile* file = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- GFile* _tmp4_;
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = _file_it;
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 7883 "DirectoryMonitor.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _file_it;
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- file = (GFile*) _tmp3_;
-#line 212 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = file;
-#line 212 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_remove (self, _tmp4_, NULL);
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (file);
-#line 7897 "DirectoryMonitor.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 7901 "DirectoryMonitor.c"
- }
-}
-
-
-static gboolean
-directory_monitor_file_info_map_contains (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info)
-{
- gboolean result = FALSE;
- gchar* id = NULL;
- GFile* normalized = NULL;
- GFile* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- gboolean _tmp2_;
- GeeHashMap* _tmp3_;
- const gchar* _tmp4_;
-#line 215 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), FALSE);
-#line 215 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 215 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail ((info == NULL) || G_IS_FILE_INFO (info), FALSE);
-#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = directory_monitor_file_info_map_normalize_file (self, file, info, &_tmp0_, &_tmp1_);
-#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- normalized = _tmp0_;
-#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- id = _tmp1_;
-#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp2_) {
-#line 219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = FALSE;
-#line 219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7945 "DirectoryMonitor.c"
- }
-#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = self->priv->id_map;
-#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = id;
-#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_);
-#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7959 "DirectoryMonitor.c"
-}
-
-
-static gchar*
-directory_monitor_file_info_map_get_id (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GFileInfo* info)
-{
- gchar* result = NULL;
- gchar* id = NULL;
- GFile* normalized = NULL;
- GFile* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gboolean _tmp3_;
-#line 224 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL);
-#line 224 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 224 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail ((info == NULL) || G_IS_FILE_INFO (info), NULL);
-#line 226 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (info != NULL) {
-#line 7982 "DirectoryMonitor.c"
- gchar* _tmp0_;
-#line 227 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = get_file_info_id (info);
-#line 227 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = _tmp0_;
-#line 227 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 7990 "DirectoryMonitor.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = directory_monitor_file_info_map_normalize_file (self, file, NULL, &_tmp1_, &_tmp2_);
-#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- normalized = _tmp1_;
-#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- id = _tmp2_;
-#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp3_) {
-#line 232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = NULL;
-#line 232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8012 "DirectoryMonitor.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = id;
-#line 234 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 234 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8020 "DirectoryMonitor.c"
-}
-
-
-static GeeCollection*
-directory_monitor_file_info_map_get_all (DirectoryMonitorFileInfoMap* self)
-{
- GeeCollection* result = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
-#line 237 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL);
-#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->map;
-#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8043 "DirectoryMonitor.c"
-}
-
-
-static GFileInfo*
-directory_monitor_file_info_map_get_info (DirectoryMonitorFileInfoMap* self,
- GFile* file)
-{
- GFileInfo* result = NULL;
- GFileInfo* info = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- GFileInfo* _tmp2_;
- gchar* id = NULL;
- GFile* normalized = NULL;
- GFile* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gboolean _tmp5_;
- GeeHashMap* _tmp6_;
- GFile* _tmp7_;
- gpointer _tmp8_;
-#line 241 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL);
-#line 241 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 243 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->map;
-#line 243 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 243 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- info = (GFileInfo*) _tmp1_;
-#line 244 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = info;
-#line 244 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp2_ != NULL) {
-#line 245 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = info;
-#line 245 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8082 "DirectoryMonitor.c"
- }
-#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = directory_monitor_file_info_map_normalize_file (self, file, NULL, &_tmp3_, &_tmp4_);
-#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- normalized = _tmp3_;
-#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- id = _tmp4_;
-#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!_tmp5_) {
-#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = NULL;
-#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8106 "DirectoryMonitor.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = self->priv->map;
-#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = normalized;
-#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp7_);
-#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = (GFileInfo*) _tmp8_;
-#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8124 "DirectoryMonitor.c"
-}
-
-
-static GFileInfo*
-directory_monitor_file_info_map_query_info (DirectoryMonitorFileInfoMap* self,
- GFile* file,
- GCancellable* cancellable)
-{
- GFileInfo* result = NULL;
- GFileInfo* info = NULL;
- GFileInfo* _tmp0_;
- GFileInfo* _tmp1_;
- GFileInfo* _tmp9_;
- gchar* id = NULL;
- GFileInfo* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- const gchar* _tmp13_;
- GFile* normalized = NULL;
- GeeHashMap* _tmp17_;
- const gchar* _tmp18_;
- gpointer _tmp19_;
- GFile* _tmp20_;
- GeeHashMap* _tmp21_;
- gpointer _tmp22_;
- GError * _inner_error_ = NULL;
-#line 255 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL);
-#line 255 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 255 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL);
-#line 256 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = directory_monitor_file_info_map_get_info (self, file);
-#line 256 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- info = _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = info;
-#line 257 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp1_ != NULL) {
-#line 258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = info;
-#line 258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8169 "DirectoryMonitor.c"
- }
- {
- GFileInfo* _tmp2_ = NULL;
- GFileInfo* _tmp3_;
- GFileInfo* _tmp4_;
-#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = g_file_query_info (file, G_FILE_ATTRIBUTE_ID_FILE, DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS, cancellable, &_inner_error_);
-#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _tmp3_;
-#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8181 "DirectoryMonitor.c"
- goto __catch494_g_error;
- }
-#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = _tmp2_;
-#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = NULL;
-#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- info = _tmp4_;
-#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp2_);
-#line 8194 "DirectoryMonitor.c"
- }
- goto __finally494;
- __catch494_g_error:
- {
- GError* err = NULL;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GError* _tmp7_;
- const gchar* _tmp8_;
-#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- err = _inner_error_;
-#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _inner_error_ = NULL;
-#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = g_file_get_path (file);
-#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = err;
-#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = _tmp7_->message;
-#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_warning ("DirectoryMonitor.vala:265: Unable to query file ID of %s: %s", _tmp6_, _tmp8_);
-#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp6_);
-#line 267 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = NULL;
-#line 267 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_error_free0 (err);
-#line 267 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 267 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8228 "DirectoryMonitor.c"
- }
- __finally494:
-#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.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 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return NULL;
-#line 8241 "DirectoryMonitor.c"
- }
-#line 270 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = info;
-#line 270 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!directory_monitor_is_file_symlink_supported (_tmp9_)) {
-#line 271 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = NULL;
-#line 271 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 271 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8253 "DirectoryMonitor.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = info;
-#line 273 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = g_file_info_get_attribute_string (_tmp10_, G_FILE_ATTRIBUTE_ID_FILE);
-#line 273 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = g_strdup (_tmp11_);
-#line 273 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- id = _tmp12_;
-#line 274 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = id;
-#line 274 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp13_ == NULL) {
-#line 8267 "DirectoryMonitor.c"
- GFileInfo* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = info;
-#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = g_file_get_uri (file);
-#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = _tmp15_;
-#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_info_set_attribute_string (_tmp14_, G_FILE_ATTRIBUTE_ID_FILE, _tmp16_);
-#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp16_);
-#line 8281 "DirectoryMonitor.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = self->priv->id_map;
-#line 279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = id;
-#line 279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp18_);
-#line 279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- normalized = (GFile*) _tmp19_;
-#line 280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp20_ = normalized;
-#line 280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp20_ == NULL) {
-#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = NULL;
-#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8305 "DirectoryMonitor.c"
- }
-#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp21_ = self->priv->map;
-#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp22_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = (GFileInfo*) _tmp22_;
-#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (normalized);
-#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (id);
-#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8321 "DirectoryMonitor.c"
-}
-
-
-static GFile*
-directory_monitor_file_info_map_find_match (DirectoryMonitorFileInfoMap* self,
- GFileInfo* match)
-{
- GFile* result = NULL;
- gchar* match_id = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- gint64 match_size = 0LL;
- GTimeVal match_time = {0};
- GTimeVal _tmp2_ = {0};
-#line 286 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL);
-#line 286 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (match), NULL);
-#line 287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = get_file_info_id (match);
-#line 287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- match_id = _tmp0_;
-#line 288 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = match_id;
-#line 288 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp1_ == NULL) {
-#line 289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = NULL;
-#line 289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (match_id);
-#line 289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8354 "DirectoryMonitor.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- match_size = g_file_info_get_size (match);
-#line 293 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_info_get_modification_time (match, &_tmp2_);
-#line 293 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- match_time = _tmp2_;
-#line 8362 "DirectoryMonitor.c"
- {
- GeeIterator* _file_it = NULL;
- GeeHashMap* _tmp3_;
- GeeSet* _tmp4_;
- GeeSet* _tmp5_;
- GeeSet* _tmp6_;
- GeeIterator* _tmp7_;
- GeeIterator* _tmp8_;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = self->priv->map;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = _tmp7_;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp6_);
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _file_it = _tmp8_;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 8389 "DirectoryMonitor.c"
- GeeIterator* _tmp9_;
- GFile* file = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- GFileInfo* info = NULL;
- GeeHashMap* _tmp12_;
- GFile* _tmp13_;
- gpointer _tmp14_;
- GFileInfo* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- const gchar* _tmp18_;
- gboolean _tmp19_;
- gint64 _tmp20_;
- GFileInfo* _tmp21_;
- GTimeVal time = {0};
- GFileInfo* _tmp22_;
- GTimeVal _tmp23_ = {0};
- GTimeVal _tmp24_;
- glong _tmp25_;
- GTimeVal _tmp26_;
- glong _tmp27_;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = _file_it;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 8418 "DirectoryMonitor.c"
- }
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = _file_it;
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- file = (GFile*) _tmp11_;
-#line 296 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = self->priv->map;
-#line 296 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = file;
-#line 296 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_);
-#line 296 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- info = (GFileInfo*) _tmp14_;
-#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = info;
-#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = get_file_info_id (_tmp15_);
-#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = _tmp16_;
-#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = match_id;
-#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = g_strcmp0 (_tmp17_, _tmp18_) == 0;
-#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (_tmp17_);
-#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp19_) {
-#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = file;
-#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (match_id);
-#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8458 "DirectoryMonitor.c"
- }
-#line 303 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp20_ = match_size;
-#line 303 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp21_ = info;
-#line 303 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp20_ != g_file_info_get_size (_tmp21_)) {
-#line 304 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 304 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (file);
-#line 304 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 8472 "DirectoryMonitor.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp22_ = info;
-#line 306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_file_info_get_modification_time (_tmp22_, &_tmp23_);
-#line 306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- time = _tmp23_;
-#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp24_ = time;
-#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp25_ = _tmp24_.tv_sec;
-#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp26_ = match_time;
-#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp27_ = _tmp26_.tv_sec;
-#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp25_ != _tmp27_) {
-#line 309 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 309 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (file);
-#line 309 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 8496 "DirectoryMonitor.c"
- }
-#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = file;
-#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (info);
-#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (match_id);
-#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8508 "DirectoryMonitor.c"
- }
-#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 8512 "DirectoryMonitor.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = NULL;
-#line 314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_free0 (match_id);
-#line 314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8520 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_file_info_map_remove_descendents (DirectoryMonitorFileInfoMap* self,
- GFile* root,
- DirectoryMonitorFileInfoMap* descendents)
-{
- GeeArrayList* pruned = NULL;
- GeeArrayList* _tmp24_;
-#line 317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self));
-#line 317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_IS_FILE (root));
-#line 317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (descendents));
-#line 318 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- pruned = NULL;
-#line 8539 "DirectoryMonitor.c"
- {
- GeeIterator* _file_it = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->map;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp3_);
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _file_it = _tmp5_;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 8566 "DirectoryMonitor.c"
- GeeIterator* _tmp6_;
- GFile* file = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- GFile* parent = NULL;
- GFile* _tmp9_;
- GFile* _tmp10_;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _file_it;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 8580 "DirectoryMonitor.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = _file_it;
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- file = (GFile*) _tmp8_;
-#line 320 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = file;
-#line 320 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = g_file_get_parent (_tmp9_);
-#line 320 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- parent = _tmp10_;
-#line 321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 8596 "DirectoryMonitor.c"
- GFile* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp22_;
- GFile* _tmp23_;
-#line 321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = parent;
-#line 321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!(_tmp11_ != NULL)) {
-#line 321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 8607 "DirectoryMonitor.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = parent;
-#line 322 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (g_file_equal (_tmp12_, root)) {
-#line 8613 "DirectoryMonitor.c"
- GeeArrayList* _tmp13_;
- GeeArrayList* _tmp15_;
- GFile* _tmp16_;
- GFile* _tmp17_;
- GeeHashMap* _tmp18_;
- GFile* _tmp19_;
- gpointer _tmp20_;
- GFileInfo* _tmp21_;
-#line 323 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = pruned;
-#line 323 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp13_ == NULL) {
-#line 8626 "DirectoryMonitor.c"
- GeeArrayList* _tmp14_;
-#line 324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (pruned);
-#line 324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- pruned = _tmp14_;
-#line 8634 "DirectoryMonitor.c"
- }
-#line 326 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = pruned;
-#line 326 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = file;
-#line 326 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_);
-#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = file;
-#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = self->priv->map;
-#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = file;
-#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp20_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp19_);
-#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp21_ = (GFileInfo*) _tmp20_;
-#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_update (descendents, _tmp17_, _tmp21_);
-#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp21_);
-#line 329 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 8658 "DirectoryMonitor.c"
- }
-#line 332 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp22_ = parent;
-#line 332 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp23_ = g_file_get_parent (_tmp22_);
-#line 332 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (parent);
-#line 332 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- parent = _tmp23_;
-#line 8668 "DirectoryMonitor.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (parent);
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (file);
-#line 8674 "DirectoryMonitor.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 8678 "DirectoryMonitor.c"
- }
-#line 336 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp24_ = pruned;
-#line 336 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp24_ != NULL) {
-#line 8684 "DirectoryMonitor.c"
- GeeArrayList* _tmp25_;
-#line 337 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp25_ = pruned;
-#line 337 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_remove_all (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 8690 "DirectoryMonitor.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (pruned);
-#line 8694 "DirectoryMonitor.c"
-}
-
-
-static gint
-directory_monitor_file_info_map_get_children (DirectoryMonitorFileInfoMap* self,
- GFile* root,
- GeeCollection* files,
- GeeCollection* dirs)
-{
- gint result = 0;
- gint count = 0;
-#line 342 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), 0);
-#line 342 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (root), 0);
-#line 342 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (files), 0);
-#line 342 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (dirs), 0);
-#line 343 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- count = 0;
-#line 8716 "DirectoryMonitor.c"
- {
- GeeIterator* _file_it = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = self->priv->map;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp3_);
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _file_it = _tmp5_;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- while (TRUE) {
-#line 8743 "DirectoryMonitor.c"
- GeeIterator* _tmp6_;
- GFile* file = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- GFile* parent = NULL;
- GFile* _tmp9_;
- GFile* _tmp10_;
- gboolean _tmp11_ = FALSE;
- GFile* _tmp12_;
- DirectoryMonitorFType ftype = 0;
- GeeHashMap* _tmp14_;
- GFile* _tmp15_;
- gpointer _tmp16_;
- GFileInfo* _tmp17_;
- DirectoryMonitorFType _tmp18_;
- DirectoryMonitorFType _tmp19_;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp6_ = _file_it;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 8766 "DirectoryMonitor.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp7_ = _file_it;
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- file = (GFile*) _tmp8_;
-#line 345 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp9_ = file;
-#line 345 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp10_ = g_file_get_parent (_tmp9_);
-#line 345 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- parent = _tmp10_;
-#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp12_ = parent;
-#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp12_ == NULL) {
-#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = TRUE;
-#line 8786 "DirectoryMonitor.c"
- } else {
- GFile* _tmp13_;
-#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp13_ = parent;
-#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp11_ = !g_file_equal (_tmp13_, root);
-#line 8793 "DirectoryMonitor.c"
- }
-#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (_tmp11_) {
-#line 347 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (parent);
-#line 347 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (file);
-#line 347 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- continue;
-#line 8803 "DirectoryMonitor.c"
- }
-#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp14_ = self->priv->map;
-#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp15_ = file;
-#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_);
-#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp17_ = (GFileInfo*) _tmp16_;
-#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp18_ = directory_monitor_get_ftype (_tmp17_);
-#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_tmp17_);
-#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ftype = _tmp18_;
-#line 350 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp19_ = ftype;
-#line 350 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- switch (_tmp19_) {
-#line 350 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_FILE:
-#line 8825 "DirectoryMonitor.c"
- {
- GFile* _tmp20_;
- gint _tmp21_;
-#line 352 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp20_ = file;
-#line 352 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_collection_add (files, _tmp20_);
-#line 353 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp21_ = count;
-#line 353 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- count = _tmp21_ + 1;
-#line 354 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 8839 "DirectoryMonitor.c"
- }
-#line 350 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- case DIRECTORY_MONITOR_FTYPE_DIRECTORY:
-#line 8843 "DirectoryMonitor.c"
- {
- GFile* _tmp22_;
- gint _tmp23_;
-#line 357 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp22_ = file;
-#line 357 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- gee_collection_add (dirs, _tmp22_);
-#line 358 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp23_ = count;
-#line 358 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- count = _tmp23_ + 1;
-#line 359 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 8857 "DirectoryMonitor.c"
- }
- default:
- {
- DirectoryMonitorFType _tmp24_;
-#line 362 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp24_ = ftype;
-#line 362 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _vala_assert (_tmp24_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED");
-#line 363 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- break;
-#line 8868 "DirectoryMonitor.c"
- }
- }
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (parent);
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (file);
-#line 8875 "DirectoryMonitor.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 8879 "DirectoryMonitor.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- result = count;
-#line 367 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return result;
-#line 8885 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_value_file_info_map_init (GValue* value)
-{
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 8894 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_value_file_info_map_free_value (GValue* value)
-{
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (value->data[0].v_pointer) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_unref (value->data[0].v_pointer);
-#line 8905 "DirectoryMonitor.c"
- }
-}
-
-
-static void
-directory_monitor_value_file_info_map_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (src_value->data[0].v_pointer) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- dest_value->data[0].v_pointer = directory_monitor_file_info_map_ref (src_value->data[0].v_pointer);
-#line 8918 "DirectoryMonitor.c"
- } else {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 8922 "DirectoryMonitor.c"
- }
-}
-
-
-static gpointer
-directory_monitor_value_file_info_map_peek_pointer (const GValue* value)
-{
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return value->data[0].v_pointer;
-#line 8932 "DirectoryMonitor.c"
-}
-
-
-static gchar*
-directory_monitor_value_file_info_map_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (collect_values[0].v_pointer) {
-#line 8944 "DirectoryMonitor.c"
- DirectoryMonitorFileInfoMap * object;
- object = collect_values[0].v_pointer;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 8951 "DirectoryMonitor.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.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 8955 "DirectoryMonitor.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = directory_monitor_file_info_map_ref (object);
-#line 8959 "DirectoryMonitor.c"
- } else {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 8963 "DirectoryMonitor.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return NULL;
-#line 8967 "DirectoryMonitor.c"
-}
-
-
-static gchar*
-directory_monitor_value_file_info_map_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- DirectoryMonitorFileInfoMap ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!object_p) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 8983 "DirectoryMonitor.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (!value->data[0].v_pointer) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *object_p = NULL;
-#line 8989 "DirectoryMonitor.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *object_p = value->data[0].v_pointer;
-#line 8993 "DirectoryMonitor.c"
- } else {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- *object_p = directory_monitor_file_info_map_ref (value->data[0].v_pointer);
-#line 8997 "DirectoryMonitor.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return NULL;
-#line 9001 "DirectoryMonitor.c"
-}
-
-
-static GParamSpec*
-directory_monitor_param_spec_file_info_map (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- DirectoryMonitorParamSpecFileInfoMap* spec;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (g_type_is_a (object_type, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP), NULL);
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return G_PARAM_SPEC (spec);
-#line 9021 "DirectoryMonitor.c"
-}
-
-
-static gpointer
-directory_monitor_value_get_file_info_map (const GValue* value)
-{
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP), NULL);
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return value->data[0].v_pointer;
-#line 9032 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_value_set_file_info_map (GValue* value,
- gpointer v_object)
-{
- DirectoryMonitorFileInfoMap * old;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP));
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old = value->data[0].v_pointer;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (v_object) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP));
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_ref (value->data[0].v_pointer);
-#line 9055 "DirectoryMonitor.c"
- } else {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 9059 "DirectoryMonitor.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (old) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_unref (old);
-#line 9065 "DirectoryMonitor.c"
- }
-}
-
-
-static void
-directory_monitor_value_take_file_info_map (GValue* value,
- gpointer v_object)
-{
- DirectoryMonitorFileInfoMap * old;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP));
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- old = value->data[0].v_pointer;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (v_object) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP));
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 9087 "DirectoryMonitor.c"
- } else {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 9091 "DirectoryMonitor.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (old) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_unref (old);
-#line 9097 "DirectoryMonitor.c"
- }
-}
-
-
-static void
-directory_monitor_file_info_map_class_init (DirectoryMonitorFileInfoMapClass * klass)
-{
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_file_info_map_parent_class = g_type_class_peek_parent (klass);
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorFileInfoMapClass *) klass)->finalize = directory_monitor_file_info_map_finalize;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_type_class_add_private (klass, sizeof (DirectoryMonitorFileInfoMapPrivate));
-#line 9111 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_file_info_map_instance_init (DirectoryMonitorFileInfoMap * self)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv = DIRECTORY_MONITOR_FILE_INFO_MAP_GET_PRIVATE (self);
-#line 133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->map = _tmp0_;
-#line 135 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL);
-#line 135 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->id_map = _tmp1_;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->ref_count = 1;
-#line 9132 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_file_info_map_finalize (DirectoryMonitorFileInfoMap * obj)
-{
- DirectoryMonitorFileInfoMap * self;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMap);
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_signal_handlers_destroy (self);
-#line 133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->priv->map);
-#line 135 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->priv->id_map);
-#line 9148 "DirectoryMonitor.c"
-}
-
-
-static GType
-directory_monitor_file_info_map_get_type (void)
-{
- static volatile gsize directory_monitor_file_info_map_type_id__volatile = 0;
- if (g_once_init_enter (&directory_monitor_file_info_map_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { directory_monitor_value_file_info_map_init, directory_monitor_value_file_info_map_free_value, directory_monitor_value_file_info_map_copy_value, directory_monitor_value_file_info_map_peek_pointer, "p", directory_monitor_value_file_info_map_collect_value, "p", directory_monitor_value_file_info_map_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DirectoryMonitorFileInfoMapClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) directory_monitor_file_info_map_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectoryMonitorFileInfoMap), 0, (GInstanceInitFunc) directory_monitor_file_info_map_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType directory_monitor_file_info_map_type_id;
- directory_monitor_file_info_map_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DirectoryMonitorFileInfoMap", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&directory_monitor_file_info_map_type_id__volatile, directory_monitor_file_info_map_type_id);
- }
- return directory_monitor_file_info_map_type_id__volatile;
-}
-
-
-static gpointer
-directory_monitor_file_info_map_ref (gpointer instance)
-{
- DirectoryMonitorFileInfoMap * self;
- self = instance;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- return instance;
-#line 9177 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_file_info_map_unref (gpointer instance)
-{
- DirectoryMonitorFileInfoMap * self;
- self = instance;
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- DIRECTORY_MONITOR_FILE_INFO_MAP_GET_CLASS (self)->finalize (self);
-#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 9192 "DirectoryMonitor.c"
- }
-}
-
-
-static void
-directory_monitor_class_init (DirectoryMonitorClass * klass)
-{
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- directory_monitor_parent_class = g_type_class_peek_parent (klass);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- g_type_class_add_private (klass, sizeof (DirectoryMonitorPrivate));
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_root_deleted = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_root_deleted;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_root_moved = (void (*) (DirectoryMonitor *, GFile*, GFile*, GFileInfo*)) directory_monitor_real_notify_root_moved;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_discovery_started = (void (*) (DirectoryMonitor *)) directory_monitor_real_notify_discovery_started;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->internal_notify_file_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_internal_notify_file_discovered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_file_discovered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->internal_notify_directory_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_internal_notify_directory_discovered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_directory_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_directory_discovered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_discovery_failed = (void (*) (DirectoryMonitor *, const gchar*)) directory_monitor_real_notify_discovery_failed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_discovery_completed = (void (*) (DirectoryMonitor *)) directory_monitor_real_notify_discovery_completed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_created = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_file_created;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_moved = (void (*) (DirectoryMonitor *, GFile*, GFile*, GFileInfo*)) directory_monitor_real_notify_file_moved;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_altered = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_file_altered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_alteration_completed = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_file_alteration_completed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_attributes_altered = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_file_attributes_altered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_deleted = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_file_deleted;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_directory_created = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_directory_created;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_directory_moved = (void (*) (DirectoryMonitor *, GFile*, GFile*, GFileInfo*)) directory_monitor_real_notify_directory_moved;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_directory_altered = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_directory_altered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_directory_alteration_completed = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_directory_alteration_completed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_directory_attributes_altered = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_directory_attributes_altered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_directory_deleted = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_directory_deleted;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_closed = (void (*) (DirectoryMonitor *)) directory_monitor_real_notify_closed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->close = (void (*) (DirectoryMonitor *)) directory_monitor_real_close;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->root_moved = directory_monitor_real_root_moved;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->root_deleted = directory_monitor_real_root_deleted;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->discovery_started = directory_monitor_real_discovery_started;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->file_discovered = directory_monitor_real_file_discovered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->directory_discovered = directory_monitor_real_directory_discovered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->discovery_failed = directory_monitor_real_discovery_failed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->discovery_completed = directory_monitor_real_discovery_completed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->file_created = directory_monitor_real_file_created;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->file_moved = directory_monitor_real_file_moved;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->file_altered = directory_monitor_real_file_altered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->file_alteration_completed = directory_monitor_real_file_alteration_completed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->file_attributes_altered = directory_monitor_real_file_attributes_altered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->file_deleted = directory_monitor_real_file_deleted;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->directory_created = directory_monitor_real_directory_created;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->directory_moved = directory_monitor_real_directory_moved;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->directory_altered = directory_monitor_real_directory_altered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->directory_alteration_completed = directory_monitor_real_directory_alteration_completed;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->directory_attributes_altered = directory_monitor_real_directory_attributes_altered;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->directory_deleted = directory_monitor_real_directory_deleted;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->closed = directory_monitor_real_closed;
-#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"
- directory_monitor_signals[DIRECTORY_MONITOR_ROOT_MOVED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_ROOT_DELETED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_STARTED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_FILE_DISCOVERED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_DISCOVERED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_FAILED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_COMPLETED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_FILE_CREATED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_FILE_MOVED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_FILE_ALTERED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_FILE_ALTERATION_COMPLETED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_FILE_ATTRIBUTES_ALTERED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_FILE_DELETED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_CREATED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_MOVED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ALTERED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ALTERATION_COMPLETED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ATTRIBUTES_ALTERED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_DELETED_SIGNAL] = 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"
- directory_monitor_signals[DIRECTORY_MONITOR_CLOSED_SIGNAL] = 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 9332 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_instance_init (DirectoryMonitor * self)
-{
- GeeHashMap* _tmp0_;
- GeeLinkedList* _tmp1_;
- DirectoryMonitorFileInfoMap* _tmp2_;
- DirectoryMonitorFileInfoMap* _tmp3_;
- GCancellable* _tmp4_;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv = DIRECTORY_MONITOR_GET_PRIVATE (self);
-#line 374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, g_file_monitor_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->monitors = _tmp0_;
-#line 375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp1_ = gee_linked_list_new (DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, (GBoxedCopyFunc) directory_monitor_query_info_queue_element_ref, (GDestroyNotify) directory_monitor_query_info_queue_element_unref, NULL, NULL, NULL);
-#line 375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->query_info_queue = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_QUEUE, GeeQueue);
-#line 377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp2_ = directory_monitor_file_info_map_new ();
-#line 377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->files = _tmp2_;
-#line 378 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp3_ = directory_monitor_file_info_map_new ();
-#line 378 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->parent_moved = _tmp3_;
-#line 379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _tmp4_ = g_cancellable_new ();
-#line 379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->cancellable = _tmp4_;
-#line 380 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->outstanding_exploration_dirs = 0;
-#line 381 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->started = FALSE;
-#line 382 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->has_discovery_started = FALSE;
-#line 383 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self->priv->delete_timer_id = (guint) 0;
-#line 9374 "DirectoryMonitor.c"
-}
-
-
-static void
-directory_monitor_finalize (GObject * obj)
-{
- DirectoryMonitor * self;
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECTORY_MONITOR, DirectoryMonitor);
-#line 371 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->priv->root);
-#line 374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->priv->monitors);
-#line 375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->priv->query_info_queue);
-#line 377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_file_info_map_unref0 (self->priv->files);
-#line 378 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _directory_monitor_file_info_map_unref0 (self->priv->parent_moved);
-#line 379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala"
- G_OBJECT_CLASS (directory_monitor_parent_class)->finalize (obj);
-#line 9398 "DirectoryMonitor.c"
-}
-
-
-GType
-directory_monitor_get_type (void)
-{
- static volatile gsize directory_monitor_type_id__volatile = 0;
- if (g_once_init_enter (&directory_monitor_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectoryMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) directory_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectoryMonitor), 0, (GInstanceInitFunc) directory_monitor_instance_init, NULL };
- GType directory_monitor_type_id;
- directory_monitor_type_id = g_type_register_static (G_TYPE_OBJECT, "DirectoryMonitor", &g_define_type_info, 0);
- g_once_init_leave (&directory_monitor_type_id__volatile, directory_monitor_type_id);
- }
- return directory_monitor_type_id__volatile;
-}
-
-
-
diff --git a/src/Event.c b/src/Event.c
deleted file mode 100644
index 7ebadad..0000000
--- a/src/Event.c
+++ /dev/null
@@ -1,7743 +0,0 @@
-/* Event.c generated by valac 0.40.4, the Vala compiler
- * generated from Event.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <time.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n-lib.h>
-
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-typedef struct _ContainerSourceCollectionPrivate ContainerSourceCollectionPrivate;
-
-#define TYPE_CONTAINER_SOURCE (container_source_get_type ())
-#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource))
-#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE))
-#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface))
-
-typedef struct _ContainerSource ContainerSource;
-typedef struct _ContainerSourceIface ContainerSourceIface;
-
-#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ())
-#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection))
-#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION))
-#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION))
-#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-
-typedef struct _EventSourceCollection EventSourceCollection;
-typedef struct _EventSourceCollectionClass EventSourceCollectionClass;
-typedef struct _EventSourceCollectionPrivate EventSourceCollectionPrivate;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER (event_source_collection_no_event_view_manager_get_type ())
-#define EVENT_SOURCE_COLLECTION_NO_EVENT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManager))
-#define EVENT_SOURCE_COLLECTION_NO_EVENT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManagerClass))
-#define EVENT_SOURCE_COLLECTION_IS_NO_EVENT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER))
-#define EVENT_SOURCE_COLLECTION_IS_NO_EVENT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER))
-#define EVENT_SOURCE_COLLECTION_NO_EVENT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManagerClass))
-
-typedef struct _EventSourceCollectionNoEventViewManager EventSourceCollectionNoEventViewManager;
-typedef struct _EventSourceCollectionNoEventViewManagerClass EventSourceCollectionNoEventViewManagerClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_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;
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _EventSourceCollectionNoEventViewManagerPrivate EventSourceCollectionNoEventViewManagerPrivate;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-enum {
- EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL,
- EVENT_SOURCE_COLLECTION_NUM_SIGNALS
-};
-static guint event_source_collection_signals[EVENT_SOURCE_COLLECTION_NUM_SIGNALS] = {0};
-typedef struct _DataObjectPrivate DataObjectPrivate;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-typedef struct _EventSourcePrivate EventSourcePrivate;
-
-#define TYPE_PROXYABLE (proxyable_get_type ())
-#define PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROXYABLE, Proxyable))
-#define IS_PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROXYABLE))
-#define PROXYABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_PROXYABLE, ProxyableIface))
-
-typedef struct _Proxyable Proxyable;
-typedef struct _ProxyableIface ProxyableIface;
-
-#define TYPE_SOURCE_PROXY (source_proxy_get_type ())
-#define SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_PROXY, SourceProxy))
-#define SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_PROXY, SourceProxyClass))
-#define IS_SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_PROXY))
-#define IS_SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_PROXY))
-#define SOURCE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_PROXY, SourceProxyClass))
-
-typedef struct _SourceProxy SourceProxy;
-typedef struct _SourceProxyClass SourceProxyClass;
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-typedef struct _EventPrivate EventPrivate;
-enum {
- EVENT_0_PROPERTY,
- EVENT_NUM_PROPERTIES
-};
-static GParamSpec* event_properties[EVENT_NUM_PROPERTIES];
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_EVENT_TABLE (event_table_get_type ())
-#define EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_TABLE, EventTable))
-#define EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_TABLE, EventTableClass))
-#define IS_EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_TABLE))
-#define IS_EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_TABLE))
-#define EVENT_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_TABLE, EventTableClass))
-
-typedef struct _EventTable EventTable;
-typedef struct _EventTableClass EventTableClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_EVENT_ROW (event_row_get_type ())
-#define EVENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_ROW, EventRow))
-#define EVENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_ROW, EventRowClass))
-#define IS_EVENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_ROW))
-#define IS_EVENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_ROW))
-#define EVENT_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_ROW, EventRowClass))
-
-typedef struct _EventRow EventRow;
-typedef struct _EventRowClass EventRowClass;
-typedef struct _EventRowPrivate EventRowPrivate;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _event_row_unref0(var) ((var == NULL) ? NULL : (var = (event_row_unref (var), NULL)))
-
-#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ())
-
-#define TYPE_RATING (rating_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _source_backlink_unref0(var) ((var == NULL) ? NULL : (var = (source_backlink_unref (var), NULL)))
-
-#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 (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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-
-#define TYPE_EVENT_VIEW (event_view_get_type ())
-#define EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_VIEW, EventView))
-#define EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_VIEW, EventViewClass))
-#define IS_EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_VIEW))
-#define IS_EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_VIEW))
-#define EVENT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_VIEW, EventViewClass))
-
-typedef struct _EventView EventView;
-typedef struct _EventViewClass EventViewClass;
-
-#define EVENT_TYPE_EVENT_SNAPSHOT (event_event_snapshot_get_type ())
-#define EVENT_EVENT_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshot))
-#define EVENT_EVENT_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshotClass))
-#define EVENT_IS_EVENT_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENT_TYPE_EVENT_SNAPSHOT))
-#define EVENT_IS_EVENT_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENT_TYPE_EVENT_SNAPSHOT))
-#define EVENT_EVENT_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshotClass))
-
-typedef struct _EventEventSnapshot EventEventSnapshot;
-typedef struct _EventEventSnapshotClass EventEventSnapshotClass;
-
-#define EVENT_TYPE_EVENT_PROXY (event_event_proxy_get_type ())
-#define EVENT_EVENT_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENT_TYPE_EVENT_PROXY, EventEventProxy))
-#define EVENT_EVENT_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENT_TYPE_EVENT_PROXY, EventEventProxyClass))
-#define EVENT_IS_EVENT_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENT_TYPE_EVENT_PROXY))
-#define EVENT_IS_EVENT_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENT_TYPE_EVENT_PROXY))
-#define EVENT_EVENT_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENT_TYPE_EVENT_PROXY, EventEventProxyClass))
-
-typedef struct _EventEventProxy EventEventProxy;
-typedef struct _EventEventProxyClass EventEventProxyClass;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _Scaling Scaling;
-
-#define TYPE_PHOTO_TABLE (photo_table_get_type ())
-#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable))
-#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass))
-#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE))
-#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE))
-#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass))
-
-typedef struct _PhotoTable PhotoTable;
-typedef struct _PhotoTableClass PhotoTableClass;
-
-#define TYPE_VIDEO_TABLE (video_table_get_type ())
-#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable))
-#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass))
-#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE))
-#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE))
-#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass))
-
-typedef struct _VideoTable VideoTable;
-typedef struct _VideoTableClass VideoTableClass;
-typedef struct _SourceSnapshotPrivate SourceSnapshotPrivate;
-typedef struct _EventEventSnapshotPrivate EventEventSnapshotPrivate;
-typedef struct _SourceProxyPrivate SourceProxyPrivate;
-typedef struct _EventEventProxyPrivate EventEventProxyPrivate;
-#define _source_snapshot_unref0(var) ((var == NULL) ? NULL : (var = (source_snapshot_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _ContainerSourceIface {
- GTypeInterface parent_iface;
- gboolean (*has_links) (ContainerSource* self);
- SourceBacklink* (*get_backlink) (ContainerSource* self);
- void (*break_link) (ContainerSource* self, DataSource* source);
- void (*break_link_many) (ContainerSource* self, GeeCollection* sources);
- void (*establish_link) (ContainerSource* self, DataSource* source);
- void (*establish_link_many) (ContainerSource* self, GeeCollection* sources);
-};
-
-struct _ContainerSourceCollection {
- DatabaseSourceCollection parent_instance;
- ContainerSourceCollectionPrivate * priv;
-};
-
-struct _ContainerSourceCollectionClass {
- DatabaseSourceCollectionClass parent_class;
- void (*notify_container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
- void (*notify_container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
- void (*notify_container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
- void (*notify_backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
- GeeCollection* (*get_containers_holding_source) (ContainerSourceCollection* self, DataSource* source);
- ContainerSource* (*convert_backlink_to_container) (ContainerSourceCollection* self, SourceBacklink* backlink);
- void (*container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
- void (*container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
- void (*container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
- void (*backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
-};
-
-struct _EventSourceCollection {
- ContainerSourceCollection parent_instance;
- EventSourceCollectionPrivate * priv;
-};
-
-struct _EventSourceCollectionClass {
- ContainerSourceCollectionClass parent_class;
-};
-
-struct _EventSourceCollectionPrivate {
- ViewCollection* no_event;
-};
-
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-struct _EventID {
- gint64 id;
-};
-
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _EventSourceCollectionNoEventViewManager {
- ViewManager parent_instance;
- EventSourceCollectionNoEventViewManagerPrivate * priv;
-};
-
-struct _EventSourceCollectionNoEventViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _ThumbnailSource {
- DataSource parent_instance;
- ThumbnailSourcePrivate * priv;
-};
-
-struct _ThumbnailSourceClass {
- DataSourceClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailSource* self);
- GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- gchar* (*get_representative_id) (ThumbnailSource* self);
- PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self);
- void (*thumbnail_altered) (ThumbnailSource* self);
-};
-
-struct _EventSource {
- ThumbnailSource parent_instance;
- EventSourcePrivate * priv;
-};
-
-struct _EventSourceClass {
- ThumbnailSourceClass parent_class;
- time_t (*get_start_time) (EventSource* self);
- time_t (*get_end_time) (EventSource* self);
- guint64 (*get_total_filesize) (EventSource* self);
- gint (*get_media_count) (EventSource* self);
- GeeCollection* (*get_media) (EventSource* self);
- gchar* (*get_comment) (EventSource* self);
- gboolean (*set_comment) (EventSource* self, const gchar* comment);
-};
-
-struct _ProxyableIface {
- GTypeInterface parent_iface;
- SourceProxy* (*get_proxy) (Proxyable* self);
-};
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _Event {
- EventSource parent_instance;
- EventPrivate * priv;
-};
-
-struct _EventClass {
- EventSourceClass parent_class;
-};
-
-struct _EventPrivate {
- EventID event_id;
- gchar* raw_name;
- MediaSource* primary_source;
- ViewCollection* view;
- gboolean unlinking;
- gboolean relinking;
- gchar* indexable_keywords;
- gchar* comment;
-};
-
-struct _EventRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EventRowPrivate * priv;
- EventID event_id;
- gchar* name;
- time_t time_created;
- gchar* primary_source_id;
- gchar* comment;
-};
-
-struct _EventRowClass {
- GTypeClass parent_class;
- void (*finalize) (EventRow *self);
-};
-
-typedef enum {
- PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0,
- PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
- PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
- PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
- PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
-} PrepareInputTextOptions;
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-typedef DataView* (*CreateView) (DataSource* source, void* user_data);
-typedef gboolean (*CreateViewPredicate) (DataSource* source, void* user_data);
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _SourceSnapshot {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceSnapshotPrivate * priv;
-};
-
-struct _SourceSnapshotClass {
- GTypeClass parent_class;
- void (*finalize) (SourceSnapshot *self);
- void (*notify_broken) (SourceSnapshot* self);
- void (*broken) (SourceSnapshot* self);
-};
-
-struct _EventEventSnapshot {
- SourceSnapshot parent_instance;
- EventEventSnapshotPrivate * priv;
-};
-
-struct _EventEventSnapshotClass {
- SourceSnapshotClass parent_class;
-};
-
-struct _EventEventSnapshotPrivate {
- EventRow* row;
- MediaSource* primary_source;
- GeeArrayList* attached_sources;
-};
-
-struct _SourceProxy {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceProxyPrivate * priv;
-};
-
-struct _SourceProxyClass {
- GTypeClass parent_class;
- void (*finalize) (SourceProxy *self);
- DataSource* (*reconstitute) (SourceProxy* self, gint64 object_id, SourceSnapshot* snapshot);
- void (*notify_reconstituted) (SourceProxy* self, DataSource* source);
- void (*notify_dehydrated) (SourceProxy* self);
- void (*notify_broken) (SourceProxy* self);
- void (*reconstituted) (SourceProxy* self, DataSource* source);
- void (*dehydrated) (SourceProxy* self);
- void (*broken) (SourceProxy* self);
-};
-
-struct _EventEventProxy {
- SourceProxy parent_instance;
- EventEventProxyPrivate * priv;
-};
-
-struct _EventEventProxyClass {
- SourceProxyClass parent_class;
-};
-
-
-static gpointer event_source_collection_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-static gpointer event_source_collection_no_event_view_manager_parent_class = NULL;
-static gpointer event_parent_class = NULL;
-extern EventSourceCollection* event_global;
-EventSourceCollection* event_global = NULL;
-static EventTable* event_event_table;
-static EventTable* event_event_table = NULL;
-static gpointer event_event_snapshot_parent_class = NULL;
-static gpointer event_event_proxy_parent_class = NULL;
-static ContainerSourceIface * event_container_source_parent_iface = NULL;
-static ProxyableIface * event_proxyable_parent_iface = NULL;
-static IndexableIface * event_indexable_parent_iface = NULL;
-
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_get_type (void) G_GNUC_CONST;
-GType event_source_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-#define EVENT_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionPrivate))
-EventSourceCollection* event_source_collection_new (void);
-EventSourceCollection* event_source_collection_construct (GType object_type);
-#define EVENT_TYPENAME "event"
-static gint64 event_source_collection_get_event_key (DataSource* source);
-static gint64 _event_source_collection_get_event_key_get_source_database_key (DataSource* source,
- gpointer self);
-ContainerSourceCollection* container_source_collection_construct (GType object_type,
- const gchar* backlink_name,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-void container_source_collection_attach_collection (ContainerSourceCollection* self,
- SourceCollection* collection);
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-void event_source_collection_init (EventSourceCollection* self);
-ViewCollection* view_collection_new (const gchar* name);
-ViewCollection* view_collection_construct (GType object_type,
- const gchar* name);
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-static GType event_source_collection_no_event_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static EventSourceCollectionNoEventViewManager* event_source_collection_no_event_view_manager_new (void);
-static EventSourceCollectionNoEventViewManager* event_source_collection_no_event_view_manager_construct (GType object_type);
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-static void event_source_collection_on_no_event_collection_altered (EventSourceCollection* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void _event_source_collection_on_no_event_collection_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static gboolean event_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-void event_get_event_id (Event* self,
- EventID* result);
-Event* event_source_collection_fetch (EventSourceCollection* self,
- EventID* event_id);
-DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self,
- gint64 key);
-static GeeCollection* event_source_collection_real_get_containers_holding_source (ContainerSourceCollection* base,
- DataSource* source);
-GType media_source_get_type (void) G_GNUC_CONST;
-Event* media_source_get_event (MediaSource* self);
-static ContainerSource* event_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* base,
- SourceBacklink* backlink);
-gint64 source_backlink_get_instance_id (SourceBacklink* self);
-void event_id_init (EventID *self,
- gint64 id);
-GeeCollection* container_source_collection_get_holding_tank (ContainerSourceCollection* self);
-GeeCollection* event_source_collection_get_no_event_objects (EventSourceCollection* self);
-GeeCollection* view_collection_get_sources (ViewCollection* self);
-GType data_view_get_type (void) G_GNUC_CONST;
-static gboolean event_source_collection_no_event_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source);
-void media_source_get_event_id (MediaSource* self,
- EventID* result);
-#define EVENT_ID_INVALID ((gint64) -1)
-gboolean view_manager_include_in_view (ViewManager* self,
- DataSource* source);
-static DataView* event_source_collection_no_event_view_manager_real_create_view (ViewManager* base,
- DataSource* source);
-ThumbnailView* thumbnail_view_new (ThumbnailSource* source);
-ThumbnailView* thumbnail_view_construct (GType object_type,
- ThumbnailSource* source);
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-ViewManager* view_manager_construct (GType object_type);
-static void event_source_collection_finalize (DataCollection * obj);
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-gpointer source_proxy_ref (gpointer instance);
-void source_proxy_unref (gpointer instance);
-GParamSpec* param_spec_source_proxy (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_proxy (GValue* value,
- gpointer v_object);
-void value_take_source_proxy (GValue* value,
- gpointer v_object);
-gpointer value_get_source_proxy (const GValue* value);
-GType source_proxy_get_type (void) G_GNUC_CONST;
-GType proxyable_get_type (void) G_GNUC_CONST;
-GType indexable_get_type (void) G_GNUC_CONST;
-#define EVENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT, EventPrivate))
-static void event_on_primary_thumbnail_altered (Event* self);
-static void _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered (ThumbnailSource* _sender,
- gpointer self);
-static void event_on_media_altered (Event* self,
- GeeMap* items);
-static void _event_on_media_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void event_on_media_removed (Event* self,
- GeeIterable* removed);
-static void _event_on_media_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self);
-static void event_on_media_added (Event* self,
- GeeIterable* added);
-static void _event_on_media_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self);
-static void event_on_media_destroyed (Event* self,
- DataSource* source);
-static void _event_on_media_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType event_table_get_type (void) G_GNUC_CONST;
-#define EVENT_PROP_SHOW_COMMENTS "show-comments"
-#define EVENT_EVENT_BOUNDARY_HOUR 4
-#define EVENT_TIME_T_DAY ((time_t) ((24 * 60) * 60))
-gpointer event_row_ref (gpointer instance);
-void event_row_unref (gpointer instance);
-GParamSpec* param_spec_event_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_event_row (GValue* value,
- gpointer v_object);
-void value_take_event_row (GValue* value,
- gpointer v_object);
-gpointer value_get_event_row (const GValue* value);
-GType event_row_get_type (void) G_GNUC_CONST;
-static Event* event_new (EventRow* event_row,
- gint64 object_id);
-static Event* event_construct (GType object_type,
- EventRow* event_row,
- gint64 object_id);
-EventSource* event_source_construct (GType object_type,
- gint64 object_id);
-gchar* event_prep_event_name (const gchar* name);
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_source_ids_for_event_id (MediaCollectionRegistry* self,
- EventID* event_id);
-MediaSource* media_collection_registry_fetch_media (MediaCollectionRegistry* self,
- const gchar* source_id);
-void data_collection_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-static gint64 event_view_comparator (void* a,
- void* b);
-static gint64 _event_view_comparator_comparator (void* a,
- void* b,
- gpointer self);
-static gboolean event_view_comparator_predicate (DataObject* object,
- Alteration* alteration);
-static gboolean _event_view_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked);
-void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked);
-gint data_collection_get_count (DataCollection* self);
-DataView* view_collection_get_first_unrejected (ViewCollection* self);
-DataSource* data_view_get_source (DataView* self);
-gboolean event_table_set_primary_source_id (EventTable* self,
- EventID* event_id,
- const gchar* primary_source_id);
-gchar* data_source_get_source_id (DataSource* self);
-static void event_update_indexable_keywords (Event* self);
-static gchar* event_real_get_typename (DataSource* base);
-static gint64 event_real_get_instance_id (DataSource* base);
-static gchar* event_real_get_representative_id (ThumbnailSource* base);
-static PhotoFileFormat event_real_get_preferred_thumbnail_format (ThumbnailSource* base);
-PhotoFileFormat thumbnail_source_get_preferred_thumbnail_format (ThumbnailSource* self);
-PhotoFileFormat photo_file_format_get_system_default_format (void);
-static GdkPixbuf* event_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-GdkPixbuf* thumbnail_source_create_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-void event_init (ProgressMonitor monitor,
- void* monitor_target);
-EventTable* event_table_get_instance (void);
-GeeArrayList* event_table_get_events (EventTable* self);
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-gint event_source_get_media_count (EventSource* self);
-void data_source_rehydrate_backlinks (DataSource* self,
- SourceCollection* unlinked_from,
- const gchar* dehydrated);
-void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self,
- GeeCollection* unlinked);
-void event_terminate (void);
-time_t media_source_get_exposure_time (MediaSource* self);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
-gchar* prepare_input_text (const gchar* text,
- PrepareInputTextOptions options,
- gint dest_length);
-#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024
-void event_attach (Event* self,
- MediaSource* source);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-void event_attach_many (Event* self,
- GeeCollection* media);
-void event_detach (Event* self,
- MediaSource* source);
-void data_collection_remove_marked (DataCollection* self,
- Marker* m);
-Marker* data_collection_mark (DataCollection* self,
- DataObject* object);
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-void event_detach_many (Event* self,
- GeeCollection* media);
-Marker* data_collection_mark_many (DataCollection* self,
- GeeCollection* objects);
-gboolean event_contains_media_type (Event* self,
- const gchar* media_type);
-GeeCollection* event_source_get_media (EventSource* self);
-gchar* data_source_get_typename (DataSource* self);
-static GeeArrayList* event_views_to_media (Event* self,
- GeeIterable* views);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-Alteration* alteration_new_from_list (const gchar* list);
-Alteration* alteration_construct_from_list (GType object_type,
- const gchar* list);
-void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinked);
-gboolean event_set_primary_source (Event* self,
- MediaSource* source);
-static void event_release_primary_source (Event* self);
-void container_source_collection_evaporate (ContainerSourceCollection* self,
- ContainerSource* container);
-static void event_real_notify_relinking (DataSource* base,
- SourceCollection* sources);
-void data_source_notify_relinking (DataSource* self,
- SourceCollection* collection);
-gboolean event_has_name (Event* self);
-MediaSource* event_get_primary_source (Event* self);
-GType rating_get_type (void) G_GNUC_CONST;
-Rating media_source_get_rating (MediaSource* self);
-Event* event_create_empty_event (MediaSource* source);
-GQuark database_error_quark (void);
-EventRow* event_table_create (EventTable* self,
- const gchar* primary_source_id,
- const gchar* comment,
- GError** error);
-gchar* data_object_to_string (DataObject* self);
-void app_window_database_error (GError* err);
-static Event* event_reconstitute (gint64 object_id,
- EventRow* row);
-void event_table_create_from_row (EventTable* self,
- EventRow* row,
- EventID* result);
-gboolean data_collection_contains (DataCollection* self,
- DataObject* object);
-static gboolean event_real_has_links (ContainerSource* base);
-gboolean source_collection_has_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-SourceBacklink* container_source_get_backlink (ContainerSource* self);
-static SourceBacklink* event_real_get_backlink (ContainerSource* base);
-SourceBacklink* source_backlink_new_from_source (DataSource* source);
-SourceBacklink* source_backlink_construct_from_source (GType object_type,
- DataSource* source);
-static void event_real_break_link (ContainerSource* base,
- DataSource* source);
-gboolean media_source_set_event (MediaSource* self,
- Event* new_event);
-static void event_real_break_link_many (ContainerSource* base,
- GeeCollection* sources);
-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;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-void media_source_collection_filter_media (GeeCollection* media,
- GeeCollection* photos,
- GeeCollection* videos);
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-void media_source_set_many_to_event (GeeCollection* media_sources,
- Event* event,
- TransactionController* controller,
- GError** error);
-TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-static void event_real_establish_link (ContainerSource* base,
- DataSource* source);
-static void event_real_establish_link_many (ContainerSource* base,
- GeeCollection* sources);
-gchar* event_get_raw_name (Event* self);
-gchar* event_source_get_comment (EventSource* self);
-gchar* indexable_prepare_indexable_string (const gchar* str);
-static const gchar* event_real_get_indexable_keywords (Indexable* base);
-gboolean event_is_in_starting_day (Event* self,
- time_t time);
-DataObject* data_collection_get_at (DataCollection* self,
- gint index);
-static Event* event_generate_event (MediaSource* media,
- ViewCollection* events_so_far,
- const gchar* event_name,
- gboolean* new_event);
-GType event_view_get_type (void) G_GNUC_CONST;
-gchar* data_object_get_name (DataObject* self);
-gboolean event_rename (Event* self,
- const gchar* name);
-EventView* event_view_new (EventSource* source);
-EventView* event_view_construct (GType object_type,
- EventSource* source);
-void event_generate_single_event (MediaSource* media,
- ViewCollection* events_so_far,
- const gchar* event_name);
-void event_generate_many_events (GeeCollection* sources,
- ViewCollection* events_so_far);
-static SourceSnapshot* event_real_save_snapshot (DataSource* base);
-static EventEventSnapshot* event_event_snapshot_new (Event* event);
-static EventEventSnapshot* event_event_snapshot_construct (GType object_type,
- Event* event);
-static GType event_event_snapshot_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SourceProxy* event_real_get_proxy (Proxyable* base);
-static EventEventProxy* event_event_proxy_new (Event* event);
-static EventEventProxy* event_event_proxy_construct (GType object_type,
- Event* event);
-static GType event_event_proxy_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static gboolean event_real_equals (DataSource* base,
- DataSource* source);
-gboolean data_source_equals (DataSource* self,
- DataSource* source);
-static gchar* event_real_to_string (DataObject* base);
-gint64 data_object_get_object_id (DataObject* self);
-static gchar* event_real_get_name (DataObject* base);
-gchar* event_get_formatted_daterange (Event* self);
-gboolean is_string_empty (const gchar* s);
-time_t event_source_get_start_time (EventSource* self);
-time_t event_source_get_end_time (EventSource* self);
-gchar* format_local_date (struct tm* date);
-gchar* format_local_datespan (struct tm* from_date,
- struct tm* to_date);
-static gchar* event_real_get_comment (EventSource* base);
-gboolean event_table_rename (EventTable* self,
- EventID* event_id,
- const gchar* name);
-static gboolean event_real_set_comment (EventSource* base,
- const gchar* comment);
-gchar* media_source_prep_comment (const gchar* comment);
-gboolean event_table_set_comment (EventTable* self,
- EventID* event_id,
- const gchar* new_comment);
-time_t event_get_creation_time (Event* self);
-time_t event_table_get_time_created (EventTable* self,
- EventID* event_id);
-static time_t event_real_get_start_time (EventSource* base);
-static time_t event_real_get_end_time (EventSource* base);
-static guint64 event_real_get_total_filesize (EventSource* base);
-guint64 media_source_get_filesize (MediaSource* self);
-static gint event_real_get_media_count (EventSource* base);
-static GeeCollection* event_real_get_media (EventSource* base);
-void event_mirror_photos (Event* self,
- ViewCollection* view,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target);
-void view_collection_mirror (ViewCollection* self,
- ViewCollection* to_mirror,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target,
- CreateViewPredicate should_mirror,
- void* should_mirror_target);
-void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self);
-gboolean view_collection_has_view_for_source (ViewCollection* self,
- DataSource* source);
-static GdkPixbuf* event_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GdkPixbuf* event_get_preview_pixbuf (Event* self,
- Scaling* scaling);
-GdkPixbuf* media_source_get_preview_pixbuf (MediaSource* self,
- Scaling* scaling,
- GError** error);
-static void event_real_destroy (DataSource* base);
-void view_collection_halt_all_monitoring (ViewCollection* self);
-void event_table_remove (EventTable* self,
- EventID* event_id,
- GError** error);
-GType photo_table_get_type (void) G_GNUC_CONST;
-PhotoTable* photo_table_get_instance (void);
-gboolean photo_table_drop_event (PhotoTable* self,
- EventID* event_id);
-GType video_table_get_type (void) G_GNUC_CONST;
-VideoTable* video_table_get_instance (void);
-gboolean video_table_drop_event (VideoTable* self,
- EventID* event_id);
-void data_source_destroy (DataSource* self);
-#define EVENT_EVENT_SNAPSHOT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshotPrivate))
-static void event_event_snapshot_on_attached_source_destroyed (EventEventSnapshot* self,
- DataSource* source);
-static void _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-SourceSnapshot* source_snapshot_construct (GType object_type);
-EventRow* event_table_get_row (EventTable* self,
- EventID* event_id);
-static EventRow* event_event_snapshot_get_row (EventEventSnapshot* self);
-static void event_event_snapshot_real_notify_broken (SourceSnapshot* base);
-EventRow* event_row_new (void);
-EventRow* event_row_construct (GType object_type);
-void source_snapshot_notify_broken (SourceSnapshot* self);
-static void event_event_snapshot_finalize (SourceSnapshot * obj);
-SourceProxy* source_proxy_construct (GType object_type,
- DataSource* source);
-static DataSource* event_event_proxy_real_reconstitute (SourceProxy* base,
- gint64 object_id,
- SourceSnapshot* snapshot);
-static void event_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 gint64
-_event_source_collection_get_event_key_get_source_database_key (DataSource* source,
- gpointer self)
-{
- gint64 result;
- result = event_source_collection_get_event_key (source);
-#line 25 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1530 "Event.c"
-}
-
-
-EventSourceCollection*
-event_source_collection_construct (GType object_type)
-{
- EventSourceCollection* self = NULL;
- LibraryPhotoSourceCollection* _tmp0_;
- VideoSourceCollection* _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/Event.vala"
- self = (EventSourceCollection*) container_source_collection_construct (object_type, EVENT_TYPENAME, "EventSourceCollection", _event_source_collection_get_event_key_get_source_database_key, NULL);
-#line 27 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = library_photo_global;
-#line 27 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection));
-#line 28 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = video_global;
-#line 28 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_COLLECTION, SourceCollection));
-#line 24 "/home/jens/Source/shotwell/src/Event.vala"
- return self;
-#line 1552 "Event.c"
-}
-
-
-EventSourceCollection*
-event_source_collection_new (void)
-{
-#line 24 "/home/jens/Source/shotwell/src/Event.vala"
- return event_source_collection_construct (TYPE_EVENT_SOURCE_COLLECTION);
-#line 1561 "Event.c"
-}
-
-
-static void
-_event_source_collection_on_no_event_collection_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 40 "/home/jens/Source/shotwell/src/Event.vala"
- event_source_collection_on_no_event_collection_altered ((EventSourceCollection*) self, added, removed);
-#line 1573 "Event.c"
-}
-
-
-void
-event_source_collection_init (EventSourceCollection* self)
-{
- ViewCollection* _tmp0_;
- EventSourceCollectionNoEventViewManager* view_manager = NULL;
- EventSourceCollectionNoEventViewManager* _tmp1_;
- Alteration* filter_alteration = NULL;
- Alteration* _tmp2_;
- ViewCollection* _tmp3_;
- LibraryPhotoSourceCollection* _tmp4_;
- ViewCollectionMonitor* _tmp5_;
- ViewCollectionMonitor* _tmp6_;
- ViewCollection* _tmp7_;
- VideoSourceCollection* _tmp8_;
- ViewCollectionMonitor* _tmp9_;
- ViewCollectionMonitor* _tmp10_;
- ViewCollection* _tmp11_;
-#line 31 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT_SOURCE_COLLECTION (self));
-#line 32 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = view_collection_new ("No Event View Collection");
-#line 32 "/home/jens/Source/shotwell/src/Event.vala"
- _data_collection_unref0 (self->priv->no_event);
-#line 32 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->no_event = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_source_collection_no_event_view_manager_new ();
-#line 34 "/home/jens/Source/shotwell/src/Event.vala"
- view_manager = _tmp1_;
-#line 35 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = alteration_new ("metadata", "event");
-#line 35 "/home/jens/Source/shotwell/src/Event.vala"
- filter_alteration = _tmp2_;
-#line 37 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = self->priv->no_event;
-#line 37 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = library_photo_global;
-#line 37 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = view_collection_monitor_source_collection (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (view_manager, TYPE_VIEW_MANAGER, ViewManager), filter_alteration, NULL, NULL, NULL);
-#line 37 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_;
-#line 37 "/home/jens/Source/shotwell/src/Event.vala"
- _view_collection_monitor_unref0 (_tmp6_);
-#line 38 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = self->priv->no_event;
-#line 38 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = video_global;
-#line 38 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = view_collection_monitor_source_collection (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (view_manager, TYPE_VIEW_MANAGER, ViewManager), filter_alteration, NULL, NULL, NULL);
-#line 38 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = _tmp9_;
-#line 38 "/home/jens/Source/shotwell/src/Event.vala"
- _view_collection_monitor_unref0 (_tmp10_);
-#line 40 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = self->priv->no_event;
-#line 40 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _event_source_collection_on_no_event_collection_altered_data_collection_contents_altered, self);
-#line 31 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_unref0 (filter_alteration);
-#line 31 "/home/jens/Source/shotwell/src/Event.vala"
- _view_manager_unref0 (view_manager);
-#line 1638 "Event.c"
-}
-
-
-static gboolean
-event_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source)
-{
- EventSourceCollection * self;
- gboolean result = FALSE;
-#line 43 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection);
-#line 43 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 44 "/home/jens/Source/shotwell/src/Event.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_EVENT);
-#line 44 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1656 "Event.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 48 "/home/jens/Source/shotwell/src/Event.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1665 "Event.c"
-}
-
-
-static gint64
-event_source_collection_get_event_key (DataSource* source)
-{
- gint64 result = 0LL;
- Event* event = NULL;
- Event* _tmp0_;
- EventID event_id = {0};
- EventID _tmp1_ = {0};
- EventID _tmp2_;
- gint64 _tmp3_;
-#line 47 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL);
-#line 48 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event));
-#line 48 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp0_;
-#line 49 "/home/jens/Source/shotwell/src/Event.vala"
- event_get_event_id (event, &_tmp1_);
-#line 49 "/home/jens/Source/shotwell/src/Event.vala"
- event_id = _tmp1_;
-#line 51 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = event_id;
-#line 51 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp2_.id;
-#line 51 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp3_;
-#line 51 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 51 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1699 "Event.c"
-}
-
-
-Event*
-event_source_collection_fetch (EventSourceCollection* self,
- EventID* event_id)
-{
- Event* result = NULL;
- EventID _tmp0_;
- gint64 _tmp1_;
- DataSource* _tmp2_;
-#line 54 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE_COLLECTION (self), NULL);
-#line 54 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 55 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = *event_id;
-#line 55 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_.id;
-#line 55 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_);
-#line 55 "/home/jens/Source/shotwell/src/Event.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_EVENT, Event);
-#line 55 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1725 "Event.c"
-}
-
-
-static GeeCollection*
-event_source_collection_real_get_containers_holding_source (ContainerSourceCollection* base,
- DataSource* source)
-{
- EventSourceCollection * self;
- GeeCollection* result = NULL;
- Event* event = NULL;
- Event* _tmp0_;
- Event* _tmp1_;
- GeeArrayList* list = NULL;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
- Event* _tmp4_;
-#line 58 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection);
-#line 58 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 59 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 59 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event;
-#line 60 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ == NULL) {
-#line 61 "/home/jens/Source/shotwell/src/Event.vala"
- result = NULL;
-#line 61 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 61 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1760 "Event.c"
- }
-#line 63 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = gee_array_list_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 63 "/home/jens/Source/shotwell/src/Event.vala"
- list = _tmp2_;
-#line 64 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = list;
-#line 64 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = event;
-#line 64 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONTAINER_SOURCE, ContainerSource));
-#line 66 "/home/jens/Source/shotwell/src/Event.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_COLLECTION, GeeCollection);
-#line 66 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 66 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1778 "Event.c"
-}
-
-
-static ContainerSource*
-event_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* base,
- SourceBacklink* backlink)
-{
- EventSourceCollection * self;
- ContainerSource* result = NULL;
- EventID event_id = {0};
- gint64 _tmp0_;
- gint64 _tmp1_;
- Event* event = NULL;
- EventID _tmp2_;
- Event* _tmp3_;
- Event* _tmp4_;
-#line 69 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection);
-#line 69 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), NULL);
-#line 70 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = source_backlink_get_instance_id (backlink);
-#line 70 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_;
-#line 70 "/home/jens/Source/shotwell/src/Event.vala"
- event_id_init (&event_id, _tmp1_);
-#line 72 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = event_id;
-#line 72 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = event_source_collection_fetch (self, &_tmp2_);
-#line 72 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp3_;
-#line 73 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = event;
-#line 73 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp4_ != NULL) {
-#line 74 "/home/jens/Source/shotwell/src/Event.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_CONTAINER_SOURCE, ContainerSource);
-#line 74 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1819 "Event.c"
- }
- {
- GeeIterator* _container_it = NULL;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
- GeeIterator* _tmp8_;
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection));
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_;
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_;
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp6_);
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _container_it = _tmp8_;
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 1841 "Event.c"
- GeeIterator* _tmp9_;
- ContainerSource* container = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- ContainerSource* _tmp12_;
- EventID _tmp13_ = {0};
- gint64 _tmp14_;
- EventID _tmp15_;
- gint64 _tmp16_;
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = _container_it;
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 1857 "Event.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = _container_it;
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- container = (ContainerSource*) _tmp11_;
-#line 77 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = container;
-#line 77 "/home/jens/Source/shotwell/src/Event.vala"
- event_get_event_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_EVENT, Event), &_tmp13_);
-#line 77 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = _tmp13_.id;
-#line 77 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = event_id;
-#line 77 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = _tmp15_.id;
-#line 77 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp14_ == _tmp16_) {
-#line 78 "/home/jens/Source/shotwell/src/Event.vala"
- result = container;
-#line 78 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_container_it);
-#line 78 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 78 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1885 "Event.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (container);
-#line 1889 "Event.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_container_it);
-#line 1893 "Event.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/Event.vala"
- result = NULL;
-#line 81 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 81 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1901 "Event.c"
-}
-
-
-GeeCollection*
-event_source_collection_get_no_event_objects (EventSourceCollection* self)
-{
- GeeCollection* result = NULL;
- ViewCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 84 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE_COLLECTION (self), NULL);
-#line 85 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->no_event;
-#line 85 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = view_collection_get_sources (_tmp0_);
-#line 85 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp1_;
-#line 85 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1921 "Event.c"
-}
-
-
-static void
-event_source_collection_on_no_event_collection_altered (EventSourceCollection* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
-#line 88 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT_SOURCE_COLLECTION (self));
-#line 88 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 88 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 90 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_emit (self, event_source_collection_signals[EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL], 0);
-#line 1938 "Event.c"
-}
-
-
-static gboolean
-event_source_collection_no_event_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source)
-{
- EventSourceCollectionNoEventViewManager * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- EventID _tmp1_ = {0};
- gint64 _tmp2_;
-#line 13 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManager);
-#line 13 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 15 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_get_event_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), &_tmp1_);
-#line 15 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp1_.id;
-#line 15 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp2_ != EVENT_ID_INVALID) {
-#line 15 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = FALSE;
-#line 1963 "Event.c"
- } else {
-#line 16 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = VIEW_MANAGER_CLASS (event_source_collection_no_event_view_manager_parent_class)->include_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIEW_MANAGER, ViewManager), source);
-#line 1967 "Event.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1973 "Event.c"
-}
-
-
-static DataView*
-event_source_collection_no_event_view_manager_real_create_view (ViewManager* base,
- DataSource* source)
-{
- EventSourceCollectionNoEventViewManager * self;
- DataView* result = NULL;
- ThumbnailView* _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManager);
-#line 19 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 20 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 20 "/home/jens/Source/shotwell/src/Event.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView);
-#line 20 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 1994 "Event.c"
-}
-
-
-static EventSourceCollectionNoEventViewManager*
-event_source_collection_no_event_view_manager_construct (GType object_type)
-{
- EventSourceCollectionNoEventViewManager* self = NULL;
-#line 12 "/home/jens/Source/shotwell/src/Event.vala"
- self = (EventSourceCollectionNoEventViewManager*) view_manager_construct (object_type);
-#line 12 "/home/jens/Source/shotwell/src/Event.vala"
- return self;
-#line 2006 "Event.c"
-}
-
-
-static EventSourceCollectionNoEventViewManager*
-event_source_collection_no_event_view_manager_new (void)
-{
-#line 12 "/home/jens/Source/shotwell/src/Event.vala"
- return event_source_collection_no_event_view_manager_construct (EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER);
-#line 2015 "Event.c"
-}
-
-
-static void
-event_source_collection_no_event_view_manager_class_init (EventSourceCollectionNoEventViewManagerClass * klass)
-{
-#line 12 "/home/jens/Source/shotwell/src/Event.vala"
- event_source_collection_no_event_view_manager_parent_class = g_type_class_peek_parent (klass);
-#line 12 "/home/jens/Source/shotwell/src/Event.vala"
- ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) event_source_collection_no_event_view_manager_real_include_in_view;
-#line 12 "/home/jens/Source/shotwell/src/Event.vala"
- ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) event_source_collection_no_event_view_manager_real_create_view;
-#line 2028 "Event.c"
-}
-
-
-static void
-event_source_collection_no_event_view_manager_instance_init (EventSourceCollectionNoEventViewManager * self)
-{
-}
-
-
-static GType
-event_source_collection_no_event_view_manager_get_type (void)
-{
- static volatile gsize event_source_collection_no_event_view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&event_source_collection_no_event_view_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventSourceCollectionNoEventViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_source_collection_no_event_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventSourceCollectionNoEventViewManager), 0, (GInstanceInitFunc) event_source_collection_no_event_view_manager_instance_init, NULL };
- GType event_source_collection_no_event_view_manager_type_id;
- event_source_collection_no_event_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "EventSourceCollectionNoEventViewManager", &g_define_type_info, 0);
- g_once_init_leave (&event_source_collection_no_event_view_manager_type_id__volatile, event_source_collection_no_event_view_manager_type_id);
- }
- return event_source_collection_no_event_view_manager_type_id__volatile;
-}
-
-
-static void
-event_source_collection_class_init (EventSourceCollectionClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- event_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataCollectionClass *) klass)->finalize = event_source_collection_finalize;
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- g_type_class_add_private (klass, sizeof (EventSourceCollectionPrivate));
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) event_source_collection_real_holds_type_of_source;
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- ((ContainerSourceCollectionClass *) klass)->get_containers_holding_source = (GeeCollection* (*) (ContainerSourceCollection *, DataSource*)) event_source_collection_real_get_containers_holding_source;
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- ((ContainerSourceCollectionClass *) klass)->convert_backlink_to_container = (ContainerSource* (*) (ContainerSourceCollection *, SourceBacklink*)) event_source_collection_real_convert_backlink_to_container;
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- event_source_collection_signals[EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL] = g_signal_new ("no-event-collection-altered", TYPE_EVENT_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 2069 "Event.c"
-}
-
-
-static void
-event_source_collection_instance_init (EventSourceCollection * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv = EVENT_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 2078 "Event.c"
-}
-
-
-static void
-event_source_collection_finalize (DataCollection * obj)
-{
- EventSourceCollection * self;
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection);
-#line 10 "/home/jens/Source/shotwell/src/Event.vala"
- _data_collection_unref0 (self->priv->no_event);
-#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- DATA_COLLECTION_CLASS (event_source_collection_parent_class)->finalize (obj);
-#line 2092 "Event.c"
-}
-
-
-GType
-event_source_collection_get_type (void)
-{
- static volatile gsize event_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&event_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventSourceCollection), 0, (GInstanceInitFunc) event_source_collection_instance_init, NULL };
- GType event_source_collection_type_id;
- event_source_collection_type_id = g_type_register_static (TYPE_CONTAINER_SOURCE_COLLECTION, "EventSourceCollection", &g_define_type_info, 0);
- g_once_init_leave (&event_source_collection_type_id__volatile, event_source_collection_type_id);
- }
- return event_source_collection_type_id__volatile;
-}
-
-
-static void
-_event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered (ThumbnailSource* _sender,
- gpointer self)
-{
-#line 238 "/home/jens/Source/shotwell/src/Event.vala"
- event_on_primary_thumbnail_altered ((Event*) self);
-#line 2116 "Event.c"
-}
-
-
-static void
-_event_on_media_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 240 "/home/jens/Source/shotwell/src/Event.vala"
- event_on_media_altered ((Event*) self, items);
-#line 2127 "Event.c"
-}
-
-
-static void
-_event_on_media_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self)
-{
-#line 241 "/home/jens/Source/shotwell/src/Event.vala"
- event_on_media_removed ((Event*) self, removed);
-#line 2138 "Event.c"
-}
-
-
-static void
-_event_on_media_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self)
-{
-#line 242 "/home/jens/Source/shotwell/src/Event.vala"
- event_on_media_added ((Event*) self, added);
-#line 2149 "Event.c"
-}
-
-
-static void
-_event_on_media_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 244 "/home/jens/Source/shotwell/src/Event.vala"
- event_on_media_destroyed ((Event*) self, source);
-#line 2160 "Event.c"
-}
-
-
-static gint64
-_event_view_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = event_view_comparator (a, b);
-#line 201 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2173 "Event.c"
-}
-
-
-static gboolean
-_event_view_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self)
-{
- gboolean result;
- result = event_view_comparator_predicate (object, alteration);
-#line 201 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2186 "Event.c"
-}
-
-
-static Event*
-event_construct (GType object_type,
- EventRow* event_row,
- gint64 object_id)
-{
- Event * self = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- EventID _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- GeeCollection* event_source_ids = NULL;
- MediaCollectionRegistry* _tmp7_;
- MediaCollectionRegistry* _tmp8_;
- EventID _tmp9_;
- GeeCollection* _tmp10_;
- GeeCollection* _tmp11_;
- GeeArrayList* event_thumbs = NULL;
- GeeArrayList* _tmp12_;
- EventID _tmp28_;
- gint64 _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- ViewCollection* _tmp34_;
- ViewCollection* _tmp35_;
- ViewCollection* _tmp36_;
- GeeArrayList* _tmp37_;
- GeeCollection* _tmp38_;
- GeeCollection* _tmp39_;
- GeeArrayList* _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- MediaCollectionRegistry* _tmp47_;
- MediaCollectionRegistry* _tmp48_;
- const gchar* _tmp49_;
- MediaSource* _tmp50_;
- gboolean _tmp51_ = FALSE;
- MediaSource* _tmp52_;
- MediaSource* _tmp63_;
- ViewCollection* _tmp65_;
- ViewCollection* _tmp66_;
- ViewCollection* _tmp67_;
- LibraryPhotoSourceCollection* _tmp68_;
- VideoSourceCollection* _tmp69_;
-#line 180 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT_ROW (event_row), NULL);
-#line 181 "/home/jens/Source/shotwell/src/Event.vala"
- self = (Event*) event_source_construct (object_type, object_id);
-#line 184 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_row->name;
-#line 184 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_prep_event_name (_tmp0_);
-#line 184 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (event_row->name);
-#line 184 "/home/jens/Source/shotwell/src/Event.vala"
- event_row->name = _tmp1_;
-#line 186 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = event_row->event_id;
-#line 186 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->event_id = _tmp2_;
-#line 187 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = event_row->name;
-#line 187 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = g_strdup (_tmp3_);
-#line 187 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->raw_name);
-#line 187 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->raw_name = _tmp4_;
-#line 188 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = event_row->comment;
-#line 188 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 188 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->comment);
-#line 188 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->comment = _tmp6_;
-#line 190 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = media_collection_registry_get_instance ();
-#line 190 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_;
-#line 190 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = self->priv->event_id;
-#line 190 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = media_collection_registry_get_source_ids_for_event_id (_tmp8_, &_tmp9_);
-#line 190 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = _tmp10_;
-#line 190 "/home/jens/Source/shotwell/src/Event.vala"
- _media_collection_registry_unref0 (_tmp8_);
-#line 190 "/home/jens/Source/shotwell/src/Event.vala"
- event_source_ids = _tmp11_;
-#line 192 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 192 "/home/jens/Source/shotwell/src/Event.vala"
- event_thumbs = _tmp12_;
-#line 2288 "Event.c"
- {
- GeeIterator* _current_source_id_it = NULL;
- GeeCollection* _tmp13_;
- GeeIterator* _tmp14_;
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = event_source_ids;
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _current_source_id_it = _tmp14_;
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 2301 "Event.c"
- GeeIterator* _tmp15_;
- gchar* current_source_id = NULL;
- GeeIterator* _tmp16_;
- gpointer _tmp17_;
- MediaSource* media = NULL;
- MediaCollectionRegistry* _tmp18_;
- MediaCollectionRegistry* _tmp19_;
- const gchar* _tmp20_;
- MediaSource* _tmp21_;
- MediaSource* _tmp22_;
- MediaSource* _tmp23_;
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = _current_source_id_it;
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp15_)) {
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 2319 "Event.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = _current_source_id_it;
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = gee_iterator_get (_tmp16_);
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- current_source_id = (gchar*) _tmp17_;
-#line 194 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = media_collection_registry_get_instance ();
-#line 194 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = _tmp18_;
-#line 194 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = current_source_id;
-#line 194 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp21_ = media_collection_registry_fetch_media (_tmp19_, _tmp20_);
-#line 194 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp22_ = _tmp21_;
-#line 194 "/home/jens/Source/shotwell/src/Event.vala"
- _media_collection_registry_unref0 (_tmp19_);
-#line 194 "/home/jens/Source/shotwell/src/Event.vala"
- media = _tmp22_;
-#line 196 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp23_ = media;
-#line 196 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp23_ != NULL) {
-#line 2345 "Event.c"
- GeeArrayList* _tmp24_;
- MediaSource* _tmp25_;
- ThumbnailView* _tmp26_;
- ThumbnailView* _tmp27_;
-#line 197 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp24_ = event_thumbs;
-#line 197 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp25_ = media;
-#line 197 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp26_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 197 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp27_ = _tmp26_;
-#line 197 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp27_);
-#line 197 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp27_);
-#line 2362 "Event.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (current_source_id);
-#line 2368 "Event.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_current_source_id_it);
-#line 2372 "Event.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp28_ = self->priv->event_id;
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp29_ = _tmp28_.id;
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp30_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp29_);
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp31_ = _tmp30_;
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp32_ = g_strdup_printf ("ViewCollection for Event %s", _tmp31_);
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp33_ = _tmp32_;
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp34_ = view_collection_new (_tmp33_);
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _data_collection_unref0 (self->priv->view);
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->view = _tmp34_;
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp33_);
-#line 200 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp31_);
-#line 201 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp35_ = self->priv->view;
-#line 201 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_DATA_COLLECTION, DataCollection), _event_view_comparator_comparator, NULL, _event_view_comparator_predicate_comparator_predicate, NULL);
-#line 202 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp36_ = self->priv->view;
-#line 202 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp37_ = event_thumbs;
-#line 202 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp38_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 202 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp39_ = _tmp38_;
-#line 202 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp39_);
-#line 206 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp40_ = event_thumbs;
-#line 206 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp41_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 206 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp42_ = _tmp41_;
-#line 206 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp42_ > 0) {
-#line 2418 "Event.c"
- EventSourceCollection* _tmp43_;
- GeeArrayList* _tmp44_;
- EventSourceCollection* _tmp45_;
- GeeArrayList* _tmp46_;
-#line 207 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp43_ = event_global;
-#line 207 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp44_ = event_thumbs;
-#line 207 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection), FALSE);
-#line 208 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp45_ = event_global;
-#line 208 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp46_ = event_thumbs;
-#line 208 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, FALSE);
-#line 2435 "Event.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp47_ = media_collection_registry_get_instance ();
-#line 213 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp48_ = _tmp47_;
-#line 213 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp49_ = event_row->primary_source_id;
-#line 213 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp50_ = media_collection_registry_fetch_media (_tmp48_, _tmp49_);
-#line 213 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->primary_source);
-#line 213 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->primary_source = _tmp50_;
-#line 213 "/home/jens/Source/shotwell/src/Event.vala"
- _media_collection_registry_unref0 (_tmp48_);
-#line 214 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp52_ = self->priv->primary_source;
-#line 214 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp52_ == NULL) {
-#line 2455 "Event.c"
- ViewCollection* _tmp53_;
-#line 214 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp53_ = self->priv->view;
-#line 214 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp51_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_DATA_COLLECTION, DataCollection)) > 0;
-#line 2461 "Event.c"
- } else {
-#line 214 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp51_ = FALSE;
-#line 2465 "Event.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp51_) {
-#line 2469 "Event.c"
- ViewCollection* _tmp54_;
- DataView* _tmp55_;
- DataView* _tmp56_;
- DataSource* _tmp57_;
- EventTable* _tmp58_;
- EventID _tmp59_;
- MediaSource* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
-#line 215 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp54_ = self->priv->view;
-#line 215 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp55_ = view_collection_get_first_unrejected (_tmp54_);
-#line 215 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp56_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_DATA_VIEW, DataView);
-#line 215 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp57_ = data_view_get_source (_tmp56_);
-#line 215 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->primary_source);
-#line 215 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->primary_source = G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 215 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp56_);
-#line 216 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp58_ = event_event_table;
-#line 216 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp59_ = self->priv->event_id;
-#line 216 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp60_ = self->priv->primary_source;
-#line 216 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp61_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_DATA_SOURCE, DataSource));
-#line 216 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp62_ = _tmp61_;
-#line 216 "/home/jens/Source/shotwell/src/Event.vala"
- event_table_set_primary_source_id (_tmp58_, &_tmp59_, _tmp62_);
-#line 216 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp62_);
-#line 2507 "Event.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp63_ = self->priv->primary_source;
-#line 220 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp63_ != NULL) {
-#line 2513 "Event.c"
- MediaSource* _tmp64_;
-#line 221 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp64_ = self->priv->primary_source;
-#line 221 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), "thumbnail-altered", (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self, 0);
-#line 2519 "Event.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp65_ = self->priv->view;
-#line 224 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_DATA_COLLECTION, DataCollection), "items-added", (GCallback) _event_on_media_added_data_collection_items_added, self, 0);
-#line 225 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp66_ = self->priv->view;
-#line 225 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_DATA_COLLECTION, DataCollection), "items-removed", (GCallback) _event_on_media_removed_data_collection_items_removed, self, 0);
-#line 226 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp67_ = self->priv->view;
-#line 226 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _event_on_media_altered_data_collection_items_altered, self, 0);
-#line 230 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp68_ = library_photo_global;
-#line 230 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_on_media_destroyed_source_collection_item_destroyed, self, 0);
-#line 231 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp69_ = video_global;
-#line 231 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_on_media_destroyed_source_collection_item_destroyed, self, 0);
-#line 233 "/home/jens/Source/shotwell/src/Event.vala"
- event_update_indexable_keywords (self);
-#line 180 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event_thumbs);
-#line 180 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event_source_ids);
-#line 180 "/home/jens/Source/shotwell/src/Event.vala"
- return self;
-#line 2549 "Event.c"
-}
-
-
-static Event*
-event_new (EventRow* event_row,
- gint64 object_id)
-{
-#line 180 "/home/jens/Source/shotwell/src/Event.vala"
- return event_construct (TYPE_EVENT, event_row, object_id);
-#line 2559 "Event.c"
-}
-
-
-static gchar*
-event_real_get_typename (DataSource* base)
-{
- Event * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 248 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 249 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = g_strdup (EVENT_TYPENAME);
-#line 249 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 249 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2577 "Event.c"
-}
-
-
-static gint64
-event_real_get_instance_id (DataSource* base)
-{
- Event * self;
- gint64 result = 0LL;
- EventID _tmp0_ = {0};
- gint64 _tmp1_;
-#line 252 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 253 "/home/jens/Source/shotwell/src/Event.vala"
- event_get_event_id (self, &_tmp0_);
-#line 253 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_.id;
-#line 253 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp1_;
-#line 253 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2598 "Event.c"
-}
-
-
-static gchar*
-event_real_get_representative_id (ThumbnailSource* base)
-{
- Event * self;
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- MediaSource* _tmp1_;
-#line 256 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->primary_source;
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ != NULL) {
-#line 2615 "Event.c"
- MediaSource* _tmp2_;
- gchar* _tmp3_;
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->primary_source;
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource));
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp0_);
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _tmp3_;
-#line 2626 "Event.c"
- } else {
- gchar* _tmp4_;
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp0_);
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _tmp4_;
-#line 2635 "Event.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2641 "Event.c"
-}
-
-
-static PhotoFileFormat
-event_real_get_preferred_thumbnail_format (ThumbnailSource* base)
-{
- Event * self;
- PhotoFileFormat result = 0;
- PhotoFileFormat _tmp0_ = 0;
- MediaSource* _tmp1_;
-#line 260 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 261 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->primary_source;
-#line 261 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ != NULL) {
-#line 2658 "Event.c"
- MediaSource* _tmp2_;
-#line 261 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->primary_source;
-#line 261 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = thumbnail_source_get_preferred_thumbnail_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 2664 "Event.c"
- } else {
-#line 262 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = photo_file_format_get_system_default_format ();
-#line 2668 "Event.c"
- }
-#line 261 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 261 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2674 "Event.c"
-}
-
-
-static GdkPixbuf*
-event_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- Event * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- MediaSource* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 265 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->primary_source;
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ != NULL) {
-#line 2694 "Event.c"
- MediaSource* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->primary_source;
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = thumbnail_source_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_);
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp0_);
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _tmp3_;
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- g_propagate_error (error, _inner_error_);
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp0_);
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- return NULL;
-#line 2713 "Event.c"
- }
- } else {
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp0_);
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = NULL;
-#line 2720 "Event.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 266 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2726 "Event.c"
-}
-
-
-void
-event_init (ProgressMonitor monitor,
- void* monitor_target)
-{
- EventTable* _tmp0_;
- EventSourceCollection* _tmp1_;
- EventSourceCollection* _tmp2_;
- GeeArrayList* events = NULL;
- GeeArrayList* _tmp3_;
- GeeArrayList* unlinked = NULL;
- GeeArrayList* _tmp4_;
- GeeArrayList* event_rows = NULL;
- EventTable* _tmp5_;
- GeeArrayList* _tmp6_;
- gint count = 0;
- GeeArrayList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- EventSourceCollection* _tmp29_;
- GeeArrayList* _tmp30_;
- GeeCollection* _tmp31_;
- GeeCollection* _tmp32_;
- EventSourceCollection* _tmp33_;
- GeeArrayList* _tmp34_;
-#line 270 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_table_get_instance ();
-#line 270 "/home/jens/Source/shotwell/src/Event.vala"
- _database_table_unref0 (event_event_table);
-#line 270 "/home/jens/Source/shotwell/src/Event.vala"
- event_event_table = _tmp0_;
-#line 271 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_source_collection_new ();
-#line 271 "/home/jens/Source/shotwell/src/Event.vala"
- _data_collection_unref0 (event_global);
-#line 271 "/home/jens/Source/shotwell/src/Event.vala"
- event_global = _tmp1_;
-#line 272 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = event_global;
-#line 272 "/home/jens/Source/shotwell/src/Event.vala"
- event_source_collection_init (_tmp2_);
-#line 275 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 275 "/home/jens/Source/shotwell/src/Event.vala"
- events = _tmp3_;
-#line 276 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 276 "/home/jens/Source/shotwell/src/Event.vala"
- unlinked = _tmp4_;
-#line 278 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = event_event_table;
-#line 278 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = event_table_get_events (_tmp5_);
-#line 278 "/home/jens/Source/shotwell/src/Event.vala"
- event_rows = _tmp6_;
-#line 279 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = event_rows;
-#line 279 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 279 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = _tmp8_;
-#line 279 "/home/jens/Source/shotwell/src/Event.vala"
- count = _tmp9_;
-#line 2792 "Event.c"
- {
- gint ctr = 0;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- ctr = 0;
-#line 2797 "Event.c"
- {
- gboolean _tmp10_ = FALSE;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = TRUE;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 2804 "Event.c"
- gint _tmp12_;
- gint _tmp13_;
- Event* event = NULL;
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- EventRow* _tmp17_;
- Event* _tmp18_;
- Event* _tmp19_;
- Event* _tmp22_;
- Event* _tmp25_;
- EventSourceCollection* _tmp26_;
- GeeArrayList* _tmp27_;
- Event* _tmp28_;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- if (!_tmp10_) {
-#line 2821 "Event.c"
- gint _tmp11_;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = ctr;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- ctr = _tmp11_ + 1;
-#line 2827 "Event.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = FALSE;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = ctr;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = count;
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 2839 "Event.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = event_rows;
-#line 281 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = ctr;
-#line 281 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp15_);
-#line 281 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = (EventRow*) _tmp16_;
-#line 281 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = event_new (_tmp17_, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 281 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = _tmp18_;
-#line 281 "/home/jens/Source/shotwell/src/Event.vala"
- _event_row_unref0 (_tmp17_);
-#line 281 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp19_;
-#line 282 "/home/jens/Source/shotwell/src/Event.vala"
- if (monitor != NULL) {
-#line 2859 "Event.c"
- gint _tmp20_;
- gint _tmp21_;
-#line 283 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = ctr;
-#line 283 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp21_ = count;
-#line 283 "/home/jens/Source/shotwell/src/Event.vala"
- monitor ((guint64) _tmp20_, (guint64) _tmp21_, TRUE, monitor_target);
-#line 2868 "Event.c"
- }
-#line 285 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp22_ = event;
-#line 285 "/home/jens/Source/shotwell/src/Event.vala"
- if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT_SOURCE, EventSource)) != 0) {
-#line 2874 "Event.c"
- GeeArrayList* _tmp23_;
- Event* _tmp24_;
-#line 286 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp23_ = events;
-#line 286 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp24_ = event;
-#line 286 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_);
-#line 288 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 288 "/home/jens/Source/shotwell/src/Event.vala"
- continue;
-#line 2887 "Event.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp25_ = event;
-#line 294 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp26_ = event_global;
-#line 294 "/home/jens/Source/shotwell/src/Event.vala"
- data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_SOURCE_COLLECTION, SourceCollection), NULL);
-#line 295 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp27_ = unlinked;
-#line 295 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp28_ = event;
-#line 295 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_);
-#line 280 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 2903 "Event.c"
- }
- }
- }
-#line 298 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp29_ = event_global;
-#line 298 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp30_ = events;
-#line 298 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp31_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 298 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp32_ = _tmp31_;
-#line 298 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp32_);
-#line 299 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp33_ = event_global;
-#line 299 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp34_ = unlinked;
-#line 299 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_init_add_many_unlinked (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 269 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event_rows);
-#line 269 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (unlinked);
-#line 269 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (events);
-#line 2929 "Event.c"
-}
-
-
-void
-event_terminate (void)
-{
-}
-
-
-static gint64
-event_view_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- DataSource* _tmp0_;
- MediaSource* _tmp1_;
- DataSource* _tmp2_;
- MediaSource* _tmp3_;
- gint64 _tmp4_;
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST ((ThumbnailView*) a, TYPE_DATA_VIEW, DataView));
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST ((ThumbnailView*) b, TYPE_DATA_VIEW, DataView));
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = (gint64) (media_source_get_exposure_time (_tmp1_) - media_source_get_exposure_time (_tmp3_));
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp3_);
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp1_);
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp4_;
-#line 306 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2967 "Event.c"
-}
-
-
-static gboolean
-event_view_comparator_predicate (DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 310 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 310 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 311 "/home/jens/Source/shotwell/src/Event.vala"
- result = alteration_has_detail (alteration, "metadata", "exposure-time");
-#line 311 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2984 "Event.c"
-}
-
-
-gchar*
-event_prep_event_name (const gchar* name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 319 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = prepare_input_text (name, (((PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF, DEFAULT_USER_TEXT_INPUT_LENGTH);
-#line 319 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 319 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 2999 "Event.c"
-}
-
-
-void
-event_attach (Event* self,
- MediaSource* source)
-{
- ViewCollection* _tmp0_;
- ThumbnailView* _tmp1_;
- ThumbnailView* _tmp2_;
-#line 327 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 327 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (source));
-#line 328 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 328 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 328 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp1_;
-#line 328 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject));
-#line 328 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp2_);
-#line 3024 "Event.c"
-}
-
-
-void
-event_attach_many (Event* self,
- GeeCollection* media)
-{
- GeeArrayList* views = NULL;
- GeeArrayList* _tmp0_;
- ViewCollection* _tmp9_;
- GeeArrayList* _tmp10_;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
-#line 331 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 331 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 332 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 332 "/home/jens/Source/shotwell/src/Event.vala"
- views = _tmp0_;
-#line 3046 "Event.c"
- {
- GeeIterator* _current_source_it = NULL;
- GeeIterator* _tmp1_;
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable));
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- _current_source_it = _tmp1_;
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 3056 "Event.c"
- GeeIterator* _tmp2_;
- MediaSource* current_source = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeArrayList* _tmp5_;
- MediaSource* _tmp6_;
- ThumbnailView* _tmp7_;
- ThumbnailView* _tmp8_;
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _current_source_it;
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 3071 "Event.c"
- }
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _current_source_it;
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- current_source = (MediaSource*) _tmp4_;
-#line 334 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = views;
-#line 334 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = current_source;
-#line 334 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 334 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_;
-#line 334 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_);
-#line 334 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp8_);
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (current_source);
-#line 3093 "Event.c"
- }
-#line 333 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_current_source_it);
-#line 3097 "Event.c"
- }
-#line 336 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = self->priv->view;
-#line 336 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = views;
-#line 336 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 336 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = _tmp11_;
-#line 336 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp12_);
-#line 331 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (views);
-#line 3111 "Event.c"
-}
-
-
-void
-event_detach (Event* self,
- MediaSource* source)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- DataView* _tmp3_;
- DataView* _tmp4_;
- Marker* _tmp5_;
- Marker* _tmp6_;
-#line 342 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 342 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (source));
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->view;
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->view;
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = view_collection_get_view_for_source (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _tmp3_;
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_;
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), _tmp6_);
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp6_);
-#line 343 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp4_);
-#line 3150 "Event.c"
-}
-
-
-void
-event_detach_many (Event* self,
- GeeCollection* media)
-{
- GeeArrayList* views = NULL;
- GeeArrayList* _tmp0_;
- ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- GeeArrayList* _tmp13_;
- Marker* _tmp14_;
- Marker* _tmp15_;
-#line 346 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 346 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 347 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 347 "/home/jens/Source/shotwell/src/Event.vala"
- views = _tmp0_;
-#line 3173 "Event.c"
- {
- GeeIterator* _current_source_it = NULL;
- GeeIterator* _tmp1_;
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable));
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- _current_source_it = _tmp1_;
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 3183 "Event.c"
- GeeIterator* _tmp2_;
- MediaSource* current_source = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- ThumbnailView* view = NULL;
- ViewCollection* _tmp5_;
- MediaSource* _tmp6_;
- DataView* _tmp7_;
- ThumbnailView* _tmp8_;
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _current_source_it;
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 3199 "Event.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _current_source_it;
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- current_source = (MediaSource*) _tmp4_;
-#line 349 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = self->priv->view;
-#line 349 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = current_source;
-#line 349 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = view_collection_get_view_for_source (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_SOURCE, DataSource));
-#line 349 "/home/jens/Source/shotwell/src/Event.vala"
- view = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_THUMBNAIL_VIEW, ThumbnailView);
-#line 350 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = view;
-#line 350 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp8_ != NULL) {
-#line 3219 "Event.c"
- GeeArrayList* _tmp9_;
- ThumbnailView* _tmp10_;
-#line 351 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = views;
-#line 351 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = view;
-#line 351 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
-#line 3228 "Event.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (view);
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (current_source);
-#line 3234 "Event.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_current_source_it);
-#line 3238 "Event.c"
- }
-#line 354 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = self->priv->view;
-#line 354 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = self->priv->view;
-#line 354 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = views;
-#line 354 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 354 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = _tmp14_;
-#line 354 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), _tmp15_);
-#line 354 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp15_);
-#line 346 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (views);
-#line 3256 "Event.c"
-}
-
-
-gboolean
-event_contains_media_type (Event* self,
- const gchar* media_type)
-{
- gboolean result = FALSE;
-#line 360 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), FALSE);
-#line 360 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (media_type != NULL, FALSE);
-#line 3269 "Event.c"
- {
- GeeIterator* _media_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_;
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp2_;
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp1_);
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _media_it = _tmp3_;
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 3290 "Event.c"
- GeeIterator* _tmp4_;
- MediaSource* media = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- MediaSource* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gboolean _tmp10_;
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _media_it;
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 3305 "Event.c"
- }
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = _media_it;
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- media = (MediaSource*) _tmp6_;
-#line 362 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = media;
-#line 362 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = data_source_get_typename (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource));
-#line 362 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = _tmp8_;
-#line 362 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = g_strcmp0 (_tmp9_, media_type) == 0;
-#line 362 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp9_);
-#line 362 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp10_) {
-#line 363 "/home/jens/Source/shotwell/src/Event.vala"
- result = TRUE;
-#line 363 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 363 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_media_it);
-#line 363 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 3333 "Event.c"
- }
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 3337 "Event.c"
- }
-#line 361 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_media_it);
-#line 3341 "Event.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/Event.vala"
- result = FALSE;
-#line 366 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 3347 "Event.c"
-}
-
-
-static GeeArrayList*
-event_views_to_media (Event* self,
- GeeIterable* views)
-{
- GeeArrayList* result = NULL;
- GeeArrayList* media = NULL;
- GeeArrayList* _tmp0_;
-#line 369 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), NULL);
-#line 369 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (GEE_IS_ITERABLE (views), NULL);
-#line 370 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 370 "/home/jens/Source/shotwell/src/Event.vala"
- media = _tmp0_;
-#line 3366 "Event.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp1_;
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = gee_iterable_iterator (views);
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- _object_it = _tmp1_;
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 3376 "Event.c"
- GeeIterator* _tmp2_;
- DataObject* object = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeArrayList* _tmp5_;
- DataObject* _tmp6_;
- DataSource* _tmp7_;
- MediaSource* _tmp8_;
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _object_it;
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 3391 "Event.c"
- }
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _object_it;
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- object = (DataObject*) _tmp4_;
-#line 372 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = media;
-#line 372 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = object;
-#line 372 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_VIEW, DataView));
-#line 372 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 372 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_);
-#line 372 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp8_);
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (object);
-#line 3413 "Event.c"
- }
-#line 371 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_object_it);
-#line 3417 "Event.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/Event.vala"
- result = media;
-#line 374 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 3423 "Event.c"
-}
-
-
-static void
-event_on_media_added (Event* self,
- GeeIterable* added)
-{
- GeeCollection* media = NULL;
- GeeArrayList* _tmp0_;
- EventSourceCollection* _tmp1_;
- gboolean _tmp2_;
- EventSourceCollection* _tmp3_;
- gboolean _tmp4_;
- Alteration* _tmp5_;
- Alteration* _tmp6_;
-#line 377 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 377 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 378 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_views_to_media (self, added);
-#line 378 "/home/jens/Source/shotwell/src/Event.vala"
- media = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 379 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_global;
-#line 379 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->relinking;
-#line 379 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), media, _tmp2_);
-#line 380 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = event_global;
-#line 380 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = self->priv->relinking;
-#line 380 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), media, _tmp4_, NULL, FALSE);
-#line 382 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = alteration_new_from_list ("contents:added, metadata:time");
-#line 382 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_;
-#line 382 "/home/jens/Source/shotwell/src/Event.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp6_);
-#line 382 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_unref0 (_tmp6_);
-#line 377 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 3469 "Event.c"
-}
-
-
-static void
-event_on_media_removed (Event* self,
- GeeIterable* removed)
-{
- GeeArrayList* media = NULL;
- GeeArrayList* _tmp0_;
- EventSourceCollection* _tmp1_;
- GeeArrayList* _tmp2_;
- gboolean _tmp3_;
- EventSourceCollection* _tmp4_;
- GeeArrayList* _tmp5_;
- gboolean _tmp6_;
- Alteration* _tmp26_;
- Alteration* _tmp27_;
-#line 386 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 386 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 387 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_views_to_media (self, removed);
-#line 387 "/home/jens/Source/shotwell/src/Event.vala"
- media = _tmp0_;
-#line 389 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_global;
-#line 389 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = media;
-#line 389 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = self->priv->unlinking;
-#line 389 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_notify_container_contents_removed (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), _tmp3_);
-#line 390 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = event_global;
-#line 390 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = media;
-#line 390 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = self->priv->unlinking;
-#line 390 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), NULL, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_);
-#line 3511 "Event.c"
- {
- GeeArrayList* _current_source_list = NULL;
- GeeArrayList* _tmp7_;
- GeeArrayList* _tmp8_;
- gint _current_source_size = 0;
- GeeArrayList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _current_source_index = 0;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = media;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _current_source_list = _tmp8_;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = _current_source_list;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = _tmp10_;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _current_source_size = _tmp11_;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _current_source_index = -1;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 3539 "Event.c"
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- MediaSource* current_source = NULL;
- GeeArrayList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
- MediaSource* _tmp18_;
- MediaSource* _tmp19_;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = _current_source_index;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _current_source_index = _tmp12_ + 1;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = _current_source_index;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = _current_source_size;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- if (!(_tmp13_ < _tmp14_)) {
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 3561 "Event.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = _current_source_list;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = _current_source_index;
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp16_);
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- current_source = (MediaSource*) _tmp17_;
-#line 394 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = current_source;
-#line 394 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = self->priv->primary_source;
-#line 394 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp18_ == _tmp19_) {
-#line 395 "/home/jens/Source/shotwell/src/Event.vala"
- if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)) > 0) {
-#line 3579 "Event.c"
- ViewCollection* _tmp20_;
- DataView* _tmp21_;
- DataView* _tmp22_;
- DataSource* _tmp23_;
- MediaSource* _tmp24_;
-#line 396 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = self->priv->view;
-#line 396 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp21_ = view_collection_get_first_unrejected (_tmp20_);
-#line 396 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp22_ = _tmp21_;
-#line 396 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp23_ = data_view_get_source (_tmp22_);
-#line 396 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp24_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 396 "/home/jens/Source/shotwell/src/Event.vala"
- event_set_primary_source (self, _tmp24_);
-#line 396 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp24_);
-#line 396 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp22_);
-#line 3601 "Event.c"
- } else {
-#line 398 "/home/jens/Source/shotwell/src/Event.vala"
- event_release_primary_source (self);
-#line 3605 "Event.c"
- }
-#line 400 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (current_source);
-#line 400 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 3611 "Event.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (current_source);
-#line 3615 "Event.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_current_source_list);
-#line 3619 "Event.c"
- }
-#line 405 "/home/jens/Source/shotwell/src/Event.vala"
- if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)) == 0) {
-#line 3623 "Event.c"
- EventSourceCollection* _tmp25_;
-#line 406 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp25_ = event_global;
-#line 406 "/home/jens/Source/shotwell/src/Event.vala"
- container_source_collection_evaporate (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource));
-#line 410 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 410 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 3633 "Event.c"
- }
-#line 413 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp26_ = alteration_new_from_list ("contents:removed, metadata:time");
-#line 413 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp27_ = _tmp26_;
-#line 413 "/home/jens/Source/shotwell/src/Event.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp27_);
-#line 413 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_unref0 (_tmp27_);
-#line 386 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 3645 "Event.c"
-}
-
-
-static void
-event_on_media_destroyed (Event* self,
- DataSource* source)
-{
- ThumbnailView* thumbnail_view = NULL;
- ViewCollection* _tmp0_;
- DataView* _tmp1_;
- ThumbnailView* _tmp2_;
-#line 416 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 416 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 417 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 417 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = view_collection_get_view_for_source (_tmp0_, source);
-#line 417 "/home/jens/Source/shotwell/src/Event.vala"
- thumbnail_view = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_VIEW, ThumbnailView);
-#line 418 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = thumbnail_view;
-#line 418 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp2_ != NULL) {
-#line 3671 "Event.c"
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- ThumbnailView* _tmp5_;
- Marker* _tmp6_;
- Marker* _tmp7_;
-#line 419 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = self->priv->view;
-#line 419 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = self->priv->view;
-#line 419 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = thumbnail_view;
-#line 419 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_OBJECT, DataObject));
-#line 419 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = _tmp6_;
-#line 419 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), _tmp7_);
-#line 419 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp7_);
-#line 3691 "Event.c"
- }
-#line 416 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (thumbnail_view);
-#line 3695 "Event.c"
-}
-
-
-static void
-event_real_notify_relinking (DataSource* base,
- SourceCollection* sources)
-{
- Event * self;
- MediaSource* _tmp0_;
-#line 422 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 422 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (sources));
-#line 423 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_assert (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)) > 0, "get_media_count() > 0");
-#line 426 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->primary_source;
-#line 426 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp0_ == NULL) {
-#line 3715 "Event.c"
- ViewCollection* _tmp1_;
- DataView* _tmp2_;
- DataView* _tmp3_;
- DataSource* _tmp4_;
- MediaSource* _tmp5_;
-#line 427 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->view;
-#line 427 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = view_collection_get_first_unrejected (_tmp1_);
-#line 427 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp2_;
-#line 427 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = data_view_get_source (_tmp3_);
-#line 427 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 427 "/home/jens/Source/shotwell/src/Event.vala"
- event_set_primary_source (self, _tmp5_);
-#line 427 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp5_);
-#line 427 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp3_);
-#line 3737 "Event.c"
- }
-#line 429 "/home/jens/Source/shotwell/src/Event.vala"
- DATA_SOURCE_CLASS (event_parent_class)->notify_relinking (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource), TYPE_DATA_SOURCE, DataSource), sources);
-#line 3741 "Event.c"
-}
-
-
-/** @brief This gets called when one or more media items inside this
- * event gets modified in some fashion. If the media item's date changes
- * and the event was previously undated, the name of the event needs to
- * change as well; all of that happens automatically in here.
- *
- * In addition, if the _rating_ of one or more media items has changed,
- * the thumbnail of this event may need to change, as the primary
- * image may have been rejected and should not be the thumbnail anymore.
- */
-static void
-event_on_media_altered (Event* self,
- GeeMap* items)
-{
- gboolean should_remake_thumb = FALSE;
- gboolean _tmp16_;
-#line 441 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 441 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (GEE_IS_MAP (items));
-#line 442 "/home/jens/Source/shotwell/src/Event.vala"
- should_remake_thumb = FALSE;
-#line 3766 "Event.c"
- {
- GeeIterator* _alteration_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = gee_map_get_values (items);
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_;
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp1_;
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _tmp3_;
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp2_);
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_it = _tmp4_;
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 3790 "Event.c"
- GeeIterator* _tmp5_;
- Alteration* alteration = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Alteration* _tmp8_;
- Alteration* _tmp15_;
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = _alteration_it;
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 3803 "Event.c"
- }
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _alteration_it;
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- alteration = (Alteration*) _tmp7_;
-#line 445 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = alteration;
-#line 445 "/home/jens/Source/shotwell/src/Event.vala"
- if (alteration_has_detail (_tmp8_, "metadata", "exposure-time")) {
-#line 3815 "Event.c"
- gchar* alt_list = NULL;
- gchar* _tmp9_;
- const gchar* _tmp12_;
- Alteration* _tmp13_;
- Alteration* _tmp14_;
-#line 447 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = g_strdup ("metadata:time");
-#line 447 "/home/jens/Source/shotwell/src/Event.vala"
- alt_list = _tmp9_;
-#line 449 "/home/jens/Source/shotwell/src/Event.vala"
- if (!event_has_name (self)) {
-#line 3827 "Event.c"
- const gchar* _tmp10_;
- gchar* _tmp11_;
-#line 450 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = alt_list;
-#line 450 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = g_strconcat (_tmp10_, ", metadata:name", NULL);
-#line 450 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (alt_list);
-#line 450 "/home/jens/Source/shotwell/src/Event.vala"
- alt_list = _tmp11_;
-#line 3838 "Event.c"
- }
-#line 452 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = alt_list;
-#line 452 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = alteration_new_from_list (_tmp12_);
-#line 452 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = _tmp13_;
-#line 452 "/home/jens/Source/shotwell/src/Event.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp14_);
-#line 452 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_unref0 (_tmp14_);
-#line 454 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (alt_list);
-#line 454 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_unref0 (alteration);
-#line 454 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 3856 "Event.c"
- }
-#line 457 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = alteration;
-#line 457 "/home/jens/Source/shotwell/src/Event.vala"
- if (alteration_has_detail (_tmp15_, "metadata", "rating")) {
-#line 458 "/home/jens/Source/shotwell/src/Event.vala"
- should_remake_thumb = TRUE;
-#line 3864 "Event.c"
- }
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_unref0 (alteration);
-#line 3868 "Event.c"
- }
-#line 444 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_alteration_it);
-#line 3872 "Event.c"
- }
-#line 461 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = should_remake_thumb;
-#line 461 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp16_) {
-#line 3878 "Event.c"
- gboolean _tmp17_ = FALSE;
- MediaSource* _tmp18_;
- MediaSource* _tmp19_;
- gboolean _tmp20_;
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = event_get_primary_source (self);
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = _tmp18_;
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = _tmp19_ == NULL;
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp19_);
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp20_) {
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = TRUE;
-#line 3895 "Event.c"
- } else {
- MediaSource* _tmp21_;
- MediaSource* _tmp22_;
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp21_ = event_get_primary_source (self);
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp22_ = _tmp21_;
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = media_source_get_rating (_tmp22_) == RATING_REJECTED;
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp22_);
-#line 3907 "Event.c"
- }
-#line 463 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp17_) {
-#line 3911 "Event.c"
- ViewCollection* _tmp23_;
- DataView* _tmp24_;
- DataView* _tmp25_;
- DataSource* _tmp26_;
- MediaSource* _tmp27_;
-#line 465 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp23_ = self->priv->view;
-#line 465 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp24_ = view_collection_get_first_unrejected (_tmp23_);
-#line 465 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp25_ = _tmp24_;
-#line 465 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp26_ = data_view_get_source (_tmp25_);
-#line 465 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 465 "/home/jens/Source/shotwell/src/Event.vala"
- event_set_primary_source (self, _tmp27_);
-#line 465 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp27_);
-#line 465 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp25_);
-#line 3933 "Event.c"
- }
- }
-}
-
-
-Event*
-event_create_empty_event (MediaSource* source)
-{
- Event* result = NULL;
- GError * _inner_error_ = NULL;
-#line 474 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 3946 "Event.c"
- {
- EventRow* _tmp0_ = NULL;
- EventTable* _tmp1_;
- EventTable* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- EventRow* _tmp5_;
- EventRow* _tmp6_;
- Event* event = NULL;
- Event* _tmp7_;
- EventSourceCollection* _tmp8_;
- Event* _tmp9_;
- Event* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_table_get_instance ();
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp1_;
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _tmp3_;
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = event_table_create (_tmp2_, _tmp4_, NULL, &_inner_error_);
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_;
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp4_);
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _database_table_unref0 (_tmp2_);
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _tmp6_;
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 3984 "Event.c"
- goto __catch444_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);
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- return NULL;
-#line 3993 "Event.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = event_new (_tmp0_, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 476 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp7_;
-#line 477 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = event_global;
-#line 477 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = event;
-#line 477 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 479 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = event;
-#line 479 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject));
-#line 479 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = _tmp11_;
-#line 479 "/home/jens/Source/shotwell/src/Event.vala"
- g_debug ("Event.vala:479: Created empty event %s", _tmp12_);
-#line 479 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp12_);
-#line 481 "/home/jens/Source/shotwell/src/Event.vala"
- result = event;
-#line 481 "/home/jens/Source/shotwell/src/Event.vala"
- _event_row_unref0 (_tmp0_);
-#line 481 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 4021 "Event.c"
- }
- goto __finally444;
- __catch444_database_error:
- {
- GError* err = NULL;
- GError* _tmp13_;
-#line 475 "/home/jens/Source/shotwell/src/Event.vala"
- err = _inner_error_;
-#line 475 "/home/jens/Source/shotwell/src/Event.vala"
- _inner_error_ = NULL;
-#line 483 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = err;
-#line 483 "/home/jens/Source/shotwell/src/Event.vala"
- app_window_database_error (_tmp13_);
-#line 485 "/home/jens/Source/shotwell/src/Event.vala"
- result = NULL;
-#line 485 "/home/jens/Source/shotwell/src/Event.vala"
- _g_error_free0 (err);
-#line 485 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 4042 "Event.c"
- }
- __finally444:
-#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"
- g_clear_error (&_inner_error_);
-#line 475 "/home/jens/Source/shotwell/src/Event.vala"
- return NULL;
-#line 4051 "Event.c"
-}
-
-
-static Event*
-event_reconstitute (gint64 object_id,
- EventRow* row)
-{
- Event* result = NULL;
- EventTable* _tmp0_;
- EventTable* _tmp1_;
- EventID _tmp2_ = {0};
- Event* event = NULL;
- Event* _tmp3_;
- EventSourceCollection* _tmp4_;
- EventSourceCollection* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 490 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT_ROW (row), NULL);
-#line 491 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_table_get_instance ();
-#line 491 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_;
-#line 491 "/home/jens/Source/shotwell/src/Event.vala"
- event_table_create_from_row (_tmp1_, row, &_tmp2_);
-#line 491 "/home/jens/Source/shotwell/src/Event.vala"
- row->event_id = _tmp2_;
-#line 491 "/home/jens/Source/shotwell/src/Event.vala"
- _database_table_unref0 (_tmp1_);
-#line 492 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = event_new (row, object_id);
-#line 492 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp3_;
-#line 493 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = event_global;
-#line 493 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_OBJECT, DataObject));
-#line 494 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = event_global;
-#line 494 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_assert (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_OBJECT, DataObject)), "global.contains(event)");
-#line 496 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_OBJECT, DataObject));
-#line 496 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = _tmp6_;
-#line 496 "/home/jens/Source/shotwell/src/Event.vala"
- g_debug ("Event.vala:496: Reconstituted event %s", _tmp7_);
-#line 496 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp7_);
-#line 498 "/home/jens/Source/shotwell/src/Event.vala"
- result = event;
-#line 498 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 4105 "Event.c"
-}
-
-
-static gboolean
-event_real_has_links (ContainerSource* base)
-{
- Event * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- LibraryPhotoSourceCollection* _tmp1_;
- SourceBacklink* _tmp2_;
- SourceBacklink* _tmp3_;
- gboolean _tmp4_;
-#line 501 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = library_photo_global;
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource));
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp2_;
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = source_collection_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp3_);
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- _source_backlink_unref0 (_tmp3_);
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp4_) {
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = TRUE;
-#line 4135 "Event.c"
- } else {
- VideoSourceCollection* _tmp5_;
- SourceBacklink* _tmp6_;
- SourceBacklink* _tmp7_;
-#line 503 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = video_global;
-#line 503 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource));
-#line 503 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = _tmp6_;
-#line 503 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = source_collection_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp7_);
-#line 503 "/home/jens/Source/shotwell/src/Event.vala"
- _source_backlink_unref0 (_tmp7_);
-#line 4150 "Event.c"
- }
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 502 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 4156 "Event.c"
-}
-
-
-static SourceBacklink*
-event_real_get_backlink (ContainerSource* base)
-{
- Event * self;
- SourceBacklink* result = NULL;
- SourceBacklink* _tmp0_;
-#line 506 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 507 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = source_backlink_new_from_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
-#line 507 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 507 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 4174 "Event.c"
-}
-
-
-static void
-event_real_break_link (ContainerSource* base,
- DataSource* source)
-{
- Event * self;
-#line 510 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 510 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 511 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->unlinking = TRUE;
-#line 513 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), NULL);
-#line 515 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->unlinking = FALSE;
-#line 4193 "Event.c"
-}
-
-
-static void
-event_real_break_link_many (ContainerSource* base,
- GeeCollection* sources)
-{
- Event * self;
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* videos = NULL;
- GeeArrayList* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 518 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 518 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 519 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->unlinking = TRUE;
-#line 521 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 521 "/home/jens/Source/shotwell/src/Event.vala"
- photos = _tmp0_;
-#line 522 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 522 "/home/jens/Source/shotwell/src/Event.vala"
- videos = _tmp1_;
-#line 523 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_collection_filter_media (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection));
-#line 4223 "Event.c"
- {
- LibraryPhotoSourceCollection* _tmp2_;
- TransactionController* _tmp3_;
- TransactionController* _tmp4_;
-#line 526 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = library_photo_global;
-#line 526 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 526 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _tmp3_;
-#line 526 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), NULL, _tmp4_, &_inner_error_);
-#line 526 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4238 "Event.c"
- goto __catch445_g_error;
- }
- }
- goto __finally445;
- __catch445_g_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 525 "/home/jens/Source/shotwell/src/Event.vala"
- err = _inner_error_;
-#line 525 "/home/jens/Source/shotwell/src/Event.vala"
- _inner_error_ = NULL;
-#line 528 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = err;
-#line 528 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_->message;
-#line 528 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = g_strdup_printf ("%s", _tmp6_);
-#line 528 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_;
-#line 528 "/home/jens/Source/shotwell/src/Event.vala"
- app_window_error_message (_tmp8_, NULL);
-#line 528 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp8_);
-#line 525 "/home/jens/Source/shotwell/src/Event.vala"
- _g_error_free0 (err);
-#line 4268 "Event.c"
- }
- __finally445:
-#line 525 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 525 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (videos);
-#line 525 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (photos);
-#line 525 "/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 525 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 525 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 4283 "Event.c"
- }
- {
- VideoSourceCollection* _tmp9_;
- TransactionController* _tmp10_;
- TransactionController* _tmp11_;
-#line 532 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = video_global;
-#line 532 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 532 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = _tmp10_;
-#line 532 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection), NULL, _tmp11_, &_inner_error_);
-#line 532 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4299 "Event.c"
- goto __catch446_g_error;
- }
- }
- goto __finally446;
- __catch446_g_error:
- {
- GError* err = NULL;
- GError* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 531 "/home/jens/Source/shotwell/src/Event.vala"
- err = _inner_error_;
-#line 531 "/home/jens/Source/shotwell/src/Event.vala"
- _inner_error_ = NULL;
-#line 534 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = err;
-#line 534 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = _tmp12_->message;
-#line 534 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = g_strdup_printf ("%s", _tmp13_);
-#line 534 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = _tmp14_;
-#line 534 "/home/jens/Source/shotwell/src/Event.vala"
- app_window_error_message (_tmp15_, NULL);
-#line 534 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp15_);
-#line 531 "/home/jens/Source/shotwell/src/Event.vala"
- _g_error_free0 (err);
-#line 4329 "Event.c"
- }
- __finally446:
-#line 531 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 531 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (videos);
-#line 531 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (photos);
-#line 531 "/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 531 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 531 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 4344 "Event.c"
- }
-#line 537 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->unlinking = FALSE;
-#line 518 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (videos);
-#line 518 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (photos);
-#line 4352 "Event.c"
-}
-
-
-static void
-event_real_establish_link (ContainerSource* base,
- DataSource* source)
-{
- Event * self;
-#line 540 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 540 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 541 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->relinking = TRUE;
-#line 543 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), self);
-#line 545 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->relinking = FALSE;
-#line 4371 "Event.c"
-}
-
-
-static void
-event_real_establish_link_many (ContainerSource* base,
- GeeCollection* sources)
-{
- Event * self;
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* videos = NULL;
- GeeArrayList* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 548 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 548 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 549 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->relinking = TRUE;
-#line 551 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 551 "/home/jens/Source/shotwell/src/Event.vala"
- photos = _tmp0_;
-#line 552 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 552 "/home/jens/Source/shotwell/src/Event.vala"
- videos = _tmp1_;
-#line 553 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_collection_filter_media (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection));
-#line 4401 "Event.c"
- {
- LibraryPhotoSourceCollection* _tmp2_;
- TransactionController* _tmp3_;
- TransactionController* _tmp4_;
-#line 556 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = library_photo_global;
-#line 556 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 556 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _tmp3_;
-#line 556 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), self, _tmp4_, &_inner_error_);
-#line 556 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4416 "Event.c"
- goto __catch447_g_error;
- }
- }
- goto __finally447;
- __catch447_g_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 555 "/home/jens/Source/shotwell/src/Event.vala"
- err = _inner_error_;
-#line 555 "/home/jens/Source/shotwell/src/Event.vala"
- _inner_error_ = NULL;
-#line 558 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = err;
-#line 558 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_->message;
-#line 558 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = g_strdup_printf ("%s", _tmp6_);
-#line 558 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_;
-#line 558 "/home/jens/Source/shotwell/src/Event.vala"
- app_window_error_message (_tmp8_, NULL);
-#line 558 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp8_);
-#line 555 "/home/jens/Source/shotwell/src/Event.vala"
- _g_error_free0 (err);
-#line 4446 "Event.c"
- }
- __finally447:
-#line 555 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 555 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (videos);
-#line 555 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (photos);
-#line 555 "/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 555 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 555 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 4461 "Event.c"
- }
- {
- VideoSourceCollection* _tmp9_;
- TransactionController* _tmp10_;
- TransactionController* _tmp11_;
-#line 562 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = video_global;
-#line 562 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 562 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = _tmp10_;
-#line 562 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection), self, _tmp11_, &_inner_error_);
-#line 562 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4477 "Event.c"
- goto __catch448_g_error;
- }
- }
- goto __finally448;
- __catch448_g_error:
- {
- GError* err = NULL;
- GError* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 561 "/home/jens/Source/shotwell/src/Event.vala"
- err = _inner_error_;
-#line 561 "/home/jens/Source/shotwell/src/Event.vala"
- _inner_error_ = NULL;
-#line 564 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = err;
-#line 564 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = _tmp12_->message;
-#line 564 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = g_strdup_printf ("%s", _tmp13_);
-#line 564 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = _tmp14_;
-#line 564 "/home/jens/Source/shotwell/src/Event.vala"
- app_window_error_message (_tmp15_, NULL);
-#line 564 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp15_);
-#line 561 "/home/jens/Source/shotwell/src/Event.vala"
- _g_error_free0 (err);
-#line 4507 "Event.c"
- }
- __finally448:
-#line 561 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 561 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (videos);
-#line 561 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (photos);
-#line 561 "/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 561 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 561 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 4522 "Event.c"
- }
-#line 567 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->relinking = FALSE;
-#line 548 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (videos);
-#line 548 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (photos);
-#line 4530 "Event.c"
-}
-
-
-static gchar*
-_vala_g_strjoinv (const gchar* separator,
- gchar** str_array,
- int str_array_length1)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
-#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (separator == NULL) {
-#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- separator = "";
-#line 4545 "Event.c"
- }
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array != NULL) {
-#line 4549 "Event.c"
- gboolean _tmp1_ = FALSE;
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array_length1 > 0) {
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 4555 "Event.c"
- } else {
- gboolean _tmp2_ = FALSE;
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array_length1 == -1) {
-#line 4560 "Event.c"
- const gchar* _tmp3_;
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = str_array[0];
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp3_ != NULL;
-#line 4566 "Event.c"
- } else {
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = FALSE;
-#line 4570 "Event.c"
- }
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _tmp2_;
-#line 4574 "Event.c"
- }
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = _tmp1_;
-#line 4578 "Event.c"
- } else {
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 4582 "Event.c"
- }
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 4586 "Event.c"
- gint i = 0;
- gsize len = 0UL;
- gint _tmp20_;
- gint _tmp22_;
- gint _tmp23_;
- gsize _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
- const gchar* res = NULL;
- gsize _tmp28_;
- void* _tmp29_;
- void* ptr = NULL;
- const gchar* _tmp30_;
- const gchar* _tmp31_;
- void* _tmp32_;
- const gchar* _tmp45_;
-#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = (gsize) 1;
-#line 4606 "Event.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- i = 0;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = TRUE;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- while (TRUE) {
-#line 4615 "Event.c"
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- gint _tmp12_ = 0;
- gint _tmp13_;
- const gchar* _tmp14_;
- gsize _tmp19_;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (!_tmp4_) {
-#line 4624 "Event.c"
- gint _tmp5_;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = i;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- i = _tmp5_ + 1;
-#line 4630 "Event.c"
- }
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = FALSE;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array_length1 != -1) {
-#line 4636 "Event.c"
- gint _tmp8_;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = i;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp8_ < str_array_length1;
-#line 4642 "Event.c"
- } else {
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = FALSE;
-#line 4646 "Event.c"
- }
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp7_) {
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = TRUE;
-#line 4652 "Event.c"
- } else {
- gboolean _tmp9_ = FALSE;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array_length1 == -1) {
-#line 4657 "Event.c"
- gint _tmp10_;
- const gchar* _tmp11_;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = i;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp11_ = str_array[_tmp10_];
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = _tmp11_ != NULL;
-#line 4666 "Event.c"
- } else {
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = FALSE;
-#line 4670 "Event.c"
- }
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp9_;
-#line 4674 "Event.c"
- }
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (!_tmp6_) {
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- break;
-#line 4680 "Event.c"
- }
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp13_ = i;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp14_ = str_array[_tmp13_];
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp14_ != NULL) {
-#line 4688 "Event.c"
- gint _tmp15_;
- const gchar* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp15_ = i;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp16_ = str_array[_tmp15_];
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp17_ = strlen ((const gchar*) _tmp16_);
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp18_ = _tmp17_;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp12_ = _tmp18_;
-#line 4703 "Event.c"
- } else {
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp12_ = 0;
-#line 4707 "Event.c"
- }
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp19_ = len;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp19_ + _tmp12_;
-#line 4713 "Event.c"
- }
- }
-#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp20_ = i;
-#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp20_ == 0) {
-#line 4720 "Event.c"
- gchar* _tmp21_;
-#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp21_ = g_strdup ("");
-#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp21_;
-#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4728 "Event.c"
- }
-#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp22_ = i;
-#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- str_array_length1 = _tmp22_;
-#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp23_ = str_array_length1;
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp24_ = len;
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp25_ = strlen ((const gchar*) separator);
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp26_ = _tmp25_;
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp27_ = i;
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1));
-#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp28_ = len;
-#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp29_ = g_malloc (_tmp28_);
-#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res = _tmp29_;
-#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp30_ = res;
-#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp31_ = str_array[0];
-#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_);
-#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- ptr = _tmp32_;
-#line 4760 "Event.c"
- {
- gboolean _tmp33_ = FALSE;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- i = 1;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp33_ = TRUE;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- while (TRUE) {
-#line 4769 "Event.c"
- gint _tmp35_;
- void* _tmp36_;
- void* _tmp37_;
- const gchar* _tmp38_ = NULL;
- gint _tmp39_;
- const gchar* _tmp40_;
- void* _tmp43_;
- void* _tmp44_;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (!_tmp33_) {
-#line 4780 "Event.c"
- gint _tmp34_;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp34_ = i;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- i = _tmp34_ + 1;
-#line 4786 "Event.c"
- }
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp33_ = FALSE;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp35_ = i;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (!(_tmp35_ < str_array_length1)) {
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- break;
-#line 4796 "Event.c"
- }
-#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp36_ = ptr;
-#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator);
-#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- ptr = _tmp37_;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp39_ = i;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp40_ = str_array[_tmp39_];
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp40_ != NULL) {
-#line 4810 "Event.c"
- gint _tmp41_;
- const gchar* _tmp42_;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp41_ = i;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp42_ = str_array[_tmp41_];
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp38_ = (const gchar*) _tmp42_;
-#line 4819 "Event.c"
- } else {
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp38_ = "";
-#line 4823 "Event.c"
- }
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp43_ = ptr;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp44_ = g_stpcpy (_tmp43_, _tmp38_);
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- ptr = _tmp44_;
-#line 4831 "Event.c"
- }
- }
-#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp45_ = res;
-#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res = NULL;
-#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gchar*) _tmp45_;
-#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4842 "Event.c"
- } else {
- gchar* _tmp46_;
-#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp46_ = g_strdup ("");
-#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp46_;
-#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4851 "Event.c"
- }
-}
-
-
-static void
-event_update_indexable_keywords (Event* self)
-{
- gchar** components = NULL;
- gchar** _tmp0_;
- gint components_length1;
- gint _components_size_;
- gint i = 0;
- gchar* rawname = NULL;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* comment = NULL;
- gchar* _tmp8_;
- const gchar* _tmp9_;
- gint _tmp15_;
-#line 570 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 571 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = g_new0 (gchar*, 3 + 1);
-#line 571 "/home/jens/Source/shotwell/src/Event.vala"
- components = _tmp0_;
-#line 571 "/home/jens/Source/shotwell/src/Event.vala"
- components_length1 = 3;
-#line 571 "/home/jens/Source/shotwell/src/Event.vala"
- _components_size_ = components_length1;
-#line 572 "/home/jens/Source/shotwell/src/Event.vala"
- i = 0;
-#line 574 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_get_raw_name (self);
-#line 574 "/home/jens/Source/shotwell/src/Event.vala"
- rawname = _tmp1_;
-#line 575 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = rawname;
-#line 575 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp2_ != NULL) {
-#line 4891 "Event.c"
- gchar** _tmp3_;
- gint _tmp3__length1;
- gint _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = components;
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3__length1 = components_length1;
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = i;
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- i = _tmp4_ + 1;
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = rawname;
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp3_[_tmp4_]);
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_[_tmp4_] = _tmp6_;
-#line 576 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = _tmp3_[_tmp4_];
-#line 4916 "Event.c"
- }
-#line 578 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
-#line 578 "/home/jens/Source/shotwell/src/Event.vala"
- comment = _tmp8_;
-#line 579 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = comment;
-#line 579 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp9_ != NULL) {
-#line 4926 "Event.c"
- gchar** _tmp10_;
- gint _tmp10__length1;
- gint _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = components;
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10__length1 = components_length1;
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = i;
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- i = _tmp11_ + 1;
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = comment;
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp10_[_tmp11_]);
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_[_tmp11_] = _tmp13_;
-#line 580 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = _tmp10_[_tmp11_];
-#line 4951 "Event.c"
- }
-#line 582 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = i;
-#line 582 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp15_ == 0) {
-#line 583 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->indexable_keywords);
-#line 583 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->indexable_keywords = NULL;
-#line 4961 "Event.c"
- } else {
- gchar** _tmp16_;
- gint _tmp16__length1;
- gint _tmp17_;
- gchar* _tmp18_;
- gchar** _tmp19_;
- gint _tmp19__length1;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
-#line 585 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = components;
-#line 585 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16__length1 = components_length1;
-#line 585 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = i;
-#line 585 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp16_[_tmp17_]);
-#line 585 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_[_tmp17_] = NULL;
-#line 585 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = _tmp16_[_tmp17_];
-#line 586 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = components;
-#line 586 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19__length1 = components_length1;
-#line 586 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = _vala_g_strjoinv (" ", _tmp19_, _tmp19__length1);
-#line 586 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp21_ = _tmp20_;
-#line 586 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp22_ = indexable_prepare_indexable_string (_tmp21_);
-#line 586 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->indexable_keywords);
-#line 586 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->indexable_keywords = _tmp22_;
-#line 586 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp21_);
-#line 5000 "Event.c"
- }
-#line 570 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (comment);
-#line 570 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (rawname);
-#line 570 "/home/jens/Source/shotwell/src/Event.vala"
- components = (_vala_array_free (components, components_length1, (GDestroyNotify) g_free), NULL);
-#line 5008 "Event.c"
-}
-
-
-static const gchar*
-event_real_get_indexable_keywords (Indexable* base)
-{
- Event * self;
- const gchar* result = NULL;
- const gchar* _tmp0_;
-#line 590 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 591 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->indexable_keywords;
-#line 591 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 591 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5026 "Event.c"
-}
-
-
-static void
-g_time_local (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- localtime_r (&time, &_tmp0_);
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 5044 "Event.c"
-}
-
-
-gboolean
-event_is_in_starting_day (Event* self,
- time_t time)
-{
- gboolean result = FALSE;
- ViewCollection* _tmp0_;
- MediaSource* earliest_media = NULL;
- ViewCollection* _tmp1_;
- DataObject* _tmp2_;
- DataView* _tmp3_;
- DataSource* _tmp4_;
- MediaSource* _tmp5_;
- struct tm earliest_tm = {0};
- MediaSource* _tmp6_;
- struct tm _tmp7_ = {0};
- struct tm start_boundary_tm = {0};
- struct tm _tmp8_;
- gint _tmp9_;
- struct tm _tmp10_;
- gint _tmp11_;
- struct tm _tmp12_;
- gint _tmp13_;
- time_t start_boundary = 0;
- struct tm _tmp14_;
- gint _tmp15_;
- time_t end_boundary = 0;
- time_t _tmp17_;
- gboolean _tmp18_ = FALSE;
- time_t _tmp19_;
-#line 594 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), FALSE);
-#line 599 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 599 "/home/jens/Source/shotwell/src/Event.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)) == 0) {
-#line 600 "/home/jens/Source/shotwell/src/Event.vala"
- result = FALSE;
-#line 600 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5087 "Event.c"
- }
-#line 603 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->view;
-#line 603 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), 0);
-#line 603 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_VIEW, DataView);
-#line 603 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = data_view_get_source (_tmp3_);
-#line 603 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 603 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp3_);
-#line 603 "/home/jens/Source/shotwell/src/Event.vala"
- earliest_media = _tmp5_;
-#line 604 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = earliest_media;
-#line 604 "/home/jens/Source/shotwell/src/Event.vala"
- g_time_local (media_source_get_exposure_time (_tmp6_), &_tmp7_);
-#line 604 "/home/jens/Source/shotwell/src/Event.vala"
- earliest_tm = _tmp7_;
-#line 607 "/home/jens/Source/shotwell/src/Event.vala"
- memset (&start_boundary_tm, 0, sizeof (struct tm));
-#line 608 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary_tm.tm_sec = 0;
-#line 609 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary_tm.tm_min = 0;
-#line 610 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary_tm.tm_hour = EVENT_EVENT_BOUNDARY_HOUR;
-#line 611 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = earliest_tm;
-#line 611 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = _tmp8_.tm_mday;
-#line 611 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary_tm.tm_mday = _tmp9_;
-#line 612 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = earliest_tm;
-#line 612 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = _tmp10_.tm_mon;
-#line 612 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary_tm.tm_mon = _tmp11_;
-#line 613 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = earliest_tm;
-#line 613 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = _tmp12_.tm_year;
-#line 613 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary_tm.tm_year = _tmp13_;
-#line 614 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary_tm.tm_isdst = -1;
-#line 616 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary = mktime (&start_boundary_tm);
-#line 620 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = earliest_tm;
-#line 620 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = _tmp14_.tm_hour;
-#line 620 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp15_ < EVENT_EVENT_BOUNDARY_HOUR) {
-#line 5145 "Event.c"
- time_t _tmp16_;
-#line 621 "/home/jens/Source/shotwell/src/Event.vala"
- g_debug ("Event.vala:621: Hour before boundary, shifting back one day");
-#line 622 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = start_boundary;
-#line 622 "/home/jens/Source/shotwell/src/Event.vala"
- start_boundary = _tmp16_ - EVENT_TIME_T_DAY;
-#line 5153 "Event.c"
- }
-#line 625 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = start_boundary;
-#line 625 "/home/jens/Source/shotwell/src/Event.vala"
- end_boundary = (_tmp17_ + EVENT_TIME_T_DAY) - 1;
-#line 627 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = start_boundary;
-#line 627 "/home/jens/Source/shotwell/src/Event.vala"
- if (time >= _tmp19_) {
-#line 5163 "Event.c"
- time_t _tmp20_;
-#line 627 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = end_boundary;
-#line 627 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = time <= _tmp20_;
-#line 5169 "Event.c"
- } else {
-#line 627 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = FALSE;
-#line 5173 "Event.c"
- }
-#line 627 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp18_;
-#line 627 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (earliest_media);
-#line 627 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5181 "Event.c"
-}
-
-
-static Event*
-event_generate_event (MediaSource* media,
- ViewCollection* events_so_far,
- const gchar* event_name,
- gboolean* new_event)
-{
- gboolean _vala_new_event = FALSE;
- Event* result = NULL;
- time_t exposure_time = 0;
- gboolean _tmp0_ = FALSE;
- time_t _tmp1_;
- gint count = 0;
- GError * _inner_error_ = NULL;
-#line 633 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL);
-#line 633 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (events_so_far), NULL);
-#line 635 "/home/jens/Source/shotwell/src/Event.vala"
- exposure_time = media_source_get_exposure_time (media);
-#line 637 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = exposure_time;
-#line 637 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ == ((time_t) 0)) {
-#line 637 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_name == NULL;
-#line 5210 "Event.c"
- } else {
-#line 637 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = FALSE;
-#line 5214 "Event.c"
- }
-#line 637 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp0_) {
-#line 5218 "Event.c"
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 638 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_OBJECT, DataObject));
-#line 638 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp2_;
-#line 638 "/home/jens/Source/shotwell/src/Event.vala"
- g_debug ("Event.vala:638: Skipping event assignment to %s: no exposure time and " \
-"no event name", _tmp3_);
-#line 638 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp3_);
-#line 639 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_new_event = FALSE;
-#line 641 "/home/jens/Source/shotwell/src/Event.vala"
- result = NULL;
-#line 641 "/home/jens/Source/shotwell/src/Event.vala"
- if (new_event) {
-#line 641 "/home/jens/Source/shotwell/src/Event.vala"
- *new_event = _vala_new_event;
-#line 5237 "Event.c"
- }
-#line 641 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5241 "Event.c"
- }
-#line 644 "/home/jens/Source/shotwell/src/Event.vala"
- count = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (events_so_far, TYPE_DATA_COLLECTION, DataCollection));
-#line 5245 "Event.c"
- {
- gint ctr = 0;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- ctr = 0;
-#line 5250 "Event.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = TRUE;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 5257 "Event.c"
- gint _tmp6_;
- gint _tmp7_;
- Event* event = NULL;
- gint _tmp8_;
- DataObject* _tmp9_;
- EventView* _tmp10_;
- DataSource* _tmp11_;
- Event* _tmp12_;
- gboolean _tmp13_ = FALSE;
- gboolean _tmp14_ = FALSE;
- gboolean _tmp15_ = FALSE;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- if (!_tmp4_) {
-#line 5271 "Event.c"
- gint _tmp5_;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = ctr;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- ctr = _tmp5_ + 1;
-#line 5277 "Event.c"
- }
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = FALSE;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = ctr;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = count;
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 5289 "Event.c"
- }
-#line 646 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = ctr;
-#line 646 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (events_so_far, TYPE_DATA_COLLECTION, DataCollection), _tmp8_);
-#line 646 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_EVENT_VIEW, EventView);
-#line 646 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_VIEW, DataView));
-#line 646 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_EVENT, Event);
-#line 646 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp10_);
-#line 646 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp12_;
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- if (event_name != NULL) {
-#line 5307 "Event.c"
- Event* _tmp16_;
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = event;
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = event_has_name (_tmp16_);
-#line 5313 "Event.c"
- } else {
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = FALSE;
-#line 5317 "Event.c"
- }
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp15_) {
-#line 5321 "Event.c"
- Event* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = event;
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_OBJECT, DataObject));
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = _tmp18_;
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = g_strcmp0 (event_name, _tmp19_) == 0;
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp19_);
-#line 5335 "Event.c"
- } else {
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = FALSE;
-#line 5339 "Event.c"
- }
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp14_) {
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = TRUE;
-#line 5345 "Event.c"
- } else {
- Event* _tmp20_;
- time_t _tmp21_;
-#line 649 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = event;
-#line 649 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp21_ = exposure_time;
-#line 649 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = event_is_in_starting_day (_tmp20_, _tmp21_);
-#line 5355 "Event.c"
- }
-#line 648 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp13_) {
-#line 650 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_new_event = FALSE;
-#line 652 "/home/jens/Source/shotwell/src/Event.vala"
- result = event;
-#line 652 "/home/jens/Source/shotwell/src/Event.vala"
- if (new_event) {
-#line 652 "/home/jens/Source/shotwell/src/Event.vala"
- *new_event = _vala_new_event;
-#line 5367 "Event.c"
- }
-#line 652 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5371 "Event.c"
- }
-#line 645 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 5375 "Event.c"
- }
- }
- }
- {
- EventRow* _tmp22_ = NULL;
- EventTable* _tmp23_;
- EventTable* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- EventRow* _tmp27_;
- EventRow* _tmp28_;
- Event* event = NULL;
- Event* _tmp29_;
- Event* _tmp31_;
- EventView* _tmp32_;
- EventView* _tmp33_;
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp23_ = event_table_get_instance ();
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp24_ = _tmp23_;
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp25_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_SOURCE, DataSource));
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp26_ = _tmp25_;
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp27_ = event_table_create (_tmp24_, _tmp26_, NULL, &_inner_error_);
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp28_ = _tmp27_;
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp26_);
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _database_table_unref0 (_tmp24_);
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp22_ = _tmp28_;
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5414 "Event.c"
- goto __catch449_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);
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- return NULL;
-#line 5423 "Event.c"
- }
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp29_ = event_new (_tmp22_, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 658 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp29_;
-#line 659 "/home/jens/Source/shotwell/src/Event.vala"
- if (event_name != NULL) {
-#line 5431 "Event.c"
- Event* _tmp30_;
-#line 660 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp30_ = event;
-#line 660 "/home/jens/Source/shotwell/src/Event.vala"
- event_rename (_tmp30_, event_name);
-#line 5437 "Event.c"
- }
-#line 662 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp31_ = event;
-#line 662 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp32_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_EVENT_SOURCE, EventSource));
-#line 662 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp33_ = _tmp32_;
-#line 662 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (events_so_far, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_OBJECT, DataObject));
-#line 662 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp33_);
-#line 664 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_new_event = TRUE;
-#line 665 "/home/jens/Source/shotwell/src/Event.vala"
- result = event;
-#line 665 "/home/jens/Source/shotwell/src/Event.vala"
- _event_row_unref0 (_tmp22_);
-#line 665 "/home/jens/Source/shotwell/src/Event.vala"
- if (new_event) {
-#line 665 "/home/jens/Source/shotwell/src/Event.vala"
- *new_event = _vala_new_event;
-#line 5459 "Event.c"
- }
-#line 665 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5463 "Event.c"
- }
- goto __finally449;
- __catch449_database_error:
- {
- GError* err = NULL;
- GError* _tmp34_;
-#line 657 "/home/jens/Source/shotwell/src/Event.vala"
- err = _inner_error_;
-#line 657 "/home/jens/Source/shotwell/src/Event.vala"
- _inner_error_ = NULL;
-#line 667 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp34_ = err;
-#line 667 "/home/jens/Source/shotwell/src/Event.vala"
- app_window_database_error (_tmp34_);
-#line 657 "/home/jens/Source/shotwell/src/Event.vala"
- _g_error_free0 (err);
-#line 5480 "Event.c"
- }
- __finally449:
-#line 657 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 657 "/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 657 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 657 "/home/jens/Source/shotwell/src/Event.vala"
- return NULL;
-#line 5491 "Event.c"
- }
-#line 670 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_new_event = FALSE;
-#line 672 "/home/jens/Source/shotwell/src/Event.vala"
- result = NULL;
-#line 672 "/home/jens/Source/shotwell/src/Event.vala"
- if (new_event) {
-#line 672 "/home/jens/Source/shotwell/src/Event.vala"
- *new_event = _vala_new_event;
-#line 5501 "Event.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5505 "Event.c"
-}
-
-
-void
-event_generate_single_event (MediaSource* media,
- ViewCollection* events_so_far,
- const gchar* event_name)
-{
- Event* _tmp0_;
- Event* _tmp1_;
- gboolean _tmp2_;
- gboolean new_event = FALSE;
- Event* event = NULL;
- gboolean _tmp3_ = FALSE;
- Event* _tmp4_;
- Event* _tmp5_;
- Event* _tmp6_;
- gboolean _tmp7_;
-#line 675 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (media));
-#line 675 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (events_so_far));
-#line 678 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = media_source_get_event (media);
-#line 678 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_;
-#line 678 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp1_ != NULL;
-#line 678 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp1_);
-#line 678 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp2_) {
-#line 679 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 5540 "Event.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = event_generate_event (media, events_so_far, event_name, &_tmp3_);
-#line 682 "/home/jens/Source/shotwell/src/Event.vala"
- new_event = _tmp3_;
-#line 682 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp4_;
-#line 683 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = event;
-#line 683 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp5_ == NULL) {
-#line 684 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 684 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 5556 "Event.c"
- }
-#line 686 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = event;
-#line 686 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_set_event (media, _tmp6_);
-#line 688 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = new_event;
-#line 688 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp7_) {
-#line 5566 "Event.c"
- EventSourceCollection* _tmp8_;
- Event* _tmp9_;
-#line 689 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = event_global;
-#line 689 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = event;
-#line 689 "/home/jens/Source/shotwell/src/Event.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 5575 "Event.c"
- }
-#line 675 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 5579 "Event.c"
-}
-
-
-void
-event_generate_many_events (GeeCollection* sources,
- ViewCollection* events_so_far)
-{
- GeeCollection* to_add = NULL;
- GeeArrayList* _tmp0_;
- GeeCollection* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 692 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 692 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (events_so_far));
-#line 693 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 693 "/home/jens/Source/shotwell/src/Event.vala"
- to_add = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 5600 "Event.c"
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp1_;
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- _media_it = _tmp1_;
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 5610 "Event.c"
- GeeIterator* _tmp2_;
- MediaSource* media = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- MediaSource* _tmp5_;
- Event* _tmp6_;
- Event* _tmp7_;
- gboolean _tmp8_;
- gboolean new_event = FALSE;
- Event* event = NULL;
- MediaSource* _tmp9_;
- gboolean _tmp10_ = FALSE;
- Event* _tmp11_;
- Event* _tmp12_;
- MediaSource* _tmp13_;
- Event* _tmp14_;
- gboolean _tmp15_;
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _media_it;
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 5634 "Event.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _media_it;
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- media = (MediaSource*) _tmp4_;
-#line 696 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = media;
-#line 696 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = media_source_get_event (_tmp5_);
-#line 696 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = _tmp6_;
-#line 696 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_ != NULL;
-#line 696 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp7_);
-#line 696 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp8_) {
-#line 697 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 697 "/home/jens/Source/shotwell/src/Event.vala"
- continue;
-#line 5658 "Event.c"
- }
-#line 700 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = media;
-#line 700 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = event_generate_event (_tmp9_, events_so_far, NULL, &_tmp10_);
-#line 700 "/home/jens/Source/shotwell/src/Event.vala"
- new_event = _tmp10_;
-#line 700 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp11_;
-#line 701 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = event;
-#line 701 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp12_ == NULL) {
-#line 702 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 702 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 702 "/home/jens/Source/shotwell/src/Event.vala"
- continue;
-#line 5678 "Event.c"
- }
-#line 704 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = media;
-#line 704 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = event;
-#line 704 "/home/jens/Source/shotwell/src/Event.vala"
- media_source_set_event (_tmp13_, _tmp14_);
-#line 706 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = new_event;
-#line 706 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp15_) {
-#line 5690 "Event.c"
- GeeCollection* _tmp16_;
- Event* _tmp17_;
-#line 707 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = to_add;
-#line 707 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = event;
-#line 707 "/home/jens/Source/shotwell/src/Event.vala"
- gee_collection_add (_tmp16_, _tmp17_);
-#line 5699 "Event.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media);
-#line 5705 "Event.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_media_it);
-#line 5709 "Event.c"
- }
-#line 710 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = to_add;
-#line 710 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = gee_collection_get_size (_tmp18_);
-#line 710 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = _tmp19_;
-#line 710 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp20_ > 0) {
-#line 5719 "Event.c"
- EventSourceCollection* _tmp21_;
- GeeCollection* _tmp22_;
- GeeCollection* _tmp23_;
- GeeCollection* _tmp24_;
-#line 711 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp21_ = event_global;
-#line 711 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp22_ = to_add;
-#line 711 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp23_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_COLLECTION, DataCollection), _tmp22_, NULL, NULL);
-#line 711 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp24_ = _tmp23_;
-#line 711 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp24_);
-#line 5734 "Event.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (to_add);
-#line 5738 "Event.c"
-}
-
-
-void
-event_get_event_id (Event* self,
- EventID* result)
-{
- EventID _tmp0_;
-#line 714 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 715 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->event_id;
-#line 715 "/home/jens/Source/shotwell/src/Event.vala"
- *result = _tmp0_;
-#line 715 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 5755 "Event.c"
-}
-
-
-static SourceSnapshot*
-event_real_save_snapshot (DataSource* base)
-{
- Event * self;
- SourceSnapshot* result = NULL;
- EventEventSnapshot* _tmp0_;
-#line 718 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 719 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_event_snapshot_new (self);
-#line 719 "/home/jens/Source/shotwell/src/Event.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_SNAPSHOT, SourceSnapshot);
-#line 719 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5773 "Event.c"
-}
-
-
-static SourceProxy*
-event_real_get_proxy (Proxyable* base)
-{
- Event * self;
- SourceProxy* result = NULL;
- EventEventProxy* _tmp0_;
-#line 722 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 723 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_event_proxy_new (self);
-#line 723 "/home/jens/Source/shotwell/src/Event.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_PROXY, SourceProxy);
-#line 723 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5791 "Event.c"
-}
-
-
-static gboolean
-event_real_equals (DataSource* base,
- DataSource* source)
-{
- Event * self;
- gboolean result = FALSE;
- Event* event = NULL;
- Event* _tmp0_;
- Event* _tmp1_;
-#line 726 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 726 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE);
-#line 728 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_EVENT) ? ((Event*) source) : NULL);
-#line 728 "/home/jens/Source/shotwell/src/Event.vala"
- event = _tmp0_;
-#line 729 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event;
-#line 729 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ != NULL) {
-#line 5816 "Event.c"
- Event* _tmp2_;
-#line 730 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = event;
-#line 730 "/home/jens/Source/shotwell/src/Event.vala"
- if (self != _tmp2_) {
-#line 5822 "Event.c"
- EventID _tmp3_;
- gint64 _tmp4_;
- Event* _tmp5_;
- EventID _tmp6_;
- gint64 _tmp7_;
-#line 731 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = self->priv->event_id;
-#line 731 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _tmp3_.id;
-#line 731 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = event;
-#line 731 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_->priv->event_id;
-#line 731 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = _tmp6_.id;
-#line 731 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_assert (_tmp4_ != _tmp7_, "event_id.id != event.event_id.id");
-#line 5840 "Event.c"
- }
- }
-#line 735 "/home/jens/Source/shotwell/src/Event.vala"
- result = DATA_SOURCE_CLASS (event_parent_class)->equals (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource), TYPE_DATA_SOURCE, DataSource), source);
-#line 735 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (event);
-#line 735 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5849 "Event.c"
-}
-
-
-static gchar*
-event_real_to_string (DataObject* base)
-{
- Event * self;
- gchar* result = NULL;
- EventID _tmp0_;
- gint64 _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 738 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->event_id;
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_.id;
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp1_);
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp2_;
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = g_strdup_printf ("%" G_GINT64_FORMAT, data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)));
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = _tmp4_;
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = _tmp6_;
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = g_strdup_printf ("Event [%s/%s] %s", _tmp3_, _tmp5_, _tmp7_);
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = _tmp8_;
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp7_);
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp5_);
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp3_);
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp9_;
-#line 739 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5900 "Event.c"
-}
-
-
-gboolean
-event_has_name (Event* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- const gchar* _tmp1_;
-#line 742 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), FALSE);
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->raw_name;
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ != NULL) {
-#line 5916 "Event.c"
- const gchar* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->raw_name;
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = strlen (_tmp2_);
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _tmp3_;
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _tmp4_ > 0;
-#line 5928 "Event.c"
- } else {
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = FALSE;
-#line 5932 "Event.c"
- }
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 743 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5938 "Event.c"
-}
-
-
-static gchar*
-event_real_get_name (DataObject* base)
-{
- Event * self;
- gchar* result = NULL;
- gchar* datestring = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_ = NULL;
- const gchar* _tmp3_;
-#line 746 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 747 "/home/jens/Source/shotwell/src/Event.vala"
- if (event_has_name (self)) {
-#line 5955 "Event.c"
- gchar* _tmp0_;
-#line 748 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_get_raw_name (self);
-#line 748 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 748 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 5963 "Event.c"
- }
-#line 751 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_get_formatted_daterange (self);
-#line 751 "/home/jens/Source/shotwell/src/Event.vala"
- datestring = _tmp1_;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = datestring;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- if (!is_string_empty (_tmp3_)) {
-#line 5973 "Event.c"
- const gchar* _tmp4_;
- gchar* _tmp5_;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = datestring;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp2_);
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp5_;
-#line 5984 "Event.c"
- } else {
- EventID _tmp6_;
- gint64 _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = self->priv->event_id;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = _tmp6_.id;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp7_);
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = _tmp8_;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = g_strdup_printf (_ ("Event %s"), _tmp9_);
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp2_);
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp10_;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp9_);
-#line 6007 "Event.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp2_;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (datestring);
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6015 "Event.c"
-}
-
-
-gchar*
-event_get_formatted_daterange (Event* self)
-{
- gchar* result = NULL;
- time_t start_time = 0;
- time_t end_time = 0;
- gboolean _tmp0_ = FALSE;
- time_t _tmp1_;
- gboolean _tmp3_ = FALSE;
- time_t _tmp4_;
- struct tm start = {0};
- time_t _tmp9_;
- struct tm _tmp10_ = {0};
- struct tm end = {0};
- time_t _tmp11_;
- struct tm _tmp12_ = {0};
- gboolean _tmp13_ = FALSE;
- gboolean _tmp14_ = FALSE;
- struct tm _tmp15_;
- gint _tmp16_;
- struct tm _tmp17_;
- gint _tmp18_;
- struct tm _tmp30_;
- struct tm _tmp31_;
- gchar* _tmp32_;
-#line 756 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), NULL);
-#line 757 "/home/jens/Source/shotwell/src/Event.vala"
- start_time = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
-#line 758 "/home/jens/Source/shotwell/src/Event.vala"
- end_time = event_source_get_end_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
-#line 760 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = end_time;
-#line 760 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ == ((time_t) 0)) {
-#line 6054 "Event.c"
- time_t _tmp2_;
-#line 760 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = start_time;
-#line 760 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _tmp2_ == ((time_t) 0);
-#line 6060 "Event.c"
- } else {
-#line 760 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = FALSE;
-#line 6064 "Event.c"
- }
-#line 760 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp0_) {
-#line 761 "/home/jens/Source/shotwell/src/Event.vala"
- result = NULL;
-#line 761 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6072 "Event.c"
- }
-#line 763 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = end_time;
-#line 763 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp4_ == ((time_t) 0)) {
-#line 6078 "Event.c"
- time_t _tmp5_;
-#line 763 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = start_time;
-#line 763 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp5_ != ((time_t) 0);
-#line 6084 "Event.c"
- } else {
-#line 763 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = FALSE;
-#line 6088 "Event.c"
- }
-#line 763 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp3_) {
-#line 6092 "Event.c"
- time_t _tmp6_;
- struct tm _tmp7_ = {0};
- gchar* _tmp8_;
-#line 764 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = start_time;
-#line 764 "/home/jens/Source/shotwell/src/Event.vala"
- g_time_local (_tmp6_, &_tmp7_);
-#line 764 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = format_local_date (&_tmp7_);
-#line 764 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp8_;
-#line 764 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6106 "Event.c"
- }
-#line 766 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = start_time;
-#line 766 "/home/jens/Source/shotwell/src/Event.vala"
- g_time_local (_tmp9_, &_tmp10_);
-#line 766 "/home/jens/Source/shotwell/src/Event.vala"
- start = _tmp10_;
-#line 767 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = end_time;
-#line 767 "/home/jens/Source/shotwell/src/Event.vala"
- g_time_local (_tmp11_, &_tmp12_);
-#line 767 "/home/jens/Source/shotwell/src/Event.vala"
- end = _tmp12_;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = start;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp16_ = _tmp15_.tm_mday;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp17_ = end;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp18_ = _tmp17_.tm_mday;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp16_ == _tmp18_) {
-#line 6130 "Event.c"
- struct tm _tmp19_;
- gint _tmp20_;
- struct tm _tmp21_;
- gint _tmp22_;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp19_ = start;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp20_ = _tmp19_.tm_mon;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp21_ = end;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp22_ = _tmp21_.tm_mon;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = _tmp20_ == _tmp22_;
-#line 6145 "Event.c"
- } else {
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = FALSE;
-#line 6149 "Event.c"
- }
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp14_) {
-#line 6153 "Event.c"
- struct tm _tmp23_;
- gint _tmp24_;
- struct tm _tmp25_;
- gint _tmp26_;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp23_ = start;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp24_ = _tmp23_.tm_mday;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp25_ = end;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp26_ = _tmp25_.tm_mday;
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = _tmp24_ == _tmp26_;
-#line 6168 "Event.c"
- } else {
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = FALSE;
-#line 6172 "Event.c"
- }
-#line 769 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp13_) {
-#line 6176 "Event.c"
- time_t _tmp27_;
- struct tm _tmp28_ = {0};
- gchar* _tmp29_;
-#line 770 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp27_ = start_time;
-#line 770 "/home/jens/Source/shotwell/src/Event.vala"
- g_time_local (_tmp27_, &_tmp28_);
-#line 770 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp29_ = format_local_date (&_tmp28_);
-#line 770 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp29_;
-#line 770 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6190 "Event.c"
- }
-#line 772 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp30_ = start;
-#line 772 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp31_ = end;
-#line 772 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp32_ = format_local_datespan (&_tmp30_, &_tmp31_);
-#line 772 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp32_;
-#line 772 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6202 "Event.c"
-}
-
-
-gchar*
-event_get_raw_name (Event* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 775 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), NULL);
-#line 776 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->raw_name;
-#line 776 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 776 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp1_;
-#line 776 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6222 "Event.c"
-}
-
-
-static gchar*
-event_real_get_comment (EventSource* base)
-{
- Event * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 779 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 780 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->comment;
-#line 780 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 780 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp1_;
-#line 780 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6243 "Event.c"
-}
-
-
-gboolean
-event_rename (Event* self,
- const gchar* name)
-{
- gboolean result = FALSE;
- gchar* new_name = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
- gboolean renamed = FALSE;
- EventTable* _tmp6_;
- EventID _tmp7_;
- const gchar* _tmp8_;
- gboolean _tmp9_;
-#line 783 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), FALSE);
-#line 784 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_prep_event_name (name);
-#line 784 "/home/jens/Source/shotwell/src/Event.vala"
- new_name = _tmp0_;
-#line 787 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = new_name;
-#line 787 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = event_get_formatted_daterange (self);
-#line 787 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp2_;
-#line 787 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = g_strcmp0 (_tmp1_, _tmp3_) == 0;
-#line 787 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp3_);
-#line 787 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp4_) {
-#line 6281 "Event.c"
- gchar* _tmp5_;
-#line 788 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = g_strdup ("");
-#line 788 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (new_name);
-#line 788 "/home/jens/Source/shotwell/src/Event.vala"
- new_name = _tmp5_;
-#line 6289 "Event.c"
- }
-#line 791 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = event_event_table;
-#line 791 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = self->priv->event_id;
-#line 791 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = new_name;
-#line 791 "/home/jens/Source/shotwell/src/Event.vala"
- renamed = event_table_rename (_tmp6_, &_tmp7_, _tmp8_);
-#line 792 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = renamed;
-#line 792 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp9_) {
-#line 6303 "Event.c"
- const gchar* _tmp10_;
- gchar* _tmp11_;
- Alteration* _tmp12_;
- Alteration* _tmp13_;
-#line 793 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = new_name;
-#line 793 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 793 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->raw_name);
-#line 793 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->raw_name = _tmp11_;
-#line 794 "/home/jens/Source/shotwell/src/Event.vala"
- event_update_indexable_keywords (self);
-#line 795 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = alteration_new_from_list ("metadata:name, indexable:keywords");
-#line 795 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = _tmp12_;
-#line 795 "/home/jens/Source/shotwell/src/Event.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_);
-#line 795 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_unref0 (_tmp13_);
-#line 6326 "Event.c"
- }
-#line 798 "/home/jens/Source/shotwell/src/Event.vala"
- result = renamed;
-#line 798 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (new_name);
-#line 798 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6334 "Event.c"
-}
-
-
-static gboolean
-event_real_set_comment (EventSource* base,
- const gchar* comment)
-{
- Event * self;
- gboolean result = FALSE;
- gchar* new_comment = NULL;
- gchar* _tmp0_;
- gboolean committed = FALSE;
- EventTable* _tmp1_;
- EventID _tmp2_;
- const gchar* _tmp3_;
- gboolean _tmp4_;
-#line 801 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 802 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = media_source_prep_comment (comment);
-#line 802 "/home/jens/Source/shotwell/src/Event.vala"
- new_comment = _tmp0_;
-#line 804 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_event_table;
-#line 804 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->event_id;
-#line 804 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = new_comment;
-#line 804 "/home/jens/Source/shotwell/src/Event.vala"
- committed = event_table_set_comment (_tmp1_, &_tmp2_, _tmp3_);
-#line 805 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = committed;
-#line 805 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp4_) {
-#line 6369 "Event.c"
- const gchar* _tmp5_;
- gchar* _tmp6_;
- Alteration* _tmp7_;
- Alteration* _tmp8_;
-#line 806 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = new_comment;
-#line 806 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 806 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->comment);
-#line 806 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->comment = _tmp6_;
-#line 807 "/home/jens/Source/shotwell/src/Event.vala"
- event_update_indexable_keywords (self);
-#line 808 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = alteration_new_from_list ("metadata:comment, indexable:keywords");
-#line 808 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_;
-#line 808 "/home/jens/Source/shotwell/src/Event.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp8_);
-#line 808 "/home/jens/Source/shotwell/src/Event.vala"
- _alteration_unref0 (_tmp8_);
-#line 6392 "Event.c"
- }
-#line 811 "/home/jens/Source/shotwell/src/Event.vala"
- result = committed;
-#line 811 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (new_comment);
-#line 811 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6400 "Event.c"
-}
-
-
-time_t
-event_get_creation_time (Event* self)
-{
- time_t result = 0;
- EventTable* _tmp0_;
- EventID _tmp1_;
-#line 814 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), 0);
-#line 815 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_event_table;
-#line 815 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->event_id;
-#line 815 "/home/jens/Source/shotwell/src/Event.vala"
- result = event_table_get_time_created (_tmp0_, &_tmp1_);
-#line 815 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6420 "Event.c"
-}
-
-
-static time_t
-event_real_get_start_time (EventSource* base)
-{
- Event * self;
- time_t result = 0;
- gint count = 0;
- ViewCollection* _tmp0_;
-#line 818 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 821 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 821 "/home/jens/Source/shotwell/src/Event.vala"
- count = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 6437 "Event.c"
- {
- gint i = 0;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- i = 0;
-#line 6442 "Event.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = TRUE;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 6449 "Event.c"
- gint _tmp3_;
- gint _tmp4_;
- time_t time = 0;
- ViewCollection* _tmp5_;
- gint _tmp6_;
- DataObject* _tmp7_;
- DataView* _tmp8_;
- DataSource* _tmp9_;
- MediaSource* _tmp10_;
- time_t _tmp11_;
- time_t _tmp12_;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- if (!_tmp1_) {
-#line 6463 "Event.c"
- gint _tmp2_;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = i;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- i = _tmp2_ + 1;
-#line 6469 "Event.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = FALSE;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = i;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = count;
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- if (!(_tmp3_ < _tmp4_)) {
-#line 822 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 6481 "Event.c"
- }
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = self->priv->view;
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = i;
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), _tmp6_);
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_VIEW, DataView);
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = data_view_get_source (_tmp8_);
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = media_source_get_exposure_time (_tmp10_);
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp10_);
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp8_);
-#line 823 "/home/jens/Source/shotwell/src/Event.vala"
- time = _tmp11_;
-#line 824 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = time;
-#line 824 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp12_ != ((time_t) 0)) {
-#line 825 "/home/jens/Source/shotwell/src/Event.vala"
- result = time;
-#line 825 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6511 "Event.c"
- }
- }
- }
- }
-#line 828 "/home/jens/Source/shotwell/src/Event.vala"
- result = (time_t) 0;
-#line 828 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6520 "Event.c"
-}
-
-
-static time_t
-event_real_get_end_time (EventSource* base)
-{
- Event * self;
- time_t result = 0;
- gint count = 0;
- ViewCollection* _tmp0_;
- gint _tmp1_;
- ViewCollection* _tmp2_;
- gint _tmp3_;
- DataObject* _tmp4_;
- DataView* _tmp5_;
- DataSource* _tmp6_;
- MediaSource* _tmp7_;
- time_t _tmp8_;
-#line 831 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 832 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 832 "/home/jens/Source/shotwell/src/Event.vala"
- count = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 836 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = count;
-#line 836 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ == 0) {
-#line 837 "/home/jens/Source/shotwell/src/Event.vala"
- result = (time_t) 0;
-#line 837 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6553 "Event.c"
- }
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->view;
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = count;
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), _tmp3_ - 1);
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView);
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = data_view_get_source (_tmp5_);
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = media_source_get_exposure_time (_tmp7_);
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp7_);
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp5_);
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp8_;
-#line 839 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6577 "Event.c"
-}
-
-
-static guint64
-event_real_get_total_filesize (EventSource* base)
-{
- Event * self;
- guint64 result = 0ULL;
- guint64 total = 0ULL;
-#line 842 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 843 "/home/jens/Source/shotwell/src/Event.vala"
- total = (guint64) 0;
-#line 6591 "Event.c"
- {
- GeeIterator* _current_source_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_;
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp2_;
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp1_);
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _current_source_it = _tmp3_;
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 6612 "Event.c"
- GeeIterator* _tmp4_;
- MediaSource* current_source = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- guint64 _tmp7_;
- MediaSource* _tmp8_;
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _current_source_it;
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 6625 "Event.c"
- }
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = _current_source_it;
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- current_source = (MediaSource*) _tmp6_;
-#line 845 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = total;
-#line 845 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = current_source;
-#line 845 "/home/jens/Source/shotwell/src/Event.vala"
- total = _tmp7_ + media_source_get_filesize (_tmp8_);
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (current_source);
-#line 6641 "Event.c"
- }
-#line 844 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_current_source_it);
-#line 6645 "Event.c"
- }
-#line 848 "/home/jens/Source/shotwell/src/Event.vala"
- result = total;
-#line 848 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6651 "Event.c"
-}
-
-
-static gint
-event_real_get_media_count (EventSource* base)
-{
- Event * self;
- gint result = 0;
- ViewCollection* _tmp0_;
-#line 851 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 852 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 852 "/home/jens/Source/shotwell/src/Event.vala"
- result = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 852 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6669 "Event.c"
-}
-
-
-static GeeCollection*
-event_real_get_media (EventSource* base)
-{
- Event * self;
- GeeCollection* result = NULL;
- ViewCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 855 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 856 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 856 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = view_collection_get_sources (_tmp0_);
-#line 856 "/home/jens/Source/shotwell/src/Event.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 856 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6690 "Event.c"
-}
-
-
-void
-event_mirror_photos (Event* self,
- ViewCollection* view,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target)
-{
- ViewCollection* _tmp0_;
-#line 859 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 859 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (view));
-#line 860 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 860 "/home/jens/Source/shotwell/src/Event.vala"
- view_collection_mirror (view, _tmp0_, mirroring_ctor, mirroring_ctor_target, NULL, NULL);
-#line 6709 "Event.c"
-}
-
-
-static void
-event_on_primary_thumbnail_altered (Event* self)
-{
-#line 863 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 864 "/home/jens/Source/shotwell/src/Event.vala"
- thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 6720 "Event.c"
-}
-
-
-MediaSource*
-event_get_primary_source (Event* self)
-{
- MediaSource* result = NULL;
- MediaSource* _tmp0_;
- MediaSource* _tmp1_;
-#line 867 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), NULL);
-#line 868 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->primary_source;
-#line 868 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 868 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp1_;
-#line 868 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6740 "Event.c"
-}
-
-
-gboolean
-event_set_primary_source (Event* self,
- MediaSource* source)
-{
- gboolean result = FALSE;
- ViewCollection* _tmp0_;
- gboolean committed = FALSE;
- EventTable* _tmp1_;
- EventID _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 871 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), FALSE);
-#line 871 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 872 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 872 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_assert (view_collection_has_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)), "view.has_view_for_source(source)");
-#line 874 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_event_table;
-#line 874 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->event_id;
-#line 874 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 874 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = _tmp3_;
-#line 874 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = event_table_set_primary_source_id (_tmp1_, &_tmp2_, _tmp4_);
-#line 874 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp4_);
-#line 874 "/home/jens/Source/shotwell/src/Event.vala"
- committed = _tmp5_;
-#line 875 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = committed;
-#line 875 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp6_) {
-#line 6783 "Event.c"
- MediaSource* _tmp7_;
- MediaSource* _tmp10_;
- MediaSource* _tmp11_;
-#line 877 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = self->priv->primary_source;
-#line 877 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp7_ != NULL) {
-#line 6791 "Event.c"
- MediaSource* _tmp8_;
- guint _tmp9_;
-#line 878 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = self->priv->primary_source;
-#line 878 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, &_tmp9_, NULL, FALSE);
-#line 878 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self);
-#line 6800 "Event.c"
- }
-#line 880 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = _g_object_ref0 (source);
-#line 880 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->primary_source);
-#line 880 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->primary_source = _tmp10_;
-#line 881 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = self->priv->primary_source;
-#line 881 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), "thumbnail-altered", (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self, 0);
-#line 883 "/home/jens/Source/shotwell/src/Event.vala"
- thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 6814 "Event.c"
- }
-#line 886 "/home/jens/Source/shotwell/src/Event.vala"
- result = committed;
-#line 886 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6820 "Event.c"
-}
-
-
-static void
-event_release_primary_source (Event* self)
-{
- MediaSource* _tmp0_;
- MediaSource* _tmp1_;
- guint _tmp2_;
-#line 889 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_EVENT (self));
-#line 890 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->primary_source;
-#line 890 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp0_ == NULL) {
-#line 891 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 6838 "Event.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->primary_source;
-#line 893 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, &_tmp2_, NULL, FALSE);
-#line 893 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self);
-#line 894 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->primary_source);
-#line 894 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->primary_source = NULL;
-#line 6850 "Event.c"
-}
-
-
-static GdkPixbuf*
-event_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- Event * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- MediaSource* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 897 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->primary_source;
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_ != NULL) {
-#line 6870 "Event.c"
- MediaSource* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->primary_source;
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_);
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp0_);
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _tmp3_;
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- g_propagate_error (error, _inner_error_);
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp0_);
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- return NULL;
-#line 6889 "Event.c"
- }
- } else {
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp0_);
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = NULL;
-#line 6896 "Event.c"
- }
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp0_;
-#line 898 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6902 "Event.c"
-}
-
-
-GdkPixbuf*
-event_get_preview_pixbuf (Event* self,
- Scaling* scaling)
-{
- GdkPixbuf* result = NULL;
- GError * _inner_error_ = NULL;
-#line 901 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (self), NULL);
-#line 901 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 6916 "Event.c"
- {
- GdkPixbuf* _tmp0_ = NULL;
- MediaSource* _tmp1_;
- MediaSource* _tmp2_;
- Scaling _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_get_primary_source (self);
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp1_;
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = *scaling;
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = media_source_get_preview_pixbuf (_tmp2_, &_tmp3_, &_inner_error_);
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = _tmp4_;
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp2_);
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _tmp5_;
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6941 "Event.c"
- goto __catch450_g_error;
- }
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp0_;
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = NULL;
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp6_;
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp0_);
-#line 903 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6954 "Event.c"
- }
- goto __finally450;
- __catch450_g_error:
- {
- GError* err = NULL;
-#line 902 "/home/jens/Source/shotwell/src/Event.vala"
- err = _inner_error_;
-#line 902 "/home/jens/Source/shotwell/src/Event.vala"
- _inner_error_ = NULL;
-#line 905 "/home/jens/Source/shotwell/src/Event.vala"
- result = NULL;
-#line 905 "/home/jens/Source/shotwell/src/Event.vala"
- _g_error_free0 (err);
-#line 905 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 6970 "Event.c"
- }
- __finally450:
-#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"
- g_clear_error (&_inner_error_);
-#line 902 "/home/jens/Source/shotwell/src/Event.vala"
- return NULL;
-#line 6979 "Event.c"
-}
-
-
-static void
-event_real_destroy (DataSource* base)
-{
- Event * self;
- ViewCollection* _tmp0_;
- PhotoTable* _tmp4_;
- PhotoTable* _tmp5_;
- EventID _tmp6_;
- VideoTable* _tmp7_;
- VideoTable* _tmp8_;
- EventID _tmp9_;
- GError * _inner_error_ = NULL;
-#line 909 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
-#line 911 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->view;
-#line 911 "/home/jens/Source/shotwell/src/Event.vala"
- view_collection_halt_all_monitoring (_tmp0_);
-#line 7001 "Event.c"
- {
- EventTable* _tmp1_;
- EventID _tmp2_;
-#line 915 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_event_table;
-#line 915 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = self->priv->event_id;
-#line 915 "/home/jens/Source/shotwell/src/Event.vala"
- event_table_remove (_tmp1_, &_tmp2_, &_inner_error_);
-#line 915 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 915 "/home/jens/Source/shotwell/src/Event.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 7015 "Event.c"
- goto __catch451_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);
-#line 915 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 915 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 7024 "Event.c"
- }
- }
- goto __finally451;
- __catch451_database_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
-#line 914 "/home/jens/Source/shotwell/src/Event.vala"
- err = _inner_error_;
-#line 914 "/home/jens/Source/shotwell/src/Event.vala"
- _inner_error_ = NULL;
-#line 917 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = err;
-#line 917 "/home/jens/Source/shotwell/src/Event.vala"
- app_window_database_error (_tmp3_);
-#line 914 "/home/jens/Source/shotwell/src/Event.vala"
- _g_error_free0 (err);
-#line 7042 "Event.c"
- }
- __finally451:
-#line 914 "/home/jens/Source/shotwell/src/Event.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 914 "/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 914 "/home/jens/Source/shotwell/src/Event.vala"
- g_clear_error (&_inner_error_);
-#line 914 "/home/jens/Source/shotwell/src/Event.vala"
- return;
-#line 7053 "Event.c"
- }
-#line 921 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = photo_table_get_instance ();
-#line 921 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = _tmp4_;
-#line 921 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = self->priv->event_id;
-#line 921 "/home/jens/Source/shotwell/src/Event.vala"
- photo_table_drop_event (_tmp5_, &_tmp6_);
-#line 921 "/home/jens/Source/shotwell/src/Event.vala"
- _database_table_unref0 (_tmp5_);
-#line 922 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = video_table_get_instance ();
-#line 922 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_;
-#line 922 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = self->priv->event_id;
-#line 922 "/home/jens/Source/shotwell/src/Event.vala"
- video_table_drop_event (_tmp8_, &_tmp9_);
-#line 922 "/home/jens/Source/shotwell/src/Event.vala"
- _database_table_unref0 (_tmp8_);
-#line 924 "/home/jens/Source/shotwell/src/Event.vala"
- DATA_SOURCE_CLASS (event_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource), TYPE_DATA_SOURCE, DataSource));
-#line 7077 "Event.c"
-}
-
-
-static void
-_event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 126 "/home/jens/Source/shotwell/src/Event.vala"
- event_event_snapshot_on_attached_source_destroyed ((EventEventSnapshot*) self, source);
-#line 7088 "Event.c"
-}
-
-
-static EventEventSnapshot*
-event_event_snapshot_construct (GType object_type,
- Event* event)
-{
- EventEventSnapshot* self = NULL;
- EventTable* _tmp0_;
- EventTable* _tmp1_;
- EventID _tmp2_ = {0};
- EventRow* _tmp3_;
- MediaSource* _tmp4_;
- LibraryPhotoSourceCollection* _tmp14_;
- VideoSourceCollection* _tmp15_;
-#line 110 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 110 "/home/jens/Source/shotwell/src/Event.vala"
- self = (EventEventSnapshot*) source_snapshot_construct (object_type);
-#line 112 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_table_get_instance ();
-#line 112 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _tmp0_;
-#line 112 "/home/jens/Source/shotwell/src/Event.vala"
- event_get_event_id (event, &_tmp2_);
-#line 112 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = event_table_get_row (_tmp1_, &_tmp2_);
-#line 112 "/home/jens/Source/shotwell/src/Event.vala"
- _event_row_unref0 (self->priv->row);
-#line 112 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->row = _tmp3_;
-#line 112 "/home/jens/Source/shotwell/src/Event.vala"
- _database_table_unref0 (_tmp1_);
-#line 113 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = event_get_primary_source (event);
-#line 113 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->primary_source);
-#line 113 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->primary_source = _tmp4_;
-#line 7128 "Event.c"
- {
- GeeIterator* _source_it = NULL;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
- GeeIterator* _tmp8_;
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = _tmp5_;
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _tmp7_;
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_tmp6_);
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _source_it = _tmp8_;
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- while (TRUE) {
-#line 7149 "Event.c"
- GeeIterator* _tmp9_;
- MediaSource* source = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- GeeArrayList* _tmp12_;
- MediaSource* _tmp13_;
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = _source_it;
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- break;
-#line 7162 "Event.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = _source_it;
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- source = (MediaSource*) _tmp11_;
-#line 119 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = self->priv->attached_sources;
-#line 119 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = source;
-#line 119 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_);
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (source);
-#line 7178 "Event.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (_source_it);
-#line 7182 "Event.c"
- }
-#line 121 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp14_ = library_photo_global;
-#line 121 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self);
-#line 122 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp15_ = video_global;
-#line 122 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self);
-#line 110 "/home/jens/Source/shotwell/src/Event.vala"
- return self;
-#line 7194 "Event.c"
-}
-
-
-static EventEventSnapshot*
-event_event_snapshot_new (Event* event)
-{
-#line 110 "/home/jens/Source/shotwell/src/Event.vala"
- return event_event_snapshot_construct (EVENT_TYPE_EVENT_SNAPSHOT, event);
-#line 7203 "Event.c"
-}
-
-
-static gpointer
-_event_row_ref0 (gpointer self)
-{
-#line 131 "/home/jens/Source/shotwell/src/Event.vala"
- return self ? event_row_ref (self) : NULL;
-#line 7212 "Event.c"
-}
-
-
-static EventRow*
-event_event_snapshot_get_row (EventEventSnapshot* self)
-{
- EventRow* result = NULL;
- EventRow* _tmp0_;
- EventRow* _tmp1_;
-#line 130 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (EVENT_IS_EVENT_SNAPSHOT (self), NULL);
-#line 131 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->row;
-#line 131 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = _event_row_ref0 (_tmp0_);
-#line 131 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp1_;
-#line 131 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 7232 "Event.c"
-}
-
-
-static void
-event_event_snapshot_real_notify_broken (SourceSnapshot* base)
-{
- EventEventSnapshot * self;
- EventRow* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 134 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshot);
-#line 135 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = event_row_new ();
-#line 135 "/home/jens/Source/shotwell/src/Event.vala"
- _event_row_unref0 (self->priv->row);
-#line 135 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->row = _tmp0_;
-#line 136 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->primary_source);
-#line 136 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->primary_source = NULL;
-#line 137 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->attached_sources;
-#line 137 "/home/jens/Source/shotwell/src/Event.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 139 "/home/jens/Source/shotwell/src/Event.vala"
- SOURCE_SNAPSHOT_CLASS (event_event_snapshot_parent_class)->notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot));
-#line 7260 "Event.c"
-}
-
-
-static void
-event_event_snapshot_on_attached_source_destroyed (EventEventSnapshot* self,
- DataSource* source)
-{
- MediaSource* media_source = NULL;
- MediaSource* _tmp0_;
- gboolean _tmp1_ = FALSE;
- MediaSource* _tmp2_;
-#line 142 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (EVENT_IS_EVENT_SNAPSHOT (self));
-#line 142 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 143 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 143 "/home/jens/Source/shotwell/src/Event.vala"
- media_source = _tmp0_;
-#line 146 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = media_source;
-#line 146 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp2_ != NULL) {
-#line 7284 "Event.c"
- MediaSource* _tmp3_;
- MediaSource* _tmp4_;
-#line 146 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = self->priv->primary_source;
-#line 146 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = media_source;
-#line 146 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource));
-#line 7293 "Event.c"
- } else {
-#line 146 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = FALSE;
-#line 7297 "Event.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp1_) {
-#line 147 "/home/jens/Source/shotwell/src/Event.vala"
- source_snapshot_notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot));
-#line 7303 "Event.c"
- } else {
- GeeArrayList* _tmp5_;
- MediaSource* _tmp6_;
-#line 148 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = self->priv->attached_sources;
-#line 148 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp6_ = media_source;
-#line 148 "/home/jens/Source/shotwell/src/Event.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_)) {
-#line 149 "/home/jens/Source/shotwell/src/Event.vala"
- source_snapshot_notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot));
-#line 7315 "Event.c"
- }
- }
-#line 142 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (media_source);
-#line 7320 "Event.c"
-}
-
-
-static void
-event_event_snapshot_class_init (EventEventSnapshotClass * klass)
-{
-#line 105 "/home/jens/Source/shotwell/src/Event.vala"
- event_event_snapshot_parent_class = g_type_class_peek_parent (klass);
-#line 105 "/home/jens/Source/shotwell/src/Event.vala"
- ((SourceSnapshotClass *) klass)->finalize = event_event_snapshot_finalize;
-#line 105 "/home/jens/Source/shotwell/src/Event.vala"
- g_type_class_add_private (klass, sizeof (EventEventSnapshotPrivate));
-#line 105 "/home/jens/Source/shotwell/src/Event.vala"
- ((SourceSnapshotClass *) klass)->notify_broken = (void (*) (SourceSnapshot *)) event_event_snapshot_real_notify_broken;
-#line 7335 "Event.c"
-}
-
-
-static void
-event_event_snapshot_instance_init (EventEventSnapshot * self)
-{
- GeeArrayList* _tmp0_;
-#line 105 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv = EVENT_EVENT_SNAPSHOT_GET_PRIVATE (self);
-#line 108 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 108 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->attached_sources = _tmp0_;
-#line 7349 "Event.c"
-}
-
-
-static void
-event_event_snapshot_finalize (SourceSnapshot * obj)
-{
- EventEventSnapshot * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- VideoSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 105 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshot);
-#line 126 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = library_photo_global;
-#line 126 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 126 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self);
-#line 127 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = video_global;
-#line 127 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 127 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self);
-#line 106 "/home/jens/Source/shotwell/src/Event.vala"
- _event_row_unref0 (self->priv->row);
-#line 107 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->primary_source);
-#line 108 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->attached_sources);
-#line 105 "/home/jens/Source/shotwell/src/Event.vala"
- SOURCE_SNAPSHOT_CLASS (event_event_snapshot_parent_class)->finalize (obj);
-#line 7383 "Event.c"
-}
-
-
-static GType
-event_event_snapshot_get_type (void)
-{
- static volatile gsize event_event_snapshot_type_id__volatile = 0;
- if (g_once_init_enter (&event_event_snapshot_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventEventSnapshotClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_event_snapshot_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventEventSnapshot), 0, (GInstanceInitFunc) event_event_snapshot_instance_init, NULL };
- GType event_event_snapshot_type_id;
- event_event_snapshot_type_id = g_type_register_static (TYPE_SOURCE_SNAPSHOT, "EventEventSnapshot", &g_define_type_info, 0);
- g_once_init_leave (&event_event_snapshot_type_id__volatile, event_event_snapshot_type_id);
- }
- return event_event_snapshot_type_id__volatile;
-}
-
-
-static EventEventProxy*
-event_event_proxy_construct (GType object_type,
- Event* event)
-{
- EventEventProxy* self = NULL;
-#line 154 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 155 "/home/jens/Source/shotwell/src/Event.vala"
- self = (EventEventProxy*) source_proxy_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_SOURCE, DataSource));
-#line 154 "/home/jens/Source/shotwell/src/Event.vala"
- return self;
-#line 7412 "Event.c"
-}
-
-
-static EventEventProxy*
-event_event_proxy_new (Event* event)
-{
-#line 154 "/home/jens/Source/shotwell/src/Event.vala"
- return event_event_proxy_construct (EVENT_TYPE_EVENT_PROXY, event);
-#line 7421 "Event.c"
-}
-
-
-static gpointer
-_source_snapshot_ref0 (gpointer self)
-{
-#line 159 "/home/jens/Source/shotwell/src/Event.vala"
- return self ? source_snapshot_ref (self) : NULL;
-#line 7430 "Event.c"
-}
-
-
-static DataSource*
-event_event_proxy_real_reconstitute (SourceProxy* base,
- gint64 object_id,
- SourceSnapshot* snapshot)
-{
- EventEventProxy * self;
- DataSource* result = NULL;
- EventEventSnapshot* event_snapshot = NULL;
- EventEventSnapshot* _tmp0_;
- EventRow* _tmp1_;
- EventRow* _tmp2_;
- Event* _tmp3_;
- DataSource* _tmp4_;
-#line 158 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_TYPE_EVENT_PROXY, EventEventProxy);
-#line 158 "/home/jens/Source/shotwell/src/Event.vala"
- g_return_val_if_fail (IS_SOURCE_SNAPSHOT (snapshot), NULL);
-#line 159 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = _source_snapshot_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (snapshot, EVENT_TYPE_EVENT_SNAPSHOT) ? ((EventEventSnapshot*) snapshot) : NULL);
-#line 159 "/home/jens/Source/shotwell/src/Event.vala"
- event_snapshot = _tmp0_;
-#line 160 "/home/jens/Source/shotwell/src/Event.vala"
- _vala_assert (event_snapshot != NULL, "event_snapshot != null");
-#line 162 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = event_event_snapshot_get_row (event_snapshot);
-#line 162 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp2_ = _tmp1_;
-#line 162 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = event_reconstitute (object_id, _tmp2_);
-#line 162 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource);
-#line 162 "/home/jens/Source/shotwell/src/Event.vala"
- _event_row_unref0 (_tmp2_);
-#line 162 "/home/jens/Source/shotwell/src/Event.vala"
- result = _tmp4_;
-#line 162 "/home/jens/Source/shotwell/src/Event.vala"
- _source_snapshot_unref0 (event_snapshot);
-#line 162 "/home/jens/Source/shotwell/src/Event.vala"
- return result;
-#line 7473 "Event.c"
-}
-
-
-static void
-event_event_proxy_class_init (EventEventProxyClass * klass)
-{
-#line 153 "/home/jens/Source/shotwell/src/Event.vala"
- event_event_proxy_parent_class = g_type_class_peek_parent (klass);
-#line 153 "/home/jens/Source/shotwell/src/Event.vala"
- ((SourceProxyClass *) klass)->reconstitute = (DataSource* (*) (SourceProxy *, gint64, SourceSnapshot*)) event_event_proxy_real_reconstitute;
-#line 7484 "Event.c"
-}
-
-
-static void
-event_event_proxy_instance_init (EventEventProxy * self)
-{
-}
-
-
-static GType
-event_event_proxy_get_type (void)
-{
- static volatile gsize event_event_proxy_type_id__volatile = 0;
- if (g_once_init_enter (&event_event_proxy_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventEventProxyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_event_proxy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventEventProxy), 0, (GInstanceInitFunc) event_event_proxy_instance_init, NULL };
- GType event_event_proxy_type_id;
- event_event_proxy_type_id = g_type_register_static (TYPE_SOURCE_PROXY, "EventEventProxy", &g_define_type_info, 0);
- g_once_init_leave (&event_event_proxy_type_id__volatile, event_event_proxy_type_id);
- }
- return event_event_proxy_type_id__volatile;
-}
-
-
-static void
-event_class_init (EventClass * klass)
-{
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- event_parent_class = g_type_class_peek_parent (klass);
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- g_type_class_add_private (klass, sizeof (EventPrivate));
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) event_real_get_typename;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) event_real_get_instance_id;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((ThumbnailSourceClass *) klass)->get_representative_id = (gchar* (*) (ThumbnailSource *)) event_real_get_representative_id;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) event_real_get_preferred_thumbnail_format;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) event_real_create_thumbnail;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->notify_relinking = (void (*) (DataSource *, SourceCollection*)) event_real_notify_relinking;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->save_snapshot = (SourceSnapshot* (*) (DataSource *)) event_real_save_snapshot;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) event_real_equals;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) event_real_to_string;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) event_real_get_name;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_comment = (gchar* (*) (EventSource *)) event_real_get_comment;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->set_comment = (gboolean (*) (EventSource *, const gchar*)) event_real_set_comment;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_start_time = (time_t (*) (EventSource *)) event_real_get_start_time;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_end_time = (time_t (*) (EventSource *)) event_real_get_end_time;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_total_filesize = (guint64 (*) (EventSource *)) event_real_get_total_filesize;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_media_count = (gint (*) (EventSource *)) event_real_get_media_count;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_media = (GeeCollection* (*) (EventSource *)) event_real_get_media;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) event_real_get_thumbnail;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) event_real_destroy;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- G_OBJECT_CLASS (klass)->finalize = event_finalize;
-#line 7555 "Event.c"
-}
-
-
-static void
-event_container_source_interface_init (ContainerSourceIface * iface)
-{
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- event_container_source_parent_iface = g_type_interface_peek_parent (iface);
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->has_links = (gboolean (*) (ContainerSource *)) event_real_has_links;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->get_backlink = (SourceBacklink* (*) (ContainerSource *)) event_real_get_backlink;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->break_link = (void (*) (ContainerSource *, DataSource*)) event_real_break_link;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->break_link_many = (void (*) (ContainerSource *, GeeCollection*)) event_real_break_link_many;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->establish_link = (void (*) (ContainerSource *, DataSource*)) event_real_establish_link;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->establish_link_many = (void (*) (ContainerSource *, GeeCollection*)) event_real_establish_link_many;
-#line 7576 "Event.c"
-}
-
-
-static void
-event_proxyable_interface_init (ProxyableIface * iface)
-{
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- event_proxyable_parent_iface = g_type_interface_peek_parent (iface);
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->get_proxy = (SourceProxy* (*) (Proxyable *)) event_real_get_proxy;
-#line 7587 "Event.c"
-}
-
-
-static void
-event_indexable_interface_init (IndexableIface * iface)
-{
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- event_indexable_parent_iface = g_type_interface_peek_parent (iface);
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->get_indexable_keywords = (const gchar* (*) (Indexable *)) event_real_get_indexable_keywords;
-#line 7598 "Event.c"
-}
-
-
-static void
-event_instance_init (Event * self)
-{
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv = EVENT_GET_PRIVATE (self);
-#line 175 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->unlinking = FALSE;
-#line 176 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->relinking = FALSE;
-#line 177 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->indexable_keywords = NULL;
-#line 178 "/home/jens/Source/shotwell/src/Event.vala"
- self->priv->comment = NULL;
-#line 7615 "Event.c"
-}
-
-
-static void
-event_finalize (GObject * obj)
-{
- Event * self;
- MediaSource* _tmp0_;
- ViewCollection* _tmp3_;
- guint _tmp4_;
- ViewCollection* _tmp5_;
- guint _tmp6_;
- ViewCollection* _tmp7_;
- guint _tmp8_;
- LibraryPhotoSourceCollection* _tmp9_;
- guint _tmp10_;
- VideoSourceCollection* _tmp11_;
- guint _tmp12_;
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT, Event);
-#line 237 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp0_ = self->priv->primary_source;
-#line 237 "/home/jens/Source/shotwell/src/Event.vala"
- if (_tmp0_ != NULL) {
-#line 7640 "Event.c"
- MediaSource* _tmp1_;
- guint _tmp2_;
-#line 238 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp1_ = self->priv->primary_source;
-#line 238 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, &_tmp2_, NULL, FALSE);
-#line 238 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self);
-#line 7649 "Event.c"
- }
-#line 240 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = self->priv->view;
-#line 240 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE);
-#line 240 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _event_on_media_altered_data_collection_items_altered, self);
-#line 241 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp5_ = self->priv->view;
-#line 241 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp6_, NULL, FALSE);
-#line 241 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _event_on_media_removed_data_collection_items_removed, self);
-#line 242 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp7_ = self->priv->view;
-#line 242 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE);
-#line 242 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _event_on_media_added_data_collection_items_added, self);
-#line 244 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = library_photo_global;
-#line 244 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 244 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _event_on_media_destroyed_source_collection_item_destroyed, self);
-#line 245 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = video_global;
-#line 245 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp12_, NULL, FALSE);
-#line 245 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _event_on_media_destroyed_source_collection_item_destroyed, self);
-#line 172 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->raw_name);
-#line 173 "/home/jens/Source/shotwell/src/Event.vala"
- _g_object_unref0 (self->priv->primary_source);
-#line 174 "/home/jens/Source/shotwell/src/Event.vala"
- _data_collection_unref0 (self->priv->view);
-#line 177 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->indexable_keywords);
-#line 178 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (self->priv->comment);
-#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- G_OBJECT_CLASS (event_parent_class)->finalize (obj);
-#line 7693 "Event.c"
-}
-
-
-GType
-event_get_type (void)
-{
- static volatile gsize event_type_id__volatile = 0;
- if (g_once_init_enter (&event_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Event), 0, (GInstanceInitFunc) event_instance_init, NULL };
- static const GInterfaceInfo container_source_info = { (GInterfaceInitFunc) event_container_source_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo proxyable_info = { (GInterfaceInitFunc) event_proxyable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo indexable_info = { (GInterfaceInitFunc) event_indexable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType event_type_id;
- event_type_id = g_type_register_static (TYPE_EVENT_SOURCE, "Event", &g_define_type_info, 0);
- g_type_add_interface_static (event_type_id, TYPE_CONTAINER_SOURCE, &container_source_info);
- g_type_add_interface_static (event_type_id, TYPE_PROXYABLE, &proxyable_info);
- g_type_add_interface_static (event_type_id, TYPE_INDEXABLE, &indexable_info);
- g_once_init_leave (&event_type_id__volatile, event_type_id);
- }
- return event_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Exporter.c b/src/Exporter.c
deleted file mode 100644
index bdc1f1f..0000000
--- a/src/Exporter.c
+++ /dev/null
@@ -1,3064 +0,0 @@
-/* Exporter.c generated by valac 0.40.4, the Vala compiler
- * generated from Exporter.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n-lib.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-
-#define TYPE_EXPORTER (exporter_get_type ())
-#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter))
-#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass))
-#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER))
-#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER))
-#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass))
-
-typedef struct _Exporter Exporter;
-typedef struct _ExporterClass ExporterClass;
-typedef struct _ExporterPrivate ExporterPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _Scaling Scaling;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define EXPORTER_TYPE_OVERWRITE (exporter_overwrite_get_type ())
-enum {
- EXPORTER_0_PROPERTY,
- EXPORTER_NUM_PROPERTIES
-};
-static GParamSpec* exporter_properties[EXPORTER_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define EXPORTER_TYPE_EXPORT_JOB (exporter_export_job_get_type ())
-#define EXPORTER_EXPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXPORTER_TYPE_EXPORT_JOB, ExporterExportJob))
-#define EXPORTER_EXPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EXPORTER_TYPE_EXPORT_JOB, ExporterExportJobClass))
-#define EXPORTER_IS_EXPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXPORTER_TYPE_EXPORT_JOB))
-#define EXPORTER_IS_EXPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EXPORTER_TYPE_EXPORT_JOB))
-#define EXPORTER_EXPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EXPORTER_TYPE_EXPORT_JOB, ExporterExportJobClass))
-
-typedef struct _ExporterExportJob ExporterExportJob;
-typedef struct _ExporterExportJobClass ExporterExportJobClass;
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _ExporterExportJobPrivate ExporterExportJobPrivate;
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-
-#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 _g_free0(var) (var = (g_free (var), NULL))
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _scaling_free0(var) ((var == NULL) ? NULL : (var = (scaling_free (var), NULL)))
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-
-#define TYPE_EXPORTER_UI (exporter_ui_get_type ())
-#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI))
-#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass))
-#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI))
-#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI))
-#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass))
-
-typedef struct _ExporterUI ExporterUI;
-typedef struct _ExporterUIClass ExporterUIClass;
-typedef struct _ExporterUIPrivate ExporterUIPrivate;
-
-#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))
-#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG))
-#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG))
-#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass))
-
-typedef struct _ProgressDialog ProgressDialog;
-typedef struct _ProgressDialogClass ProgressDialogClass;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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;
-typedef struct _ParamSpecExporterUI ParamSpecExporterUI;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-struct _Exporter {
- GObject parent_instance;
- ExporterPrivate * priv;
-};
-
-struct _ExporterClass {
- GObjectClass parent_class;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data);
-typedef gboolean (*ExporterExportFailedCallback) (Exporter* exporter, GFile* file, gint remaining, GError* err, void* user_data);
-typedef enum {
- EXPORTER_OVERWRITE_YES,
- EXPORTER_OVERWRITE_NO,
- EXPORTER_OVERWRITE_CANCEL,
- EXPORTER_OVERWRITE_REPLACE_ALL
-} ExporterOverwrite;
-
-typedef ExporterOverwrite (*ExporterOverwriteCallback) (Exporter* exporter, GFile* file, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _ExporterPrivate {
- GeeCollection* to_export;
- GFile** exported_files;
- gint exported_files_length1;
- gint _exported_files_size_;
- GFile* dir;
- Scaling scaling;
- gint completed_count;
- Workers* workers;
- ExporterCompletionCallback completion_callback;
- gpointer completion_callback_target;
- ExporterExportFailedCallback error_callback;
- gpointer error_callback_target;
- ExporterOverwriteCallback overwrite_callback;
- gpointer overwrite_callback_target;
- ProgressMonitor monitor;
- gpointer monitor_target;
- GCancellable* cancellable;
- gboolean replace_all;
- gboolean aborted;
- ExportFormatParameters export_params;
-};
-
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _ExporterExportJob {
- BackgroundJob parent_instance;
- ExporterExportJobPrivate * priv;
- MediaSource* media;
- GFile* dest;
- Scaling* scaling;
- JpegQuality* quality;
- PhotoFileFormat* format;
- GError* err;
- gboolean direct_copy_unmodified;
- gboolean export_metadata;
-};
-
-struct _ExporterExportJobClass {
- BackgroundJobClass parent_class;
-};
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-struct _ExporterUI {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ExporterUIPrivate * priv;
-};
-
-struct _ExporterUIClass {
- GTypeClass parent_class;
- void (*finalize) (ExporterUI *self);
-};
-
-struct _ExporterUIPrivate {
- Exporter* exporter;
- GCancellable* cancellable;
- ProgressDialog* progress_dialog;
- ExporterCompletionCallback completion_callback;
- gpointer completion_callback_target;
-};
-
-struct _ParamSpecExporterUI {
- GParamSpec parent_instance;
-};
-
-
-static gpointer exporter_parent_class = NULL;
-static gpointer exporter_export_job_parent_class = NULL;
-static gpointer exporter_ui_parent_class = NULL;
-
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-static void export_format_parameters_init (ExportFormatParameters *self,
- ExportFormatMode mode,
- PhotoFileFormat specified_format,
- JpegQuality quality);
-void export_format_parameters_current (ExportFormatParameters* result);
-PhotoFileFormat photo_file_format_get_system_default_format (void);
-void export_format_parameters_unmodified (ExportFormatParameters* result);
-void export_format_parameters_for_format (PhotoFileFormat format,
- ExportFormatParameters* result);
-void export_format_parameters_last (ExportFormatParameters* result);
-void export_format_parameters_for_JPEG (JpegQuality quality,
- ExportFormatParameters* result);
-GType exporter_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-GType exporter_overwrite_get_type (void) G_GNUC_CONST;
-#define EXPORTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPORTER, ExporterPrivate))
-guint workers_threads_per_cpu (gint per,
- gint max);
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-Exporter* exporter_new (GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-Exporter* exporter_construct (GType object_type,
- GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-Exporter* exporter_new_for_temp_file (GeeCollection* to_export,
- Scaling* scaling,
- ExportFormatParameters* export_params);
-Exporter* exporter_construct_for_temp_file (GType object_type,
- GeeCollection* to_export,
- Scaling* scaling,
- ExportFormatParameters* export_params);
-void exporter_export (Exporter* self,
- ExporterCompletionCallback completion_callback,
- void* completion_callback_target,
- ExporterExportFailedCallback error_callback,
- void* error_callback_target,
- ExporterOverwriteCallback overwrite_callback,
- void* overwrite_callback_target,
- GCancellable* cancellable,
- ProgressMonitor monitor,
- void* monitor_target);
-static gboolean exporter_process_queue (Exporter* self);
-static void exporter_export_completed (Exporter* self,
- gboolean is_cancelled);
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-static void exporter_on_exported (Exporter* self,
- BackgroundJob* j);
-static GType exporter_export_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-static void _vala_array_add128 (GFile** * array,
- int* length,
- int* size,
- GFile* value);
-static void exporter_on_export_cancelled (Exporter* self,
- BackgroundJob* j);
-GFile** exporter_get_exported_files (Exporter* self,
- int* result_length1);
-static GFile** _vala_array_dup25 (GFile** self,
- int length);
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_export_format_for_parameters (Photo* self,
- ExportFormatParameters* params);
-gchar* photo_get_export_basename_for_parameters (Photo* self,
- ExportFormatParameters* params);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-gchar* media_source_get_basename (MediaSource* self);
-static void _vala_array_add129 (GFile** * array,
- int* length,
- int* size,
- GFile* value);
-GFile* generate_unique_file (GFile* dir,
- const gchar* basename,
- gboolean* collision,
- GError** error);
-GFile* app_dirs_get_temp_dir (void);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-GFile* media_source_get_file (MediaSource* self);
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-static ExporterExportJob* exporter_export_job_new (Exporter* owner,
- MediaSource* media,
- GFile* dest,
- Scaling* scaling,
- JpegQuality* quality,
- PhotoFileFormat* format,
- GCancellable* cancellable,
- gboolean direct_copy_unmodified,
- gboolean export_metadata);
-static ExporterExportJob* exporter_export_job_construct (GType object_type,
- Exporter* owner,
- MediaSource* media,
- GFile* dest,
- Scaling* scaling,
- JpegQuality* quality,
- PhotoFileFormat* format,
- GCancellable* cancellable,
- gboolean direct_copy_unmodified,
- gboolean export_metadata);
-static void _exporter_on_exported_completion_callback (BackgroundJob* job,
- gpointer self);
-static void _exporter_on_export_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-static JpegQuality* _jpeg_quality_dup (JpegQuality* self);
-static PhotoFileFormat* _photo_file_format_dup (PhotoFileFormat* self);
-static void exporter_export_job_real_execute (BackgroundJob* base);
-void photo_export (Photo* self,
- GFile* dest_file,
- Scaling* scaling,
- JpegQuality quality,
- PhotoFileFormat export_format,
- gboolean direct_copy_unmodified,
- gboolean export_metadata,
- GError** error);
-void video_export (Video* self,
- GFile* dest_file,
- GError** error);
-static void exporter_export_job_finalize (BackgroundJob * obj);
-static void exporter_finalize (GObject * obj);
-gpointer exporter_ui_ref (gpointer instance);
-void exporter_ui_unref (gpointer instance);
-GParamSpec* param_spec_exporter_ui (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_exporter_ui (GValue* value,
- gpointer v_object);
-void value_take_exporter_ui (GValue* value,
- gpointer v_object);
-gpointer value_get_exporter_ui (const GValue* value);
-GType exporter_ui_get_type (void) G_GNUC_CONST;
-GType progress_dialog_get_type (void) G_GNUC_CONST;
-#define EXPORTER_UI_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPORTER_UI, ExporterUIPrivate))
-ExporterUI* exporter_ui_new (Exporter* exporter);
-ExporterUI* exporter_ui_construct (GType object_type,
- Exporter* exporter);
-void exporter_ui_export (ExporterUI* self,
- ExporterCompletionCallback completion_callback,
- void* completion_callback_target);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-void page_window_set_busy_cursor (PageWindow* self);
-ProgressDialog* progress_dialog_new (GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-ProgressDialog* progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-static void exporter_ui_on_export_completed (ExporterUI* self,
- Exporter* exporter,
- gboolean is_cancelled);
-static void _exporter_ui_on_export_completed_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self);
-static gboolean exporter_ui_on_export_failed (ExporterUI* self,
- Exporter* exporter,
- GFile* file,
- gint remaining,
- GError* err);
-static gboolean _exporter_ui_on_export_failed_exporter_export_failed_callback (Exporter* exporter,
- GFile* file,
- gint remaining,
- GError* err,
- gpointer self);
-static ExporterOverwrite exporter_ui_on_export_overwrite (ExporterUI* self,
- Exporter* exporter,
- GFile* file);
-static ExporterOverwrite _exporter_ui_on_export_overwrite_exporter_overwrite_callback (Exporter* exporter,
- GFile* file,
- gpointer self);
-gboolean progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop);
-static gboolean _progress_dialog_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self);
-void progress_dialog_close (ProgressDialog* self);
-void page_window_set_normal_cursor (PageWindow* self);
-GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* affirmative_all,
- const gchar* title,
- GtkWindow* parent);
-GtkResponseType export_error_dialog (GFile* dest,
- gboolean photos_remaining);
-static void exporter_ui_finalize (ExporterUI * 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);
-
-
-GType
-export_format_mode_get_type (void)
-{
- static volatile gsize export_format_mode_type_id__volatile = 0;
- if (g_once_init_enter (&export_format_mode_type_id__volatile)) {
- static const GEnumValue values[] = {{EXPORT_FORMAT_MODE_UNMODIFIED, "EXPORT_FORMAT_MODE_UNMODIFIED", "unmodified"}, {EXPORT_FORMAT_MODE_CURRENT, "EXPORT_FORMAT_MODE_CURRENT", "current"}, {EXPORT_FORMAT_MODE_SPECIFIED, "EXPORT_FORMAT_MODE_SPECIFIED", "specified"}, {EXPORT_FORMAT_MODE_LAST, "EXPORT_FORMAT_MODE_LAST", "last"}, {0, NULL, NULL}};
- GType export_format_mode_type_id;
- export_format_mode_type_id = g_enum_register_static ("ExportFormatMode", values);
- g_once_init_leave (&export_format_mode_type_id__volatile, export_format_mode_type_id);
- }
- return export_format_mode_type_id__volatile;
-}
-
-
-static void
-export_format_parameters_init (ExportFormatParameters *self,
- ExportFormatMode mode,
- PhotoFileFormat specified_format,
- JpegQuality quality)
-{
-#line 20 "/home/jens/Source/shotwell/src/Exporter.vala"
- memset (self, 0, sizeof (ExportFormatParameters));
-#line 22 "/home/jens/Source/shotwell/src/Exporter.vala"
- (*self).mode = mode;
-#line 23 "/home/jens/Source/shotwell/src/Exporter.vala"
- (*self).specified_format = specified_format;
-#line 24 "/home/jens/Source/shotwell/src/Exporter.vala"
- (*self).quality = quality;
-#line 25 "/home/jens/Source/shotwell/src/Exporter.vala"
- (*self).export_metadata = TRUE;
-#line 699 "Exporter.c"
-}
-
-
-void
-export_format_parameters_current (ExportFormatParameters* result)
-{
- ExportFormatParameters _tmp0_ = {0};
-#line 29 "/home/jens/Source/shotwell/src/Exporter.vala"
- export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_CURRENT, photo_file_format_get_system_default_format (), JPEG_QUALITY_HIGH);
-#line 29 "/home/jens/Source/shotwell/src/Exporter.vala"
- *result = _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/Exporter.vala"
- return;
-#line 713 "Exporter.c"
-}
-
-
-void
-export_format_parameters_unmodified (ExportFormatParameters* result)
-{
- ExportFormatParameters _tmp0_ = {0};
-#line 34 "/home/jens/Source/shotwell/src/Exporter.vala"
- export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_UNMODIFIED, photo_file_format_get_system_default_format (), JPEG_QUALITY_HIGH);
-#line 34 "/home/jens/Source/shotwell/src/Exporter.vala"
- *result = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/Exporter.vala"
- return;
-#line 727 "Exporter.c"
-}
-
-
-void
-export_format_parameters_for_format (PhotoFileFormat format,
- ExportFormatParameters* result)
-{
- ExportFormatParameters _tmp0_ = {0};
-#line 39 "/home/jens/Source/shotwell/src/Exporter.vala"
- export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_SPECIFIED, format, JPEG_QUALITY_HIGH);
-#line 39 "/home/jens/Source/shotwell/src/Exporter.vala"
- *result = _tmp0_;
-#line 39 "/home/jens/Source/shotwell/src/Exporter.vala"
- return;
-#line 742 "Exporter.c"
-}
-
-
-void
-export_format_parameters_last (ExportFormatParameters* result)
-{
- ExportFormatParameters _tmp0_ = {0};
-#line 43 "/home/jens/Source/shotwell/src/Exporter.vala"
- export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_LAST, photo_file_format_get_system_default_format (), JPEG_QUALITY_HIGH);
-#line 43 "/home/jens/Source/shotwell/src/Exporter.vala"
- *result = _tmp0_;
-#line 43 "/home/jens/Source/shotwell/src/Exporter.vala"
- return;
-#line 756 "Exporter.c"
-}
-
-
-void
-export_format_parameters_for_JPEG (JpegQuality quality,
- ExportFormatParameters* result)
-{
- ExportFormatParameters _tmp0_ = {0};
-#line 48 "/home/jens/Source/shotwell/src/Exporter.vala"
- export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_SPECIFIED, PHOTO_FILE_FORMAT_JFIF, quality);
-#line 48 "/home/jens/Source/shotwell/src/Exporter.vala"
- *result = _tmp0_;
-#line 48 "/home/jens/Source/shotwell/src/Exporter.vala"
- return;
-#line 771 "Exporter.c"
-}
-
-
-ExportFormatParameters*
-export_format_parameters_dup (const ExportFormatParameters* self)
-{
- ExportFormatParameters* dup;
-#line 14 "/home/jens/Source/shotwell/src/Exporter.vala"
- dup = g_new0 (ExportFormatParameters, 1);
-#line 14 "/home/jens/Source/shotwell/src/Exporter.vala"
- memcpy (dup, self, sizeof (ExportFormatParameters));
-#line 14 "/home/jens/Source/shotwell/src/Exporter.vala"
- return dup;
-#line 785 "Exporter.c"
-}
-
-
-void
-export_format_parameters_free (ExportFormatParameters* self)
-{
-#line 14 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_free (self);
-#line 794 "Exporter.c"
-}
-
-
-GType
-export_format_parameters_get_type (void)
-{
- static volatile gsize export_format_parameters_type_id__volatile = 0;
- if (g_once_init_enter (&export_format_parameters_type_id__volatile)) {
- GType export_format_parameters_type_id;
- export_format_parameters_type_id = g_boxed_type_register_static ("ExportFormatParameters", (GBoxedCopyFunc) export_format_parameters_dup, (GBoxedFreeFunc) export_format_parameters_free);
- g_once_init_leave (&export_format_parameters_type_id__volatile, export_format_parameters_type_id);
- }
- return export_format_parameters_type_id__volatile;
-}
-
-
-GType
-exporter_overwrite_get_type (void)
-{
- static volatile gsize exporter_overwrite_type_id__volatile = 0;
- if (g_once_init_enter (&exporter_overwrite_type_id__volatile)) {
- static const GEnumValue values[] = {{EXPORTER_OVERWRITE_YES, "EXPORTER_OVERWRITE_YES", "yes"}, {EXPORTER_OVERWRITE_NO, "EXPORTER_OVERWRITE_NO", "no"}, {EXPORTER_OVERWRITE_CANCEL, "EXPORTER_OVERWRITE_CANCEL", "cancel"}, {EXPORTER_OVERWRITE_REPLACE_ALL, "EXPORTER_OVERWRITE_REPLACE_ALL", "replace-all"}, {0, NULL, NULL}};
- GType exporter_overwrite_type_id;
- exporter_overwrite_type_id = g_enum_register_static ("ExporterOverwrite", values);
- g_once_init_leave (&exporter_overwrite_type_id__volatile, exporter_overwrite_type_id);
- }
- return exporter_overwrite_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 125 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self ? g_object_ref (self) : NULL;
-#line 830 "Exporter.c"
-}
-
-
-Exporter*
-exporter_construct (GType object_type,
- GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all)
-{
- Exporter * self = NULL;
- GeeCollection* _tmp0_;
- GFile* _tmp1_;
- Scaling _tmp2_;
- ExportFormatParameters _tmp3_;
-#line 122 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (to_export), NULL);
-#line 122 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail ((dir == NULL) || G_IS_FILE (dir), NULL);
-#line 122 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 122 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (export_params != NULL, NULL);
-#line 122 "/home/jens/Source/shotwell/src/Exporter.vala"
- self = (Exporter*) g_object_new (object_type, NULL);
-#line 124 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->priv->to_export;
-#line 124 "/home/jens/Source/shotwell/src/Exporter.vala"
- gee_collection_add_all (_tmp0_, to_export);
-#line 125 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = _g_object_ref0 (dir);
-#line 125 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->dir);
-#line 125 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->dir = _tmp1_;
-#line 126 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = *scaling;
-#line 126 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->scaling = _tmp2_;
-#line 127 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = *export_params;
-#line 127 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->export_params = _tmp3_;
-#line 128 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->replace_all = auto_replace_all;
-#line 122 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self;
-#line 879 "Exporter.c"
-}
-
-
-Exporter*
-exporter_new (GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all)
-{
-#line 122 "/home/jens/Source/shotwell/src/Exporter.vala"
- return exporter_construct (TYPE_EXPORTER, to_export, dir, scaling, export_params, auto_replace_all);
-#line 892 "Exporter.c"
-}
-
-
-Exporter*
-exporter_construct_for_temp_file (GType object_type,
- GeeCollection* to_export,
- Scaling* scaling,
- ExportFormatParameters* export_params)
-{
- Exporter * self = NULL;
- GeeCollection* _tmp0_;
- Scaling _tmp1_;
- ExportFormatParameters _tmp2_;
-#line 131 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (to_export), NULL);
-#line 131 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 131 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (export_params != NULL, NULL);
-#line 131 "/home/jens/Source/shotwell/src/Exporter.vala"
- self = (Exporter*) g_object_new (object_type, NULL);
-#line 133 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->priv->to_export;
-#line 133 "/home/jens/Source/shotwell/src/Exporter.vala"
- gee_collection_add_all (_tmp0_, to_export);
-#line 134 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->dir);
-#line 134 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->dir = NULL;
-#line 135 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = *scaling;
-#line 135 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->scaling = _tmp1_;
-#line 136 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = *export_params;
-#line 136 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->export_params = _tmp2_;
-#line 131 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self;
-#line 932 "Exporter.c"
-}
-
-
-Exporter*
-exporter_new_for_temp_file (GeeCollection* to_export,
- Scaling* scaling,
- ExportFormatParameters* export_params)
-{
-#line 131 "/home/jens/Source/shotwell/src/Exporter.vala"
- return exporter_construct_for_temp_file (TYPE_EXPORTER, to_export, scaling, export_params);
-#line 943 "Exporter.c"
-}
-
-
-void
-exporter_export (Exporter* self,
- ExporterCompletionCallback completion_callback,
- void* completion_callback_target,
- ExporterExportFailedCallback error_callback,
- void* error_callback_target,
- ExporterOverwriteCallback overwrite_callback,
- void* overwrite_callback_target,
- GCancellable* cancellable,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- GCancellable* _tmp0_ = NULL;
- GCancellable* _tmp1_;
- GCancellable* _tmp3_;
-#line 140 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_EXPORTER (self));
-#line 140 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable));
-#line 142 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completion_callback = completion_callback;
-#line 142 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completion_callback_target = completion_callback_target;
-#line 143 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->error_callback = error_callback;
-#line 143 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->error_callback_target = error_callback_target;
-#line 144 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->overwrite_callback = overwrite_callback;
-#line 144 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->overwrite_callback_target = overwrite_callback_target;
-#line 145 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->monitor = monitor;
-#line 145 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->monitor_target = monitor_target;
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = _g_object_ref0 (cancellable);
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = _tmp1_;
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp0_ == NULL) {
-#line 988 "Exporter.c"
- GCancellable* _tmp2_;
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = g_cancellable_new ();
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_tmp0_);
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = _tmp2_;
-#line 996 "Exporter.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = _tmp0_;
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = NULL;
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 146 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->cancellable = _tmp3_;
-#line 148 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!exporter_process_queue (self)) {
-#line 149 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_export_completed (self, TRUE);
-#line 1010 "Exporter.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_tmp0_);
-#line 1014 "Exporter.c"
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 153 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self ? background_job_ref (self) : NULL;
-#line 1023 "Exporter.c"
-}
-
-
-static void
-_vala_array_add128 (GFile** * array,
- int* length,
- int* size,
- GFile* value)
-{
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- if ((*length) == (*size)) {
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- *array = g_renew (GFile*, *array, (*size) + 1);
-#line 1039 "Exporter.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- (*array)[(*length)++] = value;
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- (*array)[*length] = NULL;
-#line 1045 "Exporter.c"
-}
-
-
-static void
-exporter_on_exported (Exporter* self,
- BackgroundJob* j)
-{
- ExporterExportJob* job = NULL;
- ExporterExportJob* _tmp0_;
- gint _tmp1_;
- gboolean completed = FALSE;
- gint _tmp2_;
- GeeCollection* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_;
- gboolean _tmp20_ = FALSE;
- gboolean _tmp21_;
- gboolean _tmp33_;
-#line 152 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_EXPORTER (self));
-#line 152 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 153 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, EXPORTER_TYPE_EXPORT_JOB, ExporterExportJob));
-#line 153 "/home/jens/Source/shotwell/src/Exporter.vala"
- job = _tmp0_;
-#line 155 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = self->priv->completed_count;
-#line 155 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completed_count = _tmp1_ + 1;
-#line 159 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = self->priv->completed_count;
-#line 159 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = self->priv->to_export;
-#line 159 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ = gee_collection_get_size (_tmp3_);
-#line 159 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp5_ = _tmp4_;
-#line 159 "/home/jens/Source/shotwell/src/Exporter.vala"
- completed = _tmp2_ == _tmp5_;
-#line 161 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp7_ = self->priv->aborted;
-#line 161 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp7_) {
-#line 1092 "Exporter.c"
- ExporterExportJob* _tmp8_;
- GError* _tmp9_;
-#line 161 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp8_ = job;
-#line 161 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp9_ = _tmp8_->err;
-#line 161 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp6_ = _tmp9_ != NULL;
-#line 1101 "Exporter.c"
- } else {
-#line 161 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp6_ = FALSE;
-#line 1105 "Exporter.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp6_) {
-#line 1109 "Exporter.c"
- ExporterExportFailedCallback _tmp10_;
- void* _tmp10__target;
- ExporterExportJob* _tmp11_;
- GFile* _tmp12_;
- GeeCollection* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- ExporterExportJob* _tmp17_;
- GError* _tmp18_;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp10_ = self->priv->error_callback;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp10__target = self->priv->error_callback_target;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp11_ = job;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp12_ = _tmp11_->dest;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp13_ = self->priv->to_export;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp14_ = gee_collection_get_size (_tmp13_);
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp15_ = _tmp14_;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp16_ = self->priv->completed_count;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp17_ = job;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp18_ = _tmp17_->err;
-#line 162 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp10_ (self, _tmp12_, _tmp15_ - _tmp16_, _tmp18_, _tmp10__target)) {
-#line 1142 "Exporter.c"
- gboolean _tmp19_;
-#line 163 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->aborted = TRUE;
-#line 165 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp19_ = completed;
-#line 165 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp19_) {
-#line 166 "/home/jens/Source/shotwell/src/Exporter.vala"
- _background_job_unref0 (job);
-#line 166 "/home/jens/Source/shotwell/src/Exporter.vala"
- return;
-#line 1154 "Exporter.c"
- }
- }
- }
-#line 170 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp21_ = self->priv->aborted;
-#line 170 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp21_) {
-#line 1162 "Exporter.c"
- ProgressMonitor _tmp22_;
- void* _tmp22__target;
-#line 170 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp22_ = self->priv->monitor;
-#line 170 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp22__target = self->priv->monitor_target;
-#line 170 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp20_ = _tmp22_ != NULL;
-#line 1171 "Exporter.c"
- } else {
-#line 170 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp20_ = FALSE;
-#line 1175 "Exporter.c"
- }
-#line 170 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp20_) {
-#line 1179 "Exporter.c"
- ProgressMonitor _tmp23_;
- void* _tmp23__target;
- gint _tmp24_;
- GeeCollection* _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
-#line 171 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp23_ = self->priv->monitor;
-#line 171 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp23__target = self->priv->monitor_target;
-#line 171 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp24_ = self->priv->completed_count;
-#line 171 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp25_ = self->priv->to_export;
-#line 171 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp26_ = gee_collection_get_size (_tmp25_);
-#line 171 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp27_ = _tmp26_;
-#line 171 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp23_ ((guint64) _tmp24_, (guint64) _tmp27_, FALSE, _tmp23__target)) {
-#line 1200 "Exporter.c"
- gboolean _tmp28_;
-#line 172 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->aborted = TRUE;
-#line 174 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp28_ = completed;
-#line 174 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp28_) {
-#line 175 "/home/jens/Source/shotwell/src/Exporter.vala"
- _background_job_unref0 (job);
-#line 175 "/home/jens/Source/shotwell/src/Exporter.vala"
- return;
-#line 1212 "Exporter.c"
- }
- } else {
- GFile** _tmp29_;
- gint _tmp29__length1;
- ExporterExportJob* _tmp30_;
- GFile* _tmp31_;
- GFile* _tmp32_;
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp29_ = self->priv->exported_files;
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp29__length1 = self->priv->exported_files_length1;
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp30_ = job;
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp31_ = _tmp30_->dest;
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp32_ = _g_object_ref0 (_tmp31_);
-#line 177 "/home/jens/Source/shotwell/src/Exporter.vala"
- _vala_array_add128 (&self->priv->exported_files, &self->priv->exported_files_length1, &self->priv->_exported_files_size_, _tmp32_);
-#line 1232 "Exporter.c"
- }
- }
-#line 181 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp33_ = completed;
-#line 181 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp33_) {
-#line 182 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_export_completed (self, FALSE);
-#line 1241 "Exporter.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/Exporter.vala"
- _background_job_unref0 (job);
-#line 1245 "Exporter.c"
-}
-
-
-static void
-exporter_on_export_cancelled (Exporter* self,
- BackgroundJob* j)
-{
- gint _tmp0_;
- gint _tmp1_;
- GeeCollection* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 185 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_EXPORTER (self));
-#line 185 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 186 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->priv->completed_count;
-#line 186 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completed_count = _tmp0_ + 1;
-#line 186 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = self->priv->completed_count;
-#line 186 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = self->priv->to_export;
-#line 186 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = gee_collection_get_size (_tmp2_);
-#line 186 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ = _tmp3_;
-#line 186 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp1_ == _tmp4_) {
-#line 187 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_export_completed (self, TRUE);
-#line 1278 "Exporter.c"
- }
-}
-
-
-static GFile**
-_vala_array_dup25 (GFile** self,
- int length)
-{
- GFile** result;
- int i;
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = g_new0 (GFile*, length + 1);
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- for (i = 0; i < length; i++) {
-#line 1293 "Exporter.c"
- GFile* _tmp0_;
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = _g_object_ref0 (self[i]);
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- result[i] = _tmp0_;
-#line 1299 "Exporter.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 1303 "Exporter.c"
-}
-
-
-GFile**
-exporter_get_exported_files (Exporter* self,
- int* result_length1)
-{
- GFile** result = NULL;
- GFile** _tmp0_;
- gint _tmp0__length1;
- GFile** _tmp1_;
- gint _tmp1__length1;
- GFile** _tmp2_;
- gint _tmp2__length1;
-#line 190 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_EXPORTER (self), NULL);
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->priv->exported_files;
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0__length1 = self->priv->exported_files_length1;
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup25 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = _tmp1_;
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (result_length1) {
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- *result_length1 = _tmp2__length1;
-#line 1336 "Exporter.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = _tmp2_;
-#line 191 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 1342 "Exporter.c"
-}
-
-
-static void
-_vala_array_add129 (GFile** * array,
- int* length,
- int* size,
- GFile* value)
-{
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- if ((*length) == (*size)) {
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- *array = g_renew (GFile*, *array, (*size) + 1);
-#line 1358 "Exporter.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- (*array)[(*length)++] = value;
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- (*array)[*length] = NULL;
-#line 1364 "Exporter.c"
-}
-
-
-static gboolean
-exporter_process_queue (Exporter* self)
-{
- gboolean result = FALSE;
- gint submitted = 0;
- gint _tmp82_;
- GError * _inner_error_ = NULL;
-#line 194 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_EXPORTER (self), FALSE);
-#line 195 "/home/jens/Source/shotwell/src/Exporter.vala"
- submitted = 0;
-#line 1379 "Exporter.c"
- {
- GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->priv->to_export;
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _source_it = _tmp1_;
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- while (TRUE) {
-#line 1392 "Exporter.c"
- GeeIterator* _tmp2_;
- MediaSource* source = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GFile* use_source_file = NULL;
- PhotoFileFormat real_export_format = 0;
- gchar* basename = NULL;
- MediaSource* _tmp5_;
- const gchar* _tmp16_;
- GFile* _tmp17_;
- GFile* export_dir = NULL;
- GFile* _tmp29_;
- GFile* _tmp30_;
- GFile* dest = NULL;
- GFile* _tmp31_;
- Workers* _tmp67_;
- MediaSource* _tmp68_;
- GFile* _tmp69_;
- Scaling _tmp70_;
- ExportFormatParameters _tmp71_;
- JpegQuality _tmp72_;
- PhotoFileFormat _tmp73_;
- GCancellable* _tmp74_;
- ExportFormatParameters _tmp75_;
- ExportFormatMode _tmp76_;
- ExportFormatParameters _tmp77_;
- gboolean _tmp78_;
- ExporterExportJob* _tmp79_;
- ExporterExportJob* _tmp80_;
- gint _tmp81_;
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = _source_it;
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- break;
-#line 1429 "Exporter.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = _source_it;
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- source = (MediaSource*) _tmp4_;
-#line 197 "/home/jens/Source/shotwell/src/Exporter.vala"
- use_source_file = NULL;
-#line 198 "/home/jens/Source/shotwell/src/Exporter.vala"
- real_export_format = photo_file_format_get_system_default_format ();
-#line 199 "/home/jens/Source/shotwell/src/Exporter.vala"
- basename = NULL;
-#line 200 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp5_ = source;
-#line 200 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PHOTO)) {
-#line 1447 "Exporter.c"
- Photo* photo = NULL;
- MediaSource* _tmp6_;
- Photo* _tmp7_;
- Photo* _tmp8_;
- ExportFormatParameters _tmp9_;
- Photo* _tmp10_;
- ExportFormatParameters _tmp11_;
- gchar* _tmp12_;
-#line 201 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp6_ = source;
-#line 201 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo));
-#line 201 "/home/jens/Source/shotwell/src/Exporter.vala"
- photo = _tmp7_;
-#line 202 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp8_ = photo;
-#line 202 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp9_ = self->priv->export_params;
-#line 202 "/home/jens/Source/shotwell/src/Exporter.vala"
- real_export_format = photo_get_export_format_for_parameters (_tmp8_, &_tmp9_);
-#line 203 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp10_ = photo;
-#line 203 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp11_ = self->priv->export_params;
-#line 203 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp12_ = photo_get_export_basename_for_parameters (_tmp10_, &_tmp11_);
-#line 203 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 203 "/home/jens/Source/shotwell/src/Exporter.vala"
- basename = _tmp12_;
-#line 200 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (photo);
-#line 1480 "Exporter.c"
- } else {
- MediaSource* _tmp13_;
-#line 204 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp13_ = source;
-#line 204 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_VIDEO)) {
-#line 1487 "Exporter.c"
- MediaSource* _tmp14_;
- gchar* _tmp15_;
-#line 205 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp14_ = source;
-#line 205 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp15_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_VIDEO, Video), TYPE_MEDIA_SOURCE, MediaSource));
-#line 205 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 205 "/home/jens/Source/shotwell/src/Exporter.vala"
- basename = _tmp15_;
-#line 1498 "Exporter.c"
- }
- }
-#line 207 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp16_ = basename;
-#line 207 "/home/jens/Source/shotwell/src/Exporter.vala"
- _vala_assert (_tmp16_ != NULL, "basename != null");
-#line 209 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp17_ = use_source_file;
-#line 209 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp17_ != NULL) {
-#line 1509 "Exporter.c"
- GFile** _tmp18_;
- gint _tmp18__length1;
- GFile* _tmp19_;
- GFile* _tmp20_;
- gint _tmp21_;
- ProgressMonitor _tmp22_;
- void* _tmp22__target;
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp18_ = self->priv->exported_files;
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp18__length1 = self->priv->exported_files_length1;
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp19_ = use_source_file;
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp20_ = _g_object_ref0 (_tmp19_);
-#line 210 "/home/jens/Source/shotwell/src/Exporter.vala"
- _vala_array_add129 (&self->priv->exported_files, &self->priv->exported_files_length1, &self->priv->_exported_files_size_, _tmp20_);
-#line 212 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp21_ = self->priv->completed_count;
-#line 212 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completed_count = _tmp21_ + 1;
-#line 213 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp22_ = self->priv->monitor;
-#line 213 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp22__target = self->priv->monitor_target;
-#line 213 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp22_ != NULL) {
-#line 1537 "Exporter.c"
- ProgressMonitor _tmp23_;
- void* _tmp23__target;
- gint _tmp24_;
- GeeCollection* _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
-#line 214 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp23_ = self->priv->monitor;
-#line 214 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp23__target = self->priv->monitor_target;
-#line 214 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp24_ = self->priv->completed_count;
-#line 214 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp25_ = self->priv->to_export;
-#line 214 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp26_ = gee_collection_get_size (_tmp25_);
-#line 214 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp27_ = _tmp26_;
-#line 214 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp23_ ((guint64) _tmp24_, (guint64) _tmp27_, TRUE, _tmp23__target)) {
-#line 1558 "Exporter.c"
- GCancellable* _tmp28_;
-#line 215 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp28_ = self->priv->cancellable;
-#line 215 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_cancellable_cancel (_tmp28_);
-#line 217 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = FALSE;
-#line 217 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 217 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (use_source_file);
-#line 217 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (source);
-#line 217 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_source_it);
-#line 217 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 1576 "Exporter.c"
- }
- }
-#line 221 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 221 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (use_source_file);
-#line 221 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (source);
-#line 221 "/home/jens/Source/shotwell/src/Exporter.vala"
- continue;
-#line 1587 "Exporter.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp29_ = self->priv->dir;
-#line 224 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp30_ = _g_object_ref0 (_tmp29_);
-#line 224 "/home/jens/Source/shotwell/src/Exporter.vala"
- export_dir = _tmp30_;
-#line 225 "/home/jens/Source/shotwell/src/Exporter.vala"
- dest = NULL;
-#line 227 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp31_ = export_dir;
-#line 227 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp31_ == NULL) {
-#line 1601 "Exporter.c"
- {
- gboolean collision = FALSE;
- GFile* _tmp32_ = NULL;
- GFile* _tmp33_;
- GFile* _tmp34_;
- const gchar* _tmp35_;
- gboolean _tmp36_ = FALSE;
- GFile* _tmp37_;
- GFile* _tmp38_;
- GFile* _tmp39_;
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp33_ = app_dirs_get_temp_dir ();
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp34_ = _tmp33_;
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp35_ = basename;
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp37_ = generate_unique_file (_tmp34_, _tmp35_, &_tmp36_, &_inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- collision = _tmp36_;
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp38_ = _tmp37_;
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_tmp34_);
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp32_ = _tmp38_;
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1630 "Exporter.c"
- goto __catch488_g_error;
- }
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp39_ = _tmp32_;
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp32_ = NULL;
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (dest);
-#line 230 "/home/jens/Source/shotwell/src/Exporter.vala"
- dest = _tmp39_;
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_tmp32_);
-#line 1643 "Exporter.c"
- }
- goto __finally488;
- __catch488_g_error:
- {
- GError* err = NULL;
- MediaSource* _tmp40_;
- GFile* _tmp41_;
- GFile* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- GError* _tmp45_;
- const gchar* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- err = _inner_error_;
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- _inner_error_ = NULL;
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp40_ = source;
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp41_ = media_source_get_file (_tmp40_);
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp42_ = _tmp41_;
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp43_ = g_file_get_basename (_tmp42_);
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp44_ = _tmp43_;
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp45_ = err;
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp46_ = _tmp45_->message;
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp47_ = g_strdup_printf (_ ("Unable to generate a temporary file for %s: %s"), _tmp44_, _tmp46_);
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp48_ = _tmp47_;
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- app_window_error_message (_tmp48_, NULL);
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (_tmp48_);
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (_tmp44_);
-#line 232 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_tmp42_);
-#line 235 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_error_free0 (err);
-#line 235 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (dest);
-#line 235 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (export_dir);
-#line 235 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 235 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (use_source_file);
-#line 235 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (source);
-#line 235 "/home/jens/Source/shotwell/src/Exporter.vala"
- break;
-#line 1702 "Exporter.c"
- }
- __finally488:
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1707 "Exporter.c"
- gboolean _tmp49_ = FALSE;
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (dest);
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (export_dir);
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (use_source_file);
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (source);
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_source_it);
-#line 228 "/home/jens/Source/shotwell/src/Exporter.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 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_clear_error (&_inner_error_);
-#line 228 "/home/jens/Source/shotwell/src/Exporter.vala"
- return _tmp49_;
-#line 1727 "Exporter.c"
- }
- } else {
- GFile* _tmp50_;
- const gchar* _tmp51_;
- GFile* _tmp52_;
- gboolean _tmp53_ = FALSE;
- gboolean _tmp54_;
-#line 238 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp50_ = self->priv->dir;
-#line 238 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp51_ = basename;
-#line 238 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp52_ = g_file_get_child (_tmp50_, _tmp51_);
-#line 238 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (dest);
-#line 238 "/home/jens/Source/shotwell/src/Exporter.vala"
- dest = _tmp52_;
-#line 240 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp54_ = self->priv->replace_all;
-#line 240 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp54_) {
-#line 1749 "Exporter.c"
- GFile* _tmp55_;
-#line 240 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp55_ = dest;
-#line 240 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp53_ = g_file_query_exists (_tmp55_, NULL);
-#line 1755 "Exporter.c"
- } else {
-#line 240 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp53_ = FALSE;
-#line 1759 "Exporter.c"
- }
-#line 240 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp53_) {
-#line 1763 "Exporter.c"
- ExporterOverwriteCallback _tmp56_;
- void* _tmp56__target;
- GFile* _tmp57_;
-#line 241 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp56_ = self->priv->overwrite_callback;
-#line 241 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp56__target = self->priv->overwrite_callback_target;
-#line 241 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp57_ = dest;
-#line 241 "/home/jens/Source/shotwell/src/Exporter.vala"
- switch (_tmp56_ (self, _tmp57_, _tmp56__target)) {
-#line 241 "/home/jens/Source/shotwell/src/Exporter.vala"
- case EXPORTER_OVERWRITE_YES:
-#line 1777 "Exporter.c"
- {
-#line 244 "/home/jens/Source/shotwell/src/Exporter.vala"
- break;
-#line 1781 "Exporter.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/Exporter.vala"
- case EXPORTER_OVERWRITE_REPLACE_ALL:
-#line 1785 "Exporter.c"
- {
-#line 247 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->replace_all = TRUE;
-#line 248 "/home/jens/Source/shotwell/src/Exporter.vala"
- break;
-#line 1791 "Exporter.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/Exporter.vala"
- case EXPORTER_OVERWRITE_CANCEL:
-#line 1795 "Exporter.c"
- {
- GCancellable* _tmp58_;
-#line 251 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp58_ = self->priv->cancellable;
-#line 251 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_cancellable_cancel (_tmp58_);
-#line 253 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = FALSE;
-#line 253 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (dest);
-#line 253 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (export_dir);
-#line 253 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 253 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (use_source_file);
-#line 253 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (source);
-#line 253 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_source_it);
-#line 253 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 1818 "Exporter.c"
- }
- default:
-#line 241 "/home/jens/Source/shotwell/src/Exporter.vala"
- case EXPORTER_OVERWRITE_NO:
-#line 1823 "Exporter.c"
- {
- gint _tmp59_;
- ProgressMonitor _tmp60_;
- void* _tmp60__target;
-#line 257 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp59_ = self->priv->completed_count;
-#line 257 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completed_count = _tmp59_ + 1;
-#line 258 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp60_ = self->priv->monitor;
-#line 258 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp60__target = self->priv->monitor_target;
-#line 258 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp60_ != NULL) {
-#line 1838 "Exporter.c"
- ProgressMonitor _tmp61_;
- void* _tmp61__target;
- gint _tmp62_;
- GeeCollection* _tmp63_;
- gint _tmp64_;
- gint _tmp65_;
-#line 259 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp61_ = self->priv->monitor;
-#line 259 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp61__target = self->priv->monitor_target;
-#line 259 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp62_ = self->priv->completed_count;
-#line 259 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp63_ = self->priv->to_export;
-#line 259 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp64_ = gee_collection_get_size (_tmp63_);
-#line 259 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp65_ = _tmp64_;
-#line 259 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!_tmp61_ ((guint64) _tmp62_, (guint64) _tmp65_, TRUE, _tmp61__target)) {
-#line 1859 "Exporter.c"
- GCancellable* _tmp66_;
-#line 260 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp66_ = self->priv->cancellable;
-#line 260 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_cancellable_cancel (_tmp66_);
-#line 262 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = FALSE;
-#line 262 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (dest);
-#line 262 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (export_dir);
-#line 262 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 262 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (use_source_file);
-#line 262 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (source);
-#line 262 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_source_it);
-#line 262 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 1881 "Exporter.c"
- }
- }
-#line 266 "/home/jens/Source/shotwell/src/Exporter.vala"
- continue;
-#line 1886 "Exporter.c"
- }
- }
- }
- }
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp67_ = self->priv->workers;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp68_ = source;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp69_ = dest;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp70_ = self->priv->scaling;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp71_ = self->priv->export_params;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp72_ = _tmp71_.quality;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp73_ = real_export_format;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp74_ = self->priv->cancellable;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp75_ = self->priv->export_params;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp76_ = _tmp75_.mode;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp77_ = self->priv->export_params;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp78_ = _tmp77_.export_metadata;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp79_ = exporter_export_job_new (self, _tmp68_, _tmp69_, &_tmp70_, &_tmp72_, &_tmp73_, _tmp74_, _tmp76_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp78_);
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp80_ = _tmp79_;
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- workers_enqueue (_tmp67_, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 271 "/home/jens/Source/shotwell/src/Exporter.vala"
- _background_job_unref0 (_tmp80_);
-#line 273 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp81_ = submitted;
-#line 273 "/home/jens/Source/shotwell/src/Exporter.vala"
- submitted = _tmp81_ + 1;
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (dest);
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (export_dir);
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (basename);
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (use_source_file);
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (source);
-#line 1937 "Exporter.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_source_it);
-#line 1941 "Exporter.c"
- }
-#line 276 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp82_ = submitted;
-#line 276 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = _tmp82_ > 0;
-#line 276 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 1949 "Exporter.c"
-}
-
-
-static void
-exporter_export_completed (Exporter* self,
- gboolean is_cancelled)
-{
- ExporterCompletionCallback _tmp0_;
- void* _tmp0__target;
-#line 279 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_EXPORTER (self));
-#line 280 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->priv->completion_callback;
-#line 280 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0__target = self->priv->completion_callback_target;
-#line 280 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ (self, is_cancelled, _tmp0__target);
-#line 1967 "Exporter.c"
-}
-
-
-static void
-_exporter_on_exported_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 81 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_on_exported ((Exporter*) self, job);
-#line 1977 "Exporter.c"
-}
-
-
-static void
-_exporter_on_export_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 81 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_on_export_cancelled ((Exporter*) self, job);
-#line 1987 "Exporter.c"
-}
-
-
-static gpointer
-_scaling_dup0 (gpointer self)
-{
-#line 87 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self ? scaling_dup (self) : NULL;
-#line 1996 "Exporter.c"
-}
-
-
-static JpegQuality*
-_jpeg_quality_dup (JpegQuality* self)
-{
- JpegQuality* dup;
-#line 88 "/home/jens/Source/shotwell/src/Exporter.vala"
- dup = g_new0 (JpegQuality, 1);
-#line 88 "/home/jens/Source/shotwell/src/Exporter.vala"
- memcpy (dup, self, sizeof (JpegQuality));
-#line 88 "/home/jens/Source/shotwell/src/Exporter.vala"
- return dup;
-#line 2010 "Exporter.c"
-}
-
-
-static gpointer
-__jpeg_quality_dup0 (gpointer self)
-{
-#line 88 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self ? _jpeg_quality_dup (self) : NULL;
-#line 2019 "Exporter.c"
-}
-
-
-static PhotoFileFormat*
-_photo_file_format_dup (PhotoFileFormat* self)
-{
- PhotoFileFormat* dup;
-#line 89 "/home/jens/Source/shotwell/src/Exporter.vala"
- dup = g_new0 (PhotoFileFormat, 1);
-#line 89 "/home/jens/Source/shotwell/src/Exporter.vala"
- memcpy (dup, self, sizeof (PhotoFileFormat));
-#line 89 "/home/jens/Source/shotwell/src/Exporter.vala"
- return dup;
-#line 2033 "Exporter.c"
-}
-
-
-static gpointer
-__photo_file_format_dup0 (gpointer self)
-{
-#line 89 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self ? _photo_file_format_dup (self) : NULL;
-#line 2042 "Exporter.c"
-}
-
-
-static ExporterExportJob*
-exporter_export_job_construct (GType object_type,
- Exporter* owner,
- MediaSource* media,
- GFile* dest,
- Scaling* scaling,
- JpegQuality* quality,
- PhotoFileFormat* format,
- GCancellable* cancellable,
- gboolean direct_copy_unmodified,
- gboolean export_metadata)
-{
- ExporterExportJob* self = NULL;
- gboolean _tmp0_ = FALSE;
- MediaSource* _tmp1_;
- GFile* _tmp2_;
- Scaling* _tmp3_;
- JpegQuality* _tmp4_;
- PhotoFileFormat* _tmp5_;
-#line 78 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_EXPORTER (owner), NULL);
-#line 78 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL);
-#line 78 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (G_IS_FILE (dest), NULL);
-#line 78 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 81 "/home/jens/Source/shotwell/src/Exporter.vala"
- self = (ExporterExportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _exporter_on_exported_completion_callback, owner, cancellable, _exporter_on_export_cancelled_cancellation_callback, owner, NULL);
-#line 83 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_PHOTO)) {
-#line 83 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = TRUE;
-#line 2079 "Exporter.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_VIDEO);
-#line 2083 "Exporter.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/Exporter.vala"
- _vala_assert (_tmp0_, "media is Photo || media is Video");
-#line 85 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = _g_object_ref0 (media);
-#line 85 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->media);
-#line 85 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->media = _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = _g_object_ref0 (dest);
-#line 86 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->dest);
-#line 86 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->dest = _tmp2_;
-#line 87 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = _scaling_dup0 (scaling);
-#line 87 "/home/jens/Source/shotwell/src/Exporter.vala"
- _scaling_free0 (self->scaling);
-#line 87 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->scaling = _tmp3_;
-#line 88 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ = __jpeg_quality_dup0 (quality);
-#line 88 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (self->quality);
-#line 88 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->quality = _tmp4_;
-#line 89 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp5_ = __photo_file_format_dup0 (format);
-#line 89 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (self->format);
-#line 89 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->format = _tmp5_;
-#line 90 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->direct_copy_unmodified = direct_copy_unmodified;
-#line 91 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->export_metadata = export_metadata;
-#line 78 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self;
-#line 2123 "Exporter.c"
-}
-
-
-static ExporterExportJob*
-exporter_export_job_new (Exporter* owner,
- MediaSource* media,
- GFile* dest,
- Scaling* scaling,
- JpegQuality* quality,
- PhotoFileFormat* format,
- GCancellable* cancellable,
- gboolean direct_copy_unmodified,
- gboolean export_metadata)
-{
-#line 78 "/home/jens/Source/shotwell/src/Exporter.vala"
- return exporter_export_job_construct (EXPORTER_TYPE_EXPORT_JOB, owner, media, dest, scaling, quality, format, cancellable, direct_copy_unmodified, export_metadata);
-#line 2140 "Exporter.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 102 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self ? g_error_copy (self) : NULL;
-#line 2149 "Exporter.c"
-}
-
-
-static void
-exporter_export_job_real_execute (BackgroundJob* base)
-{
- ExporterExportJob * self;
- GError * _inner_error_ = NULL;
-#line 94 "/home/jens/Source/shotwell/src/Exporter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EXPORTER_TYPE_EXPORT_JOB, ExporterExportJob);
-#line 2160 "Exporter.c"
- {
- MediaSource* _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->media;
-#line 96 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO)) {
-#line 2167 "Exporter.c"
- MediaSource* _tmp1_;
- GFile* _tmp2_;
- Scaling* _tmp3_;
- JpegQuality* _tmp4_;
- PhotoFileFormat* _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp7_;
- Scaling _tmp8_;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = self->media;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = self->dest;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = self->scaling;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ = self->quality;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp5_ = self->format;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp6_ = self->direct_copy_unmodified;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp7_ = self->export_metadata;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp8_ = *_tmp3_;
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo), _tmp2_, &_tmp8_, *_tmp4_, *_tmp5_, _tmp6_, _tmp7_, &_inner_error_);
-#line 97 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2196 "Exporter.c"
- goto __catch489_g_error;
- }
- } else {
- MediaSource* _tmp9_;
-#line 98 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp9_ = self->media;
-#line 98 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO)) {
-#line 2205 "Exporter.c"
- MediaSource* _tmp10_;
- GFile* _tmp11_;
-#line 99 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp10_ = self->media;
-#line 99 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp11_ = self->dest;
-#line 99 "/home/jens/Source/shotwell/src/Exporter.vala"
- video_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_VIDEO, Video), _tmp11_, &_inner_error_);
-#line 99 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2216 "Exporter.c"
- goto __catch489_g_error;
- }
- }
- }
- }
- goto __finally489;
- __catch489_g_error:
- {
- GError* err = NULL;
- GError* _tmp12_;
- GError* _tmp13_;
-#line 95 "/home/jens/Source/shotwell/src/Exporter.vala"
- err = _inner_error_;
-#line 95 "/home/jens/Source/shotwell/src/Exporter.vala"
- _inner_error_ = NULL;
-#line 102 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp12_ = err;
-#line 102 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp13_ = _g_error_copy0 (_tmp12_);
-#line 102 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_error_free0 (self->err);
-#line 102 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->err = _tmp13_;
-#line 95 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_error_free0 (err);
-#line 2242 "Exporter.c"
- }
- __finally489:
-#line 95 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 95 "/home/jens/Source/shotwell/src/Exporter.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 95 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_clear_error (&_inner_error_);
-#line 95 "/home/jens/Source/shotwell/src/Exporter.vala"
- return;
-#line 2253 "Exporter.c"
- }
-}
-
-
-static void
-exporter_export_job_class_init (ExporterExportJobClass * klass)
-{
-#line 68 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_export_job_parent_class = g_type_class_peek_parent (klass);
-#line 68 "/home/jens/Source/shotwell/src/Exporter.vala"
- ((BackgroundJobClass *) klass)->finalize = exporter_export_job_finalize;
-#line 68 "/home/jens/Source/shotwell/src/Exporter.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) exporter_export_job_real_execute;
-#line 2267 "Exporter.c"
-}
-
-
-static void
-exporter_export_job_instance_init (ExporterExportJob * self)
-{
-#line 74 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->err = NULL;
-#line 75 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->direct_copy_unmodified = FALSE;
-#line 76 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->export_metadata = TRUE;
-#line 2280 "Exporter.c"
-}
-
-
-static void
-exporter_export_job_finalize (BackgroundJob * obj)
-{
- ExporterExportJob * self;
-#line 68 "/home/jens/Source/shotwell/src/Exporter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EXPORTER_TYPE_EXPORT_JOB, ExporterExportJob);
-#line 69 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->media);
-#line 70 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->dest);
-#line 71 "/home/jens/Source/shotwell/src/Exporter.vala"
- _scaling_free0 (self->scaling);
-#line 72 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (self->quality);
-#line 73 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (self->format);
-#line 74 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_error_free0 (self->err);
-#line 68 "/home/jens/Source/shotwell/src/Exporter.vala"
- BACKGROUND_JOB_CLASS (exporter_export_job_parent_class)->finalize (obj);
-#line 2304 "Exporter.c"
-}
-
-
-static GType
-exporter_export_job_get_type (void)
-{
- static volatile gsize exporter_export_job_type_id__volatile = 0;
- if (g_once_init_enter (&exporter_export_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ExporterExportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exporter_export_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExporterExportJob), 0, (GInstanceInitFunc) exporter_export_job_instance_init, NULL };
- GType exporter_export_job_type_id;
- exporter_export_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "ExporterExportJob", &g_define_type_info, 0);
- g_once_init_leave (&exporter_export_job_type_id__volatile, exporter_export_job_type_id);
- }
- return exporter_export_job_type_id__volatile;
-}
-
-
-static void
-exporter_class_init (ExporterClass * klass)
-{
-#line 53 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_parent_class = g_type_class_peek_parent (klass);
-#line 53 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_type_class_add_private (klass, sizeof (ExporterPrivate));
-#line 53 "/home/jens/Source/shotwell/src/Exporter.vala"
- G_OBJECT_CLASS (klass)->finalize = exporter_finalize;
-#line 2331 "Exporter.c"
-}
-
-
-static void
-exporter_instance_init (Exporter * self)
-{
- GeeArrayList* _tmp0_;
- Workers* _tmp1_;
-#line 53 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv = EXPORTER_GET_PRIVATE (self);
-#line 107 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 107 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->to_export = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 111 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completed_count = 0;
-#line 112 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = workers_new (workers_threads_per_cpu (1, 4), FALSE);
-#line 112 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->workers = _tmp1_;
-#line 113 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completion_callback = NULL;
-#line 113 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completion_callback_target = self;
-#line 114 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->error_callback = NULL;
-#line 114 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->error_callback_target = self;
-#line 115 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->overwrite_callback = NULL;
-#line 115 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->overwrite_callback_target = self;
-#line 116 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->monitor = NULL;
-#line 116 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->monitor_target = self;
-#line 118 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->replace_all = FALSE;
-#line 119 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->aborted = FALSE;
-#line 2372 "Exporter.c"
-}
-
-
-static void
-exporter_finalize (GObject * obj)
-{
- Exporter * self;
-#line 53 "/home/jens/Source/shotwell/src/Exporter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPORTER, Exporter);
-#line 107 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->to_export);
-#line 108 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->exported_files = (_vala_array_free (self->priv->exported_files, self->priv->exported_files_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 109 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->dir);
-#line 112 "/home/jens/Source/shotwell/src/Exporter.vala"
- _workers_unref0 (self->priv->workers);
-#line 117 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 53 "/home/jens/Source/shotwell/src/Exporter.vala"
- G_OBJECT_CLASS (exporter_parent_class)->finalize (obj);
-#line 2394 "Exporter.c"
-}
-
-
-GType
-exporter_get_type (void)
-{
- static volatile gsize exporter_type_id__volatile = 0;
- if (g_once_init_enter (&exporter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ExporterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exporter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Exporter), 0, (GInstanceInitFunc) exporter_instance_init, NULL };
- GType exporter_type_id;
- exporter_type_id = g_type_register_static (G_TYPE_OBJECT, "Exporter", &g_define_type_info, 0);
- g_once_init_leave (&exporter_type_id__volatile, exporter_type_id);
- }
- return exporter_type_id__volatile;
-}
-
-
-ExporterUI*
-exporter_ui_construct (GType object_type,
- Exporter* exporter)
-{
- ExporterUI* self = NULL;
- Exporter* _tmp0_;
-#line 290 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_EXPORTER (exporter), NULL);
-#line 290 "/home/jens/Source/shotwell/src/Exporter.vala"
- self = (ExporterUI*) g_type_create_instance (object_type);
-#line 291 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = _g_object_ref0 (exporter);
-#line 291 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->exporter);
-#line 291 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->exporter = _tmp0_;
-#line 290 "/home/jens/Source/shotwell/src/Exporter.vala"
- return self;
-#line 2430 "Exporter.c"
-}
-
-
-ExporterUI*
-exporter_ui_new (Exporter* exporter)
-{
-#line 290 "/home/jens/Source/shotwell/src/Exporter.vala"
- return exporter_ui_construct (TYPE_EXPORTER_UI, exporter);
-#line 2439 "Exporter.c"
-}
-
-
-static void
-_exporter_ui_on_export_completed_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self)
-{
-#line 300 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_ui_on_export_completed ((ExporterUI*) self, exporter, is_cancelled);
-#line 2450 "Exporter.c"
-}
-
-
-static gboolean
-_exporter_ui_on_export_failed_exporter_export_failed_callback (Exporter* exporter,
- GFile* file,
- gint remaining,
- GError* err,
- gpointer self)
-{
- gboolean result;
- result = exporter_ui_on_export_failed ((ExporterUI*) self, exporter, file, remaining, err);
-#line 300 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 2465 "Exporter.c"
-}
-
-
-static ExporterOverwrite
-_exporter_ui_on_export_overwrite_exporter_overwrite_callback (Exporter* exporter,
- GFile* file,
- gpointer self)
-{
- ExporterOverwrite result;
- result = exporter_ui_on_export_overwrite ((ExporterUI*) self, exporter, file);
-#line 300 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 2478 "Exporter.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 300 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 2492 "Exporter.c"
-}
-
-
-void
-exporter_ui_export (ExporterUI* self,
- ExporterCompletionCallback completion_callback,
- void* completion_callback_target)
-{
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- AppWindow* _tmp2_;
- AppWindow* _tmp3_;
- GCancellable* _tmp4_;
- ProgressDialog* _tmp5_;
- Exporter* _tmp6_;
- GCancellable* _tmp7_;
- ProgressDialog* _tmp8_;
-#line 294 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_EXPORTER_UI (self));
-#line 295 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completion_callback = completion_callback;
-#line 295 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completion_callback_target = completion_callback_target;
-#line 297 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = app_window_get_instance ();
-#line 297 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = _tmp0_;
-#line 297 "/home/jens/Source/shotwell/src/Exporter.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 297 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_tmp1_);
-#line 299 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = app_window_get_instance ();
-#line 299 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = _tmp2_;
-#line 299 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ = self->priv->cancellable;
-#line 299 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp5_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_window_get_type (), GtkWindow), _ ("Exporting"), _tmp4_);
-#line 299 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_object_ref_sink (_tmp5_);
-#line 299 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->progress_dialog);
-#line 299 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->progress_dialog = _tmp5_;
-#line 299 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_tmp3_);
-#line 300 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp6_ = self->priv->exporter;
-#line 300 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp7_ = self->priv->cancellable;
-#line 300 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp8_ = self->priv->progress_dialog;
-#line 300 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_export (_tmp6_, _exporter_ui_on_export_completed_exporter_completion_callback, self, _exporter_ui_on_export_failed_exporter_export_failed_callback, self, _exporter_ui_on_export_overwrite_exporter_overwrite_callback, self, _tmp7_, _progress_dialog_monitor_progress_monitor, _tmp8_);
-#line 2548 "Exporter.c"
-}
-
-
-static void
-exporter_ui_on_export_completed (ExporterUI* self,
- Exporter* exporter,
- gboolean is_cancelled)
-{
- ProgressDialog* _tmp0_;
- AppWindow* _tmp2_;
- AppWindow* _tmp3_;
- ExporterCompletionCallback _tmp4_;
- void* _tmp4__target;
-#line 304 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_EXPORTER_UI (self));
-#line 304 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (IS_EXPORTER (exporter));
-#line 305 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->priv->progress_dialog;
-#line 305 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (_tmp0_ != NULL) {
-#line 2570 "Exporter.c"
- ProgressDialog* _tmp1_;
-#line 306 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = self->priv->progress_dialog;
-#line 306 "/home/jens/Source/shotwell/src/Exporter.vala"
- progress_dialog_close (_tmp1_);
-#line 307 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->progress_dialog);
-#line 307 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->progress_dialog = NULL;
-#line 2580 "Exporter.c"
- }
-#line 310 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = app_window_get_instance ();
-#line 310 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = _tmp2_;
-#line 310 "/home/jens/Source/shotwell/src/Exporter.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE_WINDOW, PageWindow));
-#line 310 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (_tmp3_);
-#line 312 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ = self->priv->completion_callback;
-#line 312 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4__target = self->priv->completion_callback_target;
-#line 312 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ (exporter, is_cancelled, _tmp4__target);
-#line 2596 "Exporter.c"
-}
-
-
-static ExporterOverwrite
-exporter_ui_on_export_overwrite (ExporterUI* self,
- Exporter* exporter,
- GFile* file)
-{
- ExporterOverwrite result = 0;
- ProgressDialog* _tmp0_;
- gchar* question = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GtkResponseType response = 0;
- const gchar* _tmp5_;
- ProgressDialog* _tmp6_;
- GtkResponseType _tmp7_;
-#line 315 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_EXPORTER_UI (self), 0);
-#line 315 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_EXPORTER (exporter), 0);
-#line 315 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (G_IS_FILE (file), 0);
-#line 316 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = self->priv->progress_dialog;
-#line 316 "/home/jens/Source/shotwell/src/Exporter.vala"
- gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_window_get_type (), GtkWindow), FALSE);
-#line 317 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp1_ = g_file_get_basename (file);
-#line 317 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp2_ = _tmp1_;
-#line 317 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp3_ = g_strdup_printf (_ ("File %s already exists. Replace?"), _tmp2_);
-#line 317 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp4_ = _tmp3_;
-#line 317 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (_tmp2_);
-#line 317 "/home/jens/Source/shotwell/src/Exporter.vala"
- question = _tmp4_;
-#line 318 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp5_ = question;
-#line 318 "/home/jens/Source/shotwell/src/Exporter.vala"
- response = app_window_negate_affirm_all_cancel_question (_tmp5_, _ ("_Skip"), _ ("_Replace"), _ ("Replace _All"), _ ("Export"), NULL);
-#line 321 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp6_ = self->priv->progress_dialog;
-#line 321 "/home/jens/Source/shotwell/src/Exporter.vala"
- gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), TRUE);
-#line 323 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp7_ = response;
-#line 323 "/home/jens/Source/shotwell/src/Exporter.vala"
- switch (_tmp7_) {
-#line 323 "/home/jens/Source/shotwell/src/Exporter.vala"
- case GTK_RESPONSE_APPLY:
-#line 2652 "Exporter.c"
- {
-#line 325 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = EXPORTER_OVERWRITE_REPLACE_ALL;
-#line 325 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (question);
-#line 325 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 2660 "Exporter.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/Exporter.vala"
- case GTK_RESPONSE_YES:
-#line 2664 "Exporter.c"
- {
-#line 328 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = EXPORTER_OVERWRITE_YES;
-#line 328 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (question);
-#line 328 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 2672 "Exporter.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/Exporter.vala"
- case GTK_RESPONSE_CANCEL:
-#line 2676 "Exporter.c"
- {
-#line 331 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = EXPORTER_OVERWRITE_CANCEL;
-#line 331 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (question);
-#line 331 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 2684 "Exporter.c"
- }
- default:
-#line 323 "/home/jens/Source/shotwell/src/Exporter.vala"
- case GTK_RESPONSE_NO:
-#line 2689 "Exporter.c"
- {
-#line 335 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = EXPORTER_OVERWRITE_NO;
-#line 335 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (question);
-#line 335 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 2697 "Exporter.c"
- }
- }
-#line 315 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_free0 (question);
-#line 2702 "Exporter.c"
-}
-
-
-static gboolean
-exporter_ui_on_export_failed (ExporterUI* self,
- Exporter* exporter,
- GFile* file,
- gint remaining,
- GError* err)
-{
- gboolean result = FALSE;
-#line 339 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_EXPORTER_UI (self), FALSE);
-#line 339 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (IS_EXPORTER (exporter), FALSE);
-#line 339 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 340 "/home/jens/Source/shotwell/src/Exporter.vala"
- result = export_error_dialog (file, remaining > 0) != GTK_RESPONSE_CANCEL;
-#line 340 "/home/jens/Source/shotwell/src/Exporter.vala"
- return result;
-#line 2724 "Exporter.c"
-}
-
-
-static void
-value_exporter_ui_init (GValue* value)
-{
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- value->data[0].v_pointer = NULL;
-#line 2733 "Exporter.c"
-}
-
-
-static void
-value_exporter_ui_free_value (GValue* value)
-{
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (value->data[0].v_pointer) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_ui_unref (value->data[0].v_pointer);
-#line 2744 "Exporter.c"
- }
-}
-
-
-static void
-value_exporter_ui_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (src_value->data[0].v_pointer) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- dest_value->data[0].v_pointer = exporter_ui_ref (src_value->data[0].v_pointer);
-#line 2757 "Exporter.c"
- } else {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2761 "Exporter.c"
- }
-}
-
-
-static gpointer
-value_exporter_ui_peek_pointer (const GValue* value)
-{
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- return value->data[0].v_pointer;
-#line 2771 "Exporter.c"
-}
-
-
-static gchar*
-value_exporter_ui_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (collect_values[0].v_pointer) {
-#line 2783 "Exporter.c"
- ExporterUI * object;
- object = collect_values[0].v_pointer;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2790 "Exporter.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.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 2794 "Exporter.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- value->data[0].v_pointer = exporter_ui_ref (object);
-#line 2798 "Exporter.c"
- } else {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- value->data[0].v_pointer = NULL;
-#line 2802 "Exporter.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- return NULL;
-#line 2806 "Exporter.c"
-}
-
-
-static gchar*
-value_exporter_ui_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- ExporterUI ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!object_p) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2822 "Exporter.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (!value->data[0].v_pointer) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- *object_p = NULL;
-#line 2828 "Exporter.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- *object_p = value->data[0].v_pointer;
-#line 2832 "Exporter.c"
- } else {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- *object_p = exporter_ui_ref (value->data[0].v_pointer);
-#line 2836 "Exporter.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- return NULL;
-#line 2840 "Exporter.c"
-}
-
-
-GParamSpec*
-param_spec_exporter_ui (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecExporterUI* spec;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_EXPORTER_UI), NULL);
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- return G_PARAM_SPEC (spec);
-#line 2860 "Exporter.c"
-}
-
-
-gpointer
-value_get_exporter_ui (const GValue* value)
-{
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EXPORTER_UI), NULL);
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- return value->data[0].v_pointer;
-#line 2871 "Exporter.c"
-}
-
-
-void
-value_set_exporter_ui (GValue* value,
- gpointer v_object)
-{
- ExporterUI * old;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EXPORTER_UI));
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- old = value->data[0].v_pointer;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (v_object) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_EXPORTER_UI));
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- value->data[0].v_pointer = v_object;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_ui_ref (value->data[0].v_pointer);
-#line 2894 "Exporter.c"
- } else {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- value->data[0].v_pointer = NULL;
-#line 2898 "Exporter.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (old) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_ui_unref (old);
-#line 2904 "Exporter.c"
- }
-}
-
-
-void
-value_take_exporter_ui (GValue* value,
- gpointer v_object)
-{
- ExporterUI * old;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EXPORTER_UI));
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- old = value->data[0].v_pointer;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (v_object) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_EXPORTER_UI));
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- value->data[0].v_pointer = v_object;
-#line 2926 "Exporter.c"
- } else {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- value->data[0].v_pointer = NULL;
-#line 2930 "Exporter.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (old) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_ui_unref (old);
-#line 2936 "Exporter.c"
- }
-}
-
-
-static void
-exporter_ui_class_init (ExporterUIClass * klass)
-{
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- exporter_ui_parent_class = g_type_class_peek_parent (klass);
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- ((ExporterUIClass *) klass)->finalize = exporter_ui_finalize;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_type_class_add_private (klass, sizeof (ExporterUIPrivate));
-#line 2950 "Exporter.c"
-}
-
-
-static void
-exporter_ui_instance_init (ExporterUI * self)
-{
- GCancellable* _tmp0_;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv = EXPORTER_UI_GET_PRIVATE (self);
-#line 286 "/home/jens/Source/shotwell/src/Exporter.vala"
- _tmp0_ = g_cancellable_new ();
-#line 286 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->cancellable = _tmp0_;
-#line 287 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->progress_dialog = NULL;
-#line 288 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completion_callback = NULL;
-#line 288 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->priv->completion_callback_target = self;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- self->ref_count = 1;
-#line 2972 "Exporter.c"
-}
-
-
-static void
-exporter_ui_finalize (ExporterUI * obj)
-{
- ExporterUI * self;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPORTER_UI, ExporterUI);
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_signal_handlers_destroy (self);
-#line 285 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->exporter);
-#line 286 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 287 "/home/jens/Source/shotwell/src/Exporter.vala"
- _g_object_unref0 (self->priv->progress_dialog);
-#line 2990 "Exporter.c"
-}
-
-
-GType
-exporter_ui_get_type (void)
-{
- static volatile gsize exporter_ui_type_id__volatile = 0;
- if (g_once_init_enter (&exporter_ui_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_exporter_ui_init, value_exporter_ui_free_value, value_exporter_ui_copy_value, value_exporter_ui_peek_pointer, "p", value_exporter_ui_collect_value, "p", value_exporter_ui_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ExporterUIClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exporter_ui_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExporterUI), 0, (GInstanceInitFunc) exporter_ui_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType exporter_ui_type_id;
- exporter_ui_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ExporterUI", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&exporter_ui_type_id__volatile, exporter_ui_type_id);
- }
- return exporter_ui_type_id__volatile;
-}
-
-
-gpointer
-exporter_ui_ref (gpointer instance)
-{
- ExporterUI * self;
- self = instance;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- return instance;
-#line 3019 "Exporter.c"
-}
-
-
-void
-exporter_ui_unref (gpointer instance)
-{
- ExporterUI * self;
- self = instance;
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- EXPORTER_UI_GET_CLASS (self)->finalize (self);
-#line 284 "/home/jens/Source/shotwell/src/Exporter.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3034 "Exporter.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/International.c b/src/International.c
deleted file mode 100644
index 01f33dd..0000000
--- a/src/International.c
+++ /dev/null
@@ -1,144 +0,0 @@
-/* International.c generated by valac 0.40.4, the Vala compiler
- * generated from International.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <locale.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-
-
-#define TRANSLATABLE "translatable"
-#define INTERNATIONAL_SUPPORT_SYSTEM_LOCALE ""
-#define INTERNATIONAL_SUPPORT_LANGUAGE_SUPPORT_DIRECTORY _LANG_SUPPORT_DIR
-void international_support_init (const gchar* package_name,
- gchar** args,
- int args_length1,
- const gchar* locale);
-gchar* international_support_get_langpack_dir_path (gchar** args,
- int args_length1);
-
-
-void
-international_support_init (const gchar* package_name,
- gchar** args,
- int args_length1,
- const gchar* locale)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 15 "/home/jens/Source/shotwell/src/International.vala"
- g_return_if_fail (package_name != NULL);
-#line 15 "/home/jens/Source/shotwell/src/International.vala"
- g_return_if_fail (locale != NULL);
-#line 16 "/home/jens/Source/shotwell/src/International.vala"
- setlocale (LC_ALL, locale);
-#line 18 "/home/jens/Source/shotwell/src/International.vala"
- _tmp0_ = international_support_get_langpack_dir_path (args, args_length1);
-#line 18 "/home/jens/Source/shotwell/src/International.vala"
- _tmp1_ = _tmp0_;
-#line 18 "/home/jens/Source/shotwell/src/International.vala"
- bindtextdomain (package_name, _tmp1_);
-#line 18 "/home/jens/Source/shotwell/src/International.vala"
- _g_free0 (_tmp1_);
-#line 19 "/home/jens/Source/shotwell/src/International.vala"
- bind_textdomain_codeset (package_name, "UTF-8");
-#line 20 "/home/jens/Source/shotwell/src/International.vala"
- textdomain (package_name);
-#line 62 "International.c"
-}
-
-
-gchar*
-international_support_get_langpack_dir_path (gchar** args,
- int args_length1)
-{
- gchar* result = NULL;
- GFile* local_langpack_dir = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
- gchar* _tmp9_ = NULL;
- GFile* _tmp10_;
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp0_ = args[0];
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp1_ = g_find_program_in_path (_tmp0_);
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp2_ = _tmp1_;
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp4_ = _tmp3_;
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp5_ = g_file_get_parent (_tmp4_);
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp6_ = _tmp5_;
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp7_ = g_file_get_child (_tmp6_, "locale-langpack");
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _tmp8_ = _tmp7_;
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _g_object_unref0 (_tmp6_);
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _g_object_unref0 (_tmp4_);
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- _g_free0 (_tmp2_);
-#line 24 "/home/jens/Source/shotwell/src/International.vala"
- local_langpack_dir = _tmp8_;
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- _tmp10_ = local_langpack_dir;
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- if (g_file_query_exists (_tmp10_, NULL)) {
-#line 113 "International.c"
- GFile* _tmp11_;
- gchar* _tmp12_;
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- _tmp11_ = local_langpack_dir;
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- _tmp12_ = g_file_get_path (_tmp11_);
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- _g_free0 (_tmp9_);
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- _tmp9_ = _tmp12_;
-#line 124 "International.c"
- } else {
- gchar* _tmp13_;
-#line 29 "/home/jens/Source/shotwell/src/International.vala"
- _tmp13_ = g_strdup (INTERNATIONAL_SUPPORT_LANGUAGE_SUPPORT_DIRECTORY);
-#line 29 "/home/jens/Source/shotwell/src/International.vala"
- _g_free0 (_tmp9_);
-#line 29 "/home/jens/Source/shotwell/src/International.vala"
- _tmp9_ = _tmp13_;
-#line 133 "International.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- result = _tmp9_;
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- _g_object_unref0 (local_langpack_dir);
-#line 28 "/home/jens/Source/shotwell/src/International.vala"
- return result;
-#line 141 "International.c"
-}
-
-
-
diff --git a/src/International.vala b/src/International.vala
index 23bdd0b..555a91f 100644
--- a/src/International.vala
+++ b/src/International.vala
@@ -22,7 +22,7 @@ void init(string package_name, string[] args, string locale = SYSTEM_LOCALE) {
private string get_langpack_dir_path(string[] args) {
File local_langpack_dir =
- File.new_for_path(Environment.find_program_in_path(args[0])).get_parent().get_child(
+ File.new_for_path(Environment.find_program_in_path(args[0])).get_parent().get_parent().get_child(
"locale-langpack");
return (local_langpack_dir.query_exists(null)) ? local_langpack_dir.get_path() :
diff --git a/src/LibraryFiles.c b/src/LibraryFiles.c
deleted file mode 100644
index 2f6ef37..0000000
--- a/src/LibraryFiles.c
+++ /dev/null
@@ -1,1428 +0,0 @@
-/* LibraryFiles.c generated by valac 0.40.4, the Vala compiler
- * generated from LibraryFiles.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <stdio.h>
-#include <glib/gstdio.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define TYPE_VIDEO_READER (video_reader_get_type ())
-#define VIDEO_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_READER, VideoReader))
-#define VIDEO_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_READER, VideoReaderClass))
-#define IS_VIDEO_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_READER))
-#define IS_VIDEO_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_READER))
-#define VIDEO_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_READER, VideoReaderClass))
-
-typedef struct _VideoReader VideoReader;
-typedef struct _VideoReaderClass VideoReaderClass;
-
-#define TYPE_VIDEO_METADATA (video_metadata_get_type ())
-#define VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_METADATA, VideoMetadata))
-#define VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_METADATA, VideoMetadataClass))
-#define IS_VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_METADATA))
-#define IS_VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_METADATA))
-#define VIDEO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_METADATA, VideoMetadataClass))
-
-typedef struct _VideoMetadata VideoMetadata;
-typedef struct _VideoMetadataClass VideoMetadataClass;
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _video_reader_unref0(var) ((var == NULL) ? NULL : (var = (video_reader_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
-#define _fclose0(var) ((var == NULL) ? NULL : (var = (fclose (var), NULL)))
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-
-extern gboolean library_files_use_fallback_copy_func;
-gboolean library_files_use_fallback_copy_func = FALSE;
-
-void library_files_select_copy_function (void);
-GFile* app_dirs_get_import_dir (void);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GFile* library_files_generate_unique_file (const gchar* basename,
- MediaMetadata* metadata,
- time_t ts,
- gboolean* collision,
- GError** error);
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-MetadataDateTime* media_metadata_get_creation_date_time (MediaMetadata* self);
-time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
-GFile* app_dirs_get_baked_import_dir (time_t tm);
-gchar* library_files_convert_basename (const gchar* basename);
-GFile* generate_unique_file (GFile* dir,
- const gchar* basename,
- gboolean* collision,
- GError** error);
-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_use_lowercase_filenames (ConfigurationFacade* self);
-GFile* library_files_duplicate (GFile* src,
- GFileProgressCallback progress_callback,
- void* progress_callback_target,
- gboolean blacklist,
- GError** error);
-time_t query_file_modified (GFile* file,
- GError** error);
-gboolean video_reader_is_supported_video_file (GFile* file);
-gpointer video_reader_ref (gpointer instance);
-void video_reader_unref (gpointer instance);
-GParamSpec* param_spec_video_reader (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_video_reader (GValue* value,
- gpointer v_object);
-void value_take_video_reader (GValue* value,
- gpointer v_object);
-gpointer value_get_video_reader (const GValue* value);
-GType video_reader_get_type (void) G_GNUC_CONST;
-VideoReader* video_reader_new (GFile* file);
-VideoReader* video_reader_construct (GType object_type,
- GFile* file);
-GType video_metadata_get_type (void) G_GNUC_CONST;
-VideoMetadata* video_reader_read_metadata (VideoReader* self,
- GError** error);
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file);
-PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self,
- const gchar* filepath);
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self,
- GError** error);
-void library_monitor_blacklist_file (GFile* file,
- const gchar* reason);
-void library_files_fallback_copy (GFile* src,
- GFile* dst,
- GFileProgressCallback callback,
- void* callback_target,
- GError** error);
-void library_monitor_unblacklist_file (GFile* file);
-gchar* md5_file (GFile* file,
- GError** error);
-
-
-static gchar*
-bool_to_string (gboolean self)
-{
- gchar* result = NULL;
-#line 37 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (self) {
-#line 246 "LibraryFiles.c"
- gchar* _tmp0_;
-#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup ("true");
-#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 254 "LibraryFiles.c"
- } else {
- gchar* _tmp1_;
-#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = g_strdup ("false");
-#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp1_;
-#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 263 "LibraryFiles.c"
- }
-}
-
-
-void
-library_files_select_copy_function (void)
-{
- GFile* import_dir = NULL;
- GFile* _tmp0_;
- gboolean _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- GError * _inner_error_ = NULL;
-#line 12 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp0_ = app_dirs_get_import_dir ();
-#line 12 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- import_dir = _tmp0_;
-#line 281 "LibraryFiles.c"
- {
- GFileInfo* info = NULL;
- GFileInfo* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp1_ = g_file_query_filesystem_info (import_dir, "filesystem::type", NULL, &_inner_error_);
-#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- info = _tmp1_;
-#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 293 "LibraryFiles.c"
- goto __catch471_g_error;
- }
-#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp2_ = g_file_info_get_attribute_as_string (info, "filesystem::type");
-#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp3_ = _tmp2_;
-#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- library_files_use_fallback_copy_func = g_strcmp0 (_tmp3_, "nfs") == 0;
-#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp3_);
-#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (info);
-#line 306 "LibraryFiles.c"
- }
- goto __finally471;
- __catch471_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp4_;
- const gchar* _tmp5_;
-#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _error_ = _inner_error_;
-#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = NULL;
-#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp4_ = _error_;
-#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp5_ = _tmp4_->message;
-#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_critical ("LibraryFiles.vala:18: Failed to query fs type: %s", _tmp5_);
-#line 19 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- library_files_use_fallback_copy_func = TRUE;
-#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (_error_);
-#line 328 "LibraryFiles.c"
- }
- __finally471:
-#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (import_dir);
-#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.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 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_clear_error (&_inner_error_);
-#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return;
-#line 341 "LibraryFiles.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp6_ = library_files_use_fallback_copy_func;
-#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp7_ = bool_to_string (_tmp6_);
-#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp8_ = _tmp7_;
-#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_info ("LibraryFiles.vala:22: Using fallback copy: %s", _tmp8_);
-#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp8_);
-#line 11 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (import_dir);
-#line 355 "LibraryFiles.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return self ? g_error_copy (self) : NULL;
-#line 364 "LibraryFiles.c"
-}
-
-
-GFile*
-library_files_generate_unique_file (const gchar* basename,
- MediaMetadata* metadata,
- time_t ts,
- gboolean* collision,
- GError** error)
-{
- gboolean _vala_collision = FALSE;
- GFile* result = NULL;
- time_t timestamp = 0;
- GFile* dir = NULL;
- time_t _tmp5_;
- GFile* _tmp6_;
- gchar* newbasename = NULL;
- gchar* _tmp11_;
- GFile* _tmp12_ = NULL;
- GFile* _tmp13_;
- gboolean _tmp14_ = FALSE;
- GFile* _tmp15_;
- GFile* _tmp16_;
- GError * _inner_error_ = NULL;
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_return_val_if_fail (basename != NULL, NULL);
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_return_val_if_fail ((metadata == NULL) || IS_MEDIA_METADATA (metadata), NULL);
-#line 34 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- timestamp = ts;
-#line 35 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (metadata != NULL) {
-#line 397 "LibraryFiles.c"
- MetadataDateTime* date_time = NULL;
- MetadataDateTime* _tmp0_;
- MetadataDateTime* _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp0_ = media_metadata_get_creation_date_time (metadata);
-#line 36 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- date_time = _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp1_ = date_time;
-#line 37 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp1_ != NULL) {
-#line 409 "LibraryFiles.c"
- MetadataDateTime* _tmp2_;
-#line 38 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp2_ = date_time;
-#line 38 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- timestamp = metadata_date_time_get_timestamp (_tmp2_);
-#line 415 "LibraryFiles.c"
- } else {
- time_t _tmp3_;
-#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp3_ = timestamp;
-#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp3_ == ((time_t) 0)) {
-#line 422 "LibraryFiles.c"
- time_t _tmp4_;
-#line 40 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp4_ = time (NULL);
-#line 40 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- timestamp = _tmp4_;
-#line 428 "LibraryFiles.c"
- }
- }
-#line 35 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _metadata_date_time_unref0 (date_time);
-#line 433 "LibraryFiles.c"
- }
-#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp5_ = timestamp;
-#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp6_ = app_dirs_get_baked_import_dir (_tmp5_);
-#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- dir = _tmp6_;
-#line 441 "LibraryFiles.c"
- {
- GFile* _tmp7_;
-#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp7_ = dir;
-#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_file_make_directory_with_parents (_tmp7_, NULL, &_inner_error_);
-#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 450 "LibraryFiles.c"
- goto __catch472_g_error;
- }
- }
- goto __finally472;
- __catch472_g_error:
- {
- GError* err = NULL;
- GError* _tmp8_;
-#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- err = _inner_error_;
-#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = NULL;
-#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp8_ = err;
-#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (!g_error_matches (_tmp8_, G_IO_ERROR, G_IO_ERROR_EXISTS)) {
-#line 467 "LibraryFiles.c"
- GError* _tmp9_;
- GError* _tmp10_;
-#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp9_ = err;
-#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp10_ = _g_error_copy0 (_tmp9_);
-#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = _tmp10_;
-#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 478 "LibraryFiles.c"
- goto __finally472;
- }
-#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 483 "LibraryFiles.c"
- }
- __finally472:
-#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (dir);
-#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 494 "LibraryFiles.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp11_ = library_files_convert_basename (basename);
-#line 55 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- newbasename = _tmp11_;
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp13_ = dir;
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp15_ = generate_unique_file (_tmp13_, newbasename, &_tmp14_, &_inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _vala_collision = _tmp14_;
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp12_ = _tmp15_;
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (newbasename);
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (dir);
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 518 "LibraryFiles.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp16_ = _tmp12_;
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp12_ = NULL;
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- result = _tmp16_;
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (_tmp12_);
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (newbasename);
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (dir);
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (collision) {
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- *collision = _vala_collision;
-#line 536 "LibraryFiles.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return result;
-#line 540 "LibraryFiles.c"
-}
-
-
-gchar*
-library_files_convert_basename (const gchar* basename)
-{
- gchar* result = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
-#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_return_val_if_fail (basename != NULL, NULL);
-#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp1_ = _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp2_ = configuration_facade_get_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (_tmp1_);
-#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp2_) {
-#line 563 "LibraryFiles.c"
- gchar* _tmp3_;
-#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp3_ = g_utf8_strdown (basename, (gssize) -1);
-#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- result = _tmp3_;
-#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return result;
-#line 571 "LibraryFiles.c"
- } else {
- gchar* _tmp4_;
-#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp4_ = g_strdup (basename);
-#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- result = _tmp4_;
-#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return result;
-#line 580 "LibraryFiles.c"
- }
-}
-
-
-GFile*
-library_files_duplicate (GFile* src,
- GFileProgressCallback progress_callback,
- void* progress_callback_target,
- gboolean blacklist,
- GError** error)
-{
- GFile* result = NULL;
- time_t timestamp = 0;
- MediaMetadata* metadata = NULL;
- gboolean collision = FALSE;
- GFile* dest = NULL;
- gchar* _tmp18_;
- gchar* _tmp19_;
- MediaMetadata* _tmp20_;
- time_t _tmp21_;
- gboolean _tmp22_ = FALSE;
- GFile* _tmp23_;
- GFile* _tmp24_;
- GFile* _tmp25_;
- GError * _inner_error_ = NULL;
-#line 73 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_return_val_if_fail (G_IS_FILE (src), NULL);
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- timestamp = (time_t) 0;
-#line 610 "LibraryFiles.c"
- {
- time_t _tmp0_ = 0;
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp0_ = query_file_modified (src, &_inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 617 "LibraryFiles.c"
- goto __catch473_g_error;
- }
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- timestamp = _tmp0_;
-#line 622 "LibraryFiles.c"
- }
- goto __finally473;
- __catch473_g_error:
- {
- GError* err = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- err = _inner_error_;
-#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = NULL;
-#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp1_ = g_file_get_path (src);
-#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp2_ = _tmp1_;
-#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp3_ = err;
-#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp4_ = _tmp3_->message;
-#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_critical ("LibraryFiles.vala:78: Unable to access file modification for %s: %s", _tmp2_, _tmp4_);
-#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp2_);
-#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 650 "LibraryFiles.c"
- }
- __finally473:
-#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 659 "LibraryFiles.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- metadata = NULL;
-#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (video_reader_is_supported_video_file (src)) {
-#line 665 "LibraryFiles.c"
- VideoReader* reader = NULL;
- VideoReader* _tmp5_;
-#line 83 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp5_ = video_reader_new (src);
-#line 83 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- reader = _tmp5_;
-#line 672 "LibraryFiles.c"
- {
- VideoMetadata* _tmp6_ = NULL;
- VideoReader* _tmp7_;
- VideoMetadata* _tmp8_;
- VideoMetadata* _tmp9_;
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp7_ = reader;
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp8_ = video_reader_read_metadata (_tmp7_, &_inner_error_);
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp6_ = _tmp8_;
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 686 "LibraryFiles.c"
- goto __catch474_g_error;
- }
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp9_ = _tmp6_;
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp6_ = NULL;
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- metadata = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_METADATA, MediaMetadata);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (_tmp6_);
-#line 699 "LibraryFiles.c"
- }
- goto __finally474;
- __catch474_g_error:
- {
- GError* err = NULL;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- err = _inner_error_;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = NULL;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 711 "LibraryFiles.c"
- }
- __finally474:
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _video_reader_unref0 (reader);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 724 "LibraryFiles.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _video_reader_unref0 (reader);
-#line 728 "LibraryFiles.c"
- } else {
- PhotoFileReader* reader = NULL;
- gchar* _tmp10_;
- gchar* _tmp11_;
- PhotoFileReader* _tmp12_;
- PhotoFileReader* _tmp13_;
-#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp10_ = g_file_get_path (src);
-#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp11_ = _tmp10_;
-#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp12_ = photo_file_format_create_reader (photo_file_format_get_by_file_extension (src), _tmp11_);
-#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp13_ = _tmp12_;
-#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp11_);
-#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- reader = _tmp13_;
-#line 747 "LibraryFiles.c"
- {
- PhotoMetadata* _tmp14_ = NULL;
- PhotoFileReader* _tmp15_;
- PhotoMetadata* _tmp16_;
- PhotoMetadata* _tmp17_;
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp15_ = reader;
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp16_ = photo_file_reader_read_metadata (_tmp15_, &_inner_error_);
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp14_ = _tmp16_;
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 761 "LibraryFiles.c"
- goto __catch475_g_error;
- }
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp17_ = _tmp14_;
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp14_ = NULL;
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- metadata = G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_METADATA, MediaMetadata);
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (_tmp14_);
-#line 774 "LibraryFiles.c"
- }
- goto __finally475;
- __catch475_g_error:
- {
- GError* err = NULL;
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- err = _inner_error_;
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = NULL;
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 786 "LibraryFiles.c"
- }
- __finally475:
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _photo_file_adapter_unref0 (reader);
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 799 "LibraryFiles.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _photo_file_adapter_unref0 (reader);
-#line 803 "LibraryFiles.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp18_ = g_file_get_basename (src);
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp19_ = _tmp18_;
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp20_ = metadata;
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp21_ = timestamp;
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp23_ = library_files_generate_unique_file (_tmp19_, _tmp20_, _tmp21_, &_tmp22_, &_inner_error_);
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- collision = _tmp22_;
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp24_ = _tmp23_;
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp19_);
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- dest = _tmp24_;
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 831 "LibraryFiles.c"
- }
-#line 101 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp25_ = dest;
-#line 101 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp25_ == NULL) {
-#line 837 "LibraryFiles.c"
- GError* _tmp26_;
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp26_ = g_error_new_literal (G_FILE_ERROR, G_FILE_ERROR_FAILED, "Unable to generate unique pathname for destination");
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = _tmp26_;
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (dest);
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 851 "LibraryFiles.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (blacklist) {
-#line 855 "LibraryFiles.c"
- GFile* _tmp27_;
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp27_ = dest;
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- library_monitor_blacklist_file (_tmp27_, "LibraryFiles.duplicate");
-#line 861 "LibraryFiles.c"
- }
- {
- gboolean _tmp28_;
-#line 108 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp28_ = library_files_use_fallback_copy_func;
-#line 108 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp28_) {
-#line 869 "LibraryFiles.c"
- GFile* _tmp29_;
-#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp29_ = dest;
-#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- library_files_fallback_copy (src, _tmp29_, progress_callback, progress_callback_target, &_inner_error_);
-#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 877 "LibraryFiles.c"
- goto __catch476_g_error;
- }
- } else {
- GFile* _tmp30_;
-#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp30_ = dest;
-#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_file_copy (src, _tmp30_, G_FILE_COPY_ALL_METADATA | G_FILE_COPY_OVERWRITE, NULL, progress_callback, progress_callback_target, &_inner_error_);
-#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 888 "LibraryFiles.c"
- goto __catch476_g_error;
- }
- }
-#line 113 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (blacklist) {
-#line 894 "LibraryFiles.c"
- GFile* _tmp31_;
-#line 114 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp31_ = dest;
-#line 114 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- library_monitor_unblacklist_file (_tmp31_);
-#line 900 "LibraryFiles.c"
- }
- }
- goto __finally476;
- __catch476_g_error:
- {
- GError* err = NULL;
- gchar* _tmp32_;
- gchar* _tmp33_;
- GError* _tmp34_;
- const gchar* _tmp35_;
- gboolean _tmp36_ = FALSE;
-#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- err = _inner_error_;
-#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = NULL;
-#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp32_ = g_file_get_path (src);
-#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp33_ = _tmp32_;
-#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp34_ = err;
-#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp35_ = _tmp34_->message;
-#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_message ("LibraryFiles.vala:116: There was a problem copying %s: %s", _tmp33_, _tmp35_);
-#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp33_);
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (blacklist) {
-#line 930 "LibraryFiles.c"
- gchar* _tmp37_ = NULL;
- gchar* _tmp38_;
- gchar* _tmp39_ = NULL;
- GFile* _tmp40_;
- gchar* _tmp41_;
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp38_ = md5_file (src, &_inner_error_);
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp37_ = _tmp38_;
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 944 "LibraryFiles.c"
- goto __finally476;
- }
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp40_ = dest;
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp41_ = md5_file (_tmp40_, &_inner_error_);
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp39_ = _tmp41_;
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp37_);
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 959 "LibraryFiles.c"
- goto __finally476;
- }
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp36_ = g_strcmp0 (_tmp37_, _tmp39_) != 0;
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp39_);
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp37_);
-#line 968 "LibraryFiles.c"
- } else {
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp36_ = FALSE;
-#line 972 "LibraryFiles.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp36_) {
-#line 976 "LibraryFiles.c"
- GFile* _tmp42_;
-#line 118 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp42_ = dest;
-#line 118 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- library_monitor_unblacklist_file (_tmp42_);
-#line 982 "LibraryFiles.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 986 "LibraryFiles.c"
- }
- __finally476:
-#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (dest);
-#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 999 "LibraryFiles.c"
- }
- {
- GFileInfo* info = NULL;
- GFile* _tmp43_;
- GFileInfo* _tmp44_;
- guint32 mode = 0U;
- GFileInfo* _tmp45_;
- gboolean _tmp46_ = FALSE;
- GFile* _tmp47_;
- guint32 _tmp48_;
-#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp43_ = dest;
-#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp44_ = g_file_query_info (_tmp43_, G_FILE_ATTRIBUTE_UNIX_MODE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- info = _tmp44_;
-#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1018 "LibraryFiles.c"
- goto __catch477_g_error;
- }
-#line 124 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp45_ = info;
-#line 124 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- mode = g_file_info_get_attribute_uint32 (_tmp45_, G_FILE_ATTRIBUTE_UNIX_MODE) | 0600;
-#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp47_ = dest;
-#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp48_ = mode;
-#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp46_ = g_file_set_attribute_uint32 (_tmp47_, G_FILE_ATTRIBUTE_UNIX_MODE, _tmp48_, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (info);
-#line 1035 "LibraryFiles.c"
- goto __catch477_g_error;
- }
-#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (!_tmp46_) {
-#line 126 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_warning ("LibraryFiles.vala:126: Could not make file writable");
-#line 1042 "LibraryFiles.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (info);
-#line 1046 "LibraryFiles.c"
- }
- goto __finally477;
- __catch477_g_error:
- {
- GError* err = NULL;
- GError* _tmp49_;
- const gchar* _tmp50_;
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- err = _inner_error_;
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = NULL;
-#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp49_ = err;
-#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp50_ = _tmp49_->message;
-#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_warning ("LibraryFiles.vala:129: Could not make file writable: %s", _tmp50_);
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_error_free0 (err);
-#line 1066 "LibraryFiles.c"
- }
- __finally477:
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_object_unref0 (dest);
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return NULL;
-#line 1079 "LibraryFiles.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- result = dest;
-#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _media_metadata_unref0 (metadata);
-#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return result;
-#line 1087 "LibraryFiles.c"
-}
-
-
-void
-library_files_fallback_copy (GFile* src,
- GFile* dst,
- GFileProgressCallback callback,
- void* callback_target,
- GError** error)
-{
- gboolean _tmp0_ = FALSE;
- FILE* f = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- FILE* _tmp3_;
- FILE* _tmp4_;
- FILE* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_return_if_fail ((src == NULL) || G_IS_FILE (src));
-#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_return_if_fail ((dst == NULL) || G_IS_FILE (dst));
-#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (src == NULL) {
-#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp0_ = TRUE;
-#line 1114 "LibraryFiles.c"
- } else {
-#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp0_ = dst == NULL;
-#line 1118 "LibraryFiles.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp0_) {
-#line 137 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return;
-#line 1124 "LibraryFiles.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp1_ = g_file_get_path (src);
-#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp2_ = _tmp1_;
-#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp3_ = g_fopen (_tmp2_, "rb");
-#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp4_ = _tmp3_;
-#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp2_);
-#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- f = _tmp4_;
-#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp5_ = f;
-#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp5_ != NULL) {
-#line 1142 "LibraryFiles.c"
- FILE* _tmp6_;
- glong size = 0L;
- FILE* _tmp7_;
- FILE* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- glong _tmp13_;
- FILE* g = NULL;
- gchar* _tmp14_;
- gchar* _tmp15_;
- FILE* _tmp16_;
- FILE* _tmp17_;
- FILE* _tmp18_;
-#line 142 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp6_ = f;
-#line 142 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- fseek (_tmp6_, (glong) 0, SEEK_END);
-#line 143 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp7_ = f;
-#line 143 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- size = ftell (_tmp7_);
-#line 144 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp8_ = f;
-#line 144 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- fseek (_tmp8_, (glong) 0, SEEK_SET);
-#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp9_ = g_file_get_path (src);
-#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp10_ = _tmp9_;
-#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp11_ = g_file_get_path (dst);
-#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp12_ = _tmp11_;
-#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp13_ = size;
-#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_debug ("LibraryFiles.vala:145: Copying %s to %s, size is %ld", _tmp10_, _tmp12_, _tmp13_);
-#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp12_);
-#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp10_);
-#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp14_ = g_file_get_path (dst);
-#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp15_ = _tmp14_;
-#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp16_ = g_fopen (_tmp15_, "wb");
-#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp17_ = _tmp16_;
-#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp15_);
-#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g = _tmp17_;
-#line 148 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp18_ = g;
-#line 148 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp18_ != NULL) {
-#line 1202 "LibraryFiles.c"
- guint8 buffer[4096] = {0};
- gsize written = 0UL;
-#line 150 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- written = (gsize) 0;
-#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- while (TRUE) {
-#line 1209 "LibraryFiles.c"
- FILE* _tmp19_;
- gsize len = 0UL;
- FILE* _tmp20_;
- gsize _tmp21_;
-#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp19_ = f;
-#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (!(!feof (_tmp19_))) {
-#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- break;
-#line 1220 "LibraryFiles.c"
- }
-#line 153 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp20_ = f;
-#line 153 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- len = fread (buffer, (gsize) 1, 4096, _tmp20_);
-#line 154 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp21_ = len;
-#line 154 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp21_ > ((gsize) 0)) {
-#line 1230 "LibraryFiles.c"
- gsize out_len = 0UL;
- FILE* _tmp22_;
- gsize _tmp23_;
- gsize _tmp24_;
- gsize _tmp31_;
- gsize _tmp32_;
-#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp22_ = g;
-#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp23_ = len;
-#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- out_len = fwrite (buffer + 0, (gsize) 1, ((gint) _tmp23_) - 0, _tmp22_);
-#line 156 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp24_ = out_len;
-#line 156 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp24_ < ((gsize) 0)) {
-#line 1247 "LibraryFiles.c"
- gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- GError* _tmp29_;
- GError* _tmp30_;
-#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp25_ = g_file_get_path (dst);
-#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp26_ = _tmp25_;
-#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_critical ("LibraryFiles.vala:157: Failed to write to file %s: %m", _tmp26_);
-#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp26_);
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp27_ = g_file_get_path (dst);
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp28_ = _tmp27_;
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp29_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to write to %s", _tmp28_);
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp30_ = _tmp29_;
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp28_);
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = _tmp30_;
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (g);
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (f);
-#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return;
-#line 1282 "LibraryFiles.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp31_ = written;
-#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp32_ = len;
-#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- written = _tmp31_ + _tmp32_;
-#line 162 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (callback != NULL) {
-#line 1292 "LibraryFiles.c"
- gsize _tmp33_;
- glong _tmp34_;
-#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp33_ = written;
-#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp34_ = size;
-#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- callback ((gint64) _tmp33_, (gint64) _tmp34_, callback_target);
-#line 1301 "LibraryFiles.c"
- }
- } else {
- gsize _tmp35_;
-#line 164 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp35_ = len;
-#line 164 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp35_ < ((gsize) 0)) {
-#line 1309 "LibraryFiles.c"
- gchar* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- GError* _tmp40_;
- GError* _tmp41_;
-#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp36_ = g_file_get_path (src);
-#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp37_ = _tmp36_;
-#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_critical ("LibraryFiles.vala:165: Failed to read from file %s: %m", _tmp37_);
-#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp37_);
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp38_ = g_file_get_path (src);
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp39_ = _tmp38_;
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp40_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to read from %s", _tmp39_);
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp41_ = _tmp40_;
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp39_);
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = _tmp41_;
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (g);
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (f);
-#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return;
-#line 1344 "LibraryFiles.c"
- }
- }
- }
- } else {
- gchar* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- GError* _tmp46_;
- GError* _tmp47_;
-#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp42_ = g_file_get_path (dst);
-#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp43_ = _tmp42_;
-#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_critical ("LibraryFiles.vala:170: Failed to open %s: %m", _tmp43_);
-#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp43_);
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp44_ = g_file_get_path (dst);
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp45_ = _tmp44_;
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp46_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to open %s", _tmp45_);
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp47_ = _tmp46_;
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp45_);
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = _tmp47_;
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (g);
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (f);
-#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return;
-#line 1383 "LibraryFiles.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (g);
-#line 1387 "LibraryFiles.c"
- } else {
- gchar* _tmp48_;
- gchar* _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_;
- GError* _tmp52_;
- GError* _tmp53_;
-#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp48_ = g_file_get_path (src);
-#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp49_ = _tmp48_;
-#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_critical ("LibraryFiles.vala:174: Failed to open %s: %m", _tmp49_);
-#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp49_);
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp50_ = g_file_get_path (src);
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp51_ = _tmp50_;
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp52_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to open %s", _tmp51_);
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp53_ = _tmp52_;
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp51_);
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _inner_error_ = _tmp53_;
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_propagate_error (error, _inner_error_);
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (f);
-#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- return;
-#line 1421 "LibraryFiles.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _fclose0 (f);
-#line 1425 "LibraryFiles.c"
-}
-
-
-
diff --git a/src/LibraryMonitor.c b/src/LibraryMonitor.c
deleted file mode 100644
index dc4d603..0000000
--- a/src/LibraryMonitor.c
+++ /dev/null
@@ -1,8820 +0,0 @@
-/* LibraryMonitor.c generated by valac 0.40.4, the Vala compiler
- * generated from LibraryMonitor.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/**/
-/* LibraryMonitor uses DirectoryMonitor to track assets in the user's library directory and make*/
-/* sure they're reflected in the application.*/
-/**/
-/* NOTE: There appears to be a bug where prior versions of Shotwell (<= 0.6.x) were not*/
-/* properly loading the file modification timestamp during import. This was no issue*/
-/* before but becomes imperative now with file monitoring. A "proper" algorithm is*/
-/* to reimport an entire photo if the modification time in the database is different*/
-/* than the file's, but that's Real Bad when the user first turns on monitoring, as it*/
-/* will cause a lot of reimports (think of a 10,000 photo database) and will blow away*/
-/* ALL transformations, as they are now suspect.*/
-/**/
-/* So: If the modification time is zero and filesize is the same, simply update the*/
-/* timestamp in the database and move on.*/
-/**/
-/* TODO: Although it seems highly unlikely that a file's timestamp could change but the file size*/
-/* has not and the file really be "changed", it *is* possible, even in the case of complex little*/
-/* animals like photo files. We could be more liberal and treat this case as a metadata-changed*/
-/* situation (since that's a likely case).*/
-/**/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <time.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_LIBRARY_MONITOR_POOL (library_monitor_pool_get_type ())
-#define LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool))
-#define LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass))
-#define IS_LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR_POOL))
-#define IS_LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR_POOL))
-#define LIBRARY_MONITOR_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass))
-
-typedef struct _LibraryMonitorPool LibraryMonitorPool;
-typedef struct _LibraryMonitorPoolClass LibraryMonitorPoolClass;
-typedef struct _LibraryMonitorPoolPrivate LibraryMonitorPoolPrivate;
-
-#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ())
-#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor))
-#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR))
-#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR))
-#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-
-typedef struct _DirectoryMonitor DirectoryMonitor;
-typedef struct _DirectoryMonitorClass DirectoryMonitorClass;
-
-#define TYPE_LIBRARY_MONITOR (library_monitor_get_type ())
-#define LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitor))
-#define LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR, LibraryMonitorClass))
-#define IS_LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR))
-#define IS_LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR))
-#define LIBRARY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitorClass))
-
-typedef struct _LibraryMonitor LibraryMonitor;
-typedef struct _LibraryMonitorClass LibraryMonitorClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _library_monitor_pool_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_pool_unref (var), NULL)))
-typedef struct _ParamSpecLibraryMonitorPool ParamSpecLibraryMonitorPool;
-enum {
- LIBRARY_MONITOR_POOL_MONITOR_INSTALLED_SIGNAL,
- LIBRARY_MONITOR_POOL_MONITOR_DESTROYED_SIGNAL,
- LIBRARY_MONITOR_POOL_NUM_SIGNALS
-};
-static guint library_monitor_pool_signals[LIBRARY_MONITOR_POOL_NUM_SIGNALS] = {0};
-typedef struct _DirectoryMonitorPrivate DirectoryMonitorPrivate;
-typedef struct _LibraryMonitorPrivate LibraryMonitorPrivate;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define TYPE_MEDIA_MONITOR (media_monitor_get_type ())
-#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor))
-#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR))
-#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR))
-#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-
-typedef struct _MediaMonitor MediaMonitor;
-typedef struct _MediaMonitorClass MediaMonitorClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_MONITORABLE (monitorable_get_type ())
-#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
-#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
-#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
-
-typedef struct _Monitorable Monitorable;
-typedef struct _MonitorableIface MonitorableIface;
-
-#define TYPE_BATCH_IMPORT (batch_import_get_type ())
-#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
-#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
-#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
-#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
-#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
-
-typedef struct _BatchImport BatchImport;
-typedef struct _BatchImportClass BatchImportClass;
-
-#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-typedef struct _BatchImportRollClass BatchImportRollClass;
-
-#define LIBRARY_MONITOR_TYPE_VERIFY_JOB (library_monitor_verify_job_get_type ())
-#define LIBRARY_MONITOR_VERIFY_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_MONITOR_TYPE_VERIFY_JOB, LibraryMonitorVerifyJob))
-#define LIBRARY_MONITOR_VERIFY_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_MONITOR_TYPE_VERIFY_JOB, LibraryMonitorVerifyJobClass))
-#define LIBRARY_MONITOR_IS_VERIFY_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_MONITOR_TYPE_VERIFY_JOB))
-#define LIBRARY_MONITOR_IS_VERIFY_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_MONITOR_TYPE_VERIFY_JOB))
-#define LIBRARY_MONITOR_VERIFY_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_MONITOR_TYPE_VERIFY_JOB, LibraryMonitorVerifyJobClass))
-
-typedef struct _LibraryMonitorVerifyJob LibraryMonitorVerifyJob;
-typedef struct _LibraryMonitorVerifyJobClass LibraryMonitorVerifyJobClass;
-enum {
- LIBRARY_MONITOR_0_PROPERTY,
- LIBRARY_MONITOR_NUM_PROPERTIES
-};
-static GParamSpec* library_monitor_properties[LIBRARY_MONITOR_NUM_PROPERTIES];
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define TYPE_TIMED_QUEUE (timed_queue_get_type ())
-#define TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TIMED_QUEUE, TimedQueue))
-#define TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TIMED_QUEUE, TimedQueueClass))
-#define IS_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TIMED_QUEUE))
-#define IS_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TIMED_QUEUE))
-#define TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TIMED_QUEUE, TimedQueueClass))
-
-typedef struct _TimedQueue TimedQueue;
-typedef struct _TimedQueueClass TimedQueueClass;
-
-#define TYPE_HASH_TIMED_QUEUE (hash_timed_queue_get_type ())
-#define HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueue))
-#define HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass))
-#define IS_HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HASH_TIMED_QUEUE))
-#define IS_HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HASH_TIMED_QUEUE))
-#define HASH_TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass))
-
-typedef struct _HashTimedQueue HashTimedQueue;
-typedef struct _HashTimedQueueClass HashTimedQueueClass;
-#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
-#define _batch_import_roll_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_roll_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define MEDIA_MONITOR_TYPE_DISCOVERED_FILE (media_monitor_discovered_file_get_type ())
-
-#define TYPE_TOMBSTONE_SOURCE_COLLECTION (tombstone_source_collection_get_type ())
-#define TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection))
-#define TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass))
-#define IS_TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION))
-#define IS_TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION))
-#define TOMBSTONE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass))
-
-typedef struct _TombstoneSourceCollection TombstoneSourceCollection;
-typedef struct _TombstoneSourceCollectionClass TombstoneSourceCollectionClass;
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB (library_monitor_find_move_job_get_type ())
-#define LIBRARY_MONITOR_FIND_MOVE_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJob))
-#define LIBRARY_MONITOR_FIND_MOVE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJobClass))
-#define LIBRARY_MONITOR_IS_FIND_MOVE_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB))
-#define LIBRARY_MONITOR_IS_FIND_MOVE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB))
-#define LIBRARY_MONITOR_FIND_MOVE_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJobClass))
-
-typedef struct _LibraryMonitorFindMoveJob LibraryMonitorFindMoveJob;
-typedef struct _LibraryMonitorFindMoveJobClass LibraryMonitorFindMoveJobClass;
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-typedef struct _LibraryMonitorAsyncDiscoveryCompletedData LibraryMonitorAsyncDiscoveryCompletedData;
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _LibraryMonitorFindMoveJobPrivate LibraryMonitorFindMoveJobPrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ())
-#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank))
-#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-
-typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank;
-typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass;
-
-#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ())
-#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank))
-#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-
-typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank;
-typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass;
-#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL)))
-#define _library_monitor_verify_job_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_verify_job_unref (var), NULL)))
-typedef struct _LibraryMonitorVerifyJobPrivate LibraryMonitorVerifyJobPrivate;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _LibraryMonitorVerifyMonitorableData LibraryMonitorVerifyMonitorableData;
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-
-#define TYPE_FILE_IMPORT_JOB (file_import_job_get_type ())
-#define FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_IMPORT_JOB, FileImportJob))
-#define FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_IMPORT_JOB, FileImportJobClass))
-#define IS_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_IMPORT_JOB))
-#define IS_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_IMPORT_JOB))
-#define FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_IMPORT_JOB, FileImportJobClass))
-
-typedef struct _FileImportJob FileImportJob;
-typedef struct _FileImportJobClass FileImportJobClass;
-#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
-
-#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ())
-#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
-#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
-#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
-#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-
-typedef struct _ImportManifest ImportManifest;
-typedef struct _ImportManifestClass ImportManifestClass;
-typedef struct _ImportManifestPrivate ImportManifestPrivate;
-
-#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ())
-#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult))
-#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT))
-#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT))
-#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-
-typedef struct _BatchImportResult BatchImportResult;
-typedef struct _BatchImportResultClass BatchImportResultClass;
-typedef struct _BatchImportResultPrivate BatchImportResultPrivate;
-
-#define TYPE_IMPORT_RESULT (import_result_get_type ())
-
-#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ())
-#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile))
-#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE))
-#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE))
-#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-
-typedef struct _DuplicatedFile DuplicatedFile;
-typedef struct _DuplicatedFileClass DuplicatedFileClass;
-#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL)))
-
-#define TYPE_TOMBSTONED_FILE (tombstoned_file_get_type ())
-#define TOMBSTONED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONED_FILE, TombstonedFile))
-#define TOMBSTONED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONED_FILE, TombstonedFileClass))
-#define IS_TOMBSTONED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONED_FILE))
-#define IS_TOMBSTONED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONED_FILE))
-#define TOMBSTONED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONED_FILE, TombstonedFileClass))
-
-typedef struct _TombstonedFile TombstonedFile;
-typedef struct _TombstonedFileClass TombstonedFileClass;
-#define _tombstoned_file_unref0(var) ((var == NULL) ? NULL : (var = (tombstoned_file_unref (var), NULL)))
-
-#define TOMBSTONE_TYPE_REASON (tombstone_reason_get_type ())
-
-#define LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB (library_monitor_runtime_find_move_job_get_type ())
-#define LIBRARY_MONITOR_RUNTIME_FIND_MOVE_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJob))
-#define LIBRARY_MONITOR_RUNTIME_FIND_MOVE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJobClass))
-#define LIBRARY_MONITOR_IS_RUNTIME_FIND_MOVE_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB))
-#define LIBRARY_MONITOR_IS_RUNTIME_FIND_MOVE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB))
-#define LIBRARY_MONITOR_RUNTIME_FIND_MOVE_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJobClass))
-
-typedef struct _LibraryMonitorRuntimeFindMoveJob LibraryMonitorRuntimeFindMoveJob;
-typedef struct _LibraryMonitorRuntimeFindMoveJobClass LibraryMonitorRuntimeFindMoveJobClass;
-typedef struct _LibraryMonitorRuntimeFindMoveJobPrivate LibraryMonitorRuntimeFindMoveJobPrivate;
-
-#define TYPE_TOMBSTONE (tombstone_get_type ())
-#define TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE, Tombstone))
-#define TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE, TombstoneClass))
-#define IS_TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE))
-#define IS_TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE))
-#define TOMBSTONE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE, TombstoneClass))
-
-typedef struct _Tombstone Tombstone;
-typedef struct _TombstoneClass TombstoneClass;
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-typedef struct _LibraryMonitorParamSpecVerifyJob LibraryMonitorParamSpecVerifyJob;
-enum {
- LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL,
- LIBRARY_MONITOR_AUTO_IMPORT_PREPARING_SIGNAL,
- LIBRARY_MONITOR_AUTO_IMPORT_PROGRESS_SIGNAL,
- LIBRARY_MONITOR_NUM_SIGNALS
-};
-static guint library_monitor_signals[LIBRARY_MONITOR_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _LibraryMonitorPool {
- GTypeInstance parent_instance;
- volatile int ref_count;
- LibraryMonitorPoolPrivate * priv;
-};
-
-struct _LibraryMonitorPoolClass {
- GTypeClass parent_class;
- void (*finalize) (LibraryMonitorPool *self);
-};
-
-struct _LibraryMonitorPoolPrivate {
- LibraryMonitor* monitor;
- guint timer_id;
-};
-
-struct _ParamSpecLibraryMonitorPool {
- GParamSpec parent_instance;
-};
-
-struct _DirectoryMonitor {
- GObject parent_instance;
- DirectoryMonitorPrivate * priv;
-};
-
-struct _DirectoryMonitorClass {
- GObjectClass parent_class;
- void (*notify_root_deleted) (DirectoryMonitor* self, GFile* root);
- void (*notify_root_moved) (DirectoryMonitor* self, GFile* old_root, GFile* new_root, GFileInfo* new_root_info);
- void (*notify_discovery_started) (DirectoryMonitor* self);
- void (*internal_notify_file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*notify_file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*internal_notify_directory_discovered) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*notify_directory_discovered) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*notify_discovery_failed) (DirectoryMonitor* self, const gchar* reason);
- void (*notify_discovery_completed) (DirectoryMonitor* self);
- void (*notify_file_created) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*notify_file_moved) (DirectoryMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info);
- void (*notify_file_altered) (DirectoryMonitor* self, GFile* file);
- void (*notify_file_alteration_completed) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*notify_file_attributes_altered) (DirectoryMonitor* self, GFile* file);
- void (*notify_file_deleted) (DirectoryMonitor* self, GFile* file);
- void (*notify_directory_created) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*notify_directory_moved) (DirectoryMonitor* self, GFile* old_dir, GFile* new_dir, GFileInfo* new_dir_info);
- void (*notify_directory_altered) (DirectoryMonitor* self, GFile* dir);
- void (*notify_directory_alteration_completed) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*notify_directory_attributes_altered) (DirectoryMonitor* self, GFile* dir);
- void (*notify_directory_deleted) (DirectoryMonitor* self, GFile* dir);
- void (*notify_closed) (DirectoryMonitor* self);
- void (*close) (DirectoryMonitor* self);
- void (*root_moved) (DirectoryMonitor* self, GFile* old_root, GFile* new_root, GFileInfo* new_root_info);
- void (*root_deleted) (DirectoryMonitor* self, GFile* root);
- void (*discovery_started) (DirectoryMonitor* self);
- void (*file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*directory_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*discovery_failed) (DirectoryMonitor* self, const gchar* reason);
- void (*discovery_completed) (DirectoryMonitor* self);
- void (*file_created) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*file_moved) (DirectoryMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info);
- void (*file_altered) (DirectoryMonitor* self, GFile* file);
- void (*file_alteration_completed) (DirectoryMonitor* self, GFile* file, GFileInfo* info);
- void (*file_attributes_altered) (DirectoryMonitor* self, GFile* file);
- void (*file_deleted) (DirectoryMonitor* self, GFile* file);
- void (*directory_created) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*directory_moved) (DirectoryMonitor* self, GFile* old_dir, GFile* new_dir, GFileInfo* new_dir_info);
- void (*directory_altered) (DirectoryMonitor* self, GFile* dir);
- void (*directory_alteration_completed) (DirectoryMonitor* self, GFile* dir, GFileInfo* info);
- void (*directory_attributes_altered) (DirectoryMonitor* self, GFile* dir);
- void (*directory_deleted) (DirectoryMonitor* self, GFile* dir);
- void (*closed) (DirectoryMonitor* self);
-};
-
-struct _LibraryMonitor {
- DirectoryMonitor parent_instance;
- LibraryMonitorPrivate * priv;
-};
-
-struct _LibraryMonitorClass {
- DirectoryMonitorClass parent_class;
-};
-
-struct _MonitorableIface {
- GTypeInterface parent_iface;
- gboolean (*is_offline) (Monitorable* self);
- void (*mark_online) (Monitorable* self);
- void (*mark_offline) (Monitorable* self);
- void (*set_master_file) (Monitorable* self, GFile* file);
- void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
-};
-
-struct _LibraryMonitorPrivate {
- Workers* workers;
- GCancellable* cancellable;
- gboolean auto_import;
- GeeHashSet* unknown_files;
- GeeList* monitors;
- GeeHashMap* discovered;
- GeeHashSet* import_queue;
- GeeHashSet* pending_imports;
- GeeArrayList* batch_import_queue;
- BatchImportRoll* current_import_roll;
- time_t last_import_roll_use;
- BatchImport* current_batch_import;
- gint checksums_completed;
- gint checksums_total;
- guint import_queue_timer_id;
- GeeQueue* verify_queue;
- gint outstanding_verify_jobs;
- gint completed_monitorable_verifies;
- gint total_monitorable_verifies;
-};
-
-typedef void (*DequeuedCallback) (gconstpointer item, void* user_data);
-typedef enum {
- MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED,
- MEDIA_MONITOR_DISCOVERED_FILE_IGNORE,
- MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN
-} MediaMonitorDiscoveredFile;
-
-struct _LibraryMonitorAsyncDiscoveryCompletedData {
- int _state_;
- GObject* _source_object_;
- GAsyncResult* _res_;
- GTask* _async_result;
- GAsyncReadyCallback _callback_;
- gboolean _task_complete_;
- LibraryMonitor* self;
- GeeHashSet* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GeeArrayList* all_candidates;
- GeeArrayList* _tmp3_;
- GeeArrayList* adopted;
- GeeArrayList* _tmp4_;
- GeeIterator* _file_it;
- GeeHashSet* _tmp5_;
- GeeIterator* _tmp6_;
- GeeIterator* _tmp7_;
- GFile* file;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- GFileInfo* info;
- GFile* _tmp10_;
- GFileInfo* _tmp11_;
- GFileInfo* _tmp12_;
- GeeArrayList* _tmp13_;
- GeeCollection* candidates;
- gboolean associated;
- GeeList* _monitor_list;
- GeeList* _tmp14_;
- GeeList* _tmp15_;
- gint _monitor_size;
- GeeList* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- gint _monitor_index;
- gint _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- MediaMonitor* monitor;
- GeeList* _tmp22_;
- gint _tmp23_;
- gpointer _tmp24_;
- MediaMonitorDiscoveredFile _result_;
- MediaMonitor* _tmp25_;
- GFile* _tmp26_;
- GFileInfo* _tmp27_;
- MediaMonitorDiscoveredFile _tmp28_;
- GeeCollection* _tmp29_;
- gboolean _tmp30_;
- MediaMonitorDiscoveredFile _tmp31_;
- MediaMonitorDiscoveredFile _tmp32_;
- GeeCollection* _tmp33_;
- GeeArrayList* _tmp34_;
- GeeCollection* _tmp35_;
- gboolean _tmp36_;
- GeeArrayList* _tmp37_;
- GFile* _tmp38_;
- GeeArrayList* _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- GeeArrayList* job_candidates;
- GeeArrayList* _tmp42_;
- GeeArrayList* _tmp43_;
- GeeArrayList* _tmp44_;
- gint _tmp45_;
- Workers* _tmp46_;
- GFile* _tmp47_;
- GeeArrayList* _tmp48_;
- LibraryMonitorFindMoveJob* _tmp49_;
- LibraryMonitorFindMoveJob* _tmp50_;
- GeeHashSet* _tmp51_;
- GeeArrayList* _tmp52_;
- gint _tmp53_;
- gint _tmp54_;
- gchar* _tmp55_;
- gchar* _tmp56_;
- gint _tmp57_;
- gint _tmp58_;
-};
-
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _LibraryMonitorFindMoveJob {
- BackgroundJob parent_instance;
- LibraryMonitorFindMoveJobPrivate * priv;
- GFile* file;
- GeeCollection* candidates;
- Monitorable* match;
- GeeArrayList* losers;
- GError* err;
-};
-
-struct _LibraryMonitorFindMoveJobClass {
- BackgroundJobClass parent_class;
-};
-
-struct _LibraryMonitorVerifyJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- LibraryMonitorVerifyJobPrivate * priv;
- Monitorable* monitorable;
- MediaMonitor* monitor;
-};
-
-struct _LibraryMonitorVerifyJobClass {
- GTypeClass parent_class;
- void (*finalize) (LibraryMonitorVerifyJob *self);
-};
-
-struct _LibraryMonitorVerifyMonitorableData {
- int _state_;
- GObject* _source_object_;
- GAsyncResult* _res_;
- GTask* _async_result;
- GAsyncReadyCallback _callback_;
- gboolean _task_complete_;
- LibraryMonitor* self;
- Monitorable* monitorable;
- MediaMonitor* monitor;
- GFile** files;
- GFile** _tmp0_;
- gint files_length1;
- gint _files_size_;
- GFile** _tmp1_;
- gint _tmp1__length1;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile** aux_files;
- gint _tmp4_;
- GFile** _tmp5_;
- gint aux_files_length1;
- gint _aux_files_size_;
- GFile** _tmp6_;
- gint _tmp6__length1;
- GFile** _tmp7_;
- gint _tmp7__length1;
- GFile** aux_file_collection;
- gint aux_file_collection_length1;
- gint _aux_file_collection_size_;
- gint aux_file_it;
- GFile* _tmp8_;
- GFile* aux_file;
- GFile** _tmp9_;
- gint _tmp9__length1;
- GFile* _tmp10_;
- GFile* _tmp11_;
- gint ctr;
- gboolean _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- GFile** _tmp15_;
- gint _tmp15__length1;
- GFile* file;
- GFile** _tmp16_;
- gint _tmp16__length1;
- gint _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
- GFileInfo* info;
- GFile* _tmp20_;
- GFileInfo* _tmp21_;
- GFileInfo* _tmp22_;
- GFileInfo* _tmp23_;
- GFile* _tmp24_;
- GCancellable* _tmp25_;
- GFileInfo* _tmp26_;
- GFileInfo* _tmp27_;
- GError* err;
- gint _tmp28_;
- gboolean _tmp29_;
- GFileInfo* _tmp30_;
- gboolean _tmp31_;
- GFileInfo* _tmp32_;
- GFile* _tmp33_;
- GFileInfo* _tmp34_;
- gint _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- gint _tmp39_;
- GError * _inner_error_;
-};
-
-typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data);
-struct _ImportManifest {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ImportManifestPrivate * priv;
- GeeList* imported;
- GeeList* success;
- GeeList* camera_failed;
- GeeList* failed;
- GeeList* write_failed;
- GeeList* skipped_photos;
- GeeList* skipped_files;
- GeeList* aborted;
- GeeList* already_imported;
- GeeList* corrupt_files;
- GeeList* all;
- GTimer* timer;
-};
-
-struct _ImportManifestClass {
- GTypeClass parent_class;
- void (*finalize) (ImportManifest *self);
-};
-
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-struct _BatchImportResult {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportResultPrivate * priv;
- BatchImportJob* job;
- GFile* file;
- gchar* src_identifier;
- gchar* dest_identifier;
- ImportResult result;
- gchar* errmsg;
- DuplicatedFile* duplicate_of;
-};
-
-struct _BatchImportResultClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportResult *self);
-};
-
-typedef enum {
- TOMBSTONE_REASON_REMOVED_BY_USER = 0,
- TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE = 1
-} TombstoneReason;
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _LibraryMonitorRuntimeFindMoveJob {
- BackgroundJob parent_instance;
- LibraryMonitorRuntimeFindMoveJobPrivate * priv;
- GFile* file;
- GeeCollection* candidates;
- Monitorable* match;
- GError* err;
-};
-
-struct _LibraryMonitorRuntimeFindMoveJobClass {
- BackgroundJobClass parent_class;
-};
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-struct _LibraryMonitorParamSpecVerifyJob {
- GParamSpec parent_instance;
-};
-
-
-static gpointer library_monitor_pool_parent_class = NULL;
-static LibraryMonitorPool* library_monitor_pool_instance;
-static LibraryMonitorPool* library_monitor_pool_instance = NULL;
-static gpointer library_monitor_parent_class = NULL;
-static GeeHashSet* library_monitor_blacklist;
-static GRecMutex __lock_library_monitor_blacklist = {0};
-static GeeHashSet* library_monitor_blacklist = NULL;
-static HashTimedQueue* library_monitor_to_unblacklist;
-static HashTimedQueue* library_monitor_to_unblacklist = NULL;
-extern TombstoneSourceCollection* tombstone_global;
-extern gboolean commandline_options_no_runtime_monitoring;
-static gpointer library_monitor_find_move_job_parent_class = NULL;
-static gpointer library_monitor_runtime_find_move_job_parent_class = NULL;
-static gpointer library_monitor_verify_job_parent_class = NULL;
-
-gpointer library_monitor_pool_ref (gpointer instance);
-void library_monitor_pool_unref (gpointer instance);
-GParamSpec* param_spec_library_monitor_pool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_library_monitor_pool (GValue* value,
- gpointer v_object);
-void value_take_library_monitor_pool (GValue* value,
- gpointer v_object);
-gpointer value_get_library_monitor_pool (const GValue* value);
-GType library_monitor_pool_get_type (void) G_GNUC_CONST;
-GType directory_monitor_get_type (void) G_GNUC_CONST;
-GType library_monitor_get_type (void) G_GNUC_CONST;
-#define LIBRARY_MONITOR_POOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolPrivate))
-static LibraryMonitorPool* library_monitor_pool_new (void);
-static LibraryMonitorPool* library_monitor_pool_construct (GType object_type);
-void library_monitor_pool_init (void);
-void library_monitor_pool_terminate (void);
-static void library_monitor_pool_close (LibraryMonitorPool* self);
-LibraryMonitorPool* library_monitor_pool_get_instance (void);
-LibraryMonitor* library_monitor_pool_get_monitor (LibraryMonitorPool* self);
-void library_monitor_pool_replace (LibraryMonitorPool* self,
- LibraryMonitor* replacement,
- gint start_msec_delay);
-static gboolean library_monitor_pool_on_start_monitor (LibraryMonitorPool* self);
-static gboolean _library_monitor_pool_on_start_monitor_gsource_func (gpointer self);
-void directory_monitor_close (DirectoryMonitor* self);
-void directory_monitor_start_discovery (DirectoryMonitor* self);
-static void library_monitor_pool_finalize (LibraryMonitorPool * obj);
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-GType media_monitor_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType monitorable_get_type (void) G_GNUC_CONST;
-GType batch_import_get_type (void) G_GNUC_CONST;
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-static gpointer library_monitor_verify_job_ref (gpointer instance);
-static void library_monitor_verify_job_unref (gpointer instance);
-static GParamSpec* library_monitor_param_spec_verify_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void library_monitor_value_set_verify_job (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void library_monitor_value_take_verify_job (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer library_monitor_value_get_verify_job (const GValue* value) G_GNUC_UNUSED;
-static GType library_monitor_verify_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define LIBRARY_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_MONITOR, LibraryMonitorPrivate))
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-static void library_monitor_on_config_changed (LibraryMonitor* self);
-static void _library_monitor_on_config_changed_configuration_facade_auto_import_from_library_changed (ConfigurationFacade* _sender,
- gpointer self);
-guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean file_equal (GFile* a,
- GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-gpointer timed_queue_ref (gpointer instance);
-void timed_queue_unref (gpointer instance);
-GParamSpec* param_spec_timed_queue (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_timed_queue (GValue* value,
- gpointer v_object);
-void value_take_timed_queue (GValue* value,
- gpointer v_object);
-gpointer value_get_timed_queue (const GValue* value);
-GType timed_queue_get_type (void) G_GNUC_CONST;
-GType hash_timed_queue_get_type (void) G_GNUC_CONST;
-#define LIBRARY_MONITOR_MIN_BLACKLIST_DURATION_MSEC (5 * 1000)
-static void library_monitor_on_unblacklist_file (GFile* file);
-static void _library_monitor_on_unblacklist_file_dequeued_callback (gconstpointer item,
- gpointer self);
-HashTimedQueue* hash_timed_queue_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeHashDataFunc hash_func,
- void* hash_func_target,
- GDestroyNotify hash_func_target_destroy_notify,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority);
-HashTimedQueue* hash_timed_queue_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeHashDataFunc hash_func,
- void* hash_func_target,
- GDestroyNotify hash_func_target_destroy_notify,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority);
-guint workers_thread_per_cpu_minus_one (void);
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-#define LIBRARY_MONITOR_FLUSH_IMPORT_QUEUE_SEC 3
-#define LIBRARY_MONITOR_IMPORT_ROLL_QUIET_SEC (5 * 60)
-#define LIBRARY_MONITOR_MAX_VERIFY_EXISTING_MEDIA_JOBS 5
-LibraryMonitor* library_monitor_new (GFile* root,
- gboolean recurse,
- gboolean monitoring);
-LibraryMonitor* library_monitor_construct (GType object_type,
- GFile* root,
- gboolean recurse,
- gboolean monitoring);
-DirectoryMonitor* directory_monitor_new (GFile* root,
- gboolean recurse,
- gboolean monitoring);
-DirectoryMonitor* directory_monitor_construct (GType object_type,
- GFile* root,
- gboolean recurse,
- gboolean monitoring);
-gboolean configuration_facade_get_auto_import_from_library (ConfigurationFacade* self);
-static gboolean library_monitor_on_flush_import_queue (LibraryMonitor* self);
-static gboolean _library_monitor_on_flush_import_queue_gsource_func (gpointer self);
-static void library_monitor_real_close (DirectoryMonitor* base);
-void media_monitor_close (MediaMonitor* self);
-static void library_monitor_add_to_discovered_list (LibraryMonitor* self,
- MediaMonitor* monitor,
- Monitorable* monitorable);
-static MediaMonitor* library_monitor_get_monitor_for_monitorable (LibraryMonitor* self,
- Monitorable* monitorable);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-MediaSourceCollection* media_monitor_get_media_source_collection (MediaMonitor* self);
-gboolean source_collection_holds_type_of_source (SourceCollection* self,
- DataSource* source);
-gchar* data_object_to_string (DataObject* self);
-static void library_monitor_real_discovery_started (DirectoryMonitor* base);
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-MediaMonitor* media_source_collection_create_media_monitor (MediaSourceCollection* self,
- Workers* workers,
- GCancellable* cancellable);
-void media_monitor_notify_discovery_started (MediaMonitor* self);
-static void library_monitor_real_file_discovered (DirectoryMonitor* base,
- GFile* file,
- GFileInfo* info);
-GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST;
-MediaMonitorDiscoveredFile media_monitor_notify_file_discovered (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable);
-GType tombstone_source_collection_get_type (void) G_GNUC_CONST;
-gboolean tombstone_source_collection_matches (TombstoneSourceCollection* self,
- GFile* file);
-static gboolean library_monitor_is_supported_filetype (LibraryMonitor* self,
- GFile* file);
-static void library_monitor_real_discovery_completed (DirectoryMonitor* base);
-static void library_monitor_async_discovery_completed (LibraryMonitor* self,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_);
-static void library_monitor_async_discovery_completed_finish (LibraryMonitor* self,
- GAsyncResult* _res_);
-static void library_monitor_async_discovery_completed_data_free (gpointer _data);
-static void library_monitor_async_discovery_completed_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data);
-static gboolean library_monitor_async_discovery_completed_co (LibraryMonitorAsyncDiscoveryCompletedData* _data_);
-static void library_monitor_discovery_stage_completed (LibraryMonitor* self);
-GFileInfo* directory_monitor_get_file_info (DirectoryMonitor* self,
- GFile* file);
-GeeCollection* media_monitor_candidates_for_unknown_file (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_);
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-static LibraryMonitorFindMoveJob* library_monitor_find_move_job_new (LibraryMonitor* owner,
- GFile* file,
- GeeCollection* candidates);
-static LibraryMonitorFindMoveJob* library_monitor_find_move_job_construct (GType object_type,
- LibraryMonitor* owner,
- GFile* file,
- GeeCollection* candidates);
-static GType library_monitor_find_move_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static gboolean _library_monitor_async_discovery_completed_co_gsource_func (gpointer self);
-void directory_monitor_mdbg (const gchar* msg);
-static void library_monitor_report_checksum_job_completed (LibraryMonitor* self);
-static void library_monitor_on_find_move_completed (LibraryMonitor* self,
- BackgroundJob* j);
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-void media_monitor_update_master_file (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file);
-static void library_monitor_on_find_move_cancelled (LibraryMonitor* self,
- BackgroundJob* j);
-static void library_monitor_enqueue_verify_monitorable (LibraryMonitor* self,
- Monitorable* monitorable,
- MediaMonitor* monitor);
-GeeCollection* data_collection_get_all (DataCollection* self);
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType database_source_holding_tank_get_type (void) G_GNUC_CONST;
-GType media_source_holding_tank_get_type (void) G_GNUC_CONST;
-MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self);
-GeeCollection* source_holding_tank_get_all (SourceHoldingTank* self);
-static void library_monitor_enqueue_import_many (LibraryMonitor* self,
- GeeCollection* files);
-void tombstone_source_collection_launch_scan (TombstoneSourceCollection* self,
- DirectoryMonitor* monitor,
- GCancellable* cancellable);
-static LibraryMonitorVerifyJob* library_monitor_verify_job_new (Monitorable* monitorable,
- MediaMonitor* monitor);
-static LibraryMonitorVerifyJob* library_monitor_verify_job_construct (GType object_type,
- Monitorable* monitorable,
- MediaMonitor* monitor);
-static void library_monitor_execute_next_verify_job (LibraryMonitor* self);
-static void library_monitor_verify_monitorable (LibraryMonitor* self,
- Monitorable* monitorable,
- MediaMonitor* monitor,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_);
-static void library_monitor_verify_monitorable_finish (LibraryMonitor* self,
- GAsyncResult* _res_);
-static void library_monitor_verify_monitorable_data_free (gpointer _data);
-static void library_monitor_verify_monitorable_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data);
-static gboolean library_monitor_verify_monitorable_co (LibraryMonitorVerifyMonitorableData* _data_);
-GFile* media_monitor_get_master_file (MediaMonitor* self,
- Monitorable* monitorable);
-GFile** media_monitor_get_auxilliary_backing_files (MediaMonitor* self,
- Monitorable* monitorable,
- int* result_length1);
-static void _vala_array_add130 (GFile** * array,
- int* length,
- int* size,
- GFile* value);
-#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value"
-#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES
-#define DIRECTORY_MONITOR_FILE_INFO_FLAGS G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS
-#define DIRECTORY_MONITOR_DEFAULT_PRIORITY G_PRIORITY_LOW
-static void library_monitor_verify_monitorable_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_);
-gboolean media_monitor_is_offline (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_update_online (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_update_offline (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_update_backing_file_info (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file,
- GFileInfo* info);
-static gboolean _library_monitor_verify_monitorable_co_gsource_func (gpointer self);
-static void library_monitor_import_unrepresented_files (LibraryMonitor* self);
-static void library_monitor_cancel_batch_imports (LibraryMonitor* self);
-static void library_monitor_enqueue_import (LibraryMonitor* self,
- GFile* file);
-gboolean library_monitor_is_blacklisted (GFile* file);
-static void library_monitor_remove_queued_import (LibraryMonitor* self,
- GFile* file);
-gulong now_sec (void);
-BatchImportRoll* batch_import_roll_new (void);
-BatchImportRoll* batch_import_roll_construct (GType object_type);
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-FileImportJob* file_import_job_new (GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse);
-FileImportJob* file_import_job_construct (GType object_type,
- GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse);
-GType file_import_job_get_type (void) G_GNUC_CONST;
-gpointer import_manifest_ref (gpointer instance);
-void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_import_manifest (GValue* value,
- gpointer v_object);
-void value_take_import_manifest (GValue* value,
- gpointer v_object);
-gpointer value_get_import_manifest (const GValue* value);
-GType import_manifest_get_type (void) G_GNUC_CONST;
-BatchImport* batch_import_new (GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-BatchImport* batch_import_construct (GType object_type,
- GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-void batch_import_set_untrash_duplicates (BatchImport* self,
- gboolean untrash_duplicates);
-void batch_import_set_mark_duplicates_online (BatchImport* self,
- gboolean mark_duplicates_online);
-static void library_monitor_schedule_next_batch_import (LibraryMonitor* self);
-static void library_monitor_on_import_preparing (LibraryMonitor* self);
-static void _library_monitor_on_import_preparing_batch_import_preparing (BatchImport* _sender,
- gpointer self);
-static void library_monitor_on_import_progress (LibraryMonitor* self,
- guint64 completed_bytes,
- guint64 total_bytes);
-static void _library_monitor_on_import_progress_batch_import_progress (BatchImport* _sender,
- guint64 completed_bytes,
- guint64 total_bytes,
- gpointer self);
-static void library_monitor_on_import_complete (LibraryMonitor* self,
- BatchImport* batch_import,
- ImportManifest* manifest,
- BatchImportRoll* import_roll);
-static void _library_monitor_on_import_complete_batch_import_import_complete (BatchImport* _sender,
- ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self);
-void batch_import_schedule (BatchImport* self);
-static void library_monitor_discard_current_batch_import (LibraryMonitor* self);
-void batch_import_user_halt (BatchImport* self);
-gpointer batch_import_result_ref (gpointer instance);
-void batch_import_result_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_result (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_result (GValue* value,
- gpointer v_object);
-void value_take_batch_import_result (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_result (const GValue* value);
-GType batch_import_result_get_type (void) G_GNUC_CONST;
-GType import_result_get_type (void) G_GNUC_CONST;
-GType duplicated_file_get_type (void) G_GNUC_CONST;
-gpointer tombstoned_file_ref (gpointer instance);
-void tombstoned_file_unref (gpointer instance);
-GParamSpec* param_spec_tombstoned_file (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_tombstoned_file (GValue* value,
- gpointer v_object);
-void value_take_tombstoned_file (GValue* value,
- gpointer v_object);
-gpointer value_get_tombstoned_file (const GValue* value);
-GType tombstoned_file_get_type (void) G_GNUC_CONST;
-TombstonedFile* tombstoned_file_new (GFile* file,
- gint64 filesize,
- const gchar* md5);
-TombstonedFile* tombstoned_file_construct (GType object_type,
- GFile* file,
- gint64 filesize,
- const gchar* md5);
-GType tombstone_reason_get_type (void) G_GNUC_CONST;
-GQuark database_error_quark (void);
-void tombstone_entomb_many_files (GeeCollection* files,
- TombstoneReason reason,
- GError** error);
-void app_window_database_error (GError* err);
-void library_monitor_blacklist_file (GFile* file,
- const gchar* reason);
-void library_monitor_unblacklist_file (GFile* file);
-gboolean timed_queue_contains (TimedQueue* self,
- gconstpointer item);
-gboolean timed_queue_enqueue (TimedQueue* self,
- gconstpointer item);
-MediaSourceCollection* media_collection_registry_get_collection_for_file (MediaCollectionRegistry* self,
- GFile* file);
-GeeCollection* directory_monitor_get_files (DirectoryMonitor* self);
-gboolean media_monitor_is_file_represented (MediaMonitor* self,
- GFile* file);
-static void library_monitor_runtime_unknown_file_discovered (LibraryMonitor* self,
- GFile* file);
-static void library_monitor_real_notify_file_created (DirectoryMonitor* base,
- GFile* file,
- GFileInfo* info);
-void directory_monitor_notify_file_created (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-gboolean media_monitor_notify_file_created (MediaMonitor* self,
- GFile* file,
- GFileInfo* info);
-gchar* media_monitor_to_string (MediaMonitor* self);
-const gchar* media_monitor_discovered_file_to_string (MediaMonitorDiscoveredFile self);
-static LibraryMonitorRuntimeFindMoveJob* library_monitor_runtime_find_move_job_new (LibraryMonitor* owner,
- GFile* file,
- GeeCollection* candidates);
-static LibraryMonitorRuntimeFindMoveJob* library_monitor_runtime_find_move_job_construct (GType object_type,
- LibraryMonitor* owner,
- GFile* file,
- GeeCollection* candidates);
-static GType library_monitor_runtime_find_move_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static void library_monitor_on_runtime_find_move_completed (LibraryMonitor* self,
- BackgroundJob* j);
-static void library_monitor_real_notify_file_moved (DirectoryMonitor* base,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_info);
-void directory_monitor_notify_file_moved (DirectoryMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-gboolean media_monitor_notify_file_moved (MediaMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-static void library_monitor_real_notify_file_altered (DirectoryMonitor* base,
- GFile* file);
-void directory_monitor_notify_file_altered (DirectoryMonitor* self,
- GFile* file);
-gboolean media_monitor_notify_file_altered (MediaMonitor* self,
- GFile* file);
-static void library_monitor_real_notify_file_attributes_altered (DirectoryMonitor* base,
- GFile* file);
-void directory_monitor_notify_file_attributes_altered (DirectoryMonitor* self,
- GFile* file);
-gboolean media_monitor_notify_file_attributes_altered (MediaMonitor* self,
- GFile* file);
-static void library_monitor_real_notify_file_alteration_completed (DirectoryMonitor* base,
- GFile* file,
- GFileInfo* info);
-void directory_monitor_notify_file_alteration_completed (DirectoryMonitor* self,
- GFile* file,
- GFileInfo* info);
-gboolean media_monitor_notify_file_alteration_completed (MediaMonitor* self,
- GFile* file,
- GFileInfo* info);
-static void library_monitor_real_notify_file_deleted (DirectoryMonitor* base,
- GFile* file);
-void directory_monitor_notify_file_deleted (DirectoryMonitor* self,
- GFile* file);
-gboolean media_monitor_notify_file_deleted (MediaMonitor* self,
- GFile* file);
-GType tombstone_get_type (void) G_GNUC_CONST;
-Tombstone* tombstone_source_collection_locate (TombstoneSourceCollection* self,
- GFile* file);
-void tombstone_source_collection_resurrect (TombstoneSourceCollection* self,
- Tombstone* tombstone);
-static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void _library_monitor_on_find_move_completed_completion_callback (BackgroundJob* job,
- gpointer self);
-static void _library_monitor_on_find_move_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-void background_job_set_completion_priority (BackgroundJob* self,
- gint priority);
-static void library_monitor_find_move_job_real_execute (BackgroundJob* base);
-GFile* media_source_get_master_file (MediaSource* self);
-gchar* md5_file (GFile* file,
- GError** error);
-gchar* media_source_get_master_md5 (MediaSource* self);
-static void library_monitor_find_move_job_finalize (BackgroundJob * obj);
-static void _library_monitor_on_runtime_find_move_completed_completion_callback (BackgroundJob* job,
- gpointer self);
-static void library_monitor_runtime_find_move_job_real_execute (BackgroundJob* base);
-static void library_monitor_runtime_find_move_job_finalize (BackgroundJob * obj);
-static void library_monitor_verify_job_finalize (LibraryMonitorVerifyJob * obj);
-static void library_monitor_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 LibraryMonitorPool*
-library_monitor_pool_construct (GType object_type)
-{
- LibraryMonitorPool* self = NULL;
-#line 38 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = (LibraryMonitorPool*) g_type_create_instance (object_type);
-#line 38 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self;
-#line 1520 "LibraryMonitor.c"
-}
-
-
-static LibraryMonitorPool*
-library_monitor_pool_new (void)
-{
-#line 38 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return library_monitor_pool_construct (TYPE_LIBRARY_MONITOR_POOL);
-#line 1529 "LibraryMonitor.c"
-}
-
-
-void
-library_monitor_pool_init (void)
-{
-}
-
-
-void
-library_monitor_pool_terminate (void)
-{
- LibraryMonitorPool* _tmp0_;
-#line 45 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = library_monitor_pool_instance;
-#line 45 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_ != NULL) {
-#line 1547 "LibraryMonitor.c"
- LibraryMonitorPool* _tmp1_;
-#line 46 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = library_monitor_pool_instance;
-#line 46 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_close (_tmp1_);
-#line 1553 "LibraryMonitor.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _library_monitor_pool_unref0 (library_monitor_pool_instance);
-#line 48 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_instance = NULL;
-#line 1559 "LibraryMonitor.c"
-}
-
-
-static gpointer
-_library_monitor_pool_ref0 (gpointer self)
-{
-#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self ? library_monitor_pool_ref (self) : NULL;
-#line 1568 "LibraryMonitor.c"
-}
-
-
-LibraryMonitorPool*
-library_monitor_pool_get_instance (void)
-{
- LibraryMonitorPool* result = NULL;
- LibraryMonitorPool* _tmp0_;
- LibraryMonitorPool* _tmp2_;
- LibraryMonitorPool* _tmp3_;
-#line 52 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = library_monitor_pool_instance;
-#line 52 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_ == NULL) {
-#line 1583 "LibraryMonitor.c"
- LibraryMonitorPool* _tmp1_;
-#line 53 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = library_monitor_pool_new ();
-#line 53 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _library_monitor_pool_unref0 (library_monitor_pool_instance);
-#line 53 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_instance = _tmp1_;
-#line 1591 "LibraryMonitor.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = library_monitor_pool_instance;
-#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _library_monitor_pool_ref0 (_tmp2_);
-#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = _tmp3_;
-#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 1601 "LibraryMonitor.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1610 "LibraryMonitor.c"
-}
-
-
-LibraryMonitor*
-library_monitor_pool_get_monitor (LibraryMonitorPool* self)
-{
- LibraryMonitor* result = NULL;
- LibraryMonitor* _tmp0_;
- LibraryMonitor* _tmp1_;
-#line 58 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_MONITOR_POOL (self), NULL);
-#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitor;
-#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = _tmp1_;
-#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 1630 "LibraryMonitor.c"
-}
-
-
-static gboolean
-_library_monitor_pool_on_start_monitor_gsource_func (gpointer self)
-{
- gboolean result;
- result = library_monitor_pool_on_start_monitor ((LibraryMonitorPool*) self);
-#line 68 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 1641 "LibraryMonitor.c"
-}
-
-
-void
-library_monitor_pool_replace (LibraryMonitorPool* self,
- LibraryMonitor* replacement,
- gint start_msec_delay)
-{
- LibraryMonitor* _tmp0_;
- gboolean _tmp1_ = FALSE;
- LibraryMonitor* _tmp3_;
-#line 63 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR_POOL (self));
-#line 63 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (replacement));
-#line 64 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_close (self);
-#line 66 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _g_object_ref0 (replacement);
-#line 66 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->monitor);
-#line 66 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->monitor = _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (start_msec_delay > 0) {
-#line 1667 "LibraryMonitor.c"
- guint _tmp2_;
-#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = self->priv->timer_id;
-#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _tmp2_ == ((guint) 0);
-#line 1673 "LibraryMonitor.c"
- } else {
-#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = FALSE;
-#line 1677 "LibraryMonitor.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp1_) {
-#line 68 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->timer_id = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) start_msec_delay, _library_monitor_pool_on_start_monitor_gsource_func, library_monitor_pool_ref (self), library_monitor_pool_unref);
-#line 1683 "LibraryMonitor.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = self->priv->monitor;
-#line 70 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_emit (self, library_monitor_pool_signals[LIBRARY_MONITOR_POOL_MONITOR_INSTALLED_SIGNAL], 0, _tmp3_);
-#line 1689 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_pool_close (LibraryMonitorPool* self)
-{
- LibraryMonitor* _tmp0_;
- LibraryMonitor* _tmp1_;
- LibraryMonitor* closed = NULL;
- LibraryMonitor* _tmp2_;
- LibraryMonitor* _tmp3_;
- LibraryMonitor* _tmp4_;
-#line 73 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR_POOL (self));
-#line 74 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitor;
-#line 74 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_ == NULL) {
-#line 75 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 1710 "LibraryMonitor.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->monitor;
-#line 77 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 78 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = self->priv->monitor;
-#line 78 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 78 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- closed = _tmp3_;
-#line 79 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->monitor);
-#line 79 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->monitor = NULL;
-#line 81 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = closed;
-#line 81 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_emit (self, library_monitor_pool_signals[LIBRARY_MONITOR_POOL_MONITOR_DESTROYED_SIGNAL], 0, _tmp4_);
-#line 73 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (closed);
-#line 1732 "LibraryMonitor.c"
-}
-
-
-static gboolean
-library_monitor_pool_on_start_monitor (LibraryMonitorPool* self)
-{
- gboolean result = FALSE;
- LibraryMonitor* _tmp0_;
- LibraryMonitor* _tmp1_;
-#line 84 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_MONITOR_POOL (self), FALSE);
-#line 86 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->timer_id = (guint) 0;
-#line 88 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitor;
-#line 88 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_ == NULL) {
-#line 89 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = FALSE;
-#line 89 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 1754 "LibraryMonitor.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->monitor;
-#line 91 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_start_discovery (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 93 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = FALSE;
-#line 93 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 1764 "LibraryMonitor.c"
-}
-
-
-static void
-value_library_monitor_pool_init (GValue* value)
-{
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 1773 "LibraryMonitor.c"
-}
-
-
-static void
-value_library_monitor_pool_free_value (GValue* value)
-{
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (value->data[0].v_pointer) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_unref (value->data[0].v_pointer);
-#line 1784 "LibraryMonitor.c"
- }
-}
-
-
-static void
-value_library_monitor_pool_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (src_value->data[0].v_pointer) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- dest_value->data[0].v_pointer = library_monitor_pool_ref (src_value->data[0].v_pointer);
-#line 1797 "LibraryMonitor.c"
- } else {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1801 "LibraryMonitor.c"
- }
-}
-
-
-static gpointer
-value_library_monitor_pool_peek_pointer (const GValue* value)
-{
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return value->data[0].v_pointer;
-#line 1811 "LibraryMonitor.c"
-}
-
-
-static gchar*
-value_library_monitor_pool_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (collect_values[0].v_pointer) {
-#line 1823 "LibraryMonitor.c"
- LibraryMonitorPool * object;
- object = collect_values[0].v_pointer;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1830 "LibraryMonitor.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.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 1834 "LibraryMonitor.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = library_monitor_pool_ref (object);
-#line 1838 "LibraryMonitor.c"
- } else {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 1842 "LibraryMonitor.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return NULL;
-#line 1846 "LibraryMonitor.c"
-}
-
-
-static gchar*
-value_library_monitor_pool_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- LibraryMonitorPool ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!object_p) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1862 "LibraryMonitor.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!value->data[0].v_pointer) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- *object_p = NULL;
-#line 1868 "LibraryMonitor.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- *object_p = value->data[0].v_pointer;
-#line 1872 "LibraryMonitor.c"
- } else {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- *object_p = library_monitor_pool_ref (value->data[0].v_pointer);
-#line 1876 "LibraryMonitor.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return NULL;
-#line 1880 "LibraryMonitor.c"
-}
-
-
-GParamSpec*
-param_spec_library_monitor_pool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecLibraryMonitorPool* spec;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_LIBRARY_MONITOR_POOL), NULL);
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return G_PARAM_SPEC (spec);
-#line 1900 "LibraryMonitor.c"
-}
-
-
-gpointer
-value_get_library_monitor_pool (const GValue* value)
-{
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_LIBRARY_MONITOR_POOL), NULL);
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return value->data[0].v_pointer;
-#line 1911 "LibraryMonitor.c"
-}
-
-
-void
-value_set_library_monitor_pool (GValue* value,
- gpointer v_object)
-{
- LibraryMonitorPool * old;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_LIBRARY_MONITOR_POOL));
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- old = value->data[0].v_pointer;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (v_object) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_LIBRARY_MONITOR_POOL));
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_ref (value->data[0].v_pointer);
-#line 1934 "LibraryMonitor.c"
- } else {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 1938 "LibraryMonitor.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (old) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_unref (old);
-#line 1944 "LibraryMonitor.c"
- }
-}
-
-
-void
-value_take_library_monitor_pool (GValue* value,
- gpointer v_object)
-{
- LibraryMonitorPool * old;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_LIBRARY_MONITOR_POOL));
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- old = value->data[0].v_pointer;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (v_object) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_LIBRARY_MONITOR_POOL));
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 1966 "LibraryMonitor.c"
- } else {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 1970 "LibraryMonitor.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (old) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_unref (old);
-#line 1976 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_pool_class_init (LibraryMonitorPoolClass * klass)
-{
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_parent_class = g_type_class_peek_parent (klass);
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((LibraryMonitorPoolClass *) klass)->finalize = library_monitor_pool_finalize;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_type_class_add_private (klass, sizeof (LibraryMonitorPoolPrivate));
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_signals[LIBRARY_MONITOR_POOL_MONITOR_INSTALLED_SIGNAL] = g_signal_new ("monitor-installed", TYPE_LIBRARY_MONITOR_POOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_LIBRARY_MONITOR);
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_pool_signals[LIBRARY_MONITOR_POOL_MONITOR_DESTROYED_SIGNAL] = g_signal_new ("monitor-destroyed", TYPE_LIBRARY_MONITOR_POOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_LIBRARY_MONITOR);
-#line 1994 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_pool_instance_init (LibraryMonitorPool * self)
-{
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv = LIBRARY_MONITOR_POOL_GET_PRIVATE (self);
-#line 31 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->monitor = NULL;
-#line 32 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->timer_id = (guint) 0;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->ref_count = 1;
-#line 2009 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_pool_finalize (LibraryMonitorPool * obj)
-{
- LibraryMonitorPool * self;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool);
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_handlers_destroy (self);
-#line 31 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->monitor);
-#line 2023 "LibraryMonitor.c"
-}
-
-
-GType
-library_monitor_pool_get_type (void)
-{
- static volatile gsize library_monitor_pool_type_id__volatile = 0;
- if (g_once_init_enter (&library_monitor_pool_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_library_monitor_pool_init, value_library_monitor_pool_free_value, value_library_monitor_pool_copy_value, value_library_monitor_pool_peek_pointer, "p", value_library_monitor_pool_collect_value, "p", value_library_monitor_pool_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorPoolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_pool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitorPool), 0, (GInstanceInitFunc) library_monitor_pool_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType library_monitor_pool_type_id;
- library_monitor_pool_type_id = g_type_register_fundamental (g_type_fundamental_next (), "LibraryMonitorPool", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&library_monitor_pool_type_id__volatile, library_monitor_pool_type_id);
- }
- return library_monitor_pool_type_id__volatile;
-}
-
-
-gpointer
-library_monitor_pool_ref (gpointer instance)
-{
- LibraryMonitorPool * self;
- self = instance;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return instance;
-#line 2052 "LibraryMonitor.c"
-}
-
-
-void
-library_monitor_pool_unref (gpointer instance)
-{
- LibraryMonitorPool * self;
- self = instance;
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- LIBRARY_MONITOR_POOL_GET_CLASS (self)->finalize (self);
-#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2067 "LibraryMonitor.c"
- }
-}
-
-
-static void
-_library_monitor_on_config_changed_configuration_facade_auto_import_from_library_changed (ConfigurationFacade* _sender,
- gpointer self)
-{
-#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_on_config_changed ((LibraryMonitor*) self);
-#line 2078 "LibraryMonitor.c"
-}
-
-
-static guint
-_file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = file_hash ((GFile*) v);
-#line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 2090 "LibraryMonitor.c"
-}
-
-
-static gboolean
-_file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = file_equal ((GFile*) a, (GFile*) b);
-#line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 2103 "LibraryMonitor.c"
-}
-
-
-static void
-_library_monitor_on_unblacklist_file_dequeued_callback (gconstpointer item,
- gpointer self)
-{
-#line 207 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_on_unblacklist_file ((GFile*) item);
-#line 2113 "LibraryMonitor.c"
-}
-
-
-static gboolean
-_library_monitor_on_flush_import_queue_gsource_func (gpointer self)
-{
- gboolean result;
- result = library_monitor_on_flush_import_queue ((LibraryMonitor*) self);
-#line 243 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 2124 "LibraryMonitor.c"
-}
-
-
-LibraryMonitor*
-library_monitor_construct (GType object_type,
- GFile* root,
- gboolean recurse,
- gboolean monitoring)
-{
- LibraryMonitor * self = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
-#line 236 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (root), NULL);
-#line 237 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = (LibraryMonitor*) directory_monitor_construct (object_type, root, recurse, monitoring);
-#line 240 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 240 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 240 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->auto_import = configuration_facade_get_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 240 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 241 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 241 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 241 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "auto-import-from-library-changed", (GCallback) _library_monitor_on_config_changed_configuration_facade_auto_import_from_library_changed, self, 0);
-#line 241 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp3_);
-#line 243 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->import_queue_timer_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) LIBRARY_MONITOR_FLUSH_IMPORT_QUEUE_SEC, _library_monitor_on_flush_import_queue_gsource_func, g_object_ref (self), g_object_unref);
-#line 236 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self;
-#line 2163 "LibraryMonitor.c"
-}
-
-
-LibraryMonitor*
-library_monitor_new (GFile* root,
- gboolean recurse,
- gboolean monitoring)
-{
-#line 236 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return library_monitor_construct (TYPE_LIBRARY_MONITOR, root, recurse, monitoring);
-#line 2174 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_close (DirectoryMonitor* base)
-{
- LibraryMonitor * self;
- GCancellable* _tmp0_;
- guint _tmp13_;
-#line 250 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 251 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->cancellable;
-#line 251 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_cancellable_cancel (_tmp0_);
-#line 2190 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp1_;
- GeeList* _tmp2_;
- gint _monitor_size = 0;
- GeeList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _monitor_index = 0;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->monitors;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp2_;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _monitor_list;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp5_;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 2218 "LibraryMonitor.c"
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
- MediaMonitor* _tmp12_;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp6_ + 1;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_index;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_size;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp7_ < _tmp8_)) {
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 2239 "LibraryMonitor.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_list;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = _monitor_index;
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = gee_list_get (_tmp9_, _tmp10_);
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp11_;
-#line 254 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = monitor;
-#line 254 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- media_monitor_close (_tmp12_);
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 2255 "LibraryMonitor.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 2259 "LibraryMonitor.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = self->priv->import_queue_timer_id;
-#line 256 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp13_ != ((guint) 0)) {
-#line 2265 "LibraryMonitor.c"
- guint _tmp14_;
-#line 257 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = self->priv->import_queue_timer_id;
-#line 257 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_source_remove (_tmp14_);
-#line 258 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->import_queue_timer_id = (guint) 0;
-#line 2273 "LibraryMonitor.c"
- }
-#line 261 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->close (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 2277 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_add_to_discovered_list (LibraryMonitor* self,
- MediaMonitor* monitor,
- Monitorable* monitorable)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp4_;
- gpointer _tmp5_;
- GeeSet* _tmp6_;
-#line 264 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 264 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (monitor));
-#line 264 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 265 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->discovered;
-#line 265 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitor)) {
-#line 2300 "LibraryMonitor.c"
- GeeHashMap* _tmp1_;
- GeeHashSet* _tmp2_;
- GeeHashSet* _tmp3_;
-#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->discovered;
-#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = gee_hash_set_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitor, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_SET, GeeSet));
-#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp3_);
-#line 2314 "LibraryMonitor.c"
- }
-#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = self->priv->discovered;
-#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitor);
-#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = (GeeSet*) _tmp5_;
-#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), monitorable);
-#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp6_);
-#line 2326 "LibraryMonitor.c"
-}
-
-
-static MediaMonitor*
-library_monitor_get_monitor_for_monitorable (LibraryMonitor* self,
- Monitorable* monitorable)
-{
- MediaMonitor* result = NULL;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 271 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_MONITOR (self), NULL);
-#line 271 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 2341 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _monitor_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _monitor_index = 0;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitors;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp1_;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _monitor_list;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp4_;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 2369 "LibraryMonitor.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- MediaMonitor* _tmp11_;
- MediaSourceCollection* _tmp12_;
- MediaSourceCollection* _tmp13_;
- gboolean _tmp14_;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _monitor_index;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp5_ + 1;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_size;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 2393 "LibraryMonitor.c"
- }
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_list;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_index;
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp10_;
-#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = monitor;
-#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = media_monitor_get_media_source_collection (_tmp11_);
-#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = _tmp12_;
-#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = source_collection_holds_type_of_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_DATA_SOURCE, DataSource));
-#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_collection_unref0 (_tmp13_);
-#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp14_) {
-#line 274 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = monitor;
-#line 274 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 274 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 2421 "LibraryMonitor.c"
- }
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 2425 "LibraryMonitor.c"
- }
-#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 2429 "LibraryMonitor.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_DATA_OBJECT, DataObject));
-#line 277 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = _tmp15_;
-#line 277 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_error ("LibraryMonitor.vala:277: Unable to locate MediaMonitor for %s", _tmp16_);
-#line 277 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp16_);
-#line 2439 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_discovery_started (DirectoryMonitor* base)
-{
- LibraryMonitor * self;
- GeeHashMap* _tmp27_;
- GeeHashSet* _tmp28_;
-#line 280 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 2451 "LibraryMonitor.c"
- {
- GeeIterator* _collection_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp3_);
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _collection_it = _tmp5_;
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 2480 "LibraryMonitor.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* collection = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- GeeList* _tmp9_;
- MediaSourceCollection* _tmp10_;
- Workers* _tmp11_;
- GCancellable* _tmp12_;
- MediaMonitor* _tmp13_;
- MediaMonitor* _tmp14_;
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _collection_it;
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 2497 "LibraryMonitor.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _collection_it;
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- collection = (MediaSourceCollection*) _tmp8_;
-#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = self->priv->monitors;
-#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = collection;
-#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = self->priv->workers;
-#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = self->priv->cancellable;
-#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = media_source_collection_create_media_monitor (_tmp10_, _tmp11_, _tmp12_);
-#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = _tmp13_;
-#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_);
-#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp14_);
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_collection_unref0 (collection);
-#line 2523 "LibraryMonitor.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_collection_it);
-#line 2527 "LibraryMonitor.c"
- }
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp15_;
- GeeList* _tmp16_;
- gint _monitor_size = 0;
- GeeList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- gint _monitor_index = 0;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = self->priv->monitors;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp16_;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = _monitor_list;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = _tmp18_;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp19_;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 2556 "LibraryMonitor.c"
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp23_;
- gint _tmp24_;
- gpointer _tmp25_;
- MediaMonitor* _tmp26_;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = _monitor_index;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp20_ + 1;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = _monitor_index;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = _monitor_size;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp21_ < _tmp22_)) {
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 2577 "LibraryMonitor.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = _monitor_list;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = _monitor_index;
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = gee_list_get (_tmp23_, _tmp24_);
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp25_;
-#line 285 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = monitor;
-#line 285 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- media_monitor_notify_discovery_started (_tmp26_);
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 2593 "LibraryMonitor.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 2597 "LibraryMonitor.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = gee_hash_map_new (TYPE_MEDIA_MONITOR, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 287 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->discovered);
-#line 287 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->discovered = _tmp27_;
-#line 288 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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"
- self->priv->unknown_files = _tmp28_;
-#line 290 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->discovery_started (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 2613 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_file_discovered (DirectoryMonitor* base,
- GFile* file,
- GFileInfo* info)
-{
- LibraryMonitor * self;
- Monitorable* representation = NULL;
- MediaMonitor* representing = NULL;
- gboolean ignore = FALSE;
- MediaMonitor* _tmp18_;
-#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 294 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- representation = NULL;
-#line 295 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- representing = NULL;
-#line 296 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ignore = FALSE;
-#line 2639 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _monitor_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _monitor_index = 0;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitors;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp1_;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _monitor_list;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp4_;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 2667 "LibraryMonitor.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- MediaMonitorDiscoveredFile _result_ = 0;
- MediaMonitor* _tmp11_;
- Monitorable* _tmp12_ = NULL;
- MediaMonitorDiscoveredFile _tmp13_;
- MediaMonitorDiscoveredFile _tmp14_;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _monitor_index;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp5_ + 1;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_size;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 2692 "LibraryMonitor.c"
- }
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_list;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_index;
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp10_;
-#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = monitor;
-#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = media_monitor_notify_file_discovered (_tmp11_, file, info, &_tmp12_);
-#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (representation);
-#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- representation = _tmp12_;
-#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_ = _tmp13_;
-#line 300 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = _result_;
-#line 300 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp14_ == MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED) {
-#line 2716 "LibraryMonitor.c"
- MediaMonitor* _tmp15_;
- MediaMonitor* _tmp16_;
-#line 301 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = monitor;
-#line 301 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 301 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (representing);
-#line 301 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- representing = _tmp16_;
-#line 303 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 303 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 2731 "LibraryMonitor.c"
- } else {
- MediaMonitorDiscoveredFile _tmp17_;
-#line 304 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = _result_;
-#line 304 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp17_ == MEDIA_MONITOR_DISCOVERED_FILE_IGNORE) {
-#line 306 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ignore = TRUE;
-#line 308 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 308 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 2744 "LibraryMonitor.c"
- }
- }
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 2749 "LibraryMonitor.c"
- }
-#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 2753 "LibraryMonitor.c"
- }
-#line 312 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = representing;
-#line 312 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp18_ != NULL) {
-#line 2759 "LibraryMonitor.c"
- gboolean _tmp19_ = FALSE;
- Monitorable* _tmp20_;
- MediaMonitor* _tmp22_;
- Monitorable* _tmp23_;
-#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = representation;
-#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp20_ != NULL) {
-#line 2768 "LibraryMonitor.c"
- gboolean _tmp21_;
-#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = ignore;
-#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = !_tmp21_;
-#line 2774 "LibraryMonitor.c"
- } else {
-#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = FALSE;
-#line 2778 "LibraryMonitor.c"
- }
-#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_assert (_tmp19_, "representation != null && !ignore");
-#line 314 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = representing;
-#line 314 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = representation;
-#line 314 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_add_to_discovered_list (self, _tmp22_, _tmp23_);
-#line 2788 "LibraryMonitor.c"
- } else {
- gboolean _tmp24_ = FALSE;
- gboolean _tmp25_ = FALSE;
- gboolean _tmp26_;
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = ignore;
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp26_) {
-#line 2797 "LibraryMonitor.c"
- TombstoneSourceCollection* _tmp27_;
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = tombstone_global;
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = !tombstone_source_collection_matches (_tmp27_, file);
-#line 2803 "LibraryMonitor.c"
- } else {
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = FALSE;
-#line 2807 "LibraryMonitor.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp25_) {
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = library_monitor_is_supported_filetype (self, file);
-#line 2813 "LibraryMonitor.c"
- } else {
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = FALSE;
-#line 2817 "LibraryMonitor.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp24_) {
-#line 2821 "LibraryMonitor.c"
- GeeHashSet* _tmp28_;
-#line 316 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = self->priv->unknown_files;
-#line 316 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file);
-#line 2827 "LibraryMonitor.c"
- }
- }
-#line 319 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->file_discovered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info);
-#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (representing);
-#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (representation);
-#line 2836 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_discovery_completed (DirectoryMonitor* base)
-{
- LibraryMonitor * self;
-#line 322 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 323 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_async_discovery_completed (self, NULL, NULL);
-#line 2848 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_async_discovery_completed_data_free (gpointer _data)
-{
- LibraryMonitorAsyncDiscoveryCompletedData* _data_;
- _data_ = _data;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->self);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_slice_free (LibraryMonitorAsyncDiscoveryCompletedData, _data_);
-#line 2861 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_async_discovery_completed_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data)
-{
- LibraryMonitorAsyncDiscoveryCompletedData* _task_data_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _task_data_ = g_task_get_task_data (G_TASK (res));
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_task_data_->_callback_ != NULL) {
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _task_data_->_callback_ (source_object, res, user_data);
-#line 2877 "LibraryMonitor.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _task_data_->_task_complete_ = TRUE;
-#line 2881 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_async_discovery_completed (LibraryMonitor* self,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_)
-{
- LibraryMonitorAsyncDiscoveryCompletedData* _data_;
- LibraryMonitor* _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_ = g_slice_new0 (LibraryMonitorAsyncDiscoveryCompletedData);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_callback_ = _callback_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_async_result = g_task_new (G_OBJECT (self), NULL, library_monitor_async_discovery_completed_async_ready_wrapper, _user_data_);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_callback_ == NULL) {
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 2902 "LibraryMonitor.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_task_set_task_data (_data_->_async_result, _data_, library_monitor_async_discovery_completed_data_free);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->self = _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_async_discovery_completed_co (_data_);
-#line 2912 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_async_discovery_completed_finish (LibraryMonitor* self,
- GAsyncResult* _res_)
-{
- LibraryMonitorAsyncDiscoveryCompletedData* _data_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 2923 "LibraryMonitor.c"
-}
-
-
-static gboolean
-_library_monitor_async_discovery_completed_co_gsource_func (gpointer self)
-{
- gboolean result;
- result = library_monitor_async_discovery_completed_co (self);
-#line 378 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 2934 "LibraryMonitor.c"
-}
-
-
-static gboolean
-library_monitor_async_discovery_completed_co (LibraryMonitorAsyncDiscoveryCompletedData* _data_)
-{
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- switch (_data_->_state_) {
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- case 0:
-#line 2945 "LibraryMonitor.c"
- goto _state_0;
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- case 1:
-#line 2949 "LibraryMonitor.c"
- goto _state_1;
- default:
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_assert_not_reached ();
-#line 2954 "LibraryMonitor.c"
- }
- _state_0:
-#line 331 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp0_ = _data_->self->priv->unknown_files;
-#line 331 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 331 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp2_ = _data_->_tmp1_;
-#line 331 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp2_ == 0) {
-#line 332 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_discovery_stage_completed (_data_->self);
-#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 2975 "LibraryMonitor.c"
- }
- }
-#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return FALSE;
-#line 2982 "LibraryMonitor.c"
- }
-#line 337 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp3_ = gee_array_list_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 337 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->all_candidates = _data_->_tmp3_;
-#line 338 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp4_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 2992 "LibraryMonitor.c"
- {
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp5_ = _data_->self->priv->unknown_files;
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp6_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_file_it = _data_->_tmp6_;
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp7_ = _data_->_file_it;
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_data_->_tmp7_)) {
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 3008 "LibraryMonitor.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp8_ = _data_->_file_it;
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp9_ = gee_iterator_get (_data_->_tmp8_);
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->file = (GFile*) _data_->_tmp9_;
-#line 340 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp10_ = _data_->file;
-#line 340 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp11_ = directory_monitor_get_file_info (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _data_->_tmp10_);
-#line 340 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->info = _data_->_tmp11_;
-#line 341 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp12_ = _data_->info;
-#line 341 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp12_ == NULL) {
-#line 342 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->info);
-#line 342 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->file);
-#line 342 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 3032 "LibraryMonitor.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp13_ = _data_->all_candidates;
-#line 345 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 347 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->candidates = NULL;
-#line 348 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->associated = FALSE;
-#line 3042 "LibraryMonitor.c"
- {
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp14_ = _data_->self->priv->monitors;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp15_ = _g_object_ref0 (_data_->_tmp14_);
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_monitor_list = _data_->_tmp15_;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp16_ = _data_->_monitor_list;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp18_ = _data_->_tmp17_;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_monitor_size = _data_->_tmp18_;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_monitor_index = -1;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp19_ = _data_->_monitor_index;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_monitor_index = _data_->_tmp19_ + 1;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp20_ = _data_->_monitor_index;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp21_ = _data_->_monitor_size;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_data_->_tmp20_ < _data_->_tmp21_)) {
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 3074 "LibraryMonitor.c"
- }
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp22_ = _data_->_monitor_list;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp23_ = _data_->_monitor_index;
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp24_ = gee_list_get (_data_->_tmp22_, _data_->_tmp23_);
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->monitor = (MediaMonitor*) _data_->_tmp24_;
-#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp25_ = _data_->monitor;
-#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp26_ = _data_->file;
-#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp27_ = _data_->info;
-#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp28_ = 0;
-#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp29_ = media_monitor_candidates_for_unknown_file (_data_->_tmp25_, _data_->_tmp26_, _data_->_tmp27_, &_data_->_tmp28_);
-#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_result_ = _data_->_tmp28_;
-#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->candidates);
-#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->candidates = _data_->_tmp29_;
-#line 352 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp31_ = _data_->_result_;
-#line 352 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp31_ == MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED) {
-#line 352 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp30_ = TRUE;
-#line 3106 "LibraryMonitor.c"
- } else {
-#line 353 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp32_ = _data_->_result_;
-#line 353 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp30_ = _data_->_tmp32_ == MEDIA_MONITOR_DISCOVERED_FILE_IGNORE;
-#line 3112 "LibraryMonitor.c"
- }
-#line 352 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp30_) {
-#line 354 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->associated = TRUE;
-#line 356 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->monitor);
-#line 356 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 3122 "LibraryMonitor.c"
- } else {
-#line 357 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp33_ = _data_->candidates;
-#line 357 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp33_ != NULL) {
-#line 358 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp34_ = _data_->all_candidates;
-#line 358 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp35_ = _data_->candidates;
-#line 358 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_array_list_add_all (_data_->_tmp34_, _data_->_tmp35_);
-#line 3134 "LibraryMonitor.c"
- }
- }
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->monitor);
-#line 3139 "LibraryMonitor.c"
- }
-#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->_monitor_list);
-#line 3143 "LibraryMonitor.c"
- }
-#line 362 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp36_ = _data_->associated;
-#line 362 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp36_) {
-#line 363 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp37_ = _data_->adopted;
-#line 363 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp38_ = _data_->file;
-#line 363 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp37_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _data_->_tmp38_);
-#line 365 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->candidates);
-#line 365 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->info);
-#line 365 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->file);
-#line 365 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 3163 "LibraryMonitor.c"
- }
-#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp39_ = _data_->all_candidates;
-#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp40_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp39_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp41_ = _data_->_tmp40_;
-#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp41_ > 0) {
-#line 371 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp42_ = _data_->all_candidates;
-#line 371 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp43_ = _g_object_ref0 (_data_->_tmp42_);
-#line 371 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->job_candidates = _data_->_tmp43_;
-#line 372 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp44_ = gee_array_list_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 372 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->all_candidates);
-#line 372 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->all_candidates = _data_->_tmp44_;
-#line 374 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp45_ = _data_->self->priv->checksums_total;
-#line 374 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->self->priv->checksums_total = _data_->_tmp45_ + 1;
-#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp46_ = _data_->self->priv->workers;
-#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp47_ = _data_->file;
-#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp48_ = _data_->job_candidates;
-#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp49_ = library_monitor_find_move_job_new (_data_->self, _data_->_tmp47_, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp48_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp50_ = _data_->_tmp49_;
-#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- workers_enqueue (_data_->_tmp46_, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp50_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _background_job_unref0 (_data_->_tmp50_);
-#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->job_candidates);
-#line 3205 "LibraryMonitor.c"
- }
-#line 378 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _library_monitor_async_discovery_completed_co_gsource_func, _data_, NULL);
-#line 379 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_state_ = 1;
-#line 379 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return FALSE;
-#line 3213 "LibraryMonitor.c"
- _state_1:
- ;
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->candidates);
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->info);
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->file);
-#line 3222 "LibraryMonitor.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->_file_it);
-#line 3226 "LibraryMonitor.c"
- }
-#line 383 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp51_ = _data_->self->priv->unknown_files;
-#line 383 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp52_ = _data_->adopted;
-#line 383 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp52_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 385 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->self->priv->checksums_completed = 0;
-#line 387 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp53_ = _data_->self->priv->checksums_total;
-#line 387 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp53_ == 0) {
-#line 388 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_discovery_stage_completed (_data_->self);
-#line 3242 "LibraryMonitor.c"
- } else {
-#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp54_ = _data_->self->priv->checksums_total;
-#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp55_ = g_strdup_printf ("%d checksum jobs initiated to verify unknown photo files", _data_->_tmp54_);
-#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp56_ = _data_->_tmp55_;
-#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_data_->_tmp56_);
-#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_data_->_tmp56_);
-#line 391 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp57_ = _data_->self->priv->checksums_completed;
-#line 391 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp58_ = _data_->self->priv->checksums_total;
-#line 391 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_emit (_data_->self, library_monitor_signals[LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL], 0, _data_->_tmp57_, _data_->_tmp58_);
-#line 3260 "LibraryMonitor.c"
- }
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->adopted);
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->all_candidates);
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 3274 "LibraryMonitor.c"
- }
- }
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return FALSE;
-#line 3281 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_report_checksum_job_completed (LibraryMonitor* self)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 395 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 396 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->checksums_completed;
-#line 396 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->checksums_total;
-#line 396 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_assert (_tmp0_ < _tmp1_, "checksums_completed < checksums_total");
-#line 397 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = self->priv->checksums_completed;
-#line 397 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->checksums_completed = _tmp2_ + 1;
-#line 399 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = self->priv->checksums_completed;
-#line 399 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = self->priv->checksums_total;
-#line 399 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_emit (self, library_monitor_signals[LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL], 0, _tmp3_, _tmp4_);
-#line 401 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = self->priv->checksums_completed;
-#line 401 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = self->priv->checksums_total;
-#line 401 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp5_ == _tmp6_) {
-#line 402 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_discovery_stage_completed (self);
-#line 3321 "LibraryMonitor.c"
- }
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 406 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self ? background_job_ref (self) : NULL;
-#line 3331 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_on_find_move_completed (LibraryMonitor* self,
- BackgroundJob* j)
-{
- LibraryMonitorFindMoveJob* job = NULL;
- LibraryMonitorFindMoveJob* _tmp0_;
- LibraryMonitorFindMoveJob* _tmp1_;
- Monitorable* _tmp2_;
- LibraryMonitorFindMoveJob* _tmp27_;
- GError* _tmp28_;
-#line 405 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 405 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 406 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJob));
-#line 406 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- job = _tmp0_;
-#line 411 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = job;
-#line 411 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _tmp1_->match;
-#line 411 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp2_ != NULL) {
-#line 3359 "LibraryMonitor.c"
- LibraryMonitorFindMoveJob* _tmp3_;
- GFile* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- LibraryMonitorFindMoveJob* _tmp7_;
- Monitorable* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- MediaMonitor* monitor = NULL;
- LibraryMonitorFindMoveJob* _tmp13_;
- Monitorable* _tmp14_;
- MediaMonitor* _tmp15_;
- MediaMonitor* _tmp16_;
- LibraryMonitorFindMoveJob* _tmp17_;
- Monitorable* _tmp18_;
- LibraryMonitorFindMoveJob* _tmp19_;
- GFile* _tmp20_;
- GeeHashSet* _tmp21_;
- LibraryMonitorFindMoveJob* _tmp22_;
- GFile* _tmp23_;
- MediaMonitor* _tmp24_;
- LibraryMonitorFindMoveJob* _tmp25_;
- Monitorable* _tmp26_;
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = job;
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_->file;
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = g_file_get_path (_tmp4_);
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = job;
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _tmp7_->match;
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = _tmp9_;
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = g_strdup_printf ("Found moved master file: %s matches %s", _tmp6_, _tmp10_);
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = _tmp11_;
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp12_);
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp12_);
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp10_);
-#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp6_);
-#line 415 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = job;
-#line 415 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = _tmp13_->match;
-#line 415 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = library_monitor_get_monitor_for_monitorable (self, _tmp14_);
-#line 415 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = _tmp15_;
-#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = monitor;
-#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = job;
-#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = _tmp17_->match;
-#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = job;
-#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = _tmp19_->file;
-#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- media_monitor_update_master_file (_tmp16_, _tmp18_, _tmp20_);
-#line 417 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = self->priv->unknown_files;
-#line 417 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = job;
-#line 417 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = _tmp22_->file;
-#line 417 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp23_);
-#line 418 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = monitor;
-#line 418 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = job;
-#line 418 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = _tmp25_->match;
-#line 418 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_add_to_discovered_list (self, _tmp24_, _tmp26_);
-#line 411 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 3451 "LibraryMonitor.c"
- }
-#line 421 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = job;
-#line 421 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = _tmp27_->err;
-#line 421 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp28_ != NULL) {
-#line 3459 "LibraryMonitor.c"
- LibraryMonitorFindMoveJob* _tmp29_;
- GFile* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- LibraryMonitorFindMoveJob* _tmp33_;
- GError* _tmp34_;
- const gchar* _tmp35_;
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp29_ = job;
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp30_ = _tmp29_->file;
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp31_ = g_file_get_path (_tmp30_);
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp32_ = _tmp31_;
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp33_ = job;
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp34_ = _tmp33_->err;
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp35_ = _tmp34_->message;
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_warning ("LibraryMonitor.vala:422: Unable to checksum unknown media file %s: %s", _tmp32_, _tmp35_);
-#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp32_);
-#line 3485 "LibraryMonitor.c"
- }
-#line 424 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_report_checksum_job_completed (self);
-#line 405 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _background_job_unref0 (job);
-#line 3491 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_on_find_move_cancelled (LibraryMonitor* self,
- BackgroundJob* j)
-{
-#line 427 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 427 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 428 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_report_checksum_job_completed (self);
-#line 3505 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_discovery_stage_completed (LibraryMonitor* self)
-{
- gboolean _tmp60_;
- TombstoneSourceCollection* _tmp62_;
- GCancellable* _tmp63_;
-#line 431 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 3517 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _monitor_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _monitor_index = 0;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitors;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp1_;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _monitor_list;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp4_;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 3545 "LibraryMonitor.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- GeeSet* monitorables = NULL;
- GeeHashMap* _tmp11_;
- MediaMonitor* _tmp12_;
- gpointer _tmp13_;
- GeeSet* _tmp14_;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _monitor_index;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp5_ + 1;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_size;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 3570 "LibraryMonitor.c"
- }
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_list;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_index;
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp10_;
-#line 433 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = self->priv->discovered;
-#line 433 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = monitor;
-#line 433 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp12_);
-#line 433 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitorables = (GeeSet*) _tmp13_;
-#line 434 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = monitorables;
-#line 434 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp14_ != NULL) {
-#line 3592 "LibraryMonitor.c"
- {
- GeeIterator* _monitorable_it = NULL;
- GeeSet* _tmp15_;
- GeeIterator* _tmp16_;
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = monitorables;
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitorable_it = _tmp16_;
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 3605 "LibraryMonitor.c"
- GeeIterator* _tmp17_;
- Monitorable* monitorable = NULL;
- GeeIterator* _tmp18_;
- gpointer _tmp19_;
- Monitorable* _tmp20_;
- MediaMonitor* _tmp21_;
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = _monitorable_it;
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp17_)) {
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 3618 "LibraryMonitor.c"
- }
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = _monitorable_it;
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = gee_iterator_get (_tmp18_);
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitorable = (Monitorable*) _tmp19_;
-#line 436 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = monitorable;
-#line 436 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = monitor;
-#line 436 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_enqueue_verify_monitorable (self, _tmp20_, _tmp21_);
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 3634 "LibraryMonitor.c"
- }
-#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitorable_it);
-#line 3638 "LibraryMonitor.c"
- }
- }
- {
- GeeIterator* _object_it = NULL;
- MediaMonitor* _tmp22_;
- MediaSourceCollection* _tmp23_;
- MediaSourceCollection* _tmp24_;
- GeeCollection* _tmp25_;
- GeeCollection* _tmp26_;
- GeeIterator* _tmp27_;
- GeeIterator* _tmp28_;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = monitor;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = media_monitor_get_media_source_collection (_tmp22_);
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = _tmp23_;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection));
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = _tmp25_;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = _tmp27_;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp26_);
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_collection_unref0 (_tmp24_);
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _object_it = _tmp28_;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 3672 "LibraryMonitor.c"
- GeeIterator* _tmp29_;
- DataObject* object = NULL;
- GeeIterator* _tmp30_;
- gpointer _tmp31_;
- Monitorable* monitorable = NULL;
- DataObject* _tmp32_;
- Monitorable* _tmp33_;
- gboolean _tmp34_ = FALSE;
- GeeSet* _tmp35_;
- Monitorable* _tmp38_;
- MediaMonitor* _tmp39_;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp29_ = _object_it;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp29_)) {
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 3690 "LibraryMonitor.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp30_ = _object_it;
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp31_ = gee_iterator_get (_tmp30_);
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- object = (DataObject*) _tmp31_;
-#line 440 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp32_ = object;
-#line 440 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_MONITORABLE, Monitorable));
-#line 440 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitorable = _tmp33_;
-#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp35_ = monitorables;
-#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp35_ != NULL) {
-#line 3708 "LibraryMonitor.c"
- GeeSet* _tmp36_;
- Monitorable* _tmp37_;
-#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp36_ = monitorables;
-#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp37_ = monitorable;
-#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp34_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_);
-#line 3717 "LibraryMonitor.c"
- } else {
-#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp34_ = FALSE;
-#line 3721 "LibraryMonitor.c"
- }
-#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp34_) {
-#line 443 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 443 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (object);
-#line 443 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 3731 "LibraryMonitor.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp38_ = monitorable;
-#line 445 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp39_ = monitor;
-#line 445 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_enqueue_verify_monitorable (self, _tmp38_, _tmp39_);
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (object);
-#line 3743 "LibraryMonitor.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_object_it);
-#line 3747 "LibraryMonitor.c"
- }
- {
- GeeIterator* _source_it = NULL;
- MediaMonitor* _tmp40_;
- MediaSourceCollection* _tmp41_;
- MediaSourceCollection* _tmp42_;
- MediaSourceHoldingTank* _tmp43_;
- MediaSourceHoldingTank* _tmp44_;
- GeeCollection* _tmp45_;
- GeeCollection* _tmp46_;
- GeeIterator* _tmp47_;
- GeeIterator* _tmp48_;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp40_ = monitor;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp41_ = media_monitor_get_media_source_collection (_tmp40_);
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp42_ = _tmp41_;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp43_ = media_source_collection_get_offline_bin (_tmp42_);
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp44_ = _tmp43_;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp45_ = source_holding_tank_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank));
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp46_ = _tmp45_;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp47_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp48_ = _tmp47_;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp46_);
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _source_holding_tank_unref0 (_tmp44_);
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_collection_unref0 (_tmp42_);
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _source_it = _tmp48_;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 3788 "LibraryMonitor.c"
- GeeIterator* _tmp49_;
- DataSource* source = NULL;
- GeeIterator* _tmp50_;
- gpointer _tmp51_;
- Monitorable* monitorable = NULL;
- DataSource* _tmp52_;
- Monitorable* _tmp53_;
- gboolean _tmp54_ = FALSE;
- GeeSet* _tmp55_;
- Monitorable* _tmp58_;
- MediaMonitor* _tmp59_;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp49_ = _source_it;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp49_)) {
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 3806 "LibraryMonitor.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp50_ = _source_it;
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp51_ = gee_iterator_get (_tmp50_);
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- source = (DataSource*) _tmp51_;
-#line 450 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp52_ = source;
-#line 450 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp53_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_MONITORABLE, Monitorable));
-#line 450 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitorable = _tmp53_;
-#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp55_ = monitorables;
-#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp55_ != NULL) {
-#line 3824 "LibraryMonitor.c"
- GeeSet* _tmp56_;
- Monitorable* _tmp57_;
-#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp56_ = monitorables;
-#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp57_ = monitorable;
-#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp54_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection), _tmp57_);
-#line 3833 "LibraryMonitor.c"
- } else {
-#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp54_ = FALSE;
-#line 3837 "LibraryMonitor.c"
- }
-#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp54_) {
-#line 453 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 453 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (source);
-#line 453 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 3847 "LibraryMonitor.c"
- }
-#line 455 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp58_ = monitorable;
-#line 455 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp59_ = monitor;
-#line 455 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_enqueue_verify_monitorable (self, _tmp58_, _tmp59_);
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (source);
-#line 3859 "LibraryMonitor.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_source_it);
-#line 3863 "LibraryMonitor.c"
- }
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitorables);
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 3869 "LibraryMonitor.c"
- }
-#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 3873 "LibraryMonitor.c"
- }
-#line 460 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp60_ = self->priv->auto_import;
-#line 460 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp60_) {
-#line 3879 "LibraryMonitor.c"
- GeeHashSet* _tmp61_;
-#line 461 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp61_ = self->priv->unknown_files;
-#line 461 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_enqueue_import_many (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 3885 "LibraryMonitor.c"
- }
-#line 464 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->discovered);
-#line 464 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->discovered = NULL;
-#line 465 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->unknown_files);
-#line 465 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->unknown_files = NULL;
-#line 469 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp62_ = tombstone_global;
-#line 469 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp63_ = self->priv->cancellable;
-#line 469 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- tombstone_source_collection_launch_scan (_tmp62_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _tmp63_);
-#line 472 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->discovery_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 3903 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_enqueue_verify_monitorable (LibraryMonitor* self,
- Monitorable* monitorable,
- MediaMonitor* monitor)
-{
- gboolean offered = FALSE;
- GeeQueue* _tmp0_;
- LibraryMonitorVerifyJob* _tmp1_;
- LibraryMonitorVerifyJob* _tmp2_;
- gboolean _tmp3_;
-#line 475 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 475 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 475 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (monitor));
-#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->verify_queue;
-#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = library_monitor_verify_job_new (monitorable, monitor);
-#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_queue_offer (_tmp0_, _tmp2_);
-#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _library_monitor_verify_job_unref0 (_tmp2_);
-#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- offered = _tmp3_;
-#line 477 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_assert (offered, "offered");
-#line 479 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_execute_next_verify_job (self);
-#line 3939 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_execute_next_verify_job (LibraryMonitor* self)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- LibraryMonitorVerifyJob* job = NULL;
- GeeQueue* _tmp5_;
- gpointer _tmp6_;
- LibraryMonitorVerifyJob* _tmp7_;
- gint _tmp8_;
- LibraryMonitorVerifyJob* _tmp9_;
- Monitorable* _tmp10_;
- LibraryMonitorVerifyJob* _tmp11_;
- MediaMonitor* _tmp12_;
-#line 482 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->outstanding_verify_jobs;
-#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp1_ >= LIBRARY_MONITOR_MAX_VERIFY_EXISTING_MEDIA_JOBS) {
-#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = TRUE;
-#line 3965 "LibraryMonitor.c"
- } else {
- GeeQueue* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = self->priv->verify_queue;
-#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _tmp4_ == 0;
-#line 3978 "LibraryMonitor.c"
- }
-#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_) {
-#line 484 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 3984 "LibraryMonitor.c"
- }
-#line 486 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = self->priv->verify_queue;
-#line 486 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = gee_queue_poll (_tmp5_);
-#line 486 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- job = (LibraryMonitorVerifyJob*) _tmp6_;
-#line 487 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = job;
-#line 487 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_assert (_tmp7_ != NULL, "job != null");
-#line 489 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = self->priv->outstanding_verify_jobs;
-#line 489 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->outstanding_verify_jobs = _tmp8_ + 1;
-#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = job;
-#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = _tmp9_->monitorable;
-#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = job;
-#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = _tmp11_->monitor;
-#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_verify_monitorable (self, _tmp10_, _tmp12_, NULL, NULL);
-#line 482 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _library_monitor_verify_job_unref0 (job);
-#line 4012 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_verify_monitorable_data_free (gpointer _data)
-{
- LibraryMonitorVerifyMonitorableData* _data_;
- _data_ = _data;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->monitorable);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->monitor);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->self);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_slice_free (LibraryMonitorVerifyMonitorableData, _data_);
-#line 4029 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_verify_monitorable_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data)
-{
- LibraryMonitorVerifyMonitorableData* _task_data_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _task_data_ = g_task_get_task_data (G_TASK (res));
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_task_data_->_callback_ != NULL) {
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _task_data_->_callback_ (source_object, res, user_data);
-#line 4045 "LibraryMonitor.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _task_data_->_task_complete_ = TRUE;
-#line 4049 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_verify_monitorable (LibraryMonitor* self,
- Monitorable* monitorable,
- MediaMonitor* monitor,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_)
-{
- LibraryMonitorVerifyMonitorableData* _data_;
- LibraryMonitor* _tmp0_;
- Monitorable* _tmp1_;
- MediaMonitor* _tmp2_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_ = g_slice_new0 (LibraryMonitorVerifyMonitorableData);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_callback_ = _callback_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_async_result = g_task_new (G_OBJECT (self), NULL, library_monitor_verify_monitorable_async_ready_wrapper, _user_data_);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_callback_ == NULL) {
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 4074 "LibraryMonitor.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_task_set_task_data (_data_->_async_result, _data_, library_monitor_verify_monitorable_data_free);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->self = _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (monitorable);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->monitorable);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->monitorable = _tmp1_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _g_object_ref0 (monitor);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->monitor);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->monitor = _tmp2_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_verify_monitorable_co (_data_);
-#line 4096 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_verify_monitorable_finish (LibraryMonitor* self,
- GAsyncResult* _res_)
-{
- LibraryMonitorVerifyMonitorableData* _data_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 4107 "LibraryMonitor.c"
-}
-
-
-static void
-_vala_array_add130 (GFile** * array,
- int* length,
- int* size,
- GFile* value)
-{
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if ((*length) == (*size)) {
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- *array = g_renew (GFile*, *array, (*size) + 1);
-#line 4123 "LibraryMonitor.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- (*array)[(*length)++] = value;
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- (*array)[*length] = NULL;
-#line 4129 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_verify_monitorable_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_)
-{
- LibraryMonitorVerifyMonitorableData* _data_;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_ = _user_data_;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_source_object_ = source_object;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_res_ = _res_;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_task_complete_ = TRUE;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_verify_monitorable_co (_data_);
-#line 4149 "LibraryMonitor.c"
-}
-
-
-static gboolean
-_library_monitor_verify_monitorable_co_gsource_func (gpointer self)
-{
- gboolean result;
- result = library_monitor_verify_monitorable_co (self);
-#line 530 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 4160 "LibraryMonitor.c"
-}
-
-
-static gboolean
-library_monitor_verify_monitorable_co (LibraryMonitorVerifyMonitorableData* _data_)
-{
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- switch (_data_->_state_) {
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- case 0:
-#line 4171 "LibraryMonitor.c"
- goto _state_0;
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- case 1:
-#line 4175 "LibraryMonitor.c"
- goto _state_1;
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- case 2:
-#line 4179 "LibraryMonitor.c"
- goto _state_2;
- default:
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_assert_not_reached ();
-#line 4184 "LibraryMonitor.c"
- }
- _state_0:
-#line 494 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp0_ = g_new0 (GFile*, 1 + 1);
-#line 494 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->files = _data_->_tmp0_;
-#line 494 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->files_length1 = 1;
-#line 494 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_files_size_ = _data_->files_length1;
-#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp1_ = _data_->files;
-#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp1__length1 = _data_->files_length1;
-#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp2_ = media_monitor_get_master_file (_data_->monitor, _data_->monitorable);
-#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->_tmp1_[0]);
-#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp1_[0] = _data_->_tmp2_;
-#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp3_ = _data_->_tmp1_[0];
-#line 497 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp5_ = media_monitor_get_auxilliary_backing_files (_data_->monitor, _data_->monitorable, &_data_->_tmp4_);
-#line 497 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->aux_files = _data_->_tmp5_;
-#line 497 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->aux_files_length1 = _data_->_tmp4_;
-#line 497 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_aux_files_size_ = _data_->aux_files_length1;
-#line 498 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp6_ = _data_->aux_files;
-#line 498 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp6__length1 = _data_->aux_files_length1;
-#line 498 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp6_ != NULL) {
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp7_ = _data_->aux_files;
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp7__length1 = _data_->aux_files_length1;
-#line 4225 "LibraryMonitor.c"
- {
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->aux_file_collection_length1 = 0;
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_aux_file_collection_size_ = 0;
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->aux_file_collection = _data_->_tmp7_;
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->aux_file_collection_length1 = _data_->_tmp7__length1;
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- for (_data_->aux_file_it = 0; _data_->aux_file_it < _data_->_tmp7__length1; _data_->aux_file_it = _data_->aux_file_it + 1) {
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp8_ = _g_object_ref0 (_data_->aux_file_collection[_data_->aux_file_it]);
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->aux_file = _data_->_tmp8_;
-#line 4241 "LibraryMonitor.c"
- {
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp9_ = _data_->files;
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp9__length1 = _data_->files_length1;
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp10_ = _data_->aux_file;
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp11_ = _g_object_ref0 (_data_->_tmp10_);
-#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_array_add130 (&_data_->files, &_data_->files_length1, &_data_->_files_size_, _data_->_tmp11_);
-#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->aux_file);
-#line 4255 "LibraryMonitor.c"
- }
- }
- }
- }
- {
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->ctr = 0;
-#line 4263 "LibraryMonitor.c"
- {
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp12_ = TRUE;
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_data_->_tmp12_) {
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp13_ = _data_->ctr;
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->ctr = _data_->_tmp13_ + 1;
-#line 4275 "LibraryMonitor.c"
- }
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp12_ = FALSE;
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp14_ = _data_->ctr;
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp15_ = _data_->files;
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp15__length1 = _data_->files_length1;
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_data_->_tmp14_ < _data_->_tmp15__length1)) {
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 4289 "LibraryMonitor.c"
- }
-#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp16_ = _data_->files;
-#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp16__length1 = _data_->files_length1;
-#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp17_ = _data_->ctr;
-#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp18_ = _data_->_tmp16_[_data_->_tmp17_];
-#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp19_ = _g_object_ref0 (_data_->_tmp18_);
-#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->file = _data_->_tmp19_;
-#line 506 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp20_ = _data_->file;
-#line 506 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp21_ = directory_monitor_get_file_info (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _data_->_tmp20_);
-#line 506 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->info = _data_->_tmp21_;
-#line 507 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp22_ = _data_->info;
-#line 507 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp22_ == NULL) {
-#line 4313 "LibraryMonitor.c"
- {
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp24_ = _data_->file;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp25_ = _data_->self->priv->cancellable;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_state_ = 1;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_file_query_info_async (_data_->_tmp24_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_FILE_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _data_->_tmp25_, library_monitor_verify_monitorable_ready, _data_);
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return FALSE;
-#line 4325 "LibraryMonitor.c"
- _state_1:
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp26_ = g_file_query_info_finish (_data_->_tmp24_, _data_->_res_, &_data_->_inner_error_);
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp23_ = _data_->_tmp26_;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
-#line 4333 "LibraryMonitor.c"
- goto __catch495_g_error;
- }
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp27_ = _data_->_tmp23_;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp23_ = NULL;
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->info);
-#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->info = _data_->_tmp27_;
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->_tmp23_);
-#line 4346 "LibraryMonitor.c"
- }
- goto __finally495;
- __catch495_g_error:
- {
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->err = _data_->_inner_error_;
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_inner_error_ = NULL;
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_error_free0 (_data_->err);
-#line 4357 "LibraryMonitor.c"
- }
- __finally495:
-#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"
- _g_object_unref0 (_data_->info);
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->file);
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->aux_files = (_vala_array_free (_data_->aux_files, _data_->aux_files_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->files = (_vala_array_free (_data_->files, _data_->files_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_data_->_inner_error_);
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return FALSE;
-#line 4378 "LibraryMonitor.c"
- }
- }
-#line 517 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp28_ = _data_->ctr;
-#line 517 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp28_ == 0) {
-#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp30_ = _data_->info;
-#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp30_ != NULL) {
-#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp29_ = media_monitor_is_offline (_data_->monitor, _data_->monitorable);
-#line 4391 "LibraryMonitor.c"
- } else {
-#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp29_ = FALSE;
-#line 4395 "LibraryMonitor.c"
- }
-#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp29_) {
-#line 519 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- media_monitor_update_online (_data_->monitor, _data_->monitorable);
-#line 4401 "LibraryMonitor.c"
- } else {
-#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp32_ = _data_->info;
-#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp32_ == NULL) {
-#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp31_ = !media_monitor_is_offline (_data_->monitor, _data_->monitorable);
-#line 4409 "LibraryMonitor.c"
- } else {
-#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp31_ = FALSE;
-#line 4413 "LibraryMonitor.c"
- }
-#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_tmp31_) {
-#line 521 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- media_monitor_update_offline (_data_->monitor, _data_->monitorable);
-#line 4419 "LibraryMonitor.c"
- }
- }
- }
-#line 524 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp33_ = _data_->file;
-#line 524 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp34_ = _data_->info;
-#line 524 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- media_monitor_update_backing_file_info (_data_->monitor, _data_->monitorable, _data_->_tmp33_, _data_->_tmp34_);
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->info);
-#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_data_->file);
-#line 4433 "LibraryMonitor.c"
- }
- }
- }
-#line 527 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp35_ = _data_->self->priv->completed_monitorable_verifies;
-#line 527 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->self->priv->completed_monitorable_verifies = _data_->_tmp35_ + 1;
-#line 528 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp36_ = _data_->self->priv->completed_monitorable_verifies;
-#line 528 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp37_ = _data_->self->priv->total_monitorable_verifies;
-#line 528 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_emit (_data_->self, library_monitor_signals[LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL], 0, _data_->_tmp36_, _data_->_tmp37_);
-#line 530 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_idle_add_full (DIRECTORY_MONITOR_DEFAULT_PRIORITY, _library_monitor_verify_monitorable_co_gsource_func, _data_, NULL);
-#line 531 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_state_ = 2;
-#line 531 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return FALSE;
-#line 4453 "LibraryMonitor.c"
- _state_2:
- ;
-#line 534 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp38_ = _data_->self->priv->outstanding_verify_jobs;
-#line 534 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_assert (_data_->_tmp38_ > 0, "outstanding_verify_jobs > 0");
-#line 535 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->_tmp39_ = _data_->self->priv->outstanding_verify_jobs;
-#line 535 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->self->priv->outstanding_verify_jobs = _data_->_tmp39_ - 1;
-#line 537 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_execute_next_verify_job (_data_->self);
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->aux_files = (_vala_array_free (_data_->aux_files, _data_->aux_files_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_->files = (_vala_array_free (_data_->files, _data_->files_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_data_->_state_ != 0) {
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 4478 "LibraryMonitor.c"
- }
- }
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_object_unref (_data_->_async_result);
-#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return FALSE;
-#line 4485 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_on_config_changed (LibraryMonitor* self)
-{
- gboolean value = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 540 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = configuration_facade_get_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value = _tmp2_;
-#line 543 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = self->priv->auto_import;
-#line 543 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = value;
-#line 543 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp3_ == _tmp4_) {
-#line 544 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 4520 "LibraryMonitor.c"
- }
-#line 546 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = value;
-#line 546 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->auto_import = _tmp5_;
-#line 547 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = self->priv->auto_import;
-#line 547 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp6_) {
-#line 4530 "LibraryMonitor.c"
- gboolean _tmp7_;
-#line 548 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = commandline_options_no_runtime_monitoring;
-#line 548 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp7_) {
-#line 549 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_import_unrepresented_files (self);
-#line 4538 "LibraryMonitor.c"
- }
- } else {
-#line 551 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_cancel_batch_imports (self);
-#line 4543 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_enqueue_import (LibraryMonitor* self,
- GFile* file)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GeeHashSet* _tmp2_;
-#line 555 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 555 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = self->priv->pending_imports;
-#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file)) {
-#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = library_monitor_is_supported_filetype (self, file);
-#line 4565 "LibraryMonitor.c"
- } else {
-#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = FALSE;
-#line 4569 "LibraryMonitor.c"
- }
-#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp1_) {
-#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = !library_monitor_is_blacklisted (file);
-#line 4575 "LibraryMonitor.c"
- } else {
-#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = FALSE;
-#line 4579 "LibraryMonitor.c"
- }
-#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_) {
-#line 4583 "LibraryMonitor.c"
- GeeHashSet* _tmp3_;
-#line 557 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = self->priv->import_queue;
-#line 557 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file);
-#line 4589 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_enqueue_import_many (LibraryMonitor* self,
- GeeCollection* files)
-{
-#line 560 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 560 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (GEE_IS_COLLECTION (files));
-#line 4602 "LibraryMonitor.c"
- {
- GeeIterator* _file_it = NULL;
- GeeIterator* _tmp0_;
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (files, GEE_TYPE_ITERABLE, GeeIterable));
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _file_it = _tmp0_;
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 4612 "LibraryMonitor.c"
- GeeIterator* _tmp1_;
- GFile* file = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- GFile* _tmp4_;
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _file_it;
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 4624 "LibraryMonitor.c"
- }
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _file_it;
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- file = (GFile*) _tmp3_;
-#line 562 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = file;
-#line 562 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_enqueue_import (self, _tmp4_);
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 4638 "LibraryMonitor.c"
- }
-#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 4642 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_remove_queued_import (LibraryMonitor* self,
- GFile* file)
-{
- GeeHashSet* _tmp0_;
-#line 565 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 565 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 566 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->import_queue;
-#line 566 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file);
-#line 4660 "LibraryMonitor.c"
-}
-
-
-static gboolean
-library_monitor_on_flush_import_queue (LibraryMonitor* self)
-{
- gboolean result = FALSE;
- GCancellable* _tmp0_;
- GeeHashSet* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- BatchImport* _tmp4_;
- GeeHashSet* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- time_t now = 0;
- gboolean _tmp10_ = FALSE;
- BatchImportRoll* _tmp11_;
- time_t _tmp15_;
- GeeArrayList* jobs = NULL;
- GeeArrayList* _tmp16_;
- GeeHashSet* _tmp29_;
- BatchImport* importer = NULL;
- GeeArrayList* _tmp30_;
- BatchImportRoll* _tmp31_;
- BatchImport* _tmp32_;
- BatchImport* _tmp33_;
- BatchImport* _tmp34_;
- GeeArrayList* _tmp35_;
- BatchImport* _tmp36_;
-#line 569 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_MONITOR (self), FALSE);
-#line 570 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->cancellable;
-#line 570 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (g_cancellable_is_cancelled (_tmp0_)) {
-#line 571 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = FALSE;
-#line 571 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 4703 "LibraryMonitor.c"
- }
-#line 573 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->import_queue;
-#line 573 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 573 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 573 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp3_ == 0) {
-#line 574 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = TRUE;
-#line 574 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 4717 "LibraryMonitor.c"
- }
-#line 578 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = self->priv->current_batch_import;
-#line 578 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp4_ != NULL) {
-#line 579 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = TRUE;
-#line 579 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 4727 "LibraryMonitor.c"
- }
-#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = self->priv->import_queue;
-#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _tmp6_;
-#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = g_strdup_printf ("Auto-importing %d files", _tmp7_);
-#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _tmp8_;
-#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp9_);
-#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp9_);
-#line 586 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- now = (time_t) now_sec ();
-#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = self->priv->current_import_roll;
-#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp11_ == NULL) {
-#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = TRUE;
-#line 4751 "LibraryMonitor.c"
- } else {
- time_t _tmp12_;
- time_t _tmp13_;
-#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = now;
-#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = self->priv->last_import_roll_use;
-#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = (_tmp12_ - _tmp13_) >= ((time_t) LIBRARY_MONITOR_IMPORT_ROLL_QUIET_SEC);
-#line 4761 "LibraryMonitor.c"
- }
-#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp10_) {
-#line 4765 "LibraryMonitor.c"
- BatchImportRoll* _tmp14_;
-#line 588 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = batch_import_roll_new ();
-#line 588 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _batch_import_roll_unref0 (self->priv->current_import_roll);
-#line 588 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->current_import_roll = _tmp14_;
-#line 4773 "LibraryMonitor.c"
- }
-#line 589 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = now;
-#line 589 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->last_import_roll_use = _tmp15_;
-#line 591 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = gee_array_list_new (TYPE_BATCH_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
-#line 591 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- jobs = _tmp16_;
-#line 4783 "LibraryMonitor.c"
- {
- GeeIterator* _file_it = NULL;
- GeeHashSet* _tmp17_;
- GeeIterator* _tmp18_;
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = self->priv->import_queue;
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _file_it = _tmp18_;
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 4796 "LibraryMonitor.c"
- GeeIterator* _tmp19_;
- GFile* file = NULL;
- GeeIterator* _tmp20_;
- gpointer _tmp21_;
- GFile* _tmp22_;
- GeeArrayList* _tmp23_;
- GFile* _tmp24_;
- FileImportJob* _tmp25_;
- FileImportJob* _tmp26_;
- GeeHashSet* _tmp27_;
- GFile* _tmp28_;
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = _file_it;
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp19_)) {
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 4814 "LibraryMonitor.c"
- }
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = _file_it;
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = gee_iterator_get (_tmp20_);
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- file = (GFile*) _tmp21_;
-#line 593 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = file;
-#line 593 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (library_monitor_is_blacklisted (_tmp22_)) {
-#line 594 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 594 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 4830 "LibraryMonitor.c"
- }
-#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = jobs;
-#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = file;
-#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = file_import_job_new (_tmp24_, FALSE, TRUE);
-#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = _tmp25_;
-#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_BATCH_IMPORT_JOB, BatchImportJob));
-#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _batch_import_job_unref0 (_tmp26_);
-#line 597 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = self->priv->pending_imports;
-#line 597 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = file;
-#line 597 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_);
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 4852 "LibraryMonitor.c"
- }
-#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 4856 "LibraryMonitor.c"
- }
-#line 600 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp29_ = self->priv->import_queue;
-#line 600 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 602 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp30_ = jobs;
-#line 602 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp31_ = self->priv->current_import_roll;
-#line 602 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp32_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ITERABLE, GeeIterable), "LibraryMonitor autoimport", NULL, NULL, NULL, NULL, NULL, _tmp31_, NULL);
-#line 602 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- importer = _tmp32_;
-#line 604 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp33_ = importer;
-#line 604 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- batch_import_set_untrash_duplicates (_tmp33_, FALSE);
-#line 605 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp34_ = importer;
-#line 605 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- batch_import_set_mark_duplicates_online (_tmp34_, FALSE);
-#line 606 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp35_ = self->priv->batch_import_queue;
-#line 606 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp36_ = importer;
-#line 606 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_);
-#line 608 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_schedule_next_batch_import (self);
-#line 610 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = TRUE;
-#line 610 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (importer);
-#line 610 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (jobs);
-#line 610 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 4894 "LibraryMonitor.c"
-}
-
-
-static void
-_library_monitor_on_import_preparing_batch_import_preparing (BatchImport* _sender,
- gpointer self)
-{
-#line 618 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_on_import_preparing ((LibraryMonitor*) self);
-#line 4904 "LibraryMonitor.c"
-}
-
-
-static void
-_library_monitor_on_import_progress_batch_import_progress (BatchImport* _sender,
- guint64 completed_bytes,
- guint64 total_bytes,
- gpointer self)
-{
-#line 619 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_on_import_progress ((LibraryMonitor*) self, completed_bytes, total_bytes);
-#line 4916 "LibraryMonitor.c"
-}
-
-
-static void
-_library_monitor_on_import_complete_batch_import_import_complete (BatchImport* _sender,
- ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self)
-{
-#line 620 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_on_import_complete ((LibraryMonitor*) self, _sender, manifest, import_roll);
-#line 4928 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_schedule_next_batch_import (LibraryMonitor* self)
-{
- gboolean _tmp0_ = FALSE;
- BatchImport* _tmp1_;
- GeeArrayList* _tmp5_;
- gpointer _tmp6_;
- BatchImport* _tmp7_;
- BatchImport* _tmp8_;
- BatchImport* _tmp9_;
- BatchImport* _tmp10_;
-#line 613 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->current_batch_import;
-#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp1_ != NULL) {
-#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = TRUE;
-#line 4951 "LibraryMonitor.c"
- } else {
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = self->priv->batch_import_queue;
-#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _tmp4_ == 0;
-#line 4964 "LibraryMonitor.c"
- }
-#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_) {
-#line 615 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 4970 "LibraryMonitor.c"
- }
-#line 617 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = self->priv->batch_import_queue;
-#line 617 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 617 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->current_batch_import);
-#line 617 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->current_batch_import = (BatchImport*) _tmp6_;
-#line 618 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = self->priv->current_batch_import;
-#line 618 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_connect_object (_tmp7_, "preparing", (GCallback) _library_monitor_on_import_preparing_batch_import_preparing, self, 0);
-#line 619 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = self->priv->current_batch_import;
-#line 619 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_connect_object (_tmp8_, "progress", (GCallback) _library_monitor_on_import_progress_batch_import_progress, self, 0);
-#line 620 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = self->priv->current_batch_import;
-#line 620 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_connect_object (_tmp9_, "import-complete", (GCallback) _library_monitor_on_import_complete_batch_import_import_complete, self, 0);
-#line 621 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = self->priv->current_batch_import;
-#line 621 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- batch_import_schedule (_tmp10_);
-#line 4996 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_discard_current_batch_import (LibraryMonitor* self)
-{
- BatchImport* _tmp0_;
- gboolean removed = FALSE;
- GeeArrayList* _tmp1_;
- BatchImport* _tmp2_;
- gboolean _tmp3_;
- BatchImport* _tmp4_;
- guint _tmp5_;
- BatchImport* _tmp6_;
- guint _tmp7_;
- BatchImport* _tmp8_;
- guint _tmp9_;
- GeeArrayList* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 624 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 625 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->current_batch_import;
-#line 625 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_assert (_tmp0_ != NULL, "current_batch_import != null");
-#line 627 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->batch_import_queue;
-#line 627 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = self->priv->current_batch_import;
-#line 627 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_);
-#line 628 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = removed;
-#line 628 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_assert (_tmp3_, "removed");
-#line 629 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = self->priv->current_batch_import;
-#line 629 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_parse_name ("preparing", TYPE_BATCH_IMPORT, &_tmp5_, NULL, FALSE);
-#line 629 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_monitor_on_import_preparing_batch_import_preparing, self);
-#line 630 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = self->priv->current_batch_import;
-#line 630 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_parse_name ("progress", TYPE_BATCH_IMPORT, &_tmp7_, NULL, FALSE);
-#line 630 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _library_monitor_on_import_progress_batch_import_progress, self);
-#line 631 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = self->priv->current_batch_import;
-#line 631 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_parse_name ("import-complete", TYPE_BATCH_IMPORT, &_tmp9_, NULL, FALSE);
-#line 631 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _library_monitor_on_import_complete_batch_import_import_complete, self);
-#line 632 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->current_batch_import);
-#line 632 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->current_batch_import = NULL;
-#line 639 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = self->priv->batch_import_queue;
-#line 639 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 639 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = _tmp11_;
-#line 639 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp12_ == 0) {
-#line 5063 "LibraryMonitor.c"
- GeeHashSet* _tmp13_;
-#line 640 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = self->priv->pending_imports;
-#line 640 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 5069 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_cancel_batch_imports (LibraryMonitor* self)
-{
- gint ctr = 0;
- BatchImport* _tmp16_;
- GeeHashSet* _tmp18_;
-#line 643 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 645 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ctr = 0;
-#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 5086 "LibraryMonitor.c"
- gint _tmp0_;
- GeeArrayList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- GeeArrayList* _tmp4_;
- gint _tmp5_;
- gpointer _tmp6_;
- BatchImport* _tmp7_;
- BatchImport* _tmp8_;
- gboolean _tmp9_;
- GeeArrayList* _tmp11_;
- GeeArrayList* _tmp12_;
- gint _tmp13_;
- gpointer _tmp14_;
- BatchImport* _tmp15_;
-#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = ctr;
-#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->batch_import_queue;
-#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp0_ < _tmp3_)) {
-#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 5114 "LibraryMonitor.c"
- }
-#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = self->priv->batch_import_queue;
-#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = ctr;
-#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp5_);
-#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = (BatchImport*) _tmp6_;
-#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = self->priv->current_batch_import;
-#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _tmp7_ == _tmp8_;
-#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp7_);
-#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp9_) {
-#line 5132 "LibraryMonitor.c"
- gint _tmp10_;
-#line 648 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = ctr;
-#line 648 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ctr = _tmp10_ + 1;
-#line 650 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 5140 "LibraryMonitor.c"
- }
-#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = self->priv->batch_import_queue;
-#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = self->priv->batch_import_queue;
-#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = ctr;
-#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp13_);
-#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = (BatchImport*) _tmp14_;
-#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp15_);
-#line 5156 "LibraryMonitor.c"
- }
-#line 657 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = self->priv->current_batch_import;
-#line 657 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp16_ != NULL) {
-#line 5162 "LibraryMonitor.c"
- BatchImport* _tmp17_;
-#line 658 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = self->priv->current_batch_import;
-#line 658 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- batch_import_user_halt (_tmp17_);
-#line 5168 "LibraryMonitor.c"
- }
-#line 661 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = self->priv->pending_imports;
-#line 661 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 5174 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_on_import_preparing (LibraryMonitor* self)
-{
-#line 664 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 665 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_emit (self, library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PREPARING_SIGNAL], 0);
-#line 5185 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_on_import_progress (LibraryMonitor* self,
- guint64 completed_bytes,
- guint64 total_bytes)
-{
-#line 668 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 669 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_emit (self, library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PROGRESS_SIGNAL], 0, completed_bytes, total_bytes);
-#line 5198 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_on_import_complete (LibraryMonitor* self,
- BatchImport* batch_import,
- ImportManifest* manifest,
- BatchImportRoll* import_roll)
-{
- BatchImport* _tmp0_;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GeeList* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- GeeHashSet* _tmp53_;
- gint _tmp54_;
- gint _tmp55_;
- gchar* _tmp56_;
- gchar* _tmp57_;
- GError * _inner_error_ = NULL;
-#line 672 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 672 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_BATCH_IMPORT (batch_import));
-#line 672 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_IMPORT_MANIFEST (manifest));
-#line 672 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll));
-#line 674 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->current_batch_import;
-#line 674 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _vala_assert (batch_import == _tmp0_, "batch_import == current_batch_import");
-#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = manifest->all;
-#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = g_strdup_printf ("auto-import batch completed %d", _tmp3_);
-#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp5_);
-#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp5_);
-#line 677 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_emit (self, library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PROGRESS_SIGNAL], 0, (guint64) 0, (guint64) 0);
-#line 5251 "LibraryMonitor.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp6_;
- GeeList* _tmp7_;
- gint _result_size = 0;
- GeeList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _result_index = 0;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = manifest->all;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_list = _tmp7_;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _result_list;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = _tmp9_;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_size = _tmp10_;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_index = -1;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 5279 "LibraryMonitor.c"
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- BatchImportResult* _tmp17_;
- GFile* _tmp18_;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = _result_index;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_index = _tmp11_ + 1;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = _result_index;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = _result_size;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 5301 "LibraryMonitor.c"
- }
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = _result_list;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = _result_index;
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = gee_list_get (_tmp14_, _tmp15_);
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_ = (BatchImportResult*) _tmp16_;
-#line 682 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = _result_;
-#line 682 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = _tmp17_->file;
-#line 682 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp18_ != NULL) {
-#line 5317 "LibraryMonitor.c"
- GeeHashSet* _tmp19_;
- BatchImportResult* _tmp20_;
- GFile* _tmp21_;
-#line 683 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = self->priv->pending_imports;
-#line 683 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = _result_;
-#line 683 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = _tmp20_->file;
-#line 683 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_);
-#line 5329 "LibraryMonitor.c"
- }
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _batch_import_result_unref0 (_result_);
-#line 5333 "LibraryMonitor.c"
- }
-#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_result_list);
-#line 5337 "LibraryMonitor.c"
- }
-#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = manifest->already_imported;
-#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = _tmp23_;
-#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp24_ > 0) {
-#line 5347 "LibraryMonitor.c"
- GeeArrayList* to_tombstone = NULL;
- GeeArrayList* _tmp25_;
-#line 687 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = gee_array_list_new (TYPE_TOMBSTONED_FILE, (GBoxedCopyFunc) tombstoned_file_ref, (GDestroyNotify) tombstoned_file_unref, NULL, NULL, NULL);
-#line 687 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- to_tombstone = _tmp25_;
-#line 5354 "LibraryMonitor.c"
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp26_;
- GeeList* _tmp27_;
- gint _result_size = 0;
- GeeList* _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
- gint _result_index = 0;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = manifest->already_imported;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = _g_object_ref0 (_tmp26_);
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_list = _tmp27_;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = _result_list;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp29_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp30_ = _tmp29_;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_size = _tmp30_;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_index = -1;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 5382 "LibraryMonitor.c"
- gint _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp34_;
- gint _tmp35_;
- gpointer _tmp36_;
- GFileInfo* info = NULL;
- BatchImportResult* _tmp37_;
- GFile* _tmp38_;
- GFileInfo* _tmp39_;
- GFileInfo* _tmp40_;
- GeeArrayList* _tmp45_;
- BatchImportResult* _tmp46_;
- GFile* _tmp47_;
- GFileInfo* _tmp48_;
- TombstonedFile* _tmp49_;
- TombstonedFile* _tmp50_;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp31_ = _result_index;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_index = _tmp31_ + 1;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp32_ = _result_index;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp33_ = _result_size;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp32_ < _tmp33_)) {
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 5413 "LibraryMonitor.c"
- }
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp34_ = _result_list;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp35_ = _result_index;
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp36_ = gee_list_get (_tmp34_, _tmp35_);
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_ = (BatchImportResult*) _tmp36_;
-#line 689 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp37_ = _result_;
-#line 689 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp38_ = _tmp37_->file;
-#line 689 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp39_ = directory_monitor_get_file_info (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _tmp38_);
-#line 689 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- info = _tmp39_;
-#line 690 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp40_ = info;
-#line 690 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp40_ == NULL) {
-#line 5435 "LibraryMonitor.c"
- BatchImportResult* _tmp41_;
- GFile* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
-#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp41_ = _result_;
-#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp42_ = _tmp41_->file;
-#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp43_ = g_file_get_path (_tmp42_);
-#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp44_ = _tmp43_;
-#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_warning ("LibraryMonitor.vala:691: Unable to get info for duplicate file %s", _tmp44_);
-#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp44_);
-#line 693 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (info);
-#line 693 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _batch_import_result_unref0 (_result_);
-#line 693 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 5458 "LibraryMonitor.c"
- }
-#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp45_ = to_tombstone;
-#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp46_ = _result_;
-#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp47_ = _tmp46_->file;
-#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp48_ = info;
-#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp49_ = tombstoned_file_new (_tmp47_, g_file_info_get_size (_tmp48_), NULL);
-#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp50_ = _tmp49_;
-#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp50_);
-#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tombstoned_file_unref0 (_tmp50_);
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (info);
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _batch_import_result_unref0 (_result_);
-#line 5480 "LibraryMonitor.c"
- }
-#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_result_list);
-#line 5484 "LibraryMonitor.c"
- }
- {
- GeeArrayList* _tmp51_;
-#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp51_ = to_tombstone;
-#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- tombstone_entomb_many_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE, &_inner_error_);
-#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5496 "LibraryMonitor.c"
- goto __catch496_database_error;
- }
-#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (to_tombstone);
-#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.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 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 5507 "LibraryMonitor.c"
- }
- }
- goto __finally496;
- __catch496_database_error:
- {
- GError* err = NULL;
- GError* _tmp52_;
-#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- err = _inner_error_;
-#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _inner_error_ = NULL;
-#line 702 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp52_ = err;
-#line 702 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- app_window_database_error (_tmp52_);
-#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_error_free0 (err);
-#line 5525 "LibraryMonitor.c"
- }
- __finally496:
-#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (to_tombstone);
-#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.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 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 5538 "LibraryMonitor.c"
- }
-#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (to_tombstone);
-#line 5542 "LibraryMonitor.c"
- }
-#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp53_ = self->priv->pending_imports;
-#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp54_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp55_ = _tmp54_;
-#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp56_ = g_strdup_printf ("%d files remain pending for auto-import", _tmp55_);
-#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp57_ = _tmp56_;
-#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp57_);
-#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp57_);
-#line 708 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_discard_current_batch_import (self);
-#line 709 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_schedule_next_batch_import (self);
-#line 5562 "LibraryMonitor.c"
-}
-
-
-void
-library_monitor_blacklist_file (GFile* file,
- const gchar* reason)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 725 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 725 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (reason != NULL);
-#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = g_file_get_path (file);
-#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = g_strdup_printf ("[%s] Blacklisting %s", reason, _tmp1_);
-#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp3_);
-#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp3_);
-#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp1_);
-#line 5593 "LibraryMonitor.c"
- {
- GeeHashSet* _tmp4_;
-#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = library_monitor_blacklist;
-#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_lock (&__lock_library_monitor_blacklist);
-#line 5600 "LibraryMonitor.c"
- {
- GeeHashSet* _tmp5_;
-#line 728 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = library_monitor_blacklist;
-#line 728 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file);
-#line 5607 "LibraryMonitor.c"
- }
- __finally497:
- {
- GeeHashSet* _tmp6_;
-#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = library_monitor_blacklist;
-#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_unlock (&__lock_library_monitor_blacklist);
-#line 5616 "LibraryMonitor.c"
- }
-#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.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 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 5626 "LibraryMonitor.c"
- }
- }
-}
-
-
-void
-library_monitor_unblacklist_file (GFile* file)
-{
- GError * _inner_error_ = NULL;
-#line 732 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 5638 "LibraryMonitor.c"
- {
- GeeHashSet* _tmp0_;
-#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = library_monitor_blacklist;
-#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_lock (&__lock_library_monitor_blacklist);
-#line 5645 "LibraryMonitor.c"
- {
- gboolean _tmp1_ = FALSE;
- GeeHashSet* _tmp2_;
-#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = library_monitor_blacklist;
-#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file)) {
-#line 5653 "LibraryMonitor.c"
- HashTimedQueue* _tmp3_;
-#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = library_monitor_to_unblacklist;
-#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = !timed_queue_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_TIMED_QUEUE, TimedQueue), file);
-#line 5659 "LibraryMonitor.c"
- } else {
-#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = FALSE;
-#line 5663 "LibraryMonitor.c"
- }
-#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp1_) {
-#line 5667 "LibraryMonitor.c"
- HashTimedQueue* _tmp4_;
-#line 737 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = library_monitor_to_unblacklist;
-#line 737 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- timed_queue_enqueue (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TIMED_QUEUE, TimedQueue), file);
-#line 5673 "LibraryMonitor.c"
- }
- }
- __finally498:
- {
- GeeHashSet* _tmp5_;
-#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = library_monitor_blacklist;
-#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_unlock (&__lock_library_monitor_blacklist);
-#line 5683 "LibraryMonitor.c"
- }
-#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.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 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 5693 "LibraryMonitor.c"
- }
- }
-}
-
-
-static void
-library_monitor_on_unblacklist_file (GFile* file)
-{
- gboolean removed = FALSE;
- GError * _inner_error_ = NULL;
-#line 741 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 5706 "LibraryMonitor.c"
- {
- GeeHashSet* _tmp0_;
-#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = library_monitor_blacklist;
-#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_lock (&__lock_library_monitor_blacklist);
-#line 5713 "LibraryMonitor.c"
- {
- GeeHashSet* _tmp1_;
-#line 744 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = library_monitor_blacklist;
-#line 744 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file);
-#line 5720 "LibraryMonitor.c"
- }
- __finally499:
- {
- GeeHashSet* _tmp2_;
-#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = library_monitor_blacklist;
-#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_unlock (&__lock_library_monitor_blacklist);
-#line 5729 "LibraryMonitor.c"
- }
-#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.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 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 5739 "LibraryMonitor.c"
- }
- }
-#line 747 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (removed) {
-#line 5744 "LibraryMonitor.c"
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = g_file_get_path (file);
-#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = g_strdup_printf ("Blacklist for %s removed", _tmp4_);
-#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp6_);
-#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp6_);
-#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp4_);
-#line 5763 "LibraryMonitor.c"
- } else {
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 750 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = g_file_get_path (file);
-#line 750 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _tmp7_;
-#line 750 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_warning ("LibraryMonitor.vala:750: File %s was not blacklisted but unblacklisted", _tmp8_);
-#line 750 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp8_);
-#line 5775 "LibraryMonitor.c"
- }
-}
-
-
-gboolean
-library_monitor_is_blacklisted (GFile* file)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 753 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 5787 "LibraryMonitor.c"
- {
- GeeHashSet* _tmp0_;
- gboolean _tmp4_ = FALSE;
-#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = library_monitor_blacklist;
-#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_lock (&__lock_library_monitor_blacklist);
-#line 5795 "LibraryMonitor.c"
- {
- GeeHashSet* _tmp1_;
-#line 755 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = library_monitor_blacklist;
-#line 755 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file);
-#line 5802 "LibraryMonitor.c"
- {
- GeeHashSet* _tmp2_;
-#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = library_monitor_blacklist;
-#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_unlock (&__lock_library_monitor_blacklist);
-#line 5809 "LibraryMonitor.c"
- }
-#line 755 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 5813 "LibraryMonitor.c"
- }
- __finally500:
- {
- GeeHashSet* _tmp3_;
-#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = library_monitor_blacklist;
-#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_rec_mutex_unlock (&__lock_library_monitor_blacklist);
-#line 5822 "LibraryMonitor.c"
- }
-#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.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 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return _tmp4_;
-#line 5830 "LibraryMonitor.c"
- }
-}
-
-
-static gboolean
-library_monitor_is_supported_filetype (LibraryMonitor* self,
- GFile* file)
-{
- gboolean result = FALSE;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- MediaSourceCollection* _tmp2_;
- MediaSourceCollection* _tmp3_;
- gboolean _tmp4_;
-#line 759 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_MONITOR (self), FALSE);
-#line 759 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = media_collection_registry_get_collection_for_file (_tmp1_, file);
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_ != NULL;
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _data_collection_unref0 (_tmp3_);
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- result = _tmp4_;
-#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return result;
-#line 5867 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_import_unrepresented_files (LibraryMonitor* self)
-{
- gboolean _tmp0_;
- GeeArrayList* to_import = NULL;
- GeeArrayList* _tmp36_;
-#line 765 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 766 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->auto_import;
-#line 766 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp0_) {
-#line 767 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 5885 "LibraryMonitor.c"
- }
-#line 769 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- to_import = NULL;
-#line 5889 "LibraryMonitor.c"
- {
- GeeIterator* _file_it = NULL;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = directory_monitor_get_files (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp2_);
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _file_it = _tmp4_;
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 5910 "LibraryMonitor.c"
- GeeIterator* _tmp5_;
- GFile* file = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- GFileInfo* info = NULL;
- GFile* _tmp8_;
- GFileInfo* _tmp9_;
- gboolean _tmp10_ = FALSE;
- GFileInfo* _tmp11_;
- GeeHashSet* _tmp13_;
- GFile* _tmp14_;
- TombstoneSourceCollection* _tmp15_;
- GFile* _tmp16_;
- gboolean represented = FALSE;
- gboolean _tmp30_;
- GFile* _tmp31_;
- GeeArrayList* _tmp32_;
- GeeArrayList* _tmp34_;
- GFile* _tmp35_;
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _file_it;
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 5936 "LibraryMonitor.c"
- }
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _file_it;
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- file = (GFile*) _tmp7_;
-#line 771 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = file;
-#line 771 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = directory_monitor_get_file_info (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _tmp8_);
-#line 771 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- info = _tmp9_;
-#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = info;
-#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp11_ == NULL) {
-#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = TRUE;
-#line 5956 "LibraryMonitor.c"
- } else {
- GFileInfo* _tmp12_;
-#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = info;
-#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = g_file_info_get_file_type (_tmp12_) != G_FILE_TYPE_REGULAR;
-#line 5963 "LibraryMonitor.c"
- }
-#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp10_) {
-#line 773 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (info);
-#line 773 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 773 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 5973 "LibraryMonitor.c"
- }
-#line 775 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = self->priv->pending_imports;
-#line 775 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = file;
-#line 775 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_)) {
-#line 776 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (info);
-#line 776 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 776 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 5987 "LibraryMonitor.c"
- }
-#line 778 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = tombstone_global;
-#line 778 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = file;
-#line 778 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (tombstone_source_collection_matches (_tmp15_, _tmp16_)) {
-#line 779 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (info);
-#line 779 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 779 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 6001 "LibraryMonitor.c"
- }
-#line 781 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- represented = FALSE;
-#line 6005 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp17_;
- GeeList* _tmp18_;
- gint _monitor_size = 0;
- GeeList* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _monitor_index = 0;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = self->priv->monitors;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp18_;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = _monitor_list;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = _tmp20_;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp21_;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 6033 "LibraryMonitor.c"
- gint _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp25_;
- gint _tmp26_;
- gpointer _tmp27_;
- MediaMonitor* _tmp28_;
- GFile* _tmp29_;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = _monitor_index;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp22_ + 1;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = _monitor_index;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = _monitor_size;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp23_ < _tmp24_)) {
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6055 "LibraryMonitor.c"
- }
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = _monitor_list;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = _monitor_index;
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = gee_list_get (_tmp25_, _tmp26_);
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp27_;
-#line 783 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = monitor;
-#line 783 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp29_ = file;
-#line 783 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (media_monitor_is_file_represented (_tmp28_, _tmp29_)) {
-#line 784 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- represented = TRUE;
-#line 786 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 786 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6077 "LibraryMonitor.c"
- }
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 6081 "LibraryMonitor.c"
- }
-#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 6085 "LibraryMonitor.c"
- }
-#line 790 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp30_ = represented;
-#line 790 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp30_) {
-#line 791 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (info);
-#line 791 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 791 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 6097 "LibraryMonitor.c"
- }
-#line 793 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp31_ = file;
-#line 793 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!library_monitor_is_supported_filetype (self, _tmp31_)) {
-#line 794 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (info);
-#line 794 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 794 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 6109 "LibraryMonitor.c"
- }
-#line 796 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp32_ = to_import;
-#line 796 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp32_ == NULL) {
-#line 6115 "LibraryMonitor.c"
- GeeArrayList* _tmp33_;
-#line 797 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp33_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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"
- to_import = _tmp33_;
-#line 6123 "LibraryMonitor.c"
- }
-#line 799 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp34_ = to_import;
-#line 799 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp35_ = file;
-#line 799 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp35_);
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (info);
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (file);
-#line 6135 "LibraryMonitor.c"
- }
-#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_file_it);
-#line 6139 "LibraryMonitor.c"
- }
-#line 802 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp36_ = to_import;
-#line 802 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp36_ != NULL) {
-#line 6145 "LibraryMonitor.c"
- GeeArrayList* _tmp37_;
-#line 803 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp37_ = to_import;
-#line 803 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_enqueue_import_many (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 6151 "LibraryMonitor.c"
- }
-#line 765 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (to_import);
-#line 6155 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_runtime_unknown_file_discovered (LibraryMonitor* self,
- GFile* file)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
-#line 808 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 808 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = self->priv->auto_import;
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp2_) {
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = library_monitor_is_supported_filetype (self, file);
-#line 6176 "LibraryMonitor.c"
- } else {
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = FALSE;
-#line 6180 "LibraryMonitor.c"
- }
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp1_) {
-#line 6184 "LibraryMonitor.c"
- TombstoneSourceCollection* _tmp3_;
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = tombstone_global;
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = !tombstone_source_collection_matches (_tmp3_, file);
-#line 6190 "LibraryMonitor.c"
- } else {
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = FALSE;
-#line 6194 "LibraryMonitor.c"
- }
-#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_) {
-#line 6198 "LibraryMonitor.c"
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = g_file_get_path (file);
-#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = g_strdup_printf ("Unknown file %s discovered, enqueuing for import", _tmp5_);
-#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _tmp6_;
-#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp7_);
-#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp7_);
-#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp5_);
-#line 811 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_enqueue_import (self, file);
-#line 6219 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_real_notify_file_created (DirectoryMonitor* base,
- GFile* file,
- GFileInfo* info)
-{
- LibraryMonitor * self;
- gboolean known = FALSE;
- gboolean _tmp12_;
- gboolean _tmp83_;
-#line 815 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 815 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 815 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 816 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (library_monitor_is_blacklisted (file)) {
-#line 817 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_created (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info);
-#line 819 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 6245 "LibraryMonitor.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = FALSE;
-#line 6249 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _monitor_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _monitor_index = 0;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitors;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp1_;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _monitor_list;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp4_;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 6277 "LibraryMonitor.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- MediaMonitor* _tmp11_;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _monitor_index;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp5_ + 1;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_size;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6298 "LibraryMonitor.c"
- }
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_list;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_index;
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp10_;
-#line 824 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = monitor;
-#line 824 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (media_monitor_notify_file_created (_tmp11_, file, info)) {
-#line 825 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = TRUE;
-#line 827 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 827 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6318 "LibraryMonitor.c"
- }
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 6322 "LibraryMonitor.c"
- }
-#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 6326 "LibraryMonitor.c"
- }
-#line 831 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = known;
-#line 831 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp12_) {
-#line 6332 "LibraryMonitor.c"
- GeeHashSet* all_candidates = NULL;
- gboolean _tmp65_ = FALSE;
- gboolean _tmp66_ = FALSE;
- gboolean _tmp67_;
-#line 833 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- all_candidates = NULL;
-#line 6339 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp13_;
- GeeList* _tmp14_;
- gint _monitor_size = 0;
- GeeList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gint _monitor_index = 0;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = self->priv->monitors;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp14_;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = _monitor_list;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = _tmp16_;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp17_;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 6367 "LibraryMonitor.c"
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp21_;
- gint _tmp22_;
- gpointer _tmp23_;
- MediaMonitorDiscoveredFile _result_ = 0;
- GeeCollection* candidates = NULL;
- MediaMonitor* _tmp24_;
- MediaMonitorDiscoveredFile _tmp25_ = 0;
- GeeCollection* _tmp26_;
- gboolean _tmp27_ = FALSE;
- MediaMonitorDiscoveredFile _tmp28_;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = _monitor_index;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp18_ + 1;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = _monitor_index;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = _monitor_size;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp19_ < _tmp20_)) {
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6394 "LibraryMonitor.c"
- }
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = _monitor_list;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = _monitor_index;
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = gee_list_get (_tmp21_, _tmp22_);
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp23_;
-#line 836 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = monitor;
-#line 836 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = media_monitor_candidates_for_unknown_file (_tmp24_, file, info, &_tmp25_);
-#line 836 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _result_ = _tmp25_;
-#line 836 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- candidates = _tmp26_;
-#line 838 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = _result_;
-#line 838 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp28_ == MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED) {
-#line 838 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = TRUE;
-#line 6418 "LibraryMonitor.c"
- } else {
- MediaMonitorDiscoveredFile _tmp29_;
-#line 839 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp29_ = _result_;
-#line 839 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = _tmp29_ == MEDIA_MONITOR_DISCOVERED_FILE_IGNORE;
-#line 6425 "LibraryMonitor.c"
- }
-#line 838 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp27_) {
-#line 6429 "LibraryMonitor.c"
- MediaMonitor* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- MediaMonitorDiscoveredFile _tmp33_;
- GEnumValue* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp30_ = monitor;
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp31_ = media_monitor_to_string (_tmp30_);
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp32_ = _tmp31_;
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp33_ = _result_;
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp34_ = g_enum_get_value (g_type_class_ref (MEDIA_MONITOR_TYPE_DISCOVERED_FILE), _tmp33_);
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp35_ = g_file_get_path (file);
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp36_ = _tmp35_;
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp37_ = g_strdup_printf ("%s %s created file %s", _tmp32_, (_tmp34_ != NULL) ? _tmp34_->value_name : NULL, _tmp36_);
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp38_ = _tmp37_;
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp38_);
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp38_);
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp36_);
-#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp32_);
-#line 843 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = TRUE;
-#line 845 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (candidates);
-#line 845 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 845 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6473 "LibraryMonitor.c"
- } else {
- gboolean _tmp39_ = FALSE;
- GeeCollection* _tmp40_;
-#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp40_ = candidates;
-#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp40_ != NULL) {
-#line 6481 "LibraryMonitor.c"
- GeeCollection* _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
-#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp41_ = candidates;
-#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp42_ = gee_collection_get_size (_tmp41_);
-#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp43_ = _tmp42_;
-#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp39_ = _tmp43_ > 0;
-#line 6493 "LibraryMonitor.c"
- } else {
-#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp39_ = FALSE;
-#line 6497 "LibraryMonitor.c"
- }
-#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp39_) {
-#line 6501 "LibraryMonitor.c"
- MediaMonitor* _tmp44_;
- gchar* _tmp45_;
- gchar* _tmp46_;
- GeeCollection* _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
- GeeHashSet* _tmp54_;
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp44_ = monitor;
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp45_ = media_monitor_to_string (_tmp44_);
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp46_ = _tmp45_;
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp47_ = candidates;
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp48_ = gee_collection_get_size (_tmp47_);
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp49_ = _tmp48_;
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp50_ = g_file_get_path (file);
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp51_ = _tmp50_;
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp52_ = g_strdup_printf ("%s suggests %d candidates for created file %s", _tmp46_, _tmp49_, _tmp51_);
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp53_ = _tmp52_;
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp53_);
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp53_);
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp51_);
-#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp46_);
-#line 850 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp54_ = all_candidates;
-#line 850 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp54_ == NULL) {
-#line 6545 "LibraryMonitor.c"
- GeeHashSet* _tmp55_;
-#line 851 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp55_ = gee_hash_set_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 851 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (all_candidates);
-#line 851 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- all_candidates = _tmp55_;
-#line 6553 "LibraryMonitor.c"
- }
- {
- GeeIterator* _candidate_it = NULL;
- GeeCollection* _tmp56_;
- GeeIterator* _tmp57_;
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp56_ = candidates;
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp57_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _candidate_it = _tmp57_;
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 6567 "LibraryMonitor.c"
- GeeIterator* _tmp58_;
- Monitorable* candidate = NULL;
- GeeIterator* _tmp59_;
- gpointer _tmp60_;
- MediaMonitor* _tmp61_;
- Monitorable* _tmp62_;
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp58_ = _candidate_it;
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp58_)) {
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6580 "LibraryMonitor.c"
- }
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp59_ = _candidate_it;
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp60_ = gee_iterator_get (_tmp59_);
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- candidate = (Monitorable*) _tmp60_;
-#line 854 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp61_ = monitor;
-#line 854 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp62_ = candidate;
-#line 854 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (media_monitor_is_offline (_tmp61_, _tmp62_)) {
-#line 6594 "LibraryMonitor.c"
- GeeHashSet* _tmp63_;
- Monitorable* _tmp64_;
-#line 855 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp63_ = all_candidates;
-#line 855 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp64_ = candidate;
-#line 855 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp64_);
-#line 6603 "LibraryMonitor.c"
- }
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (candidate);
-#line 6607 "LibraryMonitor.c"
- }
-#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_candidate_it);
-#line 6611 "LibraryMonitor.c"
- }
- }
- }
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (candidates);
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 6619 "LibraryMonitor.c"
- }
-#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 6623 "LibraryMonitor.c"
- }
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp67_ = known;
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp67_) {
-#line 6629 "LibraryMonitor.c"
- GeeHashSet* _tmp68_;
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp68_ = all_candidates;
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp66_ = _tmp68_ != NULL;
-#line 6635 "LibraryMonitor.c"
- } else {
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp66_ = FALSE;
-#line 6639 "LibraryMonitor.c"
- }
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp66_) {
-#line 6643 "LibraryMonitor.c"
- GeeHashSet* _tmp69_;
- gint _tmp70_;
- gint _tmp71_;
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp69_ = all_candidates;
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp70_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp71_ = _tmp70_;
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp65_ = _tmp71_ > 0;
-#line 6655 "LibraryMonitor.c"
- } else {
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp65_ = FALSE;
-#line 6659 "LibraryMonitor.c"
- }
-#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp65_) {
-#line 6663 "LibraryMonitor.c"
- GeeHashSet* _tmp72_;
- gint _tmp73_;
- gint _tmp74_;
- gchar* _tmp75_;
- gchar* _tmp76_;
- gchar* _tmp77_;
- gchar* _tmp78_;
- Workers* _tmp79_;
- GeeHashSet* _tmp80_;
- LibraryMonitorRuntimeFindMoveJob* _tmp81_;
- LibraryMonitorRuntimeFindMoveJob* _tmp82_;
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp72_ = all_candidates;
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp73_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp74_ = _tmp73_;
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp75_ = g_file_get_path (file);
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp76_ = _tmp75_;
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp77_ = g_strdup_printf ("%d candidates for created file %s being checksummed", _tmp74_, _tmp76_);
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp78_ = _tmp77_;
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- directory_monitor_mdbg (_tmp78_);
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp78_);
-#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp76_);
-#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp79_ = self->priv->workers;
-#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp80_ = all_candidates;
-#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp81_ = library_monitor_runtime_find_move_job_new (self, file, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp82_ = _tmp81_;
-#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- workers_enqueue (_tmp79_, G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _background_job_unref0 (_tmp82_);
-#line 866 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = TRUE;
-#line 6709 "LibraryMonitor.c"
- }
-#line 831 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (all_candidates);
-#line 6713 "LibraryMonitor.c"
- }
-#line 870 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp83_ = known;
-#line 870 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp83_) {
-#line 871 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_runtime_unknown_file_discovered (self, file);
-#line 6721 "LibraryMonitor.c"
- }
-#line 873 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_created (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info);
-#line 6725 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_on_runtime_find_move_completed (LibraryMonitor* self,
- BackgroundJob* j)
-{
- LibraryMonitorRuntimeFindMoveJob* job = NULL;
- LibraryMonitorRuntimeFindMoveJob* _tmp0_;
- LibraryMonitorRuntimeFindMoveJob* _tmp1_;
- GError* _tmp2_;
- LibraryMonitorRuntimeFindMoveJob* _tmp10_;
- Monitorable* _tmp11_;
-#line 876 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (self));
-#line 876 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 877 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJob));
-#line 877 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- job = _tmp0_;
-#line 879 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = job;
-#line 879 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _tmp1_->err;
-#line 879 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp2_ != NULL) {
-#line 6753 "LibraryMonitor.c"
- LibraryMonitorRuntimeFindMoveJob* _tmp3_;
- GFile* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- LibraryMonitorRuntimeFindMoveJob* _tmp7_;
- GError* _tmp8_;
- const gchar* _tmp9_;
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = job;
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_->file;
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = g_file_get_path (_tmp4_);
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = job;
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _tmp7_->err;
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _tmp8_->message;
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_critical ("LibraryMonitor.vala:880: Error attempting to find a match at runtime f" \
-"or %s: %s", _tmp6_, _tmp9_);
-#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp6_);
-#line 6779 "LibraryMonitor.c"
- }
-#line 884 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = job;
-#line 884 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = _tmp10_->match;
-#line 884 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp11_ != NULL) {
-#line 6787 "LibraryMonitor.c"
- MediaMonitor* monitor = NULL;
- LibraryMonitorRuntimeFindMoveJob* _tmp12_;
- Monitorable* _tmp13_;
- MediaMonitor* _tmp14_;
- MediaMonitor* _tmp15_;
- LibraryMonitorRuntimeFindMoveJob* _tmp16_;
- Monitorable* _tmp17_;
- LibraryMonitorRuntimeFindMoveJob* _tmp18_;
- GFile* _tmp19_;
- MediaMonitor* _tmp20_;
- LibraryMonitorRuntimeFindMoveJob* _tmp21_;
- Monitorable* _tmp22_;
-#line 885 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = job;
-#line 885 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = _tmp12_->match;
-#line 885 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = library_monitor_get_monitor_for_monitorable (self, _tmp13_);
-#line 885 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = _tmp14_;
-#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = monitor;
-#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = job;
-#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = _tmp16_->match;
-#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = job;
-#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = _tmp18_->file;
-#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- media_monitor_update_master_file (_tmp15_, _tmp17_, _tmp19_);
-#line 887 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = monitor;
-#line 887 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = job;
-#line 887 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = _tmp21_->match;
-#line 887 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- media_monitor_update_online (_tmp20_, _tmp22_);
-#line 884 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 6830 "LibraryMonitor.c"
- } else {
- LibraryMonitorRuntimeFindMoveJob* _tmp23_;
- GFile* _tmp24_;
-#line 890 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = job;
-#line 890 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = _tmp23_->file;
-#line 890 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_runtime_unknown_file_discovered (self, _tmp24_);
-#line 6840 "LibraryMonitor.c"
- }
-#line 876 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _background_job_unref0 (job);
-#line 6844 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_notify_file_moved (DirectoryMonitor* base,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_info)
-{
- LibraryMonitor * self;
- gboolean _tmp0_ = FALSE;
- gboolean known = FALSE;
- gboolean _tmp13_;
-#line 894 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 894 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 894 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 894 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (new_info));
-#line 895 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (library_monitor_is_blacklisted (old_file)) {
-#line 895 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = TRUE;
-#line 6870 "LibraryMonitor.c"
- } else {
-#line 895 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = library_monitor_is_blacklisted (new_file);
-#line 6874 "LibraryMonitor.c"
- }
-#line 895 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp0_) {
-#line 896 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_moved (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), old_file, new_file, new_info);
-#line 898 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 6882 "LibraryMonitor.c"
- }
-#line 901 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = FALSE;
-#line 6886 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp1_;
- GeeList* _tmp2_;
- gint _monitor_size = 0;
- GeeList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _monitor_index = 0;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->priv->monitors;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp2_;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _monitor_list;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp5_;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 6914 "LibraryMonitor.c"
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
- MediaMonitor* _tmp12_;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp6_ + 1;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_index;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_size;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp7_ < _tmp8_)) {
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6935 "LibraryMonitor.c"
- }
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_list;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = _monitor_index;
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = gee_list_get (_tmp9_, _tmp10_);
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp11_;
-#line 903 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = monitor;
-#line 903 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (media_monitor_notify_file_moved (_tmp12_, old_file, new_file, new_info)) {
-#line 904 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = TRUE;
-#line 906 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 906 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 6955 "LibraryMonitor.c"
- }
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 6959 "LibraryMonitor.c"
- }
-#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 6963 "LibraryMonitor.c"
- }
-#line 910 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = known;
-#line 910 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp13_) {
-#line 911 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_runtime_unknown_file_discovered (self, new_file);
-#line 6971 "LibraryMonitor.c"
- }
-#line 913 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_moved (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), old_file, new_file, new_info);
-#line 6975 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_notify_file_altered (DirectoryMonitor* base,
- GFile* file)
-{
- LibraryMonitor * self;
- gboolean known = FALSE;
- gboolean _tmp12_;
-#line 916 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 916 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 917 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (library_monitor_is_blacklisted (file)) {
-#line 918 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file);
-#line 920 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 6996 "LibraryMonitor.c"
- }
-#line 923 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = FALSE;
-#line 7000 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _monitor_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _monitor_index = 0;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitors;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp1_;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _monitor_list;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp4_;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 7028 "LibraryMonitor.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- MediaMonitor* _tmp11_;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _monitor_index;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp5_ + 1;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_size;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7049 "LibraryMonitor.c"
- }
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_list;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_index;
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp10_;
-#line 925 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = monitor;
-#line 925 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (media_monitor_notify_file_altered (_tmp11_, file)) {
-#line 926 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = TRUE;
-#line 928 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 928 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7069 "LibraryMonitor.c"
- }
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 7073 "LibraryMonitor.c"
- }
-#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 7077 "LibraryMonitor.c"
- }
-#line 932 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = known;
-#line 932 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp12_) {
-#line 933 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_runtime_unknown_file_discovered (self, file);
-#line 7085 "LibraryMonitor.c"
- }
-#line 935 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file);
-#line 7089 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_notify_file_attributes_altered (DirectoryMonitor* base,
- GFile* file)
-{
- LibraryMonitor * self;
- gboolean known = FALSE;
- gboolean _tmp12_;
-#line 938 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 938 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 939 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (library_monitor_is_blacklisted (file)) {
-#line 940 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_attributes_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file);
-#line 942 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 7110 "LibraryMonitor.c"
- }
-#line 945 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = FALSE;
-#line 7114 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _monitor_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _monitor_index = 0;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitors;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp1_;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _monitor_list;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp4_;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 7142 "LibraryMonitor.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- MediaMonitor* _tmp11_;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _monitor_index;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp5_ + 1;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_size;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7163 "LibraryMonitor.c"
- }
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_list;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_index;
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp10_;
-#line 947 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = monitor;
-#line 947 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (media_monitor_notify_file_attributes_altered (_tmp11_, file)) {
-#line 948 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = TRUE;
-#line 950 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 950 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7183 "LibraryMonitor.c"
- }
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 7187 "LibraryMonitor.c"
- }
-#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 7191 "LibraryMonitor.c"
- }
-#line 954 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = known;
-#line 954 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp12_) {
-#line 955 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_runtime_unknown_file_discovered (self, file);
-#line 7199 "LibraryMonitor.c"
- }
-#line 957 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_attributes_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file);
-#line 7203 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_notify_file_alteration_completed (DirectoryMonitor* base,
- GFile* file,
- GFileInfo* info)
-{
- LibraryMonitor * self;
- gboolean known = FALSE;
- gboolean _tmp12_;
-#line 960 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 960 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 960 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 961 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (library_monitor_is_blacklisted (file)) {
-#line 962 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_alteration_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info);
-#line 964 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 7227 "LibraryMonitor.c"
- }
-#line 967 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = FALSE;
-#line 7231 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _monitor_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _monitor_index = 0;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitors;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp1_;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _monitor_list;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp4_;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 7259 "LibraryMonitor.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- MediaMonitor* _tmp11_;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _monitor_index;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp5_ + 1;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_size;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7280 "LibraryMonitor.c"
- }
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_list;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_index;
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp10_;
-#line 969 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = monitor;
-#line 969 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (media_monitor_notify_file_alteration_completed (_tmp11_, file, info)) {
-#line 970 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = TRUE;
-#line 972 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 972 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7300 "LibraryMonitor.c"
- }
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 7304 "LibraryMonitor.c"
- }
-#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 7308 "LibraryMonitor.c"
- }
-#line 976 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = known;
-#line 976 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp12_) {
-#line 977 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_runtime_unknown_file_discovered (self, file);
-#line 7316 "LibraryMonitor.c"
- }
-#line 979 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_alteration_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info);
-#line 7320 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_real_notify_file_deleted (DirectoryMonitor* base,
- GFile* file)
-{
- LibraryMonitor * self;
- gboolean known = FALSE;
- gboolean _tmp12_;
-#line 982 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 982 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 983 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (library_monitor_is_blacklisted (file)) {
-#line 984 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_deleted (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file);
-#line 986 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 7341 "LibraryMonitor.c"
- }
-#line 989 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = FALSE;
-#line 7345 "LibraryMonitor.c"
- {
- GeeList* _monitor_list = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _monitor_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _monitor_index = 0;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->priv->monitors;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_list = _tmp1_;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _monitor_list;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = _tmp3_;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_size = _tmp4_;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = -1;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 7373 "LibraryMonitor.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaMonitor* monitor = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- MediaMonitor* _tmp11_;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _monitor_index;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _monitor_index = _tmp5_ + 1;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = _monitor_index;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _monitor_size;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7394 "LibraryMonitor.c"
- }
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _monitor_list;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _monitor_index;
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- monitor = (MediaMonitor*) _tmp10_;
-#line 991 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = monitor;
-#line 991 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (media_monitor_notify_file_deleted (_tmp11_, file)) {
-#line 992 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- known = TRUE;
-#line 994 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 994 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7414 "LibraryMonitor.c"
- }
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (monitor);
-#line 7418 "LibraryMonitor.c"
- }
-#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_monitor_list);
-#line 7422 "LibraryMonitor.c"
- }
-#line 998 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = known;
-#line 998 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!_tmp12_) {
-#line 7428 "LibraryMonitor.c"
- Tombstone* tombstone = NULL;
- TombstoneSourceCollection* _tmp13_;
- Tombstone* _tmp14_;
- Tombstone* _tmp15_;
-#line 1000 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = tombstone_global;
-#line 1000 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = tombstone_source_collection_locate (_tmp13_, file);
-#line 1000 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- tombstone = _tmp14_;
-#line 1001 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = tombstone;
-#line 1001 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp15_ != NULL) {
-#line 7443 "LibraryMonitor.c"
- gchar* _tmp16_;
- gchar* _tmp17_;
- TombstoneSourceCollection* _tmp18_;
- Tombstone* _tmp19_;
-#line 1002 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = g_file_get_path (file);
-#line 1002 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = _tmp16_;
-#line 1002 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_debug ("LibraryMonitor.vala:1002: Resurrecting tombstoned file %s", _tmp17_);
-#line 1002 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp17_);
-#line 1003 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = tombstone_global;
-#line 1003 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = tombstone;
-#line 1003 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- tombstone_source_collection_resurrect (_tmp18_, _tmp19_);
-#line 7462 "LibraryMonitor.c"
- }
-#line 1007 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_remove_queued_import (self, file);
-#line 998 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (tombstone);
-#line 7468 "LibraryMonitor.c"
- }
-#line 1010 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_deleted (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file);
-#line 7472 "LibraryMonitor.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, gint arg_1, gint arg_2, gpointer data2);
- register GMarshalFunc_VOID__INT_INT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (n_param_values == 3);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- data1 = closure->data;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- data2 = param_values->data[0].v_pointer;
-#line 7498 "LibraryMonitor.c"
- } else {
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- data1 = param_values->data[0].v_pointer;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- data2 = closure->data;
-#line 7504 "LibraryMonitor.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- callback (data1, g_value_get_int (param_values + 1), g_value_get_int (param_values + 2), data2);
-#line 7510 "LibraryMonitor.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__UINT64_UINT64) (gpointer data1, guint64 arg_1, guint64 arg_2, gpointer data2);
- register GMarshalFunc_VOID__UINT64_UINT64 callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (n_param_values == 3);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- data1 = closure->data;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- data2 = param_values->data[0].v_pointer;
-#line 7536 "LibraryMonitor.c"
- } else {
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- data1 = param_values->data[0].v_pointer;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- data2 = closure->data;
-#line 7542 "LibraryMonitor.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- callback = (GMarshalFunc_VOID__UINT64_UINT64) (marshal_data ? marshal_data : cc->callback);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- callback (data1, g_value_get_uint64 (param_values + 1), g_value_get_uint64 (param_values + 2), data2);
-#line 7548 "LibraryMonitor.c"
-}
-
-
-static void
-_library_monitor_on_find_move_completed_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 111 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_on_find_move_completed ((LibraryMonitor*) self, job);
-#line 7558 "LibraryMonitor.c"
-}
-
-
-static void
-_library_monitor_on_find_move_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 111 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_on_find_move_cancelled ((LibraryMonitor*) self, job);
-#line 7568 "LibraryMonitor.c"
-}
-
-
-static LibraryMonitorFindMoveJob*
-library_monitor_find_move_job_construct (GType object_type,
- LibraryMonitor* owner,
- GFile* file,
- GeeCollection* candidates)
-{
- LibraryMonitorFindMoveJob* self = NULL;
- GCancellable* _tmp0_;
- GFile* _tmp1_;
- GeeCollection* _tmp2_;
-#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_MONITOR (owner), NULL);
-#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (candidates), NULL);
-#line 111 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = owner->priv->cancellable;
-#line 111 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = (LibraryMonitorFindMoveJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _library_monitor_on_find_move_completed_completion_callback, owner, _tmp0_, _library_monitor_on_find_move_cancelled_cancellation_callback, owner, NULL);
-#line 113 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (file);
-#line 113 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->file);
-#line 113 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->file = _tmp1_;
-#line 114 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _g_object_ref0 (candidates);
-#line 114 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->candidates);
-#line 114 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->candidates = _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW);
-#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self;
-#line 7608 "LibraryMonitor.c"
-}
-
-
-static LibraryMonitorFindMoveJob*
-library_monitor_find_move_job_new (LibraryMonitor* owner,
- GFile* file,
- GeeCollection* candidates)
-{
-#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return library_monitor_find_move_job_construct (LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, owner, file, candidates);
-#line 7619 "LibraryMonitor.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self ? g_error_copy (self) : NULL;
-#line 7628 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_find_move_job_real_execute (BackgroundJob* base)
-{
- LibraryMonitorFindMoveJob * self;
- GeeIterator* iter = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
- GeeCollection* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gchar* md5 = NULL;
- GError * _inner_error_ = NULL;
-#line 119 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJob);
-#line 121 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = self->candidates;
-#line 121 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 121 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- iter = _tmp1_;
-#line 122 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 7654 "LibraryMonitor.c"
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- Monitorable* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
- gboolean _tmp8_;
-#line 122 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = iter;
-#line 122 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 122 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7668 "LibraryMonitor.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = iter;
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = (Monitorable*) _tmp4_;
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = _tmp6_;
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = g_file_query_exists (_tmp7_, NULL);
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp7_);
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp5_);
-#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp8_) {
-#line 7688 "LibraryMonitor.c"
- GeeIterator* _tmp9_;
-#line 124 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = iter;
-#line 124 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_iterator_remove (_tmp9_);
-#line 7694 "LibraryMonitor.c"
- }
- }
-#line 128 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = self->candidates;
-#line 128 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = gee_collection_get_size (_tmp10_);
-#line 128 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = _tmp11_;
-#line 128 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp12_ == 0) {
-#line 129 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (iter);
-#line 129 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 7709 "LibraryMonitor.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- md5 = NULL;
-#line 7713 "LibraryMonitor.c"
- {
- gchar* _tmp13_ = NULL;
- GFile* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = self->file;
-#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = md5_file (_tmp14_, &_inner_error_);
-#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = _tmp15_;
-#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7727 "LibraryMonitor.c"
- goto __catch501_g_error;
- }
-#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = _tmp13_;
-#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = NULL;
-#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (md5);
-#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- md5 = _tmp16_;
-#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp13_);
-#line 7740 "LibraryMonitor.c"
- }
- goto __finally501;
- __catch501_g_error:
- {
- GError* err = NULL;
- GError* _tmp17_;
- GError* _tmp18_;
-#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- err = _inner_error_;
-#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _inner_error_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = err;
-#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp18_ = _g_error_copy0 (_tmp17_);
-#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_error_free0 (self->err);
-#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->err = _tmp18_;
-#line 137 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_error_free0 (err);
-#line 137 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (md5);
-#line 137 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (iter);
-#line 137 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 7768 "LibraryMonitor.c"
- }
- __finally501:
-#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (md5);
-#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (iter);
-#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.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 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 7783 "LibraryMonitor.c"
- }
- {
- GeeIterator* _candidate_it = NULL;
- GeeCollection* _tmp19_;
- GeeIterator* _tmp20_;
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp19_ = self->candidates;
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp20_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _candidate_it = _tmp20_;
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 7797 "LibraryMonitor.c"
- GeeIterator* _tmp21_;
- Monitorable* candidate = NULL;
- GeeIterator* _tmp22_;
- gpointer _tmp23_;
- Monitorable* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- const gchar* _tmp27_;
- gboolean _tmp28_;
- Monitorable* _tmp29_;
- Monitorable* _tmp43_;
- Monitorable* _tmp44_;
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp21_ = _candidate_it;
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp21_)) {
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 7816 "LibraryMonitor.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp22_ = _candidate_it;
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp23_ = gee_iterator_get (_tmp22_);
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- candidate = (Monitorable*) _tmp23_;
-#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp24_ = candidate;
-#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp25_ = media_source_get_master_md5 (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp26_ = _tmp25_;
-#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp27_ = md5;
-#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp28_ = g_strcmp0 (_tmp26_, _tmp27_) != 0;
-#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp26_);
-#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp28_) {
-#line 142 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (candidate);
-#line 142 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 7842 "LibraryMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp29_ = self->match;
-#line 144 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp29_ != NULL) {
-#line 7848 "LibraryMonitor.c"
- GFile* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- Monitorable* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- Monitorable* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- GeeArrayList* _tmp39_;
- GeeArrayList* _tmp41_;
- Monitorable* _tmp42_;
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp30_ = self->file;
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp31_ = g_file_get_path (_tmp30_);
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp32_ = _tmp31_;
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp33_ = self->match;
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp34_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_OBJECT, DataObject));
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp35_ = _tmp34_;
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp36_ = candidate;
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp37_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_OBJECT, DataObject));
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp38_ = _tmp37_;
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_warning ("LibraryMonitor.vala:145: Found more than one media match for %s: %s an" \
-"d %s", _tmp32_, _tmp35_, _tmp38_);
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp38_);
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp35_);
-#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp32_);
-#line 148 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp39_ = self->losers;
-#line 148 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp39_ == NULL) {
-#line 7891 "LibraryMonitor.c"
- GeeArrayList* _tmp40_;
-#line 149 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp40_ = gee_array_list_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 149 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->losers);
-#line 149 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->losers = _tmp40_;
-#line 7899 "LibraryMonitor.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp41_ = self->losers;
-#line 151 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp42_ = candidate;
-#line 151 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp42_);
-#line 153 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (candidate);
-#line 153 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- continue;
-#line 7911 "LibraryMonitor.c"
- }
-#line 156 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp43_ = candidate;
-#line 156 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp44_ = _g_object_ref0 (_tmp43_);
-#line 156 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->match);
-#line 156 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->match = _tmp44_;
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (candidate);
-#line 7923 "LibraryMonitor.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_candidate_it);
-#line 7927 "LibraryMonitor.c"
- }
-#line 119 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (md5);
-#line 119 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (iter);
-#line 7933 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_find_move_job_class_init (LibraryMonitorFindMoveJobClass * klass)
-{
-#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_find_move_job_parent_class = g_type_class_peek_parent (klass);
-#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((BackgroundJobClass *) klass)->finalize = library_monitor_find_move_job_finalize;
-#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) library_monitor_find_move_job_real_execute;
-#line 7946 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_find_move_job_instance_init (LibraryMonitorFindMoveJob * self)
-{
-#line 106 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->match = NULL;
-#line 107 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->losers = NULL;
-#line 108 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->err = NULL;
-#line 7959 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_find_move_job_finalize (BackgroundJob * obj)
-{
- LibraryMonitorFindMoveJob * self;
-#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJob);
-#line 104 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->file);
-#line 105 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->candidates);
-#line 106 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->match);
-#line 107 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->losers);
-#line 108 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_error_free0 (self->err);
-#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- BACKGROUND_JOB_CLASS (library_monitor_find_move_job_parent_class)->finalize (obj);
-#line 7981 "LibraryMonitor.c"
-}
-
-
-static GType
-library_monitor_find_move_job_get_type (void)
-{
- static volatile gsize library_monitor_find_move_job_type_id__volatile = 0;
- if (g_once_init_enter (&library_monitor_find_move_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorFindMoveJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_find_move_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitorFindMoveJob), 0, (GInstanceInitFunc) library_monitor_find_move_job_instance_init, NULL };
- GType library_monitor_find_move_job_type_id;
- library_monitor_find_move_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "LibraryMonitorFindMoveJob", &g_define_type_info, 0);
- g_once_init_leave (&library_monitor_find_move_job_type_id__volatile, library_monitor_find_move_job_type_id);
- }
- return library_monitor_find_move_job_type_id__volatile;
-}
-
-
-static void
-_library_monitor_on_runtime_find_move_completed_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 168 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_on_runtime_find_move_completed ((LibraryMonitor*) self, job);
-#line 8005 "LibraryMonitor.c"
-}
-
-
-static LibraryMonitorRuntimeFindMoveJob*
-library_monitor_runtime_find_move_job_construct (GType object_type,
- LibraryMonitor* owner,
- GFile* file,
- GeeCollection* candidates)
-{
- LibraryMonitorRuntimeFindMoveJob* self = NULL;
- GCancellable* _tmp0_;
- GFile* _tmp1_;
- GeeCollection* _tmp2_;
-#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_MONITOR (owner), NULL);
-#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (candidates), NULL);
-#line 168 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = owner->priv->cancellable;
-#line 168 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = (LibraryMonitorRuntimeFindMoveJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _library_monitor_on_runtime_find_move_completed_completion_callback, owner, _tmp0_, NULL, NULL, NULL);
-#line 170 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (file);
-#line 170 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->file);
-#line 170 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->file = _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = _g_object_ref0 (candidates);
-#line 171 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->candidates);
-#line 171 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->candidates = _tmp2_;
-#line 173 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW);
-#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self;
-#line 8045 "LibraryMonitor.c"
-}
-
-
-static LibraryMonitorRuntimeFindMoveJob*
-library_monitor_runtime_find_move_job_new (LibraryMonitor* owner,
- GFile* file,
- GeeCollection* candidates)
-{
-#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return library_monitor_runtime_find_move_job_construct (LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, owner, file, candidates);
-#line 8056 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_runtime_find_move_job_real_execute (BackgroundJob* base)
-{
- LibraryMonitorRuntimeFindMoveJob * self;
- gchar* md5 = NULL;
- GError * _inner_error_ = NULL;
-#line 176 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJob);
-#line 177 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- md5 = NULL;
-#line 8070 "LibraryMonitor.c"
- {
- gchar* _tmp0_ = NULL;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = self->file;
-#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = md5_file (_tmp1_, &_inner_error_);
-#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _tmp2_;
-#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8084 "LibraryMonitor.c"
- goto __catch502_g_error;
- }
-#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = _tmp0_;
-#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = NULL;
-#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (md5);
-#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- md5 = _tmp3_;
-#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp0_);
-#line 8097 "LibraryMonitor.c"
- }
- goto __finally502;
- __catch502_g_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
- GError* _tmp5_;
-#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- err = _inner_error_;
-#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _inner_error_ = NULL;
-#line 181 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = err;
-#line 181 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = _g_error_copy0 (_tmp4_);
-#line 181 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_error_free0 (self->err);
-#line 181 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->err = _tmp5_;
-#line 183 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_error_free0 (err);
-#line 183 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (md5);
-#line 183 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 8123 "LibraryMonitor.c"
- }
- __finally502:
-#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (md5);
-#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.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 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return;
-#line 8136 "LibraryMonitor.c"
- }
- {
- GeeIterator* _candidate_it = NULL;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = self->candidates;
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _candidate_it = _tmp7_;
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- while (TRUE) {
-#line 8150 "LibraryMonitor.c"
- GeeIterator* _tmp8_;
- Monitorable* candidate = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- Monitorable* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- const gchar* _tmp14_;
- gboolean _tmp15_;
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp8_ = _candidate_it;
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 8166 "LibraryMonitor.c"
- }
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp9_ = _candidate_it;
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- candidate = (Monitorable*) _tmp10_;
-#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp11_ = candidate;
-#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp12_ = media_source_get_master_md5 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp13_ = _tmp12_;
-#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp14_ = md5;
-#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp15_ = g_strcmp0 (_tmp13_, _tmp14_) == 0;
-#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (_tmp13_);
-#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (_tmp15_) {
-#line 8188 "LibraryMonitor.c"
- Monitorable* _tmp16_;
- Monitorable* _tmp17_;
-#line 188 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp16_ = candidate;
-#line 188 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp17_ = _g_object_ref0 (_tmp16_);
-#line 188 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->match);
-#line 188 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->match = _tmp17_;
-#line 190 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (candidate);
-#line 190 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- break;
-#line 8203 "LibraryMonitor.c"
- }
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (candidate);
-#line 8207 "LibraryMonitor.c"
- }
-#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_candidate_it);
-#line 8211 "LibraryMonitor.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_free0 (md5);
-#line 8215 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_runtime_find_move_job_class_init (LibraryMonitorRuntimeFindMoveJobClass * klass)
-{
-#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_runtime_find_move_job_parent_class = g_type_class_peek_parent (klass);
-#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((BackgroundJobClass *) klass)->finalize = library_monitor_runtime_find_move_job_finalize;
-#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) library_monitor_runtime_find_move_job_real_execute;
-#line 8228 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_runtime_find_move_job_instance_init (LibraryMonitorRuntimeFindMoveJob * self)
-{
-#line 164 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->match = NULL;
-#line 165 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->err = NULL;
-#line 8239 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_runtime_find_move_job_finalize (BackgroundJob * obj)
-{
- LibraryMonitorRuntimeFindMoveJob * self;
-#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJob);
-#line 162 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->file);
-#line 163 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->candidates);
-#line 164 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->match);
-#line 165 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_error_free0 (self->err);
-#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- BACKGROUND_JOB_CLASS (library_monitor_runtime_find_move_job_parent_class)->finalize (obj);
-#line 8259 "LibraryMonitor.c"
-}
-
-
-static GType
-library_monitor_runtime_find_move_job_get_type (void)
-{
- static volatile gsize library_monitor_runtime_find_move_job_type_id__volatile = 0;
- if (g_once_init_enter (&library_monitor_runtime_find_move_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorRuntimeFindMoveJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_runtime_find_move_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitorRuntimeFindMoveJob), 0, (GInstanceInitFunc) library_monitor_runtime_find_move_job_instance_init, NULL };
- GType library_monitor_runtime_find_move_job_type_id;
- library_monitor_runtime_find_move_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "LibraryMonitorRuntimeFindMoveJob", &g_define_type_info, 0);
- g_once_init_leave (&library_monitor_runtime_find_move_job_type_id__volatile, library_monitor_runtime_find_move_job_type_id);
- }
- return library_monitor_runtime_find_move_job_type_id__volatile;
-}
-
-
-static LibraryMonitorVerifyJob*
-library_monitor_verify_job_construct (GType object_type,
- Monitorable* monitorable,
- MediaMonitor* monitor)
-{
- LibraryMonitorVerifyJob* self = NULL;
- Monitorable* _tmp0_;
- MediaMonitor* _tmp1_;
-#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (monitor), NULL);
-#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = (LibraryMonitorVerifyJob*) g_type_create_instance (object_type);
-#line 201 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = _g_object_ref0 (monitorable);
-#line 201 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->monitorable);
-#line 201 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->monitorable = _tmp0_;
-#line 202 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _g_object_ref0 (monitor);
-#line 202 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->monitor);
-#line 202 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->monitor = _tmp1_;
-#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return self;
-#line 8305 "LibraryMonitor.c"
-}
-
-
-static LibraryMonitorVerifyJob*
-library_monitor_verify_job_new (Monitorable* monitorable,
- MediaMonitor* monitor)
-{
-#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return library_monitor_verify_job_construct (LIBRARY_MONITOR_TYPE_VERIFY_JOB, monitorable, monitor);
-#line 8315 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_value_verify_job_init (GValue* value)
-{
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 8324 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_value_verify_job_free_value (GValue* value)
-{
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (value->data[0].v_pointer) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_verify_job_unref (value->data[0].v_pointer);
-#line 8335 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_value_verify_job_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (src_value->data[0].v_pointer) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- dest_value->data[0].v_pointer = library_monitor_verify_job_ref (src_value->data[0].v_pointer);
-#line 8348 "LibraryMonitor.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 8352 "LibraryMonitor.c"
- }
-}
-
-
-static gpointer
-library_monitor_value_verify_job_peek_pointer (const GValue* value)
-{
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return value->data[0].v_pointer;
-#line 8362 "LibraryMonitor.c"
-}
-
-
-static gchar*
-library_monitor_value_verify_job_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (collect_values[0].v_pointer) {
-#line 8374 "LibraryMonitor.c"
- LibraryMonitorVerifyJob * object;
- object = collect_values[0].v_pointer;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 8381 "LibraryMonitor.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.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 8385 "LibraryMonitor.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = library_monitor_verify_job_ref (object);
-#line 8389 "LibraryMonitor.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 8393 "LibraryMonitor.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return NULL;
-#line 8397 "LibraryMonitor.c"
-}
-
-
-static gchar*
-library_monitor_value_verify_job_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- LibraryMonitorVerifyJob ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!object_p) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 8413 "LibraryMonitor.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (!value->data[0].v_pointer) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- *object_p = NULL;
-#line 8419 "LibraryMonitor.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- *object_p = value->data[0].v_pointer;
-#line 8423 "LibraryMonitor.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- *object_p = library_monitor_verify_job_ref (value->data[0].v_pointer);
-#line 8427 "LibraryMonitor.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return NULL;
-#line 8431 "LibraryMonitor.c"
-}
-
-
-static GParamSpec*
-library_monitor_param_spec_verify_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- LibraryMonitorParamSpecVerifyJob* spec;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (g_type_is_a (object_type, LIBRARY_MONITOR_TYPE_VERIFY_JOB), NULL);
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return G_PARAM_SPEC (spec);
-#line 8451 "LibraryMonitor.c"
-}
-
-
-static gpointer
-library_monitor_value_get_verify_job (const GValue* value)
-{
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIBRARY_MONITOR_TYPE_VERIFY_JOB), NULL);
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return value->data[0].v_pointer;
-#line 8462 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_value_set_verify_job (GValue* value,
- gpointer v_object)
-{
- LibraryMonitorVerifyJob * old;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIBRARY_MONITOR_TYPE_VERIFY_JOB));
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- old = value->data[0].v_pointer;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (v_object) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, LIBRARY_MONITOR_TYPE_VERIFY_JOB));
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_verify_job_ref (value->data[0].v_pointer);
-#line 8485 "LibraryMonitor.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 8489 "LibraryMonitor.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (old) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_verify_job_unref (old);
-#line 8495 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_value_take_verify_job (GValue* value,
- gpointer v_object)
-{
- LibraryMonitorVerifyJob * old;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIBRARY_MONITOR_TYPE_VERIFY_JOB));
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- old = value->data[0].v_pointer;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (v_object) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, LIBRARY_MONITOR_TYPE_VERIFY_JOB));
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 8517 "LibraryMonitor.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 8521 "LibraryMonitor.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (old) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_verify_job_unref (old);
-#line 8527 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_verify_job_class_init (LibraryMonitorVerifyJobClass * klass)
-{
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_verify_job_parent_class = g_type_class_peek_parent (klass);
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((LibraryMonitorVerifyJobClass *) klass)->finalize = library_monitor_verify_job_finalize;
-#line 8539 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_verify_job_instance_init (LibraryMonitorVerifyJob * self)
-{
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->ref_count = 1;
-#line 8548 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_verify_job_finalize (LibraryMonitorVerifyJob * obj)
-{
- LibraryMonitorVerifyJob * self;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_MONITOR_TYPE_VERIFY_JOB, LibraryMonitorVerifyJob);
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_handlers_destroy (self);
-#line 197 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->monitorable);
-#line 198 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->monitor);
-#line 8564 "LibraryMonitor.c"
-}
-
-
-static GType
-library_monitor_verify_job_get_type (void)
-{
- static volatile gsize library_monitor_verify_job_type_id__volatile = 0;
- if (g_once_init_enter (&library_monitor_verify_job_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { library_monitor_value_verify_job_init, library_monitor_value_verify_job_free_value, library_monitor_value_verify_job_copy_value, library_monitor_value_verify_job_peek_pointer, "p", library_monitor_value_verify_job_collect_value, "p", library_monitor_value_verify_job_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorVerifyJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_verify_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitorVerifyJob), 0, (GInstanceInitFunc) library_monitor_verify_job_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType library_monitor_verify_job_type_id;
- library_monitor_verify_job_type_id = g_type_register_fundamental (g_type_fundamental_next (), "LibraryMonitorVerifyJob", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&library_monitor_verify_job_type_id__volatile, library_monitor_verify_job_type_id);
- }
- return library_monitor_verify_job_type_id__volatile;
-}
-
-
-static gpointer
-library_monitor_verify_job_ref (gpointer instance)
-{
- LibraryMonitorVerifyJob * self;
- self = instance;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- return instance;
-#line 8593 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_verify_job_unref (gpointer instance)
-{
- LibraryMonitorVerifyJob * self;
- self = instance;
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- LIBRARY_MONITOR_VERIFY_JOB_GET_CLASS (self)->finalize (self);
-#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 8608 "LibraryMonitor.c"
- }
-}
-
-
-static void
-library_monitor_class_init (LibraryMonitorClass * klass)
-{
- GeeHashSet* _tmp0_;
- HashTimedQueue* _tmp1_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_parent_class = g_type_class_peek_parent (klass);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_type_class_add_private (klass, sizeof (LibraryMonitorPrivate));
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->close = (void (*) (DirectoryMonitor *)) library_monitor_real_close;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->discovery_started = (void (*) (DirectoryMonitor *)) library_monitor_real_discovery_started;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->file_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) library_monitor_real_file_discovered;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->discovery_completed = (void (*) (DirectoryMonitor *)) library_monitor_real_discovery_completed;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_created = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) library_monitor_real_notify_file_created;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_moved = (void (*) (DirectoryMonitor *, GFile*, GFile*, GFileInfo*)) library_monitor_real_notify_file_moved;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_altered = (void (*) (DirectoryMonitor *, GFile*)) library_monitor_real_notify_file_altered;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_attributes_altered = (void (*) (DirectoryMonitor *, GFile*)) library_monitor_real_notify_file_attributes_altered;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_alteration_completed = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) library_monitor_real_notify_file_alteration_completed;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- ((DirectoryMonitorClass *) klass)->notify_file_deleted = (void (*) (DirectoryMonitor *, GFile*)) library_monitor_real_notify_file_deleted;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- G_OBJECT_CLASS (klass)->finalize = library_monitor_finalize;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_signals[LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL] = g_signal_new ("auto-update-progress", TYPE_LIBRARY_MONITOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_INT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PREPARING_SIGNAL] = g_signal_new ("auto-import-preparing", TYPE_LIBRARY_MONITOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PROGRESS_SIGNAL] = g_signal_new ("auto-import-progress", TYPE_LIBRARY_MONITOR, 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 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_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 8660 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_instance_init (LibraryMonitor * self)
-{
- Workers* _tmp0_;
- GCancellable* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeHashSet* _tmp3_;
- GeeHashSet* _tmp4_;
- GeeArrayList* _tmp5_;
- GeeLinkedList* _tmp6_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv = LIBRARY_MONITOR_GET_PRIVATE (self);
-#line 210 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = workers_new (workers_thread_per_cpu_minus_one (), FALSE);
-#line 210 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->workers = _tmp0_;
-#line 211 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = g_cancellable_new ();
-#line 211 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->cancellable = _tmp1_;
-#line 212 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->auto_import = FALSE;
-#line 213 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->unknown_files = NULL;
-#line 214 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp2_ = gee_array_list_new (TYPE_MEDIA_MONITOR, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 214 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->monitors = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
-#line 215 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->discovered = NULL;
-#line 216 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp3_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 = _tmp3_;
-#line 217 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp4_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 = _tmp4_;
-#line 218 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp5_ = gee_array_list_new (TYPE_BATCH_IMPORT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 218 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->batch_import_queue = _tmp5_;
-#line 219 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->current_import_roll = NULL;
-#line 220 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->last_import_roll_use = (time_t) 0;
-#line 221 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->current_batch_import = NULL;
-#line 222 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->checksums_completed = 0;
-#line 223 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->checksums_total = 0;
-#line 224 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->import_queue_timer_id = (guint) 0;
-#line 225 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp6_ = gee_linked_list_new (LIBRARY_MONITOR_TYPE_VERIFY_JOB, (GBoxedCopyFunc) library_monitor_verify_job_ref, (GDestroyNotify) library_monitor_verify_job_unref, NULL, NULL, NULL);
-#line 225 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->verify_queue = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_QUEUE, GeeQueue);
-#line 226 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->outstanding_verify_jobs = 0;
-#line 227 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->completed_monitorable_verifies = 0;
-#line 228 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self->priv->total_monitorable_verifies = 0;
-#line 8728 "LibraryMonitor.c"
-}
-
-
-static void
-library_monitor_finalize (GObject * obj)
-{
- LibraryMonitor * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- guint _tmp2_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_MONITOR, LibraryMonitor);
-#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_parse_name ("auto-import-from-library-changed", TYPE_CONFIGURATION_FACADE, &_tmp2_, NULL, FALSE);
-#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _library_monitor_on_config_changed_configuration_facade_auto_import_from_library_changed, self);
-#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 210 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _workers_unref0 (self->priv->workers);
-#line 211 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 213 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->unknown_files);
-#line 214 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->monitors);
-#line 215 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->discovered);
-#line 216 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->import_queue);
-#line 217 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->pending_imports);
-#line 218 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->batch_import_queue);
-#line 219 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _batch_import_roll_unref0 (self->priv->current_import_roll);
-#line 221 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->current_batch_import);
-#line 225 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- _g_object_unref0 (self->priv->verify_queue);
-#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala"
- G_OBJECT_CLASS (library_monitor_parent_class)->finalize (obj);
-#line 8775 "LibraryMonitor.c"
-}
-
-
-GType
-library_monitor_get_type (void)
-{
- static volatile gsize library_monitor_type_id__volatile = 0;
- if (g_once_init_enter (&library_monitor_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitor), 0, (GInstanceInitFunc) library_monitor_instance_init, NULL };
- GType library_monitor_type_id;
- library_monitor_type_id = g_type_register_static (TYPE_DIRECTORY_MONITOR, "LibraryMonitor", &g_define_type_info, 0);
- g_once_init_leave (&library_monitor_type_id__volatile, library_monitor_type_id);
- }
- return library_monitor_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/MediaDataRepresentation.c b/src/MediaDataRepresentation.c
deleted file mode 100644
index 4d566f0..0000000
--- a/src/MediaDataRepresentation.c
+++ /dev/null
@@ -1,8824 +0,0 @@
-/* MediaDataRepresentation.c generated by valac 0.40.4, the Vala compiler
- * generated from MediaDataRepresentation.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <gio/gio.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ())
-#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState))
-#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE))
-#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE))
-#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-
-typedef struct _BackingFileState BackingFileState;
-typedef struct _BackingFileStateClass BackingFileStateClass;
-typedef struct _BackingFileStatePrivate BackingFileStatePrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-typedef struct _ParamSpecBackingFileState ParamSpecBackingFileState;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate;
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-
-#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;
-typedef struct _MediaSourcePrivate MediaSourcePrivate;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-enum {
- MEDIA_SOURCE_0_PROPERTY,
- MEDIA_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* media_source_properties[MEDIA_SOURCE_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ())
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ())
-#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection))
-#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION))
-#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION))
-#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-
-typedef struct _EventSourceCollection EventSourceCollection;
-typedef struct _EventSourceCollectionClass EventSourceCollectionClass;
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-enum {
- MEDIA_SOURCE_MASTER_REPLACED_SIGNAL,
- MEDIA_SOURCE_NUM_SIGNALS
-};
-static guint media_source_signals[MEDIA_SOURCE_NUM_SIGNALS] = {0};
-typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate;
-
-#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ())
-#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank))
-#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-
-typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank;
-typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass;
-typedef struct _DatabaseSourceHoldingTankPrivate DatabaseSourceHoldingTankPrivate;
-
-#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ())
-#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank))
-#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-
-typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank;
-typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass;
-typedef struct _MediaSourceHoldingTankPrivate MediaSourceHoldingTankPrivate;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-typedef struct _TransactionControllerPrivate TransactionControllerPrivate;
-
-#define TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER (media_source_transaction_controller_get_type ())
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController))
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass))
-#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER))
-#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER))
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass))
-
-typedef struct _MediaSourceTransactionController MediaSourceTransactionController;
-typedef struct _MediaSourceTransactionControllerClass MediaSourceTransactionControllerClass;
-typedef struct _MediaSourceTransactionControllerPrivate MediaSourceTransactionControllerPrivate;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-typedef struct _MediaSourceCollectionPrivate MediaSourceCollectionPrivate;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define TYPE_MEDIA_MONITOR (media_monitor_get_type ())
-#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor))
-#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR))
-#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR))
-#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-
-typedef struct _MediaMonitor MediaMonitor;
-typedef struct _MediaMonitorClass MediaMonitorClass;
-#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL)))
-
-#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 (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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-#define _import_id_free0(var) ((var == NULL) ? NULL : (var = (import_id_free (var), NULL)))
-
-#define TYPE_AGGREGATE_PROGRESS_MONITOR (aggregate_progress_monitor_get_type ())
-#define AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitor))
-#define AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass))
-#define IS_AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR))
-#define IS_AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR))
-#define AGGREGATE_PROGRESS_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass))
-
-typedef struct _AggregateProgressMonitor AggregateProgressMonitor;
-typedef struct _AggregateProgressMonitorClass AggregateProgressMonitorClass;
-#define _aggregate_progress_monitor_unref0(var) ((var == NULL) ? NULL : (var = (aggregate_progress_monitor_unref (var), NULL)))
-
-#define TOMBSTONE_TYPE_REASON (tombstone_reason_get_type ())
-enum {
- MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_STARTING_SIGNAL,
- MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_COMPLETED_SIGNAL,
- MEDIA_SOURCE_COLLECTION_MASTER_FILE_REPLACED_SIGNAL,
- MEDIA_SOURCE_COLLECTION_TRASHCAN_CONTENTS_ALTERED_SIGNAL,
- MEDIA_SOURCE_COLLECTION_IMPORT_ROLL_ALTERED_SIGNAL,
- MEDIA_SOURCE_COLLECTION_OFFLINE_CONTENTS_ALTERED_SIGNAL,
- MEDIA_SOURCE_COLLECTION_FLAGGED_CONTENTS_ALTERED_SIGNAL,
- MEDIA_SOURCE_COLLECTION_NUM_SIGNALS
-};
-static guint media_source_collection_signals[MEDIA_SOURCE_COLLECTION_NUM_SIGNALS] = {0};
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-typedef struct _MediaCollectionRegistryPrivate MediaCollectionRegistryPrivate;
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-
-#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ())
-#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor))
-#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR))
-#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR))
-#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-
-typedef struct _DirectoryMonitor DirectoryMonitor;
-typedef struct _DirectoryMonitorClass DirectoryMonitorClass;
-
-#define TYPE_LIBRARY_MONITOR (library_monitor_get_type ())
-#define LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitor))
-#define LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR, LibraryMonitorClass))
-#define IS_LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR))
-#define IS_LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR))
-#define LIBRARY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitorClass))
-
-typedef struct _LibraryMonitor LibraryMonitor;
-typedef struct _LibraryMonitorClass LibraryMonitorClass;
-
-#define TYPE_LIBRARY_MONITOR_POOL (library_monitor_pool_get_type ())
-#define LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool))
-#define LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass))
-#define IS_LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR_POOL))
-#define IS_LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR_POOL))
-#define LIBRARY_MONITOR_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass))
-
-typedef struct _LibraryMonitorPool LibraryMonitorPool;
-typedef struct _LibraryMonitorPoolClass LibraryMonitorPoolClass;
-#define _library_monitor_pool_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_pool_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-typedef struct _ParamSpecMediaCollectionRegistry ParamSpecMediaCollectionRegistry;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _BackingFileState {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingFileStatePrivate * priv;
- gchar* filepath;
- gint64 filesize;
- time_t modification_time;
- gchar* md5;
-};
-
-struct _BackingFileStateClass {
- GTypeClass parent_class;
- void (*finalize) (BackingFileState *self);
-};
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-struct _ParamSpecBackingFileState {
- GParamSpec parent_instance;
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-struct _ThumbnailSource {
- DataSource parent_instance;
- ThumbnailSourcePrivate * priv;
-};
-
-struct _ThumbnailSourceClass {
- DataSourceClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailSource* self);
- GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- gchar* (*get_representative_id) (ThumbnailSource* self);
- PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self);
- void (*thumbnail_altered) (ThumbnailSource* self);
-};
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _EventID {
- gint64 id;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _MediaSource {
- ThumbnailSource parent_instance;
- MediaSourcePrivate * priv;
-};
-
-struct _MediaSourceClass {
- ThumbnailSourceClass parent_class;
- void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
- gboolean (*set_event_id) (MediaSource* self, EventID* id);
- gchar* (*get_basename) (MediaSource* self);
- GFile* (*get_file) (MediaSource* self);
- GFile* (*get_master_file) (MediaSource* self);
- guint64 (*get_master_filesize) (MediaSource* self);
- guint64 (*get_filesize) (MediaSource* self);
- time_t (*get_timestamp) (MediaSource* self);
- BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1);
- gchar* (*get_title) (MediaSource* self);
- gchar* (*get_comment) (MediaSource* self);
- void (*set_title) (MediaSource* self, const gchar* title);
- gboolean (*set_comment) (MediaSource* self, const gchar* comment);
- Rating (*get_rating) (MediaSource* self);
- void (*set_rating) (MediaSource* self, Rating rating);
- void (*increase_rating) (MediaSource* self);
- void (*decrease_rating) (MediaSource* self);
- void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result);
- GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error);
- gboolean (*is_trashed) (MediaSource* self);
- void (*trash) (MediaSource* self);
- void (*untrash) (MediaSource* self);
- gboolean (*is_offline) (MediaSource* self);
- void (*mark_offline) (MediaSource* self);
- void (*mark_online) (MediaSource* self);
- gchar* (*get_master_md5) (MediaSource* self);
- void (*get_event_id) (MediaSource* self, EventID* result);
- time_t (*get_exposure_time) (MediaSource* self);
- void (*get_import_id) (MediaSource* self, ImportID* result);
- void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
-};
-
-struct _MediaSourcePrivate {
- Event* event;
- gchar* indexable_keywords;
-};
-
-typedef enum {
- PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0,
- PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
- PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
- PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
- PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
-} PrepareInputTextOptions;
-
-struct _SourceHoldingTank {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceHoldingTankPrivate * priv;
-};
-
-struct _SourceHoldingTankClass {
- GTypeClass parent_class;
- void (*finalize) (SourceHoldingTank *self);
- void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
- void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
-};
-
-struct _DatabaseSourceHoldingTank {
- SourceHoldingTank parent_instance;
- DatabaseSourceHoldingTankPrivate * priv;
-};
-
-struct _DatabaseSourceHoldingTankClass {
- SourceHoldingTankClass parent_class;
-};
-
-struct _MediaSourceHoldingTank {
- DatabaseSourceHoldingTank parent_instance;
- MediaSourceHoldingTankPrivate * priv;
-};
-
-struct _MediaSourceHoldingTankClass {
- DatabaseSourceHoldingTankClass parent_class;
-};
-
-struct _MediaSourceHoldingTankPrivate {
- GeeHashMap* master_file_map;
-};
-
-typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data);
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-struct _TransactionController {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TransactionControllerPrivate * priv;
-};
-
-struct _TransactionControllerClass {
- GTypeClass parent_class;
- void (*finalize) (TransactionController *self);
- void (*begin_impl) (TransactionController* self, GError** error);
- void (*commit_impl) (TransactionController* self, GError** error);
-};
-
-struct _MediaSourceTransactionController {
- TransactionController parent_instance;
- MediaSourceTransactionControllerPrivate * priv;
-};
-
-struct _MediaSourceTransactionControllerClass {
- TransactionControllerClass parent_class;
-};
-
-struct _MediaSourceTransactionControllerPrivate {
- MediaSourceCollection* sources;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _MediaSourceCollection {
- DatabaseSourceCollection parent_instance;
- MediaSourceCollectionPrivate * priv;
-};
-
-struct _MediaSourceCollectionClass {
- DatabaseSourceCollectionClass parent_class;
- MediaSourceHoldingTank* (*create_trashcan) (MediaSourceCollection* self);
- MediaSourceHoldingTank* (*create_offline_bin) (MediaSourceCollection* self);
- MediaMonitor* (*create_media_monitor) (MediaSourceCollection* self, Workers* workers, GCancellable* cancellable);
- gchar* (*get_typename) (MediaSourceCollection* self);
- gboolean (*is_file_recognized) (MediaSourceCollection* self, GFile* file);
- MediaSource* (*fetch_by_numeric_id) (MediaSourceCollection* self, gint64 numeric_id);
- void (*notify_import_roll_altered) (MediaSourceCollection* self);
- void (*notify_flagged_contents_altered) (MediaSourceCollection* self);
- void (*notify_media_import_starting) (MediaSourceCollection* self, GeeCollection* media);
- void (*notify_media_import_completed) (MediaSourceCollection* self, GeeCollection* media);
- MediaSource* (*fetch_by_source_id) (MediaSourceCollection* self, const gchar* source_id);
- GeeCollection* (*get_event_source_ids) (MediaSourceCollection* self, EventID* event_id);
- void (*import_many) (MediaSourceCollection* self, GeeCollection* media);
- void (*postprocess_imported_media) (MediaSourceCollection* self, GeeCollection* media);
- void (*media_import_starting) (MediaSourceCollection* self, GeeCollection* media);
- void (*media_import_completed) (MediaSourceCollection* self, GeeCollection* media);
- void (*master_file_replaced) (MediaSourceCollection* self, MediaSource* media, GFile* old_file, GFile* new_file);
- void (*trashcan_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed);
- void (*import_roll_altered) (MediaSourceCollection* self);
- void (*offline_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed);
- void (*flagged_contents_altered) (MediaSourceCollection* self);
- TransactionController* (*get_transaction_controller) (MediaSourceCollection* self);
-};
-
-struct _MediaSourceCollectionPrivate {
- MediaSourceHoldingTank* trashcan;
- MediaSourceHoldingTank* offline_bin;
- GeeHashMap* by_master_file;
- GeeMultiMap* import_rolls;
- GeeTreeSet* sorted_import_ids;
- GeeSet* flagged;
-};
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-typedef enum {
- TOMBSTONE_REASON_REMOVED_BY_USER = 0,
- TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE = 1
-} TombstoneReason;
-
-struct _MediaCollectionRegistry {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MediaCollectionRegistryPrivate * priv;
-};
-
-struct _MediaCollectionRegistryClass {
- GTypeClass parent_class;
- void (*finalize) (MediaCollectionRegistry *self);
-};
-
-struct _MediaCollectionRegistryPrivate {
- GeeArrayList* all;
- GeeHashMap* by_typename;
-};
-
-struct _ParamSpecMediaCollectionRegistry {
- GParamSpec parent_instance;
-};
-
-
-static gpointer backing_file_state_parent_class = NULL;
-static gpointer media_source_parent_class = NULL;
-extern EventSourceCollection* event_global;
-static IndexableIface * media_source_indexable_parent_iface = NULL;
-static gpointer media_source_holding_tank_parent_class = NULL;
-static gpointer media_source_transaction_controller_parent_class = NULL;
-static gpointer media_source_collection_parent_class = NULL;
-static gpointer media_collection_registry_parent_class = NULL;
-static MediaCollectionRegistry* media_collection_registry_instance;
-static MediaCollectionRegistry* media_collection_registry_instance = NULL;
-extern gboolean commandline_options_no_runtime_monitoring;
-
-gpointer backing_file_state_ref (gpointer instance);
-void backing_file_state_unref (gpointer instance);
-GParamSpec* param_spec_backing_file_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_file_state (GValue* value,
- gpointer v_object);
-void value_take_backing_file_state (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_file_state (const GValue* value);
-GType backing_file_state_get_type (void) G_GNUC_CONST;
-BackingFileState* backing_file_state_new (const gchar* filepath,
- gint64 filesize,
- time_t modification_time,
- const gchar* md5);
-BackingFileState* backing_file_state_construct (GType object_type,
- const gchar* filepath,
- gint64 filesize,
- time_t modification_time,
- const gchar* md5);
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-BackingFileState* backing_file_state_new_from_photo_row (BackingPhotoRow* photo_row,
- const gchar* md5);
-BackingFileState* backing_file_state_construct_from_photo_row (GType object_type,
- BackingPhotoRow* photo_row,
- const gchar* md5);
-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);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType orientation_get_type (void) G_GNUC_CONST;
-GFile* backing_file_state_get_file (BackingFileState* self);
-static void backing_file_state_finalize (BackingFileState * obj);
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType indexable_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-GType rating_get_type (void) G_GNUC_CONST;
-GType photo_exception_get_type (void) G_GNUC_CONST;
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-#define MEDIA_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE, MediaSourcePrivate))
-MediaSource* media_source_construct (GType object_type,
- gint64 object_id);
-ThumbnailSource* thumbnail_source_construct (GType object_type,
- gint64 object_id);
-guint64 media_source_internal_add_flags (guint64 flags,
- guint64 selector);
-guint64 media_source_internal_remove_flags (guint64 flags,
- guint64 selector);
-gboolean media_source_internal_is_flag_set (guint64 flags,
- guint64 selector);
-void media_source_notify_master_replaced (MediaSource* self,
- GFile* old_file,
- GFile* new_file);
-static void media_source_real_notify_master_replaced (MediaSource* self,
- GFile* old_file,
- GFile* new_file);
-static void media_source_real_notify_altered (DataObject* base,
- Alteration* alteration);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-static void media_source_update_indexable_keywords (MediaSource* self);
-Alteration* alteration_compress (Alteration* self,
- Alteration* other);
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-static void media_source_real_notify_membership_changed (DataObject* base,
- DataCollection* collection);
-void data_object_notify_membership_changed (DataObject* self,
- DataCollection* collection);
-gchar* media_source_get_title (MediaSource* self);
-gchar* media_source_get_basename (MediaSource* self);
-gchar* media_source_get_comment (MediaSource* self);
-gchar* indexable_prepare_indexable_strings (gchar** strs,
- int strs_length1);
-static const gchar* media_source_real_get_indexable_keywords (Indexable* base);
-gboolean media_source_set_event_id (MediaSource* self,
- EventID* id);
-static gboolean media_source_real_set_event_id (MediaSource* self,
- EventID* id);
-gboolean media_source_delete_original_file (MediaSource* self);
-GFile* media_source_get_master_file (MediaSource* self);
-GFile* app_dirs_get_import_dir (void);
-gboolean query_is_directory_empty (GFile* dir,
- GError** error);
-static gchar* media_source_real_get_name (DataObject* base);
-gboolean is_string_empty (const gchar* s);
-static gchar* media_source_real_get_basename (MediaSource* self);
-GFile* media_source_get_file (MediaSource* self);
-static GFile* media_source_real_get_file (MediaSource* self);
-static GFile* media_source_real_get_master_file (MediaSource* self);
-guint64 media_source_get_master_filesize (MediaSource* self);
-static guint64 media_source_real_get_master_filesize (MediaSource* self);
-guint64 media_source_get_filesize (MediaSource* self);
-static guint64 media_source_real_get_filesize (MediaSource* self);
-time_t media_source_get_timestamp (MediaSource* self);
-static time_t media_source_real_get_timestamp (MediaSource* self);
-BackingFileState** media_source_get_backing_files_state (MediaSource* self,
- int* result_length1);
-static BackingFileState** media_source_real_get_backing_files_state (MediaSource* self,
- int* result_length1);
-static gchar* media_source_real_get_title (MediaSource* self);
-static gchar* media_source_real_get_comment (MediaSource* self);
-void media_source_set_title (MediaSource* self,
- const gchar* title);
-static void media_source_real_set_title (MediaSource* self,
- const gchar* title);
-gboolean media_source_set_comment (MediaSource* self,
- const gchar* comment);
-static gboolean media_source_real_set_comment (MediaSource* self,
- const gchar* comment);
-gchar* media_source_prep_title (const gchar* title);
-GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
-gchar* prepare_input_text (const gchar* text,
- PrepareInputTextOptions options,
- gint dest_length);
-#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024
-gchar* media_source_prep_comment (const gchar* comment);
-Rating media_source_get_rating (MediaSource* self);
-static Rating media_source_real_get_rating (MediaSource* self);
-void media_source_set_rating (MediaSource* self,
- Rating rating);
-static void media_source_real_set_rating (MediaSource* self,
- Rating rating);
-void media_source_increase_rating (MediaSource* self);
-static void media_source_real_increase_rating (MediaSource* self);
-void media_source_decrease_rating (MediaSource* self);
-static void media_source_real_decrease_rating (MediaSource* self);
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-static void media_source_real_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-GdkPixbuf* media_source_get_preview_pixbuf (MediaSource* self,
- Scaling* scaling,
- GError** error);
-static GdkPixbuf* media_source_real_get_preview_pixbuf (MediaSource* self,
- Scaling* scaling,
- GError** error);
-gboolean media_source_is_trashed (MediaSource* self);
-static gboolean media_source_real_is_trashed (MediaSource* self);
-void media_source_trash (MediaSource* self);
-static void media_source_real_trash (MediaSource* self);
-void media_source_untrash (MediaSource* self);
-static void media_source_real_untrash (MediaSource* self);
-gboolean media_source_is_offline (MediaSource* self);
-static gboolean media_source_real_is_offline (MediaSource* self);
-void media_source_mark_offline (MediaSource* self);
-static void media_source_real_mark_offline (MediaSource* self);
-void media_source_mark_online (MediaSource* self);
-static void media_source_real_mark_online (MediaSource* self);
-gchar* media_source_get_master_md5 (MediaSource* self);
-static gchar* media_source_real_get_master_md5 (MediaSource* self);
-void media_source_get_event_id (MediaSource* self,
- EventID* result);
-static void media_source_real_get_event_id (MediaSource* self,
- EventID* result);
-Event* media_source_get_event (MediaSource* self);
-gboolean event_id_is_valid (EventID *self);
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType event_source_collection_get_type (void) G_GNUC_CONST;
-Event* event_source_collection_fetch (EventSourceCollection* self,
- EventID* event_id);
-gboolean media_source_set_event (MediaSource* self,
- Event* new_event);
-void event_get_event_id (Event* self,
- EventID* result);
-#define EVENT_ID_INVALID ((gint64) -1)
-void event_id_init (EventID *self,
- gint64 id);
-void event_detach (Event* self,
- MediaSource* source);
-void event_attach (Event* self,
- MediaSource* source);
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-void media_source_set_many_to_event (GeeCollection* media_sources,
- Event* event,
- TransactionController* controller,
- GError** error);
-void transaction_controller_begin (TransactionController* self);
-void event_attach_many (Event* self,
- GeeCollection* media);
-void transaction_controller_commit (TransactionController* self);
-time_t media_source_get_exposure_time (MediaSource* self);
-static time_t media_source_real_get_exposure_time (MediaSource* self);
-void media_source_get_import_id (MediaSource* self,
- ImportID* result);
-static void media_source_real_get_import_id (MediaSource* self,
- ImportID* result);
-static void media_source_real_master_replaced (MediaSource* self,
- GFile* old_file,
- GFile* new_file);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void media_source_finalize (GObject * obj);
-GType database_source_holding_tank_get_type (void) G_GNUC_CONST;
-GType media_source_holding_tank_get_type (void) G_GNUC_CONST;
-#define MEDIA_SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankPrivate))
-guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean file_equal (GFile* a,
- GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-MediaSourceHoldingTank* media_source_holding_tank_new (MediaSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-MediaSourceHoldingTank* media_source_holding_tank_construct (GType object_type,
- MediaSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-DatabaseSourceHoldingTank* database_source_holding_tank_new (SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-DatabaseSourceHoldingTank* database_source_holding_tank_construct (GType object_type,
- SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self,
- GFile* file);
-MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self,
- const gchar* md5);
-static void media_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base,
- GeeCollection* added,
- GeeCollection* removed);
-static void media_source_holding_tank_on_master_source_replaced (MediaSourceHoldingTank* self,
- MediaSource* media_source,
- GFile* old_file,
- GFile* new_file);
-static void _media_source_holding_tank_on_master_source_replaced_media_source_master_replaced (MediaSource* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self);
-void source_holding_tank_notify_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void media_source_holding_tank_finalize (SourceHoldingTank * obj);
-GType media_source_transaction_controller_get_type (void) G_GNUC_CONST;
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerPrivate))
-MediaSourceTransactionController* media_source_transaction_controller_new (MediaSourceCollection* sources);
-MediaSourceTransactionController* media_source_transaction_controller_construct (GType object_type,
- MediaSourceCollection* sources);
-TransactionController* transaction_controller_construct (GType object_type);
-static void media_source_transaction_controller_real_begin_impl (TransactionController* base,
- GError** error);
-void database_table_begin_transaction (void);
-void data_collection_freeze_notifications (DataCollection* self);
-static void media_source_transaction_controller_real_commit_impl (TransactionController* base,
- GError** error);
-void data_collection_thaw_notifications (DataCollection* self);
-GQuark database_error_quark (void);
-void database_table_commit_transaction (GError** error);
-static void media_source_transaction_controller_finalize (TransactionController * obj);
-GType marker_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-GType media_monitor_get_type (void) G_GNUC_CONST;
-#define MEDIA_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionPrivate))
-gint import_id_compare_func (ImportID* a,
- ImportID* b);
-static gint _import_id_compare_func_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-MediaSourceCollection* media_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-DatabaseSourceCollection* database_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-MediaSourceHoldingTank* media_source_collection_create_trashcan (MediaSourceCollection* self);
-MediaSourceHoldingTank* media_source_collection_create_offline_bin (MediaSourceCollection* self);
-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;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-void media_source_collection_filter_media (GeeCollection* media,
- GeeCollection* photos,
- GeeCollection* videos);
-gchar* data_object_to_string (DataObject* self);
-void media_source_collection_count_media (GeeCollection* media,
- gint* photo_count,
- gint* video_count);
-gboolean media_source_collection_has_photo (GeeCollection* media);
-gboolean media_source_collection_has_video (GeeCollection* media);
-static MediaSourceHoldingTank* media_source_collection_real_create_trashcan (MediaSourceCollection* self);
-static MediaSourceHoldingTank* media_source_collection_real_create_offline_bin (MediaSourceCollection* self);
-MediaMonitor* media_source_collection_create_media_monitor (MediaSourceCollection* self,
- Workers* workers,
- GCancellable* cancellable);
-static MediaMonitor* media_source_collection_real_create_media_monitor (MediaSourceCollection* self,
- Workers* workers,
- GCancellable* cancellable);
-gchar* media_source_collection_get_typename (MediaSourceCollection* self);
-static gchar* media_source_collection_real_get_typename (MediaSourceCollection* self);
-gboolean media_source_collection_is_file_recognized (MediaSourceCollection* self,
- GFile* file);
-static gboolean media_source_collection_real_is_file_recognized (MediaSourceCollection* self,
- GFile* file);
-MediaSourceHoldingTank* media_source_collection_get_trashcan (MediaSourceCollection* self);
-MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self);
-MediaSource* media_source_collection_fetch_by_numeric_id (MediaSourceCollection* self,
- gint64 numeric_id);
-static MediaSource* media_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* self,
- gint64 numeric_id);
-void media_source_collection_notify_import_roll_altered (MediaSourceCollection* self);
-static void media_source_collection_real_notify_import_roll_altered (MediaSourceCollection* self);
-void media_source_collection_notify_flagged_contents_altered (MediaSourceCollection* self);
-static void media_source_collection_real_notify_flagged_contents_altered (MediaSourceCollection* self);
-void media_source_collection_notify_media_import_starting (MediaSourceCollection* self,
- GeeCollection* media);
-static void media_source_collection_real_notify_media_import_starting (MediaSourceCollection* self,
- GeeCollection* media);
-void media_source_collection_notify_media_import_completed (MediaSourceCollection* self,
- GeeCollection* media);
-static void media_source_collection_real_notify_media_import_completed (MediaSourceCollection* self,
- GeeCollection* media);
-static void media_source_collection_real_items_altered (DataCollection* base,
- GeeMap* items);
-gboolean alteration_has_subject (Alteration* self,
- const gchar* subject);
-gboolean source_holding_tank_contains (SourceHoldingTank* self,
- DataSource* source);
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-void source_holding_tank_unlink_and_hold (SourceHoldingTank* self,
- GeeCollection* unlink);
-static void media_source_collection_real_notify_contents_altered (DataCollection* base,
- GeeIterable* added,
- GeeIterable* removed);
-static void media_source_collection_on_master_replaced (MediaSourceCollection* self,
- MediaSource* media,
- GFile* old_file,
- GFile* new_file);
-static void _media_source_collection_on_master_replaced_media_source_master_replaced (MediaSource* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self);
-gboolean import_id_is_valid (ImportID *self);
-void data_collection_notify_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed);
-MediaSource* media_source_collection_fetch_by_master_file (MediaSourceCollection* self,
- GFile* file);
-MediaSource* media_source_collection_fetch_by_source_id (MediaSourceCollection* self,
- const gchar* source_id);
-static MediaSource* media_source_collection_real_fetch_by_source_id (MediaSourceCollection* self,
- const gchar* source_id);
-gint64 parse_int64 (const gchar* str,
- gint num_base);
-GeeCollection* media_source_collection_get_event_source_ids (MediaSourceCollection* self,
- EventID* event_id);
-static GeeCollection* media_source_collection_real_get_event_source_ids (MediaSourceCollection* self,
- EventID* event_id);
-GeeCollection* media_source_collection_get_trashcan_contents (MediaSourceCollection* self);
-GeeCollection* source_holding_tank_get_all (SourceHoldingTank* self);
-GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self);
-GeeCollection* media_source_collection_get_flagged (MediaSourceCollection* self);
-GeeSortedSet* media_source_collection_get_import_roll_ids (MediaSourceCollection* self);
-ImportID* media_source_collection_get_last_import_id (MediaSourceCollection* self);
-GeeCollection* media_source_collection_get_import_roll (MediaSourceCollection* self,
- ImportID* import_id);
-void media_source_collection_add_many_to_trash (MediaSourceCollection* self,
- GeeCollection* sources);
-void source_holding_tank_add_many (SourceHoldingTank* self,
- GeeCollection* many);
-void media_source_collection_add_many_to_offline (MediaSourceCollection* self,
- GeeCollection* sources);
-gint media_source_collection_get_trashcan_count (MediaSourceCollection* self);
-gint source_holding_tank_get_count (SourceHoldingTank* self);
-void media_source_collection_import_many (MediaSourceCollection* self,
- GeeCollection* media);
-static void media_source_collection_real_import_many (MediaSourceCollection* self,
- GeeCollection* media);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-void media_source_collection_postprocess_imported_media (MediaSourceCollection* self,
- GeeCollection* media);
-static void media_source_collection_real_postprocess_imported_media (MediaSourceCollection* self,
- GeeCollection* media);
-void media_source_collection_remove_from_app (MediaSourceCollection* self,
- GeeCollection* sources,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed);
-gpointer aggregate_progress_monitor_ref (gpointer instance);
-void aggregate_progress_monitor_unref (gpointer instance);
-GParamSpec* param_spec_aggregate_progress_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_aggregate_progress_monitor (GValue* value,
- gpointer v_object);
-void value_take_aggregate_progress_monitor (GValue* value,
- gpointer v_object);
-gpointer value_get_aggregate_progress_monitor (const GValue* value);
-GType aggregate_progress_monitor_get_type (void) G_GNUC_CONST;
-AggregateProgressMonitor* aggregate_progress_monitor_new (guint64 grand_total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target);
-AggregateProgressMonitor* aggregate_progress_monitor_construct (GType object_type,
- guint64 grand_total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target);
-gboolean aggregate_progress_monitor_monitor (AggregateProgressMonitor* self,
- guint64 count,
- guint64 total);
-static gboolean _aggregate_progress_monitor_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self);
-void source_holding_tank_destroy_orphans (SourceHoldingTank* self,
- GeeList* destroy,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed);
-gint source_collection_destroy_marked (SourceCollection* self,
- Marker* marker,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed);
-Marker* data_collection_mark_many (DataCollection* self,
- GeeCollection* objects);
-GType tombstone_reason_get_type (void) G_GNUC_CONST;
-void tombstone_entomb_many_sources (GeeCollection* sources,
- TombstoneReason reason,
- GError** error);
-void app_window_database_error (GError* err);
-void media_source_collection_delete_backing_files (MediaSourceCollection* self,
- GeeCollection* sources,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_deleted);
-TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self);
-static void media_source_collection_real_media_import_starting (MediaSourceCollection* self,
- GeeCollection* media);
-static void media_source_collection_real_media_import_completed (MediaSourceCollection* self,
- GeeCollection* media);
-static void media_source_collection_real_master_file_replaced (MediaSourceCollection* self,
- MediaSource* media,
- GFile* old_file,
- GFile* new_file);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void media_source_collection_real_trashcan_contents_altered (MediaSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void media_source_collection_real_import_roll_altered (MediaSourceCollection* self);
-static void media_source_collection_real_offline_contents_altered (MediaSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void media_source_collection_real_flagged_contents_altered (MediaSourceCollection* self);
-static void media_source_collection_finalize (DataCollection * obj);
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-#define MEDIA_COLLECTION_REGISTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryPrivate))
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-static void media_collection_registry_on_init_done (MediaCollectionRegistry* self);
-static void _media_collection_registry_on_init_done_application_init_done (Application* _sender,
- gpointer self);
-#define MEDIA_COLLECTION_REGISTRY_LIBRARY_MONITOR_START_DELAY_MSEC 1000
-static MediaCollectionRegistry* media_collection_registry_new (void);
-static MediaCollectionRegistry* media_collection_registry_construct (GType object_type);
-GType directory_monitor_get_type (void) G_GNUC_CONST;
-GType library_monitor_get_type (void) G_GNUC_CONST;
-LibraryMonitor* library_monitor_new (GFile* root,
- gboolean recurse,
- gboolean monitoring);
-LibraryMonitor* library_monitor_construct (GType object_type,
- GFile* root,
- gboolean recurse,
- gboolean monitoring);
-gpointer library_monitor_pool_ref (gpointer instance);
-void library_monitor_pool_unref (gpointer instance);
-GParamSpec* param_spec_library_monitor_pool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_library_monitor_pool (GValue* value,
- gpointer v_object);
-void value_take_library_monitor_pool (GValue* value,
- gpointer v_object);
-gpointer value_get_library_monitor_pool (const GValue* value);
-GType library_monitor_pool_get_type (void) G_GNUC_CONST;
-LibraryMonitorPool* library_monitor_pool_get_instance (void);
-void library_monitor_pool_replace (LibraryMonitorPool* self,
- LibraryMonitor* replacement,
- gint start_msec_delay);
-void media_collection_registry_init (void);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-static void media_collection_registry_on_import_directory_changed (void);
-static void _media_collection_registry_on_import_directory_changed_configuration_facade_import_directory_changed (ConfigurationFacade* _sender,
- gpointer self);
-void media_collection_registry_terminate (void);
-LibraryMonitor* library_monitor_pool_get_monitor (LibraryMonitorPool* self);
-GFile* directory_monitor_get_root (DirectoryMonitor* self);
-void library_files_select_copy_function (void);
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-gchar* media_collection_registry_get_typename_from_source_id (const gchar* source_id);
-#define PHOTO_TYPENAME "thumb"
-void media_collection_registry_register_collection (MediaCollectionRegistry* self,
- MediaSourceCollection* collection);
-MediaSourceCollection* media_collection_registry_get_collection (MediaCollectionRegistry* self,
- const gchar* typename);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-void media_collection_registry_freeze_all (MediaCollectionRegistry* self);
-void media_collection_registry_thaw_all (MediaCollectionRegistry* self);
-void media_collection_registry_begin_transaction_on_all (MediaCollectionRegistry* self);
-void media_collection_registry_commit_transaction_on_all (MediaCollectionRegistry* self);
-MediaSource* media_collection_registry_fetch_media (MediaCollectionRegistry* self,
- const gchar* source_id);
-ImportID* media_collection_registry_get_last_import_id (MediaCollectionRegistry* self);
-#define IMPORT_ID_INVALID ((gint64) 0)
-void import_id_init (ImportID *self,
- gint64 id);
-GeeCollection* media_collection_registry_get_source_ids_for_event_id (MediaCollectionRegistry* self,
- EventID* event_id);
-MediaSourceCollection* media_collection_registry_get_collection_for_file (MediaCollectionRegistry* self,
- GFile* file);
-gboolean media_collection_registry_is_valid_source_id (MediaCollectionRegistry* self,
- const gchar* source_id);
-#define VIDEO_TYPENAME "video"
-static void media_collection_registry_finalize (MediaCollectionRegistry * 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 gint _vala_array_length (gpointer array);
-
-
-BackingFileState*
-backing_file_state_construct (GType object_type,
- const gchar* filepath,
- gint64 filesize,
- time_t modification_time,
- const gchar* md5)
-{
- BackingFileState* self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 13 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 13 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = (BackingFileState*) g_type_create_instance (object_type);
-#line 14 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = g_strdup (filepath);
-#line 14 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (self->filepath);
-#line 14 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->filepath = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->filesize = filesize;
-#line 16 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->modification_time = modification_time;
-#line 17 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = g_strdup (md5);
-#line 17 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (self->md5);
-#line 17 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->md5 = _tmp1_;
-#line 13 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self;
-#line 1718 "MediaDataRepresentation.c"
-}
-
-
-BackingFileState*
-backing_file_state_new (const gchar* filepath,
- gint64 filesize,
- time_t modification_time,
- const gchar* md5)
-{
-#line 13 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return backing_file_state_construct (TYPE_BACKING_FILE_STATE, filepath, filesize, modification_time, md5);
-#line 1730 "MediaDataRepresentation.c"
-}
-
-
-BackingFileState*
-backing_file_state_construct_from_photo_row (GType object_type,
- BackingPhotoRow* photo_row,
- const gchar* md5)
-{
- BackingFileState* self = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gint64 _tmp2_;
- time_t _tmp3_;
- gchar* _tmp4_;
-#line 20 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_BACKING_PHOTO_ROW (photo_row), NULL);
-#line 20 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = (BackingFileState*) g_type_create_instance (object_type);
-#line 21 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = photo_row->filepath;
-#line 21 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 21 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (self->filepath);
-#line 21 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->filepath = _tmp1_;
-#line 22 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = photo_row->filesize;
-#line 22 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->filesize = _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = photo_row->timestamp;
-#line 23 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->modification_time = _tmp3_;
-#line 24 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = g_strdup (md5);
-#line 24 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (self->md5);
-#line 24 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->md5 = _tmp4_;
-#line 20 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self;
-#line 1773 "MediaDataRepresentation.c"
-}
-
-
-BackingFileState*
-backing_file_state_new_from_photo_row (BackingPhotoRow* photo_row,
- const gchar* md5)
-{
-#line 20 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return backing_file_state_construct_from_photo_row (TYPE_BACKING_FILE_STATE, photo_row, md5);
-#line 1783 "MediaDataRepresentation.c"
-}
-
-
-GFile*
-backing_file_state_get_file (BackingFileState* self)
-{
- GFile* result = NULL;
- const gchar* _tmp0_;
- GFile* _tmp1_;
-#line 27 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_BACKING_FILE_STATE (self), NULL);
-#line 28 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->filepath;
-#line 28 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = g_file_new_for_path (_tmp0_);
-#line 28 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp1_;
-#line 28 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 1803 "MediaDataRepresentation.c"
-}
-
-
-static void
-value_backing_file_state_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = NULL;
-#line 1812 "MediaDataRepresentation.c"
-}
-
-
-static void
-value_backing_file_state_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- backing_file_state_unref (value->data[0].v_pointer);
-#line 1823 "MediaDataRepresentation.c"
- }
-}
-
-
-static void
-value_backing_file_state_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- dest_value->data[0].v_pointer = backing_file_state_ref (src_value->data[0].v_pointer);
-#line 1836 "MediaDataRepresentation.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1840 "MediaDataRepresentation.c"
- }
-}
-
-
-static gpointer
-value_backing_file_state_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return value->data[0].v_pointer;
-#line 1850 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-value_backing_file_state_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (collect_values[0].v_pointer) {
-#line 1862 "MediaDataRepresentation.c"
- BackingFileState * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1869 "MediaDataRepresentation.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 1873 "MediaDataRepresentation.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = backing_file_state_ref (object);
-#line 1877 "MediaDataRepresentation.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = NULL;
-#line 1881 "MediaDataRepresentation.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 1885 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-value_backing_file_state_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- BackingFileState ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1901 "MediaDataRepresentation.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- *object_p = NULL;
-#line 1907 "MediaDataRepresentation.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- *object_p = value->data[0].v_pointer;
-#line 1911 "MediaDataRepresentation.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- *object_p = backing_file_state_ref (value->data[0].v_pointer);
-#line 1915 "MediaDataRepresentation.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 1919 "MediaDataRepresentation.c"
-}
-
-
-GParamSpec*
-param_spec_backing_file_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecBackingFileState* spec;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_BACKING_FILE_STATE), NULL);
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return G_PARAM_SPEC (spec);
-#line 1939 "MediaDataRepresentation.c"
-}
-
-
-gpointer
-value_get_backing_file_state (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_FILE_STATE), NULL);
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return value->data[0].v_pointer;
-#line 1950 "MediaDataRepresentation.c"
-}
-
-
-void
-value_set_backing_file_state (GValue* value,
- gpointer v_object)
-{
- BackingFileState * old;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_FILE_STATE));
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKING_FILE_STATE));
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- 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/MediaDataRepresentation.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- backing_file_state_ref (value->data[0].v_pointer);
-#line 1973 "MediaDataRepresentation.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = NULL;
-#line 1977 "MediaDataRepresentation.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- backing_file_state_unref (old);
-#line 1983 "MediaDataRepresentation.c"
- }
-}
-
-
-void
-value_take_backing_file_state (GValue* value,
- gpointer v_object)
-{
- BackingFileState * old;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_FILE_STATE));
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKING_FILE_STATE));
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- 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/MediaDataRepresentation.vala"
- value->data[0].v_pointer = v_object;
-#line 2005 "MediaDataRepresentation.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = NULL;
-#line 2009 "MediaDataRepresentation.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- backing_file_state_unref (old);
-#line 2015 "MediaDataRepresentation.c"
- }
-}
-
-
-static void
-backing_file_state_class_init (BackingFileStateClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- backing_file_state_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((BackingFileStateClass *) klass)->finalize = backing_file_state_finalize;
-#line 2027 "MediaDataRepresentation.c"
-}
-
-
-static void
-backing_file_state_instance_init (BackingFileState * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->ref_count = 1;
-#line 2036 "MediaDataRepresentation.c"
-}
-
-
-static void
-backing_file_state_finalize (BackingFileState * obj)
-{
- BackingFileState * self;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKING_FILE_STATE, BackingFileState);
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_handlers_destroy (self);
-#line 8 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (self->filepath);
-#line 11 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (self->md5);
-#line 2052 "MediaDataRepresentation.c"
-}
-
-
-GType
-backing_file_state_get_type (void)
-{
- static volatile gsize backing_file_state_type_id__volatile = 0;
- if (g_once_init_enter (&backing_file_state_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_backing_file_state_init, value_backing_file_state_free_value, value_backing_file_state_copy_value, value_backing_file_state_peek_pointer, "p", value_backing_file_state_collect_value, "p", value_backing_file_state_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (BackingFileStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) backing_file_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackingFileState), 0, (GInstanceInitFunc) backing_file_state_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType backing_file_state_type_id;
- backing_file_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BackingFileState", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&backing_file_state_type_id__volatile, backing_file_state_type_id);
- }
- return backing_file_state_type_id__volatile;
-}
-
-
-gpointer
-backing_file_state_ref (gpointer instance)
-{
- BackingFileState * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return instance;
-#line 2081 "MediaDataRepresentation.c"
-}
-
-
-void
-backing_file_state_unref (gpointer instance)
-{
- BackingFileState * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- BACKING_FILE_STATE_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2096 "MediaDataRepresentation.c"
- }
-}
-
-
-MediaSource*
-media_source_construct (GType object_type,
- gint64 object_id)
-{
- MediaSource * self = NULL;
-#line 40 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = (MediaSource*) thumbnail_source_construct (object_type, object_id);
-#line 39 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self;
-#line 2110 "MediaDataRepresentation.c"
-}
-
-
-inline guint64
-media_source_internal_add_flags (guint64 flags,
- guint64 selector)
-{
- guint64 result = 0ULL;
-#line 44 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = flags | selector;
-#line 44 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 2123 "MediaDataRepresentation.c"
-}
-
-
-inline guint64
-media_source_internal_remove_flags (guint64 flags,
- guint64 selector)
-{
- guint64 result = 0ULL;
-#line 48 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = flags & (~selector);
-#line 48 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 2136 "MediaDataRepresentation.c"
-}
-
-
-inline gboolean
-media_source_internal_is_flag_set (guint64 flags,
- guint64 selector)
-{
- gboolean result = FALSE;
-#line 52 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = (flags & selector) != ((guint64) 0);
-#line 52 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 2149 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_notify_master_replaced (MediaSource* self,
- GFile* old_file,
- GFile* new_file)
-{
-#line 55 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 55 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 56 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_emit (self, media_source_signals[MEDIA_SOURCE_MASTER_REPLACED_SIGNAL], 0, old_file, new_file);
-#line 2164 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_notify_master_replaced (MediaSource* self,
- GFile* old_file,
- GFile* new_file)
-{
-#line 55 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 55 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->notify_master_replaced (self, old_file, new_file);
-#line 2177 "MediaDataRepresentation.c"
-}
-
-
-static gpointer
-_alteration_ref0 (gpointer self)
-{
-#line 60 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self ? alteration_ref (self) : NULL;
-#line 2186 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_notify_altered (DataObject* base,
- Alteration* alteration)
-{
- MediaSource * self;
- Alteration* local = NULL;
- Alteration* _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- Alteration* _tmp3_;
- Alteration* _tmp10_;
-#line 59 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE, MediaSource);
-#line 59 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 60 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = _alteration_ref0 (alteration);
-#line 60 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- local = _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = local;
-#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (alteration_has_detail (_tmp3_, "metadata", "name")) {
-#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = TRUE;
-#line 2215 "MediaDataRepresentation.c"
- } else {
- Alteration* _tmp4_;
-#line 63 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = local;
-#line 63 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = alteration_has_detail (_tmp4_, "metadata", "comment");
-#line 2222 "MediaDataRepresentation.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp2_) {
-#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = TRUE;
-#line 2228 "MediaDataRepresentation.c"
- } else {
- Alteration* _tmp5_;
-#line 64 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = local;
-#line 64 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = alteration_has_detail (_tmp5_, "backing", "master");
-#line 2235 "MediaDataRepresentation.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp1_) {
-#line 2239 "MediaDataRepresentation.c"
- Alteration* _tmp6_;
- Alteration* _tmp7_;
- Alteration* _tmp8_;
- Alteration* _tmp9_;
-#line 65 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_update_indexable_keywords (self);
-#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = local;
-#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = alteration_new ("indexable", "keywords");
-#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = _tmp7_;
-#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = alteration_compress (_tmp6_, _tmp8_);
-#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _alteration_unref0 (local);
-#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- local = _tmp9_;
-#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _alteration_unref0 (_tmp8_);
-#line 2260 "MediaDataRepresentation.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = local;
-#line 69 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- DATA_OBJECT_CLASS (media_source_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TYPE_DATA_OBJECT, DataObject), _tmp10_);
-#line 59 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _alteration_unref0 (local);
-#line 2268 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_notify_membership_changed (DataObject* base,
- DataCollection* collection)
-{
- MediaSource * self;
- gboolean _tmp0_ = FALSE;
-#line 74 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE, MediaSource);
-#line 74 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((collection == NULL) || IS_DATA_COLLECTION (collection));
-#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (collection != NULL) {
-#line 2284 "MediaDataRepresentation.c"
- const gchar* _tmp1_;
-#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = self->priv->indexable_keywords;
-#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = _tmp1_ == NULL;
-#line 2290 "MediaDataRepresentation.c"
- } else {
-#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = FALSE;
-#line 2294 "MediaDataRepresentation.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp0_) {
-#line 78 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_update_indexable_keywords (self);
-#line 2300 "MediaDataRepresentation.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- DATA_OBJECT_CLASS (media_source_parent_class)->notify_membership_changed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TYPE_DATA_OBJECT, DataObject), collection);
-#line 2304 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_update_indexable_keywords (MediaSource* self)
-{
- gchar** indexables = NULL;
- gchar** _tmp0_;
- gint indexables_length1;
- gint _indexables_size_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 84 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 85 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = g_new0 (gchar*, 3 + 1);
-#line 85 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- indexables = _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- indexables_length1 = 3;
-#line 85 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _indexables_size_ = indexables_length1;
-#line 86 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = media_source_get_title (self);
-#line 86 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (indexables[0]);
-#line 86 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- indexables[0] = _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = indexables[0];
-#line 87 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = media_source_get_basename (self);
-#line 87 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (indexables[1]);
-#line 87 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- indexables[1] = _tmp3_;
-#line 87 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = indexables[1];
-#line 88 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = media_source_get_comment (self);
-#line 88 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (indexables[2]);
-#line 88 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- indexables[2] = _tmp5_;
-#line 88 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = indexables[2];
-#line 90 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = indexable_prepare_indexable_strings (indexables, indexables_length1);
-#line 90 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (self->priv->indexable_keywords);
-#line 90 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->indexable_keywords = _tmp7_;
-#line 84 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- indexables = (_vala_array_free (indexables, indexables_length1, (GDestroyNotify) g_free), NULL);
-#line 2364 "MediaDataRepresentation.c"
-}
-
-
-static const gchar*
-media_source_real_get_indexable_keywords (Indexable* base)
-{
- MediaSource * self;
- const gchar* result = NULL;
- const gchar* _tmp0_;
-#line 93 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE, MediaSource);
-#line 94 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->indexable_keywords;
-#line 94 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp0_;
-#line 94 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 2382 "MediaDataRepresentation.c"
-}
-
-
-static gboolean
-media_source_real_set_event_id (MediaSource* self,
- EventID* id)
-{
- gboolean _tmp0_ = FALSE;
-#line 97 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_set_event_id'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 97 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 2395 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_source_set_event_id (MediaSource* self,
- EventID* id)
-{
-#line 97 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE);
-#line 97 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->set_event_id (self, id);
-#line 2407 "MediaDataRepresentation.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 114 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self ? g_object_ref (self) : NULL;
-#line 2416 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_source_delete_original_file (MediaSource* self)
-{
- gboolean result = FALSE;
- gboolean ret = FALSE;
- GFile* file = NULL;
- GFile* _tmp0_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
- gboolean _tmp12_;
- GError * _inner_error_ = NULL;
-#line 99 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE);
-#line 100 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ret = FALSE;
-#line 101 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_get_master_file (self);
-#line 101 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- file = _tmp0_;
-#line 2440 "MediaDataRepresentation.c"
- {
- gboolean _tmp1_ = FALSE;
- GFile* _tmp2_;
-#line 104 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = file;
-#line 104 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = g_file_trash (_tmp2_, NULL, &_inner_error_);
-#line 104 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2450 "MediaDataRepresentation.c"
- goto __catch571_g_error;
- }
-#line 104 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ret = _tmp1_;
-#line 2455 "MediaDataRepresentation.c"
- }
- goto __finally571;
- __catch571_g_error:
- {
- GError* err = NULL;
- GFile* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- err = _inner_error_;
-#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _inner_error_ = NULL;
-#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = file;
-#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = g_file_get_path (_tmp3_);
-#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _tmp4_;
-#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = err;
-#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = _tmp6_->message;
-#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_message ("MediaDataRepresentation.vala:108: Unable to move original photo %s to " \
-"trash: %s", _tmp5_, _tmp7_);
-#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp5_);
-#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_error_free0 (err);
-#line 2486 "MediaDataRepresentation.c"
- }
- __finally571:
-#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2491 "MediaDataRepresentation.c"
- gboolean _tmp8_ = FALSE;
-#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (file);
-#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_clear_error (&_inner_error_);
-#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp8_;
-#line 2501 "MediaDataRepresentation.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = file;
-#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = app_dirs_get_import_dir ();
-#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = _tmp10_;
-#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = g_file_has_prefix (_tmp9_, _tmp11_);
-#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp11_);
-#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp12_) {
-#line 2515 "MediaDataRepresentation.c"
- GFile* parent = NULL;
- GFile* _tmp13_;
- GFile* _tmp14_;
-#line 114 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = file;
-#line 114 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 114 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- parent = _tmp14_;
-#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 2527 "MediaDataRepresentation.c"
- GFile* _tmp15_;
- GFile* _tmp16_;
- GFile* _tmp17_;
- gboolean _tmp18_;
- GFile* _tmp19_;
- GFile* _tmp20_;
- gboolean _tmp21_ = FALSE;
- GFile* _tmp22_;
-#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = parent;
-#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = app_dirs_get_import_dir ();
-#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp17_ = _tmp16_;
-#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp18_ = !(!g_file_equal (_tmp15_, _tmp17_));
-#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp17_);
-#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp18_) {
-#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 2550 "MediaDataRepresentation.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp19_ = parent;
-#line 116 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp20_ = g_file_get_parent (_tmp19_);
-#line 116 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (parent);
-#line 116 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- parent = _tmp20_;
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp22_ = parent;
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp22_ == NULL) {
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp21_ = TRUE;
-#line 2566 "MediaDataRepresentation.c"
- } else {
- GFile* _tmp23_;
- GFile* _tmp24_;
- GFile* _tmp25_;
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp23_ = parent;
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp24_ = app_dirs_get_import_dir ();
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp25_ = _tmp24_;
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp21_ = g_file_equal (_tmp23_, _tmp25_);
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp25_);
-#line 2581 "MediaDataRepresentation.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp21_) {
-#line 118 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 2587 "MediaDataRepresentation.c"
- }
- {
- gboolean _tmp26_ = FALSE;
- GFile* _tmp27_;
-#line 121 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp27_ = parent;
-#line 121 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp26_ = query_is_directory_empty (_tmp27_, &_inner_error_);
-#line 121 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2598 "MediaDataRepresentation.c"
- goto __catch572_g_error;
- }
-#line 121 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!_tmp26_) {
-#line 122 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 2605 "MediaDataRepresentation.c"
- }
- }
- goto __finally572;
- __catch572_g_error:
- {
- GError* err = NULL;
- GFile* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- GError* _tmp31_;
- const gchar* _tmp32_;
-#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- err = _inner_error_;
-#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _inner_error_ = NULL;
-#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp28_ = parent;
-#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp29_ = g_file_get_path (_tmp28_);
-#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp30_ = _tmp29_;
-#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp31_ = err;
-#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp32_ = _tmp31_->message;
-#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_warning ("MediaDataRepresentation.vala:124: Unable to query file info for %s: %s", _tmp30_, _tmp32_);
-#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp30_);
-#line 126 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_error_free0 (err);
-#line 126 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 2639 "MediaDataRepresentation.c"
- }
- __finally572:
-#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2644 "MediaDataRepresentation.c"
- gboolean _tmp33_ = FALSE;
-#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (parent);
-#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (file);
-#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_clear_error (&_inner_error_);
-#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp33_;
-#line 2656 "MediaDataRepresentation.c"
- }
- {
- GFile* _tmp34_;
- GFile* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
-#line 130 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp34_ = parent;
-#line 130 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_file_delete (_tmp34_, NULL, &_inner_error_);
-#line 130 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2669 "MediaDataRepresentation.c"
- goto __catch573_g_error;
- }
-#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp35_ = parent;
-#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp36_ = g_file_get_path (_tmp35_);
-#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp37_ = _tmp36_;
-#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_debug ("MediaDataRepresentation.vala:131: Deleted empty directory %s", _tmp37_);
-#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp37_);
-#line 2682 "MediaDataRepresentation.c"
- }
- goto __finally573;
- __catch573_g_error:
- {
- GError* err = NULL;
- GFile* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- GError* _tmp41_;
- const gchar* _tmp42_;
-#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- err = _inner_error_;
-#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _inner_error_ = NULL;
-#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp38_ = parent;
-#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp39_ = g_file_get_path (_tmp38_);
-#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp40_ = _tmp39_;
-#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp41_ = err;
-#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp42_ = _tmp41_->message;
-#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_message ("MediaDataRepresentation.vala:134: Unable to delete empty directory %s:" \
-" %s", _tmp40_, _tmp42_);
-#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp40_);
-#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_error_free0 (err);
-#line 2713 "MediaDataRepresentation.c"
- }
- __finally573:
-#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2718 "MediaDataRepresentation.c"
- gboolean _tmp43_ = FALSE;
-#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (parent);
-#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (file);
-#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_clear_error (&_inner_error_);
-#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp43_;
-#line 2730 "MediaDataRepresentation.c"
- }
- }
-#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (parent);
-#line 2735 "MediaDataRepresentation.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = ret;
-#line 140 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (file);
-#line 140 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 2743 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-media_source_real_get_name (DataObject* base)
-{
- MediaSource * self;
- gchar* result = NULL;
- gchar* title = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
-#line 143 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE, MediaSource);
-#line 144 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_get_title (self);
-#line 144 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- title = _tmp0_;
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = title;
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (is_string_empty (_tmp2_)) {
-#line 2766 "MediaDataRepresentation.c"
- gchar* _tmp3_;
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = media_source_get_basename (self);
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp1_);
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp3_;
-#line 2774 "MediaDataRepresentation.c"
- } else {
- const gchar* _tmp4_;
- gchar* _tmp5_;
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = title;
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp1_);
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp5_;
-#line 2786 "MediaDataRepresentation.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp1_;
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (title);
-#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 2794 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-media_source_real_get_basename (MediaSource* self)
-{
- gchar* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_get_file (self);
-#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = g_file_get_basename (_tmp1_);
-#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp3_;
-#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 2820 "MediaDataRepresentation.c"
-}
-
-
-gchar*
-media_source_get_basename (MediaSource* self)
-{
-#line 149 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 149 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_basename (self);
-#line 2831 "MediaDataRepresentation.c"
-}
-
-
-static GFile*
-media_source_real_get_file (MediaSource* self)
-{
-#line 153 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_file'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 153 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 2842 "MediaDataRepresentation.c"
-}
-
-
-GFile*
-media_source_get_file (MediaSource* self)
-{
-#line 153 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 153 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_file (self);
-#line 2853 "MediaDataRepresentation.c"
-}
-
-
-static GFile*
-media_source_real_get_master_file (MediaSource* self)
-{
-#line 154 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_master_file'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 154 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 2864 "MediaDataRepresentation.c"
-}
-
-
-GFile*
-media_source_get_master_file (MediaSource* self)
-{
-#line 154 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 154 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_master_file (self);
-#line 2875 "MediaDataRepresentation.c"
-}
-
-
-static guint64
-media_source_real_get_master_filesize (MediaSource* self)
-{
- guint64 _tmp0_ = 0ULL;
-#line 155 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_master_filesize'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 155 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 2887 "MediaDataRepresentation.c"
-}
-
-
-guint64
-media_source_get_master_filesize (MediaSource* self)
-{
-#line 155 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0ULL);
-#line 155 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_master_filesize (self);
-#line 2898 "MediaDataRepresentation.c"
-}
-
-
-static guint64
-media_source_real_get_filesize (MediaSource* self)
-{
- guint64 _tmp0_ = 0ULL;
-#line 156 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_filesize'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 156 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 2910 "MediaDataRepresentation.c"
-}
-
-
-guint64
-media_source_get_filesize (MediaSource* self)
-{
-#line 156 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0ULL);
-#line 156 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_filesize (self);
-#line 2921 "MediaDataRepresentation.c"
-}
-
-
-static time_t
-media_source_real_get_timestamp (MediaSource* self)
-{
- time_t _tmp0_ = 0;
-#line 157 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_timestamp'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 157 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 2933 "MediaDataRepresentation.c"
-}
-
-
-time_t
-media_source_get_timestamp (MediaSource* self)
-{
-#line 157 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0);
-#line 157 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_timestamp (self);
-#line 2944 "MediaDataRepresentation.c"
-}
-
-
-static BackingFileState**
-media_source_real_get_backing_files_state (MediaSource* self,
- int* result_length1)
-{
-#line 160 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_backing_files_state'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 160 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 2956 "MediaDataRepresentation.c"
-}
-
-
-BackingFileState**
-media_source_get_backing_files_state (MediaSource* self,
- int* result_length1)
-{
-#line 160 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 160 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_backing_files_state (self, result_length1);
-#line 2968 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-media_source_real_get_title (MediaSource* self)
-{
-#line 162 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_title'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 162 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 2979 "MediaDataRepresentation.c"
-}
-
-
-gchar*
-media_source_get_title (MediaSource* self)
-{
-#line 162 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 162 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_title (self);
-#line 2990 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-media_source_real_get_comment (MediaSource* self)
-{
-#line 163 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 163 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 3001 "MediaDataRepresentation.c"
-}
-
-
-gchar*
-media_source_get_comment (MediaSource* self)
-{
-#line 163 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 163 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_comment (self);
-#line 3012 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_set_title (MediaSource* self,
- const gchar* title)
-{
-#line 164 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_set_title'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 164 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3024 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_set_title (MediaSource* self,
- const gchar* title)
-{
-#line 164 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 164 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->set_title (self, title);
-#line 3036 "MediaDataRepresentation.c"
-}
-
-
-static gboolean
-media_source_real_set_comment (MediaSource* self,
- const gchar* comment)
-{
- gboolean _tmp0_ = FALSE;
-#line 165 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_set_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 165 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 3049 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_source_set_comment (MediaSource* self,
- const gchar* comment)
-{
-#line 165 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE);
-#line 165 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->set_comment (self, comment);
-#line 3061 "MediaDataRepresentation.c"
-}
-
-
-gchar*
-media_source_prep_title (const gchar* title)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 168 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = prepare_input_text (title, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT & (~PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL), DEFAULT_USER_TEXT_INPUT_LENGTH);
-#line 168 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp0_;
-#line 168 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 3076 "MediaDataRepresentation.c"
-}
-
-
-gchar*
-media_source_prep_comment (const gchar* comment)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = prepare_input_text (comment, (PREPARE_INPUT_TEXT_OPTIONS_DEFAULT & (~PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF)) & (~PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL), -1);
-#line 173 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 3091 "MediaDataRepresentation.c"
-}
-
-
-static Rating
-media_source_real_get_rating (MediaSource* self)
-{
-#line 177 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_rating'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 177 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return 0;
-#line 3102 "MediaDataRepresentation.c"
-}
-
-
-Rating
-media_source_get_rating (MediaSource* self)
-{
-#line 177 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0);
-#line 177 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_rating (self);
-#line 3113 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_set_rating (MediaSource* self,
- Rating rating)
-{
-#line 178 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_set_rating'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 178 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3125 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_set_rating (MediaSource* self,
- Rating rating)
-{
-#line 178 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 178 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->set_rating (self, rating);
-#line 3137 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_increase_rating (MediaSource* self)
-{
-#line 179 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_increase_rating'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 179 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3148 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_increase_rating (MediaSource* self)
-{
-#line 179 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 179 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->increase_rating (self);
-#line 3159 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_decrease_rating (MediaSource* self)
-{
-#line 180 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_decrease_rating'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 180 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3170 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_decrease_rating (MediaSource* self)
-{
-#line 180 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 180 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->decrease_rating (self);
-#line 3181 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result)
-{
-#line 182 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_dimensions'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 182 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3194 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result)
-{
-#line 182 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 182 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->get_dimensions (self, disallowed_steps, result);
-#line 3207 "MediaDataRepresentation.c"
-}
-
-
-static GdkPixbuf*
-media_source_real_get_preview_pixbuf (MediaSource* self,
- Scaling* scaling,
- GError** error)
-{
-#line 190 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_preview_pixbuf'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 190 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 3220 "MediaDataRepresentation.c"
-}
-
-
-GdkPixbuf*
-media_source_get_preview_pixbuf (MediaSource* self,
- Scaling* scaling,
- GError** error)
-{
-#line 190 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 190 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_preview_pixbuf (self, scaling, error);
-#line 3233 "MediaDataRepresentation.c"
-}
-
-
-static gboolean
-media_source_real_is_trashed (MediaSource* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 192 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_is_trashed'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 192 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 3245 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_source_is_trashed (MediaSource* self)
-{
-#line 192 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE);
-#line 192 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->is_trashed (self);
-#line 3256 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_trash (MediaSource* self)
-{
-#line 193 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_trash'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 193 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3267 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_trash (MediaSource* self)
-{
-#line 193 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 193 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->trash (self);
-#line 3278 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_untrash (MediaSource* self)
-{
-#line 194 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_untrash'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 194 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3289 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_untrash (MediaSource* self)
-{
-#line 194 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 194 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->untrash (self);
-#line 3300 "MediaDataRepresentation.c"
-}
-
-
-static gboolean
-media_source_real_is_offline (MediaSource* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 196 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_is_offline'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 196 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 3312 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_source_is_offline (MediaSource* self)
-{
-#line 196 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE);
-#line 196 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->is_offline (self);
-#line 3323 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_mark_offline (MediaSource* self)
-{
-#line 197 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_mark_offline'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 197 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3334 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_mark_offline (MediaSource* self)
-{
-#line 197 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 197 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->mark_offline (self);
-#line 3345 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_mark_online (MediaSource* self)
-{
-#line 198 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_mark_online'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 198 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3356 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_mark_online (MediaSource* self)
-{
-#line 198 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 198 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->mark_online (self);
-#line 3367 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-media_source_real_get_master_md5 (MediaSource* self)
-{
-#line 200 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_master_md5'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 200 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 3378 "MediaDataRepresentation.c"
-}
-
-
-gchar*
-media_source_get_master_md5 (MediaSource* self)
-{
-#line 200 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 200 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_master_md5 (self);
-#line 3389 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_get_event_id (MediaSource* self,
- EventID* result)
-{
-#line 204 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_event_id'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 204 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3401 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_get_event_id (MediaSource* self,
- EventID* result)
-{
-#line 204 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 204 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->get_event_id (self, result);
-#line 3413 "MediaDataRepresentation.c"
-}
-
-
-Event*
-media_source_get_event (MediaSource* self)
-{
- Event* result = NULL;
- Event* _tmp0_;
- EventID event_id = {0};
- EventID _tmp3_ = {0};
- EventSourceCollection* _tmp4_;
- EventID _tmp5_;
- Event* _tmp6_;
- Event* _tmp7_;
- Event* _tmp8_;
-#line 206 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL);
-#line 207 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->event;
-#line 207 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp0_ != NULL) {
-#line 3435 "MediaDataRepresentation.c"
- Event* _tmp1_;
- Event* _tmp2_;
-#line 208 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = self->priv->event;
-#line 208 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 208 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp2_;
-#line 208 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 3446 "MediaDataRepresentation.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_get_event_id (self, &_tmp3_);
-#line 210 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_id = _tmp3_;
-#line 211 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!event_id_is_valid (&event_id)) {
-#line 212 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = NULL;
-#line 212 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 3458 "MediaDataRepresentation.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = event_global;
-#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = event_id;
-#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = event_source_collection_fetch (_tmp4_, &_tmp5_);
-#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->event);
-#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->event = _tmp6_;
-#line 216 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = self->priv->event;
-#line 216 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 216 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp8_;
-#line 216 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 3478 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_source_set_event (MediaSource* self,
- Event* new_event)
-{
- gboolean result = FALSE;
- EventID _tmp0_ = {0};
- EventID event_id = {0};
- EventID _tmp2_ = {0};
- gint64 _tmp3_;
- EventID _tmp4_;
- gint64 _tmp5_;
- gboolean committed = FALSE;
- EventID _tmp6_;
- gboolean _tmp7_;
-#line 219 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE);
-#line 219 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail ((new_event == NULL) || IS_EVENT (new_event), FALSE);
-#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (new_event != NULL) {
-#line 3502 "MediaDataRepresentation.c"
- EventID _tmp1_ = {0};
-#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_get_event_id (new_event, &_tmp1_);
-#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = _tmp1_;
-#line 3508 "MediaDataRepresentation.c"
- } else {
-#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_id_init (&_tmp0_, EVENT_ID_INVALID);
-#line 3512 "MediaDataRepresentation.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_id = _tmp0_;
-#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_get_event_id (self, &_tmp2_);
-#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_.id;
-#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = event_id;
-#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _tmp4_.id;
-#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp3_ == _tmp5_) {
-#line 222 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = TRUE;
-#line 222 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 3530 "MediaDataRepresentation.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = event_id;
-#line 224 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- committed = media_source_set_event_id (self, &_tmp6_);
-#line 225 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = committed;
-#line 225 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp7_) {
-#line 3540 "MediaDataRepresentation.c"
- Event* _tmp8_;
- Event* _tmp10_;
- Alteration* _tmp11_;
- Alteration* _tmp12_;
-#line 226 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = self->priv->event;
-#line 226 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp8_ != NULL) {
-#line 3549 "MediaDataRepresentation.c"
- Event* _tmp9_;
-#line 227 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = self->priv->event;
-#line 227 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_detach (_tmp9_, self);
-#line 3555 "MediaDataRepresentation.c"
- }
-#line 229 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (new_event != NULL) {
-#line 230 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_attach (new_event, self);
-#line 3561 "MediaDataRepresentation.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = _g_object_ref0 (new_event);
-#line 232 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->event);
-#line 232 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->event = _tmp10_;
-#line 234 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = alteration_new ("metadata", "event");
-#line 234 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = _tmp11_;
-#line 234 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp12_);
-#line 234 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _alteration_unref0 (_tmp12_);
-#line 3577 "MediaDataRepresentation.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = committed;
-#line 237 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 3583 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_set_many_to_event (GeeCollection* media_sources,
- Event* event,
- TransactionController* controller,
- GError** error)
-{
- EventID _tmp0_ = {0};
- EventID event_id = {0};
- Alteration* alteration = NULL;
- Alteration* _tmp15_;
-#line 240 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media_sources));
-#line 240 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((event == NULL) || IS_EVENT (event));
-#line 240 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
-#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (event != NULL) {
-#line 3605 "MediaDataRepresentation.c"
- EventID _tmp1_ = {0};
-#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_get_event_id (event, &_tmp1_);
-#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = _tmp1_;
-#line 3611 "MediaDataRepresentation.c"
- } else {
-#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_id_init (&_tmp0_, EVENT_ID_INVALID);
-#line 3615 "MediaDataRepresentation.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_id = _tmp0_;
-#line 244 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- transaction_controller_begin (controller);
-#line 3621 "MediaDataRepresentation.c"
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp2_;
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _media_it = _tmp2_;
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 3631 "MediaDataRepresentation.c"
- GeeIterator* _tmp3_;
- MediaSource* media = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- Event* old_event = NULL;
- MediaSource* _tmp6_;
- Event* _tmp7_;
- Event* _tmp8_;
- MediaSource* _tmp11_;
- EventID _tmp12_;
- MediaSource* _tmp13_;
- Event* _tmp14_;
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _media_it;
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 3650 "MediaDataRepresentation.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _media_it;
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media = (MediaSource*) _tmp5_;
-#line 247 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = media;
-#line 247 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = media_source_get_event (_tmp6_);
-#line 247 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- old_event = _tmp7_;
-#line 248 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = old_event;
-#line 248 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp8_ != NULL) {
-#line 3668 "MediaDataRepresentation.c"
- Event* _tmp9_;
- MediaSource* _tmp10_;
-#line 249 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = old_event;
-#line 249 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = media;
-#line 249 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_detach (_tmp9_, _tmp10_);
-#line 3677 "MediaDataRepresentation.c"
- }
-#line 251 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = media;
-#line 251 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = event_id;
-#line 251 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_set_event_id (_tmp11_, &_tmp12_);
-#line 252 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = media;
-#line 252 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = _g_object_ref0 (event);
-#line 252 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp13_->priv->event);
-#line 252 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_->priv->event = _tmp14_;
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (old_event);
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (media);
-#line 3697 "MediaDataRepresentation.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_media_it);
-#line 3701 "MediaDataRepresentation.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (event != NULL) {
-#line 256 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- event_attach_many (event, media_sources);
-#line 3707 "MediaDataRepresentation.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = alteration_new ("metadata", "event");
-#line 258 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- alteration = _tmp15_;
-#line 3713 "MediaDataRepresentation.c"
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp16_;
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _media_it = _tmp16_;
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 3723 "MediaDataRepresentation.c"
- GeeIterator* _tmp17_;
- MediaSource* media = NULL;
- GeeIterator* _tmp18_;
- gpointer _tmp19_;
- MediaSource* _tmp20_;
- Alteration* _tmp21_;
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp17_ = _media_it;
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp17_)) {
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 3736 "MediaDataRepresentation.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp18_ = _media_it;
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp19_ = gee_iterator_get (_tmp18_);
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media = (MediaSource*) _tmp19_;
-#line 260 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp20_ = media;
-#line 260 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp21_ = alteration;
-#line 260 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject), _tmp21_);
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (media);
-#line 3752 "MediaDataRepresentation.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_media_it);
-#line 3756 "MediaDataRepresentation.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- transaction_controller_commit (controller);
-#line 240 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _alteration_unref0 (alteration);
-#line 3762 "MediaDataRepresentation.c"
-}
-
-
-static time_t
-media_source_real_get_exposure_time (MediaSource* self)
-{
- time_t _tmp0_ = 0;
-#line 265 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_exposure_time'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 265 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 3774 "MediaDataRepresentation.c"
-}
-
-
-time_t
-media_source_get_exposure_time (MediaSource* self)
-{
-#line 265 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0);
-#line 265 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_GET_CLASS (self)->get_exposure_time (self);
-#line 3785 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_get_import_id (MediaSource* self,
- ImportID* result)
-{
-#line 267 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_get_import_id'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 267 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 3797 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_get_import_id (MediaSource* self,
- ImportID* result)
-{
-#line 267 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (self));
-#line 267 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_GET_CLASS (self)->get_import_id (self, result);
-#line 3809 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_real_master_replaced (MediaSource* self,
- GFile* old_file,
- GFile* new_file)
-{
-#line 33 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 33 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 3822 "MediaDataRepresentation.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (n_param_values == 3);
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data1 = closure->data;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data2 = param_values->data[0].v_pointer;
-#line 3848 "MediaDataRepresentation.c"
- } else {
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data1 = param_values->data[0].v_pointer;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data2 = closure->data;
-#line 3854 "MediaDataRepresentation.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 3860 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_class_init (MediaSourceClass * klass)
-{
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_parent_class = g_type_class_peek_parent (klass);
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_type_class_add_private (klass, sizeof (MediaSourcePrivate));
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->notify_master_replaced = (void (*) (MediaSource *, GFile*, GFile*)) media_source_real_notify_master_replaced;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) media_source_real_notify_altered;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((DataObjectClass *) klass)->notify_membership_changed = (void (*) (DataObject *, DataCollection*)) media_source_real_notify_membership_changed;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->set_event_id = (gboolean (*) (MediaSource *, EventID*)) media_source_real_set_event_id;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) media_source_real_get_name;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_basename = (gchar* (*) (MediaSource *)) media_source_real_get_basename;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_file = (GFile* (*) (MediaSource *)) media_source_real_get_file;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_master_file = (GFile* (*) (MediaSource *)) media_source_real_get_master_file;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_master_filesize = (guint64 (*) (MediaSource *)) media_source_real_get_master_filesize;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_filesize = (guint64 (*) (MediaSource *)) media_source_real_get_filesize;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_timestamp = (time_t (*) (MediaSource *)) media_source_real_get_timestamp;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_backing_files_state = (BackingFileState** (*) (MediaSource *, int*)) media_source_real_get_backing_files_state;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_title = (gchar* (*) (MediaSource *)) media_source_real_get_title;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_comment = (gchar* (*) (MediaSource *)) media_source_real_get_comment;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->set_title = (void (*) (MediaSource *, const gchar*)) media_source_real_set_title;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->set_comment = (gboolean (*) (MediaSource *, const gchar*)) media_source_real_set_comment;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_rating = (Rating (*) (MediaSource *)) media_source_real_get_rating;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->set_rating = (void (*) (MediaSource *, Rating)) media_source_real_set_rating;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->increase_rating = (void (*) (MediaSource *)) media_source_real_increase_rating;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->decrease_rating = (void (*) (MediaSource *)) media_source_real_decrease_rating;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_dimensions = (void (*) (MediaSource *, PhotoException, Dimensions*)) media_source_real_get_dimensions;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*) (MediaSource *, Scaling*, GError**)) media_source_real_get_preview_pixbuf;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->is_trashed = (gboolean (*) (MediaSource *)) media_source_real_is_trashed;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->trash = (void (*) (MediaSource *)) media_source_real_trash;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->untrash = (void (*) (MediaSource *)) media_source_real_untrash;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->is_offline = (gboolean (*) (MediaSource *)) media_source_real_is_offline;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->mark_offline = (void (*) (MediaSource *)) media_source_real_mark_offline;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->mark_online = (void (*) (MediaSource *)) media_source_real_mark_online;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_master_md5 = (gchar* (*) (MediaSource *)) media_source_real_get_master_md5;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_event_id = (void (*) (MediaSource *, EventID*)) media_source_real_get_event_id;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_exposure_time = (time_t (*) (MediaSource *)) media_source_real_get_exposure_time;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->get_import_id = (void (*) (MediaSource *, ImportID*)) media_source_real_get_import_id;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceClass *) klass)->master_replaced = media_source_real_master_replaced;
-#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"
- media_source_signals[MEDIA_SOURCE_MASTER_REPLACED_SIGNAL] = 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 3941 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_indexable_interface_init (IndexableIface * iface)
-{
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_indexable_parent_iface = g_type_interface_peek_parent (iface);
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- iface->get_indexable_keywords = (const gchar* (*) (Indexable *)) media_source_real_get_indexable_keywords;
-#line 3952 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_instance_init (MediaSource * self)
-{
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv = MEDIA_SOURCE_GET_PRIVATE (self);
-#line 36 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->event = NULL;
-#line 37 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->indexable_keywords = NULL;
-#line 3965 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_finalize (GObject * obj)
-{
- MediaSource * self;
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE, MediaSource);
-#line 36 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->event);
-#line 37 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (self->priv->indexable_keywords);
-#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- G_OBJECT_CLASS (media_source_parent_class)->finalize (obj);
-#line 3981 "MediaDataRepresentation.c"
-}
-
-
-GType
-media_source_get_type (void)
-{
- static volatile gsize media_source_type_id__volatile = 0;
- if (g_once_init_enter (&media_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSource), 0, (GInstanceInitFunc) media_source_instance_init, NULL };
- static const GInterfaceInfo indexable_info = { (GInterfaceInitFunc) media_source_indexable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType media_source_type_id;
- media_source_type_id = g_type_register_static (TYPE_THUMBNAIL_SOURCE, "MediaSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_type_add_interface_static (media_source_type_id, TYPE_INDEXABLE, &indexable_info);
- g_once_init_leave (&media_source_type_id__volatile, media_source_type_id);
- }
- return media_source_type_id__volatile;
-}
-
-
-static guint
-_file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = file_hash ((GFile*) v);
-#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4009 "MediaDataRepresentation.c"
-}
-
-
-static gboolean
-_file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = file_equal ((GFile*) a, (GFile*) b);
-#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4022 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceHoldingTank*
-media_source_holding_tank_construct (GType object_type,
- MediaSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target)
-{
- MediaSourceHoldingTank* self = NULL;
-#line 274 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (sources), NULL);
-#line 276 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = (MediaSourceHoldingTank*) database_source_holding_tank_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_SOURCE_COLLECTION, SourceCollection), check_to_keep, check_to_keep_target, get_key, get_key_target);
-#line 274 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self;
-#line 4041 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceHoldingTank*
-media_source_holding_tank_new (MediaSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target)
-{
-#line 274 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return media_source_holding_tank_construct (TYPE_MEDIA_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target, get_key, get_key_target);
-#line 4054 "MediaDataRepresentation.c"
-}
-
-
-MediaSource*
-media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self,
- GFile* file)
-{
- MediaSource* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 279 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_HOLDING_TANK (self), NULL);
-#line 279 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 280 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->master_file_map;
-#line 280 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 280 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = (MediaSource*) _tmp1_;
-#line 280 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4077 "MediaDataRepresentation.c"
-}
-
-
-MediaSource*
-media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self,
- const gchar* md5)
-{
- MediaSource* result = NULL;
-#line 283 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_HOLDING_TANK (self), NULL);
-#line 283 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (md5 != NULL, NULL);
-#line 4090 "MediaDataRepresentation.c"
- {
- GeeIterator* _source_it = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->master_file_map;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _tmp1_;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _tmp4_;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp3_);
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_it = _tmp5_;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 4117 "MediaDataRepresentation.c"
- GeeIterator* _tmp6_;
- MediaSource* source = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = _source_it;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 4132 "MediaDataRepresentation.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = _source_it;
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source = (MediaSource*) _tmp8_;
-#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = source;
-#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = media_source_get_master_md5 (_tmp9_);
-#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = _tmp10_;
-#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = g_strcmp0 (_tmp11_, md5) == 0;
-#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp11_);
-#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp12_) {
-#line 286 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = source;
-#line 286 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 286 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4158 "MediaDataRepresentation.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 4162 "MediaDataRepresentation.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 4166 "MediaDataRepresentation.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = NULL;
-#line 290 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4172 "MediaDataRepresentation.c"
-}
-
-
-static void
-_media_source_holding_tank_on_master_source_replaced_media_source_master_replaced (MediaSource* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self)
-{
-#line 299 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_holding_tank_on_master_source_replaced ((MediaSourceHoldingTank*) self, _sender, old_file, new_file);
-#line 4184 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base,
- GeeCollection* added,
- GeeCollection* removed)
-{
- MediaSourceHoldingTank * self;
-#line 293 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank);
-#line 293 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 293 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 295 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (added != NULL) {
-#line 4202 "MediaDataRepresentation.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable));
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_it = _tmp0_;
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 4212 "MediaDataRepresentation.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- MediaSource* media_source = NULL;
- DataSource* _tmp4_;
- MediaSource* _tmp5_;
- GeeHashMap* _tmp6_;
- MediaSource* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- MediaSource* _tmp10_;
- MediaSource* _tmp11_;
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _source_it;
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 4232 "MediaDataRepresentation.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _source_it;
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source = (DataSource*) _tmp3_;
-#line 297 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = source;
-#line 297 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 297 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source = _tmp5_;
-#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = self->priv->master_file_map;
-#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = media_source;
-#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = media_source_get_master_file (_tmp7_);
-#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = _tmp8_;
-#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = media_source;
-#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_);
-#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp9_);
-#line 299 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = media_source;
-#line 299 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_connect (_tmp11_, "master-replaced", (GCallback) _media_source_holding_tank_on_master_source_replaced_media_source_master_replaced, self);
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (media_source);
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 4268 "MediaDataRepresentation.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 4272 "MediaDataRepresentation.c"
- }
- }
-#line 303 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (removed != NULL) {
-#line 4277 "MediaDataRepresentation.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp12_;
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_it = _tmp12_;
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 4287 "MediaDataRepresentation.c"
- GeeIterator* _tmp13_;
- DataSource* source = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
- MediaSource* media_source = NULL;
- DataSource* _tmp16_;
- MediaSource* _tmp17_;
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp18_;
- MediaSource* _tmp19_;
- GFile* _tmp20_;
- GFile* _tmp21_;
- gboolean _tmp22_;
- gboolean _tmp23_;
- gboolean _tmp24_;
- MediaSource* _tmp25_;
- guint _tmp26_;
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = _source_it;
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp13_)) {
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 4311 "MediaDataRepresentation.c"
- }
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = _source_it;
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source = (DataSource*) _tmp15_;
-#line 305 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = source;
-#line 305 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 305 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source = _tmp17_;
-#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp18_ = self->priv->master_file_map;
-#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp19_ = media_source;
-#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp20_ = media_source_get_master_file (_tmp19_);
-#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp21_ = _tmp20_;
-#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp22_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_, NULL);
-#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp23_ = _tmp22_;
-#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp21_);
-#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- is_removed = _tmp23_;
-#line 307 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp24_ = is_removed;
-#line 307 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (_tmp24_, "is_removed");
-#line 308 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp25_ = media_source;
-#line 308 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_parse_name ("master-replaced", TYPE_MEDIA_SOURCE, &_tmp26_, NULL, FALSE);
-#line 308 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_handlers_disconnect_matched (_tmp25_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _media_source_holding_tank_on_master_source_replaced_media_source_master_replaced, self);
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (media_source);
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 4355 "MediaDataRepresentation.c"
- }
-#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 4359 "MediaDataRepresentation.c"
- }
- }
-#line 312 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- SOURCE_HOLDING_TANK_CLASS (media_source_holding_tank_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), added, removed);
-#line 4364 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_holding_tank_on_master_source_replaced (MediaSourceHoldingTank* self,
- MediaSource* media_source,
- GFile* old_file,
- GFile* new_file)
-{
- gboolean removed = FALSE;
- GeeHashMap* _tmp0_;
- gboolean _tmp1_;
- GeeHashMap* _tmp2_;
-#line 315 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_HOLDING_TANK (self));
-#line 315 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (media_source));
-#line 315 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 315 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 316 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->master_file_map;
-#line 316 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), old_file, NULL);
-#line 316 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- removed = _tmp1_;
-#line 317 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (removed, "removed");
-#line 319 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = self->priv->master_file_map;
-#line 319 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_file, media_source);
-#line 4398 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_holding_tank_class_init (MediaSourceHoldingTankClass * klass)
-{
-#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_holding_tank_parent_class = g_type_class_peek_parent (klass);
-#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((SourceHoldingTankClass *) klass)->finalize = media_source_holding_tank_finalize;
-#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_type_class_add_private (klass, sizeof (MediaSourceHoldingTankPrivate));
-#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((SourceHoldingTankClass *) klass)->notify_contents_altered = (void (*) (SourceHoldingTank *, GeeCollection*, GeeCollection*)) media_source_holding_tank_real_notify_contents_altered;
-#line 4413 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_holding_tank_instance_init (MediaSourceHoldingTank * self)
-{
- GeeHashMap* _tmp0_;
-#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv = MEDIA_SOURCE_HOLDING_TANK_GET_PRIVATE (self);
-#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->master_file_map = _tmp0_;
-#line 4427 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_holding_tank_finalize (SourceHoldingTank * obj)
-{
- MediaSourceHoldingTank * self;
-#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank);
-#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->master_file_map);
-#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- SOURCE_HOLDING_TANK_CLASS (media_source_holding_tank_parent_class)->finalize (obj);
-#line 4441 "MediaDataRepresentation.c"
-}
-
-
-GType
-media_source_holding_tank_get_type (void)
-{
- static volatile gsize media_source_holding_tank_type_id__volatile = 0;
- if (g_once_init_enter (&media_source_holding_tank_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaSourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceHoldingTank), 0, (GInstanceInitFunc) media_source_holding_tank_instance_init, NULL };
- GType media_source_holding_tank_type_id;
- media_source_holding_tank_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_HOLDING_TANK, "MediaSourceHoldingTank", &g_define_type_info, 0);
- g_once_init_leave (&media_source_holding_tank_type_id__volatile, media_source_holding_tank_type_id);
- }
- return media_source_holding_tank_type_id__volatile;
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 329 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 4464 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceTransactionController*
-media_source_transaction_controller_construct (GType object_type,
- MediaSourceCollection* sources)
-{
- MediaSourceTransactionController* self = NULL;
- MediaSourceCollection* _tmp0_;
-#line 328 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (sources), NULL);
-#line 328 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = (MediaSourceTransactionController*) transaction_controller_construct (object_type);
-#line 329 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = _data_collection_ref0 (sources);
-#line 329 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 329 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->sources = _tmp0_;
-#line 328 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self;
-#line 4486 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceTransactionController*
-media_source_transaction_controller_new (MediaSourceCollection* sources)
-{
-#line 328 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return media_source_transaction_controller_construct (TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, sources);
-#line 4495 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_transaction_controller_real_begin_impl (TransactionController* base,
- GError** error)
-{
- MediaSourceTransactionController * self;
- MediaSourceCollection* _tmp0_;
-#line 332 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController);
-#line 333 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- database_table_begin_transaction ();
-#line 334 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->sources;
-#line 334 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 4513 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_transaction_controller_real_commit_impl (TransactionController* base,
- GError** error)
-{
- MediaSourceTransactionController * self;
- MediaSourceCollection* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 337 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController);
-#line 338 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->sources;
-#line 338 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 339 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- database_table_commit_transaction (&_inner_error_);
-#line 339 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 339 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_propagate_error (error, _inner_error_);
-#line 339 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 4538 "MediaDataRepresentation.c"
- }
-}
-
-
-static void
-media_source_transaction_controller_class_init (MediaSourceTransactionControllerClass * klass)
-{
-#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_transaction_controller_parent_class = g_type_class_peek_parent (klass);
-#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((TransactionControllerClass *) klass)->finalize = media_source_transaction_controller_finalize;
-#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_type_class_add_private (klass, sizeof (MediaSourceTransactionControllerPrivate));
-#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((TransactionControllerClass *) klass)->begin_impl = (void (*) (TransactionController *, GError**)) media_source_transaction_controller_real_begin_impl;
-#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((TransactionControllerClass *) klass)->commit_impl = (void (*) (TransactionController *, GError**)) media_source_transaction_controller_real_commit_impl;
-#line 4556 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_transaction_controller_instance_init (MediaSourceTransactionController * self)
-{
-#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv = MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_PRIVATE (self);
-#line 4565 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_transaction_controller_finalize (TransactionController * obj)
-{
- MediaSourceTransactionController * self;
-#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController);
-#line 326 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- TRANSACTION_CONTROLLER_CLASS (media_source_transaction_controller_parent_class)->finalize (obj);
-#line 4579 "MediaDataRepresentation.c"
-}
-
-
-GType
-media_source_transaction_controller_get_type (void)
-{
- static volatile gsize media_source_transaction_controller_type_id__volatile = 0;
- if (g_once_init_enter (&media_source_transaction_controller_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaSourceTransactionControllerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_transaction_controller_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceTransactionController), 0, (GInstanceInitFunc) media_source_transaction_controller_instance_init, NULL };
- GType media_source_transaction_controller_type_id;
- media_source_transaction_controller_type_id = g_type_register_static (TYPE_TRANSACTION_CONTROLLER, "MediaSourceTransactionController", &g_define_type_info, 0);
- g_once_init_leave (&media_source_transaction_controller_type_id__volatile, media_source_transaction_controller_type_id);
- }
- return media_source_transaction_controller_type_id__volatile;
-}
-
-
-static gint
-_import_id_compare_func_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = import_id_compare_func ((ImportID*) a, (ImportID*) b);
-#line 350 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4606 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceCollection*
-media_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target)
-{
- MediaSourceCollection* self = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
-#line 384 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 385 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = (MediaSourceCollection*) database_source_collection_construct (object_type, name, source_key_func, source_key_func_target);
-#line 387 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_collection_create_trashcan (self);
-#line 387 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (self->priv->trashcan);
-#line 387 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->trashcan = _tmp0_;
-#line 388 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = media_source_collection_create_offline_bin (self);
-#line 388 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (self->priv->offline_bin);
-#line 388 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->offline_bin = _tmp1_;
-#line 384 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self;
-#line 4637 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_filter_media (GeeCollection* media,
- GeeCollection* photos,
- GeeCollection* videos)
-{
-#line 391 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 391 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((photos == NULL) || GEE_IS_COLLECTION (photos));
-#line 391 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((videos == NULL) || GEE_IS_COLLECTION (videos));
-#line 4652 "MediaDataRepresentation.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable));
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_it = _tmp0_;
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 4662 "MediaDataRepresentation.c"
- GeeIterator* _tmp1_;
- MediaSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- gboolean _tmp4_ = FALSE;
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _source_it;
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 4674 "MediaDataRepresentation.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _source_it;
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source = (MediaSource*) _tmp3_;
-#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (photos != NULL) {
-#line 4684 "MediaDataRepresentation.c"
- MediaSource* _tmp5_;
-#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = source;
-#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_PHOTO);
-#line 4690 "MediaDataRepresentation.c"
- } else {
-#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = FALSE;
-#line 4694 "MediaDataRepresentation.c"
- }
-#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp4_) {
-#line 4698 "MediaDataRepresentation.c"
- MediaSource* _tmp6_;
-#line 395 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = source;
-#line 395 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_collection_add (photos, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 4704 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp7_ = FALSE;
-#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (videos != NULL) {
-#line 4709 "MediaDataRepresentation.c"
- MediaSource* _tmp8_;
-#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = source;
-#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_VIDEO);
-#line 4715 "MediaDataRepresentation.c"
- } else {
-#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = FALSE;
-#line 4719 "MediaDataRepresentation.c"
- }
-#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp7_) {
-#line 4723 "MediaDataRepresentation.c"
- MediaSource* _tmp9_;
-#line 397 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = source;
-#line 397 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_collection_add (videos, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_VIDEO, Video));
-#line 4729 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp10_ = FALSE;
-#line 398 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (photos != NULL) {
-#line 398 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = TRUE;
-#line 4736 "MediaDataRepresentation.c"
- } else {
-#line 398 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = videos != NULL;
-#line 4740 "MediaDataRepresentation.c"
- }
-#line 398 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp10_) {
-#line 4744 "MediaDataRepresentation.c"
- MediaSource* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = source;
-#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject));
-#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = _tmp12_;
-#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_warning ("MediaDataRepresentation.vala:399: Unrecognized media: %s", _tmp13_);
-#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp13_);
-#line 4758 "MediaDataRepresentation.c"
- }
- }
- }
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 4764 "MediaDataRepresentation.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 4768 "MediaDataRepresentation.c"
- }
-}
-
-
-void
-media_source_collection_count_media (GeeCollection* media,
- gint* photo_count,
- gint* video_count)
-{
- gint _vala_photo_count = 0;
- gint _vala_video_count = 0;
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* videos = NULL;
- GeeArrayList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 405 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 405 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- photos = _tmp0_;
-#line 406 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 406 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- videos = _tmp1_;
-#line 408 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_filter_media (media, G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection));
-#line 410 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 410 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 410 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_photo_count = _tmp3_;
-#line 411 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 411 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _tmp4_;
-#line 411 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_video_count = _tmp5_;
-#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (videos);
-#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (photos);
-#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (photo_count) {
-#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- *photo_count = _vala_photo_count;
-#line 4820 "MediaDataRepresentation.c"
- }
-#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (video_count) {
-#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- *video_count = _vala_video_count;
-#line 4826 "MediaDataRepresentation.c"
- }
-}
-
-
-gboolean
-media_source_collection_has_photo (GeeCollection* media)
-{
- gboolean result = FALSE;
-#line 414 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (media), FALSE);
-#line 4837 "MediaDataRepresentation.c"
- {
- GeeIterator* _current_media_it = NULL;
- GeeIterator* _tmp0_;
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable));
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _current_media_it = _tmp0_;
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 4847 "MediaDataRepresentation.c"
- GeeIterator* _tmp1_;
- MediaSource* current_media = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- MediaSource* _tmp4_;
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _current_media_it;
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 4859 "MediaDataRepresentation.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _current_media_it;
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- current_media = (MediaSource*) _tmp3_;
-#line 416 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = current_media;
-#line 416 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PHOTO)) {
-#line 417 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = TRUE;
-#line 417 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (current_media);
-#line 417 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_current_media_it);
-#line 417 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4879 "MediaDataRepresentation.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (current_media);
-#line 4883 "MediaDataRepresentation.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_current_media_it);
-#line 4887 "MediaDataRepresentation.c"
- }
-#line 421 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = FALSE;
-#line 421 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4893 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_source_collection_has_video (GeeCollection* media)
-{
- gboolean result = FALSE;
-#line 424 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (media), FALSE);
-#line 4903 "MediaDataRepresentation.c"
- {
- GeeIterator* _current_media_it = NULL;
- GeeIterator* _tmp0_;
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable));
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _current_media_it = _tmp0_;
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 4913 "MediaDataRepresentation.c"
- GeeIterator* _tmp1_;
- MediaSource* current_media = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- MediaSource* _tmp4_;
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _current_media_it;
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 4925 "MediaDataRepresentation.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _current_media_it;
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- current_media = (MediaSource*) _tmp3_;
-#line 426 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = current_media;
-#line 426 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_VIDEO)) {
-#line 427 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = TRUE;
-#line 427 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (current_media);
-#line 427 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_current_media_it);
-#line 427 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4945 "MediaDataRepresentation.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (current_media);
-#line 4949 "MediaDataRepresentation.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_current_media_it);
-#line 4953 "MediaDataRepresentation.c"
- }
-#line 431 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = FALSE;
-#line 431 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 4959 "MediaDataRepresentation.c"
-}
-
-
-static MediaSourceHoldingTank*
-media_source_collection_real_create_trashcan (MediaSourceCollection* self)
-{
-#line 434 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_collection_create_trashcan'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 434 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 4970 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceHoldingTank*
-media_source_collection_create_trashcan (MediaSourceCollection* self)
-{
-#line 434 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 434 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->create_trashcan (self);
-#line 4981 "MediaDataRepresentation.c"
-}
-
-
-static MediaSourceHoldingTank*
-media_source_collection_real_create_offline_bin (MediaSourceCollection* self)
-{
-#line 436 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_collection_create_offline_bin'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 436 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 4992 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceHoldingTank*
-media_source_collection_create_offline_bin (MediaSourceCollection* self)
-{
-#line 436 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 436 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->create_offline_bin (self);
-#line 5003 "MediaDataRepresentation.c"
-}
-
-
-static MediaMonitor*
-media_source_collection_real_create_media_monitor (MediaSourceCollection* self,
- Workers* workers,
- GCancellable* cancellable)
-{
-#line 438 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_collection_create_media_monitor'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 438 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 5016 "MediaDataRepresentation.c"
-}
-
-
-MediaMonitor*
-media_source_collection_create_media_monitor (MediaSourceCollection* self,
- Workers* workers,
- GCancellable* cancellable)
-{
-#line 438 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 438 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->create_media_monitor (self, workers, cancellable);
-#line 5029 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-media_source_collection_real_get_typename (MediaSourceCollection* self)
-{
-#line 440 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_collection_get_typename'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 440 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 5040 "MediaDataRepresentation.c"
-}
-
-
-gchar*
-media_source_collection_get_typename (MediaSourceCollection* self)
-{
-#line 440 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 440 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->get_typename (self);
-#line 5051 "MediaDataRepresentation.c"
-}
-
-
-static gboolean
-media_source_collection_real_is_file_recognized (MediaSourceCollection* self,
- GFile* file)
-{
- gboolean _tmp0_ = FALSE;
-#line 442 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_collection_is_file_recognized'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 442 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return _tmp0_;
-#line 5064 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_source_collection_is_file_recognized (MediaSourceCollection* self,
- GFile* file)
-{
-#line 442 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), FALSE);
-#line 442 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->is_file_recognized (self, file);
-#line 5076 "MediaDataRepresentation.c"
-}
-
-
-static gpointer
-_source_holding_tank_ref0 (gpointer self)
-{
-#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self ? source_holding_tank_ref (self) : NULL;
-#line 5085 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceHoldingTank*
-media_source_collection_get_trashcan (MediaSourceCollection* self)
-{
- MediaSourceHoldingTank* result = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
-#line 444 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->trashcan;
-#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _source_holding_tank_ref0 (_tmp0_);
-#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp1_;
-#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 5105 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceHoldingTank*
-media_source_collection_get_offline_bin (MediaSourceCollection* self)
-{
- MediaSourceHoldingTank* result = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
-#line 448 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 449 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->offline_bin;
-#line 449 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _source_holding_tank_ref0 (_tmp0_);
-#line 449 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp1_;
-#line 449 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 5125 "MediaDataRepresentation.c"
-}
-
-
-static MediaSource*
-media_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* self,
- gint64 numeric_id)
-{
-#line 455 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_collection_fetch_by_numeric_id'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 455 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 5137 "MediaDataRepresentation.c"
-}
-
-
-MediaSource*
-media_source_collection_fetch_by_numeric_id (MediaSourceCollection* self,
- gint64 numeric_id)
-{
-#line 455 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 455 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->fetch_by_numeric_id (self, numeric_id);
-#line 5149 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_notify_import_roll_altered (MediaSourceCollection* self)
-{
-#line 458 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_IMPORT_ROLL_ALTERED_SIGNAL], 0);
-#line 5158 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_notify_import_roll_altered (MediaSourceCollection* self)
-{
-#line 457 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 457 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->notify_import_roll_altered (self);
-#line 5169 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_notify_flagged_contents_altered (MediaSourceCollection* self)
-{
-#line 462 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_FLAGGED_CONTENTS_ALTERED_SIGNAL], 0);
-#line 5178 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_notify_flagged_contents_altered (MediaSourceCollection* self)
-{
-#line 461 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 461 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->notify_flagged_contents_altered (self);
-#line 5189 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_notify_media_import_starting (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 465 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 466 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_STARTING_SIGNAL], 0, media);
-#line 5201 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_notify_media_import_starting (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 465 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 465 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->notify_media_import_starting (self, media);
-#line 5213 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_notify_media_import_completed (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 469 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 470 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_COMPLETED_SIGNAL], 0, media);
-#line 5225 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_notify_media_import_completed (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 469 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 469 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->notify_media_import_completed (self, media);
-#line 5237 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_items_altered (DataCollection* base,
- GeeMap* items)
-{
- MediaSourceCollection * self;
- GeeArrayList* to_trashcan = NULL;
- GeeArrayList* to_offline = NULL;
- gboolean flagged_altered = FALSE;
- GeeArrayList* _tmp43_;
- GeeArrayList* _tmp47_;
- gboolean _tmp51_;
-#line 473 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection);
-#line 473 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_MAP (items));
-#line 474 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- to_trashcan = NULL;
-#line 475 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- to_offline = NULL;
-#line 476 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flagged_altered = FALSE;
-#line 5262 "MediaDataRepresentation.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_map_get_keys (items);
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _tmp1_;
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _tmp3_;
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp2_);
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _object_it = _tmp4_;
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 5286 "MediaDataRepresentation.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Alteration* alteration = NULL;
- DataObject* _tmp8_;
- gpointer _tmp9_;
- MediaSource* source = NULL;
- DataObject* _tmp10_;
- MediaSource* _tmp11_;
- Alteration* _tmp12_;
- gboolean _tmp13_ = FALSE;
- MediaSource* _tmp14_;
- gboolean _tmp22_ = FALSE;
- MediaSource* _tmp23_;
- Flaggable* flaggable = NULL;
- MediaSource* _tmp31_;
- Flaggable* _tmp32_;
- Flaggable* _tmp33_;
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _object_it;
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 5312 "MediaDataRepresentation.c"
- }
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = _object_it;
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- object = (DataObject*) _tmp7_;
-#line 478 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = object;
-#line 478 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = gee_map_get (items, _tmp8_);
-#line 478 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- alteration = (Alteration*) _tmp9_;
-#line 479 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = object;
-#line 479 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 479 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source = _tmp11_;
-#line 481 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = alteration;
-#line 481 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!alteration_has_subject (_tmp12_, "metadata")) {
-#line 482 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 482 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _alteration_unref0 (alteration);
-#line 482 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (object);
-#line 482 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- continue;
-#line 5344 "MediaDataRepresentation.c"
- }
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = source;
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (media_source_is_trashed (_tmp14_)) {
-#line 5350 "MediaDataRepresentation.c"
- MediaSourceHoldingTank* _tmp15_;
- MediaSourceHoldingTank* _tmp16_;
- MediaSource* _tmp17_;
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = media_source_collection_get_trashcan (self);
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = _tmp15_;
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp17_ = source;
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = !source_holding_tank_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_SOURCE, DataSource));
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp16_);
-#line 5364 "MediaDataRepresentation.c"
- } else {
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = FALSE;
-#line 5368 "MediaDataRepresentation.c"
- }
-#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp13_) {
-#line 5372 "MediaDataRepresentation.c"
- GeeArrayList* _tmp18_;
- GeeArrayList* _tmp20_;
- MediaSource* _tmp21_;
-#line 485 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp18_ = to_trashcan;
-#line 485 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp18_ == NULL) {
-#line 5380 "MediaDataRepresentation.c"
- GeeArrayList* _tmp19_;
-#line 486 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp19_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 486 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (to_trashcan);
-#line 486 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- to_trashcan = _tmp19_;
-#line 5388 "MediaDataRepresentation.c"
- }
-#line 488 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp20_ = to_trashcan;
-#line 488 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp21_ = source;
-#line 488 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_);
-#line 491 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 491 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _alteration_unref0 (alteration);
-#line 491 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (object);
-#line 491 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- continue;
-#line 5404 "MediaDataRepresentation.c"
- }
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp23_ = source;
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (media_source_is_offline (_tmp23_)) {
-#line 5410 "MediaDataRepresentation.c"
- MediaSourceHoldingTank* _tmp24_;
- MediaSourceHoldingTank* _tmp25_;
- MediaSource* _tmp26_;
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp24_ = media_source_collection_get_offline_bin (self);
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp25_ = _tmp24_;
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp26_ = source;
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp22_ = !source_holding_tank_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_SOURCE, DataSource));
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp25_);
-#line 5424 "MediaDataRepresentation.c"
- } else {
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp22_ = FALSE;
-#line 5428 "MediaDataRepresentation.c"
- }
-#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp22_) {
-#line 5432 "MediaDataRepresentation.c"
- GeeArrayList* _tmp27_;
- GeeArrayList* _tmp29_;
- MediaSource* _tmp30_;
-#line 495 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp27_ = to_offline;
-#line 495 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp27_ == NULL) {
-#line 5440 "MediaDataRepresentation.c"
- GeeArrayList* _tmp28_;
-#line 496 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp28_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 496 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (to_offline);
-#line 496 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- to_offline = _tmp28_;
-#line 5448 "MediaDataRepresentation.c"
- }
-#line 498 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp29_ = to_offline;
-#line 498 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp30_ = source;
-#line 498 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp30_);
-#line 5456 "MediaDataRepresentation.c"
- }
-#line 501 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp31_ = source;
-#line 501 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp31_) : NULL);
-#line 501 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flaggable = _tmp32_;
-#line 502 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp33_ = flaggable;
-#line 502 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp33_ != NULL) {
-#line 5468 "MediaDataRepresentation.c"
- Flaggable* _tmp34_;
-#line 503 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp34_ = flaggable;
-#line 503 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (flaggable_is_flagged (_tmp34_)) {
-#line 5474 "MediaDataRepresentation.c"
- gboolean _tmp35_ = FALSE;
- GeeSet* _tmp36_;
- MediaSource* _tmp37_;
-#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp36_ = self->priv->flagged;
-#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp37_ = source;
-#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_)) {
-#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp35_ = TRUE;
-#line 5486 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp38_;
-#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp38_ = flagged_altered;
-#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp35_ = _tmp38_;
-#line 5493 "MediaDataRepresentation.c"
- }
-#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flagged_altered = _tmp35_;
-#line 5497 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp39_ = FALSE;
- GeeSet* _tmp40_;
- MediaSource* _tmp41_;
-#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp40_ = self->priv->flagged;
-#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp41_ = source;
-#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_COLLECTION, GeeCollection), _tmp41_)) {
-#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp39_ = TRUE;
-#line 5510 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp42_;
-#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp42_ = flagged_altered;
-#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp39_ = _tmp42_;
-#line 5517 "MediaDataRepresentation.c"
- }
-#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flagged_altered = _tmp39_;
-#line 5521 "MediaDataRepresentation.c"
- }
- }
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (flaggable);
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _alteration_unref0 (alteration);
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (object);
-#line 5532 "MediaDataRepresentation.c"
- }
-#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_object_it);
-#line 5536 "MediaDataRepresentation.c"
- }
-#line 510 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp43_ = to_trashcan;
-#line 510 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp43_ != NULL) {
-#line 5542 "MediaDataRepresentation.c"
- MediaSourceHoldingTank* _tmp44_;
- MediaSourceHoldingTank* _tmp45_;
- GeeArrayList* _tmp46_;
-#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp44_ = media_source_collection_get_trashcan (self);
-#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp45_ = _tmp44_;
-#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp46_ = to_trashcan;
-#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source_holding_tank_unlink_and_hold (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp45_);
-#line 5556 "MediaDataRepresentation.c"
- }
-#line 513 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp47_ = to_offline;
-#line 513 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp47_ != NULL) {
-#line 5562 "MediaDataRepresentation.c"
- MediaSourceHoldingTank* _tmp48_;
- MediaSourceHoldingTank* _tmp49_;
- GeeArrayList* _tmp50_;
-#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp48_ = media_source_collection_get_offline_bin (self);
-#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp49_ = _tmp48_;
-#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp50_ = to_offline;
-#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source_holding_tank_unlink_and_hold (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp49_);
-#line 5576 "MediaDataRepresentation.c"
- }
-#line 516 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp51_ = flagged_altered;
-#line 516 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp51_) {
-#line 517 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_notify_flagged_contents_altered (self);
-#line 5584 "MediaDataRepresentation.c"
- }
-#line 519 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- DATA_COLLECTION_CLASS (media_source_collection_parent_class)->items_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), items);
-#line 473 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (to_offline);
-#line 473 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (to_trashcan);
-#line 5592 "MediaDataRepresentation.c"
-}
-
-
-static void
-_media_source_collection_on_master_replaced_media_source_master_replaced (MediaSource* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self)
-{
-#line 531 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_on_master_replaced ((MediaSourceCollection*) self, _sender, old_file, new_file);
-#line 5604 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_notify_contents_altered (DataCollection* base,
- GeeIterable* added,
- GeeIterable* removed)
-{
- MediaSourceCollection * self;
- gboolean import_roll_changed = FALSE;
- gboolean flagged_altered = FALSE;
- gboolean _tmp60_;
- gboolean _tmp61_;
-#line 522 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection);
-#line 522 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 522 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 524 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- import_roll_changed = FALSE;
-#line 525 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flagged_altered = FALSE;
-#line 526 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (added != NULL) {
-#line 5630 "MediaDataRepresentation.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _object_it = _tmp0_;
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 5640 "MediaDataRepresentation.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- MediaSource* media = NULL;
- DataObject* _tmp4_;
- MediaSource* _tmp5_;
- GeeHashMap* _tmp6_;
- MediaSource* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- MediaSource* _tmp10_;
- MediaSource* _tmp11_;
- ImportID import_id = {0};
- MediaSource* _tmp12_;
- ImportID _tmp13_ = {0};
- Flaggable* flaggable = NULL;
- MediaSource* _tmp19_;
- Flaggable* _tmp20_;
- Flaggable* _tmp21_;
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _object_it;
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 5667 "MediaDataRepresentation.c"
- }
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _object_it;
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- object = (DataObject*) _tmp3_;
-#line 528 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = object;
-#line 528 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 528 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media = _tmp5_;
-#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = self->priv->by_master_file;
-#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = media;
-#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = media_source_get_master_file (_tmp7_);
-#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = _tmp8_;
-#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = media;
-#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_);
-#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp9_);
-#line 531 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = media;
-#line 531 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_connect (_tmp11_, "master-replaced", (GCallback) _media_source_collection_on_master_replaced_media_source_master_replaced, self);
-#line 533 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = media;
-#line 533 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_get_import_id (_tmp12_, &_tmp13_);
-#line 533 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- import_id = _tmp13_;
-#line 534 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (import_id_is_valid (&import_id)) {
-#line 5707 "MediaDataRepresentation.c"
- GeeTreeSet* _tmp14_;
- ImportID _tmp15_;
- GeeMultiMap* _tmp16_;
- ImportID _tmp17_;
- MediaSource* _tmp18_;
-#line 535 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = self->priv->sorted_import_ids;
-#line 535 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = import_id;
-#line 535 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp15_);
-#line 536 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = self->priv->import_rolls;
-#line 536 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp17_ = import_id;
-#line 536 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp18_ = media;
-#line 536 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_multi_map_set (_tmp16_, &_tmp17_, _tmp18_);
-#line 538 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- import_roll_changed = TRUE;
-#line 5729 "MediaDataRepresentation.c"
- }
-#line 541 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp19_ = media;
-#line 541 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp19_) : NULL);
-#line 541 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flaggable = _tmp20_;
-#line 542 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp21_ = flaggable;
-#line 542 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp21_ != NULL) {
-#line 5741 "MediaDataRepresentation.c"
- Flaggable* _tmp22_;
-#line 543 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp22_ = flaggable;
-#line 543 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (flaggable_is_flagged (_tmp22_)) {
-#line 5747 "MediaDataRepresentation.c"
- gboolean _tmp23_ = FALSE;
- GeeSet* _tmp24_;
- MediaSource* _tmp25_;
-#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp24_ = self->priv->flagged;
-#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp25_ = media;
-#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_)) {
-#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp23_ = TRUE;
-#line 5759 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp26_;
-#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp26_ = flagged_altered;
-#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp23_ = _tmp26_;
-#line 5766 "MediaDataRepresentation.c"
- }
-#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flagged_altered = _tmp23_;
-#line 5770 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp27_ = FALSE;
- GeeSet* _tmp28_;
- MediaSource* _tmp29_;
-#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp28_ = self->priv->flagged;
-#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp29_ = media;
-#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), _tmp29_)) {
-#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp27_ = TRUE;
-#line 5783 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp30_;
-#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp30_ = flagged_altered;
-#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp27_ = _tmp30_;
-#line 5790 "MediaDataRepresentation.c"
- }
-#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flagged_altered = _tmp27_;
-#line 5794 "MediaDataRepresentation.c"
- }
- }
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (flaggable);
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (media);
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (object);
-#line 5803 "MediaDataRepresentation.c"
- }
-#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_object_it);
-#line 5807 "MediaDataRepresentation.c"
- }
- }
-#line 551 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (removed != NULL) {
-#line 5812 "MediaDataRepresentation.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp31_;
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp31_ = gee_iterable_iterator (removed);
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _object_it = _tmp31_;
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 5822 "MediaDataRepresentation.c"
- GeeIterator* _tmp32_;
- DataObject* object = NULL;
- GeeIterator* _tmp33_;
- gpointer _tmp34_;
- MediaSource* media = NULL;
- DataObject* _tmp35_;
- MediaSource* _tmp36_;
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp37_;
- MediaSource* _tmp38_;
- GFile* _tmp39_;
- GFile* _tmp40_;
- gboolean _tmp41_;
- gboolean _tmp42_;
- gboolean _tmp43_;
- MediaSource* _tmp44_;
- guint _tmp45_;
- ImportID import_id = {0};
- MediaSource* _tmp46_;
- ImportID _tmp47_ = {0};
- gboolean _tmp56_ = FALSE;
- GeeSet* _tmp57_;
- MediaSource* _tmp58_;
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp32_ = _object_it;
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp32_)) {
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 5852 "MediaDataRepresentation.c"
- }
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp33_ = _object_it;
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp34_ = gee_iterator_get (_tmp33_);
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- object = (DataObject*) _tmp34_;
-#line 553 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp35_ = object;
-#line 553 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 553 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media = _tmp36_;
-#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp37_ = self->priv->by_master_file;
-#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp38_ = media;
-#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp39_ = media_source_get_master_file (_tmp38_);
-#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp40_ = _tmp39_;
-#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp41_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp40_, NULL);
-#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp42_ = _tmp41_;
-#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp40_);
-#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- is_removed = _tmp42_;
-#line 556 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp43_ = is_removed;
-#line 556 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (_tmp43_, "is_removed");
-#line 557 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp44_ = media;
-#line 557 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_parse_name ("master-replaced", TYPE_MEDIA_SOURCE, &_tmp45_, NULL, FALSE);
-#line 557 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_handlers_disconnect_matched (_tmp44_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp45_, 0, NULL, (GCallback) _media_source_collection_on_master_replaced_media_source_master_replaced, self);
-#line 559 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp46_ = media;
-#line 559 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_get_import_id (_tmp46_, &_tmp47_);
-#line 559 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- import_id = _tmp47_;
-#line 560 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (import_id_is_valid (&import_id)) {
-#line 5900 "MediaDataRepresentation.c"
- GeeMultiMap* _tmp48_;
- ImportID _tmp49_;
- MediaSource* _tmp50_;
- gboolean _tmp51_;
- GeeMultiMap* _tmp52_;
- ImportID _tmp53_;
-#line 561 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp48_ = self->priv->import_rolls;
-#line 561 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp49_ = import_id;
-#line 561 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp50_ = media;
-#line 561 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- is_removed = gee_multi_map_remove (_tmp48_, &_tmp49_, _tmp50_);
-#line 562 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp51_ = is_removed;
-#line 562 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (_tmp51_, "is_removed");
-#line 563 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp52_ = self->priv->import_rolls;
-#line 563 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp53_ = import_id;
-#line 563 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_multi_map_contains (_tmp52_, &_tmp53_)) {
-#line 5925 "MediaDataRepresentation.c"
- GeeTreeSet* _tmp54_;
- ImportID _tmp55_;
-#line 564 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp54_ = self->priv->sorted_import_ids;
-#line 564 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp55_ = import_id;
-#line 564 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp55_);
-#line 5934 "MediaDataRepresentation.c"
- }
-#line 566 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- import_roll_changed = TRUE;
-#line 5938 "MediaDataRepresentation.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp57_ = self->priv->flagged;
-#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp58_ = media;
-#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GEE_TYPE_COLLECTION, GeeCollection), _tmp58_)) {
-#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp56_ = TRUE;
-#line 5948 "MediaDataRepresentation.c"
- } else {
- gboolean _tmp59_;
-#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp59_ = flagged_altered;
-#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp56_ = _tmp59_;
-#line 5955 "MediaDataRepresentation.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- flagged_altered = _tmp56_;
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (media);
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (object);
-#line 5963 "MediaDataRepresentation.c"
- }
-#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_object_it);
-#line 5967 "MediaDataRepresentation.c"
- }
- }
-#line 573 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp60_ = import_roll_changed;
-#line 573 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp60_) {
-#line 574 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_notify_import_roll_altered (self);
-#line 5976 "MediaDataRepresentation.c"
- }
-#line 576 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp61_ = flagged_altered;
-#line 576 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp61_) {
-#line 577 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_notify_flagged_contents_altered (self);
-#line 5984 "MediaDataRepresentation.c"
- }
-#line 579 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- DATA_COLLECTION_CLASS (media_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added, removed);
-#line 5988 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_on_master_replaced (MediaSourceCollection* self,
- MediaSource* media,
- GFile* old_file,
- GFile* new_file)
-{
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp0_;
- gboolean _tmp1_;
- GeeHashMap* _tmp2_;
-#line 582 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 582 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (media));
-#line 582 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 582 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 583 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->by_master_file;
-#line 583 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), old_file, NULL);
-#line 583 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- is_removed = _tmp1_;
-#line 584 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (is_removed, "is_removed");
-#line 586 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = self->priv->by_master_file;
-#line 586 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_file, media);
-#line 588 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MASTER_FILE_REPLACED_SIGNAL], 0, media, old_file, new_file);
-#line 6024 "MediaDataRepresentation.c"
-}
-
-
-MediaSource*
-media_source_collection_fetch_by_master_file (MediaSourceCollection* self,
- GFile* file)
-{
- MediaSource* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 591 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 591 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 592 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->by_master_file;
-#line 592 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 592 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = (MediaSource*) _tmp1_;
-#line 592 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6047 "MediaDataRepresentation.c"
-}
-
-
-static MediaSource*
-media_source_collection_real_fetch_by_source_id (MediaSourceCollection* self,
- const gchar* source_id)
-{
- MediaSource* result = NULL;
- gchar** components = NULL;
- gchar** _tmp0_;
- gchar** _tmp1_;
- gint components_length1;
- gint _components_size_;
- const gchar* _tmp2_;
- MediaSource* _tmp3_;
-#line 595 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (source_id != NULL, NULL);
-#line 596 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_ = g_strsplit (source_id, "-", 0);
-#line 596 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- components = _tmp1_;
-#line 596 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- components_length1 = _vala_array_length (_tmp0_);
-#line 596 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _components_size_ = components_length1;
-#line 597 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (components_length1 == 2, "components.length == 2");
-#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = components[1];
-#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = media_source_collection_fetch_by_numeric_id (self, parse_int64 (_tmp2_, 16));
-#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp3_;
-#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- components = (_vala_array_free (components, components_length1, (GDestroyNotify) g_free), NULL);
-#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6085 "MediaDataRepresentation.c"
-}
-
-
-MediaSource*
-media_source_collection_fetch_by_source_id (MediaSourceCollection* self,
- const gchar* source_id)
-{
-#line 595 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 595 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->fetch_by_source_id (self, source_id);
-#line 6097 "MediaDataRepresentation.c"
-}
-
-
-static GeeCollection*
-media_source_collection_real_get_event_source_ids (MediaSourceCollection* self,
- EventID* event_id)
-{
-#line 602 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("Type `%s' does not implement abstract method `media_source_collection_get_event_source_ids'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 602 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 6109 "MediaDataRepresentation.c"
-}
-
-
-GeeCollection*
-media_source_collection_get_event_source_ids (MediaSourceCollection* self,
- EventID* event_id)
-{
-#line 602 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 602 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->get_event_source_ids (self, event_id);
-#line 6121 "MediaDataRepresentation.c"
-}
-
-
-GeeCollection*
-media_source_collection_get_trashcan_contents (MediaSourceCollection* self)
-{
- GeeCollection* result = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
-#line 604 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_collection_get_trashcan (self);
-#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = source_holding_tank_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank));
-#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp3_;
-#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6149 "MediaDataRepresentation.c"
-}
-
-
-GeeCollection*
-media_source_collection_get_offline_bin_contents (MediaSourceCollection* self)
-{
- GeeCollection* result = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
-#line 608 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_collection_get_offline_bin (self);
-#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = source_holding_tank_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank));
-#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp3_;
-#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6177 "MediaDataRepresentation.c"
-}
-
-
-GeeCollection*
-media_source_collection_get_flagged (MediaSourceCollection* self)
-{
- GeeCollection* result = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
-#line 612 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->flagged;
-#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_set_get_read_only_view (_tmp0_);
-#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _tmp1_;
-#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6200 "MediaDataRepresentation.c"
-}
-
-
-GeeSortedSet*
-media_source_collection_get_import_roll_ids (MediaSourceCollection* self)
-{
- GeeSortedSet* result = NULL;
- GeeTreeSet* _tmp0_;
- GeeSortedSet* _tmp1_;
-#line 617 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 618 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->sorted_import_ids;
-#line 618 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SORTED_SET, GeeSortedSet));
-#line 618 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp1_;
-#line 618 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6220 "MediaDataRepresentation.c"
-}
-
-
-ImportID*
-media_source_collection_get_last_import_id (MediaSourceCollection* self)
-{
- ImportID* result = NULL;
- ImportID* _tmp0_ = NULL;
- GeeTreeSet* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 621 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = self->priv->sorted_import_ids;
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp3_ != 0) {
-#line 6242 "MediaDataRepresentation.c"
- GeeTreeSet* _tmp4_;
- gpointer _tmp5_;
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = self->priv->sorted_import_ids;
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = gee_abstract_sorted_set_last (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_SORTED_SET, GeeAbstractSortedSet));
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _import_id_free0 (_tmp0_);
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = (ImportID*) _tmp5_;
-#line 6253 "MediaDataRepresentation.c"
- } else {
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _import_id_free0 (_tmp0_);
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = NULL;
-#line 6259 "MediaDataRepresentation.c"
- }
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp0_;
-#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6265 "MediaDataRepresentation.c"
-}
-
-
-GeeCollection*
-media_source_collection_get_import_roll (MediaSourceCollection* self,
- ImportID* import_id)
-{
- GeeCollection* result = NULL;
- GeeMultiMap* _tmp0_;
- ImportID _tmp1_;
- GeeCollection* _tmp2_;
-#line 625 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 625 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (import_id != NULL, NULL);
-#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->import_rolls;
-#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = *import_id;
-#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_multi_map_get (_tmp0_, &_tmp1_);
-#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp2_;
-#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6291 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_add_many_to_trash (MediaSourceCollection* self,
- GeeCollection* sources)
-{
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
-#line 629 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 629 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 630 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_collection_get_trashcan (self);
-#line 630 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 630 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source_holding_tank_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), sources);
-#line 630 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 6313 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_add_many_to_offline (MediaSourceCollection* self,
- GeeCollection* sources)
-{
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
-#line 633 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 633 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 634 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_collection_get_offline_bin (self);
-#line 634 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 634 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source_holding_tank_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), sources);
-#line 634 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 6335 "MediaDataRepresentation.c"
-}
-
-
-gint
-media_source_collection_get_trashcan_count (MediaSourceCollection* self)
-{
- gint result = 0;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- gint _tmp2_;
-#line 637 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), 0);
-#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_source_collection_get_trashcan (self);
-#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = source_holding_tank_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank));
-#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp2_;
-#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6360 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_import_many (MediaSourceCollection* self,
- GeeCollection* media)
-{
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 644 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 645 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_notify_media_import_starting (self, media);
-#line 647 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), media, NULL, NULL);
-#line 647 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 647 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 649 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_postprocess_imported_media (self, media);
-#line 651 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_notify_media_import_completed (self, media);
-#line 6384 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_import_many (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 644 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 644 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->import_many (self, media);
-#line 6396 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_postprocess_imported_media (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 656 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 6406 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_postprocess_imported_media (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 656 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 656 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->postprocess_imported_media (self, media);
-#line 6418 "MediaDataRepresentation.c"
-}
-
-
-static gboolean
-_aggregate_progress_monitor_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self)
-{
- gboolean result;
- result = aggregate_progress_monitor_monitor ((AggregateProgressMonitor*) self, current, total);
-#line 691 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 6432 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_remove_from_app (MediaSourceCollection* self,
- GeeCollection* sources,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed)
-{
- GeeHashSet* _tmp0_ = NULL;
- GeeHashSet* to_tombstone = NULL;
- GeeHashSet* _tmp2_;
- GeeArrayList* trashed = NULL;
- GeeArrayList* _tmp3_;
- GeeArrayList* offlined = NULL;
- GeeArrayList* _tmp4_;
- GeeArrayList* not_trashed = NULL;
- GeeArrayList* _tmp5_;
- gint total_count = 0;
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- GeeArrayList* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- GeeArrayList* _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- GeeArrayList* _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- AggregateProgressMonitor* agg_monitor = NULL;
- GeeArrayList* _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- GeeArrayList* _tmp42_;
- gint _tmp43_;
- gint _tmp44_;
- GeeArrayList* _tmp48_;
- gint _tmp49_;
- gint _tmp50_;
- gboolean _tmp54_ = FALSE;
- GeeHashSet* _tmp55_;
- GError * _inner_error_ = NULL;
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((sources == NULL) || GEE_IS_COLLECTION (sources));
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((not_removed == NULL) || GEE_IS_LIST (not_removed));
-#line 664 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (sources != NULL, "sources != null");
-#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!delete_backing) {
-#line 6489 "MediaDataRepresentation.c"
- GeeHashSet* _tmp1_;
-#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp0_);
-#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = _tmp1_;
-#line 6497 "MediaDataRepresentation.c"
- } else {
-#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp0_);
-#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = NULL;
-#line 6503 "MediaDataRepresentation.c"
- }
-#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _g_object_ref0 (_tmp0_);
-#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- to_tombstone = _tmp2_;
-#line 669 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 669 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- trashed = _tmp3_;
-#line 670 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 670 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- offlined = _tmp4_;
-#line 671 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 671 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- not_trashed = _tmp5_;
-#line 6521 "MediaDataRepresentation.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp6_;
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_it = _tmp6_;
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 6531 "MediaDataRepresentation.c"
- GeeIterator* _tmp7_;
- MediaSource* source = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- MediaSource* _tmp10_;
- GeeHashSet* _tmp18_;
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = _source_it;
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 6544 "MediaDataRepresentation.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = _source_it;
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source = (MediaSource*) _tmp9_;
-#line 673 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = source;
-#line 673 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (media_source_is_trashed (_tmp10_)) {
-#line 6556 "MediaDataRepresentation.c"
- GeeArrayList* _tmp11_;
- MediaSource* _tmp12_;
-#line 674 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = trashed;
-#line 674 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = source;
-#line 674 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_);
-#line 6565 "MediaDataRepresentation.c"
- } else {
- MediaSource* _tmp13_;
-#line 675 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = source;
-#line 675 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (media_source_is_offline (_tmp13_)) {
-#line 6572 "MediaDataRepresentation.c"
- GeeArrayList* _tmp14_;
- MediaSource* _tmp15_;
-#line 676 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = offlined;
-#line 676 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = source;
-#line 676 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 6581 "MediaDataRepresentation.c"
- } else {
- GeeArrayList* _tmp16_;
- MediaSource* _tmp17_;
-#line 678 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = not_trashed;
-#line 678 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp17_ = source;
-#line 678 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
-#line 6591 "MediaDataRepresentation.c"
- }
- }
-#line 680 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp18_ = to_tombstone;
-#line 680 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp18_ != NULL) {
-#line 6598 "MediaDataRepresentation.c"
- GeeHashSet* _tmp19_;
- MediaSource* _tmp20_;
-#line 681 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp19_ = to_tombstone;
-#line 681 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp20_ = source;
-#line 681 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp20_);
-#line 6607 "MediaDataRepresentation.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 6611 "MediaDataRepresentation.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 6615 "MediaDataRepresentation.c"
- }
-#line 684 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp21_ = gee_collection_get_size (sources);
-#line 684 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp22_ = _tmp21_;
-#line 684 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- total_count = _tmp22_;
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp23_ = total_count;
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp24_ = trashed;
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp25_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp26_ = _tmp25_;
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp27_ = offlined;
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp29_ = _tmp28_;
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp30_ = not_trashed;
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp31_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp32_ = _tmp31_;
-#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (_tmp23_ == ((_tmp26_ + _tmp29_) + _tmp32_), "total_count == (trashed.size + offlined.size + not_trashed.size)");
-#line 688 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- agg_monitor = NULL;
-#line 689 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (monitor != NULL) {
-#line 6649 "MediaDataRepresentation.c"
- gint _tmp33_;
- AggregateProgressMonitor* _tmp34_;
- AggregateProgressMonitor* _tmp35_;
-#line 690 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp33_ = total_count;
-#line 690 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp34_ = aggregate_progress_monitor_new ((guint64) _tmp33_, monitor, monitor_target);
-#line 690 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _aggregate_progress_monitor_unref0 (agg_monitor);
-#line 690 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- agg_monitor = _tmp34_;
-#line 691 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp35_ = agg_monitor;
-#line 691 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- monitor = _aggregate_progress_monitor_monitor_progress_monitor;
-#line 691 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- monitor_target = _tmp35_;
-#line 6667 "MediaDataRepresentation.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp36_ = trashed;
-#line 694 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 694 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp38_ = _tmp37_;
-#line 694 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp38_ > 0) {
-#line 6677 "MediaDataRepresentation.c"
- MediaSourceHoldingTank* _tmp39_;
- MediaSourceHoldingTank* _tmp40_;
- GeeArrayList* _tmp41_;
-#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp39_ = media_source_collection_get_trashcan (self);
-#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp40_ = _tmp39_;
-#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp41_ = trashed;
-#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source_holding_tank_destroy_orphans (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_LIST, GeeList), delete_backing, monitor, monitor_target, not_removed);
-#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp40_);
-#line 6691 "MediaDataRepresentation.c"
- }
-#line 697 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp42_ = offlined;
-#line 697 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp43_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 697 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp44_ = _tmp43_;
-#line 697 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp44_ > 0) {
-#line 6701 "MediaDataRepresentation.c"
- MediaSourceHoldingTank* _tmp45_;
- MediaSourceHoldingTank* _tmp46_;
- GeeArrayList* _tmp47_;
-#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp45_ = media_source_collection_get_offline_bin (self);
-#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp46_ = _tmp45_;
-#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp47_ = offlined;
-#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source_holding_tank_destroy_orphans (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_LIST, GeeList), delete_backing, monitor, monitor_target, not_removed);
-#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (_tmp46_);
-#line 6715 "MediaDataRepresentation.c"
- }
-#line 701 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp48_ = not_trashed;
-#line 701 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp49_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 701 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp50_ = _tmp49_;
-#line 701 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp50_ > 0) {
-#line 6725 "MediaDataRepresentation.c"
- GeeArrayList* _tmp51_;
- Marker* _tmp52_;
- Marker* _tmp53_;
-#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp51_ = not_trashed;
-#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp52_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp53_ = _tmp52_;
-#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp53_, delete_backing, monitor, monitor_target, not_removed);
-#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp53_);
-#line 6739 "MediaDataRepresentation.c"
- }
-#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp55_ = to_tombstone;
-#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp55_ != NULL) {
-#line 6745 "MediaDataRepresentation.c"
- GeeHashSet* _tmp56_;
- gint _tmp57_;
- gint _tmp58_;
-#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp56_ = to_tombstone;
-#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp57_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp58_ = _tmp57_;
-#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp54_ = _tmp58_ > 0;
-#line 6757 "MediaDataRepresentation.c"
- } else {
-#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp54_ = FALSE;
-#line 6761 "MediaDataRepresentation.c"
- }
-#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp54_) {
-#line 6765 "MediaDataRepresentation.c"
- {
- GeeHashSet* _tmp59_;
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp59_ = to_tombstone;
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- tombstone_entomb_many_sources (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_COLLECTION, GeeCollection), TOMBSTONE_REASON_REMOVED_BY_USER, &_inner_error_);
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6776 "MediaDataRepresentation.c"
- goto __catch574_database_error;
- }
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _aggregate_progress_monitor_unref0 (agg_monitor);
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (not_trashed);
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (offlined);
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (trashed);
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (to_tombstone);
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp0_);
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_clear_error (&_inner_error_);
-#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 6797 "MediaDataRepresentation.c"
- }
- }
- goto __finally574;
- __catch574_database_error:
- {
- GError* err = NULL;
- GError* _tmp60_;
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- err = _inner_error_;
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _inner_error_ = NULL;
-#line 708 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp60_ = err;
-#line 708 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- app_window_database_error (_tmp60_);
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_error_free0 (err);
-#line 6815 "MediaDataRepresentation.c"
- }
- __finally574:
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _aggregate_progress_monitor_unref0 (agg_monitor);
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (not_trashed);
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (offlined);
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (trashed);
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (to_tombstone);
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp0_);
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_clear_error (&_inner_error_);
-#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 6838 "MediaDataRepresentation.c"
- }
- }
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _aggregate_progress_monitor_unref0 (agg_monitor);
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (not_trashed);
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (offlined);
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (trashed);
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (to_tombstone);
-#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp0_);
-#line 6853 "MediaDataRepresentation.c"
-}
-
-
-void
-media_source_collection_delete_backing_files (MediaSourceCollection* self,
- GeeCollection* sources,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_deleted)
-{
- gint total_count = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint i = 0;
- GError * _inner_error_ = NULL;
-#line 715 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self));
-#line 715 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 715 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((not_deleted == NULL) || GEE_IS_LIST (not_deleted));
-#line 717 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_collection_get_size (sources);
-#line 717 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 717 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- total_count = _tmp1_;
-#line 718 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- i = 1;
-#line 6883 "MediaDataRepresentation.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp2_;
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_it = _tmp2_;
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 6893 "MediaDataRepresentation.c"
- GeeIterator* _tmp3_;
- MediaSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- GFile* file = NULL;
- MediaSource* _tmp6_;
- GFile* _tmp7_;
- GFile* masterfile = NULL;
- MediaSource* _tmp14_;
- GFile* _tmp15_;
- GFile* _tmp16_;
- gboolean deleted = FALSE;
- GFile* _tmp24_;
- gboolean _tmp25_ = FALSE;
- gboolean _tmp26_;
- gint _tmp30_;
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _source_it;
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 6916 "MediaDataRepresentation.c"
- }
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _source_it;
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- source = (MediaSource*) _tmp5_;
-#line 721 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = source;
-#line 721 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = media_source_get_file (_tmp6_);
-#line 721 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- file = _tmp7_;
-#line 6930 "MediaDataRepresentation.c"
- {
- GFile* _tmp8_;
-#line 723 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = file;
-#line 723 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_file_delete (_tmp8_, NULL, &_inner_error_);
-#line 723 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6939 "MediaDataRepresentation.c"
- goto __catch575_g_error;
- }
- }
- goto __finally575;
- __catch575_g_error:
- {
- GError* err = NULL;
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GError* _tmp12_;
- const gchar* _tmp13_;
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- err = _inner_error_;
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _inner_error_ = NULL;
-#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = file;
-#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = g_file_get_path (_tmp9_);
-#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = _tmp10_;
-#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = err;
-#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = _tmp12_->message;
-#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_debug ("MediaDataRepresentation.vala:726: Exception deleting file %s: %s", _tmp11_, _tmp13_);
-#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp11_);
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_error_free0 (err);
-#line 6972 "MediaDataRepresentation.c"
- }
- __finally575:
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (file);
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_clear_error (&_inner_error_);
-#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 6989 "MediaDataRepresentation.c"
- }
-#line 729 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = source;
-#line 729 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = media_source_get_master_file (_tmp14_);
-#line 729 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- masterfile = _tmp15_;
-#line 730 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = masterfile;
-#line 730 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp16_ != NULL) {
-#line 7001 "MediaDataRepresentation.c"
- {
- GFile* _tmp17_;
-#line 732 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp17_ = masterfile;
-#line 732 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_file_delete (_tmp17_, NULL, &_inner_error_);
-#line 732 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7010 "MediaDataRepresentation.c"
- goto __catch576_g_error;
- }
- }
- goto __finally576;
- __catch576_g_error:
- {
- GError* err = NULL;
- GError* _tmp18_;
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- err = _inner_error_;
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _inner_error_ = NULL;
-#line 734 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp18_ = err;
-#line 734 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!g_error_matches (_tmp18_, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) {
-#line 7027 "MediaDataRepresentation.c"
- GFile* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GError* _tmp22_;
- const gchar* _tmp23_;
-#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp19_ = masterfile;
-#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp20_ = g_file_get_path (_tmp19_);
-#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp21_ = _tmp20_;
-#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp22_ = err;
-#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp23_ = _tmp22_->message;
-#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_debug ("MediaDataRepresentation.vala:735: Exception deleting master file %s: %" \
-"s", _tmp21_, _tmp23_);
-#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp21_);
-#line 7047 "MediaDataRepresentation.c"
- }
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_error_free0 (err);
-#line 7051 "MediaDataRepresentation.c"
- }
- __finally576:
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (masterfile);
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (file);
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_clear_error (&_inner_error_);
-#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 7070 "MediaDataRepresentation.c"
- }
- }
-#line 740 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp24_ = file;
-#line 740 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- deleted = !g_file_query_exists (_tmp24_, NULL);
-#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp26_ = deleted;
-#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!_tmp26_) {
-#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp25_ = NULL != not_deleted;
-#line 7083 "MediaDataRepresentation.c"
- } else {
-#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp25_ = FALSE;
-#line 7087 "MediaDataRepresentation.c"
- }
-#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp25_) {
-#line 7091 "MediaDataRepresentation.c"
- MediaSource* _tmp27_;
-#line 742 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp27_ = source;
-#line 742 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (not_deleted, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_);
-#line 7097 "MediaDataRepresentation.c"
- }
-#line 745 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (monitor != NULL) {
-#line 7101 "MediaDataRepresentation.c"
- gint _tmp28_;
- gint _tmp29_;
-#line 746 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp28_ = i;
-#line 746 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp29_ = total_count;
-#line 746 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- monitor ((guint64) _tmp28_, (guint64) _tmp29_, TRUE, monitor_target);
-#line 7110 "MediaDataRepresentation.c"
- }
-#line 748 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp30_ = i;
-#line 748 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- i = _tmp30_ + 1;
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (masterfile);
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (file);
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (source);
-#line 7122 "MediaDataRepresentation.c"
- }
-#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_source_it);
-#line 7126 "MediaDataRepresentation.c"
- }
-}
-
-
-TransactionController*
-media_source_collection_get_transaction_controller (MediaSourceCollection* self)
-{
-#line 344 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL);
-#line 344 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->get_transaction_controller (self);
-#line 7138 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_media_import_starting (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 357 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 7148 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_media_import_completed (MediaSourceCollection* self,
- GeeCollection* media)
-{
-#line 364 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media));
-#line 7158 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_master_file_replaced (MediaSourceCollection* self,
- MediaSource* media,
- GFile* old_file,
- GFile* new_file)
-{
-#line 367 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (media));
-#line 367 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 367 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 7174 "MediaDataRepresentation.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (n_param_values == 4);
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data1 = closure->data;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data2 = param_values->data[0].v_pointer;
-#line 7200 "MediaDataRepresentation.c"
- } else {
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data1 = param_values->data[0].v_pointer;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data2 = closure->data;
-#line 7206 "MediaDataRepresentation.c"
- }
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_object (param_values + 3), data2);
-#line 7212 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_trashcan_contents_altered (MediaSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 370 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 370 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 7225 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_import_roll_altered (MediaSourceCollection* self)
-{
-}
-
-
-static void
-media_source_collection_real_offline_contents_altered (MediaSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 377 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 377 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 7244 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_real_flagged_contents_altered (MediaSourceCollection* self)
-{
-}
-
-
-static void
-media_source_collection_class_init (MediaSourceCollectionClass * klass)
-{
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((DataCollectionClass *) klass)->finalize = media_source_collection_finalize;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_type_class_add_private (klass, sizeof (MediaSourceCollectionPrivate));
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->create_trashcan = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) media_source_collection_real_create_trashcan;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->create_offline_bin = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) media_source_collection_real_create_offline_bin;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->create_media_monitor = (MediaMonitor* (*) (MediaSourceCollection *, Workers*, GCancellable*)) media_source_collection_real_create_media_monitor;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->get_typename = (gchar* (*) (MediaSourceCollection *)) media_source_collection_real_get_typename;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->is_file_recognized = (gboolean (*) (MediaSourceCollection *, GFile*)) media_source_collection_real_is_file_recognized;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = (MediaSource* (*) (MediaSourceCollection *, gint64)) media_source_collection_real_fetch_by_numeric_id;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->notify_import_roll_altered = (void (*) (MediaSourceCollection *)) media_source_collection_real_notify_import_roll_altered;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->notify_flagged_contents_altered = (void (*) (MediaSourceCollection *)) media_source_collection_real_notify_flagged_contents_altered;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->notify_media_import_starting = (void (*) (MediaSourceCollection *, GeeCollection*)) media_source_collection_real_notify_media_import_starting;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->notify_media_import_completed = (void (*) (MediaSourceCollection *, GeeCollection*)) media_source_collection_real_notify_media_import_completed;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((DataCollectionClass *) klass)->items_altered = (void (*) (DataCollection *, GeeMap*)) media_source_collection_real_items_altered;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) media_source_collection_real_notify_contents_altered;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->fetch_by_source_id = (MediaSource* (*) (MediaSourceCollection *, const gchar*)) media_source_collection_real_fetch_by_source_id;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->get_event_source_ids = (GeeCollection* (*) (MediaSourceCollection *, EventID*)) media_source_collection_real_get_event_source_ids;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->import_many = (void (*) (MediaSourceCollection *, GeeCollection*)) media_source_collection_real_import_many;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->postprocess_imported_media = (void (*) (MediaSourceCollection *, GeeCollection*)) media_source_collection_real_postprocess_imported_media;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->media_import_starting = media_source_collection_real_media_import_starting;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->media_import_completed = media_source_collection_real_media_import_completed;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->master_file_replaced = media_source_collection_real_master_file_replaced;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->trashcan_contents_altered = media_source_collection_real_trashcan_contents_altered;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->import_roll_altered = media_source_collection_real_import_roll_altered;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->offline_contents_altered = media_source_collection_real_offline_contents_altered;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaSourceCollectionClass *) klass)->flagged_contents_altered = media_source_collection_real_flagged_contents_altered;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_STARTING_SIGNAL] = g_signal_new ("media-import-starting", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, media_import_starting), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_COMPLETED_SIGNAL] = 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 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MASTER_FILE_REPLACED_SIGNAL] = 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 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_signals[MEDIA_SOURCE_COLLECTION_TRASHCAN_CONTENTS_ALTERED_SIGNAL] = 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 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_signals[MEDIA_SOURCE_COLLECTION_IMPORT_ROLL_ALTERED_SIGNAL] = g_signal_new ("import-roll-altered", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, import_roll_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_signals[MEDIA_SOURCE_COLLECTION_OFFLINE_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("offline-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, offline_contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_COLLECTION, GEE_TYPE_COLLECTION);
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_source_collection_signals[MEDIA_SOURCE_COLLECTION_FLAGGED_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("flagged-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, flagged_contents_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 7323 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_instance_init (MediaSourceCollection * self)
-{
- GeeHashMap* _tmp0_;
- GeeTreeMultiMap* _tmp1_;
- GeeTreeSet* _tmp2_;
- GeeHashSet* _tmp3_;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv = MEDIA_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 346 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->trashcan = NULL;
-#line 347 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->offline_bin = NULL;
-#line 348 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 348 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->by_master_file = _tmp0_;
-#line 350 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_tree_multi_map_new (TYPE_IMPORT_ID, (GBoxedCopyFunc) import_id_dup, (GDestroyNotify) import_id_free, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _import_id_compare_func_gcompare_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 350 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->import_rolls = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
-#line 352 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_tree_set_new (TYPE_IMPORT_ID, (GBoxedCopyFunc) import_id_dup, (GDestroyNotify) import_id_free, _import_id_compare_func_gcompare_data_func, NULL, NULL);
-#line 352 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->sorted_import_ids = _tmp2_;
-#line 353 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 353 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->flagged = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_SET, GeeSet);
-#line 7356 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_source_collection_finalize (DataCollection * obj)
-{
- MediaSourceCollection * self;
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection);
-#line 346 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (self->priv->trashcan);
-#line 347 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _source_holding_tank_unref0 (self->priv->offline_bin);
-#line 348 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->by_master_file);
-#line 350 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->import_rolls);
-#line 352 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->sorted_import_ids);
-#line 353 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->flagged);
-#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- DATA_COLLECTION_CLASS (media_source_collection_parent_class)->finalize (obj);
-#line 7380 "MediaDataRepresentation.c"
-}
-
-
-GType
-media_source_collection_get_type (void)
-{
- static volatile gsize media_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&media_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceCollection), 0, (GInstanceInitFunc) media_source_collection_instance_init, NULL };
- GType media_source_collection_type_id;
- media_source_collection_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_COLLECTION, "MediaSourceCollection", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&media_source_collection_type_id__volatile, media_source_collection_type_id);
- }
- return media_source_collection_type_id__volatile;
-}
-
-
-static void
-_media_collection_registry_on_init_done_application_init_done (Application* _sender,
- gpointer self)
-{
-#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_collection_registry_on_init_done ((MediaCollectionRegistry*) self);
-#line 7404 "MediaDataRepresentation.c"
-}
-
-
-static MediaCollectionRegistry*
-media_collection_registry_construct (GType object_type)
-{
- MediaCollectionRegistry* self = NULL;
- Application* _tmp0_;
- Application* _tmp1_;
-#line 762 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = (MediaCollectionRegistry*) g_type_create_instance (object_type);
-#line 763 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = application_get_instance ();
-#line 763 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 763 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_connect (_tmp1_, "init-done", (GCallback) _media_collection_registry_on_init_done_application_init_done, self);
-#line 763 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _application_unref0 (_tmp1_);
-#line 762 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self;
-#line 7426 "MediaDataRepresentation.c"
-}
-
-
-static MediaCollectionRegistry*
-media_collection_registry_new (void)
-{
-#line 762 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return media_collection_registry_construct (TYPE_MEDIA_COLLECTION_REGISTRY);
-#line 7435 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_collection_registry_on_init_done (MediaCollectionRegistry* self)
-{
- LibraryMonitor* library_monitor = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gboolean _tmp2_;
- LibraryMonitor* _tmp3_;
- LibraryMonitor* _tmp4_;
- LibraryMonitorPool* _tmp5_;
- LibraryMonitorPool* _tmp6_;
-#line 770 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self));
-#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = app_dirs_get_import_dir ();
-#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = commandline_options_no_runtime_monitoring;
-#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = library_monitor_new (_tmp1_, TRUE, !_tmp2_);
-#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _tmp3_;
-#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- library_monitor = _tmp4_;
-#line 775 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = library_monitor_pool_get_instance ();
-#line 775 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = _tmp5_;
-#line 775 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- library_monitor_pool_replace (_tmp6_, library_monitor, MEDIA_COLLECTION_REGISTRY_LIBRARY_MONITOR_START_DELAY_MSEC);
-#line 775 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _library_monitor_pool_unref0 (_tmp6_);
-#line 770 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (library_monitor);
-#line 7476 "MediaDataRepresentation.c"
-}
-
-
-static void
-_media_collection_registry_on_import_directory_changed_configuration_facade_import_directory_changed (ConfigurationFacade* _sender,
- gpointer self)
-{
-#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_collection_registry_on_import_directory_changed ();
-#line 7486 "MediaDataRepresentation.c"
-}
-
-
-void
-media_collection_registry_init (void)
-{
- MediaCollectionRegistry* _tmp0_;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
-#line 779 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_new ();
-#line 779 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _media_collection_registry_unref0 (media_collection_registry_instance);
-#line 779 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_collection_registry_instance = _tmp0_;
-#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _tmp1_;
-#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "import-directory-changed", (GCallback) _media_collection_registry_on_import_directory_changed_configuration_facade_import_directory_changed, NULL);
-#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp2_);
-#line 7510 "MediaDataRepresentation.c"
-}
-
-
-void
-media_collection_registry_terminate (void)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- guint _tmp2_;
-#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_parse_name ("import-directory-changed", TYPE_CONFIGURATION_FACADE, &_tmp2_, NULL, FALSE);
-#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _media_collection_registry_on_import_directory_changed_configuration_facade_import_directory_changed, NULL);
-#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 7530 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_collection_registry_on_import_directory_changed (void)
-{
- GFile* import_dir = NULL;
- GFile* _tmp0_;
- LibraryMonitor* current = NULL;
- LibraryMonitorPool* _tmp1_;
- LibraryMonitorPool* _tmp2_;
- LibraryMonitor* _tmp3_;
- LibraryMonitor* _tmp4_;
- gboolean _tmp5_ = FALSE;
- LibraryMonitor* _tmp6_;
- LibraryMonitor* replacement = NULL;
- GFile* _tmp11_;
- gboolean _tmp12_;
- LibraryMonitor* _tmp13_;
- LibraryMonitorPool* _tmp14_;
- LibraryMonitorPool* _tmp15_;
- LibraryMonitor* _tmp16_;
-#line 788 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = app_dirs_get_import_dir ();
-#line 788 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- import_dir = _tmp0_;
-#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = library_monitor_pool_get_instance ();
-#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _tmp1_;
-#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = library_monitor_pool_get_monitor (_tmp2_);
-#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _tmp3_;
-#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _library_monitor_pool_unref0 (_tmp2_);
-#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- current = _tmp4_;
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = current;
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp6_ != NULL) {
-#line 7573 "MediaDataRepresentation.c"
- LibraryMonitor* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = current;
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = directory_monitor_get_root (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = _tmp8_;
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = import_dir;
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = g_file_equal (_tmp9_, _tmp10_);
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp9_);
-#line 7590 "MediaDataRepresentation.c"
- } else {
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = FALSE;
-#line 7594 "MediaDataRepresentation.c"
- }
-#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp5_) {
-#line 792 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (current);
-#line 792 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (import_dir);
-#line 792 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return;
-#line 7604 "MediaDataRepresentation.c"
- }
-#line 794 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = import_dir;
-#line 794 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = commandline_options_no_runtime_monitoring;
-#line 794 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = library_monitor_new (_tmp11_, TRUE, !_tmp12_);
-#line 794 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- replacement = _tmp13_;
-#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = library_monitor_pool_get_instance ();
-#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = _tmp14_;
-#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = replacement;
-#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- library_monitor_pool_replace (_tmp15_, _tmp16_, MEDIA_COLLECTION_REGISTRY_LIBRARY_MONITOR_START_DELAY_MSEC);
-#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _library_monitor_pool_unref0 (_tmp15_);
-#line 797 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- library_files_select_copy_function ();
-#line 787 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (replacement);
-#line 787 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (current);
-#line 787 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (import_dir);
-#line 7632 "MediaDataRepresentation.c"
-}
-
-
-static gpointer
-_media_collection_registry_ref0 (gpointer self)
-{
-#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self ? media_collection_registry_ref (self) : NULL;
-#line 7641 "MediaDataRepresentation.c"
-}
-
-
-MediaCollectionRegistry*
-media_collection_registry_get_instance (void)
-{
- MediaCollectionRegistry* result = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
-#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_instance;
-#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _media_collection_registry_ref0 (_tmp0_);
-#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp1_;
-#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 7659 "MediaDataRepresentation.c"
-}
-
-
-gchar*
-media_collection_registry_get_typename_from_source_id (const gchar* source_id)
-{
- gchar* result = NULL;
-#line 804 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (source_id != NULL, NULL);
-#line 807 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (g_str_has_prefix (source_id, PHOTO_TYPENAME)) {
-#line 7671 "MediaDataRepresentation.c"
- gchar* _tmp0_;
-#line 808 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = g_strdup (PHOTO_TYPENAME);
-#line 808 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp0_;
-#line 808 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 7679 "MediaDataRepresentation.c"
- } else {
- gchar** components = NULL;
- gchar** _tmp1_;
- gchar** _tmp2_;
- gint components_length1;
- gint _components_size_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- gchar** _tmp4_;
- gint _tmp4__length1;
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 810 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _tmp1_ = g_strsplit (source_id, "-", 0);
-#line 810 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- components = _tmp2_;
-#line 810 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- components_length1 = _vala_array_length (_tmp1_);
-#line 810 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _components_size_ = components_length1;
-#line 811 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = components;
-#line 811 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3__length1 = components_length1;
-#line 811 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _vala_assert (_tmp3__length1 == 2, "components.length == 2");
-#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = components;
-#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4__length1 = components_length1;
-#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _tmp4_[0];
-#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp6_;
-#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- components = (_vala_array_free (components, components_length1, (GDestroyNotify) g_free), NULL);
-#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 7720 "MediaDataRepresentation.c"
- }
-}
-
-
-void
-media_collection_registry_register_collection (MediaCollectionRegistry* self,
- MediaSourceCollection* collection)
-{
- GeeArrayList* _tmp0_;
- GeeHashMap* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 817 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self));
-#line 817 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (collection));
-#line 818 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->all;
-#line 818 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), collection);
-#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = self->priv->by_typename;
-#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = media_source_collection_get_typename (collection);
-#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, collection);
-#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (_tmp3_);
-#line 7751 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceCollection*
-media_collection_registry_get_collection (MediaCollectionRegistry* self,
- const gchar* typename)
-{
- MediaSourceCollection* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 826 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL);
-#line 826 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (typename != NULL, NULL);
-#line 827 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->by_typename;
-#line 827 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), typename);
-#line 827 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = (MediaSourceCollection*) _tmp1_;
-#line 827 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 7774 "MediaDataRepresentation.c"
-}
-
-
-GeeCollection*
-media_collection_registry_get_all (MediaCollectionRegistry* self)
-{
- GeeCollection* result = NULL;
- GeeArrayList* _tmp0_;
- GeeBidirList* _tmp1_;
- GeeBidirList* _tmp2_;
-#line 830 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL);
-#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = self->priv->all;
-#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_abstract_bidir_list_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList));
-#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _tmp1_;
-#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 7797 "MediaDataRepresentation.c"
-}
-
-
-void
-media_collection_registry_freeze_all (MediaCollectionRegistry* self)
-{
-#line 834 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self));
-#line 7806 "MediaDataRepresentation.c"
- {
- GeeIterator* _sources_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_get_all (self);
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _sources_it = _tmp3_;
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 7827 "MediaDataRepresentation.c"
- GeeIterator* _tmp4_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- MediaSourceCollection* _tmp7_;
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _sources_it;
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 7839 "MediaDataRepresentation.c"
- }
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _sources_it;
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- sources = (MediaSourceCollection*) _tmp6_;
-#line 836 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = sources;
-#line 836 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection));
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (sources);
-#line 7853 "MediaDataRepresentation.c"
- }
-#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_sources_it);
-#line 7857 "MediaDataRepresentation.c"
- }
-}
-
-
-void
-media_collection_registry_thaw_all (MediaCollectionRegistry* self)
-{
-#line 839 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self));
-#line 7867 "MediaDataRepresentation.c"
- {
- GeeIterator* _sources_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_get_all (self);
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _sources_it = _tmp3_;
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 7888 "MediaDataRepresentation.c"
- GeeIterator* _tmp4_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- MediaSourceCollection* _tmp7_;
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _sources_it;
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 7900 "MediaDataRepresentation.c"
- }
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _sources_it;
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- sources = (MediaSourceCollection*) _tmp6_;
-#line 841 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = sources;
-#line 841 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection));
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (sources);
-#line 7914 "MediaDataRepresentation.c"
- }
-#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_sources_it);
-#line 7918 "MediaDataRepresentation.c"
- }
-}
-
-
-void
-media_collection_registry_begin_transaction_on_all (MediaCollectionRegistry* self)
-{
-#line 844 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self));
-#line 7928 "MediaDataRepresentation.c"
- {
- GeeIterator* _sources_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_get_all (self);
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _sources_it = _tmp3_;
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 7949 "MediaDataRepresentation.c"
- GeeIterator* _tmp4_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- MediaSourceCollection* _tmp7_;
- TransactionController* _tmp8_;
- TransactionController* _tmp9_;
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _sources_it;
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 7963 "MediaDataRepresentation.c"
- }
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _sources_it;
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- sources = (MediaSourceCollection*) _tmp6_;
-#line 846 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = sources;
-#line 846 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = media_source_collection_get_transaction_controller (_tmp7_);
-#line 846 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = _tmp8_;
-#line 846 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- transaction_controller_begin (_tmp9_);
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (sources);
-#line 7981 "MediaDataRepresentation.c"
- }
-#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_sources_it);
-#line 7985 "MediaDataRepresentation.c"
- }
-}
-
-
-void
-media_collection_registry_commit_transaction_on_all (MediaCollectionRegistry* self)
-{
-#line 849 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self));
-#line 7995 "MediaDataRepresentation.c"
- {
- GeeIterator* _sources_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_get_all (self);
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _sources_it = _tmp3_;
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 8016 "MediaDataRepresentation.c"
- GeeIterator* _tmp4_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- MediaSourceCollection* _tmp7_;
- TransactionController* _tmp8_;
- TransactionController* _tmp9_;
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _sources_it;
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 8030 "MediaDataRepresentation.c"
- }
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _sources_it;
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- sources = (MediaSourceCollection*) _tmp6_;
-#line 851 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = sources;
-#line 851 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = media_source_collection_get_transaction_controller (_tmp7_);
-#line 851 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = _tmp8_;
-#line 851 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- transaction_controller_commit (_tmp9_);
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (sources);
-#line 8048 "MediaDataRepresentation.c"
- }
-#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_sources_it);
-#line 8052 "MediaDataRepresentation.c"
- }
-}
-
-
-MediaSource*
-media_collection_registry_fetch_media (MediaCollectionRegistry* self,
- const gchar* source_id)
-{
- MediaSource* result = NULL;
- gchar* typename = NULL;
- gchar* _tmp0_;
- MediaSourceCollection* collection = NULL;
- const gchar* _tmp1_;
- MediaSourceCollection* _tmp2_;
- MediaSourceCollection* _tmp3_;
- MediaSourceCollection* _tmp5_;
- MediaSource* _tmp6_;
-#line 854 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL);
-#line 854 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (source_id != NULL, NULL);
-#line 855 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_get_typename_from_source_id (source_id);
-#line 855 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- typename = _tmp0_;
-#line 857 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = typename;
-#line 857 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = media_collection_registry_get_collection (self, _tmp1_);
-#line 857 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- collection = _tmp2_;
-#line 858 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = collection;
-#line 858 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp3_ == NULL) {
-#line 8088 "MediaDataRepresentation.c"
- const gchar* _tmp4_;
-#line 859 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = typename;
-#line 859 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_critical ("MediaDataRepresentation.vala:859: source id '%s' has unrecognized medi" \
-"a type '%s'", source_id, _tmp4_);
-#line 860 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = NULL;
-#line 860 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (collection);
-#line 860 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (typename);
-#line 860 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8102 "MediaDataRepresentation.c"
- }
-#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = collection;
-#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = media_source_collection_fetch_by_source_id (_tmp5_, source_id);
-#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp6_;
-#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (collection);
-#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_free0 (typename);
-#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8116 "MediaDataRepresentation.c"
-}
-
-
-static gpointer
-_import_id_dup0 (gpointer self)
-{
-#line 884 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return self ? import_id_dup (self) : NULL;
-#line 8125 "MediaDataRepresentation.c"
-}
-
-
-ImportID*
-media_collection_registry_get_last_import_id (MediaCollectionRegistry* self)
-{
- ImportID* result = NULL;
- ImportID last_import_id = {0};
- ImportID _tmp15_;
- gint64 _tmp16_;
-#line 866 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL);
-#line 867 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- import_id_init (&last_import_id, IMPORT_ID_INVALID);
-#line 8140 "MediaDataRepresentation.c"
- {
- GeeIterator* _current_collection_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_get_all (self);
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _current_collection_it = _tmp3_;
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 8161 "MediaDataRepresentation.c"
- GeeIterator* _tmp4_;
- MediaSourceCollection* current_collection = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- ImportID* current_import_id = NULL;
- MediaSourceCollection* _tmp7_;
- ImportID* _tmp8_;
- ImportID* _tmp9_;
- ImportID* _tmp10_;
- gint64 _tmp11_;
- ImportID _tmp12_;
- gint64 _tmp13_;
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _current_collection_it;
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 8180 "MediaDataRepresentation.c"
- }
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _current_collection_it;
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- current_collection = (MediaSourceCollection*) _tmp6_;
-#line 870 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = current_collection;
-#line 870 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = media_source_collection_get_last_import_id (_tmp7_);
-#line 870 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- current_import_id = _tmp8_;
-#line 872 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = current_import_id;
-#line 872 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp9_ == NULL) {
-#line 873 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _import_id_free0 (current_import_id);
-#line 873 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (current_collection);
-#line 873 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- continue;
-#line 8204 "MediaDataRepresentation.c"
- }
-#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = current_import_id;
-#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = (*_tmp10_).id;
-#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = last_import_id;
-#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp13_ = _tmp12_.id;
-#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp11_ > _tmp13_) {
-#line 8216 "MediaDataRepresentation.c"
- ImportID* _tmp14_;
-#line 876 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp14_ = current_import_id;
-#line 876 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- last_import_id = *_tmp14_;
-#line 8222 "MediaDataRepresentation.c"
- }
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _import_id_free0 (current_import_id);
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (current_collection);
-#line 8228 "MediaDataRepresentation.c"
- }
-#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_current_collection_it);
-#line 8232 "MediaDataRepresentation.c"
- }
-#line 881 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp15_ = last_import_id;
-#line 881 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp16_ = _tmp15_.id;
-#line 881 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (_tmp16_ == IMPORT_ID_INVALID) {
-#line 882 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = NULL;
-#line 882 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8244 "MediaDataRepresentation.c"
- } else {
- ImportID* _tmp17_;
-#line 884 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp17_ = _import_id_dup0 (&last_import_id);
-#line 884 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp17_;
-#line 884 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8253 "MediaDataRepresentation.c"
- }
-}
-
-
-GeeCollection*
-media_collection_registry_get_source_ids_for_event_id (MediaCollectionRegistry* self,
- EventID* event_id)
-{
- GeeCollection* result = NULL;
- GeeArrayList* _result_ = NULL;
- GeeArrayList* _tmp0_;
-#line 887 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL);
-#line 887 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 888 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 888 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _result_ = _tmp0_;
-#line 8273 "MediaDataRepresentation.c"
- {
- GeeIterator* _current_collection_it = NULL;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = media_collection_registry_get_all (self);
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = _tmp1_;
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _tmp3_;
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp2_);
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _current_collection_it = _tmp4_;
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 8294 "MediaDataRepresentation.c"
- GeeIterator* _tmp5_;
- MediaSourceCollection* current_collection = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- GeeArrayList* _tmp8_;
- MediaSourceCollection* _tmp9_;
- EventID _tmp10_;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _current_collection_it;
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 8310 "MediaDataRepresentation.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = _current_collection_it;
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- current_collection = (MediaSourceCollection*) _tmp7_;
-#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp8_ = _result_;
-#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp9_ = current_collection;
-#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp10_ = *event_id;
-#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp11_ = media_source_collection_get_event_source_ids (_tmp9_, &_tmp10_);
-#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp12_ = _tmp11_;
-#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- gee_array_list_add_all (_tmp8_, _tmp12_);
-#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp12_);
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (current_collection);
-#line 8334 "MediaDataRepresentation.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_current_collection_it);
-#line 8338 "MediaDataRepresentation.c"
- }
-#line 894 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 894 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8344 "MediaDataRepresentation.c"
-}
-
-
-MediaSourceCollection*
-media_collection_registry_get_collection_for_file (MediaCollectionRegistry* self,
- GFile* file)
-{
- MediaSourceCollection* result = NULL;
-#line 897 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL);
-#line 897 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 8357 "MediaDataRepresentation.c"
- {
- GeeIterator* _collection_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = media_collection_registry_get_all (self);
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp3_ = _tmp2_;
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_tmp1_);
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _collection_it = _tmp3_;
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- while (TRUE) {
-#line 8378 "MediaDataRepresentation.c"
- GeeIterator* _tmp4_;
- MediaSourceCollection* collection = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- MediaSourceCollection* _tmp7_;
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp4_ = _collection_it;
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- break;
-#line 8390 "MediaDataRepresentation.c"
- }
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp5_ = _collection_it;
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- collection = (MediaSourceCollection*) _tmp6_;
-#line 899 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp7_ = collection;
-#line 899 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (media_source_collection_is_file_recognized (_tmp7_, file)) {
-#line 900 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = collection;
-#line 900 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_collection_it);
-#line 900 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8408 "MediaDataRepresentation.c"
- }
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _data_collection_unref0 (collection);
-#line 8412 "MediaDataRepresentation.c"
- }
-#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (_collection_it);
-#line 8416 "MediaDataRepresentation.c"
- }
-#line 903 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = NULL;
-#line 903 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8422 "MediaDataRepresentation.c"
-}
-
-
-gboolean
-media_collection_registry_is_valid_source_id (MediaCollectionRegistry* self,
- const gchar* source_id)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 906 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), FALSE);
-#line 907 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (is_string_empty (source_id)) {
-#line 908 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = FALSE;
-#line 908 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8440 "MediaDataRepresentation.c"
- }
-#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (g_str_has_prefix (source_id, PHOTO_TYPENAME)) {
-#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = TRUE;
-#line 8446 "MediaDataRepresentation.c"
- } else {
-#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = g_str_has_prefix (source_id, VIDEO_TYPENAME "-");
-#line 8450 "MediaDataRepresentation.c"
- }
-#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- result = _tmp0_;
-#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return result;
-#line 8456 "MediaDataRepresentation.c"
-}
-
-
-static void
-value_media_collection_registry_init (GValue* value)
-{
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = NULL;
-#line 8465 "MediaDataRepresentation.c"
-}
-
-
-static void
-value_media_collection_registry_free_value (GValue* value)
-{
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (value->data[0].v_pointer) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_collection_registry_unref (value->data[0].v_pointer);
-#line 8476 "MediaDataRepresentation.c"
- }
-}
-
-
-static void
-value_media_collection_registry_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (src_value->data[0].v_pointer) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- dest_value->data[0].v_pointer = media_collection_registry_ref (src_value->data[0].v_pointer);
-#line 8489 "MediaDataRepresentation.c"
- } else {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 8493 "MediaDataRepresentation.c"
- }
-}
-
-
-static gpointer
-value_media_collection_registry_peek_pointer (const GValue* value)
-{
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return value->data[0].v_pointer;
-#line 8503 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-value_media_collection_registry_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (collect_values[0].v_pointer) {
-#line 8515 "MediaDataRepresentation.c"
- MediaCollectionRegistry * object;
- object = collect_values[0].v_pointer;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 8522 "MediaDataRepresentation.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.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 8526 "MediaDataRepresentation.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = media_collection_registry_ref (object);
-#line 8530 "MediaDataRepresentation.c"
- } else {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = NULL;
-#line 8534 "MediaDataRepresentation.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 8538 "MediaDataRepresentation.c"
-}
-
-
-static gchar*
-value_media_collection_registry_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- MediaCollectionRegistry ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!object_p) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 8554 "MediaDataRepresentation.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (!value->data[0].v_pointer) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- *object_p = NULL;
-#line 8560 "MediaDataRepresentation.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- *object_p = value->data[0].v_pointer;
-#line 8564 "MediaDataRepresentation.c"
- } else {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- *object_p = media_collection_registry_ref (value->data[0].v_pointer);
-#line 8568 "MediaDataRepresentation.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return NULL;
-#line 8572 "MediaDataRepresentation.c"
-}
-
-
-GParamSpec*
-param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecMediaCollectionRegistry* spec;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_MEDIA_COLLECTION_REGISTRY), NULL);
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return G_PARAM_SPEC (spec);
-#line 8592 "MediaDataRepresentation.c"
-}
-
-
-gpointer
-value_get_media_collection_registry (const GValue* value)
-{
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_COLLECTION_REGISTRY), NULL);
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return value->data[0].v_pointer;
-#line 8603 "MediaDataRepresentation.c"
-}
-
-
-void
-value_set_media_collection_registry (GValue* value,
- gpointer v_object)
-{
- MediaCollectionRegistry * old;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_COLLECTION_REGISTRY));
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- old = value->data[0].v_pointer;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (v_object) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MEDIA_COLLECTION_REGISTRY));
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = v_object;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_collection_registry_ref (value->data[0].v_pointer);
-#line 8626 "MediaDataRepresentation.c"
- } else {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = NULL;
-#line 8630 "MediaDataRepresentation.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (old) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_collection_registry_unref (old);
-#line 8636 "MediaDataRepresentation.c"
- }
-}
-
-
-void
-value_take_media_collection_registry (GValue* value,
- gpointer v_object)
-{
- MediaCollectionRegistry * old;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_COLLECTION_REGISTRY));
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- old = value->data[0].v_pointer;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (v_object) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MEDIA_COLLECTION_REGISTRY));
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = v_object;
-#line 8658 "MediaDataRepresentation.c"
- } else {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- value->data[0].v_pointer = NULL;
-#line 8662 "MediaDataRepresentation.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (old) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_collection_registry_unref (old);
-#line 8668 "MediaDataRepresentation.c"
- }
-}
-
-
-static void
-media_collection_registry_class_init (MediaCollectionRegistryClass * klass)
-{
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- media_collection_registry_parent_class = g_type_class_peek_parent (klass);
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- ((MediaCollectionRegistryClass *) klass)->finalize = media_collection_registry_finalize;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_type_class_add_private (klass, sizeof (MediaCollectionRegistryPrivate));
-#line 8682 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_collection_registry_instance_init (MediaCollectionRegistry * self)
-{
- GeeArrayList* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv = MEDIA_COLLECTION_REGISTRY_GET_PRIVATE (self);
-#line 758 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL);
-#line 758 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->all = _tmp0_;
-#line 759 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_MEDIA_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 759 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->priv->by_typename = _tmp1_;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self->ref_count = 1;
-#line 8703 "MediaDataRepresentation.c"
-}
-
-
-static void
-media_collection_registry_finalize (MediaCollectionRegistry * obj)
-{
- MediaCollectionRegistry * self;
- Application* _tmp0_;
- Application* _tmp1_;
- guint _tmp2_;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry);
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_handlers_destroy (self);
-#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp0_ = application_get_instance ();
-#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _tmp1_ = _tmp0_;
-#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_parse_name ("init-done", TYPE_APPLICATION, &_tmp2_, NULL, FALSE);
-#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _media_collection_registry_on_init_done_application_init_done, self);
-#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _application_unref0 (_tmp1_);
-#line 758 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->all);
-#line 759 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- _g_object_unref0 (self->priv->by_typename);
-#line 8732 "MediaDataRepresentation.c"
-}
-
-
-GType
-media_collection_registry_get_type (void)
-{
- static volatile gsize media_collection_registry_type_id__volatile = 0;
- if (g_once_init_enter (&media_collection_registry_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_media_collection_registry_init, value_media_collection_registry_free_value, value_media_collection_registry_copy_value, value_media_collection_registry_peek_pointer, "p", value_media_collection_registry_collect_value, "p", value_media_collection_registry_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (MediaCollectionRegistryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_collection_registry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaCollectionRegistry), 0, (GInstanceInitFunc) media_collection_registry_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType media_collection_registry_type_id;
- media_collection_registry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MediaCollectionRegistry", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&media_collection_registry_type_id__volatile, media_collection_registry_type_id);
- }
- return media_collection_registry_type_id__volatile;
-}
-
-
-gpointer
-media_collection_registry_ref (gpointer instance)
-{
- MediaCollectionRegistry * self;
- self = instance;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- return instance;
-#line 8761 "MediaDataRepresentation.c"
-}
-
-
-void
-media_collection_registry_unref (gpointer instance)
-{
- MediaCollectionRegistry * self;
- self = instance;
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- MEDIA_COLLECTION_REGISTRY_GET_CLASS (self)->finalize (self);
-#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 8776 "MediaDataRepresentation.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/MediaInterfaces.c b/src/MediaInterfaces.c
deleted file mode 100644
index 1d4d597..0000000
--- a/src/MediaInterfaces.c
+++ /dev/null
@@ -1,1488 +0,0 @@
-/* MediaInterfaces.c generated by valac 0.40.4, the Vala compiler
- * generated from MediaInterfaces.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/**/
-/* Going forward, Shotwell will use MediaInterfaces, which allow for various operations and features*/
-/* to be added only to the MediaSources that support them (or make sense for). For example, adding*/
-/* a library-mode photo or video to an Event makes perfect sense, but does not make sense for a*/
-/* direct-mode photo. All three are MediaSources, and to make DirectPhoto descend from another*/
-/* base class is only inviting chaos and a tremendous amount of replicated code.*/
-/**/
-/* A key point to make of all MediaInterfaces is that they require MediaSource as a base class.*/
-/* Thus, any code dealing with one of these interfaces knows they are also dealing with a*/
-/* MediaSource.*/
-/**/
-/* TODO: Make Eventable and Taggable interfaces, which are the only types Event and Tag will deal*/
-/* with (rather than MediaSources).*/
-/**/
-/* TODO: Make Trashable interface, which are much like Flaggable.*/
-/**/
-/* TODO: ContainerSources may also have specific needs in the future; an interface-based system*/
-/* may make sense as well when that need arises.*/
-/**/
-/**/
-/* TransactionController*/
-/**/
-/* Because many operations in Shotwell need to be performed on collections of objects all at once,*/
-/* and that most of these objects are backed by a database, the TransactionController object gives */
-/* a way to generically group a series of operations on one or more similar objects into a single*/
-/* transaction. This class is listed here because it's used by the various media interfaces to offer*/
-/* multiple operations.*/
-/**/
-/* begin() and commit() may be called multiple times in layering fashion. The implementation*/
-/* accounts for this. If either throws an exception it should be assumed that the object is in*/
-/* a "clean" state; that is, if begin() throws an exception, there is no need to call commit(),*/
-/* and if commit() throws an exception, it does not need to be called again to revert the object*/
-/* state.*/
-/**/
-/* This means that any user who calls begin() *must* match it with a corresponding commit(), even*/
-/* if there is an error during the transaction. It is up to the user to back out any undesired*/
-/* changes.*/
-/**/
-/* Because of the nature of this object, it's assumed that every object type will share one*/
-/* between all callers.*/
-/**/
-/* The object is thread-safe. There is no guarantee that the underlying persistent store is,*/
-/* however.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <time.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-typedef struct _TransactionControllerPrivate TransactionControllerPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _ParamSpecTransactionController ParamSpecTransactionController;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_MONITORABLE (monitorable_get_type ())
-#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
-#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
-#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
-
-typedef struct _Monitorable Monitorable;
-typedef struct _MonitorableIface MonitorableIface;
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _TransactionController {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TransactionControllerPrivate * priv;
-};
-
-struct _TransactionControllerClass {
- GTypeClass parent_class;
- void (*finalize) (TransactionController *self);
- void (*begin_impl) (TransactionController* self, GError** error);
- void (*commit_impl) (TransactionController* self, GError** error);
-};
-
-struct _TransactionControllerPrivate {
- gint count;
- GRecMutex __lock_count;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _ParamSpecTransactionController {
- GParamSpec parent_instance;
-};
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-struct _MonitorableIface {
- GTypeInterface parent_iface;
- gboolean (*is_offline) (Monitorable* self);
- void (*mark_online) (Monitorable* self);
- void (*mark_offline) (Monitorable* self);
- void (*set_master_file) (Monitorable* self, GFile* file);
- void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
-};
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-
-static gpointer transaction_controller_parent_class = NULL;
-
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-#define TRANSACTION_CONTROLLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRANSACTION_CONTROLLER, TransactionControllerPrivate))
-TransactionController* transaction_controller_construct (GType object_type);
-void transaction_controller_begin (TransactionController* self);
-void transaction_controller_begin_impl (TransactionController* self,
- GError** error);
-GQuark database_error_quark (void);
-void app_window_database_error (GError* err);
-void app_window_panic (const gchar* msg);
-static void transaction_controller_real_begin_impl (TransactionController* self,
- GError** error);
-void transaction_controller_commit (TransactionController* self);
-void transaction_controller_commit_impl (TransactionController* self,
- GError** error);
-static void transaction_controller_real_commit_impl (TransactionController* self,
- GError** error);
-static void transaction_controller_finalize (TransactionController * obj);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-void flaggable_mark_flagged (Flaggable* self);
-void flaggable_mark_unflagged (Flaggable* self);
-void flaggable_mark_many_flagged_unflagged (GeeCollection* flag,
- GeeCollection* unflag,
- TransactionController* controller,
- GError** error);
-GType monitorable_get_type (void) G_GNUC_CONST;
-gboolean monitorable_is_offline (Monitorable* self);
-void monitorable_mark_online (Monitorable* self);
-void monitorable_mark_offline (Monitorable* self);
-void monitorable_mark_many_online_offline (GeeCollection* online,
- GeeCollection* offline,
- TransactionController* controller,
- GError** error);
-void monitorable_set_master_file (Monitorable* self,
- GFile* file);
-void monitorable_set_many_master_file (GeeMap* map,
- TransactionController* controller,
- GError** error);
-void monitorable_set_master_timestamp (Monitorable* self,
- GFileInfo* info);
-void monitorable_set_many_master_timestamp (GeeMap* map,
- TransactionController* controller,
- GError** error);
-GType dateable_get_type (void) G_GNUC_CONST;
-void dateable_set_exposure_time (Dateable* self,
- time_t target_time);
-time_t dateable_get_exposure_time (Dateable* self);
-
-
-TransactionController*
-transaction_controller_construct (GType object_type)
-{
- TransactionController* self = NULL;
-#line 54 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- self = (TransactionController*) g_type_create_instance (object_type);
-#line 54 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return self;
-#line 277 "MediaInterfaces.c"
-}
-
-
-void
-transaction_controller_begin (TransactionController* self)
-{
- GError * _inner_error_ = NULL;
-#line 63 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (self));
-#line 287 "MediaInterfaces.c"
- {
- gint _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp0_ = self->priv->count;
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_lock (&self->priv->__lock_count);
-#line 294 "MediaInterfaces.c"
- {
- gint _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp1_ = self->priv->count;
-#line 65 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- self->priv->count = _tmp1_ + 1;
-#line 65 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (_tmp1_ != 0) {
-#line 303 "MediaInterfaces.c"
- {
- gint _tmp2_;
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp2_ = self->priv->count;
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_unlock (&self->priv->__lock_count);
-#line 310 "MediaInterfaces.c"
- }
-#line 66 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return;
-#line 314 "MediaInterfaces.c"
- }
- {
-#line 69 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_begin_impl (self, &_inner_error_);
-#line 69 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 321 "MediaInterfaces.c"
- goto __catch583_g_error;
- }
- }
- goto __finally583;
- __catch583_g_error:
- {
- GError* err = NULL;
- gint _tmp3_;
- GError* _tmp4_;
-#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- err = _inner_error_;
-#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _inner_error_ = NULL;
-#line 72 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp3_ = self->priv->count;
-#line 72 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- self->priv->count = _tmp3_ - 1;
-#line 74 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp4_ = err;
-#line 74 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (_tmp4_->domain == DATABASE_ERROR) {
-#line 343 "MediaInterfaces.c"
- GError* _tmp5_;
-#line 75 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp5_ = err;
-#line 75 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- app_window_database_error ((GError*) _tmp5_);
-#line 349 "MediaInterfaces.c"
- } else {
- GError* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp6_ = err;
-#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp7_ = _tmp6_->message;
-#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp8_ = g_strdup_printf ("%s", _tmp7_);
-#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp9_ = _tmp8_;
-#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- app_window_panic (_tmp9_);
-#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_free0 (_tmp9_);
-#line 367 "MediaInterfaces.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_error_free0 (err);
-#line 371 "MediaInterfaces.c"
- }
- __finally583:
-#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 376 "MediaInterfaces.c"
- {
- gint _tmp10_;
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp10_ = self->priv->count;
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_unlock (&self->priv->__lock_count);
-#line 383 "MediaInterfaces.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.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 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return;
-#line 391 "MediaInterfaces.c"
- }
- }
- __finally582:
- {
- gint _tmp11_;
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp11_ = self->priv->count;
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_unlock (&self->priv->__lock_count);
-#line 401 "MediaInterfaces.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.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 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return;
-#line 411 "MediaInterfaces.c"
- }
- }
-}
-
-
-static void
-transaction_controller_real_begin_impl (TransactionController* self,
- GError** error)
-{
-#line 83 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_critical ("Type `%s' does not implement abstract method `transaction_controller_begin_impl'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 83 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return;
-#line 425 "MediaInterfaces.c"
-}
-
-
-void
-transaction_controller_begin_impl (TransactionController* self,
- GError** error)
-{
-#line 83 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (self));
-#line 83 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- TRANSACTION_CONTROLLER_GET_CLASS (self)->begin_impl (self, error);
-#line 437 "MediaInterfaces.c"
-}
-
-
-void
-transaction_controller_commit (TransactionController* self)
-{
- GError * _inner_error_ = NULL;
-#line 85 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (self));
-#line 447 "MediaInterfaces.c"
- {
- gint _tmp0_;
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp0_ = self->priv->count;
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_lock (&self->priv->__lock_count);
-#line 454 "MediaInterfaces.c"
- {
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 87 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp1_ = self->priv->count;
-#line 87 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _vala_assert (_tmp1_ > 0, "count > 0");
-#line 88 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp2_ = self->priv->count;
-#line 88 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- self->priv->count = _tmp2_ - 1;
-#line 88 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp3_ = self->priv->count;
-#line 88 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (_tmp3_ != 0) {
-#line 471 "MediaInterfaces.c"
- {
- gint _tmp4_;
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp4_ = self->priv->count;
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_unlock (&self->priv->__lock_count);
-#line 478 "MediaInterfaces.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return;
-#line 482 "MediaInterfaces.c"
- }
- {
-#line 93 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_commit_impl (self, &_inner_error_);
-#line 93 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 489 "MediaInterfaces.c"
- goto __catch585_g_error;
- }
- }
- goto __finally585;
- __catch585_g_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- err = _inner_error_;
-#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _inner_error_ = NULL;
-#line 95 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp5_ = err;
-#line 95 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (_tmp5_->domain == DATABASE_ERROR) {
-#line 506 "MediaInterfaces.c"
- GError* _tmp6_;
-#line 96 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp6_ = err;
-#line 96 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- app_window_database_error ((GError*) _tmp6_);
-#line 512 "MediaInterfaces.c"
- } else {
- GError* _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp7_ = err;
-#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp8_ = _tmp7_->message;
-#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp9_ = g_strdup_printf ("%s", _tmp8_);
-#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp10_ = _tmp9_;
-#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- app_window_panic (_tmp10_);
-#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_free0 (_tmp10_);
-#line 530 "MediaInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_error_free0 (err);
-#line 534 "MediaInterfaces.c"
- }
- __finally585:
-#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 539 "MediaInterfaces.c"
- {
- gint _tmp11_;
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp11_ = self->priv->count;
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_unlock (&self->priv->__lock_count);
-#line 546 "MediaInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.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 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return;
-#line 554 "MediaInterfaces.c"
- }
- }
- __finally584:
- {
- gint _tmp12_;
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp12_ = self->priv->count;
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_unlock (&self->priv->__lock_count);
-#line 564 "MediaInterfaces.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.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 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return;
-#line 574 "MediaInterfaces.c"
- }
- }
-}
-
-
-static void
-transaction_controller_real_commit_impl (TransactionController* self,
- GError** error)
-{
-#line 104 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_critical ("Type `%s' does not implement abstract method `transaction_controller_commit_impl'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 104 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return;
-#line 588 "MediaInterfaces.c"
-}
-
-
-void
-transaction_controller_commit_impl (TransactionController* self,
- GError** error)
-{
-#line 104 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (self));
-#line 104 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- TRANSACTION_CONTROLLER_GET_CLASS (self)->commit_impl (self, error);
-#line 600 "MediaInterfaces.c"
-}
-
-
-static void
-value_transaction_controller_init (GValue* value)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- value->data[0].v_pointer = NULL;
-#line 609 "MediaInterfaces.c"
-}
-
-
-static void
-value_transaction_controller_free_value (GValue* value)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (value->data[0].v_pointer) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_unref (value->data[0].v_pointer);
-#line 620 "MediaInterfaces.c"
- }
-}
-
-
-static void
-value_transaction_controller_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (src_value->data[0].v_pointer) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- dest_value->data[0].v_pointer = transaction_controller_ref (src_value->data[0].v_pointer);
-#line 633 "MediaInterfaces.c"
- } else {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 637 "MediaInterfaces.c"
- }
-}
-
-
-static gpointer
-value_transaction_controller_peek_pointer (const GValue* value)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return value->data[0].v_pointer;
-#line 647 "MediaInterfaces.c"
-}
-
-
-static gchar*
-value_transaction_controller_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (collect_values[0].v_pointer) {
-#line 659 "MediaInterfaces.c"
- TransactionController * object;
- object = collect_values[0].v_pointer;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 666 "MediaInterfaces.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.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 670 "MediaInterfaces.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- value->data[0].v_pointer = transaction_controller_ref (object);
-#line 674 "MediaInterfaces.c"
- } else {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- value->data[0].v_pointer = NULL;
-#line 678 "MediaInterfaces.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return NULL;
-#line 682 "MediaInterfaces.c"
-}
-
-
-static gchar*
-value_transaction_controller_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TransactionController ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!object_p) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 698 "MediaInterfaces.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!value->data[0].v_pointer) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- *object_p = NULL;
-#line 704 "MediaInterfaces.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- *object_p = value->data[0].v_pointer;
-#line 708 "MediaInterfaces.c"
- } else {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- *object_p = transaction_controller_ref (value->data[0].v_pointer);
-#line 712 "MediaInterfaces.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return NULL;
-#line 716 "MediaInterfaces.c"
-}
-
-
-GParamSpec*
-param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTransactionController* spec;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TRANSACTION_CONTROLLER), NULL);
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return G_PARAM_SPEC (spec);
-#line 736 "MediaInterfaces.c"
-}
-
-
-gpointer
-value_get_transaction_controller (const GValue* value)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSACTION_CONTROLLER), NULL);
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return value->data[0].v_pointer;
-#line 747 "MediaInterfaces.c"
-}
-
-
-void
-value_set_transaction_controller (GValue* value,
- gpointer v_object)
-{
- TransactionController * old;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSACTION_CONTROLLER));
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- old = value->data[0].v_pointer;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (v_object) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSACTION_CONTROLLER));
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- value->data[0].v_pointer = v_object;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_ref (value->data[0].v_pointer);
-#line 770 "MediaInterfaces.c"
- } else {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- value->data[0].v_pointer = NULL;
-#line 774 "MediaInterfaces.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (old) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_unref (old);
-#line 780 "MediaInterfaces.c"
- }
-}
-
-
-void
-value_take_transaction_controller (GValue* value,
- gpointer v_object)
-{
- TransactionController * old;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSACTION_CONTROLLER));
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- old = value->data[0].v_pointer;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (v_object) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSACTION_CONTROLLER));
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- value->data[0].v_pointer = v_object;
-#line 802 "MediaInterfaces.c"
- } else {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- value->data[0].v_pointer = NULL;
-#line 806 "MediaInterfaces.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (old) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_unref (old);
-#line 812 "MediaInterfaces.c"
- }
-}
-
-
-static void
-transaction_controller_class_init (TransactionControllerClass * klass)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_parent_class = g_type_class_peek_parent (klass);
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- ((TransactionControllerClass *) klass)->finalize = transaction_controller_finalize;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_type_class_add_private (klass, sizeof (TransactionControllerPrivate));
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- ((TransactionControllerClass *) klass)->begin_impl = (void (*) (TransactionController *, GError**)) transaction_controller_real_begin_impl;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- ((TransactionControllerClass *) klass)->commit_impl = (void (*) (TransactionController *, GError**)) transaction_controller_real_commit_impl;
-#line 830 "MediaInterfaces.c"
-}
-
-
-static void
-transaction_controller_instance_init (TransactionController * self)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- self->priv = TRANSACTION_CONTROLLER_GET_PRIVATE (self);
-#line 52 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_init (&self->priv->__lock_count);
-#line 52 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- self->priv->count = 0;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- self->ref_count = 1;
-#line 845 "MediaInterfaces.c"
-}
-
-
-static void
-transaction_controller_finalize (TransactionController * obj)
-{
- TransactionController * self;
- GError * _inner_error_ = NULL;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRANSACTION_CONTROLLER, TransactionController);
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_signal_handlers_destroy (self);
-#line 858 "MediaInterfaces.c"
- {
- gint _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp0_ = self->priv->count;
-#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_lock (&self->priv->__lock_count);
-#line 865 "MediaInterfaces.c"
- {
- gint _tmp1_;
-#line 59 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp1_ = self->priv->count;
-#line 59 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _vala_assert (_tmp1_ == 0, "count == 0");
-#line 872 "MediaInterfaces.c"
- }
- __finally581:
- {
- gint _tmp2_;
-#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp2_ = self->priv->count;
-#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_unlock (&self->priv->__lock_count);
-#line 881 "MediaInterfaces.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.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 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 889 "MediaInterfaces.c"
- }
- }
-#line 52 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_rec_mutex_clear (&self->priv->__lock_count);
-#line 894 "MediaInterfaces.c"
-}
-
-
-GType
-transaction_controller_get_type (void)
-{
- static volatile gsize transaction_controller_type_id__volatile = 0;
- if (g_once_init_enter (&transaction_controller_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_transaction_controller_init, value_transaction_controller_free_value, value_transaction_controller_copy_value, value_transaction_controller_peek_pointer, "p", value_transaction_controller_collect_value, "p", value_transaction_controller_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TransactionControllerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transaction_controller_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransactionController), 0, (GInstanceInitFunc) transaction_controller_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType transaction_controller_type_id;
- transaction_controller_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TransactionController", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&transaction_controller_type_id__volatile, transaction_controller_type_id);
- }
- return transaction_controller_type_id__volatile;
-}
-
-
-gpointer
-transaction_controller_ref (gpointer instance)
-{
- TransactionController * self;
- self = instance;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return instance;
-#line 923 "MediaInterfaces.c"
-}
-
-
-void
-transaction_controller_unref (gpointer instance)
-{
- TransactionController * self;
- self = instance;
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- TRANSACTION_CONTROLLER_GET_CLASS (self)->finalize (self);
-#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 938 "MediaInterfaces.c"
- }
-}
-
-
-gboolean
-flaggable_is_flagged (Flaggable* self)
-{
-#line 115 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_val_if_fail (IS_FLAGGABLE (self), FALSE);
-#line 115 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return FLAGGABLE_GET_INTERFACE (self)->is_flagged (self);
-#line 950 "MediaInterfaces.c"
-}
-
-
-void
-flaggable_mark_flagged (Flaggable* self)
-{
-#line 117 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_FLAGGABLE (self));
-#line 117 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- FLAGGABLE_GET_INTERFACE (self)->mark_flagged (self);
-#line 961 "MediaInterfaces.c"
-}
-
-
-void
-flaggable_mark_unflagged (Flaggable* self)
-{
-#line 119 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_FLAGGABLE (self));
-#line 119 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- FLAGGABLE_GET_INTERFACE (self)->mark_unflagged (self);
-#line 972 "MediaInterfaces.c"
-}
-
-
-void
-flaggable_mark_many_flagged_unflagged (GeeCollection* flag,
- GeeCollection* unflag,
- TransactionController* controller,
- GError** error)
-{
-#line 121 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail ((flag == NULL) || GEE_IS_COLLECTION (flag));
-#line 121 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail ((unflag == NULL) || GEE_IS_COLLECTION (unflag));
-#line 121 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
-#line 123 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_begin (controller);
-#line 125 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (flag != NULL) {
-#line 992 "MediaInterfaces.c"
- {
- GeeIterator* _flaggable_it = NULL;
- GeeIterator* _tmp0_;
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (flag, GEE_TYPE_ITERABLE, GeeIterable));
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _flaggable_it = _tmp0_;
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- while (TRUE) {
-#line 1002 "MediaInterfaces.c"
- GeeIterator* _tmp1_;
- Flaggable* flaggable = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Flaggable* _tmp4_;
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp1_ = _flaggable_it;
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- break;
-#line 1014 "MediaInterfaces.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp2_ = _flaggable_it;
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- flaggable = (Flaggable*) _tmp3_;
-#line 127 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp4_ = flaggable;
-#line 127 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- flaggable_mark_flagged (_tmp4_);
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (flaggable);
-#line 1028 "MediaInterfaces.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (_flaggable_it);
-#line 1032 "MediaInterfaces.c"
- }
- }
-#line 130 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (unflag != NULL) {
-#line 1037 "MediaInterfaces.c"
- {
- GeeIterator* _flaggable_it = NULL;
- GeeIterator* _tmp5_;
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (unflag, GEE_TYPE_ITERABLE, GeeIterable));
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _flaggable_it = _tmp5_;
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- while (TRUE) {
-#line 1047 "MediaInterfaces.c"
- GeeIterator* _tmp6_;
- Flaggable* flaggable = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- Flaggable* _tmp9_;
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp6_ = _flaggable_it;
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- break;
-#line 1059 "MediaInterfaces.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp7_ = _flaggable_it;
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- flaggable = (Flaggable*) _tmp8_;
-#line 132 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp9_ = flaggable;
-#line 132 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- flaggable_mark_unflagged (_tmp9_);
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (flaggable);
-#line 1073 "MediaInterfaces.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (_flaggable_it);
-#line 1077 "MediaInterfaces.c"
- }
- }
-#line 135 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_commit (controller);
-#line 1082 "MediaInterfaces.c"
-}
-
-
-static void
-flaggable_base_init (FlaggableIface * iface)
-{
-#line 114 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 114 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!initialized) {
-#line 114 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- initialized = TRUE;
-#line 1095 "MediaInterfaces.c"
- }
-}
-
-
-GType
-flaggable_get_type (void)
-{
- static volatile gsize flaggable_type_id__volatile = 0;
- if (g_once_init_enter (&flaggable_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FlaggableIface), (GBaseInitFunc) flaggable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType flaggable_type_id;
- flaggable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Flaggable", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (flaggable_type_id, TYPE_MEDIA_SOURCE);
- g_once_init_leave (&flaggable_type_id__volatile, flaggable_type_id);
- }
- return flaggable_type_id__volatile;
-}
-
-
-gboolean
-monitorable_is_offline (Monitorable* self)
-{
-#line 153 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_val_if_fail (IS_MONITORABLE (self), FALSE);
-#line 153 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return MONITORABLE_GET_INTERFACE (self)->is_offline (self);
-#line 1122 "MediaInterfaces.c"
-}
-
-
-void
-monitorable_mark_online (Monitorable* self)
-{
-#line 155 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_MONITORABLE (self));
-#line 155 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- MONITORABLE_GET_INTERFACE (self)->mark_online (self);
-#line 1133 "MediaInterfaces.c"
-}
-
-
-void
-monitorable_mark_offline (Monitorable* self)
-{
-#line 157 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_MONITORABLE (self));
-#line 157 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- MONITORABLE_GET_INTERFACE (self)->mark_offline (self);
-#line 1144 "MediaInterfaces.c"
-}
-
-
-void
-monitorable_mark_many_online_offline (GeeCollection* online,
- GeeCollection* offline,
- TransactionController* controller,
- GError** error)
-{
-#line 159 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail ((online == NULL) || GEE_IS_COLLECTION (online));
-#line 159 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail ((offline == NULL) || GEE_IS_COLLECTION (offline));
-#line 159 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
-#line 161 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_begin (controller);
-#line 163 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (online != NULL) {
-#line 1164 "MediaInterfaces.c"
- {
- GeeIterator* _monitorable_it = NULL;
- GeeIterator* _tmp0_;
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (online, GEE_TYPE_ITERABLE, GeeIterable));
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _monitorable_it = _tmp0_;
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- while (TRUE) {
-#line 1174 "MediaInterfaces.c"
- GeeIterator* _tmp1_;
- Monitorable* monitorable = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Monitorable* _tmp4_;
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp1_ = _monitorable_it;
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- break;
-#line 1186 "MediaInterfaces.c"
- }
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp2_ = _monitorable_it;
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- monitorable = (Monitorable*) _tmp3_;
-#line 165 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp4_ = monitorable;
-#line 165 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- monitorable_mark_online (_tmp4_);
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (monitorable);
-#line 1200 "MediaInterfaces.c"
- }
-#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (_monitorable_it);
-#line 1204 "MediaInterfaces.c"
- }
- }
-#line 168 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (offline != NULL) {
-#line 1209 "MediaInterfaces.c"
- {
- GeeIterator* _monitorable_it = NULL;
- GeeIterator* _tmp5_;
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (offline, GEE_TYPE_ITERABLE, GeeIterable));
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _monitorable_it = _tmp5_;
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- while (TRUE) {
-#line 1219 "MediaInterfaces.c"
- GeeIterator* _tmp6_;
- Monitorable* monitorable = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- Monitorable* _tmp9_;
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp6_ = _monitorable_it;
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- break;
-#line 1231 "MediaInterfaces.c"
- }
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp7_ = _monitorable_it;
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- monitorable = (Monitorable*) _tmp8_;
-#line 170 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp9_ = monitorable;
-#line 170 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- monitorable_mark_offline (_tmp9_);
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (monitorable);
-#line 1245 "MediaInterfaces.c"
- }
-#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (_monitorable_it);
-#line 1249 "MediaInterfaces.c"
- }
- }
-#line 173 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_commit (controller);
-#line 1254 "MediaInterfaces.c"
-}
-
-
-void
-monitorable_set_master_file (Monitorable* self,
- GFile* file)
-{
-#line 176 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_MONITORABLE (self));
-#line 176 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- MONITORABLE_GET_INTERFACE (self)->set_master_file (self, file);
-#line 1266 "MediaInterfaces.c"
-}
-
-
-void
-monitorable_set_many_master_file (GeeMap* map,
- TransactionController* controller,
- GError** error)
-{
- GeeMapIterator* map_iter = NULL;
- GeeMapIterator* _tmp0_;
-#line 178 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 178 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
-#line 180 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_begin (controller);
-#line 182 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp0_ = gee_map_map_iterator (map);
-#line 182 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- map_iter = _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- while (TRUE) {
-#line 1289 "MediaInterfaces.c"
- GeeMapIterator* _tmp1_;
- GeeMapIterator* _tmp2_;
- gpointer _tmp3_;
- Monitorable* _tmp4_;
- GeeMapIterator* _tmp5_;
- gpointer _tmp6_;
- GFile* _tmp7_;
-#line 183 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp1_ = map_iter;
-#line 183 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!gee_map_iterator_next (_tmp1_)) {
-#line 183 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- break;
-#line 1303 "MediaInterfaces.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp2_ = map_iter;
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp3_ = gee_map_iterator_get_key (_tmp2_);
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp4_ = (Monitorable*) _tmp3_;
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp5_ = map_iter;
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp6_ = gee_map_iterator_get_value (_tmp5_);
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp7_ = (GFile*) _tmp6_;
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- monitorable_set_master_file (_tmp4_, _tmp7_);
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (_tmp7_);
-#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (_tmp4_);
-#line 1323 "MediaInterfaces.c"
- }
-#line 186 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_commit (controller);
-#line 178 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (map_iter);
-#line 1329 "MediaInterfaces.c"
-}
-
-
-void
-monitorable_set_master_timestamp (Monitorable* self,
- GFileInfo* info)
-{
-#line 189 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_MONITORABLE (self));
-#line 189 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- MONITORABLE_GET_INTERFACE (self)->set_master_timestamp (self, info);
-#line 1341 "MediaInterfaces.c"
-}
-
-
-void
-monitorable_set_many_master_timestamp (GeeMap* map,
- TransactionController* controller,
- GError** error)
-{
- GeeMapIterator* map_iter = NULL;
- GeeMapIterator* _tmp0_;
-#line 191 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 191 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
-#line 193 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_begin (controller);
-#line 195 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp0_ = gee_map_map_iterator (map);
-#line 195 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- map_iter = _tmp0_;
-#line 196 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- while (TRUE) {
-#line 1364 "MediaInterfaces.c"
- GeeMapIterator* _tmp1_;
- GeeMapIterator* _tmp2_;
- gpointer _tmp3_;
- Monitorable* _tmp4_;
- GeeMapIterator* _tmp5_;
- gpointer _tmp6_;
- GFileInfo* _tmp7_;
-#line 196 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp1_ = map_iter;
-#line 196 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!gee_map_iterator_next (_tmp1_)) {
-#line 196 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- break;
-#line 1378 "MediaInterfaces.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp2_ = map_iter;
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp3_ = gee_map_iterator_get_key (_tmp2_);
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp4_ = (Monitorable*) _tmp3_;
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp5_ = map_iter;
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp6_ = gee_map_iterator_get_value (_tmp5_);
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _tmp7_ = (GFileInfo*) _tmp6_;
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- monitorable_set_master_timestamp (_tmp4_, _tmp7_);
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (_tmp7_);
-#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (_tmp4_);
-#line 1398 "MediaInterfaces.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- transaction_controller_commit (controller);
-#line 191 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- _g_object_unref0 (map_iter);
-#line 1404 "MediaInterfaces.c"
-}
-
-
-static void
-monitorable_base_init (MonitorableIface * iface)
-{
-#line 152 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 152 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!initialized) {
-#line 152 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- initialized = TRUE;
-#line 1417 "MediaInterfaces.c"
- }
-}
-
-
-GType
-monitorable_get_type (void)
-{
- static volatile gsize monitorable_type_id__volatile = 0;
- if (g_once_init_enter (&monitorable_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MonitorableIface), (GBaseInitFunc) monitorable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType monitorable_type_id;
- monitorable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Monitorable", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (monitorable_type_id, TYPE_MEDIA_SOURCE);
- g_once_init_leave (&monitorable_type_id__volatile, monitorable_type_id);
- }
- return monitorable_type_id__volatile;
-}
-
-
-void
-dateable_set_exposure_time (Dateable* self,
- time_t target_time)
-{
-#line 212 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_if_fail (IS_DATEABLE (self));
-#line 212 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- DATEABLE_GET_INTERFACE (self)->set_exposure_time (self, target_time);
-#line 1445 "MediaInterfaces.c"
-}
-
-
-time_t
-dateable_get_exposure_time (Dateable* self)
-{
-#line 214 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- g_return_val_if_fail (IS_DATEABLE (self), 0);
-#line 214 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- return DATEABLE_GET_INTERFACE (self)->get_exposure_time (self);
-#line 1456 "MediaInterfaces.c"
-}
-
-
-static void
-dateable_base_init (DateableIface * iface)
-{
-#line 211 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 211 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- if (!initialized) {
-#line 211 "/home/jens/Source/shotwell/src/MediaInterfaces.vala"
- initialized = TRUE;
-#line 1469 "MediaInterfaces.c"
- }
-}
-
-
-GType
-dateable_get_type (void)
-{
- static volatile gsize dateable_type_id__volatile = 0;
- if (g_once_init_enter (&dateable_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DateableIface), (GBaseInitFunc) dateable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType dateable_type_id;
- dateable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Dateable", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (dateable_type_id, TYPE_MEDIA_SOURCE);
- g_once_init_leave (&dateable_type_id__volatile, dateable_type_id);
- }
- return dateable_type_id__volatile;
-}
-
-
-
diff --git a/src/MediaMetadata.c b/src/MediaMetadata.c
deleted file mode 100644
index 0c11b06..0000000
--- a/src/MediaMetadata.c
+++ /dev/null
@@ -1,1584 +0,0 @@
-/* MediaMetadata.c generated by valac 0.40.4, the Vala compiler
- * generated from MediaMetadata.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <stdio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-typedef struct _MediaMetadataPrivate MediaMetadataPrivate;
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-typedef struct _ParamSpecMediaMetadata ParamSpecMediaMetadata;
-
-#define TYPE_METADATA_RATIONAL (metadata_rational_get_type ())
-typedef struct _MetadataRational MetadataRational;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _MetadataDateTimePrivate MetadataDateTimePrivate;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-typedef struct _ParamSpecMetadataDateTime ParamSpecMetadataDateTime;
-
-struct _MediaMetadata {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MediaMetadataPrivate * priv;
-};
-
-struct _MediaMetadataClass {
- GTypeClass parent_class;
- void (*finalize) (MediaMetadata *self);
- void (*read_from_file) (MediaMetadata* self, GFile* file, GError** error);
- MetadataDateTime* (*get_creation_date_time) (MediaMetadata* self);
- gchar* (*get_title) (MediaMetadata* self);
- gchar* (*get_comment) (MediaMetadata* self);
-};
-
-struct _ParamSpecMediaMetadata {
- GParamSpec parent_instance;
-};
-
-struct _MetadataRational {
- gint numerator;
- gint denominator;
-};
-
-typedef enum {
- METADATA_DATE_TIME_ERROR_INVALID_FORMAT,
- METADATA_DATE_TIME_ERROR_UNSUPPORTED_FORMAT
-} MetadataDateTimeError;
-#define METADATA_DATE_TIME_ERROR metadata_date_time_error_quark ()
-struct _MetadataDateTime {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MetadataDateTimePrivate * priv;
-};
-
-struct _MetadataDateTimeClass {
- GTypeClass parent_class;
- void (*finalize) (MetadataDateTime *self);
-};
-
-struct _MetadataDateTimePrivate {
- time_t timestamp;
-};
-
-struct _ParamSpecMetadataDateTime {
- GParamSpec parent_instance;
-};
-
-
-static gpointer media_metadata_parent_class = NULL;
-static gpointer metadata_date_time_parent_class = NULL;
-
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-MediaMetadata* media_metadata_construct (GType object_type);
-void media_metadata_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error);
-static void media_metadata_real_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error);
-MetadataDateTime* media_metadata_get_creation_date_time (MediaMetadata* self);
-static MetadataDateTime* media_metadata_real_get_creation_date_time (MediaMetadata* self);
-gchar* media_metadata_get_title (MediaMetadata* self);
-static gchar* media_metadata_real_get_title (MediaMetadata* self);
-gchar* media_metadata_get_comment (MediaMetadata* self);
-static gchar* media_metadata_real_get_comment (MediaMetadata* self);
-static void media_metadata_finalize (MediaMetadata * obj);
-GType metadata_rational_get_type (void) G_GNUC_CONST;
-MetadataRational* metadata_rational_dup (const MetadataRational* self);
-void metadata_rational_free (MetadataRational* self);
-void metadata_rational_init (MetadataRational *self,
- gint numerator,
- gint denominator);
-static gboolean metadata_rational_is_component_valid (MetadataRational *self,
- gint component);
-gboolean metadata_rational_is_valid (MetadataRational *self);
-gchar* metadata_rational_to_string (MetadataRational *self);
-GQuark metadata_date_time_error_quark (void);
-#define METADATA_DATE_TIME_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_METADATA_DATE_TIME, MetadataDateTimePrivate))
-MetadataDateTime* metadata_date_time_new (time_t timestamp);
-MetadataDateTime* metadata_date_time_construct (GType object_type,
- time_t timestamp);
-MetadataDateTime* metadata_date_time_new_from_exif (const gchar* label,
- GError** error);
-MetadataDateTime* metadata_date_time_construct_from_exif (GType object_type,
- const gchar* label,
- GError** error);
-gboolean metadata_date_time_from_exif_date_time (const gchar* date_time,
- time_t* timestamp);
-MetadataDateTime* metadata_date_time_new_from_iptc (const gchar* date,
- const gchar* time,
- GError** error);
-MetadataDateTime* metadata_date_time_construct_from_iptc (GType object_type,
- const gchar* date,
- const gchar* time,
- GError** error);
-MetadataDateTime* metadata_date_time_new_from_xmp (const gchar* label,
- GError** error);
-MetadataDateTime* metadata_date_time_construct_from_xmp (GType object_type,
- const gchar* label,
- GError** error);
-time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
-gchar* metadata_date_time_get_exif_label (MetadataDateTime* self);
-gchar* metadata_date_time_to_exif_date_time (time_t timestamp);
-gchar* metadata_date_time_get_xmp_label (MetadataDateTime* self);
-gchar* metadata_date_time_to_string (MetadataDateTime* self);
-static void metadata_date_time_finalize (MetadataDateTime * obj);
-
-
-MediaMetadata*
-media_metadata_construct (GType object_type)
-{
- MediaMetadata* self = NULL;
-#line 8 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self = (MediaMetadata*) g_type_create_instance (object_type);
-#line 8 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return self;
-#line 193 "MediaMetadata.c"
-}
-
-
-static void
-media_metadata_real_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error)
-{
-#line 11 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_critical ("Type `%s' does not implement abstract method `media_metadata_read_from_file'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 11 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return;
-#line 206 "MediaMetadata.c"
-}
-
-
-void
-media_metadata_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error)
-{
-#line 11 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (IS_MEDIA_METADATA (self));
-#line 11 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- MEDIA_METADATA_GET_CLASS (self)->read_from_file (self, file, error);
-#line 219 "MediaMetadata.c"
-}
-
-
-static MetadataDateTime*
-media_metadata_real_get_creation_date_time (MediaMetadata* self)
-{
-#line 13 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_critical ("Type `%s' does not implement abstract method `media_metadata_get_creation_date_time'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 13 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 230 "MediaMetadata.c"
-}
-
-
-MetadataDateTime*
-media_metadata_get_creation_date_time (MediaMetadata* self)
-{
-#line 13 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (IS_MEDIA_METADATA (self), NULL);
-#line 13 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return MEDIA_METADATA_GET_CLASS (self)->get_creation_date_time (self);
-#line 241 "MediaMetadata.c"
-}
-
-
-static gchar*
-media_metadata_real_get_title (MediaMetadata* self)
-{
-#line 15 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_critical ("Type `%s' does not implement abstract method `media_metadata_get_title'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 15 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 252 "MediaMetadata.c"
-}
-
-
-gchar*
-media_metadata_get_title (MediaMetadata* self)
-{
-#line 15 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (IS_MEDIA_METADATA (self), NULL);
-#line 15 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return MEDIA_METADATA_GET_CLASS (self)->get_title (self);
-#line 263 "MediaMetadata.c"
-}
-
-
-static gchar*
-media_metadata_real_get_comment (MediaMetadata* self)
-{
-#line 17 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_critical ("Type `%s' does not implement abstract method `media_metadata_get_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 17 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 274 "MediaMetadata.c"
-}
-
-
-gchar*
-media_metadata_get_comment (MediaMetadata* self)
-{
-#line 17 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (IS_MEDIA_METADATA (self), NULL);
-#line 17 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return MEDIA_METADATA_GET_CLASS (self)->get_comment (self);
-#line 285 "MediaMetadata.c"
-}
-
-
-static void
-value_media_metadata_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 294 "MediaMetadata.c"
-}
-
-
-static void
-value_media_metadata_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- media_metadata_unref (value->data[0].v_pointer);
-#line 305 "MediaMetadata.c"
- }
-}
-
-
-static void
-value_media_metadata_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- dest_value->data[0].v_pointer = media_metadata_ref (src_value->data[0].v_pointer);
-#line 318 "MediaMetadata.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 322 "MediaMetadata.c"
- }
-}
-
-
-static gpointer
-value_media_metadata_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return value->data[0].v_pointer;
-#line 332 "MediaMetadata.c"
-}
-
-
-static gchar*
-value_media_metadata_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 344 "MediaMetadata.c"
- MediaMetadata * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 351 "MediaMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.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 355 "MediaMetadata.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = media_metadata_ref (object);
-#line 359 "MediaMetadata.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 363 "MediaMetadata.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 367 "MediaMetadata.c"
-}
-
-
-static gchar*
-value_media_metadata_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- MediaMetadata ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 383 "MediaMetadata.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *object_p = NULL;
-#line 389 "MediaMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 393 "MediaMetadata.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *object_p = media_metadata_ref (value->data[0].v_pointer);
-#line 397 "MediaMetadata.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 401 "MediaMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecMediaMetadata* spec;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_MEDIA_METADATA), NULL);
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 421 "MediaMetadata.c"
-}
-
-
-gpointer
-value_get_media_metadata (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_METADATA), NULL);
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return value->data[0].v_pointer;
-#line 432 "MediaMetadata.c"
-}
-
-
-void
-value_set_media_metadata (GValue* value,
- gpointer v_object)
-{
- MediaMetadata * old;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_METADATA));
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MEDIA_METADATA));
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- 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/MediaMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- media_metadata_ref (value->data[0].v_pointer);
-#line 455 "MediaMetadata.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 459 "MediaMetadata.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- media_metadata_unref (old);
-#line 465 "MediaMetadata.c"
- }
-}
-
-
-void
-value_take_media_metadata (GValue* value,
- gpointer v_object)
-{
- MediaMetadata * old;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_METADATA));
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MEDIA_METADATA));
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- 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/MediaMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 487 "MediaMetadata.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 491 "MediaMetadata.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- media_metadata_unref (old);
-#line 497 "MediaMetadata.c"
- }
-}
-
-
-static void
-media_metadata_class_init (MediaMetadataClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- media_metadata_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- ((MediaMetadataClass *) klass)->finalize = media_metadata_finalize;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- ((MediaMetadataClass *) klass)->read_from_file = (void (*) (MediaMetadata *, GFile*, GError**)) media_metadata_real_read_from_file;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- ((MediaMetadataClass *) klass)->get_creation_date_time = (MetadataDateTime* (*) (MediaMetadata *)) media_metadata_real_get_creation_date_time;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- ((MediaMetadataClass *) klass)->get_title = (gchar* (*) (MediaMetadata *)) media_metadata_real_get_title;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- ((MediaMetadataClass *) klass)->get_comment = (gchar* (*) (MediaMetadata *)) media_metadata_real_get_comment;
-#line 517 "MediaMetadata.c"
-}
-
-
-static void
-media_metadata_instance_init (MediaMetadata * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self->ref_count = 1;
-#line 526 "MediaMetadata.c"
-}
-
-
-static void
-media_metadata_finalize (MediaMetadata * obj)
-{
- MediaMetadata * self;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_METADATA, MediaMetadata);
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 538 "MediaMetadata.c"
-}
-
-
-GType
-media_metadata_get_type (void)
-{
- static volatile gsize media_metadata_type_id__volatile = 0;
- if (g_once_init_enter (&media_metadata_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_media_metadata_init, value_media_metadata_free_value, value_media_metadata_copy_value, value_media_metadata_peek_pointer, "p", value_media_metadata_collect_value, "p", value_media_metadata_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (MediaMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaMetadata), 0, (GInstanceInitFunc) media_metadata_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType media_metadata_type_id;
- media_metadata_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MediaMetadata", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&media_metadata_type_id__volatile, media_metadata_type_id);
- }
- return media_metadata_type_id__volatile;
-}
-
-
-gpointer
-media_metadata_ref (gpointer instance)
-{
- MediaMetadata * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return instance;
-#line 567 "MediaMetadata.c"
-}
-
-
-void
-media_metadata_unref (gpointer instance)
-{
- MediaMetadata * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- MEDIA_METADATA_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 582 "MediaMetadata.c"
- }
-}
-
-
-void
-metadata_rational_init (MetadataRational *self,
- gint numerator,
- gint denominator)
-{
-#line 24 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- memset (self, 0, sizeof (MetadataRational));
-#line 25 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- (*self).numerator = numerator;
-#line 26 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- (*self).denominator = denominator;
-#line 598 "MediaMetadata.c"
-}
-
-
-static gboolean
-metadata_rational_is_component_valid (MetadataRational *self,
- gint component)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (component >= 0) {
-#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = component <= 1000000;
-#line 612 "MediaMetadata.c"
- } else {
-#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = FALSE;
-#line 616 "MediaMetadata.c"
- }
-#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 622 "MediaMetadata.c"
-}
-
-
-gboolean
-metadata_rational_is_valid (MetadataRational *self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = (*self).numerator;
-#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (metadata_rational_is_component_valid (&(*self), _tmp1_)) {
-#line 636 "MediaMetadata.c"
- gint _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp2_ = (*self).denominator;
-#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = metadata_rational_is_component_valid (&(*self), _tmp2_);
-#line 642 "MediaMetadata.c"
- } else {
-#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = FALSE;
-#line 646 "MediaMetadata.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 652 "MediaMetadata.c"
-}
-
-
-gchar*
-metadata_rational_to_string (MetadataRational *self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (metadata_rational_is_valid (&(*self))) {
-#line 663 "MediaMetadata.c"
- gint _tmp1_;
- gint _tmp2_;
- gchar* _tmp3_;
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = (*self).numerator;
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp2_ = (*self).denominator;
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp3_ = g_strdup_printf ("%d/%d", _tmp1_, _tmp2_);
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _g_free0 (_tmp0_);
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = _tmp3_;
-#line 677 "MediaMetadata.c"
- } else {
- gchar* _tmp4_;
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp4_ = g_strdup ("");
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _g_free0 (_tmp0_);
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = _tmp4_;
-#line 686 "MediaMetadata.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 692 "MediaMetadata.c"
-}
-
-
-MetadataRational*
-metadata_rational_dup (const MetadataRational* self)
-{
- MetadataRational* dup;
-#line 20 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- dup = g_new0 (MetadataRational, 1);
-#line 20 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- memcpy (dup, self, sizeof (MetadataRational));
-#line 20 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return dup;
-#line 706 "MediaMetadata.c"
-}
-
-
-void
-metadata_rational_free (MetadataRational* self)
-{
-#line 20 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_free (self);
-#line 715 "MediaMetadata.c"
-}
-
-
-GType
-metadata_rational_get_type (void)
-{
- static volatile gsize metadata_rational_type_id__volatile = 0;
- if (g_once_init_enter (&metadata_rational_type_id__volatile)) {
- GType metadata_rational_type_id;
- metadata_rational_type_id = g_boxed_type_register_static ("MetadataRational", (GBoxedCopyFunc) metadata_rational_dup, (GBoxedFreeFunc) metadata_rational_free);
- g_once_init_leave (&metadata_rational_type_id__volatile, metadata_rational_type_id);
- }
- return metadata_rational_type_id__volatile;
-}
-
-
-GQuark
-metadata_date_time_error_quark (void)
-{
- return g_quark_from_static_string ("metadata_date_time_error-quark");
-}
-
-
-MetadataDateTime*
-metadata_date_time_construct (GType object_type,
- time_t timestamp)
-{
- MetadataDateTime* self = NULL;
-#line 51 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self = (MetadataDateTime*) g_type_create_instance (object_type);
-#line 52 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self->priv->timestamp = timestamp;
-#line 51 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return self;
-#line 750 "MediaMetadata.c"
-}
-
-
-MetadataDateTime*
-metadata_date_time_new (time_t timestamp)
-{
-#line 51 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return metadata_date_time_construct (TYPE_METADATA_DATE_TIME, timestamp);
-#line 759 "MediaMetadata.c"
-}
-
-
-MetadataDateTime*
-metadata_date_time_construct_from_exif (GType object_type,
- const gchar* label,
- GError** error)
-{
- MetadataDateTime* self = NULL;
- time_t _tmp0_ = 0;
- gboolean _tmp1_;
- GError * _inner_error_ = NULL;
-#line 55 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (label != NULL, NULL);
-#line 55 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self = (MetadataDateTime*) g_type_create_instance (object_type);
-#line 56 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = metadata_date_time_from_exif_date_time (label, &_tmp0_);
-#line 56 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self->priv->timestamp = _tmp0_;
-#line 56 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (!_tmp1_) {
-#line 782 "MediaMetadata.c"
- GError* _tmp2_;
-#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp2_ = g_error_new (METADATA_DATE_TIME_ERROR, METADATA_DATE_TIME_ERROR_INVALID_FORMAT, "%s is not EXIF format date/time", label);
-#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _inner_error_ = _tmp2_;
-#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_inner_error_->domain == METADATA_DATE_TIME_ERROR) {
-#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _metadata_date_time_unref0 (self);
-#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 796 "MediaMetadata.c"
- } else {
-#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.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 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 804 "MediaMetadata.c"
- }
- }
-#line 55 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return self;
-#line 809 "MediaMetadata.c"
-}
-
-
-MetadataDateTime*
-metadata_date_time_new_from_exif (const gchar* label,
- GError** error)
-{
-#line 55 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return metadata_date_time_construct_from_exif (TYPE_METADATA_DATE_TIME, label, error);
-#line 819 "MediaMetadata.c"
-}
-
-
-MetadataDateTime*
-metadata_date_time_construct_from_iptc (GType object_type,
- const gchar* date,
- const gchar* time,
- GError** error)
-{
- MetadataDateTime* self = NULL;
- GError* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (date != NULL, NULL);
-#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (time != NULL, NULL);
-#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self = (MetadataDateTime*) g_type_create_instance (object_type);
-#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = g_error_new_literal (METADATA_DATE_TIME_ERROR, METADATA_DATE_TIME_ERROR_UNSUPPORTED_FORMAT, "IPTC date/time format not currently supported");
-#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _inner_error_ = _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_inner_error_->domain == METADATA_DATE_TIME_ERROR) {
-#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _metadata_date_time_unref0 (self);
-#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 850 "MediaMetadata.c"
- } else {
-#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.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 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 858 "MediaMetadata.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return self;
-#line 862 "MediaMetadata.c"
-}
-
-
-MetadataDateTime*
-metadata_date_time_new_from_iptc (const gchar* date,
- const gchar* time,
- GError** error)
-{
-#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return metadata_date_time_construct_from_iptc (TYPE_METADATA_DATE_TIME, date, time, error);
-#line 873 "MediaMetadata.c"
-}
-
-
-MetadataDateTime*
-metadata_date_time_construct_from_xmp (GType object_type,
- const gchar* label,
- GError** error)
-{
- MetadataDateTime* self = NULL;
- GTimeVal time_val = {0};
- GTimeVal _tmp1_;
- glong _tmp2_;
- GError * _inner_error_ = NULL;
-#line 65 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (label != NULL, NULL);
-#line 65 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self = (MetadataDateTime*) g_type_create_instance (object_type);
-#line 66 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_get_current_time (&time_val);
-#line 67 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (!g_time_val_from_iso8601 (label, &time_val)) {
-#line 895 "MediaMetadata.c"
- GError* _tmp0_;
-#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = g_error_new (METADATA_DATE_TIME_ERROR, METADATA_DATE_TIME_ERROR_INVALID_FORMAT, "%s is not XMP format date/time", label);
-#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _inner_error_ = _tmp0_;
-#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_inner_error_->domain == METADATA_DATE_TIME_ERROR) {
-#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _metadata_date_time_unref0 (self);
-#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 909 "MediaMetadata.c"
- } else {
-#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.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 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 917 "MediaMetadata.c"
- }
- }
-#line 70 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = time_val;
-#line 70 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp2_ = _tmp1_.tv_sec;
-#line 70 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self->priv->timestamp = (time_t) _tmp2_;
-#line 65 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return self;
-#line 928 "MediaMetadata.c"
-}
-
-
-MetadataDateTime*
-metadata_date_time_new_from_xmp (const gchar* label,
- GError** error)
-{
-#line 65 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return metadata_date_time_construct_from_xmp (TYPE_METADATA_DATE_TIME, label, error);
-#line 938 "MediaMetadata.c"
-}
-
-
-time_t
-metadata_date_time_get_timestamp (MetadataDateTime* self)
-{
- time_t result = 0;
- time_t _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (IS_METADATA_DATE_TIME (self), 0);
-#line 74 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = self->priv->timestamp;
-#line 74 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = _tmp0_;
-#line 74 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 955 "MediaMetadata.c"
-}
-
-
-gchar*
-metadata_date_time_get_exif_label (MetadataDateTime* self)
-{
- gchar* result = NULL;
- time_t _tmp0_;
- gchar* _tmp1_;
-#line 77 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (IS_METADATA_DATE_TIME (self), NULL);
-#line 78 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = self->priv->timestamp;
-#line 78 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = metadata_date_time_to_exif_date_time (_tmp0_);
-#line 78 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = _tmp1_;
-#line 78 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 975 "MediaMetadata.c"
-}
-
-
-gchar*
-metadata_date_time_get_xmp_label (MetadataDateTime* self)
-{
- gchar* result = NULL;
- GTimeVal time_val = {0};
- time_t _tmp0_;
- gchar* _tmp1_;
-#line 83 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (IS_METADATA_DATE_TIME (self), NULL);
-#line 84 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_get_current_time (&time_val);
-#line 85 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = self->priv->timestamp;
-#line 85 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- time_val.tv_sec = (glong) _tmp0_;
-#line 86 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- time_val.tv_usec = (glong) 0;
-#line 88 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = g_time_val_to_iso8601 (&time_val);
-#line 88 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 1002 "MediaMetadata.c"
-}
-
-
-gboolean
-metadata_date_time_from_exif_date_time (const gchar* date_time,
- time_t* timestamp)
-{
- time_t _vala_timestamp = 0;
- gboolean result = FALSE;
- struct tm tm = {0};
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- struct tm _tmp8_;
- gint _tmp9_;
- gint _tmp20_;
- gint _tmp21_;
-#line 91 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (date_time != NULL, FALSE);
-#line 92 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _vala_timestamp = (time_t) 0;
-#line 94 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- memset (&tm, 0, sizeof (struct tm));
-#line 97 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (sscanf (date_time, "%d:%d:%d %d:%d:%d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) {
-#line 1030 "MediaMetadata.c"
- gchar* tmp = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
-#line 100 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = g_strdup (date_time);
-#line 100 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- tmp = _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = tmp;
-#line 101 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_strcanon (_tmp1_, "0123456789", ' ');
-#line 102 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp2_ = tmp;
-#line 102 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (sscanf (_tmp2_, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) {
-#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = FALSE;
-#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _g_free0 (tmp);
-#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (timestamp) {
-#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *timestamp = _vala_timestamp;
-#line 1055 "MediaMetadata.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 1059 "MediaMetadata.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _g_free0 (tmp);
-#line 1063 "MediaMetadata.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp8_ = tm;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp9_ = _tmp8_.tm_year;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_tmp9_ <= 1900) {
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp7_ = TRUE;
-#line 1073 "MediaMetadata.c"
- } else {
- struct tm _tmp10_;
- gint _tmp11_;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp10_ = tm;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp11_ = _tmp10_.tm_mon;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp7_ = _tmp11_ <= 0;
-#line 1083 "MediaMetadata.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_tmp7_) {
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp6_ = TRUE;
-#line 1089 "MediaMetadata.c"
- } else {
- struct tm _tmp12_;
- gint _tmp13_;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp12_ = tm;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp13_ = _tmp12_.tm_mday;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp6_ = _tmp13_ < 0;
-#line 1099 "MediaMetadata.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_tmp6_) {
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp5_ = TRUE;
-#line 1105 "MediaMetadata.c"
- } else {
- struct tm _tmp14_;
- gint _tmp15_;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp14_ = tm;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp15_ = _tmp14_.tm_hour;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp5_ = _tmp15_ < 0;
-#line 1115 "MediaMetadata.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_tmp5_) {
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp4_ = TRUE;
-#line 1121 "MediaMetadata.c"
- } else {
- struct tm _tmp16_;
- gint _tmp17_;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp16_ = tm;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp17_ = _tmp16_.tm_min;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp4_ = _tmp17_ < 0;
-#line 1131 "MediaMetadata.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_tmp4_) {
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp3_ = TRUE;
-#line 1137 "MediaMetadata.c"
- } else {
- struct tm _tmp18_;
- gint _tmp19_;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp18_ = tm;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp19_ = _tmp18_.tm_sec;
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp3_ = _tmp19_ < 0;
-#line 1147 "MediaMetadata.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (_tmp3_) {
-#line 109 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = FALSE;
-#line 109 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (timestamp) {
-#line 109 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *timestamp = _vala_timestamp;
-#line 1157 "MediaMetadata.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 1161 "MediaMetadata.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp20_ = tm.tm_year;
-#line 111 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- tm.tm_year = _tmp20_ - 1900;
-#line 112 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp21_ = tm.tm_mon;
-#line 112 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- tm.tm_mon = _tmp21_ - 1;
-#line 113 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- tm.tm_isdst = -1;
-#line 115 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _vala_timestamp = mktime (&tm);
-#line 117 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = TRUE;
-#line 117 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (timestamp) {
-#line 117 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *timestamp = _vala_timestamp;
-#line 1181 "MediaMetadata.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 1185 "MediaMetadata.c"
-}
-
-
-static void
-g_time_local (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- localtime_r (&time, &_tmp0_);
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 1203 "MediaMetadata.c"
-}
-
-
-static gchar*
-g_time_format (struct tm *self,
- const gchar* format)
-{
- gchar* result = NULL;
- gchar* buffer = NULL;
- gchar* _tmp0_;
- gint buffer_length1;
- gint _buffer_size_;
- gchar* _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gint _tmp2__length1;
- gchar* _tmp3_;
-#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (format != NULL, NULL);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, 64);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = _tmp0_;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer_length1 = 64;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _buffer_size_ = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = buffer;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1__length1 = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- strftime (_tmp1_, _tmp1__length1, format, &(*self));
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = buffer;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2__length1 = buffer_length1;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_strdup ((const gchar*) _tmp2_);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp3_;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = (g_free (buffer), NULL);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1249 "MediaMetadata.c"
-}
-
-
-gchar*
-metadata_date_time_to_exif_date_time (time_t timestamp)
-{
- gchar* result = NULL;
- struct tm _tmp0_ = {0};
- gchar* _tmp1_;
-#line 121 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_time_local (timestamp, &_tmp0_);
-#line 121 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = g_time_format (&_tmp0_, "%Y:%m:%d %H:%M:%S");
-#line 121 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = _tmp1_;
-#line 121 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 1267 "MediaMetadata.c"
-}
-
-
-gchar*
-metadata_date_time_to_string (MetadataDateTime* self)
-{
- gchar* result = NULL;
- time_t _tmp0_;
- gchar* _tmp1_;
-#line 124 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (IS_METADATA_DATE_TIME (self), NULL);
-#line 125 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp0_ = self->priv->timestamp;
-#line 125 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- _tmp1_ = metadata_date_time_to_exif_date_time (_tmp0_);
-#line 125 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- result = _tmp1_;
-#line 125 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return result;
-#line 1287 "MediaMetadata.c"
-}
-
-
-static void
-value_metadata_date_time_init (GValue* value)
-{
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1296 "MediaMetadata.c"
-}
-
-
-static void
-value_metadata_date_time_free_value (GValue* value)
-{
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- metadata_date_time_unref (value->data[0].v_pointer);
-#line 1307 "MediaMetadata.c"
- }
-}
-
-
-static void
-value_metadata_date_time_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- dest_value->data[0].v_pointer = metadata_date_time_ref (src_value->data[0].v_pointer);
-#line 1320 "MediaMetadata.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1324 "MediaMetadata.c"
- }
-}
-
-
-static gpointer
-value_metadata_date_time_peek_pointer (const GValue* value)
-{
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return value->data[0].v_pointer;
-#line 1334 "MediaMetadata.c"
-}
-
-
-static gchar*
-value_metadata_date_time_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 1346 "MediaMetadata.c"
- MetadataDateTime * object;
- object = collect_values[0].v_pointer;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1353 "MediaMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.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 1357 "MediaMetadata.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = metadata_date_time_ref (object);
-#line 1361 "MediaMetadata.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1365 "MediaMetadata.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 1369 "MediaMetadata.c"
-}
-
-
-static gchar*
-value_metadata_date_time_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- MetadataDateTime ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (!object_p) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1385 "MediaMetadata.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *object_p = NULL;
-#line 1391 "MediaMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 1395 "MediaMetadata.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- *object_p = metadata_date_time_ref (value->data[0].v_pointer);
-#line 1399 "MediaMetadata.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return NULL;
-#line 1403 "MediaMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecMetadataDateTime* spec;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_METADATA_DATE_TIME), NULL);
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 1423 "MediaMetadata.c"
-}
-
-
-gpointer
-value_get_metadata_date_time (const GValue* value)
-{
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_METADATA_DATE_TIME), NULL);
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return value->data[0].v_pointer;
-#line 1434 "MediaMetadata.c"
-}
-
-
-void
-value_set_metadata_date_time (GValue* value,
- gpointer v_object)
-{
- MetadataDateTime * old;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_METADATA_DATE_TIME));
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- old = value->data[0].v_pointer;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (v_object) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_METADATA_DATE_TIME));
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- metadata_date_time_ref (value->data[0].v_pointer);
-#line 1457 "MediaMetadata.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1461 "MediaMetadata.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (old) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- metadata_date_time_unref (old);
-#line 1467 "MediaMetadata.c"
- }
-}
-
-
-void
-value_take_metadata_date_time (GValue* value,
- gpointer v_object)
-{
- MetadataDateTime * old;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_METADATA_DATE_TIME));
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- old = value->data[0].v_pointer;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (v_object) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_METADATA_DATE_TIME));
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 1489 "MediaMetadata.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1493 "MediaMetadata.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (old) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- metadata_date_time_unref (old);
-#line 1499 "MediaMetadata.c"
- }
-}
-
-
-static void
-metadata_date_time_class_init (MetadataDateTimeClass * klass)
-{
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- metadata_date_time_parent_class = g_type_class_peek_parent (klass);
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- ((MetadataDateTimeClass *) klass)->finalize = metadata_date_time_finalize;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_type_class_add_private (klass, sizeof (MetadataDateTimePrivate));
-#line 1513 "MediaMetadata.c"
-}
-
-
-static void
-metadata_date_time_instance_init (MetadataDateTime * self)
-{
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self->priv = METADATA_DATE_TIME_GET_PRIVATE (self);
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self->ref_count = 1;
-#line 1524 "MediaMetadata.c"
-}
-
-
-static void
-metadata_date_time_finalize (MetadataDateTime * obj)
-{
- MetadataDateTime * self;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_METADATA_DATE_TIME, MetadataDateTime);
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 1536 "MediaMetadata.c"
-}
-
-
-GType
-metadata_date_time_get_type (void)
-{
- static volatile gsize metadata_date_time_type_id__volatile = 0;
- if (g_once_init_enter (&metadata_date_time_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_metadata_date_time_init, value_metadata_date_time_free_value, value_metadata_date_time_copy_value, value_metadata_date_time_peek_pointer, "p", value_metadata_date_time_collect_value, "p", value_metadata_date_time_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (MetadataDateTimeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) metadata_date_time_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MetadataDateTime), 0, (GInstanceInitFunc) metadata_date_time_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType metadata_date_time_type_id;
- metadata_date_time_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MetadataDateTime", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&metadata_date_time_type_id__volatile, metadata_date_time_type_id);
- }
- return metadata_date_time_type_id__volatile;
-}
-
-
-gpointer
-metadata_date_time_ref (gpointer instance)
-{
- MetadataDateTime * self;
- self = instance;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- return instance;
-#line 1565 "MediaMetadata.c"
-}
-
-
-void
-metadata_date_time_unref (gpointer instance)
-{
- MetadataDateTime * self;
- self = instance;
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- METADATA_DATE_TIME_GET_CLASS (self)->finalize (self);
-#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1580 "MediaMetadata.c"
- }
-}
-
-
-
diff --git a/src/MediaMonitor.c b/src/MediaMonitor.c
deleted file mode 100644
index 551e8f0..0000000
--- a/src/MediaMonitor.c
+++ /dev/null
@@ -1,3463 +0,0 @@
-/* MediaMonitor.c generated by valac 0.40.4, the Vala compiler
- * generated from MediaMonitor.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-#include <float.h>
-#include <math.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_MONITORABLE_UPDATES (monitorable_updates_get_type ())
-#define MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdates))
-#define MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass))
-#define IS_MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE_UPDATES))
-#define IS_MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MONITORABLE_UPDATES))
-#define MONITORABLE_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass))
-
-typedef struct _MonitorableUpdates MonitorableUpdates;
-typedef struct _MonitorableUpdatesClass MonitorableUpdatesClass;
-typedef struct _MonitorableUpdatesPrivate MonitorableUpdatesPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_MONITORABLE (monitorable_get_type ())
-#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
-#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
-#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
-
-typedef struct _Monitorable Monitorable;
-typedef struct _MonitorableIface MonitorableIface;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecMonitorableUpdates ParamSpecMonitorableUpdates;
-
-#define TYPE_MEDIA_MONITOR (media_monitor_get_type ())
-#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor))
-#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR))
-#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR))
-#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-
-typedef struct _MediaMonitor MediaMonitor;
-typedef struct _MediaMonitorClass MediaMonitorClass;
-typedef struct _MediaMonitorPrivate MediaMonitorPrivate;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define MEDIA_MONITOR_TYPE_DISCOVERED_FILE (media_monitor_discovered_file_get_type ())
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-enum {
- MEDIA_MONITOR_0_PROPERTY,
- MEDIA_MONITOR_NUM_PROPERTIES
-};
-static GParamSpec* media_monitor_properties[MEDIA_MONITOR_NUM_PROPERTIES];
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _monitorable_updates_unref0(var) ((var == NULL) ? NULL : (var = (monitorable_updates_unref (var), NULL)))
-
-#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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _transaction_controller_unref0(var) ((var == NULL) ? NULL : (var = (transaction_controller_unref (var), NULL)))
-#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
-
-struct _MonitorableIface {
- GTypeInterface parent_iface;
- gboolean (*is_offline) (Monitorable* self);
- void (*mark_online) (Monitorable* self);
- void (*mark_offline) (Monitorable* self);
- void (*set_master_file) (Monitorable* self, GFile* file);
- void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
-};
-
-struct _MonitorableUpdates {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MonitorableUpdatesPrivate * priv;
- Monitorable* monitorable;
-};
-
-struct _MonitorableUpdatesClass {
- GTypeClass parent_class;
- void (*finalize) (MonitorableUpdates *self);
- gboolean (*is_in_alteration) (MonitorableUpdates* self);
- void (*set_master_file) (MonitorableUpdates* self, GFile* file);
- void (*set_master_file_info_altered) (MonitorableUpdates* self, gboolean altered);
- void (*set_master_file_info) (MonitorableUpdates* self, GFileInfo* info);
- void (*set_master_in_alteration) (MonitorableUpdates* self, gboolean in_alteration);
- void (*set_master_alterations_complete) (MonitorableUpdates* self, GFileInfo* info);
- void (*mark_offline) (MonitorableUpdates* self);
- void (*mark_online) (MonitorableUpdates* self);
- void (*reset_online_offline) (MonitorableUpdates* self);
- gboolean (*is_all_updated) (MonitorableUpdates* self);
-};
-
-struct _MonitorableUpdatesPrivate {
- GFile* master_file;
- gboolean master_file_info_altered;
- GFileInfo* master_file_info;
- gboolean master_in_alteration;
- gboolean online;
- gboolean offline;
-};
-
-struct _ParamSpecMonitorableUpdates {
- GParamSpec parent_instance;
-};
-
-typedef enum {
- MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED,
- MEDIA_MONITOR_DISCOVERED_FILE_IGNORE,
- MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN
-} MediaMonitorDiscoveredFile;
-
-struct _MediaMonitor {
- GObject parent_instance;
- MediaMonitorPrivate * priv;
-};
-
-struct _MediaMonitorClass {
- GObjectClass parent_class;
- MediaSourceCollection* (*get_media_source_collection) (MediaMonitor* self);
- void (*close) (MediaMonitor* self);
- gchar* (*to_string) (MediaMonitor* self);
- MonitorableUpdates* (*create_updates) (MediaMonitor* self, Monitorable* monitorable);
- void (*on_media_source_destroyed) (MediaMonitor* self, DataSource* source);
- void (*notify_discovery_started) (MediaMonitor* self);
- MediaMonitorDiscoveredFile (*notify_file_discovered) (MediaMonitor* self, GFile* file, GFileInfo* info, Monitorable* * monitorable);
- GeeCollection* (*candidates_for_unknown_file) (MediaMonitor* self, GFile* file, GFileInfo* info, MediaMonitorDiscoveredFile* _result_);
- GFile** (*get_auxilliary_backing_files) (MediaMonitor* self, Monitorable* monitorable, int* result_length1);
- void (*update_backing_file_info) (MediaMonitor* self, Monitorable* monitorable, GFile* file, GFileInfo* info);
- void (*notify_discovery_completing) (MediaMonitor* self);
- gboolean (*is_file_represented) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_created) (MediaMonitor* self, GFile* file, GFileInfo* info);
- gboolean (*notify_file_moved) (MediaMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info);
- gboolean (*notify_file_altered) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_attributes_altered) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_alteration_completed) (MediaMonitor* self, GFile* file, GFileInfo* info);
- gboolean (*notify_file_deleted) (MediaMonitor* self, GFile* file);
- void (*process_updates) (MediaMonitor* self, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error);
-};
-
-struct _MediaMonitorPrivate {
- MediaSourceCollection* sources;
- GCancellable* cancellable;
- GeeHashMap* pending_updates;
- guint pending_updates_timer_id;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-
-static gpointer monitorable_updates_parent_class = NULL;
-static gpointer media_monitor_parent_class = NULL;
-
-gpointer monitorable_updates_ref (gpointer instance);
-void monitorable_updates_unref (gpointer instance);
-GParamSpec* param_spec_monitorable_updates (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_monitorable_updates (GValue* value,
- gpointer v_object);
-void value_take_monitorable_updates (GValue* value,
- gpointer v_object);
-gpointer value_get_monitorable_updates (const GValue* value);
-GType monitorable_updates_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType monitorable_get_type (void) G_GNUC_CONST;
-#define MONITORABLE_UPDATES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesPrivate))
-MonitorableUpdates* monitorable_updates_new (Monitorable* monitorable);
-MonitorableUpdates* monitorable_updates_construct (GType object_type,
- Monitorable* monitorable);
-GFile* monitorable_updates_get_master_file (MonitorableUpdates* self);
-GFileInfo* monitorable_updates_get_master_file_info (MonitorableUpdates* self);
-gboolean monitorable_updates_is_in_alteration (MonitorableUpdates* self);
-static gboolean monitorable_updates_real_is_in_alteration (MonitorableUpdates* self);
-gboolean monitorable_updates_is_set_offline (MonitorableUpdates* self);
-gboolean monitorable_updates_is_set_online (MonitorableUpdates* self);
-void monitorable_updates_set_master_file (MonitorableUpdates* self,
- GFile* file);
-static void monitorable_updates_real_set_master_file (MonitorableUpdates* self,
- GFile* file);
-void monitorable_updates_mark_online (MonitorableUpdates* self);
-void monitorable_updates_set_master_file_info_altered (MonitorableUpdates* self,
- gboolean altered);
-static void monitorable_updates_real_set_master_file_info_altered (MonitorableUpdates* self,
- gboolean altered);
-void monitorable_updates_set_master_file_info (MonitorableUpdates* self,
- GFileInfo* info);
-static void monitorable_updates_real_set_master_file_info (MonitorableUpdates* self,
- GFileInfo* info);
-void monitorable_updates_set_master_in_alteration (MonitorableUpdates* self,
- gboolean in_alteration);
-static void monitorable_updates_real_set_master_in_alteration (MonitorableUpdates* self,
- gboolean in_alteration);
-void monitorable_updates_set_master_alterations_complete (MonitorableUpdates* self,
- GFileInfo* info);
-static void monitorable_updates_real_set_master_alterations_complete (MonitorableUpdates* self,
- GFileInfo* info);
-void monitorable_updates_mark_offline (MonitorableUpdates* self);
-static void monitorable_updates_real_mark_offline (MonitorableUpdates* self);
-static void monitorable_updates_real_mark_online (MonitorableUpdates* self);
-void monitorable_updates_reset_online_offline (MonitorableUpdates* self);
-static void monitorable_updates_real_reset_online_offline (MonitorableUpdates* self);
-gboolean monitorable_updates_is_all_updated (MonitorableUpdates* self);
-static gboolean monitorable_updates_real_is_all_updated (MonitorableUpdates* self);
-static void monitorable_updates_finalize (MonitorableUpdates * obj);
-GType media_monitor_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST;
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-#define MEDIA_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_MONITOR, MediaMonitorPrivate))
-void media_monitor_on_media_source_destroyed (MediaMonitor* self,
- DataSource* source);
-static void _media_monitor_on_media_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-static void _media_monitor_on_media_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-#define MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE 100
-#define MEDIA_MONITOR_FLUSH_PENDING_UPDATES_MSEC 500
-MediaMonitor* media_monitor_construct (GType object_type,
- MediaSourceCollection* sources,
- GCancellable* cancellable);
-static gboolean media_monitor_on_flush_pending_updates (MediaMonitor* self);
-static gboolean _media_monitor_on_flush_pending_updates_gsource_func (gpointer self);
-MediaSourceCollection* media_monitor_get_media_source_collection (MediaMonitor* self);
-static MediaSourceCollection* media_monitor_real_get_media_source_collection (MediaMonitor* self);
-void media_monitor_close (MediaMonitor* self);
-static void media_monitor_real_close (MediaMonitor* self);
-gchar* media_monitor_to_string (MediaMonitor* self);
-static gchar* media_monitor_real_to_string (MediaMonitor* self);
-gchar* data_collection_to_string (DataCollection* self);
-MonitorableUpdates* media_monitor_create_updates (MediaMonitor* self,
- Monitorable* monitorable);
-static MonitorableUpdates* media_monitor_real_create_updates (MediaMonitor* self,
- Monitorable* monitorable);
-static void media_monitor_real_on_media_source_destroyed (MediaMonitor* self,
- DataSource* source);
-void media_monitor_remove_updates (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_notify_discovery_started (MediaMonitor* self);
-static void media_monitor_real_notify_discovery_started (MediaMonitor* self);
-MediaMonitorDiscoveredFile media_monitor_notify_file_discovered (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable);
-static MediaMonitorDiscoveredFile media_monitor_real_notify_file_discovered (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable);
-GeeCollection* media_monitor_candidates_for_unknown_file (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_);
-static GeeCollection* media_monitor_real_candidates_for_unknown_file (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_);
-GFile** media_monitor_get_auxilliary_backing_files (MediaMonitor* self,
- Monitorable* monitorable,
- int* result_length1);
-static GFile** media_monitor_real_get_auxilliary_backing_files (MediaMonitor* self,
- Monitorable* monitorable,
- int* result_length1);
-void media_monitor_update_backing_file_info (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file,
- GFileInfo* info);
-static void media_monitor_real_update_backing_file_info (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file,
- GFileInfo* info);
-void media_monitor_notify_discovery_completing (MediaMonitor* self);
-static void media_monitor_real_notify_discovery_completing (MediaMonitor* self);
-gboolean media_monitor_is_file_represented (MediaMonitor* self,
- GFile* file);
-static gboolean media_monitor_real_is_file_represented (MediaMonitor* self,
- GFile* file);
-gboolean media_monitor_notify_file_created (MediaMonitor* self,
- GFile* file,
- GFileInfo* info);
-static gboolean media_monitor_real_notify_file_created (MediaMonitor* self,
- GFile* file,
- GFileInfo* info);
-gboolean media_monitor_notify_file_moved (MediaMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-static gboolean media_monitor_real_notify_file_moved (MediaMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-gboolean media_monitor_notify_file_altered (MediaMonitor* self,
- GFile* file);
-static gboolean media_monitor_real_notify_file_altered (MediaMonitor* self,
- GFile* file);
-gboolean media_monitor_notify_file_attributes_altered (MediaMonitor* self,
- GFile* file);
-static gboolean media_monitor_real_notify_file_attributes_altered (MediaMonitor* self,
- GFile* file);
-gboolean media_monitor_notify_file_alteration_completed (MediaMonitor* self,
- GFile* file,
- GFileInfo* info);
-static gboolean media_monitor_real_notify_file_alteration_completed (MediaMonitor* self,
- GFile* file,
- GFileInfo* info);
-gboolean media_monitor_notify_file_deleted (MediaMonitor* self,
- GFile* file);
-static gboolean media_monitor_real_notify_file_deleted (MediaMonitor* self,
- GFile* file);
-void media_monitor_mdbg (const gchar* msg);
-gboolean media_monitor_has_pending_updates (MediaMonitor* self);
-GeeCollection* media_monitor_get_monitorables (MediaMonitor* self);
-MonitorableUpdates* media_monitor_fetch_updates (MediaMonitor* self,
- Monitorable* monitorable);
-MonitorableUpdates* media_monitor_get_existing_updates (MediaMonitor* self,
- Monitorable* monitorable);
-gboolean media_monitor_is_online (MediaMonitor* self,
- Monitorable* monitorable);
-gboolean monitorable_is_offline (Monitorable* self);
-gboolean media_monitor_is_offline (MediaMonitor* self,
- Monitorable* monitorable);
-GFile* media_monitor_get_master_file (MediaMonitor* self,
- Monitorable* monitorable);
-GFile* media_source_get_master_file (MediaSource* self);
-void media_monitor_update_master_file (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file);
-void media_monitor_update_master_file_info_altered (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_update_master_file_in_alteration (MediaMonitor* self,
- Monitorable* monitorable,
- gboolean in_alteration);
-void media_monitor_update_master_file_alterations_completed (MediaMonitor* self,
- Monitorable* monitorable,
- GFileInfo* info);
-void media_monitor_update_online (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_update_offline (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_process_updates (MediaMonitor* self,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error);
-static void media_monitor_real_process_updates (MediaMonitor* self,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error);
-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;
-void monitorable_set_many_master_file (GeeMap* map,
- TransactionController* controller,
- GError** error);
-void monitorable_set_many_master_timestamp (GeeMap* map,
- TransactionController* controller,
- GError** error);
-void monitorable_mark_many_online_offline (GeeCollection* online,
- GeeCollection* offline,
- TransactionController* controller,
- GError** error);
-TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self);
-void transaction_controller_begin (TransactionController* self);
-void transaction_controller_commit (TransactionController* self);
-GQuark database_error_quark (void);
-void app_window_database_error (GError* err);
-void app_window_panic (const gchar* msg);
-static void media_monitor_finalize (GObject * obj);
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 18 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return self ? g_object_ref (self) : NULL;
-#line 543 "MediaMonitor.c"
-}
-
-
-MonitorableUpdates*
-monitorable_updates_construct (GType object_type,
- Monitorable* monitorable)
-{
- MonitorableUpdates* self = NULL;
- Monitorable* _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 17 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self = (MonitorableUpdates*) g_type_create_instance (object_type);
-#line 18 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = _g_object_ref0 (monitorable);
-#line 18 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->monitorable);
-#line 18 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->monitorable = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return self;
-#line 565 "MediaMonitor.c"
-}
-
-
-MonitorableUpdates*
-monitorable_updates_new (Monitorable* monitorable)
-{
-#line 17 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return monitorable_updates_construct (TYPE_MONITORABLE_UPDATES, monitorable);
-#line 574 "MediaMonitor.c"
-}
-
-
-GFile*
-monitorable_updates_get_master_file (MonitorableUpdates* self)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 21 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), NULL);
-#line 22 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->master_file;
-#line 22 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 22 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp1_;
-#line 22 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 594 "MediaMonitor.c"
-}
-
-
-GFileInfo*
-monitorable_updates_get_master_file_info (MonitorableUpdates* self)
-{
- GFileInfo* result = NULL;
- GFileInfo* _tmp0_;
- GFileInfo* _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), NULL);
-#line 26 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->master_file_info;
-#line 26 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 26 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp1_;
-#line 26 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 614 "MediaMonitor.c"
-}
-
-
-static gboolean
-monitorable_updates_real_is_in_alteration (MonitorableUpdates* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->master_in_alteration;
-#line 30 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 629 "MediaMonitor.c"
-}
-
-
-gboolean
-monitorable_updates_is_in_alteration (MonitorableUpdates* self)
-{
-#line 29 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), FALSE);
-#line 29 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MONITORABLE_UPDATES_GET_CLASS (self)->is_in_alteration (self);
-#line 640 "MediaMonitor.c"
-}
-
-
-gboolean
-monitorable_updates_is_set_offline (MonitorableUpdates* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), FALSE);
-#line 34 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->offline;
-#line 34 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 657 "MediaMonitor.c"
-}
-
-
-gboolean
-monitorable_updates_is_set_online (MonitorableUpdates* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), FALSE);
-#line 38 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->online;
-#line 38 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 674 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_real_set_master_file (MonitorableUpdates* self,
- GFile* file)
-{
- GFile* _tmp0_;
-#line 41 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail ((file == NULL) || G_IS_FILE (file));
-#line 42 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 42 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->priv->master_file);
-#line 42 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_file = _tmp0_;
-#line 44 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (file != NULL) {
-#line 45 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_mark_online (self);
-#line 695 "MediaMonitor.c"
- }
-}
-
-
-void
-monitorable_updates_set_master_file (MonitorableUpdates* self,
- GFile* file)
-{
-#line 41 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE_UPDATES (self));
-#line 41 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->set_master_file (self, file);
-#line 708 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_real_set_master_file_info_altered (MonitorableUpdates* self,
- gboolean altered)
-{
-#line 49 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_file_info_altered = altered;
-#line 51 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (altered) {
-#line 52 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_mark_online (self);
-#line 722 "MediaMonitor.c"
- }
-}
-
-
-void
-monitorable_updates_set_master_file_info_altered (MonitorableUpdates* self,
- gboolean altered)
-{
-#line 48 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE_UPDATES (self));
-#line 48 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->set_master_file_info_altered (self, altered);
-#line 735 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_real_set_master_file_info (MonitorableUpdates* self,
- GFileInfo* info)
-{
- GFileInfo* _tmp0_;
- GFileInfo* _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info));
-#line 56 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = _g_object_ref0 (info);
-#line 56 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->priv->master_file_info);
-#line 56 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_file_info = _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = self->priv->master_file_info;
-#line 58 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp1_ == NULL) {
-#line 59 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_file_info_altered (self, FALSE);
-#line 759 "MediaMonitor.c"
- }
-}
-
-
-void
-monitorable_updates_set_master_file_info (MonitorableUpdates* self,
- GFileInfo* info)
-{
-#line 55 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE_UPDATES (self));
-#line 55 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->set_master_file_info (self, info);
-#line 772 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_real_set_master_in_alteration (MonitorableUpdates* self,
- gboolean in_alteration)
-{
-#line 63 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_in_alteration = in_alteration;
-#line 782 "MediaMonitor.c"
-}
-
-
-void
-monitorable_updates_set_master_in_alteration (MonitorableUpdates* self,
- gboolean in_alteration)
-{
-#line 62 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE_UPDATES (self));
-#line 62 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->set_master_in_alteration (self, in_alteration);
-#line 794 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_real_set_master_alterations_complete (MonitorableUpdates* self,
- GFileInfo* info)
-{
-#line 66 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 67 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_in_alteration (self, FALSE);
-#line 68 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_file_info (self, info);
-#line 69 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_mark_online (self);
-#line 810 "MediaMonitor.c"
-}
-
-
-void
-monitorable_updates_set_master_alterations_complete (MonitorableUpdates* self,
- GFileInfo* info)
-{
-#line 66 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE_UPDATES (self));
-#line 66 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->set_master_alterations_complete (self, info);
-#line 822 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_real_mark_offline (MonitorableUpdates* self)
-{
-#line 73 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->online = FALSE;
-#line 74 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->offline = TRUE;
-#line 76 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_file_info_altered = FALSE;
-#line 77 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->priv->master_file_info);
-#line 77 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_file_info = NULL;
-#line 78 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_in_alteration = FALSE;
-#line 841 "MediaMonitor.c"
-}
-
-
-void
-monitorable_updates_mark_offline (MonitorableUpdates* self)
-{
-#line 72 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE_UPDATES (self));
-#line 72 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->mark_offline (self);
-#line 852 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_real_mark_online (MonitorableUpdates* self)
-{
-#line 82 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->online = TRUE;
-#line 83 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->offline = FALSE;
-#line 863 "MediaMonitor.c"
-}
-
-
-void
-monitorable_updates_mark_online (MonitorableUpdates* self)
-{
-#line 81 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE_UPDATES (self));
-#line 81 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->mark_online (self);
-#line 874 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_real_reset_online_offline (MonitorableUpdates* self)
-{
-#line 87 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->online = FALSE;
-#line 88 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->offline = FALSE;
-#line 885 "MediaMonitor.c"
-}
-
-
-void
-monitorable_updates_reset_online_offline (MonitorableUpdates* self)
-{
-#line 86 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE_UPDATES (self));
-#line 86 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->reset_online_offline (self);
-#line 896 "MediaMonitor.c"
-}
-
-
-static gboolean
-monitorable_updates_real_is_all_updated (MonitorableUpdates* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- GFile* _tmp5_;
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp5_ = self->priv->master_file;
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp5_ == NULL) {
-#line 914 "MediaMonitor.c"
- gboolean _tmp6_;
-#line 93 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp6_ = self->priv->master_file_info_altered;
-#line 93 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp4_ = _tmp6_ == FALSE;
-#line 920 "MediaMonitor.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp4_ = FALSE;
-#line 924 "MediaMonitor.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp4_) {
-#line 928 "MediaMonitor.c"
- GFileInfo* _tmp7_;
-#line 94 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp7_ = self->priv->master_file_info;
-#line 94 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = _tmp7_ == NULL;
-#line 934 "MediaMonitor.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = FALSE;
-#line 938 "MediaMonitor.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp3_) {
-#line 942 "MediaMonitor.c"
- gboolean _tmp8_;
-#line 95 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp8_ = self->priv->master_in_alteration;
-#line 95 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = _tmp8_ == FALSE;
-#line 948 "MediaMonitor.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = FALSE;
-#line 952 "MediaMonitor.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp2_) {
-#line 956 "MediaMonitor.c"
- gboolean _tmp9_;
-#line 96 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp9_ = self->priv->online;
-#line 96 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp9_ == FALSE;
-#line 962 "MediaMonitor.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = FALSE;
-#line 966 "MediaMonitor.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp1_) {
-#line 970 "MediaMonitor.c"
- gboolean _tmp10_;
-#line 97 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp10_ = self->priv->offline;
-#line 97 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = _tmp10_ == FALSE;
-#line 976 "MediaMonitor.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = FALSE;
-#line 980 "MediaMonitor.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 986 "MediaMonitor.c"
-}
-
-
-gboolean
-monitorable_updates_is_all_updated (MonitorableUpdates* self)
-{
-#line 91 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), FALSE);
-#line 91 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MONITORABLE_UPDATES_GET_CLASS (self)->is_all_updated (self);
-#line 997 "MediaMonitor.c"
-}
-
-
-static void
-value_monitorable_updates_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 1006 "MediaMonitor.c"
-}
-
-
-static void
-value_monitorable_updates_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_unref (value->data[0].v_pointer);
-#line 1017 "MediaMonitor.c"
- }
-}
-
-
-static void
-value_monitorable_updates_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- dest_value->data[0].v_pointer = monitorable_updates_ref (src_value->data[0].v_pointer);
-#line 1030 "MediaMonitor.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1034 "MediaMonitor.c"
- }
-}
-
-
-static gpointer
-value_monitorable_updates_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return value->data[0].v_pointer;
-#line 1044 "MediaMonitor.c"
-}
-
-
-static gchar*
-value_monitorable_updates_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (collect_values[0].v_pointer) {
-#line 1056 "MediaMonitor.c"
- MonitorableUpdates * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1063 "MediaMonitor.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.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 1067 "MediaMonitor.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- value->data[0].v_pointer = monitorable_updates_ref (object);
-#line 1071 "MediaMonitor.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 1075 "MediaMonitor.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return NULL;
-#line 1079 "MediaMonitor.c"
-}
-
-
-static gchar*
-value_monitorable_updates_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- MonitorableUpdates ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1095 "MediaMonitor.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- *object_p = NULL;
-#line 1101 "MediaMonitor.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- *object_p = value->data[0].v_pointer;
-#line 1105 "MediaMonitor.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- *object_p = monitorable_updates_ref (value->data[0].v_pointer);
-#line 1109 "MediaMonitor.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return NULL;
-#line 1113 "MediaMonitor.c"
-}
-
-
-GParamSpec*
-param_spec_monitorable_updates (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecMonitorableUpdates* spec;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_MONITORABLE_UPDATES), NULL);
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return G_PARAM_SPEC (spec);
-#line 1133 "MediaMonitor.c"
-}
-
-
-gpointer
-value_get_monitorable_updates (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MONITORABLE_UPDATES), NULL);
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return value->data[0].v_pointer;
-#line 1144 "MediaMonitor.c"
-}
-
-
-void
-value_set_monitorable_updates (GValue* value,
- gpointer v_object)
-{
- MonitorableUpdates * old;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MONITORABLE_UPDATES));
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MONITORABLE_UPDATES));
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- 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/MediaMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_ref (value->data[0].v_pointer);
-#line 1167 "MediaMonitor.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 1171 "MediaMonitor.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_unref (old);
-#line 1177 "MediaMonitor.c"
- }
-}
-
-
-void
-value_take_monitorable_updates (GValue* value,
- gpointer v_object)
-{
- MonitorableUpdates * old;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MONITORABLE_UPDATES));
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MONITORABLE_UPDATES));
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- 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/MediaMonitor.vala"
- value->data[0].v_pointer = v_object;
-#line 1199 "MediaMonitor.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- value->data[0].v_pointer = NULL;
-#line 1203 "MediaMonitor.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_unref (old);
-#line 1209 "MediaMonitor.c"
- }
-}
-
-
-static void
-monitorable_updates_class_init (MonitorableUpdatesClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->finalize = monitorable_updates_finalize;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_type_class_add_private (klass, sizeof (MonitorableUpdatesPrivate));
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->is_in_alteration = (gboolean (*) (MonitorableUpdates *)) monitorable_updates_real_is_in_alteration;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->set_master_file = (void (*) (MonitorableUpdates *, GFile*)) monitorable_updates_real_set_master_file;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->set_master_file_info_altered = (void (*) (MonitorableUpdates *, gboolean)) monitorable_updates_real_set_master_file_info_altered;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->set_master_file_info = (void (*) (MonitorableUpdates *, GFileInfo*)) monitorable_updates_real_set_master_file_info;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->set_master_in_alteration = (void (*) (MonitorableUpdates *, gboolean)) monitorable_updates_real_set_master_in_alteration;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->set_master_alterations_complete = (void (*) (MonitorableUpdates *, GFileInfo*)) monitorable_updates_real_set_master_alterations_complete;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->mark_offline = (void (*) (MonitorableUpdates *)) monitorable_updates_real_mark_offline;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->mark_online = (void (*) (MonitorableUpdates *)) monitorable_updates_real_mark_online;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->reset_online_offline = (void (*) (MonitorableUpdates *)) monitorable_updates_real_reset_online_offline;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->is_all_updated = (gboolean (*) (MonitorableUpdates *)) monitorable_updates_real_is_all_updated;
-#line 1243 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_instance_init (MonitorableUpdates * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv = MONITORABLE_UPDATES_GET_PRIVATE (self);
-#line 10 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_file = NULL;
-#line 11 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_file_info_altered = FALSE;
-#line 12 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_file_info = NULL;
-#line 13 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->master_in_alteration = FALSE;
-#line 14 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->online = FALSE;
-#line 15 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->offline = FALSE;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->ref_count = 1;
-#line 1266 "MediaMonitor.c"
-}
-
-
-static void
-monitorable_updates_finalize (MonitorableUpdates * obj)
-{
- MonitorableUpdates * self;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MONITORABLE_UPDATES, MonitorableUpdates);
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_signal_handlers_destroy (self);
-#line 8 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->monitorable);
-#line 10 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->priv->master_file);
-#line 12 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->priv->master_file_info);
-#line 1284 "MediaMonitor.c"
-}
-
-
-GType
-monitorable_updates_get_type (void)
-{
- static volatile gsize monitorable_updates_type_id__volatile = 0;
- if (g_once_init_enter (&monitorable_updates_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_monitorable_updates_init, value_monitorable_updates_free_value, value_monitorable_updates_copy_value, value_monitorable_updates_peek_pointer, "p", value_monitorable_updates_collect_value, "p", value_monitorable_updates_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (MonitorableUpdatesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) monitorable_updates_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MonitorableUpdates), 0, (GInstanceInitFunc) monitorable_updates_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType monitorable_updates_type_id;
- monitorable_updates_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MonitorableUpdates", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&monitorable_updates_type_id__volatile, monitorable_updates_type_id);
- }
- return monitorable_updates_type_id__volatile;
-}
-
-
-gpointer
-monitorable_updates_ref (gpointer instance)
-{
- MonitorableUpdates * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return instance;
-#line 1313 "MediaMonitor.c"
-}
-
-
-void
-monitorable_updates_unref (gpointer instance)
-{
- MonitorableUpdates * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MONITORABLE_UPDATES_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1328 "MediaMonitor.c"
- }
-}
-
-
-static void
-_media_monitor_on_media_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 130 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_on_media_source_destroyed ((MediaMonitor*) self, source);
-#line 1340 "MediaMonitor.c"
-}
-
-
-static void
-_media_monitor_on_media_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 131 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_on_media_source_destroyed ((MediaMonitor*) self, source);
-#line 1351 "MediaMonitor.c"
-}
-
-
-GType
-media_monitor_discovered_file_get_type (void)
-{
- static volatile gsize media_monitor_discovered_file_type_id__volatile = 0;
- if (g_once_init_enter (&media_monitor_discovered_file_type_id__volatile)) {
- static const GEnumValue values[] = {{MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED, "MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED", "represented"}, {MEDIA_MONITOR_DISCOVERED_FILE_IGNORE, "MEDIA_MONITOR_DISCOVERED_FILE_IGNORE", "ignore"}, {MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN, "MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN", "unknown"}, {0, NULL, NULL}};
- GType media_monitor_discovered_file_type_id;
- media_monitor_discovered_file_type_id = g_enum_register_static ("MediaMonitorDiscoveredFile", values);
- g_once_init_leave (&media_monitor_discovered_file_type_id__volatile, media_monitor_discovered_file_type_id);
- }
- return media_monitor_discovered_file_type_id__volatile;
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 119 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 1374 "MediaMonitor.c"
-}
-
-
-static gboolean
-_media_monitor_on_flush_pending_updates_gsource_func (gpointer self)
-{
- gboolean result;
- result = media_monitor_on_flush_pending_updates ((MediaMonitor*) self);
-#line 125 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 1385 "MediaMonitor.c"
-}
-
-
-MediaMonitor*
-media_monitor_construct (GType object_type,
- MediaSourceCollection* sources,
- GCancellable* cancellable)
-{
- MediaMonitor * self = NULL;
- MediaSourceCollection* _tmp0_;
- GCancellable* _tmp1_;
-#line 118 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (sources), NULL);
-#line 118 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 118 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self = (MediaMonitor*) g_object_new (object_type, NULL);
-#line 119 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = _data_collection_ref0 (sources);
-#line 119 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 119 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->sources = _tmp0_;
-#line 120 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _g_object_ref0 (cancellable);
-#line 120 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 120 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->cancellable = _tmp1_;
-#line 122 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _media_monitor_on_media_source_destroyed_source_collection_item_destroyed, self, 0);
-#line 123 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_SOURCE_COLLECTION, SourceCollection), "unlinked-destroyed", (GCallback) _media_monitor_on_media_source_destroyed_source_collection_unlinked_destroyed, self, 0);
-#line 125 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->pending_updates_timer_id = g_timeout_add_full (G_PRIORITY_LOW, (guint) MEDIA_MONITOR_FLUSH_PENDING_UPDATES_MSEC, _media_monitor_on_flush_pending_updates_gsource_func, g_object_ref (self), g_object_unref);
-#line 118 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return self;
-#line 1423 "MediaMonitor.c"
-}
-
-
-static MediaSourceCollection*
-media_monitor_real_get_media_source_collection (MediaMonitor* self)
-{
-#line 134 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_get_media_source_collection'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 134 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return NULL;
-#line 1434 "MediaMonitor.c"
-}
-
-
-MediaSourceCollection*
-media_monitor_get_media_source_collection (MediaMonitor* self)
-{
-#line 134 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 134 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->get_media_source_collection (self);
-#line 1445 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_real_close (MediaMonitor* self)
-{
-}
-
-
-void
-media_monitor_close (MediaMonitor* self)
-{
-#line 136 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 136 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MEDIA_MONITOR_GET_CLASS (self)->close (self);
-#line 1462 "MediaMonitor.c"
-}
-
-
-static gchar*
-media_monitor_real_to_string (MediaMonitor* self)
-{
- gchar* result = NULL;
- MediaSourceCollection* _tmp0_;
- MediaSourceCollection* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_get_media_source_collection (self);
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp4_ = g_strdup_printf ("MediaMonitor for %s", _tmp3_);
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp3_);
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _data_collection_unref0 (_tmp1_);
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp5_;
-#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 1496 "MediaMonitor.c"
-}
-
-
-gchar*
-media_monitor_to_string (MediaMonitor* self)
-{
-#line 139 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 139 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->to_string (self);
-#line 1507 "MediaMonitor.c"
-}
-
-
-static MonitorableUpdates*
-media_monitor_real_create_updates (MediaMonitor* self,
- Monitorable* monitorable)
-{
- MonitorableUpdates* result = NULL;
- MonitorableUpdates* _tmp0_;
-#line 143 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 144 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = monitorable_updates_new (monitorable);
-#line 144 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp0_;
-#line 144 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 1525 "MediaMonitor.c"
-}
-
-
-MonitorableUpdates*
-media_monitor_create_updates (MediaMonitor* self,
- Monitorable* monitorable)
-{
-#line 143 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 143 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->create_updates (self, monitorable);
-#line 1537 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_real_on_media_source_destroyed (MediaMonitor* self,
- DataSource* source)
-{
-#line 147 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 148 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_remove_updates (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MONITORABLE, Monitorable));
-#line 1549 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_on_media_source_destroyed (MediaMonitor* self,
- DataSource* source)
-{
-#line 147 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 147 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MEDIA_MONITOR_GET_CLASS (self)->on_media_source_destroyed (self, source);
-#line 1561 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_real_notify_discovery_started (MediaMonitor* self)
-{
-}
-
-
-void
-media_monitor_notify_discovery_started (MediaMonitor* self)
-{
-#line 155 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 155 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MEDIA_MONITOR_GET_CLASS (self)->notify_discovery_started (self);
-#line 1578 "MediaMonitor.c"
-}
-
-
-static MediaMonitorDiscoveredFile
-media_monitor_real_notify_file_discovered (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable)
-{
-#line 160 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_discovered'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 160 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return 0;
-#line 1592 "MediaMonitor.c"
-}
-
-
-MediaMonitorDiscoveredFile
-media_monitor_notify_file_discovered (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable)
-{
-#line 160 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), 0);
-#line 160 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->notify_file_discovered (self, file, info, monitorable);
-#line 1606 "MediaMonitor.c"
-}
-
-
-static GeeCollection*
-media_monitor_real_candidates_for_unknown_file (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_)
-{
-#line 169 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_candidates_for_unknown_file'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 169 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return NULL;
-#line 1620 "MediaMonitor.c"
-}
-
-
-GeeCollection*
-media_monitor_candidates_for_unknown_file (MediaMonitor* self,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_)
-{
-#line 169 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 169 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->candidates_for_unknown_file (self, file, info, _result_);
-#line 1634 "MediaMonitor.c"
-}
-
-
-static GFile**
-media_monitor_real_get_auxilliary_backing_files (MediaMonitor* self,
- Monitorable* monitorable,
- int* result_length1)
-{
- GFile** result = NULL;
- GFile** _tmp0_;
- gint _tmp0__length1;
-#line 172 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = NULL;
-#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0__length1 = 0;
-#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (result_length1) {
-#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- *result_length1 = _tmp0__length1;
-#line 1656 "MediaMonitor.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 1662 "MediaMonitor.c"
-}
-
-
-GFile**
-media_monitor_get_auxilliary_backing_files (MediaMonitor* self,
- Monitorable* monitorable,
- int* result_length1)
-{
-#line 172 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 172 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->get_auxilliary_backing_files (self, monitorable, result_length1);
-#line 1675 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_real_update_backing_file_info (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file,
- GFileInfo* info)
-{
-#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info));
-#line 1691 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_update_backing_file_info (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file,
- GFileInfo* info)
-{
-#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MEDIA_MONITOR_GET_CLASS (self)->update_backing_file_info (self, monitorable, file, info);
-#line 1705 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_real_notify_discovery_completing (MediaMonitor* self)
-{
-}
-
-
-void
-media_monitor_notify_discovery_completing (MediaMonitor* self)
-{
-#line 182 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 182 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MEDIA_MONITOR_GET_CLASS (self)->notify_discovery_completing (self);
-#line 1722 "MediaMonitor.c"
-}
-
-
-static gboolean
-media_monitor_real_is_file_represented (MediaMonitor* self,
- GFile* file)
-{
- gboolean _tmp0_ = FALSE;
-#line 189 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_is_file_represented'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 189 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return _tmp0_;
-#line 1735 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_is_file_represented (MediaMonitor* self,
- GFile* file)
-{
-#line 189 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 189 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->is_file_represented (self, file);
-#line 1747 "MediaMonitor.c"
-}
-
-
-static gboolean
-media_monitor_real_notify_file_created (MediaMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
- gboolean _tmp0_ = FALSE;
-#line 191 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_created'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 191 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return _tmp0_;
-#line 1761 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_notify_file_created (MediaMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 191 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 191 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->notify_file_created (self, file, info);
-#line 1774 "MediaMonitor.c"
-}
-
-
-static gboolean
-media_monitor_real_notify_file_moved (MediaMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info)
-{
- gboolean _tmp0_ = FALSE;
-#line 193 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_moved'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 193 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return _tmp0_;
-#line 1789 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_notify_file_moved (MediaMonitor* self,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info)
-{
-#line 193 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 193 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->notify_file_moved (self, old_file, new_file, new_file_info);
-#line 1803 "MediaMonitor.c"
-}
-
-
-static gboolean
-media_monitor_real_notify_file_altered (MediaMonitor* self,
- GFile* file)
-{
- gboolean _tmp0_ = FALSE;
-#line 195 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_altered'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 195 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return _tmp0_;
-#line 1816 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_notify_file_altered (MediaMonitor* self,
- GFile* file)
-{
-#line 195 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 195 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->notify_file_altered (self, file);
-#line 1828 "MediaMonitor.c"
-}
-
-
-static gboolean
-media_monitor_real_notify_file_attributes_altered (MediaMonitor* self,
- GFile* file)
-{
- gboolean _tmp0_ = FALSE;
-#line 197 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_attributes_altered'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 197 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return _tmp0_;
-#line 1841 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_notify_file_attributes_altered (MediaMonitor* self,
- GFile* file)
-{
-#line 197 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 197 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->notify_file_attributes_altered (self, file);
-#line 1853 "MediaMonitor.c"
-}
-
-
-static gboolean
-media_monitor_real_notify_file_alteration_completed (MediaMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
- gboolean _tmp0_ = FALSE;
-#line 199 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_alteration_completed'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 199 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return _tmp0_;
-#line 1867 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_notify_file_alteration_completed (MediaMonitor* self,
- GFile* file,
- GFileInfo* info)
-{
-#line 199 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 199 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->notify_file_alteration_completed (self, file, info);
-#line 1880 "MediaMonitor.c"
-}
-
-
-static gboolean
-media_monitor_real_notify_file_deleted (MediaMonitor* self,
- GFile* file)
-{
- gboolean _tmp0_ = FALSE;
-#line 201 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_deleted'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 201 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return _tmp0_;
-#line 1893 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_notify_file_deleted (MediaMonitor* self,
- GFile* file)
-{
-#line 201 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 201 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return MEDIA_MONITOR_GET_CLASS (self)->notify_file_deleted (self, file);
-#line 1905 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_mdbg (const gchar* msg)
-{
-#line 203 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (msg != NULL);
-#line 1914 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_has_pending_updates (MediaMonitor* self)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 209 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->pending_updates;
-#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp2_ > 0;
-#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 1937 "MediaMonitor.c"
-}
-
-
-GeeCollection*
-media_monitor_get_monitorables (MediaMonitor* self)
-{
- GeeCollection* result = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
-#line 213 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->pending_updates;
-#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 1960 "MediaMonitor.c"
-}
-
-
-MonitorableUpdates*
-media_monitor_fetch_updates (MediaMonitor* self,
- Monitorable* monitorable)
-{
- MonitorableUpdates* result = NULL;
- MonitorableUpdates* updates = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- MonitorableUpdates* _tmp2_;
- MonitorableUpdates* _tmp3_;
- GeeHashMap* _tmp4_;
- MonitorableUpdates* _tmp5_;
-#line 219 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 219 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 220 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->pending_updates;
-#line 220 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitorable);
-#line 220 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- updates = (MonitorableUpdates*) _tmp1_;
-#line 221 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = updates;
-#line 221 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp2_ != NULL) {
-#line 222 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = updates;
-#line 222 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 1994 "MediaMonitor.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = media_monitor_create_updates (self, monitorable);
-#line 224 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 224 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- updates = _tmp3_;
-#line 225 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp4_ = self->priv->pending_updates;
-#line 225 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp5_ = updates;
-#line 225 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitorable, _tmp5_);
-#line 227 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = updates;
-#line 227 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 2012 "MediaMonitor.c"
-}
-
-
-MonitorableUpdates*
-media_monitor_get_existing_updates (MediaMonitor* self,
- Monitorable* monitorable)
-{
- MonitorableUpdates* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 230 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 230 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 231 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->pending_updates;
-#line 231 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitorable);
-#line 231 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = (MonitorableUpdates*) _tmp1_;
-#line 231 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 2035 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_remove_updates (MediaMonitor* self,
- Monitorable* monitorable)
-{
- GeeHashMap* _tmp0_;
-#line 234 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 234 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 235 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->pending_updates;
-#line 235 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitorable, NULL);
-#line 2052 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_is_online (MediaMonitor* self,
- Monitorable* monitorable)
-{
- gboolean result = FALSE;
- MonitorableUpdates* updates = NULL;
- MonitorableUpdates* _tmp0_;
- gboolean _tmp1_ = FALSE;
- MonitorableUpdates* _tmp2_;
-#line 238 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 238 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), FALSE);
-#line 239 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_get_existing_updates (self, monitorable);
-#line 239 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- updates = _tmp0_;
-#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = updates;
-#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp2_ != NULL) {
-#line 2077 "MediaMonitor.c"
- MonitorableUpdates* _tmp3_;
-#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = updates;
-#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = monitorable_updates_is_set_online (_tmp3_);
-#line 2083 "MediaMonitor.c"
- } else {
-#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = !monitorable_is_offline (monitorable);
-#line 2087 "MediaMonitor.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp1_;
-#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 2095 "MediaMonitor.c"
-}
-
-
-gboolean
-media_monitor_is_offline (MediaMonitor* self,
- Monitorable* monitorable)
-{
- gboolean result = FALSE;
- MonitorableUpdates* updates = NULL;
- MonitorableUpdates* _tmp0_;
- gboolean _tmp1_ = FALSE;
- MonitorableUpdates* _tmp2_;
-#line 244 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 244 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), FALSE);
-#line 245 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_get_existing_updates (self, monitorable);
-#line 245 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- updates = _tmp0_;
-#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = updates;
-#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp2_ != NULL) {
-#line 2120 "MediaMonitor.c"
- MonitorableUpdates* _tmp3_;
-#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = updates;
-#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = monitorable_updates_is_set_offline (_tmp3_);
-#line 2126 "MediaMonitor.c"
- } else {
-#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = monitorable_is_offline (monitorable);
-#line 2130 "MediaMonitor.c"
- }
-#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp1_;
-#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 2138 "MediaMonitor.c"
-}
-
-
-GFile*
-media_monitor_get_master_file (MediaMonitor* self,
- Monitorable* monitorable)
-{
- GFile* result = NULL;
- MonitorableUpdates* updates = NULL;
- MonitorableUpdates* _tmp0_;
- GFile* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- MonitorableUpdates* _tmp3_;
-#line 250 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL);
-#line 250 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 251 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_get_existing_updates (self, monitorable);
-#line 251 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- updates = _tmp0_;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = updates;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp3_ != NULL) {
-#line 2164 "MediaMonitor.c"
- MonitorableUpdates* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp4_ = updates;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp5_ = monitorable_updates_get_master_file (_tmp4_);
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = _tmp6_ != NULL;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_tmp6_);
-#line 2178 "MediaMonitor.c"
- } else {
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = FALSE;
-#line 2182 "MediaMonitor.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp2_) {
-#line 2186 "MediaMonitor.c"
- MonitorableUpdates* _tmp7_;
- GFile* _tmp8_;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp7_ = updates;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp8_ = monitorable_updates_get_master_file (_tmp7_);
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp8_;
-#line 2197 "MediaMonitor.c"
- } else {
- GFile* _tmp9_;
-#line 254 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_MEDIA_SOURCE, MediaSource));
-#line 254 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 254 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp9_;
-#line 2206 "MediaMonitor.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = _tmp1_;
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 2214 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_update_master_file (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file)
-{
- MonitorableUpdates* _tmp0_;
- MonitorableUpdates* _tmp1_;
-#line 257 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 257 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 257 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 258 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_fetch_updates (self, monitorable);
-#line 258 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 258 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_file (_tmp1_, file);
-#line 258 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 2239 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_update_master_file_info_altered (MediaMonitor* self,
- Monitorable* monitorable)
-{
- MonitorableUpdates* _tmp0_;
- MonitorableUpdates* _tmp1_;
-#line 261 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 261 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 262 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_fetch_updates (self, monitorable);
-#line 262 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 262 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_file_info_altered (_tmp1_, TRUE);
-#line 262 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 2261 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_update_master_file_in_alteration (MediaMonitor* self,
- Monitorable* monitorable,
- gboolean in_alteration)
-{
- MonitorableUpdates* _tmp0_;
- MonitorableUpdates* _tmp1_;
-#line 265 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 265 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 266 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_fetch_updates (self, monitorable);
-#line 266 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 266 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_in_alteration (_tmp1_, in_alteration);
-#line 266 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 2284 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_update_master_file_alterations_completed (MediaMonitor* self,
- Monitorable* monitorable,
- GFileInfo* info)
-{
- MonitorableUpdates* _tmp0_;
- MonitorableUpdates* _tmp1_;
-#line 269 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 269 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 269 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 270 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_fetch_updates (self, monitorable);
-#line 270 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 270 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_alterations_complete (_tmp1_, info);
-#line 270 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 2309 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_update_online (MediaMonitor* self,
- Monitorable* monitorable)
-{
- MonitorableUpdates* _tmp0_;
- MonitorableUpdates* _tmp1_;
-#line 273 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 273 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 274 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_fetch_updates (self, monitorable);
-#line 274 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 274 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_mark_online (_tmp1_);
-#line 274 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 2331 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_update_offline (MediaMonitor* self,
- Monitorable* monitorable)
-{
- MonitorableUpdates* _tmp0_;
- MonitorableUpdates* _tmp1_;
-#line 277 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 277 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 278 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = media_monitor_fetch_updates (self, monitorable);
-#line 278 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 278 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_mark_offline (_tmp1_);
-#line 278 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 2353 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_real_process_updates (MediaMonitor* self,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error)
-{
- GeeMap* set_master_file = NULL;
- GeeMap* set_master_file_info = NULL;
- GeeArrayList* to_offline = NULL;
- GeeArrayList* to_online = NULL;
- GeeMap* _tmp48_;
- GeeMap* _tmp57_;
- gboolean _tmp66_ = FALSE;
- GeeArrayList* _tmp67_;
- GError * _inner_error_ = NULL;
-#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (GEE_IS_COLLECTION (all_updates));
-#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
-#line 287 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- set_master_file = NULL;
-#line 288 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- set_master_file_info = NULL;
-#line 289 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- to_offline = NULL;
-#line 290 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- to_online = NULL;
-#line 2385 "MediaMonitor.c"
- {
- GeeIterator* _updates_it = NULL;
- GeeIterator* _tmp0_;
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (all_updates, GEE_TYPE_ITERABLE, GeeIterable));
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _updates_it = _tmp0_;
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- while (TRUE) {
-#line 2395 "MediaMonitor.c"
- GeeIterator* _tmp1_;
- MonitorableUpdates* updates = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- MonitorableUpdates* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
- gboolean _tmp7_;
- MonitorableUpdates* _tmp18_;
- GFileInfo* _tmp19_;
- GFileInfo* _tmp20_;
- gboolean _tmp21_;
- MonitorableUpdates* _tmp32_;
- MonitorableUpdates* _tmp40_;
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = _updates_it;
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- break;
-#line 2416 "MediaMonitor.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = _updates_it;
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- updates = (MonitorableUpdates*) _tmp3_;
-#line 293 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if ((*op_count) >= MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE) {
-#line 294 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 294 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- break;
-#line 2430 "MediaMonitor.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp4_ = updates;
-#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp5_ = monitorable_updates_get_master_file (_tmp4_);
-#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp7_ = _tmp6_ != NULL;
-#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_tmp6_);
-#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp7_) {
-#line 2444 "MediaMonitor.c"
- GeeMap* _tmp8_;
- GeeMap* _tmp10_;
- MonitorableUpdates* _tmp11_;
- Monitorable* _tmp12_;
- MonitorableUpdates* _tmp13_;
- GFile* _tmp14_;
- GFile* _tmp15_;
- MonitorableUpdates* _tmp16_;
- gint _tmp17_;
-#line 297 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp8_ = set_master_file;
-#line 297 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp8_ == NULL) {
-#line 2458 "MediaMonitor.c"
- GeeHashMap* _tmp9_;
-#line 298 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp9_ = gee_hash_map_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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"
- set_master_file = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_MAP, GeeMap);
-#line 2466 "MediaMonitor.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp10_ = set_master_file;
-#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp11_ = updates;
-#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp12_ = _tmp11_->monitorable;
-#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp13_ = updates;
-#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp14_ = monitorable_updates_get_master_file (_tmp13_);
-#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp15_ = _tmp14_;
-#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- gee_map_set (_tmp10_, _tmp12_, _tmp15_);
-#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_tmp15_);
-#line 301 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp16_ = updates;
-#line 301 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_file (_tmp16_, NULL);
-#line 302 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp17_ = *op_count;
-#line 302 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- *op_count = _tmp17_ + 1;
-#line 2492 "MediaMonitor.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp18_ = updates;
-#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp19_ = monitorable_updates_get_master_file_info (_tmp18_);
-#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp20_ = _tmp19_;
-#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp21_ = _tmp20_ != NULL;
-#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_tmp20_);
-#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp21_) {
-#line 2506 "MediaMonitor.c"
- GeeMap* _tmp22_;
- GeeMap* _tmp24_;
- MonitorableUpdates* _tmp25_;
- Monitorable* _tmp26_;
- MonitorableUpdates* _tmp27_;
- GFileInfo* _tmp28_;
- GFileInfo* _tmp29_;
- MonitorableUpdates* _tmp30_;
- gint _tmp31_;
-#line 306 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp22_ = set_master_file_info;
-#line 306 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp22_ == NULL) {
-#line 2520 "MediaMonitor.c"
- GeeHashMap* _tmp23_;
-#line 307 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp23_ = gee_hash_map_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 307 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file_info);
-#line 307 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- set_master_file_info = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_MAP, GeeMap);
-#line 2528 "MediaMonitor.c"
- }
-#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp24_ = set_master_file_info;
-#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp25_ = updates;
-#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp26_ = _tmp25_->monitorable;
-#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp27_ = updates;
-#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp28_ = monitorable_updates_get_master_file_info (_tmp27_);
-#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp29_ = _tmp28_;
-#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- gee_map_set (_tmp24_, _tmp26_, _tmp29_);
-#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_tmp29_);
-#line 310 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp30_ = updates;
-#line 310 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_set_master_file_info (_tmp30_, NULL);
-#line 311 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp31_ = *op_count;
-#line 311 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- *op_count = _tmp31_ + 1;
-#line 2554 "MediaMonitor.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp32_ = updates;
-#line 314 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (monitorable_updates_is_set_offline (_tmp32_)) {
-#line 2560 "MediaMonitor.c"
- GeeArrayList* _tmp33_;
- GeeArrayList* _tmp35_;
- MonitorableUpdates* _tmp36_;
- Monitorable* _tmp37_;
- MonitorableUpdates* _tmp38_;
- gint _tmp39_;
-#line 315 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp33_ = to_offline;
-#line 315 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp33_ == NULL) {
-#line 2571 "MediaMonitor.c"
- GeeArrayList* _tmp34_;
-#line 316 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp34_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 316 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_offline);
-#line 316 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- to_offline = _tmp34_;
-#line 2579 "MediaMonitor.c"
- }
-#line 318 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp35_ = to_offline;
-#line 318 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp36_ = updates;
-#line 318 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp37_ = _tmp36_->monitorable;
-#line 318 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp37_);
-#line 319 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp38_ = updates;
-#line 319 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_reset_online_offline (_tmp38_);
-#line 320 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp39_ = *op_count;
-#line 320 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- *op_count = _tmp39_ + 1;
-#line 2597 "MediaMonitor.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp40_ = updates;
-#line 323 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (monitorable_updates_is_set_online (_tmp40_)) {
-#line 2603 "MediaMonitor.c"
- GeeArrayList* _tmp41_;
- GeeArrayList* _tmp43_;
- MonitorableUpdates* _tmp44_;
- Monitorable* _tmp45_;
- MonitorableUpdates* _tmp46_;
- gint _tmp47_;
-#line 324 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp41_ = to_online;
-#line 324 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp41_ == NULL) {
-#line 2614 "MediaMonitor.c"
- GeeArrayList* _tmp42_;
-#line 325 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp42_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 325 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_online);
-#line 325 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- to_online = _tmp42_;
-#line 2622 "MediaMonitor.c"
- }
-#line 327 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp43_ = to_online;
-#line 327 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp44_ = updates;
-#line 327 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp45_ = _tmp44_->monitorable;
-#line 327 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp45_);
-#line 328 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp46_ = updates;
-#line 328 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_updates_reset_online_offline (_tmp46_);
-#line 329 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp47_ = *op_count;
-#line 329 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- *op_count = _tmp47_ + 1;
-#line 2640 "MediaMonitor.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 2644 "MediaMonitor.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_updates_it);
-#line 2648 "MediaMonitor.c"
- }
-#line 333 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp48_ = set_master_file;
-#line 333 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp48_ != NULL) {
-#line 2654 "MediaMonitor.c"
- GeeMap* _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_;
- GeeMap* _tmp56_;
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp49_ = set_master_file;
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp50_ = gee_map_get_size (_tmp49_);
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp51_ = _tmp50_;
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp52_ = media_monitor_to_string (self);
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp53_ = _tmp52_;
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp54_ = g_strdup_printf ("Changing master file of %d objects in %s", _tmp51_, _tmp53_);
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp55_ = _tmp54_;
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_mdbg (_tmp55_);
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp55_);
-#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp53_);
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp56_ = set_master_file;
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_set_many_master_file (_tmp56_, controller, &_inner_error_);
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_propagate_error (error, _inner_error_);
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_online);
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_offline);
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file_info);
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file);
-#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return;
-#line 2701 "MediaMonitor.c"
- }
- }
-#line 339 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp57_ = set_master_file_info;
-#line 339 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp57_ != NULL) {
-#line 2708 "MediaMonitor.c"
- GeeMap* _tmp58_;
- gint _tmp59_;
- gint _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- GeeMap* _tmp65_;
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp58_ = set_master_file_info;
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp59_ = gee_map_get_size (_tmp58_);
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp60_ = _tmp59_;
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp61_ = media_monitor_to_string (self);
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp62_ = _tmp61_;
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp63_ = g_strdup_printf ("Updating %d master files timestamps in %s", _tmp60_, _tmp62_);
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp64_ = _tmp63_;
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_mdbg (_tmp64_);
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp64_);
-#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp62_);
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp65_ = set_master_file_info;
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_set_many_master_timestamp (_tmp65_, controller, &_inner_error_);
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_propagate_error (error, _inner_error_);
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_online);
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_offline);
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file_info);
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file);
-#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return;
-#line 2755 "MediaMonitor.c"
- }
- }
-#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp67_ = to_offline;
-#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp67_ != NULL) {
-#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp66_ = TRUE;
-#line 2764 "MediaMonitor.c"
- } else {
- GeeArrayList* _tmp68_;
-#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp68_ = to_online;
-#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp66_ = _tmp68_ != NULL;
-#line 2771 "MediaMonitor.c"
- }
-#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp66_) {
-#line 2775 "MediaMonitor.c"
- gint _tmp69_ = 0;
- GeeArrayList* _tmp70_;
- gint _tmp74_ = 0;
- GeeArrayList* _tmp75_;
- gchar* _tmp79_;
- gchar* _tmp80_;
- gchar* _tmp81_;
- gchar* _tmp82_;
- GeeArrayList* _tmp83_;
- GeeArrayList* _tmp84_;
-#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp70_ = to_online;
-#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp70_ != NULL) {
-#line 2790 "MediaMonitor.c"
- GeeArrayList* _tmp71_;
- gint _tmp72_;
- gint _tmp73_;
-#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp71_ = to_online;
-#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp72_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp73_ = _tmp72_;
-#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp69_ = _tmp73_;
-#line 2802 "MediaMonitor.c"
- } else {
-#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp69_ = 0;
-#line 2806 "MediaMonitor.c"
- }
-#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp75_ = to_offline;
-#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp75_ != NULL) {
-#line 2812 "MediaMonitor.c"
- GeeArrayList* _tmp76_;
- gint _tmp77_;
- gint _tmp78_;
-#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp76_ = to_offline;
-#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp77_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp78_ = _tmp77_;
-#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp74_ = _tmp78_;
-#line 2824 "MediaMonitor.c"
- } else {
-#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp74_ = 0;
-#line 2828 "MediaMonitor.c"
- }
-#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp79_ = media_monitor_to_string (self);
-#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp80_ = _tmp79_;
-#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp81_ = g_strdup_printf ("Marking %d online, %d offline in %s", _tmp69_, _tmp74_, _tmp80_);
-#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp82_ = _tmp81_;
-#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_mdbg (_tmp82_);
-#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp82_);
-#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp80_);
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp83_ = to_online;
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp84_ = to_offline;
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable_mark_many_online_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, GEE_TYPE_COLLECTION, GeeCollection), controller, &_inner_error_);
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_propagate_error (error, _inner_error_);
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_online);
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_offline);
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file_info);
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file);
-#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return;
-#line 2864 "MediaMonitor.c"
- }
- }
-#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_online);
-#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_offline);
-#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file_info);
-#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (set_master_file);
-#line 2875 "MediaMonitor.c"
-}
-
-
-void
-media_monitor_process_updates (MediaMonitor* self,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error)
-{
-#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_if_fail (IS_MEDIA_MONITOR (self));
-#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- MEDIA_MONITOR_GET_CLASS (self)->process_updates (self, all_updates, controller, op_count, error);
-#line 2890 "MediaMonitor.c"
-}
-
-
-static gpointer
-_transaction_controller_ref0 (gpointer self)
-{
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return self ? transaction_controller_ref (self) : NULL;
-#line 2899 "MediaMonitor.c"
-}
-
-
-static gboolean
-media_monitor_on_flush_pending_updates (MediaMonitor* self)
-{
- gboolean result = FALSE;
- GCancellable* _tmp0_;
- GeeHashMap* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- GTimer* timer = NULL;
- GTimer* _tmp4_;
- GeeArrayList* to_process = NULL;
- GeeArrayList* to_remove = NULL;
- gint op_count = 0;
- GeeArrayList* _tmp25_;
- GeeArrayList* _tmp43_;
- gdouble elapsed = 0.0;
- GTimer* _tmp56_;
- gdouble _tmp57_;
- gboolean _tmp58_ = FALSE;
- gdouble _tmp59_;
- GError * _inner_error_ = NULL;
-#line 356 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE);
-#line 357 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->cancellable;
-#line 357 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (g_cancellable_is_cancelled (_tmp0_)) {
-#line 358 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = FALSE;
-#line 358 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 2934 "MediaMonitor.c"
- }
-#line 360 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp1_ = self->priv->pending_updates;
-#line 360 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 360 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 360 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp3_ == 0) {
-#line 361 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = TRUE;
-#line 361 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 2948 "MediaMonitor.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp4_ = g_timer_new ();
-#line 363 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- timer = _tmp4_;
-#line 368 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- to_process = NULL;
-#line 369 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- to_remove = NULL;
-#line 2958 "MediaMonitor.c"
- {
- GeeIterator* _updates_it = NULL;
- GeeHashMap* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
- GeeIterator* _tmp9_;
- GeeIterator* _tmp10_;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp5_ = self->priv->pending_updates;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp6_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp7_ = _tmp6_;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp8_ = _tmp7_;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp10_ = _tmp9_;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_tmp8_);
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _updates_it = _tmp10_;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- while (TRUE) {
-#line 2985 "MediaMonitor.c"
- GeeIterator* _tmp11_;
- MonitorableUpdates* updates = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- MonitorableUpdates* _tmp14_;
- MonitorableUpdates* _tmp15_;
- GeeArrayList* _tmp21_;
- GeeArrayList* _tmp23_;
- MonitorableUpdates* _tmp24_;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp11_ = _updates_it;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- break;
-#line 3001 "MediaMonitor.c"
- }
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp12_ = _updates_it;
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- updates = (MonitorableUpdates*) _tmp13_;
-#line 371 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp14_ = updates;
-#line 371 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (monitorable_updates_is_in_alteration (_tmp14_)) {
-#line 372 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 372 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- continue;
-#line 3017 "MediaMonitor.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp15_ = updates;
-#line 374 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (monitorable_updates_is_all_updated (_tmp15_)) {
-#line 3023 "MediaMonitor.c"
- GeeArrayList* _tmp16_;
- GeeArrayList* _tmp18_;
- MonitorableUpdates* _tmp19_;
- Monitorable* _tmp20_;
-#line 375 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp16_ = to_remove;
-#line 375 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp16_ == NULL) {
-#line 3032 "MediaMonitor.c"
- GeeArrayList* _tmp17_;
-#line 376 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp17_ = gee_array_list_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 376 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_remove);
-#line 376 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- to_remove = _tmp17_;
-#line 3040 "MediaMonitor.c"
- }
-#line 378 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp18_ = to_remove;
-#line 378 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp19_ = updates;
-#line 378 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp20_ = _tmp19_->monitorable;
-#line 378 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp20_);
-#line 379 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 379 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- continue;
-#line 3054 "MediaMonitor.c"
- }
-#line 382 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp21_ = to_process;
-#line 382 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp21_ == NULL) {
-#line 3060 "MediaMonitor.c"
- GeeArrayList* _tmp22_;
-#line 383 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp22_ = gee_array_list_new (TYPE_MONITORABLE_UPDATES, (GBoxedCopyFunc) monitorable_updates_ref, (GDestroyNotify) monitorable_updates_unref, NULL, NULL, NULL);
-#line 383 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_process);
-#line 383 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- to_process = _tmp22_;
-#line 3068 "MediaMonitor.c"
- }
-#line 385 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp23_ = to_process;
-#line 385 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp24_ = updates;
-#line 385 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_);
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 3078 "MediaMonitor.c"
- }
-#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_updates_it);
-#line 3082 "MediaMonitor.c"
- }
-#line 388 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- op_count = 0;
-#line 389 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp25_ = to_process;
-#line 389 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp25_ != NULL) {
-#line 3090 "MediaMonitor.c"
- TransactionController* controller = NULL;
- MediaSourceCollection* _tmp26_;
- MediaSourceCollection* _tmp27_;
- TransactionController* _tmp28_;
- TransactionController* _tmp29_;
- TransactionController* _tmp30_;
- TransactionController* _tmp31_;
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp26_ = media_monitor_get_media_source_collection (self);
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp27_ = _tmp26_;
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp28_ = media_source_collection_get_transaction_controller (_tmp27_);
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp29_ = _tmp28_;
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp30_ = _transaction_controller_ref0 (_tmp29_);
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp31_ = _tmp30_;
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _data_collection_unref0 (_tmp27_);
-#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- controller = _tmp31_;
-#line 3114 "MediaMonitor.c"
- {
- TransactionController* _tmp32_;
- GeeArrayList* _tmp33_;
- TransactionController* _tmp34_;
- TransactionController* _tmp35_;
-#line 393 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp32_ = controller;
-#line 393 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- transaction_controller_begin (_tmp32_);
-#line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp33_ = to_process;
-#line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp34_ = controller;
-#line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_process_updates (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), _tmp34_, &op_count, &_inner_error_);
-#line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3132 "MediaMonitor.c"
- goto __catch594_g_error;
- }
-#line 395 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp35_ = controller;
-#line 395 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- transaction_controller_commit (_tmp35_);
-#line 3139 "MediaMonitor.c"
- }
- goto __finally594;
- __catch594_g_error:
- {
- GError* err = NULL;
- GError* _tmp36_;
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- err = _inner_error_;
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _inner_error_ = NULL;
-#line 397 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp36_ = err;
-#line 397 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp36_->domain == DATABASE_ERROR) {
-#line 3154 "MediaMonitor.c"
- GError* _tmp37_;
-#line 398 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp37_ = err;
-#line 398 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- app_window_database_error ((GError*) _tmp37_);
-#line 3160 "MediaMonitor.c"
- } else {
- GError* _tmp38_;
- const gchar* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
-#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp38_ = err;
-#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp39_ = _tmp38_->message;
-#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp40_ = g_strdup_printf (_ ("Unable to process monitoring updates: %s"), _tmp39_);
-#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp41_ = _tmp40_;
-#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- app_window_panic (_tmp41_);
-#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp41_);
-#line 3178 "MediaMonitor.c"
- }
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_error_free0 (err);
-#line 3182 "MediaMonitor.c"
- }
- __finally594:
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3187 "MediaMonitor.c"
- gboolean _tmp42_ = FALSE;
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _transaction_controller_unref0 (controller);
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_remove);
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_process);
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_timer_destroy0 (timer);
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.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 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return _tmp42_;
-#line 3203 "MediaMonitor.c"
- }
-#line 389 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _transaction_controller_unref0 (controller);
-#line 3207 "MediaMonitor.c"
- }
-#line 404 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp43_ = to_remove;
-#line 404 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp43_ != NULL) {
-#line 3213 "MediaMonitor.c"
- {
- GeeArrayList* _monitorable_list = NULL;
- GeeArrayList* _tmp44_;
- GeeArrayList* _tmp45_;
- gint _monitorable_size = 0;
- GeeArrayList* _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
- gint _monitorable_index = 0;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp44_ = to_remove;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp45_ = _g_object_ref0 (_tmp44_);
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_list = _tmp45_;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp46_ = _monitorable_list;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp47_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp48_ = _tmp47_;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_size = _tmp48_;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_index = -1;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- while (TRUE) {
-#line 3241 "MediaMonitor.c"
- gint _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
- Monitorable* monitorable = NULL;
- GeeArrayList* _tmp52_;
- gint _tmp53_;
- gpointer _tmp54_;
- Monitorable* _tmp55_;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp49_ = _monitorable_index;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _monitorable_index = _tmp49_ + 1;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp50_ = _monitorable_index;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp51_ = _monitorable_size;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (!(_tmp50_ < _tmp51_)) {
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- break;
-#line 3262 "MediaMonitor.c"
- }
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp52_ = _monitorable_list;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp53_ = _monitorable_index;
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp54_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp53_);
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- monitorable = (Monitorable*) _tmp54_;
-#line 406 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp55_ = monitorable;
-#line 406 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_remove_updates (self, _tmp55_);
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 3278 "MediaMonitor.c"
- }
-#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (_monitorable_list);
-#line 3282 "MediaMonitor.c"
- }
- }
-#line 409 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp56_ = timer;
-#line 409 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp57_ = g_timer_elapsed (_tmp56_, NULL);
-#line 409 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- elapsed = _tmp57_;
-#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp59_ = elapsed;
-#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp59_ > 0.01) {
-#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp58_ = TRUE;
-#line 3297 "MediaMonitor.c"
- } else {
- gint _tmp60_;
-#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp60_ = op_count;
-#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp58_ = _tmp60_ > 0;
-#line 3304 "MediaMonitor.c"
- }
-#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- if (_tmp58_) {
-#line 3308 "MediaMonitor.c"
- gchar* _tmp61_;
- gchar* _tmp62_;
- gdouble _tmp63_;
- gint _tmp64_;
- gchar* _tmp65_;
- gchar* _tmp66_;
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp61_ = media_monitor_to_string (self);
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp62_ = _tmp61_;
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp63_ = elapsed;
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp64_ = op_count;
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp65_ = g_strdup_printf ("Total pending queue time for %s: %lf (%d ops)", _tmp62_, _tmp63_, _tmp64_);
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp66_ = _tmp65_;
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_mdbg (_tmp66_);
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp66_);
-#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_free0 (_tmp62_);
-#line 3333 "MediaMonitor.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- result = TRUE;
-#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_remove);
-#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (to_process);
-#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_timer_destroy0 (timer);
-#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- return result;
-#line 3345 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_class_init (MediaMonitorClass * klass)
-{
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- media_monitor_parent_class = g_type_class_peek_parent (klass);
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_type_class_add_private (klass, sizeof (MediaMonitorPrivate));
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->get_media_source_collection = (MediaSourceCollection* (*) (MediaMonitor *)) media_monitor_real_get_media_source_collection;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->close = (void (*) (MediaMonitor *)) media_monitor_real_close;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->to_string = (gchar* (*) (MediaMonitor *)) media_monitor_real_to_string;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->create_updates = (MonitorableUpdates* (*) (MediaMonitor *, Monitorable*)) media_monitor_real_create_updates;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->on_media_source_destroyed = (void (*) (MediaMonitor *, DataSource*)) media_monitor_real_on_media_source_destroyed;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_discovery_started = (void (*) (MediaMonitor *)) media_monitor_real_notify_discovery_started;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_discovered = (MediaMonitorDiscoveredFile (*) (MediaMonitor *, GFile*, GFileInfo*, Monitorable* *)) media_monitor_real_notify_file_discovered;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->candidates_for_unknown_file = (GeeCollection* (*) (MediaMonitor *, GFile*, GFileInfo*, MediaMonitorDiscoveredFile*)) media_monitor_real_candidates_for_unknown_file;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->get_auxilliary_backing_files = (GFile** (*) (MediaMonitor *, Monitorable*, int*)) media_monitor_real_get_auxilliary_backing_files;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->update_backing_file_info = (void (*) (MediaMonitor *, Monitorable*, GFile*, GFileInfo*)) media_monitor_real_update_backing_file_info;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_discovery_completing = (void (*) (MediaMonitor *)) media_monitor_real_notify_discovery_completing;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->is_file_represented = (gboolean (*) (MediaMonitor *, GFile*)) media_monitor_real_is_file_represented;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_created = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) media_monitor_real_notify_file_created;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_moved = (gboolean (*) (MediaMonitor *, GFile*, GFile*, GFileInfo*)) media_monitor_real_notify_file_moved;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_altered = (gboolean (*) (MediaMonitor *, GFile*)) media_monitor_real_notify_file_altered;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_attributes_altered = (gboolean (*) (MediaMonitor *, GFile*)) media_monitor_real_notify_file_attributes_altered;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_alteration_completed = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) media_monitor_real_notify_file_alteration_completed;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_deleted = (gboolean (*) (MediaMonitor *, GFile*)) media_monitor_real_notify_file_deleted;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- ((MediaMonitorClass *) klass)->process_updates = (void (*) (MediaMonitor *, GeeCollection*, TransactionController*, gint*, GError**)) media_monitor_real_process_updates;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- G_OBJECT_CLASS (klass)->finalize = media_monitor_finalize;
-#line 3396 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_instance_init (MediaMonitor * self)
-{
- GeeHashMap* _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv = MEDIA_MONITOR_GET_PRIVATE (self);
-#line 114 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = gee_hash_map_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_MONITORABLE_UPDATES, (GBoxedCopyFunc) monitorable_updates_ref, (GDestroyNotify) monitorable_updates_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 114 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->pending_updates = _tmp0_;
-#line 116 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self->priv->pending_updates_timer_id = (guint) 0;
-#line 3412 "MediaMonitor.c"
-}
-
-
-static void
-media_monitor_finalize (GObject * obj)
-{
- MediaMonitor * self;
- MediaSourceCollection* _tmp0_;
- guint _tmp1_;
- MediaSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_MONITOR, MediaMonitor);
-#line 130 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp0_ = self->priv->sources;
-#line 130 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 130 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _media_monitor_on_media_source_destroyed_source_collection_item_destroyed, self);
-#line 131 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _tmp2_ = self->priv->sources;
-#line 131 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_signal_parse_name ("unlinked-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 131 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _media_monitor_on_media_source_destroyed_source_collection_unlinked_destroyed, self);
-#line 112 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 113 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 114 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- _g_object_unref0 (self->priv->pending_updates);
-#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala"
- G_OBJECT_CLASS (media_monitor_parent_class)->finalize (obj);
-#line 3446 "MediaMonitor.c"
-}
-
-
-GType
-media_monitor_get_type (void)
-{
- static volatile gsize media_monitor_type_id__volatile = 0;
- if (g_once_init_enter (&media_monitor_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaMonitor), 0, (GInstanceInitFunc) media_monitor_instance_init, NULL };
- GType media_monitor_type_id;
- media_monitor_type_id = g_type_register_static (G_TYPE_OBJECT, "MediaMonitor", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&media_monitor_type_id__volatile, media_monitor_type_id);
- }
- return media_monitor_type_id__volatile;
-}
-
-
-
diff --git a/src/MediaPage.c b/src/MediaPage.c
deleted file mode 100644
index ba4e472..0000000
--- a/src/MediaPage.c
+++ /dev/null
@@ -1,8615 +0,0 @@
-/* MediaPage.c generated by valac 0.40.4, the Vala compiler
- * generated from MediaPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <cairo.h>
-#include <gdk/gdk.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <pango/pango.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#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))
-#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
-#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
-#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
-
-typedef struct _MediaSourceItem MediaSourceItem;
-typedef struct _MediaSourceItemClass MediaSourceItemClass;
-typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate;
-enum {
- MEDIA_SOURCE_ITEM_0_PROPERTY,
- MEDIA_SOURCE_ITEM_NUM_PROPERTIES
-};
-static GParamSpec* media_source_item_properties[MEDIA_SOURCE_ITEM_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ())
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY (media_page_zoom_slider_assembly_get_type ())
-#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly))
-#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass))
-#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY))
-#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY))
-#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass))
-
-typedef struct _MediaPageZoomSliderAssembly MediaPageZoomSliderAssembly;
-typedef struct _MediaPageZoomSliderAssemblyClass MediaPageZoomSliderAssemblyClass;
-
-#define TYPE_DRAG_AND_DROP_HANDLER (drag_and_drop_handler_get_type ())
-#define DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler))
-#define DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass))
-#define IS_DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DRAG_AND_DROP_HANDLER))
-#define IS_DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DRAG_AND_DROP_HANDLER))
-#define DRAG_AND_DROP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass))
-
-typedef struct _DragAndDropHandler DragAndDropHandler;
-typedef struct _DragAndDropHandlerClass DragAndDropHandlerClass;
-
-#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ())
-#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker))
-#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER))
-#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER))
-#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-
-typedef struct _MediaViewTracker MediaViewTracker;
-typedef struct _MediaViewTrackerClass MediaViewTrackerClass;
-enum {
- MEDIA_PAGE_0_PROPERTY,
- MEDIA_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* media_page_properties[MEDIA_PAGE_NUM_PROPERTIES];
-
-#define MEDIA_PAGE_TYPE_SORT_BY (media_page_sort_by_get_type ())
-#define _drag_and_drop_handler_unref0(var) ((var == NULL) ? NULL : (var = (drag_and_drop_handler_unref (var), NULL)))
-#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL)))
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#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 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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#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_THUMBNAIL (thumbnail_get_type ())
-#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail))
-#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass))
-#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL))
-#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL))
-#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass))
-
-typedef struct _Thumbnail Thumbnail;
-typedef struct _ThumbnailClass ThumbnailClass;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ())
-#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-
-typedef struct _TextEntryDialogMediator TextEntryDialogMediator;
-typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass;
-
-#define TYPE_TAGS_DIALOG (tags_dialog_get_type ())
-#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog))
-#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass))
-#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG))
-#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG))
-#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass))
-
-typedef struct _TagsDialog TagsDialog;
-typedef struct _TagsDialogClass TagsDialogClass;
-
-#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ())
-#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog))
-#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
-#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG))
-#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG))
-#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
-
-typedef struct _AddTagsDialog AddTagsDialog;
-typedef struct _AddTagsDialogClass AddTagsDialogClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ())
-#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand))
-#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
-#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND))
-#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND))
-#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
-
-typedef struct _AddTagsCommand AddTagsCommand;
-typedef struct _AddTagsCommandClass AddTagsCommandClass;
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL)))
-
-#define TYPE_MODIFY_TAGS_DIALOG (modify_tags_dialog_get_type ())
-#define MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog))
-#define MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass))
-#define IS_MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_DIALOG))
-#define IS_MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_DIALOG))
-#define MODIFY_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass))
-
-typedef struct _ModifyTagsDialog ModifyTagsDialog;
-typedef struct _ModifyTagsDialogClass ModifyTagsDialogClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ())
-#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand))
-#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-
-typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
-typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
-
-#define TYPE_MODIFY_TAGS_COMMAND (modify_tags_command_get_type ())
-#define MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand))
-#define MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass))
-#define IS_MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_COMMAND))
-#define IS_MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_COMMAND))
-#define MODIFY_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass))
-
-typedef struct _ModifyTagsCommand ModifyTagsCommand;
-typedef struct _ModifyTagsCommandClass ModifyTagsCommandClass;
-
-#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ())
-#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand))
-#define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass))
-#define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND))
-#define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND))
-#define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass))
-
-typedef struct _MovePhotosCommand MovePhotosCommand;
-typedef struct _MovePhotosCommandClass MovePhotosCommandClass;
-
-#define TYPE_NEW_EVENT_COMMAND (new_event_command_get_type ())
-#define NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommand))
-#define NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass))
-#define IS_NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_EVENT_COMMAND))
-#define IS_NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_EVENT_COMMAND))
-#define NEW_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass))
-
-typedef struct _NewEventCommand NewEventCommand;
-typedef struct _NewEventCommandClass NewEventCommandClass;
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-
-#define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ())
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand))
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass))
-#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND))
-#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND))
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass))
-
-typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand;
-typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass;
-
-#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ())
-#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand))
-#define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass))
-#define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND))
-#define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND))
-#define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass))
-
-typedef struct _FlagUnflagCommand FlagUnflagCommand;
-typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass;
-
-#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ())
-#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand))
-#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
-#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
-#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
-#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
-
-typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand;
-typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass;
-
-#define TYPE_SET_RATING_COMMAND (set_rating_command_get_type ())
-#define SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommand))
-#define SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_COMMAND, SetRatingCommandClass))
-#define IS_SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_COMMAND))
-#define IS_SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_COMMAND))
-#define SET_RATING_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommandClass))
-
-typedef struct _SetRatingCommand SetRatingCommand;
-typedef struct _SetRatingCommandClass SetRatingCommandClass;
-
-#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_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ())
-#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-
-typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand;
-typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass;
-
-#define TYPE_EDIT_TITLE_DIALOG (edit_title_dialog_get_type ())
-#define EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialog))
-#define EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass))
-#define IS_EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_DIALOG))
-#define IS_EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_DIALOG))
-#define EDIT_TITLE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass))
-
-typedef struct _EditTitleDialog EditTitleDialog;
-typedef struct _EditTitleDialogClass EditTitleDialogClass;
-
-#define TYPE_EDIT_MULTIPLE_TITLES_COMMAND (edit_multiple_titles_command_get_type ())
-#define EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand))
-#define EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass))
-#define IS_EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND))
-#define IS_EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND))
-#define EDIT_MULTIPLE_TITLES_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass))
-
-typedef struct _EditMultipleTitlesCommand EditMultipleTitlesCommand;
-typedef struct _EditMultipleTitlesCommandClass EditMultipleTitlesCommandClass;
-
-#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ())
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-
-typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator;
-typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass;
-
-#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ())
-#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog))
-#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG))
-#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG))
-#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-
-typedef struct _EditCommentDialog EditCommentDialog;
-typedef struct _EditCommentDialogClass EditCommentDialogClass;
-
-#define TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND (edit_multiple_comments_command_get_type ())
-#define EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand))
-#define EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass))
-#define IS_EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND))
-#define IS_EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND))
-#define EDIT_MULTIPLE_COMMENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass))
-
-typedef struct _EditMultipleCommentsCommand EditMultipleCommentsCommand;
-typedef struct _EditMultipleCommentsCommandClass EditMultipleCommentsCommandClass;
-#define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL)))
-
-#define TYPE_SET_RAW_DEVELOPER_COMMAND (set_raw_developer_command_get_type ())
-#define SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand))
-#define SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass))
-#define IS_SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND))
-#define IS_SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND))
-#define SET_RAW_DEVELOPER_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass))
-
-typedef struct _SetRawDeveloperCommand SetRawDeveloperCommand;
-typedef struct _SetRawDeveloperCommandClass SetRawDeveloperCommandClass;
-
-#define TYPE_CHECKERBOARD_LAYOUT (checkerboard_layout_get_type ())
-#define CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout))
-#define CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass))
-#define IS_CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_LAYOUT))
-#define IS_CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_LAYOUT))
-#define CHECKERBOARD_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass))
-
-typedef struct _CheckerboardLayout CheckerboardLayout;
-typedef struct _CheckerboardLayoutClass CheckerboardLayoutClass;
-typedef struct _MediaPageZoomSliderAssemblyPrivate MediaPageZoomSliderAssemblyPrivate;
-enum {
- MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_0_PROPERTY,
- MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_NUM_PROPERTIES
-};
-static GParamSpec* media_page_zoom_slider_assembly_properties[MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_NUM_PROPERTIES];
-enum {
- MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_ZOOM_CHANGED_SIGNAL,
- MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_NUM_SIGNALS
-};
-static guint media_page_zoom_slider_assembly_signals[MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-struct _MediaSourceItem {
- CheckerboardItem parent_instance;
- MediaSourceItemPrivate * priv;
-};
-
-struct _MediaSourceItemClass {
- CheckerboardItemClass parent_class;
-};
-
-struct _MediaSourceItemPrivate {
- gboolean enable_sprockets;
- gchar* natural_collation_key;
-};
-
-typedef enum {
- THUMBNAIL_CACHE_SIZE_LARGEST = 360,
- THUMBNAIL_CACHE_SIZE_BIG = 360,
- THUMBNAIL_CACHE_SIZE_MEDIUM = 128,
- THUMBNAIL_CACHE_SIZE_SMALLEST = 128
-} ThumbnailCacheSize;
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _MediaPagePrivate {
- MediaPageZoomSliderAssembly* connected_slider;
- DragAndDropHandler* dnd_handler;
- MediaViewTracker* tracker;
-};
-
-typedef enum {
- MEDIA_PAGE_SORT_BY_MIN = 1,
- MEDIA_PAGE_SORT_BY_TITLE = 1,
- MEDIA_PAGE_SORT_BY_EXPOSURE_DATE = 2,
- MEDIA_PAGE_SORT_BY_RATING = 3,
- MEDIA_PAGE_SORT_BY_FILENAME = 4,
- MEDIA_PAGE_SORT_BY_MAX = 4
-} MediaPageSortBy;
-
-typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data);
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-struct _MediaPageZoomSliderAssembly {
- GtkToolItem parent_instance;
- MediaPageZoomSliderAssemblyPrivate * priv;
-};
-
-struct _MediaPageZoomSliderAssemblyClass {
- GtkToolItemClass parent_class;
-};
-
-struct _MediaPageZoomSliderAssemblyPrivate {
- GtkScale* slider;
- GtkAdjustment* adjustment;
-};
-
-
-static gpointer media_source_item_parent_class = NULL;
-static GdkPixbuf* media_source_item_basis_sprocket_pixbuf;
-static GdkPixbuf* media_source_item_basis_sprocket_pixbuf = NULL;
-static GdkPixbuf* media_source_item_current_sprocket_pixbuf;
-static GdkPixbuf* media_source_item_current_sprocket_pixbuf = NULL;
-static gpointer media_page_parent_class = NULL;
-static gpointer media_page_zoom_slider_assembly_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType media_source_item_get_type (void) G_GNUC_CONST;
-#define MEDIA_SOURCE_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemPrivate))
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-MediaSourceItem* media_source_item_new (ThumbnailSource* source,
- Dimensions* initial_pixbuf_dim,
- const gchar* title,
- const gchar* comment,
- gboolean marked_up,
- PangoAlignment alignment);
-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);
-CheckerboardItem* checkerboard_item_construct (GType object_type,
- ThumbnailSource* source,
- Dimensions* initial_pixbuf_dim,
- const gchar* title,
- const gchar* comment,
- gboolean marked_up,
- PangoAlignment alignment);
-GdkPixbuf* resources_load_icon (const gchar* name,
- gint scale);
-static void media_source_item_real_paint_image (CheckerboardItem* base,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-void checkerboard_item_set_horizontal_trinket_offset (CheckerboardItem* self,
- gint horizontal_trinket_offset);
-gint dimensions_major_axis (Dimensions *self);
-GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
-void checkerboard_item_paint_image (CheckerboardItem* self,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin);
-void media_source_item_paint_sprockets (MediaSourceItem* self,
- cairo_t* ctx,
- GdkPoint* item_origin,
- Dimensions* item_dimensions);
-void media_source_item_paint_one_sprocket (MediaSourceItem* self,
- cairo_t* ctx,
- GdkPoint* origin);
-void media_source_item_set_enable_sprockets (MediaSourceItem* self,
- gboolean enable_sprockets);
-void media_source_item_set_title (MediaSourceItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-void checkerboard_item_set_title (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self);
-gchar* natural_collate_collate_key (gchar* str);
-gchar* checkerboard_item_get_title (CheckerboardItem* self);
-static void media_source_item_finalize (GObject * obj);
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType media_page_zoom_slider_assembly_get_type (void) G_GNUC_CONST;
-gpointer drag_and_drop_handler_ref (gpointer instance);
-void drag_and_drop_handler_unref (gpointer instance);
-GParamSpec* param_spec_drag_and_drop_handler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_drag_and_drop_handler (GValue* value,
- gpointer v_object);
-void value_take_drag_and_drop_handler (GValue* value,
- gpointer v_object);
-gpointer value_get_drag_and_drop_handler (const GValue* value);
-GType drag_and_drop_handler_get_type (void) G_GNUC_CONST;
-GType media_view_tracker_get_type (void) G_GNUC_CONST;
-#define MEDIA_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_PAGE, MediaPagePrivate))
-GType media_page_sort_by_get_type (void) G_GNUC_CONST;
-#define MEDIA_PAGE_SORT_ORDER_ASCENDING 0
-#define MEDIA_PAGE_SORT_ORDER_DESCENDING 1
-#define MEDIA_PAGE_MANUAL_STEPPING 16
-#define MEDIA_PAGE_SLIDER_STEPPING 4
-void media_page_on_export (MediaPage* self);
-static void _media_page_on_export_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void media_page_on_send_to (MediaPage* self);
-static void _media_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void media_page_on_remove_from_library (MediaPage* self);
-static void _media_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_move_to_trash (MediaPage* self);
-static void _media_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void media_page_on_new_event (MediaPage* self);
-static void _media_page_on_new_event_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void media_page_on_add_tags (MediaPage* self);
-static void _media_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void media_page_on_modify_tags (MediaPage* self);
-static void _media_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_increase_size (MediaPage* self);
-static void _media_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_decrease_size (MediaPage* self);
-static void _media_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void media_page_on_flag_unflag (MediaPage* self);
-static void _media_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_increase_rating (MediaPage* self);
-static void _media_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_decrease_rating (MediaPage* self);
-static void _media_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_rate_rejected (MediaPage* self);
-static void _media_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_rate_unrated (MediaPage* self);
-static void _media_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_rate_one (MediaPage* self);
-static void _media_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_rate_two (MediaPage* self);
-static void _media_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_rate_three (MediaPage* self);
-static void _media_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_rate_four (MediaPage* self);
-static void _media_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_rate_five (MediaPage* self);
-static void _media_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_edit_title (MediaPage* self);
-static void _media_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_edit_comment (MediaPage* self);
-static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_play_video (MediaPage* self);
-static void _media_page_on_play_video_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-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);
-void media_page_on_display_titles (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-static void _media_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-void media_page_on_display_comments (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-static void _media_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-void media_page_on_display_ratings (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-static void _media_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-void media_page_on_display_tags (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-static void _media_page_on_display_tags_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);
-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);
-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;
-ViewCollection* page_get_view (Page* self);
-MediaViewTracker* media_view_tracker_new (ViewCollection* collection);
-MediaViewTracker* media_view_tracker_construct (GType object_type,
- ViewCollection* collection);
-static void media_page_on_media_altered (MediaPage* self,
- GeeMap* altered);
-static void _media_page_on_media_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-void data_collection_freeze_notifications (DataCollection* self);
-void data_collection_set_property (DataCollection* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target);
-#define CHECKERBOARD_ITEM_PROP_SHOW_TITLES "show-titles"
-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_display_photo_titles (ConfigurationFacade* self);
-#define CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS "show-comments"
-gboolean configuration_facade_get_display_photo_comments (ConfigurationFacade* self);
-#define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles"
-#define THUMBNAIL_PROP_SHOW_TAGS CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES
-gboolean configuration_facade_get_display_photo_tags (ConfigurationFacade* self);
-#define THUMBNAIL_PROP_SIZE "thumbnail-size"
-gint media_page_get_thumb_size (MediaPage* self);
-#define THUMBNAIL_PROP_SHOW_RATINGS "show-ratings"
-gboolean configuration_facade_get_display_photo_ratings (ConfigurationFacade* self);
-void data_collection_thaw_notifications (DataCollection* self);
-DragAndDropHandler* drag_and_drop_handler_new (Page* page);
-DragAndDropHandler* drag_and_drop_handler_construct (GType object_type,
- Page* page);
-static gint media_page_compute_zoom_scale_increase (gint current_scale);
-gint thumbnail_get_MIN_SCALE (void);
-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,
- 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);
-GAction* page_get_action (Page* self,
- const gchar* name);
-static GVariant* _variant_new23 (gboolean value);
-static GVariant* _variant_new24 (gboolean value);
-static GVariant* _variant_new25 (gboolean value);
-static GVariant* _variant_new26 (gboolean value);
-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);
-static void media_page_update_rating_sensitivities (MediaPage* self);
-static void media_page_update_development_menu_item_sensitivity (MediaPage* self);
-DataSource* view_collection_get_selected_source_at (ViewCollection* self,
- gint index);
-GType media_source_get_type (void) G_GNUC_CONST;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-static void media_page_update_flag_action (MediaPage* self,
- gint selected_count);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-gint view_collection_get_selected_count (ViewCollection* self);
-static gboolean media_page_can_rate_selected (MediaPage* self,
- Rating rating);
-static gboolean media_page_can_increase_selected_rating (MediaPage* self);
-static gboolean media_page_can_decrease_selected_rating (MediaPage* self);
-GeeList* view_collection_get_selected (ViewCollection* self);
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-GType thumbnail_get_type (void) G_GNUC_CONST;
-MediaSource* thumbnail_get_media_source (Thumbnail* self);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-static CoreViewTracker* media_page_real_get_view_tracker (CheckerboardPage* base);
-void media_page_set_display_ratings (MediaPage* self,
- gboolean display);
-void page_set_action_active (Page* self,
- const gchar* name,
- gboolean active);
-Rating media_source_get_rating (MediaSource* self);
-gboolean rating_can_increase (Rating self);
-gboolean rating_can_decrease (Rating self);
-MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self);
-MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_new (void);
-MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_construct (GType object_type);
-static gboolean media_page_real_on_mousewheel_up (Page* base,
- GdkEventScroll* event);
-void media_page_increase_zoom_level (MediaPage* self);
-gboolean page_on_mousewheel_up (Page* self,
- GdkEventScroll* event);
-static gboolean media_page_real_on_mousewheel_down (Page* base,
- GdkEventScroll* event);
-void media_page_decrease_zoom_level (MediaPage* self);
-gboolean page_on_mousewheel_down (Page* self,
- GdkEventScroll* event);
-void desktop_integration_send_to (GeeCollection* media);
-GeeList* view_collection_get_selected_sources (ViewCollection* self);
-DataView* view_collection_get_selected_at (ViewCollection* self,
- gint index);
-DataSource* data_view_get_source (DataView* self);
-GFile* media_source_get_file (MediaSource* self);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-static gboolean media_page_real_on_app_key_pressed (Page* base,
- GdkEventKey* event);
-void page_activate_action (Page* self,
- const gchar* name);
-gboolean page_on_app_key_pressed (Page* self,
- GdkEventKey* event);
-static void media_page_real_switched_to (Page* base);
-void page_switched_to (Page* self);
-void checkerboard_page_set_display_titles (CheckerboardPage* self,
- gboolean display);
-void checkerboard_page_set_display_comments (CheckerboardPage* self,
- gboolean display);
-static void media_page_set_display_tags (MediaPage* self,
- gboolean display);
-void checkerboard_page_cursor_to_item (CheckerboardPage* self,
- CheckerboardItem* item);
-void media_page_sync_sort (MediaPage* self);
-static void media_page_real_switching_from (Page* base);
-void media_page_disconnect_slider (MediaPage* self);
-void page_switching_from (Page* self);
-void media_page_connect_slider (MediaPage* self,
- MediaPageZoomSliderAssembly* slider);
-void media_page_on_zoom_changed (MediaPage* self);
-static void _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed (MediaPageZoomSliderAssembly* _sender,
- gpointer self);
-static void media_page_load_persistent_thumbnail_scale (MediaPage* self);
-static void media_page_save_persistent_thumbnail_scale (MediaPage* self);
-void configuration_facade_set_photo_thumbnail_scale (ConfigurationFacade* self,
- gint scale);
-gint media_page_zoom_slider_assembly_get_scale (MediaPageZoomSliderAssembly* self);
-gint configuration_facade_get_photo_thumbnail_scale (ConfigurationFacade* self);
-void media_page_zoom_slider_assembly_set_scale (MediaPageZoomSliderAssembly* self,
- gint scale);
-void media_page_set_thumb_size (MediaPage* self,
- gint new_scale);
-static void media_page_real_on_zoom_changed (MediaPage* self);
-static void media_page_real_on_export (MediaPage* self);
-static void media_page_real_on_increase_size (MediaPage* self);
-static void media_page_real_on_decrease_size (MediaPage* self);
-gpointer text_entry_dialog_mediator_ref (gpointer instance);
-void text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_text_entry_dialog_mediator (const GValue* value);
-GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType tags_dialog_get_type (void) G_GNUC_CONST;
-GType add_tags_dialog_get_type (void) G_GNUC_CONST;
-AddTagsDialog* add_tags_dialog_new (void);
-AddTagsDialog* add_tags_dialog_construct (GType object_type);
-gchar** add_tags_dialog_execute (AddTagsDialog* self,
- int* result_length1);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* page_get_command_manager (Page* self);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void);
-gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self,
- gchar** names,
- int names_length1,
- int* result_length1);
-AddTagsCommand* add_tags_command_new (gchar** paths,
- int paths_length1,
- GeeCollection* sources);
-AddTagsCommand* add_tags_command_construct (GType object_type,
- gchar** paths,
- int paths_length1,
- GeeCollection* sources);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType add_tags_command_get_type (void) G_GNUC_CONST;
-GType modify_tags_dialog_get_type (void) G_GNUC_CONST;
-ModifyTagsDialog* modify_tags_dialog_new (MediaSource* source);
-ModifyTagsDialog* modify_tags_dialog_construct (GType object_type,
- MediaSource* source);
-GType tag_get_type (void) G_GNUC_CONST;
-GeeArrayList* modify_tags_dialog_execute (ModifyTagsDialog* self);
-ModifyTagsCommand* modify_tags_command_new (MediaSource* media,
- GeeCollection* new_tag_list);
-ModifyTagsCommand* modify_tags_command_construct (GType object_type,
- MediaSource* media,
- GeeCollection* new_tag_list);
-GType single_data_source_command_get_type (void) G_GNUC_CONST;
-GType modify_tags_command_get_type (void) G_GNUC_CONST;
-NewEventCommand* new_event_command_new (GeeIterable* iter);
-NewEventCommand* new_event_command_construct (GType object_type,
- GeeIterable* iter);
-GType move_photos_command_get_type (void) G_GNUC_CONST;
-GType new_event_command_get_type (void) G_GNUC_CONST;
-GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self,
- GType t);
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources,
- gboolean flag);
-FlagUnflagCommand* flag_unflag_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean flag);
-GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST;
-GType flag_unflag_command_get_type (void) G_GNUC_CONST;
-static void media_page_real_on_increase_rating (MediaPage* self);
-GType multiple_data_source_command_get_type (void) G_GNUC_CONST;
-GType set_rating_command_get_type (void) G_GNUC_CONST;
-SetRatingCommand* set_rating_command_new_inc_dec (GeeIterable* iter,
- gboolean is_incrementing);
-SetRatingCommand* set_rating_command_construct_inc_dec (GType object_type,
- GeeIterable* iter,
- gboolean is_incrementing);
-static void media_page_real_on_decrease_rating (MediaPage* self);
-void media_page_on_set_rating (MediaPage* self,
- Rating rating);
-static void media_page_real_on_set_rating (MediaPage* self,
- Rating rating);
-SetRatingCommand* set_rating_command_new (GeeIterable* iter,
- Rating rating);
-SetRatingCommand* set_rating_command_construct (GType object_type,
- GeeIterable* iter,
- Rating rating);
-static void media_page_real_on_rate_rejected (MediaPage* self);
-static void media_page_real_on_rate_unrated (MediaPage* self);
-static void media_page_real_on_rate_one (MediaPage* self);
-static void media_page_real_on_rate_two (MediaPage* self);
-static void media_page_real_on_rate_three (MediaPage* self);
-static void media_page_real_on_rate_four (MediaPage* self);
-static void media_page_real_on_rate_five (MediaPage* self);
-GType library_photo_get_type (void) G_GNUC_CONST;
-void remove_photos_from_library (GeeCollection* photos);
-static void media_page_real_on_move_to_trash (MediaPage* self);
-DataView* view_collection_get_next (ViewCollection* self,
- DataView* view);
-gboolean data_collection_contains (DataCollection* self,
- DataObject* object);
-void checkerboard_page_set_cursor (CheckerboardPage* self,
- CheckerboardItem* item);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources,
- gboolean to_trash);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean to_trash);
-GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST;
-static void media_page_real_on_edit_title (MediaPage* self);
-GType edit_title_dialog_get_type (void) G_GNUC_CONST;
-gchar* media_source_get_title (MediaSource* self);
-EditTitleDialog* edit_title_dialog_new (const gchar* photo_title);
-EditTitleDialog* edit_title_dialog_construct (GType object_type,
- const gchar* photo_title);
-gchar* edit_title_dialog_execute (EditTitleDialog* self);
-EditMultipleTitlesCommand* edit_multiple_titles_command_new (GeeCollection* media_sources,
- const gchar* new_title);
-EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_type,
- GeeCollection* media_sources,
- const gchar* new_title);
-GType edit_multiple_titles_command_get_type (void) G_GNUC_CONST;
-static void media_page_real_on_edit_comment (MediaPage* self);
-gpointer multi_text_entry_dialog_mediator_ref (gpointer instance);
-void multi_text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value);
-GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType edit_comment_dialog_get_type (void) G_GNUC_CONST;
-gchar* media_source_get_comment (MediaSource* self);
-EditCommentDialog* edit_comment_dialog_new (const gchar* comment,
- gboolean is_event);
-EditCommentDialog* edit_comment_dialog_construct (GType object_type,
- const gchar* comment,
- gboolean is_event);
-gchar* edit_comment_dialog_execute (EditCommentDialog* self);
-EditMultipleCommentsCommand* edit_multiple_comments_command_new (GeeCollection* media_sources,
- const gchar* new_comment);
-EditMultipleCommentsCommand* edit_multiple_comments_command_construct (GType object_type,
- GeeCollection* media_sources,
- const gchar* new_comment);
-GType edit_multiple_comments_command_get_type (void) G_GNUC_CONST;
-static void media_page_real_on_display_titles (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-void configuration_facade_set_display_photo_titles (ConfigurationFacade* self,
- gboolean display);
-static void media_page_real_on_display_comments (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-void configuration_facade_set_display_photo_comments (ConfigurationFacade* self,
- gboolean display);
-static void media_page_real_on_display_ratings (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-void configuration_facade_set_display_photo_ratings (ConfigurationFacade* self,
- gboolean display);
-static void media_page_real_on_display_tags (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-void configuration_facade_set_display_photo_tags (ConfigurationFacade* self,
- gboolean display);
-static void media_page_real_get_config_photos_sort (MediaPage* self,
- gboolean* sort_order,
- gint* sort_by);
-void media_page_set_config_photos_sort (MediaPage* self,
- gboolean sort_order,
- gint sort_by);
-static void media_page_real_set_config_photos_sort (MediaPage* self,
- gboolean sort_order,
- gint sort_by);
-static void media_page_real_on_sort_changed (MediaPage* self,
- GSimpleAction* action,
- GVariant* value);
-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_developer_changed (MediaPage* self,
- RawDeveloper rd);
-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);
-gboolean photo_has_transformations (Photo* self);
-gboolean dialogs_confirm_warn_developer_changed (gint number);
-GType set_raw_developer_command_get_type (void) G_GNUC_CONST;
-SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter,
- RawDeveloper developer);
-SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type,
- GeeIterable* iter,
- RawDeveloper developer);
-static void media_page_real_set_display_titles (CheckerboardPage* base,
- gboolean display);
-static void media_page_real_set_display_comments (CheckerboardPage* base,
- gboolean display);
-static GAction* media_page_sort_by_title_action (MediaPage* self);
-static GAction* media_page_sort_ascending_action (MediaPage* self);
-void media_page_set_menu_sort_by (MediaPage* self,
- gint val);
-static GVariant* _variant_new30 (const gchar* value);
-void media_page_set_menu_sort_order (MediaPage* self,
- gboolean ascending);
-static GVariant* _variant_new31 (const gchar* value);
-gint64 thumbnail_title_ascending_comparator (void* a,
- void* b);
-static gint64 _thumbnail_title_ascending_comparator_comparator (void* a,
- void* b,
- gpointer self);
-gint64 thumbnail_title_descending_comparator (void* a,
- void* b);
-static gint64 _thumbnail_title_descending_comparator_comparator (void* a,
- void* b,
- gpointer self);
-gboolean thumbnail_title_comparator_predicate (DataObject* object,
- Alteration* alteration);
-static gboolean _thumbnail_title_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self);
-gint64 thumbnail_exposure_time_ascending_comparator (void* a,
- void* b);
-static gint64 _thumbnail_exposure_time_ascending_comparator_comparator (void* a,
- void* b,
- gpointer self);
-gint64 thumbnail_exposure_time_desending_comparator (void* a,
- void* b);
-static gint64 _thumbnail_exposure_time_desending_comparator_comparator (void* a,
- void* b,
- gpointer self);
-gboolean thumbnail_exposure_time_comparator_predicate (DataObject* object,
- Alteration* alteration);
-static gboolean _thumbnail_exposure_time_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self);
-gint64 thumbnail_rating_ascending_comparator (void* a,
- void* b);
-static gint64 _thumbnail_rating_ascending_comparator_comparator (void* a,
- void* b,
- gpointer self);
-gint64 thumbnail_rating_descending_comparator (void* a,
- void* b);
-static gint64 _thumbnail_rating_descending_comparator_comparator (void* a,
- void* b,
- gpointer self);
-gboolean thumbnail_rating_comparator_predicate (DataObject* object,
- Alteration* alteration);
-static gboolean _thumbnail_rating_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self);
-gint64 thumbnail_filename_ascending_comparator (void* a,
- void* b);
-static gint64 _thumbnail_filename_ascending_comparator_comparator (void* a,
- void* b,
- gpointer self);
-gint64 thumbnail_filename_descending_comparator (void* a,
- void* b);
-static gint64 _thumbnail_filename_descending_comparator_comparator (void* a,
- void* b,
- gpointer self);
-gboolean thumbnail_filename_comparator_predicate (DataObject* object,
- Alteration* alteration);
-static gboolean _thumbnail_filename_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self);
-void data_collection_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-static void media_page_real_destroy (GtkWidget* base);
-void media_page_zoom_slider_assembly_increase_step (MediaPageZoomSliderAssembly* self);
-void media_page_zoom_slider_assembly_decrease_step (MediaPageZoomSliderAssembly* self);
-DataView* media_page_create_thumbnail (MediaPage* self,
- DataSource* source);
-static DataView* media_page_real_create_thumbnail (MediaPage* self,
- DataSource* source);
-Thumbnail* thumbnail_new (MediaSource* media,
- gint scale);
-Thumbnail* thumbnail_construct (GType object_type,
- MediaSource* media,
- gint scale);
-gboolean page_is_in_view (Page* self);
-GType checkerboard_layout_get_type (void) G_GNUC_CONST;
-CheckerboardLayout* checkerboard_page_get_checkerboard_layout (CheckerboardPage* self);
-void checkerboard_layout_set_scale (CheckerboardLayout* self,
- gint scale);
-gint checkerboard_layout_get_scale (CheckerboardLayout* self);
-#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyPrivate))
-#define RESOURCES_ICON_ZOOM_OUT "zoom-out.png"
-#define RESOURCES_ICON_ZOOM_SCALE 16
-static gboolean media_page_zoom_slider_assembly_on_zoom_out_pressed (MediaPageZoomSliderAssembly* self,
- GdkEventButton* event);
-static gboolean _media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-gdouble media_page_zoom_slider_assembly_scale_to_slider (gint value);
-static void media_page_zoom_slider_assembly_on_slider_changed (MediaPageZoomSliderAssembly* self);
-static void _media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-#define RESOURCES_ICON_ZOOM_IN "zoom-in.png"
-static gboolean media_page_zoom_slider_assembly_on_zoom_in_pressed (MediaPageZoomSliderAssembly* self,
- GdkEventButton* event);
-static gboolean _media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-gint media_page_zoom_slider_assembly_slider_to_scale (gdouble value);
-void media_page_zoom_slider_assembly_snap_to_min (MediaPageZoomSliderAssembly* self);
-void media_page_zoom_slider_assembly_snap_to_max (MediaPageZoomSliderAssembly* self);
-static void media_page_zoom_slider_assembly_finalize (GObject * obj);
-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[29] = {{"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}, {"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;
- Dimensions _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL);
-#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (initial_pixbuf_dim != NULL, NULL);
-#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (title != NULL, NULL);
-#line 18 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = *initial_pixbuf_dim;
-#line 18 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = (MediaSourceItem*) checkerboard_item_construct (object_type, source, &_tmp0_, title, comment, marked_up, alignment);
-#line 19 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = media_source_item_basis_sprocket_pixbuf;
-#line 19 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp1_ == NULL) {
-#line 1822 "MediaPage.c"
- GdkPixbuf* _tmp2_;
-#line 20 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = resources_load_icon ("sprocket.png", 0);
-#line 20 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (media_source_item_basis_sprocket_pixbuf);
-#line 20 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_source_item_basis_sprocket_pixbuf = _tmp2_;
-#line 1830 "MediaPage.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return self;
-#line 1834 "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 1848 "MediaPage.c"
-}
-
-
-static void
-media_source_item_real_paint_image (CheckerboardItem* base,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin)
-{
- MediaSourceItem * self;
- Dimensions pixbuf_dim = {0};
- Dimensions _tmp0_ = {0};
- gboolean _tmp1_;
- GdkPoint _tmp19_;
- gboolean _tmp20_;
-#line 23 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem);
-#line 23 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (ctx != NULL);
-#line 23 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 23 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (origin != NULL);
-#line 25 "/home/jens/Source/shotwell/src/MediaPage.vala"
- dimensions_for_pixbuf (pixbuf, &_tmp0_);
-#line 25 "/home/jens/Source/shotwell/src/MediaPage.vala"
- pixbuf_dim = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = self->priv->enable_sprockets;
-#line 30 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!_tmp1_) {
-#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 1882 "MediaPage.c"
- } else {
- gdouble reduction_factor = 0.0;
- gint reduced_size = 0;
- gdouble _tmp2_;
- GdkPixbuf* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gboolean _tmp6_ = FALSE;
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
-#line 33 "/home/jens/Source/shotwell/src/MediaPage.vala"
- reduction_factor = ((gdouble) dimensions_major_axis (&pixbuf_dim)) / ((gdouble) THUMBNAIL_CACHE_SIZE_LARGEST);
-#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = reduction_factor;
-#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = media_source_item_basis_sprocket_pixbuf;
-#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = gdk_pixbuf_get_width (_tmp3_);
-#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = _tmp4_;
-#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala"
- reduced_size = (gint) (_tmp2_ * _tmp5_);
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = media_source_item_current_sprocket_pixbuf;
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp7_ == NULL) {
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = TRUE;
-#line 1913 "MediaPage.c"
- } else {
- gint _tmp8_;
- GdkPixbuf* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = reduced_size;
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = media_source_item_current_sprocket_pixbuf;
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = gdk_pixbuf_get_width (_tmp9_);
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _tmp10_;
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp8_ != _tmp11_;
-#line 1929 "MediaPage.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp6_) {
-#line 1933 "MediaPage.c"
- GdkPixbuf* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- GdkPixbuf* _tmp15_;
-#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = media_source_item_basis_sprocket_pixbuf;
-#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = reduced_size;
-#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = reduced_size;
-#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = gdk_pixbuf_scale_simple (_tmp12_, _tmp13_, _tmp14_, GDK_INTERP_HYPER);
-#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (media_source_item_current_sprocket_pixbuf);
-#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_source_item_current_sprocket_pixbuf = _tmp15_;
-#line 1950 "MediaPage.c"
- }
-#line 42 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = media_source_item_current_sprocket_pixbuf;
-#line 42 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = gdk_pixbuf_get_width (_tmp16_);
-#line 42 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = _tmp17_;
-#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), _tmp18_);
-#line 1960 "MediaPage.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = *origin;
-#line 45 "/home/jens/Source/shotwell/src/MediaPage.vala"
- CHECKERBOARD_ITEM_CLASS (media_source_item_parent_class)->paint_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), ctx, pixbuf, &_tmp19_);
-#line 47 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = self->priv->enable_sprockets;
-#line 47 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp20_) {
-#line 1970 "MediaPage.c"
- GdkPoint _tmp21_;
- Dimensions _tmp22_;
-#line 48 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = *origin;
-#line 48 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = pixbuf_dim;
-#line 48 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_source_item_paint_sprockets (self, ctx, &_tmp21_, &_tmp22_);
-#line 1979 "MediaPage.c"
- }
-}
-
-
-void
-media_source_item_paint_one_sprocket (MediaSourceItem* self,
- cairo_t* ctx,
- GdkPoint* origin)
-{
- GdkPixbuf* _tmp0_;
- GdkPoint _tmp1_;
- gint _tmp2_;
- GdkPoint _tmp3_;
- gint _tmp4_;
-#line 52 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self));
-#line 52 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (ctx != NULL);
-#line 52 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (origin != NULL);
-#line 53 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_save (ctx);
-#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = media_source_item_current_sprocket_pixbuf;
-#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = *origin;
-#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_.x;
-#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = *origin;
-#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_.y;
-#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp0_, (gdouble) _tmp2_, (gdouble) _tmp4_);
-#line 55 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_paint (ctx);
-#line 56 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_restore (ctx);
-#line 2018 "MediaPage.c"
-}
-
-
-void
-media_source_item_paint_sprockets (MediaSourceItem* self,
- cairo_t* ctx,
- GdkPoint* item_origin,
- Dimensions* item_dimensions)
-{
- gint num_sprockets = 0;
- Dimensions _tmp0_;
- gint _tmp1_;
- GdkPixbuf* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- GdkPoint left_paint_location = {0};
- GdkPoint _tmp5_;
- GdkPoint right_paint_location = {0};
- GdkPoint _tmp6_;
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
- GdkPixbuf* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gint straggler_pixels = 0;
- Dimensions _tmp27_;
- gint _tmp28_;
- GdkPixbuf* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
-#line 59 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self));
-#line 59 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (ctx != NULL);
-#line 59 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (item_origin != NULL);
-#line 59 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (item_dimensions != NULL);
-#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = *item_dimensions;
-#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_.height;
-#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = media_source_item_current_sprocket_pixbuf;
-#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = gdk_pixbuf_get_height (_tmp2_);
-#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala"
- num_sprockets = _tmp1_ / _tmp4_;
-#line 63 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = *item_origin;
-#line 63 "/home/jens/Source/shotwell/src/MediaPage.vala"
- left_paint_location = _tmp5_;
-#line 64 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = *item_origin;
-#line 64 "/home/jens/Source/shotwell/src/MediaPage.vala"
- right_paint_location = _tmp6_;
-#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = right_paint_location.x;
-#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = *item_dimensions;
-#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _tmp8_.width;
-#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = media_source_item_current_sprocket_pixbuf;
-#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = gdk_pixbuf_get_width (_tmp10_);
-#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = _tmp11_;
-#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala"
- right_paint_location.x = _tmp7_ + (_tmp9_ - _tmp12_);
-#line 2093 "MediaPage.c"
- {
- gint i = 0;
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- i = 0;
-#line 2098 "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 2105 "MediaPage.c"
- gint _tmp15_;
- gint _tmp16_;
- GdkPoint _tmp17_;
- GdkPoint _tmp18_;
- gint _tmp19_;
- GdkPixbuf* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- GdkPixbuf* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!_tmp13_) {
-#line 2120 "MediaPage.c"
- gint _tmp14_;
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = i;
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- i = _tmp14_ + 1;
-#line 2126 "MediaPage.c"
- }
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = FALSE;
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = i;
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = num_sprockets;
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!(_tmp15_ < _tmp16_)) {
-#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 2138 "MediaPage.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = left_paint_location;
-#line 67 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_source_item_paint_one_sprocket (self, ctx, &_tmp17_);
-#line 68 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = right_paint_location;
-#line 68 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_source_item_paint_one_sprocket (self, ctx, &_tmp18_);
-#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = left_paint_location.y;
-#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = media_source_item_current_sprocket_pixbuf;
-#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = gdk_pixbuf_get_height (_tmp20_);
-#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = _tmp21_;
-#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala"
- left_paint_location.y = _tmp19_ + _tmp22_;
-#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp23_ = right_paint_location.y;
-#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp24_ = media_source_item_current_sprocket_pixbuf;
-#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp25_ = gdk_pixbuf_get_height (_tmp24_);
-#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp26_ = _tmp25_;
-#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala"
- right_paint_location.y = _tmp23_ + _tmp26_;
-#line 2168 "MediaPage.c"
- }
- }
- }
-#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp27_ = *item_dimensions;
-#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp28_ = _tmp27_.height;
-#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp29_ = media_source_item_current_sprocket_pixbuf;
-#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp30_ = gdk_pixbuf_get_height (_tmp29_);
-#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp31_ = _tmp30_;
-#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala"
- straggler_pixels = _tmp28_ % _tmp31_;
-#line 75 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp32_ = straggler_pixels;
-#line 75 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp32_ > 0) {
-#line 2188 "MediaPage.c"
- GdkPixbuf* _tmp33_;
- GdkPoint _tmp34_;
- gint _tmp35_;
- GdkPoint _tmp36_;
- gint _tmp37_;
- GdkPoint _tmp38_;
- gint _tmp39_;
- GdkPoint _tmp40_;
- gint _tmp41_;
- GdkPixbuf* _tmp42_;
- gint _tmp43_;
- GdkPixbuf* _tmp44_;
- GdkPoint _tmp45_;
- gint _tmp46_;
- GdkPoint _tmp47_;
- gint _tmp48_;
- GdkPoint _tmp49_;
- gint _tmp50_;
- GdkPoint _tmp51_;
- gint _tmp52_;
- GdkPixbuf* _tmp53_;
- gint _tmp54_;
-#line 76 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_save (ctx);
-#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp33_ = media_source_item_current_sprocket_pixbuf;
-#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp34_ = left_paint_location;
-#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp35_ = _tmp34_.x;
-#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp36_ = left_paint_location;
-#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp37_ = _tmp36_.y;
-#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp33_, (gdouble) _tmp35_, (gdouble) _tmp37_);
-#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp38_ = left_paint_location;
-#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp39_ = _tmp38_.x;
-#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp40_ = left_paint_location;
-#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp41_ = _tmp40_.y;
-#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp42_ = media_source_item_current_sprocket_pixbuf;
-#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp43_ = straggler_pixels;
-#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_rectangle (ctx, (gdouble) _tmp39_, (gdouble) _tmp41_, (gdouble) gdk_pixbuf_get_width (_tmp42_), (gdouble) _tmp43_);
-#line 82 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_fill (ctx);
-#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp44_ = media_source_item_current_sprocket_pixbuf;
-#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp45_ = right_paint_location;
-#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp46_ = _tmp45_.x;
-#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp47_ = right_paint_location;
-#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp48_ = _tmp47_.y;
-#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp44_, (gdouble) _tmp46_, (gdouble) _tmp48_);
-#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp49_ = right_paint_location;
-#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp50_ = _tmp49_.x;
-#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp51_ = right_paint_location;
-#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp52_ = _tmp51_.y;
-#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp53_ = media_source_item_current_sprocket_pixbuf;
-#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp54_ = straggler_pixels;
-#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_rectangle (ctx, (gdouble) _tmp50_, (gdouble) _tmp52_, (gdouble) gdk_pixbuf_get_width (_tmp53_), (gdouble) _tmp54_);
-#line 88 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_fill (ctx);
-#line 90 "/home/jens/Source/shotwell/src/MediaPage.vala"
- cairo_restore (ctx);
-#line 2271 "MediaPage.c"
- }
-}
-
-
-void
-media_source_item_set_enable_sprockets (MediaSourceItem* self,
- gboolean enable_sprockets)
-{
-#line 94 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self));
-#line 95 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->enable_sprockets = enable_sprockets;
-#line 2284 "MediaPage.c"
-}
-
-
-void
-media_source_item_set_title (MediaSourceItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment)
-{
-#line 98 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self));
-#line 98 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (text != NULL);
-#line 100 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_item_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), text, marked_up, alignment);
-#line 101 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (self->priv->natural_collation_key);
-#line 101 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->natural_collation_key = NULL;
-#line 2304 "MediaPage.c"
-}
-
-
-gchar*
-media_source_item_get_natural_collation_key (MediaSourceItem* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 104 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE_ITEM (self), NULL);
-#line 105 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->natural_collation_key;
-#line 105 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_ == NULL) {
-#line 2321 "MediaPage.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 106 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = checkerboard_item_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 106 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = natural_collate_collate_key (_tmp1_);
-#line 106 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (self->priv->natural_collation_key);
-#line 106 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->natural_collation_key = _tmp2_;
-#line 2332 "MediaPage.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = self->priv->natural_collation_key;
-#line 108 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = g_strdup (_tmp3_);
-#line 108 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = _tmp4_;
-#line 108 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 2342 "MediaPage.c"
-}
-
-
-static void
-media_source_item_class_init (MediaSourceItemClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_source_item_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_type_class_add_private (klass, sizeof (MediaSourceItemPrivate));
-#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((CheckerboardItemClass *) klass)->paint_image = (void (*) (CheckerboardItem *, cairo_t*, GdkPixbuf*, GdkPoint*)) 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 2357 "MediaPage.c"
-}
-
-
-static void
-media_source_item_instance_init (MediaSourceItem * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv = MEDIA_SOURCE_ITEM_GET_PRIVATE (self);
-#line 11 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->enable_sprockets = FALSE;
-#line 12 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->natural_collation_key = NULL;
-#line 2370 "MediaPage.c"
-}
-
-
-static void
-media_source_item_finalize (GObject * obj)
-{
- MediaSourceItem * self;
-#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem);
-#line 12 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _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 2384 "MediaPage.c"
-}
-
-
-GType
-media_source_item_get_type (void)
-{
- static volatile gsize media_source_item_type_id__volatile = 0;
- if (g_once_init_enter (&media_source_item_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaSourceItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceItem), 0, (GInstanceInitFunc) media_source_item_instance_init, NULL };
- GType media_source_item_type_id;
- media_source_item_type_id = g_type_register_static (TYPE_CHECKERBOARD_ITEM, "MediaSourceItem", &g_define_type_info, 0);
- g_once_init_leave (&media_source_item_type_id__volatile, media_source_item_type_id);
- }
- return media_source_item_type_id__volatile;
-}
-
-
-GType
-media_page_sort_by_get_type (void)
-{
- static volatile gsize media_page_sort_by_type_id__volatile = 0;
- if (g_once_init_enter (&media_page_sort_by_type_id__volatile)) {
- static const GEnumValue values[] = {{MEDIA_PAGE_SORT_BY_MIN, "MEDIA_PAGE_SORT_BY_MIN", "min"}, {MEDIA_PAGE_SORT_BY_TITLE, "MEDIA_PAGE_SORT_BY_TITLE", "title"}, {MEDIA_PAGE_SORT_BY_EXPOSURE_DATE, "MEDIA_PAGE_SORT_BY_EXPOSURE_DATE", "exposure-date"}, {MEDIA_PAGE_SORT_BY_RATING, "MEDIA_PAGE_SORT_BY_RATING", "rating"}, {MEDIA_PAGE_SORT_BY_FILENAME, "MEDIA_PAGE_SORT_BY_FILENAME", "filename"}, {MEDIA_PAGE_SORT_BY_MAX, "MEDIA_PAGE_SORT_BY_MAX", "max"}, {0, NULL, NULL}};
- GType media_page_sort_by_type_id;
- media_page_sort_by_type_id = g_enum_register_static ("MediaPageSortBy", values);
- g_once_init_leave (&media_page_sort_by_type_id__volatile, media_page_sort_by_type_id);
- }
- return media_page_sort_by_type_id__volatile;
-}
-
-
-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 2423 "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 2434 "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 2445 "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 2456 "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 2467 "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 2478 "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 2489 "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 2500 "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 2511 "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 2522 "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 2533 "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 2544 "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 2555 "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 2566 "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 2577 "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 2588 "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 2599 "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 2610 "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 2621 "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 2632 "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 2643 "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 2654 "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 2665 "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 2676 "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 2687 "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 2698 "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 2709 "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 2720 "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 2731 "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 2742 "MediaPage.c"
-}
-
-
-MediaPage*
-media_page_construct (GType object_type,
- const gchar* page_name)
-{
- MediaPage * self = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- MediaViewTracker* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- ConfigFacade* _tmp9_;
- ConfigFacade* _tmp10_;
- GValue _tmp11_ = {0};
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- ConfigFacade* _tmp14_;
- ConfigFacade* _tmp15_;
- GValue _tmp16_ = {0};
- ViewCollection* _tmp17_;
- ViewCollection* _tmp18_;
- ConfigFacade* _tmp19_;
- ConfigFacade* _tmp20_;
- GValue _tmp21_ = {0};
- ViewCollection* _tmp22_;
- ViewCollection* _tmp23_;
- GValue _tmp24_ = {0};
- ViewCollection* _tmp25_;
- ViewCollection* _tmp26_;
- ConfigFacade* _tmp27_;
- ConfigFacade* _tmp28_;
- GValue _tmp29_ = {0};
- ViewCollection* _tmp30_;
- ViewCollection* _tmp31_;
- DragAndDropHandler* _tmp32_;
-#line 247 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (page_name != NULL, NULL);
-#line 248 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = (MediaPage*) checkerboard_page_construct (object_type, page_name);
-#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = media_view_tracker_new (_tmp1_);
-#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _core_tracker_unref0 (self->priv->tracker);
-#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->tracker = _tmp2_;
-#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _media_page_on_media_altered_data_collection_items_altered, self, 0);
-#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 254 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 254 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 254 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
-#line 254 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = config_facade_get_instance ();
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_init (&_tmp11_, G_TYPE_BOOLEAN);
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_set_boolean (&_tmp11_, configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_TITLES, &_tmp11_, NULL, NULL);
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_IS_VALUE (&_tmp11_) ? (g_value_unset (&_tmp11_), NULL) : NULL;
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = config_facade_get_instance ();
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _tmp14_;
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_init (&_tmp16_, G_TYPE_BOOLEAN);
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_set_boolean (&_tmp16_, configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS, &_tmp16_, NULL, NULL);
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_IS_VALUE (&_tmp16_) ? (g_value_unset (&_tmp16_), NULL) : NULL;
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = _tmp17_;
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = config_facade_get_instance ();
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = _tmp19_;
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_init (&_tmp21_, G_TYPE_BOOLEAN);
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_set_boolean (&_tmp21_, configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_TAGS, &_tmp21_, NULL, NULL);
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_IS_VALUE (&_tmp21_) ? (g_value_unset (&_tmp21_), NULL) : NULL;
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp20_);
-#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp18_);
-#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp23_ = _tmp22_;
-#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_init (&_tmp24_, G_TYPE_INT);
-#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_set_int (&_tmp24_, media_page_get_thumb_size (self));
-#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SIZE, &_tmp24_, NULL, NULL);
-#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_IS_VALUE (&_tmp24_) ? (g_value_unset (&_tmp24_), NULL) : NULL;
-#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp23_);
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp25_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp26_ = _tmp25_;
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp27_ = config_facade_get_instance ();
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp28_ = _tmp27_;
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_init (&_tmp29_, G_TYPE_BOOLEAN);
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_set_boolean (&_tmp29_, configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_RATINGS, &_tmp29_, NULL, NULL);
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_IS_VALUE (&_tmp29_) ? (g_value_unset (&_tmp29_), NULL) : NULL;
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp28_);
-#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp26_);
-#line 264 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp30_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 264 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp31_ = _tmp30_;
-#line 264 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_COLLECTION, DataCollection));
-#line 264 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp31_);
-#line 267 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp32_ = drag_and_drop_handler_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 267 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _drag_and_drop_handler_unref0 (self->priv->dnd_handler);
-#line 267 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->dnd_handler = _tmp32_;
-#line 247 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return self;
-#line 2926 "MediaPage.c"
-}
-
-
-static gint
-media_page_compute_zoom_scale_increase (gint current_scale)
-{
- gint result = 0;
- gint new_scale = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 271 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_scale = current_scale + MEDIA_PAGE_MANUAL_STEPPING;
-#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = thumbnail_get_MIN_SCALE ();
-#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = thumbnail_get_MAX_SCALE ();
-#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = CLAMP (new_scale, _tmp1_, _tmp3_);
-#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 2953 "MediaPage.c"
-}
-
-
-static gint
-media_page_compute_zoom_scale_decrease (gint current_scale)
-{
- gint result = 0;
- gint new_scale = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 276 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_scale = current_scale - MEDIA_PAGE_MANUAL_STEPPING;
-#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = thumbnail_get_MIN_SCALE ();
-#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = thumbnail_get_MAX_SCALE ();
-#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = CLAMP (new_scale, _tmp1_, _tmp3_);
-#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 2980 "MediaPage.c"
-}
-
-
-static void
-media_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- MediaPage * self;
-#line 280 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 280 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 281 "/home/jens/Source/shotwell/src/MediaPage.vala"
- PAGE_CLASS (media_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), ui_filenames);
-#line 283 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "media.ui");
-#line 2997 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new23 (gboolean value)
-{
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 3006 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new24 (gboolean value)
-{
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 3015 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new25 (gboolean value)
-{
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 3024 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new26 (gboolean value)
-{
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 3033 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new27 (gchar* value)
-{
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 3042 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new28 (const gchar* value)
-{
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 3051 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new29 (const gchar* value)
-{
-#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 3060 "MediaPage.c"
-}
-
-
-static void
-_media_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender,
- GVariant* value,
- gpointer self)
-{
-#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_raw_developer_changed ((MediaPage*) self, _sender, value);
-#line 3071 "MediaPage.c"
-}
-
-
-static void
-media_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- MediaPage * self;
- gboolean sort_order = FALSE;
- gint sort_by = 0;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_ = 0;
- GAction* _tmp2_;
- GAction* _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- GVariant* _tmp6_;
- GAction* _tmp7_;
- GAction* _tmp8_;
- ConfigFacade* _tmp9_;
- ConfigFacade* _tmp10_;
- GVariant* _tmp11_;
- GAction* _tmp12_;
- GAction* _tmp13_;
- ConfigFacade* _tmp14_;
- ConfigFacade* _tmp15_;
- GVariant* _tmp16_;
- GAction* _tmp17_;
- GAction* _tmp18_;
- ConfigFacade* _tmp19_;
- ConfigFacade* _tmp20_;
- GVariant* _tmp21_;
- GAction* _tmp22_;
- GAction* _tmp23_;
- gint _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- GVariant* _tmp27_;
- const gchar* _tmp28_ = NULL;
- gboolean _tmp29_;
- GAction* _tmp30_;
- GAction* _tmp31_;
- GVariant* _tmp32_;
- RawDeveloper d = 0;
- ConfigFacade* _tmp33_;
- ConfigFacade* _tmp34_;
- RawDeveloper _tmp35_;
- const gchar* _tmp36_ = NULL;
- RawDeveloper _tmp37_;
- GSimpleAction* action = NULL;
- const GVariantType* _tmp38_;
- GVariant* _tmp39_;
- GSimpleAction* _tmp40_;
- GSimpleAction* _tmp41_;
-#line 322 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 322 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 323 "/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), map);
-#line 327 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_get_config_photos_sort (self, &_tmp0_, &_tmp1_);
-#line 327 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sort_order = _tmp0_;
-#line 327 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sort_by = _tmp1_;
-#line 329 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_map_add_action_entries (map, MEDIA_PAGE_entries, G_N_ELEMENTS (MEDIA_PAGE_entries), self);
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle");
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = _tmp4_;
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _variant_new23 (configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_change_state (_tmp3_, _tmp6_);
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp6_);
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment");
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = config_facade_get_instance ();
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _variant_new24 (configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_change_state (_tmp8_, _tmp11_);
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp11_);
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings");
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = config_facade_get_instance ();
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _tmp14_;
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = _variant_new25 (configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_change_state (_tmp13_, _tmp16_);
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp16_);
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTags");
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = _tmp17_;
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = config_facade_get_instance ();
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = _tmp19_;
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = _variant_new26 (configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_change_state (_tmp18_, _tmp21_);
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp21_);
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp20_);
-#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SortBy");
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp23_ = _tmp22_;
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp24_ = sort_by;
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp25_ = g_strdup_printf ("%d", _tmp24_);
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp26_ = _tmp25_;
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp27_ = _variant_new27 (_tmp26_);
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_change_state (_tmp23_, _tmp27_);
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp27_);
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (_tmp26_);
-#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp23_);
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp29_ = sort_order;
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp29_) {
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp28_ = "ascending";
-#line 3238 "MediaPage.c"
- } else {
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp28_ = "descending";
-#line 3242 "MediaPage.c"
- }
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp30_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Sort");
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp31_ = _tmp30_;
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp32_ = _variant_new28 (_tmp28_);
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_change_state (_tmp31_, _tmp32_);
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp32_);
-#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp31_);
-#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp33_ = config_facade_get_instance ();
-#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp34_ = _tmp33_;
-#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp35_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp34_);
-#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala"
- d = _tmp35_;
-#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp37_ = d;
-#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp37_ == RAW_DEVELOPER_SHOTWELL) {
-#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp36_ = "Shotwell";
-#line 3272 "MediaPage.c"
- } else {
-#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp36_ = "Camera";
-#line 3276 "MediaPage.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp38_ = G_VARIANT_TYPE_STRING;
-#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp39_ = _variant_new29 (_tmp36_);
-#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp40_ = g_simple_action_new_stateful ("RawDeveloper", _tmp38_, _tmp39_);
-#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp41_ = _tmp40_;
-#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp39_);
-#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala"
- action = _tmp41_;
-#line 340 "/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 341 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_simple_action_set_enabled (action, TRUE);
-#line 342 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_map_add_action (map, G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction));
-#line 322 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (action);
-#line 3298 "MediaPage.c"
-}
-
-
-static void
-media_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- MediaPage * self;
-#line 345 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 345 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 346 "/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), map);
-#line 3313 "MediaPage.c"
- {
- GActionEntry* entry_collection = NULL;
- gint entry_collection_length1 = 0;
- gint _entry_collection_size_ = 0;
- gint entry_it = 0;
-#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala"
- entry_collection = MEDIA_PAGE_entries;
-#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala"
- entry_collection_length1 = G_N_ELEMENTS (MEDIA_PAGE_entries);
-#line 347 "/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 3325 "MediaPage.c"
- GActionEntry entry = {0};
-#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala"
- entry = entry_collection[entry_it];
-#line 3329 "MediaPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = entry;
-#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 3339 "MediaPage.c"
- }
- }
- }
-}
-
-
-static void
-media_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- MediaPage * self;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gboolean _tmp4_ = FALSE;
-#line 352 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 353 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Export", selected_count > 0);
-#line 354 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditTitle", selected_count > 0);
-#line 355 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditComment", selected_count > 0);
-#line 356 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = thumbnail_get_MAX_SCALE ();
-#line 356 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 356 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", media_page_get_thumb_size (self) < _tmp1_);
-#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = thumbnail_get_MIN_SCALE ();
-#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", media_page_get_thumb_size (self) > _tmp3_);
-#line 358 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveFromLibrary", selected_count > 0);
-#line 359 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MoveToTrash", selected_count > 0);
-#line 361 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (desktop_integration_is_send_to_installed ()) {
-#line 362 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", selected_count > 0);
-#line 3385 "MediaPage.c"
- } else {
-#line 364 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", FALSE);
-#line 3389 "MediaPage.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rate", selected_count > 0);
-#line 367 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_update_rating_sensitivities (self);
-#line 369 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_update_development_menu_item_sensitivity (self);
-#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (selected_count == 1) {
-#line 3399 "MediaPage.c"
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- DataSource* _tmp7_;
- DataSource* _tmp8_;
-#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = view_collection_get_selected_source_at (_tmp6_, 0);
-#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_VIDEO);
-#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 3418 "MediaPage.c"
- } else {
-#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = FALSE;
-#line 3422 "MediaPage.c"
- }
-#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PlayVideo", _tmp4_);
-#line 374 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_update_flag_action (self, selected_count);
-#line 376 "/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), selected_count, count);
-#line 3430 "MediaPage.c"
-}
-
-
-static void
-media_page_on_media_altered (MediaPage* self,
- GeeMap* altered)
-{
-#line 379 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 379 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (GEE_IS_MAP (altered));
-#line 3442 "MediaPage.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = gee_map_get_keys (altered);
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _object_it = _tmp4_;
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- while (TRUE) {
-#line 3466 "MediaPage.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- DataObject* _tmp8_;
- gpointer _tmp9_;
- Alteration* _tmp10_;
- gboolean _tmp11_;
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = _object_it;
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 3481 "MediaPage.c"
- }
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _object_it;
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- object = (DataObject*) _tmp7_;
-#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = object;
-#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = gee_map_get (altered, _tmp8_);
-#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = (Alteration*) _tmp9_;
-#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = alteration_has_detail (_tmp10_, "metadata", "flagged");
-#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _alteration_unref0 (_tmp10_);
-#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp11_) {
-#line 3501 "MediaPage.c"
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
-#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_update_flag_action (self, view_collection_get_selected_count (_tmp13_));
-#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 384 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (object);
-#line 384 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 3516 "MediaPage.c"
- }
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (object);
-#line 3520 "MediaPage.c"
- }
-#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_object_it);
-#line 3524 "MediaPage.c"
- }
-}
-
-
-static void
-media_page_update_rating_sensitivities (MediaPage* self)
-{
-#line 389 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 390 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected", media_page_can_rate_selected (self, RATING_REJECTED));
-#line 391 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated", media_page_can_rate_selected (self, RATING_UNRATED));
-#line 392 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne", media_page_can_rate_selected (self, RATING_ONE));
-#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo", media_page_can_rate_selected (self, RATING_TWO));
-#line 394 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree", media_page_can_rate_selected (self, RATING_THREE));
-#line 395 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour", media_page_can_rate_selected (self, RATING_FOUR));
-#line 396 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive", media_page_can_rate_selected (self, RATING_FIVE));
-#line 397 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating", media_page_can_increase_selected_rating (self));
-#line 398 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating", media_page_can_decrease_selected_rating (self));
-#line 3552 "MediaPage.c"
-}
-
-
-static void
-media_page_update_development_menu_item_sensitivity (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gboolean _tmp6_;
- gboolean is_raw = FALSE;
- gboolean _tmp26_;
-#line 401 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected (_tmp1_);
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = _tmp4_;
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_ == 0;
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp6_) {
-#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", FALSE);
-#line 404 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 3594 "MediaPage.c"
- }
-#line 408 "/home/jens/Source/shotwell/src/MediaPage.vala"
- is_raw = FALSE;
-#line 3598 "MediaPage.c"
- {
- GeeList* _view_list = NULL;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- GeeList* _tmp9_;
- GeeList* _tmp10_;
- gint _view_size = 0;
- GeeList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gint _view_index = 0;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = view_collection_get_selected (_tmp8_);
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_list = _tmp10_;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _view_list;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_size = _tmp13_;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = -1;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- while (TRUE) {
-#line 3634 "MediaPage.c"
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- DataView* view = NULL;
- GeeList* _tmp17_;
- gint _tmp18_;
- gpointer _tmp19_;
- Photo* photo = NULL;
- DataView* _tmp20_;
- MediaSource* _tmp21_;
- Photo* _tmp22_;
- gboolean _tmp23_ = FALSE;
- Photo* _tmp24_;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = _view_index;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = _tmp14_ + 1;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _view_index;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = _view_size;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!(_tmp15_ < _tmp16_)) {
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 3660 "MediaPage.c"
- }
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = _view_list;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = _view_index;
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = gee_list_get (_tmp17_, _tmp18_);
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- view = (DataView*) _tmp19_;
-#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = view;
-#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_THUMBNAIL, Thumbnail));
-#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_PHOTO) ? ((Photo*) _tmp21_) : NULL;
-#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp22_ == NULL) {
-#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp21_);
-#line 3680 "MediaPage.c"
- }
-#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala"
- photo = _tmp22_;
-#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp24_ = photo;
-#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp24_ != NULL) {
-#line 3688 "MediaPage.c"
- Photo* _tmp25_;
-#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp25_ = photo;
-#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp23_ = photo_get_master_file_format (_tmp25_) == PHOTO_FILE_FORMAT_RAW;
-#line 3694 "MediaPage.c"
- } else {
-#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp23_ = FALSE;
-#line 3698 "MediaPage.c"
- }
-#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp23_) {
-#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala"
- is_raw = TRUE;
-#line 414 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (photo);
-#line 414 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 414 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 3710 "MediaPage.c"
- }
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (photo);
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 3716 "MediaPage.c"
- }
-#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_view_list);
-#line 3720 "MediaPage.c"
- }
-#line 419 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp26_ = is_raw;
-#line 419 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", _tmp26_);
-#line 3726 "MediaPage.c"
-}
-
-
-static void
-media_page_update_flag_action (MediaPage* self,
- gint selected_count)
-{
-#line 422 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", selected_count > 0);
-#line 3738 "MediaPage.c"
-}
-
-
-static gpointer
-_core_tracker_ref0 (gpointer self)
-{
-#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return self ? core_tracker_ref (self) : NULL;
-#line 3747 "MediaPage.c"
-}
-
-
-static CoreViewTracker*
-media_page_real_get_view_tracker (CheckerboardPage* base)
-{
- MediaPage * self;
- CoreViewTracker* result = NULL;
- MediaViewTracker* _tmp0_;
- CoreViewTracker* _tmp1_;
-#line 426 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->tracker;
-#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker));
-#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = _tmp1_;
-#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 3768 "MediaPage.c"
-}
-
-
-void
-media_page_set_display_ratings (MediaPage* self,
- gboolean display)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- GValue _tmp4_ = {0};
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
-#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_init (&_tmp4_, G_TYPE_BOOLEAN);
-#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_set_boolean (&_tmp4_, display);
-#line 432 "/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, &_tmp4_, NULL, NULL);
-#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_IS_VALUE (&_tmp4_) ? (g_value_unset (&_tmp4_), NULL) : NULL;
-#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp3_);
-#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
-#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 435 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings", display);
-#line 3817 "MediaPage.c"
-}
-
-
-static gboolean
-media_page_can_rate_selected (MediaPage* self,
- Rating rating)
-{
- gboolean result = FALSE;
-#line 438 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE);
-#line 3828 "MediaPage.c"
- {
- GeeList* _view_list = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _view_size = 0;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _view_index = 0;
-#line 439 "/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"
- _tmp1_ = _tmp0_;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected (_tmp1_);
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_list = _tmp3_;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _view_list;
-#line 439 "/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"
- _tmp6_ = _tmp5_;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_size = _tmp6_;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = -1;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- while (TRUE) {
-#line 3864 "MediaPage.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- DataView* view = NULL;
- GeeList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- DataView* _tmp13_;
- MediaSource* _tmp14_;
- MediaSource* _tmp15_;
- gboolean _tmp16_;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = _view_index;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = _tmp7_ + 1;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _view_index;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _view_size;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 3888 "MediaPage.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _view_list;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _view_index;
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- view = (DataView*) _tmp12_;
-#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = view;
-#line 440 "/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"
- _tmp15_ = _tmp14_;
-#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = media_source_get_rating (_tmp15_) != rating;
-#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp16_) {
-#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = TRUE;
-#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_view_list);
-#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 3918 "MediaPage.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 3922 "MediaPage.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_view_list);
-#line 3926 "MediaPage.c"
- }
-#line 444 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = FALSE;
-#line 444 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 3932 "MediaPage.c"
-}
-
-
-static gboolean
-media_page_can_increase_selected_rating (MediaPage* self)
-{
- gboolean result = FALSE;
-#line 447 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE);
-#line 3942 "MediaPage.c"
- {
- GeeList* _view_list = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _view_size = 0;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _view_index = 0;
-#line 448 "/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"
- _tmp1_ = _tmp0_;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected (_tmp1_);
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_list = _tmp3_;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _view_list;
-#line 448 "/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"
- _tmp6_ = _tmp5_;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_size = _tmp6_;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = -1;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- while (TRUE) {
-#line 3978 "MediaPage.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- DataView* view = NULL;
- GeeList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- DataView* _tmp13_;
- MediaSource* _tmp14_;
- MediaSource* _tmp15_;
- gboolean _tmp16_;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = _view_index;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = _tmp7_ + 1;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _view_index;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _view_size;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4002 "MediaPage.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _view_list;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _view_index;
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- view = (DataView*) _tmp12_;
-#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = view;
-#line 449 "/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"
- _tmp15_ = _tmp14_;
-#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = rating_can_increase (media_source_get_rating (_tmp15_));
-#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp16_) {
-#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = TRUE;
-#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_view_list);
-#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4032 "MediaPage.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 4036 "MediaPage.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_view_list);
-#line 4040 "MediaPage.c"
- }
-#line 453 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = FALSE;
-#line 453 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4046 "MediaPage.c"
-}
-
-
-static gboolean
-media_page_can_decrease_selected_rating (MediaPage* self)
-{
- gboolean result = FALSE;
-#line 456 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE);
-#line 4056 "MediaPage.c"
- {
- GeeList* _view_list = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _view_size = 0;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _view_index = 0;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected (_tmp1_);
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_list = _tmp3_;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _view_list;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_size = _tmp6_;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = -1;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- while (TRUE) {
-#line 4092 "MediaPage.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- DataView* view = NULL;
- GeeList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- DataView* _tmp13_;
- MediaSource* _tmp14_;
- MediaSource* _tmp15_;
- gboolean _tmp16_;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = _view_index;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = _tmp7_ + 1;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _view_index;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _view_size;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4116 "MediaPage.c"
- }
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _view_list;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _view_index;
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- view = (DataView*) _tmp12_;
-#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = view;
-#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail));
-#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _tmp14_;
-#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = rating_can_decrease (media_source_get_rating (_tmp15_));
-#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp16_) {
-#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = TRUE;
-#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_view_list);
-#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4146 "MediaPage.c"
- }
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 4150 "MediaPage.c"
- }
-#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_view_list);
-#line 4154 "MediaPage.c"
- }
-#line 462 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = FALSE;
-#line 462 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4160 "MediaPage.c"
-}
-
-
-MediaPageZoomSliderAssembly*
-media_page_create_zoom_slider_assembly (MediaPage* self)
-{
- MediaPageZoomSliderAssembly* result = NULL;
- MediaPageZoomSliderAssembly* _tmp0_;
-#line 465 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL);
-#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = media_page_zoom_slider_assembly_new ();
-#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_object_ref_sink (_tmp0_);
-#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = _tmp0_;
-#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4179 "MediaPage.c"
-}
-
-
-static gboolean
-media_page_real_on_mousewheel_up (Page* base,
- GdkEventScroll* event)
-{
- MediaPage * self;
- gboolean result = FALSE;
- GdkModifierType _tmp0_;
-#line 469 "/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"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = event->state;
-#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if ((_tmp0_ & GDK_CONTROL_MASK) != 0) {
-#line 471 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_increase_zoom_level (self);
-#line 472 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = TRUE;
-#line 472 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4204 "MediaPage.c"
- } else {
-#line 474 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = 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), event);
-#line 474 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4210 "MediaPage.c"
- }
-}
-
-
-static gboolean
-media_page_real_on_mousewheel_down (Page* base,
- GdkEventScroll* event)
-{
- MediaPage * self;
- gboolean result = FALSE;
- GdkModifierType _tmp0_;
-#line 478 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 478 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = event->state;
-#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if ((_tmp0_ & GDK_CONTROL_MASK) != 0) {
-#line 480 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_decrease_zoom_level (self);
-#line 481 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = TRUE;
-#line 481 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4236 "MediaPage.c"
- } else {
-#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = 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), event);
-#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4242 "MediaPage.c"
- }
-}
-
-
-static void
-media_page_on_send_to (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeCollection* _tmp3_;
-#line 487 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala"
- desktop_integration_send_to (_tmp3_);
-#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 4270 "MediaPage.c"
-}
-
-
-void
-media_page_on_play_video (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- Video* video = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- DataView* _tmp5_;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- Video* _tmp8_;
- Video* _tmp9_;
- Video* _tmp10_;
- GError * _inner_error_ = NULL;
-#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 4304 "MediaPage.c"
- }
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_VIDEO) ? ((Video*) _tmp7_) : NULL;
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp8_ == NULL) {
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 4322 "MediaPage.c"
- }
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _tmp8_;
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala"
- video = _tmp9_;
-#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = video;
-#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp10_ == NULL) {
-#line 497 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (video);
-#line 497 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 4340 "MediaPage.c"
- }
- {
- Video* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = video;
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = g_file_get_uri (_tmp13_);
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _tmp14_;
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_app_info_launch_default_for_uri (_tmp15_, NULL, &_inner_error_);
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (_tmp15_);
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4366 "MediaPage.c"
- goto __catch570_g_error;
- }
- }
- goto __finally570;
- __catch570_g_error:
- {
- GError* e = NULL;
- GError* _tmp16_;
- const gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
-#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala"
- e = _inner_error_;
-#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _inner_error_ = NULL;
-#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = e;
-#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = _tmp16_->message;
-#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = g_strdup_printf (_ ("Shotwell was unable to play the selected video:\n%s"), _tmp17_);
-#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = _tmp18_;
-#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala"
- app_window_error_message (_tmp19_, NULL);
-#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (_tmp19_);
-#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_error_free0 (e);
-#line 4396 "MediaPage.c"
- }
- __finally570:
-#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (video);
-#line 499 "/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 499 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_clear_error (&_inner_error_);
-#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 4409 "MediaPage.c"
- }
-#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (video);
-#line 4413 "MediaPage.c"
-}
-
-
-static gboolean
-media_page_real_on_app_key_pressed (Page* base,
- GdkEventKey* event)
-{
- MediaPage * self;
- gboolean result = FALSE;
- gboolean handled = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- GQuark _tmp4_ = 0U;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label0 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label1 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label2 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label3 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label4 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label5 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label6 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label7 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label8 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label9 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label10 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label11 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label12 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label13 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label14 = 0;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp3_label15 = 0;
-#line 4460 "MediaPage.c"
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_;
-#line 507 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 507 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 508 "/home/jens/Source/shotwell/src/MediaPage.vala"
- handled = TRUE;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = event->keyval;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("equal")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("plus"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("KP_Add"))))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4481 "MediaPage.c"
- default:
- {
-#line 513 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize");
-#line 514 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4488 "MediaPage.c"
- }
- }
- } else if (((_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("minus")))) || (_tmp4_ == ((0 != _tmp3_label4) ? _tmp3_label4 : (_tmp3_label4 = g_quark_from_static_string ("underscore"))))) || (_tmp4_ == ((0 != _tmp3_label5) ? _tmp3_label5 : (_tmp3_label5 = g_quark_from_static_string ("KP_Subtract"))))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4494 "MediaPage.c"
- default:
- {
-#line 519 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize");
-#line 520 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4501 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label6) ? _tmp3_label6 : (_tmp3_label6 = g_quark_from_static_string ("period")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4507 "MediaPage.c"
- default:
- {
-#line 523 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating");
-#line 524 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4514 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label7) ? _tmp3_label7 : (_tmp3_label7 = g_quark_from_static_string ("comma")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4520 "MediaPage.c"
- default:
- {
-#line 527 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating");
-#line 528 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4527 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label8) ? _tmp3_label8 : (_tmp3_label8 = g_quark_from_static_string ("KP_1")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4533 "MediaPage.c"
- default:
- {
-#line 531 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne");
-#line 532 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4540 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label9) ? _tmp3_label9 : (_tmp3_label9 = g_quark_from_static_string ("KP_2")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4546 "MediaPage.c"
- default:
- {
-#line 535 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo");
-#line 536 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4553 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label10) ? _tmp3_label10 : (_tmp3_label10 = g_quark_from_static_string ("KP_3")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4559 "MediaPage.c"
- default:
- {
-#line 539 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree");
-#line 540 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4566 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label11) ? _tmp3_label11 : (_tmp3_label11 = g_quark_from_static_string ("KP_4")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4572 "MediaPage.c"
- default:
- {
-#line 543 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour");
-#line 544 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4579 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label12) ? _tmp3_label12 : (_tmp3_label12 = g_quark_from_static_string ("KP_5")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4585 "MediaPage.c"
- default:
- {
-#line 547 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive");
-#line 548 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4592 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label13) ? _tmp3_label13 : (_tmp3_label13 = g_quark_from_static_string ("KP_0")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4598 "MediaPage.c"
- default:
- {
-#line 551 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated");
-#line 552 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4605 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label14) ? _tmp3_label14 : (_tmp3_label14 = g_quark_from_static_string ("KP_9")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4611 "MediaPage.c"
- default:
- {
-#line 555 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected");
-#line 556 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4618 "MediaPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label15) ? _tmp3_label15 : (_tmp3_label15 = g_quark_from_static_string ("slash")))) {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4624 "MediaPage.c"
- default:
- {
-#line 559 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag");
-#line 560 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4631 "MediaPage.c"
- }
- }
- } else {
-#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 4637 "MediaPage.c"
- default:
- {
-#line 563 "/home/jens/Source/shotwell/src/MediaPage.vala"
- handled = FALSE;
-#line 564 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 4644 "MediaPage.c"
- }
- }
- }
-#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = handled;
-#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp6_) {
-#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = TRUE;
-#line 4654 "MediaPage.c"
- } else {
-#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = 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), event);
-#line 4658 "MediaPage.c"
- }
-#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = _tmp5_;
-#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 4664 "MediaPage.c"
-}
-
-
-static void
-media_page_real_switched_to (Page* base)
-{
- MediaPage * self;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- ConfigFacade* _tmp9_;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- gboolean _tmp14_;
-#line 570 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 571 "/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 574 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 574 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 574 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 574 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = _tmp4_;
-#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = config_facade_get_instance ();
-#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = _tmp6_;
-#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_display_ratings (self, configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 578 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = config_facade_get_instance ();
-#line 578 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _tmp8_;
-#line 578 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_display_tags (self, configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 578 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 579 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 579 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _tmp10_;
-#line 579 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection));
-#line 579 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp11_);
-#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = view_collection_get_selected_count (_tmp13_) > 0;
-#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp14_) {
-#line 4749 "MediaPage.c"
- CheckerboardItem* selected = NULL;
- ViewCollection* _tmp15_;
- ViewCollection* _tmp16_;
- DataView* _tmp17_;
- CheckerboardItem* _tmp18_;
- CheckerboardItem* _tmp19_;
-#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = _tmp15_;
-#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = view_collection_get_selected_at (_tmp16_, 0);
-#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp16_);
-#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala"
- selected = _tmp18_;
-#line 585 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = selected;
-#line 585 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp19_ != NULL) {
-#line 4772 "MediaPage.c"
- CheckerboardItem* _tmp20_;
-#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = selected;
-#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_page_cursor_to_item (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp20_);
-#line 4778 "MediaPage.c"
- }
-#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (selected);
-#line 4782 "MediaPage.c"
- }
-#line 589 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_sync_sort (self);
-#line 4786 "MediaPage.c"
-}
-
-
-static void
-media_page_real_switching_from (Page* base)
-{
- MediaPage * self;
-#line 592 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 593 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_disconnect_slider (self);
-#line 595 "/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 4800 "MediaPage.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 599 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return self ? g_object_ref (self) : NULL;
-#line 4809 "MediaPage.c"
-}
-
-
-static void
-_media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed (MediaPageZoomSliderAssembly* _sender,
- gpointer self)
-{
-#line 600 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_zoom_changed ((MediaPage*) self);
-#line 4819 "MediaPage.c"
-}
-
-
-void
-media_page_connect_slider (MediaPage* self,
- MediaPageZoomSliderAssembly* slider)
-{
- MediaPageZoomSliderAssembly* _tmp0_;
- MediaPageZoomSliderAssembly* _tmp1_;
-#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (slider));
-#line 599 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = _g_object_ref0 (slider);
-#line 599 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (self->priv->connected_slider);
-#line 599 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->connected_slider = _tmp0_;
-#line 600 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = self->priv->connected_slider;
-#line 600 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_signal_connect_object (_tmp1_, "zoom-changed", (GCallback) _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed, self, 0);
-#line 601 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_load_persistent_thumbnail_scale (self);
-#line 4845 "MediaPage.c"
-}
-
-
-static void
-media_page_save_persistent_thumbnail_scale (MediaPage* self)
-{
- MediaPageZoomSliderAssembly* _tmp0_;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- MediaPageZoomSliderAssembly* _tmp3_;
-#line 604 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->connected_slider;
-#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_ == NULL) {
-#line 606 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 4864 "MediaPage.c"
- }
-#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = self->priv->connected_slider;
-#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala"
- configuration_facade_set_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), media_page_zoom_slider_assembly_get_scale (_tmp3_));
-#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 4876 "MediaPage.c"
-}
-
-
-static void
-media_page_load_persistent_thumbnail_scale (MediaPage* self)
-{
- MediaPageZoomSliderAssembly* _tmp0_;
- gint persistent_scale = 0;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- gint _tmp3_;
- MediaPageZoomSliderAssembly* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 611 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 612 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->connected_slider;
-#line 612 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_ == NULL) {
-#line 613 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 4899 "MediaPage.c"
- }
-#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 615 "/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 615 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala"
- persistent_scale = _tmp3_;
-#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = self->priv->connected_slider;
-#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = persistent_scale;
-#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_zoom_slider_assembly_set_scale (_tmp4_, _tmp5_);
-#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = persistent_scale;
-#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_thumb_size (self, _tmp6_);
-#line 4921 "MediaPage.c"
-}
-
-
-void
-media_page_disconnect_slider (MediaPage* self)
-{
- MediaPageZoomSliderAssembly* _tmp0_;
- MediaPageZoomSliderAssembly* _tmp1_;
- guint _tmp2_;
-#line 621 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 622 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->connected_slider;
-#line 622 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_ == NULL) {
-#line 623 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 4939 "MediaPage.c"
- }
-#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = self->priv->connected_slider;
-#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_signal_parse_name ("zoom-changed", MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, &_tmp2_, NULL, FALSE);
-#line 625 "/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 626 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (self->priv->connected_slider);
-#line 626 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->connected_slider = NULL;
-#line 4951 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_zoom_changed (MediaPage* self)
-{
- MediaPageZoomSliderAssembly* _tmp0_;
-#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->connected_slider;
-#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_ != NULL) {
-#line 4963 "MediaPage.c"
- MediaPageZoomSliderAssembly* _tmp1_;
-#line 631 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = self->priv->connected_slider;
-#line 631 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_thumb_size (self, media_page_zoom_slider_assembly_get_scale (_tmp1_));
-#line 4969 "MediaPage.c"
- }
-#line 633 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_save_persistent_thumbnail_scale (self);
-#line 4973 "MediaPage.c"
-}
-
-
-void
-media_page_on_zoom_changed (MediaPage* self)
-{
-#line 629 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 629 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_zoom_changed (self);
-#line 4984 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_export (MediaPage* self)
-{
-#line 636 "/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 636 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 4995 "MediaPage.c"
-}
-
-
-void
-media_page_on_export (MediaPage* self)
-{
-#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_export (self);
-#line 5006 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_increase_size (MediaPage* self)
-{
-#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_increase_zoom_level (self);
-#line 5015 "MediaPage.c"
-}
-
-
-void
-media_page_on_increase_size (MediaPage* self)
-{
-#line 638 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 638 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_increase_size (self);
-#line 5026 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_decrease_size (MediaPage* self)
-{
-#line 643 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_decrease_zoom_level (self);
-#line 5035 "MediaPage.c"
-}
-
-
-void
-media_page_on_decrease_size (MediaPage* self)
-{
-#line 642 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 642 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_decrease_size (self);
-#line 5046 "MediaPage.c"
-}
-
-
-static void
-media_page_on_add_tags (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- AddTagsDialog* dialog = NULL;
- AddTagsDialog* _tmp3_;
- gchar** names = NULL;
- AddTagsDialog* _tmp4_;
- gint _tmp5_;
- gchar** _tmp6_;
- gint names_length1;
- gint _names_size_;
- gchar** _tmp7_;
- gint _tmp7__length1;
-#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 648 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 5080 "MediaPage.c"
- }
-#line 650 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = add_tags_dialog_new ();
-#line 650 "/home/jens/Source/shotwell/src/MediaPage.vala"
- dialog = _tmp3_;
-#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = dialog;
-#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = add_tags_dialog_execute (_tmp4_, &_tmp5_);
-#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala"
- names = _tmp6_;
-#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala"
- names_length1 = _tmp5_;
-#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _names_size_ = names_length1;
-#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = names;
-#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7__length1 = names_length1;
-#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp7_ != NULL) {
-#line 5102 "MediaPage.c"
- CommandManager* _tmp8_;
- CommandManager* _tmp9_;
- HierarchicalTagIndex* _tmp10_;
- HierarchicalTagIndex* _tmp11_;
- gchar** _tmp12_;
- gint _tmp12__length1;
- gint _tmp13_;
- gchar** _tmp14_;
- gchar** _tmp15_;
- gint _tmp15__length1;
- ViewCollection* _tmp16_;
- ViewCollection* _tmp17_;
- GeeList* _tmp18_;
- GeeCollection* _tmp19_;
- AddTagsCommand* _tmp20_;
- AddTagsCommand* _tmp21_;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _tmp8_;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = hierarchical_tag_index_get_global_index ();
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _tmp10_;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = names;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12__length1 = names_length1;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = hierarchical_tag_index_get_paths_for_names_array (_tmp11_, _tmp12_, _tmp12__length1, &_tmp13_);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _tmp14_;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15__length1 = _tmp13_;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = _tmp16_;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = view_collection_get_selected_sources (_tmp17_);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = add_tags_command_new (_tmp15_, _tmp13_, _tmp19_);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = _tmp20_;
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_COMMAND, Command));
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp21_);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp19_);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp17_);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = (_vala_array_free (_tmp15_, _tmp15__length1, (GDestroyNotify) g_free), NULL);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _hierarchical_tag_index_unref0 (_tmp11_);
-#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp9_);
-#line 5163 "MediaPage.c"
- }
-#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala"
- names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL);
-#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _text_entry_dialog_mediator_unref0 (dialog);
-#line 5169 "MediaPage.c"
-}
-
-
-static void
-media_page_on_modify_tags (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- MediaSource* media = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- DataView* _tmp5_;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- MediaSource* _tmp8_;
- ModifyTagsDialog* dialog = NULL;
- MediaSource* _tmp9_;
- ModifyTagsDialog* _tmp10_;
- GeeArrayList* new_tags = NULL;
- ModifyTagsDialog* _tmp11_;
- GeeArrayList* _tmp12_;
- GeeArrayList* _tmp13_;
- CommandManager* _tmp14_;
- CommandManager* _tmp15_;
- MediaSource* _tmp16_;
- GeeArrayList* _tmp17_;
- ModifyTagsCommand* _tmp18_;
- ModifyTagsCommand* _tmp19_;
-#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 662 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 5213 "MediaPage.c"
- }
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media = _tmp8_;
-#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = media;
-#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = modify_tags_dialog_new (_tmp9_);
-#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala"
- dialog = _tmp10_;
-#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = dialog;
-#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = modify_tags_dialog_execute (_tmp11_);
-#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_tags = _tmp12_;
-#line 669 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = new_tags;
-#line 669 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp13_ == NULL) {
-#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (new_tags);
-#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _text_entry_dialog_mediator_unref0 (dialog);
-#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (media);
-#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 5257 "MediaPage.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _tmp14_;
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = media;
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = new_tags;
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = modify_tags_command_new (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = _tmp18_;
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_COMMAND, Command));
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp19_);
-#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp15_);
-#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (new_tags);
-#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _text_entry_dialog_mediator_unref0 (dialog);
-#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (media);
-#line 5283 "MediaPage.c"
-}
-
-
-static void
-media_page_set_display_tags (MediaPage* self,
- gboolean display)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- GValue _tmp4_ = {0};
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
-#line 675 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 676 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 676 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 676 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 676 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_init (&_tmp4_, G_TYPE_BOOLEAN);
-#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_set_boolean (&_tmp4_, display);
-#line 677 "/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, &_tmp4_, NULL, NULL);
-#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_IS_VALUE (&_tmp4_) ? (g_value_unset (&_tmp4_), NULL) : NULL;
-#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp3_);
-#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
-#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 680 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTags", display);
-#line 5332 "MediaPage.c"
-}
-
-
-static void
-media_page_on_new_event (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
-#line 683 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
-#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 5354 "MediaPage.c"
- CommandManager* _tmp3_;
- CommandManager* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- GeeList* _tmp7_;
- GeeList* _tmp8_;
- NewEventCommand* _tmp9_;
- NewEventCommand* _tmp10_;
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = view_collection_get_selected (_tmp6_);
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = new_event_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command));
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp4_);
-#line 5389 "MediaPage.c"
- }
-}
-
-
-static void
-media_page_on_flag_unflag (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- GeeCollection* sources = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeCollection* _tmp6_;
- gboolean flag = FALSE;
- CommandManager* _tmp17_;
- CommandManager* _tmp18_;
- GeeCollection* _tmp19_;
- gboolean _tmp20_;
- FlagUnflagCommand* _tmp21_;
- FlagUnflagCommand* _tmp22_;
-#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 690 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 5426 "MediaPage.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = view_collection_get_selected_sources_of_type (_tmp4_, TYPE_MEDIA_SOURCE);
-#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sources = _tmp6_;
-#line 696 "/home/jens/Source/shotwell/src/MediaPage.vala"
- flag = FALSE;
-#line 5442 "MediaPage.c"
- {
- GeeIterator* _source_it = NULL;
- GeeCollection* _tmp7_;
- GeeIterator* _tmp8_;
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = sources;
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _source_it = _tmp8_;
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- while (TRUE) {
-#line 5455 "MediaPage.c"
- GeeIterator* _tmp9_;
- MediaSource* source = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- Flaggable* flaggable = NULL;
- MediaSource* _tmp12_;
- Flaggable* _tmp13_;
- gboolean _tmp14_ = FALSE;
- Flaggable* _tmp15_;
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _source_it;
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 5471 "MediaPage.c"
- }
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _source_it;
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- source = (MediaSource*) _tmp11_;
-#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = source;
-#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp12_) : NULL);
-#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala"
- flaggable = _tmp13_;
-#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = flaggable;
-#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp15_ != NULL) {
-#line 5489 "MediaPage.c"
- Flaggable* _tmp16_;
-#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = flaggable;
-#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = !flaggable_is_flagged (_tmp16_);
-#line 5495 "MediaPage.c"
- } else {
-#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = FALSE;
-#line 5499 "MediaPage.c"
- }
-#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp14_) {
-#line 700 "/home/jens/Source/shotwell/src/MediaPage.vala"
- flag = TRUE;
-#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (flaggable);
-#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (source);
-#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 5511 "MediaPage.c"
- }
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (flaggable);
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (source);
-#line 5517 "MediaPage.c"
- }
-#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_source_it);
-#line 5521 "MediaPage.c"
- }
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = _tmp17_;
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = sources;
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = flag;
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = flag_unflag_command_new (_tmp19_, _tmp20_);
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = _tmp21_;
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command));
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp22_);
-#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp18_);
-#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (sources);
-#line 5543 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_increase_rating (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- SetRatingCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- SetRatingCommand* _tmp7_;
- SetRatingCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- SetRatingCommand* _tmp11_;
-#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 711 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 5575 "MediaPage.c"
- }
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = set_rating_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), TRUE);
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command = _tmp8_;
-#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = command;
-#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_update_rating_sensitivities (self);
-#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (command);
-#line 5609 "MediaPage.c"
-}
-
-
-void
-media_page_on_increase_rating (MediaPage* self)
-{
-#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_increase_rating (self);
-#line 5620 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_decrease_rating (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- SetRatingCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- SetRatingCommand* _tmp7_;
- SetRatingCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- SetRatingCommand* _tmp11_;
-#line 720 "/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"
- _tmp1_ = _tmp0_;
-#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 721 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 5652 "MediaPage.c"
- }
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = set_rating_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), FALSE);
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command = _tmp8_;
-#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = command;
-#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_update_rating_sensitivities (self);
-#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (command);
-#line 5686 "MediaPage.c"
-}
-
-
-void
-media_page_on_decrease_rating (MediaPage* self)
-{
-#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_decrease_rating (self);
-#line 5697 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_set_rating (MediaPage* self,
- Rating rating)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- SetRatingCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- SetRatingCommand* _tmp7_;
- SetRatingCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- SetRatingCommand* _tmp11_;
-#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 731 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 5730 "MediaPage.c"
- }
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = set_rating_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), rating);
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command = _tmp8_;
-#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = command;
-#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 736 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_update_rating_sensitivities (self);
-#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (command);
-#line 5764 "MediaPage.c"
-}
-
-
-void
-media_page_on_set_rating (MediaPage* self,
- Rating rating)
-{
-#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_set_rating (self, rating);
-#line 5776 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_rate_rejected (MediaPage* self)
-{
-#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_set_rating (self, RATING_REJECTED);
-#line 5785 "MediaPage.c"
-}
-
-
-void
-media_page_on_rate_rejected (MediaPage* self)
-{
-#line 739 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 739 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_rate_rejected (self);
-#line 5796 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_rate_unrated (MediaPage* self)
-{
-#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_set_rating (self, RATING_UNRATED);
-#line 5805 "MediaPage.c"
-}
-
-
-void
-media_page_on_rate_unrated (MediaPage* self)
-{
-#line 743 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 743 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_rate_unrated (self);
-#line 5816 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_rate_one (MediaPage* self)
-{
-#line 748 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_set_rating (self, RATING_ONE);
-#line 5825 "MediaPage.c"
-}
-
-
-void
-media_page_on_rate_one (MediaPage* self)
-{
-#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_rate_one (self);
-#line 5836 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_rate_two (MediaPage* self)
-{
-#line 752 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_set_rating (self, RATING_TWO);
-#line 5845 "MediaPage.c"
-}
-
-
-void
-media_page_on_rate_two (MediaPage* self)
-{
-#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_rate_two (self);
-#line 5856 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_rate_three (MediaPage* self)
-{
-#line 756 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_set_rating (self, RATING_THREE);
-#line 5865 "MediaPage.c"
-}
-
-
-void
-media_page_on_rate_three (MediaPage* self)
-{
-#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_rate_three (self);
-#line 5876 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_rate_four (MediaPage* self)
-{
-#line 760 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_set_rating (self, RATING_FOUR);
-#line 5885 "MediaPage.c"
-}
-
-
-void
-media_page_on_rate_four (MediaPage* self)
-{
-#line 759 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 759 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_rate_four (self);
-#line 5896 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_rate_five (MediaPage* self)
-{
-#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_on_set_rating (self, RATING_FIVE);
-#line 5905 "MediaPage.c"
-}
-
-
-void
-media_page_on_rate_five (MediaPage* self)
-{
-#line 763 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 763 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_rate_five (self);
-#line 5916 "MediaPage.c"
-}
-
-
-static void
-media_page_on_remove_from_library (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeCollection* _tmp3_;
-#line 767 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala"
- remove_photos_from_library (_tmp3_);
-#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 5943 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_move_to_trash (MediaPage* self)
-{
- CheckerboardItem* restore_point = NULL;
- CheckerboardItem* _tmp0_;
- GeeList* sources = NULL;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- GeeList* _tmp8_;
- GeeList* _tmp9_;
- gboolean _tmp10_ = FALSE;
- CheckerboardItem* _tmp11_;
- ViewCollection* _tmp16_;
- ViewCollection* _tmp17_;
- gboolean _tmp18_;
-#line 772 "/home/jens/Source/shotwell/src/MediaPage.vala"
- restore_point = NULL;
-#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)->cursor;
-#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_ != NULL) {
-#line 5968 "MediaPage.c"
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- CheckerboardItem* _tmp3_;
- DataView* _tmp4_;
- CheckerboardItem* _tmp5_;
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)->cursor;
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = view_collection_get_next (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_VIEW, DataView));
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_CHECKERBOARD_ITEM) ? ((CheckerboardItem*) _tmp4_) : NULL;
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp5_ == NULL) {
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 5988 "MediaPage.c"
- }
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (restore_point);
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- restore_point = _tmp5_;
-#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp2_);
-#line 5996 "MediaPage.c"
- }
-#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = _tmp6_;
-#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = view_collection_get_selected_sources (_tmp7_);
-#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = _tmp8_;
-#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp7_);
-#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sources = _tmp9_;
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = restore_point;
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp11_ != NULL) {
-#line 6014 "MediaPage.c"
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- CheckerboardItem* _tmp14_;
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = restore_point;
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject));
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 6028 "MediaPage.c"
- } else {
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = FALSE;
-#line 6032 "MediaPage.c"
- }
-#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp10_) {
-#line 6036 "MediaPage.c"
- CheckerboardItem* _tmp15_;
-#line 781 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = restore_point;
-#line 781 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_page_set_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp15_);
-#line 6042 "MediaPage.c"
- }
-#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = _tmp16_;
-#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = view_collection_get_selected_count (_tmp17_) > 0;
-#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp17_);
-#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp18_) {
-#line 6054 "MediaPage.c"
- CommandManager* _tmp19_;
- CommandManager* _tmp20_;
- GeeList* _tmp21_;
- TrashUntrashPhotosCommand* _tmp22_;
- TrashUntrashPhotosCommand* _tmp23_;
-#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = _tmp19_;
-#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = sources;
-#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = trash_untrash_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), TRUE);
-#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp23_ = _tmp22_;
-#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command));
-#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp23_);
-#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp20_);
-#line 6076 "MediaPage.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (sources);
-#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (restore_point);
-#line 6082 "MediaPage.c"
-}
-
-
-void
-media_page_on_move_to_trash (MediaPage* self)
-{
-#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_move_to_trash (self);
-#line 6093 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_edit_title (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- GeeList* media_sources = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- EditTitleDialog* edit_title_dialog = NULL;
- GeeList* _tmp7_;
- gpointer _tmp8_;
- MediaSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- EditTitleDialog* _tmp12_;
- EditTitleDialog* _tmp13_;
- gchar* new_title = NULL;
- EditTitleDialog* _tmp14_;
- gchar* _tmp15_;
- const gchar* _tmp16_;
-#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 793 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 6132 "MediaPage.c"
- }
-#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = view_collection_get_selected_sources (_tmp4_);
-#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList);
-#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_sources = _tmp6_;
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = media_sources;
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = gee_list_get (_tmp7_, 0);
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = (MediaSource*) _tmp8_;
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = media_source_get_title (_tmp9_);
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _tmp10_;
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = edit_title_dialog_new (_tmp11_);
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (_tmp11_);
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala"
- edit_title_dialog = _tmp13_;
-#line 798 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = edit_title_dialog;
-#line 798 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = edit_title_dialog_execute (_tmp14_);
-#line 798 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_title = _tmp15_;
-#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = new_title;
-#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp16_ != NULL) {
-#line 6176 "MediaPage.c"
- CommandManager* _tmp17_;
- CommandManager* _tmp18_;
- GeeList* _tmp19_;
- const gchar* _tmp20_;
- EditMultipleTitlesCommand* _tmp21_;
- EditMultipleTitlesCommand* _tmp22_;
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = _tmp17_;
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = media_sources;
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = new_title;
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = edit_multiple_titles_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_);
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = _tmp21_;
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command));
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp22_);
-#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp18_);
-#line 6201 "MediaPage.c"
- }
-#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (new_title);
-#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _text_entry_dialog_mediator_unref0 (edit_title_dialog);
-#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (media_sources);
-#line 6209 "MediaPage.c"
-}
-
-
-void
-media_page_on_edit_title (MediaPage* self)
-{
-#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_edit_title (self);
-#line 6220 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_edit_comment (MediaPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- GeeList* media_sources = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- EditCommentDialog* edit_comment_dialog = NULL;
- GeeList* _tmp7_;
- gpointer _tmp8_;
- MediaSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- EditCommentDialog* _tmp12_;
- EditCommentDialog* _tmp13_;
- gchar* new_comment = NULL;
- EditCommentDialog* _tmp14_;
- gchar* _tmp15_;
- const gchar* _tmp16_;
-#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 805 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 6259 "MediaPage.c"
- }
-#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = view_collection_get_selected_sources (_tmp4_);
-#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList);
-#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_sources = _tmp6_;
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = media_sources;
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = gee_list_get (_tmp7_, 0);
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = (MediaSource*) _tmp8_;
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = media_source_get_comment (_tmp9_);
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _tmp10_;
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = edit_comment_dialog_new (_tmp11_, FALSE);
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (_tmp11_);
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala"
- edit_comment_dialog = _tmp13_;
-#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = edit_comment_dialog;
-#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = edit_comment_dialog_execute (_tmp14_);
-#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_comment = _tmp15_;
-#line 811 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = new_comment;
-#line 811 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp16_ != NULL) {
-#line 6303 "MediaPage.c"
- CommandManager* _tmp17_;
- CommandManager* _tmp18_;
- GeeList* _tmp19_;
- const gchar* _tmp20_;
- EditMultipleCommentsCommand* _tmp21_;
- EditMultipleCommentsCommand* _tmp22_;
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = _tmp17_;
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = media_sources;
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = new_comment;
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = edit_multiple_comments_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_);
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = _tmp21_;
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command));
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp22_);
-#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp18_);
-#line 6328 "MediaPage.c"
- }
-#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (new_comment);
-#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
-#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (media_sources);
-#line 6336 "MediaPage.c"
-}
-
-
-void
-media_page_on_edit_comment (MediaPage* self)
-{
-#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_edit_comment (self);
-#line 6347 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_display_titles (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala"
- display = g_variant_get_boolean (value);
-#line 818 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display);
-#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala"
- configuration_facade_set_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display);
-#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 821 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_simple_action_set_state (action, value);
-#line 6375 "MediaPage.c"
-}
-
-
-void
-media_page_on_display_titles (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_display_titles (self, action, value);
-#line 6388 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_display_comments (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala"
- display = g_variant_get_boolean (value);
-#line 827 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display);
-#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala"
- configuration_facade_set_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display);
-#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 830 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_simple_action_set_state (action, value);
-#line 6416 "MediaPage.c"
-}
-
-
-void
-media_page_on_display_comments (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_display_comments (self, action, value);
-#line 6429 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_display_ratings (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 834 "/home/jens/Source/shotwell/src/MediaPage.vala"
- display = g_variant_get_boolean (value);
-#line 836 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_display_ratings (self, display);
-#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala"
- configuration_facade_set_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display);
-#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 839 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_simple_action_set_state (action, value);
-#line 6457 "MediaPage.c"
-}
-
-
-void
-media_page_on_display_ratings (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_display_ratings (self, action, value);
-#line 6470 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_display_tags (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 843 "/home/jens/Source/shotwell/src/MediaPage.vala"
- display = g_variant_get_boolean (value);
-#line 845 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_display_tags (self, display);
-#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala"
- configuration_facade_set_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display);
-#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_simple_action_set_state (action, value);
-#line 6498 "MediaPage.c"
-}
-
-
-void
-media_page_on_display_tags (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_display_tags (self, action, value);
-#line 6511 "MediaPage.c"
-}
-
-
-static void
-media_page_real_get_config_photos_sort (MediaPage* self,
- gboolean* sort_order,
- gint* sort_by)
-{
-#line 851 "/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 851 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 6524 "MediaPage.c"
-}
-
-
-void
-media_page_get_config_photos_sort (MediaPage* self,
- gboolean* sort_order,
- gint* sort_by)
-{
-#line 851 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 851 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->get_config_photos_sort (self, sort_order, sort_by);
-#line 6537 "MediaPage.c"
-}
-
-
-static void
-media_page_real_set_config_photos_sort (MediaPage* self,
- gboolean sort_order,
- gint sort_by)
-{
-#line 853 "/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 853 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 6550 "MediaPage.c"
-}
-
-
-void
-media_page_set_config_photos_sort (MediaPage* self,
- gboolean sort_order,
- gint sort_by)
-{
-#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->set_config_photos_sort (self, sort_order, sort_by);
-#line 6563 "MediaPage.c"
-}
-
-
-static void
-media_page_real_on_sort_changed (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gint sort_by = 0;
- gboolean sort_order = FALSE;
-#line 855 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 856 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_simple_action_set_state (action, value);
-#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sort_by = media_page_get_menu_sort_by (self);
-#line 859 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sort_order = media_page_get_menu_sort_order (self);
-#line 861 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_view_comparator (self, sort_by, sort_order);
-#line 862 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_config_photos_sort (self, sort_order, sort_by);
-#line 6586 "MediaPage.c"
-}
-
-
-void
-media_page_on_sort_changed (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 855 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 855 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->on_sort_changed (self, action, value);
-#line 6599 "MediaPage.c"
-}
-
-
-static void
-media_page_on_raw_developer_changed (MediaPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- RawDeveloper developer = 0;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- GQuark _tmp3_ = 0U;
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp2_label0 = 0;
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- static GQuark _tmp2_label1 = 0;
-#line 6616 "MediaPage.c"
- RawDeveloper _tmp4_;
-#line 865 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 865 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala"
- developer = RAW_DEVELOPER_SHOTWELL;
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = g_variant_get_string (value, NULL);
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("Shotwell")))) {
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 6634 "MediaPage.c"
- default:
- {
-#line 871 "/home/jens/Source/shotwell/src/MediaPage.vala"
- developer = RAW_DEVELOPER_SHOTWELL;
-#line 872 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 6641 "MediaPage.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("Camera")))) {
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 6647 "MediaPage.c"
- default:
- {
-#line 874 "/home/jens/Source/shotwell/src/MediaPage.vala"
- developer = RAW_DEVELOPER_CAMERA;
-#line 875 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 6654 "MediaPage.c"
- }
- }
- } else {
-#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (0) {
-#line 6660 "MediaPage.c"
- default:
- {
-#line 877 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 6665 "MediaPage.c"
- }
- }
- }
-#line 880 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = developer;
-#line 880 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_developer_changed (self, _tmp4_);
-#line 882 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_simple_action_set_state (action, value);
-#line 6675 "MediaPage.c"
-}
-
-
-static void
-media_page_real_developer_changed (MediaPage* self,
- RawDeveloper rd)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- gboolean need_warn = FALSE;
- GeeArrayList* to_set = NULL;
- GeeArrayList* _tmp3_;
- gboolean _tmp26_ = FALSE;
- gboolean _tmp27_;
-#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 887 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 6703 "MediaPage.c"
- }
-#line 892 "/home/jens/Source/shotwell/src/MediaPage.vala"
- need_warn = FALSE;
-#line 895 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 895 "/home/jens/Source/shotwell/src/MediaPage.vala"
- to_set = _tmp3_;
-#line 6711 "MediaPage.c"
- {
- GeeList* _view_list = NULL;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- GeeList* _tmp6_;
- GeeList* _tmp7_;
- gint _view_size = 0;
- GeeList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _view_index = 0;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = _tmp4_;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = view_collection_get_selected (_tmp5_);
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = _tmp6_;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_list = _tmp7_;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _view_list;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_size = _tmp10_;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = -1;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- while (TRUE) {
-#line 6747 "MediaPage.c"
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- DataView* view = NULL;
- GeeList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- Photo* p = NULL;
- DataView* _tmp17_;
- DataSource* _tmp18_;
- Photo* _tmp19_;
- gboolean _tmp20_ = FALSE;
- Photo* _tmp21_;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = _view_index;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _view_index = _tmp11_ + 1;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = _view_index;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _view_size;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 6773 "MediaPage.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = _view_list;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _view_index;
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = gee_list_get (_tmp14_, _tmp15_);
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- view = (DataView*) _tmp16_;
-#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = view;
-#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = data_view_get_source (_tmp17_);
-#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_PHOTO) ? ((Photo*) _tmp18_) : NULL;
-#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp19_ == NULL) {
-#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 6793 "MediaPage.c"
- }
-#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala"
- p = _tmp19_;
-#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = p;
-#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp21_ != NULL) {
-#line 6801 "MediaPage.c"
- Photo* _tmp22_;
-#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = p;
-#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = !raw_developer_is_equivalent (rd, photo_get_raw_developer (_tmp22_));
-#line 6807 "MediaPage.c"
- } else {
-#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = FALSE;
-#line 6811 "MediaPage.c"
- }
-#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp20_) {
-#line 6815 "MediaPage.c"
- GeeArrayList* _tmp23_;
- DataView* _tmp24_;
- Photo* _tmp25_;
-#line 899 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp23_ = to_set;
-#line 899 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp24_ = view;
-#line 899 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_);
-#line 901 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp25_ = p;
-#line 901 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (photo_has_transformations (_tmp25_)) {
-#line 902 "/home/jens/Source/shotwell/src/MediaPage.vala"
- need_warn = TRUE;
-#line 6831 "MediaPage.c"
- }
- }
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (p);
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (view);
-#line 6838 "MediaPage.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_view_list);
-#line 6842 "MediaPage.c"
- }
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp27_ = need_warn;
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (!_tmp27_) {
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp26_ = TRUE;
-#line 6850 "MediaPage.c"
- } else {
- GeeArrayList* _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp28_ = to_set;
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp29_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp30_ = _tmp29_;
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp26_ = dialogs_confirm_warn_developer_changed (_tmp30_);
-#line 6863 "MediaPage.c"
- }
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp26_) {
-#line 6867 "MediaPage.c"
- SetRawDeveloperCommand* command = NULL;
- GeeArrayList* _tmp31_;
- SetRawDeveloperCommand* _tmp32_;
- CommandManager* _tmp33_;
- CommandManager* _tmp34_;
- SetRawDeveloperCommand* _tmp35_;
-#line 908 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp31_ = to_set;
-#line 908 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp32_ = set_raw_developer_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ITERABLE, GeeIterable), rd);
-#line 908 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command = _tmp32_;
-#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp33_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp34_ = _tmp33_;
-#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp35_ = command;
-#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala"
- command_manager_execute (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_COMMAND, Command));
-#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _command_manager_unref0 (_tmp34_);
-#line 911 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_update_development_menu_item_sensitivity (self);
-#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (command);
-#line 6894 "MediaPage.c"
- }
-#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (to_set);
-#line 6898 "MediaPage.c"
-}
-
-
-void
-media_page_developer_changed (MediaPage* self,
- RawDeveloper rd)
-{
-#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala"
- MEDIA_PAGE_GET_CLASS (self)->developer_changed (self, rd);
-#line 6910 "MediaPage.c"
-}
-
-
-static void
-media_page_real_set_display_titles (CheckerboardPage* base,
- gboolean display)
-{
- MediaPage * self;
-#line 915 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 916 "/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), display);
-#line 918 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle", display);
-#line 6925 "MediaPage.c"
-}
-
-
-static void
-media_page_real_set_display_comments (CheckerboardPage* base,
- gboolean display)
-{
- MediaPage * self;
-#line 921 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 922 "/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), display);
-#line 924 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment", display);
-#line 6940 "MediaPage.c"
-}
-
-
-static GAction*
-media_page_sort_by_title_action (MediaPage* self)
-{
- GAction* result = NULL;
- GAction* action = NULL;
- GAction* _tmp0_;
-#line 927 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL);
-#line 928 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SortBy");
-#line 928 "/home/jens/Source/shotwell/src/MediaPage.vala"
- action = _tmp0_;
-#line 929 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _vala_assert (action != NULL, "action != null");
-#line 930 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = action;
-#line 930 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 6962 "MediaPage.c"
-}
-
-
-static GAction*
-media_page_sort_ascending_action (MediaPage* self)
-{
- GAction* result = NULL;
- GAction* action = NULL;
- GAction* _tmp0_;
-#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL);
-#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Sort");
-#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala"
- action = _tmp0_;
-#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _vala_assert (action != NULL, "action != null");
-#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = action;
-#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 6984 "MediaPage.c"
-}
-
-
-gint
-media_page_get_menu_sort_by (MediaPage* self)
-{
- gint result = 0;
- GAction* _tmp0_;
- GAction* _tmp1_;
- GVariant* _tmp2_;
- GVariant* _tmp3_;
- const gchar* _tmp4_;
- gint _tmp5_;
-#line 939 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), 0);
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = media_page_sort_by_title_action (self);
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = g_action_get_state (_tmp1_);
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = g_variant_get_string (_tmp3_, NULL);
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = atoi (_tmp4_);
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp3_);
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = _tmp5_;
-#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7020 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new30 (const gchar* value)
-{
-#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 7029 "MediaPage.c"
-}
-
-
-void
-media_page_set_menu_sort_by (MediaPage* self,
- gint val)
-{
- gchar* sort = NULL;
- gchar* _tmp0_;
- GAction* _tmp1_;
- GAction* _tmp2_;
- GVariant* _tmp3_;
-#line 944 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = g_strdup_printf ("%d", val);
-#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sort = _tmp0_;
-#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = media_page_sort_by_title_action (self);
-#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _variant_new30 (sort);
-#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_change_state (_tmp2_, _tmp3_);
-#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp3_);
-#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 944 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (sort);
-#line 7062 "MediaPage.c"
-}
-
-
-gboolean
-media_page_get_menu_sort_order (MediaPage* self)
-{
- gboolean result = FALSE;
- GAction* _tmp0_;
- GAction* _tmp1_;
- GVariant* _tmp2_;
- GVariant* _tmp3_;
- const gchar* _tmp4_;
- gboolean _tmp5_;
-#line 949 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE);
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = media_page_sort_ascending_action (self);
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = g_action_get_state (_tmp1_);
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = g_variant_get_string (_tmp3_, NULL);
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = g_strcmp0 (_tmp4_, "ascending") == 0;
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp3_);
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = _tmp5_;
-#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7098 "MediaPage.c"
-}
-
-
-static GVariant*
-_variant_new31 (const gchar* value)
-{
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 7107 "MediaPage.c"
-}
-
-
-void
-media_page_set_menu_sort_order (MediaPage* self,
- gboolean ascending)
-{
- const gchar* _tmp0_ = NULL;
- GAction* _tmp1_;
- GAction* _tmp2_;
- GVariant* _tmp3_;
-#line 954 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (ascending) {
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = "ascending";
-#line 7125 "MediaPage.c"
- } else {
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = "descending";
-#line 7129 "MediaPage.c"
- }
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = media_page_sort_ascending_action (self);
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _variant_new31 (_tmp0_);
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_action_change_state (_tmp2_, _tmp3_);
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_variant_unref0 (_tmp3_);
-#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 7143 "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 965 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7156 "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 966 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7169 "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 967 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7182 "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 972 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7195 "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 973 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7208 "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 974 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7221 "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 979 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7234 "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 980 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7247 "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 981 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7260 "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 986 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7273 "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 987 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7286 "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 988 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7299 "MediaPage.c"
-}
-
-
-static void
-media_page_set_view_comparator (MediaPage* self,
- gint sort_by,
- gboolean ascending)
-{
- Comparator comparator = NULL;
- void* comparator_target = NULL;
- GDestroyNotify comparator_target_destroy_notify = NULL;
- ComparatorPredicate predicate = NULL;
- void* predicate_target = NULL;
- GDestroyNotify predicate_target_destroy_notify = NULL;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- Comparator _tmp4_;
- void* _tmp4__target;
- ComparatorPredicate _tmp5_;
- void* _tmp5__target;
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala"
- switch (sort_by) {
-#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala"
- case MEDIA_PAGE_SORT_BY_TITLE:
-#line 7326 "MediaPage.c"
- {
-#line 964 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (ascending) {
-#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_title_ascending_comparator_comparator;
-#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7344 "MediaPage.c"
- } else {
-#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_title_descending_comparator_comparator;
-#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7360 "MediaPage.c"
- }
-#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL);
-#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = NULL;
-#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = _thumbnail_title_comparator_predicate_comparator_predicate;
-#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 968 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 7378 "MediaPage.c"
- }
-#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala"
- case MEDIA_PAGE_SORT_BY_EXPOSURE_DATE:
-#line 7382 "MediaPage.c"
- {
-#line 971 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (ascending) {
-#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_exposure_time_ascending_comparator_comparator;
-#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7400 "MediaPage.c"
- } else {
-#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_exposure_time_desending_comparator_comparator;
-#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7416 "MediaPage.c"
- }
-#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL);
-#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = NULL;
-#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = _thumbnail_exposure_time_comparator_predicate_comparator_predicate;
-#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 975 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 7434 "MediaPage.c"
- }
-#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala"
- case MEDIA_PAGE_SORT_BY_RATING:
-#line 7438 "MediaPage.c"
- {
-#line 978 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (ascending) {
-#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_rating_ascending_comparator_comparator;
-#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7456 "MediaPage.c"
- } else {
-#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_rating_descending_comparator_comparator;
-#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7472 "MediaPage.c"
- }
-#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL);
-#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = NULL;
-#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = _thumbnail_rating_comparator_predicate_comparator_predicate;
-#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 7490 "MediaPage.c"
- }
-#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala"
- case MEDIA_PAGE_SORT_BY_FILENAME:
-#line 7494 "MediaPage.c"
- {
-#line 985 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (ascending) {
-#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_filename_ascending_comparator_comparator;
-#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7512 "MediaPage.c"
- } else {
-#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_filename_descending_comparator_comparator;
-#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7528 "MediaPage.c"
- }
-#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL);
-#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = NULL;
-#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = _thumbnail_filename_comparator_predicate_comparator_predicate;
-#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 7546 "MediaPage.c"
- }
- default:
- {
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = g_strdup_printf ("%i", media_page_get_menu_sort_by (self));
-#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_debug ("MediaPage.vala:992: Unknown sort criteria: %s", _tmp1_);
-#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_free0 (_tmp1_);
-#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = _thumbnail_title_descending_comparator_comparator;
-#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 994 "/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"
- predicate = NULL;
-#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = _thumbnail_title_comparator_predicate_comparator_predicate;
-#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 995 "/home/jens/Source/shotwell/src/MediaPage.vala"
- break;
-#line 7590 "MediaPage.c"
- }
- }
-#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = comparator;
-#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4__target = comparator_target;
-#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = predicate;
-#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5__target = predicate_target;
-#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), _tmp4_, _tmp4__target, _tmp5_, _tmp5__target);
-#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp3_);
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL);
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate = NULL;
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target = NULL;
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- predicate_target_destroy_notify = NULL;
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator = NULL;
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target = NULL;
-#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala"
- comparator_target_destroy_notify = NULL;
-#line 7625 "MediaPage.c"
-}
-
-
-void
-media_page_sync_sort (MediaPage* self)
-{
- gboolean sort_ascending = FALSE;
- gint sort_by = 0;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_ = 0;
-#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_get_config_photos_sort (self, &_tmp0_, &_tmp1_);
-#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sort_ascending = _tmp0_;
-#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala"
- sort_by = _tmp1_;
-#line 1020 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_menu_sort_by (self, sort_by);
-#line 1021 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_menu_sort_order (self, sort_ascending);
-#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_view_comparator (self, sort_by, sort_ascending);
-#line 7650 "MediaPage.c"
-}
-
-
-static void
-media_page_real_destroy (GtkWidget* base)
-{
- MediaPage * self;
-#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage);
-#line 1027 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_disconnect_slider (self);
-#line 1029 "/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 7664 "MediaPage.c"
-}
-
-
-void
-media_page_increase_zoom_level (MediaPage* self)
-{
- MediaPageZoomSliderAssembly* _tmp0_;
-#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 1033 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->connected_slider;
-#line 1033 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_ != NULL) {
-#line 7678 "MediaPage.c"
- MediaPageZoomSliderAssembly* _tmp1_;
-#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = self->priv->connected_slider;
-#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_zoom_slider_assembly_increase_step (_tmp1_);
-#line 7684 "MediaPage.c"
- } else {
- gint new_scale = 0;
- gint _tmp2_;
-#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_scale = media_page_compute_zoom_scale_increase (media_page_get_thumb_size (self));
-#line 1037 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_save_persistent_thumbnail_scale (self);
-#line 1038 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = new_scale;
-#line 1038 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_thumb_size (self, _tmp2_);
-#line 7696 "MediaPage.c"
- }
-}
-
-
-void
-media_page_decrease_zoom_level (MediaPage* self)
-{
- MediaPageZoomSliderAssembly* _tmp0_;
-#line 1042 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 1043 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->connected_slider;
-#line 1043 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_ != NULL) {
-#line 7711 "MediaPage.c"
- MediaPageZoomSliderAssembly* _tmp1_;
-#line 1044 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = self->priv->connected_slider;
-#line 1044 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_zoom_slider_assembly_decrease_step (_tmp1_);
-#line 7717 "MediaPage.c"
- } else {
- gint new_scale = 0;
- gint _tmp2_;
-#line 1046 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_scale = media_page_compute_zoom_scale_decrease (media_page_get_thumb_size (self));
-#line 1047 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_save_persistent_thumbnail_scale (self);
-#line 1048 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = new_scale;
-#line 1048 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_set_thumb_size (self, _tmp2_);
-#line 7729 "MediaPage.c"
- }
-}
-
-
-static DataView*
-media_page_real_create_thumbnail (MediaPage* self,
- DataSource* source)
-{
- DataView* result = NULL;
- Thumbnail* _tmp0_;
-#line 1052 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 1053 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = thumbnail_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), media_page_get_thumb_size (self));
-#line 1053 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView);
-#line 1053 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7748 "MediaPage.c"
-}
-
-
-DataView*
-media_page_create_thumbnail (MediaPage* self,
- DataSource* source)
-{
-#line 1052 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL);
-#line 1052 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return MEDIA_PAGE_GET_CLASS (self)->create_thumbnail (self, source);
-#line 7760 "MediaPage.c"
-}
-
-
-void
-media_page_set_thumb_size (MediaPage* self,
- gint new_scale)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- CheckerboardLayout* _tmp5_;
- CheckerboardLayout* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- GValue _tmp11_ = {0};
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 1058 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (IS_MEDIA_PAGE (self));
-#line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (media_page_get_thumb_size (self) == new_scale) {
-#line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = TRUE;
-#line 7792 "MediaPage.c"
- } else {
-#line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = !page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 7796 "MediaPage.c"
- }
-#line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp0_) {
-#line 1060 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 7802 "MediaPage.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = thumbnail_get_MIN_SCALE ();
-#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = thumbnail_get_MAX_SCALE ();
-#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_scale = CLAMP (new_scale, _tmp2_, _tmp4_);
-#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage));
-#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_layout_set_scale (_tmp6_, new_scale);
-#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 1066 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1066 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 1066 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1066 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_init (&_tmp11_, G_TYPE_INT);
-#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_value_set_int (&_tmp11_, new_scale);
-#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SIZE, &_tmp11_, NULL, NULL);
-#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_IS_VALUE (&_tmp11_) ? (g_value_unset (&_tmp11_), NULL) : NULL;
-#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = _tmp12_;
-#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = thumbnail_get_MAX_SCALE ();
-#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = _tmp14_;
-#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", new_scale < _tmp15_);
-#line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = thumbnail_get_MIN_SCALE ();
-#line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = _tmp16_;
-#line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", new_scale > _tmp17_);
-#line 7864 "MediaPage.c"
-}
-
-
-gint
-media_page_get_thumb_size (MediaPage* self)
-{
- gint result = 0;
- CheckerboardLayout* _tmp0_;
- CheckerboardLayout* _tmp1_;
- gboolean _tmp2_;
- CheckerboardLayout* _tmp7_;
- CheckerboardLayout* _tmp8_;
- gint _tmp9_;
-#line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (IS_MEDIA_PAGE (self), 0);
-#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage));
-#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = checkerboard_layout_get_scale (_tmp1_) <= 0;
-#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (_tmp2_) {
-#line 7890 "MediaPage.c"
- CheckerboardLayout* _tmp3_;
- CheckerboardLayout* _tmp4_;
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
-#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage));
-#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = config_facade_get_instance ();
-#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = _tmp5_;
-#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala"
- checkerboard_layout_set_scale (_tmp4_, configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 7909 "MediaPage.c"
- }
-#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage));
-#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp8_ = _tmp7_;
-#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = checkerboard_layout_get_scale (_tmp8_);
-#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = _tmp9_;
-#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 7923 "MediaPage.c"
-}
-
-
-static gboolean
-_media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- 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 7936 "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 7946 "MediaPage.c"
-}
-
-
-static gboolean
-_media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- 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 7959 "MediaPage.c"
-}
-
-
-MediaPageZoomSliderAssembly*
-media_page_zoom_slider_assembly_construct (GType object_type)
-{
- MediaPageZoomSliderAssembly * self = NULL;
- GtkBox* zoom_group = NULL;
- GtkBox* _tmp0_;
- GtkImage* zoom_out = NULL;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- GtkImage* _tmp3_;
- GtkImage* _tmp4_;
- GtkEventBox* zoom_out_box = NULL;
- GtkEventBox* _tmp5_;
- gint persisted_scale = 0;
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- GtkAdjustment* _tmp11_;
- GtkAdjustment* _tmp12_;
- GtkScale* _tmp13_;
- GtkScale* _tmp14_;
- GtkScale* _tmp15_;
- GtkScale* _tmp16_;
- GtkScale* _tmp17_;
- GtkScale* _tmp18_;
- GtkImage* zoom_in = NULL;
- GdkPixbuf* _tmp19_;
- GdkPixbuf* _tmp20_;
- GtkImage* _tmp21_;
- GtkImage* _tmp22_;
- GtkEventBox* zoom_in_box = NULL;
- GtkEventBox* _tmp23_;
-#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = (MediaPageZoomSliderAssembly*) g_object_new (object_type, NULL);
-#line 136 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-#line 136 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_object_ref_sink (_tmp0_);
-#line 136 "/home/jens/Source/shotwell/src/MediaPage.vala"
- zoom_group = _tmp0_;
-#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = resources_load_icon (RESOURCES_ICON_ZOOM_OUT, RESOURCES_ICON_ZOOM_SCALE);
-#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp2_);
-#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_object_ref_sink (_tmp3_);
-#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = _tmp3_;
-#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala"
- zoom_out = _tmp4_;
-#line 140 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = (GtkEventBox*) gtk_event_box_new ();
-#line 140 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_object_ref_sink (_tmp5_);
-#line 140 "/home/jens/Source/shotwell/src/MediaPage.vala"
- zoom_out_box = _tmp5_;
-#line 141 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_event_box_set_above_child (zoom_out_box, TRUE);
-#line 142 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_event_box_set_visible_window (zoom_out_box, FALSE);
-#line 143 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_out, gtk_widget_get_type (), GtkWidget));
-#line 144 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event, self, 0);
-#line 146 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 150 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp6_ = config_facade_get_instance ();
-#line 150 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp7_ = _tmp6_;
-#line 150 "/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 150 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 150 "/home/jens/Source/shotwell/src/MediaPage.vala"
- persisted_scale = _tmp8_;
-#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp9_ = thumbnail_get_MAX_SCALE ();
-#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp10_ = _tmp9_;
-#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp11_ = gtk_adjustment_new (media_page_zoom_slider_assembly_scale_to_slider (persisted_scale), (gdouble) 0, media_page_zoom_slider_assembly_scale_to_slider (_tmp10_), (gdouble) 1, (gdouble) 10, (gdouble) 0);
-#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_object_ref_sink (_tmp11_);
-#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (self->priv->adjustment);
-#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->adjustment = _tmp11_;
-#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp12_ = self->priv->adjustment;
-#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp13_ = (GtkScale*) gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, _tmp12_);
-#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_object_ref_sink (_tmp13_);
-#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (self->priv->slider);
-#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->slider = _tmp13_;
-#line 155 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp14_ = self->priv->slider;
-#line 155 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed, self, 0);
-#line 156 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp15_ = self->priv->slider;
-#line 156 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_scale_set_draw_value (_tmp15_, FALSE);
-#line 157 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp16_ = self->priv->slider;
-#line 157 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), 200, -1);
-#line 158 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp17_ = self->priv->slider;
-#line 158 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), _ ("Adjust the size of the thumbnails"));
-#line 160 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp18_ = self->priv->slider;
-#line 160 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp19_ = resources_load_icon (RESOURCES_ICON_ZOOM_IN, RESOURCES_ICON_ZOOM_SCALE);
-#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp20_ = _tmp19_;
-#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp21_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp20_);
-#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_object_ref_sink (_tmp21_);
-#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp22_ = _tmp21_;
-#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (_tmp20_);
-#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala"
- zoom_in = _tmp22_;
-#line 164 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp23_ = (GtkEventBox*) gtk_event_box_new ();
-#line 164 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_object_ref_sink (_tmp23_);
-#line 164 "/home/jens/Source/shotwell/src/MediaPage.vala"
- zoom_in_box = _tmp23_;
-#line 165 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_event_box_set_above_child (zoom_in_box, TRUE);
-#line 166 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_event_box_set_visible_window (zoom_in_box, FALSE);
-#line 167 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_in, gtk_widget_get_type (), GtkWidget));
-#line 168 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event, self, 0);
-#line 170 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 172 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_group, gtk_widget_get_type (), GtkWidget));
-#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (zoom_in_box);
-#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (zoom_in);
-#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (zoom_out_box);
-#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (zoom_out);
-#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (zoom_group);
-#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return self;
-#line 8131 "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 8140 "MediaPage.c"
-}
-
-
-gdouble
-media_page_zoom_slider_assembly_scale_to_slider (gint value)
-{
- gdouble result = 0.0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 176 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = thumbnail_get_MIN_SCALE ();
-#line 176 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 176 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _vala_assert (value >= _tmp1_, "value >= Thumbnail.MIN_SCALE");
-#line 177 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = thumbnail_get_MAX_SCALE ();
-#line 177 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 177 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _vala_assert (value <= _tmp3_, "value <= Thumbnail.MAX_SCALE");
-#line 179 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = thumbnail_get_MIN_SCALE ();
-#line 179 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = _tmp4_;
-#line 179 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = (gdouble) ((value - _tmp5_) / MEDIA_PAGE_SLIDER_STEPPING);
-#line 179 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 8174 "MediaPage.c"
-}
-
-
-gint
-media_page_zoom_slider_assembly_slider_to_scale (gdouble value)
-{
- gint result = 0;
- gint res = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 183 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = thumbnail_get_MIN_SCALE ();
-#line 183 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/MediaPage.vala"
- res = ((gint) (value * MEDIA_PAGE_SLIDER_STEPPING)) + _tmp1_;
-#line 185 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = thumbnail_get_MIN_SCALE ();
-#line 185 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp3_ = _tmp2_;
-#line 185 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _vala_assert (res >= _tmp3_, "res >= Thumbnail.MIN_SCALE");
-#line 186 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp4_ = thumbnail_get_MAX_SCALE ();
-#line 186 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp5_ = _tmp4_;
-#line 186 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _vala_assert (res <= _tmp5_, "res <= Thumbnail.MAX_SCALE");
-#line 188 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = res;
-#line 188 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 8211 "MediaPage.c"
-}
-
-
-static gboolean
-media_page_zoom_slider_assembly_on_zoom_out_pressed (MediaPageZoomSliderAssembly* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 191 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), FALSE);
-#line 191 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 192 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_zoom_slider_assembly_snap_to_min (self);
-#line 193 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = TRUE;
-#line 193 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 8230 "MediaPage.c"
-}
-
-
-static gboolean
-media_page_zoom_slider_assembly_on_zoom_in_pressed (MediaPageZoomSliderAssembly* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 196 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), FALSE);
-#line 196 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 197 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_zoom_slider_assembly_snap_to_max (self);
-#line 198 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = TRUE;
-#line 198 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 8249 "MediaPage.c"
-}
-
-
-static void
-media_page_zoom_slider_assembly_on_slider_changed (MediaPageZoomSliderAssembly* self)
-{
-#line 201 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self));
-#line 202 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_signal_emit (self, media_page_zoom_slider_assembly_signals[MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_ZOOM_CHANGED_SIGNAL], 0);
-#line 8260 "MediaPage.c"
-}
-
-
-void
-media_page_zoom_slider_assembly_snap_to_min (MediaPageZoomSliderAssembly* self)
-{
- GtkScale* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 205 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self));
-#line 206 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->slider;
-#line 206 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = thumbnail_get_MIN_SCALE ();
-#line 206 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 206 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (_tmp2_));
-#line 8280 "MediaPage.c"
-}
-
-
-void
-media_page_zoom_slider_assembly_snap_to_max (MediaPageZoomSliderAssembly* self)
-{
- GtkScale* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 209 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self));
-#line 210 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->slider;
-#line 210 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = thumbnail_get_MAX_SCALE ();
-#line 210 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = _tmp1_;
-#line 210 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (_tmp2_));
-#line 8300 "MediaPage.c"
-}
-
-
-void
-media_page_zoom_slider_assembly_increase_step (MediaPageZoomSliderAssembly* self)
-{
- gint new_scale = 0;
- gint _tmp0_;
- GtkScale* _tmp1_;
- gint _tmp2_;
-#line 213 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self));
-#line 214 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_scale = media_page_compute_zoom_scale_increase (media_page_zoom_slider_assembly_get_scale (self));
-#line 216 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = new_scale;
-#line 216 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (media_page_zoom_slider_assembly_get_scale (self) == _tmp0_) {
-#line 217 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 8321 "MediaPage.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = self->priv->slider;
-#line 219 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = new_scale;
-#line 219 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (_tmp2_));
-#line 8329 "MediaPage.c"
-}
-
-
-void
-media_page_zoom_slider_assembly_decrease_step (MediaPageZoomSliderAssembly* self)
-{
- gint new_scale = 0;
- gint _tmp0_;
- GtkScale* _tmp1_;
- gint _tmp2_;
-#line 222 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self));
-#line 223 "/home/jens/Source/shotwell/src/MediaPage.vala"
- new_scale = media_page_compute_zoom_scale_decrease (media_page_zoom_slider_assembly_get_scale (self));
-#line 225 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = new_scale;
-#line 225 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (media_page_zoom_slider_assembly_get_scale (self) == _tmp0_) {
-#line 226 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 8350 "MediaPage.c"
- }
-#line 228 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp1_ = self->priv->slider;
-#line 228 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp2_ = new_scale;
-#line 228 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (_tmp2_));
-#line 8358 "MediaPage.c"
-}
-
-
-gint
-media_page_zoom_slider_assembly_get_scale (MediaPageZoomSliderAssembly* self)
-{
- gint result = 0;
- GtkScale* _tmp0_;
-#line 231 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), 0);
-#line 232 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->slider;
-#line 232 "/home/jens/Source/shotwell/src/MediaPage.vala"
- result = media_page_zoom_slider_assembly_slider_to_scale (gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange)));
-#line 232 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return result;
-#line 8375 "MediaPage.c"
-}
-
-
-void
-media_page_zoom_slider_assembly_set_scale (MediaPageZoomSliderAssembly* self,
- gint scale)
-{
- GtkScale* _tmp0_;
-#line 235 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self));
-#line 236 "/home/jens/Source/shotwell/src/MediaPage.vala"
- if (media_page_zoom_slider_assembly_get_scale (self) == scale) {
-#line 237 "/home/jens/Source/shotwell/src/MediaPage.vala"
- return;
-#line 8390 "MediaPage.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _tmp0_ = self->priv->slider;
-#line 239 "/home/jens/Source/shotwell/src/MediaPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (scale));
-#line 8396 "MediaPage.c"
-}
-
-
-static void
-media_page_zoom_slider_assembly_class_init (MediaPageZoomSliderAssemblyClass * klass)
-{
-#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_zoom_slider_assembly_parent_class = g_type_class_peek_parent (klass);
-#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_type_class_add_private (klass, sizeof (MediaPageZoomSliderAssemblyPrivate));
-#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_OBJECT_CLASS (klass)->finalize = media_page_zoom_slider_assembly_finalize;
-#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_zoom_slider_assembly_signals[MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_ZOOM_CHANGED_SIGNAL] = 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 8411 "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 8420 "MediaPage.c"
-}
-
-
-static void
-media_page_zoom_slider_assembly_finalize (GObject * obj)
-{
- MediaPageZoomSliderAssembly * self;
-#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly);
-#line 130 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (self->priv->slider);
-#line 131 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _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 8436 "MediaPage.c"
-}
-
-
-GType
-media_page_zoom_slider_assembly_get_type (void)
-{
- static volatile gsize media_page_zoom_slider_assembly_type_id__volatile = 0;
- if (g_once_init_enter (&media_page_zoom_slider_assembly_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaPageZoomSliderAssemblyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_page_zoom_slider_assembly_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaPageZoomSliderAssembly), 0, (GInstanceInitFunc) media_page_zoom_slider_assembly_instance_init, NULL };
- GType media_page_zoom_slider_assembly_type_id;
- media_page_zoom_slider_assembly_type_id = g_type_register_static (gtk_tool_item_get_type (), "MediaPageZoomSliderAssembly", &g_define_type_info, 0);
- g_once_init_leave (&media_page_zoom_slider_assembly_type_id__volatile, media_page_zoom_slider_assembly_type_id);
- }
- return media_page_zoom_slider_assembly_type_id__volatile;
-}
-
-
-static void
-media_page_class_init (MediaPageClass * klass)
-{
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- media_page_parent_class = g_type_class_peek_parent (klass);
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- g_type_class_add_private (klass, sizeof (MediaPagePrivate));
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) media_page_real_init_collect_ui_filenames;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) media_page_real_add_actions;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) media_page_real_remove_actions;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) media_page_real_update_actions;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) media_page_real_get_view_tracker;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->on_mousewheel_up = (gboolean (*) (Page *, GdkEventScroll*)) media_page_real_on_mousewheel_up;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->on_mousewheel_down = (gboolean (*) (Page *, GdkEventScroll*)) media_page_real_on_mousewheel_down;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) media_page_real_on_app_key_pressed;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) media_page_real_switched_to;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((PageClass *) klass)->switching_from = (void (*) (Page *)) media_page_real_switching_from;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_zoom_changed = (void (*) (MediaPage *)) media_page_real_on_zoom_changed;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_export = (void (*) (MediaPage *)) media_page_real_on_export;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_increase_size = (void (*) (MediaPage *)) media_page_real_on_increase_size;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_decrease_size = (void (*) (MediaPage *)) media_page_real_on_decrease_size;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_increase_rating = (void (*) (MediaPage *)) media_page_real_on_increase_rating;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_decrease_rating = (void (*) (MediaPage *)) media_page_real_on_decrease_rating;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_set_rating = (void (*) (MediaPage *, Rating)) media_page_real_on_set_rating;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_rate_rejected = (void (*) (MediaPage *)) media_page_real_on_rate_rejected;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_rate_unrated = (void (*) (MediaPage *)) media_page_real_on_rate_unrated;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_rate_one = (void (*) (MediaPage *)) media_page_real_on_rate_one;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_rate_two = (void (*) (MediaPage *)) media_page_real_on_rate_two;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_rate_three = (void (*) (MediaPage *)) media_page_real_on_rate_three;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_rate_four = (void (*) (MediaPage *)) media_page_real_on_rate_four;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_rate_five = (void (*) (MediaPage *)) media_page_real_on_rate_five;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_move_to_trash = (void (*) (MediaPage *)) media_page_real_on_move_to_trash;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_edit_title = (void (*) (MediaPage *)) media_page_real_on_edit_title;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_edit_comment = (void (*) (MediaPage *)) media_page_real_on_edit_comment;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_display_titles = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_display_titles;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_display_comments = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_display_comments;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_display_ratings = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_display_ratings;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_display_tags = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_display_tags;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) media_page_real_get_config_photos_sort;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) media_page_real_set_config_photos_sort;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->on_sort_changed = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_sort_changed;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->developer_changed = (void (*) (MediaPage *, RawDeveloper)) media_page_real_developer_changed;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((CheckerboardPageClass *) klass)->set_display_titles = (void (*) (CheckerboardPage *, gboolean)) media_page_real_set_display_titles;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((CheckerboardPageClass *) klass)->set_display_comments = (void (*) (CheckerboardPage *, gboolean)) media_page_real_set_display_comments;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((GtkWidgetClass *) klass)->destroy = (void (*) (GtkWidget *)) media_page_real_destroy;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- ((MediaPageClass *) klass)->create_thumbnail = (DataView* (*) (MediaPage *, DataSource*)) media_page_real_create_thumbnail;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- G_OBJECT_CLASS (klass)->finalize = media_page_finalize;
-#line 8541 "MediaPage.c"
-}
-
-
-static void
-media_page_instance_init (MediaPage * self)
-{
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv = MEDIA_PAGE_GET_PRIVATE (self);
-#line 243 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->connected_slider = NULL;
-#line 244 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self->priv->dnd_handler = NULL;
-#line 8554 "MediaPage.c"
-}
-
-
-static void
-media_page_finalize (GObject * obj)
-{
- MediaPage * self;
-#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_PAGE, MediaPage);
-#line 243 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _g_object_unref0 (self->priv->connected_slider);
-#line 244 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _drag_and_drop_handler_unref0 (self->priv->dnd_handler);
-#line 245 "/home/jens/Source/shotwell/src/MediaPage.vala"
- _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 8572 "MediaPage.c"
-}
-
-
-GType
-media_page_get_type (void)
-{
- static volatile gsize media_page_type_id__volatile = 0;
- if (g_once_init_enter (&media_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaPage), 0, (GInstanceInitFunc) media_page_instance_init, NULL };
- GType media_page_type_id;
- media_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "MediaPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&media_page_type_id__volatile, media_page_type_id);
- }
- return media_page_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/MediaPage.vala b/src/MediaPage.vala
index eeb79e6..8316906 100644
--- a/src/MediaPage.vala
+++ b/src/MediaPage.vala
@@ -5,10 +5,6 @@
*/
public class MediaSourceItem : CheckerboardItem {
- private static Gdk.Pixbuf basis_sprocket_pixbuf = null;
- private static Gdk.Pixbuf current_sprocket_pixbuf = null;
-
- private bool enable_sprockets = false;
private string? natural_collation_key = null;
// preserve the same constructor arguments and semantics as CheckerboardItem so that we're
@@ -16,85 +12,8 @@ public class MediaSourceItem : CheckerboardItem {
public MediaSourceItem(ThumbnailSource source, Dimensions initial_pixbuf_dim, string title,
string? comment, bool marked_up = false, Pango.Alignment alignment = Pango.Alignment.LEFT) {
base(source, initial_pixbuf_dim, title, comment, marked_up, alignment);
- if (basis_sprocket_pixbuf == null)
- basis_sprocket_pixbuf = Resources.load_icon("sprocket.png", 0);
- }
-
- protected override void paint_image(Cairo.Context ctx, Gdk.Pixbuf pixbuf,
- Gdk.Point origin) {
- Dimensions pixbuf_dim = Dimensions.for_pixbuf(pixbuf);
- // sprocket geometry calculation (and possible adjustment) has to occur before we call
- // base.paint_image( ) because the base-class method needs the correct trinket horizontal
- // offset
-
- if (!enable_sprockets) {
- set_horizontal_trinket_offset(0);
- } else {
- double reduction_factor = ((double) pixbuf_dim.major_axis()) /
- ((double) ThumbnailCache.Size.LARGEST);
- int reduced_size = (int) (reduction_factor * basis_sprocket_pixbuf.width);
-
- if (current_sprocket_pixbuf == null || reduced_size != current_sprocket_pixbuf.width) {
- current_sprocket_pixbuf = basis_sprocket_pixbuf.scale_simple(reduced_size,
- reduced_size, Gdk.InterpType.HYPER);
- }
-
- set_horizontal_trinket_offset(current_sprocket_pixbuf.width);
- }
-
- base.paint_image(ctx, pixbuf, origin);
-
- if (enable_sprockets) {
- paint_sprockets(ctx, origin, pixbuf_dim);
- }
- }
-
- protected void paint_one_sprocket(Cairo.Context ctx, Gdk.Point origin) {
- ctx.save();
- Gdk.cairo_set_source_pixbuf(ctx, current_sprocket_pixbuf, origin.x, origin.y);
- ctx.paint();
- ctx.restore();
}
- protected void paint_sprockets(Cairo.Context ctx, Gdk.Point item_origin,
- Dimensions item_dimensions) {
- int num_sprockets = item_dimensions.height / current_sprocket_pixbuf.height;
-
- Gdk.Point left_paint_location = item_origin;
- Gdk.Point right_paint_location = item_origin;
- right_paint_location.x += (item_dimensions.width - current_sprocket_pixbuf.width);
- for (int i = 0; i < num_sprockets; i++) {
- paint_one_sprocket(ctx, left_paint_location);
- paint_one_sprocket(ctx, right_paint_location);
-
- left_paint_location.y += current_sprocket_pixbuf.height;
- right_paint_location.y += current_sprocket_pixbuf.height;
- }
-
- int straggler_pixels = item_dimensions.height % current_sprocket_pixbuf.height;
- if (straggler_pixels > 0) {
- ctx.save();
-
- Gdk.cairo_set_source_pixbuf(ctx, current_sprocket_pixbuf, left_paint_location.x,
- left_paint_location.y);
- ctx.rectangle(left_paint_location.x, left_paint_location.y,
- current_sprocket_pixbuf.get_width(), straggler_pixels);
- ctx.fill();
-
- Gdk.cairo_set_source_pixbuf(ctx, current_sprocket_pixbuf, right_paint_location.x,
- right_paint_location.y);
- ctx.rectangle(right_paint_location.x, right_paint_location.y,
- current_sprocket_pixbuf.get_width(), straggler_pixels);
- ctx.fill();
-
- ctx.restore();
- }
- }
-
- public void set_enable_sprockets(bool enable_sprockets) {
- this.enable_sprockets = enable_sprockets;
- }
-
public new void set_title(string text, bool marked_up = false,
Pango.Alignment alignment = Pango.Alignment.LEFT) {
base.set_title(text, marked_up, alignment);
@@ -135,8 +54,7 @@ public abstract class MediaPage : CheckerboardPage {
public ZoomSliderAssembly() {
Gtk.Box zoom_group = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
- Gtk.Image zoom_out = new Gtk.Image.from_pixbuf(Resources.load_icon(
- Resources.ICON_ZOOM_OUT, Resources.ICON_ZOOM_SCALE));
+ Gtk.Image zoom_out = new Gtk.Image.from_icon_name("image-zoom-out-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
Gtk.EventBox zoom_out_box = new Gtk.EventBox();
zoom_out_box.set_above_child(true);
zoom_out_box.set_visible_window(false);
@@ -159,8 +77,7 @@ public abstract class MediaPage : CheckerboardPage {
zoom_group.pack_start(slider, false, false, 0);
- Gtk.Image zoom_in = new Gtk.Image.from_pixbuf(Resources.load_icon(
- Resources.ICON_ZOOM_IN, Resources.ICON_ZOOM_SCALE));
+ Gtk.Image zoom_in = new Gtk.Image.from_icon_name("image-zoom-in-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
Gtk.EventBox zoom_in_box = new Gtk.EventBox();
zoom_in_box.set_above_child(true);
zoom_in_box.set_visible_window(false);
diff --git a/src/MediaViewTracker.c b/src/MediaViewTracker.c
deleted file mode 100644
index 92cab3d..0000000
--- a/src/MediaViewTracker.c
+++ /dev/null
@@ -1,1004 +0,0 @@
-/* MediaViewTracker.c generated by valac 0.40.4, the Vala compiler
- * generated from MediaViewTracker.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-typedef struct _CoreTrackerPrivate CoreTrackerPrivate;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-typedef struct _CoreViewTrackerPrivate CoreViewTrackerPrivate;
-
-#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ())
-#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker))
-#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER))
-#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER))
-#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-
-typedef struct _MediaViewTracker MediaViewTracker;
-typedef struct _MediaViewTrackerClass MediaViewTrackerClass;
-typedef struct _MediaViewTrackerPrivate MediaViewTrackerPrivate;
-
-#define TYPE_MEDIA_ACCUMULATOR (media_accumulator_get_type ())
-#define MEDIA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_ACCUMULATOR, MediaAccumulator))
-#define MEDIA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_ACCUMULATOR, MediaAccumulatorClass))
-#define IS_MEDIA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_ACCUMULATOR))
-#define IS_MEDIA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_ACCUMULATOR))
-#define MEDIA_ACCUMULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_ACCUMULATOR, MediaAccumulatorClass))
-
-typedef struct _MediaAccumulator MediaAccumulator;
-typedef struct _MediaAccumulatorClass MediaAccumulatorClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define CORE_TYPE_TRACKER_ACCUMULATOR (core_tracker_accumulator_get_type ())
-#define CORE_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator))
-#define CORE_IS_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR))
-#define CORE_TRACKER_ACCUMULATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulatorIface))
-
-typedef struct _CoreTrackerAccumulator CoreTrackerAccumulator;
-typedef struct _CoreTrackerAccumulatorIface CoreTrackerAccumulatorIface;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-typedef struct _MediaAccumulatorPrivate MediaAccumulatorPrivate;
-enum {
- MEDIA_ACCUMULATOR_0_PROPERTY,
- MEDIA_ACCUMULATOR_NUM_PROPERTIES
-};
-static GParamSpec* media_accumulator_properties[MEDIA_ACCUMULATOR_NUM_PROPERTIES];
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _CoreTracker {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CoreTrackerPrivate * priv;
-};
-
-struct _CoreTrackerClass {
- GTypeClass parent_class;
- void (*finalize) (CoreTracker *self);
- void (*updated) (CoreTracker* self);
-};
-
-struct _CoreViewTracker {
- CoreTracker parent_instance;
- CoreViewTrackerPrivate * priv;
-};
-
-struct _CoreViewTrackerClass {
- CoreTrackerClass parent_class;
-};
-
-struct _MediaViewTracker {
- CoreViewTracker parent_instance;
- MediaViewTrackerPrivate * priv;
- MediaAccumulator* all;
- MediaAccumulator* visible;
- MediaAccumulator* selected;
-};
-
-struct _MediaViewTrackerClass {
- CoreViewTrackerClass parent_class;
-};
-
-struct _CoreTrackerAccumulatorIface {
- GTypeInterface parent_iface;
- gboolean (*include) (CoreTrackerAccumulator* self, DataObject* object);
- gboolean (*uninclude) (CoreTrackerAccumulator* self, DataObject* object);
- gboolean (*altered) (CoreTrackerAccumulator* self, DataObject* object, Alteration* alteration);
-};
-
-struct _MediaAccumulator {
- GObject parent_instance;
- MediaAccumulatorPrivate * priv;
- gint total;
- gint photos;
- gint videos;
- gint raw;
- gint flagged;
-};
-
-struct _MediaAccumulatorClass {
- GObjectClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-
-static gpointer media_view_tracker_parent_class = NULL;
-static gpointer media_accumulator_parent_class = NULL;
-static CoreTrackerAccumulatorIface * media_accumulator_core_tracker_accumulator_parent_iface = NULL;
-
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType media_view_tracker_get_type (void) G_GNUC_CONST;
-GType media_accumulator_get_type (void) G_GNUC_CONST;
-MediaAccumulator* media_accumulator_new (void);
-MediaAccumulator* media_accumulator_construct (GType object_type);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-MediaViewTracker* media_view_tracker_new (ViewCollection* collection);
-MediaViewTracker* media_view_tracker_construct (GType object_type,
- ViewCollection* collection);
-CoreViewTracker* core_view_tracker_new (ViewCollection* collection);
-CoreViewTracker* core_view_tracker_construct (GType object_type,
- ViewCollection* collection);
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType core_tracker_accumulator_get_type (void) G_GNUC_CONST;
-void core_view_tracker_start (CoreViewTracker* self,
- CoreTrackerAccumulator* all,
- CoreTrackerAccumulator* visible,
- CoreTrackerAccumulator* selected);
-static void media_view_tracker_finalize (CoreTracker * obj);
-static gboolean media_accumulator_real_include (CoreTrackerAccumulator* base,
- DataObject* object);
-GType data_source_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-DataSource* data_view_get_source (DataView* self);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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 photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-static gboolean media_accumulator_real_uninclude (CoreTrackerAccumulator* base,
- DataObject* object);
-gchar* data_object_to_string (DataObject* self);
-gchar* media_accumulator_to_string (MediaAccumulator* self);
-GType video_get_type (void) G_GNUC_CONST;
-static gboolean media_accumulator_real_altered (CoreTrackerAccumulator* base,
- DataObject* object,
- Alteration* alteration);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-static void media_accumulator_finalize (GObject * obj);
-
-
-MediaViewTracker*
-media_view_tracker_construct (GType object_type,
- ViewCollection* collection)
-{
- MediaViewTracker* self = NULL;
- MediaAccumulator* _tmp0_;
- MediaAccumulator* _tmp1_;
- MediaAccumulator* _tmp2_;
-#line 12 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (collection), NULL);
-#line 13 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self = (MediaViewTracker*) core_view_tracker_construct (object_type, collection);
-#line 15 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp0_ = self->all;
-#line 15 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp1_ = self->visible;
-#line 15 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp2_ = self->selected;
-#line 15 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- core_view_tracker_start (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_VIEW_TRACKER, CoreViewTracker), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator));
-#line 12 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return self;
-#line 394 "MediaViewTracker.c"
-}
-
-
-MediaViewTracker*
-media_view_tracker_new (ViewCollection* collection)
-{
-#line 12 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return media_view_tracker_construct (TYPE_MEDIA_VIEW_TRACKER, collection);
-#line 403 "MediaViewTracker.c"
-}
-
-
-static void
-media_view_tracker_class_init (MediaViewTrackerClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- media_view_tracker_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- ((CoreTrackerClass *) klass)->finalize = media_view_tracker_finalize;
-#line 414 "MediaViewTracker.c"
-}
-
-
-static void
-media_view_tracker_instance_init (MediaViewTracker * self)
-{
- MediaAccumulator* _tmp0_;
- MediaAccumulator* _tmp1_;
- MediaAccumulator* _tmp2_;
-#line 8 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp0_ = media_accumulator_new ();
-#line 8 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->all = _tmp0_;
-#line 9 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp1_ = media_accumulator_new ();
-#line 9 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->visible = _tmp1_;
-#line 10 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp2_ = media_accumulator_new ();
-#line 10 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->selected = _tmp2_;
-#line 436 "MediaViewTracker.c"
-}
-
-
-static void
-media_view_tracker_finalize (CoreTracker * obj)
-{
- MediaViewTracker * self;
-#line 7 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker);
-#line 8 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (self->all);
-#line 9 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (self->visible);
-#line 10 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (self->selected);
-#line 7 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- CORE_TRACKER_CLASS (media_view_tracker_parent_class)->finalize (obj);
-#line 454 "MediaViewTracker.c"
-}
-
-
-GType
-media_view_tracker_get_type (void)
-{
- static volatile gsize media_view_tracker_type_id__volatile = 0;
- if (g_once_init_enter (&media_view_tracker_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaViewTrackerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_view_tracker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaViewTracker), 0, (GInstanceInitFunc) media_view_tracker_instance_init, NULL };
- GType media_view_tracker_type_id;
- media_view_tracker_type_id = g_type_register_static (CORE_TYPE_VIEW_TRACKER, "MediaViewTracker", &g_define_type_info, 0);
- g_once_init_leave (&media_view_tracker_type_id__volatile, media_view_tracker_type_id);
- }
- return media_view_tracker_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 31 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return self ? g_object_ref (self) : NULL;
-#line 477 "MediaViewTracker.c"
-}
-
-
-static gboolean
-media_accumulator_real_include (CoreTrackerAccumulator* base,
- DataObject* object)
-{
- MediaAccumulator * self;
- gboolean result = FALSE;
- DataSource* source = NULL;
- DataSource* _tmp0_;
- gint _tmp1_;
- Photo* photo = NULL;
- DataSource* _tmp2_;
- Photo* _tmp3_;
- Photo* _tmp4_;
- Flaggable* flaggable = NULL;
- DataSource* _tmp11_;
- Flaggable* _tmp12_;
- gboolean _tmp13_ = FALSE;
- Flaggable* _tmp14_;
-#line 26 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_ACCUMULATOR, MediaAccumulator);
-#line 26 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 27 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 27 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- source = _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp1_ = self->total;
-#line 29 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->total = _tmp1_ + 1;
-#line 31 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp2_ = source;
-#line 31 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_PHOTO) ? ((Photo*) _tmp2_) : NULL);
-#line 31 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- photo = _tmp3_;
-#line 32 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp4_ = photo;
-#line 32 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp4_ != NULL) {
-#line 521 "MediaViewTracker.c"
- Photo* _tmp5_;
- Photo* _tmp7_;
-#line 33 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp5_ = photo;
-#line 33 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (photo_get_master_file_format (_tmp5_) == PHOTO_FILE_FORMAT_RAW) {
-#line 528 "MediaViewTracker.c"
- gint _tmp6_;
-#line 34 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp6_ = self->raw;
-#line 34 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->raw = _tmp6_ + 1;
-#line 534 "MediaViewTracker.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp7_ = photo;
-#line 37 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (photo_get_master_file_format (_tmp7_) != PHOTO_FILE_FORMAT_RAW) {
-#line 540 "MediaViewTracker.c"
- gint _tmp8_;
-#line 38 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp8_ = self->photos;
-#line 38 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->photos = _tmp8_ + 1;
-#line 546 "MediaViewTracker.c"
- }
- } else {
- DataSource* _tmp9_;
-#line 40 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp9_ = source;
-#line 40 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO_SOURCE)) {
-#line 554 "MediaViewTracker.c"
- gint _tmp10_;
-#line 41 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp10_ = self->videos;
-#line 41 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->videos = _tmp10_ + 1;
-#line 560 "MediaViewTracker.c"
- }
- }
-#line 44 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp11_ = source;
-#line 44 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp11_) : NULL);
-#line 44 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- flaggable = _tmp12_;
-#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp14_ = flaggable;
-#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp14_ != NULL) {
-#line 573 "MediaViewTracker.c"
- Flaggable* _tmp15_;
-#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp15_ = flaggable;
-#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp13_ = flaggable_is_flagged (_tmp15_);
-#line 579 "MediaViewTracker.c"
- } else {
-#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp13_ = FALSE;
-#line 583 "MediaViewTracker.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp13_) {
-#line 587 "MediaViewTracker.c"
- gint _tmp16_;
-#line 46 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp16_ = self->flagged;
-#line 46 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->flagged = _tmp16_ + 1;
-#line 593 "MediaViewTracker.c"
- }
-#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- result = TRUE;
-#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (flaggable);
-#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (photo);
-#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (source);
-#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return result;
-#line 605 "MediaViewTracker.c"
-}
-
-
-static gboolean
-media_accumulator_real_uninclude (CoreTrackerAccumulator* base,
- DataObject* object)
-{
- MediaAccumulator * self;
- gboolean result = FALSE;
- DataSource* source = NULL;
- DataSource* _tmp0_;
- gint _tmp1_;
- gint _tmp9_;
- Photo* photo = NULL;
- DataSource* _tmp10_;
- Photo* _tmp11_;
- Photo* _tmp12_;
- Flaggable* flaggable = NULL;
- DataSource* _tmp22_;
- Flaggable* _tmp23_;
- gboolean _tmp24_ = FALSE;
- Flaggable* _tmp25_;
-#line 52 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_ACCUMULATOR, MediaAccumulator);
-#line 52 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 53 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 53 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- source = _tmp0_;
-#line 55 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp1_ = self->total;
-#line 55 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp1_ < 1) {
-#line 640 "MediaViewTracker.c"
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp2_ = data_object_to_string (object);
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp3_ = _tmp2_;
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp4_ = g_type_name (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject)));
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp5_ = media_accumulator_to_string (self);
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp6_ = _tmp5_;
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp7_ = g_strdup_printf ("Tried to remove DataObject %s from empty %s (%s)", _tmp3_, _tmp4_, _tmp6_);
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp8_ = _tmp7_;
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- g_warning ("MediaViewTracker.vala:56: %s", _tmp8_);
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_free0 (_tmp8_);
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_free0 (_tmp6_);
-#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_free0 (_tmp3_);
-#line 58 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- result = FALSE;
-#line 58 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (source);
-#line 58 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return result;
-#line 676 "MediaViewTracker.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp9_ = self->total;
-#line 60 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->total = _tmp9_ - 1;
-#line 62 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp10_ = source;
-#line 62 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_PHOTO) ? ((Photo*) _tmp10_) : NULL);
-#line 62 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- photo = _tmp11_;
-#line 63 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp12_ = photo;
-#line 63 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp12_ != NULL) {
-#line 692 "MediaViewTracker.c"
- Photo* _tmp13_;
- Photo* _tmp16_;
-#line 64 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp13_ = photo;
-#line 64 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (photo_get_master_file_format (_tmp13_) == PHOTO_FILE_FORMAT_RAW) {
-#line 699 "MediaViewTracker.c"
- gint _tmp14_;
- gint _tmp15_;
-#line 65 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp14_ = self->raw;
-#line 65 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _vala_assert (_tmp14_ > 0, "raw > 0");
-#line 66 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp15_ = self->raw;
-#line 66 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->raw = _tmp15_ - 1;
-#line 710 "MediaViewTracker.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp16_ = photo;
-#line 69 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (photo_get_master_file_format (_tmp16_) != PHOTO_FILE_FORMAT_RAW) {
-#line 716 "MediaViewTracker.c"
- gint _tmp17_;
- gint _tmp18_;
-#line 70 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp17_ = self->photos;
-#line 70 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _vala_assert (_tmp17_ > 0, "photos > 0");
-#line 71 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp18_ = self->photos;
-#line 71 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->photos = _tmp18_ - 1;
-#line 727 "MediaViewTracker.c"
- }
- } else {
- DataSource* _tmp19_;
-#line 73 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp19_ = source;
-#line 73 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_VIDEO)) {
-#line 735 "MediaViewTracker.c"
- gint _tmp20_;
- gint _tmp21_;
-#line 74 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp20_ = self->videos;
-#line 74 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _vala_assert (_tmp20_ > 0, "videos > 0");
-#line 75 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp21_ = self->videos;
-#line 75 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->videos = _tmp21_ - 1;
-#line 746 "MediaViewTracker.c"
- }
- }
-#line 78 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp22_ = source;
-#line 78 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp22_) : NULL);
-#line 78 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- flaggable = _tmp23_;
-#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp25_ = flaggable;
-#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp25_ != NULL) {
-#line 759 "MediaViewTracker.c"
- Flaggable* _tmp26_;
-#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp26_ = flaggable;
-#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp24_ = flaggable_is_flagged (_tmp26_);
-#line 765 "MediaViewTracker.c"
- } else {
-#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp24_ = FALSE;
-#line 769 "MediaViewTracker.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp24_) {
-#line 773 "MediaViewTracker.c"
- gint _tmp27_;
- gint _tmp28_;
-#line 80 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp27_ = self->flagged;
-#line 80 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _vala_assert (_tmp27_ > 0, "flagged > 0");
-#line 81 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp28_ = self->flagged;
-#line 81 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->flagged = _tmp28_ - 1;
-#line 784 "MediaViewTracker.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- result = TRUE;
-#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (flaggable);
-#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (photo);
-#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (source);
-#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return result;
-#line 796 "MediaViewTracker.c"
-}
-
-
-static gboolean
-media_accumulator_real_altered (CoreTrackerAccumulator* base,
- DataObject* object,
- Alteration* alteration)
-{
- MediaAccumulator * self;
- gboolean result = FALSE;
- Flaggable* flaggable = NULL;
- DataSource* _tmp0_;
- Flaggable* _tmp1_;
- Flaggable* _tmp2_;
- Flaggable* _tmp3_;
-#line 88 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_ACCUMULATOR, MediaAccumulator);
-#line 88 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 88 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 91 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (!alteration_has_detail (alteration, "metadata", "flagged")) {
-#line 92 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- result = FALSE;
-#line 92 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return result;
-#line 824 "MediaViewTracker.c"
- }
-#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp0_) : NULL;
-#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp1_ == NULL) {
-#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (_tmp0_);
-#line 834 "MediaViewTracker.c"
- }
-#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- flaggable = _tmp1_;
-#line 95 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp2_ = flaggable;
-#line 95 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (_tmp2_ == NULL) {
-#line 96 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- result = FALSE;
-#line 96 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (flaggable);
-#line 96 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return result;
-#line 848 "MediaViewTracker.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp3_ = flaggable;
-#line 98 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- if (flaggable_is_flagged (_tmp3_)) {
-#line 854 "MediaViewTracker.c"
- gint _tmp4_;
-#line 99 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp4_ = self->flagged;
-#line 99 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->flagged = _tmp4_ + 1;
-#line 860 "MediaViewTracker.c"
- } else {
- gint _tmp5_;
- gint _tmp6_;
-#line 101 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp5_ = self->flagged;
-#line 101 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _vala_assert (_tmp5_ > 0, "flagged > 0");
-#line 102 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp6_ = self->flagged;
-#line 102 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->flagged = _tmp6_ - 1;
-#line 872 "MediaViewTracker.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- result = TRUE;
-#line 105 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _g_object_unref0 (flaggable);
-#line 105 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return result;
-#line 880 "MediaViewTracker.c"
-}
-
-
-gchar*
-media_accumulator_to_string (MediaAccumulator* self)
-{
- gchar* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gchar* _tmp4_;
-#line 108 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- g_return_val_if_fail (IS_MEDIA_ACCUMULATOR (self), NULL);
-#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp0_ = self->photos;
-#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp1_ = self->videos;
-#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp2_ = self->raw;
-#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp3_ = self->flagged;
-#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- _tmp4_ = g_strdup_printf ("%d photos/%d videos/%d raw/%d flagged", _tmp0_, _tmp1_, _tmp2_, _tmp3_);
-#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- result = _tmp4_;
-#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return result;
-#line 909 "MediaViewTracker.c"
-}
-
-
-MediaAccumulator*
-media_accumulator_construct (GType object_type)
-{
- MediaAccumulator * self = NULL;
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self = (MediaAccumulator*) g_object_new (object_type, NULL);
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return self;
-#line 921 "MediaViewTracker.c"
-}
-
-
-MediaAccumulator*
-media_accumulator_new (void)
-{
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- return media_accumulator_construct (TYPE_MEDIA_ACCUMULATOR);
-#line 930 "MediaViewTracker.c"
-}
-
-
-static void
-media_accumulator_class_init (MediaAccumulatorClass * klass)
-{
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- media_accumulator_parent_class = g_type_class_peek_parent (klass);
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- G_OBJECT_CLASS (klass)->finalize = media_accumulator_finalize;
-#line 941 "MediaViewTracker.c"
-}
-
-
-static void
-media_accumulator_core_tracker_accumulator_interface_init (CoreTrackerAccumulatorIface * iface)
-{
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- media_accumulator_core_tracker_accumulator_parent_iface = g_type_interface_peek_parent (iface);
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- iface->include = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) media_accumulator_real_include;
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- iface->uninclude = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) media_accumulator_real_uninclude;
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- iface->altered = (gboolean (*) (CoreTrackerAccumulator *, DataObject*, Alteration*)) media_accumulator_real_altered;
-#line 956 "MediaViewTracker.c"
-}
-
-
-static void
-media_accumulator_instance_init (MediaAccumulator * self)
-{
-#line 20 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->total = 0;
-#line 21 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->photos = 0;
-#line 22 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->videos = 0;
-#line 23 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->raw = 0;
-#line 24 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self->flagged = 0;
-#line 973 "MediaViewTracker.c"
-}
-
-
-static void
-media_accumulator_finalize (GObject * obj)
-{
- MediaAccumulator * self;
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_ACCUMULATOR, MediaAccumulator);
-#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala"
- G_OBJECT_CLASS (media_accumulator_parent_class)->finalize (obj);
-#line 985 "MediaViewTracker.c"
-}
-
-
-GType
-media_accumulator_get_type (void)
-{
- static volatile gsize media_accumulator_type_id__volatile = 0;
- if (g_once_init_enter (&media_accumulator_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MediaAccumulatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_accumulator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaAccumulator), 0, (GInstanceInitFunc) media_accumulator_instance_init, NULL };
- static const GInterfaceInfo core_tracker_accumulator_info = { (GInterfaceInitFunc) media_accumulator_core_tracker_accumulator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType media_accumulator_type_id;
- media_accumulator_type_id = g_type_register_static (G_TYPE_OBJECT, "MediaAccumulator", &g_define_type_info, 0);
- g_type_add_interface_static (media_accumulator_type_id, CORE_TYPE_TRACKER_ACCUMULATOR, &core_tracker_accumulator_info);
- g_once_init_leave (&media_accumulator_type_id__volatile, media_accumulator_type_id);
- }
- return media_accumulator_type_id__volatile;
-}
-
-
-
diff --git a/src/MetadataWriter.c b/src/MetadataWriter.c
deleted file mode 100644
index cad0c6b..0000000
--- a/src/MetadataWriter.c
+++ /dev/null
@@ -1,5280 +0,0 @@
-/* MetadataWriter.c generated by valac 0.40.4, the Vala compiler
- * generated from MetadataWriter.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* MetadataWriter tracks LibraryPhotos for alterations to their metadata and commits those changes*/
-/* in a timely manner to their backing files. Because only the MetadataWriter knows when the*/
-/* metadata has been properly committed, it is also responsible for updating the metadata-dirty*/
-/* flag in Photo. Thus, MetadataWriter should *always* be running, even if the user has turned off*/
-/* the feature, so if they turn it on MetadataWriter can properly go out and update the backing*/
-/* files.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <time.h>
-
-
-#define TYPE_METADATA_WRITER (metadata_writer_get_type ())
-#define METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_WRITER, MetadataWriter))
-#define METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_WRITER, MetadataWriterClass))
-#define IS_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_WRITER))
-#define IS_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_WRITER))
-#define METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_WRITER, MetadataWriterClass))
-
-typedef struct _MetadataWriter MetadataWriter;
-typedef struct _MetadataWriterClass MetadataWriterClass;
-typedef struct _MetadataWriterPrivate MetadataWriterPrivate;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define TYPE_TIMED_QUEUE (timed_queue_get_type ())
-#define TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TIMED_QUEUE, TimedQueue))
-#define TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TIMED_QUEUE, TimedQueueClass))
-#define IS_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TIMED_QUEUE))
-#define IS_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TIMED_QUEUE))
-#define TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TIMED_QUEUE, TimedQueueClass))
-
-typedef struct _TimedQueue TimedQueue;
-typedef struct _TimedQueueClass TimedQueueClass;
-
-#define TYPE_HASH_TIMED_QUEUE (hash_timed_queue_get_type ())
-#define HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueue))
-#define HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass))
-#define IS_HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HASH_TIMED_QUEUE))
-#define IS_HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HASH_TIMED_QUEUE))
-#define HASH_TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass))
-
-typedef struct _HashTimedQueue HashTimedQueue;
-typedef struct _HashTimedQueueClass HashTimedQueueClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define METADATA_WRITER_TYPE_COMMIT_JOB (metadata_writer_commit_job_get_type ())
-#define METADATA_WRITER_COMMIT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob))
-#define METADATA_WRITER_COMMIT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJobClass))
-#define METADATA_WRITER_IS_COMMIT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), METADATA_WRITER_TYPE_COMMIT_JOB))
-#define METADATA_WRITER_IS_COMMIT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), METADATA_WRITER_TYPE_COMMIT_JOB))
-#define METADATA_WRITER_COMMIT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJobClass))
-
-typedef struct _MetadataWriterCommitJob MetadataWriterCommitJob;
-typedef struct _MetadataWriterCommitJobClass MetadataWriterCommitJobClass;
-enum {
- METADATA_WRITER_0_PROPERTY,
- METADATA_WRITER_NUM_PROPERTIES
-};
-static GParamSpec* metadata_writer_properties[METADATA_WRITER_NUM_PROPERTIES];
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE (container_source_get_type ())
-#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource))
-#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE))
-#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface))
-
-typedef struct _ContainerSource ContainerSource;
-typedef struct _ContainerSourceIface ContainerSourceIface;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-
-#define TYPE_LIBRARY_MONITOR_POOL (library_monitor_pool_get_type ())
-#define LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool))
-#define LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass))
-#define IS_LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR_POOL))
-#define IS_LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR_POOL))
-#define LIBRARY_MONITOR_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass))
-
-typedef struct _LibraryMonitorPool LibraryMonitorPool;
-typedef struct _LibraryMonitorPoolClass LibraryMonitorPoolClass;
-
-#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ())
-#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor))
-#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR))
-#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR))
-#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-
-typedef struct _DirectoryMonitor DirectoryMonitor;
-typedef struct _DirectoryMonitorClass DirectoryMonitorClass;
-
-#define TYPE_LIBRARY_MONITOR (library_monitor_get_type ())
-#define LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitor))
-#define LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR, LibraryMonitorClass))
-#define IS_LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR))
-#define IS_LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR))
-#define LIBRARY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitorClass))
-
-typedef struct _LibraryMonitor LibraryMonitor;
-typedef struct _LibraryMonitorClass LibraryMonitorClass;
-#define _library_monitor_pool_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_pool_unref (var), NULL)))
-#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
-#define _timed_queue_unref0(var) ((var == NULL) ? NULL : (var = (timed_queue_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _MetadataWriterCommitJobPrivate MetadataWriterCommitJobPrivate;
-
-#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ())
-#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState))
-#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
-#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE))
-#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE))
-#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
-
-typedef struct _PhotoReimportMasterState PhotoReimportMasterState;
-typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass;
-
-#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE (photo_reimport_editable_state_get_type ())
-#define PHOTO_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState))
-#define PHOTO_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass))
-#define PHOTO_IS_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE))
-#define PHOTO_IS_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE))
-#define PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass))
-
-typedef struct _PhotoReimportEditableState PhotoReimportEditableState;
-typedef struct _PhotoReimportEditableStateClass PhotoReimportEditableStateClass;
-#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL)))
-#define _photo_reimport_editable_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_editable_state_unref (var), NULL)))
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-
-#define PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ())
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-enum {
- METADATA_WRITER_PROGRESS_SIGNAL,
- METADATA_WRITER_NUM_SIGNALS
-};
-static guint metadata_writer_signals[METADATA_WRITER_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _MetadataWriter {
- GObject parent_instance;
- MetadataWriterPrivate * priv;
-};
-
-struct _MetadataWriterClass {
- GObjectClass parent_class;
-};
-
-struct _MetadataWriterPrivate {
- Workers* workers;
- gboolean enabled;
- HashTimedQueue* dirty;
- GeeHashMap* pending;
- GeeHashSet* pending_cancel;
- GeeHashSet* interested_photo_details;
- LibraryPhoto* ignore_photo_alteration;
- guint outstanding_total;
- guint outstanding_completed;
- gboolean closed;
- gint pause_count;
- GeeHashSet* importing_photos;
-};
-
-struct _ContainerSourceIface {
- GTypeInterface parent_iface;
- gboolean (*has_links) (ContainerSource* self);
- SourceBacklink* (*get_backlink) (ContainerSource* self);
- void (*break_link) (ContainerSource* self, DataSource* source);
- void (*break_link_many) (ContainerSource* self, GeeCollection* sources);
- void (*establish_link) (ContainerSource* self, DataSource* source);
- void (*establish_link_many) (ContainerSource* self, GeeCollection* sources);
-};
-
-typedef void (*DequeuedCallback) (gconstpointer item, void* user_data);
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _MetadataWriterCommitJob {
- BackgroundJob parent_instance;
- MetadataWriterCommitJobPrivate * priv;
- LibraryPhoto* photo;
- GeeSet* current_keywords;
- PhotoReimportMasterState* reimport_master_state;
- PhotoReimportEditableState* reimport_editable_state;
- GError* err;
- gboolean wrote_master;
- gboolean wrote_editable;
-};
-
-struct _MetadataWriterCommitJobClass {
- BackgroundJobClass parent_class;
-};
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- PHOTO_METADATA_SET_OPTION_ALL_DOMAINS,
- PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT,
- PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN
-} PhotoMetadataSetOption;
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-
-static gpointer metadata_writer_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern TagSourceCollection* tag_global;
-static MetadataWriter* metadata_writer_instance;
-static MetadataWriter* metadata_writer_instance = NULL;
-static gpointer metadata_writer_commit_job_parent_class = NULL;
-
-GType metadata_writer_get_type (void) G_GNUC_CONST;
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-gpointer timed_queue_ref (gpointer instance);
-void timed_queue_unref (gpointer instance);
-GParamSpec* param_spec_timed_queue (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_timed_queue (GValue* value,
- gpointer v_object);
-void value_take_timed_queue (GValue* value,
- gpointer v_object);
-gpointer value_get_timed_queue (const GValue* value);
-GType timed_queue_get_type (void) G_GNUC_CONST;
-GType hash_timed_queue_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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;
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-static GType metadata_writer_commit_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define METADATA_WRITER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_METADATA_WRITER, MetadataWriterPrivate))
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-static void metadata_writer_on_config_changed (MetadataWriter* self);
-static void _metadata_writer_on_config_changed_configuration_facade_commit_metadata_to_masters_changed (ConfigurationFacade* _sender,
- gpointer self);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-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;
-static void metadata_writer_on_importing_photos (MetadataWriter* self,
- GeeCollection* media_sources);
-static void _metadata_writer_on_importing_photos_media_source_collection_media_import_starting (MediaSourceCollection* _sender,
- GeeCollection* media,
- gpointer self);
-static void metadata_writer_on_photos_imported (MetadataWriter* self,
- GeeCollection* media_sources);
-static void _metadata_writer_on_photos_imported_media_source_collection_media_import_completed (MediaSourceCollection* _sender,
- GeeCollection* media,
- gpointer self);
-static void metadata_writer_on_photos_added_removed (MetadataWriter* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void _metadata_writer_on_photos_added_removed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void metadata_writer_on_photos_altered (MetadataWriter* self,
- GeeMap* items);
-static void _metadata_writer_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void metadata_writer_on_collection_frozen (MetadataWriter* self);
-static void _metadata_writer_on_collection_frozen_data_collection_frozen (DataCollection* _sender,
- gpointer self);
-static void metadata_writer_on_collection_thawed (MetadataWriter* self);
-static void _metadata_writer_on_collection_thawed_data_collection_thawed (DataCollection* _sender,
- gpointer self);
-static void metadata_writer_on_photos_destroyed (MetadataWriter* self,
- GeeCollection* destroyed);
-static void _metadata_writer_on_photos_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
- GeeCollection* destroyed,
- gpointer self);
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-static void metadata_writer_on_tags_altered (MetadataWriter* self,
- GeeMap* map);
-static void _metadata_writer_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType container_source_get_type (void) G_GNUC_CONST;
-static void metadata_writer_on_tag_contents_altered (MetadataWriter* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinking,
- GeeCollection* removed,
- gboolean unlinking);
-static void _metadata_writer_on_tag_contents_altered_container_source_collection_container_contents_altered (ContainerSourceCollection* _sender,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked,
- gpointer self);
-static void metadata_writer_on_tag_backlink_removed (MetadataWriter* self,
- ContainerSource* container,
- GeeCollection* sources);
-static void _metadata_writer_on_tag_backlink_removed_container_source_collection_backlink_to_container_removed (ContainerSourceCollection* _sender,
- ContainerSource* container,
- GeeCollection* sources,
- gpointer self);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-static void metadata_writer_on_application_exiting (MetadataWriter* self);
-static void _metadata_writer_on_application_exiting_application_exiting (Application* _sender,
- gboolean panicked,
- gpointer self);
-gpointer library_monitor_pool_ref (gpointer instance);
-void library_monitor_pool_unref (gpointer instance);
-GParamSpec* param_spec_library_monitor_pool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_library_monitor_pool (GValue* value,
- gpointer v_object);
-void value_take_library_monitor_pool (GValue* value,
- gpointer v_object);
-gpointer value_get_library_monitor_pool (const GValue* value);
-GType library_monitor_pool_get_type (void) G_GNUC_CONST;
-LibraryMonitorPool* library_monitor_pool_get_instance (void);
-GType directory_monitor_get_type (void) G_GNUC_CONST;
-GType library_monitor_get_type (void) G_GNUC_CONST;
-static void metadata_writer_on_monitor_installed (MetadataWriter* self,
- LibraryMonitor* monitor);
-static void _metadata_writer_on_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender,
- LibraryMonitor* monitor,
- gpointer self);
-static void metadata_writer_on_monitor_destroyed (MetadataWriter* self,
- LibraryMonitor* monitor);
-static void _metadata_writer_on_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender,
- LibraryMonitor* monitor,
- gpointer self);
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-#define METADATA_WRITER_COMMIT_DELAY_MSEC ((guint) 3000)
-#define METADATA_WRITER_COMMIT_SPACING_MSEC ((guint) 50)
-static MetadataWriter* metadata_writer_new (void);
-static MetadataWriter* metadata_writer_construct (GType object_type);
-static void metadata_writer_on_photo_dequeued (MetadataWriter* self,
- LibraryPhoto* photo);
-static void _metadata_writer_on_photo_dequeued_dequeued_callback (gconstpointer item,
- gpointer self);
-HashTimedQueue* hash_timed_queue_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeHashDataFunc hash_func,
- void* hash_func_target,
- GDestroyNotify hash_func_target_destroy_notify,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority);
-HashTimedQueue* hash_timed_queue_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeHashDataFunc hash_func,
- void* hash_func_target,
- GDestroyNotify hash_func_target_destroy_notify,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority);
-void timed_queue_set_dequeue_spacing_msec (TimedQueue* self,
- guint msec);
-void metadata_writer_pause (MetadataWriter* self);
-gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self);
-void metadata_writer_force_rescan (MetadataWriter* self);
-void metadata_writer_init (void);
-void metadata_writer_terminate (void);
-void metadata_writer_close (MetadataWriter* self);
-MetadataWriter* metadata_writer_get_instance (void);
-static void metadata_writer_schedule_if_dirty (MetadataWriter* self,
- GeeIterable* media_sources,
- const gchar* reason);
-GeeCollection* data_collection_get_all (DataCollection* self);
-void timed_queue_pause (TimedQueue* self);
-void metadata_writer_unpause (MetadataWriter* self);
-void timed_queue_unpause (TimedQueue* self);
-static void metadata_writer_cancel_all (MetadataWriter* self,
- gboolean wait);
-static void metadata_writer_on_discovery_completed (MetadataWriter* self);
-static void _metadata_writer_on_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender,
- gpointer self);
-static gboolean metadata_writer_cancel_job (MetadataWriter* self,
- LibraryPhoto* photo);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-GeeCollection* alteration_get_details (Alteration* self,
- const gchar* subject);
-static void metadata_writer_photos_are_dirty (MetadataWriter* self,
- GeeCollection* photos,
- const gchar* reason,
- gboolean already_marked);
-GType tag_get_type (void) G_GNUC_CONST;
-GeeCollection* tag_get_sources (Tag* self);
-gchar* data_object_to_string (DataObject* self);
-static void metadata_writer_count_enqueued_work (MetadataWriter* self,
- gint count,
- gboolean report);
-static void metadata_writer_count_cancelled_work (MetadataWriter* self,
- gint count,
- gboolean report);
-static void metadata_writer_count_completed_work (MetadataWriter* self,
- gint count,
- gboolean report);
-gboolean photo_is_master_metadata_dirty (Photo* self);
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self);
-void transaction_controller_begin (TransactionController* self);
-GQuark database_error_quark (void);
-void photo_set_master_metadata_dirty (Photo* self,
- gboolean dirty,
- GError** error);
-void transaction_controller_commit (TransactionController* self);
-void app_window_database_error (GError* err);
-gboolean timed_queue_enqueue (TimedQueue* self,
- gconstpointer item);
-void timed_queue_clear (TimedQueue* self);
-void background_job_cancel (BackgroundJob* self);
-void workers_wait_for_empty_queue (Workers* self);
-gboolean timed_queue_contains (TimedQueue* self,
- gconstpointer item);
-gboolean timed_queue_remove_first (TimedQueue* self,
- gconstpointer item);
-GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self,
- MediaSource* source);
-gchar* data_object_get_name (DataObject* self);
-static MetadataWriterCommitJob* metadata_writer_commit_job_new (MetadataWriter* owner,
- LibraryPhoto* photo,
- GeeSet* keywords);
-static MetadataWriterCommitJob* metadata_writer_commit_job_construct (GType object_type,
- MetadataWriter* owner,
- LibraryPhoto* photo,
- GeeSet* keywords);
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-static void metadata_writer_on_update_completed (MetadataWriter* self,
- BackgroundJob* j);
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-gpointer photo_reimport_master_state_ref (gpointer instance);
-void photo_reimport_master_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_master_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_master_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_master_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_master_state (const GValue* value);
-GType photo_reimport_master_state_get_type (void) G_GNUC_CONST;
-gpointer photo_reimport_editable_state_ref (gpointer instance);
-void photo_reimport_editable_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_editable_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_editable_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_editable_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_editable_state (const GValue* value);
-GType photo_reimport_editable_state_get_type (void) G_GNUC_CONST;
-GFile* media_source_get_master_file (MediaSource* self);
-GFile* photo_get_editable_file (Photo* self);
-void photo_finish_update_master_metadata (Photo* self,
- PhotoReimportMasterState* state,
- GError** error);
-void photo_finish_update_editable_metadata (Photo* self,
- PhotoReimportEditableState* state,
- GError** error);
-static void metadata_writer_on_update_cancelled (MetadataWriter* self,
- BackgroundJob* j);
-static void g_cclosure_user_marshal_VOID__UINT_UINT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void _metadata_writer_on_update_completed_completion_callback (BackgroundJob* job,
- gpointer self);
-static void _metadata_writer_on_update_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-static void metadata_writer_commit_job_real_execute (BackgroundJob* base);
-static void metadata_writer_commit_job_commit_master (MetadataWriterCommitJob* self,
- GError** error);
-static void metadata_writer_commit_job_commit_editable (MetadataWriterCommitJob* self,
- GError** error);
-gboolean photo_has_editable (Photo* self);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-gboolean photo_file_format_can_write_metadata (PhotoFileFormat self);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoMetadata* photo_get_master_metadata (Photo* self,
- GError** error);
-static gboolean metadata_writer_commit_job_update_metadata (MetadataWriterCommitJob* self,
- PhotoMetadata* metadata,
- gboolean skip_orientation);
-void library_monitor_blacklist_file (GFile* file,
- const gchar* reason);
-gboolean photo_persist_master_metadata (Photo* self,
- PhotoMetadata* metadata,
- PhotoReimportMasterState* * state,
- GError** error);
-void library_monitor_unblacklist_file (GFile* file);
-PhotoFileFormat* photo_get_editable_file_format (Photo* self);
-PhotoMetadata* photo_get_editable_metadata (Photo* self,
- GError** error);
-gboolean photo_persist_editable_metadata (Photo* self,
- PhotoMetadata* metadata,
- PhotoReimportEditableState* * state,
- GError** error);
-gchar* media_source_get_title (MediaSource* self);
-gchar* media_metadata_get_title (MediaMetadata* self);
-GType photo_metadata_set_option_get_type (void) G_GNUC_CONST;
-void photo_metadata_set_title (PhotoMetadata* self,
- const gchar* title,
- PhotoMetadataSetOption option);
-gchar* media_source_get_comment (MediaSource* self);
-gchar* media_metadata_get_comment (MediaMetadata* self);
-void photo_metadata_set_comment (PhotoMetadata* self,
- const gchar* comment,
- PhotoMetadataSetOption option);
-GType rating_get_type (void) G_GNUC_CONST;
-Rating media_source_get_rating (MediaSource* self);
-Rating photo_metadata_get_rating (PhotoMetadata* self);
-void photo_metadata_set_rating (PhotoMetadata* self,
- Rating rating);
-time_t media_source_get_exposure_time (MediaSource* self);
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
-time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
-MetadataDateTime* metadata_date_time_new (time_t timestamp);
-MetadataDateTime* metadata_date_time_construct (GType object_type,
- time_t timestamp);
-void photo_metadata_set_exposure_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option);
-Tag* tag_for_path (const gchar* name);
-gchar* tag_get_user_visible_name (Tag* self);
-gboolean equal_sets (GeeSet* a,
- GeeSet* b);
-GeeSet* photo_metadata_get_keywords (PhotoMetadata* self,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify);
-void photo_metadata_set_keywords (PhotoMetadata* self,
- GeeCollection* keywords,
- PhotoMetadataSetOption option);
-GType orientation_get_type (void) G_GNUC_CONST;
-Orientation photo_get_orientation (Photo* self);
-Orientation photo_metadata_get_orientation (PhotoMetadata* self);
-void photo_metadata_set_orientation (PhotoMetadata* self,
- Orientation orientation);
-void photo_metadata_set_software (PhotoMetadata* self,
- const gchar* software,
- const gchar* version);
-#define RESOURCES_APP_TITLE "Shotwell"
-#define RESOURCES_APP_VERSION _VERSION
-static void metadata_writer_commit_job_finalize (BackgroundJob * obj);
-static void metadata_writer_finalize (GObject * obj);
-
-static const gchar* METADATA_WRITER_INTERESTED_PHOTO_METADATA_DETAILS[4] = {"name", "comment", "rating", "exposure-time"};
-
-static void
-_metadata_writer_on_config_changed_configuration_facade_commit_metadata_to_masters_changed (ConfigurationFacade* _sender,
- gpointer self)
-{
-#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_config_changed ((MetadataWriter*) self);
-#line 1077 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_importing_photos_media_source_collection_media_import_starting (MediaSourceCollection* _sender,
- GeeCollection* media,
- gpointer self)
-{
-#line 222 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_importing_photos ((MetadataWriter*) self, media);
-#line 1088 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_photos_imported_media_source_collection_media_import_completed (MediaSourceCollection* _sender,
- GeeCollection* media,
- gpointer self)
-{
-#line 223 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_photos_imported ((MetadataWriter*) self, media);
-#line 1099 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_photos_added_removed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 224 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_photos_added_removed ((MetadataWriter*) self, added, removed);
-#line 1111 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 225 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_photos_altered ((MetadataWriter*) self, items);
-#line 1122 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_collection_frozen_data_collection_frozen (DataCollection* _sender,
- gpointer self)
-{
-#line 226 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_collection_frozen ((MetadataWriter*) self);
-#line 1132 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_collection_thawed_data_collection_thawed (DataCollection* _sender,
- gpointer self)
-{
-#line 227 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_collection_thawed ((MetadataWriter*) self);
-#line 1142 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_photos_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
- GeeCollection* destroyed,
- gpointer self)
-{
-#line 228 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_photos_destroyed ((MetadataWriter*) self, destroyed);
-#line 1153 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 230 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_tags_altered ((MetadataWriter*) self, items);
-#line 1164 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_tag_contents_altered_container_source_collection_container_contents_altered (ContainerSourceCollection* _sender,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked,
- gpointer self)
-{
-#line 231 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_tag_contents_altered ((MetadataWriter*) self, container, added, relinked, removed, unlinked);
-#line 1179 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_tag_backlink_removed_container_source_collection_backlink_to_container_removed (ContainerSourceCollection* _sender,
- ContainerSource* container,
- GeeCollection* sources,
- gpointer self)
-{
-#line 232 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_tag_backlink_removed ((MetadataWriter*) self, container, sources);
-#line 1191 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_application_exiting_application_exiting (Application* _sender,
- gboolean panicked,
- gpointer self)
-{
-#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_application_exiting ((MetadataWriter*) self);
-#line 1202 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender,
- LibraryMonitor* monitor,
- gpointer self)
-{
-#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_monitor_installed ((MetadataWriter*) self, monitor);
-#line 1213 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender,
- LibraryMonitor* monitor,
- gpointer self)
-{
-#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_monitor_destroyed ((MetadataWriter*) self, monitor);
-#line 1224 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_photo_dequeued_dequeued_callback (gconstpointer item,
- gpointer self)
-{
-#line 180 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_photo_dequeued ((MetadataWriter*) self, (LibraryPhoto*) item);
-#line 1234 "MetadataWriter.c"
-}
-
-
-static MetadataWriter*
-metadata_writer_construct (GType object_type)
-{
- MetadataWriter * self = NULL;
- HashTimedQueue* _tmp0_;
- HashTimedQueue* _tmp1_;
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- LibraryPhotoSourceCollection* _tmp9_;
- LibraryPhotoSourceCollection* _tmp10_;
- LibraryPhotoSourceCollection* _tmp11_;
- LibraryPhotoSourceCollection* _tmp12_;
- LibraryPhotoSourceCollection* _tmp13_;
- LibraryPhotoSourceCollection* _tmp14_;
- LibraryPhotoSourceCollection* _tmp15_;
- TagSourceCollection* _tmp16_;
- TagSourceCollection* _tmp17_;
- TagSourceCollection* _tmp18_;
- TagSourceCollection* _tmp19_;
- TagSourceCollection* _tmp20_;
- Application* _tmp21_;
- Application* _tmp22_;
- LibraryMonitorPool* _tmp23_;
- LibraryMonitorPool* _tmp24_;
- LibraryMonitorPool* _tmp25_;
- LibraryMonitorPool* _tmp26_;
-#line 179 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self = (MetadataWriter*) g_object_new (object_type, NULL);
-#line 180 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = hash_timed_queue_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, METADATA_WRITER_COMMIT_DELAY_MSEC, _metadata_writer_on_photo_dequeued_dequeued_callback, self, NULL, NULL, NULL, NULL, NULL, NULL, G_PRIORITY_DEFAULT);
-#line 180 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _timed_queue_unref0 (self->priv->dirty);
-#line 180 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->dirty = _tmp0_;
-#line 181 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->dirty;
-#line 181 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- timed_queue_set_dequeue_spacing_msec (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TIMED_QUEUE, TimedQueue), METADATA_WRITER_COMMIT_SPACING_MSEC);
-#line 186 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_pause (self);
-#line 1280 "MetadataWriter.c"
- {
- const gchar** detail_collection = NULL;
- gint detail_collection_length1 = 0;
- gint _detail_collection_size_ = 0;
- gint detail_it = 0;
-#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- detail_collection = METADATA_WRITER_INTERESTED_PHOTO_METADATA_DETAILS;
-#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- detail_collection_length1 = G_N_ELEMENTS (METADATA_WRITER_INTERESTED_PHOTO_METADATA_DETAILS);
-#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- for (detail_it = 0; detail_it < G_N_ELEMENTS (METADATA_WRITER_INTERESTED_PHOTO_METADATA_DETAILS); detail_it = detail_it + 1) {
-#line 1292 "MetadataWriter.c"
- gchar* _tmp2_;
- gchar* detail = NULL;
-#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = g_strdup (detail_collection[detail_it]);
-#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- detail = _tmp2_;
-#line 1299 "MetadataWriter.c"
- {
- GeeHashSet* _tmp3_;
- const gchar* _tmp4_;
-#line 190 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = self->priv->interested_photo_details;
-#line 190 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = detail;
-#line 190 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_);
-#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (detail);
-#line 1311 "MetadataWriter.c"
- }
- }
- }
-#line 193 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = config_facade_get_instance ();
-#line 193 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = _tmp5_;
-#line 193 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->enabled = configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 193 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp6_);
-#line 194 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 194 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = _tmp7_;
-#line 194 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "commit-metadata-to-masters-changed", (GCallback) _metadata_writer_on_config_changed_configuration_facade_commit_metadata_to_masters_changed, self, 0);
-#line 194 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp8_);
-#line 197 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_force_rescan (self);
-#line 199 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = library_photo_global;
-#line 199 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "media-import-starting", (GCallback) _metadata_writer_on_importing_photos_media_source_collection_media_import_starting, self, 0);
-#line 200 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = library_photo_global;
-#line 200 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "media-import-completed", (GCallback) _metadata_writer_on_photos_imported_media_source_collection_media_import_completed, self, 0);
-#line 201 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = library_photo_global;
-#line 201 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _metadata_writer_on_photos_added_removed_data_collection_contents_altered, self, 0);
-#line 202 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = library_photo_global;
-#line 202 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _metadata_writer_on_photos_altered_data_collection_items_altered, self, 0);
-#line 203 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = library_photo_global;
-#line 203 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), "frozen", (GCallback) _metadata_writer_on_collection_frozen_data_collection_frozen, self, 0);
-#line 204 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = library_photo_global;
-#line 204 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection), "thawed", (GCallback) _metadata_writer_on_collection_thawed_data_collection_thawed, self, 0);
-#line 205 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = library_photo_global;
-#line 205 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _metadata_writer_on_photos_destroyed_source_collection_items_destroyed, self, 0);
-#line 207 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = tag_global;
-#line 207 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _metadata_writer_on_tags_altered_data_collection_items_altered, self, 0);
-#line 208 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = tag_global;
-#line 208 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), "container-contents-altered", (GCallback) _metadata_writer_on_tag_contents_altered_container_source_collection_container_contents_altered, self, 0);
-#line 209 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp18_ = tag_global;
-#line 209 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), "backlink-to-container-removed", (GCallback) _metadata_writer_on_tag_backlink_removed_container_source_collection_backlink_to_container_removed, self, 0);
-#line 210 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = tag_global;
-#line 210 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection), "frozen", (GCallback) _metadata_writer_on_collection_frozen_data_collection_frozen, self, 0);
-#line 211 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp20_ = tag_global;
-#line 211 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection), "thawed", (GCallback) _metadata_writer_on_collection_thawed_data_collection_thawed, self, 0);
-#line 213 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = application_get_instance ();
-#line 213 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp22_ = _tmp21_;
-#line 213 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (_tmp22_, "exiting", (GCallback) _metadata_writer_on_application_exiting_application_exiting, self, 0);
-#line 213 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _application_unref0 (_tmp22_);
-#line 215 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = library_monitor_pool_get_instance ();
-#line 215 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp24_ = _tmp23_;
-#line 215 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (_tmp24_, "monitor-installed", (GCallback) _metadata_writer_on_monitor_installed_library_monitor_pool_monitor_installed, self, 0);
-#line 215 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _library_monitor_pool_unref0 (_tmp24_);
-#line 216 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp25_ = library_monitor_pool_get_instance ();
-#line 216 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp26_ = _tmp25_;
-#line 216 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (_tmp26_, "monitor-destroyed", (GCallback) _metadata_writer_on_monitor_destroyed_library_monitor_pool_monitor_destroyed, self, 0);
-#line 216 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _library_monitor_pool_unref0 (_tmp26_);
-#line 179 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return self;
-#line 1407 "MetadataWriter.c"
-}
-
-
-static MetadataWriter*
-metadata_writer_new (void)
-{
-#line 179 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return metadata_writer_construct (TYPE_METADATA_WRITER);
-#line 1416 "MetadataWriter.c"
-}
-
-
-void
-metadata_writer_init (void)
-{
- MetadataWriter* _tmp0_;
-#line 243 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = metadata_writer_new ();
-#line 243 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (metadata_writer_instance);
-#line 243 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_instance = _tmp0_;
-#line 1430 "MetadataWriter.c"
-}
-
-
-void
-metadata_writer_terminate (void)
-{
- MetadataWriter* _tmp0_;
-#line 247 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = metadata_writer_instance;
-#line 247 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp0_ != NULL) {
-#line 1442 "MetadataWriter.c"
- MetadataWriter* _tmp1_;
-#line 248 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = metadata_writer_instance;
-#line 248 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_close (_tmp1_);
-#line 1448 "MetadataWriter.c"
- }
-#line 250 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (metadata_writer_instance);
-#line 250 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_instance = NULL;
-#line 1454 "MetadataWriter.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1463 "MetadataWriter.c"
-}
-
-
-MetadataWriter*
-metadata_writer_get_instance (void)
-{
- MetadataWriter* result = NULL;
- MetadataWriter* _tmp0_;
- MetadataWriter* _tmp1_;
-#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = metadata_writer_instance;
-#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- result = _tmp1_;
-#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return result;
-#line 1481 "MetadataWriter.c"
-}
-
-
-void
-metadata_writer_force_rescan (MetadataWriter* self)
-{
- LibraryPhotoSourceCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
-#line 258 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = library_photo_global;
-#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_schedule_if_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable), "force rescan");
-#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp2_);
-#line 1503 "MetadataWriter.c"
-}
-
-
-void
-metadata_writer_pause (MetadataWriter* self)
-{
- gint _tmp0_;
- HashTimedQueue* _tmp1_;
-#line 262 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 263 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->pause_count;
-#line 263 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->pause_count = _tmp0_ + 1;
-#line 263 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp0_ != 0) {
-#line 264 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 1522 "MetadataWriter.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->dirty;
-#line 266 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- timed_queue_pause (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TIMED_QUEUE, TimedQueue));
-#line 268 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, (guint) 0, (guint) 0);
-#line 1530 "MetadataWriter.c"
-}
-
-
-void
-metadata_writer_unpause (MetadataWriter* self)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- HashTimedQueue* _tmp4_;
-#line 271 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->pause_count;
-#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp1_ == 0) {
-#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = TRUE;
-#line 1548 "MetadataWriter.c"
- } else {
- gint _tmp2_;
- gint _tmp3_;
-#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = self->priv->pause_count;
-#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->pause_count = _tmp2_ - 1;
-#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = self->priv->pause_count;
-#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = _tmp3_ != 0;
-#line 1560 "MetadataWriter.c"
- }
-#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp0_) {
-#line 273 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 1566 "MetadataWriter.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = self->priv->dirty;
-#line 275 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- timed_queue_unpause (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TIMED_QUEUE, TimedQueue));
-#line 1572 "MetadataWriter.c"
-}
-
-
-void
-metadata_writer_close (MetadataWriter* self)
-{
- gboolean _tmp0_;
-#line 278 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 279 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->closed;
-#line 279 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp0_) {
-#line 280 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 1588 "MetadataWriter.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_cancel_all (self, TRUE);
-#line 284 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->closed = TRUE;
-#line 1594 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_config_changed (MetadataWriter* self)
-{
- gboolean value = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 287 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _tmp0_;
-#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp1_);
-#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- value = _tmp2_;
-#line 290 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = self->priv->enabled;
-#line 290 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = value;
-#line 290 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp3_ == _tmp4_) {
-#line 291 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 1629 "MetadataWriter.c"
- }
-#line 293 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = value;
-#line 293 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->enabled = _tmp5_;
-#line 294 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = self->priv->enabled;
-#line 294 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp6_) {
-#line 295 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_force_rescan (self);
-#line 1641 "MetadataWriter.c"
- } else {
-#line 297 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_cancel_all (self, FALSE);
-#line 1645 "MetadataWriter.c"
- }
-}
-
-
-static void
-metadata_writer_on_application_exiting (MetadataWriter* self)
-{
-#line 300 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 301 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_close (self);
-#line 1657 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender,
- gpointer self)
-{
-#line 305 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_discovery_completed ((MetadataWriter*) self);
-#line 1667 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_monitor_installed (MetadataWriter* self,
- LibraryMonitor* monitor)
-{
-#line 304 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 304 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (monitor));
-#line 305 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "discovery-completed", (GCallback) _metadata_writer_on_discovery_completed_directory_monitor_discovery_completed, self, 0);
-#line 1681 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_monitor_destroyed (MetadataWriter* self,
- LibraryMonitor* monitor)
-{
- guint _tmp0_;
-#line 308 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 308 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (monitor));
-#line 309 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("discovery-completed", TYPE_DIRECTORY_MONITOR, &_tmp0_, NULL, FALSE);
-#line 309 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _metadata_writer_on_discovery_completed_directory_monitor_discovery_completed, self);
-#line 1698 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_discovery_completed (MetadataWriter* self)
-{
-#line 312 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 313 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_unpause (self);
-#line 1709 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_collection_frozen (MetadataWriter* self)
-{
-#line 316 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 317 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_pause (self);
-#line 1720 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_collection_thawed (MetadataWriter* self)
-{
-#line 320 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 321 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_unpause (self);
-#line 1731 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_importing_photos (MetadataWriter* self,
- GeeCollection* media_sources)
-{
- GeeHashSet* _tmp0_;
-#line 324 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 324 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media_sources));
-#line 325 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->importing_photos;
-#line 325 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1748 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_photos_imported (MetadataWriter* self,
- GeeCollection* media_sources)
-{
- GeeHashSet* _tmp0_;
-#line 328 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 328 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media_sources));
-#line 329 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->importing_photos;
-#line 329 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1765 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_photos_added_removed (MetadataWriter* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
- gboolean _tmp0_ = FALSE;
-#line 332 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 332 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 332 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (added != NULL) {
-#line 1783 "MetadataWriter.c"
- gboolean _tmp1_;
-#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->enabled;
-#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = _tmp1_;
-#line 1789 "MetadataWriter.c"
- } else {
-#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = FALSE;
-#line 1793 "MetadataWriter.c"
- }
-#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp0_) {
-#line 336 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_schedule_if_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable), "added to LibraryPhoto.global");
-#line 1799 "MetadataWriter.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (removed != NULL) {
-#line 1803 "MetadataWriter.c"
- gboolean cancelled = FALSE;
- gboolean _tmp9_;
-#line 340 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- cancelled = FALSE;
-#line 1808 "MetadataWriter.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp2_;
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = gee_iterable_iterator (removed);
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _object_it = _tmp2_;
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 1818 "MetadataWriter.c"
- GeeIterator* _tmp3_;
- DataObject* object = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- gboolean _tmp6_ = FALSE;
- DataObject* _tmp7_;
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = _object_it;
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 1831 "MetadataWriter.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _object_it;
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- object = (DataObject*) _tmp5_;
-#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = object;
-#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (metadata_writer_cancel_job (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto))) {
-#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = TRUE;
-#line 1845 "MetadataWriter.c"
- } else {
- gboolean _tmp8_;
-#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = cancelled;
-#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = _tmp8_;
-#line 1852 "MetadataWriter.c"
- }
-#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- cancelled = _tmp6_;
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (object);
-#line 1858 "MetadataWriter.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_object_it);
-#line 1862 "MetadataWriter.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = cancelled;
-#line 344 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp9_) {
-#line 1868 "MetadataWriter.c"
- guint _tmp10_;
- guint _tmp11_;
-#line 345 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = self->priv->outstanding_completed;
-#line 345 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = self->priv->outstanding_total;
-#line 345 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, _tmp10_, _tmp11_);
-#line 1877 "MetadataWriter.c"
- }
- }
-}
-
-
-static void
-metadata_writer_on_photos_altered (MetadataWriter* self,
- GeeMap* items)
-{
- GeeHashSet* photos = NULL;
- GeeHashSet* _tmp33_;
-#line 349 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 349 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (GEE_IS_MAP (items));
-#line 350 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photos = NULL;
-#line 1895 "MetadataWriter.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = gee_map_get_keys (items);
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _tmp0_;
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = _tmp1_;
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _tmp3_;
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp2_);
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _object_it = _tmp4_;
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 1919 "MetadataWriter.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- LibraryPhoto* photo = NULL;
- DataObject* _tmp8_;
- LibraryPhoto* _tmp9_;
- LibraryPhoto* _tmp10_;
- LibraryPhoto* _tmp11_;
- Alteration* alteration = NULL;
- DataObject* _tmp12_;
- gpointer _tmp13_;
- Alteration* _tmp14_;
- GeeCollection* details = NULL;
- Alteration* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = _object_it;
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 1943 "MetadataWriter.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = _object_it;
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- object = (DataObject*) _tmp7_;
-#line 352 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = object;
-#line 352 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 352 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = _tmp9_;
-#line 356 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = photo;
-#line 356 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = self->priv->ignore_photo_alteration;
-#line 356 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp10_ == _tmp11_) {
-#line 357 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 357 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (object);
-#line 357 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- continue;
-#line 1969 "MetadataWriter.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = object;
-#line 359 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = gee_map_get (items, _tmp12_);
-#line 359 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- alteration = (Alteration*) _tmp13_;
-#line 362 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = alteration;
-#line 362 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (alteration_has_detail (_tmp14_, "image", "orientation")) {
-#line 1981 "MetadataWriter.c"
- GeeHashSet* _tmp15_;
- GeeHashSet* _tmp17_;
- LibraryPhoto* _tmp18_;
-#line 363 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = photos;
-#line 363 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp15_ == NULL) {
-#line 1989 "MetadataWriter.c"
- GeeHashSet* _tmp16_;
-#line 364 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = gee_hash_set_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 364 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photos);
-#line 364 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photos = _tmp16_;
-#line 1997 "MetadataWriter.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = photos;
-#line 366 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp18_ = photo;
-#line 366 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_);
-#line 368 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _alteration_unref0 (alteration);
-#line 368 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 368 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (object);
-#line 368 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- continue;
-#line 2013 "MetadataWriter.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = alteration;
-#line 372 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp20_ = alteration_get_details (_tmp19_, "metadata");
-#line 372 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- details = _tmp20_;
-#line 373 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = details;
-#line 373 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp21_ == NULL) {
-#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (details);
-#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _alteration_unref0 (alteration);
-#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (object);
-#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- continue;
-#line 2035 "MetadataWriter.c"
- }
- {
- GeeIterator* _detail_it = NULL;
- GeeCollection* _tmp22_;
- GeeIterator* _tmp23_;
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp22_ = details;
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _detail_it = _tmp23_;
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 2049 "MetadataWriter.c"
- GeeIterator* _tmp24_;
- gchar* detail = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- GeeHashSet* _tmp27_;
- const gchar* _tmp28_;
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp24_ = _detail_it;
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp24_)) {
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2062 "MetadataWriter.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp25_ = _detail_it;
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- detail = (gchar*) _tmp26_;
-#line 378 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp27_ = self->priv->interested_photo_details;
-#line 378 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp28_ = detail;
-#line 378 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_)) {
-#line 2076 "MetadataWriter.c"
- GeeHashSet* _tmp29_;
- GeeHashSet* _tmp31_;
- LibraryPhoto* _tmp32_;
-#line 379 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp29_ = photos;
-#line 379 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp29_ == NULL) {
-#line 2084 "MetadataWriter.c"
- GeeHashSet* _tmp30_;
-#line 380 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp30_ = gee_hash_set_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 380 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photos);
-#line 380 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photos = _tmp30_;
-#line 2092 "MetadataWriter.c"
- }
-#line 382 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp31_ = photos;
-#line 382 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp32_ = photo;
-#line 382 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp32_);
-#line 384 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (detail);
-#line 384 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2104 "MetadataWriter.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (detail);
-#line 2108 "MetadataWriter.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_detail_it);
-#line 2112 "MetadataWriter.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (details);
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _alteration_unref0 (alteration);
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (object);
-#line 2122 "MetadataWriter.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_object_it);
-#line 2126 "MetadataWriter.c"
- }
-#line 389 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp33_ = photos;
-#line 389 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp33_ != NULL) {
-#line 2132 "MetadataWriter.c"
- GeeHashSet* _tmp34_;
-#line 390 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp34_ = photos;
-#line 390 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), "alteration", FALSE);
-#line 2138 "MetadataWriter.c"
- }
-#line 349 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photos);
-#line 2142 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_photos_destroyed (MetadataWriter* self,
- GeeCollection* destroyed)
-{
-#line 393 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 393 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (GEE_IS_COLLECTION (destroyed));
-#line 2154 "MetadataWriter.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (destroyed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _source_it = _tmp0_;
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 2164 "MetadataWriter.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- LibraryPhoto* photo = NULL;
- DataSource* _tmp4_;
- LibraryPhoto* _tmp5_;
- LibraryPhoto* _tmp6_;
- GeeHashSet* _tmp7_;
- LibraryPhoto* _tmp8_;
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _source_it;
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2181 "MetadataWriter.c"
- }
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = _source_it;
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- source = (DataSource*) _tmp3_;
-#line 395 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = source;
-#line 395 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 395 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = _tmp5_;
-#line 396 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = photo;
-#line 396 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_cancel_job (self, _tmp6_);
-#line 397 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = self->priv->importing_photos;
-#line 397 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = photo;
-#line 397 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_);
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (source);
-#line 2209 "MetadataWriter.c"
- }
-#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_source_it);
-#line 2213 "MetadataWriter.c"
- }
-}
-
-
-static void
-metadata_writer_on_tags_altered (MetadataWriter* self,
- GeeMap* map)
-{
- GeeHashSet* photos = NULL;
- GeeHashSet* _tmp27_;
-#line 401 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 401 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 402 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photos = NULL;
-#line 2230 "MetadataWriter.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = gee_map_get_keys (map);
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _tmp0_;
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = _tmp1_;
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _tmp3_;
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp2_);
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _object_it = _tmp4_;
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 2254 "MetadataWriter.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- DataObject* _tmp8_;
- gpointer _tmp9_;
- Alteration* _tmp10_;
- gboolean _tmp11_;
- GeeHashSet* _tmp12_;
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = _object_it;
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2270 "MetadataWriter.c"
- }
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = _object_it;
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- object = (DataObject*) _tmp7_;
-#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = object;
-#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = gee_map_get (map, _tmp8_);
-#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = (Alteration*) _tmp9_;
-#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = !alteration_has_detail (_tmp10_, "metadata", "name");
-#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _alteration_unref0 (_tmp10_);
-#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp11_) {
-#line 405 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (object);
-#line 405 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- continue;
-#line 2294 "MetadataWriter.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = photos;
-#line 407 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp12_ == NULL) {
-#line 2300 "MetadataWriter.c"
- GeeHashSet* _tmp13_;
-#line 408 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = gee_hash_set_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 408 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photos);
-#line 408 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photos = _tmp13_;
-#line 2308 "MetadataWriter.c"
- }
- {
- GeeIterator* _media_it = NULL;
- DataObject* _tmp14_;
- GeeCollection* _tmp15_;
- GeeCollection* _tmp16_;
- GeeIterator* _tmp17_;
- GeeIterator* _tmp18_;
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = object;
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = tag_get_sources (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_TAG, Tag));
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = _tmp15_;
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp18_ = _tmp17_;
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp16_);
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _media_it = _tmp18_;
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 2333 "MetadataWriter.c"
- GeeIterator* _tmp19_;
- MediaSource* media = NULL;
- GeeIterator* _tmp20_;
- gpointer _tmp21_;
- LibraryPhoto* photo = NULL;
- MediaSource* _tmp22_;
- LibraryPhoto* _tmp23_;
- LibraryPhoto* _tmp24_;
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = _media_it;
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp19_)) {
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2348 "MetadataWriter.c"
- }
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp20_ = _media_it;
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = gee_iterator_get (_tmp20_);
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- media = (MediaSource*) _tmp21_;
-#line 411 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp22_ = media;
-#line 411 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp22_) : NULL);
-#line 411 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = _tmp23_;
-#line 412 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp24_ = photo;
-#line 412 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp24_ != NULL) {
-#line 2366 "MetadataWriter.c"
- GeeHashSet* _tmp25_;
- LibraryPhoto* _tmp26_;
-#line 413 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp25_ = photos;
-#line 413 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp26_ = photo;
-#line 413 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_);
-#line 2375 "MetadataWriter.c"
- }
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (media);
-#line 2381 "MetadataWriter.c"
- }
-#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_media_it);
-#line 2385 "MetadataWriter.c"
- }
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (object);
-#line 2389 "MetadataWriter.c"
- }
-#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_object_it);
-#line 2393 "MetadataWriter.c"
- }
-#line 417 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp27_ = photos;
-#line 417 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp27_ != NULL) {
-#line 2399 "MetadataWriter.c"
- GeeHashSet* _tmp28_;
-#line 418 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp28_ = photos;
-#line 418 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), "tag renamed", FALSE);
-#line 2405 "MetadataWriter.c"
- }
-#line 401 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photos);
-#line 2409 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_tag_contents_altered (MetadataWriter* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinking,
- GeeCollection* removed,
- gboolean unlinking)
-{
- Tag* tag = NULL;
- Tag* _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp21_ = FALSE;
-#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 423 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_TAG, Tag));
-#line 423 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- tag = _tmp0_;
-#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (added != NULL) {
-#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = !relinking;
-#line 2441 "MetadataWriter.c"
- } else {
-#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = FALSE;
-#line 2445 "MetadataWriter.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp1_) {
-#line 2449 "MetadataWriter.c"
- GeeArrayList* added_photos = NULL;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp15_;
- Tag* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
-#line 426 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 426 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- added_photos = _tmp2_;
-#line 2462 "MetadataWriter.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp3_;
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable));
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _source_it = _tmp3_;
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 2472 "MetadataWriter.c"
- GeeIterator* _tmp4_;
- DataSource* source = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- LibraryPhoto* photo = NULL;
- DataSource* _tmp7_;
- LibraryPhoto* _tmp8_;
- gboolean _tmp9_ = FALSE;
- LibraryPhoto* _tmp10_;
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _source_it;
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2488 "MetadataWriter.c"
- }
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = _source_it;
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- source = (DataSource*) _tmp6_;
-#line 428 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = source;
-#line 428 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp7_) : NULL);
-#line 428 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = _tmp8_;
-#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = photo;
-#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp10_ != NULL) {
-#line 2506 "MetadataWriter.c"
- GeeHashSet* _tmp11_;
- LibraryPhoto* _tmp12_;
-#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = self->priv->importing_photos;
-#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = photo;
-#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = !gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_);
-#line 2515 "MetadataWriter.c"
- } else {
-#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = FALSE;
-#line 2519 "MetadataWriter.c"
- }
-#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp9_) {
-#line 2523 "MetadataWriter.c"
- GeeArrayList* _tmp13_;
- LibraryPhoto* _tmp14_;
-#line 430 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = added_photos;
-#line 430 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = photo;
-#line 430 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
-#line 2532 "MetadataWriter.c"
- }
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (source);
-#line 2538 "MetadataWriter.c"
- }
-#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_source_it);
-#line 2542 "MetadataWriter.c"
- }
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = added_photos;
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = tag;
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp18_ = _tmp17_;
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = g_strdup_printf ("added to %s", _tmp18_);
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp20_ = _tmp19_;
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_, FALSE);
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp20_);
-#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp18_);
-#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (added_photos);
-#line 2564 "MetadataWriter.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (removed != NULL) {
-#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = !unlinking;
-#line 2570 "MetadataWriter.c"
- } else {
-#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = FALSE;
-#line 2574 "MetadataWriter.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp21_) {
-#line 2578 "MetadataWriter.c"
- GeeArrayList* removed_photos = NULL;
- GeeArrayList* _tmp22_;
- GeeArrayList* _tmp32_;
- Tag* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
-#line 437 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp22_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 437 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- removed_photos = _tmp22_;
-#line 2591 "MetadataWriter.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp23_;
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _source_it = _tmp23_;
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 2601 "MetadataWriter.c"
- GeeIterator* _tmp24_;
- DataSource* source = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- LibraryPhoto* photo = NULL;
- DataSource* _tmp27_;
- LibraryPhoto* _tmp28_;
- LibraryPhoto* _tmp29_;
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp24_ = _source_it;
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp24_)) {
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2616 "MetadataWriter.c"
- }
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp25_ = _source_it;
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- source = (DataSource*) _tmp26_;
-#line 439 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp27_ = source;
-#line 439 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp27_) : NULL);
-#line 439 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = _tmp28_;
-#line 440 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp29_ = photo;
-#line 440 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp29_ != NULL) {
-#line 2634 "MetadataWriter.c"
- GeeArrayList* _tmp30_;
- LibraryPhoto* _tmp31_;
-#line 441 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp30_ = removed_photos;
-#line 441 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp31_ = photo;
-#line 441 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp31_);
-#line 2643 "MetadataWriter.c"
- }
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (source);
-#line 2649 "MetadataWriter.c"
- }
-#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_source_it);
-#line 2653 "MetadataWriter.c"
- }
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp32_ = removed_photos;
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp33_ = tag;
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp34_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_OBJECT, DataObject));
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp35_ = _tmp34_;
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp36_ = g_strdup_printf ("removed from %s", _tmp35_);
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp37_ = _tmp36_;
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_, FALSE);
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp37_);
-#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp35_);
-#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (removed_photos);
-#line 2675 "MetadataWriter.c"
- }
-#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (tag);
-#line 2679 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_tag_backlink_removed (MetadataWriter* self,
- ContainerSource* container,
- GeeCollection* sources)
-{
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 448 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 448 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 448 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 449 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 449 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photos = _tmp0_;
-#line 2705 "MetadataWriter.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp1_;
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _source_it = _tmp1_;
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 2715 "MetadataWriter.c"
- GeeIterator* _tmp2_;
- DataSource* source = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- LibraryPhoto* photo = NULL;
- DataSource* _tmp5_;
- LibraryPhoto* _tmp6_;
- LibraryPhoto* _tmp7_;
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = _source_it;
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2730 "MetadataWriter.c"
- }
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = _source_it;
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- source = (DataSource*) _tmp4_;
-#line 451 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = source;
-#line 451 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp5_) : NULL);
-#line 451 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = _tmp6_;
-#line 452 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = photo;
-#line 452 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp7_ != NULL) {
-#line 2748 "MetadataWriter.c"
- GeeArrayList* _tmp8_;
- LibraryPhoto* _tmp9_;
-#line 453 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = photos;
-#line 453 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = photo;
-#line 453 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_);
-#line 2757 "MetadataWriter.c"
- }
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (source);
-#line 2763 "MetadataWriter.c"
- }
-#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_source_it);
-#line 2767 "MetadataWriter.c"
- }
-#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = photos;
-#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_OBJECT, DataObject));
-#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = _tmp11_;
-#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = g_strdup_printf ("backlink removed from %s", _tmp12_);
-#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = _tmp13_;
-#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_, FALSE);
-#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp14_);
-#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp12_);
-#line 448 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photos);
-#line 2787 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_count_enqueued_work (MetadataWriter* self,
- gint count,
- gboolean report)
-{
- guint _tmp0_;
-#line 459 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 460 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->outstanding_total;
-#line 460 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_total = _tmp0_ + count;
-#line 466 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (report) {
-#line 2805 "MetadataWriter.c"
- guint _tmp1_;
- guint _tmp2_;
-#line 467 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->outstanding_completed;
-#line 467 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = self->priv->outstanding_total;
-#line 467 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, _tmp1_, _tmp2_);
-#line 2814 "MetadataWriter.c"
- }
-}
-
-
-static void
-metadata_writer_count_cancelled_work (MetadataWriter* self,
- gint count,
- gboolean report)
-{
- guint _tmp0_ = 0U;
- guint _tmp1_;
- guint _tmp3_;
- guint _tmp4_;
-#line 470 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->outstanding_total;
-#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp1_ >= ((guint) count)) {
-#line 2834 "MetadataWriter.c"
- guint _tmp2_;
-#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = self->priv->outstanding_total;
-#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = _tmp2_ - count;
-#line 2840 "MetadataWriter.c"
- } else {
-#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = (guint) 0;
-#line 2844 "MetadataWriter.c"
- }
-#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_total = _tmp0_;
-#line 472 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = self->priv->outstanding_completed;
-#line 472 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = self->priv->outstanding_total;
-#line 472 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp3_ >= _tmp4_) {
-#line 473 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_completed = (guint) 0;
-#line 474 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_total = (guint) 0;
-#line 2858 "MetadataWriter.c"
- }
-#line 481 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (report) {
-#line 2862 "MetadataWriter.c"
- guint _tmp5_;
- guint _tmp6_;
-#line 482 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = self->priv->outstanding_completed;
-#line 482 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = self->priv->outstanding_total;
-#line 482 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, _tmp5_, _tmp6_);
-#line 2871 "MetadataWriter.c"
- }
-}
-
-
-static void
-metadata_writer_count_completed_work (MetadataWriter* self,
- gint count,
- gboolean report)
-{
- guint _tmp0_;
- guint _tmp1_;
- guint _tmp2_;
-#line 485 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 486 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->outstanding_completed;
-#line 486 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_completed = _tmp0_ + count;
-#line 487 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->outstanding_completed;
-#line 487 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = self->priv->outstanding_total;
-#line 487 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp1_ >= _tmp2_) {
-#line 488 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_completed = (guint) 0;
-#line 489 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_total = (guint) 0;
-#line 2900 "MetadataWriter.c"
- }
-#line 496 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (report) {
-#line 2904 "MetadataWriter.c"
- guint _tmp3_;
- guint _tmp4_;
-#line 497 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = self->priv->outstanding_completed;
-#line 497 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = self->priv->outstanding_total;
-#line 497 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, _tmp3_, _tmp4_);
-#line 2913 "MetadataWriter.c"
- }
-}
-
-
-static void
-metadata_writer_schedule_if_dirty (MetadataWriter* self,
- GeeIterable* media_sources,
- const gchar* reason)
-{
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp14_;
-#line 500 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 500 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (GEE_IS_ITERABLE (media_sources));
-#line 500 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (reason != NULL);
-#line 501 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photos = NULL;
-#line 2933 "MetadataWriter.c"
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp0_;
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = gee_iterable_iterator (media_sources);
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _media_it = _tmp0_;
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 2943 "MetadataWriter.c"
- GeeIterator* _tmp1_;
- MediaSource* media = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- LibraryPhoto* photo = NULL;
- MediaSource* _tmp4_;
- LibraryPhoto* _tmp5_;
- LibraryPhoto* _tmp6_;
- GeeHashSet* _tmp7_;
- LibraryPhoto* _tmp8_;
- LibraryPhoto* _tmp9_;
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _media_it;
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 2961 "MetadataWriter.c"
- }
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = _media_it;
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- media = (MediaSource*) _tmp3_;
-#line 503 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = media;
-#line 503 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp4_) : NULL);
-#line 503 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = _tmp5_;
-#line 504 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = photo;
-#line 504 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp6_ == NULL) {
-#line 505 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 505 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (media);
-#line 505 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- continue;
-#line 2985 "MetadataWriter.c"
- }
-#line 508 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = self->priv->importing_photos;
-#line 508 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = photo;
-#line 508 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_)) {
-#line 509 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 509 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (media);
-#line 509 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- continue;
-#line 2999 "MetadataWriter.c"
- }
-#line 511 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = photo;
-#line 511 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (photo_is_master_metadata_dirty (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo))) {
-#line 3005 "MetadataWriter.c"
- GeeArrayList* _tmp10_;
- GeeArrayList* _tmp12_;
- LibraryPhoto* _tmp13_;
-#line 512 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = photos;
-#line 512 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp10_ == NULL) {
-#line 3013 "MetadataWriter.c"
- GeeArrayList* _tmp11_;
-#line 513 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 513 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photos);
-#line 513 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photos = _tmp11_;
-#line 3021 "MetadataWriter.c"
- }
-#line 515 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = photos;
-#line 515 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = photo;
-#line 515 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_);
-#line 3029 "MetadataWriter.c"
- }
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (media);
-#line 3035 "MetadataWriter.c"
- }
-#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_media_it);
-#line 3039 "MetadataWriter.c"
- }
-#line 519 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = photos;
-#line 519 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp14_ != NULL) {
-#line 3045 "MetadataWriter.c"
- GeeArrayList* _tmp15_;
-#line 520 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = photos;
-#line 520 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), reason, TRUE);
-#line 3051 "MetadataWriter.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photos);
-#line 3055 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_photos_are_dirty (MetadataWriter* self,
- GeeCollection* photos,
- const gchar* reason,
- gboolean already_marked)
-{
- gint _tmp0_;
- gint _tmp1_;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_;
- gint _tmp32_;
- gint _tmp33_;
- GError * _inner_error_ = NULL;
-#line 524 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 524 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (GEE_IS_COLLECTION (photos));
-#line 524 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (reason != NULL);
-#line 525 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = gee_collection_get_size (photos);
-#line 525 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _tmp0_;
-#line 525 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp1_ == 0) {
-#line 526 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 3086 "MetadataWriter.c"
- }
- {
- GeeIterator* _photo_it = NULL;
- GeeIterator* _tmp2_;
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable));
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _photo_it = _tmp2_;
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 3097 "MetadataWriter.c"
- GeeIterator* _tmp3_;
- LibraryPhoto* photo = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- LibraryPhoto* _tmp6_;
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = _photo_it;
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 3109 "MetadataWriter.c"
- }
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _photo_it;
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = (LibraryPhoto*) _tmp5_;
-#line 530 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = photo;
-#line 530 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_cancel_job (self, _tmp6_);
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 3123 "MetadataWriter.c"
- }
-#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_photo_it);
-#line 3127 "MetadataWriter.c"
- }
-#line 533 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!already_marked) {
-#line 3131 "MetadataWriter.c"
- {
- LibraryPhotoSourceCollection* _tmp7_;
- TransactionController* _tmp8_;
- TransactionController* _tmp9_;
- LibraryPhotoSourceCollection* _tmp15_;
- TransactionController* _tmp16_;
- TransactionController* _tmp17_;
-#line 535 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = library_photo_global;
-#line 535 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 535 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = _tmp8_;
-#line 535 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- transaction_controller_begin (_tmp9_);
-#line 3147 "MetadataWriter.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeIterator* _tmp10_;
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable));
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _photo_it = _tmp10_;
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 3157 "MetadataWriter.c"
- GeeIterator* _tmp11_;
- LibraryPhoto* photo = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- LibraryPhoto* _tmp14_;
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = _photo_it;
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 3169 "MetadataWriter.c"
- }
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = _photo_it;
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = (LibraryPhoto*) _tmp13_;
-#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = photo;
-#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_set_master_metadata_dirty (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo), TRUE, &_inner_error_);
-#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_photo_it);
-#line 3187 "MetadataWriter.c"
- goto __catch563_g_error;
- }
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 3192 "MetadataWriter.c"
- }
-#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_photo_it);
-#line 3196 "MetadataWriter.c"
- }
-#line 540 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = library_photo_global;
-#line 540 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 540 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = _tmp16_;
-#line 540 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- transaction_controller_commit (_tmp17_);
-#line 3206 "MetadataWriter.c"
- }
- goto __finally563;
- __catch563_g_error:
- {
- GError* err = NULL;
- GError* _tmp18_;
-#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- err = _inner_error_;
-#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _inner_error_ = NULL;
-#line 542 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp18_ = err;
-#line 542 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp18_->domain == DATABASE_ERROR) {
-#line 3221 "MetadataWriter.c"
- GError* _tmp19_;
-#line 543 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = err;
-#line 543 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- app_window_database_error ((GError*) _tmp19_);
-#line 3227 "MetadataWriter.c"
- } else {
- GError* _tmp20_;
- const gchar* _tmp21_;
-#line 545 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp20_ = err;
-#line 545 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = _tmp20_->message;
-#line 545 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_error ("MetadataWriter.vala:545: Unable to mark metadata as dirty: %s", _tmp21_);
-#line 3237 "MetadataWriter.c"
- }
-#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_error_free0 (err);
-#line 3241 "MetadataWriter.c"
- }
- __finally563:
-#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.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 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_clear_error (&_inner_error_);
-#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 3252 "MetadataWriter.c"
- }
- }
-#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = self->priv->closed;
-#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp23_) {
-#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp22_ = TRUE;
-#line 3261 "MetadataWriter.c"
- } else {
- gboolean _tmp24_;
-#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp24_ = self->priv->enabled;
-#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp22_ = !_tmp24_;
-#line 3268 "MetadataWriter.c"
- }
-#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp22_) {
-#line 552 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 3274 "MetadataWriter.c"
- }
- {
- GeeIterator* _photo_it = NULL;
- GeeIterator* _tmp25_;
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp25_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable));
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _photo_it = _tmp25_;
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 3285 "MetadataWriter.c"
- GeeIterator* _tmp26_;
- LibraryPhoto* photo = NULL;
- GeeIterator* _tmp27_;
- gpointer _tmp28_;
- gboolean enqueued = FALSE;
- HashTimedQueue* _tmp29_;
- LibraryPhoto* _tmp30_;
- gboolean _tmp31_;
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp26_ = _photo_it;
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp26_)) {
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 3300 "MetadataWriter.c"
- }
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp27_ = _photo_it;
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp28_ = gee_iterator_get (_tmp27_);
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo = (LibraryPhoto*) _tmp28_;
-#line 559 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp29_ = self->priv->dirty;
-#line 559 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp30_ = photo;
-#line 559 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- enqueued = timed_queue_enqueue (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_TIMED_QUEUE, TimedQueue), _tmp30_);
-#line 560 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp31_ = enqueued;
-#line 560 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (_tmp31_, "enqueued");
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (photo);
-#line 3320 "MetadataWriter.c"
- }
-#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_photo_it);
-#line 3324 "MetadataWriter.c"
- }
-#line 563 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp32_ = gee_collection_get_size (photos);
-#line 563 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp33_ = _tmp32_;
-#line 563 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_count_enqueued_work (self, _tmp33_, TRUE);
-#line 3332 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_cancel_all (MetadataWriter* self,
- gboolean wait)
-{
- HashTimedQueue* _tmp0_;
-#line 566 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 567 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->dirty;
-#line 567 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- timed_queue_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_TIMED_QUEUE, TimedQueue));
-#line 3347 "MetadataWriter.c"
- {
- GeeIterator* _job_it = NULL;
- GeeHashMap* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeIterator* _tmp5_;
- GeeIterator* _tmp6_;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->pending;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = _tmp2_;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _tmp3_;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = _tmp5_;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp4_);
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _job_it = _tmp6_;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 3374 "MetadataWriter.c"
- GeeIterator* _tmp7_;
- MetadataWriterCommitJob* job = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- MetadataWriterCommitJob* _tmp10_;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = _job_it;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 3386 "MetadataWriter.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = _job_it;
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- job = (MetadataWriterCommitJob*) _tmp9_;
-#line 570 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = job;
-#line 570 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (job);
-#line 3400 "MetadataWriter.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_job_it);
-#line 3404 "MetadataWriter.c"
- }
-#line 572 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (wait) {
-#line 3408 "MetadataWriter.c"
- Workers* _tmp11_;
-#line 573 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = self->priv->workers;
-#line 573 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- workers_wait_for_empty_queue (_tmp11_);
-#line 3414 "MetadataWriter.c"
- }
-#line 575 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_count_cancelled_work (self, G_MAXINT, TRUE);
-#line 3418 "MetadataWriter.c"
-}
-
-
-static gboolean
-metadata_writer_cancel_job (MetadataWriter* self,
- LibraryPhoto* photo)
-{
- gboolean result = FALSE;
- gboolean cancelled = FALSE;
- GeeHashMap* _tmp0_;
- HashTimedQueue* _tmp7_;
-#line 578 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_val_if_fail (IS_METADATA_WRITER (self), FALSE);
-#line 578 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), FALSE);
-#line 579 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- cancelled = FALSE;
-#line 581 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->pending;
-#line 581 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) {
-#line 3440 "MetadataWriter.c"
- MetadataWriterCommitJob* j = NULL;
- GeeHashMap* _tmp1_;
- gpointer _tmp2_;
- GeeHashSet* _tmp3_;
- MetadataWriterCommitJob* _tmp4_;
- MetadataWriterCommitJob* _tmp5_;
- GeeHashMap* _tmp6_;
-#line 582 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->priv->pending;
-#line 582 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 582 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- j = G_TYPE_CHECK_INSTANCE_CAST ((MetadataWriterCommitJob*) _tmp2_, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob);
-#line 583 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = self->priv->pending_cancel;
-#line 583 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = j;
-#line 583 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_);
-#line 584 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = j;
-#line 584 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 585 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = self->priv->pending;
-#line 585 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, NULL);
-#line 586 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- cancelled = TRUE;
-#line 581 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (j);
-#line 3472 "MetadataWriter.c"
- }
-#line 589 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = self->priv->dirty;
-#line 589 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (timed_queue_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_TIMED_QUEUE, TimedQueue), photo)) {
-#line 3478 "MetadataWriter.c"
- gboolean removed = FALSE;
- HashTimedQueue* _tmp8_;
- gboolean _tmp9_;
- HashTimedQueue* _tmp10_;
-#line 590 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = self->priv->dirty;
-#line 590 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- removed = timed_queue_remove_first (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_TIMED_QUEUE, TimedQueue), photo);
-#line 591 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = removed;
-#line 591 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (_tmp9_, "removed");
-#line 593 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = self->priv->dirty;
-#line 593 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (!timed_queue_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_TIMED_QUEUE, TimedQueue), photo), "!dirty.contains(photo)");
-#line 595 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_count_cancelled_work (self, 1, FALSE);
-#line 596 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- cancelled = TRUE;
-#line 3499 "MetadataWriter.c"
- }
-#line 599 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- result = cancelled;
-#line 599 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return result;
-#line 3505 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_photo_dequeued (MetadataWriter* self,
- LibraryPhoto* photo)
-{
- gboolean _tmp0_;
- GeeSet* keywords = NULL;
- GeeCollection* tags = NULL;
- TagSourceCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeCollection* _tmp3_;
- GeeHashMap* _tmp14_;
- MetadataWriterCommitJob* job = NULL;
- GeeSet* _tmp15_;
- MetadataWriterCommitJob* _tmp16_;
- GeeHashMap* _tmp17_;
- MetadataWriterCommitJob* _tmp18_;
- Workers* _tmp19_;
- MetadataWriterCommitJob* _tmp20_;
-#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 603 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->enabled;
-#line 603 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!_tmp0_) {
-#line 604 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_count_cancelled_work (self, 1, TRUE);
-#line 606 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 3539 "MetadataWriter.c"
- }
-#line 609 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- keywords = NULL;
-#line 610 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = tag_global;
-#line 610 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = tag_source_collection_fetch_for_source (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource));
-#line 610 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 611 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = tags;
-#line 611 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp3_ != NULL) {
-#line 3553 "MetadataWriter.c"
- GeeHashSet* _tmp4_;
-#line 612 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 612 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (keywords);
-#line 612 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_SET, GeeSet);
-#line 3561 "MetadataWriter.c"
- {
- GeeIterator* _tag_it = NULL;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = tags;
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tag_it = _tmp6_;
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 3574 "MetadataWriter.c"
- GeeIterator* _tmp7_;
- Tag* tag = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- GeeSet* _tmp10_;
- Tag* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = _tag_it;
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 3589 "MetadataWriter.c"
- }
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = _tag_it;
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- tag = (Tag*) _tmp9_;
-#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = keywords;
-#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = tag;
-#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject));
-#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = _tmp12_;
-#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_);
-#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp13_);
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (tag);
-#line 3611 "MetadataWriter.c"
- }
-#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tag_it);
-#line 3615 "MetadataWriter.c"
- }
- }
-#line 618 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = self->priv->pending;
-#line 618 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) {
-#line 619 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_cancel_job (self, photo);
-#line 3624 "MetadataWriter.c"
- }
-#line 621 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = keywords;
-#line 621 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = metadata_writer_commit_job_new (self, photo, _tmp15_);
-#line 621 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- job = _tmp16_;
-#line 622 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = self->priv->pending;
-#line 622 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp18_ = job;
-#line 622 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, _tmp18_);
-#line 628 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = self->priv->workers;
-#line 628 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp20_ = job;
-#line 628 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- workers_enqueue (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (job);
-#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (tags);
-#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (keywords);
-#line 3650 "MetadataWriter.c"
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 632 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return self ? background_job_ref (self) : NULL;
-#line 3659 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_update_completed (MetadataWriter* self,
- BackgroundJob* j)
-{
- MetadataWriterCommitJob* job = NULL;
- MetadataWriterCommitJob* _tmp0_;
- MetadataWriterCommitJob* _tmp1_;
- GError* _tmp2_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp43_;
- MetadataWriterCommitJob* _tmp44_;
- LibraryPhoto* _tmp45_;
- gboolean _tmp46_;
- gboolean _tmp47_;
- LibraryPhotoSourceCollection* _tmp48_;
- TransactionController* _tmp49_;
- TransactionController* _tmp50_;
- gboolean _tmp51_ = FALSE;
- MetadataWriterCommitJob* _tmp52_;
- PhotoReimportMasterState* _tmp53_;
- LibraryPhotoSourceCollection* _tmp85_;
- TransactionController* _tmp86_;
- TransactionController* _tmp87_;
- GError * _inner_error_ = NULL;
-#line 631 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 631 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 632 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob));
-#line 632 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- job = _tmp0_;
-#line 634 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = job;
-#line 634 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = _tmp1_->err;
-#line 634 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp2_ != NULL) {
-#line 3701 "MetadataWriter.c"
- MetadataWriterCommitJob* _tmp3_;
- LibraryPhoto* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- MetadataWriterCommitJob* _tmp7_;
- GError* _tmp8_;
- const gchar* _tmp9_;
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = job;
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _tmp3_->photo;
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = _tmp5_;
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = job;
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = _tmp7_->err;
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = _tmp8_->message;
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_warning ("MetadataWriter.vala:635: Unable to write metadata to %s: %s", _tmp6_, _tmp9_);
-#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp6_);
-#line 3727 "MetadataWriter.c"
- } else {
- MetadataWriterCommitJob* _tmp10_;
- gboolean _tmp11_;
- MetadataWriterCommitJob* _tmp24_;
- LibraryPhoto* _tmp25_;
- GFile* _tmp26_;
- GFile* _tmp27_;
- gboolean _tmp28_;
-#line 637 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = job;
-#line 637 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = _tmp10_->wrote_master;
-#line 637 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp11_) {
-#line 3742 "MetadataWriter.c"
- MetadataWriterCommitJob* _tmp12_;
- LibraryPhoto* _tmp13_;
- GFile* _tmp14_;
- GFile* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = job;
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = _tmp12_->photo;
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = _tmp14_;
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = g_file_get_path (_tmp15_);
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = _tmp16_;
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_message ("MetadataWriter.vala:638: Completed writing metadata to %s", _tmp17_);
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp17_);
-#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp15_);
-#line 3767 "MetadataWriter.c"
- } else {
- MetadataWriterCommitJob* _tmp18_;
- LibraryPhoto* _tmp19_;
- GFile* _tmp20_;
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp18_ = job;
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = _tmp18_->photo;
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp20_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = _tmp20_;
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp22_ = g_file_get_path (_tmp21_);
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = _tmp22_;
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_message ("MetadataWriter.vala:640: Unable to write metadata to %s", _tmp23_);
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp23_);
-#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp21_);
-#line 3793 "MetadataWriter.c"
- }
-#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp24_ = job;
-#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp25_ = _tmp24_->photo;
-#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp26_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo));
-#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp27_ = _tmp26_;
-#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp28_ = _tmp27_ != NULL;
-#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp27_);
-#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp28_) {
-#line 3809 "MetadataWriter.c"
- MetadataWriterCommitJob* _tmp29_;
- gboolean _tmp30_;
-#line 643 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp29_ = job;
-#line 643 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp30_ = _tmp29_->wrote_editable;
-#line 643 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp30_) {
-#line 3818 "MetadataWriter.c"
- MetadataWriterCommitJob* _tmp31_;
- LibraryPhoto* _tmp32_;
- GFile* _tmp33_;
- GFile* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp31_ = job;
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp32_ = _tmp31_->photo;
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp33_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_PHOTO, Photo));
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp34_ = _tmp33_;
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp35_ = g_file_get_path (_tmp34_);
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp36_ = _tmp35_;
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_message ("MetadataWriter.vala:644: Completed writing metadata to %s", _tmp36_);
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp36_);
-#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp34_);
-#line 3843 "MetadataWriter.c"
- } else {
- MetadataWriterCommitJob* _tmp37_;
- LibraryPhoto* _tmp38_;
- GFile* _tmp39_;
- GFile* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp37_ = job;
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp38_ = _tmp37_->photo;
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp39_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO, Photo));
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp40_ = _tmp39_;
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp41_ = g_file_get_path (_tmp40_);
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp42_ = _tmp41_;
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_message ("MetadataWriter.vala:646: Unable to write metadata to %s", _tmp42_);
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp42_);
-#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp40_);
-#line 3869 "MetadataWriter.c"
- }
- }
- }
-#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp43_ = self->priv->pending;
-#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp44_ = job;
-#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp45_ = _tmp44_->photo;
-#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp46_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp45_, NULL);
-#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- removed = _tmp46_;
-#line 651 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp47_ = removed;
-#line 651 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (_tmp47_, "removed");
-#line 655 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp48_ = library_photo_global;
-#line 655 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp49_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 655 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp50_ = _tmp49_;
-#line 655 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- transaction_controller_begin (_tmp50_);
-#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp52_ = job;
-#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp53_ = _tmp52_->reimport_master_state;
-#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp53_ != NULL) {
-#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp51_ = TRUE;
-#line 3903 "MetadataWriter.c"
- } else {
- MetadataWriterCommitJob* _tmp54_;
- PhotoReimportEditableState* _tmp55_;
-#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp54_ = job;
-#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp55_ = _tmp54_->reimport_editable_state;
-#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp51_ = _tmp55_ != NULL;
-#line 3913 "MetadataWriter.c"
- }
-#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp51_) {
-#line 3917 "MetadataWriter.c"
- LibraryPhoto* _tmp56_;
- MetadataWriterCommitJob* _tmp57_;
- LibraryPhoto* _tmp58_;
- LibraryPhoto* _tmp59_;
-#line 660 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp56_ = self->priv->ignore_photo_alteration;
-#line 660 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (_tmp56_ == NULL, "ignore_photo_alteration == null");
-#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp57_ = job;
-#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp58_ = _tmp57_->photo;
-#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp59_ = _g_object_ref0 (_tmp58_);
-#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->ignore_photo_alteration);
-#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->ignore_photo_alteration = _tmp59_;
-#line 3936 "MetadataWriter.c"
- {
- MetadataWriterCommitJob* _tmp60_;
- PhotoReimportMasterState* _tmp61_;
- MetadataWriterCommitJob* _tmp69_;
- PhotoReimportEditableState* _tmp70_;
-#line 663 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp60_ = job;
-#line 663 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp61_ = _tmp60_->reimport_master_state;
-#line 663 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp61_ != NULL) {
-#line 3948 "MetadataWriter.c"
- MetadataWriterCommitJob* _tmp62_;
- LibraryPhoto* _tmp63_;
- MetadataWriterCommitJob* _tmp64_;
- PhotoReimportMasterState* _tmp65_;
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp62_ = job;
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp63_ = _tmp62_->photo;
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp64_ = job;
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp65_ = _tmp64_->reimport_master_state;
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_finish_update_master_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_PHOTO, Photo), _tmp65_, &_inner_error_);
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 3967 "MetadataWriter.c"
- goto __catch564_database_error;
- }
- {
- LibraryPhoto* _tmp66_;
- MetadataWriterCommitJob* _tmp67_;
- LibraryPhoto* _tmp68_;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp66_ = self->priv->ignore_photo_alteration;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp67_ = job;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp68_ = _tmp67_->photo;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (_tmp66_ == _tmp68_, "ignore_photo_alteration == job.photo");
-#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->ignore_photo_alteration);
-#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->ignore_photo_alteration = NULL;
-#line 3986 "MetadataWriter.c"
- }
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (job);
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.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 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_clear_error (&_inner_error_);
-#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 3996 "MetadataWriter.c"
- }
- }
-#line 666 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp69_ = job;
-#line 666 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp70_ = _tmp69_->reimport_editable_state;
-#line 666 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp70_ != NULL) {
-#line 4005 "MetadataWriter.c"
- MetadataWriterCommitJob* _tmp71_;
- LibraryPhoto* _tmp72_;
- MetadataWriterCommitJob* _tmp73_;
- PhotoReimportEditableState* _tmp74_;
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp71_ = job;
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp72_ = _tmp71_->photo;
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp73_ = job;
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp74_ = _tmp73_->reimport_editable_state;
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_finish_update_editable_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_PHOTO, Photo), _tmp74_, &_inner_error_);
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 4024 "MetadataWriter.c"
- goto __catch564_database_error;
- }
- {
- LibraryPhoto* _tmp75_;
- MetadataWriterCommitJob* _tmp76_;
- LibraryPhoto* _tmp77_;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp75_ = self->priv->ignore_photo_alteration;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp76_ = job;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp77_ = _tmp76_->photo;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (_tmp75_ == _tmp77_, "ignore_photo_alteration == job.photo");
-#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->ignore_photo_alteration);
-#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->ignore_photo_alteration = NULL;
-#line 4043 "MetadataWriter.c"
- }
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (job);
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.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 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_clear_error (&_inner_error_);
-#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4053 "MetadataWriter.c"
- }
- }
- }
- goto __finally564;
- __catch564_database_error:
- {
- GError* err = NULL;
- GError* _tmp78_;
-#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- err = _inner_error_;
-#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _inner_error_ = NULL;
-#line 669 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp78_ = err;
-#line 669 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- app_window_database_error (_tmp78_);
-#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_error_free0 (err);
-#line 4072 "MetadataWriter.c"
- }
- __finally564:
- {
- LibraryPhoto* _tmp79_;
- MetadataWriterCommitJob* _tmp80_;
- LibraryPhoto* _tmp81_;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp79_ = self->priv->ignore_photo_alteration;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp80_ = job;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp81_ = _tmp80_->photo;
-#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (_tmp79_ == _tmp81_, "ignore_photo_alteration == job.photo");
-#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->ignore_photo_alteration);
-#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->ignore_photo_alteration = NULL;
-#line 4091 "MetadataWriter.c"
- }
-#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (job);
-#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.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 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_clear_error (&_inner_error_);
-#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4103 "MetadataWriter.c"
- }
- } else {
- }
- {
- MetadataWriterCommitJob* _tmp82_;
- LibraryPhoto* _tmp83_;
-#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp82_ = job;
-#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp83_ = _tmp82_->photo;
-#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_set_master_metadata_dirty (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, TYPE_PHOTO, Photo), FALSE, &_inner_error_);
-#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 4120 "MetadataWriter.c"
- goto __catch565_database_error;
- }
-#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (job);
-#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.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 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_clear_error (&_inner_error_);
-#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4131 "MetadataWriter.c"
- }
- }
- goto __finally565;
- __catch565_database_error:
- {
- GError* err = NULL;
- GError* _tmp84_;
-#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- err = _inner_error_;
-#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _inner_error_ = NULL;
-#line 685 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp84_ = err;
-#line 685 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- app_window_database_error (_tmp84_);
-#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_error_free0 (err);
-#line 4149 "MetadataWriter.c"
- }
- __finally565:
-#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (job);
-#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.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 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_clear_error (&_inner_error_);
-#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4162 "MetadataWriter.c"
- }
-#line 688 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp85_ = library_photo_global;
-#line 688 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp86_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 688 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp87_ = _tmp86_;
-#line 688 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- transaction_controller_commit (_tmp87_);
-#line 690 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_count_completed_work (self, 1, TRUE);
-#line 631 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _background_job_unref0 (job);
-#line 4176 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_on_update_cancelled (MetadataWriter* self,
- BackgroundJob* j)
-{
- gboolean removed = FALSE;
- GeeHashSet* _tmp0_;
-#line 693 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_METADATA_WRITER (self));
-#line 693 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 694 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->priv->pending_cancel;
-#line 694 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (j, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob));
-#line 695 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (removed, "removed");
-#line 697 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_count_cancelled_work (self, 1, TRUE);
-#line 4198 "MetadataWriter.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__UINT_UINT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__UINT_UINT) (gpointer data1, guint arg_1, guint arg_2, gpointer data2);
- register GMarshalFunc_VOID__UINT_UINT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (n_param_values == 3);
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- data1 = closure->data;
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- data2 = param_values->data[0].v_pointer;
-#line 4224 "MetadataWriter.c"
- } else {
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- data1 = param_values->data[0].v_pointer;
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- data2 = closure->data;
-#line 4230 "MetadataWriter.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- callback = (GMarshalFunc_VOID__UINT_UINT) (marshal_data ? marshal_data : cc->callback);
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- callback (data1, g_value_get_uint (param_values + 1), g_value_get_uint (param_values + 2), data2);
-#line 4236 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_update_completed_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_update_completed ((MetadataWriter*) self, job);
-#line 4246 "MetadataWriter.c"
-}
-
-
-static void
-_metadata_writer_on_update_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_on_update_cancelled ((MetadataWriter*) self, job);
-#line 4256 "MetadataWriter.c"
-}
-
-
-static MetadataWriterCommitJob*
-metadata_writer_commit_job_construct (GType object_type,
- MetadataWriter* owner,
- LibraryPhoto* photo,
- GeeSet* keywords)
-{
- MetadataWriterCommitJob* self = NULL;
- GCancellable* _tmp0_;
- GCancellable* _tmp1_;
- LibraryPhoto* _tmp2_;
- GeeSet* _tmp3_;
-#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_val_if_fail (IS_METADATA_WRITER (owner), NULL);
-#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_val_if_fail ((keywords == NULL) || GEE_IS_SET (keywords), NULL);
-#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = g_cancellable_new ();
-#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self = (MetadataWriterCommitJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _metadata_writer_on_update_completed_completion_callback, owner, _tmp1_, _metadata_writer_on_update_cancelled_cancellation_callback, owner, NULL);
-#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp1_);
-#line 32 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = _g_object_ref0 (photo);
-#line 32 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->photo);
-#line 32 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->photo = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = _g_object_ref0 (keywords);
-#line 33 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->current_keywords);
-#line 33 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->current_keywords = _tmp3_;
-#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return self;
-#line 4299 "MetadataWriter.c"
-}
-
-
-static MetadataWriterCommitJob*
-metadata_writer_commit_job_new (MetadataWriter* owner,
- LibraryPhoto* photo,
- GeeSet* keywords)
-{
-#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return metadata_writer_commit_job_construct (METADATA_WRITER_TYPE_COMMIT_JOB, owner, photo, keywords);
-#line 4310 "MetadataWriter.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return self ? g_error_copy (self) : NULL;
-#line 4319 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_commit_job_real_execute (BackgroundJob* base)
-{
- MetadataWriterCommitJob * self;
- GError * _inner_error_ = NULL;
-#line 36 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob);
-#line 4330 "MetadataWriter.c"
- {
-#line 38 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_commit_job_commit_master (self, &_inner_error_);
-#line 38 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4336 "MetadataWriter.c"
- goto __catch566_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 4343 "MetadataWriter.c"
- goto __catch566_g_error;
- }
- }
- goto __finally566;
- __catch566_g_error:
- {
- GError* err = NULL;
- GError* _tmp0_;
- GError* _tmp1_;
-#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- err = _inner_error_;
-#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _inner_error_ = NULL;
-#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = err;
-#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _g_error_copy0 (_tmp0_);
-#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_error_free0 (self->err);
-#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->err = _tmp1_;
-#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_error_free0 (err);
-#line 4367 "MetadataWriter.c"
- }
- __finally566:
-#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.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 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_clear_error (&_inner_error_);
-#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4378 "MetadataWriter.c"
- }
-}
-
-
-static void
-metadata_writer_commit_job_commit_master (MetadataWriterCommitJob* self,
- GError** error)
-{
- gboolean skip_orientation = FALSE;
- LibraryPhoto* _tmp0_;
- LibraryPhoto* _tmp1_;
- PhotoMetadata* metadata = NULL;
- LibraryPhoto* _tmp2_;
- PhotoMetadata* _tmp3_;
- PhotoMetadata* _tmp4_;
- gboolean _tmp5_;
- GError * _inner_error_ = NULL;
-#line 45 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (METADATA_WRITER_IS_COMMIT_JOB (self));
-#line 49 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->photo;
-#line 49 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- skip_orientation = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo));
-#line 51 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->photo;
-#line 51 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!photo_file_format_can_write_metadata (photo_get_master_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo)))) {
-#line 52 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4408 "MetadataWriter.c"
- }
-#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = self->photo;
-#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = photo_get_master_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO, Photo), &_inner_error_);
-#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata = _tmp3_;
-#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_propagate_error (error, _inner_error_);
-#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4422 "MetadataWriter.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = metadata;
-#line 55 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = skip_orientation;
-#line 55 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (metadata_writer_commit_job_update_metadata (self, _tmp4_, _tmp5_)) {
-#line 4430 "MetadataWriter.c"
- LibraryPhoto* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
-#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = self->photo;
-#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = _tmp7_;
-#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- library_monitor_blacklist_file (_tmp8_, "MetadataWriter.commit_master");
-#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp8_);
-#line 4444 "MetadataWriter.c"
- {
- LibraryPhoto* _tmp9_;
- PhotoMetadata* _tmp10_;
- PhotoReimportMasterState* _tmp11_ = NULL;
-#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = self->photo;
-#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = metadata;
-#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_persist_master_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo), _tmp10_, &_tmp11_, &_inner_error_);
-#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _photo_reimport_master_state_unref0 (self->reimport_master_state);
-#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->reimport_master_state = _tmp11_;
-#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4461 "MetadataWriter.c"
- goto __finally567;
- }
- }
- __finally567:
- {
- LibraryPhoto* _tmp12_;
- GFile* _tmp13_;
- GFile* _tmp14_;
-#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = self->photo;
-#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = _tmp13_;
-#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- library_monitor_unblacklist_file (_tmp14_);
-#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp14_);
-#line 4480 "MetadataWriter.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 57 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_propagate_error (error, _inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _media_metadata_unref0 (metadata);
-#line 57 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4490 "MetadataWriter.c"
- }
- }
-#line 64 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->wrote_master = TRUE;
-#line 45 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _media_metadata_unref0 (metadata);
-#line 4497 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_commit_job_commit_editable (MetadataWriterCommitJob* self,
- GError** error)
-{
- gboolean _tmp0_ = FALSE;
- LibraryPhoto* _tmp1_;
- PhotoMetadata* metadata = NULL;
- LibraryPhoto* _tmp5_;
- PhotoMetadata* _tmp6_;
- PhotoMetadata* _tmp7_;
- PhotoMetadata* _tmp8_;
- GError * _inner_error_ = NULL;
-#line 67 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_if_fail (METADATA_WRITER_IS_COMMIT_JOB (self));
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = self->photo;
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo))) {
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = TRUE;
-#line 4521 "MetadataWriter.c"
- } else {
- LibraryPhoto* _tmp2_;
- PhotoFileFormat* _tmp3_;
- PhotoFileFormat* _tmp4_;
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = self->photo;
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = photo_get_editable_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO, Photo));
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _tmp3_;
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = !photo_file_format_can_write_metadata (*_tmp4_);
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp4_);
-#line 4536 "MetadataWriter.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp0_) {
-#line 69 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4542 "MetadataWriter.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = self->photo;
-#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = photo_get_editable_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO, Photo), &_inner_error_);
-#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata = _tmp6_;
-#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_propagate_error (error, _inner_error_);
-#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4556 "MetadataWriter.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = metadata;
-#line 72 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _vala_assert (_tmp7_ != NULL, "metadata != null");
-#line 74 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = metadata;
-#line 74 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (metadata_writer_commit_job_update_metadata (self, _tmp8_, FALSE)) {
-#line 4566 "MetadataWriter.c"
- LibraryPhoto* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
-#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = self->photo;
-#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo));
-#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = _tmp10_;
-#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- library_monitor_blacklist_file (_tmp11_, "MetadataWriter.commit_editable");
-#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp11_);
-#line 4580 "MetadataWriter.c"
- {
- LibraryPhoto* _tmp12_;
- PhotoMetadata* _tmp13_;
- PhotoReimportEditableState* _tmp14_ = NULL;
-#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = self->photo;
-#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = metadata;
-#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_persist_editable_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO, Photo), _tmp13_, &_tmp14_, &_inner_error_);
-#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _photo_reimport_editable_state_unref0 (self->reimport_editable_state);
-#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->reimport_editable_state = _tmp14_;
-#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4597 "MetadataWriter.c"
- goto __finally568;
- }
- }
- __finally568:
- {
- LibraryPhoto* _tmp15_;
- GFile* _tmp16_;
- GFile* _tmp17_;
-#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = self->photo;
-#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO, Photo));
-#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = _tmp16_;
-#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- library_monitor_unblacklist_file (_tmp17_);
-#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp17_);
-#line 4616 "MetadataWriter.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 76 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_propagate_error (error, _inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _media_metadata_unref0 (metadata);
-#line 76 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return;
-#line 4626 "MetadataWriter.c"
- }
- }
-#line 83 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->wrote_editable = TRUE;
-#line 67 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _media_metadata_unref0 (metadata);
-#line 4633 "MetadataWriter.c"
-}
-
-
-static gboolean
-metadata_writer_commit_job_update_metadata (MetadataWriterCommitJob* self,
- PhotoMetadata* metadata,
- gboolean skip_orientation)
-{
- gboolean result = FALSE;
- gboolean changed = FALSE;
- gchar* current_title = NULL;
- LibraryPhoto* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gboolean _tmp5_;
- gchar* current_comment = NULL;
- LibraryPhoto* _tmp7_;
- gchar* _tmp8_;
- const gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_;
- Rating current_rating = 0;
- LibraryPhoto* _tmp14_;
- Rating _tmp15_;
- time_t current_exposure_time = 0;
- LibraryPhoto* _tmp17_;
- time_t metadata_exposure_time = 0;
- MetadataDateTime* metadata_exposure_date_time = NULL;
- MetadataDateTime* _tmp18_;
- MetadataDateTime* _tmp19_;
- time_t _tmp21_;
- time_t _tmp22_;
- GeeSet* safe_keywords = NULL;
- GeeHashSet* _tmp27_;
- GeeSet* _tmp28_;
- GeeSet* _tmp40_;
- GeeSet* _tmp41_;
- GeeSet* _tmp42_;
- gboolean _tmp43_;
- gboolean _tmp48_;
-#line 86 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_val_if_fail (METADATA_WRITER_IS_COMMIT_JOB (self), FALSE);
-#line 86 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (metadata), FALSE);
-#line 87 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- changed = FALSE;
-#line 90 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = self->photo;
-#line 90 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 90 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- current_title = _tmp1_;
-#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = current_title;
-#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = _tmp3_;
-#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = g_strcmp0 (_tmp2_, _tmp4_) != 0;
-#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp4_);
-#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp5_) {
-#line 4701 "MetadataWriter.c"
- const gchar* _tmp6_;
-#line 92 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp6_ = current_title;
-#line 92 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_metadata_set_title (metadata, _tmp6_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 93 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- changed = TRUE;
-#line 4709 "MetadataWriter.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = self->photo;
-#line 97 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp8_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 97 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- current_comment = _tmp8_;
-#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = current_comment;
-#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp10_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = _tmp10_;
-#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp12_ = g_strcmp0 (_tmp9_, _tmp11_) != 0;
-#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp11_);
-#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp12_) {
-#line 4729 "MetadataWriter.c"
- const gchar* _tmp13_;
-#line 99 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = current_comment;
-#line 99 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_metadata_set_comment (metadata, _tmp13_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 100 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- changed = TRUE;
-#line 4737 "MetadataWriter.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp14_ = self->photo;
-#line 104 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- current_rating = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 105 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = current_rating;
-#line 105 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp15_ != photo_metadata_get_rating (metadata)) {
-#line 4747 "MetadataWriter.c"
- Rating _tmp16_;
-#line 106 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp16_ = current_rating;
-#line 106 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_metadata_set_rating (metadata, _tmp16_);
-#line 107 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- changed = TRUE;
-#line 4755 "MetadataWriter.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = self->photo;
-#line 111 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- current_exposure_time = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 112 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_exposure_time = (time_t) 0;
-#line 113 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp18_ = photo_metadata_get_exposure_date_time (metadata);
-#line 113 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_exposure_date_time = _tmp18_;
-#line 114 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = metadata_exposure_date_time;
-#line 114 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp19_ != NULL) {
-#line 4771 "MetadataWriter.c"
- MetadataDateTime* _tmp20_;
-#line 115 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp20_ = metadata_exposure_date_time;
-#line 115 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_exposure_time = metadata_date_time_get_timestamp (_tmp20_);
-#line 4777 "MetadataWriter.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = current_exposure_time;
-#line 116 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp22_ = metadata_exposure_time;
-#line 116 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp21_ != _tmp22_) {
-#line 4785 "MetadataWriter.c"
- MetadataDateTime* _tmp23_ = NULL;
- time_t _tmp24_;
-#line 117 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp24_ = current_exposure_time;
-#line 117 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp24_ != ((time_t) 0)) {
-#line 4792 "MetadataWriter.c"
- time_t _tmp25_;
- MetadataDateTime* _tmp26_;
-#line 118 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp25_ = current_exposure_time;
-#line 118 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp26_ = metadata_date_time_new (_tmp25_);
-#line 118 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _metadata_date_time_unref0 (_tmp23_);
-#line 118 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = _tmp26_;
-#line 4803 "MetadataWriter.c"
- } else {
-#line 119 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _metadata_date_time_unref0 (_tmp23_);
-#line 119 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = NULL;
-#line 4809 "MetadataWriter.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_metadata_set_exposure_date_time (metadata, _tmp23_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 120 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- changed = TRUE;
-#line 116 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _metadata_date_time_unref0 (_tmp23_);
-#line 4817 "MetadataWriter.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp27_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 124 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- safe_keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_SET, GeeSet);
-#line 133 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp28_ = self->current_keywords;
-#line 133 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp28_ != NULL) {
-#line 4827 "MetadataWriter.c"
- {
- GeeIterator* _tmp_it = NULL;
- GeeSet* _tmp29_;
- GeeIterator* _tmp30_;
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp29_ = self->current_keywords;
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp30_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp_it = _tmp30_;
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- while (TRUE) {
-#line 4840 "MetadataWriter.c"
- GeeIterator* _tmp31_;
- gchar* tmp = NULL;
- GeeIterator* _tmp32_;
- gpointer _tmp33_;
- Tag* tag = NULL;
- const gchar* _tmp34_;
- Tag* _tmp35_;
- GeeSet* _tmp36_;
- Tag* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp31_ = _tmp_it;
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!gee_iterator_next (_tmp31_)) {
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- break;
-#line 4858 "MetadataWriter.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp32_ = _tmp_it;
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp33_ = gee_iterator_get (_tmp32_);
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- tmp = (gchar*) _tmp33_;
-#line 135 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp34_ = tmp;
-#line 135 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp35_ = tag_for_path (_tmp34_);
-#line 135 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- tag = _tmp35_;
-#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp36_ = safe_keywords;
-#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp37_ = tag;
-#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp38_ = tag_get_user_visible_name (_tmp37_);
-#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp39_ = _tmp38_;
-#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp39_);
-#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (_tmp39_);
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (tag);
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (tmp);
-#line 4888 "MetadataWriter.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp_it);
-#line 4892 "MetadataWriter.c"
- }
- }
-#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp40_ = safe_keywords;
-#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp41_ = photo_metadata_get_keywords (metadata, NULL, NULL, NULL);
-#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp42_ = _tmp41_;
-#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp43_ = !equal_sets (_tmp40_, _tmp42_);
-#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp42_);
-#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp43_) {
-#line 4907 "MetadataWriter.c"
- GeeSet* _tmp44_;
-#line 141 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp44_ = self->current_keywords;
-#line 141 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_metadata_set_keywords (metadata, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection), PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 142 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- changed = TRUE;
-#line 4915 "MetadataWriter.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (!skip_orientation) {
-#line 4919 "MetadataWriter.c"
- Orientation current_orientation = 0;
- LibraryPhoto* _tmp45_;
- Orientation _tmp46_;
-#line 147 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp45_ = self->photo;
-#line 147 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- current_orientation = photo_get_orientation (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PHOTO, Photo));
-#line 148 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp46_ = current_orientation;
-#line 148 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp46_ != photo_metadata_get_orientation (metadata)) {
-#line 4931 "MetadataWriter.c"
- Orientation _tmp47_;
-#line 149 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp47_ = current_orientation;
-#line 149 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_metadata_set_orientation (metadata, _tmp47_);
-#line 150 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- changed = TRUE;
-#line 4939 "MetadataWriter.c"
- }
- }
-#line 155 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp48_ = changed;
-#line 155 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- if (_tmp48_) {
-#line 156 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- photo_metadata_set_software (metadata, RESOURCES_APP_TITLE, RESOURCES_APP_VERSION);
-#line 4948 "MetadataWriter.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- result = changed;
-#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (safe_keywords);
-#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _metadata_date_time_unref0 (metadata_exposure_date_time);
-#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (current_comment);
-#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_free0 (current_title);
-#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- return result;
-#line 4962 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_commit_job_class_init (MetadataWriterCommitJobClass * klass)
-{
-#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_commit_job_parent_class = g_type_class_peek_parent (klass);
-#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- ((BackgroundJobClass *) klass)->finalize = metadata_writer_commit_job_finalize;
-#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) metadata_writer_commit_job_real_execute;
-#line 4975 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_commit_job_instance_init (MetadataWriterCommitJob * self)
-{
-#line 23 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->reimport_master_state = NULL;
-#line 24 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->reimport_editable_state = NULL;
-#line 25 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->err = NULL;
-#line 26 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->wrote_master = FALSE;
-#line 27 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->wrote_editable = FALSE;
-#line 4992 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_commit_job_finalize (BackgroundJob * obj)
-{
- MetadataWriterCommitJob * self;
-#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob);
-#line 21 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->photo);
-#line 22 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->current_keywords);
-#line 23 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _photo_reimport_master_state_unref0 (self->reimport_master_state);
-#line 24 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _photo_reimport_editable_state_unref0 (self->reimport_editable_state);
-#line 25 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_error_free0 (self->err);
-#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- BACKGROUND_JOB_CLASS (metadata_writer_commit_job_parent_class)->finalize (obj);
-#line 5014 "MetadataWriter.c"
-}
-
-
-static GType
-metadata_writer_commit_job_get_type (void)
-{
- static volatile gsize metadata_writer_commit_job_type_id__volatile = 0;
- if (g_once_init_enter (&metadata_writer_commit_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MetadataWriterCommitJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) metadata_writer_commit_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MetadataWriterCommitJob), 0, (GInstanceInitFunc) metadata_writer_commit_job_instance_init, NULL };
- GType metadata_writer_commit_job_type_id;
- metadata_writer_commit_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "MetadataWriterCommitJob", &g_define_type_info, 0);
- g_once_init_leave (&metadata_writer_commit_job_type_id__volatile, metadata_writer_commit_job_type_id);
- }
- return metadata_writer_commit_job_type_id__volatile;
-}
-
-
-static void
-metadata_writer_class_init (MetadataWriterClass * klass)
-{
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_parent_class = g_type_class_peek_parent (klass);
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_type_class_add_private (klass, sizeof (MetadataWriterPrivate));
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- G_OBJECT_CLASS (klass)->finalize = metadata_writer_finalize;
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL] = g_signal_new ("progress", TYPE_METADATA_WRITER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__UINT_UINT, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
-#line 5043 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_instance_init (MetadataWriter * self)
-{
- Workers* _tmp0_;
- GeeHashMap* _tmp1_;
- GeeHashSet* _tmp2_;
- GeeHashSet* _tmp3_;
- GeeHashSet* _tmp4_;
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv = METADATA_WRITER_GET_PRIVATE (self);
-#line 164 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = workers_new ((guint) 1, FALSE);
-#line 164 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->workers = _tmp0_;
-#line 165 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->enabled = FALSE;
-#line 167 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, METADATA_WRITER_TYPE_COMMIT_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 167 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->pending = _tmp1_;
-#line 168 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp2_ = gee_hash_set_new (METADATA_WRITER_TYPE_COMMIT_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 168 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->pending_cancel = _tmp2_;
-#line 169 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 169 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->interested_photo_details = _tmp3_;
-#line 170 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->ignore_photo_alteration = NULL;
-#line 171 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_total = (guint) 0;
-#line 172 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->outstanding_completed = (guint) 0;
-#line 173 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->closed = FALSE;
-#line 174 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->pause_count = 0;
-#line 175 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp4_ = gee_hash_set_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 175 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self->priv->importing_photos = _tmp4_;
-#line 5089 "MetadataWriter.c"
-}
-
-
-static void
-metadata_writer_finalize (GObject * obj)
-{
- MetadataWriter * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- guint _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- guint _tmp4_;
- LibraryPhotoSourceCollection* _tmp5_;
- guint _tmp6_;
- LibraryPhotoSourceCollection* _tmp7_;
- guint _tmp8_;
- LibraryPhotoSourceCollection* _tmp9_;
- guint _tmp10_;
- LibraryPhotoSourceCollection* _tmp11_;
- guint _tmp12_;
- LibraryPhotoSourceCollection* _tmp13_;
- guint _tmp14_;
- LibraryPhotoSourceCollection* _tmp15_;
- guint _tmp16_;
- TagSourceCollection* _tmp17_;
- guint _tmp18_;
- TagSourceCollection* _tmp19_;
- guint _tmp20_;
- TagSourceCollection* _tmp21_;
- guint _tmp22_;
- TagSourceCollection* _tmp23_;
- guint _tmp24_;
- TagSourceCollection* _tmp25_;
- guint _tmp26_;
- Application* _tmp27_;
- Application* _tmp28_;
- guint _tmp29_;
- LibraryMonitorPool* _tmp30_;
- LibraryMonitorPool* _tmp31_;
- guint _tmp32_;
- LibraryMonitorPool* _tmp33_;
- LibraryMonitorPool* _tmp34_;
- guint _tmp35_;
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_METADATA_WRITER, MetadataWriter);
-#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp1_ = _tmp0_;
-#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("commit-metadata-to-masters-changed", TYPE_CONFIGURATION_FACADE, &_tmp2_, NULL, FALSE);
-#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _metadata_writer_on_config_changed_configuration_facade_commit_metadata_to_masters_changed, self);
-#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (_tmp1_);
-#line 222 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp3_ = library_photo_global;
-#line 222 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("media-import-starting", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp4_, NULL, FALSE);
-#line 222 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _metadata_writer_on_importing_photos_media_source_collection_media_import_starting, self);
-#line 223 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp5_ = library_photo_global;
-#line 223 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("media-import-completed", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE);
-#line 223 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _metadata_writer_on_photos_imported_media_source_collection_media_import_completed, self);
-#line 224 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp7_ = library_photo_global;
-#line 224 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE);
-#line 224 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _metadata_writer_on_photos_added_removed_data_collection_contents_altered, self);
-#line 225 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp9_ = library_photo_global;
-#line 225 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 225 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _metadata_writer_on_photos_altered_data_collection_items_altered, self);
-#line 226 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp11_ = library_photo_global;
-#line 226 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("frozen", TYPE_DATA_COLLECTION, &_tmp12_, NULL, FALSE);
-#line 226 "/home/jens/Source/shotwell/src/MetadataWriter.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) _metadata_writer_on_collection_frozen_data_collection_frozen, self);
-#line 227 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp13_ = library_photo_global;
-#line 227 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("thawed", TYPE_DATA_COLLECTION, &_tmp14_, NULL, FALSE);
-#line 227 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _metadata_writer_on_collection_thawed_data_collection_thawed, self);
-#line 228 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp15_ = library_photo_global;
-#line 228 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp16_, NULL, FALSE);
-#line 228 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _metadata_writer_on_photos_destroyed_source_collection_items_destroyed, self);
-#line 230 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp17_ = tag_global;
-#line 230 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp18_, NULL, FALSE);
-#line 230 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp18_, 0, NULL, (GCallback) _metadata_writer_on_tags_altered_data_collection_items_altered, self);
-#line 231 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp19_ = tag_global;
-#line 231 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("container-contents-altered", TYPE_CONTAINER_SOURCE_COLLECTION, &_tmp20_, NULL, FALSE);
-#line 231 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _metadata_writer_on_tag_contents_altered_container_source_collection_container_contents_altered, self);
-#line 232 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp21_ = tag_global;
-#line 232 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("backlink-to-container-removed", TYPE_CONTAINER_SOURCE_COLLECTION, &_tmp22_, NULL, FALSE);
-#line 232 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp22_, 0, NULL, (GCallback) _metadata_writer_on_tag_backlink_removed_container_source_collection_backlink_to_container_removed, self);
-#line 233 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp23_ = tag_global;
-#line 233 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("frozen", TYPE_DATA_COLLECTION, &_tmp24_, NULL, FALSE);
-#line 233 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp24_, 0, NULL, (GCallback) _metadata_writer_on_collection_frozen_data_collection_frozen, self);
-#line 234 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp25_ = tag_global;
-#line 234 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("thawed", TYPE_DATA_COLLECTION, &_tmp26_, NULL, FALSE);
-#line 234 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _metadata_writer_on_collection_thawed_data_collection_thawed, self);
-#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp27_ = application_get_instance ();
-#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp28_ = _tmp27_;
-#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("exiting", TYPE_APPLICATION, &_tmp29_, NULL, FALSE);
-#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (_tmp28_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, 0, NULL, (GCallback) _metadata_writer_on_application_exiting_application_exiting, self);
-#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _application_unref0 (_tmp28_);
-#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp30_ = library_monitor_pool_get_instance ();
-#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp31_ = _tmp30_;
-#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("monitor-installed", TYPE_LIBRARY_MONITOR_POOL, &_tmp32_, NULL, FALSE);
-#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (_tmp31_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp32_, 0, NULL, (GCallback) _metadata_writer_on_monitor_installed_library_monitor_pool_monitor_installed, self);
-#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _library_monitor_pool_unref0 (_tmp31_);
-#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp33_ = library_monitor_pool_get_instance ();
-#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _tmp34_ = _tmp33_;
-#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_parse_name ("monitor-destroyed", TYPE_LIBRARY_MONITOR_POOL, &_tmp35_, NULL, FALSE);
-#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- g_signal_handlers_disconnect_matched (_tmp34_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp35_, 0, NULL, (GCallback) _metadata_writer_on_monitor_destroyed_library_monitor_pool_monitor_destroyed, self);
-#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _library_monitor_pool_unref0 (_tmp34_);
-#line 164 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _workers_unref0 (self->priv->workers);
-#line 166 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _timed_queue_unref0 (self->priv->dirty);
-#line 167 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->pending);
-#line 168 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->pending_cancel);
-#line 169 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->interested_photo_details);
-#line 170 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->ignore_photo_alteration);
-#line 175 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- _g_object_unref0 (self->priv->importing_photos);
-#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala"
- G_OBJECT_CLASS (metadata_writer_parent_class)->finalize (obj);
-#line 5263 "MetadataWriter.c"
-}
-
-
-GType
-metadata_writer_get_type (void)
-{
- static volatile gsize metadata_writer_type_id__volatile = 0;
- if (g_once_init_enter (&metadata_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MetadataWriter), 0, (GInstanceInitFunc) metadata_writer_instance_init, NULL };
- GType metadata_writer_type_id;
- metadata_writer_type_id = g_type_register_static (G_TYPE_OBJECT, "MetadataWriter", &g_define_type_info, 0);
- g_once_init_leave (&metadata_writer_type_id__volatile, metadata_writer_type_id);
- }
- return metadata_writer_type_id__volatile;
-}
-
-
-
diff --git a/src/NaturalCollate.c b/src/NaturalCollate.c
deleted file mode 100644
index b5c4fdb..0000000
--- a/src/NaturalCollate.c
+++ /dev/null
@@ -1,679 +0,0 @@
-/* NaturalCollate.c generated by valac 0.40.4, the Vala compiler
- * generated from NaturalCollate.vala, do not modify */
-
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-
-
-#define NATURAL_COLLATE_SUPERDIGIT ((gunichar) ':')
-#define NATURAL_COLLATE_NUM_SENTINEL ((gunichar) 0x2)
-#define NATURAL_COLLATE_COLLATION_SENTINEL "\x01\x01\x01"
-gint natural_collate_read_number (gchar* s,
- gint* byte_index);
-gint natural_collate_compare (const gchar* str1,
- const gchar* str2);
-gchar* natural_collate_collate_key (gchar* str);
-
-
-static gunichar
-string_get_char (const gchar* self,
- glong index)
-{
- gunichar result = 0U;
-#line 1154 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0U);
-#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = g_utf8_get_char (((gchar*) self) + index);
-#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 41 "NaturalCollate.c"
-}
-
-
-static gint
-string_index_of_nth_char (const gchar* self,
- glong c)
-{
- gint result = 0;
- gchar* _tmp0_;
-#line 1174 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 1175 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_utf8_offset_to_pointer (self, c);
-#line 1175 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) (_tmp0_ - ((gchar*) self));
-#line 1175 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 59 "NaturalCollate.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 83 "NaturalCollate.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 92 "NaturalCollate.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 113 "NaturalCollate.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 117 "NaturalCollate.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 123 "NaturalCollate.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 133 "NaturalCollate.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 137 "NaturalCollate.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 145 "NaturalCollate.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 152 "NaturalCollate.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 156 "NaturalCollate.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 162 "NaturalCollate.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 174 "NaturalCollate.c"
-}
-
-
-gint
-natural_collate_read_number (gchar* s,
- gint* byte_index)
-{
- gint result = 0;
- gint number = 0;
-#line 23 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- g_return_val_if_fail (s != NULL, 0);
-#line 31 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- number = 0;
-#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- while (TRUE) {
-#line 190 "NaturalCollate.c"
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint second_char = 0;
- gint _tmp5_;
- gchar* _tmp6_;
- gint _tmp7_;
-#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp1_ = strlen (s);
-#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp2_ = _tmp1_;
-#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- if (_tmp2_ != 0) {
-#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp0_ = g_unichar_isdigit (string_get_char (s, (glong) 0));
-#line 208 "NaturalCollate.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp0_ = FALSE;
-#line 212 "NaturalCollate.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- if (!_tmp0_) {
-#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- break;
-#line 218 "NaturalCollate.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp3_ = number;
-#line 34 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- number = _tmp3_ * 10;
-#line 35 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp4_ = number;
-#line 35 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- number = _tmp4_ + g_unichar_digit_value (string_get_char (s, (glong) 0));
-#line 36 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- second_char = string_index_of_nth_char (s, (glong) 1);
-#line 37 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp5_ = second_char;
-#line 37 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp6_ = string_substring (s, (glong) _tmp5_, (glong) -1);
-#line 37 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (s);
-#line 37 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- s = _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp7_ = second_char;
-#line 38 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- *byte_index = (*byte_index) + _tmp7_;
-#line 242 "NaturalCollate.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- result = number;
-#line 40 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (s);
-#line 40 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- return result;
-#line 250 "NaturalCollate.c"
-}
-
-
-gint
-natural_collate_compare (const gchar* str1,
- const gchar* str2)
-{
- gint result = 0;
- GCompareFunc _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gint _tmp7_;
-#line 43 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- g_return_val_if_fail (str1 != NULL, 0);
-#line 43 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- g_return_val_if_fail (str2 != NULL, 0);
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp0_ = g_strcmp0;
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp1_ = g_strdup (str1);
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp2_ = natural_collate_collate_key (_tmp1_);
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp3_ = _tmp2_;
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp4_ = g_strdup (str2);
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp5_ = natural_collate_collate_key (_tmp4_);
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp6_ = _tmp5_;
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp7_ = _tmp0_ (_tmp3_, _tmp6_);
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp6_);
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp3_);
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- result = _tmp7_;
-#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- return result;
-#line 295 "NaturalCollate.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 315 "NaturalCollate.c"
-}
-
-
-static gchar*
-g_unichar_to_string (gunichar self)
-{
- gchar* result = NULL;
- gchar* str = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 963 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, 7);
-#line 963 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- str = (gchar*) _tmp0_;
-#line 964 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = str;
-#line 964 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_unichar_to_utf8 (self, _tmp1_);
-#line 965 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = str;
-#line 965 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 338 "NaturalCollate.c"
-}
-
-
-gchar*
-natural_collate_collate_key (gchar* str)
-{
- gchar* result = NULL;
- gboolean _tmp0_;
- gchar* _result_ = NULL;
- gchar* _tmp1_;
- gboolean eos = FALSE;
- gint _tmp2_;
- gint _tmp3_;
- const gchar* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
-#line 47 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- g_return_val_if_fail (str != NULL, NULL);
-#line 53 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp0_ = g_utf8_validate (str, (gssize) -1, NULL);
-#line 53 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _vala_assert (_tmp0_, "str.validate()");
-#line 54 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp1_ = g_strdup ("");
-#line 54 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _result_ = _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp2_ = strlen (str);
-#line 55 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp3_ = _tmp2_;
-#line 55 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- eos = _tmp3_ == 0;
-#line 57 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- while (TRUE) {
-#line 374 "NaturalCollate.c"
- gboolean _tmp4_;
- gboolean _tmp5_;
- gint position = 0;
- const gchar* _tmp11_;
- gint _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gint _tmp18_;
- gchar* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gboolean _tmp22_;
- gint _tmp56_;
- gint _tmp57_;
-#line 57 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp4_ = eos;
-#line 57 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- if (!(!_tmp4_)) {
-#line 57 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- break;
-#line 398 "NaturalCollate.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp5_ = g_utf8_validate (str, (gssize) -1, NULL);
-#line 58 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _vala_assert (_tmp5_, "str.validate()");
-#line 59 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- position = 0;
-#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- while (TRUE) {
-#line 408 "NaturalCollate.c"
- gint _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gboolean _tmp9_;
- gint _tmp10_;
-#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp6_ = position;
-#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp7_ = g_unichar_to_string (string_get_char (str, (glong) _tmp6_));
-#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp8_ = _tmp7_;
-#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp9_ = !(!string_contains ("0123456789", _tmp8_));
-#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp8_);
-#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- if (_tmp9_) {
-#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- break;
-#line 428 "NaturalCollate.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp10_ = position;
-#line 62 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- position = _tmp10_ + 1;
-#line 434 "NaturalCollate.c"
- }
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp11_ = _result_;
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp12_ = position;
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp13_ = string_substring (str, (glong) 0, (glong) _tmp12_);
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp14_ = _tmp13_;
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp15_ = g_utf8_collate_key (_tmp14_, (gssize) -1);
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp16_ = _tmp15_;
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp17_ = g_strconcat (_tmp11_, _tmp16_, NULL);
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_result_);
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _result_ = _tmp17_;
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp16_);
-#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp14_);
-#line 69 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp18_ = position;
-#line 69 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp19_ = string_substring (str, (glong) _tmp18_, (glong) -1);
-#line 69 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (str);
-#line 69 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- str = _tmp19_;
-#line 71 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp20_ = strlen (str);
-#line 71 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp21_ = _tmp20_;
-#line 71 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- eos = _tmp21_ == 0;
-#line 72 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- position = 0;
-#line 74 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp22_ = eos;
-#line 74 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- if (!_tmp22_) {
-#line 478 "NaturalCollate.c"
- gint number = 0;
- gchar* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- gchar* _tmp26_;
- gint number_of_superdigits = 0;
- gint _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- gchar* to_append = NULL;
- gchar* _tmp33_;
- const gchar* _tmp42_;
- gint _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- gchar* _tmp46_;
- const gchar* _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
- const gchar* _tmp54_;
- gchar* _tmp55_;
-#line 76 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp23_ = g_strdup (str);
-#line 76 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp24_ = natural_collate_read_number (_tmp23_, &position);
-#line 76 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- number = _tmp24_;
-#line 77 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp25_ = position;
-#line 77 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp26_ = string_substring (str, (glong) _tmp25_, (glong) -1);
-#line 77 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (str);
-#line 77 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- str = _tmp26_;
-#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp27_ = number;
-#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp28_ = g_strdup_printf ("%i", _tmp27_);
-#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp29_ = _tmp28_;
-#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp30_ = strlen (_tmp29_);
-#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp31_ = _tmp30_;
-#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp32_ = _tmp31_;
-#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp29_);
-#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- number_of_superdigits = _tmp32_;
-#line 79 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp33_ = g_strdup ("");
-#line 79 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- to_append = _tmp33_;
-#line 541 "NaturalCollate.c"
- {
- gint i = 0;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- i = 1;
-#line 546 "NaturalCollate.c"
- {
- gboolean _tmp34_ = FALSE;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp34_ = TRUE;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- while (TRUE) {
-#line 553 "NaturalCollate.c"
- gint _tmp36_;
- gint _tmp37_;
- const gchar* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- if (!_tmp34_) {
-#line 562 "NaturalCollate.c"
- gint _tmp35_;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp35_ = i;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- i = _tmp35_ + 1;
-#line 568 "NaturalCollate.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp34_ = FALSE;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp36_ = i;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp37_ = number_of_superdigits;
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- if (!(_tmp36_ < _tmp37_)) {
-#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- break;
-#line 580 "NaturalCollate.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp38_ = to_append;
-#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp39_ = g_unichar_to_string (NATURAL_COLLATE_SUPERDIGIT);
-#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp40_ = _tmp39_;
-#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp41_ = g_strconcat (_tmp38_, _tmp40_, NULL);
-#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (to_append);
-#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- to_append = _tmp41_;
-#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp40_);
-#line 596 "NaturalCollate.c"
- }
- }
- }
-#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp42_ = to_append;
-#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp43_ = number;
-#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp44_ = g_strdup_printf ("%i", _tmp43_);
-#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp45_ = _tmp44_;
-#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp46_ = g_strconcat (_tmp42_, _tmp45_, NULL);
-#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (to_append);
-#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- to_append = _tmp46_;
-#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp45_);
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp47_ = _result_;
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp48_ = g_strconcat (_tmp47_, NATURAL_COLLATE_COLLATION_SENTINEL, NULL);
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp49_ = _tmp48_;
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp50_ = g_unichar_to_string (NATURAL_COLLATE_NUM_SENTINEL);
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp51_ = _tmp50_;
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp52_ = g_strconcat (_tmp49_, _tmp51_, NULL);
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp53_ = _tmp52_;
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp54_ = to_append;
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp55_ = g_strconcat (_tmp53_, _tmp54_, NULL);
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_result_);
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _result_ = _tmp55_;
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp53_);
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp51_);
-#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp49_);
-#line 74 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (to_append);
-#line 646 "NaturalCollate.c"
- }
-#line 90 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp56_ = strlen (str);
-#line 90 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp57_ = _tmp56_;
-#line 90 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- eos = _tmp57_ == 0;
-#line 654 "NaturalCollate.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp58_ = _result_;
-#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp59_ = g_unichar_to_string (NATURAL_COLLATE_NUM_SENTINEL);
-#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp60_ = _tmp59_;
-#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _tmp61_ = g_strconcat (_tmp58_, _tmp60_, NULL);
-#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_result_);
-#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _result_ = _tmp61_;
-#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (_tmp60_);
-#line 96 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- result = _result_;
-#line 96 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- _g_free0 (str);
-#line 96 "/home/jens/Source/shotwell/src/NaturalCollate.vala"
- return result;
-#line 676 "NaturalCollate.c"
-}
-
-
-
diff --git a/src/Orientation.c b/src/Orientation.c
deleted file mode 100644
index 181ee59..0000000
--- a/src/Orientation.c
+++ /dev/null
@@ -1,2074 +0,0 @@
-/* Orientation.c generated by valac 0.40.4, the Vala compiler
- * generated from Orientation.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gdk/gdk.h>
-
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define TYPE_ROTATION (rotation_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_BOX (box_get_type ())
-typedef struct _Box Box;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-typedef enum {
- ROTATION_CLOCKWISE,
- ROTATION_COUNTERCLOCKWISE,
- ROTATION_MIRROR,
- ROTATION_UPSIDE_DOWN
-} Rotation;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Box {
- gint left;
- gint top;
- gint right;
- gint bottom;
-};
-
-
-
-GType orientation_get_type (void) G_GNUC_CONST;
-gchar* orientation_to_string (Orientation self);
-Orientation orientation_rotate_clockwise (Orientation self);
-Orientation orientation_rotate_counterclockwise (Orientation self);
-Orientation orientation_flip_top_to_bottom (Orientation self);
-Orientation orientation_flip_left_to_right (Orientation self);
-GType rotation_get_type (void) G_GNUC_CONST;
-Orientation orientation_perform (Orientation self,
- Rotation rotation);
-Rotation* orientation_to_rotations (Orientation self,
- int* result_length1);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-void orientation_rotate_dimensions (Orientation self,
- Dimensions* dim,
- Dimensions* result);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-void orientation_derotate_dimensions (Orientation self,
- Dimensions* dim,
- Dimensions* result);
-GdkPixbuf* orientation_rotate_pixbuf (Orientation self,
- GdkPixbuf* pixbuf);
-void orientation_rotate_point (Orientation self,
- Dimensions* space,
- GdkPoint* point,
- GdkPoint* result);
-gboolean dimensions_has_area (Dimensions *self);
-void orientation_derotate_point (Orientation self,
- Dimensions* space,
- GdkPoint* point,
- GdkPoint* result);
-GType box_get_type (void) G_GNUC_CONST;
-Box* box_dup (const Box* self);
-void box_free (Box* self);
-void orientation_rotate_box (Orientation self,
- Dimensions* space,
- Box* box,
- Box* result);
-void box_get_points (Box *self,
- GdkPoint* top_left,
- GdkPoint* bottom_right);
-void box_from_points (GdkPoint* corner1,
- GdkPoint* corner2,
- Box* result);
-void orientation_derotate_box (Orientation self,
- Dimensions* space,
- Box* box,
- Box* result);
-GdkPixbuf* rotation_perform (Rotation self,
- GdkPixbuf* pixbuf);
-Rotation rotation_opposite (Rotation self);
-
-
-gchar*
-orientation_to_string (Orientation self)
-{
- gchar* result = NULL;
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 133 "Orientation.c"
- {
- gchar* _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp0_ = g_strdup ("top-left");
-#line 22 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 142 "Orientation.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 146 "Orientation.c"
- {
- gchar* _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp1_ = g_strdup ("top-right");
-#line 25 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 155 "Orientation.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 159 "Orientation.c"
- {
- gchar* _tmp2_;
-#line 28 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = g_strdup ("bottom-right");
-#line 28 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp2_;
-#line 28 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 168 "Orientation.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 172 "Orientation.c"
- {
- gchar* _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = g_strdup ("bottom-left");
-#line 31 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 181 "Orientation.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 185 "Orientation.c"
- {
- gchar* _tmp4_;
-#line 34 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp4_ = g_strdup ("left-top");
-#line 34 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp4_;
-#line 34 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 194 "Orientation.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 198 "Orientation.c"
- {
- gchar* _tmp5_;
-#line 37 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp5_ = g_strdup ("right-top");
-#line 37 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp5_;
-#line 37 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 207 "Orientation.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 211 "Orientation.c"
- {
- gchar* _tmp6_;
-#line 40 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_ = g_strdup ("right-bottom");
-#line 40 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp6_;
-#line 40 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 220 "Orientation.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 224 "Orientation.c"
- {
- gchar* _tmp7_;
-#line 43 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp7_ = g_strdup ("left-bottom");
-#line 43 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp7_;
-#line 43 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 233 "Orientation.c"
- }
- default:
- {
- gchar* _tmp8_;
-#line 46 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_ = g_strdup_printf ("unknown orientation %d", (gint) self);
-#line 46 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp8_;
-#line 46 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 244 "Orientation.c"
- }
- }
-}
-
-
-Orientation
-orientation_rotate_clockwise (Orientation self)
-{
- Orientation result = 0;
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 258 "Orientation.c"
- {
-#line 53 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_RIGHT_TOP;
-#line 53 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 264 "Orientation.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 268 "Orientation.c"
- {
-#line 56 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_RIGHT_BOTTOM;
-#line 56 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 274 "Orientation.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 278 "Orientation.c"
- {
-#line 59 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_LEFT_BOTTOM;
-#line 59 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 284 "Orientation.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 288 "Orientation.c"
- {
-#line 62 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_LEFT_TOP;
-#line 62 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 294 "Orientation.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 298 "Orientation.c"
- {
-#line 65 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_TOP_RIGHT;
-#line 65 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 304 "Orientation.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 308 "Orientation.c"
- {
-#line 68 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_BOTTOM_RIGHT;
-#line 68 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 314 "Orientation.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 318 "Orientation.c"
- {
-#line 71 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_BOTTOM_LEFT;
-#line 71 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 324 "Orientation.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 328 "Orientation.c"
- {
-#line 74 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_TOP_LEFT;
-#line 74 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 334 "Orientation.c"
- }
- default:
- {
-#line 77 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:77: rotate_clockwise: %d", (gint) self);
-#line 340 "Orientation.c"
- }
- }
-}
-
-
-Orientation
-orientation_rotate_counterclockwise (Orientation self)
-{
- Orientation result = 0;
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 354 "Orientation.c"
- {
-#line 84 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_LEFT_BOTTOM;
-#line 84 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 360 "Orientation.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 364 "Orientation.c"
- {
-#line 87 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_LEFT_TOP;
-#line 87 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 370 "Orientation.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 374 "Orientation.c"
- {
-#line 90 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_RIGHT_TOP;
-#line 90 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 380 "Orientation.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 384 "Orientation.c"
- {
-#line 93 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_RIGHT_BOTTOM;
-#line 93 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 390 "Orientation.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 394 "Orientation.c"
- {
-#line 96 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_BOTTOM_LEFT;
-#line 96 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 400 "Orientation.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 404 "Orientation.c"
- {
-#line 99 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_TOP_LEFT;
-#line 99 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 410 "Orientation.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 414 "Orientation.c"
- {
-#line 102 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_TOP_RIGHT;
-#line 102 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 420 "Orientation.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 424 "Orientation.c"
- {
-#line 105 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_BOTTOM_RIGHT;
-#line 105 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 430 "Orientation.c"
- }
- default:
- {
-#line 108 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:108: rotate_counterclockwise: %d", (gint) self);
-#line 436 "Orientation.c"
- }
- }
-}
-
-
-Orientation
-orientation_flip_top_to_bottom (Orientation self)
-{
- Orientation result = 0;
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 450 "Orientation.c"
- {
-#line 115 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_BOTTOM_LEFT;
-#line 115 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 456 "Orientation.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 460 "Orientation.c"
- {
-#line 118 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_BOTTOM_RIGHT;
-#line 118 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 466 "Orientation.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 470 "Orientation.c"
- {
-#line 121 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_TOP_RIGHT;
-#line 121 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 476 "Orientation.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 480 "Orientation.c"
- {
-#line 124 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_TOP_LEFT;
-#line 124 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 486 "Orientation.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 490 "Orientation.c"
- {
-#line 127 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_LEFT_BOTTOM;
-#line 127 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 496 "Orientation.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 500 "Orientation.c"
- {
-#line 130 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_RIGHT_BOTTOM;
-#line 130 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 506 "Orientation.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 510 "Orientation.c"
- {
-#line 133 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_RIGHT_TOP;
-#line 133 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 516 "Orientation.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 520 "Orientation.c"
- {
-#line 136 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_LEFT_TOP;
-#line 136 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 526 "Orientation.c"
- }
- default:
- {
-#line 139 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:139: flip_top_to_bottom: %d", (gint) self);
-#line 532 "Orientation.c"
- }
- }
-}
-
-
-Orientation
-orientation_flip_left_to_right (Orientation self)
-{
- Orientation result = 0;
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 546 "Orientation.c"
- {
-#line 146 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_TOP_RIGHT;
-#line 146 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 552 "Orientation.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 556 "Orientation.c"
- {
-#line 149 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_TOP_LEFT;
-#line 149 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 562 "Orientation.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 566 "Orientation.c"
- {
-#line 152 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_BOTTOM_LEFT;
-#line 152 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 572 "Orientation.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 576 "Orientation.c"
- {
-#line 155 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_BOTTOM_RIGHT;
-#line 155 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 582 "Orientation.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 586 "Orientation.c"
- {
-#line 158 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_RIGHT_TOP;
-#line 158 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 592 "Orientation.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 596 "Orientation.c"
- {
-#line 161 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_LEFT_TOP;
-#line 161 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 602 "Orientation.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 606 "Orientation.c"
- {
-#line 164 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_LEFT_BOTTOM;
-#line 164 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 612 "Orientation.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 616 "Orientation.c"
- {
-#line 167 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ORIENTATION_RIGHT_BOTTOM;
-#line 167 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 622 "Orientation.c"
- }
- default:
- {
-#line 170 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:170: flip_left_to_right: %d", (gint) self);
-#line 628 "Orientation.c"
- }
- }
-}
-
-
-Orientation
-orientation_perform (Orientation self,
- Rotation rotation)
-{
- Orientation result = 0;
-#line 175 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (rotation) {
-#line 175 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_CLOCKWISE:
-#line 643 "Orientation.c"
- {
-#line 177 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = orientation_rotate_clockwise (self);
-#line 177 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 649 "Orientation.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_COUNTERCLOCKWISE:
-#line 653 "Orientation.c"
- {
-#line 180 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = orientation_rotate_counterclockwise (self);
-#line 180 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 659 "Orientation.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_MIRROR:
-#line 663 "Orientation.c"
- {
-#line 183 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = orientation_flip_left_to_right (self);
-#line 183 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 669 "Orientation.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_UPSIDE_DOWN:
-#line 673 "Orientation.c"
- {
-#line 186 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = orientation_flip_top_to_bottom (self);
-#line 186 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 679 "Orientation.c"
- }
- default:
- {
-#line 189 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:189: perform: %d", (gint) rotation);
-#line 685 "Orientation.c"
- }
- }
-}
-
-
-Rotation*
-orientation_to_rotations (Orientation self,
- int* result_length1)
-{
- Rotation* result = NULL;
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 700 "Orientation.c"
- {
- Rotation* _tmp0_;
- Rotation* _tmp1_;
- gint _tmp1__length1;
-#line 197 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp0_ = g_new0 (Rotation, 0);
-#line 197 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp1_ = _tmp0_;
-#line 197 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp1__length1 = 0;
-#line 197 "/home/jens/Source/shotwell/src/Orientation.vala"
- if (result_length1) {
-#line 197 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result_length1 = _tmp1__length1;
-#line 715 "Orientation.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp1_;
-#line 197 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 721 "Orientation.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 725 "Orientation.c"
- {
- Rotation* _tmp2_;
- Rotation* _tmp3_;
- gint _tmp3__length1;
-#line 200 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = g_new0 (Rotation, 1);
-#line 200 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_[0] = ROTATION_MIRROR;
-#line 200 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = _tmp2_;
-#line 200 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3__length1 = 1;
-#line 200 "/home/jens/Source/shotwell/src/Orientation.vala"
- if (result_length1) {
-#line 200 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result_length1 = _tmp3__length1;
-#line 742 "Orientation.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp3_;
-#line 200 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 748 "Orientation.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 752 "Orientation.c"
- {
- Rotation* _tmp4_;
- Rotation* _tmp5_;
- gint _tmp5__length1;
-#line 203 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp4_ = g_new0 (Rotation, 1);
-#line 203 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp4_[0] = ROTATION_UPSIDE_DOWN;
-#line 203 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp5_ = _tmp4_;
-#line 203 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp5__length1 = 1;
-#line 203 "/home/jens/Source/shotwell/src/Orientation.vala"
- if (result_length1) {
-#line 203 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result_length1 = _tmp5__length1;
-#line 769 "Orientation.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp5_;
-#line 203 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 775 "Orientation.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 779 "Orientation.c"
- {
- Rotation* _tmp6_;
- Rotation* _tmp7_;
- gint _tmp7__length1;
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_ = g_new0 (Rotation, 2);
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_[0] = ROTATION_MIRROR;
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_[1] = ROTATION_UPSIDE_DOWN;
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp7_ = _tmp6_;
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp7__length1 = 2;
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- if (result_length1) {
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result_length1 = _tmp7__length1;
-#line 798 "Orientation.c"
- }
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp7_;
-#line 207 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 804 "Orientation.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 808 "Orientation.c"
- {
- Rotation* _tmp8_;
- Rotation* _tmp9_;
- gint _tmp9__length1;
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_ = g_new0 (Rotation, 2);
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_[0] = ROTATION_COUNTERCLOCKWISE;
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_[1] = ROTATION_UPSIDE_DOWN;
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp9_ = _tmp8_;
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp9__length1 = 2;
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- if (result_length1) {
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result_length1 = _tmp9__length1;
-#line 827 "Orientation.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp9_;
-#line 210 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 833 "Orientation.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 837 "Orientation.c"
- {
- Rotation* _tmp10_;
- Rotation* _tmp11_;
- gint _tmp11__length1;
-#line 213 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp10_ = g_new0 (Rotation, 1);
-#line 213 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp10_[0] = ROTATION_CLOCKWISE;
-#line 213 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp11_ = _tmp10_;
-#line 213 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp11__length1 = 1;
-#line 213 "/home/jens/Source/shotwell/src/Orientation.vala"
- if (result_length1) {
-#line 213 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result_length1 = _tmp11__length1;
-#line 854 "Orientation.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp11_;
-#line 213 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 860 "Orientation.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 864 "Orientation.c"
- {
- Rotation* _tmp12_;
- Rotation* _tmp13_;
- gint _tmp13__length1;
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp12_ = g_new0 (Rotation, 2);
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp12_[0] = ROTATION_CLOCKWISE;
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp12_[1] = ROTATION_UPSIDE_DOWN;
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp13_ = _tmp12_;
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp13__length1 = 2;
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- if (result_length1) {
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result_length1 = _tmp13__length1;
-#line 883 "Orientation.c"
- }
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp13_;
-#line 216 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 889 "Orientation.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 893 "Orientation.c"
- {
- Rotation* _tmp14_;
- Rotation* _tmp15_;
- gint _tmp15__length1;
-#line 219 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp14_ = g_new0 (Rotation, 1);
-#line 219 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp14_[0] = ROTATION_COUNTERCLOCKWISE;
-#line 219 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp15_ = _tmp14_;
-#line 219 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp15__length1 = 1;
-#line 219 "/home/jens/Source/shotwell/src/Orientation.vala"
- if (result_length1) {
-#line 219 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result_length1 = _tmp15__length1;
-#line 910 "Orientation.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp15_;
-#line 219 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 916 "Orientation.c"
- }
- default:
- {
-#line 222 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:222: to_rotations: %d", (gint) self);
-#line 922 "Orientation.c"
- }
- }
-}
-
-
-void
-orientation_rotate_dimensions (Orientation self,
- Dimensions* dim,
- Dimensions* result)
-{
-#line 226 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (dim != NULL);
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 945 "Orientation.c"
- {
- Dimensions _tmp0_;
-#line 233 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp0_ = *dim;
-#line 233 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result = _tmp0_;
-#line 233 "/home/jens/Source/shotwell/src/Orientation.vala"
- return;
-#line 954 "Orientation.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 227 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 964 "Orientation.c"
- {
- Dimensions _tmp1_;
- gint _tmp2_;
- Dimensions _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_ = {0};
-#line 240 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp1_ = *dim;
-#line 240 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = _tmp1_.height;
-#line 240 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = *dim;
-#line 240 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp4_ = _tmp3_.width;
-#line 240 "/home/jens/Source/shotwell/src/Orientation.vala"
- dimensions_init (&_tmp5_, _tmp2_, _tmp4_);
-#line 240 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result = _tmp5_;
-#line 240 "/home/jens/Source/shotwell/src/Orientation.vala"
- return;
-#line 985 "Orientation.c"
- }
- default:
- {
-#line 243 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:243: rotate_dimensions: %d", (gint) self);
-#line 991 "Orientation.c"
- }
- }
-}
-
-
-void
-orientation_derotate_dimensions (Orientation self,
- Dimensions* dim,
- Dimensions* result)
-{
- Dimensions _tmp0_;
- Dimensions _tmp1_ = {0};
-#line 247 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (dim != NULL);
-#line 248 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp0_ = *dim;
-#line 248 "/home/jens/Source/shotwell/src/Orientation.vala"
- orientation_rotate_dimensions (self, &_tmp0_, &_tmp1_);
-#line 248 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result = _tmp1_;
-#line 248 "/home/jens/Source/shotwell/src/Orientation.vala"
- return;
-#line 1014 "Orientation.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 256 "/home/jens/Source/shotwell/src/Orientation.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1023 "Orientation.c"
-}
-
-
-GdkPixbuf*
-orientation_rotate_pixbuf (Orientation self,
- GdkPixbuf* pixbuf)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* rotated = NULL;
-#line 251 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 1039 "Orientation.c"
- {
- GdkPixbuf* _tmp0_;
-#line 256 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp0_ = _g_object_ref0 (pixbuf);
-#line 256 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (rotated);
-#line 256 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1050 "Orientation.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 1054 "Orientation.c"
- {
- GdkPixbuf* _tmp1_;
-#line 261 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp1_ = gdk_pixbuf_flip (pixbuf, TRUE);
-#line 261 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (rotated);
-#line 261 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp1_;
-#line 262 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1065 "Orientation.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 1069 "Orientation.c"
- {
- GdkPixbuf* _tmp2_;
-#line 265 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_UPSIDEDOWN);
-#line 265 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (rotated);
-#line 265 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp2_;
-#line 266 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1080 "Orientation.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 1084 "Orientation.c"
- {
- GdkPixbuf* _tmp3_;
-#line 270 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = gdk_pixbuf_flip (pixbuf, FALSE);
-#line 270 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (rotated);
-#line 270 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp3_;
-#line 271 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1095 "Orientation.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 1099 "Orientation.c"
- {
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 274 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp4_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE);
-#line 274 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp5_ = _tmp4_;
-#line 274 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_ = gdk_pixbuf_flip (_tmp5_, FALSE);
-#line 274 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (rotated);
-#line 274 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp6_;
-#line 274 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (_tmp5_);
-#line 275 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1118 "Orientation.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 1122 "Orientation.c"
- {
- GdkPixbuf* _tmp7_;
-#line 278 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp7_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE);
-#line 278 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (rotated);
-#line 278 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp7_;
-#line 279 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1133 "Orientation.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 1137 "Orientation.c"
- {
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
-#line 282 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE);
-#line 282 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp9_ = _tmp8_;
-#line 282 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp10_ = gdk_pixbuf_flip (_tmp9_, FALSE);
-#line 282 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (rotated);
-#line 282 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp10_;
-#line 282 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (_tmp9_);
-#line 283 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1156 "Orientation.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 1160 "Orientation.c"
- {
- GdkPixbuf* _tmp11_;
-#line 286 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp11_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE);
-#line 286 "/home/jens/Source/shotwell/src/Orientation.vala"
- _g_object_unref0 (rotated);
-#line 286 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp11_;
-#line 287 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1171 "Orientation.c"
- }
- default:
- {
-#line 290 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:290: rotate_pixbuf: %d", (gint) self);
-#line 1177 "Orientation.c"
- }
- }
-#line 293 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = rotated;
-#line 293 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 1184 "Orientation.c"
-}
-
-
-void
-orientation_rotate_point (Orientation self,
- Dimensions* space,
- GdkPoint* point,
- GdkPoint* result)
-{
- GdkPoint _tmp0_;
- gint _tmp1_;
- GdkPoint _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- GdkPoint _tmp8_;
- gint _tmp9_;
- Dimensions _tmp10_;
- gint _tmp11_;
- GdkPoint rotated = {0};
-#line 297 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (space != NULL);
-#line 297 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (point != NULL);
-#line 298 "/home/jens/Source/shotwell/src/Orientation.vala"
- _vala_assert (dimensions_has_area (space), "space.has_area()");
-#line 299 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp0_ = *point;
-#line 299 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp1_ = _tmp0_.x;
-#line 299 "/home/jens/Source/shotwell/src/Orientation.vala"
- _vala_assert (_tmp1_ >= 0, "point.x >= 0");
-#line 300 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = *point;
-#line 300 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = _tmp2_.x;
-#line 300 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp4_ = *space;
-#line 300 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp5_ = _tmp4_.width;
-#line 300 "/home/jens/Source/shotwell/src/Orientation.vala"
- _vala_assert (_tmp3_ < _tmp5_, "point.x < space.width");
-#line 301 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_ = *point;
-#line 301 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp7_ = _tmp6_.y;
-#line 301 "/home/jens/Source/shotwell/src/Orientation.vala"
- _vala_assert (_tmp7_ >= 0, "point.y >= 0");
-#line 302 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_ = *point;
-#line 302 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp9_ = _tmp8_.y;
-#line 302 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp10_ = *space;
-#line 302 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp11_ = _tmp10_.height;
-#line 302 "/home/jens/Source/shotwell/src/Orientation.vala"
- _vala_assert (_tmp9_ < _tmp11_, "point.y < space.height");
-#line 304 "/home/jens/Source/shotwell/src/Orientation.vala"
- memset (&rotated, 0, sizeof (GdkPoint));
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 1251 "Orientation.c"
- {
- GdkPoint _tmp12_;
-#line 309 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp12_ = *point;
-#line 309 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated = _tmp12_;
-#line 310 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1260 "Orientation.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 1264 "Orientation.c"
- {
- Dimensions _tmp13_;
- gint _tmp14_;
- GdkPoint _tmp15_;
- gint _tmp16_;
- GdkPoint _tmp17_;
- gint _tmp18_;
-#line 314 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp13_ = *space;
-#line 314 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp14_ = _tmp13_.width;
-#line 314 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp15_ = *point;
-#line 314 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp16_ = _tmp15_.x;
-#line 314 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.x = (_tmp14_ - _tmp16_) - 1;
-#line 315 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp17_ = *point;
-#line 315 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp18_ = _tmp17_.y;
-#line 315 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.y = _tmp18_;
-#line 316 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1290 "Orientation.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 1294 "Orientation.c"
- {
- Dimensions _tmp19_;
- gint _tmp20_;
- GdkPoint _tmp21_;
- gint _tmp22_;
- Dimensions _tmp23_;
- gint _tmp24_;
- GdkPoint _tmp25_;
- gint _tmp26_;
-#line 320 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp19_ = *space;
-#line 320 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp20_ = _tmp19_.width;
-#line 320 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp21_ = *point;
-#line 320 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp22_ = _tmp21_.x;
-#line 320 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.x = (_tmp20_ - _tmp22_) - 1;
-#line 321 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp23_ = *space;
-#line 321 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp24_ = _tmp23_.height;
-#line 321 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp25_ = *point;
-#line 321 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp26_ = _tmp25_.y;
-#line 321 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.y = (_tmp24_ - _tmp26_) - 1;
-#line 322 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1326 "Orientation.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 1330 "Orientation.c"
- {
- GdkPoint _tmp27_;
- gint _tmp28_;
- Dimensions _tmp29_;
- gint _tmp30_;
- GdkPoint _tmp31_;
- gint _tmp32_;
-#line 326 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp27_ = *point;
-#line 326 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp28_ = _tmp27_.x;
-#line 326 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.x = _tmp28_;
-#line 327 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp29_ = *space;
-#line 327 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp30_ = _tmp29_.height;
-#line 327 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp31_ = *point;
-#line 327 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp32_ = _tmp31_.y;
-#line 327 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.y = (_tmp30_ - _tmp32_) - 1;
-#line 328 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1356 "Orientation.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 1360 "Orientation.c"
- {
- GdkPoint _tmp33_;
- gint _tmp34_;
- GdkPoint _tmp35_;
- gint _tmp36_;
-#line 332 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp33_ = *point;
-#line 332 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp34_ = _tmp33_.y;
-#line 332 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.x = _tmp34_;
-#line 333 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp35_ = *point;
-#line 333 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp36_ = _tmp35_.x;
-#line 333 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.y = _tmp36_;
-#line 334 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1380 "Orientation.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 1384 "Orientation.c"
- {
- Dimensions _tmp37_;
- gint _tmp38_;
- GdkPoint _tmp39_;
- gint _tmp40_;
- GdkPoint _tmp41_;
- gint _tmp42_;
-#line 338 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp37_ = *space;
-#line 338 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp38_ = _tmp37_.height;
-#line 338 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp39_ = *point;
-#line 338 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp40_ = _tmp39_.y;
-#line 338 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.x = (_tmp38_ - _tmp40_) - 1;
-#line 339 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp41_ = *point;
-#line 339 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp42_ = _tmp41_.x;
-#line 339 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.y = _tmp42_;
-#line 340 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1410 "Orientation.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 1414 "Orientation.c"
- {
- Dimensions _tmp43_;
- gint _tmp44_;
- GdkPoint _tmp45_;
- gint _tmp46_;
- Dimensions _tmp47_;
- gint _tmp48_;
- GdkPoint _tmp49_;
- gint _tmp50_;
-#line 344 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp43_ = *space;
-#line 344 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp44_ = _tmp43_.height;
-#line 344 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp45_ = *point;
-#line 344 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp46_ = _tmp45_.y;
-#line 344 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.x = (_tmp44_ - _tmp46_) - 1;
-#line 345 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp47_ = *space;
-#line 345 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp48_ = _tmp47_.width;
-#line 345 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp49_ = *point;
-#line 345 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp50_ = _tmp49_.x;
-#line 345 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.y = (_tmp48_ - _tmp50_) - 1;
-#line 346 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1446 "Orientation.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 1450 "Orientation.c"
- {
- GdkPoint _tmp51_;
- gint _tmp52_;
- Dimensions _tmp53_;
- gint _tmp54_;
- GdkPoint _tmp55_;
- gint _tmp56_;
-#line 350 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp51_ = *point;
-#line 350 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp52_ = _tmp51_.y;
-#line 350 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.x = _tmp52_;
-#line 351 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp53_ = *space;
-#line 351 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp54_ = _tmp53_.width;
-#line 351 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp55_ = *point;
-#line 351 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp56_ = _tmp55_.x;
-#line 351 "/home/jens/Source/shotwell/src/Orientation.vala"
- rotated.y = (_tmp54_ - _tmp56_) - 1;
-#line 352 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1476 "Orientation.c"
- }
- default:
- {
-#line 355 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:355: rotate_point: %d", (gint) self);
-#line 1482 "Orientation.c"
- }
- }
-#line 358 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result = rotated;
-#line 358 "/home/jens/Source/shotwell/src/Orientation.vala"
- return;
-#line 1489 "Orientation.c"
-}
-
-
-void
-orientation_derotate_point (Orientation self,
- Dimensions* space,
- GdkPoint* point,
- GdkPoint* result)
-{
- GdkPoint derotated = {0};
-#line 362 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (space != NULL);
-#line 362 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (point != NULL);
-#line 363 "/home/jens/Source/shotwell/src/Orientation.vala"
- _vala_assert (dimensions_has_area (space), "space.has_area()");
-#line 365 "/home/jens/Source/shotwell/src/Orientation.vala"
- memset (&derotated, 0, sizeof (GdkPoint));
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_LEFT:
-#line 1512 "Orientation.c"
- {
- GdkPoint _tmp0_;
-#line 370 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp0_ = *point;
-#line 370 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated = _tmp0_;
-#line 371 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1521 "Orientation.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_TOP_RIGHT:
-#line 1525 "Orientation.c"
- {
- Dimensions _tmp1_;
- gint _tmp2_;
- GdkPoint _tmp3_;
- gint _tmp4_;
- GdkPoint _tmp5_;
- gint _tmp6_;
-#line 375 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp1_ = *space;
-#line 375 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = _tmp1_.width;
-#line 375 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = *point;
-#line 375 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp4_ = _tmp3_.x;
-#line 375 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.x = (_tmp2_ - _tmp4_) - 1;
-#line 376 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp5_ = *point;
-#line 376 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_ = _tmp5_.y;
-#line 376 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.y = _tmp6_;
-#line 377 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1551 "Orientation.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_RIGHT:
-#line 1555 "Orientation.c"
- {
- Dimensions _tmp7_;
- gint _tmp8_;
- GdkPoint _tmp9_;
- gint _tmp10_;
- Dimensions _tmp11_;
- gint _tmp12_;
- GdkPoint _tmp13_;
- gint _tmp14_;
-#line 381 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp7_ = *space;
-#line 381 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_ = _tmp7_.width;
-#line 381 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp9_ = *point;
-#line 381 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp10_ = _tmp9_.x;
-#line 381 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.x = (_tmp8_ - _tmp10_) - 1;
-#line 382 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp11_ = *space;
-#line 382 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp12_ = _tmp11_.height;
-#line 382 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp13_ = *point;
-#line 382 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp14_ = _tmp13_.y;
-#line 382 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.y = (_tmp12_ - _tmp14_) - 1;
-#line 383 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1587 "Orientation.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_BOTTOM_LEFT:
-#line 1591 "Orientation.c"
- {
- GdkPoint _tmp15_;
- gint _tmp16_;
- Dimensions _tmp17_;
- gint _tmp18_;
- GdkPoint _tmp19_;
- gint _tmp20_;
-#line 387 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp15_ = *point;
-#line 387 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp16_ = _tmp15_.x;
-#line 387 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.x = _tmp16_;
-#line 388 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp17_ = *space;
-#line 388 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp18_ = _tmp17_.height;
-#line 388 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp19_ = *point;
-#line 388 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp20_ = _tmp19_.y;
-#line 388 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.y = (_tmp18_ - _tmp20_) - 1;
-#line 389 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1617 "Orientation.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_TOP:
-#line 1621 "Orientation.c"
- {
- GdkPoint _tmp21_;
- gint _tmp22_;
- GdkPoint _tmp23_;
- gint _tmp24_;
-#line 393 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp21_ = *point;
-#line 393 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp22_ = _tmp21_.y;
-#line 393 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.x = _tmp22_;
-#line 394 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp23_ = *point;
-#line 394 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp24_ = _tmp23_.x;
-#line 394 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.y = _tmp24_;
-#line 395 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1641 "Orientation.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 1645 "Orientation.c"
- {
- GdkPoint _tmp25_;
- gint _tmp26_;
- Dimensions _tmp27_;
- gint _tmp28_;
- GdkPoint _tmp29_;
- gint _tmp30_;
-#line 399 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp25_ = *point;
-#line 399 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp26_ = _tmp25_.y;
-#line 399 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.x = _tmp26_;
-#line 400 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp27_ = *space;
-#line 400 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp28_ = _tmp27_.height;
-#line 400 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp29_ = *point;
-#line 400 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp30_ = _tmp29_.x;
-#line 400 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.y = (_tmp28_ - _tmp30_) - 1;
-#line 401 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1671 "Orientation.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 1675 "Orientation.c"
- {
- Dimensions _tmp31_;
- gint _tmp32_;
- GdkPoint _tmp33_;
- gint _tmp34_;
- Dimensions _tmp35_;
- gint _tmp36_;
- GdkPoint _tmp37_;
- gint _tmp38_;
-#line 405 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp31_ = *space;
-#line 405 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp32_ = _tmp31_.width;
-#line 405 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp33_ = *point;
-#line 405 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp34_ = _tmp33_.y;
-#line 405 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.x = (_tmp32_ - _tmp34_) - 1;
-#line 406 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp35_ = *space;
-#line 406 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp36_ = _tmp35_.height;
-#line 406 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp37_ = *point;
-#line 406 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp38_ = _tmp37_.x;
-#line 406 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.y = (_tmp36_ - _tmp38_) - 1;
-#line 407 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1707 "Orientation.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 1711 "Orientation.c"
- {
- Dimensions _tmp39_;
- gint _tmp40_;
- GdkPoint _tmp41_;
- gint _tmp42_;
- GdkPoint _tmp43_;
- gint _tmp44_;
-#line 411 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp39_ = *space;
-#line 411 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp40_ = _tmp39_.width;
-#line 411 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp41_ = *point;
-#line 411 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp42_ = _tmp41_.y;
-#line 411 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.x = (_tmp40_ - _tmp42_) - 1;
-#line 412 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp43_ = *point;
-#line 412 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp44_ = _tmp43_.x;
-#line 412 "/home/jens/Source/shotwell/src/Orientation.vala"
- derotated.y = _tmp44_;
-#line 413 "/home/jens/Source/shotwell/src/Orientation.vala"
- break;
-#line 1737 "Orientation.c"
- }
- default:
- {
-#line 416 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:416: rotate_point: %d", (gint) self);
-#line 1743 "Orientation.c"
- }
- }
-#line 419 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result = derotated;
-#line 419 "/home/jens/Source/shotwell/src/Orientation.vala"
- return;
-#line 1750 "Orientation.c"
-}
-
-
-void
-orientation_rotate_box (Orientation self,
- Dimensions* space,
- Box* box,
- Box* result)
-{
- GdkPoint top_left = {0};
- GdkPoint bottom_right = {0};
- GdkPoint _tmp0_ = {0};
- GdkPoint _tmp1_ = {0};
- GdkPoint _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- GdkPoint _tmp14_;
- gint _tmp15_;
- Dimensions _tmp16_;
- gint _tmp17_;
- Dimensions _tmp18_;
- GdkPoint _tmp19_;
- GdkPoint _tmp20_ = {0};
- Dimensions _tmp21_;
- GdkPoint _tmp22_;
- GdkPoint _tmp23_ = {0};
- GdkPoint _tmp24_;
- GdkPoint _tmp25_;
- Box _tmp26_ = {0};
-#line 423 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (space != NULL);
-#line 423 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (box != NULL);
-#line 425 "/home/jens/Source/shotwell/src/Orientation.vala"
- box_get_points (box, &_tmp0_, &_tmp1_);
-#line 425 "/home/jens/Source/shotwell/src/Orientation.vala"
- top_left = _tmp0_;
-#line 425 "/home/jens/Source/shotwell/src/Orientation.vala"
- bottom_right = _tmp1_;
-#line 427 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = top_left;
-#line 427 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = _tmp2_.x;
-#line 427 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp4_ = *space;
-#line 427 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp5_ = _tmp4_.width;
-#line 427 "/home/jens/Source/shotwell/src/Orientation.vala"
- top_left.x = CLAMP (_tmp3_, 0, _tmp5_ - 1);
-#line 428 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_ = top_left;
-#line 428 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp7_ = _tmp6_.y;
-#line 428 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_ = *space;
-#line 428 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp9_ = _tmp8_.height;
-#line 428 "/home/jens/Source/shotwell/src/Orientation.vala"
- top_left.y = CLAMP (_tmp7_, 0, _tmp9_ - 1);
-#line 430 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp10_ = bottom_right;
-#line 430 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp11_ = _tmp10_.x;
-#line 430 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp12_ = *space;
-#line 430 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp13_ = _tmp12_.width;
-#line 430 "/home/jens/Source/shotwell/src/Orientation.vala"
- bottom_right.x = CLAMP (_tmp11_, 0, _tmp13_ - 1);
-#line 431 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp14_ = bottom_right;
-#line 431 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp15_ = _tmp14_.y;
-#line 431 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp16_ = *space;
-#line 431 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp17_ = _tmp16_.height;
-#line 431 "/home/jens/Source/shotwell/src/Orientation.vala"
- bottom_right.y = CLAMP (_tmp15_, 0, _tmp17_ - 1);
-#line 433 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp18_ = *space;
-#line 433 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp19_ = top_left;
-#line 433 "/home/jens/Source/shotwell/src/Orientation.vala"
- orientation_rotate_point (self, &_tmp18_, &_tmp19_, &_tmp20_);
-#line 433 "/home/jens/Source/shotwell/src/Orientation.vala"
- top_left = _tmp20_;
-#line 434 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp21_ = *space;
-#line 434 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp22_ = bottom_right;
-#line 434 "/home/jens/Source/shotwell/src/Orientation.vala"
- orientation_rotate_point (self, &_tmp21_, &_tmp22_, &_tmp23_);
-#line 434 "/home/jens/Source/shotwell/src/Orientation.vala"
- bottom_right = _tmp23_;
-#line 436 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp24_ = top_left;
-#line 436 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp25_ = bottom_right;
-#line 436 "/home/jens/Source/shotwell/src/Orientation.vala"
- box_from_points (&_tmp24_, &_tmp25_, &_tmp26_);
-#line 436 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result = _tmp26_;
-#line 436 "/home/jens/Source/shotwell/src/Orientation.vala"
- return;
-#line 1865 "Orientation.c"
-}
-
-
-void
-orientation_derotate_box (Orientation self,
- Dimensions* space,
- Box* box,
- Box* result)
-{
- GdkPoint top_left = {0};
- GdkPoint bottom_right = {0};
- GdkPoint _tmp0_ = {0};
- GdkPoint _tmp1_ = {0};
- Dimensions _tmp2_;
- GdkPoint _tmp3_;
- GdkPoint _tmp4_ = {0};
- Dimensions _tmp5_;
- GdkPoint _tmp6_;
- GdkPoint _tmp7_ = {0};
- GdkPoint _tmp8_;
- GdkPoint _tmp9_;
- Box _tmp10_ = {0};
-#line 440 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (space != NULL);
-#line 440 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_if_fail (box != NULL);
-#line 442 "/home/jens/Source/shotwell/src/Orientation.vala"
- box_get_points (box, &_tmp0_, &_tmp1_);
-#line 442 "/home/jens/Source/shotwell/src/Orientation.vala"
- top_left = _tmp0_;
-#line 442 "/home/jens/Source/shotwell/src/Orientation.vala"
- bottom_right = _tmp1_;
-#line 444 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = *space;
-#line 444 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = top_left;
-#line 444 "/home/jens/Source/shotwell/src/Orientation.vala"
- orientation_derotate_point (self, &_tmp2_, &_tmp3_, &_tmp4_);
-#line 444 "/home/jens/Source/shotwell/src/Orientation.vala"
- top_left = _tmp4_;
-#line 445 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp5_ = *space;
-#line 445 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp6_ = bottom_right;
-#line 445 "/home/jens/Source/shotwell/src/Orientation.vala"
- orientation_derotate_point (self, &_tmp5_, &_tmp6_, &_tmp7_);
-#line 445 "/home/jens/Source/shotwell/src/Orientation.vala"
- bottom_right = _tmp7_;
-#line 447 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp8_ = top_left;
-#line 447 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp9_ = bottom_right;
-#line 447 "/home/jens/Source/shotwell/src/Orientation.vala"
- box_from_points (&_tmp8_, &_tmp9_, &_tmp10_);
-#line 447 "/home/jens/Source/shotwell/src/Orientation.vala"
- *result = _tmp10_;
-#line 447 "/home/jens/Source/shotwell/src/Orientation.vala"
- return;
-#line 1924 "Orientation.c"
-}
-
-
-GType
-orientation_get_type (void)
-{
- static volatile gsize orientation_type_id__volatile = 0;
- if (g_once_init_enter (&orientation_type_id__volatile)) {
- static const GEnumValue values[] = {{ORIENTATION_MIN, "ORIENTATION_MIN", "min"}, {ORIENTATION_TOP_LEFT, "ORIENTATION_TOP_LEFT", "top-left"}, {ORIENTATION_TOP_RIGHT, "ORIENTATION_TOP_RIGHT", "top-right"}, {ORIENTATION_BOTTOM_RIGHT, "ORIENTATION_BOTTOM_RIGHT", "bottom-right"}, {ORIENTATION_BOTTOM_LEFT, "ORIENTATION_BOTTOM_LEFT", "bottom-left"}, {ORIENTATION_LEFT_TOP, "ORIENTATION_LEFT_TOP", "left-top"}, {ORIENTATION_RIGHT_TOP, "ORIENTATION_RIGHT_TOP", "right-top"}, {ORIENTATION_RIGHT_BOTTOM, "ORIENTATION_RIGHT_BOTTOM", "right-bottom"}, {ORIENTATION_LEFT_BOTTOM, "ORIENTATION_LEFT_BOTTOM", "left-bottom"}, {ORIENTATION_MAX, "ORIENTATION_MAX", "max"}, {0, NULL, NULL}};
- GType orientation_type_id;
- orientation_type_id = g_enum_register_static ("Orientation", values);
- g_once_init_leave (&orientation_type_id__volatile, orientation_type_id);
- }
- return orientation_type_id__volatile;
-}
-
-
-GdkPixbuf*
-rotation_perform (Rotation self,
- GdkPixbuf* pixbuf)
-{
- GdkPixbuf* result = NULL;
-#line 457 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 458 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 458 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_CLOCKWISE:
-#line 1953 "Orientation.c"
- {
- GdkPixbuf* _tmp0_;
-#line 460 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp0_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE);
-#line 460 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp0_;
-#line 460 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 1962 "Orientation.c"
- }
-#line 458 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_COUNTERCLOCKWISE:
-#line 1966 "Orientation.c"
- {
- GdkPixbuf* _tmp1_;
-#line 463 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp1_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE);
-#line 463 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp1_;
-#line 463 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 1975 "Orientation.c"
- }
-#line 458 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_MIRROR:
-#line 1979 "Orientation.c"
- {
- GdkPixbuf* _tmp2_;
-#line 466 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp2_ = gdk_pixbuf_flip (pixbuf, TRUE);
-#line 466 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp2_;
-#line 466 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 1988 "Orientation.c"
- }
-#line 458 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_UPSIDE_DOWN:
-#line 1992 "Orientation.c"
- {
- GdkPixbuf* _tmp3_;
-#line 469 "/home/jens/Source/shotwell/src/Orientation.vala"
- _tmp3_ = gdk_pixbuf_flip (pixbuf, FALSE);
-#line 469 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = _tmp3_;
-#line 469 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 2001 "Orientation.c"
- }
- default:
- {
-#line 472 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:472: Unknown rotation: %d", (gint) self);
-#line 2007 "Orientation.c"
- }
- }
-}
-
-
-Rotation
-rotation_opposite (Rotation self)
-{
- Rotation result = 0;
-#line 477 "/home/jens/Source/shotwell/src/Orientation.vala"
- switch (self) {
-#line 477 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_CLOCKWISE:
-#line 2021 "Orientation.c"
- {
-#line 479 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ROTATION_COUNTERCLOCKWISE;
-#line 479 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 2027 "Orientation.c"
- }
-#line 477 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_COUNTERCLOCKWISE:
-#line 2031 "Orientation.c"
- {
-#line 482 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = ROTATION_CLOCKWISE;
-#line 482 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 2037 "Orientation.c"
- }
-#line 477 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_MIRROR:
-#line 477 "/home/jens/Source/shotwell/src/Orientation.vala"
- case ROTATION_UPSIDE_DOWN:
-#line 2043 "Orientation.c"
- {
-#line 486 "/home/jens/Source/shotwell/src/Orientation.vala"
- result = self;
-#line 486 "/home/jens/Source/shotwell/src/Orientation.vala"
- return result;
-#line 2049 "Orientation.c"
- }
- default:
- {
-#line 489 "/home/jens/Source/shotwell/src/Orientation.vala"
- g_error ("Orientation.vala:489: Unknown rotation: %d", (gint) self);
-#line 2055 "Orientation.c"
- }
- }
-}
-
-
-GType
-rotation_get_type (void)
-{
- static volatile gsize rotation_type_id__volatile = 0;
- if (g_once_init_enter (&rotation_type_id__volatile)) {
- static const GEnumValue values[] = {{ROTATION_CLOCKWISE, "ROTATION_CLOCKWISE", "clockwise"}, {ROTATION_COUNTERCLOCKWISE, "ROTATION_COUNTERCLOCKWISE", "counterclockwise"}, {ROTATION_MIRROR, "ROTATION_MIRROR", "mirror"}, {ROTATION_UPSIDE_DOWN, "ROTATION_UPSIDE_DOWN", "upside-down"}, {0, NULL, NULL}};
- GType rotation_type_id;
- rotation_type_id = g_enum_register_static ("Rotation", values);
- g_once_init_leave (&rotation_type_id__volatile, rotation_type_id);
- }
- return rotation_type_id__volatile;
-}
-
-
-
diff --git a/src/Page.c b/src/Page.c
deleted file mode 100644
index aa71fce..0000000
--- a/src/Page.c
+++ /dev/null
@@ -1,17156 +0,0 @@
-/* Page.c generated by valac 0.40.4, the Vala compiler
- * generated from Page.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <gdk/gdk.h>
-#include <cairo.h>
-#include <float.h>
-#include <math.h>
-#include <glib/gi18n-lib.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <pango/pango.h>
-#include <pango/pangocairo.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-typedef struct _InjectionGroupPrivate InjectionGroupPrivate;
-
-#define INJECTION_GROUP_TYPE_ELEMENT (injection_group_element_get_type ())
-#define INJECTION_GROUP_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INJECTION_GROUP_TYPE_ELEMENT, InjectionGroupElement))
-#define INJECTION_GROUP_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), INJECTION_GROUP_TYPE_ELEMENT, InjectionGroupElementClass))
-#define INJECTION_GROUP_IS_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INJECTION_GROUP_TYPE_ELEMENT))
-#define INJECTION_GROUP_IS_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INJECTION_GROUP_TYPE_ELEMENT))
-#define INJECTION_GROUP_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), INJECTION_GROUP_TYPE_ELEMENT, InjectionGroupElementClass))
-
-typedef struct _InjectionGroupElement InjectionGroupElement;
-typedef struct _InjectionGroupElementClass InjectionGroupElementClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define INJECTION_GROUP_ELEMENT_TYPE_ITEM_TYPE (injection_group_element_item_type_get_type ())
-#define _injection_group_element_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_element_unref (var), NULL)))
-typedef struct _InjectionGroupElementPrivate InjectionGroupElementPrivate;
-typedef struct _InjectionGroupParamSpecElement InjectionGroupParamSpecElement;
-typedef struct _ParamSpecInjectionGroup ParamSpecInjectionGroup;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
-#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
-#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
-#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
-#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-
-typedef struct _OneShotScheduler OneShotScheduler;
-typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
-enum {
- PAGE_0_PROPERTY,
- PAGE_NUM_PROPERTIES
-};
-static GParamSpec* page_properties[PAGE_NUM_PROPERTIES];
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL)))
-#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 _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_CHECKERBOARD_LAYOUT (checkerboard_layout_get_type ())
-#define CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout))
-#define CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass))
-#define IS_CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_LAYOUT))
-#define IS_CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_LAYOUT))
-#define CHECKERBOARD_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass))
-
-typedef struct _CheckerboardLayout CheckerboardLayout;
-typedef struct _CheckerboardLayoutClass CheckerboardLayoutClass;
-enum {
- CHECKERBOARD_PAGE_0_PROPERTY,
- CHECKERBOARD_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* checkerboard_page_properties[CHECKERBOARD_PAGE_NUM_PROPERTIES];
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-
-#define TYPE_ADJUSTMENT_RELATION (adjustment_relation_get_type ())
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_COMPASS_POINT (compass_point_get_type ())
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate;
-
-#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ())
-#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer))
-#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER))
-#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER))
-#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-
-typedef struct _ZoomBuffer ZoomBuffer;
-typedef struct _ZoomBufferClass ZoomBufferClass;
-
-#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ())
-
-#define TYPE_TRANSITION_CLOCK (transition_clock_get_type ())
-#define TRANSITION_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_CLOCK, TransitionClock))
-#define TRANSITION_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_CLOCK, TransitionClockClass))
-#define IS_TRANSITION_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_CLOCK))
-#define IS_TRANSITION_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_CLOCK))
-#define TRANSITION_CLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_CLOCK, TransitionClockClass))
-
-typedef struct _TransitionClock TransitionClock;
-typedef struct _TransitionClockClass TransitionClockClass;
-
-#define TYPE_ZOOM_STATE (zoom_state_get_type ())
-typedef struct _ZoomState ZoomState;
-enum {
- SINGLE_PHOTO_PAGE_0_PROPERTY,
- SINGLE_PHOTO_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* single_photo_page_properties[SINGLE_PHOTO_PAGE_NUM_PROPERTIES];
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _transition_clock_unref0(var) ((var == NULL) ? NULL : (var = (transition_clock_unref (var), NULL)))
-#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
-#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
-
-#define TYPE_TRANSITION_EFFECTS_MANAGER (transition_effects_manager_get_type ())
-#define TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager))
-#define TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass))
-#define IS_TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_EFFECTS_MANAGER))
-#define IS_TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_EFFECTS_MANAGER))
-#define TRANSITION_EFFECTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass))
-
-typedef struct _TransitionEffectsManager TransitionEffectsManager;
-typedef struct _TransitionEffectsManagerClass TransitionEffectsManagerClass;
-#define _transition_effects_manager_unref0(var) ((var == NULL) ? NULL : (var = (transition_effects_manager_unref (var), NULL)))
-
-#define TYPE_DIRECTION (direction_get_type ())
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#define TYPE_DRAG_AND_DROP_HANDLER (drag_and_drop_handler_get_type ())
-#define DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler))
-#define DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass))
-#define IS_DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DRAG_AND_DROP_HANDLER))
-#define IS_DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DRAG_AND_DROP_HANDLER))
-#define DRAG_AND_DROP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass))
-
-typedef struct _DragAndDropHandler DragAndDropHandler;
-typedef struct _DragAndDropHandlerClass DragAndDropHandlerClass;
-typedef struct _DragAndDropHandlerPrivate DragAndDropHandlerPrivate;
-
-#define TYPE_EXPORTER_UI (exporter_ui_get_type ())
-#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI))
-#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass))
-#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI))
-#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI))
-#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass))
-
-typedef struct _ExporterUI ExporterUI;
-typedef struct _ExporterUIClass ExporterUIClass;
-
-#define DRAG_AND_DROP_HANDLER_TYPE_TARGET_TYPE (drag_and_drop_handler_target_type_get_type ())
-#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL)))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-
-#define TYPE_EXPORTER (exporter_get_type ())
-#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter))
-#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass))
-#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER))
-#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER))
-#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass))
-
-typedef struct _Exporter Exporter;
-typedef struct _ExporterClass ExporterClass;
-typedef struct _ParamSpecDragAndDropHandler ParamSpecDragAndDropHandler;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _InjectionGroup {
- GTypeInstance parent_instance;
- volatile int ref_count;
- InjectionGroupPrivate * priv;
-};
-
-struct _InjectionGroupClass {
- GTypeClass parent_class;
- void (*finalize) (InjectionGroup *self);
-};
-
-struct _InjectionGroupPrivate {
- gchar* path;
- GeeArrayList* elements;
- gint separator_id;
-};
-
-typedef enum {
- INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM,
- INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENU,
- INJECTION_GROUP_ELEMENT_ITEM_TYPE_SEPARATOR
-} InjectionGroupElementItemType;
-
-struct _InjectionGroupElement {
- GTypeInstance parent_instance;
- volatile int ref_count;
- InjectionGroupElementPrivate * priv;
- gchar* name;
- gchar* action;
- gchar* accellerator;
- InjectionGroupElementItemType kind;
-};
-
-struct _InjectionGroupElementClass {
- GTypeClass parent_class;
- void (*finalize) (InjectionGroupElement *self);
-};
-
-struct _InjectionGroupParamSpecElement {
- GParamSpec parent_instance;
-};
-
-struct _ParamSpecInjectionGroup {
- GParamSpec parent_instance;
-};
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-struct _PagePrivate {
- gchar* page_name;
- ViewCollection* view;
- GtkWindow* container;
- gchar* toolbar_path;
- GdkRectangle last_position;
- GtkWidget* event_source;
- gboolean dnd_enabled;
- gulong last_configure_ms;
- gboolean report_move_finished;
- gboolean report_resize_finished;
- GdkPoint last_down;
- gboolean is_destroyed;
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
- GdkCursorType last_cursor;
- gboolean cursor_hidden;
- gint cursor_hide_msec;
- guint last_timeout_id;
- gint cursor_hide_time_cached;
- gboolean are_actions_attached;
- OneShotScheduler* update_actions_scheduler;
- gboolean menubar_injected;
-};
-
-typedef void (*OneShotCallback) (void* user_data);
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-struct _CheckerboardPagePrivate {
- CheckerboardLayout* layout;
- gchar* item_context_menu_path;
- gchar* page_context_menu_path;
- GtkViewport* viewport;
- CheckerboardItem* highlighted;
- gboolean autoscroll_scheduled;
- CheckerboardItem* activated_item;
- GeeArrayList* previously_selected;
- GtkMenu* item_context_menu;
- GtkMenu* page_context_menu;
-};
-
-typedef enum {
- ADJUSTMENT_RELATION_BELOW,
- ADJUSTMENT_RELATION_IN_RANGE,
- ADJUSTMENT_RELATION_ABOVE
-} AdjustmentRelation;
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-typedef enum {
- COMPASS_POINT_NORTH,
- COMPASS_POINT_SOUTH,
- COMPASS_POINT_EAST,
- COMPASS_POINT_WEST
-} CompassPoint;
-
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data);
-typedef enum {
- SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS
-} SinglePhotoPageUpdateReason;
-
-struct _SinglePhotoPage {
- Page parent_instance;
- SinglePhotoPagePrivate * priv;
- GtkDrawingArea* canvas;
- GtkViewport* viewport;
-};
-
-struct _SinglePhotoPageClass {
- PageClass parent_class;
- gboolean (*is_zoom_supported) (SinglePhotoPage* self);
- void (*cancel_zoom) (SinglePhotoPage* self);
- void (*save_zoom_state) (SinglePhotoPage* self);
- void (*restore_zoom_state) (SinglePhotoPage* self);
- ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self);
- void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim);
- void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*on_previous_photo) (SinglePhotoPage* self);
- void (*on_next_photo) (SinglePhotoPage* self);
-};
-
-struct _ZoomState {
- Dimensions content_dimensions;
- Dimensions viewport_dimensions;
- gdouble zoom_factor;
- gdouble interpolation_factor;
- gdouble min_factor;
- gdouble max_factor;
- GdkPoint viewport_center;
-};
-
-struct _SinglePhotoPagePrivate {
- gboolean scale_up_to_viewport;
- TransitionClock* transition_clock;
- gint transition_duration_msec;
- cairo_surface_t* pixmap;
- cairo_t* pixmap_ctx;
- cairo_t* text_ctx;
- Dimensions pixmap_dim;
- GdkPixbuf* unscaled;
- Dimensions max_dim;
- GdkPixbuf* scaled;
- GdkPixbuf* old_scaled;
- GdkRectangle scaled_pos;
- ZoomState static_zoom_state;
- gboolean zoom_high_quality;
- ZoomState saved_zoom_state;
- gboolean has_saved_zoom_state;
- guint32 last_nav_key;
-};
-
-typedef enum {
- DIRECTION_FORWARD,
- DIRECTION_BACKWARD
-} Direction;
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef void (*TransitionClockRepaintCallback) (void* user_data);
-struct _DragAndDropHandler {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DragAndDropHandlerPrivate * priv;
-};
-
-struct _DragAndDropHandlerClass {
- GTypeClass parent_class;
- void (*finalize) (DragAndDropHandler *self);
-};
-
-struct _DragAndDropHandlerPrivate {
- Page* page;
- GtkWidget* event_source;
- GFile* drag_destination;
- ExporterUI* exporter;
-};
-
-typedef enum {
- DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS,
- DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST
-} DragAndDropHandlerTargetType;
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data);
-struct _ParamSpecDragAndDropHandler {
- GParamSpec parent_instance;
-};
-
-
-static gpointer injection_group_parent_class = NULL;
-static gpointer injection_group_element_parent_class = NULL;
-static gpointer page_parent_class = NULL;
-static gpointer checkerboard_page_parent_class = NULL;
-static gpointer single_photo_page_parent_class = NULL;
-static gpointer drag_and_drop_handler_parent_class = NULL;
-static GdkAtom* drag_and_drop_handler_XDS_ATOM;
-static GdkAtom* drag_and_drop_handler_XDS_ATOM = NULL;
-static GdkAtom* drag_and_drop_handler_TEXT_ATOM;
-static GdkAtom* drag_and_drop_handler_TEXT_ATOM = NULL;
-static guint8* drag_and_drop_handler_XDS_FAKE_TARGET;
-static gint drag_and_drop_handler_XDS_FAKE_TARGET_length1;
-static guint8* drag_and_drop_handler_XDS_FAKE_TARGET = NULL;
-static gint drag_and_drop_handler_XDS_FAKE_TARGET_length1 = 0;
-static gint _drag_and_drop_handler_XDS_FAKE_TARGET_size_ = 0;
-
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-gpointer injection_group_element_ref (gpointer instance);
-void injection_group_element_unref (gpointer instance);
-GParamSpec* injection_group_param_spec_element (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void injection_group_value_set_element (GValue* value,
- gpointer v_object);
-void injection_group_value_take_element (GValue* value,
- gpointer v_object);
-gpointer injection_group_value_get_element (const GValue* value);
-GType injection_group_element_get_type (void) G_GNUC_CONST;
-#define INJECTION_GROUP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INJECTION_GROUP, InjectionGroupPrivate))
-InjectionGroup* injection_group_new (const gchar* path);
-InjectionGroup* injection_group_construct (GType object_type,
- const gchar* path);
-gchar* injection_group_get_path (InjectionGroup* self);
-GeeList* injection_group_get_elements (InjectionGroup* self);
-void injection_group_add_menu_item (InjectionGroup* self,
- const gchar* name,
- const gchar* action,
- const gchar* accellerator);
-GType injection_group_element_item_type_get_type (void) G_GNUC_CONST;
-InjectionGroupElement* injection_group_element_new (const gchar* name,
- const gchar* action,
- const gchar* accellerator,
- InjectionGroupElementItemType kind);
-InjectionGroupElement* injection_group_element_construct (GType object_type,
- const gchar* name,
- const gchar* action,
- const gchar* accellerator,
- InjectionGroupElementItemType kind);
-void injection_group_add_menu (InjectionGroup* self,
- const gchar* name,
- const gchar* action);
-void injection_group_add_separator (InjectionGroup* self);
-static void injection_group_element_finalize (InjectionGroupElement * obj);
-static void injection_group_finalize (InjectionGroup * obj);
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-gpointer one_shot_scheduler_ref (gpointer instance);
-void one_shot_scheduler_unref (gpointer instance);
-GParamSpec* param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_one_shot_scheduler (GValue* value,
- gpointer v_object);
-void value_take_one_shot_scheduler (GValue* value,
- gpointer v_object);
-gpointer value_get_one_shot_scheduler (const GValue* value);
-GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
-#define PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PAGE, PagePrivate))
-#define PAGE_CONSIDER_CONFIGURE_HALTED_MSEC 400
-Page* page_construct (GType object_type,
- const gchar* page_name);
-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_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);
-static void page_detach_event_source (Page* self);
-static void page_detach_view_signals (Page* self);
-void data_collection_close (DataCollection* self);
-void page_clear_container (Page* self);
-void one_shot_scheduler_cancel (OneShotScheduler* self);
-gchar* page_get_page_name (Page* self);
-void page_set_page_name (Page* self,
- const gchar* page_name);
-static void page_real_set_page_name (Page* self,
- const gchar* page_name);
-gchar* page_to_string (Page* self);
-ViewCollection* page_get_view (Page* self);
-GtkWindow* page_get_container (Page* self);
-void page_set_container (Page* self,
- GtkWindow* container);
-static void page_real_set_container (Page* self,
- GtkWindow* container);
-static void page_real_clear_container (Page* self);
-void page_set_event_source (Page* self,
- GtkWidget* event_source);
-static gboolean page_on_button_pressed_internal (Page* self,
- GdkEventButton* event);
-static gboolean _page_on_button_pressed_internal_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-static gboolean page_on_button_released_internal (Page* self,
- GdkEventButton* event);
-static gboolean _page_on_button_released_internal_gtk_widget_button_release_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-static gboolean page_on_motion_internal (Page* self,
- GdkEventMotion* event);
-static gboolean _page_on_motion_internal_gtk_widget_motion_notify_event (GtkWidget* _sender,
- GdkEventMotion* event,
- gpointer self);
-gboolean page_on_leave_notify_event (Page* self);
-static gboolean _page_on_leave_notify_event_gtk_widget_leave_notify_event (GtkWidget* _sender,
- GdkEventCrossing* event,
- gpointer self);
-static gboolean page_on_mousewheel_internal (Page* self,
- GdkEventScroll* event);
-static gboolean _page_on_mousewheel_internal_gtk_widget_scroll_event (GtkWidget* _sender,
- GdkEventScroll* event,
- gpointer self);
-void page_on_event_source_realize (Page* self);
-static void _page_on_event_source_realize_gtk_widget_realize (GtkWidget* _sender,
- gpointer self);
-void page_disable_drag_source (Page* self);
-GtkWidget* page_get_event_source (Page* self);
-GMenuModel* page_get_menubar (Page* self);
-InjectionGroup** page_init_collect_injection_groups (Page* self,
- int* result_length1);
-GMenuModel* page_find_extension_point (Page* self,
- GMenuModel* model,
- const gchar* extension_point);
-GtkToolbar* page_get_toolbar (Page* self);
-static GtkToolbar* page_real_get_toolbar (Page* self);
-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);
-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);
-gboolean page_is_in_view (Page* self);
-void page_switching_to_fullscreen (Page* self,
- FullscreenWindow* fsw);
-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_details (Page* self,
- const gchar* name,
- const gchar* label,
- const gchar* tooltip,
- gboolean sensitive);
-void page_update_menu_item_label (Page* self,
- const gchar* id,
- const gchar* new_label);
-void page_activate_action (Page* self,
- const gchar* name);
-GAction* page_get_common_action (Page* self,
- const gchar* name,
- gboolean log_warning);
-void page_set_common_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive);
-void page_set_common_action_label (Page* self,
- const gchar* name,
- const gchar* label);
-void page_set_common_action_important (Page* self,
- const gchar* name,
- gboolean important);
-void page_activate_common_action (Page* self,
- const gchar* name);
-gboolean page_get_ctrl_pressed (Page* self);
-gboolean page_get_alt_pressed (Page* self);
-gboolean page_get_shift_pressed (Page* self);
-gboolean page_get_super_pressed (Page* self);
-void page_set_action_active (Page* self,
- const gchar* name,
- gboolean active);
-static GVariant* _variant_new20 (gboolean value);
-static gboolean page_get_modifiers (Page* self,
- gboolean* ctrl,
- gboolean* alt,
- gboolean* shift,
- gboolean* super);
-gboolean page_on_ctrl_released (Page* self,
- GdkEventKey* event);
-gboolean page_on_ctrl_pressed (Page* self,
- GdkEventKey* event);
-gboolean page_on_alt_released (Page* self,
- GdkEventKey* event);
-gboolean page_on_alt_pressed (Page* self,
- GdkEventKey* event);
-gboolean page_on_shift_released (Page* self,
- GdkEventKey* event);
-gboolean page_on_shift_pressed (Page* self,
- GdkEventKey* event);
-gboolean page_on_super_released (Page* self,
- GdkEventKey* event);
-gboolean page_on_super_pressed (Page* self,
- GdkEventKey* event);
-PageWindow* page_get_page_window (Page* self);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-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);
-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);
-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);
-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;
-static void _page_on_update_actions_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self);
-static void _page_on_update_actions_view_collection_selection_group_altered (ViewCollection* _sender,
- gpointer self);
-static void _page_on_update_actions_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self);
-static void _page_on_update_actions_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static void page_on_update_actions_on_idle (Page* self);
-static void _page_on_update_actions_on_idle_one_shot_callback (gpointer self);
-OneShotScheduler* one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-OneShotScheduler* one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-void one_shot_scheduler_at_priority_idle (OneShotScheduler* self,
- gint priority);
-gchar* resources_get_ui (const gchar* filename);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-void application_panic (Application* self);
-static void page_real_init_collect_ui_filenames (Page* self,
- GeeList* ui_filenames);
-static InjectionGroup** page_real_init_collect_injection_groups (Page* self,
- int* result_length1);
-static void page_real_init_actions (Page* self,
- gint selected_count,
- gint count);
-static void page_real_update_actions (Page* self,
- gint selected_count,
- gint count);
-void page_enable_drag_source (Page* self,
- GdkDragAction actions,
- GtkTargetEntry* source_target_entries,
- int source_target_entries_length1);
-static void page_on_drag_begin (Page* self,
- GdkDragContext* context);
-static void _page_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self);
-static void page_on_drag_data_get (Page* self,
- GdkDragContext* context,
- GtkSelectionData* selection_data,
- guint info,
- guint time);
-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);
-static void page_on_drag_data_delete (Page* self,
- GdkDragContext* context);
-static void _page_on_drag_data_delete_gtk_widget_drag_data_delete (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self);
-static void page_on_drag_end (Page* self,
- GdkDragContext* context);
-static void _page_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self);
-static gboolean page_on_drag_failed (Page* self,
- GdkDragContext* context,
- GtkDragResult drag_result);
-static gboolean _page_on_drag_failed_gtk_widget_drag_failed (GtkWidget* _sender,
- GdkDragContext* context,
- GtkDragResult _result_,
- gpointer self);
-gboolean page_is_dnd_enabled (Page* self);
-gboolean page_source_drag_failed (Page* self,
- GdkDragContext* context,
- GtkDragResult drag_result);
-static gboolean page_real_source_drag_failed (Page* self,
- GdkDragContext* context,
- GtkDragResult drag_result);
-gboolean page_get_event_source_pointer (Page* self,
- gint* x,
- gint* y,
- GdkModifierType* mask);
-gboolean page_on_left_click (Page* self,
- GdkEventButton* event);
-static gboolean page_real_on_left_click (Page* self,
- GdkEventButton* event);
-gboolean page_on_middle_click (Page* self,
- GdkEventButton* event);
-static gboolean page_real_on_middle_click (Page* self,
- GdkEventButton* event);
-gboolean page_on_right_click (Page* self,
- GdkEventButton* event);
-static gboolean page_real_on_right_click (Page* self,
- GdkEventButton* event);
-gboolean page_on_left_released (Page* self,
- GdkEventButton* event);
-static gboolean page_real_on_left_released (Page* self,
- GdkEventButton* event);
-gboolean page_on_middle_released (Page* self,
- GdkEventButton* event);
-static gboolean page_real_on_middle_released (Page* self,
- GdkEventButton* event);
-gboolean page_on_right_released (Page* self,
- GdkEventButton* event);
-static gboolean page_real_on_right_released (Page* self,
- GdkEventButton* event);
-static gboolean page_real_on_ctrl_pressed (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_ctrl_released (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_alt_pressed (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_alt_released (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_shift_pressed (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_shift_released (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_super_pressed (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_super_released (Page* self,
- GdkEventKey* event);
-gboolean page_on_app_key_pressed (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_app_key_pressed (Page* self,
- GdkEventKey* event);
-gboolean page_on_app_key_released (Page* self,
- GdkEventKey* event);
-static gboolean page_real_on_app_key_released (Page* self,
- GdkEventKey* event);
-gboolean page_notify_app_key_pressed (Page* self,
- GdkEventKey* event);
-gboolean page_notify_app_key_released (Page* self,
- GdkEventKey* event);
-gboolean page_notify_app_focus_in (Page* self,
- GdkEventFocus* event);
-gboolean page_notify_app_focus_out (Page* self,
- GdkEventFocus* event);
-void page_on_move (Page* self,
- GdkRectangle* rect);
-static void page_real_on_move (Page* self,
- GdkRectangle* rect);
-void page_on_move_start (Page* self,
- GdkRectangle* rect);
-static void page_real_on_move_start (Page* self,
- GdkRectangle* rect);
-void page_on_move_finished (Page* self,
- GdkRectangle* rect);
-static void page_real_on_move_finished (Page* self,
- GdkRectangle* rect);
-void page_on_resize (Page* self,
- GdkRectangle* rect);
-static void page_real_on_resize (Page* self,
- GdkRectangle* rect);
-void page_on_resize_start (Page* self,
- GdkRectangle* rect);
-static void page_real_on_resize_start (Page* self,
- GdkRectangle* rect);
-void page_on_resize_finished (Page* self,
- GdkRectangle* rect);
-static void page_real_on_resize_finished (Page* self,
- GdkRectangle* rect);
-gboolean page_on_configure (Page* self,
- GdkEventConfigure* event,
- GdkRectangle* rect);
-static gboolean page_real_on_configure (Page* self,
- GdkEventConfigure* event,
- GdkRectangle* rect);
-gboolean page_notify_configure_event (Page* self,
- GdkEventConfigure* event);
-static gboolean page_check_configure_halted (Page* self);
-static gboolean _page_check_configure_halted_gsource_func (gpointer self);
-gulong now_ms (void);
-gboolean page_on_motion (Page* self,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask);
-static gboolean page_real_on_motion (Page* self,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask);
-static void page_check_cursor_hiding (Page* self);
-static gboolean page_real_on_leave_notify_event (Page* self);
-gboolean page_on_mousewheel_up (Page* self,
- GdkEventScroll* event);
-gboolean page_on_mousewheel_down (Page* self,
- GdkEventScroll* event);
-gboolean page_on_mousewheel_left (Page* self,
- GdkEventScroll* event);
-gboolean page_on_mousewheel_right (Page* self,
- GdkEventScroll* event);
-static gboolean page_real_on_mousewheel_up (Page* self,
- GdkEventScroll* event);
-static gboolean page_real_on_mousewheel_down (Page* self,
- GdkEventScroll* event);
-static gboolean page_real_on_mousewheel_left (Page* self,
- GdkEventScroll* event);
-static gboolean page_real_on_mousewheel_right (Page* self,
- GdkEventScroll* event);
-static gboolean page_real_on_context_keypress (Page* self);
-gboolean page_on_context_buttonpress (Page* self,
- GdkEventButton* event);
-static gboolean page_real_on_context_buttonpress (Page* self,
- GdkEventButton* event);
-gboolean page_on_context_invoked (Page* self);
-static gboolean page_real_on_context_invoked (Page* self);
-gboolean page_popup_context_menu (Page* self,
- GtkMenu* context_menu,
- GdkEventButton* event);
-void page_set_cursor_hide_time (Page* self,
- gint hide_time);
-void page_start_cursor_hiding (Page* self);
-void page_stop_cursor_hiding (Page* self);
-void page_suspend_cursor_hiding (Page* self);
-void page_restore_cursor_hiding (Page* self);
-void page_set_page_cursor (Page* self,
- GdkCursorType cursor_type);
-static void page_real_set_page_cursor (Page* self,
- GdkCursorType cursor_type);
-static gboolean page_on_hide_cursor (Page* self);
-static gboolean _page_on_hide_cursor_gsource_func (gpointer self);
-void app_window_update_menu_item_label (AppWindow* self,
- const gchar* id,
- const gchar* new_label);
-static void page_finalize (GObject * obj);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType checkerboard_layout_get_type (void) G_GNUC_CONST;
-#define CHECKERBOARD_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHECKERBOARD_PAGE, CheckerboardPagePrivate))
-#define CHECKERBOARD_PAGE_AUTOSCROLL_PIXELS 50
-#define CHECKERBOARD_PAGE_AUTOSCROLL_TICKS_MSEC 50
-CheckerboardPage* checkerboard_page_construct (GType object_type,
- const gchar* page_name);
-CheckerboardLayout* checkerboard_layout_new (ViewCollection* view);
-CheckerboardLayout* checkerboard_layout_construct (GType object_type,
- ViewCollection* view);
-void checkerboard_layout_set_name (CheckerboardLayout* self,
- const gchar* name);
-void checkerboard_layout_set_adjustments (CheckerboardLayout* self,
- GtkAdjustment* hadjustment,
- GtkAdjustment* vadjustment);
-static void checkerboard_page_on_items_hidden (CheckerboardPage* self,
- GeeIterable* hidden);
-static void _checkerboard_page_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender,
- GeeCollection* hidden,
- gpointer self);
-static void checkerboard_page_on_contents_altered (CheckerboardPage* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void _checkerboard_page_on_contents_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static void checkerboard_page_on_items_state_changed (CheckerboardPage* self,
- GeeIterable* changed);
-static void _checkerboard_page_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self);
-static void checkerboard_page_on_items_visibility_changed (CheckerboardPage* self,
- GeeCollection* changed);
-static void _checkerboard_page_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self);
-void checkerboard_page_init_item_context_menu (CheckerboardPage* self,
- const gchar* path);
-void checkerboard_page_init_page_context_menu (CheckerboardPage* self,
- const gchar* path);
-GtkMenu* checkerboard_page_get_context_menu (CheckerboardPage* self);
-GtkMenu* checkerboard_page_get_item_context_menu (CheckerboardPage* self);
-static GtkMenu* checkerboard_page_real_get_item_context_menu (CheckerboardPage* self);
-static GtkMenu* checkerboard_page_real_get_page_context_menu (Page* base);
-static gboolean checkerboard_page_real_on_context_keypress (Page* base);
-gchar* checkerboard_page_get_view_empty_message (CheckerboardPage* self);
-static gchar* checkerboard_page_real_get_view_empty_message (CheckerboardPage* self);
-gchar* checkerboard_page_get_filter_no_match_message (CheckerboardPage* self);
-static gchar* checkerboard_page_real_get_filter_no_match_message (CheckerboardPage* self);
-void checkerboard_page_on_item_activated (CheckerboardPage* self,
- CheckerboardItem* item,
- CheckerboardPageActivator activator,
- CheckerboardPageKeyboardModifiers* modifiers);
-static void checkerboard_page_real_on_item_activated (CheckerboardPage* self,
- CheckerboardItem* item,
- CheckerboardPageActivator activator,
- CheckerboardPageKeyboardModifiers* modifiers);
-CheckerboardLayout* checkerboard_page_get_checkerboard_layout (CheckerboardPage* self);
-SearchViewFilter* checkerboard_page_get_search_view_filter (CheckerboardPage* self);
-static SearchViewFilter* checkerboard_page_real_get_search_view_filter (CheckerboardPage* self);
-CoreViewTracker* checkerboard_page_get_view_tracker (CheckerboardPage* self);
-static CoreViewTracker* checkerboard_page_real_get_view_tracker (CheckerboardPage* self);
-static void checkerboard_page_real_switching_from (Page* base);
-void checkerboard_layout_set_in_view (CheckerboardLayout* self,
- gboolean in_view);
-static void checkerboard_page_on_view_filter_refresh (CheckerboardPage* self);
-static void _checkerboard_page_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender,
- gpointer self);
-void view_collection_unselect_all (ViewCollection* self);
-static void checkerboard_page_real_switched_to (Page* base);
-DataView* view_collection_get_selected_at (ViewCollection* self,
- gint index);
-GType adjustment_relation_get_type (void) G_GNUC_CONST;
-AdjustmentRelation get_adjustment_relation (GtkAdjustment* adjustment,
- gint value);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-#define CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING 24
-static void checkerboard_page_update_view_filter_message (CheckerboardPage* self);
-gboolean view_collection_are_items_filtered_out (ViewCollection* self);
-void checkerboard_page_set_page_message (CheckerboardPage* self,
- const gchar* message);
-void checkerboard_page_unset_page_message (CheckerboardPage* self);
-void checkerboard_layout_set_message (CheckerboardLayout* self,
- const gchar* text);
-void checkerboard_layout_unset_message (CheckerboardLayout* self);
-static void checkerboard_page_real_set_page_name (Page* base,
- const gchar* name);
-CheckerboardItem* checkerboard_page_get_item_at_pixel (CheckerboardPage* self,
- gdouble x,
- gdouble y);
-CheckerboardItem* checkerboard_layout_get_item_at_pixel (CheckerboardLayout* self,
- gdouble xd,
- gdouble yd);
-static gboolean checkerboard_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-GType compass_point_get_type (void) G_GNUC_CONST;
-void checkerboard_page_move_cursor (CheckerboardPage* self,
- CompassPoint point);
-void checkerboard_page_select_anchor_to_cursor (CheckerboardPage* self,
- guint state);
-DataView* view_collection_get_first (ViewCollection* self);
-void checkerboard_page_cursor_to_item (CheckerboardPage* self,
- CheckerboardItem* item);
-DataView* view_collection_get_last (ViewCollection* self);
-void checkerboard_page_keyboard_modifiers_init (CheckerboardPageKeyboardModifiers *self,
- Page* page);
-GType marker_get_type (void) G_GNUC_CONST;
-Marker* data_collection_mark (DataCollection* self,
- DataObject* object);
-CheckerboardItem* checkerboard_layout_get_cursor (CheckerboardLayout* self);
-void view_collection_toggle_marked (ViewCollection* self,
- Marker* marker);
-static gboolean checkerboard_page_real_on_left_click (Page* base,
- GdkEventButton* event);
-gboolean checkerboard_layout_handle_left_click (CheckerboardLayout* self,
- CheckerboardItem* item,
- gdouble xd,
- gdouble yd,
- GdkModifierType mask);
-gboolean data_view_is_selected (DataView* self);
-void checkerboard_page_select_between_items (CheckerboardPage* self,
- CheckerboardItem* item_start,
- CheckerboardItem* item_end);
-Marker* data_collection_start_marking (DataCollection* self);
-void marker_mark_many (Marker* self,
- GeeCollection* list);
-GeeList* view_collection_get_selected (ViewCollection* self);
-void view_collection_unselect_and_select_marked (ViewCollection* self,
- Marker* unselect,
- Marker* select);
-void checkerboard_layout_set_cursor (CheckerboardLayout* self,
- CheckerboardItem* item);
-void checkerboard_layout_set_drag_select_origin (CheckerboardLayout* self,
- gint x,
- gint y);
-static gboolean checkerboard_page_real_on_left_released (Page* base,
- GdkEventButton* event);
-gboolean checkerboard_layout_is_drag_select_active (CheckerboardLayout* self);
-void checkerboard_layout_clear_drag_select (CheckerboardLayout* self);
-void view_collection_unselect_all_but (ViewCollection* self,
- DataView* exception);
-static gboolean checkerboard_page_real_on_right_click (Page* base,
- GdkEventButton* event);
-gboolean checkerboard_page_on_mouse_over (CheckerboardPage* self,
- CheckerboardItem* item,
- gint x,
- gint y,
- GdkModifierType mask);
-static gboolean checkerboard_page_real_on_mouse_over (CheckerboardPage* self,
- CheckerboardItem* item,
- gint x,
- gint y,
- GdkModifierType mask);
-gboolean checkerboard_layout_handle_mouse_motion (CheckerboardLayout* self,
- CheckerboardItem* item,
- gint x,
- gint y,
- GdkModifierType mask);
-void checkerboard_item_unbrighten (CheckerboardItem* self);
-void checkerboard_item_brighten (CheckerboardItem* self);
-static gboolean checkerboard_page_real_on_motion (Page* base,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask);
-void checkerboard_layout_set_drag_select_endpoint (CheckerboardLayout* self,
- gint x,
- gint y);
-static void checkerboard_page_updated_selection_band (CheckerboardPage* self);
-static gboolean checkerboard_page_selection_autoscroll (CheckerboardPage* self);
-static gboolean _checkerboard_page_selection_autoscroll_gsource_func (gpointer self);
-GeeList* checkerboard_layout_items_in_selection_band (CheckerboardLayout* self);
-void marker_unmark_many (Marker* self,
- GeeCollection* list);
-gboolean marker_toggle (Marker* self,
- DataObject* object);
-void marker_unmark (Marker* self,
- DataObject* object);
-void marker_mark (Marker* self,
- DataObject* object);
-void view_collection_select_marked (ViewCollection* self,
- Marker* marker);
-void view_collection_unselect_marked (ViewCollection* self,
- Marker* marker);
-gboolean data_collection_contains (DataCollection* self,
- DataObject* object);
-CheckerboardItem* checkerboard_layout_get_item_at_coordinate (CheckerboardLayout* self,
- gint col,
- gint row);
-CheckerboardItem* checkerboard_layout_get_item_relative_to (CheckerboardLayout* self,
- CheckerboardItem* item,
- CompassPoint point);
-void checkerboard_page_set_cursor (CheckerboardPage* self,
- CheckerboardItem* item);
-GeeCollection* data_collection_get_all (DataCollection* self);
-void checkerboard_page_set_display_titles (CheckerboardPage* self,
- gboolean display);
-static void checkerboard_page_real_set_display_titles (CheckerboardPage* self,
- gboolean display);
-void data_collection_freeze_notifications (DataCollection* self);
-void data_collection_set_property (DataCollection* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target);
-#define CHECKERBOARD_ITEM_PROP_SHOW_TITLES "show-titles"
-void data_collection_thaw_notifications (DataCollection* self);
-void checkerboard_page_set_display_comments (CheckerboardPage* self,
- gboolean display);
-static void checkerboard_page_real_set_display_comments (CheckerboardPage* self,
- gboolean display);
-#define CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS "show-comments"
-static void checkerboard_page_finalize (GObject * obj);
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType zoom_buffer_get_type (void) G_GNUC_CONST;
-GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST;
-gpointer transition_clock_ref (gpointer instance);
-void transition_clock_unref (gpointer instance);
-GParamSpec* param_spec_transition_clock (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transition_clock (GValue* value,
- gpointer v_object);
-void value_take_transition_clock (GValue* value,
- gpointer v_object);
-gpointer value_get_transition_clock (const GValue* value);
-GType transition_clock_get_type (void) G_GNUC_CONST;
-GType zoom_state_get_type (void) G_GNUC_CONST;
-ZoomState* zoom_state_dup (const ZoomState* self);
-void zoom_state_free (ZoomState* self);
-#define SINGLE_PHOTO_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPagePrivate))
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-static void single_photo_page_on_colors_changed (SinglePhotoPage* self);
-static void _single_photo_page_on_colors_changed_config_facade_colors_changed (ConfigFacade* _sender,
- gpointer self);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-#define SINGLE_PHOTO_PAGE_FAST_INTERP GDK_INTERP_NEAREST
-#define SINGLE_PHOTO_PAGE_QUALITY_INTERP GDK_INTERP_BILINEAR
-#define SINGLE_PHOTO_PAGE_KEY_REPEAT_INTERVAL_MSEC 200
-SinglePhotoPage* single_photo_page_construct (GType object_type,
- const gchar* page_name,
- gboolean scale_up_to_viewport);
-gpointer transition_effects_manager_ref (gpointer instance);
-void transition_effects_manager_unref (gpointer instance);
-GParamSpec* param_spec_transition_effects_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transition_effects_manager (GValue* value,
- gpointer v_object);
-void value_take_transition_effects_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_transition_effects_manager (const GValue* value);
-GType transition_effects_manager_get_type (void) G_GNUC_CONST;
-TransitionEffectsManager* transition_effects_manager_get_instance (void);
-TransitionClock* transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self);
-static void single_photo_page_on_viewport_resize (SinglePhotoPage* self);
-static void _single_photo_page_on_viewport_resize_gtk_widget_size_allocate (GtkWidget* _sender,
- GtkAllocation* allocation,
- gpointer self);
-static gboolean single_photo_page_on_canvas_exposed (SinglePhotoPage* self,
- cairo_t* exposed_ctx);
-static gboolean _single_photo_page_on_canvas_exposed_gtk_widget_draw (GtkWidget* _sender,
- cairo_t* cr,
- gpointer self);
-gboolean single_photo_page_is_transition_in_progress (SinglePhotoPage* self);
-gboolean transition_clock_is_in_progress (TransitionClock* self);
-void single_photo_page_cancel_transition (SinglePhotoPage* self);
-void transition_clock_cancel (TransitionClock* self);
-void single_photo_page_set_transition (SinglePhotoPage* self,
- const gchar* effect_id,
- gint duration_msec);
-TransitionClock* transition_effects_manager_create_transition_clock (TransitionEffectsManager* self,
- const gchar* effect_id);
-static void single_photo_page_render_zoomed_to_pixmap (SinglePhotoPage* self,
- ZoomState* zoom_state);
-gboolean single_photo_page_is_zoom_supported (SinglePhotoPage* self);
-void zoom_state_get_viewing_rectangle_wrt_content (ZoomState *self,
- GdkRectangle* result);
-ZoomBuffer* single_photo_page_get_zoom_buffer (SinglePhotoPage* self);
-GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self,
- ZoomState* zoom_state);
-GdkPixbuf* zoom_buffer_get_zoom_preview_image (ZoomBuffer* self,
- ZoomState* zoom_state);
-void zoom_state_get_viewing_rectangle_projection (ZoomState *self,
- GdkPixbuf* for_pixbuf,
- GdkRectangle* result);
-void paint_pixmap_with_background (cairo_t* ctx,
- GdkPixbuf* pixbuf,
- gint x,
- gint y);
-void single_photo_page_on_interactive_zoom (SinglePhotoPage* self,
- ZoomState* interactive_zoom_state);
-void set_source_color_from_string (cairo_t* ctx,
- const gchar* spec);
-void single_photo_page_on_interactive_pan (SinglePhotoPage* self,
- ZoomState* interactive_zoom_state);
-static gboolean single_photo_page_real_is_zoom_supported (SinglePhotoPage* self);
-void single_photo_page_cancel_zoom (SinglePhotoPage* self);
-static void single_photo_page_real_cancel_zoom (SinglePhotoPage* self);
-void single_photo_page_save_zoom_state (SinglePhotoPage* self);
-static void single_photo_page_real_save_zoom_state (SinglePhotoPage* self);
-void single_photo_page_restore_zoom_state (SinglePhotoPage* self);
-static void single_photo_page_real_restore_zoom_state (SinglePhotoPage* self);
-GType direction_get_type (void) G_GNUC_CONST;
-void single_photo_page_repaint (SinglePhotoPage* self,
- Direction* direction);
-static ZoomBuffer* single_photo_page_real_get_zoom_buffer (SinglePhotoPage* self);
-void single_photo_page_get_saved_zoom_state (SinglePhotoPage* self,
- ZoomState* result);
-void single_photo_page_set_zoom_state (SinglePhotoPage* self,
- ZoomState* zoom_state);
-void single_photo_page_get_zoom_state (SinglePhotoPage* self,
- ZoomState* result);
-static void single_photo_page_real_switched_to (Page* base);
-static void single_photo_page_real_set_container (Page* base,
- GtkWindow* container);
-void single_photo_page_set_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* unscaled,
- Dimensions* max_dim,
- Direction* direction);
-gdouble zoom_state_get_interpolation_factor (ZoomState *self);
-void zoom_state_get_viewport_center (ZoomState *self,
- GdkPoint* result);
-void zoom_state_init (ZoomState *self,
- Dimensions* content_dimensions,
- Dimensions* viewport_dimensions,
- gdouble slider_val,
- GdkPoint* viewport_center);
-void single_photo_page_blank_display (SinglePhotoPage* self);
-void single_photo_page_invalidate_all (SinglePhotoPage* self);
-cairo_surface_t* single_photo_page_get_surface (SinglePhotoPage* self);
-void single_photo_page_get_surface_dim (SinglePhotoPage* self,
- Dimensions* result);
-cairo_t* single_photo_page_get_cairo_context (SinglePhotoPage* self);
-void single_photo_page_paint_text (SinglePhotoPage* self,
- PangoLayout* pango_layout,
- gint x,
- gint y);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void single_photo_page_get_canvas_scaling (SinglePhotoPage* self,
- Scaling* result);
-void scaling_for_screen (GtkWindow* window,
- gboolean scale_up,
- Scaling* result);
-void scaling_for_widget (GtkWidget* widget,
- gboolean scale_up,
- Scaling* result);
-GdkPixbuf* single_photo_page_get_unscaled_pixbuf (SinglePhotoPage* self);
-GdkPixbuf* single_photo_page_get_scaled_pixbuf (SinglePhotoPage* self);
-void single_photo_page_get_scaled_pixbuf_position (SinglePhotoPage* self,
- GdkRectangle* result);
-gboolean single_photo_page_is_inside_pixbuf (SinglePhotoPage* self,
- gint x,
- gint y);
-gboolean coord_in_rectangle (gint x,
- gint y,
- GdkRectangle* rect);
-void single_photo_page_invalidate (SinglePhotoPage* self,
- GdkRectangle* rect);
-static void single_photo_page_internal_repaint (SinglePhotoPage* self,
- gboolean fast,
- Direction* direction);
-static void single_photo_page_real_on_resize_finished (Page* base,
- GdkRectangle* rect);
-void single_photo_page_new_surface (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-static void single_photo_page_real_new_surface (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-void single_photo_page_updated_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* pixbuf,
- SinglePhotoPageUpdateReason reason,
- Dimensions* old_dim);
-static void single_photo_page_real_updated_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* pixbuf,
- SinglePhotoPageUpdateReason reason,
- Dimensions* old_dim);
-void single_photo_page_paint (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-static void single_photo_page_real_paint (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-gboolean zoom_state_is_default (ZoomState *self);
-gboolean transition_clock_paint (TransitionClock* self,
- cairo_t* ctx,
- gint width,
- gint height);
-static void single_photo_page_repaint_pixmap (SinglePhotoPage* self);
-void dimensions_for_rectangle (GdkRectangle* rect,
- Dimensions* result);
-static void single_photo_page_init_pixmap (SinglePhotoPage* self,
- gint width,
- gint height);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-gboolean dimensions_has_area (Dimensions *self);
-void dimensions_get_scaled_proportional (Dimensions *self,
- Dimensions* viewport,
- Dimensions* result);
-GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* resized,
- GdkInterpType interp);
-void parse_color (const gchar* spec,
- GdkRGBA* result);
-void transition_clock_start (TransitionClock* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsDirection direction,
- gint duration_msec,
- TransitionClockRepaintCallback repaint,
- void* repaint_target);
-SpitTransitionsDirection direction_to_transition_direction (Direction self);
-static void _single_photo_page_repaint_pixmap_transition_clock_repaint_callback (gpointer self);
-static gboolean single_photo_page_real_on_context_keypress (Page* base);
-void single_photo_page_on_previous_photo (SinglePhotoPage* self);
-static void single_photo_page_real_on_previous_photo (SinglePhotoPage* self);
-void single_photo_page_on_next_photo (SinglePhotoPage* self);
-static void single_photo_page_real_on_next_photo (SinglePhotoPage* self);
-static gboolean single_photo_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-void invalidate_transparent_background (void);
-static void single_photo_page_finalize (GObject * obj);
-gpointer drag_and_drop_handler_ref (gpointer instance);
-void drag_and_drop_handler_unref (gpointer instance);
-GParamSpec* param_spec_drag_and_drop_handler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_drag_and_drop_handler (GValue* value,
- gpointer v_object);
-void value_take_drag_and_drop_handler (GValue* value,
- gpointer v_object);
-gpointer value_get_drag_and_drop_handler (const GValue* value);
-GType drag_and_drop_handler_get_type (void) G_GNUC_CONST;
-gpointer exporter_ui_ref (gpointer instance);
-void exporter_ui_unref (gpointer instance);
-GParamSpec* param_spec_exporter_ui (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_exporter_ui (GValue* value,
- gpointer v_object);
-void value_take_exporter_ui (GValue* value,
- gpointer v_object);
-gpointer value_get_exporter_ui (const GValue* value);
-GType exporter_ui_get_type (void) G_GNUC_CONST;
-#define DRAG_AND_DROP_HANDLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerPrivate))
-static void drag_and_drop_handler_on_drag_begin (DragAndDropHandler* self,
- GdkDragContext* context);
-static void _drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self);
-static void drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self,
- GdkDragContext* context,
- GtkSelectionData* selection_data,
- guint target_type,
- guint time);
-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);
-static void drag_and_drop_handler_on_drag_end (DragAndDropHandler* self);
-static void _drag_and_drop_handler_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self);
-static gboolean drag_and_drop_handler_on_drag_failed (DragAndDropHandler* self,
- GdkDragContext* context,
- GtkDragResult drag_result);
-static gboolean _drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed (GtkWidget* _sender,
- GdkDragContext* context,
- GtkDragResult _result_,
- gpointer self);
-static GType drag_and_drop_handler_target_type_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-DragAndDropHandler* drag_and_drop_handler_new (Page* page);
-DragAndDropHandler* drag_and_drop_handler_construct (GType object_type,
- Page* page);
-static GdkAtom* _gdk_atom_dup (GdkAtom* self);
-guchar* string_to_uchar_array (const gchar* str,
- int* result_length1);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-DataSource* data_view_get_source (DataView* self);
-GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-#define APP_WINDOW_DND_ICON_SCALE 128
-gchar* data_object_to_string (DataObject* self);
-gchar* uchar_array_to_string (guchar* data,
- int data_length1,
- gint length);
-GType media_source_get_type (void) G_GNUC_CONST;
-GeeList* view_collection_get_selected_sources (ViewCollection* self);
-guchar* serialize_media_sources (GeeCollection* media,
- int* result_length1);
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-void scaling_for_original (Scaling* result);
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-void export_format_parameters_current (ExportFormatParameters* result);
-Exporter* exporter_new (GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-Exporter* exporter_construct (GType object_type,
- GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-GType exporter_get_type (void) G_GNUC_CONST;
-ExporterUI* exporter_ui_new (Exporter* exporter);
-ExporterUI* exporter_ui_construct (GType object_type,
- Exporter* exporter);
-void exporter_ui_export (ExporterUI* self,
- ExporterCompletionCallback completion_callback,
- void* completion_callback_target);
-static void drag_and_drop_handler_on_export_completed (DragAndDropHandler* self);
-static void _drag_and_drop_handler_on_export_completed_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self);
-static void drag_and_drop_handler_finalize (DragAndDropHandler * 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 GtkTargetEntry DRAG_AND_DROP_HANDLER_SOURCE_TARGET_ENTRIES[2] = {{"XdndDirectSave0", (guint) GTK_TARGET_OTHER_APP, (guint) DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS}, {"shotwell/media-id-atom", (guint) GTK_TARGET_SAME_APP, (guint) DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST}};
-
-InjectionGroup*
-injection_group_construct (GType object_type,
- const gchar* path)
-{
- InjectionGroup* self = NULL;
- gchar* _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (path != NULL, NULL);
-#line 31 "/home/jens/Source/shotwell/src/Page.vala"
- self = (InjectionGroup*) g_type_create_instance (object_type);
-#line 32 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (path);
-#line 32 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->path);
-#line 32 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->path = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/Page.vala"
- return self;
-#line 2057 "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 2066 "Page.c"
-}
-
-
-gchar*
-injection_group_get_path (InjectionGroup* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 35 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_INJECTION_GROUP (self), NULL);
-#line 36 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->path;
-#line 36 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 36 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 2086 "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 2095 "Page.c"
-}
-
-
-GeeList*
-injection_group_get_elements (InjectionGroup* self)
-{
- GeeList* result = NULL;
- GeeArrayList* _tmp0_;
- GeeList* _tmp1_;
-#line 39 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_INJECTION_GROUP (self), NULL);
-#line 40 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->elements;
-#line 40 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList));
-#line 40 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 40 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 2115 "Page.c"
-}
-
-
-void
-injection_group_add_menu_item (InjectionGroup* self,
- const gchar* name,
- const gchar* action,
- const gchar* accellerator)
-{
- GeeArrayList* _tmp0_;
- InjectionGroupElement* _tmp1_;
- InjectionGroupElement* _tmp2_;
-#line 43 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_INJECTION_GROUP (self));
-#line 43 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 44 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->elements;
-#line 44 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = injection_group_element_new (name, action, accellerator, INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM);
-#line 44 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/Page.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_);
-#line 44 "/home/jens/Source/shotwell/src/Page.vala"
- _injection_group_element_unref0 (_tmp2_);
-#line 2142 "Page.c"
-}
-
-
-void
-injection_group_add_menu (InjectionGroup* self,
- const gchar* name,
- const gchar* action)
-{
- GeeArrayList* _tmp0_;
- InjectionGroupElement* _tmp1_;
- InjectionGroupElement* _tmp2_;
-#line 47 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_INJECTION_GROUP (self));
-#line 47 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 48 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->elements;
-#line 48 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = injection_group_element_new (name, action, NULL, INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENU);
-#line 48 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/Page.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_);
-#line 48 "/home/jens/Source/shotwell/src/Page.vala"
- _injection_group_element_unref0 (_tmp2_);
-#line 2168 "Page.c"
-}
-
-
-void
-injection_group_add_separator (InjectionGroup* self)
-{
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- InjectionGroupElement* _tmp4_;
- InjectionGroupElement* _tmp5_;
-#line 51 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_INJECTION_GROUP (self));
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->elements;
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->separator_id;
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->separator_id = _tmp1_ + 1;
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = g_strdup_printf ("%d-separator", _tmp1_);
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_;
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = injection_group_element_new (_tmp3_, NULL, NULL, INJECTION_GROUP_ELEMENT_ITEM_TYPE_SEPARATOR);
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_);
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- _injection_group_element_unref0 (_tmp5_);
-#line 52 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp3_);
-#line 2203 "Page.c"
-}
-
-
-GType
-injection_group_element_item_type_get_type (void)
-{
- static volatile gsize injection_group_element_item_type_type_id__volatile = 0;
- if (g_once_init_enter (&injection_group_element_item_type_type_id__volatile)) {
- static const GEnumValue values[] = {{INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM, "INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM", "menuitem"}, {INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENU, "INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENU", "menu"}, {INJECTION_GROUP_ELEMENT_ITEM_TYPE_SEPARATOR, "INJECTION_GROUP_ELEMENT_ITEM_TYPE_SEPARATOR", "separator"}, {0, NULL, NULL}};
- GType injection_group_element_item_type_type_id;
- injection_group_element_item_type_type_id = g_enum_register_static ("InjectionGroupElementItemType", values);
- g_once_init_leave (&injection_group_element_item_type_type_id__volatile, injection_group_element_item_type_type_id);
- }
- return injection_group_element_item_type_type_id__volatile;
-}
-
-
-InjectionGroupElement*
-injection_group_element_construct (GType object_type,
- const gchar* name,
- const gchar* action,
- const gchar* accellerator,
- InjectionGroupElementItemType kind)
-{
- InjectionGroupElement* self = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 19 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 19 "/home/jens/Source/shotwell/src/Page.vala"
- self = (InjectionGroupElement*) g_type_create_instance (object_type);
-#line 20 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (name);
-#line 20 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->name);
-#line 20 "/home/jens/Source/shotwell/src/Page.vala"
- self->name = _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/Page.vala"
- if (action != NULL) {
-#line 21 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = action;
-#line 2247 "Page.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = name;
-#line 2251 "Page.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 21 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->action);
-#line 21 "/home/jens/Source/shotwell/src/Page.vala"
- self->action = _tmp2_;
-#line 22 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = g_strdup (accellerator);
-#line 22 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->accellerator);
-#line 22 "/home/jens/Source/shotwell/src/Page.vala"
- self->accellerator = _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/Page.vala"
- self->kind = kind;
-#line 19 "/home/jens/Source/shotwell/src/Page.vala"
- return self;
-#line 2269 "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 2281 "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 2290 "Page.c"
-}
-
-
-static void
-injection_group_value_element_free_value (GValue* value)
-{
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2301 "Page.c"
- }
-}
-
-
-static void
-injection_group_value_element_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2314 "Page.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2318 "Page.c"
- }
-}
-
-
-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 2328 "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 2340 "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 2347 "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 2351 "Page.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = injection_group_element_ref (object);
-#line 2355 "Page.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 2359 "Page.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- return NULL;
-#line 2363 "Page.c"
-}
-
-
-static gchar*
-injection_group_value_element_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- InjectionGroupElement ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2379 "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 2385 "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 2389 "Page.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- *object_p = injection_group_element_ref (value->data[0].v_pointer);
-#line 2393 "Page.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- return NULL;
-#line 2397 "Page.c"
-}
-
-
-GParamSpec*
-injection_group_param_spec_element (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- InjectionGroupParamSpecElement* spec;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (g_type_is_a (object_type, INJECTION_GROUP_TYPE_ELEMENT), NULL);
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- return G_PARAM_SPEC (spec);
-#line 2417 "Page.c"
-}
-
-
-gpointer
-injection_group_value_get_element (const GValue* value)
-{
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2428 "Page.c"
-}
-
-
-void
-injection_group_value_set_element (GValue* value,
- gpointer v_object)
-{
- InjectionGroupElement * old;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, INJECTION_GROUP_TYPE_ELEMENT));
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- old = value->data[0].v_pointer;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- if (v_object) {
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, INJECTION_GROUP_TYPE_ELEMENT));
-#line 8 "/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 8 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2451 "Page.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 2455 "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 2461 "Page.c"
- }
-}
-
-
-void
-injection_group_value_take_element (GValue* value,
- gpointer v_object)
-{
- InjectionGroupElement * old;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, INJECTION_GROUP_TYPE_ELEMENT));
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- old = value->data[0].v_pointer;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- if (v_object) {
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, INJECTION_GROUP_TYPE_ELEMENT));
-#line 8 "/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 8 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = v_object;
-#line 2483 "Page.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 2487 "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 2493 "Page.c"
- }
-}
-
-
-static void
-injection_group_element_class_init (InjectionGroupElementClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2505 "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 2514 "Page.c"
-}
-
-
-static void
-injection_group_element_finalize (InjectionGroupElement * obj)
-{
- InjectionGroupElement * self;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, INJECTION_GROUP_TYPE_ELEMENT, InjectionGroupElement);
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_handlers_destroy (self);
-#line 14 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->name);
-#line 15 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->action);
-#line 16 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->accellerator);
-#line 2532 "Page.c"
-}
-
-
-GType
-injection_group_element_get_type (void)
-{
- static volatile gsize injection_group_element_type_id__volatile = 0;
- if (g_once_init_enter (&injection_group_element_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { injection_group_value_element_init, injection_group_value_element_free_value, injection_group_value_element_copy_value, injection_group_value_element_peek_pointer, "p", injection_group_value_element_collect_value, "p", injection_group_value_element_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (InjectionGroupElementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) injection_group_element_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (InjectionGroupElement), 0, (GInstanceInitFunc) injection_group_element_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType injection_group_element_type_id;
- injection_group_element_type_id = g_type_register_fundamental (g_type_fundamental_next (), "InjectionGroupElement", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&injection_group_element_type_id__volatile, injection_group_element_type_id);
- }
- return injection_group_element_type_id__volatile;
-}
-
-
-gpointer
-injection_group_element_ref (gpointer instance)
-{
- InjectionGroupElement * self;
- self = instance;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- return instance;
-#line 2561 "Page.c"
-}
-
-
-void
-injection_group_element_unref (gpointer instance)
-{
- InjectionGroupElement * self;
- self = instance;
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- INJECTION_GROUP_ELEMENT_GET_CLASS (self)->finalize (self);
-#line 8 "/home/jens/Source/shotwell/src/Page.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2576 "Page.c"
- }
-}
-
-
-static void
-value_injection_group_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 2586 "Page.c"
-}
-
-
-static void
-value_injection_group_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- injection_group_unref (value->data[0].v_pointer);
-#line 2597 "Page.c"
- }
-}
-
-
-static void
-value_injection_group_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2610 "Page.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2614 "Page.c"
- }
-}
-
-
-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 2624 "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 2636 "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 2643 "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 2647 "Page.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = injection_group_ref (object);
-#line 2651 "Page.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 2655 "Page.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- return NULL;
-#line 2659 "Page.c"
-}
-
-
-static gchar*
-value_injection_group_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- InjectionGroup ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2675 "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 2681 "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 2685 "Page.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- *object_p = injection_group_ref (value->data[0].v_pointer);
-#line 2689 "Page.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- return NULL;
-#line 2693 "Page.c"
-}
-
-
-GParamSpec*
-param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecInjectionGroup* spec;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_INJECTION_GROUP), NULL);
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- return G_PARAM_SPEC (spec);
-#line 2713 "Page.c"
-}
-
-
-gpointer
-value_get_injection_group (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2724 "Page.c"
-}
-
-
-void
-value_set_injection_group (GValue* value,
- gpointer v_object)
-{
- InjectionGroup * old;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INJECTION_GROUP));
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_INJECTION_GROUP));
-#line 7 "/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 7 "/home/jens/Source/shotwell/src/Page.vala"
- 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 2747 "Page.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 2751 "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 2757 "Page.c"
- }
-}
-
-
-void
-value_take_injection_group (GValue* value,
- gpointer v_object)
-{
- InjectionGroup * old;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INJECTION_GROUP));
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_INJECTION_GROUP));
-#line 7 "/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 7 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = v_object;
-#line 2779 "Page.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 2783 "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 2789 "Page.c"
- }
-}
-
-
-static void
-injection_group_class_init (InjectionGroupClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- injection_group_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- ((InjectionGroupClass *) klass)->finalize = injection_group_finalize;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_type_class_add_private (klass, sizeof (InjectionGroupPrivate));
-#line 2803 "Page.c"
-}
-
-
-static void
-injection_group_instance_init (InjectionGroup * self)
-{
- GeeArrayList* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv = INJECTION_GROUP_GET_PRIVATE (self);
-#line 28 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = gee_array_list_new (INJECTION_GROUP_TYPE_ELEMENT, (GBoxedCopyFunc) injection_group_element_ref, (GDestroyNotify) injection_group_element_unref, NULL, NULL, NULL);
-#line 28 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->elements = _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->separator_id = 0;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- self->ref_count = 1;
-#line 2821 "Page.c"
-}
-
-
-static void
-injection_group_finalize (InjectionGroup * obj)
-{
- InjectionGroup * self;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INJECTION_GROUP, InjectionGroup);
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_handlers_destroy (self);
-#line 27 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->path);
-#line 28 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->elements);
-#line 2837 "Page.c"
-}
-
-
-GType
-injection_group_get_type (void)
-{
- static volatile gsize injection_group_type_id__volatile = 0;
- if (g_once_init_enter (&injection_group_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_injection_group_init, value_injection_group_free_value, value_injection_group_copy_value, value_injection_group_peek_pointer, "p", value_injection_group_collect_value, "p", value_injection_group_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (InjectionGroupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) injection_group_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (InjectionGroup), 0, (GInstanceInitFunc) injection_group_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType injection_group_type_id;
- injection_group_type_id = g_type_register_fundamental (g_type_fundamental_next (), "InjectionGroup", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&injection_group_type_id__volatile, injection_group_type_id);
- }
- return injection_group_type_id__volatile;
-}
-
-
-gpointer
-injection_group_ref (gpointer instance)
-{
- InjectionGroup * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- return instance;
-#line 2866 "Page.c"
-}
-
-
-void
-injection_group_unref (gpointer instance)
-{
- InjectionGroup * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- INJECTION_GROUP_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/Page.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2881 "Page.c"
- }
-}
-
-
-static gboolean
-_page_on_context_keypress_gtk_widget_popup_menu (GtkWidget* _sender,
- gpointer self)
-{
- gboolean result;
- result = page_on_context_keypress ((Page*) self);
-#line 98 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 2894 "Page.c"
-}
-
-
-static void
-_page_attach_view_signals_gtk_widget_realize (GtkWidget* _sender,
- gpointer self)
-{
-#line 100 "/home/jens/Source/shotwell/src/Page.vala"
- page_attach_view_signals ((Page*) self);
-#line 2904 "Page.c"
-}
-
-
-Page*
-page_construct (GType object_type,
- const gchar* page_name)
-{
- Page * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- ViewCollection* _tmp3_;
- GdkPoint _tmp4_ = {0};
-#line 89 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (page_name != NULL, NULL);
-#line 89 "/home/jens/Source/shotwell/src/Page.vala"
- self = (Page*) g_object_new (object_type, NULL);
-#line 90 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (page_name);
-#line 90 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->page_name);
-#line 90 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->page_name = _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = g_strdup_printf ("ViewCollection for Page %s", page_name);
-#line 92 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 92 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = view_collection_new (_tmp2_);
-#line 92 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (self->priv->view);
-#line 92 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->view = _tmp3_;
-#line 92 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp2_);
-#line 94 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_.x = -1;
-#line 94 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_.y = -1;
-#line 94 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_down = _tmp4_;
-#line 96 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE);
-#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"
- 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;
-#line 2954 "Page.c"
-}
-
-
-static void
-page_real_destroy (GtkWidget* base)
-{
- Page * self;
- gboolean _tmp0_;
- ViewCollection* _tmp1_;
- GtkToolbar* _tmp2_;
- OneShotScheduler* _tmp4_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 111 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE, Page);
-#line 112 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->is_destroyed;
-#line 112 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 113 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 2976 "Page.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/Page.vala"
- page_detach_event_source (self);
-#line 117 "/home/jens/Source/shotwell/src/Page.vala"
- page_detach_view_signals (self);
-#line 118 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->view;
-#line 118 "/home/jens/Source/shotwell/src/Page.vala"
- data_collection_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 121 "/home/jens/Source/shotwell/src/Page.vala"
- page_clear_container (self);
-#line 123 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->toolbar;
-#line 123 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != NULL) {
-#line 2992 "Page.c"
- GtkToolbar* _tmp3_;
-#line 124 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->toolbar;
-#line 124 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 2998 "Page.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->update_actions_scheduler;
-#line 127 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ != NULL) {
-#line 3004 "Page.c"
- OneShotScheduler* _tmp5_;
-#line 128 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->update_actions_scheduler;
-#line 128 "/home/jens/Source/shotwell/src/Page.vala"
- one_shot_scheduler_cancel (_tmp5_);
-#line 3010 "Page.c"
- }
-#line 130 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->is_destroyed = TRUE;
-#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 134 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = page_get_page_name (self);
-#line 134 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#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 3024 "Page.c"
-}
-
-
-gchar*
-page_get_page_name (Page* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 137 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 138 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->page_name;
-#line 138 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 138 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 138 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3044 "Page.c"
-}
-
-
-static void
-page_real_set_page_name (Page* self,
- const gchar* page_name)
-{
- gchar* _tmp0_;
-#line 141 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (page_name != NULL);
-#line 142 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (page_name);
-#line 142 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->page_name);
-#line 142 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->page_name = _tmp0_;
-#line 3061 "Page.c"
-}
-
-
-void
-page_set_page_name (Page* self,
- const gchar* page_name)
-{
-#line 141 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 141 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->set_page_name (self, page_name);
-#line 3073 "Page.c"
-}
-
-
-gchar*
-page_to_string (Page* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 145 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 146 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->page_name;
-#line 146 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 146 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 146 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3093 "Page.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 150 "/home/jens/Source/shotwell/src/Page.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 3102 "Page.c"
-}
-
-
-ViewCollection*
-page_get_view (Page* self)
-{
- ViewCollection* result = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
-#line 149 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 150 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->view;
-#line 150 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _data_collection_ref0 (_tmp0_);
-#line 150 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 150 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3122 "Page.c"
-}
-
-
-GtkWindow*
-page_get_container (Page* self)
-{
- GtkWindow* result = NULL;
- GtkWindow* _tmp0_;
- GtkWindow* _tmp1_;
-#line 153 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 154 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->container;
-#line 154 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 154 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 154 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3142 "Page.c"
-}
-
-
-static void
-page_real_set_container (Page* self,
- GtkWindow* container)
-{
- GtkWindow* _tmp0_;
- GtkWindow* _tmp1_;
-#line 157 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GTK_IS_WINDOW (container));
-#line 158 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->container;
-#line 158 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp0_ == NULL, "this.container == null");
-#line 160 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _g_object_ref0 (container);
-#line 160 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->container);
-#line 160 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->container = _tmp1_;
-#line 3164 "Page.c"
-}
-
-
-void
-page_set_container (Page* self,
- GtkWindow* container)
-{
-#line 157 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 157 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->set_container (self, container);
-#line 3176 "Page.c"
-}
-
-
-static void
-page_real_clear_container (Page* self)
-{
-#line 164 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->container);
-#line 164 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->container = NULL;
-#line 3187 "Page.c"
-}
-
-
-void
-page_clear_container (Page* self)
-{
-#line 163 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 163 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->clear_container (self);
-#line 3198 "Page.c"
-}
-
-
-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 178 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3211 "Page.c"
-}
-
-
-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 179 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3224 "Page.c"
-}
-
-
-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 180 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3237 "Page.c"
-}
-
-
-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 181 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3250 "Page.c"
-}
-
-
-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 182 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3263 "Page.c"
-}
-
-
-static void
-_page_on_event_source_realize_gtk_widget_realize (GtkWidget* _sender,
- gpointer self)
-{
-#line 183 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_event_source_realize ((Page*) self);
-#line 3273 "Page.c"
-}
-
-
-void
-page_set_event_source (Page* self,
- GtkWidget* event_source)
-{
- GtkWidget* _tmp0_;
- GtkWidget* _tmp1_;
-#line 167 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 167 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GTK_IS_WIDGET (event_source));
-#line 168 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->event_source;
-#line 168 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp0_ == NULL, "this.event_source == null");
-#line 170 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _g_object_ref0 (event_source);
-#line 170 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->event_source);
-#line 170 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->event_source = _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_set_can_focus (event_source, TRUE);
-#line 174 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_add_events (event_source, (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) | GDK_SMOOTH_SCROLL_MASK));
-#line 178 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (event_source, "button-press-event", (GCallback) _page_on_button_pressed_internal_gtk_widget_button_press_event, self, 0);
-#line 179 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (event_source, "button-release-event", (GCallback) _page_on_button_released_internal_gtk_widget_button_release_event, self, 0);
-#line 180 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (event_source, "motion-notify-event", (GCallback) _page_on_motion_internal_gtk_widget_motion_notify_event, self, 0);
-#line 181 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (event_source, "leave-notify-event", (GCallback) _page_on_leave_notify_event_gtk_widget_leave_notify_event, self, 0);
-#line 182 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (event_source, "scroll-event", (GCallback) _page_on_mousewheel_internal_gtk_widget_scroll_event, self, 0);
-#line 183 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (event_source, "realize", (GCallback) _page_on_event_source_realize_gtk_widget_realize, self, 0);
-#line 3313 "Page.c"
-}
-
-
-static void
-page_detach_event_source (Page* self)
-{
- GtkWidget* _tmp0_;
- GtkWidget* _tmp1_;
- guint _tmp2_;
- GtkWidget* _tmp3_;
- guint _tmp4_;
- GtkWidget* _tmp5_;
- guint _tmp6_;
- GtkWidget* _tmp7_;
- guint _tmp8_;
- GtkWidget* _tmp9_;
- guint _tmp10_;
-#line 186 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 187 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->event_source;
-#line 187 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ == NULL) {
-#line 188 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 3339 "Page.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->event_source;
-#line 190 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp2_, NULL, FALSE);
-#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 191 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->event_source;
-#line 191 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("button-release-event", gtk_widget_get_type (), &_tmp4_, NULL, FALSE);
-#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 192 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->event_source;
-#line 192 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("motion-notify-event", gtk_widget_get_type (), &_tmp6_, NULL, FALSE);
-#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 193 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->priv->event_source;
-#line 193 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("leave-notify-event", gtk_widget_get_type (), &_tmp8_, NULL, FALSE);
-#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 194 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->priv->event_source;
-#line 194 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("scroll-event", gtk_widget_get_type (), &_tmp10_, NULL, FALSE);
-#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 196 "/home/jens/Source/shotwell/src/Page.vala"
- page_disable_drag_source (self);
-#line 198 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->event_source);
-#line 198 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->event_source = NULL;
-#line 3377 "Page.c"
-}
-
-
-GtkWidget*
-page_get_event_source (Page* self)
-{
- GtkWidget* result = NULL;
- GtkWidget* _tmp0_;
- GtkWidget* _tmp1_;
-#line 201 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 202 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->event_source;
-#line 202 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 202 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 202 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3397 "Page.c"
-}
-
-
-static gpointer
-_injection_group_ref0 (gpointer self)
-{
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- return self ? injection_group_ref (self) : NULL;
-#line 3406 "Page.c"
-}
-
-
-GMenuModel*
-page_get_menubar (Page* self)
-{
- GMenuModel* result = NULL;
- GMenu* model = NULL;
- GtkBuilder* _tmp0_;
- GObject* _tmp1_;
- GMenu* _tmp2_;
- GMenu* _tmp3_;
- gboolean _tmp5_;
-#line 206 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 207 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->builder;
-#line 207 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = gtk_builder_get_object (_tmp0_, "MenuBar");
-#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 207 "/home/jens/Source/shotwell/src/Page.vala"
- model = _tmp2_;
-#line 208 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = model;
-#line 208 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_ == NULL) {
-#line 3434 "Page.c"
- GMenu* _tmp4_;
-#line 209 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = g_menu_new ();
-#line 209 "/home/jens/Source/shotwell/src/Page.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, g_menu_model_get_type (), GMenuModel);
-#line 209 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (model);
-#line 209 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3444 "Page.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->menubar_injected;
-#line 212 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp5_) {
-#line 3450 "Page.c"
- InjectionGroup** injection_groups = NULL;
- gint _tmp6_;
- InjectionGroup** _tmp7_;
- gint injection_groups_length1;
- gint _injection_groups_size_;
- InjectionGroup** _tmp8_;
- gint _tmp8__length1;
-#line 214 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = page_init_collect_injection_groups (self, &_tmp6_);
-#line 214 "/home/jens/Source/shotwell/src/Page.vala"
- injection_groups = _tmp7_;
-#line 214 "/home/jens/Source/shotwell/src/Page.vala"
- injection_groups_length1 = _tmp6_;
-#line 214 "/home/jens/Source/shotwell/src/Page.vala"
- _injection_groups_size_ = injection_groups_length1;
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = injection_groups;
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8__length1 = injection_groups_length1;
-#line 3470 "Page.c"
- {
- InjectionGroup** group_collection = NULL;
- gint group_collection_length1 = 0;
- gint _group_collection_size_ = 0;
- gint group_it = 0;
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- group_collection = _tmp8_;
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- group_collection_length1 = _tmp8__length1;
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- for (group_it = 0; group_it < _tmp8__length1; group_it = group_it + 1) {
-#line 3482 "Page.c"
- InjectionGroup* _tmp9_;
- InjectionGroup* group = NULL;
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _injection_group_ref0 (group_collection[group_it]);
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- group = _tmp9_;
-#line 3489 "Page.c"
- {
- gint items = 0;
- GMenu* _tmp10_;
-#line 216 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = model;
-#line 216 "/home/jens/Source/shotwell/src/Page.vala"
- items = g_menu_model_get_n_items (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_menu_model_get_type (), GMenuModel));
-#line 3497 "Page.c"
- {
- gint i = 0;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- i = 0;
-#line 3502 "Page.c"
- {
- gboolean _tmp11_ = FALSE;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = TRUE;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 3509 "Page.c"
- gint _tmp13_;
- gint _tmp14_;
- GMenuModel* submenu = NULL;
- GMenu* _tmp15_;
- gint _tmp16_;
- GMenuModel* _tmp17_;
- GMenuModel* section = NULL;
- GMenuModel* _tmp18_;
- InjectionGroup* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GMenuModel* _tmp22_;
- GMenuModel* _tmp23_;
- GMenuModel* _tmp24_;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp11_) {
-#line 3526 "Page.c"
- gint _tmp12_;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = i;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- i = _tmp12_ + 1;
-#line 3532 "Page.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = FALSE;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = i;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = items;
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- if (!(_tmp13_ < _tmp14_)) {
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 3544 "Page.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = model;
-#line 218 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = i;
-#line 218 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = g_menu_model_get_item_link (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, g_menu_model_get_type (), GMenuModel), _tmp16_, G_MENU_LINK_SUBMENU);
-#line 218 "/home/jens/Source/shotwell/src/Page.vala"
- submenu = _tmp17_;
-#line 220 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = submenu;
-#line 220 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = group;
-#line 220 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = injection_group_get_path (_tmp19_);
-#line 220 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = _tmp20_;
-#line 220 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = page_find_extension_point (self, _tmp18_, _tmp21_);
-#line 220 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = _tmp22_;
-#line 220 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp21_);
-#line 220 "/home/jens/Source/shotwell/src/Page.vala"
- section = _tmp23_;
-#line 223 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = section;
-#line 223 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp24_ == NULL) {
-#line 224 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (section);
-#line 224 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (submenu);
-#line 224 "/home/jens/Source/shotwell/src/Page.vala"
- continue;
-#line 3580 "Page.c"
- }
- {
- GeeList* _element_list = NULL;
- InjectionGroup* _tmp25_;
- GeeList* _tmp26_;
- gint _element_size = 0;
- GeeList* _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- gint _element_index = 0;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = group;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = injection_group_get_elements (_tmp25_);
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _element_list = _tmp26_;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = _element_list;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = _tmp28_;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _element_size = _tmp29_;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _element_index = -1;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 3609 "Page.c"
- gint _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- InjectionGroupElement* element = NULL;
- GeeList* _tmp33_;
- gint _tmp34_;
- gpointer _tmp35_;
- GMenu* menu = NULL;
- GMenuModel* _tmp36_;
- GMenu* _tmp37_;
- InjectionGroupElement* _tmp38_;
- InjectionGroupElementItemType _tmp39_;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = _element_index;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _element_index = _tmp30_ + 1;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = _element_index;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = _element_size;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- if (!(_tmp31_ < _tmp32_)) {
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 3634 "Page.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = _element_list;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = _element_index;
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = gee_list_get (_tmp33_, _tmp34_);
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- element = (InjectionGroupElement*) _tmp35_;
-#line 228 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = section;
-#line 228 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp36_, g_menu_get_type ()) ? ((GMenu*) _tmp36_) : NULL);
-#line 228 "/home/jens/Source/shotwell/src/Page.vala"
- menu = _tmp37_;
-#line 229 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = element;
-#line 229 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = _tmp38_->kind;
-#line 229 "/home/jens/Source/shotwell/src/Page.vala"
- switch (_tmp39_) {
-#line 229 "/home/jens/Source/shotwell/src/Page.vala"
- case INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM:
-#line 3658 "Page.c"
- {
- GMenuItem* item = NULL;
- InjectionGroupElement* _tmp40_;
- const gchar* _tmp41_;
- InjectionGroupElement* _tmp42_;
- const gchar* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- GMenuItem* _tmp46_;
- GMenuItem* _tmp47_;
- InjectionGroupElement* _tmp48_;
- const gchar* _tmp49_;
- GMenu* _tmp53_;
- GMenuItem* _tmp54_;
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp40_ = element;
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = _tmp40_->name;
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = element;
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = _tmp42_->action;
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp44_ = g_strconcat ("win.", _tmp43_, NULL);
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp45_ = _tmp44_;
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp46_ = g_menu_item_new (_tmp41_, _tmp45_);
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp47_ = _tmp46_;
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp45_);
-#line 231 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp47_;
-#line 233 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp48_ = element;
-#line 233 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp49_ = _tmp48_->accellerator;
-#line 233 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp49_ != NULL) {
-#line 3699 "Page.c"
- GMenuItem* _tmp50_;
- InjectionGroupElement* _tmp51_;
- const gchar* _tmp52_;
-#line 234 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp50_ = item;
-#line 234 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp51_ = element;
-#line 234 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp52_ = _tmp51_->accellerator;
-#line 234 "/home/jens/Source/shotwell/src/Page.vala"
- g_menu_item_set_attribute (_tmp50_, "accel", "s", _tmp52_, NULL);
-#line 3711 "Page.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp53_ = menu;
-#line 239 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp54_ = item;
-#line 239 "/home/jens/Source/shotwell/src/Page.vala"
- g_menu_append_item (_tmp53_, _tmp54_);
-#line 240 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 240 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 3723 "Page.c"
- }
- default:
- {
-#line 242 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 3729 "Page.c"
- }
- }
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (menu);
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _injection_group_element_unref0 (element);
-#line 3736 "Page.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_element_list);
-#line 3740 "Page.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (section);
-#line 217 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (submenu);
-#line 3746 "Page.c"
- }
- }
- }
-#line 215 "/home/jens/Source/shotwell/src/Page.vala"
- _injection_group_unref0 (group);
-#line 3752 "Page.c"
- }
- }
- }
-#line 248 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->menubar_injected = TRUE;
-#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 3760 "Page.c"
- }
-#line 251 "/home/jens/Source/shotwell/src/Page.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (model, g_menu_model_get_type (), GMenuModel);
-#line 251 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3766 "Page.c"
-}
-
-
-static GtkToolbar*
-page_real_get_toolbar (Page* self)
-{
- GtkToolbar* result = NULL;
- GtkToolbar* _tmp0_;
- GtkToolbar* _tmp12_;
- GtkToolbar* _tmp13_;
-#line 255 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->toolbar;
-#line 255 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ == NULL) {
-#line 3781 "Page.c"
- GtkToolbar* _tmp1_ = NULL;
- const gchar* _tmp2_;
- GtkToolbar* _tmp8_;
- GtkToolbar* _tmp9_;
- GtkStyleContext* _tmp10_;
- GtkToolbar* _tmp11_;
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->toolbar_path;
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ == NULL) {
-#line 3792 "Page.c"
- GtkToolbar* _tmp3_;
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = (GtkToolbar*) gtk_toolbar_new ();
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- g_object_ref_sink (_tmp3_);
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp3_;
-#line 3802 "Page.c"
- } else {
- GtkBuilder* _tmp4_;
- const gchar* _tmp5_;
- GObject* _tmp6_;
- GtkToolbar* _tmp7_;
-#line 257 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->builder;
-#line 257 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->toolbar_path;
-#line 257 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = gtk_builder_get_object (_tmp4_, _tmp5_);
-#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 257 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 257 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp7_;
-#line 3820 "Page.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _g_object_ref0 (_tmp1_);
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->toolbar);
-#line 256 "/home/jens/Source/shotwell/src/Page.vala"
- self->toolbar = _tmp8_;
-#line 259 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->toolbar;
-#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 259 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_style_context_add_class (_tmp10_, "bottom-toolbar");
-#line 260 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = self->toolbar;
-#line 260 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_toolbar_set_icon_size (_tmp11_, GTK_ICON_SIZE_SMALL_TOOLBAR);
-#line 255 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 3840 "Page.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->toolbar;
-#line 262 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = _g_object_ref0 (_tmp12_);
-#line 262 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp13_;
-#line 262 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3850 "Page.c"
-}
-
-
-GtkToolbar*
-page_get_toolbar (Page* self)
-{
-#line 254 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 254 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->get_toolbar (self);
-#line 3861 "Page.c"
-}
-
-
-static GtkMenu*
-page_real_get_page_context_menu (Page* self)
-{
- GtkMenu* result = NULL;
-#line 266 "/home/jens/Source/shotwell/src/Page.vala"
- result = NULL;
-#line 266 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 3873 "Page.c"
-}
-
-
-GtkMenu*
-page_get_page_context_menu (Page* self)
-{
-#line 265 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 265 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->get_page_context_menu (self);
-#line 3884 "Page.c"
-}
-
-
-static void
-page_real_switching_from (Page* self)
-{
- GActionMap* map = NULL;
- GtkWindow* _tmp0_;
- GActionMap* _tmp1_;
- GActionMap* _tmp2_;
- const gchar* _tmp4_;
-#line 270 "/home/jens/Source/shotwell/src/Page.vala"
- self->in_view = FALSE;
-#line 272 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_container (self);
-#line 272 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_action_map_get_type ()) ? ((GActionMap*) _tmp0_) : NULL;
-#line 272 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 272 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 3906 "Page.c"
- }
-#line 272 "/home/jens/Source/shotwell/src/Page.vala"
- map = _tmp1_;
-#line 273 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = map;
-#line 273 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != NULL) {
-#line 3914 "Page.c"
- GActionMap* _tmp3_;
-#line 274 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = map;
-#line 274 "/home/jens/Source/shotwell/src/Page.vala"
- page_remove_actions (self, _tmp3_);
-#line 3920 "Page.c"
- }
-#line 276 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->toolbar_path;
-#line 276 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ != NULL) {
-#line 277 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->toolbar);
-#line 277 "/home/jens/Source/shotwell/src/Page.vala"
- self->toolbar = NULL;
-#line 3930 "Page.c"
- }
-#line 269 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (map);
-#line 3934 "Page.c"
-}
-
-
-void
-page_switching_from (Page* self)
-{
-#line 269 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 269 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->switching_from (self);
-#line 3945 "Page.c"
-}
-
-
-static void
-page_real_switched_to (Page* self)
-{
- GActionMap* map = NULL;
- GtkWindow* _tmp0_;
- GActionMap* _tmp1_;
- GActionMap* _tmp2_;
- gint selected_count = 0;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- gint _tmp6_;
- gint count = 0;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- gint _tmp9_;
-#line 281 "/home/jens/Source/shotwell/src/Page.vala"
- self->in_view = TRUE;
-#line 282 "/home/jens/Source/shotwell/src/Page.vala"
- page_add_ui (self);
-#line 283 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_container (self);
-#line 283 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_action_map_get_type ()) ? ((GActionMap*) _tmp0_) : NULL;
-#line 283 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 283 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 3976 "Page.c"
- }
-#line 283 "/home/jens/Source/shotwell/src/Page.vala"
- map = _tmp1_;
-#line 284 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = map;
-#line 284 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != NULL) {
-#line 3984 "Page.c"
- GActionMap* _tmp3_;
-#line 285 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = map;
-#line 285 "/home/jens/Source/shotwell/src/Page.vala"
- page_add_actions (self, _tmp3_);
-#line 3990 "Page.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (self);
-#line 287 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 287 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = view_collection_get_selected_count (_tmp5_);
-#line 287 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 287 "/home/jens/Source/shotwell/src/Page.vala"
- selected_count = _tmp6_;
-#line 288 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = page_get_view (self);
-#line 288 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _tmp7_;
-#line 288 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
-#line 288 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp8_);
-#line 288 "/home/jens/Source/shotwell/src/Page.vala"
- count = _tmp9_;
-#line 289 "/home/jens/Source/shotwell/src/Page.vala"
- page_init_actions (self, selected_count, count);
-#line 290 "/home/jens/Source/shotwell/src/Page.vala"
- page_update_actions (self, selected_count, count);
-#line 291 "/home/jens/Source/shotwell/src/Page.vala"
- page_update_modifiers (self);
-#line 280 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (map);
-#line 4020 "Page.c"
-}
-
-
-void
-page_switched_to (Page* self)
-{
-#line 280 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 280 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->switched_to (self);
-#line 4031 "Page.c"
-}
-
-
-static void
-page_real_ready (Page* self)
-{
-}
-
-
-void
-page_ready (Page* self)
-{
-#line 294 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 294 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->ready (self);
-#line 4048 "Page.c"
-}
-
-
-gboolean
-page_is_in_view (Page* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 297 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 298 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->in_view;
-#line 298 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 298 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4065 "Page.c"
-}
-
-
-static void
-page_real_switching_to_fullscreen (Page* self,
- FullscreenWindow* fsw)
-{
-#line 301 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw));
-#line 302 "/home/jens/Source/shotwell/src/Page.vala"
- page_add_actions (self, G_TYPE_CHECK_INSTANCE_CAST (fsw, g_action_map_get_type (), GActionMap));
-#line 4077 "Page.c"
-}
-
-
-void
-page_switching_to_fullscreen (Page* self,
- FullscreenWindow* fsw)
-{
-#line 301 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 301 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->switching_to_fullscreen (self, fsw);
-#line 4089 "Page.c"
-}
-
-
-static void
-page_real_returning_from_fullscreen (Page* self,
- FullscreenWindow* fsw)
-{
-#line 305 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw));
-#line 306 "/home/jens/Source/shotwell/src/Page.vala"
- page_remove_actions (self, G_TYPE_CHECK_INSTANCE_CAST (fsw, g_action_map_get_type (), GActionMap));
-#line 307 "/home/jens/Source/shotwell/src/Page.vala"
- page_switched_to (self);
-#line 4103 "Page.c"
-}
-
-
-void
-page_returning_from_fullscreen (Page* self,
- FullscreenWindow* fsw)
-{
-#line 305 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 305 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->returning_from_fullscreen (self, fsw);
-#line 4115 "Page.c"
-}
-
-
-GAction*
-page_get_action (Page* self,
- const gchar* name)
-{
- GAction* result = NULL;
- GActionMap* map = NULL;
- GtkWindow* _tmp0_;
- GActionMap* _tmp5_;
-#line 310 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 310 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 311 "/home/jens/Source/shotwell/src/Page.vala"
- map = NULL;
-#line 312 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->container;
-#line 312 "/home/jens/Source/shotwell/src/Page.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW)) {
-#line 4137 "Page.c"
- GtkWindow* _tmp1_;
- GActionMap* _tmp2_;
-#line 313 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->container;
-#line 313 "/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 313 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (map);
-#line 313 "/home/jens/Source/shotwell/src/Page.vala"
- map = _tmp2_;
-#line 4148 "Page.c"
- } else {
- AppWindow* _tmp3_;
- GActionMap* _tmp4_;
-#line 315 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = app_window_get_instance ();
-#line 315 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_action_map_get_type ()) ? ((GActionMap*) _tmp3_) : NULL;
-#line 315 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ == NULL) {
-#line 315 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp3_);
-#line 4160 "Page.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (map);
-#line 315 "/home/jens/Source/shotwell/src/Page.vala"
- map = _tmp4_;
-#line 4166 "Page.c"
- }
-#line 318 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = map;
-#line 318 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_ != NULL) {
-#line 4172 "Page.c"
- GActionMap* _tmp6_;
- GAction* _tmp7_;
- GAction* _tmp8_;
-#line 319 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = map;
-#line 319 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = g_action_map_lookup_action (_tmp6_, name);
-#line 319 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 319 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp8_;
-#line 319 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (map);
-#line 319 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4188 "Page.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/Page.vala"
- result = NULL;
-#line 322 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (map);
-#line 322 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4196 "Page.c"
-}
-
-
-void
-page_set_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 325 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 325 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 326 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_action (self, name);
-#line 326 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 326 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 326 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 4221 "Page.c"
- }
-#line 326 "/home/jens/Source/shotwell/src/Page.vala"
- action = _tmp1_;
-#line 327 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = action;
-#line 327 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != NULL) {
-#line 4229 "Page.c"
- GSimpleAction* _tmp3_;
-#line 328 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = action;
-#line 328 "/home/jens/Source/shotwell/src/Page.vala"
- g_simple_action_set_enabled (_tmp3_, sensitive);
-#line 4235 "Page.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (action);
-#line 4239 "Page.c"
-}
-
-
-void
-page_set_action_details (Page* self,
- const gchar* name,
- const gchar* label,
- const gchar* tooltip,
- gboolean sensitive)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
- GSimpleAction* _tmp3_;
-#line 331 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 331 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 332 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_action (self, name);
-#line 332 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 332 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 332 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 4267 "Page.c"
- }
-#line 332 "/home/jens/Source/shotwell/src/Page.vala"
- action = _tmp1_;
-#line 334 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = action;
-#line 334 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ == NULL) {
-#line 335 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (action);
-#line 335 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 4279 "Page.c"
- }
-#line 337 "/home/jens/Source/shotwell/src/Page.vala"
- if (label != NULL) {
-#line 338 "/home/jens/Source/shotwell/src/Page.vala"
- page_update_menu_item_label (self, name, label);
-#line 4285 "Page.c"
- }
-#line 340 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = action;
-#line 340 "/home/jens/Source/shotwell/src/Page.vala"
- g_simple_action_set_enabled (_tmp3_, sensitive);
-#line 331 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (action);
-#line 4293 "Page.c"
-}
-
-
-void
-page_activate_action (Page* self,
- const gchar* name)
-{
- GAction* action = NULL;
- GAction* _tmp0_;
- GAction* _tmp1_;
-#line 343 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 343 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_action (self, name);
-#line 344 "/home/jens/Source/shotwell/src/Page.vala"
- action = _tmp0_;
-#line 346 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = action;
-#line 346 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ != NULL) {
-#line 4316 "Page.c"
- GAction* _tmp2_;
-#line 347 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = action;
-#line 347 "/home/jens/Source/shotwell/src/Page.vala"
- g_action_activate (_tmp2_, NULL);
-#line 4322 "Page.c"
- }
-#line 343 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (action);
-#line 4326 "Page.c"
-}
-
-
-GAction*
-page_get_common_action (Page* self,
- const gchar* name,
- gboolean log_warning)
-{
- GAction* result = NULL;
- GAction* action = NULL;
- GAction* _tmp0_;
- GAction* _tmp1_;
-#line 350 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 350 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 351 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_action (self, name);
-#line 351 "/home/jens/Source/shotwell/src/Page.vala"
- action = _tmp0_;
-#line 353 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = action;
-#line 353 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ != NULL) {
-#line 354 "/home/jens/Source/shotwell/src/Page.vala"
- result = action;
-#line 354 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4355 "Page.c"
- }
-#line 356 "/home/jens/Source/shotwell/src/Page.vala"
- if (log_warning) {
-#line 4359 "Page.c"
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 357 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = page_get_page_name (self);
-#line 357 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_;
-#line 357 "/home/jens/Source/shotwell/src/Page.vala"
- g_warning ("Page.vala:357: Page %s: Unable to locate common action %s", _tmp3_, name);
-#line 357 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp3_);
-#line 4370 "Page.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/Page.vala"
- result = NULL;
-#line 359 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (action);
-#line 359 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4378 "Page.c"
-}
-
-
-void
-page_set_common_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 362 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 362 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 363 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_common_action (self, name, TRUE);
-#line 363 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 363 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 363 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 4403 "Page.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/Page.vala"
- action = _tmp1_;
-#line 364 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = action;
-#line 364 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != NULL) {
-#line 4411 "Page.c"
- GSimpleAction* _tmp3_;
-#line 365 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = action;
-#line 365 "/home/jens/Source/shotwell/src/Page.vala"
- g_simple_action_set_enabled (_tmp3_, sensitive);
-#line 4417 "Page.c"
- }
-#line 362 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (action);
-#line 4421 "Page.c"
-}
-
-
-void
-page_set_common_action_label (Page* self,
- const gchar* name,
- const gchar* label)
-{
-#line 368 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 368 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 368 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (label != NULL);
-#line 369 "/home/jens/Source/shotwell/src/Page.vala"
- g_debug ("Page.vala:369: Trying to set common action label for %s", name);
-#line 4438 "Page.c"
-}
-
-
-void
-page_set_common_action_important (Page* self,
- const gchar* name,
- gboolean important)
-{
-#line 372 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 372 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 373 "/home/jens/Source/shotwell/src/Page.vala"
- g_debug ("Page.vala:373: Setting action to important: %s", name);
-#line 4453 "Page.c"
-}
-
-
-void
-page_activate_common_action (Page* self,
- const gchar* name)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 376 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 376 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 377 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_common_action (self, name, TRUE);
-#line 377 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 377 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 377 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 4477 "Page.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/Page.vala"
- action = _tmp1_;
-#line 378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = action;
-#line 378 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != NULL) {
-#line 4485 "Page.c"
- GSimpleAction* _tmp3_;
-#line 379 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = action;
-#line 379 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_emit_by_name (_tmp3_, "activate", NULL);
-#line 4491 "Page.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (action);
-#line 4495 "Page.c"
-}
-
-
-gboolean
-page_get_ctrl_pressed (Page* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 382 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 383 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->ctrl_pressed;
-#line 383 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 383 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4512 "Page.c"
-}
-
-
-gboolean
-page_get_alt_pressed (Page* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 386 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 387 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->alt_pressed;
-#line 387 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 387 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4529 "Page.c"
-}
-
-
-gboolean
-page_get_shift_pressed (Page* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 390 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 391 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->shift_pressed;
-#line 391 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 391 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4546 "Page.c"
-}
-
-
-gboolean
-page_get_super_pressed (Page* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 394 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 395 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->super_pressed;
-#line 395 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 395 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4563 "Page.c"
-}
-
-
-static GVariant*
-_variant_new20 (gboolean value)
-{
-#line 401 "/home/jens/Source/shotwell/src/Page.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 4572 "Page.c"
-}
-
-
-void
-page_set_action_active (Page* self,
- const gchar* name,
- gboolean active)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 398 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 398 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 399 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_action (self, name);
-#line 399 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 399 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 399 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 4597 "Page.c"
- }
-#line 399 "/home/jens/Source/shotwell/src/Page.vala"
- action = _tmp1_;
-#line 400 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = action;
-#line 400 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != NULL) {
-#line 4605 "Page.c"
- GSimpleAction* _tmp3_;
- GVariant* _tmp4_;
-#line 401 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = action;
-#line 401 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _variant_new20 (active);
-#line 401 "/home/jens/Source/shotwell/src/Page.vala"
- g_simple_action_set_state (_tmp3_, _tmp4_);
-#line 401 "/home/jens/Source/shotwell/src/Page.vala"
- _g_variant_unref0 (_tmp4_);
-#line 4616 "Page.c"
- }
-#line 398 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (action);
-#line 4620 "Page.c"
-}
-
-
-static gboolean
-page_get_modifiers (Page* self,
- gboolean* ctrl,
- gboolean* alt,
- gboolean* shift,
- gboolean* super)
-{
- gboolean _vala_ctrl = FALSE;
- gboolean _vala_alt = FALSE;
- gboolean _vala_shift = FALSE;
- gboolean _vala_super = FALSE;
- gboolean result = FALSE;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GdkWindow* _tmp2_;
- gboolean _tmp3_;
- gint x = 0;
- gint y = 0;
- GdkModifierType mask = 0;
- AppWindow* _tmp4_;
- AppWindow* _tmp5_;
- GdkWindow* _tmp6_;
- GdkDisplay* _tmp7_;
- GdkDeviceManager* _tmp8_;
- GdkDevice* _tmp9_;
- gint _tmp10_ = 0;
- gint _tmp11_ = 0;
- GdkModifierType _tmp12_ = 0;
- GdkModifierType _tmp13_;
- GdkModifierType _tmp14_;
- GdkModifierType _tmp15_;
- GdkModifierType _tmp16_;
-#line 405 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 406 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = app_window_get_instance ();
-#line 406 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 406 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 406 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_ == NULL;
-#line 406 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 406 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 407 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_ctrl = FALSE;
-#line 408 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_alt = FALSE;
-#line 409 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_shift = FALSE;
-#line 410 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_super = FALSE;
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- if (ctrl) {
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- *ctrl = _vala_ctrl;
-#line 4684 "Page.c"
- }
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- if (alt) {
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- *alt = _vala_alt;
-#line 4690 "Page.c"
- }
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- if (shift) {
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- *shift = _vala_shift;
-#line 4696 "Page.c"
- }
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- if (super) {
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- *super = _vala_super;
-#line 4702 "Page.c"
- }
-#line 412 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4706 "Page.c"
- }
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = app_window_get_instance ();
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget));
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = gdk_display_get_default ();
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = gdk_display_get_device_manager (_tmp7_);
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = gdk_device_manager_get_client_pointer (_tmp8_);
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- gdk_window_get_device_position (_tmp6_, _tmp9_, &_tmp10_, &_tmp11_, &_tmp12_);
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- x = _tmp10_;
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- y = _tmp11_;
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- mask = _tmp12_;
-#line 417 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp5_);
-#line 420 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = mask;
-#line 420 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_ctrl = (_tmp13_ & GDK_CONTROL_MASK) != 0;
-#line 421 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = mask;
-#line 421 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_alt = (_tmp14_ & GDK_MOD1_MASK) != 0;
-#line 422 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = mask;
-#line 422 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_shift = (_tmp15_ & GDK_SHIFT_MASK) != 0;
-#line 423 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = mask;
-#line 423 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_super = (_tmp16_ & GDK_MOD4_MASK) != 0;
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- if (ctrl) {
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- *ctrl = _vala_ctrl;
-#line 4752 "Page.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- if (alt) {
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- *alt = _vala_alt;
-#line 4758 "Page.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- if (shift) {
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- *shift = _vala_shift;
-#line 4764 "Page.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- if (super) {
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- *super = _vala_super;
-#line 4770 "Page.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 4774 "Page.c"
-}
-
-
-static void
-page_update_modifiers (Page* self)
-{
- gboolean ctrl_currently_pressed = FALSE;
- gboolean alt_currently_pressed = FALSE;
- gboolean shift_currently_pressed = FALSE;
- gboolean super_currently_pressed = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_;
- gboolean _tmp11_ = FALSE;
- gboolean _tmp12_;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_;
- gboolean _tmp23_ = FALSE;
- gboolean _tmp24_;
- gboolean _tmp29_;
- gboolean _tmp30_;
- gboolean _tmp31_;
- gboolean _tmp32_;
-#line 428 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 431 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_);
-#line 431 "/home/jens/Source/shotwell/src/Page.vala"
- ctrl_currently_pressed = _tmp0_;
-#line 431 "/home/jens/Source/shotwell/src/Page.vala"
- alt_currently_pressed = _tmp1_;
-#line 431 "/home/jens/Source/shotwell/src/Page.vala"
- shift_currently_pressed = _tmp2_;
-#line 431 "/home/jens/Source/shotwell/src/Page.vala"
- super_currently_pressed = _tmp3_;
-#line 431 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp4_) {
-#line 433 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 4818 "Page.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->ctrl_pressed;
-#line 436 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp6_) {
-#line 4824 "Page.c"
- gboolean _tmp7_;
-#line 436 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = ctrl_currently_pressed;
-#line 436 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = !_tmp7_;
-#line 4830 "Page.c"
- } else {
-#line 436 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = FALSE;
-#line 4834 "Page.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_) {
-#line 437 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_ctrl_released (self, NULL);
-#line 4840 "Page.c"
- } else {
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_;
-#line 438 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->priv->ctrl_pressed;
-#line 438 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp9_) {
-#line 4848 "Page.c"
- gboolean _tmp10_;
-#line 438 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = ctrl_currently_pressed;
-#line 438 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _tmp10_;
-#line 4854 "Page.c"
- } else {
-#line 438 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = FALSE;
-#line 4858 "Page.c"
- }
-#line 438 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp8_) {
-#line 439 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_ctrl_pressed (self, NULL);
-#line 4864 "Page.c"
- }
- }
-#line 441 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->priv->alt_pressed;
-#line 441 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp12_) {
-#line 4871 "Page.c"
- gboolean _tmp13_;
-#line 441 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = alt_currently_pressed;
-#line 441 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = !_tmp13_;
-#line 4877 "Page.c"
- } else {
-#line 441 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = FALSE;
-#line 4881 "Page.c"
- }
-#line 441 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp11_) {
-#line 442 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_alt_released (self, NULL);
-#line 4887 "Page.c"
- } else {
- gboolean _tmp14_ = FALSE;
- gboolean _tmp15_;
-#line 443 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = self->priv->alt_pressed;
-#line 443 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp15_) {
-#line 4895 "Page.c"
- gboolean _tmp16_;
-#line 443 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = alt_currently_pressed;
-#line 443 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _tmp16_;
-#line 4901 "Page.c"
- } else {
-#line 443 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = FALSE;
-#line 4905 "Page.c"
- }
-#line 443 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp14_) {
-#line 444 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_alt_pressed (self, NULL);
-#line 4911 "Page.c"
- }
- }
-#line 446 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = self->priv->shift_pressed;
-#line 446 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp18_) {
-#line 4918 "Page.c"
- gboolean _tmp19_;
-#line 446 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = shift_currently_pressed;
-#line 446 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = !_tmp19_;
-#line 4924 "Page.c"
- } else {
-#line 446 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = FALSE;
-#line 4928 "Page.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp17_) {
-#line 447 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_shift_released (self, NULL);
-#line 4934 "Page.c"
- } else {
- gboolean _tmp20_ = FALSE;
- gboolean _tmp21_;
-#line 448 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = self->priv->shift_pressed;
-#line 448 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp21_) {
-#line 4942 "Page.c"
- gboolean _tmp22_;
-#line 448 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = shift_currently_pressed;
-#line 448 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = _tmp22_;
-#line 4948 "Page.c"
- } else {
-#line 448 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = FALSE;
-#line 4952 "Page.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp20_) {
-#line 449 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_shift_pressed (self, NULL);
-#line 4958 "Page.c"
- }
- }
-#line 451 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = self->priv->super_pressed;
-#line 451 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp24_) {
-#line 4965 "Page.c"
- gboolean _tmp25_;
-#line 451 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = super_currently_pressed;
-#line 451 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = !_tmp25_;
-#line 4971 "Page.c"
- } else {
-#line 451 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = FALSE;
-#line 4975 "Page.c"
- }
-#line 451 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp23_) {
-#line 452 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_super_released (self, NULL);
-#line 4981 "Page.c"
- } else {
- gboolean _tmp26_ = FALSE;
- gboolean _tmp27_;
-#line 453 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = self->priv->super_pressed;
-#line 453 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp27_) {
-#line 4989 "Page.c"
- gboolean _tmp28_;
-#line 453 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = super_currently_pressed;
-#line 453 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = _tmp28_;
-#line 4995 "Page.c"
- } else {
-#line 453 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = FALSE;
-#line 4999 "Page.c"
- }
-#line 453 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp26_) {
-#line 454 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_super_pressed (self, NULL);
-#line 5005 "Page.c"
- }
- }
-#line 456 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = ctrl_currently_pressed;
-#line 456 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->ctrl_pressed = _tmp29_;
-#line 457 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = alt_currently_pressed;
-#line 457 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->alt_pressed = _tmp30_;
-#line 458 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = shift_currently_pressed;
-#line 458 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->shift_pressed = _tmp31_;
-#line 459 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = super_currently_pressed;
-#line 459 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->super_pressed = _tmp32_;
-#line 5024 "Page.c"
-}
-
-
-PageWindow*
-page_get_page_window (Page* self)
-{
- PageWindow* result = NULL;
- GtkWidget* p = NULL;
- GtkContainer* _tmp0_;
- GtkContainer* _tmp1_;
- GtkWidget* _tmp2_;
-#line 462 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 463 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 463 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 463 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 463 "/home/jens/Source/shotwell/src/Page.vala"
- p = _tmp2_;
-#line 464 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 5048 "Page.c"
- GtkWidget* _tmp3_;
- GtkWidget* _tmp4_;
- GtkWidget* _tmp7_;
- GtkContainer* _tmp8_;
- GtkContainer* _tmp9_;
- GtkWidget* _tmp10_;
-#line 464 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = p;
-#line 464 "/home/jens/Source/shotwell/src/Page.vala"
- if (!(_tmp3_ != NULL)) {
-#line 464 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 5061 "Page.c"
- }
-#line 465 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = p;
-#line 465 "/home/jens/Source/shotwell/src/Page.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PAGE_WINDOW)) {
-#line 5067 "Page.c"
- GtkWidget* _tmp5_;
- PageWindow* _tmp6_;
-#line 466 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = p;
-#line 466 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PAGE_WINDOW, PageWindow));
-#line 466 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp6_;
-#line 466 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (p);
-#line 466 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 5080 "Page.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = p;
-#line 468 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = gtk_widget_get_parent (_tmp7_);
-#line 468 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp8_;
-#line 468 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 468 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (p);
-#line 468 "/home/jens/Source/shotwell/src/Page.vala"
- p = _tmp10_;
-#line 5094 "Page.c"
- }
-#line 471 "/home/jens/Source/shotwell/src/Page.vala"
- result = NULL;
-#line 471 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (p);
-#line 471 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 5102 "Page.c"
-}
-
-
-CommandManager*
-page_get_command_manager (Page* self)
-{
- CommandManager* result = NULL;
- CommandManager* _tmp0_;
-#line 474 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 475 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = app_window_get_command_manager ();
-#line 475 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 475 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 5119 "Page.c"
-}
-
-
-static void
-page_real_add_actions (Page* self,
- GActionMap* map)
-{
-#line 478 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 5129 "Page.c"
-}
-
-
-void
-page_add_actions (Page* self,
- GActionMap* map)
-{
-#line 478 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 478 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->add_actions (self, map);
-#line 5141 "Page.c"
-}
-
-
-static void
-page_real_remove_actions (Page* self,
- GActionMap* map)
-{
-#line 479 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 5151 "Page.c"
-}
-
-
-void
-page_remove_actions (Page* self,
- GActionMap* map)
-{
-#line 479 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 479 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->remove_actions (self, map);
-#line 5163 "Page.c"
-}
-
-
-static gboolean
-_variant_get21 (GVariant* value)
-{
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- return g_variant_get_boolean (value);
-#line 5172 "Page.c"
-}
-
-
-static GVariant*
-_variant_new22 (gboolean value)
-{
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 5181 "Page.c"
-}
-
-
-void
-page_on_action_toggle (Page* self,
- GAction* action,
- GVariant* value)
-{
- GVariant* new_state = NULL;
- GVariant* _tmp0_;
- GVariant* _tmp1_;
- gboolean _tmp2_;
- GVariant* _tmp3_;
- GVariant* _tmp4_;
-#line 481 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 481 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_IS_ACTION (action));
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_action_get_state (action);
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _variant_get21 (_tmp1_);
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _variant_new22 (!_tmp2_);
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp3_;
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- _g_variant_unref0 (_tmp1_);
-#line 482 "/home/jens/Source/shotwell/src/Page.vala"
- new_state = _tmp4_;
-#line 483 "/home/jens/Source/shotwell/src/Page.vala"
- g_action_change_state (action, new_state);
-#line 481 "/home/jens/Source/shotwell/src/Page.vala"
- _g_variant_unref0 (new_state);
-#line 5218 "Page.c"
-}
-
-
-void
-page_on_action_radio (Page* self,
- GAction* action,
- GVariant* value)
-{
-#line 486 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 486 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_IS_ACTION (action));
-#line 487 "/home/jens/Source/shotwell/src/Page.vala"
- g_action_change_state (action, value);
-#line 5233 "Page.c"
-}
-
-
-static void
-page_add_ui (Page* self)
-{
- GeeList* ui_filenames = NULL;
- GeeArrayList* _tmp0_;
- GeeList* _tmp1_;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 490 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 492 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 492 "/home/jens/Source/shotwell/src/Page.vala"
- ui_filenames = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 493 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = ui_filenames;
-#line 493 "/home/jens/Source/shotwell/src/Page.vala"
- page_init_collect_ui_filenames (self, _tmp1_);
-#line 494 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = ui_filenames;
-#line 494 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 494 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp3_;
-#line 494 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ == 0) {
-#line 5264 "Page.c"
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 495 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = page_get_page_name (self);
-#line 495 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _tmp5_;
-#line 495 "/home/jens/Source/shotwell/src/Page.vala"
- g_message ("Page.vala:495: No UI file specified for %s", _tmp6_);
-#line 495 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp6_);
-#line 5275 "Page.c"
- }
- {
- GeeList* _ui_filename_list = NULL;
- GeeList* _tmp7_;
- GeeList* _tmp8_;
- gint _ui_filename_size = 0;
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _ui_filename_index = 0;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = ui_filenames;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _ui_filename_list = _tmp8_;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _ui_filename_list;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _tmp10_;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _ui_filename_size = _tmp11_;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _ui_filename_index = -1;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 5304 "Page.c"
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gchar* ui_filename = NULL;
- GeeList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
- const gchar* _tmp18_;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _ui_filename_index;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _ui_filename_index = _tmp12_ + 1;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = _ui_filename_index;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _ui_filename_size;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- if (!(_tmp13_ < _tmp14_)) {
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 5325 "Page.c"
- }
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = _ui_filename_list;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = _ui_filename_index;
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- ui_filename = (gchar*) _tmp17_;
-#line 498 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = ui_filename;
-#line 498 "/home/jens/Source/shotwell/src/Page.vala"
- page_init_load_ui (self, _tmp18_);
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (ui_filename);
-#line 5341 "Page.c"
- }
-#line 497 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_ui_filename_list);
-#line 5345 "Page.c"
- }
-#line 490 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (ui_filenames);
-#line 5349 "Page.c"
-}
-
-
-void
-page_init_toolbar (Page* self,
- const gchar* path)
-{
- gchar* _tmp0_;
-#line 503 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 503 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (path != NULL);
-#line 504 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (path);
-#line 504 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->toolbar_path);
-#line 504 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->toolbar_path = _tmp0_;
-#line 5368 "Page.c"
-}
-
-
-static void
-_page_on_update_actions_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self)
-{
-#line 519 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_update_actions ((Page*) self);
-#line 5379 "Page.c"
-}
-
-
-static void
-_page_on_update_actions_view_collection_selection_group_altered (ViewCollection* _sender,
- gpointer self)
-{
-#line 520 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_update_actions ((Page*) self);
-#line 5389 "Page.c"
-}
-
-
-static void
-_page_on_update_actions_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self)
-{
-#line 521 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_update_actions ((Page*) self);
-#line 5400 "Page.c"
-}
-
-
-static void
-_page_on_update_actions_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 522 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_update_actions ((Page*) self);
-#line 5412 "Page.c"
-}
-
-
-static void
-page_attach_view_signals (Page* self)
-{
- gboolean _tmp0_;
- gint selected_count = 0;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- gint _tmp3_;
- gint count = 0;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- ViewCollection* _tmp15_;
- ViewCollection* _tmp16_;
- ViewCollection* _tmp17_;
- ViewCollection* _tmp18_;
-#line 508 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 509 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->are_actions_attached;
-#line 509 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 510 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 5448 "Page.c"
- }
-#line 513 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_view (self);
-#line 513 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 513 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = view_collection_get_selected_count (_tmp2_);
-#line 513 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp2_);
-#line 513 "/home/jens/Source/shotwell/src/Page.vala"
- selected_count = _tmp3_;
-#line 514 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (self);
-#line 514 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 514 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
-#line 514 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 514 "/home/jens/Source/shotwell/src/Page.vala"
- count = _tmp6_;
-#line 515 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = selected_count;
-#line 515 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = count;
-#line 515 "/home/jens/Source/shotwell/src/Page.vala"
- page_init_actions (self, _tmp7_, _tmp8_);
-#line 516 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = selected_count;
-#line 516 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = count;
-#line 516 "/home/jens/Source/shotwell/src/Page.vala"
- page_update_actions (self, _tmp9_, _tmp10_);
-#line 519 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = page_get_view (self);
-#line 519 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _tmp11_;
-#line 519 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp12_, "items-state-changed", (GCallback) _page_on_update_actions_view_collection_items_state_changed, self, 0);
-#line 519 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp12_);
-#line 520 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = page_get_view (self);
-#line 520 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _tmp13_;
-#line 520 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp14_, "selection-group-altered", (GCallback) _page_on_update_actions_view_collection_selection_group_altered, self, 0);
-#line 520 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp14_);
-#line 521 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = page_get_view (self);
-#line 521 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = _tmp15_;
-#line 521 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp16_, "items-visibility-changed", (GCallback) _page_on_update_actions_view_collection_items_visibility_changed, self, 0);
-#line 521 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp16_);
-#line 522 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = page_get_view (self);
-#line 522 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp17_;
-#line 522 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _page_on_update_actions_data_collection_contents_altered, self, 0);
-#line 522 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp18_);
-#line 524 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->are_actions_attached = TRUE;
-#line 5516 "Page.c"
-}
-
-
-static void
-page_detach_view_signals (Page* self)
-{
- gboolean _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- guint _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- guint _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- guint _tmp9_;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- guint _tmp12_;
-#line 528 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 529 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->are_actions_attached;
-#line 529 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp0_) {
-#line 530 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 5544 "Page.c"
- }
-#line 532 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_view (self);
-#line 532 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 532 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 532 "/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 532 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp2_);
-#line 533 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (self);
-#line 533 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 533 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("selection-group-altered", TYPE_VIEW_COLLECTION, &_tmp6_, NULL, FALSE);
-#line 533 "/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 533 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 534 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = page_get_view (self);
-#line 534 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _tmp7_;
-#line 534 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("items-visibility-changed", TYPE_VIEW_COLLECTION, &_tmp9_, NULL, FALSE);
-#line 534 "/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 534 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp8_);
-#line 535 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = page_get_view (self);
-#line 535 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _tmp10_;
-#line 535 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp12_, NULL, FALSE);
-#line 535 "/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 535 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp11_);
-#line 537 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->are_actions_attached = FALSE;
-#line 5588 "Page.c"
-}
-
-
-static void
-_page_on_update_actions_on_idle_one_shot_callback (gpointer self)
-{
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_update_actions_on_idle ((Page*) self);
-#line 5597 "Page.c"
-}
-
-
-static void
-page_on_update_actions (Page* self)
-{
- OneShotScheduler* _tmp0_;
- OneShotScheduler* _tmp6_;
-#line 540 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 541 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->update_actions_scheduler;
-#line 541 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ == NULL) {
-#line 5612 "Page.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- OneShotScheduler* _tmp5_;
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_page_name (self);
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = g_strdup_printf ("Update actions scheduler for %s", _tmp2_);
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp3_;
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = one_shot_scheduler_new (_tmp4_, _page_on_update_actions_on_idle_one_shot_callback, self);
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- _one_shot_scheduler_unref0 (self->priv->update_actions_scheduler);
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->update_actions_scheduler = _tmp5_;
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp4_);
-#line 542 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp2_);
-#line 5636 "Page.c"
- }
-#line 547 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->update_actions_scheduler;
-#line 547 "/home/jens/Source/shotwell/src/Page.vala"
- one_shot_scheduler_at_priority_idle (_tmp6_, G_PRIORITY_LOW);
-#line 5642 "Page.c"
-}
-
-
-static void
-page_on_update_actions_on_idle (Page* self)
-{
- gboolean _tmp0_;
- gboolean _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 550 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 551 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->is_destroyed;
-#line 551 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 552 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 5663 "Page.c"
- }
-#line 554 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->in_view;
-#line 554 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp1_) {
-#line 555 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 5671 "Page.c"
- }
-#line 557 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = page_get_view (self);
-#line 557 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_;
-#line 557 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (self);
-#line 557 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 557 "/home/jens/Source/shotwell/src/Page.vala"
- page_update_actions (self, view_collection_get_selected_count (_tmp3_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)));
-#line 557 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 557 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp3_);
-#line 5687 "Page.c"
-}
-
-
-static void
-page_init_load_ui (Page* self,
- const gchar* ui_filename)
-{
- gchar* ui_resource = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 560 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 560 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (ui_filename != NULL);
-#line 561 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = resources_get_ui (ui_filename);
-#line 561 "/home/jens/Source/shotwell/src/Page.vala"
- ui_resource = _tmp0_;
-#line 5706 "Page.c"
- {
- GtkBuilder* _tmp1_;
-#line 563 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->builder;
-#line 563 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_builder_add_from_resource (_tmp1_, ui_resource, &_inner_error_);
-#line 563 "/home/jens/Source/shotwell/src/Page.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5715 "Page.c"
- goto __catch266_g_error;
- }
-#line 564 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->menubar_injected = FALSE;
-#line 5720 "Page.c"
- }
- goto __finally266;
- __catch266_g_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- Application* _tmp6_;
- Application* _tmp7_;
-#line 562 "/home/jens/Source/shotwell/src/Page.vala"
- err = _inner_error_;
-#line 562 "/home/jens/Source/shotwell/src/Page.vala"
- _inner_error_ = NULL;
-#line 566 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = err;
-#line 566 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_->message;
-#line 566 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = g_strdup_printf ("Error loading UI resource %s: %s", ui_resource, _tmp3_);
-#line 566 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 566 "/home/jens/Source/shotwell/src/Page.vala"
- app_window_error_message (_tmp5_, NULL);
-#line 566 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp5_);
-#line 568 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = application_get_instance ();
-#line 568 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#line 568 "/home/jens/Source/shotwell/src/Page.vala"
- application_panic (_tmp7_);
-#line 568 "/home/jens/Source/shotwell/src/Page.vala"
- _application_unref0 (_tmp7_);
-#line 562 "/home/jens/Source/shotwell/src/Page.vala"
- _g_error_free0 (err);
-#line 5758 "Page.c"
- }
- __finally266:
-#line 562 "/home/jens/Source/shotwell/src/Page.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 562 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (ui_resource);
-#line 562 "/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 562 "/home/jens/Source/shotwell/src/Page.vala"
- g_clear_error (&_inner_error_);
-#line 562 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 5771 "Page.c"
- }
-#line 560 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (ui_resource);
-#line 5775 "Page.c"
-}
-
-
-static void
-page_real_init_collect_ui_filenames (Page* self,
- GeeList* ui_filenames)
-{
-#line 575 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 5785 "Page.c"
-}
-
-
-void
-page_init_collect_ui_filenames (Page* self,
- GeeList* ui_filenames)
-{
-#line 575 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 575 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->init_collect_ui_filenames (self, ui_filenames);
-#line 5797 "Page.c"
-}
-
-
-static InjectionGroup**
-page_real_init_collect_injection_groups (Page* self,
- int* result_length1)
-{
- InjectionGroup** result = NULL;
- InjectionGroup** _tmp0_;
- InjectionGroup** _tmp1_;
- gint _tmp1__length1;
-#line 581 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_new0 (InjectionGroup*, 0 + 1);
-#line 581 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 581 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1__length1 = 0;
-#line 581 "/home/jens/Source/shotwell/src/Page.vala"
- if (result_length1) {
-#line 581 "/home/jens/Source/shotwell/src/Page.vala"
- *result_length1 = _tmp1__length1;
-#line 5819 "Page.c"
- }
-#line 581 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 581 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 5825 "Page.c"
-}
-
-
-InjectionGroup**
-page_init_collect_injection_groups (Page* self,
- int* result_length1)
-{
-#line 580 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 580 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->init_collect_injection_groups (self, result_length1);
-#line 5837 "Page.c"
-}
-
-
-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 586 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 586 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->init_actions (self, selected_count, count);
-#line 5858 "Page.c"
-}
-
-
-static void
-page_real_update_actions (Page* self,
- gint selected_count,
- gint count)
-{
-}
-
-
-void
-page_update_actions (Page* self,
- gint selected_count,
- gint count)
-{
-#line 592 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 592 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->update_actions (self, selected_count, count);
-#line 5879 "Page.c"
-}
-
-
-static void
-_page_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self)
-{
-#line 607 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_drag_begin ((Page*) self, context);
-#line 5890 "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 608 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_drag_data_get ((Page*) self, context, selection_data, info, time_);
-#line 5904 "Page.c"
-}
-
-
-static void
-_page_on_drag_data_delete_gtk_widget_drag_data_delete (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self)
-{
-#line 609 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_drag_data_delete ((Page*) self, context);
-#line 5915 "Page.c"
-}
-
-
-static void
-_page_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self)
-{
-#line 610 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_drag_end ((Page*) self, context);
-#line 5926 "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 611 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 5940 "Page.c"
-}
-
-
-void
-page_enable_drag_source (Page* self,
- GdkDragAction actions,
- GtkTargetEntry* source_target_entries,
- int source_target_entries_length1)
-{
- gboolean _tmp0_;
- GtkWidget* _tmp1_;
- GtkWidget* _tmp2_;
- GtkWidget* _tmp3_;
- GtkWidget* _tmp4_;
- GtkWidget* _tmp5_;
- GtkWidget* _tmp6_;
- GtkWidget* _tmp7_;
-#line 597 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 598 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->dnd_enabled;
-#line 598 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 599 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 5966 "Page.c"
- }
-#line 601 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->event_source;
-#line 601 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp1_ != NULL, "event_source != null");
-#line 603 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->event_source;
-#line 603 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_drag_source_set (_tmp2_, GDK_BUTTON1_MASK, source_target_entries, source_target_entries_length1, actions);
-#line 607 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->event_source;
-#line 607 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp3_, "drag-begin", (GCallback) _page_on_drag_begin_gtk_widget_drag_begin, self, 0);
-#line 608 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->event_source;
-#line 608 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp4_, "drag-data-get", (GCallback) _page_on_drag_data_get_gtk_widget_drag_data_get, self, 0);
-#line 609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->event_source;
-#line 609 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp5_, "drag-data-delete", (GCallback) _page_on_drag_data_delete_gtk_widget_drag_data_delete, self, 0);
-#line 610 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->event_source;
-#line 610 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp6_, "drag-end", (GCallback) _page_on_drag_end_gtk_widget_drag_end, self, 0);
-#line 611 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->priv->event_source;
-#line 611 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp7_, "drag-failed", (GCallback) _page_on_drag_failed_gtk_widget_drag_failed, self, 0);
-#line 613 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->dnd_enabled = TRUE;
-#line 5998 "Page.c"
-}
-
-
-void
-page_disable_drag_source (Page* self)
-{
- gboolean _tmp0_;
- GtkWidget* _tmp1_;
- GtkWidget* _tmp2_;
- guint _tmp3_;
- GtkWidget* _tmp4_;
- guint _tmp5_;
- GtkWidget* _tmp6_;
- guint _tmp7_;
- GtkWidget* _tmp8_;
- guint _tmp9_;
- GtkWidget* _tmp10_;
- guint _tmp11_;
- GtkWidget* _tmp12_;
-#line 616 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 617 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->dnd_enabled;
-#line 617 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp0_) {
-#line 618 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 6026 "Page.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->event_source;
-#line 620 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp1_ != NULL, "event_source != null");
-#line 622 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->event_source;
-#line 622 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-begin", gtk_widget_get_type (), &_tmp3_, NULL, FALSE);
-#line 622 "/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 623 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->event_source;
-#line 623 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-data-get", gtk_widget_get_type (), &_tmp5_, NULL, FALSE);
-#line 623 "/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 624 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->event_source;
-#line 624 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-data-delete", gtk_widget_get_type (), &_tmp7_, NULL, FALSE);
-#line 624 "/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 625 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->priv->event_source;
-#line 625 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-end", gtk_widget_get_type (), &_tmp9_, NULL, FALSE);
-#line 625 "/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 626 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->priv->event_source;
-#line 626 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-failed", gtk_widget_get_type (), &_tmp11_, NULL, FALSE);
-#line 626 "/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 627 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->priv->event_source;
-#line 627 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_drag_source_unset (_tmp12_);
-#line 629 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->dnd_enabled = FALSE;
-#line 6068 "Page.c"
-}
-
-
-gboolean
-page_is_dnd_enabled (Page* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 632 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 633 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->dnd_enabled;
-#line 633 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 633 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6085 "Page.c"
-}
-
-
-static void
-page_on_drag_begin (Page* self,
- GdkDragContext* context)
-{
-#line 636 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 636 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 637 "/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", context);
-#line 6099 "Page.c"
-}
-
-
-static void
-page_on_drag_data_get (Page* self,
- GdkDragContext* context,
- GtkSelectionData* selection_data,
- guint info,
- guint time)
-{
-#line 640 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 640 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 640 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (selection_data != NULL);
-#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-data-get", context, selection_data, info, time);
-#line 6118 "Page.c"
-}
-
-
-static void
-page_on_drag_data_delete (Page* self,
- GdkDragContext* context)
-{
-#line 645 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 645 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 646 "/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", context);
-#line 6132 "Page.c"
-}
-
-
-static void
-page_on_drag_end (Page* self,
- GdkDragContext* context)
-{
-#line 649 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 649 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 650 "/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", context);
-#line 6146 "Page.c"
-}
-
-
-static gboolean
-page_real_source_drag_failed (Page* self,
- GdkDragContext* context,
- GtkDragResult drag_result)
-{
- gboolean result = FALSE;
-#line 657 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE);
-#line 658 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 658 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6162 "Page.c"
-}
-
-
-gboolean
-page_source_drag_failed (Page* self,
- GdkDragContext* context,
- GtkDragResult drag_result)
-{
-#line 657 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 657 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->source_drag_failed (self, context, drag_result);
-#line 6175 "Page.c"
-}
-
-
-static gboolean
-page_on_drag_failed (Page* self,
- GdkDragContext* context,
- GtkDragResult drag_result)
-{
- gboolean result = FALSE;
-#line 661 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 661 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE);
-#line 662 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_source_drag_failed (self, context, drag_result);
-#line 662 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6193 "Page.c"
-}
-
-
-gboolean
-page_get_event_source_pointer (Page* self,
- gint* x,
- gint* y,
- GdkModifierType* mask)
-{
- gint _vala_x = 0;
- gint _vala_y = 0;
- GdkModifierType _vala_mask = 0;
- gboolean result = FALSE;
- GtkWidget* _tmp0_;
- GtkWidget* _tmp1_;
- GdkWindow* _tmp2_;
- GdkDisplay* _tmp3_;
- GdkDeviceManager* _tmp4_;
- GdkDevice* _tmp5_;
- gint _tmp6_ = 0;
- gint _tmp7_ = 0;
- GdkModifierType _tmp8_ = 0;
- gboolean _tmp9_ = FALSE;
- GdkPoint _tmp10_;
- gint _tmp11_;
- gint _tmp14_;
- GdkPoint _tmp15_;
- gint _tmp16_;
- gint _tmp18_;
- GdkPoint _tmp19_;
- gint _tmp20_;
-#line 669 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 670 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->event_source;
-#line 670 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ == NULL) {
-#line 671 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_x = 0;
-#line 672 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_y = 0;
-#line 673 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_mask = 0;
-#line 675 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 675 "/home/jens/Source/shotwell/src/Page.vala"
- if (x) {
-#line 675 "/home/jens/Source/shotwell/src/Page.vala"
- *x = _vala_x;
-#line 6243 "Page.c"
- }
-#line 675 "/home/jens/Source/shotwell/src/Page.vala"
- if (y) {
-#line 675 "/home/jens/Source/shotwell/src/Page.vala"
- *y = _vala_y;
-#line 6249 "Page.c"
- }
-#line 675 "/home/jens/Source/shotwell/src/Page.vala"
- if (mask) {
-#line 675 "/home/jens/Source/shotwell/src/Page.vala"
- *mask = _vala_mask;
-#line 6255 "Page.c"
- }
-#line 675 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6259 "Page.c"
- }
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->event_source;
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = gtk_widget_get_window (_tmp1_);
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gdk_display_get_default ();
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = gdk_display_get_device_manager (_tmp3_);
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = gdk_device_manager_get_client_pointer (_tmp4_);
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- gdk_window_get_device_position (_tmp2_, _tmp5_, &_tmp6_, &_tmp7_, &_tmp8_);
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_x = _tmp6_;
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_y = _tmp7_;
-#line 678 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_mask = _tmp8_;
-#line 681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->priv->last_down;
-#line 681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _tmp10_.x;
-#line 681 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp11_ < 0) {
-#line 681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = TRUE;
-#line 6287 "Page.c"
- } else {
- GdkPoint _tmp12_;
- gint _tmp13_;
-#line 681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->priv->last_down;
-#line 681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = _tmp12_.y;
-#line 681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp13_ < 0;
-#line 6297 "Page.c"
- }
-#line 681 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp9_) {
-#line 682 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 682 "/home/jens/Source/shotwell/src/Page.vala"
- if (x) {
-#line 682 "/home/jens/Source/shotwell/src/Page.vala"
- *x = _vala_x;
-#line 6307 "Page.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/Page.vala"
- if (y) {
-#line 682 "/home/jens/Source/shotwell/src/Page.vala"
- *y = _vala_y;
-#line 6313 "Page.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/Page.vala"
- if (mask) {
-#line 682 "/home/jens/Source/shotwell/src/Page.vala"
- *mask = _vala_mask;
-#line 6319 "Page.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6323 "Page.c"
- }
-#line 688 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _vala_x;
-#line 688 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = self->priv->last_down;
-#line 688 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = _tmp15_.x;
-#line 688 "/home/jens/Source/shotwell/src/Page.vala"
- if (abs (_tmp14_ - _tmp16_) >= 0x7FFF) {
-#line 6333 "Page.c"
- gint _tmp17_;
-#line 689 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = _vala_x;
-#line 689 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_x = _tmp17_ + 0xFFFF;
-#line 6339 "Page.c"
- }
-#line 691 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _vala_y;
-#line 691 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = self->priv->last_down;
-#line 691 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = _tmp19_.y;
-#line 691 "/home/jens/Source/shotwell/src/Page.vala"
- if (abs (_tmp18_ - _tmp20_) >= 0x7FFF) {
-#line 6349 "Page.c"
- gint _tmp21_;
-#line 692 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = _vala_y;
-#line 692 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_y = _tmp21_ + 0xFFFF;
-#line 6355 "Page.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 694 "/home/jens/Source/shotwell/src/Page.vala"
- if (x) {
-#line 694 "/home/jens/Source/shotwell/src/Page.vala"
- *x = _vala_x;
-#line 6363 "Page.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/Page.vala"
- if (y) {
-#line 694 "/home/jens/Source/shotwell/src/Page.vala"
- *y = _vala_y;
-#line 6369 "Page.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/Page.vala"
- if (mask) {
-#line 694 "/home/jens/Source/shotwell/src/Page.vala"
- *mask = _vala_mask;
-#line 6375 "Page.c"
- }
-#line 694 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6379 "Page.c"
-}
-
-
-static gboolean
-page_real_on_left_click (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 697 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 698 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 698 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6394 "Page.c"
-}
-
-
-gboolean
-page_on_left_click (Page* self,
- GdkEventButton* event)
-{
-#line 697 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 697 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_left_click (self, event);
-#line 6406 "Page.c"
-}
-
-
-static gboolean
-page_real_on_middle_click (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 701 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 702 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 702 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6421 "Page.c"
-}
-
-
-gboolean
-page_on_middle_click (Page* self,
- GdkEventButton* event)
-{
-#line 701 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 701 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_middle_click (self, event);
-#line 6433 "Page.c"
-}
-
-
-static gboolean
-page_real_on_right_click (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 705 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 706 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 706 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6448 "Page.c"
-}
-
-
-gboolean
-page_on_right_click (Page* self,
- GdkEventButton* event)
-{
-#line 705 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 705 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_right_click (self, event);
-#line 6460 "Page.c"
-}
-
-
-static gboolean
-page_real_on_left_released (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 709 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 710 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 710 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6475 "Page.c"
-}
-
-
-gboolean
-page_on_left_released (Page* self,
- GdkEventButton* event)
-{
-#line 709 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 709 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_left_released (self, event);
-#line 6487 "Page.c"
-}
-
-
-static gboolean
-page_real_on_middle_released (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 713 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 714 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 714 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6502 "Page.c"
-}
-
-
-gboolean
-page_on_middle_released (Page* self,
- GdkEventButton* event)
-{
-#line 713 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 713 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_middle_released (self, event);
-#line 6514 "Page.c"
-}
-
-
-static gboolean
-page_real_on_right_released (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 717 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 718 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 718 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6529 "Page.c"
-}
-
-
-gboolean
-page_on_right_released (Page* self,
- GdkEventButton* event)
-{
-#line 717 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 717 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_right_released (self, event);
-#line 6541 "Page.c"
-}
-
-
-static gboolean
-page_on_button_pressed_internal (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- guint _tmp0_;
-#line 721 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 721 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 722 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = event->button;
-#line 722 "/home/jens/Source/shotwell/src/Page.vala"
- switch (_tmp0_) {
-#line 722 "/home/jens/Source/shotwell/src/Page.vala"
- case 1:
-#line 6561 "Page.c"
- {
- GtkWidget* _tmp1_;
- gdouble _tmp3_;
- gdouble _tmp4_;
-#line 724 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->event_source;
-#line 724 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ != NULL) {
-#line 6570 "Page.c"
- GtkWidget* _tmp2_;
-#line 725 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->event_source;
-#line 725 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_grab_focus (_tmp2_);
-#line 6576 "Page.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = event->x;
-#line 728 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_down.x = (gint) _tmp3_;
-#line 729 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = event->y;
-#line 729 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_down.y = (gint) _tmp4_;
-#line 731 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_left_click (self, event);
-#line 731 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6590 "Page.c"
- }
-#line 722 "/home/jens/Source/shotwell/src/Page.vala"
- case 2:
-#line 6594 "Page.c"
- {
-#line 734 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_middle_click (self, event);
-#line 734 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6600 "Page.c"
- }
-#line 722 "/home/jens/Source/shotwell/src/Page.vala"
- case 3:
-#line 6604 "Page.c"
- {
-#line 737 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_right_click (self, event);
-#line 737 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6610 "Page.c"
- }
- default:
- {
-#line 740 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 740 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6618 "Page.c"
- }
- }
-}
-
-
-static gboolean
-page_on_button_released_internal (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- guint _tmp0_;
-#line 744 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 744 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 745 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = event->button;
-#line 745 "/home/jens/Source/shotwell/src/Page.vala"
- switch (_tmp0_) {
-#line 745 "/home/jens/Source/shotwell/src/Page.vala"
- case 1:
-#line 6640 "Page.c"
- {
- GdkPoint _tmp1_ = {0};
-#line 748 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_.x = -1;
-#line 748 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_.y = -1;
-#line 748 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_down = _tmp1_;
-#line 750 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_left_released (self, event);
-#line 750 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6653 "Page.c"
- }
-#line 745 "/home/jens/Source/shotwell/src/Page.vala"
- case 2:
-#line 6657 "Page.c"
- {
-#line 753 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_middle_released (self, event);
-#line 753 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6663 "Page.c"
- }
-#line 745 "/home/jens/Source/shotwell/src/Page.vala"
- case 3:
-#line 6667 "Page.c"
- {
-#line 756 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_right_released (self, event);
-#line 756 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6673 "Page.c"
- }
- default:
- {
-#line 759 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 759 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6681 "Page.c"
- }
- }
-}
-
-
-static gboolean
-page_real_on_ctrl_pressed (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 764 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 764 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6696 "Page.c"
-}
-
-
-gboolean
-page_on_ctrl_pressed (Page* self,
- GdkEventKey* event)
-{
-#line 763 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 763 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_ctrl_pressed (self, event);
-#line 6708 "Page.c"
-}
-
-
-static gboolean
-page_real_on_ctrl_released (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 768 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 768 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6721 "Page.c"
-}
-
-
-gboolean
-page_on_ctrl_released (Page* self,
- GdkEventKey* event)
-{
-#line 767 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 767 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_ctrl_released (self, event);
-#line 6733 "Page.c"
-}
-
-
-static gboolean
-page_real_on_alt_pressed (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 772 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 772 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6746 "Page.c"
-}
-
-
-gboolean
-page_on_alt_pressed (Page* self,
- GdkEventKey* event)
-{
-#line 771 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 771 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_alt_pressed (self, event);
-#line 6758 "Page.c"
-}
-
-
-static gboolean
-page_real_on_alt_released (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 776 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 776 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6771 "Page.c"
-}
-
-
-gboolean
-page_on_alt_released (Page* self,
- GdkEventKey* event)
-{
-#line 775 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 775 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_alt_released (self, event);
-#line 6783 "Page.c"
-}
-
-
-static gboolean
-page_real_on_shift_pressed (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 780 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 780 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6796 "Page.c"
-}
-
-
-gboolean
-page_on_shift_pressed (Page* self,
- GdkEventKey* event)
-{
-#line 779 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 779 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_shift_pressed (self, event);
-#line 6808 "Page.c"
-}
-
-
-static gboolean
-page_real_on_shift_released (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 784 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 784 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6821 "Page.c"
-}
-
-
-gboolean
-page_on_shift_released (Page* self,
- GdkEventKey* event)
-{
-#line 783 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 783 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_shift_released (self, event);
-#line 6833 "Page.c"
-}
-
-
-static gboolean
-page_real_on_super_pressed (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 788 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 788 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6846 "Page.c"
-}
-
-
-gboolean
-page_on_super_pressed (Page* self,
- GdkEventKey* event)
-{
-#line 787 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 787 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_super_pressed (self, event);
-#line 6858 "Page.c"
-}
-
-
-static gboolean
-page_real_on_super_released (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 792 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 792 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6871 "Page.c"
-}
-
-
-gboolean
-page_on_super_released (Page* self,
- GdkEventKey* event)
-{
-#line 791 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 791 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_super_released (self, event);
-#line 6883 "Page.c"
-}
-
-
-static gboolean
-page_real_on_app_key_pressed (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 795 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 796 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 796 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6898 "Page.c"
-}
-
-
-gboolean
-page_on_app_key_pressed (Page* self,
- GdkEventKey* event)
-{
-#line 795 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 795 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_app_key_pressed (self, event);
-#line 6910 "Page.c"
-}
-
-
-static gboolean
-page_real_on_app_key_released (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
-#line 799 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 800 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 800 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 6925 "Page.c"
-}
-
-
-gboolean
-page_on_app_key_released (Page* self,
- GdkEventKey* event)
-{
-#line 799 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 799 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_app_key_released (self, event);
-#line 6937 "Page.c"
-}
-
-
-gboolean
-page_notify_app_key_pressed (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
- gboolean ctrl_currently_pressed = FALSE;
- gboolean alt_currently_pressed = FALSE;
- gboolean shift_currently_pressed = FALSE;
- gboolean super_currently_pressed = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- guint _tmp4_;
- const gchar* _tmp5_;
- const gchar* _tmp6_;
- GQuark _tmp8_ = 0U;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label0 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label1 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label2 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label3 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label4 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label5 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label6 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label7 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label8 = 0;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label9 = 0;
-#line 803 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 803 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 806 "/home/jens/Source/shotwell/src/Page.vala"
- page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_);
-#line 806 "/home/jens/Source/shotwell/src/Page.vala"
- ctrl_currently_pressed = _tmp0_;
-#line 806 "/home/jens/Source/shotwell/src/Page.vala"
- alt_currently_pressed = _tmp1_;
-#line 806 "/home/jens/Source/shotwell/src/Page.vala"
- shift_currently_pressed = _tmp2_;
-#line 806 "/home/jens/Source/shotwell/src/Page.vala"
- super_currently_pressed = _tmp3_;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = event->keyval;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = gdk_keyval_name (_tmp4_);
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _tmp5_;
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = (NULL == _tmp6_) ? 0 : g_quark_from_string (_tmp6_);
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- if ((_tmp8_ == ((0 != _tmp7_label0) ? _tmp7_label0 : (_tmp7_label0 = g_quark_from_static_string ("Control_L")))) || (_tmp8_ == ((0 != _tmp7_label1) ? _tmp7_label1 : (_tmp7_label1 = g_quark_from_static_string ("Control_R"))))) {
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 7004 "Page.c"
- default:
- {
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_;
-#line 812 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = ctrl_currently_pressed;
-#line 812 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp10_) {
-#line 812 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = TRUE;
-#line 7015 "Page.c"
- } else {
- gboolean _tmp11_;
-#line 812 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = self->priv->ctrl_pressed;
-#line 812 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp11_;
-#line 7022 "Page.c"
- }
-#line 812 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp9_) {
-#line 813 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 813 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7030 "Page.c"
- }
-#line 815 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->ctrl_pressed = TRUE;
-#line 817 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_ctrl_pressed (self, event);
-#line 817 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7038 "Page.c"
- }
- }
- } else if ((((_tmp8_ == ((0 != _tmp7_label2) ? _tmp7_label2 : (_tmp7_label2 = g_quark_from_static_string ("Meta_L")))) || (_tmp8_ == ((0 != _tmp7_label3) ? _tmp7_label3 : (_tmp7_label3 = g_quark_from_static_string ("Meta_R"))))) || (_tmp8_ == ((0 != _tmp7_label4) ? _tmp7_label4 : (_tmp7_label4 = g_quark_from_static_string ("Alt_L"))))) || (_tmp8_ == ((0 != _tmp7_label5) ? _tmp7_label5 : (_tmp7_label5 = g_quark_from_static_string ("Alt_R"))))) {
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 7044 "Page.c"
- default:
- {
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_;
-#line 823 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = alt_currently_pressed;
-#line 823 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp13_) {
-#line 823 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = TRUE;
-#line 7055 "Page.c"
- } else {
- gboolean _tmp14_;
-#line 823 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = self->priv->alt_pressed;
-#line 823 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _tmp14_;
-#line 7062 "Page.c"
- }
-#line 823 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp12_) {
-#line 824 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 824 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7070 "Page.c"
- }
-#line 826 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->alt_pressed = TRUE;
-#line 828 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_alt_pressed (self, event);
-#line 828 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7078 "Page.c"
- }
- }
- } else if ((_tmp8_ == ((0 != _tmp7_label6) ? _tmp7_label6 : (_tmp7_label6 = g_quark_from_static_string ("Shift_L")))) || (_tmp8_ == ((0 != _tmp7_label7) ? _tmp7_label7 : (_tmp7_label7 = g_quark_from_static_string ("Shift_R"))))) {
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 7084 "Page.c"
- default:
- {
- gboolean _tmp15_ = FALSE;
- gboolean _tmp16_;
-#line 832 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = shift_currently_pressed;
-#line 832 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp16_) {
-#line 832 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = TRUE;
-#line 7095 "Page.c"
- } else {
- gboolean _tmp17_;
-#line 832 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = self->priv->shift_pressed;
-#line 832 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = _tmp17_;
-#line 7102 "Page.c"
- }
-#line 832 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp15_) {
-#line 833 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 833 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7110 "Page.c"
- }
-#line 835 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->shift_pressed = TRUE;
-#line 837 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_shift_pressed (self, event);
-#line 837 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7118 "Page.c"
- }
- }
- } else if ((_tmp8_ == ((0 != _tmp7_label8) ? _tmp7_label8 : (_tmp7_label8 = g_quark_from_static_string ("Super_L")))) || (_tmp8_ == ((0 != _tmp7_label9) ? _tmp7_label9 : (_tmp7_label9 = g_quark_from_static_string ("Super_R"))))) {
-#line 809 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 7124 "Page.c"
- default:
- {
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_;
-#line 841 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = super_currently_pressed;
-#line 841 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp19_) {
-#line 841 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = TRUE;
-#line 7135 "Page.c"
- } else {
- gboolean _tmp20_;
-#line 841 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = self->priv->super_pressed;
-#line 841 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp20_;
-#line 7142 "Page.c"
- }
-#line 841 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp18_) {
-#line 842 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 842 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7150 "Page.c"
- }
-#line 844 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->super_pressed = TRUE;
-#line 846 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_super_pressed (self, event);
-#line 846 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7158 "Page.c"
- }
- }
- }
-#line 849 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_app_key_pressed (self, event);
-#line 849 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7166 "Page.c"
-}
-
-
-gboolean
-page_notify_app_key_released (Page* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
- gboolean ctrl_currently_pressed = FALSE;
- gboolean alt_currently_pressed = FALSE;
- gboolean shift_currently_pressed = FALSE;
- gboolean super_currently_pressed = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- guint _tmp4_;
- const gchar* _tmp5_;
- const gchar* _tmp6_;
- GQuark _tmp8_ = 0U;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label0 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label1 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label2 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label3 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label4 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label5 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label6 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label7 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label8 = 0;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp7_label9 = 0;
-#line 852 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 852 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 855 "/home/jens/Source/shotwell/src/Page.vala"
- page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_);
-#line 855 "/home/jens/Source/shotwell/src/Page.vala"
- ctrl_currently_pressed = _tmp0_;
-#line 855 "/home/jens/Source/shotwell/src/Page.vala"
- alt_currently_pressed = _tmp1_;
-#line 855 "/home/jens/Source/shotwell/src/Page.vala"
- shift_currently_pressed = _tmp2_;
-#line 855 "/home/jens/Source/shotwell/src/Page.vala"
- super_currently_pressed = _tmp3_;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = event->keyval;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = gdk_keyval_name (_tmp4_);
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _tmp5_;
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = (NULL == _tmp6_) ? 0 : g_quark_from_string (_tmp6_);
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- if ((_tmp8_ == ((0 != _tmp7_label0) ? _tmp7_label0 : (_tmp7_label0 = g_quark_from_static_string ("Control_L")))) || (_tmp8_ == ((0 != _tmp7_label1) ? _tmp7_label1 : (_tmp7_label1 = g_quark_from_static_string ("Control_R"))))) {
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 7233 "Page.c"
- default:
- {
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_;
-#line 861 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = ctrl_currently_pressed;
-#line 861 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp10_) {
-#line 861 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = TRUE;
-#line 7244 "Page.c"
- } else {
- gboolean _tmp11_;
-#line 861 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = self->priv->ctrl_pressed;
-#line 861 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = !_tmp11_;
-#line 7251 "Page.c"
- }
-#line 861 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp9_) {
-#line 862 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 862 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7259 "Page.c"
- }
-#line 864 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->ctrl_pressed = FALSE;
-#line 866 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_ctrl_released (self, event);
-#line 866 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7267 "Page.c"
- }
- }
- } else if ((((_tmp8_ == ((0 != _tmp7_label2) ? _tmp7_label2 : (_tmp7_label2 = g_quark_from_static_string ("Meta_L")))) || (_tmp8_ == ((0 != _tmp7_label3) ? _tmp7_label3 : (_tmp7_label3 = g_quark_from_static_string ("Meta_R"))))) || (_tmp8_ == ((0 != _tmp7_label4) ? _tmp7_label4 : (_tmp7_label4 = g_quark_from_static_string ("Alt_L"))))) || (_tmp8_ == ((0 != _tmp7_label5) ? _tmp7_label5 : (_tmp7_label5 = g_quark_from_static_string ("Alt_R"))))) {
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 7273 "Page.c"
- default:
- {
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_;
-#line 872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = alt_currently_pressed;
-#line 872 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp13_) {
-#line 872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = TRUE;
-#line 7284 "Page.c"
- } else {
- gboolean _tmp14_;
-#line 872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = self->priv->alt_pressed;
-#line 872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = !_tmp14_;
-#line 7291 "Page.c"
- }
-#line 872 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp12_) {
-#line 873 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 873 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7299 "Page.c"
- }
-#line 875 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->alt_pressed = FALSE;
-#line 877 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_alt_released (self, event);
-#line 877 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7307 "Page.c"
- }
- }
- } else if ((_tmp8_ == ((0 != _tmp7_label6) ? _tmp7_label6 : (_tmp7_label6 = g_quark_from_static_string ("Shift_L")))) || (_tmp8_ == ((0 != _tmp7_label7) ? _tmp7_label7 : (_tmp7_label7 = g_quark_from_static_string ("Shift_R"))))) {
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 7313 "Page.c"
- default:
- {
- gboolean _tmp15_ = FALSE;
- gboolean _tmp16_;
-#line 881 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = shift_currently_pressed;
-#line 881 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp16_) {
-#line 881 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = TRUE;
-#line 7324 "Page.c"
- } else {
- gboolean _tmp17_;
-#line 881 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = self->priv->shift_pressed;
-#line 881 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = !_tmp17_;
-#line 7331 "Page.c"
- }
-#line 881 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp15_) {
-#line 882 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 882 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7339 "Page.c"
- }
-#line 884 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->shift_pressed = FALSE;
-#line 886 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_shift_released (self, event);
-#line 886 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7347 "Page.c"
- }
- }
- } else if ((_tmp8_ == ((0 != _tmp7_label8) ? _tmp7_label8 : (_tmp7_label8 = g_quark_from_static_string ("Super_L")))) || (_tmp8_ == ((0 != _tmp7_label9) ? _tmp7_label9 : (_tmp7_label9 = g_quark_from_static_string ("Super_R"))))) {
-#line 858 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 7353 "Page.c"
- default:
- {
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_;
-#line 890 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = super_currently_pressed;
-#line 890 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp19_) {
-#line 890 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = TRUE;
-#line 7364 "Page.c"
- } else {
- gboolean _tmp20_;
-#line 890 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = self->priv->super_pressed;
-#line 890 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = !_tmp20_;
-#line 7371 "Page.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp18_) {
-#line 891 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 891 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7379 "Page.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->super_pressed = FALSE;
-#line 895 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_super_released (self, event);
-#line 895 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7387 "Page.c"
- }
- }
- }
-#line 898 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_app_key_released (self, event);
-#line 898 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7395 "Page.c"
-}
-
-
-gboolean
-page_notify_app_focus_in (Page* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
-#line 901 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 901 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 902 "/home/jens/Source/shotwell/src/Page.vala"
- page_update_modifiers (self);
-#line 904 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 904 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7414 "Page.c"
-}
-
-
-gboolean
-page_notify_app_focus_out (Page* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
-#line 907 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 907 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 908 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 908 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7431 "Page.c"
-}
-
-
-static void
-page_real_on_move (Page* self,
- GdkRectangle* rect)
-{
-#line 911 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (rect != NULL);
-#line 7441 "Page.c"
-}
-
-
-void
-page_on_move (Page* self,
- GdkRectangle* rect)
-{
-#line 911 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 911 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->on_move (self, rect);
-#line 7453 "Page.c"
-}
-
-
-static void
-page_real_on_move_start (Page* self,
- GdkRectangle* rect)
-{
-#line 914 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (rect != NULL);
-#line 7463 "Page.c"
-}
-
-
-void
-page_on_move_start (Page* self,
- GdkRectangle* rect)
-{
-#line 914 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 914 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->on_move_start (self, rect);
-#line 7475 "Page.c"
-}
-
-
-static void
-page_real_on_move_finished (Page* self,
- GdkRectangle* rect)
-{
-#line 917 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (rect != NULL);
-#line 7485 "Page.c"
-}
-
-
-void
-page_on_move_finished (Page* self,
- GdkRectangle* rect)
-{
-#line 917 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 917 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->on_move_finished (self, rect);
-#line 7497 "Page.c"
-}
-
-
-static void
-page_real_on_resize (Page* self,
- GdkRectangle* rect)
-{
-#line 920 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (rect != NULL);
-#line 7507 "Page.c"
-}
-
-
-void
-page_on_resize (Page* self,
- GdkRectangle* rect)
-{
-#line 920 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 920 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->on_resize (self, rect);
-#line 7519 "Page.c"
-}
-
-
-static void
-page_real_on_resize_start (Page* self,
- GdkRectangle* rect)
-{
-#line 923 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (rect != NULL);
-#line 7529 "Page.c"
-}
-
-
-void
-page_on_resize_start (Page* self,
- GdkRectangle* rect)
-{
-#line 923 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 923 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->on_resize_start (self, rect);
-#line 7541 "Page.c"
-}
-
-
-static void
-page_real_on_resize_finished (Page* self,
- GdkRectangle* rect)
-{
-#line 926 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (rect != NULL);
-#line 7551 "Page.c"
-}
-
-
-void
-page_on_resize_finished (Page* self,
- GdkRectangle* rect)
-{
-#line 926 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 926 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->on_resize_finished (self, rect);
-#line 7563 "Page.c"
-}
-
-
-static gboolean
-page_real_on_configure (Page* self,
- GdkEventConfigure* event,
- GdkRectangle* rect)
-{
- gboolean result = FALSE;
-#line 929 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 929 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (rect != NULL, FALSE);
-#line 930 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 930 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7581 "Page.c"
-}
-
-
-gboolean
-page_on_configure (Page* self,
- GdkEventConfigure* event,
- GdkRectangle* rect)
-{
-#line 929 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 929 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_configure (self, event, rect);
-#line 7594 "Page.c"
-}
-
-
-static gboolean
-_page_check_configure_halted_gsource_func (gpointer self)
-{
- gboolean result;
- result = page_check_configure_halted ((Page*) self);
-#line 954 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7605 "Page.c"
-}
-
-
-gboolean
-page_notify_configure_event (Page* self,
- GdkEventConfigure* event)
-{
- gboolean result = FALSE;
- GdkRectangle rect = {0};
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gulong _tmp4_;
- gboolean _tmp25_ = FALSE;
- GdkRectangle _tmp26_;
- gint _tmp27_;
- GdkRectangle _tmp28_;
- gint _tmp29_;
- gboolean _tmp35_ = FALSE;
- GdkRectangle _tmp36_;
- gint _tmp37_;
- GdkRectangle _tmp38_;
- gint _tmp39_;
- GdkRectangle _tmp45_;
- GdkRectangle _tmp46_;
-#line 933 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 933 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 934 "/home/jens/Source/shotwell/src/Page.vala"
- memset (&rect, 0, sizeof (GdkRectangle));
-#line 935 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = event->x;
-#line 935 "/home/jens/Source/shotwell/src/Page.vala"
- rect.x = _tmp0_;
-#line 936 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = event->y;
-#line 936 "/home/jens/Source/shotwell/src/Page.vala"
- rect.y = _tmp1_;
-#line 937 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = event->width;
-#line 937 "/home/jens/Source/shotwell/src/Page.vala"
- rect.width = _tmp2_;
-#line 938 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = event->height;
-#line 938 "/home/jens/Source/shotwell/src/Page.vala"
- rect.height = _tmp3_;
-#line 941 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->last_configure_ms;
-#line 941 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ == ((gulong) 0)) {
-#line 7658 "Page.c"
- gboolean _tmp5_ = FALSE;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- gboolean _tmp15_ = FALSE;
- GdkRectangle _tmp16_;
- gint _tmp17_;
- GdkRectangle _tmp18_;
- gint _tmp19_;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->last_position;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_.x;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = rect;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp8_.x;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp7_ != _tmp9_) {
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = TRUE;
-#line 7681 "Page.c"
- } else {
- GdkRectangle _tmp10_;
- gint _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->priv->last_position;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _tmp10_.y;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = rect;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = _tmp12_.y;
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp11_ != _tmp13_;
-#line 7697 "Page.c"
- }
-#line 942 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_) {
-#line 7701 "Page.c"
- GdkRectangle _tmp14_;
-#line 943 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = rect;
-#line 943 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_move_start (self, &_tmp14_);
-#line 944 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->report_move_finished = TRUE;
-#line 7709 "Page.c"
- }
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = self->priv->last_position;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = _tmp16_.width;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = rect;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = _tmp18_.width;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp17_ != _tmp19_) {
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = TRUE;
-#line 7723 "Page.c"
- } else {
- GdkRectangle _tmp20_;
- gint _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = self->priv->last_position;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = _tmp20_.height;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = rect;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = _tmp22_.height;
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = _tmp21_ != _tmp23_;
-#line 7739 "Page.c"
- }
-#line 947 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp15_) {
-#line 7743 "Page.c"
- GdkRectangle _tmp24_;
-#line 948 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = rect;
-#line 948 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_resize_start (self, &_tmp24_);
-#line 949 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->report_resize_finished = TRUE;
-#line 7751 "Page.c"
- }
-#line 954 "/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 7755 "Page.c"
- }
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = self->priv->last_position;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = _tmp26_.x;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = rect;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = _tmp28_.x;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp27_ != _tmp29_) {
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = TRUE;
-#line 7769 "Page.c"
- } else {
- GdkRectangle _tmp30_;
- gint _tmp31_;
- GdkRectangle _tmp32_;
- gint _tmp33_;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = self->priv->last_position;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = _tmp30_.y;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = rect;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = _tmp32_.y;
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = _tmp31_ != _tmp33_;
-#line 7785 "Page.c"
- }
-#line 957 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp25_) {
-#line 7789 "Page.c"
- GdkRectangle _tmp34_;
-#line 958 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = rect;
-#line 958 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_move (self, &_tmp34_);
-#line 7795 "Page.c"
- }
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = self->priv->last_position;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = _tmp36_.width;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = rect;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = _tmp38_.width;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp37_ != _tmp39_) {
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = TRUE;
-#line 7809 "Page.c"
- } else {
- GdkRectangle _tmp40_;
- gint _tmp41_;
- GdkRectangle _tmp42_;
- gint _tmp43_;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp40_ = self->priv->last_position;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = _tmp40_.height;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = rect;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = _tmp42_.height;
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = _tmp41_ != _tmp43_;
-#line 7825 "Page.c"
- }
-#line 960 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp35_) {
-#line 7829 "Page.c"
- GdkRectangle _tmp44_;
-#line 961 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp44_ = rect;
-#line 961 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_resize (self, &_tmp44_);
-#line 7835 "Page.c"
- }
-#line 963 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp45_ = rect;
-#line 963 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_position = _tmp45_;
-#line 964 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_configure_ms = now_ms ();
-#line 966 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp46_ = rect;
-#line 966 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_configure (self, event, &_tmp46_);
-#line 966 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7849 "Page.c"
-}
-
-
-static gboolean
-page_check_configure_halted (Page* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- gulong _tmp1_;
- GtkAllocation allocation = {0};
- GtkAllocation _tmp2_ = {0};
- gboolean _tmp3_;
- gboolean _tmp6_;
-#line 969 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 970 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->is_destroyed;
-#line 970 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 971 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 971 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7873 "Page.c"
- }
-#line 973 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->last_configure_ms;
-#line 973 "/home/jens/Source/shotwell/src/Page.vala"
- if ((now_ms () - _tmp1_) < ((gulong) PAGE_CONSIDER_CONFIGURE_HALTED_MSEC)) {
-#line 974 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 974 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7883 "Page.c"
- }
-#line 977 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp2_);
-#line 977 "/home/jens/Source/shotwell/src/Page.vala"
- allocation = _tmp2_;
-#line 979 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->report_move_finished;
-#line 979 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 7893 "Page.c"
- GtkAllocation _tmp4_;
- GdkRectangle _tmp5_;
-#line 980 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = allocation;
-#line 980 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = (GdkRectangle) _tmp4_;
-#line 980 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_move_finished (self, &_tmp5_);
-#line 7902 "Page.c"
- }
-#line 982 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->report_resize_finished;
-#line 982 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp6_) {
-#line 7908 "Page.c"
- GtkAllocation _tmp7_;
- GdkRectangle _tmp8_;
-#line 983 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = allocation;
-#line 983 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = (GdkRectangle) _tmp7_;
-#line 983 "/home/jens/Source/shotwell/src/Page.vala"
- page_on_resize_finished (self, &_tmp8_);
-#line 7917 "Page.c"
- }
-#line 985 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_configure_ms = (gulong) 0;
-#line 986 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->report_move_finished = FALSE;
-#line 987 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->report_resize_finished = FALSE;
-#line 989 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 989 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7929 "Page.c"
-}
-
-
-static gboolean
-page_real_on_motion (Page* self,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask)
-{
- gboolean result = FALSE;
-#line 992 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 993 "/home/jens/Source/shotwell/src/Page.vala"
- page_check_cursor_hiding (self);
-#line 995 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 995 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7949 "Page.c"
-}
-
-
-gboolean
-page_on_motion (Page* self,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask)
-{
-#line 992 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 992 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_motion (self, event, x, y, mask);
-#line 7964 "Page.c"
-}
-
-
-static gboolean
-page_real_on_leave_notify_event (Page* self)
-{
- gboolean result = FALSE;
-#line 999 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 999 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 7976 "Page.c"
-}
-
-
-gboolean
-page_on_leave_notify_event (Page* self)
-{
-#line 998 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 998 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_leave_notify_event (self);
-#line 7987 "Page.c"
-}
-
-
-static gboolean
-page_on_motion_internal (Page* self,
- GdkEventMotion* event)
-{
- gboolean result = FALSE;
- gint x = 0;
- gint y = 0;
- GdkModifierType mask = 0;
- gint16 _tmp0_;
- gint _tmp7_;
- gint _tmp8_;
- GdkModifierType _tmp9_;
-#line 1002 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1002 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1005 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = event->is_hint;
-#line 1005 "/home/jens/Source/shotwell/src/Page.vala"
- if (((gint) _tmp0_) == 1) {
-#line 8011 "Page.c"
- gint _tmp1_ = 0;
- gint _tmp2_ = 0;
- GdkModifierType _tmp3_ = 0;
-#line 1006 "/home/jens/Source/shotwell/src/Page.vala"
- page_get_event_source_pointer (self, &_tmp1_, &_tmp2_, &_tmp3_);
-#line 1006 "/home/jens/Source/shotwell/src/Page.vala"
- x = _tmp1_;
-#line 1006 "/home/jens/Source/shotwell/src/Page.vala"
- y = _tmp2_;
-#line 1006 "/home/jens/Source/shotwell/src/Page.vala"
- mask = _tmp3_;
-#line 8023 "Page.c"
- } else {
- gdouble _tmp4_;
- gdouble _tmp5_;
- GdkModifierType _tmp6_;
-#line 1008 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = event->x;
-#line 1008 "/home/jens/Source/shotwell/src/Page.vala"
- x = (gint) _tmp4_;
-#line 1009 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = event->y;
-#line 1009 "/home/jens/Source/shotwell/src/Page.vala"
- y = (gint) _tmp5_;
-#line 1010 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = event->state;
-#line 1010 "/home/jens/Source/shotwell/src/Page.vala"
- mask = _tmp6_;
-#line 8040 "Page.c"
- }
-#line 1013 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = x;
-#line 1013 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = y;
-#line 1013 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = mask;
-#line 1013 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_motion (self, event, _tmp7_, _tmp8_, _tmp9_);
-#line 1013 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8052 "Page.c"
-}
-
-
-static gboolean
-page_on_mousewheel_internal (Page* self,
- GdkEventScroll* event)
-{
- gboolean result = FALSE;
- GdkScrollDirection _tmp0_;
-#line 1016 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1016 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1017 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = event->direction;
-#line 1017 "/home/jens/Source/shotwell/src/Page.vala"
- switch (_tmp0_) {
-#line 1017 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_SCROLL_UP:
-#line 8072 "Page.c"
- {
-#line 1019 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_mousewheel_up (self, event);
-#line 1019 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8078 "Page.c"
- }
-#line 1017 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_SCROLL_DOWN:
-#line 8082 "Page.c"
- {
-#line 1022 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_mousewheel_down (self, event);
-#line 1022 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8088 "Page.c"
- }
-#line 1017 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_SCROLL_LEFT:
-#line 8092 "Page.c"
- {
-#line 1025 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_mousewheel_left (self, event);
-#line 1025 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8098 "Page.c"
- }
-#line 1017 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_SCROLL_RIGHT:
-#line 8102 "Page.c"
- {
-#line 1028 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_mousewheel_right (self, event);
-#line 1028 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8108 "Page.c"
- }
-#line 1017 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_SCROLL_SMOOTH:
-#line 8112 "Page.c"
- {
- {
- gdouble dx = 0.0;
- gdouble dy = 0.0;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- gdouble _tmp3_;
-#line 1033 "/home/jens/Source/shotwell/src/Page.vala"
- gdk_event_get_scroll_deltas ((GdkEvent*) event, &_tmp1_, &_tmp2_);
-#line 1033 "/home/jens/Source/shotwell/src/Page.vala"
- dx = _tmp1_;
-#line 1033 "/home/jens/Source/shotwell/src/Page.vala"
- dy = _tmp2_;
-#line 1035 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = dy;
-#line 1035 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_ < ((gdouble) 0)) {
-#line 1036 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_mousewheel_up (self, event);
-#line 1036 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8134 "Page.c"
- } else {
- gdouble _tmp4_;
-#line 1037 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = dy;
-#line 1037 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ > ((gdouble) 0)) {
-#line 1038 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_mousewheel_down (self, event);
-#line 1038 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8145 "Page.c"
- } else {
- gdouble _tmp5_;
-#line 1039 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = dx;
-#line 1039 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_ < ((gdouble) 0)) {
-#line 1040 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_mousewheel_left (self, event);
-#line 1040 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8156 "Page.c"
- } else {
- gdouble _tmp6_;
-#line 1041 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = dx;
-#line 1041 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp6_ > ((gdouble) 0)) {
-#line 1042 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_on_mousewheel_right (self, event);
-#line 1042 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8167 "Page.c"
- } else {
-#line 1044 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1044 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8173 "Page.c"
- }
- }
- }
- }
- }
- }
- default:
- {
-#line 1048 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1048 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8186 "Page.c"
- }
- }
-}
-
-
-static gboolean
-page_real_on_mousewheel_up (Page* self,
- GdkEventScroll* event)
-{
- gboolean result = FALSE;
-#line 1052 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1053 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1053 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8203 "Page.c"
-}
-
-
-gboolean
-page_on_mousewheel_up (Page* self,
- GdkEventScroll* event)
-{
-#line 1052 "/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"
- return PAGE_GET_CLASS (self)->on_mousewheel_up (self, event);
-#line 8215 "Page.c"
-}
-
-
-static gboolean
-page_real_on_mousewheel_down (Page* self,
- GdkEventScroll* event)
-{
- gboolean result = FALSE;
-#line 1056 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1057 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1057 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8230 "Page.c"
-}
-
-
-gboolean
-page_on_mousewheel_down (Page* self,
- GdkEventScroll* event)
-{
-#line 1056 "/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"
- return PAGE_GET_CLASS (self)->on_mousewheel_down (self, event);
-#line 8242 "Page.c"
-}
-
-
-static gboolean
-page_real_on_mousewheel_left (Page* self,
- GdkEventScroll* event)
-{
- gboolean result = FALSE;
-#line 1060 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1061 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1061 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8257 "Page.c"
-}
-
-
-gboolean
-page_on_mousewheel_left (Page* self,
- GdkEventScroll* event)
-{
-#line 1060 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1060 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_mousewheel_left (self, event);
-#line 8269 "Page.c"
-}
-
-
-static gboolean
-page_real_on_mousewheel_right (Page* self,
- GdkEventScroll* event)
-{
- gboolean result = FALSE;
-#line 1064 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1065 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1065 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8284 "Page.c"
-}
-
-
-gboolean
-page_on_mousewheel_right (Page* self,
- GdkEventScroll* event)
-{
-#line 1064 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1064 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_mousewheel_right (self, event);
-#line 8296 "Page.c"
-}
-
-
-static gboolean
-page_real_on_context_keypress (Page* self)
-{
- gboolean result = FALSE;
-#line 1069 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1069 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8308 "Page.c"
-}
-
-
-gboolean
-page_on_context_keypress (Page* self)
-{
-#line 1068 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1068 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_context_keypress (self);
-#line 8319 "Page.c"
-}
-
-
-static gboolean
-page_real_on_context_buttonpress (Page* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 1072 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1073 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1073 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8334 "Page.c"
-}
-
-
-gboolean
-page_on_context_buttonpress (Page* self,
- GdkEventButton* event)
-{
-#line 1072 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1072 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_context_buttonpress (self, event);
-#line 8346 "Page.c"
-}
-
-
-static gboolean
-page_real_on_context_invoked (Page* self)
-{
- gboolean result = FALSE;
-#line 1077 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1077 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8358 "Page.c"
-}
-
-
-gboolean
-page_on_context_invoked (Page* self)
-{
-#line 1076 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1076 "/home/jens/Source/shotwell/src/Page.vala"
- return PAGE_GET_CLASS (self)->on_context_invoked (self);
-#line 8369 "Page.c"
-}
-
-
-gboolean
-page_popup_context_menu (Page* self,
- GtkMenu* context_menu,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 1080 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1080 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail ((context_menu == NULL) || GTK_IS_MENU (context_menu), FALSE);
-#line 1083 "/home/jens/Source/shotwell/src/Page.vala"
- if (context_menu == NULL) {
-#line 1083 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = TRUE;
-#line 8388 "Page.c"
- } else {
-#line 1083 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = !page_on_context_invoked (self);
-#line 8392 "Page.c"
- }
-#line 1083 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 1084 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1084 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8400 "Page.c"
- }
-#line 1086 "/home/jens/Source/shotwell/src/Page.vala"
- if (event == NULL) {
-#line 1087 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_menu_popup (context_menu, NULL, NULL, NULL, NULL, (guint) 0, gtk_get_current_event_time ());
-#line 8406 "Page.c"
- } else {
- guint _tmp1_;
- guint32 _tmp2_;
-#line 1089 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = event->button;
-#line 1089 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = event->time;
-#line 1089 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_menu_popup (context_menu, NULL, NULL, NULL, NULL, _tmp1_, _tmp2_);
-#line 8416 "Page.c"
- }
-#line 1091 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1091 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8422 "Page.c"
-}
-
-
-void
-page_on_event_source_realize (Page* self)
-{
- GtkWidget* _tmp0_;
- GdkWindow* _tmp1_;
- GtkWidget* _tmp2_;
- GdkWindow* _tmp3_;
- GdkCursor* _tmp4_;
- GdkWindow* parent_window = NULL;
- GtkWidget* _tmp8_;
- GdkWindow* _tmp9_;
- GdkWindow* _tmp10_;
- GdkWindow* _tmp19_;
-#line 1094 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1095 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->event_source;
-#line 1095 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = gtk_widget_get_window (_tmp0_);
-#line 1095 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp1_ != NULL, "event_source.get_window() != null");
-#line 1097 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->event_source;
-#line 1097 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gtk_widget_get_window (_tmp2_);
-#line 1097 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = gdk_window_get_cursor (_tmp3_);
-#line 1097 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ != NULL) {
-#line 8455 "Page.c"
- GtkWidget* _tmp5_;
- GdkWindow* _tmp6_;
- GdkCursor* _tmp7_;
-#line 1098 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->event_source;
-#line 1098 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = gtk_widget_get_window (_tmp5_);
-#line 1098 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = gdk_window_get_cursor (_tmp6_);
-#line 1098 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_cursor = gdk_cursor_get_cursor_type (_tmp7_);
-#line 1099 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 8469 "Page.c"
- }
-#line 1103 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->priv->event_source;
-#line 1103 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = gtk_widget_get_window (_tmp8_);
-#line 1103 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 1103 "/home/jens/Source/shotwell/src/Page.vala"
- parent_window = _tmp10_;
-#line 8479 "Page.c"
- {
- gboolean _tmp11_ = FALSE;
-#line 1104 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = TRUE;
-#line 1104 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 8486 "Page.c"
- GdkWindow* _tmp16_;
- GdkWindow* _tmp17_;
- GdkWindow* _tmp18_;
-#line 1104 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp11_) {
-#line 8492 "Page.c"
- gboolean _tmp12_ = FALSE;
- GdkWindow* _tmp13_;
-#line 1106 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = parent_window;
-#line 1106 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp13_ != NULL) {
-#line 8499 "Page.c"
- GdkWindow* _tmp14_;
- GdkCursor* _tmp15_;
-#line 1106 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = parent_window;
-#line 1106 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = gdk_window_get_cursor (_tmp14_);
-#line 1106 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _tmp15_ == NULL;
-#line 8508 "Page.c"
- } else {
-#line 1106 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = FALSE;
-#line 8512 "Page.c"
- }
-#line 1106 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp12_) {
-#line 1106 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 8518 "Page.c"
- }
- }
-#line 1104 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = FALSE;
-#line 1105 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = parent_window;
-#line 1105 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = gdk_window_get_parent (_tmp16_);
-#line 1105 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 1105 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (parent_window);
-#line 1105 "/home/jens/Source/shotwell/src/Page.vala"
- parent_window = _tmp18_;
-#line 8533 "Page.c"
- }
- }
-#line 1108 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = parent_window;
-#line 1108 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp19_ != NULL) {
-#line 8540 "Page.c"
- GdkWindow* _tmp20_;
- GdkCursor* _tmp21_;
-#line 1109 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = parent_window;
-#line 1109 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = gdk_window_get_cursor (_tmp20_);
-#line 1109 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_cursor = gdk_cursor_get_cursor_type (_tmp21_);
-#line 8549 "Page.c"
- }
-#line 1094 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (parent_window);
-#line 8553 "Page.c"
-}
-
-
-void
-page_set_cursor_hide_time (Page* self,
- gint hide_time)
-{
-#line 1112 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1113 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hide_msec = hide_time;
-#line 8565 "Page.c"
-}
-
-
-void
-page_start_cursor_hiding (Page* self)
-{
-#line 1116 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1117 "/home/jens/Source/shotwell/src/Page.vala"
- page_check_cursor_hiding (self);
-#line 8576 "Page.c"
-}
-
-
-void
-page_stop_cursor_hiding (Page* self)
-{
- guint _tmp0_;
-#line 1120 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1121 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->last_timeout_id;
-#line 1121 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ != ((guint) 0)) {
-#line 8590 "Page.c"
- guint _tmp1_;
-#line 1122 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->last_timeout_id;
-#line 1122 "/home/jens/Source/shotwell/src/Page.vala"
- g_source_remove (_tmp1_);
-#line 8596 "Page.c"
- }
-}
-
-
-void
-page_suspend_cursor_hiding (Page* self)
-{
- gint _tmp0_;
- guint _tmp1_;
-#line 1125 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1126 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->cursor_hide_msec;
-#line 1126 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hide_time_cached = _tmp0_;
-#line 1128 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->last_timeout_id;
-#line 1128 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ != ((guint) 0)) {
-#line 8616 "Page.c"
- guint _tmp2_;
-#line 1129 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->last_timeout_id;
-#line 1129 "/home/jens/Source/shotwell/src/Page.vala"
- g_source_remove (_tmp2_);
-#line 8622 "Page.c"
- }
-#line 1131 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hide_msec = 0;
-#line 8626 "Page.c"
-}
-
-
-void
-page_restore_cursor_hiding (Page* self)
-{
- gint _tmp0_;
-#line 1134 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1135 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->cursor_hide_time_cached;
-#line 1135 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hide_msec = _tmp0_;
-#line 1136 "/home/jens/Source/shotwell/src/Page.vala"
- page_check_cursor_hiding (self);
-#line 8642 "Page.c"
-}
-
-
-static void
-page_real_set_page_cursor (Page* self,
- GdkCursorType cursor_type)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 1141 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_cursor = cursor_type;
-#line 1143 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->cursor_hidden;
-#line 1143 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp1_) {
-#line 8658 "Page.c"
- GtkWidget* _tmp2_;
-#line 1143 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->event_source;
-#line 1143 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = _tmp2_ != NULL;
-#line 8664 "Page.c"
- } else {
-#line 1143 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = FALSE;
-#line 8668 "Page.c"
- }
-#line 1143 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 8672 "Page.c"
- GdkDisplay* display = NULL;
- GtkWidget* _tmp3_;
- GdkWindow* _tmp4_;
- GdkDisplay* _tmp5_;
- GdkDisplay* _tmp6_;
- GtkWidget* _tmp7_;
- GdkWindow* _tmp8_;
- GdkDisplay* _tmp9_;
- GdkCursor* _tmp10_;
- GdkCursor* _tmp11_;
-#line 1144 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->event_source;
-#line 1144 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = gtk_widget_get_window (_tmp3_);
-#line 1144 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = gdk_window_get_display (_tmp4_);
-#line 1144 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
-#line 1144 "/home/jens/Source/shotwell/src/Page.vala"
- display = _tmp6_;
-#line 1145 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->priv->event_source;
-#line 1145 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = gtk_widget_get_window (_tmp7_);
-#line 1145 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = display;
-#line 1145 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = gdk_cursor_new_for_display (_tmp9_, cursor_type);
-#line 1145 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _tmp10_;
-#line 1145 "/home/jens/Source/shotwell/src/Page.vala"
- gdk_window_set_cursor (_tmp8_, _tmp11_);
-#line 1145 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp11_);
-#line 1143 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (display);
-#line 8709 "Page.c"
- }
-}
-
-
-void
-page_set_page_cursor (Page* self,
- GdkCursorType cursor_type)
-{
-#line 1140 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1140 "/home/jens/Source/shotwell/src/Page.vala"
- PAGE_GET_CLASS (self)->set_page_cursor (self, cursor_type);
-#line 8722 "Page.c"
-}
-
-
-static gboolean
-_page_on_hide_cursor_gsource_func (gpointer self)
-{
- gboolean result;
- result = page_on_hide_cursor ((Page*) self);
-#line 1158 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8733 "Page.c"
-}
-
-
-static void
-page_check_cursor_hiding (Page* self)
-{
- gboolean _tmp0_;
- gint _tmp2_;
-#line 1149 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1150 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->cursor_hidden;
-#line 1150 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 8748 "Page.c"
- GdkCursorType _tmp1_;
-#line 1151 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hidden = FALSE;
-#line 1152 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->last_cursor;
-#line 1152 "/home/jens/Source/shotwell/src/Page.vala"
- page_set_page_cursor (self, _tmp1_);
-#line 8756 "Page.c"
- }
-#line 1155 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->cursor_hide_msec;
-#line 1155 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != 0) {
-#line 8762 "Page.c"
- guint _tmp3_;
- gint _tmp5_;
-#line 1156 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->last_timeout_id;
-#line 1156 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_ != ((guint) 0)) {
-#line 8769 "Page.c"
- guint _tmp4_;
-#line 1157 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->last_timeout_id;
-#line 1157 "/home/jens/Source/shotwell/src/Page.vala"
- g_source_remove (_tmp4_);
-#line 8775 "Page.c"
- }
-#line 1158 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->cursor_hide_msec;
-#line 1158 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_timeout_id = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) _tmp5_, _page_on_hide_cursor_gsource_func, g_object_ref (self), g_object_unref);
-#line 8781 "Page.c"
- }
-}
-
-
-static gboolean
-page_on_hide_cursor (Page* self)
-{
- gboolean result = FALSE;
- GtkWidget* _tmp0_;
-#line 1162 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), FALSE);
-#line 1163 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hidden = TRUE;
-#line 1165 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->event_source;
-#line 1165 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ != NULL) {
-#line 8799 "Page.c"
- GdkDisplay* display = NULL;
- GtkWidget* _tmp1_;
- GdkWindow* _tmp2_;
- GdkDisplay* _tmp3_;
- GdkDisplay* _tmp4_;
- GtkWidget* _tmp5_;
- GdkWindow* _tmp6_;
- GdkDisplay* _tmp7_;
- GdkCursor* _tmp8_;
- GdkCursor* _tmp9_;
-#line 1166 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->event_source;
-#line 1166 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = gtk_widget_get_window (_tmp1_);
-#line 1166 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gdk_window_get_display (_tmp2_);
-#line 1166 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 1166 "/home/jens/Source/shotwell/src/Page.vala"
- display = _tmp4_;
-#line 1167 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->event_source;
-#line 1167 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = gtk_widget_get_window (_tmp5_);
-#line 1167 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = display;
-#line 1167 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = gdk_cursor_new_for_display (_tmp7_, GDK_BLANK_CURSOR);
-#line 1167 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp8_;
-#line 1167 "/home/jens/Source/shotwell/src/Page.vala"
- gdk_window_set_cursor (_tmp6_, _tmp9_);
-#line 1167 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp9_);
-#line 1165 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (display);
-#line 8836 "Page.c"
- }
-#line 1171 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_timeout_id = (guint) 0;
-#line 1173 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1173 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 8844 "Page.c"
-}
-
-
-void
-page_update_menu_item_label (Page* self,
- const gchar* id,
- const gchar* new_label)
-{
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
-#line 1176 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (self));
-#line 1176 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (id != NULL);
-#line 1176 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (new_label != NULL);
-#line 1178 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = app_window_get_instance ();
-#line 1178 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1178 "/home/jens/Source/shotwell/src/Page.vala"
- app_window_update_menu_item_label (_tmp1_, id, new_label);
-#line 1178 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 8869 "Page.c"
-}
-
-
-GMenuModel*
-page_find_extension_point (Page* self,
- GMenuModel* model,
- const gchar* extension_point)
-{
- GMenuModel* result = NULL;
- gint items = 0;
- GMenuModel* section = NULL;
-#line 1181 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (self), NULL);
-#line 1181 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (G_IS_MENU_MODEL (model), NULL);
-#line 1181 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (extension_point != NULL, NULL);
-#line 1183 "/home/jens/Source/shotwell/src/Page.vala"
- items = g_menu_model_get_n_items (model);
-#line 1184 "/home/jens/Source/shotwell/src/Page.vala"
- section = NULL;
-#line 8891 "Page.c"
- {
- gint i = 0;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- i = 0;
-#line 8896 "Page.c"
- {
- gboolean _tmp0_ = FALSE;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = TRUE;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 8903 "Page.c"
- gboolean _tmp2_ = FALSE;
- gint _tmp3_;
- gint _tmp4_;
- gchar* name = NULL;
- gint _tmp6_;
- const gchar* _tmp7_;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp0_) {
-#line 8912 "Page.c"
- gint _tmp1_;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = i;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- i = _tmp1_ + 1;
-#line 8918 "Page.c"
- }
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = FALSE;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = i;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = items;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_ < _tmp4_) {
-#line 8928 "Page.c"
- GMenuModel* _tmp5_;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = section;
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp5_ == NULL;
-#line 8934 "Page.c"
- } else {
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = FALSE;
-#line 8938 "Page.c"
- }
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp2_) {
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 8944 "Page.c"
- }
-#line 1187 "/home/jens/Source/shotwell/src/Page.vala"
- name = NULL;
-#line 1188 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = i;
-#line 1188 "/home/jens/Source/shotwell/src/Page.vala"
- g_menu_model_get_item_attribute (model, _tmp6_, "id", "s", &name, NULL);
-#line 1189 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = name;
-#line 1189 "/home/jens/Source/shotwell/src/Page.vala"
- if (g_strcmp0 (_tmp7_, extension_point) == 0) {
-#line 8956 "Page.c"
- gint _tmp8_;
- GMenuModel* _tmp9_;
-#line 1190 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = i;
-#line 1190 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = g_menu_model_get_item_link (model, _tmp8_, G_MENU_LINK_SECTION);
-#line 1190 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (section);
-#line 1190 "/home/jens/Source/shotwell/src/Page.vala"
- section = _tmp9_;
-#line 8967 "Page.c"
- } else {
- GMenuModel* subsection = NULL;
- gint _tmp10_;
- GMenuModel* _tmp11_;
- GMenuModel* _tmp12_;
- gint sub_items = 0;
- GMenuModel* _tmp13_;
-#line 1192 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = i;
-#line 1192 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = g_menu_model_get_item_link (model, _tmp10_, G_MENU_LINK_SECTION);
-#line 1192 "/home/jens/Source/shotwell/src/Page.vala"
- subsection = _tmp11_;
-#line 1194 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = subsection;
-#line 1194 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp12_ == NULL) {
-#line 1195 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (subsection);
-#line 1195 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (name);
-#line 1195 "/home/jens/Source/shotwell/src/Page.vala"
- continue;
-#line 8991 "Page.c"
- }
-#line 1198 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = subsection;
-#line 1198 "/home/jens/Source/shotwell/src/Page.vala"
- sub_items = g_menu_model_get_n_items (_tmp13_);
-#line 8997 "Page.c"
- {
- gint j = 0;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- j = 0;
-#line 9002 "Page.c"
- {
- gboolean _tmp14_ = FALSE;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = TRUE;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 9009 "Page.c"
- gboolean _tmp16_ = FALSE;
- gint _tmp17_;
- gint _tmp18_;
- GMenuModel* submenu = NULL;
- GMenuModel* _tmp20_;
- gint _tmp21_;
- GMenuModel* _tmp22_;
- GMenuModel* _tmp23_;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp14_) {
-#line 9020 "Page.c"
- gint _tmp15_;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = j;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- j = _tmp15_ + 1;
-#line 9026 "Page.c"
- }
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = FALSE;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = j;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = sub_items;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp17_ < _tmp18_) {
-#line 9036 "Page.c"
- GMenuModel* _tmp19_;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = section;
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = _tmp19_ == NULL;
-#line 9042 "Page.c"
- } else {
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = FALSE;
-#line 9046 "Page.c"
- }
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp16_) {
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 9052 "Page.c"
- }
-#line 1200 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = subsection;
-#line 1200 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = j;
-#line 1200 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = g_menu_model_get_item_link (_tmp20_, _tmp21_, G_MENU_LINK_SUBMENU);
-#line 1200 "/home/jens/Source/shotwell/src/Page.vala"
- submenu = _tmp22_;
-#line 1202 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = submenu;
-#line 1202 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp23_ != NULL) {
-#line 9066 "Page.c"
- GMenuModel* _tmp24_;
- GMenuModel* _tmp25_;
-#line 1203 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = submenu;
-#line 1203 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = page_find_extension_point (self, _tmp24_, extension_point);
-#line 1203 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (section);
-#line 1203 "/home/jens/Source/shotwell/src/Page.vala"
- section = _tmp25_;
-#line 9077 "Page.c"
- }
-#line 1199 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (submenu);
-#line 9081 "Page.c"
- }
- }
- }
-#line 1189 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (subsection);
-#line 9087 "Page.c"
- }
-#line 1186 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (name);
-#line 9091 "Page.c"
- }
- }
- }
-#line 1210 "/home/jens/Source/shotwell/src/Page.vala"
- result = section;
-#line 1210 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9099 "Page.c"
-}
-
-
-static void
-page_class_init (PageClass * klass)
-{
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- page_parent_class = g_type_class_peek_parent (klass);
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- g_type_class_add_private (klass, sizeof (PagePrivate));
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((GtkWidgetClass *) klass)->destroy = (void (*) (GtkWidget *)) page_real_destroy;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->set_page_name = (void (*) (Page *, const gchar*)) page_real_set_page_name;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->set_container = (void (*) (Page *, GtkWindow*)) page_real_set_container;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->clear_container = (void (*) (Page *)) page_real_clear_container;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->get_toolbar = (GtkToolbar* (*) (Page *)) page_real_get_toolbar;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->get_page_context_menu = (GtkMenu* (*) (Page *)) page_real_get_page_context_menu;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->switching_from = (void (*) (Page *)) page_real_switching_from;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) page_real_switched_to;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->ready = (void (*) (Page *)) page_real_ready;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->switching_to_fullscreen = (void (*) (Page *, FullscreenWindow*)) page_real_switching_to_fullscreen;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->returning_from_fullscreen = (void (*) (Page *, FullscreenWindow*)) page_real_returning_from_fullscreen;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) page_real_add_actions;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) page_real_remove_actions;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) page_real_init_collect_ui_filenames;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) page_real_init_collect_injection_groups;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) page_real_init_actions;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) page_real_update_actions;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->source_drag_failed = (gboolean (*) (Page *, GdkDragContext*, GtkDragResult)) page_real_source_drag_failed;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_left_click = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_left_click;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_middle_click = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_middle_click;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_right_click = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_right_click;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_left_released = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_left_released;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_middle_released = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_middle_released;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_right_released = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_right_released;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_ctrl_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_ctrl_pressed;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_ctrl_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_ctrl_released;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_alt_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_alt_pressed;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_alt_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_alt_released;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_shift_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_shift_pressed;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_shift_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_shift_released;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_super_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_super_pressed;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_super_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_super_released;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_app_key_pressed;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_app_key_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_app_key_released;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_move = (void (*) (Page *, GdkRectangle*)) page_real_on_move;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_move_start = (void (*) (Page *, GdkRectangle*)) page_real_on_move_start;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_move_finished = (void (*) (Page *, GdkRectangle*)) page_real_on_move_finished;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_resize = (void (*) (Page *, GdkRectangle*)) page_real_on_resize;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_resize_start = (void (*) (Page *, GdkRectangle*)) page_real_on_resize_start;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_resize_finished = (void (*) (Page *, GdkRectangle*)) page_real_on_resize_finished;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_configure = (gboolean (*) (Page *, GdkEventConfigure*, GdkRectangle*)) page_real_on_configure;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_motion = (gboolean (*) (Page *, GdkEventMotion*, gint, gint, GdkModifierType)) page_real_on_motion;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_leave_notify_event = (gboolean (*) (Page *)) page_real_on_leave_notify_event;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_mousewheel_up = (gboolean (*) (Page *, GdkEventScroll*)) page_real_on_mousewheel_up;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_mousewheel_down = (gboolean (*) (Page *, GdkEventScroll*)) page_real_on_mousewheel_down;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_mousewheel_left = (gboolean (*) (Page *, GdkEventScroll*)) page_real_on_mousewheel_left;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_mousewheel_right = (gboolean (*) (Page *, GdkEventScroll*)) page_real_on_mousewheel_right;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_context_keypress = (gboolean (*) (Page *)) page_real_on_context_keypress;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_context_buttonpress = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_context_buttonpress;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_context_invoked = (gboolean (*) (Page *)) page_real_on_context_invoked;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->set_page_cursor = (void (*) (Page *, GdkCursorType)) page_real_set_page_cursor;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- G_OBJECT_CLASS (klass)->finalize = page_finalize;
-#line 9214 "Page.c"
-}
-
-
-static void
-page_instance_init (Page * self)
-{
- GtkBuilder* _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv = PAGE_GET_PRIVATE (self);
-#line 61 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = gtk_builder_new ();
-#line 61 "/home/jens/Source/shotwell/src/Page.vala"
- self->builder = _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/Page.vala"
- self->in_view = FALSE;
-#line 66 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->view = NULL;
-#line 67 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->container = NULL;
-#line 69 "/home/jens/Source/shotwell/src/Page.vala"
- memset (&self->priv->last_position, 0, sizeof (GdkRectangle));
-#line 70 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->event_source = NULL;
-#line 71 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->dnd_enabled = FALSE;
-#line 72 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_configure_ms = (gulong) 0;
-#line 73 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->report_move_finished = FALSE;
-#line 74 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->report_resize_finished = FALSE;
-#line 75 "/home/jens/Source/shotwell/src/Page.vala"
- memset (&self->priv->last_down, 0, sizeof (GdkPoint));
-#line 76 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->is_destroyed = FALSE;
-#line 77 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->ctrl_pressed = FALSE;
-#line 78 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->alt_pressed = FALSE;
-#line 79 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->shift_pressed = FALSE;
-#line 80 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->super_pressed = FALSE;
-#line 81 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_cursor = GDK_LEFT_PTR;
-#line 82 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hidden = FALSE;
-#line 83 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hide_msec = 0;
-#line 84 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_timeout_id = (guint) 0;
-#line 85 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->cursor_hide_time_cached = 0;
-#line 86 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->are_actions_attached = FALSE;
-#line 87 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->update_actions_scheduler = NULL;
-#line 205 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->menubar_injected = FALSE;
-#line 9274 "Page.c"
-}
-
-
-static void
-page_finalize (GObject * obj)
-{
- Page * self;
-#line 58 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE, Page);
-#line 61 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->builder);
-#line 62 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->toolbar);
-#line 65 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->page_name);
-#line 66 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (self->priv->view);
-#line 67 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->container);
-#line 68 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->toolbar_path);
-#line 70 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->event_source);
-#line 87 "/home/jens/Source/shotwell/src/Page.vala"
- _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 9302 "Page.c"
-}
-
-
-GType
-page_get_type (void)
-{
- static volatile gsize page_type_id__volatile = 0;
- if (g_once_init_enter (&page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Page), 0, (GInstanceInitFunc) page_instance_init, NULL };
- GType page_type_id;
- page_type_id = g_type_register_static (gtk_scrolled_window_get_type (), "Page", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&page_type_id__volatile, page_type_id);
- }
- return page_type_id__volatile;
-}
-
-
-GType
-checkerboard_page_activator_get_type (void)
-{
- static volatile gsize checkerboard_page_activator_type_id__volatile = 0;
- if (g_once_init_enter (&checkerboard_page_activator_type_id__volatile)) {
- static const GEnumValue values[] = {{CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, "CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD", "keyboard"}, {CHECKERBOARD_PAGE_ACTIVATOR_MOUSE, "CHECKERBOARD_PAGE_ACTIVATOR_MOUSE", "mouse"}, {0, NULL, NULL}};
- GType checkerboard_page_activator_type_id;
- checkerboard_page_activator_type_id = g_enum_register_static ("CheckerboardPageActivator", values);
- g_once_init_leave (&checkerboard_page_activator_type_id__volatile, checkerboard_page_activator_type_id);
- }
- return checkerboard_page_activator_type_id__volatile;
-}
-
-
-static void
-_checkerboard_page_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender,
- GeeCollection* hidden,
- gpointer self)
-{
-#line 1272 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_on_items_hidden ((CheckerboardPage*) self, hidden);
-#line 9341 "Page.c"
-}
-
-
-static void
-_checkerboard_page_on_contents_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 1273 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_on_contents_altered ((CheckerboardPage*) self, added, removed);
-#line 9353 "Page.c"
-}
-
-
-static void
-_checkerboard_page_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self)
-{
-#line 1274 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_on_items_state_changed ((CheckerboardPage*) self, changed);
-#line 9364 "Page.c"
-}
-
-
-static void
-_checkerboard_page_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self)
-{
-#line 1275 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_on_items_visibility_changed ((CheckerboardPage*) self, changed);
-#line 9375 "Page.c"
-}
-
-
-CheckerboardPage*
-checkerboard_page_construct (GType object_type,
- const gchar* page_name)
-{
- CheckerboardPage * self = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- CheckerboardLayout* _tmp2_;
- CheckerboardLayout* _tmp3_;
- CheckerboardLayout* _tmp4_;
- GtkViewport* _tmp5_;
- GtkViewport* _tmp6_;
- GtkViewport* _tmp7_;
- CheckerboardLayout* _tmp8_;
- CheckerboardLayout* _tmp9_;
- GtkAdjustment* _tmp10_;
- GtkAdjustment* _tmp11_;
- GtkViewport* _tmp12_;
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- ViewCollection* _tmp15_;
- ViewCollection* _tmp16_;
- ViewCollection* _tmp17_;
- ViewCollection* _tmp18_;
- ViewCollection* _tmp19_;
- ViewCollection* _tmp20_;
-#line 1249 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (page_name != NULL, NULL);
-#line 1250 "/home/jens/Source/shotwell/src/Page.vala"
- self = (CheckerboardPage*) page_construct (object_type, page_name);
-#line 1252 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1252 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1252 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = checkerboard_layout_new (_tmp1_);
-#line 1252 "/home/jens/Source/shotwell/src/Page.vala"
- g_object_ref_sink (_tmp2_);
-#line 1252 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->layout);
-#line 1252 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->layout = _tmp2_;
-#line 1252 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp1_);
-#line 1253 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->layout;
-#line 1253 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_name (_tmp3_, page_name);
-#line 1255 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->layout;
-#line 1255 "/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 (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 1257 "/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 1258 "/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 1260 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->viewport;
-#line 1260 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_container_get_type (), GtkContainer), (guint) 0);
-#line 1261 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->viewport;
-#line 1261 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_viewport_set_shadow_type (_tmp6_, GTK_SHADOW_NONE);
-#line 1263 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->priv->viewport;
-#line 1263 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->priv->layout;
-#line 1263 "/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 1267 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->priv->layout;
-#line 1267 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = gtk_scrolled_window_get_hadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow));
-#line 1267 "/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 1267 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_adjustments (_tmp9_, _tmp10_, _tmp11_);
-#line 1269 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->priv->viewport;
-#line 1269 "/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 (_tmp12_, gtk_widget_get_type (), GtkWidget));
-#line 1272 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1272 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _tmp13_;
-#line 1272 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp14_, "items-hidden", (GCallback) _checkerboard_page_on_items_hidden_view_collection_items_hidden, self, 0);
-#line 1272 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp14_);
-#line 1273 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1273 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = _tmp15_;
-#line 1273 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _checkerboard_page_on_contents_altered_data_collection_contents_altered, self, 0);
-#line 1273 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp16_);
-#line 1274 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1274 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp17_;
-#line 1274 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp18_, "items-state-changed", (GCallback) _checkerboard_page_on_items_state_changed_view_collection_items_state_changed, self, 0);
-#line 1274 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp18_);
-#line 1275 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1275 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = _tmp19_;
-#line 1275 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp20_, "items-visibility-changed", (GCallback) _checkerboard_page_on_items_visibility_changed_view_collection_items_visibility_changed, self, 0);
-#line 1275 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp20_);
-#line 1278 "/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 1249 "/home/jens/Source/shotwell/src/Page.vala"
- return self;
-#line 9497 "Page.c"
-}
-
-
-void
-checkerboard_page_init_item_context_menu (CheckerboardPage* self,
- const gchar* path)
-{
- gchar* _tmp0_;
-#line 1281 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1281 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (path != NULL);
-#line 1282 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (path);
-#line 1282 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->item_context_menu_path);
-#line 1282 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->item_context_menu_path = _tmp0_;
-#line 9516 "Page.c"
-}
-
-
-void
-checkerboard_page_init_page_context_menu (CheckerboardPage* self,
- const gchar* path)
-{
- gchar* _tmp0_;
-#line 1285 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1285 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (path != NULL);
-#line 1286 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (path);
-#line 1286 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->page_context_menu_path);
-#line 1286 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->page_context_menu_path = _tmp0_;
-#line 9535 "Page.c"
-}
-
-
-GtkMenu*
-checkerboard_page_get_context_menu (CheckerboardPage* self)
-{
- GtkMenu* result = NULL;
- GtkMenu* _tmp0_ = NULL;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- gboolean _tmp3_;
-#line 1289 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL);
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = view_collection_get_selected_count (_tmp2_) != 0;
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp2_);
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 9559 "Page.c"
- GtkMenu* _tmp4_;
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = checkerboard_page_get_item_context_menu (self);
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = _tmp4_;
-#line 9567 "Page.c"
- } else {
- GtkMenu* _tmp5_;
-#line 1292 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = page_get_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1292 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp0_);
-#line 1292 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = _tmp5_;
-#line 9576 "Page.c"
- }
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 1291 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9582 "Page.c"
-}
-
-
-static GtkMenu*
-checkerboard_page_real_get_item_context_menu (CheckerboardPage* self)
-{
- GtkMenu* result = NULL;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp8_;
- GtkMenu* _tmp9_;
-#line 1297 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->item_context_menu;
-#line 1297 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ == NULL) {
-#line 9597 "Page.c"
- GMenuModel* model = NULL;
- GtkBuilder* _tmp1_;
- const gchar* _tmp2_;
- GObject* _tmp3_;
- GMenuModel* _tmp4_;
- GMenuModel* _tmp5_;
- GtkMenu* _tmp6_;
- GtkMenu* _tmp7_;
-#line 1298 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 1298 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->item_context_menu_path;
-#line 1298 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gtk_builder_get_object (_tmp1_, _tmp2_);
-#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 1298 "/home/jens/Source/shotwell/src/Page.vala"
- model = _tmp4_;
-#line 1300 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = model;
-#line 1300 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = (GtkMenu*) gtk_menu_new_from_model (_tmp5_);
-#line 1300 "/home/jens/Source/shotwell/src/Page.vala"
- g_object_ref_sink (_tmp6_);
-#line 1300 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->item_context_menu);
-#line 1300 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->item_context_menu = _tmp6_;
-#line 1301 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->priv->item_context_menu;
-#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 1297 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (model);
-#line 9632 "Page.c"
- }
-#line 1304 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->priv->item_context_menu;
-#line 1304 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
-#line 1304 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp9_;
-#line 1304 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9642 "Page.c"
-}
-
-
-GtkMenu*
-checkerboard_page_get_item_context_menu (CheckerboardPage* self)
-{
-#line 1296 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL);
-#line 1296 "/home/jens/Source/shotwell/src/Page.vala"
- return CHECKERBOARD_PAGE_GET_CLASS (self)->get_item_context_menu (self);
-#line 9653 "Page.c"
-}
-
-
-static GtkMenu*
-checkerboard_page_real_get_page_context_menu (Page* base)
-{
- CheckerboardPage * self;
- GtkMenu* result = NULL;
- const gchar* _tmp0_;
- GtkMenu* _tmp1_;
- GtkMenu* _tmp9_;
- GtkMenu* _tmp10_;
-#line 1308 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1309 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->page_context_menu_path;
-#line 1309 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ == NULL) {
-#line 1310 "/home/jens/Source/shotwell/src/Page.vala"
- result = NULL;
-#line 1310 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9676 "Page.c"
- }
-#line 1312 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->page_context_menu;
-#line 1312 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 9682 "Page.c"
- GMenuModel* model = NULL;
- GtkBuilder* _tmp2_;
- const gchar* _tmp3_;
- GObject* _tmp4_;
- GMenuModel* _tmp5_;
- GMenuModel* _tmp6_;
- GtkMenu* _tmp7_;
- GtkMenu* _tmp8_;
-#line 1313 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 1313 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->page_context_menu_path;
-#line 1313 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = gtk_builder_get_object (_tmp2_, _tmp3_);
-#line 1313 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp4_) : NULL);
-#line 1313 "/home/jens/Source/shotwell/src/Page.vala"
- model = _tmp5_;
-#line 1315 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = model;
-#line 1315 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = (GtkMenu*) gtk_menu_new_from_model (_tmp6_);
-#line 1315 "/home/jens/Source/shotwell/src/Page.vala"
- g_object_ref_sink (_tmp7_);
-#line 1315 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->page_context_menu);
-#line 1315 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->page_context_menu = _tmp7_;
-#line 1316 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->priv->page_context_menu;
-#line 1316 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_menu_attach_to_widget (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL);
-#line 1312 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (model);
-#line 9717 "Page.c"
- }
-#line 1319 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->priv->page_context_menu;
-#line 1319 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 1319 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp10_;
-#line 1319 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9727 "Page.c"
-}
-
-
-static gboolean
-checkerboard_page_real_on_context_keypress (Page* base)
-{
- CheckerboardPage * self;
- gboolean result = FALSE;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp1_;
- gboolean _tmp2_;
-#line 1322 "/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"
- _tmp0_ = checkerboard_page_get_context_menu (self);
-#line 1323 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1323 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL);
-#line 1323 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 1323 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp2_;
-#line 1323 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9753 "Page.c"
-}
-
-
-static gchar*
-checkerboard_page_real_get_view_empty_message (CheckerboardPage* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1327 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (_ ("No photos/videos"));
-#line 1327 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 1327 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9768 "Page.c"
-}
-
-
-gchar*
-checkerboard_page_get_view_empty_message (CheckerboardPage* self)
-{
-#line 1326 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL);
-#line 1326 "/home/jens/Source/shotwell/src/Page.vala"
- return CHECKERBOARD_PAGE_GET_CLASS (self)->get_view_empty_message (self);
-#line 9779 "Page.c"
-}
-
-
-static gchar*
-checkerboard_page_real_get_filter_no_match_message (CheckerboardPage* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1331 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = g_strdup (_ ("No photos/videos found which match the current filter"));
-#line 1331 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp0_;
-#line 1331 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9794 "Page.c"
-}
-
-
-gchar*
-checkerboard_page_get_filter_no_match_message (CheckerboardPage* self)
-{
-#line 1330 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL);
-#line 1330 "/home/jens/Source/shotwell/src/Page.vala"
- return CHECKERBOARD_PAGE_GET_CLASS (self)->get_filter_no_match_message (self);
-#line 9805 "Page.c"
-}
-
-
-static void
-checkerboard_page_real_on_item_activated (CheckerboardPage* self,
- CheckerboardItem* item,
- CheckerboardPageActivator activator,
- CheckerboardPageKeyboardModifiers* modifiers)
-{
-#line 1334 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (item));
-#line 1334 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (modifiers != NULL);
-#line 9819 "Page.c"
-}
-
-
-void
-checkerboard_page_on_item_activated (CheckerboardPage* self,
- CheckerboardItem* item,
- CheckerboardPageActivator activator,
- CheckerboardPageKeyboardModifiers* modifiers)
-{
-#line 1334 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1334 "/home/jens/Source/shotwell/src/Page.vala"
- CHECKERBOARD_PAGE_GET_CLASS (self)->on_item_activated (self, item, activator, modifiers);
-#line 9833 "Page.c"
-}
-
-
-CheckerboardLayout*
-checkerboard_page_get_checkerboard_layout (CheckerboardPage* self)
-{
- CheckerboardLayout* result = NULL;
- CheckerboardLayout* _tmp0_;
- CheckerboardLayout* _tmp1_;
-#line 1338 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL);
-#line 1339 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1339 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 1339 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 1339 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9853 "Page.c"
-}
-
-
-static SearchViewFilter*
-checkerboard_page_real_get_search_view_filter (CheckerboardPage* self)
-{
-#line 1343 "/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 1343 "/home/jens/Source/shotwell/src/Page.vala"
- return NULL;
-#line 9864 "Page.c"
-}
-
-
-SearchViewFilter*
-checkerboard_page_get_search_view_filter (CheckerboardPage* self)
-{
-#line 1343 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL);
-#line 1343 "/home/jens/Source/shotwell/src/Page.vala"
- return CHECKERBOARD_PAGE_GET_CLASS (self)->get_search_view_filter (self);
-#line 9875 "Page.c"
-}
-
-
-static CoreViewTracker*
-checkerboard_page_real_get_view_tracker (CheckerboardPage* self)
-{
- CoreViewTracker* result = NULL;
-#line 1346 "/home/jens/Source/shotwell/src/Page.vala"
- result = NULL;
-#line 1346 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 9887 "Page.c"
-}
-
-
-CoreViewTracker*
-checkerboard_page_get_view_tracker (CheckerboardPage* self)
-{
-#line 1345 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL);
-#line 1345 "/home/jens/Source/shotwell/src/Page.vala"
- return CHECKERBOARD_PAGE_GET_CLASS (self)->get_view_tracker (self);
-#line 9898 "Page.c"
-}
-
-
-static void
-_checkerboard_page_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender,
- gpointer self)
-{
-#line 1351 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_on_view_filter_refresh ((CheckerboardPage*) self);
-#line 9908 "Page.c"
-}
-
-
-static void
-checkerboard_page_real_switching_from (Page* base)
-{
- CheckerboardPage * self;
- CheckerboardLayout* _tmp0_;
- SearchViewFilter* _tmp1_;
- SearchViewFilter* _tmp2_;
- guint _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 1349 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1350 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1350 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_in_view (_tmp0_, FALSE);
-#line 1351 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = checkerboard_page_get_search_view_filter (self);
-#line 1351 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 1351 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp3_, NULL, FALSE);
-#line 1351 "/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 1351 "/home/jens/Source/shotwell/src/Page.vala"
- _view_filter_unref0 (_tmp2_);
-#line 1354 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1354 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 1354 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_all (_tmp5_);
-#line 1354 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 1356 "/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 9948 "Page.c"
-}
-
-
-static void
-checkerboard_page_real_switched_to (Page* base)
-{
- CheckerboardPage * self;
- CheckerboardLayout* _tmp0_;
- SearchViewFilter* _tmp1_;
- SearchViewFilter* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- gboolean _tmp5_;
-#line 1359 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1360 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_in_view (_tmp0_, TRUE);
-#line 1361 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = checkerboard_page_get_search_view_filter (self);
-#line 1361 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 1361 "/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 1361 "/home/jens/Source/shotwell/src/Page.vala"
- _view_filter_unref0 (_tmp2_);
-#line 1362 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_on_view_filter_refresh (self);
-#line 1364 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1364 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp3_;
-#line 1364 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = view_collection_get_selected_count (_tmp4_) > 0;
-#line 1364 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp4_);
-#line 1364 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_) {
-#line 9988 "Page.c"
- CheckerboardItem* item = NULL;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- DataView* _tmp8_;
- CheckerboardItem* _tmp9_;
- GtkAdjustment* vadj = NULL;
- GtkAdjustment* _tmp10_;
- GtkAdjustment* _tmp11_;
- gboolean _tmp12_ = FALSE;
- GtkAdjustment* _tmp13_;
- CheckerboardItem* _tmp14_;
- GdkRectangle _tmp15_;
- gint _tmp16_;
-#line 1365 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1365 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#line 1365 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = view_collection_get_selected_at (_tmp7_, 0);
-#line 1365 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1365 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp7_);
-#line 1365 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp9_;
-#line 1368 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow));
-#line 1368 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 1368 "/home/jens/Source/shotwell/src/Page.vala"
- vadj = _tmp11_;
-#line 1369 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = vadj;
-#line 1369 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = item;
-#line 1369 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = _tmp14_->allocation;
-#line 1369 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = _tmp15_.y;
-#line 1369 "/home/jens/Source/shotwell/src/Page.vala"
- if (get_adjustment_relation (_tmp13_, _tmp16_) == ADJUSTMENT_RELATION_IN_RANGE) {
-#line 10030 "Page.c"
- GtkAdjustment* _tmp17_;
- CheckerboardItem* _tmp18_;
- GdkRectangle _tmp19_;
- gint _tmp20_;
- CheckerboardItem* _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
-#line 1370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = vadj;
-#line 1370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = item;
-#line 1370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = _tmp18_->allocation;
-#line 1370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = _tmp19_.y;
-#line 1370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = item;
-#line 1370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = _tmp21_->allocation;
-#line 1370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = _tmp22_.height;
-#line 1370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = get_adjustment_relation (_tmp17_, _tmp20_ + _tmp23_) == ADJUSTMENT_RELATION_IN_RANGE;
-#line 10054 "Page.c"
- } else {
-#line 1369 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = FALSE;
-#line 10058 "Page.c"
- }
-#line 1369 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp12_) {
-#line 10062 "Page.c"
- gint top = 0;
- CheckerboardItem* _tmp24_;
- GdkRectangle _tmp25_;
- gint _tmp26_;
- GtkAdjustment* _tmp27_;
- GtkAdjustment* _tmp40_;
- gint _tmp41_;
-#line 1373 "/home/jens/Source/shotwell/src/Page.vala"
- top = 0;
-#line 1374 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = item;
-#line 1374 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = _tmp24_->allocation;
-#line 1374 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = _tmp25_.y;
-#line 1374 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = vadj;
-#line 1374 "/home/jens/Source/shotwell/src/Page.vala"
- if (((gdouble) _tmp26_) < gtk_adjustment_get_value (_tmp27_)) {
-#line 10082 "Page.c"
- CheckerboardItem* _tmp28_;
- GdkRectangle _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
-#line 1375 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = item;
-#line 1375 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = _tmp28_->allocation;
-#line 1375 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = _tmp29_.y;
-#line 1375 "/home/jens/Source/shotwell/src/Page.vala"
- top = _tmp30_;
-#line 1376 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = top;
-#line 1376 "/home/jens/Source/shotwell/src/Page.vala"
- top = _tmp31_ - (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2);
-#line 10099 "Page.c"
- } else {
- CheckerboardItem* _tmp32_;
- GdkRectangle _tmp33_;
- gint _tmp34_;
- CheckerboardItem* _tmp35_;
- GdkRectangle _tmp36_;
- gint _tmp37_;
- GtkAdjustment* _tmp38_;
- gint _tmp39_;
-#line 1378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = item;
-#line 1378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = _tmp32_->allocation;
-#line 1378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = _tmp33_.y;
-#line 1378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = item;
-#line 1378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = _tmp35_->allocation;
-#line 1378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = _tmp36_.height;
-#line 1378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = vadj;
-#line 1378 "/home/jens/Source/shotwell/src/Page.vala"
- top = (_tmp34_ + _tmp37_) - ((gint) gtk_adjustment_get_page_size (_tmp38_));
-#line 1379 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = top;
-#line 1379 "/home/jens/Source/shotwell/src/Page.vala"
- top = _tmp39_ + (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2);
-#line 10129 "Page.c"
- }
-#line 1382 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp40_ = vadj;
-#line 1382 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = top;
-#line 1382 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_adjustment_set_value (_tmp40_, (gdouble) _tmp41_);
-#line 10137 "Page.c"
- }
-#line 1364 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (vadj);
-#line 1364 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 10143 "Page.c"
- }
-#line 1387 "/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 10147 "Page.c"
-}
-
-
-static void
-checkerboard_page_on_view_filter_refresh (CheckerboardPage* self)
-{
-#line 1390 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1391 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_update_view_filter_message (self);
-#line 10158 "Page.c"
-}
-
-
-static void
-checkerboard_page_on_contents_altered (CheckerboardPage* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
-#line 1394 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1394 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 1394 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 1396 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_update_view_filter_message (self);
-#line 10175 "Page.c"
-}
-
-
-static void
-checkerboard_page_on_items_state_changed (CheckerboardPage* self,
- GeeIterable* changed)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1399 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GEE_IS_ITERABLE (changed));
-#line 1400 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_update_view_filter_message (self);
-#line 10189 "Page.c"
-}
-
-
-static void
-checkerboard_page_on_items_visibility_changed (CheckerboardPage* self,
- GeeCollection* changed)
-{
-#line 1403 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1403 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GEE_IS_COLLECTION (changed));
-#line 1404 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_update_view_filter_message (self);
-#line 10203 "Page.c"
-}
-
-
-static void
-checkerboard_page_update_view_filter_message (CheckerboardPage* self)
-{
- gboolean _tmp0_ = FALSE;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- gboolean _tmp3_;
-#line 1407 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = view_collection_are_items_filtered_out (_tmp2_);
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp2_);
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 10226 "Page.c"
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)) == 0;
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 10237 "Page.c"
- } else {
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = FALSE;
-#line 10241 "Page.c"
- }
-#line 1408 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 10245 "Page.c"
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 1409 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = checkerboard_page_get_filter_no_match_message (self);
-#line 1409 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#line 1409 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_set_page_message (self, _tmp7_);
-#line 1409 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp7_);
-#line 10256 "Page.c"
- } else {
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
- gboolean _tmp10_;
-#line 1410 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1410 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp8_;
-#line 1410 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection)) == 0;
-#line 1410 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp9_);
-#line 1410 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp10_) {
-#line 10271 "Page.c"
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 1411 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = checkerboard_page_get_view_empty_message (self);
-#line 1411 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _tmp11_;
-#line 1411 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_set_page_message (self, _tmp12_);
-#line 1411 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp12_);
-#line 10282 "Page.c"
- } else {
-#line 1413 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_unset_page_message (self);
-#line 10286 "Page.c"
- }
- }
-}
-
-
-void
-checkerboard_page_set_page_message (CheckerboardPage* self,
- const gchar* message)
-{
- CheckerboardLayout* _tmp0_;
-#line 1417 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1417 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (message != NULL);
-#line 1418 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1418 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_message (_tmp0_, message);
-#line 1419 "/home/jens/Source/shotwell/src/Page.vala"
- if (page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page))) {
-#line 10307 "Page.c"
- CheckerboardLayout* _tmp1_;
-#line 1420 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->layout;
-#line 1420 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 10313 "Page.c"
- }
-}
-
-
-void
-checkerboard_page_unset_page_message (CheckerboardPage* self)
-{
- CheckerboardLayout* _tmp0_;
-#line 1423 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1424 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1424 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_unset_message (_tmp0_);
-#line 1425 "/home/jens/Source/shotwell/src/Page.vala"
- if (page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page))) {
-#line 10330 "Page.c"
- CheckerboardLayout* _tmp1_;
-#line 1426 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->layout;
-#line 1426 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 10336 "Page.c"
- }
-}
-
-
-static void
-checkerboard_page_real_set_page_name (Page* base,
- const gchar* name)
-{
- CheckerboardPage * self;
- CheckerboardLayout* _tmp0_;
-#line 1429 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1429 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (name != NULL);
-#line 1430 "/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), name);
-#line 1432 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1432 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_name (_tmp0_, name);
-#line 10357 "Page.c"
-}
-
-
-CheckerboardItem*
-checkerboard_page_get_item_at_pixel (CheckerboardPage* self,
- gdouble x,
- gdouble y)
-{
- CheckerboardItem* result = NULL;
- CheckerboardLayout* _tmp0_;
- CheckerboardItem* _tmp1_;
-#line 1435 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL);
-#line 1436 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1436 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = checkerboard_layout_get_item_at_pixel (_tmp0_, x, y);
-#line 1436 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 1436 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 10379 "Page.c"
-}
-
-
-static void
-checkerboard_page_on_items_hidden (CheckerboardPage* self,
- GeeIterable* hidden)
-{
-#line 1439 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1439 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GEE_IS_ITERABLE (hidden));
-#line 10391 "Page.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp0_;
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = gee_iterable_iterator (hidden);
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- _view_it = _tmp0_;
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 10401 "Page.c"
- GeeIterator* _tmp1_;
- DataView* view = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- CheckerboardItem* item = NULL;
- DataView* _tmp4_;
- CheckerboardItem* _tmp5_;
- CheckerboardItem* _tmp6_;
- CheckerboardItem* _tmp7_;
- CheckerboardItem* _tmp8_;
- CheckerboardItem* _tmp9_;
- CheckerboardItem* _tmp10_;
- CheckerboardItem* _tmp11_;
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _view_it;
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10421 "Page.c"
- }
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _view_it;
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- view = (DataView*) _tmp3_;
-#line 1441 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = view;
-#line 1441 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1441 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp5_;
-#line 1443 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->anchor;
-#line 1443 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = item;
-#line 1443 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp6_ == _tmp7_) {
-#line 1444 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1444 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = NULL;
-#line 10445 "Page.c"
- }
-#line 1446 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->cursor;
-#line 1446 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = item;
-#line 1446 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp8_ == _tmp9_) {
-#line 1447 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1447 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = NULL;
-#line 10457 "Page.c"
- }
-#line 1449 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->priv->highlighted;
-#line 1449 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = item;
-#line 1449 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp10_ == _tmp11_) {
-#line 1450 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->highlighted);
-#line 1450 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->highlighted = NULL;
-#line 10469 "Page.c"
- }
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (view);
-#line 10475 "Page.c"
- }
-#line 1440 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_view_it);
-#line 10479 "Page.c"
- }
-}
-
-
-static gboolean
-checkerboard_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- CheckerboardPage * self;
- gboolean result = FALSE;
- gboolean handled = FALSE;
- guint state = 0U;
- GdkModifierType _tmp0_;
- guint _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- GQuark _tmp5_ = 0U;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label0 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label1 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label2 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label3 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label4 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label5 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label6 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label7 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label8 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label9 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label10 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label11 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label12 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label13 = 0;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp4_label14 = 0;
-#line 10527 "Page.c"
- gboolean _tmp42_;
- gboolean _tmp43_ = FALSE;
-#line 1454 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1454 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1455 "/home/jens/Source/shotwell/src/Page.vala"
- handled = TRUE;
-#line 1458 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = event->state;
-#line 1458 "/home/jens/Source/shotwell/src/Page.vala"
- state = (guint) (_tmp0_ & GDK_SHIFT_MASK);
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = event->keyval;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = gdk_keyval_name (_tmp1_);
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_;
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_);
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- if ((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("Up")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("KP_Up"))))) {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10552 "Page.c"
- default:
- {
- guint _tmp6_;
-#line 1463 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_move_cursor (self, COMPASS_POINT_NORTH);
-#line 1464 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = state;
-#line 1464 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_anchor_to_cursor (self, _tmp6_);
-#line 1465 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10564 "Page.c"
- }
- }
- } else if ((_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("Down")))) || (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("KP_Down"))))) {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10570 "Page.c"
- default:
- {
- guint _tmp7_;
-#line 1469 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_move_cursor (self, COMPASS_POINT_SOUTH);
-#line 1470 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = state;
-#line 1470 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_anchor_to_cursor (self, _tmp7_);
-#line 1471 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10582 "Page.c"
- }
- }
- } else if ((_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("Left")))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("KP_Left"))))) {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10588 "Page.c"
- default:
- {
- guint _tmp8_;
-#line 1475 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_move_cursor (self, COMPASS_POINT_WEST);
-#line 1476 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = state;
-#line 1476 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_anchor_to_cursor (self, _tmp8_);
-#line 1477 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10600 "Page.c"
- }
- }
- } else if ((_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("Right")))) || (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("KP_Right"))))) {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10606 "Page.c"
- default:
- {
- guint _tmp9_;
-#line 1481 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_move_cursor (self, COMPASS_POINT_EAST);
-#line 1482 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = state;
-#line 1482 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_anchor_to_cursor (self, _tmp9_);
-#line 1483 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10618 "Page.c"
- }
- }
- } else if ((_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("Home")))) || (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("KP_Home"))))) {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10624 "Page.c"
- default:
- {
- CheckerboardItem* first = NULL;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- DataView* _tmp12_;
- CheckerboardItem* _tmp13_;
- CheckerboardItem* _tmp14_;
- guint _tmp16_;
-#line 1487 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1487 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _tmp10_;
-#line 1487 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = view_collection_get_first (_tmp11_);
-#line 1487 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1487 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp11_);
-#line 1487 "/home/jens/Source/shotwell/src/Page.vala"
- first = _tmp13_;
-#line 1488 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = first;
-#line 1488 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp14_ != NULL) {
-#line 10650 "Page.c"
- CheckerboardItem* _tmp15_;
-#line 1489 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = first;
-#line 1489 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_cursor_to_item (self, _tmp15_);
-#line 10656 "Page.c"
- }
-#line 1490 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = state;
-#line 1490 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_anchor_to_cursor (self, _tmp16_);
-#line 1491 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (first);
-#line 1491 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10666 "Page.c"
- }
- }
- } else if ((_tmp5_ == ((0 != _tmp4_label10) ? _tmp4_label10 : (_tmp4_label10 = g_quark_from_static_string ("End")))) || (_tmp5_ == ((0 != _tmp4_label11) ? _tmp4_label11 : (_tmp4_label11 = g_quark_from_static_string ("KP_End"))))) {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10672 "Page.c"
- default:
- {
- CheckerboardItem* last = NULL;
- ViewCollection* _tmp17_;
- ViewCollection* _tmp18_;
- DataView* _tmp19_;
- CheckerboardItem* _tmp20_;
- CheckerboardItem* _tmp21_;
- guint _tmp23_;
-#line 1495 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1495 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp17_;
-#line 1495 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = view_collection_get_last (_tmp18_);
-#line 1495 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1495 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp18_);
-#line 1495 "/home/jens/Source/shotwell/src/Page.vala"
- last = _tmp20_;
-#line 1496 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = last;
-#line 1496 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp21_ != NULL) {
-#line 10698 "Page.c"
- CheckerboardItem* _tmp22_;
-#line 1497 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = last;
-#line 1497 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_cursor_to_item (self, _tmp22_);
-#line 10704 "Page.c"
- }
-#line 1498 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = state;
-#line 1498 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_anchor_to_cursor (self, _tmp23_);
-#line 1499 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (last);
-#line 1499 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10714 "Page.c"
- }
- }
- } else if ((_tmp5_ == ((0 != _tmp4_label12) ? _tmp4_label12 : (_tmp4_label12 = g_quark_from_static_string ("Return")))) || (_tmp5_ == ((0 != _tmp4_label13) ? _tmp4_label13 : (_tmp4_label13 = g_quark_from_static_string ("KP_Enter"))))) {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10720 "Page.c"
- default:
- {
- ViewCollection* _tmp24_;
- ViewCollection* _tmp25_;
- gboolean _tmp26_;
-#line 1503 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1503 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = _tmp24_;
-#line 1503 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = view_collection_get_selected_count (_tmp25_) == 1;
-#line 1503 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp25_);
-#line 1503 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp26_) {
-#line 10736 "Page.c"
- ViewCollection* _tmp27_;
- ViewCollection* _tmp28_;
- DataView* _tmp29_;
- CheckerboardItem* _tmp30_;
- CheckerboardPageKeyboardModifiers _tmp31_ = {0};
-#line 1504 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1504 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = _tmp27_;
-#line 1504 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = view_collection_get_selected_at (_tmp28_, 0);
-#line 1504 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem);
-#line 1504 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_keyboard_modifiers_init (&_tmp31_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1504 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_on_item_activated (self, _tmp30_, CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, &_tmp31_);
-#line 1504 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp30_);
-#line 1504 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp28_);
-#line 10758 "Page.c"
- } else {
-#line 1507 "/home/jens/Source/shotwell/src/Page.vala"
- handled = FALSE;
-#line 10762 "Page.c"
- }
-#line 1508 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10766 "Page.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label14) ? _tmp4_label14 : (_tmp4_label14 = g_quark_from_static_string ("space")))) {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10772 "Page.c"
- default:
- {
- Marker* marker = NULL;
- ViewCollection* _tmp32_;
- ViewCollection* _tmp33_;
- CheckerboardLayout* _tmp34_;
- CheckerboardItem* _tmp35_;
- CheckerboardItem* _tmp36_;
- Marker* _tmp37_;
- Marker* _tmp38_;
- ViewCollection* _tmp39_;
- ViewCollection* _tmp40_;
- Marker* _tmp41_;
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = _tmp32_;
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = self->priv->layout;
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = checkerboard_layout_get_cursor (_tmp34_);
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = _tmp35_;
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_OBJECT, DataObject));
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = _tmp37_;
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp36_);
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp33_);
-#line 1511 "/home/jens/Source/shotwell/src/Page.vala"
- marker = _tmp38_;
-#line 1512 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1512 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp40_ = _tmp39_;
-#line 1512 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = marker;
-#line 1512 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_toggle_marked (_tmp40_, _tmp41_);
-#line 1512 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp40_);
-#line 1513 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (marker);
-#line 1513 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10820 "Page.c"
- }
- }
- } else {
-#line 1460 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 10826 "Page.c"
- default:
- {
-#line 1516 "/home/jens/Source/shotwell/src/Page.vala"
- handled = FALSE;
-#line 1517 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 10833 "Page.c"
- }
- }
- }
-#line 1520 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = handled;
-#line 1520 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp42_) {
-#line 1521 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1521 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 10845 "Page.c"
- }
-#line 1523 "/home/jens/Source/shotwell/src/Page.vala"
- if (GTK_WIDGET_CLASS (checkerboard_page_parent_class)->key_press_event != NULL) {
-#line 1523 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = 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), event);
-#line 10851 "Page.c"
- } else {
-#line 1523 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = TRUE;
-#line 10855 "Page.c"
- }
-#line 1523 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp43_;
-#line 1523 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 10861 "Page.c"
-}
-
-
-static gboolean
-checkerboard_page_real_on_left_click (Page* base,
- GdkEventButton* event)
-{
- CheckerboardPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GdkEventType _tmp1_;
- guint state = 0U;
- GdkModifierType _tmp3_;
- CheckerboardItem* item = NULL;
- gdouble _tmp4_;
- gdouble _tmp5_;
- CheckerboardItem* _tmp6_;
- CheckerboardItem* _tmp7_;
- ViewCollection* _tmp92_;
- ViewCollection* _tmp93_;
- gboolean _tmp94_;
-#line 1526 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1526 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1528 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = event->type;
-#line 1528 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ != GDK_BUTTON_PRESS) {
-#line 10891 "Page.c"
- GdkEventType _tmp2_;
-#line 1528 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = event->type;
-#line 1528 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = _tmp2_ != GDK_2BUTTON_PRESS;
-#line 10897 "Page.c"
- } else {
-#line 1528 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = FALSE;
-#line 10901 "Page.c"
- }
-#line 1528 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 1529 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1529 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 10909 "Page.c"
- }
-#line 1532 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = event->state;
-#line 1532 "/home/jens/Source/shotwell/src/Page.vala"
- state = (guint) (_tmp3_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK));
-#line 1536 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = event->x;
-#line 1536 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = event->y;
-#line 1536 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = checkerboard_page_get_item_at_pixel (self, _tmp4_, _tmp5_);
-#line 1536 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp6_;
-#line 1537 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = item;
-#line 1537 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp7_ != NULL) {
-#line 10927 "Page.c"
- CheckerboardLayout* _tmp8_;
- CheckerboardItem* _tmp9_;
- gdouble _tmp10_;
- gdouble _tmp11_;
- GdkModifierType _tmp12_;
- guint _tmp13_;
- CheckerboardLayout* _tmp68_;
- CheckerboardItem* _tmp69_;
-#line 1540 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->priv->layout;
-#line 1540 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = item;
-#line 1540 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = event->x;
-#line 1540 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = event->y;
-#line 1540 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = event->state;
-#line 1540 "/home/jens/Source/shotwell/src/Page.vala"
- if (checkerboard_layout_handle_left_click (_tmp8_, _tmp9_, _tmp10_, _tmp11_, _tmp12_)) {
-#line 1541 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1541 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1541 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 10954 "Page.c"
- }
-#line 1543 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = state;
-#line 1543 "/home/jens/Source/shotwell/src/Page.vala"
- switch (_tmp13_) {
-#line 1543 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_CONTROL_MASK:
-#line 10962 "Page.c"
- {
- Marker* marker = NULL;
- ViewCollection* _tmp14_;
- ViewCollection* _tmp15_;
- CheckerboardItem* _tmp16_;
- Marker* _tmp17_;
- Marker* _tmp18_;
- ViewCollection* _tmp19_;
- ViewCollection* _tmp20_;
- Marker* _tmp21_;
- CheckerboardItem* _tmp22_;
-#line 1547 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1547 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = _tmp14_;
-#line 1547 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = item;
-#line 1547 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
-#line 1547 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp17_;
-#line 1547 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp15_);
-#line 1547 "/home/jens/Source/shotwell/src/Page.vala"
- marker = _tmp18_;
-#line 1548 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1548 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = _tmp19_;
-#line 1548 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = marker;
-#line 1548 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_toggle_marked (_tmp20_, _tmp21_);
-#line 1548 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp20_);
-#line 1550 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = item;
-#line 1550 "/home/jens/Source/shotwell/src/Page.vala"
- if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_VIEW, DataView))) {
-#line 11002 "Page.c"
- CheckerboardItem* _tmp23_;
- CheckerboardItem* _tmp24_;
- CheckerboardItem* _tmp25_;
- CheckerboardItem* _tmp26_;
-#line 1551 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = item;
-#line 1551 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = _g_object_ref0 (_tmp23_);
-#line 1551 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1551 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = _tmp24_;
-#line 1552 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = item;
-#line 1552 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = _g_object_ref0 (_tmp25_);
-#line 1552 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1552 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = _tmp26_;
-#line 11023 "Page.c"
- }
-#line 1554 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (marker);
-#line 1554 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11029 "Page.c"
- }
-#line 1543 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_SHIFT_MASK:
-#line 11033 "Page.c"
- {
- ViewCollection* _tmp27_;
- ViewCollection* _tmp28_;
- CheckerboardItem* _tmp29_;
- CheckerboardItem* _tmp32_;
- CheckerboardItem* _tmp33_;
- CheckerboardItem* _tmp34_;
- CheckerboardItem* _tmp35_;
-#line 1557 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1557 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = _tmp27_;
-#line 1557 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_all (_tmp28_);
-#line 1557 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp28_);
-#line 1559 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = self->anchor;
-#line 1559 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp29_ == NULL) {
-#line 11054 "Page.c"
- CheckerboardItem* _tmp30_;
- CheckerboardItem* _tmp31_;
-#line 1560 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = item;
-#line 1560 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = _g_object_ref0 (_tmp30_);
-#line 1560 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1560 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = _tmp31_;
-#line 11065 "Page.c"
- }
-#line 1562 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = self->anchor;
-#line 1562 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = item;
-#line 1562 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_between_items (self, _tmp32_, _tmp33_);
-#line 1564 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = item;
-#line 1564 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = _g_object_ref0 (_tmp34_);
-#line 1564 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1564 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = _tmp35_;
-#line 1565 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11083 "Page.c"
- }
-#line 1543 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_CONTROL_MASK | GDK_SHIFT_MASK:
-#line 11087 "Page.c"
- {
- CheckerboardItem* _tmp36_;
- CheckerboardItem* _tmp39_;
- CheckerboardItem* _tmp40_;
- CheckerboardItem* _tmp41_;
- CheckerboardItem* _tmp42_;
-#line 1572 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = self->anchor;
-#line 1572 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp36_ == NULL) {
-#line 11098 "Page.c"
- CheckerboardItem* _tmp37_;
- CheckerboardItem* _tmp38_;
-#line 1573 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = item;
-#line 1573 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = _g_object_ref0 (_tmp37_);
-#line 1573 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1573 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = _tmp38_;
-#line 11109 "Page.c"
- }
-#line 1575 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = self->anchor;
-#line 1575 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp40_ = item;
-#line 1575 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_between_items (self, _tmp39_, _tmp40_);
-#line 1577 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = item;
-#line 1577 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = _g_object_ref0 (_tmp41_);
-#line 1577 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1577 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = _tmp42_;
-#line 1578 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11127 "Page.c"
- }
- default:
- {
- GdkEventType _tmp43_;
- CheckerboardItem* _tmp64_;
- CheckerboardItem* _tmp65_;
- CheckerboardItem* _tmp66_;
- CheckerboardItem* _tmp67_;
-#line 1581 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = event->type;
-#line 1581 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp43_ == GDK_2BUTTON_PRESS) {
-#line 11140 "Page.c"
- CheckerboardItem* _tmp44_;
- CheckerboardItem* _tmp45_;
-#line 1582 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp44_ = item;
-#line 1582 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp45_ = _g_object_ref0 (_tmp44_);
-#line 1582 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->activated_item);
-#line 1582 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->activated_item = _tmp45_;
-#line 11151 "Page.c"
- } else {
- CheckerboardItem* _tmp46_;
-#line 1588 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp46_ = item;
-#line 1588 "/home/jens/Source/shotwell/src/Page.vala"
- if (!data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_DATA_VIEW, DataView))) {
-#line 11158 "Page.c"
- Marker* all = NULL;
- ViewCollection* _tmp47_;
- ViewCollection* _tmp48_;
- Marker* _tmp49_;
- Marker* _tmp50_;
- Marker* _tmp51_;
- ViewCollection* _tmp52_;
- ViewCollection* _tmp53_;
- GeeList* _tmp54_;
- GeeList* _tmp55_;
- ViewCollection* _tmp56_;
- ViewCollection* _tmp57_;
- Marker* _tmp58_;
- ViewCollection* _tmp59_;
- ViewCollection* _tmp60_;
- CheckerboardItem* _tmp61_;
- Marker* _tmp62_;
- Marker* _tmp63_;
-#line 1589 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp47_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1589 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp48_ = _tmp47_;
-#line 1589 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp49_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1589 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp50_ = _tmp49_;
-#line 1589 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp48_);
-#line 1589 "/home/jens/Source/shotwell/src/Page.vala"
- all = _tmp50_;
-#line 1590 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp51_ = all;
-#line 1590 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp52_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1590 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp53_ = _tmp52_;
-#line 1590 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp54_ = view_collection_get_selected (_tmp53_);
-#line 1590 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp55_ = _tmp54_;
-#line 1590 "/home/jens/Source/shotwell/src/Page.vala"
- marker_mark_many (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1590 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp55_);
-#line 1590 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp53_);
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp56_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp57_ = _tmp56_;
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp58_ = all;
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp59_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp60_ = _tmp59_;
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp61_ = item;
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp62_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_DATA_OBJECT, DataObject));
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp63_ = _tmp62_;
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_and_select_marked (_tmp57_, _tmp58_, _tmp63_);
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp63_);
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp60_);
-#line 1592 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp57_);
-#line 1588 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (all);
-#line 11231 "Page.c"
- }
- }
-#line 1596 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp64_ = item;
-#line 1596 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp65_ = _g_object_ref0 (_tmp64_);
-#line 1596 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1596 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = _tmp65_;
-#line 1597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp66_ = item;
-#line 1597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp67_ = _g_object_ref0 (_tmp66_);
-#line 1597 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1597 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = _tmp67_;
-#line 1598 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11252 "Page.c"
- }
- }
-#line 1600 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp68_ = self->priv->layout;
-#line 1600 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp69_ = item;
-#line 1600 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_cursor (_tmp68_, _tmp69_);
-#line 11261 "Page.c"
- } else {
- guint _tmp70_;
- GeeArrayList* _tmp73_;
- CheckerboardLayout* _tmp89_;
- gdouble _tmp90_;
- gdouble _tmp91_;
-#line 1604 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp70_ = state;
-#line 1604 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp70_ != ((guint) GDK_CONTROL_MASK)) {
-#line 11272 "Page.c"
- ViewCollection* _tmp71_;
- ViewCollection* _tmp72_;
-#line 1605 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp71_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1605 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp72_ = _tmp71_;
-#line 1605 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_all (_tmp72_);
-#line 1605 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp72_);
-#line 11283 "Page.c"
- }
-#line 1608 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp73_ = gee_array_list_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1608 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->previously_selected);
-#line 1608 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->previously_selected = _tmp73_;
-#line 11291 "Page.c"
- {
- GeeList* _view_list = NULL;
- ViewCollection* _tmp74_;
- ViewCollection* _tmp75_;
- GeeList* _tmp76_;
- GeeList* _tmp77_;
- gint _view_size = 0;
- GeeList* _tmp78_;
- gint _tmp79_;
- gint _tmp80_;
- gint _view_index = 0;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp74_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp75_ = _tmp74_;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp76_ = view_collection_get_selected (_tmp75_);
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp77_ = _tmp76_;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp75_);
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _view_list = _tmp77_;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp78_ = _view_list;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp79_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp80_ = _tmp79_;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _view_size = _tmp80_;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _view_index = -1;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 11327 "Page.c"
- gint _tmp81_;
- gint _tmp82_;
- gint _tmp83_;
- DataView* view = NULL;
- GeeList* _tmp84_;
- gint _tmp85_;
- gpointer _tmp86_;
- GeeArrayList* _tmp87_;
- DataView* _tmp88_;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp81_ = _view_index;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _view_index = _tmp81_ + 1;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp82_ = _view_index;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp83_ = _view_size;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- if (!(_tmp82_ < _tmp83_)) {
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11349 "Page.c"
- }
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp84_ = _view_list;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp85_ = _view_index;
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp86_ = gee_list_get (_tmp84_, _tmp85_);
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- view = (DataView*) _tmp86_;
-#line 1610 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp87_ = self->priv->previously_selected;
-#line 1610 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp88_ = view;
-#line 1610 "/home/jens/Source/shotwell/src/Page.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (view);
-#line 11367 "Page.c"
- }
-#line 1609 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_view_list);
-#line 11371 "Page.c"
- }
-#line 1612 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp89_ = self->priv->layout;
-#line 1612 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp90_ = event->x;
-#line 1612 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp91_ = event->y;
-#line 1612 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_drag_select_origin (_tmp89_, (gint) _tmp90_, (gint) _tmp91_);
-#line 1614 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1614 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1614 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11387 "Page.c"
- }
-#line 1620 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp92_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1620 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp93_ = _tmp92_;
-#line 1620 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp94_ = view_collection_get_selected_count (_tmp93_) == 0;
-#line 1620 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp93_);
-#line 1620 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp94_;
-#line 1620 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1620 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11403 "Page.c"
-}
-
-
-static gboolean
-checkerboard_page_real_on_left_released (Page* base,
- GdkEventButton* event)
-{
- CheckerboardPage * self;
- gboolean result = FALSE;
- CheckerboardLayout* _tmp0_;
- GdkModifierType _tmp4_;
- CheckerboardItem* _tmp5_;
- CheckerboardItem* item = NULL;
- gdouble _tmp8_;
- gdouble _tmp9_;
- CheckerboardItem* _tmp10_;
- CheckerboardItem* _tmp11_;
- CheckerboardItem* _tmp12_;
- CheckerboardItem* _tmp13_;
-#line 1623 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1623 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1624 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->previously_selected);
-#line 1624 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->previously_selected = NULL;
-#line 1627 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1627 "/home/jens/Source/shotwell/src/Page.vala"
- if (checkerboard_layout_is_drag_select_active (_tmp0_)) {
-#line 11435 "Page.c"
- CheckerboardLayout* _tmp1_;
- CheckerboardItem* _tmp2_;
- CheckerboardItem* _tmp3_;
-#line 1628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->layout;
-#line 1628 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_clear_drag_select (_tmp1_);
-#line 1629 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->cursor;
-#line 1629 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 1629 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1629 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = _tmp3_;
-#line 1631 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1631 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11455 "Page.c"
- }
-#line 1635 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = event->state;
-#line 1635 "/home/jens/Source/shotwell/src/Page.vala"
- if ((_tmp4_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) != 0) {
-#line 1636 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1636 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11465 "Page.c"
- }
-#line 1639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->activated_item;
-#line 1639 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_ != NULL) {
-#line 11471 "Page.c"
- CheckerboardItem* _tmp6_;
- CheckerboardPageKeyboardModifiers _tmp7_ = {0};
-#line 1640 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->activated_item;
-#line 1640 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_keyboard_modifiers_init (&_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1640 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_on_item_activated (self, _tmp6_, CHECKERBOARD_PAGE_ACTIVATOR_MOUSE, &_tmp7_);
-#line 1641 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->activated_item);
-#line 1641 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->activated_item = NULL;
-#line 1643 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1643 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11488 "Page.c"
- }
-#line 1646 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = event->x;
-#line 1646 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = event->y;
-#line 1646 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = checkerboard_page_get_item_at_pixel (self, _tmp8_, _tmp9_);
-#line 1646 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp10_;
-#line 1647 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = item;
-#line 1647 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp11_ == NULL) {
-#line 1649 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1649 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1649 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11508 "Page.c"
- }
-#line 1652 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->cursor;
-#line 1652 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = item;
-#line 1652 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp12_ != _tmp13_) {
-#line 11516 "Page.c"
- ViewCollection* _tmp14_;
- ViewCollection* _tmp15_;
-#line 1655 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1655 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = _tmp14_;
-#line 1655 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_all (_tmp15_);
-#line 1655 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp15_);
-#line 11527 "Page.c"
- } else {
- CheckerboardItem* _tmp16_;
-#line 1661 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = item;
-#line 1661 "/home/jens/Source/shotwell/src/Page.vala"
- if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_VIEW, DataView))) {
-#line 11534 "Page.c"
- ViewCollection* _tmp17_;
- ViewCollection* _tmp18_;
- CheckerboardItem* _tmp19_;
-#line 1662 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1662 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp17_;
-#line 1662 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = item;
-#line 1662 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_all_but (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_VIEW, DataView));
-#line 1662 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp18_);
-#line 11548 "Page.c"
- }
- }
-#line 1665 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1665 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1665 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11557 "Page.c"
-}
-
-
-static gboolean
-checkerboard_page_real_on_right_click (Page* base,
- GdkEventButton* event)
-{
- CheckerboardPage * self;
- gboolean result = FALSE;
- GdkEventType _tmp0_;
- CheckerboardItem* item = NULL;
- gdouble _tmp1_;
- gdouble _tmp2_;
- CheckerboardItem* _tmp3_;
- CheckerboardItem* _tmp4_;
- GtkMenu* context_menu = NULL;
- GtkMenu* _tmp34_;
- GtkMenu* _tmp35_;
-#line 1668 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1668 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1670 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = event->type;
-#line 1670 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ != GDK_BUTTON_PRESS) {
-#line 1671 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1671 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11588 "Page.c"
- }
-#line 1674 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = event->x;
-#line 1674 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = event->y;
-#line 1674 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = checkerboard_page_get_item_at_pixel (self, _tmp1_, _tmp2_);
-#line 1674 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp3_;
-#line 1675 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = item;
-#line 1675 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ != NULL) {
-#line 11602 "Page.c"
- GdkModifierType _tmp5_;
-#line 1677 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = event->state;
-#line 1677 "/home/jens/Source/shotwell/src/Page.vala"
- switch (_tmp5_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) {
-#line 1677 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_CONTROL_MASK:
-#line 11610 "Page.c"
- {
- Marker* marker = NULL;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- CheckerboardItem* _tmp8_;
- Marker* _tmp9_;
- Marker* _tmp10_;
- ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- Marker* _tmp13_;
-#line 1680 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1680 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#line 1680 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = item;
-#line 1680 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 1680 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = _tmp9_;
-#line 1680 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp7_);
-#line 1680 "/home/jens/Source/shotwell/src/Page.vala"
- marker = _tmp10_;
-#line 1681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _tmp11_;
-#line 1681 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = marker;
-#line 1681 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_toggle_marked (_tmp12_, _tmp13_);
-#line 1681 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp12_);
-#line 1682 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (marker);
-#line 1682 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11649 "Page.c"
- }
-#line 1677 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_SHIFT_MASK:
-#line 11653 "Page.c"
- {
-#line 1686 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11657 "Page.c"
- }
-#line 1677 "/home/jens/Source/shotwell/src/Page.vala"
- case GDK_CONTROL_MASK | GDK_SHIFT_MASK:
-#line 11661 "Page.c"
- {
-#line 1690 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11665 "Page.c"
- }
- default:
- {
- CheckerboardItem* _tmp14_;
-#line 1695 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = item;
-#line 1695 "/home/jens/Source/shotwell/src/Page.vala"
- if (!data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_VIEW, DataView))) {
-#line 11674 "Page.c"
- Marker* all = NULL;
- ViewCollection* _tmp15_;
- ViewCollection* _tmp16_;
- Marker* _tmp17_;
- Marker* _tmp18_;
- Marker* _tmp19_;
- ViewCollection* _tmp20_;
- ViewCollection* _tmp21_;
- GeeList* _tmp22_;
- GeeList* _tmp23_;
- ViewCollection* _tmp24_;
- ViewCollection* _tmp25_;
- Marker* _tmp26_;
- ViewCollection* _tmp27_;
- ViewCollection* _tmp28_;
- CheckerboardItem* _tmp29_;
- Marker* _tmp30_;
- Marker* _tmp31_;
-#line 1696 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1696 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = _tmp15_;
-#line 1696 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1696 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp17_;
-#line 1696 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp16_);
-#line 1696 "/home/jens/Source/shotwell/src/Page.vala"
- all = _tmp18_;
-#line 1697 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = all;
-#line 1697 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1697 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = _tmp20_;
-#line 1697 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = view_collection_get_selected (_tmp21_);
-#line 1697 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = _tmp22_;
-#line 1697 "/home/jens/Source/shotwell/src/Page.vala"
- marker_mark_many (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1697 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp23_);
-#line 1697 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp21_);
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = _tmp24_;
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = all;
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = _tmp27_;
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = item;
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_OBJECT, DataObject));
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = _tmp30_;
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_and_select_marked (_tmp25_, _tmp26_, _tmp31_);
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp31_);
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp28_);
-#line 1699 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp25_);
-#line 1695 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (all);
-#line 11747 "Page.c"
- }
-#line 1701 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 11751 "Page.c"
- }
- }
- } else {
- ViewCollection* _tmp32_;
- ViewCollection* _tmp33_;
-#line 1705 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1705 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = _tmp32_;
-#line 1705 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_all (_tmp33_);
-#line 1705 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp33_);
-#line 11765 "Page.c"
- }
-#line 1708 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = checkerboard_page_get_context_menu (self);
-#line 1708 "/home/jens/Source/shotwell/src/Page.vala"
- context_menu = _tmp34_;
-#line 1709 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = context_menu;
-#line 1709 "/home/jens/Source/shotwell/src/Page.vala"
- result = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp35_, event);
-#line 1709 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (context_menu);
-#line 1709 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1709 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11781 "Page.c"
-}
-
-
-static gboolean
-checkerboard_page_real_on_mouse_over (CheckerboardPage* self,
- CheckerboardItem* item,
- gint x,
- gint y,
- GdkModifierType mask)
-{
- gboolean result = FALSE;
- CheckerboardItem* _tmp1_;
- CheckerboardItem* _tmp2_;
- CheckerboardItem* _tmp4_;
-#line 1712 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail ((item == NULL) || IS_CHECKERBOARD_ITEM (item), FALSE);
-#line 1713 "/home/jens/Source/shotwell/src/Page.vala"
- if (item != NULL) {
-#line 11800 "Page.c"
- CheckerboardLayout* _tmp0_;
-#line 1714 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1714 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_handle_mouse_motion (_tmp0_, item, x, y, mask);
-#line 11806 "Page.c"
- }
-#line 1718 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->highlighted;
-#line 1718 "/home/jens/Source/shotwell/src/Page.vala"
- if (item == _tmp1_) {
-#line 1719 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1719 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11816 "Page.c"
- }
-#line 1722 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->highlighted;
-#line 1722 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_ != NULL) {
-#line 11822 "Page.c"
- CheckerboardItem* _tmp3_;
-#line 1723 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->highlighted;
-#line 1723 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_item_unbrighten (_tmp3_);
-#line 1724 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->highlighted);
-#line 1724 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->highlighted = NULL;
-#line 11832 "Page.c"
- }
-#line 1728 "/home/jens/Source/shotwell/src/Page.vala"
- if (item == NULL) {
-#line 1729 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1729 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11840 "Page.c"
- }
-#line 1732 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_item_brighten (item);
-#line 1733 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _g_object_ref0 (item);
-#line 1733 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->highlighted);
-#line 1733 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->highlighted = _tmp4_;
-#line 1735 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1735 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11854 "Page.c"
-}
-
-
-gboolean
-checkerboard_page_on_mouse_over (CheckerboardPage* self,
- CheckerboardItem* item,
- gint x,
- gint y,
- GdkModifierType mask)
-{
-#line 1712 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), FALSE);
-#line 1712 "/home/jens/Source/shotwell/src/Page.vala"
- return CHECKERBOARD_PAGE_GET_CLASS (self)->on_mouse_over (self, item, x, y, mask);
-#line 11869 "Page.c"
-}
-
-
-static gboolean
-_checkerboard_page_selection_autoscroll_gsource_func (gpointer self)
-{
- gboolean result;
- result = checkerboard_page_selection_autoscroll ((CheckerboardPage*) self);
-#line 1755 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11880 "Page.c"
-}
-
-
-static gboolean
-checkerboard_page_real_on_motion (Page* base,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask)
-{
- CheckerboardPage * self;
- gboolean result = FALSE;
- CheckerboardItem* _tmp0_;
- CheckerboardItem* _tmp1_;
- gboolean _tmp2_;
- CheckerboardLayout* _tmp3_;
- CheckerboardLayout* _tmp4_;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_;
-#line 1738 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1738 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1740 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = checkerboard_page_get_item_at_pixel (self, (gdouble) x, (gdouble) y);
-#line 1740 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1740 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = !checkerboard_page_on_mouse_over (self, _tmp1_, x, y, mask);
-#line 1740 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 1740 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_) {
-#line 1741 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1741 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11918 "Page.c"
- }
-#line 1744 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->layout;
-#line 1744 "/home/jens/Source/shotwell/src/Page.vala"
- if (!checkerboard_layout_is_drag_select_active (_tmp3_)) {
-#line 1745 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1745 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11928 "Page.c"
- }
-#line 1748 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->layout;
-#line 1748 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_drag_select_endpoint (_tmp4_, x, y);
-#line 1750 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_updated_selection_band (self);
-#line 1753 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->autoscroll_scheduled;
-#line 1753 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp6_) {
-#line 11940 "Page.c"
- GtkAdjustment* _tmp7_;
-#line 1754 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow));
-#line 1754 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = get_adjustment_relation (_tmp7_, y) != ADJUSTMENT_RELATION_IN_RANGE;
-#line 11946 "Page.c"
- } else {
-#line 1753 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = FALSE;
-#line 11950 "Page.c"
- }
-#line 1753 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_) {
-#line 1755 "/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 1756 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->autoscroll_scheduled = TRUE;
-#line 11958 "Page.c"
- }
-#line 1760 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1760 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 11964 "Page.c"
-}
-
-
-static void
-checkerboard_page_updated_selection_band (CheckerboardPage* self)
-{
- CheckerboardLayout* _tmp0_;
- GeeList* intersection = NULL;
- CheckerboardLayout* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- Marker* to_unselect = NULL;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- Marker* _tmp6_;
- Marker* _tmp7_;
- Marker* to_select = NULL;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
- Marker* _tmp10_;
- Marker* _tmp11_;
- Marker* _tmp12_;
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- GeeList* _tmp15_;
- GeeList* _tmp16_;
- GeeArrayList* _tmp17_;
- Marker* _tmp18_;
- GeeArrayList* _tmp19_;
- Marker* _tmp20_;
- GeeArrayList* _tmp21_;
- ViewCollection* _tmp42_;
- ViewCollection* _tmp43_;
- Marker* _tmp44_;
- ViewCollection* _tmp45_;
- ViewCollection* _tmp46_;
- Marker* _tmp47_;
-#line 1763 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1764 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1764 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (checkerboard_layout_is_drag_select_active (_tmp0_), "layout.is_drag_select_active()");
-#line 1767 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->layout;
-#line 1767 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = checkerboard_layout_items_in_selection_band (_tmp1_);
-#line 1767 "/home/jens/Source/shotwell/src/Page.vala"
- intersection = _tmp2_;
-#line 1768 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = intersection;
-#line 1768 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_ == NULL) {
-#line 1769 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (intersection);
-#line 1769 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 12022 "Page.c"
- }
-#line 1771 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1771 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 1771 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1771 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#line 1771 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 1771 "/home/jens/Source/shotwell/src/Page.vala"
- to_unselect = _tmp7_;
-#line 1772 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1772 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp8_;
-#line 1772 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1772 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _tmp10_;
-#line 1772 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp9_);
-#line 1772 "/home/jens/Source/shotwell/src/Page.vala"
- to_select = _tmp11_;
-#line 1775 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = to_unselect;
-#line 1775 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1775 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _tmp13_;
-#line 1775 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = view_collection_get_selected (_tmp14_);
-#line 1775 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = _tmp15_;
-#line 1775 "/home/jens/Source/shotwell/src/Page.vala"
- marker_mark_many (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1775 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp16_);
-#line 1775 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp14_);
-#line 1778 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = self->priv->previously_selected;
-#line 1778 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp17_ != NULL, "previously_selected != null");
-#line 1779 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = to_unselect;
-#line 1779 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = self->priv->previously_selected;
-#line 1779 "/home/jens/Source/shotwell/src/Page.vala"
- marker_unmark_many (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1780 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = to_select;
-#line 1780 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = self->priv->previously_selected;
-#line 1780 "/home/jens/Source/shotwell/src/Page.vala"
- marker_mark_many (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1783 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1783 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = NULL;
-#line 12084 "Page.c"
- {
- GeeList* _item_list = NULL;
- GeeList* _tmp22_;
- GeeList* _tmp23_;
- gint _item_size = 0;
- GeeList* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- gint _item_index = 0;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = intersection;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = _g_object_ref0 (_tmp22_);
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _item_list = _tmp23_;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = _item_list;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = _tmp25_;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _item_size = _tmp26_;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _item_index = -1;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 12112 "Page.c"
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- CheckerboardItem* item = NULL;
- GeeList* _tmp30_;
- gint _tmp31_;
- gpointer _tmp32_;
- Marker* _tmp33_;
- CheckerboardItem* _tmp34_;
- CheckerboardItem* _tmp39_;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = _item_index;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _item_index = _tmp27_ + 1;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = _item_index;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = _item_size;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- if (!(_tmp28_ < _tmp29_)) {
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 12135 "Page.c"
- }
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = _item_list;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = _item_index;
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = gee_list_get (_tmp30_, _tmp31_);
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- item = (CheckerboardItem*) _tmp32_;
-#line 1786 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = to_select;
-#line 1786 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = item;
-#line 1786 "/home/jens/Source/shotwell/src/Page.vala"
- if (marker_toggle (_tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_DATA_OBJECT, DataObject))) {
-#line 12151 "Page.c"
- Marker* _tmp35_;
- CheckerboardItem* _tmp36_;
-#line 1787 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = to_unselect;
-#line 1787 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = item;
-#line 1787 "/home/jens/Source/shotwell/src/Page.vala"
- marker_unmark (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_OBJECT, DataObject));
-#line 12160 "Page.c"
- } else {
- Marker* _tmp37_;
- CheckerboardItem* _tmp38_;
-#line 1789 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = to_unselect;
-#line 1789 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = item;
-#line 1789 "/home/jens/Source/shotwell/src/Page.vala"
- marker_mark (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_OBJECT, DataObject));
-#line 12170 "Page.c"
- }
-#line 1791 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = self->cursor;
-#line 1791 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp39_ == NULL) {
-#line 12176 "Page.c"
- CheckerboardItem* _tmp40_;
- CheckerboardItem* _tmp41_;
-#line 1792 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp40_ = item;
-#line 1792 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = _g_object_ref0 (_tmp40_);
-#line 1792 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1792 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = _tmp41_;
-#line 12187 "Page.c"
- }
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 12191 "Page.c"
- }
-#line 1785 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_item_list);
-#line 12195 "Page.c"
- }
-#line 1795 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1795 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = _tmp42_;
-#line 1795 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp44_ = to_select;
-#line 1795 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_select_marked (_tmp43_, _tmp44_);
-#line 1795 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp43_);
-#line 1796 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp45_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1796 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp46_ = _tmp45_;
-#line 1796 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp47_ = to_unselect;
-#line 1796 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_marked (_tmp46_, _tmp47_);
-#line 1796 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp46_);
-#line 1763 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (to_select);
-#line 1763 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (to_unselect);
-#line 1763 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (intersection);
-#line 12223 "Page.c"
-}
-
-
-static gboolean
-checkerboard_page_selection_autoscroll (CheckerboardPage* self)
-{
- gboolean result = FALSE;
- CheckerboardLayout* _tmp0_;
- GtkAdjustment* vadj = NULL;
- GtkAdjustment* _tmp1_;
- GtkAdjustment* _tmp2_;
- gint x = 0;
- gint y = 0;
- GdkModifierType mask = 0;
- gint _tmp3_ = 0;
- gint _tmp4_ = 0;
- GdkModifierType _tmp5_ = 0;
- gint new_value = 0;
- GtkAdjustment* _tmp6_;
- GtkAdjustment* _tmp7_;
- gint _tmp8_;
- GtkAdjustment* _tmp18_;
- gint _tmp19_;
- GtkAdjustment* _tmp20_;
- GtkAdjustment* _tmp21_;
- GtkAdjustment* _tmp22_;
-#line 1799 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), FALSE);
-#line 1800 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->layout;
-#line 1800 "/home/jens/Source/shotwell/src/Page.vala"
- if (!checkerboard_layout_is_drag_select_active (_tmp0_)) {
-#line 1801 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->autoscroll_scheduled = FALSE;
-#line 1803 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1803 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 12262 "Page.c"
- }
-#line 1807 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow));
-#line 1807 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 1807 "/home/jens/Source/shotwell/src/Page.vala"
- vadj = _tmp2_;
-#line 1811 "/home/jens/Source/shotwell/src/Page.vala"
- page_get_event_source_pointer (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), &_tmp3_, &_tmp4_, &_tmp5_);
-#line 1811 "/home/jens/Source/shotwell/src/Page.vala"
- x = _tmp3_;
-#line 1811 "/home/jens/Source/shotwell/src/Page.vala"
- y = _tmp4_;
-#line 1811 "/home/jens/Source/shotwell/src/Page.vala"
- mask = _tmp5_;
-#line 1813 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = vadj;
-#line 1813 "/home/jens/Source/shotwell/src/Page.vala"
- new_value = (gint) gtk_adjustment_get_value (_tmp6_);
-#line 1814 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = vadj;
-#line 1814 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = y;
-#line 1814 "/home/jens/Source/shotwell/src/Page.vala"
- switch (get_adjustment_relation (_tmp7_, _tmp8_)) {
-#line 1814 "/home/jens/Source/shotwell/src/Page.vala"
- case ADJUSTMENT_RELATION_BELOW:
-#line 12290 "Page.c"
- {
- gint _tmp9_;
- CheckerboardLayout* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 1817 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = new_value;
-#line 1817 "/home/jens/Source/shotwell/src/Page.vala"
- new_value = _tmp9_ - CHECKERBOARD_PAGE_AUTOSCROLL_PIXELS;
-#line 1818 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->priv->layout;
-#line 1818 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = x;
-#line 1818 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = new_value;
-#line 1818 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_drag_select_endpoint (_tmp10_, _tmp11_, _tmp12_);
-#line 1819 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 12310 "Page.c"
- }
-#line 1814 "/home/jens/Source/shotwell/src/Page.vala"
- case ADJUSTMENT_RELATION_ABOVE:
-#line 12314 "Page.c"
- {
- gint _tmp13_;
- CheckerboardLayout* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- GtkAdjustment* _tmp17_;
-#line 1823 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = new_value;
-#line 1823 "/home/jens/Source/shotwell/src/Page.vala"
- new_value = _tmp13_ + CHECKERBOARD_PAGE_AUTOSCROLL_PIXELS;
-#line 1824 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = self->priv->layout;
-#line 1824 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = x;
-#line 1824 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = new_value;
-#line 1824 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = vadj;
-#line 1824 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_drag_select_endpoint (_tmp14_, _tmp15_, _tmp16_ + ((gint) gtk_adjustment_get_page_size (_tmp17_)));
-#line 1825 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 12337 "Page.c"
- }
-#line 1814 "/home/jens/Source/shotwell/src/Page.vala"
- case ADJUSTMENT_RELATION_IN_RANGE:
-#line 12341 "Page.c"
- {
-#line 1828 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->autoscroll_scheduled = FALSE;
-#line 1830 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 1830 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (vadj);
-#line 1830 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 12351 "Page.c"
- }
- default:
- {
-#line 1833 "/home/jens/Source/shotwell/src/Page.vala"
- g_warn_if_reached ();
-#line 1834 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 12359 "Page.c"
- }
- }
-#line 1840 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = vadj;
-#line 1840 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = new_value;
-#line 1840 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = vadj;
-#line 1840 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = vadj;
-#line 1840 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = vadj;
-#line 1840 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_adjustment_set_value (_tmp18_, (gdouble) CLAMP (_tmp19_, (gint) gtk_adjustment_get_lower (_tmp20_), ((gint) gtk_adjustment_get_upper (_tmp21_)) - ((gint) gtk_adjustment_get_page_size (_tmp22_))));
-#line 1843 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_updated_selection_band (self);
-#line 1845 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 1845 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (vadj);
-#line 1845 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 12382 "Page.c"
-}
-
-
-void
-checkerboard_page_cursor_to_item (CheckerboardPage* self,
- CheckerboardItem* item)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- CheckerboardItem* _tmp2_;
- CheckerboardLayout* _tmp12_;
- GtkAdjustment* vadj = NULL;
- GtkAdjustment* _tmp13_;
- GtkAdjustment* _tmp14_;
- gboolean _tmp15_ = FALSE;
- GtkAdjustment* _tmp16_;
- GdkRectangle _tmp17_;
- gint _tmp18_;
- gint top = 0;
- GdkRectangle _tmp24_;
- gint _tmp25_;
- GtkAdjustment* _tmp26_;
- GtkAdjustment* _tmp36_;
- gint _tmp37_;
-#line 1848 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1848 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (item));
-#line 1849 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1849 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1849 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_DATA_OBJECT, DataObject)), "get_view().contains(item)");
-#line 1849 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp1_);
-#line 1851 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _g_object_ref0 (item);
-#line 1851 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1851 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = _tmp2_;
-#line 1853 "/home/jens/Source/shotwell/src/Page.vala"
- if (!page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page))) {
-#line 12427 "Page.c"
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- Marker* marker = NULL;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- Marker* _tmp7_;
- Marker* _tmp8_;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- Marker* _tmp11_;
-#line 1854 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1854 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp3_;
-#line 1854 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_all (_tmp4_);
-#line 1854 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp4_);
-#line 1855 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1855 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _tmp5_;
-#line 1855 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_DATA_OBJECT, DataObject));
-#line 1855 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _tmp7_;
-#line 1855 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp6_);
-#line 1855 "/home/jens/Source/shotwell/src/Page.vala"
- marker = _tmp8_;
-#line 1856 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1856 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = _tmp9_;
-#line 1856 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = marker;
-#line 1856 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_select_marked (_tmp10_, _tmp11_);
-#line 1856 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp10_);
-#line 1853 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (marker);
-#line 12470 "Page.c"
- }
-#line 1858 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->priv->layout;
-#line 1858 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_layout_set_cursor (_tmp12_, item);
-#line 1861 "/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 1861 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 1861 "/home/jens/Source/shotwell/src/Page.vala"
- vadj = _tmp14_;
-#line 1862 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = vadj;
-#line 1862 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = item->allocation;
-#line 1862 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp17_.y;
-#line 1862 "/home/jens/Source/shotwell/src/Page.vala"
- if (get_adjustment_relation (_tmp16_, _tmp18_) == ADJUSTMENT_RELATION_IN_RANGE) {
-#line 12490 "Page.c"
- GtkAdjustment* _tmp19_;
- GdkRectangle _tmp20_;
- gint _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
-#line 1863 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = vadj;
-#line 1863 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = item->allocation;
-#line 1863 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = _tmp20_.y;
-#line 1863 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = item->allocation;
-#line 1863 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = _tmp22_.height;
-#line 1863 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = get_adjustment_relation (_tmp19_, _tmp21_ + _tmp23_) == ADJUSTMENT_RELATION_IN_RANGE;
-#line 12508 "Page.c"
- } else {
-#line 1862 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = FALSE;
-#line 12512 "Page.c"
- }
-#line 1862 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp15_) {
-#line 1864 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (vadj);
-#line 1864 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 12520 "Page.c"
- }
-#line 1867 "/home/jens/Source/shotwell/src/Page.vala"
- top = 0;
-#line 1868 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = item->allocation;
-#line 1868 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = _tmp24_.y;
-#line 1868 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = vadj;
-#line 1868 "/home/jens/Source/shotwell/src/Page.vala"
- if (((gdouble) _tmp25_) < gtk_adjustment_get_value (_tmp26_)) {
-#line 12532 "Page.c"
- GdkRectangle _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
-#line 1869 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = item->allocation;
-#line 1869 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = _tmp27_.y;
-#line 1869 "/home/jens/Source/shotwell/src/Page.vala"
- top = _tmp28_;
-#line 1870 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = top;
-#line 1870 "/home/jens/Source/shotwell/src/Page.vala"
- top = _tmp29_ - (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2);
-#line 12546 "Page.c"
- } else {
- GdkRectangle _tmp30_;
- gint _tmp31_;
- GdkRectangle _tmp32_;
- gint _tmp33_;
- GtkAdjustment* _tmp34_;
- gint _tmp35_;
-#line 1872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = item->allocation;
-#line 1872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = _tmp30_.y;
-#line 1872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = item->allocation;
-#line 1872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = _tmp32_.height;
-#line 1872 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = vadj;
-#line 1872 "/home/jens/Source/shotwell/src/Page.vala"
- top = (_tmp31_ + _tmp33_) - ((gint) gtk_adjustment_get_page_size (_tmp34_));
-#line 1873 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = top;
-#line 1873 "/home/jens/Source/shotwell/src/Page.vala"
- top = _tmp35_ + (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2);
-#line 12570 "Page.c"
- }
-#line 1876 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = vadj;
-#line 1876 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = top;
-#line 1876 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_adjustment_set_value (_tmp36_, (gdouble) _tmp37_);
-#line 1848 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (vadj);
-#line 12580 "Page.c"
-}
-
-
-void
-checkerboard_page_move_cursor (CheckerboardPage* self,
- CompassPoint point)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- CheckerboardItem* _tmp5_;
- CheckerboardItem* _tmp19_;
- CheckerboardItem* item = NULL;
- CheckerboardLayout* _tmp23_;
- CheckerboardItem* _tmp24_;
- CheckerboardItem* _tmp25_;
- CheckerboardItem* _tmp26_;
-#line 1879 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1881 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1881 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1881 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) == 0;
-#line 1881 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp1_);
-#line 1881 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp2_) {
-#line 1882 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 12614 "Page.c"
- }
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->cursor;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_ == NULL) {
-#line 12620 "Page.c"
- CheckerboardLayout* _tmp6_;
- CheckerboardItem* _tmp7_;
- CheckerboardItem* _tmp8_;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->layout;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = checkerboard_layout_get_cursor (_tmp6_);
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _tmp7_;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp8_ == NULL;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp8_);
-#line 12634 "Page.c"
- } else {
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = FALSE;
-#line 12638 "Page.c"
- }
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_) {
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = TRUE;
-#line 12644 "Page.c"
- } else {
- gboolean _tmp9_ = FALSE;
- CheckerboardItem* _tmp10_;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->cursor;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp10_ != NULL) {
-#line 12652 "Page.c"
- ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- CheckerboardItem* _tmp13_;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _tmp11_;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = self->cursor;
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = !data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject));
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp12_);
-#line 12666 "Page.c"
- } else {
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = FALSE;
-#line 12670 "Page.c"
- }
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp9_;
-#line 12674 "Page.c"
- }
-#line 1887 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 12678 "Page.c"
- CheckerboardItem* item = NULL;
- CheckerboardLayout* _tmp14_;
- CheckerboardItem* _tmp15_;
- CheckerboardItem* _tmp16_;
- CheckerboardItem* _tmp17_;
- CheckerboardItem* _tmp18_;
-#line 1888 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = self->priv->layout;
-#line 1888 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = checkerboard_layout_get_item_at_coordinate (_tmp14_, 0, 0);
-#line 1888 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp15_;
-#line 1889 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = item;
-#line 1889 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_cursor_to_item (self, _tmp16_);
-#line 1890 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = item;
-#line 1890 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 1890 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1890 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = _tmp18_;
-#line 1892 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1892 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 12707 "Page.c"
- }
-#line 1895 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = self->cursor;
-#line 1895 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp19_ == NULL) {
-#line 12713 "Page.c"
- CheckerboardLayout* _tmp20_;
- CheckerboardItem* _tmp21_;
- CheckerboardItem* _tmp22_;
-#line 1896 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = self->priv->layout;
-#line 1896 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = checkerboard_layout_get_cursor (_tmp20_);
-#line 1896 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_CHECKERBOARD_ITEM) ? ((CheckerboardItem*) _tmp21_) : NULL;
-#line 1896 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp22_ == NULL) {
-#line 1896 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp21_);
-#line 12727 "Page.c"
- }
-#line 1896 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1896 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = _tmp22_;
-#line 12733 "Page.c"
- }
-#line 1900 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = self->priv->layout;
-#line 1900 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = self->cursor;
-#line 1900 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = checkerboard_layout_get_item_relative_to (_tmp23_, _tmp24_, point);
-#line 1900 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp25_;
-#line 1901 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = item;
-#line 1901 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp26_ != NULL) {
-#line 12747 "Page.c"
- CheckerboardItem* _tmp27_;
-#line 1902 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = item;
-#line 1902 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_cursor_to_item (self, _tmp27_);
-#line 12753 "Page.c"
- }
-#line 1879 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 12757 "Page.c"
-}
-
-
-void
-checkerboard_page_set_cursor (CheckerboardPage* self,
- CheckerboardItem* item)
-{
- Marker* marker = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- Marker* _tmp2_;
- Marker* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- CheckerboardItem* _tmp6_;
- CheckerboardItem* _tmp7_;
-#line 1905 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1905 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (item));
-#line 1906 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1906 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1906 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_DATA_OBJECT, DataObject));
-#line 1906 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_;
-#line 1906 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp1_);
-#line 1906 "/home/jens/Source/shotwell/src/Page.vala"
- marker = _tmp3_;
-#line 1907 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1907 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 1907 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_select_marked (_tmp5_, marker);
-#line 1907 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 1909 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _g_object_ref0 (item);
-#line 1909 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1909 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = _tmp6_;
-#line 1910 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _g_object_ref0 (item);
-#line 1910 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1910 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = _tmp7_;
-#line 1905 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (marker);
-#line 12812 "Page.c"
-}
-
-
-void
-checkerboard_page_select_between_items (CheckerboardPage* self,
- CheckerboardItem* item_start,
- CheckerboardItem* item_end)
-{
- Marker* marker = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- Marker* _tmp2_;
- Marker* _tmp3_;
- gboolean passed_start = FALSE;
- gboolean passed_end = FALSE;
- ViewCollection* _tmp25_;
- ViewCollection* _tmp26_;
- Marker* _tmp27_;
-#line 1913 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1913 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (item_start));
-#line 1913 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (item_end));
-#line 1914 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1914 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1914 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1914 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_;
-#line 1914 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp1_);
-#line 1914 "/home/jens/Source/shotwell/src/Page.vala"
- marker = _tmp3_;
-#line 1916 "/home/jens/Source/shotwell/src/Page.vala"
- passed_start = FALSE;
-#line 1917 "/home/jens/Source/shotwell/src/Page.vala"
- passed_end = FALSE;
-#line 12853 "Page.c"
- {
- GeeIterator* _object_it = NULL;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- GeeIterator* _tmp8_;
- GeeIterator* _tmp9_;
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp8_;
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp7_);
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp5_);
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _object_it = _tmp9_;
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- while (TRUE) {
-#line 12882 "Page.c"
- GeeIterator* _tmp10_;
- DataObject* object = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- CheckerboardItem* item = NULL;
- DataObject* _tmp13_;
- CheckerboardItem* _tmp14_;
- CheckerboardItem* _tmp15_;
- CheckerboardItem* _tmp16_;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_;
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = _object_it;
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 12902 "Page.c"
- }
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _object_it;
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- object = (DataObject*) _tmp12_;
-#line 1920 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = object;
-#line 1920 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1920 "/home/jens/Source/shotwell/src/Page.vala"
- item = _tmp14_;
-#line 1922 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = item;
-#line 1922 "/home/jens/Source/shotwell/src/Page.vala"
- if (item_start == _tmp15_) {
-#line 1923 "/home/jens/Source/shotwell/src/Page.vala"
- passed_start = TRUE;
-#line 12922 "Page.c"
- }
-#line 1925 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = item;
-#line 1925 "/home/jens/Source/shotwell/src/Page.vala"
- if (item_end == _tmp16_) {
-#line 1926 "/home/jens/Source/shotwell/src/Page.vala"
- passed_end = TRUE;
-#line 12930 "Page.c"
- }
-#line 1928 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = passed_start;
-#line 1928 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp18_) {
-#line 1928 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = TRUE;
-#line 12938 "Page.c"
- } else {
- gboolean _tmp19_;
-#line 1928 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = passed_end;
-#line 1928 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = _tmp19_;
-#line 12945 "Page.c"
- }
-#line 1928 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp17_) {
-#line 12949 "Page.c"
- Marker* _tmp20_;
- DataObject* _tmp21_;
-#line 1929 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = marker;
-#line 1929 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = object;
-#line 1929 "/home/jens/Source/shotwell/src/Page.vala"
- marker_mark (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_VIEW, DataView), TYPE_DATA_OBJECT, DataObject));
-#line 12958 "Page.c"
- }
-#line 1931 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = passed_start;
-#line 1931 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp23_) {
-#line 12964 "Page.c"
- gboolean _tmp24_;
-#line 1931 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = passed_end;
-#line 1931 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = _tmp24_;
-#line 12970 "Page.c"
- } else {
-#line 1931 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = FALSE;
-#line 12974 "Page.c"
- }
-#line 1931 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp22_) {
-#line 1932 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1932 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (object);
-#line 1932 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 12984 "Page.c"
- }
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (item);
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (object);
-#line 12990 "Page.c"
- }
-#line 1919 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_object_it);
-#line 12994 "Page.c"
- }
-#line 1935 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1935 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = _tmp25_;
-#line 1935 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = marker;
-#line 1935 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_select_marked (_tmp26_, _tmp27_);
-#line 1935 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp26_);
-#line 1913 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (marker);
-#line 13008 "Page.c"
-}
-
-
-void
-checkerboard_page_select_anchor_to_cursor (CheckerboardPage* self,
- guint state)
-{
- gboolean _tmp0_ = FALSE;
- CheckerboardItem* _tmp1_;
-#line 1938 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1939 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->cursor;
-#line 1939 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 1939 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = TRUE;
-#line 13026 "Page.c"
- } else {
- CheckerboardItem* _tmp2_;
-#line 1939 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->anchor;
-#line 1939 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = _tmp2_ == NULL;
-#line 13033 "Page.c"
- }
-#line 1939 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 1940 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 13039 "Page.c"
- }
-#line 1942 "/home/jens/Source/shotwell/src/Page.vala"
- if (state == ((guint) GDK_SHIFT_MASK)) {
-#line 13043 "Page.c"
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- CheckerboardItem* _tmp5_;
- CheckerboardItem* _tmp6_;
-#line 1943 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1943 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp3_;
-#line 1943 "/home/jens/Source/shotwell/src/Page.vala"
- view_collection_unselect_all (_tmp4_);
-#line 1943 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp4_);
-#line 1944 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->anchor;
-#line 1944 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->cursor;
-#line 1944 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_select_between_items (self, _tmp5_, _tmp6_);
-#line 13062 "Page.c"
- } else {
- CheckerboardItem* _tmp7_;
- CheckerboardItem* _tmp8_;
-#line 1946 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->cursor;
-#line 1946 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 1946 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1946 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = _tmp8_;
-#line 13074 "Page.c"
- }
-}
-
-
-static void
-checkerboard_page_real_set_display_titles (CheckerboardPage* self,
- gboolean display)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- GValue _tmp4_ = {0};
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
-#line 1951 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1951 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1951 "/home/jens/Source/shotwell/src/Page.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1951 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp1_);
-#line 1952 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1952 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_;
-#line 1952 "/home/jens/Source/shotwell/src/Page.vala"
- g_value_init (&_tmp4_, G_TYPE_BOOLEAN);
-#line 1952 "/home/jens/Source/shotwell/src/Page.vala"
- g_value_set_boolean (&_tmp4_, display);
-#line 1952 "/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, &_tmp4_, NULL, NULL);
-#line 1952 "/home/jens/Source/shotwell/src/Page.vala"
- G_IS_VALUE (&_tmp4_) ? (g_value_unset (&_tmp4_), NULL) : NULL;
-#line 1952 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp3_);
-#line 1953 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1953 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _tmp5_;
-#line 1953 "/home/jens/Source/shotwell/src/Page.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1953 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp6_);
-#line 13120 "Page.c"
-}
-
-
-void
-checkerboard_page_set_display_titles (CheckerboardPage* self,
- gboolean display)
-{
-#line 1950 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1950 "/home/jens/Source/shotwell/src/Page.vala"
- CHECKERBOARD_PAGE_GET_CLASS (self)->set_display_titles (self, display);
-#line 13132 "Page.c"
-}
-
-
-static void
-checkerboard_page_real_set_display_comments (CheckerboardPage* self,
- gboolean display)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- GValue _tmp4_ = {0};
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
-#line 1957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1957 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 1957 "/home/jens/Source/shotwell/src/Page.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1957 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp1_);
-#line 1958 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1958 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_;
-#line 1958 "/home/jens/Source/shotwell/src/Page.vala"
- g_value_init (&_tmp4_, G_TYPE_BOOLEAN);
-#line 1958 "/home/jens/Source/shotwell/src/Page.vala"
- g_value_set_boolean (&_tmp4_, display);
-#line 1958 "/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, &_tmp4_, NULL, NULL);
-#line 1958 "/home/jens/Source/shotwell/src/Page.vala"
- G_IS_VALUE (&_tmp4_) ? (g_value_unset (&_tmp4_), NULL) : NULL;
-#line 1958 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp3_);
-#line 1959 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1959 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _tmp5_;
-#line 1959 "/home/jens/Source/shotwell/src/Page.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1959 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp6_);
-#line 13177 "Page.c"
-}
-
-
-void
-checkerboard_page_set_display_comments (CheckerboardPage* self,
- gboolean display)
-{
-#line 1956 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (self));
-#line 1956 "/home/jens/Source/shotwell/src/Page.vala"
- CHECKERBOARD_PAGE_GET_CLASS (self)->set_display_comments (self, display);
-#line 13189 "Page.c"
-}
-
-
-void
-checkerboard_page_keyboard_modifiers_init (CheckerboardPageKeyboardModifiers *self,
- Page* page)
-{
-#line 1236 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 1236 "/home/jens/Source/shotwell/src/Page.vala"
- memset (self, 0, sizeof (CheckerboardPageKeyboardModifiers));
-#line 1237 "/home/jens/Source/shotwell/src/Page.vala"
- (*self).ctrl_pressed = page_get_ctrl_pressed (page);
-#line 1238 "/home/jens/Source/shotwell/src/Page.vala"
- (*self).alt_pressed = page_get_alt_pressed (page);
-#line 1239 "/home/jens/Source/shotwell/src/Page.vala"
- (*self).shift_pressed = page_get_shift_pressed (page);
-#line 1240 "/home/jens/Source/shotwell/src/Page.vala"
- (*self).super_pressed = page_get_super_pressed (page);
-#line 13209 "Page.c"
-}
-
-
-CheckerboardPageKeyboardModifiers*
-checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self)
-{
- CheckerboardPageKeyboardModifiers* dup;
-#line 1235 "/home/jens/Source/shotwell/src/Page.vala"
- dup = g_new0 (CheckerboardPageKeyboardModifiers, 1);
-#line 1235 "/home/jens/Source/shotwell/src/Page.vala"
- memcpy (dup, self, sizeof (CheckerboardPageKeyboardModifiers));
-#line 1235 "/home/jens/Source/shotwell/src/Page.vala"
- return dup;
-#line 13223 "Page.c"
-}
-
-
-void
-checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self)
-{
-#line 1235 "/home/jens/Source/shotwell/src/Page.vala"
- g_free (self);
-#line 13232 "Page.c"
-}
-
-
-GType
-checkerboard_page_keyboard_modifiers_get_type (void)
-{
- static volatile gsize checkerboard_page_keyboard_modifiers_type_id__volatile = 0;
- if (g_once_init_enter (&checkerboard_page_keyboard_modifiers_type_id__volatile)) {
- GType checkerboard_page_keyboard_modifiers_type_id;
- checkerboard_page_keyboard_modifiers_type_id = g_boxed_type_register_static ("CheckerboardPageKeyboardModifiers", (GBoxedCopyFunc) checkerboard_page_keyboard_modifiers_dup, (GBoxedFreeFunc) checkerboard_page_keyboard_modifiers_free);
- g_once_init_leave (&checkerboard_page_keyboard_modifiers_type_id__volatile, checkerboard_page_keyboard_modifiers_type_id);
- }
- return checkerboard_page_keyboard_modifiers_type_id__volatile;
-}
-
-
-static void
-checkerboard_page_class_init (CheckerboardPageClass * klass)
-{
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- checkerboard_page_parent_class = g_type_class_peek_parent (klass);
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- g_type_class_add_private (klass, sizeof (CheckerboardPagePrivate));
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->get_item_context_menu = (GtkMenu* (*) (CheckerboardPage *)) checkerboard_page_real_get_item_context_menu;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->get_page_context_menu = (GtkMenu* (*) (Page *)) checkerboard_page_real_get_page_context_menu;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_context_keypress = (gboolean (*) (Page *)) checkerboard_page_real_on_context_keypress;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->get_view_empty_message = (gchar* (*) (CheckerboardPage *)) checkerboard_page_real_get_view_empty_message;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->get_filter_no_match_message = (gchar* (*) (CheckerboardPage *)) checkerboard_page_real_get_filter_no_match_message;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->on_item_activated = (void (*) (CheckerboardPage *, CheckerboardItem*, CheckerboardPageActivator, CheckerboardPageKeyboardModifiers*)) checkerboard_page_real_on_item_activated;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) checkerboard_page_real_get_search_view_filter;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) checkerboard_page_real_get_view_tracker;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->switching_from = (void (*) (Page *)) checkerboard_page_real_switching_from;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) checkerboard_page_real_switched_to;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->set_page_name = (void (*) (Page *, const gchar*)) checkerboard_page_real_set_page_name;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) checkerboard_page_real_key_press_event;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_left_click = (gboolean (*) (Page *, GdkEventButton*)) checkerboard_page_real_on_left_click;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_left_released = (gboolean (*) (Page *, GdkEventButton*)) checkerboard_page_real_on_left_released;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_right_click = (gboolean (*) (Page *, GdkEventButton*)) checkerboard_page_real_on_right_click;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->on_mouse_over = (gboolean (*) (CheckerboardPage *, CheckerboardItem*, gint, gint, GdkModifierType)) checkerboard_page_real_on_mouse_over;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_motion = (gboolean (*) (Page *, GdkEventMotion*, gint, gint, GdkModifierType)) checkerboard_page_real_on_motion;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->set_display_titles = (void (*) (CheckerboardPage *, gboolean)) checkerboard_page_real_set_display_titles;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- ((CheckerboardPageClass *) klass)->set_display_comments = (void (*) (CheckerboardPage *, gboolean)) checkerboard_page_real_set_display_comments;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- G_OBJECT_CLASS (klass)->finalize = checkerboard_page_finalize;
-#line 13296 "Page.c"
-}
-
-
-static void
-checkerboard_page_instance_init (CheckerboardPage * self)
-{
- GtkViewport* _tmp0_;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv = CHECKERBOARD_PAGE_GET_PRIVATE (self);
-#line 1220 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->item_context_menu_path = NULL;
-#line 1221 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->page_context_menu_path = NULL;
-#line 1222 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = (GtkViewport*) gtk_viewport_new (NULL, NULL);
-#line 1222 "/home/jens/Source/shotwell/src/Page.vala"
- g_object_ref_sink (_tmp0_);
-#line 1222 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->viewport = _tmp0_;
-#line 1223 "/home/jens/Source/shotwell/src/Page.vala"
- self->anchor = NULL;
-#line 1224 "/home/jens/Source/shotwell/src/Page.vala"
- self->cursor = NULL;
-#line 1225 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->highlighted = NULL;
-#line 1226 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->autoscroll_scheduled = FALSE;
-#line 1227 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->activated_item = NULL;
-#line 1228 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->previously_selected = NULL;
-#line 13328 "Page.c"
-}
-
-
-static void
-checkerboard_page_finalize (GObject * obj)
-{
- CheckerboardPage * self;
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_PAGE, CheckerboardPage);
-#line 1219 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->layout);
-#line 1220 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->item_context_menu_path);
-#line 1221 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (self->priv->page_context_menu_path);
-#line 1222 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->viewport);
-#line 1223 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->anchor);
-#line 1224 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->cursor);
-#line 1225 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->highlighted);
-#line 1227 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->activated_item);
-#line 1228 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->previously_selected);
-#line 1295 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->item_context_menu);
-#line 1307 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->page_context_menu);
-#line 1215 "/home/jens/Source/shotwell/src/Page.vala"
- G_OBJECT_CLASS (checkerboard_page_parent_class)->finalize (obj);
-#line 13362 "Page.c"
-}
-
-
-GType
-checkerboard_page_get_type (void)
-{
- static volatile gsize checkerboard_page_type_id__volatile = 0;
- if (g_once_init_enter (&checkerboard_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CheckerboardPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardPage), 0, (GInstanceInitFunc) checkerboard_page_instance_init, NULL };
- GType checkerboard_page_type_id;
- checkerboard_page_type_id = g_type_register_static (TYPE_PAGE, "CheckerboardPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&checkerboard_page_type_id__volatile, checkerboard_page_type_id);
- }
- return checkerboard_page_type_id__volatile;
-}
-
-
-static void
-_single_photo_page_on_colors_changed_config_facade_colors_changed (ConfigFacade* _sender,
- gpointer self)
-{
-#line 2026 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_on_colors_changed ((SinglePhotoPage*) self);
-#line 13386 "Page.c"
-}
-
-
-GType
-single_photo_page_update_reason_get_type (void)
-{
- static volatile gsize single_photo_page_update_reason_type_id__volatile = 0;
- if (g_once_init_enter (&single_photo_page_update_reason_type_id__volatile)) {
- static const GEnumValue values[] = {{SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF, "SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF", "new-pixbuf"}, {SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT, "SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT", "quality-improvement"}, {SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS, "SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS", "resized-canvas"}, {0, NULL, NULL}};
- GType single_photo_page_update_reason_type_id;
- single_photo_page_update_reason_type_id = g_enum_register_static ("SinglePhotoPageUpdateReason", values);
- g_once_init_leave (&single_photo_page_update_reason_type_id__volatile, single_photo_page_update_reason_type_id);
- }
- return single_photo_page_update_reason_type_id__volatile;
-}
-
-
-static void
-_single_photo_page_on_viewport_resize_gtk_widget_size_allocate (GtkWidget* _sender,
- GtkAllocation* allocation,
- gpointer self)
-{
-#line 2018 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_on_viewport_resize ((SinglePhotoPage*) self);
-#line 13411 "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 2019 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 13424 "Page.c"
-}
-
-
-SinglePhotoPage*
-single_photo_page_construct (GType object_type,
- const gchar* page_name,
- gboolean scale_up_to_viewport)
-{
- SinglePhotoPage * self = NULL;
- TransitionEffectsManager* _tmp0_;
- TransitionEffectsManager* _tmp1_;
- TransitionClock* _tmp2_;
- GtkViewport* _tmp3_;
- GtkViewport* _tmp4_;
- GtkViewport* _tmp5_;
- GtkDrawingArea* _tmp6_;
- GtkViewport* _tmp7_;
- GtkDrawingArea* _tmp8_;
- GtkViewport* _tmp9_;
- GtkDrawingArea* _tmp10_;
- GtkDrawingArea* _tmp11_;
- ConfigFacade* _tmp12_;
- ConfigFacade* _tmp13_;
-#line 1995 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (page_name != NULL, NULL);
-#line 1996 "/home/jens/Source/shotwell/src/Page.vala"
- self = (SinglePhotoPage*) page_construct (object_type, page_name);
-#line 1998 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scale_up_to_viewport = scale_up_to_viewport;
-#line 2000 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = transition_effects_manager_get_instance ();
-#line 2000 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 2000 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = transition_effects_manager_create_null_transition_clock (_tmp1_);
-#line 2000 "/home/jens/Source/shotwell/src/Page.vala"
- _transition_clock_unref0 (self->priv->transition_clock);
-#line 2000 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->transition_clock = _tmp2_;
-#line 2000 "/home/jens/Source/shotwell/src/Page.vala"
- _transition_effects_manager_unref0 (_tmp1_);
-#line 2004 "/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 2006 "/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 2007 "/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 2009 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->viewport;
-#line 2009 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_viewport_set_shadow_type (_tmp3_, GTK_SHADOW_NONE);
-#line 2010 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->viewport;
-#line 2010 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_container_get_type (), GtkContainer), (guint) 0);
-#line 2011 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->viewport;
-#line 2011 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->canvas;
-#line 2011 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget));
-#line 2013 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->viewport;
-#line 2013 "/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 (_tmp7_, gtk_widget_get_type (), GtkWidget));
-#line 2015 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->canvas;
-#line 2015 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), (gint) ((GDK_EXPOSURE_MASK | GDK_STRUCTURE_MASK) | GDK_SUBSTRUCTURE_MASK));
-#line 2018 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->viewport;
-#line 2018 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _single_photo_page_on_viewport_resize_gtk_widget_size_allocate, self, 0);
-#line 2019 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->canvas;
-#line 2019 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), "draw", (GCallback) _single_photo_page_on_canvas_exposed_gtk_widget_draw, self, 0);
-#line 2021 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = self->canvas;
-#line 2021 "/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 (_tmp11_, gtk_widget_get_type (), GtkWidget));
-#line 2022 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = config_facade_get_instance ();
-#line 2022 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = _tmp12_;
-#line 2022 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect_object (_tmp13_, "colors-changed", (GCallback) _single_photo_page_on_colors_changed_config_facade_colors_changed, self, 0);
-#line 2022 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp13_);
-#line 1995 "/home/jens/Source/shotwell/src/Page.vala"
- return self;
-#line 13516 "Page.c"
-}
-
-
-gboolean
-single_photo_page_is_transition_in_progress (SinglePhotoPage* self)
-{
- gboolean result = FALSE;
- TransitionClock* _tmp0_;
-#line 2029 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE);
-#line 2030 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->transition_clock;
-#line 2030 "/home/jens/Source/shotwell/src/Page.vala"
- result = transition_clock_is_in_progress (_tmp0_);
-#line 2030 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 13533 "Page.c"
-}
-
-
-void
-single_photo_page_cancel_transition (SinglePhotoPage* self)
-{
- TransitionClock* _tmp0_;
-#line 2033 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2034 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->transition_clock;
-#line 2034 "/home/jens/Source/shotwell/src/Page.vala"
- if (transition_clock_is_in_progress (_tmp0_)) {
-#line 13547 "Page.c"
- TransitionClock* _tmp1_;
-#line 2035 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->transition_clock;
-#line 2035 "/home/jens/Source/shotwell/src/Page.vala"
- transition_clock_cancel (_tmp1_);
-#line 13553 "Page.c"
- }
-}
-
-
-void
-single_photo_page_set_transition (SinglePhotoPage* self,
- const gchar* effect_id,
- gint duration_msec)
-{
- TransitionEffectsManager* _tmp0_;
- TransitionEffectsManager* _tmp1_;
- TransitionClock* _tmp2_;
- TransitionClock* _tmp3_;
-#line 2038 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2038 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (effect_id != NULL);
-#line 2039 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_cancel_transition (self);
-#line 2041 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = transition_effects_manager_get_instance ();
-#line 2041 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 2041 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = transition_effects_manager_create_transition_clock (_tmp1_, effect_id);
-#line 2041 "/home/jens/Source/shotwell/src/Page.vala"
- _transition_clock_unref0 (self->priv->transition_clock);
-#line 2041 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->transition_clock = _tmp2_;
-#line 2041 "/home/jens/Source/shotwell/src/Page.vala"
- _transition_effects_manager_unref0 (_tmp1_);
-#line 2042 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->transition_clock;
-#line 2042 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_ == NULL) {
-#line 13589 "Page.c"
- TransitionEffectsManager* _tmp4_;
- TransitionEffectsManager* _tmp5_;
- TransitionClock* _tmp6_;
-#line 2043 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = transition_effects_manager_get_instance ();
-#line 2043 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 2043 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = transition_effects_manager_create_null_transition_clock (_tmp5_);
-#line 2043 "/home/jens/Source/shotwell/src/Page.vala"
- _transition_clock_unref0 (self->priv->transition_clock);
-#line 2043 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->transition_clock = _tmp6_;
-#line 2043 "/home/jens/Source/shotwell/src/Page.vala"
- _transition_effects_manager_unref0 (_tmp5_);
-#line 13605 "Page.c"
- }
-#line 2045 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->transition_duration_msec = duration_msec;
-#line 13609 "Page.c"
-}
-
-
-static void
-single_photo_page_render_zoomed_to_pixmap (SinglePhotoPage* self,
- ZoomState* zoom_state)
-{
- GdkRectangle view_rect = {0};
- GdkRectangle _tmp0_ = {0};
- GdkPixbuf* zoomed = NULL;
- ZoomBuffer* _tmp1_;
- ZoomBuffer* _tmp2_;
- gboolean _tmp3_;
- GdkPixbuf* _tmp33_;
- gint draw_x = 0;
- Dimensions _tmp34_;
- gint _tmp35_;
- GdkRectangle _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- gint draw_y = 0;
- Dimensions _tmp39_;
- gint _tmp40_;
- GdkRectangle _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- cairo_t* _tmp44_;
- GdkPixbuf* _tmp45_;
- gint _tmp46_;
- gint _tmp47_;
-#line 2049 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2049 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (zoom_state != NULL);
-#line 2050 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()");
-#line 2052 "/home/jens/Source/shotwell/src/Page.vala"
- zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp0_);
-#line 2052 "/home/jens/Source/shotwell/src/Page.vala"
- view_rect = _tmp0_;
-#line 2055 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = single_photo_page_get_zoom_buffer (self);
-#line 2055 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 2055 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp2_ != NULL;
-#line 2055 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp2_);
-#line 2055 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 13660 "Page.c"
- GdkPixbuf* _tmp4_ = NULL;
- gboolean _tmp5_;
- GdkPixbuf* _tmp14_;
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->zoom_high_quality;
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_) {
-#line 13668 "Page.c"
- ZoomBuffer* _tmp6_;
- ZoomBuffer* _tmp7_;
- ZoomState _tmp8_;
- GdkPixbuf* _tmp9_;
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = single_photo_page_get_zoom_buffer (self);
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = *zoom_state;
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = zoom_buffer_get_zoomed_image (_tmp7_, &_tmp8_);
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp4_);
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp9_;
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp7_);
-#line 13687 "Page.c"
- } else {
- ZoomBuffer* _tmp10_;
- ZoomBuffer* _tmp11_;
- ZoomState _tmp12_;
- GdkPixbuf* _tmp13_;
-#line 2057 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = single_photo_page_get_zoom_buffer (self);
-#line 2057 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = _tmp10_;
-#line 2057 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = *zoom_state;
-#line 2057 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = zoom_buffer_get_zoom_preview_image (_tmp11_, &_tmp12_);
-#line 2057 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp4_);
-#line 2057 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp13_;
-#line 2057 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp11_);
-#line 13707 "Page.c"
- }
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _g_object_ref0 (_tmp4_);
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (zoomed);
-#line 2056 "/home/jens/Source/shotwell/src/Page.vala"
- zoomed = _tmp14_;
-#line 2055 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp4_);
-#line 13717 "Page.c"
- } else {
- GdkRectangle view_rect_proj = {0};
- GdkPixbuf* _tmp15_;
- GdkRectangle _tmp16_ = {0};
- GdkPixbuf* proj_subpixbuf = NULL;
- GdkPixbuf* _tmp17_;
- GdkRectangle _tmp18_;
- gint _tmp19_;
- GdkRectangle _tmp20_;
- gint _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
- GdkRectangle _tmp24_;
- gint _tmp25_;
- GdkPixbuf* _tmp26_;
- GdkPixbuf* _tmp27_;
- GdkRectangle _tmp28_;
- gint _tmp29_;
- GdkRectangle _tmp30_;
- gint _tmp31_;
- GdkPixbuf* _tmp32_;
-#line 2059 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = self->priv->unscaled;
-#line 2059 "/home/jens/Source/shotwell/src/Page.vala"
- zoom_state_get_viewing_rectangle_projection (zoom_state, _tmp15_, &_tmp16_);
-#line 2059 "/home/jens/Source/shotwell/src/Page.vala"
- view_rect_proj = _tmp16_;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = self->priv->unscaled;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = view_rect_proj;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = _tmp18_.x;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = view_rect_proj;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = _tmp20_.y;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = view_rect_proj;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = _tmp22_.width;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = view_rect_proj;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = _tmp24_.height;
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = gdk_pixbuf_new_subpixbuf (_tmp17_, _tmp19_, _tmp21_, _tmp23_, _tmp25_);
-#line 2061 "/home/jens/Source/shotwell/src/Page.vala"
- proj_subpixbuf = _tmp26_;
-#line 2064 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = proj_subpixbuf;
-#line 2064 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = view_rect;
-#line 2064 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = _tmp28_.width;
-#line 2064 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = view_rect;
-#line 2064 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = _tmp30_.height;
-#line 2064 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = gdk_pixbuf_scale_simple (_tmp27_, _tmp29_, _tmp31_, GDK_INTERP_BILINEAR);
-#line 2064 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (zoomed);
-#line 2064 "/home/jens/Source/shotwell/src/Page.vala"
- zoomed = _tmp32_;
-#line 2055 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (proj_subpixbuf);
-#line 13785 "Page.c"
- }
-#line 2068 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = zoomed;
-#line 2068 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp33_ == NULL) {
-#line 2069 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (zoomed);
-#line 2069 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 13795 "Page.c"
- }
-#line 2072 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = self->priv->pixmap_dim;
-#line 2072 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = _tmp34_.width;
-#line 2072 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = view_rect;
-#line 2072 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = _tmp36_.width;
-#line 2072 "/home/jens/Source/shotwell/src/Page.vala"
- draw_x = (_tmp35_ - _tmp37_) / 2;
-#line 2073 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = draw_x;
-#line 2073 "/home/jens/Source/shotwell/src/Page.vala"
- draw_x = CLAMP (_tmp38_, 0, G_MAXINT);
-#line 2075 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = self->priv->pixmap_dim;
-#line 2075 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp40_ = _tmp39_.height;
-#line 2075 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = view_rect;
-#line 2075 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = _tmp41_.height;
-#line 2075 "/home/jens/Source/shotwell/src/Page.vala"
- draw_y = (_tmp40_ - _tmp42_) / 2;
-#line 2076 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = draw_y;
-#line 2076 "/home/jens/Source/shotwell/src/Page.vala"
- draw_y = CLAMP (_tmp43_, 0, G_MAXINT);
-#line 2077 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp44_ = self->priv->pixmap_ctx;
-#line 2077 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp45_ = zoomed;
-#line 2077 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp46_ = draw_x;
-#line 2077 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp47_ = draw_y;
-#line 2077 "/home/jens/Source/shotwell/src/Page.vala"
- paint_pixmap_with_background (_tmp44_, _tmp45_, _tmp46_, _tmp47_);
-#line 2049 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (zoomed);
-#line 13837 "Page.c"
-}
-
-
-void
-single_photo_page_on_interactive_zoom (SinglePhotoPage* self,
- ZoomState* interactive_zoom_state)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- gboolean old_quality_setting = FALSE;
- gboolean _tmp2_;
- ZoomState _tmp3_;
- GtkDrawingArea* _tmp4_;
-#line 2080 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2080 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (interactive_zoom_state != NULL);
-#line 2081 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()");
-#line 2083 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->pixmap_ctx;
-#line 2083 "/home/jens/Source/shotwell/src/Page.vala"
- set_source_color_from_string (_tmp0_, "#000");
-#line 2084 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->pixmap_ctx;
-#line 2084 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_paint (_tmp1_);
-#line 2086 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->zoom_high_quality;
-#line 2086 "/home/jens/Source/shotwell/src/Page.vala"
- old_quality_setting = _tmp2_;
-#line 2087 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->zoom_high_quality = FALSE;
-#line 2088 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = *interactive_zoom_state;
-#line 2088 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_render_zoomed_to_pixmap (self, &_tmp3_);
-#line 2089 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->zoom_high_quality = old_quality_setting;
-#line 2091 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->canvas;
-#line 2091 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 13881 "Page.c"
-}
-
-
-void
-single_photo_page_on_interactive_pan (SinglePhotoPage* self,
- ZoomState* interactive_zoom_state)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- gboolean old_quality_setting = FALSE;
- gboolean _tmp2_;
- ZoomState _tmp3_;
- GtkDrawingArea* _tmp4_;
-#line 2094 "/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"
- g_return_if_fail (interactive_zoom_state != NULL);
-#line 2095 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()");
-#line 2097 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->pixmap_ctx;
-#line 2097 "/home/jens/Source/shotwell/src/Page.vala"
- set_source_color_from_string (_tmp0_, "#000");
-#line 2098 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->pixmap_ctx;
-#line 2098 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_paint (_tmp1_);
-#line 2100 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->zoom_high_quality;
-#line 2100 "/home/jens/Source/shotwell/src/Page.vala"
- old_quality_setting = _tmp2_;
-#line 2101 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->zoom_high_quality = TRUE;
-#line 2102 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = *interactive_zoom_state;
-#line 2102 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_render_zoomed_to_pixmap (self, &_tmp3_);
-#line 2103 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->zoom_high_quality = old_quality_setting;
-#line 2105 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->canvas;
-#line 2105 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 13925 "Page.c"
-}
-
-
-static gboolean
-single_photo_page_real_is_zoom_supported (SinglePhotoPage* self)
-{
- gboolean result = FALSE;
-#line 2109 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 2109 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 13937 "Page.c"
-}
-
-
-gboolean
-single_photo_page_is_zoom_supported (SinglePhotoPage* self)
-{
-#line 2108 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE);
-#line 2108 "/home/jens/Source/shotwell/src/Page.vala"
- return SINGLE_PHOTO_PAGE_GET_CLASS (self)->is_zoom_supported (self);
-#line 13948 "Page.c"
-}
-
-
-static void
-single_photo_page_real_cancel_zoom (SinglePhotoPage* self)
-{
- cairo_surface_t* _tmp0_;
-#line 2113 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->pixmap;
-#line 2113 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ != NULL) {
-#line 13960 "Page.c"
- cairo_t* _tmp1_;
- cairo_t* _tmp2_;
-#line 2114 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->pixmap_ctx;
-#line 2114 "/home/jens/Source/shotwell/src/Page.vala"
- set_source_color_from_string (_tmp1_, "#000");
-#line 2115 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->pixmap_ctx;
-#line 2115 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_paint (_tmp2_);
-#line 13971 "Page.c"
- }
-}
-
-
-void
-single_photo_page_cancel_zoom (SinglePhotoPage* self)
-{
-#line 2112 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2112 "/home/jens/Source/shotwell/src/Page.vala"
- SINGLE_PHOTO_PAGE_GET_CLASS (self)->cancel_zoom (self);
-#line 13983 "Page.c"
-}
-
-
-static void
-single_photo_page_real_save_zoom_state (SinglePhotoPage* self)
-{
- ZoomState _tmp0_;
-#line 2120 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->static_zoom_state;
-#line 2120 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->saved_zoom_state = _tmp0_;
-#line 2121 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->has_saved_zoom_state = TRUE;
-#line 13997 "Page.c"
-}
-
-
-void
-single_photo_page_save_zoom_state (SinglePhotoPage* self)
-{
-#line 2119 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2119 "/home/jens/Source/shotwell/src/Page.vala"
- SINGLE_PHOTO_PAGE_GET_CLASS (self)->save_zoom_state (self);
-#line 14008 "Page.c"
-}
-
-
-static void
-single_photo_page_real_restore_zoom_state (SinglePhotoPage* self)
-{
- gboolean _tmp0_;
- ZoomState _tmp1_;
-#line 2125 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->has_saved_zoom_state;
-#line 2125 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp0_) {
-#line 2126 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14023 "Page.c"
- }
-#line 2128 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->saved_zoom_state;
-#line 2128 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->static_zoom_state = _tmp1_;
-#line 2129 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_repaint (self, NULL);
-#line 2130 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->has_saved_zoom_state = FALSE;
-#line 14033 "Page.c"
-}
-
-
-void
-single_photo_page_restore_zoom_state (SinglePhotoPage* self)
-{
-#line 2124 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2124 "/home/jens/Source/shotwell/src/Page.vala"
- SINGLE_PHOTO_PAGE_GET_CLASS (self)->restore_zoom_state (self);
-#line 14044 "Page.c"
-}
-
-
-static ZoomBuffer*
-single_photo_page_real_get_zoom_buffer (SinglePhotoPage* self)
-{
- ZoomBuffer* result = NULL;
-#line 2134 "/home/jens/Source/shotwell/src/Page.vala"
- result = NULL;
-#line 2134 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 14056 "Page.c"
-}
-
-
-ZoomBuffer*
-single_photo_page_get_zoom_buffer (SinglePhotoPage* self)
-{
-#line 2133 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL);
-#line 2133 "/home/jens/Source/shotwell/src/Page.vala"
- return SINGLE_PHOTO_PAGE_GET_CLASS (self)->get_zoom_buffer (self);
-#line 14067 "Page.c"
-}
-
-
-void
-single_photo_page_get_saved_zoom_state (SinglePhotoPage* self,
- ZoomState* result)
-{
- ZoomState _tmp0_;
-#line 2137 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2138 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->saved_zoom_state;
-#line 2138 "/home/jens/Source/shotwell/src/Page.vala"
- *result = _tmp0_;
-#line 2138 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14084 "Page.c"
-}
-
-
-void
-single_photo_page_set_zoom_state (SinglePhotoPage* self,
- ZoomState* zoom_state)
-{
- ZoomState _tmp0_;
-#line 2141 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2141 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (zoom_state != NULL);
-#line 2142 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()");
-#line 2144 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = *zoom_state;
-#line 2144 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->static_zoom_state = _tmp0_;
-#line 14103 "Page.c"
-}
-
-
-void
-single_photo_page_get_zoom_state (SinglePhotoPage* self,
- ZoomState* result)
-{
- ZoomState _tmp0_;
-#line 2147 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2148 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()");
-#line 2150 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->static_zoom_state;
-#line 2150 "/home/jens/Source/shotwell/src/Page.vala"
- *result = _tmp0_;
-#line 2150 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14122 "Page.c"
-}
-
-
-static void
-single_photo_page_real_switched_to (Page* base)
-{
- SinglePhotoPage * self;
- GdkPixbuf* _tmp0_;
-#line 2153 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage);
-#line 2154 "/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 2156 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->unscaled;
-#line 2156 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ != NULL) {
-#line 2157 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_repaint (self, NULL);
-#line 14141 "Page.c"
- }
-}
-
-
-static void
-single_photo_page_real_set_container (Page* base,
- GtkWindow* container)
-{
- SinglePhotoPage * self;
-#line 2160 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage);
-#line 2160 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GTK_IS_WINDOW (container));
-#line 2161 "/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), container);
-#line 2165 "/home/jens/Source/shotwell/src/Page.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (container, TYPE_FULLSCREEN_WINDOW)) {
-#line 2166 "/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 14161 "Page.c"
- }
-}
-
-
-void
-single_photo_page_set_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* unscaled,
- Dimensions* max_dim,
- Direction* direction)
-{
- Dimensions _tmp0_;
- Dimensions _tmp1_;
- GdkPoint _tmp2_ = {0};
- GdkPixbuf* _tmp3_;
- Dimensions _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
- GtkDrawingArea* _tmp7_;
-#line 2173 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2173 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GDK_IS_PIXBUF (unscaled));
-#line 2173 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (max_dim != NULL);
-#line 2174 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = *max_dim;
-#line 2174 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->pixmap_dim;
-#line 2174 "/home/jens/Source/shotwell/src/Page.vala"
- zoom_state_get_viewport_center (&self->priv->static_zoom_state, &_tmp2_);
-#line 2174 "/home/jens/Source/shotwell/src/Page.vala"
- zoom_state_init (&self->priv->static_zoom_state, &_tmp0_, &_tmp1_, zoom_state_get_interpolation_factor (&self->priv->static_zoom_state), &_tmp2_);
-#line 2178 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_cancel_transition (self);
-#line 2180 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _g_object_ref0 (unscaled);
-#line 2180 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->unscaled);
-#line 2180 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->unscaled = _tmp3_;
-#line 2181 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = *max_dim;
-#line 2181 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->max_dim = _tmp4_;
-#line 2182 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->scaled;
-#line 2182 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
-#line 2182 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->old_scaled);
-#line 2182 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->old_scaled = _tmp6_;
-#line 2183 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->scaled);
-#line 2183 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled = NULL;
-#line 2186 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->canvas;
-#line 2186 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_realize (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
-#line 2188 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_repaint (self, direction);
-#line 14224 "Page.c"
-}
-
-
-void
-single_photo_page_blank_display (SinglePhotoPage* self)
-{
- GtkDrawingArea* _tmp0_;
-#line 2191 "/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"
- _g_object_unref0 (self->priv->unscaled);
-#line 2192 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->unscaled = NULL;
-#line 2193 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_init (&self->priv->max_dim, 0, 0);
-#line 2194 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->scaled);
-#line 2194 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled = NULL;
-#line 2195 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_surface_destroy0 (self->priv->pixmap);
-#line 2195 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->pixmap = NULL;
-#line 2198 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->canvas;
-#line 2198 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_realize (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 2201 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_invalidate_all (self);
-#line 14254 "Page.c"
-}
-
-
-static gpointer
-_cairo_surface_reference0 (gpointer self)
-{
-#line 2205 "/home/jens/Source/shotwell/src/Page.vala"
- return self ? cairo_surface_reference (self) : NULL;
-#line 14263 "Page.c"
-}
-
-
-cairo_surface_t*
-single_photo_page_get_surface (SinglePhotoPage* self)
-{
- cairo_surface_t* result = NULL;
- cairo_surface_t* _tmp0_;
- cairo_surface_t* _tmp1_;
-#line 2204 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL);
-#line 2205 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->pixmap;
-#line 2205 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _cairo_surface_reference0 (_tmp0_);
-#line 2205 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 2205 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 14283 "Page.c"
-}
-
-
-void
-single_photo_page_get_surface_dim (SinglePhotoPage* self,
- Dimensions* result)
-{
- Dimensions _tmp0_;
-#line 2208 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2209 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->pixmap_dim;
-#line 2209 "/home/jens/Source/shotwell/src/Page.vala"
- *result = _tmp0_;
-#line 2209 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14300 "Page.c"
-}
-
-
-static gpointer
-_cairo_reference0 (gpointer self)
-{
-#line 2213 "/home/jens/Source/shotwell/src/Page.vala"
- return self ? cairo_reference (self) : NULL;
-#line 14309 "Page.c"
-}
-
-
-cairo_t*
-single_photo_page_get_cairo_context (SinglePhotoPage* self)
-{
- cairo_t* result = NULL;
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
-#line 2212 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL);
-#line 2213 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->pixmap_ctx;
-#line 2213 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _cairo_reference0 (_tmp0_);
-#line 2213 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 2213 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 14329 "Page.c"
-}
-
-
-void
-single_photo_page_paint_text (SinglePhotoPage* self,
- PangoLayout* pango_layout,
- gint x,
- gint y)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
-#line 2216 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2216 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (PANGO_IS_LAYOUT (pango_layout));
-#line 2217 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->text_ctx;
-#line 2217 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_move_to (_tmp0_, (gdouble) x, (gdouble) y);
-#line 2218 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->text_ctx;
-#line 2218 "/home/jens/Source/shotwell/src/Page.vala"
- pango_cairo_show_layout (_tmp1_, pango_layout);
-#line 14353 "Page.c"
-}
-
-
-void
-single_photo_page_get_canvas_scaling (SinglePhotoPage* self,
- Scaling* result)
-{
- Scaling _tmp0_ = {0};
- GtkWindow* _tmp1_;
- GtkWindow* _tmp2_;
- gboolean _tmp3_;
-#line 2221 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_FULLSCREEN_WINDOW);
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp2_);
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 14377 "Page.c"
- GtkWindow* _tmp4_;
- GtkWindow* _tmp5_;
- gboolean _tmp6_;
- Scaling _tmp7_ = {0};
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = _tmp4_;
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->scale_up_to_viewport;
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- scaling_for_screen (_tmp5_, _tmp6_, &_tmp7_);
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = _tmp7_;
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp5_);
-#line 14394 "Page.c"
- } else {
- GtkViewport* _tmp8_;
- gboolean _tmp9_;
- Scaling _tmp10_ = {0};
-#line 2223 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->viewport;
-#line 2223 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->priv->scale_up_to_viewport;
-#line 2223 "/home/jens/Source/shotwell/src/Page.vala"
- scaling_for_widget (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), _tmp9_, &_tmp10_);
-#line 2223 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = _tmp10_;
-#line 14407 "Page.c"
- }
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- *result = _tmp0_;
-#line 2222 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14413 "Page.c"
-}
-
-
-GdkPixbuf*
-single_photo_page_get_unscaled_pixbuf (SinglePhotoPage* self)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 2226 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL);
-#line 2227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->unscaled;
-#line 2227 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 2227 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 2227 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 14433 "Page.c"
-}
-
-
-GdkPixbuf*
-single_photo_page_get_scaled_pixbuf (SinglePhotoPage* self)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 2230 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL);
-#line 2231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->scaled;
-#line 2231 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 2231 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp1_;
-#line 2231 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 14453 "Page.c"
-}
-
-
-void
-single_photo_page_get_scaled_pixbuf_position (SinglePhotoPage* self,
- GdkRectangle* result)
-{
- GdkRectangle _tmp0_;
-#line 2235 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2236 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->scaled_pos;
-#line 2236 "/home/jens/Source/shotwell/src/Page.vala"
- *result = _tmp0_;
-#line 2236 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14470 "Page.c"
-}
-
-
-gboolean
-single_photo_page_is_inside_pixbuf (SinglePhotoPage* self,
- gint x,
- gint y)
-{
- gboolean result = FALSE;
- GdkRectangle _tmp0_;
-#line 2239 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE);
-#line 2240 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->scaled_pos;
-#line 2240 "/home/jens/Source/shotwell/src/Page.vala"
- result = coord_in_rectangle (x, y, &_tmp0_);
-#line 2240 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 14489 "Page.c"
-}
-
-
-void
-single_photo_page_invalidate (SinglePhotoPage* self,
- GdkRectangle* rect)
-{
- GtkDrawingArea* _tmp0_;
- GdkWindow* _tmp1_;
-#line 2243 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2243 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (rect != NULL);
-#line 2244 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->canvas;
-#line 2244 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 2244 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ != NULL) {
-#line 14509 "Page.c"
- GtkDrawingArea* _tmp2_;
- GdkWindow* _tmp3_;
- GdkRectangle _tmp4_;
-#line 2245 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->canvas;
-#line 2245 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 2245 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = *rect;
-#line 2245 "/home/jens/Source/shotwell/src/Page.vala"
- gdk_window_invalidate_rect (_tmp3_, &_tmp4_, FALSE);
-#line 14521 "Page.c"
- }
-}
-
-
-void
-single_photo_page_invalidate_all (SinglePhotoPage* self)
-{
- GtkDrawingArea* _tmp0_;
- GdkWindow* _tmp1_;
-#line 2248 "/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"
- _tmp0_ = self->canvas;
-#line 2249 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 2249 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ != NULL) {
-#line 14539 "Page.c"
- GtkDrawingArea* _tmp2_;
- GdkWindow* _tmp3_;
-#line 2250 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->canvas;
-#line 2250 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 2250 "/home/jens/Source/shotwell/src/Page.vala"
- gdk_window_invalidate_rect (_tmp3_, NULL, FALSE);
-#line 14548 "Page.c"
- }
-}
-
-
-static void
-single_photo_page_on_viewport_resize (SinglePhotoPage* self)
-{
-#line 2253 "/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"
- single_photo_page_internal_repaint (self, TRUE, NULL);
-#line 14560 "Page.c"
-}
-
-
-static void
-single_photo_page_real_on_resize_finished (Page* base,
- GdkRectangle* rect)
-{
- SinglePhotoPage * self;
- GdkRectangle _tmp0_;
-#line 2258 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage);
-#line 2258 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (rect != NULL);
-#line 2259 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = *rect;
-#line 2259 "/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 2262 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_repaint (self, NULL);
-#line 14580 "Page.c"
-}
-
-
-static gboolean
-single_photo_page_on_canvas_exposed (SinglePhotoPage* self,
- cairo_t* exposed_ctx)
-{
- gboolean result = FALSE;
- cairo_surface_t* _tmp0_;
-#line 2265 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE);
-#line 2265 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (exposed_ctx != NULL, FALSE);
-#line 2268 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->pixmap;
-#line 2268 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ != NULL) {
-#line 14598 "Page.c"
- cairo_surface_t* _tmp1_;
-#line 2269 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->pixmap;
-#line 2269 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_set_source_surface (exposed_ctx, _tmp1_, (gdouble) 0, (gdouble) 0);
-#line 14604 "Page.c"
- } else {
-#line 2271 "/home/jens/Source/shotwell/src/Page.vala"
- set_source_color_from_string (exposed_ctx, "#000");
-#line 14608 "Page.c"
- }
-#line 2273 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_rectangle (exposed_ctx, (gdouble) 0, (gdouble) 0, (gdouble) gtk_widget_get_allocated_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)), (gdouble) gtk_widget_get_allocated_height (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)));
-#line 2274 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_paint (exposed_ctx);
-#line 2276 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 2276 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 14618 "Page.c"
-}
-
-
-static void
-single_photo_page_real_new_surface (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim)
-{
-#line 2279 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (ctx != NULL);
-#line 2279 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (ctx_dim != NULL);
-#line 14631 "Page.c"
-}
-
-
-void
-single_photo_page_new_surface (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim)
-{
-#line 2279 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2279 "/home/jens/Source/shotwell/src/Page.vala"
- SINGLE_PHOTO_PAGE_GET_CLASS (self)->new_surface (self, ctx, ctx_dim);
-#line 14644 "Page.c"
-}
-
-
-static void
-single_photo_page_real_updated_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* pixbuf,
- SinglePhotoPageUpdateReason reason,
- Dimensions* old_dim)
-{
-#line 2282 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 2282 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (old_dim != NULL);
-#line 14658 "Page.c"
-}
-
-
-void
-single_photo_page_updated_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* pixbuf,
- SinglePhotoPageUpdateReason reason,
- Dimensions* old_dim)
-{
-#line 2282 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2282 "/home/jens/Source/shotwell/src/Page.vala"
- SINGLE_PHOTO_PAGE_GET_CLASS (self)->updated_pixbuf (self, pixbuf, reason, old_dim);
-#line 14672 "Page.c"
-}
-
-
-static void
-single_photo_page_real_paint (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim)
-{
- gboolean _tmp0_ = FALSE;
-#line 2285 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (ctx != NULL);
-#line 2285 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (ctx_dim != NULL);
-#line 2286 "/home/jens/Source/shotwell/src/Page.vala"
- if (single_photo_page_is_zoom_supported (self)) {
-#line 2286 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = !zoom_state_is_default (&self->priv->static_zoom_state);
-#line 14690 "Page.c"
- } else {
-#line 2286 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = FALSE;
-#line 14694 "Page.c"
- }
-#line 2286 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 14698 "Page.c"
- Dimensions _tmp1_;
- gint _tmp2_;
- Dimensions _tmp3_;
- gint _tmp4_;
- ZoomState _tmp5_;
-#line 2287 "/home/jens/Source/shotwell/src/Page.vala"
- set_source_color_from_string (ctx, "#000");
-#line 2288 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->pixmap_dim;
-#line 2288 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_.width;
-#line 2288 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->pixmap_dim;
-#line 2288 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp3_.height;
-#line 2288 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp2_, (gdouble) _tmp4_);
-#line 2289 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_fill (ctx);
-#line 2291 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->static_zoom_state;
-#line 2291 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_render_zoomed_to_pixmap (self, &_tmp5_);
-#line 14722 "Page.c"
- } else {
- TransitionClock* _tmp6_;
- Dimensions _tmp7_;
- gint _tmp8_;
- Dimensions _tmp9_;
- gint _tmp10_;
-#line 2292 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->transition_clock;
-#line 2292 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = *ctx_dim;
-#line 2292 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _tmp7_.width;
-#line 2292 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = *ctx_dim;
-#line 2292 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = _tmp9_.height;
-#line 2292 "/home/jens/Source/shotwell/src/Page.vala"
- if (!transition_clock_paint (_tmp6_, ctx, _tmp8_, _tmp10_)) {
-#line 14741 "Page.c"
- Dimensions _tmp11_;
- gint _tmp12_;
- Dimensions _tmp13_;
- gint _tmp14_;
- GdkPixbuf* _tmp15_;
- GdkRectangle _tmp16_;
- gint _tmp17_;
- GdkRectangle _tmp18_;
- gint _tmp19_;
-#line 2294 "/home/jens/Source/shotwell/src/Page.vala"
- set_source_color_from_string (ctx, "#000");
-#line 2296 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = self->priv->pixmap_dim;
-#line 2296 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _tmp11_.width;
-#line 2296 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = self->priv->pixmap_dim;
-#line 2296 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _tmp13_.height;
-#line 2296 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp12_, (gdouble) _tmp14_);
-#line 2297 "/home/jens/Source/shotwell/src/Page.vala"
- cairo_fill (ctx);
-#line 2299 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = self->priv->scaled;
-#line 2299 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = self->priv->scaled_pos;
-#line 2299 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = _tmp16_.x;
-#line 2299 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = self->priv->scaled_pos;
-#line 2299 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = _tmp18_.y;
-#line 2299 "/home/jens/Source/shotwell/src/Page.vala"
- paint_pixmap_with_background (ctx, _tmp15_, _tmp17_, _tmp19_);
-#line 14777 "Page.c"
- }
- }
-}
-
-
-void
-single_photo_page_paint (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim)
-{
-#line 2285 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2285 "/home/jens/Source/shotwell/src/Page.vala"
- SINGLE_PHOTO_PAGE_GET_CLASS (self)->paint (self, ctx, ctx_dim);
-#line 14792 "Page.c"
-}
-
-
-static void
-single_photo_page_repaint_pixmap (SinglePhotoPage* self)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- Dimensions _tmp2_;
-#line 2303 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2304 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->pixmap_ctx;
-#line 2304 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ == NULL) {
-#line 2305 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14810 "Page.c"
- }
-#line 2307 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->pixmap_ctx;
-#line 2307 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->pixmap_dim;
-#line 2307 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_paint (self, _tmp1_, &_tmp2_);
-#line 2308 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_invalidate_all (self);
-#line 14820 "Page.c"
-}
-
-
-void
-single_photo_page_repaint (SinglePhotoPage* self,
- Direction* direction)
-{
-#line 2311 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2312 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_internal_repaint (self, FALSE, direction);
-#line 14832 "Page.c"
-}
-
-
-static void
-_single_photo_page_repaint_pixmap_transition_clock_repaint_callback (gpointer self)
-{
-#line 2400 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_repaint_pixmap ((SinglePhotoPage*) self);
-#line 14841 "Page.c"
-}
-
-
-static void
-single_photo_page_internal_repaint (SinglePhotoPage* self,
- gboolean fast,
- Direction* direction)
-{
- gboolean _tmp0_ = FALSE;
- GdkPixbuf* _tmp1_;
- GtkAllocation allocation = {0};
- GtkViewport* _tmp4_;
- GtkAllocation _tmp5_ = {0};
- gint width = 0;
- GtkAllocation _tmp6_;
- gint _tmp7_;
- gint height = 0;
- GtkAllocation _tmp8_;
- gint _tmp9_;
- gboolean _tmp10_ = FALSE;
- gint _tmp11_;
- gboolean new_pixbuf = FALSE;
- GdkPixbuf* _tmp13_;
- Dimensions old_scaled_dim = {0};
- GdkRectangle _tmp14_;
- Dimensions _tmp15_ = {0};
- GdkRectangle old_scaled_pos = {0};
- GdkRectangle _tmp16_;
- gboolean _tmp17_ = FALSE;
- Dimensions _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- gboolean new_pixmap = FALSE;
- cairo_surface_t* _tmp24_;
- gboolean _tmp27_ = FALSE;
- gboolean _tmp28_;
- GdkInterpType _tmp61_ = 0;
- GdkInterpType interp = 0;
- GdkPixbuf* _tmp62_;
- gboolean _tmp78_ = FALSE;
- TransitionClock* _tmp89_;
-#line 2315 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2317 "/home/jens/Source/shotwell/src/Page.vala"
- if (!page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page))) {
-#line 2318 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_surface_destroy0 (self->priv->pixmap);
-#line 2318 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->pixmap = NULL;
-#line 2319 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->scaled);
-#line 2319 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled = NULL;
-#line 2321 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14897 "Page.c"
- }
-#line 2325 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->unscaled;
-#line 2325 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp1_ == NULL) {
-#line 2325 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = TRUE;
-#line 14905 "Page.c"
- } else {
- GtkDrawingArea* _tmp2_;
- GdkWindow* _tmp3_;
-#line 2325 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->canvas;
-#line 2325 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 2325 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = _tmp3_ == NULL;
-#line 14915 "Page.c"
- }
-#line 2325 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_) {
-#line 2326 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14921 "Page.c"
- }
-#line 2329 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->viewport;
-#line 2329 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), &_tmp5_);
-#line 2329 "/home/jens/Source/shotwell/src/Page.vala"
- allocation = _tmp5_;
-#line 2331 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = allocation;
-#line 2331 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_.width;
-#line 2331 "/home/jens/Source/shotwell/src/Page.vala"
- width = _tmp7_;
-#line 2332 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = allocation;
-#line 2332 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp8_.height;
-#line 2332 "/home/jens/Source/shotwell/src/Page.vala"
- height = _tmp9_;
-#line 2334 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = width;
-#line 2334 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp11_ <= 0) {
-#line 2334 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = TRUE;
-#line 14947 "Page.c"
- } else {
- gint _tmp12_;
-#line 2334 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = height;
-#line 2334 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = _tmp12_ <= 0;
-#line 14954 "Page.c"
- }
-#line 2334 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp10_) {
-#line 2335 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 14960 "Page.c"
- }
-#line 2337 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = self->priv->scaled;
-#line 2337 "/home/jens/Source/shotwell/src/Page.vala"
- new_pixbuf = _tmp13_ == NULL;
-#line 2340 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = self->priv->scaled_pos;
-#line 2340 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_for_rectangle (&_tmp14_, &_tmp15_);
-#line 2340 "/home/jens/Source/shotwell/src/Page.vala"
- old_scaled_dim = _tmp15_;
-#line 2341 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = self->priv->scaled_pos;
-#line 2341 "/home/jens/Source/shotwell/src/Page.vala"
- old_scaled_pos = _tmp16_;
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = self->priv->pixmap_dim;
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = _tmp18_.width;
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = width;
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp19_ != _tmp20_) {
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = TRUE;
-#line 14986 "Page.c"
- } else {
- Dimensions _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = self->priv->pixmap_dim;
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = _tmp21_.height;
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = height;
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = _tmp22_ != _tmp23_;
-#line 14999 "Page.c"
- }
-#line 2344 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp17_) {
-#line 2345 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_surface_destroy0 (self->priv->pixmap);
-#line 2345 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->pixmap = NULL;
-#line 15007 "Page.c"
- }
-#line 2348 "/home/jens/Source/shotwell/src/Page.vala"
- new_pixmap = FALSE;
-#line 2349 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = self->priv->pixmap;
-#line 2349 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp24_ == NULL) {
-#line 15015 "Page.c"
- gint _tmp25_;
- gint _tmp26_;
-#line 2350 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = width;
-#line 2350 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = height;
-#line 2350 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_init_pixmap (self, _tmp25_, _tmp26_);
-#line 2351 "/home/jens/Source/shotwell/src/Page.vala"
- new_pixmap = TRUE;
-#line 15026 "Page.c"
- }
-#line 2354 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = new_pixbuf;
-#line 2354 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp28_) {
-#line 2354 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = TRUE;
-#line 15034 "Page.c"
- } else {
- gboolean _tmp29_;
-#line 2354 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = new_pixmap;
-#line 2354 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = _tmp29_;
-#line 15041 "Page.c"
- }
-#line 2354 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp27_) {
-#line 15045 "Page.c"
- Dimensions unscaled_dim = {0};
- GdkPixbuf* _tmp30_;
- Dimensions _tmp31_ = {0};
- Dimensions scaled_dim = {0};
- gboolean _tmp32_ = FALSE;
- gboolean _tmp33_ = FALSE;
- gboolean _tmp34_ = FALSE;
- gboolean _tmp35_;
- gint _tmp45_;
- Dimensions _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
- Dimensions _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
- Dimensions _tmp52_;
- gint _tmp53_;
- gint _tmp54_;
- Dimensions _tmp55_;
- gint _tmp56_;
- Dimensions _tmp57_;
- gint _tmp58_;
- Dimensions _tmp59_;
- gint _tmp60_;
-#line 2355 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = self->priv->unscaled;
-#line 2355 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_for_pixbuf (_tmp30_, &_tmp31_);
-#line 2355 "/home/jens/Source/shotwell/src/Page.vala"
- unscaled_dim = _tmp31_;
-#line 2359 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_init (&scaled_dim, 0, 0);
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = self->priv->scale_up_to_viewport;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp35_) {
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = dimensions_has_area (&self->priv->max_dim);
-#line 15084 "Page.c"
- } else {
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = FALSE;
-#line 15088 "Page.c"
- }
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp34_) {
-#line 15092 "Page.c"
- Dimensions _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = self->priv->max_dim;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = _tmp36_.width;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = width;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = _tmp37_ < _tmp38_;
-#line 15104 "Page.c"
- } else {
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = FALSE;
-#line 15108 "Page.c"
- }
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp33_) {
-#line 15112 "Page.c"
- Dimensions _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = self->priv->max_dim;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp40_ = _tmp39_.height;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = height;
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = _tmp40_ < _tmp41_;
-#line 15124 "Page.c"
- } else {
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = FALSE;
-#line 15128 "Page.c"
- }
-#line 2360 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp32_) {
-#line 15132 "Page.c"
- Dimensions _tmp42_;
-#line 2361 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = self->priv->max_dim;
-#line 2361 "/home/jens/Source/shotwell/src/Page.vala"
- scaled_dim = _tmp42_;
-#line 15138 "Page.c"
- } else {
- Dimensions _tmp43_;
- Dimensions _tmp44_ = {0};
-#line 2363 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = self->priv->pixmap_dim;
-#line 2363 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_get_scaled_proportional (&unscaled_dim, &_tmp43_, &_tmp44_);
-#line 2363 "/home/jens/Source/shotwell/src/Page.vala"
- scaled_dim = _tmp44_;
-#line 15148 "Page.c"
- }
-#line 2365 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp45_ = width;
-#line 2365 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp46_ = scaled_dim;
-#line 2365 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp47_ = _tmp46_.width;
-#line 2365 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp45_ >= _tmp47_, "width >= scaled_dim.width");
-#line 2366 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp48_ = height;
-#line 2366 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp49_ = scaled_dim;
-#line 2366 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp50_ = _tmp49_.height;
-#line 2366 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp48_ >= _tmp50_, "height >= scaled_dim.height");
-#line 2369 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp51_ = width;
-#line 2369 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp52_ = scaled_dim;
-#line 2369 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp53_ = _tmp52_.width;
-#line 2369 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled_pos.x = (_tmp51_ - _tmp53_) / 2;
-#line 2370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp54_ = height;
-#line 2370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp55_ = scaled_dim;
-#line 2370 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp56_ = _tmp55_.height;
-#line 2370 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled_pos.y = (_tmp54_ - _tmp56_) / 2;
-#line 2371 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp57_ = scaled_dim;
-#line 2371 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp58_ = _tmp57_.width;
-#line 2371 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled_pos.width = _tmp58_;
-#line 2372 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp59_ = scaled_dim;
-#line 2372 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp60_ = _tmp59_.height;
-#line 2372 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled_pos.height = _tmp60_;
-#line 15194 "Page.c"
- }
-#line 2375 "/home/jens/Source/shotwell/src/Page.vala"
- if (fast) {
-#line 2375 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp61_ = SINGLE_PHOTO_PAGE_FAST_INTERP;
-#line 15200 "Page.c"
- } else {
-#line 2375 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp61_ = SINGLE_PHOTO_PAGE_QUALITY_INTERP;
-#line 15204 "Page.c"
- }
-#line 2375 "/home/jens/Source/shotwell/src/Page.vala"
- interp = _tmp61_;
-#line 2378 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp62_ = self->priv->scaled;
-#line 2378 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp62_ == NULL) {
-#line 15212 "Page.c"
- GdkPixbuf* _tmp63_;
- GdkRectangle _tmp64_;
- Dimensions _tmp65_ = {0};
- GdkInterpType _tmp66_;
- GdkPixbuf* _tmp67_;
- SinglePhotoPageUpdateReason reason = 0;
- gboolean _tmp68_;
- Dimensions _tmp72_;
- Dimensions _tmp73_;
- GdkPoint _tmp74_ = {0};
- GdkPixbuf* _tmp75_;
- SinglePhotoPageUpdateReason _tmp76_;
- Dimensions _tmp77_;
-#line 2379 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp63_ = self->priv->unscaled;
-#line 2379 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp64_ = self->priv->scaled_pos;
-#line 2379 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_for_rectangle (&_tmp64_, &_tmp65_);
-#line 2379 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp66_ = interp;
-#line 2379 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp67_ = resize_pixbuf (_tmp63_, &_tmp65_, _tmp66_);
-#line 2379 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->scaled);
-#line 2379 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled = _tmp67_;
-#line 2381 "/home/jens/Source/shotwell/src/Page.vala"
- reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS;
-#line 2382 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp68_ = new_pixbuf;
-#line 2382 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp68_) {
-#line 2383 "/home/jens/Source/shotwell/src/Page.vala"
- reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF;
-#line 15248 "Page.c"
- } else {
- gboolean _tmp69_ = FALSE;
- gboolean _tmp70_;
-#line 2384 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp70_ = new_pixmap;
-#line 2384 "/home/jens/Source/shotwell/src/Page.vala"
- if (!_tmp70_) {
-#line 15256 "Page.c"
- GdkInterpType _tmp71_;
-#line 2384 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp71_ = interp;
-#line 2384 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp69_ = _tmp71_ == SINGLE_PHOTO_PAGE_QUALITY_INTERP;
-#line 15262 "Page.c"
- } else {
-#line 2384 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp69_ = FALSE;
-#line 15266 "Page.c"
- }
-#line 2384 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp69_) {
-#line 2385 "/home/jens/Source/shotwell/src/Page.vala"
- reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT;
-#line 15272 "Page.c"
- }
- }
-#line 2387 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp72_ = self->priv->max_dim;
-#line 2387 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp73_ = self->priv->pixmap_dim;
-#line 2387 "/home/jens/Source/shotwell/src/Page.vala"
- zoom_state_get_viewport_center (&self->priv->static_zoom_state, &_tmp74_);
-#line 2387 "/home/jens/Source/shotwell/src/Page.vala"
- zoom_state_init (&self->priv->static_zoom_state, &_tmp72_, &_tmp73_, zoom_state_get_interpolation_factor (&self->priv->static_zoom_state), &_tmp74_);
-#line 2391 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp75_ = self->priv->scaled;
-#line 2391 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp76_ = reason;
-#line 2391 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp77_ = old_scaled_dim;
-#line 2391 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_updated_pixbuf (self, _tmp75_, _tmp76_, &_tmp77_);
-#line 15291 "Page.c"
- }
-#line 2394 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->zoom_high_quality = !fast;
-#line 2396 "/home/jens/Source/shotwell/src/Page.vala"
- if (direction != NULL) {
-#line 15297 "Page.c"
- TransitionClock* _tmp79_;
-#line 2396 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp79_ = self->priv->transition_clock;
-#line 2396 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp78_ = !transition_clock_is_in_progress (_tmp79_);
-#line 15303 "Page.c"
- } else {
-#line 2396 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp78_ = FALSE;
-#line 15307 "Page.c"
- }
-#line 2396 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp78_) {
-#line 15311 "Page.c"
- SpitTransitionsVisuals* visuals = NULL;
- GdkPixbuf* _tmp80_;
- GdkRectangle _tmp81_;
- GdkPixbuf* _tmp82_;
- GdkRectangle _tmp83_;
- GdkRGBA _tmp84_ = {0};
- SpitTransitionsVisuals* _tmp85_;
- TransitionClock* _tmp86_;
- SpitTransitionsVisuals* _tmp87_;
- gint _tmp88_;
-#line 2397 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp80_ = self->priv->old_scaled;
-#line 2397 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp81_ = old_scaled_pos;
-#line 2397 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp82_ = self->priv->scaled;
-#line 2397 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp83_ = self->priv->scaled_pos;
-#line 2397 "/home/jens/Source/shotwell/src/Page.vala"
- parse_color ("#000", &_tmp84_);
-#line 2397 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp85_ = spit_transitions_visuals_new (_tmp80_, &_tmp81_, _tmp82_, &_tmp83_, &_tmp84_);
-#line 2397 "/home/jens/Source/shotwell/src/Page.vala"
- visuals = _tmp85_;
-#line 2400 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp86_ = self->priv->transition_clock;
-#line 2400 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp87_ = visuals;
-#line 2400 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp88_ = self->priv->transition_duration_msec;
-#line 2400 "/home/jens/Source/shotwell/src/Page.vala"
- transition_clock_start (_tmp86_, _tmp87_, direction_to_transition_direction (*direction), _tmp88_, _single_photo_page_repaint_pixmap_transition_clock_repaint_callback, self);
-#line 2396 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (visuals);
-#line 15346 "Page.c"
- }
-#line 2404 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp89_ = self->priv->transition_clock;
-#line 2404 "/home/jens/Source/shotwell/src/Page.vala"
- if (!transition_clock_is_in_progress (_tmp89_)) {
-#line 2405 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_repaint_pixmap (self);
-#line 15354 "Page.c"
- }
-}
-
-
-static void
-single_photo_page_init_pixmap (SinglePhotoPage* self,
- gint width,
- gint height)
-{
- GdkPixbuf* _tmp0_;
- GtkDrawingArea* _tmp1_;
- GdkWindow* _tmp2_;
- cairo_surface_t* _tmp3_;
- cairo_surface_t* _tmp4_;
- cairo_t* _tmp5_;
- cairo_surface_t* _tmp6_;
- cairo_t* _tmp7_;
- cairo_t* _tmp8_;
- cairo_t* _tmp9_;
- Dimensions _tmp10_;
-#line 2408 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2409 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->unscaled;
-#line 2409 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp0_ != NULL, "unscaled != null");
-#line 2410 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->canvas;
-#line 2410 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 2410 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp2_ != NULL, "canvas.get_window() != null");
-#line 2413 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
-#line 2413 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_surface_destroy0 (self->priv->pixmap);
-#line 2413 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->pixmap = _tmp3_;
-#line 2414 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_init (&self->priv->pixmap_dim, width, height);
-#line 2417 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->pixmap;
-#line 2417 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = cairo_create (_tmp4_);
-#line 2417 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_destroy0 (self->priv->pixmap_ctx);
-#line 2417 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->pixmap_ctx = _tmp5_;
-#line 2420 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->scaled);
-#line 2420 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled = NULL;
-#line 2423 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->pixmap;
-#line 2423 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = cairo_create (_tmp6_);
-#line 2423 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_destroy0 (self->priv->text_ctx);
-#line 2423 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->text_ctx = _tmp7_;
-#line 2424 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = self->priv->text_ctx;
-#line 2424 "/home/jens/Source/shotwell/src/Page.vala"
- set_source_color_from_string (_tmp8_, "#fff");
-#line 2429 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->priv->pixmap_ctx;
-#line 2429 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->priv->pixmap_dim;
-#line 2429 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_new_surface (self, _tmp9_, &_tmp10_);
-#line 15425 "Page.c"
-}
-
-
-static gboolean
-single_photo_page_real_on_context_keypress (Page* base)
-{
- SinglePhotoPage * self;
- gboolean result = FALSE;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp1_;
- gboolean _tmp2_;
-#line 2432 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage);
-#line 2433 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2433 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 2433 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL);
-#line 2433 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 2433 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp2_;
-#line 2433 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 15451 "Page.c"
-}
-
-
-static void
-single_photo_page_real_on_previous_photo (SinglePhotoPage* self)
-{
-}
-
-
-void
-single_photo_page_on_previous_photo (SinglePhotoPage* self)
-{
-#line 2436 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2436 "/home/jens/Source/shotwell/src/Page.vala"
- SINGLE_PHOTO_PAGE_GET_CLASS (self)->on_previous_photo (self);
-#line 15468 "Page.c"
-}
-
-
-static void
-single_photo_page_real_on_next_photo (SinglePhotoPage* self)
-{
-}
-
-
-void
-single_photo_page_on_next_photo (SinglePhotoPage* self)
-{
-#line 2439 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2439 "/home/jens/Source/shotwell/src/Page.vala"
- SINGLE_PHOTO_PAGE_GET_CLASS (self)->on_next_photo (self);
-#line 15485 "Page.c"
-}
-
-
-static gboolean
-single_photo_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- SinglePhotoPage * self;
- gboolean result = FALSE;
- gboolean nav_ok = FALSE;
- guint32 _tmp0_;
- guint32 _tmp1_;
- gboolean handled = FALSE;
- guint _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- GQuark _tmp6_ = 0U;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp5_label0 = 0;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp5_label1 = 0;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp5_label2 = 0;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp5_label3 = 0;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp5_label4 = 0;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- static GQuark _tmp5_label5 = 0;
-#line 15515 "Page.c"
- gboolean _tmp11_;
- gboolean _tmp12_ = FALSE;
-#line 2442 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage);
-#line 2442 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2446 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = event->time;
-#line 2446 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->last_nav_key;
-#line 2446 "/home/jens/Source/shotwell/src/Page.vala"
- nav_ok = (_tmp0_ - _tmp1_) > ((guint32) SINGLE_PHOTO_PAGE_KEY_REPEAT_INTERVAL_MSEC);
-#line 2448 "/home/jens/Source/shotwell/src/Page.vala"
- handled = TRUE;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = event->keyval;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = gdk_keyval_name (_tmp2_);
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp3_;
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = (NULL == _tmp4_) ? 0 : g_quark_from_string (_tmp4_);
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- if (((_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("Left")))) || (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("KP_Left"))))) || (_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("BackSpace"))))) {
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 15542 "Page.c"
- default:
- {
- gboolean _tmp7_;
-#line 2453 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = nav_ok;
-#line 2453 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp7_) {
-#line 15550 "Page.c"
- guint32 _tmp8_;
-#line 2454 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_on_previous_photo (self);
-#line 2455 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = event->time;
-#line 2455 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_nav_key = _tmp8_;
-#line 15558 "Page.c"
- }
-#line 2457 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 15562 "Page.c"
- }
- }
- } else if (((_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("Right")))) || (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("KP_Right"))))) || (_tmp6_ == ((0 != _tmp5_label5) ? _tmp5_label5 : (_tmp5_label5 = g_quark_from_static_string ("space"))))) {
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 15568 "Page.c"
- default:
- {
- gboolean _tmp9_;
-#line 2462 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = nav_ok;
-#line 2462 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp9_) {
-#line 15576 "Page.c"
- guint32 _tmp10_;
-#line 2463 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_on_next_photo (self);
-#line 2464 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = event->time;
-#line 2464 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_nav_key = _tmp10_;
-#line 15584 "Page.c"
- }
-#line 2466 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 15588 "Page.c"
- }
- }
- } else {
-#line 2449 "/home/jens/Source/shotwell/src/Page.vala"
- switch (0) {
-#line 15594 "Page.c"
- default:
- {
-#line 2469 "/home/jens/Source/shotwell/src/Page.vala"
- handled = FALSE;
-#line 2470 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 15601 "Page.c"
- }
- }
- }
-#line 2473 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = handled;
-#line 2473 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp11_) {
-#line 2474 "/home/jens/Source/shotwell/src/Page.vala"
- result = TRUE;
-#line 2474 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 15613 "Page.c"
- }
-#line 2476 "/home/jens/Source/shotwell/src/Page.vala"
- if (GTK_WIDGET_CLASS (single_photo_page_parent_class)->key_press_event != NULL) {
-#line 2476 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = 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), event);
-#line 15619 "Page.c"
- } else {
-#line 2476 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = TRUE;
-#line 15623 "Page.c"
- }
-#line 2476 "/home/jens/Source/shotwell/src/Page.vala"
- result = _tmp12_;
-#line 2476 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 15629 "Page.c"
-}
-
-
-static void
-single_photo_page_on_colors_changed (SinglePhotoPage* self)
-{
-#line 2479 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self));
-#line 2480 "/home/jens/Source/shotwell/src/Page.vala"
- invalidate_transparent_background ();
-#line 2481 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_repaint (self, NULL);
-#line 15642 "Page.c"
-}
-
-
-static void
-single_photo_page_class_init (SinglePhotoPageClass * klass)
-{
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- single_photo_page_parent_class = g_type_class_peek_parent (klass);
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- g_type_class_add_private (klass, sizeof (SinglePhotoPagePrivate));
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->is_zoom_supported = (gboolean (*) (SinglePhotoPage *)) single_photo_page_real_is_zoom_supported;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->cancel_zoom = (void (*) (SinglePhotoPage *)) single_photo_page_real_cancel_zoom;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->save_zoom_state = (void (*) (SinglePhotoPage *)) single_photo_page_real_save_zoom_state;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->restore_zoom_state = (void (*) (SinglePhotoPage *)) single_photo_page_real_restore_zoom_state;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->get_zoom_buffer = (ZoomBuffer* (*) (SinglePhotoPage *)) single_photo_page_real_get_zoom_buffer;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) single_photo_page_real_switched_to;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->set_container = (void (*) (Page *, GtkWindow*)) single_photo_page_real_set_container;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_resize_finished = (void (*) (Page *, GdkRectangle*)) single_photo_page_real_on_resize_finished;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->new_surface = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) single_photo_page_real_new_surface;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->updated_pixbuf = (void (*) (SinglePhotoPage *, GdkPixbuf*, SinglePhotoPageUpdateReason, Dimensions*)) single_photo_page_real_updated_pixbuf;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->paint = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) single_photo_page_real_paint;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((PageClass *) klass)->on_context_keypress = (gboolean (*) (Page *)) single_photo_page_real_on_context_keypress;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->on_previous_photo = (void (*) (SinglePhotoPage *)) single_photo_page_real_on_previous_photo;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((SinglePhotoPageClass *) klass)->on_next_photo = (void (*) (SinglePhotoPage *)) single_photo_page_real_on_next_photo;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) single_photo_page_real_key_press_event;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- G_OBJECT_CLASS (klass)->finalize = single_photo_page_finalize;
-#line 15685 "Page.c"
-}
-
-
-static void
-single_photo_page_instance_init (SinglePhotoPage * self)
-{
- GtkDrawingArea* _tmp0_;
- GtkViewport* _tmp1_;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv = SINGLE_PHOTO_PAGE_GET_PRIVATE (self);
-#line 1974 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = (GtkDrawingArea*) gtk_drawing_area_new ();
-#line 1974 "/home/jens/Source/shotwell/src/Page.vala"
- g_object_ref_sink (_tmp0_);
-#line 1974 "/home/jens/Source/shotwell/src/Page.vala"
- self->canvas = _tmp0_;
-#line 1975 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = (GtkViewport*) gtk_viewport_new (NULL, NULL);
-#line 1975 "/home/jens/Source/shotwell/src/Page.vala"
- g_object_ref_sink (_tmp1_);
-#line 1975 "/home/jens/Source/shotwell/src/Page.vala"
- self->viewport = _tmp1_;
-#line 1979 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->transition_duration_msec = 0;
-#line 1980 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->pixmap = NULL;
-#line 1981 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->pixmap_ctx = NULL;
-#line 1982 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->text_ctx = NULL;
-#line 1983 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_init (&self->priv->pixmap_dim, 0, 0);
-#line 1984 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->unscaled = NULL;
-#line 1985 "/home/jens/Source/shotwell/src/Page.vala"
- dimensions_init (&self->priv->max_dim, 0, 0);
-#line 1986 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->scaled = NULL;
-#line 1987 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->old_scaled = NULL;
-#line 1988 "/home/jens/Source/shotwell/src/Page.vala"
- memset (&self->priv->scaled_pos, 0, sizeof (GdkRectangle));
-#line 1990 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->zoom_high_quality = TRUE;
-#line 1992 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->has_saved_zoom_state = FALSE;
-#line 1993 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->last_nav_key = (guint32) 0;
-#line 15734 "Page.c"
-}
-
-
-static void
-single_photo_page_finalize (GObject * obj)
-{
- SinglePhotoPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- guint _tmp2_;
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage);
-#line 2026 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 2026 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = _tmp0_;
-#line 2026 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("colors-changed", CONFIG_TYPE_FACADE, &_tmp2_, NULL, FALSE);
-#line 2026 "/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) _single_photo_page_on_colors_changed_config_facade_colors_changed, self);
-#line 2026 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp1_);
-#line 1974 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->canvas);
-#line 1975 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->viewport);
-#line 1978 "/home/jens/Source/shotwell/src/Page.vala"
- _transition_clock_unref0 (self->priv->transition_clock);
-#line 1980 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_surface_destroy0 (self->priv->pixmap);
-#line 1981 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_destroy0 (self->priv->pixmap_ctx);
-#line 1982 "/home/jens/Source/shotwell/src/Page.vala"
- _cairo_destroy0 (self->priv->text_ctx);
-#line 1984 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->unscaled);
-#line 1986 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->scaled);
-#line 1987 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->old_scaled);
-#line 1963 "/home/jens/Source/shotwell/src/Page.vala"
- G_OBJECT_CLASS (single_photo_page_parent_class)->finalize (obj);
-#line 15777 "Page.c"
-}
-
-
-GType
-single_photo_page_get_type (void)
-{
- static volatile gsize single_photo_page_type_id__volatile = 0;
- if (g_once_init_enter (&single_photo_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SinglePhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) single_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SinglePhotoPage), 0, (GInstanceInitFunc) single_photo_page_instance_init, NULL };
- GType single_photo_page_type_id;
- single_photo_page_type_id = g_type_register_static (TYPE_PAGE, "SinglePhotoPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&single_photo_page_type_id__volatile, single_photo_page_type_id);
- }
- return single_photo_page_type_id__volatile;
-}
-
-
-static void
-_drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self)
-{
-#line 2540 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_on_drag_begin ((DragAndDropHandler*) self, context);
-#line 15802 "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 2541 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_on_drag_data_get ((DragAndDropHandler*) self, context, selection_data, info, time_);
-#line 15816 "Page.c"
-}
-
-
-static void
-_drag_and_drop_handler_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self)
-{
-#line 2542 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_on_drag_end ((DragAndDropHandler*) self);
-#line 15827 "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 2543 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 15841 "Page.c"
-}
-
-
-static GType
-drag_and_drop_handler_target_type_get_type (void)
-{
- static volatile gsize drag_and_drop_handler_target_type_type_id__volatile = 0;
- if (g_once_init_enter (&drag_and_drop_handler_target_type_type_id__volatile)) {
- static const GEnumValue values[] = {{DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS, "DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS", "xds"}, {DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST, "DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST", "media-list"}, {0, NULL, NULL}};
- GType drag_and_drop_handler_target_type_type_id;
- drag_and_drop_handler_target_type_type_id = g_enum_register_static ("DragAndDropHandlerTargetType", values);
- g_once_init_leave (&drag_and_drop_handler_target_type_type_id__volatile, drag_and_drop_handler_target_type_type_id);
- }
- return drag_and_drop_handler_target_type_type_id__volatile;
-}
-
-
-static GdkAtom*
-_gdk_atom_dup (GdkAtom* self)
-{
- GdkAtom* dup;
-#line 2518 "/home/jens/Source/shotwell/src/Page.vala"
- dup = g_new0 (GdkAtom, 1);
-#line 2518 "/home/jens/Source/shotwell/src/Page.vala"
- memcpy (dup, self, sizeof (GdkAtom));
-#line 2518 "/home/jens/Source/shotwell/src/Page.vala"
- return dup;
-#line 15869 "Page.c"
-}
-
-
-static gpointer
-__gdk_atom_dup0 (gpointer self)
-{
-#line 2518 "/home/jens/Source/shotwell/src/Page.vala"
- return self ? _gdk_atom_dup (self) : NULL;
-#line 15878 "Page.c"
-}
-
-
-DragAndDropHandler*
-drag_and_drop_handler_construct (GType object_type,
- Page* page)
-{
- DragAndDropHandler* self = NULL;
- GtkWidget* _tmp0_;
- GtkWidget* _tmp1_;
- GtkWidget* _tmp2_;
- GdkAtom* _tmp3_;
- GdkAtom* _tmp6_;
- guint8* _tmp9_;
- gint _tmp9__length1;
- GtkWidget* _tmp12_;
- GtkWidget* _tmp13_;
- GtkWidget* _tmp14_;
- GtkWidget* _tmp15_;
- GtkWidget* _tmp16_;
-#line 2510 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_PAGE (page), NULL);
-#line 2510 "/home/jens/Source/shotwell/src/Page.vala"
- self = (DragAndDropHandler*) g_type_create_instance (object_type);
-#line 2511 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->page = page;
-#line 2512 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = page_get_event_source (page);
-#line 2512 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->event_source);
-#line 2512 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->event_source = _tmp0_;
-#line 2513 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->event_source;
-#line 2513 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (_tmp1_ != NULL, "event_source != null");
-#line 2514 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = self->priv->event_source;
-#line 2514 "/home/jens/Source/shotwell/src/Page.vala"
- _vala_assert (gtk_widget_get_has_window (_tmp2_), "event_source.get_has_window()");
-#line 2517 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = drag_and_drop_handler_XDS_ATOM;
-#line 2517 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_ == NULL) {
-#line 15923 "Page.c"
- GdkAtom _tmp4_;
- GdkAtom* _tmp5_;
-#line 2518 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = gdk_atom_intern_static_string ("XdndDirectSave0");
-#line 2518 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = __gdk_atom_dup0 (&_tmp4_);
-#line 2518 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (drag_and_drop_handler_XDS_ATOM);
-#line 2518 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_XDS_ATOM = _tmp5_;
-#line 15934 "Page.c"
- }
-#line 2520 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = drag_and_drop_handler_TEXT_ATOM;
-#line 2520 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp6_ == NULL) {
-#line 15940 "Page.c"
- GdkAtom _tmp7_;
- GdkAtom* _tmp8_;
-#line 2521 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = gdk_atom_intern_static_string ("text/plain");
-#line 2521 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = __gdk_atom_dup0 (&_tmp7_);
-#line 2521 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (drag_and_drop_handler_TEXT_ATOM);
-#line 2521 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_TEXT_ATOM = _tmp8_;
-#line 15951 "Page.c"
- }
-#line 2523 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = drag_and_drop_handler_XDS_FAKE_TARGET;
-#line 2523 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9__length1 = drag_and_drop_handler_XDS_FAKE_TARGET_length1;
-#line 2523 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp9_ == NULL) {
-#line 15959 "Page.c"
- gint _tmp10_;
- guchar* _tmp11_;
-#line 2524 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = string_to_uchar_array ("shotwell.txt", &_tmp10_);
-#line 2524 "/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 2524 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_XDS_FAKE_TARGET = _tmp11_;
-#line 2524 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_XDS_FAKE_TARGET_length1 = _tmp10_;
-#line 2524 "/home/jens/Source/shotwell/src/Page.vala"
- _drag_and_drop_handler_XDS_FAKE_TARGET_size_ = drag_and_drop_handler_XDS_FAKE_TARGET_length1;
-#line 15972 "Page.c"
- }
-#line 2527 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->priv->event_source;
-#line 2527 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_drag_source_set (_tmp12_, GDK_BUTTON1_MASK, DRAG_AND_DROP_HANDLER_SOURCE_TARGET_ENTRIES, G_N_ELEMENTS (DRAG_AND_DROP_HANDLER_SOURCE_TARGET_ENTRIES), GDK_ACTION_COPY);
-#line 2532 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = self->priv->event_source;
-#line 2532 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect (_tmp13_, "drag-begin", (GCallback) _drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin, self);
-#line 2533 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = self->priv->event_source;
-#line 2533 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect (_tmp14_, "drag-data-get", (GCallback) _drag_and_drop_handler_on_drag_data_get_gtk_widget_drag_data_get, self);
-#line 2534 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = self->priv->event_source;
-#line 2534 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect (_tmp15_, "drag-end", (GCallback) _drag_and_drop_handler_on_drag_end_gtk_widget_drag_end, self);
-#line 2535 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = self->priv->event_source;
-#line 2535 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_connect (_tmp16_, "drag-failed", (GCallback) _drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed, self);
-#line 2510 "/home/jens/Source/shotwell/src/Page.vala"
- return self;
-#line 15996 "Page.c"
-}
-
-
-DragAndDropHandler*
-drag_and_drop_handler_new (Page* page)
-{
-#line 2510 "/home/jens/Source/shotwell/src/Page.vala"
- return drag_and_drop_handler_construct (TYPE_DRAG_AND_DROP_HANDLER, page);
-#line 16005 "Page.c"
-}
-
-
-static void
-drag_and_drop_handler_on_drag_begin (DragAndDropHandler* self,
- GdkDragContext* context)
-{
- Page* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- Page* _tmp5_;
- ThumbnailSource* thumb = NULL;
- Page* _tmp10_;
- ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- DataView* _tmp13_;
- DataView* _tmp14_;
- DataSource* _tmp15_;
- ThumbnailSource* _tmp16_;
- GdkWindow* _tmp26_;
- GdkAtom* _tmp27_;
- GdkAtom* _tmp28_;
- guint8* _tmp29_;
- gint _tmp29__length1;
- GError * _inner_error_ = NULL;
-#line 2550 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self));
-#line 2550 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 2551 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->page;
-#line 2551 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_page_name (_tmp0_);
-#line 2551 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 2551 "/home/jens/Source/shotwell/src/Page.vala"
- g_debug ("Page.vala:2551: on_drag_begin (%s)", _tmp2_);
-#line 2551 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp2_);
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->page;
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_ == NULL) {
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = TRUE;
-#line 16053 "Page.c"
- } else {
- Page* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->page;
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = page_get_view (_tmp6_);
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = _tmp7_;
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = view_collection_get_selected_count (_tmp8_) == 0;
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp8_);
-#line 16068 "Page.c"
- }
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_) {
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = TRUE;
-#line 16074 "Page.c"
- } else {
- ExporterUI* _tmp9_;
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = self->priv->exporter;
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp9_ != NULL;
-#line 16081 "Page.c"
- }
-#line 2553 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 2554 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 16087 "Page.c"
- }
-#line 2556 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->drag_destination);
-#line 2556 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->drag_destination = NULL;
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->priv->page;
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = page_get_view (_tmp10_);
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = _tmp11_;
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = view_collection_get_selected_at (_tmp12_, 0);
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _tmp13_;
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = data_view_get_source (_tmp14_);
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource);
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp14_);
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp12_);
-#line 2559 "/home/jens/Source/shotwell/src/Page.vala"
- thumb = _tmp16_;
-#line 16113 "Page.c"
- {
- GdkPixbuf* icon = NULL;
- ThumbnailSource* _tmp17_;
- GdkPixbuf* _tmp18_;
- GtkWidget* _tmp19_;
- GdkPixbuf* _tmp20_;
-#line 2562 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = thumb;
-#line 2562 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = thumbnail_source_get_thumbnail (_tmp17_, APP_WINDOW_DND_ICON_SCALE, &_inner_error_);
-#line 2562 "/home/jens/Source/shotwell/src/Page.vala"
- icon = _tmp18_;
-#line 2562 "/home/jens/Source/shotwell/src/Page.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 16128 "Page.c"
- goto __catch267_g_error;
- }
-#line 2563 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = self->priv->event_source;
-#line 2563 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = icon;
-#line 2563 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_drag_source_set_icon_pixbuf (_tmp19_, _tmp20_);
-#line 2561 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (icon);
-#line 16139 "Page.c"
- }
- goto __finally267;
- __catch267_g_error:
- {
- GError* err = NULL;
- ThumbnailSource* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GError* _tmp24_;
- const gchar* _tmp25_;
-#line 2561 "/home/jens/Source/shotwell/src/Page.vala"
- err = _inner_error_;
-#line 2561 "/home/jens/Source/shotwell/src/Page.vala"
- _inner_error_ = NULL;
-#line 2565 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = thumb;
-#line 2565 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject));
-#line 2565 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = _tmp22_;
-#line 2565 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = err;
-#line 2565 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = _tmp24_->message;
-#line 2565 "/home/jens/Source/shotwell/src/Page.vala"
- g_warning ("Page.vala:2565: Unable to fetch icon for drag-and-drop from %s: %s", _tmp23_, _tmp25_);
-#line 2565 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp23_);
-#line 2561 "/home/jens/Source/shotwell/src/Page.vala"
- _g_error_free0 (err);
-#line 16170 "Page.c"
- }
- __finally267:
-#line 2561 "/home/jens/Source/shotwell/src/Page.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2561 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (thumb);
-#line 2561 "/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 2561 "/home/jens/Source/shotwell/src/Page.vala"
- g_clear_error (&_inner_error_);
-#line 2561 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 16183 "Page.c"
- }
-#line 2571 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = gdk_drag_context_get_source_window (context);
-#line 2571 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = drag_and_drop_handler_XDS_ATOM;
-#line 2571 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = drag_and_drop_handler_TEXT_ATOM;
-#line 2571 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = drag_and_drop_handler_XDS_FAKE_TARGET;
-#line 2571 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29__length1 = drag_and_drop_handler_XDS_FAKE_TARGET_length1;
-#line 2571 "/home/jens/Source/shotwell/src/Page.vala"
- gdk_property_change (_tmp26_, *_tmp27_, *_tmp28_, 8, GDK_PROP_MODE_REPLACE, (const guchar*) _tmp29_, 1);
-#line 2550 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (thumb);
-#line 16199 "Page.c"
-}
-
-
-static void
-drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self,
- GdkDragContext* context,
- GtkSelectionData* selection_data,
- guint target_type,
- guint time)
-{
- Page* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gboolean _tmp3_ = FALSE;
- Page* _tmp4_;
-#line 2579 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self));
-#line 2579 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 2579 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (selection_data != NULL);
-#line 2581 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->page;
-#line 2581 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_page_name (_tmp0_);
-#line 2581 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 2581 "/home/jens/Source/shotwell/src/Page.vala"
- g_debug ("Page.vala:2581: on_drag_data_get (%s)", _tmp2_);
-#line 2581 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp2_);
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = self->priv->page;
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_ == NULL) {
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = TRUE;
-#line 16237 "Page.c"
- } else {
- Page* _tmp5_;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->page;
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = page_get_view (_tmp5_);
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = _tmp6_;
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = view_collection_get_selected_count (_tmp7_) == 0;
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp7_);
-#line 16252 "Page.c"
- }
-#line 2583 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 2584 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 16258 "Page.c"
- }
-#line 2586 "/home/jens/Source/shotwell/src/Page.vala"
- switch (target_type) {
-#line 2586 "/home/jens/Source/shotwell/src/Page.vala"
- case DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS:
-#line 16264 "Page.c"
- {
- guchar* data = NULL;
- guchar* _tmp8_;
- gint data_length1;
- gint _data_size_;
- GdkAtom actual_type = 0U;
- gint actual_format = 0;
- gboolean fetched = FALSE;
- GdkWindow* _tmp9_;
- GdkAtom* _tmp10_;
- GdkAtom* _tmp11_;
- guchar* _tmp12_;
- gint _tmp12__length1;
- GdkAtom _tmp13_ = 0U;
- gint _tmp14_ = 0;
- guint8* _tmp15_ = NULL;
- gint _tmp16_;
- gboolean _tmp17_;
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_ = FALSE;
- gboolean _tmp20_;
- gchar* _tmp29_ = NULL;
- GFile* _tmp30_;
- Page* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- const gchar* _tmp37_ = NULL;
- GFile* _tmp38_;
- GdkAtom* _tmp39_;
- gint _tmp40_;
- guchar* _tmp41_;
- guchar* _tmp42_;
- gint _tmp42__length1;
-#line 2589 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = g_new0 (guchar, 4096);
-#line 2589 "/home/jens/Source/shotwell/src/Page.vala"
- data = _tmp8_;
-#line 2589 "/home/jens/Source/shotwell/src/Page.vala"
- data_length1 = 4096;
-#line 2589 "/home/jens/Source/shotwell/src/Page.vala"
- _data_size_ = data_length1;
-#line 2591 "/home/jens/Source/shotwell/src/Page.vala"
- actual_format = 0;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = gdk_drag_context_get_source_window (context);
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = drag_and_drop_handler_XDS_ATOM;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = drag_and_drop_handler_TEXT_ATOM;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = data;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12__length1 = data_length1;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = gdk_property_get (_tmp9_, *_tmp10_, *_tmp11_, (gulong) 0, (gulong) _tmp12__length1, 0, &_tmp13_, &_tmp14_, &_tmp16_, &_tmp15_);
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- actual_type = _tmp13_;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- actual_format = _tmp14_;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- data = (g_free (data), NULL);
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- data = _tmp15_;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- data_length1 = _tmp16_;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- _data_size_ = data_length1;
-#line 2592 "/home/jens/Source/shotwell/src/Page.vala"
- fetched = _tmp17_;
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = fetched;
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp20_) {
-#line 16338 "Page.c"
- guchar* _tmp21_;
- gint _tmp21__length1;
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = data;
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21__length1 = data_length1;
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = _tmp21_ != NULL;
-#line 16347 "Page.c"
- } else {
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = FALSE;
-#line 16351 "Page.c"
- }
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp19_) {
-#line 16355 "Page.c"
- guchar* _tmp22_;
- gint _tmp22__length1;
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = data;
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22__length1 = data_length1;
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp22__length1 > 0;
-#line 16364 "Page.c"
- } else {
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = FALSE;
-#line 16368 "Page.c"
- }
-#line 2597 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp18_) {
-#line 16372 "Page.c"
- guchar* _tmp23_;
- gint _tmp23__length1;
- gchar* _tmp24_;
- gchar* _tmp25_;
- GFile* _tmp26_;
- GFile* _tmp27_;
- GFile* _tmp28_;
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = data;
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23__length1 = data_length1;
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = uchar_array_to_string (_tmp23_, _tmp23__length1, -1);
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp25_ = _tmp24_;
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp26_ = g_file_new_for_uri (_tmp25_);
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = _tmp26_;
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = g_file_get_parent (_tmp27_);
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->drag_destination);
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->drag_destination = _tmp28_;
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp27_);
-#line 2598 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp25_);
-#line 16402 "Page.c"
- }
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = self->priv->drag_destination;
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp30_ != NULL) {
-#line 16408 "Page.c"
- GFile* _tmp31_;
- gchar* _tmp32_;
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp31_ = self->priv->drag_destination;
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp32_ = g_file_get_path (_tmp31_);
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp29_);
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = _tmp32_;
-#line 16419 "Page.c"
- } else {
- gchar* _tmp33_;
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp33_ = g_strdup ("(no path)");
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp29_);
-#line 2601 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = _tmp33_;
-#line 16428 "Page.c"
- }
-#line 2600 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp34_ = self->priv->page;
-#line 2600 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp35_ = page_get_page_name (_tmp34_);
-#line 2600 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp36_ = _tmp35_;
-#line 2600 "/home/jens/Source/shotwell/src/Page.vala"
- g_debug ("Page.vala:2600: on_drag_data_get (%s): %s", _tmp36_, _tmp29_);
-#line 2600 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp36_);
-#line 2605 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp38_ = self->priv->drag_destination;
-#line 2605 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp38_ != NULL) {
-#line 2605 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = "S";
-#line 16446 "Page.c"
- } else {
-#line 2605 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp37_ = "E";
-#line 16450 "Page.c"
- }
-#line 2604 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp39_ = drag_and_drop_handler_XDS_ATOM;
-#line 2604 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp41_ = string_to_uchar_array (_tmp37_, &_tmp40_);
-#line 2604 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = _tmp41_;
-#line 2604 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42__length1 = _tmp40_;
-#line 2604 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_selection_data_set (selection_data, *_tmp39_, 8, _tmp42_, _tmp40_);
-#line 2604 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp42_ = (g_free (_tmp42_), NULL);
-#line 2606 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp29_);
-#line 2606 "/home/jens/Source/shotwell/src/Page.vala"
- data = (g_free (data), NULL);
-#line 2606 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 16470 "Page.c"
- }
-#line 2586 "/home/jens/Source/shotwell/src/Page.vala"
- case DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST:
-#line 16474 "Page.c"
- {
- GeeCollection* sources = NULL;
- Page* _tmp43_;
- ViewCollection* _tmp44_;
- ViewCollection* _tmp45_;
- GeeList* _tmp46_;
- GeeCollection* _tmp47_;
- GeeCollection* _tmp48_;
- gint _tmp49_;
- guchar* _tmp50_;
- guchar* _tmp51_;
- gint _tmp51__length1;
-#line 2609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp43_ = self->priv->page;
-#line 2609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp44_ = page_get_view (_tmp43_);
-#line 2609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp45_ = _tmp44_;
-#line 2609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp46_ = view_collection_get_selected_sources (_tmp45_);
-#line 2609 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp47_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 2609 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp45_);
-#line 2609 "/home/jens/Source/shotwell/src/Page.vala"
- sources = _tmp47_;
-#line 2614 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp48_ = sources;
-#line 2614 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp50_ = serialize_media_sources (_tmp48_, &_tmp49_);
-#line 2614 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp51_ = _tmp50_;
-#line 2614 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp51__length1 = _tmp49_;
-#line 2614 "/home/jens/Source/shotwell/src/Page.vala"
- gtk_selection_data_set (selection_data, gdk_atom_intern_static_string ("SourceIDAtom"), (gint) sizeof (GdkAtom), _tmp51_, _tmp49_);
-#line 2614 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp51_ = (g_free (_tmp51_), NULL);
-#line 2616 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (sources);
-#line 2616 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 16517 "Page.c"
- }
- default:
- {
- Page* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
-#line 2619 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp52_ = self->priv->page;
-#line 2619 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp53_ = page_get_page_name (_tmp52_);
-#line 2619 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp54_ = _tmp53_;
-#line 2619 "/home/jens/Source/shotwell/src/Page.vala"
- g_warning ("Page.vala:2619: on_drag_data_get (%s): unknown target type %u", _tmp54_, target_type);
-#line 2619 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp54_);
-#line 2621 "/home/jens/Source/shotwell/src/Page.vala"
- break;
-#line 16536 "Page.c"
- }
- }
-}
-
-
-static void
-_drag_and_drop_handler_on_export_completed_exporter_completion_callback (Exporter* exporter,
- gboolean is_cancelled,
- gpointer self)
-{
-#line 2642 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_on_export_completed ((DragAndDropHandler*) self);
-#line 16549 "Page.c"
-}
-
-
-static void
-drag_and_drop_handler_on_drag_end (DragAndDropHandler* self)
-{
- Page* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- Page* _tmp6_;
- GFile* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- GFile* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gboolean _tmp18_;
-#line 2625 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self));
-#line 2626 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->page;
-#line 2626 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_page_name (_tmp0_);
-#line 2626 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 2626 "/home/jens/Source/shotwell/src/Page.vala"
- g_debug ("Page.vala:2626: on_drag_end (%s)", _tmp2_);
-#line 2626 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp2_);
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp6_ = self->priv->page;
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp6_ == NULL) {
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = TRUE;
-#line 16588 "Page.c"
- } else {
- Page* _tmp7_;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->priv->page;
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp8_ = page_get_view (_tmp7_);
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp9_ = _tmp8_;
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = view_collection_get_selected_count (_tmp9_) == 0;
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp9_);
-#line 16603 "Page.c"
- }
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp5_) {
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = TRUE;
-#line 16609 "Page.c"
- } else {
- GFile* _tmp10_;
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp10_ = self->priv->drag_destination;
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp4_ = _tmp10_ == NULL;
-#line 16616 "Page.c"
- }
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp4_) {
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = TRUE;
-#line 16622 "Page.c"
- } else {
- ExporterUI* _tmp11_;
-#line 2629 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp11_ = self->priv->exporter;
-#line 2629 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = _tmp11_ != NULL;
-#line 16629 "Page.c"
- }
-#line 2628 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_) {
-#line 2630 "/home/jens/Source/shotwell/src/Page.vala"
- return;
-#line 16635 "Page.c"
- }
-#line 2633 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp12_ = self->priv->drag_destination;
-#line 2633 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp13_ = g_file_get_path (_tmp12_);
-#line 2633 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp14_ = _tmp13_;
-#line 2633 "/home/jens/Source/shotwell/src/Page.vala"
- g_debug ("Page.vala:2633: Exporting to %s", _tmp14_);
-#line 2633 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp14_);
-#line 2638 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp15_ = self->priv->drag_destination;
-#line 2638 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp16_ = g_file_get_path (_tmp15_);
-#line 2638 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp17_ = _tmp16_;
-#line 2638 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp18_ = _tmp17_ != NULL;
-#line 2638 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp17_);
-#line 2638 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp18_) {
-#line 16659 "Page.c"
- Page* _tmp19_;
- ViewCollection* _tmp20_;
- ViewCollection* _tmp21_;
- GeeList* _tmp22_;
- GeeCollection* _tmp23_;
- GFile* _tmp24_;
- Scaling _tmp25_ = {0};
- ExportFormatParameters _tmp26_ = {0};
- Exporter* _tmp27_;
- Exporter* _tmp28_;
- ExporterUI* _tmp29_;
- ExporterUI* _tmp30_;
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp19_ = self->priv->page;
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp20_ = page_get_view (_tmp19_);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp21_ = _tmp20_;
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp22_ = view_collection_get_selected_sources (_tmp21_);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp24_ = self->priv->drag_destination;
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- scaling_for_original (&_tmp25_);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- export_format_parameters_current (&_tmp26_);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp27_ = exporter_new (_tmp23_, _tmp24_, &_tmp25_, &_tmp26_, FALSE);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp28_ = _tmp27_;
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp29_ = exporter_ui_new (_tmp28_);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _exporter_ui_unref0 (self->priv->exporter);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->exporter = _tmp29_;
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp28_);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (_tmp23_);
-#line 2639 "/home/jens/Source/shotwell/src/Page.vala"
- _data_collection_unref0 (_tmp21_);
-#line 2642 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp30_ = self->priv->exporter;
-#line 2642 "/home/jens/Source/shotwell/src/Page.vala"
- exporter_ui_export (_tmp30_, _drag_and_drop_handler_on_export_completed_exporter_completion_callback, self);
-#line 16708 "Page.c"
- } else {
-#line 2644 "/home/jens/Source/shotwell/src/Page.vala"
- app_window_error_message (_ ("Photos cannot be exported to this directory."), NULL);
-#line 16712 "Page.c"
- }
-#line 2647 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->drag_destination);
-#line 2647 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->drag_destination = NULL;
-#line 16718 "Page.c"
-}
-
-
-static gboolean
-drag_and_drop_handler_on_drag_failed (DragAndDropHandler* self,
- GdkDragContext* context,
- GtkDragResult drag_result)
-{
- gboolean result = FALSE;
- Page* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- Page* _tmp3_;
-#line 2650 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (IS_DRAG_AND_DROP_HANDLER (self), FALSE);
-#line 2650 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE);
-#line 2651 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->page;
-#line 2651 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = page_get_page_name (_tmp0_);
-#line 2651 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp2_ = _tmp1_;
-#line 2651 "/home/jens/Source/shotwell/src/Page.vala"
- g_debug ("Page.vala:2651: on_drag_failed (%s): %d", _tmp2_, (gint) drag_result);
-#line 2651 "/home/jens/Source/shotwell/src/Page.vala"
- _g_free0 (_tmp2_);
-#line 2653 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->page;
-#line 2653 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp3_ == NULL) {
-#line 2654 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 2654 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 16754 "Page.c"
- }
-#line 2656 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->drag_destination);
-#line 2656 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->drag_destination = NULL;
-#line 2658 "/home/jens/Source/shotwell/src/Page.vala"
- result = FALSE;
-#line 2658 "/home/jens/Source/shotwell/src/Page.vala"
- return result;
-#line 16764 "Page.c"
-}
-
-
-static void
-drag_and_drop_handler_on_export_completed (DragAndDropHandler* self)
-{
-#line 2661 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self));
-#line 2662 "/home/jens/Source/shotwell/src/Page.vala"
- _exporter_ui_unref0 (self->priv->exporter);
-#line 2662 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->exporter = NULL;
-#line 16777 "Page.c"
-}
-
-
-static void
-value_drag_and_drop_handler_init (GValue* value)
-{
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 16786 "Page.c"
-}
-
-
-static void
-value_drag_and_drop_handler_free_value (GValue* value)
-{
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (value->data[0].v_pointer) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_unref (value->data[0].v_pointer);
-#line 16797 "Page.c"
- }
-}
-
-
-static void
-value_drag_and_drop_handler_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (src_value->data[0].v_pointer) {
-#line 2490 "/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 16810 "Page.c"
- } else {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 16814 "Page.c"
- }
-}
-
-
-static gpointer
-value_drag_and_drop_handler_peek_pointer (const GValue* value)
-{
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- return value->data[0].v_pointer;
-#line 16824 "Page.c"
-}
-
-
-static gchar*
-value_drag_and_drop_handler_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (collect_values[0].v_pointer) {
-#line 16836 "Page.c"
- DragAndDropHandler * object;
- object = collect_values[0].v_pointer;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 16843 "Page.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 2490 "/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 16847 "Page.c"
- }
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = drag_and_drop_handler_ref (object);
-#line 16851 "Page.c"
- } else {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 16855 "Page.c"
- }
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- return NULL;
-#line 16859 "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 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (!object_p) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 16875 "Page.c"
- }
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (!value->data[0].v_pointer) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- *object_p = NULL;
-#line 16881 "Page.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- *object_p = value->data[0].v_pointer;
-#line 16885 "Page.c"
- } else {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- *object_p = drag_and_drop_handler_ref (value->data[0].v_pointer);
-#line 16889 "Page.c"
- }
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- return NULL;
-#line 16893 "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 2490 "/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 2490 "/home/jens/Source/shotwell/src/Page.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- return G_PARAM_SPEC (spec);
-#line 16913 "Page.c"
-}
-
-
-gpointer
-value_get_drag_and_drop_handler (const GValue* value)
-{
-#line 2490 "/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 2490 "/home/jens/Source/shotwell/src/Page.vala"
- return value->data[0].v_pointer;
-#line 16924 "Page.c"
-}
-
-
-void
-value_set_drag_and_drop_handler (GValue* value,
- gpointer v_object)
-{
- DragAndDropHandler * old;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DRAG_AND_DROP_HANDLER));
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- old = value->data[0].v_pointer;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (v_object) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DRAG_AND_DROP_HANDLER));
-#line 2490 "/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 2490 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = v_object;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_ref (value->data[0].v_pointer);
-#line 16947 "Page.c"
- } else {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 16951 "Page.c"
- }
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (old) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_unref (old);
-#line 16957 "Page.c"
- }
-}
-
-
-void
-value_take_drag_and_drop_handler (GValue* value,
- gpointer v_object)
-{
- DragAndDropHandler * old;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DRAG_AND_DROP_HANDLER));
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- old = value->data[0].v_pointer;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (v_object) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DRAG_AND_DROP_HANDLER));
-#line 2490 "/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 2490 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = v_object;
-#line 16979 "Page.c"
- } else {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- value->data[0].v_pointer = NULL;
-#line 16983 "Page.c"
- }
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (old) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_unref (old);
-#line 16989 "Page.c"
- }
-}
-
-
-static void
-drag_and_drop_handler_class_init (DragAndDropHandlerClass * klass)
-{
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- drag_and_drop_handler_parent_class = g_type_class_peek_parent (klass);
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- ((DragAndDropHandlerClass *) klass)->finalize = drag_and_drop_handler_finalize;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- g_type_class_add_private (klass, sizeof (DragAndDropHandlerPrivate));
-#line 17003 "Page.c"
-}
-
-
-static void
-drag_and_drop_handler_instance_init (DragAndDropHandler * self)
-{
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv = DRAG_AND_DROP_HANDLER_GET_PRIVATE (self);
-#line 2507 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->drag_destination = NULL;
-#line 2508 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->exporter = NULL;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- self->ref_count = 1;
-#line 17018 "Page.c"
-}
-
-
-static void
-drag_and_drop_handler_finalize (DragAndDropHandler * obj)
-{
- DragAndDropHandler * self;
- GtkWidget* _tmp0_;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler);
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_handlers_destroy (self);
-#line 2539 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp0_ = self->priv->event_source;
-#line 2539 "/home/jens/Source/shotwell/src/Page.vala"
- if (_tmp0_ != NULL) {
-#line 17035 "Page.c"
- GtkWidget* _tmp1_;
- guint _tmp2_;
- GtkWidget* _tmp3_;
- guint _tmp4_;
- GtkWidget* _tmp5_;
- guint _tmp6_;
- GtkWidget* _tmp7_;
- guint _tmp8_;
-#line 2540 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp1_ = self->priv->event_source;
-#line 2540 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-begin", gtk_widget_get_type (), &_tmp2_, NULL, FALSE);
-#line 2540 "/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 2541 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp3_ = self->priv->event_source;
-#line 2541 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-data-get", gtk_widget_get_type (), &_tmp4_, NULL, FALSE);
-#line 2541 "/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 2542 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp5_ = self->priv->event_source;
-#line 2542 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-end", gtk_widget_get_type (), &_tmp6_, NULL, FALSE);
-#line 2542 "/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 2543 "/home/jens/Source/shotwell/src/Page.vala"
- _tmp7_ = self->priv->event_source;
-#line 2543 "/home/jens/Source/shotwell/src/Page.vala"
- g_signal_parse_name ("drag-failed", gtk_widget_get_type (), &_tmp8_, NULL, FALSE);
-#line 2543 "/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 17068 "Page.c"
- }
-#line 2546 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->page = NULL;
-#line 2547 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->event_source);
-#line 2547 "/home/jens/Source/shotwell/src/Page.vala"
- self->priv->event_source = NULL;
-#line 2506 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->event_source);
-#line 2507 "/home/jens/Source/shotwell/src/Page.vala"
- _g_object_unref0 (self->priv->drag_destination);
-#line 2508 "/home/jens/Source/shotwell/src/Page.vala"
- _exporter_ui_unref0 (self->priv->exporter);
-#line 17082 "Page.c"
-}
-
-
-GType
-drag_and_drop_handler_get_type (void)
-{
- static volatile gsize drag_and_drop_handler_type_id__volatile = 0;
- if (g_once_init_enter (&drag_and_drop_handler_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_drag_and_drop_handler_init, value_drag_and_drop_handler_free_value, value_drag_and_drop_handler_copy_value, value_drag_and_drop_handler_peek_pointer, "p", value_drag_and_drop_handler_collect_value, "p", value_drag_and_drop_handler_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DragAndDropHandlerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) drag_and_drop_handler_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DragAndDropHandler), 0, (GInstanceInitFunc) drag_and_drop_handler_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType drag_and_drop_handler_type_id;
- drag_and_drop_handler_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DragAndDropHandler", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&drag_and_drop_handler_type_id__volatile, drag_and_drop_handler_type_id);
- }
- return drag_and_drop_handler_type_id__volatile;
-}
-
-
-gpointer
-drag_and_drop_handler_ref (gpointer instance)
-{
- DragAndDropHandler * self;
- self = instance;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- return instance;
-#line 17111 "Page.c"
-}
-
-
-void
-drag_and_drop_handler_unref (gpointer instance)
-{
- DragAndDropHandler * self;
- self = instance;
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- DRAG_AND_DROP_HANDLER_GET_CLASS (self)->finalize (self);
-#line 2490 "/home/jens/Source/shotwell/src/Page.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 17126 "Page.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Page.vala b/src/Page.vala
index ea8606e..b92eaa0 100644
--- a/src/Page.vala
+++ b/src/Page.vala
@@ -414,9 +414,9 @@ public abstract class Page : Gtk.ScrolledWindow {
int x, y;
Gdk.ModifierType mask;
- AppWindow.get_instance().get_window().get_device_position(Gdk.Display.get_default().
- get_device_manager().get_client_pointer(), out x, out y, out mask);
-
+ var seat = Gdk.Display.get_default().get_default_seat();
+ AppWindow.get_instance().get_window().get_device_position(seat.get_pointer(), out x, out y, out mask);
+
ctrl = (mask & Gdk.ModifierType.CONTROL_MASK) != 0;
alt = (mask & Gdk.ModifierType.MOD1_MASK) != 0;
shift = (mask & Gdk.ModifierType.SHIFT_MASK) != 0;
@@ -675,8 +675,8 @@ public abstract class Page : Gtk.ScrolledWindow {
return false;
}
- event_source.get_window().get_device_position(Gdk.Display.get_default().get_device_manager()
- .get_client_pointer(), out x, out y, out mask);
+ var seat = Gdk.Display.get_default().get_default_seat();
+ event_source.get_window().get_device_position(seat.get_pointer(), out x, out y, out mask);
if (last_down.x < 0 || last_down.y < 0)
return true;
@@ -1083,10 +1083,7 @@ public abstract class Page : Gtk.ScrolledWindow {
if (context_menu == null || !on_context_invoked())
return false;
- if (event == null)
- context_menu.popup(null, null, null, 0, Gtk.get_current_event_time());
- else
- context_menu.popup(null, null, null, event.button, event.time);
+ context_menu.popup_at_pointer(event);
return true;
}
@@ -1222,7 +1219,7 @@ public abstract class CheckerboardPage : Page {
private Gtk.Viewport viewport = new Gtk.Viewport(null, null);
protected CheckerboardItem anchor = null;
protected CheckerboardItem cursor = null;
- private CheckerboardItem highlighted = null;
+ private CheckerboardItem current_hovered_item = null;
private bool autoscroll_scheduled = false;
private CheckerboardItem activated_item = null;
private Gee.ArrayList<CheckerboardItem> previously_selected = null;
@@ -1446,8 +1443,8 @@ public abstract class CheckerboardPage : Page {
if (cursor == item)
cursor = null;
- if (highlighted == item)
- highlighted = null;
+ if (current_hovered_item == item)
+ current_hovered_item = null;
}
}
@@ -1715,13 +1712,13 @@ public abstract class CheckerboardPage : Page {
// if hovering over the last hovered item, or both are null (nothing highlighted and
// hovering over empty space), do nothing
- if (item == highlighted)
+ if (item == current_hovered_item)
return true;
// either something new is highlighted or now hovering over empty space, so dim old item
- if (highlighted != null) {
- highlighted.unbrighten();
- highlighted = null;
+ if (current_hovered_item != null) {
+ current_hovered_item.handle_mouse_leave();
+ current_hovered_item = null;
}
// if over empty space, done
@@ -1729,8 +1726,8 @@ public abstract class CheckerboardPage : Page {
return true;
// brighten the new item
- item.brighten();
- highlighted = item;
+ current_hovered_item = item;
+ current_hovered_item.handle_mouse_enter();
return true;
}
@@ -2219,7 +2216,7 @@ public abstract class SinglePhotoPage : Page {
}
public Scaling get_canvas_scaling() {
- return (get_container() is FullscreenWindow) ? Scaling.for_screen(get_container(), scale_up_to_viewport)
+ return (get_container() is FullscreenWindow) ? Scaling.for_screen(AppWindow.get_instance(), scale_up_to_viewport)
: Scaling.for_widget(viewport, scale_up_to_viewport);
}
diff --git a/src/Photo.c b/src/Photo.c
deleted file mode 100644
index 3da6c81..0000000
--- a/src/Photo.c
+++ /dev/null
@@ -1,42442 +0,0 @@
-/* Photo.c generated by valac 0.40.4, the Vala compiler
- * generated from Photo.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* Specifies how pixel data is fetched from the backing file on disk. MASTER is the original*/
-/* backing photo of any supported photo file format; SOURCE is either the master or the editable*/
-/* file, that is, the appropriate reference file for user display; BASELINE is an appropriate*/
-/* file with the proviso that it may be a suitable substitute for the master and/or the editable.*/
-/* UNMODIFIED represents the photo with no edits, i.e. the head of the pipeline.*/
-/**/
-/* In general, callers want to use the BASELINE unless requirements are specific.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <time.h>
-#include "shotwell-graphics-processor.h"
-#include <glib/gstdio.h>
-#include <float.h>
-#include <math.h>
-#include <gdk/gdk.h>
-#include <glib/gi18n-lib.h>
-#include <cairo.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ())
-
-#define TYPE_PHOTO_IMPORT_PARAMS (photo_import_params_get_type ())
-#define PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams))
-#define PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass))
-#define IS_PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_PARAMS))
-#define IS_PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_PARAMS))
-#define PHOTO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass))
-
-typedef struct _PhotoImportParams PhotoImportParams;
-typedef struct _PhotoImportParamsClass PhotoImportParamsClass;
-typedef struct _PhotoImportParamsPrivate PhotoImportParamsPrivate;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_THUMBNAILS (thumbnails_get_type ())
-#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails))
-#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass))
-#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS))
-#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS))
-#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass))
-
-typedef struct _Thumbnails Thumbnails;
-typedef struct _ThumbnailsClass ThumbnailsClass;
-
-#define TYPE_PHOTO_ROW (photo_row_get_type ())
-#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow))
-#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass))
-#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW))
-#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW))
-#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass))
-
-typedef struct _PhotoRow PhotoRow;
-typedef struct _PhotoRowClass PhotoRowClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _thumbnails_unref0(var) ((var == NULL) ? NULL : (var = (thumbnails_unref (var), NULL)))
-#define _photo_row_unref0(var) ((var == NULL) ? NULL : (var = (photo_row_unref (var), NULL)))
-typedef struct _ParamSpecPhotoImportParams ParamSpecPhotoImportParams;
-
-#define TYPE_PHOTO_TRANSFORMATION_STATE (photo_transformation_state_get_type ())
-#define PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState))
-#define PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass))
-#define IS_PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TRANSFORMATION_STATE))
-#define IS_PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TRANSFORMATION_STATE))
-#define PHOTO_TRANSFORMATION_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass))
-
-typedef struct _PhotoTransformationState PhotoTransformationState;
-typedef struct _PhotoTransformationStateClass PhotoTransformationStateClass;
-typedef struct _PhotoTransformationStatePrivate PhotoTransformationStatePrivate;
-enum {
- PHOTO_TRANSFORMATION_STATE_0_PROPERTY,
- PHOTO_TRANSFORMATION_STATE_NUM_PROPERTIES
-};
-static GParamSpec* photo_transformation_state_properties[PHOTO_TRANSFORMATION_STATE_NUM_PROPERTIES];
-enum {
- PHOTO_TRANSFORMATION_STATE_BROKEN_SIGNAL,
- PHOTO_TRANSFORMATION_STATE_NUM_SIGNALS
-};
-static guint photo_transformation_state_signals[PHOTO_TRANSFORMATION_STATE_NUM_SIGNALS] = {0};
-
-#define TYPE_RATING (rating_get_type ())
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-
-#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;
-typedef struct _MediaSourcePrivate MediaSourcePrivate;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ())
-#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState))
-#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE))
-#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE))
-#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-
-typedef struct _BackingFileState BackingFileState;
-typedef struct _BackingFileStateClass BackingFileStateClass;
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#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;
-typedef struct _PhotoSourcePrivate PhotoSourcePrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-
-#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 _PhotoPrivate PhotoPrivate;
-
-#define TYPE_ROTATION (rotation_get_type ())
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-
-#define PHOTO_TYPE_BACKING_READERS (photo_backing_readers_get_type ())
-#define PHOTO_BACKING_READERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_BACKING_READERS, PhotoBackingReaders))
-#define PHOTO_BACKING_READERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_BACKING_READERS, PhotoBackingReadersClass))
-#define PHOTO_IS_BACKING_READERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_BACKING_READERS))
-#define PHOTO_IS_BACKING_READERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_BACKING_READERS))
-#define PHOTO_BACKING_READERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_BACKING_READERS, PhotoBackingReadersClass))
-
-typedef struct _PhotoBackingReaders PhotoBackingReaders;
-typedef struct _PhotoBackingReadersClass PhotoBackingReadersClass;
-
-#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
-#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
-#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
-#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
-#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-
-typedef struct _OneShotScheduler OneShotScheduler;
-typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-enum {
- PHOTO_0_PROPERTY,
- PHOTO_NUM_PROPERTIES
-};
-static GParamSpec* photo_properties[PHOTO_NUM_PROPERTIES];
-
-#define PHOTO_TYPE_CACHED_PIXBUF (photo_cached_pixbuf_get_type ())
-#define PHOTO_CACHED_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbuf))
-#define PHOTO_CACHED_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbufClass))
-#define PHOTO_IS_CACHED_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_CACHED_PIXBUF))
-#define PHOTO_IS_CACHED_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_CACHED_PIXBUF))
-#define PHOTO_CACHED_PIXBUF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbufClass))
-
-typedef struct _PhotoCachedPixbuf PhotoCachedPixbuf;
-typedef struct _PhotoCachedPixbufClass PhotoCachedPixbufClass;
-#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL)))
-#define _photo_backing_readers_unref0(var) ((var == NULL) ? NULL : (var = (photo_backing_readers_unref (var), NULL)))
-#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL)))
-#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
-#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL)))
-typedef struct _PhotoRowPrivate PhotoRowPrivate;
-
-#define TYPE_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-typedef struct _PhotoBackingReadersPrivate PhotoBackingReadersPrivate;
-#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_PHOTO_TABLE (photo_table_get_type ())
-#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable))
-#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass))
-#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE))
-#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE))
-#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass))
-
-typedef struct _PhotoTable PhotoTable;
-typedef struct _PhotoTableClass PhotoTableClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_BACKING_PHOTO_TABLE (backing_photo_table_get_type ())
-#define BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTable))
-#define BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass))
-#define IS_BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_TABLE))
-#define IS_BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_TABLE))
-#define BACKING_PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass))
-
-typedef struct _BackingPhotoTable BackingPhotoTable;
-typedef struct _BackingPhotoTableClass BackingPhotoTableClass;
-
-#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ())
-#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview))
-#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
-#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW))
-#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW))
-#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
-
-typedef struct _PhotoPreview PhotoPreview;
-typedef struct _PhotoPreviewClass PhotoPreviewClass;
-#define _photo_preview_unref0(var) ((var == NULL) ? NULL : (var = (photo_preview_unref (var), NULL)))
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_INTERROGATOR (photo_file_interrogator_get_type ())
-#define PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogator))
-#define PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass))
-#define IS_PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_INTERROGATOR))
-#define IS_PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_INTERROGATOR))
-#define PHOTO_FILE_INTERROGATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass))
-
-typedef struct _PhotoFileInterrogator PhotoFileInterrogator;
-typedef struct _PhotoFileInterrogatorClass PhotoFileInterrogatorClass;
-#define _photo_file_interrogator_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_interrogator_unref (var), NULL)))
-
-#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
-#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
-#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
-#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
-#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-
-typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
-typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
-#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
-typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-
-#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
-#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
-#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-
-typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
-typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
-#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL)))
-
-#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-
-#define TYPE_IMPORT_RESULT (import_result_get_type ())
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-
-#define PHOTO_FILE_READER_TYPE_ROLE (photo_file_reader_role_get_type ())
-
-#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ())
-#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState))
-#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
-#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE))
-#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE))
-#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
-
-typedef struct _PhotoReimportMasterState PhotoReimportMasterState;
-typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass;
-#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL)))
-
-#define PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL (photo_reimport_master_state_impl_get_type ())
-#define PHOTO_REIMPORT_MASTER_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl))
-#define PHOTO_REIMPORT_MASTER_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImplClass))
-#define PHOTO_IS_REIMPORT_MASTER_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL))
-#define PHOTO_IS_REIMPORT_MASTER_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL))
-#define PHOTO_REIMPORT_MASTER_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImplClass))
-
-typedef struct _PhotoReimportMasterStateImpl PhotoReimportMasterStateImpl;
-typedef struct _PhotoReimportMasterStateImplClass PhotoReimportMasterStateImplClass;
-typedef struct _PhotoReimportMasterStatePrivate PhotoReimportMasterStatePrivate;
-typedef struct _PhotoReimportMasterStateImplPrivate PhotoReimportMasterStateImplPrivate;
-
-#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE (photo_reimport_editable_state_get_type ())
-#define PHOTO_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState))
-#define PHOTO_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass))
-#define PHOTO_IS_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE))
-#define PHOTO_IS_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE))
-#define PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass))
-
-typedef struct _PhotoReimportEditableState PhotoReimportEditableState;
-typedef struct _PhotoReimportEditableStateClass PhotoReimportEditableStateClass;
-#define _photo_reimport_editable_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_editable_state_unref (var), NULL)))
-
-#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL (photo_reimport_editable_state_impl_get_type ())
-#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl))
-#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImplClass))
-#define PHOTO_IS_REIMPORT_EDITABLE_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL))
-#define PHOTO_IS_REIMPORT_EDITABLE_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL))
-#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImplClass))
-
-typedef struct _PhotoReimportEditableStateImpl PhotoReimportEditableStateImpl;
-typedef struct _PhotoReimportEditableStateImplClass PhotoReimportEditableStateImplClass;
-typedef struct _PhotoReimportEditableStatePrivate PhotoReimportEditableStatePrivate;
-typedef struct _PhotoReimportEditableStateImplPrivate PhotoReimportEditableStateImplPrivate;
-
-#define PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE (photo_reimport_raw_development_state_get_type ())
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass))
-#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE))
-#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass))
-
-typedef struct _PhotoReimportRawDevelopmentState PhotoReimportRawDevelopmentState;
-typedef struct _PhotoReimportRawDevelopmentStateClass PhotoReimportRawDevelopmentStateClass;
-#define _photo_reimport_raw_development_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_raw_development_state_unref (var), NULL)))
-
-#define PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (photo_reimport_raw_development_state_impl_get_type ())
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImplClass))
-#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL))
-#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImplClass))
-
-typedef struct _PhotoReimportRawDevelopmentStateImpl PhotoReimportRawDevelopmentStateImpl;
-typedef struct _PhotoReimportRawDevelopmentStateImplClass PhotoReimportRawDevelopmentStateImplClass;
-
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT (photo_reimport_raw_development_state_impl_dev_to_reimport_get_type ())
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimport))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimportClass))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_IS_DEV_TO_REIMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_IS_DEV_TO_REIMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimportClass))
-
-typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimport PhotoReimportRawDevelopmentStateImplDevToReimport;
-typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimportClass PhotoReimportRawDevelopmentStateImplDevToReimportClass;
-typedef struct _PhotoReimportRawDevelopmentStatePrivate PhotoReimportRawDevelopmentStatePrivate;
-typedef struct _PhotoReimportRawDevelopmentStateImplPrivate PhotoReimportRawDevelopmentStateImplPrivate;
-typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimportPrivate PhotoReimportRawDevelopmentStateImplDevToReimportPrivate;
-#define _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_raw_development_state_impl_dev_to_reimport_unref (var), NULL)))
-
-#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 PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ())
-
-#define TYPE_BOX (box_get_type ())
-typedef struct _Box Box;
-#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL)))
-#define _pixel_transformation_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_unref (var), NULL)))
-
-#define PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL (photo_photo_transformation_state_impl_get_type ())
-#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImpl))
-#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplClass))
-#define PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL))
-#define PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL))
-#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplClass))
-
-typedef struct _PhotoPhotoTransformationStateImpl PhotoPhotoTransformationStateImpl;
-typedef struct _PhotoPhotoTransformationStateImplClass PhotoPhotoTransformationStateImplClass;
-
-#define EDITING_TOOLS_TYPE_REDEYE_INSTANCE (editing_tools_redeye_instance_get_type ())
-typedef struct _EditingToolsRedeyeInstance EditingToolsRedeyeInstance;
-typedef struct _PhotoCachedPixbufPrivate PhotoCachedPixbufPrivate;
-#define _photo_cached_pixbuf_unref0(var) ((var == NULL) ? NULL : (var = (photo_cached_pixbuf_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-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_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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
-typedef struct _PhotoPhotoTransformationStateImplPrivate PhotoPhotoTransformationStateImplPrivate;
-enum {
- PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_0_PROPERTY,
- PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_NUM_PROPERTIES
-};
-static GParamSpec* photo_photo_transformation_state_impl_properties[PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_NUM_PROPERTIES];
-typedef struct _PhotoParamSpecBackingReaders PhotoParamSpecBackingReaders;
-#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
-typedef struct _PhotoParamSpecCachedPixbuf PhotoParamSpecCachedPixbuf;
-typedef struct _PhotoParamSpecReimportMasterState PhotoParamSpecReimportMasterState;
-typedef struct _PhotoParamSpecReimportEditableState PhotoParamSpecReimportEditableState;
-typedef struct _PhotoParamSpecReimportRawDevelopmentState PhotoParamSpecReimportRawDevelopmentState;
-typedef struct _PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport;
-enum {
- PHOTO_EDITABLE_REPLACED_SIGNAL,
- PHOTO_RAW_DEVELOPMENT_MODIFIED_SIGNAL,
- PHOTO_BASELINE_REPLACED_SIGNAL,
- PHOTO_MASTER_REIMPORTED_SIGNAL,
- PHOTO_EDITABLE_REIMPORTED_SIGNAL,
- PHOTO_BASELINE_REIMPORTED_SIGNAL,
- PHOTO_SOURCE_REIMPORTED_SIGNAL,
- PHOTO_NUM_SIGNALS
-};
-static guint photo_signals[PHOTO_NUM_SIGNALS] = {0};
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-typedef struct _MediaSourceCollectionPrivate MediaSourceCollectionPrivate;
-
-#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ())
-#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank))
-#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-
-typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank;
-typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass;
-
-#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ())
-#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank))
-#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-
-typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank;
-typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define TYPE_MEDIA_MONITOR (media_monitor_get_type ())
-#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor))
-#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR))
-#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR))
-#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-
-typedef struct _MediaMonitor MediaMonitor;
-typedef struct _MediaMonitorClass MediaMonitorClass;
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-typedef struct _LibraryPhotoSourceCollectionPrivate LibraryPhotoSourceCollectionPrivate;
-
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE (library_photo_source_collection_state_get_type ())
-#define _transaction_controller_unref0(var) ((var == NULL) ? NULL : (var = (transaction_controller_unref (var), NULL)))
-#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL)))
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (library_photo_source_holding_tank_get_type ())
-#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank))
-#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankClass))
-#define IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK))
-#define IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK))
-#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankClass))
-
-typedef struct _LibraryPhotoSourceHoldingTank LibraryPhotoSourceHoldingTank;
-typedef struct _LibraryPhotoSourceHoldingTankClass LibraryPhotoSourceHoldingTankClass;
-
-#define TYPE_PHOTO_MONITOR (photo_monitor_get_type ())
-#define PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_MONITOR, PhotoMonitor))
-#define PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_MONITOR, PhotoMonitorClass))
-#define IS_PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_MONITOR))
-#define IS_PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_MONITOR))
-#define PHOTO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_MONITOR, PhotoMonitorClass))
-
-typedef struct _PhotoMonitor PhotoMonitor;
-typedef struct _PhotoMonitorClass PhotoMonitorClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-
-#define TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER (media_source_transaction_controller_get_type ())
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController))
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass))
-#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER))
-#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER))
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass))
-
-typedef struct _MediaSourceTransactionController MediaSourceTransactionController;
-typedef struct _MediaSourceTransactionControllerClass MediaSourceTransactionControllerClass;
-enum {
- LIBRARY_PHOTO_SOURCE_COLLECTION_MASTER_REIMPORTED_SIGNAL,
- LIBRARY_PHOTO_SOURCE_COLLECTION_EDITABLE_REIMPORTED_SIGNAL,
- LIBRARY_PHOTO_SOURCE_COLLECTION_BASELINE_REIMPORTED_SIGNAL,
- LIBRARY_PHOTO_SOURCE_COLLECTION_SOURCE_REIMPORTED_SIGNAL,
- LIBRARY_PHOTO_SOURCE_COLLECTION_NUM_SIGNALS
-};
-static guint library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_NUM_SIGNALS] = {0};
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-
-#define TYPE_MONITORABLE (monitorable_get_type ())
-#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
-#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
-#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
-
-typedef struct _Monitorable Monitorable;
-typedef struct _MonitorableIface MonitorableIface;
-typedef struct _LibraryPhotoPrivate LibraryPhotoPrivate;
-enum {
- LIBRARY_PHOTO_0_PROPERTY,
- LIBRARY_PHOTO_NUM_PROPERTIES
-};
-static GParamSpec* library_photo_properties[LIBRARY_PHOTO_NUM_PROPERTIES];
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ())
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate;
-typedef struct _DatabaseSourceHoldingTankPrivate DatabaseSourceHoldingTankPrivate;
-typedef struct _MediaSourceHoldingTankPrivate MediaSourceHoldingTankPrivate;
-typedef struct _LibraryPhotoSourceHoldingTankPrivate LibraryPhotoSourceHoldingTankPrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- BACKING_FETCH_MODE_SOURCE,
- BACKING_FETCH_MODE_BASELINE,
- BACKING_FETCH_MODE_MASTER,
- BACKING_FETCH_MODE_UNMODIFIED
-} BackingFetchMode;
-
-struct _ImportID {
- gint64 id;
-};
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoImportParams {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoImportParamsPrivate * priv;
- GFile* file;
- GFile* final_associated_file;
- ImportID import_id;
- PhotoFileSnifferOptions sniffer_options;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* full_md5;
- Thumbnails* thumbnails;
- PhotoRow* row;
- GeeCollection* keywords;
-};
-
-struct _PhotoImportParamsClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoImportParams *self);
-};
-
-struct _ParamSpecPhotoImportParams {
- GParamSpec parent_instance;
-};
-
-struct _PhotoTransformationState {
- GObject parent_instance;
- PhotoTransformationStatePrivate * priv;
-};
-
-struct _PhotoTransformationStateClass {
- GObjectClass parent_class;
- void (*broken) (PhotoTransformationState* self);
-};
-
-struct _PhotoTransformationStatePrivate {
- gboolean is_broke;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _ThumbnailSource {
- DataSource parent_instance;
- ThumbnailSourcePrivate * priv;
-};
-
-struct _ThumbnailSourceClass {
- DataSourceClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailSource* self);
- GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- gchar* (*get_representative_id) (ThumbnailSource* self);
- PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self);
- void (*thumbnail_altered) (ThumbnailSource* self);
-};
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _EventID {
- gint64 id;
-};
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _MediaSource {
- ThumbnailSource parent_instance;
- MediaSourcePrivate * priv;
-};
-
-struct _MediaSourceClass {
- ThumbnailSourceClass parent_class;
- void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
- gboolean (*set_event_id) (MediaSource* self, EventID* id);
- gchar* (*get_basename) (MediaSource* self);
- GFile* (*get_file) (MediaSource* self);
- GFile* (*get_master_file) (MediaSource* self);
- guint64 (*get_master_filesize) (MediaSource* self);
- guint64 (*get_filesize) (MediaSource* self);
- time_t (*get_timestamp) (MediaSource* self);
- BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1);
- gchar* (*get_title) (MediaSource* self);
- gchar* (*get_comment) (MediaSource* self);
- void (*set_title) (MediaSource* self, const gchar* title);
- gboolean (*set_comment) (MediaSource* self, const gchar* comment);
- Rating (*get_rating) (MediaSource* self);
- void (*set_rating) (MediaSource* self, Rating rating);
- void (*increase_rating) (MediaSource* self);
- void (*decrease_rating) (MediaSource* self);
- void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result);
- GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error);
- gboolean (*is_trashed) (MediaSource* self);
- void (*trash) (MediaSource* self);
- void (*untrash) (MediaSource* self);
- gboolean (*is_offline) (MediaSource* self);
- void (*mark_offline) (MediaSource* self);
- void (*mark_online) (MediaSource* self);
- gchar* (*get_master_md5) (MediaSource* self);
- void (*get_event_id) (MediaSource* self, EventID* result);
- time_t (*get_exposure_time) (MediaSource* self);
- void (*get_import_id) (MediaSource* self, ImportID* result);
- void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
-};
-
-struct _PhotoSource {
- MediaSource parent_instance;
- PhotoSourcePrivate * priv;
-};
-
-struct _PhotoSourceClass {
- MediaSourceClass parent_class;
- PhotoMetadata* (*get_metadata) (PhotoSource* self);
- GdkPixbuf* (*get_pixbuf) (PhotoSource* self, Scaling* scaling, GError** error);
-};
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-typedef enum {
- ROTATION_CLOCKWISE,
- ROTATION_COUNTERCLOCKWISE,
- ROTATION_MIRROR,
- ROTATION_UPSIDE_DOWN
-} Rotation;
-
-struct _Photo {
- PhotoSource parent_instance;
- PhotoPrivate * priv;
- PhotoRow* row;
- gboolean can_rotate_now;
- BackingPhotoRow* backing_photo_row;
-};
-
-struct _PhotoClass {
- PhotoSourceClass parent_class;
- void (*notify_editable_replaced) (Photo* self, GFile* old_file, GFile* new_file);
- void (*notify_raw_development_modified) (Photo* self);
- void (*notify_baseline_replaced) (Photo* self);
- void (*notify_master_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*notify_editable_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*notify_source_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*notify_baseline_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*apply_user_metadata_for_reimport) (Photo* self, PhotoMetadata* metadata);
- void (*rotate) (Photo* self, Rotation rotation);
- gboolean (*has_user_generated_metadata) (Photo* self);
- void (*set_user_metadata_for_export) (Photo* self, PhotoMetadata* metadata);
- void (*editable_replaced) (Photo* self, GFile* old_file, GFile* new_file);
- void (*raw_development_modified) (Photo* self);
- void (*baseline_replaced) (Photo* self);
- void (*master_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*editable_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*baseline_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*source_reimported) (Photo* self, PhotoMetadata* metadata);
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _PhotoPrivate {
- time_t cached_exposure_time;
- GRecMutex __lock_row;
- BackingPhotoRow* editable;
- PhotoBackingReaders* readers;
- GRecMutex __lock_readers;
- PixelTransformer* transformer;
- PixelTransformationBundle* adjustments;
- gchar* file_title;
- GFileMonitor* editable_monitor;
- OneShotScheduler* reimport_editable_scheduler;
- OneShotScheduler* update_editable_attributes_scheduler;
- OneShotScheduler* remove_editable_scheduler;
- GeeHashMap* developments;
- GRecMutex __lock_developments;
-};
-
-struct _PhotoID {
- gint64 id;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-struct _PhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoRowPrivate * priv;
- PhotoID photo_id;
- BackingPhotoRow* master;
- time_t exposure_time;
- ImportID import_id;
- EventID event_id;
- Orientation orientation;
- GeeHashMap* transformations;
- gchar* md5;
- gchar* thumbnail_md5;
- gchar* exif_md5;
- time_t time_created;
- guint64 flags;
- Rating rating;
- gchar* title;
- gchar* comment;
- gchar* backlinks;
- time_t time_reimported;
- BackingPhotoID editable_id;
- gboolean metadata_dirty;
- RawDeveloper developer;
- BackingPhotoID* development_ids;
- gint development_ids_length1;
-};
-
-struct _PhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoRow *self);
-};
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-struct _PhotoBackingReaders {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoBackingReadersPrivate * priv;
- PhotoFileReader* master;
- PhotoFileReader* developer;
- PhotoFileReader* editable;
-};
-
-struct _PhotoBackingReadersClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoBackingReaders *self);
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _DetectedPhotoInformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DetectedPhotoInformationPrivate * priv;
- PhotoFileFormat file_format;
- PhotoMetadata* metadata;
- gchar* md5;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* format_name;
- Dimensions image_dim;
- GdkColorspace colorspace;
- gint channels;
- gint bits_per_channel;
-};
-
-struct _DetectedPhotoInformationClass {
- GTypeClass parent_class;
- void (*finalize) (DetectedPhotoInformation *self);
-};
-
-typedef enum {
- PHOTO_FORMAT_ERROR_READ_ONLY
-} PhotoFormatError;
-#define PHOTO_FORMAT_ERROR photo_format_error_quark ()
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-typedef enum {
- PHOTO_FILE_READER_ROLE_DEFAULT,
- PHOTO_FILE_READER_ROLE_THUMBNAIL
-} PhotoFileReaderRole;
-
-struct _PhotoReimportMasterState {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoReimportMasterStatePrivate * priv;
-};
-
-struct _PhotoReimportMasterStateClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoReimportMasterState *self);
-};
-
-struct _PhotoReimportMasterStateImpl {
- PhotoReimportMasterState parent_instance;
- PhotoReimportMasterStateImplPrivate * priv;
- PhotoRow* row;
- PhotoMetadata* metadata;
- gchar** alterations;
- gint alterations_length1;
- gint _alterations_size_;
- gboolean metadata_only;
-};
-
-struct _PhotoReimportMasterStateImplClass {
- PhotoReimportMasterStateClass parent_class;
-};
-
-struct _PhotoReimportEditableState {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoReimportEditableStatePrivate * priv;
-};
-
-struct _PhotoReimportEditableStateClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoReimportEditableState *self);
-};
-
-struct _PhotoReimportEditableStateImpl {
- PhotoReimportEditableState parent_instance;
- PhotoReimportEditableStateImplPrivate * priv;
- BackingPhotoRow* backing_state;
- PhotoMetadata* metadata;
- gboolean metadata_only;
-};
-
-struct _PhotoReimportEditableStateImplClass {
- PhotoReimportEditableStateClass parent_class;
-};
-
-struct _PhotoReimportRawDevelopmentState {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoReimportRawDevelopmentStatePrivate * priv;
-};
-
-struct _PhotoReimportRawDevelopmentStateClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoReimportRawDevelopmentState *self);
-};
-
-struct _PhotoReimportRawDevelopmentStateImpl {
- PhotoReimportRawDevelopmentState parent_instance;
- PhotoReimportRawDevelopmentStateImplPrivate * priv;
- GeeCollection* list;
- gboolean metadata_only;
-};
-
-struct _PhotoReimportRawDevelopmentStateImplClass {
- PhotoReimportRawDevelopmentStateClass parent_class;
-};
-
-struct _PhotoReimportRawDevelopmentStateImplDevToReimport {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoReimportRawDevelopmentStateImplDevToReimportPrivate * priv;
- BackingPhotoRow* backing;
- PhotoMetadata* metadata;
-};
-
-struct _PhotoReimportRawDevelopmentStateImplDevToReimportClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoReimportRawDevelopmentStateImplDevToReimport *self);
-};
-
-typedef enum {
- PHOTO_METADATA_SET_OPTION_ALL_DOMAINS,
- PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT,
- PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN
-} PhotoMetadataSetOption;
-
-struct _Box {
- gint left;
- gint top;
- gint right;
- gint bottom;
-};
-
-struct _EditingToolsRedeyeInstance {
- GdkPoint center;
- gint radius;
-};
-
-struct _PhotoCachedPixbuf {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoCachedPixbufPrivate * priv;
- Photo* photo;
- GdkPixbuf* pixbuf;
- GTimer* last_touched;
-};
-
-struct _PhotoCachedPixbufClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoCachedPixbuf *self);
-};
-
-typedef void (*OneShotCallback) (void* user_data);
-struct _PhotoPhotoTransformationStateImpl {
- PhotoTransformationState parent_instance;
- PhotoPhotoTransformationStateImplPrivate * priv;
-};
-
-struct _PhotoPhotoTransformationStateImplClass {
- PhotoTransformationStateClass parent_class;
-};
-
-struct _PhotoPhotoTransformationStateImplPrivate {
- Photo* photo;
- Orientation orientation;
- GeeHashMap* transformations;
- PixelTransformer* transformer;
- PixelTransformationBundle* adjustments;
-};
-
-struct _PhotoParamSpecBackingReaders {
- GParamSpec parent_instance;
-};
-
-struct _PhotoParamSpecCachedPixbuf {
- GParamSpec parent_instance;
-};
-
-struct _PhotoParamSpecReimportMasterState {
- GParamSpec parent_instance;
-};
-
-struct _PhotoParamSpecReimportEditableState {
- GParamSpec parent_instance;
-};
-
-struct _PhotoParamSpecReimportRawDevelopmentState {
- GParamSpec parent_instance;
-};
-
-struct _PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport {
- GParamSpec parent_instance;
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _MediaSourceCollection {
- DatabaseSourceCollection parent_instance;
- MediaSourceCollectionPrivate * priv;
-};
-
-struct _MediaSourceCollectionClass {
- DatabaseSourceCollectionClass parent_class;
- MediaSourceHoldingTank* (*create_trashcan) (MediaSourceCollection* self);
- MediaSourceHoldingTank* (*create_offline_bin) (MediaSourceCollection* self);
- MediaMonitor* (*create_media_monitor) (MediaSourceCollection* self, Workers* workers, GCancellable* cancellable);
- gchar* (*get_typename) (MediaSourceCollection* self);
- gboolean (*is_file_recognized) (MediaSourceCollection* self, GFile* file);
- MediaSource* (*fetch_by_numeric_id) (MediaSourceCollection* self, gint64 numeric_id);
- void (*notify_import_roll_altered) (MediaSourceCollection* self);
- void (*notify_flagged_contents_altered) (MediaSourceCollection* self);
- void (*notify_media_import_starting) (MediaSourceCollection* self, GeeCollection* media);
- void (*notify_media_import_completed) (MediaSourceCollection* self, GeeCollection* media);
- MediaSource* (*fetch_by_source_id) (MediaSourceCollection* self, const gchar* source_id);
- GeeCollection* (*get_event_source_ids) (MediaSourceCollection* self, EventID* event_id);
- void (*import_many) (MediaSourceCollection* self, GeeCollection* media);
- void (*postprocess_imported_media) (MediaSourceCollection* self, GeeCollection* media);
- void (*media_import_starting) (MediaSourceCollection* self, GeeCollection* media);
- void (*media_import_completed) (MediaSourceCollection* self, GeeCollection* media);
- void (*master_file_replaced) (MediaSourceCollection* self, MediaSource* media, GFile* old_file, GFile* new_file);
- void (*trashcan_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed);
- void (*import_roll_altered) (MediaSourceCollection* self);
- void (*offline_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed);
- void (*flagged_contents_altered) (MediaSourceCollection* self);
- TransactionController* (*get_transaction_controller) (MediaSourceCollection* self);
-};
-
-struct _LibraryPhotoSourceCollection {
- MediaSourceCollection parent_instance;
- LibraryPhotoSourceCollectionPrivate * priv;
-};
-
-struct _LibraryPhotoSourceCollectionClass {
- MediaSourceCollectionClass parent_class;
- void (*notify_master_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
- void (*notify_editable_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
- void (*notify_source_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
- void (*notify_baseline_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
- void (*master_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
- void (*editable_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
- void (*baseline_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
- void (*source_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
-};
-
-struct _LibraryPhotoSourceCollectionPrivate {
- TransactionController* _transaction_controller;
- GeeHashMap* by_editable_file;
- GeeHashMap* by_raw_development_file;
- GeeMultiMap* filesize_to_photo;
- GeeHashMap* photo_to_master_filesize;
- GeeHashMap* photo_to_editable_filesize;
- GeeMultiMap* photo_to_raw_development_filesize;
-};
-
-typedef enum {
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER
-} LibraryPhotoSourceCollectionState;
-
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data);
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-struct _MonitorableIface {
- GTypeInterface parent_iface;
- gboolean (*is_offline) (Monitorable* self);
- void (*mark_online) (Monitorable* self);
- void (*mark_offline) (Monitorable* self);
- void (*set_master_file) (Monitorable* self, GFile* file);
- void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
-};
-
-struct _LibraryPhoto {
- Photo parent_instance;
- LibraryPhotoPrivate * priv;
-};
-
-struct _LibraryPhotoClass {
- PhotoClass parent_class;
-};
-
-struct _LibraryPhotoPrivate {
- gboolean block_thumbnail_generation;
- OneShotScheduler* thumbnail_scheduler;
- GeeCollection* import_keywords;
-};
-
-typedef enum {
- THUMBNAIL_CACHE_SIZE_LARGEST = 360,
- THUMBNAIL_CACHE_SIZE_BIG = 360,
- THUMBNAIL_CACHE_SIZE_MEDIUM = 128,
- THUMBNAIL_CACHE_SIZE_SMALLEST = 128
-} ThumbnailCacheSize;
-
-struct _SourceHoldingTank {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceHoldingTankPrivate * priv;
-};
-
-struct _SourceHoldingTankClass {
- GTypeClass parent_class;
- void (*finalize) (SourceHoldingTank *self);
- void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
- void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
-};
-
-struct _DatabaseSourceHoldingTank {
- SourceHoldingTank parent_instance;
- DatabaseSourceHoldingTankPrivate * priv;
-};
-
-struct _DatabaseSourceHoldingTankClass {
- SourceHoldingTankClass parent_class;
-};
-
-struct _MediaSourceHoldingTank {
- DatabaseSourceHoldingTank parent_instance;
- MediaSourceHoldingTankPrivate * priv;
-};
-
-struct _MediaSourceHoldingTankClass {
- DatabaseSourceHoldingTankClass parent_class;
-};
-
-struct _LibraryPhotoSourceHoldingTank {
- MediaSourceHoldingTank parent_instance;
- LibraryPhotoSourceHoldingTankPrivate * priv;
-};
-
-struct _LibraryPhotoSourceHoldingTankClass {
- MediaSourceHoldingTankClass parent_class;
-};
-
-struct _LibraryPhotoSourceHoldingTankPrivate {
- GeeHashMap* editable_file_map;
- GeeHashMap* development_file_map;
- GeeMultiMap* reverse_editable_file_map;
- GeeMultiMap* reverse_development_file_map;
-};
-
-
-static gpointer photo_import_params_parent_class = NULL;
-static gpointer photo_transformation_state_parent_class = NULL;
-static gpointer photo_parent_class = NULL;
-static GeeLinkedList* photo_source_pixbuf_cache;
-static GRecMutex __lock_photo_source_pixbuf_cache = {0};
-static GeeLinkedList* photo_source_pixbuf_cache = NULL;
-static guint photo_discard_source_id;
-static guint photo_discard_source_id = (guint) 0;
-static gboolean photo__develop_raw_photos_to_files;
-static gboolean photo__develop_raw_photos_to_files = FALSE;
-static gpointer photo_photo_transformation_state_impl_parent_class = NULL;
-static gpointer photo_backing_readers_parent_class = NULL;
-static gpointer photo_cached_pixbuf_parent_class = NULL;
-static gpointer photo_reimport_master_state_parent_class = NULL;
-static gpointer photo_reimport_master_state_impl_parent_class = NULL;
-static gpointer photo_reimport_editable_state_parent_class = NULL;
-static gpointer photo_reimport_editable_state_impl_parent_class = NULL;
-static gpointer photo_reimport_raw_development_state_parent_class = NULL;
-static gpointer photo_reimport_raw_development_state_impl_parent_class = NULL;
-static gpointer photo_reimport_raw_development_state_impl_dev_to_reimport_parent_class = NULL;
-static DateableIface * photo_dateable_parent_iface = NULL;
-static gpointer library_photo_source_collection_parent_class = NULL;
-static gpointer library_photo_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-LibraryPhotoSourceCollection* library_photo_global = NULL;
-extern TagSourceCollection* tag_global;
-static FlaggableIface * library_photo_flaggable_parent_iface = NULL;
-static MonitorableIface * library_photo_monitorable_parent_iface = NULL;
-static gpointer library_photo_source_holding_tank_parent_class = NULL;
-
-GType backing_fetch_mode_get_type (void) G_GNUC_CONST;
-gpointer photo_import_params_ref (gpointer instance);
-void photo_import_params_unref (gpointer instance);
-GParamSpec* param_spec_photo_import_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_import_params (GValue* value,
- gpointer v_object);
-void value_take_photo_import_params (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_import_params (const GValue* value);
-GType photo_import_params_get_type (void) G_GNUC_CONST;
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-gpointer thumbnails_ref (gpointer instance);
-void thumbnails_unref (gpointer instance);
-GParamSpec* param_spec_thumbnails (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_thumbnails (GValue* value,
- gpointer v_object);
-void value_take_thumbnails (GValue* value,
- gpointer v_object);
-gpointer value_get_thumbnails (const GValue* value);
-GType thumbnails_get_type (void) G_GNUC_CONST;
-gpointer photo_row_ref (gpointer instance);
-void photo_row_unref (gpointer instance);
-GParamSpec* param_spec_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_row (GValue* value,
- gpointer v_object);
-void value_take_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_row (const GValue* value);
-GType photo_row_get_type (void) G_GNUC_CONST;
-PhotoRow* photo_row_new (void);
-PhotoRow* photo_row_construct (GType object_type);
-PhotoImportParams* photo_import_params_new (GFile* file,
- GFile* final_associated_file,
- ImportID* import_id,
- PhotoFileSnifferOptions sniffer_options,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- Thumbnails* thumbnails);
-PhotoImportParams* photo_import_params_construct (GType object_type,
- GFile* file,
- GFile* final_associated_file,
- ImportID* import_id,
- PhotoFileSnifferOptions sniffer_options,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- Thumbnails* thumbnails);
-PhotoImportParams* photo_import_params_new_create_placeholder (GFile* file,
- ImportID* import_id);
-PhotoImportParams* photo_import_params_construct_create_placeholder (GType object_type,
- GFile* file,
- ImportID* import_id);
-static void photo_import_params_finalize (PhotoImportParams * obj);
-GType photo_transformation_state_get_type (void) G_GNUC_CONST;
-#define PHOTO_TRANSFORMATION_STATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStatePrivate))
-PhotoTransformationState* photo_transformation_state_construct (GType object_type);
-gboolean photo_transformation_state_is_broken (PhotoTransformationState* self);
-static void photo_transformation_state_real_broken (PhotoTransformationState* self);
-static void photo_transformation_state_finalize (GObject * obj);
-GType rating_get_type (void) G_GNUC_CONST;
-gboolean rating_can_increase (Rating self);
-gboolean rating_can_decrease (Rating self);
-gboolean rating_is_valid (Rating self);
-Rating rating_increase (Rating self);
-Rating rating_decrease (Rating self);
-gint rating_serialize (Rating self);
-Rating rating_unserialize (gint value);
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType indexable_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-gpointer backing_file_state_ref (gpointer instance);
-void backing_file_state_unref (gpointer instance);
-GParamSpec* param_spec_backing_file_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_file_state (GValue* value,
- gpointer v_object);
-void value_take_backing_file_state (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_file_state (const GValue* value);
-GType backing_file_state_get_type (void) G_GNUC_CONST;
-GType photo_exception_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GType photo_source_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType dateable_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-GType rotation_get_type (void) G_GNUC_CONST;
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-static gpointer photo_backing_readers_ref (gpointer instance);
-static void photo_backing_readers_unref (gpointer instance);
-static GParamSpec* photo_param_spec_backing_readers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void photo_value_set_backing_readers (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void photo_value_take_backing_readers (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer photo_value_get_backing_readers (const GValue* value) G_GNUC_UNUSED;
-static GType photo_backing_readers_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-gpointer one_shot_scheduler_ref (gpointer instance);
-void one_shot_scheduler_unref (gpointer instance);
-GParamSpec* param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_one_shot_scheduler (GValue* value,
- gpointer v_object);
-void value_take_one_shot_scheduler (GValue* value,
- gpointer v_object);
-gpointer value_get_one_shot_scheduler (const GValue* value);
-GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-#define PHOTO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO, PhotoPrivate))
-gboolean photo_exception_prohibits (PhotoException self,
- PhotoException exception);
-gboolean photo_exception_allows (PhotoException self,
- PhotoException exception);
-static gpointer photo_cached_pixbuf_ref (gpointer instance);
-static void photo_cached_pixbuf_unref (gpointer instance);
-static GParamSpec* photo_param_spec_cached_pixbuf (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void photo_value_set_cached_pixbuf (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void photo_value_take_cached_pixbuf (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer photo_value_get_cached_pixbuf (const GValue* value) G_GNUC_UNUSED;
-static GType photo_cached_pixbuf_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-BackingPhotoRow* backing_photo_row_new (void);
-BackingPhotoRow* backing_photo_row_construct (GType object_type);
-static PhotoBackingReaders* photo_backing_readers_new (void);
-static PhotoBackingReaders* photo_backing_readers_construct (GType object_type);
-#define PHOTO_TYPENAME "thumb"
-#define PHOTO_SCALING_FUDGE 64
-#define PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC 10
-#define PHOTO_SOURCE_PIXBUF_MIN_LRU_COUNT 1
-#define PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT 3
-#define PHOTO_MIN_EMBEDDED_SIZE 1024
-Photo* photo_construct (GType object_type,
- PhotoRow* row);
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-PhotoSource* photo_source_construct (GType object_type,
- gint64 object_id);
-gchar* media_source_prep_title (const gchar* title);
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-GType orientation_get_type (void) G_GNUC_CONST;
-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);
-gchar* media_source_prep_comment (const gchar* comment);
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self,
- const gchar* filepath);
-gchar* string_sliced_at_last_char (const gchar* haystack,
- gunichar ch,
- gint start_index);
-gchar* string_sliced_at (const gchar* str,
- gint index);
-gboolean is_string_empty (const gchar* s);
-#define BACKING_PHOTO_ID_INVALID ((gint64) -1)
-static BackingPhotoRow* photo_get_backing_row (Photo* self,
- BackingPhotoID* id);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType photo_table_get_type (void) G_GNUC_CONST;
-PhotoTable* photo_table_get_instance (void);
-GQuark database_error_quark (void);
-void photo_table_detach_editable (PhotoTable* self,
- PhotoRow* row,
- GError** error);
-static void photo_internal_remove_all_transformations (Photo* self,
- gboolean notify);
-RawDeveloper* raw_developer_as_array (int* result_length1);
-void photo_init_photo (void);
-void photo_terminate_photo (void);
-void photo_notify_editable_replaced (Photo* self,
- GFile* old_file,
- GFile* new_file);
-static void photo_real_notify_editable_replaced (Photo* self,
- GFile* old_file,
- GFile* new_file);
-void photo_notify_raw_development_modified (Photo* self);
-static void photo_real_notify_raw_development_modified (Photo* self);
-void photo_notify_baseline_replaced (Photo* self);
-static void photo_real_notify_baseline_replaced (Photo* self);
-void photo_notify_master_reimported (Photo* self,
- PhotoMetadata* metadata);
-static void photo_real_notify_master_reimported (Photo* self,
- PhotoMetadata* metadata);
-void photo_notify_editable_reimported (Photo* self,
- PhotoMetadata* metadata);
-static void photo_real_notify_editable_reimported (Photo* self,
- PhotoMetadata* metadata);
-void photo_notify_source_reimported (Photo* self,
- PhotoMetadata* metadata);
-static void photo_real_notify_source_reimported (Photo* self,
- PhotoMetadata* metadata);
-void photo_notify_baseline_reimported (Photo* self,
- PhotoMetadata* metadata);
-static void photo_real_notify_baseline_reimported (Photo* self,
- PhotoMetadata* metadata);
-static gboolean photo_real_internal_delete_backing (DataSource* base,
- GError** error);
-GFile* photo_file_adapter_get_file (PhotoFileAdapter* self);
-static void photo_detach_editable (Photo* self,
- gboolean delete_editable,
- gboolean remove_transformations,
- gboolean notify);
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-static gboolean photo_delete_raw_development (Photo* self,
- RawDeveloper d);
-gchar* data_object_to_string (DataObject* self);
-gboolean data_source_internal_delete_backing (DataSource* self,
- GError** error);
-GType backing_photo_table_get_type (void) G_GNUC_CONST;
-BackingPhotoTable* backing_photo_table_get_instance (void);
-BackingPhotoRow* backing_photo_table_fetch (BackingPhotoTable* self,
- BackingPhotoID* id,
- GError** error);
-void backing_photo_table_remove (BackingPhotoTable* self,
- BackingPhotoID* backing_id,
- GError** error);
-gboolean photo_is_raw_developer_complete (Photo* self,
- RawDeveloper d);
-gboolean photo_is_raw_developer_available (Photo* self,
- RawDeveloper d);
-PhotoMetadata* photo_get_master_metadata (Photo* self,
- GError** error);
-guint photo_metadata_get_preview_count (PhotoMetadata* self);
-gpointer photo_preview_ref (gpointer instance);
-void photo_preview_unref (gpointer instance);
-GParamSpec* param_spec_photo_preview (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_preview (GValue* value,
- gpointer v_object);
-void value_take_photo_preview (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_preview (const GValue* value);
-GType photo_preview_get_type (void) G_GNUC_CONST;
-PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self,
- guint number);
-void photo_preview_get_pixel_dimensions (PhotoPreview* self,
- Dimensions* result);
-void photo_add_backing_photo_for_development (Photo* self,
- RawDeveloper d,
- BackingPhotoRow* bpr,
- gboolean notify,
- GError** error);
-void photo_import_developed_backing_photo (PhotoRow* row,
- RawDeveloper d,
- BackingPhotoRow* bpr,
- GError** error);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value"
-#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES
-gpointer photo_file_interrogator_ref (gpointer instance);
-void photo_file_interrogator_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_interrogator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_interrogator (GValue* value,
- gpointer v_object);
-void value_take_photo_file_interrogator (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_interrogator (const GValue* value);
-GType photo_file_interrogator_get_type (void) G_GNUC_CONST;
-PhotoFileInterrogator* photo_file_interrogator_new (GFile* file,
- PhotoFileSnifferOptions options);
-PhotoFileInterrogator* photo_file_interrogator_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-void photo_file_interrogator_interrogate (PhotoFileInterrogator* self,
- GError** error);
-gpointer detected_photo_information_ref (gpointer instance);
-void detected_photo_information_unref (gpointer instance);
-GParamSpec* param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_detected_photo_information (GValue* value,
- gpointer v_object);
-void value_take_detected_photo_information (GValue* value,
- gpointer v_object);
-gpointer value_get_detected_photo_information (const GValue* value);
-GType detected_photo_information_get_type (void) G_GNUC_CONST;
-DetectedPhotoInformation* photo_file_interrogator_get_detected_photo_information (PhotoFileInterrogator* self);
-gboolean photo_file_interrogator_get_is_photo_corrupted (PhotoFileInterrogator* self);
-Orientation photo_metadata_get_orientation (PhotoMetadata* self);
-void backing_photo_table_add (BackingPhotoTable* self,
- BackingPhotoRow* state,
- GError** error);
-void photo_table_update_raw_development (PhotoTable* self,
- PhotoRow* row,
- RawDeveloper rd,
- BackingPhotoID* backing_photo_id,
- GError** error);
-static void photo_develop_photo (Photo* self,
- RawDeveloper d,
- gboolean notify);
-BackingPhotoRow* raw_developer_create_backing_row_for_development (RawDeveloper self,
- const gchar* raw_filepath,
- const gchar* camera_development_filename,
- GError** error);
-GdkPixbuf* photo_get_master_pixbuf (Photo* self,
- Scaling* scaling,
- gboolean rotate,
- GError** error);
-void scaling_for_original (Scaling* result);
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-GQuark photo_format_error_quark (void);
-PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error);
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-void photo_file_writer_write (PhotoFileWriter* self,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error);
-GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
-PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error);
-void photo_file_metadata_writer_write_metadata (PhotoFileMetadataWriter* self,
- PhotoMetadata* metadata,
- GError** error);
-GBytes* photo_preview_flatten (PhotoPreview* self,
- GError** error);
-gboolean jpeg_is_jpeg_bytes (GBytes* bytes,
- GError** error);
-GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self,
- GError** error);
-void photo_set_default_raw_developer (Photo* self,
- RawDeveloper d);
-void photo_set_raw_developer (Photo* self,
- RawDeveloper d,
- gboolean notify);
-void photo_revert_to_master (Photo* self,
- gboolean notify);
-GdkPixbuf* photo_get_prefetched_copy (Photo* self,
- GError** error);
-gboolean photo_set_orientation (Photo* self,
- Orientation orientation);
-void photo_discard_prefetched (Photo* self);
-RawDeveloper photo_get_raw_developer (Photo* self);
-gchar* raw_developer_to_string (RawDeveloper self);
-void photo_table_remove_development (PhotoTable* self,
- PhotoRow* row,
- RawDeveloper rd,
- GError** error);
-void photo_redevelop_raw (Photo* self,
- RawDeveloper d);
-static BackingFileState** photo_real_get_backing_files_state (MediaSource* base,
- int* result_length1);
-BackingFileState* backing_file_state_new_from_photo_row (BackingPhotoRow* photo_row,
- const gchar* md5);
-BackingFileState* backing_file_state_construct_from_photo_row (GType object_type,
- BackingPhotoRow* photo_row,
- const gchar* md5);
-static void _vala_array_add88 (BackingFileState** * array,
- int* length,
- int* size,
- BackingFileState* value);
-gboolean photo_has_editable (Photo* self);
-static void _vala_array_add89 (BackingFileState** * array,
- int* length,
- int* size,
- BackingFileState* value);
-gboolean photo_is_developed (Photo* self);
-GeeCollection* photo_get_raw_development_photo_rows (Photo* self);
-static void _vala_array_add90 (BackingFileState** * array,
- int* length,
- int* size,
- BackingFileState* value);
-static PhotoFileReader* photo_get_backing_reader (Photo* self,
- BackingFetchMode mode);
-static PhotoFileReader* photo_get_master_reader (Photo* self);
-static PhotoFileReader* photo_get_baseline_reader (Photo* self);
-static PhotoFileReader* photo_get_source_reader (Photo* self);
-static PhotoFileReader* photo_get_raw_developer_reader (Photo* self);
-const gchar* backing_fetch_mode_to_string (BackingFetchMode self);
-PhotoFileReader* photo_get_editable_reader (Photo* self);
-gboolean photo_does_master_exist (Photo* self);
-gboolean photo_file_adapter_file_exists (PhotoFileAdapter* self);
-gboolean photo_does_editable_exist (Photo* self);
-gboolean photo_is_master_baseline (Photo* self);
-gboolean photo_is_master_source (Photo* self);
-gboolean photo_is_editable_baseline (Photo* self);
-gboolean photo_is_editable_source (Photo* self);
-BackingPhotoRow* photo_get_master_photo_row (Photo* self);
-BackingPhotoRow* photo_get_editable_photo_row (Photo* self);
-gboolean backing_photo_id_is_valid (BackingPhotoID *self);
-BackingPhotoRow* photo_get_raw_development_photo_row (Photo* self,
- RawDeveloper d);
-PhotoFileFormat* photo_get_editable_file_format (Photo* self);
-PhotoFileFormat photo_file_adapter_get_file_format (PhotoFileAdapter* self);
-static PhotoFileFormat* _photo_file_format_dup (PhotoFileFormat* self);
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-PhotoFileFormat photo_get_export_format_for_parameters (Photo* self,
- ExportFormatParameters* params);
-PhotoFileFormat photo_file_format_get_system_default_format (void);
-PhotoFileFormat photo_get_best_export_file_format (Photo* self);
-gchar* photo_get_export_basename_for_parameters (Photo* self,
- ExportFormatParameters* params);
-GFile* media_source_get_master_file (MediaSource* self);
-gchar* photo_get_export_basename (Photo* self,
- PhotoFileFormat* file_format);
-GType import_result_get_type (void) G_GNUC_CONST;
-ImportResult photo_prepare_for_import (PhotoImportParams* params);
-gboolean photo_is_file_image (GFile* file);
-gboolean photo_file_format_is_file_supported (GFile* file);
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
-time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
-gchar* media_metadata_get_title (MediaMetadata* self);
-gchar* media_metadata_get_comment (MediaMetadata* self);
-GeeSet* photo_metadata_get_keywords (PhotoMetadata* self,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify);
-Rating photo_metadata_get_rating (PhotoMetadata* self);
-#define PHOTO_ID_INVALID ((gint64) -1)
-void photo_id_init (PhotoID *self,
- gint64 id);
-#define EVENT_ID_INVALID ((gint64) -1)
-void event_id_init (EventID *self,
- gint64 id);
-GType photo_file_reader_role_get_type (void) G_GNUC_CONST;
-void photo_file_reader_set_role (PhotoFileReader* self,
- PhotoFileReaderRole role);
-void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails,
- PhotoFileReader* reader,
- Orientation orientation,
- Dimensions* original_dim,
- GError** error);
-ImportResult import_result_convert_error (GError* err,
- ImportResult default_result);
-void photo_create_pre_import (PhotoImportParams* params);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-BackingPhotoRow* photo_query_backing_photo_row (Photo* self,
- GFile* file,
- PhotoFileSnifferOptions options,
- DetectedPhotoInformation* * detected,
- GError** error);
-gpointer photo_reimport_master_state_ref (gpointer instance);
-void photo_reimport_master_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_master_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_master_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_master_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_master_state (const GValue* value);
-GType photo_reimport_master_state_get_type (void) G_GNUC_CONST;
-gboolean photo_prepare_for_reimport_master (Photo* self,
- PhotoReimportMasterState* * reimport_state,
- GError** error);
-static void _vala_array_add91 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add92 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add93 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add94 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add95 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add96 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static PhotoReimportMasterStateImpl* photo_reimport_master_state_impl_new (PhotoRow* row,
- PhotoMetadata* metadata,
- gchar** alterations,
- int alterations_length1);
-static PhotoReimportMasterStateImpl* photo_reimport_master_state_impl_construct (GType object_type,
- PhotoRow* row,
- PhotoMetadata* metadata,
- gchar** alterations,
- int alterations_length1);
-static GType photo_reimport_master_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-void photo_apply_user_metadata_for_reimport (Photo* self,
- PhotoMetadata* metadata);
-static void photo_real_apply_user_metadata_for_reimport (Photo* self,
- PhotoMetadata* metadata);
-void photo_finish_reimport_master (Photo* self,
- PhotoReimportMasterState* state,
- GError** error);
-void photo_table_reimport (PhotoTable* self,
- PhotoRow* row,
- GError** error);
-void backing_photo_row_copy_from (BackingPhotoRow* self,
- BackingPhotoRow* from);
-static void _vala_array_add97 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add98 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-Alteration* alteration_new_from_array (gchar** array,
- int array_length1);
-Alteration* alteration_construct_from_array (GType object_type,
- gchar** array,
- int array_length1);
-static gboolean photo_verify_file_for_reimport (Photo* self,
- GFile* file,
- BackingPhotoRow* * backing,
- DetectedPhotoInformation* * detected,
- GError** error);
-gpointer photo_reimport_editable_state_ref (gpointer instance);
-void photo_reimport_editable_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_editable_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_editable_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_editable_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_editable_state (const GValue* value);
-GType photo_reimport_editable_state_get_type (void) G_GNUC_CONST;
-gboolean photo_prepare_for_reimport_editable (Photo* self,
- PhotoReimportEditableState* * state,
- GError** error);
-GFile* photo_get_editable_file (Photo* self);
-static PhotoReimportEditableStateImpl* photo_reimport_editable_state_impl_new (BackingPhotoRow* backing_state,
- PhotoMetadata* metadata);
-static PhotoReimportEditableStateImpl* photo_reimport_editable_state_impl_construct (GType object_type,
- BackingPhotoRow* backing_state,
- PhotoMetadata* metadata);
-static GType photo_reimport_editable_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-void photo_finish_reimport_editable (Photo* self,
- PhotoReimportEditableState* state,
- GError** error);
-void photo_get_editable_id (Photo* self,
- BackingPhotoID* result);
-gboolean backing_photo_id_is_invalid (BackingPhotoID *self);
-void backing_photo_table_update (BackingPhotoTable* self,
- BackingPhotoRow* row,
- GError** error);
-void media_source_set_title (MediaSource* self,
- const gchar* title);
-gboolean media_source_set_comment (MediaSource* self,
- const gchar* comment);
-void media_source_set_rating (MediaSource* self,
- Rating rating);
-Alteration* alteration_new_from_list (const gchar* list);
-Alteration* alteration_construct_from_list (GType object_type,
- const gchar* list);
-gpointer photo_reimport_raw_development_state_ref (gpointer instance);
-void photo_reimport_raw_development_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_raw_development_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_raw_development_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_raw_development_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_raw_development_state (const GValue* value);
-GType photo_reimport_raw_development_state_get_type (void) G_GNUC_CONST;
-gboolean photo_prepare_for_reimport_raw_development (Photo* self,
- PhotoReimportRawDevelopmentState* * state,
- GError** error);
-GeeCollection* photo_get_raw_developer_files (Photo* self);
-static GType photo_reimport_raw_development_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static PhotoReimportRawDevelopmentStateImpl* photo_reimport_raw_development_state_impl_new (void);
-static PhotoReimportRawDevelopmentStateImpl* photo_reimport_raw_development_state_impl_construct (GType object_type);
-static void photo_reimport_raw_development_state_impl_add (PhotoReimportRawDevelopmentStateImpl* self,
- BackingPhotoRow* backing,
- PhotoMetadata* metadata);
-static gint photo_reimport_raw_development_state_impl_get_size (PhotoReimportRawDevelopmentStateImpl* self);
-void photo_finish_reimport_raw_development (Photo* self,
- PhotoReimportRawDevelopmentState* state,
- GError** error);
-static gpointer photo_reimport_raw_development_state_impl_dev_to_reimport_ref (gpointer instance);
-static void photo_reimport_raw_development_state_impl_dev_to_reimport_unref (gpointer instance);
-static GParamSpec* photo_reimport_raw_development_state_impl_param_spec_dev_to_reimport (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void photo_reimport_raw_development_state_impl_value_set_dev_to_reimport (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void photo_reimport_raw_development_state_impl_value_take_dev_to_reimport (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer photo_reimport_raw_development_state_impl_value_get_dev_to_reimport (const GValue* value) G_GNUC_UNUSED;
-GType photo_reimport_raw_development_state_impl_dev_to_reimport_get_type (void) G_GNUC_CONST;
-static gchar* photo_real_get_typename (DataSource* base);
-static gint64 photo_real_get_instance_id (DataSource* base);
-void photo_get_photo_id (Photo* self,
- PhotoID* result);
-static gchar* photo_real_get_source_id (DataSource* base);
-gchar* data_source_get_typename (DataSource* self);
-gint64 data_source_get_instance_id (DataSource* self);
-void photo_set_master_timestamp (Photo* self,
- GFileInfo* info);
-void photo_table_update_timestamp (PhotoTable* self,
- PhotoID* photo_id,
- time_t timestamp,
- GError** error);
-void app_window_database_error (GError* err);
-void photo_update_editable_modification_time (Photo* self,
- GFileInfo* info,
- GError** error);
-void backing_photo_table_update_timestamp (BackingPhotoTable* self,
- BackingPhotoID* id,
- time_t timestamp,
- GError** error);
-void photo_update_many_editable_timestamps (GeeMap* map,
- GError** error);
-void database_table_begin_transaction (void);
-void database_table_commit_transaction (GError** error);
-static PhotoFileFormat photo_real_get_preferred_thumbnail_format (ThumbnailSource* base);
-PhotoFileFormat photo_get_file_format (Photo* self);
-gboolean photo_file_format_can_write_image (PhotoFileFormat self);
-static GdkPixbuf* photo_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-void scaling_for_best_fit (gint pixels,
- gboolean scale_up,
- Scaling* result);
-static gboolean photo_is_extension_found (const gchar* basename,
- gchar** extensions,
- int extensions_length1);
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-gboolean photo_is_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format);
-gboolean photo_table_has_duplicate (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format);
-PhotoID* photo_get_duplicate_ids (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- int* result_length1);
-PhotoID* photo_table_get_duplicate_ids (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format,
- int* result_length1);
-gint64 photo_get_photo_key (DataSource* source);
-GType library_photo_get_type (void) G_GNUC_CONST;
-static GFile* photo_real_get_file (MediaSource* base);
-void photo_set_master_file (Photo* self,
- GFile* file);
-void photo_table_set_filepath (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* filepath,
- GError** error);
-void media_source_notify_master_replaced (MediaSource* self,
- GFile* old_file,
- GFile* new_file);
-static void _vala_array_add99 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add100 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add101 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add102 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-void photo_set_editable_file (Photo* self,
- GFile* file);
-void backing_photo_table_set_filepath (BackingPhotoTable* self,
- BackingPhotoID* id,
- const gchar* filepath,
- GError** error);
-static void _vala_array_add103 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add104 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add105 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-void photo_set_many_editable_file (GeeMap* map,
- GError** error);
-GFile* photo_get_actual_file (Photo* self);
-static GFile* photo_real_get_master_file (MediaSource* base);
-GFile* photo_get_source_file (Photo* self);
-gboolean photo_file_format_can_write (PhotoFileFormat self);
-static time_t photo_real_get_timestamp (MediaSource* base);
-static inline void photo_real_get_event_id (MediaSource* base,
- EventID* result);
-gint64 photo_get_raw_event_id (Photo* self);
-static void photo_real_get_import_id (MediaSource* base,
- ImportID* result);
-static gchar* photo_real_get_master_md5 (MediaSource* base);
-guint64 photo_get_flags (Photo* self);
-static void photo_notify_flags_altered (Photo* self,
- Alteration* additional_alteration);
-Alteration* alteration_compress (Alteration* self,
- Alteration* other);
-guint64 photo_replace_flags (Photo* self,
- guint64 flags,
- Alteration* additional_alteration);
-gboolean photo_table_replace_flags (PhotoTable* self,
- PhotoID* photo_id,
- guint64 flags);
-gboolean photo_is_flag_set (Photo* self,
- guint64 mask);
-gboolean media_source_internal_is_flag_set (guint64 flags,
- guint64 selector);
-guint64 photo_add_flags (Photo* self,
- guint64 mask,
- Alteration* additional_alteration);
-guint64 media_source_internal_add_flags (guint64 flags,
- guint64 selector);
-guint64 photo_remove_flags (Photo* self,
- guint64 mask,
- Alteration* additional_alteration);
-guint64 media_source_internal_remove_flags (guint64 flags,
- guint64 selector);
-guint64 photo_add_remove_flags (Photo* self,
- guint64 add,
- guint64 remove,
- Alteration* additional_alteration);
-void photo_add_remove_many_flags (GeeCollection* add,
- guint64 add_mask,
- Alteration* additional_add_alteration,
- GeeCollection* remove,
- guint64 remove_mask,
- Alteration* additional_remove_alteration,
- GError** error);
-guint64 photo_toggle_flags (Photo* self,
- guint64 mask,
- Alteration* additional_alteration);
-gboolean photo_is_master_metadata_dirty (Photo* self);
-void photo_set_master_metadata_dirty (Photo* self,
- gboolean dirty,
- GError** error);
-void photo_table_set_metadata_dirty (PhotoTable* self,
- PhotoID* photo_id,
- gboolean dirty,
- GError** error);
-static Rating photo_real_get_rating (MediaSource* base);
-static void photo_real_set_rating (MediaSource* base,
- Rating rating);
-gboolean photo_table_set_rating (PhotoTable* self,
- PhotoID* photo_id,
- Rating rating);
-static void photo_real_increase_rating (MediaSource* base);
-static void photo_real_decrease_rating (MediaSource* base);
-static void photo_real_commit_backlinks (DataSource* base,
- SourceCollection* sources,
- const gchar* backlinks);
-void photo_table_update_backlinks (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* backlinks,
- GError** error);
-static gboolean photo_real_set_event_id (MediaSource* base,
- EventID* event_id);
-gboolean photo_table_set_event (PhotoTable* self,
- PhotoID* photo_id,
- EventID* event_id);
-static gchar* photo_real_to_string (DataObject* base);
-gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
-static gboolean photo_real_equals (DataSource* base,
- DataSource* source);
-gboolean data_source_equals (DataSource* self,
- DataSource* source);
-static void photo_file_exif_updated (Photo* self);
-GFile* media_source_get_file (MediaSource* self);
-gboolean photo_table_master_exif_updated (PhotoTable* self,
- PhotoID* photoID,
- gint64 filesize,
- glong timestamp,
- const gchar* md5,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- PhotoRow* row);
-static guint64 photo_real_get_filesize (MediaSource* base);
-static guint64 photo_real_get_master_filesize (MediaSource* base);
-guint64 photo_get_editable_filesize (Photo* self);
-static time_t photo_real_get_exposure_time (Dateable* base);
-static gchar* photo_real_get_basename (MediaSource* base);
-static gchar* photo_real_get_title (MediaSource* base);
-static gchar* photo_real_get_comment (MediaSource* base);
-static void photo_real_set_title (MediaSource* base,
- const gchar* title);
-gboolean photo_table_set_title (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_title);
-static gboolean photo_real_set_comment (MediaSource* base,
- const gchar* comment);
-gboolean photo_table_set_comment (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_comment);
-void photo_set_import_id (Photo* self,
- ImportID* import_id);
-void photo_table_set_import_id (PhotoTable* self,
- PhotoID* photo_id,
- ImportID* import_id,
- GError** error);
-void photo_set_title_persistent (Photo* self,
- const gchar* title,
- GError** error);
-gboolean photo_file_format_can_write_metadata (PhotoFileFormat self);
-PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self,
- GError** error);
-GType photo_metadata_set_option_get_type (void) G_GNUC_CONST;
-void photo_metadata_set_title (PhotoMetadata* self,
- const gchar* title,
- PhotoMetadataSetOption option);
-PhotoFileMetadataWriter* photo_file_reader_create_metadata_writer (PhotoFileReader* self,
- GError** error);
-void library_monitor_blacklist_file (GFile* file,
- const gchar* reason);
-void library_monitor_unblacklist_file (GFile* file);
-void photo_set_comment_persistent (Photo* self,
- const gchar* comment,
- GError** error);
-void photo_metadata_set_comment (PhotoMetadata* self,
- const gchar* comment,
- PhotoMetadataSetOption option);
-static void photo_real_set_exposure_time (Dateable* base,
- time_t time);
-gboolean photo_table_set_exposure_time (PhotoTable* self,
- PhotoID* photo_id,
- time_t time);
-void photo_set_exposure_time_persistent (Photo* self,
- time_t time,
- GError** error);
-void dateable_set_exposure_time (Dateable* self,
- time_t target_time);
-void photo_metadata_set_exposure_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option);
-MetadataDateTime* metadata_date_time_new (time_t timestamp);
-MetadataDateTime* metadata_date_time_construct (GType object_type,
- time_t timestamp);
-static void photo_real_get_dimensions (MediaSource* base,
- PhotoException disallowed_steps,
- Dimensions* result);
-void photo_get_raw_dimensions (Photo* self,
- Dimensions* result);
-Orientation photo_get_orientation (Photo* self);
-gboolean photo_get_straighten (Photo* self,
- gdouble* theta);
-void compute_arb_rotated_size (gdouble src_width,
- gdouble src_height,
- gdouble angle,
- gdouble* dest_width,
- gdouble* dest_height);
-GType box_get_type (void) G_GNUC_CONST;
-Box* box_dup (const Box* self);
-void box_free (Box* self);
-gboolean photo_get_crop (Photo* self,
- Box* crop,
- PhotoException exceptions);
-void box_get_dimensions (Box *self,
- Dimensions* result);
-static void photo_locked_create_adjustments_from_data (Photo* self);
-static KeyValueMap* photo_get_transformation (Photo* self,
- const gchar* name);
-PixelTransformationBundle* photo_get_color_adjustments (Photo* self);
-PixelTransformer* photo_get_pixel_transformer (Photo* self);
-gboolean photo_has_color_adjustments (Photo* self);
-static gboolean photo_has_transformation (Photo* self,
- const gchar* name);
-PixelTransformation* photo_get_color_adjustment (Photo* self,
- PixelTransformationType type);
-void photo_set_color_adjustments (Photo* self,
- PixelTransformationBundle* new_adjustments);
-static gboolean photo_remove_transformation (Photo* self,
- const gchar* name);
-static gboolean photo_set_transformation (Photo* self,
- KeyValueMap* trans);
-static PhotoMetadata* photo_real_get_metadata (PhotoSource* base);
-PhotoMetadata* photo_get_editable_metadata (Photo* self,
- GError** error);
-gboolean photo_persist_master_metadata (Photo* self,
- PhotoMetadata* metadata,
- PhotoReimportMasterState* * state,
- GError** error);
-void photo_finish_update_master_metadata (Photo* self,
- PhotoReimportMasterState* state,
- GError** error);
-gboolean photo_persist_editable_metadata (Photo* self,
- PhotoMetadata* metadata,
- PhotoReimportEditableState* * state,
- GError** error);
-void photo_finish_update_editable_metadata (Photo* self,
- PhotoReimportEditableState* state,
- GError** error);
-gboolean photo_has_transformations (Photo* self);
-gboolean photo_only_metadata_changed (Photo* self);
-PhotoMetadata* photo_source_get_metadata (PhotoSource* self);
-gboolean photo_has_alterations (Photo* self);
-gchar* media_source_get_comment (MediaSource* self);
-gchar* media_source_get_title (MediaSource* self);
-PhotoTransformationState* photo_save_transformation_state (Photo* self);
-static PhotoPhotoTransformationStateImpl* photo_photo_transformation_state_impl_new (Photo* photo,
- Orientation orientation,
- GeeHashMap* transformations,
- PixelTransformer* transformer,
- PixelTransformationBundle* adjustments);
-static PhotoPhotoTransformationStateImpl* photo_photo_transformation_state_impl_construct (GType object_type,
- Photo* photo,
- Orientation orientation,
- GeeHashMap* transformations,
- PixelTransformer* transformer,
- PixelTransformationBundle* adjustments);
-static GType photo_photo_transformation_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-gboolean photo_load_transformation_state (Photo* self,
- PhotoTransformationState* state);
-static Orientation photo_photo_transformation_state_impl_get_orientation (PhotoPhotoTransformationStateImpl* self);
-static GeeHashMap* photo_photo_transformation_state_impl_get_transformations (PhotoPhotoTransformationStateImpl* self);
-static PixelTransformer* photo_photo_transformation_state_impl_get_transformer (PhotoPhotoTransformationStateImpl* self);
-static PixelTransformationBundle* photo_photo_transformation_state_impl_get_color_adjustments (PhotoPhotoTransformationStateImpl* self);
-gboolean photo_table_set_transformation_state (PhotoTable* self,
- PhotoID* photo_id,
- Orientation orientation,
- GeeHashMap* transformations);
-void photo_remove_all_transformations (Photo* self);
-gboolean photo_table_remove_all_transformations (PhotoTable* self,
- PhotoID* photo_id);
-gboolean photo_table_set_orientation (PhotoTable* self,
- PhotoID* photo_id,
- Orientation orientation);
-Orientation photo_get_original_orientation (Photo* self);
-gboolean photo_check_can_rotate (Photo* self);
-void photo_rotate (Photo* self,
- Rotation rotation);
-static void photo_real_rotate (Photo* self,
- Rotation rotation);
-Orientation orientation_perform (Orientation self,
- Rotation rotation);
-gboolean photo_table_set_transformation (PhotoTable* self,
- PhotoID* photo_id,
- KeyValueMap* map);
-gboolean photo_table_remove_transformation (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* object);
-gboolean photo_has_crop (Photo* self);
-gboolean photo_get_raw_crop (Photo* self,
- Box* crop);
-void box_init (Box *self,
- gint left,
- gint top,
- gint right,
- gint bottom);
-static void photo_set_raw_crop (Photo* self,
- Box* crop);
-static gboolean photo_get_raw_straighten (Photo* self,
- gdouble* angle);
-static void photo_set_raw_straighten (Photo* self,
- gdouble theta);
-GType editing_tools_redeye_instance_get_type (void) G_GNUC_CONST;
-EditingToolsRedeyeInstance* editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self);
-void editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self);
-static EditingToolsRedeyeInstance* photo_get_raw_redeye_instances (Photo* self,
- int* result_length1);
-gboolean photo_has_redeye_transformations (Photo* self);
-void photo_add_redeye_instance (Photo* self,
- EditingToolsRedeyeInstance* redeye);
-static gboolean photo_calculate_pixbuf_dimensions (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- Dimensions* scaled_image,
- Dimensions* scaled_to_viewport);
-static gboolean photo_locked_calculate_pixbuf_dimensions (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- Dimensions* scaled_image,
- Dimensions* scaled_to_viewport);
-gboolean scaling_is_unscaled (Scaling *self);
-void orientation_rotate_box (Orientation self,
- Dimensions* space,
- Box* box,
- Box* result);
-void orientation_rotate_dimensions (Orientation self,
- Dimensions* dim,
- Dimensions* result);
-void box_get_scaled (Box *self,
- Dimensions* scaled,
- Box* result);
-void scaling_get_scaled_dimensions (Scaling *self,
- Dimensions* original,
- Dimensions* result);
-gint box_get_width (Box *self);
-gint box_get_height (Box *self);
-void dimensions_get_scaled_similar (Dimensions *self,
- Dimensions* original,
- Dimensions* scaled,
- Dimensions* result);
-void orientation_derotate_dimensions (Orientation self,
- Dimensions* dim,
- Dimensions* result);
-gboolean dimensions_has_area (Dimensions *self);
-static GdkPixbuf* photo_load_raw_pixbuf (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- BackingFetchMode fetch_mode,
- GError** error);
-GdkPixbuf* photo_file_reader_unscaled_read (PhotoFileReader* self,
- GError** error);
-GdkPixbuf* photo_file_reader_scaled_read (PhotoFileReader* self,
- Dimensions* full,
- Dimensions* scaled,
- GError** error);
-gboolean dimensions_approx_equals (Dimensions *self,
- Dimensions* dim,
- gint fudge);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-static GdkPixbuf* photo_get_untransformed_pixbuf (Photo* self,
- Scaling* scaling,
- gboolean rotate,
- BackingFetchMode fetch_mode,
- GError** error);
-GdkPixbuf* photo_get_unmodified_pixbuf (Photo* self,
- Scaling* scaling,
- gboolean rotate,
- GError** error);
-GdkPixbuf* orientation_rotate_pixbuf (Orientation self,
- GdkPixbuf* pixbuf);
-static GdkPixbuf* photo_real_get_pixbuf (PhotoSource* base,
- Scaling* scaling,
- GError** error);
-GdkPixbuf* photo_get_pixbuf_with_options (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- BackingFetchMode fetch_mode,
- GError** error);
-static GdkPixbuf* photo_run_source_pixbuf_cache (Photo* locate,
- gboolean keep,
- GError** error);
-static PhotoCachedPixbuf* photo_cached_pixbuf_new (Photo* photo,
- GdkPixbuf* pixbuf);
-static PhotoCachedPixbuf* photo_cached_pixbuf_construct (GType object_type,
- Photo* photo,
- GdkPixbuf* pixbuf);
-static gboolean photo_trim_source_pixbuf_cache (void);
-static gboolean _photo_trim_source_pixbuf_cache_gsource_func (gpointer self);
-gboolean photo_get_develop_raw_photos_to_files (void);
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-gboolean dimensions_equals (Dimensions *self,
- Dimensions* dim);
-static GdkPixbuf* photo_do_redeye (Photo* self,
- GdkPixbuf* pixbuf,
- EditingToolsRedeyeInstance* inst);
-GdkPixbuf* rotate_arb (GdkPixbuf* source_pixbuf,
- gdouble angle);
-gboolean photo_has_user_generated_metadata (Photo* self);
-static gboolean photo_real_has_user_generated_metadata (Photo* self);
-void photo_set_user_metadata_for_export (Photo* self,
- PhotoMetadata* metadata);
-static void photo_real_set_user_metadata_for_export (Photo* self,
- PhotoMetadata* metadata);
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-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);
-GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self,
- GFile* file);
-static gboolean photo_export_fullsized_backing (Photo* self,
- GFile* file,
- gboolean export_metadata,
- GError** error);
-PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self);
-time_t media_source_get_exposure_time (MediaSource* self);
-void photo_metadata_set_pixel_dimensions (PhotoMetadata* self,
- Dimensions* dim,
- PhotoMetadataSetOption option);
-void photo_metadata_set_orientation (PhotoMetadata* self,
- Orientation orientation);
-void photo_metadata_set_software (PhotoMetadata* self,
- const gchar* software,
- const gchar* version);
-#define RESOURCES_APP_TITLE "Shotwell"
-#define RESOURCES_APP_VERSION _VERSION
-void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self);
-void photo_metadata_clear (PhotoMetadata* self);
-gboolean photo_is_export_required (Photo* self,
- Scaling* scaling,
- PhotoFileFormat export_format);
-void photo_export (Photo* self,
- GFile* dest_file,
- Scaling* scaling,
- JpegQuality quality,
- PhotoFileFormat export_format,
- gboolean direct_copy_unmodified,
- gboolean export_metadata,
- GError** error);
-const gchar* photo_file_format_to_string (PhotoFileFormat self);
-void photo_metadata_remove_tag (PhotoMetadata* self,
- const gchar* tag);
-static GFile* photo_generate_new_editable_file (Photo* self,
- PhotoFileFormat* file_format,
- GError** error);
-gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self,
- const gchar* ext);
-gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self);
-GFile* generate_unique_file (GFile* dir,
- const gchar* basename,
- gboolean* collision,
- GError** error);
-static gboolean photo_launch_editor (GFile* file,
- PhotoFileFormat file_format,
- GError** error);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self);
-gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
-static void _g_object_unref0_ (gpointer var);
-static inline void _g_list_free__g_object_unref0_ (GList* self);
-void photo_open_with_raw_external_editor (Photo* self,
- GError** error);
-void photo_open_with_external_editor (Photo* self,
- GError** error);
-static void photo_halt_monitoring_editable (Photo* self);
-static void photo_attach_editable (Photo* self,
- PhotoFileFormat file_format,
- GFile* file,
- GError** error);
-static void photo_start_monitoring_editable (Photo* self,
- GFile* file,
- GError** error);
-static void photo_on_editable_file_changed (Photo* self,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event);
-static void _photo_on_editable_file_changed_g_file_monitor_changed (GFileMonitor* _sender,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event_type,
- gpointer self);
-static void photo_update_editable (Photo* self,
- gboolean only_attributes,
- PhotoFileReader* new_reader,
- GError** error);
-static void photo_update_editable_attributes (Photo* self,
- GError** error);
-void photo_reimport_editable (Photo* self,
- GError** error);
-void photo_table_attach_editable (PhotoTable* self,
- PhotoRow* row,
- BackingPhotoID* editable_id,
- GError** error);
-void backing_photo_table_update_attributes (BackingPhotoTable* self,
- BackingPhotoID* id,
- time_t timestamp,
- gint64 filesize,
- GError** error);
-static void _vala_array_add106 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add107 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add108 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add109 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add110 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add111 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-void backing_photo_id_init (BackingPhotoID *self,
- gint64 id);
-const gchar* g_file_monitor_event_to_string (GFileMonitorEvent self);
-static void photo_on_reimport_editable (Photo* self);
-static void _photo_on_reimport_editable_one_shot_callback (gpointer self);
-OneShotScheduler* one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-OneShotScheduler* one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-void one_shot_scheduler_after_timeout (OneShotScheduler* self,
- guint msec,
- gboolean reschedule);
-static void photo_on_update_editable_attributes (Photo* self);
-static void _photo_on_update_editable_attributes_one_shot_callback (gpointer self);
-static void photo_on_remove_editable (Photo* self);
-static void _photo_on_remove_editable_one_shot_callback (gpointer self);
-void photo_get_original_dimensions (Photo* self,
- Dimensions* result);
-void photo_get_master_dimensions (Photo* self,
- Dimensions* result);
-void photo_set_crop (Photo* self,
- Box* crop);
-void orientation_derotate_box (Orientation self,
- Dimensions* space,
- Box* box,
- Box* result);
-void photo_set_straighten (Photo* self,
- gdouble theta);
-static GdkPixbuf* photo_red_reduce_pixel (Photo* self,
- GdkPixbuf* pixbuf,
- gint x,
- gint y);
-void photo_unscaled_to_raw_point (Photo* self,
- GdkPoint* unscaled_point,
- GdkPoint* result);
-void orientation_derotate_point (Orientation self,
- Dimensions* space,
- GdkPoint* point,
- GdkPoint* result);
-void photo_unscaled_to_raw_rect (Photo* self,
- GdkRectangle* unscaled_rect,
- GdkRectangle* result);
-PixelTransformationBundle* photo_get_enhance_transformations (Photo* self);
-gboolean photo_enhance (Photo* self);
-void photo_set_develop_raw_photos_to_files (gboolean value);
-static void photo_real_editable_replaced (Photo* self,
- GFile* old_file,
- GFile* new_file);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void photo_real_raw_development_modified (Photo* self);
-static void photo_real_baseline_replaced (Photo* self);
-static void photo_real_master_reimported (Photo* self,
- PhotoMetadata* metadata);
-static void g_cclosure_user_marshal_VOID__MEDIA_METADATA (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void photo_real_editable_reimported (Photo* self,
- PhotoMetadata* metadata);
-static void photo_real_baseline_reimported (Photo* self,
- PhotoMetadata* metadata);
-static void photo_real_source_reimported (Photo* self,
- PhotoMetadata* metadata);
-#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplPrivate))
-static void photo_photo_transformation_state_impl_on_photo_baseline_replaced (PhotoPhotoTransformationStateImpl* self);
-static void _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced (Photo* _sender,
- gpointer self);
-static GeeHashMap* photo_photo_transformation_state_impl_copy_transformations (GeeHashMap* original);
-static void photo_photo_transformation_state_impl_finalize (GObject * obj);
-static void photo_backing_readers_finalize (PhotoBackingReaders * obj);
-static void photo_cached_pixbuf_finalize (PhotoCachedPixbuf * obj);
-PhotoReimportMasterState* photo_reimport_master_state_construct (GType object_type);
-static void photo_reimport_master_state_finalize (PhotoReimportMasterState * obj);
-static gchar** _vala_array_dup24 (gchar** self,
- int length);
-static void photo_reimport_master_state_impl_finalize (PhotoReimportMasterState * obj);
-PhotoReimportEditableState* photo_reimport_editable_state_construct (GType object_type);
-static void photo_reimport_editable_state_finalize (PhotoReimportEditableState * obj);
-static void photo_reimport_editable_state_impl_finalize (PhotoReimportEditableState * obj);
-PhotoReimportRawDevelopmentState* photo_reimport_raw_development_state_construct (GType object_type);
-static void photo_reimport_raw_development_state_finalize (PhotoReimportRawDevelopmentState * obj);
-static PhotoReimportRawDevelopmentStateImplDevToReimport* photo_reimport_raw_development_state_impl_dev_to_reimport_new (BackingPhotoRow* backing,
- PhotoMetadata* metadata);
-static PhotoReimportRawDevelopmentStateImplDevToReimport* photo_reimport_raw_development_state_impl_dev_to_reimport_construct (GType object_type,
- BackingPhotoRow* backing,
- PhotoMetadata* metadata);
-static void photo_reimport_raw_development_state_impl_dev_to_reimport_finalize (PhotoReimportRawDevelopmentStateImplDevToReimport * obj);
-static void photo_reimport_raw_development_state_impl_finalize (PhotoReimportRawDevelopmentState * obj);
-static void photo_finalize (GObject * obj);
-static void _vala_photo_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_photo_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-GType marker_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_holding_tank_get_type (void) G_GNUC_CONST;
-GType media_source_holding_tank_get_type (void) G_GNUC_CONST;
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-GType media_monitor_get_type (void) G_GNUC_CONST;
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionPrivate))
-GType library_photo_source_collection_state_get_type (void) G_GNUC_CONST;
-guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean file_equal (GFile* a,
- GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-gint int64_compare (gint64* a,
- gint64* b);
-static gint _int64_compare_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-static gint64* _int64_dup (gint64* self);
-gboolean int64_equal (gint64* a,
- gint64* b);
-static gboolean _int64_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-LibraryPhotoSourceCollection* library_photo_source_collection_new (void);
-LibraryPhotoSourceCollection* library_photo_source_collection_construct (GType object_type);
-static gint64 _photo_get_photo_key_get_source_database_key (DataSource* source,
- gpointer self);
-MediaSourceCollection* media_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-MediaSourceHoldingTank* media_source_collection_get_trashcan (MediaSourceCollection* self);
-static void library_photo_source_collection_on_trashcan_contents_altered (LibraryPhotoSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void _library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self);
-static void library_photo_source_collection_on_offline_contents_altered (LibraryPhotoSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void _library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-static MediaSourceHoldingTank* library_photo_source_collection_real_create_trashcan (MediaSourceCollection* base);
-static gboolean library_photo_source_collection_check_if_trashed_photo (LibraryPhotoSourceCollection* self,
- DataSource* source,
- Alteration* alteration);
-static gboolean _library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep (DataSource* source,
- Alteration* alteration,
- gpointer self);
-LibraryPhotoSourceHoldingTank* library_photo_source_holding_tank_new (LibraryPhotoSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-LibraryPhotoSourceHoldingTank* library_photo_source_holding_tank_construct (GType object_type,
- LibraryPhotoSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-GType library_photo_source_holding_tank_get_type (void) G_GNUC_CONST;
-static MediaSourceHoldingTank* library_photo_source_collection_real_create_offline_bin (MediaSourceCollection* base);
-static gboolean library_photo_source_collection_check_if_offline_photo (LibraryPhotoSourceCollection* self,
- DataSource* source,
- Alteration* alteration);
-static gboolean _library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep (DataSource* source,
- Alteration* alteration,
- gpointer self);
-static MediaMonitor* library_photo_source_collection_real_create_media_monitor (MediaSourceCollection* base,
- Workers* workers,
- GCancellable* cancellable);
-PhotoMonitor* photo_monitor_new (Workers* workers,
- GCancellable* cancellable);
-PhotoMonitor* photo_monitor_construct (GType object_type,
- Workers* workers,
- GCancellable* cancellable);
-GType photo_monitor_get_type (void) G_GNUC_CONST;
-static gboolean library_photo_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source);
-static gchar* library_photo_source_collection_real_get_typename (MediaSourceCollection* base);
-static gboolean library_photo_source_collection_real_is_file_recognized (MediaSourceCollection* base,
- GFile* file);
-static void library_photo_source_collection_real_notify_contents_altered (DataCollection* base,
- GeeIterable* added,
- GeeIterable* removed);
-static void library_photo_source_collection_on_editable_replaced (LibraryPhotoSourceCollection* self,
- Photo* photo,
- GFile* old_file,
- GFile* new_file);
-static void _library_photo_source_collection_on_editable_replaced_photo_editable_replaced (Photo* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self);
-static void library_photo_source_collection_on_raw_development_modified (LibraryPhotoSourceCollection* self,
- Photo* _photo);
-static void _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified (Photo* _sender,
- gpointer self);
-void data_collection_notify_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void library_photo_source_collection_real_items_altered (DataCollection* base,
- GeeMap* items);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-static void library_photo_source_collection_real_postprocess_imported_media (MediaSourceCollection* base,
- GeeCollection* media_sources);
-GType tag_get_type (void) G_GNUC_CONST;
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void);
-gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self);
-HierarchicalTagIndex* hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords);
-GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self);
-GeeCollection* library_photo_get_import_keywords (LibraryPhoto* self);
-gboolean hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self,
- const gchar* tag);
-gchar* tag_prep_tag_name (const gchar* name);
-gchar* hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self,
- const gchar* name);
-Tag* tag_for_path (const gchar* name);
-GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
-void library_photo_clear_import_keywords (LibraryPhoto* self);
-void tag_attach_many (Tag* self,
- GeeCollection* sources);
-void media_source_collection_postprocess_imported_media (MediaSourceCollection* self,
- GeeCollection* media);
-void library_photo_source_collection_notify_master_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void library_photo_source_collection_real_notify_master_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-void library_photo_source_collection_notify_editable_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void library_photo_source_collection_real_notify_editable_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-void library_photo_source_collection_notify_source_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void library_photo_source_collection_real_notify_source_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-void library_photo_source_collection_notify_baseline_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void library_photo_source_collection_real_notify_baseline_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static MediaSource* library_photo_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base,
- gint64 numeric_id);
-LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self,
- PhotoID* photo_id);
-gboolean media_source_is_trashed (MediaSource* self);
-gboolean media_source_is_offline (MediaSource* self);
-static MediaSource* library_photo_source_collection_real_fetch_by_source_id (MediaSourceCollection* base,
- const gchar* source_id);
-MediaSource* media_source_collection_fetch_by_numeric_id (MediaSourceCollection* self,
- gint64 numeric_id);
-gint64 parse_int64 (const gchar* str,
- gint num_base);
-static GeeCollection* library_photo_source_collection_real_get_event_source_ids (MediaSourceCollection* base,
- EventID* event_id);
-GeeArrayList* photo_table_get_event_source_ids (PhotoTable* self,
- EventID* event_id);
-DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self,
- gint64 key);
-LibraryPhoto* library_photo_source_collection_fetch_by_editable_file (LibraryPhotoSourceCollection* self,
- GFile* file);
-LibraryPhoto* library_photo_source_collection_fetch_by_raw_development_file (LibraryPhotoSourceCollection* self,
- GFile* file);
-static void library_photo_source_collection_compare_backing (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- GFileInfo* info,
- GeeCollection* matches_master,
- GeeCollection* matches_editable,
- GeeCollection* matches_development);
-gboolean backing_photo_row_matches_file_info (BackingPhotoRow* self,
- GFileInfo* info);
-void library_photo_source_collection_fetch_by_matching_backing (LibraryPhotoSourceCollection* self,
- GFileInfo* info,
- GeeCollection* matches_master,
- GeeCollection* matches_editable,
- GeeCollection* matched_development);
-GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self);
-void library_photo_source_collection_get_basename_filesize_duplicate (LibraryPhotoSourceCollection* self,
- const gchar* basename,
- gint64 filesize,
- PhotoID* result);
-gint utf8_ci_compare (void* a,
- void* b);
-gboolean library_photo_source_collection_has_basename_filesize_duplicate (LibraryPhotoSourceCollection* self,
- const gchar* basename,
- gint64 filesize);
-gboolean photo_id_is_valid (PhotoID *self);
-LibraryPhoto* library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self,
- GFile* file);
-MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self,
- GFile* file);
-LibraryPhoto* library_photo_source_holding_tank_fetch_by_backing_file (LibraryPhotoSourceHoldingTank* self,
- GFile* file);
-LibraryPhoto* library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self,
- const gchar* md5);
-MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self,
- const gchar* md5);
-LibraryPhoto* library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self,
- GFile* file);
-LibraryPhoto* library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self,
- const gchar* md5);
-gint library_photo_source_collection_get_offline_count (LibraryPhotoSourceCollection* self);
-gint source_holding_tank_get_count (SourceHoldingTank* self);
-LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self,
- GFile* file,
- LibraryPhotoSourceCollectionState* state);
-MediaSource* media_source_collection_fetch_by_master_file (MediaSourceCollection* self,
- GFile* file);
-static gboolean library_photo_source_collection_real_has_backlink (SourceCollection* base,
- SourceBacklink* backlink);
-gboolean source_collection_has_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-gboolean source_holding_tank_has_backlink (SourceHoldingTank* self,
- SourceBacklink* backlink);
-static void library_photo_source_collection_real_remove_backlink (SourceCollection* base,
- SourceBacklink* backlink);
-void source_holding_tank_remove_backlink (SourceHoldingTank* self,
- SourceBacklink* backlink);
-void source_collection_remove_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-MediaSourceTransactionController* media_source_transaction_controller_new (MediaSourceCollection* sources);
-MediaSourceTransactionController* media_source_transaction_controller_construct (GType object_type,
- MediaSourceCollection* sources);
-GType media_source_transaction_controller_get_type (void) G_GNUC_CONST;
-static void library_photo_source_collection_real_master_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void library_photo_source_collection_real_editable_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void library_photo_source_collection_real_baseline_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void library_photo_source_collection_real_source_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void library_photo_source_collection_finalize (DataCollection * obj);
-GType flaggable_get_type (void) G_GNUC_CONST;
-GType monitorable_get_type (void) G_GNUC_CONST;
-#define LIBRARY_PHOTO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO, LibraryPhotoPrivate))
-#define LIBRARY_PHOTO_FLAG_HIDDEN ((guint64) 0x0000000000000001)
-#define LIBRARY_PHOTO_FLAG_FAVORITE ((guint64) 0x0000000000000002)
-#define LIBRARY_PHOTO_FLAG_TRASH ((guint64) 0x0000000000000004)
-#define LIBRARY_PHOTO_FLAG_OFFLINE ((guint64) 0x0000000000000008)
-#define LIBRARY_PHOTO_FLAG_FLAGGED ((guint64) 0x0000000000000010)
-static LibraryPhoto* library_photo_new (PhotoRow* row);
-static LibraryPhoto* library_photo_construct (GType object_type,
- PhotoRow* row);
-static void library_photo_generate_thumbnails (LibraryPhoto* self);
-static void _library_photo_generate_thumbnails_one_shot_callback (gpointer self);
-void data_source_rehydrate_backlinks (DataSource* self,
- SourceCollection* unlinked_from,
- const gchar* dehydrated);
-static void library_photo_upgrade_rating_flags (LibraryPhoto* self,
- guint64 flags);
-static LibraryPhoto* library_photo_new_from_import_params (PhotoImportParams* import_params);
-static LibraryPhoto* library_photo_construct_from_import_params (GType object_type,
- PhotoImportParams* import_params);
-void library_photo_init (ProgressMonitor monitor,
- void* monitor_target);
-GeeArrayList* photo_table_get_all (PhotoTable* self);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-void media_source_collection_add_many_to_trash (MediaSourceCollection* self,
- GeeCollection* sources);
-void media_source_collection_add_many_to_offline (MediaSourceCollection* self,
- GeeCollection* sources);
-void library_photo_terminate (void);
-ImportResult library_photo_import_create (PhotoImportParams* params,
- LibraryPhoto* * photo);
-void photo_table_add (PhotoTable* self,
- PhotoRow* photo_row,
- PhotoID* result);
-gboolean photo_id_is_invalid (PhotoID *self);
-void library_photo_import_failed (LibraryPhoto* photo);
-void photo_table_remove (PhotoTable* self,
- PhotoID* photo_id,
- GError** error);
-static void library_photo_real_notify_master_reimported (Photo* base,
- PhotoMetadata* metadata);
-static void library_photo_real_notify_editable_reimported (Photo* base,
- PhotoMetadata* metadata);
-static void library_photo_real_notify_source_reimported (Photo* base,
- PhotoMetadata* metadata);
-static void library_photo_real_notify_baseline_reimported (Photo* base,
- PhotoMetadata* metadata);
-void thumbnail_cache_import_from_source (ThumbnailSource* source,
- gboolean force,
- GError** error);
-void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self);
-static void library_photo_real_notify_altered (DataObject* base,
- Alteration* alteration);
-gboolean alteration_has_subject (Alteration* self,
- const gchar* subject);
-void one_shot_scheduler_at_priority_idle (OneShotScheduler* self,
- gint priority);
-static GdkPixbuf* library_photo_real_get_preview_pixbuf (MediaSource* base,
- Scaling* scaling,
- GError** error);
-GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
-GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self,
- GdkPixbuf* pixbuf,
- GdkInterpType interp,
- gboolean scale_up);
-static void library_photo_real_rotate (Photo* base,
- Rotation rotation);
-void thumbnail_cache_rotate (ThumbnailSource* source,
- Rotation rotation,
- GError** error);
-static GdkPixbuf* library_photo_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-GdkPixbuf* thumbnail_cache_fetch (ThumbnailSource* source,
- gint scale,
- GError** error);
-static void library_photo_duplicate_backing_photo (LibraryPhoto* self,
- BackingPhotoRow* backing,
- BackingPhotoID* result,
- GError** error);
-GFile* library_files_duplicate (GFile* src,
- GFileProgressCallback progress_callback,
- void* progress_callback_target,
- gboolean blacklist,
- GError** error);
-static void library_photo_on_duplicate_progress (LibraryPhoto* self,
- gint64 current,
- gint64 total);
-static void _library_photo_on_duplicate_progress_gfile_progress_callback (gint64 current_num_bytes,
- gint64 total_num_bytes,
- gpointer self);
-LibraryPhoto* library_photo_duplicate (LibraryPhoto* self,
- GError** error);
-void photo_table_duplicate (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_filename,
- BackingPhotoID* editable_id,
- BackingPhotoID* develop_shotwell,
- BackingPhotoID* develop_camera_id,
- BackingPhotoID* develop_embedded_id,
- PhotoID* result);
-PhotoRow* photo_table_get_row (PhotoTable* self,
- PhotoID* photo_id);
-void thumbnail_cache_duplicate (ThumbnailSource* src_source,
- ThumbnailSource* dest_source);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-Event* media_source_get_event (MediaSource* self);
-void event_attach (Event* self,
- MediaSource* source);
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self,
- MediaSource* source);
-void tag_attach (Tag* self,
- MediaSource* source);
-void spin_event_loop (void);
-static gboolean library_photo_real_is_trashed (MediaSource* base);
-static void library_photo_real_trash (MediaSource* base);
-static void library_photo_real_untrash (MediaSource* base);
-static gboolean library_photo_real_is_offline (Monitorable* base);
-static void library_photo_real_mark_offline (Monitorable* base);
-static void library_photo_real_mark_online (Monitorable* base);
-static gboolean library_photo_real_is_flagged (Flaggable* base);
-static void library_photo_real_mark_flagged (Flaggable* base);
-static void library_photo_real_mark_unflagged (Flaggable* base);
-static gboolean library_photo_real_internal_delete_backing (DataSource* base,
- GError** error);
-gboolean media_source_delete_original_file (MediaSource* self);
-static void library_photo_real_destroy (DataSource* base);
-void thumbnail_cache_remove (ThumbnailSource* source);
-void data_source_destroy (DataSource* self);
-gboolean library_photo_has_nontrash_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format);
-void library_photo_get_nontrash_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- PhotoID* result);
-static gboolean library_photo_real_has_user_generated_metadata (Photo* base);
-Rating media_source_get_rating (MediaSource* self);
-gchar* data_object_get_name (DataObject* self);
-static void library_photo_real_set_user_metadata_for_export (Photo* base,
- PhotoMetadata* metadata);
-void photo_metadata_set_keywords (PhotoMetadata* self,
- GeeCollection* keywords,
- PhotoMetadataSetOption option);
-void photo_metadata_set_rating (PhotoMetadata* self,
- Rating rating);
-static void library_photo_real_apply_user_metadata_for_reimport (Photo* base,
- PhotoMetadata* metadata);
-gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
-gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name);
-gboolean tag_source_collection_exists (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root);
-static void library_photo_finalize (GObject * obj);
-#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankPrivate))
-MediaSourceHoldingTank* media_source_holding_tank_new (MediaSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-MediaSourceHoldingTank* media_source_holding_tank_construct (GType object_type,
- MediaSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-static void library_photo_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base,
- GeeCollection* added,
- GeeCollection* removed);
-static void library_photo_source_holding_tank_on_editable_replaced (LibraryPhotoSourceHoldingTank* self,
- Photo* _photo,
- GFile* old_file,
- GFile* new_file);
-static void _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced (Photo* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self);
-static void library_photo_source_holding_tank_on_raw_development_modified (LibraryPhotoSourceHoldingTank* self,
- Photo* _photo);
-static void _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified (Photo* _sender,
- gpointer self);
-void source_holding_tank_notify_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void library_photo_source_holding_tank_finalize (SourceHoldingTank * 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 gchar* PHOTO_IMAGE_EXTENSIONS[69] = {"jpg", "jpeg", "jpe", "tiff", "tif", "png", "gif", "bmp", "ppm", "pgm", "pbm", "pnm", "thm", "tga", "ilbm", "pcx", "ecw", "img", "sid", "cd5", "fits", "pgf", "cgm", "svg", "odg", "eps", "pdf", "swf", "wmf", "emf", "xps", "pns", "jps", "mpo", "3fr", "arw", "srf", "sr2", "bay", "crw", "cr2", "cap", "iiq", "eip", "dcs", "dcr", "drf", "k25", "kdc", "dng", "erf", "fff", "mef", "mos", "mrw", "nef", "nrw", "orf", "ptx", "pef", "pxn", "r3d", "raf", "raw", "rw2", "rwl", "rwz", "x3f", "srw"};
-
-GType
-backing_fetch_mode_get_type (void)
-{
- static volatile gsize backing_fetch_mode_type_id__volatile = 0;
- if (g_once_init_enter (&backing_fetch_mode_type_id__volatile)) {
- static const GEnumValue values[] = {{BACKING_FETCH_MODE_SOURCE, "BACKING_FETCH_MODE_SOURCE", "source"}, {BACKING_FETCH_MODE_BASELINE, "BACKING_FETCH_MODE_BASELINE", "baseline"}, {BACKING_FETCH_MODE_MASTER, "BACKING_FETCH_MODE_MASTER", "master"}, {BACKING_FETCH_MODE_UNMODIFIED, "BACKING_FETCH_MODE_UNMODIFIED", "unmodified"}, {0, NULL, NULL}};
- GType backing_fetch_mode_type_id;
- backing_fetch_mode_type_id = g_enum_register_static ("BackingFetchMode", values);
- g_once_init_leave (&backing_fetch_mode_type_id__volatile, backing_fetch_mode_type_id);
- }
- return backing_fetch_mode_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? g_object_ref (self) : NULL;
-#line 3803 "Photo.c"
-}
-
-
-static gpointer
-_thumbnails_ref0 (gpointer self)
-{
-#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? thumbnails_ref (self) : NULL;
-#line 3812 "Photo.c"
-}
-
-
-PhotoImportParams*
-photo_import_params_construct (GType object_type,
- GFile* file,
- GFile* final_associated_file,
- ImportID* import_id,
- PhotoFileSnifferOptions sniffer_options,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- Thumbnails* thumbnails)
-{
- PhotoImportParams* self = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- ImportID _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- Thumbnails* _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((final_associated_file == NULL) || G_IS_FILE (final_associated_file), NULL);
-#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (import_id != NULL, NULL);
-#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((thumbnails == NULL) || IS_THUMBNAILS (thumbnails), NULL);
-#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoImportParams*) g_type_create_instance (object_type);
-#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->file);
-#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
- self->file = _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _g_object_ref0 (final_associated_file);
-#line 42 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->final_associated_file);
-#line 42 "/home/jens/Source/shotwell/src/Photo.vala"
- self->final_associated_file = _tmp1_;
-#line 43 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = *import_id;
-#line 43 "/home/jens/Source/shotwell/src/Photo.vala"
- self->import_id = _tmp2_;
-#line 44 "/home/jens/Source/shotwell/src/Photo.vala"
- self->sniffer_options = sniffer_options;
-#line 45 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = g_strdup (exif_md5);
-#line 45 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->exif_md5);
-#line 45 "/home/jens/Source/shotwell/src/Photo.vala"
- self->exif_md5 = _tmp3_;
-#line 46 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = g_strdup (thumbnail_md5);
-#line 46 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->thumbnail_md5);
-#line 46 "/home/jens/Source/shotwell/src/Photo.vala"
- self->thumbnail_md5 = _tmp4_;
-#line 47 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = g_strdup (full_md5);
-#line 47 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->full_md5);
-#line 47 "/home/jens/Source/shotwell/src/Photo.vala"
- self->full_md5 = _tmp5_;
-#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _thumbnails_ref0 (thumbnails);
-#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
- _thumbnails_unref0 (self->thumbnails);
-#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
- self->thumbnails = _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 3889 "Photo.c"
-}
-
-
-PhotoImportParams*
-photo_import_params_new (GFile* file,
- GFile* final_associated_file,
- ImportID* import_id,
- PhotoFileSnifferOptions sniffer_options,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- Thumbnails* thumbnails)
-{
-#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_import_params_construct (TYPE_PHOTO_IMPORT_PARAMS, file, final_associated_file, import_id, sniffer_options, exif_md5, thumbnail_md5, full_md5, thumbnails);
-#line 3905 "Photo.c"
-}
-
-
-PhotoImportParams*
-photo_import_params_construct_create_placeholder (GType object_type,
- GFile* file,
- ImportID* import_id)
-{
- PhotoImportParams* self = NULL;
- GFile* _tmp0_;
- ImportID _tmp1_;
-#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (import_id != NULL, NULL);
-#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoImportParams*) g_type_create_instance (object_type);
-#line 53 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 53 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->file);
-#line 53 "/home/jens/Source/shotwell/src/Photo.vala"
- self->file = _tmp0_;
-#line 54 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = *import_id;
-#line 54 "/home/jens/Source/shotwell/src/Photo.vala"
- self->import_id = _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/Photo.vala"
- self->sniffer_options = PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5;
-#line 56 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->exif_md5);
-#line 56 "/home/jens/Source/shotwell/src/Photo.vala"
- self->exif_md5 = NULL;
-#line 57 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->thumbnail_md5);
-#line 57 "/home/jens/Source/shotwell/src/Photo.vala"
- self->thumbnail_md5 = NULL;
-#line 58 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->full_md5);
-#line 58 "/home/jens/Source/shotwell/src/Photo.vala"
- self->full_md5 = NULL;
-#line 59 "/home/jens/Source/shotwell/src/Photo.vala"
- _thumbnails_unref0 (self->thumbnails);
-#line 59 "/home/jens/Source/shotwell/src/Photo.vala"
- self->thumbnails = NULL;
-#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 3953 "Photo.c"
-}
-
-
-PhotoImportParams*
-photo_import_params_new_create_placeholder (GFile* file,
- ImportID* import_id)
-{
-#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_import_params_construct_create_placeholder (TYPE_PHOTO_IMPORT_PARAMS, file, import_id);
-#line 3963 "Photo.c"
-}
-
-
-static void
-value_photo_import_params_init (GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 3972 "Photo.c"
-}
-
-
-static void
-value_photo_import_params_free_value (GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_import_params_unref (value->data[0].v_pointer);
-#line 3983 "Photo.c"
- }
-}
-
-
-static void
-value_photo_import_params_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (src_value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = photo_import_params_ref (src_value->data[0].v_pointer);
-#line 3996 "Photo.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4000 "Photo.c"
- }
-}
-
-
-static gpointer
-value_photo_import_params_peek_pointer (const GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 4010 "Photo.c"
-}
-
-
-static gchar*
-value_photo_import_params_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (collect_values[0].v_pointer) {
-#line 4022 "Photo.c"
- PhotoImportParams * object;
- object = collect_values[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4029 "Photo.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.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 4033 "Photo.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = photo_import_params_ref (object);
-#line 4037 "Photo.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 4041 "Photo.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 4045 "Photo.c"
-}
-
-
-static gchar*
-value_photo_import_params_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoImportParams ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!object_p) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4061 "Photo.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = NULL;
-#line 4067 "Photo.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = value->data[0].v_pointer;
-#line 4071 "Photo.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = photo_import_params_ref (value->data[0].v_pointer);
-#line 4075 "Photo.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 4079 "Photo.c"
-}
-
-
-GParamSpec*
-param_spec_photo_import_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPhotoImportParams* spec;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_IMPORT_PARAMS), NULL);
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- return G_PARAM_SPEC (spec);
-#line 4099 "Photo.c"
-}
-
-
-gpointer
-value_get_photo_import_params (const GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS), NULL);
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 4110 "Photo.c"
-}
-
-
-void
-value_set_photo_import_params (GValue* value,
- gpointer v_object)
-{
- PhotoImportParams * old;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS));
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_IMPORT_PARAMS));
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_import_params_ref (value->data[0].v_pointer);
-#line 4133 "Photo.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 4137 "Photo.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_import_params_unref (old);
-#line 4143 "Photo.c"
- }
-}
-
-
-void
-value_take_photo_import_params (GValue* value,
- gpointer v_object)
-{
- PhotoImportParams * old;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS));
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_IMPORT_PARAMS));
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 4165 "Photo.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 4169 "Photo.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_import_params_unref (old);
-#line 4175 "Photo.c"
- }
-}
-
-
-static void
-photo_import_params_class_init (PhotoImportParamsClass * klass)
-{
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_import_params_parent_class = g_type_class_peek_parent (klass);
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoImportParamsClass *) klass)->finalize = photo_import_params_finalize;
-#line 4187 "Photo.c"
-}
-
-
-static void
-photo_import_params_instance_init (PhotoImportParams * self)
-{
- PhotoRow* _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/Photo.vala"
- self->final_associated_file = NULL;
-#line 35 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_row_new ();
-#line 35 "/home/jens/Source/shotwell/src/Photo.vala"
- self->row = _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/Photo.vala"
- self->keywords = NULL;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- self->ref_count = 1;
-#line 4205 "Photo.c"
-}
-
-
-static void
-photo_import_params_finalize (PhotoImportParams * obj)
-{
- PhotoImportParams * self;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams);
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_destroy (self);
-#line 23 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->file);
-#line 24 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->final_associated_file);
-#line 27 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->exif_md5);
-#line 28 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->thumbnail_md5);
-#line 29 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->full_md5);
-#line 32 "/home/jens/Source/shotwell/src/Photo.vala"
- _thumbnails_unref0 (self->thumbnails);
-#line 35 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (self->row);
-#line 36 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->keywords);
-#line 4233 "Photo.c"
-}
-
-
-GType
-photo_import_params_get_type (void)
-{
- static volatile gsize photo_import_params_type_id__volatile = 0;
- if (g_once_init_enter (&photo_import_params_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_photo_import_params_init, value_photo_import_params_free_value, value_photo_import_params_copy_value, value_photo_import_params_peek_pointer, "p", value_photo_import_params_collect_value, "p", value_photo_import_params_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoImportParamsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_import_params_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoImportParams), 0, (GInstanceInitFunc) photo_import_params_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_import_params_type_id;
- photo_import_params_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoImportParams", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&photo_import_params_type_id__volatile, photo_import_params_type_id);
- }
- return photo_import_params_type_id__volatile;
-}
-
-
-gpointer
-photo_import_params_ref (gpointer instance)
-{
- PhotoImportParams * self;
- self = instance;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- return instance;
-#line 4262 "Photo.c"
-}
-
-
-void
-photo_import_params_unref (gpointer instance)
-{
- PhotoImportParams * self;
- self = instance;
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_IMPORT_PARAMS_GET_CLASS (self)->finalize (self);
-#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4277 "Photo.c"
- }
-}
-
-
-PhotoTransformationState*
-photo_transformation_state_construct (GType object_type)
-{
- PhotoTransformationState * self = NULL;
-#line 72 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoTransformationState*) g_object_new (object_type, NULL);
-#line 72 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 4290 "Photo.c"
-}
-
-
-gboolean
-photo_transformation_state_is_broken (PhotoTransformationState* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_TRANSFORMATION_STATE (self), FALSE);
-#line 76 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->is_broke;
-#line 76 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 76 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4307 "Photo.c"
-}
-
-
-static void
-photo_transformation_state_real_broken (PhotoTransformationState* self)
-{
-#line 69 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->is_broke = TRUE;
-#line 4316 "Photo.c"
-}
-
-
-static void
-photo_transformation_state_class_init (PhotoTransformationStateClass * klass)
-{
-#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_transformation_state_parent_class = g_type_class_peek_parent (klass);
-#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_class_add_private (klass, sizeof (PhotoTransformationStatePrivate));
-#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoTransformationStateClass *) klass)->broken = photo_transformation_state_real_broken;
-#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (klass)->finalize = photo_transformation_state_finalize;
-#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_transformation_state_signals[PHOTO_TRANSFORMATION_STATE_BROKEN_SIGNAL] = g_signal_new ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoTransformationStateClass, broken), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 4333 "Photo.c"
-}
-
-
-static void
-photo_transformation_state_instance_init (PhotoTransformationState * self)
-{
-#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv = PHOTO_TRANSFORMATION_STATE_GET_PRIVATE (self);
-#line 64 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->is_broke = FALSE;
-#line 4344 "Photo.c"
-}
-
-
-static void
-photo_transformation_state_finalize (GObject * obj)
-{
- PhotoTransformationState * self;
-#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState);
-#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (photo_transformation_state_parent_class)->finalize (obj);
-#line 4356 "Photo.c"
-}
-
-
-GType
-photo_transformation_state_get_type (void)
-{
- static volatile gsize photo_transformation_state_type_id__volatile = 0;
- if (g_once_init_enter (&photo_transformation_state_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoTransformationStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_transformation_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoTransformationState), 0, (GInstanceInitFunc) photo_transformation_state_instance_init, NULL };
- GType photo_transformation_state_type_id;
- photo_transformation_state_type_id = g_type_register_static (G_TYPE_OBJECT, "PhotoTransformationState", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_transformation_state_type_id__volatile, photo_transformation_state_type_id);
- }
- return photo_transformation_state_type_id__volatile;
-}
-
-
-gboolean
-rating_can_increase (Rating self)
-{
- gboolean result = FALSE;
-#line 90 "/home/jens/Source/shotwell/src/Photo.vala"
- result = self < RATING_FIVE;
-#line 90 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4382 "Photo.c"
-}
-
-
-gboolean
-rating_can_decrease (Rating self)
-{
- gboolean result = FALSE;
-#line 94 "/home/jens/Source/shotwell/src/Photo.vala"
- result = self > RATING_REJECTED;
-#line 94 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4394 "Photo.c"
-}
-
-
-gboolean
-rating_is_valid (Rating self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
- if (self >= RATING_REJECTED) {
-#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self <= RATING_FIVE;
-#line 4407 "Photo.c"
- } else {
-#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = FALSE;
-#line 4411 "Photo.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4417 "Photo.c"
-}
-
-
-Rating
-rating_increase (Rating self)
-{
- Rating result = 0;
- Rating _tmp0_ = 0;
-#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
- if (rating_can_increase (self)) {
-#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self + 1;
-#line 4430 "Photo.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self;
-#line 4434 "Photo.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4440 "Photo.c"
-}
-
-
-Rating
-rating_decrease (Rating self)
-{
- Rating result = 0;
- Rating _tmp0_ = 0;
-#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
- if (rating_can_decrease (self)) {
-#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self - 1;
-#line 4453 "Photo.c"
- } else {
-#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self;
-#line 4457 "Photo.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4463 "Photo.c"
-}
-
-
-gint
-rating_serialize (Rating self)
-{
- gint result = 0;
-#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (self) {
-#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
- case RATING_REJECTED:
-#line 4475 "Photo.c"
- {
-#line 112 "/home/jens/Source/shotwell/src/Photo.vala"
- result = -1;
-#line 112 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4481 "Photo.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
- case RATING_UNRATED:
-#line 4485 "Photo.c"
- {
-#line 114 "/home/jens/Source/shotwell/src/Photo.vala"
- result = 0;
-#line 114 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4491 "Photo.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
- case RATING_ONE:
-#line 4495 "Photo.c"
- {
-#line 116 "/home/jens/Source/shotwell/src/Photo.vala"
- result = 1;
-#line 116 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4501 "Photo.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
- case RATING_TWO:
-#line 4505 "Photo.c"
- {
-#line 118 "/home/jens/Source/shotwell/src/Photo.vala"
- result = 2;
-#line 118 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4511 "Photo.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
- case RATING_THREE:
-#line 4515 "Photo.c"
- {
-#line 120 "/home/jens/Source/shotwell/src/Photo.vala"
- result = 3;
-#line 120 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4521 "Photo.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
- case RATING_FOUR:
-#line 4525 "Photo.c"
- {
-#line 122 "/home/jens/Source/shotwell/src/Photo.vala"
- result = 4;
-#line 122 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4531 "Photo.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
- case RATING_FIVE:
-#line 4535 "Photo.c"
- {
-#line 124 "/home/jens/Source/shotwell/src/Photo.vala"
- result = 5;
-#line 124 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4541 "Photo.c"
- }
- default:
- {
-#line 126 "/home/jens/Source/shotwell/src/Photo.vala"
- result = 0;
-#line 126 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4549 "Photo.c"
- }
- }
-}
-
-
-Rating
-rating_unserialize (gint value)
-{
- Rating result = 0;
-#line 131 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value > ((gint) RATING_FIVE)) {
-#line 132 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_FIVE;
-#line 132 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4565 "Photo.c"
- } else {
-#line 133 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value < ((gint) RATING_REJECTED)) {
-#line 134 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_REJECTED;
-#line 134 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4573 "Photo.c"
- }
- }
-#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (value) {
-#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
- case -1:
-#line 4580 "Photo.c"
- {
-#line 138 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_REJECTED;
-#line 138 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4586 "Photo.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
- case 0:
-#line 4590 "Photo.c"
- {
-#line 140 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_UNRATED;
-#line 140 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4596 "Photo.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
- case 1:
-#line 4600 "Photo.c"
- {
-#line 142 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_ONE;
-#line 142 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4606 "Photo.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
- case 2:
-#line 4610 "Photo.c"
- {
-#line 144 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_TWO;
-#line 144 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4616 "Photo.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
- case 3:
-#line 4620 "Photo.c"
- {
-#line 146 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_THREE;
-#line 146 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4626 "Photo.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
- case 4:
-#line 4630 "Photo.c"
- {
-#line 148 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_FOUR;
-#line 148 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4636 "Photo.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
- case 5:
-#line 4640 "Photo.c"
- {
-#line 150 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_FIVE;
-#line 150 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4646 "Photo.c"
- }
- default:
- {
-#line 152 "/home/jens/Source/shotwell/src/Photo.vala"
- result = RATING_UNRATED;
-#line 152 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4654 "Photo.c"
- }
- }
-}
-
-
-GType
-rating_get_type (void)
-{
- static volatile gsize rating_type_id__volatile = 0;
- if (g_once_init_enter (&rating_type_id__volatile)) {
- static const GEnumValue values[] = {{RATING_REJECTED, "RATING_REJECTED", "rejected"}, {RATING_UNRATED, "RATING_UNRATED", "unrated"}, {RATING_ONE, "RATING_ONE", "one"}, {RATING_TWO, "RATING_TWO", "two"}, {RATING_THREE, "RATING_THREE", "three"}, {RATING_FOUR, "RATING_FOUR", "four"}, {RATING_FIVE, "RATING_FIVE", "five"}, {0, NULL, NULL}};
- GType rating_type_id;
- rating_type_id = g_enum_register_static ("Rating", values);
- g_once_init_leave (&rating_type_id__volatile, rating_type_id);
- }
- return rating_type_id__volatile;
-}
-
-
-gboolean
-photo_exception_prohibits (PhotoException self,
- PhotoException exception)
-{
- gboolean result = FALSE;
-#line 228 "/home/jens/Source/shotwell/src/Photo.vala"
- result = (self & exception) != 0;
-#line 228 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4683 "Photo.c"
-}
-
-
-gboolean
-photo_exception_allows (PhotoException self,
- PhotoException exception)
-{
- gboolean result = FALSE;
-#line 232 "/home/jens/Source/shotwell/src/Photo.vala"
- result = (self & exception) == 0;
-#line 232 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 4696 "Photo.c"
-}
-
-
-GType
-photo_exception_get_type (void)
-{
- static volatile gsize photo_exception_type_id__volatile = 0;
- if (g_once_init_enter (&photo_exception_type_id__volatile)) {
- static const GEnumValue values[] = {{PHOTO_EXCEPTION_NONE, "PHOTO_EXCEPTION_NONE", "none"}, {PHOTO_EXCEPTION_ORIENTATION, "PHOTO_EXCEPTION_ORIENTATION", "orientation"}, {PHOTO_EXCEPTION_CROP, "PHOTO_EXCEPTION_CROP", "crop"}, {PHOTO_EXCEPTION_REDEYE, "PHOTO_EXCEPTION_REDEYE", "redeye"}, {PHOTO_EXCEPTION_ADJUST, "PHOTO_EXCEPTION_ADJUST", "adjust"}, {PHOTO_EXCEPTION_STRAIGHTEN, "PHOTO_EXCEPTION_STRAIGHTEN", "straighten"}, {PHOTO_EXCEPTION_ALL, "PHOTO_EXCEPTION_ALL", "all"}, {0, NULL, NULL}};
- GType photo_exception_type_id;
- photo_exception_type_id = g_enum_register_static ("PhotoException", values);
- g_once_init_leave (&photo_exception_type_id__volatile, photo_exception_type_id);
- }
- return photo_exception_type_id__volatile;
-}
-
-
-static gpointer
-_photo_row_ref0 (gpointer self)
-{
-#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? photo_row_ref (self) : NULL;
-#line 4719 "Photo.c"
-}
-
-
-static gpointer
-_backing_photo_row_ref0 (gpointer self)
-{
-#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? backing_photo_row_ref (self) : NULL;
-#line 4728 "Photo.c"
-}
-
-
-Photo*
-photo_construct (GType object_type,
- PhotoRow* row)
-{
- Photo * self = NULL;
- PhotoRow* _tmp0_;
- PhotoRow* _tmp1_;
- PhotoRow* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- PhotoRow* _tmp5_;
- PhotoRow* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- PhotoBackingReaders* _tmp9_;
- BackingPhotoRow* _tmp10_;
- PhotoFileFormat _tmp11_;
- BackingPhotoRow* _tmp12_;
- const gchar* _tmp13_;
- PhotoFileReader* _tmp14_;
- gchar* basename = NULL;
- BackingPhotoRow* _tmp15_;
- const gchar* _tmp16_;
- gchar* _tmp17_;
- const gchar* _tmp18_;
- const gchar* _tmp21_;
- BackingPhotoID _tmp25_;
- gint64 _tmp26_;
- BackingPhotoRow* _tmp41_;
- PhotoFileFormat _tmp42_;
- gboolean _tmp57_ = FALSE;
- BackingPhotoRow* _tmp58_;
- PhotoFileFormat _tmp59_;
- PhotoBackingReaders* _tmp71_;
- PhotoFileReader* _tmp72_;
- PhotoRow* _tmp88_;
- time_t _tmp89_;
- GError * _inner_error_ = NULL;
-#line 399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_ROW (row), NULL);
-#line 399 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (Photo*) photo_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _photo_row_ref0 (row);
-#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (self->row);
-#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
- self->row = _tmp0_;
-#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->row;
-#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->title;
-#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = media_source_prep_title (_tmp3_);
-#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp1_->title);
-#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_->title = _tmp4_;
-#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->comment;
-#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = media_source_prep_comment (_tmp7_);
-#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp5_->comment);
-#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_->comment = _tmp8_;
-#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->priv->readers;
-#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = row->master;
-#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->file_format;
-#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = row->master;
-#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->filepath;
-#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = photo_file_format_create_reader (_tmp11_, _tmp13_);
-#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp9_->master);
-#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_->master = _tmp14_;
-#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = row->master;
-#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_->filepath;
-#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = string_sliced_at_last_char (_tmp16_, (gunichar) G_DIR_SEPARATOR, 0);
-#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
- basename = _tmp17_;
-#line 412 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = basename;
-#line 412 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp18_ != NULL) {
-#line 4832 "Photo.c"
- const gchar* _tmp19_;
- gchar* _tmp20_;
-#line 413 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = basename;
-#line 413 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = string_sliced_at (_tmp19_, 1);
-#line 413 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->priv->file_title);
-#line 413 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->file_title = _tmp20_;
-#line 4843 "Photo.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = self->priv->file_title;
-#line 415 "/home/jens/Source/shotwell/src/Photo.vala"
- if (is_string_empty (_tmp21_)) {
-#line 4849 "Photo.c"
- BackingPhotoRow* _tmp22_;
- const gchar* _tmp23_;
- gchar* _tmp24_;
-#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = row->master;
-#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_->filepath;
-#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = g_strdup (_tmp23_);
-#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->priv->file_title);
-#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->file_title = _tmp24_;
-#line 4863 "Photo.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = row->editable_id;
-#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp25_.id;
-#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp26_ != BACKING_PHOTO_ID_INVALID) {
-#line 4871 "Photo.c"
- BackingPhotoRow* e = NULL;
- BackingPhotoID _tmp27_;
- BackingPhotoRow* _tmp28_;
- BackingPhotoRow* _tmp29_;
-#line 419 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = row->editable_id;
-#line 419 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = photo_get_backing_row (self, &_tmp27_);
-#line 419 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _tmp28_;
-#line 420 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = e;
-#line 420 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp29_ != NULL) {
-#line 4886 "Photo.c"
- BackingPhotoRow* _tmp30_;
- BackingPhotoRow* _tmp31_;
- PhotoBackingReaders* _tmp32_;
- BackingPhotoRow* _tmp33_;
- PhotoFileFormat _tmp34_;
- BackingPhotoRow* _tmp35_;
- const gchar* _tmp36_;
- PhotoFileReader* _tmp37_;
-#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = e;
-#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _backing_photo_row_ref0 (_tmp30_);
-#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->priv->editable);
-#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable = _tmp31_;
-#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = self->priv->readers;
-#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = self->priv->editable;
-#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_->file_format;
-#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = self->priv->editable;
-#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_->filepath;
-#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = photo_file_format_create_reader (_tmp34_, _tmp36_);
-#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp32_->editable);
-#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_->editable = _tmp37_;
-#line 4919 "Photo.c"
- } else {
- {
- PhotoTable* _tmp38_;
- PhotoTable* _tmp39_;
- PhotoRow* _tmp40_;
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = photo_table_get_instance ();
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = _tmp38_;
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = self->row;
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_detach_editable (_tmp39_, _tmp40_, &_inner_error_);
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp39_);
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 4939 "Photo.c"
- goto __catch268_database_error;
- }
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (e);
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (basename);
-#line 425 "/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);
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 4952 "Photo.c"
- }
- }
- goto __finally268;
- __catch268_database_error:
- {
- GError* err = NULL;
-#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 4965 "Photo.c"
- }
- __finally268:
-#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (e);
-#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (basename);
-#line 424 "/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 424 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 4980 "Photo.c"
- }
-#line 432 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_internal_remove_all_transformations (self, FALSE);
-#line 4984 "Photo.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (e);
-#line 4988 "Photo.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = row->master;
-#line 436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = _tmp41_->file_format;
-#line 436 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp42_ == PHOTO_FILE_FORMAT_RAW) {
-#line 4996 "Photo.c"
- GeeHashMap* _tmp43_;
- gint _tmp44_;
- RawDeveloper* _tmp45_;
-#line 438 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = gee_hash_map_new (TYPE_RAW_DEVELOPER, NULL, NULL, TYPE_BACKING_PHOTO_ROW, (GBoxedCopyFunc) backing_photo_row_ref, (GDestroyNotify) backing_photo_row_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 438 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->developments);
-#line 438 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->developments = _tmp43_;
-#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = raw_developer_as_array (&_tmp44_);
-#line 5008 "Photo.c"
- {
- RawDeveloper* d_collection = NULL;
- gint d_collection_length1 = 0;
- gint _d_collection_size_ = 0;
- gint d_it = 0;
-#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection = _tmp45_;
-#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection_length1 = _tmp44_;
-#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
- for (d_it = 0; d_it < _tmp44_; d_it = d_it + 1) {
-#line 5020 "Photo.c"
- RawDeveloper d = 0;
-#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
- d = d_collection[d_it];
-#line 5024 "Photo.c"
- {
- BackingPhotoID id = {0};
- BackingPhotoID* _tmp46_;
- gint _tmp46__length1;
- RawDeveloper _tmp47_;
- BackingPhotoID _tmp48_;
- BackingPhotoID _tmp49_;
- gint64 _tmp50_;
-#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = row->development_ids;
-#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46__length1 = row->development_ids_length1;
-#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = d;
-#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp46_[_tmp47_];
-#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
- id = _tmp48_;
-#line 441 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = id;
-#line 441 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = _tmp49_.id;
-#line 441 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp50_ != BACKING_PHOTO_ID_INVALID) {
-#line 5049 "Photo.c"
- BackingPhotoRow* bpr = NULL;
- BackingPhotoID _tmp51_;
- BackingPhotoRow* _tmp52_;
- BackingPhotoRow* _tmp53_;
-#line 442 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = id;
-#line 442 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = photo_get_backing_row (self, &_tmp51_);
-#line 442 "/home/jens/Source/shotwell/src/Photo.vala"
- bpr = _tmp52_;
-#line 443 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = bpr;
-#line 443 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp53_ != NULL) {
-#line 5064 "Photo.c"
- GeeHashMap* _tmp54_;
- RawDeveloper _tmp55_;
- BackingPhotoRow* _tmp56_;
-#line 444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = self->priv->developments;
-#line 444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = d;
-#line 444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = bpr;
-#line 444 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp55_), _tmp56_);
-#line 5076 "Photo.c"
- }
-#line 441 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bpr);
-#line 5080 "Photo.c"
- }
- }
- }
-#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection = (g_free (d_collection), NULL);
-#line 5086 "Photo.c"
- }
- }
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = row->master;
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = _tmp58_->file_format;
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp59_ == PHOTO_FILE_FORMAT_RAW) {
-#line 5095 "Photo.c"
- GeeHashMap* _tmp60_;
- RawDeveloper _tmp61_;
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = self->priv->developments;
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = row->developer;
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp61_));
-#line 5104 "Photo.c"
- } else {
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = FALSE;
-#line 5108 "Photo.c"
- }
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp57_) {
-#line 5112 "Photo.c"
- BackingPhotoRow* r = NULL;
- GeeHashMap* _tmp62_;
- RawDeveloper _tmp63_;
- gpointer _tmp64_;
- PhotoBackingReaders* _tmp65_;
- BackingPhotoRow* _tmp66_;
- PhotoFileFormat _tmp67_;
- BackingPhotoRow* _tmp68_;
- const gchar* _tmp69_;
- PhotoFileReader* _tmp70_;
-#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = self->priv->developments;
-#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = row->developer;
-#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp63_));
-#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
- r = (BackingPhotoRow*) _tmp64_;
-#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = self->priv->readers;
-#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = r;
-#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = _tmp66_->file_format;
-#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = r;
-#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = _tmp68_->filepath;
-#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = photo_file_format_create_reader (_tmp67_, _tmp69_);
-#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp65_->developer);
-#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_->developer = _tmp70_;
-#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (r);
-#line 5149 "Photo.c"
- }
-#line 456 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = self->priv->readers;
-#line 456 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = _tmp71_->editable;
-#line 456 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp72_ != NULL) {
-#line 5157 "Photo.c"
- BackingPhotoRow* _tmp73_;
- BackingPhotoRow* _tmp74_;
-#line 457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = self->priv->editable;
-#line 457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = _backing_photo_row_ref0 (_tmp73_);
-#line 457 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 457 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = _tmp74_;
-#line 5168 "Photo.c"
- } else {
- BackingPhotoRow* _tmp75_;
- PhotoFileFormat _tmp76_;
-#line 458 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = row->master;
-#line 458 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = _tmp75_->file_format;
-#line 458 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp76_ != PHOTO_FILE_FORMAT_RAW) {
-#line 5178 "Photo.c"
- PhotoRow* _tmp77_;
- BackingPhotoRow* _tmp78_;
- BackingPhotoRow* _tmp79_;
-#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = self->row;
-#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = _tmp77_->master;
-#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = _backing_photo_row_ref0 (_tmp78_);
-#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = _tmp79_;
-#line 5192 "Photo.c"
- } else {
- GeeHashMap* _tmp80_;
- RawDeveloper _tmp81_;
-#line 463 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = self->priv->developments;
-#line 463 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = row->developer;
-#line 463 "/home/jens/Source/shotwell/src/Photo.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp81_))) {
-#line 5202 "Photo.c"
- GeeHashMap* _tmp82_;
- RawDeveloper _tmp83_;
- gpointer _tmp84_;
-#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = self->priv->developments;
-#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = row->developer;
-#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp83_));
-#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = (BackingPhotoRow*) _tmp84_;
-#line 5216 "Photo.c"
- } else {
- PhotoRow* _tmp85_;
- BackingPhotoRow* _tmp86_;
- BackingPhotoRow* _tmp87_;
-#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp85_ = self->row;
-#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp86_ = _tmp85_->master;
-#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp87_ = _backing_photo_row_ref0 (_tmp86_);
-#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = _tmp87_;
-#line 5231 "Photo.c"
- }
- }
- }
-#line 471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp88_ = self->row;
-#line 471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp89_ = _tmp88_->exposure_time;
-#line 471 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->cached_exposure_time = _tmp89_;
-#line 399 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (basename);
-#line 399 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 5245 "Photo.c"
-}
-
-
-void
-photo_init_photo (void)
-{
- GeeLinkedList* _tmp0_;
-#line 475 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_linked_list_new (PHOTO_TYPE_CACHED_PIXBUF, (GBoxedCopyFunc) photo_cached_pixbuf_ref, (GDestroyNotify) photo_cached_pixbuf_unref, NULL, NULL, NULL);
-#line 475 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo_source_pixbuf_cache);
-#line 475 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_source_pixbuf_cache = _tmp0_;
-#line 5259 "Photo.c"
-}
-
-
-void
-photo_terminate_photo (void)
-{
- guint _tmp0_;
-#line 479 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo_source_pixbuf_cache);
-#line 479 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_source_pixbuf_cache = NULL;
-#line 481 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_discard_source_id;
-#line 481 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp0_ != ((guint) 0)) {
-#line 5275 "Photo.c"
- guint _tmp1_;
-#line 482 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_discard_source_id;
-#line 482 "/home/jens/Source/shotwell/src/Photo.vala"
- g_source_remove (_tmp1_);
-#line 483 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_discard_source_id = (guint) 0;
-#line 5283 "Photo.c"
- }
-}
-
-
-static void
-photo_real_notify_editable_replaced (Photo* self,
- GFile* old_file,
- GFile* new_file)
-{
-#line 487 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file));
-#line 487 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file));
-#line 488 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, photo_signals[PHOTO_EDITABLE_REPLACED_SIGNAL], 0, old_file, new_file);
-#line 5299 "Photo.c"
-}
-
-
-void
-photo_notify_editable_replaced (Photo* self,
- GFile* old_file,
- GFile* new_file)
-{
-#line 487 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 487 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->notify_editable_replaced (self, old_file, new_file);
-#line 5312 "Photo.c"
-}
-
-
-static void
-photo_real_notify_raw_development_modified (Photo* self)
-{
-#line 492 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, photo_signals[PHOTO_RAW_DEVELOPMENT_MODIFIED_SIGNAL], 0);
-#line 5321 "Photo.c"
-}
-
-
-void
-photo_notify_raw_development_modified (Photo* self)
-{
-#line 491 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 491 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->notify_raw_development_modified (self);
-#line 5332 "Photo.c"
-}
-
-
-static void
-photo_real_notify_baseline_replaced (Photo* self)
-{
-#line 496 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, photo_signals[PHOTO_BASELINE_REPLACED_SIGNAL], 0);
-#line 5341 "Photo.c"
-}
-
-
-void
-photo_notify_baseline_replaced (Photo* self)
-{
-#line 495 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 495 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->notify_baseline_replaced (self);
-#line 5352 "Photo.c"
-}
-
-
-static void
-photo_real_notify_master_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 499 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 500 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, photo_signals[PHOTO_MASTER_REIMPORTED_SIGNAL], 0, metadata);
-#line 5364 "Photo.c"
-}
-
-
-void
-photo_notify_master_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 499 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 499 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->notify_master_reimported (self, metadata);
-#line 5376 "Photo.c"
-}
-
-
-static void
-photo_real_notify_editable_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 503 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 504 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, photo_signals[PHOTO_EDITABLE_REIMPORTED_SIGNAL], 0, metadata);
-#line 5388 "Photo.c"
-}
-
-
-void
-photo_notify_editable_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 503 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 503 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->notify_editable_reimported (self, metadata);
-#line 5400 "Photo.c"
-}
-
-
-static void
-photo_real_notify_source_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 507 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 508 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, photo_signals[PHOTO_SOURCE_REIMPORTED_SIGNAL], 0, metadata);
-#line 5412 "Photo.c"
-}
-
-
-void
-photo_notify_source_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 507 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 507 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->notify_source_reimported (self, metadata);
-#line 5424 "Photo.c"
-}
-
-
-static void
-photo_real_notify_baseline_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 511 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 512 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, photo_signals[PHOTO_BASELINE_REIMPORTED_SIGNAL], 0, metadata);
-#line 5436 "Photo.c"
-}
-
-
-void
-photo_notify_baseline_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 511 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 511 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->notify_baseline_reimported (self, metadata);
-#line 5448 "Photo.c"
-}
-
-
-static gboolean
-photo_real_internal_delete_backing (DataSource* base,
- GError** error)
-{
- Photo * self;
- gboolean result = FALSE;
- gboolean ret = FALSE;
- GFile* file = NULL;
- GFile* _tmp11_;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 515 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 516 "/home/jens/Source/shotwell/src/Photo.vala"
- ret = TRUE;
-#line 517 "/home/jens/Source/shotwell/src/Photo.vala"
- file = NULL;
-#line 5470 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 5477 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
-#line 519 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 519 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 519 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 5487 "Photo.c"
- PhotoBackingReaders* _tmp3_;
- PhotoFileReader* _tmp4_;
- GFile* _tmp5_;
-#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->editable;
-#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp5_;
-#line 5501 "Photo.c"
- }
- }
- __finally269:
- {
- PhotoBackingReaders* _tmp6_;
-#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->readers;
-#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 5511 "Photo.c"
- }
-#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5515 "Photo.c"
- gboolean _tmp7_ = FALSE;
-#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp7_;
-#line 5523 "Photo.c"
- }
- }
-#line 523 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_detach_editable (self, TRUE, FALSE, TRUE);
-#line 525 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_get_master_file_format (self) == PHOTO_FILE_FORMAT_RAW) {
-#line 5530 "Photo.c"
- gint _tmp8_;
- RawDeveloper* _tmp9_;
-#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = raw_developer_as_array (&_tmp8_);
-#line 5535 "Photo.c"
- {
- RawDeveloper* d_collection = NULL;
- gint d_collection_length1 = 0;
- gint _d_collection_size_ = 0;
- gint d_it = 0;
-#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection = _tmp9_;
-#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection_length1 = _tmp8_;
-#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
- for (d_it = 0; d_it < _tmp8_; d_it = d_it + 1) {
-#line 5547 "Photo.c"
- RawDeveloper d = 0;
-#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
- d = d_collection[d_it];
-#line 5551 "Photo.c"
- {
- RawDeveloper _tmp10_;
-#line 527 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = d;
-#line 527 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_delete_raw_development (self, _tmp10_);
-#line 5558 "Photo.c"
- }
- }
-#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection = (g_free (d_collection), NULL);
-#line 5563 "Photo.c"
- }
- }
-#line 531 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = file;
-#line 531 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_ != NULL) {
-#line 5570 "Photo.c"
- {
- gboolean _tmp12_ = FALSE;
- GFile* _tmp13_;
-#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = file;
-#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = g_file_trash (_tmp13_, NULL, &_inner_error_);
-#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5580 "Photo.c"
- goto __catch270_g_error;
- }
-#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
- ret = _tmp12_;
-#line 5585 "Photo.c"
- }
- goto __finally270;
- __catch270_g_error:
- {
- GError* err = NULL;
- GFile* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GError* _tmp19_;
- const gchar* _tmp20_;
-#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 535 "/home/jens/Source/shotwell/src/Photo.vala"
- ret = FALSE;
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = file;
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = g_file_get_path (_tmp14_);
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_;
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_;
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = err;
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _tmp19_->message;
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- g_message ("Photo.vala:536: Unable to move editable %s for %s to trash: %s", _tmp16_, _tmp18_, _tmp20_);
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp18_);
-#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp16_);
-#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 5626 "Photo.c"
- }
- __finally270:
-#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5631 "Photo.c"
- gboolean _tmp21_ = FALSE;
-#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp21_;
-#line 5639 "Photo.c"
- }
- }
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = DATA_SOURCE_CLASS (photo_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_);
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5646 "Photo.c"
- gboolean _tmp24_ = FALSE;
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp24_;
-#line 5654 "Photo.c"
- }
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp23_) {
-#line 5658 "Photo.c"
- gboolean _tmp25_;
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = ret;
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp25_;
-#line 5664 "Photo.c"
- } else {
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = FALSE;
-#line 5668 "Photo.c"
- }
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp22_;
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 5676 "Photo.c"
-}
-
-
-static BackingPhotoRow*
-photo_get_backing_row (Photo* self,
- BackingPhotoID* id)
-{
- BackingPhotoRow* result = NULL;
- BackingPhotoID _tmp0_;
- gint64 _tmp1_;
- BackingPhotoRow* backing_row = NULL;
- BackingPhotoRow* _tmp13_;
- GError * _inner_error_ = NULL;
-#line 547 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 547 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 548 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = *id;
-#line 548 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_.id;
-#line 548 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == BACKING_PHOTO_ID_INVALID) {
-#line 549 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 549 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 5704 "Photo.c"
- }
-#line 551 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_row = NULL;
-#line 5708 "Photo.c"
- {
- BackingPhotoRow* _tmp2_ = NULL;
- BackingPhotoTable* _tmp3_;
- BackingPhotoTable* _tmp4_;
- BackingPhotoID _tmp5_;
- BackingPhotoRow* _tmp6_;
- BackingPhotoRow* _tmp7_;
- BackingPhotoRow* _tmp8_;
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = backing_photo_table_get_instance ();
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = *id;
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = backing_photo_table_fetch (_tmp4_, &_tmp5_, &_inner_error_);
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp4_);
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp7_;
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5735 "Photo.c"
- goto __catch271_database_error;
- }
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing_row);
-#line 553 "/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);
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 5746 "Photo.c"
- }
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp2_;
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = NULL;
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing_row);
-#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_row = _tmp8_;
-#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp2_);
-#line 5758 "Photo.c"
- }
- goto __finally271;
- __catch271_database_error:
- {
- GError* err = NULL;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GError* _tmp11_;
- const gchar* _tmp12_;
-#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_;
-#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = err;
-#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->message;
-#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:555: Unable to fetch backing state for %s: %s", _tmp10_, _tmp12_);
-#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp10_);
-#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 5786 "Photo.c"
- }
- __finally271:
-#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing_row);
-#line 552 "/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 552 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 5799 "Photo.c"
- }
-#line 558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = backing_row;
-#line 558 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp13_ == NULL) {
-#line 5805 "Photo.c"
- {
- BackingPhotoTable* _tmp14_;
- BackingPhotoTable* _tmp15_;
- BackingPhotoID _tmp16_;
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = backing_photo_table_get_instance ();
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = *id;
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_remove (_tmp15_, &_tmp16_, &_inner_error_);
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp15_);
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5824 "Photo.c"
- goto __catch272_database_error;
- }
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing_row);
-#line 560 "/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);
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 5835 "Photo.c"
- }
- }
- goto __finally272;
- __catch272_database_error:
- {
- GError* err = NULL;
-#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 5848 "Photo.c"
- }
- __finally272:
-#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing_row);
-#line 559 "/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 559 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 5861 "Photo.c"
- }
-#line 564 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 564 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing_row);
-#line 564 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 5869 "Photo.c"
- }
-#line 567 "/home/jens/Source/shotwell/src/Photo.vala"
- result = backing_row;
-#line 567 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 5875 "Photo.c"
-}
-
-
-gboolean
-photo_is_raw_developer_complete (Photo* self,
- RawDeveloper d)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 572 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 5887 "Photo.c"
- {
- GeeHashMap* _tmp0_;
- gboolean _tmp9_ = FALSE;
-#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->developments;
-#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_developments);
-#line 5895 "Photo.c"
- {
- gboolean _tmp1_ = FALSE;
- GeeHashMap* _tmp2_;
-#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->developments;
-#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d))) {
-#line 5903 "Photo.c"
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
- BackingPhotoRow* _tmp5_;
- const gchar* _tmp6_;
-#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->developments;
-#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d));
-#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = (BackingPhotoRow*) _tmp4_;
-#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_->filepath;
-#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = g_file_test (_tmp6_, G_FILE_TEST_EXISTS);
-#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp5_);
-#line 5920 "Photo.c"
- } else {
-#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 5924 "Photo.c"
- }
-#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 5928 "Photo.c"
- {
- GeeHashMap* _tmp7_;
-#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->priv->developments;
-#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 5935 "Photo.c"
- }
-#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 5939 "Photo.c"
- }
- __finally273:
- {
- GeeHashMap* _tmp8_;
-#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->priv->developments;
-#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 5948 "Photo.c"
- }
-#line 573 "/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 573 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp9_;
-#line 5956 "Photo.c"
- }
-}
-
-
-gboolean
-photo_is_raw_developer_available (Photo* self,
- RawDeveloper d)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 580 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 5969 "Photo.c"
- {
- GeeHashMap* _tmp0_;
-#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->developments;
-#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_developments);
-#line 5976 "Photo.c"
- {
- GeeHashMap* _tmp1_;
-#line 582 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->developments;
-#line 582 "/home/jens/Source/shotwell/src/Photo.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d))) {
-#line 583 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 5985 "Photo.c"
- {
- GeeHashMap* _tmp2_;
-#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->developments;
-#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 5992 "Photo.c"
- }
-#line 583 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 5996 "Photo.c"
- }
- }
- __finally274:
- {
- GeeHashMap* _tmp3_;
-#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->developments;
-#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 6006 "Photo.c"
- }
-#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6010 "Photo.c"
- gboolean _tmp4_ = FALSE;
-#line 581 "/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 581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp4_;
-#line 6018 "Photo.c"
- }
- }
-#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (d) {
-#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
- case RAW_DEVELOPER_SHOTWELL:
-#line 6025 "Photo.c"
- {
-#line 588 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 588 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 6031 "Photo.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
- case RAW_DEVELOPER_CAMERA:
-#line 6035 "Photo.c"
- {
-#line 591 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 591 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 6041 "Photo.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
- case RAW_DEVELOPER_EMBEDDED:
-#line 6045 "Photo.c"
- {
- {
- PhotoMetadata* meta = NULL;
- PhotoMetadata* _tmp5_;
- guint num_previews = 0U;
- PhotoMetadata* _tmp6_;
- guint _tmp7_;
-#line 595 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo_get_master_metadata (self, &_inner_error_);
-#line 595 "/home/jens/Source/shotwell/src/Photo.vala"
- meta = _tmp5_;
-#line 595 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6059 "Photo.c"
- goto __catch275_g_error;
- }
-#line 596 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = meta;
-#line 596 "/home/jens/Source/shotwell/src/Photo.vala"
- num_previews = photo_metadata_get_preview_count (_tmp6_);
-#line 598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = num_previews;
-#line 598 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_ > ((guint) 0)) {
-#line 6070 "Photo.c"
- PhotoPreview* prev = NULL;
- PhotoMetadata* _tmp8_;
- guint _tmp9_;
- PhotoPreview* _tmp10_;
- PhotoPreview* _tmp11_;
- Dimensions dims = {0};
- PhotoPreview* _tmp12_;
- Dimensions _tmp13_ = {0};
- gint _tmp14_ = 0;
- Dimensions _tmp15_;
- gint _tmp16_;
- Dimensions _tmp17_;
- gint _tmp18_;
- gint preview_major_axis = 0;
- gint _tmp23_;
-#line 599 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = meta;
-#line 599 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = num_previews;
-#line 599 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = photo_metadata_get_preview (_tmp8_, _tmp9_ - 1);
-#line 599 "/home/jens/Source/shotwell/src/Photo.vala"
- prev = _tmp10_;
-#line 602 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = prev;
-#line 602 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_ == NULL) {
-#line 603 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 603 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 603 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 603 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 6106 "Photo.c"
- }
-#line 605 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = prev;
-#line 605 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_preview_get_pixel_dimensions (_tmp12_, &_tmp13_);
-#line 605 "/home/jens/Source/shotwell/src/Photo.vala"
- dims = _tmp13_;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = dims;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_.width;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = dims;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_.height;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp16_ > _tmp18_) {
-#line 6124 "Photo.c"
- Dimensions _tmp19_;
- gint _tmp20_;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = dims;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _tmp19_.width;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp20_;
-#line 6133 "Photo.c"
- } else {
- Dimensions _tmp21_;
- gint _tmp22_;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = dims;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp21_.height;
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp22_;
-#line 6143 "Photo.c"
- }
-#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
- preview_major_axis = _tmp14_;
-#line 609 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = preview_major_axis;
-#line 609 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp23_ < PHOTO_MIN_EMBEDDED_SIZE) {
-#line 610 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 610 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 610 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 610 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 6159 "Photo.c"
- }
-#line 613 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 613 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 613 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 613 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 6169 "Photo.c"
- }
-#line 617 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 617 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 617 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 6177 "Photo.c"
- }
- goto __finally275;
- __catch275_g_error:
- {
- GError* e = NULL;
- GError* _tmp24_;
- const gchar* _tmp25_;
-#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 619 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = e;
-#line 619 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp24_->message;
-#line 619 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:619: Error accessing embedded preview. Message: %s", _tmp25_);
-#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 6197 "Photo.c"
- }
- __finally275:
-#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6202 "Photo.c"
- gboolean _tmp26_ = FALSE;
-#line 594 "/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 594 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp26_;
-#line 6210 "Photo.c"
- }
-#line 621 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 621 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 6216 "Photo.c"
- }
- default:
- {
-#line 624 "/home/jens/Source/shotwell/src/Photo.vala"
- g_assert_not_reached ();
-#line 6222 "Photo.c"
- }
- }
-}
-
-
-void
-photo_add_backing_photo_for_development (Photo* self,
- RawDeveloper d,
- BackingPhotoRow* bpr,
- gboolean notify,
- GError** error)
-{
- PhotoRow* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 631 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 631 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_BACKING_PHOTO_ROW (bpr));
-#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_import_developed_backing_photo (_tmp0_, d, bpr, &_inner_error_);
-#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6251 "Photo.c"
- }
- {
- GeeHashMap* _tmp1_;
-#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->developments;
-#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_developments);
-#line 6259 "Photo.c"
- {
- GeeHashMap* _tmp2_;
-#line 634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->developments;
-#line 634 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d), bpr);
-#line 6266 "Photo.c"
- }
- __finally276:
- {
- GeeHashMap* _tmp3_;
-#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->developments;
-#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 6275 "Photo.c"
- }
-#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6283 "Photo.c"
- }
- }
-#line 637 "/home/jens/Source/shotwell/src/Photo.vala"
- if (notify) {
-#line 6288 "Photo.c"
- Alteration* _tmp4_;
- Alteration* _tmp5_;
-#line 638 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = alteration_new ("image", "developer");
-#line 638 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 638 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp5_);
-#line 638 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp5_);
-#line 6299 "Photo.c"
- }
-}
-
-
-void
-photo_import_developed_backing_photo (PhotoRow* row,
- RawDeveloper d,
- BackingPhotoRow* bpr,
- GError** error)
-{
- GFile* file = NULL;
- const gchar* _tmp0_;
- GFile* _tmp1_;
- GFileInfo* info = NULL;
- GFile* _tmp2_;
- GFileInfo* _tmp3_;
- GTimeVal timestamp = {0};
- GFileInfo* _tmp4_;
- GTimeVal _tmp5_ = {0};
- PhotoFileInterrogator* interrogator = NULL;
- GFile* _tmp6_;
- PhotoFileInterrogator* _tmp7_;
- PhotoFileInterrogator* _tmp8_;
- DetectedPhotoInformation* detected = NULL;
- PhotoFileInterrogator* _tmp9_;
- DetectedPhotoInformation* _tmp10_;
- gboolean _tmp11_ = FALSE;
- DetectedPhotoInformation* _tmp12_;
- DetectedPhotoInformation* _tmp14_;
- Dimensions _tmp15_;
- GFileInfo* _tmp16_;
- GTimeVal _tmp17_;
- glong _tmp18_;
- Orientation _tmp19_ = 0;
- DetectedPhotoInformation* _tmp20_;
- PhotoMetadata* _tmp21_;
- BackingPhotoTable* _tmp24_;
- BackingPhotoTable* _tmp25_;
- PhotoTable* _tmp26_;
- PhotoTable* _tmp27_;
- BackingPhotoID _tmp28_;
- GError * _inner_error_ = NULL;
-#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO_ROW (row));
-#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_BACKING_PHOTO_ROW (bpr));
-#line 643 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = bpr->filepath;
-#line 643 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = g_file_new_for_path (_tmp0_);
-#line 643 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp1_;
-#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = file;
-#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = g_file_query_info (_tmp2_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
- info = _tmp3_;
-#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6366 "Photo.c"
- }
-#line 646 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = info;
-#line 646 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_info_get_modification_time (_tmp4_, &_tmp5_);
-#line 646 "/home/jens/Source/shotwell/src/Photo.vala"
- timestamp = _tmp5_;
-#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = file;
-#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo_file_interrogator_new (_tmp6_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL);
-#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
- interrogator = _tmp7_;
-#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = interrogator;
-#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_interrogator_interrogate (_tmp8_, &_inner_error_);
-#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6396 "Photo.c"
- }
-#line 652 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = interrogator;
-#line 652 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = photo_file_interrogator_get_detected_photo_information (_tmp9_);
-#line 652 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp10_;
-#line 653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = detected;
-#line 653 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp12_ == NULL) {
-#line 653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = TRUE;
-#line 6410 "Photo.c"
- } else {
- PhotoFileInterrogator* _tmp13_;
-#line 653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = interrogator;
-#line 653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_file_interrogator_get_is_photo_corrupted (_tmp13_);
-#line 6417 "Photo.c"
- }
-#line 653 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_) {
-#line 656 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 656 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 656 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 656 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 656 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6431 "Photo.c"
- }
-#line 659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = detected;
-#line 659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_->image_dim;
-#line 659 "/home/jens/Source/shotwell/src/Photo.vala"
- bpr->dim = _tmp15_;
-#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = info;
-#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
- bpr->filesize = g_file_info_get_size (_tmp16_);
-#line 661 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = timestamp;
-#line 661 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_.tv_sec;
-#line 661 "/home/jens/Source/shotwell/src/Photo.vala"
- bpr->timestamp = (time_t) _tmp18_;
-#line 662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = detected;
-#line 662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_->metadata;
-#line 662 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp21_ != NULL) {
-#line 6455 "Photo.c"
- DetectedPhotoInformation* _tmp22_;
- PhotoMetadata* _tmp23_;
-#line 662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = detected;
-#line 662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_->metadata;
-#line 662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = photo_metadata_get_orientation (_tmp23_);
-#line 6464 "Photo.c"
- } else {
-#line 663 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = ORIENTATION_TOP_LEFT;
-#line 6468 "Photo.c"
- }
-#line 662 "/home/jens/Source/shotwell/src/Photo.vala"
- bpr->original_orientation = _tmp19_;
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = backing_photo_table_get_instance ();
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp24_;
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_add (_tmp25_, bpr, &_inner_error_);
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp25_);
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 666 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6494 "Photo.c"
- }
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = photo_table_get_instance ();
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp26_;
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = bpr->id;
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_update_raw_development (_tmp27_, row, d, &_tmp28_, &_inner_error_);
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp27_);
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 667 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6520 "Photo.c"
- }
-#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 6530 "Photo.c"
-}
-
-
-static void
-photo_develop_photo (Photo* self,
- RawDeveloper d,
- gboolean notify)
-{
- gboolean wrote_img_to_disk = FALSE;
- BackingPhotoRow* bps = NULL;
- GError * _inner_error_ = NULL;
-#line 672 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 673 "/home/jens/Source/shotwell/src/Photo.vala"
- wrote_img_to_disk = FALSE;
-#line 674 "/home/jens/Source/shotwell/src/Photo.vala"
- bps = NULL;
-#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (d) {
-#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
- case RAW_DEVELOPER_SHOTWELL:
-#line 6552 "Photo.c"
- {
- {
- BackingPhotoRow* _tmp0_ = NULL;
- PhotoRow* _tmp1_;
- BackingPhotoRow* _tmp2_;
- const gchar* _tmp3_;
- BackingPhotoRow* _tmp4_;
- BackingPhotoRow* _tmp5_;
- GdkPixbuf* pix = NULL;
- GdkPixbuf* _tmp12_;
- PhotoFileWriter* writer = NULL;
- BackingPhotoRow* _tmp17_;
- const gchar* _tmp18_;
- PhotoFileWriter* _tmp19_;
- PhotoFileWriter* _tmp20_;
- GdkPixbuf* _tmp21_;
- PhotoMetadata* meta = NULL;
- PhotoMetadata* _tmp22_;
- PhotoFileMetadataWriter* mwriter = NULL;
- BackingPhotoRow* _tmp23_;
- const gchar* _tmp24_;
- PhotoFileMetadataWriter* _tmp25_;
- PhotoFileMetadataWriter* _tmp26_;
- PhotoMetadata* _tmp27_;
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->master;
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->filepath;
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = raw_developer_create_backing_row_for_development (d, _tmp3_, NULL, &_inner_error_);
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp4_;
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6589 "Photo.c"
- goto __catch277_g_error;
- }
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp0_;
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
- bps = _tmp5_;
-#line 681 "/home/jens/Source/shotwell/src/Photo.vala"
- pix = NULL;
-#line 6602 "Photo.c"
- {
- PhotoBackingReaders* _tmp6_;
-#line 682 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->readers;
-#line 682 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 6609 "Photo.c"
- {
- GdkPixbuf* _tmp7_ = NULL;
- Scaling _tmp8_ = {0};
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
-#line 687 "/home/jens/Source/shotwell/src/Photo.vala"
- scaling_for_original (&_tmp8_);
-#line 687 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_get_master_pixbuf (self, &_tmp8_, FALSE, &_inner_error_);
-#line 687 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp9_;
-#line 687 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6623 "Photo.c"
- goto __finally278;
- }
-#line 687 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp7_;
-#line 687 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = NULL;
-#line 687 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 687 "/home/jens/Source/shotwell/src/Photo.vala"
- pix = _tmp10_;
-#line 682 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp7_);
-#line 6636 "Photo.c"
- }
- __finally278:
- {
- PhotoBackingReaders* _tmp11_;
-#line 682 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->priv->readers;
-#line 682 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 6645 "Photo.c"
- }
-#line 682 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 682 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 682 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 6653 "Photo.c"
- goto __catch277_g_error;
- }
- }
-#line 690 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = pix;
-#line 690 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp12_ == NULL) {
-#line 691 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:691: Could not get preview pixbuf");
-#line 692 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 692 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 6667 "Photo.c"
- {
- gboolean _tmp13_;
-#line 716 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = wrote_img_to_disk;
-#line 716 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp13_) {
-#line 6674 "Photo.c"
- {
- BackingPhotoRow* _tmp14_;
-#line 719 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = bps;
-#line 719 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_backing_photo_for_development (self, d, _tmp14_, notify, &_inner_error_);
-#line 719 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6683 "Photo.c"
- goto __catch279_g_error;
- }
-#line 721 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 6688 "Photo.c"
- }
- goto __finally279;
- __catch279_g_error:
- {
- GError* e = NULL;
- GError* _tmp15_;
- const gchar* _tmp16_;
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 723 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = e;
-#line 723 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_->message;
-#line 723 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:723: Error adding backing photo as development. Message: %s", _tmp16_);
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 6708 "Photo.c"
- }
- __finally279:
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6713 "Photo.c"
- goto __catch277_g_error;
- }
- }
- }
-#line 692 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 692 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6722 "Photo.c"
- }
-#line 696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = bps;
-#line 696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_->filepath;
-#line 696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = photo_file_format_create_writer (PHOTO_FILE_FORMAT_JFIF, _tmp18_, &_inner_error_);
-#line 696 "/home/jens/Source/shotwell/src/Photo.vala"
- writer = _tmp19_;
-#line 696 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 696 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 696 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 6738 "Photo.c"
- goto __catch277_g_error;
- }
-#line 697 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = writer;
-#line 697 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = pix;
-#line 697 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_writer_write (_tmp20_, _tmp21_, JPEG_QUALITY_HIGH, &_inner_error_);
-#line 697 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 697 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 697 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 697 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 6755 "Photo.c"
- goto __catch277_g_error;
- }
-#line 705 "/home/jens/Source/shotwell/src/Photo.vala"
- wrote_img_to_disk = TRUE;
-#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = photo_get_master_metadata (self, &_inner_error_);
-#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
- meta = _tmp22_;
-#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 6772 "Photo.c"
- goto __catch277_g_error;
- }
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = bps;
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _tmp23_->filepath;
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = photo_file_format_create_metadata_writer (PHOTO_FILE_FORMAT_JFIF, _tmp24_, &_inner_error_);
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- mwriter = _tmp25_;
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 711 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 6793 "Photo.c"
- goto __catch277_g_error;
- }
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = mwriter;
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = meta;
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp26_, _tmp27_, &_inner_error_);
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (mwriter);
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 6814 "Photo.c"
- goto __catch277_g_error;
- }
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (mwriter);
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pix);
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 6827 "Photo.c"
- }
- goto __finally277;
- __catch277_g_error:
- {
- GError* err = NULL;
- GError* _tmp28_;
- const gchar* _tmp29_;
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 714 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = err;
-#line 714 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _tmp28_->message;
-#line 714 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:714: Error developing photo: %s", _tmp29_);
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 6847 "Photo.c"
- }
- __finally277:
- {
- gboolean _tmp30_;
-#line 716 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = wrote_img_to_disk;
-#line 716 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp30_) {
-#line 6856 "Photo.c"
- {
- BackingPhotoRow* _tmp31_;
-#line 719 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = bps;
-#line 719 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_backing_photo_for_development (self, d, _tmp31_, notify, &_inner_error_);
-#line 719 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6865 "Photo.c"
- goto __catch280_g_error;
- }
-#line 721 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 6870 "Photo.c"
- }
- goto __finally280;
- __catch280_g_error:
- {
- GError* e = NULL;
- GError* _tmp32_;
- const gchar* _tmp33_;
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 723 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = e;
-#line 723 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_->message;
-#line 723 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:723: Error adding backing photo as development. Message: %s", _tmp33_);
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 6890 "Photo.c"
- }
- __finally280:
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 717 "/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 717 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6903 "Photo.c"
- }
- }
- }
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 678 "/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 678 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 6917 "Photo.c"
- }
-#line 729 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 6921 "Photo.c"
- }
-#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
- case RAW_DEVELOPER_CAMERA:
-#line 6925 "Photo.c"
- {
-#line 733 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 6929 "Photo.c"
- }
-#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
- case RAW_DEVELOPER_EMBEDDED:
-#line 6933 "Photo.c"
- {
- {
- PhotoMetadata* meta = NULL;
- PhotoMetadata* _tmp34_;
- guint c = 0U;
- PhotoMetadata* _tmp35_;
- guint _tmp36_;
- PhotoPreview* prev = NULL;
- PhotoMetadata* _tmp41_;
- guint _tmp42_;
- PhotoPreview* _tmp43_;
- PhotoPreview* _tmp44_;
- GBytes* pix = NULL;
- PhotoPreview* _tmp49_;
- GBytes* _tmp50_;
- GBytes* _tmp51_;
- BackingPhotoRow* _tmp56_ = NULL;
- PhotoRow* _tmp57_;
- BackingPhotoRow* _tmp58_;
- const gchar* _tmp59_;
- BackingPhotoRow* _tmp60_;
- BackingPhotoRow* _tmp61_;
- gboolean _tmp62_ = FALSE;
- GBytes* _tmp63_;
- PhotoFileMetadataWriter* mwriter = NULL;
- BackingPhotoRow* _tmp83_;
- const gchar* _tmp84_;
- PhotoFileMetadataWriter* _tmp85_;
- PhotoFileMetadataWriter* _tmp86_;
- PhotoMetadata* _tmp87_;
-#line 738 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = photo_get_master_metadata (self, &_inner_error_);
-#line 738 "/home/jens/Source/shotwell/src/Photo.vala"
- meta = _tmp34_;
-#line 738 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6970 "Photo.c"
- goto __catch281_g_error;
- }
-#line 739 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = meta;
-#line 739 "/home/jens/Source/shotwell/src/Photo.vala"
- c = photo_metadata_get_preview_count (_tmp35_);
-#line 740 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = c;
-#line 740 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp36_ <= ((guint) 0)) {
-#line 741 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 6983 "Photo.c"
- {
- gboolean _tmp37_;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = wrote_img_to_disk;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp37_) {
-#line 6990 "Photo.c"
- {
- BackingPhotoRow* _tmp38_;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = bps;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_backing_photo_for_development (self, d, _tmp38_, notify, &_inner_error_);
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6999 "Photo.c"
- goto __catch282_g_error;
- }
-#line 791 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 7004 "Photo.c"
- }
- goto __finally282;
- __catch282_g_error:
- {
- GError* e = NULL;
- GError* _tmp39_;
- const gchar* _tmp40_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = e;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = _tmp39_->message;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp40_);
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7024 "Photo.c"
- }
- __finally282:
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7029 "Photo.c"
- goto __catch281_g_error;
- }
- }
- }
-#line 741 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 741 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7038 "Photo.c"
- }
-#line 742 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = meta;
-#line 742 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = c;
-#line 742 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = photo_metadata_get_preview (_tmp41_, _tmp42_ - 1);
-#line 742 "/home/jens/Source/shotwell/src/Photo.vala"
- prev = _tmp43_;
-#line 743 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = prev;
-#line 743 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp44_ == NULL) {
-#line 744 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:744: Could not get preview from metadata");
-#line 745 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 745 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7058 "Photo.c"
- {
- gboolean _tmp45_;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = wrote_img_to_disk;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp45_) {
-#line 7065 "Photo.c"
- {
- BackingPhotoRow* _tmp46_;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = bps;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_backing_photo_for_development (self, d, _tmp46_, notify, &_inner_error_);
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7074 "Photo.c"
- goto __catch283_g_error;
- }
-#line 791 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 7079 "Photo.c"
- }
- goto __finally283;
- __catch283_g_error:
- {
- GError* e = NULL;
- GError* _tmp47_;
- const gchar* _tmp48_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = e;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp47_->message;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp48_);
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7099 "Photo.c"
- }
- __finally283:
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7104 "Photo.c"
- goto __catch281_g_error;
- }
- }
- }
-#line 745 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 745 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7113 "Photo.c"
- }
-#line 748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = prev;
-#line 748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = photo_preview_flatten (_tmp49_, &_inner_error_);
-#line 748 "/home/jens/Source/shotwell/src/Photo.vala"
- pix = _tmp50_;
-#line 748 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 748 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 748 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7127 "Photo.c"
- goto __catch281_g_error;
- }
-#line 749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = pix;
-#line 749 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp51_ == NULL) {
-#line 750 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:750: Could not get preview pixbuf");
-#line 751 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 751 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 751 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7142 "Photo.c"
- {
- gboolean _tmp52_;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = wrote_img_to_disk;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp52_) {
-#line 7149 "Photo.c"
- {
- BackingPhotoRow* _tmp53_;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = bps;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_backing_photo_for_development (self, d, _tmp53_, notify, &_inner_error_);
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7158 "Photo.c"
- goto __catch284_g_error;
- }
-#line 791 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 7163 "Photo.c"
- }
- goto __finally284;
- __catch284_g_error:
- {
- GError* e = NULL;
- GError* _tmp54_;
- const gchar* _tmp55_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = e;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = _tmp54_->message;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp55_);
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7183 "Photo.c"
- }
- __finally284:
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7188 "Photo.c"
- goto __catch281_g_error;
- }
- }
- }
-#line 751 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 751 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7197 "Photo.c"
- }
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = self->row;
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = _tmp57_->master;
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = _tmp58_->filepath;
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = raw_developer_create_backing_row_for_development (d, _tmp59_, NULL, &_inner_error_);
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = _tmp60_;
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7217 "Photo.c"
- goto __catch281_g_error;
- }
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = _tmp56_;
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = NULL;
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
- bps = _tmp61_;
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = pix;
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = jpeg_is_jpeg_bytes (_tmp63_, &_inner_error_);
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7242 "Photo.c"
- goto __catch281_g_error;
- }
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp62_) {
-#line 7247 "Photo.c"
- GFile* outfile = NULL;
- BackingPhotoRow* _tmp64_;
- const gchar* _tmp65_;
- GFile* _tmp66_;
- GFile* _tmp67_;
- GBytes* _tmp68_;
- gsize _tmp69_;
- guint8* _tmp70_;
-#line 760 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = bps;
-#line 760 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = _tmp64_->filepath;
-#line 760 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = g_file_new_for_path (_tmp65_);
-#line 760 "/home/jens/Source/shotwell/src/Photo.vala"
- outfile = _tmp66_;
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = outfile;
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = pix;
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = g_bytes_get_data (_tmp68_, &_tmp69_);
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_replace_contents (_tmp67_, _tmp70_, (gsize) _tmp69_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, NULL, &_inner_error_);
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (outfile);
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 761 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7284 "Photo.c"
- goto __catch281_g_error;
- }
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (outfile);
-#line 7289 "Photo.c"
- } else {
- GdkPixbuf* pixbuf = NULL;
- PhotoPreview* _tmp71_;
- GdkPixbuf* _tmp72_;
- GdkPixbuf* _tmp73_;
- PhotoFileWriter* writer = NULL;
- BackingPhotoRow* _tmp78_;
- const gchar* _tmp79_;
- PhotoFileWriter* _tmp80_;
- PhotoFileWriter* _tmp81_;
- GdkPixbuf* _tmp82_;
-#line 764 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = prev;
-#line 764 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = photo_preview_get_pixbuf (_tmp71_, &_inner_error_);
-#line 764 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp72_;
-#line 764 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 764 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 764 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 764 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 764 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7317 "Photo.c"
- goto __catch281_g_error;
- }
-#line 765 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = pixbuf;
-#line 765 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp73_ == NULL) {
-#line 766 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:766: Could not get preview pixbuf");
-#line 767 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 767 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 767 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 767 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 767 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7336 "Photo.c"
- {
- gboolean _tmp74_;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = wrote_img_to_disk;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp74_) {
-#line 7343 "Photo.c"
- {
- BackingPhotoRow* _tmp75_;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = bps;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_backing_photo_for_development (self, d, _tmp75_, notify, &_inner_error_);
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7352 "Photo.c"
- goto __catch285_g_error;
- }
-#line 791 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 7357 "Photo.c"
- }
- goto __finally285;
- __catch285_g_error:
- {
- GError* e = NULL;
- GError* _tmp76_;
- const gchar* _tmp77_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = e;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = _tmp76_->message;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp77_);
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7377 "Photo.c"
- }
- __finally285:
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7382 "Photo.c"
- goto __catch281_g_error;
- }
- }
- }
-#line 767 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 767 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7391 "Photo.c"
- }
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = bps;
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = _tmp78_->filepath;
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = photo_file_format_create_writer (PHOTO_FILE_FORMAT_JFIF, _tmp79_, &_inner_error_);
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- writer = _tmp80_;
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 770 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7413 "Photo.c"
- goto __catch281_g_error;
- }
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = writer;
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = pixbuf;
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_writer_write (_tmp81_, _tmp82_, JPEG_QUALITY_HIGH, &_inner_error_);
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7436 "Photo.c"
- goto __catch281_g_error;
- }
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 7443 "Photo.c"
- }
-#line 777 "/home/jens/Source/shotwell/src/Photo.vala"
- wrote_img_to_disk = TRUE;
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = bps;
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_ = _tmp83_->filepath;
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp85_ = photo_file_format_create_metadata_writer (PHOTO_FILE_FORMAT_JFIF, _tmp84_, &_inner_error_);
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- mwriter = _tmp85_;
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7465 "Photo.c"
- goto __catch281_g_error;
- }
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp86_ = mwriter;
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp87_ = meta;
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp86_, _tmp87_, &_inner_error_);
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (mwriter);
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 781 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7486 "Photo.c"
- goto __catch281_g_error;
- }
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (mwriter);
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp56_);
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_bytes_unref0 (pix);
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_preview_unref0 (prev);
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (meta);
-#line 7499 "Photo.c"
- }
- goto __finally281;
- __catch281_g_error:
- {
- GError* e = NULL;
- GError* _tmp88_;
- const gchar* _tmp89_;
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 783 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp88_ = e;
-#line 783 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp89_ = _tmp88_->message;
-#line 783 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:783: Error accessing embedded preview. Message: %s", _tmp89_);
-#line 784 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7519 "Photo.c"
- {
- gboolean _tmp90_;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp90_ = wrote_img_to_disk;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp90_) {
-#line 7526 "Photo.c"
- {
- BackingPhotoRow* _tmp91_;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp91_ = bps;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_backing_photo_for_development (self, d, _tmp91_, notify, &_inner_error_);
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7535 "Photo.c"
- goto __catch286_g_error;
- }
-#line 791 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 7540 "Photo.c"
- }
- goto __finally286;
- __catch286_g_error:
- {
- GError* e = NULL;
- GError* _tmp92_;
- const gchar* _tmp93_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp92_ = e;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp93_ = _tmp92_->message;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp93_);
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7560 "Photo.c"
- }
- __finally286:
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 7567 "Photo.c"
- }
- }
- }
-#line 784 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 784 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7575 "Photo.c"
- }
- __finally281:
- {
- gboolean _tmp94_;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp94_ = wrote_img_to_disk;
-#line 786 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp94_) {
-#line 7584 "Photo.c"
- {
- BackingPhotoRow* _tmp95_;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp95_ = bps;
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_backing_photo_for_development (self, d, _tmp95_, notify, &_inner_error_);
-#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7593 "Photo.c"
- goto __catch287_g_error;
- }
-#line 791 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 7598 "Photo.c"
- }
- goto __finally287;
- __catch287_g_error:
- {
- GError* e = NULL;
- GError* _tmp96_;
- const gchar* _tmp97_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp96_ = e;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp97_ = _tmp96_->message;
-#line 793 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp97_);
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7618 "Photo.c"
- }
- __finally287:
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 787 "/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 787 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 787 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7631 "Photo.c"
- }
- }
- }
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 736 "/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 736 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7645 "Photo.c"
- }
-#line 798 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 7649 "Photo.c"
- }
- default:
- {
-#line 801 "/home/jens/Source/shotwell/src/Photo.vala"
- g_assert_not_reached ();
-#line 7655 "Photo.c"
- }
- }
-#line 672 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bps);
-#line 7660 "Photo.c"
-}
-
-
-void
-photo_set_default_raw_developer (Photo* self,
- RawDeveloper d)
-{
- GError * _inner_error_ = NULL;
-#line 806 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 7671 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 807 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 7678 "Photo.c"
- {
- PhotoRow* _tmp1_;
-#line 808 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 808 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_->developer = d;
-#line 7685 "Photo.c"
- }
- __finally288:
- {
- PhotoRow* _tmp2_;
-#line 807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->row;
-#line 807 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 7694 "Photo.c"
- }
-#line 807 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 807 "/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 807 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 807 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7704 "Photo.c"
- }
- }
-}
-
-
-void
-photo_set_raw_developer (Photo* self,
- RawDeveloper d,
- gboolean notify)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 813 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 814 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_get_master_file_format (self) != PHOTO_FILE_FORMAT_RAW) {
-#line 815 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7724 "Photo.c"
- }
-#line 820 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_raw_developer_available (self, RAW_DEVELOPER_CAMERA)) {
-#line 820 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = d == RAW_DEVELOPER_EMBEDDED;
-#line 7730 "Photo.c"
- } else {
-#line 820 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = FALSE;
-#line 7734 "Photo.c"
- }
-#line 820 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp0_) {
-#line 821 "/home/jens/Source/shotwell/src/Photo.vala"
- d = RAW_DEVELOPER_CAMERA;
-#line 7740 "Photo.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_is_raw_developer_available (self, RAW_DEVELOPER_EMBEDDED)) {
-#line 825 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = d != RAW_DEVELOPER_CAMERA;
-#line 7746 "Photo.c"
- } else {
-#line 825 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 7750 "Photo.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_) {
-#line 826 "/home/jens/Source/shotwell/src/Photo.vala"
- d = RAW_DEVELOPER_SHOTWELL;
-#line 7756 "Photo.c"
- }
- {
- GeeHashMap* _tmp2_;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->developments;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_developments);
-#line 7764 "Photo.c"
- {
- RawDeveloper stale_raw_developer = 0;
- PhotoRow* _tmp3_;
- RawDeveloper _tmp4_;
- GeeHashMap* _tmp5_;
- PhotoRow* _tmp7_;
- GeeHashMap* _tmp8_;
- gpointer _tmp9_;
- PhotoBackingReaders* _tmp10_;
- BackingPhotoRow* _tmp11_;
- PhotoFileFormat _tmp12_;
- BackingPhotoRow* _tmp13_;
- const gchar* _tmp14_;
- PhotoFileReader* _tmp15_;
- BackingPhotoRow* _tmp20_;
- Orientation _tmp21_;
- gboolean _tmp30_ = FALSE;
- RawDeveloper _tmp31_;
-#line 829 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 829 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->developer;
-#line 829 "/home/jens/Source/shotwell/src/Photo.vala"
- stale_raw_developer = _tmp4_;
-#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_is_raw_developer_complete (self, d)) {
-#line 833 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_develop_photo (self, d, notify);
-#line 7793 "Photo.c"
- }
-#line 835 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->priv->developments;
-#line 835 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d))) {
-#line 7799 "Photo.c"
- {
- GeeHashMap* _tmp6_;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->developments;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 7806 "Photo.c"
- }
-#line 836 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7810 "Photo.c"
- }
-#line 839 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_revert_to_master (self, FALSE);
-#line 842 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->row;
-#line 842 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_->developer = d;
-#line 843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->priv->developments;
-#line 843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d));
-#line 843 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 843 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = (BackingPhotoRow*) _tmp9_;
-#line 844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->priv->readers;
-#line 844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->backing_photo_row;
-#line 844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->file_format;
-#line 844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->backing_photo_row;
-#line 844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_->filepath;
-#line 844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = photo_file_format_create_reader (_tmp12_, _tmp14_);
-#line 844 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp10_->developer);
-#line 844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_->developer = _tmp15_;
-#line 7842 "Photo.c"
- {
- GdkPixbuf* _tmp16_;
- GdkPixbuf* _tmp17_;
-#line 847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = photo_get_prefetched_copy (self, &_inner_error_);
-#line 847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_;
-#line 847 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp17_);
-#line 847 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7854 "Photo.c"
- goto __catch290_g_error;
- }
- }
- goto __finally290;
- __catch290_g_error:
- {
- GError* e = NULL;
-#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 850 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7868 "Photo.c"
- {
- GeeHashMap* _tmp18_;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = self->priv->developments;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 7875 "Photo.c"
- }
-#line 850 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7879 "Photo.c"
- }
- __finally290:
-#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7884 "Photo.c"
- {
- GeeHashMap* _tmp19_;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = self->priv->developments;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 7891 "Photo.c"
- }
-#line 846 "/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);
-#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7899 "Photo.c"
- }
-#line 853 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = self->backing_photo_row;
-#line 853 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_->original_orientation;
-#line 853 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_orientation (self, _tmp21_);
-#line 7907 "Photo.c"
- {
- PhotoTable* _tmp22_;
- PhotoTable* _tmp23_;
- PhotoRow* _tmp24_;
- BackingPhotoRow* _tmp25_;
- BackingPhotoID _tmp26_;
-#line 856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = photo_table_get_instance ();
-#line 856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = self->row;
-#line 856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = self->backing_photo_row;
-#line 856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp25_->id;
-#line 856 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_update_raw_development (_tmp23_, _tmp24_, d, &_tmp26_, &_inner_error_);
-#line 856 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp23_);
-#line 856 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7930 "Photo.c"
- goto __catch291_g_error;
- }
- }
- goto __finally291;
- __catch291_g_error:
- {
- GError* e = NULL;
- GError* _tmp27_;
- const gchar* _tmp28_;
-#line 855 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 855 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 858 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = e;
-#line 858 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp27_->message;
-#line 858 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:858: Error updating database: %s", _tmp28_);
-#line 855 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 7952 "Photo.c"
- }
- __finally291:
-#line 855 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7957 "Photo.c"
- {
- GeeHashMap* _tmp29_;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = self->priv->developments;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 7964 "Photo.c"
- }
-#line 855 "/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);
-#line 855 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 855 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 7972 "Photo.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = stale_raw_developer;
-#line 865 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp31_ != RAW_DEVELOPER_CAMERA) {
-#line 7978 "Photo.c"
- RawDeveloper _tmp32_;
- PhotoRow* _tmp33_;
- RawDeveloper _tmp34_;
-#line 866 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = stale_raw_developer;
-#line 866 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = self->row;
-#line 866 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_->developer;
-#line 866 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp32_ != _tmp34_;
-#line 7990 "Photo.c"
- } else {
-#line 865 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = FALSE;
-#line 7994 "Photo.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp30_) {
-#line 7998 "Photo.c"
- RawDeveloper _tmp35_;
-#line 869 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = stale_raw_developer;
-#line 869 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_delete_raw_development (self, _tmp35_);
-#line 8004 "Photo.c"
- }
- }
- __finally289:
- {
- GeeHashMap* _tmp36_;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = self->priv->developments;
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 8014 "Photo.c"
- }
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 828 "/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 828 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 828 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 8024 "Photo.c"
- }
- }
-#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
- if (notify) {
-#line 8029 "Photo.c"
- Alteration* _tmp37_;
- Alteration* _tmp38_;
-#line 877 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = alteration_new ("image", "developer");
-#line 877 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _tmp37_;
-#line 877 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp38_);
-#line 877 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp38_);
-#line 8040 "Photo.c"
- }
-#line 878 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_discard_prefetched (self);
-#line 8044 "Photo.c"
-}
-
-
-RawDeveloper
-photo_get_raw_developer (Photo* self)
-{
- RawDeveloper result = 0;
- PhotoRow* _tmp0_;
- RawDeveloper _tmp1_;
-#line 881 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0);
-#line 882 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 882 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_->developer;
-#line 882 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 882 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8064 "Photo.c"
-}
-
-
-static gboolean
-photo_delete_raw_development (Photo* self,
- RawDeveloper d)
-{
- gboolean result = FALSE;
- gboolean ret = FALSE;
- GError * _inner_error_ = NULL;
-#line 887 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 888 "/home/jens/Source/shotwell/src/Photo.vala"
- ret = FALSE;
-#line 8079 "Photo.c"
- {
- GeeHashMap* _tmp0_;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->developments;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_developments);
-#line 8086 "Photo.c"
- {
- GeeHashMap* _tmp1_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- BackingPhotoRow* bpr = NULL;
- GeeHashMap* _tmp7_;
- gpointer _tmp8_;
- BackingPhotoRow* _tmp9_;
- const gchar* _tmp10_;
- GeeHashMap* _tmp33_;
- gboolean _tmp34_;
-#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->developments;
-#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d))) {
-#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 8106 "Photo.c"
- {
- GeeHashMap* _tmp2_;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->developments;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 8113 "Photo.c"
- }
-#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8117 "Photo.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 896 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 896 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = raw_developer_to_string (d);
-#line 896 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_;
-#line 896 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:896: Delete raw development: %s %s", _tmp4_, _tmp6_);
-#line 896 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp6_);
-#line 896 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp4_);
-#line 897 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->priv->developments;
-#line 897 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d));
-#line 897 "/home/jens/Source/shotwell/src/Photo.vala"
- bpr = (BackingPhotoRow*) _tmp8_;
-#line 898 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = bpr;
-#line 898 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->filepath;
-#line 898 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_ != NULL) {
-#line 8145 "Photo.c"
- GFile* f = NULL;
- BackingPhotoRow* _tmp11_;
- const gchar* _tmp12_;
- GFile* _tmp13_;
-#line 899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = bpr;
-#line 899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->filepath;
-#line 899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = g_file_new_for_path (_tmp12_);
-#line 899 "/home/jens/Source/shotwell/src/Photo.vala"
- f = _tmp13_;
-#line 8158 "Photo.c"
- {
-#line 901 "/home/jens/Source/shotwell/src/Photo.vala"
- if (d == RAW_DEVELOPER_CAMERA) {
-#line 8162 "Photo.c"
- GFile* _tmp14_;
-#line 902 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = f;
-#line 902 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_trash (_tmp14_, NULL, &_inner_error_);
-#line 902 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8170 "Photo.c"
- goto __catch293_g_error;
- }
- } else {
- GFile* _tmp15_;
-#line 904 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = f;
-#line 904 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_delete (_tmp15_, NULL, &_inner_error_);
-#line 904 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8181 "Photo.c"
- goto __catch293_g_error;
- }
- }
- }
- goto __finally293;
- __catch293_g_error:
- {
- GError* e = NULL;
- BackingPhotoRow* _tmp16_;
- const gchar* _tmp17_;
- GError* _tmp18_;
- const gchar* _tmp19_;
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 906 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = bpr;
-#line 906 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_->filepath;
-#line 906 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = e;
-#line 906 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_->message;
-#line 906 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:906: Unable to delete RAW development: %s error: %s", _tmp17_, _tmp19_);
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 8210 "Photo.c"
- }
- __finally293:
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8215 "Photo.c"
- gboolean _tmp21_ = FALSE;
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bpr);
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bpr);
-#line 8225 "Photo.c"
- {
- GeeHashMap* _tmp20_;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = self->priv->developments;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 8232 "Photo.c"
- }
-#line 900 "/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);
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 900 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp21_;
-#line 8240 "Photo.c"
- }
-#line 898 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 8244 "Photo.c"
- }
- {
- PhotoTable* _tmp22_;
- PhotoTable* _tmp23_;
- PhotoRow* _tmp24_;
- BackingPhotoTable* _tmp25_;
- BackingPhotoTable* _tmp26_;
- BackingPhotoRow* _tmp27_;
- BackingPhotoID _tmp28_;
-#line 912 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = photo_table_get_instance ();
-#line 912 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 912 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = self->row;
-#line 912 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_remove_development (_tmp23_, _tmp24_, d, &_inner_error_);
-#line 912 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp23_);
-#line 912 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8266 "Photo.c"
- goto __catch294_g_error;
- }
-#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = backing_photo_table_get_instance ();
-#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp25_;
-#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = bpr;
-#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp27_->id;
-#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_remove (_tmp26_, &_tmp28_, &_inner_error_);
-#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp26_);
-#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8283 "Photo.c"
- goto __catch294_g_error;
- }
- }
- goto __finally294;
- __catch294_g_error:
- {
- GError* e = NULL;
- GError* _tmp29_;
- const gchar* _tmp30_;
-#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 915 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = e;
-#line 915 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp29_->message;
-#line 915 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:915: Database error while deleting RAW development: %s", _tmp30_);
-#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 8305 "Photo.c"
- }
- __finally294:
-#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8310 "Photo.c"
- gboolean _tmp32_ = FALSE;
-#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bpr);
-#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bpr);
-#line 8316 "Photo.c"
- {
- GeeHashMap* _tmp31_;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = self->priv->developments;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 8323 "Photo.c"
- }
-#line 911 "/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);
-#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp32_;
-#line 8331 "Photo.c"
- }
-#line 918 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = self->priv->developments;
-#line 918 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d), NULL);
-#line 918 "/home/jens/Source/shotwell/src/Photo.vala"
- ret = _tmp34_;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bpr);
-#line 8341 "Photo.c"
- }
- __finally292:
- {
- GeeHashMap* _tmp35_;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = self->priv->developments;
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 8350 "Photo.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8354 "Photo.c"
- gboolean _tmp36_ = FALSE;
-#line 890 "/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 890 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 890 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp36_;
-#line 8362 "Photo.c"
- }
- }
-#line 921 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
- result = ret;
-#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8371 "Photo.c"
-}
-
-
-void
-photo_redevelop_raw (Photo* self,
- RawDeveloper d)
-{
- GError * _inner_error_ = NULL;
-#line 926 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 8382 "Photo.c"
- {
- GeeHashMap* _tmp0_;
-#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->developments;
-#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_developments);
-#line 8389 "Photo.c"
- {
- RawDeveloper dev = 0;
- RawDeveloper _tmp1_;
- RawDeveloper _tmp2_;
-#line 928 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_delete_raw_development (self, d);
-#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
- dev = d;
-#line 930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = dev;
-#line 930 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == RAW_DEVELOPER_CAMERA) {
-#line 931 "/home/jens/Source/shotwell/src/Photo.vala"
- dev = RAW_DEVELOPER_EMBEDDED;
-#line 8404 "Photo.c"
- }
-#line 933 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = dev;
-#line 933 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_raw_developer (self, _tmp2_, TRUE);
-#line 8410 "Photo.c"
- }
- __finally295:
- {
- GeeHashMap* _tmp3_;
-#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->developments;
-#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_developments);
-#line 8419 "Photo.c"
- }
-#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 927 "/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 927 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 8429 "Photo.c"
- }
- }
-}
-
-
-static void
-_vala_array_add88 (BackingFileState** * array,
- int* length,
- int* size,
- BackingFileState* value)
-{
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (BackingFileState*, *array, (*size) + 1);
-#line 8447 "Photo.c"
- }
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 8453 "Photo.c"
-}
-
-
-static void
-_vala_array_add89 (BackingFileState** * array,
- int* length,
- int* size,
- BackingFileState* value)
-{
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (BackingFileState*, *array, (*size) + 1);
-#line 8469 "Photo.c"
- }
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 8475 "Photo.c"
-}
-
-
-static void
-_vala_array_add90 (BackingFileState** * array,
- int* length,
- int* size,
- BackingFileState* value)
-{
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (BackingFileState*, *array, (*size) + 1);
-#line 8491 "Photo.c"
- }
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 8497 "Photo.c"
-}
-
-
-static BackingFileState**
-photo_real_get_backing_files_state (MediaSource* base,
- int* result_length1)
-{
- Photo * self;
- BackingFileState** result = NULL;
- BackingFileState** backing = NULL;
- BackingFileState** _tmp0_;
- gint backing_length1;
- gint _backing_size_;
- BackingFileState** _tmp24_;
- gint _tmp24__length1;
- GError * _inner_error_ = NULL;
-#line 937 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 938 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = g_new0 (BackingFileState*, 0 + 1);
-#line 938 "/home/jens/Source/shotwell/src/Photo.vala"
- backing = _tmp0_;
-#line 938 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_length1 = 0;
-#line 938 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_size_ = backing_length1;
-#line 8524 "Photo.c"
- {
- PhotoRow* _tmp1_;
-#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 8531 "Photo.c"
- {
- BackingFileState** _tmp2_;
- gint _tmp2__length1;
- PhotoRow* _tmp3_;
- BackingPhotoRow* _tmp4_;
- PhotoRow* _tmp5_;
- const gchar* _tmp6_;
- BackingFileState* _tmp7_;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = backing;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2__length1 = backing_length1;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->master;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_->md5;
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = backing_file_state_new_from_photo_row (_tmp4_, _tmp6_);
-#line 940 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add88 (&backing, &backing_length1, &_backing_size_, _tmp7_);
-#line 941 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_has_editable (self)) {
-#line 8558 "Photo.c"
- BackingFileState** _tmp8_;
- gint _tmp8__length1;
- BackingPhotoRow* _tmp9_;
- BackingFileState* _tmp10_;
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = backing;
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8__length1 = backing_length1;
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->priv->editable;
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = backing_file_state_new_from_photo_row (_tmp9_, NULL);
-#line 942 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add89 (&backing, &backing_length1, &_backing_size_, _tmp10_);
-#line 8573 "Photo.c"
- }
-#line 944 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_developed (self)) {
-#line 8577 "Photo.c"
- GeeCollection* dev_rows = NULL;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
-#line 945 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_get_raw_development_photo_rows (self);
-#line 945 "/home/jens/Source/shotwell/src/Photo.vala"
- dev_rows = _tmp11_;
-#line 946 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = dev_rows;
-#line 946 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp12_ != NULL) {
-#line 8589 "Photo.c"
- {
- GeeIterator* _r_it = NULL;
- GeeCollection* _tmp13_;
- GeeIterator* _tmp14_;
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = dev_rows;
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- _r_it = _tmp14_;
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 8602 "Photo.c"
- GeeIterator* _tmp15_;
- BackingPhotoRow* r = NULL;
- GeeIterator* _tmp16_;
- gpointer _tmp17_;
- BackingPhotoRow* _tmp18_;
- const gchar* _tmp19_;
- BackingFileState** _tmp20_;
- gint _tmp20__length1;
- BackingPhotoRow* _tmp21_;
- BackingFileState* _tmp22_;
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _r_it;
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp15_)) {
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 8619 "Photo.c"
- }
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _r_it;
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = gee_iterator_get (_tmp16_);
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- r = (BackingPhotoRow*) _tmp17_;
-#line 948 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = r;
-#line 948 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_->filepath;
-#line 948 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:948: adding: %s", _tmp19_);
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = backing;
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20__length1 = backing_length1;
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = r;
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = backing_file_state_new_from_photo_row (_tmp21_, NULL);
-#line 949 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add90 (&backing, &backing_length1, &_backing_size_, _tmp22_);
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (r);
-#line 8645 "Photo.c"
- }
-#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_r_it);
-#line 8649 "Photo.c"
- }
- }
-#line 944 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dev_rows);
-#line 8654 "Photo.c"
- }
- }
- __finally296:
- {
- PhotoRow* _tmp23_;
-#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = self->row;
-#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 8664 "Photo.c"
- }
-#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
- backing = (_vala_array_free (backing, backing_length1, (GDestroyNotify) backing_file_state_unref), NULL);
-#line 939 "/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 939 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 8676 "Photo.c"
- }
- }
-#line 955 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = backing;
-#line 955 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24__length1 = backing_length1;
-#line 955 "/home/jens/Source/shotwell/src/Photo.vala"
- if (result_length1) {
-#line 955 "/home/jens/Source/shotwell/src/Photo.vala"
- *result_length1 = _tmp24__length1;
-#line 8687 "Photo.c"
- }
-#line 955 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp24_;
-#line 955 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8693 "Photo.c"
-}
-
-
-static PhotoFileReader*
-photo_get_backing_reader (Photo* self,
- BackingFetchMode mode)
-{
- PhotoFileReader* result = NULL;
-#line 958 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 959 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (mode) {
-#line 959 "/home/jens/Source/shotwell/src/Photo.vala"
- case BACKING_FETCH_MODE_MASTER:
-#line 8708 "Photo.c"
- {
- PhotoFileReader* _tmp0_;
-#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_master_reader (self);
-#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8717 "Photo.c"
- }
-#line 959 "/home/jens/Source/shotwell/src/Photo.vala"
- case BACKING_FETCH_MODE_BASELINE:
-#line 8721 "Photo.c"
- {
- PhotoFileReader* _tmp1_;
-#line 964 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_baseline_reader (self);
-#line 964 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 964 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8730 "Photo.c"
- }
-#line 959 "/home/jens/Source/shotwell/src/Photo.vala"
- case BACKING_FETCH_MODE_SOURCE:
-#line 8734 "Photo.c"
- {
- PhotoFileReader* _tmp2_;
-#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_get_source_reader (self);
-#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8743 "Photo.c"
- }
-#line 959 "/home/jens/Source/shotwell/src/Photo.vala"
- case BACKING_FETCH_MODE_UNMODIFIED:
-#line 8747 "Photo.c"
- {
-#line 970 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_get_master_file_format (self) == PHOTO_FILE_FORMAT_RAW) {
-#line 8751 "Photo.c"
- PhotoFileReader* _tmp3_;
-#line 971 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_get_raw_developer_reader (self);
-#line 971 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 971 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8759 "Photo.c"
- } else {
- PhotoFileReader* _tmp4_;
-#line 973 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_get_master_reader (self);
-#line 973 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp4_;
-#line 973 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8768 "Photo.c"
- }
- }
- default:
- {
- GEnumValue* _tmp5_;
-#line 976 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_BACKING_FETCH_MODE), mode);
-#line 976 "/home/jens/Source/shotwell/src/Photo.vala"
- g_error ("Photo.vala:976: Unknown backing fetch mode %s", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
-#line 8778 "Photo.c"
- }
- }
-}
-
-
-static gpointer
-_photo_file_adapter_ref0 (gpointer self)
-{
-#line 982 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? photo_file_adapter_ref (self) : NULL;
-#line 8789 "Photo.c"
-}
-
-
-static PhotoFileReader*
-photo_get_master_reader (Photo* self)
-{
- PhotoFileReader* result = NULL;
- GError * _inner_error_ = NULL;
-#line 980 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 8800 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 8807 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileReader* _tmp3_;
-#line 982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->master;
-#line 982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _photo_file_adapter_ref0 (_tmp2_);
-#line 982 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 8820 "Photo.c"
- {
- PhotoBackingReaders* _tmp4_;
-#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 8827 "Photo.c"
- }
-#line 982 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8831 "Photo.c"
- }
- __finally297:
- {
- PhotoBackingReaders* _tmp5_;
-#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->priv->readers;
-#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 8840 "Photo.c"
- }
-#line 981 "/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 981 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 8848 "Photo.c"
- }
-}
-
-
-PhotoFileReader*
-photo_get_editable_reader (Photo* self)
-{
- PhotoFileReader* result = NULL;
- GError * _inner_error_ = NULL;
-#line 986 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 8860 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 8867 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileReader* _tmp3_;
-#line 988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _photo_file_adapter_ref0 (_tmp2_);
-#line 988 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 8880 "Photo.c"
- {
- PhotoBackingReaders* _tmp4_;
-#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 8887 "Photo.c"
- }
-#line 988 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8891 "Photo.c"
- }
- __finally298:
- {
- PhotoBackingReaders* _tmp5_;
-#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->priv->readers;
-#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 8900 "Photo.c"
- }
-#line 987 "/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 987 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 8908 "Photo.c"
- }
-}
-
-
-static PhotoFileReader*
-photo_get_baseline_reader (Photo* self)
-{
- PhotoFileReader* result = NULL;
- GError * _inner_error_ = NULL;
-#line 993 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 8920 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 8927 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoBackingReaders* _tmp7_;
- PhotoFileReader* _tmp8_;
- PhotoBackingReaders* _tmp13_;
- PhotoFileReader* _tmp14_;
- PhotoFileReader* _tmp15_;
-#line 995 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 995 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 995 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 8942 "Photo.c"
- PhotoBackingReaders* _tmp3_;
- PhotoFileReader* _tmp4_;
- PhotoFileReader* _tmp5_;
-#line 996 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 996 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->editable;
-#line 996 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _photo_file_adapter_ref0 (_tmp4_);
-#line 996 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp5_;
-#line 8954 "Photo.c"
- {
- PhotoBackingReaders* _tmp6_;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->readers;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 8961 "Photo.c"
- }
-#line 996 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8965 "Photo.c"
- }
-#line 998 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->priv->readers;
-#line 998 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_->developer;
-#line 998 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ != NULL) {
-#line 8973 "Photo.c"
- PhotoBackingReaders* _tmp9_;
- PhotoFileReader* _tmp10_;
- PhotoFileReader* _tmp11_;
-#line 999 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->priv->readers;
-#line 999 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->developer;
-#line 999 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _photo_file_adapter_ref0 (_tmp10_);
-#line 999 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp11_;
-#line 8985 "Photo.c"
- {
- PhotoBackingReaders* _tmp12_;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->priv->readers;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 8992 "Photo.c"
- }
-#line 999 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 8996 "Photo.c"
- }
-#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->priv->readers;
-#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_->master;
-#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _photo_file_adapter_ref0 (_tmp14_);
-#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp15_;
-#line 9006 "Photo.c"
- {
- PhotoBackingReaders* _tmp16_;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = self->priv->readers;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9013 "Photo.c"
- }
-#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9017 "Photo.c"
- }
- __finally299:
- {
- PhotoBackingReaders* _tmp17_;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->priv->readers;
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9026 "Photo.c"
- }
-#line 994 "/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 994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 9034 "Photo.c"
- }
-}
-
-
-static PhotoFileReader*
-photo_get_source_reader (Photo* self)
-{
- PhotoFileReader* result = NULL;
- GError * _inner_error_ = NULL;
-#line 1006 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 9046 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 9053 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoBackingReaders* _tmp7_;
- PhotoFileReader* _tmp8_;
- PhotoBackingReaders* _tmp13_;
- PhotoFileReader* _tmp14_;
- PhotoFileReader* _tmp15_;
-#line 1008 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 1008 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 1008 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 9068 "Photo.c"
- PhotoBackingReaders* _tmp3_;
- PhotoFileReader* _tmp4_;
- PhotoFileReader* _tmp5_;
-#line 1009 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 1009 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->editable;
-#line 1009 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _photo_file_adapter_ref0 (_tmp4_);
-#line 1009 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp5_;
-#line 9080 "Photo.c"
- {
- PhotoBackingReaders* _tmp6_;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->readers;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9087 "Photo.c"
- }
-#line 1009 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9091 "Photo.c"
- }
-#line 1011 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->priv->readers;
-#line 1011 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_->developer;
-#line 1011 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ != NULL) {
-#line 9099 "Photo.c"
- PhotoBackingReaders* _tmp9_;
- PhotoFileReader* _tmp10_;
- PhotoFileReader* _tmp11_;
-#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->priv->readers;
-#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->developer;
-#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _photo_file_adapter_ref0 (_tmp10_);
-#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp11_;
-#line 9111 "Photo.c"
- {
- PhotoBackingReaders* _tmp12_;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->priv->readers;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9118 "Photo.c"
- }
-#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9122 "Photo.c"
- }
-#line 1014 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->priv->readers;
-#line 1014 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_->master;
-#line 1014 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _photo_file_adapter_ref0 (_tmp14_);
-#line 1014 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp15_;
-#line 9132 "Photo.c"
- {
- PhotoBackingReaders* _tmp16_;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = self->priv->readers;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9139 "Photo.c"
- }
-#line 1014 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9143 "Photo.c"
- }
- __finally300:
- {
- PhotoBackingReaders* _tmp17_;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->priv->readers;
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9152 "Photo.c"
- }
-#line 1007 "/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 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 9160 "Photo.c"
- }
-}
-
-
-static PhotoFileReader*
-photo_get_raw_developer_reader (Photo* self)
-{
- PhotoFileReader* result = NULL;
- GError * _inner_error_ = NULL;
-#line 1019 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 9172 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 1020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 1020 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 9179 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileReader* _tmp3_;
-#line 1021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 1021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->developer;
-#line 1021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _photo_file_adapter_ref0 (_tmp2_);
-#line 1021 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 9192 "Photo.c"
- {
- PhotoBackingReaders* _tmp4_;
-#line 1020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 1020 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9199 "Photo.c"
- }
-#line 1021 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9203 "Photo.c"
- }
- __finally301:
- {
- PhotoBackingReaders* _tmp5_;
-#line 1020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->priv->readers;
-#line 1020 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9212 "Photo.c"
- }
-#line 1020 "/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 1020 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1020 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 9220 "Photo.c"
- }
-}
-
-
-gboolean
-photo_is_developed (Photo* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 1025 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 9232 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 9240 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
-#line 1027 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 1027 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->developer;
-#line 1027 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_ != NULL;
-#line 9250 "Photo.c"
- {
- PhotoBackingReaders* _tmp3_;
-#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9257 "Photo.c"
- }
-#line 1027 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9261 "Photo.c"
- }
- __finally302:
- {
- PhotoBackingReaders* _tmp4_;
-#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9270 "Photo.c"
- }
-#line 1026 "/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 1026 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 9278 "Photo.c"
- }
-}
-
-
-gboolean
-photo_has_editable (Photo* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 1031 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 9290 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 9298 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
-#line 1033 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 1033 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 1033 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_ != NULL;
-#line 9308 "Photo.c"
- {
- PhotoBackingReaders* _tmp3_;
-#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9315 "Photo.c"
- }
-#line 1033 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9319 "Photo.c"
- }
- __finally303:
- {
- PhotoBackingReaders* _tmp4_;
-#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9328 "Photo.c"
- }
-#line 1032 "/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 1032 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 9336 "Photo.c"
- }
-}
-
-
-gboolean
-photo_does_master_exist (Photo* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 1037 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 9348 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 1038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 1038 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 9356 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
-#line 1039 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 1039 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->master;
-#line 1039 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_file_adapter_file_exists (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 9366 "Photo.c"
- {
- PhotoBackingReaders* _tmp3_;
-#line 1038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 1038 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9373 "Photo.c"
- }
-#line 1039 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9377 "Photo.c"
- }
- __finally304:
- {
- PhotoBackingReaders* _tmp4_;
-#line 1038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 1038 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9386 "Photo.c"
- }
-#line 1038 "/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 1038 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1038 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 9394 "Photo.c"
- }
-}
-
-
-gboolean
-photo_does_editable_exist (Photo* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 1044 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 9406 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
- gboolean _tmp8_ = FALSE;
-#line 1045 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 1045 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 9414 "Photo.c"
- {
- gboolean _tmp1_ = FALSE;
- PhotoBackingReaders* _tmp2_;
- PhotoFileReader* _tmp3_;
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->readers;
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->editable;
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_ != NULL) {
-#line 9425 "Photo.c"
- PhotoBackingReaders* _tmp4_;
- PhotoFileReader* _tmp5_;
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_->editable;
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_file_adapter_file_exists (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 9434 "Photo.c"
- } else {
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 9438 "Photo.c"
- }
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 9442 "Photo.c"
- {
- PhotoBackingReaders* _tmp6_;
-#line 1045 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->readers;
-#line 1045 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9449 "Photo.c"
- }
-#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9453 "Photo.c"
- }
- __finally305:
- {
- PhotoBackingReaders* _tmp7_;
-#line 1045 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->priv->readers;
-#line 1045 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9462 "Photo.c"
- }
-#line 1045 "/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 1045 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1045 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp8_;
-#line 9470 "Photo.c"
- }
-}
-
-
-gboolean
-photo_is_master_baseline (Photo* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 1050 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 9482 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 9490 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
-#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_ == NULL;
-#line 9500 "Photo.c"
- {
- PhotoBackingReaders* _tmp3_;
-#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9507 "Photo.c"
- }
-#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9511 "Photo.c"
- }
- __finally306:
- {
- PhotoBackingReaders* _tmp4_;
-#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9520 "Photo.c"
- }
-#line 1051 "/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 1051 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 9528 "Photo.c"
- }
-}
-
-
-gboolean
-photo_is_master_source (Photo* self)
-{
- gboolean result = FALSE;
-#line 1056 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
- result = !photo_has_editable (self);
-#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9543 "Photo.c"
-}
-
-
-gboolean
-photo_is_editable_baseline (Photo* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 1060 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 9554 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 1061 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 1061 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 9562 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
-#line 1062 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 1062 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 1062 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_ != NULL;
-#line 9572 "Photo.c"
- {
- PhotoBackingReaders* _tmp3_;
-#line 1061 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 1061 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9579 "Photo.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9583 "Photo.c"
- }
- __finally307:
- {
- PhotoBackingReaders* _tmp4_;
-#line 1061 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 1061 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 9592 "Photo.c"
- }
-#line 1061 "/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 1061 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1061 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 9600 "Photo.c"
- }
-}
-
-
-gboolean
-photo_is_editable_source (Photo* self)
-{
- gboolean result = FALSE;
-#line 1066 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_has_editable (self);
-#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9615 "Photo.c"
-}
-
-
-BackingPhotoRow*
-photo_get_master_photo_row (Photo* self)
-{
- BackingPhotoRow* result = NULL;
- GError * _inner_error_ = NULL;
-#line 1070 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 9626 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 1071 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 1071 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 9633 "Photo.c"
- {
- PhotoRow* _tmp1_;
- BackingPhotoRow* _tmp2_;
- BackingPhotoRow* _tmp3_;
-#line 1072 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 1072 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->master;
-#line 1072 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _backing_photo_row_ref0 (_tmp2_);
-#line 1072 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 9646 "Photo.c"
- {
- PhotoRow* _tmp4_;
-#line 1071 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 1071 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9653 "Photo.c"
- }
-#line 1072 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9657 "Photo.c"
- }
- __finally308:
- {
- PhotoRow* _tmp5_;
-#line 1071 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 1071 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9666 "Photo.c"
- }
-#line 1071 "/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 1071 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1071 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 9674 "Photo.c"
- }
-}
-
-
-BackingPhotoRow*
-photo_get_editable_photo_row (Photo* self)
-{
- BackingPhotoRow* result = NULL;
- GError * _inner_error_ = NULL;
-#line 1076 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 9686 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 9693 "Photo.c"
- {
- PhotoRow* _tmp1_;
-#line 1079 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 1079 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing_photo_id_is_valid (&_tmp1_->editable_id)) {
-#line 9700 "Photo.c"
- BackingPhotoRow* _tmp2_;
- BackingPhotoRow* _tmp3_;
-#line 1080 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->editable;
-#line 1080 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _backing_photo_row_ref0 (_tmp2_);
-#line 1080 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 9709 "Photo.c"
- {
- PhotoRow* _tmp4_;
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9716 "Photo.c"
- }
-#line 1080 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9720 "Photo.c"
- } else {
-#line 1082 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 9724 "Photo.c"
- {
- PhotoRow* _tmp5_;
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9731 "Photo.c"
- }
-#line 1082 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9735 "Photo.c"
- }
- }
- __finally309:
- {
- PhotoRow* _tmp6_;
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9745 "Photo.c"
- }
-#line 1077 "/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 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1077 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 9753 "Photo.c"
- }
-}
-
-
-GeeCollection*
-photo_get_raw_development_photo_rows (Photo* self)
-{
- GeeCollection* result = NULL;
- GError * _inner_error_ = NULL;
-#line 1086 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 9765 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 9772 "Photo.c"
- {
- GeeCollection* _tmp1_ = NULL;
- GeeHashMap* _tmp2_;
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->developments;
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 9780 "Photo.c"
- GeeHashMap* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->developments;
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp5_;
-#line 9794 "Photo.c"
- } else {
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = NULL;
-#line 9800 "Photo.c"
- }
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 9804 "Photo.c"
- {
- PhotoRow* _tmp6_;
-#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9811 "Photo.c"
- }
-#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9815 "Photo.c"
- }
- __finally310:
- {
- PhotoRow* _tmp7_;
-#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->row;
-#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9824 "Photo.c"
- }
-#line 1087 "/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 1087 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 9832 "Photo.c"
- }
-}
-
-
-BackingPhotoRow*
-photo_get_raw_development_photo_row (Photo* self,
- RawDeveloper d)
-{
- BackingPhotoRow* result = NULL;
- GError * _inner_error_ = NULL;
-#line 1092 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 9845 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 1093 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 1093 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 9852 "Photo.c"
- {
- BackingPhotoRow* _tmp1_ = NULL;
- GeeHashMap* _tmp2_;
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->developments;
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 9860 "Photo.c"
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->developments;
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d));
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp1_);
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = (BackingPhotoRow*) _tmp4_;
-#line 9871 "Photo.c"
- } else {
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp1_);
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = NULL;
-#line 9877 "Photo.c"
- }
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 9881 "Photo.c"
- {
- PhotoRow* _tmp5_;
-#line 1093 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 1093 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9888 "Photo.c"
- }
-#line 1094 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9892 "Photo.c"
- }
- __finally311:
- {
- PhotoRow* _tmp6_;
-#line 1093 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 1093 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 9901 "Photo.c"
- }
-#line 1093 "/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 1093 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1093 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 9909 "Photo.c"
- }
-}
-
-
-static PhotoFileFormat*
-_photo_file_format_dup (PhotoFileFormat* self)
-{
- PhotoFileFormat* dup;
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- dup = g_new0 (PhotoFileFormat, 1);
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- memcpy (dup, self, sizeof (PhotoFileFormat));
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- return dup;
-#line 9924 "Photo.c"
-}
-
-
-static gpointer
-__photo_file_format_dup0 (gpointer self)
-{
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? _photo_file_format_dup (self) : NULL;
-#line 9933 "Photo.c"
-}
-
-
-PhotoFileFormat*
-photo_get_editable_file_format (Photo* self)
-{
- PhotoFileFormat* result = NULL;
- PhotoFileReader* reader = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileFormat _tmp3_;
- PhotoFileFormat* _tmp4_;
-#line 1098 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 1099 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_editable_reader (self);
-#line 1099 "/home/jens/Source/shotwell/src/Photo.vala"
- reader = _tmp0_;
-#line 1100 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = reader;
-#line 1100 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 1101 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 1101 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 1101 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9963 "Photo.c"
- }
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = reader;
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = __photo_file_format_dup0 (&_tmp3_);
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp4_;
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 9977 "Photo.c"
-}
-
-
-PhotoFileFormat
-photo_get_export_format_for_parameters (Photo* self,
- ExportFormatParameters* params)
-{
- PhotoFileFormat result = 0;
- PhotoFileFormat _result_ = 0;
- ExportFormatParameters _tmp0_;
- ExportFormatMode _tmp1_;
-#line 1107 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0);
-#line 1107 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (params != NULL, 0);
-#line 1108 "/home/jens/Source/shotwell/src/Photo.vala"
- _result_ = photo_file_format_get_system_default_format ();
-#line 1110 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = *params;
-#line 1110 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_.mode;
-#line 1110 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (_tmp1_) {
-#line 1110 "/home/jens/Source/shotwell/src/Photo.vala"
- case EXPORT_FORMAT_MODE_UNMODIFIED:
-#line 10003 "Photo.c"
- {
-#line 1112 "/home/jens/Source/shotwell/src/Photo.vala"
- _result_ = photo_get_master_file_format (self);
-#line 1113 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 10009 "Photo.c"
- }
-#line 1110 "/home/jens/Source/shotwell/src/Photo.vala"
- case EXPORT_FORMAT_MODE_CURRENT:
-#line 10013 "Photo.c"
- {
-#line 1116 "/home/jens/Source/shotwell/src/Photo.vala"
- _result_ = photo_get_best_export_file_format (self);
-#line 1117 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 10019 "Photo.c"
- }
-#line 1110 "/home/jens/Source/shotwell/src/Photo.vala"
- case EXPORT_FORMAT_MODE_SPECIFIED:
-#line 10023 "Photo.c"
- {
- ExportFormatParameters _tmp2_;
- PhotoFileFormat _tmp3_;
-#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = *params;
-#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_.specified_format;
-#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
- _result_ = _tmp3_;
-#line 1121 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 10035 "Photo.c"
- }
- default:
- {
-#line 1124 "/home/jens/Source/shotwell/src/Photo.vala"
- g_error ("Photo.vala:1124: get_export_format_for_parameters: unsupported export " \
-"format mode");
-#line 10041 "Photo.c"
- }
- }
-#line 1127 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _result_;
-#line 1127 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10048 "Photo.c"
-}
-
-
-gchar*
-photo_get_export_basename_for_parameters (Photo* self,
- ExportFormatParameters* params)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- ExportFormatParameters _tmp0_;
- ExportFormatMode _tmp1_;
- const gchar* _tmp8_;
-#line 1130 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 1130 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (params != NULL, NULL);
-#line 1131 "/home/jens/Source/shotwell/src/Photo.vala"
- _result_ = NULL;
-#line 1133 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = *params;
-#line 1133 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_.mode;
-#line 1133 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (_tmp1_) {
-#line 1133 "/home/jens/Source/shotwell/src/Photo.vala"
- case EXPORT_FORMAT_MODE_UNMODIFIED:
-#line 10075 "Photo.c"
- {
- GFile* _tmp2_;
- GFile* _tmp3_;
- gchar* _tmp4_;
-#line 1135 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1135 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 1135 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = g_file_get_basename (_tmp3_);
-#line 1135 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_result_);
-#line 1135 "/home/jens/Source/shotwell/src/Photo.vala"
- _result_ = _tmp4_;
-#line 1135 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_);
-#line 1136 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 10094 "Photo.c"
- }
-#line 1133 "/home/jens/Source/shotwell/src/Photo.vala"
- case EXPORT_FORMAT_MODE_CURRENT:
-#line 1133 "/home/jens/Source/shotwell/src/Photo.vala"
- case EXPORT_FORMAT_MODE_SPECIFIED:
-#line 10100 "Photo.c"
- {
- ExportFormatParameters _tmp5_;
- PhotoFileFormat _tmp6_;
- gchar* _tmp7_;
-#line 1140 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = *params;
-#line 1140 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_get_export_format_for_parameters (self, &_tmp5_);
-#line 1140 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo_get_export_basename (self, &_tmp6_);
-#line 1140 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp7_;
-#line 1140 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_result_);
-#line 1140 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10117 "Photo.c"
- }
- default:
- {
-#line 1143 "/home/jens/Source/shotwell/src/Photo.vala"
- g_error ("Photo.vala:1143: get_export_basename_for_parameters: unsupported expor" \
-"t format mode");
-#line 10123 "Photo.c"
- }
- }
-#line 1146 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _result_;
-#line 1146 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp8_ != NULL, "result != null");
-#line 1147 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _result_;
-#line 1147 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10134 "Photo.c"
-}
-
-
-ImportResult
-photo_prepare_for_import (PhotoImportParams* params)
-{
- ImportResult result = 0;
- GFile* file = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFileInfo* info = NULL;
- GFileInfo* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp11_;
- GTimeVal timestamp = {0};
- GFileInfo* _tmp15_;
- GTimeVal _tmp16_ = {0};
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_ = FALSE;
- const gchar* _tmp19_;
- PhotoFileInterrogator* interrogator = NULL;
- GFile* _tmp23_;
- PhotoFileSnifferOptions _tmp24_;
- PhotoFileInterrogator* _tmp25_;
- PhotoFileInterrogator* _tmp32_;
- DetectedPhotoInformation* detected = NULL;
- PhotoFileInterrogator* _tmp33_;
- DetectedPhotoInformation* _tmp34_;
- gboolean _tmp35_ = FALSE;
- DetectedPhotoInformation* _tmp36_;
- PhotoFileSnifferOptions _tmp39_;
- Orientation orientation = 0;
- time_t exposure_time = 0;
- gchar* title = NULL;
- gchar* _tmp49_;
- gchar* comment = NULL;
- gchar* _tmp50_;
- Rating rating = 0;
- DetectedPhotoInformation* _tmp51_;
- PhotoMetadata* _tmp52_;
- gboolean _tmp71_ = FALSE;
- gboolean _tmp72_ = FALSE;
- DetectedPhotoInformation* _tmp73_;
- GdkColorspace _tmp74_;
- PhotoRow* _tmp82_;
- PhotoRow* _tmp83_;
- BackingPhotoRow* _tmp84_;
- GFile* _tmp85_;
- gchar* _tmp86_;
- PhotoRow* _tmp87_;
- BackingPhotoRow* _tmp88_;
- DetectedPhotoInformation* _tmp89_;
- Dimensions _tmp90_;
- PhotoRow* _tmp91_;
- BackingPhotoRow* _tmp92_;
- GFileInfo* _tmp93_;
- PhotoRow* _tmp94_;
- BackingPhotoRow* _tmp95_;
- GTimeVal _tmp96_;
- glong _tmp97_;
- PhotoRow* _tmp98_;
- time_t _tmp99_;
- PhotoRow* _tmp100_;
- Orientation _tmp101_;
- PhotoRow* _tmp102_;
- BackingPhotoRow* _tmp103_;
- Orientation _tmp104_;
- PhotoRow* _tmp105_;
- ImportID _tmp106_;
- PhotoRow* _tmp107_;
- PhotoRow* _tmp108_;
- PhotoRow* _tmp109_;
- DetectedPhotoInformation* _tmp110_;
- const gchar* _tmp111_;
- gchar* _tmp112_;
- PhotoRow* _tmp113_;
- DetectedPhotoInformation* _tmp114_;
- const gchar* _tmp115_;
- gchar* _tmp116_;
- PhotoRow* _tmp117_;
- DetectedPhotoInformation* _tmp118_;
- const gchar* _tmp119_;
- gchar* _tmp120_;
- PhotoRow* _tmp121_;
- PhotoRow* _tmp122_;
- PhotoRow* _tmp123_;
- BackingPhotoRow* _tmp124_;
- DetectedPhotoInformation* _tmp125_;
- PhotoFileFormat _tmp126_;
- PhotoRow* _tmp127_;
- const gchar* _tmp128_;
- gchar* _tmp129_;
- PhotoRow* _tmp130_;
- const gchar* _tmp131_;
- gchar* _tmp132_;
- PhotoRow* _tmp133_;
- Rating _tmp134_;
- Thumbnails* _tmp135_;
- GError * _inner_error_ = NULL;
-#line 1162 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (params), 0);
-#line 1166 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = params->file;
-#line 1166 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 1166 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp1_;
-#line 1168 "/home/jens/Source/shotwell/src/Photo.vala"
- info = NULL;
-#line 10244 "Photo.c"
- {
- GFileInfo* _tmp2_ = NULL;
- GFile* _tmp3_;
- GFileInfo* _tmp4_;
- GFileInfo* _tmp5_;
-#line 1170 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = file;
-#line 1170 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = g_file_query_info (_tmp3_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 1170 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp4_;
-#line 1170 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10258 "Photo.c"
- goto __catch312_g_error;
- }
-#line 1170 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp2_;
-#line 1170 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = NULL;
-#line 1170 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1170 "/home/jens/Source/shotwell/src/Photo.vala"
- info = _tmp5_;
-#line 1169 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp2_);
-#line 10271 "Photo.c"
- }
- goto __finally312;
- __catch312_g_error:
- {
- GError* err = NULL;
-#line 1169 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 1169 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 1173 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_FILE_ERROR;
-#line 1173 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 1173 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1173 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1173 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10291 "Photo.c"
- }
- __finally312:
-#line 1169 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1169 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1169 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1169 "/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 1169 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1169 "/home/jens/Source/shotwell/src/Photo.vala"
- return 0;
-#line 10306 "Photo.c"
- }
-#line 1176 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = info;
-#line 1176 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_file_info_get_file_type (_tmp6_) != G_FILE_TYPE_REGULAR) {
-#line 1177 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_NOT_A_FILE;
-#line 1177 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1177 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1177 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10320 "Photo.c"
- }
-#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = file;
-#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_is_file_image (_tmp7_)) {
-#line 10326 "Photo.c"
- GFile* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1180 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = file;
-#line 1180 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = g_file_get_path (_tmp8_);
-#line 1180 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_;
-#line 1180 "/home/jens/Source/shotwell/src/Photo.vala"
- g_message ("Photo.vala:1180: Not importing %s: Not an image file", _tmp10_);
-#line 1180 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp10_);
-#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_NOT_AN_IMAGE;
-#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10348 "Photo.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = file;
-#line 1185 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_is_file_supported (_tmp11_)) {
-#line 10354 "Photo.c"
- GFile* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 1186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = file;
-#line 1186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = g_file_get_path (_tmp12_);
-#line 1186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_;
-#line 1186 "/home/jens/Source/shotwell/src/Photo.vala"
- g_message ("Photo.vala:1186: Not importing %s: Unsupported extension", _tmp14_);
-#line 1186 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp14_);
-#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10376 "Photo.c"
- }
-#line 1191 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = info;
-#line 1191 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_info_get_modification_time (_tmp15_, &_tmp16_);
-#line 1191 "/home/jens/Source/shotwell/src/Photo.vala"
- timestamp = _tmp16_;
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = params->exif_md5;
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp19_ != NULL) {
-#line 10388 "Photo.c"
- const gchar* _tmp20_;
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = params->thumbnail_md5;
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp20_ != NULL;
-#line 10394 "Photo.c"
- } else {
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = FALSE;
-#line 10398 "Photo.c"
- }
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp18_) {
-#line 10402 "Photo.c"
- const gchar* _tmp21_;
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = params->full_md5;
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp21_ != NULL;
-#line 10408 "Photo.c"
- } else {
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = FALSE;
-#line 10412 "Photo.c"
- }
-#line 1194 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp17_) {
-#line 10416 "Photo.c"
- PhotoFileSnifferOptions _tmp22_;
-#line 1195 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = params->sniffer_options;
-#line 1195 "/home/jens/Source/shotwell/src/Photo.vala"
- params->sniffer_options = _tmp22_ | PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5;
-#line 10422 "Photo.c"
- }
-#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = file;
-#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = params->sniffer_options;
-#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = photo_file_interrogator_new (_tmp23_, _tmp24_);
-#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
- interrogator = _tmp25_;
-#line 10432 "Photo.c"
- {
- PhotoFileInterrogator* _tmp26_;
-#line 1200 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = interrogator;
-#line 1200 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_interrogator_interrogate (_tmp26_, &_inner_error_);
-#line 1200 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10441 "Photo.c"
- goto __catch313_g_error;
- }
- }
- goto __finally313;
- __catch313_g_error:
- {
- GError* err = NULL;
- GFile* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- GError* _tmp30_;
- const gchar* _tmp31_;
-#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 1202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = file;
-#line 1202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = g_file_get_path (_tmp27_);
-#line 1202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _tmp28_;
-#line 1202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = err;
-#line 1202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_->message;
-#line 1202 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:1202: Unable to interrogate photo file %s: %s", _tmp29_, _tmp31_);
-#line 1202 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp29_);
-#line 1204 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_DECODE_ERROR;
-#line 1204 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 1204 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1204 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1204 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1204 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10484 "Photo.c"
- }
- __finally313:
-#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1199 "/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 1199 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
- return 0;
-#line 10501 "Photo.c"
- }
-#line 1207 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = interrogator;
-#line 1207 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_file_interrogator_get_is_photo_corrupted (_tmp32_)) {
-#line 1208 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_NOT_AN_IMAGE;
-#line 1208 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1208 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1208 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1208 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10517 "Photo.c"
- }
-#line 1211 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = interrogator;
-#line 1211 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = photo_file_interrogator_get_detected_photo_information (_tmp33_);
-#line 1211 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp34_;
-#line 1212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = detected;
-#line 1212 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp36_ == NULL) {
-#line 1212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = TRUE;
-#line 10531 "Photo.c"
- } else {
- DetectedPhotoInformation* _tmp37_;
- PhotoFileFormat _tmp38_;
-#line 1212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = detected;
-#line 1212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _tmp37_->file_format;
-#line 1212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _tmp38_ == PHOTO_FILE_FORMAT_UNKNOWN;
-#line 10541 "Photo.c"
- }
-#line 1212 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp35_) {
-#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10557 "Photo.c"
- }
-#line 1216 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = params->sniffer_options;
-#line 1216 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((_tmp39_ & PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5) != 0) {
-#line 10563 "Photo.c"
- DetectedPhotoInformation* _tmp40_;
- const gchar* _tmp41_;
- gchar* _tmp42_;
- DetectedPhotoInformation* _tmp43_;
- const gchar* _tmp44_;
- gchar* _tmp45_;
- DetectedPhotoInformation* _tmp46_;
- const gchar* _tmp47_;
- gchar* _tmp48_;
-#line 1217 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = detected;
-#line 1217 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = params->exif_md5;
-#line 1217 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = g_strdup (_tmp41_);
-#line 1217 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp40_->exif_md5);
-#line 1217 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_->exif_md5 = _tmp42_;
-#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = detected;
-#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = params->thumbnail_md5;
-#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = g_strdup (_tmp44_);
-#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp43_->thumbnail_md5);
-#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_->thumbnail_md5 = _tmp45_;
-#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = detected;
-#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = params->full_md5;
-#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = g_strdup (_tmp47_);
-#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp46_->md5);
-#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_->md5 = _tmp48_;
-#line 10603 "Photo.c"
- }
-#line 1222 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation = ORIENTATION_TOP_LEFT;
-#line 1223 "/home/jens/Source/shotwell/src/Photo.vala"
- exposure_time = (time_t) 0;
-#line 1224 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = g_strdup ("");
-#line 1224 "/home/jens/Source/shotwell/src/Photo.vala"
- title = _tmp49_;
-#line 1225 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = g_strdup ("");
-#line 1225 "/home/jens/Source/shotwell/src/Photo.vala"
- comment = _tmp50_;
-#line 1226 "/home/jens/Source/shotwell/src/Photo.vala"
- rating = RATING_UNRATED;
-#line 1233 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = detected;
-#line 1233 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = _tmp51_->metadata;
-#line 1233 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp52_ != NULL) {
-#line 10625 "Photo.c"
- MetadataDateTime* date_time = NULL;
- DetectedPhotoInformation* _tmp53_;
- PhotoMetadata* _tmp54_;
- MetadataDateTime* _tmp55_;
- MetadataDateTime* _tmp56_;
- DetectedPhotoInformation* _tmp58_;
- PhotoMetadata* _tmp59_;
- DetectedPhotoInformation* _tmp60_;
- PhotoMetadata* _tmp61_;
- gchar* _tmp62_;
- DetectedPhotoInformation* _tmp63_;
- PhotoMetadata* _tmp64_;
- gchar* _tmp65_;
- DetectedPhotoInformation* _tmp66_;
- PhotoMetadata* _tmp67_;
- GeeSet* _tmp68_;
- DetectedPhotoInformation* _tmp69_;
- PhotoMetadata* _tmp70_;
-#line 1234 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = detected;
-#line 1234 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = _tmp53_->metadata;
-#line 1234 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = photo_metadata_get_exposure_date_time (_tmp54_);
-#line 1234 "/home/jens/Source/shotwell/src/Photo.vala"
- date_time = _tmp55_;
-#line 1235 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = date_time;
-#line 1235 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp56_ != NULL) {
-#line 10656 "Photo.c"
- MetadataDateTime* _tmp57_;
-#line 1236 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = date_time;
-#line 1236 "/home/jens/Source/shotwell/src/Photo.vala"
- exposure_time = metadata_date_time_get_timestamp (_tmp57_);
-#line 10662 "Photo.c"
- }
-#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = detected;
-#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = _tmp58_->metadata;
-#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation = photo_metadata_get_orientation (_tmp59_);
-#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = detected;
-#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = _tmp60_->metadata;
-#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
- title = _tmp62_;
-#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = detected;
-#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = _tmp63_->metadata;
-#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
- comment = _tmp65_;
-#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = detected;
-#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = _tmp66_->metadata;
-#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = photo_metadata_get_keywords (_tmp67_, NULL, NULL, NULL);
-#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (params->keywords);
-#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
- params->keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = detected;
-#line 1242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = _tmp69_->metadata;
-#line 1242 "/home/jens/Source/shotwell/src/Photo.vala"
- rating = photo_metadata_get_rating (_tmp70_);
-#line 1233 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 10708 "Photo.c"
- }
-#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = detected;
-#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = _tmp73_->colorspace;
-#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp74_ != GDK_COLORSPACE_RGB) {
-#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = TRUE;
-#line 10718 "Photo.c"
- } else {
- DetectedPhotoInformation* _tmp75_;
- gint _tmp76_;
-#line 1247 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = detected;
-#line 1247 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = _tmp75_->channels;
-#line 1247 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = _tmp76_ < 3;
-#line 10728 "Photo.c"
- }
-#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp72_) {
-#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = TRUE;
-#line 10734 "Photo.c"
- } else {
- DetectedPhotoInformation* _tmp77_;
- gint _tmp78_;
-#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = detected;
-#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = _tmp77_->bits_per_channel;
-#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = _tmp78_ != 8;
-#line 10744 "Photo.c"
- }
-#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp71_) {
-#line 10748 "Photo.c"
- GFile* _tmp79_;
- gchar* _tmp80_;
- gchar* _tmp81_;
-#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = file;
-#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = g_file_get_path (_tmp79_);
-#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = _tmp80_;
-#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
- g_message ("Photo.vala:1249: Not importing %s: Unsupported color format", _tmp81_);
-#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp81_);
-#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 10778 "Photo.c"
- }
-#line 1257 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = params->row;
-#line 1257 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id_init (&_tmp82_->photo_id, PHOTO_ID_INVALID);
-#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = params->row;
-#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_ = _tmp83_->master;
-#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp85_ = file;
-#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp86_ = g_file_get_path (_tmp85_);
-#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp84_->filepath);
-#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_->filepath = _tmp86_;
-#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp87_ = params->row;
-#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp88_ = _tmp87_->master;
-#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp89_ = detected;
-#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp90_ = _tmp89_->image_dim;
-#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp88_->dim = _tmp90_;
-#line 1260 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp91_ = params->row;
-#line 1260 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp92_ = _tmp91_->master;
-#line 1260 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp93_ = info;
-#line 1260 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp92_->filesize = g_file_info_get_size (_tmp93_);
-#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp94_ = params->row;
-#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp95_ = _tmp94_->master;
-#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp96_ = timestamp;
-#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp97_ = _tmp96_.tv_sec;
-#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp95_->timestamp = (time_t) _tmp97_;
-#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp98_ = params->row;
-#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp99_ = exposure_time;
-#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp98_->exposure_time = _tmp99_;
-#line 1263 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp100_ = params->row;
-#line 1263 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp101_ = orientation;
-#line 1263 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp100_->orientation = _tmp101_;
-#line 1264 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp102_ = params->row;
-#line 1264 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp103_ = _tmp102_->master;
-#line 1264 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp104_ = orientation;
-#line 1264 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp103_->original_orientation = _tmp104_;
-#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp105_ = params->row;
-#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp106_ = params->import_id;
-#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp105_->import_id = _tmp106_;
-#line 1266 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp107_ = params->row;
-#line 1266 "/home/jens/Source/shotwell/src/Photo.vala"
- event_id_init (&_tmp107_->event_id, EVENT_ID_INVALID);
-#line 1267 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp108_ = params->row;
-#line 1267 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp108_->transformations);
-#line 1267 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp108_->transformations = NULL;
-#line 1268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp109_ = params->row;
-#line 1268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp110_ = detected;
-#line 1268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp111_ = _tmp110_->md5;
-#line 1268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp112_ = g_strdup (_tmp111_);
-#line 1268 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp109_->md5);
-#line 1268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp109_->md5 = _tmp112_;
-#line 1269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp113_ = params->row;
-#line 1269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp114_ = detected;
-#line 1269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp115_ = _tmp114_->thumbnail_md5;
-#line 1269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp116_ = g_strdup (_tmp115_);
-#line 1269 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp113_->thumbnail_md5);
-#line 1269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp113_->thumbnail_md5 = _tmp116_;
-#line 1270 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp117_ = params->row;
-#line 1270 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp118_ = detected;
-#line 1270 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp119_ = _tmp118_->exif_md5;
-#line 1270 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp120_ = g_strdup (_tmp119_);
-#line 1270 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp117_->exif_md5);
-#line 1270 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp117_->exif_md5 = _tmp120_;
-#line 1271 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp121_ = params->row;
-#line 1271 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp121_->time_created = (time_t) 0;
-#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp122_ = params->row;
-#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp122_->flags = (guint64) 0;
-#line 1273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp123_ = params->row;
-#line 1273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp124_ = _tmp123_->master;
-#line 1273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp125_ = detected;
-#line 1273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp126_ = _tmp125_->file_format;
-#line 1273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp124_->file_format = _tmp126_;
-#line 1274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp127_ = params->row;
-#line 1274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp128_ = title;
-#line 1274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp129_ = g_strdup (_tmp128_);
-#line 1274 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp127_->title);
-#line 1274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp127_->title = _tmp129_;
-#line 1275 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp130_ = params->row;
-#line 1275 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp131_ = comment;
-#line 1275 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp132_ = g_strdup (_tmp131_);
-#line 1275 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp130_->comment);
-#line 1275 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp130_->comment = _tmp132_;
-#line 1276 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp133_ = params->row;
-#line 1276 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp134_ = rating;
-#line 1276 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp133_->rating = _tmp134_;
-#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp135_ = params->thumbnails;
-#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp135_ != NULL) {
-#line 10944 "Photo.c"
- PhotoFileReader* reader = NULL;
- PhotoRow* _tmp136_;
- BackingPhotoRow* _tmp137_;
- PhotoFileFormat _tmp138_;
- PhotoRow* _tmp139_;
- BackingPhotoRow* _tmp140_;
- const gchar* _tmp141_;
- PhotoFileReader* _tmp142_;
- PhotoFileReader* _tmp143_;
-#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp136_ = params->row;
-#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp137_ = _tmp136_->master;
-#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp138_ = _tmp137_->file_format;
-#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp139_ = params->row;
-#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp140_ = _tmp139_->master;
-#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp141_ = _tmp140_->filepath;
-#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp142_ = photo_file_format_create_reader (_tmp138_, _tmp141_);
-#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
- reader = _tmp142_;
-#line 1281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp143_ = reader;
-#line 1281 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_reader_set_role (_tmp143_, PHOTO_FILE_READER_ROLE_THUMBNAIL);
-#line 10974 "Photo.c"
- {
- Thumbnails* _tmp144_;
- PhotoFileReader* _tmp145_;
- PhotoRow* _tmp146_;
- Orientation _tmp147_;
- PhotoRow* _tmp148_;
- BackingPhotoRow* _tmp149_;
- Dimensions _tmp150_;
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp144_ = params->thumbnails;
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp145_ = reader;
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp146_ = params->row;
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp147_ = _tmp146_->orientation;
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp148_ = params->row;
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp149_ = _tmp148_->master;
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp150_ = _tmp149_->dim;
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- thumbnail_cache_generate_for_photo (_tmp144_, _tmp145_, _tmp147_, &_tmp150_, &_inner_error_);
-#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11001 "Photo.c"
- goto __catch314_g_error;
- }
- }
- goto __finally314;
- __catch314_g_error:
- {
- GError* err = NULL;
- GError* _tmp151_;
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp151_ = err;
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- result = import_result_convert_error (_tmp151_, IMPORT_RESULT_FILE_ERROR);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 11036 "Photo.c"
- }
- __finally314:
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1282 "/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 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
- return 0;
-#line 11061 "Photo.c"
- }
-#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 11065 "Photo.c"
- }
-#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_SUCCESS;
-#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 11083 "Photo.c"
-}
-
-
-void
-photo_create_pre_import (PhotoImportParams* params)
-{
- GFile* file = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- PhotoRow* _tmp2_;
- PhotoRow* _tmp3_;
- BackingPhotoRow* _tmp4_;
- gchar* _tmp5_;
- PhotoRow* _tmp6_;
- BackingPhotoRow* _tmp7_;
- PhotoRow* _tmp8_;
- BackingPhotoRow* _tmp9_;
- PhotoRow* _tmp10_;
- BackingPhotoRow* _tmp11_;
- PhotoRow* _tmp12_;
- PhotoRow* _tmp13_;
- PhotoRow* _tmp14_;
- BackingPhotoRow* _tmp15_;
- PhotoRow* _tmp16_;
- ImportID _tmp17_;
- PhotoRow* _tmp18_;
- PhotoRow* _tmp19_;
- PhotoRow* _tmp20_;
- PhotoRow* _tmp21_;
- PhotoRow* _tmp22_;
- PhotoRow* _tmp23_;
- PhotoRow* _tmp24_;
- PhotoRow* _tmp25_;
- BackingPhotoRow* _tmp26_;
- PhotoRow* _tmp27_;
- PhotoRow* _tmp28_;
- PhotoRow* _tmp29_;
- PhotoFileInterrogator* interrogator = NULL;
- GFile* _tmp30_;
- PhotoFileSnifferOptions _tmp31_;
- PhotoFileInterrogator* _tmp32_;
- GError * _inner_error_ = NULL;
-#line 1296 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO_IMPORT_PARAMS (params));
-#line 1297 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = params->file;
-#line 1297 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 1297 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp1_;
-#line 1298 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = params->row;
-#line 1298 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id_init (&_tmp2_->photo_id, PHOTO_ID_INVALID);
-#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = params->row;
-#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->master;
-#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = g_file_get_path (file);
-#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp4_->filepath);
-#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_->filepath = _tmp5_;
-#line 1300 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = params->row;
-#line 1300 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->master;
-#line 1300 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_init (&_tmp7_->dim, 0, 0);
-#line 1301 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = params->row;
-#line 1301 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_->master;
-#line 1301 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_->filesize = (gint64) 0;
-#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = params->row;
-#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->master;
-#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_->timestamp = (time_t) 0;
-#line 1303 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = params->row;
-#line 1303 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_->exposure_time = (time_t) 0;
-#line 1304 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = params->row;
-#line 1304 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_->orientation = ORIENTATION_TOP_LEFT;
-#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = params->row;
-#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_->master;
-#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_->original_orientation = ORIENTATION_TOP_LEFT;
-#line 1306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = params->row;
-#line 1306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = params->import_id;
-#line 1306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_->import_id = _tmp17_;
-#line 1307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = params->row;
-#line 1307 "/home/jens/Source/shotwell/src/Photo.vala"
- event_id_init (&_tmp18_->event_id, EVENT_ID_INVALID);
-#line 1308 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = params->row;
-#line 1308 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp19_->transformations);
-#line 1308 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_->transformations = NULL;
-#line 1309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = params->row;
-#line 1309 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp20_->md5);
-#line 1309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_->md5 = NULL;
-#line 1310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = params->row;
-#line 1310 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp21_->thumbnail_md5);
-#line 1310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_->thumbnail_md5 = NULL;
-#line 1311 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = params->row;
-#line 1311 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp22_->exif_md5);
-#line 1311 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_->exif_md5 = NULL;
-#line 1312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = params->row;
-#line 1312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_->time_created = (time_t) 0;
-#line 1313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = params->row;
-#line 1313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_->flags = (guint64) 0;
-#line 1314 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = params->row;
-#line 1314 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp25_->master;
-#line 1314 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_->file_format = PHOTO_FILE_FORMAT_JFIF;
-#line 1315 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = params->row;
-#line 1315 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp27_->title);
-#line 1315 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_->title = NULL;
-#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = params->row;
-#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp28_->comment);
-#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_->comment = NULL;
-#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = params->row;
-#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_->rating = RATING_UNRATED;
-#line 1319 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = params->file;
-#line 1319 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = params->sniffer_options;
-#line 1319 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = photo_file_interrogator_new (_tmp30_, _tmp31_);
-#line 1319 "/home/jens/Source/shotwell/src/Photo.vala"
- interrogator = _tmp32_;
-#line 11252 "Photo.c"
- {
- DetectedPhotoInformation* detected = NULL;
- DetectedPhotoInformation* _tmp33_;
- gboolean _tmp34_ = FALSE;
- gboolean _tmp35_ = FALSE;
- DetectedPhotoInformation* _tmp36_;
-#line 1321 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_interrogator_interrogate (interrogator, &_inner_error_);
-#line 1321 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11263 "Photo.c"
- goto __catch315_g_error;
- }
-#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = photo_file_interrogator_get_detected_photo_information (interrogator);
-#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp33_;
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = detected;
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp36_ != NULL) {
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = !photo_file_interrogator_get_is_photo_corrupted (interrogator);
-#line 11276 "Photo.c"
- } else {
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = FALSE;
-#line 11280 "Photo.c"
- }
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp35_) {
-#line 11284 "Photo.c"
- DetectedPhotoInformation* _tmp37_;
- PhotoFileFormat _tmp38_;
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = detected;
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _tmp37_->file_format;
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp38_ != PHOTO_FILE_FORMAT_UNKNOWN;
-#line 11293 "Photo.c"
- } else {
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = FALSE;
-#line 11297 "Photo.c"
- }
-#line 1323 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp34_) {
-#line 11301 "Photo.c"
- PhotoRow* _tmp39_;
- BackingPhotoRow* _tmp40_;
- DetectedPhotoInformation* _tmp41_;
- PhotoFileFormat _tmp42_;
-#line 1324 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = params->row;
-#line 1324 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = _tmp39_->master;
-#line 1324 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = detected;
-#line 1324 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = _tmp41_->file_format;
-#line 1324 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_->file_format = _tmp42_;
-#line 11316 "Photo.c"
- }
-#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 11320 "Photo.c"
- }
- goto __finally315;
- __catch315_g_error:
- {
- GError* err = NULL;
- gchar* _tmp43_;
- gchar* _tmp44_;
- GError* _tmp45_;
- const gchar* _tmp46_;
-#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = g_file_get_path (file);
-#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_;
-#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = err;
-#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = _tmp45_->message;
-#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:1326: Unable to interrogate photo file %s: %s", _tmp44_, _tmp46_);
-#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp44_);
-#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 11348 "Photo.c"
- }
- __finally315:
-#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1320 "/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 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 11363 "Photo.c"
- }
-#line 1296 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1296 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 11369 "Photo.c"
-}
-
-
-BackingPhotoRow*
-photo_query_backing_photo_row (Photo* self,
- GFile* file,
- PhotoFileSnifferOptions options,
- DetectedPhotoInformation* * detected,
- GError** error)
-{
- DetectedPhotoInformation* _vala_detected = NULL;
- BackingPhotoRow* result = NULL;
- BackingPhotoRow* backing = NULL;
- BackingPhotoRow* _tmp0_;
- GFileInfo* info = NULL;
- PhotoFileInterrogator* interrogator = NULL;
- PhotoFileInterrogator* _tmp8_;
- PhotoFileInterrogator* _tmp9_;
- PhotoFileInterrogator* _tmp10_;
- DetectedPhotoInformation* _tmp11_;
- gboolean _tmp12_ = FALSE;
- DetectedPhotoInformation* _tmp13_;
- GTimeVal modification_time = {0};
- GFileInfo* _tmp17_;
- GTimeVal _tmp18_ = {0};
- BackingPhotoRow* _tmp19_;
- gchar* _tmp20_;
- BackingPhotoRow* _tmp21_;
- GTimeVal _tmp22_;
- glong _tmp23_;
- BackingPhotoRow* _tmp24_;
- GFileInfo* _tmp25_;
- BackingPhotoRow* _tmp26_;
- DetectedPhotoInformation* _tmp27_;
- PhotoFileFormat _tmp28_;
- BackingPhotoRow* _tmp29_;
- DetectedPhotoInformation* _tmp30_;
- Dimensions _tmp31_;
- Orientation _tmp32_ = 0;
- DetectedPhotoInformation* _tmp33_;
- PhotoMetadata* _tmp34_;
- BackingPhotoRow* _tmp37_;
- GError * _inner_error_ = NULL;
-#line 1330 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 1330 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_detected = NULL;
-#line 1334 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = backing_photo_row_new ();
-#line 1334 "/home/jens/Source/shotwell/src/Photo.vala"
- backing = _tmp0_;
-#line 1336 "/home/jens/Source/shotwell/src/Photo.vala"
- info = NULL;
-#line 11427 "Photo.c"
- {
- GFileInfo* _tmp1_ = NULL;
- GFileInfo* _tmp2_;
- GFileInfo* _tmp3_;
-#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = g_file_query_info (file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp2_;
-#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11438 "Photo.c"
- goto __catch316_g_error;
- }
-#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp1_;
-#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = NULL;
-#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
- info = _tmp3_;
-#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 11451 "Photo.c"
- }
- goto __finally316;
- __catch316_g_error:
- {
- GError* err = NULL;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = g_file_get_path (file);
-#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = err;
-#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->message;
-#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
- g_critical ("Photo.vala:1341: Unable to read file information for %s: %s", _tmp5_, _tmp7_);
-#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp5_);
-#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
- if (detected) {
-#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
- *detected = _vala_detected;
-#line 11489 "Photo.c"
- } else {
-#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 11493 "Photo.c"
- }
-#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 11497 "Photo.c"
- }
- __finally316:
-#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 11510 "Photo.c"
- }
-#line 1347 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo_file_interrogator_new (file, options);
-#line 1347 "/home/jens/Source/shotwell/src/Photo.vala"
- interrogator = _tmp8_;
-#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = interrogator;
-#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_interrogator_interrogate (_tmp9_, &_inner_error_);
-#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 11532 "Photo.c"
- }
-#line 1349 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = interrogator;
-#line 1349 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_file_interrogator_get_detected_photo_information (_tmp10_);
-#line 1349 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 1349 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_detected = _tmp11_;
-#line 1350 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _vala_detected;
-#line 1350 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp13_ == NULL) {
-#line 1350 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = TRUE;
-#line 11548 "Photo.c"
- } else {
- PhotoFileInterrogator* _tmp14_;
-#line 1350 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = interrogator;
-#line 1350 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_file_interrogator_get_is_photo_corrupted (_tmp14_);
-#line 11555 "Photo.c"
- }
-#line 1350 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp12_) {
-#line 11559 "Photo.c"
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 1351 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 1351 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_;
-#line 1351 "/home/jens/Source/shotwell/src/Photo.vala"
- g_critical ("Photo.vala:1351: Photo update: %s no longer a recognized image", _tmp16_);
-#line 1351 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp16_);
-#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
- if (detected) {
-#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
- *detected = _vala_detected;
-#line 11582 "Photo.c"
- } else {
-#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 11586 "Photo.c"
- }
-#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 11590 "Photo.c"
- }
-#line 1356 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = info;
-#line 1356 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_info_get_modification_time (_tmp17_, &_tmp18_);
-#line 1356 "/home/jens/Source/shotwell/src/Photo.vala"
- modification_time = _tmp18_;
-#line 1358 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = backing;
-#line 1358 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = g_file_get_path (file);
-#line 1358 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp19_->filepath);
-#line 1358 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_->filepath = _tmp20_;
-#line 1359 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = backing;
-#line 1359 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = modification_time;
-#line 1359 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_.tv_sec;
-#line 1359 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_->timestamp = (time_t) _tmp23_;
-#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = backing;
-#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = info;
-#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_->filesize = g_file_info_get_size (_tmp25_);
-#line 1361 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = backing;
-#line 1361 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _vala_detected;
-#line 1361 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp27_->file_format;
-#line 1361 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_->file_format = _tmp28_;
-#line 1362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = backing;
-#line 1362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _vala_detected;
-#line 1362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_->image_dim;
-#line 1362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_->dim = _tmp31_;
-#line 1363 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _vala_detected;
-#line 1363 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_->metadata;
-#line 1363 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp34_ != NULL) {
-#line 11642 "Photo.c"
- DetectedPhotoInformation* _tmp35_;
- PhotoMetadata* _tmp36_;
-#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _vala_detected;
-#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_->metadata;
-#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = photo_metadata_get_orientation (_tmp36_);
-#line 11651 "Photo.c"
- } else {
-#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = ORIENTATION_TOP_LEFT;
-#line 11655 "Photo.c"
- }
-#line 1363 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = backing;
-#line 1363 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_->original_orientation = _tmp32_;
-#line 1366 "/home/jens/Source/shotwell/src/Photo.vala"
- result = backing;
-#line 1366 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 1366 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 1366 "/home/jens/Source/shotwell/src/Photo.vala"
- if (detected) {
-#line 1366 "/home/jens/Source/shotwell/src/Photo.vala"
- *detected = _vala_detected;
-#line 11671 "Photo.c"
- } else {
-#line 1366 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 11675 "Photo.c"
- }
-#line 1366 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 11679 "Photo.c"
-}
-
-
-static void
-_vala_array_add91 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 11695 "Photo.c"
- }
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 11701 "Photo.c"
-}
-
-
-static void
-_vala_array_add92 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 11717 "Photo.c"
- }
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 11723 "Photo.c"
-}
-
-
-static void
-_vala_array_add93 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 11739 "Photo.c"
- }
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 11745 "Photo.c"
-}
-
-
-static void
-_vala_array_add94 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 11761 "Photo.c"
- }
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 11767 "Photo.c"
-}
-
-
-static void
-_vala_array_add95 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 11783 "Photo.c"
- }
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 11789 "Photo.c"
-}
-
-
-static void
-_vala_array_add96 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 11805 "Photo.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 11811 "Photo.c"
-}
-
-
-static gpointer
-_media_metadata_ref0 (gpointer self)
-{
-#line 1491 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? media_metadata_ref (self) : NULL;
-#line 11820 "Photo.c"
-}
-
-
-gboolean
-photo_prepare_for_reimport_master (Photo* self,
- PhotoReimportMasterState* * reimport_state,
- GError** error)
-{
- PhotoReimportMasterState* _vala_reimport_state = NULL;
- gboolean result = FALSE;
- GFile* file = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- DetectedPhotoInformation* detected = NULL;
- BackingPhotoRow* backing = NULL;
- GFile* _tmp4_;
- DetectedPhotoInformation* _tmp5_ = NULL;
- BackingPhotoRow* _tmp6_;
- BackingPhotoRow* _tmp8_;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_ = FALSE;
- DetectedPhotoInformation* _tmp14_;
- GdkColorspace _tmp15_;
- PhotoRow* updated_row = NULL;
- PhotoRow* _tmp23_;
- gchar** list = NULL;
- gchar** _tmp29_;
- gint list_length1;
- gint _list_size_;
- PhotoRow* _tmp30_;
- const gchar* _tmp31_;
- DetectedPhotoInformation* _tmp32_;
- const gchar* _tmp33_;
- PhotoRow* _tmp36_;
- BackingPhotoRow* _tmp37_;
- Orientation _tmp38_;
- BackingPhotoRow* _tmp39_;
- Orientation _tmp40_;
- DetectedPhotoInformation* _tmp47_;
- PhotoMetadata* _tmp48_;
- PhotoRow* _tmp83_;
- BackingPhotoRow* _tmp84_;
- BackingPhotoRow* _tmp85_;
- PhotoRow* _tmp86_;
- DetectedPhotoInformation* _tmp87_;
- const gchar* _tmp88_;
- gchar* _tmp89_;
- PhotoRow* _tmp90_;
- DetectedPhotoInformation* _tmp91_;
- const gchar* _tmp92_;
- gchar* _tmp93_;
- PhotoRow* _tmp94_;
- DetectedPhotoInformation* _tmp95_;
- const gchar* _tmp96_;
- gchar* _tmp97_;
- PhotoMetadata* metadata = NULL;
- DetectedPhotoInformation* _tmp98_;
- PhotoMetadata* _tmp99_;
- PhotoRow* _tmp120_;
- PhotoMetadata* _tmp121_;
- gchar** _tmp122_;
- gint _tmp122__length1;
- PhotoReimportMasterStateImpl* _tmp123_;
- GError * _inner_error_ = NULL;
-#line 1430 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 1431 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_reimport_state);
-#line 1431 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_reimport_state = NULL;
-#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_master_reader (self);
-#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp1_);
-#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp3_;
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = file;
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_query_backing_photo_row (self, _tmp4_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, &_tmp5_, &_inner_error_);
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp5_;
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- backing = _tmp6_;
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11917 "Photo.c"
- gboolean _tmp7_ = FALSE;
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1436 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp7_;
-#line 11927 "Photo.c"
- }
-#line 1438 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = backing;
-#line 1438 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ == NULL) {
-#line 11933 "Photo.c"
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 1439 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = file;
-#line 1439 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = g_file_get_path (_tmp9_);
-#line 1439 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_;
-#line 1439 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:1439: Unable to retrieve photo state from %s for reimport", _tmp11_);
-#line 1439 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp11_);
-#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
- if (reimport_state) {
-#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
- *reimport_state = _vala_reimport_state;
-#line 11959 "Photo.c"
- } else {
-#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_reimport_state);
-#line 11963 "Photo.c"
- }
-#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 11967 "Photo.c"
- }
-#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = detected;
-#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_->colorspace;
-#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_ != GDK_COLORSPACE_RGB) {
-#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = TRUE;
-#line 11977 "Photo.c"
- } else {
- DetectedPhotoInformation* _tmp16_;
- gint _tmp17_;
-#line 1445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = detected;
-#line 1445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_->channels;
-#line 1445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp17_ < 3;
-#line 11987 "Photo.c"
- }
-#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp13_) {
-#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = TRUE;
-#line 11993 "Photo.c"
- } else {
- DetectedPhotoInformation* _tmp18_;
- gint _tmp19_;
-#line 1446 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = detected;
-#line 1446 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_->bits_per_channel;
-#line 1446 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp19_ != 8;
-#line 12003 "Photo.c"
- }
-#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp12_) {
-#line 12007 "Photo.c"
- GFile* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
-#line 1447 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = file;
-#line 1447 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = g_file_get_path (_tmp20_);
-#line 1447 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp21_;
-#line 1447 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:1447: Not re-importing %s: Unsupported color format", _tmp22_);
-#line 1447 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp22_);
-#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
- if (reimport_state) {
-#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
- *reimport_state = _vala_reimport_state;
-#line 12033 "Photo.c"
- } else {
-#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_reimport_state);
-#line 12037 "Photo.c"
- }
-#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 12041 "Photo.c"
- }
-#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = photo_row_new ();
-#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
- updated_row = _tmp23_;
-#line 12047 "Photo.c"
- {
- PhotoRow* _tmp24_;
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = self->row;
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 12054 "Photo.c"
- {
- PhotoRow* _tmp25_;
- PhotoRow* _tmp26_;
-#line 1455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = self->row;
-#line 1455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _photo_row_ref0 (_tmp25_);
-#line 1455 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (updated_row);
-#line 1455 "/home/jens/Source/shotwell/src/Photo.vala"
- updated_row = _tmp26_;
-#line 12066 "Photo.c"
- }
- __finally317:
- {
- PhotoRow* _tmp27_;
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = self->row;
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 12075 "Photo.c"
- }
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12079 "Photo.c"
- gboolean _tmp28_ = FALSE;
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (updated_row);
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp28_;
-#line 12093 "Photo.c"
- }
- }
-#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = g_new0 (gchar*, 0 + 1);
-#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
- list = _tmp29_;
-#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
- list_length1 = 0;
-#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
- _list_size_ = list_length1;
-#line 1461 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = updated_row;
-#line 1461 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_->md5;
-#line 1461 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = detected;
-#line 1461 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_->md5;
-#line 1461 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_strcmp0 (_tmp31_, _tmp33_) != 0) {
-#line 12114 "Photo.c"
- gchar** _tmp34_;
- gint _tmp34__length1;
- gchar* _tmp35_;
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = list;
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34__length1 = list_length1;
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = g_strdup ("metadata:md5");
-#line 1462 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add91 (&list, &list_length1, &_list_size_, _tmp35_);
-#line 12126 "Photo.c"
- }
-#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = updated_row;
-#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _tmp36_->master;
-#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _tmp37_->original_orientation;
-#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = backing;
-#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = _tmp39_->original_orientation;
-#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp38_ != _tmp40_) {
-#line 12140 "Photo.c"
- gchar** _tmp41_;
- gint _tmp41__length1;
- gchar* _tmp42_;
- PhotoRow* _tmp43_;
- BackingPhotoRow* _tmp44_;
- BackingPhotoRow* _tmp45_;
- Orientation _tmp46_;
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = list;
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41__length1 = list_length1;
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = g_strdup ("image:orientation");
-#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add92 (&list, &list_length1, &_list_size_, _tmp42_);
-#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = updated_row;
-#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_->master;
-#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = backing;
-#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = _tmp45_->original_orientation;
-#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_->original_orientation = _tmp46_;
-#line 12166 "Photo.c"
- }
-#line 1469 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = detected;
-#line 1469 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp47_->metadata;
-#line 1469 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp48_ != NULL) {
-#line 12174 "Photo.c"
- MetadataDateTime* date_time = NULL;
- DetectedPhotoInformation* _tmp49_;
- PhotoMetadata* _tmp50_;
- MetadataDateTime* _tmp51_;
- gboolean _tmp52_ = FALSE;
- MetadataDateTime* _tmp53_;
- PhotoRow* _tmp59_;
- const gchar* _tmp60_;
- DetectedPhotoInformation* _tmp61_;
- PhotoMetadata* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- gboolean _tmp65_;
- PhotoRow* _tmp68_;
- const gchar* _tmp69_;
- DetectedPhotoInformation* _tmp70_;
- PhotoMetadata* _tmp71_;
- gchar* _tmp72_;
- gchar* _tmp73_;
- gboolean _tmp74_;
- PhotoRow* _tmp77_;
- Rating _tmp78_;
- DetectedPhotoInformation* _tmp79_;
- PhotoMetadata* _tmp80_;
-#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = detected;
-#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = _tmp49_->metadata;
-#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = photo_metadata_get_exposure_date_time (_tmp50_);
-#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
- date_time = _tmp51_;
-#line 1471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = date_time;
-#line 1471 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp53_ != NULL) {
-#line 12211 "Photo.c"
- PhotoRow* _tmp54_;
- time_t _tmp55_;
- MetadataDateTime* _tmp56_;
-#line 1471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = updated_row;
-#line 1471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = _tmp54_->exposure_time;
-#line 1471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = date_time;
-#line 1471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = _tmp55_ != metadata_date_time_get_timestamp (_tmp56_);
-#line 12223 "Photo.c"
- } else {
-#line 1471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = FALSE;
-#line 12227 "Photo.c"
- }
-#line 1471 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp52_) {
-#line 12231 "Photo.c"
- gchar** _tmp57_;
- gint _tmp57__length1;
- gchar* _tmp58_;
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = list;
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57__length1 = list_length1;
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = g_strdup ("metadata:exposure-time");
-#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add93 (&list, &list_length1, &_list_size_, _tmp58_);
-#line 12243 "Photo.c"
- }
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = updated_row;
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = _tmp59_->title;
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = detected;
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = _tmp61_->metadata;
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = _tmp63_;
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = g_strcmp0 (_tmp60_, _tmp64_) != 0;
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp64_);
-#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp65_) {
-#line 12263 "Photo.c"
- gchar** _tmp66_;
- gint _tmp66__length1;
- gchar* _tmp67_;
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = list;
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66__length1 = list_length1;
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = g_strdup ("metadata:name");
-#line 1475 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add94 (&list, &list_length1, &_list_size_, _tmp67_);
-#line 12275 "Photo.c"
- }
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = updated_row;
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = _tmp68_->comment;
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = detected;
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = _tmp70_->metadata;
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = _tmp72_;
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = g_strcmp0 (_tmp69_, _tmp73_) != 0;
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp73_);
-#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp74_) {
-#line 12295 "Photo.c"
- gchar** _tmp75_;
- gint _tmp75__length1;
- gchar* _tmp76_;
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = list;
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75__length1 = list_length1;
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = g_strdup ("metadata:comment");
-#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add95 (&list, &list_length1, &_list_size_, _tmp76_);
-#line 12307 "Photo.c"
- }
-#line 1480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = updated_row;
-#line 1480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = _tmp77_->rating;
-#line 1480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = detected;
-#line 1480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = _tmp79_->metadata;
-#line 1480 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp78_ != photo_metadata_get_rating (_tmp80_)) {
-#line 12319 "Photo.c"
- gchar** _tmp81_;
- gint _tmp81__length1;
- gchar* _tmp82_;
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = list;
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81__length1 = list_length1;
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = g_strdup ("metadata:rating");
-#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add96 (&list, &list_length1, &_list_size_, _tmp82_);
-#line 12331 "Photo.c"
- }
-#line 1469 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 12335 "Photo.c"
- }
-#line 1484 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = updated_row;
-#line 1484 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_ = backing;
-#line 1484 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp85_ = _backing_photo_row_ref0 (_tmp84_);
-#line 1484 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp83_->master);
-#line 1484 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_->master = _tmp85_;
-#line 1485 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp86_ = updated_row;
-#line 1485 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp87_ = detected;
-#line 1485 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp88_ = _tmp87_->md5;
-#line 1485 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp89_ = g_strdup (_tmp88_);
-#line 1485 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp86_->md5);
-#line 1485 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp86_->md5 = _tmp89_;
-#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp90_ = updated_row;
-#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp91_ = detected;
-#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp92_ = _tmp91_->exif_md5;
-#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp93_ = g_strdup (_tmp92_);
-#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp90_->exif_md5);
-#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp90_->exif_md5 = _tmp93_;
-#line 1487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp94_ = updated_row;
-#line 1487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp95_ = detected;
-#line 1487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp96_ = _tmp95_->thumbnail_md5;
-#line 1487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp97_ = g_strdup (_tmp96_);
-#line 1487 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp94_->thumbnail_md5);
-#line 1487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp94_->thumbnail_md5 = _tmp97_;
-#line 1489 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = NULL;
-#line 1490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp98_ = detected;
-#line 1490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp99_ = _tmp98_->metadata;
-#line 1490 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp99_ != NULL) {
-#line 12391 "Photo.c"
- DetectedPhotoInformation* _tmp100_;
- PhotoMetadata* _tmp101_;
- PhotoMetadata* _tmp102_;
- MetadataDateTime* date_time = NULL;
- DetectedPhotoInformation* _tmp103_;
- PhotoMetadata* _tmp104_;
- MetadataDateTime* _tmp105_;
- MetadataDateTime* _tmp106_;
- PhotoRow* _tmp109_;
- DetectedPhotoInformation* _tmp110_;
- PhotoMetadata* _tmp111_;
- gchar* _tmp112_;
- PhotoRow* _tmp113_;
- DetectedPhotoInformation* _tmp114_;
- PhotoMetadata* _tmp115_;
- gchar* _tmp116_;
- PhotoRow* _tmp117_;
- DetectedPhotoInformation* _tmp118_;
- PhotoMetadata* _tmp119_;
-#line 1491 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp100_ = detected;
-#line 1491 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp101_ = _tmp100_->metadata;
-#line 1491 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp102_ = _media_metadata_ref0 (_tmp101_);
-#line 1491 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 1491 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp102_;
-#line 1493 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp103_ = detected;
-#line 1493 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp104_ = _tmp103_->metadata;
-#line 1493 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp105_ = photo_metadata_get_exposure_date_time (_tmp104_);
-#line 1493 "/home/jens/Source/shotwell/src/Photo.vala"
- date_time = _tmp105_;
-#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp106_ = date_time;
-#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp106_ != NULL) {
-#line 12433 "Photo.c"
- PhotoRow* _tmp107_;
- MetadataDateTime* _tmp108_;
-#line 1495 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp107_ = updated_row;
-#line 1495 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp108_ = date_time;
-#line 1495 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp107_->exposure_time = metadata_date_time_get_timestamp (_tmp108_);
-#line 12442 "Photo.c"
- }
-#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp109_ = updated_row;
-#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp110_ = detected;
-#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp111_ = _tmp110_->metadata;
-#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp112_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp111_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp109_->title);
-#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp109_->title = _tmp112_;
-#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp113_ = updated_row;
-#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp114_ = detected;
-#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp115_ = _tmp114_->metadata;
-#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp116_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp113_->comment);
-#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp113_->comment = _tmp116_;
-#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp117_ = updated_row;
-#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp118_ = detected;
-#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp119_ = _tmp118_->metadata;
-#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp117_->rating = photo_metadata_get_rating (_tmp119_);
-#line 1490 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 12478 "Photo.c"
- }
-#line 1502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp120_ = updated_row;
-#line 1502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp121_ = metadata;
-#line 1502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp122_ = list;
-#line 1502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp122__length1 = list_length1;
-#line 1502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp123_ = photo_reimport_master_state_impl_new (_tmp120_, _tmp121_, _tmp122_, _tmp122__length1);
-#line 1502 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_reimport_state);
-#line 1502 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_reimport_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp123_, PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState);
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL);
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (updated_row);
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- if (reimport_state) {
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- *reimport_state = _vala_reimport_state;
-#line 12512 "Photo.c"
- } else {
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_reimport_state);
-#line 12516 "Photo.c"
- }
-#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 12520 "Photo.c"
-}
-
-
-static void
-photo_real_apply_user_metadata_for_reimport (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 1507 "/home/jens/Source/shotwell/src/Photo.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_apply_user_metadata_for_reimport'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 1507 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 12532 "Photo.c"
-}
-
-
-void
-photo_apply_user_metadata_for_reimport (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 1507 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 1507 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->apply_user_metadata_for_reimport (self, metadata);
-#line 12544 "Photo.c"
-}
-
-
-static gpointer
-_photo_reimport_master_state_ref0 (gpointer self)
-{
-#line 1511 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? photo_reimport_master_state_ref (self) : NULL;
-#line 12553 "Photo.c"
-}
-
-
-static void
-_vala_array_add97 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 12569 "Photo.c"
- }
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 12575 "Photo.c"
-}
-
-
-static void
-_vala_array_add98 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 12591 "Photo.c"
- }
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 12597 "Photo.c"
-}
-
-
-void
-photo_finish_reimport_master (Photo* self,
- PhotoReimportMasterState* state,
- GError** error)
-{
- PhotoReimportMasterStateImpl* reimport_state = NULL;
- PhotoReimportMasterStateImpl* _tmp0_;
- PhotoTable* _tmp1_;
- PhotoTable* _tmp2_;
- PhotoRow* _tmp3_;
- PhotoMetadata* _tmp19_;
- gboolean _tmp21_;
- gchar** _tmp26_;
- gint _tmp26__length1;
- PhotoMetadata* _tmp30_;
- GError * _inner_error_ = NULL;
-#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (PHOTO_IS_REIMPORT_MASTER_STATE (state));
-#line 1511 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _photo_reimport_master_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (state, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl));
-#line 1511 "/home/jens/Source/shotwell/src/Photo.vala"
- reimport_state = _tmp0_;
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_table_get_instance ();
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = reimport_state->row;
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_reimport (_tmp2_, _tmp3_, &_inner_error_);
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp2_);
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 12645 "Photo.c"
- } else {
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 1513 "/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 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 12655 "Photo.c"
- }
- }
- {
- PhotoRow* _tmp4_;
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 12664 "Photo.c"
- {
- BackingPhotoRow* original_master = NULL;
- PhotoRow* _tmp5_;
- BackingPhotoRow* _tmp6_;
- BackingPhotoRow* _tmp7_;
- PhotoRow* _tmp8_;
- PhotoRow* _tmp9_;
- PhotoRow* _tmp10_;
- BackingPhotoRow* _tmp11_;
- BackingPhotoRow* _tmp12_;
- PhotoRow* _tmp13_;
- BackingPhotoRow* _tmp14_;
- PhotoRow* _tmp15_;
- BackingPhotoRow* _tmp16_;
- gboolean _tmp17_;
-#line 1517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 1517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_->master;
-#line 1517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _backing_photo_row_ref0 (_tmp6_);
-#line 1517 "/home/jens/Source/shotwell/src/Photo.vala"
- original_master = _tmp7_;
-#line 1518 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = reimport_state->row;
-#line 1518 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _photo_row_ref0 (_tmp8_);
-#line 1518 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (self->row);
-#line 1518 "/home/jens/Source/shotwell/src/Photo.vala"
- self->row = _tmp9_;
-#line 1519 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->row;
-#line 1519 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = original_master;
-#line 1519 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _backing_photo_row_ref0 (_tmp11_);
-#line 1519 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp10_->master);
-#line 1519 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_->master = _tmp12_;
-#line 1520 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->row;
-#line 1520 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_->master;
-#line 1520 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = reimport_state->row;
-#line 1520 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_->master;
-#line 1520 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_row_copy_from (_tmp14_, _tmp16_);
-#line 1521 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = reimport_state->metadata_only;
-#line 1521 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp17_) {
-#line 1522 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_internal_remove_all_transformations (self, FALSE);
-#line 12722 "Photo.c"
- }
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (original_master);
-#line 12726 "Photo.c"
- }
- __finally318:
- {
- PhotoRow* _tmp18_;
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = self->row;
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 12735 "Photo.c"
- }
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 12747 "Photo.c"
- } else {
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 1515 "/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 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1515 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 12757 "Photo.c"
- }
- }
- }
-#line 1525 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = reimport_state->metadata;
-#line 1525 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp19_ != NULL) {
-#line 12765 "Photo.c"
- PhotoMetadata* _tmp20_;
-#line 1526 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = reimport_state->metadata;
-#line 1526 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_apply_user_metadata_for_reimport (self, _tmp20_);
-#line 12771 "Photo.c"
- }
-#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = reimport_state->metadata_only;
-#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp21_) {
-#line 12777 "Photo.c"
- gchar** _tmp22_;
- gint _tmp22__length1;
- gchar* _tmp23_;
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = reimport_state->alterations;
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22__length1 = reimport_state->alterations_length1;
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = g_strdup ("image:master");
-#line 1529 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add97 (&reimport_state->alterations, &reimport_state->alterations_length1, &reimport_state->_alterations_size_, _tmp23_);
-#line 1530 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_master_baseline (self)) {
-#line 12791 "Photo.c"
- gchar** _tmp24_;
- gint _tmp24__length1;
- gchar* _tmp25_;
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = reimport_state->alterations;
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24__length1 = reimport_state->alterations_length1;
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = g_strdup ("image:baseline");
-#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add98 (&reimport_state->alterations, &reimport_state->alterations_length1, &reimport_state->_alterations_size_, _tmp25_);
-#line 12803 "Photo.c"
- }
- }
-#line 1534 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = reimport_state->alterations;
-#line 1534 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26__length1 = reimport_state->alterations_length1;
-#line 1534 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp26__length1 > 0) {
-#line 12812 "Photo.c"
- gchar** _tmp27_;
- gint _tmp27__length1;
- Alteration* _tmp28_;
- Alteration* _tmp29_;
-#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = reimport_state->alterations;
-#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27__length1 = reimport_state->alterations_length1;
-#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = alteration_new_from_array (_tmp27_, _tmp27__length1);
-#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _tmp28_;
-#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp29_);
-#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp29_);
-#line 12829 "Photo.c"
- }
-#line 1537 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = reimport_state->metadata;
-#line 1537 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_master_reimported (self, _tmp30_);
-#line 1539 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_master_baseline (self)) {
-#line 12837 "Photo.c"
- PhotoMetadata* _tmp31_;
-#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = reimport_state->metadata;
-#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_baseline_reimported (self, _tmp31_);
-#line 12843 "Photo.c"
- }
-#line 1542 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_master_source (self)) {
-#line 12847 "Photo.c"
- PhotoMetadata* _tmp32_;
-#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = reimport_state->metadata;
-#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_source_reimported (self, _tmp32_);
-#line 12853 "Photo.c"
- }
-#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 12857 "Photo.c"
-}
-
-
-static gboolean
-photo_verify_file_for_reimport (Photo* self,
- GFile* file,
- BackingPhotoRow* * backing,
- DetectedPhotoInformation* * detected,
- GError** error)
-{
- BackingPhotoRow* _vala_backing = NULL;
- DetectedPhotoInformation* _vala_detected = NULL;
- gboolean result = FALSE;
- BackingPhotoRow* _tmp0_ = NULL;
- DetectedPhotoInformation* _tmp1_ = NULL;
- BackingPhotoRow* _tmp2_;
- BackingPhotoRow* _tmp4_;
- BackingPhotoRow* _tmp5_;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- DetectedPhotoInformation* _tmp8_;
- GdkColorspace _tmp9_;
- GError * _inner_error_ = NULL;
-#line 1547 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 1547 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_query_backing_photo_row (self, file, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp1_, &_inner_error_);
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_detected = _tmp1_;
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp2_;
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12895 "Photo.c"
- gboolean _tmp3_ = FALSE;
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp3_;
-#line 12901 "Photo.c"
- }
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp0_;
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_vala_backing);
-#line 1549 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_backing = _tmp4_;
-#line 1551 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _vala_backing;
-#line 1551 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp5_ == NULL) {
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing) {
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- *backing = _vala_backing;
-#line 12923 "Photo.c"
- } else {
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_vala_backing);
-#line 12927 "Photo.c"
- }
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- if (detected) {
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- *detected = _vala_detected;
-#line 12933 "Photo.c"
- } else {
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 12937 "Photo.c"
- }
-#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 12941 "Photo.c"
- }
-#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _vala_detected;
-#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_->colorspace;
-#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp9_ != GDK_COLORSPACE_RGB) {
-#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = TRUE;
-#line 12951 "Photo.c"
- } else {
- DetectedPhotoInformation* _tmp10_;
- gint _tmp11_;
-#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _vala_detected;
-#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->channels;
-#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp11_ < 3;
-#line 12961 "Photo.c"
- }
-#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_) {
-#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = TRUE;
-#line 12967 "Photo.c"
- } else {
- DetectedPhotoInformation* _tmp12_;
- gint _tmp13_;
-#line 1558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _vala_detected;
-#line 1558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->bits_per_channel;
-#line 1558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp13_ != 8;
-#line 12977 "Photo.c"
- }
-#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_) {
-#line 12981 "Photo.c"
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = g_file_get_path (file);
-#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:1559: Not re-importing %s: Unsupported color format", _tmp15_);
-#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp15_);
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing) {
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- *backing = _vala_backing;
-#line 13000 "Photo.c"
- } else {
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_vala_backing);
-#line 13004 "Photo.c"
- }
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- if (detected) {
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- *detected = _vala_detected;
-#line 13010 "Photo.c"
- } else {
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 13014 "Photo.c"
- }
-#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 13018 "Photo.c"
- }
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp0_);
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing) {
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- *backing = _vala_backing;
-#line 13028 "Photo.c"
- } else {
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_vala_backing);
-#line 13032 "Photo.c"
- }
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- if (detected) {
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- *detected = _vala_detected;
-#line 13038 "Photo.c"
- } else {
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (_vala_detected);
-#line 13042 "Photo.c"
- }
-#line 1564 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 13046 "Photo.c"
-}
-
-
-gboolean
-photo_prepare_for_reimport_editable (Photo* self,
- PhotoReimportEditableState* * state,
- GError** error)
-{
- PhotoReimportEditableState* _vala_state = NULL;
- gboolean result = FALSE;
- GFile* file = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- DetectedPhotoInformation* detected = NULL;
- BackingPhotoRow* backing = NULL;
- gboolean _tmp2_ = FALSE;
- GFile* _tmp3_;
- BackingPhotoRow* _tmp4_ = NULL;
- DetectedPhotoInformation* _tmp5_ = NULL;
- gboolean _tmp6_;
- BackingPhotoRow* _tmp8_;
- DetectedPhotoInformation* _tmp9_;
- PhotoMetadata* _tmp10_;
- PhotoReimportEditableStateImpl* _tmp11_;
- GError * _inner_error_ = NULL;
-#line 1568 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 1569 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 1569 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = NULL;
-#line 1571 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_editable_file (self);
-#line 1571 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp0_;
-#line 1572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = file;
-#line 1572 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 13094 "Photo.c"
- } else {
-#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 13098 "Photo.c"
- }
-#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 13102 "Photo.c"
- }
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = file;
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_verify_file_for_reimport (self, _tmp3_, &_tmp4_, &_tmp5_, &_inner_error_);
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- backing = _tmp4_;
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp5_;
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp6_;
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13120 "Photo.c"
- gboolean _tmp7_ = FALSE;
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp7_;
-#line 13132 "Photo.c"
- }
-#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp2_) {
-#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 13148 "Photo.c"
- } else {
-#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 13152 "Photo.c"
- }
-#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 13156 "Photo.c"
- }
-#line 1580 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = backing;
-#line 1580 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = detected;
-#line 1580 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->metadata;
-#line 1580 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_reimport_editable_state_impl_new (_tmp8_, _tmp10_);
-#line 1580 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 1580 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState);
-#line 1582 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 1582 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1582 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1582 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1582 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 1582 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 13182 "Photo.c"
- } else {
-#line 1582 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 13186 "Photo.c"
- }
-#line 1582 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 13190 "Photo.c"
-}
-
-
-static gpointer
-_photo_reimport_editable_state_ref0 (gpointer self)
-{
-#line 1591 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? photo_reimport_editable_state_ref (self) : NULL;
-#line 13199 "Photo.c"
-}
-
-
-void
-photo_finish_reimport_editable (Photo* self,
- PhotoReimportEditableState* state,
- GError** error)
-{
- BackingPhotoID editable_id = {0};
- BackingPhotoID _tmp0_ = {0};
- PhotoReimportEditableStateImpl* reimport_state = NULL;
- PhotoReimportEditableStateImpl* _tmp1_;
- PhotoReimportEditableStateImpl* _tmp2_;
- gboolean _tmp3_;
- PhotoReimportEditableStateImpl* _tmp19_;
- PhotoMetadata* _tmp20_;
- gchar* list = NULL;
- gchar* _tmp33_;
- PhotoReimportEditableStateImpl* _tmp34_;
- gboolean _tmp35_;
- const gchar* _tmp38_;
- Alteration* _tmp39_;
- Alteration* _tmp40_;
- PhotoReimportEditableStateImpl* _tmp41_;
- PhotoMetadata* _tmp42_;
- GError * _inner_error_ = NULL;
-#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (PHOTO_IS_REIMPORT_EDITABLE_STATE (state));
-#line 1587 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_editable_id (self, &_tmp0_);
-#line 1587 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_id = _tmp0_;
-#line 1588 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing_photo_id_is_invalid (&editable_id)) {
-#line 1589 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13238 "Photo.c"
- }
-#line 1591 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _photo_reimport_editable_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (state, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl));
-#line 1591 "/home/jens/Source/shotwell/src/Photo.vala"
- reimport_state = _tmp1_;
-#line 1593 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = reimport_state;
-#line 1593 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->metadata_only;
-#line 1593 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp3_) {
-#line 13250 "Photo.c"
- BackingPhotoTable* _tmp4_;
- BackingPhotoTable* _tmp5_;
- PhotoReimportEditableStateImpl* _tmp6_;
- BackingPhotoRow* _tmp7_;
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = backing_photo_table_get_instance ();
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = reimport_state;
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->backing_state;
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_update (_tmp5_, _tmp7_, &_inner_error_);
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp5_);
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (reimport_state);
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13277 "Photo.c"
- } else {
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (reimport_state);
-#line 1594 "/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 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1594 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13287 "Photo.c"
- }
- }
- {
- PhotoRow* _tmp8_;
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->row;
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 13296 "Photo.c"
- {
- PhotoReimportEditableStateImpl* _tmp9_;
- BackingPhotoRow* _tmp10_;
- BackingPhotoRow* _tmp11_;
- PhotoReimportEditableStateImpl* _tmp12_;
- BackingPhotoRow* _tmp13_;
- Orientation _tmp14_;
-#line 1597 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = reimport_state;
-#line 1597 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->backing_state;
-#line 1597 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _backing_photo_row_ref0 (_tmp10_);
-#line 1597 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->priv->editable);
-#line 1597 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable = _tmp11_;
-#line 1598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = reimport_state;
-#line 1598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->backing_state;
-#line 1598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_->original_orientation;
-#line 1598 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_orientation (self, _tmp14_);
-#line 1599 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_internal_remove_all_transformations (self, FALSE);
-#line 13324 "Photo.c"
- }
- __finally319:
- {
- PhotoRow* _tmp15_;
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 13333 "Photo.c"
- }
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (reimport_state);
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13345 "Photo.c"
- } else {
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (reimport_state);
-#line 1596 "/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 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1596 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13355 "Photo.c"
- }
- }
- }
- } else {
- PhotoReimportEditableStateImpl* _tmp16_;
- BackingPhotoRow* _tmp17_;
- Orientation _tmp18_;
-#line 1602 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = reimport_state;
-#line 1602 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_->backing_state;
-#line 1602 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_->original_orientation;
-#line 1602 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_orientation (self, _tmp18_);
-#line 13371 "Photo.c"
- }
-#line 1605 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = reimport_state;
-#line 1605 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _tmp19_->metadata;
-#line 1605 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp20_ != NULL) {
-#line 13379 "Photo.c"
- PhotoReimportEditableStateImpl* _tmp21_;
- PhotoMetadata* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- PhotoReimportEditableStateImpl* _tmp25_;
- PhotoMetadata* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- PhotoReimportEditableStateImpl* _tmp29_;
- PhotoMetadata* _tmp30_;
- PhotoReimportEditableStateImpl* _tmp31_;
- PhotoMetadata* _tmp32_;
-#line 1606 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = reimport_state;
-#line 1606 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp21_->metadata;
-#line 1606 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 1606 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _tmp23_;
-#line 1606 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp24_);
-#line 1606 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp24_);
-#line 1607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = reimport_state;
-#line 1607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp25_->metadata;
-#line 1607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 1607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp27_;
-#line 1607 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp28_);
-#line 1607 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp28_);
-#line 1608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = reimport_state;
-#line 1608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp29_->metadata;
-#line 1608 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), photo_metadata_get_rating (_tmp30_));
-#line 1609 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = reimport_state;
-#line 1609 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = _tmp31_->metadata;
-#line 1609 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_apply_user_metadata_for_reimport (self, _tmp32_);
-#line 13428 "Photo.c"
- }
-#line 1612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = g_strdup ("metadata:name,image:orientation,metadata:rating,metadata:exposure-time");
-#line 1612 "/home/jens/Source/shotwell/src/Photo.vala"
- list = _tmp33_;
-#line 1613 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = reimport_state;
-#line 1613 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _tmp34_->metadata_only;
-#line 1613 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp35_) {
-#line 13440 "Photo.c"
- const gchar* _tmp36_;
- gchar* _tmp37_;
-#line 1614 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = list;
-#line 1614 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = g_strconcat (_tmp36_, "image:editable,image:baseline", NULL);
-#line 1614 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (list);
-#line 1614 "/home/jens/Source/shotwell/src/Photo.vala"
- list = _tmp37_;
-#line 13451 "Photo.c"
- }
-#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = list;
-#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = alteration_new_from_list (_tmp38_);
-#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = _tmp39_;
-#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp40_);
-#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp40_);
-#line 1618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = reimport_state;
-#line 1618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = _tmp41_->metadata;
-#line 1618 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_editable_reimported (self, _tmp42_);
-#line 1620 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_editable_baseline (self)) {
-#line 13471 "Photo.c"
- PhotoReimportEditableStateImpl* _tmp43_;
- PhotoMetadata* _tmp44_;
-#line 1621 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = reimport_state;
-#line 1621 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_->metadata;
-#line 1621 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_baseline_reimported (self, _tmp44_);
-#line 13480 "Photo.c"
- }
-#line 1623 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_editable_source (self)) {
-#line 13484 "Photo.c"
- PhotoReimportEditableStateImpl* _tmp45_;
- PhotoMetadata* _tmp46_;
-#line 1624 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = reimport_state;
-#line 1624 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = _tmp45_->metadata;
-#line 1624 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_source_reimported (self, _tmp46_);
-#line 13493 "Photo.c"
- }
-#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (list);
-#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (reimport_state);
-#line 13499 "Photo.c"
-}
-
-
-static gpointer
-_photo_reimport_raw_development_state_ref0 (gpointer self)
-{
-#line 1646 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? photo_reimport_raw_development_state_ref (self) : NULL;
-#line 13508 "Photo.c"
-}
-
-
-gboolean
-photo_prepare_for_reimport_raw_development (Photo* self,
- PhotoReimportRawDevelopmentState* * state,
- GError** error)
-{
- PhotoReimportRawDevelopmentState* _vala_state = NULL;
- gboolean result = FALSE;
- GeeCollection* files = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- PhotoReimportRawDevelopmentStateImpl* reimport_state = NULL;
- PhotoReimportRawDevelopmentStateImpl* _tmp2_;
- PhotoReimportRawDevelopmentStateImpl* _tmp18_;
- PhotoReimportRawDevelopmentState* _tmp19_;
- PhotoReimportRawDevelopmentStateImpl* _tmp20_;
- GError * _inner_error_ = NULL;
-#line 1628 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 1629 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (_vala_state);
-#line 1629 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = NULL;
-#line 1631 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_raw_developer_files (self);
-#line 1631 "/home/jens/Source/shotwell/src/Photo.vala"
- files = _tmp0_;
-#line 1632 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = files;
-#line 1632 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 1633 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1633 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (files);
-#line 1633 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 1633 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 13550 "Photo.c"
- } else {
-#line 1633 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (_vala_state);
-#line 13554 "Photo.c"
- }
-#line 1633 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 13558 "Photo.c"
- }
-#line 1635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_reimport_raw_development_state_impl_new ();
-#line 1635 "/home/jens/Source/shotwell/src/Photo.vala"
- reimport_state = _tmp2_;
-#line 13564 "Photo.c"
- {
- GeeIterator* _file_it = NULL;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = files;
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _file_it = _tmp4_;
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 13577 "Photo.c"
- GeeIterator* _tmp5_;
- GFile* file = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- DetectedPhotoInformation* detected = NULL;
- BackingPhotoRow* backing = NULL;
- gboolean _tmp8_ = FALSE;
- GFile* _tmp9_;
- BackingPhotoRow* _tmp10_ = NULL;
- DetectedPhotoInformation* _tmp11_ = NULL;
- gboolean _tmp12_;
- PhotoReimportRawDevelopmentStateImpl* _tmp14_;
- BackingPhotoRow* _tmp15_;
- DetectedPhotoInformation* _tmp16_;
- PhotoMetadata* _tmp17_;
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _file_it;
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 13599 "Photo.c"
- }
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _file_it;
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- file = (GFile*) _tmp7_;
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = file;
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_verify_file_for_reimport (self, _tmp9_, &_tmp10_, &_tmp11_, &_inner_error_);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- backing = _tmp10_;
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp11_;
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp12_;
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13623 "Photo.c"
- gboolean _tmp13_ = FALSE;
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_file_it);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (reimport_state);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (files);
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp13_;
-#line 13641 "Photo.c"
- }
-#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp8_) {
-#line 1641 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1641 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1641 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 1641 "/home/jens/Source/shotwell/src/Photo.vala"
- continue;
-#line 13653 "Photo.c"
- }
-#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = reimport_state;
-#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = backing;
-#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = detected;
-#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_->metadata;
-#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_impl_add (_tmp14_, _tmp15_, _tmp17_);
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 13671 "Photo.c"
- }
-#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_file_it);
-#line 13675 "Photo.c"
- }
-#line 1646 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = reimport_state;
-#line 1646 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _photo_reimport_raw_development_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState));
-#line 1646 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (_vala_state);
-#line 1646 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = _tmp19_;
-#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = reimport_state;
-#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_reimport_raw_development_state_impl_get_size (_tmp20_) > 0;
-#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (reimport_state);
-#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (files);
-#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 13697 "Photo.c"
- } else {
-#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (_vala_state);
-#line 13701 "Photo.c"
- }
-#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 13705 "Photo.c"
-}
-
-
-void
-photo_finish_reimport_raw_development (Photo* self,
- PhotoReimportRawDevelopmentState* state,
- GError** error)
-{
- PhotoReimportRawDevelopmentStateImpl* reimport_state = NULL;
- PhotoReimportRawDevelopmentStateImpl* _tmp0_;
- gchar* list = NULL;
- gchar* _tmp29_;
- PhotoReimportRawDevelopmentStateImpl* _tmp30_;
- gboolean _tmp31_;
- const gchar* _tmp34_;
- Alteration* _tmp35_;
- Alteration* _tmp36_;
- GError * _inner_error_ = NULL;
-#line 1651 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 1651 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE (state));
-#line 1652 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_get_master_file_format (self) != PHOTO_FILE_FORMAT_RAW) {
-#line 1653 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13732 "Photo.c"
- }
-#line 1655 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _photo_reimport_raw_development_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (state, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl));
-#line 1655 "/home/jens/Source/shotwell/src/Photo.vala"
- reimport_state = _tmp0_;
-#line 13738 "Photo.c"
- {
- GeeIterator* _dev_it = NULL;
- PhotoReimportRawDevelopmentStateImpl* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = reimport_state;
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->list;
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _dev_it = _tmp3_;
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 13754 "Photo.c"
- GeeIterator* _tmp4_;
- PhotoReimportRawDevelopmentStateImplDevToReimport* dev = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- PhotoReimportRawDevelopmentStateImpl* _tmp7_;
- gboolean _tmp8_;
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _dev_it;
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 13767 "Photo.c"
- }
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _dev_it;
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- dev = (PhotoReimportRawDevelopmentStateImplDevToReimport*) _tmp6_;
-#line 1658 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = reimport_state;
-#line 1658 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_->metadata_only;
-#line 1658 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp8_) {
-#line 13781 "Photo.c"
- BackingPhotoTable* _tmp9_;
- BackingPhotoTable* _tmp10_;
- PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp11_;
- BackingPhotoRow* _tmp12_;
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = backing_photo_table_get_instance ();
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_;
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = dev;
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->backing;
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_update (_tmp10_, _tmp12_, &_inner_error_);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp10_);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_dev_it);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (reimport_state);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13812 "Photo.c"
- } else {
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_dev_it);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (reimport_state);
-#line 1659 "/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 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1659 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13826 "Photo.c"
- }
- }
- {
- PhotoRow* _tmp13_;
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->row;
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 13835 "Photo.c"
- {
- gint _tmp14_;
- RawDeveloper* _tmp15_;
-#line 1663 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = raw_developer_as_array (&_tmp14_);
-#line 13841 "Photo.c"
- {
- RawDeveloper* d_collection = NULL;
- gint d_collection_length1 = 0;
- gint _d_collection_size_ = 0;
- gint d_it = 0;
-#line 1663 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection = _tmp15_;
-#line 1663 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection_length1 = _tmp14_;
-#line 1663 "/home/jens/Source/shotwell/src/Photo.vala"
- for (d_it = 0; d_it < _tmp14_; d_it = d_it + 1) {
-#line 13853 "Photo.c"
- RawDeveloper d = 0;
-#line 1663 "/home/jens/Source/shotwell/src/Photo.vala"
- d = d_collection[d_it];
-#line 13857 "Photo.c"
- {
- BackingPhotoID id = {0};
- PhotoRow* _tmp16_;
- BackingPhotoID* _tmp17_;
- gint _tmp17__length1;
- RawDeveloper _tmp18_;
- BackingPhotoID _tmp19_;
- BackingPhotoID _tmp20_;
- gint64 _tmp21_;
-#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = self->row;
-#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_->development_ids;
-#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17__length1 = _tmp16_->development_ids_length1;
-#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = d;
-#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp17_[_tmp18_];
-#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
- id = _tmp19_;
-#line 1665 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = id;
-#line 1665 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_.id;
-#line 1665 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp21_ != BACKING_PHOTO_ID_INVALID) {
-#line 13885 "Photo.c"
- BackingPhotoRow* bpr = NULL;
- BackingPhotoID _tmp22_;
- BackingPhotoRow* _tmp23_;
- BackingPhotoRow* _tmp24_;
-#line 1666 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = id;
-#line 1666 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = photo_get_backing_row (self, &_tmp22_);
-#line 1666 "/home/jens/Source/shotwell/src/Photo.vala"
- bpr = _tmp23_;
-#line 1667 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = bpr;
-#line 1667 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp24_ != NULL) {
-#line 13900 "Photo.c"
- GeeHashMap* _tmp25_;
- RawDeveloper _tmp26_;
- BackingPhotoRow* _tmp27_;
-#line 1668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = self->priv->developments;
-#line 1668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = d;
-#line 1668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = bpr;
-#line 1668 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp26_), _tmp27_);
-#line 13912 "Photo.c"
- }
-#line 1665 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (bpr);
-#line 13916 "Photo.c"
- }
- }
- }
-#line 1663 "/home/jens/Source/shotwell/src/Photo.vala"
- d_collection = (g_free (d_collection), NULL);
-#line 13922 "Photo.c"
- }
- }
- __finally320:
- {
- PhotoRow* _tmp28_;
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = self->row;
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 13932 "Photo.c"
- }
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_dev_it);
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (reimport_state);
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13948 "Photo.c"
- } else {
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_dev_it);
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (reimport_state);
-#line 1661 "/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 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1661 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 13962 "Photo.c"
- }
- }
- }
- }
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
-#line 13969 "Photo.c"
- }
-#line 1657 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_dev_it);
-#line 13973 "Photo.c"
- }
-#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = g_strdup ("metadata:name,image:orientation,metadata:rating,metadata:exposure-time");
-#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
- list = _tmp29_;
-#line 1676 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = reimport_state;
-#line 1676 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_->metadata_only;
-#line 1676 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp31_) {
-#line 13985 "Photo.c"
- const gchar* _tmp32_;
- gchar* _tmp33_;
-#line 1677 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = list;
-#line 1677 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = g_strconcat (_tmp32_, "image:editable,image:baseline", NULL);
-#line 1677 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (list);
-#line 1677 "/home/jens/Source/shotwell/src/Photo.vala"
- list = _tmp33_;
-#line 13996 "Photo.c"
- }
-#line 1679 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = list;
-#line 1679 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = alteration_new_from_list (_tmp34_);
-#line 1679 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_;
-#line 1679 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp36_);
-#line 1679 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp36_);
-#line 1681 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_raw_development_modified (self);
-#line 1651 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (list);
-#line 1651 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_unref0 (reimport_state);
-#line 14014 "Photo.c"
-}
-
-
-static gchar*
-photo_real_get_typename (DataSource* base)
-{
- Photo * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1684 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 1685 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = g_strdup (PHOTO_TYPENAME);
-#line 1685 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 1685 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14032 "Photo.c"
-}
-
-
-static gint64
-photo_real_get_instance_id (DataSource* base)
-{
- Photo * self;
- gint64 result = 0LL;
- PhotoID _tmp0_ = {0};
- gint64 _tmp1_;
-#line 1688 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 1689 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp0_);
-#line 1689 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_.id;
-#line 1689 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 1689 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14053 "Photo.c"
-}
-
-
-static gchar*
-photo_real_get_source_id (DataSource* base)
-{
- Photo * self;
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 1692 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = data_source_get_typename (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
-#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = g_strdup_printf ("%s%016" G_GINT64_MODIFIER "x", _tmp1_, data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource)));
-#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp1_);
-#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14082 "Photo.c"
-}
-
-
-void
-photo_set_master_timestamp (Photo* self,
- GFileInfo* info)
-{
- GTimeVal modification = {0};
- GTimeVal _tmp0_ = {0};
- GError * _inner_error_ = NULL;
-#line 1700 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 1700 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 1701 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_info_get_modification_time (info, &_tmp0_);
-#line 1701 "/home/jens/Source/shotwell/src/Photo.vala"
- modification = _tmp0_;
-#line 14101 "Photo.c"
- {
- {
- PhotoRow* _tmp1_;
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 14109 "Photo.c"
- {
- PhotoRow* _tmp2_;
- BackingPhotoRow* _tmp3_;
- time_t _tmp4_;
- GTimeVal _tmp5_;
- glong _tmp6_;
- PhotoTable* _tmp8_;
- PhotoTable* _tmp9_;
- PhotoRow* _tmp10_;
- PhotoID _tmp11_;
- GTimeVal _tmp12_;
- glong _tmp13_;
- PhotoRow* _tmp14_;
- BackingPhotoRow* _tmp15_;
- GTimeVal _tmp16_;
- glong _tmp17_;
-#line 1705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->row;
-#line 1705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->master;
-#line 1705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->timestamp;
-#line 1705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = modification;
-#line 1705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_.tv_sec;
-#line 1705 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_ == ((time_t) _tmp6_)) {
-#line 14138 "Photo.c"
- {
- PhotoRow* _tmp7_;
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->row;
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 14145 "Photo.c"
- }
-#line 1706 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14149 "Photo.c"
- }
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo_table_get_instance ();
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->row;
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->photo_id;
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = modification;
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_.tv_sec;
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_update_timestamp (_tmp9_, &_tmp11_, (time_t) _tmp13_, &_inner_error_);
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp9_);
-#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14169 "Photo.c"
- goto __finally322;
- }
-#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = self->row;
-#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_->master;
-#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = modification;
-#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_.tv_sec;
-#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_->timestamp = (time_t) _tmp17_;
-#line 14182 "Photo.c"
- }
- __finally322:
- {
- PhotoRow* _tmp18_;
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = self->row;
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 14191 "Photo.c"
- }
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 14197 "Photo.c"
- goto __catch321_database_error;
- }
-#line 1704 "/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);
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14206 "Photo.c"
- }
- }
- }
- goto __finally321;
- __catch321_database_error:
- {
- GError* err = NULL;
- GError* _tmp19_;
-#line 1703 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 1703 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 1712 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = err;
-#line 1712 "/home/jens/Source/shotwell/src/Photo.vala"
- app_window_database_error (_tmp19_);
-#line 1714 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 1714 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14227 "Photo.c"
- }
- __finally321:
-#line 1703 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1703 "/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 1703 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1703 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14238 "Photo.c"
- }
-#line 1717 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_master_baseline (self)) {
-#line 14242 "Photo.c"
- Alteration* _tmp20_;
- Alteration* _tmp21_;
-#line 1718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = alteration_new_from_list ("metadata:master-timestamp,metadata:baseline-timestamp");
-#line 1718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_;
-#line 1718 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp21_);
-#line 1718 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp21_);
-#line 14253 "Photo.c"
- } else {
- Alteration* _tmp22_;
- Alteration* _tmp23_;
-#line 1720 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = alteration_new ("metadata", "master-timestamp");
-#line 1720 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 1720 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_);
-#line 1720 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp23_);
-#line 14265 "Photo.c"
- }
-}
-
-
-void
-photo_update_editable_modification_time (Photo* self,
- GFileInfo* info,
- GError** error)
-{
- GTimeVal modification = {0};
- GTimeVal _tmp0_ = {0};
- gboolean altered = FALSE;
- gboolean _tmp18_;
- GError * _inner_error_ = NULL;
-#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_info_get_modification_time (info, &_tmp0_);
-#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
- modification = _tmp0_;
-#line 1727 "/home/jens/Source/shotwell/src/Photo.vala"
- altered = FALSE;
-#line 14290 "Photo.c"
- {
- PhotoRow* _tmp1_;
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 14297 "Photo.c"
- {
- gboolean _tmp2_ = FALSE;
- PhotoRow* _tmp3_;
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing_photo_id_is_valid (&_tmp3_->editable_id)) {
-#line 14305 "Photo.c"
- BackingPhotoRow* _tmp4_;
- time_t _tmp5_;
- GTimeVal _tmp6_;
- glong _tmp7_;
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->editable;
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_->timestamp;
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = modification;
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_.tv_sec;
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp5_ != ((time_t) _tmp7_);
-#line 14320 "Photo.c"
- } else {
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = FALSE;
-#line 14324 "Photo.c"
- }
-#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 14328 "Photo.c"
- BackingPhotoTable* _tmp8_;
- BackingPhotoTable* _tmp9_;
- PhotoRow* _tmp10_;
- BackingPhotoID _tmp11_;
- GTimeVal _tmp12_;
- glong _tmp13_;
- BackingPhotoRow* _tmp14_;
- GTimeVal _tmp15_;
- glong _tmp16_;
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = backing_photo_table_get_instance ();
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->row;
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->editable_id;
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = modification;
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_.tv_sec;
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_update_timestamp (_tmp9_, &_tmp11_, (time_t) _tmp13_, &_inner_error_);
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp9_);
-#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14356 "Photo.c"
- goto __finally323;
- }
-#line 1732 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = self->priv->editable;
-#line 1732 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = modification;
-#line 1732 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_.tv_sec;
-#line 1732 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_->timestamp = (time_t) _tmp16_;
-#line 1733 "/home/jens/Source/shotwell/src/Photo.vala"
- altered = TRUE;
-#line 14369 "Photo.c"
- }
- }
- __finally323:
- {
- PhotoRow* _tmp17_;
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->row;
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 14379 "Photo.c"
- }
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14389 "Photo.c"
- } else {
-#line 1728 "/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 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1728 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14397 "Photo.c"
- }
- }
- }
-#line 1737 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = altered;
-#line 1737 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp18_) {
-#line 14405 "Photo.c"
- Alteration* _tmp19_;
- Alteration* _tmp20_;
-#line 1738 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = alteration_new_from_list ("metadata:editable-timestamp,metadata:baseline-timestamp");
-#line 1738 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _tmp19_;
-#line 1738 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_);
-#line 1738 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp20_);
-#line 14416 "Photo.c"
- }
-}
-
-
-void
-photo_update_many_editable_timestamps (GeeMap* map,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 1742 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 1744 "/home/jens/Source/shotwell/src/Photo.vala"
- database_table_begin_transaction ();
-#line 14430 "Photo.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_map_get_keys (map);
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp2_);
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_it = _tmp4_;
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 14454 "Photo.c"
- GeeIterator* _tmp5_;
- Photo* photo = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
- gpointer _tmp10_;
- GFileInfo* _tmp11_;
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _photo_it;
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 14469 "Photo.c"
- }
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _photo_it;
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = (Photo*) _tmp7_;
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo;
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo;
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = gee_map_get (map, _tmp9_);
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = (GFileInfo*) _tmp10_;
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_update_editable_modification_time (_tmp8_, _tmp11_, &_inner_error_);
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp11_);
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_photo_it);
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14501 "Photo.c"
- } else {
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_photo_it);
-#line 1746 "/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 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14513 "Photo.c"
- }
- }
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 14518 "Photo.c"
- }
-#line 1745 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_photo_it);
-#line 14522 "Photo.c"
- }
-#line 1747 "/home/jens/Source/shotwell/src/Photo.vala"
- database_table_commit_transaction (&_inner_error_);
-#line 1747 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1747 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1747 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1747 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14534 "Photo.c"
- } else {
-#line 1747 "/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 1747 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1747 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 14542 "Photo.c"
- }
- }
-}
-
-
-static PhotoFileFormat
-photo_real_get_preferred_thumbnail_format (ThumbnailSource* base)
-{
- Photo * self;
- PhotoFileFormat result = 0;
- PhotoFileFormat _tmp0_ = 0;
-#line 1750 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 1751 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_file_format_can_write_image (photo_get_file_format (self))) {
-#line 1751 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_file_format (self);
-#line 14560 "Photo.c"
- } else {
-#line 1752 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_file_format_get_system_default_format ();
-#line 14564 "Photo.c"
- }
-#line 1751 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 1751 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14570 "Photo.c"
-}
-
-
-static GdkPixbuf*
-photo_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- Photo * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- Scaling _tmp1_ = {0};
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 1755 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- scaling_for_best_fit (scale, TRUE, &_tmp1_);
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp1_, &_inner_error_);
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp2_;
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 14600 "Photo.c"
- }
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp0_;
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp0_);
-#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14612 "Photo.c"
-}
-
-
-gboolean
-photo_is_file_image (GFile* file)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 1759 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 1763 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_file_format_is_file_supported (file)) {
-#line 1764 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = TRUE;
-#line 14627 "Photo.c"
- } else {
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 1764 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = g_file_get_basename (file);
-#line 1764 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 1764 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_is_extension_found (_tmp2_, PHOTO_IMAGE_EXTENSIONS, G_N_ELEMENTS (PHOTO_IMAGE_EXTENSIONS));
-#line 1764 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp2_);
-#line 14639 "Photo.c"
- }
-#line 1763 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 1763 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14645 "Photo.c"
-}
-
-
-static gboolean
-photo_is_extension_found (const gchar* basename,
- gchar** extensions,
- int extensions_length1)
-{
- gboolean result = FALSE;
- gchar* name = NULL;
- gchar* ext = NULL;
- gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 1767 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (basename != NULL, FALSE);
-#line 1769 "/home/jens/Source/shotwell/src/Photo.vala"
- disassemble_filename (basename, &_tmp0_, &_tmp1_);
-#line 1769 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 1769 "/home/jens/Source/shotwell/src/Photo.vala"
- name = _tmp0_;
-#line 1769 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 1769 "/home/jens/Source/shotwell/src/Photo.vala"
- ext = _tmp1_;
-#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = ext;
-#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ == NULL) {
-#line 1771 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1771 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 1771 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 1771 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14686 "Photo.c"
- }
-#line 1774 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = ext;
-#line 1774 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1);
-#line 1774 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 1774 "/home/jens/Source/shotwell/src/Photo.vala"
- ext = _tmp4_;
-#line 14696 "Photo.c"
- {
- gchar** extension_collection = NULL;
- gint extension_collection_length1 = 0;
- gint _extension_collection_size_ = 0;
- gint extension_it = 0;
-#line 1777 "/home/jens/Source/shotwell/src/Photo.vala"
- extension_collection = extensions;
-#line 1777 "/home/jens/Source/shotwell/src/Photo.vala"
- extension_collection_length1 = extensions_length1;
-#line 1777 "/home/jens/Source/shotwell/src/Photo.vala"
- for (extension_it = 0; extension_it < extensions_length1; extension_it = extension_it + 1) {
-#line 14708 "Photo.c"
- gchar* _tmp5_;
- gchar* extension = NULL;
-#line 1777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = g_strdup (extension_collection[extension_it]);
-#line 1777 "/home/jens/Source/shotwell/src/Photo.vala"
- extension = _tmp5_;
-#line 14715 "Photo.c"
- {
- const gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 1778 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = ext;
-#line 1778 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = extension;
-#line 1778 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_strcmp0 (_tmp6_, _tmp7_) == 0) {
-#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (extension);
-#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14735 "Photo.c"
- }
-#line 1777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (extension);
-#line 14739 "Photo.c"
- }
- }
- }
-#line 1782 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 1782 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 1782 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 1782 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14751 "Photo.c"
-}
-
-
-gboolean
-photo_is_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format)
-{
- gboolean result = FALSE;
- PhotoTable* _tmp0_;
- PhotoTable* _tmp1_;
- gboolean _tmp2_;
-#line 1788 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE);
-#line 1791 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_table_get_instance ();
-#line 1791 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1791 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_table_has_duplicate (_tmp1_, file, thumbnail_md5, full_md5, file_format);
-#line 1791 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp1_);
-#line 1791 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 1791 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14779 "Photo.c"
-}
-
-
-PhotoID*
-photo_get_duplicate_ids (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- int* result_length1)
-{
- PhotoID* result = NULL;
- PhotoTable* _tmp0_;
- PhotoTable* _tmp1_;
- gint _tmp2_;
- PhotoID* _tmp3_;
- PhotoID* _tmp4_;
- gint _tmp4__length1;
- PhotoID* _tmp5_;
- gint _tmp5__length1;
-#line 1797 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_table_get_instance ();
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_table_get_duplicate_ids (_tmp1_, file, thumbnail_md5, full_md5, file_format, &_tmp2_);
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4__length1 = _tmp2_;
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp1_);
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5__length1 = _tmp4__length1;
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- if (result_length1) {
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- *result_length1 = _tmp5__length1;
-#line 14821 "Photo.c"
- }
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp5_;
-#line 1800 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14827 "Photo.c"
-}
-
-
-gint64
-photo_get_photo_key (DataSource* source)
-{
- gint64 result = 0LL;
- PhotoID _tmp0_ = {0};
- gint64 _tmp1_;
-#line 1807 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL);
-#line 1808 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_PHOTO, Photo), &_tmp0_);
-#line 1808 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_.id;
-#line 1808 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 1808 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14847 "Photo.c"
-}
-
-
-static GFile*
-photo_real_get_file (MediaSource* base)
-{
- Photo * self;
- GFile* result = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 1826 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_source_reader (self);
-#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp1_);
-#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 14876 "Photo.c"
-}
-
-
-static void
-_vala_array_add99 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 14892 "Photo.c"
- }
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 14898 "Photo.c"
-}
-
-
-static void
-_vala_array_add100 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 14914 "Photo.c"
- }
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 14920 "Photo.c"
-}
-
-
-static void
-_vala_array_add101 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 14936 "Photo.c"
- }
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 14942 "Photo.c"
-}
-
-
-static void
-_vala_array_add102 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 14958 "Photo.c"
- }
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 14964 "Photo.c"
-}
-
-
-void
-photo_set_master_file (Photo* self,
- GFile* file)
-{
- gchar* filepath = NULL;
- gchar* _tmp0_;
- gboolean altered = FALSE;
- gboolean is_baseline = FALSE;
- gboolean is_source = FALSE;
- gboolean name_changed = FALSE;
- GFile* old_file = NULL;
- gboolean _tmp33_;
- GError * _inner_error_ = NULL;
-#line 1832 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 1832 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 1833 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = g_file_get_path (file);
-#line 1833 "/home/jens/Source/shotwell/src/Photo.vala"
- filepath = _tmp0_;
-#line 1835 "/home/jens/Source/shotwell/src/Photo.vala"
- altered = FALSE;
-#line 1836 "/home/jens/Source/shotwell/src/Photo.vala"
- is_baseline = FALSE;
-#line 1837 "/home/jens/Source/shotwell/src/Photo.vala"
- is_source = FALSE;
-#line 1838 "/home/jens/Source/shotwell/src/Photo.vala"
- name_changed = FALSE;
-#line 1839 "/home/jens/Source/shotwell/src/Photo.vala"
- old_file = NULL;
-#line 14999 "Photo.c"
- {
- {
- PhotoRow* _tmp1_;
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 15007 "Photo.c"
- {
- {
- PhotoBackingReaders* _tmp2_;
-#line 1842 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->readers;
-#line 1842 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 15015 "Photo.c"
- {
- PhotoBackingReaders* _tmp3_;
- PhotoFileReader* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 1843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 1843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->master;
-#line 1843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1843 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (old_file);
-#line 1843 "/home/jens/Source/shotwell/src/Photo.vala"
- old_file = _tmp5_;
-#line 1844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = old_file;
-#line 1844 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!g_file_equal (file, _tmp6_)) {
-#line 15035 "Photo.c"
- PhotoTable* _tmp7_;
- PhotoTable* _tmp8_;
- PhotoID _tmp9_ = {0};
- const gchar* _tmp10_;
- PhotoRow* _tmp11_;
- BackingPhotoRow* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- PhotoBackingReaders* _tmp16_;
- PhotoRow* _tmp17_;
- BackingPhotoRow* _tmp18_;
- PhotoFileFormat _tmp19_;
- const gchar* _tmp20_;
- PhotoFileReader* _tmp21_;
- gboolean _tmp22_ = FALSE;
- PhotoRow* _tmp23_;
- const gchar* _tmp24_;
-#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo_table_get_instance ();
-#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_;
-#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp9_);
-#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = filepath;
-#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_set_filepath (_tmp8_, &_tmp9_, _tmp10_, &_inner_error_);
-#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp8_);
-#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15068 "Photo.c"
- goto __finally326;
- }
-#line 1847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 1847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->master;
-#line 1847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = filepath;
-#line 1847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = g_strdup (_tmp13_);
-#line 1847 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp12_->filepath);
-#line 1847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_->filepath = _tmp14_;
-#line 1848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = g_file_get_basename (file);
-#line 1848 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->priv->file_title);
-#line 1848 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->file_title = _tmp15_;
-#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = self->priv->readers;
-#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->row;
-#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_->master;
-#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_->file_format;
-#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = filepath;
-#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = photo_file_format_create_reader (_tmp19_, _tmp20_);
-#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp16_->master);
-#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_->master = _tmp21_;
-#line 1851 "/home/jens/Source/shotwell/src/Photo.vala"
- altered = TRUE;
-#line 1852 "/home/jens/Source/shotwell/src/Photo.vala"
- is_baseline = photo_is_master_baseline (self);
-#line 1853 "/home/jens/Source/shotwell/src/Photo.vala"
- is_source = photo_is_master_source (self);
-#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = self->row;
-#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _tmp23_->title;
-#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
- if (is_string_empty (_tmp24_)) {
-#line 15117 "Photo.c"
- GFile* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
-#line 1855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = old_file;
-#line 1855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = g_file_get_basename (_tmp25_);
-#line 1855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp26_;
-#line 1855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = g_file_get_basename (file);
-#line 1855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _tmp28_;
-#line 1855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = g_strcmp0 (_tmp27_, _tmp29_) != 0;
-#line 1855 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp29_);
-#line 1855 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp27_);
-#line 15139 "Photo.c"
- } else {
-#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = FALSE;
-#line 15143 "Photo.c"
- }
-#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
- name_changed = _tmp22_;
-#line 15147 "Photo.c"
- }
- }
- __finally326:
- {
- PhotoBackingReaders* _tmp30_;
-#line 1842 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = self->priv->readers;
-#line 1842 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 15157 "Photo.c"
- }
-#line 1842 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15161 "Photo.c"
- goto __finally325;
- }
- }
- }
- __finally325:
- {
- PhotoRow* _tmp31_;
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = self->row;
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 15173 "Photo.c"
- }
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 15179 "Photo.c"
- goto __catch324_database_error;
- }
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (old_file);
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (filepath);
-#line 1841 "/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);
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1841 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 15192 "Photo.c"
- }
- }
- }
- goto __finally324;
- __catch324_database_error:
- {
- GError* err = NULL;
- GError* _tmp32_;
-#line 1840 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 1840 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = err;
-#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
- app_window_database_error (_tmp32_);
-#line 1840 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 15211 "Photo.c"
- }
- __finally324:
-#line 1840 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1840 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (old_file);
-#line 1840 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (filepath);
-#line 1840 "/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 1840 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1840 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 15226 "Photo.c"
- }
-#line 1863 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = altered;
-#line 1863 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp33_) {
-#line 15232 "Photo.c"
- GFile* _tmp34_;
- gboolean _tmp35_;
- gchar** alteration_list = NULL;
- gchar** _tmp36_;
- gint alteration_list_length1;
- gint _alteration_list_size_;
- gchar** _tmp37_;
- gint _tmp37__length1;
- gchar* _tmp38_;
- gboolean _tmp39_;
- gboolean _tmp42_;
- gboolean _tmp45_;
- gchar** _tmp48_;
- gint _tmp48__length1;
- Alteration* _tmp49_;
- Alteration* _tmp50_;
-#line 1864 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = old_file;
-#line 1864 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_notify_master_replaced (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp34_, file);
-#line 1866 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = is_baseline;
-#line 1866 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp35_) {
-#line 1867 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_baseline_replaced (self);
-#line 15259 "Photo.c"
- }
-#line 1869 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = g_new0 (gchar*, 0 + 1);
-#line 1869 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list = _tmp36_;
-#line 1869 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list_length1 = 0;
-#line 1869 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_list_size_ = alteration_list_length1;
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = alteration_list;
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37__length1 = alteration_list_length1;
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = g_strdup ("backing:master");
-#line 1870 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add99 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp38_);
-#line 1874 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = name_changed;
-#line 1874 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp39_) {
-#line 15281 "Photo.c"
- gchar** _tmp40_;
- gint _tmp40__length1;
- gchar* _tmp41_;
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = alteration_list;
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40__length1 = alteration_list_length1;
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = g_strdup ("metadata:name");
-#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add100 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp41_);
-#line 15293 "Photo.c"
- }
-#line 1877 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = is_source;
-#line 1877 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp42_) {
-#line 15299 "Photo.c"
- gchar** _tmp43_;
- gint _tmp43__length1;
- gchar* _tmp44_;
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = alteration_list;
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43__length1 = alteration_list_length1;
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = g_strdup ("backing:source");
-#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add101 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp44_);
-#line 15311 "Photo.c"
- }
-#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = is_baseline;
-#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp45_) {
-#line 15317 "Photo.c"
- gchar** _tmp46_;
- gint _tmp46__length1;
- gchar* _tmp47_;
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = alteration_list;
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46__length1 = alteration_list_length1;
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = g_strdup ("backing:baseline");
-#line 1881 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add102 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp47_);
-#line 15329 "Photo.c"
- }
-#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = alteration_list;
-#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48__length1 = alteration_list_length1;
-#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = alteration_new_from_array (_tmp48_, _tmp48__length1);
-#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = _tmp49_;
-#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp50_);
-#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp50_);
-#line 1863 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL);
-#line 15345 "Photo.c"
- }
-#line 1832 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (old_file);
-#line 1832 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (filepath);
-#line 15351 "Photo.c"
-}
-
-
-static void
-_vala_array_add103 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 15367 "Photo.c"
- }
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 15373 "Photo.c"
-}
-
-
-static void
-_vala_array_add104 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 15389 "Photo.c"
- }
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 15395 "Photo.c"
-}
-
-
-static void
-_vala_array_add105 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 15411 "Photo.c"
- }
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 15417 "Photo.c"
-}
-
-
-void
-photo_set_editable_file (Photo* self,
- GFile* file)
-{
- gchar* filepath = NULL;
- gchar* _tmp0_;
- gboolean altered = FALSE;
- gboolean is_baseline = FALSE;
- gboolean is_source = FALSE;
- GFile* old_file = NULL;
- gboolean _tmp29_;
- GError * _inner_error_ = NULL;
-#line 1889 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 1889 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 1890 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = g_file_get_path (file);
-#line 1890 "/home/jens/Source/shotwell/src/Photo.vala"
- filepath = _tmp0_;
-#line 1892 "/home/jens/Source/shotwell/src/Photo.vala"
- altered = FALSE;
-#line 1893 "/home/jens/Source/shotwell/src/Photo.vala"
- is_baseline = FALSE;
-#line 1894 "/home/jens/Source/shotwell/src/Photo.vala"
- is_source = FALSE;
-#line 1895 "/home/jens/Source/shotwell/src/Photo.vala"
- old_file = NULL;
-#line 15449 "Photo.c"
- {
- {
- PhotoRow* _tmp1_;
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 15457 "Photo.c"
- {
- {
- PhotoBackingReaders* _tmp2_;
-#line 1898 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->readers;
-#line 1898 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 15465 "Photo.c"
- {
- GFile* _tmp3_ = NULL;
- PhotoBackingReaders* _tmp4_;
- PhotoFileReader* _tmp5_;
- GFile* _tmp9_;
- gboolean _tmp10_ = FALSE;
- GFile* _tmp11_;
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_->editable;
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp5_ != NULL) {
-#line 15479 "Photo.c"
- PhotoBackingReaders* _tmp6_;
- PhotoFileReader* _tmp7_;
- GFile* _tmp8_;
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->readers;
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->editable;
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_);
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp8_;
-#line 15493 "Photo.c"
- } else {
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_);
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = NULL;
-#line 15499 "Photo.c"
- }
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _g_object_ref0 (_tmp3_);
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (old_file);
-#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
- old_file = _tmp9_;
-#line 1900 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = old_file;
-#line 1900 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_ != NULL) {
-#line 15511 "Photo.c"
- GFile* _tmp12_;
-#line 1900 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = old_file;
-#line 1900 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = !g_file_equal (_tmp12_, file);
-#line 15517 "Photo.c"
- } else {
-#line 1900 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = FALSE;
-#line 15521 "Photo.c"
- }
-#line 1900 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_) {
-#line 15525 "Photo.c"
- BackingPhotoTable* _tmp13_;
- BackingPhotoTable* _tmp14_;
- PhotoRow* _tmp15_;
- BackingPhotoID _tmp16_;
- const gchar* _tmp17_;
- BackingPhotoRow* _tmp18_;
- const gchar* _tmp19_;
- gchar* _tmp20_;
- PhotoBackingReaders* _tmp21_;
- BackingPhotoRow* _tmp22_;
- PhotoFileFormat _tmp23_;
- const gchar* _tmp24_;
- PhotoFileReader* _tmp25_;
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = backing_photo_table_get_instance ();
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_;
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_->editable_id;
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = filepath;
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_set_filepath (_tmp14_, &_tmp16_, _tmp17_, &_inner_error_);
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp14_);
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_);
-#line 15557 "Photo.c"
- goto __finally329;
- }
-#line 1903 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = self->priv->editable;
-#line 1903 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = filepath;
-#line 1903 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = g_strdup (_tmp19_);
-#line 1903 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp18_->filepath);
-#line 1903 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_->filepath = _tmp20_;
-#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = self->priv->readers;
-#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = self->priv->editable;
-#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_->file_format;
-#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = filepath;
-#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = photo_file_format_create_reader (_tmp23_, _tmp24_);
-#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp21_->editable);
-#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_->editable = _tmp25_;
-#line 1906 "/home/jens/Source/shotwell/src/Photo.vala"
- altered = TRUE;
-#line 1907 "/home/jens/Source/shotwell/src/Photo.vala"
- is_baseline = photo_is_editable_baseline (self);
-#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
- is_source = photo_is_editable_source (self);
-#line 15590 "Photo.c"
- }
-#line 1898 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_);
-#line 15594 "Photo.c"
- }
- __finally329:
- {
- PhotoBackingReaders* _tmp26_;
-#line 1898 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = self->priv->readers;
-#line 1898 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 15603 "Photo.c"
- }
-#line 1898 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15607 "Photo.c"
- goto __finally328;
- }
- }
- }
- __finally328:
- {
- PhotoRow* _tmp27_;
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = self->row;
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 15619 "Photo.c"
- }
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 15625 "Photo.c"
- goto __catch327_database_error;
- }
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (old_file);
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (filepath);
-#line 1897 "/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);
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1897 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 15638 "Photo.c"
- }
- }
- }
- goto __finally327;
- __catch327_database_error:
- {
- GError* err = NULL;
- GError* _tmp28_;
-#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 1913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = err;
-#line 1913 "/home/jens/Source/shotwell/src/Photo.vala"
- app_window_database_error (_tmp28_);
-#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 15657 "Photo.c"
- }
- __finally327:
-#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (old_file);
-#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (filepath);
-#line 1896 "/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 1896 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 15672 "Photo.c"
- }
-#line 1916 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = altered;
-#line 1916 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp29_) {
-#line 15678 "Photo.c"
- GFile* _tmp30_;
- gboolean _tmp31_;
- gchar** alteration_list = NULL;
- gchar** _tmp32_;
- gint alteration_list_length1;
- gint _alteration_list_size_;
- gchar** _tmp33_;
- gint _tmp33__length1;
- gchar* _tmp34_;
- gboolean _tmp35_;
- gboolean _tmp38_;
- gchar** _tmp41_;
- gint _tmp41__length1;
- Alteration* _tmp42_;
- Alteration* _tmp43_;
-#line 1917 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = old_file;
-#line 1917 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_editable_replaced (self, _tmp30_, file);
-#line 1919 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = is_baseline;
-#line 1919 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp31_) {
-#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_baseline_replaced (self);
-#line 15704 "Photo.c"
- }
-#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = g_new0 (gchar*, 0 + 1);
-#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list = _tmp32_;
-#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list_length1 = 0;
-#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_list_size_ = alteration_list_length1;
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = alteration_list;
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33__length1 = alteration_list_length1;
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = g_strdup ("backing:editable");
-#line 1923 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add103 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp34_);
-#line 1925 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = is_baseline;
-#line 1925 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp35_) {
-#line 15726 "Photo.c"
- gchar** _tmp36_;
- gint _tmp36__length1;
- gchar* _tmp37_;
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = alteration_list;
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36__length1 = alteration_list_length1;
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = g_strdup ("backing:baseline");
-#line 1926 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add104 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp37_);
-#line 15738 "Photo.c"
- }
-#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = is_source;
-#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp38_) {
-#line 15744 "Photo.c"
- gchar** _tmp39_;
- gint _tmp39__length1;
- gchar* _tmp40_;
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = alteration_list;
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39__length1 = alteration_list_length1;
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = g_strdup ("backing:source");
-#line 1929 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add105 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp40_);
-#line 15756 "Photo.c"
- }
-#line 1931 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = alteration_list;
-#line 1931 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41__length1 = alteration_list_length1;
-#line 1931 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = alteration_new_from_array (_tmp41_, _tmp41__length1);
-#line 1931 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp42_;
-#line 1931 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp43_);
-#line 1931 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp43_);
-#line 1916 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL);
-#line 15772 "Photo.c"
- }
-#line 1889 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (old_file);
-#line 1889 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (filepath);
-#line 15778 "Photo.c"
-}
-
-
-void
-photo_set_many_editable_file (GeeMap* map,
- GError** error)
-{
- GeeMapIterator* map_iter = NULL;
- GeeMapIterator* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 1936 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 1937 "/home/jens/Source/shotwell/src/Photo.vala"
- database_table_begin_transaction ();
-#line 1939 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_map_map_iterator (map);
-#line 1939 "/home/jens/Source/shotwell/src/Photo.vala"
- map_iter = _tmp0_;
-#line 1940 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 15799 "Photo.c"
- GeeMapIterator* _tmp1_;
- GeeMapIterator* _tmp2_;
- gpointer _tmp3_;
- Photo* _tmp4_;
- GeeMapIterator* _tmp5_;
- gpointer _tmp6_;
- GFile* _tmp7_;
-#line 1940 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = map_iter;
-#line 1940 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_map_iterator_next (_tmp1_)) {
-#line 1940 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 15813 "Photo.c"
- }
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = map_iter;
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_map_iterator_get_key (_tmp2_);
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = (Photo*) _tmp3_;
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = map_iter;
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = gee_map_iterator_get_value (_tmp5_);
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = (GFile*) _tmp6_;
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_editable_file (_tmp4_, _tmp7_);
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp7_);
-#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp4_);
-#line 15833 "Photo.c"
- }
-#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- database_table_commit_transaction (&_inner_error_);
-#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (map_iter);
-#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 15847 "Photo.c"
- } else {
-#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (map_iter);
-#line 1943 "/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 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 15857 "Photo.c"
- }
- }
-#line 1936 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (map_iter);
-#line 15862 "Photo.c"
-}
-
-
-GFile*
-photo_get_actual_file (Photo* self)
-{
- GFile* result = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 1948 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 1949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_baseline_reader (self);
-#line 1949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 1949 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp1_);
-#line 1949 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 1949 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 15890 "Photo.c"
-}
-
-
-static GFile*
-photo_real_get_master_file (MediaSource* base)
-{
- Photo * self;
- GFile* result = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 1952 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 1953 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_master_reader (self);
-#line 1953 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1953 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1953 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 1953 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp1_);
-#line 1953 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 1953 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 15919 "Photo.c"
-}
-
-
-GFile*
-photo_get_editable_file (Photo* self)
-{
- GFile* result = NULL;
- PhotoFileReader* reader = NULL;
- PhotoFileReader* _tmp0_;
- GFile* _tmp1_ = NULL;
- PhotoFileReader* _tmp2_;
-#line 1956 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 1957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_editable_reader (self);
-#line 1957 "/home/jens/Source/shotwell/src/Photo.vala"
- reader = _tmp0_;
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = reader;
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 15941 "Photo.c"
- PhotoFileReader* _tmp3_;
- GFile* _tmp4_;
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = reader;
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp4_;
-#line 15952 "Photo.c"
- } else {
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = NULL;
-#line 15958 "Photo.c"
- }
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 15966 "Photo.c"
-}
-
-
-GeeCollection*
-photo_get_raw_developer_files (Photo* self)
-{
- GeeCollection* result = NULL;
- GeeArrayList* ret = NULL;
- GeeArrayList* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 1962 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 1963 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_get_master_file_format (self) != PHOTO_FILE_FORMAT_RAW) {
-#line 1964 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 1964 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 15985 "Photo.c"
- }
-#line 1966 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1966 "/home/jens/Source/shotwell/src/Photo.vala"
- ret = _tmp0_;
-#line 15991 "Photo.c"
- {
- PhotoRow* _tmp1_;
-#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 15998 "Photo.c"
- {
- {
- GeeIterator* _row_it = NULL;
- GeeHashMap* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
- GeeIterator* _tmp7_;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->developments;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp5_);
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _row_it = _tmp7_;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 16026 "Photo.c"
- GeeIterator* _tmp8_;
- BackingPhotoRow* row = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- GeeArrayList* _tmp11_;
- BackingPhotoRow* _tmp12_;
- const gchar* _tmp13_;
- GFile* _tmp14_;
- GFile* _tmp15_;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _row_it;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 16042 "Photo.c"
- }
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _row_it;
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- row = (BackingPhotoRow*) _tmp10_;
-#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = ret;
-#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = row;
-#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->filepath;
-#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = g_file_new_for_path (_tmp13_);
-#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp15_);
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (row);
-#line 16066 "Photo.c"
- }
-#line 1968 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_row_it);
-#line 16070 "Photo.c"
- }
- }
- __finally330:
- {
- PhotoRow* _tmp16_;
-#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = self->row;
-#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16080 "Photo.c"
- }
-#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (ret);
-#line 1967 "/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 1967 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 16092 "Photo.c"
- }
- }
-#line 1972 "/home/jens/Source/shotwell/src/Photo.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (ret, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1972 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16099 "Photo.c"
-}
-
-
-GFile*
-photo_get_source_file (Photo* self)
-{
- GFile* result = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 1975 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 1976 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_source_reader (self);
-#line 1976 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 1976 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 1976 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 1976 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp1_);
-#line 1976 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 1976 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16127 "Photo.c"
-}
-
-
-PhotoFileFormat
-photo_get_file_format (Photo* self)
-{
- PhotoFileFormat result = 0;
- GError * _inner_error_ = NULL;
-#line 1979 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0);
-#line 16138 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16145 "Photo.c"
- {
- BackingPhotoRow* _tmp1_;
- PhotoFileFormat _tmp2_;
-#line 1981 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->backing_photo_row;
-#line 1981 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->file_format;
-#line 1981 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 16155 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16162 "Photo.c"
- }
-#line 1981 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16166 "Photo.c"
- }
- __finally331:
- {
- PhotoRow* _tmp4_;
-#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16175 "Photo.c"
- }
-#line 1980 "/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 1980 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
- return 0;
-#line 16183 "Photo.c"
- }
-}
-
-
-PhotoFileFormat
-photo_get_best_export_file_format (Photo* self)
-{
- PhotoFileFormat result = 0;
- PhotoFileFormat file_format = 0;
- PhotoFileFormat _tmp0_;
-#line 1985 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0);
-#line 1986 "/home/jens/Source/shotwell/src/Photo.vala"
- file_format = photo_get_file_format (self);
-#line 1987 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = file_format;
-#line 1987 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_can_write (_tmp0_)) {
-#line 1988 "/home/jens/Source/shotwell/src/Photo.vala"
- file_format = photo_file_format_get_system_default_format ();
-#line 16204 "Photo.c"
- }
-#line 1990 "/home/jens/Source/shotwell/src/Photo.vala"
- result = file_format;
-#line 1990 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16210 "Photo.c"
-}
-
-
-PhotoFileFormat
-photo_get_master_file_format (Photo* self)
-{
- PhotoFileFormat result = 0;
- GError * _inner_error_ = NULL;
-#line 1993 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0);
-#line 16221 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 1994 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 1994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16228 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
-#line 1995 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 1995 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->master;
-#line 1995 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 16238 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 1994 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 1994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16245 "Photo.c"
- }
-#line 1995 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16249 "Photo.c"
- }
- __finally332:
- {
- PhotoRow* _tmp4_;
-#line 1994 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 1994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16258 "Photo.c"
- }
-#line 1994 "/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 1994 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 1994 "/home/jens/Source/shotwell/src/Photo.vala"
- return 0;
-#line 16266 "Photo.c"
- }
-}
-
-
-static time_t
-photo_real_get_timestamp (MediaSource* base)
-{
- Photo * self;
- time_t result = 0;
- GError * _inner_error_ = NULL;
-#line 1999 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 16279 "Photo.c"
- {
- PhotoRow* _tmp0_;
- time_t _tmp5_ = 0;
-#line 2000 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2000 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16287 "Photo.c"
- {
- BackingPhotoRow* _tmp1_;
- time_t _tmp2_;
-#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->backing_photo_row;
-#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->timestamp;
-#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 16297 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2000 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2000 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16304 "Photo.c"
- }
-#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16308 "Photo.c"
- }
- __finally333:
- {
- PhotoRow* _tmp4_;
-#line 2000 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2000 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16317 "Photo.c"
- }
-#line 2000 "/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 2000 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2000 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 16325 "Photo.c"
- }
-}
-
-
-void
-photo_get_photo_id (Photo* self,
- PhotoID* result)
-{
- GError * _inner_error_ = NULL;
-#line 2005 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 16337 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2006 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2006 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16344 "Photo.c"
- {
- PhotoRow* _tmp1_;
- PhotoID _tmp2_;
-#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->photo_id;
-#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp2_;
-#line 16354 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2006 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2006 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16361 "Photo.c"
- }
-#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 16365 "Photo.c"
- }
- __finally334:
- {
- PhotoRow* _tmp4_;
-#line 2006 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2006 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16374 "Photo.c"
- }
-#line 2006 "/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 2006 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2006 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 16382 "Photo.c"
- }
-}
-
-
-static inline void
-photo_real_get_event_id (MediaSource* base,
- EventID* result)
-{
- Photo * self;
- PhotoRow* _tmp0_;
- EventID _tmp1_;
-#line 2012 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_->event_id;
-#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp1_;
-#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 16404 "Photo.c"
-}
-
-
-inline gint64
-photo_get_raw_event_id (Photo* self)
-{
- gint64 result = 0LL;
- PhotoRow* _tmp0_;
- EventID _tmp1_;
- gint64 _tmp2_;
-#line 2017 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0LL);
-#line 2018 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2018 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_->event_id;
-#line 2018 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_.id;
-#line 2018 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 2018 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16427 "Photo.c"
-}
-
-
-static void
-photo_real_get_import_id (MediaSource* base,
- ImportID* result)
-{
- Photo * self;
- GError * _inner_error_ = NULL;
-#line 2021 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 16439 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16446 "Photo.c"
- {
- PhotoRow* _tmp1_;
- ImportID _tmp2_;
-#line 2023 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2023 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->import_id;
-#line 2023 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp2_;
-#line 16456 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16463 "Photo.c"
- }
-#line 2023 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 16467 "Photo.c"
- }
- __finally335:
- {
- PhotoRow* _tmp4_;
-#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16476 "Photo.c"
- }
-#line 2022 "/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 2022 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 16484 "Photo.c"
- }
-}
-
-
-void
-photo_get_editable_id (Photo* self,
- BackingPhotoID* result)
-{
- GError * _inner_error_ = NULL;
-#line 2027 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 16496 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16503 "Photo.c"
- {
- PhotoRow* _tmp1_;
- BackingPhotoID _tmp2_;
-#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable_id;
-#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp2_;
-#line 16513 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16520 "Photo.c"
- }
-#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 16524 "Photo.c"
- }
- __finally336:
- {
- PhotoRow* _tmp4_;
-#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16533 "Photo.c"
- }
-#line 2028 "/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 2028 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 16541 "Photo.c"
- }
-}
-
-
-static gchar*
-photo_real_get_master_md5 (MediaSource* base)
-{
- Photo * self;
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 2033 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 16554 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16561 "Photo.c"
- {
- PhotoRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 2035 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2035 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->md5;
-#line 2035 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 2035 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 16574 "Photo.c"
- {
- PhotoRow* _tmp4_;
-#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16581 "Photo.c"
- }
-#line 2035 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16585 "Photo.c"
- }
- __finally337:
- {
- PhotoRow* _tmp5_;
-#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16594 "Photo.c"
- }
-#line 2034 "/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 2034 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 16602 "Photo.c"
- }
-}
-
-
-guint64
-photo_get_flags (Photo* self)
-{
- guint64 result = 0ULL;
- GError * _inner_error_ = NULL;
-#line 2041 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0ULL);
-#line 16614 "Photo.c"
- {
- PhotoRow* _tmp0_;
- guint64 _tmp5_ = 0ULL;
-#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16622 "Photo.c"
- {
- PhotoRow* _tmp1_;
- guint64 _tmp2_;
-#line 2043 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2043 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->flags;
-#line 2043 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 16632 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16639 "Photo.c"
- }
-#line 2043 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16643 "Photo.c"
- }
- __finally338:
- {
- PhotoRow* _tmp4_;
-#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16652 "Photo.c"
- }
-#line 2042 "/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 2042 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 16660 "Photo.c"
- }
-}
-
-
-static void
-photo_notify_flags_altered (Photo* self,
- Alteration* additional_alteration)
-{
- Alteration* alteration = NULL;
- Alteration* _tmp0_;
- Alteration* _tmp3_;
-#line 2047 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2047 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration));
-#line 2048 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = alteration_new ("metadata", "flags");
-#line 2048 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration = _tmp0_;
-#line 2049 "/home/jens/Source/shotwell/src/Photo.vala"
- if (additional_alteration != NULL) {
-#line 16682 "Photo.c"
- Alteration* _tmp1_;
- Alteration* _tmp2_;
-#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = alteration;
-#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = alteration_compress (_tmp1_, additional_alteration);
-#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (alteration);
-#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration = _tmp2_;
-#line 16693 "Photo.c"
- }
-#line 2052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = alteration;
-#line 2052 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp3_);
-#line 2047 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (alteration);
-#line 16701 "Photo.c"
-}
-
-
-guint64
-photo_replace_flags (Photo* self,
- guint64 flags,
- Alteration* additional_alteration)
-{
- guint64 result = 0ULL;
- gboolean committed = FALSE;
- gboolean _tmp8_;
- GError * _inner_error_ = NULL;
-#line 2055 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0ULL);
-#line 2055 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 16718 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2057 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2057 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16725 "Photo.c"
- {
- PhotoTable* _tmp1_;
- PhotoTable* _tmp2_;
- PhotoID _tmp3_ = {0};
- gboolean _tmp4_;
-#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_table_get_instance ();
-#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp3_);
-#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_replace_flags (_tmp2_, &_tmp3_, flags);
-#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp2_);
-#line 2059 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = committed;
-#line 2059 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_) {
-#line 16745 "Photo.c"
- PhotoRow* _tmp5_;
-#line 2060 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2060 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_->flags = flags;
-#line 16751 "Photo.c"
- }
- }
- __finally339:
- {
- PhotoRow* _tmp6_;
-#line 2057 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2057 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16761 "Photo.c"
- }
-#line 2057 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 16765 "Photo.c"
- guint64 _tmp7_ = 0ULL;
-#line 2057 "/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 2057 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2057 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp7_;
-#line 16773 "Photo.c"
- }
- }
-#line 2063 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = committed;
-#line 2063 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_) {
-#line 2064 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_flags_altered (self, additional_alteration);
-#line 16782 "Photo.c"
- }
-#line 2066 "/home/jens/Source/shotwell/src/Photo.vala"
- result = flags;
-#line 2066 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16788 "Photo.c"
-}
-
-
-gboolean
-photo_is_flag_set (Photo* self,
- guint64 mask)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 2069 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 16800 "Photo.c"
- {
- PhotoRow* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16808 "Photo.c"
- {
- PhotoRow* _tmp1_;
- guint64 _tmp2_;
-#line 2071 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2071 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->flags;
-#line 2071 "/home/jens/Source/shotwell/src/Photo.vala"
- result = media_source_internal_is_flag_set (_tmp2_, mask);
-#line 16818 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16825 "Photo.c"
- }
-#line 2071 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16829 "Photo.c"
- }
- __finally340:
- {
- PhotoRow* _tmp4_;
-#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16838 "Photo.c"
- }
-#line 2070 "/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 2070 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 16846 "Photo.c"
- }
-}
-
-
-guint64
-photo_add_flags (Photo* self,
- guint64 mask,
- Alteration* additional_alteration)
-{
- guint64 result = 0ULL;
- guint64 flags = 0ULL;
- gboolean committed = FALSE;
- gboolean _tmp15_;
- GError * _inner_error_ = NULL;
-#line 2075 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0ULL);
-#line 2075 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 2076 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = (guint64) 0;
-#line 2078 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 16869 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16876 "Photo.c"
- {
- PhotoRow* _tmp1_;
- guint64 _tmp2_;
- PhotoRow* _tmp3_;
- guint64 _tmp4_;
- guint64 _tmp5_;
-#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->flags;
-#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = media_source_internal_add_flags (_tmp2_, mask);
-#line 2081 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2081 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->flags;
-#line 2081 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = flags;
-#line 2081 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_ != _tmp5_) {
-#line 16897 "Photo.c"
- PhotoTable* _tmp6_;
- PhotoTable* _tmp7_;
- PhotoID _tmp8_ = {0};
- guint64 _tmp9_;
- gboolean _tmp10_;
-#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_table_get_instance ();
-#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp8_);
-#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = flags;
-#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_replace_flags (_tmp7_, &_tmp8_, _tmp9_);
-#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp7_);
-#line 2083 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = committed;
-#line 2083 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_) {
-#line 16919 "Photo.c"
- PhotoRow* _tmp11_;
- guint64 _tmp12_;
-#line 2084 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 2084 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = flags;
-#line 2084 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_->flags = _tmp12_;
-#line 16928 "Photo.c"
- }
- }
- }
- __finally341:
- {
- PhotoRow* _tmp13_;
-#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->row;
-#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 16939 "Photo.c"
- }
-#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 16943 "Photo.c"
- guint64 _tmp14_ = 0ULL;
-#line 2079 "/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 2079 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp14_;
-#line 16951 "Photo.c"
- }
- }
-#line 2088 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = committed;
-#line 2088 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_) {
-#line 2089 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_flags_altered (self, additional_alteration);
-#line 16960 "Photo.c"
- }
-#line 2091 "/home/jens/Source/shotwell/src/Photo.vala"
- result = flags;
-#line 2091 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 16966 "Photo.c"
-}
-
-
-guint64
-photo_remove_flags (Photo* self,
- guint64 mask,
- Alteration* additional_alteration)
-{
- guint64 result = 0ULL;
- guint64 flags = 0ULL;
- gboolean committed = FALSE;
- gboolean _tmp15_;
- GError * _inner_error_ = NULL;
-#line 2094 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0ULL);
-#line 2094 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 2095 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = (guint64) 0;
-#line 2097 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 16988 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 16995 "Photo.c"
- {
- PhotoRow* _tmp1_;
- guint64 _tmp2_;
- PhotoRow* _tmp3_;
- guint64 _tmp4_;
- guint64 _tmp5_;
-#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->flags;
-#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = media_source_internal_remove_flags (_tmp2_, mask);
-#line 2100 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2100 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->flags;
-#line 2100 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = flags;
-#line 2100 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_ != _tmp5_) {
-#line 17016 "Photo.c"
- PhotoTable* _tmp6_;
- PhotoTable* _tmp7_;
- PhotoID _tmp8_ = {0};
- guint64 _tmp9_;
- gboolean _tmp10_;
-#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_table_get_instance ();
-#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp8_);
-#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = flags;
-#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_replace_flags (_tmp7_, &_tmp8_, _tmp9_);
-#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp7_);
-#line 2102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = committed;
-#line 2102 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_) {
-#line 17038 "Photo.c"
- PhotoRow* _tmp11_;
- guint64 _tmp12_;
-#line 2103 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 2103 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = flags;
-#line 2103 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_->flags = _tmp12_;
-#line 17047 "Photo.c"
- }
- }
- }
- __finally342:
- {
- PhotoRow* _tmp13_;
-#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->row;
-#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17058 "Photo.c"
- }
-#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17062 "Photo.c"
- guint64 _tmp14_ = 0ULL;
-#line 2098 "/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 2098 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp14_;
-#line 17070 "Photo.c"
- }
- }
-#line 2107 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = committed;
-#line 2107 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_) {
-#line 2108 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_flags_altered (self, additional_alteration);
-#line 17079 "Photo.c"
- }
-#line 2110 "/home/jens/Source/shotwell/src/Photo.vala"
- result = flags;
-#line 2110 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 17085 "Photo.c"
-}
-
-
-guint64
-photo_add_remove_flags (Photo* self,
- guint64 add,
- guint64 remove,
- Alteration* additional_alteration)
-{
- guint64 result = 0ULL;
- guint64 flags = 0ULL;
- gboolean committed = FALSE;
- gboolean _tmp15_;
- GError * _inner_error_ = NULL;
-#line 2113 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0ULL);
-#line 2113 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 2114 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = (guint64) 0;
-#line 2116 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 17108 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17115 "Photo.c"
- {
- PhotoRow* _tmp1_;
- guint64 _tmp2_;
- PhotoRow* _tmp3_;
- guint64 _tmp4_;
- guint64 _tmp5_;
-#line 2118 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2118 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->flags;
-#line 2118 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = (_tmp2_ | add) & (~remove);
-#line 2119 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2119 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->flags;
-#line 2119 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = flags;
-#line 2119 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_ != _tmp5_) {
-#line 17136 "Photo.c"
- PhotoTable* _tmp6_;
- PhotoTable* _tmp7_;
- PhotoID _tmp8_ = {0};
- guint64 _tmp9_;
- gboolean _tmp10_;
-#line 2120 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_table_get_instance ();
-#line 2120 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 2120 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp8_);
-#line 2120 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = flags;
-#line 2120 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_replace_flags (_tmp7_, &_tmp8_, _tmp9_);
-#line 2120 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp7_);
-#line 2121 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = committed;
-#line 2121 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_) {
-#line 17158 "Photo.c"
- PhotoRow* _tmp11_;
- guint64 _tmp12_;
-#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = flags;
-#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_->flags = _tmp12_;
-#line 17167 "Photo.c"
- }
- }
- }
- __finally343:
- {
- PhotoRow* _tmp13_;
-#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->row;
-#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17178 "Photo.c"
- }
-#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17182 "Photo.c"
- guint64 _tmp14_ = 0ULL;
-#line 2117 "/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 2117 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp14_;
-#line 17190 "Photo.c"
- }
- }
-#line 2126 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = committed;
-#line 2126 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_) {
-#line 2127 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_flags_altered (self, additional_alteration);
-#line 17199 "Photo.c"
- }
-#line 2129 "/home/jens/Source/shotwell/src/Photo.vala"
- result = flags;
-#line 2129 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 17205 "Photo.c"
-}
-
-
-void
-photo_add_remove_many_flags (GeeCollection* add,
- guint64 add_mask,
- Alteration* additional_add_alteration,
- GeeCollection* remove,
- guint64 remove_mask,
- Alteration* additional_remove_alteration,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 2132 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((add == NULL) || GEE_IS_COLLECTION (add));
-#line 2132 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((additional_add_alteration == NULL) || IS_ALTERATION (additional_add_alteration));
-#line 2132 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((remove == NULL) || GEE_IS_COLLECTION (remove));
-#line 2132 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((additional_remove_alteration == NULL) || IS_ALTERATION (additional_remove_alteration));
-#line 2135 "/home/jens/Source/shotwell/src/Photo.vala"
- database_table_begin_transaction ();
-#line 2137 "/home/jens/Source/shotwell/src/Photo.vala"
- if (add != NULL) {
-#line 17231 "Photo.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeIterator* _tmp0_;
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (add, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_it = _tmp0_;
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 17241 "Photo.c"
- GeeIterator* _tmp1_;
- Photo* photo = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Photo* _tmp4_;
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _photo_it;
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 17253 "Photo.c"
- }
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _photo_it;
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = (Photo*) _tmp3_;
-#line 2139 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo;
-#line 2139 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_flags (_tmp4_, add_mask, additional_add_alteration);
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 17267 "Photo.c"
- }
-#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_photo_it);
-#line 17271 "Photo.c"
- }
- }
-#line 2142 "/home/jens/Source/shotwell/src/Photo.vala"
- if (remove != NULL) {
-#line 17276 "Photo.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeIterator* _tmp5_;
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (remove, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_it = _tmp5_;
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 17286 "Photo.c"
- GeeIterator* _tmp6_;
- Photo* photo = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- Photo* _tmp9_;
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _photo_it;
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 17298 "Photo.c"
- }
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _photo_it;
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = (Photo*) _tmp8_;
-#line 2144 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo;
-#line 2144 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_remove_flags (_tmp9_, remove_mask, additional_remove_alteration);
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 17312 "Photo.c"
- }
-#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_photo_it);
-#line 17316 "Photo.c"
- }
- }
-#line 2147 "/home/jens/Source/shotwell/src/Photo.vala"
- database_table_commit_transaction (&_inner_error_);
-#line 2147 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2147 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 2147 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2147 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17329 "Photo.c"
- } else {
-#line 2147 "/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 2147 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2147 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17337 "Photo.c"
- }
- }
-}
-
-
-guint64
-photo_toggle_flags (Photo* self,
- guint64 mask,
- Alteration* additional_alteration)
-{
- guint64 result = 0ULL;
- guint64 flags = 0ULL;
- gboolean committed = FALSE;
- gboolean _tmp15_;
- GError * _inner_error_ = NULL;
-#line 2150 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0ULL);
-#line 2150 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 2151 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = (guint64) 0;
-#line 2153 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 17361 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2154 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2154 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17368 "Photo.c"
- {
- PhotoRow* _tmp1_;
- guint64 _tmp2_;
- PhotoRow* _tmp3_;
- guint64 _tmp4_;
- guint64 _tmp5_;
-#line 2155 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2155 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->flags;
-#line 2155 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = _tmp2_ ^ mask;
-#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->flags;
-#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = flags;
-#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_ != _tmp5_) {
-#line 17389 "Photo.c"
- PhotoTable* _tmp6_;
- PhotoTable* _tmp7_;
- PhotoID _tmp8_ = {0};
- guint64 _tmp9_;
- gboolean _tmp10_;
-#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_table_get_instance ();
-#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp8_);
-#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = flags;
-#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_replace_flags (_tmp7_, &_tmp8_, _tmp9_);
-#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp7_);
-#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = committed;
-#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_) {
-#line 17411 "Photo.c"
- PhotoRow* _tmp11_;
- guint64 _tmp12_;
-#line 2159 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 2159 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = flags;
-#line 2159 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_->flags = _tmp12_;
-#line 17420 "Photo.c"
- }
- }
- }
- __finally344:
- {
- PhotoRow* _tmp13_;
-#line 2154 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->row;
-#line 2154 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17431 "Photo.c"
- }
-#line 2154 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17435 "Photo.c"
- guint64 _tmp14_ = 0ULL;
-#line 2154 "/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 2154 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2154 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp14_;
-#line 17443 "Photo.c"
- }
- }
-#line 2163 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = committed;
-#line 2163 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_) {
-#line 2164 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_flags_altered (self, additional_alteration);
-#line 17452 "Photo.c"
- }
-#line 2166 "/home/jens/Source/shotwell/src/Photo.vala"
- result = flags;
-#line 2166 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 17458 "Photo.c"
-}
-
-
-gboolean
-photo_is_master_metadata_dirty (Photo* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 2169 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 17469 "Photo.c"
- {
- PhotoRow* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17477 "Photo.c"
- {
- PhotoRow* _tmp1_;
- gboolean _tmp2_;
-#line 2171 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2171 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->metadata_dirty;
-#line 2171 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 17487 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17494 "Photo.c"
- }
-#line 2171 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 17498 "Photo.c"
- }
- __finally345:
- {
- PhotoRow* _tmp4_;
-#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17507 "Photo.c"
- }
-#line 2170 "/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 2170 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 17515 "Photo.c"
- }
-}
-
-
-void
-photo_set_master_metadata_dirty (Photo* self,
- gboolean dirty,
- GError** error)
-{
- gboolean committed = FALSE;
- gboolean _tmp8_;
- GError * _inner_error_ = NULL;
-#line 2175 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2176 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 17532 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17539 "Photo.c"
- {
- PhotoRow* _tmp1_;
- gboolean _tmp2_;
-#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->metadata_dirty;
-#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != dirty) {
-#line 17549 "Photo.c"
- PhotoTable* _tmp3_;
- PhotoTable* _tmp4_;
- PhotoID _tmp5_ = {0};
- PhotoRow* _tmp6_;
-#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_table_get_instance ();
-#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp5_);
-#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_set_metadata_dirty (_tmp4_, &_tmp5_, dirty, &_inner_error_);
-#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp4_);
-#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 17566 "Photo.c"
- goto __finally346;
- }
-#line 2180 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2180 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_->metadata_dirty = dirty;
-#line 2181 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = TRUE;
-#line 17575 "Photo.c"
- }
- }
- __finally346:
- {
- PhotoRow* _tmp7_;
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->row;
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17585 "Photo.c"
- }
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17595 "Photo.c"
- } else {
-#line 2177 "/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 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17603 "Photo.c"
- }
- }
- }
-#line 2185 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = committed;
-#line 2185 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_) {
-#line 17611 "Photo.c"
- Alteration* _tmp9_;
- Alteration* _tmp10_;
-#line 2186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = alteration_new ("metadata", "master-dirty");
-#line 2186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_;
-#line 2186 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp10_);
-#line 2186 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp10_);
-#line 17622 "Photo.c"
- }
-}
-
-
-static Rating
-photo_real_get_rating (MediaSource* base)
-{
- Photo * self;
- Rating result = 0;
- GError * _inner_error_ = NULL;
-#line 2189 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 17635 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17642 "Photo.c"
- {
- PhotoRow* _tmp1_;
- Rating _tmp2_;
-#line 2191 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2191 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->rating;
-#line 2191 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 17652 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17659 "Photo.c"
- }
-#line 2191 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 17663 "Photo.c"
- }
- __finally347:
- {
- PhotoRow* _tmp4_;
-#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17672 "Photo.c"
- }
-#line 2190 "/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 2190 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
- return 0;
-#line 17680 "Photo.c"
- }
-}
-
-
-static void
-photo_real_set_rating (MediaSource* base,
- Rating rating)
-{
- Photo * self;
- gboolean committed = FALSE;
- gboolean _tmp10_;
- GError * _inner_error_ = NULL;
-#line 2195 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2196 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 17697 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2198 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2198 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17704 "Photo.c"
- {
- gboolean _tmp1_ = FALSE;
- PhotoRow* _tmp2_;
- Rating _tmp3_;
-#line 2199 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->row;
-#line 2199 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->rating;
-#line 2199 "/home/jens/Source/shotwell/src/Photo.vala"
- if (rating != _tmp3_) {
-#line 2199 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = rating_is_valid (rating);
-#line 17717 "Photo.c"
- } else {
-#line 2199 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 17721 "Photo.c"
- }
-#line 2199 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_) {
-#line 17725 "Photo.c"
- PhotoTable* _tmp4_;
- PhotoTable* _tmp5_;
- PhotoID _tmp6_ = {0};
- gboolean _tmp7_;
-#line 2200 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_table_get_instance ();
-#line 2200 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 2200 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp6_);
-#line 2200 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_set_rating (_tmp5_, &_tmp6_, rating);
-#line 2200 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp5_);
-#line 2201 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = committed;
-#line 2201 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_) {
-#line 17744 "Photo.c"
- PhotoRow* _tmp8_;
-#line 2202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->row;
-#line 2202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_->rating = rating;
-#line 17750 "Photo.c"
- }
- }
- }
- __finally348:
- {
- PhotoRow* _tmp9_;
-#line 2198 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 2198 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17761 "Photo.c"
- }
-#line 2198 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2198 "/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 2198 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2198 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17771 "Photo.c"
- }
- }
-#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = committed;
-#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_) {
-#line 17778 "Photo.c"
- Alteration* _tmp11_;
- Alteration* _tmp12_;
-#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = alteration_new ("metadata", "rating");
-#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_;
-#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp12_);
-#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp12_);
-#line 17789 "Photo.c"
- }
-}
-
-
-static void
-photo_real_increase_rating (MediaSource* base)
-{
- Photo * self;
- GError * _inner_error_ = NULL;
-#line 2210 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 17801 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17808 "Photo.c"
- {
- PhotoRow* _tmp1_;
- Rating _tmp2_;
-#line 2212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->rating;
-#line 2212 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), rating_increase (_tmp2_));
-#line 17818 "Photo.c"
- }
- __finally349:
- {
- PhotoRow* _tmp3_;
-#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17827 "Photo.c"
- }
-#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2211 "/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 2211 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17837 "Photo.c"
- }
- }
-}
-
-
-static void
-photo_real_decrease_rating (MediaSource* base)
-{
- Photo * self;
- GError * _inner_error_ = NULL;
-#line 2216 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 17850 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2217 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2217 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17857 "Photo.c"
- {
- PhotoRow* _tmp1_;
- Rating _tmp2_;
-#line 2218 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2218 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->rating;
-#line 2218 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), rating_decrease (_tmp2_));
-#line 17867 "Photo.c"
- }
- __finally350:
- {
- PhotoRow* _tmp3_;
-#line 2217 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2217 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17876 "Photo.c"
- }
-#line 2217 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2217 "/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 2217 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2217 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17886 "Photo.c"
- }
- }
-}
-
-
-static void
-photo_real_commit_backlinks (DataSource* base,
- SourceCollection* sources,
- const gchar* backlinks)
-{
- Photo * self;
- GError * _inner_error_ = NULL;
-#line 2222 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2222 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources));
-#line 17903 "Photo.c"
- {
- PhotoTable* _tmp0_;
- PhotoTable* _tmp1_;
- PhotoID _tmp2_ = {0};
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_table_get_instance ();
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp2_);
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_update_backlinks (_tmp1_, &_tmp2_, backlinks, &_inner_error_);
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp1_);
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 17922 "Photo.c"
- goto __catch351_database_error;
- }
-#line 2227 "/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);
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2227 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17931 "Photo.c"
- }
- {
- PhotoRow* _tmp3_;
-#line 2228 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2228 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 17939 "Photo.c"
- {
- PhotoRow* _tmp4_;
- gchar* _tmp5_;
-#line 2229 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2229 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = g_strdup (backlinks);
-#line 2229 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp4_->backlinks);
-#line 2229 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_->backlinks = _tmp5_;
-#line 17951 "Photo.c"
- }
- __finally352:
- {
- PhotoRow* _tmp6_;
-#line 2228 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2228 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 17960 "Photo.c"
- }
-#line 2228 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2228 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 17966 "Photo.c"
- goto __catch351_database_error;
- }
-#line 2228 "/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);
-#line 2228 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2228 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 17975 "Photo.c"
- }
- }
- }
- goto __finally351;
- __catch351_database_error:
- {
- GError* err = NULL;
- gchar* _tmp7_;
- gchar* _tmp8_;
- GError* _tmp9_;
- const gchar* _tmp10_;
-#line 2226 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 2226 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_;
-#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = err;
-#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->message;
-#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:2232: Unable to update link state for %s: %s", _tmp8_, _tmp10_);
-#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp8_);
-#line 2226 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 18005 "Photo.c"
- }
- __finally351:
-#line 2226 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2226 "/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 2226 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2226 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 18016 "Photo.c"
- }
-}
-
-
-static gboolean
-photo_real_set_event_id (MediaSource* base,
- EventID* event_id)
-{
- Photo * self;
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 2240 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2240 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 18032 "Photo.c"
- {
- PhotoRow* _tmp0_;
- gboolean _tmp12_ = FALSE;
-#line 2241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2241 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 18040 "Photo.c"
- {
- gboolean committed = FALSE;
- PhotoTable* _tmp1_;
- PhotoTable* _tmp2_;
- PhotoRow* _tmp3_;
- PhotoID _tmp4_;
- EventID _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp7_;
-#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_table_get_instance ();
-#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->photo_id;
-#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = *event_id;
-#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_table_set_event (_tmp2_, &_tmp4_, &_tmp5_);
-#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp2_);
-#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = _tmp6_;
-#line 2244 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = committed;
-#line 2244 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_) {
-#line 18070 "Photo.c"
- PhotoRow* _tmp8_;
- EventID _tmp9_;
-#line 2245 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->row;
-#line 2245 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = *event_id;
-#line 2245 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_->event_id = _tmp9_;
-#line 18079 "Photo.c"
- }
-#line 2247 "/home/jens/Source/shotwell/src/Photo.vala"
- result = committed;
-#line 18083 "Photo.c"
- {
- PhotoRow* _tmp10_;
-#line 2241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->row;
-#line 2241 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18090 "Photo.c"
- }
-#line 2247 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18094 "Photo.c"
- }
- __finally353:
- {
- PhotoRow* _tmp11_;
-#line 2241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 2241 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18103 "Photo.c"
- }
-#line 2241 "/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 2241 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2241 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp12_;
-#line 18111 "Photo.c"
- }
-}
-
-
-static gchar*
-photo_real_to_string (DataObject* base)
-{
- Photo * self;
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- PhotoID _tmp9_ = {0};
- gint64 _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- PhotoFileReader* _tmp13_;
- PhotoFileReader* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
-#line 2251 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_is_master_baseline (self)) {
-#line 18136 "Photo.c"
- GFile* _tmp1_;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_actual_file (self);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = g_file_get_path (_tmp2_);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = g_strconcat (" (", _tmp4_, NULL);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_;
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = g_strconcat (_tmp6_, ")", NULL);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp7_;
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp6_);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp4_);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp2_);
-#line 18168 "Photo.c"
- } else {
- gchar* _tmp8_;
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = g_strdup ("");
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 2253 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp8_;
-#line 18177 "Photo.c"
- }
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp9_);
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_.id;
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp10_);
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_;
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = photo_get_master_reader (self);
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_;
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_;
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = g_strdup_printf ("[%s] %s%s", _tmp12_, _tmp16_, _tmp0_);
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_;
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp16_);
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp14_);
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp12_);
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp18_;
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18211 "Photo.c"
-}
-
-
-static gboolean
-photo_real_equals (DataSource* base,
- DataSource* source)
-{
- Photo * self;
- gboolean result = FALSE;
- Photo* photo = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
-#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE);
-#line 2258 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL);
-#line 2258 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp0_;
-#line 2259 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo;
-#line 2259 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ != NULL) {
-#line 18236 "Photo.c"
- PhotoID photo_id = {0};
- PhotoID _tmp2_ = {0};
- PhotoID other_photo_id = {0};
- Photo* _tmp3_;
- PhotoID _tmp4_ = {0};
- gboolean _tmp5_ = FALSE;
- Photo* _tmp6_;
-#line 2260 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp2_);
-#line 2260 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id = _tmp2_;
-#line 2261 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo;
-#line 2261 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (_tmp3_, &_tmp4_);
-#line 2261 "/home/jens/Source/shotwell/src/Photo.vala"
- other_photo_id = _tmp4_;
-#line 2263 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo;
-#line 2263 "/home/jens/Source/shotwell/src/Photo.vala"
- if (self != _tmp6_) {
-#line 18258 "Photo.c"
- PhotoID _tmp7_;
- gint64 _tmp8_;
-#line 2263 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo_id;
-#line 2263 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_.id;
-#line 2263 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp8_ != PHOTO_ID_INVALID;
-#line 18267 "Photo.c"
- } else {
-#line 2263 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = FALSE;
-#line 18271 "Photo.c"
- }
-#line 2263 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp5_) {
-#line 18275 "Photo.c"
- PhotoID _tmp9_;
- gint64 _tmp10_;
- PhotoID _tmp11_;
- gint64 _tmp12_;
-#line 2264 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_id;
-#line 2264 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_.id;
-#line 2264 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = other_photo_id;
-#line 2264 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_.id;
-#line 2264 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp10_ != _tmp12_, "photo_id.id != other_photo_id.id");
-#line 18290 "Photo.c"
- }
- }
-#line 2268 "/home/jens/Source/shotwell/src/Photo.vala"
- result = DATA_SOURCE_CLASS (photo_parent_class)->equals (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_DATA_SOURCE, DataSource), source);
-#line 2268 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 2268 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18299 "Photo.c"
-}
-
-
-static void
-photo_file_exif_updated (Photo* self)
-{
- GFile* file = NULL;
- GFile* _tmp0_;
- GFileInfo* info = NULL;
- GTimeVal timestamp = {0};
- GFileInfo* _tmp7_;
- GTimeVal _tmp8_ = {0};
- PhotoFileInterrogator* interrogator = NULL;
- PhotoFileInterrogator* _tmp9_;
- DetectedPhotoInformation* detected = NULL;
- DetectedPhotoInformation* _tmp14_;
- gboolean _tmp15_ = FALSE;
- DetectedPhotoInformation* _tmp16_;
- gboolean success = FALSE;
- gboolean _tmp34_;
- GError * _inner_error_ = NULL;
-#line 2272 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 2273 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp0_;
-#line 2275 "/home/jens/Source/shotwell/src/Photo.vala"
- info = NULL;
-#line 18329 "Photo.c"
- {
- GFileInfo* _tmp1_ = NULL;
- GFileInfo* _tmp2_;
- GFileInfo* _tmp3_;
-#line 2277 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = g_file_query_info (file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 2277 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp2_;
-#line 2277 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 18340 "Photo.c"
- goto __catch354_g_error;
- }
-#line 2277 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp1_;
-#line 2277 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = NULL;
-#line 2277 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 2277 "/home/jens/Source/shotwell/src/Photo.vala"
- info = _tmp3_;
-#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 18353 "Photo.c"
- }
- goto __finally354;
- __catch354_g_error:
- {
- GError* err = NULL;
- gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = err->message;
-#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
- g_error ("Photo.vala:2280: Unable to read file information for %s: %s", _tmp5_, _tmp6_);
-#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp5_);
-#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 18378 "Photo.c"
- }
- __finally354:
-#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 2276 "/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 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 18393 "Photo.c"
- }
-#line 2283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = info;
-#line 2283 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_info_get_modification_time (_tmp7_, &_tmp8_);
-#line 2283 "/home/jens/Source/shotwell/src/Photo.vala"
- timestamp = _tmp8_;
-#line 2286 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_file_interrogator_new (file, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL);
-#line 2286 "/home/jens/Source/shotwell/src/Photo.vala"
- interrogator = _tmp9_;
-#line 18405 "Photo.c"
- {
-#line 2288 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_interrogator_interrogate (interrogator, &_inner_error_);
-#line 2288 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 18411 "Photo.c"
- goto __catch355_g_error;
- }
- }
- goto __finally355;
- __catch355_g_error:
- {
- GError* err = NULL;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GError* _tmp12_;
- const gchar* _tmp13_;
-#line 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 2290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = g_file_get_path (file);
-#line 2290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_;
-#line 2290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = err;
-#line 2290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->message;
-#line 2290 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:2290: Unable to interrogate photo file %s: %s", _tmp11_, _tmp13_);
-#line 2290 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp11_);
-#line 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 18441 "Photo.c"
- }
- __finally355:
-#line 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 2287 "/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 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2287 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 18458 "Photo.c"
- }
-#line 2293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = photo_file_interrogator_get_detected_photo_information (interrogator);
-#line 2293 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp14_;
-#line 2294 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = detected;
-#line 2294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp16_ == NULL) {
-#line 2294 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = TRUE;
-#line 18470 "Photo.c"
- } else {
-#line 2294 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = photo_file_interrogator_get_is_photo_corrupted (interrogator);
-#line 18474 "Photo.c"
- }
-#line 2294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_) {
-#line 18478 "Photo.c"
- gchar* _tmp17_;
- gchar* _tmp18_;
-#line 2295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 2295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_;
-#line 2295 "/home/jens/Source/shotwell/src/Photo.vala"
- g_critical ("Photo.vala:2295: file_exif_updated: %s no longer an image", _tmp18_);
-#line 2295 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp18_);
-#line 2297 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 2297 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 2297 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 2297 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 2297 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 18499 "Photo.c"
- }
- {
- PhotoRow* _tmp19_;
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = self->row;
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 18507 "Photo.c"
- {
- PhotoTable* _tmp20_;
- PhotoTable* _tmp21_;
- PhotoID _tmp22_ = {0};
- GFileInfo* _tmp23_;
- GTimeVal _tmp24_;
- glong _tmp25_;
- DetectedPhotoInformation* _tmp26_;
- const gchar* _tmp27_;
- DetectedPhotoInformation* _tmp28_;
- const gchar* _tmp29_;
- DetectedPhotoInformation* _tmp30_;
- const gchar* _tmp31_;
- PhotoRow* _tmp32_;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = photo_table_get_instance ();
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (self, &_tmp22_);
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = info;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = timestamp;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp24_.tv_sec;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = detected;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp26_->md5;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = detected;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _tmp28_->exif_md5;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = detected;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_->thumbnail_md5;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = self->row;
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- success = photo_table_master_exif_updated (_tmp21_, &_tmp22_, g_file_info_get_size (_tmp23_), _tmp25_, _tmp27_, _tmp29_, _tmp31_, _tmp32_);
-#line 2302 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp21_);
-#line 18552 "Photo.c"
- }
- __finally356:
- {
- PhotoRow* _tmp33_;
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = self->row;
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18561 "Photo.c"
- }
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 2301 "/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 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2301 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 18579 "Photo.c"
- }
- }
-#line 2306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = success;
-#line 2306 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp34_) {
-#line 18586 "Photo.c"
- Alteration* _tmp35_;
- Alteration* _tmp36_;
-#line 2307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = alteration_new_from_list ("metadata:exif,metadata:md5");
-#line 2307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_;
-#line 2307 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp36_);
-#line 2307 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp36_);
-#line 18597 "Photo.c"
- }
-#line 2272 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 2272 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_interrogator_unref0 (interrogator);
-#line 2272 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 2272 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 18607 "Photo.c"
-}
-
-
-static guint64
-photo_real_get_filesize (MediaSource* base)
-{
- Photo * self;
- guint64 result = 0ULL;
- GError * _inner_error_ = NULL;
-#line 2312 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 18619 "Photo.c"
- {
- PhotoRow* _tmp0_;
- guint64 _tmp5_ = 0ULL;
-#line 2313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2313 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 18627 "Photo.c"
- {
- BackingPhotoRow* _tmp1_;
- gint64 _tmp2_;
-#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->backing_photo_row;
-#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->filesize;
-#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
- result = (guint64) _tmp2_;
-#line 18637 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2313 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18644 "Photo.c"
- }
-#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18648 "Photo.c"
- }
- __finally357:
- {
- PhotoRow* _tmp4_;
-#line 2313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2313 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18657 "Photo.c"
- }
-#line 2313 "/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 2313 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2313 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 18665 "Photo.c"
- }
-}
-
-
-static guint64
-photo_real_get_master_filesize (MediaSource* base)
-{
- Photo * self;
- guint64 result = 0ULL;
- GError * _inner_error_ = NULL;
-#line 2318 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 18678 "Photo.c"
- {
- PhotoRow* _tmp0_;
- guint64 _tmp6_ = 0ULL;
-#line 2319 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2319 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 18686 "Photo.c"
- {
- PhotoRow* _tmp1_;
- BackingPhotoRow* _tmp2_;
- gint64 _tmp3_;
-#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->master;
-#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->filesize;
-#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
- result = (guint64) _tmp3_;
-#line 18699 "Photo.c"
- {
- PhotoRow* _tmp4_;
-#line 2319 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2319 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18706 "Photo.c"
- }
-#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18710 "Photo.c"
- }
- __finally358:
- {
- PhotoRow* _tmp5_;
-#line 2319 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2319 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18719 "Photo.c"
- }
-#line 2319 "/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 2319 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2319 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp6_;
-#line 18727 "Photo.c"
- }
-}
-
-
-guint64
-photo_get_editable_filesize (Photo* self)
-{
- guint64 result = 0ULL;
- GError * _inner_error_ = NULL;
-#line 2324 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0ULL);
-#line 18739 "Photo.c"
- {
- PhotoRow* _tmp0_;
- guint64 _tmp5_ = 0ULL;
-#line 2325 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2325 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 18747 "Photo.c"
- {
- BackingPhotoRow* _tmp1_;
- gint64 _tmp2_;
-#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->editable;
-#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->filesize;
-#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
- result = (guint64) _tmp2_;
-#line 18757 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2325 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2325 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18764 "Photo.c"
- }
-#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18768 "Photo.c"
- }
- __finally359:
- {
- PhotoRow* _tmp4_;
-#line 2325 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2325 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18777 "Photo.c"
- }
-#line 2325 "/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 2325 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2325 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 18785 "Photo.c"
- }
-}
-
-
-static time_t
-photo_real_get_exposure_time (Dateable* base)
-{
- Photo * self;
- time_t result = 0;
- time_t _tmp0_;
-#line 2330 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2331 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->cached_exposure_time;
-#line 2331 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 2331 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18804 "Photo.c"
-}
-
-
-static gchar*
-photo_real_get_basename (MediaSource* base)
-{
- Photo * self;
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 2334 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 18816 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 18823 "Photo.c"
- {
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 2336 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->file_title;
-#line 2336 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 2336 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 18833 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18840 "Photo.c"
- }
-#line 2336 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18844 "Photo.c"
- }
- __finally360:
- {
- PhotoRow* _tmp4_;
-#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18853 "Photo.c"
- }
-#line 2335 "/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 2335 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 18861 "Photo.c"
- }
-}
-
-
-static gchar*
-photo_real_get_title (MediaSource* base)
-{
- Photo * self;
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 2340 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 18874 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 18881 "Photo.c"
- {
- PhotoRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 2342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->title;
-#line 2342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 2342 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 18894 "Photo.c"
- {
- PhotoRow* _tmp4_;
-#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18901 "Photo.c"
- }
-#line 2342 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18905 "Photo.c"
- }
- __finally361:
- {
- PhotoRow* _tmp5_;
-#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18914 "Photo.c"
- }
-#line 2341 "/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 2341 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 18922 "Photo.c"
- }
-}
-
-
-static gchar*
-photo_real_get_comment (MediaSource* base)
-{
- Photo * self;
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 2346 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 18935 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2347 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2347 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 18942 "Photo.c"
- {
- PhotoRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 2348 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2348 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->comment;
-#line 2348 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 2348 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 18955 "Photo.c"
- {
- PhotoRow* _tmp4_;
-#line 2347 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2347 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18962 "Photo.c"
- }
-#line 2348 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 18966 "Photo.c"
- }
- __finally362:
- {
- PhotoRow* _tmp5_;
-#line 2347 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2347 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 18975 "Photo.c"
- }
-#line 2347 "/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 2347 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2347 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 18983 "Photo.c"
- }
-}
-
-
-static void
-photo_real_set_title (MediaSource* base,
- const gchar* title)
-{
- Photo * self;
- gchar* new_title = NULL;
- gchar* _tmp0_;
- gboolean committed = FALSE;
- gboolean _tmp16_;
- GError * _inner_error_ = NULL;
-#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2353 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_prep_title (title);
-#line 2353 "/home/jens/Source/shotwell/src/Photo.vala"
- new_title = _tmp0_;
-#line 2355 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 19006 "Photo.c"
- {
- PhotoRow* _tmp1_;
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 19013 "Photo.c"
- {
- const gchar* _tmp2_;
- PhotoRow* _tmp3_;
- const gchar* _tmp4_;
- PhotoTable* _tmp6_;
- PhotoTable* _tmp7_;
- PhotoRow* _tmp8_;
- PhotoID _tmp9_;
- const gchar* _tmp10_;
- gboolean _tmp11_;
-#line 2357 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = new_title;
-#line 2357 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2357 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->title;
-#line 2357 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_strcmp0 (_tmp2_, _tmp4_) == 0) {
-#line 19032 "Photo.c"
- {
- PhotoRow* _tmp5_;
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 19039 "Photo.c"
- }
-#line 2358 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (new_title);
-#line 2358 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19045 "Photo.c"
- }
-#line 2360 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_table_get_instance ();
-#line 2360 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 2360 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->row;
-#line 2360 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_->photo_id;
-#line 2360 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = new_title;
-#line 2360 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_set_title (_tmp7_, &_tmp9_, _tmp10_);
-#line 2360 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp7_);
-#line 2361 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = committed;
-#line 2361 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_) {
-#line 19065 "Photo.c"
- PhotoRow* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
-#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->row;
-#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = new_title;
-#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = g_strdup (_tmp13_);
-#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp12_->title);
-#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_->title = _tmp14_;
-#line 19079 "Photo.c"
- }
- }
- __finally363:
- {
- PhotoRow* _tmp15_;
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 19089 "Photo.c"
- }
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (new_title);
-#line 2356 "/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 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19101 "Photo.c"
- }
- }
-#line 2365 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = committed;
-#line 2365 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp16_) {
-#line 19108 "Photo.c"
- Alteration* _tmp17_;
- Alteration* _tmp18_;
-#line 2366 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = alteration_new ("metadata", "name");
-#line 2366 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_;
-#line 2366 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp18_);
-#line 2366 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp18_);
-#line 19119 "Photo.c"
- }
-#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (new_title);
-#line 19123 "Photo.c"
-}
-
-
-static gboolean
-photo_real_set_comment (MediaSource* base,
- const gchar* comment)
-{
- Photo * self;
- gboolean result = FALSE;
- gchar* new_comment = NULL;
- gchar* _tmp0_;
- gboolean committed = FALSE;
- gboolean _tmp17_;
- GError * _inner_error_ = NULL;
-#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_prep_comment (comment);
-#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
- new_comment = _tmp0_;
-#line 2372 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 19146 "Photo.c"
- {
- PhotoRow* _tmp1_;
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 19153 "Photo.c"
- {
- const gchar* _tmp2_;
- PhotoRow* _tmp3_;
- const gchar* _tmp4_;
- PhotoTable* _tmp6_;
- PhotoTable* _tmp7_;
- PhotoRow* _tmp8_;
- PhotoID _tmp9_;
- const gchar* _tmp10_;
- gboolean _tmp11_;
-#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = new_comment;
-#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->comment;
-#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_strcmp0 (_tmp2_, _tmp4_) == 0) {
-#line 2375 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 19174 "Photo.c"
- {
- PhotoRow* _tmp5_;
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 19181 "Photo.c"
- }
-#line 2375 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (new_comment);
-#line 2375 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 19187 "Photo.c"
- }
-#line 2377 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_table_get_instance ();
-#line 2377 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 2377 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->row;
-#line 2377 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_->photo_id;
-#line 2377 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = new_comment;
-#line 2377 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_set_comment (_tmp7_, &_tmp9_, _tmp10_);
-#line 2377 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp7_);
-#line 2378 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = committed;
-#line 2378 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_) {
-#line 19207 "Photo.c"
- PhotoRow* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
-#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->row;
-#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = new_comment;
-#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = g_strdup (_tmp13_);
-#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp12_->comment);
-#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_->comment = _tmp14_;
-#line 19221 "Photo.c"
- }
- }
- __finally364:
- {
- PhotoRow* _tmp15_;
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 19231 "Photo.c"
- }
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19235 "Photo.c"
- gboolean _tmp16_ = FALSE;
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (new_comment);
-#line 2373 "/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 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2373 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp16_;
-#line 19245 "Photo.c"
- }
- }
-#line 2382 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = committed;
-#line 2382 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp17_) {
-#line 19252 "Photo.c"
- Alteration* _tmp18_;
- Alteration* _tmp19_;
-#line 2383 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = alteration_new ("metadata", "comment");
-#line 2383 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_;
-#line 2383 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp19_);
-#line 2383 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp19_);
-#line 19263 "Photo.c"
- }
-#line 2385 "/home/jens/Source/shotwell/src/Photo.vala"
- result = committed;
-#line 2385 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (new_comment);
-#line 2385 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 19271 "Photo.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 2395 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? g_error_copy (self) : NULL;
-#line 19280 "Photo.c"
-}
-
-
-void
-photo_set_import_id (Photo* self,
- ImportID* import_id)
-{
- GError* dberr = NULL;
- GError* _tmp13_;
- GError * _inner_error_ = NULL;
-#line 2388 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2388 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (import_id != NULL);
-#line 2389 "/home/jens/Source/shotwell/src/Photo.vala"
- dberr = NULL;
-#line 19297 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 19304 "Photo.c"
- {
- {
- PhotoTable* _tmp1_;
- PhotoTable* _tmp2_;
- PhotoRow* _tmp3_;
- PhotoID _tmp4_;
- ImportID _tmp5_;
- PhotoRow* _tmp7_;
- ImportID _tmp8_;
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_table_get_instance ();
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->photo_id;
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = *import_id;
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_set_import_id (_tmp2_, &_tmp4_, &_tmp5_, &_inner_error_);
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp2_);
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 19332 "Photo.c"
- goto __catch366_database_error;
- }
- {
- PhotoRow* _tmp6_;
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 19341 "Photo.c"
- }
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (dberr);
-#line 2392 "/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);
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2392 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19351 "Photo.c"
- }
-#line 2393 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->row;
-#line 2393 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = *import_id;
-#line 2393 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_->import_id = _tmp8_;
-#line 19359 "Photo.c"
- }
- goto __finally366;
- __catch366_database_error:
- {
- GError* err = NULL;
- GError* _tmp9_;
- GError* _tmp10_;
-#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 2395 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = err;
-#line 2395 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _g_error_copy0 (_tmp9_);
-#line 2395 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (dberr);
-#line 2395 "/home/jens/Source/shotwell/src/Photo.vala"
- dberr = _tmp10_;
-#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 19381 "Photo.c"
- }
- __finally366:
-#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19386 "Photo.c"
- {
- PhotoRow* _tmp11_;
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 19393 "Photo.c"
- }
-#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (dberr);
-#line 2391 "/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);
-#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19403 "Photo.c"
- }
- }
- __finally365:
- {
- PhotoRow* _tmp12_;
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->row;
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 19413 "Photo.c"
- }
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (dberr);
-#line 2390 "/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 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2390 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19425 "Photo.c"
- }
- }
-#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = dberr;
-#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp13_ == NULL) {
-#line 19432 "Photo.c"
- Alteration* _tmp14_;
- Alteration* _tmp15_;
-#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = alteration_new ("metadata", "import-id");
-#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_);
-#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp15_);
-#line 19443 "Photo.c"
- } else {
- gchar* _tmp16_;
- gchar* _tmp17_;
- GError* _tmp18_;
- const gchar* _tmp19_;
-#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_;
-#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = dberr;
-#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_->message;
-#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:2402: Unable to write import ID for %s: %s", _tmp17_, _tmp19_);
-#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp17_);
-#line 19461 "Photo.c"
- }
-#line 2388 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (dberr);
-#line 19465 "Photo.c"
-}
-
-
-void
-photo_set_title_persistent (Photo* self,
- const gchar* title,
- GError** error)
-{
- PhotoFileReader* source = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- PhotoMetadata* metadata = NULL;
- PhotoFileReader* _tmp5_;
- PhotoMetadata* _tmp6_;
- PhotoMetadata* _tmp7_;
- PhotoFileMetadataWriter* writer = NULL;
- PhotoFileReader* _tmp8_;
- PhotoFileMetadataWriter* _tmp9_;
- PhotoFileReader* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 2405 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2406 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_source_reader (self);
-#line 2406 "/home/jens/Source/shotwell/src/Photo.vala"
- source = _tmp0_;
-#line 2409 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = source;
-#line 2409 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) {
-#line 19498 "Photo.c"
- PhotoFileReader* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 2410 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = source;
-#line 2410 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2410 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2410 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:2410: No photo file writer available for %s", _tmp4_);
-#line 2410 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp4_);
-#line 2412 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), title);
-#line 2414 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2414 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19518 "Photo.c"
- }
-#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = source;
-#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_file_reader_read_metadata (_tmp5_, &_inner_error_);
-#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp6_;
-#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19534 "Photo.c"
- }
-#line 2418 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = metadata;
-#line 2418 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_title (_tmp7_, title, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 2420 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = source;
-#line 2420 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_file_reader_create_metadata_writer (_tmp8_, &_inner_error_);
-#line 2420 "/home/jens/Source/shotwell/src/Photo.vala"
- writer = _tmp9_;
-#line 2420 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2420 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2420 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2420 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2420 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19556 "Photo.c"
- }
-#line 2421 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = source;
-#line 2421 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2421 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_;
-#line 2421 "/home/jens/Source/shotwell/src/Photo.vala"
- library_monitor_blacklist_file (_tmp12_, "Photo.set_persistent_title");
-#line 2421 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp12_);
-#line 19568 "Photo.c"
- {
- PhotoFileMetadataWriter* _tmp13_;
- PhotoMetadata* _tmp14_;
-#line 2423 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = writer;
-#line 2423 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = metadata;
-#line 2423 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp13_, _tmp14_, &_inner_error_);
-#line 2423 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19580 "Photo.c"
- goto __finally367;
- }
- }
- __finally367:
- {
- PhotoFileReader* _tmp15_;
- GFile* _tmp16_;
- GFile* _tmp17_;
-#line 2425 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = source;
-#line 2425 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2425 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_;
-#line 2425 "/home/jens/Source/shotwell/src/Photo.vala"
- library_monitor_unblacklist_file (_tmp17_);
-#line 2425 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp17_);
-#line 19599 "Photo.c"
- }
-#line 2422 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2422 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2422 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 2422 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2422 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2422 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19613 "Photo.c"
- }
-#line 2428 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), title);
-#line 2430 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_exif_updated (self);
-#line 2405 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 2405 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2405 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 19625 "Photo.c"
-}
-
-
-void
-photo_set_comment_persistent (Photo* self,
- const gchar* comment,
- GError** error)
-{
- PhotoFileReader* source = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- PhotoMetadata* metadata = NULL;
- PhotoFileReader* _tmp5_;
- PhotoMetadata* _tmp6_;
- PhotoMetadata* _tmp7_;
- PhotoFileMetadataWriter* writer = NULL;
- PhotoFileReader* _tmp8_;
- PhotoFileMetadataWriter* _tmp9_;
- PhotoFileReader* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 2433 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2434 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_source_reader (self);
-#line 2434 "/home/jens/Source/shotwell/src/Photo.vala"
- source = _tmp0_;
-#line 2437 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = source;
-#line 2437 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) {
-#line 19658 "Photo.c"
- PhotoFileReader* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 2438 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = source;
-#line 2438 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2438 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2438 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:2438: No photo file writer available for %s", _tmp4_);
-#line 2438 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp4_);
-#line 2440 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), comment);
-#line 2442 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2442 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19678 "Photo.c"
- }
-#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = source;
-#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_file_reader_read_metadata (_tmp5_, &_inner_error_);
-#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp6_;
-#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19694 "Photo.c"
- }
-#line 2446 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = metadata;
-#line 2446 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_comment (_tmp7_, comment, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 2448 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = source;
-#line 2448 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_file_reader_create_metadata_writer (_tmp8_, &_inner_error_);
-#line 2448 "/home/jens/Source/shotwell/src/Photo.vala"
- writer = _tmp9_;
-#line 2448 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2448 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2448 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2448 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2448 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19716 "Photo.c"
- }
-#line 2449 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = source;
-#line 2449 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2449 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_;
-#line 2449 "/home/jens/Source/shotwell/src/Photo.vala"
- library_monitor_blacklist_file (_tmp12_, "Photo.set_persistent_comment");
-#line 2449 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp12_);
-#line 19728 "Photo.c"
- {
- PhotoFileMetadataWriter* _tmp13_;
- PhotoMetadata* _tmp14_;
-#line 2451 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = writer;
-#line 2451 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = metadata;
-#line 2451 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp13_, _tmp14_, &_inner_error_);
-#line 2451 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19740 "Photo.c"
- goto __finally368;
- }
- }
- __finally368:
- {
- PhotoFileReader* _tmp15_;
- GFile* _tmp16_;
- GFile* _tmp17_;
-#line 2453 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = source;
-#line 2453 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2453 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_;
-#line 2453 "/home/jens/Source/shotwell/src/Photo.vala"
- library_monitor_unblacklist_file (_tmp17_);
-#line 2453 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp17_);
-#line 19759 "Photo.c"
- }
-#line 2450 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2450 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2450 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 2450 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2450 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2450 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19773 "Photo.c"
- }
-#line 2456 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), comment);
-#line 2458 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_exif_updated (self);
-#line 2433 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 2433 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2433 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 19785 "Photo.c"
-}
-
-
-static void
-photo_real_set_exposure_time (Dateable* base,
- time_t time)
-{
- Photo * self;
- gboolean committed = FALSE;
- gboolean _tmp8_;
- GError * _inner_error_ = NULL;
-#line 2461 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 19799 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2463 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2463 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 19806 "Photo.c"
- {
- PhotoTable* _tmp1_;
- PhotoTable* _tmp2_;
- PhotoRow* _tmp3_;
- PhotoID _tmp4_;
- gboolean _tmp5_;
-#line 2464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_table_get_instance ();
-#line 2464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 2464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->photo_id;
-#line 2464 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_set_exposure_time (_tmp2_, &_tmp4_, time);
-#line 2464 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp2_);
-#line 2465 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = committed;
-#line 2465 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp5_) {
-#line 19829 "Photo.c"
- PhotoRow* _tmp6_;
-#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_->exposure_time = time;
-#line 2467 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->cached_exposure_time = time;
-#line 19837 "Photo.c"
- }
- }
- __finally369:
- {
- PhotoRow* _tmp7_;
-#line 2463 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->row;
-#line 2463 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 19847 "Photo.c"
- }
-#line 2463 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2463 "/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 2463 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2463 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19857 "Photo.c"
- }
- }
-#line 2471 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = committed;
-#line 2471 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_) {
-#line 19864 "Photo.c"
- Alteration* _tmp9_;
- Alteration* _tmp10_;
-#line 2472 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = alteration_new ("metadata", "exposure-time");
-#line 2472 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_;
-#line 2472 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp10_);
-#line 2472 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp10_);
-#line 19875 "Photo.c"
- }
-}
-
-
-void
-photo_set_exposure_time_persistent (Photo* self,
- time_t time,
- GError** error)
-{
- PhotoFileReader* source = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- PhotoMetadata* metadata = NULL;
- PhotoFileReader* _tmp5_;
- PhotoMetadata* _tmp6_;
- PhotoMetadata* _tmp7_;
- MetadataDateTime* _tmp8_;
- MetadataDateTime* _tmp9_;
- PhotoFileMetadataWriter* writer = NULL;
- PhotoFileReader* _tmp10_;
- PhotoFileMetadataWriter* _tmp11_;
- PhotoFileReader* _tmp12_;
- GFile* _tmp13_;
- GFile* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 2475 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2476 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_source_reader (self);
-#line 2476 "/home/jens/Source/shotwell/src/Photo.vala"
- source = _tmp0_;
-#line 2479 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = source;
-#line 2479 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) {
-#line 19911 "Photo.c"
- PhotoFileReader* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 2480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = source;
-#line 2480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2480 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:2480: No photo file writer available for %s", _tmp4_);
-#line 2480 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp4_);
-#line 2482 "/home/jens/Source/shotwell/src/Photo.vala"
- dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATEABLE, Dateable), time);
-#line 2484 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2484 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19931 "Photo.c"
- }
-#line 2487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = source;
-#line 2487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_file_reader_read_metadata (_tmp5_, &_inner_error_);
-#line 2487 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp6_;
-#line 2487 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2487 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2487 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2487 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19947 "Photo.c"
- }
-#line 2488 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = metadata;
-#line 2488 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = metadata_date_time_new (time);
-#line 2488 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 2488 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_exposure_date_time (_tmp7_, _tmp9_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 2488 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (_tmp9_);
-#line 2490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = source;
-#line 2490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_file_reader_create_metadata_writer (_tmp10_, &_inner_error_);
-#line 2490 "/home/jens/Source/shotwell/src/Photo.vala"
- writer = _tmp11_;
-#line 2490 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2490 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2490 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2490 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2490 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 19975 "Photo.c"
- }
-#line 2491 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = source;
-#line 2491 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2491 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_;
-#line 2491 "/home/jens/Source/shotwell/src/Photo.vala"
- library_monitor_blacklist_file (_tmp14_, "Photo.set_exposure_time_persistent");
-#line 2491 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp14_);
-#line 19987 "Photo.c"
- {
- PhotoFileMetadataWriter* _tmp15_;
- PhotoMetadata* _tmp16_;
-#line 2493 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = writer;
-#line 2493 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = metadata;
-#line 2493 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp15_, _tmp16_, &_inner_error_);
-#line 2493 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19999 "Photo.c"
- goto __finally370;
- }
- }
- __finally370:
- {
- PhotoFileReader* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
-#line 2495 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = source;
-#line 2495 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 2495 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_;
-#line 2495 "/home/jens/Source/shotwell/src/Photo.vala"
- library_monitor_unblacklist_file (_tmp19_);
-#line 2495 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp19_);
-#line 20018 "Photo.c"
- }
-#line 2492 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2492 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2492 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 2492 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2492 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 2492 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 20032 "Photo.c"
- }
-#line 2498 "/home/jens/Source/shotwell/src/Photo.vala"
- dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATEABLE, Dateable), time);
-#line 2500 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_exif_updated (self);
-#line 2475 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 2475 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2475 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (source);
-#line 20044 "Photo.c"
-}
-
-
-/**
- * @brief Returns the width and height of the Photo after various
- * arbitrary stages of the pipeline have been applied in
- * the same order they're applied in get_pixbuf_with_options.
- * With no argument passed, it works exactly like the
- * previous incarnation did.
- *
- * @param disallowed_steps Which pipeline steps should NOT
- * be taken into account when computing image dimensions
- * (matching the convention set by get_pixbuf_with_options()).
- * Pipeline steps that do not affect the image geometry are
- * ignored.
- */
-static void
-photo_real_get_dimensions (MediaSource* base,
- PhotoException disallowed_steps,
- Dimensions* result)
-{
- Photo * self;
- Dimensions returned_dims = {0};
- Dimensions _tmp0_ = {0};
-#line 2516 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 2518 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_raw_dimensions (self, &_tmp0_);
-#line 2518 "/home/jens/Source/shotwell/src/Photo.vala"
- returned_dims = _tmp0_;
-#line 2521 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (disallowed_steps, PHOTO_EXCEPTION_ORIENTATION)) {
-#line 20077 "Photo.c"
- Orientation ori_tmp = 0;
- Orientation _tmp1_;
-#line 2522 "/home/jens/Source/shotwell/src/Photo.vala"
- ori_tmp = photo_get_orientation (self);
-#line 2525 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = ori_tmp;
-#line 2525 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (_tmp1_) {
-#line 2525 "/home/jens/Source/shotwell/src/Photo.vala"
- case ORIENTATION_LEFT_TOP:
-#line 2525 "/home/jens/Source/shotwell/src/Photo.vala"
- case ORIENTATION_RIGHT_TOP:
-#line 2525 "/home/jens/Source/shotwell/src/Photo.vala"
- case ORIENTATION_LEFT_BOTTOM:
-#line 2525 "/home/jens/Source/shotwell/src/Photo.vala"
- case ORIENTATION_RIGHT_BOTTOM:
-#line 20094 "Photo.c"
- {
- gint width_tmp = 0;
- Dimensions _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 2531 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = returned_dims;
-#line 2531 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_.width;
-#line 2531 "/home/jens/Source/shotwell/src/Photo.vala"
- width_tmp = _tmp3_;
-#line 2533 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = returned_dims;
-#line 2533 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_.height;
-#line 2533 "/home/jens/Source/shotwell/src/Photo.vala"
- returned_dims.width = _tmp5_;
-#line 2534 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = width_tmp;
-#line 2534 "/home/jens/Source/shotwell/src/Photo.vala"
- returned_dims.height = _tmp6_;
-#line 2535 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 20120 "Photo.c"
- }
- default:
- {
-#line 2539 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 20126 "Photo.c"
- }
- }
- }
-#line 2544 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (disallowed_steps, PHOTO_EXCEPTION_STRAIGHTEN)) {
-#line 20132 "Photo.c"
- gdouble x_size = 0.0;
- gdouble y_size = 0.0;
- gdouble angle = 0.0;
- gdouble _tmp7_ = 0.0;
- Dimensions _tmp8_;
- gint _tmp9_;
- Dimensions _tmp10_;
- gint _tmp11_;
- gdouble _tmp12_;
- gdouble _tmp13_ = 0.0;
- gdouble _tmp14_ = 0.0;
- gdouble _tmp15_;
- gdouble _tmp16_;
-#line 2546 "/home/jens/Source/shotwell/src/Photo.vala"
- angle = 0.0;
-#line 2548 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_straighten (self, &_tmp7_);
-#line 2548 "/home/jens/Source/shotwell/src/Photo.vala"
- angle = _tmp7_;
-#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = returned_dims;
-#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_.width;
-#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = returned_dims;
-#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_.height;
-#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = angle;
-#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
- compute_arb_rotated_size ((gdouble) _tmp9_, (gdouble) _tmp11_, _tmp12_, &_tmp13_, &_tmp14_);
-#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
- x_size = _tmp13_;
-#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
- y_size = _tmp14_;
-#line 2552 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = x_size;
-#line 2552 "/home/jens/Source/shotwell/src/Photo.vala"
- returned_dims.width = (gint) _tmp15_;
-#line 2553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = y_size;
-#line 2553 "/home/jens/Source/shotwell/src/Photo.vala"
- returned_dims.height = (gint) _tmp16_;
-#line 20176 "Photo.c"
- }
-#line 2557 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (disallowed_steps, PHOTO_EXCEPTION_CROP)) {
-#line 20180 "Photo.c"
- Box crop = {0};
- Box _tmp17_ = {0};
- gboolean _tmp18_;
-#line 2559 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = photo_get_crop (self, &_tmp17_, disallowed_steps);
-#line 2559 "/home/jens/Source/shotwell/src/Photo.vala"
- crop = _tmp17_;
-#line 2559 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp18_) {
-#line 20190 "Photo.c"
- Dimensions _tmp19_ = {0};
-#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
- box_get_dimensions (&crop, &_tmp19_);
-#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
- returned_dims = _tmp19_;
-#line 20196 "Photo.c"
- }
- }
-#line 2563 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = returned_dims;
-#line 2563 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 20203 "Photo.c"
-}
-
-
-static void
-photo_locked_create_adjustments_from_data (Photo* self)
-{
- PixelTransformationBundle* _tmp0_;
- KeyValueMap* map = NULL;
- KeyValueMap* _tmp1_;
- KeyValueMap* _tmp2_;
- PixelTransformationBundle* _tmp6_;
- PixelTransformer* _tmp7_;
-#line 2567 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2568 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = pixel_transformation_bundle_new ();
-#line 2568 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 2568 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->adjustments = _tmp0_;
-#line 2570 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_transformation (self, "adjustments");
-#line 2570 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp1_;
-#line 2571 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = map;
-#line 2571 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ == NULL) {
-#line 20232 "Photo.c"
- PixelTransformationBundle* _tmp3_;
-#line 2572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->adjustments;
-#line 2572 "/home/jens/Source/shotwell/src/Photo.vala"
- pixel_transformation_bundle_set_to_identity (_tmp3_);
-#line 20238 "Photo.c"
- } else {
- PixelTransformationBundle* _tmp4_;
- KeyValueMap* _tmp5_;
-#line 2574 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->adjustments;
-#line 2574 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = map;
-#line 2574 "/home/jens/Source/shotwell/src/Photo.vala"
- pixel_transformation_bundle_load (_tmp4_, _tmp5_);
-#line 20248 "Photo.c"
- }
-#line 2576 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->adjustments;
-#line 2576 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = pixel_transformation_bundle_generate_transformer (_tmp6_);
-#line 2576 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 2576 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->transformer = _tmp7_;
-#line 2567 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 20260 "Photo.c"
-}
-
-
-PixelTransformationBundle*
-photo_get_color_adjustments (Photo* self)
-{
- PixelTransformationBundle* result = NULL;
- GError * _inner_error_ = NULL;
-#line 2580 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 20271 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2581 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 20278 "Photo.c"
- {
- PixelTransformationBundle* _tmp1_;
- PixelTransformationBundle* _tmp2_;
- PixelTransformationBundle* _tmp3_;
-#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->adjustments;
-#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 2583 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_locked_create_adjustments_from_data (self);
-#line 20289 "Photo.c"
- }
-#line 2585 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->adjustments;
-#line 2585 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = pixel_transformation_bundle_copy (_tmp2_);
-#line 2585 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 20297 "Photo.c"
- {
- PhotoRow* _tmp4_;
-#line 2581 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 20304 "Photo.c"
- }
-#line 2585 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20308 "Photo.c"
- }
- __finally371:
- {
- PhotoRow* _tmp5_;
-#line 2581 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 20317 "Photo.c"
- }
-#line 2581 "/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 2581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2581 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 20325 "Photo.c"
- }
-}
-
-
-PixelTransformer*
-photo_get_pixel_transformer (Photo* self)
-{
- PixelTransformer* result = NULL;
- GError * _inner_error_ = NULL;
-#line 2589 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 20337 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 20344 "Photo.c"
- {
- PixelTransformer* _tmp1_;
- PixelTransformer* _tmp2_;
- PixelTransformer* _tmp3_;
-#line 2591 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->transformer;
-#line 2591 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 2592 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_locked_create_adjustments_from_data (self);
-#line 20355 "Photo.c"
- }
-#line 2594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->transformer;
-#line 2594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = pixel_transformer_copy (_tmp2_);
-#line 2594 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 20363 "Photo.c"
- {
- PhotoRow* _tmp4_;
-#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 20370 "Photo.c"
- }
-#line 2594 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20374 "Photo.c"
- }
- __finally372:
- {
- PhotoRow* _tmp5_;
-#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 20383 "Photo.c"
- }
-#line 2590 "/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 2590 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 20391 "Photo.c"
- }
-}
-
-
-gboolean
-photo_has_color_adjustments (Photo* self)
-{
- gboolean result = FALSE;
-#line 2598 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2599 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_has_transformation (self, "adjustments");
-#line 2599 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20406 "Photo.c"
-}
-
-
-PixelTransformation*
-photo_get_color_adjustment (Photo* self,
- PixelTransformationType type)
-{
- PixelTransformation* result = NULL;
- PixelTransformationBundle* _tmp0_;
- PixelTransformationBundle* _tmp1_;
- PixelTransformation* _tmp2_;
- PixelTransformation* _tmp3_;
-#line 2602 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_color_adjustments (self);
-#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = pixel_transformation_bundle_get_transformation (_tmp1_, type);
-#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (_tmp1_);
-#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20435 "Photo.c"
-}
-
-
-void
-photo_set_color_adjustments (Photo* self,
- PixelTransformationBundle* new_adjustments)
-{
- KeyValueMap* map = NULL;
- KeyValueMap* _tmp5_;
- gboolean committed = FALSE;
- gboolean _tmp28_;
- GError * _inner_error_ = NULL;
-#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (new_adjustments));
-#line 2609 "/home/jens/Source/shotwell/src/Photo.vala"
- if (pixel_transformation_bundle_is_identity (new_adjustments)) {
-#line 20454 "Photo.c"
- gboolean _result_ = FALSE;
- gboolean _tmp2_;
- {
- PhotoRow* _tmp0_;
-#line 2611 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2611 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 20463 "Photo.c"
- {
-#line 2612 "/home/jens/Source/shotwell/src/Photo.vala"
- _result_ = photo_remove_transformation (self, "adjustments");
-#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->adjustments = NULL;
-#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->transformer = NULL;
-#line 20475 "Photo.c"
- }
- __finally373:
- {
- PhotoRow* _tmp1_;
-#line 2611 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2611 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 20484 "Photo.c"
- }
-#line 2611 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2611 "/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 2611 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2611 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 20494 "Photo.c"
- }
- }
-#line 2617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _result_;
-#line 2617 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 20501 "Photo.c"
- Alteration* _tmp3_;
- Alteration* _tmp4_;
-#line 2618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = alteration_new ("image", "color-adjustments");
-#line 2618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2618 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp4_);
-#line 2618 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp4_);
-#line 20512 "Photo.c"
- }
-#line 2620 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 20516 "Photo.c"
- }
-#line 2624 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = pixel_transformation_bundle_save (new_adjustments, "adjustments");
-#line 2624 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp5_;
-#line 20522 "Photo.c"
- {
- PhotoRow* _tmp6_;
-#line 2627 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2627 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 20529 "Photo.c"
- {
- gboolean _tmp7_ = FALSE;
- PixelTransformer* _tmp8_;
- KeyValueMap* _tmp26_;
-#line 2628 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->priv->transformer;
-#line 2628 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ == NULL) {
-#line 2628 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = TRUE;
-#line 20540 "Photo.c"
- } else {
- PixelTransformationBundle* _tmp9_;
-#line 2628 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->priv->adjustments;
-#line 2628 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp9_ == NULL;
-#line 20547 "Photo.c"
- }
-#line 2628 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_) {
-#line 20551 "Photo.c"
- PixelTransformationBundle* _tmp10_;
- PixelTransformer* _tmp11_;
-#line 2630 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = pixel_transformation_bundle_copy (new_adjustments);
-#line 2630 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 2630 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->adjustments = _tmp10_;
-#line 2631 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = pixel_transformation_bundle_generate_transformer (new_adjustments);
-#line 2631 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 2631 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->transformer = _tmp11_;
-#line 20566 "Photo.c"
- } else {
- PixelTransformationBundle* _tmp25_;
- {
- GeeIterator* _transformation_it = NULL;
- GeeIterable* _tmp12_;
- GeeIterable* _tmp13_;
- GeeIterator* _tmp14_;
- GeeIterator* _tmp15_;
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = pixel_transformation_bundle_get_transformations (new_adjustments);
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = gee_iterable_iterator (_tmp13_);
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp13_);
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _transformation_it = _tmp15_;
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 20589 "Photo.c"
- GeeIterator* _tmp16_;
- PixelTransformation* transformation = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
- PixelTransformer* _tmp19_;
- PixelTransformationBundle* _tmp20_;
- PixelTransformation* _tmp21_;
- PixelTransformation* _tmp22_;
- PixelTransformation* _tmp23_;
- PixelTransformation* _tmp24_;
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _transformation_it;
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp16_)) {
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 20606 "Photo.c"
- }
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _transformation_it;
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- transformation = (PixelTransformation*) _tmp18_;
-#line 2635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = self->priv->transformer;
-#line 2635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = self->priv->adjustments;
-#line 2635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = transformation;
-#line 2635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = pixel_transformation_bundle_get_transformation (_tmp20_, pixel_transformation_get_transformation_type (_tmp21_));
-#line 2635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 2635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = transformation;
-#line 2635 "/home/jens/Source/shotwell/src/Photo.vala"
- pixel_transformer_replace_transformation (_tmp19_, _tmp23_, _tmp24_);
-#line 2635 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_unref0 (_tmp23_);
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_unref0 (transformation);
-#line 20632 "Photo.c"
- }
-#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_transformation_it);
-#line 20636 "Photo.c"
- }
-#line 2640 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = pixel_transformation_bundle_copy (new_adjustments);
-#line 2640 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 2640 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->adjustments = _tmp25_;
-#line 20644 "Photo.c"
- }
-#line 2643 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = map;
-#line 2643 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_set_transformation (self, _tmp26_);
-#line 20650 "Photo.c"
- }
- __finally374:
- {
- PhotoRow* _tmp27_;
-#line 2627 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = self->row;
-#line 2627 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 20659 "Photo.c"
- }
-#line 2627 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2627 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2627 "/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 2627 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2627 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 20671 "Photo.c"
- }
- }
-#line 2646 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = committed;
-#line 2646 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp28_) {
-#line 20678 "Photo.c"
- Alteration* _tmp29_;
- Alteration* _tmp30_;
-#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = alteration_new ("image", "color-adjustments");
-#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp29_;
-#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp30_);
-#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp30_);
-#line 20689 "Photo.c"
- }
-#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 20693 "Photo.c"
-}
-
-
-static PhotoMetadata*
-photo_real_get_metadata (PhotoSource* base)
-{
- Photo * self;
- PhotoMetadata* result = NULL;
- GError * _inner_error_ = NULL;
-#line 2651 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 20705 "Photo.c"
- {
- PhotoMetadata* _tmp0_ = NULL;
- PhotoFileReader* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoMetadata* _tmp3_;
- PhotoMetadata* _tmp4_;
- PhotoMetadata* _tmp5_;
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_source_reader (self);
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_file_reader_read_metadata (_tmp2_, &_inner_error_);
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp2_);
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp4_;
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 20727 "Photo.c"
- goto __catch375_g_error;
- }
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp0_;
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp5_;
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (_tmp0_);
-#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20740 "Photo.c"
- }
- goto __finally375;
- __catch375_g_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 2652 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 2652 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 2655 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = err;
-#line 2655 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->message;
-#line 2655 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:2655: Unable to load metadata: %s", _tmp7_);
-#line 2657 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 2657 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 2657 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20764 "Photo.c"
- }
- __finally375:
-#line 2652 "/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 2652 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2652 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 20773 "Photo.c"
-}
-
-
-PhotoMetadata*
-photo_get_master_metadata (Photo* self,
- GError** error)
-{
- PhotoMetadata* result = NULL;
- PhotoMetadata* _tmp0_ = NULL;
- PhotoFileReader* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoMetadata* _tmp3_;
- PhotoMetadata* _tmp4_;
- PhotoMetadata* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 2661 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_master_reader (self);
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_file_reader_read_metadata (_tmp2_, &_inner_error_);
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp2_);
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp4_;
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 20809 "Photo.c"
- }
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp0_;
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp5_;
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (_tmp0_);
-#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20821 "Photo.c"
-}
-
-
-PhotoMetadata*
-photo_get_editable_metadata (Photo* self,
- GError** error)
-{
- PhotoMetadata* result = NULL;
- PhotoFileReader* reader = NULL;
- PhotoFileReader* _tmp0_;
- PhotoMetadata* _tmp1_ = NULL;
- PhotoFileReader* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 2665 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 2666 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_editable_reader (self);
-#line 2666 "/home/jens/Source/shotwell/src/Photo.vala"
- reader = _tmp0_;
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = reader;
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 20845 "Photo.c"
- PhotoFileReader* _tmp3_;
- PhotoMetadata* _tmp4_;
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = reader;
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_file_reader_read_metadata (_tmp3_, &_inner_error_);
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (_tmp1_);
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp4_;
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (_tmp1_);
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 20866 "Photo.c"
- }
- } else {
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (_tmp1_);
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = NULL;
-#line 20873 "Photo.c"
- }
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 2668 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20881 "Photo.c"
-}
-
-
-gboolean
-photo_persist_master_metadata (Photo* self,
- PhotoMetadata* metadata,
- PhotoReimportMasterState* * state,
- GError** error)
-{
- PhotoReimportMasterState* _vala_state = NULL;
- gboolean result = FALSE;
- PhotoFileReader* master_reader = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- PhotoFileMetadataWriter* _tmp2_ = NULL;
- PhotoFileReader* _tmp3_;
- PhotoFileMetadataWriter* _tmp4_;
- gboolean _tmp7_ = FALSE;
- PhotoReimportMasterState* _tmp8_ = NULL;
- gboolean _tmp9_;
- PhotoReimportMasterState* _tmp11_;
- GError * _inner_error_ = NULL;
-#line 2674 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2674 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (metadata), FALSE);
-#line 2676 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_state);
-#line 2676 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = NULL;
-#line 2678 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_master_reader (self);
-#line 2678 "/home/jens/Source/shotwell/src/Photo.vala"
- master_reader = _tmp0_;
-#line 2680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = master_reader;
-#line 2680 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) {
-#line 2681 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2681 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (master_reader);
-#line 2681 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 2681 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 20928 "Photo.c"
- } else {
-#line 2681 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_state);
-#line 20932 "Photo.c"
- }
-#line 2681 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 20936 "Photo.c"
- }
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = master_reader;
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_file_reader_create_metadata_writer (_tmp3_, &_inner_error_);
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp4_;
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 20946 "Photo.c"
- gboolean _tmp5_ = FALSE;
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (master_reader);
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 20954 "Photo.c"
- }
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp2_, metadata, &_inner_error_);
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 20960 "Photo.c"
- gboolean _tmp6_ = FALSE;
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp2_);
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (master_reader);
-#line 2683 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp6_;
-#line 20970 "Photo.c"
- }
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_prepare_for_reimport_master (self, &_tmp8_, &_inner_error_);
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_state);
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = _tmp8_;
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp9_;
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 20982 "Photo.c"
- gboolean _tmp10_ = FALSE;
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp2_);
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (master_reader);
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp10_;
-#line 20992 "Photo.c"
- }
-#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp7_) {
-#line 2686 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2686 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp2_);
-#line 2686 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (master_reader);
-#line 2686 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 2686 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 21006 "Photo.c"
- } else {
-#line 2686 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_state);
-#line 21010 "Photo.c"
- }
-#line 2686 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21014 "Photo.c"
- }
-#line 2688 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _vala_state;
-#line 2688 "/home/jens/Source/shotwell/src/Photo.vala"
- G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl)->metadata_only = TRUE;
-#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp2_);
-#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (master_reader);
-#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 21030 "Photo.c"
- } else {
-#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_master_state_unref0 (_vala_state);
-#line 21034 "Photo.c"
- }
-#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21038 "Photo.c"
-}
-
-
-void
-photo_finish_update_master_metadata (Photo* self,
- PhotoReimportMasterState* state,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 2693 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2693 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (PHOTO_IS_REIMPORT_MASTER_STATE (state));
-#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_finish_reimport_master (self, state, &_inner_error_);
-#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 21062 "Photo.c"
- } else {
-#line 2694 "/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 2694 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 21070 "Photo.c"
- }
- }
-}
-
-
-gboolean
-photo_persist_editable_metadata (Photo* self,
- PhotoMetadata* metadata,
- PhotoReimportEditableState* * state,
- GError** error)
-{
- PhotoReimportEditableState* _vala_state = NULL;
- gboolean result = FALSE;
- PhotoFileReader* editable_reader = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileMetadataWriter* _tmp3_ = NULL;
- PhotoFileReader* _tmp4_;
- PhotoFileMetadataWriter* _tmp5_;
- gboolean _tmp8_ = FALSE;
- PhotoReimportEditableState* _tmp9_ = NULL;
- gboolean _tmp10_;
- PhotoReimportEditableState* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 2697 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2697 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (metadata), FALSE);
-#line 2699 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 2699 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = NULL;
-#line 2701 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_editable_reader (self);
-#line 2701 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_reader = _tmp0_;
-#line 2702 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = editable_reader;
-#line 2702 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 2703 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2703 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (editable_reader);
-#line 2703 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 2703 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 21120 "Photo.c"
- } else {
-#line 2703 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 21124 "Photo.c"
- }
-#line 2703 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21128 "Photo.c"
- }
-#line 2705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = editable_reader;
-#line 2705 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) {
-#line 2706 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2706 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (editable_reader);
-#line 2706 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 2706 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 21142 "Photo.c"
- } else {
-#line 2706 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 21146 "Photo.c"
- }
-#line 2706 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21150 "Photo.c"
- }
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = editable_reader;
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo_file_reader_create_metadata_writer (_tmp4_, &_inner_error_);
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp5_;
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 21160 "Photo.c"
- gboolean _tmp6_ = FALSE;
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (editable_reader);
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp6_;
-#line 21168 "Photo.c"
- }
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp3_, metadata, &_inner_error_);
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 21174 "Photo.c"
- gboolean _tmp7_ = FALSE;
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp3_);
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (editable_reader);
-#line 2708 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp7_;
-#line 21184 "Photo.c"
- }
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = photo_prepare_for_reimport_editable (self, &_tmp9_, &_inner_error_);
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = _tmp9_;
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp10_;
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 21196 "Photo.c"
- gboolean _tmp11_ = FALSE;
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp3_);
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (editable_reader);
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp11_;
-#line 21206 "Photo.c"
- }
-#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp8_) {
-#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp3_);
-#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (editable_reader);
-#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 21220 "Photo.c"
- } else {
-#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 21224 "Photo.c"
- }
-#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21228 "Photo.c"
- }
-#line 2713 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _vala_state;
-#line 2713 "/home/jens/Source/shotwell/src/Photo.vala"
- G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl)->metadata_only = TRUE;
-#line 2715 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 2715 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp3_);
-#line 2715 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (editable_reader);
-#line 2715 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 2715 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 21244 "Photo.c"
- } else {
-#line 2715 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_editable_state_unref0 (_vala_state);
-#line 21248 "Photo.c"
- }
-#line 2715 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21252 "Photo.c"
-}
-
-
-void
-photo_finish_update_editable_metadata (Photo* self,
- PhotoReimportEditableState* state,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 2718 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2718 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (PHOTO_IS_REIMPORT_EDITABLE_STATE (state));
-#line 2719 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_finish_reimport_editable (self, state, &_inner_error_);
-#line 2719 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2719 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 2719 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 2719 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 21276 "Photo.c"
- } else {
-#line 2719 "/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 2719 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2719 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 21284 "Photo.c"
- }
- }
-}
-
-
-void
-photo_get_raw_dimensions (Photo* self,
- Dimensions* result)
-{
- GError * _inner_error_ = NULL;
-#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 21297 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 21304 "Photo.c"
- {
- BackingPhotoRow* _tmp1_;
- Dimensions _tmp2_;
-#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->backing_photo_row;
-#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->dim;
-#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp2_;
-#line 21314 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21321 "Photo.c"
- }
-#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 21325 "Photo.c"
- }
- __finally376:
- {
- PhotoRow* _tmp4_;
-#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21334 "Photo.c"
- }
-#line 2725 "/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 2725 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 21342 "Photo.c"
- }
-}
-
-
-gboolean
-photo_has_transformations (Photo* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 2730 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 21354 "Photo.c"
- {
- PhotoRow* _tmp0_;
- gboolean _tmp10_ = FALSE;
-#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 21362 "Photo.c"
- {
- gboolean _tmp1_ = FALSE;
- PhotoRow* _tmp2_;
- Orientation _tmp3_;
- BackingPhotoRow* _tmp4_;
- Orientation _tmp5_;
-#line 2732 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->row;
-#line 2732 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->orientation;
-#line 2732 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->backing_photo_row;
-#line 2732 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_->original_orientation;
-#line 2732 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_ != _tmp5_) {
-#line 2733 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = TRUE;
-#line 21381 "Photo.c"
- } else {
- PhotoRow* _tmp6_;
- GeeHashMap* _tmp7_;
-#line 2734 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2734 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->transformations;
-#line 2734 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp7_ != NULL;
-#line 21391 "Photo.c"
- }
-#line 2732 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 21395 "Photo.c"
- {
- PhotoRow* _tmp8_;
-#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->row;
-#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21402 "Photo.c"
- }
-#line 2732 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21406 "Photo.c"
- }
- __finally377:
- {
- PhotoRow* _tmp9_;
-#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21415 "Photo.c"
- }
-#line 2731 "/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 2731 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp10_;
-#line 21423 "Photo.c"
- }
-}
-
-
-gboolean
-photo_only_metadata_changed (Photo* self)
-{
- gboolean result = FALSE;
- MetadataDateTime* date_time = NULL;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp0_;
- PhotoMetadata* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 2738 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2739 "/home/jens/Source/shotwell/src/Photo.vala"
- date_time = NULL;
-#line 2741 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 2741 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp0_;
-#line 2742 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = metadata;
-#line 2742 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ != NULL) {
-#line 21449 "Photo.c"
- PhotoMetadata* _tmp2_;
- MetadataDateTime* _tmp3_;
-#line 2743 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = metadata;
-#line 2743 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_metadata_get_exposure_date_time (_tmp2_);
-#line 2743 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 2743 "/home/jens/Source/shotwell/src/Photo.vala"
- date_time = _tmp3_;
-#line 21460 "Photo.c"
- }
- {
- PhotoRow* _tmp4_;
- gboolean _tmp20_ = FALSE;
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 21469 "Photo.c"
- {
- gboolean _tmp5_ = FALSE;
- PhotoRow* _tmp6_;
- GeeHashMap* _tmp7_;
-#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->transformations;
-#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_ == NULL) {
-#line 21480 "Photo.c"
- gboolean _tmp8_ = FALSE;
- PhotoRow* _tmp9_;
- Orientation _tmp10_;
- BackingPhotoRow* _tmp11_;
- Orientation _tmp12_;
-#line 2747 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 2747 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->orientation;
-#line 2747 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->backing_photo_row;
-#line 2747 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->original_orientation;
-#line 2747 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_ != _tmp12_) {
-#line 2747 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = TRUE;
-#line 21498 "Photo.c"
- } else {
- gboolean _tmp13_ = FALSE;
- MetadataDateTime* _tmp14_;
-#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = date_time;
-#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp14_ != NULL) {
-#line 21506 "Photo.c"
- PhotoRow* _tmp15_;
- time_t _tmp16_;
- MetadataDateTime* _tmp17_;
-#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_->exposure_time;
-#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = date_time;
-#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp16_ != metadata_date_time_get_timestamp (_tmp17_);
-#line 21518 "Photo.c"
- } else {
-#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = FALSE;
-#line 21522 "Photo.c"
- }
-#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp13_;
-#line 21526 "Photo.c"
- }
-#line 2747 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp8_;
-#line 21530 "Photo.c"
- } else {
-#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = FALSE;
-#line 21534 "Photo.c"
- }
-#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp5_;
-#line 21538 "Photo.c"
- {
- PhotoRow* _tmp18_;
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = self->row;
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21545 "Photo.c"
- }
-#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21553 "Photo.c"
- }
- __finally378:
- {
- PhotoRow* _tmp19_;
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = self->row;
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21562 "Photo.c"
- }
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 2745 "/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 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2745 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp20_;
-#line 21574 "Photo.c"
- }
-#line 2738 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2738 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 21580 "Photo.c"
-}
-
-
-gboolean
-photo_has_alterations (Photo* self)
-{
- gboolean result = FALSE;
- MetadataDateTime* date_time = NULL;
- gchar* title = NULL;
- gchar* comment = NULL;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp0_;
- PhotoMetadata* _tmp1_;
- MetadataDateTime* _tmp8_;
- GError * _inner_error_ = NULL;
-#line 2752 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2753 "/home/jens/Source/shotwell/src/Photo.vala"
- date_time = NULL;
-#line 2754 "/home/jens/Source/shotwell/src/Photo.vala"
- title = NULL;
-#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
- comment = NULL;
-#line 2757 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 2757 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp0_;
-#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = metadata;
-#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ != NULL) {
-#line 21612 "Photo.c"
- PhotoMetadata* _tmp2_;
- MetadataDateTime* _tmp3_;
- PhotoMetadata* _tmp4_;
- gchar* _tmp5_;
- PhotoMetadata* _tmp6_;
- gchar* _tmp7_;
-#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = metadata;
-#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_metadata_get_exposure_date_time (_tmp2_);
-#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
- date_time = _tmp3_;
-#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = metadata;
-#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
- title = _tmp5_;
-#line 2761 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = metadata;
-#line 2761 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 2761 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 2761 "/home/jens/Source/shotwell/src/Photo.vala"
- comment = _tmp7_;
-#line 21643 "Photo.c"
- }
-#line 2765 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = date_time;
-#line 2765 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ == NULL) {
-#line 21649 "Photo.c"
- {
- PhotoRow* _tmp9_;
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 21656 "Photo.c"
- {
- BackingPhotoRow* _tmp10_;
- time_t _tmp11_;
- PhotoRow* _tmp12_;
- time_t _tmp13_;
-#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->backing_photo_row;
-#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->timestamp;
-#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->row;
-#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->exposure_time;
-#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_ != _tmp13_) {
-#line 2771 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 21674 "Photo.c"
- {
- PhotoRow* _tmp14_;
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = self->row;
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21681 "Photo.c"
- }
-#line 2771 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2771 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 2771 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 2771 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 2771 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21693 "Photo.c"
- }
- }
- __finally379:
- {
- PhotoRow* _tmp15_;
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21703 "Photo.c"
- }
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 21707 "Photo.c"
- gboolean _tmp16_ = FALSE;
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 2767 "/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 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp16_;
-#line 21723 "Photo.c"
- }
- }
- }
- {
- PhotoRow* _tmp17_;
- gboolean _tmp41_ = FALSE;
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->row;
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 21734 "Photo.c"
- {
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_ = FALSE;
- gboolean _tmp20_ = FALSE;
- gboolean _tmp21_ = FALSE;
- PhotoRow* _tmp22_;
- GeeHashMap* _tmp23_;
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = self->row;
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_->transformations;
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp23_ != NULL) {
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = TRUE;
-#line 21750 "Photo.c"
- } else {
- PhotoRow* _tmp24_;
- Orientation _tmp25_;
- BackingPhotoRow* _tmp26_;
- Orientation _tmp27_;
-#line 2778 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = self->row;
-#line 2778 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp24_->orientation;
-#line 2778 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = self->backing_photo_row;
-#line 2778 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp26_->original_orientation;
-#line 2778 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp25_ != _tmp27_;
-#line 21766 "Photo.c"
- }
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp21_) {
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = TRUE;
-#line 21772 "Photo.c"
- } else {
- gboolean _tmp28_ = FALSE;
- MetadataDateTime* _tmp29_;
-#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = date_time;
-#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp29_ != NULL) {
-#line 21780 "Photo.c"
- PhotoRow* _tmp30_;
- time_t _tmp31_;
- MetadataDateTime* _tmp32_;
-#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = self->row;
-#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_->exposure_time;
-#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = date_time;
-#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp31_ != metadata_date_time_get_timestamp (_tmp32_);
-#line 21792 "Photo.c"
- } else {
-#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = FALSE;
-#line 21796 "Photo.c"
- }
-#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _tmp28_;
-#line 21800 "Photo.c"
- }
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp20_) {
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = TRUE;
-#line 21806 "Photo.c"
- } else {
- gchar* _tmp33_;
- gchar* _tmp34_;
- const gchar* _tmp35_;
-#line 2780 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 2780 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_;
-#line 2780 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = comment;
-#line 2780 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = g_strcmp0 (_tmp34_, _tmp35_) != 0;
-#line 2780 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp34_);
-#line 21821 "Photo.c"
- }
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp19_) {
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = TRUE;
-#line 21827 "Photo.c"
- } else {
- gchar* _tmp36_;
- gchar* _tmp37_;
- const gchar* _tmp38_;
-#line 2781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 2781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _tmp36_;
-#line 2781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = title;
-#line 2781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = g_strcmp0 (_tmp37_, _tmp38_) != 0;
-#line 2781 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp37_);
-#line 21842 "Photo.c"
- }
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp18_;
-#line 21846 "Photo.c"
- {
- PhotoRow* _tmp39_;
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = self->row;
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21853 "Photo.c"
- }
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 21865 "Photo.c"
- }
- __finally380:
- {
- PhotoRow* _tmp40_;
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = self->row;
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21874 "Photo.c"
- }
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 2776 "/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 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp41_;
-#line 21890 "Photo.c"
- }
-#line 2752 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 2752 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (comment);
-#line 2752 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (title);
-#line 2752 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (date_time);
-#line 21900 "Photo.c"
-}
-
-
-PhotoTransformationState*
-photo_save_transformation_state (Photo* self)
-{
- PhotoTransformationState* result = NULL;
- GError * _inner_error_ = NULL;
-#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 21911 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2787 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2787 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 21918 "Photo.c"
- {
- PixelTransformer* _tmp1_ = NULL;
- PixelTransformer* _tmp2_;
- PixelTransformationBundle* _tmp5_ = NULL;
- PixelTransformationBundle* _tmp6_;
- PhotoRow* _tmp9_;
- Orientation _tmp10_;
- PhotoRow* _tmp11_;
- GeeHashMap* _tmp12_;
- PhotoPhotoTransformationStateImpl* _tmp13_;
-#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->transformer;
-#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 21933 "Photo.c"
- PixelTransformer* _tmp3_;
- PixelTransformer* _tmp4_;
-#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->transformer;
-#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = pixel_transformer_copy (_tmp3_);
-#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (_tmp1_);
-#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp4_;
-#line 21944 "Photo.c"
- } else {
-#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (_tmp1_);
-#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = NULL;
-#line 21950 "Photo.c"
- }
-#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->adjustments;
-#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_ != NULL) {
-#line 21956 "Photo.c"
- PixelTransformationBundle* _tmp7_;
- PixelTransformationBundle* _tmp8_;
-#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->priv->adjustments;
-#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = pixel_transformation_bundle_copy (_tmp7_);
-#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (_tmp5_);
-#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp8_;
-#line 21967 "Photo.c"
- } else {
-#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (_tmp5_);
-#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = NULL;
-#line 21973 "Photo.c"
- }
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->orientation;
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->transformations;
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = photo_photo_transformation_state_impl_new (self, _tmp10_, _tmp12_, _tmp1_, _tmp5_);
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState);
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (_tmp5_);
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (_tmp1_);
-#line 21991 "Photo.c"
- {
- PhotoRow* _tmp14_;
-#line 2787 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = self->row;
-#line 2787 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 21998 "Photo.c"
- }
-#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22002 "Photo.c"
- }
- __finally381:
- {
- PhotoRow* _tmp15_;
-#line 2787 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 2787 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22011 "Photo.c"
- }
-#line 2787 "/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 2787 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2787 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 22019 "Photo.c"
- }
-}
-
-
-static gpointer
-_pixel_transformer_ref0 (gpointer self)
-{
-#line 2812 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? pixel_transformer_ref (self) : NULL;
-#line 22029 "Photo.c"
-}
-
-
-static gpointer
-_pixel_transformation_bundle_ref0 (gpointer self)
-{
-#line 2813 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? pixel_transformation_bundle_ref (self) : NULL;
-#line 22038 "Photo.c"
-}
-
-
-gboolean
-photo_load_transformation_state (Photo* self,
- PhotoTransformationState* state)
-{
- gboolean result = FALSE;
- PhotoPhotoTransformationStateImpl* state_impl = NULL;
- PhotoPhotoTransformationStateImpl* _tmp0_;
- PhotoPhotoTransformationStateImpl* _tmp1_;
- Orientation saved_orientation = 0;
- PhotoPhotoTransformationStateImpl* _tmp2_;
- GeeHashMap* saved_transformations = NULL;
- PhotoPhotoTransformationStateImpl* _tmp3_;
- GeeHashMap* _tmp4_;
- PixelTransformer* saved_transformer = NULL;
- PhotoPhotoTransformationStateImpl* _tmp5_;
- PixelTransformer* _tmp6_;
- PixelTransformationBundle* saved_adjustments = NULL;
- PhotoPhotoTransformationStateImpl* _tmp7_;
- PixelTransformationBundle* _tmp8_;
- gboolean committed = FALSE;
- gboolean _tmp28_;
- GError * _inner_error_ = NULL;
-#line 2795 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2795 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_TRANSFORMATION_STATE (state), FALSE);
-#line 2796 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (state, PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL) ? ((PhotoPhotoTransformationStateImpl*) state) : NULL);
-#line 2796 "/home/jens/Source/shotwell/src/Photo.vala"
- state_impl = _tmp0_;
-#line 2797 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = state_impl;
-#line 2797 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 2798 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2798 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (state_impl);
-#line 2798 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22082 "Photo.c"
- }
-#line 2800 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = state_impl;
-#line 2800 "/home/jens/Source/shotwell/src/Photo.vala"
- saved_orientation = photo_photo_transformation_state_impl_get_orientation (_tmp2_);
-#line 2801 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = state_impl;
-#line 2801 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_photo_transformation_state_impl_get_transformations (_tmp3_);
-#line 2801 "/home/jens/Source/shotwell/src/Photo.vala"
- saved_transformations = _tmp4_;
-#line 2802 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = state_impl;
-#line 2802 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_photo_transformation_state_impl_get_transformer (_tmp5_);
-#line 2802 "/home/jens/Source/shotwell/src/Photo.vala"
- saved_transformer = _tmp6_;
-#line 2803 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = state_impl;
-#line 2803 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo_photo_transformation_state_impl_get_color_adjustments (_tmp7_);
-#line 2803 "/home/jens/Source/shotwell/src/Photo.vala"
- saved_adjustments = _tmp8_;
-#line 22106 "Photo.c"
- {
- PhotoRow* _tmp9_;
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22113 "Photo.c"
- {
- PhotoTable* _tmp10_;
- PhotoTable* _tmp11_;
- PhotoRow* _tmp12_;
- PhotoID _tmp13_;
- Orientation _tmp14_;
- GeeHashMap* _tmp15_;
- gboolean _tmp16_;
-#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = photo_table_get_instance ();
-#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_;
-#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->row;
-#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->photo_id;
-#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = saved_orientation;
-#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = saved_transformations;
-#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_set_transformation_state (_tmp11_, &_tmp13_, _tmp14_, _tmp15_);
-#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp11_);
-#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = committed;
-#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp16_) {
-#line 22142 "Photo.c"
- PhotoRow* _tmp17_;
- Orientation _tmp18_;
- PhotoRow* _tmp19_;
- GeeHashMap* _tmp20_;
- GeeHashMap* _tmp21_;
- PixelTransformer* _tmp22_;
- PixelTransformer* _tmp23_;
- PixelTransformationBundle* _tmp24_;
- PixelTransformationBundle* _tmp25_;
-#line 2810 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->row;
-#line 2810 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = saved_orientation;
-#line 2810 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_->orientation = _tmp18_;
-#line 2811 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = self->row;
-#line 2811 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = saved_transformations;
-#line 2811 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _g_object_ref0 (_tmp20_);
-#line 2811 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp19_->transformations);
-#line 2811 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_->transformations = _tmp21_;
-#line 2812 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = saved_transformer;
-#line 2812 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _pixel_transformer_ref0 (_tmp22_);
-#line 2812 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 2812 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->transformer = _tmp23_;
-#line 2813 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = saved_adjustments;
-#line 2813 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _pixel_transformation_bundle_ref0 (_tmp24_);
-#line 2813 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 2813 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->adjustments = _tmp25_;
-#line 22184 "Photo.c"
- }
- }
- __finally382:
- {
- PhotoRow* _tmp26_;
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = self->row;
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22194 "Photo.c"
- }
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 22198 "Photo.c"
- gboolean _tmp27_ = FALSE;
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (saved_adjustments);
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (saved_transformer);
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (saved_transformations);
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (state_impl);
-#line 2806 "/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 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp27_;
-#line 22214 "Photo.c"
- }
- }
-#line 2817 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = committed;
-#line 2817 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp28_) {
-#line 22221 "Photo.c"
- Alteration* _tmp29_;
- Alteration* _tmp30_;
-#line 2818 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = alteration_new ("image", "transformation-state");
-#line 2818 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp29_;
-#line 2818 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp30_);
-#line 2818 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp30_);
-#line 22232 "Photo.c"
- }
-#line 2820 "/home/jens/Source/shotwell/src/Photo.vala"
- result = committed;
-#line 2820 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (saved_adjustments);
-#line 2820 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (saved_transformer);
-#line 2820 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (saved_transformations);
-#line 2820 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (state_impl);
-#line 2820 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22246 "Photo.c"
-}
-
-
-void
-photo_remove_all_transformations (Photo* self)
-{
-#line 2823 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2824 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_internal_remove_all_transformations (self, TRUE);
-#line 22257 "Photo.c"
-}
-
-
-static void
-photo_internal_remove_all_transformations (Photo* self,
- gboolean notify)
-{
- gboolean is_altered = FALSE;
- gboolean _tmp20_ = FALSE;
- gboolean _tmp21_;
- GError * _inner_error_ = NULL;
-#line 2827 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2828 "/home/jens/Source/shotwell/src/Photo.vala"
- is_altered = FALSE;
-#line 22273 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22280 "Photo.c"
- {
- PhotoTable* _tmp1_;
- PhotoTable* _tmp2_;
- PhotoRow* _tmp3_;
- PhotoID _tmp4_;
- PhotoRow* _tmp5_;
- PhotoRow* _tmp6_;
- Orientation _tmp7_;
- BackingPhotoRow* _tmp8_;
- Orientation _tmp9_;
-#line 2830 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_table_get_instance ();
-#line 2830 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 2830 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2830 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->photo_id;
-#line 2830 "/home/jens/Source/shotwell/src/Photo.vala"
- is_altered = photo_table_remove_all_transformations (_tmp2_, &_tmp4_);
-#line 2830 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp2_);
-#line 2831 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2831 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp5_->transformations);
-#line 2831 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_->transformations = NULL;
-#line 2833 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 2833 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->transformer = NULL;
-#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->adjustments = NULL;
-#line 2836 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2836 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->orientation;
-#line 2836 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->backing_photo_row;
-#line 2836 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_->original_orientation;
-#line 2836 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_ != _tmp9_) {
-#line 22327 "Photo.c"
- PhotoTable* _tmp10_;
- PhotoTable* _tmp11_;
- PhotoRow* _tmp12_;
- PhotoID _tmp13_;
- BackingPhotoRow* _tmp14_;
- Orientation _tmp15_;
- PhotoRow* _tmp16_;
- BackingPhotoRow* _tmp17_;
- Orientation _tmp18_;
-#line 2837 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = photo_table_get_instance ();
-#line 2837 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_;
-#line 2837 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->row;
-#line 2837 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->photo_id;
-#line 2837 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = self->backing_photo_row;
-#line 2837 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_->original_orientation;
-#line 2837 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_set_orientation (_tmp11_, &_tmp13_, _tmp15_);
-#line 2837 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp11_);
-#line 2839 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = self->row;
-#line 2839 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->backing_photo_row;
-#line 2839 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_->original_orientation;
-#line 2839 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_->orientation = _tmp18_;
-#line 2840 "/home/jens/Source/shotwell/src/Photo.vala"
- is_altered = TRUE;
-#line 22363 "Photo.c"
- }
- }
- __finally383:
- {
- PhotoRow* _tmp19_;
-#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = self->row;
-#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22373 "Photo.c"
- }
-#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2829 "/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 2829 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 22383 "Photo.c"
- }
- }
-#line 2844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = is_altered;
-#line 2844 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp21_) {
-#line 2844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = notify;
-#line 22392 "Photo.c"
- } else {
-#line 2844 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = FALSE;
-#line 22396 "Photo.c"
- }
-#line 2844 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp20_) {
-#line 22400 "Photo.c"
- Alteration* _tmp22_;
- Alteration* _tmp23_;
-#line 2845 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = alteration_new ("image", "revert");
-#line 2845 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 2845 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_);
-#line 2845 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp23_);
-#line 22411 "Photo.c"
- }
-}
-
-
-Orientation
-photo_get_original_orientation (Photo* self)
-{
- Orientation result = 0;
- GError * _inner_error_ = NULL;
-#line 2848 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0);
-#line 22423 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22430 "Photo.c"
- {
- BackingPhotoRow* _tmp1_;
- Orientation _tmp2_;
-#line 2850 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->backing_photo_row;
-#line 2850 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->original_orientation;
-#line 2850 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 22440 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22447 "Photo.c"
- }
-#line 2850 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22451 "Photo.c"
- }
- __finally384:
- {
- PhotoRow* _tmp4_;
-#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22460 "Photo.c"
- }
-#line 2849 "/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 2849 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
- return 0;
-#line 22468 "Photo.c"
- }
-}
-
-
-Orientation
-photo_get_orientation (Photo* self)
-{
- Orientation result = 0;
- GError * _inner_error_ = NULL;
-#line 2854 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), 0);
-#line 22480 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2855 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22487 "Photo.c"
- {
- PhotoRow* _tmp1_;
- Orientation _tmp2_;
-#line 2856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->orientation;
-#line 2856 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 22497 "Photo.c"
- {
- PhotoRow* _tmp3_;
-#line 2855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2855 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22504 "Photo.c"
- }
-#line 2856 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22508 "Photo.c"
- }
- __finally385:
- {
- PhotoRow* _tmp4_;
-#line 2855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2855 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22517 "Photo.c"
- }
-#line 2855 "/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 2855 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2855 "/home/jens/Source/shotwell/src/Photo.vala"
- return 0;
-#line 22525 "Photo.c"
- }
-}
-
-
-gboolean
-photo_set_orientation (Photo* self,
- Orientation orientation)
-{
- gboolean result = FALSE;
- gboolean committed = FALSE;
- gboolean _tmp11_;
- GError * _inner_error_ = NULL;
-#line 2860 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2861 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = FALSE;
-#line 22542 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2862 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2862 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22549 "Photo.c"
- {
- PhotoRow* _tmp1_;
- Orientation _tmp2_;
-#line 2863 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2863 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->orientation;
-#line 2863 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != orientation) {
-#line 22559 "Photo.c"
- PhotoTable* _tmp3_;
- PhotoTable* _tmp4_;
- PhotoRow* _tmp5_;
- PhotoID _tmp6_;
- gboolean _tmp7_;
-#line 2864 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_table_get_instance ();
-#line 2864 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2864 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2864 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_->photo_id;
-#line 2864 "/home/jens/Source/shotwell/src/Photo.vala"
- committed = photo_table_set_orientation (_tmp4_, &_tmp6_, orientation);
-#line 2864 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp4_);
-#line 2865 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = committed;
-#line 2865 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_) {
-#line 22581 "Photo.c"
- PhotoRow* _tmp8_;
-#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->row;
-#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_->orientation = orientation;
-#line 22587 "Photo.c"
- }
- }
- }
- __finally386:
- {
- PhotoRow* _tmp9_;
-#line 2862 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 2862 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22598 "Photo.c"
- }
-#line 2862 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 22602 "Photo.c"
- gboolean _tmp10_ = FALSE;
-#line 2862 "/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 2862 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2862 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp10_;
-#line 22610 "Photo.c"
- }
- }
-#line 2870 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = committed;
-#line 2870 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_) {
-#line 22617 "Photo.c"
- Alteration* _tmp12_;
- Alteration* _tmp13_;
-#line 2871 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = alteration_new ("image", "orientation");
-#line 2871 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 2871 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_);
-#line 2871 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp13_);
-#line 22628 "Photo.c"
- }
-#line 2873 "/home/jens/Source/shotwell/src/Photo.vala"
- result = committed;
-#line 2873 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22634 "Photo.c"
-}
-
-
-gboolean
-photo_check_can_rotate (Photo* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 2876 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2877 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->can_rotate_now;
-#line 2877 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 2877 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22651 "Photo.c"
-}
-
-
-static void
-photo_real_rotate (Photo* self,
- Rotation rotation)
-{
- GError * _inner_error_ = NULL;
- {
- PhotoRow* _tmp0_;
-#line 2881 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2881 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22666 "Photo.c"
- {
-#line 2882 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_orientation (self, orientation_perform (photo_get_orientation (self), rotation));
-#line 22670 "Photo.c"
- }
- __finally387:
- {
- PhotoRow* _tmp1_;
-#line 2881 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2881 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22679 "Photo.c"
- }
-#line 2881 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2881 "/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 2881 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2881 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 22689 "Photo.c"
- }
- }
-}
-
-
-void
-photo_rotate (Photo* self,
- Rotation rotation)
-{
-#line 2880 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2880 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->rotate (self, rotation);
-#line 22703 "Photo.c"
-}
-
-
-static gboolean
-photo_has_transformation (Photo* self,
- const gchar* name)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 2886 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2886 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (name != NULL, FALSE);
-#line 22717 "Photo.c"
- {
- PhotoRow* _tmp0_;
- gboolean _tmp8_ = FALSE;
-#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22725 "Photo.c"
- {
- gboolean _tmp1_ = FALSE;
- PhotoRow* _tmp2_;
- GeeHashMap* _tmp3_;
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->row;
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->transformations;
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_ != NULL) {
-#line 22736 "Photo.c"
- PhotoRow* _tmp4_;
- GeeHashMap* _tmp5_;
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_->transformations;
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name);
-#line 22745 "Photo.c"
- } else {
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 22749 "Photo.c"
- }
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 22753 "Photo.c"
- {
- PhotoRow* _tmp6_;
-#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22760 "Photo.c"
- }
-#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22764 "Photo.c"
- }
- __finally388:
- {
- PhotoRow* _tmp7_;
-#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->row;
-#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22773 "Photo.c"
- }
-#line 2887 "/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 2887 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp8_;
-#line 22781 "Photo.c"
- }
-}
-
-
-static KeyValueMap*
-photo_get_transformation (Photo* self,
- const gchar* name)
-{
- KeyValueMap* result = NULL;
- KeyValueMap* map = NULL;
- GError * _inner_error_ = NULL;
-#line 2895 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 2895 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 2896 "/home/jens/Source/shotwell/src/Photo.vala"
- map = NULL;
-#line 22799 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2897 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2897 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22806 "Photo.c"
- {
- PhotoRow* _tmp1_;
- GeeHashMap* _tmp2_;
-#line 2898 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2898 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->transformations;
-#line 2898 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 22816 "Photo.c"
- PhotoRow* _tmp3_;
- GeeHashMap* _tmp4_;
- gpointer _tmp5_;
- KeyValueMap* _tmp6_;
-#line 2899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->transformations;
-#line 2899 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name);
-#line 2899 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2899 "/home/jens/Source/shotwell/src/Photo.vala"
- map = (KeyValueMap*) _tmp5_;
-#line 2900 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = map;
-#line 2900 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_ != NULL) {
-#line 22835 "Photo.c"
- KeyValueMap* _tmp7_;
- KeyValueMap* _tmp8_;
-#line 2901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = map;
-#line 2901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = key_value_map_copy (_tmp7_);
-#line 2901 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2901 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp8_;
-#line 22846 "Photo.c"
- }
- }
- }
- __finally389:
- {
- PhotoRow* _tmp9_;
-#line 2897 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 2897 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22857 "Photo.c"
- }
-#line 2897 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2897 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2897 "/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 2897 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2897 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 22869 "Photo.c"
- }
- }
-#line 2905 "/home/jens/Source/shotwell/src/Photo.vala"
- result = map;
-#line 2905 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22876 "Photo.c"
-}
-
-
-static gboolean
-photo_set_transformation (Photo* self,
- KeyValueMap* trans)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 2908 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2908 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_KEY_VALUE_MAP (trans), FALSE);
-#line 22890 "Photo.c"
- {
- PhotoRow* _tmp0_;
- gboolean _tmp16_ = FALSE;
-#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 22898 "Photo.c"
- {
- PhotoRow* _tmp1_;
- GeeHashMap* _tmp2_;
- PhotoRow* _tmp5_;
- GeeHashMap* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- PhotoTable* _tmp9_;
- PhotoTable* _tmp10_;
- PhotoRow* _tmp11_;
- PhotoID _tmp12_;
- gboolean _tmp13_;
-#line 2910 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2910 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->transformations;
-#line 2910 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ == NULL) {
-#line 22917 "Photo.c"
- PhotoRow* _tmp3_;
- GeeHashMap* _tmp4_;
-#line 2911 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2911 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, (GDestroyNotify) key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 2911 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_->transformations);
-#line 2911 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_->transformations = _tmp4_;
-#line 22928 "Photo.c"
- }
-#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_->transformations;
-#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = key_value_map_get_group (trans);
-#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_;
-#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, trans);
-#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp8_);
-#line 2915 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_table_get_instance ();
-#line 2915 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_;
-#line 2915 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->row;
-#line 2915 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->photo_id;
-#line 2915 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = photo_table_set_transformation (_tmp10_, &_tmp12_, trans);
-#line 2915 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp10_);
-#line 2915 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp13_;
-#line 22956 "Photo.c"
- {
- PhotoRow* _tmp14_;
-#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = self->row;
-#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22963 "Photo.c"
- }
-#line 2915 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 22967 "Photo.c"
- }
- __finally390:
- {
- PhotoRow* _tmp15_;
-#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 22976 "Photo.c"
- }
-#line 2909 "/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 2909 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp16_;
-#line 22984 "Photo.c"
- }
-}
-
-
-static gboolean
-photo_remove_transformation (Photo* self,
- const gchar* name)
-{
- gboolean result = FALSE;
- gboolean altered_cache = FALSE;
- gboolean altered_persistent = FALSE;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_;
- GError * _inner_error_ = NULL;
-#line 2919 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2919 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (name != NULL, FALSE);
-#line 23003 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 2921 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 2921 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 23010 "Photo.c"
- {
- PhotoRow* _tmp1_;
- GeeHashMap* _tmp2_;
- PhotoTable* _tmp11_;
- PhotoTable* _tmp12_;
- PhotoRow* _tmp13_;
- PhotoID _tmp14_;
-#line 2922 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->row;
-#line 2922 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->transformations;
-#line 2922 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 23024 "Photo.c"
- PhotoRow* _tmp3_;
- GeeHashMap* _tmp4_;
- gboolean _tmp5_;
- PhotoRow* _tmp6_;
- GeeHashMap* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 2923 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->row;
-#line 2923 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->transformations;
-#line 2923 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name, NULL);
-#line 2923 "/home/jens/Source/shotwell/src/Photo.vala"
- altered_cache = _tmp5_;
-#line 2924 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 2924 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->transformations;
-#line 2924 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 2924 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 2924 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp9_ == 0) {
-#line 23050 "Photo.c"
- PhotoRow* _tmp10_;
-#line 2925 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->row;
-#line 2925 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp10_->transformations);
-#line 2925 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_->transformations = NULL;
-#line 23058 "Photo.c"
- }
- } else {
-#line 2927 "/home/jens/Source/shotwell/src/Photo.vala"
- altered_cache = FALSE;
-#line 23063 "Photo.c"
- }
-#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_table_get_instance ();
-#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_;
-#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->row;
-#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_->photo_id;
-#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
- altered_persistent = photo_table_remove_transformation (_tmp12_, &_tmp14_, name);
-#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp12_);
-#line 23077 "Photo.c"
- }
- __finally391:
- {
- PhotoRow* _tmp15_;
-#line 2921 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 2921 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 23086 "Photo.c"
- }
-#line 2921 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 23090 "Photo.c"
- gboolean _tmp16_ = FALSE;
-#line 2921 "/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 2921 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 2921 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp16_;
-#line 23098 "Photo.c"
- }
- }
-#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = altered_cache;
-#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp18_) {
-#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = TRUE;
-#line 23107 "Photo.c"
- } else {
-#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = altered_persistent;
-#line 23111 "Photo.c"
- }
-#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp17_;
-#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23117 "Photo.c"
-}
-
-
-gboolean
-photo_has_crop (Photo* self)
-{
- gboolean result = FALSE;
-#line 2937 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2938 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_has_transformation (self, "crop");
-#line 2938 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23131 "Photo.c"
-}
-
-
-gboolean
-photo_get_raw_crop (Photo* self,
- Box* crop)
-{
- Box _vala_crop = {0};
- gboolean result = FALSE;
- KeyValueMap* map = NULL;
- KeyValueMap* _tmp0_;
- KeyValueMap* _tmp1_;
- gint left = 0;
- KeyValueMap* _tmp2_;
- gint top = 0;
- KeyValueMap* _tmp3_;
- gint right = 0;
- KeyValueMap* _tmp4_;
- gint bottom = 0;
- KeyValueMap* _tmp5_;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_ = FALSE;
- gint _tmp9_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
-#line 2942 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2943 "/home/jens/Source/shotwell/src/Photo.vala"
- box_init (&_vala_crop, 0, 0, 0, 0);
-#line 2945 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_transformation (self, "crop");
-#line 2945 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp0_;
-#line 2946 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = map;
-#line 2946 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
- if (crop) {
-#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
- *crop = _vala_crop;
-#line 23180 "Photo.c"
- }
-#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23184 "Photo.c"
- }
-#line 2949 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = map;
-#line 2949 "/home/jens/Source/shotwell/src/Photo.vala"
- left = key_value_map_get_int (_tmp2_, "left", -1);
-#line 2950 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = map;
-#line 2950 "/home/jens/Source/shotwell/src/Photo.vala"
- top = key_value_map_get_int (_tmp3_, "top", -1);
-#line 2951 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = map;
-#line 2951 "/home/jens/Source/shotwell/src/Photo.vala"
- right = key_value_map_get_int (_tmp4_, "right", -1);
-#line 2952 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = map;
-#line 2952 "/home/jens/Source/shotwell/src/Photo.vala"
- bottom = key_value_map_get_int (_tmp5_, "bottom", -1);
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = left;
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp9_ == -1) {
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = TRUE;
-#line 23208 "Photo.c"
- } else {
- gint _tmp10_;
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = top;
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp10_ == -1;
-#line 23215 "Photo.c"
- }
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_) {
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = TRUE;
-#line 23221 "Photo.c"
- } else {
- gint _tmp11_;
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = right;
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp11_ == -1;
-#line 23228 "Photo.c"
- }
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_) {
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = TRUE;
-#line 23234 "Photo.c"
- } else {
- gint _tmp12_;
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = bottom;
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp12_ == -1;
-#line 23241 "Photo.c"
- }
-#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_) {
-#line 2955 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2955 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2955 "/home/jens/Source/shotwell/src/Photo.vala"
- if (crop) {
-#line 2955 "/home/jens/Source/shotwell/src/Photo.vala"
- *crop = _vala_crop;
-#line 23253 "Photo.c"
- }
-#line 2955 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23257 "Photo.c"
- }
-#line 2957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = left;
-#line 2957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = top;
-#line 2957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = right;
-#line 2957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = bottom;
-#line 2957 "/home/jens/Source/shotwell/src/Photo.vala"
- box_init (&_vala_crop, _tmp13_, _tmp14_, _tmp15_, _tmp16_);
-#line 2959 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 2959 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2959 "/home/jens/Source/shotwell/src/Photo.vala"
- if (crop) {
-#line 2959 "/home/jens/Source/shotwell/src/Photo.vala"
- *crop = _vala_crop;
-#line 23277 "Photo.c"
- }
-#line 2959 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23281 "Photo.c"
-}
-
-
-static void
-photo_set_raw_crop (Photo* self,
- Box* crop)
-{
- KeyValueMap* map = NULL;
- KeyValueMap* _tmp0_;
- KeyValueMap* _tmp1_;
- Box _tmp2_;
- gint _tmp3_;
- KeyValueMap* _tmp4_;
- Box _tmp5_;
- gint _tmp6_;
- KeyValueMap* _tmp7_;
- Box _tmp8_;
- gint _tmp9_;
- KeyValueMap* _tmp10_;
- Box _tmp11_;
- gint _tmp12_;
- KeyValueMap* _tmp13_;
-#line 2963 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2963 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (crop != NULL);
-#line 2964 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = key_value_map_new ("crop");
-#line 2964 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp0_;
-#line 2965 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = map;
-#line 2965 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = *crop;
-#line 2965 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_.left;
-#line 2965 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_int (_tmp1_, "left", _tmp3_);
-#line 2966 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = map;
-#line 2966 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = *crop;
-#line 2966 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_.top;
-#line 2966 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_int (_tmp4_, "top", _tmp6_);
-#line 2967 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = map;
-#line 2967 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = *crop;
-#line 2967 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_.right;
-#line 2967 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_int (_tmp7_, "right", _tmp9_);
-#line 2968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = map;
-#line 2968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = *crop;
-#line 2968 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_.bottom;
-#line 2968 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_int (_tmp10_, "bottom", _tmp12_);
-#line 2970 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = map;
-#line 2970 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_set_transformation (self, _tmp13_)) {
-#line 23348 "Photo.c"
- Alteration* _tmp14_;
- Alteration* _tmp15_;
-#line 2971 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = alteration_new ("image", "crop");
-#line 2971 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 2971 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_);
-#line 2971 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp15_);
-#line 23359 "Photo.c"
- }
-#line 2963 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 23363 "Photo.c"
-}
-
-
-static gboolean
-photo_get_raw_straighten (Photo* self,
- gdouble* angle)
-{
- gdouble _vala_angle = 0.0;
- gboolean result = FALSE;
- KeyValueMap* map = NULL;
- KeyValueMap* _tmp0_;
- KeyValueMap* _tmp1_;
- KeyValueMap* _tmp2_;
-#line 2974 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 2975 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_transformation (self, "straighten");
-#line 2975 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp0_;
-#line 2976 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = map;
-#line 2976 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 2977 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_angle = 0.0;
-#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
- if (angle) {
-#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
- *angle = _vala_angle;
-#line 23397 "Photo.c"
- }
-#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23401 "Photo.c"
- }
-#line 2982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = map;
-#line 2982 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_angle = key_value_map_get_double (_tmp2_, "angle", 0.0);
-#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
- if (angle) {
-#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
- *angle = _vala_angle;
-#line 23415 "Photo.c"
- }
-#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23419 "Photo.c"
-}
-
-
-static void
-photo_set_raw_straighten (Photo* self,
- gdouble theta)
-{
- KeyValueMap* map = NULL;
- KeyValueMap* _tmp0_;
- KeyValueMap* _tmp1_;
- KeyValueMap* _tmp2_;
-#line 2987 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 2988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = key_value_map_new ("straighten");
-#line 2988 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp0_;
-#line 2989 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = map;
-#line 2989 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_double (_tmp1_, "angle", theta);
-#line 2991 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = map;
-#line 2991 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_set_transformation (self, _tmp2_)) {
-#line 23445 "Photo.c"
- Alteration* _tmp3_;
- Alteration* _tmp4_;
-#line 2992 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = alteration_new ("image", "straighten");
-#line 2992 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 2992 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp4_);
-#line 2992 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp4_);
-#line 23456 "Photo.c"
- }
-#line 2987 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 23460 "Photo.c"
-}
-
-
-static EditingToolsRedeyeInstance*
-photo_get_raw_redeye_instances (Photo* self,
- int* result_length1)
-{
- EditingToolsRedeyeInstance* result = NULL;
- KeyValueMap* map = NULL;
- KeyValueMap* _tmp0_;
- KeyValueMap* _tmp1_;
- gint num_points = 0;
- KeyValueMap* _tmp4_;
- gint _tmp5_;
- EditingToolsRedeyeInstance* res = NULL;
- gint _tmp6_;
- EditingToolsRedeyeInstance* _tmp7_;
- gint res_length1;
- gint _res_size_;
- GdkPoint default_point = {0};
- GdkPoint _tmp8_ = {0};
- EditingToolsRedeyeInstance* _tmp45_;
- gint _tmp45__length1;
-#line 2997 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_transformation (self, "redeye");
-#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp0_;
-#line 2999 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = map;
-#line 2999 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 23494 "Photo.c"
- EditingToolsRedeyeInstance* _tmp2_;
- EditingToolsRedeyeInstance* _tmp3_;
- gint _tmp3__length1;
-#line 3000 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = g_new0 (EditingToolsRedeyeInstance, 0);
-#line 3000 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 3000 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3__length1 = 0;
-#line 3000 "/home/jens/Source/shotwell/src/Photo.vala"
- if (result_length1) {
-#line 3000 "/home/jens/Source/shotwell/src/Photo.vala"
- *result_length1 = _tmp3__length1;
-#line 23508 "Photo.c"
- }
-#line 3000 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 3000 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 3000 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23516 "Photo.c"
- }
-#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = map;
-#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
- num_points = key_value_map_get_int (_tmp4_, "num_points", -1);
-#line 3003 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = num_points;
-#line 3003 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp5_ > 0, "num_points > 0");
-#line 3005 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = num_points;
-#line 3005 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = g_new0 (EditingToolsRedeyeInstance, _tmp6_);
-#line 3005 "/home/jens/Source/shotwell/src/Photo.vala"
- res = _tmp7_;
-#line 3005 "/home/jens/Source/shotwell/src/Photo.vala"
- res_length1 = _tmp6_;
-#line 3005 "/home/jens/Source/shotwell/src/Photo.vala"
- _res_size_ = res_length1;
-#line 3007 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_.x = 0;
-#line 3007 "/home/jens/Source/shotwell/src/Photo.vala"
- default_point = _tmp8_;
-#line 3008 "/home/jens/Source/shotwell/src/Photo.vala"
- default_point.x = -1;
-#line 3009 "/home/jens/Source/shotwell/src/Photo.vala"
- default_point.y = -1;
-#line 23544 "Photo.c"
- {
- gint i = 0;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- i = 0;
-#line 23549 "Photo.c"
- {
- gboolean _tmp9_ = FALSE;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = TRUE;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 23556 "Photo.c"
- gint _tmp11_;
- gint _tmp12_;
- gchar* center_key = NULL;
- gint _tmp13_;
- gchar* _tmp14_;
- gchar* radius_key = NULL;
- gint _tmp15_;
- gchar* _tmp16_;
- EditingToolsRedeyeInstance* _tmp17_;
- gint _tmp17__length1;
- gint _tmp18_;
- KeyValueMap* _tmp19_;
- const gchar* _tmp20_;
- GdkPoint _tmp21_;
- GdkPoint _tmp22_ = {0};
- EditingToolsRedeyeInstance* _tmp23_;
- gint _tmp23__length1;
- gint _tmp24_;
- EditingToolsRedeyeInstance _tmp25_;
- GdkPoint _tmp26_;
- gint _tmp27_;
- GdkPoint _tmp28_;
- gint _tmp29_;
- EditingToolsRedeyeInstance* _tmp30_;
- gint _tmp30__length1;
- gint _tmp31_;
- EditingToolsRedeyeInstance _tmp32_;
- GdkPoint _tmp33_;
- gint _tmp34_;
- GdkPoint _tmp35_;
- gint _tmp36_;
- EditingToolsRedeyeInstance* _tmp37_;
- gint _tmp37__length1;
- gint _tmp38_;
- KeyValueMap* _tmp39_;
- const gchar* _tmp40_;
- EditingToolsRedeyeInstance* _tmp41_;
- gint _tmp41__length1;
- gint _tmp42_;
- EditingToolsRedeyeInstance _tmp43_;
- gint _tmp44_;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp9_) {
-#line 23600 "Photo.c"
- gint _tmp10_;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = i;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- i = _tmp10_ + 1;
-#line 23606 "Photo.c"
- }
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = FALSE;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = i;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = num_points;
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp11_ < _tmp12_)) {
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 23618 "Photo.c"
- }
-#line 3012 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = i;
-#line 3012 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = g_strdup_printf ("center%d", _tmp13_);
-#line 3012 "/home/jens/Source/shotwell/src/Photo.vala"
- center_key = _tmp14_;
-#line 3013 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = i;
-#line 3013 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = g_strdup_printf ("radius%d", _tmp15_);
-#line 3013 "/home/jens/Source/shotwell/src/Photo.vala"
- radius_key = _tmp16_;
-#line 3015 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = res;
-#line 3015 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17__length1 = res_length1;
-#line 3015 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = i;
-#line 3015 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = map;
-#line 3015 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = center_key;
-#line 3015 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = default_point;
-#line 3015 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_get_point (_tmp19_, _tmp20_, &_tmp21_, &_tmp22_);
-#line 3015 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_[_tmp18_].center = _tmp22_;
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = res;
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23__length1 = res_length1;
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = i;
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp23_[_tmp24_];
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp25_.center;
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp26_.x;
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = default_point;
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _tmp28_.x;
-#line 3016 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp27_ != _tmp29_, "res[i].center.x != default_point.x");
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = res;
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30__length1 = res_length1;
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = i;
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = _tmp30_[_tmp31_];
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_.center;
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_.y;
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = default_point;
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_.y;
-#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp34_ != _tmp36_, "res[i].center.y != default_point.y");
-#line 3019 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = res;
-#line 3019 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37__length1 = res_length1;
-#line 3019 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = i;
-#line 3019 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = map;
-#line 3019 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = radius_key;
-#line 3019 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_[_tmp38_].radius = key_value_map_get_int (_tmp39_, _tmp40_, -1);
-#line 3020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = res;
-#line 3020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41__length1 = res_length1;
-#line 3020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = i;
-#line 3020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp41_[_tmp42_];
-#line 3020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_.radius;
-#line 3020 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp44_ != -1, "res[i].radius != -1");
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (radius_key);
-#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (center_key);
-#line 23712 "Photo.c"
- }
- }
- }
-#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = res;
-#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45__length1 = res_length1;
-#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
- if (result_length1) {
-#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
- *result_length1 = _tmp45__length1;
-#line 23724 "Photo.c"
- }
-#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp45_;
-#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23732 "Photo.c"
-}
-
-
-gboolean
-photo_has_redeye_transformations (Photo* self)
-{
- gboolean result = FALSE;
-#line 3026 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 3027 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_has_transformation (self, "redeye");
-#line 3027 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23746 "Photo.c"
-}
-
-
-void
-photo_add_redeye_instance (Photo* self,
- EditingToolsRedeyeInstance* redeye)
-{
- KeyValueMap* map = NULL;
- KeyValueMap* _tmp0_;
- KeyValueMap* _tmp1_;
- gint num_points = 0;
- KeyValueMap* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gchar* radius_key = NULL;
- gint _tmp7_;
- gchar* _tmp8_;
- gchar* center_key = NULL;
- gint _tmp9_;
- gchar* _tmp10_;
- KeyValueMap* _tmp11_;
- const gchar* _tmp12_;
- EditingToolsRedeyeInstance _tmp13_;
- gint _tmp14_;
- KeyValueMap* _tmp15_;
- const gchar* _tmp16_;
- EditingToolsRedeyeInstance _tmp17_;
- GdkPoint _tmp18_;
- KeyValueMap* _tmp19_;
- gint _tmp20_;
- KeyValueMap* _tmp21_;
-#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (redeye != NULL);
-#line 3032 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_transformation (self, "redeye");
-#line 3032 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp0_;
-#line 3033 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = map;
-#line 3033 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 23790 "Photo.c"
- KeyValueMap* _tmp2_;
- KeyValueMap* _tmp3_;
-#line 3034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = key_value_map_new ("redeye");
-#line 3034 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 3034 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp2_;
-#line 3035 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = map;
-#line 3035 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_int (_tmp3_, "num_points", 0);
-#line 23803 "Photo.c"
- }
-#line 3038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = map;
-#line 3038 "/home/jens/Source/shotwell/src/Photo.vala"
- num_points = key_value_map_get_int (_tmp4_, "num_points", -1);
-#line 3039 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = num_points;
-#line 3039 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp5_ >= 0, "num_points >= 0");
-#line 3041 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = num_points;
-#line 3041 "/home/jens/Source/shotwell/src/Photo.vala"
- num_points = _tmp6_ + 1;
-#line 3043 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = num_points;
-#line 3043 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = g_strdup_printf ("radius%d", _tmp7_ - 1);
-#line 3043 "/home/jens/Source/shotwell/src/Photo.vala"
- radius_key = _tmp8_;
-#line 3044 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = num_points;
-#line 3044 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = g_strdup_printf ("center%d", _tmp9_ - 1);
-#line 3044 "/home/jens/Source/shotwell/src/Photo.vala"
- center_key = _tmp10_;
-#line 3046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = map;
-#line 3046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = radius_key;
-#line 3046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = *redeye;
-#line 3046 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp13_.radius;
-#line 3046 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_int (_tmp11_, _tmp12_, _tmp14_);
-#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = map;
-#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = center_key;
-#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = *redeye;
-#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_.center;
-#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_point (_tmp15_, _tmp16_, &_tmp18_);
-#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = map;
-#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = num_points;
-#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
- key_value_map_set_int (_tmp19_, "num_points", _tmp20_);
-#line 3051 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = map;
-#line 3051 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_set_transformation (self, _tmp21_)) {
-#line 23859 "Photo.c"
- Alteration* _tmp22_;
- Alteration* _tmp23_;
-#line 3052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = alteration_new ("image", "redeye");
-#line 3052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 3052 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_);
-#line 3052 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp23_);
-#line 23870 "Photo.c"
- }
-#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (center_key);
-#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (radius_key);
-#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (map);
-#line 23878 "Photo.c"
-}
-
-
-static gboolean
-photo_calculate_pixbuf_dimensions (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- Dimensions* scaled_image,
- Dimensions* scaled_to_viewport)
-{
- Dimensions _vala_scaled_image = {0};
- Dimensions _vala_scaled_to_viewport = {0};
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 3066 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 3066 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, FALSE);
-#line 23897 "Photo.c"
- {
- PhotoRow* _tmp0_;
- gboolean _tmp7_ = FALSE;
-#line 3068 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 3068 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 23905 "Photo.c"
- {
- Scaling _tmp1_;
- Dimensions _tmp2_ = {0};
- Dimensions _tmp3_ = {0};
- gboolean _tmp4_;
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = *scaling;
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_locked_calculate_pixbuf_dimensions (self, &_tmp1_, exceptions, &_tmp2_, &_tmp3_);
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_image = _tmp2_;
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_to_viewport = _tmp3_;
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp4_;
-#line 23921 "Photo.c"
- {
- PhotoRow* _tmp5_;
-#line 3068 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->row;
-#line 3068 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 23928 "Photo.c"
- }
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_image) {
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_image = _vala_scaled_image;
-#line 23934 "Photo.c"
- }
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_to_viewport) {
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_to_viewport = _vala_scaled_to_viewport;
-#line 23940 "Photo.c"
- }
-#line 3070 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 23944 "Photo.c"
- }
- __finally392:
- {
- PhotoRow* _tmp6_;
-#line 3068 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->row;
-#line 3068 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 23953 "Photo.c"
- }
-#line 3068 "/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 3068 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 3068 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp7_;
-#line 23961 "Photo.c"
- }
-#line 3066 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_image) {
-#line 3066 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_image = _vala_scaled_image;
-#line 23967 "Photo.c"
- }
-#line 3066 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_to_viewport) {
-#line 3066 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_to_viewport = _vala_scaled_to_viewport;
-#line 23973 "Photo.c"
- }
-}
-
-
-static gboolean
-photo_locked_calculate_pixbuf_dimensions (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- Dimensions* scaled_image,
- Dimensions* scaled_to_viewport)
-{
- Dimensions _vala_scaled_image = {0};
- Dimensions _vala_scaled_to_viewport = {0};
- gboolean result = FALSE;
- Dimensions raw = {0};
- Dimensions _tmp0_ = {0};
- Orientation orientation = 0;
- gboolean _tmp36_ = FALSE;
- Dimensions _tmp37_;
- gint _tmp38_;
- Dimensions _tmp39_;
- gint _tmp40_;
-#line 3076 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 3076 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, FALSE);
-#line 3078 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_raw_dimensions (self, &_tmp0_);
-#line 3078 "/home/jens/Source/shotwell/src/Photo.vala"
- raw = _tmp0_;
-#line 3080 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaling_is_unscaled (scaling)) {
-#line 24006 "Photo.c"
- Dimensions _tmp1_;
- Dimensions _tmp2_;
-#line 3081 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = raw;
-#line 3081 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_image = _tmp1_;
-#line 3082 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = raw;
-#line 3082 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_to_viewport = _tmp2_;
-#line 3084 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 3084 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_image) {
-#line 3084 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_image = _vala_scaled_image;
-#line 24023 "Photo.c"
- }
-#line 3084 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_to_viewport) {
-#line 3084 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_to_viewport = _vala_scaled_to_viewport;
-#line 24029 "Photo.c"
- }
-#line 3084 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24033 "Photo.c"
- }
-#line 3087 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation = photo_get_orientation (self);
-#line 3092 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_init (&_vala_scaled_image, 0, 0);
-#line 3093 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_init (&_vala_scaled_to_viewport, 0, 0);
-#line 3095 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_CROP)) {
-#line 24043 "Photo.c"
- Box crop = {0};
- Box _tmp3_ = {0};
- gboolean _tmp4_;
-#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_get_raw_crop (self, &_tmp3_);
-#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
- crop = _tmp3_;
-#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_) {
-#line 24053 "Photo.c"
- Dimensions rotated_raw = {0};
- Dimensions _tmp5_;
- Box scaled_crop = {0};
- Dimensions _tmp13_ = {0};
- Dimensions _tmp14_ = {0};
- Box _tmp15_ = {0};
- Dimensions _tmp16_ = {0};
- gboolean _tmp17_ = FALSE;
- Dimensions _tmp20_ = {0};
- Dimensions _tmp21_ = {0};
- Dimensions _tmp22_ = {0};
-#line 3100 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = raw;
-#line 3100 "/home/jens/Source/shotwell/src/Photo.vala"
- rotated_raw = _tmp5_;
-#line 3101 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) {
-#line 24071 "Photo.c"
- Orientation _tmp6_;
- Dimensions _tmp7_;
- Box _tmp8_;
- Box _tmp9_ = {0};
- Orientation _tmp10_;
- Dimensions _tmp11_;
- Dimensions _tmp12_ = {0};
-#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = orientation;
-#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = raw;
-#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = crop;
-#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_rotate_box (_tmp6_, &_tmp7_, &_tmp8_, &_tmp9_);
-#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
- crop = _tmp9_;
-#line 3103 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = orientation;
-#line 3103 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = raw;
-#line 3103 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_rotate_dimensions (_tmp10_, &_tmp11_, &_tmp12_);
-#line 3103 "/home/jens/Source/shotwell/src/Photo.vala"
- rotated_raw = _tmp12_;
-#line 24097 "Photo.c"
- }
-#line 3107 "/home/jens/Source/shotwell/src/Photo.vala"
- box_get_dimensions (&crop, &_tmp13_);
-#line 3107 "/home/jens/Source/shotwell/src/Photo.vala"
- scaling_get_scaled_dimensions (scaling, &_tmp13_, &_tmp14_);
-#line 3107 "/home/jens/Source/shotwell/src/Photo.vala"
- box_get_scaled (&crop, &_tmp14_, &_tmp15_);
-#line 3107 "/home/jens/Source/shotwell/src/Photo.vala"
- scaled_crop = _tmp15_;
-#line 3110 "/home/jens/Source/shotwell/src/Photo.vala"
- box_get_dimensions (&scaled_crop, &_tmp16_);
-#line 3110 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_to_viewport = _tmp16_;
-#line 3113 "/home/jens/Source/shotwell/src/Photo.vala"
- if (box_get_width (&crop) <= box_get_width (&scaled_crop)) {
-#line 3114 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = box_get_height (&crop) <= box_get_height (&scaled_crop);
-#line 24115 "Photo.c"
- } else {
-#line 3113 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = FALSE;
-#line 24119 "Photo.c"
- }
-#line 3113 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp17_) {
-#line 24123 "Photo.c"
- Dimensions _tmp18_;
- Dimensions _tmp19_ = {0};
-#line 3115 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = raw;
-#line 3115 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_image = _tmp18_;
-#line 3116 "/home/jens/Source/shotwell/src/Photo.vala"
- box_get_dimensions (&crop, &_tmp19_);
-#line 3116 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_to_viewport = _tmp19_;
-#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_image) {
-#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_image = _vala_scaled_image;
-#line 24140 "Photo.c"
- }
-#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_to_viewport) {
-#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_to_viewport = _vala_scaled_to_viewport;
-#line 24146 "Photo.c"
- }
-#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24150 "Photo.c"
- }
-#line 3123 "/home/jens/Source/shotwell/src/Photo.vala"
- box_get_dimensions (&crop, &_tmp20_);
-#line 3123 "/home/jens/Source/shotwell/src/Photo.vala"
- box_get_dimensions (&scaled_crop, &_tmp21_);
-#line 3123 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_get_scaled_similar (&rotated_raw, &_tmp20_, &_tmp21_, &_tmp22_);
-#line 3123 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_image = _tmp22_;
-#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) {
-#line 24162 "Photo.c"
- Orientation _tmp23_;
- Dimensions _tmp24_;
- Dimensions _tmp25_ = {0};
-#line 3128 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = orientation;
-#line 3128 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _vala_scaled_image;
-#line 3128 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_derotate_dimensions (_tmp23_, &_tmp24_, &_tmp25_);
-#line 3128 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_image = _tmp25_;
-#line 24174 "Photo.c"
- }
- }
- }
-#line 3133 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!dimensions_has_area (&_vala_scaled_image)) {
-#line 24180 "Photo.c"
- Dimensions rotated_raw = {0};
- Dimensions _tmp26_;
- Dimensions _tmp30_;
- Dimensions _tmp31_ = {0};
- Dimensions _tmp32_;
-#line 3135 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = raw;
-#line 3135 "/home/jens/Source/shotwell/src/Photo.vala"
- rotated_raw = _tmp26_;
-#line 3136 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) {
-#line 24192 "Photo.c"
- Orientation _tmp27_;
- Dimensions _tmp28_;
- Dimensions _tmp29_ = {0};
-#line 3137 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = orientation;
-#line 3137 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = raw;
-#line 3137 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_rotate_dimensions (_tmp27_, &_tmp28_, &_tmp29_);
-#line 3137 "/home/jens/Source/shotwell/src/Photo.vala"
- rotated_raw = _tmp29_;
-#line 24204 "Photo.c"
- }
-#line 3139 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = rotated_raw;
-#line 3139 "/home/jens/Source/shotwell/src/Photo.vala"
- scaling_get_scaled_dimensions (scaling, &_tmp30_, &_tmp31_);
-#line 3139 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_image = _tmp31_;
-#line 3140 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = _vala_scaled_image;
-#line 3140 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_to_viewport = _tmp32_;
-#line 3143 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) {
-#line 24218 "Photo.c"
- Orientation _tmp33_;
- Dimensions _tmp34_;
- Dimensions _tmp35_ = {0};
-#line 3144 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = orientation;
-#line 3144 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _vala_scaled_image;
-#line 3144 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_derotate_dimensions (_tmp33_, &_tmp34_, &_tmp35_);
-#line 3144 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_image = _tmp35_;
-#line 24230 "Photo.c"
- }
- }
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _vala_scaled_image;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _tmp37_.width;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = raw;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = _tmp39_.width;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp38_ >= _tmp40_) {
-#line 24243 "Photo.c"
- Dimensions _tmp41_;
- gint _tmp42_;
- Dimensions _tmp43_;
- gint _tmp44_;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _vala_scaled_image;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = _tmp41_.height;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = raw;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_.height;
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp42_ >= _tmp44_;
-#line 24258 "Photo.c"
- } else {
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = FALSE;
-#line 24262 "Photo.c"
- }
-#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp36_) {
-#line 24266 "Photo.c"
- Dimensions _tmp45_;
-#line 3149 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = raw;
-#line 3149 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_scaled_image = _tmp45_;
-#line 3151 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 3151 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_image) {
-#line 3151 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_image = _vala_scaled_image;
-#line 24278 "Photo.c"
- }
-#line 3151 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_to_viewport) {
-#line 3151 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_to_viewport = _vala_scaled_to_viewport;
-#line 24284 "Photo.c"
- }
-#line 3151 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24288 "Photo.c"
- }
-#line 3154 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (dimensions_has_area (&_vala_scaled_image), "scaled_image.has_area()");
-#line 3155 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (dimensions_has_area (&_vala_scaled_to_viewport), "scaled_to_viewport.has_area()");
-#line 3157 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 3157 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_image) {
-#line 3157 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_image = _vala_scaled_image;
-#line 24300 "Photo.c"
- }
-#line 3157 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaled_to_viewport) {
-#line 3157 "/home/jens/Source/shotwell/src/Photo.vala"
- *scaled_to_viewport = _vala_scaled_to_viewport;
-#line 24306 "Photo.c"
- }
-#line 3157 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24310 "Photo.c"
-}
-
-
-static GdkPixbuf*
-photo_load_raw_pixbuf (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- BackingFetchMode fetch_mode,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- PhotoFileReader* loader = NULL;
- PhotoFileReader* _tmp0_;
- Dimensions scaled_image = {0};
- Dimensions scaled_to_viewport = {0};
- gboolean is_scaled = FALSE;
- Scaling _tmp5_;
- Dimensions _tmp6_ = {0};
- Dimensions _tmp7_ = {0};
- gboolean _tmp8_;
- gboolean _tmp9_;
- GdkPixbuf* pixbuf = NULL;
- PhotoFileReader* _tmp14_;
- Dimensions _tmp15_ = {0};
- Dimensions _tmp16_;
- GdkPixbuf* _tmp17_;
- GdkPixbuf* _tmp18_;
- Dimensions _tmp19_ = {0};
- GError * _inner_error_ = NULL;
-#line 3163 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 3163 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 3166 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_backing_reader (self, fetch_mode);
-#line 3166 "/home/jens/Source/shotwell/src/Photo.vala"
- loader = _tmp0_;
-#line 3169 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaling_is_unscaled (scaling)) {
-#line 24350 "Photo.c"
- GdkPixbuf* _tmp1_ = NULL;
- PhotoFileReader* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = loader;
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_file_reader_unscaled_read (_tmp2_, &_inner_error_);
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp3_;
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (loader);
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 24369 "Photo.c"
- }
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp1_;
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = NULL;
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp4_;
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (loader);
-#line 3174 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24383 "Photo.c"
- }
-#line 3179 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = *scaling;
-#line 3179 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo_calculate_pixbuf_dimensions (self, &_tmp5_, exceptions, &_tmp6_, &_tmp7_);
-#line 3179 "/home/jens/Source/shotwell/src/Photo.vala"
- scaled_image = _tmp6_;
-#line 3179 "/home/jens/Source/shotwell/src/Photo.vala"
- scaled_to_viewport = _tmp7_;
-#line 3179 "/home/jens/Source/shotwell/src/Photo.vala"
- is_scaled = _tmp8_;
-#line 3181 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = is_scaled;
-#line 3181 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp9_) {
-#line 24399 "Photo.c"
- GdkPixbuf* _tmp10_ = NULL;
- PhotoFileReader* _tmp11_;
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = loader;
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_file_reader_unscaled_read (_tmp11_, &_inner_error_);
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp12_;
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (loader);
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 24418 "Photo.c"
- }
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp10_;
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = NULL;
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp13_;
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp10_);
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (loader);
-#line 3186 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24432 "Photo.c"
- }
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = loader;
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_raw_dimensions (self, &_tmp15_);
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = scaled_image;
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = photo_file_reader_scaled_read (_tmp14_, &_tmp15_, &_tmp16_, &_inner_error_);
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp17_;
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (loader);
-#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 24452 "Photo.c"
- }
-#line 3197 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = pixbuf;
-#line 3197 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_for_pixbuf (_tmp18_, &_tmp19_);
-#line 3197 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (dimensions_approx_equals (&scaled_image, &_tmp19_, PHOTO_SCALING_FUDGE), "scaled_image.approx_equals(Dimensions.for_pixbuf(pixbuf), SCALING_FUDGE)");
-#line 3199 "/home/jens/Source/shotwell/src/Photo.vala"
- result = pixbuf;
-#line 3199 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (loader);
-#line 3199 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24466 "Photo.c"
-}
-
-
-GdkPixbuf*
-photo_get_master_pixbuf (Photo* self,
- Scaling* scaling,
- gboolean rotate,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- Scaling _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 3204 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 3204 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = *scaling;
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_get_untransformed_pixbuf (self, &_tmp1_, rotate, BACKING_FETCH_MODE_MASTER, &_inner_error_);
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp2_;
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 24498 "Photo.c"
- }
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp0_;
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp0_);
-#line 3205 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24510 "Photo.c"
-}
-
-
-GdkPixbuf*
-photo_get_unmodified_pixbuf (Photo* self,
- Scaling* scaling,
- gboolean rotate,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- Scaling _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 3209 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 3209 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = *scaling;
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_get_untransformed_pixbuf (self, &_tmp1_, rotate, BACKING_FETCH_MODE_UNMODIFIED, &_inner_error_);
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp2_;
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 24542 "Photo.c"
- }
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp0_;
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp0_);
-#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24554 "Photo.c"
-}
-
-
-static GdkPixbuf*
-photo_get_untransformed_pixbuf (Photo* self,
- Scaling* scaling,
- gboolean rotate,
- BackingFetchMode fetch_mode,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- Dimensions scaled_image = {0};
- Dimensions scaled_to_viewport = {0};
- Orientation original_orientation = 0;
- GdkPixbuf* pixbuf = NULL;
- Scaling _tmp5_;
- GdkPixbuf* _tmp6_;
- GError * _inner_error_ = NULL;
-#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 24577 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 3228 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 3228 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 24584 "Photo.c"
- {
- Scaling _tmp1_;
- Dimensions _tmp2_ = {0};
- Dimensions _tmp3_ = {0};
-#line 3229 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = *scaling;
-#line 3229 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_calculate_pixbuf_dimensions (self, &_tmp1_, PHOTO_EXCEPTION_NONE, &_tmp2_, &_tmp3_);
-#line 3229 "/home/jens/Source/shotwell/src/Photo.vala"
- scaled_image = _tmp2_;
-#line 3229 "/home/jens/Source/shotwell/src/Photo.vala"
- scaled_to_viewport = _tmp3_;
-#line 3231 "/home/jens/Source/shotwell/src/Photo.vala"
- original_orientation = photo_get_original_orientation (self);
-#line 24599 "Photo.c"
- }
- __finally393:
- {
- PhotoRow* _tmp4_;
-#line 3228 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 3228 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 24608 "Photo.c"
- }
-#line 3228 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3228 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3228 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 24616 "Photo.c"
- }
- }
-#line 3235 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = *scaling;
-#line 3235 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_load_raw_pixbuf (self, &_tmp5_, PHOTO_EXCEPTION_NONE, fetch_mode, &_inner_error_);
-#line 3235 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp6_;
-#line 3235 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3235 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3235 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 24631 "Photo.c"
- }
-#line 3241 "/home/jens/Source/shotwell/src/Photo.vala"
- if (rotate) {
-#line 24635 "Photo.c"
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp8_;
-#line 3242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = pixbuf;
-#line 3242 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = orientation_rotate_pixbuf (original_orientation, _tmp7_);
-#line 3242 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3242 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp8_;
-#line 24646 "Photo.c"
- }
-#line 3251 "/home/jens/Source/shotwell/src/Photo.vala"
- result = pixbuf;
-#line 3251 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24652 "Photo.c"
-}
-
-
-static GdkPixbuf*
-photo_real_get_pixbuf (PhotoSource* base,
- Scaling* scaling,
- GError** error)
-{
- Photo * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- Scaling _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 3254 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
-#line 3254 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = *scaling;
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_get_pixbuf_with_options (self, &_tmp1_, PHOTO_EXCEPTION_NONE, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp2_;
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 24684 "Photo.c"
- }
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp0_;
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp0_);
-#line 3255 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24696 "Photo.c"
-}
-
-
-/**
- * One-stop shopping for the source pixbuf cache.
- *
- * The source pixbuf cache holds untransformed, unscaled (full-sized) pixbufs of Photo objects.
- * These can be rather large and shouldn't be held in memory for too long, nor should many be
- * allowed to stack up.
- *
- * If locate is non-null, a source pixbuf is returned for the Photo. If keep is true, the
- * pixbuf is stored in the cache. (Thus, passing a Photo w/ keep == false will drop the cached
- * pixbuf.) If Photo is non-null but keep is false, null is returned.
- *
- * Whether locate is null or not, the cache is walked in its entirety, dropping expired pixbufs
- * and dropping excessive pixbufs from the LRU. Locating a Photo "touches" the pixbuf, i.e.
- * it moves to the head of the LRU.
- */
-static gpointer
-_photo_cached_pixbuf_ref0 (gpointer self)
-{
-#line 3290 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? photo_cached_pixbuf_ref (self) : NULL;
-#line 24720 "Photo.c"
-}
-
-
-static gboolean
-_photo_trim_source_pixbuf_cache_gsource_func (gpointer self)
-{
- gboolean result;
- result = photo_trim_source_pixbuf_cache ();
-#line 3342 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 24731 "Photo.c"
-}
-
-
-static GdkPixbuf*
-photo_run_source_pixbuf_cache (Photo* locate,
- gboolean keep,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GError * _inner_error_ = NULL;
-#line 3273 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((locate == NULL) || IS_PHOTO (locate), NULL);
-#line 24744 "Photo.c"
- {
- GeeLinkedList* _tmp0_;
-#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_source_pixbuf_cache;
-#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&__lock_photo_source_pixbuf_cache);
-#line 24751 "Photo.c"
- {
- PhotoCachedPixbuf* found = NULL;
- gdouble min_elapsed = 0.0;
- gint count = 0;
- GeeIterator* iter = NULL;
- GeeLinkedList* _tmp1_;
- GeeIterator* _tmp2_;
- gboolean _tmp23_ = FALSE;
- gboolean _tmp24_ = FALSE;
- PhotoCachedPixbuf* _tmp25_;
- gboolean _tmp33_ = FALSE;
- PhotoCachedPixbuf* _tmp34_;
- guint _tmp47_;
- GeeLinkedList* _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
- GdkPixbuf* _tmp55_ = NULL;
- PhotoCachedPixbuf* _tmp56_;
- GdkPixbuf* _tmp59_;
-#line 3275 "/home/jens/Source/shotwell/src/Photo.vala"
- found = NULL;
-#line 3279 "/home/jens/Source/shotwell/src/Photo.vala"
- min_elapsed = DBL_MAX;
-#line 3280 "/home/jens/Source/shotwell/src/Photo.vala"
- count = 0;
-#line 3281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_source_pixbuf_cache;
-#line 3281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 3281 "/home/jens/Source/shotwell/src/Photo.vala"
- iter = _tmp2_;
-#line 3282 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 24785 "Photo.c"
- GeeIterator* _tmp3_;
- PhotoCachedPixbuf* cached_pixbuf = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- gdouble elapsed = 0.0;
- PhotoCachedPixbuf* _tmp6_;
- GTimer* _tmp7_;
- gdouble _tmp8_;
- gboolean _tmp9_ = FALSE;
-#line 3282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = iter;
-#line 3282 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 3282 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 24801 "Photo.c"
- }
-#line 3283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = iter;
-#line 3283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 3283 "/home/jens/Source/shotwell/src/Photo.vala"
- cached_pixbuf = (PhotoCachedPixbuf*) _tmp5_;
-#line 3285 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = cached_pixbuf;
-#line 3285 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->last_touched;
-#line 3285 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = g_timer_elapsed (_tmp7_, NULL);
-#line 3285 "/home/jens/Source/shotwell/src/Photo.vala"
- elapsed = trunc (_tmp8_) + 1;
-#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
- if (locate != NULL) {
-#line 24819 "Photo.c"
- PhotoCachedPixbuf* _tmp10_;
- Photo* _tmp11_;
-#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = cached_pixbuf;
-#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->photo;
-#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (locate, TYPE_DATA_SOURCE, DataSource));
-#line 24828 "Photo.c"
- } else {
-#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = FALSE;
-#line 24832 "Photo.c"
- }
-#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp9_) {
-#line 24836 "Photo.c"
- GeeIterator* _tmp12_;
- PhotoCachedPixbuf* _tmp13_;
- PhotoCachedPixbuf* _tmp14_;
- gint _tmp15_;
-#line 3289 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = iter;
-#line 3289 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_iterator_remove (_tmp12_);
-#line 3290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = cached_pixbuf;
-#line 3290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _photo_cached_pixbuf_ref0 (_tmp13_);
-#line 3290 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_cached_pixbuf_unref0 (found);
-#line 3290 "/home/jens/Source/shotwell/src/Photo.vala"
- found = _tmp14_;
-#line 3293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = count;
-#line 3293 "/home/jens/Source/shotwell/src/Photo.vala"
- count = _tmp15_ + 1;
-#line 24857 "Photo.c"
- } else {
- gdouble _tmp16_;
-#line 3294 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = elapsed;
-#line 3294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp16_ >= ((gdouble) PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC)) {
-#line 24864 "Photo.c"
- GeeIterator* _tmp17_;
-#line 3295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = iter;
-#line 3295 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_iterator_remove (_tmp17_);
-#line 24870 "Photo.c"
- } else {
- gint _tmp18_;
-#line 3296 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = count;
-#line 3296 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp18_ >= PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT) {
-#line 24877 "Photo.c"
- GeeIterator* _tmp19_;
-#line 3297 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = iter;
-#line 3297 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_iterator_remove (_tmp19_);
-#line 24883 "Photo.c"
- } else {
- gdouble _tmp20_;
- gdouble _tmp21_;
- gint _tmp22_;
-#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = elapsed;
-#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = min_elapsed;
-#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
- min_elapsed = MIN (_tmp20_, _tmp21_);
-#line 3302 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = count;
-#line 3302 "/home/jens/Source/shotwell/src/Photo.vala"
- count = _tmp22_ + 1;
-#line 24898 "Photo.c"
- }
- }
- }
-#line 3282 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_cached_pixbuf_unref0 (cached_pixbuf);
-#line 24904 "Photo.c"
- }
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = found;
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp25_ == NULL) {
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = locate != NULL;
-#line 24912 "Photo.c"
- } else {
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = FALSE;
-#line 24916 "Photo.c"
- }
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp24_) {
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = keep;
-#line 24922 "Photo.c"
- } else {
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = FALSE;
-#line 24926 "Photo.c"
- }
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp23_) {
-#line 24930 "Photo.c"
- GdkPixbuf* _tmp26_ = NULL;
- Scaling _tmp27_ = {0};
- GdkPixbuf* _tmp28_;
- PhotoCachedPixbuf* _tmp29_;
-#line 3309 "/home/jens/Source/shotwell/src/Photo.vala"
- scaling_for_original (&_tmp27_);
-#line 3309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = photo_load_raw_pixbuf (locate, &_tmp27_, PHOTO_EXCEPTION_ALL, BACKING_FETCH_MODE_SOURCE, &_inner_error_);
-#line 3309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp28_;
-#line 3309 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3309 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (iter);
-#line 3309 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_cached_pixbuf_unref0 (found);
-#line 24947 "Photo.c"
- goto __finally394;
- }
-#line 3308 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = photo_cached_pixbuf_new (locate, _tmp26_);
-#line 3308 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_cached_pixbuf_unref0 (found);
-#line 3308 "/home/jens/Source/shotwell/src/Photo.vala"
- found = _tmp29_;
-#line 3307 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp26_);
-#line 24958 "Photo.c"
- } else {
- PhotoCachedPixbuf* _tmp30_;
-#line 3310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = found;
-#line 3310 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp30_ != NULL) {
-#line 24965 "Photo.c"
- PhotoCachedPixbuf* _tmp31_;
- GTimer* _tmp32_;
-#line 3312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = found;
-#line 3312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = _tmp31_->last_touched;
-#line 3312 "/home/jens/Source/shotwell/src/Photo.vala"
- g_timer_start (_tmp32_);
-#line 24974 "Photo.c"
- }
- }
-#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = found;
-#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp34_ != NULL) {
-#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = keep;
-#line 24983 "Photo.c"
- } else {
-#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = FALSE;
-#line 24987 "Photo.c"
- }
-#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp33_) {
-#line 24991 "Photo.c"
- GeeLinkedList* _tmp35_;
- PhotoCachedPixbuf* _tmp36_;
- PhotoCachedPixbuf* _tmp37_;
- GTimer* _tmp38_;
- gdouble _tmp39_;
- gdouble _tmp40_;
-#line 3317 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = photo_source_pixbuf_cache;
-#line 3317 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = found;
-#line 3317 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, _tmp36_);
-#line 3322 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = found;
-#line 3322 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _tmp37_->last_touched;
-#line 3322 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = g_timer_elapsed (_tmp38_, NULL);
-#line 3322 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = min_elapsed;
-#line 3322 "/home/jens/Source/shotwell/src/Photo.vala"
- min_elapsed = MIN (_tmp39_, _tmp40_);
-#line 3326 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 25016 "Photo.c"
- GeeLinkedList* _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- GeeLinkedList* _tmp44_;
- gpointer _tmp45_;
- PhotoCachedPixbuf* _tmp46_;
-#line 3326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = photo_source_pixbuf_cache;
-#line 3326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 3326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp42_;
-#line 3326 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp43_ > PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT)) {
-#line 3326 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 25033 "Photo.c"
- }
-#line 3327 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = photo_source_pixbuf_cache;
-#line 3327 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = gee_deque_poll_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_DEQUE, GeeDeque));
-#line 3327 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = (PhotoCachedPixbuf*) _tmp45_;
-#line 3327 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_cached_pixbuf_unref0 (_tmp46_);
-#line 25043 "Photo.c"
- }
- }
-#line 3331 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = photo_discard_source_id;
-#line 3331 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp47_ != ((guint) 0)) {
-#line 25050 "Photo.c"
- guint _tmp48_;
-#line 3332 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = photo_discard_source_id;
-#line 3332 "/home/jens/Source/shotwell/src/Photo.vala"
- g_source_remove (_tmp48_);
-#line 3333 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_discard_source_id = (guint) 0;
-#line 25058 "Photo.c"
- }
-#line 3337 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = photo_source_pixbuf_cache;
-#line 3337 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 3337 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = _tmp50_;
-#line 3337 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp51_ > PHOTO_SOURCE_PIXBUF_MIN_LRU_COUNT) {
-#line 25068 "Photo.c"
- gdouble _tmp52_;
- guint retry_sec = 0U;
- gdouble _tmp53_;
- guint _tmp54_;
-#line 3338 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = min_elapsed;
-#line 3338 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp52_ >= 0.0, "min_elapsed >= 0.0");
-#line 3341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = min_elapsed;
-#line 3341 "/home/jens/Source/shotwell/src/Photo.vala"
- retry_sec = PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC - ((guint) trunc (_tmp53_));
-#line 3342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = retry_sec;
-#line 3342 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_discard_source_id = g_timeout_add_seconds_full (G_PRIORITY_LOW, _tmp54_, _photo_trim_source_pixbuf_cache_gsource_func, NULL, NULL);
-#line 25085 "Photo.c"
- }
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = found;
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp56_ != NULL) {
-#line 25091 "Photo.c"
- PhotoCachedPixbuf* _tmp57_;
- GdkPixbuf* _tmp58_;
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = found;
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = _tmp57_->pixbuf;
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = _tmp58_;
-#line 25100 "Photo.c"
- } else {
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = NULL;
-#line 25104 "Photo.c"
- }
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = _g_object_ref0 (_tmp55_);
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp59_;
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (iter);
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_cached_pixbuf_unref0 (found);
-#line 25114 "Photo.c"
- {
- GeeLinkedList* _tmp60_;
-#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = photo_source_pixbuf_cache;
-#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&__lock_photo_source_pixbuf_cache);
-#line 25121 "Photo.c"
- }
-#line 3345 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 25125 "Photo.c"
- }
- __finally394:
- {
- GeeLinkedList* _tmp61_;
-#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = photo_source_pixbuf_cache;
-#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&__lock_photo_source_pixbuf_cache);
-#line 25134 "Photo.c"
- }
-#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 25140 "Photo.c"
- }
-}
-
-
-static gboolean
-photo_trim_source_pixbuf_cache (void)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
- {
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 3351 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_run_source_pixbuf_cache (NULL, FALSE, &_inner_error_);
-#line 3351 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 3351 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 3351 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 25161 "Photo.c"
- goto __catch395_g_error;
- }
- }
- goto __finally395;
- __catch395_g_error:
- {
- GError* err = NULL;
-#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 25175 "Photo.c"
- }
- __finally395:
-#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 25180 "Photo.c"
- gboolean _tmp2_ = FALSE;
-#line 3350 "/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 3350 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp2_;
-#line 25188 "Photo.c"
- }
-#line 3355 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 3355 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 25194 "Photo.c"
-}
-
-
-/**
- * @brief Get a copy of what's in the cache.
- *
- * @return A copy of the Pixbuf with the image data from unmodified_precached.
- */
-GdkPixbuf*
-photo_get_prefetched_copy (Photo* self,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 3363 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_run_source_pixbuf_cache (self, TRUE, &_inner_error_);
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp1_;
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 25224 "Photo.c"
- }
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = gdk_pixbuf_copy (_tmp0_);
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp0_);
-#line 3364 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 25234 "Photo.c"
-}
-
-
-/**
- * @brief Discards the cached version of the unmodified image.
- */
-void
-photo_discard_prefetched (Photo* self)
-{
- GError * _inner_error_ = NULL;
-#line 3370 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 25247 "Photo.c"
- {
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 3372 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_run_source_pixbuf_cache (self, FALSE, &_inner_error_);
-#line 3372 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 3372 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 3372 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 25259 "Photo.c"
- goto __catch396_g_error;
- }
- }
- goto __finally396;
- __catch396_g_error:
- {
- GError* err = NULL;
-#line 3371 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 3371 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 3371 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 25273 "Photo.c"
- }
- __finally396:
-#line 3371 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3371 "/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 3371 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 3371 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 25284 "Photo.c"
- }
-}
-
-
-/**
- * @brief Returns a fully transformed and scaled pixbuf. Transformations may be excluded via
- * the mask. If the image is smaller than the scaling, it will be returned in its actual size.
- * The caller is responsible for scaling thereafter.
- *
- * @param scaling A scaling object that describes the size the output pixbuf should be.
- * @param exceptions The parts of the pipeline that should be skipped; defaults to NONE if
- * left unset.
- * @param fetch_mode The fetch mode; if left unset, defaults to BASELINE so that
- * we get the image exactly as it is in the file.
- */
-GdkPixbuf*
-photo_get_pixbuf_with_options (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- BackingFetchMode fetch_mode,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
- gboolean _tmp4_;
- gboolean is_scaled = FALSE;
- gboolean is_cropped = FALSE;
- gboolean is_straightened = FALSE;
- Dimensions scaled_to_viewport = {0};
- Dimensions original = {0};
- Dimensions scaled = {0};
- EditingToolsRedeyeInstance* redeye_instances = NULL;
- gint redeye_instances_length1;
- gint _redeye_instances_size_;
- Box crop = {0};
- gdouble straightening_angle = 0.0;
- PixelTransformer* transformer = NULL;
- Orientation orientation = 0;
- GdkPixbuf* pixbuf = NULL;
- GdkPixbuf* _tmp22_;
- gboolean _tmp64_;
- gboolean _tmp74_ = FALSE;
- gboolean _tmp75_;
- GError * _inner_error_ = NULL;
-#line 3388 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 3388 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_get_develop_raw_photos_to_files ();
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_) {
-#line 3402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_get_master_file_format (self) == PHOTO_FILE_FORMAT_RAW;
-#line 25344 "Photo.c"
- } else {
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = FALSE;
-#line 25348 "Photo.c"
- }
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 25352 "Photo.c"
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
-#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (fetch_mode == BACKING_FETCH_MODE_BASELINE) {
-#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = TRUE;
-#line 25359 "Photo.c"
- } else {
-#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = fetch_mode == BACKING_FETCH_MODE_UNMODIFIED;
-#line 25363 "Photo.c"
- }
-#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_) {
-#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = TRUE;
-#line 25369 "Photo.c"
- } else {
-#line 3404 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = fetch_mode == BACKING_FETCH_MODE_SOURCE;
-#line 25373 "Photo.c"
- }
-#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp5_;
-#line 25377 "Photo.c"
- } else {
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 25381 "Photo.c"
- }
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_) {
-#line 3405 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = !photo_is_raw_developer_complete (self, photo_get_raw_developer (self));
-#line 25387 "Photo.c"
- } else {
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = FALSE;
-#line 25391 "Photo.c"
- }
-#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp0_) {
-#line 3406 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_raw_developer (self, photo_get_raw_developer (self), TRUE);
-#line 25397 "Photo.c"
- }
-#line 3411 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_init (&original, 0, 0);
-#line 3412 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_init (&scaled, 0, 0);
-#line 3413 "/home/jens/Source/shotwell/src/Photo.vala"
- redeye_instances = NULL;
-#line 3413 "/home/jens/Source/shotwell/src/Photo.vala"
- redeye_instances_length1 = 0;
-#line 3413 "/home/jens/Source/shotwell/src/Photo.vala"
- _redeye_instances_size_ = redeye_instances_length1;
-#line 3416 "/home/jens/Source/shotwell/src/Photo.vala"
- transformer = NULL;
-#line 25411 "Photo.c"
- {
- PhotoRow* _tmp7_;
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->row;
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 25418 "Photo.c"
- {
- Dimensions _tmp8_ = {0};
- Dimensions _tmp9_ = {0};
- Dimensions _tmp10_ = {0};
- Dimensions _tmp11_;
- Dimensions _tmp12_ = {0};
- Dimensions _tmp13_;
- gint _tmp14_;
- EditingToolsRedeyeInstance* _tmp15_;
- Box _tmp16_ = {0};
- gboolean _tmp17_;
- gdouble _tmp18_ = 0.0;
- gboolean _tmp19_;
-#line 3420 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_ALL, &_tmp8_);
-#line 3420 "/home/jens/Source/shotwell/src/Photo.vala"
- original = _tmp8_;
-#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), exceptions, &_tmp9_);
-#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
- scaling_get_scaled_dimensions (scaling, &_tmp9_, &_tmp10_);
-#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
- scaled = _tmp10_;
-#line 3422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = scaled;
-#line 3422 "/home/jens/Source/shotwell/src/Photo.vala"
- scaled_to_viewport = _tmp11_;
-#line 3424 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp12_);
-#line 3424 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = scaled;
-#line 3424 "/home/jens/Source/shotwell/src/Photo.vala"
- is_scaled = !dimensions_equals (&_tmp12_, &_tmp13_);
-#line 3426 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = photo_get_raw_redeye_instances (self, &_tmp14_);
-#line 3426 "/home/jens/Source/shotwell/src/Photo.vala"
- redeye_instances = (g_free (redeye_instances), NULL);
-#line 3426 "/home/jens/Source/shotwell/src/Photo.vala"
- redeye_instances = _tmp15_;
-#line 3426 "/home/jens/Source/shotwell/src/Photo.vala"
- redeye_instances_length1 = _tmp14_;
-#line 3426 "/home/jens/Source/shotwell/src/Photo.vala"
- _redeye_instances_size_ = redeye_instances_length1;
-#line 3428 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = photo_get_raw_crop (self, &_tmp16_);
-#line 3428 "/home/jens/Source/shotwell/src/Photo.vala"
- crop = _tmp16_;
-#line 3428 "/home/jens/Source/shotwell/src/Photo.vala"
- is_cropped = _tmp17_;
-#line 3430 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = photo_get_raw_straighten (self, &_tmp18_);
-#line 3430 "/home/jens/Source/shotwell/src/Photo.vala"
- straightening_angle = _tmp18_;
-#line 3430 "/home/jens/Source/shotwell/src/Photo.vala"
- is_straightened = _tmp19_;
-#line 3432 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_has_color_adjustments (self)) {
-#line 25476 "Photo.c"
- PixelTransformer* _tmp20_;
-#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = photo_get_pixel_transformer (self);
-#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (transformer);
-#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
- transformer = _tmp20_;
-#line 25484 "Photo.c"
- }
-#line 3435 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation = photo_get_orientation (self);
-#line 25488 "Photo.c"
- }
- __finally397:
- {
- PhotoRow* _tmp21_;
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = self->row;
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 25497 "Photo.c"
- }
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (transformer);
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- redeye_instances = (g_free (redeye_instances), NULL);
-#line 3419 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 25509 "Photo.c"
- }
- }
-#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = photo_get_prefetched_copy (self, &_inner_error_);
-#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp22_;
-#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (transformer);
-#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
- redeye_instances = (g_free (redeye_instances), NULL);
-#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 25526 "Photo.c"
- }
-#line 3449 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_REDEYE)) {
-#line 25530 "Photo.c"
- EditingToolsRedeyeInstance* _tmp23_;
- gint _tmp23__length1;
-#line 3454 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = redeye_instances;
-#line 3454 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23__length1 = redeye_instances_length1;
-#line 25537 "Photo.c"
- {
- EditingToolsRedeyeInstance* instance_collection = NULL;
- gint instance_collection_length1 = 0;
- gint _instance_collection_size_ = 0;
- gint instance_it = 0;
-#line 3454 "/home/jens/Source/shotwell/src/Photo.vala"
- instance_collection = _tmp23_;
-#line 3454 "/home/jens/Source/shotwell/src/Photo.vala"
- instance_collection_length1 = _tmp23__length1;
-#line 3454 "/home/jens/Source/shotwell/src/Photo.vala"
- for (instance_it = 0; instance_it < _tmp23__length1; instance_it = instance_it + 1) {
-#line 25549 "Photo.c"
- EditingToolsRedeyeInstance instance = {0};
-#line 3454 "/home/jens/Source/shotwell/src/Photo.vala"
- instance = instance_collection[instance_it];
-#line 25553 "Photo.c"
- {
- GdkPixbuf* _tmp24_;
- EditingToolsRedeyeInstance _tmp25_;
- GdkPixbuf* _tmp26_;
-#line 3455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = pixbuf;
-#line 3455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = instance;
-#line 3455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = photo_do_redeye (self, _tmp24_, &_tmp25_);
-#line 3455 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3455 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp26_;
-#line 25568 "Photo.c"
- }
- }
- }
- }
-#line 3463 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_STRAIGHTEN)) {
-#line 25575 "Photo.c"
- gboolean _tmp27_;
-#line 3467 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = is_straightened;
-#line 3467 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp27_) {
-#line 25581 "Photo.c"
- GdkPixbuf* _tmp28_;
- gdouble _tmp29_;
- GdkPixbuf* _tmp30_;
-#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = pixbuf;
-#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = straightening_angle;
-#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = rotate_arb (_tmp28_, _tmp29_);
-#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp30_;
-#line 25595 "Photo.c"
- }
- }
-#line 3477 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_CROP)) {
-#line 25600 "Photo.c"
- gboolean _tmp31_;
-#line 3481 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = is_cropped;
-#line 3481 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp31_) {
-#line 25606 "Photo.c"
- Box _tmp32_;
- gint _tmp33_;
- GdkPixbuf* _tmp34_;
- gint _tmp35_;
- gint _tmp36_;
- Box _tmp37_;
- gint _tmp38_;
- GdkPixbuf* _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- Box _tmp42_;
- gint _tmp43_;
- Box _tmp44_;
- gint _tmp45_;
- GdkPixbuf* _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
- Box _tmp49_;
- gint _tmp50_;
- Box _tmp51_;
- gint _tmp52_;
- GdkPixbuf* _tmp53_;
- gint _tmp54_;
- gint _tmp55_;
- GdkPixbuf* _tmp56_;
- Box _tmp57_;
- gint _tmp58_;
- Box _tmp59_;
- gint _tmp60_;
- GdkPixbuf* _tmp61_;
-#line 3486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = crop;
-#line 3486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_.left;
-#line 3486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = pixbuf;
-#line 3486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = gdk_pixbuf_get_width (_tmp34_);
-#line 3486 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_;
-#line 3486 "/home/jens/Source/shotwell/src/Photo.vala"
- crop.left = CLAMP (_tmp33_, 0, _tmp36_ - 2);
-#line 3487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = crop;
-#line 3487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _tmp37_.top;
-#line 3487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = pixbuf;
-#line 3487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = gdk_pixbuf_get_height (_tmp39_);
-#line 3487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _tmp40_;
-#line 3487 "/home/jens/Source/shotwell/src/Photo.vala"
- crop.top = CLAMP (_tmp38_, 0, _tmp41_ - 2);
-#line 3489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = crop;
-#line 3489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp42_.right;
-#line 3489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = crop;
-#line 3489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = _tmp44_.left;
-#line 3489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = pixbuf;
-#line 3489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = gdk_pixbuf_get_width (_tmp46_);
-#line 3489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp47_;
-#line 3489 "/home/jens/Source/shotwell/src/Photo.vala"
- crop.right = CLAMP (_tmp43_, _tmp45_ + 1, _tmp48_ - 1);
-#line 3490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = crop;
-#line 3490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = _tmp49_.bottom;
-#line 3490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = crop;
-#line 3490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = _tmp51_.top;
-#line 3490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = pixbuf;
-#line 3490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = gdk_pixbuf_get_height (_tmp53_);
-#line 3490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = _tmp54_;
-#line 3490 "/home/jens/Source/shotwell/src/Photo.vala"
- crop.bottom = CLAMP (_tmp50_, _tmp52_ + 1, _tmp55_ - 1);
-#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = pixbuf;
-#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = crop;
-#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = _tmp57_.left;
-#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = crop;
-#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = _tmp59_.top;
-#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = gdk_pixbuf_new_subpixbuf (_tmp56_, _tmp58_, _tmp60_, box_get_width (&crop), box_get_height (&crop));
-#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp61_;
-#line 25709 "Photo.c"
- }
- }
-#line 3502 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) {
-#line 25714 "Photo.c"
- GdkPixbuf* _tmp62_;
- GdkPixbuf* _tmp63_;
-#line 3506 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = pixbuf;
-#line 3506 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = orientation_rotate_pixbuf (orientation, _tmp62_);
-#line 3506 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3506 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp63_;
-#line 25725 "Photo.c"
- }
-#line 3513 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = is_scaled;
-#line 3513 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp64_) {
-#line 25731 "Photo.c"
- GdkPixbuf* _tmp65_;
- Dimensions _tmp66_;
- gint _tmp67_;
- Dimensions _tmp68_;
- gint _tmp69_;
- GdkPixbuf* _tmp70_;
-#line 3517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = pixbuf;
-#line 3517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = scaled_to_viewport;
-#line 3517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = _tmp66_.width;
-#line 3517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = scaled_to_viewport;
-#line 3517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = _tmp68_.height;
-#line 3517 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = gdk_pixbuf_scale_simple (_tmp65_, _tmp67_, _tmp69_, GDK_INTERP_BILINEAR);
-#line 3517 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3517 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp70_;
-#line 25754 "Photo.c"
- }
-#line 3525 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ADJUST)) {
-#line 25758 "Photo.c"
- PixelTransformer* _tmp71_;
-#line 3529 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = transformer;
-#line 3529 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp71_ != NULL) {
-#line 25764 "Photo.c"
- PixelTransformer* _tmp72_;
- GdkPixbuf* _tmp73_;
-#line 3530 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = transformer;
-#line 3530 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = pixbuf;
-#line 3530 "/home/jens/Source/shotwell/src/Photo.vala"
- pixel_transformer_transform_pixbuf (_tmp72_, _tmp73_, NULL);
-#line 25773 "Photo.c"
- }
- }
-#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = is_scaled;
-#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp75_) {
-#line 25780 "Photo.c"
- gboolean _tmp76_;
-#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = is_straightened;
-#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = !_tmp76_;
-#line 25786 "Photo.c"
- } else {
-#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = FALSE;
-#line 25790 "Photo.c"
- }
-#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp74_) {
-#line 25794 "Photo.c"
- GdkPixbuf* _tmp77_;
- Dimensions _tmp78_ = {0};
-#line 3540 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = pixbuf;
-#line 3540 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_for_pixbuf (_tmp77_, &_tmp78_);
-#line 3540 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (dimensions_approx_equals (&scaled_to_viewport, &_tmp78_, PHOTO_SCALING_FUDGE), "scaled_to_viewport.approx_equals(Dimensions.for_pixbuf(pixbuf), SCALING_FUDGE)");
-#line 25803 "Photo.c"
- }
-#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
- result = pixbuf;
-#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (transformer);
-#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
- redeye_instances = (g_free (redeye_instances), NULL);
-#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 25813 "Photo.c"
-}
-
-
-static gboolean
-photo_real_has_user_generated_metadata (Photo* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 3556 "/home/jens/Source/shotwell/src/Photo.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_has_user_generated_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 3556 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp0_;
-#line 25825 "Photo.c"
-}
-
-
-gboolean
-photo_has_user_generated_metadata (Photo* self)
-{
-#line 3556 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 3556 "/home/jens/Source/shotwell/src/Photo.vala"
- return PHOTO_GET_CLASS (self)->has_user_generated_metadata (self);
-#line 25836 "Photo.c"
-}
-
-
-static void
-photo_real_set_user_metadata_for_export (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 3560 "/home/jens/Source/shotwell/src/Photo.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_set_user_metadata_for_export'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 3560 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 25848 "Photo.c"
-}
-
-
-void
-photo_set_user_metadata_for_export (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 3560 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3560 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_GET_CLASS (self)->set_user_metadata_for_export (self, metadata);
-#line 25860 "Photo.c"
-}
-
-
-gchar*
-photo_get_export_basename (Photo* self,
- PhotoFileFormat* file_format)
-{
- gchar* result = NULL;
-#line 3567 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 3568 "/home/jens/Source/shotwell/src/Photo.vala"
- if (file_format != NULL) {
-#line 25873 "Photo.c"
- PhotoFileFormatProperties* _tmp0_;
- PhotoFileFormatProperties* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_file_format_get_properties (*file_format);
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_file_format_properties_convert_file_extension (_tmp1_, _tmp3_);
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = g_file_get_basename (_tmp5_);
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp5_);
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_);
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (_tmp1_);
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp7_;
-#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 25908 "Photo.c"
- } else {
-#line 3571 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_file_format_can_write (photo_get_file_format (self))) {
-#line 25912 "Photo.c"
- PhotoFileFormatProperties* _tmp8_;
- PhotoFileFormatProperties* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo_file_format_get_properties (photo_get_file_format (self));
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_;
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_file_format_properties_convert_file_extension (_tmp9_, _tmp11_);
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = g_file_get_basename (_tmp13_);
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp13_);
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp11_);
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (_tmp9_);
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp15_;
-#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 25947 "Photo.c"
- } else {
- PhotoFileFormatProperties* _tmp16_;
- PhotoFileFormatProperties* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
- GFile* _tmp20_;
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = photo_file_format_get_properties (photo_file_format_get_system_default_format ());
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_;
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_;
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = photo_file_format_properties_convert_file_extension (_tmp17_, _tmp19_);
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_;
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = g_file_get_basename (_tmp21_);
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp21_);
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp19_);
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (_tmp17_);
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp23_;
-#line 3575 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 25983 "Photo.c"
- }
- }
-}
-
-
-static gboolean
-photo_export_fullsized_backing (Photo* self,
- GFile* file,
- gboolean export_metadata,
- GError** error)
-{
- gboolean result = FALSE;
- PhotoFileReader* export_reader = NULL;
- gboolean is_master = FALSE;
- PhotoFileReader* _tmp24_;
- PhotoFileFormatProperties* format_properties = NULL;
- PhotoFileReader* _tmp25_;
- PhotoFileFormatProperties* _tmp26_;
- GFile* dest_file = NULL;
- PhotoFileFormatProperties* _tmp27_;
- GFile* _tmp28_;
- PhotoFileMetadataWriter* writer = NULL;
- PhotoFileReader* _tmp29_;
- GFile* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- PhotoFileMetadataWriter* _tmp33_;
- PhotoFileMetadataWriter* _tmp34_;
- gchar* _tmp36_;
- gchar* _tmp37_;
- PhotoFileMetadataWriter* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- PhotoFileReader* _tmp41_;
- GFile* _tmp42_;
- GFile* _tmp43_;
- GFile* _tmp44_;
- gboolean _tmp46_ = FALSE;
- gboolean _tmp47_ = FALSE;
- gboolean _tmp48_ = FALSE;
- gboolean _tmp49_ = FALSE;
- gboolean _tmp50_ = FALSE;
- PhotoMetadata* metadata = NULL;
- PhotoFileReader* _tmp56_;
- PhotoMetadata* _tmp57_;
- PhotoMetadata* _tmp59_;
- PhotoFileMetadataWriter* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- PhotoFileMetadataWriter* _tmp82_;
- PhotoMetadata* _tmp83_;
- GError * _inner_error_ = NULL;
-#line 3581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 3581 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 3584 "/home/jens/Source/shotwell/src/Photo.vala"
- export_reader = NULL;
-#line 3585 "/home/jens/Source/shotwell/src/Photo.vala"
- is_master = TRUE;
-#line 26044 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 26051 "Photo.c"
- {
- gboolean _tmp1_ = FALSE;
- PhotoBackingReaders* _tmp2_;
- PhotoFileReader* _tmp3_;
-#line 3587 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->readers;
-#line 3587 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->editable;
-#line 3587 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_ != NULL) {
-#line 26062 "Photo.c"
- PhotoBackingReaders* _tmp4_;
- PhotoFileReader* _tmp5_;
-#line 3587 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->readers;
-#line 3587 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_->editable;
-#line 3587 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)));
-#line 26071 "Photo.c"
- } else {
-#line 3587 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 26075 "Photo.c"
- }
-#line 3587 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_) {
-#line 26079 "Photo.c"
- PhotoBackingReaders* _tmp6_;
- PhotoFileReader* _tmp7_;
- PhotoFileReader* _tmp8_;
-#line 3588 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->readers;
-#line 3588 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_->editable;
-#line 3588 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _photo_file_adapter_ref0 (_tmp7_);
-#line 3588 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3588 "/home/jens/Source/shotwell/src/Photo.vala"
- export_reader = _tmp8_;
-#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
- is_master = FALSE;
-#line 26095 "Photo.c"
- } else {
- gboolean _tmp9_ = FALSE;
- PhotoBackingReaders* _tmp10_;
- PhotoFileReader* _tmp11_;
-#line 3590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->priv->readers;
-#line 3590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->developer;
-#line 3590 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_ != NULL) {
-#line 26106 "Photo.c"
- PhotoBackingReaders* _tmp12_;
- PhotoFileReader* _tmp13_;
-#line 3590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = self->priv->readers;
-#line 3590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_->developer;
-#line 3590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)));
-#line 26115 "Photo.c"
- } else {
-#line 3590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = FALSE;
-#line 26119 "Photo.c"
- }
-#line 3590 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp9_) {
-#line 26123 "Photo.c"
- PhotoBackingReaders* _tmp14_;
- PhotoFileReader* _tmp15_;
- PhotoFileReader* _tmp16_;
-#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = self->priv->readers;
-#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_->developer;
-#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _photo_file_adapter_ref0 (_tmp15_);
-#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
- export_reader = _tmp16_;
-#line 3592 "/home/jens/Source/shotwell/src/Photo.vala"
- is_master = FALSE;
-#line 26139 "Photo.c"
- } else {
- PhotoBackingReaders* _tmp17_;
- PhotoFileReader* _tmp18_;
-#line 3593 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->priv->readers;
-#line 3593 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_->master;
-#line 3593 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) {
-#line 26149 "Photo.c"
- PhotoBackingReaders* _tmp19_;
- PhotoFileReader* _tmp20_;
- PhotoFileReader* _tmp21_;
-#line 3594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = self->priv->readers;
-#line 3594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _tmp19_->master;
-#line 3594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _photo_file_adapter_ref0 (_tmp20_);
-#line 3594 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3594 "/home/jens/Source/shotwell/src/Photo.vala"
- export_reader = _tmp21_;
-#line 26163 "Photo.c"
- }
- }
- }
- }
- __finally398:
- {
- PhotoBackingReaders* _tmp22_;
-#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = self->priv->readers;
-#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 26175 "Photo.c"
- }
-#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 26179 "Photo.c"
- gboolean _tmp23_ = FALSE;
-#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp23_;
-#line 26187 "Photo.c"
- }
- }
-#line 3598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = export_reader;
-#line 3598 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp24_ == NULL) {
-#line 3599 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 3599 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3599 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 26200 "Photo.c"
- }
-#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = export_reader;
-#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = photo_file_format_get_properties (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)));
-#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
- format_properties = _tmp26_;
-#line 3604 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = format_properties;
-#line 3604 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = photo_file_format_properties_convert_file_extension (_tmp27_, file);
-#line 3604 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_file = _tmp28_;
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = export_reader;
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = dest_file;
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = g_file_get_path (_tmp30_);
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = _tmp31_;
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = photo_file_format_create_metadata_writer (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp32_, &_inner_error_);
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_;
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp32_);
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- writer = _tmp34_;
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 26232 "Photo.c"
- gboolean _tmp35_ = FALSE;
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dest_file);
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (format_properties);
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp35_;
-#line 26244 "Photo.c"
- }
-#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _tmp36_;
-#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = writer;
-#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = _tmp39_;
-#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:3610: Exporting full-sized copy of %s to %s", _tmp37_, _tmp40_);
-#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp40_);
-#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp37_);
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = export_reader;
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp42_;
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = dest_file;
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_copy (_tmp43_, _tmp44_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_);
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp43_);
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 26276 "Photo.c"
- gboolean _tmp45_ = FALSE;
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dest_file);
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (format_properties);
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp45_;
-#line 26290 "Photo.c"
- }
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_has_alterations (self)) {
-#line 26294 "Photo.c"
- gboolean _tmp51_;
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = is_master;
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = _tmp51_;
-#line 26300 "Photo.c"
- } else {
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = FALSE;
-#line 26304 "Photo.c"
- }
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp50_) {
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = !photo_has_user_generated_metadata (self);
-#line 26310 "Photo.c"
- } else {
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = FALSE;
-#line 26314 "Photo.c"
- }
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp49_) {
-#line 26318 "Photo.c"
- gchar* _tmp52_;
- gchar* _tmp53_;
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = _tmp52_;
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp53_ == NULL;
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp53_);
-#line 26329 "Photo.c"
- } else {
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = FALSE;
-#line 26333 "Photo.c"
- }
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp48_) {
-#line 26337 "Photo.c"
- gchar* _tmp54_;
- gchar* _tmp55_;
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = _tmp54_;
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = _tmp55_ == NULL;
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp55_);
-#line 26348 "Photo.c"
- } else {
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = FALSE;
-#line 26352 "Photo.c"
- }
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp47_) {
-#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = export_metadata;
-#line 26358 "Photo.c"
- } else {
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = FALSE;
-#line 26362 "Photo.c"
- }
-#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp46_) {
-#line 3619 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 3619 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3619 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dest_file);
-#line 3619 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (format_properties);
-#line 3619 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3619 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 26378 "Photo.c"
- }
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = export_reader;
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = photo_file_reader_read_metadata (_tmp56_, &_inner_error_);
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp57_;
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 26388 "Photo.c"
- gboolean _tmp58_ = FALSE;
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dest_file);
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (format_properties);
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3622 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp58_;
-#line 26402 "Photo.c"
- }
-#line 3623 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = metadata;
-#line 3623 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp59_ == NULL) {
-#line 26408 "Photo.c"
- PhotoFileReader* _tmp60_;
- PhotoMetadata* _tmp61_;
-#line 3624 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = export_reader;
-#line 3624 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = photo_file_format_create_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)));
-#line 3624 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3624 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp61_;
-#line 26419 "Photo.c"
- }
-#line 3626 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = writer;
-#line 3626 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 3626 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = _tmp63_;
-#line 3626 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:3626: Updating metadata of %s", _tmp64_);
-#line 3626 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp64_);
-#line 3628 "/home/jens/Source/shotwell/src/Photo.vala"
- if (media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)) != ((time_t) 0)) {
-#line 26433 "Photo.c"
- PhotoMetadata* _tmp65_;
- MetadataDateTime* _tmp66_;
- MetadataDateTime* _tmp67_;
-#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = metadata;
-#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = metadata_date_time_new (media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)));
-#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = _tmp66_;
-#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_exposure_date_time (_tmp65_, _tmp67_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (_tmp67_);
-#line 26447 "Photo.c"
- } else {
- PhotoMetadata* _tmp68_;
-#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = metadata;
-#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_exposure_date_time (_tmp68_, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 26454 "Photo.c"
- }
-#line 3633 "/home/jens/Source/shotwell/src/Photo.vala"
- if (export_metadata) {
-#line 26458 "Photo.c"
- PhotoMetadata* _tmp69_;
- gchar* _tmp70_;
- gchar* _tmp71_;
- PhotoMetadata* _tmp72_;
- gchar* _tmp73_;
- gchar* _tmp74_;
- PhotoMetadata* _tmp75_;
- Dimensions _tmp76_ = {0};
- PhotoMetadata* _tmp77_;
- PhotoMetadata* _tmp78_;
- PhotoMetadata* _tmp80_;
-#line 3635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = metadata;
-#line 3635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3635 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = _tmp70_;
-#line 3635 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_title (_tmp69_, _tmp71_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3635 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp71_);
-#line 3636 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = metadata;
-#line 3636 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3636 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = _tmp73_;
-#line 3636 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_comment (_tmp72_, _tmp74_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3636 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp74_);
-#line 3637 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = metadata;
-#line 3637 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp76_);
-#line 3637 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_pixel_dimensions (_tmp75_, &_tmp76_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = metadata;
-#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_orientation (_tmp77_, photo_get_orientation (self));
-#line 3639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = metadata;
-#line 3639 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_software (_tmp78_, RESOURCES_APP_TITLE, RESOURCES_APP_VERSION);
-#line 3641 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_get_orientation (self) != photo_get_original_orientation (self)) {
-#line 26506 "Photo.c"
- PhotoMetadata* _tmp79_;
-#line 3642 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = metadata;
-#line 3642 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_remove_exif_thumbnail (_tmp79_);
-#line 26512 "Photo.c"
- }
-#line 3644 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = metadata;
-#line 3644 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_user_metadata_for_export (self, _tmp80_);
-#line 26518 "Photo.c"
- } else {
- PhotoMetadata* _tmp81_;
-#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = metadata;
-#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_clear (_tmp81_);
-#line 26525 "Photo.c"
- }
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = writer;
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = metadata;
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp82_, _tmp83_, &_inner_error_);
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 26535 "Photo.c"
- gboolean _tmp84_ = FALSE;
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dest_file);
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (format_properties);
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp84_;
-#line 26551 "Photo.c"
- }
-#line 3652 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 3652 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3652 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3652 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dest_file);
-#line 3652 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (format_properties);
-#line 3652 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (export_reader);
-#line 3652 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 26567 "Photo.c"
-}
-
-
-gboolean
-photo_is_export_required (Photo* self,
- Scaling* scaling,
- PhotoFileFormat export_format)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
-#line 3658 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 3658 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, FALSE);
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!scaling_is_unscaled (scaling)) {
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = TRUE;
-#line 26588 "Photo.c"
- } else {
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_has_alterations (self);
-#line 26592 "Photo.c"
- }
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = TRUE;
-#line 26598 "Photo.c"
- } else {
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_has_user_generated_metadata (self);
-#line 26602 "Photo.c"
- }
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_) {
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = TRUE;
-#line 26608 "Photo.c"
- } else {
-#line 3660 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = export_format != photo_get_file_format (self);
-#line 26612 "Photo.c"
- }
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 26618 "Photo.c"
-}
-
-
-void
-photo_export (Photo* self,
- GFile* dest_file,
- Scaling* scaling,
- JpegQuality quality,
- PhotoFileFormat export_format,
- gboolean direct_copy_unmodified,
- gboolean export_metadata,
- GError** error)
-{
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp7_;
- PhotoMetadata* _tmp8_;
- PhotoFileWriter* writer = NULL;
- gchar* _tmp10_;
- gchar* _tmp11_;
- PhotoFileWriter* _tmp12_;
- PhotoFileWriter* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- PhotoFileWriter* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GEnumValue* _tmp19_;
- GdkPixbuf* pixbuf = NULL;
- gboolean _tmp20_ = FALSE;
- PhotoFileWriter* _tmp29_;
- GdkPixbuf* _tmp30_;
- PhotoFileWriter* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gboolean _tmp50_ = FALSE;
- PhotoFileMetadataWriter* _tmp58_ = NULL;
- gchar* _tmp59_;
- gchar* _tmp60_;
- PhotoFileMetadataWriter* _tmp61_;
- PhotoFileMetadataWriter* _tmp62_;
- PhotoMetadata* _tmp63_;
- GError * _inner_error_ = NULL;
-#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE (dest_file));
-#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (scaling != NULL);
-#line 3668 "/home/jens/Source/shotwell/src/Photo.vala"
- if (direct_copy_unmodified) {
-#line 26672 "Photo.c"
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 3669 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3669 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 3669 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_copy (_tmp1_, dest_file, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_);
-#line 3669 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 3669 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3669 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3669 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 26689 "Photo.c"
- }
-#line 3671 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 26693 "Photo.c"
- }
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- if (scaling_is_unscaled (scaling)) {
-#line 26697 "Photo.c"
- gboolean _tmp5_ = FALSE;
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_has_alterations (self)) {
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = TRUE;
-#line 26703 "Photo.c"
- } else {
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo_only_metadata_changed (self);
-#line 26707 "Photo.c"
- }
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp5_;
-#line 26711 "Photo.c"
- } else {
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = FALSE;
-#line 26715 "Photo.c"
- }
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_) {
-#line 3679 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = export_format == photo_get_file_format (self);
-#line 26721 "Photo.c"
- } else {
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = FALSE;
-#line 26725 "Photo.c"
- }
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_) {
-#line 3679 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_get_file_format (self) == PHOTO_FILE_FORMAT_JFIF;
-#line 26731 "Photo.c"
- } else {
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = FALSE;
-#line 26735 "Photo.c"
- }
-#line 3678 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 26739 "Photo.c"
- gboolean _tmp6_ = FALSE;
-#line 3680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo_export_fullsized_backing (self, dest_file, export_metadata, &_inner_error_);
-#line 3680 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3680 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3680 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 26749 "Photo.c"
- }
-#line 3680 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_) {
-#line 3681 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 26755 "Photo.c"
- }
- }
-#line 3687 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 3687 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp7_;
-#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = metadata;
-#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ == NULL) {
-#line 26766 "Photo.c"
- PhotoMetadata* _tmp9_;
-#line 3689 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_file_format_create_metadata (export_format);
-#line 3689 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3689 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp9_;
-#line 26774 "Photo.c"
- }
-#line 3691 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_can_write (export_format)) {
-#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
- export_format = photo_file_format_get_system_default_format ();
-#line 26780 "Photo.c"
- }
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = g_file_get_path (dest_file);
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_;
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_file_format_create_writer (export_format, _tmp11_, &_inner_error_);
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp11_);
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- writer = _tmp13_;
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 26802 "Photo.c"
- }
-#line 3696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 3696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 3696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = writer;
-#line 3696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 3696 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_;
-#line 3697 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), export_format);
-#line 3696 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:3696: Saving transformed version of %s to %s in file format" \
-" %s", _tmp15_, _tmp18_, (_tmp19_ != NULL) ? _tmp19_->value_name : NULL);
-#line 3696 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp18_);
-#line 3696 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp15_);
-#line 3703 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_get_file_format (self) == PHOTO_FILE_FORMAT_JFIF) {
-#line 3703 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = TRUE;
-#line 26826 "Photo.c"
- } else {
-#line 3704 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = photo_get_file_format (self) == PHOTO_FILE_FORMAT_RAW;
-#line 26830 "Photo.c"
- }
-#line 3703 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp20_) {
-#line 26834 "Photo.c"
- GdkPixbuf* _tmp21_ = NULL;
- Scaling _tmp22_;
- GdkPixbuf* _tmp23_;
- GdkPixbuf* _tmp24_;
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = *scaling;
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = photo_get_pixbuf_with_options (self, &_tmp22_, PHOTO_EXCEPTION_ORIENTATION, BACKING_FETCH_MODE_SOURCE, &_inner_error_);
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp23_;
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 26857 "Photo.c"
- }
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _tmp21_;
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = NULL;
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3705 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp24_;
-#line 3703 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp21_);
-#line 26869 "Photo.c"
- } else {
- GdkPixbuf* _tmp25_ = NULL;
- Scaling _tmp26_;
- GdkPixbuf* _tmp27_;
- GdkPixbuf* _tmp28_;
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = *scaling;
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = photo_get_pixbuf_with_options (self, &_tmp26_, PHOTO_EXCEPTION_NONE, BACKING_FETCH_MODE_SOURCE, &_inner_error_);
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp27_;
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 26893 "Photo.c"
- }
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp25_;
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = NULL;
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp28_;
-#line 3703 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp25_);
-#line 26905 "Photo.c"
- }
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = writer;
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = pixbuf;
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_writer_write (_tmp29_, _tmp30_, quality, &_inner_error_);
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 26925 "Photo.c"
- }
-#line 3715 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = writer;
-#line 3715 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 3715 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_;
-#line 3715 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:3715: Setting EXIF for %s", _tmp33_);
-#line 3715 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp33_);
-#line 3718 "/home/jens/Source/shotwell/src/Photo.vala"
- if (export_metadata) {
-#line 26939 "Photo.c"
- PhotoMetadata* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- PhotoMetadata* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- PhotoMetadata* _tmp40_;
- PhotoMetadata* _tmp45_;
- PhotoMetadata* _tmp46_;
- PhotoMetadata* _tmp47_;
-#line 3720 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = metadata;
-#line 3720 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3720 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_;
-#line 3720 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_title (_tmp34_, _tmp36_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3720 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp36_);
-#line 3721 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = metadata;
-#line 3721 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3721 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = _tmp38_;
-#line 3721 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_comment (_tmp37_, _tmp39_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3721 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp39_);
-#line 3722 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = metadata;
-#line 3722 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_software (_tmp40_, RESOURCES_APP_TITLE, RESOURCES_APP_VERSION);
-#line 3724 "/home/jens/Source/shotwell/src/Photo.vala"
- if (media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)) != ((time_t) 0)) {
-#line 26976 "Photo.c"
- PhotoMetadata* _tmp41_;
- MetadataDateTime* _tmp42_;
- MetadataDateTime* _tmp43_;
-#line 3725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = metadata;
-#line 3725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = metadata_date_time_new (media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)));
-#line 3725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp42_;
-#line 3725 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_exposure_date_time (_tmp41_, _tmp43_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3725 "/home/jens/Source/shotwell/src/Photo.vala"
- _metadata_date_time_unref0 (_tmp43_);
-#line 26990 "Photo.c"
- } else {
- PhotoMetadata* _tmp44_;
-#line 3727 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = metadata;
-#line 3727 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_exposure_date_time (_tmp44_, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 26997 "Photo.c"
- }
-#line 3729 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = metadata;
-#line 3729 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_remove_tag (_tmp45_, "Exif.Iop.RelatedImageWidth");
-#line 3730 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = metadata;
-#line 3730 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_remove_tag (_tmp46_, "Exif.Iop.RelatedImageHeight");
-#line 3731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = metadata;
-#line 3731 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_remove_exif_thumbnail (_tmp47_);
-#line 3733 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_has_user_generated_metadata (self)) {
-#line 27013 "Photo.c"
- PhotoMetadata* _tmp48_;
-#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = metadata;
-#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_user_metadata_for_export (self, _tmp48_);
-#line 27019 "Photo.c"
- }
- } else {
- PhotoMetadata* _tmp49_;
-#line 3738 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = metadata;
-#line 3738 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_clear (_tmp49_);
-#line 27027 "Photo.c"
- }
-#line 3745 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_get_file_format (self) == PHOTO_FILE_FORMAT_JFIF) {
-#line 3745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = TRUE;
-#line 27033 "Photo.c"
- } else {
-#line 3746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = photo_get_file_format (self) == PHOTO_FILE_FORMAT_RAW;
-#line 27037 "Photo.c"
- }
-#line 3745 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp50_) {
-#line 27041 "Photo.c"
- PhotoMetadata* _tmp51_;
- Dimensions _tmp52_ = {0};
- PhotoMetadata* _tmp53_;
-#line 3747 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = metadata;
-#line 3747 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_ORIENTATION, &_tmp52_);
-#line 3747 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_pixel_dimensions (_tmp51_, &_tmp52_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = metadata;
-#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_orientation (_tmp53_, photo_get_orientation (self));
-#line 27055 "Photo.c"
- } else {
- PhotoMetadata* _tmp54_;
- GdkPixbuf* _tmp55_;
- Dimensions _tmp56_ = {0};
- PhotoMetadata* _tmp57_;
-#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = metadata;
-#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = pixbuf;
-#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
- dimensions_for_pixbuf (_tmp55_, &_tmp56_);
-#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_pixel_dimensions (_tmp54_, &_tmp56_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 3752 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = metadata;
-#line 3752 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_orientation (_tmp57_, ORIENTATION_TOP_LEFT);
-#line 27073 "Photo.c"
- }
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = g_file_get_path (dest_file);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = _tmp59_;
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = photo_file_format_create_metadata_writer (export_format, _tmp60_, &_inner_error_);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = _tmp61_;
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp60_);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = _tmp62_;
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 27099 "Photo.c"
- }
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = metadata;
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_file_metadata_writer_write_metadata (_tmp58_, _tmp63_, &_inner_error_);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp58_);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 3755 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 27119 "Photo.c"
- }
-#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp58_);
-#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (writer);
-#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 27129 "Photo.c"
-}
-
-
-static GFile*
-photo_generate_new_editable_file (Photo* self,
- PhotoFileFormat* file_format,
- GError** error)
-{
- PhotoFileFormat _vala_file_format = 0;
- GFile* result = NULL;
- GFile* backing = NULL;
- PhotoFileFormat _tmp3_;
- gchar* name = NULL;
- gchar* ext = NULL;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gboolean _tmp8_ = FALSE;
- const gchar* _tmp9_;
- gchar* editable_basename = NULL;
- const gchar* _tmp18_;
- const gchar* _tmp19_;
- gchar* _tmp20_;
- gboolean collision = FALSE;
- GFile* _tmp21_ = NULL;
- GFile* _tmp22_;
- GFile* _tmp23_;
- gboolean _tmp24_ = FALSE;
- GFile* _tmp25_;
- GFile* _tmp26_;
- GFile* _tmp27_;
- GError * _inner_error_ = NULL;
-#line 3758 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 27165 "Photo.c"
- {
- PhotoRow* _tmp0_;
-#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->row;
-#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 27172 "Photo.c"
- {
- GFile* _tmp1_;
-#line 3761 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_file_format = photo_get_file_format (self);
-#line 3762 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3762 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (backing);
-#line 3762 "/home/jens/Source/shotwell/src/Photo.vala"
- backing = _tmp1_;
-#line 27183 "Photo.c"
- }
- __finally399:
- {
- PhotoRow* _tmp2_;
-#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->row;
-#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 27192 "Photo.c"
- }
-#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (backing);
-#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 27202 "Photo.c"
- }
- }
-#line 3765 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _vala_file_format;
-#line 3765 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_file_format_can_write (_tmp3_)) {
-#line 3766 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_file_format = photo_file_format_get_system_default_format ();
-#line 27211 "Photo.c"
- }
-#line 3769 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = g_file_get_basename (backing);
-#line 3769 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 3769 "/home/jens/Source/shotwell/src/Photo.vala"
- disassemble_filename (_tmp5_, &_tmp6_, &_tmp7_);
-#line 3769 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 3769 "/home/jens/Source/shotwell/src/Photo.vala"
- name = _tmp6_;
-#line 3769 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 3769 "/home/jens/Source/shotwell/src/Photo.vala"
- ext = _tmp7_;
-#line 3769 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp5_);
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = ext;
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp9_ == NULL) {
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = TRUE;
-#line 27235 "Photo.c"
- } else {
- PhotoFileFormat _tmp10_;
- PhotoFileFormatProperties* _tmp11_;
- PhotoFileFormatProperties* _tmp12_;
- const gchar* _tmp13_;
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _vala_file_format;
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo_file_format_get_properties (_tmp10_);
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_;
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = ext;
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = !photo_file_format_properties_is_recognized_extension (_tmp12_, _tmp13_);
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (_tmp12_);
-#line 27253 "Photo.c"
- }
-#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_) {
-#line 27257 "Photo.c"
- PhotoFileFormat _tmp14_;
- PhotoFileFormatProperties* _tmp15_;
- PhotoFileFormatProperties* _tmp16_;
- gchar* _tmp17_;
-#line 3772 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _vala_file_format;
-#line 3772 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = photo_file_format_get_properties (_tmp14_);
-#line 3772 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_;
-#line 3772 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = photo_file_format_properties_get_default_extension (_tmp16_);
-#line 3772 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 3772 "/home/jens/Source/shotwell/src/Photo.vala"
- ext = _tmp17_;
-#line 3772 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_format_properties_unref0 (_tmp16_);
-#line 27276 "Photo.c"
- }
-#line 3774 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = name;
-#line 3774 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = ext;
-#line 3774 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = g_strdup_printf ("%s_%s.%s", _tmp18_, _ ("modified"), _tmp19_);
-#line 3774 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_basename = _tmp20_;
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = g_file_get_parent (backing);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = generate_unique_file (_tmp23_, editable_basename, &_tmp24_, &_inner_error_);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- collision = _tmp24_;
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp25_;
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp23_);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp26_;
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (editable_basename);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (backing);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 27314 "Photo.c"
- }
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp21_;
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = NULL;
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp27_;
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp21_);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (editable_basename);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (ext);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (backing);
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- if (file_format) {
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- *file_format = _vala_file_format;
-#line 27336 "Photo.c"
- }
-#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 27340 "Photo.c"
-}
-
-
-static void
-_g_object_unref0_ (gpointer var)
-{
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- (var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
-#line 27349 "Photo.c"
-}
-
-
-static inline void
-_g_list_free__g_object_unref0_ (GList* self)
-{
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
-#line 27358 "Photo.c"
-}
-
-
-static gboolean
-photo_launch_editor (GFile* file,
- PhotoFileFormat file_format,
- GError** error)
-{
- gboolean result = FALSE;
- gchar* _tmp0_ = NULL;
- gchar* commandline = NULL;
- gchar* _tmp7_;
- const gchar* _tmp8_;
- GAppInfo* app = NULL;
- GList* files = NULL;
- GFile* _tmp14_;
- GAppInfo* _tmp15_;
- gchar** argv = NULL;
- gchar** _tmp20_;
- gint argv_length1;
- gint _argv_size_;
- gchar** _tmp21_;
- gint _tmp21__length1;
- const gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar** _tmp25_;
- gint _tmp25__length1;
- gchar* _tmp26_;
- gchar* _tmp27_;
- GPid child_pid = 0;
- gboolean _tmp28_ = FALSE;
- gchar** _tmp29_;
- gint _tmp29__length1;
- GPid _tmp30_ = 0;
- gboolean _tmp31_;
- GError * _inner_error_ = NULL;
-#line 3780 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- if (file_format == PHOTO_FILE_FORMAT_RAW) {
-#line 27400 "Photo.c"
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- gchar* _tmp3_;
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp3_;
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp2_);
-#line 27416 "Photo.c"
- } else {
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- gchar* _tmp6_;
-#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp6_;
-#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp5_);
-#line 27433 "Photo.c"
- }
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = g_strdup (_tmp0_);
-#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
- commandline = _tmp7_;
-#line 3784 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = commandline;
-#line 3784 "/home/jens/Source/shotwell/src/Photo.vala"
- if (is_string_empty (_tmp8_)) {
-#line 3785 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 3785 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (commandline);
-#line 3785 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 3785 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 27451 "Photo.c"
- }
- {
- GAppInfo* _tmp9_ = NULL;
- const gchar* _tmp10_;
- GAppInfo* _tmp11_;
- GAppInfo* _tmp12_;
-#line 3789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = commandline;
-#line 3789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = g_app_info_create_from_commandline (_tmp10_, "", G_APP_INFO_CREATE_NONE, &_inner_error_);
-#line 3789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp11_;
-#line 3789 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 27466 "Photo.c"
- goto __catch400_g_error;
- }
-#line 3789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp9_;
-#line 3789 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = NULL;
-#line 3789 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (app);
-#line 3789 "/home/jens/Source/shotwell/src/Photo.vala"
- app = _tmp12_;
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp9_);
-#line 27479 "Photo.c"
- }
- goto __finally400;
- __catch400_g_error:
- {
- GError* er = NULL;
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- er = _inner_error_;
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 3792 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (app);
-#line 3792 "/home/jens/Source/shotwell/src/Photo.vala"
- app = NULL;
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (er);
-#line 27495 "Photo.c"
- }
- __finally400:
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 27500 "Photo.c"
- gboolean _tmp13_ = FALSE;
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (app);
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (commandline);
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 3788 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp13_;
-#line 27512 "Photo.c"
- }
-#line 3795 "/home/jens/Source/shotwell/src/Photo.vala"
- files = NULL;
-#line 3796 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _g_object_ref0 (file);
-#line 3796 "/home/jens/Source/shotwell/src/Photo.vala"
- files = g_list_insert (files, _tmp14_, -1);
-#line 3798 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = app;
-#line 3798 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_ != NULL) {
-#line 27524 "Photo.c"
- gboolean _tmp16_ = FALSE;
- GAppInfo* _tmp17_;
- GList* _tmp18_;
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = app;
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = files;
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = g_app_info_launch (_tmp17_, _tmp18_, NULL, &_inner_error_);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 27536 "Photo.c"
- gboolean _tmp19_ = FALSE;
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- __g_list_free__g_object_unref0_0 (files);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (app);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (commandline);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp19_;
-#line 27550 "Photo.c"
- }
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp16_;
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- __g_list_free__g_object_unref0_0 (files);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (app);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (commandline);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 3799 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 27564 "Photo.c"
- }
-#line 3801 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = g_new0 (gchar*, 2 + 1);
-#line 3801 "/home/jens/Source/shotwell/src/Photo.vala"
- argv = _tmp20_;
-#line 3801 "/home/jens/Source/shotwell/src/Photo.vala"
- argv_length1 = 2;
-#line 3801 "/home/jens/Source/shotwell/src/Photo.vala"
- _argv_size_ = argv_length1;
-#line 3802 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = argv;
-#line 3802 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21__length1 = argv_length1;
-#line 3802 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = commandline;
-#line 3802 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = g_strdup (_tmp22_);
-#line 3802 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp21_[0]);
-#line 3802 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_[0] = _tmp23_;
-#line 3802 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _tmp21_[0];
-#line 3803 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = argv;
-#line 3803 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25__length1 = argv_length1;
-#line 3803 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = g_file_get_path (file);
-#line 3803 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp25_[1]);
-#line 3803 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_[1] = _tmp26_;
-#line 3803 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp25_[1];
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = argv;
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29__length1 = argv_length1;
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = g_spawn_async ("/", _tmp29_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp30_, &_inner_error_);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- child_pid = _tmp30_;
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp31_;
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 27612 "Photo.c"
- gboolean _tmp32_ = FALSE;
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- __g_list_free__g_object_unref0_0 (files);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (app);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (commandline);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp32_;
-#line 27628 "Photo.c"
- }
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp28_;
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- __g_list_free__g_object_unref0_0 (files);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (app);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (commandline);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp0_);
-#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 27644 "Photo.c"
-}
-
-
-void
-photo_open_with_raw_external_editor (Photo* self,
- GError** error)
-{
- GFile* _tmp0_;
- GFile* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_launch_editor (_tmp1_, photo_get_master_file_format (self), &_inner_error_);
-#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 27671 "Photo.c"
- }
-}
-
-
-void
-photo_open_with_external_editor (Photo* self,
- GError** error)
-{
- GFile* current_editable_file = NULL;
- GFile* create_editable_file = NULL;
- PhotoFileFormat editable_file_format = 0;
- gboolean _tmp14_ = FALSE;
- gboolean _tmp15_ = FALSE;
- GFile* _tmp16_;
- gboolean _tmp22_ = FALSE;
- GFile* _tmp23_;
- GFile* _tmp40_;
- GFileMonitor* _tmp41_;
- GFile* _tmp43_;
- GError * _inner_error_ = NULL;
-#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3823 "/home/jens/Source/shotwell/src/Photo.vala"
- current_editable_file = NULL;
-#line 3824 "/home/jens/Source/shotwell/src/Photo.vala"
- create_editable_file = NULL;
-#line 27698 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 27705 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
- GFile* _tmp6_;
-#line 3827 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 3827 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 3827 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 27716 "Photo.c"
- PhotoBackingReaders* _tmp3_;
- PhotoFileReader* _tmp4_;
- GFile* _tmp5_;
-#line 3828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 3828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->editable;
-#line 3828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 3828 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 3828 "/home/jens/Source/shotwell/src/Photo.vala"
- current_editable_file = _tmp5_;
-#line 27730 "Photo.c"
- }
-#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = current_editable_file;
-#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_ == NULL) {
-#line 27736 "Photo.c"
- GFile* _tmp7_ = NULL;
- PhotoFileFormat _tmp8_ = 0;
- GFile* _tmp9_;
- GFile* _tmp10_;
-#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_generate_new_editable_file (self, &_tmp8_, &_inner_error_);
-#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_file_format = _tmp8_;
-#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp9_;
-#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 27749 "Photo.c"
- goto __finally401;
- }
-#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp7_;
-#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = NULL;
-#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
- create_editable_file = _tmp10_;
-#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp7_);
-#line 27762 "Photo.c"
- } else {
- PhotoBackingReaders* _tmp11_;
- PhotoFileReader* _tmp12_;
-#line 3833 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = self->priv->readers;
-#line 3833 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->editable;
-#line 3833 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_file_format = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 27772 "Photo.c"
- }
- }
- __finally401:
- {
- PhotoBackingReaders* _tmp13_;
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->priv->readers;
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 27782 "Photo.c"
- }
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 27794 "Photo.c"
- }
- }
-#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = create_editable_file;
-#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp16_ == NULL) {
-#line 27801 "Photo.c"
- GFile* _tmp17_;
-#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = current_editable_file;
-#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp17_ != NULL;
-#line 27807 "Photo.c"
- } else {
-#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = FALSE;
-#line 27811 "Photo.c"
- }
-#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_) {
-#line 27815 "Photo.c"
- gboolean _tmp18_ = FALSE;
- GFile* _tmp19_;
-#line 3839 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = current_editable_file;
-#line 3839 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!g_file_query_exists (_tmp19_, NULL)) {
-#line 3839 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = TRUE;
-#line 27824 "Photo.c"
- } else {
-#line 3839 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = photo_has_transformations (self);
-#line 27828 "Photo.c"
- }
-#line 3839 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _tmp18_;
-#line 27832 "Photo.c"
- } else {
-#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = FALSE;
-#line 27836 "Photo.c"
- }
-#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp14_) {
-#line 27840 "Photo.c"
- GFile* _tmp20_;
- GFile* _tmp21_;
-#line 3840 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = current_editable_file;
-#line 3840 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _g_object_ref0 (_tmp20_);
-#line 3840 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3840 "/home/jens/Source/shotwell/src/Photo.vala"
- create_editable_file = _tmp21_;
-#line 27851 "Photo.c"
- }
-#line 3843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = create_editable_file;
-#line 3843 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp23_ != NULL) {
-#line 27857 "Photo.c"
- PhotoFileFormat _tmp24_;
-#line 3843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = editable_file_format;
-#line 3843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = photo_file_format_can_write (_tmp24_);
-#line 27863 "Photo.c"
- } else {
-#line 3843 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = FALSE;
-#line 27867 "Photo.c"
- }
-#line 3843 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp22_) {
-#line 27871 "Photo.c"
- PhotoFileFormat _tmp36_;
- GFile* _tmp37_;
- GFile* _tmp38_;
- GFile* _tmp39_;
-#line 3844 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_halt_monitoring_editable (self);
-#line 27878 "Photo.c"
- {
- GFile* _tmp25_;
- Scaling _tmp26_ = {0};
- PhotoFileFormat _tmp27_;
-#line 3847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = create_editable_file;
-#line 3847 "/home/jens/Source/shotwell/src/Photo.vala"
- scaling_for_original (&_tmp26_);
-#line 3847 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = editable_file_format;
-#line 3847 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_export (self, _tmp25_, &_tmp26_, JPEG_QUALITY_MAXIMUM, _tmp27_, FALSE, TRUE, &_inner_error_);
-#line 3847 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 27893 "Photo.c"
- goto __catch402_g_error;
- }
- }
- goto __finally402;
- __catch402_g_error:
- {
- GError* err = NULL;
- GError* _tmp34_;
- GError* _tmp35_;
-#line 3846 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 3846 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 27907 "Photo.c"
- {
- GFile* _tmp28_;
-#line 3852 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = create_editable_file;
-#line 3852 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_delete (_tmp28_, NULL, &_inner_error_);
-#line 3852 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 27916 "Photo.c"
- goto __catch403_g_error;
- }
- }
- goto __finally403;
- __catch403_g_error:
- {
- GError* delete_err = NULL;
- GFile* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- GError* _tmp32_;
- const gchar* _tmp33_;
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- delete_err = _inner_error_;
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 3855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = create_editable_file;
-#line 3855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = g_file_get_path (_tmp29_);
-#line 3855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_;
-#line 3855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = delete_err;
-#line 3855 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_->message;
-#line 3855 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:3855: Unable to delete editable file %s after export error:" \
-" %s", _tmp31_, _tmp33_);
-#line 3855 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp31_);
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (delete_err);
-#line 27949 "Photo.c"
- }
- __finally403:
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 3851 "/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);
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 27968 "Photo.c"
- }
-#line 3859 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = err;
-#line 3859 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _g_error_copy0 (_tmp34_);
-#line 3859 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = _tmp35_;
-#line 3859 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 27978 "Photo.c"
- goto __finally402;
- }
- __finally402:
-#line 3846 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3846 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3846 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3846 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 3846 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 27992 "Photo.c"
- }
-#line 3863 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = editable_file_format;
-#line 3863 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = create_editable_file;
-#line 3863 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_attach_editable (self, _tmp36_, _tmp37_, &_inner_error_);
-#line 3863 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3863 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3863 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3863 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 3863 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28010 "Photo.c"
- }
-#line 3865 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = create_editable_file;
-#line 3865 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = _g_object_ref0 (_tmp38_);
-#line 3865 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 3865 "/home/jens/Source/shotwell/src/Photo.vala"
- current_editable_file = _tmp39_;
-#line 28020 "Photo.c"
- }
-#line 3868 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = current_editable_file;
-#line 3868 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp40_ != NULL, "current_editable_file != null");
-#line 3871 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = self->priv->editable_monitor;
-#line 3871 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp41_ == NULL) {
-#line 28030 "Photo.c"
- GFile* _tmp42_;
-#line 3872 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = current_editable_file;
-#line 3872 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_start_monitoring_editable (self, _tmp42_, &_inner_error_);
-#line 3872 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3872 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3872 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3872 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 3872 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28046 "Photo.c"
- }
- }
-#line 3874 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = current_editable_file;
-#line 3874 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_launch_editor (_tmp43_, photo_get_file_format (self), &_inner_error_);
-#line 3874 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3874 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3874 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3874 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 3874 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28063 "Photo.c"
- }
-#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (create_editable_file);
-#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (current_editable_file);
-#line 28069 "Photo.c"
-}
-
-
-void
-photo_revert_to_master (Photo* self,
- gboolean notify)
-{
-#line 3877 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3878 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_detach_editable (self, TRUE, TRUE, notify);
-#line 28081 "Photo.c"
-}
-
-
-static void
-_photo_on_editable_file_changed_g_file_monitor_changed (GFileMonitor* _sender,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event_type,
- gpointer self)
-{
-#line 3888 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_on_editable_file_changed ((Photo*) self, file, other_file, event_type);
-#line 28094 "Photo.c"
-}
-
-
-static void
-photo_start_monitoring_editable (Photo* self,
- GFile* file,
- GError** error)
-{
- GFileMonitor* _tmp0_ = NULL;
- GFileMonitor* _tmp1_;
- GFileMonitor* _tmp2_;
- GFileMonitor* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 3881 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3881 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 3882 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_halt_monitoring_editable (self);
-#line 3885 "/home/jens/Source/shotwell/src/Photo.vala"
- library_monitor_blacklist_file (file, "Photo.start_monitoring_editable");
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = g_file_monitor (file, G_FILE_MONITOR_NONE, NULL, &_inner_error_);
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp1_;
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28126 "Photo.c"
- }
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp0_;
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->editable_monitor);
-#line 3887 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable_monitor = _tmp2_;
-#line 3888 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->editable_monitor;
-#line 3888 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_connect_object (_tmp3_, "changed", (GCallback) _photo_on_editable_file_changed_g_file_monitor_changed, self, 0);
-#line 3881 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp0_);
-#line 28142 "Photo.c"
-}
-
-
-static void
-photo_halt_monitoring_editable (Photo* self)
-{
- GFileMonitor* _tmp0_;
- GFile* file = NULL;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFileMonitor* _tmp4_;
- guint _tmp5_;
- GFileMonitor* _tmp6_;
-#line 3891 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3892 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->editable_monitor;
-#line 3892 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp0_ == NULL) {
-#line 3893 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28164 "Photo.c"
- }
-#line 3896 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_editable_file (self);
-#line 3896 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp1_;
-#line 3897 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = file;
-#line 3897 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 28174 "Photo.c"
- GFile* _tmp3_;
-#line 3898 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = file;
-#line 3898 "/home/jens/Source/shotwell/src/Photo.vala"
- library_monitor_unblacklist_file (_tmp3_);
-#line 28180 "Photo.c"
- }
-#line 3900 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->editable_monitor;
-#line 3900 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_parse_name ("changed", g_file_monitor_get_type (), &_tmp5_, NULL, FALSE);
-#line 3900 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _photo_on_editable_file_changed_g_file_monitor_changed, self);
-#line 3901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->editable_monitor;
-#line 3901 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_monitor_cancel (_tmp6_);
-#line 3902 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->editable_monitor);
-#line 3902 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable_monitor = NULL;
-#line 3891 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 28198 "Photo.c"
-}
-
-
-static void
-photo_attach_editable (Photo* self,
- PhotoFileFormat file_format,
- GFile* file,
- GError** error)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileReader* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 3910 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_internal_remove_all_transformations (self, FALSE);
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = g_file_get_path (file);
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_file_format_create_reader (file_format, _tmp1_);
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_update_editable (self, FALSE, _tmp3_, &_inner_error_);
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp3_);
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp1_);
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28239 "Photo.c"
- }
-}
-
-
-static void
-photo_update_editable_attributes (Photo* self,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 3914 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3915 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_update_editable (self, TRUE, NULL, &_inner_error_);
-#line 3915 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3915 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3915 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28259 "Photo.c"
- }
-}
-
-
-void
-photo_reimport_editable (Photo* self,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 3918 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3919 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_update_editable (self, FALSE, NULL, &_inner_error_);
-#line 3919 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3919 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3919 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28279 "Photo.c"
- }
-}
-
-
-static void
-_vala_array_add106 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 28296 "Photo.c"
- }
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 28302 "Photo.c"
-}
-
-
-static void
-_vala_array_add107 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 28318 "Photo.c"
- }
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 28324 "Photo.c"
-}
-
-
-static void
-_vala_array_add108 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 28340 "Photo.c"
- }
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 28346 "Photo.c"
-}
-
-
-static void
-_vala_array_add109 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 28362 "Photo.c"
- }
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 28368 "Photo.c"
-}
-
-
-static void
-_vala_array_add110 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 28384 "Photo.c"
- }
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 28390 "Photo.c"
-}
-
-
-static void
-_vala_array_add111 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((*length) == (*size)) {
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 28406 "Photo.c"
- }
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[(*length)++] = value;
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- (*array)[*length] = NULL;
-#line 28412 "Photo.c"
-}
-
-
-static void
-photo_update_editable (Photo* self,
- gboolean only_attributes,
- PhotoFileReader* new_reader,
- GError** error)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- PhotoFileReader* old_reader = NULL;
- PhotoFileReader* _tmp2_;
- PhotoFileReader* _tmp3_ = NULL;
- PhotoFileReader* reader = NULL;
- PhotoFileReader* _tmp5_;
- PhotoFileReader* _tmp6_;
- gboolean timestamp_changed = FALSE;
- gboolean filesize_changed = FALSE;
- gboolean is_new_editable = FALSE;
- BackingPhotoID editable_id = {0};
- BackingPhotoID _tmp7_ = {0};
- GFile* file = NULL;
- PhotoFileReader* _tmp8_;
- GFile* _tmp9_;
- DetectedPhotoInformation* detected = NULL;
- BackingPhotoRow* backing = NULL;
- GFile* _tmp10_;
- DetectedPhotoInformation* _tmp11_ = NULL;
- BackingPhotoRow* _tmp12_;
- gboolean _tmp87_ = FALSE;
- gchar** alteration_list = NULL;
- gchar** _tmp96_;
- gint alteration_list_length1;
- gint _alteration_list_size_;
- gboolean _tmp97_;
- gboolean _tmp104_ = FALSE;
- gboolean _tmp105_;
- gchar** _tmp112_;
- gint _tmp112__length1;
- GError * _inner_error_ = NULL;
-#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((new_reader == NULL) || IS_PHOTO_FILE_READER (new_reader));
-#line 3926 "/home/jens/Source/shotwell/src/Photo.vala"
- if (only_attributes) {
-#line 3926 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = new_reader == NULL;
-#line 28462 "Photo.c"
- } else {
-#line 3926 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 28466 "Photo.c"
- }
-#line 3926 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_) {
-#line 3926 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = TRUE;
-#line 28472 "Photo.c"
- } else {
-#line 3926 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = !only_attributes;
-#line 28476 "Photo.c"
- }
-#line 3926 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp0_, "(only_attributes && new_reader == null) || (!only_attributes)");
-#line 3928 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_get_editable_reader (self);
-#line 3928 "/home/jens/Source/shotwell/src/Photo.vala"
- old_reader = _tmp2_;
-#line 3930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = new_reader;
-#line 3930 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_ == NULL) {
-#line 28488 "Photo.c"
- PhotoFileReader* _tmp4_;
-#line 3930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = old_reader;
-#line 3930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp4_;
-#line 28494 "Photo.c"
- }
-#line 3930 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _photo_file_adapter_ref0 (_tmp3_);
-#line 3930 "/home/jens/Source/shotwell/src/Photo.vala"
- reader = _tmp5_;
-#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = reader;
-#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_ == NULL) {
-#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_detach_editable (self, FALSE, TRUE, TRUE);
-#line 3934 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3934 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3934 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28512 "Photo.c"
- }
-#line 3937 "/home/jens/Source/shotwell/src/Photo.vala"
- timestamp_changed = FALSE;
-#line 3938 "/home/jens/Source/shotwell/src/Photo.vala"
- filesize_changed = FALSE;
-#line 3939 "/home/jens/Source/shotwell/src/Photo.vala"
- is_new_editable = FALSE;
-#line 3941 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_editable_id (self, &_tmp7_);
-#line 3941 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_id = _tmp7_;
-#line 3942 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = reader;
-#line 3942 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 3942 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp9_;
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = file;
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_query_backing_photo_row (self, _tmp10_, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp11_, &_inner_error_);
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp11_;
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- backing = _tmp12_;
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28554 "Photo.c"
- }
-#line 3949 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing_photo_id_is_invalid (&editable_id)) {
-#line 28558 "Photo.c"
- BackingPhotoRow* _tmp13_;
-#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = backing;
-#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp13_ != NULL) {
-#line 28564 "Photo.c"
- BackingPhotoTable* _tmp14_;
- BackingPhotoTable* _tmp15_;
- BackingPhotoRow* _tmp16_;
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = backing_photo_table_get_instance ();
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = backing;
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_add (_tmp15_, _tmp16_, &_inner_error_);
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp15_);
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3952 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28594 "Photo.c"
- }
- {
- PhotoRow* _tmp17_;
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = self->row;
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 28602 "Photo.c"
- {
- PhotoTable* _tmp18_;
- PhotoTable* _tmp19_;
- PhotoRow* _tmp20_;
- BackingPhotoRow* _tmp21_;
- BackingPhotoID _tmp22_;
- BackingPhotoRow* _tmp23_;
- BackingPhotoRow* _tmp24_;
- BackingPhotoRow* _tmp25_;
- BackingPhotoRow* _tmp26_;
- BackingPhotoRow* _tmp27_;
- Orientation _tmp28_;
-#line 3954 "/home/jens/Source/shotwell/src/Photo.vala"
- timestamp_changed = TRUE;
-#line 3955 "/home/jens/Source/shotwell/src/Photo.vala"
- filesize_changed = TRUE;
-#line 3957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = photo_table_get_instance ();
-#line 3957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_;
-#line 3957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = self->row;
-#line 3957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = backing;
-#line 3957 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp21_->id;
-#line 3957 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_attach_editable (_tmp19_, _tmp20_, &_tmp22_, &_inner_error_);
-#line 3957 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp19_);
-#line 3957 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 28635 "Photo.c"
- goto __finally404;
- }
-#line 3958 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = backing;
-#line 3958 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _backing_photo_row_ref0 (_tmp23_);
-#line 3958 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->priv->editable);
-#line 3958 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable = _tmp24_;
-#line 3959 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = self->priv->editable;
-#line 3959 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _backing_photo_row_ref0 (_tmp25_);
-#line 3959 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 3959 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = _tmp26_;
-#line 3960 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = self->backing_photo_row;
-#line 3960 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp27_->original_orientation;
-#line 3960 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_orientation (self, _tmp28_);
-#line 28660 "Photo.c"
- }
- __finally404:
- {
- PhotoRow* _tmp29_;
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = self->row;
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 28669 "Photo.c"
- }
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28687 "Photo.c"
- }
- }
- }
-#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
- is_new_editable = TRUE;
-#line 28693 "Photo.c"
- }
-#line 3966 "/home/jens/Source/shotwell/src/Photo.vala"
- if (only_attributes) {
-#line 28697 "Photo.c"
- GFileInfo* info = NULL;
- GTimeVal timestamp = {0};
- GFileInfo* _tmp38_;
- GTimeVal _tmp39_ = {0};
- BackingPhotoTable* _tmp40_;
- BackingPhotoTable* _tmp41_;
- BackingPhotoID _tmp42_;
- GTimeVal _tmp43_;
- glong _tmp44_;
- GFileInfo* _tmp45_;
-#line 3968 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (backing_photo_id_is_valid (&editable_id), "editable_id.is_valid()");
-#line 28710 "Photo.c"
- {
- GFileInfo* _tmp30_ = NULL;
- GFile* _tmp31_;
- GFileInfo* _tmp32_;
- GFileInfo* _tmp33_;
-#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = file;
-#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = g_file_query_filesystem_info (_tmp31_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, NULL, &_inner_error_);
-#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp32_;
-#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 28724 "Photo.c"
- goto __catch405_g_error;
- }
-#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp30_;
-#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = NULL;
-#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
- info = _tmp33_;
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp30_);
-#line 28737 "Photo.c"
- }
- goto __finally405;
- __catch405_g_error:
- {
- GError* err = NULL;
- gchar* _tmp34_;
- gchar* _tmp35_;
- GError* _tmp36_;
- const gchar* _tmp37_;
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 3974 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 3974 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _tmp34_;
-#line 3974 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = err;
-#line 3974 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _tmp36_->message;
-#line 3974 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:3974: Unable to read editable filesystem info for %s: %s", _tmp35_, _tmp37_);
-#line 3974 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp35_);
-#line 3975 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_detach_editable (self, FALSE, TRUE, TRUE);
-#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28781 "Photo.c"
- }
- __finally405:
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3971 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28802 "Photo.c"
- }
-#line 3980 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = info;
-#line 3980 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_info_get_modification_time (_tmp38_, &_tmp39_);
-#line 3980 "/home/jens/Source/shotwell/src/Photo.vala"
- timestamp = _tmp39_;
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = backing_photo_table_get_instance ();
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _tmp40_;
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = editable_id;
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = timestamp;
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_.tv_sec;
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = info;
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_update_attributes (_tmp41_, &_tmp42_, (time_t) _tmp44_, g_file_info_get_size (_tmp45_), &_inner_error_);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp41_);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3982 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28844 "Photo.c"
- }
- {
- PhotoRow* _tmp46_;
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = self->row;
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 28852 "Photo.c"
- {
- BackingPhotoRow* _tmp47_;
- time_t _tmp48_;
- GTimeVal _tmp49_;
- glong _tmp50_;
- BackingPhotoRow* _tmp51_;
- gint64 _tmp52_;
- GFileInfo* _tmp53_;
- BackingPhotoRow* _tmp54_;
- GTimeVal _tmp55_;
- glong _tmp56_;
- BackingPhotoRow* _tmp57_;
- GFileInfo* _tmp58_;
-#line 3985 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = self->priv->editable;
-#line 3985 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp47_->timestamp;
-#line 3985 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = timestamp;
-#line 3985 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = _tmp49_.tv_sec;
-#line 3985 "/home/jens/Source/shotwell/src/Photo.vala"
- timestamp_changed = _tmp48_ != ((time_t) _tmp50_);
-#line 3986 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = self->priv->editable;
-#line 3986 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = _tmp51_->filesize;
-#line 3986 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = info;
-#line 3986 "/home/jens/Source/shotwell/src/Photo.vala"
- filesize_changed = _tmp52_ != g_file_info_get_size (_tmp53_);
-#line 3988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = self->priv->editable;
-#line 3988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = timestamp;
-#line 3988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = _tmp55_.tv_sec;
-#line 3988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_->timestamp = (time_t) _tmp56_;
-#line 3989 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = self->priv->editable;
-#line 3989 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = info;
-#line 3989 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_->filesize = g_file_info_get_size (_tmp58_);
-#line 28898 "Photo.c"
- }
- __finally406:
- {
- PhotoRow* _tmp59_;
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = self->row;
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 28907 "Photo.c"
- }
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28927 "Photo.c"
- }
- }
-#line 3966 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (info);
-#line 28932 "Photo.c"
- } else {
- gboolean _tmp60_ = FALSE;
-#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing_photo_id_is_valid (&editable_id)) {
-#line 28937 "Photo.c"
- gboolean _tmp61_;
-#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = is_new_editable;
-#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = !_tmp61_;
-#line 28943 "Photo.c"
- } else {
-#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = FALSE;
-#line 28947 "Photo.c"
- }
-#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp60_) {
-#line 28951 "Photo.c"
- BackingPhotoRow* _tmp62_;
- BackingPhotoID _tmp63_;
- BackingPhotoTable* _tmp64_;
- BackingPhotoTable* _tmp65_;
- BackingPhotoRow* _tmp66_;
-#line 3998 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = backing;
-#line 3998 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = editable_id;
-#line 3998 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_->id = _tmp63_;
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = backing_photo_table_get_instance ();
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = _tmp64_;
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = backing;
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_update (_tmp65_, _tmp66_, &_inner_error_);
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp65_);
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 28989 "Photo.c"
- }
- {
- PhotoRow* _tmp67_;
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = self->row;
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 28997 "Photo.c"
- {
- BackingPhotoRow* _tmp68_;
- time_t _tmp69_;
- BackingPhotoRow* _tmp70_;
- time_t _tmp71_;
- BackingPhotoRow* _tmp72_;
- gint64 _tmp73_;
- BackingPhotoRow* _tmp74_;
- gint64 _tmp75_;
- BackingPhotoRow* _tmp76_;
- BackingPhotoRow* _tmp77_;
- BackingPhotoRow* _tmp78_;
- BackingPhotoRow* _tmp79_;
- BackingPhotoRow* _tmp80_;
- Orientation _tmp81_;
-#line 4001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = self->priv->editable;
-#line 4001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = _tmp68_->timestamp;
-#line 4001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = backing;
-#line 4001 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = _tmp70_->timestamp;
-#line 4001 "/home/jens/Source/shotwell/src/Photo.vala"
- timestamp_changed = _tmp69_ != _tmp71_;
-#line 4002 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = self->priv->editable;
-#line 4002 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = _tmp72_->filesize;
-#line 4002 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = backing;
-#line 4002 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = _tmp74_->filesize;
-#line 4002 "/home/jens/Source/shotwell/src/Photo.vala"
- filesize_changed = _tmp73_ != _tmp75_;
-#line 4004 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = backing;
-#line 4004 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = _backing_photo_row_ref0 (_tmp76_);
-#line 4004 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->priv->editable);
-#line 4004 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable = _tmp77_;
-#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = self->priv->editable;
-#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = _backing_photo_row_ref0 (_tmp78_);
-#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = _tmp79_;
-#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = self->backing_photo_row;
-#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = _tmp80_->original_orientation;
-#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_orientation (self, _tmp81_);
-#line 29055 "Photo.c"
- }
- __finally407:
- {
- PhotoRow* _tmp82_;
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = self->row;
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 29064 "Photo.c"
- }
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29082 "Photo.c"
- }
- }
- }
- }
-#line 4012 "/home/jens/Source/shotwell/src/Photo.vala"
- if (new_reader != NULL) {
-#line 29089 "Photo.c"
- {
- PhotoBackingReaders* _tmp83_;
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = self->priv->readers;
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 29096 "Photo.c"
- {
- PhotoBackingReaders* _tmp84_;
- PhotoFileReader* _tmp85_;
-#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_ = self->priv->readers;
-#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp85_ = _photo_file_adapter_ref0 (new_reader);
-#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp84_->editable);
-#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_->editable = _tmp85_;
-#line 29108 "Photo.c"
- }
- __finally408:
- {
- PhotoBackingReaders* _tmp86_;
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp86_ = self->priv->readers;
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 29117 "Photo.c"
- }
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29135 "Photo.c"
- }
- }
- }
-#line 4018 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!only_attributes) {
-#line 29141 "Photo.c"
- PhotoFileReader* _tmp88_;
- PhotoFileReader* _tmp89_;
-#line 4018 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp88_ = reader;
-#line 4018 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp89_ = old_reader;
-#line 4018 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp87_ = _tmp88_ != _tmp89_;
-#line 29150 "Photo.c"
- } else {
-#line 4018 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp87_ = FALSE;
-#line 29154 "Photo.c"
- }
-#line 4018 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp87_) {
-#line 29158 "Photo.c"
- GFile* _tmp90_ = NULL;
- PhotoFileReader* _tmp91_;
- GFile* _tmp94_ = NULL;
-#line 4019 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_baseline_replaced (self);
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp91_ = old_reader;
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp91_ != NULL) {
-#line 29168 "Photo.c"
- PhotoFileReader* _tmp92_;
- GFile* _tmp93_;
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp92_ = old_reader;
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp93_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp90_);
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp90_ = _tmp93_;
-#line 29179 "Photo.c"
- } else {
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp90_);
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp90_ = NULL;
-#line 29185 "Photo.c"
- }
-#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
- if (new_reader != NULL) {
-#line 29189 "Photo.c"
- GFile* _tmp95_;
-#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp95_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (new_reader, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp94_);
-#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp94_ = _tmp95_;
-#line 29197 "Photo.c"
- } else {
-#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp94_);
-#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp94_ = NULL;
-#line 29203 "Photo.c"
- }
-#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_editable_replaced (self, _tmp90_, _tmp94_);
-#line 4018 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp94_);
-#line 4018 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp90_);
-#line 29211 "Photo.c"
- }
-#line 4024 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp96_ = g_new0 (gchar*, 0 + 1);
-#line 4024 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list = _tmp96_;
-#line 4024 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list_length1 = 0;
-#line 4024 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_list_size_ = alteration_list_length1;
-#line 4025 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp97_ = timestamp_changed;
-#line 4025 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp97_) {
-#line 29225 "Photo.c"
- gchar** _tmp98_;
- gint _tmp98__length1;
- gchar* _tmp99_;
- gchar** _tmp100_;
- gint _tmp100__length1;
- gchar* _tmp101_;
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp98_ = alteration_list;
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp98__length1 = alteration_list_length1;
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp99_ = g_strdup ("metadata:editable-timestamp");
-#line 4026 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add106 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp99_);
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp100_ = alteration_list;
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp100__length1 = alteration_list_length1;
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp101_ = g_strdup ("metadata:baseline-timestamp");
-#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add107 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp101_);
-#line 4029 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_editable_source (self)) {
-#line 29250 "Photo.c"
- gchar** _tmp102_;
- gint _tmp102__length1;
- gchar* _tmp103_;
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp102_ = alteration_list;
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp102__length1 = alteration_list_length1;
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp103_ = g_strdup ("metadata:source-timestamp");
-#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add108 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp103_);
-#line 29262 "Photo.c"
- }
- }
-#line 4033 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp105_ = filesize_changed;
-#line 4033 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp105_) {
-#line 4033 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp104_ = TRUE;
-#line 29271 "Photo.c"
- } else {
-#line 4033 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp104_ = new_reader != NULL;
-#line 29275 "Photo.c"
- }
-#line 4033 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp104_) {
-#line 29279 "Photo.c"
- gchar** _tmp106_;
- gint _tmp106__length1;
- gchar* _tmp107_;
- gchar** _tmp108_;
- gint _tmp108__length1;
- gchar* _tmp109_;
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp106_ = alteration_list;
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp106__length1 = alteration_list_length1;
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp107_ = g_strdup ("image:editable");
-#line 4034 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add109 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp107_);
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp108_ = alteration_list;
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp108__length1 = alteration_list_length1;
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp109_ = g_strdup ("image:baseline");
-#line 4035 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add110 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp109_);
-#line 4037 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_is_editable_source (self)) {
-#line 29304 "Photo.c"
- gchar** _tmp110_;
- gint _tmp110__length1;
- gchar* _tmp111_;
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp110_ = alteration_list;
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp110__length1 = alteration_list_length1;
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp111_ = g_strdup ("image:source");
-#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_array_add111 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp111_);
-#line 29316 "Photo.c"
- }
- }
-#line 4041 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp112_ = alteration_list;
-#line 4041 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp112__length1 = alteration_list_length1;
-#line 4041 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp112__length1 > 0) {
-#line 29325 "Photo.c"
- gchar** _tmp113_;
- gint _tmp113__length1;
- Alteration* _tmp114_;
- Alteration* _tmp115_;
-#line 4042 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp113_ = alteration_list;
-#line 4042 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp113__length1 = alteration_list_length1;
-#line 4042 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp114_ = alteration_new_from_array (_tmp113_, _tmp113__length1);
-#line 4042 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp115_ = _tmp114_;
-#line 4042 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp115_);
-#line 4042 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp115_);
-#line 29342 "Photo.c"
- }
-#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL);
-#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (backing);
-#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (old_reader);
-#line 29356 "Photo.c"
-}
-
-
-static void
-photo_detach_editable (Photo* self,
- gboolean delete_editable,
- gboolean remove_transformations,
- gboolean notify)
-{
- gboolean has_editable = FALSE;
- GFile* editable_file = NULL;
- gboolean _tmp8_;
- gboolean _tmp26_;
- gboolean _tmp28_ = FALSE;
- gboolean _tmp38_ = FALSE;
- gboolean _tmp39_ = FALSE;
- gboolean _tmp40_;
- GError * _inner_error_ = NULL;
-#line 4045 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4046 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_halt_monitoring_editable (self);
-#line 4048 "/home/jens/Source/shotwell/src/Photo.vala"
- has_editable = FALSE;
-#line 4049 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_file = NULL;
-#line 29383 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 29390 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
-#line 4051 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 4051 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 4051 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 29400 "Photo.c"
- PhotoBackingReaders* _tmp3_;
- PhotoFileReader* _tmp4_;
- GFile* _tmp5_;
- PhotoBackingReaders* _tmp6_;
-#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->editable;
-#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable_file);
-#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_file = _tmp5_;
-#line 4053 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = self->priv->readers;
-#line 4053 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (_tmp6_->editable);
-#line 4053 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_->editable = NULL;
-#line 4054 "/home/jens/Source/shotwell/src/Photo.vala"
- has_editable = TRUE;
-#line 29423 "Photo.c"
- }
- }
- __finally409:
- {
- PhotoBackingReaders* _tmp7_;
-#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->priv->readers;
-#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 29433 "Photo.c"
- }
-#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable_file);
-#line 4050 "/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 4050 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29445 "Photo.c"
- }
- }
-#line 4058 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = has_editable;
-#line 4058 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_) {
-#line 29452 "Photo.c"
- BackingPhotoID editable_id = {0};
-#line 4059 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_id_init (&editable_id, BACKING_PHOTO_ID_INVALID);
-#line 29456 "Photo.c"
- {
- {
- PhotoRow* _tmp9_;
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->row;
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 29464 "Photo.c"
- {
- PhotoRow* _tmp10_;
- BackingPhotoID _tmp11_;
- PhotoRow* _tmp15_;
- BackingPhotoRow* _tmp16_;
- BackingPhotoRow* _tmp17_;
-#line 4062 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->row;
-#line 4062 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_->editable_id;
-#line 4062 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_id = _tmp11_;
-#line 4063 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing_photo_id_is_valid (&editable_id)) {
-#line 29479 "Photo.c"
- PhotoTable* _tmp12_;
- PhotoTable* _tmp13_;
- PhotoRow* _tmp14_;
-#line 4064 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_table_get_instance ();
-#line 4064 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 4064 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = self->row;
-#line 4064 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_detach_editable (_tmp13_, _tmp14_, &_inner_error_);
-#line 4064 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp13_);
-#line 4064 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 29495 "Photo.c"
- goto __finally411;
- }
- }
-#line 4065 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->row;
-#line 4065 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_->master;
-#line 4065 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _backing_photo_row_ref0 (_tmp16_);
-#line 4065 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 4065 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = _tmp17_;
-#line 29509 "Photo.c"
- }
- __finally411:
- {
- PhotoRow* _tmp18_;
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = self->row;
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 29518 "Photo.c"
- }
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 29524 "Photo.c"
- goto __catch410_database_error;
- }
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable_file);
-#line 4061 "/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);
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29535 "Photo.c"
- }
- }
- }
- goto __finally410;
- __catch410_database_error:
- {
- GError* err = NULL;
- GError* _tmp19_;
- const gchar* _tmp20_;
-#line 4060 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 4060 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 4068 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = err;
-#line 4068 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _tmp19_->message;
-#line 4068 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:4068: Unable to remove editable from PhotoTable: %s", _tmp20_);
-#line 4060 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 29557 "Photo.c"
- }
- __finally410:
-#line 4060 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4060 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable_file);
-#line 4060 "/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 4060 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4060 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29570 "Photo.c"
- }
- {
-#line 4072 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing_photo_id_is_valid (&editable_id)) {
-#line 29575 "Photo.c"
- BackingPhotoTable* _tmp21_;
- BackingPhotoTable* _tmp22_;
- BackingPhotoID _tmp23_;
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = backing_photo_table_get_instance ();
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp21_;
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = editable_id;
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_remove (_tmp22_, &_tmp23_, &_inner_error_);
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp22_);
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 29593 "Photo.c"
- goto __catch412_database_error;
- }
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable_file);
-#line 4073 "/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);
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4073 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29604 "Photo.c"
- }
- }
- }
- goto __finally412;
- __catch412_database_error:
- {
- GError* err = NULL;
- GError* _tmp24_;
- const gchar* _tmp25_;
-#line 4071 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 4071 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = err;
-#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp24_->message;
-#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:4075: Unable to remove editable from BackingPhotoTable: %s", _tmp25_);
-#line 4071 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 29626 "Photo.c"
- }
- __finally412:
-#line 4071 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4071 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable_file);
-#line 4071 "/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 4071 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4071 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29639 "Photo.c"
- }
- }
-#line 4079 "/home/jens/Source/shotwell/src/Photo.vala"
- if (remove_transformations) {
-#line 4080 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_internal_remove_all_transformations (self, FALSE);
-#line 29646 "Photo.c"
- }
-#line 4082 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = has_editable;
-#line 4082 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp26_) {
-#line 29652 "Photo.c"
- GFile* _tmp27_;
-#line 4083 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_baseline_replaced (self);
-#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = editable_file;
-#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_notify_editable_replaced (self, _tmp27_, NULL);
-#line 29660 "Photo.c"
- }
-#line 4087 "/home/jens/Source/shotwell/src/Photo.vala"
- if (delete_editable) {
-#line 29664 "Photo.c"
- GFile* _tmp29_;
-#line 4087 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = editable_file;
-#line 4087 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp29_ != NULL;
-#line 29670 "Photo.c"
- } else {
-#line 4087 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = FALSE;
-#line 29674 "Photo.c"
- }
-#line 4087 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp28_) {
-#line 29678 "Photo.c"
- {
- GFile* _tmp30_;
-#line 4089 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = editable_file;
-#line 4089 "/home/jens/Source/shotwell/src/Photo.vala"
- g_file_trash (_tmp30_, NULL, &_inner_error_);
-#line 4089 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 29687 "Photo.c"
- goto __catch413_g_error;
- }
- }
- goto __finally413;
- __catch413_g_error:
- {
- GError* err = NULL;
- GFile* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- GError* _tmp36_;
- const gchar* _tmp37_;
-#line 4088 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 4088 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = editable_file;
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = g_file_get_path (_tmp31_);
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_;
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _tmp34_;
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = err;
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _tmp36_->message;
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:4091: Unable to trash editable %s for %s: %s", _tmp33_, _tmp35_, _tmp37_);
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp35_);
-#line 4091 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp33_);
-#line 4088 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 29728 "Photo.c"
- }
- __finally413:
-#line 4088 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4088 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable_file);
-#line 4088 "/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 4088 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4088 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29741 "Photo.c"
- }
- }
-#line 4096 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = has_editable;
-#line 4096 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp40_) {
-#line 4096 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = TRUE;
-#line 29750 "Photo.c"
- } else {
-#line 4096 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = remove_transformations;
-#line 29754 "Photo.c"
- }
-#line 4096 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp39_) {
-#line 4096 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = notify;
-#line 29760 "Photo.c"
- } else {
-#line 4096 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = FALSE;
-#line 29764 "Photo.c"
- }
-#line 4096 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp38_) {
-#line 29768 "Photo.c"
- Alteration* _tmp41_;
- Alteration* _tmp42_;
-#line 4097 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = alteration_new ("image", "revert");
-#line 4097 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = _tmp41_;
-#line 4097 "/home/jens/Source/shotwell/src/Photo.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp42_);
-#line 4097 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp42_);
-#line 29779 "Photo.c"
- }
-#line 4045 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable_file);
-#line 29783 "Photo.c"
-}
-
-
-static void
-_photo_on_reimport_editable_one_shot_callback (gpointer self)
-{
-#line 4119 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_on_reimport_editable ((Photo*) self);
-#line 29792 "Photo.c"
-}
-
-
-static void
-_photo_on_update_editable_attributes_one_shot_callback (gpointer self)
-{
-#line 4128 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_on_update_editable_attributes ((Photo*) self);
-#line 29801 "Photo.c"
-}
-
-
-static void
-_photo_on_remove_editable_one_shot_callback (gpointer self)
-{
-#line 4137 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_on_remove_editable ((Photo*) self);
-#line 29810 "Photo.c"
-}
-
-
-static void
-photo_on_editable_file_changed (Photo* self,
- GFile* file,
- GFile* other_file,
- GFileMonitorEvent event)
-{
- GEnumValue* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 4100 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4100 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 4100 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((other_file == NULL) || G_IS_FILE (other_file));
-#line 29830 "Photo.c"
- {
- PhotoBackingReaders* _tmp0_;
-#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->readers;
-#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_readers);
-#line 29837 "Photo.c"
- {
- PhotoBackingReaders* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoBackingReaders* _tmp3_;
- PhotoFileReader* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
- gboolean _tmp7_;
-#line 4103 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->readers;
-#line 4103 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_->editable;
-#line 4103 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp2_ != NULL, "readers.editable != null");
-#line 4105 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->readers;
-#line 4105 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_->editable;
-#line 4105 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 4105 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_;
-#line 4105 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = !g_file_equal (file, _tmp6_);
-#line 4105 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp6_);
-#line 4105 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_) {
-#line 29866 "Photo.c"
- {
- PhotoBackingReaders* _tmp8_;
-#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = self->priv->readers;
-#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 29873 "Photo.c"
- }
-#line 4109 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29877 "Photo.c"
- }
- }
- __finally414:
- {
- PhotoBackingReaders* _tmp9_;
-#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->priv->readers;
-#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_readers);
-#line 29887 "Photo.c"
- }
-#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4102 "/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 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 29897 "Photo.c"
- }
- }
-#line 4113 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), event);
-#line 4113 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = g_file_get_path (file);
-#line 4113 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_;
-#line 4113 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:4113: EDITABLE %s: %s", (_tmp10_ != NULL) ? _tmp10_->value_name : NULL, _tmp12_);
-#line 4113 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp12_);
-#line 4115 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (event) {
-#line 4115 "/home/jens/Source/shotwell/src/Photo.vala"
- case G_FILE_MONITOR_EVENT_CHANGED:
-#line 4115 "/home/jens/Source/shotwell/src/Photo.vala"
- case G_FILE_MONITOR_EVENT_CREATED:
-#line 29916 "Photo.c"
- {
- OneShotScheduler* _tmp13_;
- OneShotScheduler* _tmp15_;
-#line 4118 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->priv->reimport_editable_scheduler;
-#line 4118 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp13_ == NULL) {
-#line 29924 "Photo.c"
- OneShotScheduler* _tmp14_;
-#line 4119 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = one_shot_scheduler_new ("Photo.reimport_editable", _photo_on_reimport_editable_one_shot_callback, self);
-#line 4119 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->reimport_editable_scheduler);
-#line 4119 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->reimport_editable_scheduler = _tmp14_;
-#line 29932 "Photo.c"
- }
-#line 4123 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->priv->reimport_editable_scheduler;
-#line 4123 "/home/jens/Source/shotwell/src/Photo.vala"
- one_shot_scheduler_after_timeout (_tmp15_, (guint) 1000, TRUE);
-#line 4124 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 29940 "Photo.c"
- }
-#line 4115 "/home/jens/Source/shotwell/src/Photo.vala"
- case G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED:
-#line 29944 "Photo.c"
- {
- OneShotScheduler* _tmp16_;
- OneShotScheduler* _tmp18_;
-#line 4127 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = self->priv->update_editable_attributes_scheduler;
-#line 4127 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp16_ == NULL) {
-#line 29952 "Photo.c"
- OneShotScheduler* _tmp17_;
-#line 4128 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = one_shot_scheduler_new ("Photo.update_editable_attributes", _photo_on_update_editable_attributes_one_shot_callback, self);
-#line 4128 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->update_editable_attributes_scheduler);
-#line 4128 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->update_editable_attributes_scheduler = _tmp17_;
-#line 29960 "Photo.c"
- }
-#line 4132 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = self->priv->update_editable_attributes_scheduler;
-#line 4132 "/home/jens/Source/shotwell/src/Photo.vala"
- one_shot_scheduler_after_timeout (_tmp18_, (guint) 1000, TRUE);
-#line 4133 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 29968 "Photo.c"
- }
-#line 4115 "/home/jens/Source/shotwell/src/Photo.vala"
- case G_FILE_MONITOR_EVENT_DELETED:
-#line 29972 "Photo.c"
- {
- OneShotScheduler* _tmp19_;
- OneShotScheduler* _tmp21_;
-#line 4136 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = self->priv->remove_editable_scheduler;
-#line 4136 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp19_ == NULL) {
-#line 29980 "Photo.c"
- OneShotScheduler* _tmp20_;
-#line 4137 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = one_shot_scheduler_new ("Photo.remove_editable", _photo_on_remove_editable_one_shot_callback, self);
-#line 4137 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->remove_editable_scheduler);
-#line 4137 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->remove_editable_scheduler = _tmp20_;
-#line 29988 "Photo.c"
- }
-#line 4141 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = self->priv->remove_editable_scheduler;
-#line 4141 "/home/jens/Source/shotwell/src/Photo.vala"
- one_shot_scheduler_after_timeout (_tmp21_, (guint) 3000, TRUE);
-#line 4142 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 29996 "Photo.c"
- }
- default:
-#line 4115 "/home/jens/Source/shotwell/src/Photo.vala"
- case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
-#line 30001 "Photo.c"
- {
-#line 4147 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 30005 "Photo.c"
- }
- }
-#line 4152 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_discard_prefetched (self);
-#line 30010 "Photo.c"
-}
-
-
-static void
-photo_on_reimport_editable (Photo* self)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 4155 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4157 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_discard_prefetched (self);
-#line 4159 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 4159 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4159 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:4159: Reimporting editable for %s", _tmp1_);
-#line 4159 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp1_);
-#line 30032 "Photo.c"
- {
-#line 4161 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_editable (self, &_inner_error_);
-#line 4161 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 30038 "Photo.c"
- goto __catch415_g_error;
- }
- }
- goto __finally415;
- __catch415_g_error:
- {
- GError* err = NULL;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GError* _tmp4_;
- const gchar* _tmp5_;
-#line 4160 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 4160 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = err;
-#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_->message;
-#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:4163: Unable to reimport photo %s changed by external edito" \
-"r: %s", _tmp3_, _tmp5_);
-#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp3_);
-#line 4160 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 30068 "Photo.c"
- }
- __finally415:
-#line 4160 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4160 "/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 4160 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4160 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 30079 "Photo.c"
- }
-}
-
-
-static void
-photo_on_update_editable_attributes (Photo* self)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 4168 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4169 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 4169 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4169 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:4169: Updating editable attributes for %s", _tmp1_);
-#line 4169 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp1_);
-#line 30100 "Photo.c"
- {
-#line 4171 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_update_editable_attributes (self, &_inner_error_);
-#line 4171 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 30106 "Photo.c"
- goto __catch416_g_error;
- }
- }
- goto __finally416;
- __catch416_g_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
- const gchar* _tmp3_;
-#line 4170 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 4170 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 4173 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = err;
-#line 4173 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->message;
-#line 4173 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:4173: Unable to update editable attributes: %s", _tmp3_);
-#line 4170 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 30128 "Photo.c"
- }
- __finally416:
-#line 4170 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4170 "/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 4170 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4170 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 30139 "Photo.c"
- }
-}
-
-
-static void
-photo_on_remove_editable (Photo* self)
-{
- PhotoFileReader* reader = NULL;
- PhotoFileReader* _tmp0_;
- PhotoFileReader* _tmp1_;
- GFile* file = NULL;
- PhotoFileReader* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 4177 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4178 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_editable_reader (self);
-#line 4178 "/home/jens/Source/shotwell/src/Photo.vala"
- reader = _tmp0_;
-#line 4179 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = reader;
-#line 4179 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 4180 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 4180 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 30170 "Photo.c"
- }
-#line 4182 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = reader;
-#line 4182 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 4182 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp3_;
-#line 4183 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = file;
-#line 4183 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_file_query_exists (_tmp4_, NULL)) {
-#line 30182 "Photo.c"
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 4184 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 4184 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_;
-#line 4184 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:4184: Not removing editable for %s: file exists", _tmp6_);
-#line 4184 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp6_);
-#line 4186 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 4186 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 4186 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 30199 "Photo.c"
- }
-#line 4189 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 4189 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_;
-#line 4189 "/home/jens/Source/shotwell/src/Photo.vala"
- g_debug ("Photo.vala:4189: Removing editable for %s: file no longer exists", _tmp8_);
-#line 4189 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp8_);
-#line 4190 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_detach_editable (self, FALSE, TRUE, TRUE);
-#line 4177 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 4177 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (reader);
-#line 30215 "Photo.c"
-}
-
-
-void
-photo_get_original_dimensions (Photo* self,
- Dimensions* result)
-{
- Dimensions dim = {0};
- Dimensions _tmp0_ = {0};
- Orientation orientation = 0;
- Dimensions _tmp1_;
- Dimensions _tmp2_ = {0};
-#line 4198 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4199 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_raw_dimensions (self, &_tmp0_);
-#line 4199 "/home/jens/Source/shotwell/src/Photo.vala"
- dim = _tmp0_;
-#line 4200 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation = photo_get_orientation (self);
-#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = dim;
-#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_rotate_dimensions (orientation, &_tmp1_, &_tmp2_);
-#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp2_;
-#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 30244 "Photo.c"
-}
-
-
-void
-photo_get_master_dimensions (Photo* self,
- Dimensions* result)
-{
- Dimensions _tmp0_ = {0};
- Dimensions _tmp1_ = {0};
-#line 4206 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4207 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_raw_dimensions (self, &_tmp0_);
-#line 4207 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_rotate_dimensions (photo_get_original_orientation (self), &_tmp0_, &_tmp1_);
-#line 4207 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp1_;
-#line 4207 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 30264 "Photo.c"
-}
-
-
-gboolean
-photo_get_crop (Photo* self,
- Box* crop,
- PhotoException exceptions)
-{
- Box _vala_crop = {0};
- gboolean result = FALSE;
- Box raw = {0};
- Box _tmp0_ = {0};
- gboolean _tmp1_;
- Dimensions dim = {0};
- Dimensions _tmp2_ = {0};
- Orientation orientation = 0;
-#line 4211 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 4213 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_raw_crop (self, &_tmp0_);
-#line 4213 "/home/jens/Source/shotwell/src/Photo.vala"
- raw = _tmp0_;
-#line 4213 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp1_) {
-#line 4214 "/home/jens/Source/shotwell/src/Photo.vala"
- box_init (&_vala_crop, 0, 0, 0, 0);
-#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
- if (crop) {
-#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
- *crop = _vala_crop;
-#line 30297 "Photo.c"
- }
-#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 30301 "Photo.c"
- }
-#line 4219 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_ORIENTATION, &_tmp2_);
-#line 4219 "/home/jens/Source/shotwell/src/Photo.vala"
- dim = _tmp2_;
-#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation = photo_get_orientation (self);
-#line 4222 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) {
-#line 30311 "Photo.c"
- Orientation _tmp3_;
- Dimensions _tmp4_;
- Box _tmp5_;
- Box _tmp6_ = {0};
-#line 4223 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = orientation;
-#line 4223 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = dim;
-#line 4223 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = raw;
-#line 4223 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_rotate_box (_tmp3_, &_tmp4_, &_tmp5_, &_tmp6_);
-#line 4223 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_crop = _tmp6_;
-#line 30326 "Photo.c"
- } else {
- Box _tmp7_;
-#line 4225 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = raw;
-#line 4225 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_crop = _tmp7_;
-#line 30333 "Photo.c"
- }
-#line 4227 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 4227 "/home/jens/Source/shotwell/src/Photo.vala"
- if (crop) {
-#line 4227 "/home/jens/Source/shotwell/src/Photo.vala"
- *crop = _vala_crop;
-#line 30341 "Photo.c"
- }
-#line 4227 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 30345 "Photo.c"
-}
-
-
-void
-photo_set_crop (Photo* self,
- Box* crop)
-{
- Dimensions dim = {0};
- Dimensions _tmp0_ = {0};
- Orientation orientation = 0;
- Box derotated = {0};
- Dimensions _tmp1_;
- Box _tmp2_;
- Box _tmp3_ = {0};
- Box _tmp4_;
- gint _tmp5_;
- Dimensions _tmp6_;
- gint _tmp7_;
- Box _tmp8_;
- gint _tmp9_;
- Box _tmp10_;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- Box _tmp14_;
- gint _tmp15_;
- Dimensions _tmp16_;
- gint _tmp17_;
- Box _tmp18_;
- gint _tmp19_;
- Box _tmp20_;
- gint _tmp21_;
- Dimensions _tmp22_;
- gint _tmp23_;
- Box _tmp24_;
-#line 4231 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4231 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (crop != NULL);
-#line 4232 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_ORIENTATION, &_tmp0_);
-#line 4232 "/home/jens/Source/shotwell/src/Photo.vala"
- dim = _tmp0_;
-#line 4233 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation = photo_get_orientation (self);
-#line 4235 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = dim;
-#line 4235 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = *crop;
-#line 4235 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_derotate_box (orientation, &_tmp1_, &_tmp2_, &_tmp3_);
-#line 4235 "/home/jens/Source/shotwell/src/Photo.vala"
- derotated = _tmp3_;
-#line 4237 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = derotated;
-#line 4237 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_.left;
-#line 4237 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = dim;
-#line 4237 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_.width;
-#line 4237 "/home/jens/Source/shotwell/src/Photo.vala"
- derotated.left = CLAMP (_tmp5_, 0, _tmp7_ - 2);
-#line 4238 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = derotated;
-#line 4238 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_.right;
-#line 4238 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = derotated;
-#line 4238 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_.left;
-#line 4238 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = dim;
-#line 4238 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_.width;
-#line 4238 "/home/jens/Source/shotwell/src/Photo.vala"
- derotated.right = CLAMP (_tmp9_, _tmp11_, _tmp13_ - 1);
-#line 4240 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = derotated;
-#line 4240 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_.top;
-#line 4240 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = dim;
-#line 4240 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_.height;
-#line 4240 "/home/jens/Source/shotwell/src/Photo.vala"
- derotated.top = CLAMP (_tmp15_, 0, _tmp17_ - 2);
-#line 4241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = derotated;
-#line 4241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_.bottom;
-#line 4241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = derotated;
-#line 4241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_.top;
-#line 4241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = dim;
-#line 4241 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_.height;
-#line 4241 "/home/jens/Source/shotwell/src/Photo.vala"
- derotated.bottom = CLAMP (_tmp19_, _tmp21_, _tmp23_ - 1);
-#line 4243 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = derotated;
-#line 4243 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_raw_crop (self, &_tmp24_);
-#line 30451 "Photo.c"
-}
-
-
-gboolean
-photo_get_straighten (Photo* self,
- gdouble* theta)
-{
- gdouble _vala_theta = 0.0;
- gboolean result = FALSE;
- gdouble _tmp0_ = 0.0;
- gboolean _tmp1_;
-#line 4246 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_raw_straighten (self, &_tmp0_);
-#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_theta = _tmp0_;
-#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp1_) {
-#line 4248 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 4248 "/home/jens/Source/shotwell/src/Photo.vala"
- if (theta) {
-#line 4248 "/home/jens/Source/shotwell/src/Photo.vala"
- *theta = _vala_theta;
-#line 30477 "Photo.c"
- }
-#line 4248 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 30481 "Photo.c"
- }
-#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
- if (theta) {
-#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
- *theta = _vala_theta;
-#line 30489 "Photo.c"
- }
-#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 30493 "Photo.c"
-}
-
-
-void
-photo_set_straighten (Photo* self,
- gdouble theta)
-{
-#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4254 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_raw_straighten (self, theta);
-#line 30505 "Photo.c"
-}
-
-
-static GdkPixbuf*
-photo_do_redeye (Photo* self,
- GdkPixbuf* pixbuf,
- EditingToolsRedeyeInstance* inst)
-{
- GdkPixbuf* result = NULL;
- gdouble r = 0.0;
- EditingToolsRedeyeInstance _tmp0_;
- gint _tmp1_;
- gint* x_insets_first_quadrant = NULL;
- EditingToolsRedeyeInstance _tmp2_;
- gint _tmp3_;
- gint* _tmp4_;
- gint x_insets_first_quadrant_length1;
- gint _x_insets_first_quadrant_size_;
- gint i = 0;
- gint x_bounds_min = 0;
- EditingToolsRedeyeInstance _tmp20_;
- GdkPoint _tmp21_;
- gint _tmp22_;
- EditingToolsRedeyeInstance _tmp23_;
- gint _tmp24_;
- gint x_bounds_max = 0;
- EditingToolsRedeyeInstance _tmp25_;
- GdkPoint _tmp26_;
- gint _tmp27_;
- EditingToolsRedeyeInstance _tmp28_;
- gint _tmp29_;
- gint ymin = 0;
- EditingToolsRedeyeInstance _tmp30_;
- GdkPoint _tmp31_;
- gint _tmp32_;
- EditingToolsRedeyeInstance _tmp33_;
- gint _tmp34_;
- gint _tmp35_ = 0;
- gint _tmp36_;
- gint ymax = 0;
- EditingToolsRedeyeInstance _tmp38_;
- GdkPoint _tmp39_;
- gint _tmp40_;
- gint _tmp41_ = 0;
- gint _tmp42_;
- gint _tmp43_;
- gint _tmp44_;
- gint inset_index = 0;
- EditingToolsRedeyeInstance _tmp81_;
- GdkPoint _tmp82_;
- gint _tmp83_;
- EditingToolsRedeyeInstance _tmp84_;
- GdkPoint _tmp85_;
- gint _tmp86_;
- EditingToolsRedeyeInstance _tmp87_;
- gint _tmp88_;
- gint* _tmp89_;
- gint _tmp89__length1;
- GdkPixbuf* _tmp123_;
-#line 4257 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 4257 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 4257 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (inst != NULL, NULL);
-#line 4267 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = *inst;
-#line 4267 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_.radius;
-#line 4267 "/home/jens/Source/shotwell/src/Photo.vala"
- r = (gdouble) _tmp1_;
-#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = *inst;
-#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_.radius;
-#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = g_new0 (gint, _tmp3_ + 1);
-#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
- x_insets_first_quadrant = _tmp4_;
-#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
- x_insets_first_quadrant_length1 = _tmp3_ + 1;
-#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
- _x_insets_first_quadrant_size_ = x_insets_first_quadrant_length1;
-#line 4270 "/home/jens/Source/shotwell/src/Photo.vala"
- i = 0;
-#line 30591 "Photo.c"
- {
- gdouble y = 0.0;
- gdouble _tmp5_;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = r;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- y = _tmp5_;
-#line 30599 "Photo.c"
- {
- gboolean _tmp6_ = FALSE;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = TRUE;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 30606 "Photo.c"
- gdouble _tmp8_;
- gdouble theta = 0.0;
- gdouble _tmp9_;
- gdouble _tmp10_;
- gint x = 0;
- gdouble _tmp11_;
- gdouble _tmp12_;
- gint* _tmp13_;
- gint _tmp13__length1;
- gint _tmp14_;
- EditingToolsRedeyeInstance _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp6_) {
-#line 30624 "Photo.c"
- gdouble _tmp7_;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = y;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- y = _tmp7_ - 1.0;
-#line 30630 "Photo.c"
- }
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = FALSE;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = y;
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp8_ >= 0.0)) {
-#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 30640 "Photo.c"
- }
-#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = y;
-#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = r;
-#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
- theta = asin (_tmp9_ / _tmp10_);
-#line 4273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = r;
-#line 4273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = theta;
-#line 4273 "/home/jens/Source/shotwell/src/Photo.vala"
- x = (gint) ((_tmp11_ * cos (_tmp12_)) + 0.5);
-#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = x_insets_first_quadrant;
-#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13__length1 = x_insets_first_quadrant_length1;
-#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = i;
-#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = *inst;
-#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = _tmp15_.radius;
-#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = x;
-#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_[_tmp14_] = _tmp16_ - _tmp17_;
-#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp13_[_tmp14_];
-#line 4276 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = i;
-#line 4276 "/home/jens/Source/shotwell/src/Photo.vala"
- i = _tmp19_ + 1;
-#line 30674 "Photo.c"
- }
- }
- }
-#line 4279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = *inst;
-#line 4279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_.center;
-#line 4279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp21_.x;
-#line 4279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = *inst;
-#line 4279 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _tmp23_.radius;
-#line 4279 "/home/jens/Source/shotwell/src/Photo.vala"
- x_bounds_min = _tmp22_ - _tmp24_;
-#line 4280 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = *inst;
-#line 4280 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _tmp25_.center;
-#line 4280 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp26_.x;
-#line 4280 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = *inst;
-#line 4280 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _tmp28_.radius;
-#line 4280 "/home/jens/Source/shotwell/src/Photo.vala"
- x_bounds_max = _tmp27_ + _tmp29_;
-#line 4281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = *inst;
-#line 4281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_.center;
-#line 4281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = _tmp31_.y;
-#line 4281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = *inst;
-#line 4281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_.radius;
-#line 4281 "/home/jens/Source/shotwell/src/Photo.vala"
- ymin = _tmp32_ - _tmp34_;
-#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = ymin;
-#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp36_ < 0) {
-#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = 0;
-#line 30720 "Photo.c"
- } else {
- gint _tmp37_;
-#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = ymin;
-#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _tmp37_;
-#line 30727 "Photo.c"
- }
-#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
- ymin = _tmp35_;
-#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = *inst;
-#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = _tmp38_.center;
-#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = _tmp39_.y;
-#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
- ymax = _tmp40_;
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = ymax;
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = gdk_pixbuf_get_height (pixbuf);
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_;
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp42_ > (_tmp44_ - 1)) {
-#line 30747 "Photo.c"
- gint _tmp45_;
- gint _tmp46_;
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = gdk_pixbuf_get_height (pixbuf);
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = _tmp45_;
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _tmp46_ - 1;
-#line 30756 "Photo.c"
- } else {
- gint _tmp47_;
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = ymax;
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _tmp47_;
-#line 30763 "Photo.c"
- }
-#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
- ymax = _tmp41_;
-#line 4288 "/home/jens/Source/shotwell/src/Photo.vala"
- inset_index = 0;
-#line 30769 "Photo.c"
- {
- gint y_it = 0;
- gint _tmp48_;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = ymin;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- y_it = _tmp48_;
-#line 30777 "Photo.c"
- {
- gboolean _tmp49_ = FALSE;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = TRUE;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 30784 "Photo.c"
- gint _tmp51_;
- gint _tmp52_;
- gint xmin = 0;
- gint _tmp53_;
- gint* _tmp54_;
- gint _tmp54__length1;
- gint _tmp55_;
- gint _tmp56_;
- gint _tmp57_ = 0;
- gint _tmp58_;
- gint xmax = 0;
- gint _tmp60_;
- gint* _tmp61_;
- gint _tmp61__length1;
- gint _tmp62_;
- gint _tmp63_;
- gint _tmp64_ = 0;
- gint _tmp65_;
- gint _tmp66_;
- gint _tmp67_;
- gint _tmp80_;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp49_) {
-#line 30808 "Photo.c"
- gint _tmp50_;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = y_it;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- y_it = _tmp50_ + 1;
-#line 30814 "Photo.c"
- }
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = FALSE;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = y_it;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = ymax;
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp51_ <= _tmp52_)) {
-#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 30826 "Photo.c"
- }
-#line 4290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = x_bounds_min;
-#line 4290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = x_insets_first_quadrant;
-#line 4290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54__length1 = x_insets_first_quadrant_length1;
-#line 4290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = inset_index;
-#line 4290 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = _tmp54_[_tmp55_];
-#line 4290 "/home/jens/Source/shotwell/src/Photo.vala"
- xmin = _tmp53_ + _tmp56_;
-#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = xmin;
-#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp58_ < 0) {
-#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = 0;
-#line 30846 "Photo.c"
- } else {
- gint _tmp59_;
-#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = xmin;
-#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = _tmp59_;
-#line 30853 "Photo.c"
- }
-#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
- xmin = _tmp57_;
-#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = x_bounds_max;
-#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = x_insets_first_quadrant;
-#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61__length1 = x_insets_first_quadrant_length1;
-#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = inset_index;
-#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = _tmp61_[_tmp62_];
-#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
- xmax = _tmp60_ - _tmp63_;
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = xmax;
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = gdk_pixbuf_get_width (pixbuf);
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = _tmp66_;
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp65_ > (_tmp67_ - 1)) {
-#line 30877 "Photo.c"
- gint _tmp68_;
- gint _tmp69_;
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = gdk_pixbuf_get_width (pixbuf);
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = _tmp68_;
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = _tmp69_ - 1;
-#line 30886 "Photo.c"
- } else {
- gint _tmp70_;
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = xmax;
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = _tmp70_;
-#line 30893 "Photo.c"
- }
-#line 4293 "/home/jens/Source/shotwell/src/Photo.vala"
- xmax = _tmp64_;
-#line 30897 "Photo.c"
- {
- gint x_it = 0;
- gint _tmp71_;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = xmin;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- x_it = _tmp71_;
-#line 30905 "Photo.c"
- {
- gboolean _tmp72_ = FALSE;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = TRUE;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 30912 "Photo.c"
- gint _tmp74_;
- gint _tmp75_;
- gint _tmp76_;
- gint _tmp77_;
- GdkPixbuf* _tmp78_;
- GdkPixbuf* _tmp79_;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp72_) {
-#line 30921 "Photo.c"
- gint _tmp73_;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = x_it;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- x_it = _tmp73_ + 1;
-#line 30927 "Photo.c"
- }
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = FALSE;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = x_it;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = xmax;
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp74_ <= _tmp75_)) {
-#line 4295 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 30939 "Photo.c"
- }
-#line 4296 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = x_it;
-#line 4296 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = y_it;
-#line 4296 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = photo_red_reduce_pixel (self, pixbuf, _tmp76_, _tmp77_);
-#line 4296 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = _tmp78_;
-#line 4296 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp79_);
-#line 30951 "Photo.c"
- }
- }
- }
-#line 4298 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = inset_index;
-#line 4298 "/home/jens/Source/shotwell/src/Photo.vala"
- inset_index = _tmp80_ + 1;
-#line 30959 "Photo.c"
- }
- }
- }
-#line 4303 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = *inst;
-#line 4303 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = _tmp81_.center;
-#line 4303 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = _tmp82_.y;
-#line 4303 "/home/jens/Source/shotwell/src/Photo.vala"
- ymin = _tmp83_;
-#line 4304 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_ = *inst;
-#line 4304 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp85_ = _tmp84_.center;
-#line 4304 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp86_ = _tmp85_.y;
-#line 4304 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp87_ = *inst;
-#line 4304 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp88_ = _tmp87_.radius;
-#line 4304 "/home/jens/Source/shotwell/src/Photo.vala"
- ymax = _tmp86_ + _tmp88_;
-#line 4305 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp89_ = x_insets_first_quadrant;
-#line 4305 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp89__length1 = x_insets_first_quadrant_length1;
-#line 4305 "/home/jens/Source/shotwell/src/Photo.vala"
- inset_index = _tmp89__length1 - 1;
-#line 30989 "Photo.c"
- {
- gint y_it = 0;
- gint _tmp90_;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp90_ = ymin;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- y_it = _tmp90_;
-#line 30997 "Photo.c"
- {
- gboolean _tmp91_ = FALSE;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp91_ = TRUE;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 31004 "Photo.c"
- gint _tmp93_;
- gint _tmp94_;
- gint xmin = 0;
- gint _tmp95_;
- gint* _tmp96_;
- gint _tmp96__length1;
- gint _tmp97_;
- gint _tmp98_;
- gint _tmp99_ = 0;
- gint _tmp100_;
- gint xmax = 0;
- gint _tmp102_;
- gint* _tmp103_;
- gint _tmp103__length1;
- gint _tmp104_;
- gint _tmp105_;
- gint _tmp106_ = 0;
- gint _tmp107_;
- gint _tmp108_;
- gint _tmp109_;
- gint _tmp122_;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp91_) {
-#line 31028 "Photo.c"
- gint _tmp92_;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp92_ = y_it;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- y_it = _tmp92_ + 1;
-#line 31034 "Photo.c"
- }
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp91_ = FALSE;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp93_ = y_it;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp94_ = ymax;
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp93_ <= _tmp94_)) {
-#line 4306 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 31046 "Photo.c"
- }
-#line 4307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp95_ = x_bounds_min;
-#line 4307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp96_ = x_insets_first_quadrant;
-#line 4307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp96__length1 = x_insets_first_quadrant_length1;
-#line 4307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp97_ = inset_index;
-#line 4307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp98_ = _tmp96_[_tmp97_];
-#line 4307 "/home/jens/Source/shotwell/src/Photo.vala"
- xmin = _tmp95_ + _tmp98_;
-#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp100_ = xmin;
-#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp100_ < 0) {
-#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp99_ = 0;
-#line 31066 "Photo.c"
- } else {
- gint _tmp101_;
-#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp101_ = xmin;
-#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp99_ = _tmp101_;
-#line 31073 "Photo.c"
- }
-#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
- xmin = _tmp99_;
-#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp102_ = x_bounds_max;
-#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp103_ = x_insets_first_quadrant;
-#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp103__length1 = x_insets_first_quadrant_length1;
-#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp104_ = inset_index;
-#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp105_ = _tmp103_[_tmp104_];
-#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
- xmax = _tmp102_ - _tmp105_;
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp107_ = xmax;
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp108_ = gdk_pixbuf_get_width (pixbuf);
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp109_ = _tmp108_;
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp107_ > (_tmp109_ - 1)) {
-#line 31097 "Photo.c"
- gint _tmp110_;
- gint _tmp111_;
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp110_ = gdk_pixbuf_get_width (pixbuf);
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp111_ = _tmp110_;
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp106_ = _tmp111_ - 1;
-#line 31106 "Photo.c"
- } else {
- gint _tmp112_;
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp112_ = xmax;
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp106_ = _tmp112_;
-#line 31113 "Photo.c"
- }
-#line 4310 "/home/jens/Source/shotwell/src/Photo.vala"
- xmax = _tmp106_;
-#line 31117 "Photo.c"
- {
- gint x_it = 0;
- gint _tmp113_;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp113_ = xmin;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- x_it = _tmp113_;
-#line 31125 "Photo.c"
- {
- gboolean _tmp114_ = FALSE;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp114_ = TRUE;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 31132 "Photo.c"
- gint _tmp116_;
- gint _tmp117_;
- gint _tmp118_;
- gint _tmp119_;
- GdkPixbuf* _tmp120_;
- GdkPixbuf* _tmp121_;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp114_) {
-#line 31141 "Photo.c"
- gint _tmp115_;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp115_ = x_it;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- x_it = _tmp115_ + 1;
-#line 31147 "Photo.c"
- }
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp114_ = FALSE;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp116_ = x_it;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp117_ = xmax;
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp116_ <= _tmp117_)) {
-#line 4312 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 31159 "Photo.c"
- }
-#line 4313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp118_ = x_it;
-#line 4313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp119_ = y_it;
-#line 4313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp120_ = photo_red_reduce_pixel (self, pixbuf, _tmp118_, _tmp119_);
-#line 4313 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp121_ = _tmp120_;
-#line 4313 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp121_);
-#line 31171 "Photo.c"
- }
- }
- }
-#line 4315 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp122_ = inset_index;
-#line 4315 "/home/jens/Source/shotwell/src/Photo.vala"
- inset_index = _tmp122_ - 1;
-#line 31179 "Photo.c"
- }
- }
- }
-#line 4318 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp123_ = _g_object_ref0 (pixbuf);
-#line 4318 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp123_;
-#line 4318 "/home/jens/Source/shotwell/src/Photo.vala"
- x_insets_first_quadrant = (g_free (x_insets_first_quadrant), NULL);
-#line 4318 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 31191 "Photo.c"
-}
-
-
-static GdkPixbuf*
-photo_red_reduce_pixel (Photo* self,
- GdkPixbuf* pixbuf,
- gint x,
- gint y)
-{
- GdkPixbuf* result = NULL;
- gint px_start_byte_offset = 0;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- GdkPixbuf* _tmp20_;
-#line 4321 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 4321 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 4322 "/home/jens/Source/shotwell/src/Photo.vala"
- px_start_byte_offset = (y * gdk_pixbuf_get_rowstride (pixbuf)) + (x * gdk_pixbuf_get_n_channels (pixbuf));
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- if (x >= 0) {
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = y >= 0;
-#line 31217 "Photo.c"
- } else {
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = FALSE;
-#line 31221 "Photo.c"
- }
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 31225 "Photo.c"
- gint _tmp3_;
- gint _tmp4_;
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gdk_pixbuf_get_width (pixbuf);
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = x < _tmp4_;
-#line 31234 "Photo.c"
- } else {
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = FALSE;
-#line 31238 "Photo.c"
- }
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_) {
-#line 31242 "Photo.c"
- gint _tmp5_;
- gint _tmp6_;
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = gdk_pixbuf_get_height (pixbuf);
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_;
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = y < _tmp6_;
-#line 31251 "Photo.c"
- } else {
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = FALSE;
-#line 31255 "Photo.c"
- }
-#line 4329 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp0_) {
-#line 31259 "Photo.c"
- guchar* pixel_data = NULL;
- guint8* _tmp7_;
- gint pixel_data_length1;
- gint _pixel_data_size_;
- guchar g = '\0';
- guchar* _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- guchar _tmp10_;
- guchar b = '\0';
- guchar* _tmp11_;
- gint _tmp11__length1;
- gint _tmp12_;
- guchar _tmp13_;
- guchar r = '\0';
- guchar _tmp14_;
- guchar _tmp15_;
- guchar* _tmp16_;
- gint _tmp16__length1;
- gint _tmp17_;
- guchar _tmp18_;
- guchar _tmp19_;
-#line 4330 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = gdk_pixbuf_get_pixels (pixbuf);
-#line 4330 "/home/jens/Source/shotwell/src/Photo.vala"
- pixel_data = _tmp7_;
-#line 4330 "/home/jens/Source/shotwell/src/Photo.vala"
- pixel_data_length1 = -1;
-#line 4330 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_data_size_ = pixel_data_length1;
-#line 4340 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = pixel_data;
-#line 4340 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8__length1 = pixel_data_length1;
-#line 4340 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = px_start_byte_offset;
-#line 4340 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp8_[_tmp9_ + 1];
-#line 4340 "/home/jens/Source/shotwell/src/Photo.vala"
- g = _tmp10_;
-#line 4341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = pixel_data;
-#line 4341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11__length1 = pixel_data_length1;
-#line 4341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = px_start_byte_offset;
-#line 4341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp11_[_tmp12_ + 2];
-#line 4341 "/home/jens/Source/shotwell/src/Photo.vala"
- b = _tmp13_;
-#line 4343 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = g;
-#line 4343 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = b;
-#line 4343 "/home/jens/Source/shotwell/src/Photo.vala"
- r = (guchar) ((_tmp14_ + _tmp15_) / 2);
-#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = pixel_data;
-#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16__length1 = pixel_data_length1;
-#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = px_start_byte_offset;
-#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = r;
-#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_[_tmp17_] = _tmp18_;
-#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp16_[_tmp17_];
-#line 31328 "Photo.c"
- }
-#line 4348 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _g_object_ref0 (pixbuf);
-#line 4348 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp20_;
-#line 4348 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 31336 "Photo.c"
-}
-
-
-void
-photo_unscaled_to_raw_point (Photo* self,
- GdkPoint* unscaled_point,
- GdkPoint* result)
-{
- Orientation unscaled_orientation = 0;
- Dimensions unscaled_dims = {0};
- Orientation _tmp0_;
- Dimensions _tmp1_ = {0};
- Dimensions _tmp2_ = {0};
- gint unscaled_x_offset_raw = 0;
- gint unscaled_y_offset_raw = 0;
- Box crop_box = {0};
- Box _tmp3_ = {0};
- gboolean _tmp4_;
- GdkPoint derotated_point = {0};
- Orientation _tmp9_;
- Dimensions _tmp10_;
- GdkPoint _tmp11_;
- GdkPoint _tmp12_ = {0};
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
-#line 4351 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4351 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (unscaled_point != NULL);
-#line 4352 "/home/jens/Source/shotwell/src/Photo.vala"
- unscaled_orientation = photo_get_orientation (self);
-#line 4354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = unscaled_orientation;
-#line 4354 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp1_);
-#line 4354 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_rotate_dimensions (_tmp0_, &_tmp1_, &_tmp2_);
-#line 4354 "/home/jens/Source/shotwell/src/Photo.vala"
- unscaled_dims = _tmp2_;
-#line 4357 "/home/jens/Source/shotwell/src/Photo.vala"
- unscaled_x_offset_raw = 0;
-#line 4358 "/home/jens/Source/shotwell/src/Photo.vala"
- unscaled_y_offset_raw = 0;
-#line 4361 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_get_raw_crop (self, &_tmp3_);
-#line 4361 "/home/jens/Source/shotwell/src/Photo.vala"
- crop_box = _tmp3_;
-#line 4361 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_) {
-#line 31388 "Photo.c"
- Box _tmp5_;
- gint _tmp6_;
- Box _tmp7_;
- gint _tmp8_;
-#line 4362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = crop_box;
-#line 4362 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tmp5_.left;
-#line 4362 "/home/jens/Source/shotwell/src/Photo.vala"
- unscaled_x_offset_raw = _tmp6_;
-#line 4363 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = crop_box;
-#line 4363 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_.top;
-#line 4363 "/home/jens/Source/shotwell/src/Photo.vala"
- unscaled_y_offset_raw = _tmp8_;
-#line 31405 "Photo.c"
- }
-#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = unscaled_orientation;
-#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = unscaled_dims;
-#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = *unscaled_point;
-#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
- orientation_derotate_point (_tmp9_, &_tmp10_, &_tmp11_, &_tmp12_);
-#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
- derotated_point = _tmp12_;
-#line 4370 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = derotated_point.x;
-#line 4370 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = unscaled_x_offset_raw;
-#line 4370 "/home/jens/Source/shotwell/src/Photo.vala"
- derotated_point.x = _tmp13_ + _tmp14_;
-#line 4371 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = derotated_point.y;
-#line 4371 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = unscaled_y_offset_raw;
-#line 4371 "/home/jens/Source/shotwell/src/Photo.vala"
- derotated_point.y = _tmp15_ + _tmp16_;
-#line 4373 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = derotated_point;
-#line 4373 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 31433 "Photo.c"
-}
-
-
-void
-photo_unscaled_to_raw_rect (Photo* self,
- GdkRectangle* unscaled_rect,
- GdkRectangle* result)
-{
- GdkPoint upper_left = {0};
- GdkPoint _tmp0_ = {0};
- GdkPoint lower_right = {0};
- GdkPoint _tmp1_ = {0};
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_;
- gint _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
- GdkPoint _tmp14_;
- GdkPoint _tmp15_ = {0};
- GdkPoint _tmp16_;
- GdkPoint _tmp17_ = {0};
- GdkPoint _tmp18_;
- gint _tmp19_;
- GdkPoint _tmp20_;
- gint _tmp21_;
- GdkPoint _tmp27_;
- gint _tmp28_;
- GdkPoint _tmp29_;
- gint _tmp30_;
- GdkRectangle raw_rect = {0};
- GdkPoint _tmp36_;
- gint _tmp37_;
- GdkPoint _tmp38_;
- gint _tmp39_;
- GdkPoint _tmp40_;
- gint _tmp41_;
- GdkPoint _tmp42_;
- gint _tmp43_;
- GdkPoint _tmp44_;
- gint _tmp45_;
- GdkPoint _tmp46_;
- gint _tmp47_;
-#line 4376 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (self));
-#line 4376 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (unscaled_rect != NULL);
-#line 4377 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_.x = 0;
-#line 4377 "/home/jens/Source/shotwell/src/Photo.vala"
- upper_left = _tmp0_;
-#line 4378 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_.x = 0;
-#line 4378 "/home/jens/Source/shotwell/src/Photo.vala"
- lower_right = _tmp1_;
-#line 4379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = *unscaled_rect;
-#line 4379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_.x;
-#line 4379 "/home/jens/Source/shotwell/src/Photo.vala"
- upper_left.x = _tmp3_;
-#line 4380 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = *unscaled_rect;
-#line 4380 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_.y;
-#line 4380 "/home/jens/Source/shotwell/src/Photo.vala"
- upper_left.y = _tmp5_;
-#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = upper_left;
-#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_.x;
-#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = *unscaled_rect;
-#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_.width;
-#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
- lower_right.x = _tmp7_ + _tmp9_;
-#line 4382 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = upper_left;
-#line 4382 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_.y;
-#line 4382 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = *unscaled_rect;
-#line 4382 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_.height;
-#line 4382 "/home/jens/Source/shotwell/src/Photo.vala"
- lower_right.y = _tmp11_ + _tmp13_;
-#line 4384 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = upper_left;
-#line 4384 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_unscaled_to_raw_point (self, &_tmp14_, &_tmp15_);
-#line 4384 "/home/jens/Source/shotwell/src/Photo.vala"
- upper_left = _tmp15_;
-#line 4385 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = lower_right;
-#line 4385 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_unscaled_to_raw_point (self, &_tmp16_, &_tmp17_);
-#line 4385 "/home/jens/Source/shotwell/src/Photo.vala"
- lower_right = _tmp17_;
-#line 4387 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = upper_left;
-#line 4387 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_.x;
-#line 4387 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = lower_right;
-#line 4387 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_.x;
-#line 4387 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp19_ > _tmp21_) {
-#line 31549 "Photo.c"
- gint temp = 0;
- GdkPoint _tmp22_;
- gint _tmp23_;
- GdkPoint _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
-#line 4388 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = upper_left;
-#line 4388 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_.x;
-#line 4388 "/home/jens/Source/shotwell/src/Photo.vala"
- temp = _tmp23_;
-#line 4389 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = lower_right;
-#line 4389 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp24_.x;
-#line 4389 "/home/jens/Source/shotwell/src/Photo.vala"
- upper_left.x = _tmp25_;
-#line 4390 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = temp;
-#line 4390 "/home/jens/Source/shotwell/src/Photo.vala"
- lower_right.x = _tmp26_;
-#line 31572 "Photo.c"
- }
-#line 4392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = upper_left;
-#line 4392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp27_.y;
-#line 4392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = lower_right;
-#line 4392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp29_.y;
-#line 4392 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp28_ > _tmp30_) {
-#line 31584 "Photo.c"
- gint temp = 0;
- GdkPoint _tmp31_;
- gint _tmp32_;
- GdkPoint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
-#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = upper_left;
-#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = _tmp31_.y;
-#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
- temp = _tmp32_;
-#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = lower_right;
-#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_.y;
-#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
- upper_left.y = _tmp34_;
-#line 4395 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = temp;
-#line 4395 "/home/jens/Source/shotwell/src/Photo.vala"
- lower_right.y = _tmp35_;
-#line 31607 "Photo.c"
- }
-#line 4398 "/home/jens/Source/shotwell/src/Photo.vala"
- memset (&raw_rect, 0, sizeof (GdkRectangle));
-#line 4399 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = upper_left;
-#line 4399 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _tmp36_.x;
-#line 4399 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_rect.x = _tmp37_;
-#line 4400 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = upper_left;
-#line 4400 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = _tmp38_.y;
-#line 4400 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_rect.y = _tmp39_;
-#line 4401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = lower_right;
-#line 4401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _tmp40_.x;
-#line 4401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = upper_left;
-#line 4401 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp42_.x;
-#line 4401 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_rect.width = _tmp41_ - _tmp43_;
-#line 4402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = lower_right;
-#line 4402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = _tmp44_.y;
-#line 4402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = upper_left;
-#line 4402 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = _tmp46_.y;
-#line 4402 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_rect.height = _tmp45_ - _tmp47_;
-#line 4404 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = raw_rect;
-#line 4404 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 31647 "Photo.c"
-}
-
-
-PixelTransformationBundle*
-photo_get_enhance_transformations (Photo* self)
-{
- PixelTransformationBundle* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- PixelTransformationBundle* transformations = NULL;
- GdkPixbuf* _tmp4_;
- PixelTransformationBundle* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 4407 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), NULL);
-#line 4408 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = NULL;
-#line 31664 "Photo.c"
- {
- GdkPixbuf* _tmp0_ = NULL;
- Scaling _tmp1_ = {0};
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 4415 "/home/jens/Source/shotwell/src/Photo.vala"
- scaling_for_best_fit (360, FALSE, &_tmp1_);
-#line 4415 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_get_pixbuf_with_options (self, &_tmp1_, PHOTO_EXCEPTION_ALL, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
-#line 4415 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp2_;
-#line 4415 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 31678 "Photo.c"
- goto __catch417_g_error;
- }
-#line 4415 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp0_;
-#line 4415 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 4415 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 4415 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp3_;
-#line 4414 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp0_);
-#line 31691 "Photo.c"
- }
- goto __finally417;
- __catch417_g_error:
- {
- GError* e = NULL;
-#line 4414 "/home/jens/Source/shotwell/src/Photo.vala"
- e = _inner_error_;
-#line 4414 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 4422 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:4422: %s", "Photo: get_enhance_transformations: couldn't obtain pixbuf to build " "transform histogram");
-#line 4424 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 4424 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (e);
-#line 4424 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 4424 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 31711 "Photo.c"
- }
- __finally417:
-#line 4414 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4414 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 4414 "/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 4414 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4414 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 31724 "Photo.c"
- }
-#line 4431 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = pixbuf;
-#line 4431 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = auto_enhance_create_auto_enhance_adjustments (_tmp4_);
-#line 4431 "/home/jens/Source/shotwell/src/Photo.vala"
- transformations = _tmp5_;
-#line 4439 "/home/jens/Source/shotwell/src/Photo.vala"
- result = transformations;
-#line 4439 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 4439 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 31738 "Photo.c"
-}
-
-
-gboolean
-photo_enhance (Photo* self)
-{
- gboolean result = FALSE;
- PixelTransformationBundle* transformations = NULL;
- PixelTransformationBundle* _tmp0_;
- PixelTransformationBundle* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (self), FALSE);
-#line 4443 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_enhance_transformations (self);
-#line 4443 "/home/jens/Source/shotwell/src/Photo.vala"
- transformations = _tmp0_;
-#line 4445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = transformations;
-#line 4445 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 4446 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 4446 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (transformations);
-#line 4446 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 31766 "Photo.c"
- }
- {
- PhotoRow* _tmp2_;
-#line 4451 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->row;
-#line 4451 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_lock (&self->priv->__lock_row);
-#line 31774 "Photo.c"
- {
- PixelTransformationBundle* _tmp3_;
-#line 4452 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = transformations;
-#line 4452 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_set_color_adjustments (self, _tmp3_);
-#line 31781 "Photo.c"
- }
- __finally418:
- {
- PhotoRow* _tmp4_;
-#line 4451 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->row;
-#line 4451 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_unlock (&self->priv->__lock_row);
-#line 31790 "Photo.c"
- }
-#line 4451 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 31794 "Photo.c"
- gboolean _tmp5_ = FALSE;
-#line 4451 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (transformations);
-#line 4451 "/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 4451 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 4451 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp5_;
-#line 31804 "Photo.c"
- }
- }
-#line 4459 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 4459 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (transformations);
-#line 4459 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 31813 "Photo.c"
-}
-
-
-gboolean
-photo_get_develop_raw_photos_to_files (void)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo__develop_raw_photos_to_files;
-#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 31828 "Photo.c"
-}
-
-
-void
-photo_set_develop_raw_photos_to_files (gboolean value)
-{
-#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
- photo__develop_raw_photos_to_files = value;
-#line 31837 "Photo.c"
-}
-
-
-static void
-photo_real_editable_replaced (Photo* self,
- GFile* old_file,
- GFile* new_file)
-{
-#line 358 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file));
-#line 358 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file));
-#line 31850 "Photo.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (n_param_values == 3);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- data1 = closure->data;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- data2 = param_values->data[0].v_pointer;
-#line 31876 "Photo.c"
- } else {
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- data1 = param_values->data[0].v_pointer;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- data2 = closure->data;
-#line 31882 "Photo.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 31888 "Photo.c"
-}
-
-
-static void
-photo_real_raw_development_modified (Photo* self)
-{
-}
-
-
-static void
-photo_real_baseline_replaced (Photo* self)
-{
-}
-
-
-static void
-photo_real_master_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 376 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 31910 "Photo.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__MEDIA_METADATA (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__MEDIA_METADATA) (gpointer data1, gpointer arg_1, gpointer data2);
- register GMarshalFunc_VOID__MEDIA_METADATA callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (n_param_values == 2);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- data1 = closure->data;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- data2 = param_values->data[0].v_pointer;
-#line 31936 "Photo.c"
- } else {
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- data1 = param_values->data[0].v_pointer;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- data2 = closure->data;
-#line 31942 "Photo.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- callback = (GMarshalFunc_VOID__MEDIA_METADATA) (marshal_data ? marshal_data : cc->callback);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- callback (data1, value_get_media_metadata (param_values + 1), data2);
-#line 31948 "Photo.c"
-}
-
-
-static void
-photo_real_editable_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 380 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 31958 "Photo.c"
-}
-
-
-static void
-photo_real_baseline_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 387 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 31968 "Photo.c"
-}
-
-
-static void
-photo_real_source_reimported (Photo* self,
- PhotoMetadata* metadata)
-{
-#line 394 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 31978 "Photo.c"
-}
-
-
-static void
-_photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced (Photo* _sender,
- gpointer self)
-{
-#line 257 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_photo_transformation_state_impl_on_photo_baseline_replaced ((PhotoPhotoTransformationStateImpl*) self);
-#line 31988 "Photo.c"
-}
-
-
-static PhotoPhotoTransformationStateImpl*
-photo_photo_transformation_state_impl_construct (GType object_type,
- Photo* photo,
- Orientation orientation,
- GeeHashMap* transformations,
- PixelTransformer* transformer,
- PixelTransformationBundle* adjustments)
-{
- PhotoPhotoTransformationStateImpl * self = NULL;
- Photo* _tmp0_;
- GeeHashMap* _tmp1_;
- PixelTransformer* _tmp2_;
- PixelTransformationBundle* _tmp3_;
-#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((transformations == NULL) || GEE_IS_HASH_MAP (transformations), NULL);
-#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((transformer == NULL) || IS_PIXEL_TRANSFORMER (transformer), NULL);
-#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((adjustments == NULL) || IS_PIXEL_TRANSFORMATION_BUNDLE (adjustments), NULL);
-#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoPhotoTransformationStateImpl*) photo_transformation_state_construct (object_type);
-#line 247 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (photo);
-#line 247 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->photo);
-#line 247 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->photo = _tmp0_;
-#line 248 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->orientation = orientation;
-#line 249 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_photo_transformation_state_impl_copy_transformations (transformations);
-#line 249 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->transformations);
-#line 249 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->transformations = _tmp1_;
-#line 250 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _pixel_transformer_ref0 (transformer);
-#line 250 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 250 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->transformer = _tmp2_;
-#line 251 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _pixel_transformation_bundle_ref0 (adjustments);
-#line 251 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 251 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->adjustments = _tmp3_;
-#line 253 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_connect_object (photo, "baseline-replaced", (GCallback) _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced, self, 0);
-#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 32045 "Photo.c"
-}
-
-
-static PhotoPhotoTransformationStateImpl*
-photo_photo_transformation_state_impl_new (Photo* photo,
- Orientation orientation,
- GeeHashMap* transformations,
- PixelTransformer* transformer,
- PixelTransformationBundle* adjustments)
-{
-#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_photo_transformation_state_impl_construct (PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, photo, orientation, transformations, transformer, adjustments);
-#line 32058 "Photo.c"
-}
-
-
-static Orientation
-photo_photo_transformation_state_impl_get_orientation (PhotoPhotoTransformationStateImpl* self)
-{
- Orientation result = 0;
- Orientation _tmp0_;
-#line 260 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), 0);
-#line 261 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->orientation;
-#line 261 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 261 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 32075 "Photo.c"
-}
-
-
-static GeeHashMap*
-photo_photo_transformation_state_impl_get_transformations (PhotoPhotoTransformationStateImpl* self)
-{
- GeeHashMap* result = NULL;
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 264 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL);
-#line 265 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->transformations;
-#line 265 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_photo_transformation_state_impl_copy_transformations (_tmp0_);
-#line 265 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 265 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 32095 "Photo.c"
-}
-
-
-static PixelTransformer*
-photo_photo_transformation_state_impl_get_transformer (PhotoPhotoTransformationStateImpl* self)
-{
- PixelTransformer* result = NULL;
- PixelTransformer* _tmp0_ = NULL;
- PixelTransformer* _tmp1_;
-#line 268 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL);
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->transformer;
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ != NULL) {
-#line 32111 "Photo.c"
- PixelTransformer* _tmp2_;
- PixelTransformer* _tmp3_;
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->transformer;
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = pixel_transformer_copy (_tmp2_);
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (_tmp0_);
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp3_;
-#line 32122 "Photo.c"
- } else {
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (_tmp0_);
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 32128 "Photo.c"
- }
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 32134 "Photo.c"
-}
-
-
-static PixelTransformationBundle*
-photo_photo_transformation_state_impl_get_color_adjustments (PhotoPhotoTransformationStateImpl* self)
-{
- PixelTransformationBundle* result = NULL;
- PixelTransformationBundle* _tmp0_ = NULL;
- PixelTransformationBundle* _tmp1_;
-#line 272 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL);
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->adjustments;
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ != NULL) {
-#line 32150 "Photo.c"
- PixelTransformationBundle* _tmp2_;
- PixelTransformationBundle* _tmp3_;
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->adjustments;
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = pixel_transformation_bundle_copy (_tmp2_);
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (_tmp0_);
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp3_;
-#line 32161 "Photo.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (_tmp0_);
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 32167 "Photo.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 32173 "Photo.c"
-}
-
-
-static GeeHashMap*
-photo_photo_transformation_state_impl_copy_transformations (GeeHashMap* original)
-{
- GeeHashMap* result = NULL;
- GeeHashMap* clone = NULL;
- GeeHashMap* _tmp0_;
-#line 276 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((original == NULL) || GEE_IS_HASH_MAP (original), NULL);
-#line 278 "/home/jens/Source/shotwell/src/Photo.vala"
- if (original == NULL) {
-#line 279 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 279 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 32191 "Photo.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, (GDestroyNotify) key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 281 "/home/jens/Source/shotwell/src/Photo.vala"
- clone = _tmp0_;
-#line 32197 "Photo.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (original, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_);
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _object_it = _tmp5_;
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 32221 "Photo.c"
- GeeIterator* _tmp6_;
- gchar* object = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- GeeHashMap* _tmp9_;
- const gchar* _tmp10_;
- const gchar* _tmp11_;
- gpointer _tmp12_;
- KeyValueMap* _tmp13_;
- KeyValueMap* _tmp14_;
- KeyValueMap* _tmp15_;
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _object_it;
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 32239 "Photo.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _object_it;
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- object = (gchar*) _tmp8_;
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = clone;
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = object;
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = object;
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (original, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_);
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = (KeyValueMap*) _tmp12_;
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = key_value_map_copy (_tmp13_);
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_, _tmp15_);
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (_tmp15_);
-#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
- _key_value_map_unref0 (_tmp13_);
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (object);
-#line 32269 "Photo.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_object_it);
-#line 32273 "Photo.c"
- }
-#line 285 "/home/jens/Source/shotwell/src/Photo.vala"
- result = clone;
-#line 285 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 32279 "Photo.c"
-}
-
-
-static void
-photo_photo_transformation_state_impl_on_photo_baseline_replaced (PhotoPhotoTransformationStateImpl* self)
-{
-#line 288 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self));
-#line 289 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!photo_transformation_state_is_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState))) {
-#line 290 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState), photo_transformation_state_signals[PHOTO_TRANSFORMATION_STATE_BROKEN_SIGNAL], 0);
-#line 32292 "Photo.c"
- }
-}
-
-
-static void
-photo_photo_transformation_state_impl_class_init (PhotoPhotoTransformationStateImplClass * klass)
-{
-#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_photo_transformation_state_impl_parent_class = g_type_class_peek_parent (klass);
-#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_class_add_private (klass, sizeof (PhotoPhotoTransformationStateImplPrivate));
-#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (klass)->finalize = photo_photo_transformation_state_impl_finalize;
-#line 32306 "Photo.c"
-}
-
-
-static void
-photo_photo_transformation_state_impl_instance_init (PhotoPhotoTransformationStateImpl * self)
-{
-#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv = PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_PRIVATE (self);
-#line 32315 "Photo.c"
-}
-
-
-static void
-photo_photo_transformation_state_impl_finalize (GObject * obj)
-{
- PhotoPhotoTransformationStateImpl * self;
- Photo* _tmp0_;
- guint _tmp1_;
-#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImpl);
-#line 257 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->photo;
-#line 257 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_parse_name ("baseline-replaced", TYPE_PHOTO, &_tmp1_, NULL, FALSE);
-#line 257 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced, self);
-#line 238 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->photo);
-#line 240 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->transformations);
-#line 241 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 242 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (photo_photo_transformation_state_impl_parent_class)->finalize (obj);
-#line 32343 "Photo.c"
-}
-
-
-static GType
-photo_photo_transformation_state_impl_get_type (void)
-{
- static volatile gsize photo_photo_transformation_state_impl_type_id__volatile = 0;
- if (g_once_init_enter (&photo_photo_transformation_state_impl_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoPhotoTransformationStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_photo_transformation_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoPhotoTransformationStateImpl), 0, (GInstanceInitFunc) photo_photo_transformation_state_impl_instance_init, NULL };
- GType photo_photo_transformation_state_impl_type_id;
- photo_photo_transformation_state_impl_type_id = g_type_register_static (TYPE_PHOTO_TRANSFORMATION_STATE, "PhotoPhotoTransformationStateImpl", &g_define_type_info, 0);
- g_once_init_leave (&photo_photo_transformation_state_impl_type_id__volatile, photo_photo_transformation_state_impl_type_id);
- }
- return photo_photo_transformation_state_impl_type_id__volatile;
-}
-
-
-static PhotoBackingReaders*
-photo_backing_readers_construct (GType object_type)
-{
- PhotoBackingReaders* self = NULL;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoBackingReaders*) g_type_create_instance (object_type);
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 32369 "Photo.c"
-}
-
-
-static PhotoBackingReaders*
-photo_backing_readers_new (void)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_backing_readers_construct (PHOTO_TYPE_BACKING_READERS);
-#line 32378 "Photo.c"
-}
-
-
-static void
-photo_value_backing_readers_init (GValue* value)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 32387 "Photo.c"
-}
-
-
-static void
-photo_value_backing_readers_free_value (GValue* value)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value->data[0].v_pointer) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_backing_readers_unref (value->data[0].v_pointer);
-#line 32398 "Photo.c"
- }
-}
-
-
-static void
-photo_value_backing_readers_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (src_value->data[0].v_pointer) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = photo_backing_readers_ref (src_value->data[0].v_pointer);
-#line 32411 "Photo.c"
- } else {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 32415 "Photo.c"
- }
-}
-
-
-static gpointer
-photo_value_backing_readers_peek_pointer (const GValue* value)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 32425 "Photo.c"
-}
-
-
-static gchar*
-photo_value_backing_readers_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (collect_values[0].v_pointer) {
-#line 32437 "Photo.c"
- PhotoBackingReaders * object;
- object = collect_values[0].v_pointer;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 32444 "Photo.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.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 32448 "Photo.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = photo_backing_readers_ref (object);
-#line 32452 "Photo.c"
- } else {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 32456 "Photo.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 32460 "Photo.c"
-}
-
-
-static gchar*
-photo_value_backing_readers_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoBackingReaders ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!object_p) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 32476 "Photo.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!value->data[0].v_pointer) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = NULL;
-#line 32482 "Photo.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = value->data[0].v_pointer;
-#line 32486 "Photo.c"
- } else {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = photo_backing_readers_ref (value->data[0].v_pointer);
-#line 32490 "Photo.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 32494 "Photo.c"
-}
-
-
-static GParamSpec*
-photo_param_spec_backing_readers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PhotoParamSpecBackingReaders* spec;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_BACKING_READERS), NULL);
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return G_PARAM_SPEC (spec);
-#line 32514 "Photo.c"
-}
-
-
-static gpointer
-photo_value_get_backing_readers (const GValue* value)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS), NULL);
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 32525 "Photo.c"
-}
-
-
-static void
-photo_value_set_backing_readers (GValue* value,
- gpointer v_object)
-{
- PhotoBackingReaders * old;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS));
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_BACKING_READERS));
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_backing_readers_ref (value->data[0].v_pointer);
-#line 32548 "Photo.c"
- } else {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 32552 "Photo.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_backing_readers_unref (old);
-#line 32558 "Photo.c"
- }
-}
-
-
-static void
-photo_value_take_backing_readers (GValue* value,
- gpointer v_object)
-{
- PhotoBackingReaders * old;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS));
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_BACKING_READERS));
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 32580 "Photo.c"
- } else {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 32584 "Photo.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_backing_readers_unref (old);
-#line 32590 "Photo.c"
- }
-}
-
-
-static void
-photo_backing_readers_class_init (PhotoBackingReadersClass * klass)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_backing_readers_parent_class = g_type_class_peek_parent (klass);
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoBackingReadersClass *) klass)->finalize = photo_backing_readers_finalize;
-#line 32602 "Photo.c"
-}
-
-
-static void
-photo_backing_readers_instance_init (PhotoBackingReaders * self)
-{
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- self->ref_count = 1;
-#line 32611 "Photo.c"
-}
-
-
-static void
-photo_backing_readers_finalize (PhotoBackingReaders * obj)
-{
- PhotoBackingReaders * self;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_BACKING_READERS, PhotoBackingReaders);
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_destroy (self);
-#line 295 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (self->master);
-#line 296 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (self->developer);
-#line 297 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_file_adapter_unref0 (self->editable);
-#line 32629 "Photo.c"
-}
-
-
-static GType
-photo_backing_readers_get_type (void)
-{
- static volatile gsize photo_backing_readers_type_id__volatile = 0;
- if (g_once_init_enter (&photo_backing_readers_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { photo_value_backing_readers_init, photo_value_backing_readers_free_value, photo_value_backing_readers_copy_value, photo_value_backing_readers_peek_pointer, "p", photo_value_backing_readers_collect_value, "p", photo_value_backing_readers_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoBackingReadersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_backing_readers_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoBackingReaders), 0, (GInstanceInitFunc) photo_backing_readers_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_backing_readers_type_id;
- photo_backing_readers_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoBackingReaders", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&photo_backing_readers_type_id__volatile, photo_backing_readers_type_id);
- }
- return photo_backing_readers_type_id__volatile;
-}
-
-
-static gpointer
-photo_backing_readers_ref (gpointer instance)
-{
- PhotoBackingReaders * self;
- self = instance;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- return instance;
-#line 32658 "Photo.c"
-}
-
-
-static void
-photo_backing_readers_unref (gpointer instance)
-{
- PhotoBackingReaders * self;
- self = instance;
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_BACKING_READERS_GET_CLASS (self)->finalize (self);
-#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 32673 "Photo.c"
- }
-}
-
-
-static PhotoCachedPixbuf*
-photo_cached_pixbuf_construct (GType object_type,
- Photo* photo,
- GdkPixbuf* pixbuf)
-{
- PhotoCachedPixbuf* self = NULL;
- Photo* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoCachedPixbuf*) g_type_create_instance (object_type);
-#line 306 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (photo);
-#line 306 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->photo);
-#line 306 "/home/jens/Source/shotwell/src/Photo.vala"
- self->photo = _tmp0_;
-#line 307 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _g_object_ref0 (pixbuf);
-#line 307 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->pixbuf);
-#line 307 "/home/jens/Source/shotwell/src/Photo.vala"
- self->pixbuf = _tmp1_;
-#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 32706 "Photo.c"
-}
-
-
-static PhotoCachedPixbuf*
-photo_cached_pixbuf_new (Photo* photo,
- GdkPixbuf* pixbuf)
-{
-#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_cached_pixbuf_construct (PHOTO_TYPE_CACHED_PIXBUF, photo, pixbuf);
-#line 32716 "Photo.c"
-}
-
-
-static void
-photo_value_cached_pixbuf_init (GValue* value)
-{
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 32725 "Photo.c"
-}
-
-
-static void
-photo_value_cached_pixbuf_free_value (GValue* value)
-{
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value->data[0].v_pointer) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_cached_pixbuf_unref (value->data[0].v_pointer);
-#line 32736 "Photo.c"
- }
-}
-
-
-static void
-photo_value_cached_pixbuf_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (src_value->data[0].v_pointer) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = photo_cached_pixbuf_ref (src_value->data[0].v_pointer);
-#line 32749 "Photo.c"
- } else {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 32753 "Photo.c"
- }
-}
-
-
-static gpointer
-photo_value_cached_pixbuf_peek_pointer (const GValue* value)
-{
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 32763 "Photo.c"
-}
-
-
-static gchar*
-photo_value_cached_pixbuf_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (collect_values[0].v_pointer) {
-#line 32775 "Photo.c"
- PhotoCachedPixbuf * object;
- object = collect_values[0].v_pointer;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 32782 "Photo.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.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 32786 "Photo.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = photo_cached_pixbuf_ref (object);
-#line 32790 "Photo.c"
- } else {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 32794 "Photo.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 32798 "Photo.c"
-}
-
-
-static gchar*
-photo_value_cached_pixbuf_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoCachedPixbuf ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!object_p) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 32814 "Photo.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!value->data[0].v_pointer) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = NULL;
-#line 32820 "Photo.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = value->data[0].v_pointer;
-#line 32824 "Photo.c"
- } else {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = photo_cached_pixbuf_ref (value->data[0].v_pointer);
-#line 32828 "Photo.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 32832 "Photo.c"
-}
-
-
-static GParamSpec*
-photo_param_spec_cached_pixbuf (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PhotoParamSpecCachedPixbuf* spec;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_CACHED_PIXBUF), NULL);
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- return G_PARAM_SPEC (spec);
-#line 32852 "Photo.c"
-}
-
-
-static gpointer
-photo_value_get_cached_pixbuf (const GValue* value)
-{
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF), NULL);
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 32863 "Photo.c"
-}
-
-
-static void
-photo_value_set_cached_pixbuf (GValue* value,
- gpointer v_object)
-{
- PhotoCachedPixbuf * old;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF));
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_CACHED_PIXBUF));
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_cached_pixbuf_ref (value->data[0].v_pointer);
-#line 32886 "Photo.c"
- } else {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 32890 "Photo.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_cached_pixbuf_unref (old);
-#line 32896 "Photo.c"
- }
-}
-
-
-static void
-photo_value_take_cached_pixbuf (GValue* value,
- gpointer v_object)
-{
- PhotoCachedPixbuf * old;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF));
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_CACHED_PIXBUF));
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 32918 "Photo.c"
- } else {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 32922 "Photo.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_cached_pixbuf_unref (old);
-#line 32928 "Photo.c"
- }
-}
-
-
-static void
-photo_cached_pixbuf_class_init (PhotoCachedPixbufClass * klass)
-{
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_cached_pixbuf_parent_class = g_type_class_peek_parent (klass);
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoCachedPixbufClass *) klass)->finalize = photo_cached_pixbuf_finalize;
-#line 32940 "Photo.c"
-}
-
-
-static void
-photo_cached_pixbuf_instance_init (PhotoCachedPixbuf * self)
-{
- GTimer* _tmp0_;
-#line 303 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = g_timer_new ();
-#line 303 "/home/jens/Source/shotwell/src/Photo.vala"
- self->last_touched = _tmp0_;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- self->ref_count = 1;
-#line 32954 "Photo.c"
-}
-
-
-static void
-photo_cached_pixbuf_finalize (PhotoCachedPixbuf * obj)
-{
- PhotoCachedPixbuf * self;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbuf);
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_destroy (self);
-#line 301 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->photo);
-#line 302 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->pixbuf);
-#line 303 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_timer_destroy0 (self->last_touched);
-#line 32972 "Photo.c"
-}
-
-
-static GType
-photo_cached_pixbuf_get_type (void)
-{
- static volatile gsize photo_cached_pixbuf_type_id__volatile = 0;
- if (g_once_init_enter (&photo_cached_pixbuf_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { photo_value_cached_pixbuf_init, photo_value_cached_pixbuf_free_value, photo_value_cached_pixbuf_copy_value, photo_value_cached_pixbuf_peek_pointer, "p", photo_value_cached_pixbuf_collect_value, "p", photo_value_cached_pixbuf_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoCachedPixbufClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_cached_pixbuf_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoCachedPixbuf), 0, (GInstanceInitFunc) photo_cached_pixbuf_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_cached_pixbuf_type_id;
- photo_cached_pixbuf_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoCachedPixbuf", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&photo_cached_pixbuf_type_id__volatile, photo_cached_pixbuf_type_id);
- }
- return photo_cached_pixbuf_type_id__volatile;
-}
-
-
-static gpointer
-photo_cached_pixbuf_ref (gpointer instance)
-{
- PhotoCachedPixbuf * self;
- self = instance;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- return instance;
-#line 33001 "Photo.c"
-}
-
-
-static void
-photo_cached_pixbuf_unref (gpointer instance)
-{
- PhotoCachedPixbuf * self;
- self = instance;
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_CACHED_PIXBUF_GET_CLASS (self)->finalize (self);
-#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 33016 "Photo.c"
- }
-}
-
-
-PhotoReimportMasterState*
-photo_reimport_master_state_construct (GType object_type)
-{
- PhotoReimportMasterState* self = NULL;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoReimportMasterState*) g_type_create_instance (object_type);
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 33029 "Photo.c"
-}
-
-
-static void
-photo_value_reimport_master_state_init (GValue* value)
-{
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33038 "Photo.c"
-}
-
-
-static void
-photo_value_reimport_master_state_free_value (GValue* value)
-{
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value->data[0].v_pointer) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_master_state_unref (value->data[0].v_pointer);
-#line 33049 "Photo.c"
- }
-}
-
-
-static void
-photo_value_reimport_master_state_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (src_value->data[0].v_pointer) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = photo_reimport_master_state_ref (src_value->data[0].v_pointer);
-#line 33062 "Photo.c"
- } else {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 33066 "Photo.c"
- }
-}
-
-
-static gpointer
-photo_value_reimport_master_state_peek_pointer (const GValue* value)
-{
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 33076 "Photo.c"
-}
-
-
-static gchar*
-photo_value_reimport_master_state_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (collect_values[0].v_pointer) {
-#line 33088 "Photo.c"
- PhotoReimportMasterState * object;
- object = collect_values[0].v_pointer;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 33095 "Photo.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.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 33099 "Photo.c"
- }
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = photo_reimport_master_state_ref (object);
-#line 33103 "Photo.c"
- } else {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33107 "Photo.c"
- }
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 33111 "Photo.c"
-}
-
-
-static gchar*
-photo_value_reimport_master_state_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoReimportMasterState ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!object_p) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 33127 "Photo.c"
- }
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!value->data[0].v_pointer) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = NULL;
-#line 33133 "Photo.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = value->data[0].v_pointer;
-#line 33137 "Photo.c"
- } else {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = photo_reimport_master_state_ref (value->data[0].v_pointer);
-#line 33141 "Photo.c"
- }
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 33145 "Photo.c"
-}
-
-
-GParamSpec*
-photo_param_spec_reimport_master_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PhotoParamSpecReimportMasterState* spec;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_MASTER_STATE), NULL);
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return G_PARAM_SPEC (spec);
-#line 33165 "Photo.c"
-}
-
-
-gpointer
-photo_value_get_reimport_master_state (const GValue* value)
-{
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE), NULL);
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 33176 "Photo.c"
-}
-
-
-void
-photo_value_set_reimport_master_state (GValue* value,
- gpointer v_object)
-{
- PhotoReimportMasterState * old;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE));
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_MASTER_STATE));
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_master_state_ref (value->data[0].v_pointer);
-#line 33199 "Photo.c"
- } else {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33203 "Photo.c"
- }
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_master_state_unref (old);
-#line 33209 "Photo.c"
- }
-}
-
-
-void
-photo_value_take_reimport_master_state (GValue* value,
- gpointer v_object)
-{
- PhotoReimportMasterState * old;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE));
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_MASTER_STATE));
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 33231 "Photo.c"
- } else {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33235 "Photo.c"
- }
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_master_state_unref (old);
-#line 33241 "Photo.c"
- }
-}
-
-
-static void
-photo_reimport_master_state_class_init (PhotoReimportMasterStateClass * klass)
-{
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_master_state_parent_class = g_type_class_peek_parent (klass);
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoReimportMasterStateClass *) klass)->finalize = photo_reimport_master_state_finalize;
-#line 33253 "Photo.c"
-}
-
-
-static void
-photo_reimport_master_state_instance_init (PhotoReimportMasterState * self)
-{
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- self->ref_count = 1;
-#line 33262 "Photo.c"
-}
-
-
-static void
-photo_reimport_master_state_finalize (PhotoReimportMasterState * obj)
-{
- PhotoReimportMasterState * self;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState);
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_destroy (self);
-#line 33274 "Photo.c"
-}
-
-
-GType
-photo_reimport_master_state_get_type (void)
-{
- static volatile gsize photo_reimport_master_state_type_id__volatile = 0;
- if (g_once_init_enter (&photo_reimport_master_state_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_master_state_init, photo_value_reimport_master_state_free_value, photo_value_reimport_master_state_copy_value, photo_value_reimport_master_state_peek_pointer, "p", photo_value_reimport_master_state_collect_value, "p", photo_value_reimport_master_state_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportMasterStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_master_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportMasterState), 0, (GInstanceInitFunc) photo_reimport_master_state_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_reimport_master_state_type_id;
- photo_reimport_master_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportMasterState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_reimport_master_state_type_id__volatile, photo_reimport_master_state_type_id);
- }
- return photo_reimport_master_state_type_id__volatile;
-}
-
-
-gpointer
-photo_reimport_master_state_ref (gpointer instance)
-{
- PhotoReimportMasterState * self;
- self = instance;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- return instance;
-#line 33303 "Photo.c"
-}
-
-
-void
-photo_reimport_master_state_unref (gpointer instance)
-{
- PhotoReimportMasterState * self;
- self = instance;
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_REIMPORT_MASTER_STATE_GET_CLASS (self)->finalize (self);
-#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 33318 "Photo.c"
- }
-}
-
-
-static gchar**
-_vala_array_dup24 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- result = g_new0 (gchar*, length + 1);
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- for (i = 0; i < length; i++) {
-#line 33333 "Photo.c"
- gchar* _tmp0_;
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- result[i] = _tmp0_;
-#line 33339 "Photo.c"
- }
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 33343 "Photo.c"
-}
-
-
-static PhotoReimportMasterStateImpl*
-photo_reimport_master_state_impl_construct (GType object_type,
- PhotoRow* row,
- PhotoMetadata* metadata,
- gchar** alterations,
- int alterations_length1)
-{
- PhotoReimportMasterStateImpl* self = NULL;
- PhotoRow* _tmp0_;
- PhotoMetadata* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_ROW (row), NULL);
-#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL);
-#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoReimportMasterStateImpl*) photo_reimport_master_state_construct (object_type);
-#line 1379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _photo_row_ref0 (row);
-#line 1379 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (self->row);
-#line 1379 "/home/jens/Source/shotwell/src/Photo.vala"
- self->row = _tmp0_;
-#line 1380 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _media_metadata_ref0 (metadata);
-#line 1380 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (self->metadata);
-#line 1380 "/home/jens/Source/shotwell/src/Photo.vala"
- self->metadata = _tmp1_;
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = (alterations != NULL) ? _vala_array_dup24 (alterations, alterations_length1) : ((gpointer) alterations);
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2__length1 = alterations_length1;
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- self->alterations = (_vala_array_free (self->alterations, self->alterations_length1, (GDestroyNotify) g_free), NULL);
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- self->alterations = _tmp2_;
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- self->alterations_length1 = _tmp2__length1;
-#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
- self->_alterations_size_ = self->alterations_length1;
-#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 33391 "Photo.c"
-}
-
-
-static PhotoReimportMasterStateImpl*
-photo_reimport_master_state_impl_new (PhotoRow* row,
- PhotoMetadata* metadata,
- gchar** alterations,
- int alterations_length1)
-{
-#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_reimport_master_state_impl_construct (PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, row, metadata, alterations, alterations_length1);
-#line 33403 "Photo.c"
-}
-
-
-static void
-photo_reimport_master_state_impl_class_init (PhotoReimportMasterStateImplClass * klass)
-{
-#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_master_state_impl_parent_class = g_type_class_peek_parent (klass);
-#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoReimportMasterStateClass *) klass)->finalize = photo_reimport_master_state_impl_finalize;
-#line 33414 "Photo.c"
-}
-
-
-static void
-photo_reimport_master_state_impl_instance_init (PhotoReimportMasterStateImpl * self)
-{
- PhotoRow* _tmp0_;
-#line 1373 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_row_new ();
-#line 1373 "/home/jens/Source/shotwell/src/Photo.vala"
- self->row = _tmp0_;
-#line 1376 "/home/jens/Source/shotwell/src/Photo.vala"
- self->metadata_only = FALSE;
-#line 33428 "Photo.c"
-}
-
-
-static void
-photo_reimport_master_state_impl_finalize (PhotoReimportMasterState * obj)
-{
- PhotoReimportMasterStateImpl * self;
-#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl);
-#line 1373 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (self->row);
-#line 1374 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (self->metadata);
-#line 1375 "/home/jens/Source/shotwell/src/Photo.vala"
- self->alterations = (_vala_array_free (self->alterations, self->alterations_length1, (GDestroyNotify) g_free), NULL);
-#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_REIMPORT_MASTER_STATE_CLASS (photo_reimport_master_state_impl_parent_class)->finalize (obj);
-#line 33446 "Photo.c"
-}
-
-
-static GType
-photo_reimport_master_state_impl_get_type (void)
-{
- static volatile gsize photo_reimport_master_state_impl_type_id__volatile = 0;
- if (g_once_init_enter (&photo_reimport_master_state_impl_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportMasterStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_master_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportMasterStateImpl), 0, (GInstanceInitFunc) photo_reimport_master_state_impl_instance_init, NULL };
- GType photo_reimport_master_state_impl_type_id;
- photo_reimport_master_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_MASTER_STATE, "PhotoReimportMasterStateImpl", &g_define_type_info, 0);
- g_once_init_leave (&photo_reimport_master_state_impl_type_id__volatile, photo_reimport_master_state_impl_type_id);
- }
- return photo_reimport_master_state_impl_type_id__volatile;
-}
-
-
-PhotoReimportEditableState*
-photo_reimport_editable_state_construct (GType object_type)
-{
- PhotoReimportEditableState* self = NULL;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoReimportEditableState*) g_type_create_instance (object_type);
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 33472 "Photo.c"
-}
-
-
-static void
-photo_value_reimport_editable_state_init (GValue* value)
-{
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33481 "Photo.c"
-}
-
-
-static void
-photo_value_reimport_editable_state_free_value (GValue* value)
-{
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value->data[0].v_pointer) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_editable_state_unref (value->data[0].v_pointer);
-#line 33492 "Photo.c"
- }
-}
-
-
-static void
-photo_value_reimport_editable_state_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (src_value->data[0].v_pointer) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = photo_reimport_editable_state_ref (src_value->data[0].v_pointer);
-#line 33505 "Photo.c"
- } else {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 33509 "Photo.c"
- }
-}
-
-
-static gpointer
-photo_value_reimport_editable_state_peek_pointer (const GValue* value)
-{
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 33519 "Photo.c"
-}
-
-
-static gchar*
-photo_value_reimport_editable_state_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (collect_values[0].v_pointer) {
-#line 33531 "Photo.c"
- PhotoReimportEditableState * object;
- object = collect_values[0].v_pointer;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 33538 "Photo.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.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 33542 "Photo.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = photo_reimport_editable_state_ref (object);
-#line 33546 "Photo.c"
- } else {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33550 "Photo.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 33554 "Photo.c"
-}
-
-
-static gchar*
-photo_value_reimport_editable_state_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoReimportEditableState ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!object_p) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 33570 "Photo.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!value->data[0].v_pointer) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = NULL;
-#line 33576 "Photo.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = value->data[0].v_pointer;
-#line 33580 "Photo.c"
- } else {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = photo_reimport_editable_state_ref (value->data[0].v_pointer);
-#line 33584 "Photo.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 33588 "Photo.c"
-}
-
-
-GParamSpec*
-photo_param_spec_reimport_editable_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PhotoParamSpecReimportEditableState* spec;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_EDITABLE_STATE), NULL);
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return G_PARAM_SPEC (spec);
-#line 33608 "Photo.c"
-}
-
-
-gpointer
-photo_value_get_reimport_editable_state (const GValue* value)
-{
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE), NULL);
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 33619 "Photo.c"
-}
-
-
-void
-photo_value_set_reimport_editable_state (GValue* value,
- gpointer v_object)
-{
- PhotoReimportEditableState * old;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE));
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_EDITABLE_STATE));
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_editable_state_ref (value->data[0].v_pointer);
-#line 33642 "Photo.c"
- } else {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33646 "Photo.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_editable_state_unref (old);
-#line 33652 "Photo.c"
- }
-}
-
-
-void
-photo_value_take_reimport_editable_state (GValue* value,
- gpointer v_object)
-{
- PhotoReimportEditableState * old;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE));
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_EDITABLE_STATE));
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 33674 "Photo.c"
- } else {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33678 "Photo.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_editable_state_unref (old);
-#line 33684 "Photo.c"
- }
-}
-
-
-static void
-photo_reimport_editable_state_class_init (PhotoReimportEditableStateClass * klass)
-{
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_editable_state_parent_class = g_type_class_peek_parent (klass);
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoReimportEditableStateClass *) klass)->finalize = photo_reimport_editable_state_finalize;
-#line 33696 "Photo.c"
-}
-
-
-static void
-photo_reimport_editable_state_instance_init (PhotoReimportEditableState * self)
-{
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- self->ref_count = 1;
-#line 33705 "Photo.c"
-}
-
-
-static void
-photo_reimport_editable_state_finalize (PhotoReimportEditableState * obj)
-{
- PhotoReimportEditableState * self;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState);
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_destroy (self);
-#line 33717 "Photo.c"
-}
-
-
-GType
-photo_reimport_editable_state_get_type (void)
-{
- static volatile gsize photo_reimport_editable_state_type_id__volatile = 0;
- if (g_once_init_enter (&photo_reimport_editable_state_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_editable_state_init, photo_value_reimport_editable_state_free_value, photo_value_reimport_editable_state_copy_value, photo_value_reimport_editable_state_peek_pointer, "p", photo_value_reimport_editable_state_collect_value, "p", photo_value_reimport_editable_state_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportEditableStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_editable_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportEditableState), 0, (GInstanceInitFunc) photo_reimport_editable_state_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_reimport_editable_state_type_id;
- photo_reimport_editable_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportEditableState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_reimport_editable_state_type_id__volatile, photo_reimport_editable_state_type_id);
- }
- return photo_reimport_editable_state_type_id__volatile;
-}
-
-
-gpointer
-photo_reimport_editable_state_ref (gpointer instance)
-{
- PhotoReimportEditableState * self;
- self = instance;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- return instance;
-#line 33746 "Photo.c"
-}
-
-
-void
-photo_reimport_editable_state_unref (gpointer instance)
-{
- PhotoReimportEditableState * self;
- self = instance;
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS (self)->finalize (self);
-#line 1385 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 33761 "Photo.c"
- }
-}
-
-
-static PhotoReimportEditableStateImpl*
-photo_reimport_editable_state_impl_construct (GType object_type,
- BackingPhotoRow* backing_state,
- PhotoMetadata* metadata)
-{
- PhotoReimportEditableStateImpl* self = NULL;
- BackingPhotoRow* _tmp0_;
- PhotoMetadata* _tmp1_;
-#line 1393 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_BACKING_PHOTO_ROW (backing_state), NULL);
-#line 1393 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL);
-#line 1393 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoReimportEditableStateImpl*) photo_reimport_editable_state_construct (object_type);
-#line 1394 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _backing_photo_row_ref0 (backing_state);
-#line 1394 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_state);
-#line 1394 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_state = _tmp0_;
-#line 1395 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _media_metadata_ref0 (metadata);
-#line 1395 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (self->metadata);
-#line 1395 "/home/jens/Source/shotwell/src/Photo.vala"
- self->metadata = _tmp1_;
-#line 1393 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 33794 "Photo.c"
-}
-
-
-static PhotoReimportEditableStateImpl*
-photo_reimport_editable_state_impl_new (BackingPhotoRow* backing_state,
- PhotoMetadata* metadata)
-{
-#line 1393 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_reimport_editable_state_impl_construct (PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, backing_state, metadata);
-#line 33804 "Photo.c"
-}
-
-
-static void
-photo_reimport_editable_state_impl_class_init (PhotoReimportEditableStateImplClass * klass)
-{
-#line 1388 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_editable_state_impl_parent_class = g_type_class_peek_parent (klass);
-#line 1388 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoReimportEditableStateClass *) klass)->finalize = photo_reimport_editable_state_impl_finalize;
-#line 33815 "Photo.c"
-}
-
-
-static void
-photo_reimport_editable_state_impl_instance_init (PhotoReimportEditableStateImpl * self)
-{
- BackingPhotoRow* _tmp0_;
-#line 1389 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = backing_photo_row_new ();
-#line 1389 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_state = _tmp0_;
-#line 1391 "/home/jens/Source/shotwell/src/Photo.vala"
- self->metadata_only = FALSE;
-#line 33829 "Photo.c"
-}
-
-
-static void
-photo_reimport_editable_state_impl_finalize (PhotoReimportEditableState * obj)
-{
- PhotoReimportEditableStateImpl * self;
-#line 1388 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl);
-#line 1389 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_state);
-#line 1390 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (self->metadata);
-#line 1388 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_REIMPORT_EDITABLE_STATE_CLASS (photo_reimport_editable_state_impl_parent_class)->finalize (obj);
-#line 33845 "Photo.c"
-}
-
-
-static GType
-photo_reimport_editable_state_impl_get_type (void)
-{
- static volatile gsize photo_reimport_editable_state_impl_type_id__volatile = 0;
- if (g_once_init_enter (&photo_reimport_editable_state_impl_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportEditableStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_editable_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportEditableStateImpl), 0, (GInstanceInitFunc) photo_reimport_editable_state_impl_instance_init, NULL };
- GType photo_reimport_editable_state_impl_type_id;
- photo_reimport_editable_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_EDITABLE_STATE, "PhotoReimportEditableStateImpl", &g_define_type_info, 0);
- g_once_init_leave (&photo_reimport_editable_state_impl_type_id__volatile, photo_reimport_editable_state_impl_type_id);
- }
- return photo_reimport_editable_state_impl_type_id__volatile;
-}
-
-
-PhotoReimportRawDevelopmentState*
-photo_reimport_raw_development_state_construct (GType object_type)
-{
- PhotoReimportRawDevelopmentState* self = NULL;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoReimportRawDevelopmentState*) g_type_create_instance (object_type);
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 33871 "Photo.c"
-}
-
-
-static void
-photo_value_reimport_raw_development_state_init (GValue* value)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33880 "Photo.c"
-}
-
-
-static void
-photo_value_reimport_raw_development_state_free_value (GValue* value)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value->data[0].v_pointer) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_unref (value->data[0].v_pointer);
-#line 33891 "Photo.c"
- }
-}
-
-
-static void
-photo_value_reimport_raw_development_state_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (src_value->data[0].v_pointer) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = photo_reimport_raw_development_state_ref (src_value->data[0].v_pointer);
-#line 33904 "Photo.c"
- } else {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 33908 "Photo.c"
- }
-}
-
-
-static gpointer
-photo_value_reimport_raw_development_state_peek_pointer (const GValue* value)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 33918 "Photo.c"
-}
-
-
-static gchar*
-photo_value_reimport_raw_development_state_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (collect_values[0].v_pointer) {
-#line 33930 "Photo.c"
- PhotoReimportRawDevelopmentState * object;
- object = collect_values[0].v_pointer;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 33937 "Photo.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.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 33941 "Photo.c"
- }
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = photo_reimport_raw_development_state_ref (object);
-#line 33945 "Photo.c"
- } else {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 33949 "Photo.c"
- }
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 33953 "Photo.c"
-}
-
-
-static gchar*
-photo_value_reimport_raw_development_state_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoReimportRawDevelopmentState ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!object_p) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 33969 "Photo.c"
- }
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!value->data[0].v_pointer) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = NULL;
-#line 33975 "Photo.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = value->data[0].v_pointer;
-#line 33979 "Photo.c"
- } else {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = photo_reimport_raw_development_state_ref (value->data[0].v_pointer);
-#line 33983 "Photo.c"
- }
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 33987 "Photo.c"
-}
-
-
-GParamSpec*
-photo_param_spec_reimport_raw_development_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PhotoParamSpecReimportRawDevelopmentState* spec;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE), NULL);
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return G_PARAM_SPEC (spec);
-#line 34007 "Photo.c"
-}
-
-
-gpointer
-photo_value_get_reimport_raw_development_state (const GValue* value)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE), NULL);
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 34018 "Photo.c"
-}
-
-
-void
-photo_value_set_reimport_raw_development_state (GValue* value,
- gpointer v_object)
-{
- PhotoReimportRawDevelopmentState * old;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE));
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE));
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_ref (value->data[0].v_pointer);
-#line 34041 "Photo.c"
- } else {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 34045 "Photo.c"
- }
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_unref (old);
-#line 34051 "Photo.c"
- }
-}
-
-
-void
-photo_value_take_reimport_raw_development_state (GValue* value,
- gpointer v_object)
-{
- PhotoReimportRawDevelopmentState * old;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE));
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE));
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 34073 "Photo.c"
- } else {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 34077 "Photo.c"
- }
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_unref (old);
-#line 34083 "Photo.c"
- }
-}
-
-
-static void
-photo_reimport_raw_development_state_class_init (PhotoReimportRawDevelopmentStateClass * klass)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_parent_class = g_type_class_peek_parent (klass);
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoReimportRawDevelopmentStateClass *) klass)->finalize = photo_reimport_raw_development_state_finalize;
-#line 34095 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_instance_init (PhotoReimportRawDevelopmentState * self)
-{
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- self->ref_count = 1;
-#line 34104 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_finalize (PhotoReimportRawDevelopmentState * obj)
-{
- PhotoReimportRawDevelopmentState * self;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState);
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_destroy (self);
-#line 34116 "Photo.c"
-}
-
-
-GType
-photo_reimport_raw_development_state_get_type (void)
-{
- static volatile gsize photo_reimport_raw_development_state_type_id__volatile = 0;
- if (g_once_init_enter (&photo_reimport_raw_development_state_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_raw_development_state_init, photo_value_reimport_raw_development_state_free_value, photo_value_reimport_raw_development_state_copy_value, photo_value_reimport_raw_development_state_peek_pointer, "p", photo_value_reimport_raw_development_state_collect_value, "p", photo_value_reimport_raw_development_state_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentState), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_reimport_raw_development_state_type_id;
- photo_reimport_raw_development_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportRawDevelopmentState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_reimport_raw_development_state_type_id__volatile, photo_reimport_raw_development_state_type_id);
- }
- return photo_reimport_raw_development_state_type_id__volatile;
-}
-
-
-gpointer
-photo_reimport_raw_development_state_ref (gpointer instance)
-{
- PhotoReimportRawDevelopmentState * self;
- self = instance;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- return instance;
-#line 34145 "Photo.c"
-}
-
-
-void
-photo_reimport_raw_development_state_unref (gpointer instance)
-{
- PhotoReimportRawDevelopmentState * self;
- self = instance;
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_GET_CLASS (self)->finalize (self);
-#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 34160 "Photo.c"
- }
-}
-
-
-static PhotoReimportRawDevelopmentStateImpl*
-photo_reimport_raw_development_state_impl_construct (GType object_type)
-{
- PhotoReimportRawDevelopmentStateImpl* self = NULL;
-#line 1416 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoReimportRawDevelopmentStateImpl*) photo_reimport_raw_development_state_construct (object_type);
-#line 1416 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 34173 "Photo.c"
-}
-
-
-static PhotoReimportRawDevelopmentStateImpl*
-photo_reimport_raw_development_state_impl_new (void)
-{
-#line 1416 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_reimport_raw_development_state_impl_construct (PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL);
-#line 34182 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_add (PhotoReimportRawDevelopmentStateImpl* self,
- BackingPhotoRow* backing,
- PhotoMetadata* metadata)
-{
- GeeCollection* _tmp0_;
- PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp1_;
- PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp2_;
-#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (self));
-#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_BACKING_PHOTO_ROW (backing));
-#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 1420 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->list;
-#line 1420 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_reimport_raw_development_state_impl_dev_to_reimport_new (backing, metadata);
-#line 1420 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 1420 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_collection_add (_tmp0_, _tmp2_);
-#line 1420 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (_tmp2_);
-#line 34210 "Photo.c"
-}
-
-
-static gint
-photo_reimport_raw_development_state_impl_get_size (PhotoReimportRawDevelopmentStateImpl* self)
-{
- gint result = 0;
- GeeCollection* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 1423 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (self), 0);
-#line 1424 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->list;
-#line 1424 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_collection_get_size (_tmp0_);
-#line 1424 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 1424 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 1424 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 34233 "Photo.c"
-}
-
-
-static PhotoReimportRawDevelopmentStateImplDevToReimport*
-photo_reimport_raw_development_state_impl_dev_to_reimport_construct (GType object_type,
- BackingPhotoRow* backing,
- PhotoMetadata* metadata)
-{
- PhotoReimportRawDevelopmentStateImplDevToReimport* self = NULL;
- BackingPhotoRow* _tmp0_;
- PhotoMetadata* _tmp1_;
-#line 1407 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_BACKING_PHOTO_ROW (backing), NULL);
-#line 1407 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL);
-#line 1407 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (PhotoReimportRawDevelopmentStateImplDevToReimport*) g_type_create_instance (object_type);
-#line 1408 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _backing_photo_row_ref0 (backing);
-#line 1408 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing);
-#line 1408 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing = _tmp0_;
-#line 1409 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _media_metadata_ref0 (metadata);
-#line 1409 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (self->metadata);
-#line 1409 "/home/jens/Source/shotwell/src/Photo.vala"
- self->metadata = _tmp1_;
-#line 1407 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 34265 "Photo.c"
-}
-
-
-static PhotoReimportRawDevelopmentStateImplDevToReimport*
-photo_reimport_raw_development_state_impl_dev_to_reimport_new (BackingPhotoRow* backing,
- PhotoMetadata* metadata)
-{
-#line 1407 "/home/jens/Source/shotwell/src/Photo.vala"
- return photo_reimport_raw_development_state_impl_dev_to_reimport_construct (PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, backing, metadata);
-#line 34275 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_value_dev_to_reimport_init (GValue* value)
-{
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 34284 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_value_dev_to_reimport_free_value (GValue* value)
-{
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (value->data[0].v_pointer) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_impl_dev_to_reimport_unref (value->data[0].v_pointer);
-#line 34295 "Photo.c"
- }
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_value_dev_to_reimport_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (src_value->data[0].v_pointer) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (src_value->data[0].v_pointer);
-#line 34308 "Photo.c"
- } else {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 34312 "Photo.c"
- }
-}
-
-
-static gpointer
-photo_reimport_raw_development_state_impl_value_dev_to_reimport_peek_pointer (const GValue* value)
-{
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 34322 "Photo.c"
-}
-
-
-static gchar*
-photo_reimport_raw_development_state_impl_value_dev_to_reimport_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (collect_values[0].v_pointer) {
-#line 34334 "Photo.c"
- PhotoReimportRawDevelopmentStateImplDevToReimport * object;
- object = collect_values[0].v_pointer;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 34341 "Photo.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.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 34345 "Photo.c"
- }
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (object);
-#line 34349 "Photo.c"
- } else {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 34353 "Photo.c"
- }
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 34357 "Photo.c"
-}
-
-
-static gchar*
-photo_reimport_raw_development_state_impl_value_dev_to_reimport_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoReimportRawDevelopmentStateImplDevToReimport ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!object_p) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 34373 "Photo.c"
- }
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!value->data[0].v_pointer) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = NULL;
-#line 34379 "Photo.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = value->data[0].v_pointer;
-#line 34383 "Photo.c"
- } else {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- *object_p = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (value->data[0].v_pointer);
-#line 34387 "Photo.c"
- }
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 34391 "Photo.c"
-}
-
-
-static GParamSpec*
-photo_reimport_raw_development_state_impl_param_spec_dev_to_reimport (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport* spec;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT), NULL);
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- return G_PARAM_SPEC (spec);
-#line 34411 "Photo.c"
-}
-
-
-static gpointer
-photo_reimport_raw_development_state_impl_value_get_dev_to_reimport (const GValue* value)
-{
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT), NULL);
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- return value->data[0].v_pointer;
-#line 34422 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_value_set_dev_to_reimport (GValue* value,
- gpointer v_object)
-{
- PhotoReimportRawDevelopmentStateImplDevToReimport * old;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT));
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT));
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_impl_dev_to_reimport_ref (value->data[0].v_pointer);
-#line 34445 "Photo.c"
- } else {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 34449 "Photo.c"
- }
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_impl_dev_to_reimport_unref (old);
-#line 34455 "Photo.c"
- }
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_value_take_dev_to_reimport (GValue* value,
- gpointer v_object)
-{
- PhotoReimportRawDevelopmentStateImplDevToReimport * old;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT));
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- old = value->data[0].v_pointer;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (v_object) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT));
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = v_object;
-#line 34477 "Photo.c"
- } else {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- value->data[0].v_pointer = NULL;
-#line 34481 "Photo.c"
- }
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_impl_dev_to_reimport_unref (old);
-#line 34487 "Photo.c"
- }
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_dev_to_reimport_class_init (PhotoReimportRawDevelopmentStateImplDevToReimportClass * klass)
-{
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_impl_dev_to_reimport_parent_class = g_type_class_peek_parent (klass);
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoReimportRawDevelopmentStateImplDevToReimportClass *) klass)->finalize = photo_reimport_raw_development_state_impl_dev_to_reimport_finalize;
-#line 34499 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_dev_to_reimport_instance_init (PhotoReimportRawDevelopmentStateImplDevToReimport * self)
-{
- BackingPhotoRow* _tmp0_;
-#line 1404 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = backing_photo_row_new ();
-#line 1404 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing = _tmp0_;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- self->ref_count = 1;
-#line 34513 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_dev_to_reimport_finalize (PhotoReimportRawDevelopmentStateImplDevToReimport * obj)
-{
- PhotoReimportRawDevelopmentStateImplDevToReimport * self;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimport);
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_destroy (self);
-#line 1404 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing);
-#line 1405 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (self->metadata);
-#line 34529 "Photo.c"
-}
-
-
-GType
-photo_reimport_raw_development_state_impl_dev_to_reimport_get_type (void)
-{
- static volatile gsize photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile = 0;
- if (g_once_init_enter (&photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { photo_reimport_raw_development_state_impl_value_dev_to_reimport_init, photo_reimport_raw_development_state_impl_value_dev_to_reimport_free_value, photo_reimport_raw_development_state_impl_value_dev_to_reimport_copy_value, photo_reimport_raw_development_state_impl_value_dev_to_reimport_peek_pointer, "p", photo_reimport_raw_development_state_impl_value_dev_to_reimport_collect_value, "p", photo_reimport_raw_development_state_impl_value_dev_to_reimport_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateImplDevToReimportClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentStateImplDevToReimport), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_reimport_raw_development_state_impl_dev_to_reimport_type_id;
- photo_reimport_raw_development_state_impl_dev_to_reimport_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportRawDevelopmentStateImplDevToReimport", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile, photo_reimport_raw_development_state_impl_dev_to_reimport_type_id);
- }
- return photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile;
-}
-
-
-static gpointer
-photo_reimport_raw_development_state_impl_dev_to_reimport_ref (gpointer instance)
-{
- PhotoReimportRawDevelopmentStateImplDevToReimport * self;
- self = instance;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- return instance;
-#line 34558 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_dev_to_reimport_unref (gpointer instance)
-{
- PhotoReimportRawDevelopmentStateImplDevToReimport * self;
- self = instance;
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_GET_CLASS (self)->finalize (self);
-#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 34573 "Photo.c"
- }
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_class_init (PhotoReimportRawDevelopmentStateImplClass * klass)
-{
-#line 1402 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_reimport_raw_development_state_impl_parent_class = g_type_class_peek_parent (klass);
-#line 1402 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoReimportRawDevelopmentStateClass *) klass)->finalize = photo_reimport_raw_development_state_impl_finalize;
-#line 34585 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_instance_init (PhotoReimportRawDevelopmentStateImpl * self)
-{
- GeeArrayList* _tmp0_;
-#line 1413 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_array_list_new (PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, (GBoxedCopyFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_ref, (GDestroyNotify) photo_reimport_raw_development_state_impl_dev_to_reimport_unref, NULL, NULL, NULL);
-#line 1413 "/home/jens/Source/shotwell/src/Photo.vala"
- self->list = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1414 "/home/jens/Source/shotwell/src/Photo.vala"
- self->metadata_only = FALSE;
-#line 34599 "Photo.c"
-}
-
-
-static void
-photo_reimport_raw_development_state_impl_finalize (PhotoReimportRawDevelopmentState * obj)
-{
- PhotoReimportRawDevelopmentStateImpl * self;
-#line 1402 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl);
-#line 1413 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->list);
-#line 1402 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS (photo_reimport_raw_development_state_impl_parent_class)->finalize (obj);
-#line 34613 "Photo.c"
-}
-
-
-static GType
-photo_reimport_raw_development_state_impl_get_type (void)
-{
- static volatile gsize photo_reimport_raw_development_state_impl_type_id__volatile = 0;
- if (g_once_init_enter (&photo_reimport_raw_development_state_impl_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentStateImpl), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_impl_instance_init, NULL };
- GType photo_reimport_raw_development_state_impl_type_id;
- photo_reimport_raw_development_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, "PhotoReimportRawDevelopmentStateImpl", &g_define_type_info, 0);
- g_once_init_leave (&photo_reimport_raw_development_state_impl_type_id__volatile, photo_reimport_raw_development_state_impl_type_id);
- }
- return photo_reimport_raw_development_state_impl_type_id__volatile;
-}
-
-
-static void
-photo_class_init (PhotoClass * klass)
-{
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_parent_class = g_type_class_peek_parent (klass);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_class_add_private (klass, sizeof (PhotoPrivate));
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_editable_replaced = (void (*) (Photo *, GFile*, GFile*)) photo_real_notify_editable_replaced;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_raw_development_modified = (void (*) (Photo *)) photo_real_notify_raw_development_modified;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_baseline_replaced = (void (*) (Photo *)) photo_real_notify_baseline_replaced;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_master_reimported = (void (*) (Photo *, PhotoMetadata*)) photo_real_notify_master_reimported;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_editable_reimported = (void (*) (Photo *, PhotoMetadata*)) photo_real_notify_editable_reimported;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_source_reimported = (void (*) (Photo *, PhotoMetadata*)) photo_real_notify_source_reimported;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_baseline_reimported = (void (*) (Photo *, PhotoMetadata*)) photo_real_notify_baseline_reimported;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) photo_real_internal_delete_backing;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_backing_files_state = (BackingFileState** (*) (MediaSource *, int*)) photo_real_get_backing_files_state;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->apply_user_metadata_for_reimport = (void (*) (Photo *, PhotoMetadata*)) photo_real_apply_user_metadata_for_reimport;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) photo_real_get_typename;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) photo_real_get_instance_id;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataSourceClass *) klass)->get_source_id = (gchar* (*) (DataSource *)) photo_real_get_source_id;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) photo_real_get_preferred_thumbnail_format;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) photo_real_create_thumbnail;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_file = (GFile* (*) (MediaSource *)) photo_real_get_file;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_master_file = (GFile* (*) (MediaSource *)) photo_real_get_master_file;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_timestamp = (time_t (*) (MediaSource *)) photo_real_get_timestamp;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_event_id = (void (*) (MediaSource *, EventID*)) photo_real_get_event_id;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_import_id = (void (*) (MediaSource *, ImportID*)) photo_real_get_import_id;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_master_md5 = (gchar* (*) (MediaSource *)) photo_real_get_master_md5;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_rating = (Rating (*) (MediaSource *)) photo_real_get_rating;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->set_rating = (void (*) (MediaSource *, Rating)) photo_real_set_rating;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->increase_rating = (void (*) (MediaSource *)) photo_real_increase_rating;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->decrease_rating = (void (*) (MediaSource *)) photo_real_decrease_rating;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataSourceClass *) klass)->commit_backlinks = (void (*) (DataSource *, SourceCollection*, const gchar*)) photo_real_commit_backlinks;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->set_event_id = (gboolean (*) (MediaSource *, EventID*)) photo_real_set_event_id;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) photo_real_to_string;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) photo_real_equals;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_filesize = (guint64 (*) (MediaSource *)) photo_real_get_filesize;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_master_filesize = (guint64 (*) (MediaSource *)) photo_real_get_master_filesize;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_exposure_time = (time_t (*) (MediaSource *)) photo_real_get_exposure_time;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_basename = (gchar* (*) (MediaSource *)) photo_real_get_basename;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_title = (gchar* (*) (MediaSource *)) photo_real_get_title;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_comment = (gchar* (*) (MediaSource *)) photo_real_get_comment;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->set_title = (void (*) (MediaSource *, const gchar*)) photo_real_set_title;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->set_comment = (gboolean (*) (MediaSource *, const gchar*)) photo_real_set_comment;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_dimensions = (void (*) (MediaSource *, PhotoException, Dimensions*)) photo_real_get_dimensions;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoSourceClass *) klass)->get_metadata = (PhotoMetadata* (*) (PhotoSource *)) photo_real_get_metadata;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->rotate = (void (*) (Photo *, Rotation)) photo_real_rotate;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoSourceClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoSource *, Scaling*, GError**)) photo_real_get_pixbuf;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->has_user_generated_metadata = (gboolean (*) (Photo *)) photo_real_has_user_generated_metadata;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->set_user_metadata_for_export = (void (*) (Photo *, PhotoMetadata*)) photo_real_set_user_metadata_for_export;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->editable_replaced = photo_real_editable_replaced;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->raw_development_modified = photo_real_raw_development_modified;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->baseline_replaced = photo_real_baseline_replaced;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->master_reimported = photo_real_master_reimported;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->editable_reimported = photo_real_editable_reimported;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->baseline_reimported = photo_real_baseline_reimported;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->source_reimported = photo_real_source_reimported;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_photo_get_property;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_photo_set_property;
-#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"
- photo_signals[PHOTO_EDITABLE_REPLACED_SIGNAL] = 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"
- photo_signals[PHOTO_RAW_DEVELOPMENT_MODIFIED_SIGNAL] = 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"
- photo_signals[PHOTO_BASELINE_REPLACED_SIGNAL] = g_signal_new ("baseline-replaced", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, baseline_replaced), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_signals[PHOTO_MASTER_REIMPORTED_SIGNAL] = g_signal_new ("master-reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, master_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_signals[PHOTO_EDITABLE_REIMPORTED_SIGNAL] = g_signal_new ("editable-reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, editable_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_signals[PHOTO_BASELINE_REIMPORTED_SIGNAL] = g_signal_new ("baseline-reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, baseline_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_signals[PHOTO_SOURCE_REIMPORTED_SIGNAL] = g_signal_new ("source-reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, source_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA);
-#line 326 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_init (&__lock_photo_source_pixbuf_cache);
-#line 34760 "Photo.c"
-}
-
-
-static void
-photo_dateable_interface_init (DateableIface * iface)
-{
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_dateable_parent_iface = g_type_interface_peek_parent (iface);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->get_exposure_time = (time_t (*) (Dateable *)) photo_real_get_exposure_time;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->set_exposure_time = (void (*) (Dateable *, time_t)) photo_real_set_exposure_time;
-#line 34773 "Photo.c"
-}
-
-
-static void
-photo_instance_init (Photo * self)
-{
- BackingPhotoRow* _tmp0_;
- PhotoBackingReaders* _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv = PHOTO_GET_PRIVATE (self);
-#line 331 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_init (&self->priv->__lock_row);
-#line 332 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = backing_photo_row_new ();
-#line 332 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable = _tmp0_;
-#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_init (&self->priv->__lock_readers);
-#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_backing_readers_new ();
-#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->readers = _tmp1_;
-#line 334 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->transformer = NULL;
-#line 335 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->adjustments = NULL;
-#line 337 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->file_title = NULL;
-#line 338 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable_monitor = NULL;
-#line 339 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->reimport_editable_scheduler = NULL;
-#line 340 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->update_editable_attributes_scheduler = NULL;
-#line 341 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->remove_editable_scheduler = NULL;
-#line 343 "/home/jens/Source/shotwell/src/Photo.vala"
- self->can_rotate_now = TRUE;
-#line 346 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_init (&self->priv->__lock_developments);
-#line 346 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->developments = NULL;
-#line 353 "/home/jens/Source/shotwell/src/Photo.vala"
- self->backing_photo_row = NULL;
-#line 34818 "Photo.c"
-}
-
-
-static void
-photo_finalize (GObject * obj)
-{
- Photo * self;
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO, Photo);
-#line 331 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_clear (&self->priv->__lock_row);
-#line 331 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (self->row);
-#line 332 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->priv->editable);
-#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_clear (&self->priv->__lock_readers);
-#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_backing_readers_unref0 (self->priv->readers);
-#line 334 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 335 "/home/jens/Source/shotwell/src/Photo.vala"
- _pixel_transformation_bundle_unref0 (self->priv->adjustments);
-#line 337 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (self->priv->file_title);
-#line 338 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->editable_monitor);
-#line 339 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->reimport_editable_scheduler);
-#line 340 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->update_editable_attributes_scheduler);
-#line 341 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->remove_editable_scheduler);
-#line 346 "/home/jens/Source/shotwell/src/Photo.vala"
- g_rec_mutex_clear (&self->priv->__lock_developments);
-#line 346 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->developments);
-#line 353 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (self->backing_photo_row);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (photo_parent_class)->finalize (obj);
-#line 34860 "Photo.c"
-}
-
-
-GType
-photo_get_type (void)
-{
- static volatile gsize photo_type_id__volatile = 0;
- if (g_once_init_enter (&photo_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Photo), 0, (GInstanceInitFunc) photo_instance_init, NULL };
- static const GInterfaceInfo dateable_info = { (GInterfaceInitFunc) photo_dateable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType photo_type_id;
- photo_type_id = g_type_register_static (TYPE_PHOTO_SOURCE, "Photo", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_type_add_interface_static (photo_type_id, TYPE_DATEABLE, &dateable_info);
- g_once_init_leave (&photo_type_id__volatile, photo_type_id);
- }
- return photo_type_id__volatile;
-}
-
-
-static void
-_vala_photo_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- Photo * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PHOTO, Photo);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (property_id) {
-#line 34890 "Photo.c"
- default:
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 34896 "Photo.c"
- }
-}
-
-
-static void
-_vala_photo_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- Photo * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PHOTO, Photo);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- switch (property_id) {
-#line 34911 "Photo.c"
- default:
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 34917 "Photo.c"
- }
-}
-
-
-GType
-library_photo_source_collection_state_get_type (void)
-{
- static volatile gsize library_photo_source_collection_state_type_id__volatile = 0;
- if (g_once_init_enter (&library_photo_source_collection_state_type_id__volatile)) {
- static const GEnumValue values[] = {{LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN", "unknown"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE", "online"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE", "offline"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH", "trash"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE", "editable"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER", "developer"}, {0, NULL, NULL}};
- GType library_photo_source_collection_state_type_id;
- library_photo_source_collection_state_type_id = g_enum_register_static ("LibraryPhotoSourceCollectionState", values);
- g_once_init_leave (&library_photo_source_collection_state_type_id__volatile, library_photo_source_collection_state_type_id);
- }
- return library_photo_source_collection_state_type_id__volatile;
-}
-
-
-static guint
-_file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = file_hash ((GFile*) v);
-#line 4483 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 34944 "Photo.c"
-}
-
-
-static gboolean
-_file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = file_equal ((GFile*) a, (GFile*) b);
-#line 4483 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 34957 "Photo.c"
-}
-
-
-static gint
-_int64_compare_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = int64_compare ((gint64*) a, (gint64*) b);
-#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 34970 "Photo.c"
-}
-
-
-static gint64*
-_int64_dup (gint64* self)
-{
- gint64* dup;
-#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
- dup = g_new0 (gint64, 1);
-#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
- memcpy (dup, self, sizeof (gint64));
-#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
- return dup;
-#line 34984 "Photo.c"
-}
-
-
-static gboolean
-_int64_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = int64_equal ((gint64*) a, (gint64*) b);
-#line 4489 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 34997 "Photo.c"
-}
-
-
-static gint64
-_photo_get_photo_key_get_source_database_key (DataSource* source,
- gpointer self)
-{
- gint64 result;
- result = photo_get_photo_key (source);
-#line 4509 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35009 "Photo.c"
-}
-
-
-static void
-_library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self)
-{
-#line 4511 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_on_trashcan_contents_altered ((LibraryPhotoSourceCollection*) self, added, removed);
-#line 35021 "Photo.c"
-}
-
-
-static void
-_library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self)
-{
-#line 4512 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_on_offline_contents_altered ((LibraryPhotoSourceCollection*) self, added, removed);
-#line 35033 "Photo.c"
-}
-
-
-LibraryPhotoSourceCollection*
-library_photo_source_collection_construct (GType object_type)
-{
- LibraryPhotoSourceCollection* self = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- MediaSourceHoldingTank* _tmp2_;
- MediaSourceHoldingTank* _tmp3_;
-#line 4509 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (LibraryPhotoSourceCollection*) media_source_collection_construct (object_type, "LibraryPhotoSourceCollection", _photo_get_photo_key_get_source_database_key, NULL);
-#line 4511 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4511 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4511 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered, self);
-#line 4511 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 4512 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4512 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 4512 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered, self);
-#line 4512 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp3_);
-#line 4508 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 35065 "Photo.c"
-}
-
-
-LibraryPhotoSourceCollection*
-library_photo_source_collection_new (void)
-{
-#line 4508 "/home/jens/Source/shotwell/src/Photo.vala"
- return library_photo_source_collection_construct (TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION);
-#line 35074 "Photo.c"
-}
-
-
-static gboolean
-_library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep (DataSource* source,
- Alteration* alteration,
- gpointer self)
-{
- gboolean result;
- result = library_photo_source_collection_check_if_trashed_photo ((LibraryPhotoSourceCollection*) self, source, alteration);
-#line 4516 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35087 "Photo.c"
-}
-
-
-static MediaSourceHoldingTank*
-library_photo_source_collection_real_create_trashcan (MediaSourceCollection* base)
-{
- LibraryPhotoSourceCollection * self;
- MediaSourceHoldingTank* result = NULL;
- LibraryPhotoSourceHoldingTank* _tmp0_;
-#line 4515 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4516 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = library_photo_source_holding_tank_new (self, _library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep, self, _photo_get_photo_key_get_source_database_key, NULL);
-#line 4516 "/home/jens/Source/shotwell/src/Photo.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank);
-#line 4516 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35105 "Photo.c"
-}
-
-
-static gboolean
-_library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep (DataSource* source,
- Alteration* alteration,
- gpointer self)
-{
- gboolean result;
- result = library_photo_source_collection_check_if_offline_photo ((LibraryPhotoSourceCollection*) self, source, alteration);
-#line 4520 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35118 "Photo.c"
-}
-
-
-static MediaSourceHoldingTank*
-library_photo_source_collection_real_create_offline_bin (MediaSourceCollection* base)
-{
- LibraryPhotoSourceCollection * self;
- MediaSourceHoldingTank* result = NULL;
- LibraryPhotoSourceHoldingTank* _tmp0_;
-#line 4519 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4520 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = library_photo_source_holding_tank_new (self, _library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep, self, _photo_get_photo_key_get_source_database_key, NULL);
-#line 4520 "/home/jens/Source/shotwell/src/Photo.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank);
-#line 4520 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35136 "Photo.c"
-}
-
-
-static MediaMonitor*
-library_photo_source_collection_real_create_media_monitor (MediaSourceCollection* base,
- Workers* workers,
- GCancellable* cancellable)
-{
- LibraryPhotoSourceCollection * self;
- MediaMonitor* result = NULL;
- PhotoMonitor* _tmp0_;
-#line 4523 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4523 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_WORKERS (workers), NULL);
-#line 4523 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 4524 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_monitor_new (workers, cancellable);
-#line 4524 "/home/jens/Source/shotwell/src/Photo.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_MONITOR, MediaMonitor);
-#line 4524 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35160 "Photo.c"
-}
-
-
-static gboolean
-library_photo_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source)
-{
- LibraryPhotoSourceCollection * self;
- gboolean result = FALSE;
-#line 4527 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4527 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 4528 "/home/jens/Source/shotwell/src/Photo.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO);
-#line 4528 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35178 "Photo.c"
-}
-
-
-static gchar*
-library_photo_source_collection_real_get_typename (MediaSourceCollection* base)
-{
- LibraryPhotoSourceCollection * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4532 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = g_strdup (PHOTO_TYPENAME);
-#line 4532 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp0_;
-#line 4532 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35196 "Photo.c"
-}
-
-
-static gboolean
-library_photo_source_collection_real_is_file_recognized (MediaSourceCollection* base,
- GFile* file)
-{
- LibraryPhotoSourceCollection * self;
- gboolean result = FALSE;
-#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_file_format_is_file_supported (file);
-#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 35214 "Photo.c"
-}
-
-
-static void
-_library_photo_source_collection_on_editable_replaced_photo_editable_replaced (Photo* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self)
-{
-#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_on_editable_replaced ((LibraryPhotoSourceCollection*) self, _sender, old_file, new_file);
-#line 35226 "Photo.c"
-}
-
-
-static void
-_library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified (Photo* _sender,
- gpointer self)
-{
-#line 4554 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_on_raw_development_modified ((LibraryPhotoSourceCollection*) self, _sender);
-#line 35236 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_notify_contents_altered (DataCollection* base,
- GeeIterable* added,
- GeeIterable* removed)
-{
- LibraryPhotoSourceCollection * self;
-#line 4539 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4539 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 4539 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 4541 "/home/jens/Source/shotwell/src/Photo.vala"
- if (added != NULL) {
-#line 35254 "Photo.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _object_it = _tmp0_;
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 35264 "Photo.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- LibraryPhoto* photo = NULL;
- DataObject* _tmp4_;
- LibraryPhoto* _tmp5_;
- GFile* editable = NULL;
- LibraryPhoto* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
- LibraryPhoto* _tmp12_;
- GeeCollection* raw_list = NULL;
- LibraryPhoto* _tmp13_;
- GeeCollection* _tmp14_;
- GeeCollection* _tmp15_;
- LibraryPhoto* _tmp24_;
- gint64 master_filesize = 0LL;
- LibraryPhoto* _tmp25_;
- BackingPhotoRow* _tmp26_;
- BackingPhotoRow* _tmp27_;
- gint64 _tmp28_;
- gint64 _tmp29_;
- gint64 _tmp30_ = 0LL;
- LibraryPhoto* _tmp31_;
- BackingPhotoRow* _tmp32_;
- BackingPhotoRow* _tmp33_;
- gboolean _tmp34_;
- gint64 editable_filesize = 0LL;
- GeeMultiMap* _tmp39_;
- gint64 _tmp40_;
- LibraryPhoto* _tmp41_;
- GeeHashMap* _tmp42_;
- LibraryPhoto* _tmp43_;
- gint64 _tmp44_;
- gint64 _tmp45_;
- GeeCollection* raw_rows = NULL;
- LibraryPhoto* _tmp52_;
- GeeCollection* _tmp53_;
- GeeCollection* _tmp54_;
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _object_it;
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 35311 "Photo.c"
- }
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _object_it;
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- object = (DataObject*) _tmp3_;
-#line 4543 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = object;
-#line 4543 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 4543 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp5_;
-#line 4545 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo;
-#line 4545 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo));
-#line 4545 "/home/jens/Source/shotwell/src/Photo.vala"
- editable = _tmp7_;
-#line 4546 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = editable;
-#line 4546 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ != NULL) {
-#line 35335 "Photo.c"
- GeeHashMap* _tmp9_;
- GFile* _tmp10_;
- LibraryPhoto* _tmp11_;
-#line 4547 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = self->priv->by_editable_file;
-#line 4547 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = editable;
-#line 4547 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo;
-#line 4547 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_, _tmp11_);
-#line 35347 "Photo.c"
- }
-#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo;
-#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO, Photo), "editable-replaced", (GCallback) _library_photo_source_collection_on_editable_replaced_photo_editable_replaced, self);
-#line 4550 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = photo;
-#line 4550 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO, Photo));
-#line 4550 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_list = _tmp14_;
-#line 4551 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = raw_list;
-#line 4551 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp15_ != NULL) {
-#line 35363 "Photo.c"
- {
- GeeIterator* _f_it = NULL;
- GeeCollection* _tmp16_;
- GeeIterator* _tmp17_;
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = raw_list;
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- _f_it = _tmp17_;
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 35376 "Photo.c"
- GeeIterator* _tmp18_;
- GFile* f = NULL;
- GeeIterator* _tmp19_;
- gpointer _tmp20_;
- GeeHashMap* _tmp21_;
- GFile* _tmp22_;
- LibraryPhoto* _tmp23_;
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _f_it;
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp18_)) {
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 35390 "Photo.c"
- }
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _f_it;
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = gee_iterator_get (_tmp19_);
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- f = (GFile*) _tmp20_;
-#line 4553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = self->priv->by_raw_development_file;
-#line 4553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = f;
-#line 4553 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = photo;
-#line 4553 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, _tmp23_);
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 35408 "Photo.c"
- }
-#line 4552 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_f_it);
-#line 35412 "Photo.c"
- }
- }
-#line 4554 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = photo;
-#line 4554 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PHOTO, Photo), "raw-development-modified", (GCallback) _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified, self);
-#line 4556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = photo;
-#line 4556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo));
-#line 4556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp26_;
-#line 4556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = _tmp27_->filesize;
-#line 4556 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _tmp28_;
-#line 4556 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp27_);
-#line 4556 "/home/jens/Source/shotwell/src/Photo.vala"
- master_filesize = _tmp29_;
-#line 4557 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = photo;
-#line 4557 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PHOTO, Photo));
-#line 4557 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_;
-#line 4557 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_ != NULL;
-#line 4557 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp33_);
-#line 4557 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp34_) {
-#line 35445 "Photo.c"
- LibraryPhoto* _tmp35_;
- BackingPhotoRow* _tmp36_;
- BackingPhotoRow* _tmp37_;
- gint64 _tmp38_;
-#line 4558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = photo;
-#line 4558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PHOTO, Photo));
-#line 4558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _tmp36_;
-#line 4558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _tmp37_->filesize;
-#line 4558 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp38_;
-#line 4558 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp37_);
-#line 35462 "Photo.c"
- } else {
-#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = (gint64) -1;
-#line 35466 "Photo.c"
- }
-#line 4557 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_filesize = _tmp30_;
-#line 4560 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = self->priv->filesize_to_photo;
-#line 4560 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = master_filesize;
-#line 4560 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = photo;
-#line 4560 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp39_, &_tmp40_, _tmp41_);
-#line 4561 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = self->priv->photo_to_master_filesize;
-#line 4561 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = photo;
-#line 4561 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = master_filesize;
-#line 4561 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp43_, &_tmp44_);
-#line 4562 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = editable_filesize;
-#line 4562 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp45_ >= ((gint64) 0)) {
-#line 35490 "Photo.c"
- GeeMultiMap* _tmp46_;
- gint64 _tmp47_;
- LibraryPhoto* _tmp48_;
- GeeHashMap* _tmp49_;
- LibraryPhoto* _tmp50_;
- gint64 _tmp51_;
-#line 4563 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = self->priv->filesize_to_photo;
-#line 4563 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = editable_filesize;
-#line 4563 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = photo;
-#line 4563 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp46_, &_tmp47_, _tmp48_);
-#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = self->priv->photo_to_editable_filesize;
-#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = photo;
-#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = editable_filesize;
-#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp50_, &_tmp51_);
-#line 35513 "Photo.c"
- }
-#line 4567 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = photo;
-#line 4567 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_PHOTO, Photo));
-#line 4567 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_rows = _tmp53_;
-#line 4568 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = raw_rows;
-#line 4568 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp54_ != NULL) {
-#line 35525 "Photo.c"
- {
- GeeIterator* _row_it = NULL;
- GeeCollection* _tmp55_;
- GeeIterator* _tmp56_;
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = raw_rows;
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- _row_it = _tmp56_;
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 35538 "Photo.c"
- GeeIterator* _tmp57_;
- BackingPhotoRow* row = NULL;
- GeeIterator* _tmp58_;
- gpointer _tmp59_;
- BackingPhotoRow* _tmp60_;
- gint64 _tmp61_;
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = _row_it;
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp57_)) {
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 35551 "Photo.c"
- }
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = _row_it;
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = gee_iterator_get (_tmp58_);
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- row = (BackingPhotoRow*) _tmp59_;
-#line 4570 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = row;
-#line 4570 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = _tmp60_->filesize;
-#line 4570 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp61_ >= ((gint64) 0)) {
-#line 35565 "Photo.c"
- GeeMultiMap* _tmp62_;
- BackingPhotoRow* _tmp63_;
- gint64 _tmp64_;
- LibraryPhoto* _tmp65_;
- GeeMultiMap* _tmp66_;
- LibraryPhoto* _tmp67_;
- BackingPhotoRow* _tmp68_;
- gint64 _tmp69_;
-#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = self->priv->filesize_to_photo;
-#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = row;
-#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = _tmp63_->filesize;
-#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = photo;
-#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp62_, &_tmp64_, _tmp65_);
-#line 4572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = self->priv->photo_to_raw_development_filesize;
-#line 4572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = photo;
-#line 4572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = row;
-#line 4572 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = _tmp68_->filesize;
-#line 4572 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp66_, _tmp67_, &_tmp69_);
-#line 35594 "Photo.c"
- }
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (row);
-#line 35598 "Photo.c"
- }
-#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_row_it);
-#line 35602 "Photo.c"
- }
- }
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (raw_rows);
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (raw_list);
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable);
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (object);
-#line 35615 "Photo.c"
- }
-#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_object_it);
-#line 35619 "Photo.c"
- }
- }
-#line 4579 "/home/jens/Source/shotwell/src/Photo.vala"
- if (removed != NULL) {
-#line 35624 "Photo.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp70_;
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = gee_iterable_iterator (removed);
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _object_it = _tmp70_;
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 35634 "Photo.c"
- GeeIterator* _tmp71_;
- DataObject* object = NULL;
- GeeIterator* _tmp72_;
- gpointer _tmp73_;
- LibraryPhoto* photo = NULL;
- DataObject* _tmp74_;
- LibraryPhoto* _tmp75_;
- GFile* editable = NULL;
- LibraryPhoto* _tmp76_;
- GFile* _tmp77_;
- GFile* _tmp78_;
- LibraryPhoto* _tmp86_;
- guint _tmp87_;
- GeeCollection* raw_list = NULL;
- LibraryPhoto* _tmp88_;
- GeeCollection* _tmp89_;
- GeeCollection* _tmp90_;
- LibraryPhoto* _tmp98_;
- guint _tmp99_;
- gint64 master_filesize = 0LL;
- LibraryPhoto* _tmp100_;
- BackingPhotoRow* _tmp101_;
- BackingPhotoRow* _tmp102_;
- gint64 _tmp103_;
- gint64 _tmp104_;
- gint64 _tmp105_ = 0LL;
- LibraryPhoto* _tmp106_;
- BackingPhotoRow* _tmp107_;
- BackingPhotoRow* _tmp108_;
- gboolean _tmp109_;
- gint64 editable_filesize = 0LL;
- GeeMultiMap* _tmp114_;
- gint64 _tmp115_;
- LibraryPhoto* _tmp116_;
- GeeHashMap* _tmp117_;
- LibraryPhoto* _tmp118_;
- gint64 _tmp119_;
- GeeCollection* raw_rows = NULL;
- LibraryPhoto* _tmp125_;
- GeeCollection* _tmp126_;
- GeeCollection* _tmp127_;
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = _object_it;
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp71_)) {
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 35682 "Photo.c"
- }
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = _object_it;
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = gee_iterator_get (_tmp72_);
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- object = (DataObject*) _tmp73_;
-#line 4581 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = object;
-#line 4581 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 4581 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp75_;
-#line 4583 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = photo;
-#line 4583 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_PHOTO, Photo));
-#line 4583 "/home/jens/Source/shotwell/src/Photo.vala"
- editable = _tmp77_;
-#line 4584 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = editable;
-#line 4584 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp78_ != NULL) {
-#line 35706 "Photo.c"
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp79_;
- LibraryPhoto* _tmp80_;
- GFile* _tmp81_;
- GFile* _tmp82_;
- gboolean _tmp83_;
- gboolean _tmp84_;
- gboolean _tmp85_;
-#line 4585 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = self->priv->by_editable_file;
-#line 4585 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = photo;
-#line 4585 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_PHOTO, Photo));
-#line 4585 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = _tmp81_;
-#line 4585 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp82_, NULL);
-#line 4585 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_ = _tmp83_;
-#line 4585 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp82_);
-#line 4585 "/home/jens/Source/shotwell/src/Photo.vala"
- is_removed = _tmp84_;
-#line 4586 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp85_ = is_removed;
-#line 4586 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp85_, "is_removed");
-#line 35735 "Photo.c"
- }
-#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp86_ = photo;
-#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_parse_name ("editable-replaced", TYPE_PHOTO, &_tmp87_, NULL, FALSE);
-#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp87_, 0, NULL, (GCallback) _library_photo_source_collection_on_editable_replaced_photo_editable_replaced, self);
-#line 4590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp88_ = photo;
-#line 4590 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp89_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_PHOTO, Photo));
-#line 4590 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_list = _tmp89_;
-#line 4591 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp90_ = raw_list;
-#line 4591 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp90_ != NULL) {
-#line 35753 "Photo.c"
- {
- GeeIterator* _f_it = NULL;
- GeeCollection* _tmp91_;
- GeeIterator* _tmp92_;
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp91_ = raw_list;
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp92_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- _f_it = _tmp92_;
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 35766 "Photo.c"
- GeeIterator* _tmp93_;
- GFile* f = NULL;
- GeeIterator* _tmp94_;
- gpointer _tmp95_;
- GeeHashMap* _tmp96_;
- GFile* _tmp97_;
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp93_ = _f_it;
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp93_)) {
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 35779 "Photo.c"
- }
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp94_ = _f_it;
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp95_ = gee_iterator_get (_tmp94_);
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- f = (GFile*) _tmp95_;
-#line 4593 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp96_ = self->priv->by_raw_development_file;
-#line 4593 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp97_ = f;
-#line 4593 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp97_, NULL);
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 35795 "Photo.c"
- }
-#line 4592 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_f_it);
-#line 35799 "Photo.c"
- }
- }
-#line 4594 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp98_ = photo;
-#line 4594 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_parse_name ("raw-development-modified", TYPE_PHOTO, &_tmp99_, NULL, FALSE);
-#line 4594 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp99_, 0, NULL, (GCallback) _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified, self);
-#line 4596 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp100_ = photo;
-#line 4596 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp101_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, TYPE_PHOTO, Photo));
-#line 4596 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp102_ = _tmp101_;
-#line 4596 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp103_ = _tmp102_->filesize;
-#line 4596 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp104_ = _tmp103_;
-#line 4596 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp102_);
-#line 4596 "/home/jens/Source/shotwell/src/Photo.vala"
- master_filesize = _tmp104_;
-#line 4597 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp106_ = photo;
-#line 4597 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp107_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, TYPE_PHOTO, Photo));
-#line 4597 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp108_ = _tmp107_;
-#line 4597 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp109_ = _tmp108_ != NULL;
-#line 4597 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp108_);
-#line 4597 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp109_) {
-#line 35834 "Photo.c"
- LibraryPhoto* _tmp110_;
- BackingPhotoRow* _tmp111_;
- BackingPhotoRow* _tmp112_;
- gint64 _tmp113_;
-#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp110_ = photo;
-#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp111_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, TYPE_PHOTO, Photo));
-#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp112_ = _tmp111_;
-#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp113_ = _tmp112_->filesize;
-#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp105_ = _tmp113_;
-#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp112_);
-#line 35851 "Photo.c"
- } else {
-#line 4599 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp105_ = (gint64) -1;
-#line 35855 "Photo.c"
- }
-#line 4597 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_filesize = _tmp105_;
-#line 4600 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp114_ = self->priv->filesize_to_photo;
-#line 4600 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp115_ = master_filesize;
-#line 4600 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp116_ = photo;
-#line 4600 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove (_tmp114_, &_tmp115_, _tmp116_);
-#line 4601 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp117_ = self->priv->photo_to_master_filesize;
-#line 4601 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp118_ = photo;
-#line 4601 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp118_, NULL);
-#line 4602 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp119_ = editable_filesize;
-#line 4602 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp119_ >= ((gint64) 0)) {
-#line 35877 "Photo.c"
- GeeMultiMap* _tmp120_;
- gint64 _tmp121_;
- LibraryPhoto* _tmp122_;
- GeeHashMap* _tmp123_;
- LibraryPhoto* _tmp124_;
-#line 4603 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp120_ = self->priv->filesize_to_photo;
-#line 4603 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp121_ = editable_filesize;
-#line 4603 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp122_ = photo;
-#line 4603 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove (_tmp120_, &_tmp121_, _tmp122_);
-#line 4604 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp123_ = self->priv->photo_to_editable_filesize;
-#line 4604 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp124_ = photo;
-#line 4604 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp123_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp124_, NULL);
-#line 35897 "Photo.c"
- }
-#line 4607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp125_ = photo;
-#line 4607 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp126_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp125_, TYPE_PHOTO, Photo));
-#line 4607 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_rows = _tmp126_;
-#line 4608 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp127_ = raw_rows;
-#line 4608 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp127_ != NULL) {
-#line 35909 "Photo.c"
- {
- GeeIterator* _row_it = NULL;
- GeeCollection* _tmp128_;
- GeeIterator* _tmp129_;
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp128_ = raw_rows;
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp129_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp128_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- _row_it = _tmp129_;
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 35922 "Photo.c"
- GeeIterator* _tmp130_;
- BackingPhotoRow* row = NULL;
- GeeIterator* _tmp131_;
- gpointer _tmp132_;
- BackingPhotoRow* _tmp133_;
- gint64 _tmp134_;
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp130_ = _row_it;
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp130_)) {
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 35935 "Photo.c"
- }
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp131_ = _row_it;
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp132_ = gee_iterator_get (_tmp131_);
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- row = (BackingPhotoRow*) _tmp132_;
-#line 4610 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp133_ = row;
-#line 4610 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp134_ = _tmp133_->filesize;
-#line 4610 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp134_ >= ((gint64) 0)) {
-#line 35949 "Photo.c"
- GeeMultiMap* _tmp135_;
- BackingPhotoRow* _tmp136_;
- gint64 _tmp137_;
- LibraryPhoto* _tmp138_;
- GeeMultiMap* _tmp139_;
- LibraryPhoto* _tmp140_;
- BackingPhotoRow* _tmp141_;
- gint64 _tmp142_;
-#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp135_ = self->priv->filesize_to_photo;
-#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp136_ = row;
-#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp137_ = _tmp136_->filesize;
-#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp138_ = photo;
-#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove (_tmp135_, &_tmp137_, _tmp138_);
-#line 4612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp139_ = self->priv->photo_to_raw_development_filesize;
-#line 4612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp140_ = photo;
-#line 4612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp141_ = row;
-#line 4612 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp142_ = _tmp141_->filesize;
-#line 4612 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove (_tmp139_, _tmp140_, &_tmp142_);
-#line 35978 "Photo.c"
- }
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (row);
-#line 35982 "Photo.c"
- }
-#line 4609 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_row_it);
-#line 35986 "Photo.c"
- }
- }
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (raw_rows);
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (raw_list);
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (editable);
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (object);
-#line 35999 "Photo.c"
- }
-#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_object_it);
-#line 36003 "Photo.c"
- }
- }
-#line 4619 "/home/jens/Source/shotwell/src/Photo.vala"
- DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added, removed);
-#line 36008 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_on_editable_replaced (LibraryPhotoSourceCollection* self,
- Photo* photo,
- GFile* old_file,
- GFile* new_file)
-{
-#line 4622 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4622 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 4622 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file));
-#line 4622 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file));
-#line 4623 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old_file != NULL) {
-#line 36028 "Photo.c"
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
-#line 4624 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->by_editable_file;
-#line 4624 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), old_file, NULL);
-#line 4624 "/home/jens/Source/shotwell/src/Photo.vala"
- is_removed = _tmp1_;
-#line 4625 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = is_removed;
-#line 4625 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp2_, "is_removed");
-#line 36043 "Photo.c"
- }
-#line 4628 "/home/jens/Source/shotwell/src/Photo.vala"
- if (new_file != NULL) {
-#line 36047 "Photo.c"
- GeeHashMap* _tmp3_;
-#line 4629 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->by_editable_file;
-#line 4629 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_file, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 36053 "Photo.c"
- }
-}
-
-
-static void
-library_photo_source_collection_on_raw_development_modified (LibraryPhotoSourceCollection* self,
- Photo* _photo)
-{
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- LibraryPhoto* _tmp1_;
- GeeMultiMap* _tmp2_;
- LibraryPhoto* _tmp3_;
- GeeCollection* raw_list = NULL;
- LibraryPhoto* _tmp20_;
- GeeCollection* _tmp21_;
- GeeCollection* _tmp22_;
- GeeCollection* raw_rows = NULL;
- LibraryPhoto* _tmp31_;
- GeeCollection* _tmp32_;
- GeeCollection* _tmp33_;
-#line 4632 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4632 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (_photo));
-#line 4633 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_photo, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _photo) : NULL);
-#line 4633 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp0_;
-#line 4634 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo;
-#line 4634 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ == NULL) {
-#line 4635 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4635 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 36091 "Photo.c"
- }
-#line 4638 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->photo_to_raw_development_filesize;
-#line 4638 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo;
-#line 4638 "/home/jens/Source/shotwell/src/Photo.vala"
- if (gee_multi_map_contains (_tmp2_, _tmp3_)) {
-#line 36099 "Photo.c"
- GeeMultiMap* _tmp18_;
- LibraryPhoto* _tmp19_;
- {
- GeeIterator* _s_it = NULL;
- GeeMultiMap* _tmp4_;
- LibraryPhoto* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- GeeIterator* _tmp8_;
- GeeIterator* _tmp9_;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->photo_to_raw_development_filesize;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = gee_multi_map_get (_tmp4_, _tmp5_);
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp7_);
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _s_it = _tmp9_;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 36128 "Photo.c"
- GeeIterator* _tmp10_;
- gint64 s = 0LL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- gint64* _tmp13_;
- gint64 _tmp14_;
- GeeMultiMap* _tmp15_;
- gint64 _tmp16_;
- LibraryPhoto* _tmp17_;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _s_it;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 36144 "Photo.c"
- }
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _s_it;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = (gint64*) _tmp12_;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = *_tmp13_;
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp13_);
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- s = _tmp14_;
-#line 4640 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->priv->filesize_to_photo;
-#line 4640 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = s;
-#line 4640 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = photo;
-#line 4640 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove (_tmp15_, &_tmp16_, _tmp17_);
-#line 36166 "Photo.c"
- }
-#line 4639 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_s_it);
-#line 36170 "Photo.c"
- }
-#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = self->priv->photo_to_raw_development_filesize;
-#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = photo;
-#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove_all (_tmp18_, _tmp19_);
-#line 36178 "Photo.c"
- }
-#line 4645 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = photo;
-#line 4645 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo));
-#line 4645 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_list = _tmp21_;
-#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = raw_list;
-#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp22_ != NULL) {
-#line 36190 "Photo.c"
- {
- GeeIterator* _f_it = NULL;
- GeeCollection* _tmp23_;
- GeeIterator* _tmp24_;
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = raw_list;
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- _f_it = _tmp24_;
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 36203 "Photo.c"
- GeeIterator* _tmp25_;
- GFile* f = NULL;
- GeeIterator* _tmp26_;
- gpointer _tmp27_;
- GeeHashMap* _tmp28_;
- GFile* _tmp29_;
- LibraryPhoto* _tmp30_;
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _f_it;
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp25_)) {
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 36217 "Photo.c"
- }
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _f_it;
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = gee_iterator_get (_tmp26_);
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- f = (GFile*) _tmp27_;
-#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = self->priv->by_raw_development_file;
-#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = f;
-#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = photo;
-#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, _tmp30_);
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 36235 "Photo.c"
- }
-#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_f_it);
-#line 36239 "Photo.c"
- }
- }
-#line 4650 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = photo;
-#line 4650 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PHOTO, Photo));
-#line 4650 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_rows = _tmp32_;
-#line 4651 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = raw_rows;
-#line 4651 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp33_ != NULL) {
-#line 36252 "Photo.c"
- {
- GeeIterator* _row_it = NULL;
- GeeCollection* _tmp34_;
- GeeIterator* _tmp35_;
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = raw_rows;
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- _row_it = _tmp35_;
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 36265 "Photo.c"
- GeeIterator* _tmp36_;
- BackingPhotoRow* row = NULL;
- GeeIterator* _tmp37_;
- gpointer _tmp38_;
- BackingPhotoRow* _tmp39_;
- gint64 _tmp40_;
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _row_it;
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp36_)) {
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 36278 "Photo.c"
- }
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _row_it;
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = gee_iterator_get (_tmp37_);
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- row = (BackingPhotoRow*) _tmp38_;
-#line 4653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = row;
-#line 4653 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = _tmp39_->filesize;
-#line 4653 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp40_ > ((gint64) 0)) {
-#line 36292 "Photo.c"
- GeeMultiMap* _tmp41_;
- BackingPhotoRow* _tmp42_;
- gint64 _tmp43_;
- LibraryPhoto* _tmp44_;
- GeeMultiMap* _tmp45_;
- LibraryPhoto* _tmp46_;
- BackingPhotoRow* _tmp47_;
- gint64 _tmp48_;
-#line 4654 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = self->priv->filesize_to_photo;
-#line 4654 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = row;
-#line 4654 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp42_->filesize;
-#line 4654 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = photo;
-#line 4654 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp41_, &_tmp43_, _tmp44_);
-#line 4655 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = self->priv->photo_to_raw_development_filesize;
-#line 4655 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = photo;
-#line 4655 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = row;
-#line 4655 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp47_->filesize;
-#line 4655 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp45_, _tmp46_, &_tmp48_);
-#line 36321 "Photo.c"
- }
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (row);
-#line 36325 "Photo.c"
- }
-#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_row_it);
-#line 36329 "Photo.c"
- }
- }
-#line 4632 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (raw_rows);
-#line 4632 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (raw_list);
-#line 4632 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 36338 "Photo.c"
-}
-
-
-static gpointer
-__int64_dup0 (gpointer self)
-{
-#line 4671 "/home/jens/Source/shotwell/src/Photo.vala"
- return self ? _int64_dup (self) : NULL;
-#line 36347 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_items_altered (DataCollection* base,
- GeeMap* items)
-{
- LibraryPhotoSourceCollection * self;
-#line 4661 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4661 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_MAP (items));
-#line 36360 "Photo.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_map_get_keys (items);
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp2_);
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _object_it = _tmp4_;
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 36384 "Photo.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Alteration* alteration = NULL;
- DataObject* _tmp8_;
- gpointer _tmp9_;
- LibraryPhoto* photo = NULL;
- DataObject* _tmp10_;
- LibraryPhoto* _tmp11_;
- gboolean _tmp12_ = FALSE;
- Alteration* _tmp13_;
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _object_it;
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 36403 "Photo.c"
- }
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _object_it;
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- object = (DataObject*) _tmp7_;
-#line 4663 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = object;
-#line 4663 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = gee_map_get (items, _tmp8_);
-#line 4663 "/home/jens/Source/shotwell/src/Photo.vala"
- alteration = (Alteration*) _tmp9_;
-#line 4665 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = object;
-#line 4665 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 4665 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp11_;
-#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = alteration;
-#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
- if (alteration_has_detail (_tmp13_, "image", "master")) {
-#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = TRUE;
-#line 36429 "Photo.c"
- } else {
- Alteration* _tmp14_;
-#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = alteration;
-#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = alteration_has_detail (_tmp14_, "image", "editable");
-#line 36436 "Photo.c"
- }
-#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp12_) {
-#line 36440 "Photo.c"
- gint64 old_master_filesize = 0LL;
- GeeHashMap* _tmp15_;
- LibraryPhoto* _tmp16_;
- gpointer _tmp17_;
- gint64* _tmp18_;
- gint64 _tmp19_;
- gint64* _tmp20_ = NULL;
- GeeHashMap* _tmp21_;
- LibraryPhoto* _tmp22_;
- gint64 old_editable_filesize = 0LL;
- GeeHashMap* _tmp28_;
- LibraryPhoto* _tmp29_;
- GeeMultiMap* _tmp30_;
- gint64 _tmp31_;
- LibraryPhoto* _tmp32_;
- gint64 _tmp33_;
- gint64 master_filesize = 0LL;
- LibraryPhoto* _tmp39_;
- BackingPhotoRow* _tmp40_;
- BackingPhotoRow* _tmp41_;
- gint64 _tmp42_;
- gint64 _tmp43_;
- gint64 _tmp44_ = 0LL;
- LibraryPhoto* _tmp45_;
- BackingPhotoRow* _tmp46_;
- BackingPhotoRow* _tmp47_;
- gboolean _tmp48_;
- gint64 editable_filesize = 0LL;
- GeeHashMap* _tmp53_;
- LibraryPhoto* _tmp54_;
- gint64 _tmp55_;
- GeeMultiMap* _tmp56_;
- gint64 _tmp57_;
- LibraryPhoto* _tmp58_;
- gint64 _tmp59_;
-#line 4668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->priv->photo_to_master_filesize;
-#line 4668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = photo;
-#line 4668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp16_);
-#line 4668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = (gint64*) _tmp17_;
-#line 4668 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = *_tmp18_;
-#line 4668 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp18_);
-#line 4668 "/home/jens/Source/shotwell/src/Photo.vala"
- old_master_filesize = _tmp19_;
-#line 4669 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = self->priv->photo_to_editable_filesize;
-#line 4669 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = photo;
-#line 4669 "/home/jens/Source/shotwell/src/Photo.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_)) {
-#line 36496 "Photo.c"
- GeeHashMap* _tmp23_;
- LibraryPhoto* _tmp24_;
- gpointer _tmp25_;
-#line 4670 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = self->priv->photo_to_editable_filesize;
-#line 4670 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = photo;
-#line 4670 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp24_);
-#line 4670 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp20_);
-#line 4670 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = (gint64*) _tmp25_;
-#line 36510 "Photo.c"
- } else {
- gint64 _tmp26_;
- gint64* _tmp27_;
-#line 4671 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = (gint64) -1;
-#line 4671 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = __int64_dup0 (&_tmp26_);
-#line 4671 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp20_);
-#line 4671 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = _tmp27_;
-#line 36522 "Photo.c"
- }
-#line 4669 "/home/jens/Source/shotwell/src/Photo.vala"
- old_editable_filesize = *_tmp20_;
-#line 4673 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = self->priv->photo_to_master_filesize;
-#line 4673 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = photo;
-#line 4673 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, NULL);
-#line 4674 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = self->priv->filesize_to_photo;
-#line 4674 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = old_master_filesize;
-#line 4674 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = photo;
-#line 4674 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove (_tmp30_, &_tmp31_, _tmp32_);
-#line 4675 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = old_editable_filesize;
-#line 4675 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp33_ >= ((gint64) 0)) {
-#line 36544 "Photo.c"
- GeeHashMap* _tmp34_;
- LibraryPhoto* _tmp35_;
- GeeMultiMap* _tmp36_;
- gint64 _tmp37_;
- LibraryPhoto* _tmp38_;
-#line 4676 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = self->priv->photo_to_editable_filesize;
-#line 4676 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = photo;
-#line 4676 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp35_, NULL);
-#line 4677 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = self->priv->filesize_to_photo;
-#line 4677 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = old_editable_filesize;
-#line 4677 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = photo;
-#line 4677 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove (_tmp36_, &_tmp37_, _tmp38_);
-#line 36564 "Photo.c"
- }
-#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = photo;
-#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PHOTO, Photo));
-#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _tmp40_;
-#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = _tmp41_->filesize;
-#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = _tmp42_;
-#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp41_);
-#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
- master_filesize = _tmp43_;
-#line 4681 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = photo;
-#line 4681 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PHOTO, Photo));
-#line 4681 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = _tmp46_;
-#line 4681 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp47_ != NULL;
-#line 4681 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp47_);
-#line 4681 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp48_) {
-#line 36592 "Photo.c"
- LibraryPhoto* _tmp49_;
- BackingPhotoRow* _tmp50_;
- BackingPhotoRow* _tmp51_;
- gint64 _tmp52_;
-#line 4682 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = photo;
-#line 4682 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_PHOTO, Photo));
-#line 4682 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = _tmp50_;
-#line 4682 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = _tmp51_->filesize;
-#line 4682 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp52_;
-#line 4682 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp51_);
-#line 36609 "Photo.c"
- } else {
-#line 4683 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = (gint64) -1;
-#line 36613 "Photo.c"
- }
-#line 4681 "/home/jens/Source/shotwell/src/Photo.vala"
- editable_filesize = _tmp44_;
-#line 4684 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = self->priv->photo_to_master_filesize;
-#line 4684 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = photo;
-#line 4684 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = master_filesize;
-#line 4684 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp54_, &_tmp55_);
-#line 4685 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = self->priv->filesize_to_photo;
-#line 4685 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = master_filesize;
-#line 4685 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = photo;
-#line 4685 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp56_, &_tmp57_, _tmp58_);
-#line 4686 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = editable_filesize;
-#line 4686 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp59_ >= ((gint64) 0)) {
-#line 36637 "Photo.c"
- GeeHashMap* _tmp60_;
- LibraryPhoto* _tmp61_;
- gint64 _tmp62_;
- GeeMultiMap* _tmp63_;
- gint64 _tmp64_;
- LibraryPhoto* _tmp65_;
-#line 4687 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = self->priv->photo_to_editable_filesize;
-#line 4687 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = photo;
-#line 4687 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = editable_filesize;
-#line 4687 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp61_, &_tmp62_);
-#line 4688 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = self->priv->filesize_to_photo;
-#line 4688 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = editable_filesize;
-#line 4688 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = photo;
-#line 4688 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp63_, &_tmp64_, _tmp65_);
-#line 36660 "Photo.c"
- }
-#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp20_);
-#line 36664 "Photo.c"
- }
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (alteration);
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (object);
-#line 36672 "Photo.c"
- }
-#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_object_it);
-#line 36676 "Photo.c"
- }
-#line 4693 "/home/jens/Source/shotwell/src/Photo.vala"
- DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->items_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), items);
-#line 36680 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_postprocess_imported_media (MediaSourceCollection* base,
- GeeCollection* media_sources)
-{
- LibraryPhotoSourceCollection * self;
- GeeHashMultiMap* map = NULL;
- GeeHashMultiMap* _tmp0_;
-#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_COLLECTION (media_sources));
-#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_hash_multi_map_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
- map = _tmp0_;
-#line 36699 "Photo.c"
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp1_;
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_it = _tmp1_;
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 36709 "Photo.c"
- GeeIterator* _tmp2_;
- MediaSource* media = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- LibraryPhoto* photo = NULL;
- MediaSource* _tmp5_;
- LibraryPhoto* _tmp6_;
- PhotoMetadata* metadata = NULL;
- LibraryPhoto* _tmp7_;
- PhotoMetadata* _tmp8_;
- HierarchicalTagIndex* global_index = NULL;
- HierarchicalTagIndex* _tmp9_;
- HierarchicalTagIndex* htag_index = NULL;
- PhotoMetadata* _tmp10_;
- LibraryPhoto* _tmp15_;
- GeeCollection* _tmp16_;
- GeeCollection* _tmp17_;
- gboolean _tmp18_;
- PhotoMetadata* _tmp49_;
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _media_it;
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 36735 "Photo.c"
- }
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _media_it;
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- media = (MediaSource*) _tmp4_;
-#line 4700 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = media;
-#line 4700 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 4700 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp6_;
-#line 4701 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo;
-#line 4701 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 4701 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp8_;
-#line 4704 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = hierarchical_tag_index_get_global_index ();
-#line 4704 "/home/jens/Source/shotwell/src/Photo.vala"
- global_index = _tmp9_;
-#line 4711 "/home/jens/Source/shotwell/src/Photo.vala"
- htag_index = NULL;
-#line 4712 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = metadata;
-#line 4712 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_metadata_has_hierarchical_keywords (_tmp10_)) {
-#line 36765 "Photo.c"
- PhotoMetadata* _tmp11_;
- GeeSet* _tmp12_;
- GeeSet* _tmp13_;
- HierarchicalTagIndex* _tmp14_;
-#line 4713 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = metadata;
-#line 4713 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_metadata_get_hierarchical_keywords (_tmp11_);
-#line 4713 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 4713 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = hierarchical_tag_utilities_process_hierarchical_import_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 4713 "/home/jens/Source/shotwell/src/Photo.vala"
- _hierarchical_tag_index_unref0 (htag_index);
-#line 4713 "/home/jens/Source/shotwell/src/Photo.vala"
- htag_index = _tmp14_;
-#line 4713 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp13_);
-#line 36784 "Photo.c"
- }
-#line 4717 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = photo;
-#line 4717 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = library_photo_get_import_keywords (_tmp15_);
-#line 4717 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_;
-#line 4717 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_ != NULL;
-#line 4717 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp17_);
-#line 4717 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp18_) {
-#line 36798 "Photo.c"
- {
- GeeIterator* _keyword_it = NULL;
- LibraryPhoto* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
- GeeIterator* _tmp22_;
- GeeIterator* _tmp23_;
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = photo;
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = library_photo_get_import_keywords (_tmp19_);
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_;
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _tmp22_;
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp21_);
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _keyword_it = _tmp23_;
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 36822 "Photo.c"
- GeeIterator* _tmp24_;
- gchar* keyword = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- gboolean _tmp27_ = FALSE;
- HierarchicalTagIndex* _tmp28_;
- gchar* name = NULL;
- const gchar* _tmp31_;
- gchar* _tmp32_;
- HierarchicalTagIndex* _tmp33_;
- const gchar* _tmp34_;
- const gchar* _tmp43_;
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = _keyword_it;
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp24_)) {
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 36841 "Photo.c"
- }
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _keyword_it;
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- keyword = (gchar*) _tmp26_;
-#line 4719 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = htag_index;
-#line 4719 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp28_ != NULL) {
-#line 36853 "Photo.c"
- HierarchicalTagIndex* _tmp29_;
- const gchar* _tmp30_;
-#line 4719 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = htag_index;
-#line 4719 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = keyword;
-#line 4719 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = hierarchical_tag_index_is_tag_in_index (_tmp29_, _tmp30_);
-#line 36862 "Photo.c"
- } else {
-#line 4719 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = FALSE;
-#line 36866 "Photo.c"
- }
-#line 4719 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp27_) {
-#line 4720 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (keyword);
-#line 4720 "/home/jens/Source/shotwell/src/Photo.vala"
- continue;
-#line 36874 "Photo.c"
- }
-#line 4722 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = keyword;
-#line 4722 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = tag_prep_tag_name (_tmp31_);
-#line 4722 "/home/jens/Source/shotwell/src/Photo.vala"
- name = _tmp32_;
-#line 4724 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = global_index;
-#line 4724 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = name;
-#line 4724 "/home/jens/Source/shotwell/src/Photo.vala"
- if (hierarchical_tag_index_is_tag_in_index (_tmp33_, _tmp34_)) {
-#line 36888 "Photo.c"
- gchar* most_derived_path = NULL;
- HierarchicalTagIndex* _tmp35_;
- const gchar* _tmp36_;
- gchar* _tmp37_;
- GeeHashMultiMap* _tmp38_;
- const gchar* _tmp39_;
- Tag* _tmp40_;
- Tag* _tmp41_;
- LibraryPhoto* _tmp42_;
-#line 4725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = global_index;
-#line 4725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = name;
-#line 4725 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = hierarchical_tag_index_get_path_for_name (_tmp35_, _tmp36_);
-#line 4725 "/home/jens/Source/shotwell/src/Photo.vala"
- most_derived_path = _tmp37_;
-#line 4726 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = map;
-#line 4726 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = most_derived_path;
-#line 4726 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = tag_for_path (_tmp39_);
-#line 4726 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _tmp40_;
-#line 4726 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = photo;
-#line 4726 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp41_, _tmp42_);
-#line 4726 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp41_);
-#line 4727 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (most_derived_path);
-#line 4727 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 4727 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (keyword);
-#line 4727 "/home/jens/Source/shotwell/src/Photo.vala"
- continue;
-#line 36928 "Photo.c"
- }
-#line 4730 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = name;
-#line 4730 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp43_ != NULL) {
-#line 36934 "Photo.c"
- GeeHashMultiMap* _tmp44_;
- const gchar* _tmp45_;
- Tag* _tmp46_;
- Tag* _tmp47_;
- LibraryPhoto* _tmp48_;
-#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = map;
-#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = name;
-#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = tag_for_path (_tmp45_);
-#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = _tmp46_;
-#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = photo;
-#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp47_, _tmp48_);
-#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp47_);
-#line 36954 "Photo.c"
- }
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (keyword);
-#line 36960 "Photo.c"
- }
-#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_keyword_it);
-#line 36964 "Photo.c"
- }
- }
-#line 4735 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = metadata;
-#line 4735 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_metadata_has_hierarchical_keywords (_tmp49_)) {
-#line 36971 "Photo.c"
- {
- GeeIterator* _path_it = NULL;
- HierarchicalTagIndex* _tmp50_;
- GeeCollection* _tmp51_;
- GeeCollection* _tmp52_;
- GeeIterator* _tmp53_;
- GeeIterator* _tmp54_;
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = htag_index;
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = hierarchical_tag_index_get_all_paths (_tmp50_);
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = _tmp51_;
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = _tmp53_;
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp52_);
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _path_it = _tmp54_;
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 36995 "Photo.c"
- GeeIterator* _tmp55_;
- gchar* path = NULL;
- GeeIterator* _tmp56_;
- gpointer _tmp57_;
- gchar* name = NULL;
- const gchar* _tmp58_;
- gchar* _tmp59_;
- const gchar* _tmp60_;
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = _path_it;
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp55_)) {
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 37010 "Photo.c"
- }
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = _path_it;
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = gee_iterator_get (_tmp56_);
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- path = (gchar*) _tmp57_;
-#line 4737 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = path;
-#line 4737 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = tag_prep_tag_name (_tmp58_);
-#line 4737 "/home/jens/Source/shotwell/src/Photo.vala"
- name = _tmp59_;
-#line 4738 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = name;
-#line 4738 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp60_ != NULL) {
-#line 37028 "Photo.c"
- GeeHashMultiMap* _tmp61_;
- const gchar* _tmp62_;
- Tag* _tmp63_;
- Tag* _tmp64_;
- LibraryPhoto* _tmp65_;
-#line 4739 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = map;
-#line 4739 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = name;
-#line 4739 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = tag_for_path (_tmp62_);
-#line 4739 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = _tmp63_;
-#line 4739 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = photo;
-#line 4739 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp64_, _tmp65_);
-#line 4739 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp64_);
-#line 37048 "Photo.c"
- }
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (name);
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (path);
-#line 37054 "Photo.c"
- }
-#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_path_it);
-#line 37058 "Photo.c"
- }
- }
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _hierarchical_tag_index_unref0 (htag_index);
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _hierarchical_tag_index_unref0 (global_index);
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (media);
-#line 37071 "Photo.c"
- }
-#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_media_it);
-#line 37075 "Photo.c"
- }
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp66_;
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_it = _tmp66_;
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 37086 "Photo.c"
- GeeIterator* _tmp67_;
- MediaSource* media = NULL;
- GeeIterator* _tmp68_;
- gpointer _tmp69_;
- LibraryPhoto* photo = NULL;
- MediaSource* _tmp70_;
- LibraryPhoto* _tmp71_;
- LibraryPhoto* _tmp72_;
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = _media_it;
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp67_)) {
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 37101 "Photo.c"
- }
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = _media_it;
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp69_ = gee_iterator_get (_tmp68_);
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- media = (MediaSource*) _tmp69_;
-#line 4745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = media;
-#line 4745 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp71_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 4745 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp71_;
-#line 4746 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp72_ = photo;
-#line 4746 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_clear_import_keywords (_tmp72_);
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (media);
-#line 37123 "Photo.c"
- }
-#line 4744 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_media_it);
-#line 37127 "Photo.c"
- }
- {
- GeeIterator* _tag_it = NULL;
- GeeHashMultiMap* _tmp73_;
- GeeSet* _tmp74_;
- GeeSet* _tmp75_;
- GeeIterator* _tmp76_;
- GeeIterator* _tmp77_;
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp73_ = map;
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp74_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp75_ = _tmp74_;
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp76_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp77_ = _tmp76_;
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp75_);
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_it = _tmp77_;
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 37152 "Photo.c"
- GeeIterator* _tmp78_;
- Tag* tag = NULL;
- GeeIterator* _tmp79_;
- gpointer _tmp80_;
- Tag* _tmp81_;
- GeeHashMultiMap* _tmp82_;
- Tag* _tmp83_;
- GeeCollection* _tmp84_;
- GeeCollection* _tmp85_;
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp78_ = _tag_it;
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp78_)) {
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 37168 "Photo.c"
- }
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp79_ = _tag_it;
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp80_ = gee_iterator_get (_tmp79_);
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- tag = (Tag*) _tmp80_;
-#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp81_ = tag;
-#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp82_ = map;
-#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp83_ = tag;
-#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp84_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp83_);
-#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp85_ = _tmp84_;
-#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
- tag_attach_many (_tmp81_, _tmp85_);
-#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp85_);
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tag);
-#line 37192 "Photo.c"
- }
-#line 4749 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tag_it);
-#line 37196 "Photo.c"
- }
-#line 4752 "/home/jens/Source/shotwell/src/Photo.vala"
- MEDIA_SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->postprocess_imported_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), media_sources);
-#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (map);
-#line 37202 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_notify_master_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4756 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4756 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 4757 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_MASTER_REIMPORTED_SIGNAL], 0, photo, metadata);
-#line 37217 "Photo.c"
-}
-
-
-void
-library_photo_source_collection_notify_master_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4756 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4756 "/home/jens/Source/shotwell/src/Photo.vala"
- LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_master_reimported (self, photo, metadata);
-#line 37230 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_notify_editable_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4761 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4761 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 4762 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_EDITABLE_REIMPORTED_SIGNAL], 0, photo, metadata);
-#line 37245 "Photo.c"
-}
-
-
-void
-library_photo_source_collection_notify_editable_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4761 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4761 "/home/jens/Source/shotwell/src/Photo.vala"
- LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_editable_reimported (self, photo, metadata);
-#line 37258 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_notify_source_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4766 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4766 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 4767 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_SOURCE_REIMPORTED_SIGNAL], 0, photo, metadata);
-#line 37273 "Photo.c"
-}
-
-
-void
-library_photo_source_collection_notify_source_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4766 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4766 "/home/jens/Source/shotwell/src/Photo.vala"
- LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_source_reimported (self, photo, metadata);
-#line 37286 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_notify_baseline_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4771 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4771 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 4772 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit (self, library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_BASELINE_REIMPORTED_SIGNAL], 0, photo, metadata);
-#line 37301 "Photo.c"
-}
-
-
-void
-library_photo_source_collection_notify_baseline_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4771 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4771 "/home/jens/Source/shotwell/src/Photo.vala"
- LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_baseline_reimported (self, photo, metadata);
-#line 37314 "Photo.c"
-}
-
-
-static MediaSource*
-library_photo_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base,
- gint64 numeric_id)
-{
- LibraryPhotoSourceCollection * self;
- MediaSource* result = NULL;
- PhotoID _tmp0_ = {0};
- LibraryPhoto* _tmp1_;
-#line 4775 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4776 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id_init (&_tmp0_, numeric_id);
-#line 4776 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = library_photo_source_collection_fetch (self, &_tmp0_);
-#line 4776 "/home/jens/Source/shotwell/src/Photo.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 4776 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 37336 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_on_trashcan_contents_altered (LibraryPhotoSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 4779 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4779 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 4779 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 4781 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection));
-#line 37353 "Photo.c"
-}
-
-
-static gboolean
-library_photo_source_collection_check_if_trashed_photo (LibraryPhotoSourceCollection* self,
- DataSource* source,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 4785 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE);
-#line 4785 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 4785 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
- result = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
-#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 37373 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_on_offline_contents_altered (LibraryPhotoSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 4789 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4789 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 4789 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 4791 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection));
-#line 37390 "Photo.c"
-}
-
-
-static gboolean
-library_photo_source_collection_check_if_offline_photo (LibraryPhotoSourceCollection* self,
- DataSource* source,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 4795 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE);
-#line 4795 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 4795 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 4796 "/home/jens/Source/shotwell/src/Photo.vala"
- result = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
-#line 4796 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 37410 "Photo.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 37434 "Photo.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 37443 "Photo.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 37464 "Photo.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 37468 "Photo.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 37474 "Photo.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 37484 "Photo.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 37488 "Photo.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 37496 "Photo.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 37503 "Photo.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 37507 "Photo.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 37513 "Photo.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 37525 "Photo.c"
-}
-
-
-static MediaSource*
-library_photo_source_collection_real_fetch_by_source_id (MediaSourceCollection* base,
- const gchar* source_id)
-{
- LibraryPhotoSourceCollection * self;
- MediaSource* result = NULL;
- gchar* numeric_only = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gchar* _tmp2_;
- MediaSource* _tmp3_;
-#line 4799 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4799 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (source_id != NULL, NULL);
-#line 4800 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (g_str_has_prefix (source_id, PHOTO_TYPENAME), "source_id.has_prefix(Photo.TYPENAME)");
-#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = strlen (PHOTO_TYPENAME);
-#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = string_substring (source_id, (glong) _tmp1_, (glong) -1);
-#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
- numeric_only = _tmp2_;
-#line 4803 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = media_source_collection_fetch_by_numeric_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), parse_int64 (numeric_only, 16));
-#line 4803 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 4803 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (numeric_only);
-#line 4803 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 37562 "Photo.c"
-}
-
-
-static GeeCollection*
-library_photo_source_collection_real_get_event_source_ids (MediaSourceCollection* base,
- EventID* event_id)
-{
- LibraryPhotoSourceCollection * self;
- GeeCollection* result = NULL;
- PhotoTable* _tmp0_;
- PhotoTable* _tmp1_;
- EventID _tmp2_;
- GeeArrayList* _tmp3_;
- GeeCollection* _tmp4_;
-#line 4806 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4806 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_table_get_instance ();
-#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = *event_id;
-#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_table_get_event_source_ids (_tmp1_, &_tmp2_);
-#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp1_);
-#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp4_;
-#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 37597 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self,
- PhotoID* photo_id)
-{
- LibraryPhoto* result = NULL;
- PhotoID _tmp0_;
- gint64 _tmp1_;
- DataSource* _tmp2_;
-#line 4810 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 4810 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (photo_id != NULL, NULL);
-#line 4811 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = *photo_id;
-#line 4811 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_.id;
-#line 4811 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_);
-#line 4811 "/home/jens/Source/shotwell/src/Photo.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4811 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 37623 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_collection_fetch_by_editable_file (LibraryPhotoSourceCollection* self,
- GFile* file)
-{
- LibraryPhoto* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 4814 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 4814 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 4815 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->by_editable_file;
-#line 4815 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 4815 "/home/jens/Source/shotwell/src/Photo.vala"
- result = (LibraryPhoto*) _tmp1_;
-#line 4815 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 37646 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_collection_fetch_by_raw_development_file (LibraryPhotoSourceCollection* self,
- GFile* file)
-{
- LibraryPhoto* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 4818 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 4818 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 4819 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->by_raw_development_file;
-#line 4819 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 4819 "/home/jens/Source/shotwell/src/Photo.vala"
- result = (LibraryPhoto*) _tmp1_;
-#line 4819 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 37669 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_compare_backing (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- GFileInfo* info,
- GeeCollection* matches_master,
- GeeCollection* matches_editable,
- GeeCollection* matches_development)
-{
- BackingPhotoRow* _tmp0_;
- BackingPhotoRow* _tmp1_;
- gboolean _tmp2_;
- BackingPhotoRow* editable = NULL;
- BackingPhotoRow* _tmp3_;
- gboolean _tmp4_ = FALSE;
- BackingPhotoRow* _tmp5_;
- GeeCollection* development = NULL;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
-#line 4822 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4822 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4822 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 4822 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_COLLECTION (matches_master));
-#line 4822 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_COLLECTION (matches_editable));
-#line 4822 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_COLLECTION (matches_development));
-#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = backing_photo_row_matches_file_info (_tmp1_, info);
-#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp1_);
-#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 4826 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_collection_add (matches_master, photo);
-#line 37715 "Photo.c"
- }
-#line 4828 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 4828 "/home/jens/Source/shotwell/src/Photo.vala"
- editable = _tmp3_;
-#line 4829 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = editable;
-#line 4829 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp5_ != NULL) {
-#line 37725 "Photo.c"
- BackingPhotoRow* _tmp6_;
-#line 4829 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = editable;
-#line 4829 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = backing_photo_row_matches_file_info (_tmp6_, info);
-#line 37731 "Photo.c"
- } else {
-#line 4829 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = FALSE;
-#line 37735 "Photo.c"
- }
-#line 4829 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_) {
-#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_collection_add (matches_editable, photo);
-#line 37741 "Photo.c"
- }
-#line 4832 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 4832 "/home/jens/Source/shotwell/src/Photo.vala"
- development = _tmp7_;
-#line 4833 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = development;
-#line 4833 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ != NULL) {
-#line 37751 "Photo.c"
- {
- GeeIterator* _row_it = NULL;
- GeeCollection* _tmp9_;
- GeeIterator* _tmp10_;
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = development;
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- _row_it = _tmp10_;
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 37764 "Photo.c"
- GeeIterator* _tmp11_;
- BackingPhotoRow* row = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- BackingPhotoRow* _tmp14_;
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _row_it;
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 37776 "Photo.c"
- }
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _row_it;
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- row = (BackingPhotoRow*) _tmp13_;
-#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = row;
-#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing_photo_row_matches_file_info (_tmp14_, info)) {
-#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_collection_add (matches_development, photo);
-#line 4838 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (row);
-#line 4838 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 37794 "Photo.c"
- }
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (row);
-#line 37798 "Photo.c"
- }
-#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_row_it);
-#line 37802 "Photo.c"
- }
- }
-#line 4822 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (development);
-#line 4822 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (editable);
-#line 37809 "Photo.c"
-}
-
-
-void
-library_photo_source_collection_fetch_by_matching_backing (LibraryPhotoSourceCollection* self,
- GFileInfo* info,
- GeeCollection* matches_master,
- GeeCollection* matches_editable,
- GeeCollection* matched_development)
-{
-#line 4846 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4846 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 4846 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_COLLECTION (matches_master));
-#line 4846 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_COLLECTION (matches_editable));
-#line 4846 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (GEE_IS_COLLECTION (matched_development));
-#line 37830 "Photo.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeMultiMap* _tmp0_;
- gint64 _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->filesize_to_photo;
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = g_file_info_get_size (info);
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = gee_multi_map_get (_tmp0_, &_tmp1_);
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp3_);
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_it = _tmp5_;
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 37857 "Photo.c"
- GeeIterator* _tmp6_;
- LibraryPhoto* photo = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- LibraryPhoto* _tmp9_;
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _photo_it;
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 37869 "Photo.c"
- }
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _photo_it;
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = (LibraryPhoto*) _tmp8_;
-#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo;
-#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_compare_backing (self, _tmp9_, info, matches_master, matches_editable, matched_development);
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 37883 "Photo.c"
- }
-#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_photo_it);
-#line 37887 "Photo.c"
- }
- {
- GeeIterator* _media_it = NULL;
- GeeCollection* _tmp10_;
- GeeCollection* _tmp11_;
- GeeIterator* _tmp12_;
- GeeIterator* _tmp13_;
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_;
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp11_);
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_it = _tmp13_;
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 37909 "Photo.c"
- GeeIterator* _tmp14_;
- MediaSource* media = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- MediaSource* _tmp17_;
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = _media_it;
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 37921 "Photo.c"
- }
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _media_it;
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- media = (MediaSource*) _tmp16_;
-#line 4852 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = media;
-#line 4852 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_LIBRARY_PHOTO, LibraryPhoto), info, matches_master, matches_editable, matched_development);
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (media);
-#line 37935 "Photo.c"
- }
-#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_media_it);
-#line 37939 "Photo.c"
- }
-}
-
-
-void
-library_photo_source_collection_get_basename_filesize_duplicate (LibraryPhotoSourceCollection* self,
- const gchar* basename,
- gint64 filesize,
- PhotoID* result)
-{
- PhotoID _tmp15_ = {0};
-#line 4855 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
-#line 4855 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (basename != NULL);
-#line 37955 "Photo.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeMultiMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->filesize_to_photo;
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_multi_map_get (_tmp0_, &filesize);
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp2_);
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_it = _tmp4_;
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 37979 "Photo.c"
- GeeIterator* _tmp5_;
- LibraryPhoto* photo = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- LibraryPhoto* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_;
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _photo_it;
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 37995 "Photo.c"
- }
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _photo_it;
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = (LibraryPhoto*) _tmp7_;
-#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo;
-#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_;
-#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = g_file_get_basename (_tmp10_);
-#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = utf8_ci_compare (_tmp11_, basename) == 0;
-#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp10_);
-#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp12_) {
-#line 38017 "Photo.c"
- LibraryPhoto* _tmp13_;
- PhotoID _tmp14_ = {0};
-#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = photo;
-#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO, Photo), &_tmp14_);
-#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp14_;
-#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_photo_it);
-#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 38032 "Photo.c"
- }
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 38036 "Photo.c"
- }
-#line 4856 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_photo_it);
-#line 38040 "Photo.c"
- }
-#line 4861 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id_init (&_tmp15_, PHOTO_ID_INVALID);
-#line 4861 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp15_;
-#line 4861 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 38048 "Photo.c"
-}
-
-
-gboolean
-library_photo_source_collection_has_basename_filesize_duplicate (LibraryPhotoSourceCollection* self,
- const gchar* basename,
- gint64 filesize)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_ = {0};
-#line 4865 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE);
-#line 4865 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (basename != NULL, FALSE);
-#line 4866 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_get_basename_filesize_duplicate (self, basename, filesize, &_tmp0_);
-#line 4866 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_id_is_valid (&_tmp0_);
-#line 4866 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38069 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self,
- GFile* file)
-{
- LibraryPhoto* result = NULL;
- LibraryPhoto* photo = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- MediaSource* _tmp2_;
- LibraryPhoto* _tmp3_;
- LibraryPhoto* _tmp4_;
-#line 4869 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 4869 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 4870 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4870 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4870 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = media_source_holding_tank_fetch_by_master_file (_tmp1_, file);
-#line 4870 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4870 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 4870 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp3_;
-#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo;
-#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_ == NULL) {
-#line 38104 "Photo.c"
- MediaSourceHoldingTank* _tmp5_;
- LibraryPhotoSourceHoldingTank* _tmp6_;
- LibraryPhoto* _tmp7_;
-#line 4872 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4872 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank);
-#line 4872 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = library_photo_source_holding_tank_fetch_by_backing_file (_tmp6_, file);
-#line 4872 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4872 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4872 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp6_);
-#line 38120 "Photo.c"
- }
-#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo;
-#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38126 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self,
- const gchar* md5)
-{
- LibraryPhoto* result = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- MediaSource* _tmp2_;
- LibraryPhoto* _tmp3_;
-#line 4878 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 4878 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (md5 != NULL, NULL);
-#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = media_source_holding_tank_fetch_by_md5 (_tmp1_, md5);
-#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38157 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self,
- GFile* file)
-{
- LibraryPhoto* result = NULL;
- LibraryPhoto* photo = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- MediaSource* _tmp2_;
- LibraryPhoto* _tmp3_;
- LibraryPhoto* _tmp4_;
-#line 4882 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 4882 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = media_source_holding_tank_fetch_by_master_file (_tmp1_, file);
-#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp3_;
-#line 4884 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo;
-#line 4884 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_ == NULL) {
-#line 38192 "Photo.c"
- MediaSourceHoldingTank* _tmp5_;
- LibraryPhotoSourceHoldingTank* _tmp6_;
- LibraryPhoto* _tmp7_;
-#line 4885 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4885 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank);
-#line 4885 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = library_photo_source_holding_tank_fetch_by_backing_file (_tmp6_, file);
-#line 4885 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4885 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4885 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp6_);
-#line 38208 "Photo.c"
- }
-#line 4888 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo;
-#line 4888 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38214 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self,
- const gchar* md5)
-{
- LibraryPhoto* result = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- MediaSource* _tmp2_;
- LibraryPhoto* _tmp3_;
-#line 4891 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 4891 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (md5 != NULL, NULL);
-#line 4892 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4892 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4892 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = media_source_holding_tank_fetch_by_md5 (_tmp1_, md5);
-#line 4892 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4892 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 4892 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp3_;
-#line 4892 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38245 "Photo.c"
-}
-
-
-gint
-library_photo_source_collection_get_offline_count (LibraryPhotoSourceCollection* self)
-{
- gint result = 0;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- gint _tmp2_;
-#line 4895 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), 0);
-#line 4896 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4896 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4896 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = source_holding_tank_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank));
-#line 4896 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 4896 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 4896 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38270 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self,
- GFile* file,
- LibraryPhotoSourceCollectionState* state)
-{
- LibraryPhotoSourceCollectionState _vala_state = 0;
- LibraryPhoto* result = NULL;
- LibraryPhoto* photo = NULL;
- MediaSource* _tmp0_;
- LibraryPhoto* _tmp1_;
- LibraryPhoto* _tmp2_;
- LibraryPhoto* _tmp3_;
- LibraryPhoto* _tmp4_;
- LibraryPhoto* _tmp5_;
- LibraryPhoto* _tmp6_;
- LibraryPhoto* _tmp7_;
- LibraryPhoto* _tmp8_;
- LibraryPhoto* _tmp9_;
- LibraryPhoto* _tmp10_;
- LibraryPhoto* _tmp11_;
-#line 4899 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 4899 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_fetch_by_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), file);
-#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4901 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo;
-#line 4901 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp1_ != NULL) {
-#line 4902 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE;
-#line 4904 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo;
-#line 4904 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 4904 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 38314 "Photo.c"
- }
-#line 4904 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38318 "Photo.c"
- }
-#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = library_photo_source_collection_fetch_by_editable_file (self, file);
-#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp2_;
-#line 4908 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo;
-#line 4908 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_ != NULL) {
-#line 4909 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE;
-#line 4911 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo;
-#line 4911 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 4911 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 38338 "Photo.c"
- }
-#line 4911 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38342 "Photo.c"
- }
-#line 4914 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = library_photo_source_collection_fetch_by_raw_development_file (self, file);
-#line 4914 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4914 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp4_;
-#line 4915 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo;
-#line 4915 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp5_ != NULL) {
-#line 4916 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER;
-#line 4918 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo;
-#line 4918 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 4918 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 38362 "Photo.c"
- }
-#line 4918 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38366 "Photo.c"
- }
-#line 4921 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = library_photo_source_collection_get_trashed_by_file (self, file);
-#line 4921 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp6_) : NULL;
-#line 4921 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp7_ == NULL) {
-#line 4921 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp6_);
-#line 38376 "Photo.c"
- }
-#line 4921 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4921 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp7_;
-#line 4922 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo;
-#line 4922 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp8_ != NULL) {
-#line 4923 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH;
-#line 4925 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo;
-#line 4925 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 4925 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 38394 "Photo.c"
- }
-#line 4925 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38398 "Photo.c"
- }
-#line 4928 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = library_photo_source_collection_get_offline_by_file (self, file);
-#line 4928 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp9_) : NULL;
-#line 4928 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_ == NULL) {
-#line 4928 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp9_);
-#line 38408 "Photo.c"
- }
-#line 4928 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4928 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp10_;
-#line 4929 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo;
-#line 4929 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_ != NULL) {
-#line 4930 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE;
-#line 4932 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo;
-#line 4932 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 4932 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 38426 "Photo.c"
- }
-#line 4932 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38430 "Photo.c"
- }
-#line 4935 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN;
-#line 4937 "/home/jens/Source/shotwell/src/Photo.vala"
- result = NULL;
-#line 4937 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 4937 "/home/jens/Source/shotwell/src/Photo.vala"
- if (state) {
-#line 4937 "/home/jens/Source/shotwell/src/Photo.vala"
- *state = _vala_state;
-#line 38442 "Photo.c"
- }
-#line 4937 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38446 "Photo.c"
-}
-
-
-static gboolean
-library_photo_source_collection_real_has_backlink (SourceCollection* base,
- SourceBacklink* backlink)
-{
- LibraryPhotoSourceCollection * self;
- gboolean result = FALSE;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- gboolean _tmp2_;
- MediaSourceHoldingTank* _tmp3_;
- MediaSourceHoldingTank* _tmp4_;
- gboolean _tmp5_;
-#line 4940 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4940 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE);
-#line 4941 "/home/jens/Source/shotwell/src/Photo.vala"
- if (SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->has_backlink (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), backlink)) {
-#line 4942 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 4942 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38472 "Photo.c"
- }
-#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = source_holding_tank_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), backlink);
-#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 4945 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 4945 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38488 "Photo.c"
- }
-#line 4947 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4947 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 4947 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = source_holding_tank_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), backlink);
-#line 4947 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp4_);
-#line 4947 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp5_) {
-#line 4948 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 4948 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38504 "Photo.c"
- }
-#line 4950 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 4950 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38510 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_remove_backlink (SourceCollection* base,
- SourceBacklink* backlink)
-{
- LibraryPhotoSourceCollection * self;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- MediaSourceHoldingTank* _tmp2_;
- MediaSourceHoldingTank* _tmp3_;
-#line 4953 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4953 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 4954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4954 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 4954 "/home/jens/Source/shotwell/src/Photo.vala"
- source_holding_tank_remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), backlink);
-#line 4954 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 4955 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4955 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 4955 "/home/jens/Source/shotwell/src/Photo.vala"
- source_holding_tank_remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), backlink);
-#line 4955 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_holding_tank_unref0 (_tmp3_);
-#line 4957 "/home/jens/Source/shotwell/src/Photo.vala"
- SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), backlink);
-#line 38545 "Photo.c"
-}
-
-
-static TransactionController*
-library_photo_source_collection_real_get_transaction_controller (MediaSourceCollection* base)
-{
- TransactionController* result;
- LibraryPhotoSourceCollection* self;
- TransactionController* _tmp0_;
- TransactionController* _tmp2_;
-#line 4474 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4475 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->_transaction_controller;
-#line 4475 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp0_ == NULL) {
-#line 38562 "Photo.c"
- MediaSourceTransactionController* _tmp1_;
-#line 4476 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = media_source_transaction_controller_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 4476 "/home/jens/Source/shotwell/src/Photo.vala"
- _transaction_controller_unref0 (self->priv->_transaction_controller);
-#line 4476 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->_transaction_controller = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TRANSACTION_CONTROLLER, TransactionController);
-#line 38570 "Photo.c"
- }
-#line 4478 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->_transaction_controller;
-#line 4478 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 4478 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 38578 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_master_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4496 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4496 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 38591 "Photo.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_MEDIA_METADATA) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_MEDIA_METADATA callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (n_param_values == 3);
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- data1 = closure->data;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- data2 = param_values->data[0].v_pointer;
-#line 38617 "Photo.c"
- } else {
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- data1 = param_values->data[0].v_pointer;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- data2 = closure->data;
-#line 38623 "Photo.c"
- }
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- callback = (GMarshalFunc_VOID__OBJECT_MEDIA_METADATA) (marshal_data ? marshal_data : cc->callback);
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- callback (data1, g_value_get_object (param_values + 1), value_get_media_metadata (param_values + 2), data2);
-#line 38629 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_editable_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4499 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4499 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 38642 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_baseline_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4502 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4502 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 38655 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_real_source_reimported (LibraryPhotoSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 4505 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 4505 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 38668 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_class_init (LibraryPhotoSourceCollectionClass * klass)
-{
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataCollectionClass *) klass)->finalize = library_photo_source_collection_finalize;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_class_add_private (klass, sizeof (LibraryPhotoSourceCollectionPrivate));
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->create_trashcan = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) library_photo_source_collection_real_create_trashcan;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->create_offline_bin = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) library_photo_source_collection_real_create_offline_bin;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->create_media_monitor = (MediaMonitor* (*) (MediaSourceCollection *, Workers*, GCancellable*)) library_photo_source_collection_real_create_media_monitor;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) library_photo_source_collection_real_holds_type_of_source;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->get_typename = (gchar* (*) (MediaSourceCollection *)) library_photo_source_collection_real_get_typename;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->is_file_recognized = (gboolean (*) (MediaSourceCollection *, GFile*)) library_photo_source_collection_real_is_file_recognized;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) library_photo_source_collection_real_notify_contents_altered;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataCollectionClass *) klass)->items_altered = (void (*) (DataCollection *, GeeMap*)) library_photo_source_collection_real_items_altered;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->postprocess_imported_media = (void (*) (MediaSourceCollection *, GeeCollection*)) library_photo_source_collection_real_postprocess_imported_media;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((LibraryPhotoSourceCollectionClass *) klass)->notify_master_reimported = (void (*) (LibraryPhotoSourceCollection *, LibraryPhoto*, PhotoMetadata*)) library_photo_source_collection_real_notify_master_reimported;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((LibraryPhotoSourceCollectionClass *) klass)->notify_editable_reimported = (void (*) (LibraryPhotoSourceCollection *, LibraryPhoto*, PhotoMetadata*)) library_photo_source_collection_real_notify_editable_reimported;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((LibraryPhotoSourceCollectionClass *) klass)->notify_source_reimported = (void (*) (LibraryPhotoSourceCollection *, LibraryPhoto*, PhotoMetadata*)) library_photo_source_collection_real_notify_source_reimported;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((LibraryPhotoSourceCollectionClass *) klass)->notify_baseline_reimported = (void (*) (LibraryPhotoSourceCollection *, LibraryPhoto*, PhotoMetadata*)) library_photo_source_collection_real_notify_baseline_reimported;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = (MediaSource* (*) (MediaSourceCollection *, gint64)) library_photo_source_collection_real_fetch_by_numeric_id;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->fetch_by_source_id = (MediaSource* (*) (MediaSourceCollection *, const gchar*)) library_photo_source_collection_real_fetch_by_source_id;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceCollectionClass *) klass)->get_event_source_ids = (GeeCollection* (*) (MediaSourceCollection *, EventID*)) library_photo_source_collection_real_get_event_source_ids;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((SourceCollectionClass *) klass)->has_backlink = (gboolean (*) (SourceCollection *, SourceBacklink*)) library_photo_source_collection_real_has_backlink;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((SourceCollectionClass *) klass)->remove_backlink = (void (*) (SourceCollection *, SourceBacklink*)) library_photo_source_collection_real_remove_backlink;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((LibraryPhotoSourceCollectionClass *) klass)->master_reimported = library_photo_source_collection_real_master_reimported;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((LibraryPhotoSourceCollectionClass *) klass)->editable_reimported = library_photo_source_collection_real_editable_reimported;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((LibraryPhotoSourceCollectionClass *) klass)->baseline_reimported = library_photo_source_collection_real_baseline_reimported;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- ((LibraryPhotoSourceCollectionClass *) klass)->source_reimported = library_photo_source_collection_real_source_reimported;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- MEDIA_SOURCE_COLLECTION_CLASS (klass)->get_transaction_controller = library_photo_source_collection_real_get_transaction_controller;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_MASTER_REIMPORTED_SIGNAL] = g_signal_new ("master-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, master_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA);
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_EDITABLE_REIMPORTED_SIGNAL] = g_signal_new ("editable-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, editable_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA);
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_BASELINE_REIMPORTED_SIGNAL] = g_signal_new ("baseline-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, baseline_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA);
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_SOURCE_REIMPORTED_SIGNAL] = g_signal_new ("source-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, source_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA);
-#line 38735 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_instance_init (LibraryPhotoSourceCollection * self)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
- GeeTreeMultiMap* _tmp2_;
- GeeHashMap* _tmp3_;
- GeeHashMap* _tmp4_;
- GeeTreeMultiMap* _tmp5_;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv = LIBRARY_PHOTO_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 4482 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->_transaction_controller = NULL;
-#line 4483 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 4483 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->by_editable_file = _tmp0_;
-#line 4485 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 4485 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->by_raw_development_file = _tmp1_;
-#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = gee_tree_multi_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _int64_compare_gcompare_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->filesize_to_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
-#line 4489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL);
-#line 4489 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->photo_to_master_filesize = _tmp3_;
-#line 4491 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL);
-#line 4491 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->photo_to_editable_filesize = _tmp4_;
-#line 4493 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = gee_tree_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 4493 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->photo_to_raw_development_filesize = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
-#line 38776 "Photo.c"
-}
-
-
-static void
-library_photo_source_collection_finalize (DataCollection * obj)
-{
- LibraryPhotoSourceCollection * self;
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
-#line 4482 "/home/jens/Source/shotwell/src/Photo.vala"
- _transaction_controller_unref0 (self->priv->_transaction_controller);
-#line 4483 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->by_editable_file);
-#line 4485 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->by_raw_development_file);
-#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->filesize_to_photo);
-#line 4489 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->photo_to_master_filesize);
-#line 4491 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->photo_to_editable_filesize);
-#line 4493 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->photo_to_raw_development_filesize);
-#line 4463 "/home/jens/Source/shotwell/src/Photo.vala"
- DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->finalize (obj);
-#line 38802 "Photo.c"
-}
-
-
-GType
-library_photo_source_collection_get_type (void)
-{
- static volatile gsize library_photo_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&library_photo_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoSourceCollection), 0, (GInstanceInitFunc) library_photo_source_collection_instance_init, NULL };
- GType library_photo_source_collection_type_id;
- library_photo_source_collection_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_COLLECTION, "LibraryPhotoSourceCollection", &g_define_type_info, 0);
- g_once_init_leave (&library_photo_source_collection_type_id__volatile, library_photo_source_collection_type_id);
- }
- return library_photo_source_collection_type_id__volatile;
-}
-
-
-static void
-_library_photo_generate_thumbnails_one_shot_callback (gpointer self)
-{
-#line 4985 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_generate_thumbnails ((LibraryPhoto*) self);
-#line 38825 "Photo.c"
-}
-
-
-static LibraryPhoto*
-library_photo_construct (GType object_type,
- PhotoRow* row)
-{
- LibraryPhoto * self = NULL;
- OneShotScheduler* _tmp0_;
- guint64 _tmp1_;
- guint64 _tmp4_;
-#line 4980 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_ROW (row), NULL);
-#line 4981 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (LibraryPhoto*) photo_construct (object_type, row);
-#line 4983 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->import_keywords);
-#line 4983 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->import_keywords = NULL;
-#line 4985 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = one_shot_scheduler_new ("LibraryPhoto", _library_photo_generate_thumbnails_one_shot_callback, self);
-#line 4985 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler);
-#line 4985 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->thumbnail_scheduler = _tmp0_;
-#line 4988 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = row->flags;
-#line 4988 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((_tmp1_ & (LIBRARY_PHOTO_FLAG_TRASH | LIBRARY_PHOTO_FLAG_OFFLINE)) != ((guint64) 0)) {
-#line 38855 "Photo.c"
- LibraryPhotoSourceCollection* _tmp2_;
- const gchar* _tmp3_;
-#line 4989 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = library_photo_global;
-#line 4989 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = row->backlinks;
-#line 4989 "/home/jens/Source/shotwell/src/Photo.vala"
- data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp3_);
-#line 38864 "Photo.c"
- }
-#line 4991 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = row->flags;
-#line 4991 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((_tmp4_ & (LIBRARY_PHOTO_FLAG_HIDDEN | LIBRARY_PHOTO_FLAG_FAVORITE)) != ((guint64) 0)) {
-#line 38870 "Photo.c"
- guint64 _tmp5_;
-#line 4992 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = row->flags;
-#line 4992 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_upgrade_rating_flags (self, _tmp5_);
-#line 38876 "Photo.c"
- }
-#line 4980 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 38880 "Photo.c"
-}
-
-
-static LibraryPhoto*
-library_photo_new (PhotoRow* row)
-{
-#line 4980 "/home/jens/Source/shotwell/src/Photo.vala"
- return library_photo_construct (TYPE_LIBRARY_PHOTO, row);
-#line 38889 "Photo.c"
-}
-
-
-static LibraryPhoto*
-library_photo_construct_from_import_params (GType object_type,
- PhotoImportParams* import_params)
-{
- LibraryPhoto * self = NULL;
- PhotoRow* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- OneShotScheduler* _tmp3_;
- PhotoRow* _tmp4_;
- guint64 _tmp5_;
- PhotoRow* _tmp9_;
- guint64 _tmp10_;
-#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (import_params), NULL);
-#line 4996 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = import_params->row;
-#line 4996 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (LibraryPhoto*) photo_construct (object_type, _tmp0_);
-#line 4998 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = import_params->keywords;
-#line 4998 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 4998 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->import_keywords);
-#line 4998 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->import_keywords = _tmp2_;
-#line 4999 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = one_shot_scheduler_new ("LibraryPhoto", _library_photo_generate_thumbnails_one_shot_callback, self);
-#line 4999 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler);
-#line 4999 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->thumbnail_scheduler = _tmp3_;
-#line 5002 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = import_params->row;
-#line 5002 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_->flags;
-#line 5002 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((_tmp5_ & (LIBRARY_PHOTO_FLAG_TRASH | LIBRARY_PHOTO_FLAG_OFFLINE)) != ((guint64) 0)) {
-#line 38932 "Photo.c"
- LibraryPhotoSourceCollection* _tmp6_;
- PhotoRow* _tmp7_;
- const gchar* _tmp8_;
-#line 5003 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = library_photo_global;
-#line 5003 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = import_params->row;
-#line 5003 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_->backlinks;
-#line 5003 "/home/jens/Source/shotwell/src/Photo.vala"
- data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp8_);
-#line 38944 "Photo.c"
- }
-#line 5005 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = import_params->row;
-#line 5005 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_->flags;
-#line 5005 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((_tmp10_ & (LIBRARY_PHOTO_FLAG_HIDDEN | LIBRARY_PHOTO_FLAG_FAVORITE)) != ((guint64) 0)) {
-#line 38952 "Photo.c"
- PhotoRow* _tmp11_;
- guint64 _tmp12_;
-#line 5006 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = import_params->row;
-#line 5006 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_->flags;
-#line 5006 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_upgrade_rating_flags (self, _tmp12_);
-#line 38961 "Photo.c"
- }
-#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 38965 "Photo.c"
-}
-
-
-static LibraryPhoto*
-library_photo_new_from_import_params (PhotoImportParams* import_params)
-{
-#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
- return library_photo_construct_from_import_params (TYPE_LIBRARY_PHOTO, import_params);
-#line 38974 "Photo.c"
-}
-
-
-void
-library_photo_init (ProgressMonitor monitor,
- void* monitor_target)
-{
- LibraryPhotoSourceCollection* _tmp0_;
- GeeArrayList* all = NULL;
- PhotoTable* _tmp1_;
- PhotoTable* _tmp2_;
- GeeArrayList* _tmp3_;
- GeeArrayList* _tmp4_;
- GeeArrayList* all_photos = NULL;
- GeeArrayList* _tmp5_;
- GeeArrayList* trashed_photos = NULL;
- GeeArrayList* _tmp6_;
- GeeArrayList* offline_photos = NULL;
- GeeArrayList* _tmp7_;
- gint count = 0;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- LibraryPhotoSourceCollection* _tmp32_;
- GeeArrayList* _tmp33_;
- GeeCollection* _tmp34_;
- GeeCollection* _tmp35_;
- LibraryPhotoSourceCollection* _tmp36_;
- GeeArrayList* _tmp37_;
- LibraryPhotoSourceCollection* _tmp38_;
- GeeArrayList* _tmp39_;
-#line 5010 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_init_photo ();
-#line 5012 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = library_photo_source_collection_new ();
-#line 5012 "/home/jens/Source/shotwell/src/Photo.vala"
- _data_collection_unref0 (library_photo_global);
-#line 5012 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_global = _tmp0_;
-#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_table_get_instance ();
-#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_table_get_all (_tmp2_);
-#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp2_);
-#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
- all = _tmp4_;
-#line 5017 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 5017 "/home/jens/Source/shotwell/src/Photo.vala"
- all_photos = _tmp5_;
-#line 5018 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 5018 "/home/jens/Source/shotwell/src/Photo.vala"
- trashed_photos = _tmp6_;
-#line 5019 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 5019 "/home/jens/Source/shotwell/src/Photo.vala"
- offline_photos = _tmp7_;
-#line 5020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = all;
-#line 5020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 5020 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tmp9_;
-#line 5020 "/home/jens/Source/shotwell/src/Photo.vala"
- count = _tmp10_;
-#line 39046 "Photo.c"
- {
- gint ctr = 0;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- ctr = 0;
-#line 39051 "Photo.c"
- {
- gboolean _tmp11_ = FALSE;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = TRUE;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 39058 "Photo.c"
- gint _tmp13_;
- gint _tmp14_;
- PhotoRow* row = NULL;
- GeeArrayList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
- LibraryPhoto* photo = NULL;
- PhotoRow* _tmp18_;
- LibraryPhoto* _tmp19_;
- guint64 flags = 0ULL;
- PhotoRow* _tmp20_;
- guint64 _tmp21_;
- guint64 _tmp22_;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp11_) {
-#line 39074 "Photo.c"
- gint _tmp12_;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = ctr;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- ctr = _tmp12_ + 1;
-#line 39080 "Photo.c"
- }
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = FALSE;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = ctr;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = count;
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp13_ < _tmp14_)) {
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 39092 "Photo.c"
- }
-#line 5022 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = all;
-#line 5022 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = ctr;
-#line 5022 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp16_);
-#line 5022 "/home/jens/Source/shotwell/src/Photo.vala"
- row = (PhotoRow*) _tmp17_;
-#line 5023 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = row;
-#line 5023 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = library_photo_new (_tmp18_);
-#line 5023 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp19_;
-#line 5024 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = row;
-#line 5024 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_->flags;
-#line 5024 "/home/jens/Source/shotwell/src/Photo.vala"
- flags = _tmp21_;
-#line 5026 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = flags;
-#line 5026 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((_tmp22_ & LIBRARY_PHOTO_FLAG_TRASH) != ((guint64) 0)) {
-#line 39118 "Photo.c"
- GeeArrayList* _tmp23_;
- LibraryPhoto* _tmp24_;
-#line 5027 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = trashed_photos;
-#line 5027 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = photo;
-#line 5027 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_);
-#line 39127 "Photo.c"
- } else {
- guint64 _tmp25_;
-#line 5028 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = flags;
-#line 5028 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((_tmp25_ & LIBRARY_PHOTO_FLAG_OFFLINE) != ((guint64) 0)) {
-#line 39134 "Photo.c"
- GeeArrayList* _tmp26_;
- LibraryPhoto* _tmp27_;
-#line 5029 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = offline_photos;
-#line 5029 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = photo;
-#line 5029 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp27_);
-#line 39143 "Photo.c"
- } else {
- GeeArrayList* _tmp28_;
- LibraryPhoto* _tmp29_;
-#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = all_photos;
-#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = photo;
-#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_);
-#line 39153 "Photo.c"
- }
- }
-#line 5033 "/home/jens/Source/shotwell/src/Photo.vala"
- if (monitor != NULL) {
-#line 39158 "Photo.c"
- gint _tmp30_;
- gint _tmp31_;
-#line 5034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = ctr;
-#line 5034 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = count;
-#line 5034 "/home/jens/Source/shotwell/src/Photo.vala"
- monitor ((guint64) _tmp30_, (guint64) _tmp31_, TRUE, monitor_target);
-#line 39167 "Photo.c"
- }
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 5021 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (row);
-#line 39173 "Photo.c"
- }
- }
- }
-#line 5037 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = library_photo_global;
-#line 5037 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = all_photos;
-#line 5037 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 5037 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _tmp34_;
-#line 5037 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp35_);
-#line 5038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = library_photo_global;
-#line 5038 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = trashed_photos;
-#line 5038 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_collection_add_many_to_trash (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5039 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = library_photo_global;
-#line 5039 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = offline_photos;
-#line 5039 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_collection_add_many_to_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5009 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (offline_photos);
-#line 5009 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (trashed_photos);
-#line 5009 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (all_photos);
-#line 5009 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (all);
-#line 39207 "Photo.c"
-}
-
-
-void
-library_photo_terminate (void)
-{
-#line 5043 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_terminate_photo ();
-#line 39216 "Photo.c"
-}
-
-
-ImportResult
-library_photo_import_create (PhotoImportParams* params,
- LibraryPhoto* * photo)
-{
- LibraryPhoto* _vala_photo = NULL;
- ImportResult result = 0;
- PhotoID photo_id = {0};
- PhotoTable* _tmp0_;
- PhotoTable* _tmp1_;
- PhotoRow* _tmp2_;
- PhotoID _tmp3_ = {0};
- PhotoID _tmp4_;
- LibraryPhoto* _tmp5_;
-#line 5050 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (params), 0);
-#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_table_get_instance ();
-#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = params->row;
-#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_add (_tmp1_, _tmp2_, &_tmp3_);
-#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = _tmp3_;
-#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp1_);
-#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id = _tmp4_;
-#line 5053 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_id_is_invalid (&photo_id)) {
-#line 5054 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_vala_photo);
-#line 5054 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_photo = NULL;
-#line 5056 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_DATABASE_ERROR;
-#line 5056 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo) {
-#line 5056 "/home/jens/Source/shotwell/src/Photo.vala"
- *photo = _vala_photo;
-#line 39261 "Photo.c"
- } else {
-#line 5056 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_vala_photo);
-#line 39265 "Photo.c"
- }
-#line 5056 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 39269 "Photo.c"
- }
-#line 5060 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = library_photo_new_from_import_params (params);
-#line 5060 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_vala_photo);
-#line 5060 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_photo = _tmp5_;
-#line 5062 "/home/jens/Source/shotwell/src/Photo.vala"
- result = IMPORT_RESULT_SUCCESS;
-#line 5062 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo) {
-#line 5062 "/home/jens/Source/shotwell/src/Photo.vala"
- *photo = _vala_photo;
-#line 39283 "Photo.c"
- } else {
-#line 5062 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_vala_photo);
-#line 39287 "Photo.c"
- }
-#line 5062 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 39291 "Photo.c"
-}
-
-
-void
-library_photo_import_failed (LibraryPhoto* photo)
-{
- GError * _inner_error_ = NULL;
-#line 5065 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 39301 "Photo.c"
- {
- PhotoTable* _tmp0_;
- PhotoTable* _tmp1_;
- PhotoID _tmp2_ = {0};
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_table_get_instance ();
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), &_tmp2_);
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_remove (_tmp1_, &_tmp2_, &_inner_error_);
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp1_);
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 39320 "Photo.c"
- goto __catch419_database_error;
- }
-#line 5067 "/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);
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39329 "Photo.c"
- }
- }
- goto __finally419;
- __catch419_database_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
-#line 5066 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 5066 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 5069 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = err;
-#line 5069 "/home/jens/Source/shotwell/src/Photo.vala"
- app_window_database_error (_tmp3_);
-#line 5066 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 39347 "Photo.c"
- }
- __finally419:
-#line 5066 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5066 "/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 5066 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 5066 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39358 "Photo.c"
- }
-}
-
-
-static void
-library_photo_real_notify_master_reimported (Photo* base,
- PhotoMetadata* metadata)
-{
- LibraryPhoto * self;
- LibraryPhotoSourceCollection* _tmp0_;
-#line 5073 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5073 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 5074 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_CLASS (library_photo_parent_class)->notify_master_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), metadata);
-#line 5076 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = library_photo_global;
-#line 5076 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_notify_master_reimported (_tmp0_, self, metadata);
-#line 39379 "Photo.c"
-}
-
-
-static void
-library_photo_real_notify_editable_reimported (Photo* base,
- PhotoMetadata* metadata)
-{
- LibraryPhoto * self;
- LibraryPhotoSourceCollection* _tmp0_;
-#line 5079 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5079 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 5080 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_CLASS (library_photo_parent_class)->notify_editable_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), metadata);
-#line 5082 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = library_photo_global;
-#line 5082 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_notify_editable_reimported (_tmp0_, self, metadata);
-#line 39399 "Photo.c"
-}
-
-
-static void
-library_photo_real_notify_source_reimported (Photo* base,
- PhotoMetadata* metadata)
-{
- LibraryPhoto * self;
- LibraryPhotoSourceCollection* _tmp0_;
-#line 5085 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5085 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 5086 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_CLASS (library_photo_parent_class)->notify_source_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), metadata);
-#line 5088 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = library_photo_global;
-#line 5088 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_notify_source_reimported (_tmp0_, self, metadata);
-#line 39419 "Photo.c"
-}
-
-
-static void
-library_photo_real_notify_baseline_reimported (Photo* base,
- PhotoMetadata* metadata)
-{
- LibraryPhoto * self;
- LibraryPhotoSourceCollection* _tmp0_;
-#line 5091 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5091 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 5092 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_CLASS (library_photo_parent_class)->notify_baseline_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), metadata);
-#line 5094 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = library_photo_global;
-#line 5094 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_collection_notify_baseline_reimported (_tmp0_, self, metadata);
-#line 39439 "Photo.c"
-}
-
-
-static void
-library_photo_generate_thumbnails (LibraryPhoto* self)
-{
- GError * _inner_error_ = NULL;
-#line 5097 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (self));
-#line 39449 "Photo.c"
- {
-#line 5099 "/home/jens/Source/shotwell/src/Photo.vala"
- thumbnail_cache_import_from_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TRUE, &_inner_error_);
-#line 5099 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 39455 "Photo.c"
- goto __catch420_g_error;
- }
- }
- goto __finally420;
- __catch420_g_error:
- {
- GError* err = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GError* _tmp2_;
- const gchar* _tmp3_;
-#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 5101 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 5101 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 5101 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = err;
-#line 5101 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->message;
-#line 5101 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:5101: Unable to generate thumbnails for %s: %s", _tmp1_, _tmp3_);
-#line 5101 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp1_);
-#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 39485 "Photo.c"
- }
- __finally420:
-#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5098 "/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 5098 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39496 "Photo.c"
- }
-#line 5105 "/home/jens/Source/shotwell/src/Photo.vala"
- thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 39500 "Photo.c"
-}
-
-
-GeeCollection*
-library_photo_get_import_keywords (LibraryPhoto* self)
-{
- GeeCollection* result = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 5109 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (self), NULL);
-#line 5110 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->import_keywords;
-#line 5110 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 5110 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 5110 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 39520 "Photo.c"
-}
-
-
-void
-library_photo_clear_import_keywords (LibraryPhoto* self)
-{
-#line 5113 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (self));
-#line 5114 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->import_keywords);
-#line 5114 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->import_keywords = NULL;
-#line 39533 "Photo.c"
-}
-
-
-static void
-library_photo_real_notify_altered (DataObject* base,
- Alteration* alteration)
-{
- LibraryPhoto * self;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 5117 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5117 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 5119 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = self->priv->block_thumbnail_generation;
-#line 5119 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp1_) {
-#line 5119 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = alteration_has_subject (alteration, "image");
-#line 39554 "Photo.c"
- } else {
-#line 5119 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = FALSE;
-#line 39558 "Photo.c"
- }
-#line 5119 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp0_) {
-#line 39562 "Photo.c"
- OneShotScheduler* _tmp2_;
-#line 5120 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->thumbnail_scheduler;
-#line 5120 "/home/jens/Source/shotwell/src/Photo.vala"
- one_shot_scheduler_at_priority_idle (_tmp2_, G_PRIORITY_LOW);
-#line 39568 "Photo.c"
- }
-#line 5122 "/home/jens/Source/shotwell/src/Photo.vala"
- DATA_OBJECT_CLASS (library_photo_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_OBJECT, DataObject), alteration);
-#line 39572 "Photo.c"
-}
-
-
-static GdkPixbuf*
-library_photo_real_get_preview_pixbuf (MediaSource* base,
- Scaling* scaling,
- GError** error)
-{
- LibraryPhoto * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 5125 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5125 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 5126 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_BIG, &_inner_error_);
-#line 5126 "/home/jens/Source/shotwell/src/Photo.vala"
- pixbuf = _tmp0_;
-#line 5126 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5126 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5126 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 39601 "Photo.c"
- }
-#line 5128 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = scaling_perform_on_pixbuf (scaling, pixbuf, GDK_INTERP_BILINEAR, TRUE);
-#line 5128 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp1_;
-#line 5128 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (pixbuf);
-#line 5128 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 39611 "Photo.c"
-}
-
-
-static void
-library_photo_real_rotate (Photo* base,
- Rotation rotation)
-{
- LibraryPhoto * self;
- GError * _inner_error_ = NULL;
-#line 5131 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->block_thumbnail_generation = TRUE;
-#line 5134 "/home/jens/Source/shotwell/src/Photo.vala"
- PHOTO_CLASS (library_photo_parent_class)->rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), rotation);
-#line 5135 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->block_thumbnail_generation = FALSE;
-#line 39629 "Photo.c"
- {
-#line 5143 "/home/jens/Source/shotwell/src/Photo.vala"
- thumbnail_cache_rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), rotation, &_inner_error_);
-#line 5143 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 39635 "Photo.c"
- goto __catch421_g_error;
- }
- }
- goto __finally421;
- __catch421_g_error:
- {
- GError* err = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GError* _tmp2_;
- const gchar* _tmp3_;
-#line 5142 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 5142 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 5146 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 5146 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 5146 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = err;
-#line 5146 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_->message;
-#line 5146 "/home/jens/Source/shotwell/src/Photo.vala"
- g_warning ("Photo.vala:5146: Unable to update thumbnails for %s: %s", _tmp1_, _tmp3_);
-#line 5146 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp1_);
-#line 5142 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 39665 "Photo.c"
- }
- __finally421:
-#line 5142 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5142 "/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 5142 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 5142 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39676 "Photo.c"
- }
-#line 5149 "/home/jens/Source/shotwell/src/Photo.vala"
- thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 39680 "Photo.c"
-}
-
-
-static GdkPixbuf*
-library_photo_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- LibraryPhoto * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 5153 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = thumbnail_cache_fetch (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_);
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp1_;
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 39707 "Photo.c"
- }
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp0_;
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = NULL;
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp2_;
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp0_);
-#line 5154 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 39719 "Photo.c"
-}
-
-
-static void
-_library_photo_on_duplicate_progress_gfile_progress_callback (gint64 current_num_bytes,
- gint64 total_num_bytes,
- gpointer self)
-{
-#line 5166 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_on_duplicate_progress ((LibraryPhoto*) self, current_num_bytes, total_num_bytes);
-#line 39730 "Photo.c"
-}
-
-
-static void
-library_photo_duplicate_backing_photo (LibraryPhoto* self,
- BackingPhotoRow* backing,
- BackingPhotoID* result,
- GError** error)
-{
- BackingPhotoID backing_id = {0};
- gboolean _tmp0_ = FALSE;
- GFile* file = NULL;
- const gchar* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 5159 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (self));
-#line 5159 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((backing == NULL) || IS_BACKING_PHOTO_ROW (backing));
-#line 5160 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_id_init (&backing_id, BACKING_PHOTO_ID_INVALID);
-#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
- if (backing == NULL) {
-#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = TRUE;
-#line 39757 "Photo.c"
- } else {
- const gchar* _tmp1_;
-#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = backing->filepath;
-#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _tmp1_ == NULL;
-#line 39764 "Photo.c"
- }
-#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp0_) {
-#line 5162 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = backing_id;
-#line 5162 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39772 "Photo.c"
- }
-#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = backing->filepath;
-#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
- file = _tmp3_;
-#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = file;
-#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
- if (g_file_query_exists (_tmp4_, NULL)) {
-#line 39784 "Photo.c"
- GFile* dupe_file = NULL;
- GFile* _tmp5_;
- GFile* _tmp6_;
- DetectedPhotoInformation* detected = NULL;
- BackingPhotoRow* state = NULL;
- GFile* _tmp7_;
- DetectedPhotoInformation* _tmp8_ = NULL;
- BackingPhotoRow* _tmp9_;
- BackingPhotoRow* _tmp10_;
-#line 5166 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = file;
-#line 5166 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = library_files_duplicate (_tmp5_, _library_photo_on_duplicate_progress_gfile_progress_callback, self, TRUE, &_inner_error_);
-#line 5166 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe_file = _tmp6_;
-#line 5166 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5166 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5166 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 5166 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39808 "Photo.c"
- }
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = dupe_file;
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = photo_query_backing_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp7_, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp8_, &_inner_error_);
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- detected = _tmp8_;
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- state = _tmp9_;
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dupe_file);
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39832 "Photo.c"
- }
-#line 5171 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = state;
-#line 5171 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_ != NULL) {
-#line 39838 "Photo.c"
- BackingPhotoTable* _tmp11_;
- BackingPhotoTable* _tmp12_;
- BackingPhotoRow* _tmp13_;
- BackingPhotoRow* _tmp14_;
- BackingPhotoID _tmp15_;
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = backing_photo_table_get_instance ();
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tmp11_;
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = state;
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_photo_table_add (_tmp12_, _tmp13_, &_inner_error_);
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp12_);
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (state);
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dupe_file);
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 5172 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39868 "Photo.c"
- }
-#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = state;
-#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_->id;
-#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
- backing_id = _tmp15_;
-#line 39876 "Photo.c"
- }
-#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (state);
-#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
- _detected_photo_information_unref0 (detected);
-#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dupe_file);
-#line 39884 "Photo.c"
- }
-#line 5177 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = backing_id;
-#line 5177 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (file);
-#line 5177 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 39892 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_duplicate (LibraryPhoto* self,
- GError** error)
-{
- LibraryPhoto* result = NULL;
- GFile* dupe_file = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- BackingPhotoID dupe_editable_id = {0};
- BackingPhotoRow* _tmp4_;
- BackingPhotoRow* _tmp5_;
- BackingPhotoID _tmp6_ = {0};
- BackingPhotoID _tmp7_;
- BackingPhotoID dupe_raw_shotwell_id = {0};
- BackingPhotoRow* _tmp8_;
- BackingPhotoRow* _tmp9_;
- BackingPhotoID _tmp10_ = {0};
- BackingPhotoID _tmp11_;
- BackingPhotoID dupe_raw_camera_id = {0};
- BackingPhotoRow* _tmp12_;
- BackingPhotoRow* _tmp13_;
- BackingPhotoID _tmp14_ = {0};
- BackingPhotoID _tmp15_;
- BackingPhotoID dupe_raw_embedded_id = {0};
- BackingPhotoRow* _tmp16_;
- BackingPhotoRow* _tmp17_;
- BackingPhotoID _tmp18_ = {0};
- BackingPhotoID _tmp19_;
- PhotoID dupe_id = {0};
- PhotoTable* _tmp20_;
- PhotoTable* _tmp21_;
- PhotoID _tmp22_ = {0};
- GFile* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- BackingPhotoID _tmp26_;
- BackingPhotoID _tmp27_;
- BackingPhotoID _tmp28_;
- BackingPhotoID _tmp29_;
- PhotoID _tmp30_ = {0};
- PhotoID _tmp31_;
- PhotoRow* dupe_row = NULL;
- PhotoTable* _tmp32_;
- PhotoTable* _tmp33_;
- PhotoID _tmp34_;
- PhotoRow* _tmp35_;
- PhotoRow* _tmp36_;
- LibraryPhoto* dupe = NULL;
- PhotoRow* _tmp37_;
- LibraryPhoto* _tmp38_;
- LibraryPhoto* _tmp39_;
- LibraryPhotoSourceCollection* _tmp40_;
- LibraryPhoto* _tmp41_;
- LibraryPhoto* _tmp42_;
- Event* _tmp43_;
- Event* _tmp44_;
- gboolean _tmp45_;
- GeeCollection* tags = NULL;
- TagSourceCollection* _tmp50_;
- GeeList* _tmp51_;
- GeeCollection* _tmp52_;
- GError * _inner_error_ = NULL;
-#line 5180 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (self), NULL);
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = library_files_duplicate (_tmp1_, _library_photo_on_duplicate_progress_gfile_progress_callback, self, TRUE, &_inner_error_);
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = _tmp2_;
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe_file = _tmp3_;
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5182 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 39980 "Photo.c"
- }
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo));
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp4_;
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_duplicate_backing_photo (self, _tmp5_, &_tmp6_, &_inner_error_);
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp5_);
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe_editable_id = _tmp7_;
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dupe_file);
-#line 5185 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 40002 "Photo.c"
- }
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_SHOTWELL);
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_duplicate_backing_photo (self, _tmp9_, &_tmp10_, &_inner_error_);
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tmp10_;
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp9_);
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe_raw_shotwell_id = _tmp11_;
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dupe_file);
-#line 5186 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 40024 "Photo.c"
- }
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_CAMERA);
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_duplicate_backing_photo (self, _tmp13_, &_tmp14_, &_inner_error_);
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = _tmp14_;
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp13_);
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe_raw_camera_id = _tmp15_;
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dupe_file);
-#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 40046 "Photo.c"
- }
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_EMBEDDED);
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_;
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_duplicate_backing_photo (self, _tmp17_, &_tmp18_, &_inner_error_);
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_;
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- _backing_photo_row_unref0 (_tmp17_);
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe_raw_embedded_id = _tmp19_;
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dupe_file);
-#line 5190 "/home/jens/Source/shotwell/src/Photo.vala"
- return NULL;
-#line 40068 "Photo.c"
- }
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = photo_table_get_instance ();
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = _tmp20_;
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp22_);
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = dupe_file;
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = g_file_get_path (_tmp23_);
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp24_;
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = dupe_editable_id;
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = dupe_raw_shotwell_id;
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = dupe_raw_camera_id;
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = dupe_raw_embedded_id;
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_duplicate (_tmp21_, &_tmp22_, _tmp25_, &_tmp26_, &_tmp27_, &_tmp28_, &_tmp29_, &_tmp30_);
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = _tmp30_;
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp25_);
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp21_);
-#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe_id = _tmp31_;
-#line 5196 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = photo_table_get_instance ();
-#line 5196 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tmp32_;
-#line 5196 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = dupe_id;
-#line 5196 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = photo_table_get_row (_tmp33_, &_tmp34_);
-#line 5196 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_;
-#line 5196 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp33_);
-#line 5196 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe_row = _tmp36_;
-#line 5199 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = dupe_row;
-#line 5199 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = library_photo_new (_tmp37_);
-#line 5199 "/home/jens/Source/shotwell/src/Photo.vala"
- dupe = _tmp38_;
-#line 5202 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = dupe;
-#line 5202 "/home/jens/Source/shotwell/src/Photo.vala"
- thumbnail_cache_duplicate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 5205 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = library_photo_global;
-#line 5205 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = dupe;
-#line 5205 "/home/jens/Source/shotwell/src/Photo.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_OBJECT, DataObject));
-#line 5208 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = dupe;
-#line 5208 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5208 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_;
-#line 5208 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = _tmp44_ != NULL;
-#line 5208 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp44_);
-#line 5208 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp45_) {
-#line 40142 "Photo.c"
- LibraryPhoto* _tmp46_;
- Event* _tmp47_;
- Event* _tmp48_;
- LibraryPhoto* _tmp49_;
-#line 5209 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = dupe;
-#line 5209 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5209 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _tmp47_;
-#line 5209 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = dupe;
-#line 5209 "/home/jens/Source/shotwell/src/Photo.vala"
- event_attach (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5209 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp48_);
-#line 40159 "Photo.c"
- }
-#line 5212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = tag_global;
-#line 5212 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = tag_source_collection_fetch_for_source (_tmp50_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5212 "/home/jens/Source/shotwell/src/Photo.vala"
- tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 5213 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = tags;
-#line 5213 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp52_ != NULL) {
-#line 40171 "Photo.c"
- {
- GeeIterator* _tag_it = NULL;
- GeeCollection* _tmp53_;
- GeeIterator* _tmp54_;
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = tags;
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_it = _tmp54_;
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 40184 "Photo.c"
- GeeIterator* _tmp55_;
- Tag* tag = NULL;
- GeeIterator* _tmp56_;
- gpointer _tmp57_;
- Tag* _tmp58_;
- LibraryPhoto* _tmp59_;
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = _tag_it;
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp55_)) {
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 40197 "Photo.c"
- }
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = _tag_it;
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = gee_iterator_get (_tmp56_);
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- tag = (Tag*) _tmp57_;
-#line 5215 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = tag;
-#line 5215 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = dupe;
-#line 5215 "/home/jens/Source/shotwell/src/Photo.vala"
- tag_attach (_tmp58_, G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tag);
-#line 40213 "Photo.c"
- }
-#line 5214 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tag_it);
-#line 40217 "Photo.c"
- }
- }
-#line 5219 "/home/jens/Source/shotwell/src/Photo.vala"
- result = dupe;
-#line 5219 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tags);
-#line 5219 "/home/jens/Source/shotwell/src/Photo.vala"
- _photo_row_unref0 (dupe_row);
-#line 5219 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (dupe_file);
-#line 5219 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40230 "Photo.c"
-}
-
-
-static void
-library_photo_on_duplicate_progress (LibraryPhoto* self,
- gint64 current,
- gint64 total)
-{
-#line 5222 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (self));
-#line 5223 "/home/jens/Source/shotwell/src/Photo.vala"
- spin_event_loop ();
-#line 40243 "Photo.c"
-}
-
-
-static void
-library_photo_upgrade_rating_flags (LibraryPhoto* self,
- guint64 flags)
-{
-#line 5226 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (self));
-#line 5227 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((flags & LIBRARY_PHOTO_FLAG_HIDDEN) != ((guint64) 0)) {
-#line 5228 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), RATING_REJECTED);
-#line 5229 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_HIDDEN, NULL);
-#line 40259 "Photo.c"
- }
-#line 5232 "/home/jens/Source/shotwell/src/Photo.vala"
- if ((flags & LIBRARY_PHOTO_FLAG_FAVORITE) != ((guint64) 0)) {
-#line 5233 "/home/jens/Source/shotwell/src/Photo.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), RATING_FIVE);
-#line 5234 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FAVORITE, NULL);
-#line 40267 "Photo.c"
- }
-}
-
-
-static gboolean
-library_photo_real_is_trashed (MediaSource* base)
-{
- LibraryPhoto * self;
- gboolean result = FALSE;
-#line 5239 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5240 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH);
-#line 5240 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40283 "Photo.c"
-}
-
-
-static void
-library_photo_real_trash (MediaSource* base)
-{
- LibraryPhoto * self;
-#line 5243 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5244 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH, NULL);
-#line 40295 "Photo.c"
-}
-
-
-static void
-library_photo_real_untrash (MediaSource* base)
-{
- LibraryPhoto * self;
-#line 5247 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5248 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH, NULL);
-#line 40307 "Photo.c"
-}
-
-
-static gboolean
-library_photo_real_is_offline (Monitorable* base)
-{
- LibraryPhoto * self;
- gboolean result = FALSE;
-#line 5251 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5252 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE);
-#line 5252 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40322 "Photo.c"
-}
-
-
-static void
-library_photo_real_mark_offline (Monitorable* base)
-{
- LibraryPhoto * self;
-#line 5255 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5256 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE, NULL);
-#line 40334 "Photo.c"
-}
-
-
-static void
-library_photo_real_mark_online (Monitorable* base)
-{
- LibraryPhoto * self;
-#line 5259 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5260 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE, NULL);
-#line 40346 "Photo.c"
-}
-
-
-static gboolean
-library_photo_real_is_flagged (Flaggable* base)
-{
- LibraryPhoto * self;
- gboolean result = FALSE;
-#line 5263 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5264 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED);
-#line 5264 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40361 "Photo.c"
-}
-
-
-static void
-library_photo_real_mark_flagged (Flaggable* base)
-{
- LibraryPhoto * self;
- Alteration* _tmp0_;
- Alteration* _tmp1_;
-#line 5267 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = alteration_new ("metadata", "flagged");
-#line 5268 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 5268 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED, _tmp1_);
-#line 5268 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp1_);
-#line 40381 "Photo.c"
-}
-
-
-static void
-library_photo_real_mark_unflagged (Flaggable* base)
-{
- LibraryPhoto * self;
- Alteration* _tmp0_;
- Alteration* _tmp1_;
-#line 5271 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = alteration_new ("metadata", "flagged");
-#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED, _tmp1_);
-#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
- _alteration_unref0 (_tmp1_);
-#line 40401 "Photo.c"
-}
-
-
-static gboolean
-library_photo_real_internal_delete_backing (DataSource* base,
- GError** error)
-{
- LibraryPhoto * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 5275 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5278 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = DATA_SOURCE_CLASS (library_photo_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_SOURCE, DataSource), &_inner_error_);
-#line 5278 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 40419 "Photo.c"
- gboolean _tmp1_ = FALSE;
-#line 5278 "/home/jens/Source/shotwell/src/Photo.vala"
- g_propagate_error (error, _inner_error_);
-#line 5278 "/home/jens/Source/shotwell/src/Photo.vala"
- return _tmp1_;
-#line 40425 "Photo.c"
- }
-#line 5278 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!_tmp0_) {
-#line 5279 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 5279 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40433 "Photo.c"
- }
-#line 5281 "/home/jens/Source/shotwell/src/Photo.vala"
- result = media_source_delete_original_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5281 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40439 "Photo.c"
-}
-
-
-static void
-library_photo_real_destroy (DataSource* base)
-{
- LibraryPhoto * self;
- PhotoID photo_id = {0};
- PhotoID _tmp0_ = {0};
- GError * _inner_error_ = NULL;
-#line 5284 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5285 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp0_);
-#line 5285 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id = _tmp0_;
-#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
- thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 40458 "Photo.c"
- {
- PhotoTable* _tmp1_;
- PhotoTable* _tmp2_;
- PhotoID _tmp3_;
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_table_get_instance ();
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp1_;
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_id;
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_table_remove (_tmp2_, &_tmp3_, &_inner_error_);
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- _database_table_unref0 (_tmp2_);
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 40477 "Photo.c"
- goto __catch422_database_error;
- }
-#line 5294 "/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);
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 40486 "Photo.c"
- }
- }
- goto __finally422;
- __catch422_database_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
- err = _inner_error_;
-#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
- _inner_error_ = NULL;
-#line 5296 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = err;
-#line 5296 "/home/jens/Source/shotwell/src/Photo.vala"
- app_window_database_error (_tmp4_);
-#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_error_free0 (err);
-#line 40504 "Photo.c"
- }
- __finally422:
-#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5293 "/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 5293 "/home/jens/Source/shotwell/src/Photo.vala"
- g_clear_error (&_inner_error_);
-#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 40515 "Photo.c"
- }
-#line 5299 "/home/jens/Source/shotwell/src/Photo.vala"
- DATA_SOURCE_CLASS (library_photo_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_SOURCE, DataSource));
-#line 40519 "Photo.c"
-}
-
-
-gboolean
-library_photo_has_nontrash_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_ = {0};
-#line 5302 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE);
-#line 5304 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_get_nontrash_duplicate (file, thumbnail_md5, full_md5, file_format, &_tmp0_);
-#line 5304 "/home/jens/Source/shotwell/src/Photo.vala"
- result = photo_id_is_valid (&_tmp0_);
-#line 5304 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40539 "Photo.c"
-}
-
-
-void
-library_photo_get_nontrash_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- PhotoID* result)
-{
- PhotoID* ids = NULL;
- gint _tmp0_;
- PhotoID* _tmp1_;
- gint ids_length1;
- gint _ids_size_;
- gboolean _tmp2_ = FALSE;
- PhotoID* _tmp3_;
- gint _tmp3__length1;
- PhotoID* _tmp6_;
- gint _tmp6__length1;
- PhotoID _tmp13_ = {0};
-#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((file == NULL) || G_IS_FILE (file));
-#line 5309 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo_get_duplicate_ids (file, thumbnail_md5, full_md5, file_format, &_tmp0_);
-#line 5309 "/home/jens/Source/shotwell/src/Photo.vala"
- ids = _tmp1_;
-#line 5309 "/home/jens/Source/shotwell/src/Photo.vala"
- ids_length1 = _tmp0_;
-#line 5309 "/home/jens/Source/shotwell/src/Photo.vala"
- _ids_size_ = ids_length1;
-#line 5311 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = ids;
-#line 5311 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3__length1 = ids_length1;
-#line 5311 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_ == NULL) {
-#line 5311 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = TRUE;
-#line 40579 "Photo.c"
- } else {
- PhotoID* _tmp4_;
- gint _tmp4__length1;
-#line 5311 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = ids;
-#line 5311 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4__length1 = ids_length1;
-#line 5311 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _tmp4__length1 == 0;
-#line 40589 "Photo.c"
- }
-#line 5311 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_) {
-#line 40593 "Photo.c"
- PhotoID _tmp5_ = {0};
-#line 5312 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id_init (&_tmp5_, PHOTO_ID_INVALID);
-#line 5312 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp5_;
-#line 5312 "/home/jens/Source/shotwell/src/Photo.vala"
- ids = (g_free (ids), NULL);
-#line 5312 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 40603 "Photo.c"
- }
-#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = ids;
-#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6__length1 = ids_length1;
-#line 40609 "Photo.c"
- {
- PhotoID* id_collection = NULL;
- gint id_collection_length1 = 0;
- gint _id_collection_size_ = 0;
- gint id_it = 0;
-#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
- id_collection = _tmp6_;
-#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
- id_collection_length1 = _tmp6__length1;
-#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
- for (id_it = 0; id_it < _tmp6__length1; id_it = id_it + 1) {
-#line 40621 "Photo.c"
- PhotoID id = {0};
-#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
- id = id_collection[id_it];
-#line 40625 "Photo.c"
- {
- LibraryPhoto* photo = NULL;
- LibraryPhotoSourceCollection* _tmp7_;
- PhotoID _tmp8_;
- LibraryPhoto* _tmp9_;
- gboolean _tmp10_ = FALSE;
- LibraryPhoto* _tmp11_;
-#line 5315 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = library_photo_global;
-#line 5315 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = id;
-#line 5315 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = library_photo_source_collection_fetch (_tmp7_, &_tmp8_);
-#line 5315 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp9_;
-#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo;
-#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_ != NULL) {
-#line 40645 "Photo.c"
- LibraryPhoto* _tmp12_;
-#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo;
-#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = !media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 40651 "Photo.c"
- } else {
-#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = FALSE;
-#line 40655 "Photo.c"
- }
-#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_) {
-#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = id;
-#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
- ids = (g_free (ids), NULL);
-#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 40667 "Photo.c"
- }
-#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 40671 "Photo.c"
- }
- }
- }
-#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_id_init (&_tmp13_, PHOTO_ID_INVALID);
-#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
- *result = _tmp13_;
-#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
- ids = (g_free (ids), NULL);
-#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
- return;
-#line 40683 "Photo.c"
-}
-
-
-static gboolean
-library_photo_real_has_user_generated_metadata (Photo* base)
-{
- LibraryPhoto * self;
- gboolean result = FALSE;
- GeeList* tags = NULL;
- TagSourceCollection* _tmp0_;
- GeeList* _tmp1_;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp2_;
- PhotoMetadata* _tmp3_;
- PhotoMetadata* _tmp10_;
- GeeSet* keywords = NULL;
- PhotoMetadata* _tmp11_;
- GeeSet* _tmp12_;
- gint _tmp13_ = 0;
- GeeList* _tmp14_;
- gint tags_count = 0;
- gint _tmp18_ = 0;
- GeeSet* _tmp19_;
- gint keywords_count = 0;
- gint _tmp23_;
- gint _tmp24_;
- gboolean _tmp25_ = FALSE;
- GeeList* _tmp26_;
-#line 5323 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5324 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = tag_global;
-#line 5324 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = tag_source_collection_fetch_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5324 "/home/jens/Source/shotwell/src/Photo.vala"
- tags = _tmp1_;
-#line 5326 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 5326 "/home/jens/Source/shotwell/src/Photo.vala"
- metadata = _tmp2_;
-#line 5327 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = metadata;
-#line 5327 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp3_ == NULL) {
-#line 40728 "Photo.c"
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- GeeList* _tmp6_;
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = tags;
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp6_ != NULL) {
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = TRUE;
-#line 40738 "Photo.c"
- } else {
- GeeList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = tags;
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _tmp9_ > 0;
-#line 40751 "Photo.c"
- }
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp5_) {
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = TRUE;
-#line 40757 "Photo.c"
- } else {
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_UNRATED;
-#line 40761 "Photo.c"
- }
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- result = _tmp4_;
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tags);
-#line 5328 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40771 "Photo.c"
- }
-#line 5330 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = metadata;
-#line 5330 "/home/jens/Source/shotwell/src/Photo.vala"
- if (media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)) != photo_metadata_get_rating (_tmp10_)) {
-#line 5331 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 5331 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 5331 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tags);
-#line 5331 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40785 "Photo.c"
- }
-#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = metadata;
-#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_metadata_get_keywords (_tmp11_, NULL, NULL, NULL);
-#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
- keywords = _tmp12_;
-#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = tags;
-#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp14_ != NULL) {
-#line 40797 "Photo.c"
- GeeList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = tags;
-#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = _tmp16_;
-#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp17_;
-#line 40809 "Photo.c"
- } else {
-#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = 0;
-#line 40813 "Photo.c"
- }
-#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
- tags_count = _tmp13_;
-#line 5335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = keywords;
-#line 5335 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp19_ != NULL) {
-#line 40821 "Photo.c"
- GeeSet* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
-#line 5335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = keywords;
-#line 5335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp21_;
-#line 5335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp22_;
-#line 40833 "Photo.c"
- } else {
-#line 5335 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = 0;
-#line 40837 "Photo.c"
- }
-#line 5335 "/home/jens/Source/shotwell/src/Photo.vala"
- keywords_count = _tmp18_;
-#line 5337 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = tags_count;
-#line 5337 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = keywords_count;
-#line 5337 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp23_ != _tmp24_) {
-#line 5338 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 5338 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (keywords);
-#line 5338 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 5338 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tags);
-#line 5338 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40857 "Photo.c"
- }
-#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = tags;
-#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp26_ != NULL) {
-#line 40863 "Photo.c"
- GeeSet* _tmp27_;
-#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = keywords;
-#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _tmp27_ != NULL;
-#line 40869 "Photo.c"
- } else {
-#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = FALSE;
-#line 40873 "Photo.c"
- }
-#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp25_) {
-#line 40877 "Photo.c"
- {
- GeeList* _tag_list = NULL;
- GeeList* _tmp28_;
- GeeList* _tmp29_;
- gint _tag_size = 0;
- GeeList* _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- gint _tag_index = 0;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = tags;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = _g_object_ref0 (_tmp28_);
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_list = _tmp29_;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tag_list;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = _tmp31_;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_size = _tmp32_;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_index = -1;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 40905 "Photo.c"
- gint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- Tag* tag = NULL;
- GeeList* _tmp36_;
- gint _tmp37_;
- gpointer _tmp38_;
- GeeSet* _tmp39_;
- Tag* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- gboolean _tmp45_;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = _tag_index;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_index = _tmp33_ + 1;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tag_index;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = _tag_size;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp34_ < _tmp35_)) {
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 40932 "Photo.c"
- }
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tag_list;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _tag_index;
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = gee_list_get (_tmp36_, _tmp37_);
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- tag = (Tag*) _tmp38_;
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = keywords;
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = tag;
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_DATA_OBJECT, DataObject));
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = _tmp41_;
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = g_utf8_normalize (_tmp42_, (gssize) -1, G_NORMALIZE_DEFAULT);
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = _tmp43_;
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = !gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), _tmp44_);
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp44_);
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp42_);
-#line 5342 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp45_) {
-#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
- result = TRUE;
-#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tag);
-#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tag_list);
-#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (keywords);
-#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tags);
-#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40976 "Photo.c"
- }
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tag);
-#line 40980 "Photo.c"
- }
-#line 5341 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tag_list);
-#line 40984 "Photo.c"
- }
- }
-#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
- result = FALSE;
-#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (keywords);
-#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
- _media_metadata_unref0 (metadata);
-#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tags);
-#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 40997 "Photo.c"
-}
-
-
-static void
-library_photo_real_set_user_metadata_for_export (Photo* base,
- PhotoMetadata* metadata)
-{
- LibraryPhoto * self;
- GeeList* photo_tags = NULL;
- TagSourceCollection* _tmp0_;
- GeeList* _tmp1_;
- GeeList* _tmp2_;
-#line 5350 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5350 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO_METADATA (metadata));
-#line 5351 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = tag_global;
-#line 5351 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = tag_source_collection_fetch_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5351 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_tags = _tmp1_;
-#line 5352 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = photo_tags;
-#line 5352 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 41024 "Photo.c"
- GeeCollection* string_tags = NULL;
- GeeArrayList* _tmp3_;
- GeeCollection* _tmp19_;
-#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
- string_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 41032 "Photo.c"
- {
- GeeList* _tag_list = NULL;
- GeeList* _tmp4_;
- GeeList* _tmp5_;
- gint _tag_size = 0;
- GeeList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tag_index = 0;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo_tags;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_list = _tmp5_;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = _tag_list;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_size = _tmp8_;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_index = -1;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 41060 "Photo.c"
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- Tag* tag = NULL;
- GeeList* _tmp12_;
- gint _tmp13_;
- gpointer _tmp14_;
- GeeCollection* _tmp15_;
- Tag* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tag_index;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tag_index = _tmp9_ + 1;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _tag_index;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _tag_size;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!(_tmp10_ < _tmp11_)) {
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 41084 "Photo.c"
- }
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = _tag_list;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tag_index;
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = gee_list_get (_tmp12_, _tmp13_);
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- tag = (Tag*) _tmp14_;
-#line 5355 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = string_tags;
-#line 5355 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = tag;
-#line 5355 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
-#line 5355 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = _tmp17_;
-#line 5355 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_collection_add (_tmp15_, _tmp18_);
-#line 5355 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (_tmp18_);
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (tag);
-#line 41108 "Photo.c"
- }
-#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tag_list);
-#line 41112 "Photo.c"
- }
-#line 5357 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = string_tags;
-#line 5357 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_keywords (metadata, _tmp19_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 5352 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (string_tags);
-#line 41120 "Photo.c"
- } else {
-#line 5359 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_keywords (metadata, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 41124 "Photo.c"
- }
-#line 5361 "/home/jens/Source/shotwell/src/Photo.vala"
- photo_metadata_set_rating (metadata, media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)));
-#line 5350 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo_tags);
-#line 41130 "Photo.c"
-}
-
-
-static void
-library_photo_real_apply_user_metadata_for_reimport (Photo* base,
- PhotoMetadata* metadata)
-{
- LibraryPhoto * self;
- HierarchicalTagIndex* new_htag_index = NULL;
- GeeCollection* keywords = NULL;
- GeeSet* _tmp3_;
- GeeCollection* _tmp4_;
- HierarchicalTagIndex* _tmp31_;
-#line 5364 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 5364 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO_METADATA (metadata));
-#line 5365 "/home/jens/Source/shotwell/src/Photo.vala"
- new_htag_index = NULL;
-#line 5367 "/home/jens/Source/shotwell/src/Photo.vala"
- if (photo_metadata_has_hierarchical_keywords (metadata)) {
-#line 41152 "Photo.c"
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- HierarchicalTagIndex* _tmp2_;
-#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = photo_metadata_get_hierarchical_keywords (metadata);
-#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _tmp0_;
-#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = hierarchical_tag_utilities_process_hierarchical_import_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
- _hierarchical_tag_index_unref0 (new_htag_index);
-#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
- new_htag_index = _tmp2_;
-#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp1_);
-#line 41168 "Photo.c"
- }
-#line 5372 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo_metadata_get_keywords (metadata, NULL, NULL, NULL);
-#line 5372 "/home/jens/Source/shotwell/src/Photo.vala"
- keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 5373 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = keywords;
-#line 5373 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp4_ != NULL) {
-#line 41178 "Photo.c"
- {
- GeeIterator* _keyword_it = NULL;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = keywords;
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _keyword_it = _tmp6_;
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 41191 "Photo.c"
- GeeIterator* _tmp7_;
- gchar* keyword = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- gboolean _tmp10_ = FALSE;
- HierarchicalTagIndex* _tmp11_;
- gchar* safe_keyword = NULL;
- const gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* promoted_keyword = NULL;
- const gchar* _tmp16_;
- gchar* _tmp17_;
- TagSourceCollection* _tmp18_;
- const gchar* _tmp19_;
- TagSourceCollection* _tmp23_;
- const gchar* _tmp24_;
- const gchar* _tmp28_;
- Tag* _tmp29_;
- Tag* _tmp30_;
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _keyword_it;
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 41217 "Photo.c"
- }
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _keyword_it;
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- keyword = (gchar*) _tmp9_;
-#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = new_htag_index;
-#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp11_ != NULL) {
-#line 41229 "Photo.c"
- HierarchicalTagIndex* _tmp12_;
- const gchar* _tmp13_;
-#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = new_htag_index;
-#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = keyword;
-#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = hierarchical_tag_index_is_tag_in_index (_tmp12_, _tmp13_);
-#line 41238 "Photo.c"
- } else {
-#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = FALSE;
-#line 41242 "Photo.c"
- }
-#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp10_) {
-#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (keyword);
-#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
- continue;
-#line 41250 "Photo.c"
- }
-#line 5378 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = keyword;
-#line 5378 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp14_);
-#line 5378 "/home/jens/Source/shotwell/src/Photo.vala"
- safe_keyword = _tmp15_;
-#line 5379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = safe_keyword;
-#line 5379 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp16_);
-#line 5379 "/home/jens/Source/shotwell/src/Photo.vala"
- promoted_keyword = _tmp17_;
-#line 5382 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = tag_global;
-#line 5382 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = safe_keyword;
-#line 5382 "/home/jens/Source/shotwell/src/Photo.vala"
- if (tag_source_collection_exists (_tmp18_, _tmp19_, FALSE)) {
-#line 41270 "Photo.c"
- const gchar* _tmp20_;
- Tag* _tmp21_;
- Tag* _tmp22_;
-#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = safe_keyword;
-#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = tag_for_path (_tmp20_);
-#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _tmp21_;
-#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
- tag_attach (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp22_);
-#line 5384 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (promoted_keyword);
-#line 5384 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (safe_keyword);
-#line 5384 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (keyword);
-#line 5384 "/home/jens/Source/shotwell/src/Photo.vala"
- continue;
-#line 41292 "Photo.c"
- }
-#line 5387 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = tag_global;
-#line 5387 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = promoted_keyword;
-#line 5387 "/home/jens/Source/shotwell/src/Photo.vala"
- if (tag_source_collection_exists (_tmp23_, _tmp24_, FALSE)) {
-#line 41300 "Photo.c"
- const gchar* _tmp25_;
- Tag* _tmp26_;
- Tag* _tmp27_;
-#line 5388 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = promoted_keyword;
-#line 5388 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = tag_for_path (_tmp25_);
-#line 5388 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = _tmp26_;
-#line 5388 "/home/jens/Source/shotwell/src/Photo.vala"
- tag_attach (_tmp27_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5388 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp27_);
-#line 5389 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (promoted_keyword);
-#line 5389 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (safe_keyword);
-#line 5389 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (keyword);
-#line 5389 "/home/jens/Source/shotwell/src/Photo.vala"
- continue;
-#line 41322 "Photo.c"
- }
-#line 5392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = keyword;
-#line 5392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = tag_for_path (_tmp28_);
-#line 5392 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = _tmp29_;
-#line 5392 "/home/jens/Source/shotwell/src/Photo.vala"
- tag_attach (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5392 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp30_);
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (promoted_keyword);
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (safe_keyword);
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (keyword);
-#line 41340 "Photo.c"
- }
-#line 5374 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_keyword_it);
-#line 41344 "Photo.c"
- }
- }
-#line 5396 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = new_htag_index;
-#line 5396 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp31_ != NULL) {
-#line 41351 "Photo.c"
- {
- GeeIterator* _path_it = NULL;
- HierarchicalTagIndex* _tmp32_;
- GeeCollection* _tmp33_;
- GeeCollection* _tmp34_;
- GeeIterator* _tmp35_;
- GeeIterator* _tmp36_;
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = new_htag_index;
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = hierarchical_tag_index_get_all_paths (_tmp32_);
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = _tmp33_;
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = _tmp35_;
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp34_);
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _path_it = _tmp36_;
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 41375 "Photo.c"
- GeeIterator* _tmp37_;
- gchar* path = NULL;
- GeeIterator* _tmp38_;
- gpointer _tmp39_;
- const gchar* _tmp40_;
- Tag* _tmp41_;
- Tag* _tmp42_;
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _path_it;
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp37_)) {
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 41389 "Photo.c"
- }
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _path_it;
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = gee_iterator_get (_tmp38_);
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- path = (gchar*) _tmp39_;
-#line 5398 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = path;
-#line 5398 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = tag_for_path (_tmp40_);
-#line 5398 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = _tmp41_;
-#line 5398 "/home/jens/Source/shotwell/src/Photo.vala"
- tag_attach (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 5398 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp42_);
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_free0 (path);
-#line 41409 "Photo.c"
- }
-#line 5397 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_path_it);
-#line 41413 "Photo.c"
- }
- }
-#line 5364 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (keywords);
-#line 5364 "/home/jens/Source/shotwell/src/Photo.vala"
- _hierarchical_tag_index_unref0 (new_htag_index);
-#line 41420 "Photo.c"
-}
-
-
-static void
-library_photo_class_init (LibraryPhotoClass * klass)
-{
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_parent_class = g_type_class_peek_parent (klass);
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_class_add_private (klass, sizeof (LibraryPhotoPrivate));
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_master_reimported = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_notify_master_reimported;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_editable_reimported = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_notify_editable_reimported;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_source_reimported = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_notify_source_reimported;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->notify_baseline_reimported = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_notify_baseline_reimported;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) library_photo_real_notify_altered;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*) (MediaSource *, Scaling*, GError**)) library_photo_real_get_preview_pixbuf;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->rotate = (void (*) (Photo *, Rotation)) library_photo_real_rotate;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) library_photo_real_get_thumbnail;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->is_trashed = (gboolean (*) (MediaSource *)) library_photo_real_is_trashed;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->trash = (void (*) (MediaSource *)) library_photo_real_trash;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->untrash = (void (*) (MediaSource *)) library_photo_real_untrash;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->is_offline = (gboolean (*) (MediaSource *)) library_photo_real_is_offline;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->mark_offline = (void (*) (MediaSource *)) library_photo_real_mark_offline;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((MediaSourceClass *) klass)->mark_online = (void (*) (MediaSource *)) library_photo_real_mark_online;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) library_photo_real_internal_delete_backing;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) library_photo_real_destroy;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->has_user_generated_metadata = (gboolean (*) (Photo *)) library_photo_real_has_user_generated_metadata;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->set_user_metadata_for_export = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_set_user_metadata_for_export;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- ((PhotoClass *) klass)->apply_user_metadata_for_reimport = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_apply_user_metadata_for_reimport;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (klass)->finalize = library_photo_finalize;
-#line 41471 "Photo.c"
-}
-
-
-static void
-library_photo_flaggable_interface_init (FlaggableIface * iface)
-{
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_flaggable_parent_iface = g_type_interface_peek_parent (iface);
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->is_flagged = (gboolean (*) (Flaggable *)) library_photo_real_is_flagged;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->mark_flagged = (void (*) (Flaggable *)) library_photo_real_mark_flagged;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->mark_unflagged = (void (*) (Flaggable *)) library_photo_real_mark_unflagged;
-#line 41486 "Photo.c"
-}
-
-
-static void
-library_photo_monitorable_interface_init (MonitorableIface * iface)
-{
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_monitorable_parent_iface = g_type_interface_peek_parent (iface);
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->is_offline = (gboolean (*) (Monitorable *)) library_photo_real_is_offline;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->mark_offline = (void (*) (Monitorable *)) library_photo_real_mark_offline;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->mark_online = (void (*) (Monitorable *)) library_photo_real_mark_online;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->set_master_file = (void (*) (Monitorable *, GFile*)) photo_set_master_file;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- iface->set_master_timestamp = (void (*) (Monitorable *, GFileInfo*)) photo_set_master_timestamp;
-#line 41505 "Photo.c"
-}
-
-
-static void
-library_photo_instance_init (LibraryPhoto * self)
-{
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv = LIBRARY_PHOTO_GET_PRIVATE (self);
-#line 4976 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->block_thumbnail_generation = FALSE;
-#line 4977 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->thumbnail_scheduler = NULL;
-#line 41518 "Photo.c"
-}
-
-
-static void
-library_photo_finalize (GObject * obj)
-{
- LibraryPhoto * self;
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 4977 "/home/jens/Source/shotwell/src/Photo.vala"
- _one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler);
-#line 4978 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->import_keywords);
-#line 4965 "/home/jens/Source/shotwell/src/Photo.vala"
- G_OBJECT_CLASS (library_photo_parent_class)->finalize (obj);
-#line 41534 "Photo.c"
-}
-
-
-GType
-library_photo_get_type (void)
-{
- static volatile gsize library_photo_type_id__volatile = 0;
- if (g_once_init_enter (&library_photo_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhoto), 0, (GInstanceInitFunc) library_photo_instance_init, NULL };
- static const GInterfaceInfo flaggable_info = { (GInterfaceInitFunc) library_photo_flaggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo monitorable_info = { (GInterfaceInitFunc) library_photo_monitorable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType library_photo_type_id;
- library_photo_type_id = g_type_register_static (TYPE_PHOTO, "LibraryPhoto", &g_define_type_info, 0);
- g_type_add_interface_static (library_photo_type_id, TYPE_FLAGGABLE, &flaggable_info);
- g_type_add_interface_static (library_photo_type_id, TYPE_MONITORABLE, &monitorable_info);
- g_once_init_leave (&library_photo_type_id__volatile, library_photo_type_id);
- }
- return library_photo_type_id__volatile;
-}
-
-
-LibraryPhotoSourceHoldingTank*
-library_photo_source_holding_tank_construct (GType object_type,
- LibraryPhotoSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target)
-{
- LibraryPhotoSourceHoldingTank* self = NULL;
-#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (sources), NULL);
-#line 5416 "/home/jens/Source/shotwell/src/Photo.vala"
- self = (LibraryPhotoSourceHoldingTank*) media_source_holding_tank_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), check_to_keep, check_to_keep_target, get_key, get_key_target);
-#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
- return self;
-#line 41571 "Photo.c"
-}
-
-
-LibraryPhotoSourceHoldingTank*
-library_photo_source_holding_tank_new (LibraryPhotoSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target)
-{
-#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
- return library_photo_source_holding_tank_construct (TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target, get_key, get_key_target);
-#line 41584 "Photo.c"
-}
-
-
-LibraryPhoto*
-library_photo_source_holding_tank_fetch_by_backing_file (LibraryPhotoSourceHoldingTank* self,
- GFile* file)
-{
- LibraryPhoto* result = NULL;
- LibraryPhoto* ret = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- LibraryPhoto* _tmp2_;
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
-#line 5419 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self), NULL);
-#line 5419 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 5420 "/home/jens/Source/shotwell/src/Photo.vala"
- ret = NULL;
-#line 5421 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = self->priv->editable_file_map;
-#line 5421 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 5421 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (ret);
-#line 5421 "/home/jens/Source/shotwell/src/Photo.vala"
- ret = (LibraryPhoto*) _tmp1_;
-#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = ret;
-#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp2_ != NULL) {
-#line 5423 "/home/jens/Source/shotwell/src/Photo.vala"
- result = ret;
-#line 5423 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 41621 "Photo.c"
- }
-#line 5425 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->development_file_map;
-#line 5425 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 5425 "/home/jens/Source/shotwell/src/Photo.vala"
- result = (LibraryPhoto*) _tmp4_;
-#line 5425 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (ret);
-#line 5425 "/home/jens/Source/shotwell/src/Photo.vala"
- return result;
-#line 41633 "Photo.c"
-}
-
-
-static void
-_library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced (Photo* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self)
-{
-#line 5449 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_holding_tank_on_editable_replaced ((LibraryPhotoSourceHoldingTank*) self, _sender, old_file, new_file);
-#line 41645 "Photo.c"
-}
-
-
-static void
-_library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified (Photo* _sender,
- gpointer self)
-{
-#line 5450 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_holding_tank_on_raw_development_modified ((LibraryPhotoSourceHoldingTank*) self, _sender);
-#line 41655 "Photo.c"
-}
-
-
-static void
-library_photo_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base,
- GeeCollection* added,
- GeeCollection* removed)
-{
- LibraryPhotoSourceHoldingTank * self;
-#line 5428 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank);
-#line 5428 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 5428 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 5430 "/home/jens/Source/shotwell/src/Photo.vala"
- if (added != NULL) {
-#line 41673 "Photo.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_it = _tmp0_;
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 41683 "Photo.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- LibraryPhoto* photo = NULL;
- DataSource* _tmp4_;
- LibraryPhoto* _tmp5_;
- LibraryPhoto* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
- gboolean _tmp9_;
- GeeCollection* raw_files = NULL;
- LibraryPhoto* _tmp20_;
- GeeCollection* _tmp21_;
- GeeCollection* _tmp22_;
- LibraryPhoto* _tmp34_;
- LibraryPhoto* _tmp35_;
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = _source_it;
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 41707 "Photo.c"
- }
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = _source_it;
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- source = (DataSource*) _tmp3_;
-#line 5432 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = source;
-#line 5432 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 5432 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp5_;
-#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo;
-#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo));
-#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = _tmp7_;
-#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_ != NULL;
-#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp8_);
-#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp9_) {
-#line 41733 "Photo.c"
- GeeHashMap* _tmp10_;
- LibraryPhoto* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- LibraryPhoto* _tmp14_;
- GeeMultiMap* _tmp15_;
- LibraryPhoto* _tmp16_;
- LibraryPhoto* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
-#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = self->priv->editable_file_map;
-#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = photo;
-#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO, Photo));
-#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = _tmp12_;
-#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = photo;
-#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp14_);
-#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp13_);
-#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->priv->reverse_editable_file_map;
-#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = photo;
-#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = photo;
-#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo));
-#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = _tmp18_;
-#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp15_, _tmp16_, _tmp19_);
-#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp19_);
-#line 41772 "Photo.c"
- }
-#line 5441 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = photo;
-#line 5441 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo));
-#line 5441 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_files = _tmp21_;
-#line 5442 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = raw_files;
-#line 5442 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp22_ != NULL) {
-#line 41784 "Photo.c"
- {
- GeeIterator* _f_it = NULL;
- GeeCollection* _tmp23_;
- GeeIterator* _tmp24_;
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = raw_files;
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- _f_it = _tmp24_;
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 41797 "Photo.c"
- GeeIterator* _tmp25_;
- GFile* f = NULL;
- GeeIterator* _tmp26_;
- gpointer _tmp27_;
- GeeHashMap* _tmp28_;
- GFile* _tmp29_;
- LibraryPhoto* _tmp30_;
- GeeMultiMap* _tmp31_;
- LibraryPhoto* _tmp32_;
- GFile* _tmp33_;
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = _f_it;
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp25_)) {
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 41814 "Photo.c"
- }
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = _f_it;
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = gee_iterator_get (_tmp26_);
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- f = (GFile*) _tmp27_;
-#line 5444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = self->priv->development_file_map;
-#line 5444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = f;
-#line 5444 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = photo;
-#line 5444 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, _tmp30_);
-#line 5445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp31_ = self->priv->reverse_development_file_map;
-#line 5445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp32_ = photo;
-#line 5445 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp33_ = f;
-#line 5445 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp31_, _tmp32_, _tmp33_);
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 41840 "Photo.c"
- }
-#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_f_it);
-#line 41844 "Photo.c"
- }
- }
-#line 5449 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp34_ = photo;
-#line 5449 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_PHOTO, Photo), "editable-replaced", (GCallback) _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced, self);
-#line 5450 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp35_ = photo;
-#line 5450 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PHOTO, Photo), "raw-development-modified", (GCallback) _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified, self);
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (raw_files);
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (source);
-#line 41861 "Photo.c"
- }
-#line 5431 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_source_it);
-#line 41865 "Photo.c"
- }
- }
-#line 5454 "/home/jens/Source/shotwell/src/Photo.vala"
- if (removed != NULL) {
-#line 41870 "Photo.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp36_;
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp36_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- _source_it = _tmp36_;
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 41880 "Photo.c"
- GeeIterator* _tmp37_;
- DataSource* source = NULL;
- GeeIterator* _tmp38_;
- gpointer _tmp39_;
- LibraryPhoto* photo = NULL;
- DataSource* _tmp40_;
- LibraryPhoto* _tmp41_;
- GeeMultiMap* _tmp64_;
- LibraryPhoto* _tmp65_;
- GeeMultiMap* _tmp66_;
- LibraryPhoto* _tmp67_;
- LibraryPhoto* _tmp68_;
- guint _tmp69_;
- LibraryPhoto* _tmp70_;
- guint _tmp71_;
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp37_ = _source_it;
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp37_)) {
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 41902 "Photo.c"
- }
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp38_ = _source_it;
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp39_ = gee_iterator_get (_tmp38_);
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- source = (DataSource*) _tmp39_;
-#line 5456 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp40_ = source;
-#line 5456 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 5456 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp41_;
-#line 41916 "Photo.c"
- {
- GeeIterator* _f_it = NULL;
- GeeMultiMap* _tmp42_;
- LibraryPhoto* _tmp43_;
- GeeCollection* _tmp44_;
- GeeCollection* _tmp45_;
- GeeIterator* _tmp46_;
- GeeIterator* _tmp47_;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp42_ = self->priv->reverse_editable_file_map;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp43_ = photo;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp44_ = gee_multi_map_get (_tmp42_, _tmp43_);
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp45_ = _tmp44_;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp46_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp47_ = _tmp46_;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp45_);
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _f_it = _tmp47_;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 41943 "Photo.c"
- GeeIterator* _tmp48_;
- GFile* f = NULL;
- GeeIterator* _tmp49_;
- gpointer _tmp50_;
- GeeHashMap* _tmp51_;
- GFile* _tmp52_;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp48_ = _f_it;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp48_)) {
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 41956 "Photo.c"
- }
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp49_ = _f_it;
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp50_ = gee_iterator_get (_tmp49_);
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- f = (GFile*) _tmp50_;
-#line 5458 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp51_ = self->priv->editable_file_map;
-#line 5458 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp52_ = f;
-#line 5458 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp52_, NULL);
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 41972 "Photo.c"
- }
-#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_f_it);
-#line 41976 "Photo.c"
- }
- {
- GeeIterator* _f_it = NULL;
- GeeMultiMap* _tmp53_;
- LibraryPhoto* _tmp54_;
- GeeCollection* _tmp55_;
- GeeCollection* _tmp56_;
- GeeIterator* _tmp57_;
- GeeIterator* _tmp58_;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp53_ = self->priv->reverse_development_file_map;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp54_ = photo;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp55_ = gee_multi_map_get (_tmp53_, _tmp54_);
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp56_ = _tmp55_;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp57_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp58_ = _tmp57_;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp56_);
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _f_it = _tmp58_;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 42004 "Photo.c"
- GeeIterator* _tmp59_;
- GFile* f = NULL;
- GeeIterator* _tmp60_;
- gpointer _tmp61_;
- GeeHashMap* _tmp62_;
- GFile* _tmp63_;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp59_ = _f_it;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp59_)) {
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 42017 "Photo.c"
- }
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp60_ = _f_it;
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp61_ = gee_iterator_get (_tmp60_);
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- f = (GFile*) _tmp61_;
-#line 5461 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp62_ = self->priv->development_file_map;
-#line 5461 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp63_ = f;
-#line 5461 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp63_, NULL);
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 42033 "Photo.c"
- }
-#line 5460 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_f_it);
-#line 42037 "Photo.c"
- }
-#line 5463 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp64_ = self->priv->reverse_editable_file_map;
-#line 5463 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp65_ = photo;
-#line 5463 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove_all (_tmp64_, _tmp65_);
-#line 5464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp66_ = self->priv->reverse_development_file_map;
-#line 5464 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp67_ = photo;
-#line 5464 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove_all (_tmp66_, _tmp67_);
-#line 5466 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp68_ = photo;
-#line 5466 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_parse_name ("editable-replaced", TYPE_PHOTO, &_tmp69_, NULL, FALSE);
-#line 5466 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp69_, 0, NULL, (GCallback) _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced, self);
-#line 5467 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp70_ = photo;
-#line 5467 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_parse_name ("raw-development-modified", TYPE_PHOTO, &_tmp71_, NULL, FALSE);
-#line 5467 "/home/jens/Source/shotwell/src/Photo.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp71_, 0, NULL, (GCallback) _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified, self);
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (source);
-#line 42067 "Photo.c"
- }
-#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_source_it);
-#line 42071 "Photo.c"
- }
- }
-#line 5471 "/home/jens/Source/shotwell/src/Photo.vala"
- SOURCE_HOLDING_TANK_CLASS (library_photo_source_holding_tank_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), added, removed);
-#line 42076 "Photo.c"
-}
-
-
-static void
-library_photo_source_holding_tank_on_editable_replaced (LibraryPhotoSourceHoldingTank* self,
- Photo* _photo,
- GFile* old_file,
- GFile* new_file)
-{
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- LibraryPhoto* _tmp1_;
- GeeMultiMap* _tmp7_;
- LibraryPhoto* _tmp8_;
-#line 5474 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self));
-#line 5474 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (_photo));
-#line 5474 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file));
-#line 5474 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file));
-#line 5475 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_photo, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _photo) : NULL);
-#line 5475 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp0_;
-#line 5476 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo;
-#line 5476 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp1_ != NULL, "photo != null");
-#line 5478 "/home/jens/Source/shotwell/src/Photo.vala"
- if (old_file != NULL) {
-#line 42109 "Photo.c"
- GeeHashMap* _tmp2_;
- GeeMultiMap* _tmp3_;
- LibraryPhoto* _tmp4_;
-#line 5479 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->editable_file_map;
-#line 5479 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), old_file, NULL);
-#line 5480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = self->priv->reverse_editable_file_map;
-#line 5480 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = photo;
-#line 5480 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove (_tmp3_, _tmp4_, old_file);
-#line 42123 "Photo.c"
- }
-#line 5483 "/home/jens/Source/shotwell/src/Photo.vala"
- if (new_file != NULL) {
-#line 42127 "Photo.c"
- GeeHashMap* _tmp5_;
- LibraryPhoto* _tmp6_;
-#line 5484 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = self->priv->editable_file_map;
-#line 5484 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = photo;
-#line 5484 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_file, _tmp6_);
-#line 42136 "Photo.c"
- }
-#line 5485 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = self->priv->reverse_editable_file_map;
-#line 5485 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = photo;
-#line 5485 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp7_, _tmp8_, new_file);
-#line 5474 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 42146 "Photo.c"
-}
-
-
-static void
-library_photo_source_holding_tank_on_raw_development_modified (LibraryPhotoSourceHoldingTank* self,
- Photo* _photo)
-{
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- LibraryPhoto* _tmp1_;
- GeeMultiMap* _tmp2_;
- LibraryPhoto* _tmp3_;
- GeeCollection* raw_list = NULL;
- LibraryPhoto* _tmp17_;
- GeeCollection* _tmp18_;
- GeeCollection* _tmp19_;
-#line 5488 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self));
-#line 5488 "/home/jens/Source/shotwell/src/Photo.vala"
- g_return_if_fail (IS_PHOTO (_photo));
-#line 5489 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_photo, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _photo) : NULL);
-#line 5489 "/home/jens/Source/shotwell/src/Photo.vala"
- photo = _tmp0_;
-#line 5490 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = photo;
-#line 5490 "/home/jens/Source/shotwell/src/Photo.vala"
- _vala_assert (_tmp1_ != NULL, "photo != null");
-#line 5493 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = self->priv->reverse_development_file_map;
-#line 5493 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = photo;
-#line 5493 "/home/jens/Source/shotwell/src/Photo.vala"
- if (gee_multi_map_contains (_tmp2_, _tmp3_)) {
-#line 42181 "Photo.c"
- GeeMultiMap* _tmp15_;
- LibraryPhoto* _tmp16_;
- {
- GeeIterator* _f_it = NULL;
- GeeMultiMap* _tmp4_;
- LibraryPhoto* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- GeeIterator* _tmp8_;
- GeeIterator* _tmp9_;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp4_ = self->priv->reverse_development_file_map;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp5_ = photo;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp6_ = gee_multi_map_get (_tmp4_, _tmp5_);
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp7_ = _tmp6_;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp9_ = _tmp8_;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_tmp7_);
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _f_it = _tmp9_;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 42210 "Photo.c"
- GeeIterator* _tmp10_;
- GFile* f = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- GeeHashMap* _tmp13_;
- GFile* _tmp14_;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp10_ = _f_it;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 42223 "Photo.c"
- }
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp11_ = _f_it;
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- f = (GFile*) _tmp12_;
-#line 5495 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp13_ = self->priv->development_file_map;
-#line 5495 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp14_ = f;
-#line 5495 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_, NULL);
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 42239 "Photo.c"
- }
-#line 5494 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_f_it);
-#line 42243 "Photo.c"
- }
-#line 5496 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp15_ = self->priv->reverse_development_file_map;
-#line 5496 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp16_ = photo;
-#line 5496 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_remove_all (_tmp15_, _tmp16_);
-#line 42251 "Photo.c"
- }
-#line 5500 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp17_ = photo;
-#line 5500 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp18_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo));
-#line 5500 "/home/jens/Source/shotwell/src/Photo.vala"
- raw_list = _tmp18_;
-#line 5501 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp19_ = raw_list;
-#line 5501 "/home/jens/Source/shotwell/src/Photo.vala"
- if (_tmp19_ != NULL) {
-#line 42263 "Photo.c"
- {
- GeeIterator* _f_it = NULL;
- GeeCollection* _tmp20_;
- GeeIterator* _tmp21_;
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp20_ = raw_list;
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- _f_it = _tmp21_;
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- while (TRUE) {
-#line 42276 "Photo.c"
- GeeIterator* _tmp22_;
- GFile* f = NULL;
- GeeIterator* _tmp23_;
- gpointer _tmp24_;
- GeeHashMap* _tmp25_;
- GFile* _tmp26_;
- LibraryPhoto* _tmp27_;
- GeeMultiMap* _tmp28_;
- LibraryPhoto* _tmp29_;
- GFile* _tmp30_;
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp22_ = _f_it;
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- if (!gee_iterator_next (_tmp22_)) {
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- break;
-#line 42293 "Photo.c"
- }
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp23_ = _f_it;
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp24_ = gee_iterator_get (_tmp23_);
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- f = (GFile*) _tmp24_;
-#line 5503 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp25_ = self->priv->development_file_map;
-#line 5503 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp26_ = f;
-#line 5503 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp27_ = photo;
-#line 5503 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp26_, _tmp27_);
-#line 5504 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp28_ = self->priv->reverse_development_file_map;
-#line 5504 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp29_ = photo;
-#line 5504 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp30_ = f;
-#line 5504 "/home/jens/Source/shotwell/src/Photo.vala"
- gee_multi_map_set (_tmp28_, _tmp29_, _tmp30_);
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (f);
-#line 42319 "Photo.c"
- }
-#line 5502 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (_f_it);
-#line 42323 "Photo.c"
- }
- }
-#line 5488 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (raw_list);
-#line 5488 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (photo);
-#line 42330 "Photo.c"
-}
-
-
-static void
-library_photo_source_holding_tank_class_init (LibraryPhotoSourceHoldingTankClass * klass)
-{
-#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
- library_photo_source_holding_tank_parent_class = g_type_class_peek_parent (klass);
-#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
- ((SourceHoldingTankClass *) klass)->finalize = library_photo_source_holding_tank_finalize;
-#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
- g_type_class_add_private (klass, sizeof (LibraryPhotoSourceHoldingTankPrivate));
-#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
- ((SourceHoldingTankClass *) klass)->notify_contents_altered = (void (*) (SourceHoldingTank *, GeeCollection*, GeeCollection*)) library_photo_source_holding_tank_real_notify_contents_altered;
-#line 42345 "Photo.c"
-}
-
-
-static void
-library_photo_source_holding_tank_instance_init (LibraryPhotoSourceHoldingTank * self)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
- GeeHashMultiMap* _tmp2_;
- GeeHashMultiMap* _tmp3_;
-#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv = LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_PRIVATE (self);
-#line 5405 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 5405 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->editable_file_map = _tmp0_;
-#line 5407 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 5407 "/home/jens/Source/shotwell/src/Photo.vala"
- self->priv->development_file_map = _tmp1_;
-#line 5409 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp2_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 5409 "/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 5411 "/home/jens/Source/shotwell/src/Photo.vala"
- _tmp3_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 5411 "/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 42374 "Photo.c"
-}
-
-
-static void
-library_photo_source_holding_tank_finalize (SourceHoldingTank * obj)
-{
- LibraryPhotoSourceHoldingTank * self;
-#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank);
-#line 5405 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->editable_file_map);
-#line 5407 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->development_file_map);
-#line 5409 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->reverse_editable_file_map);
-#line 5411 "/home/jens/Source/shotwell/src/Photo.vala"
- _g_object_unref0 (self->priv->reverse_development_file_map);
-#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
- SOURCE_HOLDING_TANK_CLASS (library_photo_source_holding_tank_parent_class)->finalize (obj);
-#line 42394 "Photo.c"
-}
-
-
-GType
-library_photo_source_holding_tank_get_type (void)
-{
- static volatile gsize library_photo_source_holding_tank_type_id__volatile = 0;
- if (g_once_init_enter (&library_photo_source_holding_tank_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoSourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoSourceHoldingTank), 0, (GInstanceInitFunc) library_photo_source_holding_tank_instance_init, NULL };
- GType library_photo_source_holding_tank_type_id;
- library_photo_source_holding_tank_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_HOLDING_TANK, "LibraryPhotoSourceHoldingTank", &g_define_type_info, 0);
- g_once_init_leave (&library_photo_source_holding_tank_type_id__volatile, library_photo_source_holding_tank_type_id);
- }
- return library_photo_source_holding_tank_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Photo.vala b/src/Photo.vala
index f089d79..0d8e955 100644
--- a/src/Photo.vala
+++ b/src/Photo.vala
@@ -4698,7 +4698,7 @@ public class LibraryPhotoSourceCollection : MediaSourceCollection {
Gee.HashMultiMap<Tag, LibraryPhoto> map = new Gee.HashMultiMap<Tag, LibraryPhoto>();
foreach (MediaSource media in media_sources) {
LibraryPhoto photo = (LibraryPhoto) media;
- PhotoMetadata metadata = photo.get_metadata();
+ PhotoMetadata? metadata = photo.get_metadata();
// get an index of all the htags in the application
HierarchicalTagIndex global_index = HierarchicalTagIndex.get_global_index();
@@ -4709,7 +4709,7 @@ public class LibraryPhotoSourceCollection : MediaSourceCollection {
// hierarchical tag information as plain old tags. If a tag name appears as part of
// a hierarchical path, it needs to be excluded from being processed as a flat tag
HierarchicalTagIndex? htag_index = null;
- if (metadata.has_hierarchical_keywords()) {
+ if (metadata != null && metadata.has_hierarchical_keywords()) {
htag_index = HierarchicalTagUtilities.process_hierarchical_import_keywords(
metadata.get_hierarchical_keywords());
}
@@ -4732,7 +4732,7 @@ public class LibraryPhotoSourceCollection : MediaSourceCollection {
}
}
- if (metadata.has_hierarchical_keywords()) {
+ if (metadata != null && metadata.has_hierarchical_keywords()) {
foreach (string path in htag_index.get_all_paths()) {
string? name = Tag.prep_tag_name(path);
if (name != null)
@@ -5216,6 +5216,22 @@ public class LibraryPhoto : Photo, Flaggable, Monitorable {
}
}
+#if ENABLE_FACES
+ // Attach faces.
+ Gee.Collection<Face>? faces = Face.global.fetch_for_source(this);
+ if (faces != null) {
+ foreach (Face face in faces) {
+ FaceLocation? location = FaceLocation.get_face_location(face.get_face_id(),
+ this.get_photo_id());
+ if (location != null) {
+ face.attach(dupe);
+ FaceLocation.create(face.get_face_id(), dupe.get_photo_id(),
+ location.get_serialized_geometry());
+ }
+ }
+ }
+#endif
+
return dupe;
}
diff --git a/src/PhotoMonitor.c b/src/PhotoMonitor.c
deleted file mode 100644
index 158acec..0000000
--- a/src/PhotoMonitor.c
+++ /dev/null
@@ -1,8645 +0,0 @@
-/* PhotoMonitor.c generated by valac 0.40.4, the Vala compiler
- * generated from PhotoMonitor.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-
-
-#define TYPE_MONITORABLE_UPDATES (monitorable_updates_get_type ())
-#define MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdates))
-#define MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass))
-#define IS_MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE_UPDATES))
-#define IS_MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MONITORABLE_UPDATES))
-#define MONITORABLE_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass))
-
-typedef struct _MonitorableUpdates MonitorableUpdates;
-typedef struct _MonitorableUpdatesClass MonitorableUpdatesClass;
-typedef struct _MonitorableUpdatesPrivate MonitorableUpdatesPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_MONITORABLE (monitorable_get_type ())
-#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
-#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
-#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
-
-typedef struct _Monitorable Monitorable;
-typedef struct _MonitorableIface MonitorableIface;
-
-#define TYPE_PHOTO_UPDATES (photo_updates_get_type ())
-#define PHOTO_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_UPDATES, PhotoUpdates))
-#define PHOTO_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_UPDATES, PhotoUpdatesClass))
-#define IS_PHOTO_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_UPDATES))
-#define IS_PHOTO_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_UPDATES))
-#define PHOTO_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_UPDATES, PhotoUpdatesClass))
-
-typedef struct _PhotoUpdates PhotoUpdates;
-typedef struct _PhotoUpdatesClass PhotoUpdatesClass;
-typedef struct _PhotoUpdatesPrivate PhotoUpdatesPrivate;
-
-#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 _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_MEDIA_MONITOR (media_monitor_get_type ())
-#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor))
-#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR))
-#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR))
-#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-
-typedef struct _MediaMonitor MediaMonitor;
-typedef struct _MediaMonitorClass MediaMonitorClass;
-typedef struct _MediaMonitorPrivate MediaMonitorPrivate;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define MEDIA_MONITOR_TYPE_DISCOVERED_FILE (media_monitor_discovered_file_get_type ())
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-
-#define TYPE_PHOTO_MONITOR (photo_monitor_get_type ())
-#define PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_MONITOR, PhotoMonitor))
-#define PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_MONITOR, PhotoMonitorClass))
-#define IS_PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_MONITOR))
-#define IS_PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_MONITOR))
-#define PHOTO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_MONITOR, PhotoMonitorClass))
-
-typedef struct _PhotoMonitor PhotoMonitor;
-typedef struct _PhotoMonitorClass PhotoMonitorClass;
-typedef struct _PhotoMonitorPrivate PhotoMonitorPrivate;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB (photo_monitor_reimport_master_job_get_type ())
-#define PHOTO_MONITOR_REIMPORT_MASTER_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob))
-#define PHOTO_MONITOR_REIMPORT_MASTER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJobClass))
-#define PHOTO_MONITOR_IS_REIMPORT_MASTER_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB))
-#define PHOTO_MONITOR_IS_REIMPORT_MASTER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB))
-#define PHOTO_MONITOR_REIMPORT_MASTER_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJobClass))
-
-typedef struct _PhotoMonitorReimportMasterJob PhotoMonitorReimportMasterJob;
-typedef struct _PhotoMonitorReimportMasterJobClass PhotoMonitorReimportMasterJobClass;
-
-#define PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB (photo_monitor_reimport_editable_job_get_type ())
-#define PHOTO_MONITOR_REIMPORT_EDITABLE_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob))
-#define PHOTO_MONITOR_REIMPORT_EDITABLE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJobClass))
-#define PHOTO_MONITOR_IS_REIMPORT_EDITABLE_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB))
-#define PHOTO_MONITOR_IS_REIMPORT_EDITABLE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB))
-#define PHOTO_MONITOR_REIMPORT_EDITABLE_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJobClass))
-
-typedef struct _PhotoMonitorReimportEditableJob PhotoMonitorReimportEditableJob;
-typedef struct _PhotoMonitorReimportEditableJobClass PhotoMonitorReimportEditableJobClass;
-
-#define PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB (photo_monitor_reimport_raw_development_job_get_type ())
-#define PHOTO_MONITOR_REIMPORT_RAW_DEVELOPMENT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob))
-#define PHOTO_MONITOR_REIMPORT_RAW_DEVELOPMENT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJobClass))
-#define PHOTO_MONITOR_IS_REIMPORT_RAW_DEVELOPMENT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB))
-#define PHOTO_MONITOR_IS_REIMPORT_RAW_DEVELOPMENT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB))
-#define PHOTO_MONITOR_REIMPORT_RAW_DEVELOPMENT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJobClass))
-
-typedef struct _PhotoMonitorReimportRawDevelopmentJob PhotoMonitorReimportRawDevelopmentJob;
-typedef struct _PhotoMonitorReimportRawDevelopmentJobClass PhotoMonitorReimportRawDevelopmentJobClass;
-enum {
- PHOTO_MONITOR_0_PROPERTY,
- PHOTO_MONITOR_NUM_PROPERTIES
-};
-static GParamSpec* photo_monitor_properties[PHOTO_MONITOR_NUM_PROPERTIES];
-#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE (library_photo_source_collection_state_get_type ())
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL)))
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-#define _monitorable_updates_unref0(var) ((var == NULL) ? NULL : (var = (monitorable_updates_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _PhotoMonitorReimportMasterJobPrivate PhotoMonitorReimportMasterJobPrivate;
-
-#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ())
-#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState))
-#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
-#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE))
-#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE))
-#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
-
-typedef struct _PhotoReimportMasterState PhotoReimportMasterState;
-typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass;
-typedef struct _PhotoMonitorReimportEditableJobPrivate PhotoMonitorReimportEditableJobPrivate;
-
-#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE (photo_reimport_editable_state_get_type ())
-#define PHOTO_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState))
-#define PHOTO_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass))
-#define PHOTO_IS_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE))
-#define PHOTO_IS_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE))
-#define PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass))
-
-typedef struct _PhotoReimportEditableState PhotoReimportEditableState;
-typedef struct _PhotoReimportEditableStateClass PhotoReimportEditableStateClass;
-typedef struct _PhotoMonitorReimportRawDevelopmentJobPrivate PhotoMonitorReimportRawDevelopmentJobPrivate;
-
-#define PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE (photo_reimport_raw_development_state_get_type ())
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass))
-#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE))
-#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE))
-#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass))
-
-typedef struct _PhotoReimportRawDevelopmentState PhotoReimportRawDevelopmentState;
-typedef struct _PhotoReimportRawDevelopmentStateClass PhotoReimportRawDevelopmentStateClass;
-#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL)))
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-#define _photo_reimport_editable_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_editable_state_unref (var), NULL)))
-#define _photo_reimport_raw_development_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_raw_development_state_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _MonitorableIface {
- GTypeInterface parent_iface;
- gboolean (*is_offline) (Monitorable* self);
- void (*mark_online) (Monitorable* self);
- void (*mark_offline) (Monitorable* self);
- void (*set_master_file) (Monitorable* self, GFile* file);
- void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
-};
-
-struct _MonitorableUpdates {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MonitorableUpdatesPrivate * priv;
- Monitorable* monitorable;
-};
-
-struct _MonitorableUpdatesClass {
- GTypeClass parent_class;
- void (*finalize) (MonitorableUpdates *self);
- gboolean (*is_in_alteration) (MonitorableUpdates* self);
- void (*set_master_file) (MonitorableUpdates* self, GFile* file);
- void (*set_master_file_info_altered) (MonitorableUpdates* self, gboolean altered);
- void (*set_master_file_info) (MonitorableUpdates* self, GFileInfo* info);
- void (*set_master_in_alteration) (MonitorableUpdates* self, gboolean in_alteration);
- void (*set_master_alterations_complete) (MonitorableUpdates* self, GFileInfo* info);
- void (*mark_offline) (MonitorableUpdates* self);
- void (*mark_online) (MonitorableUpdates* self);
- void (*reset_online_offline) (MonitorableUpdates* self);
- gboolean (*is_all_updated) (MonitorableUpdates* self);
-};
-
-struct _PhotoUpdates {
- MonitorableUpdates parent_instance;
- PhotoUpdatesPrivate * priv;
- LibraryPhoto* photo;
- gboolean reimport_master;
- gboolean reimport_editable;
- gboolean reimport_raw_developments;
- GFile* editable_file;
- gboolean editable_file_info_altered;
- gboolean raw_developer_file_info_altered;
- GFileInfo* editable_file_info;
- gboolean editable_in_alteration;
- gboolean raw_development_in_alteration;
- gboolean revert_to_master;
- GeeCollection* developer_files;
-};
-
-struct _PhotoUpdatesClass {
- MonitorableUpdatesClass parent_class;
- void (*set_editable_file) (PhotoUpdates* self, GFile* file);
- void (*set_editable_file_info) (PhotoUpdates* self, GFileInfo* info);
- void (*set_editable_file_info_altered) (PhotoUpdates* self, gboolean altered);
- void (*set_editable_in_alteration) (PhotoUpdates* self, gboolean in_alteration);
- void (*set_raw_development_in_alteration) (PhotoUpdates* self, gboolean in_alteration);
- void (*set_raw_developer_file_info_altered) (PhotoUpdates* self, gboolean altered);
- void (*set_revert_to_master) (PhotoUpdates* self, gboolean revert);
- void (*add_raw_developer_file) (PhotoUpdates* self, GFile* file);
- void (*clear_raw_developer_files) (PhotoUpdates* self);
- void (*set_reimport_master) (PhotoUpdates* self, gboolean reimport);
- void (*set_reimport_editable) (PhotoUpdates* self, gboolean reimport);
- void (*set_reimport_raw_developments) (PhotoUpdates* self, gboolean reimport);
-};
-
-typedef enum {
- MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED,
- MEDIA_MONITOR_DISCOVERED_FILE_IGNORE,
- MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN
-} MediaMonitorDiscoveredFile;
-
-struct _MediaMonitor {
- GObject parent_instance;
- MediaMonitorPrivate * priv;
-};
-
-struct _MediaMonitorClass {
- GObjectClass parent_class;
- MediaSourceCollection* (*get_media_source_collection) (MediaMonitor* self);
- void (*close) (MediaMonitor* self);
- gchar* (*to_string) (MediaMonitor* self);
- MonitorableUpdates* (*create_updates) (MediaMonitor* self, Monitorable* monitorable);
- void (*on_media_source_destroyed) (MediaMonitor* self, DataSource* source);
- void (*notify_discovery_started) (MediaMonitor* self);
- MediaMonitorDiscoveredFile (*notify_file_discovered) (MediaMonitor* self, GFile* file, GFileInfo* info, Monitorable* * monitorable);
- GeeCollection* (*candidates_for_unknown_file) (MediaMonitor* self, GFile* file, GFileInfo* info, MediaMonitorDiscoveredFile* _result_);
- GFile** (*get_auxilliary_backing_files) (MediaMonitor* self, Monitorable* monitorable, int* result_length1);
- void (*update_backing_file_info) (MediaMonitor* self, Monitorable* monitorable, GFile* file, GFileInfo* info);
- void (*notify_discovery_completing) (MediaMonitor* self);
- gboolean (*is_file_represented) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_created) (MediaMonitor* self, GFile* file, GFileInfo* info);
- gboolean (*notify_file_moved) (MediaMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info);
- gboolean (*notify_file_altered) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_attributes_altered) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_alteration_completed) (MediaMonitor* self, GFile* file, GFileInfo* info);
- gboolean (*notify_file_deleted) (MediaMonitor* self, GFile* file);
- void (*process_updates) (MediaMonitor* self, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error);
-};
-
-struct _PhotoMonitor {
- MediaMonitor parent_instance;
- PhotoMonitorPrivate * priv;
-};
-
-struct _PhotoMonitorClass {
- MediaMonitorClass parent_class;
-};
-
-struct _PhotoMonitorPrivate {
- Workers* workers;
- GeeArrayList* matched_editables;
- GeeArrayList* matched_developments;
- GeeHashMap* master_reimport_pending;
- GeeHashMap* editable_reimport_pending;
- GeeHashMap* raw_developments_reimport_pending;
-};
-
-typedef enum {
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE,
- LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER
-} LibraryPhotoSourceCollectionState;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _PhotoMonitorReimportMasterJob {
- BackgroundJob parent_instance;
- PhotoMonitorReimportMasterJobPrivate * priv;
- LibraryPhoto* photo;
- PhotoReimportMasterState* reimport_state;
- gboolean mark_online;
- GError* err;
-};
-
-struct _PhotoMonitorReimportMasterJobClass {
- BackgroundJobClass parent_class;
-};
-
-struct _PhotoMonitorReimportEditableJob {
- BackgroundJob parent_instance;
- PhotoMonitorReimportEditableJobPrivate * priv;
- LibraryPhoto* photo;
- PhotoReimportEditableState* state;
- gboolean success;
- GError* err;
-};
-
-struct _PhotoMonitorReimportEditableJobClass {
- BackgroundJobClass parent_class;
-};
-
-struct _PhotoMonitorReimportRawDevelopmentJob {
- BackgroundJob parent_instance;
- PhotoMonitorReimportRawDevelopmentJobPrivate * priv;
- LibraryPhoto* photo;
- PhotoReimportRawDevelopmentState* state;
- gboolean success;
- GError* err;
-};
-
-struct _PhotoMonitorReimportRawDevelopmentJobClass {
- BackgroundJobClass parent_class;
-};
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-
-static gpointer photo_updates_parent_class = NULL;
-static gpointer photo_monitor_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-static gpointer photo_monitor_reimport_master_job_parent_class = NULL;
-static gpointer photo_monitor_reimport_editable_job_parent_class = NULL;
-static gpointer photo_monitor_reimport_raw_development_job_parent_class = NULL;
-
-gpointer monitorable_updates_ref (gpointer instance);
-void monitorable_updates_unref (gpointer instance);
-GParamSpec* param_spec_monitorable_updates (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_monitorable_updates (GValue* value,
- gpointer v_object);
-void value_take_monitorable_updates (GValue* value,
- gpointer v_object);
-gpointer value_get_monitorable_updates (const GValue* value);
-GType monitorable_updates_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType monitorable_get_type (void) G_GNUC_CONST;
-GType photo_updates_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;
-PhotoUpdates* photo_updates_new (LibraryPhoto* photo);
-PhotoUpdates* photo_updates_construct (GType object_type,
- LibraryPhoto* photo);
-MonitorableUpdates* monitorable_updates_new (Monitorable* monitorable);
-MonitorableUpdates* monitorable_updates_construct (GType object_type,
- Monitorable* monitorable);
-static void photo_updates_real_mark_offline (MonitorableUpdates* base);
-void monitorable_updates_mark_offline (MonitorableUpdates* self);
-gboolean photo_updates_is_reimport_master (PhotoUpdates* self);
-gboolean photo_updates_is_reimport_editable (PhotoUpdates* self);
-GFile* photo_updates_get_editable_file (PhotoUpdates* self);
-GFileInfo* photo_updates_get_editable_file_info (PhotoUpdates* self);
-GeeCollection* photo_updates_get_raw_developer_files (PhotoUpdates* self);
-static gboolean photo_updates_real_is_in_alteration (MonitorableUpdates* base);
-gboolean monitorable_updates_is_in_alteration (MonitorableUpdates* self);
-gboolean photo_updates_is_revert_to_master (PhotoUpdates* self);
-void photo_updates_set_editable_file (PhotoUpdates* self,
- GFile* file);
-static void photo_updates_real_set_editable_file (PhotoUpdates* self,
- GFile* file);
-void photo_updates_set_editable_file_info (PhotoUpdates* self,
- GFileInfo* info);
-static void photo_updates_real_set_editable_file_info (PhotoUpdates* self,
- GFileInfo* info);
-void photo_updates_set_editable_file_info_altered (PhotoUpdates* self,
- gboolean altered);
-static void photo_updates_real_set_editable_file_info_altered (PhotoUpdates* self,
- gboolean altered);
-void photo_updates_set_editable_in_alteration (PhotoUpdates* self,
- gboolean in_alteration);
-static void photo_updates_real_set_editable_in_alteration (PhotoUpdates* self,
- gboolean in_alteration);
-void photo_updates_set_raw_development_in_alteration (PhotoUpdates* self,
- gboolean in_alteration);
-static void photo_updates_real_set_raw_development_in_alteration (PhotoUpdates* self,
- gboolean in_alteration);
-void photo_updates_set_raw_developer_file_info_altered (PhotoUpdates* self,
- gboolean altered);
-static void photo_updates_real_set_raw_developer_file_info_altered (PhotoUpdates* self,
- gboolean altered);
-void photo_updates_set_revert_to_master (PhotoUpdates* self,
- gboolean revert);
-static void photo_updates_real_set_revert_to_master (PhotoUpdates* self,
- gboolean revert);
-void photo_updates_add_raw_developer_file (PhotoUpdates* self,
- GFile* file);
-static void photo_updates_real_add_raw_developer_file (PhotoUpdates* self,
- GFile* file);
-void photo_updates_clear_raw_developer_files (PhotoUpdates* self);
-static void photo_updates_real_clear_raw_developer_files (PhotoUpdates* self);
-void photo_updates_set_reimport_master (PhotoUpdates* self,
- gboolean reimport);
-static void photo_updates_real_set_reimport_master (PhotoUpdates* self,
- gboolean reimport);
-void monitorable_updates_mark_online (MonitorableUpdates* self);
-void photo_updates_set_reimport_editable (PhotoUpdates* self,
- gboolean reimport);
-static void photo_updates_real_set_reimport_editable (PhotoUpdates* self,
- gboolean reimport);
-gboolean monitorable_updates_is_set_offline (MonitorableUpdates* self);
-void photo_updates_set_reimport_raw_developments (PhotoUpdates* self,
- gboolean reimport);
-static void photo_updates_real_set_reimport_raw_developments (PhotoUpdates* self,
- gboolean reimport);
-static gboolean photo_updates_real_is_all_updated (MonitorableUpdates* base);
-gboolean monitorable_updates_is_all_updated (MonitorableUpdates* self);
-static void photo_updates_finalize (MonitorableUpdates * obj);
-GType media_monitor_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST;
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-GType photo_monitor_get_type (void) G_GNUC_CONST;
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-static GType photo_monitor_reimport_master_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static GType photo_monitor_reimport_editable_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static GType photo_monitor_reimport_raw_development_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define PHOTO_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_MONITOR, PhotoMonitorPrivate))
-#define PHOTO_MONITOR_MAX_REIMPORT_JOBS_PER_CYCLE 20
-#define PHOTO_MONITOR_MAX_REVERTS_PER_CYCLE 5
-PhotoMonitor* photo_monitor_new (Workers* workers,
- GCancellable* cancellable);
-PhotoMonitor* photo_monitor_construct (GType object_type,
- Workers* workers,
- GCancellable* cancellable);
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-MediaMonitor* media_monitor_construct (GType object_type,
- MediaSourceCollection* sources,
- GCancellable* cancellable);
-static MonitorableUpdates* photo_monitor_real_create_updates (MediaMonitor* base,
- Monitorable* monitorable);
-static MediaSourceCollection* photo_monitor_real_get_media_source_collection (MediaMonitor* base);
-static gboolean photo_monitor_real_is_file_represented (MediaMonitor* base,
- GFile* file);
-GType library_photo_source_collection_state_get_type (void) G_GNUC_CONST;
-static LibraryPhoto* photo_monitor_get_photo_state_by_file (PhotoMonitor* self,
- GFile* file,
- LibraryPhotoSourceCollectionState* state);
-static void photo_monitor_real_close (MediaMonitor* base);
-void background_job_cancel (BackgroundJob* self);
-void media_monitor_close (MediaMonitor* self);
-static void photo_monitor_cancel_reimports (PhotoMonitor* self,
- LibraryPhoto* photo);
-static MediaMonitorDiscoveredFile photo_monitor_real_notify_file_discovered (MediaMonitor* base,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable);
-static GeeCollection* photo_monitor_real_candidates_for_unknown_file (MediaMonitor* base,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_);
-void library_photo_source_collection_fetch_by_matching_backing (LibraryPhotoSourceCollection* self,
- GFileInfo* info,
- GeeCollection* matches_master,
- GeeCollection* matches_editable,
- GeeCollection* matched_development);
-gchar* data_object_to_string (DataObject* self);
-gboolean photo_does_editable_exist (Photo* self);
-void photo_revert_to_master (Photo* self,
- gboolean notify);
-void photo_monitor_update_editable_file (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFile* file);
-void photo_monitor_update_raw_development_file (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFile* file);
-static GFile** photo_monitor_real_get_auxilliary_backing_files (MediaMonitor* base,
- Monitorable* monitorable,
- int* result_length1);
-gboolean photo_has_editable (Photo* self);
-GFile* photo_get_editable_file (Photo* self);
-static void _vala_array_add131 (GFile** * array,
- int* length,
- int* size,
- GFile* value);
-GeeCollection* photo_get_raw_developer_files (Photo* self);
-static void _vala_array_add132 (GFile** * array,
- int* length,
- int* size,
- GFile* value);
-static GFile** _vala_array_dup26 (GFile** self,
- int length);
-static void photo_monitor_real_update_backing_file_info (MediaMonitor* base,
- Monitorable* monitorable,
- GFile* file,
- GFileInfo* info);
-GFile* media_monitor_get_master_file (MediaMonitor* self,
- Monitorable* monitorable);
-static void photo_monitor_check_for_master_changes (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFileInfo* info);
-GFile* photo_monitor_get_editable_file (PhotoMonitor* self,
- LibraryPhoto* photo);
-static void photo_monitor_check_for_editable_changes (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFileInfo* info);
-GeeCollection* photo_monitor_get_raw_development_files (PhotoMonitor* self,
- LibraryPhoto* photo);
-static void photo_monitor_check_for_raw_development_changes (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFileInfo* info);
-static void photo_monitor_real_notify_discovery_completing (MediaMonitor* base);
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-BackingPhotoRow* photo_get_master_photo_row (Photo* self);
-gboolean backing_photo_row_matches_file_info (BackingPhotoRow* self,
- GFileInfo* info);
-gboolean backing_photo_row_is_touched (BackingPhotoRow* self,
- GFileInfo* info);
-void media_monitor_update_master_file_info_altered (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_update_master_file_alterations_completed (MediaMonitor* self,
- Monitorable* monitorable,
- GFileInfo* info);
-void photo_monitor_update_reimport_master (PhotoMonitor* self,
- LibraryPhoto* photo);
-void photo_monitor_update_revert_to_master (PhotoMonitor* self,
- LibraryPhoto* photo);
-BackingPhotoRow* photo_get_editable_photo_row (Photo* self);
-void photo_monitor_update_editable_file_info_altered (PhotoMonitor* self,
- LibraryPhoto* photo);
-void photo_monitor_update_editable_file_alterations_completed (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFileInfo* info);
-void photo_monitor_update_reimport_editable (PhotoMonitor* self,
- LibraryPhoto* photo);
-GType raw_developer_get_type (void) G_GNUC_CONST;
-void photo_set_raw_developer (Photo* self,
- RawDeveloper d,
- gboolean notify);
-GeeCollection* photo_get_raw_development_photo_rows (Photo* self);
-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);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType orientation_get_type (void) G_GNUC_CONST;
-void photo_monitor_update_raw_development_file_info_altered (PhotoMonitor* self,
- LibraryPhoto* photo);
-void photo_monitor_update_raw_development_file_alterations_completed (PhotoMonitor* self,
- LibraryPhoto* photo);
-void photo_monitor_update_reimport_raw_developments (PhotoMonitor* self,
- LibraryPhoto* photo);
-static gboolean photo_monitor_real_notify_file_created (MediaMonitor* base,
- GFile* file,
- GFileInfo* info);
-const gchar* library_photo_source_collection_state_to_string (LibraryPhotoSourceCollectionState self);
-void media_monitor_mdbg (const gchar* msg);
-void media_monitor_update_online (MediaMonitor* self,
- Monitorable* monitorable);
-static gboolean photo_monitor_real_notify_file_moved (MediaMonitor* base,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* info);
-void media_monitor_update_master_file (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file);
-void media_monitor_update_offline (MediaMonitor* self,
- Monitorable* monitorable);
-static gboolean photo_monitor_real_notify_file_altered (MediaMonitor* base,
- GFile* file);
-void media_monitor_update_master_file_in_alteration (MediaMonitor* self,
- Monitorable* monitorable,
- gboolean in_alteration);
-void photo_monitor_update_editable_file_in_alteration (PhotoMonitor* self,
- LibraryPhoto* photo,
- gboolean in_alteration);
-void photo_monitor_update_raw_development_file_in_alteration (PhotoMonitor* self,
- LibraryPhoto* photo,
- gboolean in_alteration);
-static gboolean photo_monitor_real_notify_file_attributes_altered (MediaMonitor* base,
- GFile* file);
-static gboolean photo_monitor_real_notify_file_alteration_completed (MediaMonitor* base,
- GFile* file,
- GFileInfo* info);
-static gboolean photo_monitor_real_notify_file_deleted (MediaMonitor* base,
- GFile* file);
-static void photo_monitor_real_on_media_source_destroyed (MediaMonitor* base,
- DataSource* source);
-void media_monitor_on_media_source_destroyed (MediaMonitor* self,
- DataSource* source);
-gboolean media_monitor_has_pending_updates (MediaMonitor* self);
-GeeCollection* media_monitor_get_monitorables (MediaMonitor* self);
-PhotoUpdates* photo_monitor_get_existing_photo_updates (PhotoMonitor* self,
- LibraryPhoto* photo);
-GFile* monitorable_updates_get_master_file (MonitorableUpdates* self);
-GFile* media_source_get_master_file (MediaSource* self);
-LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self,
- GFile* file,
- LibraryPhotoSourceCollectionState* state);
-PhotoUpdates* photo_monitor_fetch_photo_updates (PhotoMonitor* self,
- LibraryPhoto* photo);
-MonitorableUpdates* media_monitor_fetch_updates (MediaMonitor* self,
- Monitorable* monitorable);
-MonitorableUpdates* media_monitor_get_existing_updates (MediaMonitor* self,
- Monitorable* monitorable);
-static void photo_monitor_real_process_updates (MediaMonitor* base,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error);
-void media_monitor_process_updates (MediaMonitor* self,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error);
-#define MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE 100
-GQuark database_error_quark (void);
-void photo_set_many_editable_file (GeeMap* map,
- GError** error);
-void app_window_database_error (GError* err);
-void photo_update_many_editable_timestamps (GeeMap* map,
- GError** error);
-static PhotoMonitorReimportMasterJob* photo_monitor_reimport_master_job_new (PhotoMonitor* owner,
- LibraryPhoto* photo);
-static PhotoMonitorReimportMasterJob* photo_monitor_reimport_master_job_construct (GType object_type,
- PhotoMonitor* owner,
- LibraryPhoto* photo);
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-static PhotoMonitorReimportEditableJob* photo_monitor_reimport_editable_job_new (PhotoMonitor* owner,
- LibraryPhoto* photo);
-static PhotoMonitorReimportEditableJob* photo_monitor_reimport_editable_job_construct (GType object_type,
- PhotoMonitor* owner,
- LibraryPhoto* photo);
-static PhotoMonitorReimportRawDevelopmentJob* photo_monitor_reimport_raw_development_job_new (PhotoMonitor* owner,
- LibraryPhoto* photo);
-static PhotoMonitorReimportRawDevelopmentJob* photo_monitor_reimport_raw_development_job_construct (GType object_type,
- PhotoMonitor* owner,
- LibraryPhoto* photo);
-static void photo_monitor_on_master_reimported (PhotoMonitor* self,
- BackgroundJob* j);
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-gpointer photo_reimport_master_state_ref (gpointer instance);
-void photo_reimport_master_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_master_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_master_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_master_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_master_state (const GValue* value);
-GType photo_reimport_master_state_get_type (void) G_GNUC_CONST;
-void photo_finish_reimport_master (Photo* self,
- PhotoReimportMasterState* state,
- GError** error);
-gboolean media_source_is_offline (MediaSource* self);
-static void photo_monitor_on_master_reimport_cancelled (PhotoMonitor* self,
- BackgroundJob* j);
-static void photo_monitor_on_editable_reimported (PhotoMonitor* self,
- BackgroundJob* j);
-gpointer photo_reimport_editable_state_ref (gpointer instance);
-void photo_reimport_editable_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_editable_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_editable_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_editable_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_editable_state (const GValue* value);
-GType photo_reimport_editable_state_get_type (void) G_GNUC_CONST;
-void photo_finish_reimport_editable (Photo* self,
- PhotoReimportEditableState* state,
- GError** error);
-static void photo_monitor_on_editable_reimport_cancelled (PhotoMonitor* self,
- BackgroundJob* j);
-static void photo_monitor_on_raw_development_reimported (PhotoMonitor* self,
- BackgroundJob* j);
-gpointer photo_reimport_raw_development_state_ref (gpointer instance);
-void photo_reimport_raw_development_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_raw_development_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_raw_development_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_raw_development_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_raw_development_state (const GValue* value);
-GType photo_reimport_raw_development_state_get_type (void) G_GNUC_CONST;
-void photo_finish_reimport_raw_development (Photo* self,
- PhotoReimportRawDevelopmentState* state,
- GError** error);
-static void photo_monitor_on_raw_development_reimport_cancelled (PhotoMonitor* self,
- BackgroundJob* j);
-static void _photo_monitor_on_master_reimported_completion_callback (BackgroundJob* job,
- gpointer self);
-static void _photo_monitor_on_master_reimport_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-static void photo_monitor_reimport_master_job_real_execute (BackgroundJob* base);
-gboolean photo_prepare_for_reimport_master (Photo* self,
- PhotoReimportMasterState* * reimport_state,
- GError** error);
-static void photo_monitor_reimport_master_job_finalize (BackgroundJob * obj);
-static void _photo_monitor_on_editable_reimported_completion_callback (BackgroundJob* job,
- gpointer self);
-static void _photo_monitor_on_editable_reimport_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-static void photo_monitor_reimport_editable_job_real_execute (BackgroundJob* base);
-gboolean photo_prepare_for_reimport_editable (Photo* self,
- PhotoReimportEditableState* * state,
- GError** error);
-static void photo_monitor_reimport_editable_job_finalize (BackgroundJob * obj);
-static void _photo_monitor_on_raw_development_reimported_completion_callback (BackgroundJob* job,
- gpointer self);
-static void _photo_monitor_on_raw_development_reimport_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self);
-static void photo_monitor_reimport_raw_development_job_real_execute (BackgroundJob* base);
-gboolean photo_prepare_for_reimport_raw_development (Photo* self,
- PhotoReimportRawDevelopmentState* * state,
- GError** error);
-static void photo_monitor_reimport_raw_development_job_finalize (BackgroundJob * obj);
-static void photo_monitor_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 gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 25 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1105 "PhotoMonitor.c"
-}
-
-
-PhotoUpdates*
-photo_updates_construct (GType object_type,
- LibraryPhoto* photo)
-{
- PhotoUpdates* self = NULL;
- LibraryPhoto* _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 23 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = (PhotoUpdates*) monitorable_updates_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable));
-#line 25 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _g_object_ref0 (photo);
-#line 25 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->photo);
-#line 25 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->photo = _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self;
-#line 1127 "PhotoMonitor.c"
-}
-
-
-PhotoUpdates*
-photo_updates_new (LibraryPhoto* photo)
-{
-#line 22 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return photo_updates_construct (TYPE_PHOTO_UPDATES, photo);
-#line 1136 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_mark_offline (MonitorableUpdates* base)
-{
- PhotoUpdates * self;
-#line 28 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_UPDATES, PhotoUpdates);
-#line 29 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- MONITORABLE_UPDATES_CLASS (photo_updates_parent_class)->mark_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 31 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_master = FALSE;
-#line 32 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_editable = FALSE;
-#line 33 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_raw_developments = FALSE;
-#line 1154 "PhotoMonitor.c"
-}
-
-
-gboolean
-photo_updates_is_reimport_master (PhotoUpdates* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_UPDATES (self), FALSE);
-#line 37 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->reimport_master;
-#line 37 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 1171 "PhotoMonitor.c"
-}
-
-
-gboolean
-photo_updates_is_reimport_editable (PhotoUpdates* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_UPDATES (self), FALSE);
-#line 41 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->reimport_editable;
-#line 41 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp0_;
-#line 41 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 1188 "PhotoMonitor.c"
-}
-
-
-GFile*
-photo_updates_get_editable_file (PhotoUpdates* self)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_UPDATES (self), NULL);
-#line 45 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->editable_file;
-#line 45 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 45 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp1_;
-#line 45 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 1208 "PhotoMonitor.c"
-}
-
-
-GFileInfo*
-photo_updates_get_editable_file_info (PhotoUpdates* self)
-{
- GFileInfo* result = NULL;
- GFileInfo* _tmp0_;
- GFileInfo* _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_UPDATES (self), NULL);
-#line 49 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->editable_file_info;
-#line 49 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 49 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp1_;
-#line 49 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 1228 "PhotoMonitor.c"
-}
-
-
-GeeCollection*
-photo_updates_get_raw_developer_files (PhotoUpdates* self)
-{
- GeeCollection* result = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 52 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_UPDATES (self), NULL);
-#line 53 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->developer_files;
-#line 53 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 53 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp1_;
-#line 53 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 1248 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_updates_real_is_in_alteration (MonitorableUpdates* base)
-{
- PhotoUpdates * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 56 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_UPDATES, PhotoUpdates);
-#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (MONITORABLE_UPDATES_CLASS (photo_updates_parent_class)->is_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates))) {
-#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = TRUE;
-#line 1264 "PhotoMonitor.c"
- } else {
- gboolean _tmp1_;
-#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->editable_in_alteration;
-#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp1_;
-#line 1271 "PhotoMonitor.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp0_;
-#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 1277 "PhotoMonitor.c"
-}
-
-
-gboolean
-photo_updates_is_revert_to_master (PhotoUpdates* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_UPDATES (self), FALSE);
-#line 61 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->revert_to_master;
-#line 61 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp0_;
-#line 61 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 1294 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_editable_file (PhotoUpdates* self,
- GFile* file)
-{
- gboolean _tmp0_ = FALSE;
- GFile* _tmp2_;
-#line 64 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail ((file == NULL) || G_IS_FILE (file));
-#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (file != NULL) {
-#line 1308 "PhotoMonitor.c"
- gboolean _tmp1_;
-#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->revert_to_master;
-#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp1_;
-#line 1314 "PhotoMonitor.c"
- } else {
-#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = FALSE;
-#line 1318 "PhotoMonitor.c"
- }
-#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp0_) {
-#line 67 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 1324 "PhotoMonitor.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _g_object_ref0 (file);
-#line 69 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->editable_file);
-#line 69 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file = _tmp2_;
-#line 1332 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_set_editable_file (PhotoUpdates* self,
- GFile* file)
-{
-#line 64 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 64 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_editable_file (self, file);
-#line 1344 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_editable_file_info (PhotoUpdates* self,
- GFileInfo* info)
-{
- gboolean _tmp0_ = FALSE;
- GFileInfo* _tmp2_;
-#line 72 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info));
-#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (info != NULL) {
-#line 1358 "PhotoMonitor.c"
- gboolean _tmp1_;
-#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->revert_to_master;
-#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp1_;
-#line 1364 "PhotoMonitor.c"
- } else {
-#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = FALSE;
-#line 1368 "PhotoMonitor.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp0_) {
-#line 75 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 1374 "PhotoMonitor.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _g_object_ref0 (info);
-#line 77 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->editable_file_info);
-#line 77 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file_info = _tmp2_;
-#line 78 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (info == NULL) {
-#line 79 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file_info_altered = FALSE;
-#line 1386 "PhotoMonitor.c"
- }
-}
-
-
-void
-photo_updates_set_editable_file_info (PhotoUpdates* self,
- GFileInfo* info)
-{
-#line 72 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 72 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_editable_file_info (self, info);
-#line 1399 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_editable_file_info_altered (PhotoUpdates* self,
- gboolean altered)
-{
- gboolean _tmp0_ = FALSE;
-#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (altered) {
-#line 1410 "PhotoMonitor.c"
- gboolean _tmp1_;
-#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->revert_to_master;
-#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp1_;
-#line 1416 "PhotoMonitor.c"
- } else {
-#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = FALSE;
-#line 1420 "PhotoMonitor.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp0_) {
-#line 85 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 1426 "PhotoMonitor.c"
- }
-#line 87 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file_info_altered = altered;
-#line 1430 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_set_editable_file_info_altered (PhotoUpdates* self,
- gboolean altered)
-{
-#line 82 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 82 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_editable_file_info_altered (self, altered);
-#line 1442 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_editable_in_alteration (PhotoUpdates* self,
- gboolean in_alteration)
-{
-#line 91 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_in_alteration = in_alteration;
-#line 1452 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_set_editable_in_alteration (PhotoUpdates* self,
- gboolean in_alteration)
-{
-#line 90 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 90 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_editable_in_alteration (self, in_alteration);
-#line 1464 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_raw_development_in_alteration (PhotoUpdates* self,
- gboolean in_alteration)
-{
-#line 95 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->raw_development_in_alteration = in_alteration;
-#line 1474 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_set_raw_development_in_alteration (PhotoUpdates* self,
- gboolean in_alteration)
-{
-#line 94 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 94 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_raw_development_in_alteration (self, in_alteration);
-#line 1486 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_raw_developer_file_info_altered (PhotoUpdates* self,
- gboolean altered)
-{
-#line 99 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->raw_developer_file_info_altered = altered;
-#line 1496 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_set_raw_developer_file_info_altered (PhotoUpdates* self,
- gboolean altered)
-{
-#line 98 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 98 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_raw_developer_file_info_altered (self, altered);
-#line 1508 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_revert_to_master (PhotoUpdates* self,
- gboolean revert)
-{
-#line 103 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (revert) {
-#line 105 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_editable = FALSE;
-#line 106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->editable_file);
-#line 106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file = NULL;
-#line 107 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->editable_file_info);
-#line 107 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file_info = NULL;
-#line 1528 "PhotoMonitor.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->revert_to_master = revert;
-#line 1532 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_set_revert_to_master (PhotoUpdates* self,
- gboolean revert)
-{
-#line 102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_revert_to_master (self, revert);
-#line 1544 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_add_raw_developer_file (PhotoUpdates* self,
- GFile* file)
-{
- GeeCollection* _tmp0_;
-#line 113 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 114 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->developer_files;
-#line 114 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_collection_add (_tmp0_, file);
-#line 1559 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_add_raw_developer_file (PhotoUpdates* self,
- GFile* file)
-{
-#line 113 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 113 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->add_raw_developer_file (self, file);
-#line 1571 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_clear_raw_developer_files (PhotoUpdates* self)
-{
- GeeCollection* _tmp0_;
-#line 118 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->developer_files;
-#line 118 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_collection_clear (_tmp0_);
-#line 1583 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_clear_raw_developer_files (PhotoUpdates* self)
-{
-#line 117 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 117 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->clear_raw_developer_files (self);
-#line 1594 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_reimport_master (PhotoUpdates* self,
- gboolean reimport)
-{
-#line 122 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_master = reimport;
-#line 124 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (reimport) {
-#line 125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- monitorable_updates_mark_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 1608 "PhotoMonitor.c"
- }
-}
-
-
-void
-photo_updates_set_reimport_master (PhotoUpdates* self,
- gboolean reimport)
-{
-#line 121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_reimport_master (self, reimport);
-#line 1621 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_reimport_editable (PhotoUpdates* self,
- gboolean reimport)
-{
- gboolean _tmp0_ = FALSE;
-#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (reimport) {
-#line 1632 "PhotoMonitor.c"
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
-#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = self->revert_to_master;
-#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_) {
-#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = TRUE;
-#line 1641 "PhotoMonitor.c"
- } else {
-#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = monitorable_updates_is_set_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 1645 "PhotoMonitor.c"
- }
-#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp1_;
-#line 1649 "PhotoMonitor.c"
- } else {
-#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = FALSE;
-#line 1653 "PhotoMonitor.c"
- }
-#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp0_) {
-#line 131 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 1659 "PhotoMonitor.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_editable = reimport;
-#line 1663 "PhotoMonitor.c"
-}
-
-
-void
-photo_updates_set_reimport_editable (PhotoUpdates* self,
- gboolean reimport)
-{
-#line 128 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 128 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_reimport_editable (self, reimport);
-#line 1675 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_real_set_reimport_raw_developments (PhotoUpdates* self,
- gboolean reimport)
-{
-#line 137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_raw_developments = reimport;
-#line 139 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (reimport) {
-#line 140 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- monitorable_updates_mark_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 1689 "PhotoMonitor.c"
- }
-}
-
-
-void
-photo_updates_set_reimport_raw_developments (PhotoUpdates* self,
- gboolean reimport)
-{
-#line 136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_UPDATES (self));
-#line 136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- PHOTO_UPDATES_GET_CLASS (self)->set_reimport_raw_developments (self, reimport);
-#line 1702 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_updates_real_is_all_updated (MonitorableUpdates* base)
-{
- PhotoUpdates * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_ = FALSE;
-#line 143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_UPDATES, PhotoUpdates);
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (MONITORABLE_UPDATES_CLASS (photo_updates_parent_class)->is_all_updated (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates))) {
-#line 1724 "PhotoMonitor.c"
- gboolean _tmp9_;
-#line 145 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = self->reimport_master;
-#line 145 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = _tmp9_ == FALSE;
-#line 1730 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = FALSE;
-#line 1734 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp8_) {
-#line 1738 "PhotoMonitor.c"
- gboolean _tmp10_;
-#line 146 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = self->reimport_editable;
-#line 146 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = _tmp10_ == FALSE;
-#line 1744 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = FALSE;
-#line 1748 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp7_) {
-#line 1752 "PhotoMonitor.c"
- GFile* _tmp11_;
-#line 147 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = self->editable_file;
-#line 147 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = _tmp11_ == NULL;
-#line 1758 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = FALSE;
-#line 1762 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp6_) {
-#line 1766 "PhotoMonitor.c"
- gboolean _tmp12_;
-#line 148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = self->editable_file_info_altered;
-#line 148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _tmp12_ == FALSE;
-#line 1772 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = FALSE;
-#line 1776 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp5_) {
-#line 1780 "PhotoMonitor.c"
- GFileInfo* _tmp13_;
-#line 149 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = self->editable_file_info;
-#line 149 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = _tmp13_ == NULL;
-#line 1786 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = FALSE;
-#line 1790 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp4_) {
-#line 1794 "PhotoMonitor.c"
- gboolean _tmp14_;
-#line 150 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = self->editable_in_alteration;
-#line 150 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp14_ == FALSE;
-#line 1800 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = FALSE;
-#line 1804 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp3_) {
-#line 1808 "PhotoMonitor.c"
- GeeCollection* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = self->developer_files;
-#line 151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = gee_collection_get_size (_tmp15_);
-#line 151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = _tmp16_;
-#line 151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _tmp17_ == 0;
-#line 1820 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = FALSE;
-#line 1824 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_) {
-#line 1828 "PhotoMonitor.c"
- gboolean _tmp18_;
-#line 152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = self->raw_developer_file_info_altered;
-#line 152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp18_ == FALSE;
-#line 1834 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = FALSE;
-#line 1838 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp1_) {
-#line 1842 "PhotoMonitor.c"
- gboolean _tmp19_;
-#line 153 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = self->revert_to_master;
-#line 153 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp19_ == FALSE;
-#line 1848 "PhotoMonitor.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = FALSE;
-#line 1852 "PhotoMonitor.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp0_;
-#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 1858 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_class_init (PhotoUpdatesClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->finalize = photo_updates_finalize;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->mark_offline = (void (*) (MonitorableUpdates *)) photo_updates_real_mark_offline;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->is_in_alteration = (gboolean (*) (MonitorableUpdates *)) photo_updates_real_is_in_alteration;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_editable_file = (void (*) (PhotoUpdates *, GFile*)) photo_updates_real_set_editable_file;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_editable_file_info = (void (*) (PhotoUpdates *, GFileInfo*)) photo_updates_real_set_editable_file_info;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_editable_file_info_altered = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_editable_file_info_altered;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_editable_in_alteration = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_editable_in_alteration;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_raw_development_in_alteration = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_raw_development_in_alteration;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_raw_developer_file_info_altered = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_raw_developer_file_info_altered;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_revert_to_master = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_revert_to_master;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->add_raw_developer_file = (void (*) (PhotoUpdates *, GFile*)) photo_updates_real_add_raw_developer_file;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->clear_raw_developer_files = (void (*) (PhotoUpdates *)) photo_updates_real_clear_raw_developer_files;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_reimport_master = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_reimport_master;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_reimport_editable = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_reimport_editable;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((PhotoUpdatesClass *) klass)->set_reimport_raw_developments = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_reimport_raw_developments;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->is_all_updated = (gboolean (*) (MonitorableUpdates *)) photo_updates_real_is_all_updated;
-#line 1899 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_instance_init (PhotoUpdates * self)
-{
- GeeArrayList* _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_master = FALSE;
-#line 11 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_editable = FALSE;
-#line 12 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_raw_developments = FALSE;
-#line 13 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file = NULL;
-#line 14 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file_info_altered = FALSE;
-#line 15 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->raw_developer_file_info_altered = FALSE;
-#line 16 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_file_info = NULL;
-#line 17 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->editable_in_alteration = FALSE;
-#line 18 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->raw_development_in_alteration = FALSE;
-#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_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 1931 "PhotoMonitor.c"
-}
-
-
-static void
-photo_updates_finalize (MonitorableUpdates * obj)
-{
- PhotoUpdates * self;
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_UPDATES, PhotoUpdates);
-#line 8 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->photo);
-#line 13 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->editable_file);
-#line 16 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->editable_file_info);
-#line 20 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->developer_files);
-#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- MONITORABLE_UPDATES_CLASS (photo_updates_parent_class)->finalize (obj);
-#line 1951 "PhotoMonitor.c"
-}
-
-
-GType
-photo_updates_get_type (void)
-{
- static volatile gsize photo_updates_type_id__volatile = 0;
- if (g_once_init_enter (&photo_updates_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoUpdatesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_updates_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoUpdates), 0, (GInstanceInitFunc) photo_updates_instance_init, NULL };
- GType photo_updates_type_id;
- photo_updates_type_id = g_type_register_static (TYPE_MONITORABLE_UPDATES, "PhotoUpdates", &g_define_type_info, 0);
- g_once_init_leave (&photo_updates_type_id__volatile, photo_updates_type_id);
- }
- return photo_updates_type_id__volatile;
-}
-
-
-static gpointer
-_workers_ref0 (gpointer self)
-{
-#line 240 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self ? workers_ref (self) : NULL;
-#line 1974 "PhotoMonitor.c"
-}
-
-
-PhotoMonitor*
-photo_monitor_construct (GType object_type,
- Workers* workers,
- GCancellable* cancellable)
-{
- PhotoMonitor * self = NULL;
- LibraryPhotoSourceCollection* _tmp0_;
- Workers* _tmp1_;
-#line 237 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_WORKERS (workers), NULL);
-#line 237 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 238 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = library_photo_global;
-#line 238 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = (PhotoMonitor*) media_monitor_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), cancellable);
-#line 240 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _workers_ref0 (workers);
-#line 240 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _workers_unref0 (self->priv->workers);
-#line 240 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->priv->workers = _tmp1_;
-#line 237 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self;
-#line 2002 "PhotoMonitor.c"
-}
-
-
-PhotoMonitor*
-photo_monitor_new (Workers* workers,
- GCancellable* cancellable)
-{
-#line 237 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return photo_monitor_construct (TYPE_PHOTO_MONITOR, workers, cancellable);
-#line 2012 "PhotoMonitor.c"
-}
-
-
-static MonitorableUpdates*
-photo_monitor_real_create_updates (MediaMonitor* base,
- Monitorable* monitorable)
-{
- PhotoMonitor * self;
- MonitorableUpdates* result = NULL;
- PhotoUpdates* _tmp0_;
-#line 243 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 243 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 244 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (monitorable, TYPE_LIBRARY_PHOTO), "monitorable is LibraryPhoto");
-#line 246 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_updates_new (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 246 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates);
-#line 246 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2035 "PhotoMonitor.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 2044 "PhotoMonitor.c"
-}
-
-
-static MediaSourceCollection*
-photo_monitor_real_get_media_source_collection (MediaMonitor* base)
-{
- PhotoMonitor * self;
- MediaSourceCollection* result = NULL;
- LibraryPhotoSourceCollection* _tmp0_;
- MediaSourceCollection* _tmp1_;
-#line 249 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = library_photo_global;
-#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp1_;
-#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2065 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_monitor_real_is_file_represented (MediaMonitor* base,
- GFile* file)
-{
- PhotoMonitor * self;
- gboolean result = FALSE;
- LibraryPhotoSourceCollectionState state = 0;
- LibraryPhotoSourceCollectionState _tmp0_ = 0;
- LibraryPhoto* _tmp1_;
- LibraryPhoto* _tmp2_;
- gboolean _tmp3_;
-#line 253 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 253 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_);
-#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp2_ != NULL;
-#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp2_);
-#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp3_;
-#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2098 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_real_close (MediaMonitor* base)
-{
- PhotoMonitor * self;
-#line 258 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 2108 "PhotoMonitor.c"
- {
- GeeIterator* _job_it = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->priv->master_reimport_pending;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp3_);
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _job_it = _tmp5_;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 2135 "PhotoMonitor.c"
- GeeIterator* _tmp6_;
- PhotoMonitorReimportMasterJob* job = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- PhotoMonitorReimportMasterJob* _tmp9_;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = _job_it;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 2147 "PhotoMonitor.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = _job_it;
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = (PhotoMonitorReimportMasterJob*) _tmp8_;
-#line 260 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = job;
-#line 260 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 2161 "PhotoMonitor.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_job_it);
-#line 2165 "PhotoMonitor.c"
- }
- {
- GeeIterator* _job_it = NULL;
- GeeHashMap* _tmp10_;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
- GeeCollection* _tmp13_;
- GeeIterator* _tmp14_;
- GeeIterator* _tmp15_;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = self->priv->editable_reimport_pending;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = _tmp11_;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = _tmp12_;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = _tmp14_;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp13_);
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _job_it = _tmp15_;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 2193 "PhotoMonitor.c"
- GeeIterator* _tmp16_;
- PhotoMonitorReimportEditableJob* job = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
- PhotoMonitorReimportEditableJob* _tmp19_;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = _job_it;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp16_)) {
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 2205 "PhotoMonitor.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = _job_it;
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = (PhotoMonitorReimportEditableJob*) _tmp18_;
-#line 263 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = job;
-#line 263 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 2219 "PhotoMonitor.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_job_it);
-#line 2223 "PhotoMonitor.c"
- }
- {
- GeeIterator* _job_it = NULL;
- GeeHashMap* _tmp20_;
- GeeCollection* _tmp21_;
- GeeCollection* _tmp22_;
- GeeCollection* _tmp23_;
- GeeIterator* _tmp24_;
- GeeIterator* _tmp25_;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = self->priv->raw_developments_reimport_pending;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = _tmp21_;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = _tmp22_;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = _tmp24_;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp23_);
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _job_it = _tmp25_;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 2251 "PhotoMonitor.c"
- GeeIterator* _tmp26_;
- PhotoMonitorReimportRawDevelopmentJob* job = NULL;
- GeeIterator* _tmp27_;
- gpointer _tmp28_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp29_;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = _job_it;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp26_)) {
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 2263 "PhotoMonitor.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = _job_it;
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = gee_iterator_get (_tmp27_);
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = (PhotoMonitorReimportRawDevelopmentJob*) _tmp28_;
-#line 266 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp29_ = job;
-#line 266 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 2277 "PhotoMonitor.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_job_it);
-#line 2281 "PhotoMonitor.c"
- }
-#line 268 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- MEDIA_MONITOR_CLASS (photo_monitor_parent_class)->close (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor));
-#line 2285 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_cancel_reimports (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoMonitorReimportMasterJob* master_job = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- PhotoMonitorReimportMasterJob* _tmp2_;
- PhotoMonitorReimportEditableJob* editable_job = NULL;
- GeeHashMap* _tmp4_;
- gpointer _tmp5_;
- PhotoMonitorReimportEditableJob* _tmp6_;
-#line 271 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 271 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 272 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->priv->master_reimport_pending;
-#line 272 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 272 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- master_job = (PhotoMonitorReimportMasterJob*) _tmp1_;
-#line 273 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = master_job;
-#line 273 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_ != NULL) {
-#line 2315 "PhotoMonitor.c"
- PhotoMonitorReimportMasterJob* _tmp3_;
-#line 274 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = master_job;
-#line 274 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 2321 "PhotoMonitor.c"
- }
-#line 276 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = self->priv->editable_reimport_pending;
-#line 276 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 276 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- editable_job = (PhotoMonitorReimportEditableJob*) _tmp5_;
-#line 277 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = editable_job;
-#line 277 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp6_ != NULL) {
-#line 2333 "PhotoMonitor.c"
- PhotoMonitorReimportEditableJob* _tmp7_;
-#line 278 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = editable_job;
-#line 278 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 2339 "PhotoMonitor.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (editable_job);
-#line 271 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (master_job);
-#line 2345 "PhotoMonitor.c"
-}
-
-
-static MediaMonitorDiscoveredFile
-photo_monitor_real_notify_file_discovered (MediaMonitor* base,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable)
-{
- PhotoMonitor * self;
- Monitorable* _vala_monitorable = NULL;
- MediaMonitorDiscoveredFile result = 0;
- LibraryPhotoSourceCollectionState state = 0;
- LibraryPhoto* photo = NULL;
- LibraryPhotoSourceCollectionState _tmp0_ = 0;
- LibraryPhoto* _tmp1_;
- LibraryPhoto* _tmp2_;
- LibraryPhotoSourceCollectionState _tmp3_;
-#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), 0);
-#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), 0);
-#line 284 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_);
-#line 284 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 284 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp1_;
-#line 285 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = photo;
-#line 285 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 286 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 286 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_monitorable = NULL;
-#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN;
-#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (monitorable) {
-#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *monitorable = _vala_monitorable;
-#line 2392 "PhotoMonitor.c"
- } else {
-#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 2396 "PhotoMonitor.c"
- }
-#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2400 "PhotoMonitor.c"
- }
-#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = state;
-#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp3_) {
-#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 2410 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp4_;
- Monitorable* _tmp5_;
-#line 294 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = photo;
-#line 294 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable));
-#line 294 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 294 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_monitorable = _tmp5_;
-#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED;
-#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (monitorable) {
-#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *monitorable = _vala_monitorable;
-#line 2430 "PhotoMonitor.c"
- } else {
-#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 2434 "PhotoMonitor.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2438 "PhotoMonitor.c"
- }
- default:
-#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 2447 "PhotoMonitor.c"
- {
-#line 304 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 304 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_monitorable = NULL;
-#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = MEDIA_MONITOR_DISCOVERED_FILE_IGNORE;
-#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (monitorable) {
-#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *monitorable = _vala_monitorable;
-#line 2461 "PhotoMonitor.c"
- } else {
-#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 2465 "PhotoMonitor.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2469 "PhotoMonitor.c"
- }
- }
-#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (monitorable) {
-#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *monitorable = _vala_monitorable;
-#line 2478 "PhotoMonitor.c"
- } else {
-#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 2482 "PhotoMonitor.c"
- }
-}
-
-
-static GeeCollection*
-photo_monitor_real_candidates_for_unknown_file (MediaMonitor* base,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_)
-{
- PhotoMonitor * self;
- MediaMonitorDiscoveredFile _vala_result = 0;
- GeeCollection* result = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeCollection* matched_masters = NULL;
- GeeArrayList* _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
- GeeCollection* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gboolean _tmp10_ = FALSE;
- GeeArrayList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- GeeArrayList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- GeeArrayList* _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
-#line 310 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 310 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 310 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
-#line 313 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->priv->matched_editables;
-#line 313 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 314 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->priv->matched_developments;
-#line 314 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 316 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 316 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- matched_masters = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = library_photo_global;
-#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = matched_masters;
-#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = self->priv->matched_editables;
-#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = self->priv->matched_developments;
-#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- library_photo_source_collection_fetch_by_matching_backing (_tmp3_, info, _tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 319 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = matched_masters;
-#line 319 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = gee_collection_get_size (_tmp7_);
-#line 319 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = _tmp8_;
-#line 319 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp9_ > 0) {
-#line 320 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN;
-#line 322 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = matched_masters;
-#line 322 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_result_) {
-#line 322 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *_result_ = _vala_result;
-#line 2561 "PhotoMonitor.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2565 "PhotoMonitor.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = self->priv->matched_editables;
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = _tmp12_;
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp13_ == 0) {
-#line 2575 "PhotoMonitor.c"
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = self->priv->matched_developments;
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = _tmp15_;
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = _tmp16_ == 0;
-#line 2587 "PhotoMonitor.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = FALSE;
-#line 2591 "PhotoMonitor.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp10_) {
-#line 326 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN;
-#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = NULL;
-#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (matched_masters);
-#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_result_) {
-#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *_result_ = _vala_result;
-#line 2605 "PhotoMonitor.c"
- }
-#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2609 "PhotoMonitor.c"
- }
-#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = self->priv->matched_editables;
-#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = _tmp18_;
-#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp19_ > 0) {
-#line 2619 "PhotoMonitor.c"
- LibraryPhoto* match = NULL;
- GeeArrayList* _tmp20_;
- gpointer _tmp21_;
- GeeArrayList* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- LibraryPhoto* _tmp48_;
-#line 333 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = self->priv->matched_editables;
-#line 333 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 333 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- match = (LibraryPhoto*) _tmp21_;
-#line 334 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = self->priv->matched_editables;
-#line 334 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 334 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = _tmp23_;
-#line 334 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp24_ > 1) {
-#line 2641 "PhotoMonitor.c"
- gchar* _tmp25_;
- gchar* _tmp26_;
- GeeArrayList* _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- LibraryPhoto* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = g_file_get_path (file);
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = _tmp25_;
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = self->priv->matched_editables;
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp29_ = _tmp28_;
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp30_ = match;
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp31_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_OBJECT, DataObject));
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp32_ = _tmp31_;
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_warning ("PhotoMonitor.vala:335: Unknown file %s could be matched with %d photos" \
-"; giving to %s, dropping others", _tmp26_, _tmp29_, _tmp32_);
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp32_);
-#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp26_);
-#line 2672 "PhotoMonitor.c"
- {
- gint ctr = 0;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ctr = 1;
-#line 2677 "PhotoMonitor.c"
- {
- gboolean _tmp33_ = FALSE;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp33_ = TRUE;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 2684 "PhotoMonitor.c"
- gint _tmp35_;
- GeeArrayList* _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
- GeeArrayList* _tmp39_;
- gint _tmp40_;
- gpointer _tmp41_;
- LibraryPhoto* _tmp42_;
- gboolean _tmp43_;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!_tmp33_) {
-#line 2696 "PhotoMonitor.c"
- gint _tmp34_;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp34_ = ctr;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ctr = _tmp34_ + 1;
-#line 2702 "PhotoMonitor.c"
- }
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp33_ = FALSE;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp35_ = ctr;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp36_ = self->priv->matched_editables;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp38_ = _tmp37_;
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!(_tmp35_ < _tmp38_)) {
-#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 2718 "PhotoMonitor.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp39_ = self->priv->matched_editables;
-#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp40_ = ctr;
-#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp41_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp40_);
-#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp42_ = (LibraryPhoto*) _tmp41_;
-#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp43_ = !photo_does_editable_exist (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PHOTO, Photo));
-#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp42_);
-#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp43_) {
-#line 2734 "PhotoMonitor.c"
- GeeArrayList* _tmp44_;
- gint _tmp45_;
- gpointer _tmp46_;
- LibraryPhoto* _tmp47_;
-#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp44_ = self->priv->matched_editables;
-#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp45_ = ctr;
-#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp46_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp45_);
-#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp47_ = (LibraryPhoto*) _tmp46_;
-#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PHOTO, Photo), TRUE);
-#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp47_);
-#line 2751 "PhotoMonitor.c"
- }
- }
- }
- }
- }
-#line 343 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp48_ = match;
-#line 343 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file (self, _tmp48_, file);
-#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (match);
-#line 2763 "PhotoMonitor.c"
- }
-#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp49_ = self->priv->matched_developments;
-#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp50_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp51_ = _tmp50_;
-#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp51_ > 0) {
-#line 2773 "PhotoMonitor.c"
- LibraryPhoto* match_raw = NULL;
- GeeArrayList* _tmp52_;
- gpointer _tmp53_;
- GeeArrayList* _tmp54_;
- gint _tmp55_;
- gint _tmp56_;
- LibraryPhoto* _tmp65_;
-#line 347 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp52_ = self->priv->matched_developments;
-#line 347 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp53_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 347 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- match_raw = (LibraryPhoto*) _tmp53_;
-#line 348 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp54_ = self->priv->matched_developments;
-#line 348 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp55_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 348 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp56_ = _tmp55_;
-#line 348 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp56_ > 1) {
-#line 2795 "PhotoMonitor.c"
- gchar* _tmp57_;
- gchar* _tmp58_;
- GeeArrayList* _tmp59_;
- gint _tmp60_;
- gint _tmp61_;
- LibraryPhoto* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp57_ = g_file_get_path (file);
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp58_ = _tmp57_;
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp59_ = self->priv->matched_developments;
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp60_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp61_ = _tmp60_;
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp62_ = match_raw;
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp63_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_DATA_OBJECT, DataObject));
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp64_ = _tmp63_;
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_warning ("PhotoMonitor.vala:349: Unknown file %s could be matched with %d photos" \
-"; giving to %s, dropping others", _tmp58_, _tmp61_, _tmp64_);
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp64_);
-#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp58_);
-#line 2826 "PhotoMonitor.c"
- }
-#line 353 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp65_ = match_raw;
-#line 353 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file (self, _tmp65_, file);
-#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (match_raw);
-#line 2834 "PhotoMonitor.c"
- }
-#line 356 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_result = MEDIA_MONITOR_DISCOVERED_FILE_IGNORE;
-#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = NULL;
-#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (matched_masters);
-#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_result_) {
-#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *_result_ = _vala_result;
-#line 2846 "PhotoMonitor.c"
- }
-#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2850 "PhotoMonitor.c"
-}
-
-
-static void
-_vala_array_add131 (GFile** * array,
- int* length,
- int* size,
- GFile* value)
-{
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if ((*length) == (*size)) {
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *array = g_renew (GFile*, *array, (*size) + 1);
-#line 2866 "PhotoMonitor.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- (*array)[(*length)++] = value;
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- (*array)[*length] = NULL;
-#line 2872 "PhotoMonitor.c"
-}
-
-
-static void
-_vala_array_add132 (GFile** * array,
- int* length,
- int* size,
- GFile* value)
-{
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if ((*length) == (*size)) {
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *array = g_renew (GFile*, *array, (*size) + 1);
-#line 2888 "PhotoMonitor.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- (*array)[(*length)++] = value;
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- (*array)[*length] = NULL;
-#line 2894 "PhotoMonitor.c"
-}
-
-
-static GFile**
-_vala_array_dup26 (GFile** self,
- int length)
-{
- GFile** result;
- int i;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = g_new0 (GFile*, length + 1);
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- for (i = 0; i < length; i++) {
-#line 2908 "PhotoMonitor.c"
- GFile* _tmp0_;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _g_object_ref0 (self[i]);
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result[i] = _tmp0_;
-#line 2914 "PhotoMonitor.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 2918 "PhotoMonitor.c"
-}
-
-
-static GFile**
-photo_monitor_real_get_auxilliary_backing_files (MediaMonitor* base,
- Monitorable* monitorable,
- int* result_length1)
-{
- PhotoMonitor * self;
- GFile** result = NULL;
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- GFile** files = NULL;
- GFile** _tmp1_;
- gint files_length1;
- gint _files_size_;
- LibraryPhoto* _tmp2_;
- GeeCollection* raw_files = NULL;
- LibraryPhoto* _tmp6_;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
- GFile** _tmp17_ = NULL;
- gint _tmp17__length1 = 0;
- gint __tmp17__size_ = 0;
- GFile** _tmp18_;
- gint _tmp18__length1;
- GFile** _tmp20_;
- gint _tmp20__length1;
- GFile** _tmp21_;
- gint _tmp21__length1;
-#line 361 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 361 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 362 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 362 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp0_;
-#line 363 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = g_new0 (GFile*, 0 + 1);
-#line 363 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- files = _tmp1_;
-#line 363 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- files_length1 = 0;
-#line 363 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _files_size_ = files_length1;
-#line 366 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = photo;
-#line 366 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO, Photo))) {
-#line 2969 "PhotoMonitor.c"
- GFile** _tmp3_;
- gint _tmp3__length1;
- LibraryPhoto* _tmp4_;
- GFile* _tmp5_;
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = files;
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3__length1 = files_length1;
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = photo;
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO, Photo));
-#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_array_add131 (&files, &files_length1, &_files_size_, _tmp5_);
-#line 2984 "PhotoMonitor.c"
- }
-#line 370 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = photo;
-#line 370 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo));
-#line 370 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- raw_files = _tmp7_;
-#line 371 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = raw_files;
-#line 371 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp8_ != NULL) {
-#line 2996 "PhotoMonitor.c"
- {
- GeeIterator* _f_it = NULL;
- GeeCollection* _tmp9_;
- GeeIterator* _tmp10_;
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = raw_files;
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _f_it = _tmp10_;
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 3009 "PhotoMonitor.c"
- GeeIterator* _tmp11_;
- GFile* f = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- GFile** _tmp14_;
- gint _tmp14__length1;
- GFile* _tmp15_;
- GFile* _tmp16_;
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = _f_it;
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3024 "PhotoMonitor.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = _f_it;
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- f = (GFile*) _tmp13_;
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = files;
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14__length1 = files_length1;
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = f;
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_array_add132 (&files, &files_length1, &_files_size_, _tmp16_);
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (f);
-#line 3044 "PhotoMonitor.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_f_it);
-#line 3048 "PhotoMonitor.c"
- }
- }
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = files;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18__length1 = files_length1;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp18__length1 > 0) {
-#line 3057 "PhotoMonitor.c"
- GFile** _tmp19_;
- gint _tmp19__length1;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = files;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19__length1 = files_length1;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = _tmp19_;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17__length1 = _tmp19__length1;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- __tmp17__size_ = _tmp17__length1;
-#line 3070 "PhotoMonitor.c"
- } else {
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = NULL;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17__length1 = 0;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- __tmp17__size_ = _tmp17__length1;
-#line 3078 "PhotoMonitor.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = (_tmp17_ != NULL) ? _vala_array_dup26 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_);
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20__length1 = _tmp17__length1;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = _tmp20_;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21__length1 = _tmp20__length1;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (result_length1) {
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *result_length1 = _tmp21__length1;
-#line 3092 "PhotoMonitor.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp21_;
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (raw_files);
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- files = (_vala_array_free (files, files_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 3104 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_real_update_backing_file_info (MediaMonitor* base,
- Monitorable* monitorable,
- GFile* file,
- GFileInfo* info)
-{
- PhotoMonitor * self;
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- LibraryPhoto* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- gboolean _tmp4_;
-#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_MONITORABLE (monitorable));
-#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info));
-#line 380 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 380 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp0_;
-#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo;
-#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = media_monitor_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MONITORABLE, Monitorable));
-#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = g_file_equal (_tmp3_, file);
-#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp3_);
-#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp4_) {
-#line 3145 "PhotoMonitor.c"
- LibraryPhoto* _tmp5_;
-#line 383 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = photo;
-#line 383 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_check_for_master_changes (self, _tmp5_, info);
-#line 3151 "PhotoMonitor.c"
- } else {
- gboolean _tmp6_ = FALSE;
- LibraryPhoto* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- gboolean _tmp10_;
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = photo;
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = photo_monitor_get_editable_file (self, _tmp7_);
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = _tmp8_;
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = _tmp9_ != NULL;
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp9_);
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp10_) {
-#line 3170 "PhotoMonitor.c"
- LibraryPhoto* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = photo;
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = photo_monitor_get_editable_file (self, _tmp11_);
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = _tmp12_;
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = g_file_equal (_tmp13_, file);
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp13_);
-#line 3184 "PhotoMonitor.c"
- } else {
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = FALSE;
-#line 3188 "PhotoMonitor.c"
- }
-#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp6_) {
-#line 3192 "PhotoMonitor.c"
- LibraryPhoto* _tmp14_;
-#line 385 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = photo;
-#line 385 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_check_for_editable_changes (self, _tmp14_, info);
-#line 3198 "PhotoMonitor.c"
- } else {
- LibraryPhoto* _tmp15_;
- GeeCollection* _tmp16_;
- GeeCollection* _tmp17_;
- gboolean _tmp18_;
-#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = photo;
-#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = photo_monitor_get_raw_development_files (self, _tmp15_);
-#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = _tmp16_;
-#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = _tmp17_ != NULL;
-#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp17_);
-#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp18_) {
-#line 3216 "PhotoMonitor.c"
- {
- GeeIterator* _f_it = NULL;
- LibraryPhoto* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
- GeeIterator* _tmp22_;
- GeeIterator* _tmp23_;
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = photo;
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = photo_monitor_get_raw_development_files (self, _tmp19_);
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = _tmp20_;
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = _tmp22_;
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp21_);
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _f_it = _tmp23_;
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 3240 "PhotoMonitor.c"
- GeeIterator* _tmp24_;
- GFile* f = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- GFile* _tmp27_;
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = _f_it;
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp24_)) {
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3252 "PhotoMonitor.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = _f_it;
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- f = (GFile*) _tmp26_;
-#line 388 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = f;
-#line 388 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (g_file_equal (_tmp27_, file)) {
-#line 3264 "PhotoMonitor.c"
- LibraryPhoto* _tmp28_;
-#line 389 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = photo;
-#line 389 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_check_for_raw_development_changes (self, _tmp28_, info);
-#line 3270 "PhotoMonitor.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (f);
-#line 3274 "PhotoMonitor.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_f_it);
-#line 3278 "PhotoMonitor.c"
- }
- }
- }
- }
-#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 3285 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_real_notify_discovery_completing (MediaMonitor* base)
-{
- PhotoMonitor * self;
- GeeArrayList* _tmp0_;
-#line 394 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 395 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->priv->matched_editables;
-#line 395 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 3300 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_check_for_master_changes (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFileInfo* info)
-{
- BackingPhotoRow* state = NULL;
- BackingPhotoRow* _tmp0_;
- BackingPhotoRow* _tmp1_;
- BackingPhotoRow* _tmp2_;
-#line 402 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 402 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 402 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info));
-#line 404 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (info == NULL) {
-#line 405 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 3323 "PhotoMonitor.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 407 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 408 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = state;
-#line 408 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (backing_photo_row_matches_file_info (_tmp1_, info)) {
-#line 409 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _backing_photo_row_unref0 (state);
-#line 409 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 3337 "PhotoMonitor.c"
- }
-#line 411 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = state;
-#line 411 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (backing_photo_row_is_touched (_tmp2_, info)) {
-#line 412 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_info_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable));
-#line 413 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_alterations_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable), info);
-#line 3347 "PhotoMonitor.c"
- } else {
-#line 415 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_master (self, photo);
-#line 3351 "PhotoMonitor.c"
- }
-#line 402 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _backing_photo_row_unref0 (state);
-#line 3355 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_check_for_editable_changes (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFileInfo* info)
-{
- BackingPhotoRow* state = NULL;
- BackingPhotoRow* _tmp0_;
- gboolean _tmp1_ = FALSE;
- BackingPhotoRow* _tmp2_;
- BackingPhotoRow* _tmp4_;
-#line 419 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 419 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 419 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info));
-#line 420 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (info == NULL) {
-#line 421 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_revert_to_master (self, photo);
-#line 423 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 3381 "PhotoMonitor.c"
- }
-#line 427 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 427 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = state;
-#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = TRUE;
-#line 3393 "PhotoMonitor.c"
- } else {
- BackingPhotoRow* _tmp3_;
-#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = state;
-#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = backing_photo_row_matches_file_info (_tmp3_, info);
-#line 3400 "PhotoMonitor.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp1_) {
-#line 429 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _backing_photo_row_unref0 (state);
-#line 429 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 3408 "PhotoMonitor.c"
- }
-#line 431 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = state;
-#line 431 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (backing_photo_row_is_touched (_tmp4_, info)) {
-#line 432 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file_info_altered (self, photo);
-#line 433 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file_alterations_completed (self, photo, info);
-#line 3418 "PhotoMonitor.c"
- } else {
-#line 435 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_editable (self, photo);
-#line 3422 "PhotoMonitor.c"
- }
-#line 419 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _backing_photo_row_unref0 (state);
-#line 3426 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_check_for_raw_development_changes (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFileInfo* info)
-{
- GeeCollection* rows = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 439 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 439 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 439 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info));
-#line 440 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (info == NULL) {
-#line 442 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_set_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), RAW_DEVELOPER_SHOTWELL, TRUE);
-#line 444 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 3450 "PhotoMonitor.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 447 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- rows = _tmp0_;
-#line 448 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = rows;
-#line 448 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp1_ == NULL) {
-#line 449 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (rows);
-#line 449 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 3464 "PhotoMonitor.c"
- }
- {
- GeeIterator* _row_it = NULL;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = rows;
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _row_it = _tmp3_;
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 3478 "PhotoMonitor.c"
- GeeIterator* _tmp4_;
- BackingPhotoRow* row = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- BackingPhotoRow* _tmp7_;
- const gchar* _tmp8_;
- BackingPhotoRow* _tmp9_;
- const gchar* _tmp10_;
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = _row_it;
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3493 "PhotoMonitor.c"
- }
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _row_it;
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- row = (BackingPhotoRow*) _tmp6_;
-#line 454 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = row;
-#line 454 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (backing_photo_row_matches_file_info (_tmp7_, info)) {
-#line 455 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _backing_photo_row_unref0 (row);
-#line 455 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_row_it);
-#line 455 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (rows);
-#line 455 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 3513 "PhotoMonitor.c"
- }
-#line 456 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = g_file_info_get_name (info);
-#line 456 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = row;
-#line 456 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = _tmp9_->filepath;
-#line 456 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (g_strcmp0 (_tmp8_, _tmp10_) == 0) {
-#line 3523 "PhotoMonitor.c"
- BackingPhotoRow* _tmp11_;
-#line 457 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = row;
-#line 457 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (backing_photo_row_is_touched (_tmp11_, info)) {
-#line 458 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file_info_altered (self, photo);
-#line 459 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file_alterations_completed (self, photo);
-#line 3533 "PhotoMonitor.c"
- } else {
-#line 461 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_raw_developments (self, photo);
-#line 3537 "PhotoMonitor.c"
- }
-#line 464 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _backing_photo_row_unref0 (row);
-#line 464 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3543 "PhotoMonitor.c"
- }
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _backing_photo_row_unref0 (row);
-#line 3547 "PhotoMonitor.c"
- }
-#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_row_it);
-#line 3551 "PhotoMonitor.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (rows);
-#line 3555 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_monitor_real_notify_file_created (MediaMonitor* base,
- GFile* file,
- GFileInfo* info)
-{
- PhotoMonitor * self;
- gboolean result = FALSE;
- LibraryPhotoSourceCollectionState state = 0;
- LibraryPhoto* photo = NULL;
- LibraryPhotoSourceCollectionState _tmp0_ = 0;
- LibraryPhoto* _tmp1_;
- LibraryPhoto* _tmp2_;
- LibraryPhotoSourceCollectionState _tmp3_;
-#line 469 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 469 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 469 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 471 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_);
-#line 471 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 471 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp1_;
-#line 472 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = photo;
-#line 472 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 473 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = FALSE;
-#line 473 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 473 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 3594 "PhotoMonitor.c"
- }
-#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = state;
-#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp3_) {
-#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 3608 "PhotoMonitor.c"
- {
- gchar* _tmp4_;
- gchar* _tmp5_;
- LibraryPhotoSourceCollectionState _tmp6_;
- GEnumValue* _tmp7_;
-#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = g_file_get_path (file);
-#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = state;
-#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp6_);
-#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_warning ("PhotoMonitor.vala:481: File %s created in %s state", _tmp5_, (_tmp7_ != NULL) ? _tmp7_->value_name : NULL);
-#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp5_);
-#line 482 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3628 "PhotoMonitor.c"
- }
-#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 3632 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- LibraryPhoto* _tmp13_;
-#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = photo;
-#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = _tmp9_;
-#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = g_strdup_printf ("Will mark %s online", _tmp10_);
-#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = _tmp11_;
-#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp12_);
-#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp12_);
-#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp10_);
-#line 486 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = photo;
-#line 486 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MONITORABLE, Monitorable));
-#line 487 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3662 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp14_;
- GEnumValue* _tmp15_;
-#line 490 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = state;
-#line 490 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp14_);
-#line 490 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:490: Unknown LibraryPhoto collection state %s", (_tmp15_ != NULL) ? _tmp15_->value_name : NULL);
-#line 3674 "PhotoMonitor.c"
- }
- }
-#line 493 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = TRUE;
-#line 493 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 493 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 3683 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_monitor_real_notify_file_moved (MediaMonitor* base,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* info)
-{
- PhotoMonitor * self;
- gboolean result = FALSE;
- LibraryPhotoSourceCollectionState old_state = 0;
- LibraryPhoto* old_photo = NULL;
- LibraryPhotoSourceCollectionState _tmp0_ = 0;
- LibraryPhoto* _tmp1_;
- LibraryPhotoSourceCollectionState new_state = 0;
- LibraryPhoto* new_photo = NULL;
- LibraryPhotoSourceCollectionState _tmp2_ = 0;
- LibraryPhoto* _tmp3_;
- gboolean _tmp4_ = FALSE;
- LibraryPhoto* _tmp5_;
-#line 496 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 496 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (old_file), FALSE);
-#line 496 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (new_file), FALSE);
-#line 496 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 498 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo_monitor_get_photo_state_by_file (self, old_file, &_tmp0_);
-#line 498 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- old_state = _tmp0_;
-#line 498 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- old_photo = _tmp1_;
-#line 501 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = photo_monitor_get_photo_state_by_file (self, new_file, &_tmp2_);
-#line 501 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- new_state = _tmp2_;
-#line 501 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- new_photo = _tmp3_;
-#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = old_photo;
-#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp5_ != NULL) {
-#line 3729 "PhotoMonitor.c"
- LibraryPhoto* _tmp6_;
-#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = new_photo;
-#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = _tmp6_ == NULL;
-#line 3735 "PhotoMonitor.c"
- } else {
-#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = FALSE;
-#line 3739 "PhotoMonitor.c"
- }
-#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp4_) {
-#line 3743 "PhotoMonitor.c"
- LibraryPhotoSourceCollectionState _tmp7_;
-#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = old_state;
-#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp7_) {
-#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 3755 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- LibraryPhoto* _tmp15_;
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = old_photo;
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = _tmp9_;
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = g_file_get_path (new_file);
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = _tmp11_;
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = g_strdup_printf ("Will set new master file for %s to %s", _tmp10_, _tmp12_);
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = _tmp13_;
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp14_);
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp14_);
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp12_);
-#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp10_);
-#line 523 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = old_photo;
-#line 523 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MONITORABLE, Monitorable), new_file);
-#line 524 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3793 "PhotoMonitor.c"
- }
-#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 3797 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- LibraryPhoto* _tmp23_;
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = old_photo;
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = _tmp17_;
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = g_file_get_path (new_file);
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = _tmp19_;
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = g_strdup_printf ("Will set new editable file for %s to %s", _tmp18_, _tmp20_);
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = _tmp21_;
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp22_);
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp22_);
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp20_);
-#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp18_);
-#line 529 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = old_photo;
-#line 529 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file (self, _tmp23_, new_file);
-#line 530 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3835 "PhotoMonitor.c"
- }
-#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 3839 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- LibraryPhoto* _tmp31_;
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = old_photo;
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_OBJECT, DataObject));
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = _tmp25_;
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = g_file_get_path (new_file);
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = _tmp27_;
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp29_ = g_strdup_printf ("Will set new raw development file for %s to %s", _tmp26_, _tmp28_);
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp30_ = _tmp29_;
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp30_);
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp30_);
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp28_);
-#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp26_);
-#line 535 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp31_ = old_photo;
-#line 535 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file (self, _tmp31_, new_file);
-#line 536 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3877 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp32_;
- GEnumValue* _tmp33_;
-#line 539 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp32_ = old_state;
-#line 539 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp33_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp32_);
-#line 539 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:539: Unknown LibraryPhoto collection state %s", (_tmp33_ != NULL) ? _tmp33_->value_name : NULL);
-#line 3889 "PhotoMonitor.c"
- }
- }
- } else {
- gboolean _tmp34_ = FALSE;
- LibraryPhoto* _tmp35_;
-#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp35_ = old_photo;
-#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp35_ == NULL) {
-#line 3899 "PhotoMonitor.c"
- LibraryPhoto* _tmp36_;
-#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp36_ = new_photo;
-#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp34_ = _tmp36_ != NULL;
-#line 3905 "PhotoMonitor.c"
- } else {
-#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp34_ = FALSE;
-#line 3909 "PhotoMonitor.c"
- }
-#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp34_) {
-#line 3913 "PhotoMonitor.c"
- LibraryPhotoSourceCollectionState _tmp37_;
-#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp37_ = new_state;
-#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp37_) {
-#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 3925 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- LibraryPhoto* _tmp43_;
-#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp38_ = new_photo;
-#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp39_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_OBJECT, DataObject));
-#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp40_ = _tmp39_;
-#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp41_ = g_strdup_printf ("Will reimport master file for %s", _tmp40_);
-#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp42_ = _tmp41_;
-#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp42_);
-#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp42_);
-#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp40_);
-#line 548 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp43_ = new_photo;
-#line 548 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_master (self, _tmp43_);
-#line 549 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3955 "PhotoMonitor.c"
- }
-#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 3959 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp44_;
- gchar* _tmp45_;
- gchar* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
- LibraryPhoto* _tmp49_;
-#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp44_ = new_photo;
-#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp45_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_DATA_OBJECT, DataObject));
-#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp46_ = _tmp45_;
-#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp47_ = g_strdup_printf ("Will reimport editable file for %s", _tmp46_);
-#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp48_ = _tmp47_;
-#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp48_);
-#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp48_);
-#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp46_);
-#line 553 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp49_ = new_photo;
-#line 553 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_editable (self, _tmp49_);
-#line 554 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 3989 "PhotoMonitor.c"
- }
-#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 3993 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
- LibraryPhoto* _tmp55_;
-#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp50_ = new_photo;
-#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp51_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_DATA_OBJECT, DataObject));
-#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp52_ = _tmp51_;
-#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp53_ = g_strdup_printf ("Will reimport raw development file for %s", _tmp52_);
-#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp54_ = _tmp53_;
-#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp54_);
-#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp54_);
-#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp52_);
-#line 558 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp55_ = new_photo;
-#line 558 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_raw_developments (self, _tmp55_);
-#line 559 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4023 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp56_;
- GEnumValue* _tmp57_;
-#line 562 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp56_ = new_state;
-#line 562 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp57_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp56_);
-#line 562 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:562: Unknown LibraryPhoto collection state %s", (_tmp57_ != NULL) ? _tmp57_->value_name : NULL);
-#line 4035 "PhotoMonitor.c"
- }
- }
- } else {
- gboolean _tmp58_ = FALSE;
- LibraryPhoto* _tmp59_;
-#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp59_ = old_photo;
-#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp59_ == NULL) {
-#line 4045 "PhotoMonitor.c"
- LibraryPhoto* _tmp60_;
-#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp60_ = new_photo;
-#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp58_ = _tmp60_ == NULL;
-#line 4051 "PhotoMonitor.c"
- } else {
-#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp58_ = FALSE;
-#line 4055 "PhotoMonitor.c"
- }
-#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp58_) {
-#line 566 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = FALSE;
-#line 566 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (new_photo);
-#line 566 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (old_photo);
-#line 566 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4067 "PhotoMonitor.c"
- } else {
- gboolean _tmp61_ = FALSE;
- LibraryPhoto* _tmp62_;
- LibraryPhotoSourceCollectionState _tmp64_;
- LibraryPhotoSourceCollectionState _tmp79_;
-#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp62_ = old_photo;
-#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp62_ != NULL) {
-#line 4077 "PhotoMonitor.c"
- LibraryPhoto* _tmp63_;
-#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp63_ = new_photo;
-#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp61_ = _tmp63_ != NULL;
-#line 4083 "PhotoMonitor.c"
- } else {
-#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp61_ = FALSE;
-#line 4087 "PhotoMonitor.c"
- }
-#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (_tmp61_, "old_photo != null && new_photo != null");
-#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp64_ = old_state;
-#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp64_) {
-#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 4097 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp65_;
- gchar* _tmp66_;
- gchar* _tmp67_;
- gchar* _tmp68_;
- gchar* _tmp69_;
- LibraryPhoto* _tmp70_;
-#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp65_ = old_photo;
-#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp66_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_DATA_OBJECT, DataObject));
-#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp67_ = _tmp66_;
-#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp68_ = g_strdup_printf ("Will mark offline %s", _tmp67_);
-#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp69_ = _tmp68_;
-#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp69_);
-#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp69_);
-#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp67_);
-#line 573 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp70_ = old_photo;
-#line 573 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_MONITORABLE, Monitorable));
-#line 574 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4127 "PhotoMonitor.c"
- }
-#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 4133 "PhotoMonitor.c"
- {
-#line 579 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4137 "PhotoMonitor.c"
- }
-#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 4141 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp71_;
- gchar* _tmp72_;
- gchar* _tmp73_;
- gchar* _tmp74_;
- gchar* _tmp75_;
- LibraryPhoto* _tmp76_;
-#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp71_ = old_photo;
-#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp72_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, TYPE_DATA_OBJECT, DataObject));
-#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp73_ = _tmp72_;
-#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp74_ = g_strdup_printf ("Will revert %s to master", _tmp73_);
-#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp75_ = _tmp74_;
-#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp75_);
-#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp75_);
-#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp73_);
-#line 583 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp76_ = old_photo;
-#line 583 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_revert_to_master (self, _tmp76_);
-#line 584 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4171 "PhotoMonitor.c"
- }
-#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 4175 "PhotoMonitor.c"
- {
-#line 588 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4179 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp77_;
- GEnumValue* _tmp78_;
-#line 591 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp77_ = old_state;
-#line 591 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp78_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp77_);
-#line 591 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:591: Unknown LibraryPhoto collection state %s", (_tmp78_ != NULL) ? _tmp78_->value_name : NULL);
-#line 4191 "PhotoMonitor.c"
- }
- }
-#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp79_ = new_state;
-#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp79_) {
-#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 4204 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp80_;
- gchar* _tmp81_;
- gchar* _tmp82_;
- gchar* _tmp83_;
- gchar* _tmp84_;
- LibraryPhoto* _tmp85_;
-#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp80_ = new_photo;
-#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp81_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_DATA_OBJECT, DataObject));
-#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp82_ = _tmp81_;
-#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp83_ = g_strdup_printf ("Will reimport master file for %s", _tmp82_);
-#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp84_ = _tmp83_;
-#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp84_);
-#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp84_);
-#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp82_);
-#line 599 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp85_ = new_photo;
-#line 599 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_master (self, _tmp85_);
-#line 600 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4234 "PhotoMonitor.c"
- }
-#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 4238 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp86_;
- gchar* _tmp87_;
- gchar* _tmp88_;
- gchar* _tmp89_;
- gchar* _tmp90_;
- LibraryPhoto* _tmp91_;
-#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp86_ = new_photo;
-#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp87_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_DATA_OBJECT, DataObject));
-#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp88_ = _tmp87_;
-#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp89_ = g_strdup_printf ("Will reimport editable file for %s", _tmp88_);
-#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp90_ = _tmp89_;
-#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp90_);
-#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp90_);
-#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp88_);
-#line 604 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp91_ = new_photo;
-#line 604 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_editable (self, _tmp91_);
-#line 605 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4268 "PhotoMonitor.c"
- }
-#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 4272 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp92_;
- gchar* _tmp93_;
- gchar* _tmp94_;
- gchar* _tmp95_;
- gchar* _tmp96_;
- LibraryPhoto* _tmp97_;
-#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp92_ = new_photo;
-#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp93_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, TYPE_DATA_OBJECT, DataObject));
-#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp94_ = _tmp93_;
-#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp95_ = g_strdup_printf ("Will reimport raw development file for %s", _tmp94_);
-#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp96_ = _tmp95_;
-#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp96_);
-#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp96_);
-#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp94_);
-#line 609 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp97_ = new_photo;
-#line 609 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_raw_developments (self, _tmp97_);
-#line 610 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4302 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp98_;
- GEnumValue* _tmp99_;
-#line 613 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp98_ = new_state;
-#line 613 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp99_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp98_);
-#line 613 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:613: Unknown LibraryPhoto collection state %s", (_tmp99_ != NULL) ? _tmp99_->value_name : NULL);
-#line 4314 "PhotoMonitor.c"
- }
- }
- }
- }
- }
-#line 617 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = TRUE;
-#line 617 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (new_photo);
-#line 617 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (old_photo);
-#line 617 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4328 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_monitor_real_notify_file_altered (MediaMonitor* base,
- GFile* file)
-{
- PhotoMonitor * self;
- gboolean result = FALSE;
- LibraryPhotoSourceCollectionState state = 0;
- LibraryPhoto* photo = NULL;
- LibraryPhotoSourceCollectionState _tmp0_ = 0;
- LibraryPhoto* _tmp1_;
- LibraryPhoto* _tmp2_;
- LibraryPhotoSourceCollectionState _tmp3_;
-#line 620 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 620 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 622 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_);
-#line 622 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 622 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp1_;
-#line 623 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = photo;
-#line 623 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 624 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = FALSE;
-#line 624 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 624 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4364 "PhotoMonitor.c"
- }
-#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = state;
-#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp3_) {
-#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 4376 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- LibraryPhoto* _tmp9_;
- LibraryPhoto* _tmp10_;
-#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = photo;
-#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = g_strdup_printf ("Will reimport master for %s", _tmp6_);
-#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = _tmp7_;
-#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp8_);
-#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp8_);
-#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp6_);
-#line 631 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = photo;
-#line 631 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_master (self, _tmp9_);
-#line 632 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = photo;
-#line 632 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MONITORABLE, Monitorable), TRUE);
-#line 633 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4411 "PhotoMonitor.c"
- }
-#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 4415 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- LibraryPhoto* _tmp16_;
- LibraryPhoto* _tmp17_;
-#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = photo;
-#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject));
-#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = _tmp12_;
-#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = g_strdup_printf ("Will reimport editable for %s", _tmp13_);
-#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = _tmp14_;
-#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp15_);
-#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp15_);
-#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp13_);
-#line 637 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = photo;
-#line 637 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_editable (self, _tmp16_);
-#line 638 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = photo;
-#line 638 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file_in_alteration (self, _tmp17_, TRUE);
-#line 639 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4450 "PhotoMonitor.c"
- }
-#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 4454 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- LibraryPhoto* _tmp23_;
- LibraryPhoto* _tmp24_;
-#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = photo;
-#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_OBJECT, DataObject));
-#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = _tmp19_;
-#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = g_strdup_printf ("Will reimport raw development for %s", _tmp20_);
-#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = _tmp21_;
-#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp22_);
-#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp22_);
-#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp20_);
-#line 643 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = photo;
-#line 643 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_reimport_raw_developments (self, _tmp23_);
-#line 644 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = photo;
-#line 644 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file_in_alteration (self, _tmp24_, TRUE);
-#line 645 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4489 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp25_;
- GEnumValue* _tmp26_;
-#line 648 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = state;
-#line 648 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp25_);
-#line 648 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:648: Unknown LibraryPhoto collection state %s", (_tmp26_ != NULL) ? _tmp26_->value_name : NULL);
-#line 4501 "PhotoMonitor.c"
- }
- }
-#line 651 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = TRUE;
-#line 651 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 651 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4510 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_monitor_real_notify_file_attributes_altered (MediaMonitor* base,
- GFile* file)
-{
- PhotoMonitor * self;
- gboolean result = FALSE;
- LibraryPhotoSourceCollectionState state = 0;
- LibraryPhoto* photo = NULL;
- LibraryPhotoSourceCollectionState _tmp0_ = 0;
- LibraryPhoto* _tmp1_;
- LibraryPhoto* _tmp2_;
- LibraryPhotoSourceCollectionState _tmp3_;
-#line 654 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 654 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 656 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_);
-#line 656 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 656 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp1_;
-#line 657 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = photo;
-#line 657 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 658 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = FALSE;
-#line 658 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 658 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4546 "PhotoMonitor.c"
- }
-#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = state;
-#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp3_) {
-#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 4556 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- LibraryPhoto* _tmp9_;
- LibraryPhoto* _tmp10_;
-#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = photo;
-#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = g_strdup_printf ("Will update master file info for %s", _tmp6_);
-#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = _tmp7_;
-#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp8_);
-#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp8_);
-#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp6_);
-#line 664 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = photo;
-#line 664 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_info_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MONITORABLE, Monitorable));
-#line 665 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = photo;
-#line 665 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MONITORABLE, Monitorable), TRUE);
-#line 666 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4591 "PhotoMonitor.c"
- }
-#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 4595 "PhotoMonitor.c"
- {
- gchar* _tmp11_;
- gchar* _tmp12_;
- LibraryPhotoSourceCollectionState _tmp13_;
- GEnumValue* _tmp14_;
- LibraryPhoto* _tmp15_;
-#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = g_file_get_path (file);
-#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = _tmp11_;
-#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = state;
-#line 671 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp13_);
-#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_warning ("PhotoMonitor.vala:670: File %s attributes altered in %s state", _tmp12_, (_tmp14_ != NULL) ? _tmp14_->value_name : NULL);
-#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp12_);
-#line 672 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = photo;
-#line 672 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MONITORABLE, Monitorable), TRUE);
-#line 673 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4620 "PhotoMonitor.c"
- }
-#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 4624 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- LibraryPhoto* _tmp21_;
- LibraryPhoto* _tmp22_;
-#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = photo;
-#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
-#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = _tmp17_;
-#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = g_strdup_printf ("Will update editable file info for %s", _tmp18_);
-#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = _tmp19_;
-#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp20_);
-#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp20_);
-#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp18_);
-#line 677 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = photo;
-#line 677 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file_info_altered (self, _tmp21_);
-#line 678 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = photo;
-#line 678 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file_in_alteration (self, _tmp22_, TRUE);
-#line 679 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4659 "PhotoMonitor.c"
- }
-#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 4663 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- LibraryPhoto* _tmp28_;
- LibraryPhoto* _tmp29_;
-#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = photo;
-#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_OBJECT, DataObject));
-#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = _tmp24_;
-#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = g_strdup_printf ("Will update raw development file info for %s", _tmp25_);
-#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = _tmp26_;
-#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp27_);
-#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp27_);
-#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp25_);
-#line 683 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = photo;
-#line 683 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file_info_altered (self, _tmp28_);
-#line 684 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp29_ = photo;
-#line 684 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file_in_alteration (self, _tmp29_, TRUE);
-#line 685 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4698 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp30_;
- GEnumValue* _tmp31_;
-#line 688 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp30_ = state;
-#line 688 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp31_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp30_);
-#line 688 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:688: Unknown LibraryPhoto collection state %s", (_tmp31_ != NULL) ? _tmp31_->value_name : NULL);
-#line 4710 "PhotoMonitor.c"
- }
- }
-#line 691 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = TRUE;
-#line 691 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 691 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4719 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_monitor_real_notify_file_alteration_completed (MediaMonitor* base,
- GFile* file,
- GFileInfo* info)
-{
- PhotoMonitor * self;
- gboolean result = FALSE;
- LibraryPhotoSourceCollectionState state = 0;
- LibraryPhoto* photo = NULL;
- LibraryPhotoSourceCollectionState _tmp0_ = 0;
- LibraryPhoto* _tmp1_;
- LibraryPhoto* _tmp2_;
- LibraryPhotoSourceCollectionState _tmp3_;
-#line 694 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 694 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 694 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 696 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_);
-#line 696 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 696 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp1_;
-#line 697 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = photo;
-#line 697 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 698 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = FALSE;
-#line 698 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 698 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4758 "PhotoMonitor.c"
- }
-#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = state;
-#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp3_) {
-#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 4770 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp4_;
-#line 704 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = photo;
-#line 704 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_alterations_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable), info);
-#line 705 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4779 "PhotoMonitor.c"
- }
-#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 4783 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp5_;
-#line 708 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = photo;
-#line 708 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file_alterations_completed (self, _tmp5_, info);
-#line 709 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4792 "PhotoMonitor.c"
- }
-#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 4796 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp6_;
-#line 712 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = photo;
-#line 712 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file_alterations_completed (self, _tmp6_);
-#line 713 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4805 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp7_;
- GEnumValue* _tmp8_;
-#line 716 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = state;
-#line 716 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp7_);
-#line 716 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:716: Unknown LibraryPhoto collection state %s", (_tmp8_ != NULL) ? _tmp8_->value_name : NULL);
-#line 4817 "PhotoMonitor.c"
- }
- }
-#line 719 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = TRUE;
-#line 719 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 719 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4826 "PhotoMonitor.c"
-}
-
-
-static gboolean
-photo_monitor_real_notify_file_deleted (MediaMonitor* base,
- GFile* file)
-{
- PhotoMonitor * self;
- gboolean result = FALSE;
- LibraryPhotoSourceCollectionState state = 0;
- LibraryPhoto* photo = NULL;
- LibraryPhotoSourceCollectionState _tmp0_ = 0;
- LibraryPhoto* _tmp1_;
- LibraryPhoto* _tmp2_;
- LibraryPhotoSourceCollectionState _tmp3_;
-#line 722 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 722 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 724 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_);
-#line 724 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- state = _tmp0_;
-#line 724 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp1_;
-#line 725 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = photo;
-#line 725 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 726 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = FALSE;
-#line 726 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 726 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 4862 "PhotoMonitor.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = state;
-#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- switch (_tmp3_) {
-#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 4870 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- LibraryPhoto* _tmp9_;
- LibraryPhoto* _tmp10_;
-#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = photo;
-#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = g_strdup_printf ("Will mark %s offline", _tmp6_);
-#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = _tmp7_;
-#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp8_);
-#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp8_);
-#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp6_);
-#line 731 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = photo;
-#line 731 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MONITORABLE, Monitorable));
-#line 732 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = photo;
-#line 732 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MONITORABLE, Monitorable), FALSE);
-#line 733 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4905 "PhotoMonitor.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 4911 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp11_;
-#line 738 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = photo;
-#line 738 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MONITORABLE, Monitorable), FALSE);
-#line 739 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4920 "PhotoMonitor.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 4924 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- LibraryPhoto* _tmp17_;
- LibraryPhoto* _tmp18_;
-#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = photo;
-#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
-#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = _tmp13_;
-#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = g_strdup_printf ("Will revert %s to master", _tmp14_);
-#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = _tmp15_;
-#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp16_);
-#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp16_);
-#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp14_);
-#line 743 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = photo;
-#line 743 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_revert_to_master (self, _tmp17_);
-#line 744 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = photo;
-#line 744 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file_in_alteration (self, _tmp18_, FALSE);
-#line 745 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 4959 "PhotoMonitor.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 4963 "PhotoMonitor.c"
- {
- LibraryPhoto* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- LibraryPhoto* _tmp24_;
- LibraryPhoto* _tmp25_;
- LibraryPhoto* _tmp26_;
-#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = photo;
-#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_OBJECT, DataObject));
-#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = _tmp20_;
-#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = g_strdup_printf ("Will revert %s to master", _tmp21_);
-#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = _tmp22_;
-#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp23_);
-#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp23_);
-#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp21_);
-#line 749 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = photo;
-#line 749 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_revert_to_master (self, _tmp24_);
-#line 750 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = photo;
-#line 750 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_editable_file_in_alteration (self, _tmp25_, FALSE);
-#line 751 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = photo;
-#line 751 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_update_raw_development_file_in_alteration (self, _tmp26_, FALSE);
-#line 752 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5003 "PhotoMonitor.c"
- }
- default:
- {
- LibraryPhotoSourceCollectionState _tmp27_;
- GEnumValue* _tmp28_;
-#line 755 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = state;
-#line 755 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp27_);
-#line 755 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_error ("PhotoMonitor.vala:755: Unknown LibraryPhoto collection state %s", (_tmp28_ != NULL) ? _tmp28_->value_name : NULL);
-#line 5015 "PhotoMonitor.c"
- }
- }
-#line 758 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = TRUE;
-#line 758 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 758 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 5024 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_real_on_media_source_destroyed (MediaMonitor* base,
- DataSource* source)
-{
- PhotoMonitor * self;
-#line 761 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 761 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 762 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- MEDIA_MONITOR_CLASS (photo_monitor_parent_class)->on_media_source_destroyed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), source);
-#line 764 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_cancel_reimports (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 5041 "PhotoMonitor.c"
-}
-
-
-static LibraryPhoto*
-photo_monitor_get_photo_state_by_file (PhotoMonitor* self,
- GFile* file,
- LibraryPhotoSourceCollectionState* state)
-{
- LibraryPhotoSourceCollectionState _vala_state = 0;
- LibraryPhoto* result = NULL;
- GFile* real_file = NULL;
- GFile* _tmp58_ = NULL;
- GFile* _tmp59_;
- LibraryPhotoSourceCollection* _tmp60_;
- LibraryPhotoSourceCollectionState _tmp61_ = 0;
- LibraryPhoto* _tmp62_;
-#line 767 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL);
-#line 767 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 768 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- real_file = NULL;
-#line 769 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (media_monitor_has_pending_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor))) {
-#line 5066 "PhotoMonitor.c"
- {
- GeeIterator* _monitorable_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = media_monitor_get_monitorables (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor));
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_it = _tmp3_;
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 5087 "PhotoMonitor.c"
- GeeIterator* _tmp4_;
- Monitorable* monitorable = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- LibraryPhoto* photo = NULL;
- Monitorable* _tmp7_;
- LibraryPhoto* _tmp8_;
- PhotoUpdates* updates = NULL;
- LibraryPhoto* _tmp9_;
- PhotoUpdates* _tmp10_;
- PhotoUpdates* _tmp11_;
- gboolean _tmp12_ = FALSE;
- PhotoUpdates* _tmp13_;
- GFile* _tmp14_;
- GFile* _tmp15_;
- gboolean _tmp16_;
- gboolean _tmp22_ = FALSE;
- PhotoUpdates* _tmp23_;
- GFile* _tmp24_;
- GFile* _tmp25_;
- gboolean _tmp26_;
- PhotoUpdates* _tmp33_;
- GeeCollection* _tmp34_;
- GeeCollection* _tmp35_;
- gboolean _tmp36_;
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = _monitorable_it;
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5119 "PhotoMonitor.c"
- }
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _monitorable_it;
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- monitorable = (Monitorable*) _tmp6_;
-#line 771 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = monitorable;
-#line 771 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 771 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = _tmp8_;
-#line 773 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = photo;
-#line 773 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = photo_monitor_get_existing_photo_updates (self, _tmp9_);
-#line 773 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- updates = _tmp10_;
-#line 774 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = updates;
-#line 774 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp11_ == NULL) {
-#line 775 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 775 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 775 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 775 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- continue;
-#line 5151 "PhotoMonitor.c"
- }
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = updates;
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = _tmp14_;
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = _tmp15_ != NULL;
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp15_);
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp16_) {
-#line 5165 "PhotoMonitor.c"
- PhotoUpdates* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = updates;
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = _tmp18_;
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = g_file_equal (_tmp19_, file);
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp19_);
-#line 5179 "PhotoMonitor.c"
- } else {
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = FALSE;
-#line 5183 "PhotoMonitor.c"
- }
-#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp12_) {
-#line 5187 "PhotoMonitor.c"
- LibraryPhoto* _tmp20_;
- GFile* _tmp21_;
-#line 778 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = photo;
-#line 778 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 778 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (real_file);
-#line 778 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- real_file = _tmp21_;
-#line 780 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 780 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 780 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 780 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5206 "PhotoMonitor.c"
- }
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = updates;
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = photo_updates_get_editable_file (_tmp23_);
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = _tmp24_;
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = _tmp25_ != NULL;
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp25_);
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp26_) {
-#line 5220 "PhotoMonitor.c"
- PhotoUpdates* _tmp27_;
- GFile* _tmp28_;
- GFile* _tmp29_;
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = updates;
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = photo_updates_get_editable_file (_tmp27_);
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp29_ = _tmp28_;
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = g_file_equal (_tmp29_, file);
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp29_);
-#line 5234 "PhotoMonitor.c"
- } else {
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = FALSE;
-#line 5238 "PhotoMonitor.c"
- }
-#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp22_) {
-#line 5242 "PhotoMonitor.c"
- LibraryPhoto* _tmp30_;
- GFile* _tmp31_;
- GFile* _tmp32_;
-#line 784 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp30_ = photo;
-#line 784 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp31_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_PHOTO, Photo));
-#line 784 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (real_file);
-#line 784 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- real_file = _tmp31_;
-#line 788 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp32_ = real_file;
-#line 788 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp32_ == NULL) {
-#line 789 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE;
-#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = photo;
-#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_monitorable_it);
-#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (real_file);
-#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (state) {
-#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *state = _vala_state;
-#line 5274 "PhotoMonitor.c"
- }
-#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 5278 "PhotoMonitor.c"
- }
-#line 794 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 794 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 794 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 794 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5288 "PhotoMonitor.c"
- }
-#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp33_ = updates;
-#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp34_ = photo_updates_get_raw_developer_files (_tmp33_);
-#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp35_ = _tmp34_;
-#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp36_ = _tmp35_ != NULL;
-#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp35_);
-#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp36_) {
-#line 5302 "PhotoMonitor.c"
- gboolean found = FALSE;
- gboolean _tmp46_;
-#line 798 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- found = FALSE;
-#line 5307 "PhotoMonitor.c"
- {
- GeeIterator* _raw_it = NULL;
- PhotoUpdates* _tmp37_;
- GeeCollection* _tmp38_;
- GeeCollection* _tmp39_;
- GeeIterator* _tmp40_;
- GeeIterator* _tmp41_;
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp37_ = updates;
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp38_ = photo_updates_get_raw_developer_files (_tmp37_);
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp39_ = _tmp38_;
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp40_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp41_ = _tmp40_;
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp39_);
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _raw_it = _tmp41_;
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 5331 "PhotoMonitor.c"
- GeeIterator* _tmp42_;
- GFile* raw = NULL;
- GeeIterator* _tmp43_;
- gpointer _tmp44_;
- GFile* _tmp45_;
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp42_ = _raw_it;
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp42_)) {
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5343 "PhotoMonitor.c"
- }
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp43_ = _raw_it;
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp44_ = gee_iterator_get (_tmp43_);
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- raw = (GFile*) _tmp44_;
-#line 800 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp45_ = raw;
-#line 800 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (g_file_equal (_tmp45_, file)) {
-#line 801 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- found = TRUE;
-#line 803 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (raw);
-#line 803 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5361 "PhotoMonitor.c"
- }
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (raw);
-#line 5365 "PhotoMonitor.c"
- }
-#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_raw_it);
-#line 5369 "PhotoMonitor.c"
- }
-#line 807 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp46_ = found;
-#line 807 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp46_) {
-#line 5375 "PhotoMonitor.c"
- GeeCollection* developed = NULL;
- LibraryPhoto* _tmp47_;
- GeeCollection* _tmp48_;
- GeeCollection* _tmp49_;
-#line 808 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp47_ = photo;
-#line 808 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp48_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PHOTO, Photo));
-#line 808 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- developed = _tmp48_;
-#line 809 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp49_ = developed;
-#line 809 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp49_ != NULL) {
-#line 5390 "PhotoMonitor.c"
- {
- GeeIterator* _f_it = NULL;
- GeeCollection* _tmp50_;
- GeeIterator* _tmp51_;
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp50_ = developed;
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp51_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _f_it = _tmp51_;
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 5403 "PhotoMonitor.c"
- GeeIterator* _tmp52_;
- GFile* f = NULL;
- GeeIterator* _tmp53_;
- gpointer _tmp54_;
- GFile* _tmp55_;
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp52_ = _f_it;
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp52_)) {
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5415 "PhotoMonitor.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp53_ = _f_it;
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp54_ = gee_iterator_get (_tmp53_);
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- f = (GFile*) _tmp54_;
-#line 811 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp55_ = f;
-#line 811 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (g_file_equal (_tmp55_, file)) {
-#line 5427 "PhotoMonitor.c"
- GFile* _tmp56_;
- GFile* _tmp57_;
-#line 812 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp56_ = f;
-#line 812 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp57_ = _g_object_ref0 (_tmp56_);
-#line 812 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (real_file);
-#line 812 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- real_file = _tmp57_;
-#line 813 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER;
-#line 815 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (f);
-#line 815 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5444 "PhotoMonitor.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (f);
-#line 5448 "PhotoMonitor.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_f_it);
-#line 5452 "PhotoMonitor.c"
- }
- }
-#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (developed);
-#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 5465 "PhotoMonitor.c"
- }
- }
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 5474 "PhotoMonitor.c"
- }
-#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_monitorable_it);
-#line 5478 "PhotoMonitor.c"
- }
- }
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp59_ = real_file;
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp58_ = _tmp59_;
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp58_ == NULL) {
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp58_ = file;
-#line 5489 "PhotoMonitor.c"
- }
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp60_ = library_photo_global;
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp62_ = library_photo_source_collection_get_state_by_file (_tmp60_, _tmp58_, &_tmp61_);
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_state = _tmp61_;
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp62_;
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (real_file);
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (state) {
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *state = _vala_state;
-#line 5505 "PhotoMonitor.c"
- }
-#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 5509 "PhotoMonitor.c"
-}
-
-
-PhotoUpdates*
-photo_monitor_fetch_photo_updates (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* result = NULL;
- MonitorableUpdates* _tmp0_;
-#line 830 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL);
-#line 830 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 831 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = media_monitor_fetch_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable));
-#line 831 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_UPDATES, PhotoUpdates);
-#line 831 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 5529 "PhotoMonitor.c"
-}
-
-
-PhotoUpdates*
-photo_monitor_get_existing_photo_updates (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* result = NULL;
- MonitorableUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 834 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL);
-#line 834 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = media_monitor_get_existing_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable));
-#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO_UPDATES) ? ((PhotoUpdates*) _tmp0_) : NULL;
-#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp1_ == NULL) {
-#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp0_);
-#line 5552 "PhotoMonitor.c"
- }
-#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp1_;
-#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 5558 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_reimport_master (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
- GeeHashMap* _tmp2_;
-#line 838 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 838 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 839 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 839 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 839 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_reimport_master (_tmp1_, TRUE);
-#line 839 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 842 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = self->priv->master_reimport_pending;
-#line 842 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) {
-#line 5585 "PhotoMonitor.c"
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
- PhotoMonitorReimportMasterJob* _tmp5_;
-#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = self->priv->master_reimport_pending;
-#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = (PhotoMonitorReimportMasterJob*) _tmp4_;
-#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (_tmp5_);
-#line 5599 "PhotoMonitor.c"
- }
-}
-
-
-void
-photo_monitor_update_reimport_editable (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
- GeeHashMap* _tmp2_;
-#line 846 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 846 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 847 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 847 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 847 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_reimport_editable (_tmp1_, TRUE);
-#line 847 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 850 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = self->priv->editable_reimport_pending;
-#line 850 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) {
-#line 5627 "PhotoMonitor.c"
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
- PhotoMonitorReimportEditableJob* _tmp5_;
-#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = self->priv->editable_reimport_pending;
-#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = (PhotoMonitorReimportEditableJob*) _tmp4_;
-#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (_tmp5_);
-#line 5641 "PhotoMonitor.c"
- }
-}
-
-
-void
-photo_monitor_update_reimport_raw_developments (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
- GeeHashMap* _tmp2_;
-#line 854 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 854 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 855 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 855 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 855 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_reimport_raw_developments (_tmp1_, TRUE);
-#line 855 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 858 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = self->priv->raw_developments_reimport_pending;
-#line 858 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) {
-#line 5669 "PhotoMonitor.c"
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp5_;
-#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = self->priv->raw_developments_reimport_pending;
-#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = (PhotoMonitorReimportRawDevelopmentJob*) _tmp4_;
-#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (_tmp5_);
-#line 5683 "PhotoMonitor.c"
- }
-}
-
-
-GFile*
-photo_monitor_get_editable_file (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- GFile* result = NULL;
- PhotoUpdates* updates = NULL;
- PhotoUpdates* _tmp0_;
- GFile* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- PhotoUpdates* _tmp3_;
-#line 862 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL);
-#line 862 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 863 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_get_existing_photo_updates (self, photo);
-#line 863 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- updates = _tmp0_;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = updates;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp3_ != NULL) {
-#line 5710 "PhotoMonitor.c"
- PhotoUpdates* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = updates;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = photo_updates_get_editable_file (_tmp4_);
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _tmp6_ != NULL;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp6_);
-#line 5724 "PhotoMonitor.c"
- } else {
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = FALSE;
-#line 5728 "PhotoMonitor.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_) {
-#line 5732 "PhotoMonitor.c"
- PhotoUpdates* _tmp7_;
- GFile* _tmp8_;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = updates;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = photo_updates_get_editable_file (_tmp7_);
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp8_;
-#line 5743 "PhotoMonitor.c"
- } else {
- GFile* _tmp9_;
-#line 866 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 866 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 866 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp9_;
-#line 5752 "PhotoMonitor.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp1_;
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 5760 "PhotoMonitor.c"
-}
-
-
-GeeCollection*
-photo_monitor_get_raw_development_files (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- GeeCollection* result = NULL;
- PhotoUpdates* updates = NULL;
- PhotoUpdates* _tmp0_;
- GeeCollection* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- PhotoUpdates* _tmp3_;
-#line 869 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL);
-#line 869 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 870 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_get_existing_photo_updates (self, photo);
-#line 870 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- updates = _tmp0_;
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = updates;
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp3_ != NULL) {
-#line 5786 "PhotoMonitor.c"
- PhotoUpdates* _tmp4_;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = updates;
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = photo_updates_get_raw_developer_files (_tmp4_);
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = _tmp5_;
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _tmp6_ != NULL;
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp6_);
-#line 5800 "PhotoMonitor.c"
- } else {
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = FALSE;
-#line 5804 "PhotoMonitor.c"
- }
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp2_) {
-#line 5808 "PhotoMonitor.c"
- PhotoUpdates* _tmp7_;
- GeeCollection* _tmp8_;
-#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = updates;
-#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = photo_updates_get_raw_developer_files (_tmp7_);
-#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp8_;
-#line 5819 "PhotoMonitor.c"
- } else {
- GeeCollection* _tmp9_;
-#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp9_;
-#line 5828 "PhotoMonitor.c"
- }
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- result = _tmp1_;
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return result;
-#line 5836 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_editable_file (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFile* file)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 876 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 876 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 876 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 877 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 877 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 877 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_editable_file (_tmp1_, file);
-#line 877 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 5861 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_editable_file_info_altered (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 880 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 880 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 881 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 881 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 881 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_editable_file_info_altered (_tmp1_, TRUE);
-#line 881 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 5883 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_raw_development_file (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFile* file)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 884 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 884 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 884 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 885 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 885 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 885 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_add_raw_developer_file (_tmp1_, file);
-#line 885 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 5908 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_raw_development_file_info_altered (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 888 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 888 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 889 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 889 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 889 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_raw_developer_file_info_altered (_tmp1_, TRUE);
-#line 889 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 5930 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_editable_file_in_alteration (PhotoMonitor* self,
- LibraryPhoto* photo,
- gboolean in_alteration)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 892 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 892 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 893 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 893 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 893 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_editable_in_alteration (_tmp1_, in_alteration);
-#line 893 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 5953 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_editable_file_alterations_completed (PhotoMonitor* self,
- LibraryPhoto* photo,
- GFileInfo* info)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
- PhotoUpdates* _tmp2_;
- PhotoUpdates* _tmp3_;
-#line 896 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 896 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 896 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 897 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 897 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 897 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_editable_file_info (_tmp1_, info);
-#line 897 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 898 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 898 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 898 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_editable_in_alteration (_tmp3_, FALSE);
-#line 898 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp3_);
-#line 5988 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_raw_development_file_in_alteration (PhotoMonitor* self,
- LibraryPhoto* photo,
- gboolean in_alteration)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 901 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 901 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 902 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 902 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 902 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_raw_development_in_alteration (_tmp1_, in_alteration);
-#line 902 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 6011 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_raw_development_file_alterations_completed (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 905 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 905 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 906 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 906 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 906 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_raw_development_in_alteration (_tmp1_, FALSE);
-#line 906 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 6033 "PhotoMonitor.c"
-}
-
-
-void
-photo_monitor_update_revert_to_master (PhotoMonitor* self,
- LibraryPhoto* photo)
-{
- PhotoUpdates* _tmp0_;
- PhotoUpdates* _tmp1_;
-#line 909 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 909 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 910 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = photo_monitor_fetch_photo_updates (self, photo);
-#line 910 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 910 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_revert_to_master (_tmp1_, TRUE);
-#line 910 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 6055 "PhotoMonitor.c"
-}
-
-
-static gpointer
-_monitorable_updates_ref0 (gpointer self)
-{
-#line 930 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self ? monitorable_updates_ref (self) : NULL;
-#line 6064 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_real_process_updates (MediaMonitor* base,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error)
-{
- PhotoMonitor * self;
- GeeMap* set_editable_file = NULL;
- GeeMap* set_editable_file_info = NULL;
- GeeMap* set_raw_developer_files = NULL;
- GeeArrayList* revert_to_master = NULL;
- GeeArrayList* reimport_master = NULL;
- GeeArrayList* reimport_editable = NULL;
- GeeArrayList* reimport_raw_developments = NULL;
- gint reimport_job_count = 0;
- GeeMap* _tmp82_;
- GeeMap* _tmp90_;
- GeeArrayList* _tmp98_;
- GeeArrayList* _tmp116_;
- GeeArrayList* _tmp142_;
- GeeArrayList* _tmp168_;
- GError * _inner_error_ = NULL;
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (GEE_IS_COLLECTION (all_updates));
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
-#line 915 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- MEDIA_MONITOR_CLASS (photo_monitor_parent_class)->process_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), all_updates, controller, op_count, &_inner_error_);
-#line 915 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 915 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_propagate_error (error, _inner_error_);
-#line 915 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 6105 "PhotoMonitor.c"
- }
-#line 917 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- set_editable_file = NULL;
-#line 918 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- set_editable_file_info = NULL;
-#line 919 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- set_raw_developer_files = NULL;
-#line 920 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- revert_to_master = NULL;
-#line 921 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- reimport_master = NULL;
-#line 922 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- reimport_editable = NULL;
-#line 923 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- reimport_raw_developments = NULL;
-#line 924 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- reimport_job_count = 0;
-#line 6123 "PhotoMonitor.c"
- {
- GeeIterator* _monitorable_updates_it = NULL;
- GeeIterator* _tmp0_;
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (all_updates, GEE_TYPE_ITERABLE, GeeIterable));
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_it = _tmp0_;
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 6133 "PhotoMonitor.c"
- GeeIterator* _tmp1_;
- MonitorableUpdates* monitorable_updates = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- PhotoUpdates* updates = NULL;
- MonitorableUpdates* _tmp4_;
- PhotoUpdates* _tmp5_;
- PhotoUpdates* _tmp6_;
- PhotoUpdates* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- gboolean _tmp10_;
- PhotoUpdates* _tmp21_;
- GFileInfo* _tmp22_;
- GFileInfo* _tmp23_;
- gboolean _tmp24_;
- PhotoUpdates* _tmp35_;
- GeeCollection* _tmp36_;
- GeeCollection* _tmp37_;
- gboolean _tmp38_;
- PhotoUpdates* _tmp49_;
- gboolean _tmp60_ = FALSE;
- PhotoUpdates* _tmp61_;
- gboolean _tmp71_ = FALSE;
- PhotoUpdates* _tmp72_;
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _monitorable_updates_it;
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 6165 "PhotoMonitor.c"
- }
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _monitorable_updates_it;
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- monitorable_updates = (MonitorableUpdates*) _tmp3_;
-#line 927 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if ((*op_count) >= MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE) {
-#line 928 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (monitorable_updates);
-#line 928 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 6179 "PhotoMonitor.c"
- }
-#line 930 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = monitorable_updates;
-#line 930 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _monitorable_updates_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PHOTO_UPDATES) ? ((PhotoUpdates*) _tmp4_) : NULL);
-#line 930 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- updates = _tmp5_;
-#line 931 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = updates;
-#line 931 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp6_ == NULL) {
-#line 932 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 932 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (monitorable_updates);
-#line 932 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- continue;
-#line 6197 "PhotoMonitor.c"
- }
-#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = updates;
-#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = photo_updates_get_editable_file (_tmp7_);
-#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = _tmp8_;
-#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = _tmp9_ != NULL;
-#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp9_);
-#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp10_) {
-#line 6211 "PhotoMonitor.c"
- GeeMap* _tmp11_;
- GeeMap* _tmp13_;
- PhotoUpdates* _tmp14_;
- LibraryPhoto* _tmp15_;
- PhotoUpdates* _tmp16_;
- GFile* _tmp17_;
- GFile* _tmp18_;
- PhotoUpdates* _tmp19_;
- gint _tmp20_;
-#line 935 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = set_editable_file;
-#line 935 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp11_ == NULL) {
-#line 6225 "PhotoMonitor.c"
- GeeHashMap* _tmp12_;
-#line 936 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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"
- set_editable_file = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_MAP, GeeMap);
-#line 6233 "PhotoMonitor.c"
- }
-#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = set_editable_file;
-#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = updates;
-#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = _tmp14_->photo;
-#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = updates;
-#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = photo_updates_get_editable_file (_tmp16_);
-#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = _tmp17_;
-#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_map_set (_tmp13_, _tmp15_, _tmp18_);
-#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp18_);
-#line 939 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = updates;
-#line 939 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_editable_file (_tmp19_, NULL);
-#line 940 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = *op_count;
-#line 940 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *op_count = _tmp20_ + 1;
-#line 6259 "PhotoMonitor.c"
- }
-#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = updates;
-#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = photo_updates_get_editable_file_info (_tmp21_);
-#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = _tmp22_;
-#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = _tmp23_ != NULL;
-#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp23_);
-#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp24_) {
-#line 6273 "PhotoMonitor.c"
- GeeMap* _tmp25_;
- GeeMap* _tmp27_;
- PhotoUpdates* _tmp28_;
- LibraryPhoto* _tmp29_;
- PhotoUpdates* _tmp30_;
- GFileInfo* _tmp31_;
- GFileInfo* _tmp32_;
- PhotoUpdates* _tmp33_;
- gint _tmp34_;
-#line 944 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = set_editable_file_info;
-#line 944 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp25_ == NULL) {
-#line 6287 "PhotoMonitor.c"
- GeeHashMap* _tmp26_;
-#line 945 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 945 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file_info);
-#line 945 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- set_editable_file_info = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_MAP, GeeMap);
-#line 6295 "PhotoMonitor.c"
- }
-#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = set_editable_file_info;
-#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = updates;
-#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp29_ = _tmp28_->photo;
-#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp30_ = updates;
-#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp31_ = photo_updates_get_editable_file_info (_tmp30_);
-#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp32_ = _tmp31_;
-#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_map_set (_tmp27_, _tmp29_, _tmp32_);
-#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp32_);
-#line 948 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp33_ = updates;
-#line 948 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_editable_file_info (_tmp33_, NULL);
-#line 949 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp34_ = *op_count;
-#line 949 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *op_count = _tmp34_ + 1;
-#line 6321 "PhotoMonitor.c"
- }
-#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp35_ = updates;
-#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp36_ = photo_updates_get_raw_developer_files (_tmp35_);
-#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp37_ = _tmp36_;
-#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp38_ = _tmp37_ != NULL;
-#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp37_);
-#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp38_) {
-#line 6335 "PhotoMonitor.c"
- GeeMap* _tmp39_;
- GeeMap* _tmp41_;
- PhotoUpdates* _tmp42_;
- LibraryPhoto* _tmp43_;
- PhotoUpdates* _tmp44_;
- GeeCollection* _tmp45_;
- GeeCollection* _tmp46_;
- PhotoUpdates* _tmp47_;
- gint _tmp48_;
-#line 953 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp39_ = set_raw_developer_files;
-#line 953 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp39_ == NULL) {
-#line 6349 "PhotoMonitor.c"
- GeeHashMap* _tmp40_;
-#line 954 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp40_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GEE_TYPE_COLLECTION, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 954 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_raw_developer_files);
-#line 954 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- set_raw_developer_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_MAP, GeeMap);
-#line 6357 "PhotoMonitor.c"
- }
-#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp41_ = set_raw_developer_files;
-#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp42_ = updates;
-#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp43_ = _tmp42_->photo;
-#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp44_ = updates;
-#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp45_ = photo_updates_get_raw_developer_files (_tmp44_);
-#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp46_ = _tmp45_;
-#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_map_set (_tmp41_, _tmp43_, _tmp46_);
-#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp46_);
-#line 957 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp47_ = updates;
-#line 957 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_clear_raw_developer_files (_tmp47_);
-#line 958 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp48_ = *op_count;
-#line 958 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *op_count = _tmp48_ + 1;
-#line 6383 "PhotoMonitor.c"
- }
-#line 961 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp49_ = updates;
-#line 961 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (photo_updates_is_revert_to_master (_tmp49_)) {
-#line 6389 "PhotoMonitor.c"
- GeeArrayList* _tmp50_;
- GeeArrayList* _tmp52_;
- gint _tmp53_;
- gint _tmp54_;
- gint _tmp59_;
-#line 962 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp50_ = revert_to_master;
-#line 962 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp50_ == NULL) {
-#line 6399 "PhotoMonitor.c"
- GeeArrayList* _tmp51_;
-#line 963 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp51_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 963 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (revert_to_master);
-#line 963 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- revert_to_master = _tmp51_;
-#line 6407 "PhotoMonitor.c"
- }
-#line 965 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp52_ = revert_to_master;
-#line 965 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp53_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 965 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp54_ = _tmp53_;
-#line 965 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp54_ < PHOTO_MONITOR_MAX_REVERTS_PER_CYCLE) {
-#line 6417 "PhotoMonitor.c"
- GeeArrayList* _tmp55_;
- PhotoUpdates* _tmp56_;
- LibraryPhoto* _tmp57_;
- PhotoUpdates* _tmp58_;
-#line 966 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp55_ = revert_to_master;
-#line 966 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp56_ = updates;
-#line 966 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp57_ = _tmp56_->photo;
-#line 966 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp57_);
-#line 967 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp58_ = updates;
-#line 967 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_revert_to_master (_tmp58_, FALSE);
-#line 6434 "PhotoMonitor.c"
- }
-#line 969 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp59_ = *op_count;
-#line 969 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *op_count = _tmp59_ + 1;
-#line 6440 "PhotoMonitor.c"
- }
-#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp61_ = updates;
-#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (photo_updates_is_reimport_master (_tmp61_)) {
-#line 6446 "PhotoMonitor.c"
- gint _tmp62_;
-#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp62_ = reimport_job_count;
-#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp60_ = _tmp62_ < PHOTO_MONITOR_MAX_REIMPORT_JOBS_PER_CYCLE;
-#line 6452 "PhotoMonitor.c"
- } else {
-#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp60_ = FALSE;
-#line 6456 "PhotoMonitor.c"
- }
-#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp60_) {
-#line 6460 "PhotoMonitor.c"
- GeeArrayList* _tmp63_;
- GeeArrayList* _tmp65_;
- PhotoUpdates* _tmp66_;
- LibraryPhoto* _tmp67_;
- PhotoUpdates* _tmp68_;
- gint _tmp69_;
- gint _tmp70_;
-#line 973 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp63_ = reimport_master;
-#line 973 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp63_ == NULL) {
-#line 6472 "PhotoMonitor.c"
- GeeArrayList* _tmp64_;
-#line 974 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp64_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 974 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_master);
-#line 974 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- reimport_master = _tmp64_;
-#line 6480 "PhotoMonitor.c"
- }
-#line 976 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp65_ = reimport_master;
-#line 976 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp66_ = updates;
-#line 976 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp67_ = _tmp66_->photo;
-#line 976 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp67_);
-#line 977 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp68_ = updates;
-#line 977 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_reimport_master (_tmp68_, FALSE);
-#line 978 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp69_ = reimport_job_count;
-#line 978 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- reimport_job_count = _tmp69_ + 1;
-#line 979 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp70_ = *op_count;
-#line 979 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *op_count = _tmp70_ + 1;
-#line 6502 "PhotoMonitor.c"
- }
-#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp72_ = updates;
-#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (photo_updates_is_reimport_editable (_tmp72_)) {
-#line 6508 "PhotoMonitor.c"
- gint _tmp73_;
-#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp73_ = reimport_job_count;
-#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp71_ = _tmp73_ < PHOTO_MONITOR_MAX_REIMPORT_JOBS_PER_CYCLE;
-#line 6514 "PhotoMonitor.c"
- } else {
-#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp71_ = FALSE;
-#line 6518 "PhotoMonitor.c"
- }
-#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp71_) {
-#line 6522 "PhotoMonitor.c"
- GeeArrayList* _tmp74_;
- GeeArrayList* _tmp76_;
- PhotoUpdates* _tmp77_;
- LibraryPhoto* _tmp78_;
- PhotoUpdates* _tmp79_;
- gint _tmp80_;
- gint _tmp81_;
-#line 983 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp74_ = reimport_editable;
-#line 983 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp74_ == NULL) {
-#line 6534 "PhotoMonitor.c"
- GeeArrayList* _tmp75_;
-#line 984 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp75_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 984 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_editable);
-#line 984 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- reimport_editable = _tmp75_;
-#line 6542 "PhotoMonitor.c"
- }
-#line 986 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp76_ = reimport_editable;
-#line 986 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp77_ = updates;
-#line 986 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp78_ = _tmp77_->photo;
-#line 986 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp78_);
-#line 987 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp79_ = updates;
-#line 987 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_updates_set_reimport_editable (_tmp79_, FALSE);
-#line 988 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp80_ = reimport_job_count;
-#line 988 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- reimport_job_count = _tmp80_ + 1;
-#line 989 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp81_ = *op_count;
-#line 989 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- *op_count = _tmp81_ + 1;
-#line 6564 "PhotoMonitor.c"
- }
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _monitorable_updates_unref0 (monitorable_updates);
-#line 6570 "PhotoMonitor.c"
- }
-#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_monitorable_updates_it);
-#line 6574 "PhotoMonitor.c"
- }
-#line 993 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp82_ = set_editable_file;
-#line 993 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp82_ != NULL) {
-#line 6580 "PhotoMonitor.c"
- GeeMap* _tmp83_;
- gint _tmp84_;
- gint _tmp85_;
- gchar* _tmp86_;
- gchar* _tmp87_;
-#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp83_ = set_editable_file;
-#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp84_ = gee_map_get_size (_tmp83_);
-#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp85_ = _tmp84_;
-#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp86_ = g_strdup_printf ("Changing editable file of %d photos", _tmp85_);
-#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp87_ = _tmp86_;
-#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp87_);
-#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp87_);
-#line 6600 "PhotoMonitor.c"
- {
- GeeMap* _tmp88_;
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp88_ = set_editable_file;
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_set_many_editable_file (_tmp88_, &_inner_error_);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6611 "PhotoMonitor.c"
- goto __catch595_database_error;
- }
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_raw_developments);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_editable);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_master);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (revert_to_master);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_raw_developer_files);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file_info);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.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 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 6634 "PhotoMonitor.c"
- }
- }
- goto __finally595;
- __catch595_database_error:
- {
- GError* err = NULL;
- GError* _tmp89_;
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- err = _inner_error_;
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _inner_error_ = NULL;
-#line 999 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp89_ = err;
-#line 999 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- app_window_database_error (_tmp89_);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (err);
-#line 6652 "PhotoMonitor.c"
- }
- __finally595:
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_propagate_error (error, _inner_error_);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_raw_developments);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_editable);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_master);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (revert_to_master);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_raw_developer_files);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file_info);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file);
-#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 6675 "PhotoMonitor.c"
- }
- }
-#line 1003 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp90_ = set_editable_file_info;
-#line 1003 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp90_ != NULL) {
-#line 6682 "PhotoMonitor.c"
- GeeMap* _tmp91_;
- gint _tmp92_;
- gint _tmp93_;
- gchar* _tmp94_;
- gchar* _tmp95_;
-#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp91_ = set_editable_file_info;
-#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp92_ = gee_map_get_size (_tmp91_);
-#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp93_ = _tmp92_;
-#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp94_ = g_strdup_printf ("Updating %d editable files timestamps", _tmp93_);
-#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp95_ = _tmp94_;
-#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp95_);
-#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp95_);
-#line 6702 "PhotoMonitor.c"
- {
- GeeMap* _tmp96_;
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp96_ = set_editable_file_info;
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_update_many_editable_timestamps (_tmp96_, &_inner_error_);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6713 "PhotoMonitor.c"
- goto __catch596_database_error;
- }
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_raw_developments);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_editable);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_master);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (revert_to_master);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_raw_developer_files);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file_info);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.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 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 6736 "PhotoMonitor.c"
- }
- }
- goto __finally596;
- __catch596_database_error:
- {
- GError* err = NULL;
- GError* _tmp97_;
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- err = _inner_error_;
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _inner_error_ = NULL;
-#line 1009 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp97_ = err;
-#line 1009 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- app_window_database_error (_tmp97_);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (err);
-#line 6754 "PhotoMonitor.c"
- }
- __finally596:
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_propagate_error (error, _inner_error_);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_raw_developments);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_editable);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_master);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (revert_to_master);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_raw_developer_files);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file_info);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file);
-#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 6777 "PhotoMonitor.c"
- }
- }
-#line 1013 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp98_ = revert_to_master;
-#line 1013 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp98_ != NULL) {
-#line 6784 "PhotoMonitor.c"
- GeeArrayList* _tmp99_;
- gint _tmp100_;
- gint _tmp101_;
- gchar* _tmp102_;
- gchar* _tmp103_;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp99_ = revert_to_master;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp100_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp101_ = _tmp100_;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp102_ = g_strdup_printf ("Reverting %d photos to master", _tmp101_);
-#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp103_ = _tmp102_;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp103_);
-#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp103_);
-#line 6804 "PhotoMonitor.c"
- {
- GeeArrayList* _photo_list = NULL;
- GeeArrayList* _tmp104_;
- GeeArrayList* _tmp105_;
- gint _photo_size = 0;
- GeeArrayList* _tmp106_;
- gint _tmp107_;
- gint _tmp108_;
- gint _photo_index = 0;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp104_ = revert_to_master;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp105_ = _g_object_ref0 (_tmp104_);
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_list = _tmp105_;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp106_ = _photo_list;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp107_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp108_ = _tmp107_;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_size = _tmp108_;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_index = -1;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 6832 "PhotoMonitor.c"
- gint _tmp109_;
- gint _tmp110_;
- gint _tmp111_;
- LibraryPhoto* photo = NULL;
- GeeArrayList* _tmp112_;
- gint _tmp113_;
- gpointer _tmp114_;
- LibraryPhoto* _tmp115_;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp109_ = _photo_index;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_index = _tmp109_ + 1;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp110_ = _photo_index;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp111_ = _photo_size;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!(_tmp110_ < _tmp111_)) {
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 6853 "PhotoMonitor.c"
- }
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp112_ = _photo_list;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp113_ = _photo_index;
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp114_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp112_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp113_);
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = (LibraryPhoto*) _tmp114_;
-#line 1017 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp115_ = photo;
-#line 1017 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, TYPE_PHOTO, Photo), TRUE);
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 6869 "PhotoMonitor.c"
- }
-#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_photo_list);
-#line 6873 "PhotoMonitor.c"
- }
- }
-#line 1024 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp116_ = reimport_master;
-#line 1024 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp116_ != NULL) {
-#line 6880 "PhotoMonitor.c"
- GeeArrayList* _tmp117_;
- gint _tmp118_;
- gint _tmp119_;
- gchar* _tmp120_;
- gchar* _tmp121_;
-#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp117_ = reimport_master;
-#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp118_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp119_ = _tmp118_;
-#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp120_ = g_strdup_printf ("Reimporting %d masters", _tmp119_);
-#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp121_ = _tmp120_;
-#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp121_);
-#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp121_);
-#line 6900 "PhotoMonitor.c"
- {
- GeeArrayList* _photo_list = NULL;
- GeeArrayList* _tmp122_;
- GeeArrayList* _tmp123_;
- gint _photo_size = 0;
- GeeArrayList* _tmp124_;
- gint _tmp125_;
- gint _tmp126_;
- gint _photo_index = 0;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp122_ = reimport_master;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp123_ = _g_object_ref0 (_tmp122_);
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_list = _tmp123_;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp124_ = _photo_list;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp125_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp124_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp126_ = _tmp125_;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_size = _tmp126_;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_index = -1;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 6928 "PhotoMonitor.c"
- gint _tmp127_;
- gint _tmp128_;
- gint _tmp129_;
- LibraryPhoto* photo = NULL;
- GeeArrayList* _tmp130_;
- gint _tmp131_;
- gpointer _tmp132_;
- GeeHashMap* _tmp133_;
- LibraryPhoto* _tmp134_;
- PhotoMonitorReimportMasterJob* job = NULL;
- LibraryPhoto* _tmp135_;
- PhotoMonitorReimportMasterJob* _tmp136_;
- GeeHashMap* _tmp137_;
- LibraryPhoto* _tmp138_;
- PhotoMonitorReimportMasterJob* _tmp139_;
- Workers* _tmp140_;
- PhotoMonitorReimportMasterJob* _tmp141_;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp127_ = _photo_index;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_index = _tmp127_ + 1;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp128_ = _photo_index;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp129_ = _photo_size;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!(_tmp128_ < _tmp129_)) {
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 6958 "PhotoMonitor.c"
- }
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp130_ = _photo_list;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp131_ = _photo_index;
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp132_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp131_);
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = (LibraryPhoto*) _tmp132_;
-#line 1028 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp133_ = self->priv->master_reimport_pending;
-#line 1028 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp134_ = photo;
-#line 1028 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp134_), "!master_reimport_pending.has_key(photo)");
-#line 1030 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp135_ = photo;
-#line 1030 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp136_ = photo_monitor_reimport_master_job_new (self, _tmp135_);
-#line 1030 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = _tmp136_;
-#line 1031 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp137_ = self->priv->master_reimport_pending;
-#line 1031 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp138_ = photo;
-#line 1031 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp139_ = job;
-#line 1031 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp137_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp138_, _tmp139_);
-#line 1032 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp140_ = self->priv->workers;
-#line 1032 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp141_ = job;
-#line 1032 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- workers_enqueue (_tmp140_, G_TYPE_CHECK_INSTANCE_CAST (_tmp141_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 6998 "PhotoMonitor.c"
- }
-#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_photo_list);
-#line 7002 "PhotoMonitor.c"
- }
- }
-#line 1036 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp142_ = reimport_editable;
-#line 1036 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp142_ != NULL) {
-#line 7009 "PhotoMonitor.c"
- GeeArrayList* _tmp143_;
- gint _tmp144_;
- gint _tmp145_;
- gchar* _tmp146_;
- gchar* _tmp147_;
-#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp143_ = reimport_editable;
-#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp144_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp143_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp145_ = _tmp144_;
-#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp146_ = g_strdup_printf ("Reimporting %d editables", _tmp145_);
-#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp147_ = _tmp146_;
-#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp147_);
-#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp147_);
-#line 7029 "PhotoMonitor.c"
- {
- GeeArrayList* _photo_list = NULL;
- GeeArrayList* _tmp148_;
- GeeArrayList* _tmp149_;
- gint _photo_size = 0;
- GeeArrayList* _tmp150_;
- gint _tmp151_;
- gint _tmp152_;
- gint _photo_index = 0;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp148_ = reimport_editable;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp149_ = _g_object_ref0 (_tmp148_);
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_list = _tmp149_;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp150_ = _photo_list;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp151_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp150_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp152_ = _tmp151_;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_size = _tmp152_;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_index = -1;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 7057 "PhotoMonitor.c"
- gint _tmp153_;
- gint _tmp154_;
- gint _tmp155_;
- LibraryPhoto* photo = NULL;
- GeeArrayList* _tmp156_;
- gint _tmp157_;
- gpointer _tmp158_;
- GeeHashMap* _tmp159_;
- LibraryPhoto* _tmp160_;
- PhotoMonitorReimportEditableJob* job = NULL;
- LibraryPhoto* _tmp161_;
- PhotoMonitorReimportEditableJob* _tmp162_;
- GeeHashMap* _tmp163_;
- LibraryPhoto* _tmp164_;
- PhotoMonitorReimportEditableJob* _tmp165_;
- Workers* _tmp166_;
- PhotoMonitorReimportEditableJob* _tmp167_;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp153_ = _photo_index;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_index = _tmp153_ + 1;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp154_ = _photo_index;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp155_ = _photo_size;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!(_tmp154_ < _tmp155_)) {
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 7087 "PhotoMonitor.c"
- }
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp156_ = _photo_list;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp157_ = _photo_index;
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp158_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp156_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp157_);
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = (LibraryPhoto*) _tmp158_;
-#line 1040 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp159_ = self->priv->editable_reimport_pending;
-#line 1040 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp160_ = photo;
-#line 1040 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp159_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp160_), "!editable_reimport_pending.has_key(photo)");
-#line 1042 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp161_ = photo;
-#line 1042 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp162_ = photo_monitor_reimport_editable_job_new (self, _tmp161_);
-#line 1042 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = _tmp162_;
-#line 1043 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp163_ = self->priv->editable_reimport_pending;
-#line 1043 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp164_ = photo;
-#line 1043 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp165_ = job;
-#line 1043 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp163_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp164_, _tmp165_);
-#line 1044 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp166_ = self->priv->workers;
-#line 1044 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp167_ = job;
-#line 1044 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- workers_enqueue (_tmp166_, G_TYPE_CHECK_INSTANCE_CAST (_tmp167_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 7127 "PhotoMonitor.c"
- }
-#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_photo_list);
-#line 7131 "PhotoMonitor.c"
- }
- }
-#line 1048 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp168_ = reimport_raw_developments;
-#line 1048 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp168_ != NULL) {
-#line 7138 "PhotoMonitor.c"
- GeeArrayList* _tmp169_;
- gint _tmp170_;
- gint _tmp171_;
- gchar* _tmp172_;
- gchar* _tmp173_;
-#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp169_ = reimport_raw_developments;
-#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp170_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp169_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp171_ = _tmp170_;
-#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp172_ = g_strdup_printf ("Reimporting %d raw developments", _tmp171_);
-#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp173_ = _tmp172_;
-#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp173_);
-#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp173_);
-#line 7158 "PhotoMonitor.c"
- {
- GeeArrayList* _photo_list = NULL;
- GeeArrayList* _tmp174_;
- GeeArrayList* _tmp175_;
- gint _photo_size = 0;
- GeeArrayList* _tmp176_;
- gint _tmp177_;
- gint _tmp178_;
- gint _photo_index = 0;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp174_ = reimport_raw_developments;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp175_ = _g_object_ref0 (_tmp174_);
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_list = _tmp175_;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp176_ = _photo_list;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp177_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp176_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp178_ = _tmp177_;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_size = _tmp178_;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_index = -1;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- while (TRUE) {
-#line 7186 "PhotoMonitor.c"
- gint _tmp179_;
- gint _tmp180_;
- gint _tmp181_;
- LibraryPhoto* photo = NULL;
- GeeArrayList* _tmp182_;
- gint _tmp183_;
- gpointer _tmp184_;
- GeeHashMap* _tmp185_;
- LibraryPhoto* _tmp186_;
- PhotoMonitorReimportRawDevelopmentJob* job = NULL;
- LibraryPhoto* _tmp187_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp188_;
- GeeHashMap* _tmp189_;
- LibraryPhoto* _tmp190_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp191_;
- Workers* _tmp192_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp193_;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp179_ = _photo_index;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_index = _tmp179_ + 1;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp180_ = _photo_index;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp181_ = _photo_size;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!(_tmp180_ < _tmp181_)) {
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- break;
-#line 7216 "PhotoMonitor.c"
- }
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp182_ = _photo_list;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp183_ = _photo_index;
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp184_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp182_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp183_);
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo = (LibraryPhoto*) _tmp184_;
-#line 1052 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp185_ = self->priv->raw_developments_reimport_pending;
-#line 1052 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp186_ = photo;
-#line 1052 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp185_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp186_), "!raw_developments_reimport_pending.has_key(photo)");
-#line 1054 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp187_ = photo;
-#line 1054 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp188_ = photo_monitor_reimport_raw_development_job_new (self, _tmp187_);
-#line 1054 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = _tmp188_;
-#line 1055 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp189_ = self->priv->raw_developments_reimport_pending;
-#line 1055 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp190_ = photo;
-#line 1055 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp191_ = job;
-#line 1055 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp189_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp190_, _tmp191_);
-#line 1056 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp192_ = self->priv->workers;
-#line 1056 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp193_ = job;
-#line 1056 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- workers_enqueue (_tmp192_, G_TYPE_CHECK_INSTANCE_CAST (_tmp193_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (photo);
-#line 7256 "PhotoMonitor.c"
- }
-#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_photo_list);
-#line 7260 "PhotoMonitor.c"
- }
- }
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_raw_developments);
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_editable);
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (reimport_master);
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (revert_to_master);
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_raw_developer_files);
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file_info);
-#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (set_editable_file);
-#line 7277 "PhotoMonitor.c"
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 1062 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self ? background_job_ref (self) : NULL;
-#line 7286 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_on_master_reimported (PhotoMonitor* self,
- BackgroundJob* j)
-{
- PhotoMonitorReimportMasterJob* job = NULL;
- PhotoMonitorReimportMasterJob* _tmp0_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp1_;
- PhotoMonitorReimportMasterJob* _tmp2_;
- LibraryPhoto* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- PhotoMonitorReimportMasterJob* _tmp6_;
- GError* _tmp7_;
- PhotoMonitorReimportMasterJob* _tmp17_;
- gboolean _tmp18_;
- PhotoMonitorReimportMasterJob* _tmp26_;
- LibraryPhoto* _tmp27_;
- PhotoMonitorReimportMasterJob* _tmp30_;
- LibraryPhoto* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- GError * _inner_error_ = NULL;
-#line 1061 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 1061 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1062 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob));
-#line 1062 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = _tmp0_;
-#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->priv->master_reimport_pending;
-#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = job;
-#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp2_->photo;
-#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, NULL);
-#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- removed = _tmp4_;
-#line 1066 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = removed;
-#line 1066 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (_tmp5_, "removed");
-#line 1068 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = job;
-#line 1068 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = _tmp6_->err;
-#line 1068 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp7_ != NULL) {
-#line 7343 "PhotoMonitor.c"
- PhotoMonitorReimportMasterJob* _tmp8_;
- LibraryPhoto* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- PhotoMonitorReimportMasterJob* _tmp12_;
- GError* _tmp13_;
- const gchar* _tmp14_;
- PhotoMonitorReimportMasterJob* _tmp15_;
- LibraryPhoto* _tmp16_;
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = job;
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = _tmp8_->photo;
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = _tmp10_;
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = job;
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = _tmp12_->err;
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = _tmp13_->message;
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_critical ("PhotoMonitor.vala:1069: Unable to reimport %s due to master file chang" \
-"ing: %s", _tmp11_, _tmp14_);
-#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp11_);
-#line 1072 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = job;
-#line 1072 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = _tmp15_->photo;
-#line 1072 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MONITORABLE, Monitorable));
-#line 1074 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1074 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7381 "PhotoMonitor.c"
- }
-#line 1077 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = job;
-#line 1077 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = _tmp17_->mark_online;
-#line 1077 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (!_tmp18_) {
-#line 7389 "PhotoMonitor.c"
- PhotoMonitorReimportMasterJob* _tmp19_;
- LibraryPhoto* _tmp20_;
-#line 1079 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = job;
-#line 1079 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = _tmp19_->photo;
-#line 1079 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_MONITORABLE, Monitorable));
-#line 1081 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1081 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7402 "PhotoMonitor.c"
- }
- {
- PhotoMonitorReimportMasterJob* _tmp21_;
- LibraryPhoto* _tmp22_;
- PhotoMonitorReimportMasterJob* _tmp23_;
- PhotoReimportMasterState* _tmp24_;
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = job;
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = _tmp21_->photo;
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = job;
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = _tmp23_->reimport_state;
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_finish_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PHOTO, Photo), _tmp24_, &_inner_error_);
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 7423 "PhotoMonitor.c"
- goto __catch597_database_error;
- }
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.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 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7434 "PhotoMonitor.c"
- }
- }
- goto __finally597;
- __catch597_database_error:
- {
- GError* err = NULL;
- GError* _tmp25_;
-#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- err = _inner_error_;
-#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _inner_error_ = NULL;
-#line 1087 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = err;
-#line 1087 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- app_window_database_error (_tmp25_);
-#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (err);
-#line 7452 "PhotoMonitor.c"
- }
- __finally597:
-#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.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 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7465 "PhotoMonitor.c"
- }
-#line 1091 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp26_ = job;
-#line 1091 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp27_ = _tmp26_->photo;
-#line 1091 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_MEDIA_SOURCE, MediaSource))) {
-#line 7473 "PhotoMonitor.c"
- PhotoMonitorReimportMasterJob* _tmp28_;
- LibraryPhoto* _tmp29_;
-#line 1092 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp28_ = job;
-#line 1092 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp29_ = _tmp28_->photo;
-#line 1092 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_update_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MONITORABLE, Monitorable));
-#line 7482 "PhotoMonitor.c"
- }
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp30_ = job;
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp31_ = _tmp30_->photo;
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp32_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_OBJECT, DataObject));
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp33_ = _tmp32_;
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp34_ = g_strdup_printf ("Reimported master for %s", _tmp33_);
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp35_ = _tmp34_;
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp35_);
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp35_);
-#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp33_);
-#line 1061 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 7504 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_on_master_reimport_cancelled (PhotoMonitor* self,
- BackgroundJob* j)
-{
- gboolean removed = FALSE;
- GeeHashMap* _tmp0_;
- LibraryPhoto* _tmp1_;
- gboolean _tmp2_;
-#line 1097 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 1097 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1098 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->priv->master_reimport_pending;
-#line 1098 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob)->photo;
-#line 1098 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_, NULL);
-#line 1098 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- removed = _tmp2_;
-#line 1099 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (removed, "removed");
-#line 7530 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_on_editable_reimported (PhotoMonitor* self,
- BackgroundJob* j)
-{
- PhotoMonitorReimportEditableJob* job = NULL;
- PhotoMonitorReimportEditableJob* _tmp0_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp1_;
- PhotoMonitorReimportEditableJob* _tmp2_;
- LibraryPhoto* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- PhotoMonitorReimportEditableJob* _tmp6_;
- GError* _tmp7_;
- PhotoMonitorReimportEditableJob* _tmp20_;
- LibraryPhoto* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- GError * _inner_error_ = NULL;
-#line 1102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 1102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1103 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob));
-#line 1103 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = _tmp0_;
-#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->priv->editable_reimport_pending;
-#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = job;
-#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp2_->photo;
-#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, NULL);
-#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- removed = _tmp4_;
-#line 1107 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = removed;
-#line 1107 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (_tmp5_, "removed");
-#line 1109 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = job;
-#line 1109 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = _tmp6_->err;
-#line 1109 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp7_ != NULL) {
-#line 7583 "PhotoMonitor.c"
- PhotoMonitorReimportEditableJob* _tmp8_;
- LibraryPhoto* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- PhotoMonitorReimportEditableJob* _tmp12_;
- GError* _tmp13_;
- const gchar* _tmp14_;
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = job;
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = _tmp8_->photo;
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = _tmp10_;
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = job;
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = _tmp12_->err;
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = _tmp13_->message;
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_critical ("PhotoMonitor.vala:1110: Unable to reimport editable %s: %s", _tmp11_, _tmp14_);
-#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp11_);
-#line 1112 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1112 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7613 "PhotoMonitor.c"
- }
- {
- PhotoMonitorReimportEditableJob* _tmp15_;
- LibraryPhoto* _tmp16_;
- PhotoMonitorReimportEditableJob* _tmp17_;
- PhotoReimportEditableState* _tmp18_;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = job;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = _tmp15_->photo;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = job;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = _tmp17_->state;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_finish_reimport_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo), _tmp18_, &_inner_error_);
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 7634 "PhotoMonitor.c"
- goto __catch598_database_error;
- }
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.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 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7645 "PhotoMonitor.c"
- }
- }
- goto __finally598;
- __catch598_database_error:
- {
- GError* err = NULL;
- GError* _tmp19_;
-#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- err = _inner_error_;
-#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _inner_error_ = NULL;
-#line 1118 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = err;
-#line 1118 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- app_window_database_error (_tmp19_);
-#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (err);
-#line 7663 "PhotoMonitor.c"
- }
- __finally598:
-#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.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 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7676 "PhotoMonitor.c"
- }
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = job;
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = _tmp20_->photo;
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject));
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = _tmp22_;
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = g_strdup_printf ("Reimported editable for %s", _tmp23_);
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = _tmp24_;
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp25_);
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp25_);
-#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp23_);
-#line 1102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 7698 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_on_editable_reimport_cancelled (PhotoMonitor* self,
- BackgroundJob* j)
-{
- gboolean removed = FALSE;
- GeeHashMap* _tmp0_;
- LibraryPhoto* _tmp1_;
- gboolean _tmp2_;
-#line 1124 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 1124 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->priv->editable_reimport_pending;
-#line 1125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob)->photo;
-#line 1125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_, NULL);
-#line 1125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- removed = _tmp2_;
-#line 1126 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (removed, "removed");
-#line 7724 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_on_raw_development_reimported (PhotoMonitor* self,
- BackgroundJob* j)
-{
- PhotoMonitorReimportRawDevelopmentJob* job = NULL;
- PhotoMonitorReimportRawDevelopmentJob* _tmp0_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp1_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp2_;
- LibraryPhoto* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp6_;
- GError* _tmp7_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp20_;
- LibraryPhoto* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- GError * _inner_error_ = NULL;
-#line 1129 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 1129 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob));
-#line 1130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- job = _tmp0_;
-#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->priv->raw_developments_reimport_pending;
-#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = job;
-#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = _tmp2_->photo;
-#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, NULL);
-#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- removed = _tmp4_;
-#line 1134 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = removed;
-#line 1134 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (_tmp5_, "removed");
-#line 1136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp6_ = job;
-#line 1136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp7_ = _tmp6_->err;
-#line 1136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_tmp7_ != NULL) {
-#line 7777 "PhotoMonitor.c"
- PhotoMonitorReimportRawDevelopmentJob* _tmp8_;
- LibraryPhoto* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp12_;
- GError* _tmp13_;
- const gchar* _tmp14_;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp8_ = job;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp9_ = _tmp8_->photo;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp11_ = _tmp10_;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp12_ = job;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp13_ = _tmp12_->err;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp14_ = _tmp13_->message;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_critical ("PhotoMonitor.vala:1137: Unable to reimport raw development %s: %s", _tmp11_, _tmp14_);
-#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp11_);
-#line 1139 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1139 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7807 "PhotoMonitor.c"
- }
- {
- PhotoMonitorReimportRawDevelopmentJob* _tmp15_;
- LibraryPhoto* _tmp16_;
- PhotoMonitorReimportRawDevelopmentJob* _tmp17_;
- PhotoReimportRawDevelopmentState* _tmp18_;
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp15_ = job;
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp16_ = _tmp15_->photo;
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp17_ = job;
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp18_ = _tmp17_->state;
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_finish_reimport_raw_development (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo), _tmp18_, &_inner_error_);
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 7828 "PhotoMonitor.c"
- goto __catch599_database_error;
- }
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.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 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7839 "PhotoMonitor.c"
- }
- }
- goto __finally599;
- __catch599_database_error:
- {
- GError* err = NULL;
- GError* _tmp19_;
-#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- err = _inner_error_;
-#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _inner_error_ = NULL;
-#line 1145 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp19_ = err;
-#line 1145 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- app_window_database_error (_tmp19_);
-#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (err);
-#line 7857 "PhotoMonitor.c"
- }
- __finally599:
-#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.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 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 7870 "PhotoMonitor.c"
- }
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp20_ = job;
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp21_ = _tmp20_->photo;
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp22_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject));
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp23_ = _tmp22_;
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp24_ = g_strdup_printf ("Reimported raw development for %s", _tmp23_);
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp25_ = _tmp24_;
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- media_monitor_mdbg (_tmp25_);
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp25_);
-#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_free0 (_tmp23_);
-#line 1129 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _background_job_unref0 (job);
-#line 7892 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_on_raw_development_reimport_cancelled (PhotoMonitor* self,
- BackgroundJob* j)
-{
- gboolean removed = FALSE;
- GeeHashMap* _tmp0_;
- LibraryPhoto* _tmp1_;
- gboolean _tmp2_;
-#line 1151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_PHOTO_MONITOR (self));
-#line 1151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = self->priv->raw_developments_reimport_pending;
-#line 1152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob)->photo;
-#line 1152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_, NULL);
-#line 1152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- removed = _tmp2_;
-#line 1153 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _vala_assert (removed, "removed");
-#line 7918 "PhotoMonitor.c"
-}
-
-
-static void
-_photo_monitor_on_master_reimported_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_on_master_reimported ((PhotoMonitor*) self, job);
-#line 7928 "PhotoMonitor.c"
-}
-
-
-static void
-_photo_monitor_on_master_reimport_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_on_master_reimport_cancelled ((PhotoMonitor*) self, job);
-#line 7938 "PhotoMonitor.c"
-}
-
-
-static PhotoMonitorReimportMasterJob*
-photo_monitor_reimport_master_job_construct (GType object_type,
- PhotoMonitor* owner,
- LibraryPhoto* photo)
-{
- PhotoMonitorReimportMasterJob* self = NULL;
- GCancellable* _tmp0_;
- GCancellable* _tmp1_;
- LibraryPhoto* _tmp2_;
-#line 167 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_MONITOR (owner), NULL);
-#line 167 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = g_cancellable_new ();
-#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = (PhotoMonitorReimportMasterJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _photo_monitor_on_master_reimported_completion_callback, owner, _tmp1_, _photo_monitor_on_master_reimport_cancelled_cancellation_callback, owner, NULL);
-#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 171 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _g_object_ref0 (photo);
-#line 171 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->photo);
-#line 171 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->photo = _tmp2_;
-#line 167 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self;
-#line 7971 "PhotoMonitor.c"
-}
-
-
-static PhotoMonitorReimportMasterJob*
-photo_monitor_reimport_master_job_new (PhotoMonitor* owner,
- LibraryPhoto* photo)
-{
-#line 167 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return photo_monitor_reimport_master_job_construct (PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, owner, photo);
-#line 7981 "PhotoMonitor.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self ? g_error_copy (self) : NULL;
-#line 7990 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_master_job_real_execute (BackgroundJob* base)
-{
- PhotoMonitorReimportMasterJob * self;
- GError * _inner_error_ = NULL;
-#line 174 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob);
-#line 8001 "PhotoMonitor.c"
- {
- gboolean _tmp0_ = FALSE;
- LibraryPhoto* _tmp1_;
- PhotoReimportMasterState* _tmp2_ = NULL;
- gboolean _tmp3_;
-#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->photo;
-#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = photo_prepare_for_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo), &_tmp2_, &_inner_error_);
-#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_reimport_master_state_unref0 (self->reimport_state);
-#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_state = _tmp2_;
-#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp3_;
-#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8019 "PhotoMonitor.c"
- goto __catch600_g_error;
- }
-#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->mark_online = _tmp0_;
-#line 8024 "PhotoMonitor.c"
- }
- goto __finally600;
- __catch600_g_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
- GError* _tmp5_;
-#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- err = _inner_error_;
-#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _inner_error_ = NULL;
-#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = err;
-#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _g_error_copy0 (_tmp4_);
-#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (self->err);
-#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->err = _tmp5_;
-#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (err);
-#line 8046 "PhotoMonitor.c"
- }
- __finally600:
-#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.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 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 8057 "PhotoMonitor.c"
- }
-}
-
-
-static void
-photo_monitor_reimport_master_job_class_init (PhotoMonitorReimportMasterJobClass * klass)
-{
-#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_reimport_master_job_parent_class = g_type_class_peek_parent (klass);
-#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((BackgroundJobClass *) klass)->finalize = photo_monitor_reimport_master_job_finalize;
-#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) photo_monitor_reimport_master_job_real_execute;
-#line 8071 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_master_job_instance_init (PhotoMonitorReimportMasterJob * self)
-{
-#line 163 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->reimport_state = NULL;
-#line 164 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->mark_online = FALSE;
-#line 165 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->err = NULL;
-#line 8084 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_master_job_finalize (BackgroundJob * obj)
-{
- PhotoMonitorReimportMasterJob * self;
-#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob);
-#line 162 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->photo);
-#line 163 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_reimport_master_state_unref0 (self->reimport_state);
-#line 165 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (self->err);
-#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- BACKGROUND_JOB_CLASS (photo_monitor_reimport_master_job_parent_class)->finalize (obj);
-#line 8102 "PhotoMonitor.c"
-}
-
-
-static GType
-photo_monitor_reimport_master_job_get_type (void)
-{
- static volatile gsize photo_monitor_reimport_master_job_type_id__volatile = 0;
- if (g_once_init_enter (&photo_monitor_reimport_master_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoMonitorReimportMasterJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_monitor_reimport_master_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMonitorReimportMasterJob), 0, (GInstanceInitFunc) photo_monitor_reimport_master_job_instance_init, NULL };
- GType photo_monitor_reimport_master_job_type_id;
- photo_monitor_reimport_master_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PhotoMonitorReimportMasterJob", &g_define_type_info, 0);
- g_once_init_leave (&photo_monitor_reimport_master_job_type_id__volatile, photo_monitor_reimport_master_job_type_id);
- }
- return photo_monitor_reimport_master_job_type_id__volatile;
-}
-
-
-static void
-_photo_monitor_on_editable_reimported_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_on_editable_reimported ((PhotoMonitor*) self, job);
-#line 8126 "PhotoMonitor.c"
-}
-
-
-static void
-_photo_monitor_on_editable_reimport_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_on_editable_reimport_cancelled ((PhotoMonitor*) self, job);
-#line 8136 "PhotoMonitor.c"
-}
-
-
-static PhotoMonitorReimportEditableJob*
-photo_monitor_reimport_editable_job_construct (GType object_type,
- PhotoMonitor* owner,
- LibraryPhoto* photo)
-{
- PhotoMonitorReimportEditableJob* self = NULL;
- GCancellable* _tmp0_;
- GCancellable* _tmp1_;
- LibraryPhoto* _tmp2_;
-#line 189 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_MONITOR (owner), NULL);
-#line 189 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = g_cancellable_new ();
-#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = (PhotoMonitorReimportEditableJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _photo_monitor_on_editable_reimported_completion_callback, owner, _tmp1_, _photo_monitor_on_editable_reimport_cancelled_cancellation_callback, owner, NULL);
-#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 193 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _g_object_ref0 (photo);
-#line 193 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->photo);
-#line 193 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->photo = _tmp2_;
-#line 189 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self;
-#line 8169 "PhotoMonitor.c"
-}
-
-
-static PhotoMonitorReimportEditableJob*
-photo_monitor_reimport_editable_job_new (PhotoMonitor* owner,
- LibraryPhoto* photo)
-{
-#line 189 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return photo_monitor_reimport_editable_job_construct (PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, owner, photo);
-#line 8179 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_editable_job_real_execute (BackgroundJob* base)
-{
- PhotoMonitorReimportEditableJob * self;
- GError * _inner_error_ = NULL;
-#line 196 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob);
-#line 8190 "PhotoMonitor.c"
- {
- gboolean _tmp0_ = FALSE;
- LibraryPhoto* _tmp1_;
- PhotoReimportEditableState* _tmp2_ = NULL;
- gboolean _tmp3_;
-#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->photo;
-#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = photo_prepare_for_reimport_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo), &_tmp2_, &_inner_error_);
-#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_reimport_editable_state_unref0 (self->state);
-#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->state = _tmp2_;
-#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp3_;
-#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8208 "PhotoMonitor.c"
- goto __catch601_g_error;
- }
-#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->success = _tmp0_;
-#line 8213 "PhotoMonitor.c"
- }
- goto __finally601;
- __catch601_g_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
- GError* _tmp5_;
-#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- err = _inner_error_;
-#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _inner_error_ = NULL;
-#line 200 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = err;
-#line 200 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _g_error_copy0 (_tmp4_);
-#line 200 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (self->err);
-#line 200 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->err = _tmp5_;
-#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (err);
-#line 8235 "PhotoMonitor.c"
- }
- __finally601:
-#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.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 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 8246 "PhotoMonitor.c"
- }
-}
-
-
-static void
-photo_monitor_reimport_editable_job_class_init (PhotoMonitorReimportEditableJobClass * klass)
-{
-#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_reimport_editable_job_parent_class = g_type_class_peek_parent (klass);
-#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((BackgroundJobClass *) klass)->finalize = photo_monitor_reimport_editable_job_finalize;
-#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) photo_monitor_reimport_editable_job_real_execute;
-#line 8260 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_editable_job_instance_init (PhotoMonitorReimportEditableJob * self)
-{
-#line 185 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->state = NULL;
-#line 186 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->success = FALSE;
-#line 187 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->err = NULL;
-#line 8273 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_editable_job_finalize (BackgroundJob * obj)
-{
- PhotoMonitorReimportEditableJob * self;
-#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob);
-#line 184 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->photo);
-#line 185 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_reimport_editable_state_unref0 (self->state);
-#line 187 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (self->err);
-#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- BACKGROUND_JOB_CLASS (photo_monitor_reimport_editable_job_parent_class)->finalize (obj);
-#line 8291 "PhotoMonitor.c"
-}
-
-
-static GType
-photo_monitor_reimport_editable_job_get_type (void)
-{
- static volatile gsize photo_monitor_reimport_editable_job_type_id__volatile = 0;
- if (g_once_init_enter (&photo_monitor_reimport_editable_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoMonitorReimportEditableJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_monitor_reimport_editable_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMonitorReimportEditableJob), 0, (GInstanceInitFunc) photo_monitor_reimport_editable_job_instance_init, NULL };
- GType photo_monitor_reimport_editable_job_type_id;
- photo_monitor_reimport_editable_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PhotoMonitorReimportEditableJob", &g_define_type_info, 0);
- g_once_init_leave (&photo_monitor_reimport_editable_job_type_id__volatile, photo_monitor_reimport_editable_job_type_id);
- }
- return photo_monitor_reimport_editable_job_type_id__volatile;
-}
-
-
-static void
-_photo_monitor_on_raw_development_reimported_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_on_raw_development_reimported ((PhotoMonitor*) self, job);
-#line 8315 "PhotoMonitor.c"
-}
-
-
-static void
-_photo_monitor_on_raw_development_reimport_cancelled_cancellation_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_on_raw_development_reimport_cancelled ((PhotoMonitor*) self, job);
-#line 8325 "PhotoMonitor.c"
-}
-
-
-static PhotoMonitorReimportRawDevelopmentJob*
-photo_monitor_reimport_raw_development_job_construct (GType object_type,
- PhotoMonitor* owner,
- LibraryPhoto* photo)
-{
- PhotoMonitorReimportRawDevelopmentJob* self = NULL;
- GCancellable* _tmp0_;
- GCancellable* _tmp1_;
- LibraryPhoto* _tmp2_;
-#line 211 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_PHOTO_MONITOR (owner), NULL);
-#line 211 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL);
-#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = g_cancellable_new ();
-#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = (PhotoMonitorReimportRawDevelopmentJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _photo_monitor_on_raw_development_reimported_completion_callback, owner, _tmp1_, _photo_monitor_on_raw_development_reimport_cancelled_cancellation_callback, owner, NULL);
-#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 215 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = _g_object_ref0 (photo);
-#line 215 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->photo);
-#line 215 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->photo = _tmp2_;
-#line 211 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return self;
-#line 8358 "PhotoMonitor.c"
-}
-
-
-static PhotoMonitorReimportRawDevelopmentJob*
-photo_monitor_reimport_raw_development_job_new (PhotoMonitor* owner,
- LibraryPhoto* photo)
-{
-#line 211 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return photo_monitor_reimport_raw_development_job_construct (PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, owner, photo);
-#line 8368 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_raw_development_job_real_execute (BackgroundJob* base)
-{
- PhotoMonitorReimportRawDevelopmentJob * self;
- GError * _inner_error_ = NULL;
-#line 218 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob);
-#line 8379 "PhotoMonitor.c"
- {
- gboolean _tmp0_ = FALSE;
- LibraryPhoto* _tmp1_;
- PhotoReimportRawDevelopmentState* _tmp2_ = NULL;
- gboolean _tmp3_;
-#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = self->photo;
-#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = photo_prepare_for_reimport_raw_development (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo), &_tmp2_, &_inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_reimport_raw_development_state_unref0 (self->state);
-#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->state = _tmp2_;
-#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = _tmp3_;
-#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8397 "PhotoMonitor.c"
- goto __catch602_g_error;
- }
-#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->success = _tmp0_;
-#line 8402 "PhotoMonitor.c"
- }
- goto __finally602;
- __catch602_g_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
- GError* _tmp5_;
-#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- err = _inner_error_;
-#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _inner_error_ = NULL;
-#line 222 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = err;
-#line 222 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp5_ = _g_error_copy0 (_tmp4_);
-#line 222 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (self->err);
-#line 222 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->err = _tmp5_;
-#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (err);
-#line 8424 "PhotoMonitor.c"
- }
- __finally602:
-#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.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 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_clear_error (&_inner_error_);
-#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- return;
-#line 8435 "PhotoMonitor.c"
- }
-}
-
-
-static void
-photo_monitor_reimport_raw_development_job_class_init (PhotoMonitorReimportRawDevelopmentJobClass * klass)
-{
-#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_reimport_raw_development_job_parent_class = g_type_class_peek_parent (klass);
-#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((BackgroundJobClass *) klass)->finalize = photo_monitor_reimport_raw_development_job_finalize;
-#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) photo_monitor_reimport_raw_development_job_real_execute;
-#line 8449 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_raw_development_job_instance_init (PhotoMonitorReimportRawDevelopmentJob * self)
-{
-#line 207 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->state = NULL;
-#line 208 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->success = FALSE;
-#line 209 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->err = NULL;
-#line 8462 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_reimport_raw_development_job_finalize (BackgroundJob * obj)
-{
- PhotoMonitorReimportRawDevelopmentJob * self;
-#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob);
-#line 206 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->photo);
-#line 207 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _photo_reimport_raw_development_state_unref0 (self->state);
-#line 209 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_error_free0 (self->err);
-#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- BACKGROUND_JOB_CLASS (photo_monitor_reimport_raw_development_job_parent_class)->finalize (obj);
-#line 8480 "PhotoMonitor.c"
-}
-
-
-static GType
-photo_monitor_reimport_raw_development_job_get_type (void)
-{
- static volatile gsize photo_monitor_reimport_raw_development_job_type_id__volatile = 0;
- if (g_once_init_enter (&photo_monitor_reimport_raw_development_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoMonitorReimportRawDevelopmentJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_monitor_reimport_raw_development_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMonitorReimportRawDevelopmentJob), 0, (GInstanceInitFunc) photo_monitor_reimport_raw_development_job_instance_init, NULL };
- GType photo_monitor_reimport_raw_development_job_type_id;
- photo_monitor_reimport_raw_development_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PhotoMonitorReimportRawDevelopmentJob", &g_define_type_info, 0);
- g_once_init_leave (&photo_monitor_reimport_raw_development_job_type_id__volatile, photo_monitor_reimport_raw_development_job_type_id);
- }
- return photo_monitor_reimport_raw_development_job_type_id__volatile;
-}
-
-
-static void
-photo_monitor_class_init (PhotoMonitorClass * klass)
-{
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- photo_monitor_parent_class = g_type_class_peek_parent (klass);
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- g_type_class_add_private (klass, sizeof (PhotoMonitorPrivate));
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->create_updates = (MonitorableUpdates* (*) (MediaMonitor *, Monitorable*)) photo_monitor_real_create_updates;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->get_media_source_collection = (MediaSourceCollection* (*) (MediaMonitor *)) photo_monitor_real_get_media_source_collection;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->is_file_represented = (gboolean (*) (MediaMonitor *, GFile*)) photo_monitor_real_is_file_represented;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->close = (void (*) (MediaMonitor *)) photo_monitor_real_close;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_discovered = (MediaMonitorDiscoveredFile (*) (MediaMonitor *, GFile*, GFileInfo*, Monitorable* *)) photo_monitor_real_notify_file_discovered;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->candidates_for_unknown_file = (GeeCollection* (*) (MediaMonitor *, GFile*, GFileInfo*, MediaMonitorDiscoveredFile*)) photo_monitor_real_candidates_for_unknown_file;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->get_auxilliary_backing_files = (GFile** (*) (MediaMonitor *, Monitorable*, int*)) photo_monitor_real_get_auxilliary_backing_files;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->update_backing_file_info = (void (*) (MediaMonitor *, Monitorable*, GFile*, GFileInfo*)) photo_monitor_real_update_backing_file_info;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_discovery_completing = (void (*) (MediaMonitor *)) photo_monitor_real_notify_discovery_completing;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_created = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) photo_monitor_real_notify_file_created;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_moved = (gboolean (*) (MediaMonitor *, GFile*, GFile*, GFileInfo*)) photo_monitor_real_notify_file_moved;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_altered = (gboolean (*) (MediaMonitor *, GFile*)) photo_monitor_real_notify_file_altered;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_attributes_altered = (gboolean (*) (MediaMonitor *, GFile*)) photo_monitor_real_notify_file_attributes_altered;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_alteration_completed = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) photo_monitor_real_notify_file_alteration_completed;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_deleted = (gboolean (*) (MediaMonitor *, GFile*)) photo_monitor_real_notify_file_deleted;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->on_media_source_destroyed = (void (*) (MediaMonitor *, DataSource*)) photo_monitor_real_on_media_source_destroyed;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- ((MediaMonitorClass *) klass)->process_updates = (void (*) (MediaMonitor *, GeeCollection*, TransactionController*, gint*, GError**)) photo_monitor_real_process_updates;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- G_OBJECT_CLASS (klass)->finalize = photo_monitor_finalize;
-#line 8541 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_instance_init (PhotoMonitor * self)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeHashMap* _tmp2_;
- GeeHashMap* _tmp3_;
- GeeHashMap* _tmp4_;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->priv = PHOTO_MONITOR_GET_PRIVATE (self);
-#line 228 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 228 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->priv->matched_editables = _tmp0_;
-#line 229 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp1_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 229 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->priv->matched_developments = _tmp1_;
-#line 230 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp2_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 230 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->priv->master_reimport_pending = _tmp2_;
-#line 232 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp3_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 232 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->priv->editable_reimport_pending = _tmp3_;
-#line 234 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _tmp4_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 234 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self->priv->raw_developments_reimport_pending = _tmp4_;
-#line 8575 "PhotoMonitor.c"
-}
-
-
-static void
-photo_monitor_finalize (GObject * obj)
-{
- PhotoMonitor * self;
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_MONITOR, PhotoMonitor);
-#line 227 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _workers_unref0 (self->priv->workers);
-#line 228 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->priv->matched_editables);
-#line 229 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->priv->matched_developments);
-#line 230 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->priv->master_reimport_pending);
-#line 232 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->priv->editable_reimport_pending);
-#line 234 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- _g_object_unref0 (self->priv->raw_developments_reimport_pending);
-#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala"
- G_OBJECT_CLASS (photo_monitor_parent_class)->finalize (obj);
-#line 8599 "PhotoMonitor.c"
-}
-
-
-GType
-photo_monitor_get_type (void)
-{
- static volatile gsize photo_monitor_type_id__volatile = 0;
- if (g_once_init_enter (&photo_monitor_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMonitor), 0, (GInstanceInitFunc) photo_monitor_instance_init, NULL };
- GType photo_monitor_type_id;
- photo_monitor_type_id = g_type_register_static (TYPE_MEDIA_MONITOR, "PhotoMonitor", &g_define_type_info, 0);
- g_once_init_leave (&photo_monitor_type_id__volatile, photo_monitor_type_id);
- }
- return photo_monitor_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/PhotoPage.c b/src/PhotoPage.c
deleted file mode 100644
index 5ba8350..0000000
--- a/src/PhotoPage.c
+++ /dev/null
@@ -1,20126 +0,0 @@
-/* PhotoPage.c generated by valac 0.40.4, the Vala compiler
- * generated from PhotoPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <float.h>
-#include <math.h>
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-#include "shotwell-graphics-processor.h"
-#include <gio/gio.h>
-#include <cairo.h>
-#include <string.h>
-#include <stdlib.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-#include <pango/pango.h>
-#include <time.h>
-
-
-#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ())
-#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer))
-#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER))
-#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER))
-#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-
-typedef struct _ZoomBuffer ZoomBuffer;
-typedef struct _ZoomBufferClass ZoomBufferClass;
-typedef struct _ZoomBufferPrivate ZoomBufferPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 ZOOM_BUFFER_TYPE_OBJECT_STATE (zoom_buffer_object_state_get_type ())
-
-#define TYPE_ZOOM_STATE (zoom_state_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _ZoomState ZoomState;
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB (zoom_buffer_transformation_job_get_type ())
-#define ZOOM_BUFFER_TRANSFORMATION_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob))
-#define ZOOM_BUFFER_TRANSFORMATION_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJobClass))
-#define ZOOM_BUFFER_IS_TRANSFORMATION_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB))
-#define ZOOM_BUFFER_IS_TRANSFORMATION_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB))
-#define ZOOM_BUFFER_TRANSFORMATION_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJobClass))
-
-typedef struct _ZoomBufferTransformationJob ZoomBufferTransformationJob;
-typedef struct _ZoomBufferTransformationJobClass ZoomBufferTransformationJobClass;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-enum {
- ZOOM_BUFFER_0_PROPERTY,
- ZOOM_BUFFER_NUM_PROPERTIES
-};
-static GParamSpec* zoom_buffer_properties[ZOOM_BUFFER_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
-
-#define ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB (zoom_buffer_iso_source_fetch_job_get_type ())
-#define ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJob))
-#define ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJobClass))
-#define ZOOM_BUFFER_IS_ISO_SOURCE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB))
-#define ZOOM_BUFFER_IS_ISO_SOURCE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB))
-#define ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJobClass))
-
-typedef struct _ZoomBufferIsoSourceFetchJob ZoomBufferIsoSourceFetchJob;
-typedef struct _ZoomBufferIsoSourceFetchJobClass ZoomBufferIsoSourceFetchJobClass;
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _ZoomBufferIsoSourceFetchJobPrivate ZoomBufferIsoSourceFetchJobPrivate;
-
-#define TYPE_DIRECTION (direction_get_type ())
-#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL)))
-typedef struct _ZoomBufferTransformationJobPrivate ZoomBufferTransformationJobPrivate;
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate;
-
-#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ())
-
-#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ())
-#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage))
-#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE))
-#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE))
-#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-
-typedef struct _EditingHostPage EditingHostPage;
-typedef struct _EditingHostPageClass EditingHostPageClass;
-typedef struct _EditingHostPagePrivate EditingHostPagePrivate;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define EDITING_TOOLS_TYPE_EDITING_TOOL (editing_tools_editing_tool_get_type ())
-#define EDITING_TOOLS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool))
-#define EDITING_TOOLS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass))
-#define EDITING_TOOLS_IS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL))
-#define EDITING_TOOLS_IS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL))
-#define EDITING_TOOLS_EDITING_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass))
-
-typedef struct _EditingToolsEditingTool EditingToolsEditingTool;
-typedef struct _EditingToolsEditingToolClass EditingToolsEditingToolClass;
-
-#define TYPE_PIXBUF_CACHE (pixbuf_cache_get_type ())
-#define PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXBUF_CACHE, PixbufCache))
-#define PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXBUF_CACHE, PixbufCacheClass))
-#define IS_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXBUF_CACHE))
-#define IS_PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXBUF_CACHE))
-#define PIXBUF_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXBUF_CACHE, PixbufCacheClass))
-
-typedef struct _PixbufCache PixbufCache;
-typedef struct _PixbufCacheClass PixbufCacheClass;
-
-#define TYPE_DRAG_AND_DROP_HANDLER (drag_and_drop_handler_get_type ())
-#define DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler))
-#define DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass))
-#define IS_DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DRAG_AND_DROP_HANDLER))
-#define IS_DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DRAG_AND_DROP_HANDLER))
-#define DRAG_AND_DROP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass))
-
-typedef struct _DragAndDropHandler DragAndDropHandler;
-typedef struct _DragAndDropHandlerClass DragAndDropHandlerClass;
-enum {
- EDITING_HOST_PAGE_0_PROPERTY,
- EDITING_HOST_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* editing_host_page_properties[EDITING_HOST_PAGE_NUM_PROPERTIES];
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _editing_tools_editing_tool_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_editing_tool_unref (var), NULL)))
-#define _drag_and_drop_handler_unref0(var) ((var == NULL) ? NULL : (var = (drag_and_drop_handler_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define PIXBUF_CACHE_TYPE_PHOTO_TYPE (pixbuf_cache_photo_type_get_type ())
-
-#define PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH (pixbuf_cache_pixbuf_cache_batch_get_type ())
-#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatch))
-#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatchClass))
-#define PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH))
-#define PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH))
-#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatchClass))
-
-typedef struct _PixbufCachePixbufCacheBatch PixbufCachePixbufCacheBatch;
-typedef struct _PixbufCachePixbufCacheBatchClass PixbufCachePixbufCacheBatchClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_PHOTO_VIEW (photo_view_get_type ())
-#define PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_VIEW, PhotoView))
-#define PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_VIEW, PhotoViewClass))
-#define IS_PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_VIEW))
-#define IS_PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_VIEW))
-#define PHOTO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_VIEW, PhotoViewClass))
-
-typedef struct _PhotoView PhotoView;
-typedef struct _PhotoViewClass PhotoViewClass;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define EDITING_TOOLS_TYPE_PHOTO_CANVAS (editing_tools_photo_canvas_get_type ())
-#define EDITING_TOOLS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas))
-#define EDITING_TOOLS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass))
-#define EDITING_TOOLS_IS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS))
-#define EDITING_TOOLS_IS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS))
-#define EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass))
-
-typedef struct _EditingToolsPhotoCanvas EditingToolsPhotoCanvas;
-typedef struct _EditingToolsPhotoCanvasClass EditingToolsPhotoCanvasClass;
-
-#define EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS (editing_host_page_editing_host_canvas_get_type ())
-#define EDITING_HOST_PAGE_EDITING_HOST_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvas))
-#define EDITING_HOST_PAGE_EDITING_HOST_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvasClass))
-#define EDITING_HOST_PAGE_IS_EDITING_HOST_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS))
-#define EDITING_HOST_PAGE_IS_EDITING_HOST_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS))
-#define EDITING_HOST_PAGE_EDITING_HOST_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvasClass))
-
-typedef struct _EditingHostPageEditingHostCanvas EditingHostPageEditingHostCanvas;
-typedef struct _EditingHostPageEditingHostCanvasClass EditingHostPageEditingHostCanvasClass;
-#define _editing_tools_photo_canvas_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_photo_canvas_unref (var), NULL)))
-
-#define EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW (editing_tools_editing_tool_window_get_type ())
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow))
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass))
-#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW))
-#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW))
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass))
-
-typedef struct _EditingToolsEditingToolWindow EditingToolsEditingToolWindow;
-typedef struct _EditingToolsEditingToolWindowClass EditingToolsEditingToolWindowClass;
-typedef struct _EditingToolsEditingToolPrivate EditingToolsEditingToolPrivate;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_ROTATION (rotation_get_type ())
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ())
-#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand))
-#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-
-typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
-typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
-
-#define TYPE_ROTATE_SINGLE_COMMAND (rotate_single_command_get_type ())
-#define ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand))
-#define ROTATE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandClass))
-#define IS_ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_SINGLE_COMMAND))
-#define IS_ROTATE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_SINGLE_COMMAND))
-#define ROTATE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandClass))
-
-typedef struct _RotateSingleCommand RotateSingleCommand;
-typedef struct _RotateSingleCommandClass RotateSingleCommandClass;
-
-#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_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ())
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand))
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass))
-#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND))
-#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND))
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass))
-
-typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand;
-typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass;
-
-#define TYPE_REVERT_SINGLE_COMMAND (revert_single_command_get_type ())
-#define REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand))
-#define REVERT_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommandClass))
-#define IS_REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_SINGLE_COMMAND))
-#define IS_REVERT_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_SINGLE_COMMAND))
-#define REVERT_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommandClass))
-
-typedef struct _RevertSingleCommand RevertSingleCommand;
-typedef struct _RevertSingleCommandClass RevertSingleCommandClass;
-
-#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_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ())
-#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-
-typedef struct _TextEntryDialogMediator TextEntryDialogMediator;
-typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass;
-
-#define TYPE_EDIT_TITLE_DIALOG (edit_title_dialog_get_type ())
-#define EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialog))
-#define EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass))
-#define IS_EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_DIALOG))
-#define IS_EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_DIALOG))
-#define EDIT_TITLE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass))
-
-typedef struct _EditTitleDialog EditTitleDialog;
-typedef struct _EditTitleDialogClass EditTitleDialogClass;
-#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL)))
-
-#define TYPE_EDIT_TITLE_COMMAND (edit_title_command_get_type ())
-#define EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommand))
-#define EDIT_TITLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandClass))
-#define IS_EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_COMMAND))
-#define IS_EDIT_TITLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_COMMAND))
-#define EDIT_TITLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandClass))
-
-typedef struct _EditTitleCommand EditTitleCommand;
-typedef struct _EditTitleCommandClass EditTitleCommandClass;
-
-#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ())
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-
-typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator;
-typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass;
-
-#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ())
-#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog))
-#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG))
-#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG))
-#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-
-typedef struct _EditCommentDialog EditCommentDialog;
-typedef struct _EditCommentDialogClass EditCommentDialogClass;
-#define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL)))
-
-#define TYPE_EDIT_COMMENT_COMMAND (edit_comment_command_get_type ())
-#define EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand))
-#define EDIT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandClass))
-#define IS_EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_COMMAND))
-#define IS_EDIT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_COMMAND))
-#define EDIT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandClass))
-
-typedef struct _EditCommentCommand EditCommentCommand;
-typedef struct _EditCommentCommandClass EditCommentCommandClass;
-
-#define TYPE_ADJUST_DATE_TIME_DIALOG (adjust_date_time_dialog_get_type ())
-#define ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog))
-#define ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass))
-#define IS_ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_DIALOG))
-#define IS_ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_DIALOG))
-#define ADJUST_DATE_TIME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass))
-
-typedef struct _AdjustDateTimeDialog AdjustDateTimeDialog;
-typedef struct _AdjustDateTimeDialogClass AdjustDateTimeDialogClass;
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-
-#define TYPE_DIRECT_PHOTO_PAGE (direct_photo_page_get_type ())
-#define DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage))
-#define DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass))
-#define IS_DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_PAGE))
-#define IS_DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_PAGE))
-#define DIRECT_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass))
-
-typedef struct _DirectPhotoPage DirectPhotoPage;
-typedef struct _DirectPhotoPageClass DirectPhotoPageClass;
-
-#define TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND (adjust_date_time_photo_command_get_type ())
-#define ADJUST_DATE_TIME_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand))
-#define ADJUST_DATE_TIME_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandClass))
-#define IS_ADJUST_DATE_TIME_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND))
-#define IS_ADJUST_DATE_TIME_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND))
-#define ADJUST_DATE_TIME_PHOTO_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandClass))
-
-typedef struct _AdjustDateTimePhotoCommand AdjustDateTimePhotoCommand;
-typedef struct _AdjustDateTimePhotoCommandClass AdjustDateTimePhotoCommandClass;
-
-#define TYPE_SET_BACKGROUND_PHOTO_DIALOG (set_background_photo_dialog_get_type ())
-#define SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog))
-#define SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass))
-#define IS_SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG))
-#define IS_SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG))
-#define SET_BACKGROUND_PHOTO_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass))
-
-typedef struct _SetBackgroundPhotoDialog SetBackgroundPhotoDialog;
-typedef struct _SetBackgroundPhotoDialogClass SetBackgroundPhotoDialogClass;
-
-#define EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL (editing_tools_straighten_tool_get_type ())
-#define EDITING_TOOLS_STRAIGHTEN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolClass))
-#define EDITING_TOOLS_IS_STRAIGHTEN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL))
-#define EDITING_TOOLS_IS_STRAIGHTEN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolClass))
-
-typedef struct _EditingToolsStraightenTool EditingToolsStraightenTool;
-typedef struct _EditingToolsStraightenToolClass EditingToolsStraightenToolClass;
-
-#define EDITING_TOOLS_TYPE_CROP_TOOL (editing_tools_crop_tool_get_type ())
-#define EDITING_TOOLS_CROP_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool))
-#define EDITING_TOOLS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolClass))
-#define EDITING_TOOLS_IS_CROP_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_CROP_TOOL))
-#define EDITING_TOOLS_IS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_CROP_TOOL))
-#define EDITING_TOOLS_CROP_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolClass))
-
-typedef struct _EditingToolsCropTool EditingToolsCropTool;
-typedef struct _EditingToolsCropToolClass EditingToolsCropToolClass;
-
-#define EDITING_TOOLS_TYPE_REDEYE_TOOL (editing_tools_redeye_tool_get_type ())
-#define EDITING_TOOLS_REDEYE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool))
-#define EDITING_TOOLS_REDEYE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolClass))
-#define EDITING_TOOLS_IS_REDEYE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL))
-#define EDITING_TOOLS_IS_REDEYE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_REDEYE_TOOL))
-#define EDITING_TOOLS_REDEYE_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolClass))
-
-typedef struct _EditingToolsRedeyeTool EditingToolsRedeyeTool;
-typedef struct _EditingToolsRedeyeToolClass EditingToolsRedeyeToolClass;
-
-#define EDITING_TOOLS_TYPE_ADJUST_TOOL (editing_tools_adjust_tool_get_type ())
-#define EDITING_TOOLS_ADJUST_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool))
-#define EDITING_TOOLS_ADJUST_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolClass))
-#define EDITING_TOOLS_IS_ADJUST_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL))
-#define EDITING_TOOLS_IS_ADJUST_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_ADJUST_TOOL))
-#define EDITING_TOOLS_ADJUST_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolClass))
-
-typedef struct _EditingToolsAdjustTool EditingToolsAdjustTool;
-typedef struct _EditingToolsAdjustToolClass EditingToolsAdjustToolClass;
-
-#define TYPE_ENHANCE_SINGLE_COMMAND (enhance_single_command_get_type ())
-#define ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand))
-#define ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass))
-#define IS_ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_SINGLE_COMMAND))
-#define IS_ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_SINGLE_COMMAND))
-#define ENHANCE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass))
-
-typedef struct _EnhanceSingleCommand EnhanceSingleCommand;
-typedef struct _EnhanceSingleCommandClass EnhanceSingleCommandClass;
-#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
-
-#define TYPE_ADJUST_COLORS_SINGLE_COMMAND (adjust_colors_single_command_get_type ())
-#define ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand))
-#define ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass))
-#define IS_ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND))
-#define IS_ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND))
-#define ADJUST_COLORS_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass))
-
-typedef struct _AdjustColorsSingleCommand AdjustColorsSingleCommand;
-typedef struct _AdjustColorsSingleCommandClass AdjustColorsSingleCommandClass;
-typedef struct _EditingToolsPhotoCanvasPrivate EditingToolsPhotoCanvasPrivate;
-typedef struct _EditingHostPageEditingHostCanvasPrivate EditingHostPageEditingHostCanvasPrivate;
-#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
-
-#define TYPE_LIBRARY_PHOTO_PAGE (library_photo_page_get_type ())
-#define LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage))
-#define LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass))
-#define IS_LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_PAGE))
-#define IS_LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_PAGE))
-#define LIBRARY_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass))
-
-typedef struct _LibraryPhotoPage LibraryPhotoPage;
-typedef struct _LibraryPhotoPageClass LibraryPhotoPageClass;
-typedef struct _LibraryPhotoPagePrivate LibraryPhotoPagePrivate;
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER (library_photo_page_library_photo_page_view_filter_get_type ())
-#define LIBRARY_PHOTO_PAGE_LIBRARY_PHOTO_PAGE_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER, LibraryPhotoPageLibraryPhotoPageViewFilter))
-#define LIBRARY_PHOTO_PAGE_LIBRARY_PHOTO_PAGE_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER, LibraryPhotoPageLibraryPhotoPageViewFilterClass))
-#define LIBRARY_PHOTO_PAGE_IS_LIBRARY_PHOTO_PAGE_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER))
-#define LIBRARY_PHOTO_PAGE_IS_LIBRARY_PHOTO_PAGE_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER))
-#define LIBRARY_PHOTO_PAGE_LIBRARY_PHOTO_PAGE_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER, LibraryPhotoPageLibraryPhotoPageViewFilterClass))
-
-typedef struct _LibraryPhotoPageLibraryPhotoPageViewFilter LibraryPhotoPageLibraryPhotoPageViewFilter;
-typedef struct _LibraryPhotoPageLibraryPhotoPageViewFilterClass LibraryPhotoPageLibraryPhotoPageViewFilterClass;
-enum {
- LIBRARY_PHOTO_PAGE_0_PROPERTY,
- LIBRARY_PHOTO_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* library_photo_page_properties[LIBRARY_PHOTO_PAGE_NUM_PROPERTIES];
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
-#define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL)))
-
-#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ())
-#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand))
-#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
-#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
-#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
-#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
-
-typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand;
-typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass;
-
-#define TYPE_SET_RAW_DEVELOPER_COMMAND (set_raw_developer_command_get_type ())
-#define SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand))
-#define SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass))
-#define IS_SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND))
-#define IS_SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND))
-#define SET_RAW_DEVELOPER_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass))
-
-typedef struct _SetRawDeveloperCommand SetRawDeveloperCommand;
-typedef struct _SetRawDeveloperCommandClass SetRawDeveloperCommandClass;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-
-#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ())
-#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage))
-#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
-#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE))
-#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE))
-#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
-
-typedef struct _SlideshowPage SlideshowPage;
-typedef struct _SlideshowPageClass SlideshowPageClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_EVENT_PAGE (event_page_get_type ())
-#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage))
-#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass))
-#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE))
-#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE))
-#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass))
-
-typedef struct _EventPage EventPage;
-typedef struct _EventPageClass EventPageClass;
-
-#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ())
-#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-
-typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand;
-typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass;
-
-#define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ())
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand))
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass))
-#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND))
-#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND))
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass))
-
-typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand;
-typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass;
-
-#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ())
-#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand))
-#define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass))
-#define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND))
-#define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND))
-#define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass))
-
-typedef struct _FlagUnflagCommand FlagUnflagCommand;
-typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass;
-
-#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))
-#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER))
-#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER))
-#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass))
-
-typedef struct _PrintManager PrintManager;
-typedef struct _PrintManagerClass PrintManagerClass;
-#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL)))
-
-#define TYPE_EXPORT_DIALOG (export_dialog_get_type ())
-#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog))
-#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass))
-#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG))
-#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG))
-#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass))
-
-typedef struct _ExportDialog ExportDialog;
-typedef struct _ExportDialogClass ExportDialogClass;
-
-#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-
-#define TYPE_SET_RATING_SINGLE_COMMAND (set_rating_single_command_get_type ())
-#define SET_RATING_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand))
-#define SET_RATING_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandClass))
-#define IS_SET_RATING_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_SINGLE_COMMAND))
-#define IS_SET_RATING_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_SINGLE_COMMAND))
-#define SET_RATING_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandClass))
-
-typedef struct _SetRatingSingleCommand SetRatingSingleCommand;
-typedef struct _SetRatingSingleCommandClass SetRatingSingleCommandClass;
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#define TYPE_TAGS_DIALOG (tags_dialog_get_type ())
-#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog))
-#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass))
-#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG))
-#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG))
-#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass))
-
-typedef struct _TagsDialog TagsDialog;
-typedef struct _TagsDialogClass TagsDialogClass;
-
-#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ())
-#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog))
-#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
-#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG))
-#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG))
-#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
-
-typedef struct _AddTagsDialog AddTagsDialog;
-typedef struct _AddTagsDialogClass AddTagsDialogClass;
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-
-#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ())
-#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand))
-#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
-#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND))
-#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND))
-#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
-
-typedef struct _AddTagsCommand AddTagsCommand;
-typedef struct _AddTagsCommandClass AddTagsCommandClass;
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-
-#define TYPE_MODIFY_TAGS_DIALOG (modify_tags_dialog_get_type ())
-#define MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog))
-#define MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass))
-#define IS_MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_DIALOG))
-#define IS_MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_DIALOG))
-#define MODIFY_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass))
-
-typedef struct _ModifyTagsDialog ModifyTagsDialog;
-typedef struct _ModifyTagsDialogClass ModifyTagsDialogClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_MODIFY_TAGS_COMMAND (modify_tags_command_get_type ())
-#define MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand))
-#define MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass))
-#define IS_MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_COMMAND))
-#define IS_MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_COMMAND))
-#define MODIFY_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass))
-
-typedef struct _ModifyTagsCommand ModifyTagsCommand;
-typedef struct _ModifyTagsCommandClass ModifyTagsCommandClass;
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-typedef struct _LibraryPhotoPageLibraryPhotoPageViewFilterPrivate LibraryPhotoPageLibraryPhotoPageViewFilterPrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _ZoomBuffer {
- GObject parent_instance;
- ZoomBufferPrivate * priv;
-};
-
-struct _ZoomBufferClass {
- GObjectClass parent_class;
-};
-
-typedef enum {
- ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED,
- ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS,
- ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED,
- ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY
-} ZoomBufferObjectState;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _ZoomState {
- Dimensions content_dimensions;
- Dimensions viewport_dimensions;
- gdouble zoom_factor;
- gdouble interpolation_factor;
- gdouble min_factor;
- gdouble max_factor;
- GdkPoint viewport_center;
-};
-
-struct _ZoomBufferPrivate {
- GdkPixbuf* iso_source_image;
- GdkPixbuf* reduced_source_image;
- GdkPixbuf* iso_transformed_image;
- GdkPixbuf* reduced_transformed_image;
- GdkPixbuf* preview_image;
- Photo* backing_photo;
- ZoomBufferObjectState object_state;
- GdkPixbuf* demand_transform_cached_pixbuf;
- ZoomState demand_transform_zoom_state;
- ZoomBufferTransformationJob* demand_transform_job;
- Workers* workers;
- SinglePhotoPage* parent_page;
- gboolean is_interactive_redraw_in_progress;
-};
-
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _ZoomBufferIsoSourceFetchJob {
- BackgroundJob parent_instance;
- ZoomBufferIsoSourceFetchJobPrivate * priv;
- GdkPixbuf* fetched;
-};
-
-struct _ZoomBufferIsoSourceFetchJobClass {
- BackgroundJobClass parent_class;
-};
-
-typedef enum {
- DIRECTION_FORWARD,
- DIRECTION_BACKWARD
-} Direction;
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-struct _ZoomBufferTransformationJob {
- BackgroundJob parent_instance;
- ZoomBufferTransformationJobPrivate * priv;
- GdkPixbuf* transformed;
-};
-
-struct _ZoomBufferTransformationJobClass {
- BackgroundJobClass parent_class;
-};
-
-struct _ZoomBufferIsoSourceFetchJobPrivate {
- Photo* to_fetch;
-};
-
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-typedef enum {
- BACKING_FETCH_MODE_SOURCE,
- BACKING_FETCH_MODE_BASELINE,
- BACKING_FETCH_MODE_MASTER,
- BACKING_FETCH_MODE_UNMODIFIED
-} BackingFetchMode;
-
-struct _ZoomBufferTransformationJobPrivate {
- GdkPixbuf* to_transform;
- PixelTransformer* transformer;
- GCancellable* cancellable;
-};
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS
-} SinglePhotoPageUpdateReason;
-
-struct _SinglePhotoPage {
- Page parent_instance;
- SinglePhotoPagePrivate * priv;
- GtkDrawingArea* canvas;
- GtkViewport* viewport;
-};
-
-struct _SinglePhotoPageClass {
- PageClass parent_class;
- gboolean (*is_zoom_supported) (SinglePhotoPage* self);
- void (*cancel_zoom) (SinglePhotoPage* self);
- void (*save_zoom_state) (SinglePhotoPage* self);
- void (*restore_zoom_state) (SinglePhotoPage* self);
- ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self);
- void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim);
- void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*on_previous_photo) (SinglePhotoPage* self);
- void (*on_next_photo) (SinglePhotoPage* self);
-};
-
-struct _EditingHostPage {
- SinglePhotoPage parent_instance;
- EditingHostPagePrivate * priv;
-};
-
-struct _EditingHostPageClass {
- SinglePhotoPageClass parent_class;
- gboolean (*on_zoom_slider_key_press) (EditingHostPage* self, GdkEventKey* event);
- void (*on_increase_size) (EditingHostPage* self);
- void (*on_decrease_size) (EditingHostPage* self);
- void (*photo_changing) (EditingHostPage* self, Photo* new_photo);
- DataView* (*create_photo_view) (EditingHostPage* self, DataSource* source);
- void (*update_ui) (EditingHostPage* self, gboolean missing);
- void (*notify_photo_backing_missing) (EditingHostPage* self, Photo* photo, gboolean missing);
- gboolean (*confirm_replace_photo) (EditingHostPage* self, Photo* old_photo, Photo* new_photo);
- gboolean (*on_double_click) (EditingHostPage* self, GdkEventButton* event);
- GdkPixbuf* (*get_bottom_left_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_top_left_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (EditingHostPage* self, gint scale);
-};
-
-struct _EditingHostPagePrivate {
- SourceCollection* sources;
- ViewCollection* parent_view;
- GdkPixbuf* swapped;
- gboolean pixbuf_dirty;
- GtkToolButton* rotate_button;
- GtkToggleToolButton* crop_button;
- GtkToggleToolButton* redeye_button;
- GtkToggleToolButton* adjust_button;
- GtkToggleToolButton* straighten_button;
- GtkToolButton* enhance_button;
- GtkScale* zoom_slider;
- GtkToolButton* prev_button;
- GtkToolButton* next_button;
- EditingToolsEditingTool* current_tool;
- GtkToggleToolButton* current_editing_toggle;
- GdkPixbuf* cancel_editing_pixbuf;
- gboolean photo_missing;
- PixbufCache* cache;
- PixbufCache* master_cache;
- DragAndDropHandler* dnd_handler;
- gboolean enable_interactive_zoom_refresh;
- GdkPoint zoom_pan_start_point;
- gboolean is_pan_in_progress;
- gdouble saved_slider_val;
- ZoomBuffer* zoom_buffer;
- GeeHashMap* last_locations;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-typedef enum {
- PIXBUF_CACHE_PHOTO_TYPE_BASELINE,
- PIXBUF_CACHE_PHOTO_TYPE_MASTER
-} PixbufCachePhotoType;
-
-typedef gboolean (*PixbufCacheCacheFilter) (Photo* photo, void* user_data);
-typedef DataView* (*CreateView) (DataSource* source, void* user_data);
-typedef gboolean (*CreateViewPredicate) (DataSource* source, void* user_data);
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-struct _EditingToolsEditingTool {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EditingToolsEditingToolPrivate * priv;
- EditingToolsPhotoCanvas* canvas;
- cairo_surface_t* surface;
- gchar* name;
-};
-
-struct _EditingToolsEditingToolClass {
- GTypeClass parent_class;
- void (*finalize) (EditingToolsEditingTool *self);
- void (*activate) (EditingToolsEditingTool* self, EditingToolsPhotoCanvas* canvas);
- void (*deactivate) (EditingToolsEditingTool* self);
- EditingToolsEditingToolWindow* (*get_tool_window) (EditingToolsEditingTool* self);
- GdkPixbuf* (*get_display_pixbuf) (EditingToolsEditingTool* self, Scaling* scaling, Photo* photo, Dimensions* max_dim, GError** error);
- void (*on_left_click) (EditingToolsEditingTool* self, gint x, gint y);
- void (*on_left_released) (EditingToolsEditingTool* self, gint x, gint y);
- void (*on_motion) (EditingToolsEditingTool* self, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (EditingToolsEditingTool* self);
- gboolean (*on_keypress) (EditingToolsEditingTool* self, GdkEventKey* event);
- void (*paint) (EditingToolsEditingTool* self, cairo_t* ctx);
-};
-
-typedef enum {
- ROTATION_CLOCKWISE,
- ROTATION_COUNTERCLOCKWISE,
- ROTATION_MIRROR,
- ROTATION_UPSIDE_DOWN
-} Rotation;
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-typedef EditingToolsEditingTool* (*EditingToolsEditingToolFactory) ();
-struct _EditingToolsPhotoCanvas {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EditingToolsPhotoCanvasPrivate * priv;
-};
-
-struct _EditingToolsPhotoCanvasClass {
- GTypeClass parent_class;
- void (*finalize) (EditingToolsPhotoCanvas *self);
- void (*repaint) (EditingToolsPhotoCanvas* self);
-};
-
-struct _EditingHostPageEditingHostCanvas {
- EditingToolsPhotoCanvas parent_instance;
- EditingHostPageEditingHostCanvasPrivate * priv;
-};
-
-struct _EditingHostPageEditingHostCanvasClass {
- EditingToolsPhotoCanvasClass parent_class;
-};
-
-struct _EditingHostPageEditingHostCanvasPrivate {
- EditingHostPage* host_page;
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _LibraryPhotoPage {
- EditingHostPage parent_instance;
- LibraryPhotoPagePrivate * priv;
-};
-
-struct _LibraryPhotoPageClass {
- EditingHostPageClass parent_class;
- void (*developer_changed) (LibraryPhotoPage* self, RawDeveloper rd);
-};
-
-struct _LibraryPhotoPagePrivate {
- CollectionPage* return_page;
- gboolean return_to_collection_on_release;
- LibraryPhotoPageLibraryPhotoPageViewFilter* filter;
- GtkMenu* context_menu;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _LibraryPhotoPageLibraryPhotoPageViewFilter {
- ViewFilter parent_instance;
- LibraryPhotoPageLibraryPhotoPageViewFilterPrivate * priv;
-};
-
-struct _LibraryPhotoPageLibraryPhotoPageViewFilterClass {
- ViewFilterClass parent_class;
-};
-
-
-static gpointer zoom_buffer_parent_class = NULL;
-static gpointer zoom_buffer_iso_source_fetch_job_parent_class = NULL;
-static gpointer zoom_buffer_transformation_job_parent_class = NULL;
-static gpointer editing_host_page_parent_class = NULL;
-static gpointer editing_host_page_editing_host_canvas_parent_class = NULL;
-static gpointer library_photo_page_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-static gpointer library_photo_page_library_photo_page_view_filter_parent_class = NULL;
-
-GType zoom_buffer_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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;
-static GType zoom_buffer_object_state_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType zoom_state_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-ZoomState* zoom_state_dup (const ZoomState* self);
-void zoom_state_free (ZoomState* self);
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-static GType zoom_buffer_transformation_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-#define ZOOM_BUFFER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ZOOM_BUFFER, ZoomBufferPrivate))
-#define ZOOM_BUFFER_MEGAPIXEL 1048576
-#define ZOOM_BUFFER_USE_REDUCED_THRESHOLD (((gint) 2.0) * ZOOM_BUFFER_MEGAPIXEL)
-ZoomBuffer* zoom_buffer_new (SinglePhotoPage* parent_page,
- Photo* backing_photo,
- GdkPixbuf* preview_image);
-ZoomBuffer* zoom_buffer_construct (GType object_type,
- SinglePhotoPage* parent_page,
- Photo* backing_photo,
- GdkPixbuf* preview_image);
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-static void zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self,
- BackgroundJob* job);
-static GType zoom_buffer_iso_source_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-GType direction_get_type (void) G_GNUC_CONST;
-void single_photo_page_repaint (SinglePhotoPage* self,
- Direction* direction);
-PixelTransformer* photo_get_pixel_transformer (Photo* self);
-static void zoom_buffer_on_iso_transformation_complete (ZoomBuffer* self,
- BackgroundJob* job);
-static void _zoom_buffer_on_iso_transformation_complete_completion_callback (BackgroundJob* job,
- gpointer self);
-static ZoomBufferTransformationJob* zoom_buffer_transformation_job_new (ZoomBuffer* owner,
- GdkPixbuf* to_transform,
- PixelTransformer* transformer,
- CompletionCallback completion_callback,
- void* completion_callback_target,
- GCancellable* cancellable);
-static ZoomBufferTransformationJob* zoom_buffer_transformation_job_construct (GType object_type,
- ZoomBuffer* owner,
- GdkPixbuf* to_transform,
- PixelTransformer* transformer,
- CompletionCallback completion_callback,
- void* completion_callback_target,
- GCancellable* cancellable);
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-static void zoom_buffer_on_demand_transform_complete (ZoomBuffer* self,
- BackgroundJob* job);
-static GdkPixbuf* zoom_buffer_get_view_projection_pixbuf (ZoomBuffer* self,
- ZoomState* zoom_state,
- GdkPixbuf* iso_pixbuf,
- GdkPixbuf* reduced_pixbuf);
-void zoom_state_get_viewing_rectangle_wrt_content (ZoomState *self,
- GdkRectangle* result);
-void zoom_state_get_viewing_rectangle_projection (ZoomState *self,
- GdkPixbuf* for_pixbuf,
- GdkRectangle* result);
-gdouble zoom_state_get_zoom_factor (ZoomState *self);
-static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffer* self,
- ZoomState* zoom_state);
-gboolean zoom_state_equals (ZoomState *self,
- ZoomState* other);
-GdkPixbuf* zoom_buffer_get_zoom_preview_image_internal (ZoomBuffer* self,
- ZoomState* zoom_state);
-void background_job_cancel (BackgroundJob* self);
-static void _zoom_buffer_on_demand_transform_complete_completion_callback (BackgroundJob* job,
- gpointer self);
-static void _zoom_buffer_on_iso_source_fetch_complete_completion_callback (BackgroundJob* job,
- gpointer self);
-static ZoomBufferIsoSourceFetchJob* zoom_buffer_iso_source_fetch_job_new (ZoomBuffer* owner,
- Photo* to_fetch,
- CompletionCallback completion_callback,
- void* completion_callback_target);
-static ZoomBufferIsoSourceFetchJob* zoom_buffer_iso_source_fetch_job_construct (GType object_type,
- ZoomBuffer* owner,
- Photo* to_fetch,
- CompletionCallback completion_callback,
- void* completion_callback_target);
-Photo* zoom_buffer_get_backing_photo (ZoomBuffer* self);
-void zoom_buffer_update_preview_image (ZoomBuffer* self,
- GdkPixbuf* preview_image);
-void zoom_buffer_flush_demand_cache (ZoomBuffer* self,
- ZoomState* initial_zoom_state);
-GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self,
- ZoomState* zoom_state);
-gdouble zoom_state_get_interpolation_factor (ZoomState *self);
-GdkPixbuf* zoom_buffer_get_zoom_preview_image (ZoomBuffer* self,
- ZoomState* zoom_state);
-#define ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJobPrivate))
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-static void zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GType photo_exception_get_type (void) G_GNUC_CONST;
-GType backing_fetch_mode_get_type (void) G_GNUC_CONST;
-GdkPixbuf* photo_get_pixbuf_with_options (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- BackingFetchMode fetch_mode,
- GError** error);
-void scaling_for_original (Scaling* result);
-static void zoom_buffer_iso_source_fetch_job_finalize (BackgroundJob * obj);
-#define ZOOM_BUFFER_TRANSFORMATION_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJobPrivate))
-static void zoom_buffer_transformation_job_real_execute (BackgroundJob* base);
-static void zoom_buffer_transformation_job_finalize (BackgroundJob * obj);
-static void zoom_buffer_finalize (GObject * obj);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST;
-GType editing_host_page_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-gpointer editing_tools_editing_tool_ref (gpointer instance);
-void editing_tools_editing_tool_unref (gpointer instance);
-GParamSpec* editing_tools_param_spec_editing_tool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void editing_tools_value_set_editing_tool (GValue* value,
- gpointer v_object);
-void editing_tools_value_take_editing_tool (GValue* value,
- gpointer v_object);
-gpointer editing_tools_value_get_editing_tool (const GValue* value);
-GType editing_tools_editing_tool_get_type (void) G_GNUC_CONST;
-GType pixbuf_cache_get_type (void) G_GNUC_CONST;
-gpointer drag_and_drop_handler_ref (gpointer instance);
-void drag_and_drop_handler_unref (gpointer instance);
-GParamSpec* param_spec_drag_and_drop_handler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_drag_and_drop_handler (GValue* value,
- gpointer v_object);
-void value_take_drag_and_drop_handler (GValue* value,
- gpointer v_object);
-gpointer value_get_drag_and_drop_handler (const GValue* value);
-GType drag_and_drop_handler_get_type (void) G_GNUC_CONST;
-#define EDITING_HOST_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDITING_HOST_PAGE, EditingHostPagePrivate))
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void editing_host_page_on_photos_altered (EditingHostPage* self,
- GeeMap* map);
-static void _editing_host_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-ViewCollection* page_get_view (Page* self);
-static void editing_host_page_on_view_contents_ordering_altered (EditingHostPage* self);
-static void _editing_host_page_on_view_contents_ordering_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static void _editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed (DataCollection* _sender,
- gpointer self);
-#define RESOURCES_PREVIOUS_LABEL _ ("_Previous")
-#define RESOURCES_NEXT_LABEL _ ("_Next")
-#define EDITING_HOST_PAGE_TRINKET_SCALE 20
-#define EDITING_HOST_PAGE_TRINKET_PADDING 1
-#define EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE 0.1
-#define EDITING_HOST_PAGE_PAN_INCREMENT_SIZE 64
-#define EDITING_HOST_PAGE_TOOL_WINDOW_SEPARATOR 8
-#define EDITING_HOST_PAGE_PIXBUF_CACHE_COUNT 5
-#define EDITING_HOST_PAGE_ORIGINAL_PIXBUF_CACHE_COUNT 5
-EditingHostPage* editing_host_page_construct (GType object_type,
- SourceCollection* sources,
- const gchar* name);
-SinglePhotoPage* single_photo_page_construct (GType object_type,
- const gchar* page_name,
- gboolean scale_up_to_viewport);
-static void editing_host_page_on_viewport_resized (EditingHostPage* self);
-static void _editing_host_page_on_viewport_resized_gtk_widget_size_allocate (GtkWidget* _sender,
- GtkAllocation* allocation,
- gpointer self);
-GtkToolbar* page_get_toolbar (Page* self);
-#define RESOURCES_ROTATE_CW_LABEL _ ("Rotate")
-#define RESOURCES_CLOCKWISE "object-rotate-right"
-#define RESOURCES_ROTATE_CW_TOOLTIP _ ("Rotate the photos right (press Ctrl to rotate left)")
-void editing_host_page_on_rotate_clockwise (EditingHostPage* self);
-static void _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-#define RESOURCES_CROP_LABEL _ ("Crop")
-#define RESOURCES_CROP_TOOLTIP _ ("Crop the photo’s size")
-static void editing_host_page_on_crop_toggled (EditingHostPage* self);
-static void _editing_host_page_on_crop_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender,
- gpointer self);
-#define RESOURCES_STRAIGHTEN_LABEL _ ("Straighten")
-#define RESOURCES_STRAIGHTEN_TOOLTIP _ ("Straighten the photo")
-static void editing_host_page_on_straighten_toggled (EditingHostPage* self);
-static void _editing_host_page_on_straighten_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender,
- gpointer self);
-#define RESOURCES_RED_EYE_LABEL _ ("Red-eye")
-#define RESOURCES_RED_EYE_TOOLTIP _ ("Reduce or eliminate any red-eye effects in the photo")
-static void editing_host_page_on_redeye_toggled (EditingHostPage* self);
-static void _editing_host_page_on_redeye_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender,
- gpointer self);
-#define RESOURCES_ADJUST "image-adjust"
-#define RESOURCES_ADJUST_LABEL _ ("Adjust")
-#define RESOURCES_ADJUST_TOOLTIP _ ("Adjust the photo’s color and tone")
-static void editing_host_page_on_adjust_toggled (EditingHostPage* self);
-static void _editing_host_page_on_adjust_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender,
- gpointer self);
-#define RESOURCES_ENHANCE_LABEL _ ("Enhance")
-#define RESOURCES_ENHANCE "shotwell-auto-enhance"
-#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance")
-void editing_host_page_on_enhance (EditingHostPage* self);
-static void _editing_host_page_on_enhance_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-GdkPixbuf* resources_load_icon (const gchar* name,
- gint scale);
-#define RESOURCES_ICON_ZOOM_OUT "zoom-out.png"
-#define RESOURCES_ICON_ZOOM_SCALE 16
-static gboolean editing_host_page_on_zoom_out_pressed (EditingHostPage* self,
- GdkEventButton* event);
-static gboolean _editing_host_page_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-static void editing_host_page_on_zoom_slider_value_changed (EditingHostPage* self);
-static void _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static gboolean editing_host_page_on_zoom_slider_drag_begin (EditingHostPage* self,
- GdkEventButton* event);
-static gboolean _editing_host_page_on_zoom_slider_drag_begin_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-static gboolean editing_host_page_on_zoom_slider_drag_end (EditingHostPage* self,
- GdkEventButton* event);
-static gboolean _editing_host_page_on_zoom_slider_drag_end_gtk_widget_button_release_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-gboolean editing_host_page_on_zoom_slider_key_press (EditingHostPage* self,
- GdkEventKey* event);
-static gboolean _editing_host_page_on_zoom_slider_key_press_gtk_widget_key_press_event (GtkWidget* _sender,
- GdkEventKey* event,
- gpointer self);
-#define RESOURCES_ICON_ZOOM_IN "zoom-in.png"
-static gboolean editing_host_page_on_zoom_in_pressed (EditingHostPage* self,
- GdkEventButton* event);
-static gboolean _editing_host_page_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-void single_photo_page_on_previous_photo (SinglePhotoPage* self);
-static void _single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-void single_photo_page_on_next_photo (SinglePhotoPage* self);
-static void _single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-void single_photo_page_get_zoom_state (SinglePhotoPage* self,
- ZoomState* result);
-void zoom_state_init_rescale (ZoomState *self,
- ZoomState* existing,
- gdouble new_slider_val);
-void single_photo_page_on_interactive_zoom (SinglePhotoPage* self,
- ZoomState* interactive_zoom_state);
-gboolean zoom_state_is_default (ZoomState *self);
-void single_photo_page_set_zoom_state (SinglePhotoPage* self,
- ZoomState* zoom_state);
-void single_photo_page_cancel_zoom (SinglePhotoPage* self);
-static void editing_host_page_update_cursor_for_zoom_context (EditingHostPage* self);
-GtkWindow* page_get_container (Page* self);
-void fullscreen_window_disable_toolbar_dismissal (FullscreenWindow* self);
-void fullscreen_window_update_toolbar_dismissal (FullscreenWindow* self);
-void editing_host_page_snap_zoom_to_min (EditingHostPage* self);
-void editing_host_page_snap_zoom_to_max (EditingHostPage* self);
-static void editing_host_page_get_cursor_wrt_viewport (EditingHostPage* self,
- GdkEventScroll* event,
- GdkPoint* result);
-void zoom_state_get_viewing_rectangle_wrt_screen (ZoomState *self,
- GdkRectangle* result);
-static void editing_host_page_get_cursor_wrt_viewport_center (EditingHostPage* self,
- GdkEventScroll* event,
- GdkPoint* result);
-void subtract_points (GdkPoint* p1,
- GdkPoint* p2,
- GdkPoint* result);
-static void editing_host_page_get_iso_pixel_under_cursor (EditingHostPage* self,
- GdkEventScroll* event,
- GdkPoint* result);
-void scale_point (GdkPoint* p,
- gdouble factor,
- GdkPoint* result);
-void zoom_state_get_viewport_center (ZoomState *self,
- GdkPoint* result);
-void add_points (GdkPoint* p1,
- GdkPoint* p2,
- GdkPoint* result);
-static gdouble editing_host_page_snap_interpolation_factor (EditingHostPage* self,
- gdouble interp);
-static gdouble editing_host_page_adjust_interpolation_factor (EditingHostPage* self,
- gdouble adjustment);
-static void editing_host_page_zoom_about_event_cursor_point (EditingHostPage* self,
- GdkEventScroll* event,
- gdouble zoom_increment);
-gboolean zoom_state_is_min (ZoomState *self);
-void zoom_state_init_pan (ZoomState *self,
- ZoomState* existing,
- GdkPoint* new_viewport_center);
-void editing_host_page_snap_zoom_to_isomorphic (EditingHostPage* self);
-void zoom_state_init_rescale_to_isomorphic (ZoomState *self,
- ZoomState* existing);
-static gboolean editing_host_page_real_on_zoom_slider_key_press (EditingHostPage* self,
- GdkEventKey* event);
-void page_activate_action (Page* self,
- const gchar* name);
-void editing_host_page_on_increase_size (EditingHostPage* self);
-static void editing_host_page_real_on_increase_size (EditingHostPage* self);
-void editing_host_page_on_decrease_size (EditingHostPage* self);
-static void editing_host_page_real_on_decrease_size (EditingHostPage* self);
-static void editing_host_page_real_save_zoom_state (SinglePhotoPage* base);
-void single_photo_page_save_zoom_state (SinglePhotoPage* self);
-static ZoomBuffer* editing_host_page_real_get_zoom_buffer (SinglePhotoPage* base);
-static gboolean editing_host_page_real_on_mousewheel_up (Page* base,
- GdkEventScroll* event);
-gboolean zoom_state_is_max (ZoomState *self);
-static gboolean editing_host_page_real_on_mousewheel_down (Page* base,
- GdkEventScroll* event);
-static void editing_host_page_real_restore_zoom_state (SinglePhotoPage* base);
-void single_photo_page_restore_zoom_state (SinglePhotoPage* self);
-static gboolean editing_host_page_real_is_zoom_supported (SinglePhotoPage* base);
-static void editing_host_page_real_set_container (Page* base,
- GtkWindow* container);
-void page_set_container (Page* self,
- GtkWindow* container);
-DragAndDropHandler* drag_and_drop_handler_new (Page* page);
-DragAndDropHandler* drag_and_drop_handler_construct (GType object_type,
- Page* page);
-ViewCollection* editing_host_page_get_parent_view (EditingHostPage* self);
-gboolean editing_host_page_has_photo (EditingHostPage* self);
-Photo* editing_host_page_get_photo (EditingHostPage* self);
-gint view_collection_get_selected_count (ViewCollection* self);
-DataView* view_collection_get_selected_at (ViewCollection* self,
- gint index);
-DataSource* data_view_get_source (DataView* self);
-void editing_host_page_photo_changing (EditingHostPage* self,
- Photo* new_photo);
-static void editing_host_page_real_photo_changing (EditingHostPage* self,
- Photo* new_photo);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_file_format (Photo* self);
-void editing_host_page_set_photo_missing (EditingHostPage* self,
- gboolean missing);
-GFile* media_source_get_file (MediaSource* self);
-void editing_host_page_update_ui (EditingHostPage* self,
- gboolean missing);
-static void editing_host_page_set_photo (EditingHostPage* self,
- Photo* photo);
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-void view_collection_unselect_all (ViewCollection* self);
-GType marker_get_type (void) G_GNUC_CONST;
-Marker* data_collection_mark (DataCollection* self,
- DataObject* object);
-void view_collection_select_marked (ViewCollection* self,
- Marker* marker);
-DataView* view_collection_get_view_for_source_filtered (ViewCollection* self,
- DataSource* source);
-static void editing_host_page_real_realize (GtkWidget* base);
-static void editing_host_page_rebuild_caches (EditingHostPage* self,
- const gchar* caller);
-static void editing_host_page_real_switched_to (Page* base);
-void page_switched_to (Page* self);
-static void editing_host_page_replace_photo (EditingHostPage* self,
- Photo* new_photo);
-static void editing_host_page_real_switching_from (Page* base);
-void page_switching_from (Page* self);
-GType command_get_type (void) G_GNUC_CONST;
-static void editing_host_page_deactivate_tool (EditingHostPage* self,
- Command* command,
- GdkPixbuf* new_pixbuf,
- Dimensions* new_max_dim,
- gboolean needs_improvement);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-void data_collection_clear (DataCollection* self);
-static void editing_host_page_real_switching_to_fullscreen (Page* base,
- FullscreenWindow* fsw);
-void page_switching_to_fullscreen (Page* self,
- FullscreenWindow* fsw);
-Page* page_window_get_current_page (PageWindow* self);
-static void editing_host_page_on_selection_changed (EditingHostPage* self,
- GeeIterable* selected);
-static void _editing_host_page_on_selection_changed_view_collection_items_selected (ViewCollection* _sender,
- GeeIterable* selected,
- gpointer self);
-static void editing_host_page_real_returning_from_fullscreen (Page* base,
- FullscreenWindow* fsw);
-void page_returning_from_fullscreen (Page* self,
- FullscreenWindow* fsw);
-void editing_host_page_enable_rotate (EditingHostPage* self,
- gboolean should_enable);
-void single_photo_page_get_canvas_scaling (SinglePhotoPage* self,
- Scaling* result);
-void pixbuf_cache_get_scaling (PixbufCache* self,
- Scaling* result);
-gboolean scaling_equals (Scaling *self,
- Scaling* scaling);
-gchar* scaling_to_string (Scaling *self);
-static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self,
- Photo* photo,
- GdkPixbuf* pixbuf,
- GError* err);
-static void _editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched (PixbufCache* _sender,
- Photo* photo,
- GdkPixbuf* pixbuf,
- GError* err,
- gpointer self);
-void pixbuf_cache_cancel_all (PixbufCache* self);
-GType pixbuf_cache_photo_type_get_type (void) G_GNUC_CONST;
-PixbufCache* pixbuf_cache_new (SourceCollection* sources,
- PixbufCachePhotoType type,
- Scaling* scaling,
- gint max_count,
- PixbufCacheCacheFilter filter,
- void* filter_target);
-PixbufCache* pixbuf_cache_construct (GType object_type,
- SourceCollection* sources,
- PixbufCachePhotoType type,
- Scaling* scaling,
- gint max_count,
- PixbufCacheCacheFilter filter,
- void* filter_target);
-static gboolean editing_host_page_master_cache_filter (EditingHostPage* self,
- Photo* photo);
-static gboolean _editing_host_page_master_cache_filter_pixbuf_cache_cache_filter (Photo* photo,
- gpointer self);
-static void editing_host_page_refresh_caches (EditingHostPage* self,
- const gchar* caller);
-gchar* data_object_to_string (DataObject* self);
-static void editing_host_page_prefetch_neighbors (EditingHostPage* self,
- ViewCollection* controller,
- Photo* photo);
-gboolean photo_has_transformations (Photo* self);
-gboolean photo_has_editable (Photo* self);
-gboolean data_source_equals (DataSource* self,
- DataSource* source);
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-GdkPixbuf* editing_tools_editing_tool_get_display_pixbuf (EditingToolsEditingTool* self,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error);
-void single_photo_page_set_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* unscaled,
- Dimensions* max_dim,
- Direction* direction);
-void editing_host_page_notify_photo_backing_missing (EditingHostPage* self,
- Photo* photo,
- gboolean missing);
-GType pixbuf_cache_pixbuf_cache_batch_get_type (void) G_GNUC_CONST;
-PixbufCachePixbufCacheBatch* pixbuf_cache_pixbuf_cache_batch_new (void);
-PixbufCachePixbufCacheBatch* pixbuf_cache_pixbuf_cache_batch_construct (GType object_type);
-gboolean view_collection_get_immediate_neighbors (ViewCollection* self,
- DataSource* home,
- DataSource* * next,
- DataSource* * prev,
- const gchar* type_selector);
-#define PHOTO_TYPENAME "thumb"
-GeeSet* view_collection_get_extended_neighbors (ViewCollection* self,
- DataSource* home,
- const gchar* typename);
-void pixbuf_cache_prefetch_batch (PixbufCache* self,
- PixbufCachePixbufCacheBatch* batch,
- gboolean force);
-static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self,
- ViewCollection* old_controller,
- Photo* old_photo,
- ViewCollection* new_controller,
- Photo* new_photo);
-void pixbuf_cache_drop (PixbufCache* self,
- Photo* photo);
-DataView* editing_host_page_create_photo_view (EditingHostPage* self,
- DataSource* source);
-static DataView* editing_host_page_real_create_photo_view (EditingHostPage* self,
- DataSource* source);
-PhotoView* photo_view_new (PhotoSource* source);
-PhotoView* photo_view_construct (GType object_type,
- PhotoSource* source);
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType photo_view_get_type (void) G_GNUC_CONST;
-static gboolean editing_host_page_is_photo (EditingHostPage* self,
- DataSource* source);
-void editing_host_page_display_copy_of (EditingHostPage* self,
- ViewCollection* controller,
- Photo* starting_photo);
-void view_collection_copy_into (ViewCollection* self,
- ViewCollection* to_copy,
- CreateView copying_ctor,
- void* copying_ctor_target,
- CreateViewPredicate should_copy,
- void* should_copy_target);
-static DataView* _editing_host_page_create_photo_view_create_view (DataSource* source,
- gpointer self);
-static gboolean _editing_host_page_is_photo_create_view_predicate (DataSource* source,
- gpointer self);
-void editing_host_page_display_mirror_of (EditingHostPage* self,
- ViewCollection* controller,
- Photo* starting_photo);
-void view_collection_mirror (ViewCollection* self,
- ViewCollection* to_mirror,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target,
- CreateViewPredicate should_mirror,
- void* should_mirror_target);
-static void editing_host_page_real_update_ui (EditingHostPage* self,
- gboolean missing);
-static void editing_host_page_real_notify_photo_backing_missing (EditingHostPage* self,
- Photo* photo,
- gboolean missing);
-static void editing_host_page_draw_message (EditingHostPage* self,
- const gchar* message);
-void single_photo_page_paint_text (SinglePhotoPage* self,
- PangoLayout* pango_layout,
- gint x,
- gint y);
-GdkPixbuf* media_source_get_preview_pixbuf (MediaSource* self,
- Scaling* scaling,
- GError** error);
-gboolean editing_host_page_get_photo_missing (EditingHostPage* self);
-gboolean editing_host_page_confirm_replace_photo (EditingHostPage* self,
- Photo* old_photo,
- Photo* new_photo);
-static gboolean editing_host_page_real_confirm_replace_photo (EditingHostPage* self,
- Photo* old_photo,
- Photo* new_photo);
-static GdkPixbuf* editing_host_page_get_zoom_pixbuf (EditingHostPage* self,
- Photo* new_photo);
-GdkPixbuf* pixbuf_cache_get_ready_pixbuf (PixbufCache* self,
- Photo* photo);
-GdkPixbuf* get_placeholder_pixbuf (void);
-GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self,
- GdkPixbuf* pixbuf,
- GdkInterpType interp,
- gboolean scale_up);
-void page_set_page_name (Page* self,
- const gchar* page_name);
-gchar* data_object_get_name (DataObject* self);
-static void editing_host_page_quick_update_pixbuf (EditingHostPage* self);
-static void editing_host_page_real_cancel_zoom (SinglePhotoPage* base);
-void single_photo_page_get_surface_dim (SinglePhotoPage* self,
- Dimensions* result);
-void zoom_state_init (ZoomState *self,
- Dimensions* content_dimensions,
- Dimensions* viewport_dimensions,
- gdouble slider_val,
- GdkPoint* viewport_center);
-void page_set_page_cursor (Page* self,
- GdkCursorType cursor_type);
-void pixbuf_cache_prefetch (PixbufCache* self,
- Photo* photo,
- BackgroundJobJobPriority priority,
- gboolean force);
-static gboolean editing_host_page_update_pixbuf (EditingHostPage* self);
-static void editing_host_page_real_on_resize (Page* base,
- GdkRectangle* rect);
-void page_on_resize (Page* self,
- GdkRectangle* rect);
-static void editing_host_page_track_tool_window (EditingHostPage* self);
-static void editing_host_page_real_on_resize_finished (Page* base,
- GdkRectangle* rect);
-static void editing_host_page_real_update_actions (Page* base,
- gint selected_count,
- gint count);
-gint view_collection_get_sources_of_type_count (ViewCollection* self,
- GType t);
-gboolean photo_check_can_rotate (Photo* self);
-gboolean editing_host_page_is_rotate_available (EditingHostPage* self,
- Photo* photo);
-gboolean editing_tools_crop_tool_is_available (Photo* photo,
- Scaling* scaling);
-gboolean editing_tools_redeye_tool_is_available (Photo* photo,
- Scaling* scaling);
-gboolean editing_tools_adjust_tool_is_available (Photo* photo,
- Scaling* scaling);
-gboolean editing_host_page_is_enhance_available (EditingHostPage* self,
- Photo* photo);
-gboolean editing_tools_straighten_tool_is_available (Photo* photo,
- Scaling* scaling);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-static gboolean editing_host_page_real_on_shift_pressed (Page* base,
- GdkEventKey* event);
-gboolean page_get_ctrl_pressed (Page* self);
-gboolean page_get_alt_pressed (Page* self);
-static void editing_host_page_swap_in_original (EditingHostPage* self);
-gboolean page_on_shift_pressed (Page* self,
- GdkEventKey* event);
-static gboolean editing_host_page_real_on_shift_released (Page* base,
- GdkEventKey* event);
-static void editing_host_page_swap_out_original (EditingHostPage* self);
-gboolean page_on_shift_released (Page* self,
- GdkEventKey* event);
-static gboolean editing_host_page_real_on_alt_pressed (Page* base,
- GdkEventKey* event);
-gboolean page_on_alt_pressed (Page* self,
- GdkEventKey* event);
-static gboolean editing_host_page_real_on_alt_released (Page* base,
- GdkEventKey* event);
-gboolean page_get_shift_pressed (Page* self);
-gboolean page_on_alt_released (Page* self,
- GdkEventKey* event);
-GdkPixbuf* photo_get_prefetched_copy (Photo* self,
- GError** error);
-GType orientation_get_type (void) G_GNUC_CONST;
-Orientation photo_get_original_orientation (Photo* self);
-GdkPixbuf* orientation_rotate_pixbuf (Orientation self,
- GdkPixbuf* pixbuf);
-GdkPixbuf* single_photo_page_get_unscaled_pixbuf (SinglePhotoPage* self);
-void photo_get_master_dimensions (Photo* self,
- Dimensions* result);
-static void editing_host_page_activate_tool (EditingHostPage* self,
- EditingToolsEditingTool* tool);
-gpointer editing_tools_photo_canvas_ref (gpointer instance);
-void editing_tools_photo_canvas_unref (gpointer instance);
-GParamSpec* editing_tools_param_spec_photo_canvas (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void editing_tools_value_set_photo_canvas (GValue* value,
- gpointer v_object);
-void editing_tools_value_take_photo_canvas (GValue* value,
- gpointer v_object);
-gpointer editing_tools_value_get_photo_canvas (const GValue* value);
-GType editing_tools_photo_canvas_get_type (void) G_GNUC_CONST;
-static EditingHostPageEditingHostCanvas* editing_host_page_editing_host_canvas_new (EditingHostPage* host_page);
-static EditingHostPageEditingHostCanvas* editing_host_page_editing_host_canvas_construct (GType object_type,
- EditingHostPage* host_page);
-static GType editing_host_page_editing_host_canvas_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-void editing_tools_editing_tool_activate (EditingToolsEditingTool* self,
- EditingToolsPhotoCanvas* canvas);
-static void editing_host_page_place_tool_window (EditingHostPage* self);
-GType editing_tools_editing_tool_window_get_type (void) G_GNUC_CONST;
-EditingToolsEditingToolWindow* editing_tools_editing_tool_get_tool_window (EditingToolsEditingTool* self);
-gboolean editing_tools_editing_tool_window_has_user_moved (EditingToolsEditingToolWindow* self);
-void editing_tools_editing_tool_deactivate (EditingToolsEditingTool* self);
-static void editing_host_page_on_tool_activated (EditingHostPage* self);
-static void _editing_host_page_on_tool_activated_editing_tools_editing_tool_activated (EditingToolsEditingTool* _sender,
- gpointer self);
-static void editing_host_page_on_tool_deactivated (EditingHostPage* self);
-static void _editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender,
- gpointer self);
-static void editing_host_page_on_tool_applied (EditingHostPage* self,
- Command* command,
- GdkPixbuf* new_pixbuf,
- Dimensions* new_max_dim,
- gboolean needs_improvement);
-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);
-static void editing_host_page_on_tool_cancelled (EditingHostPage* self);
-static void _editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled (EditingToolsEditingTool* _sender,
- gpointer self);
-static void editing_host_page_on_tool_aborted (EditingHostPage* self);
-static void _editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted (EditingToolsEditingTool* _sender,
- gpointer self);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-static gboolean _editing_host_page_update_pixbuf_gsource_func (gpointer self);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* page_get_command_manager (Page* self);
-void command_manager_execute (CommandManager* self,
- Command* command);
-gboolean editing_host_page_on_double_click (EditingHostPage* self,
- GdkEventButton* event);
-static gboolean editing_host_page_real_on_double_click (EditingHostPage* self,
- GdkEventButton* event);
-static gboolean editing_host_page_real_on_left_click (Page* base,
- GdkEventButton* event);
-void page_suspend_cursor_hiding (Page* self);
-gboolean single_photo_page_is_inside_pixbuf (SinglePhotoPage* self,
- gint x,
- gint y);
-void editing_tools_editing_tool_on_left_click (EditingToolsEditingTool* self,
- gint x,
- gint y);
-static gboolean editing_host_page_real_on_left_released (Page* base,
- GdkEventButton* event);
-ZoomBuffer* single_photo_page_get_zoom_buffer (SinglePhotoPage* self);
-void page_restore_cursor_hiding (Page* self);
-void editing_tools_editing_tool_on_left_released (EditingToolsEditingTool* self,
- gint x,
- gint y);
-static gboolean editing_host_page_real_on_right_click (Page* base,
- GdkEventButton* event);
-gboolean page_on_context_buttonpress (Page* self,
- GdkEventButton* event);
-static gboolean editing_host_page_on_fetch_original (EditingHostPage* self);
-static gboolean _editing_host_page_on_fetch_original_gsource_func (gpointer self);
-gint data_collection_get_count (DataCollection* self);
-static gboolean editing_host_page_is_panning_possible (EditingHostPage* self);
-gint zoom_state_get_zoomed_width (ZoomState *self);
-gint zoom_state_get_zoomed_height (ZoomState *self);
-static gboolean editing_host_page_real_on_motion (Page* base,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask);
-void editing_tools_editing_tool_on_motion (EditingToolsEditingTool* self,
- gint x,
- gint y,
- GdkModifierType mask);
-void single_photo_page_on_interactive_pan (SinglePhotoPage* self,
- ZoomState* interactive_zoom_state);
-gboolean page_on_motion (Page* self,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask);
-static gboolean editing_host_page_real_on_leave_notify_event (Page* base);
-gboolean editing_tools_editing_tool_on_leave_notify_event (EditingToolsEditingTool* self);
-gboolean page_on_leave_notify_event (Page* self);
-static void editing_host_page_real_on_move (Page* base,
- GdkRectangle* rect);
-void page_on_move (Page* self,
- GdkRectangle* rect);
-static void editing_host_page_real_on_move_finished (Page* base,
- GdkRectangle* rect);
-void page_on_move_finished (Page* self,
- GdkRectangle* rect);
-static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self,
- GdkEventKey* event);
-static gboolean editing_host_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-gboolean editing_tools_editing_tool_on_keypress (EditingToolsEditingTool* self,
- GdkEventKey* event);
-static void editing_host_page_real_new_surface (SinglePhotoPage* base,
- cairo_t* default_ctx,
- Dimensions* dim);
-void editing_tools_photo_canvas_set_surface (EditingToolsPhotoCanvas* self,
- cairo_t* default_ctx,
- Dimensions* surface_dim);
-static void editing_host_page_real_updated_pixbuf (SinglePhotoPage* base,
- GdkPixbuf* pixbuf,
- SinglePhotoPageUpdateReason reason,
- Dimensions* old_dim);
-void editing_tools_photo_canvas_resized_pixbuf (EditingToolsPhotoCanvas* self,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position);
-void single_photo_page_get_scaled_pixbuf_position (SinglePhotoPage* self,
- GdkRectangle* result);
-GdkPixbuf* editing_host_page_get_bottom_left_trinket (EditingHostPage* self,
- gint scale);
-static GdkPixbuf* editing_host_page_real_get_bottom_left_trinket (EditingHostPage* self,
- gint scale);
-GdkPixbuf* editing_host_page_get_top_left_trinket (EditingHostPage* self,
- gint scale);
-static GdkPixbuf* editing_host_page_real_get_top_left_trinket (EditingHostPage* self,
- gint scale);
-GdkPixbuf* editing_host_page_get_top_right_trinket (EditingHostPage* self,
- gint scale);
-static GdkPixbuf* editing_host_page_real_get_top_right_trinket (EditingHostPage* self,
- gint scale);
-GdkPixbuf* editing_host_page_get_bottom_right_trinket (EditingHostPage* self,
- gint scale);
-static GdkPixbuf* editing_host_page_real_get_bottom_right_trinket (EditingHostPage* self,
- gint scale);
-static void editing_host_page_real_paint (SinglePhotoPage* base,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-void editing_tools_editing_tool_paint (EditingToolsEditingTool* self,
- cairo_t* ctx);
-void set_source_color_from_string (cairo_t* ctx,
- const gchar* spec);
-void single_photo_page_paint (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-GType rotation_get_type (void) G_GNUC_CONST;
-static void editing_host_page_rotate (EditingHostPage* self,
- Rotation rotation,
- const gchar* name,
- const gchar* description);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType single_data_source_command_get_type (void) G_GNUC_CONST;
-GType rotate_single_command_get_type (void) G_GNUC_CONST;
-RotateSingleCommand* rotate_single_command_new (Photo* photo,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation);
-RotateSingleCommand* rotate_single_command_construct (GType object_type,
- Photo* photo,
- Rotation rotation,
- const gchar* name,
- const gchar* explanation);
-#define RESOURCES_ROTATE_CW_FULL_LABEL _ ("Rotate Right")
-void editing_host_page_on_rotate_counterclockwise (EditingHostPage* self);
-#define RESOURCES_ROTATE_CCW_FULL_LABEL _ ("Rotate Left")
-#define RESOURCES_ROTATE_CCW_TOOLTIP _ ("Rotate the photos left")
-void editing_host_page_on_flip_horizontally (EditingHostPage* self);
-#define RESOURCES_HFLIP_LABEL _ ("Flip Horizontally")
-void editing_host_page_on_flip_vertically (EditingHostPage* self);
-#define RESOURCES_VFLIP_LABEL _ ("Flip Vertically")
-void editing_host_page_on_revert (EditingHostPage* self);
-gboolean revert_editable_dialog (GtkWindow* owner,
- GeeCollection* photos);
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-GeeCollection* view_collection_get_sources (ViewCollection* self);
-void photo_revert_to_master (Photo* self,
- gboolean notify);
-GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST;
-GType revert_single_command_get_type (void) G_GNUC_CONST;
-RevertSingleCommand* revert_single_command_new (Photo* photo);
-RevertSingleCommand* revert_single_command_construct (GType object_type,
- Photo* photo);
-void editing_host_page_on_edit_title (EditingHostPage* self);
-GType library_photo_get_type (void) G_GNUC_CONST;
-gpointer text_entry_dialog_mediator_ref (gpointer instance);
-void text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_text_entry_dialog_mediator (const GValue* value);
-GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType edit_title_dialog_get_type (void) G_GNUC_CONST;
-gchar* media_source_get_title (MediaSource* self);
-EditTitleDialog* edit_title_dialog_new (const gchar* photo_title);
-EditTitleDialog* edit_title_dialog_construct (GType object_type,
- const gchar* photo_title);
-gchar* edit_title_dialog_execute (EditTitleDialog* self);
-GType edit_title_command_get_type (void) G_GNUC_CONST;
-EditTitleCommand* edit_title_command_new (MediaSource* source,
- const gchar* new_title);
-EditTitleCommand* edit_title_command_construct (GType object_type,
- MediaSource* source,
- const gchar* new_title);
-void editing_host_page_on_edit_comment (EditingHostPage* self);
-gpointer multi_text_entry_dialog_mediator_ref (gpointer instance);
-void multi_text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value);
-GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType edit_comment_dialog_get_type (void) G_GNUC_CONST;
-gchar* media_source_get_comment (MediaSource* self);
-EditCommentDialog* edit_comment_dialog_new (const gchar* comment,
- gboolean is_event);
-EditCommentDialog* edit_comment_dialog_construct (GType object_type,
- const gchar* comment,
- gboolean is_event);
-gchar* edit_comment_dialog_execute (EditCommentDialog* self);
-GType edit_comment_command_get_type (void) G_GNUC_CONST;
-EditCommentCommand* edit_comment_command_new (MediaSource* source,
- const gchar* new_comment);
-EditCommentCommand* edit_comment_command_construct (GType object_type,
- MediaSource* source,
- const gchar* new_comment);
-void editing_host_page_on_adjust_date_time (EditingHostPage* self);
-GType adjust_date_time_dialog_get_type (void) G_GNUC_CONST;
-GType dateable_get_type (void) G_GNUC_CONST;
-GType direct_photo_page_get_type (void) G_GNUC_CONST;
-AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source,
- gint photo_count,
- gboolean display_options,
- gboolean contains_video,
- gboolean only_video);
-AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type,
- Dateable* source,
- gint photo_count,
- gboolean display_options,
- gboolean contains_video,
- gboolean only_video);
-gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self,
- gint64* time_shift,
- gboolean* keep_relativity,
- gboolean* modify_originals);
-GeeList* view_collection_get_selected (ViewCollection* self);
-GType adjust_date_time_photo_command_get_type (void) G_GNUC_CONST;
-AdjustDateTimePhotoCommand* adjust_date_time_photo_command_new (Dateable* dateable,
- gint64 time_shift,
- gboolean modify_original);
-AdjustDateTimePhotoCommand* adjust_date_time_photo_command_construct (GType object_type,
- Dateable* dateable,
- gint64 time_shift,
- gboolean modify_original);
-void editing_host_page_on_set_background (EditingHostPage* self);
-GType set_background_photo_dialog_get_type (void) G_GNUC_CONST;
-SetBackgroundPhotoDialog* set_background_photo_dialog_new (void);
-SetBackgroundPhotoDialog* set_background_photo_dialog_construct (GType object_type);
-gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self,
- gboolean* desktop_background,
- gboolean* screensaver);
-void page_window_set_busy_cursor (PageWindow* self);
-void desktop_integration_set_background (Photo* photo,
- gboolean desktop,
- gboolean screensaver);
-void page_window_set_normal_cursor (PageWindow* self);
-static gboolean editing_host_page_real_on_ctrl_pressed (Page* base,
- GdkEventKey* event);
-#define RESOURCES_COUNTERCLOCKWISE "object-rotate-left"
-#define RESOURCES_ROTATE_CCW_LABEL _ ("Rotate")
-static void _editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-gboolean page_on_ctrl_pressed (Page* self,
- GdkEventKey* event);
-static gboolean editing_host_page_real_on_ctrl_released (Page* base,
- GdkEventKey* event);
-gboolean page_on_ctrl_released (Page* self,
- GdkEventKey* event);
-void editing_host_page_on_tool_button_toggled (EditingHostPage* self,
- GtkToggleToolButton* toggle,
- EditingToolsEditingToolFactory factory);
-void editing_host_page_toggle_crop (EditingHostPage* self);
-void editing_host_page_toggle_straighten (EditingHostPage* self);
-void editing_host_page_toggle_redeye (EditingHostPage* self);
-void editing_host_page_toggle_adjust (EditingHostPage* self);
-GType editing_tools_straighten_tool_get_type (void) G_GNUC_CONST;
-EditingToolsStraightenTool* editing_tools_straighten_tool_factory (void);
-static EditingToolsEditingTool* _editing_tools_straighten_tool_factory_editing_tools_editing_tool_factory (void);
-GType editing_tools_crop_tool_get_type (void) G_GNUC_CONST;
-EditingToolsCropTool* editing_tools_crop_tool_factory (void);
-static EditingToolsEditingTool* _editing_tools_crop_tool_factory_editing_tools_editing_tool_factory (void);
-GType editing_tools_redeye_tool_get_type (void) G_GNUC_CONST;
-EditingToolsRedeyeTool* editing_tools_redeye_tool_factory (void);
-static EditingToolsEditingTool* _editing_tools_redeye_tool_factory_editing_tools_editing_tool_factory (void);
-GType editing_tools_adjust_tool_get_type (void) G_GNUC_CONST;
-EditingToolsAdjustTool* editing_tools_adjust_tool_factory (void);
-static EditingToolsEditingTool* _editing_tools_adjust_tool_factory_editing_tools_editing_tool_factory (void);
-gboolean editing_tools_adjust_tool_enhance (EditingToolsAdjustTool* self);
-GType enhance_single_command_get_type (void) G_GNUC_CONST;
-EnhanceSingleCommand* enhance_single_command_new (Photo* photo);
-EnhanceSingleCommand* enhance_single_command_construct (GType object_type,
- Photo* photo);
-void editing_host_page_on_copy_adjustments (EditingHostPage* self);
-PixelTransformationBundle* photo_get_color_adjustments (Photo* self);
-void page_set_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive);
-void editing_host_page_on_paste_adjustments (EditingHostPage* self);
-GType adjust_colors_single_command_get_type (void) G_GNUC_CONST;
-#define RESOURCES_PASTE_ADJUSTMENTS_LABEL _ ("Paste Color Adjustments")
-#define RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP _ ("Apply copied color adjustments to the selected photos")
-AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type,
- Photo* photo,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-static void editing_host_page_real_on_next_photo (SinglePhotoPage* base);
-DataView* view_collection_get_next (ViewCollection* self,
- DataView* view);
-static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base);
-DataView* view_collection_get_previous (ViewCollection* self,
- DataView* view);
-gboolean editing_host_page_has_current_tool (EditingHostPage* self);
-void editing_host_page_unset_view_collection (EditingHostPage* self);
-#define EDITING_HOST_PAGE_EDITING_HOST_CANVAS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvasPrivate))
-cairo_t* single_photo_page_get_cairo_context (SinglePhotoPage* self);
-GdkPixbuf* single_photo_page_get_scaled_pixbuf (SinglePhotoPage* self);
-EditingToolsPhotoCanvas* editing_tools_photo_canvas_construct (GType object_type,
- GtkWindow* container,
- GdkWindow* drawing_window,
- Photo* photo,
- cairo_t* default_ctx,
- Dimensions* surface_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position);
-static void editing_host_page_editing_host_canvas_real_repaint (EditingToolsPhotoCanvas* base);
-static void editing_host_page_editing_host_canvas_finalize (EditingToolsPhotoCanvas * obj);
-static void editing_host_page_finalize (GObject * obj);
-GType library_photo_page_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-static GType library_photo_page_library_photo_page_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define LIBRARY_PHOTO_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPagePrivate))
-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;
-static void library_photo_page_on_photo_destroyed (LibraryPhotoPage* self,
- DataSource* source);
-static void _library_photo_page_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-static void library_photo_page_on_metadata_altered (LibraryPhotoPage* self,
- GeeMap* map);
-static void _library_photo_page_on_metadata_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-static void library_photo_page_on_external_app_changed (LibraryPhotoPage* self);
-static void _library_photo_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender,
- gpointer self);
-static LibraryPhotoPageLibraryPhotoPageViewFilter* library_photo_page_library_photo_page_view_filter_new (void);
-static LibraryPhotoPageLibraryPhotoPageViewFilter* library_photo_page_library_photo_page_view_filter_construct (GType object_type);
-static void library_photo_page_on_export (LibraryPhotoPage* self);
-static void _library_photo_page_on_export_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_print (LibraryPhotoPage* self);
-static void _library_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_publish (LibraryPhotoPage* self);
-static void _library_photo_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_remove_from_library (LibraryPhotoPage* self);
-static void _library_photo_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_move_to_trash (LibraryPhotoPage* self);
-static void _library_photo_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_external_edit (LibraryPhotoPage* self);
-static void _library_photo_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_external_edit_raw (LibraryPhotoPage* self);
-static void _library_photo_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_send_to (LibraryPhotoPage* self);
-static void _library_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_flag_unflag (LibraryPhotoPage* self);
-static void _library_photo_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_increase_rating (LibraryPhotoPage* self);
-static void _library_photo_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_decrease_rating (LibraryPhotoPage* self);
-static void _library_photo_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_rate_rejected (LibraryPhotoPage* self);
-static void _library_photo_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_rate_unrated (LibraryPhotoPage* self);
-static void _library_photo_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_rate_one (LibraryPhotoPage* self);
-static void _library_photo_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_rate_two (LibraryPhotoPage* self);
-static void _library_photo_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_rate_three (LibraryPhotoPage* self);
-static void _library_photo_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_rate_four (LibraryPhotoPage* self);
-static void _library_photo_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_rate_five (LibraryPhotoPage* self);
-static void _library_photo_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_add_tags (LibraryPhotoPage* self);
-static void _library_photo_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_modify_tags (LibraryPhotoPage* self);
-static void _library_photo_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_photo_page_on_slideshow (LibraryPhotoPage* self);
-static void _library_photo_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-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);
-LibraryPhotoPage* library_photo_page_new (void);
-LibraryPhotoPage* library_photo_page_construct (GType object_type);
-static void library_photo_page_on_photos_altered (LibraryPhotoPage* self);
-static void _library_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-void view_collection_install_view_filter (ViewCollection* self,
- ViewFilter* f);
-static void library_photo_page_on_photo_unlinking (LibraryPhotoPage* self,
- GeeCollection* unlinking);
-static void _library_photo_page_on_photo_unlinking_source_collection_items_unlinking (SourceCollection* _sender,
- GeeCollection* unlinking,
- gpointer self);
-static void library_photo_page_on_photo_relinked (LibraryPhotoPage* self,
- GeeCollection* relinked);
-static void _library_photo_page_on_photo_relinked_source_collection_items_relinked (SourceCollection* _sender,
- GeeCollection* relinked,
- gpointer self);
-gboolean library_photo_page_not_trashed_view_filter (LibraryPhotoPage* self,
- DataView* view);
-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,
- 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);
-InjectionGroup* injection_group_construct (GType object_type,
- const gchar* path);
-void injection_group_add_menu_item (InjectionGroup* self,
- const gchar* name,
- const gchar* action,
- const gchar* accellerator);
-static void _vala_array_add85 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void _vala_array_add86 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void _vala_array_add87 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void library_photo_page_set_display_ratings (LibraryPhotoPage* self,
- gboolean display);
-void configuration_facade_set_display_photo_ratings (ConfigurationFacade* self,
- gboolean display);
-static void library_photo_page_real_update_actions (Page* base,
- gint selected_count,
- gint count);
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
-static void library_photo_page_update_rating_menu_item_sensitivity (LibraryPhotoPage* self);
-static void library_photo_page_update_development_menu_item_sensitivity (LibraryPhotoPage* self);
-gboolean photo_has_color_adjustments (Photo* self);
-static void library_photo_page_update_flag_action (LibraryPhotoPage* self);
-gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self);
-void library_photo_page_developer_changed (LibraryPhotoPage* self,
- RawDeveloper rd);
-static void library_photo_page_real_developer_changed (LibraryPhotoPage* self,
- RawDeveloper rd);
-gboolean raw_developer_is_equivalent (RawDeveloper self,
- RawDeveloper d);
-RawDeveloper photo_get_raw_developer (Photo* self);
-gboolean dialogs_confirm_warn_developer_changed (gint number);
-GType multiple_data_source_command_get_type (void) G_GNUC_CONST;
-GType set_raw_developer_command_get_type (void) G_GNUC_CONST;
-SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter,
- RawDeveloper developer);
-SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type,
- GeeIterable* iter,
- RawDeveloper developer);
-void library_photo_page_display_for_collection (LibraryPhotoPage* self,
- CollectionPage* return_page,
- Photo* photo,
- ViewCollection* view);
-void library_photo_page_on_page_destroyed (LibraryPhotoPage* self);
-static void _library_photo_page_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender,
- gpointer self);
-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);
-Rating media_source_get_rating (MediaSource* self);
-static GdkPixbuf* library_photo_page_real_get_top_right_trinket (EditingHostPage* base,
- gint scale);
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-GdkPixbuf* resources_get_icon (const gchar* name,
- gint scale);
-#define RESOURCES_ICON_FLAGGED_TRINKET "flag-trinket.png"
-#define RESOURCES_DEFAULT_ICON_SCALE 24
-void app_window_go_fullscreen (AppWindow* self,
- Page* page);
-SlideshowPage* slideshow_page_new (SourceCollection* sources,
- ViewCollection* controller,
- Photo* start);
-SlideshowPage* slideshow_page_construct (GType object_type,
- SourceCollection* sources,
- ViewCollection* controller,
- Photo* start);
-GType slideshow_page_get_type (void) G_GNUC_CONST;
-static void library_photo_page_real_on_increase_size (EditingHostPage* base);
-static void library_photo_page_real_on_decrease_size (EditingHostPage* base);
-static gboolean library_photo_page_real_on_zoom_slider_key_press (EditingHostPage* base,
- GdkEventKey* event);
-static void library_photo_page_return_to_collection (LibraryPhotoPage* self);
-static void library_photo_page_real_update_ui (EditingHostPage* base,
- gboolean missing);
-static void library_photo_page_real_notify_photo_backing_missing (EditingHostPage* base,
- Photo* photo,
- gboolean missing);
-void media_source_mark_offline (MediaSource* self);
-void media_source_mark_online (MediaSource* self);
-static gboolean library_photo_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-static gboolean library_photo_page_real_on_double_click (EditingHostPage* base,
- GdkEventButton* event);
-void fullscreen_window_close (FullscreenWindow* self);
-static gboolean library_photo_page_real_on_left_released (Page* base,
- GdkEventButton* event);
-gboolean page_on_left_released (Page* self,
- GdkEventButton* event);
-static GtkMenu* library_photo_page_get_context_menu (LibraryPhotoPage* self);
-static gboolean library_photo_page_real_on_context_buttonpress (Page* base,
- GdkEventButton* event);
-gboolean page_popup_context_menu (Page* self,
- GtkMenu* context_menu,
- GdkEventButton* event);
-static gboolean library_photo_page_real_on_context_keypress (Page* base);
-GType library_window_get_type (void) G_GNUC_CONST;
-LibraryWindow* library_window_get_app (void);
-void library_window_switch_to_page (LibraryWindow* self,
- Page* page);
-void library_window_switch_to_library_page (LibraryWindow* self);
-void remove_from_app (GeeCollection* sources,
- const gchar* dialog_title,
- const gchar* progress_dialog_text);
-GType event_page_get_type (void) G_GNUC_CONST;
-void library_window_set_page_switching_enabled (LibraryWindow* self,
- gboolean should_enable);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources,
- gboolean to_trash);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean to_trash);
-GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST;
-FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources,
- gboolean flag);
-FlagUnflagCommand* flag_unflag_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean flag);
-GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST;
-GType flag_unflag_command_get_type (void) G_GNUC_CONST;
-static void library_photo_page_on_photo_removed (LibraryPhotoPage* self,
- LibraryPhoto* photo);
-void data_collection_remove_marked (DataCollection* self,
- Marker* m);
-gpointer print_manager_ref (gpointer instance);
-void print_manager_unref (gpointer instance);
-GParamSpec* param_spec_print_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_print_manager (GValue* value,
- gpointer v_object);
-void value_take_print_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_print_manager (const GValue* value);
-GType print_manager_get_type (void) G_GNUC_CONST;
-PrintManager* print_manager_get_instance (void);
-void print_manager_spool_photo (PrintManager* self,
- GeeCollection* to_print);
-GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self,
- GType t);
-void photo_open_with_external_editor (Photo* self,
- GError** error);
-void open_external_editor_error_dialog (GError* err,
- Photo* photo);
-void photo_open_with_raw_external_editor (Photo* self,
- GError** error);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-gchar* resources_launch_editor_failed (GError* err);
-void desktop_integration_send_to (GeeCollection* media);
-GeeList* view_collection_get_selected_sources (ViewCollection* self);
-GType export_dialog_get_type (void) G_GNUC_CONST;
-ExportDialog* export_dialog_new (const gchar* title);
-ExportDialog* export_dialog_construct (GType object_type,
- const gchar* title);
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-void export_format_parameters_last (ExportFormatParameters* result);
-gboolean export_dialog_execute (ExportDialog* self,
- gint* scale,
- ScaleConstraint* constraint,
- ExportFormatParameters* parameters);
-GFile* export_ui_choose_file (const gchar* current_file_basename);
-gchar* photo_get_export_basename_for_parameters (Photo* self,
- ExportFormatParameters* params);
-void scaling_for_constraint (ScaleConstraint constraint,
- gint scale,
- gboolean scale_up,
- Scaling* result);
-void photo_export (Photo* self,
- GFile* dest_file,
- Scaling* scaling,
- JpegQuality quality,
- PhotoFileFormat export_format,
- gboolean direct_copy_unmodified,
- gboolean export_metadata,
- GError** error);
-PhotoFileFormat photo_get_export_format_for_parameters (Photo* self,
- ExportFormatParameters* params);
-void publishing_ui_publishing_dialog_go (GeeCollection* to_publish);
-GType set_rating_single_command_get_type (void) G_GNUC_CONST;
-SetRatingSingleCommand* set_rating_single_command_new_inc_dec (DataSource* source,
- gboolean is_incrementing);
-SetRatingSingleCommand* set_rating_single_command_construct_inc_dec (GType object_type,
- DataSource* source,
- gboolean is_incrementing);
-static void library_photo_page_on_set_rating (LibraryPhotoPage* self,
- Rating rating);
-SetRatingSingleCommand* set_rating_single_command_new (DataSource* source,
- Rating rating);
-SetRatingSingleCommand* set_rating_single_command_construct (GType object_type,
- DataSource* source,
- Rating rating);
-gboolean rating_can_increase (Rating self);
-gboolean rating_can_decrease (Rating self);
-static GVariant* _variant_new18 (const gchar* value);
-static GVariant* _variant_new19 (const gchar* value);
-gboolean alteration_has_subject (Alteration* self,
- const gchar* subject);
-GType tags_dialog_get_type (void) G_GNUC_CONST;
-GType add_tags_dialog_get_type (void) G_GNUC_CONST;
-AddTagsDialog* add_tags_dialog_new (void);
-AddTagsDialog* add_tags_dialog_construct (GType object_type);
-gchar** add_tags_dialog_execute (AddTagsDialog* self,
- int* result_length1);
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void);
-gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self,
- gchar** names,
- int names_length1,
- int* result_length1);
-AddTagsCommand* add_tags_command_new (gchar** paths,
- int paths_length1,
- GeeCollection* sources);
-AddTagsCommand* add_tags_command_construct (GType object_type,
- gchar** paths,
- int paths_length1,
- GeeCollection* sources);
-GType add_tags_command_get_type (void) G_GNUC_CONST;
-GType modify_tags_dialog_get_type (void) G_GNUC_CONST;
-ModifyTagsDialog* modify_tags_dialog_new (MediaSource* source);
-ModifyTagsDialog* modify_tags_dialog_construct (GType object_type,
- MediaSource* source);
-GType tag_get_type (void) G_GNUC_CONST;
-GeeArrayList* modify_tags_dialog_execute (ModifyTagsDialog* self);
-ModifyTagsCommand* modify_tags_command_new (MediaSource* media,
- GeeCollection* new_tag_list);
-ModifyTagsCommand* modify_tags_command_construct (GType object_type,
- MediaSource* media,
- GeeCollection* new_tag_list);
-GType modify_tags_command_get_type (void) G_GNUC_CONST;
-static gboolean library_photo_page_library_photo_page_view_filter_real_predicate (ViewFilter* base,
- DataView* view);
-ViewFilter* view_filter_construct (GType object_type);
-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[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;
- if (g_once_init_enter (&zoom_buffer_object_state_type_id__volatile)) {
- static const GEnumValue values[] = {{ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED, "ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED", "source-not-loaded"}, {ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS, "ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS", "source-load-in-progress"}, {ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED, "ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED", "source-not-transformed"}, {ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY, "ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY", "transformed-ready"}, {0, NULL, NULL}};
- GType zoom_buffer_object_state_type_id;
- zoom_buffer_object_state_type_id = g_enum_register_static ("ZoomBufferObjectState", values);
- g_once_init_leave (&zoom_buffer_object_state_type_id__volatile, zoom_buffer_object_state_type_id);
- }
- return zoom_buffer_object_state_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self ? g_object_ref (self) : NULL;
-#line 3128 "PhotoPage.c"
-}
-
-
-ZoomBuffer*
-zoom_buffer_construct (GType object_type,
- SinglePhotoPage* parent_page,
- Photo* backing_photo,
- GdkPixbuf* preview_image)
-{
- ZoomBuffer * self = NULL;
- SinglePhotoPage* _tmp0_;
- GdkPixbuf* _tmp1_;
- Photo* _tmp2_;
- Workers* _tmp3_;
-#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (parent_page), NULL);
-#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_PHOTO (backing_photo), NULL);
-#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (preview_image), NULL);
-#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = (ZoomBuffer*) g_object_new (object_type, NULL);
-#line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _g_object_ref0 (parent_page);
-#line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->parent_page);
-#line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->parent_page = _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _g_object_ref0 (preview_image);
-#line 87 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->preview_image);
-#line 87 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->preview_image = _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _g_object_ref0 (backing_photo);
-#line 88 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->backing_photo);
-#line 88 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->backing_photo = _tmp2_;
-#line 89 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = workers_new ((guint) 2, FALSE);
-#line 89 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _workers_unref0 (self->priv->workers);
-#line 89 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->workers = _tmp3_;
-#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self;
-#line 3177 "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 3188 "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 3197 "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 3207 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self,
- BackgroundJob* job)
-{
- ZoomBufferIsoSourceFetchJob* fetch_job = NULL;
- ZoomBufferIsoSourceFetchJob* _tmp0_;
- ZoomBufferIsoSourceFetchJob* _tmp1_;
- GdkPixbuf* _tmp2_;
- ZoomBufferIsoSourceFetchJob* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- GdkPixbuf* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gboolean _tmp20_;
- BackgroundJob* transformation_job = NULL;
- GdkPixbuf* _tmp22_;
- Photo* _tmp23_;
- PixelTransformer* _tmp24_;
- PixelTransformer* _tmp25_;
- GCancellable* _tmp26_;
- GCancellable* _tmp27_;
- ZoomBufferTransformationJob* _tmp28_;
- BackgroundJob* _tmp29_;
- Workers* _tmp30_;
- BackgroundJob* _tmp31_;
-#line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_ZOOM_BUFFER (self));
-#line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (job));
-#line 93 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (job, ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJob));
-#line 93 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- fetch_job = _tmp0_;
-#line 94 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = fetch_job;
-#line 94 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_->fetched;
-#line 94 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ == NULL) {
-#line 95 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_critical ("PhotoPage.vala:95: ZoomBuffer: iso_source_fetch_complete( ): fetch job" \
-" has null image member");
-#line 96 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (fetch_job);
-#line 96 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 3260 "PhotoPage.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = fetch_job;
-#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_->fetched;
-#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->iso_source_image);
-#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->iso_source_image = _tmp5_;
-#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->iso_source_image;
-#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = gdk_pixbuf_get_width (_tmp6_);
-#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = self->priv->iso_source_image;
-#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = gdk_pixbuf_get_height (_tmp9_);
-#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if ((_tmp8_ * _tmp11_) > ZOOM_BUFFER_USE_REDUCED_THRESHOLD) {
-#line 3286 "PhotoPage.c"
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- GdkPixbuf* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- GdkPixbuf* _tmp19_;
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = self->priv->iso_source_image;
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = self->priv->iso_source_image;
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = gdk_pixbuf_get_width (_tmp13_);
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = self->priv->iso_source_image;
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = gdk_pixbuf_get_height (_tmp16_);
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _tmp17_;
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = gdk_pixbuf_scale_simple (_tmp12_, _tmp15_ / 2, _tmp18_ / 2, GDK_INTERP_BILINEAR);
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->reduced_source_image);
-#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->reduced_source_image = _tmp19_;
-#line 3315 "PhotoPage.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED;
-#line 106 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = self->priv->is_interactive_redraw_in_progress;
-#line 106 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!_tmp20_) {
-#line 3323 "PhotoPage.c"
- SinglePhotoPage* _tmp21_;
-#line 107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = self->priv->parent_page;
-#line 107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (_tmp21_, NULL);
-#line 3329 "PhotoPage.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = self->priv->iso_source_image;
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = self->priv->backing_photo;
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = photo_get_pixel_transformer (_tmp23_);
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = _tmp24_;
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = g_cancellable_new ();
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = _tmp26_;
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = zoom_buffer_transformation_job_new (self, _tmp22_, _tmp25_, _zoom_buffer_on_iso_transformation_complete_completion_callback, self, _tmp27_);
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_BACKGROUND_JOB, BackgroundJob);
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp27_);
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _pixel_transformer_unref0 (_tmp25_);
-#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transformation_job = _tmp29_;
-#line 112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = self->priv->workers;
-#line 112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = transformation_job;
-#line 112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- workers_enqueue (_tmp30_, _tmp31_);
-#line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (transformation_job);
-#line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (fetch_job);
-#line 3363 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_on_iso_transformation_complete (ZoomBuffer* self,
- BackgroundJob* job)
-{
- ZoomBufferTransformationJob* transform_job = NULL;
- ZoomBufferTransformationJob* _tmp0_;
- ZoomBufferTransformationJob* _tmp1_;
- GdkPixbuf* _tmp2_;
- ZoomBufferTransformationJob* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- GdkPixbuf* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 115 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_ZOOM_BUFFER (self));
-#line 115 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (job));
-#line 116 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (job, ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob));
-#line 116 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transform_job = _tmp0_;
-#line 117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = transform_job;
-#line 117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_->transformed;
-#line 117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ == NULL) {
-#line 118 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_critical ("PhotoPage.vala:118: %s", "ZoomBuffer: on_iso_transformation_complete( ): completed job has null " "image");
-#line 120 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (transform_job);
-#line 120 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 3404 "PhotoPage.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = transform_job;
-#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_->transformed;
-#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->iso_transformed_image);
-#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->iso_transformed_image = _tmp5_;
-#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->iso_transformed_image;
-#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = gdk_pixbuf_get_width (_tmp6_);
-#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = self->priv->iso_transformed_image;
-#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = gdk_pixbuf_get_height (_tmp9_);
-#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if ((_tmp8_ * _tmp11_) > ZOOM_BUFFER_USE_REDUCED_THRESHOLD) {
-#line 3430 "PhotoPage.c"
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- GdkPixbuf* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- GdkPixbuf* _tmp19_;
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = self->priv->iso_transformed_image;
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = self->priv->iso_transformed_image;
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = gdk_pixbuf_get_width (_tmp13_);
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = self->priv->iso_transformed_image;
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = gdk_pixbuf_get_height (_tmp16_);
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _tmp17_;
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = gdk_pixbuf_scale_simple (_tmp12_, _tmp15_ / 2, _tmp18_ / 2, GDK_INTERP_BILINEAR);
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->reduced_transformed_image);
-#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->reduced_transformed_image = _tmp19_;
-#line 3459 "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 3465 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_on_demand_transform_complete (ZoomBuffer* self,
- BackgroundJob* job)
-{
- ZoomBufferTransformationJob* transform_job = NULL;
- ZoomBufferTransformationJob* _tmp0_;
- ZoomBufferTransformationJob* _tmp1_;
- GdkPixbuf* _tmp2_;
- ZoomBufferTransformationJob* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- SinglePhotoPage* _tmp6_;
-#line 132 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_ZOOM_BUFFER (self));
-#line 132 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (job));
-#line 133 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (job, ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob));
-#line 133 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transform_job = _tmp0_;
-#line 134 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = transform_job;
-#line 134 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_->transformed;
-#line 134 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ == NULL) {
-#line 135 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_critical ("PhotoPage.vala:135: %s", "ZoomBuffer: on_demand_transform_complete( ): completed job has null " "image");
-#line 137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (transform_job);
-#line 137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 3501 "PhotoPage.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = transform_job;
-#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_->transformed;
-#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->demand_transform_cached_pixbuf);
-#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_cached_pixbuf = _tmp5_;
-#line 141 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (self->priv->demand_transform_job);
-#line 141 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_job = NULL;
-#line 143 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->parent_page;
-#line 143 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (_tmp6_, NULL);
-#line 132 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (transform_job);
-#line 3523 "PhotoPage.c"
-}
-
-
-static GdkPixbuf*
-zoom_buffer_get_view_projection_pixbuf (ZoomBuffer* self,
- ZoomState* zoom_state,
- GdkPixbuf* iso_pixbuf,
- GdkPixbuf* reduced_pixbuf)
-{
- GdkPixbuf* result = NULL;
- GdkRectangle view_rect = {0};
- GdkRectangle _tmp0_ = {0};
- GdkRectangle view_rect_proj = {0};
- GdkRectangle _tmp1_ = {0};
- GdkPixbuf* sample_source_pixbuf = NULL;
- GdkPixbuf* _tmp2_;
- gboolean _tmp3_ = FALSE;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
- GdkRectangle _tmp15_;
- gint _tmp16_;
- GdkPixbuf* proj_subpixbuf = NULL;
- GdkPixbuf* _tmp17_;
- GdkRectangle _tmp18_;
- gint _tmp19_;
- GdkRectangle _tmp20_;
- gint _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
- GdkRectangle _tmp24_;
- gint _tmp25_;
- GdkPixbuf* _tmp26_;
- GdkPixbuf* zoomed = NULL;
- GdkRectangle _tmp27_;
- gint _tmp28_;
- GdkRectangle _tmp29_;
- gint _tmp30_;
- GdkPixbuf* _tmp31_;
-#line 149 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL);
-#line 149 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (zoom_state != NULL, NULL);
-#line 149 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (iso_pixbuf), NULL);
-#line 149 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail ((reduced_pixbuf == NULL) || GDK_IS_PIXBUF (reduced_pixbuf), NULL);
-#line 151 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp0_);
-#line 151 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect = _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewing_rectangle_projection (zoom_state, iso_pixbuf, &_tmp1_);
-#line 152 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj = _tmp1_;
-#line 154 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _g_object_ref0 (iso_pixbuf);
-#line 154 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- sample_source_pixbuf = _tmp2_;
-#line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (reduced_pixbuf != NULL) {
-#line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = zoom_state_get_zoom_factor (zoom_state) < 0.5;
-#line 3590 "PhotoPage.c"
- } else {
-#line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = FALSE;
-#line 3594 "PhotoPage.c"
- }
-#line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_) {
-#line 3598 "PhotoPage.c"
- GdkPixbuf* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 157 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _g_object_ref0 (reduced_pixbuf);
-#line 157 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (sample_source_pixbuf);
-#line 157 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- sample_source_pixbuf = _tmp4_;
-#line 158 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = view_rect_proj.x;
-#line 158 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj.x = _tmp5_ / 2;
-#line 159 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = view_rect_proj.y;
-#line 159 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj.y = _tmp6_ / 2;
-#line 160 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = view_rect_proj.width;
-#line 160 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj.width = _tmp7_ / 2;
-#line 161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = view_rect_proj.height;
-#line 161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj.height = _tmp8_ / 2;
-#line 3626 "PhotoPage.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = view_rect_proj;
-#line 167 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_.width;
-#line 167 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj.width = CLAMP (_tmp10_, 1, G_MAXINT);
-#line 168 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = view_rect_proj;
-#line 168 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_.height;
-#line 168 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj.height = CLAMP (_tmp12_, 1, G_MAXINT);
-#line 170 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = view_rect;
-#line 170 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_.width;
-#line 170 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect.width = CLAMP (_tmp14_, 1, G_MAXINT);
-#line 171 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = view_rect;
-#line 171 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = _tmp15_.height;
-#line 171 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect.height = CLAMP (_tmp16_, 1, G_MAXINT);
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = sample_source_pixbuf;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = view_rect_proj;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_.x;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = view_rect_proj;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = _tmp20_.y;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = view_rect_proj;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = _tmp22_.width;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = view_rect_proj;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = _tmp24_.height;
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = gdk_pixbuf_new_subpixbuf (_tmp17_, _tmp19_, _tmp21_, _tmp23_, _tmp25_);
-#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- proj_subpixbuf = _tmp26_;
-#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = view_rect;
-#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = _tmp27_.width;
-#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = view_rect;
-#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = _tmp29_.height;
-#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = gdk_pixbuf_scale_simple (proj_subpixbuf, _tmp28_, _tmp30_, GDK_INTERP_BILINEAR);
-#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoomed = _tmp31_;
-#line 179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (zoomed != NULL, "zoomed != null");
-#line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = zoomed;
-#line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (proj_subpixbuf);
-#line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (sample_source_pixbuf);
-#line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 3696 "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 3706 "PhotoPage.c"
-}
-
-
-static GdkPixbuf*
-zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffer* self,
- ZoomState* zoom_state)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- ZoomBufferTransformationJob* _tmp86_;
- ZoomBufferTransformationJob* _tmp107_;
- ZoomState _tmp124_;
- GdkPixbuf* _tmp125_;
-#line 184 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL);
-#line 184 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (zoom_state != NULL, NULL);
-#line 185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->demand_transform_cached_pixbuf;
-#line 185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 3728 "PhotoPage.c"
- ZoomState _tmp1_;
-#line 186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->demand_transform_zoom_state;
-#line 186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_equals (zoom_state, &_tmp1_)) {
-#line 3734 "PhotoPage.c"
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->demand_transform_cached_pixbuf;
-#line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp3_;
-#line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 3745 "PhotoPage.c"
- } else {
-#line 191 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_get_zoom_factor (zoom_state) == zoom_state_get_zoom_factor (&self->priv->demand_transform_zoom_state)) {
-#line 3749 "PhotoPage.c"
- GdkRectangle curr_rect = {0};
- GdkRectangle _tmp4_ = {0};
- GdkRectangle pre_rect = {0};
- GdkRectangle _tmp5_ = {0};
- GdkRectangle transfer_src_rect = {0};
- GdkRectangle transfer_dest_rect = {0};
- GdkRectangle _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkRectangle _tmp10_;
- gint _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
- GdkRectangle _tmp14_;
- gint _tmp15_;
- GdkRectangle _tmp16_;
- gint _tmp17_;
- gint transfer_src_right = 0;
- GdkRectangle _tmp18_;
- gint _tmp19_;
- GdkRectangle _tmp20_;
- gint _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
- GdkRectangle _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- GdkRectangle _tmp27_;
- gint _tmp28_;
- gint transfer_src_bottom = 0;
- GdkRectangle _tmp29_;
- gint _tmp30_;
- GdkRectangle _tmp31_;
- gint _tmp32_;
- GdkRectangle _tmp33_;
- gint _tmp34_;
- GdkRectangle _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- GdkRectangle _tmp38_;
- gint _tmp39_;
- GdkRectangle _tmp40_;
- gint _tmp41_;
- GdkRectangle _tmp42_;
- gint _tmp43_;
- GdkRectangle _tmp44_;
- gint _tmp45_;
- GdkRectangle _tmp46_;
- gint _tmp47_;
- GdkRectangle _tmp48_;
- gint _tmp49_;
- GdkRectangle _tmp50_;
- gint _tmp51_;
- gint transfer_dest_right = 0;
- GdkRectangle _tmp52_;
- gint _tmp53_;
- GdkRectangle _tmp54_;
- gint _tmp55_;
- GdkRectangle _tmp56_;
- gint _tmp57_;
- gint _tmp58_;
- GdkRectangle _tmp59_;
- gint _tmp60_;
- gint transfer_dest_bottom = 0;
- GdkRectangle _tmp61_;
- gint _tmp62_;
- GdkRectangle _tmp63_;
- gint _tmp64_;
- GdkRectangle _tmp65_;
- gint _tmp66_;
- gint _tmp67_;
- GdkRectangle _tmp68_;
- gint _tmp69_;
- GdkPixbuf* composited_result = NULL;
- ZoomState _tmp70_;
- GdkPixbuf* _tmp71_;
- GdkPixbuf* _tmp72_;
- GdkRectangle _tmp73_;
- gint _tmp74_;
- GdkRectangle _tmp75_;
- gint _tmp76_;
- GdkRectangle _tmp77_;
- gint _tmp78_;
- GdkRectangle _tmp79_;
- gint _tmp80_;
- GdkPixbuf* _tmp81_;
- GdkRectangle _tmp82_;
- gint _tmp83_;
- GdkRectangle _tmp84_;
- gint _tmp85_;
-#line 202 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp4_);
-#line 202 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- curr_rect = _tmp4_;
-#line 203 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewing_rectangle_wrt_content (&self->priv->demand_transform_zoom_state, &_tmp5_);
-#line 203 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pre_rect = _tmp5_;
-#line 205 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- memset (&transfer_src_rect, 0, sizeof (GdkRectangle));
-#line 206 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- memset (&transfer_dest_rect, 0, sizeof (GdkRectangle));
-#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = curr_rect;
-#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_.x;
-#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = pre_rect;
-#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_.x;
-#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = pre_rect;
-#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_.width;
-#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_src_rect.x = CLAMP (_tmp7_ - _tmp9_, 0, _tmp11_);
-#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = curr_rect;
-#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_.y;
-#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = pre_rect;
-#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_.y;
-#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = pre_rect;
-#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_.height;
-#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_src_rect.y = CLAMP (_tmp13_ - _tmp15_, 0, _tmp17_);
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = curr_rect;
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_.x;
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = curr_rect;
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = _tmp20_.width;
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = pre_rect;
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = _tmp22_.width;
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = pre_rect;
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = _tmp24_.width;
-#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_src_right = CLAMP ((_tmp19_ + _tmp21_) - _tmp23_, 0, _tmp25_);
-#line 212 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = transfer_src_right;
-#line 212 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = transfer_src_rect;
-#line 212 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = _tmp27_.x;
-#line 212 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_src_rect.width = _tmp26_ - _tmp28_;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = curr_rect;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = _tmp29_.y;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = curr_rect;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = _tmp31_.height;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp33_ = pre_rect;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp34_ = _tmp33_.width;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp35_ = pre_rect;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp36_ = _tmp35_.height;
-#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_src_bottom = CLAMP ((_tmp30_ + _tmp32_) - _tmp34_, 0, _tmp36_);
-#line 215 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp37_ = transfer_src_bottom;
-#line 215 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp38_ = transfer_src_rect;
-#line 215 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp39_ = _tmp38_.y;
-#line 215 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_src_rect.height = _tmp37_ - _tmp39_;
-#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp40_ = pre_rect;
-#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp41_ = _tmp40_.x;
-#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp42_ = curr_rect;
-#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp43_ = _tmp42_.x;
-#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp44_ = curr_rect;
-#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp45_ = _tmp44_.width;
-#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_dest_rect.x = CLAMP (_tmp41_ - _tmp43_, 0, _tmp45_);
-#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp46_ = pre_rect;
-#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp47_ = _tmp46_.y;
-#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp48_ = curr_rect;
-#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp49_ = _tmp48_.y;
-#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp50_ = curr_rect;
-#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp51_ = _tmp50_.height;
-#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_dest_rect.y = CLAMP (_tmp47_ - _tmp49_, 0, _tmp51_);
-#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp52_ = transfer_dest_rect;
-#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp53_ = _tmp52_.x;
-#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp54_ = transfer_src_rect;
-#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp55_ = _tmp54_.width;
-#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp56_ = curr_rect;
-#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp57_ = _tmp56_.width;
-#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_dest_right = CLAMP (_tmp53_ + _tmp55_, 0, _tmp57_);
-#line 221 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp58_ = transfer_dest_right;
-#line 221 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp59_ = transfer_dest_rect;
-#line 221 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp60_ = _tmp59_.x;
-#line 221 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_dest_rect.width = _tmp58_ - _tmp60_;
-#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp61_ = transfer_dest_rect;
-#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp62_ = _tmp61_.y;
-#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp63_ = transfer_src_rect;
-#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp64_ = _tmp63_.height;
-#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp65_ = curr_rect;
-#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp66_ = _tmp65_.height;
-#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_dest_bottom = CLAMP (_tmp62_ + _tmp64_, 0, _tmp66_);
-#line 224 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp67_ = transfer_dest_bottom;
-#line 224 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp68_ = transfer_dest_rect;
-#line 224 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp69_ = _tmp68_.y;
-#line 224 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- transfer_dest_rect.height = _tmp67_ - _tmp69_;
-#line 226 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp70_ = *zoom_state;
-#line 226 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp71_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp70_);
-#line 226 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- composited_result = _tmp71_;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp72_ = self->priv->demand_transform_cached_pixbuf;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp73_ = transfer_src_rect;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp74_ = _tmp73_.x;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp75_ = transfer_src_rect;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp76_ = _tmp75_.y;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp77_ = transfer_dest_rect;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp78_ = _tmp77_.width;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp79_ = transfer_dest_rect;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp80_ = _tmp79_.height;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp81_ = composited_result;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp82_ = transfer_dest_rect;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp83_ = _tmp82_.x;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp84_ = transfer_dest_rect;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp85_ = _tmp84_.y;
-#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gdk_pixbuf_copy_area (_tmp72_, _tmp74_, _tmp76_, _tmp78_, _tmp80_, _tmp81_, _tmp83_, _tmp85_);
-#line 231 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = composited_result;
-#line 231 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4045 "PhotoPage.c"
- }
- }
- }
-#line 242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp86_ = self->priv->demand_transform_job;
-#line 242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp86_ != NULL) {
-#line 4053 "PhotoPage.c"
- ZoomState _tmp87_;
-#line 243 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp87_ = self->priv->demand_transform_zoom_state;
-#line 243 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_equals (zoom_state, &_tmp87_)) {
-#line 4059 "PhotoPage.c"
- ZoomState _tmp88_;
- GdkPixbuf* _tmp89_;
-#line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp88_ = *zoom_state;
-#line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp89_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp88_);
-#line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp89_;
-#line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4070 "PhotoPage.c"
- } else {
- ZoomBufferTransformationJob* _tmp90_;
- GdkPixbuf* zoomed = NULL;
- ZoomState _tmp91_;
- GdkPixbuf* _tmp92_;
- GdkPixbuf* _tmp93_;
- GdkPixbuf* _tmp94_;
- GdkPixbuf* _tmp95_;
- Photo* _tmp96_;
- PixelTransformer* _tmp97_;
- PixelTransformer* _tmp98_;
- GCancellable* _tmp99_;
- GCancellable* _tmp100_;
- ZoomBufferTransformationJob* _tmp101_;
- ZoomState _tmp102_;
- Workers* _tmp103_;
- ZoomBufferTransformationJob* _tmp104_;
- ZoomState _tmp105_;
- GdkPixbuf* _tmp106_;
-#line 246 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp90_ = self->priv->demand_transform_job;
-#line 246 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp90_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 247 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (self->priv->demand_transform_job);
-#line 247 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_job = NULL;
-#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp91_ = *zoom_state;
-#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp92_ = self->priv->iso_source_image;
-#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp93_ = self->priv->reduced_source_image;
-#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp94_ = zoom_buffer_get_view_projection_pixbuf (self, &_tmp91_, _tmp92_, _tmp93_);
-#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoomed = _tmp94_;
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp95_ = zoomed;
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp96_ = self->priv->backing_photo;
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp97_ = photo_get_pixel_transformer (_tmp96_);
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp98_ = _tmp97_;
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp99_ = g_cancellable_new ();
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp100_ = _tmp99_;
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp101_ = zoom_buffer_transformation_job_new (self, _tmp95_, _tmp98_, _zoom_buffer_on_demand_transform_complete_completion_callback, self, _tmp100_);
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (self->priv->demand_transform_job);
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_job = _tmp101_;
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp100_);
-#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _pixel_transformer_unref0 (_tmp98_);
-#line 255 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp102_ = *zoom_state;
-#line 255 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_zoom_state = _tmp102_;
-#line 256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp103_ = self->priv->workers;
-#line 256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp104_ = self->priv->demand_transform_job;
-#line 256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- workers_enqueue (_tmp103_, G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp105_ = *zoom_state;
-#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp106_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp105_);
-#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp106_;
-#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (zoomed);
-#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4150 "PhotoPage.c"
- }
- }
-#line 263 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp107_ = self->priv->demand_transform_job;
-#line 263 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp107_ == NULL) {
-#line 4157 "PhotoPage.c"
- GdkPixbuf* zoomed = NULL;
- ZoomState _tmp108_;
- GdkPixbuf* _tmp109_;
- GdkPixbuf* _tmp110_;
- GdkPixbuf* _tmp111_;
- GdkPixbuf* _tmp112_;
- Photo* _tmp113_;
- PixelTransformer* _tmp114_;
- PixelTransformer* _tmp115_;
- GCancellable* _tmp116_;
- GCancellable* _tmp117_;
- ZoomBufferTransformationJob* _tmp118_;
- ZoomState _tmp119_;
- Workers* _tmp120_;
- ZoomBufferTransformationJob* _tmp121_;
- ZoomState _tmp122_;
- GdkPixbuf* _tmp123_;
-#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp108_ = *zoom_state;
-#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp109_ = self->priv->iso_source_image;
-#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp110_ = self->priv->reduced_source_image;
-#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp111_ = zoom_buffer_get_view_projection_pixbuf (self, &_tmp108_, _tmp109_, _tmp110_);
-#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoomed = _tmp111_;
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp112_ = zoomed;
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp113_ = self->priv->backing_photo;
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp114_ = photo_get_pixel_transformer (_tmp113_);
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp115_ = _tmp114_;
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp116_ = g_cancellable_new ();
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp117_ = _tmp116_;
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp118_ = zoom_buffer_transformation_job_new (self, _tmp112_, _tmp115_, _zoom_buffer_on_demand_transform_complete_completion_callback, self, _tmp117_);
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (self->priv->demand_transform_job);
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_job = _tmp118_;
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp117_);
-#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _pixel_transformer_unref0 (_tmp115_);
-#line 271 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp119_ = *zoom_state;
-#line 271 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_zoom_state = _tmp119_;
-#line 273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp120_ = self->priv->workers;
-#line 273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp121_ = self->priv->demand_transform_job;
-#line 273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- workers_enqueue (_tmp120_, G_TYPE_CHECK_INSTANCE_CAST (_tmp121_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp122_ = *zoom_state;
-#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp123_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp122_);
-#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp123_;
-#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (zoomed);
-#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4227 "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" \
-"ransform " "on-screen projection on-demand; using preview image");
-#line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp124_ = *zoom_state;
-#line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp125_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp124_);
-#line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp125_;
-#line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4239 "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 4249 "PhotoPage.c"
-}
-
-
-GdkPixbuf*
-zoom_buffer_get_zoom_preview_image_internal (ZoomBuffer* self,
- ZoomState* zoom_state)
-{
- GdkPixbuf* result = NULL;
- ZoomBufferObjectState _tmp0_;
- GdkRectangle view_rect = {0};
- GdkRectangle _tmp5_ = {0};
- GdkRectangle view_rect_proj = {0};
- GdkPixbuf* _tmp6_;
- GdkRectangle _tmp7_ = {0};
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkRectangle _tmp10_;
- gint _tmp11_;
- GdkPixbuf* proj_subpixbuf = NULL;
- GdkPixbuf* _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
- GdkRectangle _tmp15_;
- gint _tmp16_;
- GdkRectangle _tmp17_;
- gint _tmp18_;
- GdkRectangle _tmp19_;
- gint _tmp20_;
- GdkPixbuf* _tmp21_;
- GdkPixbuf* zoomed = NULL;
- GdkRectangle _tmp22_;
- gint _tmp23_;
- GdkRectangle _tmp24_;
- gint _tmp25_;
- GdkPixbuf* _tmp26_;
-#line 288 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL);
-#line 288 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (zoom_state != NULL, NULL);
-#line 289 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->object_state;
-#line 289 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ == ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED) {
-#line 4293 "PhotoPage.c"
- BackgroundJob* iso_source_fetch_job = NULL;
- Photo* _tmp1_;
- ZoomBufferIsoSourceFetchJob* _tmp2_;
- Workers* _tmp3_;
- BackgroundJob* _tmp4_;
-#line 290 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->backing_photo;
-#line 290 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = zoom_buffer_iso_source_fetch_job_new (self, _tmp1_, _zoom_buffer_on_iso_source_fetch_complete_completion_callback, self);
-#line 290 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- iso_source_fetch_job = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_BACKGROUND_JOB, BackgroundJob);
-#line 292 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->workers;
-#line 292 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = iso_source_fetch_job;
-#line 292 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- workers_enqueue (_tmp3_, _tmp4_);
-#line 294 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- 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 4315 "PhotoPage.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp5_);
-#line 296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect = _tmp5_;
-#line 297 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->preview_image;
-#line 297 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewing_rectangle_projection (zoom_state, _tmp6_, &_tmp7_);
-#line 297 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj = _tmp7_;
-#line 300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = view_rect_proj;
-#line 300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_.width;
-#line 300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj.width = CLAMP (_tmp9_, 1, G_MAXINT);
-#line 301 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = view_rect_proj;
-#line 301 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_.height;
-#line 301 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_rect_proj.height = CLAMP (_tmp11_, 1, G_MAXINT);
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = self->priv->preview_image;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = view_rect_proj;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_.x;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = view_rect_proj;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = _tmp15_.y;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = view_rect_proj;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _tmp17_.width;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = view_rect_proj;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = _tmp19_.height;
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = gdk_pixbuf_new_subpixbuf (_tmp12_, _tmp14_, _tmp16_, _tmp18_, _tmp20_);
-#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- proj_subpixbuf = _tmp21_;
-#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = view_rect;
-#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = _tmp22_.width;
-#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = view_rect;
-#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = _tmp24_.height;
-#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = gdk_pixbuf_scale_simple (proj_subpixbuf, _tmp23_, _tmp25_, GDK_INTERP_BILINEAR);
-#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoomed = _tmp26_;
-#line 309 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = zoomed;
-#line 309 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (proj_subpixbuf);
-#line 309 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4379 "PhotoPage.c"
-}
-
-
-Photo*
-zoom_buffer_get_backing_photo (ZoomBuffer* self)
-{
- Photo* result = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
-#line 312 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL);
-#line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->backing_photo;
-#line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp1_;
-#line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4399 "PhotoPage.c"
-}
-
-
-void
-zoom_buffer_update_preview_image (ZoomBuffer* self,
- GdkPixbuf* preview_image)
-{
- GdkPixbuf* _tmp0_;
-#line 316 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_ZOOM_BUFFER (self));
-#line 316 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GDK_IS_PIXBUF (preview_image));
-#line 317 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _g_object_ref0 (preview_image);
-#line 317 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->preview_image);
-#line 317 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->preview_image = _tmp0_;
-#line 4418 "PhotoPage.c"
-}
-
-
-void
-zoom_buffer_flush_demand_cache (ZoomBuffer* self,
- ZoomState* initial_zoom_state)
-{
-#line 322 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_ZOOM_BUFFER (self));
-#line 323 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->demand_transform_cached_pixbuf);
-#line 323 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_cached_pixbuf = NULL;
-#line 324 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (initial_zoom_state != NULL) {
-#line 4434 "PhotoPage.c"
- ZoomState _tmp0_;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
-#line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = *initial_zoom_state;
-#line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = zoom_buffer_get_zoomed_image (self, &_tmp0_);
-#line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 4446 "PhotoPage.c"
- }
-}
-
-
-GdkPixbuf*
-zoom_buffer_get_zoomed_image (ZoomBuffer* self,
- ZoomState* zoom_state)
-{
- GdkPixbuf* result = NULL;
- ZoomBufferObjectState _tmp2_;
-#line 328 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL);
-#line 328 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (zoom_state != NULL, NULL);
-#line 329 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->is_interactive_redraw_in_progress = FALSE;
-#line 333 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_get_interpolation_factor (zoom_state) == 0.0) {
-#line 4465 "PhotoPage.c"
- ZoomState _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = *zoom_state;
-#line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp0_);
-#line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp1_;
-#line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4476 "PhotoPage.c"
- }
-#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->object_state;
-#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (_tmp2_) {
-#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- 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 4486 "PhotoPage.c"
- {
- ZoomState _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = *zoom_state;
-#line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp3_);
-#line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp4_;
-#line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4498 "PhotoPage.c"
- }
-#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- case ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED:
-#line 4502 "PhotoPage.c"
- {
- ZoomState _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = *zoom_state;
-#line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = zoom_buffer_get_zoomed_image_source_not_transformed (self, &_tmp5_);
-#line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp6_;
-#line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4514 "PhotoPage.c"
- }
-#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- case ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY:
-#line 4518 "PhotoPage.c"
- {
- ZoomState _tmp7_;
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
-#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = *zoom_state;
-#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = self->priv->iso_transformed_image;
-#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = self->priv->reduced_transformed_image;
-#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = zoom_buffer_get_view_projection_pixbuf (self, &_tmp7_, _tmp8_, _tmp9_);
-#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp10_;
-#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4536 "PhotoPage.c"
- }
- default:
- {
- ZoomState _tmp11_;
- GdkPixbuf* _tmp12_;
-#line 352 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_critical ("PhotoPage.vala:352: ZoomBuffer: get_zoomed_image( ): object is an inco" \
-"nsistent state");
-#line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = *zoom_state;
-#line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp11_);
-#line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp12_;
-#line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4552 "PhotoPage.c"
- }
- }
-}
-
-
-GdkPixbuf*
-zoom_buffer_get_zoom_preview_image (ZoomBuffer* self,
- ZoomState* zoom_state)
-{
- GdkPixbuf* result = NULL;
- ZoomState _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL);
-#line 357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (zoom_state != NULL, NULL);
-#line 358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->is_interactive_redraw_in_progress = TRUE;
-#line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = *zoom_state;
-#line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp0_);
-#line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp1_;
-#line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 4579 "PhotoPage.c"
-}
-
-
-static ZoomBufferIsoSourceFetchJob*
-zoom_buffer_iso_source_fetch_job_construct (GType object_type,
- ZoomBuffer* owner,
- Photo* to_fetch,
- CompletionCallback completion_callback,
- void* completion_callback_target)
-{
- ZoomBufferIsoSourceFetchJob* self = NULL;
- Photo* _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_ZOOM_BUFFER (owner), NULL);
-#line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_PHOTO (to_fetch), NULL);
-#line 22 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = (ZoomBufferIsoSourceFetchJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), completion_callback, completion_callback_target, NULL, NULL, NULL, NULL);
-#line 24 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _g_object_ref0 (to_fetch);
-#line 24 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->to_fetch);
-#line 24 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->to_fetch = _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self;
-#line 4606 "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 4618 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base)
-{
- ZoomBufferIsoSourceFetchJob * self;
- 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 4629 "PhotoPage.c"
- {
- GdkPixbuf* _tmp0_ = NULL;
- Photo* _tmp1_;
- Scaling _tmp2_ = {0};
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->to_fetch;
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaling_for_original (&_tmp2_);
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = photo_get_pixbuf_with_options (_tmp1_, &_tmp2_, PHOTO_EXCEPTION_ADJUST, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _tmp3_;
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4646 "PhotoPage.c"
- goto __catch255_g_error;
- }
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = NULL;
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->fetched);
-#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->fetched = _tmp4_;
-#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 4659 "PhotoPage.c"
- }
- goto __finally255;
- __catch255_g_error:
- {
- GError* fetch_error = NULL;
-#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- fetch_error = _inner_error_;
-#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 32 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_critical ("PhotoPage.vala:32: IsoSourceFetchJob: execute( ): can't get pixbuf fro" \
-"m backing photo");
-#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (fetch_error);
-#line 4673 "PhotoPage.c"
- }
- __finally255:
-#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 28 "/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 28 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 4684 "PhotoPage.c"
- }
-}
-
-
-static void
-zoom_buffer_iso_source_fetch_job_class_init (ZoomBufferIsoSourceFetchJobClass * klass)
-{
-#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_buffer_iso_source_fetch_job_parent_class = g_type_class_peek_parent (klass);
-#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((BackgroundJobClass *) klass)->finalize = zoom_buffer_iso_source_fetch_job_finalize;
-#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_type_class_add_private (klass, sizeof (ZoomBufferIsoSourceFetchJobPrivate));
-#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) zoom_buffer_iso_source_fetch_job_real_execute;
-#line 4700 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_iso_source_fetch_job_instance_init (ZoomBufferIsoSourceFetchJob * self)
-{
-#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv = ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_GET_PRIVATE (self);
-#line 18 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->fetched = NULL;
-#line 4711 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_iso_source_fetch_job_finalize (BackgroundJob * obj)
-{
- ZoomBufferIsoSourceFetchJob * self;
-#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJob);
-#line 16 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->to_fetch);
-#line 18 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _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 4727 "PhotoPage.c"
-}
-
-
-static GType
-zoom_buffer_iso_source_fetch_job_get_type (void)
-{
- static volatile gsize zoom_buffer_iso_source_fetch_job_type_id__volatile = 0;
- if (g_once_init_enter (&zoom_buffer_iso_source_fetch_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ZoomBufferIsoSourceFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) zoom_buffer_iso_source_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ZoomBufferIsoSourceFetchJob), 0, (GInstanceInitFunc) zoom_buffer_iso_source_fetch_job_instance_init, NULL };
- GType zoom_buffer_iso_source_fetch_job_type_id;
- zoom_buffer_iso_source_fetch_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "ZoomBufferIsoSourceFetchJob", &g_define_type_info, 0);
- g_once_init_leave (&zoom_buffer_iso_source_fetch_job_type_id__volatile, zoom_buffer_iso_source_fetch_job_type_id);
- }
- return zoom_buffer_iso_source_fetch_job_type_id__volatile;
-}
-
-
-static gpointer
-_pixel_transformer_ref0 (gpointer self)
-{
-#line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self ? pixel_transformer_ref (self) : NULL;
-#line 4750 "PhotoPage.c"
-}
-
-
-static ZoomBufferTransformationJob*
-zoom_buffer_transformation_job_construct (GType object_type,
- ZoomBuffer* owner,
- GdkPixbuf* to_transform,
- PixelTransformer* transformer,
- CompletionCallback completion_callback,
- void* completion_callback_target,
- GCancellable* cancellable)
-{
- ZoomBufferTransformationJob* self = NULL;
- GCancellable* _tmp0_;
- GdkPixbuf* _tmp1_;
- PixelTransformer* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_ZOOM_BUFFER (owner), NULL);
-#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (to_transform), NULL);
-#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail ((transformer == NULL) || IS_PIXEL_TRANSFORMER (transformer), NULL);
-#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 51 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = (ZoomBufferTransformationJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), completion_callback, completion_callback_target, cancellable, NULL, NULL, NULL);
-#line 53 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _g_object_ref0 (cancellable);
-#line 53 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 53 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->cancellable = _tmp0_;
-#line 54 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _g_object_ref0 (to_transform);
-#line 54 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->to_transform);
-#line 54 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->to_transform = _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _pixel_transformer_ref0 (transformer);
-#line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->transformer = _tmp2_;
-#line 56 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = gdk_pixbuf_copy (to_transform);
-#line 56 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->transformed);
-#line 56 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->transformed = _tmp3_;
-#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self;
-#line 4804 "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 4818 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_transformation_job_real_execute (BackgroundJob* base)
-{
- ZoomBufferTransformationJob * self;
- PixelTransformer* _tmp0_;
-#line 59 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob);
-#line 60 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->transformer;
-#line 60 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 4833 "PhotoPage.c"
- PixelTransformer* _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GCancellable* _tmp4_;
-#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->transformer;
-#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->to_transform;
-#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->transformed;
-#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = self->priv->cancellable;
-#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixel_transformer_transform_to_other_pixbuf (_tmp1_, _tmp2_, _tmp3_, _tmp4_, -1);
-#line 4848 "PhotoPage.c"
- }
-}
-
-
-static void
-zoom_buffer_transformation_job_class_init (ZoomBufferTransformationJobClass * klass)
-{
-#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_buffer_transformation_job_parent_class = g_type_class_peek_parent (klass);
-#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((BackgroundJobClass *) klass)->finalize = zoom_buffer_transformation_job_finalize;
-#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_type_class_add_private (klass, sizeof (ZoomBufferTransformationJobPrivate));
-#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) zoom_buffer_transformation_job_real_execute;
-#line 4864 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_transformation_job_instance_init (ZoomBufferTransformationJob * self)
-{
-#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv = ZOOM_BUFFER_TRANSFORMATION_JOB_GET_PRIVATE (self);
-#line 47 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->transformed = NULL;
-#line 4875 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_transformation_job_finalize (BackgroundJob * obj)
-{
- ZoomBufferTransformationJob * self;
-#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob);
-#line 43 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->to_transform);
-#line 44 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 45 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 47 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _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 4895 "PhotoPage.c"
-}
-
-
-static GType
-zoom_buffer_transformation_job_get_type (void)
-{
- static volatile gsize zoom_buffer_transformation_job_type_id__volatile = 0;
- if (g_once_init_enter (&zoom_buffer_transformation_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ZoomBufferTransformationJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) zoom_buffer_transformation_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ZoomBufferTransformationJob), 0, (GInstanceInitFunc) zoom_buffer_transformation_job_instance_init, NULL };
- GType zoom_buffer_transformation_job_type_id;
- zoom_buffer_transformation_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "ZoomBufferTransformationJob", &g_define_type_info, 0);
- g_once_init_leave (&zoom_buffer_transformation_job_type_id__volatile, zoom_buffer_transformation_job_type_id);
- }
- return zoom_buffer_transformation_job_type_id__volatile;
-}
-
-
-static void
-zoom_buffer_class_init (ZoomBufferClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_buffer_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- 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 4922 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_instance_init (ZoomBuffer * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv = ZOOM_BUFFER_GET_PRIVATE (self);
-#line 69 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->iso_source_image = NULL;
-#line 70 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->reduced_source_image = NULL;
-#line 71 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->iso_transformed_image = NULL;
-#line 72 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->reduced_transformed_image = NULL;
-#line 73 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->preview_image = NULL;
-#line 74 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->backing_photo = NULL;
-#line 75 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED;
-#line 76 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_cached_pixbuf = NULL;
-#line 78 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->demand_transform_job = NULL;
-#line 80 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->workers = NULL;
-#line 82 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->is_interactive_redraw_in_progress = FALSE;
-#line 4953 "PhotoPage.c"
-}
-
-
-static void
-zoom_buffer_finalize (GObject * obj)
-{
- ZoomBuffer * self;
-#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ZOOM_BUFFER, ZoomBuffer);
-#line 69 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->iso_source_image);
-#line 70 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->reduced_source_image);
-#line 71 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->iso_transformed_image);
-#line 72 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->reduced_transformed_image);
-#line 73 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->preview_image);
-#line 74 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->backing_photo);
-#line 76 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->demand_transform_cached_pixbuf);
-#line 78 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _background_job_unref0 (self->priv->demand_transform_job);
-#line 80 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _workers_unref0 (self->priv->workers);
-#line 81 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _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 4985 "PhotoPage.c"
-}
-
-
-GType
-zoom_buffer_get_type (void)
-{
- static volatile gsize zoom_buffer_type_id__volatile = 0;
- if (g_once_init_enter (&zoom_buffer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ZoomBufferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) zoom_buffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ZoomBuffer), 0, (GInstanceInitFunc) zoom_buffer_instance_init, NULL };
- GType zoom_buffer_type_id;
- zoom_buffer_type_id = g_type_register_static (G_TYPE_OBJECT, "ZoomBuffer", &g_define_type_info, 0);
- g_once_init_leave (&zoom_buffer_type_id__volatile, zoom_buffer_type_id);
- }
- return zoom_buffer_type_id__volatile;
-}
-
-
-static void
-_editing_host_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 551 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_photos_altered ((EditingHostPage*) self, items);
-#line 5010 "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 553 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_view_contents_ordering_altered ((EditingHostPage*) self);
-#line 5022 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed (DataCollection* _sender,
- gpointer self)
-{
-#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_view_contents_ordering_altered ((EditingHostPage*) self);
-#line 5032 "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 5041 "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 5052 "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 5062 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_crop_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender,
- gpointer self)
-{
-#line 452 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_crop_toggled ((EditingHostPage*) self);
-#line 5072 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_straighten_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender,
- gpointer self)
-{
-#line 461 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_straighten_toggled ((EditingHostPage*) self);
-#line 5082 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_redeye_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender,
- gpointer self)
-{
-#line 470 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_redeye_toggled ((EditingHostPage*) self);
-#line 5092 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_adjust_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender,
- gpointer self)
-{
-#line 479 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_adjust_toggled ((EditingHostPage*) self);
-#line 5102 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_enhance_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 487 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_enhance ((EditingHostPage*) self);
-#line 5112 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- result = editing_host_page_on_zoom_out_pressed ((EditingHostPage*) self, event);
-#line 506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5125 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 514 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_zoom_slider_value_changed ((EditingHostPage*) self);
-#line 5135 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_on_zoom_slider_drag_begin_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- result = editing_host_page_on_zoom_slider_drag_begin ((EditingHostPage*) self, event);
-#line 515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5148 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_on_zoom_slider_drag_end_gtk_widget_button_release_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- result = editing_host_page_on_zoom_slider_drag_end ((EditingHostPage*) self, event);
-#line 516 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5161 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_on_zoom_slider_key_press_gtk_widget_key_press_event (GtkWidget* _sender,
- GdkEventKey* event,
- gpointer self)
-{
- gboolean result;
- result = editing_host_page_on_zoom_slider_key_press ((EditingHostPage*) self, event);
-#line 517 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5174 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- result = editing_host_page_on_zoom_in_pressed ((EditingHostPage*) self, event);
-#line 528 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5187 "PhotoPage.c"
-}
-
-
-static void
-_single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 540 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_on_previous_photo ((SinglePhotoPage*) self);
-#line 5197 "PhotoPage.c"
-}
-
-
-static void
-_single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 546 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_on_next_photo ((SinglePhotoPage*) self);
-#line 5207 "PhotoPage.c"
-}
-
-
-EditingHostPage*
-editing_host_page_construct (GType object_type,
- SourceCollection* sources,
- const gchar* name)
-{
- EditingHostPage * self = NULL;
- SourceCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GtkViewport* _tmp5_;
- GtkToolbar* toolbar = NULL;
- GtkToolbar* _tmp6_;
- GtkToolButton* _tmp7_;
- GtkToolButton* _tmp8_;
- GtkToolButton* _tmp9_;
- GtkToolButton* _tmp10_;
- GtkToolButton* _tmp11_;
- GtkToolButton* _tmp12_;
- GtkBindingSet* binding_set = NULL;
- GtkToolButton* _tmp13_;
- GObjectClass* _tmp14_;
- GtkBindingSet* _tmp15_;
- GtkToggleToolButton* _tmp16_;
- GtkToggleToolButton* _tmp17_;
- GtkToggleToolButton* _tmp18_;
- GtkToggleToolButton* _tmp19_;
- GtkToggleToolButton* _tmp20_;
- GtkToggleToolButton* _tmp21_;
- GtkToggleToolButton* _tmp22_;
- GtkToggleToolButton* _tmp23_;
- GtkToggleToolButton* _tmp24_;
- GtkToggleToolButton* _tmp25_;
- GtkToggleToolButton* _tmp26_;
- GtkToggleToolButton* _tmp27_;
- GtkToggleToolButton* _tmp28_;
- GtkToggleToolButton* _tmp29_;
- GtkToggleToolButton* _tmp30_;
- GtkToggleToolButton* _tmp31_;
- GtkToggleToolButton* _tmp32_;
- GtkToggleToolButton* _tmp33_;
- GtkToggleToolButton* _tmp34_;
- GtkToggleToolButton* _tmp35_;
- GtkToggleToolButton* _tmp36_;
- GtkToggleToolButton* _tmp37_;
- GtkToggleToolButton* _tmp38_;
- GtkToggleToolButton* _tmp39_;
- GtkToggleToolButton* _tmp40_;
- GtkToggleToolButton* _tmp41_;
- GtkToggleToolButton* _tmp42_;
- GtkToggleToolButton* _tmp43_;
- GtkToolButton* _tmp44_;
- GtkToolButton* _tmp45_;
- GtkToolButton* _tmp46_;
- GtkToolButton* _tmp47_;
- GtkToolButton* _tmp48_;
- GtkToolButton* _tmp49_;
- GtkSeparatorToolItem* separator = NULL;
- GtkSeparatorToolItem* _tmp50_;
- GtkBox* zoom_group = NULL;
- GtkBox* _tmp51_;
- GtkImage* zoom_out = NULL;
- GdkPixbuf* _tmp52_;
- GdkPixbuf* _tmp53_;
- GtkImage* _tmp54_;
- GtkImage* _tmp55_;
- GtkEventBox* zoom_out_box = NULL;
- GtkEventBox* _tmp56_;
- GtkAdjustment* _tmp57_;
- GtkAdjustment* _tmp58_;
- GtkScale* _tmp59_;
- GtkScale* _tmp60_;
- GtkScale* _tmp61_;
- GtkScale* _tmp62_;
- GtkScale* _tmp63_;
- GtkScale* _tmp64_;
- GtkScale* _tmp65_;
- GtkScale* _tmp66_;
- GtkImage* zoom_in = NULL;
- GdkPixbuf* _tmp67_;
- GdkPixbuf* _tmp68_;
- GtkImage* _tmp69_;
- GtkImage* _tmp70_;
- GtkEventBox* zoom_in_box = NULL;
- GtkEventBox* _tmp71_;
- GtkToolItem* group_wrapper = NULL;
- GtkToolItem* _tmp72_;
- GtkToolButton* _tmp73_;
- GtkToolButton* _tmp74_;
- GtkToolButton* _tmp75_;
- GtkToolButton* _tmp76_;
- GtkToolButton* _tmp77_;
- GtkToolButton* _tmp78_;
- GtkToolButton* _tmp79_;
- GtkToolButton* _tmp80_;
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 418 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = (EditingHostPage*) single_photo_page_construct (object_type, name, FALSE);
-#line 420 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _data_collection_ref0 (sources);
-#line 420 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 420 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->sources = _tmp0_;
-#line 423 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _editing_host_page_on_photos_altered_data_collection_items_altered, self, 0);
-#line 426 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 426 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 426 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _editing_host_page_on_view_contents_ordering_altered_data_collection_contents_altered, self, 0);
-#line 426 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp2_);
-#line 427 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 427 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 427 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), "ordering-changed", (GCallback) _editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed, self, 0);
-#line 427 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 431 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->viewport;
-#line 431 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _editing_host_page_on_viewport_resized_gtk_widget_size_allocate, self, 0);
-#line 434 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 434 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- toolbar = _tmp6_;
-#line 437 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_ROTATE_CW_LABEL);
-#line 437 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp7_);
-#line 437 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->rotate_button);
-#line 437 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->rotate_button = _tmp7_;
-#line 438 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = self->priv->rotate_button;
-#line 438 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (_tmp8_, RESOURCES_CLOCKWISE);
-#line 439 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = self->priv->rotate_button;
-#line 439 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP);
-#line 440 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = self->priv->rotate_button;
-#line 440 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp10_, "clicked", (GCallback) _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked, self, 0);
-#line 441 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = self->priv->rotate_button;
-#line 441 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 442 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = self->priv->rotate_button;
-#line 442 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = self->priv->rotate_button;
-#line 443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = G_OBJECT_GET_CLASS (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, G_TYPE_OBJECT, GObject));
-#line 443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = gtk_binding_set_by_class ((gpointer) _tmp14_);
-#line 443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- binding_set = _tmp15_;
-#line 444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_binding_entry_add_signal (binding_set, (guint) GDK_KEY_KP_Space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL);
-#line 445 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_binding_entry_add_signal (binding_set, (guint) GDK_KEY_space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL);
-#line 448 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new ();
-#line 448 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp16_);
-#line 448 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->crop_button);
-#line 448 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->crop_button = _tmp16_;
-#line 449 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = self->priv->crop_button;
-#line 449 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_tool_button_get_type (), GtkToolButton), "crop");
-#line 450 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = self->priv->crop_button;
-#line 450 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_CROP_LABEL);
-#line 451 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = self->priv->crop_button;
-#line 451 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_CROP_TOOLTIP);
-#line 452 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = self->priv->crop_button;
-#line 452 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp20_, "toggled", (GCallback) _editing_host_page_on_crop_toggled_gtk_toggle_tool_button_toggled, self, 0);
-#line 453 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = self->priv->crop_button;
-#line 453 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 454 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = self->priv->crop_button;
-#line 454 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 457 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new ();
-#line 457 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp23_);
-#line 457 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->straighten_button);
-#line 457 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->straighten_button = _tmp23_;
-#line 458 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = self->priv->straighten_button;
-#line 458 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_tool_button_get_type (), GtkToolButton), "straighten");
-#line 459 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = self->priv->straighten_button;
-#line 459 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_STRAIGHTEN_LABEL);
-#line 460 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = self->priv->straighten_button;
-#line 460 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_STRAIGHTEN_TOOLTIP);
-#line 461 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = self->priv->straighten_button;
-#line 461 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp27_, "toggled", (GCallback) _editing_host_page_on_straighten_toggled_gtk_toggle_tool_button_toggled, self, 0);
-#line 462 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = self->priv->straighten_button;
-#line 462 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 463 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = self->priv->straighten_button;
-#line 463 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new ();
-#line 466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp30_);
-#line 466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->redeye_button);
-#line 466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->redeye_button = _tmp30_;
-#line 467 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = self->priv->redeye_button;
-#line 467 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_tool_button_get_type (), GtkToolButton), "redeye");
-#line 468 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = self->priv->redeye_button;
-#line 468 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_RED_EYE_LABEL);
-#line 469 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp33_ = self->priv->redeye_button;
-#line 469 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_RED_EYE_TOOLTIP);
-#line 470 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp34_ = self->priv->redeye_button;
-#line 470 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp34_, "toggled", (GCallback) _editing_host_page_on_redeye_toggled_gtk_toggle_tool_button_toggled, self, 0);
-#line 471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp35_ = self->priv->redeye_button;
-#line 471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 472 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp36_ = self->priv->redeye_button;
-#line 472 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 475 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp37_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new ();
-#line 475 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp37_);
-#line 475 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->adjust_button);
-#line 475 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->adjust_button = _tmp37_;
-#line 476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp38_ = self->priv->adjust_button;
-#line 476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_ADJUST);
-#line 477 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp39_ = self->priv->adjust_button;
-#line 477 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_ADJUST_LABEL);
-#line 478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp40_ = self->priv->adjust_button;
-#line 478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ADJUST_TOOLTIP);
-#line 479 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp41_ = self->priv->adjust_button;
-#line 479 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp41_, "toggled", (GCallback) _editing_host_page_on_adjust_toggled_gtk_toggle_tool_button_toggled, self, 0);
-#line 480 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp42_ = self->priv->adjust_button;
-#line 480 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 481 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp43_ = self->priv->adjust_button;
-#line 481 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp44_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_ENHANCE_LABEL);
-#line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp44_);
-#line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->enhance_button);
-#line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->enhance_button = _tmp44_;
-#line 485 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp45_ = self->priv->enhance_button;
-#line 485 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (_tmp45_, RESOURCES_ENHANCE);
-#line 486 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp46_ = self->priv->enhance_button;
-#line 486 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ENHANCE_TOOLTIP);
-#line 487 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp47_ = self->priv->enhance_button;
-#line 487 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp47_, "clicked", (GCallback) _editing_host_page_on_enhance_gtk_tool_button_clicked, self, 0);
-#line 488 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp48_ = self->priv->enhance_button;
-#line 488 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 489 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp49_ = self->priv->enhance_button;
-#line 489 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp50_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp50_);
-#line 492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- separator = _tmp50_;
-#line 493 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (separator, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 494 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_separator_tool_item_set_draw (separator, FALSE);
-#line 495 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (separator, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 497 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp51_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-#line 497 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp51_);
-#line 497 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_group = _tmp51_;
-#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp52_ = resources_load_icon (RESOURCES_ICON_ZOOM_OUT, RESOURCES_ICON_ZOOM_SCALE);
-#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp53_ = _tmp52_;
-#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp54_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp53_);
-#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp54_);
-#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp55_ = _tmp54_;
-#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp53_);
-#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_out = _tmp55_;
-#line 501 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp56_ = (GtkEventBox*) gtk_event_box_new ();
-#line 501 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp56_);
-#line 501 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_out_box = _tmp56_;
-#line 502 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_event_box_set_above_child (zoom_out_box, TRUE);
-#line 503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_event_box_set_visible_window (zoom_out_box, FALSE);
-#line 504 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_out, gtk_widget_get_type (), GtkWidget));
-#line 506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_host_page_on_zoom_out_pressed_gtk_widget_button_press_event, self, 0);
-#line 508 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp57_ = gtk_adjustment_new (0.0, 0.0, 1.1, 0.1, 0.1, 0.1);
-#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp57_);
-#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp58_ = _tmp57_;
-#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp59_ = (GtkScale*) gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, _tmp58_);
-#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp59_);
-#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->zoom_slider);
-#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->zoom_slider = _tmp59_;
-#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp58_);
-#line 512 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp60_ = self->priv->zoom_slider;
-#line 512 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_scale_set_draw_value (_tmp60_, FALSE);
-#line 513 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp61_ = self->priv->zoom_slider;
-#line 513 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget), 120, -1);
-#line 514 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp62_ = self->priv->zoom_slider;
-#line 514 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0);
-#line 515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp63_ = self->priv->zoom_slider;
-#line 515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_host_page_on_zoom_slider_drag_begin_gtk_widget_button_press_event, self, 0);
-#line 516 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp64_ = self->priv->zoom_slider;
-#line 516 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget), "button-release-event", (GCallback) _editing_host_page_on_zoom_slider_drag_end_gtk_widget_button_release_event, self, 0);
-#line 517 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp65_ = self->priv->zoom_slider;
-#line 517 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _editing_host_page_on_zoom_slider_key_press_gtk_widget_key_press_event, self, 0);
-#line 519 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp66_ = self->priv->zoom_slider;
-#line 519 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp67_ = resources_load_icon (RESOURCES_ICON_ZOOM_IN, RESOURCES_ICON_ZOOM_SCALE);
-#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp68_ = _tmp67_;
-#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp69_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp68_);
-#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp69_);
-#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp70_ = _tmp69_;
-#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp68_);
-#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_in = _tmp70_;
-#line 523 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp71_ = (GtkEventBox*) gtk_event_box_new ();
-#line 523 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp71_);
-#line 523 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_in_box = _tmp71_;
-#line 524 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_event_box_set_above_child (zoom_in_box, TRUE);
-#line 525 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_event_box_set_visible_window (zoom_in_box, FALSE);
-#line 526 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_in, gtk_widget_get_type (), GtkWidget));
-#line 528 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_host_page_on_zoom_in_pressed_gtk_widget_button_press_event, self, 0);
-#line 530 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 532 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp72_ = gtk_tool_item_new ();
-#line 532 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp72_);
-#line 532 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- group_wrapper = _tmp72_;
-#line 533 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (group_wrapper, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_group, gtk_widget_get_type (), GtkWidget));
-#line 535 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, group_wrapper, -1);
-#line 538 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp73_ = self->priv->prev_button;
-#line 538 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_tool_item_get_type (), GtkToolItem), _ ("Previous photo"));
-#line 539 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp74_ = self->priv->prev_button;
-#line 539 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (_tmp74_, "go-previous");
-#line 540 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp75_ = self->priv->prev_button;
-#line 540 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp75_, "clicked", (GCallback) _single_photo_page_on_previous_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0);
-#line 541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp76_ = self->priv->prev_button;
-#line 541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 544 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp77_ = self->priv->next_button;
-#line 544 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_tool_item_get_type (), GtkToolItem), _ ("Next photo"));
-#line 545 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp78_ = self->priv->next_button;
-#line 545 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (_tmp78_, "go-next");
-#line 546 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp79_ = self->priv->next_button;
-#line 546 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp79_, "clicked", (GCallback) _single_photo_page_on_next_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0);
-#line 547 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp80_ = self->priv->next_button;
-#line 547 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (group_wrapper);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (zoom_in_box);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (zoom_in);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (zoom_out_box);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (zoom_out);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (zoom_group);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (separator);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (toolbar);
-#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self;
-#line 5723 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_zoom_slider_value_changed (EditingHostPage* self)
-{
- ZoomState new_zoom_state = {0};
- ZoomState _tmp0_ = {0};
- GtkScale* _tmp1_;
- gboolean _tmp2_;
-#line 557 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 558 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_);
-#line 558 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->zoom_slider;
-#line 558 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init_rescale (&new_zoom_state, &_tmp0_, gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)));
-#line 560 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->enable_interactive_zoom_refresh;
-#line 560 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 5746 "PhotoPage.c"
- ZoomState _tmp3_;
-#line 561 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = new_zoom_state;
-#line 561 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_on_interactive_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_);
-#line 563 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_is_default (&new_zoom_state)) {
-#line 5754 "PhotoPage.c"
- ZoomState _tmp4_;
-#line 564 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = new_zoom_state;
-#line 564 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp4_);
-#line 5760 "PhotoPage.c"
- }
- } else {
-#line 566 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_is_default (&new_zoom_state)) {
-#line 567 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 5767 "PhotoPage.c"
- } else {
- ZoomState _tmp5_;
-#line 569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = new_zoom_state;
-#line 569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_);
-#line 5774 "PhotoPage.c"
- }
-#line 571 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 5778 "PhotoPage.c"
- }
-#line 574 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_cursor_for_zoom_context (self);
-#line 5782 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_on_zoom_slider_drag_begin (EditingHostPage* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- GtkWindow* _tmp0_;
- GtkWindow* _tmp1_;
- gboolean _tmp2_;
-#line 577 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 577 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 578 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->enable_interactive_zoom_refresh = TRUE;
-#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_FULLSCREEN_WINDOW);
-#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 5810 "PhotoPage.c"
- GtkWindow* _tmp3_;
- FullscreenWindow* _tmp4_;
-#line 581 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 581 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 581 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- fullscreen_window_disable_toolbar_dismissal (_tmp4_);
-#line 581 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 5821 "PhotoPage.c"
- }
-#line 583 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 583 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5827 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_on_zoom_slider_drag_end (EditingHostPage* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- GtkWindow* _tmp0_;
- GtkWindow* _tmp1_;
- gboolean _tmp2_;
- ZoomState zoom_state = {0};
- ZoomState _tmp5_ = {0};
- GtkScale* _tmp6_;
- ZoomState _tmp7_;
-#line 586 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 586 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 587 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->enable_interactive_zoom_refresh = FALSE;
-#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_FULLSCREEN_WINDOW);
-#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 5859 "PhotoPage.c"
- GtkWindow* _tmp3_;
- FullscreenWindow* _tmp4_;
-#line 590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- fullscreen_window_update_toolbar_dismissal (_tmp4_);
-#line 590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 5870 "PhotoPage.c"
- }
-#line 592 "/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 592 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->zoom_slider;
-#line 592 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init_rescale (&zoom_state, &_tmp5_, gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_range_get_type (), GtkRange)));
-#line 593 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = zoom_state;
-#line 593 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp7_);
-#line 595 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5888 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_on_zoom_out_pressed (EditingHostPage* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 600 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 600 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 601 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_snap_zoom_to_min (self);
-#line 602 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 602 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5907 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_on_zoom_in_pressed (EditingHostPage* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 605 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 605 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 606 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_snap_zoom_to_max (self);
-#line 607 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 607 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 5926 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_get_cursor_wrt_viewport (EditingHostPage* self,
- GdkEventScroll* event,
- GdkPoint* result)
-{
- GdkPoint cursor_wrt_canvas = {0};
- GdkPoint _tmp0_ = {0};
- gdouble _tmp1_;
- gdouble _tmp2_;
- GdkRectangle viewport_wrt_canvas = {0};
- ZoomState _tmp3_ = {0};
- GdkRectangle _tmp4_ = {0};
- GdkPoint _result_ = {0};
- GdkPoint _tmp5_ = {0};
- GdkPoint _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_;
- gint _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
- GdkPoint _tmp14_;
- gint _tmp15_;
- GdkRectangle _tmp16_;
- gint _tmp17_;
- GdkPoint _tmp18_;
- gint _tmp19_;
- GdkRectangle _tmp20_;
- gint _tmp21_;
-#line 610 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 610 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (event != NULL);
-#line 611 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_.x = 0;
-#line 611 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cursor_wrt_canvas = _tmp0_;
-#line 612 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = event->x;
-#line 612 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cursor_wrt_canvas.x = (gint) _tmp1_;
-#line 613 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = event->y;
-#line 613 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cursor_wrt_canvas.y = (gint) _tmp2_;
-#line 615 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_);
-#line 615 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewing_rectangle_wrt_screen (&_tmp3_, &_tmp4_);
-#line 615 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_wrt_canvas = _tmp4_;
-#line 616 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_.x = 0;
-#line 616 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _result_ = _tmp5_;
-#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = cursor_wrt_canvas;
-#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_.x;
-#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = viewport_wrt_canvas;
-#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_.x;
-#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _result_.x = _tmp7_ - _tmp9_;
-#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _result_;
-#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_.x;
-#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = viewport_wrt_canvas;
-#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_.width;
-#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _result_.x = CLAMP (_tmp11_, 0, _tmp13_);
-#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = cursor_wrt_canvas;
-#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_.y;
-#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = viewport_wrt_canvas;
-#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_.y;
-#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _result_.y = _tmp15_ - _tmp17_;
-#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _result_;
-#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_.y;
-#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = viewport_wrt_canvas;
-#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = _tmp20_.height;
-#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _result_.y = CLAMP (_tmp19_, 0, _tmp21_);
-#line 622 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *result = _result_;
-#line 622 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 6030 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_get_cursor_wrt_viewport_center (EditingHostPage* self,
- GdkEventScroll* event,
- GdkPoint* result)
-{
- GdkPoint cursor_wrt_viewport = {0};
- GdkPoint _tmp0_ = {0};
- GdkRectangle viewport_wrt_canvas = {0};
- ZoomState _tmp1_ = {0};
- GdkRectangle _tmp2_ = {0};
- GdkPoint viewport_center = {0};
- GdkPoint _tmp3_ = {0};
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- GdkPoint _tmp8_;
- GdkPoint _tmp9_;
- GdkPoint _tmp10_ = {0};
-#line 625 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 625 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (event != NULL);
-#line 626 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_get_cursor_wrt_viewport (self, event, &_tmp0_);
-#line 626 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cursor_wrt_viewport = _tmp0_;
-#line 627 "/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 627 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewing_rectangle_wrt_screen (&_tmp1_, &_tmp2_);
-#line 627 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_wrt_canvas = _tmp2_;
-#line 629 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_.x = 0;
-#line 629 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center = _tmp3_;
-#line 630 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = viewport_wrt_canvas;
-#line 630 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_.width;
-#line 630 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.x = _tmp5_ / 2;
-#line 631 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = viewport_wrt_canvas;
-#line 631 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_.height;
-#line 631 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.y = _tmp7_ / 2;
-#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = cursor_wrt_viewport;
-#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = viewport_center;
-#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- subtract_points (&_tmp8_, &_tmp9_, &_tmp10_);
-#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *result = _tmp10_;
-#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 6093 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_get_iso_pixel_under_cursor (EditingHostPage* self,
- GdkEventScroll* event,
- GdkPoint* result)
-{
- GdkPoint viewport_center_iso = {0};
- ZoomState _tmp0_ = {0};
- GdkPoint _tmp1_ = {0};
- ZoomState _tmp2_ = {0};
- GdkPoint _tmp3_ = {0};
- GdkPoint cursor_wrt_center_iso = {0};
- GdkPoint _tmp4_ = {0};
- ZoomState _tmp5_ = {0};
- GdkPoint _tmp6_ = {0};
- GdkPoint _tmp7_;
- GdkPoint _tmp8_;
- GdkPoint _tmp9_ = {0};
-#line 636 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 636 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (event != NULL);
-#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_);
-#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewport_center (&_tmp0_, &_tmp1_);
-#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp2_);
-#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scale_point (&_tmp1_, 1.0 / zoom_state_get_zoom_factor (&_tmp2_), &_tmp3_);
-#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center_iso = _tmp3_;
-#line 640 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_get_cursor_wrt_viewport_center (self, event, &_tmp4_);
-#line 640 "/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 640 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scale_point (&_tmp4_, 1.0 / zoom_state_get_zoom_factor (&_tmp5_), &_tmp6_);
-#line 640 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cursor_wrt_center_iso = _tmp6_;
-#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = viewport_center_iso;
-#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = cursor_wrt_center_iso;
-#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- add_points (&_tmp7_, &_tmp8_, &_tmp9_);
-#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *result = _tmp9_;
-#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 6146 "PhotoPage.c"
-}
-
-
-static gdouble
-editing_host_page_snap_interpolation_factor (EditingHostPage* self,
- gdouble interp)
-{
- gdouble result = 0.0;
-#line 646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), 0.0);
-#line 647 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (interp < 0.03) {
-#line 648 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- interp = 0.0;
-#line 6161 "PhotoPage.c"
- } else {
-#line 649 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (interp > 0.97) {
-#line 650 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- interp = 1.0;
-#line 6167 "PhotoPage.c"
- }
- }
-#line 652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = interp;
-#line 652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6174 "PhotoPage.c"
-}
-
-
-static gdouble
-editing_host_page_adjust_interpolation_factor (EditingHostPage* self,
- gdouble adjustment)
-{
- gdouble result = 0.0;
- ZoomState _tmp0_ = {0};
-#line 655 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), 0.0);
-#line 656 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_);
-#line 656 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = editing_host_page_snap_interpolation_factor (self, zoom_state_get_interpolation_factor (&_tmp0_) + adjustment);
-#line 656 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6192 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_zoom_about_event_cursor_point (EditingHostPage* self,
- GdkEventScroll* event,
- gdouble zoom_increment)
-{
- gboolean _tmp0_;
- GdkPoint cursor_wrt_viewport_center = {0};
- GdkPoint _tmp1_ = {0};
- GdkPoint iso_pixel_under_cursor = {0};
- GdkPoint _tmp2_ = {0};
- gdouble interp = 0.0;
- GtkScale* _tmp3_;
- guint _tmp4_;
- GtkScale* _tmp5_;
- gdouble _tmp6_;
- GtkScale* _tmp7_;
- ZoomState new_zoom_state = {0};
- ZoomState _tmp8_ = {0};
- gdouble _tmp9_;
- GdkPoint new_zoomed_old_cursor = {0};
- GdkPoint _tmp10_;
- GdkPoint _tmp11_ = {0};
- GdkPoint desired_new_viewport_center = {0};
- GdkPoint _tmp12_;
- GdkPoint _tmp13_;
- GdkPoint _tmp14_ = {0};
- ZoomState _tmp15_;
- GdkPoint _tmp16_;
- ZoomState _tmp17_;
-#line 659 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 659 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (event != NULL);
-#line 660 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->photo_missing;
-#line 660 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 661 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 6235 "PhotoPage.c"
- }
-#line 663 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_get_cursor_wrt_viewport_center (self, event, &_tmp1_);
-#line 663 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cursor_wrt_viewport_center = _tmp1_;
-#line 664 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_get_iso_pixel_under_cursor (self, event, &_tmp2_);
-#line 664 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- iso_pixel_under_cursor = _tmp2_;
-#line 666 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- interp = editing_host_page_adjust_interpolation_factor (self, zoom_increment);
-#line 667 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->zoom_slider;
-#line 667 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp4_, NULL, FALSE);
-#line 667 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self);
-#line 668 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->zoom_slider;
-#line 668 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = interp;
-#line 668 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_range_get_type (), GtkRange), _tmp6_);
-#line 669 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = self->priv->zoom_slider;
-#line 669 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0);
-#line 671 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_);
-#line 671 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = interp;
-#line 671 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init_rescale (&new_zoom_state, &_tmp8_, _tmp9_);
-#line 673 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_is_min (&new_zoom_state)) {
-#line 674 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 675 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_cursor_for_zoom_context (self);
-#line 676 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 677 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 6279 "PhotoPage.c"
- }
-#line 680 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = iso_pixel_under_cursor;
-#line 680 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scale_point (&_tmp10_, zoom_state_get_zoom_factor (&new_zoom_state), &_tmp11_);
-#line 680 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- new_zoomed_old_cursor = _tmp11_;
-#line 682 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = new_zoomed_old_cursor;
-#line 682 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = cursor_wrt_viewport_center;
-#line 682 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- subtract_points (&_tmp12_, &_tmp13_, &_tmp14_);
-#line 682 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- desired_new_viewport_center = _tmp14_;
-#line 685 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = new_zoom_state;
-#line 685 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = desired_new_viewport_center;
-#line 685 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init_pan (&new_zoom_state, &_tmp15_, &_tmp16_);
-#line 687 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = new_zoom_state;
-#line 687 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp17_);
-#line 688 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 690 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_cursor_for_zoom_context (self);
-#line 6309 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_snap_zoom_to_min (EditingHostPage* self)
-{
- GtkScale* _tmp0_;
-#line 693 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 694 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_slider;
-#line 694 "/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 6323 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_snap_zoom_to_max (EditingHostPage* self)
-{
- GtkScale* _tmp0_;
-#line 697 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 698 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_slider;
-#line 698 "/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 6337 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_snap_zoom_to_isomorphic (EditingHostPage* self)
-{
- ZoomState iso_state = {0};
- ZoomState _tmp0_ = {0};
- GtkScale* _tmp1_;
-#line 701 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 702 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_);
-#line 702 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init_rescale_to_isomorphic (&iso_state, &_tmp0_);
-#line 703 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->zoom_slider;
-#line 703 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange), zoom_state_get_interpolation_factor (&iso_state));
-#line 6357 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_zoom_slider_key_press (EditingHostPage* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- GQuark _tmp4_ = 0U;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp3_label0 = 0;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp3_label1 = 0;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp3_label2 = 0;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp3_label3 = 0;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp3_label4 = 0;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp3_label5 = 0;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp3_label6 = 0;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp3_label7 = 0;
-#line 706 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = event->keyval;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("equal")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("plus"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("KP_Add"))))) {
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 6400 "PhotoPage.c"
- default:
- {
-#line 711 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize");
-#line 712 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 712 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6409 "PhotoPage.c"
- }
- }
- } else if (((_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("minus")))) || (_tmp4_ == ((0 != _tmp3_label4) ? _tmp3_label4 : (_tmp3_label4 = g_quark_from_static_string ("underscore"))))) || (_tmp4_ == ((0 != _tmp3_label5) ? _tmp3_label5 : (_tmp3_label5 = g_quark_from_static_string ("KP_Subtract"))))) {
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 6415 "PhotoPage.c"
- default:
- {
-#line 717 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize");
-#line 718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6424 "PhotoPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label6) ? _tmp3_label6 : (_tmp3_label6 = g_quark_from_static_string ("KP_Divide")))) {
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 6430 "PhotoPage.c"
- default:
- {
-#line 721 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom100");
-#line 722 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 722 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6439 "PhotoPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label7) ? _tmp3_label7 : (_tmp3_label7 = g_quark_from_static_string ("KP_Multiply")))) {
-#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 6445 "PhotoPage.c"
- default:
- {
-#line 725 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ZoomFit");
-#line 726 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 726 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6454 "PhotoPage.c"
- }
- }
- }
-#line 729 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 729 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6462 "PhotoPage.c"
-}
-
-
-gboolean
-editing_host_page_on_zoom_slider_key_press (EditingHostPage* self,
- GdkEventKey* event)
-{
-#line 706 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 706 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return EDITING_HOST_PAGE_GET_CLASS (self)->on_zoom_slider_key_press (self, event);
-#line 6474 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_on_increase_size (EditingHostPage* self)
-{
- GtkScale* _tmp0_;
-#line 733 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_slider;
-#line 733 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), editing_host_page_adjust_interpolation_factor (self, EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE));
-#line 6486 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_increase_size (EditingHostPage* self)
-{
-#line 732 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 732 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- EDITING_HOST_PAGE_GET_CLASS (self)->on_increase_size (self);
-#line 6497 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_on_decrease_size (EditingHostPage* self)
-{
- GtkScale* _tmp0_;
-#line 737 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_slider;
-#line 737 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), editing_host_page_adjust_interpolation_factor (self, -EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE));
-#line 6509 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_decrease_size (EditingHostPage* self)
-{
-#line 736 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 736 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- EDITING_HOST_PAGE_GET_CLASS (self)->on_decrease_size (self);
-#line 6520 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_save_zoom_state (SinglePhotoPage* base)
-{
- EditingHostPage * self;
- GtkScale* _tmp0_;
-#line 740 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- SINGLE_PHOTO_PAGE_CLASS (editing_host_page_parent_class)->save_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 742 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_slider;
-#line 742 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->saved_slider_val = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange));
-#line 6537 "PhotoPage.c"
-}
-
-
-static ZoomBuffer*
-editing_host_page_real_get_zoom_buffer (SinglePhotoPage* base)
-{
- EditingHostPage * self;
- ZoomBuffer* result = NULL;
- ZoomBuffer* _tmp0_;
- ZoomBuffer* _tmp1_;
-#line 745 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 746 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_buffer;
-#line 746 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 746 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp1_;
-#line 746 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6558 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_mousewheel_up (Page* base,
- GdkEventScroll* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- ZoomState _tmp1_ = {0};
-#line 749 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 749 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 750 "/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 750 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_is_max (&_tmp1_)) {
-#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 6580 "PhotoPage.c"
- } else {
- GtkScale* _tmp2_;
-#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->zoom_slider;
-#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = !gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 6587 "PhotoPage.c"
- }
-#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 751 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 751 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6595 "PhotoPage.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_zoom_about_event_cursor_point (self, event, EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE);
-#line 754 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 754 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6603 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_mousewheel_down (Page* base,
- GdkEventScroll* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- ZoomState _tmp1_ = {0};
-#line 757 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 757 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 758 "/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 758 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (zoom_state_is_min (&_tmp1_)) {
-#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 6625 "PhotoPage.c"
- } else {
- GtkScale* _tmp2_;
-#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->zoom_slider;
-#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = !gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 6632 "PhotoPage.c"
- }
-#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 759 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 759 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6640 "PhotoPage.c"
- }
-#line 761 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_zoom_about_event_cursor_point (self, event, -EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE);
-#line 762 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 762 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6648 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_restore_zoom_state (SinglePhotoPage* base)
-{
- EditingHostPage * self;
- GtkScale* _tmp0_;
- guint _tmp1_;
- GtkScale* _tmp2_;
- gdouble _tmp3_;
- GtkScale* _tmp4_;
-#line 765 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 766 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- SINGLE_PHOTO_PAGE_CLASS (editing_host_page_parent_class)->restore_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 768 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_slider;
-#line 768 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp1_, NULL, FALSE);
-#line 768 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self);
-#line 769 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->zoom_slider;
-#line 769 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->saved_slider_val;
-#line 769 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), _tmp3_);
-#line 770 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = self->priv->zoom_slider;
-#line 770 "/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 6681 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_is_zoom_supported (SinglePhotoPage* base)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
-#line 773 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 774 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 774 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6696 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_set_container (Page* base,
- GtkWindow* container)
-{
- EditingHostPage * self;
-#line 777 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 777 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GTK_IS_WINDOW (container));
-#line 778 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- PAGE_CLASS (editing_host_page_parent_class)->set_container (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), container);
-#line 781 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!G_TYPE_CHECK_INSTANCE_TYPE (container, TYPE_FULLSCREEN_WINDOW)) {
-#line 6713 "PhotoPage.c"
- DragAndDropHandler* _tmp0_;
-#line 782 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = drag_and_drop_handler_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 782 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _drag_and_drop_handler_unref0 (self->priv->dnd_handler);
-#line 782 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->dnd_handler = _tmp0_;
-#line 6721 "PhotoPage.c"
- }
-}
-
-
-ViewCollection*
-editing_host_page_get_parent_view (EditingHostPage* self)
-{
- ViewCollection* result = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
-#line 785 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL);
-#line 786 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->parent_view;
-#line 786 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _data_collection_ref0 (_tmp0_);
-#line 786 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp1_;
-#line 786 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6742 "PhotoPage.c"
-}
-
-
-gboolean
-editing_host_page_has_photo (EditingHostPage* self)
-{
- gboolean result = FALSE;
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean _tmp2_;
-#line 789 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_ != NULL;
-#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp2_;
-#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6767 "PhotoPage.c"
-}
-
-
-Photo*
-editing_host_page_get_photo (EditingHostPage* self)
-{
- Photo* result = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- DataView* _tmp7_;
- DataView* _tmp8_;
- DataSource* _tmp9_;
- Photo* _tmp10_;
-#line 793 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL);
-#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 796 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = NULL;
-#line 796 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6802 "PhotoPage.c"
- }
-#line 800 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 800 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 800 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (view_collection_get_selected_count (_tmp4_) == 1, "get_view().get_selected_count() == 1");
-#line 800 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = view_collection_get_selected_at (_tmp6_, 0);
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = data_view_get_source (_tmp8_);
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo);
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp10_;
-#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 6832 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_photo_changing (EditingHostPage* self,
- Photo* new_photo)
-{
- gboolean _tmp2_;
-#line 805 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (new_photo));
-#line 808 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (photo_get_file_format (new_photo) == PHOTO_FILE_FORMAT_RAW) {
-#line 809 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, FALSE);
-#line 6847 "PhotoPage.c"
- } else {
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 811 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_MEDIA_SOURCE, MediaSource));
-#line 811 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 811 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, !g_file_query_exists (_tmp1_, NULL));
-#line 811 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 6859 "PhotoPage.c"
- }
-#line 813 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->photo_missing;
-#line 813 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_ui (self, _tmp2_);
-#line 6865 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_photo_changing (EditingHostPage* self,
- Photo* new_photo)
-{
-#line 805 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 805 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- EDITING_HOST_PAGE_GET_CLASS (self)->photo_changing (self, new_photo);
-#line 6877 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_set_photo (EditingHostPage* self,
- Photo* photo)
-{
- GtkScale* _tmp0_;
- guint _tmp1_;
- GtkScale* _tmp2_;
- GtkScale* _tmp3_;
- DataView* view = NULL;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- DataView* _tmp6_;
- DataView* _tmp7_;
- DataView* _tmp8_;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- Marker* marker = NULL;
- ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- DataView* _tmp13_;
- Marker* _tmp14_;
- Marker* _tmp15_;
- ViewCollection* _tmp16_;
- ViewCollection* _tmp17_;
- Marker* _tmp18_;
- ViewCollection* _tmp19_;
-#line 816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 817 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_slider;
-#line 817 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp1_, NULL, FALSE);
-#line 817 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self);
-#line 818 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->zoom_slider;
-#line 818 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), 0.0);
-#line 819 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->zoom_slider;
-#line 819 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0);
-#line 821 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_photo_changing (self, photo);
-#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = view_collection_get_view_for_source (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource));
-#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view = _tmp7_;
-#line 823 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = view;
-#line 823 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp8_ != NULL, "view != null");
-#line 826 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 826 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 826 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_collection_unselect_all (_tmp10_);
-#line 826 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = view;
-#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject));
-#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp12_);
-#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- marker = _tmp15_;
-#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = marker;
-#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_collection_select_marked (_tmp17_, _tmp18_);
-#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp17_);
-#line 832 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = self->priv->parent_view;
-#line 832 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp19_ != NULL) {
-#line 6979 "PhotoPage.c"
- ViewCollection* _tmp20_;
- DataView* view_in_parent = NULL;
- ViewCollection* _tmp21_;
- DataView* _tmp22_;
- DataView* _tmp23_;
-#line 833 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = self->priv->parent_view;
-#line 833 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_collection_unselect_all (_tmp20_);
-#line 834 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = self->priv->parent_view;
-#line 834 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = view_collection_get_view_for_source_filtered (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource));
-#line 834 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_in_parent = _tmp22_;
-#line 835 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = view_in_parent;
-#line 835 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (NULL != _tmp23_) {
-#line 6999 "PhotoPage.c"
- ViewCollection* _tmp24_;
- ViewCollection* _tmp25_;
- DataView* _tmp26_;
- Marker* _tmp27_;
- Marker* _tmp28_;
-#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = self->priv->parent_view;
-#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = self->priv->parent_view;
-#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = view_in_parent;
-#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_OBJECT, DataObject));
-#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = _tmp27_;
-#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_collection_select_marked (_tmp24_, _tmp28_);
-#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp28_);
-#line 7019 "PhotoPage.c"
- }
-#line 832 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (view_in_parent);
-#line 7023 "PhotoPage.c"
- }
-#line 816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (marker);
-#line 816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (view);
-#line 7029 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_realize (GtkWidget* base)
-{
- EditingHostPage * self;
-#line 840 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 841 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- 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 843 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rebuild_caches (self, "realize");
-#line 7043 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_switched_to (Page* base)
-{
- EditingHostPage * self;
- gboolean _tmp0_ = FALSE;
-#line 846 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 847 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- PAGE_CLASS (editing_host_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page));
-#line 849 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rebuild_caches (self, "switched_to");
-#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (self)) {
-#line 7060 "PhotoPage.c"
- gboolean _tmp1_;
-#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->pixbuf_dirty;
-#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _tmp1_;
-#line 7066 "PhotoPage.c"
- } else {
-#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 7070 "PhotoPage.c"
- }
-#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 7074 "PhotoPage.c"
- Photo* _tmp2_;
- Photo* _tmp3_;
-#line 853 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = editing_host_page_get_photo (self);
-#line 853 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 853 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_replace_photo (self, _tmp3_);
-#line 853 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 7085 "PhotoPage.c"
- }
-}
-
-
-static void
-editing_host_page_real_switching_from (Page* base)
-{
- EditingHostPage * self;
- Dimensions _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
-#line 856 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 857 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- PAGE_CLASS (editing_host_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page));
-#line 859 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 860 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->is_pan_in_progress = FALSE;
-#line 862 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 862 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE);
-#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (self)) {
-#line 7112 "PhotoPage.c"
- ViewCollection* _tmp2_;
-#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->parent_view;
-#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp2_ != NULL;
-#line 7118 "PhotoPage.c"
- } else {
-#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = FALSE;
-#line 7122 "PhotoPage.c"
- }
-#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_) {
-#line 7126 "PhotoPage.c"
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- Photo* _tmp6_;
- Photo* _tmp7_;
- DataView* _tmp8_;
- DataView* _tmp9_;
- Marker* _tmp10_;
- Marker* _tmp11_;
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->parent_view;
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = self->priv->parent_view;
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->parent_view;
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = editing_host_page_get_photo (self);
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = view_collection_get_view_for_source (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource));
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_collection_select_marked (_tmp3_, _tmp11_);
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 7162 "PhotoPage.c"
- }
-#line 873 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (self->priv->parent_view);
-#line 873 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->parent_view = NULL;
-#line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection));
-#line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 7176 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_selection_changed_view_collection_items_selected (ViewCollection* _sender,
- GeeIterable* selected,
- gpointer self)
-{
-#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_selection_changed ((EditingHostPage*) self, selected);
-#line 7187 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_switching_to_fullscreen (Page* base,
- FullscreenWindow* fsw)
-{
- EditingHostPage * self;
- Dimensions _tmp0_ = {0};
- Page* page = NULL;
- Page* _tmp1_;
- Page* _tmp2_;
-#line 877 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 877 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw));
-#line 878 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- PAGE_CLASS (editing_host_page_parent_class)->switching_to_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), fsw);
-#line 880 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 880 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE);
-#line 882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 883 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->is_pan_in_progress = FALSE;
-#line 885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (fsw, TYPE_PAGE_WINDOW, PageWindow));
-#line 885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page = _tmp1_;
-#line 886 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = page;
-#line 886 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ != NULL) {
-#line 7222 "PhotoPage.c"
- Page* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page;
-#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = page_get_view (_tmp3_);
-#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp5_, "items-selected", (GCallback) _editing_host_page_on_selection_changed_view_collection_items_selected, self, 0);
-#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 7236 "PhotoPage.c"
- }
-#line 877 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (page);
-#line 7240 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_returning_from_fullscreen (Page* base,
- FullscreenWindow* fsw)
-{
- EditingHostPage * self;
- Page* page = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
-#line 890 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 890 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw));
-#line 891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- PAGE_CLASS (editing_host_page_parent_class)->returning_from_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), fsw);
-#line 893 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 895 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (fsw, TYPE_PAGE_WINDOW, PageWindow));
-#line 895 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page = _tmp0_;
-#line 896 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = page;
-#line 896 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_ != NULL) {
-#line 7268 "PhotoPage.c"
- Page* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- guint _tmp5_;
-#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = page;
-#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (_tmp2_);
-#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("items-selected", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _editing_host_page_on_selection_changed_view_collection_items_selected, self);
-#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 7285 "PhotoPage.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (page);
-#line 7289 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_selection_changed (EditingHostPage* self,
- GeeIterable* selected)
-{
-#line 900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GEE_IS_ITERABLE (selected));
-#line 7301 "PhotoPage.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp0_;
-#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = gee_iterable_iterator (selected);
-#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _view_it = _tmp0_;
-#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- while (TRUE) {
-#line 7311 "PhotoPage.c"
- DataView* view = NULL;
- gpointer _tmp1_;
- DataView* _tmp2_;
- DataSource* _tmp3_;
- Photo* _tmp4_;
-#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!gee_iterator_next (_view_it)) {
-#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 7321 "PhotoPage.c"
- }
-#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = gee_iterator_get (_view_it);
-#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view = (DataView*) _tmp1_;
-#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = view;
-#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = data_view_get_source (_tmp2_);
-#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO, Photo);
-#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_replace_photo (self, _tmp4_);
-#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (view);
-#line 903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 7341 "PhotoPage.c"
- }
-#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_view_it);
-#line 7345 "PhotoPage.c"
- }
-}
-
-
-void
-editing_host_page_enable_rotate (EditingHostPage* self,
- gboolean should_enable)
-{
- GtkToolButton* _tmp0_;
-#line 907 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 908 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->rotate_button;
-#line 908 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), should_enable);
-#line 7361 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched (PixbufCache* _sender,
- Photo* photo,
- GdkPixbuf* pixbuf,
- GError* err,
- gpointer self)
-{
-#line 926 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_pixbuf_fetched ((EditingHostPage*) self, photo, pixbuf, err);
-#line 7374 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_master_cache_filter_pixbuf_cache_cache_filter (Photo* photo,
- gpointer self)
-{
- gboolean result;
- result = editing_host_page_master_cache_filter ((EditingHostPage*) self, photo);
-#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 7386 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_rebuild_caches (EditingHostPage* self,
- const gchar* caller)
-{
- Scaling scaling = {0};
- Scaling _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
- PixbufCache* _tmp2_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- PixbufCache* _tmp8_;
- SourceCollection* _tmp12_;
- Scaling _tmp13_;
- PixbufCache* _tmp14_;
- PixbufCache* _tmp15_;
- SourceCollection* _tmp16_;
- Scaling _tmp17_;
- PixbufCache* _tmp18_;
-#line 914 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 914 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (caller != NULL);
-#line 915 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_);
-#line 915 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaling = _tmp0_;
-#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->cache;
-#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ != NULL) {
-#line 7420 "PhotoPage.c"
- PixbufCache* _tmp3_;
- Scaling _tmp4_ = {0};
- Scaling _tmp5_;
-#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->cache;
-#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_get_scaling (_tmp3_, &_tmp4_);
-#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = scaling;
-#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = scaling_equals (&_tmp4_, &_tmp5_);
-#line 7432 "PhotoPage.c"
- } else {
-#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = FALSE;
-#line 7436 "PhotoPage.c"
- }
-#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_) {
-#line 919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 7442 "PhotoPage.c"
- }
-#line 921 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = scaling_to_string (&scaling);
-#line 921 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 921 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_debug ("PhotoPage.vala:921: Rebuild pixbuf caches: %s (%s)", caller, _tmp7_);
-#line 921 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp7_);
-#line 925 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = self->priv->cache;
-#line 925 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp8_ != NULL) {
-#line 7456 "PhotoPage.c"
- PixbufCache* _tmp9_;
- guint _tmp10_;
- PixbufCache* _tmp11_;
-#line 926 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = self->priv->cache;
-#line 926 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("fetched", TYPE_PIXBUF_CACHE, &_tmp10_, NULL, FALSE);
-#line 926 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched, self);
-#line 927 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = self->priv->cache;
-#line 927 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_cancel_all (_tmp11_);
-#line 7470 "PhotoPage.c"
- }
-#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = self->priv->sources;
-#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = scaling;
-#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = pixbuf_cache_new (_tmp12_, PIXBUF_CACHE_PHOTO_TYPE_BASELINE, &_tmp13_, EDITING_HOST_PAGE_PIXBUF_CACHE_COUNT, NULL, NULL);
-#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->cache);
-#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->cache = _tmp14_;
-#line 931 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = self->priv->cache;
-#line 931 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp15_, "fetched", (GCallback) _editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched, self, 0);
-#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = self->priv->sources;
-#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = scaling;
-#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = pixbuf_cache_new (_tmp16_, PIXBUF_CACHE_PHOTO_TYPE_MASTER, &_tmp17_, EDITING_HOST_PAGE_ORIGINAL_PIXBUF_CACHE_COUNT, _editing_host_page_master_cache_filter_pixbuf_cache_cache_filter, self);
-#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->master_cache);
-#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->master_cache = _tmp18_;
-#line 936 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_refresh_caches (self, caller);
-#line 7498 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_refresh_caches (EditingHostPage* self,
- const gchar* caller)
-{
-#line 940 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 940 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (caller != NULL);
-#line 941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (self)) {
-#line 7512 "PhotoPage.c"
- Photo* _tmp0_;
- Photo* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- Photo* _tmp6_;
- Photo* _tmp7_;
-#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
-#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_debug ("PhotoPage.vala:942: Refresh pixbuf caches (%s): prefetching neighbors " \
-"of %s", caller, _tmp3_);
-#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp3_);
-#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = editing_host_page_get_photo (self);
-#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_prefetch_neighbors (self, _tmp5_, _tmp7_);
-#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 7549 "PhotoPage.c"
- } else {
-#line 946 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_debug ("PhotoPage.vala:946: Refresh pixbuf caches (%s): (no photo)", caller);
-#line 7553 "PhotoPage.c"
- }
-}
-
-
-static gboolean
-editing_host_page_master_cache_filter (EditingHostPage* self,
- Photo* photo)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 950 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 950 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_PHOTO (photo), FALSE);
-#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (photo_has_transformations (photo)) {
-#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 7572 "PhotoPage.c"
- } else {
-#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = photo_has_editable (photo);
-#line 7576 "PhotoPage.c"
- }
-#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp0_;
-#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 7582 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_pixbuf_fetched (EditingHostPage* self,
- Photo* photo,
- GdkPixbuf* pixbuf,
- GError* err)
-{
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean _tmp2_;
- GError * _inner_error_ = NULL;
-#line 954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail ((pixbuf == NULL) || GDK_IS_PIXBUF (pixbuf));
-#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource));
-#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 957 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 7614 "PhotoPage.c"
- }
-#line 959 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (pixbuf != NULL) {
-#line 7618 "PhotoPage.c"
- gboolean _tmp3_ = FALSE;
- ZoomBuffer* _tmp4_;
- Dimensions max_dim = {0};
- Dimensions _tmp9_ = {0};
- EditingToolsEditingTool* _tmp10_;
- Dimensions _tmp22_;
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = self->priv->zoom_buffer;
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_ != NULL) {
-#line 7629 "PhotoPage.c"
- ZoomBuffer* _tmp5_;
- Photo* _tmp6_;
- Photo* _tmp7_;
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->zoom_buffer;
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = zoom_buffer_get_backing_photo (_tmp5_);
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp7_ == photo;
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 7643 "PhotoPage.c"
- } else {
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = FALSE;
-#line 7647 "PhotoPage.c"
- }
-#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_) {
-#line 7651 "PhotoPage.c"
- ZoomBuffer* _tmp8_;
-#line 962 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = zoom_buffer_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), photo, pixbuf);
-#line 962 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->zoom_buffer);
-#line 962 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->zoom_buffer = _tmp8_;
-#line 7659 "PhotoPage.c"
- }
-#line 966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_);
-#line 966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- max_dim = _tmp9_;
-#line 967 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = self->priv->current_tool;
-#line 967 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp10_ != NULL) {
-#line 7669 "PhotoPage.c"
- {
- Dimensions tool_pixbuf_dim = {0};
- GdkPixbuf* tool_pixbuf = NULL;
- EditingToolsEditingTool* _tmp11_;
- Scaling _tmp12_ = {0};
- Dimensions _tmp13_ = {0};
- GdkPixbuf* _tmp14_;
- GdkPixbuf* _tmp15_;
-#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = self->priv->current_tool;
-#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp12_);
-#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = editing_tools_editing_tool_get_display_pixbuf (_tmp11_, &_tmp12_, photo, &_tmp13_, &_inner_error_);
-#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_pixbuf_dim = _tmp13_;
-#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_pixbuf = _tmp14_;
-#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7690 "PhotoPage.c"
- goto __catch256_g_error;
- }
-#line 973 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = tool_pixbuf;
-#line 973 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp15_ != NULL) {
-#line 7697 "PhotoPage.c"
- GdkPixbuf* _tmp16_;
- Dimensions _tmp17_;
-#line 974 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = tool_pixbuf;
-#line 974 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp16_;
-#line 975 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = tool_pixbuf_dim;
-#line 975 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- max_dim = _tmp17_;
-#line 7708 "PhotoPage.c"
- }
-#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (tool_pixbuf);
-#line 7712 "PhotoPage.c"
- }
- goto __finally256;
- __catch256_g_error:
- {
- GError* err = NULL;
- gchar* _tmp18_;
- gchar* _tmp19_;
- GError* _tmp20_;
- const gchar* _tmp21_;
-#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_OBJECT, DataObject));
-#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_;
-#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = err;
-#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = _tmp20_->message;
-#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_warning ("PhotoPage.vala:978: Unable to fetch tool pixbuf for %s: %s", _tmp19_, _tmp21_);
-#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp19_);
-#line 979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, TRUE);
-#line 981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 7744 "PhotoPage.c"
- }
- __finally256:
-#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 968 "/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 968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 7755 "PhotoPage.c"
- }
- }
-#line 985 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = max_dim;
-#line 985 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), pixbuf, &_tmp22_, NULL);
-#line 986 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = FALSE;
-#line 988 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_notify_photo_backing_missing (self, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), FALSE);
-#line 7766 "PhotoPage.c"
- } else {
-#line 989 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (err != NULL) {
-#line 992 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, TRUE);
-#line 995 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_notify_photo_backing_missing (self, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), TRUE);
-#line 7774 "PhotoPage.c"
- }
- }
-}
-
-
-static void
-editing_host_page_prefetch_neighbors (EditingHostPage* self,
- ViewCollection* controller,
- Photo* photo)
-{
- PixbufCachePixbufCacheBatch* normal_batch = NULL;
- PixbufCachePixbufCacheBatch* _tmp0_;
- PixbufCachePixbufCacheBatch* master_batch = NULL;
- PixbufCachePixbufCacheBatch* _tmp1_;
- PixbufCachePixbufCacheBatch* _tmp2_;
- PixbufCachePixbufCacheBatch* _tmp3_;
- DataSource* next_source = NULL;
- DataSource* prev_source = NULL;
- DataSource* _tmp4_ = NULL;
- DataSource* _tmp5_ = NULL;
- gboolean _tmp6_;
- Photo* next = NULL;
- DataSource* _tmp7_;
- Photo* _tmp8_;
- Photo* prev = NULL;
- DataSource* _tmp9_;
- Photo* _tmp10_;
- PixbufCache* _tmp30_;
- PixbufCachePixbufCacheBatch* _tmp31_;
- PixbufCache* _tmp32_;
- PixbufCachePixbufCacheBatch* _tmp33_;
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (controller));
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 1000 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = pixbuf_cache_pixbuf_cache_batch_new ();
-#line 1000 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- normal_batch = _tmp0_;
-#line 1001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = pixbuf_cache_pixbuf_cache_batch_new ();
-#line 1001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- master_batch = _tmp1_;
-#line 1003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = normal_batch;
-#line 1003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) BACKGROUND_JOB_JOB_PRIORITY_HIGHEST), photo);
-#line 1004 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = master_batch;
-#line 1004 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) BACKGROUND_JOB_JOB_PRIORITY_LOW), photo);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = view_collection_get_immediate_neighbors (controller, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), &_tmp4_, &_tmp5_, PHOTO_TYPENAME);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next_source);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- next_source = _tmp4_;
-#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (prev_source);
-#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- prev_source = _tmp5_;
-#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!_tmp6_) {
-#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (prev_source);
-#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next_source);
-#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (master_batch);
-#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (normal_batch);
-#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 7850 "PhotoPage.c"
- }
-#line 1010 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = next_source;
-#line 1010 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo));
-#line 1010 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- next = _tmp8_;
-#line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = prev_source;
-#line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo));
-#line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- prev = _tmp10_;
-#line 7864 "PhotoPage.c"
- {
- GeeIterator* _neighbor_source_it = NULL;
- GeeSet* _tmp11_;
- GeeSet* _tmp12_;
- GeeIterator* _tmp13_;
- GeeIterator* _tmp14_;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = view_collection_get_extended_neighbors (controller, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME);
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _neighbor_source_it = _tmp14_;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- while (TRUE) {
-#line 7885 "PhotoPage.c"
- GeeIterator* _tmp15_;
- DataSource* neighbor_source = NULL;
- GeeIterator* _tmp16_;
- gpointer _tmp17_;
- Photo* neighbor = NULL;
- DataSource* _tmp18_;
- Photo* _tmp19_;
- BackgroundJobJobPriority priority = 0;
- gboolean _tmp20_ = FALSE;
- Photo* _tmp21_;
- Photo* _tmp22_;
- PixbufCachePixbufCacheBatch* _tmp25_;
- BackgroundJobJobPriority _tmp26_;
- Photo* _tmp27_;
- PixbufCachePixbufCacheBatch* _tmp28_;
- Photo* _tmp29_;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _neighbor_source_it;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!gee_iterator_next (_tmp15_)) {
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 7908 "PhotoPage.c"
- }
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = _neighbor_source_it;
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = gee_iterator_get (_tmp16_);
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- neighbor_source = (DataSource*) _tmp17_;
-#line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = neighbor_source;
-#line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo));
-#line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- neighbor = _tmp19_;
-#line 1017 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- priority = BACKGROUND_JOB_JOB_PRIORITY_NORMAL;
-#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = neighbor;
-#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = next;
-#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_SOURCE, DataSource))) {
-#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = TRUE;
-#line 7932 "PhotoPage.c"
- } else {
- Photo* _tmp23_;
- Photo* _tmp24_;
-#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = neighbor;
-#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = prev;
-#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_SOURCE, DataSource));
-#line 7942 "PhotoPage.c"
- }
-#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp20_) {
-#line 1019 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- priority = BACKGROUND_JOB_JOB_PRIORITY_HIGH;
-#line 7948 "PhotoPage.c"
- }
-#line 1021 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = normal_batch;
-#line 1021 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = priority;
-#line 1021 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = neighbor;
-#line 1021 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) _tmp26_), _tmp27_);
-#line 1022 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = master_batch;
-#line 1022 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = neighbor;
-#line 1022 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) BACKGROUND_JOB_JOB_PRIORITY_LOWEST), _tmp29_);
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (neighbor);
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (neighbor_source);
-#line 7968 "PhotoPage.c"
- }
-#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_neighbor_source_it);
-#line 7972 "PhotoPage.c"
- }
-#line 1025 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = self->priv->cache;
-#line 1025 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = normal_batch;
-#line 1025 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_prefetch_batch (_tmp30_, _tmp31_, FALSE);
-#line 1026 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = self->priv->master_cache;
-#line 1026 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp33_ = master_batch;
-#line 1026 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_prefetch_batch (_tmp32_, _tmp33_, FALSE);
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (prev);
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next);
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (prev_source);
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next_source);
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (master_batch);
-#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (normal_batch);
-#line 7998 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self,
- ViewCollection* old_controller,
- Photo* old_photo,
- ViewCollection* new_controller,
- Photo* new_photo)
-{
- GeeSet* old_neighbors = NULL;
- GeeSet* _tmp0_;
- GeeSet* new_neighbors = NULL;
- GeeSet* _tmp1_;
- gboolean _tmp15_ = FALSE;
- GeeSet* _tmp16_;
-#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (old_controller));
-#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (old_photo));
-#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (new_controller));
-#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (new_photo));
-#line 1033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = view_collection_get_extended_neighbors (old_controller, G_TYPE_CHECK_INSTANCE_CAST (old_photo, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME);
-#line 1033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- old_neighbors = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
-#line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = view_collection_get_extended_neighbors (new_controller, G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME);
-#line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- new_neighbors = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SET, GeeSet);
-#line 8033 "PhotoPage.c"
- {
- GeeIterator* _old_neighbor_it = NULL;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = old_neighbors;
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _old_neighbor_it = _tmp3_;
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- while (TRUE) {
-#line 8046 "PhotoPage.c"
- GeeIterator* _tmp4_;
- Photo* old_neighbor = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- gboolean _tmp7_ = FALSE;
- GeeSet* _tmp8_;
- Photo* _tmp9_;
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _old_neighbor_it;
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 8060 "PhotoPage.c"
- }
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _old_neighbor_it;
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- old_neighbor = (Photo*) _tmp6_;
-#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = new_neighbors;
-#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = old_neighbor;
-#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_)) {
-#line 8074 "PhotoPage.c"
- Photo* _tmp10_;
-#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = old_neighbor;
-#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_SOURCE, DataSource));
-#line 8080 "PhotoPage.c"
- } else {
-#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = FALSE;
-#line 8084 "PhotoPage.c"
- }
-#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp7_) {
-#line 8088 "PhotoPage.c"
- PixbufCache* _tmp11_;
- Photo* _tmp12_;
- PixbufCache* _tmp13_;
- Photo* _tmp14_;
-#line 1042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = self->priv->cache;
-#line 1042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = old_neighbor;
-#line 1042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_drop (_tmp11_, _tmp12_);
-#line 1043 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = self->priv->master_cache;
-#line 1043 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = old_neighbor;
-#line 1043 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_drop (_tmp13_, _tmp14_);
-#line 8105 "PhotoPage.c"
- }
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (old_neighbor);
-#line 8109 "PhotoPage.c"
- }
-#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_old_neighbor_it);
-#line 8113 "PhotoPage.c"
- }
-#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = new_neighbors;
-#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), old_photo)) {
-#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (old_photo, TYPE_DATA_SOURCE, DataSource));
-#line 8121 "PhotoPage.c"
- } else {
-#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = FALSE;
-#line 8125 "PhotoPage.c"
- }
-#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp15_) {
-#line 8129 "PhotoPage.c"
- PixbufCache* _tmp17_;
- PixbufCache* _tmp18_;
-#line 1049 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = self->priv->cache;
-#line 1049 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_drop (_tmp17_, old_photo);
-#line 1050 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = self->priv->master_cache;
-#line 1050 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_drop (_tmp18_, old_photo);
-#line 8140 "PhotoPage.c"
- }
-#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (new_neighbors);
-#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (old_neighbors);
-#line 8146 "PhotoPage.c"
-}
-
-
-static DataView*
-editing_host_page_real_create_photo_view (EditingHostPage* self,
- DataSource* source)
-{
- DataView* result = NULL;
- PhotoView* _tmp0_;
-#line 1054 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 1055 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = photo_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 1055 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView);
-#line 1055 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 8164 "PhotoPage.c"
-}
-
-
-DataView*
-editing_host_page_create_photo_view (EditingHostPage* self,
- DataSource* source)
-{
-#line 1054 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL);
-#line 1054 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return EDITING_HOST_PAGE_GET_CLASS (self)->create_photo_view (self, source);
-#line 8176 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_is_photo (EditingHostPage* self,
- DataSource* source)
-{
- gboolean result = FALSE;
-#line 1058 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1058 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 1059 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO_SOURCE);
-#line 1059 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 8193 "PhotoPage.c"
-}
-
-
-static DataView*
-_editing_host_page_create_photo_view_create_view (DataSource* source,
- gpointer self)
-{
- DataView* result;
- result = editing_host_page_create_photo_view ((EditingHostPage*) self, source);
-#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 8205 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_is_photo_create_view_predicate (DataSource* source,
- gpointer self)
-{
- gboolean result;
- result = editing_host_page_is_photo ((EditingHostPage*) self, source);
-#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 8217 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_display_copy_of (EditingHostPage* self,
- ViewCollection* controller,
- Photo* starting_photo)
-{
- DataView* _tmp0_;
- DataView* _tmp1_;
- gboolean _tmp2_ = FALSE;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- gboolean _tmp5_;
-#line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (controller));
-#line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (starting_photo));
-#line 1063 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = view_collection_get_view_for_source (controller, G_TYPE_CHECK_INSTANCE_CAST (starting_photo, TYPE_DATA_SOURCE, DataSource));
-#line 1063 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 1063 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp1_ != NULL, "controller.get_view_for_source(starting_photo) != null");
-#line 1063 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = controller != _tmp4_;
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp5_) {
-#line 8256 "PhotoPage.c"
- ViewCollection* _tmp6_;
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->parent_view;
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = controller != _tmp6_;
-#line 8262 "PhotoPage.c"
- } else {
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = FALSE;
-#line 8266 "PhotoPage.c"
- }
-#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 8270 "PhotoPage.c"
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
-#line 1066 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1066 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 1066 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1066 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_collection_copy_into (_tmp10_, controller, _editing_host_page_create_photo_view_create_view, self, _editing_host_page_is_photo_create_view_predicate, self);
-#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 1068 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _data_collection_ref0 (controller);
-#line 1068 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (self->priv->parent_view);
-#line 1068 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->parent_view = _tmp11_;
-#line 8298 "PhotoPage.c"
- }
-#line 1071 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_replace_photo (self, starting_photo);
-#line 8302 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_display_mirror_of (EditingHostPage* self,
- ViewCollection* controller,
- Photo* starting_photo)
-{
- DataView* _tmp0_;
- DataView* _tmp1_;
- gboolean _tmp2_ = FALSE;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- gboolean _tmp5_;
-#line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (controller));
-#line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (starting_photo));
-#line 1075 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = view_collection_get_view_for_source (controller, G_TYPE_CHECK_INSTANCE_CAST (starting_photo, TYPE_DATA_SOURCE, DataSource));
-#line 1075 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 1075 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp1_ != NULL, "controller.get_view_for_source(starting_photo) != null");
-#line 1075 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = controller != _tmp4_;
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp5_) {
-#line 8341 "PhotoPage.c"
- ViewCollection* _tmp6_;
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->parent_view;
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = controller != _tmp6_;
-#line 8347 "PhotoPage.c"
- } else {
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = FALSE;
-#line 8351 "PhotoPage.c"
- }
-#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 8355 "PhotoPage.c"
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
-#line 1078 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1078 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 1078 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1078 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 1079 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1079 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 1079 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_collection_mirror (_tmp10_, controller, _editing_host_page_create_photo_view_create_view, self, _editing_host_page_is_photo_create_view_predicate, self);
-#line 1079 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 1080 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _data_collection_ref0 (controller);
-#line 1080 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (self->priv->parent_view);
-#line 1080 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->parent_view = _tmp11_;
-#line 8383 "PhotoPage.c"
- }
-#line 1083 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_replace_photo (self, starting_photo);
-#line 8387 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_update_ui (EditingHostPage* self,
- gboolean missing)
-{
- gboolean sensitivity = FALSE;
- GtkToolButton* _tmp0_;
- GtkToggleToolButton* _tmp1_;
- GtkToggleToolButton* _tmp2_;
- GtkToggleToolButton* _tmp3_;
- GtkToggleToolButton* _tmp4_;
- GtkToolButton* _tmp5_;
- GtkScale* _tmp6_;
- Dimensions _tmp7_ = {0};
-#line 1087 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- sensitivity = !missing;
-#line 1089 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->rotate_button;
-#line 1089 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), sensitivity);
-#line 1090 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->crop_button;
-#line 1090 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), sensitivity);
-#line 1091 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->straighten_button;
-#line 1091 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), sensitivity);
-#line 1092 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->redeye_button;
-#line 1092 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), sensitivity);
-#line 1093 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = self->priv->adjust_button;
-#line 1093 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), sensitivity);
-#line 1094 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->enhance_button;
-#line 1094 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), sensitivity);
-#line 1095 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->zoom_slider;
-#line 1095 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), sensitivity);
-#line 1097 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp7_, 0, 0);
-#line 1097 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp7_, FALSE);
-#line 8438 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_update_ui (EditingHostPage* self,
- gboolean missing)
-{
-#line 1086 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1086 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- EDITING_HOST_PAGE_GET_CLASS (self)->update_ui (self, missing);
-#line 8450 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_notify_photo_backing_missing (EditingHostPage* self,
- Photo* photo,
- gboolean missing)
-{
-#line 1101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 8461 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_notify_photo_backing_missing (EditingHostPage* self,
- Photo* photo,
- gboolean missing)
-{
-#line 1101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- EDITING_HOST_PAGE_GET_CLASS (self)->notify_photo_backing_missing (self, photo, missing);
-#line 8474 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_draw_message (EditingHostPage* self,
- const gchar* message)
-{
- PangoLayout* pango_layout = NULL;
- PangoLayout* _tmp0_;
- gint text_width = 0;
- gint text_height = 0;
- PangoLayout* _tmp1_;
- gint _tmp2_ = 0;
- gint _tmp3_ = 0;
- GtkAllocation allocation = {0};
- GtkAllocation _tmp4_ = {0};
- gint x = 0;
- GtkAllocation _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_ = 0;
- gint _tmp9_;
- gint y = 0;
- GtkAllocation _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_ = 0;
- gint _tmp15_;
- PangoLayout* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
-#line 1104 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1104 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (message != NULL);
-#line 1106 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), message);
-#line 1106 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pango_layout = _tmp0_;
-#line 1108 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = pango_layout;
-#line 1108 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pango_layout_get_pixel_size (_tmp1_, &_tmp2_, &_tmp3_);
-#line 1108 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- text_width = _tmp2_;
-#line 1108 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- text_height = _tmp3_;
-#line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp4_);
-#line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- allocation = _tmp4_;
-#line 1113 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = allocation;
-#line 1113 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_.width;
-#line 1113 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = text_width;
-#line 1113 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = _tmp6_ - _tmp7_;
-#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = x;
-#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp9_ > 0) {
-#line 8538 "PhotoPage.c"
- gint _tmp10_;
-#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = x;
-#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp10_ / 2;
-#line 8544 "PhotoPage.c"
- } else {
-#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = 0;
-#line 8548 "PhotoPage.c"
- }
-#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = _tmp8_;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = allocation;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_.height;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = text_height;
-#line 1116 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = _tmp12_ - _tmp13_;
-#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = y;
-#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp15_ > 0) {
-#line 8564 "PhotoPage.c"
- gint _tmp16_;
-#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = y;
-#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp16_ / 2;
-#line 8570 "PhotoPage.c"
- } else {
-#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = 0;
-#line 8574 "PhotoPage.c"
- }
-#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = _tmp14_;
-#line 1119 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = pango_layout;
-#line 1119 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = x;
-#line 1119 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = y;
-#line 1119 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_paint_text (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp17_, _tmp18_, _tmp19_);
-#line 1104 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pango_layout);
-#line 8588 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_set_photo_missing (EditingHostPage* self,
- gboolean missing)
-{
- gboolean _tmp0_;
- Photo* photo = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_;
- gboolean _tmp3_;
- GError * _inner_error_ = NULL;
-#line 1123 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->photo_missing;
-#line 1124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ == missing) {
-#line 1125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 8610 "PhotoPage.c"
- }
-#line 1127 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->photo_missing = missing;
-#line 1129 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = editing_host_page_get_photo (self);
-#line 1129 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo = _tmp1_;
-#line 1130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = photo;
-#line 1130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ == NULL) {
-#line 1131 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 1131 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 8626 "PhotoPage.c"
- }
-#line 1133 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_ui (self, missing);
-#line 1135 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->photo_missing;
-#line 1135 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_) {
-#line 8634 "PhotoPage.c"
- {
- GdkPixbuf* pixbuf = NULL;
- Photo* _tmp4_;
- Scaling _tmp5_ = {0};
- GdkPixbuf* _tmp6_;
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
- GdkPixbuf* _tmp11_;
- Photo* _tmp12_;
- Dimensions _tmp13_ = {0};
-#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = photo;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_);
-#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = media_source_get_preview_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), &_tmp5_, &_inner_error_);
-#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp6_;
-#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8657 "PhotoPage.c"
- goto __catch257_g_error;
- }
-#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = pixbuf;
-#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = pixbuf;
-#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = pixbuf;
-#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = gdk_pixbuf_composite_color_simple (_tmp7_, gdk_pixbuf_get_width (_tmp8_), gdk_pixbuf_get_height (_tmp9_), GDK_INTERP_NEAREST, 100, 2, (guint32) 0, (guint32) 0);
-#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp10_;
-#line 1142 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = pixbuf;
-#line 1142 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = photo;
-#line 1142 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp13_);
-#line 1142 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp11_, &_tmp13_, NULL);
-#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 8682 "PhotoPage.c"
- }
- goto __finally257;
- __catch257_g_error:
- {
- GError* err = NULL;
- GdkPixbuf* _tmp14_;
- GdkPixbuf* _tmp15_;
- Photo* _tmp16_;
- Dimensions _tmp17_ = {0};
- GError* _tmp18_;
- const gchar* _tmp19_;
-#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 1, 1);
-#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = photo;
-#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp17_);
-#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp15_, &_tmp17_, NULL);
-#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 1145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = err;
-#line 1145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_->message;
-#line 1145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_warning ("PhotoPage.vala:1145: %s", _tmp19_);
-#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 8718 "PhotoPage.c"
- }
- __finally257:
-#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 1136 "/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 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 8731 "PhotoPage.c"
- }
- }
-#line 1123 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 8736 "PhotoPage.c"
-}
-
-
-gboolean
-editing_host_page_get_photo_missing (EditingHostPage* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 1150 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1151 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->photo_missing;
-#line 1151 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp0_;
-#line 1151 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 8753 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_confirm_replace_photo (EditingHostPage* self,
- Photo* old_photo,
- Photo* new_photo)
-{
- gboolean result = FALSE;
-#line 1154 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail ((old_photo == NULL) || IS_PHOTO (old_photo), FALSE);
-#line 1154 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_PHOTO (new_photo), FALSE);
-#line 1155 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1155 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 8771 "PhotoPage.c"
-}
-
-
-gboolean
-editing_host_page_confirm_replace_photo (EditingHostPage* self,
- Photo* old_photo,
- Photo* new_photo)
-{
-#line 1154 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1154 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return EDITING_HOST_PAGE_GET_CLASS (self)->confirm_replace_photo (self, old_photo, new_photo);
-#line 8784 "PhotoPage.c"
-}
-
-
-static GdkPixbuf*
-editing_host_page_get_zoom_pixbuf (EditingHostPage* self,
- Photo* new_photo)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- PixbufCache* _tmp0_;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL);
-#line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_PHOTO (new_photo), NULL);
-#line 1159 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->cache;
-#line 1159 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = pixbuf_cache_get_ready_pixbuf (_tmp0_, new_photo);
-#line 1159 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp1_;
-#line 1160 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = pixbuf;
-#line 1160 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ == NULL) {
-#line 8813 "PhotoPage.c"
- {
- GdkPixbuf* _tmp3_ = NULL;
- Scaling _tmp4_ = {0};
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp4_);
-#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = media_source_get_preview_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_MEDIA_SOURCE, MediaSource), &_tmp4_, &_inner_error_);
-#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp5_;
-#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8827 "PhotoPage.c"
- goto __catch258_g_error;
- }
-#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp3_;
-#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = NULL;
-#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp6_;
-#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 8840 "PhotoPage.c"
- }
- goto __finally258;
- __catch258_g_error:
- {
- GError* err = NULL;
- GError* _tmp7_;
- const gchar* _tmp8_;
-#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 1164 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = err;
-#line 1164 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_->message;
-#line 1164 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_warning ("PhotoPage.vala:1164: %s", _tmp8_);
-#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 8860 "PhotoPage.c"
- }
- __finally258:
-#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1161 "/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 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return NULL;
-#line 8873 "PhotoPage.c"
- }
- }
-#line 1167 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = pixbuf;
-#line 1167 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp9_ == NULL) {
-#line 8880 "PhotoPage.c"
- GdkPixbuf* _tmp10_;
- Scaling _tmp11_ = {0};
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
- GdkPixbuf* _tmp14_;
-#line 1168 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = get_placeholder_pixbuf ();
-#line 1168 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1168 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp10_;
-#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp11_);
-#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = pixbuf;
-#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = scaling_perform_on_pixbuf (&_tmp11_, _tmp12_, GDK_INTERP_NEAREST, TRUE);
-#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp14_);
-#line 8902 "PhotoPage.c"
- }
-#line 1171 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = pixbuf;
-#line 1171 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 8908 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_replace_photo (EditingHostPage* self,
- Photo* new_photo)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- Photo* _tmp2_;
- Photo* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp10_ = FALSE;
- gboolean _tmp11_ = FALSE;
- Dimensions _tmp17_ = {0};
- Photo* old_photo = NULL;
- Photo* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- GFile* _tmp21_;
- GFile* _tmp22_;
- Photo* _tmp23_;
- GdkPixbuf* _tmp29_;
- GdkPixbuf* _tmp30_;
- ZoomBuffer* _tmp31_;
-#line 1174 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1174 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (new_photo));
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = editing_host_page_get_photo (self);
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource));
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_) {
-#line 8948 "PhotoPage.c"
- gboolean _tmp5_;
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->pixbuf_dirty;
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = !_tmp5_;
-#line 8954 "PhotoPage.c"
- } else {
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = FALSE;
-#line 8958 "PhotoPage.c"
- }
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_) {
-#line 8962 "PhotoPage.c"
- gboolean _tmp6_;
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->photo_missing;
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = !_tmp6_;
-#line 8968 "PhotoPage.c"
- } else {
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 8972 "PhotoPage.c"
- }
-#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 8976 "PhotoPage.c"
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp8_;
- ZoomBuffer* _tmp9_;
-#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = editing_host_page_get_zoom_pixbuf (self, new_photo);
-#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = zoom_buffer_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), new_photo, _tmp8_);
-#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->zoom_buffer);
-#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->zoom_buffer = _tmp9_;
-#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 1181 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 8994 "PhotoPage.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (self)) {
-#line 8998 "PhotoPage.c"
- Photo* _tmp12_;
- Photo* _tmp13_;
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = editing_host_page_get_photo (self);
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_SOURCE, DataSource));
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 9009 "PhotoPage.c"
- } else {
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = FALSE;
-#line 9013 "PhotoPage.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp11_) {
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = editing_host_page_confirm_replace_photo != NULL;
-#line 9019 "PhotoPage.c"
- } else {
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = FALSE;
-#line 9023 "PhotoPage.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp10_) {
-#line 9027 "PhotoPage.c"
- Photo* _tmp14_;
- Photo* _tmp15_;
- gboolean _tmp16_;
-#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = editing_host_page_get_photo (self);
-#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = !editing_host_page_confirm_replace_photo (self, _tmp15_, new_photo);
-#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp16_) {
-#line 1187 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 9043 "PhotoPage.c"
- }
- }
-#line 1190 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp17_, 0, 0);
-#line 1190 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp17_, FALSE);
-#line 1193 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = editing_host_page_get_photo (self);
-#line 1193 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- old_photo = _tmp18_;
-#line 1194 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo (self, new_photo);
-#line 1195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_OBJECT, DataObject));
-#line 1195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = _tmp19_;
-#line 1195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp20_);
-#line 1195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp20_);
-#line 1198 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->swapped);
-#line 1198 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->swapped = NULL;
-#line 1201 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1201 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = _tmp21_;
-#line 1201 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, !g_file_query_exists (_tmp22_, NULL));
-#line 1201 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp22_);
-#line 1202 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = TRUE;
-#line 1206 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rebuild_caches (self, "replace_photo");
-#line 1208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = old_photo;
-#line 1208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp23_ != NULL) {
-#line 9084 "PhotoPage.c"
- ViewCollection* _tmp24_;
- ViewCollection* _tmp25_;
- Photo* _tmp26_;
- ViewCollection* _tmp27_;
- ViewCollection* _tmp28_;
-#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = _tmp24_;
-#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = old_photo;
-#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = _tmp27_;
-#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_cancel_prefetch_neighbors (self, _tmp25_, _tmp26_, _tmp28_, new_photo);
-#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp28_);
-#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp25_);
-#line 9106 "PhotoPage.c"
- }
-#line 1211 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = editing_host_page_get_zoom_pixbuf (self, new_photo);
-#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = _tmp29_;
-#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = zoom_buffer_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), new_photo, _tmp30_);
-#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->zoom_buffer);
-#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->zoom_buffer = _tmp31_;
-#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp30_);
-#line 1215 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_quick_update_pixbuf (self);
-#line 1218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_refresh_caches (self, "replace_photo");
-#line 1174 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (old_photo);
-#line 9128 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_cancel_zoom (SinglePhotoPage* base)
-{
- EditingHostPage * self;
- GtkScale* _tmp0_;
- guint _tmp1_;
- GtkScale* _tmp2_;
- GtkScale* _tmp3_;
- Photo* _tmp4_;
- Photo* _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp12_ = FALSE;
- GtkDrawingArea* _tmp13_;
-#line 1221 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- SINGLE_PHOTO_PAGE_CLASS (editing_host_page_parent_class)->cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1224 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->zoom_slider;
-#line 1224 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp1_, NULL, FALSE);
-#line 1224 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self);
-#line 1225 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->zoom_slider;
-#line 1225 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), 0.0);
-#line 1226 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->zoom_slider;
-#line 1226 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0);
-#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = editing_host_page_get_photo (self);
-#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_ != NULL;
-#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp6_) {
-#line 9173 "PhotoPage.c"
- Photo* _tmp7_;
- Photo* _tmp8_;
- Dimensions _tmp9_ = {0};
- Dimensions _tmp10_ = {0};
- ZoomState _tmp11_ = {0};
-#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = editing_host_page_get_photo (self);
-#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_);
-#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp10_);
-#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init (&_tmp11_, &_tmp9_, &_tmp10_, 0.0, NULL);
-#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp11_);
-#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 9193 "PhotoPage.c"
- }
-#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->canvas;
-#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp13_ != NULL) {
-#line 9199 "PhotoPage.c"
- GtkDrawingArea* _tmp14_;
- GdkWindow* _tmp15_;
-#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->canvas;
-#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget));
-#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp15_ != NULL;
-#line 9208 "PhotoPage.c"
- } else {
-#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = FALSE;
-#line 9212 "PhotoPage.c"
- }
-#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp12_) {
-#line 1236 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_LEFT_PTR);
-#line 9218 "PhotoPage.c"
- }
-#line 1238 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 9222 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_quick_update_pixbuf (EditingHostPage* self)
-{
- GdkPixbuf* pixbuf = NULL;
- PixbufCache* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- Scaling scaling = {0};
- Scaling _tmp10_ = {0};
- Photo* _tmp11_;
- Photo* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- PixbufCache* _tmp28_;
- Photo* _tmp29_;
- Photo* _tmp30_;
- GError * _inner_error_ = NULL;
-#line 1241 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->cache;
-#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = editing_host_page_get_photo (self);
-#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = pixbuf_cache_get_ready_pixbuf (_tmp0_, _tmp2_);
-#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp4_;
-#line 1243 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = pixbuf;
-#line 1243 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp5_ != NULL) {
-#line 9268 "PhotoPage.c"
- GdkPixbuf* _tmp6_;
- Photo* _tmp7_;
- Photo* _tmp8_;
- Dimensions _tmp9_ = {0};
-#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = pixbuf;
-#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = editing_host_page_get_photo (self);
-#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_);
-#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp6_, &_tmp9_, NULL);
-#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 1245 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = FALSE;
-#line 1247 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1247 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 9291 "PhotoPage.c"
- }
-#line 1250 "/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_);
-#line 1250 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaling = _tmp10_;
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = editing_host_page_get_photo (self);
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = scaling_to_string (&scaling);
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = _tmp15_;
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_debug ("PhotoPage.vala:1252: Using progressive load for %s (%s)", _tmp14_, _tmp16_);
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp16_);
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp14_);
-#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 9317 "PhotoPage.c"
- {
- GdkPixbuf* _tmp17_ = NULL;
- Photo* _tmp18_;
- Photo* _tmp19_;
- Scaling _tmp20_;
- GdkPixbuf* _tmp21_;
- GdkPixbuf* _tmp22_;
- Photo* _tmp23_;
- Photo* _tmp24_;
- Dimensions _tmp25_ = {0};
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = editing_host_page_get_photo (self);
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_;
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = scaling;
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = media_source_get_preview_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_MEDIA_SOURCE, MediaSource), &_tmp20_, &_inner_error_);
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = _tmp21_;
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp19_);
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp22_;
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9344 "PhotoPage.c"
- goto __catch259_g_error;
- }
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = editing_host_page_get_photo (self);
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = _tmp23_;
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp25_);
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp17_, &_tmp25_, NULL);
-#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp24_);
-#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp17_);
-#line 9359 "PhotoPage.c"
- }
- goto __finally259;
- __catch259_g_error:
- {
- GError* err = NULL;
- GError* _tmp26_;
- const gchar* _tmp27_;
-#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 1259 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = err;
-#line 1259 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = _tmp26_->message;
-#line 1259 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_warning ("PhotoPage.vala:1259: %s", _tmp27_);
-#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 9379 "PhotoPage.c"
- }
- __finally259:
-#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1256 "/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 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 9392 "PhotoPage.c"
- }
-#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = self->priv->cache;
-#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = editing_host_page_get_photo (self);
-#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = _tmp29_;
-#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_prefetch (_tmp28_, _tmp30_, BACKGROUND_JOB_JOB_PRIORITY_HIGHEST, FALSE);
-#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp30_);
-#line 1266 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = FALSE;
-#line 1241 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 9408 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_update_pixbuf (EditingHostPage* self)
-{
- gboolean result = FALSE;
- Photo* photo = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
- GdkPixbuf* pixbuf = NULL;
- Dimensions max_dim = {0};
- Photo* _tmp2_;
- Dimensions _tmp3_ = {0};
- gboolean _tmp18_;
- gboolean _tmp26_ = FALSE;
- gboolean _tmp27_;
- GError * _inner_error_ = NULL;
-#line 1269 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1274 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 1274 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo = _tmp0_;
-#line 1275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = photo;
-#line 1275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_ == NULL) {
-#line 1276 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 1276 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 1276 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 9443 "PhotoPage.c"
- }
-#line 1278 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = NULL;
-#line 1279 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = photo;
-#line 1279 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp3_);
-#line 1279 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- max_dim = _tmp3_;
-#line 9453 "PhotoPage.c"
- {
- Dimensions tool_pixbuf_dim = {0};
- Dimensions _tmp4_ = {0};
- EditingToolsEditingTool* _tmp5_;
- GdkPixbuf* _tmp13_;
-#line 1282 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_.width = 0;
-#line 1282 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_pixbuf_dim = _tmp4_;
-#line 1283 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->current_tool;
-#line 1283 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp5_ != NULL) {
-#line 9467 "PhotoPage.c"
- GdkPixbuf* _tmp6_ = NULL;
- EditingToolsEditingTool* _tmp7_;
- Scaling _tmp8_ = {0};
- Photo* _tmp9_;
- Dimensions _tmp10_ = {0};
- GdkPixbuf* _tmp11_;
- GdkPixbuf* _tmp12_;
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = self->priv->current_tool;
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_);
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = photo;
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = editing_tools_editing_tool_get_display_pixbuf (_tmp7_, &_tmp8_, _tmp9_, &_tmp10_, &_inner_error_);
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_pixbuf_dim = _tmp10_;
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp11_;
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9489 "PhotoPage.c"
- goto __catch260_g_error;
- }
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp6_;
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = NULL;
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp12_;
-#line 1283 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 9502 "PhotoPage.c"
- }
-#line 1286 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = pixbuf;
-#line 1286 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp13_ != NULL) {
-#line 9508 "PhotoPage.c"
- Dimensions _tmp14_;
-#line 1287 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = tool_pixbuf_dim;
-#line 1287 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- max_dim = _tmp14_;
-#line 9514 "PhotoPage.c"
- }
- }
- goto __finally260;
- __catch260_g_error:
- {
- GError* err = NULL;
- GError* _tmp15_;
- const gchar* _tmp16_;
-#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 1289 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = err;
-#line 1289 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = _tmp15_->message;
-#line 1289 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_warning ("PhotoPage.vala:1289: %s", _tmp16_);
-#line 1290 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, TRUE);
-#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 9537 "PhotoPage.c"
- }
- __finally260:
-#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9542 "PhotoPage.c"
- gboolean _tmp17_ = FALSE;
-#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 1281 "/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 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return _tmp17_;
-#line 9554 "PhotoPage.c"
- }
-#line 1293 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = self->priv->photo_missing;
-#line 1293 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!_tmp18_) {
-#line 9560 "PhotoPage.c"
- GdkPixbuf* _tmp19_;
- GdkPixbuf* _tmp23_;
-#line 1295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = pixbuf;
-#line 1295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp19_ == NULL) {
-#line 9567 "PhotoPage.c"
- PixbufCache* _tmp20_;
- Photo* _tmp21_;
- GdkPixbuf* _tmp22_;
-#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = self->priv->cache;
-#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = photo;
-#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = pixbuf_cache_get_ready_pixbuf (_tmp20_, _tmp21_);
-#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf = _tmp22_;
-#line 9581 "PhotoPage.c"
- }
-#line 1299 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = pixbuf;
-#line 1299 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp23_ == NULL) {
-#line 9587 "PhotoPage.c"
- PixbufCache* _tmp24_;
- Photo* _tmp25_;
-#line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = self->priv->cache;
-#line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = photo;
-#line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_prefetch (_tmp24_, _tmp25_, BACKGROUND_JOB_JOB_PRIORITY_NORMAL, FALSE);
-#line 9596 "PhotoPage.c"
- }
- }
-#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = self->priv->photo_missing;
-#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!_tmp27_) {
-#line 9603 "PhotoPage.c"
- GdkPixbuf* _tmp28_;
-#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = pixbuf;
-#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = _tmp28_ != NULL;
-#line 9609 "PhotoPage.c"
- } else {
-#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = FALSE;
-#line 9613 "PhotoPage.c"
- }
-#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp26_) {
-#line 9617 "PhotoPage.c"
- GdkPixbuf* _tmp29_;
- Dimensions _tmp30_;
-#line 1304 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = pixbuf;
-#line 1304 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = max_dim;
-#line 1304 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp29_, &_tmp30_, NULL);
-#line 1305 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = FALSE;
-#line 9628 "PhotoPage.c"
- }
-#line 1312 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 1312 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1312 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 1312 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 9638 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_on_resize (Page* base,
- GdkRectangle* rect)
-{
- EditingHostPage * self;
- GdkRectangle _tmp0_;
-#line 1315 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1315 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (rect != NULL);
-#line 1316 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = *rect;
-#line 1316 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- 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 1318 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_track_tool_window (self);
-#line 9658 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_on_resize_finished (Page* base,
- GdkRectangle* rect)
-{
- EditingHostPage * self;
-#line 1321 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1321 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (rect != NULL);
-#line 1325 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rebuild_caches (self, "on_resize_finished");
-#line 1326 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = TRUE;
-#line 1328 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_pixbuf (self);
-#line 9677 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_viewport_resized (EditingHostPage* self)
-{
-#line 1331 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rebuild_caches (self, "on_viewport_resized");
-#line 1335 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = TRUE;
-#line 1337 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_pixbuf (self);
-#line 9692 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- EditingHostPage * self;
- gboolean multiple_photos = FALSE;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- GtkToolButton* _tmp3_;
- gboolean _tmp4_;
- GtkToolButton* _tmp5_;
- gboolean _tmp6_;
- Photo* photo = NULL;
- Photo* _tmp7_;
- Scaling scaling = {0};
- Scaling _tmp8_ = {0};
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_ = FALSE;
- gboolean _tmp11_ = FALSE;
- Photo* _tmp12_;
- GtkToolButton* _tmp16_;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_ = FALSE;
- Photo* _tmp19_;
- GtkToggleToolButton* _tmp23_;
- gboolean _tmp24_ = FALSE;
- gboolean _tmp25_ = FALSE;
- Photo* _tmp26_;
- GtkToggleToolButton* _tmp30_;
- gboolean _tmp31_ = FALSE;
- gboolean _tmp32_ = FALSE;
- Photo* _tmp33_;
- GtkToggleToolButton* _tmp37_;
- gboolean _tmp38_ = FALSE;
- gboolean _tmp39_ = FALSE;
- Photo* _tmp40_;
- GtkToolButton* _tmp43_;
- gboolean _tmp44_ = FALSE;
- gboolean _tmp45_ = FALSE;
- Photo* _tmp46_;
- GtkToggleToolButton* _tmp50_;
-#line 1340 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = view_collection_get_sources_of_type_count (_tmp1_, TYPE_PHOTO) > 1;
-#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- multiple_photos = _tmp2_;
-#line 1343 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->prev_button;
-#line 1343 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = multiple_photos;
-#line 1343 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), _tmp4_);
-#line 1344 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->next_button;
-#line 1344 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = multiple_photos;
-#line 1344 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), _tmp6_);
-#line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = editing_host_page_get_photo (self);
-#line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo = _tmp7_;
-#line 1347 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_);
-#line 1347 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaling = _tmp8_;
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = photo;
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp12_ != NULL) {
-#line 9775 "PhotoPage.c"
- gboolean _tmp13_;
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = self->priv->photo_missing;
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = !_tmp13_;
-#line 9781 "PhotoPage.c"
- } else {
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = FALSE;
-#line 9785 "PhotoPage.c"
- }
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp11_) {
-#line 9789 "PhotoPage.c"
- Photo* _tmp14_;
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = photo;
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = photo_check_can_rotate (_tmp14_);
-#line 9795 "PhotoPage.c"
- } else {
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = FALSE;
-#line 9799 "PhotoPage.c"
- }
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp10_) {
-#line 9803 "PhotoPage.c"
- Photo* _tmp15_;
-#line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = photo;
-#line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = editing_host_page_is_rotate_available (self, _tmp15_);
-#line 9809 "PhotoPage.c"
- } else {
-#line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = FALSE;
-#line 9813 "PhotoPage.c"
- }
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = self->priv->rotate_button;
-#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), _tmp9_);
-#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = photo;
-#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp19_ != NULL) {
-#line 9823 "PhotoPage.c"
- gboolean _tmp20_;
-#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = self->priv->photo_missing;
-#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = !_tmp20_;
-#line 9829 "PhotoPage.c"
- } else {
-#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = FALSE;
-#line 9833 "PhotoPage.c"
- }
-#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp18_) {
-#line 9837 "PhotoPage.c"
- Photo* _tmp21_;
- Scaling _tmp22_;
-#line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = photo;
-#line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = scaling;
-#line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = editing_tools_crop_tool_is_available (_tmp21_, &_tmp22_);
-#line 9846 "PhotoPage.c"
- } else {
-#line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = FALSE;
-#line 9850 "PhotoPage.c"
- }
-#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = self->priv->crop_button;
-#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), _tmp17_);
-#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = photo;
-#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp26_ != NULL) {
-#line 9860 "PhotoPage.c"
- gboolean _tmp27_;
-#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = self->priv->photo_missing;
-#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = !_tmp27_;
-#line 9866 "PhotoPage.c"
- } else {
-#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = FALSE;
-#line 9870 "PhotoPage.c"
- }
-#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp25_) {
-#line 9874 "PhotoPage.c"
- Photo* _tmp28_;
- Scaling _tmp29_;
-#line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = photo;
-#line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = scaling;
-#line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = editing_tools_redeye_tool_is_available (_tmp28_, &_tmp29_);
-#line 9883 "PhotoPage.c"
- } else {
-#line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = FALSE;
-#line 9887 "PhotoPage.c"
- }
-#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = self->priv->redeye_button;
-#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), _tmp24_);
-#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp33_ = photo;
-#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp33_ != NULL) {
-#line 9897 "PhotoPage.c"
- gboolean _tmp34_;
-#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp34_ = self->priv->photo_missing;
-#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = !_tmp34_;
-#line 9903 "PhotoPage.c"
- } else {
-#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = FALSE;
-#line 9907 "PhotoPage.c"
- }
-#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp32_) {
-#line 9911 "PhotoPage.c"
- Photo* _tmp35_;
- Scaling _tmp36_;
-#line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp35_ = photo;
-#line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp36_ = scaling;
-#line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = editing_tools_adjust_tool_is_available (_tmp35_, &_tmp36_);
-#line 9920 "PhotoPage.c"
- } else {
-#line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = FALSE;
-#line 9924 "PhotoPage.c"
- }
-#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp37_ = self->priv->adjust_button;
-#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), _tmp31_);
-#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp40_ = photo;
-#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp40_ != NULL) {
-#line 9934 "PhotoPage.c"
- gboolean _tmp41_;
-#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp41_ = self->priv->photo_missing;
-#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp39_ = !_tmp41_;
-#line 9940 "PhotoPage.c"
- } else {
-#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp39_ = FALSE;
-#line 9944 "PhotoPage.c"
- }
-#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp39_) {
-#line 9948 "PhotoPage.c"
- Photo* _tmp42_;
-#line 1358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp42_ = photo;
-#line 1358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp38_ = editing_host_page_is_enhance_available (self, _tmp42_);
-#line 9954 "PhotoPage.c"
- } else {
-#line 1358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp38_ = FALSE;
-#line 9958 "PhotoPage.c"
- }
-#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp43_ = self->priv->enhance_button;
-#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), _tmp38_);
-#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp46_ = photo;
-#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp46_ != NULL) {
-#line 9968 "PhotoPage.c"
- gboolean _tmp47_;
-#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp47_ = self->priv->photo_missing;
-#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp45_ = !_tmp47_;
-#line 9974 "PhotoPage.c"
- } else {
-#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp45_ = FALSE;
-#line 9978 "PhotoPage.c"
- }
-#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp45_) {
-#line 9982 "PhotoPage.c"
- Photo* _tmp48_;
- Scaling _tmp49_;
-#line 1360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp48_ = photo;
-#line 1360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp49_ = scaling;
-#line 1360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp44_ = editing_tools_straighten_tool_is_available (_tmp48_, &_tmp49_);
-#line 9991 "PhotoPage.c"
- } else {
-#line 1360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp44_ = FALSE;
-#line 9995 "PhotoPage.c"
- }
-#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp50_ = self->priv->straighten_button;
-#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget), _tmp44_);
-#line 1362 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- 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), selected_count, count);
-#line 1340 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 10005 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_shift_pressed (Page* base,
- GdkEventKey* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- EditingToolsEditingTool* _tmp3_;
-#line 1365 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->current_tool;
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_ == NULL) {
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = !page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 10027 "PhotoPage.c"
- } else {
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = FALSE;
-#line 10031 "PhotoPage.c"
- }
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = !page_get_alt_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 10037 "PhotoPage.c"
- } else {
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = FALSE;
-#line 10041 "PhotoPage.c"
- }
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_) {
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_has_photo (self);
-#line 10047 "PhotoPage.c"
- } else {
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 10051 "PhotoPage.c"
- }
-#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 1368 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_swap_in_original (self);
-#line 10057 "PhotoPage.c"
- }
-#line 1370 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = PAGE_CLASS (editing_host_page_parent_class)->on_shift_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event);
-#line 1370 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 10063 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_shift_released (Page* base,
- GdkEventKey* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- EditingToolsEditingTool* _tmp0_;
-#line 1373 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1374 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1374 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ == NULL) {
-#line 1375 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_swap_out_original (self);
-#line 10082 "PhotoPage.c"
- }
-#line 1377 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = PAGE_CLASS (editing_host_page_parent_class)->on_shift_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event);
-#line 1377 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 10088 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_alt_pressed (Page* base,
- GdkEventKey* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- EditingToolsEditingTool* _tmp0_;
-#line 1380 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1381 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1381 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ == NULL) {
-#line 1382 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_swap_out_original (self);
-#line 10107 "PhotoPage.c"
- }
-#line 1384 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = PAGE_CLASS (editing_host_page_parent_class)->on_alt_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event);
-#line 1384 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 10113 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_alt_released (Page* base,
- GdkEventKey* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- EditingToolsEditingTool* _tmp2_;
-#line 1387 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->current_tool;
-#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ == NULL) {
-#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = page_get_shift_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 10134 "PhotoPage.c"
- } else {
-#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = FALSE;
-#line 10138 "PhotoPage.c"
- }
-#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_) {
-#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = !page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 10144 "PhotoPage.c"
- } else {
-#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 10148 "PhotoPage.c"
- }
-#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 1389 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_swap_in_original (self);
-#line 10154 "PhotoPage.c"
- }
-#line 1391 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = PAGE_CLASS (editing_host_page_parent_class)->on_alt_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event);
-#line 1391 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 10160 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_swap_in_original (EditingHostPage* self)
-{
- GdkPixbuf* original = NULL;
- GdkPixbuf* _tmp8_;
- GtkScale* _tmp9_;
- GdkPixbuf* _tmp10_;
- Photo* _tmp11_;
- Photo* _tmp12_;
- Dimensions _tmp13_ = {0};
- GError * _inner_error_ = NULL;
-#line 1394 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 10177 "PhotoPage.c"
- {
- GdkPixbuf* _tmp0_ = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- Photo* _tmp5_;
- Photo* _tmp6_;
- GdkPixbuf* _tmp7_;
-#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = editing_host_page_get_photo (self);
-#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = photo_get_prefetched_copy (_tmp2_, &_inner_error_);
-#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _tmp4_;
-#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10201 "PhotoPage.c"
- goto __catch261_g_error;
- }
-#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = editing_host_page_get_photo (self);
-#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = orientation_rotate_pixbuf (photo_get_original_orientation (_tmp6_), _tmp0_);
-#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (original);
-#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- original = _tmp7_;
-#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 10218 "PhotoPage.c"
- }
- goto __finally261;
- __catch261_g_error:
- {
- GError* err = NULL;
-#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 1400 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 1400 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (original);
-#line 1400 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 10234 "PhotoPage.c"
- }
- __finally261:
-#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (original);
-#line 1396 "/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 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 10247 "PhotoPage.c"
- }
-#line 1404 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = single_photo_page_get_unscaled_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1404 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->swapped);
-#line 1404 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->swapped = _tmp8_;
-#line 1408 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = self->priv->zoom_slider;
-#line 1408 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange)) != 0.0) {
-#line 1409 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_save_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1410 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 10263 "PhotoPage.c"
- }
-#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = original;
-#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = editing_host_page_get_photo (self);
-#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo_get_master_dimensions (_tmp12_, &_tmp13_);
-#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp10_, &_tmp13_, NULL);
-#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 1394 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (original);
-#line 10279 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_swap_out_original (EditingHostPage* self)
-{
- GdkPixbuf* _tmp0_;
-#line 1416 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->swapped;
-#line 1417 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 10293 "PhotoPage.c"
- GdkPixbuf* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- Dimensions _tmp4_ = {0};
-#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->swapped;
-#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = editing_host_page_get_photo (self);
-#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp4_);
-#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp1_, &_tmp4_, NULL);
-#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 1420 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_restore_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1421 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_cursor_for_zoom_context (self);
-#line 1424 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->swapped);
-#line 1424 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->swapped = NULL;
-#line 10318 "PhotoPage.c"
- }
-}
-
-
-static gpointer
-_editing_tools_editing_tool_ref0 (gpointer self)
-{
-#line 1468 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self ? editing_tools_editing_tool_ref (self) : NULL;
-#line 10328 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_activate_tool (EditingHostPage* self,
- EditingToolsEditingTool* tool)
-{
- Dimensions _tmp0_ = {0};
- GdkPixbuf* _tmp1_;
- GdkPixbuf* unscaled = NULL;
- Dimensions max_dim = {0};
- Photo* _tmp2_;
- Photo* _tmp3_;
- Dimensions _tmp4_ = {0};
- Dimensions _tmp5_;
- GdkPixbuf* _tmp21_;
- EditingToolsPhotoCanvas* photo_canvas = NULL;
- EditingHostPageEditingHostCanvas* _tmp24_;
- EditingToolsEditingTool* _tmp25_;
- EditingToolsEditingTool* _tmp26_;
- EditingToolsPhotoCanvas* _tmp27_;
- GError * _inner_error_ = NULL;
-#line 1428 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1428 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (tool));
-#line 1431 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_save_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1432 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1436 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 1436 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE);
-#line 1439 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = single_photo_page_get_unscaled_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1439 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->cancel_editing_pixbuf);
-#line 1439 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->cancel_editing_pixbuf = _tmp1_;
-#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = editing_host_page_get_photo (self);
-#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp4_);
-#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- max_dim = _tmp5_;
-#line 10381 "PhotoPage.c"
- {
- Dimensions tool_pixbuf_dim = {0};
- Dimensions _tmp6_ = {0};
- GdkPixbuf* _tmp7_ = NULL;
- Scaling _tmp8_ = {0};
- Photo* _tmp9_;
- Photo* _tmp10_;
- Dimensions _tmp11_ = {0};
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
- GdkPixbuf* _tmp14_;
- GdkPixbuf* _tmp15_;
-#line 1445 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_.width = 0;
-#line 1445 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_pixbuf_dim = _tmp6_;
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_);
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = editing_host_page_get_photo (self);
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = editing_tools_editing_tool_get_display_pixbuf (tool, &_tmp8_, _tmp10_, &_tmp11_, &_inner_error_);
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_pixbuf_dim = _tmp11_;
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp13_;
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10416 "PhotoPage.c"
- goto __catch262_g_error;
- }
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp7_;
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = NULL;
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (unscaled);
-#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- unscaled = _tmp14_;
-#line 1448 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = unscaled;
-#line 1448 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp15_ != NULL) {
-#line 10431 "PhotoPage.c"
- Dimensions _tmp16_;
-#line 1449 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = tool_pixbuf_dim;
-#line 1449 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- max_dim = _tmp16_;
-#line 10437 "PhotoPage.c"
- }
-#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 10441 "PhotoPage.c"
- }
- goto __finally262;
- __catch262_g_error:
- {
- GError* err = NULL;
- GError* _tmp17_;
- const gchar* _tmp18_;
- GtkToggleToolButton* _tmp19_;
- GtkToggleToolButton* _tmp20_;
-#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 1451 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = err;
-#line 1451 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _tmp17_->message;
-#line 1451 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_warning ("PhotoPage.vala:1451: %s", _tmp18_);
-#line 1452 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, TRUE);
-#line 1455 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = self->priv->current_editing_toggle;
-#line 1455 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp19_ != NULL, "current_editing_toggle != null");
-#line 1456 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = self->priv->current_editing_toggle;
-#line 1456 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toggle_tool_button_set_active (_tmp20_, FALSE);
-#line 1458 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 1458 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (unscaled);
-#line 1458 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 10477 "PhotoPage.c"
- }
- __finally262:
-#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (unscaled);
-#line 1444 "/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 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 10490 "PhotoPage.c"
- }
-#line 1461 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = unscaled;
-#line 1461 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp21_ != NULL) {
-#line 10496 "PhotoPage.c"
- GdkPixbuf* _tmp22_;
- Dimensions _tmp23_;
-#line 1462 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = unscaled;
-#line 1462 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = max_dim;
-#line 1462 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp22_, &_tmp23_, NULL);
-#line 10505 "PhotoPage.c"
- }
-#line 1465 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = editing_host_page_editing_host_canvas_new (self);
-#line 1465 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo_canvas = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas);
-#line 1468 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = _editing_tools_editing_tool_ref0 (tool);
-#line 1468 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_editing_tool_unref0 (self->priv->current_tool);
-#line 1468 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->current_tool = _tmp25_;
-#line 1469 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = self->priv->current_tool;
-#line 1469 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = photo_canvas;
-#line 1469 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_editing_tool_activate (_tmp26_, _tmp27_);
-#line 1472 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_place_tool_window (self);
-#line 1475 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 1428 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_photo_canvas_unref0 (photo_canvas);
-#line 1428 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (unscaled);
-#line 10531 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_tool_activated_editing_tools_editing_tool_activated (EditingToolsEditingTool* _sender,
- gpointer self)
-{
-#line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_tool_activated ((EditingHostPage*) self);
-#line 10541 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender,
- gpointer self)
-{
-#line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_tool_deactivated ((EditingHostPage*) self);
-#line 10551 "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 1501 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_tool_applied ((EditingHostPage*) self, command, new_pixbuf, new_max_dim, needs_improvement);
-#line 10565 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled (EditingToolsEditingTool* _sender,
- gpointer self)
-{
-#line 1502 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_tool_cancelled ((EditingHostPage*) self);
-#line 10575 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted (EditingToolsEditingTool* _sender,
- gpointer self)
-{
-#line 1503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_tool_aborted ((EditingHostPage*) self);
-#line 10585 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_update_pixbuf_gsource_func (gpointer self)
-{
- gboolean result;
- result = editing_host_page_update_pixbuf ((EditingHostPage*) self);
-#line 1530 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 10596 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_deactivate_tool (EditingHostPage* self,
- Command* command,
- GdkPixbuf* new_pixbuf,
- Dimensions* new_max_dim,
- gboolean needs_improvement)
-{
- EditingToolsEditingTool* _tmp0_;
- EditingToolsEditingTool* tool = NULL;
- EditingToolsEditingTool* _tmp1_;
- EditingToolsEditingTool* _tmp2_;
- EditingToolsEditingToolWindow* tool_window = NULL;
- EditingToolsEditingTool* _tmp3_;
- EditingToolsEditingToolWindow* _tmp4_;
- gboolean _tmp5_ = FALSE;
- EditingToolsEditingToolWindow* _tmp6_;
- EditingToolsEditingTool* _tmp23_;
- EditingToolsEditingTool* _tmp24_;
- guint _tmp25_;
- EditingToolsEditingTool* _tmp26_;
- guint _tmp27_;
- EditingToolsEditingTool* _tmp28_;
- guint _tmp29_;
- EditingToolsEditingTool* _tmp30_;
- guint _tmp31_;
- EditingToolsEditingTool* _tmp32_;
- guint _tmp33_;
- GdkPixbuf* replacement = NULL;
- GdkPixbuf* _tmp40_;
-#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail ((command == NULL) || IS_COMMAND (command));
-#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail ((new_pixbuf == NULL) || GDK_IS_PIXBUF (new_pixbuf));
-#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (new_max_dim != NULL);
-#line 1480 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1480 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ == NULL) {
-#line 1481 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 10643 "PhotoPage.c"
- }
-#line 1483 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 1483 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _editing_tools_editing_tool_ref0 (_tmp1_);
-#line 1483 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool = _tmp2_;
-#line 1484 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_editing_tool_unref0 (self->priv->current_tool);
-#line 1484 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->current_tool = NULL;
-#line 1487 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = tool;
-#line 1487 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = editing_tools_editing_tool_get_tool_window (_tmp3_);
-#line 1487 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_window = _tmp4_;
-#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = tool_window;
-#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp6_ != NULL) {
-#line 10665 "PhotoPage.c"
- EditingToolsEditingToolWindow* _tmp7_;
-#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = tool_window;
-#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = editing_tools_editing_tool_window_has_user_moved (_tmp7_);
-#line 10671 "PhotoPage.c"
- } else {
-#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = FALSE;
-#line 10675 "PhotoPage.c"
- }
-#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp5_) {
-#line 10679 "PhotoPage.c"
- gint last_location_x = 0;
- gint last_location_y = 0;
- EditingToolsEditingToolWindow* _tmp8_;
- gint _tmp9_ = 0;
- gint _tmp10_ = 0;
- GeeHashMap* _tmp11_;
- EditingToolsEditingTool* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gint _tmp16_;
- GeeHashMap* _tmp17_;
- EditingToolsEditingTool* _tmp18_;
- const gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gint _tmp22_;
-#line 1490 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = tool_window;
-#line 1490 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_window_get_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_window_get_type (), GtkWindow), &_tmp9_, &_tmp10_);
-#line 1490 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- last_location_x = _tmp9_;
-#line 1490 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- last_location_y = _tmp10_;
-#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = self->priv->last_locations;
-#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = tool;
-#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_->name;
-#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = g_strconcat (_tmp13_, "_x", NULL);
-#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = last_location_x;
-#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_, (gpointer) ((gintptr) _tmp16_));
-#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp15_);
-#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = self->priv->last_locations;
-#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = tool;
-#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_->name;
-#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = g_strconcat (_tmp19_, "_y", NULL);
-#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = _tmp20_;
-#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = last_location_y;
-#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_, (gpointer) ((gintptr) _tmp22_));
-#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp21_);
-#line 10737 "PhotoPage.c"
- }
-#line 1497 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = tool;
-#line 1497 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_editing_tool_deactivate (_tmp23_);
-#line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = tool;
-#line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("activated", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp25_, NULL, FALSE);
-#line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp24_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp25_, 0, NULL, (GCallback) _editing_host_page_on_tool_activated_editing_tools_editing_tool_activated, self);
-#line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = tool;
-#line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("deactivated", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp27_, NULL, FALSE);
-#line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp26_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp27_, 0, NULL, (GCallback) _editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated, self);
-#line 1501 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = tool;
-#line 1501 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("applied", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp29_, NULL, FALSE);
-#line 1501 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp28_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, 0, NULL, (GCallback) _editing_host_page_on_tool_applied_editing_tools_editing_tool_applied, self);
-#line 1502 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = tool;
-#line 1502 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("cancelled", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp31_, NULL, FALSE);
-#line 1502 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp30_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp31_, 0, NULL, (GCallback) _editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled, self);
-#line 1503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = tool;
-#line 1503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("aborted", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp33_, NULL, FALSE);
-#line 1503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp32_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp33_, 0, NULL, (GCallback) _editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted, self);
-#line 1505 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_editing_tool_unref0 (tool);
-#line 1505 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool = NULL;
-#line 1509 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->current_editing_toggle);
-#line 1509 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->current_editing_toggle = NULL;
-#line 1512 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- replacement = NULL;
-#line 1513 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (new_pixbuf != NULL) {
-#line 10785 "PhotoPage.c"
- GdkPixbuf* _tmp34_;
-#line 1514 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp34_ = _g_object_ref0 (new_pixbuf);
-#line 1514 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (replacement);
-#line 1514 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- replacement = _tmp34_;
-#line 10793 "PhotoPage.c"
- } else {
- GdkPixbuf* _tmp35_;
-#line 1515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp35_ = self->priv->cancel_editing_pixbuf;
-#line 1515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp35_ != NULL) {
-#line 10800 "PhotoPage.c"
- GdkPixbuf* _tmp36_;
- GdkPixbuf* _tmp37_;
- GdkPixbuf* _tmp38_;
- Dimensions _tmp39_ = {0};
-#line 1516 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp36_ = self->priv->cancel_editing_pixbuf;
-#line 1516 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp37_ = _g_object_ref0 (_tmp36_);
-#line 1516 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (replacement);
-#line 1516 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- replacement = _tmp37_;
-#line 1517 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp38_ = replacement;
-#line 1517 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_for_pixbuf (_tmp38_, &_tmp39_);
-#line 1517 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *new_max_dim = _tmp39_;
-#line 1518 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- needs_improvement = FALSE;
-#line 10821 "PhotoPage.c"
- } else {
-#line 1520 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- needs_improvement = TRUE;
-#line 10825 "PhotoPage.c"
- }
- }
-#line 1523 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp40_ = replacement;
-#line 1523 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp40_ != NULL) {
-#line 10832 "PhotoPage.c"
- GdkPixbuf* _tmp41_;
- Dimensions _tmp42_;
-#line 1524 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp41_ = replacement;
-#line 1524 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp42_ = *new_max_dim;
-#line 1524 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp41_, &_tmp42_, NULL);
-#line 10841 "PhotoPage.c"
- }
-#line 1525 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->cancel_editing_pixbuf);
-#line 1525 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->cancel_editing_pixbuf = NULL;
-#line 1528 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (needs_improvement) {
-#line 1529 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = TRUE;
-#line 1530 "/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 10853 "PhotoPage.c"
- }
-#line 1534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (command != NULL) {
-#line 10857 "PhotoPage.c"
- CommandManager* _tmp43_;
- CommandManager* _tmp44_;
-#line 1535 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp43_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1535 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp44_ = _tmp43_;
-#line 1535 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp44_, command);
-#line 1535 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp44_);
-#line 10868 "PhotoPage.c"
- }
-#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (replacement);
-#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (tool_window);
-#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_editing_tool_unref0 (tool);
-#line 10876 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_double_click (EditingHostPage* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
-#line 1540 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 1541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 10891 "PhotoPage.c"
-}
-
-
-gboolean
-editing_host_page_on_double_click (EditingHostPage* self,
- GdkEventButton* event)
-{
-#line 1540 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1540 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return EDITING_HOST_PAGE_GET_CLASS (self)->on_double_click (self, event);
-#line 10903 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_left_click (Page* base,
- GdkEventButton* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- GdkEventType _tmp0_;
- gint x = 0;
- gdouble _tmp3_;
- gint y = 0;
- gdouble _tmp4_;
- gboolean _tmp5_ = FALSE;
- EditingToolsEditingTool* _tmp6_;
- EditingToolsEditingTool* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- EditingToolsEditingTool* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
-#line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1547 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = event->type;
-#line 1547 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ == GDK_2BUTTON_PRESS) {
-#line 10934 "PhotoPage.c"
- gboolean _tmp1_ = FALSE;
- EditingToolsEditingTool* _tmp2_;
-#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->current_tool;
-#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ == NULL) {
-#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = editing_host_page_on_double_click (self, event);
-#line 10943 "PhotoPage.c"
- } else {
-#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = FALSE;
-#line 10947 "PhotoPage.c"
- }
-#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp1_;
-#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 10953 "PhotoPage.c"
- }
-#line 1550 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = event->x;
-#line 1550 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = (gint) _tmp3_;
-#line 1551 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = event->y;
-#line 1551 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = (gint) _tmp4_;
-#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->current_tool;
-#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp6_ == NULL) {
-#line 10967 "PhotoPage.c"
- GtkScale* _tmp7_;
-#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = self->priv->zoom_slider;
-#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_range_get_type (), GtkRange)) != 0.0;
-#line 10973 "PhotoPage.c"
- } else {
-#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = FALSE;
-#line 10977 "PhotoPage.c"
- }
-#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp5_) {
-#line 10981 "PhotoPage.c"
- gdouble _tmp8_;
- gdouble _tmp9_;
-#line 1556 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = event->x;
-#line 1556 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->zoom_pan_start_point.x = (gint) _tmp8_;
-#line 1557 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = event->y;
-#line 1557 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->zoom_pan_start_point.y = (gint) _tmp9_;
-#line 1558 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->is_pan_in_progress = TRUE;
-#line 1559 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_suspend_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1561 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1561 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11000 "PhotoPage.c"
- }
-#line 1565 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = self->priv->current_tool;
-#line 1565 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp10_ == NULL) {
-#line 1566 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 1566 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11010 "PhotoPage.c"
- }
-#line 1571 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = x;
-#line 1571 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = y;
-#line 1571 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!single_photo_page_is_inside_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp11_, _tmp12_)) {
-#line 1572 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1572 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11022 "PhotoPage.c"
- }
-#line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = self->priv->current_tool;
-#line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = x;
-#line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = y;
-#line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_editing_tool_on_left_click (_tmp13_, _tmp14_, _tmp15_);
-#line 1577 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1577 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11036 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_left_released (Page* base,
- GdkEventButton* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_;
- EditingToolsEditingTool* _tmp19_;
- EditingToolsEditingTool* _tmp20_;
- gdouble _tmp21_;
- gdouble _tmp22_;
- EditingToolsEditingTool* _tmp23_;
- EditingToolsEditingToolWindow* _tmp24_;
- EditingToolsEditingToolWindow* _tmp25_;
- gboolean _tmp26_;
-#line 1580 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1580 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1581 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->is_pan_in_progress;
-#line 1581 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 11063 "PhotoPage.c"
- GdkPoint viewport_center = {0};
- ZoomState _tmp1_ = {0};
- GdkPoint _tmp2_ = {0};
- gint delta_x = 0;
- gdouble _tmp3_;
- GdkPoint _tmp4_;
- gint _tmp5_;
- gint delta_y = 0;
- gdouble _tmp6_;
- GdkPoint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- ZoomState zoom_state = {0};
- ZoomState _tmp13_ = {0};
- GdkPoint _tmp14_;
- ZoomState _tmp15_;
- ZoomBuffer* _tmp16_;
- ZoomBuffer* _tmp17_;
- ZoomState _tmp18_;
-#line 1582 "/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 1582 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewport_center (&_tmp1_, &_tmp2_);
-#line 1582 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center = _tmp2_;
-#line 1583 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = event->x;
-#line 1583 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = self->priv->zoom_pan_start_point;
-#line 1583 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_.x;
-#line 1583 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- delta_x = ((gint) _tmp3_) - _tmp5_;
-#line 1584 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = event->y;
-#line 1584 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = self->priv->zoom_pan_start_point;
-#line 1584 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_.y;
-#line 1584 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- delta_y = ((gint) _tmp6_) - _tmp8_;
-#line 1585 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = viewport_center.x;
-#line 1585 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = delta_x;
-#line 1585 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.x = _tmp9_ - _tmp10_;
-#line 1586 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = viewport_center.y;
-#line 1586 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = delta_y;
-#line 1586 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.y = _tmp11_ - _tmp12_;
-#line 1588 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp13_);
-#line 1588 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = viewport_center;
-#line 1588 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init_pan (&zoom_state, &_tmp13_, &_tmp14_);
-#line 1589 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = zoom_state;
-#line 1589 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp15_);
-#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = single_photo_page_get_zoom_buffer (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = zoom_state;
-#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_buffer_flush_demand_cache (_tmp17_, &_tmp18_);
-#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp17_);
-#line 1592 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->is_pan_in_progress = FALSE;
-#line 1593 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_restore_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 11144 "PhotoPage.c"
- }
-#line 1598 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = self->priv->current_tool;
-#line 1598 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp19_ == NULL) {
-#line 1599 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 1599 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11154 "PhotoPage.c"
- }
-#line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = self->priv->current_tool;
-#line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = event->x;
-#line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = event->y;
-#line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_editing_tool_on_left_released (_tmp20_, (gint) _tmp21_, (gint) _tmp22_);
-#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = self->priv->current_tool;
-#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = editing_tools_editing_tool_get_tool_window (_tmp23_);
-#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = _tmp24_;
-#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = _tmp25_ != NULL;
-#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp25_);
-#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp26_) {
-#line 11176 "PhotoPage.c"
- EditingToolsEditingTool* _tmp27_;
- EditingToolsEditingToolWindow* _tmp28_;
- EditingToolsEditingToolWindow* _tmp29_;
-#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = self->priv->current_tool;
-#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = editing_tools_editing_tool_get_tool_window (_tmp27_);
-#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = _tmp28_;
-#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_window_get_type (), GtkWindow));
-#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp29_);
-#line 11190 "PhotoPage.c"
- }
-#line 1606 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 1606 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11196 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_right_click (Page* base,
- GdkEventButton* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
-#line 1609 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1609 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1610 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = page_on_context_buttonpress (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), event);
-#line 1610 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11214 "PhotoPage.c"
-}
-
-
-static gboolean
-_editing_host_page_on_fetch_original_gsource_func (gpointer self)
-{
- gboolean result;
- result = editing_host_page_on_fetch_original ((EditingHostPage*) self);
-#line 1622 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11225 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_photos_altered (EditingHostPage* self,
- GeeMap* map)
-{
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean _tmp2_;
- Photo* _tmp3_;
- Photo* _tmp4_;
- gboolean _tmp5_;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
-#line 1613 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1613 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = !gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
-#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 1615 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 11259 "PhotoPage.c"
- }
-#line 1617 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = TRUE;
-#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = editing_host_page_get_photo (self);
-#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = photo_has_transformations (_tmp4_);
-#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp5_) {
-#line 1622 "/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 11275 "PhotoPage.c"
- }
-#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_update_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), view_collection_get_selected_count (_tmp7_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection)));
-#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp9_);
-#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp7_);
-#line 11291 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_view_contents_ordering_altered (EditingHostPage* self)
-{
-#line 1627 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1628 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_refresh_caches (self, "on_view_contents_ordering_altered");
-#line 11302 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_on_fetch_original (EditingHostPage* self)
-{
- gboolean result = FALSE;
-#line 1631 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1632 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (self)) {
-#line 11314 "PhotoPage.c"
- PixbufCache* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
-#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->master_cache;
-#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = editing_host_page_get_photo (self);
-#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixbuf_cache_prefetch (_tmp0_, _tmp2_, BACKGROUND_JOB_JOB_PRIORITY_LOW, FALSE);
-#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 11328 "PhotoPage.c"
- }
-#line 1635 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 1635 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11334 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_is_panning_possible (EditingHostPage* self)
-{
- gboolean result = FALSE;
- Dimensions content_dim = {0};
- Dimensions _tmp0_ = {0};
- ZoomState _tmp1_ = {0};
- ZoomState _tmp2_ = {0};
- Dimensions canvas_dim = {0};
- Dimensions _tmp3_ = {0};
- gboolean _tmp4_ = FALSE;
- Dimensions _tmp5_;
- gint _tmp6_;
- Dimensions _tmp7_;
- gint _tmp8_;
-#line 1638 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1641 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_.width = 0;
-#line 1641 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- content_dim = _tmp0_;
-#line 1642 "/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 1642 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- content_dim.width = zoom_state_get_zoomed_width (&_tmp1_);
-#line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp2_);
-#line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- content_dim.height = zoom_state_get_zoomed_height (&_tmp2_);
-#line 1644 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_);
-#line 1644 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- canvas_dim = _tmp3_;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = canvas_dim;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_.width;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = content_dim;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_.width;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp6_ >= _tmp8_) {
-#line 11381 "PhotoPage.c"
- Dimensions _tmp9_;
- gint _tmp10_;
- Dimensions _tmp11_;
- gint _tmp12_;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = canvas_dim;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_.height;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = content_dim;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_.height;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp10_ >= _tmp12_;
-#line 11396 "PhotoPage.c"
- } else {
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = FALSE;
-#line 11400 "PhotoPage.c"
- }
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = !_tmp4_;
-#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11406 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_update_cursor_for_zoom_context (EditingHostPage* self)
-{
-#line 1649 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1650 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_is_panning_possible (self)) {
-#line 1651 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_FLEUR);
-#line 11419 "PhotoPage.c"
- } else {
-#line 1653 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_LEFT_PTR);
-#line 11423 "PhotoPage.c"
- }
-}
-
-
-static gboolean
-editing_host_page_real_on_motion (Page* base,
- GdkEventMotion* event,
- gint x,
- gint y,
- GdkModifierType mask)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- EditingToolsEditingTool* _tmp0_;
- gboolean _tmp2_;
-#line 1657 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1657 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1658 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1658 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 11447 "PhotoPage.c"
- EditingToolsEditingTool* _tmp1_;
-#line 1659 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 1659 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_editing_tool_on_motion (_tmp1_, x, y, mask);
-#line 1662 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gdk_event_request_motions (event);
-#line 1664 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1664 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11459 "PhotoPage.c"
- }
-#line 1667 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_update_cursor_for_zoom_context (self);
-#line 1669 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->is_pan_in_progress;
-#line 1669 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 11467 "PhotoPage.c"
- gint delta_x = 0;
- gdouble _tmp3_;
- GdkPoint _tmp4_;
- gint _tmp5_;
- gint delta_y = 0;
- gdouble _tmp6_;
- GdkPoint _tmp7_;
- gint _tmp8_;
- GdkPoint viewport_center = {0};
- ZoomState _tmp9_ = {0};
- GdkPoint _tmp10_ = {0};
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- ZoomState zoom_state = {0};
- ZoomState _tmp15_ = {0};
- GdkPoint _tmp16_;
- ZoomState _tmp17_;
-#line 1670 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = event->x;
-#line 1670 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = self->priv->zoom_pan_start_point;
-#line 1670 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_.x;
-#line 1670 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- delta_x = ((gint) _tmp3_) - _tmp5_;
-#line 1671 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = event->y;
-#line 1671 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = self->priv->zoom_pan_start_point;
-#line 1671 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_.y;
-#line 1671 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- delta_y = ((gint) _tmp6_) - _tmp8_;
-#line 1673 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp9_);
-#line 1673 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewport_center (&_tmp9_, &_tmp10_);
-#line 1673 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center = _tmp10_;
-#line 1674 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = viewport_center.x;
-#line 1674 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = delta_x;
-#line 1674 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.x = _tmp11_ - _tmp12_;
-#line 1675 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = viewport_center.y;
-#line 1675 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = delta_y;
-#line 1675 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.y = _tmp13_ - _tmp14_;
-#line 1677 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp15_);
-#line 1677 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = viewport_center;
-#line 1677 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init_pan (&zoom_state, &_tmp15_, &_tmp16_);
-#line 1679 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = zoom_state;
-#line 1679 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_on_interactive_pan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp17_);
-#line 1680 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1680 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11535 "PhotoPage.c"
- }
-#line 1683 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = PAGE_CLASS (editing_host_page_parent_class)->on_motion (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event, x, y, mask);
-#line 1683 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11541 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_leave_notify_event (Page* base)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- EditingToolsEditingTool* _tmp0_;
-#line 1686 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1687 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1687 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 11557 "PhotoPage.c"
- EditingToolsEditingTool* _tmp1_;
-#line 1688 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 1688 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = editing_tools_editing_tool_on_leave_notify_event (_tmp1_);
-#line 1688 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11565 "PhotoPage.c"
- }
-#line 1690 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = 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));
-#line 1690 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11571 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_track_tool_window (EditingHostPage* self)
-{
- EditingToolsEditingTool* _tmp0_;
-#line 1693 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1695 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1695 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 11585 "PhotoPage.c"
- EditingToolsEditingToolWindow* tool_window = NULL;
- EditingToolsEditingTool* _tmp1_;
- EditingToolsEditingToolWindow* _tmp2_;
- gboolean _tmp3_ = FALSE;
- EditingToolsEditingToolWindow* _tmp4_;
-#line 1696 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 1696 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = editing_tools_editing_tool_get_tool_window (_tmp1_);
-#line 1696 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_window = _tmp2_;
-#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = tool_window;
-#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_ != NULL) {
-#line 11601 "PhotoPage.c"
- EditingToolsEditingToolWindow* _tmp5_;
-#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = tool_window;
-#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = !editing_tools_editing_tool_window_has_user_moved (_tmp5_);
-#line 11607 "PhotoPage.c"
- } else {
-#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = FALSE;
-#line 11611 "PhotoPage.c"
- }
-#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_) {
-#line 1698 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_place_tool_window (self);
-#line 11617 "PhotoPage.c"
- }
-#line 1695 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (tool_window);
-#line 11621 "PhotoPage.c"
- }
-}
-
-
-static void
-editing_host_page_real_on_move (Page* base,
- GdkRectangle* rect)
-{
- EditingHostPage * self;
- GdkRectangle _tmp0_;
-#line 1702 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1702 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (rect != NULL);
-#line 1703 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_track_tool_window (self);
-#line 1705 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = *rect;
-#line 1705 "/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 11642 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_on_move_finished (Page* base,
- GdkRectangle* rect)
-{
- EditingHostPage * self;
- GeeHashMap* _tmp0_;
- GdkRectangle _tmp1_;
-#line 1708 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1708 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (rect != NULL);
-#line 1709 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->last_locations;
-#line 1709 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1711 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = *rect;
-#line 1711 "/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 11665 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_on_keyboard_pan_event (EditingHostPage* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
- ZoomState current_zoom_state = {0};
- ZoomState _tmp0_ = {0};
- GdkPoint viewport_center = {0};
- GdkPoint _tmp1_ = {0};
- guint _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- GQuark _tmp6_ = 0U;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label0 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label1 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label2 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label3 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label4 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label5 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label6 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label7 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label8 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label9 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label10 = 0;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label11 = 0;
-#line 11706 "PhotoPage.c"
- ZoomState new_zoom_state = {0};
- ZoomState _tmp11_;
- GdkPoint _tmp12_;
- ZoomState _tmp13_;
-#line 1714 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1714 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_);
-#line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- current_zoom_state = _tmp0_;
-#line 1716 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_get_viewport_center (&current_zoom_state, &_tmp1_);
-#line 1716 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center = _tmp1_;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = event->keyval;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = gdk_keyval_name (_tmp2_);
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = (NULL == _tmp4_) ? 0 : g_quark_from_string (_tmp4_);
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (((_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("Left")))) || (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("KP_Left"))))) || (_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("KP_4"))))) {
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11735 "PhotoPage.c"
- default:
- {
- gint _tmp7_;
-#line 1722 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = viewport_center.x;
-#line 1722 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.x = _tmp7_ - EDITING_HOST_PAGE_PAN_INCREMENT_SIZE;
-#line 1723 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 11745 "PhotoPage.c"
- }
- }
- } else if (((_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("Right")))) || (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("KP_Right"))))) || (_tmp6_ == ((0 != _tmp5_label5) ? _tmp5_label5 : (_tmp5_label5 = g_quark_from_static_string ("KP_6"))))) {
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11751 "PhotoPage.c"
- default:
- {
- gint _tmp8_;
-#line 1728 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = viewport_center.x;
-#line 1728 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.x = _tmp8_ + EDITING_HOST_PAGE_PAN_INCREMENT_SIZE;
-#line 1729 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 11761 "PhotoPage.c"
- }
- }
- } else if (((_tmp6_ == ((0 != _tmp5_label6) ? _tmp5_label6 : (_tmp5_label6 = g_quark_from_static_string ("Down")))) || (_tmp6_ == ((0 != _tmp5_label7) ? _tmp5_label7 : (_tmp5_label7 = g_quark_from_static_string ("KP_Down"))))) || (_tmp6_ == ((0 != _tmp5_label8) ? _tmp5_label8 : (_tmp5_label8 = g_quark_from_static_string ("KP_2"))))) {
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11767 "PhotoPage.c"
- default:
- {
- gint _tmp9_;
-#line 1734 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = viewport_center.y;
-#line 1734 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.y = _tmp9_ + EDITING_HOST_PAGE_PAN_INCREMENT_SIZE;
-#line 1735 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 11777 "PhotoPage.c"
- }
- }
- } else if (((_tmp6_ == ((0 != _tmp5_label9) ? _tmp5_label9 : (_tmp5_label9 = g_quark_from_static_string ("Up")))) || (_tmp6_ == ((0 != _tmp5_label10) ? _tmp5_label10 : (_tmp5_label10 = g_quark_from_static_string ("KP_Up"))))) || (_tmp6_ == ((0 != _tmp5_label11) ? _tmp5_label11 : (_tmp5_label11 = g_quark_from_static_string ("KP_8"))))) {
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11783 "PhotoPage.c"
- default:
- {
- gint _tmp10_;
-#line 1740 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = viewport_center.y;
-#line 1740 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_center.y = _tmp10_ - EDITING_HOST_PAGE_PAN_INCREMENT_SIZE;
-#line 1741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 11793 "PhotoPage.c"
- }
- }
- } else {
-#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11799 "PhotoPage.c"
- default:
- {
-#line 1744 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 1744 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11806 "PhotoPage.c"
- }
- }
- }
-#line 1747 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = current_zoom_state;
-#line 1747 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = viewport_center;
-#line 1747 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- zoom_state_init_pan (&new_zoom_state, &_tmp11_, &_tmp12_);
-#line 1748 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = new_zoom_state;
-#line 1748 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp13_);
-#line 1749 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 1751 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1751 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11826 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- EditingToolsEditingTool* _tmp0_;
- gboolean handled = FALSE;
- guint _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- GQuark _tmp6_ = 0U;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label0 = 0;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label1 = 0;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label2 = 0;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label3 = 0;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label4 = 0;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label5 = 0;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label6 = 0;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp5_label7 = 0;
-#line 11858 "PhotoPage.c"
- gboolean _tmp7_;
- gboolean _tmp8_ = FALSE;
-#line 1754 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1754 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1756 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1756 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 11869 "PhotoPage.c"
- EditingToolsEditingTool* _tmp1_;
-#line 1757 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 1757 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_tools_editing_tool_on_keypress (_tmp1_, event)) {
-#line 1758 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1758 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11879 "PhotoPage.c"
- }
- }
-#line 1762 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_is_panning_possible (self)) {
-#line 1763 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_on_keyboard_pan_event (self, event)) {
-#line 1764 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1764 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11890 "PhotoPage.c"
- }
- }
-#line 1770 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_on_zoom_slider_key_press (self, event)) {
-#line 1771 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1771 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11899 "PhotoPage.c"
- }
-#line 1773 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- handled = TRUE;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = event->keyval;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = gdk_keyval_name (_tmp2_);
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = (NULL == _tmp4_) ? 0 : g_quark_from_string (_tmp4_);
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if ((_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("Down")))) || (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("KP_Down"))))) {
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11915 "PhotoPage.c"
- default:
- {
-#line 1780 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 11920 "PhotoPage.c"
- }
- }
- } else if (((_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("equal")))) || (_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("plus"))))) || (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("KP_Add"))))) {
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11926 "PhotoPage.c"
- default:
- {
-#line 1785 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize");
-#line 1786 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 11933 "PhotoPage.c"
- }
- }
- } else if (((_tmp6_ == ((0 != _tmp5_label5) ? _tmp5_label5 : (_tmp5_label5 = g_quark_from_static_string ("minus")))) || (_tmp6_ == ((0 != _tmp5_label6) ? _tmp5_label6 : (_tmp5_label6 = g_quark_from_static_string ("underscore"))))) || (_tmp6_ == ((0 != _tmp5_label7) ? _tmp5_label7 : (_tmp5_label7 = g_quark_from_static_string ("KP_Subtract"))))) {
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11939 "PhotoPage.c"
- default:
- {
-#line 1792 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize");
-#line 1793 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 11946 "PhotoPage.c"
- }
- }
- } else {
-#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 11952 "PhotoPage.c"
- default:
- {
-#line 1796 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- handled = FALSE;
-#line 1797 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 11959 "PhotoPage.c"
- }
- }
- }
-#line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = handled;
-#line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp7_) {
-#line 1801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 1801 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11971 "PhotoPage.c"
- }
-#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (GTK_WIDGET_CLASS (editing_host_page_parent_class)->key_press_event != NULL) {
-#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = 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), event);
-#line 11977 "PhotoPage.c"
- } else {
-#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = TRUE;
-#line 11981 "PhotoPage.c"
- }
-#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp8_;
-#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 11987 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_new_surface (SinglePhotoPage* base,
- cairo_t* default_ctx,
- Dimensions* dim)
-{
- EditingHostPage * self;
- EditingToolsEditingTool* _tmp0_;
-#line 1806 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1806 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (default_ctx != NULL);
-#line 1806 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (dim != NULL);
-#line 1808 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1808 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 12008 "PhotoPage.c"
- EditingToolsEditingTool* _tmp1_;
- EditingToolsPhotoCanvas* _tmp2_;
- Dimensions _tmp3_;
-#line 1809 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 1809 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_->canvas;
-#line 1809 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = *dim;
-#line 1809 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_photo_canvas_set_surface (_tmp2_, default_ctx, &_tmp3_);
-#line 12020 "PhotoPage.c"
- }
-}
-
-
-static void
-editing_host_page_real_updated_pixbuf (SinglePhotoPage* base,
- GdkPixbuf* pixbuf,
- SinglePhotoPageUpdateReason reason,
- Dimensions* old_dim)
-{
- EditingHostPage * self;
- gboolean _tmp0_ = FALSE;
- EditingToolsEditingTool* _tmp1_;
-#line 1812 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1812 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 1812 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (old_dim != NULL);
-#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_ != NULL) {
-#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = reason != SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT;
-#line 12046 "PhotoPage.c"
- } else {
-#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 12050 "PhotoPage.c"
- }
-#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 12054 "PhotoPage.c"
- EditingToolsEditingTool* _tmp2_;
- EditingToolsPhotoCanvas* _tmp3_;
- Dimensions _tmp4_;
- GdkRectangle _tmp5_ = {0};
-#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->current_tool;
-#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_->canvas;
-#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = *old_dim;
-#line 1817 "/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), &_tmp5_);
-#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_photo_canvas_resized_pixbuf (_tmp3_, &_tmp4_, pixbuf, &_tmp5_);
-#line 1818 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->cancel_editing_pixbuf);
-#line 1818 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->cancel_editing_pixbuf = NULL;
-#line 12073 "PhotoPage.c"
- }
-}
-
-
-static GdkPixbuf*
-editing_host_page_real_get_bottom_left_trinket (EditingHostPage* self,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 1823 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = NULL;
-#line 1823 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 12087 "PhotoPage.c"
-}
-
-
-GdkPixbuf*
-editing_host_page_get_bottom_left_trinket (EditingHostPage* self,
- gint scale)
-{
-#line 1822 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL);
-#line 1822 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return EDITING_HOST_PAGE_GET_CLASS (self)->get_bottom_left_trinket (self, scale);
-#line 12099 "PhotoPage.c"
-}
-
-
-static GdkPixbuf*
-editing_host_page_real_get_top_left_trinket (EditingHostPage* self,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 1827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = NULL;
-#line 1827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 12112 "PhotoPage.c"
-}
-
-
-GdkPixbuf*
-editing_host_page_get_top_left_trinket (EditingHostPage* self,
- gint scale)
-{
-#line 1826 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL);
-#line 1826 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return EDITING_HOST_PAGE_GET_CLASS (self)->get_top_left_trinket (self, scale);
-#line 12124 "PhotoPage.c"
-}
-
-
-static GdkPixbuf*
-editing_host_page_real_get_top_right_trinket (EditingHostPage* self,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 1831 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = NULL;
-#line 1831 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 12137 "PhotoPage.c"
-}
-
-
-GdkPixbuf*
-editing_host_page_get_top_right_trinket (EditingHostPage* self,
- gint scale)
-{
-#line 1830 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL);
-#line 1830 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return EDITING_HOST_PAGE_GET_CLASS (self)->get_top_right_trinket (self, scale);
-#line 12149 "PhotoPage.c"
-}
-
-
-static GdkPixbuf*
-editing_host_page_real_get_bottom_right_trinket (EditingHostPage* self,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 1835 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = NULL;
-#line 1835 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 12162 "PhotoPage.c"
-}
-
-
-GdkPixbuf*
-editing_host_page_get_bottom_right_trinket (EditingHostPage* self,
- gint scale)
-{
-#line 1834 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL);
-#line 1834 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return EDITING_HOST_PAGE_GET_CLASS (self)->get_bottom_right_trinket (self, scale);
-#line 12174 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_paint (SinglePhotoPage* base,
- cairo_t* ctx,
- Dimensions* ctx_dim)
-{
- EditingHostPage * self;
- EditingToolsEditingTool* _tmp0_;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
- Dimensions _tmp16_;
- ZoomState _tmp17_ = {0};
- GdkRectangle scaled_rect = {0};
- GdkRectangle _tmp18_ = {0};
- GdkPixbuf* trinket = NULL;
- GdkPixbuf* _tmp19_;
- GdkPixbuf* _tmp20_;
- GdkPixbuf* _tmp41_;
- GdkPixbuf* _tmp42_;
- GdkPixbuf* _tmp58_;
- GdkPixbuf* _tmp59_;
- GdkPixbuf* _tmp80_;
- GdkPixbuf* _tmp81_;
-#line 1838 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 1838 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (ctx != NULL);
-#line 1838 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (ctx_dim != NULL);
-#line 1839 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 1839 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ != NULL) {
-#line 12210 "PhotoPage.c"
- EditingToolsEditingTool* _tmp1_;
-#line 1840 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 1840 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_editing_tool_paint (_tmp1_, ctx);
-#line 1842 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12218 "PhotoPage.c"
- }
-#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->photo_missing;
-#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_) {
-#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = editing_host_page_has_photo (self);
-#line 12226 "PhotoPage.c"
- } else {
-#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = FALSE;
-#line 12230 "PhotoPage.c"
- }
-#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 12234 "PhotoPage.c"
- Dimensions _tmp4_ = {0};
- gint _tmp5_;
- Dimensions _tmp6_ = {0};
- gint _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 1846 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- set_source_color_from_string (ctx, "#000");
-#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp4_);
-#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_.width;
-#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp6_);
-#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_.height;
-#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp5_, (gdouble) _tmp7_);
-#line 1848 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_fill (ctx);
-#line 1849 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_paint (ctx);
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = editing_host_page_get_photo (self);
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = g_file_get_path (_tmp11_);
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = g_strdup_printf (_ ("Photo source file missing: %s"), _tmp13_);
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_draw_message (self, _tmp15_);
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp15_);
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp13_);
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 1851 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12291 "PhotoPage.c"
- }
-#line 1854 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = *ctx_dim;
-#line 1854 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- SINGLE_PHOTO_PAGE_CLASS (editing_host_page_parent_class)->paint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), ctx, &_tmp16_);
-#line 1856 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp17_);
-#line 1856 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!zoom_state_is_default (&_tmp17_)) {
-#line 1857 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12303 "PhotoPage.c"
- }
-#line 1860 "/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), &_tmp18_);
-#line 1860 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaled_rect = _tmp18_;
-#line 1862 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = editing_host_page_get_bottom_left_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE);
-#line 1862 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- trinket = _tmp19_;
-#line 1863 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = trinket;
-#line 1863 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp20_ != NULL) {
-#line 12317 "PhotoPage.c"
- gint x = 0;
- GdkRectangle _tmp21_;
- gint _tmp22_;
- gint y = 0;
- GdkRectangle _tmp23_;
- gint _tmp24_;
- GdkRectangle _tmp25_;
- gint _tmp26_;
- GdkPixbuf* _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- GdkPixbuf* _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- GdkPixbuf* _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- GdkPixbuf* _tmp38_;
- gint _tmp39_;
- gint _tmp40_;
-#line 1864 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = scaled_rect;
-#line 1864 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = _tmp21_.x;
-#line 1864 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = _tmp22_ + EDITING_HOST_PAGE_TRINKET_PADDING;
-#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = scaled_rect;
-#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = _tmp23_.y;
-#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = scaled_rect;
-#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = _tmp25_.height;
-#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = trinket;
-#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = gdk_pixbuf_get_height (_tmp27_);
-#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = _tmp28_;
-#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = ((_tmp24_ + _tmp26_) - _tmp29_) - EDITING_HOST_PAGE_TRINKET_PADDING;
-#line 1866 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = trinket;
-#line 1866 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = x;
-#line 1866 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = y;
-#line 1866 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp30_, (gdouble) _tmp31_, (gdouble) _tmp32_);
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp33_ = x;
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp34_ = y;
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp35_ = trinket;
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp36_ = gdk_pixbuf_get_width (_tmp35_);
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp37_ = _tmp36_;
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp38_ = trinket;
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp39_ = gdk_pixbuf_get_height (_tmp38_);
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp40_ = _tmp39_;
-#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_rectangle (ctx, (gdouble) _tmp33_, (gdouble) _tmp34_, (gdouble) _tmp37_, (gdouble) _tmp40_);
-#line 1868 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_fill (ctx);
-#line 12390 "PhotoPage.c"
- }
-#line 1871 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp41_ = editing_host_page_get_top_left_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE);
-#line 1871 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (trinket);
-#line 1871 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- trinket = _tmp41_;
-#line 1872 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp42_ = trinket;
-#line 1872 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp42_ != NULL) {
-#line 12402 "PhotoPage.c"
- gint x = 0;
- GdkRectangle _tmp43_;
- gint _tmp44_;
- gint y = 0;
- GdkRectangle _tmp45_;
- gint _tmp46_;
- GdkPixbuf* _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
- GdkPixbuf* _tmp52_;
- gint _tmp53_;
- gint _tmp54_;
- GdkPixbuf* _tmp55_;
- gint _tmp56_;
- gint _tmp57_;
-#line 1873 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp43_ = scaled_rect;
-#line 1873 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp44_ = _tmp43_.x;
-#line 1873 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = _tmp44_ + EDITING_HOST_PAGE_TRINKET_PADDING;
-#line 1874 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp45_ = scaled_rect;
-#line 1874 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp46_ = _tmp45_.y;
-#line 1874 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = _tmp46_ + EDITING_HOST_PAGE_TRINKET_PADDING;
-#line 1875 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp47_ = trinket;
-#line 1875 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp48_ = x;
-#line 1875 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp49_ = y;
-#line 1875 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp47_, (gdouble) _tmp48_, (gdouble) _tmp49_);
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp50_ = x;
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp51_ = y;
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp52_ = trinket;
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp53_ = gdk_pixbuf_get_width (_tmp52_);
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp54_ = _tmp53_;
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp55_ = trinket;
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp56_ = gdk_pixbuf_get_height (_tmp55_);
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp57_ = _tmp56_;
-#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_rectangle (ctx, (gdouble) _tmp50_, (gdouble) _tmp51_, (gdouble) _tmp54_, (gdouble) _tmp57_);
-#line 1877 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_fill (ctx);
-#line 12460 "PhotoPage.c"
- }
-#line 1880 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp58_ = editing_host_page_get_top_right_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE);
-#line 1880 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (trinket);
-#line 1880 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- trinket = _tmp58_;
-#line 1881 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp59_ = trinket;
-#line 1881 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp59_ != NULL) {
-#line 12472 "PhotoPage.c"
- gint x = 0;
- GdkRectangle _tmp60_;
- gint _tmp61_;
- GdkRectangle _tmp62_;
- gint _tmp63_;
- GdkPixbuf* _tmp64_;
- gint _tmp65_;
- gint _tmp66_;
- gint y = 0;
- GdkRectangle _tmp67_;
- gint _tmp68_;
- GdkPixbuf* _tmp69_;
- gint _tmp70_;
- gint _tmp71_;
- gint _tmp72_;
- gint _tmp73_;
- GdkPixbuf* _tmp74_;
- gint _tmp75_;
- gint _tmp76_;
- GdkPixbuf* _tmp77_;
- gint _tmp78_;
- gint _tmp79_;
-#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp60_ = scaled_rect;
-#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp61_ = _tmp60_.x;
-#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp62_ = scaled_rect;
-#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp63_ = _tmp62_.width;
-#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp64_ = trinket;
-#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp65_ = gdk_pixbuf_get_width (_tmp64_);
-#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp66_ = _tmp65_;
-#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = ((_tmp61_ + _tmp63_) - _tmp66_) - EDITING_HOST_PAGE_TRINKET_PADDING;
-#line 1883 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp67_ = scaled_rect;
-#line 1883 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp68_ = _tmp67_.y;
-#line 1883 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = _tmp68_ + EDITING_HOST_PAGE_TRINKET_PADDING;
-#line 1884 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp69_ = trinket;
-#line 1884 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp70_ = x;
-#line 1884 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp71_ = y;
-#line 1884 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp69_, (gdouble) _tmp70_, (gdouble) _tmp71_);
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp72_ = x;
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp73_ = y;
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp74_ = trinket;
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp75_ = gdk_pixbuf_get_width (_tmp74_);
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp76_ = _tmp75_;
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp77_ = trinket;
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp78_ = gdk_pixbuf_get_height (_tmp77_);
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp79_ = _tmp78_;
-#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_rectangle (ctx, (gdouble) _tmp72_, (gdouble) _tmp73_, (gdouble) _tmp76_, (gdouble) _tmp79_);
-#line 1886 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_fill (ctx);
-#line 12545 "PhotoPage.c"
- }
-#line 1889 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp80_ = editing_host_page_get_bottom_right_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE);
-#line 1889 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (trinket);
-#line 1889 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- trinket = _tmp80_;
-#line 1890 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp81_ = trinket;
-#line 1890 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp81_ != NULL) {
-#line 12557 "PhotoPage.c"
- gint x = 0;
- GdkRectangle _tmp82_;
- gint _tmp83_;
- GdkRectangle _tmp84_;
- gint _tmp85_;
- GdkPixbuf* _tmp86_;
- gint _tmp87_;
- gint _tmp88_;
- gint y = 0;
- GdkRectangle _tmp89_;
- gint _tmp90_;
- GdkRectangle _tmp91_;
- gint _tmp92_;
- GdkPixbuf* _tmp93_;
- gint _tmp94_;
- gint _tmp95_;
- GdkPixbuf* _tmp96_;
- gint _tmp97_;
- gint _tmp98_;
- gint _tmp99_;
- gint _tmp100_;
- GdkPixbuf* _tmp101_;
- gint _tmp102_;
- gint _tmp103_;
- GdkPixbuf* _tmp104_;
- gint _tmp105_;
- gint _tmp106_;
-#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp82_ = scaled_rect;
-#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp83_ = _tmp82_.x;
-#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp84_ = scaled_rect;
-#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp85_ = _tmp84_.width;
-#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp86_ = trinket;
-#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp87_ = gdk_pixbuf_get_width (_tmp86_);
-#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp88_ = _tmp87_;
-#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = ((_tmp83_ + _tmp85_) - _tmp88_) - EDITING_HOST_PAGE_TRINKET_PADDING;
-#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp89_ = scaled_rect;
-#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp90_ = _tmp89_.y;
-#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp91_ = scaled_rect;
-#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp92_ = _tmp91_.height;
-#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp93_ = trinket;
-#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp94_ = gdk_pixbuf_get_height (_tmp93_);
-#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp95_ = _tmp94_;
-#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = ((_tmp90_ + _tmp92_) - _tmp95_) - EDITING_HOST_PAGE_TRINKET_PADDING;
-#line 1893 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp96_ = trinket;
-#line 1893 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp97_ = x;
-#line 1893 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp98_ = y;
-#line 1893 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp96_, (gdouble) _tmp97_, (gdouble) _tmp98_);
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp99_ = x;
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp100_ = y;
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp101_ = trinket;
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp102_ = gdk_pixbuf_get_width (_tmp101_);
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp103_ = _tmp102_;
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp104_ = trinket;
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp105_ = gdk_pixbuf_get_height (_tmp104_);
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp106_ = _tmp105_;
-#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_rectangle (ctx, (gdouble) _tmp99_, (gdouble) _tmp100_, (gdouble) _tmp103_, (gdouble) _tmp106_);
-#line 1895 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cairo_fill (ctx);
-#line 12645 "PhotoPage.c"
- }
-#line 1838 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (trinket);
-#line 12649 "PhotoPage.c"
-}
-
-
-gboolean
-editing_host_page_is_rotate_available (EditingHostPage* self,
- Photo* photo)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 1899 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 1899 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_PHOTO (photo), FALSE);
-#line 1900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->photo_missing;
-#line 1900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = !_tmp0_;
-#line 1900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 12669 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_rotate (EditingHostPage* self,
- Rotation rotation,
- const gchar* name,
- const gchar* description)
-{
- Dimensions _tmp0_ = {0};
- RotateSingleCommand* command = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_;
- RotateSingleCommand* _tmp3_;
- RotateSingleCommand* _tmp4_;
- CommandManager* _tmp5_;
- CommandManager* _tmp6_;
- RotateSingleCommand* _tmp7_;
-#line 1903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (name != NULL);
-#line 1903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (description != NULL);
-#line 1904 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1906 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 1906 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE);
-#line 1908 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (self)) {
-#line 1909 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12704 "PhotoPage.c"
- }
-#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = editing_host_page_get_photo (self);
-#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = rotate_single_command_new (_tmp2_, rotation, name, description);
-#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp4_;
-#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = command;
-#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command));
-#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp6_);
-#line 1903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 12730 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_rotate_clockwise (EditingHostPage* self)
-{
-#line 1916 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1917 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rotate (self, ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP);
-#line 12741 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_rotate_counterclockwise (EditingHostPage* self)
-{
-#line 1920 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1921 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rotate (self, ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP);
-#line 12752 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_flip_horizontally (EditingHostPage* self)
-{
-#line 1924 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1925 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rotate (self, ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, "");
-#line 12763 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_flip_vertically (EditingHostPage* self)
-{
-#line 1928 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1929 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_rotate (self, ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, "");
-#line 12774 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_revert (EditingHostPage* self)
-{
- gboolean _tmp0_;
- Dimensions _tmp1_ = {0};
- Photo* _tmp2_;
- Photo* _tmp3_;
- gboolean _tmp4_;
- RevertSingleCommand* command = NULL;
- Photo* _tmp14_;
- Photo* _tmp15_;
- RevertSingleCommand* _tmp16_;
- RevertSingleCommand* _tmp17_;
- CommandManager* _tmp18_;
- CommandManager* _tmp19_;
- RevertSingleCommand* _tmp20_;
-#line 1932 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1933 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->photo_missing;
-#line 1933 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 1934 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12802 "PhotoPage.c"
- }
-#line 1936 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp1_, 0, 0);
-#line 1936 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp1_, FALSE);
-#line 1938 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (self)) {
-#line 1939 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12812 "PhotoPage.c"
- }
-#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = editing_host_page_get_photo (self);
-#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = photo_has_editable (_tmp3_);
-#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_) {
-#line 12824 "PhotoPage.c"
- AppWindow* _tmp5_;
- AppWindow* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- GeeCollection* _tmp9_;
- GeeCollection* _tmp10_;
- gboolean _tmp11_;
- Photo* _tmp12_;
- Photo* _tmp13_;
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = app_window_get_instance ();
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = view_collection_get_sources (_tmp8_);
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = !revert_editable_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), _tmp10_);
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp11_) {
-#line 1944 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12858 "PhotoPage.c"
- }
-#line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = editing_host_page_get_photo (self);
-#line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo_revert_to_master (_tmp13_, TRUE);
-#line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 12868 "PhotoPage.c"
- }
-#line 1950 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 1952 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, FALSE);
-#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = editing_host_page_get_photo (self);
-#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = revert_single_command_new (_tmp15_);
-#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp17_;
-#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_;
-#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = command;
-#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_COMMAND, Command));
-#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp19_);
-#line 1932 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 12898 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_edit_title (EditingHostPage* self)
-{
- LibraryPhoto* item = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean _tmp2_;
- EditTitleDialog* edit_title_dialog = NULL;
- LibraryPhoto* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- EditTitleDialog* _tmp8_;
- EditTitleDialog* _tmp9_;
- gchar* new_title = NULL;
- EditTitleDialog* _tmp10_;
- gchar* _tmp11_;
- const gchar* _tmp12_;
- EditTitleCommand* command = NULL;
- LibraryPhoto* _tmp13_;
- const gchar* _tmp14_;
- EditTitleCommand* _tmp15_;
- CommandManager* _tmp16_;
- CommandManager* _tmp17_;
- EditTitleCommand* _tmp18_;
-#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_LIBRARY_PHOTO);
-#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 12938 "PhotoPage.c"
- Photo* _tmp3_;
- LibraryPhoto* _tmp4_;
-#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = editing_host_page_get_photo (self);
-#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp3_) : NULL;
-#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_ == NULL) {
-#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 12949 "PhotoPage.c"
- }
-#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (item);
-#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- item = _tmp4_;
-#line 12955 "PhotoPage.c"
- } else {
-#line 1963 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (item);
-#line 1963 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12961 "PhotoPage.c"
- }
-#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = item;
-#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = edit_title_dialog_new (_tmp7_);
-#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp7_);
-#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- edit_title_dialog = _tmp9_;
-#line 1966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = edit_title_dialog;
-#line 1966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = edit_title_dialog_execute (_tmp10_);
-#line 1966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- new_title = _tmp11_;
-#line 1967 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = new_title;
-#line 1967 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp12_ == NULL) {
-#line 1968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (new_title);
-#line 1968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _text_entry_dialog_mediator_unref0 (edit_title_dialog);
-#line 1968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (item);
-#line 1968 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 12995 "PhotoPage.c"
- }
-#line 1970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = item;
-#line 1970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = new_title;
-#line 1970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = edit_title_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource), _tmp14_);
-#line 1970 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp15_;
-#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = command;
-#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_COMMAND, Command));
-#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp17_);
-#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (new_title);
-#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _text_entry_dialog_mediator_unref0 (edit_title_dialog);
-#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (item);
-#line 13023 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_edit_comment (EditingHostPage* self)
-{
- LibraryPhoto* item = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean _tmp2_;
- EditCommentDialog* edit_comment_dialog = NULL;
- LibraryPhoto* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- EditCommentDialog* _tmp8_;
- EditCommentDialog* _tmp9_;
- gchar* new_comment = NULL;
- EditCommentDialog* _tmp10_;
- gchar* _tmp11_;
- const gchar* _tmp12_;
- EditCommentCommand* command = NULL;
- LibraryPhoto* _tmp13_;
- const gchar* _tmp14_;
- EditCommentCommand* _tmp15_;
- CommandManager* _tmp16_;
- CommandManager* _tmp17_;
- EditCommentCommand* _tmp18_;
-#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_LIBRARY_PHOTO);
-#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 13063 "PhotoPage.c"
- Photo* _tmp3_;
- LibraryPhoto* _tmp4_;
-#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = editing_host_page_get_photo (self);
-#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp3_) : NULL;
-#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_ == NULL) {
-#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 13074 "PhotoPage.c"
- }
-#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (item);
-#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- item = _tmp4_;
-#line 13080 "PhotoPage.c"
- } else {
-#line 1979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (item);
-#line 1979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 13086 "PhotoPage.c"
- }
-#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = item;
-#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = edit_comment_dialog_new (_tmp7_, FALSE);
-#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp7_);
-#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- edit_comment_dialog = _tmp9_;
-#line 1982 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = edit_comment_dialog;
-#line 1982 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = edit_comment_dialog_execute (_tmp10_);
-#line 1982 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- new_comment = _tmp11_;
-#line 1983 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = new_comment;
-#line 1983 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp12_ == NULL) {
-#line 1984 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (new_comment);
-#line 1984 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
-#line 1984 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (item);
-#line 1984 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 13120 "PhotoPage.c"
- }
-#line 1986 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = item;
-#line 1986 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = new_comment;
-#line 1986 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = edit_comment_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource), _tmp14_);
-#line 1986 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp15_;
-#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = command;
-#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_COMMAND, Command));
-#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp17_);
-#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (new_comment);
-#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
-#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (item);
-#line 13148 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_adjust_date_time (EditingHostPage* self)
-{
- AdjustDateTimeDialog* dialog = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
- AdjustDateTimeDialog* _tmp2_;
- AdjustDateTimeDialog* _tmp3_;
- gint64 time_shift = 0LL;
- gboolean keep_relativity = FALSE;
- gboolean modify_originals = FALSE;
- AdjustDateTimeDialog* _tmp4_;
- gint64 _tmp5_ = 0LL;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_;
-#line 1990 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 1991 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (self)) {
-#line 1992 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 13174 "PhotoPage.c"
- }
-#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = adjust_date_time_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATEABLE, Dateable), 1, !G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_DIRECT_PHOTO_PAGE), FALSE, FALSE);
-#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp2_);
-#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dialog = _tmp3_;
-#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = dialog;
-#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = adjust_date_time_dialog_execute (_tmp4_, &_tmp5_, &_tmp6_, &_tmp7_);
-#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- time_shift = _tmp5_;
-#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- keep_relativity = _tmp6_;
-#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- modify_originals = _tmp7_;
-#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp8_) {
-#line 13202 "PhotoPage.c"
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- GeeList* _tmp11_;
- GeeList* _tmp12_;
- AdjustDateTimePhotoCommand* command = NULL;
- Photo* _tmp13_;
- Photo* _tmp14_;
- gint64 _tmp15_;
- gboolean _tmp16_;
- AdjustDateTimePhotoCommand* _tmp17_;
- AdjustDateTimePhotoCommand* _tmp18_;
- CommandManager* _tmp19_;
- CommandManager* _tmp20_;
- AdjustDateTimePhotoCommand* _tmp21_;
-#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = view_collection_get_selected (_tmp10_);
-#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = editing_host_page_get_photo (self);
-#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = time_shift;
-#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = modify_originals;
-#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = adjust_date_time_photo_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATEABLE, Dateable), _tmp15_, _tmp16_);
-#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _tmp17_;
-#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp14_);
-#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp18_;
-#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = _tmp19_;
-#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = command;
-#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_COMMAND, Command));
-#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp20_);
-#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 13257 "PhotoPage.c"
- }
-#line 1990 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (dialog);
-#line 13261 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_set_background (EditingHostPage* self)
-{
-#line 2007 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (self)) {
-#line 13272 "PhotoPage.c"
- SetBackgroundPhotoDialog* dialog = NULL;
- SetBackgroundPhotoDialog* _tmp0_;
- gboolean desktop = FALSE;
- gboolean screensaver = FALSE;
- SetBackgroundPhotoDialog* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_;
-#line 2009 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = set_background_photo_dialog_new ();
-#line 2009 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp0_);
-#line 2009 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dialog = _tmp0_;
-#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = dialog;
-#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = set_background_photo_dialog_execute (_tmp1_, &_tmp2_, &_tmp3_);
-#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- desktop = _tmp2_;
-#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- screensaver = _tmp3_;
-#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_) {
-#line 13297 "PhotoPage.c"
- AppWindow* _tmp5_;
- AppWindow* _tmp6_;
- Photo* _tmp7_;
- Photo* _tmp8_;
- gboolean _tmp9_;
- gboolean _tmp10_;
- AppWindow* _tmp11_;
- AppWindow* _tmp12_;
-#line 2012 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = app_window_get_instance ();
-#line 2012 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2012 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE_WINDOW, PageWindow));
-#line 2012 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = editing_host_page_get_photo (self);
-#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = desktop;
-#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = screensaver;
-#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- desktop_integration_set_background (_tmp8_, _tmp9_, _tmp10_);
-#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 2014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = app_window_get_instance ();
-#line 2014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 2014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PAGE_WINDOW, PageWindow));
-#line 2014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 13334 "PhotoPage.c"
- }
-#line 2008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (dialog);
-#line 13338 "PhotoPage.c"
- }
-}
-
-
-static void
-_editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 2024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_rotate_counterclockwise ((EditingHostPage*) self);
-#line 13349 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_ctrl_pressed (Page* base,
- GdkEventKey* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- GtkToolButton* _tmp0_;
- GtkToolButton* _tmp1_;
- GtkToolButton* _tmp2_;
- GtkToolButton* _tmp3_;
- guint _tmp4_;
- GtkToolButton* _tmp5_;
- EditingToolsEditingTool* _tmp6_;
-#line 2019 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 2020 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->rotate_button;
-#line 2020 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (_tmp0_, RESOURCES_COUNTERCLOCKWISE);
-#line 2021 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->rotate_button;
-#line 2021 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_label (_tmp1_, RESOURCES_ROTATE_CCW_LABEL);
-#line 2022 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->rotate_button;
-#line 2022 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CCW_TOOLTIP);
-#line 2023 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->rotate_button;
-#line 2023 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("clicked", gtk_tool_button_get_type (), &_tmp4_, NULL, FALSE);
-#line 2023 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked, self);
-#line 2024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->rotate_button;
-#line 2024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp5_, "clicked", (GCallback) _editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked, self, 0);
-#line 2026 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->current_tool;
-#line 2026 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp6_ == NULL) {
-#line 2027 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_swap_out_original (self);
-#line 13396 "PhotoPage.c"
- }
-#line 2029 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = PAGE_CLASS (editing_host_page_parent_class)->on_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event);
-#line 2029 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 13402 "PhotoPage.c"
-}
-
-
-static gboolean
-editing_host_page_real_on_ctrl_released (Page* base,
- GdkEventKey* event)
-{
- EditingHostPage * self;
- gboolean result = FALSE;
- GtkToolButton* _tmp0_;
- GtkToolButton* _tmp1_;
- GtkToolButton* _tmp2_;
- GtkToolButton* _tmp3_;
- guint _tmp4_;
- GtkToolButton* _tmp5_;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- EditingToolsEditingTool* _tmp8_;
-#line 2032 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 2033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->rotate_button;
-#line 2033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_icon_name (_tmp0_, RESOURCES_CLOCKWISE);
-#line 2034 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->rotate_button;
-#line 2034 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_button_set_label (_tmp1_, RESOURCES_ROTATE_CW_LABEL);
-#line 2035 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->rotate_button;
-#line 2035 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP);
-#line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->rotate_button;
-#line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("clicked", gtk_tool_button_get_type (), &_tmp4_, NULL, FALSE);
-#line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked, self);
-#line 2037 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = self->priv->rotate_button;
-#line 2037 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp5_, "clicked", (GCallback) _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked, self, 0);
-#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = self->priv->current_tool;
-#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp8_ == NULL) {
-#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = page_get_shift_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 13451 "PhotoPage.c"
- } else {
-#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = FALSE;
-#line 13455 "PhotoPage.c"
- }
-#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp7_) {
-#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = !page_get_alt_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 13461 "PhotoPage.c"
- } else {
-#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = FALSE;
-#line 13465 "PhotoPage.c"
- }
-#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp6_) {
-#line 2040 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_swap_in_original (self);
-#line 13471 "PhotoPage.c"
- }
-#line 2042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = PAGE_CLASS (editing_host_page_parent_class)->on_ctrl_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event);
-#line 2042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 13477 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_tool_button_toggled (EditingHostPage* self,
- GtkToggleToolButton* toggle,
- EditingToolsEditingToolFactory factory)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- gboolean _tmp2_;
- gboolean deactivating_only = FALSE;
- Dimensions _tmp4_ = {0};
- gboolean _tmp5_;
- GtkToggleToolButton* _tmp6_;
- EditingToolsEditingTool* tool = NULL;
- EditingToolsEditingTool* _tmp7_;
- EditingToolsEditingTool* _tmp8_;
- EditingToolsEditingTool* _tmp9_;
- EditingToolsEditingTool* _tmp10_;
- EditingToolsEditingTool* _tmp11_;
- EditingToolsEditingTool* _tmp12_;
- EditingToolsEditingTool* _tmp13_;
-#line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GTK_IS_TOGGLE_TOOL_BUTTON (toggle));
-#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = gtk_toggle_tool_button_get_active (toggle);
-#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!_tmp2_) {
-#line 13511 "PhotoPage.c"
- GtkToggleToolButton* _tmp3_;
-#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->current_editing_toggle;
-#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _tmp3_ == toggle;
-#line 13517 "PhotoPage.c"
- } else {
-#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 13521 "PhotoPage.c"
- }
-#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- deactivating_only = _tmp0_;
-#line 2049 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp4_, 0, 0);
-#line 2049 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp4_, FALSE);
-#line 2051 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = deactivating_only;
-#line 2051 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp5_) {
-#line 2052 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_restore_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2053 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 13537 "PhotoPage.c"
- }
-#line 2056 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_suspend_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2058 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _g_object_ref0 (toggle);
-#line 2058 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->current_editing_toggle);
-#line 2058 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->current_editing_toggle = _tmp6_;
-#line 2061 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = factory ();
-#line 2061 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool = _tmp7_;
-#line 2062 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = tool;
-#line 2062 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp8_, "activated", (GCallback) _editing_host_page_on_tool_activated_editing_tools_editing_tool_activated, self, 0);
-#line 2063 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = tool;
-#line 2063 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp9_, "deactivated", (GCallback) _editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated, self, 0);
-#line 2064 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = tool;
-#line 2064 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp10_, "applied", (GCallback) _editing_host_page_on_tool_applied_editing_tools_editing_tool_applied, self, 0);
-#line 2065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = tool;
-#line 2065 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp11_, "cancelled", (GCallback) _editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled, self, 0);
-#line 2066 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = tool;
-#line 2066 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (_tmp12_, "aborted", (GCallback) _editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted, self, 0);
-#line 2068 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = tool;
-#line 2068 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_activate_tool (self, _tmp13_);
-#line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_editing_tool_unref0 (tool);
-#line 13577 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_tool_activated (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
- GtkScale* _tmp1_;
- GtkToggleToolButton* _tmp2_;
-#line 2071 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2072 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_editing_toggle;
-#line 2072 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp0_ != NULL, "current_editing_toggle != null");
-#line 2073 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->zoom_slider;
-#line 2073 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 2074 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->current_editing_toggle;
-#line 2074 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toggle_tool_button_set_active (_tmp2_, TRUE);
-#line 13601 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_tool_deactivated (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
- GtkScale* _tmp1_;
- GtkToggleToolButton* _tmp2_;
-#line 2077 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2078 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_editing_toggle;
-#line 2078 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp0_ != NULL, "current_editing_toggle != null");
-#line 2079 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->zoom_slider;
-#line 2079 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 2080 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->current_editing_toggle;
-#line 2080 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toggle_tool_button_set_active (_tmp2_, FALSE);
-#line 13625 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_tool_applied (EditingHostPage* self,
- Command* command,
- GdkPixbuf* new_pixbuf,
- Dimensions* new_max_dim,
- gboolean needs_improvement)
-{
- Dimensions _tmp0_;
-#line 2083 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2083 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail ((command == NULL) || IS_COMMAND (command));
-#line 2083 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail ((new_pixbuf == NULL) || GDK_IS_PIXBUF (new_pixbuf));
-#line 2083 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (new_max_dim != NULL);
-#line 2085 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = *new_max_dim;
-#line 2085 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, command, new_pixbuf, &_tmp0_, needs_improvement);
-#line 13649 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_tool_cancelled (EditingHostPage* self)
-{
- Dimensions _tmp0_ = {0};
-#line 2088 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2089 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 2089 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE);
-#line 2091 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_restore_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 2092 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 13667 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_tool_aborted (EditingHostPage* self)
-{
- Dimensions _tmp0_ = {0};
-#line 2095 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2096 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 2096 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE);
-#line 2097 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_set_photo_missing (self, TRUE);
-#line 13683 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_toggle_crop (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
- GtkToggleToolButton* _tmp1_;
-#line 2100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->crop_button;
-#line 2101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->crop_button;
-#line 2101 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toggle_tool_button_set_active (_tmp0_, !gtk_toggle_tool_button_get_active (_tmp1_));
-#line 13700 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_toggle_straighten (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
- GtkToggleToolButton* _tmp1_;
-#line 2104 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->straighten_button;
-#line 2105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->straighten_button;
-#line 2105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toggle_tool_button_set_active (_tmp0_, !gtk_toggle_tool_button_get_active (_tmp1_));
-#line 13717 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_toggle_redeye (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
- GtkToggleToolButton* _tmp1_;
-#line 2108 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->redeye_button;
-#line 2109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->redeye_button;
-#line 2109 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toggle_tool_button_set_active (_tmp0_, !gtk_toggle_tool_button_get_active (_tmp1_));
-#line 13734 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_toggle_adjust (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
- GtkToggleToolButton* _tmp1_;
-#line 2112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2113 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->adjust_button;
-#line 2113 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->adjust_button;
-#line 2113 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_toggle_tool_button_set_active (_tmp0_, !gtk_toggle_tool_button_get_active (_tmp1_));
-#line 13751 "PhotoPage.c"
-}
-
-
-static EditingToolsEditingTool*
-_editing_tools_straighten_tool_factory_editing_tools_editing_tool_factory (void)
-{
- EditingToolsEditingTool* result;
- result = editing_tools_straighten_tool_factory ();
-#line 2117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 13762 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_straighten_toggled (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
-#line 2116 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2117 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->straighten_button;
-#line 2117 "/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 13776 "PhotoPage.c"
-}
-
-
-static EditingToolsEditingTool*
-_editing_tools_crop_tool_factory_editing_tools_editing_tool_factory (void)
-{
- EditingToolsEditingTool* result;
- result = editing_tools_crop_tool_factory ();
-#line 2121 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 13787 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_crop_toggled (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
-#line 2120 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2121 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->crop_button;
-#line 2121 "/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 13801 "PhotoPage.c"
-}
-
-
-static EditingToolsEditingTool*
-_editing_tools_redeye_tool_factory_editing_tools_editing_tool_factory (void)
-{
- EditingToolsEditingTool* result;
- result = editing_tools_redeye_tool_factory ();
-#line 2125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 13812 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_redeye_toggled (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
-#line 2124 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2125 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->redeye_button;
-#line 2125 "/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 13826 "PhotoPage.c"
-}
-
-
-static EditingToolsEditingTool*
-_editing_tools_adjust_tool_factory_editing_tools_editing_tool_factory (void)
-{
- EditingToolsEditingTool* result;
- result = editing_tools_adjust_tool_factory ();
-#line 2129 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 13837 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_on_adjust_toggled (EditingHostPage* self)
-{
- GtkToggleToolButton* _tmp0_;
-#line 2128 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2129 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->adjust_button;
-#line 2129 "/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 13851 "PhotoPage.c"
-}
-
-
-gboolean
-editing_host_page_is_enhance_available (EditingHostPage* self,
- Photo* photo)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 2132 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 2132 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_PHOTO (photo), FALSE);
-#line 2133 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->photo_missing;
-#line 2133 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = !_tmp0_;
-#line 2133 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 13871 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_enhance (EditingHostPage* self)
-{
- EditingToolsEditingTool* _tmp0_;
- EditingToolsAdjustTool* adjust_tool = NULL;
- EditingToolsEditingTool* _tmp2_;
- EditingToolsAdjustTool* _tmp3_;
- EditingToolsAdjustTool* _tmp4_;
- EnhanceSingleCommand* command = NULL;
- Photo* _tmp6_;
- Photo* _tmp7_;
- EnhanceSingleCommand* _tmp8_;
- EnhanceSingleCommand* _tmp9_;
- CommandManager* _tmp10_;
- CommandManager* _tmp11_;
- EnhanceSingleCommand* _tmp12_;
-#line 2136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 2140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, EDITING_TOOLS_TYPE_ADJUST_TOOL)) {
-#line 13897 "PhotoPage.c"
- Dimensions _tmp1_ = {0};
-#line 2141 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp1_, 0, 0);
-#line 2141 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp1_, FALSE);
-#line 2143 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 13905 "PhotoPage.c"
- }
-#line 2146 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (self)) {
-#line 2147 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 13911 "PhotoPage.c"
- }
-#line 2149 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = self->priv->current_tool;
-#line 2149 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _editing_tools_editing_tool_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, EDITING_TOOLS_TYPE_ADJUST_TOOL) ? ((EditingToolsAdjustTool*) _tmp2_) : NULL);
-#line 2149 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- adjust_tool = _tmp3_;
-#line 2150 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = adjust_tool;
-#line 2150 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_ != NULL) {
-#line 13923 "PhotoPage.c"
- EditingToolsAdjustTool* _tmp5_;
-#line 2151 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = adjust_tool;
-#line 2151 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_tools_adjust_tool_enhance (_tmp5_);
-#line 2153 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_editing_tool_unref0 (adjust_tool);
-#line 2153 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 13933 "PhotoPage.c"
- }
-#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = editing_host_page_get_photo (self);
-#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = enhance_single_command_new (_tmp7_);
-#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp9_;
-#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = command;
-#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
-#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp11_);
-#line 2136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 2136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_editing_tool_unref0 (adjust_tool);
-#line 13961 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_copy_adjustments (EditingHostPage* self)
-{
- Photo* _tmp0_;
- Photo* _tmp1_;
- PixelTransformationBundle* _tmp2_;
- PixelTransformationBundle* _tmp3_;
-#line 2160 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2161 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (self)) {
-#line 2162 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 13978 "PhotoPage.c"
- }
-#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (self);
-#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = photo_get_color_adjustments (_tmp1_);
-#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- pixel_transformation_bundle_set_copied_color_adjustments (_tmp3_);
-#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _pixel_transformation_bundle_unref0 (_tmp3_);
-#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2164 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE);
-#line 13996 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_on_paste_adjustments (EditingHostPage* self)
-{
- PixelTransformationBundle* copied_adjustments = NULL;
- PixelTransformationBundle* _tmp0_;
- gboolean _tmp1_ = FALSE;
- AdjustColorsSingleCommand* command = NULL;
- Photo* _tmp3_;
- Photo* _tmp4_;
- PixelTransformationBundle* _tmp5_;
- AdjustColorsSingleCommand* _tmp6_;
- AdjustColorsSingleCommand* _tmp7_;
- CommandManager* _tmp8_;
- CommandManager* _tmp9_;
- AdjustColorsSingleCommand* _tmp10_;
-#line 2167 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2168 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = pixel_transformation_bundle_get_copied_color_adjustments ();
-#line 2168 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- copied_adjustments = _tmp0_;
-#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (self)) {
-#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = TRUE;
-#line 14025 "PhotoPage.c"
- } else {
- PixelTransformationBundle* _tmp2_;
-#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = copied_adjustments;
-#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp2_ == NULL;
-#line 14032 "PhotoPage.c"
- }
-#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_) {
-#line 2170 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _pixel_transformation_bundle_unref0 (copied_adjustments);
-#line 2170 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 14040 "PhotoPage.c"
- }
-#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = editing_host_page_get_photo (self);
-#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = copied_adjustments;
-#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = adjust_colors_single_command_new (_tmp4_, _tmp5_, RESOURCES_PASTE_ADJUSTMENTS_LABEL, RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP);
-#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp7_;
-#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = command;
-#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command));
-#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp9_);
-#line 2167 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 2167 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _pixel_transformation_bundle_unref0 (copied_adjustments);
-#line 14070 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_place_tool_window (EditingHostPage* self)
-{
- EditingToolsEditingTool* _tmp0_;
- EditingToolsEditingToolWindow* tool_window = NULL;
- EditingToolsEditingTool* _tmp1_;
- EditingToolsEditingToolWindow* _tmp2_;
- EditingToolsEditingToolWindow* _tmp3_;
- EditingToolsEditingToolWindow* _tmp4_;
- AppWindow* _tmp5_;
- AppWindow* _tmp6_;
- EditingToolsEditingToolWindow* _tmp7_;
- EditingToolsEditingToolWindow* _tmp8_;
- GtkAllocation tool_alloc = {0};
- EditingToolsEditingToolWindow* _tmp9_;
- GtkAllocation _tmp10_ = {0};
- gint x = 0;
- gint y = 0;
- GeeHashMap* _tmp11_;
- EditingToolsEditingTool* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gboolean _tmp16_;
- GdkScreen* screen = NULL;
- GtkWindow* _tmp84_;
- GtkWindow* _tmp85_;
- GdkScreen* _tmp86_;
- GdkScreen* _tmp87_;
- GdkScreen* _tmp88_;
- gint _tmp89_;
- GdkScreen* _tmp90_;
- GtkAllocation _tmp91_;
- gint _tmp92_;
- gint _tmp93_;
- GdkScreen* _tmp94_;
- GtkAllocation _tmp95_;
- gint _tmp96_;
- EditingToolsEditingToolWindow* _tmp97_;
- gint _tmp98_;
- gint _tmp99_;
- EditingToolsEditingToolWindow* _tmp100_;
- EditingToolsEditingToolWindow* _tmp101_;
-#line 2177 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2178 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 2178 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ == NULL) {
-#line 2179 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 14125 "PhotoPage.c"
- }
-#line 2181 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = self->priv->current_tool;
-#line 2181 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = editing_tools_editing_tool_get_tool_window (_tmp1_);
-#line 2181 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_window = _tmp2_;
-#line 2182 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = tool_window;
-#line 2182 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_ == NULL) {
-#line 2183 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (tool_window);
-#line 2183 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 14141 "PhotoPage.c"
- }
-#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = tool_window;
-#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = app_window_get_instance ();
-#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow));
-#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 2187 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = tool_window;
-#line 2187 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
-#line 2188 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = tool_window;
-#line 2188 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 2191 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = tool_window;
-#line 2191 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), &_tmp10_);
-#line 2191 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- tool_alloc = _tmp10_;
-#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = self->priv->last_locations;
-#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = self->priv->current_tool;
-#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_->name;
-#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = g_strconcat (_tmp13_, "_x", NULL);
-#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_);
-#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp15_);
-#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp16_) {
-#line 14183 "PhotoPage.c"
- GeeHashMap* _tmp17_;
- EditingToolsEditingTool* _tmp18_;
- const gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gpointer _tmp22_;
- GeeHashMap* _tmp23_;
- EditingToolsEditingTool* _tmp24_;
- const gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gpointer _tmp28_;
-#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = self->priv->last_locations;
-#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = self->priv->current_tool;
-#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_->name;
-#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = g_strconcat (_tmp19_, "_x", NULL);
-#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = _tmp20_;
-#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_);
-#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = (gint) ((gintptr) _tmp22_);
-#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp21_);
-#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = self->priv->last_locations;
-#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = self->priv->current_tool;
-#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = _tmp24_->name;
-#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = g_strconcat (_tmp25_, "_y", NULL);
-#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = _tmp26_;
-#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp27_);
-#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = (gint) ((gintptr) _tmp28_);
-#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp27_);
-#line 14228 "PhotoPage.c"
- } else {
- GtkWindow* _tmp29_;
- GtkWindow* _tmp30_;
- AppWindow* _tmp31_;
- AppWindow* _tmp32_;
- gboolean _tmp33_;
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = _tmp29_;
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = app_window_get_instance ();
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = _tmp31_;
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp33_ = _tmp30_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_window_get_type (), GtkWindow);
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp32_);
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp30_);
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp33_) {
-#line 14251 "PhotoPage.c"
- gint rx = 0;
- gint ry = 0;
- GtkWindow* _tmp34_;
- GtkWindow* _tmp35_;
- GdkWindow* _tmp36_;
- gint _tmp37_ = 0;
- gint _tmp38_ = 0;
- GtkAllocation viewport_allocation = {0};
- GtkViewport* _tmp39_;
- GtkAllocation _tmp40_ = {0};
- gint cx = 0;
- gint cy = 0;
- gint cwidth = 0;
- gint cheight = 0;
- GtkAllocation _tmp41_;
- gint _tmp42_;
- GtkAllocation _tmp43_;
- gint _tmp44_;
- GtkAllocation _tmp45_;
- gint _tmp46_;
- GtkAllocation _tmp47_;
- gint _tmp48_;
- gint _tmp49_ = 0;
- gint _tmp58_;
- gint _tmp59_;
- gint _tmp60_;
- GtkAllocation _tmp61_;
- gint _tmp62_;
-#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp34_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp35_ = _tmp34_;
-#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp36_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget));
-#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gdk_window_get_root_origin (_tmp36_, &_tmp37_, &_tmp38_);
-#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- rx = _tmp37_;
-#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ry = _tmp38_;
-#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp35_);
-#line 2208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp39_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->viewport;
-#line 2208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), &_tmp40_);
-#line 2208 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- viewport_allocation = _tmp40_;
-#line 2211 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp41_ = viewport_allocation;
-#line 2211 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp42_ = _tmp41_.x;
-#line 2211 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cx = _tmp42_;
-#line 2212 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp43_ = viewport_allocation;
-#line 2212 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp44_ = _tmp43_.y;
-#line 2212 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cy = _tmp44_;
-#line 2213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp45_ = viewport_allocation;
-#line 2213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp46_ = _tmp45_.width;
-#line 2213 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cwidth = _tmp46_;
-#line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp47_ = viewport_allocation;
-#line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp48_ = _tmp47_.height;
-#line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- cheight = _tmp48_;
-#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_DIRECT_PHOTO_PAGE)) {
-#line 14326 "PhotoPage.c"
- gint _tmp50_;
- gint _tmp51_;
- gint _tmp52_;
- GtkAllocation _tmp53_;
- gint _tmp54_;
-#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp50_ = rx;
-#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp51_ = cx;
-#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp52_ = cwidth;
-#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp53_ = tool_alloc;
-#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp54_ = _tmp53_.width;
-#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp49_ = ((_tmp50_ + _tmp51_) + (_tmp52_ / 2)) - (_tmp54_ / 2);
-#line 14344 "PhotoPage.c"
- } else {
- gint _tmp55_;
- gint _tmp56_;
- gint _tmp57_;
-#line 2219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp55_ = rx;
-#line 2219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp56_ = cx;
-#line 2219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp57_ = cwidth;
-#line 2219 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp49_ = (_tmp55_ + _tmp56_) + (_tmp57_ / 2);
-#line 14357 "PhotoPage.c"
- }
-#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = _tmp49_;
-#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp58_ = ry;
-#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp59_ = cy;
-#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp60_ = cheight;
-#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp61_ = tool_alloc;
-#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp62_ = _tmp61_.height;
-#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = ((_tmp58_ + _tmp59_) + _tmp60_) - ((_tmp62_ / 4) * 3);
-#line 14373 "PhotoPage.c"
- } else {
- GtkWindow* _tmp63_;
- GtkWindow* _tmp64_;
- GtkAllocation toolbar_alloc = {0};
- GtkToolbar* _tmp65_;
- GtkToolbar* _tmp66_;
- GtkAllocation _tmp67_ = {0};
- GdkScreen* screen = NULL;
- GtkWindow* _tmp68_;
- GtkWindow* _tmp69_;
- GdkScreen* _tmp70_;
- GdkScreen* _tmp71_;
- GdkScreen* _tmp72_;
- GdkScreen* _tmp73_;
- GdkScreen* _tmp74_;
- GtkAllocation _tmp75_;
- gint _tmp76_;
- GtkAllocation _tmp77_;
- gint _tmp78_;
- EditingToolsEditingTool* _tmp79_;
-#line 2222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp63_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp64_ = _tmp63_;
-#line 2222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp64_, TYPE_FULLSCREEN_WINDOW), "get_container() is FullscreenWindow");
-#line 2222 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp64_);
-#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp65_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp66_ = _tmp65_;
-#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_widget_get_type (), GtkWidget), &_tmp67_);
-#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- toolbar_alloc = _tmp67_;
-#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp66_);
-#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp68_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp69_ = _tmp68_;
-#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp70_ = gtk_window_get_screen (_tmp69_);
-#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp71_ = _g_object_ref0 (_tmp70_);
-#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp72_ = _tmp71_;
-#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp69_);
-#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- screen = _tmp72_;
-#line 2230 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp73_ = screen;
-#line 2230 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = gdk_screen_get_width (_tmp73_);
-#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp74_ = screen;
-#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp75_ = toolbar_alloc;
-#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp76_ = _tmp75_.height;
-#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp77_ = tool_alloc;
-#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp78_ = _tmp77_.height;
-#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = ((gdk_screen_get_height (_tmp74_) - _tmp76_) - _tmp78_) - EDITING_HOST_PAGE_TOOL_WINDOW_SEPARATOR;
-#line 2235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp79_ = self->priv->current_tool;
-#line 2235 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp79_, EDITING_TOOLS_TYPE_ADJUST_TOOL)) {
-#line 14446 "PhotoPage.c"
- gint _tmp80_;
-#line 2236 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp80_ = x;
-#line 2236 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = (_tmp80_ * 3) / 4;
-#line 14452 "PhotoPage.c"
- } else {
- gint _tmp81_;
- GtkAllocation _tmp82_;
- gint _tmp83_;
-#line 2238 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp81_ = x;
-#line 2238 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp82_ = tool_alloc;
-#line 2238 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp83_ = _tmp82_.width;
-#line 2238 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = (_tmp81_ - _tmp83_) / 2;
-#line 14465 "PhotoPage.c"
- }
-#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (screen);
-#line 14469 "PhotoPage.c"
- }
- }
-#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp84_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp85_ = _tmp84_;
-#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp86_ = gtk_window_get_screen (_tmp85_);
-#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp87_ = _g_object_ref0 (_tmp86_);
-#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp88_ = _tmp87_;
-#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp85_);
-#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- screen = _tmp88_;
-#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp89_ = x;
-#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp90_ = screen;
-#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp91_ = tool_alloc;
-#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp92_ = _tmp91_.width;
-#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- x = CLAMP (_tmp89_, 0, gdk_screen_get_width (_tmp90_) - _tmp92_);
-#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp93_ = y;
-#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp94_ = screen;
-#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp95_ = tool_alloc;
-#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp96_ = _tmp95_.height;
-#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- y = CLAMP (_tmp93_, 0, gdk_screen_get_height (_tmp94_) - _tmp96_);
-#line 2248 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp97_ = tool_window;
-#line 2248 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp98_ = x;
-#line 2248 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp99_ = y;
-#line 2248 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_window_move (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, gtk_window_get_type (), GtkWindow), _tmp98_, _tmp99_);
-#line 2249 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp100_ = tool_window;
-#line 2249 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, gtk_widget_get_type (), GtkWidget));
-#line 2250 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp101_ = tool_window;
-#line 2250 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, gtk_window_get_type (), GtkWindow));
-#line 2177 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (screen);
-#line 2177 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (tool_window);
-#line 14526 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_on_next_photo (SinglePhotoPage* base)
-{
- EditingHostPage * self;
- Dimensions _tmp0_ = {0};
- Photo* current_photo = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_;
- DataView* current = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- Photo* _tmp5_;
- Photo* _tmp6_;
- DataView* _tmp7_;
- DataView* _tmp8_;
- DataView* _tmp9_;
- DataView* next = NULL;
- DataView* _tmp10_;
- DataView* _tmp11_;
-#line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 2254 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 2254 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE);
-#line 2256 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (self)) {
-#line 2257 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 14559 "PhotoPage.c"
- }
-#line 2259 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = editing_host_page_get_photo (self);
-#line 2259 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- current_photo = _tmp1_;
-#line 2260 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = current_photo;
-#line 2260 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp2_ != NULL, "current_photo != null");
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = editing_host_page_get_photo (self);
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = view_collection_get_view_for_source (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_SOURCE, DataSource));
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- current = _tmp8_;
-#line 2263 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = current;
-#line 2263 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp9_ == NULL) {
-#line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (current);
-#line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (current_photo);
-#line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 14597 "PhotoPage.c"
- }
-#line 2267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = current;
-#line 2267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 2267 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- next = _tmp11_;
-#line 14605 "PhotoPage.c"
- {
- gboolean _tmp12_ = FALSE;
-#line 2268 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = TRUE;
-#line 2268 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- while (TRUE) {
-#line 14612 "PhotoPage.c"
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- DataView* _tmp15_;
- DataView* _tmp16_;
- DataView* _tmp17_;
- Photo* next_photo = NULL;
- DataView* _tmp18_;
- DataSource* _tmp19_;
- Photo* _tmp20_;
- Photo* _tmp21_;
- Photo* _tmp22_;
- Photo* _tmp23_;
- Photo* _tmp24_;
-#line 2268 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!_tmp12_) {
-#line 14628 "PhotoPage.c"
- }
-#line 2268 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = FALSE;
-#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = next;
-#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = view_collection_get_next (_tmp14_, _tmp15_);
-#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next);
-#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- next = _tmp16_;
-#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp14_);
-#line 2270 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = next;
-#line 2270 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp17_ == NULL) {
-#line 2271 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 14652 "PhotoPage.c"
- }
-#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = next;
-#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = data_view_get_source (_tmp18_);
-#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO) ? ((Photo*) _tmp19_) : NULL;
-#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp20_ == NULL) {
-#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp19_);
-#line 14664 "PhotoPage.c"
- }
-#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- next_photo = _tmp20_;
-#line 2274 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = next_photo;
-#line 2274 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp21_ == NULL) {
-#line 2275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next_photo);
-#line 2275 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- continue;
-#line 14676 "PhotoPage.c"
- }
-#line 2277 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = next_photo;
-#line 2277 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = current_photo;
-#line 2277 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp22_ == _tmp23_) {
-#line 2278 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next_photo);
-#line 2278 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 14688 "PhotoPage.c"
- }
-#line 2280 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = next_photo;
-#line 2280 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_replace_photo (self, _tmp24_);
-#line 2282 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next_photo);
-#line 2282 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 14698 "PhotoPage.c"
- }
- }
-#line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (next);
-#line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (current);
-#line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (current_photo);
-#line 14707 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_real_on_previous_photo (SinglePhotoPage* base)
-{
- EditingHostPage * self;
- Dimensions _tmp0_ = {0};
- Photo* current_photo = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_;
- DataView* current = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- Photo* _tmp5_;
- Photo* _tmp6_;
- DataView* _tmp7_;
- DataView* _tmp8_;
- DataView* _tmp9_;
- DataView* previous = NULL;
- DataView* _tmp10_;
- DataView* _tmp11_;
-#line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 2287 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 2287 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE);
-#line 2289 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (self)) {
-#line 2290 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 14740 "PhotoPage.c"
- }
-#line 2292 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = editing_host_page_get_photo (self);
-#line 2292 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- current_photo = _tmp1_;
-#line 2293 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = current_photo;
-#line 2293 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp2_ != NULL, "current_photo != null");
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = editing_host_page_get_photo (self);
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = view_collection_get_view_for_source (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_SOURCE, DataSource));
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- current = _tmp8_;
-#line 2296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = current;
-#line 2296 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp9_ == NULL) {
-#line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (current);
-#line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (current_photo);
-#line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 14778 "PhotoPage.c"
- }
-#line 2300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = current;
-#line 2300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 2300 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- previous = _tmp11_;
-#line 14786 "PhotoPage.c"
- {
- gboolean _tmp12_ = FALSE;
-#line 2301 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = TRUE;
-#line 2301 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- while (TRUE) {
-#line 14793 "PhotoPage.c"
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- DataView* _tmp15_;
- DataView* _tmp16_;
- DataView* _tmp17_;
- Photo* previous_photo = NULL;
- DataView* _tmp18_;
- DataSource* _tmp19_;
- Photo* _tmp20_;
- Photo* _tmp21_;
- Photo* _tmp22_;
- Photo* _tmp23_;
- Photo* _tmp24_;
-#line 2301 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!_tmp12_) {
-#line 14809 "PhotoPage.c"
- }
-#line 2301 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = FALSE;
-#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = previous;
-#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = view_collection_get_previous (_tmp14_, _tmp15_);
-#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (previous);
-#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- previous = _tmp16_;
-#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp14_);
-#line 2303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = previous;
-#line 2303 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp17_ == NULL) {
-#line 2304 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 14833 "PhotoPage.c"
- }
-#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = previous;
-#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = data_view_get_source (_tmp18_);
-#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO) ? ((Photo*) _tmp19_) : NULL;
-#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp20_ == NULL) {
-#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp19_);
-#line 14845 "PhotoPage.c"
- }
-#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- previous_photo = _tmp20_;
-#line 2307 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = previous_photo;
-#line 2307 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp21_ == NULL) {
-#line 2308 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (previous_photo);
-#line 2308 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- continue;
-#line 14857 "PhotoPage.c"
- }
-#line 2310 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = previous_photo;
-#line 2310 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = current_photo;
-#line 2310 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp22_ == _tmp23_) {
-#line 2311 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (previous_photo);
-#line 2311 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 14869 "PhotoPage.c"
- }
-#line 2313 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = previous_photo;
-#line 2313 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_replace_photo (self, _tmp24_);
-#line 2315 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (previous_photo);
-#line 2315 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 14879 "PhotoPage.c"
- }
- }
-#line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (previous);
-#line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (current);
-#line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (current_photo);
-#line 14888 "PhotoPage.c"
-}
-
-
-gboolean
-editing_host_page_has_current_tool (EditingHostPage* self)
-{
- gboolean result = FALSE;
- EditingToolsEditingTool* _tmp0_;
-#line 2319 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE);
-#line 2320 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->current_tool;
-#line 2320 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp0_ != NULL;
-#line 2320 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 14905 "PhotoPage.c"
-}
-
-
-void
-editing_host_page_unset_view_collection (EditingHostPage* self)
-{
-#line 2323 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_EDITING_HOST_PAGE (self));
-#line 2324 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (self->priv->parent_view);
-#line 2324 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->parent_view = NULL;
-#line 14918 "PhotoPage.c"
-}
-
-
-static EditingHostPageEditingHostCanvas*
-editing_host_page_editing_host_canvas_construct (GType object_type,
- EditingHostPage* host_page)
-{
- EditingHostPageEditingHostCanvas* self = NULL;
- GtkWindow* _tmp0_;
- GtkWindow* _tmp1_;
- GtkDrawingArea* _tmp2_;
- GdkWindow* _tmp3_;
- Photo* _tmp4_;
- Photo* _tmp5_;
- cairo_t* _tmp6_;
- cairo_t* _tmp7_;
- Dimensions _tmp8_ = {0};
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
- GdkRectangle _tmp11_ = {0};
- EditingHostPage* _tmp12_;
-#line 377 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_EDITING_HOST_PAGE (host_page), NULL);
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_PAGE, Page));
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->canvas;
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = editing_host_page_get_photo (host_page);
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = single_photo_page_get_cairo_context (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_);
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = single_photo_page_get_scaled_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_scaled_pixbuf_position (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp11_);
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = (EditingHostPageEditingHostCanvas*) editing_tools_photo_canvas_construct (object_type, _tmp1_, _tmp3_, _tmp5_, _tmp7_, &_tmp8_, _tmp10_, &_tmp11_);
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _cairo_destroy0 (_tmp7_);
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 382 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _g_object_ref0 (host_page);
-#line 382 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->host_page);
-#line 382 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->host_page = _tmp12_;
-#line 377 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self;
-#line 14984 "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 14993 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_editing_host_canvas_real_repaint (EditingToolsPhotoCanvas* base)
-{
- EditingHostPageEditingHostCanvas * self;
- EditingHostPage* _tmp0_;
-#line 385 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvas);
-#line 386 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _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 15008 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_editing_host_canvas_class_init (EditingHostPageEditingHostCanvasClass * klass)
-{
-#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_editing_host_canvas_parent_class = g_type_class_peek_parent (klass);
-#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingToolsPhotoCanvasClass *) klass)->finalize = editing_host_page_editing_host_canvas_finalize;
-#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_type_class_add_private (klass, sizeof (EditingHostPageEditingHostCanvasPrivate));
-#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingToolsPhotoCanvasClass *) klass)->repaint = (void (*) (EditingToolsPhotoCanvas *)) editing_host_page_editing_host_canvas_real_repaint;
-#line 15023 "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 15032 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_editing_host_canvas_finalize (EditingToolsPhotoCanvas * obj)
-{
- EditingHostPageEditingHostCanvas * self;
-#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvas);
-#line 375 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _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 15046 "PhotoPage.c"
-}
-
-
-static GType
-editing_host_page_editing_host_canvas_get_type (void)
-{
- static volatile gsize editing_host_page_editing_host_canvas_type_id__volatile = 0;
- if (g_once_init_enter (&editing_host_page_editing_host_canvas_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingHostPageEditingHostCanvasClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_host_page_editing_host_canvas_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingHostPageEditingHostCanvas), 0, (GInstanceInitFunc) editing_host_page_editing_host_canvas_instance_init, NULL };
- GType editing_host_page_editing_host_canvas_type_id;
- editing_host_page_editing_host_canvas_type_id = g_type_register_static (EDITING_TOOLS_TYPE_PHOTO_CANVAS, "EditingHostPageEditingHostCanvas", &g_define_type_info, 0);
- g_once_init_leave (&editing_host_page_editing_host_canvas_type_id__volatile, editing_host_page_editing_host_canvas_type_id);
- }
- return editing_host_page_editing_host_canvas_type_id__volatile;
-}
-
-
-static void
-editing_host_page_class_init (EditingHostPageClass * klass)
-{
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_parent_class = g_type_class_peek_parent (klass);
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_type_class_add_private (klass, sizeof (EditingHostPagePrivate));
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_zoom_slider_key_press = (gboolean (*) (EditingHostPage *, GdkEventKey*)) editing_host_page_real_on_zoom_slider_key_press;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_increase_size = (void (*) (EditingHostPage *)) editing_host_page_real_on_increase_size;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_decrease_size = (void (*) (EditingHostPage *)) editing_host_page_real_on_decrease_size;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->save_zoom_state = (void (*) (SinglePhotoPage *)) editing_host_page_real_save_zoom_state;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->get_zoom_buffer = (ZoomBuffer* (*) (SinglePhotoPage *)) editing_host_page_real_get_zoom_buffer;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_mousewheel_up = (gboolean (*) (Page *, GdkEventScroll*)) editing_host_page_real_on_mousewheel_up;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_mousewheel_down = (gboolean (*) (Page *, GdkEventScroll*)) editing_host_page_real_on_mousewheel_down;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->restore_zoom_state = (void (*) (SinglePhotoPage *)) editing_host_page_real_restore_zoom_state;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->is_zoom_supported = (gboolean (*) (SinglePhotoPage *)) editing_host_page_real_is_zoom_supported;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->set_container = (void (*) (Page *, GtkWindow*)) editing_host_page_real_set_container;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->photo_changing = (void (*) (EditingHostPage *, Photo*)) editing_host_page_real_photo_changing;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) editing_host_page_real_realize;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) editing_host_page_real_switched_to;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->switching_from = (void (*) (Page *)) editing_host_page_real_switching_from;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->switching_to_fullscreen = (void (*) (Page *, FullscreenWindow*)) editing_host_page_real_switching_to_fullscreen;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->returning_from_fullscreen = (void (*) (Page *, FullscreenWindow*)) editing_host_page_real_returning_from_fullscreen;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->create_photo_view = (DataView* (*) (EditingHostPage *, DataSource*)) editing_host_page_real_create_photo_view;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->update_ui = (void (*) (EditingHostPage *, gboolean)) editing_host_page_real_update_ui;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->notify_photo_backing_missing = (void (*) (EditingHostPage *, Photo*, gboolean)) editing_host_page_real_notify_photo_backing_missing;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->confirm_replace_photo = (gboolean (*) (EditingHostPage *, Photo*, Photo*)) editing_host_page_real_confirm_replace_photo;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->cancel_zoom = (void (*) (SinglePhotoPage *)) editing_host_page_real_cancel_zoom;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_resize = (void (*) (Page *, GdkRectangle*)) editing_host_page_real_on_resize;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_resize_finished = (void (*) (Page *, GdkRectangle*)) editing_host_page_real_on_resize_finished;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) editing_host_page_real_update_actions;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_shift_pressed = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_shift_pressed;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_shift_released = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_shift_released;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_alt_pressed = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_alt_pressed;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_alt_released = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_alt_released;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_double_click = (gboolean (*) (EditingHostPage *, GdkEventButton*)) editing_host_page_real_on_double_click;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_left_click = (gboolean (*) (Page *, GdkEventButton*)) editing_host_page_real_on_left_click;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_left_released = (gboolean (*) (Page *, GdkEventButton*)) editing_host_page_real_on_left_released;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_right_click = (gboolean (*) (Page *, GdkEventButton*)) editing_host_page_real_on_right_click;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_motion = (gboolean (*) (Page *, GdkEventMotion*, gint, gint, GdkModifierType)) editing_host_page_real_on_motion;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_leave_notify_event = (gboolean (*) (Page *)) editing_host_page_real_on_leave_notify_event;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_move = (void (*) (Page *, GdkRectangle*)) editing_host_page_real_on_move;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_move_finished = (void (*) (Page *, GdkRectangle*)) editing_host_page_real_on_move_finished;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) editing_host_page_real_key_press_event;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->new_surface = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) editing_host_page_real_new_surface;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->updated_pixbuf = (void (*) (SinglePhotoPage *, GdkPixbuf*, SinglePhotoPageUpdateReason, Dimensions*)) editing_host_page_real_updated_pixbuf;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->get_bottom_left_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) editing_host_page_real_get_bottom_left_trinket;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->get_top_left_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) editing_host_page_real_get_top_left_trinket;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->get_top_right_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) editing_host_page_real_get_top_right_trinket;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->get_bottom_right_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) editing_host_page_real_get_bottom_right_trinket;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->paint = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) editing_host_page_real_paint;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_ctrl_pressed = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_ctrl_pressed;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_ctrl_released = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_ctrl_released;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->on_next_photo = (void (*) (SinglePhotoPage *)) editing_host_page_real_on_next_photo;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((SinglePhotoPageClass *) klass)->on_previous_photo = (void (*) (SinglePhotoPage *)) 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 15169 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_instance_init (EditingHostPage * self)
-{
- GtkToolButton* _tmp0_;
- GtkToolButton* _tmp1_;
- GeeHashMap* _tmp2_;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv = EDITING_HOST_PAGE_GET_PRIVATE (self);
-#line 391 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->parent_view = NULL;
-#line 392 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->swapped = NULL;
-#line 393 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->pixbuf_dirty = TRUE;
-#line 394 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->rotate_button = NULL;
-#line 395 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->crop_button = NULL;
-#line 396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->redeye_button = NULL;
-#line 397 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->adjust_button = NULL;
-#line 398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->straighten_button = NULL;
-#line 399 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->enhance_button = NULL;
-#line 400 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->zoom_slider = NULL;
-#line 401 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_PREVIOUS_LABEL);
-#line 401 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp0_);
-#line 401 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->prev_button = _tmp0_;
-#line 402 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_NEXT_LABEL);
-#line 402 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp1_);
-#line 402 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->next_button = _tmp1_;
-#line 403 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->current_tool = NULL;
-#line 404 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->current_editing_toggle = NULL;
-#line 405 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->cancel_editing_pixbuf = NULL;
-#line 406 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->photo_missing = FALSE;
-#line 407 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->cache = NULL;
-#line 408 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->master_cache = NULL;
-#line 409 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->dnd_handler = NULL;
-#line 410 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->enable_interactive_zoom_refresh = FALSE;
-#line 412 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->is_pan_in_progress = FALSE;
-#line 413 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->saved_slider_val = 0.0;
-#line 414 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->zoom_buffer = NULL;
-#line 415 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) 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 15239 "PhotoPage.c"
-}
-
-
-static void
-editing_host_page_finalize (GObject * obj)
-{
- EditingHostPage * self;
- SourceCollection* _tmp0_;
- guint _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- guint _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- guint _tmp7_;
-#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDITING_HOST_PAGE, EditingHostPage);
-#line 551 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->sources;
-#line 551 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 551 "/home/jens/Source/shotwell/src/PhotoPage.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) _editing_host_page_on_photos_altered_data_collection_items_altered, self);
-#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE);
-#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_host_page_on_view_contents_ordering_altered_data_collection_contents_altered, self);
-#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp3_);
-#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("ordering-changed", TYPE_DATA_COLLECTION, &_tmp7_, NULL, FALSE);
-#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed, self);
-#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 390 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 391 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (self->priv->parent_view);
-#line 392 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->swapped);
-#line 394 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->rotate_button);
-#line 395 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->crop_button);
-#line 396 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->redeye_button);
-#line 397 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->adjust_button);
-#line 398 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->straighten_button);
-#line 399 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->enhance_button);
-#line 400 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->zoom_slider);
-#line 401 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->prev_button);
-#line 402 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->next_button);
-#line 403 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _editing_tools_editing_tool_unref0 (self->priv->current_tool);
-#line 404 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->current_editing_toggle);
-#line 405 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->cancel_editing_pixbuf);
-#line 407 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->cache);
-#line 408 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->master_cache);
-#line 409 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _drag_and_drop_handler_unref0 (self->priv->dnd_handler);
-#line 414 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->zoom_buffer);
-#line 415 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _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 15325 "PhotoPage.c"
-}
-
-
-GType
-editing_host_page_get_type (void)
-{
- static volatile gsize editing_host_page_type_id__volatile = 0;
- if (g_once_init_enter (&editing_host_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingHostPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_host_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingHostPage), 0, (GInstanceInitFunc) editing_host_page_instance_init, NULL };
- GType editing_host_page_type_id;
- editing_host_page_type_id = g_type_register_static (TYPE_SINGLE_PHOTO_PAGE, "EditingHostPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&editing_host_page_type_id__volatile, editing_host_page_type_id);
- }
- return editing_host_page_type_id__volatile;
-}
-
-
-static void
-_library_photo_page_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 2364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_photo_destroyed ((LibraryPhotoPage*) self, source);
-#line 15350 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_metadata_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 2365 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_metadata_altered ((LibraryPhotoPage*) self, items);
-#line 15361 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender,
- gpointer self)
-{
-#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_external_app_changed ((LibraryPhotoPage*) self);
-#line 15371 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_export_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_export ((LibraryPhotoPage*) self);
-#line 15382 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_print ((LibraryPhotoPage*) self);
-#line 15393 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_publish ((LibraryPhotoPage*) self);
-#line 15404 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_remove_from_library ((LibraryPhotoPage*) self);
-#line 15415 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_move_to_trash ((LibraryPhotoPage*) self);
-#line 15426 "PhotoPage.c"
-}
-
-
-static void
-_single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_on_previous_photo ((SinglePhotoPage*) self);
-#line 15437 "PhotoPage.c"
-}
-
-
-static void
-_single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_on_next_photo ((SinglePhotoPage*) self);
-#line 15448 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_rotate_clockwise ((EditingHostPage*) self);
-#line 15459 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_rotate_counterclockwise ((EditingHostPage*) self);
-#line 15470 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_flip_horizontally ((EditingHostPage*) self);
-#line 15481 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_flip_vertically ((EditingHostPage*) self);
-#line 15492 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_enhance ((EditingHostPage*) self);
-#line 15503 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_copy_adjustments ((EditingHostPage*) self);
-#line 15514 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_paste_adjustments ((EditingHostPage*) self);
-#line 15525 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_toggle_crop ((EditingHostPage*) self);
-#line 15536 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_toggle_straighten ((EditingHostPage*) self);
-#line 15547 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_toggle_redeye ((EditingHostPage*) self);
-#line 15558 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_toggle_adjust ((EditingHostPage*) self);
-#line 15569 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_revert ((EditingHostPage*) self);
-#line 15580 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_edit_title ((EditingHostPage*) self);
-#line 15591 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_edit_comment ((EditingHostPage*) self);
-#line 15602 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_adjust_date_time ((EditingHostPage*) self);
-#line 15613 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_external_edit ((LibraryPhotoPage*) self);
-#line 15624 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_external_edit_raw ((LibraryPhotoPage*) self);
-#line 15635 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_send_to ((LibraryPhotoPage*) self);
-#line 15646 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_set_background ((EditingHostPage*) self);
-#line 15657 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_flag_unflag ((LibraryPhotoPage*) self);
-#line 15668 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_increase_rating ((LibraryPhotoPage*) self);
-#line 15679 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_decrease_rating ((LibraryPhotoPage*) self);
-#line 15690 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_rate_rejected ((LibraryPhotoPage*) self);
-#line 15701 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_rate_unrated ((LibraryPhotoPage*) self);
-#line 15712 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_rate_one ((LibraryPhotoPage*) self);
-#line 15723 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_rate_two ((LibraryPhotoPage*) self);
-#line 15734 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_rate_three ((LibraryPhotoPage*) self);
-#line 15745 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_rate_four ((LibraryPhotoPage*) self);
-#line 15756 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_rate_five ((LibraryPhotoPage*) self);
-#line 15767 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_increase_size ((EditingHostPage*) self);
-#line 15778 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_on_decrease_size ((EditingHostPage*) self);
-#line 15789 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_snap_zoom_to_min ((EditingHostPage*) self);
-#line 15800 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_snap_zoom_to_isomorphic ((EditingHostPage*) self);
-#line 15811 "PhotoPage.c"
-}
-
-
-static void
-_editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_snap_zoom_to_max ((EditingHostPage*) self);
-#line 15822 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_add_tags ((LibraryPhotoPage*) self);
-#line 15833 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_modify_tags ((LibraryPhotoPage*) self);
-#line 15844 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_slideshow ((LibraryPhotoPage*) self);
-#line 15855 "PhotoPage.c"
-}
-
-
-static void
-_page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_on_action_toggle ((Page*) self, action, parameter);
-#line 15866 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_display_ratings ((LibraryPhotoPage*) self, action, value);
-#line 15877 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_photos_altered ((LibraryPhotoPage*) self);
-#line 15888 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_photo_unlinking_source_collection_items_unlinking (SourceCollection* _sender,
- GeeCollection* unlinking,
- gpointer self)
-{
-#line 2359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_photo_unlinking ((LibraryPhotoPage*) self, unlinking);
-#line 15899 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_photo_relinked_source_collection_items_relinked (SourceCollection* _sender,
- GeeCollection* relinked,
- gpointer self)
-{
-#line 2360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_photo_relinked ((LibraryPhotoPage*) self, relinked);
-#line 15910 "PhotoPage.c"
-}
-
-
-LibraryPhotoPage*
-library_photo_page_construct (GType object_type)
-{
- LibraryPhotoPage * self = NULL;
- LibraryPhotoSourceCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- LibraryPhotoSourceCollection* _tmp4_;
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- LibraryPhotoPageLibraryPhotoPageViewFilter* _tmp9_;
- LibraryPhotoSourceCollection* _tmp10_;
- LibraryPhotoSourceCollection* _tmp11_;
-#line 2345 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = library_photo_global;
-#line 2345 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = (LibraryPhotoPage*) editing_host_page_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), "Photo");
-#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_photo_page_on_photos_altered_data_collection_items_altered, self, 0);
-#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp2_);
-#line 2351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = library_photo_global;
-#line 2351 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _library_photo_page_on_photo_destroyed_source_collection_item_destroyed, self, 0);
-#line 2352 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = library_photo_global;
-#line 2352 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_photo_page_on_metadata_altered_data_collection_items_altered, self, 0);
-#line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = config_facade_get_instance ();
-#line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "external-app-changed", (GCallback) _library_photo_page_on_external_app_changed_configuration_facade_external_app_changed, self, 0);
-#line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = self->priv->filter;
-#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view_collection_install_view_filter (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_VIEW_FILTER, ViewFilter));
-#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 2359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = library_photo_global;
-#line 2359 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-unlinking", (GCallback) _library_photo_page_on_photo_unlinking_source_collection_items_unlinking, self, 0);
-#line 2360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = library_photo_global;
-#line 2360 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- 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 2344 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self;
-#line 15978 "PhotoPage.c"
-}
-
-
-LibraryPhotoPage*
-library_photo_page_new (void)
-{
-#line 2344 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return library_photo_page_construct (TYPE_LIBRARY_PHOTO_PAGE);
-#line 15987 "PhotoPage.c"
-}
-
-
-gboolean
-library_photo_page_not_trashed_view_filter (LibraryPhotoPage* self,
- DataView* view)
-{
- gboolean result = FALSE;
- DataSource* _tmp0_;
- MediaSource* _tmp1_;
- gboolean _tmp2_;
-#line 2369 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_PAGE (self), FALSE);
-#line 2369 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = data_view_get_source (view);
-#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = !media_source_is_trashed (_tmp1_);
-#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp2_;
-#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 16015 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_photo_unlinking (LibraryPhotoPage* self,
- GeeCollection* unlinking)
-{
- LibraryPhotoPageLibraryPhotoPageViewFilter* _tmp0_;
-#line 2373 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2373 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GEE_IS_COLLECTION (unlinking));
-#line 2374 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _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 16032 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_photo_relinked (LibraryPhotoPage* self,
- GeeCollection* relinked)
-{
- LibraryPhotoPageLibraryPhotoPageViewFilter* _tmp0_;
-#line 2377 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2377 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GEE_IS_COLLECTION (relinked));
-#line 2378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->filter;
-#line 2378 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh");
-#line 16049 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- LibraryPhotoPage * self;
-#line 2381 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2381 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 2382 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- PAGE_CLASS (library_photo_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), ui_filenames);
-#line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "photo_context.ui");
-#line 2385 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "photo.ui");
-#line 16068 "PhotoPage.c"
-}
-
-
-static GVariant*
-_variant_new16 (gboolean value)
-{
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 16077 "PhotoPage.c"
-}
-
-
-static GVariant*
-_variant_new17 (const gchar* value)
-{
-#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 16086 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender,
- GVariant* value,
- gpointer self)
-{
-#line 2448 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_raw_developer_changed ((LibraryPhotoPage*) self, _sender, value);
-#line 16097 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- LibraryPhotoPage * self;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
- ConfigFacade* _tmp3_;
- ConfigFacade* _tmp4_;
- GVariant* _tmp5_;
- RawDeveloper d = 0;
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- RawDeveloper _tmp8_;
- const gchar* _tmp9_ = NULL;
- RawDeveloper _tmp10_;
- GSimpleAction* action = NULL;
- const GVariantType* _tmp11_;
- GVariant* _tmp12_;
- GSimpleAction* _tmp13_;
- GSimpleAction* _tmp14_;
-#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 2441 "/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), map);
-#line 2443 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_action_map_add_action_entries (map, LIBRARY_PHOTO_PAGE_entries, G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries), self);
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings");
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_ == NULL) {
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 16139 "PhotoPage.c"
- }
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = config_facade_get_instance ();
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _variant_new16 (configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_emit_by_name (_tmp2_, "change-state", _tmp5_);
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_variant_unref0 (_tmp5_);
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = config_facade_get_instance ();
-#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- d = _tmp8_;
-#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = d;
-#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp10_ == RAW_DEVELOPER_SHOTWELL) {
-#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = "Shotwell";
-#line 16173 "PhotoPage.c"
- } else {
-#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = "Camera";
-#line 16177 "PhotoPage.c"
- }
-#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = G_VARIANT_TYPE_STRING;
-#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _variant_new17 (_tmp9_);
-#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = g_simple_action_new_stateful ("RawDeveloper", _tmp11_, _tmp12_);
-#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_variant_unref0 (_tmp12_);
-#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- action = _tmp14_;
-#line 2448 "/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 2449 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_simple_action_set_enabled (action, TRUE);
-#line 2450 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_action_map_add_action (map, G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction));
-#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (action);
-#line 16199 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- LibraryPhotoPage * self;
-#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 2454 "/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), map);
-#line 16214 "PhotoPage.c"
- {
- GActionEntry* entry_collection = NULL;
- gint entry_collection_length1 = 0;
- gint _entry_collection_size_ = 0;
- gint entry_it = 0;
-#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- entry_collection = LIBRARY_PHOTO_PAGE_entries;
-#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- entry_collection_length1 = G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries);
-#line 2455 "/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 16226 "PhotoPage.c"
- GActionEntry entry = {0};
-#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- entry = entry_collection[entry_it];
-#line 16230 "PhotoPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = entry;
-#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 16240 "PhotoPage.c"
- }
- }
- }
-}
-
-
-static gpointer
-_injection_group_ref0 (gpointer self)
-{
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self ? injection_group_ref (self) : NULL;
-#line 16252 "PhotoPage.c"
-}
-
-
-static void
-_vala_array_add85 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if ((*length) == (*size)) {
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 16268 "PhotoPage.c"
- }
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- (*array)[(*length)++] = value;
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- (*array)[*length] = NULL;
-#line 16274 "PhotoPage.c"
-}
-
-
-static void
-_vala_array_add86 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if ((*length) == (*size)) {
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 16290 "PhotoPage.c"
- }
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- (*array)[(*length)++] = value;
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- (*array)[*length] = NULL;
-#line 16296 "PhotoPage.c"
-}
-
-
-static void
-_vala_array_add87 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if ((*length) == (*size)) {
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 16312 "PhotoPage.c"
- }
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- (*array)[(*length)++] = value;
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- (*array)[*length] = NULL;
-#line 16318 "PhotoPage.c"
-}
-
-
-static InjectionGroup**
-library_photo_page_real_init_collect_injection_groups (Page* base,
- int* result_length1)
-{
- LibraryPhotoPage * self;
- InjectionGroup** result = NULL;
- InjectionGroup** groups = NULL;
- gint _tmp0_;
- InjectionGroup** _tmp1_;
- gint groups_length1;
- gint _groups_size_;
- InjectionGroup* print_group = NULL;
- InjectionGroup* _tmp2_;
- InjectionGroup** _tmp3_;
- gint _tmp3__length1;
- InjectionGroup* _tmp4_;
- InjectionGroup* publish_group = NULL;
- InjectionGroup* _tmp5_;
- InjectionGroup** _tmp6_;
- gint _tmp6__length1;
- InjectionGroup* _tmp7_;
- InjectionGroup* bg_group = NULL;
- InjectionGroup* _tmp8_;
- InjectionGroup** _tmp9_;
- gint _tmp9__length1;
- InjectionGroup* _tmp10_;
- InjectionGroup** _tmp11_;
- gint _tmp11__length1;
-#line 2460 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2461 "/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 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- groups = _tmp1_;
-#line 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- groups_length1 = _tmp0_;
-#line 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _groups_size_ = groups_length1;
-#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = injection_group_new ("PrintPlaceholder");
-#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- print_group = _tmp2_;
-#line 2464 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- injection_group_add_menu_item (print_group, _ ("_Print"), "Print", "<Primary>p");
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = groups;
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3__length1 = groups_length1;
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _injection_group_ref0 (print_group);
-#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_array_add85 (&groups, &groups_length1, &_groups_size_, _tmp4_);
-#line 2468 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = injection_group_new ("PublishPlaceholder");
-#line 2468 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- publish_group = _tmp5_;
-#line 2469 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- injection_group_add_menu_item (publish_group, _ ("_Publish"), "Publish", "<Primary><Shift>p");
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = groups;
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6__length1 = groups_length1;
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _injection_group_ref0 (publish_group);
-#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_array_add86 (&groups, &groups_length1, &_groups_size_, _tmp7_);
-#line 2473 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = injection_group_new ("SetBackgroundPlaceholder");
-#line 2473 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- bg_group = _tmp8_;
-#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- injection_group_add_menu_item (bg_group, _ ("Set as _Desktop Background"), "SetBackground", "<Primary>b");
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = groups;
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9__length1 = groups_length1;
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _injection_group_ref0 (bg_group);
-#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_array_add87 (&groups, &groups_length1, &_groups_size_, _tmp10_);
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = groups;
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11__length1 = groups_length1;
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (result_length1) {
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- *result_length1 = _tmp11__length1;
-#line 16410 "PhotoPage.c"
- }
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp11_;
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _injection_group_unref0 (bg_group);
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _injection_group_unref0 (publish_group);
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _injection_group_unref0 (print_group);
-#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 16422 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_display_ratings (LibraryPhotoPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 2481 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2481 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 2482 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- display = g_variant_get_boolean (value);
-#line 2484 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_set_display_ratings (self, display);
-#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- configuration_facade_set_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display);
-#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_simple_action_set_state (action, value);
-#line 16452 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_set_display_ratings (LibraryPhotoPage* self,
- gboolean display)
-{
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 2491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings");
-#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_ == NULL) {
-#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 16474 "PhotoPage.c"
- }
-#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- action = _tmp1_;
-#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = action;
-#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ != NULL) {
-#line 16482 "PhotoPage.c"
- GSimpleAction* _tmp3_;
-#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = action;
-#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_simple_action_set_enabled (_tmp3_, display);
-#line 16488 "PhotoPage.c"
- }
-#line 2491 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (action);
-#line 16492 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- LibraryPhotoPage * self;
- gboolean multiple = FALSE;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_ = FALSE;
- gboolean rotate_possible = FALSE;
- gboolean _tmp6_ = FALSE;
- gboolean is_raw = FALSE;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp14_ = FALSE;
- gboolean _tmp21_ = FALSE;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp25_;
- gboolean _tmp26_;
- gboolean _tmp27_;
- gboolean _tmp28_;
- gboolean _tmp29_;
- gboolean _tmp30_;
- gboolean _tmp37_ = FALSE;
- gboolean _tmp38_;
-#line 2497 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) > 1;
-#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- multiple = _tmp2_;
-#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 16536 "PhotoPage.c"
- Photo* _tmp4_;
- Photo* _tmp5_;
-#line 2499 "/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 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = editing_host_page_is_rotate_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp5_);
-#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 16547 "PhotoPage.c"
- } else {
-#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = FALSE;
-#line 16551 "PhotoPage.c"
- }
-#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- rotate_possible = _tmp3_;
-#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 16557 "PhotoPage.c"
- Photo* _tmp7_;
- Photo* _tmp8_;
-#line 2500 "/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 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = photo_get_master_file_format (_tmp8_) == PHOTO_FILE_FORMAT_RAW;
-#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 16568 "PhotoPage.c"
- } else {
-#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = FALSE;
-#line 16572 "PhotoPage.c"
- }
-#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- is_raw = _tmp6_;
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 16578 "PhotoPage.c"
- ConfigFacade* _tmp10_;
- ConfigFacade* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = config_facade_get_instance ();
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = g_strcmp0 (_tmp13_, "") != 0;
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp13_);
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 16597 "PhotoPage.c"
- } else {
-#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = FALSE;
-#line 16601 "PhotoPage.c"
- }
-#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp9_);
-#line 2505 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 16607 "PhotoPage.c"
- gboolean _tmp15_ = FALSE;
- Photo* _tmp16_;
- Photo* _tmp17_;
- gboolean _tmp18_;
-#line 2506 "/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 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = photo_has_transformations (_tmp17_);
-#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp17_);
-#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp18_) {
-#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = TRUE;
-#line 16624 "PhotoPage.c"
- } else {
- Photo* _tmp19_;
- Photo* _tmp20_;
-#line 2506 "/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 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = _tmp19_;
-#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = photo_has_editable (_tmp20_);
-#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp20_);
-#line 16636 "PhotoPage.c"
- }
-#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp15_;
-#line 16640 "PhotoPage.c"
- } else {
-#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = FALSE;
-#line 16644 "PhotoPage.c"
- }
-#line 2505 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp14_);
-#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 16652 "PhotoPage.c"
- } else {
-#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = FALSE;
-#line 16656 "PhotoPage.c"
- }
-#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp21_) {
-#line 2509 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_rating_menu_item_sensitivity (self);
-#line 2510 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_development_menu_item_sensitivity (self);
-#line 16664 "PhotoPage.c"
- }
-#line 2513 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)));
-#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 16670 "PhotoPage.c"
- Photo* _tmp23_;
- Photo* _tmp24_;
-#line 2515 "/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 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = _tmp23_;
-#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = photo_has_color_adjustments (_tmp24_);
-#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp24_);
-#line 16681 "PhotoPage.c"
- } else {
-#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = FALSE;
-#line 16685 "PhotoPage.c"
- }
-#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp22_);
-#line 2516 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", pixel_transformation_bundle_has_copied_color_adjustments ());
-#line 2518 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = multiple;
-#line 2518 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PrevPhoto", _tmp25_);
-#line 2519 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = multiple;
-#line 2519 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NextPhoto", _tmp26_);
-#line 2520 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = rotate_possible;
-#line 2520 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp27_);
-#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = rotate_possible;
-#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp28_);
-#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = rotate_possible;
-#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp29_);
-#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = rotate_possible;
-#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp30_);
-#line 2525 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 16717 "PhotoPage.c"
- Photo* _tmp31_;
- Photo* _tmp32_;
- Scaling _tmp33_ = {0};
- Photo* _tmp34_;
- Photo* _tmp35_;
- Scaling _tmp36_ = {0};
-#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = _tmp31_;
-#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaling_for_original (&_tmp33_);
-#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", editing_tools_crop_tool_is_available (_tmp32_, &_tmp33_));
-#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp32_);
-#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp34_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp35_ = _tmp34_;
-#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaling_for_original (&_tmp36_);
-#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", editing_tools_redeye_tool_is_available (_tmp35_, &_tmp36_));
-#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp35_);
-#line 16744 "PhotoPage.c"
- }
-#line 2531 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_flag_action (self);
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp38_ = is_raw;
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp38_) {
-#line 16752 "PhotoPage.c"
- ConfigFacade* _tmp39_;
- ConfigFacade* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp39_ = config_facade_get_instance ();
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp40_ = _tmp39_;
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp41_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp42_ = _tmp41_;
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp37_ = g_strcmp0 (_tmp42_, "") != 0;
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp42_);
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp40_);
-#line 16771 "PhotoPage.c"
- } else {
-#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp37_ = FALSE;
-#line 16775 "PhotoPage.c"
- }
-#line 2533 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp37_);
-#line 2536 "/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), selected_count, count);
-#line 16781 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_photos_altered (LibraryPhotoPage* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 2539 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2540 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 16793 "PhotoPage.c"
- gboolean _tmp1_ = FALSE;
- Photo* _tmp2_;
- Photo* _tmp3_;
- gboolean _tmp4_;
-#line 2541 "/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 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = photo_has_transformations (_tmp3_);
-#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_) {
-#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = TRUE;
-#line 16810 "PhotoPage.c"
- } else {
- Photo* _tmp5_;
- Photo* _tmp6_;
-#line 2541 "/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 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = photo_has_editable (_tmp6_);
-#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 16822 "PhotoPage.c"
- }
-#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _tmp1_;
-#line 16826 "PhotoPage.c"
- } else {
-#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 16830 "PhotoPage.c"
- }
-#line 2540 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp0_);
-#line 2542 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_flag_action (self);
-#line 16836 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_raw_developer_changed (LibraryPhotoPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- RawDeveloper developer = 0;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- GQuark _tmp3_ = 0U;
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp2_label0 = 0;
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp2_label1 = 0;
-#line 16853 "PhotoPage.c"
- RawDeveloper _tmp4_;
-#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 2547 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- developer = RAW_DEVELOPER_SHOTWELL;
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = g_variant_get_string (value, NULL);
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("Shotwell")))) {
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 16871 "PhotoPage.c"
- default:
- {
-#line 2551 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- developer = RAW_DEVELOPER_SHOTWELL;
-#line 2552 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 16878 "PhotoPage.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("Camera")))) {
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 16884 "PhotoPage.c"
- default:
- {
-#line 2554 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- developer = RAW_DEVELOPER_CAMERA;
-#line 2555 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 16891 "PhotoPage.c"
- }
- }
- } else {
-#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 16897 "PhotoPage.c"
- default:
- {
-#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 16902 "PhotoPage.c"
- }
- }
- }
-#line 2560 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = developer;
-#line 2560 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_developer_changed (self, _tmp4_);
-#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_simple_action_set_state (action, value);
-#line 16912 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_developer_changed (LibraryPhotoPage* self,
- RawDeveloper rd)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- Photo* photo = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- gpointer _tmp7_;
- DataView* _tmp8_;
- DataSource* _tmp9_;
- Photo* _tmp10_;
- Photo* _tmp11_;
- gboolean _tmp12_ = FALSE;
- Photo* _tmp13_;
- gboolean _tmp15_ = FALSE;
- Photo* _tmp16_;
-#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 2567 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 16949 "PhotoPage.c"
- }
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = gee_list_get (_tmp6_, 0);
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = (DataView*) _tmp7_;
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = data_view_get_source (_tmp8_);
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_PHOTO) ? ((Photo*) _tmp9_) : NULL;
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp10_ == NULL) {
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 16971 "PhotoPage.c"
- }
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo = _tmp11_;
-#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = photo;
-#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp13_ == NULL) {
-#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = TRUE;
-#line 16989 "PhotoPage.c"
- } else {
- Photo* _tmp14_;
-#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = photo;
-#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = raw_developer_is_equivalent (rd, photo_get_raw_developer (_tmp14_));
-#line 16996 "PhotoPage.c"
- }
-#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp12_) {
-#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 17004 "PhotoPage.c"
- }
-#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = photo;
-#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!photo_has_transformations (_tmp16_)) {
-#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = TRUE;
-#line 17012 "PhotoPage.c"
- } else {
-#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = dialogs_confirm_warn_developer_changed (1);
-#line 17016 "PhotoPage.c"
- }
-#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp15_) {
-#line 17020 "PhotoPage.c"
- SetRawDeveloperCommand* command = NULL;
- ViewCollection* _tmp17_;
- ViewCollection* _tmp18_;
- GeeList* _tmp19_;
- GeeList* _tmp20_;
- SetRawDeveloperCommand* _tmp21_;
- SetRawDeveloperCommand* _tmp22_;
- CommandManager* _tmp23_;
- CommandManager* _tmp24_;
- SetRawDeveloperCommand* _tmp25_;
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _tmp17_;
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = view_collection_get_selected (_tmp18_);
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = _tmp19_;
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = set_raw_developer_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ITERABLE, GeeIterable), rd);
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = _tmp21_;
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp20_);
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp18_);
-#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp22_;
-#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = _tmp23_;
-#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = command;
-#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_COMMAND, Command));
-#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp24_);
-#line 2580 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_development_menu_item_sensitivity (self);
-#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 17063 "PhotoPage.c"
- }
-#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 17067 "PhotoPage.c"
-}
-
-
-void
-library_photo_page_developer_changed (LibraryPhotoPage* self,
- RawDeveloper rd)
-{
-#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- LIBRARY_PHOTO_PAGE_GET_CLASS (self)->developer_changed (self, rd);
-#line 17079 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_update_flag_action (LibraryPhotoPage* self)
-{
-#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2585 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)));
-#line 17090 "PhotoPage.c"
-}
-
-
-static void
-_library_photo_page_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender,
- gpointer self)
-{
-#line 2595 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_page_destroyed ((LibraryPhotoPage*) self);
-#line 17100 "PhotoPage.c"
-}
-
-
-void
-library_photo_page_display_for_collection (LibraryPhotoPage* self,
- CollectionPage* return_page,
- Photo* photo,
- ViewCollection* view)
-{
- CollectionPage* _tmp0_;
- ViewCollection* _tmp1_ = NULL;
-#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (return_page));
-#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail ((view == NULL) || IS_VIEW_COLLECTION (view));
-#line 2594 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = _g_object_ref0 (return_page);
-#line 2594 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->return_page);
-#line 2594 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->return_page = _tmp0_;
-#line 2595 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (return_page, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _library_photo_page_on_page_destroyed_gtk_widget_destroy, self, 0);
-#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (view != NULL) {
-#line 17130 "PhotoPage.c"
- ViewCollection* _tmp2_;
-#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _data_collection_ref0 (view);
-#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp2_;
-#line 17138 "PhotoPage.c"
- } else {
- ViewCollection* _tmp3_;
-#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (return_page, TYPE_PAGE, Page));
-#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp3_;
-#line 17147 "PhotoPage.c"
- }
-#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- editing_host_page_display_copy_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp1_, photo);
-#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 17153 "PhotoPage.c"
-}
-
-
-void
-library_photo_page_on_page_destroyed (LibraryPhotoPage* self)
-{
-#line 2600 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2603 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->return_page);
-#line 2603 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->return_page = NULL;
-#line 2604 "/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 17168 "PhotoPage.c"
-}
-
-
-CollectionPage*
-library_photo_page_get_controller_page (LibraryPhotoPage* self)
-{
- CollectionPage* result = NULL;
- CollectionPage* _tmp0_;
- CollectionPage* _tmp1_;
-#line 2607 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_PAGE (self), NULL);
-#line 2608 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->return_page;
-#line 2608 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 2608 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp1_;
-#line 2608 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17188 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_switched_to (Page* base)
-{
- LibraryPhotoPage * self;
- Photo* _tmp0_;
- Photo* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
-#line 2611 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2615 "/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 2615 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2615 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _vala_assert (_tmp1_ != NULL, "get_photo() != null");
-#line 2615 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2617 "/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 2619 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_zoom_menu_item_sensitivity (self);
-#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_rating_menu_item_sensitivity (self);
-#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_set_display_ratings (self, configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 17224 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_switching_from (Page* base)
-{
- LibraryPhotoPage * self;
-#line 2626 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2627 "/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 17236 "PhotoPage.c"
- {
- GActionEntry* entry_collection = NULL;
- gint entry_collection_length1 = 0;
- gint _entry_collection_size_ = 0;
- gint entry_it = 0;
-#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- entry_collection = LIBRARY_PHOTO_PAGE_entries;
-#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- entry_collection_length1 = G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries);
-#line 2628 "/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 17248 "PhotoPage.c"
- GActionEntry entry = {0};
-#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- entry = entry_collection[entry_it];
-#line 17252 "PhotoPage.c"
- {
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GActionEntry _tmp2_;
- const gchar* _tmp3_;
-#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = app_window_get_instance ();
-#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = entry;
-#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_.name;
-#line 2629 "/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 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 17270 "PhotoPage.c"
- }
- }
- }
-}
-
-
-static GdkPixbuf*
-library_photo_page_real_get_bottom_left_trinket (EditingHostPage* base,
- gint scale)
-{
- LibraryPhotoPage * self;
- GdkPixbuf* result = NULL;
- gboolean _tmp0_ = FALSE;
- Photo* _tmp3_;
- LibraryPhoto* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 17294 "PhotoPage.c"
- } else {
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
-#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = !configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 17306 "PhotoPage.c"
- }
-#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 2635 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = NULL;
-#line 2635 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17314 "PhotoPage.c"
- }
-#line 2637 "/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 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = resources_get_rating_trinket (media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)), scale);
-#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp6_;
-#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17330 "PhotoPage.c"
-}
-
-
-static GdkPixbuf*
-library_photo_page_real_get_top_right_trinket (EditingHostPage* base,
- gint scale)
-{
- LibraryPhotoPage * self;
- GdkPixbuf* result = NULL;
- gboolean _tmp0_ = FALSE;
- GdkPixbuf* _tmp3_;
-#line 2640 "/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"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 17348 "PhotoPage.c"
- } else {
- Photo* _tmp1_;
- LibraryPhoto* _tmp2_;
-#line 2641 "/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 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = !flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_FLAGGABLE, Flaggable));
-#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 17360 "PhotoPage.c"
- }
-#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 2642 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = NULL;
-#line 2642 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17368 "PhotoPage.c"
- }
-#line 2644 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = resources_get_icon (RESOURCES_ICON_FLAGGED_TRINKET, RESOURCES_DEFAULT_ICON_SCALE);
-#line 2644 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp3_;
-#line 2644 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17376 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_slideshow (LibraryPhotoPage* self)
-{
- LibraryPhoto* photo = NULL;
- Photo* _tmp0_;
- LibraryPhoto* _tmp1_;
- AppWindow* _tmp2_;
- AppWindow* _tmp3_;
- LibraryPhotoSourceCollection* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- LibraryPhoto* _tmp7_;
- SlideshowPage* _tmp8_;
- SlideshowPage* _tmp9_;
-#line 2647 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2648 "/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 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 2649 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = photo;
-#line 2649 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_ == NULL) {
-#line 2650 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 2650 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 17408 "PhotoPage.c"
- }
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = app_window_get_instance ();
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = library_photo_global;
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = photo;
-#line 2652 "/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 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp8_);
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- app_window_go_fullscreen (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PAGE, Page));
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 2647 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 17438 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_update_zoom_menu_item_sensitivity (LibraryPhotoPage* self)
-{
- gboolean _tmp0_ = FALSE;
- ZoomState _tmp1_ = {0};
- gboolean _tmp2_ = FALSE;
- ZoomState _tmp3_ = {0};
-#line 2656 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2657 "/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 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!zoom_state_is_max (&_tmp1_)) {
-#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 17457 "PhotoPage.c"
- } else {
-#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 17461 "PhotoPage.c"
- }
-#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp0_);
-#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_);
-#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!zoom_state_is_default (&_tmp3_)) {
-#line 2658 "/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 17471 "PhotoPage.c"
- } else {
-#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = FALSE;
-#line 17475 "PhotoPage.c"
- }
-#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp2_);
-#line 17479 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_on_increase_size (EditingHostPage* base)
-{
- LibraryPhotoPage * self;
-#line 2661 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2662 "/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 2664 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_zoom_menu_item_sensitivity (self);
-#line 17493 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_on_decrease_size (EditingHostPage* base)
-{
- LibraryPhotoPage * self;
-#line 2667 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2668 "/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 2670 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_zoom_menu_item_sensitivity (self);
-#line 17507 "PhotoPage.c"
-}
-
-
-static gboolean
-library_photo_page_real_on_zoom_slider_key_press (EditingHostPage* base,
- GdkEventKey* event)
-{
- LibraryPhotoPage * self;
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
-#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2674 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (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), event)) {
-#line 2675 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 2675 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17529 "PhotoPage.c"
- }
-#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = event->keyval;
-#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (g_strcmp0 (_tmp1_, "Escape") == 0) {
-#line 2678 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_return_to_collection (self);
-#line 2679 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 2679 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17543 "PhotoPage.c"
- } else {
-#line 2681 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = FALSE;
-#line 2681 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17549 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_real_update_ui (EditingHostPage* base,
- gboolean missing)
-{
- LibraryPhotoPage * self;
- gboolean sensitivity = FALSE;
-#line 2685 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2686 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- sensitivity = !missing;
-#line 2688 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", sensitivity);
-#line 2689 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", sensitivity);
-#line 2690 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", sensitivity);
-#line 2691 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToFile", sensitivity);
-#line 2693 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonUndo", sensitivity);
-#line 2694 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonRedo", sensitivity);
-#line 2696 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", sensitivity);
-#line 2697 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", sensitivity);
-#line 2698 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ZoomFit", sensitivity);
-#line 2699 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom100", sensitivity);
-#line 2700 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom200", sensitivity);
-#line 2701 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", sensitivity);
-#line 2703 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", sensitivity);
-#line 2704 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", sensitivity);
-#line 2705 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", sensitivity);
-#line 2706 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", sensitivity);
-#line 2707 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", sensitivity);
-#line 2708 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", sensitivity);
-#line 2709 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", sensitivity);
-#line 2710 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Adjust", sensitivity);
-#line 2711 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditTitle", sensitivity);
-#line 2712 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", sensitivity);
-#line 2713 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", sensitivity);
-#line 2714 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", sensitivity);
-#line 2715 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", sensitivity);
-#line 2717 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rate", sensitivity);
-#line 2718 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", sensitivity);
-#line 2719 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", sensitivity);
-#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", sensitivity);
-#line 2722 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", sensitivity);
-#line 2724 "/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), missing);
-#line 17626 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_real_notify_photo_backing_missing (EditingHostPage* base,
- Photo* photo,
- gboolean missing)
-{
- LibraryPhotoPage * self;
-#line 2727 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2727 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 2728 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (missing) {
-#line 2729 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_mark_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
-#line 17644 "PhotoPage.c"
- } else {
-#line 2731 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
-#line 17648 "PhotoPage.c"
- }
-#line 2733 "/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), photo, missing);
-#line 17652 "PhotoPage.c"
-}
-
-
-static gboolean
-library_photo_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- LibraryPhotoPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean handled = FALSE;
- guint _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- GQuark _tmp5_ = 0U;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label0 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label1 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label2 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label3 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label4 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label5 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label6 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label7 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label8 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label9 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label10 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label11 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label12 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label13 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label14 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label15 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label16 = 0;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- static GQuark _tmp4_label17 = 0;
-#line 2736 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2736 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (GTK_WIDGET_CLASS (library_photo_page_parent_class)->key_press_event != NULL) {
-#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = 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), event) == TRUE;
-#line 17712 "PhotoPage.c"
- } else {
-#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 17716 "PhotoPage.c"
- }
-#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 2738 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 2738 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17724 "PhotoPage.c"
- }
-#line 2740 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- handled = TRUE;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = event->keyval;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = gdk_keyval_name (_tmp1_);
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_);
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("Escape")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("Return"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("KP_Enter"))))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17740 "PhotoPage.c"
- default:
- {
- GtkWindow* _tmp6_;
- GtkWindow* _tmp7_;
- gboolean _tmp8_;
-#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_FULLSCREEN_WINDOW);
-#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp8_) {
-#line 2746 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_return_to_collection (self);
-#line 17758 "PhotoPage.c"
- }
-#line 2747 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17762 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("Delete")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17768 "PhotoPage.c"
- default:
- {
-#line 2753 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MoveToTrash");
-#line 2754 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17775 "PhotoPage.c"
- }
- }
- } else if ((_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("period")))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("greater"))))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17781 "PhotoPage.c"
- default:
- {
-#line 2758 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating");
-#line 2759 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17788 "PhotoPage.c"
- }
- }
- } else if ((_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("comma")))) || (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("less"))))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17794 "PhotoPage.c"
- default:
- {
-#line 2763 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating");
-#line 2764 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17801 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("KP_1")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17807 "PhotoPage.c"
- default:
- {
-#line 2767 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne");
-#line 2768 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17814 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("KP_2")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17820 "PhotoPage.c"
- default:
- {
-#line 2771 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo");
-#line 2772 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17827 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label10) ? _tmp4_label10 : (_tmp4_label10 = g_quark_from_static_string ("KP_3")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17833 "PhotoPage.c"
- default:
- {
-#line 2775 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree");
-#line 2776 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17840 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label11) ? _tmp4_label11 : (_tmp4_label11 = g_quark_from_static_string ("KP_4")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17846 "PhotoPage.c"
- default:
- {
-#line 2779 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour");
-#line 2780 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17853 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label12) ? _tmp4_label12 : (_tmp4_label12 = g_quark_from_static_string ("KP_5")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17859 "PhotoPage.c"
- default:
- {
-#line 2783 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive");
-#line 2784 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17866 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label13) ? _tmp4_label13 : (_tmp4_label13 = g_quark_from_static_string ("KP_0")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17872 "PhotoPage.c"
- default:
- {
-#line 2787 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated");
-#line 2788 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17879 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label14) ? _tmp4_label14 : (_tmp4_label14 = g_quark_from_static_string ("KP_9")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17885 "PhotoPage.c"
- default:
- {
-#line 2791 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected");
-#line 2792 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17892 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label15) ? _tmp4_label15 : (_tmp4_label15 = g_quark_from_static_string ("bracketright")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17898 "PhotoPage.c"
- default:
- {
-#line 2795 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise");
-#line 2796 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17905 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label16) ? _tmp4_label16 : (_tmp4_label16 = g_quark_from_static_string ("bracketleft")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17911 "PhotoPage.c"
- default:
- {
-#line 2799 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise");
-#line 2800 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17918 "PhotoPage.c"
- }
- }
- } else if (_tmp5_ == ((0 != _tmp4_label17) ? _tmp4_label17 : (_tmp4_label17 = g_quark_from_static_string ("slash")))) {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17924 "PhotoPage.c"
- default:
- {
-#line 2803 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag");
-#line 2804 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17931 "PhotoPage.c"
- }
- }
- } else {
-#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (0) {
-#line 17937 "PhotoPage.c"
- default:
- {
-#line 2807 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- handled = FALSE;
-#line 2808 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 17944 "PhotoPage.c"
- }
- }
- }
-#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = handled;
-#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 17952 "PhotoPage.c"
-}
-
-
-static gboolean
-library_photo_page_real_on_double_click (EditingHostPage* base,
- GdkEventButton* event)
-{
- LibraryPhotoPage * self;
- gboolean result = FALSE;
- FullscreenWindow* fs = NULL;
- GtkWindow* _tmp0_;
- FullscreenWindow* _tmp1_;
- FullscreenWindow* _tmp2_;
-#line 2814 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2814 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW) ? ((FullscreenWindow*) _tmp0_) : NULL;
-#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp1_ == NULL) {
-#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 17978 "PhotoPage.c"
- }
-#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- fs = _tmp1_;
-#line 2816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = fs;
-#line 2816 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_ == NULL) {
-#line 2817 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->return_to_collection_on_release = TRUE;
-#line 17988 "PhotoPage.c"
- } else {
- FullscreenWindow* _tmp3_;
-#line 2819 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = fs;
-#line 2819 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- fullscreen_window_close (_tmp3_);
-#line 17995 "PhotoPage.c"
- }
-#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (fs);
-#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 18003 "PhotoPage.c"
-}
-
-
-static gboolean
-library_photo_page_real_on_left_released (Page* base,
- GdkEventButton* event)
-{
- LibraryPhotoPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 2824 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2824 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2825 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->return_to_collection_on_release;
-#line 2825 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 2826 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->return_to_collection_on_release = FALSE;
-#line 2827 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_return_to_collection (self);
-#line 2829 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 2829 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 18030 "PhotoPage.c"
- }
-#line 2832 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = 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), event);
-#line 2832 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 18036 "PhotoPage.c"
-}
-
-
-static GtkMenu*
-library_photo_page_get_context_menu (LibraryPhotoPage* self)
-{
- GtkMenu* result = NULL;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp7_;
- GtkMenu* _tmp8_;
-#line 2837 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_LIBRARY_PHOTO_PAGE (self), NULL);
-#line 2838 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->context_menu;
-#line 2838 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_ == NULL) {
-#line 18053 "PhotoPage.c"
- GMenuModel* model = NULL;
- GtkBuilder* _tmp1_;
- GObject* _tmp2_;
- GMenuModel* _tmp3_;
- GMenuModel* _tmp4_;
- GtkMenu* _tmp5_;
- GtkMenu* _tmp6_;
-#line 2839 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 2839 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = gtk_builder_get_object (_tmp1_, "PhotoContextMenu");
-#line 2839 "/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 2839 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- model = _tmp3_;
-#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = model;
-#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = (GtkMenu*) gtk_menu_new_from_model (_tmp4_);
-#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp5_);
-#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->context_menu);
-#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->context_menu = _tmp5_;
-#line 2842 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = self->priv->context_menu;
-#line 2842 "/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 2838 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (model);
-#line 18085 "PhotoPage.c"
- }
-#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = self->priv->context_menu;
-#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp8_;
-#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 18095 "PhotoPage.c"
-}
-
-
-static gboolean
-library_photo_page_real_on_context_buttonpress (Page* base,
- GdkEventButton* event)
-{
- LibraryPhotoPage * self;
- gboolean result = FALSE;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp1_;
-#line 2848 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2848 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2849 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = library_photo_page_get_context_menu (self);
-#line 2849 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2849 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, event);
-#line 2849 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 18123 "PhotoPage.c"
-}
-
-
-static gboolean
-library_photo_page_real_on_context_keypress (Page* base)
-{
- LibraryPhotoPage * self;
- gboolean result = FALSE;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp1_;
-#line 2854 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2855 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = library_photo_page_get_context_menu (self);
-#line 2855 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2855 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL);
-#line 2855 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2857 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = TRUE;
-#line 2857 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 18148 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_return_to_collection (LibraryPhotoPage* self)
-{
- CollectionPage* _tmp0_;
-#line 2860 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2862 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->return_page;
-#line 2862 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (NULL != _tmp0_) {
-#line 18162 "PhotoPage.c"
- LibraryWindow* _tmp1_;
- LibraryWindow* _tmp2_;
- CollectionPage* _tmp3_;
-#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = library_window_get_app ();
-#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = self->priv->return_page;
-#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_window_switch_to_page (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE, Page));
-#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 18176 "PhotoPage.c"
- } else {
- LibraryWindow* _tmp4_;
- LibraryWindow* _tmp5_;
-#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = library_window_get_app ();
-#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_window_switch_to_library_page (_tmp5_);
-#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 18188 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_on_remove_from_library (LibraryPhotoPage* self)
-{
- LibraryPhoto* photo = NULL;
- Photo* _tmp0_;
- GeeCollection* photos = NULL;
- GeeArrayList* _tmp1_;
-#line 2868 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2869 "/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 2869 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 2871 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 2871 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 2872 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_collection_add (photos, photo);
-#line 2874 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- remove_from_app (photos, _ ("Remove From Library"), _ ("Removing Photo From Library"));
-#line 2868 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photos);
-#line 2868 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 18218 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_move_to_trash (LibraryPhotoPage* self)
-{
- CollectionPage* _tmp0_;
- LibraryPhoto* photo = NULL;
- Photo* _tmp3_;
- GeeCollection* photos = NULL;
- GeeArrayList* _tmp4_;
- GeeCollection* _tmp5_;
- LibraryPhoto* _tmp6_;
- LibraryPhoto* _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
- gboolean _tmp10_;
- CommandManager* _tmp20_;
- CommandManager* _tmp21_;
- GeeCollection* _tmp22_;
- TrashUntrashPhotosCommand* _tmp23_;
- TrashUntrashPhotosCommand* _tmp24_;
- LibraryWindow* _tmp25_;
- LibraryWindow* _tmp26_;
-#line 2877 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2878 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18249 "PhotoPage.c"
- }
-#line 2886 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = self->priv->return_page;
-#line 2886 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_EVENT_PAGE)) {
-#line 18255 "PhotoPage.c"
- LibraryWindow* _tmp1_;
- LibraryWindow* _tmp2_;
-#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = library_window_get_app ();
-#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_window_set_page_switching_enabled (_tmp2_, FALSE);
-#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 18266 "PhotoPage.c"
- }
-#line 2890 "/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 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 2892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 2892 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 2893 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = photos;
-#line 2893 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = photo;
-#line 2893 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_collection_add (_tmp5_, _tmp6_);
-#line 2896 "/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 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = photo;
-#line 2900 "/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 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource));
-#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp10_) {
-#line 18296 "PhotoPage.c"
- LibraryWindow* _tmp11_;
- LibraryWindow* _tmp12_;
- GtkWindow* _tmp13_;
- GtkWindow* _tmp14_;
- gboolean _tmp15_;
- LibraryWindow* _tmp18_;
- LibraryWindow* _tmp19_;
-#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = library_window_get_app ();
-#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_window_set_page_switching_enabled (_tmp12_, TRUE);
-#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_FULLSCREEN_WINDOW);
-#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp14_);
-#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp15_) {
-#line 18322 "PhotoPage.c"
- GtkWindow* _tmp16_;
- FullscreenWindow* _tmp17_;
-#line 2906 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2906 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_FULLSCREEN_WINDOW, FullscreenWindow);
-#line 2906 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- fullscreen_window_close (_tmp17_);
-#line 2906 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp17_);
-#line 18333 "PhotoPage.c"
- }
-#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = library_window_get_app ();
-#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = _tmp18_;
-#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_window_switch_to_library_page (_tmp19_);
-#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp19_);
-#line 18343 "PhotoPage.c"
- }
-#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = _tmp20_;
-#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = photos;
-#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp23_ = trash_untrash_photos_command_new (_tmp22_, TRUE);
-#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = _tmp23_;
-#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_COMMAND, Command));
-#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp24_);
-#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp21_);
-#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = library_window_get_app ();
-#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = _tmp25_;
-#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_window_set_page_switching_enabled (_tmp26_, TRUE);
-#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp26_);
-#line 2877 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photos);
-#line 2877 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 18373 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_flag_unflag (LibraryPhotoPage* self)
-{
-#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 18384 "PhotoPage.c"
- GeeArrayList* photo_list = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- CommandManager* _tmp4_;
- CommandManager* _tmp5_;
- GeeArrayList* _tmp6_;
- Photo* _tmp7_;
- LibraryPhoto* _tmp8_;
- FlagUnflagCommand* _tmp9_;
- FlagUnflagCommand* _tmp10_;
-#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo_list = _tmp0_;
-#line 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = photo_list;
-#line 2918 "/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 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = photo_list;
-#line 2919 "/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 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = flag_unflag_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), !flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_FLAGGABLE, Flaggable)));
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command));
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp5_);
-#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo_list);
-#line 18435 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_on_photo_destroyed (LibraryPhotoPage* self,
- DataSource* source)
-{
-#line 2924 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2924 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 2925 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_photo_removed (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 18450 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_photo_removed (LibraryPhotoPage* self,
- LibraryPhoto* photo)
-{
- gboolean _tmp0_ = FALSE;
- ViewCollection* view = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- DataView* _tmp7_;
- DataView* _tmp8_;
- Marker* _tmp9_;
- Marker* _tmp10_;
- Photo* _tmp11_;
- Photo* _tmp12_;
- gboolean _tmp13_;
-#line 2928 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2928 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (photo == NULL) {
-#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 18479 "PhotoPage.c"
- } else {
- Photo* _tmp1_;
- Photo* _tmp2_;
-#line 2930 "/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 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource));
-#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 18491 "PhotoPage.c"
- }
-#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 2931 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18497 "PhotoPage.c"
- }
-#line 2934 "/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 2936 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2936 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- view = _tmp3_;
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = view;
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = view;
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = view;
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = view_collection_get_view_for_source (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource));
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), _tmp10_);
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 2938 "/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 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_SOURCE, DataSource));
-#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp13_) {
-#line 18535 "PhotoPage.c"
- LibraryWindow* _tmp14_;
- LibraryWindow* _tmp15_;
-#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = library_window_get_app ();
-#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_window_switch_to_library_page (_tmp15_);
-#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 18546 "PhotoPage.c"
- }
-#line 2928 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (view);
-#line 18550 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_print (LibraryPhotoPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
-#line 2945 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
-#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 18572 "PhotoPage.c"
- PrintManager* _tmp3_;
- PrintManager* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- GeeList* _tmp7_;
- GeeCollection* _tmp8_;
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = print_manager_get_instance ();
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = view_collection_get_selected_sources_of_type (_tmp6_, TYPE_PHOTO);
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- print_manager_spool_photo (_tmp4_, _tmp8_);
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _print_manager_unref0 (_tmp4_);
-#line 18599 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_on_external_app_changed (LibraryPhotoPage* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 2952 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2953 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 18612 "PhotoPage.c"
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = g_strcmp0 (_tmp4_, "") != 0;
-#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp4_);
-#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 18631 "PhotoPage.c"
- } else {
-#line 2953 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 18635 "PhotoPage.c"
- }
-#line 2953 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp0_);
-#line 18639 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_external_edit (LibraryPhotoPage* self)
-{
- GError * _inner_error_ = NULL;
-#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18653 "PhotoPage.c"
- }
- {
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- AppWindow* _tmp4_;
- AppWindow* _tmp5_;
-#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = app_window_get_instance ();
-#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2963 "/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 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo_open_with_external_editor (_tmp3_, &_inner_error_);
-#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 18680 "PhotoPage.c"
- goto __catch263_g_error;
- }
-#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = app_window_get_instance ();
-#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PAGE_WINDOW, PageWindow));
-#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 18691 "PhotoPage.c"
- }
- goto __finally263;
- __catch263_g_error:
- {
- GError* err = NULL;
- AppWindow* _tmp6_;
- AppWindow* _tmp7_;
- GError* _tmp8_;
- Photo* _tmp9_;
- Photo* _tmp10_;
-#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 2966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = app_window_get_instance ();
-#line 2966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 2966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE_WINDOW, PageWindow));
-#line 2966 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = err;
-#line 2967 "/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 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- open_external_editor_error_dialog (_tmp8_, _tmp10_);
-#line 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 18726 "PhotoPage.c"
- }
- __finally263:
-#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2961 "/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 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18737 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_on_external_edit_raw (LibraryPhotoPage* self)
-{
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean _tmp2_;
- GError * _inner_error_ = NULL;
-#line 2972 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2973 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!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"
- return;
-#line 18755 "PhotoPage.c"
- }
-#line 2976 "/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 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = photo_get_master_file_format (_tmp1_) != PHOTO_FILE_FORMAT_RAW;
-#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18769 "PhotoPage.c"
- }
- {
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
- Photo* _tmp5_;
- Photo* _tmp6_;
- AppWindow* _tmp7_;
- AppWindow* _tmp8_;
-#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = app_window_get_instance ();
-#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE_WINDOW, PageWindow));
-#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 2981 "/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 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo_open_with_raw_external_editor (_tmp6_, &_inner_error_);
-#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 18796 "PhotoPage.c"
- goto __catch264_g_error;
- }
-#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = app_window_get_instance ();
-#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow));
-#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 18807 "PhotoPage.c"
- }
- goto __finally264;
- __catch264_g_error:
- {
- GError* err = NULL;
- AppWindow* _tmp9_;
- AppWindow* _tmp10_;
- GError* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 2984 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = app_window_get_instance ();
-#line 2984 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 2984 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PAGE_WINDOW, PageWindow));
-#line 2984 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = err;
-#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = resources_launch_editor_failed (_tmp11_);
-#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- app_window_error_message (_tmp13_, NULL);
-#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp13_);
-#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 18842 "PhotoPage.c"
- }
- __finally264:
-#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2979 "/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 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18853 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_on_send_to (LibraryPhotoPage* self)
-{
-#line 2989 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 18865 "PhotoPage.c"
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeCollection* _tmp3_;
-#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- desktop_integration_send_to (_tmp3_);
-#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 18884 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_on_export (LibraryPhotoPage* self)
-{
- ExportDialog* export_dialog = NULL;
- ExportDialog* _tmp0_;
- gint scale = 0;
- ScaleConstraint constraint = 0;
- ExportFormatParameters export_params = {0};
- ExportFormatParameters _tmp1_ = {0};
- ExportDialog* _tmp2_;
- gint _tmp3_ = 0;
- ScaleConstraint _tmp4_ = 0;
- gboolean _tmp5_;
- GFile* save_as = NULL;
- Photo* _tmp6_;
- Photo* _tmp7_;
- ExportFormatParameters _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- Scaling scaling = {0};
- ScaleConstraint _tmp14_;
- gint _tmp15_;
- Scaling _tmp16_ = {0};
- GError * _inner_error_ = NULL;
-#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 2995 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2996 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18922 "PhotoPage.c"
- }
-#line 2998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = export_dialog_new (_ ("Export Photo"));
-#line 2998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_object_ref_sink (_tmp0_);
-#line 2998 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- export_dialog = _tmp0_;
-#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- export_format_parameters_last (&_tmp1_);
-#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- export_params = _tmp1_;
-#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = export_dialog;
-#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = export_dialog_execute (_tmp2_, &_tmp3_, &_tmp4_, &export_params);
-#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scale = _tmp3_;
-#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- constraint = _tmp4_;
-#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!_tmp5_) {
-#line 3004 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (export_dialog);
-#line 3004 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18948 "PhotoPage.c"
- }
-#line 3006 "/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 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = export_params;
-#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = photo_get_export_basename_for_parameters (_tmp7_, &_tmp8_);
-#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = export_ui_choose_file (_tmp10_);
-#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp10_);
-#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- save_as = _tmp12_;
-#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = save_as;
-#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp13_ == NULL) {
-#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (save_as);
-#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (export_dialog);
-#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 18980 "PhotoPage.c"
- }
-#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = constraint;
-#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = scale;
-#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaling_for_constraint (_tmp14_, _tmp15_, FALSE, &_tmp16_);
-#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- scaling = _tmp16_;
-#line 18990 "PhotoPage.c"
- {
- Photo* _tmp17_;
- Photo* _tmp18_;
- GFile* _tmp19_;
- Scaling _tmp20_;
- ExportFormatParameters _tmp21_;
- JpegQuality _tmp22_;
- Photo* _tmp23_;
- Photo* _tmp24_;
- ExportFormatParameters _tmp25_;
- ExportFormatParameters _tmp26_;
- ExportFormatMode _tmp27_;
- ExportFormatParameters _tmp28_;
- gboolean _tmp29_;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _tmp17_;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp19_ = save_as;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp20_ = scaling;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp21_ = export_params;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp22_ = _tmp21_.quality;
-#line 3014 "/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 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp24_ = _tmp23_;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp25_ = export_params;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp26_ = export_params;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp27_ = _tmp26_.mode;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp28_ = export_params;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp29_ = _tmp28_.export_metadata;
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo_export (_tmp18_, _tmp19_, &_tmp20_, _tmp22_, photo_get_export_format_for_parameters (_tmp24_, &_tmp25_), _tmp27_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp29_, &_inner_error_);
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp24_);
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 19039 "PhotoPage.c"
- goto __catch265_g_error;
- }
- }
- goto __finally265;
- __catch265_g_error:
- {
- GError* err = NULL;
- GFile* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- GError* _tmp33_;
- const gchar* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
-#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- err = _inner_error_;
-#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _inner_error_ = NULL;
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp30_ = save_as;
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp31_ = g_file_get_path (_tmp30_);
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp32_ = _tmp31_;
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp33_ = err;
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp34_ = _tmp33_->message;
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp35_ = g_strdup_printf (_ ("Unable to export %s: %s"), _tmp32_, _tmp34_);
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp36_ = _tmp35_;
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- app_window_error_message (_tmp36_, NULL);
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp36_);
-#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_free0 (_tmp32_);
-#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_error_free0 (err);
-#line 19080 "PhotoPage.c"
- }
- __finally265:
-#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (save_as);
-#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (export_dialog);
-#line 3013 "/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 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 19095 "PhotoPage.c"
- }
-#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (save_as);
-#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (export_dialog);
-#line 19101 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_publish (LibraryPhotoPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
-#line 3022 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) > 0;
-#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp2_) {
-#line 19123 "PhotoPage.c"
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeCollection* _tmp6_;
-#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = view_collection_get_selected_sources (_tmp4_);
-#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- publishing_ui_publishing_dialog_go (_tmp6_);
-#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 19142 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_on_increase_rating (LibraryPhotoPage* self)
-{
- gboolean _tmp0_ = FALSE;
- SetRatingSingleCommand* command = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_;
- SetRatingSingleCommand* _tmp3_;
- SetRatingSingleCommand* _tmp4_;
- CommandManager* _tmp5_;
- CommandManager* _tmp6_;
- SetRatingSingleCommand* _tmp7_;
-#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 19165 "PhotoPage.c"
- } else {
-#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 19169 "PhotoPage.c"
- }
-#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 3030 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 19175 "PhotoPage.c"
- }
-#line 3032 "/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 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = set_rating_single_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource), TRUE);
-#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp4_;
-#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = command;
-#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command));
-#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp6_);
-#line 3035 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_rating_menu_item_sensitivity (self);
-#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 19203 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_decrease_rating (LibraryPhotoPage* self)
-{
- gboolean _tmp0_ = FALSE;
- SetRatingSingleCommand* command = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_;
- SetRatingSingleCommand* _tmp3_;
- SetRatingSingleCommand* _tmp4_;
- CommandManager* _tmp5_;
- CommandManager* _tmp6_;
- SetRatingSingleCommand* _tmp7_;
-#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 19225 "PhotoPage.c"
- } else {
-#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 19229 "PhotoPage.c"
- }
-#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 3040 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 19235 "PhotoPage.c"
- }
-#line 3042 "/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 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = set_rating_single_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource), FALSE);
-#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp4_;
-#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = command;
-#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command));
-#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp6_);
-#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_rating_menu_item_sensitivity (self);
-#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 19263 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_set_rating (LibraryPhotoPage* self,
- Rating rating)
-{
- gboolean _tmp0_ = FALSE;
- SetRatingSingleCommand* command = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_;
- SetRatingSingleCommand* _tmp3_;
- SetRatingSingleCommand* _tmp4_;
- CommandManager* _tmp5_;
- CommandManager* _tmp6_;
- SetRatingSingleCommand* _tmp7_;
-#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = TRUE;
-#line 19286 "PhotoPage.c"
- } else {
-#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 19290 "PhotoPage.c"
- }
-#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 3050 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 19296 "PhotoPage.c"
- }
-#line 3052 "/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 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = set_rating_single_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource), rating);
-#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command = _tmp4_;
-#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = command;
-#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command));
-#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp6_);
-#line 3055 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_update_rating_menu_item_sensitivity (self);
-#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (command);
-#line 19324 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_rate_rejected (LibraryPhotoPage* self)
-{
-#line 3058 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3059 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_set_rating (self, RATING_REJECTED);
-#line 19335 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_rate_unrated (LibraryPhotoPage* self)
-{
-#line 3062 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3063 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_set_rating (self, RATING_UNRATED);
-#line 19346 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_rate_one (LibraryPhotoPage* self)
-{
-#line 3066 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3067 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_set_rating (self, RATING_ONE);
-#line 19357 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_rate_two (LibraryPhotoPage* self)
-{
-#line 3070 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3071 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_set_rating (self, RATING_TWO);
-#line 19368 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_rate_three (LibraryPhotoPage* self)
-{
-#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3075 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_set_rating (self, RATING_THREE);
-#line 19379 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_rate_four (LibraryPhotoPage* self)
-{
-#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3079 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_set_rating (self, RATING_FOUR);
-#line 19390 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_rate_five (LibraryPhotoPage* self)
-{
-#line 3082 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3083 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_on_set_rating (self, RATING_FIVE);
-#line 19401 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_update_rating_menu_item_sensitivity (LibraryPhotoPage* self)
-{
- Photo* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- Photo* _tmp4_;
- Photo* _tmp5_;
- Photo* _tmp6_;
- Photo* _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
- Photo* _tmp10_;
- Photo* _tmp11_;
- Photo* _tmp12_;
- Photo* _tmp13_;
- Photo* _tmp14_;
- Photo* _tmp15_;
- Photo* _tmp16_;
- Photo* _tmp17_;
-#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3087 "/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 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_REJECTED);
-#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 3088 "/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 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_UNRATED);
-#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 3089 "/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 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_ONE);
-#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 3090 "/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 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_TWO);
-#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 3091 "/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 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_THREE);
-#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 3092 "/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 3092 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 3092 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_FOUR);
-#line 3092 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 3093 "/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 3093 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 3093 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_FIVE);
-#line 3093 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating", rating_can_increase (media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_SOURCE, MediaSource))));
-#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 3095 "/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 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating", rating_can_decrease (media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource))));
-#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp17_);
-#line 19500 "PhotoPage.c"
-}
-
-
-static GVariant*
-_variant_new18 (const gchar* value)
-{
-#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 19509 "PhotoPage.c"
-}
-
-
-static GVariant*
-_variant_new19 (const gchar* value)
-{
-#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 19518 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_update_development_menu_item_sensitivity (LibraryPhotoPage* self)
-{
- PhotoFileFormat format = 0;
- Photo* _tmp0_;
- Photo* _tmp1_;
- PhotoFileFormat _tmp2_;
- PhotoFileFormat _tmp3_;
- PhotoFileFormat _tmp4_;
-#line 3098 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3099 "/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 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = photo_get_master_file_format (_tmp1_);
-#line 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- format = _tmp2_;
-#line 3100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = format;
-#line 3100 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", _tmp3_ == PHOTO_FILE_FORMAT_RAW);
-#line 3102 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = format;
-#line 3102 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_ == PHOTO_FILE_FORMAT_RAW) {
-#line 19551 "PhotoPage.c"
- Photo* _tmp5_;
- Photo* _tmp6_;
- RawDeveloper _tmp7_;
-#line 3105 "/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 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = photo_get_raw_developer (_tmp6_);
-#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- switch (_tmp7_) {
-#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- case RAW_DEVELOPER_SHOTWELL:
-#line 19567 "PhotoPage.c"
- {
- GAction* _tmp8_;
- GAction* _tmp9_;
- GVariant* _tmp10_;
-#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper");
-#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = _variant_new18 ("Shotwell");
-#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_action_change_state (_tmp9_, _tmp10_);
-#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_variant_unref0 (_tmp10_);
-#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 19586 "PhotoPage.c"
- }
-#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- case RAW_DEVELOPER_CAMERA:
-#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- case RAW_DEVELOPER_EMBEDDED:
-#line 19592 "PhotoPage.c"
- {
- GAction* _tmp11_;
- GAction* _tmp12_;
- GVariant* _tmp13_;
-#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper");
-#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = _variant_new19 ("Camera");
-#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_action_change_state (_tmp12_, _tmp13_);
-#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_variant_unref0 (_tmp13_);
-#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 3113 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- break;
-#line 19611 "PhotoPage.c"
- }
- default:
- {
-#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_assert_not_reached ();
-#line 19617 "PhotoPage.c"
- }
- }
- }
-}
-
-
-static void
-library_photo_page_on_metadata_altered (LibraryPhotoPage* self,
- GeeMap* map)
-{
- gboolean _tmp0_ = FALSE;
- Photo* _tmp1_;
- Photo* _tmp2_;
- gboolean _tmp3_;
-#line 3121 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3121 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 3122 "/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 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject));
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp3_) {
-#line 19646 "PhotoPage.c"
- Photo* _tmp4_;
- Photo* _tmp5_;
- gpointer _tmp6_;
- Alteration* _tmp7_;
-#line 3122 "/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 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = gee_map_get (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_OBJECT, DataObject));
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = (Alteration*) _tmp6_;
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = alteration_has_subject (_tmp7_, "metadata");
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _alteration_unref0 (_tmp7_);
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 19665 "PhotoPage.c"
- } else {
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = FALSE;
-#line 19669 "PhotoPage.c"
- }
-#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp0_) {
-#line 3123 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL);
-#line 19675 "PhotoPage.c"
- }
-}
-
-
-static void
-library_photo_page_on_add_tags (LibraryPhotoPage* self)
-{
- AddTagsDialog* dialog = NULL;
- AddTagsDialog* _tmp0_;
- gchar** names = NULL;
- AddTagsDialog* _tmp1_;
- gint _tmp2_;
- gchar** _tmp3_;
- gint names_length1;
- gint _names_size_;
- gchar** _tmp4_;
- gint _tmp4__length1;
-#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3127 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = add_tags_dialog_new ();
-#line 3127 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dialog = _tmp0_;
-#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = dialog;
-#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = add_tags_dialog_execute (_tmp1_, &_tmp2_);
-#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- names = _tmp3_;
-#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- names_length1 = _tmp2_;
-#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _names_size_ = names_length1;
-#line 3129 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = names;
-#line 3129 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4__length1 = names_length1;
-#line 3129 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp4_ != NULL) {
-#line 19715 "PhotoPage.c"
- CommandManager* _tmp5_;
- CommandManager* _tmp6_;
- HierarchicalTagIndex* _tmp7_;
- HierarchicalTagIndex* _tmp8_;
- gchar** _tmp9_;
- gint _tmp9__length1;
- gint _tmp10_;
- gchar** _tmp11_;
- gchar** _tmp12_;
- gint _tmp12__length1;
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- GeeList* _tmp15_;
- GeeCollection* _tmp16_;
- AddTagsCommand* _tmp17_;
- AddTagsCommand* _tmp18_;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = hierarchical_tag_index_get_global_index ();
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = names;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9__length1 = names_length1;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = hierarchical_tag_index_get_paths_for_names_array (_tmp8_, _tmp9_, _tmp9__length1, &_tmp10_);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12__length1 = _tmp10_;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = _tmp13_;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp15_ = view_collection_get_selected_sources (_tmp14_);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp17_ = add_tags_command_new (_tmp12_, _tmp10_, _tmp16_);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp18_ = _tmp17_;
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_COMMAND, Command));
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp14_);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _hierarchical_tag_index_unref0 (_tmp8_);
-#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp6_);
-#line 19776 "PhotoPage.c"
- }
-#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL);
-#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _text_entry_dialog_mediator_unref0 (dialog);
-#line 19782 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_on_modify_tags (LibraryPhotoPage* self)
-{
- LibraryPhoto* photo = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- DataView* _tmp2_;
- DataView* _tmp3_;
- DataSource* _tmp4_;
- LibraryPhoto* _tmp5_;
- ModifyTagsDialog* dialog = NULL;
- LibraryPhoto* _tmp6_;
- ModifyTagsDialog* _tmp7_;
- GeeArrayList* new_tags = NULL;
- ModifyTagsDialog* _tmp8_;
- GeeArrayList* _tmp9_;
- GeeArrayList* _tmp10_;
- CommandManager* _tmp11_;
- CommandManager* _tmp12_;
- LibraryPhoto* _tmp13_;
- GeeArrayList* _tmp14_;
- ModifyTagsCommand* _tmp15_;
- ModifyTagsCommand* _tmp16_;
-#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self));
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = view_collection_get_selected_at (_tmp1_, 0);
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = data_view_get_source (_tmp3_);
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- photo = _tmp5_;
-#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp6_ = photo;
-#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp7_ = modify_tags_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- dialog = _tmp7_;
-#line 3140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp8_ = dialog;
-#line 3140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp9_ = modify_tags_dialog_execute (_tmp8_);
-#line 3140 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- new_tags = _tmp9_;
-#line 3142 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp10_ = new_tags;
-#line 3142 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- if (_tmp10_ == NULL) {
-#line 3143 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (new_tags);
-#line 3143 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _text_entry_dialog_mediator_unref0 (dialog);
-#line 3143 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 3143 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return;
-#line 19853 "PhotoPage.c"
- }
-#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp11_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp13_ = photo;
-#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp14_ = new_tags;
-#line 3145 "/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 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp16_ = _tmp15_;
-#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- command_manager_execute (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command));
-#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _command_manager_unref0 (_tmp12_);
-#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (new_tags);
-#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _text_entry_dialog_mediator_unref0 (dialog);
-#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (photo);
-#line 19879 "PhotoPage.c"
-}
-
-
-static gboolean
-library_photo_page_library_photo_page_view_filter_real_predicate (ViewFilter* base,
- DataView* view)
-{
- LibraryPhotoPageLibraryPhotoPageViewFilter * self;
- gboolean result = FALSE;
- DataSource* _tmp0_;
- MediaSource* _tmp1_;
- gboolean _tmp2_;
-#line 2335 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER, LibraryPhotoPageLibraryPhotoPageViewFilter);
-#line 2335 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = data_view_get_source (view);
-#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = !media_source_is_trashed (_tmp1_);
-#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- result = _tmp2_;
-#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return result;
-#line 19908 "PhotoPage.c"
-}
-
-
-static LibraryPhotoPageLibraryPhotoPageViewFilter*
-library_photo_page_library_photo_page_view_filter_construct (GType object_type)
-{
- LibraryPhotoPageLibraryPhotoPageViewFilter* self = NULL;
-#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = (LibraryPhotoPageLibraryPhotoPageViewFilter*) view_filter_construct (object_type);
-#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- return self;
-#line 19920 "PhotoPage.c"
-}
-
-
-static LibraryPhotoPageLibraryPhotoPageViewFilter*
-library_photo_page_library_photo_page_view_filter_new (void)
-{
-#line 2334 "/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 19929 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_library_photo_page_view_filter_class_init (LibraryPhotoPageLibraryPhotoPageViewFilterClass * klass)
-{
-#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_library_photo_page_view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) library_photo_page_library_photo_page_view_filter_real_predicate;
-#line 19940 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_library_photo_page_view_filter_instance_init (LibraryPhotoPageLibraryPhotoPageViewFilter * self)
-{
-}
-
-
-static GType
-library_photo_page_library_photo_page_view_filter_get_type (void)
-{
- static volatile gsize library_photo_page_library_photo_page_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&library_photo_page_library_photo_page_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoPageLibraryPhotoPageViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_page_library_photo_page_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoPageLibraryPhotoPageViewFilter), 0, (GInstanceInitFunc) library_photo_page_library_photo_page_view_filter_instance_init, NULL };
- GType library_photo_page_library_photo_page_view_filter_type_id;
- library_photo_page_library_photo_page_view_filter_type_id = g_type_register_static (TYPE_VIEW_FILTER, "LibraryPhotoPageLibraryPhotoPageViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&library_photo_page_library_photo_page_view_filter_type_id__volatile, library_photo_page_library_photo_page_view_filter_type_id);
- }
- return library_photo_page_library_photo_page_view_filter_type_id__volatile;
-}
-
-
-static void
-library_photo_page_class_init (LibraryPhotoPageClass * klass)
-{
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- library_photo_page_parent_class = g_type_class_peek_parent (klass);
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_type_class_add_private (klass, sizeof (LibraryPhotoPagePrivate));
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) library_photo_page_real_init_collect_ui_filenames;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) library_photo_page_real_add_actions;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) library_photo_page_real_remove_actions;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) library_photo_page_real_init_collect_injection_groups;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) library_photo_page_real_update_actions;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((LibraryPhotoPageClass *) klass)->developer_changed = (void (*) (LibraryPhotoPage *, RawDeveloper)) library_photo_page_real_developer_changed;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) library_photo_page_real_switched_to;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->switching_from = (void (*) (Page *)) library_photo_page_real_switching_from;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->get_bottom_left_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) library_photo_page_real_get_bottom_left_trinket;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->get_top_right_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) library_photo_page_real_get_top_right_trinket;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_increase_size = (void (*) (EditingHostPage *)) library_photo_page_real_on_increase_size;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_decrease_size = (void (*) (EditingHostPage *)) library_photo_page_real_on_decrease_size;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_zoom_slider_key_press = (gboolean (*) (EditingHostPage *, GdkEventKey*)) library_photo_page_real_on_zoom_slider_key_press;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->update_ui = (void (*) (EditingHostPage *, gboolean)) library_photo_page_real_update_ui;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->notify_photo_backing_missing = (void (*) (EditingHostPage *, Photo*, gboolean)) library_photo_page_real_notify_photo_backing_missing;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) library_photo_page_real_key_press_event;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_double_click = (gboolean (*) (EditingHostPage *, GdkEventButton*)) library_photo_page_real_on_double_click;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_left_released = (gboolean (*) (Page *, GdkEventButton*)) library_photo_page_real_on_left_released;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_context_buttonpress = (gboolean (*) (Page *, GdkEventButton*)) library_photo_page_real_on_context_buttonpress;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- ((PageClass *) klass)->on_context_keypress = (gboolean (*) (Page *)) library_photo_page_real_on_context_keypress;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- G_OBJECT_CLASS (klass)->finalize = library_photo_page_finalize;
-#line 20013 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_instance_init (LibraryPhotoPage * self)
-{
- LibraryPhotoPageLibraryPhotoPageViewFilter* _tmp0_;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv = LIBRARY_PHOTO_PAGE_GET_PRIVATE (self);
-#line 2340 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->return_page = NULL;
-#line 2341 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->return_to_collection_on_release = FALSE;
-#line 2342 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = library_photo_page_library_photo_page_view_filter_new ();
-#line 2342 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self->priv->filter = _tmp0_;
-#line 20031 "PhotoPage.c"
-}
-
-
-static void
-library_photo_page_finalize (GObject * obj)
-{
- LibraryPhotoPage * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- LibraryPhotoSourceCollection* _tmp2_;
- guint _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- guint _tmp6_;
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage);
-#line 2364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp0_ = library_photo_global;
-#line 2364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 2364 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _library_photo_page_on_photo_destroyed_source_collection_item_destroyed, self);
-#line 2365 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp2_ = library_photo_global;
-#line 2365 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 2365 "/home/jens/Source/shotwell/src/PhotoPage.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) _library_photo_page_on_metadata_altered_data_collection_items_altered, self);
-#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_parse_name ("external-app-changed", TYPE_CONFIGURATION_FACADE, &_tmp6_, NULL, FALSE);
-#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _library_photo_page_on_external_app_changed_configuration_facade_external_app_changed, self);
-#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 2340 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->return_page);
-#line 2342 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _view_filter_unref0 (self->priv->filter);
-#line 2835 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- _g_object_unref0 (self->priv->context_menu);
-#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala"
- G_OBJECT_CLASS (library_photo_page_parent_class)->finalize (obj);
-#line 20078 "PhotoPage.c"
-}
-
-
-GType
-library_photo_page_get_type (void)
-{
- static volatile gsize library_photo_page_type_id__volatile = 0;
- if (g_once_init_enter (&library_photo_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoPage), 0, (GInstanceInitFunc) library_photo_page_instance_init, NULL };
- GType library_photo_page_type_id;
- library_photo_page_type_id = g_type_register_static (TYPE_EDITING_HOST_PAGE, "LibraryPhotoPage", &g_define_type_info, 0);
- g_once_init_leave (&library_photo_page_type_id__volatile, library_photo_page_type_id);
- }
- return library_photo_page_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala
index 5c2a1de..af1d50c 100644
--- a/src/PhotoPage.vala
+++ b/src/PhotoPage.vala
@@ -396,6 +396,9 @@ public abstract class EditingHostPage : SinglePhotoPage {
private Gtk.ToggleToolButton redeye_button = null;
private Gtk.ToggleToolButton adjust_button = null;
private Gtk.ToggleToolButton straighten_button = null;
+#if ENABLE_FACES
+ private Gtk.ToggleToolButton faces_button = null;
+#endif
private Gtk.ToolButton enhance_button = null;
private Gtk.Scale zoom_slider = null;
private Gtk.ToolButton prev_button = new Gtk.ToolButton(null, Resources.PREVIOUS_LABEL);
@@ -446,7 +449,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
// crop tool
crop_button = new Gtk.ToggleToolButton ();
- crop_button.set_icon_name("crop");
+ crop_button.set_icon_name("image-crop-symbolic");
crop_button.set_label(Resources.CROP_LABEL);
crop_button.set_tooltip_text(Resources.CROP_TOOLTIP);
crop_button.toggled.connect(on_crop_toggled);
@@ -455,7 +458,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
// straightening tool
straighten_button = new Gtk.ToggleToolButton ();
- straighten_button.set_icon_name("straighten");
+ straighten_button.set_icon_name(Resources.STRAIGHTEN);
straighten_button.set_label(Resources.STRAIGHTEN_LABEL);
straighten_button.set_tooltip_text(Resources.STRAIGHTEN_TOOLTIP);
straighten_button.toggled.connect(on_straighten_toggled);
@@ -464,7 +467,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
// redeye reduction tool
redeye_button = new Gtk.ToggleToolButton ();
- redeye_button.set_icon_name("redeye");
+ redeye_button.set_icon_name("stock-eye-symbolic");
redeye_button.set_label(Resources.RED_EYE_LABEL);
redeye_button.set_tooltip_text(Resources.RED_EYE_TOOLTIP);
redeye_button.toggled.connect(on_redeye_toggled);
@@ -488,6 +491,13 @@ public abstract class EditingHostPage : SinglePhotoPage {
enhance_button.is_important = true;
toolbar.insert(enhance_button, -1);
+#if ENABLE_FACES
+ // faces tool
+ insert_faces_button(toolbar);
+ faces_button = new Gtk.ToggleToolButton();
+ //face_button
+#endif
+
// separator to force next/prev buttons to right side of toolbar
Gtk.SeparatorToolItem separator = new Gtk.SeparatorToolItem();
separator.set_expand(true);
@@ -496,8 +506,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
Gtk.Box zoom_group = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
- Gtk.Image zoom_out = new Gtk.Image.from_pixbuf(Resources.load_icon(Resources.ICON_ZOOM_OUT,
- Resources.ICON_ZOOM_SCALE));
+ Gtk.Image zoom_out = new Gtk.Image.from_icon_name("image-zoom-out-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
Gtk.EventBox zoom_out_box = new Gtk.EventBox();
zoom_out_box.set_above_child(true);
zoom_out_box.set_visible_window(false);
@@ -518,8 +527,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
zoom_group.pack_start(zoom_slider, false, false, 0);
- Gtk.Image zoom_in = new Gtk.Image.from_pixbuf(Resources.load_icon(Resources.ICON_ZOOM_IN,
- Resources.ICON_ZOOM_SCALE));
+ Gtk.Image zoom_in = new Gtk.Image.from_icon_name("image-zoom-in-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
Gtk.EventBox zoom_in_box = new Gtk.EventBox();
zoom_in_box.set_above_child(true);
zoom_in_box.set_visible_window(false);
@@ -534,15 +542,19 @@ public abstract class EditingHostPage : SinglePhotoPage {
toolbar.insert(group_wrapper, -1);
+ separator = new Gtk.SeparatorToolItem();
+ separator.set_draw(false);
+ toolbar.insert(separator, -1);
+
// previous button
prev_button.set_tooltip_text(_("Previous photo"));
- prev_button.set_icon_name("go-previous");
+ prev_button.set_icon_name("go-previous-symbolic");
prev_button.clicked.connect(on_previous_photo);
toolbar.insert(prev_button, -1);
// next button
next_button.set_tooltip_text(_("Next photo"));
- next_button.set_icon_name("go-next");
+ next_button.set_icon_name("go-next-symbolic");
next_button.clicked.connect(on_next_photo);
toolbar.insert(next_button, -1);
}
@@ -2226,9 +2238,9 @@ public abstract class EditingHostPage : SinglePhotoPage {
Gtk.Allocation toolbar_alloc;
get_toolbar().get_allocation(out toolbar_alloc);
- Gdk.Screen screen = get_container().get_screen();
- x = screen.get_width();
- y = screen.get_height() - toolbar_alloc.height -
+ var dimensions = Scaling.get_screen_dimensions(get_container());
+ x = dimensions.width;
+ y = dimensions.height - toolbar_alloc.height -
tool_alloc.height - TOOL_WINDOW_SEPARATOR;
// put larger adjust tool off to the side
@@ -2241,9 +2253,9 @@ public abstract class EditingHostPage : SinglePhotoPage {
}
// however, clamp the window so it's never off-screen initially
- Gdk.Screen screen = get_container().get_screen();
- x = x.clamp(0, screen.get_width() - tool_alloc.width);
- y = y.clamp(0, screen.get_height() - tool_alloc.height);
+ var dimensions = Scaling.get_screen_dimensions(get_container());
+ x = x.clamp(0, dimensions.width - tool_alloc.width);
+ y = y.clamp(0, dimensions.height - tool_alloc.height);
tool_window.move(x, y);
tool_window.show();
@@ -2323,6 +2335,14 @@ public abstract class EditingHostPage : SinglePhotoPage {
protected void unset_view_collection() {
parent_view = null;
}
+
+ // This method is intentionally empty --its purpose is to allow overriding
+ // it in LibraryPhotoPage, since FacesTool must only be present in
+ // LibraryMode, but it need to be called from constructor of EditingHostPage
+ // to place it correctly in the toolbar.
+ protected virtual void insert_faces_button(Gtk.Toolbar toolbar) {
+ ;
+ }
}
//
@@ -2337,6 +2357,9 @@ public class LibraryPhotoPage : EditingHostPage {
}
}
+#if ENABLE_FACES
+ private Gtk.ToggleToolButton faces_button = null;
+#endif
private CollectionPage? return_page = null;
private bool return_to_collection_on_release = false;
private LibraryPhotoPageViewFilter filter = new LibraryPhotoPageViewFilter();
@@ -2641,7 +2664,7 @@ public class LibraryPhotoPage : EditingHostPage {
if (!has_photo() || !((LibraryPhoto) get_photo()).is_flagged())
return null;
- return Resources.get_icon(Resources.ICON_FLAGGED_TRINKET);
+ return Resources.get_flagged_trinket(scale);
}
private void on_slideshow() {
@@ -3144,5 +3167,25 @@ public class LibraryPhotoPage : EditingHostPage {
get_command_manager().execute(new ModifyTagsCommand(photo, new_tags));
}
+
+#if ENABLE_FACES
+ private void on_faces_toggled() {
+ on_tool_button_toggled(faces_button, FacesTool.factory);
+ }
+
+ protected void toggle_faces() {
+ faces_button.set_active(!faces_button.get_active());
+ }
+
+ protected override void insert_faces_button(Gtk.Toolbar toolbar) {
+ faces_button = new Gtk.ToggleToolButton.from_stock(Resources.FACES_TOOL);
+ faces_button.set_icon_name(Resources.ICON_FACES);
+ faces_button.set_label(Resources.FACES_LABEL);
+ faces_button.set_tooltip_text(Resources.FACES_TOOLTIP);
+ faces_button.toggled.connect(on_faces_toggled);
+ faces_button.is_important = true;
+ toolbar.insert(faces_button, -1);
+ }
+#endif
}
diff --git a/src/PixbufCache.c b/src/PixbufCache.c
deleted file mode 100644
index c4d3563..0000000
--- a/src/PixbufCache.c
+++ /dev/null
@@ -1,2689 +0,0 @@
-/* PixbufCache.c generated by valac 0.40.4, the Vala compiler
- * generated from PixbufCache.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-#define TYPE_PIXBUF_CACHE (pixbuf_cache_get_type ())
-#define PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXBUF_CACHE, PixbufCache))
-#define PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXBUF_CACHE, PixbufCacheClass))
-#define IS_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXBUF_CACHE))
-#define IS_PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXBUF_CACHE))
-#define PIXBUF_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXBUF_CACHE, PixbufCacheClass))
-
-typedef struct _PixbufCache PixbufCache;
-typedef struct _PixbufCacheClass PixbufCacheClass;
-typedef struct _PixbufCachePrivate PixbufCachePrivate;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define PIXBUF_CACHE_TYPE_PHOTO_TYPE (pixbuf_cache_photo_type_get_type ())
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _Scaling Scaling;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define PIXBUF_CACHE_TYPE_FETCH_JOB (pixbuf_cache_fetch_job_get_type ())
-#define PIXBUF_CACHE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob))
-#define PIXBUF_CACHE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJobClass))
-#define PIXBUF_CACHE_IS_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_FETCH_JOB))
-#define PIXBUF_CACHE_IS_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_FETCH_JOB))
-#define PIXBUF_CACHE_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJobClass))
-
-typedef struct _PixbufCacheFetchJob PixbufCacheFetchJob;
-typedef struct _PixbufCacheFetchJobClass PixbufCacheFetchJobClass;
-enum {
- PIXBUF_CACHE_0_PROPERTY,
- PIXBUF_CACHE_NUM_PROPERTIES
-};
-static GParamSpec* pixbuf_cache_properties[PIXBUF_CACHE_NUM_PROPERTIES];
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _PixbufCacheFetchJobPrivate PixbufCacheFetchJobPrivate;
-
-#define PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB (pixbuf_cache_baseline_fetch_job_get_type ())
-#define PIXBUF_CACHE_BASELINE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, PixbufCacheBaselineFetchJob))
-#define PIXBUF_CACHE_BASELINE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, PixbufCacheBaselineFetchJobClass))
-#define PIXBUF_CACHE_IS_BASELINE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB))
-#define PIXBUF_CACHE_IS_BASELINE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB))
-#define PIXBUF_CACHE_BASELINE_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, PixbufCacheBaselineFetchJobClass))
-
-typedef struct _PixbufCacheBaselineFetchJob PixbufCacheBaselineFetchJob;
-typedef struct _PixbufCacheBaselineFetchJobClass PixbufCacheBaselineFetchJobClass;
-
-#define PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB (pixbuf_cache_master_fetch_job_get_type ())
-#define PIXBUF_CACHE_MASTER_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, PixbufCacheMasterFetchJob))
-#define PIXBUF_CACHE_MASTER_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, PixbufCacheMasterFetchJobClass))
-#define PIXBUF_CACHE_IS_MASTER_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB))
-#define PIXBUF_CACHE_IS_MASTER_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB))
-#define PIXBUF_CACHE_MASTER_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, PixbufCacheMasterFetchJobClass))
-
-typedef struct _PixbufCacheMasterFetchJob PixbufCacheMasterFetchJob;
-typedef struct _PixbufCacheMasterFetchJobClass PixbufCacheMasterFetchJobClass;
-
-#define PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH (pixbuf_cache_pixbuf_cache_batch_get_type ())
-#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatch))
-#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatchClass))
-#define PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH))
-#define PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH))
-#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatchClass))
-
-typedef struct _PixbufCachePixbufCacheBatch PixbufCachePixbufCacheBatch;
-typedef struct _PixbufCachePixbufCacheBatchClass PixbufCachePixbufCacheBatchClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-typedef struct _PixbufCachePixbufCacheBatchPrivate PixbufCachePixbufCacheBatchPrivate;
-enum {
- PIXBUF_CACHE_PIXBUF_CACHE_BATCH_0_PROPERTY,
- PIXBUF_CACHE_PIXBUF_CACHE_BATCH_NUM_PROPERTIES
-};
-static GParamSpec* pixbuf_cache_pixbuf_cache_batch_properties[PIXBUF_CACHE_PIXBUF_CACHE_BATCH_NUM_PROPERTIES];
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-
-#define TYPE_SEMAPHORE (semaphore_get_type ())
-#define SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEMAPHORE, Semaphore))
-#define SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEMAPHORE, SemaphoreClass))
-#define IS_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEMAPHORE))
-#define IS_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEMAPHORE))
-#define SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEMAPHORE, SemaphoreClass))
-
-typedef struct _Semaphore Semaphore;
-typedef struct _SemaphoreClass SemaphoreClass;
-#define _abstract_semaphore_unref0(var) ((var == NULL) ? NULL : (var = (abstract_semaphore_unref (var), NULL)))
-typedef struct _PixbufCacheBaselineFetchJobPrivate PixbufCacheBaselineFetchJobPrivate;
-typedef struct _PixbufCacheMasterFetchJobPrivate PixbufCacheMasterFetchJobPrivate;
-enum {
- PIXBUF_CACHE_FETCHED_SIGNAL,
- PIXBUF_CACHE_NUM_SIGNALS
-};
-static guint pixbuf_cache_signals[PIXBUF_CACHE_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _PixbufCache {
- GObject parent_instance;
- PixbufCachePrivate * priv;
-};
-
-struct _PixbufCacheClass {
- GObjectClass parent_class;
-};
-
-typedef enum {
- PIXBUF_CACHE_PHOTO_TYPE_BASELINE,
- PIXBUF_CACHE_PHOTO_TYPE_MASTER
-} PixbufCachePhotoType;
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef gboolean (*PixbufCacheCacheFilter) (Photo* photo, void* user_data);
-struct _PixbufCachePrivate {
- SourceCollection* sources;
- PixbufCachePhotoType type;
- gint max_count;
- Scaling scaling;
- PixbufCacheCacheFilter filter;
- gpointer filter_target;
- GeeHashMap* cache;
- GeeArrayList* lru;
- GeeHashMap* in_progress;
-};
-
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _PixbufCacheFetchJob {
- BackgroundJob parent_instance;
- PixbufCacheFetchJobPrivate * priv;
- BackgroundJobJobPriority priority;
- Photo* photo;
- Scaling scaling;
- GdkPixbuf* pixbuf;
- GError* err;
-};
-
-struct _PixbufCacheFetchJobClass {
- BackgroundJobClass parent_class;
-};
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-struct _PixbufCachePixbufCacheBatch {
- GeeTreeMultiMap parent_instance;
- PixbufCachePixbufCacheBatchPrivate * priv;
-};
-
-struct _PixbufCachePixbufCacheBatchClass {
- GeeTreeMultiMapClass parent_class;
-};
-
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-struct _PixbufCacheBaselineFetchJob {
- PixbufCacheFetchJob parent_instance;
- PixbufCacheBaselineFetchJobPrivate * priv;
-};
-
-struct _PixbufCacheBaselineFetchJobClass {
- PixbufCacheFetchJobClass parent_class;
-};
-
-struct _PixbufCacheMasterFetchJob {
- PixbufCacheFetchJob parent_instance;
- PixbufCacheMasterFetchJobPrivate * priv;
-};
-
-struct _PixbufCacheMasterFetchJobClass {
- PixbufCacheFetchJobClass parent_class;
-};
-
-
-static gpointer pixbuf_cache_parent_class = NULL;
-static Workers* pixbuf_cache_background_workers;
-static Workers* pixbuf_cache_background_workers = NULL;
-static gpointer pixbuf_cache_pixbuf_cache_batch_parent_class = NULL;
-static gpointer pixbuf_cache_fetch_job_parent_class = NULL;
-static gpointer pixbuf_cache_baseline_fetch_job_parent_class = NULL;
-static gpointer pixbuf_cache_master_fetch_job_parent_class = NULL;
-
-GType pixbuf_cache_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType pixbuf_cache_photo_type_get_type (void) G_GNUC_CONST;
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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;
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-static GType pixbuf_cache_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define PIXBUF_CACHE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PIXBUF_CACHE, PixbufCachePrivate))
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void pixbuf_cache_on_sources_altered (PixbufCache* self,
- GeeMap* map);
-static void _pixbuf_cache_on_sources_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void pixbuf_cache_on_sources_removed (PixbufCache* self,
- GeeIterable* removed);
-static void _pixbuf_cache_on_sources_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self);
-void background_job_cancel (BackgroundJob* self);
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-PixbufCache* pixbuf_cache_new (SourceCollection* sources,
- PixbufCachePhotoType type,
- Scaling* scaling,
- gint max_count,
- PixbufCacheCacheFilter filter,
- void* filter_target);
-PixbufCache* pixbuf_cache_construct (GType object_type,
- SourceCollection* sources,
- PixbufCachePhotoType type,
- Scaling* scaling,
- gint max_count,
- PixbufCacheCacheFilter filter,
- void* filter_target);
-guint workers_thread_per_cpu_minus_one (void);
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-void pixbuf_cache_get_scaling (PixbufCache* self,
- Scaling* result);
-GdkPixbuf* pixbuf_cache_get_ready_pixbuf (PixbufCache* self,
- Photo* photo);
-static GdkPixbuf* pixbuf_cache_get_cached (PixbufCache* self,
- Photo* photo);
-GdkPixbuf* pixbuf_cache_fetch (PixbufCache* self,
- Photo* photo,
- GError** error);
-GFile* photo_get_actual_file (Photo* self);
-static void pixbuf_cache_decache (PixbufCache* self,
- Photo* photo);
-void background_job_wait_for_completion (BackgroundJob* self);
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-static void pixbuf_cache_encache (PixbufCache* self,
- Photo* photo,
- GdkPixbuf* pixbuf);
-void pixbuf_cache_drop (PixbufCache* self,
- Photo* photo);
-gboolean pixbuf_cache_cancel_prefetch (PixbufCache* self,
- Photo* photo);
-void pixbuf_cache_prefetch (PixbufCache* self,
- Photo* photo,
- BackgroundJobJobPriority priority,
- gboolean force);
-static void pixbuf_cache_prioritize (PixbufCache* self,
- Photo* photo);
-static void pixbuf_cache_on_fetched (PixbufCache* self,
- BackgroundJob* j);
-static void _pixbuf_cache_on_fetched_completion_callback (BackgroundJob* job,
- gpointer self);
-static PixbufCacheBaselineFetchJob* pixbuf_cache_baseline_fetch_job_new (PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target);
-static PixbufCacheBaselineFetchJob* pixbuf_cache_baseline_fetch_job_construct (GType object_type,
- PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target);
-static GType pixbuf_cache_baseline_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static PixbufCacheMasterFetchJob* pixbuf_cache_master_fetch_job_new (PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target);
-static PixbufCacheMasterFetchJob* pixbuf_cache_master_fetch_job_construct (GType object_type,
- PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target);
-static GType pixbuf_cache_master_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-void pixbuf_cache_prefetch_many (PixbufCache* self,
- GeeCollection* photos,
- BackgroundJobJobPriority priority,
- gboolean force);
-GType pixbuf_cache_pixbuf_cache_batch_get_type (void) G_GNUC_CONST;
-void pixbuf_cache_prefetch_batch (PixbufCache* self,
- PixbufCachePixbufCacheBatch* batch,
- gboolean force);
-void pixbuf_cache_cancel_all (PixbufCache* self);
-gchar* data_object_to_string (DataObject* self);
-gboolean alteration_has_subject (Alteration* self,
- const gchar* subject);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_POINTER (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-PixbufCachePixbufCacheBatch* pixbuf_cache_pixbuf_cache_batch_new (void);
-PixbufCachePixbufCacheBatch* pixbuf_cache_pixbuf_cache_batch_construct (GType object_type);
-gint background_job_job_priority_compare_func (BackgroundJobJobPriority a,
- BackgroundJobJobPriority b);
-static PixbufCacheFetchJob* pixbuf_cache_fetch_job_construct (GType object_type,
- PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target);
-Semaphore* semaphore_new (void);
-Semaphore* semaphore_construct (GType object_type);
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-GType semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-static BackgroundJobJobPriority pixbuf_cache_fetch_job_real_get_priority (BackgroundJob* base);
-static void pixbuf_cache_fetch_job_finalize (BackgroundJob * obj);
-static void pixbuf_cache_baseline_fetch_job_real_execute (BackgroundJob* base);
-static void pixbuf_cache_master_fetch_job_real_execute (BackgroundJob* base);
-GdkPixbuf* photo_get_master_pixbuf (Photo* self,
- Scaling* scaling,
- gboolean rotate,
- GError** error);
-static void pixbuf_cache_finalize (GObject * obj);
-
-
-static void
-_pixbuf_cache_on_sources_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 111 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_on_sources_altered ((PixbufCache*) self, items);
-#line 601 "PixbufCache.c"
-}
-
-
-static void
-_pixbuf_cache_on_sources_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self)
-{
-#line 112 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_on_sources_removed ((PixbufCache*) self, removed);
-#line 612 "PixbufCache.c"
-}
-
-
-GType
-pixbuf_cache_photo_type_get_type (void)
-{
- static volatile gsize pixbuf_cache_photo_type_type_id__volatile = 0;
- if (g_once_init_enter (&pixbuf_cache_photo_type_type_id__volatile)) {
- static const GEnumValue values[] = {{PIXBUF_CACHE_PHOTO_TYPE_BASELINE, "PIXBUF_CACHE_PHOTO_TYPE_BASELINE", "baseline"}, {PIXBUF_CACHE_PHOTO_TYPE_MASTER, "PIXBUF_CACHE_PHOTO_TYPE_MASTER", "master"}, {0, NULL, NULL}};
- GType pixbuf_cache_photo_type_type_id;
- pixbuf_cache_photo_type_type_id = g_enum_register_static ("PixbufCachePhotoType", values);
- g_once_init_leave (&pixbuf_cache_photo_type_type_id__volatile, pixbuf_cache_photo_type_type_id);
- }
- return pixbuf_cache_photo_type_type_id__volatile;
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 87 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 635 "PixbufCache.c"
-}
-
-
-PixbufCache*
-pixbuf_cache_construct (GType object_type,
- SourceCollection* sources,
- PixbufCachePhotoType type,
- Scaling* scaling,
- gint max_count,
- PixbufCacheCacheFilter filter,
- void* filter_target)
-{
- PixbufCache * self = NULL;
- SourceCollection* _tmp0_;
- Scaling _tmp1_;
- Workers* _tmp2_;
-#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL);
-#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = (PixbufCache*) g_object_new (object_type, NULL);
-#line 87 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = _data_collection_ref0 (sources);
-#line 87 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 87 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priv->sources = _tmp0_;
-#line 88 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priv->type = type;
-#line 89 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = *scaling;
-#line 89 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priv->scaling = _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priv->max_count = max_count;
-#line 91 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priv->filter = filter;
-#line 91 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priv->filter_target = filter_target;
-#line 93 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (max_count > 0, "max_count > 0");
-#line 95 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = pixbuf_cache_background_workers;
-#line 95 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp2_ == NULL) {
-#line 682 "PixbufCache.c"
- Workers* _tmp3_;
-#line 96 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = workers_new (workers_thread_per_cpu_minus_one (), FALSE);
-#line 96 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _workers_unref0 (pixbuf_cache_background_workers);
-#line 96 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_background_workers = _tmp3_;
-#line 690 "PixbufCache.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (type != PIXBUF_CACHE_PHOTO_TYPE_MASTER) {
-#line 101 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _pixbuf_cache_on_sources_altered_data_collection_items_altered, self, 0);
-#line 696 "PixbufCache.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-removed", (GCallback) _pixbuf_cache_on_sources_removed_data_collection_items_removed, self, 0);
-#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self;
-#line 702 "PixbufCache.c"
-}
-
-
-PixbufCache*
-pixbuf_cache_new (SourceCollection* sources,
- PixbufCachePhotoType type,
- Scaling* scaling,
- gint max_count,
- PixbufCacheCacheFilter filter,
- void* filter_target)
-{
-#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return pixbuf_cache_construct (TYPE_PIXBUF_CACHE, sources, type, scaling, max_count, filter, filter_target);
-#line 716 "PixbufCache.c"
-}
-
-
-void
-pixbuf_cache_get_scaling (PixbufCache* self,
- Scaling* result)
-{
- Scaling _tmp0_;
-#line 118 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 119 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priv->scaling;
-#line 119 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- *result = _tmp0_;
-#line 119 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return;
-#line 733 "PixbufCache.c"
-}
-
-
-GdkPixbuf*
-pixbuf_cache_get_ready_pixbuf (PixbufCache* self,
- Photo* photo)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
-#line 123 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PIXBUF_CACHE (self), NULL);
-#line 123 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 124 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = pixbuf_cache_get_cached (self, photo);
-#line 124 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- result = _tmp0_;
-#line 124 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return result;
-#line 753 "PixbufCache.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self ? g_error_copy (self) : NULL;
-#line 762 "PixbufCache.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self ? g_object_ref (self) : NULL;
-#line 771 "PixbufCache.c"
-}
-
-
-GdkPixbuf*
-pixbuf_cache_fetch (PixbufCache* self,
- Photo* photo,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gboolean _tmp2_;
- GdkPixbuf* pixbuf = NULL;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- PixbufCacheFetchJob* job = NULL;
- GeeHashMap* _tmp5_;
- gpointer _tmp6_;
- PixbufCacheFetchJob* _tmp7_;
- GdkPixbuf* _tmp17_ = NULL;
- Scaling _tmp18_;
- GdkPixbuf* _tmp19_;
- GdkPixbuf* _tmp20_;
- GdkPixbuf* _tmp21_;
- GError * _inner_error_ = NULL;
-#line 129 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PIXBUF_CACHE (self), NULL);
-#line 129 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = photo_get_actual_file (photo);
-#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = _tmp0_;
-#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = !g_file_query_exists (_tmp1_, NULL);
-#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp2_) {
-#line 131 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_decache (self, photo);
-#line 813 "PixbufCache.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = pixbuf_cache_get_cached (self, photo);
-#line 133 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf = _tmp3_;
-#line 134 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = pixbuf;
-#line 134 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp4_ != NULL) {
-#line 139 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- result = pixbuf;
-#line 139 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return result;
-#line 827 "PixbufCache.c"
- }
-#line 142 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = self->priv->in_progress;
-#line 142 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 142 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- job = (PixbufCacheFetchJob*) _tmp6_;
-#line 143 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = job;
-#line 143 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp7_ != NULL) {
-#line 839 "PixbufCache.c"
- PixbufCacheFetchJob* _tmp8_;
- PixbufCacheFetchJob* _tmp9_;
- GError* _tmp10_;
- PixbufCacheFetchJob* _tmp14_;
- GdkPixbuf* _tmp15_;
- GdkPixbuf* _tmp16_;
-#line 144 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8_ = job;
-#line 144 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- background_job_wait_for_completion (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 145 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp9_ = job;
-#line 145 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp10_ = _tmp9_->err;
-#line 145 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp10_ != NULL) {
-#line 856 "PixbufCache.c"
- PixbufCacheFetchJob* _tmp11_;
- GError* _tmp12_;
- GError* _tmp13_;
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp11_ = job;
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp12_ = _tmp11_->err;
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp13_ = _g_error_copy0 (_tmp12_);
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _inner_error_ = _tmp13_;
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (pixbuf);
-#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return NULL;
-#line 876 "PixbufCache.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp14_ = job;
-#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp15_ = _tmp14_->pixbuf;
-#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- result = _tmp16_;
-#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (pixbuf);
-#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return result;
-#line 892 "PixbufCache.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp18_ = self->priv->scaling;
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp19_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp18_, &_inner_error_);
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp17_ = _tmp19_;
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (pixbuf);
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return NULL;
-#line 910 "PixbufCache.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp20_ = _tmp17_;
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp17_ = NULL;
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (pixbuf);
-#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf = _tmp20_;
-#line 157 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp21_ = pixbuf;
-#line 157 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_encache (self, photo, _tmp21_);
-#line 159 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- result = pixbuf;
-#line 159 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp17_);
-#line 159 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 159 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return result;
-#line 932 "PixbufCache.c"
-}
-
-
-void
-pixbuf_cache_drop (PixbufCache* self,
- Photo* photo)
-{
-#line 165 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 165 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 166 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_cancel_prefetch (self, photo);
-#line 167 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_decache (self, photo);
-#line 948 "PixbufCache.c"
-}
-
-
-static void
-_pixbuf_cache_on_fetched_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_on_fetched ((PixbufCache*) self, job);
-#line 958 "PixbufCache.c"
-}
-
-
-void
-pixbuf_cache_prefetch (PixbufCache* self,
- Photo* photo,
- BackgroundJobJobPriority priority,
- gboolean force)
-{
- GFile* _tmp0_;
- GFile* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_ = FALSE;
- GeeHashMap* _tmp5_;
- gboolean _tmp6_ = FALSE;
- PixbufCacheCacheFilter _tmp7_;
- void* _tmp7__target;
- PixbufCacheFetchJob* job = NULL;
- PixbufCachePhotoType _tmp9_;
- GeeHashMap* _tmp15_;
- PixbufCacheFetchJob* _tmp16_;
- Workers* _tmp17_;
- PixbufCacheFetchJob* _tmp18_;
-#line 172 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 172 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = photo_get_actual_file (photo);
-#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = _tmp0_;
-#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = !g_file_query_exists (_tmp1_, NULL);
-#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp2_) {
-#line 175 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_decache (self, photo);
-#line 998 "PixbufCache.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!force) {
-#line 1002 "PixbufCache.c"
- GeeHashMap* _tmp4_;
-#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = self->priv->cache;
-#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 1008 "PixbufCache.c"
- } else {
-#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = FALSE;
-#line 1012 "PixbufCache.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp3_) {
-#line 178 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_prioritize (self, photo);
-#line 180 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return;
-#line 1020 "PixbufCache.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = self->priv->in_progress;
-#line 183 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) {
-#line 184 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return;
-#line 1028 "PixbufCache.c"
- }
-#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = self->priv->filter;
-#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7__target = self->priv->filter_target;
-#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp7_ != NULL) {
-#line 1036 "PixbufCache.c"
- PixbufCacheCacheFilter _tmp8_;
- void* _tmp8__target;
-#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8_ = self->priv->filter;
-#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8__target = self->priv->filter_target;
-#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = !_tmp8_ (photo, _tmp8__target);
-#line 1045 "PixbufCache.c"
- } else {
-#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = FALSE;
-#line 1049 "PixbufCache.c"
- }
-#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp6_) {
-#line 187 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return;
-#line 1055 "PixbufCache.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- job = NULL;
-#line 190 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp9_ = self->priv->type;
-#line 190 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- switch (_tmp9_) {
-#line 190 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- case PIXBUF_CACHE_PHOTO_TYPE_BASELINE:
-#line 1065 "PixbufCache.c"
- {
- Scaling _tmp10_;
- PixbufCacheBaselineFetchJob* _tmp11_;
-#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp10_ = self->priv->scaling;
-#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp11_ = pixbuf_cache_baseline_fetch_job_new (self, priority, photo, &_tmp10_, _pixbuf_cache_on_fetched_completion_callback, self);
-#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- job = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob);
-#line 193 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1079 "PixbufCache.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- case PIXBUF_CACHE_PHOTO_TYPE_MASTER:
-#line 1083 "PixbufCache.c"
- {
- Scaling _tmp12_;
- PixbufCacheMasterFetchJob* _tmp13_;
-#line 196 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp12_ = self->priv->scaling;
-#line 196 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp13_ = pixbuf_cache_master_fetch_job_new (self, priority, photo, &_tmp12_, _pixbuf_cache_on_fetched_completion_callback, self);
-#line 196 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 196 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- job = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob);
-#line 197 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1097 "PixbufCache.c"
- }
- default:
- {
- PixbufCachePhotoType _tmp14_;
-#line 200 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp14_ = self->priv->type;
-#line 200 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_error ("PixbufCache.vala:200: Unknown photo type: %d", (gint) _tmp14_);
-#line 1106 "PixbufCache.c"
- }
- }
-#line 203 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp15_ = self->priv->in_progress;
-#line 203 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp16_ = job;
-#line 203 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, _tmp16_);
-#line 205 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp17_ = pixbuf_cache_background_workers;
-#line 205 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp18_ = job;
-#line 205 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- workers_enqueue (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 172 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 1123 "PixbufCache.c"
-}
-
-
-void
-pixbuf_cache_prefetch_many (PixbufCache* self,
- GeeCollection* photos,
- BackgroundJobJobPriority priority,
- gboolean force)
-{
-#line 210 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 210 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (GEE_IS_COLLECTION (photos));
-#line 1137 "PixbufCache.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeIterator* _tmp0_;
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable));
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _photo_it = _tmp0_;
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- while (TRUE) {
-#line 1147 "PixbufCache.c"
- GeeIterator* _tmp1_;
- Photo* photo = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Photo* _tmp4_;
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = _photo_it;
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1159 "PixbufCache.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = _photo_it;
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- photo = (Photo*) _tmp3_;
-#line 213 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = photo;
-#line 213 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_prefetch (self, _tmp4_, priority, force);
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (photo);
-#line 1173 "PixbufCache.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_photo_it);
-#line 1177 "PixbufCache.c"
- }
-}
-
-
-void
-pixbuf_cache_prefetch_batch (PixbufCache* self,
- PixbufCachePixbufCacheBatch* batch,
- gboolean force)
-{
-#line 217 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 217 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH (batch));
-#line 1191 "PixbufCache.c"
- {
- GeeIterator* _priority_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (batch, GEE_TYPE_MULTI_MAP, GeeMultiMap));
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = _tmp0_;
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = _tmp2_;
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _priority_it = _tmp3_;
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- while (TRUE) {
-#line 1212 "PixbufCache.c"
- GeeIterator* _tmp4_;
- BackgroundJobJobPriority priority = 0;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = _priority_it;
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1223 "PixbufCache.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = _priority_it;
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- priority = (BackgroundJobJobPriority) ((gintptr) _tmp6_);
-#line 1231 "PixbufCache.c"
- {
- GeeIterator* _photo_it = NULL;
- BackgroundJobJobPriority _tmp7_;
- GeeCollection* _tmp8_;
- GeeCollection* _tmp9_;
- GeeIterator* _tmp10_;
- GeeIterator* _tmp11_;
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = priority;
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (batch, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) _tmp7_));
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp9_ = _tmp8_;
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp11_ = _tmp10_;
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp9_);
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _photo_it = _tmp11_;
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- while (TRUE) {
-#line 1255 "PixbufCache.c"
- GeeIterator* _tmp12_;
- Photo* photo = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- Photo* _tmp15_;
- BackgroundJobJobPriority _tmp16_;
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp12_ = _photo_it;
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1268 "PixbufCache.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp13_ = _photo_it;
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- photo = (Photo*) _tmp14_;
-#line 220 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp15_ = photo;
-#line 220 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp16_ = priority;
-#line 220 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_prefetch (self, _tmp15_, _tmp16_, force);
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (photo);
-#line 1284 "PixbufCache.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_photo_it);
-#line 1288 "PixbufCache.c"
- }
- }
-#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_priority_it);
-#line 1293 "PixbufCache.c"
- }
-}
-
-
-gboolean
-pixbuf_cache_cancel_prefetch (PixbufCache* self,
- Photo* photo)
-{
- gboolean result = FALSE;
- PixbufCacheFetchJob* job = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- PixbufCacheFetchJob* _tmp2_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- PixbufCacheFetchJob* _tmp6_;
-#line 224 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PIXBUF_CACHE (self), FALSE);
-#line 224 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PHOTO (photo), FALSE);
-#line 225 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priv->in_progress;
-#line 225 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 225 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- job = (PixbufCacheFetchJob*) _tmp1_;
-#line 226 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = job;
-#line 226 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp2_ == NULL) {
-#line 227 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- result = FALSE;
-#line 227 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 227 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return result;
-#line 1332 "PixbufCache.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = self->priv->in_progress;
-#line 230 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, NULL);
-#line 230 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- removed = _tmp4_;
-#line 231 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = removed;
-#line 231 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (_tmp5_, "removed");
-#line 233 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = job;
-#line 233 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 239 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- result = TRUE;
-#line 239 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 239 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return result;
-#line 1354 "PixbufCache.c"
-}
-
-
-void
-pixbuf_cache_cancel_all (PixbufCache* self)
-{
- GeeHashMap* _tmp10_;
-#line 242 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 1364 "PixbufCache.c"
- {
- GeeIterator* _job_it = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priv->in_progress;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = _tmp1_;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = _tmp2_;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = _tmp4_;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp3_);
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _job_it = _tmp5_;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- while (TRUE) {
-#line 1391 "PixbufCache.c"
- GeeIterator* _tmp6_;
- PixbufCacheFetchJob* job = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- PixbufCacheFetchJob* _tmp9_;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = _job_it;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1403 "PixbufCache.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = _job_it;
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- job = (PixbufCacheFetchJob*) _tmp8_;
-#line 247 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp9_ = job;
-#line 247 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 1417 "PixbufCache.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_job_it);
-#line 1421 "PixbufCache.c"
- }
-#line 249 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp10_ = self->priv->in_progress;
-#line 249 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1427 "PixbufCache.c"
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 253 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self ? background_job_ref (self) : NULL;
-#line 1436 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_on_fetched (PixbufCache* self,
- BackgroundJob* j)
-{
- PixbufCacheFetchJob* job = NULL;
- PixbufCacheFetchJob* _tmp0_;
- GeeHashMap* _tmp1_;
- PixbufCacheFetchJob* _tmp2_;
- Photo* _tmp3_;
- PixbufCacheFetchJob* _tmp4_;
- GError* _tmp5_;
- PixbufCacheFetchJob* _tmp19_;
- Photo* _tmp20_;
- PixbufCacheFetchJob* _tmp21_;
- GdkPixbuf* _tmp22_;
- PixbufCacheFetchJob* _tmp23_;
- Photo* _tmp24_;
- PixbufCacheFetchJob* _tmp25_;
- GdkPixbuf* _tmp26_;
-#line 252 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 252 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 253 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob));
-#line 253 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- job = _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = self->priv->in_progress;
-#line 257 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = job;
-#line 257 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = _tmp2_->photo;
-#line 257 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, NULL);
-#line 259 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = job;
-#line 259 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = _tmp4_->err;
-#line 259 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp5_ != NULL) {
-#line 1481 "PixbufCache.c"
- PixbufCacheFetchJob* _tmp6_;
- GdkPixbuf* _tmp7_;
- PixbufCacheFetchJob* _tmp8_;
- Photo* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- PixbufCacheFetchJob* _tmp12_;
- GError* _tmp13_;
- const gchar* _tmp14_;
- PixbufCacheFetchJob* _tmp15_;
- Photo* _tmp16_;
- PixbufCacheFetchJob* _tmp17_;
- GError* _tmp18_;
-#line 260 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = job;
-#line 260 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = _tmp6_->pixbuf;
-#line 260 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (_tmp7_ == NULL, "job.pixbuf == null");
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8_ = job;
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp9_ = _tmp8_->photo;
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp11_ = _tmp10_;
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp12_ = job;
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp13_ = _tmp12_->err;
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp14_ = _tmp13_->message;
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_critical ("PixbufCache.vala:262: Unable to readahead %s: %s", _tmp11_, _tmp14_);
-#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_free0 (_tmp11_);
-#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp15_ = job;
-#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp16_ = _tmp15_->photo;
-#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp17_ = job;
-#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp18_ = _tmp17_->err;
-#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_signal_emit (self, pixbuf_cache_signals[PIXBUF_CACHE_FETCHED_SIGNAL], 0, _tmp16_, NULL, _tmp18_);
-#line 265 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 265 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return;
-#line 1533 "PixbufCache.c"
- }
-#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp19_ = job;
-#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp20_ = _tmp19_->photo;
-#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp21_ = job;
-#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp22_ = _tmp21_->pixbuf;
-#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_encache (self, _tmp20_, _tmp22_);
-#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp23_ = job;
-#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp24_ = _tmp23_->photo;
-#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp25_ = job;
-#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp26_ = _tmp25_->pixbuf;
-#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_signal_emit (self, pixbuf_cache_signals[PIXBUF_CACHE_FETCHED_SIGNAL], 0, _tmp24_, _tmp26_, NULL);
-#line 252 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 1557 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_on_sources_altered (PixbufCache* self,
- GeeMap* map)
-{
-#line 278 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 278 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 1569 "PixbufCache.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = gee_map_get_keys (map);
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = _tmp0_;
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = _tmp1_;
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = _tmp3_;
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp2_);
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _object_it = _tmp4_;
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- while (TRUE) {
-#line 1593 "PixbufCache.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- DataObject* _tmp8_;
- gpointer _tmp9_;
- Alteration* _tmp10_;
- gboolean _tmp11_;
- Photo* photo = NULL;
- DataObject* _tmp12_;
- Photo* _tmp13_;
- GeeHashMap* _tmp14_;
- Photo* _tmp15_;
- Photo* _tmp24_;
- Photo* _tmp25_;
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = _object_it;
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1615 "PixbufCache.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = _object_it;
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- object = (DataObject*) _tmp7_;
-#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8_ = object;
-#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp9_ = gee_map_get (map, _tmp8_);
-#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp10_ = (Alteration*) _tmp9_;
-#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp11_ = !alteration_has_subject (_tmp10_, "image");
-#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _alteration_unref0 (_tmp10_);
-#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp11_) {
-#line 281 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (object);
-#line 281 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- continue;
-#line 1639 "PixbufCache.c"
- }
-#line 283 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp12_ = object;
-#line 283 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO, Photo));
-#line 283 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- photo = _tmp13_;
-#line 285 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp14_ = self->priv->in_progress;
-#line 285 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp15_ = photo;
-#line 285 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_)) {
-#line 1653 "PixbufCache.c"
- GeeHashMap* _tmp16_;
- Photo* _tmp17_;
- gpointer _tmp18_;
- PixbufCacheFetchJob* _tmp19_;
- GeeHashMap* _tmp20_;
- Photo* _tmp21_;
-#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp16_ = self->priv->in_progress;
-#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp17_ = photo;
-#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp18_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp17_);
-#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp19_ = (PixbufCacheFetchJob*) _tmp18_;
-#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (_tmp19_);
-#line 289 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp20_ = self->priv->in_progress;
-#line 289 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp21_ = photo;
-#line 289 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_, NULL);
-#line 1678 "PixbufCache.c"
- } else {
- GeeHashMap* _tmp22_;
- Photo* _tmp23_;
-#line 290 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp22_ = self->priv->cache;
-#line 290 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp23_ = photo;
-#line 290 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp23_)) {
-#line 291 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (photo);
-#line 291 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (object);
-#line 291 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- continue;
-#line 1694 "PixbufCache.c"
- }
- }
-#line 294 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp24_ = photo;
-#line 294 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_decache (self, _tmp24_);
-#line 301 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp25_ = photo;
-#line 301 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_prefetch (self, _tmp25_, BACKGROUND_JOB_JOB_PRIORITY_HIGH, FALSE);
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (photo);
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (object);
-#line 1709 "PixbufCache.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_object_it);
-#line 1713 "PixbufCache.c"
- }
-}
-
-
-static void
-pixbuf_cache_on_sources_removed (PixbufCache* self,
- GeeIterable* removed)
-{
-#line 305 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 305 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 1726 "PixbufCache.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = gee_iterable_iterator (removed);
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _object_it = _tmp0_;
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- while (TRUE) {
-#line 1736 "PixbufCache.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Photo* photo = NULL;
- DataObject* _tmp4_;
- Photo* _tmp5_;
- Photo* _tmp6_;
- Photo* _tmp7_;
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = _object_it;
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1752 "PixbufCache.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = _object_it;
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- object = (DataObject*) _tmp3_;
-#line 307 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = object;
-#line 307 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PHOTO) ? ((Photo*) _tmp4_) : NULL);
-#line 307 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- photo = _tmp5_;
-#line 308 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = photo;
-#line 308 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (_tmp6_ != NULL, "photo != null");
-#line 310 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = photo;
-#line 310 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_decache (self, _tmp7_);
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (photo);
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (object);
-#line 1778 "PixbufCache.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_object_it);
-#line 1782 "PixbufCache.c"
- }
-}
-
-
-static GdkPixbuf*
-pixbuf_cache_get_cached (PixbufCache* self,
- Photo* photo)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- GdkPixbuf* _tmp2_;
-#line 314 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PIXBUF_CACHE (self), NULL);
-#line 314 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 315 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priv->cache;
-#line 315 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 315 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf = (GdkPixbuf*) _tmp1_;
-#line 316 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = pixbuf;
-#line 316 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp2_ != NULL) {
-#line 317 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_prioritize (self, photo);
-#line 1812 "PixbufCache.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- result = pixbuf;
-#line 319 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return result;
-#line 1818 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_prioritize (PixbufCache* self,
- Photo* photo)
-{
- gint index = 0;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 323 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 323 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 324 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priv->lru;
-#line 324 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- index = gee_abstract_list_index_of (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), photo);
-#line 325 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = index;
-#line 325 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (_tmp1_ >= 0, "index >= 0");
-#line 327 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = index;
-#line 327 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp2_ > 0) {
-#line 1846 "PixbufCache.c"
- GeeArrayList* _tmp3_;
- gint _tmp4_;
- gpointer _tmp5_;
- Photo* _tmp6_;
- GeeArrayList* _tmp7_;
-#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = self->priv->lru;
-#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = index;
-#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp4_);
-#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = (Photo*) _tmp5_;
-#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp6_);
-#line 329 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = self->priv->lru;
-#line 329 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, photo);
-#line 1866 "PixbufCache.c"
- }
-}
-
-
-static void
-pixbuf_cache_encache (PixbufCache* self,
- Photo* photo,
- GdkPixbuf* pixbuf)
-{
- GeeHashMap* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- GeeHashMap* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
-#line 333 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 333 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 333 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 335 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_decache (self, photo);
-#line 337 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priv->cache;
-#line 337 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, pixbuf);
-#line 338 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = self->priv->lru;
-#line 338 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, photo);
-#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- while (TRUE) {
-#line 1902 "PixbufCache.c"
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- Photo* cached_photo = NULL;
- GeeArrayList* _tmp6_;
- GeeArrayList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- Photo* _tmp11_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp12_;
- Photo* _tmp13_;
- gboolean _tmp14_;
- gboolean _tmp15_;
-#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = self->priv->lru;
-#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = _tmp3_;
-#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = self->priv->max_count;
-#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!(_tmp4_ > _tmp5_)) {
-#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 1931 "PixbufCache.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = self->priv->lru;
-#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = self->priv->lru;
-#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp9_ = _tmp8_;
-#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp10_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_ - 1);
-#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- cached_photo = (Photo*) _tmp10_;
-#line 342 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp11_ = cached_photo;
-#line 342 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (_tmp11_ != NULL, "cached_photo != null");
-#line 344 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp12_ = self->priv->cache;
-#line 344 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp13_ = cached_photo;
-#line 344 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp14_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, NULL);
-#line 344 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- removed = _tmp14_;
-#line 345 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp15_ = removed;
-#line 345 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (_tmp15_, "removed");
-#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (cached_photo);
-#line 1963 "PixbufCache.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp16_ = self->priv->lru;
-#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp18_ = _tmp17_;
-#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp19_ = self->priv->cache;
-#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp20_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp21_ = _tmp20_;
-#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (_tmp18_ == _tmp21_, "lru.size == cache.size");
-#line 1979 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_decache (PixbufCache* self,
- Photo* photo)
-{
- GeeHashMap* _tmp0_;
- gboolean _tmp1_;
- gboolean removed = FALSE;
- GeeArrayList* _tmp3_;
- gboolean _tmp4_;
-#line 351 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PIXBUF_CACHE (self));
-#line 351 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 352 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priv->cache;
-#line 352 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, NULL);
-#line 352 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!_tmp1_) {
-#line 2002 "PixbufCache.c"
- GeeArrayList* _tmp2_;
-#line 353 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = self->priv->lru;
-#line 353 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), photo), "!lru.contains(photo)");
-#line 355 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return;
-#line 2010 "PixbufCache.c"
- }
-#line 358 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = self->priv->lru;
-#line 358 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), photo);
-#line 359 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = removed;
-#line 359 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _vala_assert (_tmp4_, "removed");
-#line 2020 "PixbufCache.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT_POINTER (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_POINTER) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT_POINTER callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_if_fail (n_param_values == 4);
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- data1 = closure->data;
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- data2 = param_values->data[0].v_pointer;
-#line 2046 "PixbufCache.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- data1 = param_values->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- data2 = closure->data;
-#line 2052 "PixbufCache.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT_POINTER) (marshal_data ? marshal_data : cc->callback);
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_pointer (param_values + 3), data2);
-#line 2058 "PixbufCache.c"
-}
-
-
-PixbufCachePixbufCacheBatch*
-pixbuf_cache_pixbuf_cache_batch_construct (GType object_type)
-{
- PixbufCachePixbufCacheBatch * self = NULL;
-#line 17 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = (PixbufCachePixbufCacheBatch*) gee_tree_multi_map_construct (object_type, BACKGROUND_JOB_TYPE_JOB_PRIORITY, NULL, NULL, TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, (GCompareDataFunc) background_job_job_priority_compare_func, NULL, NULL, NULL, NULL, NULL);
-#line 16 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self;
-#line 2070 "PixbufCache.c"
-}
-
-
-PixbufCachePixbufCacheBatch*
-pixbuf_cache_pixbuf_cache_batch_new (void)
-{
-#line 16 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return pixbuf_cache_pixbuf_cache_batch_construct (PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH);
-#line 2079 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_pixbuf_cache_batch_class_init (PixbufCachePixbufCacheBatchClass * klass)
-{
-#line 15 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_pixbuf_cache_batch_parent_class = g_type_class_peek_parent (klass);
-#line 2088 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_pixbuf_cache_batch_instance_init (PixbufCachePixbufCacheBatch * self)
-{
-}
-
-
-GType
-pixbuf_cache_pixbuf_cache_batch_get_type (void)
-{
- static volatile gsize pixbuf_cache_pixbuf_cache_batch_type_id__volatile = 0;
- if (g_once_init_enter (&pixbuf_cache_pixbuf_cache_batch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PixbufCachePixbufCacheBatchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_pixbuf_cache_batch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCachePixbufCacheBatch), 0, (GInstanceInitFunc) pixbuf_cache_pixbuf_cache_batch_instance_init, NULL };
- GType pixbuf_cache_pixbuf_cache_batch_type_id;
- pixbuf_cache_pixbuf_cache_batch_type_id = g_type_register_static (GEE_TYPE_TREE_MULTI_MAP, "PixbufCachePixbufCacheBatch", &g_define_type_info, 0);
- g_once_init_leave (&pixbuf_cache_pixbuf_cache_batch_type_id__volatile, pixbuf_cache_pixbuf_cache_batch_type_id);
- }
- return pixbuf_cache_pixbuf_cache_batch_type_id__volatile;
-}
-
-
-static PixbufCacheFetchJob*
-pixbuf_cache_fetch_job_construct (GType object_type,
- PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target)
-{
- PixbufCacheFetchJob* self = NULL;
- GCancellable* _tmp0_;
- GCancellable* _tmp1_;
- Semaphore* _tmp2_;
- Semaphore* _tmp3_;
- Photo* _tmp4_;
- Scaling _tmp5_;
-#line 28 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PIXBUF_CACHE (owner), NULL);
-#line 28 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 28 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = g_cancellable_new ();
-#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = semaphore_new ();
-#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = _tmp2_;
-#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = (PixbufCacheFetchJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), callback, callback_target, _tmp1_, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _abstract_semaphore_unref0 (_tmp3_);
-#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 32 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priority = priority;
-#line 33 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = _g_object_ref0 (photo);
-#line 33 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (self->photo);
-#line 33 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->photo = _tmp4_;
-#line 34 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = *scaling;
-#line 34 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->scaling = _tmp5_;
-#line 28 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self;
-#line 2162 "PixbufCache.c"
-}
-
-
-static BackgroundJobJobPriority
-pixbuf_cache_fetch_job_real_get_priority (BackgroundJob* base)
-{
- PixbufCacheFetchJob * self;
- BackgroundJobJobPriority result = 0;
- BackgroundJobJobPriority _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob);
-#line 38 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priority;
-#line 38 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- result = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return result;
-#line 2180 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_fetch_job_class_init (PixbufCacheFetchJobClass * klass)
-{
-#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_fetch_job_parent_class = g_type_class_peek_parent (klass);
-#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- ((BackgroundJobClass *) klass)->finalize = pixbuf_cache_fetch_job_finalize;
-#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- ((BackgroundJobClass *) klass)->get_priority = (BackgroundJobJobPriority (*) (BackgroundJob *)) pixbuf_cache_fetch_job_real_get_priority;
-#line 2193 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_fetch_job_instance_init (PixbufCacheFetchJob * self)
-{
-#line 25 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->pixbuf = NULL;
-#line 26 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->err = NULL;
-#line 2204 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_fetch_job_finalize (BackgroundJob * obj)
-{
- PixbufCacheFetchJob * self;
-#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob);
-#line 23 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (self->photo);
-#line 25 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (self->pixbuf);
-#line 26 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_error_free0 (self->err);
-#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- BACKGROUND_JOB_CLASS (pixbuf_cache_fetch_job_parent_class)->finalize (obj);
-#line 2222 "PixbufCache.c"
-}
-
-
-static GType
-pixbuf_cache_fetch_job_get_type (void)
-{
- static volatile gsize pixbuf_cache_fetch_job_type_id__volatile = 0;
- if (g_once_init_enter (&pixbuf_cache_fetch_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PixbufCacheFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCacheFetchJob), 0, (GInstanceInitFunc) pixbuf_cache_fetch_job_instance_init, NULL };
- GType pixbuf_cache_fetch_job_type_id;
- pixbuf_cache_fetch_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PixbufCacheFetchJob", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&pixbuf_cache_fetch_job_type_id__volatile, pixbuf_cache_fetch_job_type_id);
- }
- return pixbuf_cache_fetch_job_type_id__volatile;
-}
-
-
-static PixbufCacheBaselineFetchJob*
-pixbuf_cache_baseline_fetch_job_construct (GType object_type,
- PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target)
-{
- PixbufCacheBaselineFetchJob* self = NULL;
- Scaling _tmp0_;
-#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PIXBUF_CACHE (owner), NULL);
-#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 45 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = *scaling;
-#line 45 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = (PixbufCacheBaselineFetchJob*) pixbuf_cache_fetch_job_construct (object_type, owner, priority, photo, &_tmp0_, callback, callback_target);
-#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self;
-#line 2263 "PixbufCache.c"
-}
-
-
-static PixbufCacheBaselineFetchJob*
-pixbuf_cache_baseline_fetch_job_new (PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target)
-{
-#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return pixbuf_cache_baseline_fetch_job_construct (PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, owner, priority, photo, scaling, callback, callback_target);
-#line 2277 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_baseline_fetch_job_real_execute (BackgroundJob* base)
-{
- PixbufCacheBaselineFetchJob * self;
- GError * _inner_error_ = NULL;
-#line 48 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, PixbufCacheBaselineFetchJob);
-#line 2288 "PixbufCache.c"
- {
- GdkPixbuf* _tmp0_ = NULL;
- Photo* _tmp1_;
- Scaling _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->photo;
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->scaling;
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp2_, &_inner_error_);
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = _tmp3_;
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2305 "PixbufCache.c"
- goto __catch462_g_error;
- }
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = _tmp0_;
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = NULL;
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->pixbuf);
-#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->pixbuf = _tmp4_;
-#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp0_);
-#line 2318 "PixbufCache.c"
- }
- goto __finally462;
- __catch462_g_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- GError* _tmp6_;
-#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- err = _inner_error_;
-#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _inner_error_ = NULL;
-#line 52 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = err;
-#line 52 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = _g_error_copy0 (_tmp5_);
-#line 52 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_error_free0 (G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->err);
-#line 52 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->err = _tmp6_;
-#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_error_free0 (err);
-#line 2340 "PixbufCache.c"
- }
- __finally462:
-#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 49 "/home/jens/Source/shotwell/src/PixbufCache.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 49 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_clear_error (&_inner_error_);
-#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return;
-#line 2351 "PixbufCache.c"
- }
-}
-
-
-static void
-pixbuf_cache_baseline_fetch_job_class_init (PixbufCacheBaselineFetchJobClass * klass)
-{
-#line 42 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_baseline_fetch_job_parent_class = g_type_class_peek_parent (klass);
-#line 42 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) pixbuf_cache_baseline_fetch_job_real_execute;
-#line 2363 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_baseline_fetch_job_instance_init (PixbufCacheBaselineFetchJob * self)
-{
-}
-
-
-static GType
-pixbuf_cache_baseline_fetch_job_get_type (void)
-{
- static volatile gsize pixbuf_cache_baseline_fetch_job_type_id__volatile = 0;
- if (g_once_init_enter (&pixbuf_cache_baseline_fetch_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PixbufCacheBaselineFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_baseline_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCacheBaselineFetchJob), 0, (GInstanceInitFunc) pixbuf_cache_baseline_fetch_job_instance_init, NULL };
- GType pixbuf_cache_baseline_fetch_job_type_id;
- pixbuf_cache_baseline_fetch_job_type_id = g_type_register_static (PIXBUF_CACHE_TYPE_FETCH_JOB, "PixbufCacheBaselineFetchJob", &g_define_type_info, 0);
- g_once_init_leave (&pixbuf_cache_baseline_fetch_job_type_id__volatile, pixbuf_cache_baseline_fetch_job_type_id);
- }
- return pixbuf_cache_baseline_fetch_job_type_id__volatile;
-}
-
-
-static PixbufCacheMasterFetchJob*
-pixbuf_cache_master_fetch_job_construct (GType object_type,
- PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target)
-{
- PixbufCacheMasterFetchJob* self = NULL;
- Scaling _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PIXBUF_CACHE (owner), NULL);
-#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 60 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = *scaling;
-#line 60 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = (PixbufCacheMasterFetchJob*) pixbuf_cache_fetch_job_construct (object_type, owner, priority, photo, &_tmp0_, callback, callback_target);
-#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return self;
-#line 2410 "PixbufCache.c"
-}
-
-
-static PixbufCacheMasterFetchJob*
-pixbuf_cache_master_fetch_job_new (PixbufCache* owner,
- BackgroundJobJobPriority priority,
- Photo* photo,
- Scaling* scaling,
- CompletionCallback callback,
- void* callback_target)
-{
-#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return pixbuf_cache_master_fetch_job_construct (PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, owner, priority, photo, scaling, callback, callback_target);
-#line 2424 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_master_fetch_job_real_execute (BackgroundJob* base)
-{
- PixbufCacheMasterFetchJob * self;
- GError * _inner_error_ = NULL;
-#line 63 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, PixbufCacheMasterFetchJob);
-#line 2435 "PixbufCache.c"
- {
- GdkPixbuf* _tmp0_ = NULL;
- Photo* _tmp1_;
- Scaling _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->photo;
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->scaling;
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = photo_get_master_pixbuf (_tmp1_, &_tmp2_, TRUE, &_inner_error_);
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = _tmp3_;
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2452 "PixbufCache.c"
- goto __catch463_g_error;
- }
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp4_ = _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = NULL;
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->pixbuf);
-#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->pixbuf = _tmp4_;
-#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp0_);
-#line 2465 "PixbufCache.c"
- }
- goto __finally463;
- __catch463_g_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- GError* _tmp6_;
-#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- err = _inner_error_;
-#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _inner_error_ = NULL;
-#line 67 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = err;
-#line 67 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = _g_error_copy0 (_tmp5_);
-#line 67 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_error_free0 (G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->err);
-#line 67 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->err = _tmp6_;
-#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_error_free0 (err);
-#line 2487 "PixbufCache.c"
- }
- __finally463:
-#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 64 "/home/jens/Source/shotwell/src/PixbufCache.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 64 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_clear_error (&_inner_error_);
-#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- return;
-#line 2498 "PixbufCache.c"
- }
-}
-
-
-static void
-pixbuf_cache_master_fetch_job_class_init (PixbufCacheMasterFetchJobClass * klass)
-{
-#line 57 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_master_fetch_job_parent_class = g_type_class_peek_parent (klass);
-#line 57 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) pixbuf_cache_master_fetch_job_real_execute;
-#line 2510 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_master_fetch_job_instance_init (PixbufCacheMasterFetchJob * self)
-{
-}
-
-
-static GType
-pixbuf_cache_master_fetch_job_get_type (void)
-{
- static volatile gsize pixbuf_cache_master_fetch_job_type_id__volatile = 0;
- if (g_once_init_enter (&pixbuf_cache_master_fetch_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PixbufCacheMasterFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_master_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCacheMasterFetchJob), 0, (GInstanceInitFunc) pixbuf_cache_master_fetch_job_instance_init, NULL };
- GType pixbuf_cache_master_fetch_job_type_id;
- pixbuf_cache_master_fetch_job_type_id = g_type_register_static (PIXBUF_CACHE_TYPE_FETCH_JOB, "PixbufCacheMasterFetchJob", &g_define_type_info, 0);
- g_once_init_leave (&pixbuf_cache_master_fetch_job_type_id__volatile, pixbuf_cache_master_fetch_job_type_id);
- }
- return pixbuf_cache_master_fetch_job_type_id__volatile;
-}
-
-
-static void
-pixbuf_cache_class_init (PixbufCacheClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- pixbuf_cache_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_type_class_add_private (klass, sizeof (PixbufCachePrivate));
-#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"
- pixbuf_cache_signals[PIXBUF_CACHE_FETCHED_SIGNAL] = 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 2545 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_instance_init (PixbufCache * self)
-{
- GeeHashMap* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeHashMap* _tmp2_;
-#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, (GDestroyNotify) g_object_unref, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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"
- _tmp1_ = gee_array_list_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 80 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priv->lru = _tmp1_;
-#line 81 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp2_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, PIXBUF_CACHE_TYPE_FETCH_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 81 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self->priv->in_progress = _tmp2_;
-#line 2569 "PixbufCache.c"
-}
-
-
-static void
-pixbuf_cache_finalize (GObject * obj)
-{
- PixbufCache * self;
- PixbufCachePhotoType _tmp0_;
- SourceCollection* _tmp3_;
- guint _tmp4_;
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXBUF_CACHE, PixbufCache);
-#line 110 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp0_ = self->priv->type;
-#line 110 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (_tmp0_ != PIXBUF_CACHE_PHOTO_TYPE_MASTER) {
-#line 2586 "PixbufCache.c"
- SourceCollection* _tmp1_;
- guint _tmp2_;
-#line 111 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp1_ = self->priv->sources;
-#line 111 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE);
-#line 111 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _pixbuf_cache_on_sources_altered_data_collection_items_altered, self);
-#line 2595 "PixbufCache.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp3_ = self->priv->sources;
-#line 112 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE);
-#line 112 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _pixbuf_cache_on_sources_removed_data_collection_items_removed, self);
-#line 2603 "PixbufCache.c"
- {
- GeeIterator* _job_it = NULL;
- GeeHashMap* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
- GeeIterator* _tmp9_;
- GeeIterator* _tmp10_;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp5_ = self->priv->in_progress;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp6_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp7_ = _tmp6_;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp8_ = _tmp7_;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp10_ = _tmp9_;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_tmp8_);
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _job_it = _tmp10_;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- while (TRUE) {
-#line 2630 "PixbufCache.c"
- GeeIterator* _tmp11_;
- PixbufCacheFetchJob* job = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- PixbufCacheFetchJob* _tmp14_;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp11_ = _job_it;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- break;
-#line 2642 "PixbufCache.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp12_ = _job_it;
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- job = (PixbufCacheFetchJob*) _tmp13_;
-#line 115 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _tmp14_ = job;
-#line 115 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _background_job_unref0 (job);
-#line 2656 "PixbufCache.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (_job_it);
-#line 2660 "PixbufCache.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 79 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (self->priv->cache);
-#line 80 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (self->priv->lru);
-#line 81 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- _g_object_unref0 (self->priv->in_progress);
-#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala"
- G_OBJECT_CLASS (pixbuf_cache_parent_class)->finalize (obj);
-#line 2672 "PixbufCache.c"
-}
-
-
-GType
-pixbuf_cache_get_type (void)
-{
- static volatile gsize pixbuf_cache_type_id__volatile = 0;
- if (g_once_init_enter (&pixbuf_cache_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PixbufCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCache), 0, (GInstanceInitFunc) pixbuf_cache_instance_init, NULL };
- GType pixbuf_cache_type_id;
- pixbuf_cache_type_id = g_type_register_static (G_TYPE_OBJECT, "PixbufCache", &g_define_type_info, 0);
- g_once_init_leave (&pixbuf_cache_type_id__volatile, pixbuf_cache_type_id);
- }
- return pixbuf_cache_type_id__volatile;
-}
-
-
-
diff --git a/src/Printing.c b/src/Printing.c
deleted file mode 100644
index 47e9298..0000000
--- a/src/Printing.c
+++ /dev/null
@@ -1,8490 +0,0 @@
-/* Printing.c generated by valac 0.40.4, the Vala compiler
- * generated from Printing.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <float.h>
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <langinfo.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <cairo.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <pango/pango.h>
-#include <pango/pangocairo.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_CONTENT_LAYOUT (content_layout_get_type ())
-
-#define TYPE_PRINT_SETTINGS (print_settings_get_type ())
-#define PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_SETTINGS, PrintSettings))
-#define PRINT_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_SETTINGS, PrintSettingsClass))
-#define IS_PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_SETTINGS))
-#define IS_PRINT_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_SETTINGS))
-#define PRINT_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_SETTINGS, PrintSettingsClass))
-
-typedef struct _PrintSettings PrintSettings;
-typedef struct _PrintSettingsClass PrintSettingsClass;
-typedef struct _PrintSettingsPrivate PrintSettingsPrivate;
-
-#define TYPE_MEASUREMENT (measurement_get_type ())
-
-#define TYPE_MEASUREMENT_UNIT (measurement_unit_get_type ())
-typedef struct _Measurement Measurement;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER))
-#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER))
-#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass))
-
-typedef struct _PrintManager PrintManager;
-typedef struct _PrintManagerClass PrintManagerClass;
-
-#define TYPE_STANDARD_PRINT_SIZE (standard_print_size_get_type ())
-#define STANDARD_PRINT_SIZE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STANDARD_PRINT_SIZE, StandardPrintSize))
-#define STANDARD_PRINT_SIZE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STANDARD_PRINT_SIZE, StandardPrintSizeClass))
-#define IS_STANDARD_PRINT_SIZE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STANDARD_PRINT_SIZE))
-#define IS_STANDARD_PRINT_SIZE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STANDARD_PRINT_SIZE))
-#define STANDARD_PRINT_SIZE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STANDARD_PRINT_SIZE, StandardPrintSizeClass))
-
-typedef struct _StandardPrintSize StandardPrintSize;
-typedef struct _StandardPrintSizeClass StandardPrintSizeClass;
-typedef struct _StandardPrintSizePrivate StandardPrintSizePrivate;
-#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL)))
-typedef struct _ParamSpecPrintSettings ParamSpecPrintSettings;
-
-#define TYPE_PRINT_LAYOUT (print_layout_get_type ())
-
-#define TYPE_CUSTOM_PRINT_TAB (custom_print_tab_get_type ())
-#define CUSTOM_PRINT_TAB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CUSTOM_PRINT_TAB, CustomPrintTab))
-#define CUSTOM_PRINT_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CUSTOM_PRINT_TAB, CustomPrintTabClass))
-#define IS_CUSTOM_PRINT_TAB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CUSTOM_PRINT_TAB))
-#define IS_CUSTOM_PRINT_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CUSTOM_PRINT_TAB))
-#define CUSTOM_PRINT_TAB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CUSTOM_PRINT_TAB, CustomPrintTabClass))
-
-typedef struct _CustomPrintTab CustomPrintTab;
-typedef struct _CustomPrintTabClass CustomPrintTabClass;
-typedef struct _CustomPrintTabPrivate CustomPrintTabPrivate;
-
-#define TYPE_PRINT_JOB (print_job_get_type ())
-#define PRINT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_JOB, PrintJob))
-#define PRINT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_JOB, PrintJobClass))
-#define IS_PRINT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_JOB))
-#define IS_PRINT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_JOB))
-#define PRINT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_JOB, PrintJobClass))
-
-typedef struct _PrintJob PrintJob;
-typedef struct _PrintJobClass PrintJobClass;
-enum {
- CUSTOM_PRINT_TAB_0_PROPERTY,
- CUSTOM_PRINT_TAB_NUM_PROPERTIES
-};
-static GParamSpec* custom_print_tab_properties[CUSTOM_PRINT_TAB_NUM_PROPERTIES];
-#define _standard_print_size_unref0(var) ((var == NULL) ? NULL : (var = (standard_print_size_unref (var), NULL)))
-
-#define RESOURCES_TYPE_UNIT_SYSTEM (resources_unit_system_get_type ())
-#define _print_settings_unref0(var) ((var == NULL) ? NULL : (var = (print_settings_unref (var), NULL)))
-typedef struct _PrintJobPrivate PrintJobPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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;
-enum {
- PRINT_JOB_0_PROPERTY,
- PRINT_JOB_NUM_PROPERTIES
-};
-static GParamSpec* print_job_properties[PRINT_JOB_NUM_PROPERTIES];
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _ParamSpecStandardPrintSize ParamSpecStandardPrintSize;
-typedef struct _PrintManagerPrivate PrintManagerPrivate;
-
-#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))
-#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG))
-#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG))
-#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass))
-
-typedef struct _ProgressDialog ProgressDialog;
-typedef struct _ProgressDialogClass ProgressDialogClass;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-#define __vala_PangoFontDescription_free0(var) ((var == NULL) ? NULL : (var = (_vala_PangoFontDescription_free (var), NULL)))
-typedef struct _ParamSpecPrintManager ParamSpecPrintManager;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- CONTENT_LAYOUT_STANDARD_SIZE,
- CONTENT_LAYOUT_CUSTOM_SIZE,
- CONTENT_LAYOUT_IMAGE_PER_PAGE
-} ContentLayout;
-
-struct _PrintSettings {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PrintSettingsPrivate * priv;
-};
-
-struct _PrintSettingsClass {
- GTypeClass parent_class;
- void (*finalize) (PrintSettings *self);
-};
-
-typedef enum {
- MEASUREMENT_UNIT_INCHES,
- MEASUREMENT_UNIT_CENTIMETERS
-} MeasurementUnit;
-
-struct _Measurement {
- gdouble value;
- MeasurementUnit unit;
-};
-
-struct _PrintSettingsPrivate {
- ContentLayout content_layout;
- Measurement content_width;
- Measurement content_height;
- gint content_ppi;
- gint image_per_page_selection;
- gint size_selection;
- gboolean match_aspect_ratio;
- gboolean print_titles;
- gchar* print_titles_font;
-};
-
-struct _StandardPrintSize {
- GTypeInstance parent_instance;
- volatile int ref_count;
- StandardPrintSizePrivate * priv;
- gchar* name;
- Measurement width;
- Measurement height;
-};
-
-struct _StandardPrintSizeClass {
- GTypeClass parent_class;
- void (*finalize) (StandardPrintSize *self);
-};
-
-struct _ParamSpecPrintSettings {
- GParamSpec parent_instance;
-};
-
-typedef enum {
- PRINT_LAYOUT_ENTIRE_PAGE,
- PRINT_LAYOUT_TWO_PER_PAGE,
- PRINT_LAYOUT_FOUR_PER_PAGE,
- PRINT_LAYOUT_SIX_PER_PAGE,
- PRINT_LAYOUT_EIGHT_PER_PAGE,
- PRINT_LAYOUT_SIXTEEN_PER_PAGE,
- PRINT_LAYOUT_THIRTY_TWO_PER_PAGE
-} PrintLayout;
-
-struct _CustomPrintTab {
- GtkBox parent_instance;
- CustomPrintTabPrivate * priv;
-};
-
-struct _CustomPrintTabClass {
- GtkBoxClass parent_class;
-};
-
-struct _CustomPrintTabPrivate {
- GtkRadioButton* standard_size_radio;
- GtkRadioButton* custom_size_radio;
- GtkRadioButton* image_per_page_radio;
- GtkComboBoxText* image_per_page_combo;
- GtkComboBoxText* standard_sizes_combo;
- GtkComboBoxText* units_combo;
- GtkEntry* custom_width_entry;
- GtkEntry* custom_height_entry;
- GtkEntry* ppi_entry;
- GtkCheckButton* aspect_ratio_check;
- GtkCheckButton* title_print_check;
- GtkFontButton* title_print_font;
- Measurement local_content_width;
- Measurement local_content_height;
- gint local_content_ppi;
- gboolean is_text_insertion_in_progress;
- PrintJob* source_job;
-};
-
-typedef enum {
- RESOURCES_UNIT_SYSTEM_IMPERIAL,
- RESOURCES_UNIT_SYSTEM_METRIC,
- RESOURCES_UNIT_SYSTEM_UNKNOWN
-} ResourcesUnitSystem;
-
-struct _PrintJob {
- GtkPrintOperation parent_instance;
- PrintJobPrivate * priv;
-};
-
-struct _PrintJobClass {
- GtkPrintOperationClass parent_class;
-};
-
-struct _PrintJobPrivate {
- PrintSettings* settings;
- GeeArrayList* photos;
-};
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _ParamSpecStandardPrintSize {
- GParamSpec parent_instance;
-};
-
-struct _PrintManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PrintManagerPrivate * priv;
-};
-
-struct _PrintManagerClass {
- GTypeClass parent_class;
- void (*finalize) (PrintManager *self);
-};
-
-struct _PrintManagerPrivate {
- PrintSettings* settings;
- GtkPageSetup* user_page_setup;
- CustomPrintTab* custom_tab;
- ProgressDialog* progress_dialog;
- GCancellable* cancellable;
- StandardPrintSize** standard_sizes;
- gint standard_sizes_length1;
- gint _standard_sizes_size_;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _ParamSpecPrintManager {
- GParamSpec parent_instance;
-};
-
-
-static gpointer print_settings_parent_class = NULL;
-static gpointer custom_print_tab_parent_class = NULL;
-static gpointer print_job_parent_class = NULL;
-static gpointer standard_print_size_parent_class = NULL;
-static gpointer print_manager_parent_class = NULL;
-static PrintManager* print_manager_instance;
-static PrintManager* print_manager_instance = NULL;
-
-GType content_layout_get_type (void) G_GNUC_CONST;
-gpointer print_settings_ref (gpointer instance);
-void print_settings_unref (gpointer instance);
-GParamSpec* param_spec_print_settings (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_print_settings (GValue* value,
- gpointer v_object);
-void value_take_print_settings (GValue* value,
- gpointer v_object);
-gpointer value_get_print_settings (const GValue* value);
-GType print_settings_get_type (void) G_GNUC_CONST;
-GType measurement_get_type (void) G_GNUC_CONST;
-GType measurement_unit_get_type (void) G_GNUC_CONST;
-Measurement* measurement_dup (const Measurement* self);
-void measurement_free (Measurement* self);
-#define PRINT_SETTINGS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PRINT_SETTINGS, PrintSettingsPrivate))
-#define PRINT_SETTINGS_MIN_CONTENT_PPI 72
-#define PRINT_SETTINGS_MAX_CONTENT_PPI 1200
-PrintSettings* print_settings_new (void);
-PrintSettings* print_settings_construct (GType object_type);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gint configuration_facade_get_printing_content_units (ConfigurationFacade* self);
-gdouble configuration_facade_get_printing_content_width (ConfigurationFacade* self);
-void measurement_init (Measurement *self,
- gdouble value,
- MeasurementUnit unit);
-gdouble configuration_facade_get_printing_content_height (ConfigurationFacade* self);
-gint configuration_facade_get_printing_size_selection (ConfigurationFacade* self);
-gint configuration_facade_get_printing_content_layout (ConfigurationFacade* self);
-gboolean configuration_facade_get_printing_match_aspect_ratio (ConfigurationFacade* self);
-gboolean configuration_facade_get_printing_print_titles (ConfigurationFacade* self);
-gchar* configuration_facade_get_printing_titles_font (ConfigurationFacade* self);
-gint configuration_facade_get_printing_images_per_page (ConfigurationFacade* self);
-gint configuration_facade_get_printing_content_ppi (ConfigurationFacade* self);
-void print_settings_save (PrintSettings* self);
-void configuration_facade_set_printing_content_units (ConfigurationFacade* self,
- gint units_code);
-void configuration_facade_set_printing_content_width (ConfigurationFacade* self,
- gdouble content_width);
-void configuration_facade_set_printing_content_height (ConfigurationFacade* self,
- gdouble content_height);
-void configuration_facade_set_printing_size_selection (ConfigurationFacade* self,
- gint size_code);
-void configuration_facade_set_printing_content_layout (ConfigurationFacade* self,
- gint layout_code);
-void configuration_facade_set_printing_match_aspect_ratio (ConfigurationFacade* self,
- gboolean match_aspect_ratio);
-void configuration_facade_set_printing_print_titles (ConfigurationFacade* self,
- gboolean print_titles);
-void configuration_facade_set_printing_titles_font (ConfigurationFacade* self,
- const gchar* font_name);
-void configuration_facade_set_printing_images_per_page (ConfigurationFacade* self,
- gint images_per_page_code);
-void configuration_facade_set_printing_content_ppi (ConfigurationFacade* self,
- gint content_ppi);
-void print_settings_get_content_width (PrintSettings* self,
- Measurement* result);
-ContentLayout print_settings_get_content_layout (PrintSettings* self);
-gpointer print_manager_ref (gpointer instance);
-void print_manager_unref (gpointer instance);
-GParamSpec* param_spec_print_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_print_manager (GValue* value,
- gpointer v_object);
-void value_take_print_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_print_manager (const GValue* value);
-GType print_manager_get_type (void) G_GNUC_CONST;
-PrintManager* print_manager_get_instance (void);
-gpointer standard_print_size_ref (gpointer instance);
-void standard_print_size_unref (gpointer instance);
-GParamSpec* param_spec_standard_print_size (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_standard_print_size (GValue* value,
- gpointer v_object);
-void value_take_standard_print_size (GValue* value,
- gpointer v_object);
-gpointer value_get_standard_print_size (const GValue* value);
-GType standard_print_size_get_type (void) G_GNUC_CONST;
-StandardPrintSize** print_manager_get_standard_sizes (PrintManager* self,
- int* result_length1);
-gint print_settings_get_size_selection (PrintSettings* self);
-void print_settings_get_content_height (PrintSettings* self,
- Measurement* result);
-void print_settings_get_minimum_content_dimension (PrintSettings* self,
- Measurement* result);
-void print_settings_get_maximum_content_dimension (PrintSettings* self,
- Measurement* result);
-gboolean print_settings_is_match_aspect_ratio_enabled (PrintSettings* self);
-gboolean print_settings_is_print_titles_enabled (PrintSettings* self);
-gint print_settings_get_content_ppi (PrintSettings* self);
-gint print_settings_get_image_per_page_selection (PrintSettings* self);
-void print_settings_set_content_layout (PrintSettings* self,
- ContentLayout content_layout);
-void print_settings_set_content_width (PrintSettings* self,
- Measurement* content_width);
-void print_settings_set_content_height (PrintSettings* self,
- Measurement* content_height);
-void print_settings_set_content_ppi (PrintSettings* self,
- gint content_ppi);
-void print_settings_set_image_per_page_selection (PrintSettings* self,
- gint image_per_page_selection);
-void print_settings_set_size_selection (PrintSettings* self,
- gint size_selection);
-void print_settings_set_match_aspect_ratio_enabled (PrintSettings* self,
- gboolean enable_state);
-void print_settings_set_print_titles_enabled (PrintSettings* self,
- gboolean print_titles);
-void print_settings_set_print_titles_font (PrintSettings* self,
- const gchar* fontname);
-gchar* print_settings_get_print_titles_font (PrintSettings* self);
-static void print_settings_finalize (PrintSettings * obj);
-#define MEASUREMENT_CENTIMETERS_PER_INCH 2.54
-#define MEASUREMENT_INCHES_PER_CENTIMETER (1.0 / 2.54)
-void measurement_convert_to (Measurement *self,
- MeasurementUnit to_unit,
- Measurement* result);
-gboolean measurement_is_less_than (Measurement *self,
- Measurement* rhs);
-gboolean measurement_is_greater_than (Measurement *self,
- Measurement* rhs);
-GType print_layout_get_type (void) G_GNUC_CONST;
-PrintLayout* print_layout_get_all (int* result_length1);
-gint print_layout_get_per_page (PrintLayout self);
-gint print_layout_get_x (PrintLayout self);
-gint print_layout_get_y (PrintLayout self);
-gchar* print_layout_to_string (PrintLayout self);
-GType custom_print_tab_get_type (void) G_GNUC_CONST;
-GType print_job_get_type (void) G_GNUC_CONST;
-#define CUSTOM_PRINT_TAB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CUSTOM_PRINT_TAB, CustomPrintTabPrivate))
-#define CUSTOM_PRINT_TAB_INCHES_COMBO_CHOICE 0
-#define CUSTOM_PRINT_TAB_CENTIMETERS_COMBO_CHOICE 1
-CustomPrintTab* custom_print_tab_new (PrintJob* source_job);
-CustomPrintTab* custom_print_tab_construct (GType object_type,
- PrintJob* source_job);
-static void custom_print_tab_on_radio_group_click (CustomPrintTab* self,
- GtkButton* b);
-static void _custom_print_tab_on_radio_group_click_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static gboolean custom_print_tab_standard_sizes_combo_separator_func (GtkTreeModel* model,
- GtkTreeIter* iter);
-static gboolean _custom_print_tab_standard_sizes_combo_separator_func_gtk_tree_view_row_separator_func (GtkTreeModel* model,
- GtkTreeIter* iter,
- gpointer self);
-GType resources_unit_system_get_type (void) G_GNUC_CONST;
-ResourcesUnitSystem resources_get_default_measurement_unit (void);
-static void custom_print_tab_on_entry_insert_text (CustomPrintTab* self,
- GtkEditable* editable,
- const gchar* text,
- gint length,
- gint* position);
-static void _custom_print_tab_on_entry_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self);
-static gboolean custom_print_tab_on_width_entry_focus_out (CustomPrintTab* self,
- GdkEventFocus* event);
-static gboolean _custom_print_tab_on_width_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self);
-static gboolean custom_print_tab_on_height_entry_focus_out (CustomPrintTab* self,
- GdkEventFocus* event);
-static gboolean _custom_print_tab_on_height_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self);
-static void custom_print_tab_on_units_combo_changed (CustomPrintTab* self);
-static void _custom_print_tab_on_units_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void custom_print_tab_on_ppi_entry_insert_text (CustomPrintTab* self,
- GtkEditable* editable,
- const gchar* text,
- gint length,
- gint* position);
-static void _custom_print_tab_on_ppi_entry_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self);
-static gboolean custom_print_tab_on_ppi_entry_focus_out (CustomPrintTab* self,
- GdkEventFocus* event);
-static gboolean _custom_print_tab_on_ppi_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self);
-static void custom_print_tab_sync_state_from_job (CustomPrintTab* self,
- PrintJob* job);
-static void custom_print_tab_on_aspect_ratio_check_clicked (CustomPrintTab* self);
-static void _custom_print_tab_on_aspect_ratio_check_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-gdouble print_job_get_source_aspect_ratio (PrintJob* self);
-static gchar* custom_print_tab_format_measurement (CustomPrintTab* self,
- Measurement* measurement);
-static gchar* custom_print_tab_format_measurement_as (CustomPrintTab* self,
- Measurement* measurement,
- MeasurementUnit to_unit);
-static MeasurementUnit custom_print_tab_get_user_unit_choice (CustomPrintTab* self);
-static void custom_print_tab_get_width_entry_value (CustomPrintTab* self,
- Measurement* result);
-PrintSettings* print_job_get_local_settings (PrintJob* self);
-static gboolean custom_print_tab_is_match_aspect_ratio_enabled (CustomPrintTab* self);
-static void custom_print_tab_set_content_ppi (CustomPrintTab* self,
- gint content_ppi);
-static void custom_print_tab_get_height_entry_value (CustomPrintTab* self,
- Measurement* result);
-static void custom_print_tab_set_user_unit_choice (CustomPrintTab* self,
- MeasurementUnit unit);
-static void custom_print_tab_set_content_width (CustomPrintTab* self,
- Measurement* content_width);
-static void custom_print_tab_set_content_height (CustomPrintTab* self,
- Measurement* content_height);
-static void custom_print_tab_set_content_layout (CustomPrintTab* self,
- ContentLayout content_layout);
-static void custom_print_tab_set_image_per_page_selection (CustomPrintTab* self,
- gint image_per_page);
-static void custom_print_tab_set_size_selection (CustomPrintTab* self,
- gint size_selection);
-static void custom_print_tab_set_match_aspect_ratio_enabled (CustomPrintTab* self,
- gboolean enable_state);
-static void custom_print_tab_set_print_titles_enabled (CustomPrintTab* self,
- gboolean print_titles);
-static void custom_print_tab_set_print_titles_font (CustomPrintTab* self,
- const gchar* fontname);
-static void custom_print_tab_set_content_layout_control_state (CustomPrintTab* self,
- ContentLayout layout);
-static ContentLayout custom_print_tab_get_content_layout (CustomPrintTab* self);
-static void custom_print_tab_get_content_width (CustomPrintTab* self,
- Measurement* result);
-static void custom_print_tab_get_content_height (CustomPrintTab* self,
- Measurement* result);
-static gint custom_print_tab_get_content_ppi (CustomPrintTab* self);
-static gint custom_print_tab_get_image_per_page_selection (CustomPrintTab* self);
-static gint custom_print_tab_get_size_selection (CustomPrintTab* self);
-static gboolean custom_print_tab_is_print_titles_enabled (CustomPrintTab* self);
-static gchar* custom_print_tab_get_print_titles_font (CustomPrintTab* self);
-PrintJob* custom_print_tab_get_source_job (CustomPrintTab* self);
-PrintSettings* custom_print_tab_get_local_settings (CustomPrintTab* self);
-static void custom_print_tab_finalize (GObject * obj);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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;
-#define PRINT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PRINT_JOB, PrintJobPrivate))
-PrintJob* print_job_new (GeeCollection* to_print);
-PrintJob* print_job_construct (GType object_type,
- GeeCollection* to_print);
-PrintSettings* print_manager_get_global_settings (PrintManager* self);
-GType photo_exception_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-gdouble dimensions_get_aspect_ratio (Dimensions *self);
-GeeList* print_job_get_photos (PrintJob* self);
-Photo* print_job_get_source_photo (PrintJob* self);
-void print_job_set_local_settings (PrintJob* self,
- PrintSettings* settings);
-static void print_job_finalize (GObject * obj);
-StandardPrintSize* standard_print_size_new (const gchar* name,
- Measurement* width,
- Measurement* height);
-StandardPrintSize* standard_print_size_construct (GType object_type,
- const gchar* name,
- Measurement* width,
- Measurement* height);
-static void standard_print_size_finalize (StandardPrintSize * obj);
-GType progress_dialog_get_type (void) G_GNUC_CONST;
-#define PRINT_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PRINT_MANAGER, PrintManagerPrivate))
-#define PRINT_MANAGER_IMAGE_DISTANCE 0.24
-static PrintManager* print_manager_new (void);
-static PrintManager* print_manager_construct (GType object_type);
-static void _vala_array_add112 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add113 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add114 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add115 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add116 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add117 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add118 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add119 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add120 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add121 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add122 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add123 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add124 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add125 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-static void _vala_array_add126 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value);
-void print_manager_spool_photo (PrintManager* self,
- GeeCollection* to_print);
-gchar* data_object_get_name (DataObject* self);
-static void print_manager_on_begin_print (PrintManager* self,
- GtkPrintOperation* emitting_object,
- GtkPrintContext* job_context);
-static void _print_manager_on_begin_print_gtk_print_operation_begin_print (GtkPrintOperation* _sender,
- GtkPrintContext* context,
- gpointer self);
-static void print_manager_on_draw_page (PrintManager* self,
- GtkPrintOperation* emitting_object,
- GtkPrintContext* job_context,
- gint page_num);
-static void _print_manager_on_draw_page_gtk_print_operation_draw_page (GtkPrintOperation* _sender,
- GtkPrintContext* context,
- gint page_nr,
- gpointer self);
-static GObject* print_manager_on_create_custom_widget (PrintManager* self,
- GtkPrintOperation* emitting_object);
-static GObject* _print_manager_on_create_custom_widget_gtk_print_operation_create_custom_widget (GtkPrintOperation* _sender,
- gpointer self);
-static void print_manager_on_status_changed (PrintManager* self,
- GtkPrintOperation* job);
-static void _print_manager_on_status_changed_gtk_print_operation_status_changed (GtkPrintOperation* _sender,
- gpointer self);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-void page_window_set_busy_cursor (PageWindow* self);
-ProgressDialog* progress_dialog_new (GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-ProgressDialog* progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-void progress_dialog_close (ProgressDialog* self);
-void page_window_set_normal_cursor (PageWindow* self);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-void spin_event_loop (void);
-void progress_dialog_set_status (ProgressDialog* self,
- const gchar* text);
-static void print_manager_fit_image_to_canvas (PrintManager* self,
- Photo* photo,
- gdouble x,
- gdouble y,
- gdouble canvas_width,
- gdouble canvas_height,
- gboolean crop,
- PrintJob* job,
- GtkPrintContext* job_context);
-static void print_manager_add_title_to_canvas (PrintManager* self,
- gdouble x,
- gdouble y,
- const gchar* title,
- PrintJob* job,
- GtkPrintContext* job_context);
-gboolean progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop);
-static void print_manager_on_custom_widget_apply (PrintManager* self,
- GtkWidget* custom_widget);
-static void _print_manager_on_custom_widget_apply_gtk_print_operation_custom_widget_apply (GtkPrintOperation* _sender,
- GtkWidget* widget,
- gpointer self);
-void print_manager_set_global_settings (PrintManager* self,
- PrintSettings* settings);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-static gboolean print_manager_are_approximately_equal (PrintManager* self,
- gdouble val1,
- gdouble val2);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void scaling_to_fill_viewport (Dimensions* viewport,
- Scaling* result);
-GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self,
- GdkPixbuf* pixbuf,
- GdkInterpType interp,
- gboolean scale_up);
-void scaling_for_viewport (Dimensions* viewport,
- gboolean scale_up,
- Scaling* result);
-static void _vala_PangoFontDescription_free (PangoFontDescription* self);
-static void print_manager_finalize (PrintManager * 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);
-
-
-GType
-content_layout_get_type (void)
-{
- static volatile gsize content_layout_type_id__volatile = 0;
- if (g_once_init_enter (&content_layout_type_id__volatile)) {
- static const GEnumValue values[] = {{CONTENT_LAYOUT_STANDARD_SIZE, "CONTENT_LAYOUT_STANDARD_SIZE", "standard-size"}, {CONTENT_LAYOUT_CUSTOM_SIZE, "CONTENT_LAYOUT_CUSTOM_SIZE", "custom-size"}, {CONTENT_LAYOUT_IMAGE_PER_PAGE, "CONTENT_LAYOUT_IMAGE_PER_PAGE", "image-per-page"}, {0, NULL, NULL}};
- GType content_layout_type_id;
- content_layout_type_id = g_enum_register_static ("ContentLayout", values);
- g_once_init_leave (&content_layout_type_id__volatile, content_layout_type_id);
- }
- return content_layout_type_id__volatile;
-}
-
-
-PrintSettings*
-print_settings_construct (GType object_type)
-{
- PrintSettings* self = NULL;
- ConfigFacade* config = NULL;
- ConfigFacade* _tmp0_;
- MeasurementUnit units = 0;
- gchar* _tmp1_;
-#line 30 "/home/jens/Source/shotwell/src/Printing.vala"
- self = (PrintSettings*) g_type_create_instance (object_type);
-#line 31 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 31 "/home/jens/Source/shotwell/src/Printing.vala"
- config = _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/Printing.vala"
- units = (MeasurementUnit) configuration_facade_get_printing_content_units (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 35 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&self->priv->content_width, configuration_facade_get_printing_content_width (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)), units);
-#line 36 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&self->priv->content_height, configuration_facade_get_printing_content_height (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)), units);
-#line 37 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->size_selection = configuration_facade_get_printing_size_selection (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 38 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->content_layout = (ContentLayout) configuration_facade_get_printing_content_layout (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 39 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->match_aspect_ratio = configuration_facade_get_printing_match_aspect_ratio (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 40 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->print_titles = configuration_facade_get_printing_print_titles (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 41 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = configuration_facade_get_printing_titles_font (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 41 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (self->priv->print_titles_font);
-#line 41 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->print_titles_font = _tmp1_;
-#line 42 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->image_per_page_selection = configuration_facade_get_printing_images_per_page (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 43 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->content_ppi = configuration_facade_get_printing_content_ppi (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 30 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (config);
-#line 30 "/home/jens/Source/shotwell/src/Printing.vala"
- return self;
-#line 931 "Printing.c"
-}
-
-
-PrintSettings*
-print_settings_new (void)
-{
-#line 30 "/home/jens/Source/shotwell/src/Printing.vala"
- return print_settings_construct (TYPE_PRINT_SETTINGS);
-#line 940 "Printing.c"
-}
-
-
-void
-print_settings_save (PrintSettings* self)
-{
- ConfigFacade* config = NULL;
- ConfigFacade* _tmp0_;
- Measurement _tmp1_;
- MeasurementUnit _tmp2_;
- Measurement _tmp3_;
- gdouble _tmp4_;
- Measurement _tmp5_;
- gdouble _tmp6_;
- gint _tmp7_;
- ContentLayout _tmp8_;
- gboolean _tmp9_;
- gboolean _tmp10_;
- const gchar* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
-#line 46 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 47 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 47 "/home/jens/Source/shotwell/src/Printing.vala"
- config = _tmp0_;
-#line 49 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->content_width;
-#line 49 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = _tmp1_.unit;
-#line 49 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_content_units (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), (gint) _tmp2_);
-#line 50 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = self->priv->content_width;
-#line 50 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_.value;
-#line 50 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_content_width (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp4_);
-#line 51 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = self->priv->content_height;
-#line 51 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = _tmp5_.value;
-#line 51 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_content_height (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_);
-#line 52 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = self->priv->size_selection;
-#line 52 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_size_selection (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp7_);
-#line 53 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = self->priv->content_layout;
-#line 53 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_content_layout (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), (gint) _tmp8_);
-#line 54 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = self->priv->match_aspect_ratio;
-#line 54 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_match_aspect_ratio (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp9_);
-#line 55 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = self->priv->print_titles;
-#line 55 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_print_titles (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp10_);
-#line 56 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = self->priv->print_titles_font;
-#line 56 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_titles_font (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp11_);
-#line 57 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = self->priv->image_per_page_selection;
-#line 57 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_images_per_page (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp12_);
-#line 58 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = self->priv->content_ppi;
-#line 58 "/home/jens/Source/shotwell/src/Printing.vala"
- configuration_facade_set_printing_content_ppi (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp13_);
-#line 46 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (config);
-#line 1016 "Printing.c"
-}
-
-
-void
-print_settings_get_content_width (PrintSettings* self,
- Measurement* result)
-{
-#line 62 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 63 "/home/jens/Source/shotwell/src/Printing.vala"
- switch (print_settings_get_content_layout (self)) {
-#line 63 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_STANDARD_SIZE:
-#line 63 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_IMAGE_PER_PAGE:
-#line 1032 "Printing.c"
- {
- PrintManager* _tmp0_;
- PrintManager* _tmp1_;
- gint _tmp2_;
- StandardPrintSize** _tmp3_;
- StandardPrintSize* _tmp4_;
- Measurement _tmp5_;
- Measurement _tmp6_;
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = print_manager_get_instance ();
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _tmp0_;
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = print_manager_get_standard_sizes (_tmp1_, &_tmp2_);
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_[print_settings_get_size_selection (self)];
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = _tmp4_->width;
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = _tmp5_;
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_manager_unref0 (_tmp1_);
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp6_;
-#line 66 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1059 "Printing.c"
- }
-#line 63 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_CUSTOM_SIZE:
-#line 1063 "Printing.c"
- {
- Measurement _tmp7_;
-#line 70 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = self->priv->content_width;
-#line 70 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp7_;
-#line 70 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1072 "Printing.c"
- }
- default:
- {
-#line 73 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:73: unknown ContentLayout enumeration value");
-#line 1078 "Printing.c"
- }
- }
-}
-
-
-void
-print_settings_get_content_height (PrintSettings* self,
- Measurement* result)
-{
-#line 77 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 78 "/home/jens/Source/shotwell/src/Printing.vala"
- switch (print_settings_get_content_layout (self)) {
-#line 78 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_STANDARD_SIZE:
-#line 78 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_IMAGE_PER_PAGE:
-#line 1096 "Printing.c"
- {
- PrintManager* _tmp0_;
- PrintManager* _tmp1_;
- gint _tmp2_;
- StandardPrintSize** _tmp3_;
- StandardPrintSize* _tmp4_;
- Measurement _tmp5_;
- Measurement _tmp6_;
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = print_manager_get_instance ();
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = print_manager_get_standard_sizes (_tmp1_, &_tmp2_);
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_[print_settings_get_size_selection (self)];
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = _tmp4_->height;
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = _tmp5_;
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_manager_unref0 (_tmp1_);
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp6_;
-#line 81 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1123 "Printing.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_CUSTOM_SIZE:
-#line 1127 "Printing.c"
- {
- Measurement _tmp7_;
-#line 85 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = self->priv->content_height;
-#line 85 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp7_;
-#line 85 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1136 "Printing.c"
- }
- default:
- {
-#line 88 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:88: unknown ContentLayout enumeration value");
-#line 1142 "Printing.c"
- }
- }
-}
-
-
-void
-print_settings_get_minimum_content_dimension (PrintSettings* self,
- Measurement* result)
-{
- Measurement _tmp0_ = {0};
-#line 92 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 93 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp0_, 0.5, MEASUREMENT_UNIT_INCHES);
-#line 93 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp0_;
-#line 93 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1161 "Printing.c"
-}
-
-
-void
-print_settings_get_maximum_content_dimension (PrintSettings* self,
- Measurement* result)
-{
- Measurement _tmp0_ = {0};
-#line 96 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 97 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp0_, (gdouble) 30, MEASUREMENT_UNIT_INCHES);
-#line 97 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1178 "Printing.c"
-}
-
-
-gboolean
-print_settings_is_match_aspect_ratio_enabled (PrintSettings* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 100 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_SETTINGS (self), FALSE);
-#line 101 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->match_aspect_ratio;
-#line 101 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1195 "Printing.c"
-}
-
-
-gboolean
-print_settings_is_print_titles_enabled (PrintSettings* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 104 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_SETTINGS (self), FALSE);
-#line 105 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->print_titles;
-#line 105 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp0_;
-#line 105 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1212 "Printing.c"
-}
-
-
-gint
-print_settings_get_content_ppi (PrintSettings* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 108 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_SETTINGS (self), 0);
-#line 109 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->content_ppi;
-#line 109 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp0_;
-#line 109 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1229 "Printing.c"
-}
-
-
-gint
-print_settings_get_image_per_page_selection (PrintSettings* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 112 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_SETTINGS (self), 0);
-#line 113 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->image_per_page_selection;
-#line 113 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp0_;
-#line 113 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1246 "Printing.c"
-}
-
-
-gint
-print_settings_get_size_selection (PrintSettings* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 116 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_SETTINGS (self), 0);
-#line 117 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->size_selection;
-#line 117 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp0_;
-#line 117 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1263 "Printing.c"
-}
-
-
-ContentLayout
-print_settings_get_content_layout (PrintSettings* self)
-{
- ContentLayout result = 0;
- ContentLayout _tmp0_;
-#line 120 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_SETTINGS (self), 0);
-#line 121 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->content_layout;
-#line 121 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp0_;
-#line 121 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1280 "Printing.c"
-}
-
-
-void
-print_settings_set_content_layout (PrintSettings* self,
- ContentLayout content_layout)
-{
-#line 124 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 125 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->content_layout = content_layout;
-#line 1292 "Printing.c"
-}
-
-
-void
-print_settings_set_content_width (PrintSettings* self,
- Measurement* content_width)
-{
- Measurement _tmp0_;
-#line 128 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 128 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (content_width != NULL);
-#line 129 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = *content_width;
-#line 129 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->content_width = _tmp0_;
-#line 1309 "Printing.c"
-}
-
-
-void
-print_settings_set_content_height (PrintSettings* self,
- Measurement* content_height)
-{
- Measurement _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 132 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (content_height != NULL);
-#line 133 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = *content_height;
-#line 133 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->content_height = _tmp0_;
-#line 1326 "Printing.c"
-}
-
-
-void
-print_settings_set_content_ppi (PrintSettings* self,
- gint content_ppi)
-{
-#line 136 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 137 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->content_ppi = content_ppi;
-#line 1338 "Printing.c"
-}
-
-
-void
-print_settings_set_image_per_page_selection (PrintSettings* self,
- gint image_per_page_selection)
-{
-#line 140 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 141 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->image_per_page_selection = image_per_page_selection;
-#line 1350 "Printing.c"
-}
-
-
-void
-print_settings_set_size_selection (PrintSettings* self,
- gint size_selection)
-{
-#line 144 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 145 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->size_selection = size_selection;
-#line 1362 "Printing.c"
-}
-
-
-void
-print_settings_set_match_aspect_ratio_enabled (PrintSettings* self,
- gboolean enable_state)
-{
-#line 148 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 149 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->match_aspect_ratio = enable_state;
-#line 1374 "Printing.c"
-}
-
-
-void
-print_settings_set_print_titles_enabled (PrintSettings* self,
- gboolean print_titles)
-{
-#line 152 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 153 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->print_titles = print_titles;
-#line 1386 "Printing.c"
-}
-
-
-void
-print_settings_set_print_titles_font (PrintSettings* self,
- const gchar* fontname)
-{
- gchar* _tmp0_;
-#line 156 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (self));
-#line 156 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (fontname != NULL);
-#line 157 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = g_strdup (fontname);
-#line 157 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (self->priv->print_titles_font);
-#line 157 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->print_titles_font = _tmp0_;
-#line 1405 "Printing.c"
-}
-
-
-gchar*
-print_settings_get_print_titles_font (PrintSettings* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 160 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_SETTINGS (self), NULL);
-#line 161 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->print_titles_font;
-#line 161 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 161 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1425 "Printing.c"
-}
-
-
-static void
-value_print_settings_init (GValue* value)
-{
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 1434 "Printing.c"
-}
-
-
-static void
-value_print_settings_free_value (GValue* value)
-{
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (value->data[0].v_pointer) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_unref (value->data[0].v_pointer);
-#line 1445 "Printing.c"
- }
-}
-
-
-static void
-value_print_settings_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (src_value->data[0].v_pointer) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- dest_value->data[0].v_pointer = print_settings_ref (src_value->data[0].v_pointer);
-#line 1458 "Printing.c"
- } else {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1462 "Printing.c"
- }
-}
-
-
-static gpointer
-value_print_settings_peek_pointer (const GValue* value)
-{
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- return value->data[0].v_pointer;
-#line 1472 "Printing.c"
-}
-
-
-static gchar*
-value_print_settings_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (collect_values[0].v_pointer) {
-#line 1484 "Printing.c"
- PrintSettings * object;
- object = collect_values[0].v_pointer;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1491 "Printing.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.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 1495 "Printing.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = print_settings_ref (object);
-#line 1499 "Printing.c"
- } else {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 1503 "Printing.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- return NULL;
-#line 1507 "Printing.c"
-}
-
-
-static gchar*
-value_print_settings_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PrintSettings ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!object_p) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1523 "Printing.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!value->data[0].v_pointer) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = NULL;
-#line 1529 "Printing.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = value->data[0].v_pointer;
-#line 1533 "Printing.c"
- } else {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = print_settings_ref (value->data[0].v_pointer);
-#line 1537 "Printing.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- return NULL;
-#line 1541 "Printing.c"
-}
-
-
-GParamSpec*
-param_spec_print_settings (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPrintSettings* spec;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PRINT_SETTINGS), NULL);
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- return G_PARAM_SPEC (spec);
-#line 1561 "Printing.c"
-}
-
-
-gpointer
-value_get_print_settings (const GValue* value)
-{
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_SETTINGS), NULL);
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- return value->data[0].v_pointer;
-#line 1572 "Printing.c"
-}
-
-
-void
-value_set_print_settings (GValue* value,
- gpointer v_object)
-{
- PrintSettings * old;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_SETTINGS));
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- old = value->data[0].v_pointer;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (v_object) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PRINT_SETTINGS));
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = v_object;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_ref (value->data[0].v_pointer);
-#line 1595 "Printing.c"
- } else {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 1599 "Printing.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (old) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_unref (old);
-#line 1605 "Printing.c"
- }
-}
-
-
-void
-value_take_print_settings (GValue* value,
- gpointer v_object)
-{
- PrintSettings * old;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_SETTINGS));
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- old = value->data[0].v_pointer;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (v_object) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PRINT_SETTINGS));
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = v_object;
-#line 1627 "Printing.c"
- } else {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 1631 "Printing.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (old) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_unref (old);
-#line 1637 "Printing.c"
- }
-}
-
-
-static void
-print_settings_class_init (PrintSettingsClass * klass)
-{
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_parent_class = g_type_class_peek_parent (klass);
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- ((PrintSettingsClass *) klass)->finalize = print_settings_finalize;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_type_class_add_private (klass, sizeof (PrintSettingsPrivate));
-#line 1651 "Printing.c"
-}
-
-
-static void
-print_settings_instance_init (PrintSettings * self)
-{
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv = PRINT_SETTINGS_GET_PRIVATE (self);
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- self->ref_count = 1;
-#line 1662 "Printing.c"
-}
-
-
-static void
-print_settings_finalize (PrintSettings * obj)
-{
- PrintSettings * self;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PRINT_SETTINGS, PrintSettings);
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_handlers_destroy (self);
-#line 28 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (self->priv->print_titles_font);
-#line 1676 "Printing.c"
-}
-
-
-GType
-print_settings_get_type (void)
-{
- static volatile gsize print_settings_type_id__volatile = 0;
- if (g_once_init_enter (&print_settings_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_print_settings_init, value_print_settings_free_value, value_print_settings_copy_value, value_print_settings_peek_pointer, "p", value_print_settings_collect_value, "p", value_print_settings_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PrintSettingsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) print_settings_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrintSettings), 0, (GInstanceInitFunc) print_settings_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType print_settings_type_id;
- print_settings_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PrintSettings", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&print_settings_type_id__volatile, print_settings_type_id);
- }
- return print_settings_type_id__volatile;
-}
-
-
-gpointer
-print_settings_ref (gpointer instance)
-{
- PrintSettings * self;
- self = instance;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- return instance;
-#line 1705 "Printing.c"
-}
-
-
-void
-print_settings_unref (gpointer instance)
-{
- PrintSettings * self;
- self = instance;
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- PRINT_SETTINGS_GET_CLASS (self)->finalize (self);
-#line 13 "/home/jens/Source/shotwell/src/Printing.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1720 "Printing.c"
- }
-}
-
-
-GType
-measurement_unit_get_type (void)
-{
- static volatile gsize measurement_unit_type_id__volatile = 0;
- if (g_once_init_enter (&measurement_unit_type_id__volatile)) {
- static const GEnumValue values[] = {{MEASUREMENT_UNIT_INCHES, "MEASUREMENT_UNIT_INCHES", "inches"}, {MEASUREMENT_UNIT_CENTIMETERS, "MEASUREMENT_UNIT_CENTIMETERS", "centimeters"}, {0, NULL, NULL}};
- GType measurement_unit_type_id;
- measurement_unit_type_id = g_enum_register_static ("MeasurementUnit", values);
- g_once_init_leave (&measurement_unit_type_id__volatile, measurement_unit_type_id);
- }
- return measurement_unit_type_id__volatile;
-}
-
-
-void
-measurement_init (Measurement *self,
- gdouble value,
- MeasurementUnit unit)
-{
-#line 185 "/home/jens/Source/shotwell/src/Printing.vala"
- memset (self, 0, sizeof (Measurement));
-#line 186 "/home/jens/Source/shotwell/src/Printing.vala"
- (*self).value = value;
-#line 187 "/home/jens/Source/shotwell/src/Printing.vala"
- (*self).unit = unit;
-#line 1750 "Printing.c"
-}
-
-
-void
-measurement_convert_to (Measurement *self,
- MeasurementUnit to_unit,
- Measurement* result)
-{
- MeasurementUnit _tmp0_;
-#line 191 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = (*self).unit;
-#line 191 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp0_ == to_unit) {
-#line 192 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = (*self);
-#line 192 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1768 "Printing.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/Printing.vala"
- if (to_unit == MEASUREMENT_UNIT_INCHES) {
-#line 1772 "Printing.c"
- gdouble _tmp1_;
- Measurement _tmp2_ = {0};
-#line 195 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = (*self).value;
-#line 195 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp2_, _tmp1_ * MEASUREMENT_INCHES_PER_CENTIMETER, MEASUREMENT_UNIT_INCHES);
-#line 195 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp2_;
-#line 195 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1783 "Printing.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/Printing.vala"
- if (to_unit == MEASUREMENT_UNIT_CENTIMETERS) {
-#line 1787 "Printing.c"
- gdouble _tmp3_;
- Measurement _tmp4_ = {0};
-#line 197 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = (*self).value;
-#line 197 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp4_, _tmp3_ * MEASUREMENT_CENTIMETERS_PER_INCH, MEASUREMENT_UNIT_CENTIMETERS);
-#line 197 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp4_;
-#line 197 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 1798 "Printing.c"
- } else {
-#line 199 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:199: unrecognized unit");
-#line 1802 "Printing.c"
- }
- }
-}
-
-
-gboolean
-measurement_is_less_than (Measurement *self,
- Measurement* rhs)
-{
- gboolean result = FALSE;
- Measurement _tmp0_ = {0};
- MeasurementUnit _tmp1_;
- Measurement _tmp2_;
- MeasurementUnit _tmp3_;
- Measurement converted_rhs = {0};
- gdouble _tmp7_;
- Measurement _tmp8_;
- gdouble _tmp9_;
-#line 203 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (rhs != NULL, FALSE);
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = (*self).unit;
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = *rhs;
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_.unit;
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_ == _tmp3_) {
-#line 1831 "Printing.c"
- Measurement _tmp4_;
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = *rhs;
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _tmp4_;
-#line 1837 "Printing.c"
- } else {
- MeasurementUnit _tmp5_;
- Measurement _tmp6_ = {0};
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = (*self).unit;
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (rhs, _tmp5_, &_tmp6_);
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _tmp6_;
-#line 1847 "Printing.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/Printing.vala"
- converted_rhs = _tmp0_;
-#line 205 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = (*self).value;
-#line 205 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = converted_rhs;
-#line 205 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = _tmp8_.value;
-#line 205 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp7_ < _tmp9_;
-#line 205 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1861 "Printing.c"
-}
-
-
-gboolean
-measurement_is_greater_than (Measurement *self,
- Measurement* rhs)
-{
- gboolean result = FALSE;
- Measurement _tmp0_ = {0};
- MeasurementUnit _tmp1_;
- Measurement _tmp2_;
- MeasurementUnit _tmp3_;
- Measurement converted_rhs = {0};
- gdouble _tmp7_;
- Measurement _tmp8_;
- gdouble _tmp9_;
-#line 208 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (rhs != NULL, FALSE);
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = (*self).unit;
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = *rhs;
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_.unit;
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_ == _tmp3_) {
-#line 1888 "Printing.c"
- Measurement _tmp4_;
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = *rhs;
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _tmp4_;
-#line 1894 "Printing.c"
- } else {
- MeasurementUnit _tmp5_;
- Measurement _tmp6_ = {0};
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = (*self).unit;
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (rhs, _tmp5_, &_tmp6_);
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _tmp6_;
-#line 1904 "Printing.c"
- }
-#line 209 "/home/jens/Source/shotwell/src/Printing.vala"
- converted_rhs = _tmp0_;
-#line 210 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = (*self).value;
-#line 210 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = converted_rhs;
-#line 210 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = _tmp8_.value;
-#line 210 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp7_ > _tmp9_;
-#line 210 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1918 "Printing.c"
-}
-
-
-Measurement*
-measurement_dup (const Measurement* self)
-{
- Measurement* dup;
-#line 178 "/home/jens/Source/shotwell/src/Printing.vala"
- dup = g_new0 (Measurement, 1);
-#line 178 "/home/jens/Source/shotwell/src/Printing.vala"
- memcpy (dup, self, sizeof (Measurement));
-#line 178 "/home/jens/Source/shotwell/src/Printing.vala"
- return dup;
-#line 1932 "Printing.c"
-}
-
-
-void
-measurement_free (Measurement* self)
-{
-#line 178 "/home/jens/Source/shotwell/src/Printing.vala"
- g_free (self);
-#line 1941 "Printing.c"
-}
-
-
-GType
-measurement_get_type (void)
-{
- static volatile gsize measurement_type_id__volatile = 0;
- if (g_once_init_enter (&measurement_type_id__volatile)) {
- GType measurement_type_id;
- measurement_type_id = g_boxed_type_register_static ("Measurement", (GBoxedCopyFunc) measurement_dup, (GBoxedFreeFunc) measurement_free);
- g_once_init_leave (&measurement_type_id__volatile, measurement_type_id);
- }
- return measurement_type_id__volatile;
-}
-
-
-PrintLayout*
-print_layout_get_all (int* result_length1)
-{
- PrintLayout* result = NULL;
- PrintLayout* _tmp0_;
- PrintLayout* _tmp1_;
- gint _tmp1__length1;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = g_new0 (PrintLayout, 7);
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[0] = PRINT_LAYOUT_ENTIRE_PAGE;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[1] = PRINT_LAYOUT_TWO_PER_PAGE;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[2] = PRINT_LAYOUT_FOUR_PER_PAGE;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[3] = PRINT_LAYOUT_SIX_PER_PAGE;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[4] = PRINT_LAYOUT_EIGHT_PER_PAGE;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[5] = PRINT_LAYOUT_SIXTEEN_PER_PAGE;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[6] = PRINT_LAYOUT_THIRTY_TWO_PER_PAGE;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _tmp0_;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1__length1 = 7;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- if (result_length1) {
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- *result_length1 = _tmp1__length1;
-#line 1989 "Printing.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 224 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 1995 "Printing.c"
-}
-
-
-gint
-print_layout_get_per_page (PrintLayout self)
-{
- gint result = 0;
- gint* per_page = NULL;
- gint* _tmp0_;
- gint per_page_length1;
- gint _per_page_size_;
- gint _tmp1_;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = g_new0 (gint, 7);
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[0] = 1;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[1] = 2;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[2] = 4;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[3] = 6;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[4] = 8;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[5] = 16;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[6] = 32;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- per_page = _tmp0_;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- per_page_length1 = 7;
-#line 236 "/home/jens/Source/shotwell/src/Printing.vala"
- _per_page_size_ = per_page_length1;
-#line 238 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = per_page[self];
-#line 238 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 238 "/home/jens/Source/shotwell/src/Printing.vala"
- per_page = (g_free (per_page), NULL);
-#line 238 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2038 "Printing.c"
-}
-
-
-gint
-print_layout_get_x (PrintLayout self)
-{
- gint result = 0;
- gint* x = NULL;
- gint* _tmp0_;
- gint x_length1;
- gint _x_size_;
- gint _tmp1_;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = g_new0 (gint, 7);
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[0] = 1;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[1] = 1;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[2] = 2;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[3] = 2;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[4] = 2;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[5] = 4;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[6] = 4;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- x = _tmp0_;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- x_length1 = 7;
-#line 242 "/home/jens/Source/shotwell/src/Printing.vala"
- _x_size_ = x_length1;
-#line 244 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = x[self];
-#line 244 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 244 "/home/jens/Source/shotwell/src/Printing.vala"
- x = (g_free (x), NULL);
-#line 244 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2081 "Printing.c"
-}
-
-
-gint
-print_layout_get_y (PrintLayout self)
-{
- gint result = 0;
- gint* y = NULL;
- gint* _tmp0_;
- gint y_length1;
- gint _y_size_;
- gint _tmp1_;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = g_new0 (gint, 7);
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[0] = 1;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[1] = 2;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[2] = 2;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[3] = 3;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[4] = 4;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[5] = 4;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_[6] = 8;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- y = _tmp0_;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- y_length1 = 7;
-#line 248 "/home/jens/Source/shotwell/src/Printing.vala"
- _y_size_ = y_length1;
-#line 250 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = y[self];
-#line 250 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 250 "/home/jens/Source/shotwell/src/Printing.vala"
- y = (g_free (y), NULL);
-#line 250 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2124 "Printing.c"
-}
-
-
-gchar*
-print_layout_to_string (PrintLayout self)
-{
- gchar* result = NULL;
- gchar** labels = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar** _tmp7_;
- gint labels_length1;
- gint _labels_size_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = g_strdup (_ ("Fill the entire page"));
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = g_strdup (_ ("2 images per page"));
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = g_strdup (_ ("4 images per page"));
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = g_strdup (_ ("6 images per page"));
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = g_strdup (_ ("8 images per page"));
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = g_strdup (_ ("16 images per page"));
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = g_strdup (_ ("32 images per page"));
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = g_new0 (gchar*, 7 + 1);
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_[0] = _tmp0_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_[1] = _tmp1_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_[2] = _tmp2_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_[3] = _tmp3_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_[4] = _tmp4_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_[5] = _tmp5_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_[6] = _tmp6_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- labels = _tmp7_;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- labels_length1 = 7;
-#line 254 "/home/jens/Source/shotwell/src/Printing.vala"
- _labels_size_ = labels_length1;
-#line 264 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = labels[self];
-#line 264 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 264 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp9_;
-#line 264 "/home/jens/Source/shotwell/src/Printing.vala"
- labels = (_vala_array_free (labels, labels_length1, (GDestroyNotify) g_free), NULL);
-#line 264 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2191 "Printing.c"
-}
-
-
-GType
-print_layout_get_type (void)
-{
- static volatile gsize print_layout_type_id__volatile = 0;
- if (g_once_init_enter (&print_layout_type_id__volatile)) {
- static const GEnumValue values[] = {{PRINT_LAYOUT_ENTIRE_PAGE, "PRINT_LAYOUT_ENTIRE_PAGE", "entire-page"}, {PRINT_LAYOUT_TWO_PER_PAGE, "PRINT_LAYOUT_TWO_PER_PAGE", "two-per-page"}, {PRINT_LAYOUT_FOUR_PER_PAGE, "PRINT_LAYOUT_FOUR_PER_PAGE", "four-per-page"}, {PRINT_LAYOUT_SIX_PER_PAGE, "PRINT_LAYOUT_SIX_PER_PAGE", "six-per-page"}, {PRINT_LAYOUT_EIGHT_PER_PAGE, "PRINT_LAYOUT_EIGHT_PER_PAGE", "eight-per-page"}, {PRINT_LAYOUT_SIXTEEN_PER_PAGE, "PRINT_LAYOUT_SIXTEEN_PER_PAGE", "sixteen-per-page"}, {PRINT_LAYOUT_THIRTY_TWO_PER_PAGE, "PRINT_LAYOUT_THIRTY_TWO_PER_PAGE", "thirty-two-per-page"}, {0, NULL, NULL}};
- GType print_layout_type_id;
- print_layout_type_id = g_enum_register_static ("PrintLayout", values);
- g_once_init_leave (&print_layout_type_id__volatile, print_layout_type_id);
- }
- return print_layout_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 305 "/home/jens/Source/shotwell/src/Printing.vala"
- return self ? g_object_ref (self) : NULL;
-#line 2214 "Printing.c"
-}
-
-
-static void
-_custom_print_tab_on_radio_group_click_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 307 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_on_radio_group_click ((CustomPrintTab*) self, _sender);
-#line 2224 "Printing.c"
-}
-
-
-static gboolean
-_custom_print_tab_standard_sizes_combo_separator_func_gtk_tree_view_row_separator_func (GtkTreeModel* model,
- GtkTreeIter* iter,
- gpointer self)
-{
- gboolean result;
- result = custom_print_tab_standard_sizes_combo_separator_func (model, iter);
-#line 316 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2237 "Printing.c"
-}
-
-
-static gpointer
-_standard_print_size_ref0 (gpointer self)
-{
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- return self ? standard_print_size_ref (self) : NULL;
-#line 2246 "Printing.c"
-}
-
-
-static void
-_custom_print_tab_on_entry_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self)
-{
-#line 323 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_on_entry_insert_text ((CustomPrintTab*) self, _sender, new_text, new_text_length, position);
-#line 2259 "Printing.c"
-}
-
-
-static gboolean
-_custom_print_tab_on_width_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self)
-{
- gboolean result;
- result = custom_print_tab_on_width_entry_focus_out ((CustomPrintTab*) self, event);
-#line 324 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2272 "Printing.c"
-}
-
-
-static gboolean
-_custom_print_tab_on_height_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self)
-{
- gboolean result;
- result = custom_print_tab_on_height_entry_focus_out ((CustomPrintTab*) self, event);
-#line 327 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2285 "Printing.c"
-}
-
-
-static void
-_custom_print_tab_on_units_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 329 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_on_units_combo_changed ((CustomPrintTab*) self);
-#line 2295 "Printing.c"
-}
-
-
-static void
-_custom_print_tab_on_ppi_entry_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self)
-{
-#line 332 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_on_ppi_entry_insert_text ((CustomPrintTab*) self, _sender, new_text, new_text_length, position);
-#line 2308 "Printing.c"
-}
-
-
-static gboolean
-_custom_print_tab_on_ppi_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self)
-{
- gboolean result;
- result = custom_print_tab_on_ppi_entry_focus_out ((CustomPrintTab*) self, event);
-#line 333 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2321 "Printing.c"
-}
-
-
-static void
-_custom_print_tab_on_aspect_ratio_check_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 340 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_on_aspect_ratio_check_clicked ((CustomPrintTab*) self);
-#line 2331 "Printing.c"
-}
-
-
-CustomPrintTab*
-custom_print_tab_construct (GType object_type,
- PrintJob* source_job)
-{
- CustomPrintTab * self = NULL;
- PrintJob* _tmp0_;
- GtkRadioButton* _tmp1_;
- GtkRadioButton* _tmp2_;
- GtkRadioButton* _tmp3_;
- gint _tmp4_;
- PrintLayout* _tmp5_;
- StandardPrintSize** standard_sizes = NULL;
- PrintManager* _tmp10_;
- PrintManager* _tmp11_;
- gint _tmp12_;
- StandardPrintSize** _tmp13_;
- StandardPrintSize** _tmp14_;
- gint _tmp14__length1;
- gint standard_sizes_length1;
- gint _standard_sizes_size_;
- GtkComboBoxText* _tmp15_;
- StandardPrintSize** _tmp16_;
- gint _tmp16__length1;
- GtkComboBoxText* _tmp21_;
- GtkEntry* _tmp22_;
- GtkEntry* _tmp23_;
- GtkEntry* _tmp24_;
- GtkEntry* _tmp25_;
- GtkComboBoxText* _tmp26_;
- GtkComboBoxText* _tmp27_;
- GtkEntry* _tmp28_;
- GtkEntry* _tmp29_;
- GtkCheckButton* _tmp30_;
-#line 304 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_JOB (source_job), NULL);
-#line 304 "/home/jens/Source/shotwell/src/Printing.vala"
- self = (CustomPrintTab*) g_object_new (object_type, NULL);
-#line 305 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _g_object_ref0 (source_job);
-#line 305 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->source_job);
-#line 305 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->source_job = _tmp0_;
-#line 307 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->standard_size_radio;
-#line 307 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _custom_print_tab_on_radio_group_click_gtk_button_clicked, self, 0);
-#line 308 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->custom_size_radio;
-#line 308 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _custom_print_tab_on_radio_group_click_gtk_button_clicked, self, 0);
-#line 309 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = self->priv->image_per_page_radio;
-#line 309 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _custom_print_tab_on_radio_group_click_gtk_button_clicked, self, 0);
-#line 311 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = print_layout_get_all (&_tmp4_);
-#line 2392 "Printing.c"
- {
- PrintLayout* layout_collection = NULL;
- gint layout_collection_length1 = 0;
- gint _layout_collection_size_ = 0;
- gint layout_it = 0;
-#line 311 "/home/jens/Source/shotwell/src/Printing.vala"
- layout_collection = _tmp5_;
-#line 311 "/home/jens/Source/shotwell/src/Printing.vala"
- layout_collection_length1 = _tmp4_;
-#line 311 "/home/jens/Source/shotwell/src/Printing.vala"
- for (layout_it = 0; layout_it < _tmp4_; layout_it = layout_it + 1) {
-#line 2404 "Printing.c"
- PrintLayout layout = 0;
-#line 311 "/home/jens/Source/shotwell/src/Printing.vala"
- layout = layout_collection[layout_it];
-#line 2408 "Printing.c"
- {
- GtkComboBoxText* _tmp6_;
- PrintLayout _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 312 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = self->priv->image_per_page_combo;
-#line 312 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = layout;
-#line 312 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = print_layout_to_string (_tmp7_);
-#line 312 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = _tmp8_;
-#line 312 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_text_append_text (_tmp6_, _tmp9_);
-#line 312 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp9_);
-#line 2426 "Printing.c"
- }
- }
-#line 311 "/home/jens/Source/shotwell/src/Printing.vala"
- layout_collection = (g_free (layout_collection), NULL);
-#line 2431 "Printing.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = print_manager_get_instance ();
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = _tmp10_;
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = print_manager_get_standard_sizes (_tmp11_, &_tmp12_);
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = _tmp13_;
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14__length1 = _tmp12_;
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_manager_unref0 (_tmp11_);
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- standard_sizes = _tmp14_;
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- standard_sizes_length1 = _tmp14__length1;
-#line 315 "/home/jens/Source/shotwell/src/Printing.vala"
- _standard_sizes_size_ = standard_sizes_length1;
-#line 316 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = self->priv->standard_sizes_combo;
-#line 316 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_set_row_separator_func (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox), _custom_print_tab_standard_sizes_combo_separator_func_gtk_tree_view_row_separator_func, NULL, NULL);
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = standard_sizes;
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16__length1 = standard_sizes_length1;
-#line 2459 "Printing.c"
- {
- StandardPrintSize** size_collection = NULL;
- gint size_collection_length1 = 0;
- gint _size_collection_size_ = 0;
- gint size_it = 0;
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- size_collection = _tmp16_;
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- size_collection_length1 = _tmp16__length1;
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- for (size_it = 0; size_it < _tmp16__length1; size_it = size_it + 1) {
-#line 2471 "Printing.c"
- StandardPrintSize* _tmp17_;
- StandardPrintSize* size = NULL;
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = _standard_print_size_ref0 (size_collection[size_it]);
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- size = _tmp17_;
-#line 2478 "Printing.c"
- {
- GtkComboBoxText* _tmp18_;
- StandardPrintSize* _tmp19_;
- const gchar* _tmp20_;
-#line 318 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = self->priv->standard_sizes_combo;
-#line 318 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = size;
-#line 318 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = _tmp19_->name;
-#line 318 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_text_append_text (_tmp18_, _tmp20_);
-#line 317 "/home/jens/Source/shotwell/src/Printing.vala"
- _standard_print_size_unref0 (size);
-#line 2493 "Printing.c"
- }
- }
- }
-#line 321 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = self->priv->standard_sizes_combo;
-#line 321 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_combo_box_get_type (), GtkComboBox), 9 * resources_get_default_measurement_unit ());
-#line 323 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = self->priv->custom_width_entry;
-#line 323 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _custom_print_tab_on_entry_insert_text_gtk_editable_insert_text, self, 0);
-#line 324 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = self->priv->custom_width_entry;
-#line 324 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _custom_print_tab_on_width_entry_focus_out_gtk_widget_focus_out_event, self, 0);
-#line 326 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = self->priv->custom_height_entry;
-#line 326 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _custom_print_tab_on_entry_insert_text_gtk_editable_insert_text, self, 0);
-#line 327 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = self->priv->custom_height_entry;
-#line 327 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _custom_print_tab_on_height_entry_focus_out_gtk_widget_focus_out_event, self, 0);
-#line 329 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26_ = self->priv->units_combo;
-#line 329 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _custom_print_tab_on_units_combo_changed_gtk_combo_box_changed, self, 0);
-#line 330 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp27_ = self->priv->units_combo;
-#line 330 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_combo_box_get_type (), GtkComboBox), (gint) resources_get_default_measurement_unit ());
-#line 332 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp28_ = self->priv->ppi_entry;
-#line 332 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _custom_print_tab_on_ppi_entry_insert_text_gtk_editable_insert_text, self, 0);
-#line 333 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp29_ = self->priv->ppi_entry;
-#line 333 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _custom_print_tab_on_ppi_entry_focus_out_gtk_widget_focus_out_event, self, 0);
-#line 335 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_sync_state_from_job (self, source_job);
-#line 337 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 340 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30_ = self->priv->aspect_ratio_check;
-#line 340 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _custom_print_tab_on_aspect_ratio_check_clicked_gtk_button_clicked, self, 0);
-#line 304 "/home/jens/Source/shotwell/src/Printing.vala"
- return self;
-#line 2543 "Printing.c"
-}
-
-
-CustomPrintTab*
-custom_print_tab_new (PrintJob* source_job)
-{
-#line 304 "/home/jens/Source/shotwell/src/Printing.vala"
- return custom_print_tab_construct (TYPE_CUSTOM_PRINT_TAB, source_job);
-#line 2552 "Printing.c"
-}
-
-
-static void
-custom_print_tab_on_aspect_ratio_check_clicked (CustomPrintTab* self)
-{
- GtkCheckButton* _tmp0_;
-#line 343 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 344 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->aspect_ratio_check;
-#line 344 "/home/jens/Source/shotwell/src/Printing.vala"
- if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))) {
-#line 2566 "Printing.c"
- Measurement _tmp1_;
- gdouble _tmp2_;
- PrintJob* _tmp3_;
- Measurement _tmp4_;
- MeasurementUnit _tmp5_;
- GtkEntry* _tmp6_;
- Measurement _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 345 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->local_content_height;
-#line 345 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = _tmp1_.value;
-#line 345 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = self->priv->source_job;
-#line 345 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = self->priv->local_content_height;
-#line 345 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = _tmp4_.unit;
-#line 345 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&self->priv->local_content_width, _tmp2_ * print_job_get_source_aspect_ratio (_tmp3_), _tmp5_);
-#line 348 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = self->priv->custom_width_entry;
-#line 348 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = self->priv->local_content_width;
-#line 348 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = custom_print_tab_format_measurement (self, &_tmp7_);
-#line 348 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = _tmp8_;
-#line 348 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp6_, _tmp9_);
-#line 348 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp9_);
-#line 2600 "Printing.c"
- }
-}
-
-
-static gboolean
-custom_print_tab_on_width_entry_focus_out (CustomPrintTab* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
- GtkEntry* _tmp0_;
- const gchar* _tmp1_;
- Measurement _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gboolean _tmp5_;
- Measurement new_width = {0};
- Measurement _tmp6_ = {0};
- Measurement min_width = {0};
- PrintJob* _tmp7_;
- PrintSettings* _tmp8_;
- PrintSettings* _tmp9_;
- Measurement _tmp10_ = {0};
- Measurement _tmp11_;
- Measurement max_width = {0};
- PrintJob* _tmp12_;
- PrintSettings* _tmp13_;
- PrintSettings* _tmp14_;
- Measurement _tmp15_ = {0};
- Measurement _tmp16_;
- gboolean _tmp17_ = FALSE;
- Measurement _tmp18_;
- Measurement _tmp34_;
- GtkEntry* _tmp35_;
- Measurement _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
-#line 352 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE);
-#line 352 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 353 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->custom_width_entry;
-#line 353 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = gtk_entry_get_text (_tmp0_);
-#line 353 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->local_content_width;
-#line 353 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = custom_print_tab_format_measurement_as (self, &_tmp2_, custom_print_tab_get_user_unit_choice (self));
-#line 353 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_;
-#line 353 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = g_strcmp0 (_tmp1_, _tmp4_) == 0;
-#line 353 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp4_);
-#line 353 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp5_) {
-#line 355 "/home/jens/Source/shotwell/src/Printing.vala"
- result = FALSE;
-#line 355 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2661 "Printing.c"
- }
-#line 357 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_get_width_entry_value (self, &_tmp6_);
-#line 357 "/home/jens/Source/shotwell/src/Printing.vala"
- new_width = _tmp6_;
-#line 358 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = self->priv->source_job;
-#line 358 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = print_job_get_local_settings (_tmp7_);
-#line 358 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = _tmp8_;
-#line 358 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_minimum_content_dimension (_tmp9_, &_tmp10_);
-#line 358 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = _tmp10_;
-#line 358 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp9_);
-#line 358 "/home/jens/Source/shotwell/src/Printing.vala"
- min_width = _tmp11_;
-#line 359 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = self->priv->source_job;
-#line 359 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = print_job_get_local_settings (_tmp12_);
-#line 359 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = _tmp13_;
-#line 359 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_maximum_content_dimension (_tmp14_, &_tmp15_);
-#line 359 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = _tmp15_;
-#line 359 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp14_);
-#line 359 "/home/jens/Source/shotwell/src/Printing.vala"
- max_width = _tmp16_;
-#line 361 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = min_width;
-#line 361 "/home/jens/Source/shotwell/src/Printing.vala"
- if (measurement_is_less_than (&new_width, &_tmp18_)) {
-#line 361 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = TRUE;
-#line 2701 "Printing.c"
- } else {
- Measurement _tmp19_;
-#line 361 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = max_width;
-#line 361 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = measurement_is_greater_than (&new_width, &_tmp19_);
-#line 2708 "Printing.c"
- }
-#line 361 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp17_) {
-#line 2712 "Printing.c"
- GtkEntry* _tmp20_;
- Measurement _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
-#line 362 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = self->priv->custom_width_entry;
-#line 362 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = self->priv->local_content_width;
-#line 362 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = custom_print_tab_format_measurement (self, &_tmp21_);
-#line 362 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = _tmp22_;
-#line 362 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp20_, _tmp23_);
-#line 362 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp23_);
-#line 363 "/home/jens/Source/shotwell/src/Printing.vala"
- result = FALSE;
-#line 363 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2733 "Printing.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/Printing.vala"
- if (custom_print_tab_is_match_aspect_ratio_enabled (self)) {
-#line 2737 "Printing.c"
- Measurement new_height = {0};
- Measurement _tmp24_;
- gdouble _tmp25_;
- PrintJob* _tmp26_;
- Measurement _tmp27_;
- MeasurementUnit _tmp28_;
- Measurement _tmp29_;
- GtkEntry* _tmp30_;
- Measurement _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
-#line 367 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = new_width;
-#line 367 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = _tmp24_.value;
-#line 367 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26_ = self->priv->source_job;
-#line 367 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp27_ = new_width;
-#line 367 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp28_ = _tmp27_.unit;
-#line 367 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&new_height, _tmp25_ / print_job_get_source_aspect_ratio (_tmp26_), _tmp28_);
-#line 370 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp29_ = new_height;
-#line 370 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_height = _tmp29_;
-#line 371 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30_ = self->priv->custom_height_entry;
-#line 371 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp31_ = new_height;
-#line 371 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp32_ = custom_print_tab_format_measurement (self, &_tmp31_);
-#line 371 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp33_ = _tmp32_;
-#line 371 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp30_, _tmp33_);
-#line 371 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp33_);
-#line 2777 "Printing.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp34_ = new_width;
-#line 374 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_width = _tmp34_;
-#line 375 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp35_ = self->priv->custom_width_entry;
-#line 375 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp36_ = new_width;
-#line 375 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp37_ = custom_print_tab_format_measurement (self, &_tmp36_);
-#line 375 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp38_ = _tmp37_;
-#line 375 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp35_, _tmp38_);
-#line 375 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp38_);
-#line 376 "/home/jens/Source/shotwell/src/Printing.vala"
- result = FALSE;
-#line 376 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2799 "Printing.c"
-}
-
-
-static gchar*
-custom_print_tab_format_measurement (CustomPrintTab* self,
- Measurement* measurement)
-{
- gchar* result = NULL;
- Measurement _tmp0_;
- gdouble _tmp1_;
- gchar* _tmp2_;
-#line 379 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL);
-#line 379 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (measurement != NULL, NULL);
-#line 380 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = *measurement;
-#line 380 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _tmp0_.value;
-#line 380 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = g_strdup_printf ("%.2f", _tmp1_);
-#line 380 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp2_;
-#line 380 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2825 "Printing.c"
-}
-
-
-static gchar*
-custom_print_tab_format_measurement_as (CustomPrintTab* self,
- Measurement* measurement,
- MeasurementUnit to_unit)
-{
- gchar* result = NULL;
- Measurement _tmp0_ = {0};
- Measurement _tmp1_;
- MeasurementUnit _tmp2_;
- Measurement converted_measurement = {0};
- Measurement _tmp5_;
- gchar* _tmp6_;
-#line 383 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL);
-#line 383 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (measurement != NULL, NULL);
-#line 384 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = *measurement;
-#line 384 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = _tmp1_.unit;
-#line 384 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp2_ == to_unit) {
-#line 2851 "Printing.c"
- Measurement _tmp3_;
-#line 384 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = *measurement;
-#line 384 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _tmp3_;
-#line 2857 "Printing.c"
- } else {
- Measurement _tmp4_ = {0};
-#line 385 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (measurement, to_unit, &_tmp4_);
-#line 385 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _tmp4_;
-#line 2864 "Printing.c"
- }
-#line 384 "/home/jens/Source/shotwell/src/Printing.vala"
- converted_measurement = _tmp0_;
-#line 386 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = converted_measurement;
-#line 386 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = custom_print_tab_format_measurement (self, &_tmp5_);
-#line 386 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp6_;
-#line 386 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2876 "Printing.c"
-}
-
-
-static gboolean
-custom_print_tab_on_ppi_entry_focus_out (CustomPrintTab* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
- GtkEntry* _tmp0_;
- const gchar* _tmp1_;
-#line 389 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE);
-#line 389 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 390 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->ppi_entry;
-#line 390 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = gtk_entry_get_text (_tmp0_);
-#line 390 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_ppi (self, atoi (_tmp1_));
-#line 391 "/home/jens/Source/shotwell/src/Printing.vala"
- result = FALSE;
-#line 391 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 2901 "Printing.c"
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2919 "Printing.c"
-}
-
-
-static void
-custom_print_tab_on_ppi_entry_insert_text (CustomPrintTab* self,
- GtkEditable* editable,
- const gchar* text,
- gint length,
- gint* position)
-{
- GtkEntry* sender = NULL;
- GtkEntry* _tmp0_;
- gboolean _tmp1_;
- gchar* new_text = NULL;
- gchar* _tmp4_;
- const gchar* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- GtkEntry* _tmp22_;
-#line 394 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 394 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_EDITABLE (editable));
-#line 394 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (text != NULL);
-#line 396 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (editable, gtk_entry_get_type (), GtkEntry));
-#line 396 "/home/jens/Source/shotwell/src/Printing.vala"
- sender = _tmp0_;
-#line 398 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->is_text_insertion_in_progress;
-#line 398 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_) {
-#line 399 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (sender);
-#line 399 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 2957 "Printing.c"
- }
-#line 401 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->is_text_insertion_in_progress = TRUE;
-#line 403 "/home/jens/Source/shotwell/src/Printing.vala"
- if (length == -1) {
-#line 2963 "Printing.c"
- gint _tmp2_;
- gint _tmp3_;
-#line 404 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = strlen (text);
-#line 404 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_;
-#line 404 "/home/jens/Source/shotwell/src/Printing.vala"
- length = (gint) _tmp3_;
-#line 2972 "Printing.c"
- }
-#line 406 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = g_strdup ("");
-#line 406 "/home/jens/Source/shotwell/src/Printing.vala"
- new_text = _tmp4_;
-#line 2978 "Printing.c"
- {
- gint ctr = 0;
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- ctr = 0;
-#line 2983 "Printing.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = TRUE;
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- while (TRUE) {
-#line 2990 "Printing.c"
- gint _tmp7_;
- gint _tmp8_;
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!_tmp5_) {
-#line 2995 "Printing.c"
- gint _tmp6_;
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = ctr;
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- ctr = _tmp6_ + 1;
-#line 3001 "Printing.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = FALSE;
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = ctr;
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!(_tmp7_ < length)) {
-#line 407 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 3011 "Printing.c"
- }
-#line 408 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = ctr;
-#line 408 "/home/jens/Source/shotwell/src/Printing.vala"
- if (g_ascii_isdigit (string_get (text, (glong) _tmp8_))) {
-#line 3017 "Printing.c"
- const gchar* _tmp9_;
- gint _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 409 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = new_text;
-#line 409 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = ctr;
-#line 409 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp10_));
-#line 409 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = _tmp11_;
-#line 409 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = g_strconcat (_tmp9_, _tmp12_, NULL);
-#line 409 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (new_text);
-#line 409 "/home/jens/Source/shotwell/src/Printing.vala"
- new_text = _tmp13_;
-#line 409 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp12_);
-#line 3039 "Printing.c"
- }
- }
- }
- }
-#line 412 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = new_text;
-#line 412 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = strlen (_tmp14_);
-#line 412 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = _tmp15_;
-#line 412 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp16_ > 0) {
-#line 3052 "Printing.c"
- GtkEntry* _tmp17_;
- const gchar* _tmp18_;
- const gchar* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
-#line 413 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = sender;
-#line 413 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = new_text;
-#line 413 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = new_text;
-#line 413 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = strlen (_tmp19_);
-#line 413 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = _tmp20_;
-#line 413 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp18_, (gint) _tmp21_, position);
-#line 3070 "Printing.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = sender;
-#line 415 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_stop_emission_by_name (_tmp22_, "insert-text");
-#line 417 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->is_text_insertion_in_progress = FALSE;
-#line 394 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (new_text);
-#line 394 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (sender);
-#line 3082 "Printing.c"
-}
-
-
-static gboolean
-custom_print_tab_on_height_entry_focus_out (CustomPrintTab* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
- GtkEntry* _tmp0_;
- const gchar* _tmp1_;
- Measurement _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gboolean _tmp5_;
- Measurement new_height = {0};
- Measurement _tmp6_ = {0};
- Measurement min_height = {0};
- PrintJob* _tmp7_;
- PrintSettings* _tmp8_;
- PrintSettings* _tmp9_;
- Measurement _tmp10_ = {0};
- Measurement _tmp11_;
- Measurement max_height = {0};
- PrintJob* _tmp12_;
- PrintSettings* _tmp13_;
- PrintSettings* _tmp14_;
- Measurement _tmp15_ = {0};
- Measurement _tmp16_;
- gboolean _tmp17_ = FALSE;
- Measurement _tmp18_;
- Measurement _tmp34_;
- GtkEntry* _tmp35_;
- Measurement _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
-#line 420 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE);
-#line 420 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 421 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->custom_height_entry;
-#line 421 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = gtk_entry_get_text (_tmp0_);
-#line 421 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->local_content_height;
-#line 421 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = custom_print_tab_format_measurement_as (self, &_tmp2_, custom_print_tab_get_user_unit_choice (self));
-#line 421 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_;
-#line 421 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = g_strcmp0 (_tmp1_, _tmp4_) == 0;
-#line 421 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp4_);
-#line 421 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp5_) {
-#line 423 "/home/jens/Source/shotwell/src/Printing.vala"
- result = FALSE;
-#line 423 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 3142 "Printing.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_get_height_entry_value (self, &_tmp6_);
-#line 425 "/home/jens/Source/shotwell/src/Printing.vala"
- new_height = _tmp6_;
-#line 426 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = self->priv->source_job;
-#line 426 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = print_job_get_local_settings (_tmp7_);
-#line 426 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = _tmp8_;
-#line 426 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_minimum_content_dimension (_tmp9_, &_tmp10_);
-#line 426 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = _tmp10_;
-#line 426 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp9_);
-#line 426 "/home/jens/Source/shotwell/src/Printing.vala"
- min_height = _tmp11_;
-#line 427 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = self->priv->source_job;
-#line 427 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = print_job_get_local_settings (_tmp12_);
-#line 427 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = _tmp13_;
-#line 427 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_maximum_content_dimension (_tmp14_, &_tmp15_);
-#line 427 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = _tmp15_;
-#line 427 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp14_);
-#line 427 "/home/jens/Source/shotwell/src/Printing.vala"
- max_height = _tmp16_;
-#line 429 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = min_height;
-#line 429 "/home/jens/Source/shotwell/src/Printing.vala"
- if (measurement_is_less_than (&new_height, &_tmp18_)) {
-#line 429 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = TRUE;
-#line 3182 "Printing.c"
- } else {
- Measurement _tmp19_;
-#line 429 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = max_height;
-#line 429 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = measurement_is_greater_than (&new_height, &_tmp19_);
-#line 3189 "Printing.c"
- }
-#line 429 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp17_) {
-#line 3193 "Printing.c"
- GtkEntry* _tmp20_;
- Measurement _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
-#line 430 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = self->priv->custom_height_entry;
-#line 430 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = self->priv->local_content_height;
-#line 430 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = custom_print_tab_format_measurement (self, &_tmp21_);
-#line 430 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = _tmp22_;
-#line 430 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp20_, _tmp23_);
-#line 430 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp23_);
-#line 431 "/home/jens/Source/shotwell/src/Printing.vala"
- result = FALSE;
-#line 431 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 3214 "Printing.c"
- }
-#line 434 "/home/jens/Source/shotwell/src/Printing.vala"
- if (custom_print_tab_is_match_aspect_ratio_enabled (self)) {
-#line 3218 "Printing.c"
- Measurement new_width = {0};
- Measurement _tmp24_;
- gdouble _tmp25_;
- PrintJob* _tmp26_;
- Measurement _tmp27_;
- MeasurementUnit _tmp28_;
- Measurement _tmp29_;
- GtkEntry* _tmp30_;
- Measurement _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
-#line 435 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = new_height;
-#line 435 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = _tmp24_.value;
-#line 435 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26_ = self->priv->source_job;
-#line 435 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp27_ = new_height;
-#line 435 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp28_ = _tmp27_.unit;
-#line 435 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&new_width, _tmp25_ * print_job_get_source_aspect_ratio (_tmp26_), _tmp28_);
-#line 438 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp29_ = new_width;
-#line 438 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_width = _tmp29_;
-#line 439 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30_ = self->priv->custom_width_entry;
-#line 439 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp31_ = new_width;
-#line 439 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp32_ = custom_print_tab_format_measurement (self, &_tmp31_);
-#line 439 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp33_ = _tmp32_;
-#line 439 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp30_, _tmp33_);
-#line 439 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp33_);
-#line 3258 "Printing.c"
- }
-#line 442 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp34_ = new_height;
-#line 442 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_height = _tmp34_;
-#line 443 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp35_ = self->priv->custom_height_entry;
-#line 443 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp36_ = new_height;
-#line 443 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp37_ = custom_print_tab_format_measurement (self, &_tmp36_);
-#line 443 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp38_ = _tmp37_;
-#line 443 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp35_, _tmp38_);
-#line 443 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp38_);
-#line 444 "/home/jens/Source/shotwell/src/Printing.vala"
- result = FALSE;
-#line 444 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 3280 "Printing.c"
-}
-
-
-static MeasurementUnit
-custom_print_tab_get_user_unit_choice (CustomPrintTab* self)
-{
- MeasurementUnit result = 0;
- GtkComboBoxText* _tmp0_;
-#line 447 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0);
-#line 448 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->units_combo;
-#line 448 "/home/jens/Source/shotwell/src/Printing.vala"
- if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)) == CUSTOM_PRINT_TAB_INCHES_COMBO_CHOICE) {
-#line 449 "/home/jens/Source/shotwell/src/Printing.vala"
- result = MEASUREMENT_UNIT_INCHES;
-#line 449 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 3299 "Printing.c"
- } else {
- GtkComboBoxText* _tmp1_;
-#line 450 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->units_combo;
-#line 450 "/home/jens/Source/shotwell/src/Printing.vala"
- if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)) == CUSTOM_PRINT_TAB_CENTIMETERS_COMBO_CHOICE) {
-#line 451 "/home/jens/Source/shotwell/src/Printing.vala"
- result = MEASUREMENT_UNIT_CENTIMETERS;
-#line 451 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 3310 "Printing.c"
- } else {
-#line 453 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:453: unknown unit combo box choice");
-#line 3314 "Printing.c"
- }
- }
-}
-
-
-static void
-custom_print_tab_set_user_unit_choice (CustomPrintTab* self,
- MeasurementUnit unit)
-{
-#line 457 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 458 "/home/jens/Source/shotwell/src/Printing.vala"
- if (unit == MEASUREMENT_UNIT_INCHES) {
-#line 3328 "Printing.c"
- GtkComboBoxText* _tmp0_;
-#line 459 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->units_combo;
-#line 459 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), CUSTOM_PRINT_TAB_INCHES_COMBO_CHOICE);
-#line 3334 "Printing.c"
- } else {
-#line 460 "/home/jens/Source/shotwell/src/Printing.vala"
- if (unit == MEASUREMENT_UNIT_CENTIMETERS) {
-#line 3338 "Printing.c"
- GtkComboBoxText* _tmp1_;
-#line 461 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->units_combo;
-#line 461 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), CUSTOM_PRINT_TAB_CENTIMETERS_COMBO_CHOICE);
-#line 3344 "Printing.c"
- } else {
-#line 463 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:463: unknown MeasurementUnit enumeration");
-#line 3348 "Printing.c"
- }
- }
-}
-
-
-static gdouble
-double_parse (const gchar* str)
-{
- gdouble result = 0.0;
- gdouble _tmp0_;
-#line 889 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (str != NULL, 0.0);
-#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_ascii_strtod (str, NULL);
-#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3367 "Printing.c"
-}
-
-
-static void
-custom_print_tab_get_width_entry_value (CustomPrintTab* self,
- Measurement* result)
-{
- GtkEntry* _tmp0_;
- const gchar* _tmp1_;
- Measurement _tmp2_ = {0};
-#line 467 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 468 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->custom_width_entry;
-#line 468 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = gtk_entry_get_text (_tmp0_);
-#line 468 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp2_, double_parse (_tmp1_), custom_print_tab_get_user_unit_choice (self));
-#line 468 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp2_;
-#line 468 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 3390 "Printing.c"
-}
-
-
-static void
-custom_print_tab_get_height_entry_value (CustomPrintTab* self,
- Measurement* result)
-{
- GtkEntry* _tmp0_;
- const gchar* _tmp1_;
- Measurement _tmp2_ = {0};
-#line 471 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 472 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->custom_height_entry;
-#line 472 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = gtk_entry_get_text (_tmp0_);
-#line 472 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp2_, double_parse (_tmp1_), custom_print_tab_get_user_unit_choice (self));
-#line 472 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp2_;
-#line 472 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 3413 "Printing.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3433 "Printing.c"
-}
-
-
-static void
-custom_print_tab_on_entry_insert_text (CustomPrintTab* self,
- GtkEditable* editable,
- const gchar* text,
- gint length,
- gint* position)
-{
- GtkEntry* sender = NULL;
- GtkEntry* _tmp0_;
- gboolean _tmp1_;
- const gchar* decimal_point = NULL;
- const gchar* _tmp4_;
- gboolean contains_decimal_point = FALSE;
- GtkEntry* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- gchar* new_text = NULL;
- gchar* _tmp8_;
- const gchar* _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- GtkEntry* _tmp35_;
-#line 475 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 475 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_EDITABLE (editable));
-#line 475 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (text != NULL);
-#line 478 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (editable, gtk_entry_get_type (), GtkEntry));
-#line 478 "/home/jens/Source/shotwell/src/Printing.vala"
- sender = _tmp0_;
-#line 480 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->is_text_insertion_in_progress;
-#line 480 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_) {
-#line 481 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (sender);
-#line 481 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 3477 "Printing.c"
- }
-#line 483 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->is_text_insertion_in_progress = TRUE;
-#line 485 "/home/jens/Source/shotwell/src/Printing.vala"
- if (length == -1) {
-#line 3483 "Printing.c"
- gint _tmp2_;
- gint _tmp3_;
-#line 486 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = strlen (text);
-#line 486 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_;
-#line 486 "/home/jens/Source/shotwell/src/Printing.vala"
- length = (gint) _tmp3_;
-#line 3492 "Printing.c"
- }
-#line 488 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = nl_langinfo (RADIXCHAR);
-#line 488 "/home/jens/Source/shotwell/src/Printing.vala"
- decimal_point = _tmp4_;
-#line 490 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = sender;
-#line 490 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = gtk_entry_get_text (_tmp5_);
-#line 490 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = decimal_point;
-#line 490 "/home/jens/Source/shotwell/src/Printing.vala"
- contains_decimal_point = string_contains (_tmp6_, _tmp7_);
-#line 492 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = g_strdup ("");
-#line 492 "/home/jens/Source/shotwell/src/Printing.vala"
- new_text = _tmp8_;
-#line 3510 "Printing.c"
- {
- gint ctr = 0;
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- ctr = 0;
-#line 3515 "Printing.c"
- {
- gboolean _tmp9_ = FALSE;
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = TRUE;
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- while (TRUE) {
-#line 3522 "Printing.c"
- gint _tmp11_;
- gint _tmp12_;
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!_tmp9_) {
-#line 3527 "Printing.c"
- gint _tmp10_;
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = ctr;
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- ctr = _tmp10_ + 1;
-#line 3533 "Printing.c"
- }
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = FALSE;
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = ctr;
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!(_tmp11_ < length)) {
-#line 493 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 3543 "Printing.c"
- }
-#line 494 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = ctr;
-#line 494 "/home/jens/Source/shotwell/src/Printing.vala"
- if (g_ascii_isdigit (string_get (text, (glong) _tmp12_))) {
-#line 3549 "Printing.c"
- const gchar* _tmp13_;
- gint _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
-#line 495 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = new_text;
-#line 495 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = ctr;
-#line 495 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp14_));
-#line 495 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = _tmp15_;
-#line 495 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = g_strconcat (_tmp13_, _tmp16_, NULL);
-#line 495 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (new_text);
-#line 495 "/home/jens/Source/shotwell/src/Printing.vala"
- new_text = _tmp17_;
-#line 495 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp16_);
-#line 3571 "Printing.c"
- } else {
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_;
-#line 496 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = contains_decimal_point;
-#line 496 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!_tmp19_) {
-#line 3579 "Printing.c"
- gint _tmp20_;
- const gchar* _tmp21_;
-#line 496 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = ctr;
-#line 496 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = decimal_point;
-#line 496 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = string_get (text, (glong) _tmp20_) == string_get (_tmp21_, (glong) 0);
-#line 3588 "Printing.c"
- } else {
-#line 496 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = FALSE;
-#line 3592 "Printing.c"
- }
-#line 496 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp18_) {
-#line 3596 "Printing.c"
- const gchar* _tmp22_;
- gint _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
-#line 497 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = new_text;
-#line 497 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = ctr;
-#line 497 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp23_));
-#line 497 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = _tmp24_;
-#line 497 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26_ = g_strconcat (_tmp22_, _tmp25_, NULL);
-#line 497 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (new_text);
-#line 497 "/home/jens/Source/shotwell/src/Printing.vala"
- new_text = _tmp26_;
-#line 497 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp25_);
-#line 3618 "Printing.c"
- }
- }
- }
- }
- }
-#line 501 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp27_ = new_text;
-#line 501 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp28_ = strlen (_tmp27_);
-#line 501 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp29_ = _tmp28_;
-#line 501 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp29_ > 0) {
-#line 3632 "Printing.c"
- GtkEntry* _tmp30_;
- const gchar* _tmp31_;
- const gchar* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
-#line 502 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30_ = sender;
-#line 502 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp31_ = new_text;
-#line 502 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp32_ = new_text;
-#line 502 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp33_ = strlen (_tmp32_);
-#line 502 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp34_ = _tmp33_;
-#line 502 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp31_, (gint) _tmp34_, position);
-#line 3650 "Printing.c"
- }
-#line 504 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp35_ = sender;
-#line 504 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_stop_emission_by_name (_tmp35_, "insert-text");
-#line 506 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->is_text_insertion_in_progress = FALSE;
-#line 475 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (new_text);
-#line 475 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (sender);
-#line 3662 "Printing.c"
-}
-
-
-static void
-custom_print_tab_sync_state_from_job (CustomPrintTab* self,
- PrintJob* job)
-{
- PrintSettings* _tmp0_;
- PrintSettings* _tmp1_;
- Measurement _tmp2_ = {0};
- MeasurementUnit _tmp3_;
- PrintSettings* _tmp4_;
- PrintSettings* _tmp5_;
- Measurement _tmp6_ = {0};
- MeasurementUnit _tmp7_;
- Measurement constrained_width = {0};
- PrintSettings* _tmp8_;
- PrintSettings* _tmp9_;
- Measurement _tmp10_ = {0};
- Measurement _tmp11_;
- PrintSettings* _tmp12_;
- PrintSettings* _tmp13_;
- gboolean _tmp14_;
- Measurement _tmp23_;
- PrintSettings* _tmp24_;
- PrintSettings* _tmp25_;
- Measurement _tmp26_ = {0};
- PrintSettings* _tmp27_;
- PrintSettings* _tmp28_;
- PrintSettings* _tmp29_;
- PrintSettings* _tmp30_;
- PrintSettings* _tmp31_;
- PrintSettings* _tmp32_;
- PrintSettings* _tmp33_;
- PrintSettings* _tmp34_;
- PrintSettings* _tmp35_;
- PrintSettings* _tmp36_;
- PrintSettings* _tmp37_;
- PrintSettings* _tmp38_;
- PrintSettings* _tmp39_;
- PrintSettings* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
-#line 509 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 509 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_JOB (job));
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = print_job_get_local_settings (job);
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _tmp0_;
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_content_width (_tmp1_, &_tmp2_);
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_.unit;
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = print_job_get_local_settings (job);
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = _tmp4_;
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_content_height (_tmp5_, &_tmp6_);
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = _tmp6_.unit;
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_assert (_tmp3_ == _tmp7_, "job.get_local_settings().get_content_width().unit == job.get_local_settings().get_content_height().unit");
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp5_);
-#line 510 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp1_);
-#line 513 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = print_job_get_local_settings (job);
-#line 513 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = _tmp8_;
-#line 513 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_content_width (_tmp9_, &_tmp10_);
-#line 513 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = _tmp10_;
-#line 513 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp9_);
-#line 513 "/home/jens/Source/shotwell/src/Printing.vala"
- constrained_width = _tmp11_;
-#line 514 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = print_job_get_local_settings (job);
-#line 514 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = _tmp12_;
-#line 514 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = print_settings_is_match_aspect_ratio_enabled (_tmp13_);
-#line 514 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp13_);
-#line 514 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp14_) {
-#line 3754 "Printing.c"
- PrintSettings* _tmp15_;
- PrintSettings* _tmp16_;
- Measurement _tmp17_ = {0};
- gdouble _tmp18_;
- PrintSettings* _tmp19_;
- PrintSettings* _tmp20_;
- Measurement _tmp21_ = {0};
- MeasurementUnit _tmp22_;
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = print_job_get_local_settings (job);
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = _tmp15_;
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_content_height (_tmp16_, &_tmp17_);
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = _tmp17_.value;
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = print_job_get_local_settings (job);
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = _tmp19_;
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_content_height (_tmp20_, &_tmp21_);
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = _tmp21_.unit;
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&constrained_width, _tmp18_ * print_job_get_source_aspect_ratio (job), _tmp22_);
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp20_);
-#line 515 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp16_);
-#line 3785 "Printing.c"
- }
-#line 517 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = constrained_width;
-#line 517 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_width (self, &_tmp23_);
-#line 518 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = print_job_get_local_settings (job);
-#line 518 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = _tmp24_;
-#line 518 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_content_height (_tmp25_, &_tmp26_);
-#line 518 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_height (self, &_tmp26_);
-#line 518 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp25_);
-#line 519 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp27_ = print_job_get_local_settings (job);
-#line 519 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp28_ = _tmp27_;
-#line 519 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_layout (self, print_settings_get_content_layout (_tmp28_));
-#line 519 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp28_);
-#line 520 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp29_ = print_job_get_local_settings (job);
-#line 520 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30_ = _tmp29_;
-#line 520 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_ppi (self, print_settings_get_content_ppi (_tmp30_));
-#line 520 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp30_);
-#line 521 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp31_ = print_job_get_local_settings (job);
-#line 521 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp32_ = _tmp31_;
-#line 521 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_image_per_page_selection (self, print_settings_get_image_per_page_selection (_tmp32_));
-#line 521 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp32_);
-#line 522 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp33_ = print_job_get_local_settings (job);
-#line 522 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp34_ = _tmp33_;
-#line 522 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_size_selection (self, print_settings_get_size_selection (_tmp34_));
-#line 522 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp34_);
-#line 523 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp35_ = print_job_get_local_settings (job);
-#line 523 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp36_ = _tmp35_;
-#line 523 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_match_aspect_ratio_enabled (self, print_settings_is_match_aspect_ratio_enabled (_tmp36_));
-#line 523 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp36_);
-#line 524 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp37_ = print_job_get_local_settings (job);
-#line 524 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp38_ = _tmp37_;
-#line 524 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_print_titles_enabled (self, print_settings_is_print_titles_enabled (_tmp38_));
-#line 524 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp38_);
-#line 525 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp39_ = print_job_get_local_settings (job);
-#line 525 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp40_ = _tmp39_;
-#line 525 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp41_ = print_settings_get_print_titles_font (_tmp40_);
-#line 525 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp42_ = _tmp41_;
-#line 525 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_print_titles_font (self, _tmp42_);
-#line 525 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp42_);
-#line 525 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp40_);
-#line 3863 "Printing.c"
-}
-
-
-static void
-custom_print_tab_on_radio_group_click (CustomPrintTab* self,
- GtkButton* b)
-{
- GtkRadioButton* sender = NULL;
- GtkRadioButton* _tmp0_;
- GtkRadioButton* _tmp1_;
- GtkRadioButton* _tmp2_;
-#line 528 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 528 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_BUTTON (b));
-#line 529 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (b, gtk_radio_button_get_type (), GtkRadioButton));
-#line 529 "/home/jens/Source/shotwell/src/Printing.vala"
- sender = _tmp0_;
-#line 531 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = sender;
-#line 531 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->standard_size_radio;
-#line 531 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_ == _tmp2_) {
-#line 3889 "Printing.c"
- GtkComboBoxText* _tmp3_;
-#line 532 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_layout_control_state (self, CONTENT_LAYOUT_STANDARD_SIZE);
-#line 533 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = self->priv->standard_sizes_combo;
-#line 533 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 3897 "Printing.c"
- } else {
- GtkRadioButton* _tmp4_;
- GtkRadioButton* _tmp5_;
-#line 534 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = sender;
-#line 534 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = self->priv->custom_size_radio;
-#line 534 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp4_ == _tmp5_) {
-#line 3907 "Printing.c"
- GtkEntry* _tmp6_;
-#line 535 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_layout_control_state (self, CONTENT_LAYOUT_CUSTOM_SIZE);
-#line 536 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = self->priv->custom_height_entry;
-#line 536 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget));
-#line 3915 "Printing.c"
- } else {
- GtkRadioButton* _tmp7_;
- GtkRadioButton* _tmp8_;
-#line 537 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = sender;
-#line 537 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = self->priv->image_per_page_radio;
-#line 537 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp7_ == _tmp8_) {
-#line 538 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_layout_control_state (self, CONTENT_LAYOUT_IMAGE_PER_PAGE);
-#line 3927 "Printing.c"
- }
- }
- }
-#line 528 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (sender);
-#line 3933 "Printing.c"
-}
-
-
-static void
-custom_print_tab_on_units_combo_changed (CustomPrintTab* self)
-{
- GtkEntry* _tmp0_;
- Measurement _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GtkEntry* _tmp4_;
- Measurement _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 542 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 543 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->custom_height_entry;
-#line 543 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->local_content_height;
-#line 543 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = custom_print_tab_format_measurement_as (self, &_tmp1_, custom_print_tab_get_user_unit_choice (self));
-#line 543 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_;
-#line 543 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp0_, _tmp3_);
-#line 543 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp3_);
-#line 545 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = self->priv->custom_width_entry;
-#line 545 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = self->priv->local_content_width;
-#line 545 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = custom_print_tab_format_measurement_as (self, &_tmp5_, custom_print_tab_get_user_unit_choice (self));
-#line 545 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = _tmp6_;
-#line 545 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp4_, _tmp7_);
-#line 545 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp7_);
-#line 3974 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_content_layout_control_state (CustomPrintTab* self,
- ContentLayout layout)
-{
-#line 549 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 550 "/home/jens/Source/shotwell/src/Printing.vala"
- switch (layout) {
-#line 550 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_STANDARD_SIZE:
-#line 3988 "Printing.c"
- {
- GtkComboBoxText* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkEntry* _tmp2_;
- GtkEntry* _tmp3_;
- GtkCheckButton* _tmp4_;
- GtkComboBoxText* _tmp5_;
-#line 552 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->standard_sizes_combo;
-#line 552 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 553 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->units_combo;
-#line 553 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 554 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->custom_width_entry;
-#line 554 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 555 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = self->priv->custom_height_entry;
-#line 555 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 556 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = self->priv->aspect_ratio_check;
-#line 556 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 557 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = self->priv->image_per_page_combo;
-#line 557 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 558 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 4022 "Printing.c"
- }
-#line 550 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_CUSTOM_SIZE:
-#line 4026 "Printing.c"
- {
- GtkComboBoxText* _tmp6_;
- GtkComboBoxText* _tmp7_;
- GtkEntry* _tmp8_;
- GtkEntry* _tmp9_;
- GtkCheckButton* _tmp10_;
- GtkComboBoxText* _tmp11_;
-#line 561 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = self->priv->standard_sizes_combo;
-#line 561 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 562 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = self->priv->units_combo;
-#line 562 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 563 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = self->priv->custom_width_entry;
-#line 563 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 564 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = self->priv->custom_height_entry;
-#line 564 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 565 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = self->priv->aspect_ratio_check;
-#line 565 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 566 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = self->priv->image_per_page_combo;
-#line 566 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 567 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 4060 "Printing.c"
- }
-#line 550 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_IMAGE_PER_PAGE:
-#line 4064 "Printing.c"
- {
- GtkComboBoxText* _tmp12_;
- GtkComboBoxText* _tmp13_;
- GtkEntry* _tmp14_;
- GtkEntry* _tmp15_;
- GtkCheckButton* _tmp16_;
- GtkComboBoxText* _tmp17_;
-#line 570 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = self->priv->standard_sizes_combo;
-#line 570 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 571 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = self->priv->units_combo;
-#line 571 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 572 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = self->priv->custom_width_entry;
-#line 572 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 573 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = self->priv->custom_height_entry;
-#line 573 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 574 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = self->priv->aspect_ratio_check;
-#line 574 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 575 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = self->priv->image_per_page_combo;
-#line 575 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 576 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 4098 "Printing.c"
- }
- default:
- {
-#line 579 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:579: unknown ContentLayout enumeration value");
-#line 4104 "Printing.c"
- }
- }
-}
-
-
-static gboolean
-custom_print_tab_standard_sizes_combo_separator_func (GtkTreeModel* model,
- GtkTreeIter* iter)
-{
- gboolean result = FALSE;
- GValue val = {0};
- GtkTreeIter _tmp0_;
- GValue _tmp1_ = {0};
- const gchar* _tmp2_;
-#line 583 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (GTK_IS_TREE_MODEL (model), FALSE);
-#line 583 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (iter != NULL, FALSE);
-#line 586 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = *iter;
-#line 586 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_tree_model_get_value (model, &_tmp0_, 0, &_tmp1_);
-#line 586 "/home/jens/Source/shotwell/src/Printing.vala"
- G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
-#line 586 "/home/jens/Source/shotwell/src/Printing.vala"
- val = _tmp1_;
-#line 588 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = g_value_get_string (&val);
-#line 588 "/home/jens/Source/shotwell/src/Printing.vala"
- result = g_strcmp0 (_tmp2_, "-") == 0;
-#line 588 "/home/jens/Source/shotwell/src/Printing.vala"
- G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
-#line 588 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4139 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_content_layout (CustomPrintTab* self,
- ContentLayout content_layout)
-{
-#line 591 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 592 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_content_layout_control_state (self, content_layout);
-#line 593 "/home/jens/Source/shotwell/src/Printing.vala"
- switch (content_layout) {
-#line 593 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_STANDARD_SIZE:
-#line 4155 "Printing.c"
- {
- GtkRadioButton* _tmp0_;
-#line 595 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->standard_size_radio;
-#line 595 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 596 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 4164 "Printing.c"
- }
-#line 593 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_CUSTOM_SIZE:
-#line 4168 "Printing.c"
- {
- GtkRadioButton* _tmp1_;
-#line 599 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->custom_size_radio;
-#line 599 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 600 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 4177 "Printing.c"
- }
-#line 593 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_IMAGE_PER_PAGE:
-#line 4181 "Printing.c"
- {
- GtkRadioButton* _tmp2_;
-#line 603 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->image_per_page_radio;
-#line 603 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 604 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 4190 "Printing.c"
- }
- default:
- {
-#line 607 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:607: unknown ContentLayout enumeration value");
-#line 4196 "Printing.c"
- }
- }
-}
-
-
-static ContentLayout
-custom_print_tab_get_content_layout (CustomPrintTab* self)
-{
- ContentLayout result = 0;
- GtkRadioButton* _tmp0_;
- GtkRadioButton* _tmp1_;
- GtkRadioButton* _tmp2_;
-#line 611 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0);
-#line 612 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->standard_size_radio;
-#line 612 "/home/jens/Source/shotwell/src/Printing.vala"
- if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))) {
-#line 613 "/home/jens/Source/shotwell/src/Printing.vala"
- result = CONTENT_LAYOUT_STANDARD_SIZE;
-#line 613 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4219 "Printing.c"
- }
-#line 614 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->custom_size_radio;
-#line 614 "/home/jens/Source/shotwell/src/Printing.vala"
- if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton))) {
-#line 615 "/home/jens/Source/shotwell/src/Printing.vala"
- result = CONTENT_LAYOUT_CUSTOM_SIZE;
-#line 615 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4229 "Printing.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->image_per_page_radio;
-#line 616 "/home/jens/Source/shotwell/src/Printing.vala"
- if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton))) {
-#line 617 "/home/jens/Source/shotwell/src/Printing.vala"
- result = CONTENT_LAYOUT_IMAGE_PER_PAGE;
-#line 617 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4239 "Printing.c"
- }
-#line 619 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:619: inconsistent content layout radio button group stat" \
-"e");
-#line 4243 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_content_width (CustomPrintTab* self,
- Measurement* content_width)
-{
- Measurement _tmp0_;
- MeasurementUnit _tmp1_;
- Measurement _tmp2_;
- MeasurementUnit _tmp3_;
- Measurement _tmp13_;
- GtkEntry* _tmp14_;
- Measurement _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
-#line 622 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 622 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (content_width != NULL);
-#line 623 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = *content_width;
-#line 623 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _tmp0_.unit;
-#line 623 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->local_content_height;
-#line 623 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_.unit;
-#line 623 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_ != _tmp3_) {
-#line 4274 "Printing.c"
- Measurement _tmp4_;
- MeasurementUnit _tmp5_;
- Measurement _tmp6_;
- MeasurementUnit _tmp7_;
- Measurement _tmp8_ = {0};
- GtkEntry* _tmp9_;
- Measurement _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 624 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = *content_width;
-#line 624 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = _tmp4_.unit;
-#line 624 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_user_unit_choice (self, _tmp5_);
-#line 625 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = *content_width;
-#line 625 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = _tmp6_.unit;
-#line 625 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (&self->priv->local_content_height, _tmp7_, &_tmp8_);
-#line 625 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_height = _tmp8_;
-#line 626 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = self->priv->custom_height_entry;
-#line 626 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = self->priv->local_content_height;
-#line 626 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = custom_print_tab_format_measurement (self, &_tmp10_);
-#line 626 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = _tmp11_;
-#line 626 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp9_, _tmp12_);
-#line 626 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp12_);
-#line 4310 "Printing.c"
- }
-#line 628 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = *content_width;
-#line 628 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_width = _tmp13_;
-#line 629 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = self->priv->custom_width_entry;
-#line 629 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = *content_width;
-#line 629 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = custom_print_tab_format_measurement (self, &_tmp15_);
-#line 629 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = _tmp16_;
-#line 629 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp14_, _tmp17_);
-#line 629 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp17_);
-#line 4328 "Printing.c"
-}
-
-
-static void
-custom_print_tab_get_content_width (CustomPrintTab* self,
- Measurement* result)
-{
- Measurement _tmp0_;
-#line 632 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 633 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->local_content_width;
-#line 633 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp0_;
-#line 633 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 4345 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_content_height (CustomPrintTab* self,
- Measurement* content_height)
-{
- Measurement _tmp0_;
- MeasurementUnit _tmp1_;
- Measurement _tmp2_;
- MeasurementUnit _tmp3_;
- Measurement _tmp13_;
- GtkEntry* _tmp14_;
- Measurement _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
-#line 636 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 636 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (content_height != NULL);
-#line 637 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = *content_height;
-#line 637 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _tmp0_.unit;
-#line 637 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->local_content_width;
-#line 637 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_.unit;
-#line 637 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_ != _tmp3_) {
-#line 4376 "Printing.c"
- Measurement _tmp4_;
- MeasurementUnit _tmp5_;
- Measurement _tmp6_;
- MeasurementUnit _tmp7_;
- Measurement _tmp8_ = {0};
- GtkEntry* _tmp9_;
- Measurement _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 638 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = *content_height;
-#line 638 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = _tmp4_.unit;
-#line 638 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_set_user_unit_choice (self, _tmp5_);
-#line 639 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = *content_height;
-#line 639 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = _tmp6_.unit;
-#line 639 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (&self->priv->local_content_width, _tmp7_, &_tmp8_);
-#line 639 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_width = _tmp8_;
-#line 640 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = self->priv->custom_width_entry;
-#line 640 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = self->priv->local_content_width;
-#line 640 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = custom_print_tab_format_measurement (self, &_tmp10_);
-#line 640 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = _tmp11_;
-#line 640 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp9_, _tmp12_);
-#line 640 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp12_);
-#line 4412 "Printing.c"
- }
-#line 642 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = *content_height;
-#line 642 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_height = _tmp13_;
-#line 643 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = self->priv->custom_height_entry;
-#line 643 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = *content_height;
-#line 643 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = custom_print_tab_format_measurement (self, &_tmp15_);
-#line 643 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = _tmp16_;
-#line 643 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp14_, _tmp17_);
-#line 643 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp17_);
-#line 4430 "Printing.c"
-}
-
-
-static void
-custom_print_tab_get_content_height (CustomPrintTab* self,
- Measurement* result)
-{
- Measurement _tmp0_;
-#line 646 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 647 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->local_content_height;
-#line 647 "/home/jens/Source/shotwell/src/Printing.vala"
- *result = _tmp0_;
-#line 647 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 4447 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_content_ppi (CustomPrintTab* self,
- gint content_ppi)
-{
- GtkEntry* _tmp0_;
- gint _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 650 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 651 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->local_content_ppi = CLAMP (content_ppi, PRINT_SETTINGS_MIN_CONTENT_PPI, PRINT_SETTINGS_MAX_CONTENT_PPI);
-#line 654 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->ppi_entry;
-#line 654 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->local_content_ppi;
-#line 654 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = g_strdup_printf ("%d", _tmp1_);
-#line 654 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_;
-#line 654 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_entry_set_text (_tmp0_, _tmp3_);
-#line 654 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp3_);
-#line 4475 "Printing.c"
-}
-
-
-static gint
-custom_print_tab_get_content_ppi (CustomPrintTab* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 657 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0);
-#line 658 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->local_content_ppi;
-#line 658 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp0_;
-#line 658 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4492 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_image_per_page_selection (CustomPrintTab* self,
- gint image_per_page)
-{
- GtkComboBoxText* _tmp0_;
-#line 661 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 662 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->image_per_page_combo;
-#line 662 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), image_per_page);
-#line 4507 "Printing.c"
-}
-
-
-static gint
-custom_print_tab_get_image_per_page_selection (CustomPrintTab* self)
-{
- gint result = 0;
- GtkComboBoxText* _tmp0_;
-#line 665 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0);
-#line 666 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->image_per_page_combo;
-#line 666 "/home/jens/Source/shotwell/src/Printing.vala"
- result = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
-#line 666 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4524 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_size_selection (CustomPrintTab* self,
- gint size_selection)
-{
- GtkComboBoxText* _tmp0_;
-#line 669 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 670 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->standard_sizes_combo;
-#line 670 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), size_selection);
-#line 4539 "Printing.c"
-}
-
-
-static gint
-custom_print_tab_get_size_selection (CustomPrintTab* self)
-{
- gint result = 0;
- GtkComboBoxText* _tmp0_;
-#line 673 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0);
-#line 674 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->standard_sizes_combo;
-#line 674 "/home/jens/Source/shotwell/src/Printing.vala"
- result = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
-#line 674 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4556 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_match_aspect_ratio_enabled (CustomPrintTab* self,
- gboolean enable_state)
-{
- GtkCheckButton* _tmp0_;
-#line 677 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 678 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->aspect_ratio_check;
-#line 678 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton), enable_state);
-#line 4571 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_print_titles_enabled (CustomPrintTab* self,
- gboolean print_titles)
-{
- GtkCheckButton* _tmp0_;
-#line 681 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 682 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->title_print_check;
-#line 682 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton), print_titles);
-#line 4586 "Printing.c"
-}
-
-
-static void
-custom_print_tab_set_print_titles_font (CustomPrintTab* self,
- const gchar* fontname)
-{
- GtkFontButton* _tmp0_;
-#line 685 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_CUSTOM_PRINT_TAB (self));
-#line 685 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (fontname != NULL);
-#line 686 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->title_print_font;
-#line 686 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_font_button_set_font_name (_tmp0_, fontname);
-#line 4603 "Printing.c"
-}
-
-
-static gboolean
-custom_print_tab_is_match_aspect_ratio_enabled (CustomPrintTab* self)
-{
- gboolean result = FALSE;
- GtkCheckButton* _tmp0_;
-#line 690 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE);
-#line 691 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->aspect_ratio_check;
-#line 691 "/home/jens/Source/shotwell/src/Printing.vala"
- result = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 691 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4620 "Printing.c"
-}
-
-
-static gboolean
-custom_print_tab_is_print_titles_enabled (CustomPrintTab* self)
-{
- gboolean result = FALSE;
- GtkCheckButton* _tmp0_;
-#line 694 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE);
-#line 695 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->title_print_check;
-#line 695 "/home/jens/Source/shotwell/src/Printing.vala"
- result = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 695 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4637 "Printing.c"
-}
-
-
-static gchar*
-custom_print_tab_get_print_titles_font (CustomPrintTab* self)
-{
- gchar* result = NULL;
- GtkFontButton* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 698 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL);
-#line 699 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->title_print_font;
-#line 699 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = gtk_font_button_get_font_name (_tmp0_);
-#line 699 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 699 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp2_;
-#line 699 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4660 "Printing.c"
-}
-
-
-PrintJob*
-custom_print_tab_get_source_job (CustomPrintTab* self)
-{
- PrintJob* result = NULL;
- PrintJob* _tmp0_;
- PrintJob* _tmp1_;
-#line 702 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL);
-#line 703 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->source_job;
-#line 703 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 703 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 703 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4680 "Printing.c"
-}
-
-
-PrintSettings*
-custom_print_tab_get_local_settings (CustomPrintTab* self)
-{
- PrintSettings* result = NULL;
- PrintSettings* _result_ = NULL;
- PrintSettings* _tmp0_;
- Measurement _tmp1_ = {0};
- Measurement _tmp2_ = {0};
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 706 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL);
-#line 707 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = print_settings_new ();
-#line 707 "/home/jens/Source/shotwell/src/Printing.vala"
- _result_ = _tmp0_;
-#line 709 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_get_content_width (self, &_tmp1_);
-#line 709 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_content_width (_result_, &_tmp1_);
-#line 710 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_get_content_height (self, &_tmp2_);
-#line 710 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_content_height (_result_, &_tmp2_);
-#line 711 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_content_layout (_result_, custom_print_tab_get_content_layout (self));
-#line 712 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_content_ppi (_result_, custom_print_tab_get_content_ppi (self));
-#line 713 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_image_per_page_selection (_result_, custom_print_tab_get_image_per_page_selection (self));
-#line 714 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_size_selection (_result_, custom_print_tab_get_size_selection (self));
-#line 715 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_match_aspect_ratio_enabled (_result_, custom_print_tab_is_match_aspect_ratio_enabled (self));
-#line 716 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_print_titles_enabled (_result_, custom_print_tab_is_print_titles_enabled (self));
-#line 717 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = custom_print_tab_get_print_titles_font (self);
-#line 717 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_;
-#line 717 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_set_print_titles_font (_result_, _tmp4_);
-#line 717 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp4_);
-#line 719 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _result_;
-#line 719 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4732 "Printing.c"
-}
-
-
-static void
-custom_print_tab_class_init (CustomPrintTabClass * klass)
-{
- gint CustomPrintTab_private_offset;
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- custom_print_tab_parent_class = g_type_class_peek_parent (klass);
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- g_type_class_add_private (klass, sizeof (CustomPrintTabPrivate));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- G_OBJECT_CLASS (klass)->finalize = custom_print_tab_finalize;
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- CustomPrintTab_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/printing_widget.ui");
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "standard_size_radio", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, standard_size_radio));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "custom_size_radio", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, custom_size_radio));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "image_per_page_radio", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, image_per_page_radio));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "image_per_page_combo", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, image_per_page_combo));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "standard_sizes_combo", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, standard_sizes_combo));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "units_combo", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, units_combo));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "custom_width_entry", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, custom_width_entry));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "custom_height_entry", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, custom_height_entry));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "ppi_entry", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, ppi_entry));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "aspect_ratio_check", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, aspect_ratio_check));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "title_print_check", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, title_print_check));
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "title_print_font", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, title_print_font));
-#line 4774 "Printing.c"
-}
-
-
-static void
-custom_print_tab_instance_init (CustomPrintTab * self)
-{
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv = CUSTOM_PRINT_TAB_GET_PRIVATE (self);
-#line 298 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&self->priv->local_content_width, 5.0, MEASUREMENT_UNIT_INCHES);
-#line 299 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&self->priv->local_content_height, 5.0, MEASUREMENT_UNIT_INCHES);
-#line 301 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->is_text_insertion_in_progress = FALSE;
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 4791 "Printing.c"
-}
-
-
-static void
-custom_print_tab_finalize (GObject * obj)
-{
- CustomPrintTab * self;
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CUSTOM_PRINT_TAB, CustomPrintTab);
-#line 274 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->standard_size_radio);
-#line 276 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->custom_size_radio);
-#line 278 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->image_per_page_radio);
-#line 280 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->image_per_page_combo);
-#line 282 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->standard_sizes_combo);
-#line 284 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->units_combo);
-#line 286 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->custom_width_entry);
-#line 288 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->custom_height_entry);
-#line 290 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->ppi_entry);
-#line 292 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->aspect_ratio_check);
-#line 294 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->title_print_check);
-#line 296 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->title_print_font);
-#line 302 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->source_job);
-#line 269 "/home/jens/Source/shotwell/src/Printing.vala"
- G_OBJECT_CLASS (custom_print_tab_parent_class)->finalize (obj);
-#line 4829 "Printing.c"
-}
-
-
-GType
-custom_print_tab_get_type (void)
-{
- static volatile gsize custom_print_tab_type_id__volatile = 0;
- if (g_once_init_enter (&custom_print_tab_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CustomPrintTabClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) custom_print_tab_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CustomPrintTab), 0, (GInstanceInitFunc) custom_print_tab_instance_init, NULL };
- GType custom_print_tab_type_id;
- custom_print_tab_type_id = g_type_register_static (gtk_box_get_type (), "CustomPrintTab", &g_define_type_info, 0);
- g_once_init_leave (&custom_print_tab_type_id__volatile, custom_print_tab_type_id);
- }
- return custom_print_tab_type_id__volatile;
-}
-
-
-PrintJob*
-print_job_construct (GType object_type,
- GeeCollection* to_print)
-{
- PrintJob * self = NULL;
- PrintManager* _tmp0_;
- PrintManager* _tmp1_;
- PrintSettings* _tmp2_;
- GeeArrayList* _tmp3_;
- gdouble photo_aspect_ratio = 0.0;
- GeeArrayList* _tmp4_;
- gpointer _tmp5_;
- Photo* _tmp6_;
- Dimensions _tmp7_ = {0};
- gdouble _tmp8_;
- gdouble _tmp9_;
-#line 727 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (to_print), NULL);
-#line 727 "/home/jens/Source/shotwell/src/Printing.vala"
- self = (PrintJob*) g_object_new (object_type, NULL);
-#line 728 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = print_manager_get_instance ();
-#line 728 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _tmp0_;
-#line 728 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = print_manager_get_global_settings (_tmp1_);
-#line 728 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (self->priv->settings);
-#line 728 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->settings = _tmp2_;
-#line 728 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_manager_unref0 (_tmp1_);
-#line 729 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = self->priv->photos;
-#line 729 "/home/jens/Source/shotwell/src/Printing.vala"
- gee_array_list_add_all (_tmp3_, to_print);
-#line 731 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_set_embed_page_setup (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_print_operation_get_type (), GtkPrintOperation), TRUE);
-#line 732 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = self->priv->photos;
-#line 732 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 732 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = (Photo*) _tmp5_;
-#line 732 "/home/jens/Source/shotwell/src/Printing.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp7_);
-#line 732 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = dimensions_get_aspect_ratio (&_tmp7_);
-#line 732 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp6_);
-#line 732 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_aspect_ratio = _tmp8_;
-#line 733 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = photo_aspect_ratio;
-#line 733 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp9_ < 1.0) {
-#line 4903 "Printing.c"
- gdouble _tmp10_;
-#line 734 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = photo_aspect_ratio;
-#line 734 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_aspect_ratio = 1.0 / _tmp10_;
-#line 4909 "Printing.c"
- }
-#line 727 "/home/jens/Source/shotwell/src/Printing.vala"
- return self;
-#line 4913 "Printing.c"
-}
-
-
-PrintJob*
-print_job_new (GeeCollection* to_print)
-{
-#line 727 "/home/jens/Source/shotwell/src/Printing.vala"
- return print_job_construct (TYPE_PRINT_JOB, to_print);
-#line 4922 "Printing.c"
-}
-
-
-GeeList*
-print_job_get_photos (PrintJob* self)
-{
- GeeList* result = NULL;
- GeeArrayList* _tmp0_;
- GeeList* _tmp1_;
-#line 737 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_JOB (self), NULL);
-#line 738 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->photos;
-#line 738 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList));
-#line 738 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 738 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4942 "Printing.c"
-}
-
-
-Photo*
-print_job_get_source_photo (PrintJob* self)
-{
- Photo* result = NULL;
- GeeArrayList* _tmp0_;
- gpointer _tmp1_;
-#line 741 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_JOB (self), NULL);
-#line 742 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->photos;
-#line 742 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 742 "/home/jens/Source/shotwell/src/Printing.vala"
- result = (Photo*) _tmp1_;
-#line 742 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 4962 "Printing.c"
-}
-
-
-gdouble
-print_job_get_source_aspect_ratio (PrintJob* self)
-{
- gdouble result = 0.0;
- gdouble aspect_ratio = 0.0;
- GeeArrayList* _tmp0_;
- gpointer _tmp1_;
- Photo* _tmp2_;
- Dimensions _tmp3_ = {0};
- gdouble _tmp4_;
- gdouble _tmp5_ = 0.0;
- gdouble _tmp6_;
-#line 745 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_JOB (self), 0.0);
-#line 746 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->photos;
-#line 746 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 746 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = (Photo*) _tmp1_;
-#line 746 "/home/jens/Source/shotwell/src/Printing.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp3_);
-#line 746 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = dimensions_get_aspect_ratio (&_tmp3_);
-#line 746 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp2_);
-#line 746 "/home/jens/Source/shotwell/src/Printing.vala"
- aspect_ratio = _tmp4_;
-#line 747 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = aspect_ratio;
-#line 747 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp6_ < 1.0) {
-#line 4998 "Printing.c"
- gdouble _tmp7_;
-#line 747 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = aspect_ratio;
-#line 747 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = 1.0 / _tmp7_;
-#line 5004 "Printing.c"
- } else {
- gdouble _tmp8_;
-#line 747 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = aspect_ratio;
-#line 747 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = _tmp8_;
-#line 5011 "Printing.c"
- }
-#line 747 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp5_;
-#line 747 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 5017 "Printing.c"
-}
-
-
-static gpointer
-_print_settings_ref0 (gpointer self)
-{
-#line 751 "/home/jens/Source/shotwell/src/Printing.vala"
- return self ? print_settings_ref (self) : NULL;
-#line 5026 "Printing.c"
-}
-
-
-PrintSettings*
-print_job_get_local_settings (PrintJob* self)
-{
- PrintSettings* result = NULL;
- PrintSettings* _tmp0_;
- PrintSettings* _tmp1_;
-#line 750 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_JOB (self), NULL);
-#line 751 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->settings;
-#line 751 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _print_settings_ref0 (_tmp0_);
-#line 751 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 751 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 5046 "Printing.c"
-}
-
-
-void
-print_job_set_local_settings (PrintJob* self,
- PrintSettings* settings)
-{
- PrintSettings* _tmp0_;
-#line 754 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_JOB (self));
-#line 754 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (settings));
-#line 755 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _print_settings_ref0 (settings);
-#line 755 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (self->priv->settings);
-#line 755 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->settings = _tmp0_;
-#line 5065 "Printing.c"
-}
-
-
-static void
-print_job_class_init (PrintJobClass * klass)
-{
-#line 723 "/home/jens/Source/shotwell/src/Printing.vala"
- print_job_parent_class = g_type_class_peek_parent (klass);
-#line 723 "/home/jens/Source/shotwell/src/Printing.vala"
- g_type_class_add_private (klass, sizeof (PrintJobPrivate));
-#line 723 "/home/jens/Source/shotwell/src/Printing.vala"
- G_OBJECT_CLASS (klass)->finalize = print_job_finalize;
-#line 5078 "Printing.c"
-}
-
-
-static void
-print_job_instance_init (PrintJob * self)
-{
- GeeArrayList* _tmp0_;
-#line 723 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv = PRINT_JOB_GET_PRIVATE (self);
-#line 725 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = gee_array_list_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 725 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->photos = _tmp0_;
-#line 5092 "Printing.c"
-}
-
-
-static void
-print_job_finalize (GObject * obj)
-{
- PrintJob * self;
-#line 723 "/home/jens/Source/shotwell/src/Printing.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PRINT_JOB, PrintJob);
-#line 724 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (self->priv->settings);
-#line 725 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->photos);
-#line 723 "/home/jens/Source/shotwell/src/Printing.vala"
- G_OBJECT_CLASS (print_job_parent_class)->finalize (obj);
-#line 5108 "Printing.c"
-}
-
-
-GType
-print_job_get_type (void)
-{
- static volatile gsize print_job_type_id__volatile = 0;
- if (g_once_init_enter (&print_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PrintJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) print_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrintJob), 0, (GInstanceInitFunc) print_job_instance_init, NULL };
- GType print_job_type_id;
- print_job_type_id = g_type_register_static (gtk_print_operation_get_type (), "PrintJob", &g_define_type_info, 0);
- g_once_init_leave (&print_job_type_id__volatile, print_job_type_id);
- }
- return print_job_type_id__volatile;
-}
-
-
-StandardPrintSize*
-standard_print_size_construct (GType object_type,
- const gchar* name,
- Measurement* width,
- Measurement* height)
-{
- StandardPrintSize* self = NULL;
- gchar* _tmp0_;
- Measurement _tmp1_;
- Measurement _tmp2_;
-#line 760 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 760 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (width != NULL, NULL);
-#line 760 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (height != NULL, NULL);
-#line 760 "/home/jens/Source/shotwell/src/Printing.vala"
- self = (StandardPrintSize*) g_type_create_instance (object_type);
-#line 761 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = g_strdup (name);
-#line 761 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (self->name);
-#line 761 "/home/jens/Source/shotwell/src/Printing.vala"
- self->name = _tmp0_;
-#line 762 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = *width;
-#line 762 "/home/jens/Source/shotwell/src/Printing.vala"
- self->width = _tmp1_;
-#line 763 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = *height;
-#line 763 "/home/jens/Source/shotwell/src/Printing.vala"
- self->height = _tmp2_;
-#line 760 "/home/jens/Source/shotwell/src/Printing.vala"
- return self;
-#line 5160 "Printing.c"
-}
-
-
-StandardPrintSize*
-standard_print_size_new (const gchar* name,
- Measurement* width,
- Measurement* height)
-{
-#line 760 "/home/jens/Source/shotwell/src/Printing.vala"
- return standard_print_size_construct (TYPE_STANDARD_PRINT_SIZE, name, width, height);
-#line 5171 "Printing.c"
-}
-
-
-static void
-value_standard_print_size_init (GValue* value)
-{
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 5180 "Printing.c"
-}
-
-
-static void
-value_standard_print_size_free_value (GValue* value)
-{
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (value->data[0].v_pointer) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- standard_print_size_unref (value->data[0].v_pointer);
-#line 5191 "Printing.c"
- }
-}
-
-
-static void
-value_standard_print_size_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (src_value->data[0].v_pointer) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- dest_value->data[0].v_pointer = standard_print_size_ref (src_value->data[0].v_pointer);
-#line 5204 "Printing.c"
- } else {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 5208 "Printing.c"
- }
-}
-
-
-static gpointer
-value_standard_print_size_peek_pointer (const GValue* value)
-{
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- return value->data[0].v_pointer;
-#line 5218 "Printing.c"
-}
-
-
-static gchar*
-value_standard_print_size_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (collect_values[0].v_pointer) {
-#line 5230 "Printing.c"
- StandardPrintSize * object;
- object = collect_values[0].v_pointer;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5237 "Printing.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.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 5241 "Printing.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = standard_print_size_ref (object);
-#line 5245 "Printing.c"
- } else {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 5249 "Printing.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- return NULL;
-#line 5253 "Printing.c"
-}
-
-
-static gchar*
-value_standard_print_size_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- StandardPrintSize ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!object_p) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5269 "Printing.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!value->data[0].v_pointer) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = NULL;
-#line 5275 "Printing.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = value->data[0].v_pointer;
-#line 5279 "Printing.c"
- } else {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = standard_print_size_ref (value->data[0].v_pointer);
-#line 5283 "Printing.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- return NULL;
-#line 5287 "Printing.c"
-}
-
-
-GParamSpec*
-param_spec_standard_print_size (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecStandardPrintSize* spec;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_STANDARD_PRINT_SIZE), NULL);
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- return G_PARAM_SPEC (spec);
-#line 5307 "Printing.c"
-}
-
-
-gpointer
-value_get_standard_print_size (const GValue* value)
-{
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_STANDARD_PRINT_SIZE), NULL);
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- return value->data[0].v_pointer;
-#line 5318 "Printing.c"
-}
-
-
-void
-value_set_standard_print_size (GValue* value,
- gpointer v_object)
-{
- StandardPrintSize * old;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_STANDARD_PRINT_SIZE));
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- old = value->data[0].v_pointer;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (v_object) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_STANDARD_PRINT_SIZE));
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = v_object;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- standard_print_size_ref (value->data[0].v_pointer);
-#line 5341 "Printing.c"
- } else {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 5345 "Printing.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (old) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- standard_print_size_unref (old);
-#line 5351 "Printing.c"
- }
-}
-
-
-void
-value_take_standard_print_size (GValue* value,
- gpointer v_object)
-{
- StandardPrintSize * old;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_STANDARD_PRINT_SIZE));
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- old = value->data[0].v_pointer;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (v_object) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_STANDARD_PRINT_SIZE));
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = v_object;
-#line 5373 "Printing.c"
- } else {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 5377 "Printing.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (old) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- standard_print_size_unref (old);
-#line 5383 "Printing.c"
- }
-}
-
-
-static void
-standard_print_size_class_init (StandardPrintSizeClass * klass)
-{
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- standard_print_size_parent_class = g_type_class_peek_parent (klass);
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- ((StandardPrintSizeClass *) klass)->finalize = standard_print_size_finalize;
-#line 5395 "Printing.c"
-}
-
-
-static void
-standard_print_size_instance_init (StandardPrintSize * self)
-{
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- self->ref_count = 1;
-#line 5404 "Printing.c"
-}
-
-
-static void
-standard_print_size_finalize (StandardPrintSize * obj)
-{
- StandardPrintSize * self;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STANDARD_PRINT_SIZE, StandardPrintSize);
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_handlers_destroy (self);
-#line 766 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (self->name);
-#line 5418 "Printing.c"
-}
-
-
-GType
-standard_print_size_get_type (void)
-{
- static volatile gsize standard_print_size_type_id__volatile = 0;
- if (g_once_init_enter (&standard_print_size_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_standard_print_size_init, value_standard_print_size_free_value, value_standard_print_size_copy_value, value_standard_print_size_peek_pointer, "p", value_standard_print_size_collect_value, "p", value_standard_print_size_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (StandardPrintSizeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) standard_print_size_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StandardPrintSize), 0, (GInstanceInitFunc) standard_print_size_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType standard_print_size_type_id;
- standard_print_size_type_id = g_type_register_fundamental (g_type_fundamental_next (), "StandardPrintSize", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&standard_print_size_type_id__volatile, standard_print_size_type_id);
- }
- return standard_print_size_type_id__volatile;
-}
-
-
-gpointer
-standard_print_size_ref (gpointer instance)
-{
- StandardPrintSize * self;
- self = instance;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- return instance;
-#line 5447 "Printing.c"
-}
-
-
-void
-standard_print_size_unref (gpointer instance)
-{
- StandardPrintSize * self;
- self = instance;
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- STANDARD_PRINT_SIZE_GET_CLASS (self)->finalize (self);
-#line 759 "/home/jens/Source/shotwell/src/Printing.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 5462 "Printing.c"
- }
-}
-
-
-static PrintManager*
-print_manager_construct (GType object_type)
-{
- PrintManager* self = NULL;
- GtkPageSetup* _tmp0_;
- PrintSettings* _tmp1_;
-#line 783 "/home/jens/Source/shotwell/src/Printing.vala"
- self = (PrintManager*) g_type_create_instance (object_type);
-#line 784 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = gtk_page_setup_new ();
-#line 784 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->user_page_setup);
-#line 784 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->user_page_setup = _tmp0_;
-#line 785 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = print_settings_new ();
-#line 785 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (self->priv->settings);
-#line 785 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->settings = _tmp1_;
-#line 783 "/home/jens/Source/shotwell/src/Printing.vala"
- return self;
-#line 5489 "Printing.c"
-}
-
-
-static PrintManager*
-print_manager_new (void)
-{
-#line 783 "/home/jens/Source/shotwell/src/Printing.vala"
- return print_manager_construct (TYPE_PRINT_MANAGER);
-#line 5498 "Printing.c"
-}
-
-
-static void
-_vala_array_add112 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5514 "Printing.c"
- }
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5520 "Printing.c"
-}
-
-
-static void
-_vala_array_add113 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5536 "Printing.c"
- }
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5542 "Printing.c"
-}
-
-
-static void
-_vala_array_add114 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5558 "Printing.c"
- }
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5564 "Printing.c"
-}
-
-
-static void
-_vala_array_add115 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5580 "Printing.c"
- }
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5586 "Printing.c"
-}
-
-
-static void
-_vala_array_add116 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5602 "Printing.c"
- }
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5608 "Printing.c"
-}
-
-
-static void
-_vala_array_add117 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5624 "Printing.c"
- }
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5630 "Printing.c"
-}
-
-
-static void
-_vala_array_add118 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5646 "Printing.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5652 "Printing.c"
-}
-
-
-static void
-_vala_array_add119 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5668 "Printing.c"
- }
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5674 "Printing.c"
-}
-
-
-static void
-_vala_array_add120 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5690 "Printing.c"
- }
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5696 "Printing.c"
-}
-
-
-static void
-_vala_array_add121 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5712 "Printing.c"
- }
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5718 "Printing.c"
-}
-
-
-static void
-_vala_array_add122 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5734 "Printing.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5740 "Printing.c"
-}
-
-
-static void
-_vala_array_add123 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5756 "Printing.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5762 "Printing.c"
-}
-
-
-static void
-_vala_array_add124 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5778 "Printing.c"
- }
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5784 "Printing.c"
-}
-
-
-static void
-_vala_array_add125 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5800 "Printing.c"
- }
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5806 "Printing.c"
-}
-
-
-static void
-_vala_array_add126 (StandardPrintSize** * array,
- int* length,
- int* size,
- StandardPrintSize* value)
-{
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- if ((*length) == (*size)) {
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- *array = g_renew (StandardPrintSize*, *array, (*size) + 1);
-#line 5822 "Printing.c"
- }
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[(*length)++] = value;
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- (*array)[*length] = NULL;
-#line 5828 "Printing.c"
-}
-
-
-StandardPrintSize**
-print_manager_get_standard_sizes (PrintManager* self,
- int* result_length1)
-{
- StandardPrintSize** result = NULL;
- StandardPrintSize** _tmp0_;
- gint _tmp0__length1;
- StandardPrintSize** _tmp62_;
- gint _tmp62__length1;
- StandardPrintSize** _tmp63_;
- gint _tmp63__length1;
-#line 788 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_MANAGER (self), NULL);
-#line 789 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->standard_sizes;
-#line 789 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0__length1 = self->priv->standard_sizes_length1;
-#line 789 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp0_ == NULL) {
-#line 5851 "Printing.c"
- StandardPrintSize** _tmp1_;
- StandardPrintSize** _tmp2_;
- gint _tmp2__length1;
- Measurement _tmp3_ = {0};
- Measurement _tmp4_ = {0};
- StandardPrintSize* _tmp5_;
- StandardPrintSize** _tmp6_;
- gint _tmp6__length1;
- Measurement _tmp7_ = {0};
- Measurement _tmp8_ = {0};
- StandardPrintSize* _tmp9_;
- StandardPrintSize** _tmp10_;
- gint _tmp10__length1;
- Measurement _tmp11_ = {0};
- Measurement _tmp12_ = {0};
- StandardPrintSize* _tmp13_;
- StandardPrintSize** _tmp14_;
- gint _tmp14__length1;
- Measurement _tmp15_ = {0};
- Measurement _tmp16_ = {0};
- StandardPrintSize* _tmp17_;
- StandardPrintSize** _tmp18_;
- gint _tmp18__length1;
- Measurement _tmp19_ = {0};
- Measurement _tmp20_ = {0};
- StandardPrintSize* _tmp21_;
- StandardPrintSize** _tmp22_;
- gint _tmp22__length1;
- Measurement _tmp23_ = {0};
- Measurement _tmp24_ = {0};
- StandardPrintSize* _tmp25_;
- StandardPrintSize** _tmp26_;
- gint _tmp26__length1;
- Measurement _tmp27_ = {0};
- Measurement _tmp28_ = {0};
- StandardPrintSize* _tmp29_;
- StandardPrintSize** _tmp30_;
- gint _tmp30__length1;
- Measurement _tmp31_ = {0};
- Measurement _tmp32_ = {0};
- StandardPrintSize* _tmp33_;
- StandardPrintSize** _tmp34_;
- gint _tmp34__length1;
- Measurement _tmp35_ = {0};
- Measurement _tmp36_ = {0};
- StandardPrintSize* _tmp37_;
- StandardPrintSize** _tmp38_;
- gint _tmp38__length1;
- Measurement _tmp39_ = {0};
- Measurement _tmp40_ = {0};
- StandardPrintSize* _tmp41_;
- StandardPrintSize** _tmp42_;
- gint _tmp42__length1;
- Measurement _tmp43_ = {0};
- Measurement _tmp44_ = {0};
- StandardPrintSize* _tmp45_;
- StandardPrintSize** _tmp46_;
- gint _tmp46__length1;
- Measurement _tmp47_ = {0};
- Measurement _tmp48_ = {0};
- StandardPrintSize* _tmp49_;
- StandardPrintSize** _tmp50_;
- gint _tmp50__length1;
- Measurement _tmp51_ = {0};
- Measurement _tmp52_ = {0};
- StandardPrintSize* _tmp53_;
- StandardPrintSize** _tmp54_;
- gint _tmp54__length1;
- Measurement _tmp55_ = {0};
- Measurement _tmp56_ = {0};
- StandardPrintSize* _tmp57_;
- StandardPrintSize** _tmp58_;
- gint _tmp58__length1;
- Measurement _tmp59_ = {0};
- Measurement _tmp60_ = {0};
- StandardPrintSize* _tmp61_;
-#line 790 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = g_new0 (StandardPrintSize*, 0 + 1);
-#line 790 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->standard_sizes = (_vala_array_free (self->priv->standard_sizes, self->priv->standard_sizes_length1, (GDestroyNotify) standard_print_size_unref), NULL);
-#line 790 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->standard_sizes = _tmp1_;
-#line 790 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->standard_sizes_length1 = 0;
-#line 790 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->_standard_sizes_size_ = self->priv->standard_sizes_length1;
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->standard_sizes;
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2__length1 = self->priv->standard_sizes_length1;
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp3_, (gdouble) 3, MEASUREMENT_UNIT_INCHES);
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp4_, (gdouble) 2, MEASUREMENT_UNIT_INCHES);
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = standard_print_size_new (_ ("Wallet (2 × 3 in.)"), &_tmp3_, &_tmp4_);
-#line 792 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add112 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp5_);
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = self->priv->standard_sizes;
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6__length1 = self->priv->standard_sizes_length1;
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp7_, (gdouble) 5, MEASUREMENT_UNIT_INCHES);
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp8_, (gdouble) 3, MEASUREMENT_UNIT_INCHES);
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = standard_print_size_new (_ ("Notecard (3 × 5 in.)"), &_tmp7_, &_tmp8_);
-#line 795 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add113 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp9_);
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = self->priv->standard_sizes;
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10__length1 = self->priv->standard_sizes_length1;
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp11_, (gdouble) 6, MEASUREMENT_UNIT_INCHES);
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp12_, (gdouble) 4, MEASUREMENT_UNIT_INCHES);
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = standard_print_size_new (_ ("4 × 6 in."), &_tmp11_, &_tmp12_);
-#line 798 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add114 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp13_);
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = self->priv->standard_sizes;
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14__length1 = self->priv->standard_sizes_length1;
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp15_, (gdouble) 7, MEASUREMENT_UNIT_INCHES);
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp16_, (gdouble) 5, MEASUREMENT_UNIT_INCHES);
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = standard_print_size_new (_ ("5 × 7 in."), &_tmp15_, &_tmp16_);
-#line 801 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add115 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp17_);
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = self->priv->standard_sizes;
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18__length1 = self->priv->standard_sizes_length1;
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp19_, (gdouble) 10, MEASUREMENT_UNIT_INCHES);
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp20_, (gdouble) 8, MEASUREMENT_UNIT_INCHES);
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = standard_print_size_new (_ ("8 × 10 in."), &_tmp19_, &_tmp20_);
-#line 804 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add116 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp21_);
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = self->priv->standard_sizes;
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22__length1 = self->priv->standard_sizes_length1;
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp23_, (gdouble) 14, MEASUREMENT_UNIT_INCHES);
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp24_, (gdouble) 11, MEASUREMENT_UNIT_INCHES);
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = standard_print_size_new (_ ("11 × 14 in."), &_tmp23_, &_tmp24_);
-#line 807 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add117 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp25_);
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26_ = self->priv->standard_sizes;
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26__length1 = self->priv->standard_sizes_length1;
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp27_, (gdouble) 20, MEASUREMENT_UNIT_INCHES);
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp28_, (gdouble) 16, MEASUREMENT_UNIT_INCHES);
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp29_ = standard_print_size_new (_ ("16 × 20 in."), &_tmp27_, &_tmp28_);
-#line 810 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add118 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp29_);
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30_ = self->priv->standard_sizes;
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30__length1 = self->priv->standard_sizes_length1;
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp31_, (gdouble) 0, MEASUREMENT_UNIT_INCHES);
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp32_, (gdouble) 0, MEASUREMENT_UNIT_INCHES);
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp33_ = standard_print_size_new ("-", &_tmp31_, &_tmp32_);
-#line 813 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add119 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp33_);
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp34_ = self->priv->standard_sizes;
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp34__length1 = self->priv->standard_sizes_length1;
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp35_, (gdouble) 13, MEASUREMENT_UNIT_CENTIMETERS);
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp36_, (gdouble) 9, MEASUREMENT_UNIT_CENTIMETERS);
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp37_ = standard_print_size_new (_ ("Metric Wallet (9 × 13 cm)"), &_tmp35_, &_tmp36_);
-#line 816 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add120 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp37_);
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp38_ = self->priv->standard_sizes;
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp38__length1 = self->priv->standard_sizes_length1;
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp39_, (gdouble) 15, MEASUREMENT_UNIT_CENTIMETERS);
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp40_, (gdouble) 10, MEASUREMENT_UNIT_CENTIMETERS);
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp41_ = standard_print_size_new (_ ("Postcard (10 × 15 cm)"), &_tmp39_, &_tmp40_);
-#line 819 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add121 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp41_);
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp42_ = self->priv->standard_sizes;
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp42__length1 = self->priv->standard_sizes_length1;
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp43_, (gdouble) 18, MEASUREMENT_UNIT_CENTIMETERS);
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp44_, (gdouble) 13, MEASUREMENT_UNIT_CENTIMETERS);
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp45_ = standard_print_size_new (_ ("13 × 18 cm"), &_tmp43_, &_tmp44_);
-#line 822 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add122 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp45_);
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp46_ = self->priv->standard_sizes;
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp46__length1 = self->priv->standard_sizes_length1;
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp47_, (gdouble) 24, MEASUREMENT_UNIT_CENTIMETERS);
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp48_, (gdouble) 18, MEASUREMENT_UNIT_CENTIMETERS);
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp49_ = standard_print_size_new (_ ("18 × 24 cm"), &_tmp47_, &_tmp48_);
-#line 825 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add123 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp49_);
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp50_ = self->priv->standard_sizes;
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp50__length1 = self->priv->standard_sizes_length1;
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp51_, (gdouble) 30, MEASUREMENT_UNIT_CENTIMETERS);
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp52_, (gdouble) 20, MEASUREMENT_UNIT_CENTIMETERS);
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp53_ = standard_print_size_new (_ ("20 × 30 cm"), &_tmp51_, &_tmp52_);
-#line 828 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add124 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp53_);
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp54_ = self->priv->standard_sizes;
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp54__length1 = self->priv->standard_sizes_length1;
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp55_, (gdouble) 40, MEASUREMENT_UNIT_CENTIMETERS);
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp56_, (gdouble) 24, MEASUREMENT_UNIT_CENTIMETERS);
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp57_ = standard_print_size_new (_ ("24 × 40 cm"), &_tmp55_, &_tmp56_);
-#line 831 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add125 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp57_);
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp58_ = self->priv->standard_sizes;
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp58__length1 = self->priv->standard_sizes_length1;
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp59_, (gdouble) 40, MEASUREMENT_UNIT_CENTIMETERS);
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_init (&_tmp60_, (gdouble) 30, MEASUREMENT_UNIT_CENTIMETERS);
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp61_ = standard_print_size_new (_ ("30 × 40 cm"), &_tmp59_, &_tmp60_);
-#line 834 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_array_add126 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp61_);
-#line 6118 "Printing.c"
- }
-#line 839 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp62_ = self->priv->standard_sizes;
-#line 839 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp62__length1 = self->priv->standard_sizes_length1;
-#line 839 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp63_ = _tmp62_;
-#line 839 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp63__length1 = _tmp62__length1;
-#line 839 "/home/jens/Source/shotwell/src/Printing.vala"
- if (result_length1) {
-#line 839 "/home/jens/Source/shotwell/src/Printing.vala"
- *result_length1 = _tmp63__length1;
-#line 6132 "Printing.c"
- }
-#line 839 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp63_;
-#line 839 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 6138 "Printing.c"
-}
-
-
-static gpointer
-_print_manager_ref0 (gpointer self)
-{
-#line 846 "/home/jens/Source/shotwell/src/Printing.vala"
- return self ? print_manager_ref (self) : NULL;
-#line 6147 "Printing.c"
-}
-
-
-PrintManager*
-print_manager_get_instance (void)
-{
- PrintManager* result = NULL;
- PrintManager* _tmp0_;
- PrintManager* _tmp2_;
- PrintManager* _tmp3_;
-#line 843 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = print_manager_instance;
-#line 843 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp0_ == NULL) {
-#line 6162 "Printing.c"
- PrintManager* _tmp1_;
-#line 844 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = print_manager_new ();
-#line 844 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_manager_unref0 (print_manager_instance);
-#line 844 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_instance = _tmp1_;
-#line 6170 "Printing.c"
- }
-#line 846 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = print_manager_instance;
-#line 846 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _print_manager_ref0 (_tmp2_);
-#line 846 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp3_;
-#line 846 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 6180 "Printing.c"
-}
-
-
-static void
-_print_manager_on_begin_print_gtk_print_operation_begin_print (GtkPrintOperation* _sender,
- GtkPrintContext* context,
- gpointer self)
-{
-#line 856 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_on_begin_print ((PrintManager*) self, _sender, context);
-#line 6191 "Printing.c"
-}
-
-
-static void
-_print_manager_on_draw_page_gtk_print_operation_draw_page (GtkPrintOperation* _sender,
- GtkPrintContext* context,
- gint page_nr,
- gpointer self)
-{
-#line 857 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_on_draw_page ((PrintManager*) self, _sender, context, page_nr);
-#line 6203 "Printing.c"
-}
-
-
-static GObject*
-_print_manager_on_create_custom_widget_gtk_print_operation_create_custom_widget (GtkPrintOperation* _sender,
- gpointer self)
-{
- GObject* result;
- result = print_manager_on_create_custom_widget ((PrintManager*) self, _sender);
-#line 858 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 6215 "Printing.c"
-}
-
-
-static void
-_print_manager_on_status_changed_gtk_print_operation_status_changed (GtkPrintOperation* _sender,
- gpointer self)
-{
-#line 859 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_on_status_changed ((PrintManager*) self, _sender);
-#line 6225 "Printing.c"
-}
-
-
-void
-print_manager_spool_photo (PrintManager* self,
- GeeCollection* to_print)
-{
- PrintJob* job = NULL;
- PrintJob* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GtkPageSetup* _tmp5_;
- AppWindow* _tmp6_;
- AppWindow* _tmp7_;
- GCancellable* _tmp8_;
- AppWindow* _tmp9_;
- AppWindow* _tmp10_;
- GCancellable* _tmp11_;
- ProgressDialog* _tmp12_;
- gchar* err_msg = NULL;
- ProgressDialog* _tmp21_;
- AppWindow* _tmp22_;
- AppWindow* _tmp23_;
- const gchar* _tmp24_;
- GError * _inner_error_ = NULL;
-#line 849 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_MANAGER (self));
-#line 849 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GEE_IS_COLLECTION (to_print));
-#line 850 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = print_job_new (to_print);
-#line 850 "/home/jens/Source/shotwell/src/Printing.vala"
- job = _tmp0_;
-#line 851 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_set_custom_tab_label (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), _ ("Image Settings"));
-#line 852 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_set_unit (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), GTK_UNIT_INCH);
-#line 853 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_set_n_pages (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), 1);
-#line 854 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = print_job_get_source_photo (job);
-#line 854 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = _tmp1_;
-#line 854 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject));
-#line 854 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_;
-#line 854 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_set_job_name (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), _tmp4_);
-#line 854 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp4_);
-#line 854 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp2_);
-#line 855 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = self->priv->user_page_setup;
-#line 855 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_set_default_page_setup (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), _tmp5_);
-#line 856 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), "begin-print", (GCallback) _print_manager_on_begin_print_gtk_print_operation_begin_print, self);
-#line 857 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), "draw-page", (GCallback) _print_manager_on_draw_page_gtk_print_operation_draw_page, self);
-#line 858 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), "create-custom-widget", (GCallback) _print_manager_on_create_custom_widget_gtk_print_operation_create_custom_widget, self);
-#line 859 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), "status-changed", (GCallback) _print_manager_on_status_changed_gtk_print_operation_status_changed, self);
-#line 861 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = app_window_get_instance ();
-#line 861 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = _tmp6_;
-#line 861 "/home/jens/Source/shotwell/src/Printing.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE_WINDOW, PageWindow));
-#line 861 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp7_);
-#line 863 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = g_cancellable_new ();
-#line 863 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 863 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->cancellable = _tmp8_;
-#line 864 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = app_window_get_instance ();
-#line 864 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = _tmp9_;
-#line 864 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = self->priv->cancellable;
-#line 864 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_window_get_type (), GtkWindow), _ ("Printing…"), _tmp11_);
-#line 864 "/home/jens/Source/shotwell/src/Printing.vala"
- g_object_ref_sink (_tmp12_);
-#line 864 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->progress_dialog);
-#line 864 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->progress_dialog = _tmp12_;
-#line 864 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp10_);
-#line 866 "/home/jens/Source/shotwell/src/Printing.vala"
- err_msg = NULL;
-#line 6325 "Printing.c"
- {
- GtkPrintOperationResult _result_ = 0;
- AppWindow* _tmp13_;
- AppWindow* _tmp14_;
- GtkPrintOperationResult _tmp15_;
-#line 868 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = app_window_get_instance ();
-#line 868 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = _tmp13_;
-#line 868 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = gtk_print_operation_run (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_window_get_type (), GtkWindow), &_inner_error_);
-#line 868 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp14_);
-#line 868 "/home/jens/Source/shotwell/src/Printing.vala"
- _result_ = _tmp15_;
-#line 868 "/home/jens/Source/shotwell/src/Printing.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6343 "Printing.c"
- goto __catch478_g_error;
- }
-#line 870 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_result_ == GTK_PRINT_OPERATION_RESULT_APPLY) {
-#line 6348 "Printing.c"
- GtkPageSetup* _tmp16_;
- GtkPageSetup* _tmp17_;
-#line 871 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = gtk_print_operation_get_default_page_setup (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation));
-#line 871 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = _g_object_ref0 (_tmp16_);
-#line 871 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->user_page_setup);
-#line 871 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->user_page_setup = _tmp17_;
-#line 6359 "Printing.c"
- }
- }
- goto __finally478;
- __catch478_g_error:
- {
- GError* e = NULL;
- GError* _tmp18_;
- const gchar* _tmp19_;
- gchar* _tmp20_;
-#line 867 "/home/jens/Source/shotwell/src/Printing.vala"
- e = _inner_error_;
-#line 867 "/home/jens/Source/shotwell/src/Printing.vala"
- _inner_error_ = NULL;
-#line 873 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_cancel (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation));
-#line 874 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = e;
-#line 874 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = _tmp18_->message;
-#line 874 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = g_strdup (_tmp19_);
-#line 874 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (err_msg);
-#line 874 "/home/jens/Source/shotwell/src/Printing.vala"
- err_msg = _tmp20_;
-#line 867 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_error_free0 (e);
-#line 6387 "Printing.c"
- }
- __finally478:
-#line 867 "/home/jens/Source/shotwell/src/Printing.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 867 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (err_msg);
-#line 867 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (job);
-#line 867 "/home/jens/Source/shotwell/src/Printing.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 867 "/home/jens/Source/shotwell/src/Printing.vala"
- g_clear_error (&_inner_error_);
-#line 867 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 6402 "Printing.c"
- }
-#line 877 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = self->priv->progress_dialog;
-#line 877 "/home/jens/Source/shotwell/src/Printing.vala"
- progress_dialog_close (_tmp21_);
-#line 878 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->progress_dialog);
-#line 878 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->progress_dialog = NULL;
-#line 879 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 879 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->cancellable = NULL;
-#line 881 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = app_window_get_instance ();
-#line 881 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = _tmp22_;
-#line 881 "/home/jens/Source/shotwell/src/Printing.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PAGE_WINDOW, PageWindow));
-#line 881 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp23_);
-#line 883 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = err_msg;
-#line 883 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp24_ != NULL) {
-#line 6428 "Printing.c"
- const gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
-#line 884 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = err_msg;
-#line 884 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26_ = g_strdup_printf (_ ("Unable to print photo:\n\n%s"), _tmp25_);
-#line 884 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp27_ = _tmp26_;
-#line 884 "/home/jens/Source/shotwell/src/Printing.vala"
- app_window_error_message (_tmp27_, NULL);
-#line 884 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp27_);
-#line 6442 "Printing.c"
- }
-#line 849 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (err_msg);
-#line 849 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (job);
-#line 6448 "Printing.c"
-}
-
-
-static void
-print_manager_on_begin_print (PrintManager* self,
- GtkPrintOperation* emitting_object,
- GtkPrintContext* job_context)
-{
- PrintJob* job = NULL;
- PrintJob* _tmp0_;
- gboolean _tmp1_ = FALSE;
- GCancellable* _tmp2_;
- GeeList* photos = NULL;
- PrintJob* _tmp5_;
- GeeList* _tmp6_;
- PrintJob* _tmp7_;
- PrintSettings* _tmp8_;
- PrintSettings* _tmp9_;
- gboolean _tmp10_;
-#line 887 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_MANAGER (self));
-#line 887 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_PRINT_OPERATION (emitting_object));
-#line 887 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_PRINT_CONTEXT (job_context));
-#line 888 "/home/jens/Source/shotwell/src/Printing.vala"
- g_debug ("Printing.vala:888: on_begin_print");
-#line 890 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (emitting_object, TYPE_PRINT_JOB, PrintJob));
-#line 890 "/home/jens/Source/shotwell/src/Printing.vala"
- job = _tmp0_;
-#line 893 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->cancellable;
-#line 893 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp2_ != NULL) {
-#line 6484 "Printing.c"
- GCancellable* _tmp3_;
-#line 893 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = self->priv->cancellable;
-#line 893 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = g_cancellable_is_cancelled (_tmp3_);
-#line 6490 "Printing.c"
- } else {
-#line 893 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = FALSE;
-#line 6494 "Printing.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_) {
-#line 6498 "Printing.c"
- PrintJob* _tmp4_;
-#line 894 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = job;
-#line 894 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_print_operation_get_type (), GtkPrintOperation));
-#line 896 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (job);
-#line 896 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 6508 "Printing.c"
- }
-#line 899 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = job;
-#line 899 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = print_job_get_photos (_tmp5_);
-#line 899 "/home/jens/Source/shotwell/src/Printing.vala"
- photos = _tmp6_;
-#line 900 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = job;
-#line 900 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = print_job_get_local_settings (_tmp7_);
-#line 900 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = _tmp8_;
-#line 900 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = print_settings_get_content_layout (_tmp9_) == CONTENT_LAYOUT_IMAGE_PER_PAGE;
-#line 900 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp9_);
-#line 900 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp10_) {
-#line 6528 "Printing.c"
- PrintLayout layout = 0;
- PrintJob* _tmp11_;
- PrintSettings* _tmp12_;
- PrintSettings* _tmp13_;
- PrintLayout _tmp14_;
- PrintJob* _tmp15_;
- GeeList* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- PrintLayout _tmp19_;
-#line 901 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = job;
-#line 901 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = print_job_get_local_settings (_tmp11_);
-#line 901 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = _tmp12_;
-#line 901 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = (PrintLayout) print_settings_get_image_per_page_selection (_tmp13_);
-#line 901 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp13_);
-#line 901 "/home/jens/Source/shotwell/src/Printing.vala"
- layout = _tmp14_;
-#line 902 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = job;
-#line 902 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = photos;
-#line 902 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 902 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = _tmp17_;
-#line 902 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = layout;
-#line 902 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_set_n_pages (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_print_operation_get_type (), GtkPrintOperation), (gint) ceil (((gdouble) _tmp18_) / ((gdouble) print_layout_get_per_page (_tmp19_))));
-#line 6563 "Printing.c"
- } else {
- PrintJob* _tmp20_;
- GeeList* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
-#line 904 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = job;
-#line 904 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = photos;
-#line 904 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 904 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = _tmp22_;
-#line 904 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_set_n_pages (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_print_operation_get_type (), GtkPrintOperation), _tmp23_);
-#line 6579 "Printing.c"
- }
-#line 907 "/home/jens/Source/shotwell/src/Printing.vala"
- spin_event_loop ();
-#line 887 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (photos);
-#line 887 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (job);
-#line 6587 "Printing.c"
-}
-
-
-static void
-print_manager_on_status_changed (PrintManager* self,
- GtkPrintOperation* job)
-{
- const gchar* _tmp0_;
- ProgressDialog* _tmp1_;
-#line 910 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_MANAGER (self));
-#line 910 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_PRINT_OPERATION (job));
-#line 911 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = gtk_print_operation_get_status_string (job);
-#line 911 "/home/jens/Source/shotwell/src/Printing.vala"
- g_debug ("Printing.vala:911: on_status_changed: %s", _tmp0_);
-#line 913 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->progress_dialog;
-#line 913 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_ != NULL) {
-#line 6609 "Printing.c"
- ProgressDialog* _tmp2_;
- const gchar* _tmp3_;
-#line 914 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->progress_dialog;
-#line 914 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = gtk_print_operation_get_status_string (job);
-#line 914 "/home/jens/Source/shotwell/src/Printing.vala"
- progress_dialog_set_status (_tmp2_, _tmp3_);
-#line 915 "/home/jens/Source/shotwell/src/Printing.vala"
- spin_event_loop ();
-#line 6620 "Printing.c"
- }
-}
-
-
-static gpointer
-_cairo_reference0 (gpointer self)
-{
-#line 940 "/home/jens/Source/shotwell/src/Printing.vala"
- return self ? cairo_reference (self) : NULL;
-#line 6630 "Printing.c"
-}
-
-
-static void
-print_manager_on_draw_page (PrintManager* self,
- GtkPrintOperation* emitting_object,
- GtkPrintContext* job_context,
- gint page_num)
-{
- PrintJob* job = NULL;
- PrintJob* _tmp0_;
- gboolean _tmp1_ = FALSE;
- GCancellable* _tmp2_;
- GtkPageSetup* page_setup = NULL;
- GtkPageSetup* _tmp5_;
- GtkPageSetup* _tmp6_;
- gdouble page_width = 0.0;
- GtkPageSetup* _tmp7_;
- gdouble page_height = 0.0;
- GtkPageSetup* _tmp8_;
- gdouble dpi = 0.0;
- PrintJob* _tmp9_;
- PrintSettings* _tmp10_;
- PrintSettings* _tmp11_;
- gdouble _tmp12_;
- gdouble inv_dpi = 0.0;
- gdouble _tmp13_;
- cairo_t* dc = NULL;
- cairo_t* _tmp14_;
- cairo_t* _tmp15_;
- cairo_t* _tmp16_;
- gdouble _tmp17_;
- gdouble _tmp18_;
- GeeList* photos = NULL;
- PrintJob* _tmp19_;
- GeeList* _tmp20_;
- ContentLayout content_layout = 0;
- PrintJob* _tmp21_;
- PrintSettings* _tmp22_;
- PrintSettings* _tmp23_;
- ContentLayout _tmp24_;
- ContentLayout _tmp25_;
-#line 919 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_MANAGER (self));
-#line 919 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_PRINT_OPERATION (emitting_object));
-#line 919 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_PRINT_CONTEXT (job_context));
-#line 921 "/home/jens/Source/shotwell/src/Printing.vala"
- g_debug ("Printing.vala:921: on_draw_page");
-#line 923 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (emitting_object, TYPE_PRINT_JOB, PrintJob));
-#line 923 "/home/jens/Source/shotwell/src/Printing.vala"
- job = _tmp0_;
-#line 926 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = self->priv->cancellable;
-#line 926 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp2_ != NULL) {
-#line 6689 "Printing.c"
- GCancellable* _tmp3_;
-#line 926 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = self->priv->cancellable;
-#line 926 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = g_cancellable_is_cancelled (_tmp3_);
-#line 6695 "Printing.c"
- } else {
-#line 926 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = FALSE;
-#line 6699 "Printing.c"
- }
-#line 926 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp1_) {
-#line 6703 "Printing.c"
- PrintJob* _tmp4_;
-#line 927 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = job;
-#line 927 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_print_operation_get_type (), GtkPrintOperation));
-#line 929 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (job);
-#line 929 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 6713 "Printing.c"
- }
-#line 932 "/home/jens/Source/shotwell/src/Printing.vala"
- spin_event_loop ();
-#line 934 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = gtk_print_context_get_page_setup (job_context);
-#line 934 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
-#line 934 "/home/jens/Source/shotwell/src/Printing.vala"
- page_setup = _tmp6_;
-#line 935 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = page_setup;
-#line 935 "/home/jens/Source/shotwell/src/Printing.vala"
- page_width = gtk_page_setup_get_page_width (_tmp7_, GTK_UNIT_INCH);
-#line 936 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = page_setup;
-#line 936 "/home/jens/Source/shotwell/src/Printing.vala"
- page_height = gtk_page_setup_get_page_height (_tmp8_, GTK_UNIT_INCH);
-#line 938 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = job;
-#line 938 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = print_job_get_local_settings (_tmp9_);
-#line 938 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = _tmp10_;
-#line 938 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = (gdouble) print_settings_get_content_ppi (_tmp11_);
-#line 938 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp11_);
-#line 938 "/home/jens/Source/shotwell/src/Printing.vala"
- dpi = _tmp12_;
-#line 939 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = dpi;
-#line 939 "/home/jens/Source/shotwell/src/Printing.vala"
- inv_dpi = 1.0 / _tmp13_;
-#line 940 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = gtk_print_context_get_cairo_context (job_context);
-#line 940 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = _cairo_reference0 (_tmp14_);
-#line 940 "/home/jens/Source/shotwell/src/Printing.vala"
- dc = _tmp15_;
-#line 941 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = dc;
-#line 941 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = inv_dpi;
-#line 941 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = inv_dpi;
-#line 941 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_scale (_tmp16_, _tmp17_, _tmp18_);
-#line 942 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = job;
-#line 942 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = print_job_get_photos (_tmp19_);
-#line 942 "/home/jens/Source/shotwell/src/Printing.vala"
- photos = _tmp20_;
-#line 944 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = job;
-#line 944 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = print_job_get_local_settings (_tmp21_);
-#line 944 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = _tmp22_;
-#line 944 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = print_settings_get_content_layout (_tmp23_);
-#line 944 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp23_);
-#line 944 "/home/jens/Source/shotwell/src/Printing.vala"
- content_layout = _tmp24_;
-#line 945 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = content_layout;
-#line 945 "/home/jens/Source/shotwell/src/Printing.vala"
- switch (_tmp25_) {
-#line 945 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_STANDARD_SIZE:
-#line 945 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_CUSTOM_SIZE:
-#line 6787 "Printing.c"
- {
- gdouble canvas_width = 0.0;
- gdouble canvas_height = 0.0;
- ContentLayout _tmp26_;
- GeeList* _tmp56_;
- gint _tmp57_;
- gint _tmp58_;
- ProgressDialog* _tmp95_;
-#line 949 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26_ = content_layout;
-#line 949 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp26_ == CONTENT_LAYOUT_STANDARD_SIZE) {
-#line 6800 "Printing.c"
- gint _tmp27_;
- StandardPrintSize** _tmp28_;
- PrintJob* _tmp29_;
- PrintSettings* _tmp30_;
- PrintSettings* _tmp31_;
- StandardPrintSize* _tmp32_;
- Measurement _tmp33_ = {0};
- gdouble _tmp34_;
- gint _tmp35_;
- StandardPrintSize** _tmp36_;
- PrintJob* _tmp37_;
- PrintSettings* _tmp38_;
- PrintSettings* _tmp39_;
- StandardPrintSize* _tmp40_;
- Measurement _tmp41_ = {0};
- gdouble _tmp42_;
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp28_ = print_manager_get_standard_sizes (self, &_tmp27_);
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp29_ = job;
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30_ = print_job_get_local_settings (_tmp29_);
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp31_ = _tmp30_;
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp32_ = _tmp28_[print_settings_get_size_selection (_tmp31_)];
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (&_tmp32_->width, MEASUREMENT_UNIT_INCHES, &_tmp33_);
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp34_ = _tmp33_.value;
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_width = _tmp34_;
-#line 950 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp31_);
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp36_ = print_manager_get_standard_sizes (self, &_tmp35_);
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp37_ = job;
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp38_ = print_job_get_local_settings (_tmp37_);
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp39_ = _tmp38_;
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp40_ = _tmp36_[print_settings_get_size_selection (_tmp39_)];
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (&_tmp40_->height, MEASUREMENT_UNIT_INCHES, &_tmp41_);
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp42_ = _tmp41_.value;
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_height = _tmp42_;
-#line 952 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp39_);
-#line 6853 "Printing.c"
- } else {
- ContentLayout _tmp43_;
- PrintJob* _tmp44_;
- PrintSettings* _tmp45_;
- PrintSettings* _tmp46_;
- Measurement _tmp47_ = {0};
- Measurement _tmp48_ = {0};
- gdouble _tmp49_;
- PrintJob* _tmp50_;
- PrintSettings* _tmp51_;
- PrintSettings* _tmp52_;
- Measurement _tmp53_ = {0};
- Measurement _tmp54_ = {0};
- gdouble _tmp55_;
-#line 955 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp43_ = content_layout;
-#line 955 "/home/jens/Source/shotwell/src/Printing.vala"
- _vala_assert (_tmp43_ == CONTENT_LAYOUT_CUSTOM_SIZE, "content_layout == ContentLayout.CUSTOM_SIZE");
-#line 956 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp44_ = job;
-#line 956 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp45_ = print_job_get_local_settings (_tmp44_);
-#line 956 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp46_ = _tmp45_;
-#line 956 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_content_width (_tmp46_, &_tmp47_);
-#line 956 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (&_tmp47_, MEASUREMENT_UNIT_INCHES, &_tmp48_);
-#line 956 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp49_ = _tmp48_.value;
-#line 956 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_width = _tmp49_;
-#line 956 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp46_);
-#line 958 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp50_ = job;
-#line 958 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp51_ = print_job_get_local_settings (_tmp50_);
-#line 958 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp52_ = _tmp51_;
-#line 958 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_get_content_height (_tmp52_, &_tmp53_);
-#line 958 "/home/jens/Source/shotwell/src/Printing.vala"
- measurement_convert_to (&_tmp53_, MEASUREMENT_UNIT_INCHES, &_tmp54_);
-#line 958 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp55_ = _tmp54_.value;
-#line 958 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_height = _tmp55_;
-#line 958 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp52_);
-#line 6904 "Printing.c"
- }
-#line 962 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp56_ = photos;
-#line 962 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp57_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 962 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp58_ = _tmp57_;
-#line 962 "/home/jens/Source/shotwell/src/Printing.vala"
- if (page_num < _tmp58_) {
-#line 6914 "Printing.c"
- Dimensions photo_dimensions = {0};
- GeeList* _tmp59_;
- gpointer _tmp60_;
- Photo* _tmp61_;
- Dimensions _tmp62_ = {0};
- Dimensions _tmp63_;
- gdouble photo_aspect_ratio = 0.0;
- gdouble canvas_aspect_ratio = 0.0;
- gdouble _tmp64_;
- gdouble _tmp65_;
- gdouble _tmp66_;
- gdouble _tmp67_;
- gdouble dx = 0.0;
- gdouble _tmp71_;
- gdouble _tmp72_;
- gdouble dy = 0.0;
- gdouble _tmp73_;
- gdouble _tmp74_;
- GeeList* _tmp75_;
- gpointer _tmp76_;
- Photo* _tmp77_;
- gdouble _tmp78_;
- gdouble _tmp79_;
- gdouble _tmp80_;
- gdouble _tmp81_;
- PrintJob* _tmp82_;
- PrintJob* _tmp83_;
- PrintSettings* _tmp84_;
- PrintSettings* _tmp85_;
- gboolean _tmp86_;
-#line 963 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp59_ = photos;
-#line 963 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp60_ = gee_list_get (_tmp59_, page_num);
-#line 963 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp61_ = (Photo*) _tmp60_;
-#line 963 "/home/jens/Source/shotwell/src/Printing.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp62_);
-#line 963 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp63_ = _tmp62_;
-#line 963 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp61_);
-#line 963 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_dimensions = _tmp63_;
-#line 964 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_aspect_ratio = dimensions_get_aspect_ratio (&photo_dimensions);
-#line 965 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp64_ = canvas_width;
-#line 965 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp65_ = canvas_height;
-#line 965 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_aspect_ratio = ((gdouble) _tmp64_) / _tmp65_;
-#line 966 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp66_ = canvas_aspect_ratio;
-#line 966 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp67_ = photo_aspect_ratio;
-#line 966 "/home/jens/Source/shotwell/src/Printing.vala"
- if (floor (_tmp66_) != floor (_tmp67_)) {
-#line 6973 "Printing.c"
- gdouble canvas_tmp = 0.0;
- gdouble _tmp68_;
- gdouble _tmp69_;
- gdouble _tmp70_;
-#line 967 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp68_ = canvas_width;
-#line 967 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_tmp = _tmp68_;
-#line 968 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp69_ = canvas_height;
-#line 968 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_width = _tmp69_;
-#line 969 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp70_ = canvas_tmp;
-#line 969 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_height = _tmp70_;
-#line 6990 "Printing.c"
- }
-#line 972 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp71_ = page_width;
-#line 972 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp72_ = canvas_width;
-#line 972 "/home/jens/Source/shotwell/src/Printing.vala"
- dx = (_tmp71_ - _tmp72_) / 2.0;
-#line 973 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp73_ = page_height;
-#line 973 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp74_ = canvas_height;
-#line 973 "/home/jens/Source/shotwell/src/Printing.vala"
- dy = (_tmp73_ - _tmp74_) / 2.0;
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp75_ = photos;
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp76_ = gee_list_get (_tmp75_, page_num);
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp77_ = (Photo*) _tmp76_;
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp78_ = dx;
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp79_ = dy;
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp80_ = canvas_width;
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp81_ = canvas_height;
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp82_ = job;
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_fit_image_to_canvas (self, _tmp77_, _tmp78_, _tmp79_, _tmp80_, _tmp81_, TRUE, _tmp82_, job_context);
-#line 974 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp77_);
-#line 976 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp83_ = job;
-#line 976 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp84_ = print_job_get_local_settings (_tmp83_);
-#line 976 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp85_ = _tmp84_;
-#line 976 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp86_ = print_settings_is_print_titles_enabled (_tmp85_);
-#line 976 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp85_);
-#line 976 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp86_) {
-#line 7036 "Printing.c"
- gdouble _tmp87_;
- gdouble _tmp88_;
- GeeList* _tmp89_;
- gpointer _tmp90_;
- Photo* _tmp91_;
- gchar* _tmp92_;
- gchar* _tmp93_;
- PrintJob* _tmp94_;
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp87_ = page_width;
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp88_ = page_height;
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp89_ = photos;
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp90_ = gee_list_get (_tmp89_, page_num);
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp91_ = (Photo*) _tmp90_;
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp92_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, TYPE_DATA_OBJECT, DataObject));
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp93_ = _tmp92_;
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp94_ = job;
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_add_title_to_canvas (self, _tmp87_ / 2, _tmp88_, _tmp93_, _tmp94_, job_context);
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp93_);
-#line 977 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp91_);
-#line 7067 "Printing.c"
- }
- }
-#line 982 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp95_ = self->priv->progress_dialog;
-#line 982 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp95_ != NULL) {
-#line 7074 "Printing.c"
- ProgressDialog* _tmp96_;
- GeeList* _tmp97_;
- gint _tmp98_;
- gint _tmp99_;
-#line 983 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp96_ = self->priv->progress_dialog;
-#line 983 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp97_ = photos;
-#line 983 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp98_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 983 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp99_ = _tmp98_;
-#line 983 "/home/jens/Source/shotwell/src/Printing.vala"
- progress_dialog_monitor (_tmp96_, (guint64) page_num, (guint64) _tmp99_, TRUE);
-#line 7089 "Printing.c"
- }
-#line 984 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 7093 "Printing.c"
- }
-#line 945 "/home/jens/Source/shotwell/src/Printing.vala"
- case CONTENT_LAYOUT_IMAGE_PER_PAGE:
-#line 7097 "Printing.c"
- {
- PrintLayout layout = 0;
- PrintJob* _tmp100_;
- PrintSettings* _tmp101_;
- PrintSettings* _tmp102_;
- PrintLayout _tmp103_;
- gint nx = 0;
- PrintLayout _tmp104_;
- gint ny = 0;
- PrintLayout _tmp105_;
- gint start = 0;
- PrintLayout _tmp106_;
- gdouble canvas_width = 0.0;
- gdouble _tmp107_;
- gint _tmp108_;
- gint _tmp109_;
- gdouble canvas_height = 0.0;
- gdouble _tmp110_;
- gint _tmp111_;
- gint _tmp112_;
-#line 987 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp100_ = job;
-#line 987 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp101_ = print_job_get_local_settings (_tmp100_);
-#line 987 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp102_ = _tmp101_;
-#line 987 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp103_ = (PrintLayout) print_settings_get_image_per_page_selection (_tmp102_);
-#line 987 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp102_);
-#line 987 "/home/jens/Source/shotwell/src/Printing.vala"
- layout = _tmp103_;
-#line 988 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp104_ = layout;
-#line 988 "/home/jens/Source/shotwell/src/Printing.vala"
- nx = print_layout_get_x (_tmp104_);
-#line 989 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp105_ = layout;
-#line 989 "/home/jens/Source/shotwell/src/Printing.vala"
- ny = print_layout_get_y (_tmp105_);
-#line 990 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp106_ = layout;
-#line 990 "/home/jens/Source/shotwell/src/Printing.vala"
- start = page_num * print_layout_get_per_page (_tmp106_);
-#line 991 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp107_ = page_width;
-#line 991 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp108_ = nx;
-#line 991 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp109_ = nx;
-#line 991 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_width = ((gdouble) (_tmp107_ - (PRINT_MANAGER_IMAGE_DISTANCE * (_tmp108_ - 1)))) / _tmp109_;
-#line 992 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp110_ = page_height;
-#line 992 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp111_ = ny;
-#line 992 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp112_ = ny;
-#line 992 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_height = ((gdouble) (_tmp110_ - (PRINT_MANAGER_IMAGE_DISTANCE * (_tmp111_ - 1)))) / _tmp112_;
-#line 7158 "Printing.c"
- {
- gint y = 0;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- y = 0;
-#line 7163 "Printing.c"
- {
- gboolean _tmp113_ = FALSE;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp113_ = TRUE;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- while (TRUE) {
-#line 7170 "Printing.c"
- gint _tmp115_;
- gint _tmp116_;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!_tmp113_) {
-#line 7175 "Printing.c"
- gint _tmp114_;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp114_ = y;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- y = _tmp114_ + 1;
-#line 7181 "Printing.c"
- }
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp113_ = FALSE;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp115_ = y;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp116_ = ny;
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!(_tmp115_ < _tmp116_)) {
-#line 993 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 7193 "Printing.c"
- }
- {
- gint x = 0;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- x = 0;
-#line 7199 "Printing.c"
- {
- gboolean _tmp117_ = FALSE;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp117_ = TRUE;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- while (TRUE) {
-#line 7206 "Printing.c"
- gint _tmp119_;
- gint _tmp120_;
- gint i = 0;
- gint _tmp121_;
- gint _tmp122_;
- gint _tmp123_;
- gint _tmp124_;
- gint _tmp125_;
- GeeList* _tmp126_;
- gint _tmp127_;
- gint _tmp128_;
- ProgressDialog* _tmp159_;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!_tmp117_) {
-#line 7221 "Printing.c"
- gint _tmp118_;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp118_ = x;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- x = _tmp118_ + 1;
-#line 7227 "Printing.c"
- }
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp117_ = FALSE;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp119_ = x;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp120_ = nx;
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!(_tmp119_ < _tmp120_)) {
-#line 994 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 7239 "Printing.c"
- }
-#line 995 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp121_ = start;
-#line 995 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp122_ = y;
-#line 995 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp123_ = nx;
-#line 995 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp124_ = x;
-#line 995 "/home/jens/Source/shotwell/src/Printing.vala"
- i = (_tmp121_ + (_tmp122_ * _tmp123_)) + _tmp124_;
-#line 996 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp125_ = i;
-#line 996 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp126_ = photos;
-#line 996 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp127_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp126_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 996 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp128_ = _tmp127_;
-#line 996 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp125_ < _tmp128_) {
-#line 7261 "Printing.c"
- gdouble dx = 0.0;
- gint _tmp129_;
- gdouble _tmp130_;
- gint _tmp131_;
- gdouble dy = 0.0;
- gint _tmp132_;
- gdouble _tmp133_;
- gint _tmp134_;
- GeeList* _tmp135_;
- gint _tmp136_;
- gpointer _tmp137_;
- Photo* _tmp138_;
- gdouble _tmp139_;
- gdouble _tmp140_;
- gdouble _tmp141_;
- gdouble _tmp142_;
- PrintJob* _tmp143_;
- PrintJob* _tmp144_;
- PrintSettings* _tmp145_;
- PrintSettings* _tmp146_;
- gboolean _tmp147_;
-#line 997 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp129_ = x;
-#line 997 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp130_ = canvas_width;
-#line 997 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp131_ = x;
-#line 997 "/home/jens/Source/shotwell/src/Printing.vala"
- dx = (_tmp129_ * _tmp130_) + (_tmp131_ * PRINT_MANAGER_IMAGE_DISTANCE);
-#line 998 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp132_ = y;
-#line 998 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp133_ = canvas_height;
-#line 998 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp134_ = y;
-#line 998 "/home/jens/Source/shotwell/src/Printing.vala"
- dy = (_tmp132_ * _tmp133_) + (_tmp134_ * PRINT_MANAGER_IMAGE_DISTANCE);
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp135_ = photos;
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp136_ = i;
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp137_ = gee_list_get (_tmp135_, _tmp136_);
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp138_ = (Photo*) _tmp137_;
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp139_ = dx;
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp140_ = dy;
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp141_ = canvas_width;
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp142_ = canvas_height;
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp143_ = job;
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_fit_image_to_canvas (self, _tmp138_, _tmp139_, _tmp140_, _tmp141_, _tmp142_, FALSE, _tmp143_, job_context);
-#line 999 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp138_);
-#line 1001 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp144_ = job;
-#line 1001 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp145_ = print_job_get_local_settings (_tmp144_);
-#line 1001 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp146_ = _tmp145_;
-#line 1001 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp147_ = print_settings_is_print_titles_enabled (_tmp146_);
-#line 1001 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp146_);
-#line 1001 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp147_) {
-#line 7333 "Printing.c"
- gdouble _tmp148_;
- gdouble _tmp149_;
- gdouble _tmp150_;
- gdouble _tmp151_;
- GeeList* _tmp152_;
- gint _tmp153_;
- gpointer _tmp154_;
- Photo* _tmp155_;
- gchar* _tmp156_;
- gchar* _tmp157_;
- PrintJob* _tmp158_;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp148_ = dx;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp149_ = canvas_width;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp150_ = dy;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp151_ = canvas_height;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp152_ = photos;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp153_ = i;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp154_ = gee_list_get (_tmp152_, _tmp153_);
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp155_ = (Photo*) _tmp154_;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp156_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp155_, TYPE_DATA_OBJECT, DataObject));
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp157_ = _tmp156_;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp158_ = job;
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_add_title_to_canvas (self, _tmp148_ + (_tmp149_ / 2), _tmp150_ + _tmp151_, _tmp157_, _tmp158_, job_context);
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp157_);
-#line 1002 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp155_);
-#line 7373 "Printing.c"
- }
- }
-#line 1007 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp159_ = self->priv->progress_dialog;
-#line 1007 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp159_ != NULL) {
-#line 7380 "Printing.c"
- ProgressDialog* _tmp160_;
- gint _tmp161_;
- GeeList* _tmp162_;
- gint _tmp163_;
- gint _tmp164_;
-#line 1008 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp160_ = self->priv->progress_dialog;
-#line 1008 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp161_ = i;
-#line 1008 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp162_ = photos;
-#line 1008 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp163_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp162_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1008 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp164_ = _tmp163_;
-#line 1008 "/home/jens/Source/shotwell/src/Printing.vala"
- progress_dialog_monitor (_tmp160_, (guint64) _tmp161_, (guint64) _tmp164_, TRUE);
-#line 7398 "Printing.c"
- }
- }
- }
- }
- }
- }
- }
-#line 1011 "/home/jens/Source/shotwell/src/Printing.vala"
- break;
-#line 7408 "Printing.c"
- }
- default:
- {
-#line 1014 "/home/jens/Source/shotwell/src/Printing.vala"
- g_error ("Printing.vala:1014: unknown or unsupported layout mode");
-#line 7414 "Printing.c"
- }
- }
-#line 919 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (photos);
-#line 919 "/home/jens/Source/shotwell/src/Printing.vala"
- _cairo_destroy0 (dc);
-#line 919 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (page_setup);
-#line 919 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (job);
-#line 7425 "Printing.c"
-}
-
-
-static void
-_print_manager_on_custom_widget_apply_gtk_print_operation_custom_widget_apply (GtkPrintOperation* _sender,
- GtkWidget* widget,
- gpointer self)
-{
-#line 1020 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_on_custom_widget_apply ((PrintManager*) self, widget);
-#line 7436 "Printing.c"
-}
-
-
-static GObject*
-print_manager_on_create_custom_widget (PrintManager* self,
- GtkPrintOperation* emitting_object)
-{
- GObject* result = NULL;
- CustomPrintTab* _tmp0_;
- CustomPrintTab* _tmp1_;
-#line 1018 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_MANAGER (self), NULL);
-#line 1018 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (GTK_IS_PRINT_OPERATION (emitting_object), NULL);
-#line 1019 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = custom_print_tab_new (G_TYPE_CHECK_INSTANCE_CAST (emitting_object, TYPE_PRINT_JOB, PrintJob));
-#line 1019 "/home/jens/Source/shotwell/src/Printing.vala"
- g_object_ref_sink (_tmp0_);
-#line 1019 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->custom_tab);
-#line 1019 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->custom_tab = _tmp0_;
-#line 1020 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (emitting_object, TYPE_PRINT_JOB, PrintJob), gtk_print_operation_get_type (), GtkPrintOperation), "custom-widget-apply", (GCallback) _print_manager_on_custom_widget_apply_gtk_print_operation_custom_widget_apply, self);
-#line 1021 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = self->priv->custom_tab;
-#line 1021 "/home/jens/Source/shotwell/src/Printing.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject);
-#line 1021 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 7467 "Printing.c"
-}
-
-
-static void
-print_manager_on_custom_widget_apply (PrintManager* self,
- GtkWidget* custom_widget)
-{
- CustomPrintTab* tab = NULL;
- CustomPrintTab* _tmp0_;
- PrintJob* _tmp1_;
- PrintJob* _tmp2_;
- PrintSettings* _tmp3_;
- PrintSettings* _tmp4_;
- PrintSettings* _tmp5_;
- PrintSettings* _tmp6_;
-#line 1024 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_MANAGER (self));
-#line 1024 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_WIDGET (custom_widget));
-#line 1025 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (custom_widget, TYPE_CUSTOM_PRINT_TAB, CustomPrintTab));
-#line 1025 "/home/jens/Source/shotwell/src/Printing.vala"
- tab = _tmp0_;
-#line 1026 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = custom_print_tab_get_source_job (tab);
-#line 1026 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = _tmp1_;
-#line 1026 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = custom_print_tab_get_local_settings (tab);
-#line 1026 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_;
-#line 1026 "/home/jens/Source/shotwell/src/Printing.vala"
- print_job_set_local_settings (_tmp2_, _tmp4_);
-#line 1026 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp4_);
-#line 1026 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (_tmp2_);
-#line 1027 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = custom_print_tab_get_local_settings (tab);
-#line 1027 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = _tmp5_;
-#line 1027 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_set_global_settings (self, _tmp6_);
-#line 1027 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp6_);
-#line 1024 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (tab);
-#line 7515 "Printing.c"
-}
-
-
-static void
-print_manager_fit_image_to_canvas (PrintManager* self,
- Photo* photo,
- gdouble x,
- gdouble y,
- gdouble canvas_width,
- gdouble canvas_height,
- gboolean crop,
- PrintJob* job,
- GtkPrintContext* job_context)
-{
- cairo_t* dc = NULL;
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- Dimensions photo_dimensions = {0};
- Dimensions _tmp2_ = {0};
- gdouble photo_aspect_ratio = 0.0;
- gdouble canvas_aspect_ratio = 0.0;
- gdouble target_width = 0.0;
- gdouble target_height = 0.0;
- gdouble dpi = 0.0;
- PrintSettings* _tmp3_;
- PrintSettings* _tmp4_;
- gdouble _tmp5_;
- gdouble x_offset = 0.0;
- gdouble _tmp14_;
- gdouble y_offset = 0.0;
- gdouble _tmp15_;
- cairo_t* _tmp16_;
- cairo_t* _tmp17_;
- gdouble _tmp18_;
- gdouble _tmp19_;
- gint w = 0;
- gdouble _tmp20_;
- gint h = 0;
- gdouble _tmp21_;
- Dimensions viewport = {0};
- gint _tmp22_;
- gint _tmp23_;
- cairo_t* _tmp72_;
- GError * _inner_error_ = NULL;
-#line 1030 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_MANAGER (self));
-#line 1030 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 1030 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_JOB (job));
-#line 1030 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_PRINT_CONTEXT (job_context));
-#line 1031 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = gtk_print_context_get_cairo_context (job_context);
-#line 1031 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _cairo_reference0 (_tmp0_);
-#line 1031 "/home/jens/Source/shotwell/src/Printing.vala"
- dc = _tmp1_;
-#line 1032 "/home/jens/Source/shotwell/src/Printing.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp2_);
-#line 1032 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_dimensions = _tmp2_;
-#line 1033 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_aspect_ratio = dimensions_get_aspect_ratio (&photo_dimensions);
-#line 1034 "/home/jens/Source/shotwell/src/Printing.vala"
- canvas_aspect_ratio = ((gdouble) canvas_width) / canvas_height;
-#line 1036 "/home/jens/Source/shotwell/src/Printing.vala"
- target_width = 0.0;
-#line 1037 "/home/jens/Source/shotwell/src/Printing.vala"
- target_height = 0.0;
-#line 1038 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = print_job_get_local_settings (job);
-#line 1038 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = _tmp3_;
-#line 1038 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = (gdouble) print_settings_get_content_ppi (_tmp4_);
-#line 1038 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp4_);
-#line 1038 "/home/jens/Source/shotwell/src/Printing.vala"
- dpi = _tmp5_;
-#line 1040 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!crop) {
-#line 7598 "Printing.c"
- gdouble _tmp6_;
- gdouble _tmp7_;
- gdouble _tmp12_;
- gdouble _tmp13_;
-#line 1041 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = canvas_aspect_ratio;
-#line 1041 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = photo_aspect_ratio;
-#line 1041 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp6_ < _tmp7_) {
-#line 7609 "Printing.c"
- gdouble _tmp8_;
- gdouble _tmp9_;
-#line 1042 "/home/jens/Source/shotwell/src/Printing.vala"
- target_width = canvas_width;
-#line 1043 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = target_width;
-#line 1043 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = photo_aspect_ratio;
-#line 1043 "/home/jens/Source/shotwell/src/Printing.vala"
- target_height = _tmp8_ * (1.0 / _tmp9_);
-#line 7620 "Printing.c"
- } else {
- gdouble _tmp10_;
- gdouble _tmp11_;
-#line 1045 "/home/jens/Source/shotwell/src/Printing.vala"
- target_height = canvas_height;
-#line 1046 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = target_height;
-#line 1046 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = photo_aspect_ratio;
-#line 1046 "/home/jens/Source/shotwell/src/Printing.vala"
- target_width = _tmp10_ * _tmp11_;
-#line 7632 "Printing.c"
- }
-#line 1048 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = target_width;
-#line 1048 "/home/jens/Source/shotwell/src/Printing.vala"
- x = x + ((canvas_width - _tmp12_) / 2.0);
-#line 1049 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = target_height;
-#line 1049 "/home/jens/Source/shotwell/src/Printing.vala"
- y = y + ((canvas_height - _tmp13_) / 2.0);
-#line 7642 "Printing.c"
- }
-#line 1052 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp14_ = dpi;
-#line 1052 "/home/jens/Source/shotwell/src/Printing.vala"
- x_offset = _tmp14_ * x;
-#line 1053 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp15_ = dpi;
-#line 1053 "/home/jens/Source/shotwell/src/Printing.vala"
- y_offset = _tmp15_ * y;
-#line 1054 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp16_ = dc;
-#line 1054 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_save (_tmp16_);
-#line 1055 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp17_ = dc;
-#line 1055 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp18_ = x_offset;
-#line 1055 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp19_ = y_offset;
-#line 1055 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_translate (_tmp17_, _tmp18_, _tmp19_);
-#line 1057 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp20_ = dpi;
-#line 1057 "/home/jens/Source/shotwell/src/Printing.vala"
- w = (gint) (_tmp20_ * canvas_width);
-#line 1058 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp21_ = dpi;
-#line 1058 "/home/jens/Source/shotwell/src/Printing.vala"
- h = (gint) (_tmp21_ * canvas_height);
-#line 1059 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp22_ = w;
-#line 1059 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp23_ = h;
-#line 1059 "/home/jens/Source/shotwell/src/Printing.vala"
- dimensions_init (&viewport, _tmp22_, _tmp23_);
-#line 7678 "Printing.c"
- {
- gboolean _tmp24_ = FALSE;
- cairo_t* _tmp67_;
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- if (crop) {
-#line 7684 "Printing.c"
- gdouble _tmp25_;
- gdouble _tmp26_;
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp25_ = canvas_aspect_ratio;
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp26_ = photo_aspect_ratio;
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = !print_manager_are_approximately_equal (self, _tmp25_, _tmp26_);
-#line 7693 "Printing.c"
- } else {
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp24_ = FALSE;
-#line 7697 "Printing.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp24_) {
-#line 7701 "Printing.c"
- Scaling pixbuf_scaling = {0};
- Dimensions _tmp27_;
- Scaling _tmp28_ = {0};
- GdkPixbuf* photo_pixbuf = NULL;
- Scaling _tmp29_;
- GdkPixbuf* _tmp30_;
- Dimensions scaled_photo_dimensions = {0};
- GdkPixbuf* _tmp31_;
- Dimensions _tmp32_ = {0};
- gint shave_vertical = 0;
- gint shave_horizontal = 0;
- gdouble _tmp33_;
- gdouble _tmp34_;
- GdkPixbuf* shaved_pixbuf = NULL;
- GdkPixbuf* _tmp45_;
- gint _tmp46_;
- gint _tmp47_;
- Dimensions _tmp48_;
- gint _tmp49_;
- gint _tmp50_;
- Dimensions _tmp51_;
- gint _tmp52_;
- gint _tmp53_;
- GdkPixbuf* _tmp54_;
- GdkPixbuf* _tmp55_;
- GdkPixbuf* _tmp56_;
- cairo_t* _tmp57_;
- GdkPixbuf* _tmp58_;
-#line 1063 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp27_ = viewport;
-#line 1063 "/home/jens/Source/shotwell/src/Printing.vala"
- scaling_to_fill_viewport (&_tmp27_, &_tmp28_);
-#line 1063 "/home/jens/Source/shotwell/src/Printing.vala"
- pixbuf_scaling = _tmp28_;
-#line 1064 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp29_ = pixbuf_scaling;
-#line 1064 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp30_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp29_, &_inner_error_);
-#line 1064 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_pixbuf = _tmp30_;
-#line 1064 "/home/jens/Source/shotwell/src/Printing.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7744 "Printing.c"
- goto __catch479_g_error;
- }
-#line 1065 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp31_ = photo_pixbuf;
-#line 1065 "/home/jens/Source/shotwell/src/Printing.vala"
- dimensions_for_pixbuf (_tmp31_, &_tmp32_);
-#line 1065 "/home/jens/Source/shotwell/src/Printing.vala"
- scaled_photo_dimensions = _tmp32_;
-#line 1066 "/home/jens/Source/shotwell/src/Printing.vala"
- shave_vertical = 0;
-#line 1067 "/home/jens/Source/shotwell/src/Printing.vala"
- shave_horizontal = 0;
-#line 1068 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp33_ = canvas_aspect_ratio;
-#line 1068 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp34_ = photo_aspect_ratio;
-#line 1068 "/home/jens/Source/shotwell/src/Printing.vala"
- if (_tmp33_ < _tmp34_) {
-#line 7763 "Printing.c"
- Dimensions _tmp35_;
- gint _tmp36_;
- Dimensions _tmp37_;
- gint _tmp38_;
- gdouble _tmp39_;
-#line 1069 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp35_ = scaled_photo_dimensions;
-#line 1069 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp36_ = _tmp35_.width;
-#line 1069 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp37_ = scaled_photo_dimensions;
-#line 1069 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp38_ = _tmp37_.height;
-#line 1069 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp39_ = canvas_aspect_ratio;
-#line 1069 "/home/jens/Source/shotwell/src/Printing.vala"
- shave_vertical = (gint) ((_tmp36_ - (_tmp38_ * _tmp39_)) / 2.0);
-#line 7781 "Printing.c"
- } else {
- Dimensions _tmp40_;
- gint _tmp41_;
- Dimensions _tmp42_;
- gint _tmp43_;
- gdouble _tmp44_;
-#line 1071 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp40_ = scaled_photo_dimensions;
-#line 1071 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp41_ = _tmp40_.height;
-#line 1071 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp42_ = scaled_photo_dimensions;
-#line 1071 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp43_ = _tmp42_.width;
-#line 1071 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp44_ = canvas_aspect_ratio;
-#line 1071 "/home/jens/Source/shotwell/src/Printing.vala"
- shave_horizontal = (gint) ((_tmp41_ - (_tmp43_ * (1.0 / _tmp44_))) / 2.0);
-#line 7800 "Printing.c"
- }
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp45_ = photo_pixbuf;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp46_ = shave_vertical;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp47_ = shave_horizontal;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp48_ = scaled_photo_dimensions;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp49_ = _tmp48_.width;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp50_ = shave_vertical;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp51_ = scaled_photo_dimensions;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp52_ = _tmp51_.height;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp53_ = shave_horizontal;
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp54_ = gdk_pixbuf_new_subpixbuf (_tmp45_, _tmp46_, _tmp47_, _tmp49_ - (2 * _tmp50_), _tmp52_ - (2 * _tmp53_));
-#line 1073 "/home/jens/Source/shotwell/src/Printing.vala"
- shaved_pixbuf = _tmp54_;
-#line 1075 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp55_ = shaved_pixbuf;
-#line 1075 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp56_ = scaling_perform_on_pixbuf (&pixbuf_scaling, _tmp55_, GDK_INTERP_HYPER, TRUE);
-#line 1075 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (photo_pixbuf);
-#line 1075 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_pixbuf = _tmp56_;
-#line 1076 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp57_ = dc;
-#line 1076 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp58_ = photo_pixbuf;
-#line 1076 "/home/jens/Source/shotwell/src/Printing.vala"
- gdk_cairo_set_source_pixbuf (_tmp57_, _tmp58_, 0.0, 0.0);
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (shaved_pixbuf);
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (photo_pixbuf);
-#line 7842 "Printing.c"
- } else {
- Scaling pixbuf_scaling = {0};
- Dimensions _tmp59_;
- Scaling _tmp60_ = {0};
- GdkPixbuf* photo_pixbuf = NULL;
- Scaling _tmp61_;
- GdkPixbuf* _tmp62_;
- GdkPixbuf* _tmp63_;
- GdkPixbuf* _tmp64_;
- cairo_t* _tmp65_;
- GdkPixbuf* _tmp66_;
-#line 1078 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp59_ = viewport;
-#line 1078 "/home/jens/Source/shotwell/src/Printing.vala"
- scaling_for_viewport (&_tmp59_, TRUE, &_tmp60_);
-#line 1078 "/home/jens/Source/shotwell/src/Printing.vala"
- pixbuf_scaling = _tmp60_;
-#line 1079 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp61_ = pixbuf_scaling;
-#line 1079 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp62_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp61_, &_inner_error_);
-#line 1079 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_pixbuf = _tmp62_;
-#line 1079 "/home/jens/Source/shotwell/src/Printing.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7868 "Printing.c"
- goto __catch479_g_error;
- }
-#line 1080 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp63_ = photo_pixbuf;
-#line 1080 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp64_ = scaling_perform_on_pixbuf (&pixbuf_scaling, _tmp63_, GDK_INTERP_HYPER, TRUE);
-#line 1080 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (photo_pixbuf);
-#line 1080 "/home/jens/Source/shotwell/src/Printing.vala"
- photo_pixbuf = _tmp64_;
-#line 1081 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp65_ = dc;
-#line 1081 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp66_ = photo_pixbuf;
-#line 1081 "/home/jens/Source/shotwell/src/Printing.vala"
- gdk_cairo_set_source_pixbuf (_tmp65_, _tmp66_, 0.0, 0.0);
-#line 1062 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (photo_pixbuf);
-#line 7887 "Printing.c"
- }
-#line 1083 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp67_ = dc;
-#line 1083 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_paint (_tmp67_);
-#line 7893 "Printing.c"
- }
- goto __finally479;
- __catch479_g_error:
- {
- GError* e = NULL;
- GError* _tmp68_;
- const gchar* _tmp69_;
- gchar* _tmp70_;
- gchar* _tmp71_;
-#line 1061 "/home/jens/Source/shotwell/src/Printing.vala"
- e = _inner_error_;
-#line 1061 "/home/jens/Source/shotwell/src/Printing.vala"
- _inner_error_ = NULL;
-#line 1086 "/home/jens/Source/shotwell/src/Printing.vala"
- gtk_print_operation_cancel (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation));
-#line 1087 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp68_ = e;
-#line 1087 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp69_ = _tmp68_->message;
-#line 1087 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp70_ = g_strdup_printf (_ ("Unable to print photo:\n\n%s"), _tmp69_);
-#line 1087 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp71_ = _tmp70_;
-#line 1087 "/home/jens/Source/shotwell/src/Printing.vala"
- app_window_error_message (_tmp71_, NULL);
-#line 1087 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp71_);
-#line 1061 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_error_free0 (e);
-#line 7923 "Printing.c"
- }
- __finally479:
-#line 1061 "/home/jens/Source/shotwell/src/Printing.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1061 "/home/jens/Source/shotwell/src/Printing.vala"
- _cairo_destroy0 (dc);
-#line 1061 "/home/jens/Source/shotwell/src/Printing.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 1061 "/home/jens/Source/shotwell/src/Printing.vala"
- g_clear_error (&_inner_error_);
-#line 1061 "/home/jens/Source/shotwell/src/Printing.vala"
- return;
-#line 7936 "Printing.c"
- }
-#line 1089 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp72_ = dc;
-#line 1089 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_restore (_tmp72_);
-#line 1030 "/home/jens/Source/shotwell/src/Printing.vala"
- _cairo_destroy0 (dc);
-#line 7944 "Printing.c"
-}
-
-
-static void
-_vala_PangoFontDescription_free (PangoFontDescription* self)
-{
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- g_boxed_free (pango_font_description_get_type (), self);
-#line 7953 "Printing.c"
-}
-
-
-static void
-print_manager_add_title_to_canvas (PrintManager* self,
- gdouble x,
- gdouble y,
- const gchar* title,
- PrintJob* job,
- GtkPrintContext* job_context)
-{
- cairo_t* dc = NULL;
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- gdouble dpi = 0.0;
- PrintSettings* _tmp2_;
- PrintSettings* _tmp3_;
- gdouble _tmp4_;
- PangoFontDescription* title_font_description = NULL;
- PrintSettings* _tmp5_;
- PrintSettings* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- PangoFontDescription* _tmp9_;
- PangoFontDescription* _tmp10_;
- PangoLayout* title_layout = NULL;
- PangoLayout* _tmp11_;
- PangoContext* context = NULL;
- PangoContext* _tmp12_;
- PangoContext* _tmp13_;
- gint title_width = 0;
- gint title_height = 0;
- gint _tmp14_ = 0;
- gint _tmp15_ = 0;
- gdouble tx = 0.0;
- gdouble ty = 0.0;
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_MANAGER (self));
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (title != NULL);
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_JOB (job));
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (GTK_IS_PRINT_CONTEXT (job_context));
-#line 1093 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = gtk_print_context_get_cairo_context (job_context);
-#line 1093 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _cairo_reference0 (_tmp0_);
-#line 1093 "/home/jens/Source/shotwell/src/Printing.vala"
- dc = _tmp1_;
-#line 1094 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp2_ = print_job_get_local_settings (job);
-#line 1094 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp3_ = _tmp2_;
-#line 1094 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp4_ = (gdouble) print_settings_get_content_ppi (_tmp3_);
-#line 1094 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp3_);
-#line 1094 "/home/jens/Source/shotwell/src/Printing.vala"
- dpi = _tmp4_;
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp5_ = print_job_get_local_settings (job);
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp6_ = _tmp5_;
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp7_ = print_settings_get_print_titles_font (_tmp6_);
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp8_ = _tmp7_;
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp9_ = pango_font_description_from_string (_tmp8_);
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp10_ = _tmp9_;
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_free0 (_tmp8_);
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (_tmp6_);
-#line 1095 "/home/jens/Source/shotwell/src/Printing.vala"
- title_font_description = _tmp10_;
-#line 1096 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp11_ = pango_cairo_create_layout (dc);
-#line 1096 "/home/jens/Source/shotwell/src/Printing.vala"
- title_layout = _tmp11_;
-#line 1097 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp12_ = pango_layout_get_context (title_layout);
-#line 1097 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp13_ = _g_object_ref0 (_tmp12_);
-#line 1097 "/home/jens/Source/shotwell/src/Printing.vala"
- context = _tmp13_;
-#line 1098 "/home/jens/Source/shotwell/src/Printing.vala"
- pango_cairo_context_set_resolution (context, dpi);
-#line 1099 "/home/jens/Source/shotwell/src/Printing.vala"
- pango_layout_set_font_description (title_layout, title_font_description);
-#line 1100 "/home/jens/Source/shotwell/src/Printing.vala"
- pango_layout_set_text (title_layout, title, -1);
-#line 1102 "/home/jens/Source/shotwell/src/Printing.vala"
- pango_layout_get_pixel_size (title_layout, &_tmp14_, &_tmp15_);
-#line 1102 "/home/jens/Source/shotwell/src/Printing.vala"
- title_width = _tmp14_;
-#line 1102 "/home/jens/Source/shotwell/src/Printing.vala"
- title_height = _tmp15_;
-#line 1103 "/home/jens/Source/shotwell/src/Printing.vala"
- tx = (dpi * x) - (title_width / 2);
-#line 1104 "/home/jens/Source/shotwell/src/Printing.vala"
- ty = (dpi * y) - title_height;
-#line 1107 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_rectangle (dc, tx - 10, ty + 2, (gdouble) (title_width + 20), (gdouble) title_height);
-#line 1108 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_set_source_rgba (dc, (gdouble) 1, (gdouble) 1, (gdouble) 1, (gdouble) 1);
-#line 1109 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_set_line_width (dc, (gdouble) 2);
-#line 1110 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_stroke_preserve (dc);
-#line 1111 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_set_source_rgba (dc, (gdouble) 1, (gdouble) 1, (gdouble) 1, 0.5);
-#line 1112 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_fill (dc);
-#line 1113 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_set_source_rgba (dc, (gdouble) 0, (gdouble) 0, (gdouble) 0, (gdouble) 1);
-#line 1115 "/home/jens/Source/shotwell/src/Printing.vala"
- cairo_move_to (dc, tx, ty + 2);
-#line 1116 "/home/jens/Source/shotwell/src/Printing.vala"
- pango_cairo_show_layout (dc, title_layout);
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (context);
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (title_layout);
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- __vala_PangoFontDescription_free0 (title_font_description);
-#line 1092 "/home/jens/Source/shotwell/src/Printing.vala"
- _cairo_destroy0 (dc);
-#line 8084 "Printing.c"
-}
-
-
-static gboolean
-print_manager_are_approximately_equal (PrintManager* self,
- gdouble val1,
- gdouble val2)
-{
- gboolean result = FALSE;
- gdouble accept_err = 0.0;
-#line 1119 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_MANAGER (self), FALSE);
-#line 1120 "/home/jens/Source/shotwell/src/Printing.vala"
- accept_err = 0.005;
-#line 1121 "/home/jens/Source/shotwell/src/Printing.vala"
- result = fabs (val1 - val2) <= accept_err;
-#line 1121 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 8103 "Printing.c"
-}
-
-
-PrintSettings*
-print_manager_get_global_settings (PrintManager* self)
-{
- PrintSettings* result = NULL;
- PrintSettings* _tmp0_;
- PrintSettings* _tmp1_;
-#line 1124 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (IS_PRINT_MANAGER (self), NULL);
-#line 1125 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = self->priv->settings;
-#line 1125 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp1_ = _print_settings_ref0 (_tmp0_);
-#line 1125 "/home/jens/Source/shotwell/src/Printing.vala"
- result = _tmp1_;
-#line 1125 "/home/jens/Source/shotwell/src/Printing.vala"
- return result;
-#line 8123 "Printing.c"
-}
-
-
-void
-print_manager_set_global_settings (PrintManager* self,
- PrintSettings* settings)
-{
- PrintSettings* _tmp0_;
-#line 1128 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_MANAGER (self));
-#line 1128 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (IS_PRINT_SETTINGS (settings));
-#line 1129 "/home/jens/Source/shotwell/src/Printing.vala"
- _tmp0_ = _print_settings_ref0 (settings);
-#line 1129 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (self->priv->settings);
-#line 1129 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->settings = _tmp0_;
-#line 1130 "/home/jens/Source/shotwell/src/Printing.vala"
- print_settings_save (settings);
-#line 8144 "Printing.c"
-}
-
-
-static void
-value_print_manager_init (GValue* value)
-{
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 8153 "Printing.c"
-}
-
-
-static void
-value_print_manager_free_value (GValue* value)
-{
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (value->data[0].v_pointer) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_unref (value->data[0].v_pointer);
-#line 8164 "Printing.c"
- }
-}
-
-
-static void
-value_print_manager_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (src_value->data[0].v_pointer) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- dest_value->data[0].v_pointer = print_manager_ref (src_value->data[0].v_pointer);
-#line 8177 "Printing.c"
- } else {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 8181 "Printing.c"
- }
-}
-
-
-static gpointer
-value_print_manager_peek_pointer (const GValue* value)
-{
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- return value->data[0].v_pointer;
-#line 8191 "Printing.c"
-}
-
-
-static gchar*
-value_print_manager_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (collect_values[0].v_pointer) {
-#line 8203 "Printing.c"
- PrintManager * object;
- object = collect_values[0].v_pointer;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 8210 "Printing.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.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 8214 "Printing.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = print_manager_ref (object);
-#line 8218 "Printing.c"
- } else {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 8222 "Printing.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- return NULL;
-#line 8226 "Printing.c"
-}
-
-
-static gchar*
-value_print_manager_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PrintManager ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!object_p) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 8242 "Printing.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (!value->data[0].v_pointer) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = NULL;
-#line 8248 "Printing.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = value->data[0].v_pointer;
-#line 8252 "Printing.c"
- } else {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- *object_p = print_manager_ref (value->data[0].v_pointer);
-#line 8256 "Printing.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- return NULL;
-#line 8260 "Printing.c"
-}
-
-
-GParamSpec*
-param_spec_print_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPrintManager* spec;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PRINT_MANAGER), NULL);
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- return G_PARAM_SPEC (spec);
-#line 8280 "Printing.c"
-}
-
-
-gpointer
-value_get_print_manager (const GValue* value)
-{
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_MANAGER), NULL);
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- return value->data[0].v_pointer;
-#line 8291 "Printing.c"
-}
-
-
-void
-value_set_print_manager (GValue* value,
- gpointer v_object)
-{
- PrintManager * old;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_MANAGER));
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- old = value->data[0].v_pointer;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (v_object) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PRINT_MANAGER));
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = v_object;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_ref (value->data[0].v_pointer);
-#line 8314 "Printing.c"
- } else {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 8318 "Printing.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (old) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_unref (old);
-#line 8324 "Printing.c"
- }
-}
-
-
-void
-value_take_print_manager (GValue* value,
- gpointer v_object)
-{
- PrintManager * old;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_MANAGER));
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- old = value->data[0].v_pointer;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (v_object) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PRINT_MANAGER));
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = v_object;
-#line 8346 "Printing.c"
- } else {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- value->data[0].v_pointer = NULL;
-#line 8350 "Printing.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (old) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_unref (old);
-#line 8356 "Printing.c"
- }
-}
-
-
-static void
-print_manager_class_init (PrintManagerClass * klass)
-{
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- print_manager_parent_class = g_type_class_peek_parent (klass);
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- ((PrintManagerClass *) klass)->finalize = print_manager_finalize;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_type_class_add_private (klass, sizeof (PrintManagerPrivate));
-#line 8370 "Printing.c"
-}
-
-
-static void
-print_manager_instance_init (PrintManager * self)
-{
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv = PRINT_MANAGER_GET_PRIVATE (self);
-#line 779 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->progress_dialog = NULL;
-#line 780 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->cancellable = NULL;
-#line 781 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->standard_sizes = NULL;
-#line 781 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->standard_sizes_length1 = 0;
-#line 781 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->_standard_sizes_size_ = self->priv->standard_sizes_length1;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- self->ref_count = 1;
-#line 8391 "Printing.c"
-}
-
-
-static void
-print_manager_finalize (PrintManager * obj)
-{
- PrintManager * self;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PRINT_MANAGER, PrintManager);
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_signal_handlers_destroy (self);
-#line 776 "/home/jens/Source/shotwell/src/Printing.vala"
- _print_settings_unref0 (self->priv->settings);
-#line 777 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->user_page_setup);
-#line 778 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->custom_tab);
-#line 779 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->progress_dialog);
-#line 780 "/home/jens/Source/shotwell/src/Printing.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 781 "/home/jens/Source/shotwell/src/Printing.vala"
- self->priv->standard_sizes = (_vala_array_free (self->priv->standard_sizes, self->priv->standard_sizes_length1, (GDestroyNotify) standard_print_size_unref), NULL);
-#line 8415 "Printing.c"
-}
-
-
-GType
-print_manager_get_type (void)
-{
- static volatile gsize print_manager_type_id__volatile = 0;
- if (g_once_init_enter (&print_manager_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_print_manager_init, value_print_manager_free_value, value_print_manager_copy_value, value_print_manager_peek_pointer, "p", value_print_manager_collect_value, "p", value_print_manager_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PrintManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) print_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrintManager), 0, (GInstanceInitFunc) print_manager_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType print_manager_type_id;
- print_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PrintManager", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&print_manager_type_id__volatile, print_manager_type_id);
- }
- return print_manager_type_id__volatile;
-}
-
-
-gpointer
-print_manager_ref (gpointer instance)
-{
- PrintManager * self;
- self = instance;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- return instance;
-#line 8444 "Printing.c"
-}
-
-
-void
-print_manager_unref (gpointer instance)
-{
- PrintManager * self;
- self = instance;
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- PRINT_MANAGER_GET_CLASS (self)->finalize (self);
-#line 771 "/home/jens/Source/shotwell/src/Printing.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 8459 "Printing.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Properties.c b/src/Properties.c
deleted file mode 100644
index a39f400..0000000
--- a/src/Properties.c
+++ /dev/null
@@ -1,5654 +0,0 @@
-/* Properties.c generated by valac 0.40.4, the Vala compiler
- * generated from Properties.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <pango/pango.h>
-#include <time.h>
-#include <glib/gi18n-lib.h>
-#include <float.h>
-#include <math.h>
-#include <gdk/gdk.h>
-#include <gio/gio.h>
-
-
-#define TYPE_PROPERTIES (properties_get_type ())
-#define PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROPERTIES, Properties))
-#define PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROPERTIES, PropertiesClass))
-#define IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROPERTIES))
-#define IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROPERTIES))
-#define PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROPERTIES, PropertiesClass))
-
-typedef struct _Properties Properties;
-typedef struct _PropertiesClass PropertiesClass;
-typedef struct _PropertiesPrivate PropertiesPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-enum {
- PROPERTIES_0_PROPERTY,
- PROPERTIES_NUM_PROPERTIES
-};
-static GParamSpec* properties_properties[PROPERTIES_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
-
-#define TYPE_BASIC_PROPERTIES (basic_properties_get_type ())
-#define BASIC_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BASIC_PROPERTIES, BasicProperties))
-#define BASIC_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BASIC_PROPERTIES, BasicPropertiesClass))
-#define IS_BASIC_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BASIC_PROPERTIES))
-#define IS_BASIC_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BASIC_PROPERTIES))
-#define BASIC_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BASIC_PROPERTIES, BasicPropertiesClass))
-
-typedef struct _BasicProperties BasicProperties;
-typedef struct _BasicPropertiesClass BasicPropertiesClass;
-typedef struct _BasicPropertiesPrivate BasicPropertiesPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-enum {
- BASIC_PROPERTIES_0_PROPERTY,
- BASIC_PROPERTIES_NUM_PROPERTIES
-};
-static GParamSpec* basic_properties_properties[BASIC_PROPERTIES_NUM_PROPERTIES];
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_IMPORT_SOURCE (import_source_get_type ())
-#define IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_SOURCE, ImportSource))
-#define IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_SOURCE, ImportSourceClass))
-#define IS_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_SOURCE))
-#define IS_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_SOURCE))
-#define IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_SOURCE, ImportSourceClass))
-
-typedef struct _ImportSource ImportSource;
-typedef struct _ImportSourceClass ImportSourceClass;
-
-#define TYPE_PHOTO_IMPORT_SOURCE (photo_import_source_get_type ())
-#define PHOTO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource))
-#define PHOTO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourceClass))
-#define IS_PHOTO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_SOURCE))
-#define IS_PHOTO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_SOURCE))
-#define PHOTO_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourceClass))
-
-typedef struct _PhotoImportSource PhotoImportSource;
-typedef struct _PhotoImportSourceClass PhotoImportSourceClass;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _dimensions_free0(var) ((var == NULL) ? NULL : (var = (dimensions_free (var), NULL)))
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#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_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO_IMPORT_SOURCE (video_import_source_get_type ())
-#define VIDEO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource))
-#define VIDEO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSourceClass))
-#define IS_VIDEO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_IMPORT_SOURCE))
-#define IS_VIDEO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_IMPORT_SOURCE))
-#define VIDEO_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSourceClass))
-
-typedef struct _VideoImportSource VideoImportSource;
-typedef struct _VideoImportSourceClass VideoImportSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define TYPE_TAG_PAGE (tag_page_get_type ())
-#define TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_PAGE, TagPage))
-#define TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_PAGE, TagPageClass))
-#define IS_TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_PAGE))
-#define IS_TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_PAGE))
-#define TAG_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_PAGE, TagPageClass))
-
-typedef struct _TagPage TagPage;
-typedef struct _TagPageClass TagPageClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_EXTENDED_PROPERTIES_WINDOW (extended_properties_window_get_type ())
-#define EXTENDED_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow))
-#define EXTENDED_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowClass))
-#define IS_EXTENDED_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW))
-#define IS_EXTENDED_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXTENDED_PROPERTIES_WINDOW))
-#define EXTENDED_PROPERTIES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowClass))
-
-typedef struct _ExtendedPropertiesWindow ExtendedPropertiesWindow;
-typedef struct _ExtendedPropertiesWindowClass ExtendedPropertiesWindowClass;
-typedef struct _ExtendedPropertiesWindowPrivate ExtendedPropertiesWindowPrivate;
-
-#define EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES (extended_properties_window_extended_properties_get_type ())
-#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties))
-#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedPropertiesClass))
-#define EXTENDED_PROPERTIES_WINDOW_IS_EXTENDED_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES))
-#define EXTENDED_PROPERTIES_WINDOW_IS_EXTENDED_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES))
-#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedPropertiesClass))
-
-typedef struct _ExtendedPropertiesWindowExtendedProperties ExtendedPropertiesWindowExtendedProperties;
-typedef struct _ExtendedPropertiesWindowExtendedPropertiesClass ExtendedPropertiesWindowExtendedPropertiesClass;
-enum {
- EXTENDED_PROPERTIES_WINDOW_0_PROPERTY,
- EXTENDED_PROPERTIES_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* extended_properties_window_properties[EXTENDED_PROPERTIES_WINDOW_NUM_PROPERTIES];
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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;
-typedef struct _ExtendedPropertiesWindowExtendedPropertiesPrivate ExtendedPropertiesWindowExtendedPropertiesPrivate;
-enum {
- EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_0_PROPERTY,
- EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NUM_PROPERTIES
-};
-static GParamSpec* extended_properties_window_extended_properties_properties[EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NUM_PROPERTIES];
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-
-#define PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ())
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define TYPE_EVENTS_DIRECTORY_PAGE (events_directory_page_get_type ())
-#define EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage))
-#define EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass))
-#define IS_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENTS_DIRECTORY_PAGE))
-#define IS_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENTS_DIRECTORY_PAGE))
-#define EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass))
-
-typedef struct _EventsDirectoryPage EventsDirectoryPage;
-typedef struct _EventsDirectoryPageClass EventsDirectoryPageClass;
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-
-struct _Properties {
- GtkGrid parent_instance;
- PropertiesPrivate * priv;
-};
-
-struct _PropertiesClass {
- GtkGridClass parent_class;
- void (*get_single_properties) (Properties* self, DataView* view);
- void (*get_multiple_properties) (Properties* self, GeeIterable* iter);
- void (*get_properties) (Properties* self, Page* current_page);
- void (*clear_properties) (Properties* self);
- void (*internal_update_properties) (Properties* self, Page* page);
-};
-
-struct _PropertiesPrivate {
- guint line_count;
-};
-
-struct _BasicProperties {
- Properties parent_instance;
- BasicPropertiesPrivate * priv;
-};
-
-struct _BasicPropertiesClass {
- PropertiesClass parent_class;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _BasicPropertiesPrivate {
- gchar* title;
- time_t start_time;
- time_t end_time;
- Dimensions dimensions;
- gint photo_count;
- gint event_count;
- gint video_count;
- gchar* exposure;
- gchar* aperture;
- gchar* iso;
- gdouble clip_duration;
- gchar* raw_developer;
- gchar* raw_assoc;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _ExtendedPropertiesWindow {
- GtkDialog parent_instance;
- ExtendedPropertiesWindowPrivate * priv;
-};
-
-struct _ExtendedPropertiesWindowClass {
- GtkDialogClass parent_class;
-};
-
-struct _ExtendedPropertiesWindowPrivate {
- ExtendedPropertiesWindowExtendedProperties* properties;
-};
-
-struct _ExtendedPropertiesWindowExtendedProperties {
- Properties parent_instance;
- ExtendedPropertiesWindowExtendedPropertiesPrivate * priv;
-};
-
-struct _ExtendedPropertiesWindowExtendedPropertiesClass {
- PropertiesClass parent_class;
-};
-
-struct _ExtendedPropertiesWindowExtendedPropertiesPrivate {
- gchar* file_path;
- guint64 filesize;
- Dimensions* original_dim;
- gchar* camera_make;
- gchar* camera_model;
- gchar* flash;
- gchar* focal_length;
- gdouble gps_lat;
- gchar* gps_lat_ref;
- gdouble gps_long;
- gchar* gps_long_ref;
- gdouble gps_alt;
- gchar* artist;
- gchar* copyright;
- gchar* software;
- gchar* exposure_bias;
- gchar* exposure_date;
- gchar* exposure_time;
- gboolean is_raw;
- gchar* development_path;
- gchar* comment;
-};
-
-typedef enum {
- PHOTO_METADATA_SET_OPTION_ALL_DOMAINS,
- PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT,
- PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN
-} PhotoMetadataSetOption;
-
-
-static gpointer properties_parent_class = NULL;
-static gpointer basic_properties_parent_class = NULL;
-static gpointer extended_properties_window_parent_class = NULL;
-static gpointer extended_properties_window_extended_properties_parent_class = NULL;
-
-GType properties_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-#define PROPERTIES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PROPERTIES, PropertiesPrivate))
-Properties* properties_construct (GType object_type);
-void properties_add_line (Properties* self,
- const gchar* label_text,
- const gchar* info_text,
- gboolean multi_line);
-gboolean is_string_empty (const gchar* s);
-gchar* properties_get_prettyprint_time (Properties* self,
- struct tm* time);
-gchar* resources_get_hh_mm_format_string (void);
-gchar* properties_get_prettyprint_time_with_seconds (Properties* self,
- struct tm* time);
-gchar* resources_get_hh_mm_ss_format_string (void);
-gchar* properties_get_prettyprint_date (Properties* self,
- struct tm* date);
-gchar* format_local_date (struct tm* date);
-void properties_get_single_properties (Properties* self,
- DataView* view);
-static void properties_real_get_single_properties (Properties* self,
- DataView* view);
-void properties_get_multiple_properties (Properties* self,
- GeeIterable* iter);
-static void properties_real_get_multiple_properties (Properties* self,
- GeeIterable* iter);
-void properties_get_properties (Properties* self,
- Page* current_page);
-static void properties_real_get_properties (Properties* self,
- Page* current_page);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gint view_collection_get_selected_count (ViewCollection* self);
-GeeList* view_collection_get_selected (ViewCollection* self);
-gint data_collection_get_count (DataCollection* self);
-GeeCollection* data_collection_get_all (DataCollection* self);
-void properties_clear_properties (Properties* self);
-static void properties_real_clear_properties (Properties* self);
-void properties_update_properties (Properties* self,
- Page* page);
-void properties_internal_update_properties (Properties* self,
- Page* page);
-static void properties_real_internal_update_properties (Properties* self,
- Page* page);
-void properties_unselect_text (Properties* self);
-static void properties_finalize (GObject * obj);
-GType basic_properties_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-#define BASIC_PROPERTIES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BASIC_PROPERTIES, BasicPropertiesPrivate))
-BasicProperties* basic_properties_new (void);
-BasicProperties* basic_properties_construct (GType object_type);
-static void basic_properties_real_clear_properties (Properties* base);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-static void basic_properties_real_get_single_properties (Properties* base,
- DataView* view);
-GType data_source_get_type (void) G_GNUC_CONST;
-DataSource* data_view_get_source (DataView* self);
-gchar* data_object_get_name (DataObject* self);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType import_source_get_type (void) G_GNUC_CONST;
-GType photo_import_source_get_type (void) G_GNUC_CONST;
-time_t media_source_get_exposure_time (MediaSource* self);
-time_t import_source_get_exposure_time (ImportSource* self);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoMetadata* photo_source_get_metadata (PhotoSource* self);
-PhotoMetadata* photo_import_source_get_metadata (PhotoImportSource* self);
-gchar* photo_metadata_get_exposure_string (PhotoMetadata* self);
-gchar* photo_metadata_get_aperture_string (PhotoMetadata* self,
- gboolean pango_formatted);
-gchar* photo_metadata_get_iso_string (PhotoMetadata* self);
-Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self);
-GType orientation_get_type (void) G_GNUC_CONST;
-Orientation photo_metadata_get_orientation (PhotoMetadata* self);
-void orientation_rotate_dimensions (Orientation self,
- Dimensions* dim,
- Dimensions* result);
-GType photo_exception_get_type (void) G_GNUC_CONST;
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-GType photo_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-GType raw_developer_get_type (void) G_GNUC_CONST;
-RawDeveloper photo_get_raw_developer (Photo* self);
-gchar* raw_developer_get_label (RawDeveloper self);
-gboolean photo_is_raw_developer_available (Photo* self,
- RawDeveloper d);
-GType event_source_get_type (void) G_GNUC_CONST;
-time_t event_source_get_start_time (EventSource* self);
-time_t event_source_get_end_time (EventSource* self);
-void media_source_collection_count_media (GeeCollection* media,
- gint* photo_count,
- gint* video_count);
-GeeCollection* event_source_get_media (EventSource* self);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_import_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-gdouble video_get_clip_duration (Video* self);
-gboolean video_get_is_interpretable (Video* self);
-void video_get_frame_dimensions (Video* self,
- Dimensions* result);
-static void basic_properties_real_get_multiple_properties (Properties* base,
- GeeIterable* iter);
-static void basic_properties_real_get_properties (Properties* base,
- Page* current_page);
-static void basic_properties_real_internal_update_properties (Properties* base,
- Page* page);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType tag_page_get_type (void) G_GNUC_CONST;
-GType tag_get_type (void) G_GNUC_CONST;
-Tag* tag_page_get_tag (TagPage* self);
-gchar* tag_get_user_visible_name (Tag* self);
-gchar* guarded_markup_escape_text (const gchar* plain);
-gboolean dimensions_has_area (Dimensions *self);
-static void basic_properties_finalize (GObject * obj);
-GType extended_properties_window_get_type (void) G_GNUC_CONST;
-static GType extended_properties_window_extended_properties_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define EXTENDED_PROPERTIES_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowPrivate))
-ExtendedPropertiesWindow* extended_properties_window_new (GtkWindow* owner);
-ExtendedPropertiesWindow* extended_properties_window_construct (GType object_type,
- GtkWindow* owner);
-gint resources_use_header_bar (void);
-static gboolean _gtk_widget_hide_on_delete_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self);
-static ExtendedPropertiesWindowExtendedProperties* extended_properties_window_extended_properties_new (void);
-static ExtendedPropertiesWindowExtendedProperties* extended_properties_window_extended_properties_construct (GType object_type);
-static gboolean extended_properties_window_real_button_press_event (GtkWidget* base,
- GdkEventButton* event);
-static gboolean extended_properties_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-void extended_properties_window_update_properties (ExtendedPropertiesWindow* self,
- Page* page);
-static void extended_properties_window_real_show_all (GtkWidget* base);
-#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedPropertiesPrivate))
-#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE ""
-static void extended_properties_window_extended_properties_real_clear_properties (Properties* base);
-static void extended_properties_window_extended_properties_real_get_single_properties (Properties* base,
- DataView* view);
-GFile* media_source_get_master_file (MediaSource* self);
-GFile* media_source_get_file (MediaSource* self);
-guint64 media_source_get_master_filesize (MediaSource* self);
-PhotoMetadata* photo_get_master_metadata (Photo* self,
- GError** error);
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
-GType photo_metadata_set_option_get_type (void) G_GNUC_CONST;
-void photo_metadata_set_exposure_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option);
-time_t media_source_get_timestamp (MediaSource* self);
-MetadataDateTime* metadata_date_time_new (time_t timestamp);
-MetadataDateTime* metadata_date_time_construct (GType object_type,
- time_t timestamp);
-gchar* photo_metadata_get_camera_make (PhotoMetadata* self);
-gchar* photo_metadata_get_camera_model (PhotoMetadata* self);
-gchar* photo_metadata_get_flash_string (PhotoMetadata* self);
-gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self);
-gboolean photo_metadata_get_gps (PhotoMetadata* self,
- gdouble* longitude,
- gchar* * long_ref,
- gdouble* latitude,
- gchar* * lat_ref,
- gdouble* altitude);
-gchar* photo_metadata_get_artist (PhotoMetadata* self);
-gchar* photo_metadata_get_copyright (PhotoMetadata* self);
-gchar* photo_metadata_get_software (PhotoMetadata* self);
-gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self);
-time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
-gchar* media_source_get_comment (MediaSource* self);
-GType event_get_type (void) G_GNUC_CONST;
-gchar* event_source_get_comment (EventSource* self);
-static void extended_properties_window_extended_properties_real_internal_update_properties (Properties* base,
- Page* page);
-GType events_directory_page_get_type (void) G_GNUC_CONST;
-static void extended_properties_window_extended_properties_finalize (GObject * obj);
-static void extended_properties_window_finalize (GObject * obj);
-
-
-Properties*
-properties_construct (GType object_type)
-{
- Properties * self = NULL;
-#line 10 "/home/jens/Source/shotwell/src/Properties.vala"
- self = (Properties*) g_object_new (object_type, NULL);
-#line 11 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_grid_set_row_spacing (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), 0);
-#line 12 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_grid_set_column_spacing (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), 6);
-#line 10 "/home/jens/Source/shotwell/src/Properties.vala"
- return self;
-#line 780 "Properties.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 31 "/home/jens/Source/shotwell/src/Properties.vala"
- return self ? g_object_ref (self) : NULL;
-#line 789 "Properties.c"
-}
-
-
-void
-properties_add_line (Properties* self,
- const gchar* label_text,
- const gchar* info_text,
- gboolean multi_line)
-{
- GtkLabel* label = NULL;
- GtkLabel* _tmp0_;
- GtkWidget* info = NULL;
- GtkLabel* _tmp1_;
- GtkLabel* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GtkLabel* _tmp38_;
- guint _tmp39_;
- guint _tmp44_;
-#line 15 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PROPERTIES (self));
-#line 15 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (label_text != NULL);
-#line 15 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (info_text != NULL);
-#line 16 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = (GtkLabel*) gtk_label_new ("");
-#line 16 "/home/jens/Source/shotwell/src/Properties.vala"
- g_object_ref_sink (_tmp0_);
-#line 16 "/home/jens/Source/shotwell/src/Properties.vala"
- label = _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = label;
-#line 19 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_justify (_tmp1_, GTK_JUSTIFY_RIGHT);
-#line 21 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = label;
-#line 21 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = g_markup_printf_escaped ("<span font_weight=\"bold\">%s</span>", label_text);
-#line 21 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = _tmp3_;
-#line 21 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_markup (_tmp2_, _tmp4_);
-#line 21 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp4_);
-#line 23 "/home/jens/Source/shotwell/src/Properties.vala"
- if (multi_line) {
-#line 837 "Properties.c"
- GtkScrolledWindow* info_scroll = NULL;
- GtkScrolledWindow* _tmp5_;
- GtkScrolledWindow* _tmp6_;
- GtkTextView* view = NULL;
- GtkTextView* _tmp7_;
- GtkStyleContext* context = NULL;
- GtkScrolledWindow* _tmp8_;
- GtkStyleContext* _tmp9_;
- GtkStyleContext* _tmp10_;
- GtkTextView* _tmp11_;
- GtkStyleContext* _tmp12_;
- GdkRGBA _tmp13_ = {0};
- GtkTextView* _tmp14_;
- GtkTextView* _tmp15_;
- GtkTextView* _tmp16_;
- const gchar* _tmp17_ = NULL;
- GtkTextView* _tmp18_;
- GtkTextBuffer* _tmp19_;
- GtkTextBuffer* _tmp20_;
- GtkScrolledWindow* _tmp21_;
- GtkTextView* _tmp22_;
- GtkLabel* _tmp23_;
- GtkLabel* _tmp24_;
- GtkScrolledWindow* _tmp25_;
- GtkWidget* _tmp26_;
-#line 24 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
-#line 24 "/home/jens/Source/shotwell/src/Properties.vala"
- g_object_ref_sink (_tmp5_);
-#line 24 "/home/jens/Source/shotwell/src/Properties.vala"
- info_scroll = _tmp5_;
-#line 25 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = info_scroll;
-#line 25 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_scrolled_window_set_shadow_type (_tmp6_, GTK_SHADOW_ETCHED_IN);
-#line 26 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = (GtkTextView*) gtk_text_view_new ();
-#line 26 "/home/jens/Source/shotwell/src/Properties.vala"
- g_object_ref_sink (_tmp7_);
-#line 26 "/home/jens/Source/shotwell/src/Properties.vala"
- view = _tmp7_;
-#line 31 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = info_scroll;
-#line 31 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 31 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 31 "/home/jens/Source/shotwell/src/Properties.vala"
- context = _tmp10_;
-#line 32 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = view;
-#line 32 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = context;
-#line 32 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_style_context_get_background_color (_tmp12_, GTK_STATE_FLAG_NORMAL, &_tmp13_);
-#line 32 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_override_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), GTK_STATE_FLAG_NORMAL, &_tmp13_);
-#line 34 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = view;
-#line 34 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_text_view_set_wrap_mode (_tmp14_, GTK_WRAP_WORD);
-#line 35 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = view;
-#line 35 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_text_view_set_cursor_visible (_tmp15_, FALSE);
-#line 36 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = view;
-#line 36 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_text_view_set_editable (_tmp16_, FALSE);
-#line 37 "/home/jens/Source/shotwell/src/Properties.vala"
- if (is_string_empty (info_text)) {
-#line 37 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = "";
-#line 911 "Properties.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = info_text;
-#line 915 "Properties.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp18_ = view;
-#line 37 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = gtk_text_view_get_buffer (_tmp18_);
-#line 37 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp20_ = _tmp19_;
-#line 37 "/home/jens/Source/shotwell/src/Properties.vala"
- g_object_set (_tmp20_, "text", _tmp17_, NULL);
-#line 38 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp21_ = info_scroll;
-#line 38 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp22_ = view;
-#line 38 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget));
-#line 39 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp23_ = label;
-#line 39 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_xalign (_tmp23_, 1.0f);
-#line 40 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp24_ = label;
-#line 40 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_yalign (_tmp24_, 0.0f);
-#line 41 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp25_ = info_scroll;
-#line 41 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget));
-#line 41 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (info);
-#line 41 "/home/jens/Source/shotwell/src/Properties.vala"
- info = _tmp26_;
-#line 23 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (context);
-#line 23 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (view);
-#line 23 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (info_scroll);
-#line 953 "Properties.c"
- } else {
- GtkLabel* info_label = NULL;
- GtkLabel* _tmp27_;
- const gchar* _tmp28_ = NULL;
- GtkLabel* _tmp29_;
- GtkLabel* _tmp30_;
- GtkLabel* _tmp31_;
- GtkLabel* _tmp32_;
- GtkLabel* _tmp33_;
- GtkLabel* _tmp34_;
- GtkLabel* _tmp35_;
- GtkLabel* _tmp36_;
- GtkWidget* _tmp37_;
-#line 43 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp27_ = (GtkLabel*) gtk_label_new ("");
-#line 43 "/home/jens/Source/shotwell/src/Properties.vala"
- g_object_ref_sink (_tmp27_);
-#line 43 "/home/jens/Source/shotwell/src/Properties.vala"
- info_label = _tmp27_;
-#line 44 "/home/jens/Source/shotwell/src/Properties.vala"
- if (is_string_empty (info_text)) {
-#line 44 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp28_ = "";
-#line 977 "Properties.c"
- } else {
-#line 44 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp28_ = info_text;
-#line 981 "Properties.c"
- }
-#line 44 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp29_ = info_label;
-#line 44 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_markup (_tmp29_, _tmp28_);
-#line 45 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp30_ = info_label;
-#line 45 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_ellipsize (_tmp30_, PANGO_ELLIPSIZE_END);
-#line 46 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp31_ = info_label;
-#line 46 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_xalign (_tmp31_, 0.0f);
-#line 47 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp32_ = info_label;
-#line 47 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_yalign (_tmp32_, 0.5f);
-#line 48 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp33_ = info_label;
-#line 48 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_selectable (_tmp33_, TRUE);
-#line 49 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp34_ = label;
-#line 49 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_xalign (_tmp34_, 1.0f);
-#line 50 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp35_ = label;
-#line 50 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_set_yalign (_tmp35_, 0.5f);
-#line 51 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp36_ = info_label;
-#line 51 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget));
-#line 51 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (info);
-#line 51 "/home/jens/Source/shotwell/src/Properties.vala"
- info = _tmp37_;
-#line 23 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (info_label);
-#line 1021 "Properties.c"
- }
-#line 54 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp38_ = label;
-#line 54 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp39_ = self->priv->line_count;
-#line 54 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_grid_attach (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), 0, (gint) _tmp39_, 1, 1);
-#line 56 "/home/jens/Source/shotwell/src/Properties.vala"
- if (multi_line) {
-#line 1031 "Properties.c"
- GtkWidget* _tmp40_;
- guint _tmp41_;
-#line 57 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp40_ = info;
-#line 57 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp41_ = self->priv->line_count;
-#line 57 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_grid_attach (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), _tmp40_, 1, (gint) _tmp41_, 1, 2);
-#line 1040 "Properties.c"
- } else {
- GtkWidget* _tmp42_;
- guint _tmp43_;
-#line 59 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp42_ = info;
-#line 59 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp43_ = self->priv->line_count;
-#line 59 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_grid_attach (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), _tmp42_, 1, (gint) _tmp43_, 1, 1);
-#line 1050 "Properties.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp44_ = self->priv->line_count;
-#line 62 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->line_count = _tmp44_ + 1;
-#line 15 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (info);
-#line 15 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (label);
-#line 1060 "Properties.c"
-}
-
-
-static gchar*
-g_time_format (struct tm *self,
- const gchar* format)
-{
- gchar* result = NULL;
- gchar* buffer = NULL;
- gchar* _tmp0_;
- gint buffer_length1;
- gint _buffer_size_;
- gchar* _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gint _tmp2__length1;
- gchar* _tmp3_;
-#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (format != NULL, NULL);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, 64);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = _tmp0_;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer_length1 = 64;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _buffer_size_ = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = buffer;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1__length1 = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- strftime (_tmp1_, _tmp1__length1, format, &(*self));
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = buffer;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2__length1 = buffer_length1;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_strdup ((const gchar*) _tmp2_);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp3_;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = (g_free (buffer), NULL);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1106 "Properties.c"
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1124 "Properties.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1148 "Properties.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1157 "Properties.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 1178 "Properties.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 1182 "Properties.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 1188 "Properties.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 1198 "Properties.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 1202 "Properties.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 1210 "Properties.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 1217 "Properties.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 1221 "Properties.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 1227 "Properties.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1239 "Properties.c"
-}
-
-
-gchar*
-properties_get_prettyprint_time (Properties* self,
- struct tm* time)
-{
- gchar* result = NULL;
- gchar* timestring = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
-#line 65 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (IS_PROPERTIES (self), NULL);
-#line 65 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (time != NULL, NULL);
-#line 66 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = resources_get_hh_mm_format_string ();
-#line 66 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = _tmp0_;
-#line 66 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = g_time_format (time, _tmp1_);
-#line 66 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = _tmp2_;
-#line 66 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp1_);
-#line 66 "/home/jens/Source/shotwell/src/Properties.vala"
- timestring = _tmp3_;
-#line 68 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = timestring;
-#line 68 "/home/jens/Source/shotwell/src/Properties.vala"
- if (string_get (_tmp4_, (glong) 0) == '0') {
-#line 1274 "Properties.c"
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 69 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = timestring;
-#line 69 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = string_substring (_tmp5_, (glong) 1, (glong) -1);
-#line 69 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (timestring);
-#line 69 "/home/jens/Source/shotwell/src/Properties.vala"
- timestring = _tmp6_;
-#line 1285 "Properties.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/Properties.vala"
- result = timestring;
-#line 71 "/home/jens/Source/shotwell/src/Properties.vala"
- return result;
-#line 1291 "Properties.c"
-}
-
-
-gchar*
-properties_get_prettyprint_time_with_seconds (Properties* self,
- struct tm* time)
-{
- gchar* result = NULL;
- gchar* timestring = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
-#line 74 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (IS_PROPERTIES (self), NULL);
-#line 74 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (time != NULL, NULL);
-#line 75 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = resources_get_hh_mm_ss_format_string ();
-#line 75 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = g_time_format (time, _tmp1_);
-#line 75 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = _tmp2_;
-#line 75 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp1_);
-#line 75 "/home/jens/Source/shotwell/src/Properties.vala"
- timestring = _tmp3_;
-#line 77 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = timestring;
-#line 77 "/home/jens/Source/shotwell/src/Properties.vala"
- if (string_get (_tmp4_, (glong) 0) == '0') {
-#line 1326 "Properties.c"
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 78 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = timestring;
-#line 78 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = string_substring (_tmp5_, (glong) 1, (glong) -1);
-#line 78 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (timestring);
-#line 78 "/home/jens/Source/shotwell/src/Properties.vala"
- timestring = _tmp6_;
-#line 1337 "Properties.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/Properties.vala"
- result = timestring;
-#line 80 "/home/jens/Source/shotwell/src/Properties.vala"
- return result;
-#line 1343 "Properties.c"
-}
-
-
-static void
-g_time_local (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- localtime_r (&time, &_tmp0_);
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 1361 "Properties.c"
-}
-
-
-gchar*
-properties_get_prettyprint_date (Properties* self,
- struct tm* date)
-{
- gchar* result = NULL;
- gchar* date_string = NULL;
- struct tm today = {0};
- time_t _tmp0_;
- struct tm _tmp1_ = {0};
- gboolean _tmp2_ = FALSE;
- struct tm _tmp3_;
- gint _tmp4_;
- struct tm _tmp5_;
- gint _tmp6_;
-#line 83 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (IS_PROPERTIES (self), NULL);
-#line 83 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (date != NULL, NULL);
-#line 84 "/home/jens/Source/shotwell/src/Properties.vala"
- date_string = NULL;
-#line 85 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = time (NULL);
-#line 85 "/home/jens/Source/shotwell/src/Properties.vala"
- g_time_local (_tmp0_, &_tmp1_);
-#line 85 "/home/jens/Source/shotwell/src/Properties.vala"
- today = _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = *date;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = _tmp3_.tm_yday;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = today;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = _tmp5_.tm_yday;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp4_ == _tmp6_) {
-#line 1401 "Properties.c"
- struct tm _tmp7_;
- gint _tmp8_;
- struct tm _tmp9_;
- gint _tmp10_;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = *date;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = _tmp7_.tm_year;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = today;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = _tmp9_.tm_year;
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = _tmp8_ == _tmp10_;
-#line 1416 "Properties.c"
- } else {
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = FALSE;
-#line 1420 "Properties.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp2_) {
-#line 1424 "Properties.c"
- gchar* _tmp11_;
-#line 87 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = g_strdup (_ ("Today"));
-#line 87 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (date_string);
-#line 87 "/home/jens/Source/shotwell/src/Properties.vala"
- date_string = _tmp11_;
-#line 1432 "Properties.c"
- } else {
- gboolean _tmp12_ = FALSE;
- struct tm _tmp13_;
- gint _tmp14_;
- struct tm _tmp15_;
- gint _tmp16_;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp13_ = *date;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = _tmp13_.tm_yday;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = today;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = _tmp15_.tm_yday;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp14_ == (_tmp16_ - 1)) {
-#line 1449 "Properties.c"
- struct tm _tmp17_;
- gint _tmp18_;
- struct tm _tmp19_;
- gint _tmp20_;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = *date;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp18_ = _tmp17_.tm_year;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = today;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp20_ = _tmp19_.tm_year;
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = _tmp18_ == _tmp20_;
-#line 1464 "Properties.c"
- } else {
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = FALSE;
-#line 1468 "Properties.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp12_) {
-#line 1472 "Properties.c"
- gchar* _tmp21_;
-#line 89 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp21_ = g_strdup (_ ("Yesterday"));
-#line 89 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (date_string);
-#line 89 "/home/jens/Source/shotwell/src/Properties.vala"
- date_string = _tmp21_;
-#line 1480 "Properties.c"
- } else {
- struct tm _tmp22_;
- gchar* _tmp23_;
-#line 91 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp22_ = *date;
-#line 91 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp23_ = format_local_date (&_tmp22_);
-#line 91 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (date_string);
-#line 91 "/home/jens/Source/shotwell/src/Properties.vala"
- date_string = _tmp23_;
-#line 1492 "Properties.c"
- }
- }
-#line 94 "/home/jens/Source/shotwell/src/Properties.vala"
- result = date_string;
-#line 94 "/home/jens/Source/shotwell/src/Properties.vala"
- return result;
-#line 1499 "Properties.c"
-}
-
-
-static void
-properties_real_get_single_properties (Properties* self,
- DataView* view)
-{
-#line 97 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 1509 "Properties.c"
-}
-
-
-void
-properties_get_single_properties (Properties* self,
- DataView* view)
-{
-#line 97 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PROPERTIES (self));
-#line 97 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_GET_CLASS (self)->get_single_properties (self, view);
-#line 1521 "Properties.c"
-}
-
-
-static void
-properties_real_get_multiple_properties (Properties* self,
- GeeIterable* iter)
-{
-#line 100 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail ((iter == NULL) || GEE_IS_ITERABLE (iter));
-#line 1531 "Properties.c"
-}
-
-
-void
-properties_get_multiple_properties (Properties* self,
- GeeIterable* iter)
-{
-#line 100 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PROPERTIES (self));
-#line 100 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_GET_CLASS (self)->get_multiple_properties (self, iter);
-#line 1543 "Properties.c"
-}
-
-
-static void
-properties_real_get_properties (Properties* self,
- Page* current_page)
-{
- ViewCollection* view = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gint count = 0;
- ViewCollection* _tmp2_;
- GeeIterable* iter = NULL;
- gint _tmp3_;
- gboolean _tmp9_ = FALSE;
- GeeIterable* _tmp10_;
- gint _tmp12_;
-#line 103 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PAGE (current_page));
-#line 104 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = page_get_view (current_page);
-#line 104 "/home/jens/Source/shotwell/src/Properties.vala"
- view = _tmp0_;
-#line 105 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = view;
-#line 105 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp1_ == NULL) {
-#line 106 "/home/jens/Source/shotwell/src/Properties.vala"
- _data_collection_unref0 (view);
-#line 106 "/home/jens/Source/shotwell/src/Properties.vala"
- return;
-#line 1575 "Properties.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = view;
-#line 109 "/home/jens/Source/shotwell/src/Properties.vala"
- count = view_collection_get_selected_count (_tmp2_);
-#line 110 "/home/jens/Source/shotwell/src/Properties.vala"
- iter = NULL;
-#line 111 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = count;
-#line 111 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp3_ != 0) {
-#line 1587 "Properties.c"
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
-#line 112 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = view;
-#line 112 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 112 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (iter);
-#line 112 "/home/jens/Source/shotwell/src/Properties.vala"
- iter = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable);
-#line 1598 "Properties.c"
- } else {
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- GeeCollection* _tmp8_;
-#line 114 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = view;
-#line 114 "/home/jens/Source/shotwell/src/Properties.vala"
- count = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
-#line 115 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = view;
-#line 115 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection));
-#line 115 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (iter);
-#line 115 "/home/jens/Source/shotwell/src/Properties.vala"
- iter = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable);
-#line 1615 "Properties.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = iter;
-#line 118 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp10_ == NULL) {
-#line 118 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = TRUE;
-#line 1623 "Properties.c"
- } else {
- gint _tmp11_;
-#line 118 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = count;
-#line 118 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = _tmp11_ == 0;
-#line 1630 "Properties.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp9_) {
-#line 119 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (iter);
-#line 119 "/home/jens/Source/shotwell/src/Properties.vala"
- _data_collection_unref0 (view);
-#line 119 "/home/jens/Source/shotwell/src/Properties.vala"
- return;
-#line 1640 "Properties.c"
- }
-#line 121 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = count;
-#line 121 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp12_ == 1) {
-#line 1646 "Properties.c"
- {
- GeeIterator* _item_it = NULL;
- GeeIterable* _tmp13_;
- GeeIterator* _tmp14_;
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp13_ = iter;
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = gee_iterable_iterator (_tmp13_);
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- _item_it = _tmp14_;
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- while (TRUE) {
-#line 1659 "Properties.c"
- GeeIterator* _tmp15_;
- DataView* item = NULL;
- GeeIterator* _tmp16_;
- gpointer _tmp17_;
- DataView* _tmp18_;
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = _item_it;
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- if (!gee_iterator_next (_tmp15_)) {
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- break;
-#line 1671 "Properties.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = _item_it;
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = gee_iterator_get (_tmp16_);
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- item = (DataView*) _tmp17_;
-#line 123 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp18_ = item;
-#line 123 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_get_single_properties (self, _tmp18_);
-#line 124 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (item);
-#line 124 "/home/jens/Source/shotwell/src/Properties.vala"
- break;
-#line 1687 "Properties.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (_item_it);
-#line 1691 "Properties.c"
- }
- } else {
- GeeIterable* _tmp19_;
-#line 127 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = iter;
-#line 127 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_get_multiple_properties (self, _tmp19_);
-#line 1699 "Properties.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (iter);
-#line 103 "/home/jens/Source/shotwell/src/Properties.vala"
- _data_collection_unref0 (view);
-#line 1705 "Properties.c"
-}
-
-
-void
-properties_get_properties (Properties* self,
- Page* current_page)
-{
-#line 103 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PROPERTIES (self));
-#line 103 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_GET_CLASS (self)->get_properties (self, current_page);
-#line 1717 "Properties.c"
-}
-
-
-static void
-properties_real_clear_properties (Properties* self)
-{
- GList* _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer));
-#line 1727 "Properties.c"
- {
- GList* child_collection = NULL;
- GList* child_it = NULL;
-#line 132 "/home/jens/Source/shotwell/src/Properties.vala"
- child_collection = _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/Properties.vala"
- for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
-#line 1735 "Properties.c"
- GtkWidget* _tmp1_;
- GtkWidget* child = NULL;
-#line 132 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = _g_object_ref0 ((GtkWidget*) child_it->data);
-#line 132 "/home/jens/Source/shotwell/src/Properties.vala"
- child = _tmp1_;
-#line 1742 "Properties.c"
- {
- GtkWidget* _tmp2_;
-#line 133 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = child;
-#line 133 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), _tmp2_);
-#line 132 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (child);
-#line 1751 "Properties.c"
- }
- }
-#line 132 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_list_free0 (child_collection);
-#line 1756 "Properties.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->line_count = (guint) 0;
-#line 1760 "Properties.c"
-}
-
-
-void
-properties_clear_properties (Properties* self)
-{
-#line 131 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PROPERTIES (self));
-#line 131 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_GET_CLASS (self)->clear_properties (self);
-#line 1771 "Properties.c"
-}
-
-
-void
-properties_update_properties (Properties* self,
- Page* page)
-{
-#line 138 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PROPERTIES (self));
-#line 138 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 139 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_clear_properties (self);
-#line 140 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_internal_update_properties (self, page);
-#line 141 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1789 "Properties.c"
-}
-
-
-static void
-properties_real_internal_update_properties (Properties* self,
- Page* page)
-{
-#line 144 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 145 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_get_properties (self, page);
-#line 1801 "Properties.c"
-}
-
-
-void
-properties_internal_update_properties (Properties* self,
- Page* page)
-{
-#line 144 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PROPERTIES (self));
-#line 144 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_GET_CLASS (self)->internal_update_properties (self, page);
-#line 1813 "Properties.c"
-}
-
-
-void
-properties_unselect_text (Properties* self)
-{
- GList* _tmp0_;
-#line 148 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PROPERTIES (self));
-#line 149 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer));
-#line 1825 "Properties.c"
- {
- GList* child_collection = NULL;
- GList* child_it = NULL;
-#line 149 "/home/jens/Source/shotwell/src/Properties.vala"
- child_collection = _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/Properties.vala"
- for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
-#line 1833 "Properties.c"
- GtkWidget* _tmp1_;
- GtkWidget* child = NULL;
-#line 149 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = _g_object_ref0 ((GtkWidget*) child_it->data);
-#line 149 "/home/jens/Source/shotwell/src/Properties.vala"
- child = _tmp1_;
-#line 1840 "Properties.c"
- {
- GtkWidget* _tmp2_;
-#line 150 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = child;
-#line 150 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_label_get_type ())) {
-#line 1847 "Properties.c"
- GtkWidget* _tmp3_;
-#line 151 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = child;
-#line 151 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_label_select_region (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_label_get_type (), GtkLabel), 0, 0);
-#line 1853 "Properties.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (child);
-#line 1857 "Properties.c"
- }
- }
-#line 149 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_list_free0 (child_collection);
-#line 1862 "Properties.c"
- }
-}
-
-
-static void
-properties_class_init (PropertiesClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- g_type_class_add_private (klass, sizeof (PropertiesPrivate));
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->get_single_properties = (void (*) (Properties *, DataView*)) properties_real_get_single_properties;
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->get_multiple_properties = (void (*) (Properties *, GeeIterable*)) properties_real_get_multiple_properties;
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->get_properties = (void (*) (Properties *, Page*)) properties_real_get_properties;
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->clear_properties = (void (*) (Properties *)) properties_real_clear_properties;
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->internal_update_properties = (void (*) (Properties *, Page*)) properties_real_internal_update_properties;
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- G_OBJECT_CLASS (klass)->finalize = properties_finalize;
-#line 1886 "Properties.c"
-}
-
-
-static void
-properties_instance_init (Properties * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv = PROPERTIES_GET_PRIVATE (self);
-#line 8 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->line_count = (guint) 0;
-#line 1897 "Properties.c"
-}
-
-
-static void
-properties_finalize (GObject * obj)
-{
- Properties * self;
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PROPERTIES, Properties);
-#line 7 "/home/jens/Source/shotwell/src/Properties.vala"
- G_OBJECT_CLASS (properties_parent_class)->finalize (obj);
-#line 1909 "Properties.c"
-}
-
-
-GType
-properties_get_type (void)
-{
- static volatile gsize properties_type_id__volatile = 0;
- if (g_once_init_enter (&properties_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Properties), 0, (GInstanceInitFunc) properties_instance_init, NULL };
- GType properties_type_id;
- properties_type_id = g_type_register_static (gtk_grid_get_type (), "Properties", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&properties_type_id__volatile, properties_type_id);
- }
- return properties_type_id__volatile;
-}
-
-
-BasicProperties*
-basic_properties_construct (GType object_type)
-{
- BasicProperties * self = NULL;
-#line 171 "/home/jens/Source/shotwell/src/Properties.vala"
- self = (BasicProperties*) properties_construct (object_type);
-#line 171 "/home/jens/Source/shotwell/src/Properties.vala"
- return self;
-#line 1935 "Properties.c"
-}
-
-
-BasicProperties*
-basic_properties_new (void)
-{
-#line 171 "/home/jens/Source/shotwell/src/Properties.vala"
- return basic_properties_construct (TYPE_BASIC_PROPERTIES);
-#line 1944 "Properties.c"
-}
-
-
-static void
-basic_properties_real_clear_properties (Properties* base)
-{
- BasicProperties * self;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 174 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties);
-#line 175 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_CLASS (basic_properties_parent_class)->clear_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties));
-#line 176 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = g_strdup ("");
-#line 176 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->title);
-#line 176 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->title = _tmp0_;
-#line 177 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = (time_t) 0;
-#line 178 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = (time_t) 0;
-#line 179 "/home/jens/Source/shotwell/src/Properties.vala"
- dimensions_init (&self->priv->dimensions, 0, 0);
-#line 180 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->photo_count = -1;
-#line 181 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->event_count = -1;
-#line 182 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->video_count = -1;
-#line 183 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = g_strdup ("");
-#line 183 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure);
-#line 183 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure = _tmp1_;
-#line 184 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = g_strdup ("");
-#line 184 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->aperture);
-#line 184 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->aperture = _tmp2_;
-#line 185 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = g_strdup ("");
-#line 185 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->iso);
-#line 185 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->iso = _tmp3_;
-#line 186 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->clip_duration = 0.0;
-#line 187 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = g_strdup ("");
-#line 187 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->raw_developer);
-#line 187 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->raw_developer = _tmp4_;
-#line 188 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = g_strdup ("");
-#line 188 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->raw_assoc);
-#line 188 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->raw_assoc = _tmp5_;
-#line 2012 "Properties.c"
-}
-
-
-static gpointer
-_media_metadata_ref0 (gpointer self)
-{
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- return self ? media_metadata_ref (self) : NULL;
-#line 2021 "Properties.c"
-}
-
-
-static void
-basic_properties_real_get_single_properties (Properties* base,
- DataView* view)
-{
- BasicProperties * self;
- DataSource* source = NULL;
- DataSource* _tmp0_;
- DataSource* _tmp1_;
- gchar* _tmp2_;
- gboolean _tmp3_ = FALSE;
- DataSource* _tmp4_;
-#line 191 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties);
-#line 191 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 192 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_CLASS (basic_properties_parent_class)->get_single_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), view);
-#line 194 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = data_view_get_source (view);
-#line 194 "/home/jens/Source/shotwell/src/Properties.vala"
- source = _tmp0_;
-#line 196 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = source;
-#line 196 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
-#line 196 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->title);
-#line 196 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->title = _tmp2_;
-#line 198 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = source;
-#line 198 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PHOTO_SOURCE)) {
-#line 198 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = TRUE;
-#line 2060 "Properties.c"
- } else {
- DataSource* _tmp5_;
-#line 198 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = source;
-#line 198 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PHOTO_IMPORT_SOURCE);
-#line 2067 "Properties.c"
- }
-#line 198 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp3_) {
-#line 2071 "Properties.c"
- time_t _tmp6_ = 0;
- DataSource* _tmp7_;
- time_t _tmp10_;
- PhotoMetadata* _tmp11_ = NULL;
- DataSource* _tmp12_;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp17_;
- PhotoMetadata* _tmp18_;
- DataSource* _tmp42_;
- gboolean _tmp45_ = FALSE;
- DataSource* _tmp46_;
-#line 199 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = source;
-#line 199 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO_SOURCE)) {
-#line 2087 "Properties.c"
- DataSource* _tmp8_;
-#line 199 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = source;
-#line 199 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_MEDIA_SOURCE, MediaSource));
-#line 2093 "Properties.c"
- } else {
- DataSource* _tmp9_;
-#line 200 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = source;
-#line 200 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource), TYPE_IMPORT_SOURCE, ImportSource));
-#line 2100 "Properties.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = _tmp6_;
-#line 201 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = self->priv->start_time;
-#line 201 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = _tmp10_;
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = source;
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_PHOTO_SOURCE)) {
-#line 2112 "Properties.c"
- DataSource* _tmp13_;
- PhotoMetadata* _tmp14_;
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp13_ = source;
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (_tmp11_);
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = _tmp14_;
-#line 2123 "Properties.c"
- } else {
- DataSource* _tmp15_;
- PhotoMetadata* _tmp16_;
-#line 204 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = source;
-#line 204 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = photo_import_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource));
-#line 204 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (_tmp11_);
-#line 204 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = _tmp16_;
-#line 2135 "Properties.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = _media_metadata_ref0 (_tmp11_);
-#line 203 "/home/jens/Source/shotwell/src/Properties.vala"
- metadata = _tmp17_;
-#line 206 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp18_ = metadata;
-#line 206 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp18_ != NULL) {
-#line 2145 "Properties.c"
- PhotoMetadata* _tmp19_;
- gchar* _tmp20_;
- const gchar* _tmp21_;
- PhotoMetadata* _tmp23_;
- gchar* _tmp24_;
- const gchar* _tmp25_;
- PhotoMetadata* _tmp27_;
- gchar* _tmp28_;
- const gchar* _tmp29_;
- Dimensions _tmp31_ = {0};
- PhotoMetadata* _tmp32_;
- Dimensions* _tmp33_;
- Dimensions* _tmp34_;
- gboolean _tmp35_;
-#line 207 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = metadata;
-#line 207 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp20_ = photo_metadata_get_exposure_string (_tmp19_);
-#line 207 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure);
-#line 207 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure = _tmp20_;
-#line 208 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp21_ = self->priv->exposure;
-#line 208 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp21_ == NULL) {
-#line 2172 "Properties.c"
- gchar* _tmp22_;
-#line 209 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp22_ = g_strdup ("");
-#line 209 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure);
-#line 209 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure = _tmp22_;
-#line 2180 "Properties.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp23_ = metadata;
-#line 211 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp24_ = photo_metadata_get_aperture_string (_tmp23_, TRUE);
-#line 211 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->aperture);
-#line 211 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->aperture = _tmp24_;
-#line 212 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp25_ = self->priv->aperture;
-#line 212 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp25_ == NULL) {
-#line 2194 "Properties.c"
- gchar* _tmp26_;
-#line 213 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp26_ = g_strdup ("");
-#line 213 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->aperture);
-#line 213 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->aperture = _tmp26_;
-#line 2202 "Properties.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp27_ = metadata;
-#line 215 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp28_ = photo_metadata_get_iso_string (_tmp27_);
-#line 215 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->iso);
-#line 215 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->iso = _tmp28_;
-#line 216 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp29_ = self->priv->iso;
-#line 216 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp29_ == NULL) {
-#line 2216 "Properties.c"
- gchar* _tmp30_;
-#line 217 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp30_ = g_strdup ("");
-#line 217 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->iso);
-#line 217 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->iso = _tmp30_;
-#line 2224 "Properties.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp32_ = metadata;
-#line 219 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp33_ = photo_metadata_get_pixel_dimensions (_tmp32_);
-#line 219 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp34_ = _tmp33_;
-#line 219 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp35_ = _tmp34_ != NULL;
-#line 219 "/home/jens/Source/shotwell/src/Properties.vala"
- _dimensions_free0 (_tmp34_);
-#line 219 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp35_) {
-#line 2238 "Properties.c"
- PhotoMetadata* _tmp36_;
- PhotoMetadata* _tmp37_;
- Dimensions* _tmp38_;
- Dimensions* _tmp39_;
- Dimensions _tmp40_;
- Dimensions _tmp41_ = {0};
-#line 220 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp36_ = metadata;
-#line 220 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp37_ = metadata;
-#line 220 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp38_ = photo_metadata_get_pixel_dimensions (_tmp37_);
-#line 220 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp39_ = _tmp38_;
-#line 220 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp40_ = *_tmp39_;
-#line 220 "/home/jens/Source/shotwell/src/Properties.vala"
- orientation_rotate_dimensions (photo_metadata_get_orientation (_tmp36_), &_tmp40_, &_tmp41_);
-#line 220 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp31_ = _tmp41_;
-#line 220 "/home/jens/Source/shotwell/src/Properties.vala"
- _dimensions_free0 (_tmp39_);
-#line 2261 "Properties.c"
- } else {
-#line 221 "/home/jens/Source/shotwell/src/Properties.vala"
- dimensions_init (&_tmp31_, 0, 0);
-#line 2265 "Properties.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->dimensions = _tmp31_;
-#line 2269 "Properties.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp42_ = source;
-#line 224 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, TYPE_PHOTO_SOURCE)) {
-#line 2275 "Properties.c"
- DataSource* _tmp43_;
- Dimensions _tmp44_ = {0};
-#line 225 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp43_ = source;
-#line 225 "/home/jens/Source/shotwell/src/Properties.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp44_);
-#line 225 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->dimensions = _tmp44_;
-#line 2284 "Properties.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp46_ = source;
-#line 227 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp46_, TYPE_PHOTO)) {
-#line 2290 "Properties.c"
- DataSource* _tmp47_;
-#line 227 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp47_ = source;
-#line 227 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp45_ = photo_get_master_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PHOTO, Photo)) == PHOTO_FILE_FORMAT_RAW;
-#line 2296 "Properties.c"
- } else {
-#line 227 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp45_ = FALSE;
-#line 2300 "Properties.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp45_) {
-#line 2304 "Properties.c"
- Photo* photo = NULL;
- DataSource* _tmp48_;
- Photo* _tmp49_;
- Photo* _tmp50_;
- gchar* _tmp51_;
- const gchar* _tmp52_ = NULL;
- Photo* _tmp53_;
- gchar* _tmp54_;
-#line 228 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp48_ = source;
-#line 228 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp49_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp48_, TYPE_PHOTO) ? ((Photo*) _tmp48_) : NULL);
-#line 228 "/home/jens/Source/shotwell/src/Properties.vala"
- photo = _tmp49_;
-#line 229 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp50_ = photo;
-#line 229 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp51_ = raw_developer_get_label (photo_get_raw_developer (_tmp50_));
-#line 229 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->raw_developer);
-#line 229 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->raw_developer = _tmp51_;
-#line 230 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp53_ = photo;
-#line 230 "/home/jens/Source/shotwell/src/Properties.vala"
- if (photo_is_raw_developer_available (_tmp53_, RAW_DEVELOPER_CAMERA)) {
-#line 230 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp52_ = _ ("RAW+JPEG");
-#line 2333 "Properties.c"
- } else {
-#line 230 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp52_ = "";
-#line 2337 "Properties.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp54_ = g_strdup (_tmp52_);
-#line 230 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->raw_assoc);
-#line 230 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->raw_assoc = _tmp54_;
-#line 227 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (photo);
-#line 2347 "Properties.c"
- }
-#line 198 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (metadata);
-#line 198 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (_tmp11_);
-#line 2353 "Properties.c"
- } else {
- DataSource* _tmp55_;
-#line 232 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp55_ = source;
-#line 232 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp55_, TYPE_EVENT_SOURCE)) {
-#line 2360 "Properties.c"
- EventSource* event_source = NULL;
- DataSource* _tmp56_;
- EventSource* _tmp57_;
- EventSource* _tmp58_;
- EventSource* _tmp59_;
- gint event_photo_count = 0;
- gint event_video_count = 0;
- EventSource* _tmp60_;
- GeeCollection* _tmp61_;
- GeeCollection* _tmp62_;
- gint _tmp63_ = 0;
- gint _tmp64_ = 0;
- gint _tmp65_;
- gint _tmp66_;
-#line 233 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp56_ = source;
-#line 233 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp57_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_EVENT_SOURCE, EventSource));
-#line 233 "/home/jens/Source/shotwell/src/Properties.vala"
- event_source = _tmp57_;
-#line 235 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp58_ = event_source;
-#line 235 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = event_source_get_start_time (_tmp58_);
-#line 236 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp59_ = event_source;
-#line 236 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = event_source_get_end_time (_tmp59_);
-#line 240 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp60_ = event_source;
-#line 240 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp61_ = event_source_get_media (_tmp60_);
-#line 240 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp62_ = _tmp61_;
-#line 240 "/home/jens/Source/shotwell/src/Properties.vala"
- media_source_collection_count_media (_tmp62_, &_tmp63_, &_tmp64_);
-#line 240 "/home/jens/Source/shotwell/src/Properties.vala"
- event_photo_count = _tmp63_;
-#line 240 "/home/jens/Source/shotwell/src/Properties.vala"
- event_video_count = _tmp64_;
-#line 240 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (_tmp62_);
-#line 243 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp65_ = event_photo_count;
-#line 243 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->photo_count = _tmp65_;
-#line 244 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp66_ = event_video_count;
-#line 244 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->video_count = _tmp66_;
-#line 232 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (event_source);
-#line 2413 "Properties.c"
- } else {
- gboolean _tmp67_ = FALSE;
- DataSource* _tmp68_;
-#line 245 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp68_ = source;
-#line 245 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp68_, TYPE_VIDEO_SOURCE)) {
-#line 245 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp67_ = TRUE;
-#line 2423 "Properties.c"
- } else {
- DataSource* _tmp69_;
-#line 245 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp69_ = source;
-#line 245 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp67_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp69_, TYPE_VIDEO_IMPORT_SOURCE);
-#line 2430 "Properties.c"
- }
-#line 245 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp67_) {
-#line 2434 "Properties.c"
- DataSource* _tmp70_;
- time_t _tmp79_;
-#line 246 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp70_ = source;
-#line 246 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp70_, TYPE_VIDEO_SOURCE)) {
-#line 2441 "Properties.c"
- Video* video = NULL;
- DataSource* _tmp71_;
- Video* _tmp72_;
- Video* _tmp73_;
- Video* _tmp74_;
- Video* _tmp77_;
-#line 247 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp71_ = source;
-#line 247 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp72_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, TYPE_VIDEO, Video));
-#line 247 "/home/jens/Source/shotwell/src/Properties.vala"
- video = _tmp72_;
-#line 248 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp73_ = video;
-#line 248 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->clip_duration = video_get_clip_duration (_tmp73_);
-#line 250 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp74_ = video;
-#line 250 "/home/jens/Source/shotwell/src/Properties.vala"
- if (video_get_is_interpretable (_tmp74_)) {
-#line 2462 "Properties.c"
- Video* _tmp75_;
- Dimensions _tmp76_ = {0};
-#line 251 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp75_ = video;
-#line 251 "/home/jens/Source/shotwell/src/Properties.vala"
- video_get_frame_dimensions (_tmp75_, &_tmp76_);
-#line 251 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->dimensions = _tmp76_;
-#line 2471 "Properties.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp77_ = video;
-#line 253 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 246 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (video);
-#line 2479 "Properties.c"
- } else {
- DataSource* _tmp78_;
-#line 255 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp78_ = source;
-#line 255 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource), TYPE_IMPORT_SOURCE, ImportSource));
-#line 2486 "Properties.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp79_ = self->priv->start_time;
-#line 257 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = _tmp79_;
-#line 2492 "Properties.c"
- }
- }
- }
-#line 191 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (source);
-#line 2498 "Properties.c"
-}
-
-
-static void
-basic_properties_real_get_multiple_properties (Properties* base,
- GeeIterable* iter)
-{
- BasicProperties * self;
-#line 261 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties);
-#line 261 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail ((iter == NULL) || GEE_IS_ITERABLE (iter));
-#line 262 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_CLASS (basic_properties_parent_class)->get_multiple_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), iter);
-#line 264 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->photo_count = 0;
-#line 265 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->video_count = 0;
-#line 2517 "Properties.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp0_;
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = gee_iterable_iterator (iter);
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- _view_it = _tmp0_;
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- while (TRUE) {
-#line 2527 "Properties.c"
- GeeIterator* _tmp1_;
- DataView* view = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* source = NULL;
- DataView* _tmp4_;
- DataSource* _tmp5_;
- gboolean _tmp6_ = FALSE;
- DataSource* _tmp7_;
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = _view_it;
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- break;
-#line 2543 "Properties.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = _view_it;
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- view = (DataView*) _tmp3_;
-#line 267 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = view;
-#line 267 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = data_view_get_source (_tmp4_);
-#line 267 "/home/jens/Source/shotwell/src/Properties.vala"
- source = _tmp5_;
-#line 269 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = source;
-#line 269 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO_SOURCE)) {
-#line 269 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = TRUE;
-#line 2563 "Properties.c"
- } else {
- DataSource* _tmp8_;
-#line 269 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = source;
-#line 269 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_PHOTO_IMPORT_SOURCE);
-#line 2570 "Properties.c"
- }
-#line 269 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp6_) {
-#line 2574 "Properties.c"
- time_t _tmp9_ = 0;
- DataSource* _tmp10_;
- time_t exposure_time = 0;
- time_t _tmp13_;
- gint _tmp24_;
-#line 270 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = source;
-#line 270 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_PHOTO_SOURCE)) {
-#line 2584 "Properties.c"
- DataSource* _tmp11_;
-#line 271 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = source;
-#line 271 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_MEDIA_SOURCE, MediaSource));
-#line 2590 "Properties.c"
- } else {
- DataSource* _tmp12_;
-#line 272 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = source;
-#line 272 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource), TYPE_IMPORT_SOURCE, ImportSource));
-#line 2597 "Properties.c"
- }
-#line 270 "/home/jens/Source/shotwell/src/Properties.vala"
- exposure_time = _tmp9_;
-#line 274 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp13_ = exposure_time;
-#line 274 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp13_ != ((time_t) 0)) {
-#line 2605 "Properties.c"
- gboolean _tmp14_ = FALSE;
- time_t _tmp15_;
- gboolean _tmp19_ = FALSE;
- time_t _tmp20_;
-#line 275 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = self->priv->start_time;
-#line 275 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp15_ == ((time_t) 0)) {
-#line 275 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = TRUE;
-#line 2616 "Properties.c"
- } else {
- time_t _tmp16_;
- time_t _tmp17_;
-#line 275 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = exposure_time;
-#line 275 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = self->priv->start_time;
-#line 275 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = _tmp16_ < _tmp17_;
-#line 2626 "Properties.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp14_) {
-#line 2630 "Properties.c"
- time_t _tmp18_;
-#line 276 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp18_ = exposure_time;
-#line 276 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = _tmp18_;
-#line 2636 "Properties.c"
- }
-#line 278 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp20_ = self->priv->end_time;
-#line 278 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp20_ == ((time_t) 0)) {
-#line 278 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = TRUE;
-#line 2644 "Properties.c"
- } else {
- time_t _tmp21_;
- time_t _tmp22_;
-#line 278 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp21_ = exposure_time;
-#line 278 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp22_ = self->priv->end_time;
-#line 278 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = _tmp21_ > _tmp22_;
-#line 2654 "Properties.c"
- }
-#line 278 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp19_) {
-#line 2658 "Properties.c"
- time_t _tmp23_;
-#line 279 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp23_ = exposure_time;
-#line 279 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = _tmp23_;
-#line 2664 "Properties.c"
- }
- }
-#line 282 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp24_ = self->priv->photo_count;
-#line 282 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->photo_count = _tmp24_ + 1;
-#line 2671 "Properties.c"
- } else {
- DataSource* _tmp25_;
-#line 283 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp25_ = source;
-#line 283 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, TYPE_EVENT_SOURCE)) {
-#line 2678 "Properties.c"
- EventSource* event_source = NULL;
- DataSource* _tmp26_;
- EventSource* _tmp27_;
- gint _tmp28_;
- gboolean _tmp29_ = FALSE;
- gboolean _tmp30_ = FALSE;
- time_t _tmp31_;
- gboolean _tmp36_ = FALSE;
- gboolean _tmp37_ = FALSE;
- time_t _tmp38_;
- gint event_photo_count = 0;
- gint event_video_count = 0;
- EventSource* _tmp48_;
- GeeCollection* _tmp49_;
- GeeCollection* _tmp50_;
- gint _tmp51_ = 0;
- gint _tmp52_ = 0;
- gint _tmp53_;
- gint _tmp54_;
- gint _tmp55_;
- gint _tmp56_;
- gint _tmp57_;
-#line 284 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp26_ = source;
-#line 284 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_EVENT_SOURCE, EventSource));
-#line 284 "/home/jens/Source/shotwell/src/Properties.vala"
- event_source = _tmp27_;
-#line 286 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp28_ = self->priv->event_count;
-#line 286 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp28_ == -1) {
-#line 287 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->event_count = 0;
-#line 2713 "Properties.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp31_ = self->priv->start_time;
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp31_ == ((time_t) 0)) {
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp30_ = TRUE;
-#line 2721 "Properties.c"
- } else {
- EventSource* _tmp32_;
- time_t _tmp33_;
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp32_ = event_source;
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp33_ = self->priv->start_time;
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp30_ = event_source_get_start_time (_tmp32_) < _tmp33_;
-#line 2731 "Properties.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp30_) {
-#line 2735 "Properties.c"
- EventSource* _tmp34_;
-#line 290 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp34_ = event_source;
-#line 290 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp29_ = event_source_get_start_time (_tmp34_) != ((time_t) 0);
-#line 2741 "Properties.c"
- } else {
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp29_ = FALSE;
-#line 2745 "Properties.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp29_) {
-#line 2749 "Properties.c"
- EventSource* _tmp35_;
-#line 291 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp35_ = event_source;
-#line 291 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = event_source_get_start_time (_tmp35_);
-#line 2755 "Properties.c"
- }
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp38_ = self->priv->end_time;
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp38_ == ((time_t) 0)) {
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp37_ = TRUE;
-#line 2763 "Properties.c"
- } else {
- EventSource* _tmp39_;
- time_t _tmp40_;
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp39_ = event_source;
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp40_ = self->priv->end_time;
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp37_ = event_source_get_end_time (_tmp39_) > _tmp40_;
-#line 2773 "Properties.c"
- }
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp37_) {
-#line 2777 "Properties.c"
- EventSource* _tmp41_;
-#line 294 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp41_ = event_source;
-#line 294 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp36_ = event_source_get_end_time (_tmp41_) != ((time_t) 0);
-#line 2783 "Properties.c"
- } else {
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp36_ = FALSE;
-#line 2787 "Properties.c"
- }
-#line 293 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp36_) {
-#line 2791 "Properties.c"
- EventSource* _tmp42_;
-#line 295 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp42_ = event_source;
-#line 295 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = event_source_get_end_time (_tmp42_);
-#line 2797 "Properties.c"
- } else {
- gboolean _tmp43_ = FALSE;
- time_t _tmp44_;
-#line 296 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp44_ = self->priv->end_time;
-#line 296 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp44_ == ((time_t) 0)) {
-#line 296 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp43_ = TRUE;
-#line 2807 "Properties.c"
- } else {
- EventSource* _tmp45_;
- time_t _tmp46_;
-#line 296 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp45_ = event_source;
-#line 296 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp46_ = self->priv->end_time;
-#line 296 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp43_ = event_source_get_start_time (_tmp45_) > _tmp46_;
-#line 2817 "Properties.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp43_) {
-#line 2821 "Properties.c"
- EventSource* _tmp47_;
-#line 297 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp47_ = event_source;
-#line 297 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = event_source_get_start_time (_tmp47_);
-#line 2827 "Properties.c"
- }
- }
-#line 302 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp48_ = event_source;
-#line 302 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp49_ = event_source_get_media (_tmp48_);
-#line 302 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp50_ = _tmp49_;
-#line 302 "/home/jens/Source/shotwell/src/Properties.vala"
- media_source_collection_count_media (_tmp50_, &_tmp51_, &_tmp52_);
-#line 302 "/home/jens/Source/shotwell/src/Properties.vala"
- event_photo_count = _tmp51_;
-#line 302 "/home/jens/Source/shotwell/src/Properties.vala"
- event_video_count = _tmp52_;
-#line 302 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (_tmp50_);
-#line 305 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp53_ = self->priv->photo_count;
-#line 305 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp54_ = event_photo_count;
-#line 305 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->photo_count = _tmp53_ + _tmp54_;
-#line 306 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp55_ = self->priv->video_count;
-#line 306 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp56_ = event_video_count;
-#line 306 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->video_count = _tmp55_ + _tmp56_;
-#line 307 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp57_ = self->priv->event_count;
-#line 307 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->event_count = _tmp57_ + 1;
-#line 283 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (event_source);
-#line 2862 "Properties.c"
- } else {
- gboolean _tmp58_ = FALSE;
- DataSource* _tmp59_;
-#line 308 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp59_ = source;
-#line 308 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp59_, TYPE_VIDEO_SOURCE)) {
-#line 308 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp58_ = TRUE;
-#line 2872 "Properties.c"
- } else {
- DataSource* _tmp60_;
-#line 308 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp60_ = source;
-#line 308 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp58_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp60_, TYPE_VIDEO_IMPORT_SOURCE);
-#line 2879 "Properties.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp58_) {
-#line 2883 "Properties.c"
- time_t _tmp61_ = 0;
- DataSource* _tmp62_;
- time_t exposure_time = 0;
- time_t _tmp65_;
- gint _tmp76_;
-#line 309 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp62_ = source;
-#line 309 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp62_, TYPE_VIDEO_SOURCE)) {
-#line 2893 "Properties.c"
- DataSource* _tmp63_;
-#line 310 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp63_ = source;
-#line 310 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp61_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_VIDEO_SOURCE, VideoSource), TYPE_MEDIA_SOURCE, MediaSource));
-#line 2899 "Properties.c"
- } else {
- DataSource* _tmp64_;
-#line 311 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp64_ = source;
-#line 311 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp61_ = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource), TYPE_IMPORT_SOURCE, ImportSource));
-#line 2906 "Properties.c"
- }
-#line 309 "/home/jens/Source/shotwell/src/Properties.vala"
- exposure_time = _tmp61_;
-#line 313 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp65_ = exposure_time;
-#line 313 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp65_ != ((time_t) 0)) {
-#line 2914 "Properties.c"
- gboolean _tmp66_ = FALSE;
- time_t _tmp67_;
- gboolean _tmp71_ = FALSE;
- time_t _tmp72_;
-#line 314 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp67_ = self->priv->start_time;
-#line 314 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp67_ == ((time_t) 0)) {
-#line 314 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp66_ = TRUE;
-#line 2925 "Properties.c"
- } else {
- time_t _tmp68_;
- time_t _tmp69_;
-#line 314 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp68_ = exposure_time;
-#line 314 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp69_ = self->priv->start_time;
-#line 314 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp66_ = _tmp68_ < _tmp69_;
-#line 2935 "Properties.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp66_) {
-#line 2939 "Properties.c"
- time_t _tmp70_;
-#line 315 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp70_ = exposure_time;
-#line 315 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = _tmp70_;
-#line 2945 "Properties.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp72_ = self->priv->end_time;
-#line 317 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp72_ == ((time_t) 0)) {
-#line 317 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp71_ = TRUE;
-#line 2953 "Properties.c"
- } else {
- time_t _tmp73_;
- time_t _tmp74_;
-#line 317 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp73_ = exposure_time;
-#line 317 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp74_ = self->priv->end_time;
-#line 317 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp71_ = _tmp73_ > _tmp74_;
-#line 2963 "Properties.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp71_) {
-#line 2967 "Properties.c"
- time_t _tmp75_;
-#line 318 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp75_ = exposure_time;
-#line 318 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = _tmp75_;
-#line 2973 "Properties.c"
- }
- }
-#line 321 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp76_ = self->priv->video_count;
-#line 321 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->video_count = _tmp76_ + 1;
-#line 2980 "Properties.c"
- }
- }
- }
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (source);
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (view);
-#line 2988 "Properties.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (_view_it);
-#line 2992 "Properties.c"
- }
-}
-
-
-static void
-basic_properties_real_get_properties (Properties* base,
- Page* current_page)
-{
- BasicProperties * self;
- time_t _tmp0_;
- time_t _tmp2_;
-#line 326 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties);
-#line 326 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PAGE (current_page));
-#line 327 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_CLASS (basic_properties_parent_class)->get_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), current_page);
-#line 329 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = self->priv->end_time;
-#line 329 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp0_ == ((time_t) 0)) {
-#line 3014 "Properties.c"
- time_t _tmp1_;
-#line 330 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = self->priv->start_time;
-#line 330 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = _tmp1_;
-#line 3020 "Properties.c"
- }
-#line 331 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = self->priv->start_time;
-#line 331 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp2_ == ((time_t) 0)) {
-#line 3026 "Properties.c"
- time_t _tmp3_;
-#line 332 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = self->priv->end_time;
-#line 332 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = _tmp3_;
-#line 3032 "Properties.c"
- }
-}
-
-
-static void
-basic_properties_real_internal_update_properties (Properties* base,
- Page* page)
-{
- BasicProperties * self;
- gboolean _tmp0_ = FALSE;
- const gchar* _tmp1_;
- const gchar* _tmp5_;
- gboolean _tmp9_ = FALSE;
- gint _tmp10_;
- time_t _tmp35_;
- gdouble _tmp67_;
- const gchar* _tmp71_;
- const gchar* _tmp73_;
- gboolean _tmp75_ = FALSE;
- gboolean _tmp76_ = FALSE;
- const gchar* _tmp77_;
-#line 335 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties);
-#line 335 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 336 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_CLASS (basic_properties_parent_class)->internal_update_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), page);
-#line 339 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = self->priv->title;
-#line 339 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp1_, "") == 0) {
-#line 339 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_TAG_PAGE);
-#line 3066 "Properties.c"
- } else {
-#line 339 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = FALSE;
-#line 3070 "Properties.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp0_) {
-#line 3074 "Properties.c"
- Tag* _tmp2_;
- Tag* _tmp3_;
- gchar* _tmp4_;
-#line 340 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = tag_page_get_tag (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_TAG_PAGE, TagPage));
-#line 340 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = _tmp2_;
-#line 340 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = tag_get_user_visible_name (_tmp3_);
-#line 340 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->title);
-#line 340 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->title = _tmp4_;
-#line 340 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (_tmp3_);
-#line 3090 "Properties.c"
- }
-#line 342 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = self->priv->title;
-#line 342 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp5_, "") != 0) {
-#line 3096 "Properties.c"
- const gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 343 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = self->priv->title;
-#line 343 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = guarded_markup_escape_text (_tmp6_);
-#line 343 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = _tmp7_;
-#line 343 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Title:"), _tmp8_, FALSE);
-#line 343 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp8_);
-#line 3110 "Properties.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = self->priv->photo_count;
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp10_ >= 0) {
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = TRUE;
-#line 3118 "Properties.c"
- } else {
- gint _tmp11_;
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = self->priv->video_count;
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = _tmp11_ >= 0;
-#line 3125 "Properties.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp9_) {
-#line 3129 "Properties.c"
- gchar* label = NULL;
- gchar* _tmp12_;
- gint _tmp13_;
- gchar* photo_num_string = NULL;
- gint _tmp20_;
- gint _tmp21_;
- gchar* _tmp22_;
- gchar* video_num_string = NULL;
- gint _tmp23_;
- gint _tmp24_;
- gchar* _tmp25_;
- gboolean _tmp26_ = FALSE;
- gint _tmp27_;
- const gchar* _tmp31_;
- const gchar* _tmp32_;
- gint _tmp33_;
-#line 346 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = g_strdup (_ ("Items:"));
-#line 346 "/home/jens/Source/shotwell/src/Properties.vala"
- label = _tmp12_;
-#line 348 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp13_ = self->priv->event_count;
-#line 348 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp13_ >= 0) {
-#line 3154 "Properties.c"
- gchar* event_num_string = NULL;
- gint _tmp14_;
- gint _tmp15_;
- gchar* _tmp16_;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
-#line 349 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = self->priv->event_count;
-#line 349 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = self->priv->event_count;
-#line 349 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = g_strdup_printf (ngettext ("%d Event", "%d Events", (gulong) _tmp14_), _tmp15_);
-#line 349 "/home/jens/Source/shotwell/src/Properties.vala"
- event_num_string = _tmp16_;
-#line 352 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = label;
-#line 352 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp18_ = event_num_string;
-#line 352 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _tmp17_, _tmp18_, FALSE);
-#line 353 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = g_strdup ("");
-#line 353 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (label);
-#line 353 "/home/jens/Source/shotwell/src/Properties.vala"
- label = _tmp19_;
-#line 348 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (event_num_string);
-#line 3184 "Properties.c"
- }
-#line 356 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp20_ = self->priv->photo_count;
-#line 356 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp21_ = self->priv->photo_count;
-#line 356 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp22_ = g_strdup_printf (ngettext ("%d Photo", "%d Photos", (gulong) _tmp20_), _tmp21_);
-#line 356 "/home/jens/Source/shotwell/src/Properties.vala"
- photo_num_string = _tmp22_;
-#line 358 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp23_ = self->priv->video_count;
-#line 358 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp24_ = self->priv->video_count;
-#line 358 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp25_ = g_strdup_printf (ngettext ("%d Video", "%d Videos", (gulong) _tmp23_), _tmp24_);
-#line 358 "/home/jens/Source/shotwell/src/Properties.vala"
- video_num_string = _tmp25_;
-#line 361 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp27_ = self->priv->photo_count;
-#line 361 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp27_ == 0) {
-#line 3206 "Properties.c"
- gint _tmp28_;
-#line 361 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp28_ = self->priv->video_count;
-#line 361 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp26_ = _tmp28_ > 0;
-#line 3212 "Properties.c"
- } else {
-#line 361 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp26_ = FALSE;
-#line 3216 "Properties.c"
- }
-#line 361 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp26_) {
-#line 3220 "Properties.c"
- const gchar* _tmp29_;
- const gchar* _tmp30_;
-#line 362 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp29_ = label;
-#line 362 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp30_ = video_num_string;
-#line 362 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _tmp29_, _tmp30_, FALSE);
-#line 363 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (video_num_string);
-#line 363 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (photo_num_string);
-#line 363 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (label);
-#line 363 "/home/jens/Source/shotwell/src/Properties.vala"
- return;
-#line 3237 "Properties.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp31_ = label;
-#line 366 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp32_ = photo_num_string;
-#line 366 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _tmp31_, _tmp32_, FALSE);
-#line 368 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp33_ = self->priv->video_count;
-#line 368 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp33_ > 0) {
-#line 3249 "Properties.c"
- const gchar* _tmp34_;
-#line 369 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp34_ = video_num_string;
-#line 369 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), "", _tmp34_, FALSE);
-#line 3255 "Properties.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (video_num_string);
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (photo_num_string);
-#line 345 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (label);
-#line 3263 "Properties.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp35_ = self->priv->start_time;
-#line 372 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp35_ != ((time_t) 0)) {
-#line 3269 "Properties.c"
- gchar* start_date = NULL;
- time_t _tmp36_;
- struct tm _tmp37_ = {0};
- gchar* _tmp38_;
- gchar* start_time = NULL;
- time_t _tmp39_;
- struct tm _tmp40_ = {0};
- gchar* _tmp41_;
- gchar* end_date = NULL;
- time_t _tmp42_;
- struct tm _tmp43_ = {0};
- gchar* _tmp44_;
- gchar* end_time = NULL;
- time_t _tmp45_;
- struct tm _tmp46_ = {0};
- gchar* _tmp47_;
- const gchar* _tmp48_;
- const gchar* _tmp49_;
-#line 373 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp36_ = self->priv->start_time;
-#line 373 "/home/jens/Source/shotwell/src/Properties.vala"
- g_time_local (_tmp36_, &_tmp37_);
-#line 373 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp38_ = properties_get_prettyprint_date (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp37_);
-#line 373 "/home/jens/Source/shotwell/src/Properties.vala"
- start_date = _tmp38_;
-#line 374 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp39_ = self->priv->start_time;
-#line 374 "/home/jens/Source/shotwell/src/Properties.vala"
- g_time_local (_tmp39_, &_tmp40_);
-#line 374 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp41_ = properties_get_prettyprint_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp40_);
-#line 374 "/home/jens/Source/shotwell/src/Properties.vala"
- start_time = _tmp41_;
-#line 375 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp42_ = self->priv->end_time;
-#line 375 "/home/jens/Source/shotwell/src/Properties.vala"
- g_time_local (_tmp42_, &_tmp43_);
-#line 375 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp44_ = properties_get_prettyprint_date (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp43_);
-#line 375 "/home/jens/Source/shotwell/src/Properties.vala"
- end_date = _tmp44_;
-#line 376 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp45_ = self->priv->end_time;
-#line 376 "/home/jens/Source/shotwell/src/Properties.vala"
- g_time_local (_tmp45_, &_tmp46_);
-#line 376 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp47_ = properties_get_prettyprint_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp46_);
-#line 376 "/home/jens/Source/shotwell/src/Properties.vala"
- end_time = _tmp47_;
-#line 378 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp48_ = start_date;
-#line 378 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp49_ = end_date;
-#line 378 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp48_, _tmp49_) == 0) {
-#line 3326 "Properties.c"
- const gchar* _tmp50_;
- const gchar* _tmp51_;
- const gchar* _tmp52_;
-#line 380 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp50_ = start_date;
-#line 380 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Date:"), _tmp50_, FALSE);
-#line 382 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp51_ = start_time;
-#line 382 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp52_ = end_time;
-#line 382 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp51_, _tmp52_) == 0) {
-#line 3340 "Properties.c"
- const gchar* _tmp53_;
-#line 384 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp53_ = start_time;
-#line 384 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Time:"), _tmp53_, FALSE);
-#line 3346 "Properties.c"
- } else {
- const gchar* _tmp54_;
- const gchar* _tmp55_;
-#line 387 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp54_ = start_time;
-#line 387 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("From:"), _tmp54_, FALSE);
-#line 388 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp55_ = end_time;
-#line 388 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("To:"), _tmp55_, FALSE);
-#line 3358 "Properties.c"
- }
- } else {
- const gchar* _tmp56_;
- const gchar* _tmp57_;
-#line 392 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp56_ = start_date;
-#line 392 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("From:"), _tmp56_, FALSE);
-#line 393 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp57_ = end_date;
-#line 393 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("To:"), _tmp57_, FALSE);
-#line 3371 "Properties.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (end_time);
-#line 372 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (end_date);
-#line 372 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (start_time);
-#line 372 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (start_date);
-#line 3381 "Properties.c"
- }
-#line 397 "/home/jens/Source/shotwell/src/Properties.vala"
- if (dimensions_has_area (&self->priv->dimensions)) {
-#line 3385 "Properties.c"
- gchar* label = NULL;
- gchar* _tmp58_;
-#line 398 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp58_ = g_strdup (_ ("Size:"));
-#line 398 "/home/jens/Source/shotwell/src/Properties.vala"
- label = _tmp58_;
-#line 400 "/home/jens/Source/shotwell/src/Properties.vala"
- if (dimensions_has_area (&self->priv->dimensions)) {
-#line 3394 "Properties.c"
- const gchar* _tmp59_;
- Dimensions _tmp60_;
- gint _tmp61_;
- Dimensions _tmp62_;
- gint _tmp63_;
- gchar* _tmp64_;
- gchar* _tmp65_;
- gchar* _tmp66_;
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp59_ = label;
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp60_ = self->priv->dimensions;
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp61_ = _tmp60_.width;
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp62_ = self->priv->dimensions;
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp63_ = _tmp62_.height;
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp64_ = g_strdup_printf ("%d &#215; %d", _tmp61_, _tmp63_);
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp65_ = _tmp64_;
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _tmp59_, _tmp65_, FALSE);
-#line 401 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp65_);
-#line 402 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp66_ = g_strdup ("");
-#line 402 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (label);
-#line 402 "/home/jens/Source/shotwell/src/Properties.vala"
- label = _tmp66_;
-#line 3427 "Properties.c"
- }
-#line 397 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (label);
-#line 3431 "Properties.c"
- }
-#line 406 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp67_ = self->priv->clip_duration;
-#line 406 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp67_ > 0.0) {
-#line 3437 "Properties.c"
- gdouble _tmp68_;
- gchar* _tmp69_;
- gchar* _tmp70_;
-#line 407 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp68_ = self->priv->clip_duration;
-#line 407 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp69_ = g_strdup_printf (_ ("%.1f seconds"), _tmp68_);
-#line 407 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp70_ = _tmp69_;
-#line 407 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Duration:"), _tmp70_, FALSE);
-#line 407 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp70_);
-#line 3451 "Properties.c"
- }
-#line 410 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp71_ = self->priv->raw_developer;
-#line 410 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp71_, "") != 0) {
-#line 3457 "Properties.c"
- const gchar* _tmp72_;
-#line 411 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp72_ = self->priv->raw_developer;
-#line 411 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Developer:"), _tmp72_, FALSE);
-#line 3463 "Properties.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp73_ = self->priv->raw_assoc;
-#line 415 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp73_, "") != 0) {
-#line 3469 "Properties.c"
- const gchar* _tmp74_;
-#line 416 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp74_ = self->priv->raw_assoc;
-#line 416 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), "", _tmp74_, FALSE);
-#line 3475 "Properties.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp77_ = self->priv->exposure;
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp77_, "") != 0) {
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp76_ = TRUE;
-#line 3483 "Properties.c"
- } else {
- const gchar* _tmp78_;
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp78_ = self->priv->aperture;
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp76_ = g_strcmp0 (_tmp78_, "") != 0;
-#line 3490 "Properties.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp76_) {
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp75_ = TRUE;
-#line 3496 "Properties.c"
- } else {
- const gchar* _tmp79_;
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp79_ = self->priv->iso;
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp75_ = g_strcmp0 (_tmp79_, "") != 0;
-#line 3503 "Properties.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp75_) {
-#line 3507 "Properties.c"
- gchar* line = NULL;
- const gchar* _tmp80_;
- const gchar* _tmp83_;
- gboolean _tmp92_ = FALSE;
- gboolean _tmp93_ = FALSE;
- const gchar* _tmp94_;
-#line 419 "/home/jens/Source/shotwell/src/Properties.vala"
- line = NULL;
-#line 422 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp80_ = self->priv->exposure;
-#line 422 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp80_, "") != 0) {
-#line 3520 "Properties.c"
- const gchar* _tmp81_;
- gchar* _tmp82_;
-#line 423 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp81_ = self->priv->exposure;
-#line 423 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp82_ = g_strdup (_tmp81_);
-#line 423 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (line);
-#line 423 "/home/jens/Source/shotwell/src/Properties.vala"
- line = _tmp82_;
-#line 3531 "Properties.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp83_ = self->priv->aperture;
-#line 425 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp83_, "") != 0) {
-#line 3537 "Properties.c"
- const gchar* _tmp84_;
-#line 426 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp84_ = line;
-#line 426 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp84_ != NULL) {
-#line 3543 "Properties.c"
- const gchar* _tmp85_;
- const gchar* _tmp86_;
- gchar* _tmp87_;
- gchar* _tmp88_;
- gchar* _tmp89_;
-#line 427 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp85_ = line;
-#line 427 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp86_ = self->priv->aperture;
-#line 427 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp87_ = g_strconcat (", ", _tmp86_, NULL);
-#line 427 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp88_ = _tmp87_;
-#line 427 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp89_ = g_strconcat (_tmp85_, _tmp88_, NULL);
-#line 427 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (line);
-#line 427 "/home/jens/Source/shotwell/src/Properties.vala"
- line = _tmp89_;
-#line 427 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp88_);
-#line 3565 "Properties.c"
- } else {
- const gchar* _tmp90_;
- gchar* _tmp91_;
-#line 429 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp90_ = self->priv->aperture;
-#line 429 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp91_ = g_strdup (_tmp90_);
-#line 429 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (line);
-#line 429 "/home/jens/Source/shotwell/src/Properties.vala"
- line = _tmp91_;
-#line 3577 "Properties.c"
- }
- }
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp94_ = self->priv->exposure;
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp94_, "") == 0) {
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp93_ = TRUE;
-#line 3586 "Properties.c"
- } else {
- const gchar* _tmp95_;
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp95_ = self->priv->aperture;
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp93_ = g_strcmp0 (_tmp95_, "") == 0;
-#line 3593 "Properties.c"
- }
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp93_) {
-#line 3597 "Properties.c"
- const gchar* _tmp96_;
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp96_ = self->priv->iso;
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp92_ = g_strcmp0 (_tmp96_, "") != 0;
-#line 3603 "Properties.c"
- } else {
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp92_ = FALSE;
-#line 3607 "Properties.c"
- }
-#line 433 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp92_) {
-#line 3611 "Properties.c"
- const gchar* _tmp97_;
- const gchar* _tmp105_;
-#line 434 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp97_ = line;
-#line 434 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp97_ != NULL) {
-#line 3618 "Properties.c"
- const gchar* _tmp98_;
- const gchar* _tmp99_;
- gchar* _tmp100_;
- gchar* _tmp101_;
- gchar* _tmp102_;
-#line 435 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp98_ = line;
-#line 435 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp99_ = self->priv->iso;
-#line 435 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp100_ = g_strconcat (", " "ISO ", _tmp99_, NULL);
-#line 435 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp101_ = _tmp100_;
-#line 435 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp102_ = g_strconcat (_tmp98_, _tmp101_, NULL);
-#line 435 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (line);
-#line 435 "/home/jens/Source/shotwell/src/Properties.vala"
- line = _tmp102_;
-#line 435 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp101_);
-#line 3640 "Properties.c"
- } else {
- const gchar* _tmp103_;
- gchar* _tmp104_;
-#line 437 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp103_ = self->priv->iso;
-#line 437 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp104_ = g_strconcat ("ISO ", _tmp103_, NULL);
-#line 437 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (line);
-#line 437 "/home/jens/Source/shotwell/src/Properties.vala"
- line = _tmp104_;
-#line 3652 "Properties.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp105_ = line;
-#line 439 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure:"), _tmp105_, FALSE);
-#line 3658 "Properties.c"
- } else {
- const gchar* _tmp106_;
- const gchar* _tmp108_;
-#line 442 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp106_ = line;
-#line 442 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp106_ != NULL) {
-#line 3666 "Properties.c"
- const gchar* _tmp107_;
-#line 443 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp107_ = line;
-#line 443 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure:"), _tmp107_, FALSE);
-#line 3672 "Properties.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp108_ = self->priv->iso;
-#line 446 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp108_, "") != 0) {
-#line 3678 "Properties.c"
- const gchar* _tmp109_;
-#line 447 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp109_ = line;
-#line 447 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp109_ != NULL) {
-#line 3684 "Properties.c"
- const gchar* _tmp110_;
- gchar* _tmp111_;
- gchar* _tmp112_;
-#line 448 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp110_ = self->priv->iso;
-#line 448 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp111_ = g_strconcat ("ISO ", _tmp110_, NULL);
-#line 448 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp112_ = _tmp111_;
-#line 448 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), "", _tmp112_, FALSE);
-#line 448 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp112_);
-#line 3698 "Properties.c"
- } else {
- const gchar* _tmp113_;
- gchar* _tmp114_;
- gchar* _tmp115_;
-#line 450 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp113_ = self->priv->iso;
-#line 450 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp114_ = g_strconcat ("ISO ", _tmp113_, NULL);
-#line 450 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp115_ = _tmp114_;
-#line 450 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure:"), _tmp115_, FALSE);
-#line 450 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp115_);
-#line 3713 "Properties.c"
- }
- }
- }
-#line 418 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (line);
-#line 3719 "Properties.c"
- }
-}
-
-
-static void
-basic_properties_class_init (BasicPropertiesClass * klass)
-{
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- basic_properties_parent_class = g_type_class_peek_parent (klass);
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- g_type_class_add_private (klass, sizeof (BasicPropertiesPrivate));
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->clear_properties = (void (*) (Properties *)) basic_properties_real_clear_properties;
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->get_single_properties = (void (*) (Properties *, DataView*)) basic_properties_real_get_single_properties;
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->get_multiple_properties = (void (*) (Properties *, GeeIterable*)) basic_properties_real_get_multiple_properties;
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->get_properties = (void (*) (Properties *, Page*)) basic_properties_real_get_properties;
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->internal_update_properties = (void (*) (Properties *, Page*)) basic_properties_real_internal_update_properties;
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- G_OBJECT_CLASS (klass)->finalize = basic_properties_finalize;
-#line 3743 "Properties.c"
-}
-
-
-static void
-basic_properties_instance_init (BasicProperties * self)
-{
- time_t _tmp0_;
- time_t _tmp1_;
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv = BASIC_PROPERTIES_GET_PRIVATE (self);
-#line 158 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = time (NULL);
-#line 158 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->start_time = _tmp0_;
-#line 159 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = time (NULL);
-#line 159 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->end_time = _tmp1_;
-#line 3762 "Properties.c"
-}
-
-
-static void
-basic_properties_finalize (GObject * obj)
-{
- BasicProperties * self;
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BASIC_PROPERTIES, BasicProperties);
-#line 157 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->title);
-#line 164 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure);
-#line 165 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->aperture);
-#line 166 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->iso);
-#line 168 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->raw_developer);
-#line 169 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->raw_assoc);
-#line 156 "/home/jens/Source/shotwell/src/Properties.vala"
- G_OBJECT_CLASS (basic_properties_parent_class)->finalize (obj);
-#line 3786 "Properties.c"
-}
-
-
-GType
-basic_properties_get_type (void)
-{
- static volatile gsize basic_properties_type_id__volatile = 0;
- if (g_once_init_enter (&basic_properties_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (BasicPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) basic_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BasicProperties), 0, (GInstanceInitFunc) basic_properties_instance_init, NULL };
- GType basic_properties_type_id;
- basic_properties_type_id = g_type_register_static (TYPE_PROPERTIES, "BasicProperties", &g_define_type_info, 0);
- g_once_init_leave (&basic_properties_type_id__volatile, basic_properties_type_id);
- }
- return basic_properties_type_id__volatile;
-}
-
-
-static gboolean
-_gtk_widget_hide_on_delete_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self)
-{
- gboolean result;
- result = gtk_widget_hide_on_delete ((GtkWidget*) self);
-#line 647 "/home/jens/Source/shotwell/src/Properties.vala"
- return result;
-#line 3813 "Properties.c"
-}
-
-
-ExtendedPropertiesWindow*
-extended_properties_window_construct (GType object_type,
- GtkWindow* owner)
-{
- ExtendedPropertiesWindow * self = NULL;
- ExtendedPropertiesWindowExtendedProperties* _tmp0_;
- ExtendedPropertiesWindowExtendedProperties* _tmp1_;
- ExtendedPropertiesWindowExtendedProperties* _tmp2_;
- ExtendedPropertiesWindowExtendedProperties* _tmp3_;
- ExtendedPropertiesWindowExtendedProperties* _tmp4_;
- ExtendedPropertiesWindowExtendedProperties* _tmp5_;
- ExtendedPropertiesWindowExtendedProperties* _tmp6_;
- ExtendedPropertiesWindowExtendedProperties* _tmp7_;
- ExtendedPropertiesWindowExtendedProperties* _tmp8_;
- GtkBox* _tmp9_;
- ExtendedPropertiesWindowExtendedProperties* _tmp10_;
-#line 635 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (owner), NULL);
-#line 636 "/home/jens/Source/shotwell/src/Properties.vala"
- self = (ExtendedPropertiesWindow*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 638 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) (GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK));
-#line 639 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_window_set_focus_on_map (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 640 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_window_set_accept_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 641 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 642 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _ ("Extended Information"));
-#line 643 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_window_set_position (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GTK_WIN_POS_CENTER);
-#line 644 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), owner);
-#line 645 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_window_set_type_hint (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GDK_WINDOW_TYPE_HINT_DIALOG);
-#line 647 "/home/jens/Source/shotwell/src/Properties.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _gtk_widget_hide_on_delete_gtk_widget_delete_event, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), 0);
-#line 649 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = extended_properties_window_extended_properties_new ();
-#line 649 "/home/jens/Source/shotwell/src/Properties.vala"
- g_object_ref_sink (_tmp0_);
-#line 649 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (self->priv->properties);
-#line 649 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->properties = _tmp0_;
-#line 650 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = self->priv->properties;
-#line 650 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL);
-#line 651 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = self->priv->properties;
-#line 651 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL);
-#line 652 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = self->priv->properties;
-#line 652 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 653 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = self->priv->properties;
-#line 653 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 654 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = self->priv->properties;
-#line 654 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), 3);
-#line 655 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = self->priv->properties;
-#line 655 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), 3);
-#line 656 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = self->priv->properties;
-#line 656 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), 3);
-#line 657 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = self->priv->properties;
-#line 657 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), 3);
-#line 658 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 658 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = self->priv->properties;
-#line 658 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 635 "/home/jens/Source/shotwell/src/Properties.vala"
- return self;
-#line 3903 "Properties.c"
-}
-
-
-ExtendedPropertiesWindow*
-extended_properties_window_new (GtkWindow* owner)
-{
-#line 635 "/home/jens/Source/shotwell/src/Properties.vala"
- return extended_properties_window_construct (TYPE_EXTENDED_PROPERTIES_WINDOW, owner);
-#line 3912 "Properties.c"
-}
-
-
-static gboolean
-extended_properties_window_real_button_press_event (GtkWidget* base,
- GdkEventButton* event)
-{
- ExtendedPropertiesWindow * self;
- gboolean result = FALSE;
- guint _tmp0_;
- guint _tmp2_;
- gdouble _tmp3_;
- gdouble _tmp4_;
- guint32 _tmp5_;
-#line 661 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow);
-#line 661 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 663 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = event->button;
-#line 663 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp0_ != ((guint) 1)) {
-#line 3935 "Properties.c"
- gboolean _tmp1_ = FALSE;
-#line 664 "/home/jens/Source/shotwell/src/Properties.vala"
- if (GTK_WIDGET_CLASS (extended_properties_window_parent_class)->button_press_event != NULL) {
-#line 664 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = GTK_WIDGET_CLASS (extended_properties_window_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), gtk_widget_get_type (), GtkWidget), event);
-#line 3941 "Properties.c"
- } else {
-#line 664 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = TRUE;
-#line 3945 "Properties.c"
- }
-#line 664 "/home/jens/Source/shotwell/src/Properties.vala"
- result = _tmp1_;
-#line 664 "/home/jens/Source/shotwell/src/Properties.vala"
- return result;
-#line 3951 "Properties.c"
- }
-#line 666 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = event->button;
-#line 666 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = event->x_root;
-#line 666 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = event->y_root;
-#line 666 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = event->time;
-#line 666 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_window_begin_move_drag (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), (gint) _tmp2_, (gint) _tmp3_, (gint) _tmp4_, _tmp5_);
-#line 668 "/home/jens/Source/shotwell/src/Properties.vala"
- result = TRUE;
-#line 668 "/home/jens/Source/shotwell/src/Properties.vala"
- return result;
-#line 3967 "Properties.c"
-}
-
-
-static gboolean
-extended_properties_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- ExtendedPropertiesWindow * self;
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- AppWindow* _tmp2_;
- AppWindow* _tmp3_;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_;
-#line 671 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow);
-#line 671 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 673 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = event->keyval;
-#line 673 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 673 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp1_, "Escape") == 0) {
-#line 674 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 675 "/home/jens/Source/shotwell/src/Properties.vala"
- result = TRUE;
-#line 675 "/home/jens/Source/shotwell/src/Properties.vala"
- return result;
-#line 3999 "Properties.c"
- }
-#line 678 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = app_window_get_instance ();
-#line 678 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = _tmp2_;
-#line 678 "/home/jens/Source/shotwell/src/Properties.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp4_);
-#line 678 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = _tmp4_;
-#line 678 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (_tmp3_);
-#line 678 "/home/jens/Source/shotwell/src/Properties.vala"
- result = _tmp5_;
-#line 678 "/home/jens/Source/shotwell/src/Properties.vala"
- return result;
-#line 4015 "Properties.c"
-}
-
-
-void
-extended_properties_window_update_properties (ExtendedPropertiesWindow* self,
- Page* page)
-{
- ExtendedPropertiesWindowExtendedProperties* _tmp0_;
-#line 681 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_EXTENDED_PROPERTIES_WINDOW (self));
-#line 681 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 682 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = self->priv->properties;
-#line 682 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_update_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROPERTIES, Properties), page);
-#line 4032 "Properties.c"
-}
-
-
-static void
-extended_properties_window_real_show_all (GtkWidget* base)
-{
- ExtendedPropertiesWindow * self;
- ExtendedPropertiesWindowExtendedProperties* _tmp0_;
-#line 685 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow);
-#line 686 "/home/jens/Source/shotwell/src/Properties.vala"
- GTK_WIDGET_CLASS (extended_properties_window_parent_class)->show_all (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), gtk_widget_get_type (), GtkWidget));
-#line 687 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = self->priv->properties;
-#line 687 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_unselect_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROPERTIES, Properties));
-#line 688 "/home/jens/Source/shotwell/src/Properties.vala"
- gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 4051 "Properties.c"
-}
-
-
-static gpointer
-_dimensions_dup0 (gpointer self)
-{
-#line 498 "/home/jens/Source/shotwell/src/Properties.vala"
- return self ? dimensions_dup (self) : NULL;
-#line 4060 "Properties.c"
-}
-
-
-static void
-extended_properties_window_extended_properties_real_clear_properties (Properties* base)
-{
- ExtendedPropertiesWindowExtendedProperties * self;
- gchar* _tmp0_;
- gchar* _tmp1_;
- Dimensions _tmp2_ = {0};
- Dimensions* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 491 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties);
-#line 492 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_CLASS (extended_properties_window_extended_properties_parent_class)->clear_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties));
-#line 494 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = g_strdup ("");
-#line 494 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->file_path);
-#line 494 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->file_path = _tmp0_;
-#line 495 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = g_strdup ("");
-#line 495 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->development_path);
-#line 495 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->development_path = _tmp1_;
-#line 496 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->is_raw = FALSE;
-#line 497 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->filesize = (guint64) 0;
-#line 498 "/home/jens/Source/shotwell/src/Properties.vala"
- dimensions_init (&_tmp2_, 0, 0);
-#line 498 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = _dimensions_dup0 (&_tmp2_);
-#line 498 "/home/jens/Source/shotwell/src/Properties.vala"
- _dimensions_free0 (self->priv->original_dim);
-#line 498 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->original_dim = _tmp3_;
-#line 499 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = g_strdup ("");
-#line 499 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->camera_make);
-#line 499 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->camera_make = _tmp4_;
-#line 500 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = g_strdup ("");
-#line 500 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->camera_model);
-#line 500 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->camera_model = _tmp5_;
-#line 501 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = g_strdup ("");
-#line 501 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->flash);
-#line 501 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->flash = _tmp6_;
-#line 502 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = g_strdup ("");
-#line 502 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->focal_length);
-#line 502 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->focal_length = _tmp7_;
-#line 503 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_lat = (gdouble) -1;
-#line 504 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = g_strdup ("");
-#line 504 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->gps_lat_ref);
-#line 504 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_lat_ref = _tmp8_;
-#line 505 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_long = (gdouble) -1;
-#line 506 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = g_strdup ("");
-#line 506 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->gps_long_ref);
-#line 506 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_long_ref = _tmp9_;
-#line 507 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = g_strdup ("");
-#line 507 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->artist);
-#line 507 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->artist = _tmp10_;
-#line 508 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = g_strdup ("");
-#line 508 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->copyright);
-#line 508 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->copyright = _tmp11_;
-#line 509 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = g_strdup ("");
-#line 509 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->software);
-#line 509 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->software = _tmp12_;
-#line 510 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp13_ = g_strdup ("");
-#line 510 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_bias);
-#line 510 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure_bias = _tmp13_;
-#line 511 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = g_strdup ("");
-#line 511 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_date);
-#line 511 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure_date = _tmp14_;
-#line 512 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = g_strdup ("");
-#line 512 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_time);
-#line 512 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure_time = _tmp15_;
-#line 513 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = g_strdup ("");
-#line 513 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->comment);
-#line 513 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->comment = _tmp16_;
-#line 4195 "Properties.c"
-}
-
-
-static void
-extended_properties_window_extended_properties_real_get_single_properties (Properties* base,
- DataView* view)
-{
- ExtendedPropertiesWindowExtendedProperties * self;
- DataSource* source = NULL;
- DataSource* _tmp0_;
- DataSource* _tmp1_;
- DataSource* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 516 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties);
-#line 516 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 517 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_CLASS (extended_properties_window_extended_properties_parent_class)->get_single_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), view);
-#line 519 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = data_view_get_source (view);
-#line 519 "/home/jens/Source/shotwell/src/Properties.vala"
- source = _tmp0_;
-#line 520 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = source;
-#line 520 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp1_ == NULL) {
-#line 521 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (source);
-#line 521 "/home/jens/Source/shotwell/src/Properties.vala"
- return;
-#line 4227 "Properties.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = source;
-#line 523 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_MEDIA_SOURCE)) {
-#line 4233 "Properties.c"
- MediaSource* media = NULL;
- DataSource* _tmp3_;
- MediaSource* _tmp4_;
- MediaSource* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
- gchar* _tmp8_;
- MediaSource* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
- gchar* _tmp12_;
- MediaSource* _tmp13_;
- Photo* photo = NULL;
- MediaSource* _tmp14_;
- Photo* _tmp15_;
- Photo* _tmp16_;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp23_;
- PhotoMetadata* _tmp24_;
- MetadataDateTime* _tmp25_;
- MetadataDateTime* _tmp26_;
- gboolean _tmp27_;
- Photo* _tmp32_;
- PhotoMetadata* _tmp33_;
- Dimensions* _tmp34_;
- PhotoMetadata* _tmp35_;
- gchar* _tmp36_;
- PhotoMetadata* _tmp37_;
- gchar* _tmp38_;
- PhotoMetadata* _tmp39_;
- gchar* _tmp40_;
- PhotoMetadata* _tmp41_;
- gchar* _tmp42_;
- PhotoMetadata* _tmp43_;
- gdouble _tmp44_ = 0.0;
- gchar* _tmp45_ = NULL;
- gdouble _tmp46_ = 0.0;
- gchar* _tmp47_ = NULL;
- gdouble _tmp48_ = 0.0;
- PhotoMetadata* _tmp49_;
- gchar* _tmp50_;
- PhotoMetadata* _tmp51_;
- gchar* _tmp52_;
- PhotoMetadata* _tmp53_;
- gchar* _tmp54_;
- PhotoMetadata* _tmp55_;
- gchar* _tmp56_;
- time_t exposure_time_obj = 0;
- PhotoMetadata* _tmp57_;
- MetadataDateTime* _tmp58_;
- MetadataDateTime* _tmp59_;
- time_t _tmp60_;
- time_t _tmp61_;
- struct tm _tmp62_ = {0};
- gchar* _tmp63_;
- time_t _tmp64_;
- struct tm _tmp65_ = {0};
- gchar* _tmp66_;
- MediaSource* _tmp67_;
- gchar* _tmp68_;
-#line 524 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = source;
-#line 524 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 524 "/home/jens/Source/shotwell/src/Properties.vala"
- media = _tmp4_;
-#line 525 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = media;
-#line 525 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = media_source_get_master_file (_tmp5_);
-#line 525 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = _tmp6_;
-#line 525 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = g_file_get_path (_tmp7_);
-#line 525 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->file_path);
-#line 525 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->file_path = _tmp8_;
-#line 525 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (_tmp7_);
-#line 526 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = media;
-#line 526 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = media_source_get_file (_tmp9_);
-#line 526 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = _tmp10_;
-#line 526 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = g_file_get_path (_tmp11_);
-#line 526 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->development_path);
-#line 526 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->development_path = _tmp12_;
-#line 526 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (_tmp11_);
-#line 527 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp13_ = media;
-#line 527 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->filesize = media_source_get_master_filesize (_tmp13_);
-#line 532 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = media;
-#line 532 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_PHOTO) ? ((Photo*) _tmp14_) : NULL);
-#line 532 "/home/jens/Source/shotwell/src/Properties.vala"
- photo = _tmp15_;
-#line 533 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = photo;
-#line 533 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp16_ == NULL) {
-#line 534 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (photo);
-#line 534 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (media);
-#line 534 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (source);
-#line 534 "/home/jens/Source/shotwell/src/Properties.vala"
- return;
-#line 4350 "Properties.c"
- }
- {
- PhotoMetadata* _tmp17_ = NULL;
- Photo* _tmp18_;
- PhotoMetadata* _tmp19_;
- PhotoMetadata* _tmp20_;
-#line 543 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp18_ = photo;
-#line 543 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = photo_get_master_metadata (_tmp18_, &_inner_error_);
-#line 543 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = _tmp19_;
-#line 543 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4365 "Properties.c"
- goto __catch442_g_error;
- }
-#line 543 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp20_ = _tmp17_;
-#line 543 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = NULL;
-#line 543 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (metadata);
-#line 543 "/home/jens/Source/shotwell/src/Properties.vala"
- metadata = _tmp20_;
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (_tmp17_);
-#line 4378 "Properties.c"
- }
- goto __finally442;
- __catch442_g_error:
- {
- GError* e = NULL;
- Photo* _tmp21_;
- PhotoMetadata* _tmp22_;
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- e = _inner_error_;
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- _inner_error_ = NULL;
-#line 545 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp21_ = photo;
-#line 545 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp22_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 545 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (metadata);
-#line 545 "/home/jens/Source/shotwell/src/Properties.vala"
- metadata = _tmp22_;
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_error_free0 (e);
-#line 4400 "Properties.c"
- }
- __finally442:
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (metadata);
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (photo);
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (media);
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (source);
-#line 538 "/home/jens/Source/shotwell/src/Properties.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 538 "/home/jens/Source/shotwell/src/Properties.vala"
- g_clear_error (&_inner_error_);
-#line 538 "/home/jens/Source/shotwell/src/Properties.vala"
- return;
-#line 4419 "Properties.c"
- }
-#line 548 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp23_ = metadata;
-#line 548 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp23_ == NULL) {
-#line 549 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (metadata);
-#line 549 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (photo);
-#line 549 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (media);
-#line 549 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (source);
-#line 549 "/home/jens/Source/shotwell/src/Properties.vala"
- return;
-#line 4435 "Properties.c"
- }
-#line 556 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp24_ = metadata;
-#line 556 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp25_ = photo_metadata_get_exposure_date_time (_tmp24_);
-#line 556 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp26_ = _tmp25_;
-#line 556 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp27_ = _tmp26_ == NULL;
-#line 556 "/home/jens/Source/shotwell/src/Properties.vala"
- _metadata_date_time_unref0 (_tmp26_);
-#line 556 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp27_) {
-#line 4449 "Properties.c"
- PhotoMetadata* _tmp28_;
- Photo* _tmp29_;
- MetadataDateTime* _tmp30_;
- MetadataDateTime* _tmp31_;
-#line 557 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp28_ = metadata;
-#line 557 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp29_ = photo;
-#line 557 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp30_ = metadata_date_time_new (media_source_get_timestamp (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource)));
-#line 557 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp31_ = _tmp30_;
-#line 557 "/home/jens/Source/shotwell/src/Properties.vala"
- photo_metadata_set_exposure_date_time (_tmp28_, _tmp31_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
-#line 557 "/home/jens/Source/shotwell/src/Properties.vala"
- _metadata_date_time_unref0 (_tmp31_);
-#line 4466 "Properties.c"
- }
-#line 559 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp32_ = photo;
-#line 559 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->is_raw = photo_get_master_file_format (_tmp32_) == PHOTO_FILE_FORMAT_RAW;
-#line 560 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp33_ = metadata;
-#line 560 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp34_ = photo_metadata_get_pixel_dimensions (_tmp33_);
-#line 560 "/home/jens/Source/shotwell/src/Properties.vala"
- _dimensions_free0 (self->priv->original_dim);
-#line 560 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->original_dim = _tmp34_;
-#line 561 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp35_ = metadata;
-#line 561 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp36_ = photo_metadata_get_camera_make (_tmp35_);
-#line 561 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->camera_make);
-#line 561 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->camera_make = _tmp36_;
-#line 562 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp37_ = metadata;
-#line 562 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp38_ = photo_metadata_get_camera_model (_tmp37_);
-#line 562 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->camera_model);
-#line 562 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->camera_model = _tmp38_;
-#line 563 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp39_ = metadata;
-#line 563 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp40_ = photo_metadata_get_flash_string (_tmp39_);
-#line 563 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->flash);
-#line 563 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->flash = _tmp40_;
-#line 564 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp41_ = metadata;
-#line 564 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp42_ = photo_metadata_get_focal_length_string (_tmp41_);
-#line 564 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->focal_length);
-#line 564 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->focal_length = _tmp42_;
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp43_ = metadata;
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- photo_metadata_get_gps (_tmp43_, &_tmp44_, &_tmp45_, &_tmp46_, &_tmp47_, &_tmp48_);
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_long = _tmp44_;
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->gps_long_ref);
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_long_ref = _tmp45_;
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_lat = _tmp46_;
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->gps_lat_ref);
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_lat_ref = _tmp47_;
-#line 565 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->gps_alt = _tmp48_;
-#line 566 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp49_ = metadata;
-#line 566 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp50_ = photo_metadata_get_artist (_tmp49_);
-#line 566 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->artist);
-#line 566 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->artist = _tmp50_;
-#line 567 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp51_ = metadata;
-#line 567 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp52_ = photo_metadata_get_copyright (_tmp51_);
-#line 567 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->copyright);
-#line 567 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->copyright = _tmp52_;
-#line 568 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp53_ = metadata;
-#line 568 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp54_ = photo_metadata_get_software (_tmp53_);
-#line 568 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->software);
-#line 568 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->software = _tmp54_;
-#line 569 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp55_ = metadata;
-#line 569 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp56_ = photo_metadata_get_exposure_bias (_tmp55_);
-#line 569 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_bias);
-#line 569 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure_bias = _tmp56_;
-#line 570 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp57_ = metadata;
-#line 570 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp58_ = photo_metadata_get_exposure_date_time (_tmp57_);
-#line 570 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp59_ = _tmp58_;
-#line 570 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp60_ = metadata_date_time_get_timestamp (_tmp59_);
-#line 570 "/home/jens/Source/shotwell/src/Properties.vala"
- _metadata_date_time_unref0 (_tmp59_);
-#line 570 "/home/jens/Source/shotwell/src/Properties.vala"
- exposure_time_obj = _tmp60_;
-#line 571 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp61_ = exposure_time_obj;
-#line 571 "/home/jens/Source/shotwell/src/Properties.vala"
- g_time_local (_tmp61_, &_tmp62_);
-#line 571 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp63_ = properties_get_prettyprint_date (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp62_);
-#line 571 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_date);
-#line 571 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure_date = _tmp63_;
-#line 572 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp64_ = exposure_time_obj;
-#line 572 "/home/jens/Source/shotwell/src/Properties.vala"
- g_time_local (_tmp64_, &_tmp65_);
-#line 572 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp66_ = properties_get_prettyprint_time_with_seconds (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp65_);
-#line 572 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_time);
-#line 572 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->exposure_time = _tmp66_;
-#line 573 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp67_ = media;
-#line 573 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp68_ = media_source_get_comment (_tmp67_);
-#line 573 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->comment);
-#line 573 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->comment = _tmp68_;
-#line 523 "/home/jens/Source/shotwell/src/Properties.vala"
- _media_metadata_unref0 (metadata);
-#line 523 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (photo);
-#line 523 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (media);
-#line 4608 "Properties.c"
- } else {
- DataSource* _tmp69_;
-#line 574 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp69_ = source;
-#line 574 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp69_, TYPE_EVENT_SOURCE)) {
-#line 4615 "Properties.c"
- Event* event = NULL;
- DataSource* _tmp70_;
- Event* _tmp71_;
- Event* _tmp72_;
- gchar* _tmp73_;
-#line 575 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp70_ = source;
-#line 575 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp71_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_EVENT, Event));
-#line 575 "/home/jens/Source/shotwell/src/Properties.vala"
- event = _tmp71_;
-#line 576 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp72_ = event;
-#line 576 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp73_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_EVENT_SOURCE, EventSource));
-#line 576 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->comment);
-#line 576 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->comment = _tmp73_;
-#line 574 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (event);
-#line 4637 "Properties.c"
- }
- }
-#line 516 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (source);
-#line 4642 "Properties.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 4665 "Properties.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 4669 "Properties.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 4675 "Properties.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 4679 "Properties.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 4683 "Properties.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4691 "Properties.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 4719 "Properties.c"
- goto __catch443_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 4728 "Properties.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 4742 "Properties.c"
- goto __catch443_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 4753 "Properties.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4767 "Properties.c"
- }
- goto __finally443;
- __catch443_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 4781 "Properties.c"
- }
- __finally443:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 4792 "Properties.c"
- }
-}
-
-
-static void
-extended_properties_window_extended_properties_real_internal_update_properties (Properties* base,
- Page* page)
-{
- ExtendedPropertiesWindowExtendedProperties * self;
- gboolean _tmp94_ = FALSE;
- const gchar* _tmp95_;
- gboolean has_comment = FALSE;
- const gchar* _tmp97_ = NULL;
- gboolean _tmp98_;
- gboolean _tmp100_;
-#line 580 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties);
-#line 580 "/home/jens/Source/shotwell/src/Properties.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 581 "/home/jens/Source/shotwell/src/Properties.vala"
- PROPERTIES_CLASS (extended_properties_window_extended_properties_parent_class)->internal_update_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), page);
-#line 583 "/home/jens/Source/shotwell/src/Properties.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_EVENTS_DIRECTORY_PAGE)) {
-#line 4816 "Properties.c"
- } else {
- gchar* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
- const gchar* _tmp2_;
- gchar* _tmp7_ = NULL;
- guint64 _tmp8_;
- gboolean _tmp12_;
- gchar* _tmp14_ = NULL;
- gboolean _tmp15_ = FALSE;
- Dimensions* _tmp16_;
- const gchar* _tmp24_ = NULL;
- gboolean _tmp25_ = FALSE;
- const gchar* _tmp26_;
- const gchar* _tmp29_ = NULL;
- gboolean _tmp30_ = FALSE;
- const gchar* _tmp31_;
- const gchar* _tmp34_ = NULL;
- gboolean _tmp35_ = FALSE;
- const gchar* _tmp36_;
- const gchar* _tmp39_ = NULL;
- gboolean _tmp40_ = FALSE;
- const gchar* _tmp41_;
- const gchar* _tmp44_ = NULL;
- gboolean _tmp45_ = FALSE;
- const gchar* _tmp46_;
- const gchar* _tmp49_ = NULL;
- gboolean _tmp50_ = FALSE;
- const gchar* _tmp51_;
- const gchar* _tmp54_ = NULL;
- gboolean _tmp55_ = FALSE;
- const gchar* _tmp56_;
- gchar* _tmp59_ = NULL;
- gboolean _tmp60_ = FALSE;
- gboolean _tmp61_ = FALSE;
- gdouble _tmp62_;
- gchar* _tmp69_ = NULL;
- gboolean _tmp70_ = FALSE;
- gboolean _tmp71_ = FALSE;
- gdouble _tmp72_;
- const gchar* _tmp79_ = NULL;
- gboolean _tmp80_ = FALSE;
- const gchar* _tmp81_;
- const gchar* _tmp84_ = NULL;
- gboolean _tmp85_ = FALSE;
- const gchar* _tmp86_;
- const gchar* _tmp89_ = NULL;
- gboolean _tmp90_ = FALSE;
- const gchar* _tmp91_;
-#line 586 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp2_ = self->priv->file_path;
-#line 586 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp2_, "") != 0) {
-#line 4869 "Properties.c"
- const gchar* _tmp3_;
-#line 586 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp3_ = self->priv->file_path;
-#line 586 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = _tmp3_ != NULL;
-#line 4875 "Properties.c"
- } else {
-#line 586 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp1_ = FALSE;
-#line 4879 "Properties.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp1_) {
-#line 4883 "Properties.c"
- const gchar* _tmp4_;
- gchar* _tmp5_;
-#line 587 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp4_ = self->priv->file_path;
-#line 587 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp5_ = string_replace (_tmp4_, "&", "&amp;");
-#line 587 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp0_);
-#line 587 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = _tmp5_;
-#line 4894 "Properties.c"
- } else {
- gchar* _tmp6_;
-#line 587 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp6_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE);
-#line 587 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp0_);
-#line 587 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp0_ = _tmp6_;
-#line 4903 "Properties.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Location:"), _tmp0_, FALSE);
-#line 589 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp8_ = self->priv->filesize;
-#line 589 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp8_ > ((guint64) 0)) {
-#line 4911 "Properties.c"
- guint64 _tmp9_;
- gchar* _tmp10_;
-#line 590 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp9_ = self->priv->filesize;
-#line 590 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp10_ = g_format_size_full ((guint64) ((gint64) _tmp9_), G_FORMAT_SIZE_DEFAULT);
-#line 590 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp7_);
-#line 590 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = _tmp10_;
-#line 4922 "Properties.c"
- } else {
- gchar* _tmp11_;
-#line 590 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp11_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE);
-#line 590 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp7_);
-#line 590 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp7_ = _tmp11_;
-#line 4931 "Properties.c"
- }
-#line 589 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("File size:"), _tmp7_, FALSE);
-#line 592 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp12_ = self->priv->is_raw;
-#line 592 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp12_) {
-#line 4939 "Properties.c"
- const gchar* _tmp13_;
-#line 593 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp13_ = self->priv->development_path;
-#line 593 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Current Development:"), _tmp13_, FALSE);
-#line 4945 "Properties.c"
- }
-#line 595 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp16_ = self->priv->original_dim;
-#line 595 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp16_ != NULL) {
-#line 4951 "Properties.c"
- Dimensions* _tmp17_;
-#line 595 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp17_ = self->priv->original_dim;
-#line 595 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = dimensions_has_area (_tmp17_);
-#line 4957 "Properties.c"
- } else {
-#line 595 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp15_ = FALSE;
-#line 4961 "Properties.c"
- }
-#line 595 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp15_) {
-#line 4965 "Properties.c"
- Dimensions* _tmp18_;
- gint _tmp19_;
- Dimensions* _tmp20_;
- gint _tmp21_;
- gchar* _tmp22_;
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp18_ = self->priv->original_dim;
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp19_ = (*_tmp18_).width;
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp20_ = self->priv->original_dim;
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp21_ = (*_tmp20_).height;
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp22_ = g_strdup_printf ("%d &#215; %d", _tmp19_, _tmp21_);
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp14_);
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = _tmp22_;
-#line 4985 "Properties.c"
- } else {
- gchar* _tmp23_;
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp23_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE);
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp14_);
-#line 596 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp14_ = _tmp23_;
-#line 4994 "Properties.c"
- }
-#line 595 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Original dimensions:"), _tmp14_, FALSE);
-#line 598 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp26_ = self->priv->camera_make;
-#line 598 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp26_, "") != 0) {
-#line 5002 "Properties.c"
- const gchar* _tmp27_;
-#line 598 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp27_ = self->priv->camera_make;
-#line 598 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp25_ = _tmp27_ != NULL;
-#line 5008 "Properties.c"
- } else {
-#line 598 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp25_ = FALSE;
-#line 5012 "Properties.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp25_) {
-#line 5016 "Properties.c"
- const gchar* _tmp28_;
-#line 599 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp28_ = self->priv->camera_make;
-#line 599 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp24_ = _tmp28_;
-#line 5022 "Properties.c"
- } else {
-#line 599 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp24_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5026 "Properties.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Camera make:"), _tmp24_, FALSE);
-#line 601 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp31_ = self->priv->camera_model;
-#line 601 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp31_, "") != 0) {
-#line 5034 "Properties.c"
- const gchar* _tmp32_;
-#line 601 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp32_ = self->priv->camera_model;
-#line 601 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp30_ = _tmp32_ != NULL;
-#line 5040 "Properties.c"
- } else {
-#line 601 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp30_ = FALSE;
-#line 5044 "Properties.c"
- }
-#line 601 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp30_) {
-#line 5048 "Properties.c"
- const gchar* _tmp33_;
-#line 602 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp33_ = self->priv->camera_model;
-#line 602 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp29_ = _tmp33_;
-#line 5054 "Properties.c"
- } else {
-#line 602 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp29_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5058 "Properties.c"
- }
-#line 601 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Camera model:"), _tmp29_, FALSE);
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp36_ = self->priv->flash;
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp36_, "") != 0) {
-#line 5066 "Properties.c"
- const gchar* _tmp37_;
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp37_ = self->priv->flash;
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp35_ = _tmp37_ != NULL;
-#line 5072 "Properties.c"
- } else {
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp35_ = FALSE;
-#line 5076 "Properties.c"
- }
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp35_) {
-#line 5080 "Properties.c"
- const gchar* _tmp38_;
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp38_ = self->priv->flash;
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp34_ = _tmp38_;
-#line 5086 "Properties.c"
- } else {
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp34_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5090 "Properties.c"
- }
-#line 604 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Flash:"), _tmp34_, FALSE);
-#line 606 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp41_ = self->priv->focal_length;
-#line 606 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp41_, "") != 0) {
-#line 5098 "Properties.c"
- const gchar* _tmp42_;
-#line 606 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp42_ = self->priv->focal_length;
-#line 606 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp40_ = _tmp42_ != NULL;
-#line 5104 "Properties.c"
- } else {
-#line 606 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp40_ = FALSE;
-#line 5108 "Properties.c"
- }
-#line 606 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp40_) {
-#line 5112 "Properties.c"
- const gchar* _tmp43_;
-#line 607 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp43_ = self->priv->focal_length;
-#line 607 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp39_ = _tmp43_;
-#line 5118 "Properties.c"
- } else {
-#line 607 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp39_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5122 "Properties.c"
- }
-#line 606 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Focal length:"), _tmp39_, FALSE);
-#line 609 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp46_ = self->priv->exposure_date;
-#line 609 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp46_, "") != 0) {
-#line 5130 "Properties.c"
- const gchar* _tmp47_;
-#line 609 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp47_ = self->priv->exposure_date;
-#line 609 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp45_ = _tmp47_ != NULL;
-#line 5136 "Properties.c"
- } else {
-#line 609 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp45_ = FALSE;
-#line 5140 "Properties.c"
- }
-#line 609 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp45_) {
-#line 5144 "Properties.c"
- const gchar* _tmp48_;
-#line 610 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp48_ = self->priv->exposure_date;
-#line 610 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp44_ = _tmp48_;
-#line 5150 "Properties.c"
- } else {
-#line 610 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp44_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5154 "Properties.c"
- }
-#line 609 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure date:"), _tmp44_, FALSE);
-#line 612 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp51_ = self->priv->exposure_time;
-#line 612 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp51_, "") != 0) {
-#line 5162 "Properties.c"
- const gchar* _tmp52_;
-#line 612 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp52_ = self->priv->exposure_time;
-#line 612 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp50_ = _tmp52_ != NULL;
-#line 5168 "Properties.c"
- } else {
-#line 612 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp50_ = FALSE;
-#line 5172 "Properties.c"
- }
-#line 612 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp50_) {
-#line 5176 "Properties.c"
- const gchar* _tmp53_;
-#line 613 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp53_ = self->priv->exposure_time;
-#line 613 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp49_ = _tmp53_;
-#line 5182 "Properties.c"
- } else {
-#line 613 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp49_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5186 "Properties.c"
- }
-#line 612 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure time:"), _tmp49_, FALSE);
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp56_ = self->priv->exposure_bias;
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp56_, "") != 0) {
-#line 5194 "Properties.c"
- const gchar* _tmp57_;
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp57_ = self->priv->exposure_bias;
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp55_ = _tmp57_ != NULL;
-#line 5200 "Properties.c"
- } else {
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp55_ = FALSE;
-#line 5204 "Properties.c"
- }
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp55_) {
-#line 5208 "Properties.c"
- const gchar* _tmp58_;
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp58_ = self->priv->exposure_bias;
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp54_ = _tmp58_;
-#line 5214 "Properties.c"
- } else {
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp54_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5218 "Properties.c"
- }
-#line 615 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure bias:"), _tmp54_, FALSE);
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp62_ = self->priv->gps_lat;
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp62_ != ((gdouble) -1)) {
-#line 5226 "Properties.c"
- const gchar* _tmp63_;
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp63_ = self->priv->gps_lat_ref;
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp61_ = g_strcmp0 (_tmp63_, "") != 0;
-#line 5232 "Properties.c"
- } else {
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp61_ = FALSE;
-#line 5236 "Properties.c"
- }
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp61_) {
-#line 5240 "Properties.c"
- const gchar* _tmp64_;
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp64_ = self->priv->gps_lat_ref;
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp60_ = _tmp64_ != NULL;
-#line 5246 "Properties.c"
- } else {
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp60_ = FALSE;
-#line 5250 "Properties.c"
- }
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp60_) {
-#line 5254 "Properties.c"
- gdouble _tmp65_;
- const gchar* _tmp66_;
- gchar* _tmp67_;
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp65_ = self->priv->gps_lat;
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp66_ = self->priv->gps_lat_ref;
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp67_ = g_strdup_printf ("%f °%s", _tmp65_, _tmp66_);
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp59_);
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp59_ = _tmp67_;
-#line 5268 "Properties.c"
- } else {
- gchar* _tmp68_;
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp68_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE);
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp59_);
-#line 618 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp59_ = _tmp68_;
-#line 5277 "Properties.c"
- }
-#line 617 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("GPS latitude:"), _tmp59_, FALSE);
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp72_ = self->priv->gps_long;
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp72_ != ((gdouble) -1)) {
-#line 5285 "Properties.c"
- const gchar* _tmp73_;
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp73_ = self->priv->gps_long_ref;
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp71_ = g_strcmp0 (_tmp73_, "") != 0;
-#line 5291 "Properties.c"
- } else {
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp71_ = FALSE;
-#line 5295 "Properties.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp71_) {
-#line 5299 "Properties.c"
- const gchar* _tmp74_;
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp74_ = self->priv->gps_long_ref;
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp70_ = _tmp74_ != NULL;
-#line 5305 "Properties.c"
- } else {
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp70_ = FALSE;
-#line 5309 "Properties.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp70_) {
-#line 5313 "Properties.c"
- gdouble _tmp75_;
- const gchar* _tmp76_;
- gchar* _tmp77_;
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp75_ = self->priv->gps_long;
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp76_ = self->priv->gps_long_ref;
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp77_ = g_strdup_printf ("%f °%s", _tmp75_, _tmp76_);
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp69_);
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp69_ = _tmp77_;
-#line 5327 "Properties.c"
- } else {
- gchar* _tmp78_;
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp78_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE);
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp69_);
-#line 621 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp69_ = _tmp78_;
-#line 5336 "Properties.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("GPS longitude:"), _tmp69_, FALSE);
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp81_ = self->priv->artist;
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp81_, "") != 0) {
-#line 5344 "Properties.c"
- const gchar* _tmp82_;
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp82_ = self->priv->artist;
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp80_ = _tmp82_ != NULL;
-#line 5350 "Properties.c"
- } else {
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp80_ = FALSE;
-#line 5354 "Properties.c"
- }
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp80_) {
-#line 5358 "Properties.c"
- const gchar* _tmp83_;
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp83_ = self->priv->artist;
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp79_ = _tmp83_;
-#line 5364 "Properties.c"
- } else {
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp79_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5368 "Properties.c"
- }
-#line 623 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Artist:"), _tmp79_, FALSE);
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp86_ = self->priv->copyright;
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp86_, "") != 0) {
-#line 5376 "Properties.c"
- const gchar* _tmp87_;
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp87_ = self->priv->copyright;
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp85_ = _tmp87_ != NULL;
-#line 5382 "Properties.c"
- } else {
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp85_ = FALSE;
-#line 5386 "Properties.c"
- }
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp85_) {
-#line 5390 "Properties.c"
- const gchar* _tmp88_;
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp88_ = self->priv->copyright;
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp84_ = _tmp88_;
-#line 5396 "Properties.c"
- } else {
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp84_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5400 "Properties.c"
- }
-#line 625 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Copyright:"), _tmp84_, FALSE);
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp91_ = self->priv->software;
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp91_, "") != 0) {
-#line 5408 "Properties.c"
- const gchar* _tmp92_;
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp92_ = self->priv->software;
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp90_ = _tmp92_ != NULL;
-#line 5414 "Properties.c"
- } else {
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp90_ = FALSE;
-#line 5418 "Properties.c"
- }
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp90_) {
-#line 5422 "Properties.c"
- const gchar* _tmp93_;
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp93_ = self->priv->software;
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp89_ = _tmp93_;
-#line 5428 "Properties.c"
- } else {
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp89_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5432 "Properties.c"
- }
-#line 627 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Software:"), _tmp89_, FALSE);
-#line 583 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp69_);
-#line 583 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp59_);
-#line 583 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp14_);
-#line 583 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp7_);
-#line 583 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (_tmp0_);
-#line 5446 "Properties.c"
- }
-#line 630 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp95_ = self->priv->comment;
-#line 630 "/home/jens/Source/shotwell/src/Properties.vala"
- if (g_strcmp0 (_tmp95_, "") != 0) {
-#line 5452 "Properties.c"
- const gchar* _tmp96_;
-#line 630 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp96_ = self->priv->comment;
-#line 630 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp94_ = _tmp96_ != NULL;
-#line 5458 "Properties.c"
- } else {
-#line 630 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp94_ = FALSE;
-#line 5462 "Properties.c"
- }
-#line 630 "/home/jens/Source/shotwell/src/Properties.vala"
- has_comment = _tmp94_;
-#line 631 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp98_ = has_comment;
-#line 631 "/home/jens/Source/shotwell/src/Properties.vala"
- if (_tmp98_) {
-#line 5470 "Properties.c"
- const gchar* _tmp99_;
-#line 631 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp99_ = self->priv->comment;
-#line 631 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp97_ = _tmp99_;
-#line 5476 "Properties.c"
- } else {
-#line 631 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp97_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE;
-#line 5480 "Properties.c"
- }
-#line 631 "/home/jens/Source/shotwell/src/Properties.vala"
- _tmp100_ = has_comment;
-#line 631 "/home/jens/Source/shotwell/src/Properties.vala"
- properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Comment:"), _tmp97_, _tmp100_);
-#line 5486 "Properties.c"
-}
-
-
-static ExtendedPropertiesWindowExtendedProperties*
-extended_properties_window_extended_properties_construct (GType object_type)
-{
- ExtendedPropertiesWindowExtendedProperties * self = NULL;
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- self = (ExtendedPropertiesWindowExtendedProperties*) properties_construct (object_type);
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- return self;
-#line 5498 "Properties.c"
-}
-
-
-static ExtendedPropertiesWindowExtendedProperties*
-extended_properties_window_extended_properties_new (void)
-{
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- return extended_properties_window_extended_properties_construct (EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES);
-#line 5507 "Properties.c"
-}
-
-
-static void
-extended_properties_window_extended_properties_class_init (ExtendedPropertiesWindowExtendedPropertiesClass * klass)
-{
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- extended_properties_window_extended_properties_parent_class = g_type_class_peek_parent (klass);
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- g_type_class_add_private (klass, sizeof (ExtendedPropertiesWindowExtendedPropertiesPrivate));
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->clear_properties = (void (*) (Properties *)) extended_properties_window_extended_properties_real_clear_properties;
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->get_single_properties = (void (*) (Properties *, DataView*)) extended_properties_window_extended_properties_real_get_single_properties;
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- ((PropertiesClass *) klass)->internal_update_properties = (void (*) (Properties *, Page*)) extended_properties_window_extended_properties_real_internal_update_properties;
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- G_OBJECT_CLASS (klass)->finalize = extended_properties_window_extended_properties_finalize;
-#line 5526 "Properties.c"
-}
-
-
-static void
-extended_properties_window_extended_properties_instance_init (ExtendedPropertiesWindowExtendedProperties * self)
-{
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_GET_PRIVATE (self);
-#line 5535 "Properties.c"
-}
-
-
-static void
-extended_properties_window_extended_properties_finalize (GObject * obj)
-{
- ExtendedPropertiesWindowExtendedProperties * self;
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties);
-#line 463 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->file_path);
-#line 465 "/home/jens/Source/shotwell/src/Properties.vala"
- _dimensions_free0 (self->priv->original_dim);
-#line 466 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->camera_make);
-#line 467 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->camera_model);
-#line 468 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->flash);
-#line 469 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->focal_length);
-#line 471 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->gps_lat_ref);
-#line 473 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->gps_long_ref);
-#line 475 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->artist);
-#line 476 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->copyright);
-#line 477 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->software);
-#line 478 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_bias);
-#line 479 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_date);
-#line 480 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->exposure_time);
-#line 482 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->development_path);
-#line 489 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_free0 (self->priv->comment);
-#line 460 "/home/jens/Source/shotwell/src/Properties.vala"
- G_OBJECT_CLASS (extended_properties_window_extended_properties_parent_class)->finalize (obj);
-#line 5579 "Properties.c"
-}
-
-
-static GType
-extended_properties_window_extended_properties_get_type (void)
-{
- static volatile gsize extended_properties_window_extended_properties_type_id__volatile = 0;
- if (g_once_init_enter (&extended_properties_window_extended_properties_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ExtendedPropertiesWindowExtendedPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) extended_properties_window_extended_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExtendedPropertiesWindowExtendedProperties), 0, (GInstanceInitFunc) extended_properties_window_extended_properties_instance_init, NULL };
- GType extended_properties_window_extended_properties_type_id;
- extended_properties_window_extended_properties_type_id = g_type_register_static (TYPE_PROPERTIES, "ExtendedPropertiesWindowExtendedProperties", &g_define_type_info, 0);
- g_once_init_leave (&extended_properties_window_extended_properties_type_id__volatile, extended_properties_window_extended_properties_type_id);
- }
- return extended_properties_window_extended_properties_type_id__volatile;
-}
-
-
-static void
-extended_properties_window_class_init (ExtendedPropertiesWindowClass * klass)
-{
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- extended_properties_window_parent_class = g_type_class_peek_parent (klass);
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- g_type_class_add_private (klass, sizeof (ExtendedPropertiesWindowPrivate));
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) extended_properties_window_real_button_press_event;
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) extended_properties_window_real_key_press_event;
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- ((GtkWidgetClass *) klass)->show_all = (void (*) (GtkWidget *)) extended_properties_window_real_show_all;
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- G_OBJECT_CLASS (klass)->finalize = extended_properties_window_finalize;
-#line 5612 "Properties.c"
-}
-
-
-static void
-extended_properties_window_instance_init (ExtendedPropertiesWindow * self)
-{
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv = EXTENDED_PROPERTIES_WINDOW_GET_PRIVATE (self);
-#line 458 "/home/jens/Source/shotwell/src/Properties.vala"
- self->priv->properties = NULL;
-#line 5623 "Properties.c"
-}
-
-
-static void
-extended_properties_window_finalize (GObject * obj)
-{
- ExtendedPropertiesWindow * self;
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow);
-#line 458 "/home/jens/Source/shotwell/src/Properties.vala"
- _g_object_unref0 (self->priv->properties);
-#line 457 "/home/jens/Source/shotwell/src/Properties.vala"
- G_OBJECT_CLASS (extended_properties_window_parent_class)->finalize (obj);
-#line 5637 "Properties.c"
-}
-
-
-GType
-extended_properties_window_get_type (void)
-{
- static volatile gsize extended_properties_window_type_id__volatile = 0;
- if (g_once_init_enter (&extended_properties_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ExtendedPropertiesWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) extended_properties_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExtendedPropertiesWindow), 0, (GInstanceInitFunc) extended_properties_window_instance_init, NULL };
- GType extended_properties_window_type_id;
- extended_properties_window_type_id = g_type_register_static (gtk_dialog_get_type (), "ExtendedPropertiesWindow", &g_define_type_info, 0);
- g_once_init_leave (&extended_properties_window_type_id__volatile, extended_properties_window_type_id);
- }
- return extended_properties_window_type_id__volatile;
-}
-
-
-
diff --git a/src/Properties.vala b/src/Properties.vala
index 3cbd5af..2a07bb0 100644
--- a/src/Properties.vala
+++ b/src/Properties.vala
@@ -8,53 +8,64 @@ private abstract class Properties : Gtk.Grid {
uint line_count = 0;
public Properties() {
- row_spacing = 0;
- column_spacing = 6;
+ row_spacing = 6;
+ column_spacing = 12;
}
- protected void add_line(string label_text, string info_text, bool multi_line = false) {
+ protected void add_line(string label_text, string info_text, bool multi_line = false, string? href = null) {
Gtk.Label label = new Gtk.Label("");
Gtk.Widget info;
label.set_justify(Gtk.Justification.RIGHT);
+ label.get_style_context().add_class("dim-label");
label.set_markup(GLib.Markup.printf_escaped("<span font_weight=\"bold\">%s</span>", label_text));
if (multi_line) {
Gtk.ScrolledWindow info_scroll = new Gtk.ScrolledWindow(null, null);
- info_scroll.shadow_type = Gtk.ShadowType.ETCHED_IN;
+ info_scroll.shadow_type = Gtk.ShadowType.NONE;
Gtk.TextView view = new Gtk.TextView();
// by default TextView widgets have a white background, which
// makes sense during editing. In this instance we only *show*
// the content and thus want that the parent's background color
// is inherited to the TextView
- Gtk.StyleContext context = info_scroll.get_style_context();
- view.override_background_color (Gtk.StateFlags.NORMAL,
- context.get_background_color(Gtk.StateFlags.NORMAL));
+ view.get_style_context().add_class("shotwell-static");
view.set_wrap_mode(Gtk.WrapMode.WORD);
view.set_cursor_visible(false);
view.set_editable(false);
view.buffer.text = is_string_empty(info_text) ? "" : info_text;
+ view.hexpand = true;
info_scroll.add(view);
- label.xalign = 1.0f;
- label.yalign = 0.0f;
+ label.halign = Gtk.Align.END;
+ label.valign = Gtk.Align.START;
info = (Gtk.Widget) info_scroll;
} else {
Gtk.Label info_label = new Gtk.Label("");
- info_label.set_markup(is_string_empty(info_text) ? "" : info_text);
+ if (!is_string_empty(info_text)) {
+ info_label.set_tooltip_markup(info_text);
+ }
+
+ if (href == null) {
+ info_label.set_markup(is_string_empty(info_text) ? "" : info_text);
+ } else {
+ info_label.set_markup("<a href=\"%s\">%s</a>".printf(href, info_text));
+ }
info_label.set_ellipsize(Pango.EllipsizeMode.END);
- info_label.xalign = 0.0f;
- info_label.yalign = 0.5f;
+ info_label.halign = Gtk.Align.START;
+ info_label.valign = Gtk.Align.FILL;
+ info_label.hexpand = false;
+ info_label.vexpand = false;
+ info_label.set_justify(Gtk.Justification.LEFT);
info_label.set_selectable(true);
- label.xalign = 1.0f;
- label.yalign = 0.5f;
+ label.halign = Gtk.Align.END;
+ label.valign = Gtk.Align.FILL;
info = (Gtk.Widget) info_label;
}
attach(label, 0, (int) line_count, 1, 1);
if (multi_line) {
- attach(info, 1, (int) line_count, 1, 2);
+ attach(info, 1, (int) line_count, 1, 3);
} else {
attach(info, 1, (int) line_count, 1, 1);
}
@@ -144,13 +155,6 @@ private abstract class Properties : Gtk.Grid {
public virtual void internal_update_properties(Page page) {
get_properties(page);
}
-
- public void unselect_text() {
- foreach (Gtk.Widget child in get_children()) {
- if (child is Gtk.Label)
- ((Gtk.Label) child).select_region(0, 0);
- }
- }
}
private class BasicProperties : Properties {
@@ -454,237 +458,191 @@ private class BasicProperties : Properties {
}
}
-private class ExtendedPropertiesWindow : Gtk.Dialog {
- private ExtendedProperties properties = null;
-
- private class ExtendedProperties : Properties {
- private const string NO_VALUE = "";
- // Photo stuff
- private string file_path;
- private uint64 filesize;
- private Dimensions? original_dim;
- private string camera_make;
- private string camera_model;
- private string flash;
- private string focal_length;
- private double gps_lat;
- private string gps_lat_ref;
- private double gps_long;
- private string gps_long_ref;
- private double gps_alt;
- private string artist;
- private string copyright;
- private string software;
- private string exposure_bias;
- private string exposure_date;
- private string exposure_time;
- private bool is_raw;
- private string? development_path;
-
- // Event stuff
- // nothing here which is not already shown in the BasicProperties but
- // comments, which are common, see below
+private class ExtendedProperties : Properties {
+ private const string NO_VALUE = "";
+ // Photo stuff
+ private string file_path;
+ private uint64 filesize;
+ private Dimensions? original_dim;
+ private string camera_make;
+ private string camera_model;
+ private string flash;
+ private string focal_length;
+ private double gps_lat;
+ private string gps_lat_ref;
+ private double gps_long;
+ private string gps_long_ref;
+ private double gps_alt;
+ private string artist;
+ private string copyright;
+ private string software;
+ private string exposure_bias;
+ private string exposure_date;
+ private string exposure_time;
+ private bool is_raw;
+ private string? development_path;
+ private const string OSM_LINK_TEMPLATE = "https://www.openstreetmap.org/?mlat=%1$f&amp;mlon=%2$f#map=16/%1$f/%2$f";
+
+ public ExtendedProperties() {
+ base();
+ row_spacing = 6;
+ }
+
+ // Event stuff
+ // nothing here which is not already shown in the BasicProperties but
+ // comments, which are common, see below
+
+ // common stuff
+ private string comment;
- // common stuff
- private string comment;
-
- protected override void clear_properties() {
- base.clear_properties();
-
- file_path = "";
- development_path = "";
- is_raw = false;
- filesize = 0;
- original_dim = Dimensions(0, 0);
- camera_make = "";
- camera_model = "";
- flash = "";
- focal_length = "";
- gps_lat = -1;
- gps_lat_ref = "";
- gps_long = -1;
- gps_long_ref = "";
- artist = "";
- copyright = "";
- software = "";
- exposure_bias = "";
- exposure_date = "";
- exposure_time = "";
- comment = "";
- }
+ protected override void clear_properties() {
+ base.clear_properties();
+
+ file_path = "";
+ development_path = "";
+ is_raw = false;
+ filesize = 0;
+ original_dim = Dimensions(0, 0);
+ camera_make = "";
+ camera_model = "";
+ flash = "";
+ focal_length = "";
+ gps_lat = -1;
+ gps_lat_ref = "";
+ gps_long = -1;
+ gps_long_ref = "";
+ artist = "";
+ copyright = "";
+ software = "";
+ exposure_bias = "";
+ exposure_date = "";
+ exposure_time = "";
+ comment = "";
+ }
+
+ protected override void get_single_properties(DataView view) {
+ base.get_single_properties(view);
+
+ DataSource source = view.get_source();
+ if (source == null)
+ return;
+
+ if (source is MediaSource) {
+ MediaSource media = (MediaSource) source;
+ file_path = media.get_master_file().get_path();
+ development_path = media.get_file().get_path();
+ filesize = media.get_master_filesize();
+
+ // as of right now, all extended properties other than filesize, filepath & comment aren't
+ // applicable to non-photo media types, so if the current media source isn't a photo,
+ // just do a short-circuit return
+ Photo photo = media as Photo;
+ if (photo == null)
+ return;
- protected override void get_single_properties(DataView view) {
- base.get_single_properties(view);
+ PhotoMetadata? metadata;
+
+ try {
+ // For some raw files, the developments may not contain metadata (please
+ // see the comment about cameras generating 'crazy' exif segments in
+ // Photo.develop_photo() for why), and so we'll want to display what was
+ // in the original raw file instead.
+ metadata = photo.get_master_metadata();
+ } catch (Error e) {
+ metadata = photo.get_metadata();
+ }
- DataSource source = view.get_source();
- if (source == null)
+ if (metadata == null)
return;
- if (source is MediaSource) {
- MediaSource media = (MediaSource) source;
- file_path = media.get_master_file().get_path();
- development_path = media.get_file().get_path();
- filesize = media.get_master_filesize();
-
- // as of right now, all extended properties other than filesize, filepath & comment aren't
- // applicable to non-photo media types, so if the current media source isn't a photo,
- // just do a short-circuit return
- Photo photo = media as Photo;
- if (photo == null)
- return;
+ // Fix up any timestamp weirdness.
+ //
+ // If the exposure date wasn't properly set (the most likely cause of this
+ // is a raw with a metadataless development), use the one from the photo
+ // row.
+ if (metadata.get_exposure_date_time() == null)
+ metadata.set_exposure_date_time(new MetadataDateTime(photo.get_timestamp()));
- PhotoMetadata? metadata;
-
- try {
- // For some raw files, the developments may not contain metadata (please
- // see the comment about cameras generating 'crazy' exif segments in
- // Photo.develop_photo() for why), and so we'll want to display what was
- // in the original raw file instead.
- metadata = photo.get_master_metadata();
- } catch (Error e) {
- metadata = photo.get_metadata();
- }
-
- if (metadata == null)
- return;
-
- // Fix up any timestamp weirdness.
- //
- // If the exposure date wasn't properly set (the most likely cause of this
- // is a raw with a metadataless development), use the one from the photo
- // row.
- if (metadata.get_exposure_date_time() == null)
- metadata.set_exposure_date_time(new MetadataDateTime(photo.get_timestamp()));
-
- is_raw = (photo.get_master_file_format() == PhotoFileFormat.RAW);
- original_dim = metadata.get_pixel_dimensions();
- camera_make = metadata.get_camera_make();
- camera_model = metadata.get_camera_model();
- flash = metadata.get_flash_string();
- focal_length = metadata.get_focal_length_string();
- metadata.get_gps(out gps_long, out gps_long_ref, out gps_lat, out gps_lat_ref, out gps_alt);
- artist = metadata.get_artist();
- copyright = metadata.get_copyright();
- software = metadata.get_software();
- exposure_bias = metadata.get_exposure_bias();
- time_t exposure_time_obj = metadata.get_exposure_date_time().get_timestamp();
- exposure_date = get_prettyprint_date(Time.local(exposure_time_obj));
- exposure_time = get_prettyprint_time_with_seconds(Time.local(exposure_time_obj));
- comment = media.get_comment();
- } else if (source is EventSource) {
- Event event = (Event) source;
- comment = event.get_comment();
- }
+ is_raw = (photo.get_master_file_format() == PhotoFileFormat.RAW);
+ original_dim = metadata.get_pixel_dimensions();
+ camera_make = metadata.get_camera_make();
+ camera_model = metadata.get_camera_model();
+ flash = metadata.get_flash_string();
+ focal_length = metadata.get_focal_length_string();
+ metadata.get_gps(out gps_long, out gps_long_ref, out gps_lat, out gps_lat_ref, out gps_alt);
+ artist = metadata.get_artist();
+ copyright = metadata.get_copyright();
+ software = metadata.get_software();
+ exposure_bias = metadata.get_exposure_bias();
+ time_t exposure_time_obj = metadata.get_exposure_date_time().get_timestamp();
+ exposure_date = get_prettyprint_date(Time.local(exposure_time_obj));
+ exposure_time = get_prettyprint_time_with_seconds(Time.local(exposure_time_obj));
+ comment = media.get_comment();
+ } else if (source is EventSource) {
+ Event event = (Event) source;
+ comment = event.get_comment();
}
-
- public override void internal_update_properties(Page page) {
- base.internal_update_properties(page);
+ }
- if (page is EventsDirectoryPage) {
- // nothing special to be done for now for Events
- } else {
- add_line(_("Location:"), (file_path != "" && file_path != null) ?
- file_path.replace("&", "&amp;") : NO_VALUE);
+ public override void internal_update_properties(Page page) {
+ base.internal_update_properties(page);
- add_line(_("File size:"), (filesize > 0) ?
- format_size((int64) filesize) : NO_VALUE);
+ if (page is EventsDirectoryPage) {
+ // nothing special to be done for now for Events
+ } else {
+ add_line(_("Location:"), (file_path != "" && file_path != null) ?
+ file_path.replace("&", "&amp;") : NO_VALUE);
- if (is_raw)
- add_line(_("Current Development:"), development_path);
+ add_line(_("File size:"), (filesize > 0) ?
+ format_size((int64) filesize) : NO_VALUE);
- add_line(_("Original dimensions:"), (original_dim != null && original_dim.has_area()) ?
- "%d &#215; %d".printf(original_dim.width, original_dim.height) : NO_VALUE);
+ if (is_raw)
+ add_line(_("Current Development:"), development_path);
- add_line(_("Camera make:"), (camera_make != "" && camera_make != null) ?
- camera_make : NO_VALUE);
+ add_line(_("Original dimensions:"), (original_dim != null && original_dim.has_area()) ?
+ "%d &#215; %d".printf(original_dim.width, original_dim.height) : NO_VALUE);
- add_line(_("Camera model:"), (camera_model != "" && camera_model != null) ?
- camera_model : NO_VALUE);
+ add_line(_("Camera make:"), (camera_make != "" && camera_make != null) ?
+ camera_make : NO_VALUE);
- add_line(_("Flash:"), (flash != "" && flash != null) ? flash : NO_VALUE);
+ add_line(_("Camera model:"), (camera_model != "" && camera_model != null) ?
+ camera_model : NO_VALUE);
- add_line(_("Focal length:"), (focal_length != "" && focal_length != null) ?
- focal_length : NO_VALUE);
-
- add_line(_("Exposure date:"), (exposure_date != "" && exposure_date != null) ?
- exposure_date : NO_VALUE);
-
- add_line(_("Exposure time:"), (exposure_time != "" && exposure_time != null) ?
- exposure_time : NO_VALUE);
-
- add_line(_("Exposure bias:"), (exposure_bias != "" && exposure_bias != null) ? exposure_bias : NO_VALUE);
+ add_line(_("Flash:"), (flash != "" && flash != null) ? flash : NO_VALUE);
+
+ add_line(_("Focal length:"), (focal_length != "" && focal_length != null) ?
+ focal_length : NO_VALUE);
- add_line(_("GPS latitude:"), (gps_lat != -1 && gps_lat_ref != "" &&
- gps_lat_ref != null) ? "%f °%s".printf(gps_lat, gps_lat_ref) : NO_VALUE);
+ add_line(_("Exposure date:"), (exposure_date != "" && exposure_date != null) ?
+ exposure_date : NO_VALUE);
- add_line(_("GPS longitude:"), (gps_long != -1 && gps_long_ref != "" &&
- gps_long_ref != null) ? "%f °%s".printf(gps_long, gps_long_ref) : NO_VALUE);
+ add_line(_("Exposure time:"), (exposure_time != "" && exposure_time != null) ?
+ exposure_time : NO_VALUE);
- add_line(_("Artist:"), (artist != "" && artist != null) ? artist : NO_VALUE);
+ add_line(_("Exposure bias:"), (exposure_bias != "" && exposure_bias != null) ? exposure_bias : NO_VALUE);
- add_line(_("Copyright:"), (copyright != "" && copyright != null) ? copyright : NO_VALUE);
-
- add_line(_("Software:"), (software != "" && software != null) ? software : NO_VALUE);
+ string? osm_link = null;
+ if (gps_lat != -1 && gps_lat_ref != "" && gps_long != -1 && gps_long_ref != "") {
+ var old_locale = Intl.setlocale(LocaleCategory.NUMERIC, "C");
+ osm_link = OSM_LINK_TEMPLATE.printf(gps_lat, gps_long);
+ Intl.setlocale(LocaleCategory.NUMERIC, old_locale);
}
- bool has_comment = (comment != "" && comment != null);
- add_line(_("Comment:"), has_comment ? comment : NO_VALUE, has_comment);
- }
- }
+ add_line(_("GPS latitude:"), (gps_lat != -1 && gps_lat_ref != "" &&
+ gps_lat_ref != null) ? "%f °%s".printf(gps_lat, gps_lat_ref) : NO_VALUE, false, osm_link);
- public ExtendedPropertiesWindow(Gtk.Window owner) {
- Object(use_header_bar: Resources.use_header_bar());
-
- add_events(Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.KEY_PRESS_MASK);
- focus_on_map = true;
- set_accept_focus(true);
- set_can_focus(true);
- set_title(_("Extended Information"));
- set_position(Gtk.WindowPosition.CENTER);
- set_transient_for(owner);
- set_type_hint(Gdk.WindowTypeHint.DIALOG);
-
- delete_event.connect(hide_on_delete);
-
- properties = new ExtendedProperties();
- properties.halign = Gtk.Align.FILL;
- properties.valign = Gtk.Align.FILL;
- properties.hexpand = true;
- properties.vexpand = true;
- properties.set_margin_top (3);
- properties.set_margin_bottom (3);
- properties.set_margin_start (3);
- properties.set_margin_end (3);
- ((Gtk.Box) get_content_area()).add(properties);
- }
+ add_line(_("GPS longitude:"), (gps_long != -1 && gps_long_ref != "" &&
+ gps_long_ref != null) ? "%f °%s".printf(gps_long, gps_long_ref) : NO_VALUE, false, osm_link);
- public override bool button_press_event(Gdk.EventButton event) {
- // LMB only
- if (event.button != 1)
- return (base.button_press_event != null) ? base.button_press_event(event) : true;
+ add_line(_("Artist:"), (artist != "" && artist != null) ? artist : NO_VALUE);
- begin_move_drag((int) event.button, (int) event.x_root, (int) event.y_root, event.time);
+ add_line(_("Copyright:"), (copyright != "" && copyright != null) ? copyright : NO_VALUE);
- return true;
- }
-
- public override bool key_press_event(Gdk.EventKey event) {
- // hide properties
- if (Gdk.keyval_name(event.keyval) == "Escape") {
- hide();
- return true;
+ add_line(_("Software:"), (software != "" && software != null) ? software : NO_VALUE);
}
- // or send through to AppWindow
- return AppWindow.get_instance().key_press_event(event);
- }
- public void update_properties(Page page) {
- properties.update_properties(page);
- }
-
- public override void show_all() {
- base.show_all();
- properties.unselect_text();
- grab_focus();
+ bool has_comment = (comment != "" && comment != null);
+ add_line(_("Comment:"), has_comment ? comment : NO_VALUE, has_comment);
}
+
}
diff --git a/src/Resources.c b/src/Resources.c
deleted file mode 100644
index 0db3c0e..0000000
--- a/src/Resources.c
+++ /dev/null
@@ -1,3817 +0,0 @@
-/* Resources.c generated by valac 0.40.4, the Vala compiler
- * generated from Resources.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* defined by ./configure or Makefile and included by gcc -D*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gee.h>
-#include <gtk/gtk.h>
-#include <locale.h>
-#include <langinfo.h>
-#include <gio/gio.h>
-#include <gdk/gdk.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RATING_FILTER (rating_filter_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define RESOURCES_TYPE_UNIT_SYSTEM (resources_unit_system_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RATING_FILTER_NO_FILTER = 0,
- RATING_FILTER_REJECTED_OR_HIGHER = 1,
- RATING_FILTER_UNRATED_OR_HIGHER = 2,
- RATING_FILTER_ONE_OR_HIGHER = 3,
- RATING_FILTER_TWO_OR_HIGHER = 4,
- RATING_FILTER_THREE_OR_HIGHER = 5,
- RATING_FILTER_FOUR_OR_HIGHER = 6,
- RATING_FILTER_FIVE_OR_HIGHER = 7,
- RATING_FILTER_REJECTED_ONLY = 8,
- RATING_FILTER_UNRATED_ONLY = 9,
- RATING_FILTER_ONE_ONLY = 10,
- RATING_FILTER_TWO_ONLY = 11,
- RATING_FILTER_THREE_ONLY = 12,
- RATING_FILTER_FOUR_ONLY = 13,
- RATING_FILTER_FIVE_ONLY = 14
-} RatingFilter;
-
-typedef enum {
- RESOURCES_UNIT_SYSTEM_IMPERIAL,
- RESOURCES_UNIT_SYSTEM_METRIC,
- RESOURCES_UNIT_SYSTEM_UNKNOWN
-} ResourcesUnitSystem;
-
-
-extern gchar* resources_RATE_ONE_LABEL;
-extern gchar* resources_RATE_TWO_LABEL;
-extern gchar* resources_RATE_THREE_LABEL;
-extern gchar* resources_RATE_FOUR_LABEL;
-extern gchar* resources_RATE_FIVE_LABEL;
-extern gchar* resources_RATE_ONE_MENU;
-extern gchar* resources_RATE_TWO_MENU;
-extern gchar* resources_RATE_THREE_MENU;
-extern gchar* resources_RATE_FOUR_MENU;
-extern gchar* resources_RATE_FIVE_MENU;
-extern gchar* resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP;
-extern gchar* resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP;
-extern gchar* resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP;
-extern gchar* resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP;
-extern gchar* resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP;
-extern gchar* resources_RATE_ONE_PROGRESS;
-extern gchar* resources_RATE_TWO_PROGRESS;
-extern gchar* resources_RATE_THREE_PROGRESS;
-extern gchar* resources_RATE_FOUR_PROGRESS;
-extern gchar* resources_RATE_FIVE_PROGRESS;
-extern gchar* resources_RATE_ONE_TOOLTIP;
-extern gchar* resources_RATE_TWO_TOOLTIP;
-extern gchar* resources_RATE_THREE_TOOLTIP;
-extern gchar* resources_RATE_FOUR_TOOLTIP;
-extern gchar* resources_RATE_FIVE_TOOLTIP;
-extern gchar* resources_DISPLAY_ONE_OR_HIGHER_MENU;
-extern gchar* resources_DISPLAY_TWO_OR_HIGHER_MENU;
-extern gchar* resources_DISPLAY_THREE_OR_HIGHER_MENU;
-extern gchar* resources_DISPLAY_FOUR_OR_HIGHER_MENU;
-extern gchar* resources_DISPLAY_FIVE_OR_HIGHER_MENU;
-extern gchar* resources_DISPLAY_ONE_OR_HIGHER_LABEL;
-extern gchar* resources_DISPLAY_TWO_OR_HIGHER_LABEL;
-extern gchar* resources_DISPLAY_THREE_OR_HIGHER_LABEL;
-extern gchar* resources_DISPLAY_FOUR_OR_HIGHER_LABEL;
-extern gchar* resources_DISPLAY_FIVE_OR_HIGHER_LABEL;
-gchar* resources_RATE_ONE_MENU = NULL;
-gchar* resources_RATE_ONE_LABEL = NULL;
-gchar* resources_RATE_ONE_TOOLTIP = NULL;
-gchar* resources_RATE_ONE_PROGRESS = NULL;
-gchar* resources_RATE_TWO_MENU = NULL;
-gchar* resources_RATE_TWO_LABEL = NULL;
-gchar* resources_RATE_TWO_TOOLTIP = NULL;
-gchar* resources_RATE_TWO_PROGRESS = NULL;
-gchar* resources_RATE_THREE_MENU = NULL;
-gchar* resources_RATE_THREE_LABEL = NULL;
-gchar* resources_RATE_THREE_TOOLTIP = NULL;
-gchar* resources_RATE_THREE_PROGRESS = NULL;
-gchar* resources_RATE_FOUR_MENU = NULL;
-gchar* resources_RATE_FOUR_LABEL = NULL;
-gchar* resources_RATE_FOUR_TOOLTIP = NULL;
-gchar* resources_RATE_FOUR_PROGRESS = NULL;
-gchar* resources_RATE_FIVE_MENU = NULL;
-gchar* resources_RATE_FIVE_LABEL = NULL;
-gchar* resources_RATE_FIVE_TOOLTIP = NULL;
-gchar* resources_RATE_FIVE_PROGRESS = NULL;
-gchar* resources_DISPLAY_ONE_OR_HIGHER_MENU = NULL;
-gchar* resources_DISPLAY_ONE_OR_HIGHER_LABEL = NULL;
-gchar* resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP = NULL;
-gchar* resources_DISPLAY_TWO_OR_HIGHER_MENU = NULL;
-gchar* resources_DISPLAY_TWO_OR_HIGHER_LABEL = NULL;
-gchar* resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP = NULL;
-gchar* resources_DISPLAY_THREE_OR_HIGHER_MENU = NULL;
-gchar* resources_DISPLAY_THREE_OR_HIGHER_LABEL = NULL;
-gchar* resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP = NULL;
-gchar* resources_DISPLAY_FOUR_OR_HIGHER_MENU = NULL;
-gchar* resources_DISPLAY_FOUR_OR_HIGHER_LABEL = NULL;
-gchar* resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP = NULL;
-gchar* resources_DISPLAY_FIVE_OR_HIGHER_MENU = NULL;
-gchar* resources_DISPLAY_FIVE_OR_HIGHER_LABEL = NULL;
-gchar* resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP = NULL;
-extern GeeHashMap* resources_icon_cache;
-GeeHashMap* resources_icon_cache = NULL;
-extern GeeHashMap* resources_scaled_icon_cache;
-GeeHashMap* resources_scaled_icon_cache = NULL;
-extern gchar* resources_HH_MM_FORMAT_STRING;
-gchar* resources_HH_MM_FORMAT_STRING = NULL;
-extern gchar* resources_HH_MM_SS_FORMAT_STRING;
-gchar* resources_HH_MM_SS_FORMAT_STRING = NULL;
-extern gchar* resources_LONG_DATE_FORMAT_STRING;
-gchar* resources_LONG_DATE_FORMAT_STRING = NULL;
-extern gchar* resources_START_MULTIDAY_DATE_FORMAT_STRING;
-gchar* resources_START_MULTIDAY_DATE_FORMAT_STRING = NULL;
-extern gchar* resources_END_MULTIDAY_DATE_FORMAT_STRING;
-gchar* resources_END_MULTIDAY_DATE_FORMAT_STRING = NULL;
-extern gchar* resources_START_MULTIMONTH_DATE_FORMAT_STRING;
-gchar* resources_START_MULTIMONTH_DATE_FORMAT_STRING = NULL;
-extern gchar* resources_END_MULTIMONTH_DATE_FORMAT_STRING;
-gchar* resources_END_MULTIMONTH_DATE_FORMAT_STRING = NULL;
-extern gchar* resources_lc_measurement;
-gchar* resources_lc_measurement = NULL;
-extern ResourcesUnitSystem resources_unit_system;
-ResourcesUnitSystem resources_unit_system = RESOURCES_UNIT_SYSTEM_UNKNOWN;
-extern GdkPixbuf* resources_noninterpretable_badge_pixbuf;
-GdkPixbuf* resources_noninterpretable_badge_pixbuf = NULL;
-extern GeeMap* resources_providers;
-GeeMap* resources_providers = NULL;
-
-#define RESOURCES_APP_TITLE "Shotwell"
-#define RESOURCES_APP_LIBRARY_ROLE _ ("Photo Manager")
-#define RESOURCES_APP_DIRECT_ROLE _ ("Photo Viewer")
-#define RESOURCES_APP_VERSION _VERSION
-#define RESOURCES_GIT_VERSION _GIT_VERSION
-#define RESOURCES_COPYRIGHT _ ("Copyright 2016 Software Freedom Conservancy Inc.")
-#define RESOURCES_APP_GETTEXT_PACKAGE GETTEXT_PACKAGE
-#define RESOURCES_HOME_URL "https://wiki.gnome.org/Apps/Shotwell"
-#define RESOURCES_FAQ_URL "https://wiki.gnome.org/Apps/Shotwell/FAQ"
-#define RESOURCES_BUG_DB_URL "https://wiki.gnome.org/Apps/Shotwell/ReportingABug"
-#define RESOURCES_DIR_PATTERN_URI_SYSWIDE "help:shotwell/other-files"
-#define RESOURCES_LIB _LIB
-#define RESOURCES_LIBEXECDIR _LIBEXECDIR
-#define RESOURCES_PREFIX _PREFIX
-#define RESOURCES_TRANSIENT_WINDOW_OPACITY 0.90
-#define RESOURCES_DEFAULT_ICON_SCALE 24
-#define RESOURCES_LICENSE "\n" \
-"Shotwell is free software; you can redistribute it and/or modify it un" \
-"der the \n" \
-"terms of the GNU Lesser General Public License as published by the Fre" \
-"e \n" \
-"Software Foundation; either version 2.1 of the License, or (at your op" \
-"tion) \n" \
-"any later version.\n" \
-"\n" \
-"Shotwell is distributed in the hope that it will be useful, but WITHOU" \
-"T \n" \
-"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \
-"FITNESS\n" \
-"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \
-"or \n" \
-"more details.\n" \
-"\n" \
-"You should have received a copy of the GNU Lesser General Public Licen" \
-"se \n" \
-"along with Shotwell; if not, write to the Free Software Foundation, In" \
-"c., \n" \
-"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
-#define RESOURCES_CLOCKWISE "object-rotate-right"
-#define RESOURCES_COUNTERCLOCKWISE "object-rotate-left"
-#define RESOURCES_HFLIP "object-flip-horizontal"
-#define RESOURCES_VFLIP "object-flip-vertical"
-#define RESOURCES_CROP "shotwell-crop"
-#define RESOURCES_STRAIGHTEN "shotwell-straighten"
-#define RESOURCES_REDEYE "shotwell-redeye"
-#define RESOURCES_ADJUST "image-adjust"
-#define RESOURCES_PIN_TOOLBAR "shotwell-pin-toolbar"
-#define RESOURCES_MAKE_PRIMARY "shotwell-make-primary"
-#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"
-#define RESOURCES_MERGE "shotwell-merge-events"
-#define RESOURCES_GO_NEXT "go-next"
-#define RESOURCES_GO_PREVIOUS "go-previous"
-#define RESOURCES_ICON_ABOUT_LOGO "about-braunschweig.jpg"
-#define RESOURCES_ICON_GENERIC_PLUGIN "generic-plugin.png"
-#define RESOURCES_ICON_SLIDESHOW_EXTENSION_POINT "slideshow-extension-point"
-#define RESOURCES_ICON_RATING_REJECTED "rejected.svg"
-#define RESOURCES_ICON_RATING_ONE "one-star.svg"
-#define RESOURCES_ICON_RATING_TWO "two-stars.svg"
-#define RESOURCES_ICON_RATING_THREE "three-stars.svg"
-#define RESOURCES_ICON_RATING_FOUR "four-stars.svg"
-#define RESOURCES_ICON_RATING_FIVE "five-stars.svg"
-#define RESOURCES_ICON_FILTER_REJECTED_OR_BETTER "all-rejected.png"
-#define RESOURCES_ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE 32
-#define RESOURCES_ICON_FILTER_UNRATED_OR_BETTER "shotwell-16.png"
-#define RESOURCES_ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE 16
-#define RESOURCES_ICON_FILTER_ONE_OR_BETTER "one-star-filter-plus.svg"
-#define RESOURCES_ICON_FILTER_TWO_OR_BETTER "two-star-filter-plus.svg"
-#define RESOURCES_ICON_FILTER_THREE_OR_BETTER "three-star-filter-plus.svg"
-#define RESOURCES_ICON_FILTER_FOUR_OR_BETTER "four-star-filter-plus.svg"
-#define RESOURCES_ICON_FILTER_FIVE "five-star-filter.svg"
-#define RESOURCES_ICON_ZOOM_IN "zoom-in.png"
-#define RESOURCES_ICON_ZOOM_OUT "zoom-out.png"
-#define RESOURCES_ICON_ZOOM_SCALE 16
-#define RESOURCES_ICON_CAMERAS "camera-photo"
-#define RESOURCES_ICON_EVENTS "multiple-events"
-#define RESOURCES_ICON_ONE_EVENT "one-event"
-#define RESOURCES_ICON_NO_EVENT "no-event"
-#define RESOURCES_ICON_ONE_TAG "one-tag"
-#define RESOURCES_ICON_TAGS "multiple-tags"
-#define RESOURCES_ICON_FOLDER "folder"
-#define RESOURCES_ICON_FOLDER_DOCUMENTS "folder-documents"
-#define RESOURCES_ICON_IMPORTING "go-down"
-#define RESOURCES_ICON_LAST_IMPORT "document-open-recent"
-#define RESOURCES_ICON_MISSING_FILES "process-stop"
-#define RESOURCES_ICON_PHOTOS "shotwell"
-#define RESOURCES_ICON_SINGLE_PHOTO "image-x-generic"
-#define RESOURCES_ICON_FILTER_PHOTOS "filter-photos"
-#define RESOURCES_ICON_FILTER_PHOTOS_DISABLED "filter-photos-disabled"
-#define RESOURCES_ICON_FILTER_VIDEOS "filter-videos"
-#define RESOURCES_ICON_FILTER_VIDEOS_DISABLED "filter-videos-disabled"
-#define RESOURCES_ICON_FILTER_RAW "filter-raw"
-#define RESOURCES_ICON_FILTER_RAW_DISABLED "filter-raw-disabled"
-#define RESOURCES_ICON_FILTER_FLAGGED "filter-flagged"
-#define RESOURCES_ICON_FILTER_FLAGGED_DISABLED "filter-flagged-disabled"
-#define RESOURCES_ICON_TRASH_EMPTY "user-trash"
-#define RESOURCES_ICON_TRASH_FULL "user-trash-full"
-#define RESOURCES_ICON_VIDEOS_PAGE "videos-page"
-#define RESOURCES_ICON_FLAGGED_PAGE "flag-page"
-#define RESOURCES_ICON_FLAGGED_TRINKET "flag-trinket.png"
-#define RESOURCES_ROTATE_CW_MENU _ ("Rotate _Right")
-#define RESOURCES_ROTATE_CW_LABEL _ ("Rotate")
-#define RESOURCES_ROTATE_CW_FULL_LABEL _ ("Rotate Right")
-#define RESOURCES_ROTATE_CW_TOOLTIP _ ("Rotate the photos right (press Ctrl to rotate left)")
-#define RESOURCES_ROTATE_CCW_MENU _ ("Rotate _Left")
-#define RESOURCES_ROTATE_CCW_LABEL _ ("Rotate")
-#define RESOURCES_ROTATE_CCW_FULL_LABEL _ ("Rotate Left")
-#define RESOURCES_ROTATE_CCW_TOOLTIP _ ("Rotate the photos left")
-#define RESOURCES_HFLIP_MENU _ ("Flip Hori_zontally")
-#define RESOURCES_HFLIP_LABEL _ ("Flip Horizontally")
-#define RESOURCES_VFLIP_MENU _ ("Flip Verti_cally")
-#define RESOURCES_VFLIP_LABEL _ ("Flip Vertically")
-#define RESOURCES_ABOUT_LABEL _ ("_About")
-#define RESOURCES_APPLY_LABEL _ ("_Apply")
-#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
-#define RESOURCES_DELETE_LABEL _ ("_Delete")
-#define RESOURCES_EDIT_LABEL _ ("_Edit")
-#define RESOURCES_FORWARD_LABEL _ ("_Forward")
-#define RESOURCES_FULLSCREEN_LABEL _ ("Fulls_creen")
-#define RESOURCES_HELP_LABEL _ ("_Help")
-#define RESOURCES_LEAVE_FULLSCREEN_LABEL _ ("Leave _Fullscreen")
-#define RESOURCES_NEW_LABEL _ ("_New")
-#define RESOURCES_NEXT_LABEL _ ("_Next")
-#define RESOURCES_OK_LABEL _ ("_OK")
-#define RESOURCES_PLAY_LABEL _ ("_Play")
-#define RESOURCES_PREFERENCES_LABEL _ ("_Preferences")
-#define RESOURCES_PREVIOUS_LABEL _ ("_Previous")
-#define RESOURCES_PRINT_LABEL _ ("_Print")
-#define RESOURCES_QUIT_LABEL _ ("_Quit")
-#define RESOURCES_REFRESH_LABEL _ ("_Refresh")
-#define RESOURCES_REMOVE_LABEL _ ("_Remove")
-#define RESOURCES_REVERT_TO_SAVED_LABEL _ ("_Revert")
-#define RESOURCES_SAVE_LABEL _ ("_Save")
-#define RESOURCES_SAVE_AS_LABEL _ ("Save _As")
-#define RESOURCES_SORT_ASCENDING_LABEL _ ("Sort _Ascending")
-#define RESOURCES_SORT_DESCENDING_LABEL _ ("Sort _Descending")
-#define RESOURCES_STOP_LABEL _ ("_Stop")
-#define RESOURCES_UNDELETE_LABEL _ ("_Undelete")
-#define RESOURCES_ZOOM_100_LABEL _ ("_Normal Size")
-#define RESOURCES_ZOOM_FIT_LABEL _ ("Best _Fit")
-#define RESOURCES_ZOOM_IN_LABEL _ ("Zoom _In")
-#define RESOURCES_ZOOM_OUT_LABEL _ ("Zoom _Out")
-#define RESOURCES_ENHANCE_MENU _ ("_Enhance")
-#define RESOURCES_ENHANCE_LABEL _ ("Enhance")
-#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance")
-#define RESOURCES_COPY_ADJUSTMENTS_MENU _ ("_Copy Color Adjustments")
-#define RESOURCES_COPY_ADJUSTMENTS_LABEL _ ("Copy Color Adjustments")
-#define RESOURCES_COPY_ADJUSTMENTS_TOOLTIP _ ("Copy the color adjustments applied to the photo")
-#define RESOURCES_PASTE_ADJUSTMENTS_MENU _ ("_Paste Color Adjustments")
-#define RESOURCES_PASTE_ADJUSTMENTS_LABEL _ ("Paste Color Adjustments")
-#define RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP _ ("Apply copied color adjustments to the selected photos")
-#define RESOURCES_CROP_MENU _ ("_Crop")
-#define RESOURCES_CROP_LABEL _ ("Crop")
-#define RESOURCES_CROP_TOOLTIP _ ("Crop the photo’s size")
-#define RESOURCES_STRAIGHTEN_MENU _ ("_Straighten")
-#define RESOURCES_STRAIGHTEN_LABEL _ ("Straighten")
-#define RESOURCES_STRAIGHTEN_TOOLTIP _ ("Straighten the photo")
-#define RESOURCES_RED_EYE_MENU _ ("_Red-eye")
-#define RESOURCES_RED_EYE_LABEL _ ("Red-eye")
-#define RESOURCES_RED_EYE_TOOLTIP _ ("Reduce or eliminate any red-eye effects in the photo")
-#define RESOURCES_ADJUST_MENU _ ("_Adjust")
-#define RESOURCES_ADJUST_LABEL _ ("Adjust")
-#define RESOURCES_ADJUST_TOOLTIP _ ("Adjust the photo’s color and tone")
-#define RESOURCES_REVERT_MENU _ ("Re_vert to Original")
-#define RESOURCES_REVERT_LABEL _ ("Revert to Original")
-#define RESOURCES_REVERT_EDITABLE_MENU _ ("Revert External E_dits")
-#define RESOURCES_REVERT_EDITABLE_TOOLTIP _ ("Revert to the master photo")
-#define RESOURCES_SET_BACKGROUND_MENU _ ("Set as _Desktop Background")
-#define RESOURCES_SET_BACKGROUND_TOOLTIP _ ("Set selected image to be the new desktop background")
-#define RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU _ ("Set as _Desktop Slideshow…")
-#define RESOURCES_UNDO_MENU _ ("_Undo")
-#define RESOURCES_UNDO_LABEL _ ("Undo")
-#define RESOURCES_REDO_MENU _ ("_Redo")
-#define RESOURCES_REDO_LABEL _ ("Redo")
-#define RESOURCES_RENAME_EVENT_MENU _ ("Re_name Event…")
-#define RESOURCES_RENAME_EVENT_LABEL _ ("Rename Event")
-#define RESOURCES_MAKE_KEY_PHOTO_MENU _ ("Make _Key Photo for Event")
-#define RESOURCES_MAKE_KEY_PHOTO_LABEL _ ("Make Key Photo for Event")
-#define RESOURCES_NEW_EVENT_MENU _ ("_New Event")
-#define RESOURCES_NEW_EVENT_LABEL _ ("New Event")
-#define RESOURCES_SET_PHOTO_EVENT_LABEL _ ("Move Photos")
-#define RESOURCES_SET_PHOTO_EVENT_TOOLTIP _ ("Move photos to an event")
-#define RESOURCES_MERGE_MENU _ ("_Merge Events")
-#define RESOURCES_MERGE_LABEL _ ("Merge")
-#define RESOURCES_MERGE_TOOLTIP _ ("Combine events into a single event")
-#define RESOURCES_RATING_MENU _ ("_Set Rating")
-#define RESOURCES_RATING_LABEL _ ("Set Rating")
-#define RESOURCES_RATING_TOOLTIP _ ("Change the rating of your photo")
-#define RESOURCES_INCREASE_RATING_MENU _ ("_Increase")
-#define RESOURCES_INCREASE_RATING_LABEL _ ("Increase Rating")
-#define RESOURCES_DECREASE_RATING_MENU _ ("_Decrease")
-#define RESOURCES_DECREASE_RATING_LABEL _ ("Decrease Rating")
-#define RESOURCES_RATE_UNRATED_MENU _ ("_Unrated")
-#define RESOURCES_RATE_UNRATED_COMBO_BOX _ ("Unrated")
-#define RESOURCES_RATE_UNRATED_LABEL _ ("Rate Unrated")
-#define RESOURCES_RATE_UNRATED_PROGRESS _ ("Setting as unrated")
-#define RESOURCES_RATE_UNRATED_TOOLTIP _ ("Remove any ratings")
-#define RESOURCES_RATE_REJECTED_MENU _ ("_Rejected")
-#define RESOURCES_RATE_REJECTED_COMBO_BOX _ ("Rejected")
-#define RESOURCES_RATE_REJECTED_LABEL _ ("Rate Rejected")
-#define RESOURCES_RATE_REJECTED_PROGRESS _ ("Setting as rejected")
-#define RESOURCES_RATE_REJECTED_TOOLTIP _ ("Set rating to rejected")
-#define RESOURCES_DISPLAY_REJECTED_ONLY_MENU _ ("Rejected _Only")
-#define RESOURCES_DISPLAY_REJECTED_ONLY_LABEL _ ("Rejected Only")
-#define RESOURCES_DISPLAY_REJECTED_ONLY_TOOLTIP _ ("Show only rejected photos")
-#define RESOURCES_DISPLAY_REJECTED_OR_HIGHER_MENU _ ("All + _Rejected")
-#define RESOURCES_DISPLAY_REJECTED_OR_HIGHER_TOOLTIP NC_ ("Tooltip", "Show all photos, including rejected")
-#define RESOURCES_DISPLAY_UNRATED_OR_HIGHER_MENU _ ("_All Photos")
-#define RESOURCES_DISPLAY_UNRATED_OR_HIGHER_TOOLTIP _ ("Show all photos")
-#define RESOURCES_VIEW_RATINGS_MENU _ ("_Ratings")
-#define RESOURCES_VIEW_RATINGS_TOOLTIP _ ("Display each photo’s rating")
-#define RESOURCES_FILTER_PHOTOS_MENU _ ("_Filter Photos")
-#define RESOURCES_FILTER_PHOTOS_LABEL _ ("Filter Photos")
-#define RESOURCES_FILTER_PHOTOS_TOOLTIP _ ("Limit the number of photos displayed based on a filter")
-#define RESOURCES_DUPLICATE_PHOTO_MENU _ ("_Duplicate")
-#define RESOURCES_DUPLICATE_PHOTO_LABEL _ ("Duplicate")
-#define RESOURCES_DUPLICATE_PHOTO_TOOLTIP _ ("Make a duplicate of the photo")
-#define RESOURCES_EXPORT_MENU _ ("_Export…")
-#define RESOURCES_PRINT_MENU _ ("_Print…")
-#define RESOURCES_PUBLISH_MENU _ ("Pu_blish…")
-#define RESOURCES_PUBLISH_LABEL _ ("Publish")
-#define RESOURCES_PUBLISH_TOOLTIP _ ("Publish to various websites")
-#define RESOURCES_EDIT_TITLE_MENU _ ("Edit _Title…")
-#define RESOURCES_EDIT_TITLE_LABEL NC_ ("Button Label", "Edit Title")
-#define RESOURCES_EDIT_COMMENT_MENU _ ("Edit _Comment…")
-#define RESOURCES_EDIT_COMMENT_LABEL _ ("Edit Comment")
-#define RESOURCES_EDIT_EVENT_COMMENT_MENU _ ("Edit Event _Comment…")
-#define RESOURCES_EDIT_EVENT_COMMENT_LABEL _ ("Edit Event Comment")
-#define RESOURCES_ADJUST_DATE_TIME_MENU _ ("_Adjust Date and Time…")
-#define RESOURCES_ADJUST_DATE_TIME_LABEL _ ("Adjust Date and Time")
-#define RESOURCES_ADD_TAGS_MENU _ ("Add _Tags…")
-#define RESOURCES_ADD_TAGS_CONTEXT_MENU _ ("_Add Tags…")
-#define RESOURCES_ADD_TAGS_TITLE NC_ ("Dialog Title", "Add Tags")
-#define RESOURCES_PREFERENCES_MENU _ ("_Preferences")
-#define RESOURCES_EXTERNAL_EDIT_MENU _ ("Open With E_xternal Editor")
-#define RESOURCES_EXTERNAL_EDIT_RAW_MENU _ ("Open With RA_W Editor")
-#define RESOURCES_SEND_TO_MENU _ ("Send _To…")
-#define RESOURCES_SEND_TO_CONTEXT_MENU _ ("Send T_o…")
-#define RESOURCES_FIND_MENU _ ("_Find…")
-#define RESOURCES_FIND_LABEL _ ("Find")
-#define RESOURCES_FIND_TOOLTIP _ ("Find an image by typing text that appears in its name or tags")
-#define RESOURCES_FLAG_MENU _ ("_Flag")
-#define RESOURCES_UNFLAG_MENU _ ("Un_flag")
-gchar* resources_launch_editor_failed (GError* err);
-gchar* resources_add_tags_label (gchar** names,
- int names_length1);
-gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path);
-gchar* resources_delete_tag_menu (const gchar* name);
-gchar* resources_delete_tag_label (const gchar* name);
-#define RESOURCES_DELETE_TAG_TITLE _ ("Delete Tag")
-#define RESOURCES_DELETE_TAG_SIDEBAR_MENU _ ("_Delete")
-#define RESOURCES_NEW_CHILD_TAG_SIDEBAR_MENU _ ("_New")
-gchar* resources_rename_tag_menu (const gchar* name);
-gchar* resources_rename_tag_label (const gchar* old_name,
- const gchar* new_name);
-#define RESOURCES_RENAME_TAG_SIDEBAR_MENU _ ("_Rename…")
-#define RESOURCES_MODIFY_TAGS_MENU _ ("Modif_y Tags…")
-#define RESOURCES_MODIFY_TAGS_LABEL _ ("Modify Tags")
-gchar* resources_tag_photos_label (const gchar* name,
- gint count);
-gchar* resources_tag_photos_tooltip (const gchar* name,
- gint count);
-gchar* resources_untag_photos_menu (const gchar* name,
- gint count);
-gchar* resources_untag_photos_label (const gchar* name,
- gint count);
-gchar* resources_rename_tag_exists_message (const gchar* name);
-gchar* resources_rename_search_exists_message (const gchar* name);
-#define RESOURCES_DEFAULT_SAVED_SEARCH_NAME _ ("Saved Search")
-#define RESOURCES_DELETE_SAVED_SEARCH_DIALOG_TITLE _ ("Delete Search")
-#define RESOURCES_DELETE_SEARCH_MENU _ ("_Delete")
-#define RESOURCES_EDIT_SEARCH_MENU _ ("_Edit…")
-#define RESOURCES_RENAME_SEARCH_MENU _ ("Re_name…")
-gchar* resources_rename_search_label (const gchar* old_name,
- const gchar* new_name);
-gchar* resources_delete_search_label (const gchar* name);
-GType rating_get_type (void) G_GNUC_CONST;
-const gchar* resources_rating_label (Rating rating);
-const gchar* resources_rating_combo_box (Rating rating);
-GType rating_filter_get_type (void) G_GNUC_CONST;
-gchar* resources_get_rating_filter_tooltip (RatingFilter filter);
-gchar* resources_rating_progress (Rating rating);
-gchar* resources_get_stars (Rating rating);
-GdkPixbuf* resources_get_rating_trinket (Rating rating,
- gint scale);
-GdkPixbuf* resources_get_icon (const gchar* name,
- gint scale);
-void resources_generate_rating_strings (void);
-#define RESOURCES_DELETE_PHOTOS_MENU _ ("_Delete")
-#define RESOURCES_DELETE_FROM_TRASH_TOOLTIP _ ("Remove the selected photos from the trash")
-#define RESOURCES_DELETE_FROM_LIBRARY_TOOLTIP _ ("Remove the selected photos from the library")
-#define RESOURCES_RESTORE_PHOTOS_MENU _ ("_Restore")
-#define RESOURCES_RESTORE_PHOTOS_TOOLTIP _ ("Move the selected photos back into the library")
-#define RESOURCES_JUMP_TO_FILE_MENU _ ("Show in File Mana_ger")
-#define RESOURCES_JUMP_TO_FILE_TOOLTIP _ ("Open the selected photo’s directory in the file manager")
-gchar* resources_jump_to_file_failed (GError* err);
-#define RESOURCES_REMOVE_FROM_LIBRARY_MENU _ ("R_emove From Library")
-#define RESOURCES_MOVE_TO_TRASH_MENU _ ("_Move to Trash")
-#define RESOURCES_SELECT_ALL_MENU _ ("Select _All")
-#define RESOURCES_SELECT_ALL_TOOLTIP _ ("Select all items")
-void resources_init (void);
-GtkIconTheme* resources_get_icon_theme_engine (void);
-void resources_terminate (void);
-void resources_fetch_lc_time_format (void);
-GType resources_unit_system_get_type (void) G_GNUC_CONST;
-ResourcesUnitSystem resources_get_default_measurement_unit (void);
-static gboolean _vala_string_array_contains (const gchar* * stack,
- int stack_length,
- const gchar* needle);
-gchar* resources_get_hh_mm_format_string (void);
-gchar* resources_get_hh_mm_ss_format_string (void);
-gchar* resources_get_long_date_format_string (void);
-gchar* resources_get_start_multiday_span_format_string (void);
-gchar* resources_get_end_multiday_span_format_string (void);
-gchar* resources_get_start_multimonth_span_format_string (void);
-gchar* resources_get_end_multimonth_span_format_string (void);
-gchar* resources_get_ui (const gchar* filename);
-#define RESOURCES_NONINTERPRETABLE_BADGE_FILE "noninterpretable-video.png"
-GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void);
-GdkPixbuf* resources_load_icon (const gchar* name,
- gint scale);
-GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf,
- gint scale,
- GdkInterpType interp,
- gboolean scale_up);
-gchar* resources_get_help_path (void);
-GFile* app_dirs_get_exec_dir (void);
-void resources_launch_help (GdkScreen* screen,
- const gchar* anchor,
- GError** error);
-void sys_show_uri (GdkScreen* screen,
- const gchar* uri,
- GError** error);
-gchar* resources_to_css_color (GdkRGBA* color);
-#define RESOURCES_ALL_DATA -1
-void resources_style_widget (GtkWidget* widget,
- const gchar* stylesheet);
-gint resources_use_header_bar (void);
-#define RESOURCES_CUSTOM_CSS "LibraryWindow .pane-separator {\n" \
-" background-color: @borders;\n" \
-" }\n" \
-" SearchFilterToolbar {\n" \
-" border-width: 0 0 1px 0;\n" \
-" border-style: solid;\n" \
-" border-color: @borders;\n" \
-" }"
-#define RESOURCES_ONIMAGE_FONT_COLOR "#000000"
-#define RESOURCES_ONIMAGE_FONT_BACKGROUND "rgba(255,255,255,0.5)"
-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 gint _vala_array_length (gpointer array);
-
-const gchar* RESOURCES_AUTHORS[6] = {"Jim Nelson <jim@yorba.org>", "Lucas Beeler <lucas@yorba.org>", "Allison Barlow <allison@yorba.org>", "Eric Gregory <eric@yorba.org>", "Clinton Rogers <clinton@yorba.org>", NULL};
-const gint RESOURCES_rating_thresholds[6] = {0, 1, 25, 50, 75, 99};
-const gchar* RESOURCES_IMPERIAL_COUNTRIES[4] = {"unm_US", "es_US", "en_US", "yi_US"};
-
-gchar*
-resources_launch_editor_failed (GError* err)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 336 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = err->message;
-#line 336 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = g_strdup_printf (_ ("Unable to launch editor: %s"), _tmp0_);
-#line 336 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp1_;
-#line 336 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 519 "Resources.c"
-}
-
-
-gchar*
-resources_add_tags_label (gchar** names,
- int names_length1)
-{
- gchar* result = NULL;
-#line 340 "/home/jens/Source/shotwell/src/Resources.vala"
- if (names_length1 == 1) {
-#line 530 "Resources.c"
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 341 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = names[0];
-#line 341 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = hierarchical_tag_utilities_get_basename (_tmp0_);
-#line 341 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = _tmp1_;
-#line 341 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = g_strdup_printf (_ ("Add Tag “%s”"), _tmp2_);
-#line 341 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = _tmp3_;
-#line 341 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp2_);
-#line 341 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp4_;
-#line 341 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 552 "Resources.c"
- } else {
-#line 342 "/home/jens/Source/shotwell/src/Resources.vala"
- if (names_length1 == 2) {
-#line 556 "Resources.c"
- const gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = names[0];
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = hierarchical_tag_utilities_get_basename (_tmp5_);
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = _tmp6_;
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = names[1];
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = hierarchical_tag_utilities_get_basename (_tmp8_);
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = _tmp9_;
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = g_strdup_printf (_ ("Add Tags “%s” and “%s”"), _tmp7_, _tmp10_);
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = _tmp11_;
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp10_);
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp7_);
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp12_;
-#line 344 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 589 "Resources.c"
- } else {
- gchar* _tmp13_;
-#line 349 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp13_ = g_strdup (C_ ("UndoRedo menu entry", "Add Tags"));
-#line 349 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp13_;
-#line 349 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 598 "Resources.c"
- }
- }
-}
-
-
-gchar*
-resources_delete_tag_menu (const gchar* name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 353 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 354 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (_ ("_Delete Tag “%s”"), name);
-#line 354 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 354 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 617 "Resources.c"
-}
-
-
-gchar*
-resources_delete_tag_label (const gchar* name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 357 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 358 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (_ ("Delete Tag “%s”"), name);
-#line 358 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 358 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 634 "Resources.c"
-}
-
-
-gchar*
-resources_rename_tag_menu (const gchar* name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 366 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 367 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (_ ("Re_name Tag “%s”…"), name);
-#line 367 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 367 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 651 "Resources.c"
-}
-
-
-gchar*
-resources_rename_tag_label (const gchar* old_name,
- const gchar* new_name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 370 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (old_name != NULL, NULL);
-#line 370 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (new_name != NULL, NULL);
-#line 371 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (_ ("Rename Tag “%s” to “%s”"), old_name, new_name);
-#line 371 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 371 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 671 "Resources.c"
-}
-
-
-gchar*
-resources_tag_photos_label (const gchar* name,
- gint count)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 379 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 380 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (ngettext ("Tag Photo as “%s”", "Tag Photos as “%s”", (gulong) count), name);
-#line 380 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 380 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 689 "Resources.c"
-}
-
-
-gchar*
-resources_tag_photos_tooltip (const gchar* name,
- gint count)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 385 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 386 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (ngettext ("Tag the selected photo as “%s”", "Tag the selected photos as “%s”", (gulong) count), name);
-#line 386 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 386 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 707 "Resources.c"
-}
-
-
-gchar*
-resources_untag_photos_menu (const gchar* name,
- gint count)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 391 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 392 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (ngettext ("Remove Tag “%s” From _Photo", "Remove Tag “%s” From _Photos", (gulong) count), name);
-#line 392 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 392 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 725 "Resources.c"
-}
-
-
-gchar*
-resources_untag_photos_label (const gchar* name,
- gint count)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 397 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 398 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (ngettext ("Remove Tag “%s” From Photo", "Remove Tag “%s” From Photos", (gulong) count), name);
-#line 398 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 398 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 743 "Resources.c"
-}
-
-
-gchar*
-resources_rename_tag_exists_message (const gchar* name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 403 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 404 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (_ ("Unable to rename tag to “%s” because the tag already exists."), name);
-#line 404 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 404 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 760 "Resources.c"
-}
-
-
-gchar*
-resources_rename_search_exists_message (const gchar* name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 407 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 408 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (_ ("Unable to rename search to “%s” because the search already exists."), name);
-#line 408 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 408 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 777 "Resources.c"
-}
-
-
-gchar*
-resources_rename_search_label (const gchar* old_name,
- const gchar* new_name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 419 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (old_name != NULL, NULL);
-#line 419 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (new_name != NULL, NULL);
-#line 420 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (_ ("Rename Search “%s” to “%s”"), old_name, new_name);
-#line 420 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 420 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 797 "Resources.c"
-}
-
-
-gchar*
-resources_delete_search_label (const gchar* name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 423 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 424 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf (_ ("Delete Search “%s”"), name);
-#line 424 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 424 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 814 "Resources.c"
-}
-
-
-const gchar*
-resources_rating_label (Rating rating)
-{
- const gchar* result = NULL;
-#line 428 "/home/jens/Source/shotwell/src/Resources.vala"
- switch (rating) {
-#line 428 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_REJECTED:
-#line 826 "Resources.c"
- {
-#line 430 "/home/jens/Source/shotwell/src/Resources.vala"
- result = RESOURCES_RATE_REJECTED_LABEL;
-#line 430 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 832 "Resources.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_UNRATED:
-#line 836 "Resources.c"
- {
-#line 432 "/home/jens/Source/shotwell/src/Resources.vala"
- result = RESOURCES_RATE_UNRATED_LABEL;
-#line 432 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 842 "Resources.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_ONE:
-#line 846 "Resources.c"
- {
- const gchar* _tmp0_;
-#line 434 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_RATE_ONE_LABEL;
-#line 434 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 434 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 855 "Resources.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_TWO:
-#line 859 "Resources.c"
- {
- const gchar* _tmp1_;
-#line 436 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_RATE_TWO_LABEL;
-#line 436 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp1_;
-#line 436 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 868 "Resources.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_THREE:
-#line 872 "Resources.c"
- {
- const gchar* _tmp2_;
-#line 438 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = resources_RATE_THREE_LABEL;
-#line 438 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 438 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 881 "Resources.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FOUR:
-#line 885 "Resources.c"
- {
- const gchar* _tmp3_;
-#line 440 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = resources_RATE_FOUR_LABEL;
-#line 440 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp3_;
-#line 440 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 894 "Resources.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FIVE:
-#line 898 "Resources.c"
- {
- const gchar* _tmp4_;
-#line 442 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = resources_RATE_FIVE_LABEL;
-#line 442 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp4_;
-#line 442 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 907 "Resources.c"
- }
- default:
- {
-#line 444 "/home/jens/Source/shotwell/src/Resources.vala"
- result = RESOURCES_RATE_UNRATED_LABEL;
-#line 444 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 915 "Resources.c"
- }
- }
-}
-
-
-const gchar*
-resources_rating_combo_box (Rating rating)
-{
- const gchar* result = NULL;
-#line 449 "/home/jens/Source/shotwell/src/Resources.vala"
- switch (rating) {
-#line 449 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_REJECTED:
-#line 929 "Resources.c"
- {
-#line 451 "/home/jens/Source/shotwell/src/Resources.vala"
- result = RESOURCES_RATE_REJECTED_COMBO_BOX;
-#line 451 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 935 "Resources.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_UNRATED:
-#line 939 "Resources.c"
- {
-#line 453 "/home/jens/Source/shotwell/src/Resources.vala"
- result = RESOURCES_RATE_UNRATED_COMBO_BOX;
-#line 453 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 945 "Resources.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_ONE:
-#line 949 "Resources.c"
- {
- const gchar* _tmp0_;
-#line 455 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_RATE_ONE_MENU;
-#line 455 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 455 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 958 "Resources.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_TWO:
-#line 962 "Resources.c"
- {
- const gchar* _tmp1_;
-#line 457 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_RATE_TWO_MENU;
-#line 457 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp1_;
-#line 457 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 971 "Resources.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_THREE:
-#line 975 "Resources.c"
- {
- const gchar* _tmp2_;
-#line 459 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = resources_RATE_THREE_MENU;
-#line 459 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 459 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 984 "Resources.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FOUR:
-#line 988 "Resources.c"
- {
- const gchar* _tmp3_;
-#line 461 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = resources_RATE_FOUR_MENU;
-#line 461 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp3_;
-#line 461 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 997 "Resources.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FIVE:
-#line 1001 "Resources.c"
- {
- const gchar* _tmp4_;
-#line 463 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = resources_RATE_FIVE_MENU;
-#line 463 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp4_;
-#line 463 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1010 "Resources.c"
- }
- default:
- {
-#line 465 "/home/jens/Source/shotwell/src/Resources.vala"
- result = RESOURCES_RATE_UNRATED_MENU;
-#line 465 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1018 "Resources.c"
- }
- }
-}
-
-
-gchar*
-resources_get_rating_filter_tooltip (RatingFilter filter)
-{
- gchar* result = NULL;
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- switch (filter) {
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_REJECTED_OR_HIGHER:
-#line 1032 "Resources.c"
- {
- gchar* _tmp0_;
-#line 472 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup (RESOURCES_DISPLAY_REJECTED_OR_HIGHER_TOOLTIP);
-#line 472 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 472 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1041 "Resources.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_ONE_OR_HIGHER:
-#line 1045 "Resources.c"
- {
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 475 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP;
-#line 475 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 475 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 475 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1057 "Resources.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_TWO_OR_HIGHER:
-#line 1061 "Resources.c"
- {
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 478 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP;
-#line 478 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = g_strdup (_tmp3_);
-#line 478 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp4_;
-#line 478 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1073 "Resources.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_THREE_OR_HIGHER:
-#line 1077 "Resources.c"
- {
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 481 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP;
-#line 481 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 481 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp6_;
-#line 481 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1089 "Resources.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_FOUR_OR_HIGHER:
-#line 1093 "Resources.c"
- {
- const gchar* _tmp7_;
- gchar* _tmp8_;
-#line 484 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP;
-#line 484 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = g_strdup (_tmp7_);
-#line 484 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp8_;
-#line 484 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1105 "Resources.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_FIVE_ONLY:
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_FIVE_OR_HIGHER:
-#line 1111 "Resources.c"
- {
- const gchar* _tmp9_;
- gchar* _tmp10_;
-#line 488 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP;
-#line 488 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = g_strdup (_tmp9_);
-#line 488 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp10_;
-#line 488 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1123 "Resources.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_REJECTED_ONLY:
-#line 1127 "Resources.c"
- {
- gchar* _tmp11_;
-#line 491 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = g_strdup (RESOURCES_DISPLAY_REJECTED_ONLY_TOOLTIP);
-#line 491 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp11_;
-#line 491 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1136 "Resources.c"
- }
- default:
-#line 470 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FILTER_UNRATED_OR_HIGHER:
-#line 1141 "Resources.c"
- {
- gchar* _tmp12_;
-#line 495 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = g_strdup (RESOURCES_DISPLAY_UNRATED_OR_HIGHER_TOOLTIP);
-#line 495 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp12_;
-#line 495 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1150 "Resources.c"
- }
- }
-}
-
-
-gchar*
-resources_rating_progress (Rating rating)
-{
- gchar* result = NULL;
-#line 500 "/home/jens/Source/shotwell/src/Resources.vala"
- switch (rating) {
-#line 500 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_REJECTED:
-#line 1164 "Resources.c"
- {
- gchar* _tmp0_;
-#line 502 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup (RESOURCES_RATE_REJECTED_PROGRESS);
-#line 502 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 502 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1173 "Resources.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_UNRATED:
-#line 1177 "Resources.c"
- {
- gchar* _tmp1_;
-#line 504 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = g_strdup (RESOURCES_RATE_UNRATED_PROGRESS);
-#line 504 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp1_;
-#line 504 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1186 "Resources.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_ONE:
-#line 1190 "Resources.c"
- {
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 506 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = resources_RATE_ONE_PROGRESS;
-#line 506 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 506 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp3_;
-#line 506 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1202 "Resources.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_TWO:
-#line 1206 "Resources.c"
- {
- const gchar* _tmp4_;
- gchar* _tmp5_;
-#line 508 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = resources_RATE_TWO_PROGRESS;
-#line 508 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 508 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp5_;
-#line 508 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1218 "Resources.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_THREE:
-#line 1222 "Resources.c"
- {
- const gchar* _tmp6_;
- gchar* _tmp7_;
-#line 510 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = resources_RATE_THREE_PROGRESS;
-#line 510 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = g_strdup (_tmp6_);
-#line 510 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp7_;
-#line 510 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1234 "Resources.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FOUR:
-#line 1238 "Resources.c"
- {
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 512 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = resources_RATE_FOUR_PROGRESS;
-#line 512 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 512 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp9_;
-#line 512 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1250 "Resources.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FIVE:
-#line 1254 "Resources.c"
- {
- const gchar* _tmp10_;
- gchar* _tmp11_;
-#line 514 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = resources_RATE_FIVE_PROGRESS;
-#line 514 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 514 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp11_;
-#line 514 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1266 "Resources.c"
- }
- default:
- {
- gchar* _tmp12_;
-#line 516 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = g_strdup (RESOURCES_RATE_UNRATED_PROGRESS);
-#line 516 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp12_;
-#line 516 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1277 "Resources.c"
- }
- }
-}
-
-
-gchar*
-resources_get_stars (Rating rating)
-{
- gchar* result = NULL;
-#line 523 "/home/jens/Source/shotwell/src/Resources.vala"
- switch (rating) {
-#line 523 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_ONE:
-#line 1291 "Resources.c"
- {
- gchar* _tmp0_;
-#line 525 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup ("\xE2\x98\x85");
-#line 525 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 525 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1300 "Resources.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_TWO:
-#line 1304 "Resources.c"
- {
- gchar* _tmp1_;
-#line 527 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = g_strdup ("\xE2\x98\x85\xE2\x98\x85");
-#line 527 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp1_;
-#line 527 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1313 "Resources.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_THREE:
-#line 1317 "Resources.c"
- {
- gchar* _tmp2_;
-#line 529 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup ("\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85");
-#line 529 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 529 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1326 "Resources.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FOUR:
-#line 1330 "Resources.c"
- {
- gchar* _tmp3_;
-#line 531 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = g_strdup ("\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85");
-#line 531 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp3_;
-#line 531 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1339 "Resources.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FIVE:
-#line 1343 "Resources.c"
- {
- gchar* _tmp4_;
-#line 533 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = g_strdup ("\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85");
-#line 533 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp4_;
-#line 533 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1352 "Resources.c"
- }
- default:
- {
- gchar* _tmp5_;
-#line 535 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = g_strdup ("");
-#line 535 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp5_;
-#line 535 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1363 "Resources.c"
- }
- }
-}
-
-
-GdkPixbuf*
-resources_get_rating_trinket (Rating rating,
- gint scale)
-{
- GdkPixbuf* result = NULL;
-#line 540 "/home/jens/Source/shotwell/src/Resources.vala"
- switch (rating) {
-#line 540 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_REJECTED:
-#line 1378 "Resources.c"
- {
- GdkPixbuf* _tmp0_;
-#line 542 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_get_icon (RESOURCES_ICON_RATING_REJECTED, scale);
-#line 542 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 542 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1387 "Resources.c"
- }
-#line 540 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_ONE:
-#line 1391 "Resources.c"
- {
- GdkPixbuf* _tmp1_;
-#line 545 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_get_icon (RESOURCES_ICON_RATING_ONE, scale);
-#line 545 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp1_;
-#line 545 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1400 "Resources.c"
- }
-#line 540 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_TWO:
-#line 1404 "Resources.c"
- {
- GdkPixbuf* _tmp2_;
-#line 547 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = resources_get_icon (RESOURCES_ICON_RATING_TWO, scale * 2);
-#line 547 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 547 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1413 "Resources.c"
- }
-#line 540 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_THREE:
-#line 1417 "Resources.c"
- {
- GdkPixbuf* _tmp3_;
-#line 549 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = resources_get_icon (RESOURCES_ICON_RATING_THREE, scale * 3);
-#line 549 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp3_;
-#line 549 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1426 "Resources.c"
- }
-#line 540 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FOUR:
-#line 1430 "Resources.c"
- {
- GdkPixbuf* _tmp4_;
-#line 551 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = resources_get_icon (RESOURCES_ICON_RATING_FOUR, scale * 4);
-#line 551 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp4_;
-#line 551 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1439 "Resources.c"
- }
-#line 540 "/home/jens/Source/shotwell/src/Resources.vala"
- case RATING_FIVE:
-#line 1443 "Resources.c"
- {
- GdkPixbuf* _tmp5_;
-#line 553 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = resources_get_icon (RESOURCES_ICON_RATING_FIVE, scale * 5);
-#line 553 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp5_;
-#line 553 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1452 "Resources.c"
- }
- default:
- {
-#line 555 "/home/jens/Source/shotwell/src/Resources.vala"
- result = NULL;
-#line 555 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 1460 "Resources.c"
- }
- }
-}
-
-
-void
-resources_generate_rating_strings (void)
-{
- gchar* menu_base = NULL;
- gchar* _tmp0_;
- gchar* label_base = NULL;
- gchar* _tmp1_;
- gchar* tooltip_base = NULL;
- gchar* _tmp2_;
- gchar* progress_base = NULL;
- gchar* _tmp3_;
- gchar* display_rating_menu_base = NULL;
- gchar* _tmp4_;
- gchar* display_rating_label_base = NULL;
- gchar* _tmp5_;
- gchar* display_rating_tooltip_base = NULL;
- gchar* _tmp6_;
- gchar* display_rating_or_higher_menu_base = NULL;
- gchar* _tmp7_;
- gchar* display_rating_or_higher_label_base = NULL;
- gchar* _tmp8_;
- gchar* display_rating_or_higher_tooltip_base = NULL;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- gchar* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_;
- gchar* _tmp56_;
- gchar* _tmp57_;
- gchar* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- gchar* _tmp65_;
- gchar* _tmp66_;
- gchar* _tmp67_;
- gchar* _tmp68_;
- gchar* _tmp69_;
- gchar* _tmp70_;
- gchar* _tmp71_;
- gchar* _tmp72_;
- gchar* _tmp73_;
- gchar* _tmp74_;
- gchar* _tmp75_;
- gchar* _tmp76_;
- gchar* _tmp77_;
- gchar* _tmp78_;
- gchar* _tmp79_;
- gchar* _tmp80_;
- gchar* _tmp81_;
- gchar* _tmp82_;
- gchar* _tmp83_;
- gchar* _tmp84_;
- gchar* _tmp85_;
- gchar* _tmp86_;
- gchar* _tmp87_;
- gchar* _tmp88_;
- gchar* _tmp89_;
- gchar* _tmp90_;
- gchar* _tmp91_;
- gchar* _tmp92_;
- gchar* _tmp93_;
- gchar* _tmp94_;
- gchar* _tmp95_;
- gchar* _tmp96_;
- gchar* _tmp97_;
- gchar* _tmp98_;
- gchar* _tmp99_;
- gchar* _tmp100_;
- gchar* _tmp101_;
- gchar* _tmp102_;
- gchar* _tmp103_;
- gchar* _tmp104_;
- gchar* _tmp105_;
- gchar* _tmp106_;
- gchar* _tmp107_;
- gchar* _tmp108_;
- gchar* _tmp109_;
- gchar* _tmp110_;
- gchar* _tmp111_;
- gchar* _tmp112_;
- gchar* _tmp113_;
- gchar* _tmp114_;
-#line 560 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup ("%s");
-#line 560 "/home/jens/Source/shotwell/src/Resources.vala"
- menu_base = _tmp0_;
-#line 561 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = g_strdup (_ ("Rate %s"));
-#line 561 "/home/jens/Source/shotwell/src/Resources.vala"
- label_base = _tmp1_;
-#line 562 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_ ("Set rating to %s"));
-#line 562 "/home/jens/Source/shotwell/src/Resources.vala"
- tooltip_base = _tmp2_;
-#line 563 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = g_strdup (_ ("Setting rating to %s"));
-#line 563 "/home/jens/Source/shotwell/src/Resources.vala"
- progress_base = _tmp3_;
-#line 564 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = g_strdup ("%s");
-#line 564 "/home/jens/Source/shotwell/src/Resources.vala"
- display_rating_menu_base = _tmp4_;
-#line 565 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = g_strdup (_ ("Display %s"));
-#line 565 "/home/jens/Source/shotwell/src/Resources.vala"
- display_rating_label_base = _tmp5_;
-#line 566 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = g_strdup (_ ("Only show photos with a rating of %s"));
-#line 566 "/home/jens/Source/shotwell/src/Resources.vala"
- display_rating_tooltip_base = _tmp6_;
-#line 567 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = g_strdup (_ ("%s or Better"));
-#line 567 "/home/jens/Source/shotwell/src/Resources.vala"
- display_rating_or_higher_menu_base = _tmp7_;
-#line 568 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = g_strdup (_ ("Display %s or Better"));
-#line 568 "/home/jens/Source/shotwell/src/Resources.vala"
- display_rating_or_higher_label_base = _tmp8_;
-#line 569 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = g_strdup (_ ("Only show photos with a rating of %s or better"));
-#line 569 "/home/jens/Source/shotwell/src/Resources.vala"
- display_rating_or_higher_tooltip_base = _tmp9_;
-#line 571 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = resources_get_stars (RATING_ONE);
-#line 571 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = _tmp10_;
-#line 571 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = g_strdup_printf (menu_base, _tmp11_);
-#line 571 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_ONE_MENU);
-#line 571 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_ONE_MENU = _tmp12_;
-#line 571 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp11_);
-#line 572 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp13_ = resources_get_stars (RATING_TWO);
-#line 572 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp14_ = _tmp13_;
-#line 572 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp15_ = g_strdup_printf (menu_base, _tmp14_);
-#line 572 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_TWO_MENU);
-#line 572 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_TWO_MENU = _tmp15_;
-#line 572 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp14_);
-#line 573 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp16_ = resources_get_stars (RATING_THREE);
-#line 573 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp17_ = _tmp16_;
-#line 573 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp18_ = g_strdup_printf (menu_base, _tmp17_);
-#line 573 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_THREE_MENU);
-#line 573 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_THREE_MENU = _tmp18_;
-#line 573 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp17_);
-#line 574 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp19_ = resources_get_stars (RATING_FOUR);
-#line 574 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp20_ = _tmp19_;
-#line 574 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp21_ = g_strdup_printf (menu_base, _tmp20_);
-#line 574 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_FOUR_MENU);
-#line 574 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_FOUR_MENU = _tmp21_;
-#line 574 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp20_);
-#line 575 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp22_ = resources_get_stars (RATING_FIVE);
-#line 575 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp23_ = _tmp22_;
-#line 575 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp24_ = g_strdup_printf (menu_base, _tmp23_);
-#line 575 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_FIVE_MENU);
-#line 575 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_FIVE_MENU = _tmp24_;
-#line 575 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp23_);
-#line 577 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp25_ = resources_get_stars (RATING_ONE);
-#line 577 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp26_ = _tmp25_;
-#line 577 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp27_ = g_strdup_printf (label_base, _tmp26_);
-#line 577 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_ONE_LABEL);
-#line 577 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_ONE_LABEL = _tmp27_;
-#line 577 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp26_);
-#line 578 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp28_ = resources_get_stars (RATING_TWO);
-#line 578 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp29_ = _tmp28_;
-#line 578 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp30_ = g_strdup_printf (label_base, _tmp29_);
-#line 578 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_TWO_LABEL);
-#line 578 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_TWO_LABEL = _tmp30_;
-#line 578 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp29_);
-#line 579 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp31_ = resources_get_stars (RATING_THREE);
-#line 579 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp32_ = _tmp31_;
-#line 579 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp33_ = g_strdup_printf (label_base, _tmp32_);
-#line 579 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_THREE_LABEL);
-#line 579 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_THREE_LABEL = _tmp33_;
-#line 579 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp32_);
-#line 580 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp34_ = resources_get_stars (RATING_FOUR);
-#line 580 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp35_ = _tmp34_;
-#line 580 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp36_ = g_strdup_printf (label_base, _tmp35_);
-#line 580 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_FOUR_LABEL);
-#line 580 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_FOUR_LABEL = _tmp36_;
-#line 580 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp35_);
-#line 581 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp37_ = resources_get_stars (RATING_FIVE);
-#line 581 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp38_ = _tmp37_;
-#line 581 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp39_ = g_strdup_printf (label_base, _tmp38_);
-#line 581 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_FIVE_LABEL);
-#line 581 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_FIVE_LABEL = _tmp39_;
-#line 581 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp38_);
-#line 583 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp40_ = resources_get_stars (RATING_ONE);
-#line 583 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp41_ = _tmp40_;
-#line 583 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp42_ = g_strdup_printf (tooltip_base, _tmp41_);
-#line 583 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_ONE_TOOLTIP);
-#line 583 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_ONE_TOOLTIP = _tmp42_;
-#line 583 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp41_);
-#line 584 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp43_ = resources_get_stars (RATING_TWO);
-#line 584 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp44_ = _tmp43_;
-#line 584 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp45_ = g_strdup_printf (tooltip_base, _tmp44_);
-#line 584 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_TWO_TOOLTIP);
-#line 584 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_TWO_TOOLTIP = _tmp45_;
-#line 584 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp44_);
-#line 585 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp46_ = resources_get_stars (RATING_THREE);
-#line 585 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp47_ = _tmp46_;
-#line 585 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp48_ = g_strdup_printf (tooltip_base, _tmp47_);
-#line 585 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_THREE_TOOLTIP);
-#line 585 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_THREE_TOOLTIP = _tmp48_;
-#line 585 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp47_);
-#line 586 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp49_ = resources_get_stars (RATING_FOUR);
-#line 586 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp50_ = _tmp49_;
-#line 586 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp51_ = g_strdup_printf (tooltip_base, _tmp50_);
-#line 586 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_FOUR_TOOLTIP);
-#line 586 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_FOUR_TOOLTIP = _tmp51_;
-#line 586 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp50_);
-#line 587 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp52_ = resources_get_stars (RATING_FIVE);
-#line 587 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp53_ = _tmp52_;
-#line 587 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp54_ = g_strdup_printf (tooltip_base, _tmp53_);
-#line 587 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_FIVE_TOOLTIP);
-#line 587 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_FIVE_TOOLTIP = _tmp54_;
-#line 587 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp53_);
-#line 589 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp55_ = resources_get_stars (RATING_ONE);
-#line 589 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp56_ = _tmp55_;
-#line 589 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp57_ = g_strdup_printf (progress_base, _tmp56_);
-#line 589 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_ONE_PROGRESS);
-#line 589 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_ONE_PROGRESS = _tmp57_;
-#line 589 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp56_);
-#line 590 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp58_ = resources_get_stars (RATING_TWO);
-#line 590 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp59_ = _tmp58_;
-#line 590 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp60_ = g_strdup_printf (progress_base, _tmp59_);
-#line 590 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_TWO_PROGRESS);
-#line 590 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_TWO_PROGRESS = _tmp60_;
-#line 590 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp59_);
-#line 591 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp61_ = resources_get_stars (RATING_THREE);
-#line 591 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp62_ = _tmp61_;
-#line 591 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp63_ = g_strdup_printf (progress_base, _tmp62_);
-#line 591 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_THREE_PROGRESS);
-#line 591 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_THREE_PROGRESS = _tmp63_;
-#line 591 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp62_);
-#line 592 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp64_ = resources_get_stars (RATING_FOUR);
-#line 592 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp65_ = _tmp64_;
-#line 592 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp66_ = g_strdup_printf (progress_base, _tmp65_);
-#line 592 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_FOUR_PROGRESS);
-#line 592 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_FOUR_PROGRESS = _tmp66_;
-#line 592 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp65_);
-#line 593 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp67_ = resources_get_stars (RATING_FIVE);
-#line 593 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp68_ = _tmp67_;
-#line 593 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp69_ = g_strdup_printf (progress_base, _tmp68_);
-#line 593 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_RATE_FIVE_PROGRESS);
-#line 593 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_RATE_FIVE_PROGRESS = _tmp69_;
-#line 593 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp68_);
-#line 595 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp70_ = resources_get_stars (RATING_ONE);
-#line 595 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp71_ = _tmp70_;
-#line 595 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp72_ = g_strdup_printf (display_rating_or_higher_menu_base, _tmp71_);
-#line 595 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_ONE_OR_HIGHER_MENU);
-#line 595 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_ONE_OR_HIGHER_MENU = _tmp72_;
-#line 595 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp71_);
-#line 596 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp73_ = resources_get_stars (RATING_TWO);
-#line 596 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp74_ = _tmp73_;
-#line 596 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp75_ = g_strdup_printf (display_rating_or_higher_menu_base, _tmp74_);
-#line 596 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_TWO_OR_HIGHER_MENU);
-#line 596 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_TWO_OR_HIGHER_MENU = _tmp75_;
-#line 596 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp74_);
-#line 597 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp76_ = resources_get_stars (RATING_THREE);
-#line 597 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp77_ = _tmp76_;
-#line 597 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp78_ = g_strdup_printf (display_rating_or_higher_menu_base, _tmp77_);
-#line 597 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_THREE_OR_HIGHER_MENU);
-#line 597 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_THREE_OR_HIGHER_MENU = _tmp78_;
-#line 597 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp77_);
-#line 598 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp79_ = resources_get_stars (RATING_FOUR);
-#line 598 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp80_ = _tmp79_;
-#line 598 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp81_ = g_strdup_printf (display_rating_or_higher_menu_base, _tmp80_);
-#line 598 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_FOUR_OR_HIGHER_MENU);
-#line 598 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_FOUR_OR_HIGHER_MENU = _tmp81_;
-#line 598 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp80_);
-#line 599 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp82_ = resources_get_stars (RATING_FIVE);
-#line 599 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp83_ = _tmp82_;
-#line 599 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp84_ = g_strdup_printf (display_rating_menu_base, _tmp83_);
-#line 599 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_FIVE_OR_HIGHER_MENU);
-#line 599 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_FIVE_OR_HIGHER_MENU = _tmp84_;
-#line 599 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp83_);
-#line 601 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp85_ = resources_get_stars (RATING_ONE);
-#line 601 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp86_ = _tmp85_;
-#line 601 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp87_ = g_strdup_printf (display_rating_or_higher_label_base, _tmp86_);
-#line 601 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_ONE_OR_HIGHER_LABEL);
-#line 601 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_ONE_OR_HIGHER_LABEL = _tmp87_;
-#line 601 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp86_);
-#line 602 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp88_ = resources_get_stars (RATING_TWO);
-#line 602 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp89_ = _tmp88_;
-#line 602 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp90_ = g_strdup_printf (display_rating_or_higher_label_base, _tmp89_);
-#line 602 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_TWO_OR_HIGHER_LABEL);
-#line 602 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_TWO_OR_HIGHER_LABEL = _tmp90_;
-#line 602 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp89_);
-#line 603 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp91_ = resources_get_stars (RATING_THREE);
-#line 603 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp92_ = _tmp91_;
-#line 603 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp93_ = g_strdup_printf (display_rating_or_higher_label_base, _tmp92_);
-#line 603 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_THREE_OR_HIGHER_LABEL);
-#line 603 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_THREE_OR_HIGHER_LABEL = _tmp93_;
-#line 603 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp92_);
-#line 604 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp94_ = resources_get_stars (RATING_FOUR);
-#line 604 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp95_ = _tmp94_;
-#line 604 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp96_ = g_strdup_printf (display_rating_or_higher_label_base, _tmp95_);
-#line 604 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_FOUR_OR_HIGHER_LABEL);
-#line 604 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_FOUR_OR_HIGHER_LABEL = _tmp96_;
-#line 604 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp95_);
-#line 605 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp97_ = resources_get_stars (RATING_FIVE);
-#line 605 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp98_ = _tmp97_;
-#line 605 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp99_ = g_strdup_printf (display_rating_label_base, _tmp98_);
-#line 605 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_FIVE_OR_HIGHER_LABEL);
-#line 605 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_FIVE_OR_HIGHER_LABEL = _tmp99_;
-#line 605 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp98_);
-#line 607 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp100_ = resources_get_stars (RATING_ONE);
-#line 607 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp101_ = _tmp100_;
-#line 607 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp102_ = g_strdup_printf (display_rating_or_higher_tooltip_base, _tmp101_);
-#line 607 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP);
-#line 607 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP = _tmp102_;
-#line 607 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp101_);
-#line 608 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp103_ = resources_get_stars (RATING_TWO);
-#line 608 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp104_ = _tmp103_;
-#line 608 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp105_ = g_strdup_printf (display_rating_or_higher_tooltip_base, _tmp104_);
-#line 608 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP);
-#line 608 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP = _tmp105_;
-#line 608 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp104_);
-#line 609 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp106_ = resources_get_stars (RATING_THREE);
-#line 609 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp107_ = _tmp106_;
-#line 609 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp108_ = g_strdup_printf (display_rating_or_higher_tooltip_base, _tmp107_);
-#line 609 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP);
-#line 609 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP = _tmp108_;
-#line 609 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp107_);
-#line 610 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp109_ = resources_get_stars (RATING_FOUR);
-#line 610 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp110_ = _tmp109_;
-#line 610 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp111_ = g_strdup_printf (display_rating_or_higher_tooltip_base, _tmp110_);
-#line 610 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP);
-#line 610 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP = _tmp111_;
-#line 610 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp110_);
-#line 611 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp112_ = resources_get_stars (RATING_FIVE);
-#line 611 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp113_ = _tmp112_;
-#line 611 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp114_ = g_strdup_printf (display_rating_tooltip_base, _tmp113_);
-#line 611 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP);
-#line 611 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP = _tmp114_;
-#line 611 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp113_);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (display_rating_or_higher_tooltip_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (display_rating_or_higher_label_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (display_rating_or_higher_menu_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (display_rating_tooltip_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (display_rating_label_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (display_rating_menu_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (progress_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (tooltip_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (label_base);
-#line 559 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (menu_base);
-#line 2074 "Resources.c"
-}
-
-
-gchar*
-resources_jump_to_file_failed (GError* err)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 670 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = err->message;
-#line 670 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = g_strdup_printf (_ ("Unable to open in file manager: %s"), _tmp0_);
-#line 670 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp1_;
-#line 670 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2092 "Resources.c"
-}
-
-
-void
-resources_init (void)
-{
- GtkIconTheme* _tmp0_;
- GtkIconTheme* _tmp1_;
-#line 692 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_get_icon_theme_engine ();
-#line 692 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = _tmp0_;
-#line 692 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp1_);
-#line 694 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_generate_rating_strings ();
-#line 2109 "Resources.c"
-}
-
-
-void
-resources_terminate (void)
-{
-}
-
-
-/**
- * @brief Helper for getting a format string that matches the
- * user's LC_TIME settings from the system. This is intended
- * to help support the use case where a user wants the text
- * from one locale, but the timestamp format of another.
- *
- * Stolen wholesale from code written for Geary by Jim Nelson
- * and from Marcel Stimberg's original patch to Shotwell to
- * try to fix this; both are graciously thanked for their help.
- */
-void
-resources_fetch_lc_time_format (void)
-{
- gchar* old_language = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* old_messages = NULL;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* lc_time = NULL;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- const gchar* _tmp17_;
- const gchar* _tmp19_;
-#line 713 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_getenv ("LANGUAGE");
-#line 713 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 713 "/home/jens/Source/shotwell/src/Resources.vala"
- old_language = _tmp1_;
-#line 714 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = old_language;
-#line 714 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp2_ != NULL) {
-#line 715 "/home/jens/Source/shotwell/src/Resources.vala"
- g_unsetenv ("LANGUAGE");
-#line 2165 "Resources.c"
- }
-#line 719 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = setlocale (LC_MESSAGES, NULL);
-#line 719 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = g_strdup (_tmp3_);
-#line 719 "/home/jens/Source/shotwell/src/Resources.vala"
- old_messages = _tmp4_;
-#line 720 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = setlocale (LC_TIME, NULL);
-#line 720 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 720 "/home/jens/Source/shotwell/src/Resources.vala"
- lc_time = _tmp6_;
-#line 722 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = lc_time;
-#line 722 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp7_ != NULL) {
-#line 2183 "Resources.c"
- const gchar* _tmp8_;
-#line 723 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = lc_time;
-#line 723 "/home/jens/Source/shotwell/src/Resources.vala"
- setlocale (LC_MESSAGES, _tmp8_);
-#line 2189 "Resources.c"
- }
-#line 730 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = g_strdup ("%X");
-#line 730 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_HH_MM_FORMAT_STRING);
-#line 730 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_HH_MM_FORMAT_STRING = _tmp9_;
-#line 735 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = nl_langinfo (T_FMT);
-#line 735 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 735 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_HH_MM_SS_FORMAT_STRING);
-#line 735 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_HH_MM_SS_FORMAT_STRING = _tmp11_;
-#line 739 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = g_strdup (_ ("%a %b %d, %Y"));
-#line 739 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_LONG_DATE_FORMAT_STRING);
-#line 739 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_LONG_DATE_FORMAT_STRING = _tmp12_;
-#line 744 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp13_ = g_strdup (C_ ("MultidayFormat", "%a %b %d"));
-#line 744 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_START_MULTIDAY_DATE_FORMAT_STRING);
-#line 744 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_START_MULTIDAY_DATE_FORMAT_STRING = _tmp13_;
-#line 749 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp14_ = g_strdup (C_ ("MultidayFormat", "%d, %Y"));
-#line 749 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_END_MULTIDAY_DATE_FORMAT_STRING);
-#line 749 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_END_MULTIDAY_DATE_FORMAT_STRING = _tmp14_;
-#line 754 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp15_ = g_strdup (C_ ("MultimonthFormat", "%a %b %d"));
-#line 754 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_START_MULTIMONTH_DATE_FORMAT_STRING);
-#line 754 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_START_MULTIMONTH_DATE_FORMAT_STRING = _tmp15_;
-#line 759 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp16_ = g_strdup (C_ ("MultimonthFormat", "%a %b %d, %Y"));
-#line 759 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_END_MULTIMONTH_DATE_FORMAT_STRING);
-#line 759 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_END_MULTIMONTH_DATE_FORMAT_STRING = _tmp16_;
-#line 762 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp17_ = old_messages;
-#line 762 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp17_ != NULL) {
-#line 2239 "Resources.c"
- const gchar* _tmp18_;
-#line 763 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp18_ = old_messages;
-#line 763 "/home/jens/Source/shotwell/src/Resources.vala"
- setlocale (LC_MESSAGES, _tmp18_);
-#line 2245 "Resources.c"
- }
-#line 766 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp19_ = old_language;
-#line 766 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp19_ != NULL) {
-#line 2251 "Resources.c"
- const gchar* _tmp20_;
-#line 767 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp20_ = old_language;
-#line 767 "/home/jens/Source/shotwell/src/Resources.vala"
- g_setenv ("LANGUAGE", _tmp20_, TRUE);
-#line 2257 "Resources.c"
- }
-#line 710 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (lc_time);
-#line 710 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (old_messages);
-#line 710 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (old_language);
-#line 2265 "Resources.c"
-}
-
-
-GType
-resources_unit_system_get_type (void)
-{
- static volatile gsize resources_unit_system_type_id__volatile = 0;
- if (g_once_init_enter (&resources_unit_system_type_id__volatile)) {
- static const GEnumValue values[] = {{RESOURCES_UNIT_SYSTEM_IMPERIAL, "RESOURCES_UNIT_SYSTEM_IMPERIAL", "imperial"}, {RESOURCES_UNIT_SYSTEM_METRIC, "RESOURCES_UNIT_SYSTEM_METRIC", "metric"}, {RESOURCES_UNIT_SYSTEM_UNKNOWN, "RESOURCES_UNIT_SYSTEM_UNKNOWN", "unknown"}, {0, NULL, NULL}};
- GType resources_unit_system_type_id;
- resources_unit_system_type_id = g_enum_register_static ("ResourcesUnitSystem", values);
- g_once_init_leave (&resources_unit_system_type_id__volatile, resources_unit_system_type_id);
- }
- return resources_unit_system_type_id__volatile;
-}
-
-
-static gint
-string_last_index_of_char (const gchar* self,
- gunichar c,
- gint start_index)
-{
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1055 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_utf8_strrchr (((gchar*) self) + start_index, (gssize) -1, c);
-#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ != NULL) {
-#line 2302 "Resources.c"
- gchar* _tmp2_;
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _result_;
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) (_tmp2_ - ((gchar*) self));
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2310 "Resources.c"
- } else {
-#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = -1;
-#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2316 "Resources.c"
- }
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2341 "Resources.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2350 "Resources.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 2371 "Resources.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 2375 "Resources.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 2381 "Resources.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 2391 "Resources.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 2395 "Resources.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 2403 "Resources.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 2410 "Resources.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 2414 "Resources.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 2420 "Resources.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2432 "Resources.c"
-}
-
-
-static gboolean
-_vala_string_array_contains (const gchar* * stack,
- int stack_length,
- const gchar* needle)
-{
- int i;
-#line 798 "/home/jens/Source/shotwell/src/Resources.vala"
- for (i = 0; i < stack_length; i++) {
-#line 798 "/home/jens/Source/shotwell/src/Resources.vala"
- if (g_strcmp0 (stack[i], needle) == 0) {
-#line 798 "/home/jens/Source/shotwell/src/Resources.vala"
- return TRUE;
-#line 2448 "Resources.c"
- }
- }
-#line 798 "/home/jens/Source/shotwell/src/Resources.vala"
- return FALSE;
-#line 2453 "Resources.c"
-}
-
-
-ResourcesUnitSystem
-resources_get_default_measurement_unit (void)
-{
- ResourcesUnitSystem result = 0;
- ResourcesUnitSystem _tmp0_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- gint index = 0;
- const gchar* _tmp9_;
- gint _tmp10_;
- const gchar* _tmp14_;
- ResourcesUnitSystem _tmp15_;
-#line 783 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_unit_system;
-#line 783 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ != RESOURCES_UNIT_SYSTEM_UNKNOWN) {
-#line 2474 "Resources.c"
- ResourcesUnitSystem _tmp1_;
-#line 784 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_unit_system;
-#line 784 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp1_;
-#line 784 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2482 "Resources.c"
- }
-#line 787 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_getenv ("LC_MEASUREMENT");
-#line 787 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 787 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_lc_measurement);
-#line 787 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_lc_measurement = _tmp3_;
-#line 788 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = resources_lc_measurement;
-#line 788 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp4_ == NULL) {
-#line 2496 "Resources.c"
- gchar** _tmp5_;
- gchar** _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
-#line 789 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = _tmp5_ = g_get_language_names ();
-#line 789 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = _tmp6_[0];
-#line 789 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = g_strdup (_tmp7_);
-#line 789 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_lc_measurement);
-#line 789 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_lc_measurement = _tmp8_;
-#line 2511 "Resources.c"
- }
-#line 792 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = resources_lc_measurement;
-#line 792 "/home/jens/Source/shotwell/src/Resources.vala"
- index = string_last_index_of_char (_tmp9_, (gunichar) '.', 0);
-#line 793 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = index;
-#line 793 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp10_ > 0) {
-#line 2521 "Resources.c"
- const gchar* _tmp11_;
- gint _tmp12_;
- gchar* _tmp13_;
-#line 794 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = resources_lc_measurement;
-#line 794 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = index;
-#line 794 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp13_ = string_substring (_tmp11_, (glong) 0, (glong) _tmp12_);
-#line 794 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (resources_lc_measurement);
-#line 794 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_lc_measurement = _tmp13_;
-#line 2535 "Resources.c"
- }
-#line 797 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_unit_system = RESOURCES_UNIT_SYSTEM_METRIC;
-#line 798 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp14_ = resources_lc_measurement;
-#line 798 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_vala_string_array_contains (RESOURCES_IMPERIAL_COUNTRIES, G_N_ELEMENTS (RESOURCES_IMPERIAL_COUNTRIES), _tmp14_)) {
-#line 799 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_unit_system = RESOURCES_UNIT_SYSTEM_IMPERIAL;
-#line 2545 "Resources.c"
- }
-#line 802 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp15_ = resources_unit_system;
-#line 802 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp15_;
-#line 802 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2553 "Resources.c"
-}
-
-
-/**
- * @brief Returns a precached format string that matches the
- * user's LC_TIME settings.
- */
-gchar*
-resources_get_hh_mm_format_string (void)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 810 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_HH_MM_FORMAT_STRING;
-#line 810 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 811 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_fetch_lc_time_format ();
-#line 2574 "Resources.c"
- }
-#line 814 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_HH_MM_FORMAT_STRING;
-#line 814 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 814 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 814 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2584 "Resources.c"
-}
-
-
-gchar*
-resources_get_hh_mm_ss_format_string (void)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 818 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_HH_MM_SS_FORMAT_STRING;
-#line 818 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 819 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_fetch_lc_time_format ();
-#line 2601 "Resources.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_HH_MM_SS_FORMAT_STRING;
-#line 822 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 822 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 822 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2611 "Resources.c"
-}
-
-
-gchar*
-resources_get_long_date_format_string (void)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 826 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_LONG_DATE_FORMAT_STRING;
-#line 826 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 827 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_fetch_lc_time_format ();
-#line 2628 "Resources.c"
- }
-#line 830 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_LONG_DATE_FORMAT_STRING;
-#line 830 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 830 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 830 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2638 "Resources.c"
-}
-
-
-gchar*
-resources_get_start_multiday_span_format_string (void)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 834 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_START_MULTIDAY_DATE_FORMAT_STRING;
-#line 834 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 835 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_fetch_lc_time_format ();
-#line 2655 "Resources.c"
- }
-#line 838 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_START_MULTIDAY_DATE_FORMAT_STRING;
-#line 838 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 838 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 838 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2665 "Resources.c"
-}
-
-
-gchar*
-resources_get_end_multiday_span_format_string (void)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 842 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_END_MULTIDAY_DATE_FORMAT_STRING;
-#line 842 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 843 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_fetch_lc_time_format ();
-#line 2682 "Resources.c"
- }
-#line 846 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_END_MULTIDAY_DATE_FORMAT_STRING;
-#line 846 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 846 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 846 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2692 "Resources.c"
-}
-
-
-gchar*
-resources_get_start_multimonth_span_format_string (void)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 850 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_START_MULTIMONTH_DATE_FORMAT_STRING;
-#line 850 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 851 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_fetch_lc_time_format ();
-#line 2709 "Resources.c"
- }
-#line 854 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_START_MULTIMONTH_DATE_FORMAT_STRING;
-#line 854 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 854 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 854 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2719 "Resources.c"
-}
-
-
-gchar*
-resources_get_end_multimonth_span_format_string (void)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 858 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_END_MULTIMONTH_DATE_FORMAT_STRING;
-#line 858 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 859 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_fetch_lc_time_format ();
-#line 2736 "Resources.c"
- }
-#line 862 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = resources_END_MULTIMONTH_DATE_FORMAT_STRING;
-#line 862 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 862 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 862 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2746 "Resources.c"
-}
-
-
-gchar*
-resources_get_ui (const gchar* filename)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 865 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 866 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf ("/org/gnome/Shotwell/ui/%s", filename);
-#line 866 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp0_;
-#line 866 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2763 "Resources.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 882 "/home/jens/Source/shotwell/src/Resources.vala"
- return self ? g_object_ref (self) : NULL;
-#line 2772 "Resources.c"
-}
-
-
-GdkPixbuf*
-resources_get_noninterpretable_badge_pixbuf (void)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp8_;
- GError * _inner_error_ = NULL;
-#line 873 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_noninterpretable_badge_pixbuf;
-#line 873 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 2788 "Resources.c"
- {
- gchar* path = NULL;
- gchar* _tmp1_;
- GdkPixbuf* _tmp2_ = NULL;
- const gchar* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
-#line 875 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = g_strdup ("/org/gnome/Shotwell/icons/" RESOURCES_NONINTERPRETABLE_BADGE_FILE);
-#line 875 "/home/jens/Source/shotwell/src/Resources.vala"
- path = _tmp1_;
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = path;
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = gdk_pixbuf_new_from_resource (_tmp3_, &_inner_error_);
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = _tmp4_;
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (path);
-#line 2810 "Resources.c"
- goto __catch438_g_error;
- }
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = _tmp2_;
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = NULL;
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (resources_noninterpretable_badge_pixbuf);
-#line 876 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_noninterpretable_badge_pixbuf = _tmp5_;
-#line 874 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp2_);
-#line 874 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (path);
-#line 2825 "Resources.c"
- }
- goto __finally438;
- __catch438_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp6_;
-#line 874 "/home/jens/Source/shotwell/src/Resources.vala"
- err = _inner_error_;
-#line 874 "/home/jens/Source/shotwell/src/Resources.vala"
- _inner_error_ = NULL;
-#line 878 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = err->message;
-#line 878 "/home/jens/Source/shotwell/src/Resources.vala"
- g_error ("Resources.vala:878: VideoReader can't load noninterpretable badge imag" \
-"e: %s", _tmp6_);
-#line 874 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_error_free0 (err);
-#line 2842 "Resources.c"
- }
- __finally438:
-#line 874 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 874 "/home/jens/Source/shotwell/src/Resources.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 874 "/home/jens/Source/shotwell/src/Resources.vala"
- g_clear_error (&_inner_error_);
-#line 874 "/home/jens/Source/shotwell/src/Resources.vala"
- return NULL;
-#line 2853 "Resources.c"
- }
- }
-#line 882 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = resources_noninterpretable_badge_pixbuf;
-#line 882 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 882 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp8_;
-#line 882 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2864 "Resources.c"
-}
-
-
-GtkIconTheme*
-resources_get_icon_theme_engine (void)
-{
- GtkIconTheme* result = NULL;
- GtkIconTheme* icon_theme = NULL;
- GtkIconTheme* _tmp0_;
- GtkIconTheme* _tmp1_;
-#line 886 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = gtk_icon_theme_get_default ();
-#line 886 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 886 "/home/jens/Source/shotwell/src/Resources.vala"
- icon_theme = _tmp1_;
-#line 887 "/home/jens/Source/shotwell/src/Resources.vala"
- gtk_icon_theme_add_resource_path (icon_theme, "/org/gnome/Shotwell/icons");
-#line 889 "/home/jens/Source/shotwell/src/Resources.vala"
- result = icon_theme;
-#line 889 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2887 "Resources.c"
-}
-
-
-GdkPixbuf*
-resources_get_icon (const gchar* name,
- gint scale)
-{
- GdkPixbuf* result = NULL;
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp7_;
- GdkPixbuf* pixbuf = NULL;
- GeeHashMap* _tmp9_;
- gpointer _tmp10_;
- GdkPixbuf* _tmp11_;
- GdkPixbuf* scaled_pixbuf = NULL;
- GdkPixbuf* _tmp16_;
- GdkPixbuf* _tmp17_;
- GeeHashMap* _tmp18_;
- GeeHashMap* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- GdkPixbuf* _tmp23_;
-#line 894 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 895 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_scaled_icon_cache;
-#line 895 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ != NULL) {
-#line 2916 "Resources.c"
- gchar* scaled_name = NULL;
- gchar* _tmp1_;
- GeeHashMap* _tmp2_;
- const gchar* _tmp3_;
-#line 896 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = g_strdup_printf ("%s-%d", name, scale);
-#line 896 "/home/jens/Source/shotwell/src/Resources.vala"
- scaled_name = _tmp1_;
-#line 897 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = resources_scaled_icon_cache;
-#line 897 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = scaled_name;
-#line 897 "/home/jens/Source/shotwell/src/Resources.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_)) {
-#line 2931 "Resources.c"
- GeeHashMap* _tmp4_;
- const gchar* _tmp5_;
- gpointer _tmp6_;
-#line 898 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = resources_scaled_icon_cache;
-#line 898 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = scaled_name;
-#line 898 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
-#line 898 "/home/jens/Source/shotwell/src/Resources.vala"
- result = (GdkPixbuf*) _tmp6_;
-#line 898 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (scaled_name);
-#line 898 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2947 "Resources.c"
- }
-#line 895 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (scaled_name);
-#line 2951 "Resources.c"
- }
-#line 903 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = resources_icon_cache;
-#line 903 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp7_ == NULL) {
-#line 2957 "Resources.c"
- GeeHashMap* _tmp8_;
-#line 904 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 904 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (resources_icon_cache);
-#line 904 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_icon_cache = _tmp8_;
-#line 2965 "Resources.c"
- }
-#line 907 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = resources_icon_cache;
-#line 907 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name);
-#line 907 "/home/jens/Source/shotwell/src/Resources.vala"
- pixbuf = (GdkPixbuf*) _tmp10_;
-#line 908 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = pixbuf;
-#line 908 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp11_ == NULL) {
-#line 2977 "Resources.c"
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
- GeeHashMap* _tmp14_;
- GdkPixbuf* _tmp15_;
-#line 909 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = resources_load_icon (name, 0);
-#line 909 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (pixbuf);
-#line 909 "/home/jens/Source/shotwell/src/Resources.vala"
- pixbuf = _tmp12_;
-#line 910 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp13_ = pixbuf;
-#line 910 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp13_ == NULL) {
-#line 911 "/home/jens/Source/shotwell/src/Resources.vala"
- result = NULL;
-#line 911 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (pixbuf);
-#line 911 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 2998 "Resources.c"
- }
-#line 913 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp14_ = resources_icon_cache;
-#line 913 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp15_ = pixbuf;
-#line 913 "/home/jens/Source/shotwell/src/Resources.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name, _tmp15_);
-#line 3006 "Resources.c"
- }
-#line 916 "/home/jens/Source/shotwell/src/Resources.vala"
- if (scale <= 0) {
-#line 917 "/home/jens/Source/shotwell/src/Resources.vala"
- result = pixbuf;
-#line 917 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3014 "Resources.c"
- }
-#line 919 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp16_ = pixbuf;
-#line 919 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp17_ = scale_pixbuf (_tmp16_, scale, GDK_INTERP_BILINEAR, FALSE);
-#line 919 "/home/jens/Source/shotwell/src/Resources.vala"
- scaled_pixbuf = _tmp17_;
-#line 921 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp18_ = resources_scaled_icon_cache;
-#line 921 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp18_ == NULL) {
-#line 3026 "Resources.c"
- GeeHashMap* _tmp19_;
-#line 922 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp19_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 922 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (resources_scaled_icon_cache);
-#line 922 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_scaled_icon_cache = _tmp19_;
-#line 3034 "Resources.c"
- }
-#line 924 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp20_ = resources_scaled_icon_cache;
-#line 924 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp21_ = g_strdup_printf ("%s-%d", name, scale);
-#line 924 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp22_ = _tmp21_;
-#line 924 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp23_ = scaled_pixbuf;
-#line 924 "/home/jens/Source/shotwell/src/Resources.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, _tmp23_);
-#line 924 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp22_);
-#line 926 "/home/jens/Source/shotwell/src/Resources.vala"
- result = scaled_pixbuf;
-#line 926 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (pixbuf);
-#line 926 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3054 "Resources.c"
-}
-
-
-GdkPixbuf*
-resources_load_icon (const gchar* name,
- gint scale)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- GdkPixbuf* _tmp6_;
- GdkPixbuf* _tmp7_ = NULL;
- GError * _inner_error_ = NULL;
-#line 929 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 930 "/home/jens/Source/shotwell/src/Resources.vala"
- pixbuf = NULL;
-#line 3071 "Resources.c"
- {
- gchar* path = NULL;
- gchar* _tmp0_;
- GdkPixbuf* _tmp1_ = NULL;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 932 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_strdup_printf ("/org/gnome/Shotwell/icons/%s", name);
-#line 932 "/home/jens/Source/shotwell/src/Resources.vala"
- path = _tmp0_;
-#line 933 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = gdk_pixbuf_new_from_resource (path, &_inner_error_);
-#line 933 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = _tmp2_;
-#line 933 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 933 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (path);
-#line 3090 "Resources.c"
- goto __catch439_g_error;
- }
-#line 933 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = _tmp1_;
-#line 933 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = NULL;
-#line 933 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (pixbuf);
-#line 933 "/home/jens/Source/shotwell/src/Resources.vala"
- pixbuf = _tmp3_;
-#line 931 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp1_);
-#line 931 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (path);
-#line 3105 "Resources.c"
- }
- goto __finally439;
- __catch439_g_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
- const gchar* _tmp5_;
-#line 931 "/home/jens/Source/shotwell/src/Resources.vala"
- err = _inner_error_;
-#line 931 "/home/jens/Source/shotwell/src/Resources.vala"
- _inner_error_ = NULL;
-#line 935 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = err;
-#line 935 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = _tmp4_->message;
-#line 935 "/home/jens/Source/shotwell/src/Resources.vala"
- g_critical ("Resources.vala:935: Unable to load icon %s: %s", name, _tmp5_);
-#line 931 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_error_free0 (err);
-#line 3125 "Resources.c"
- }
- __finally439:
-#line 931 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 931 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (pixbuf);
-#line 931 "/home/jens/Source/shotwell/src/Resources.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 931 "/home/jens/Source/shotwell/src/Resources.vala"
- g_clear_error (&_inner_error_);
-#line 931 "/home/jens/Source/shotwell/src/Resources.vala"
- return NULL;
-#line 3138 "Resources.c"
- }
-#line 938 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = pixbuf;
-#line 938 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp6_ == NULL) {
-#line 939 "/home/jens/Source/shotwell/src/Resources.vala"
- result = NULL;
-#line 939 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (pixbuf);
-#line 939 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3150 "Resources.c"
- }
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- if (scale > 0) {
-#line 3154 "Resources.c"
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = pixbuf;
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = scale_pixbuf (_tmp8_, scale, GDK_INTERP_BILINEAR, FALSE);
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp7_);
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = _tmp9_;
-#line 3165 "Resources.c"
- } else {
- GdkPixbuf* _tmp10_;
- GdkPixbuf* _tmp11_;
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = pixbuf;
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp7_);
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = _tmp11_;
-#line 3177 "Resources.c"
- }
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp7_;
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (pixbuf);
-#line 941 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3185 "Resources.c"
-}
-
-
-gchar*
-resources_get_help_path (void)
-{
- gchar* result = NULL;
- GFile* dir = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
- GFile* help_dir = NULL;
- GFile* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- GFile* help_index = NULL;
- GFile* _tmp14_;
- GFile* _tmp15_;
- GFile* _tmp16_;
-#line 951 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = app_dirs_get_exec_dir ();
-#line 951 "/home/jens/Source/shotwell/src/Resources.vala"
- dir = _tmp0_;
-#line 953 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = dir;
-#line 953 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 953 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = _tmp2_;
-#line 953 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = g_str_has_suffix (_tmp3_, "src");
-#line 953 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp3_);
-#line 953 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp4_) {
-#line 3225 "Resources.c"
- GFile* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
-#line 954 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = dir;
-#line 954 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = g_file_get_parent (_tmp5_);
-#line 954 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = _tmp6_;
-#line 954 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = g_file_get_parent (_tmp7_);
-#line 954 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (dir);
-#line 954 "/home/jens/Source/shotwell/src/Resources.vala"
- dir = _tmp8_;
-#line 954 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp7_);
-#line 3244 "Resources.c"
- }
-#line 957 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = dir;
-#line 957 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = g_file_get_child (_tmp9_, "help");
-#line 957 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = _tmp10_;
-#line 957 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = g_file_get_child (_tmp11_, "C");
-#line 957 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp13_ = _tmp12_;
-#line 957 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp11_);
-#line 957 "/home/jens/Source/shotwell/src/Resources.vala"
- help_dir = _tmp13_;
-#line 958 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp14_ = help_dir;
-#line 958 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp15_ = g_file_get_child (_tmp14_, "index.page");
-#line 958 "/home/jens/Source/shotwell/src/Resources.vala"
- help_index = _tmp15_;
-#line 960 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp16_ = help_index;
-#line 960 "/home/jens/Source/shotwell/src/Resources.vala"
- if (g_file_query_exists (_tmp16_, NULL)) {
-#line 3270 "Resources.c"
- gchar* help_path = NULL;
- GFile* _tmp17_;
- gchar* _tmp18_;
- const gchar* _tmp19_;
-#line 963 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp17_ = help_dir;
-#line 963 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp18_ = g_file_get_path (_tmp17_);
-#line 963 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (help_path);
-#line 963 "/home/jens/Source/shotwell/src/Resources.vala"
- help_path = _tmp18_;
-#line 965 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp19_ = help_path;
-#line 965 "/home/jens/Source/shotwell/src/Resources.vala"
- if (!g_str_has_suffix (_tmp19_, "/")) {
-#line 3287 "Resources.c"
- const gchar* _tmp20_;
- gchar* _tmp21_;
-#line 966 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp20_ = help_path;
-#line 966 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp21_ = g_strconcat (_tmp20_, "/", NULL);
-#line 966 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (help_path);
-#line 966 "/home/jens/Source/shotwell/src/Resources.vala"
- help_path = _tmp21_;
-#line 3298 "Resources.c"
- }
-#line 969 "/home/jens/Source/shotwell/src/Resources.vala"
- result = help_path;
-#line 969 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (help_index);
-#line 969 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (help_dir);
-#line 969 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (dir);
-#line 969 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3310 "Resources.c"
- }
-#line 975 "/home/jens/Source/shotwell/src/Resources.vala"
- result = NULL;
-#line 975 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (help_index);
-#line 975 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (help_dir);
-#line 975 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (dir);
-#line 975 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3322 "Resources.c"
-}
-
-
-void
-resources_launch_help (GdkScreen* screen,
- const gchar* anchor,
- GError** error)
-{
- gchar* help_path = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 978 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_if_fail (GDK_IS_SCREEN (screen));
-#line 979 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_get_help_path ();
-#line 979 "/home/jens/Source/shotwell/src/Resources.vala"
- help_path = _tmp0_;
-#line 981 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = help_path;
-#line 981 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp1_ != NULL) {
-#line 3345 "Resources.c"
- gchar** argv = NULL;
- gchar** _tmp4_;
- gint argv_length1;
- gint _argv_size_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar** _tmp8_;
- gint _tmp8__length1;
- const gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar** _tmp12_;
- gint _tmp12__length1;
- gchar* _tmp13_;
- GPid pid = 0;
- gboolean _tmp14_ = FALSE;
- GFile* _tmp15_;
- GFile* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar** _tmp19_;
- gint _tmp19__length1;
- GPid _tmp20_ = 0;
- gboolean _tmp21_;
- gboolean _tmp22_;
- gchar** _tmp23_;
- gint _tmp23__length1;
- const gchar* _tmp24_;
-#line 985 "/home/jens/Source/shotwell/src/Resources.vala"
- if (anchor != NULL) {
-#line 3378 "Resources.c"
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 986 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = help_path;
-#line 986 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = g_strconcat (_tmp2_, anchor, NULL);
-#line 986 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (help_path);
-#line 986 "/home/jens/Source/shotwell/src/Resources.vala"
- help_path = _tmp3_;
-#line 3389 "Resources.c"
- }
-#line 989 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = g_new0 (gchar*, 3 + 1);
-#line 989 "/home/jens/Source/shotwell/src/Resources.vala"
- argv = _tmp4_;
-#line 989 "/home/jens/Source/shotwell/src/Resources.vala"
- argv_length1 = 3;
-#line 989 "/home/jens/Source/shotwell/src/Resources.vala"
- _argv_size_ = argv_length1;
-#line 990 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = argv;
-#line 990 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5__length1 = argv_length1;
-#line 990 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = g_strdup ("yelp");
-#line 990 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp5_[0]);
-#line 990 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_[0] = _tmp6_;
-#line 990 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = _tmp5_[0];
-#line 991 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = argv;
-#line 991 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8__length1 = argv_length1;
-#line 991 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = help_path;
-#line 991 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = g_strdup (_tmp9_);
-#line 991 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp8_[1]);
-#line 991 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_[1] = _tmp10_;
-#line 991 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = _tmp8_[1];
-#line 992 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = argv;
-#line 992 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12__length1 = argv_length1;
-#line 992 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp12_[2]);
-#line 992 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_[2] = NULL;
-#line 992 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp13_ = _tmp12_[2];
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp15_ = app_dirs_get_exec_dir ();
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp16_ = _tmp15_;
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp17_ = g_file_get_path (_tmp16_);
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp18_ = _tmp17_;
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp19_ = argv;
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp19__length1 = argv_length1;
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp21_ = g_spawn_async (_tmp18_, _tmp19_, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL, NULL, NULL, &_tmp20_, &_inner_error_);
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- pid = _tmp20_;
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp22_ = _tmp21_;
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp18_);
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp16_);
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp14_ = _tmp22_;
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- g_propagate_error (error, _inner_error_);
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (help_path);
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- return;
-#line 3469 "Resources.c"
- }
-#line 995 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp14_) {
-#line 997 "/home/jens/Source/shotwell/src/Resources.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 997 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (help_path);
-#line 997 "/home/jens/Source/shotwell/src/Resources.vala"
- return;
-#line 3479 "Resources.c"
- }
-#line 1000 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp23_ = argv;
-#line 1000 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp23__length1 = argv_length1;
-#line 1000 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp24_ = _tmp23_[0];
-#line 1000 "/home/jens/Source/shotwell/src/Resources.vala"
- g_warning ("Resources.vala:1000: Unable to launch %s", _tmp24_);
-#line 981 "/home/jens/Source/shotwell/src/Resources.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 3491 "Resources.c"
- }
-#line 1004 "/home/jens/Source/shotwell/src/Resources.vala"
- if (anchor != NULL) {
-#line 3495 "Resources.c"
- gchar* _tmp25_;
- gchar* _tmp26_;
-#line 1005 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp25_ = g_strconcat ("help:shotwell", anchor, NULL);
-#line 1005 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp26_ = _tmp25_;
-#line 1005 "/home/jens/Source/shotwell/src/Resources.vala"
- sys_show_uri (screen, _tmp26_, &_inner_error_);
-#line 1005 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (_tmp26_);
-#line 1005 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1005 "/home/jens/Source/shotwell/src/Resources.vala"
- g_propagate_error (error, _inner_error_);
-#line 1005 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (help_path);
-#line 1005 "/home/jens/Source/shotwell/src/Resources.vala"
- return;
-#line 3514 "Resources.c"
- }
- } else {
-#line 1007 "/home/jens/Source/shotwell/src/Resources.vala"
- sys_show_uri (screen, "help:shotwell", &_inner_error_);
-#line 1007 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1007 "/home/jens/Source/shotwell/src/Resources.vala"
- g_propagate_error (error, _inner_error_);
-#line 1007 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (help_path);
-#line 1007 "/home/jens/Source/shotwell/src/Resources.vala"
- return;
-#line 3527 "Resources.c"
- }
- }
-#line 978 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_free0 (help_path);
-#line 3532 "Resources.c"
-}
-
-
-gchar*
-resources_to_css_color (GdkRGBA* color)
-{
- gchar* result = NULL;
- gint r = 0;
- GdkRGBA _tmp0_;
- gdouble _tmp1_;
- gint g = 0;
- GdkRGBA _tmp2_;
- gdouble _tmp3_;
- gint b = 0;
- GdkRGBA _tmp4_;
- gdouble _tmp5_;
- gchar* _tmp6_;
-#line 1011 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_val_if_fail (color != NULL, NULL);
-#line 1012 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = *color;
-#line 1012 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = _tmp0_.red;
-#line 1012 "/home/jens/Source/shotwell/src/Resources.vala"
- r = (gint) (_tmp1_ * 255);
-#line 1013 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = *color;
-#line 1013 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = _tmp2_.green;
-#line 1013 "/home/jens/Source/shotwell/src/Resources.vala"
- g = (gint) (_tmp3_ * 255);
-#line 1014 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = *color;
-#line 1014 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = _tmp4_.blue;
-#line 1014 "/home/jens/Source/shotwell/src/Resources.vala"
- b = (gint) (_tmp5_ * 255);
-#line 1016 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = g_strdup_printf ("rgb(%d, %d, %d)", r, g, b);
-#line 1016 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp6_;
-#line 1016 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3576 "Resources.c"
-}
-
-
-void
-resources_style_widget (GtkWidget* widget,
- const gchar* stylesheet)
-{
- GeeMap* _tmp0_;
- GeeMap* _tmp2_;
- GtkCssProvider* styler = NULL;
- GtkCssProvider* _tmp7_;
- GtkStyleContext* _tmp11_;
- GtkCssProvider* _tmp12_;
- GeeMap* _tmp13_;
- GtkCssProvider* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 1023 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_if_fail (GTK_IS_WIDGET (widget));
-#line 1023 "/home/jens/Source/shotwell/src/Resources.vala"
- g_return_if_fail (stylesheet != NULL);
-#line 1024 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = resources_providers;
-#line 1024 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ == NULL) {
-#line 3601 "Resources.c"
- GeeHashMap* _tmp1_;
-#line 1025 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = gee_hash_map_new (gtk_widget_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, gtk_css_provider_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1025 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (resources_providers);
-#line 1025 "/home/jens/Source/shotwell/src/Resources.vala"
- resources_providers = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MAP, GeeMap);
-#line 3609 "Resources.c"
- }
-#line 1027 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = resources_providers;
-#line 1027 "/home/jens/Source/shotwell/src/Resources.vala"
- if (gee_map_has_key (_tmp2_, widget)) {
-#line 3615 "Resources.c"
- GtkStyleContext* _tmp3_;
- GeeMap* _tmp4_;
- gpointer _tmp5_;
- GtkCssProvider* _tmp6_;
-#line 1028 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = gtk_widget_get_style_context (widget);
-#line 1028 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp4_ = resources_providers;
-#line 1028 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp5_ = gee_map_get (_tmp4_, widget);
-#line 1028 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp6_ = (GtkCssProvider*) _tmp5_;
-#line 1028 "/home/jens/Source/shotwell/src/Resources.vala"
- gtk_style_context_remove_provider (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_style_provider_get_type (), GtkStyleProvider));
-#line 1028 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (_tmp6_);
-#line 3632 "Resources.c"
- }
-#line 1030 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp7_ = gtk_css_provider_new ();
-#line 1030 "/home/jens/Source/shotwell/src/Resources.vala"
- styler = _tmp7_;
-#line 3638 "Resources.c"
- {
- GtkCssProvider* _tmp8_;
-#line 1033 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp8_ = styler;
-#line 1033 "/home/jens/Source/shotwell/src/Resources.vala"
- gtk_css_provider_load_from_data (_tmp8_, stylesheet, (gssize) RESOURCES_ALL_DATA, &_inner_error_);
-#line 1033 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3647 "Resources.c"
- goto __catch440_g_error;
- }
- }
- goto __finally440;
- __catch440_g_error:
- {
- GError* e = NULL;
- GError* _tmp9_;
- const gchar* _tmp10_;
-#line 1032 "/home/jens/Source/shotwell/src/Resources.vala"
- e = _inner_error_;
-#line 1032 "/home/jens/Source/shotwell/src/Resources.vala"
- _inner_error_ = NULL;
-#line 1035 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp9_ = e;
-#line 1035 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp10_ = _tmp9_->message;
-#line 1035 "/home/jens/Source/shotwell/src/Resources.vala"
- g_warning ("Resources.vala:1035: couldn't parse widget stylesheet '%s': %s", stylesheet, _tmp10_);
-#line 1039 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_error_free0 (e);
-#line 1039 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (styler);
-#line 1039 "/home/jens/Source/shotwell/src/Resources.vala"
- return;
-#line 3673 "Resources.c"
- }
- __finally440:
-#line 1032 "/home/jens/Source/shotwell/src/Resources.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1032 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (styler);
-#line 1032 "/home/jens/Source/shotwell/src/Resources.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 1032 "/home/jens/Source/shotwell/src/Resources.vala"
- g_clear_error (&_inner_error_);
-#line 1032 "/home/jens/Source/shotwell/src/Resources.vala"
- return;
-#line 3686 "Resources.c"
- }
-#line 1042 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp11_ = gtk_widget_get_style_context (widget);
-#line 1042 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp12_ = styler;
-#line 1042 "/home/jens/Source/shotwell/src/Resources.vala"
- gtk_style_context_add_provider (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_style_provider_get_type (), GtkStyleProvider), (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
-#line 1045 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp13_ = resources_providers;
-#line 1045 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp14_ = styler;
-#line 1045 "/home/jens/Source/shotwell/src/Resources.vala"
- gee_map_set (_tmp13_, widget, _tmp14_);
-#line 1023 "/home/jens/Source/shotwell/src/Resources.vala"
- _g_object_unref0 (styler);
-#line 3702 "Resources.c"
-}
-
-
-gint
-resources_use_header_bar (void)
-{
- gint result = 0;
- const gchar* _tmp0_;
- gboolean use_header = FALSE;
- GtkSettings* _tmp1_;
- gint _tmp2_ = 0;
- gboolean _tmp3_;
-#line 1049 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp0_ = g_getenv ("SHOTWELL_USE_HEADERBARS");
-#line 1049 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp0_ != NULL) {
-#line 1050 "/home/jens/Source/shotwell/src/Resources.vala"
- result = 0;
-#line 1050 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3723 "Resources.c"
- }
-#line 1054 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp1_ = gtk_settings_get_default ();
-#line 1054 "/home/jens/Source/shotwell/src/Resources.vala"
- g_object_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject), "gtk-dialogs-use-header", &use_header, NULL);
-#line 1056 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp3_ = use_header;
-#line 1056 "/home/jens/Source/shotwell/src/Resources.vala"
- if (_tmp3_) {
-#line 1056 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = 1;
-#line 3735 "Resources.c"
- } else {
-#line 1056 "/home/jens/Source/shotwell/src/Resources.vala"
- _tmp2_ = 0;
-#line 3739 "Resources.c"
- }
-#line 1056 "/home/jens/Source/shotwell/src/Resources.vala"
- result = _tmp2_;
-#line 1056 "/home/jens/Source/shotwell/src/Resources.vala"
- return result;
-#line 3745 "Resources.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/Resources.vala b/src/Resources.vala
index ef86424..8fabbe4 100644
--- a/src/Resources.vala
+++ b/src/Resources.vala
@@ -66,76 +66,45 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
""";
- public const string CLOCKWISE = "object-rotate-right";
- public const string COUNTERCLOCKWISE = "object-rotate-left";
- public const string HFLIP = "object-flip-horizontal";
- public const string VFLIP = "object-flip-vertical";
- public const string CROP = "shotwell-crop";
- public const string STRAIGHTEN = "shotwell-straighten";
- public const string REDEYE = "shotwell-redeye";
- 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 = "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";
- public const string MERGE = "shotwell-merge-events";
-
- public const string GO_NEXT = "go-next";
- public const string GO_PREVIOUS = "go-previous";
-
-
- //public const string ICON_ABOUT_LOGO = "shotwell-street.jpg";
- public const string ICON_ABOUT_LOGO = "about-braunschweig.jpg";
- public const string ICON_GENERIC_PLUGIN = "generic-plugin.png";
+ public const string CLOCKWISE = "object-rotate-right-symbolic";
+ public const string COUNTERCLOCKWISE = "object-rotate-left-symbolic";
+ public const string HFLIP = "object-flip-horizontal-symbolic";
+ public const string VFLIP = "object-flip-vertical-symbolic";
+ public const string STRAIGHTEN = "straighten-symbolic";
+ public const string ADJUST = "image-adjust-color-symbolic";
+ public const string IMPORT = "image-x-generic-symbolic";
+ public const string IMPORT_ALL = "filter-photos-symbolic";
+ public const string ENHANCE = "image-auto-adjust-symbolic";
+ public const string PUBLISH = "send-to-symbolic";
+ public const string FACES_TOOL = "avatar-default-symbolic";
+
+ public const string GO_NEXT = "go-next-symbolic";
+ public const string GO_PREVIOUS = "go-previous-symbolic";
+
+ public const string ICON_ABOUT_LOGO = "about-celle.jpg";
+ public const string ICON_GENERIC_PLUGIN = "application-x-addon-symbolic";
public const string ICON_SLIDESHOW_EXTENSION_POINT = "slideshow-extension-point";
- public const string ICON_RATING_REJECTED = "rejected.svg";
- public const string ICON_RATING_ONE = "one-star.svg";
- public const string ICON_RATING_TWO = "two-stars.svg";
- public const string ICON_RATING_THREE = "three-stars.svg";
- public const string ICON_RATING_FOUR = "four-stars.svg";
- public const string ICON_RATING_FIVE = "five-stars.svg";
- public const string ICON_FILTER_REJECTED_OR_BETTER = "all-rejected.png";
public const int ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE = 32;
- public const string ICON_FILTER_UNRATED_OR_BETTER = "shotwell-16.png";
public const int ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE = 16;
- public const string ICON_FILTER_ONE_OR_BETTER = "one-star-filter-plus.svg";
- public const string ICON_FILTER_TWO_OR_BETTER = "two-star-filter-plus.svg";
- public const string ICON_FILTER_THREE_OR_BETTER = "three-star-filter-plus.svg";
- public const string ICON_FILTER_FOUR_OR_BETTER = "four-star-filter-plus.svg";
- public const string ICON_FILTER_FIVE = "five-star-filter.svg";
- public const string ICON_ZOOM_IN = "zoom-in.png";
- public const string ICON_ZOOM_OUT = "zoom-out.png";
public const int ICON_ZOOM_SCALE = 16;
public const string ICON_CAMERAS = "camera-photo";
- public const string ICON_EVENTS = "multiple-events";
- public const string ICON_ONE_EVENT = "one-event";
- public const string ICON_NO_EVENT = "no-event";
- public const string ICON_ONE_TAG = "one-tag";
- public const string ICON_TAGS = "multiple-tags";
- public const string ICON_FOLDER = "folder";
- public const string ICON_FOLDER_DOCUMENTS = "folder-documents";
- public const string ICON_IMPORTING = "go-down";
- public const string ICON_LAST_IMPORT = "document-open-recent";
- public const string ICON_MISSING_FILES = "process-stop";
- public const string ICON_PHOTOS = "shotwell";
- public const string ICON_SINGLE_PHOTO = "image-x-generic";
- public const string ICON_FILTER_PHOTOS = "filter-photos";
- public const string ICON_FILTER_PHOTOS_DISABLED = "filter-photos-disabled";
- public const string ICON_FILTER_VIDEOS = "filter-videos";
- public const string ICON_FILTER_VIDEOS_DISABLED = "filter-videos-disabled";
- public const string ICON_FILTER_RAW = "filter-raw";
- public const string ICON_FILTER_RAW_DISABLED = "filter-raw-disabled";
- public const string ICON_FILTER_FLAGGED = "filter-flagged";
- public const string ICON_FILTER_FLAGGED_DISABLED = "filter-flagged-disabled";
- public const string ICON_TRASH_EMPTY = "user-trash";
- public const string ICON_TRASH_FULL = "user-trash-full";
- public const string ICON_VIDEOS_PAGE = "videos-page";
- public const string ICON_FLAGGED_PAGE = "flag-page";
- public const string ICON_FLAGGED_TRINKET = "flag-trinket.png";
+ public const string ICON_EVENTS = "multiple-events-symbolic";
+ public const string ICON_ONE_EVENT = "one-event-symbolic";
+ public const string ICON_NO_EVENT = "no-event-symbolic";
+ public const string ICON_ONE_TAG = "one-tag-symbolic";
+ public const string ICON_TAGS = "multiple-tags-symbolic";
+ public const string ICON_FOLDER = "folder-symbolic";
+ public const string ICON_FOLDER_DOCUMENTS = "folder-documents-symbolic";
+ public const string ICON_IMPORTING = "go-down-symbolic";
+ public const string ICON_LAST_IMPORT = "document-open-recent-symbolic";
+ public const string ICON_MISSING_FILES = "process-stop-symbolic";
+ public const string ICON_PHOTOS = "shotwell-symbolic";
+ public const string ICON_SINGLE_PHOTO = "image-x-generic-symbolic";
+ public const string ICON_TRASH_EMPTY = "user-trash-symbolic";
+ public const string ICON_TRASH_FULL = "user-trash-full-symbolic";
+ public const string ICON_ONE_FACE = "avatar-default-symbolic";
+ public const string ICON_FACES = "avatar-default-symbolic";
public const string ROTATE_CW_MENU = _("Rotate _Right");
public const string ROTATE_CW_LABEL = _("Rotate");
@@ -332,6 +301,15 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
public const string UNFLAG_MENU = _("Un_flag");
+ public const string FACES_MENU = _("Faces");
+ public const string FACES_LABEL = _("Faces");
+ public const string FACES_TOOLTIP = _("Mark faces of people in the photo");
+ public const string MODIFY_FACES_LABEL = _("Modify Faces");
+ public const string DELETE_FACE_TITLE = _("Delete Face");
+ public const string DELETE_FACE_SIDEBAR_MENU = _("_Delete");
+ public const string RENAME_FACE_SIDEBAR_MENU = _("_Rename…");
+ public const string FACES_MENU_SECTION = "FacesMenuPlaceholder";
+
public string launch_editor_failed(Error err) {
return _("Unable to launch editor: %s").printf(err.message);
}
@@ -423,6 +401,38 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
public string delete_search_label(string name) {
return _("Delete Search “%s”").printf(name);
}
+
+#if ENABLE_FACES
+ public static string rename_face_exists_message(string name) {
+ return _("Unable to rename face to “%s” because the face already exists.").printf(name);
+ }
+
+ public string remove_face_from_photos_menu(string name, int count) {
+ return ngettext ("Remove Face “%s” From _Photo",
+ "Remove Face “%s” From _Photos", count).printf(name);
+ }
+
+ public string remove_face_from_photos_label(string name, int count) {
+ return ngettext ("Remove Face “%s” From Photo",
+ "Remove Face “%s” From Photos", count).printf(name);
+ }
+
+ public string rename_face_menu(string name) {
+ return _("Re_name Face “%s”…").printf(name);
+ }
+
+ public string rename_face_label(string old_name, string new_name) {
+ return _("Rename Face “%s” to “%s”").printf(old_name, new_name);
+ }
+
+ public string delete_face_menu(string name) {
+ return _("_Delete Face “%s”").printf(name);
+ }
+
+ public string delete_face_label(string name) {
+ return _("Delete Face “%s”").printf(name);
+ }
+#endif
private unowned string rating_label(Rating rating) {
switch (rating) {
@@ -521,6 +531,8 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
private string get_stars(Rating rating) {
switch (rating) {
+ case Rating.REJECTED:
+ return "\xE2\x9D\x8C";
case Rating.ONE:
return "\xE2\x98\x85";
case Rating.TWO:
@@ -536,26 +548,116 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
}
}
- private Gdk.Pixbuf? get_rating_trinket(Rating rating, int scale) {
- switch (rating) {
- case Rating.REJECTED:
- return Resources.get_icon(Resources.ICON_RATING_REJECTED, scale);
- // case Rating.UNRATED needs no icon
- case Rating.ONE:
- return Resources.get_icon(Resources.ICON_RATING_ONE, scale);
- case Rating.TWO:
- return Resources.get_icon(Resources.ICON_RATING_TWO, scale*2);
- case Rating.THREE:
- return Resources.get_icon(Resources.ICON_RATING_THREE, scale*3);
- case Rating.FOUR:
- return Resources.get_icon(Resources.ICON_RATING_FOUR, scale*4);
- case Rating.FIVE:
- return Resources.get_icon(Resources.ICON_RATING_FIVE, scale*5);
- default:
- return null;
+ private GLib.HashTable<int?, Gdk.Pixbuf> trinket_cache = null;
+ private Gdk.Pixbuf? get_cached_trinket(int key) {
+ if (trinket_cache == null) {
+ trinket_cache = new GLib.HashTable<int?, Gdk.Pixbuf>(int_hash, int_equal);
}
+
+ if (trinket_cache[key] != null) {
+ return trinket_cache[key];
+ }
+
+ return null;
}
-
+
+ public Gdk.Pixbuf? get_video_trinket(int scale) {
+ int cache_key = scale << 18;
+ var cached_pixbuf = get_cached_trinket(cache_key);
+
+ if (cached_pixbuf != null)
+ return cached_pixbuf;
+
+ try {
+ var theme = Gtk.IconTheme.get_default();
+ var info = theme.lookup_icon ("filter-videos-symbolic", (int)(scale * 2), Gtk.IconLookupFlags.GENERIC_FALLBACK);
+ var icon = info.load_symbolic({0.8, 0.8, 0.8, 1.0}, null, null, null);
+ var surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, icon.width, icon.height);
+ var ctx = new Cairo.Context(surface);
+ ctx.set_source_rgba(0.0, 0.0, 0.0, 0.35);
+ ctx.rectangle(0, 0, icon.width, icon.height);
+ ctx.fill();
+ Gdk.cairo_set_source_pixbuf(ctx, icon, 0, 0);
+ ctx.paint();
+
+ trinket_cache[cache_key] = Gdk.pixbuf_get_from_surface(surface, 0, 0, icon.width, icon.height);
+ return trinket_cache[cache_key];
+ } catch (Error err) {
+ critical ("%s", err.message);
+
+ return null;
+ }
+ }
+
+ public Gdk.Pixbuf? get_flagged_trinket(int scale) {
+ int cache_key = scale << 16;
+ var cached_pixbuf = get_cached_trinket(cache_key);
+
+ if (cached_pixbuf != null)
+ return cached_pixbuf;
+
+ try {
+ var theme = Gtk.IconTheme.get_default();
+ var info = theme.lookup_icon ("filter-flagged-symbolic", (int)(scale * 1.33), Gtk.IconLookupFlags.GENERIC_FALLBACK);
+ var icon = info.load_symbolic({0.8, 0.8, 0.8, 1.0}, null, null, null);
+ var surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, icon.width, icon.height);
+ var ctx = new Cairo.Context(surface);
+ ctx.set_source_rgba(0.0, 0.0, 0.0, 0.35);
+ ctx.rectangle(0, 0, icon.width, icon.height);
+ ctx.fill();
+ Gdk.cairo_set_source_pixbuf(ctx, icon, 0, 0);
+ ctx.paint();
+
+ trinket_cache[cache_key] = Gdk.pixbuf_get_from_surface(surface, 0, 0, icon.width, icon.height);
+ return trinket_cache[cache_key];
+ } catch (Error err) {
+ critical ("%s", err.message);
+
+ return null;
+ }
+ }
+
+ private Gdk.Pixbuf? get_rating_trinket(Rating rating, int scale) {
+ if (rating == Rating.UNRATED)
+ return null;
+
+ int rating_key = (rating << 8) + scale;
+
+ var cached_pixbuf = get_cached_trinket(rating_key);
+ if (cached_pixbuf != null)
+ return cached_pixbuf;
+
+ var layout = AppWindow.get_instance().create_pango_layout(get_stars(rating));
+
+ // Adjust style according to scale (depending on whether it is rendered on a Thumbnail or on a full foto)
+ var att = new Pango.AttrList();
+ var a = Pango.attr_scale_new((double)scale/12.0);
+ att.insert(a.copy());
+ layout.set_attributes(att);
+
+ // Render the layout with a slight dark background so it stands out on all kinds of images
+ // FIXME: Cache the result
+ int width, height;
+ layout.get_pixel_size(out width, out height);
+ var surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, width, height);
+ var ctx = new Cairo.Context(surface);
+ ctx.set_source_rgba(0.0, 0.0, 0.0, 0.35);
+ ctx.rectangle(0,0,width,height);
+ ctx.fill();
+ if (rating == Rating.REJECTED)
+ ctx.set_source_rgba(0.8, 0.0, 0.0, 1.0);
+ else
+ ctx.set_source_rgba(0.8, 0.8, 0.8, 1.0);
+
+ ctx.move_to(0, 0);
+ Pango.cairo_show_layout(ctx, layout);
+
+ cached_pixbuf = Gdk.pixbuf_get_from_surface(surface, 0, 0, width, height);
+ trinket_cache[rating_key] = cached_pixbuf;
+
+ return cached_pixbuf;
+ }
+
private void generate_rating_strings() {
string menu_base = "%s";
string label_base = _("Rate %s");
@@ -906,7 +1008,7 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
// fetch from cache and if not present, from disk
Gdk.Pixbuf? pixbuf = icon_cache.get(name);
if (pixbuf == null) {
- pixbuf = load_icon(name, 0);
+ pixbuf = load_icon(name, scale);
if (pixbuf == null)
return null;
@@ -929,6 +1031,14 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
public Gdk.Pixbuf? load_icon(string name, int scale = DEFAULT_ICON_SCALE) {
Gdk.Pixbuf pixbuf = null;
try {
+ var theme = Gtk.IconTheme.get_default();
+ var info = theme.lookup_icon(name, scale, Gtk.IconLookupFlags.GENERIC_FALLBACK);
+ pixbuf = info.load_symbolic_for_context(AppWindow.get_instance().get_style_context(), null);
+ } catch (Error err) {
+ debug("Failed to find icon %s in theme, falling back to resources", name);
+ }
+
+ try {
var path = "/org/gnome/Shotwell/icons/%s".printf(name);
pixbuf = new Gdk.Pixbuf.from_resource(path);
} catch (Error err) {
@@ -953,7 +1063,7 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
if (dir.get_path().has_suffix("src")) {
dir = dir.get_parent().get_parent();
}
-
+
File help_dir = dir.get_child("help").get_child("C");
File help_index = help_dir.get_child("index.page");
@@ -975,7 +1085,7 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
return null;
}
- public static void launch_help(Gdk.Screen screen, string? anchor=null) throws Error {
+ public static void launch_help(Gtk.Window window, string? anchor=null) throws Error {
string? help_path = get_help_path();
if(help_path != null) {
@@ -1001,50 +1111,16 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
}
// launch from system-installed help
+ var uri = "help:shotwell";
if (anchor != null) {
- sys_show_uri(screen, "help:shotwell" + anchor);
- } else {
- sys_show_uri(screen, "help:shotwell");
+ uri += anchor;
}
- }
-
- public string to_css_color(Gdk.RGBA color) {
- int r = (int) (color.red * 255);
- int g = (int) (color.green * 255);
- int b = (int) (color.blue * 255);
-
- return "rgb(%d, %d, %d)".printf(r, g, b);
+
+ Gtk.show_uri_on_window(window, uri, Gdk.CURRENT_TIME);
}
public const int ALL_DATA = -1;
- private static Gee.Map<Gtk.Widget, Gtk.CssProvider> providers = null;
-
- public static void style_widget(Gtk.Widget widget, string stylesheet) {
- if (providers == null)
- providers = new Gee.HashMap<Gtk.Widget, Gtk.CssProvider>();
-
- if (providers.has_key(widget))
- widget.get_style_context().remove_provider(providers.get(widget));
-
- Gtk.CssProvider styler = new Gtk.CssProvider();
-
- try {
- styler.load_from_data(stylesheet, ALL_DATA);
- } catch (Error e) {
- warning("couldn't parse widget stylesheet '%s': %s", stylesheet,
- e.message);
- // short-circuit return -- if the stylesheet couldn't be interpreted
- // then we can't do anything more
- return;
- }
-
- widget.get_style_context().add_provider(styler,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
-
- providers.set(widget, styler);
- }
-
public static int use_header_bar() {
if (Environment.get_variable("SHOTWELL_USE_HEADERBARS") != null) {
return 0;
@@ -1056,16 +1132,6 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
return use_header ? 1 : 0;
}
- public const string CUSTOM_CSS =
- """LibraryWindow .pane-separator {
- background-color: @borders;
- }
- SearchFilterToolbar {
- border-width: 0 0 1px 0;
- border-style: solid;
- border-color: @borders;
- }""";
-
public const string ONIMAGE_FONT_COLOR = "#000000";
public const string ONIMAGE_FONT_BACKGROUND = "rgba(255,255,255,0.5)";
}
diff --git a/src/Screensaver.c b/src/Screensaver.c
deleted file mode 100644
index f397c01..0000000
--- a/src/Screensaver.c
+++ /dev/null
@@ -1,487 +0,0 @@
-/* Screensaver.c generated by valac 0.40.4, the Vala compiler
- * generated from Screensaver.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n-lib.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_SCREENSAVER (screensaver_get_type ())
-#define SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCREENSAVER, Screensaver))
-#define SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCREENSAVER, ScreensaverClass))
-#define IS_SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCREENSAVER))
-#define IS_SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCREENSAVER))
-#define SCREENSAVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCREENSAVER, ScreensaverClass))
-
-typedef struct _Screensaver Screensaver;
-typedef struct _ScreensaverClass ScreensaverClass;
-typedef struct _ScreensaverPrivate ScreensaverPrivate;
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-typedef struct _ParamSpecScreensaver ParamSpecScreensaver;
-
-struct _Screensaver {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ScreensaverPrivate * priv;
-};
-
-struct _ScreensaverClass {
- GTypeClass parent_class;
- void (*finalize) (Screensaver *self);
-};
-
-struct _ScreensaverPrivate {
- guint32 cookie;
-};
-
-struct _ParamSpecScreensaver {
- GParamSpec parent_instance;
-};
-
-
-static gpointer screensaver_parent_class = NULL;
-
-gpointer screensaver_ref (gpointer instance);
-void screensaver_unref (gpointer instance);
-GParamSpec* param_spec_screensaver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_screensaver (GValue* value,
- gpointer v_object);
-void value_take_screensaver (GValue* value,
- gpointer v_object);
-gpointer value_get_screensaver (const GValue* value);
-GType screensaver_get_type (void) G_GNUC_CONST;
-#define SCREENSAVER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SCREENSAVER, ScreensaverPrivate))
-Screensaver* screensaver_new (void);
-Screensaver* screensaver_construct (GType object_type);
-void screensaver_inhibit (Screensaver* self,
- const gchar* reason);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-guint application_inhibit (Application* self,
- GtkApplicationInhibitFlags what,
- const gchar* reason);
-void screensaver_uninhibit (Screensaver* self);
-void application_uninhibit (Application* self,
- guint cookie);
-static void screensaver_finalize (Screensaver * obj);
-
-
-Screensaver*
-screensaver_construct (GType object_type)
-{
- Screensaver* self = NULL;
-#line 10 "/home/jens/Source/shotwell/src/Screensaver.vala"
- self = (Screensaver*) g_type_create_instance (object_type);
-#line 10 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return self;
-#line 115 "Screensaver.c"
-}
-
-
-Screensaver*
-screensaver_new (void)
-{
-#line 10 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return screensaver_construct (TYPE_SCREENSAVER);
-#line 124 "Screensaver.c"
-}
-
-
-void
-screensaver_inhibit (Screensaver* self,
- const gchar* reason)
-{
- guint32 _tmp0_;
- Application* _tmp1_;
- Application* _tmp2_;
-#line 13 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_if_fail (IS_SCREENSAVER (self));
-#line 13 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_if_fail (reason != NULL);
-#line 14 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _tmp0_ = self->priv->cookie;
-#line 14 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (_tmp0_ != ((guint32) 0)) {
-#line 15 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return;
-#line 145 "Screensaver.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _tmp1_ = application_get_instance ();
-#line 17 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _tmp2_ = _tmp1_;
-#line 17 "/home/jens/Source/shotwell/src/Screensaver.vala"
- self->priv->cookie = (guint32) application_inhibit (_tmp2_, GTK_APPLICATION_INHIBIT_IDLE | GTK_APPLICATION_INHIBIT_SUSPEND, _ ("Slideshow"));
-#line 17 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _application_unref0 (_tmp2_);
-#line 155 "Screensaver.c"
-}
-
-
-void
-screensaver_uninhibit (Screensaver* self)
-{
- guint32 _tmp0_;
- Application* _tmp1_;
- Application* _tmp2_;
- guint32 _tmp3_;
-#line 21 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_if_fail (IS_SCREENSAVER (self));
-#line 22 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _tmp0_ = self->priv->cookie;
-#line 22 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (_tmp0_ == ((guint32) 0)) {
-#line 23 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return;
-#line 174 "Screensaver.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _tmp1_ = application_get_instance ();
-#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _tmp2_ = _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _tmp3_ = self->priv->cookie;
-#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala"
- application_uninhibit (_tmp2_, (guint) _tmp3_);
-#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala"
- _application_unref0 (_tmp2_);
-#line 26 "/home/jens/Source/shotwell/src/Screensaver.vala"
- self->priv->cookie = (guint32) 0;
-#line 188 "Screensaver.c"
-}
-
-
-static void
-value_screensaver_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- value->data[0].v_pointer = NULL;
-#line 197 "Screensaver.c"
-}
-
-
-static void
-value_screensaver_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- screensaver_unref (value->data[0].v_pointer);
-#line 208 "Screensaver.c"
- }
-}
-
-
-static void
-value_screensaver_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- dest_value->data[0].v_pointer = screensaver_ref (src_value->data[0].v_pointer);
-#line 221 "Screensaver.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 225 "Screensaver.c"
- }
-}
-
-
-static gpointer
-value_screensaver_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return value->data[0].v_pointer;
-#line 235 "Screensaver.c"
-}
-
-
-static gchar*
-value_screensaver_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (collect_values[0].v_pointer) {
-#line 247 "Screensaver.c"
- Screensaver * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 254 "Screensaver.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.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 258 "Screensaver.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- value->data[0].v_pointer = screensaver_ref (object);
-#line 262 "Screensaver.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- value->data[0].v_pointer = NULL;
-#line 266 "Screensaver.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return NULL;
-#line 270 "Screensaver.c"
-}
-
-
-static gchar*
-value_screensaver_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- Screensaver ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 286 "Screensaver.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- *object_p = NULL;
-#line 292 "Screensaver.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- *object_p = value->data[0].v_pointer;
-#line 296 "Screensaver.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- *object_p = screensaver_ref (value->data[0].v_pointer);
-#line 300 "Screensaver.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return NULL;
-#line 304 "Screensaver.c"
-}
-
-
-GParamSpec*
-param_spec_screensaver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecScreensaver* spec;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SCREENSAVER), NULL);
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return G_PARAM_SPEC (spec);
-#line 324 "Screensaver.c"
-}
-
-
-gpointer
-value_get_screensaver (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCREENSAVER), NULL);
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return value->data[0].v_pointer;
-#line 335 "Screensaver.c"
-}
-
-
-void
-value_set_screensaver (GValue* value,
- gpointer v_object)
-{
- Screensaver * old;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCREENSAVER));
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCREENSAVER));
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- 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/Screensaver.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- screensaver_ref (value->data[0].v_pointer);
-#line 358 "Screensaver.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- value->data[0].v_pointer = NULL;
-#line 362 "Screensaver.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- screensaver_unref (old);
-#line 368 "Screensaver.c"
- }
-}
-
-
-void
-value_take_screensaver (GValue* value,
- gpointer v_object)
-{
- Screensaver * old;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCREENSAVER));
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCREENSAVER));
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- 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/Screensaver.vala"
- value->data[0].v_pointer = v_object;
-#line 390 "Screensaver.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- value->data[0].v_pointer = NULL;
-#line 394 "Screensaver.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- screensaver_unref (old);
-#line 400 "Screensaver.c"
- }
-}
-
-
-static void
-screensaver_class_init (ScreensaverClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- screensaver_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- ((ScreensaverClass *) klass)->finalize = screensaver_finalize;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_type_class_add_private (klass, sizeof (ScreensaverPrivate));
-#line 414 "Screensaver.c"
-}
-
-
-static void
-screensaver_instance_init (Screensaver * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- self->priv = SCREENSAVER_GET_PRIVATE (self);
-#line 8 "/home/jens/Source/shotwell/src/Screensaver.vala"
- self->priv->cookie = (guint32) 0;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- self->ref_count = 1;
-#line 427 "Screensaver.c"
-}
-
-
-static void
-screensaver_finalize (Screensaver * obj)
-{
- Screensaver * self;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCREENSAVER, Screensaver);
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_signal_handlers_destroy (self);
-#line 439 "Screensaver.c"
-}
-
-
-GType
-screensaver_get_type (void)
-{
- static volatile gsize screensaver_type_id__volatile = 0;
- if (g_once_init_enter (&screensaver_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_screensaver_init, value_screensaver_free_value, value_screensaver_copy_value, value_screensaver_peek_pointer, "p", value_screensaver_collect_value, "p", value_screensaver_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ScreensaverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) screensaver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Screensaver), 0, (GInstanceInitFunc) screensaver_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType screensaver_type_id;
- screensaver_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Screensaver", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&screensaver_type_id__volatile, screensaver_type_id);
- }
- return screensaver_type_id__volatile;
-}
-
-
-gpointer
-screensaver_ref (gpointer instance)
-{
- Screensaver * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- return instance;
-#line 468 "Screensaver.c"
-}
-
-
-void
-screensaver_unref (gpointer instance)
-{
- Screensaver * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- SCREENSAVER_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 483 "Screensaver.c"
- }
-}
-
-
-
diff --git a/src/SearchFilter.c b/src/SearchFilter.c
deleted file mode 100644
index a3a1b0f..0000000
--- a/src/SearchFilter.c
+++ /dev/null
@@ -1,10171 +0,0 @@
-/* SearchFilter.c generated by valac 0.40.4, the Vala compiler
- * generated from SearchFilter.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* Bitfield values used to specify which search bar features we want.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <gtk/gtk.h>
-#include <float.h>
-#include <math.h>
-#include <glib/gi18n-lib.h>
-#include <gdk/gdk.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ())
-
-#define TYPE_RATING_FILTER (rating_filter_get_type ())
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SAVED_SEARCH (saved_search_get_type ())
-#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch))
-#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass))
-#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH))
-#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH))
-#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass))
-
-typedef struct _SavedSearch SavedSearch;
-typedef struct _SavedSearchClass SavedSearchClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ())
-#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter))
-#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-
-typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter;
-typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass;
-typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#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))
-#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
-#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
-#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
-
-typedef struct _MediaSourceItem MediaSourceItem;
-typedef struct _MediaSourceItemClass MediaSourceItemClass;
-
-#define TYPE_THUMBNAIL (thumbnail_get_type ())
-#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail))
-#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass))
-#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL))
-#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL))
-#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass))
-
-typedef struct _Thumbnail Thumbnail;
-typedef struct _ThumbnailClass ThumbnailClass;
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#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_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#define TYPE_DISABLED_VIEW_FILTER (disabled_view_filter_get_type ())
-#define DISABLED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilter))
-#define DISABLED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilterClass))
-#define IS_DISABLED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISABLED_VIEW_FILTER))
-#define IS_DISABLED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISABLED_VIEW_FILTER))
-#define DISABLED_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilterClass))
-
-typedef struct _DisabledViewFilter DisabledViewFilter;
-typedef struct _DisabledViewFilterClass DisabledViewFilterClass;
-typedef struct _DisabledViewFilterPrivate DisabledViewFilterPrivate;
-
-#define TYPE_TEXT_ACTION (text_action_get_type ())
-#define TEXT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ACTION, TextAction))
-#define TEXT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ACTION, TextActionClass))
-#define IS_TEXT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ACTION))
-#define IS_TEXT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ACTION))
-#define TEXT_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ACTION, TextActionClass))
-
-typedef struct _TextAction TextAction;
-typedef struct _TextActionClass TextActionClass;
-typedef struct _TextActionPrivate TextActionPrivate;
-typedef struct _ParamSpecTextAction ParamSpecTextAction;
-enum {
- TEXT_ACTION_TEXT_CHANGED_SIGNAL,
- TEXT_ACTION_SENSITIVITY_CHANGED_SIGNAL,
- TEXT_ACTION_VISIBILITY_CHANGED_SIGNAL,
- TEXT_ACTION_NUM_SIGNALS
-};
-static guint text_action_signals[TEXT_ACTION_NUM_SIGNALS] = {0};
-
-#define TYPE_SEARCH_FILTER_ACTIONS (search_filter_actions_get_type ())
-#define SEARCH_FILTER_ACTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActions))
-#define SEARCH_FILTER_ACTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsClass))
-#define IS_SEARCH_FILTER_ACTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_FILTER_ACTIONS))
-#define IS_SEARCH_FILTER_ACTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_FILTER_ACTIONS))
-#define SEARCH_FILTER_ACTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsClass))
-
-typedef struct _SearchFilterActions SearchFilterActions;
-typedef struct _SearchFilterActionsClass SearchFilterActionsClass;
-typedef struct _SearchFilterActionsPrivate SearchFilterActionsPrivate;
-#define _text_action_unref0(var) ((var == NULL) ? NULL : (var = (text_action_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ())
-#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker))
-#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER))
-#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER))
-#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-
-typedef struct _MediaViewTracker MediaViewTracker;
-typedef struct _MediaViewTrackerClass MediaViewTrackerClass;
-
-#define TYPE_CAMERA_VIEW_TRACKER (camera_view_tracker_get_type ())
-#define CAMERA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker))
-#define CAMERA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_VIEW_TRACKER, CameraViewTrackerClass))
-#define IS_CAMERA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_VIEW_TRACKER))
-#define IS_CAMERA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_VIEW_TRACKER))
-#define CAMERA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_VIEW_TRACKER, CameraViewTrackerClass))
-
-typedef struct _CameraViewTracker CameraViewTracker;
-typedef struct _CameraViewTrackerClass CameraViewTrackerClass;
-#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL)))
-typedef struct _CoreTrackerPrivate CoreTrackerPrivate;
-typedef struct _CoreViewTrackerPrivate CoreViewTrackerPrivate;
-typedef struct _MediaViewTrackerPrivate MediaViewTrackerPrivate;
-
-#define TYPE_MEDIA_ACCUMULATOR (media_accumulator_get_type ())
-#define MEDIA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_ACCUMULATOR, MediaAccumulator))
-#define MEDIA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_ACCUMULATOR, MediaAccumulatorClass))
-#define IS_MEDIA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_ACCUMULATOR))
-#define IS_MEDIA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_ACCUMULATOR))
-#define MEDIA_ACCUMULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_ACCUMULATOR, MediaAccumulatorClass))
-
-typedef struct _MediaAccumulator MediaAccumulator;
-typedef struct _MediaAccumulatorClass MediaAccumulatorClass;
-
-#define CORE_TYPE_TRACKER_ACCUMULATOR (core_tracker_accumulator_get_type ())
-#define CORE_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator))
-#define CORE_IS_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR))
-#define CORE_TRACKER_ACCUMULATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulatorIface))
-
-typedef struct _CoreTrackerAccumulator CoreTrackerAccumulator;
-typedef struct _CoreTrackerAccumulatorIface CoreTrackerAccumulatorIface;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-typedef struct _MediaAccumulatorPrivate MediaAccumulatorPrivate;
-typedef struct _CameraViewTrackerPrivate CameraViewTrackerPrivate;
-
-#define TYPE_CAMERA_ACCUMULATOR (camera_accumulator_get_type ())
-#define CAMERA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_ACCUMULATOR, CameraAccumulator))
-#define CAMERA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorClass))
-#define IS_CAMERA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_ACCUMULATOR))
-#define IS_CAMERA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_ACCUMULATOR))
-#define CAMERA_ACCUMULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorClass))
-
-typedef struct _CameraAccumulator CameraAccumulator;
-typedef struct _CameraAccumulatorClass CameraAccumulatorClass;
-typedef struct _ParamSpecSearchFilterActions ParamSpecSearchFilterActions;
-enum {
- SEARCH_FILTER_ACTIONS_FLAGGED_TOGGLED_SIGNAL,
- SEARCH_FILTER_ACTIONS_PHOTOS_TOGGLED_SIGNAL,
- SEARCH_FILTER_ACTIONS_VIDEOS_TOGGLED_SIGNAL,
- SEARCH_FILTER_ACTIONS_RAW_TOGGLED_SIGNAL,
- SEARCH_FILTER_ACTIONS_RATING_CHANGED_SIGNAL,
- SEARCH_FILTER_ACTIONS_TEXT_CHANGED_SIGNAL,
- SEARCH_FILTER_ACTIONS_MEDIA_CONTEXT_CHANGED_SIGNAL,
- SEARCH_FILTER_ACTIONS_CRITERIA_CHANGED_SIGNAL,
- SEARCH_FILTER_ACTIONS_NUM_SIGNALS
-};
-static guint search_filter_actions_signals[SEARCH_FILTER_ACTIONS_NUM_SIGNALS] = {0};
-
-#define TYPE_SEARCH_FILTER_TOOLBAR (search_filter_toolbar_get_type ())
-#define SEARCH_FILTER_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbar))
-#define SEARCH_FILTER_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarClass))
-#define IS_SEARCH_FILTER_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_FILTER_TOOLBAR))
-#define IS_SEARCH_FILTER_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_FILTER_TOOLBAR))
-#define SEARCH_FILTER_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarClass))
-
-typedef struct _SearchFilterToolbar SearchFilterToolbar;
-typedef struct _SearchFilterToolbarClass SearchFilterToolbarClass;
-typedef struct _SearchFilterToolbarPrivate SearchFilterToolbarPrivate;
-
-#define SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX (search_filter_toolbar_search_box_get_type ())
-#define SEARCH_FILTER_TOOLBAR_SEARCH_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBox))
-#define SEARCH_FILTER_TOOLBAR_SEARCH_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBoxClass))
-#define SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX))
-#define SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX))
-#define SEARCH_FILTER_TOOLBAR_SEARCH_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBoxClass))
-
-typedef struct _SearchFilterToolbarSearchBox SearchFilterToolbarSearchBox;
-typedef struct _SearchFilterToolbarSearchBoxClass SearchFilterToolbarSearchBoxClass;
-
-#define SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON (search_filter_toolbar_rating_filter_button_get_type ())
-#define SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, SearchFilterToolbarRatingFilterButton))
-#define SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, SearchFilterToolbarRatingFilterButtonClass))
-#define SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON))
-#define SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON))
-#define SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, SearchFilterToolbarRatingFilterButtonClass))
-
-typedef struct _SearchFilterToolbarRatingFilterButton SearchFilterToolbarRatingFilterButton;
-typedef struct _SearchFilterToolbarRatingFilterButtonClass SearchFilterToolbarRatingFilterButtonClass;
-
-#define SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON (search_filter_toolbar_saved_search_filter_button_get_type ())
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, SearchFilterToolbarSavedSearchFilterButton))
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, SearchFilterToolbarSavedSearchFilterButtonClass))
-#define SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON))
-#define SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON))
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, SearchFilterToolbarSavedSearchFilterButtonClass))
-
-typedef struct _SearchFilterToolbarSavedSearchFilterButton SearchFilterToolbarSavedSearchFilterButton;
-typedef struct _SearchFilterToolbarSavedSearchFilterButtonClass SearchFilterToolbarSavedSearchFilterButtonClass;
-
-#define SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM (search_filter_toolbar_label_tool_item_get_type ())
-#define SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItem))
-#define SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItemClass))
-#define SEARCH_FILTER_TOOLBAR_IS_LABEL_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM))
-#define SEARCH_FILTER_TOOLBAR_IS_LABEL_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM))
-#define SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItemClass))
-
-typedef struct _SearchFilterToolbarLabelToolItem SearchFilterToolbarLabelToolItem;
-typedef struct _SearchFilterToolbarLabelToolItemClass SearchFilterToolbarLabelToolItemClass;
-
-#define SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON (search_filter_toolbar_toggle_action_tool_button_get_type ())
-#define SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButton))
-#define SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButtonClass))
-#define SEARCH_FILTER_TOOLBAR_IS_TOGGLE_ACTION_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON))
-#define SEARCH_FILTER_TOOLBAR_IS_TOGGLE_ACTION_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON))
-#define SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButtonClass))
-
-typedef struct _SearchFilterToolbarToggleActionToolButton SearchFilterToolbarToggleActionToolButton;
-typedef struct _SearchFilterToolbarToggleActionToolButtonClass SearchFilterToolbarToggleActionToolButtonClass;
-enum {
- SEARCH_FILTER_TOOLBAR_0_PROPERTY,
- SEARCH_FILTER_TOOLBAR_NUM_PROPERTIES
-};
-static GParamSpec* search_filter_toolbar_properties[SEARCH_FILTER_TOOLBAR_NUM_PROPERTIES];
-#define _search_filter_actions_unref0(var) ((var == NULL) ? NULL : (var = (search_filter_actions_unref (var), NULL)))
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _SearchFilterToolbarSavedSearchFilterButtonPrivate SearchFilterToolbarSavedSearchFilterButtonPrivate;
-
-#define SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER (search_filter_toolbar_saved_search_popover_get_type ())
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopover))
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopoverClass))
-#define SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER))
-#define SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER))
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopoverClass))
-
-typedef struct _SearchFilterToolbarSavedSearchPopover SearchFilterToolbarSavedSearchPopover;
-typedef struct _SearchFilterToolbarSavedSearchPopoverClass SearchFilterToolbarSavedSearchPopoverClass;
-
-#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ())
-#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog))
-#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG))
-#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG))
-#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-
-typedef struct _SavedSearchDialog SavedSearchDialog;
-typedef struct _SavedSearchDialogClass SavedSearchDialogClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ())
-#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand))
-#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-
-typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
-typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
-
-#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ())
-#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand))
-#define DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass))
-#define IS_DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND))
-#define IS_DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND))
-#define DELETE_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass))
-
-typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand;
-typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-#define _search_filter_toolbar_saved_search_popover_unref0(var) ((var == NULL) ? NULL : (var = (search_filter_toolbar_saved_search_popover_unref (var), NULL)))
-typedef struct _SearchFilterToolbarLabelToolItemPrivate SearchFilterToolbarLabelToolItemPrivate;
-enum {
- SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_0_PROPERTY,
- SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_NUM_PROPERTIES
-};
-static GParamSpec* search_filter_toolbar_label_tool_item_properties[SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_NUM_PROPERTIES];
-typedef struct _SearchFilterToolbarToggleActionToolButtonPrivate SearchFilterToolbarToggleActionToolButtonPrivate;
-enum {
- SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_0_PROPERTY,
- SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_NUM_PROPERTIES
-};
-static GParamSpec* search_filter_toolbar_toggle_action_tool_button_properties[SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_NUM_PROPERTIES];
-typedef struct _SearchFilterToolbarSearchBoxPrivate SearchFilterToolbarSearchBoxPrivate;
-enum {
- SEARCH_FILTER_TOOLBAR_SEARCH_BOX_0_PROPERTY,
- SEARCH_FILTER_TOOLBAR_SEARCH_BOX_NUM_PROPERTIES
-};
-static GParamSpec* search_filter_toolbar_search_box_properties[SEARCH_FILTER_TOOLBAR_SEARCH_BOX_NUM_PROPERTIES];
-typedef struct _SearchFilterToolbarRatingFilterButtonPrivate SearchFilterToolbarRatingFilterButtonPrivate;
-enum {
- SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_0_PROPERTY,
- SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_NUM_PROPERTIES
-};
-static GParamSpec* search_filter_toolbar_rating_filter_button_properties[SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_NUM_PROPERTIES];
-enum {
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_0_PROPERTY,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_NUM_PROPERTIES
-};
-static GParamSpec* search_filter_toolbar_saved_search_filter_button_properties[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_NUM_PROPERTIES];
-enum {
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_CLICKED_SIGNAL,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_NUM_SIGNALS
-};
-static guint search_filter_toolbar_saved_search_filter_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_NUM_SIGNALS] = {0};
-typedef struct _SearchFilterToolbarSavedSearchPopoverPrivate SearchFilterToolbarSavedSearchPopoverPrivate;
-
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON (search_filter_toolbar_saved_search_popover_data_button_get_type ())
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButton))
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButtonClass))
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON))
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON))
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButtonClass))
-
-typedef struct _SearchFilterToolbarSavedSearchPopoverDataButton SearchFilterToolbarSavedSearchPopoverDataButton;
-typedef struct _SearchFilterToolbarSavedSearchPopoverDataButtonClass SearchFilterToolbarSavedSearchPopoverDataButtonClass;
-
-#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ())
-#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable))
-#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE))
-#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE))
-#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-
-typedef struct _SavedSearchTable SavedSearchTable;
-typedef struct _SavedSearchTableClass SavedSearchTableClass;
-#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL)))
-#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
-typedef struct _SearchFilterToolbarSavedSearchPopoverDataButtonPrivate SearchFilterToolbarSavedSearchPopoverDataButtonPrivate;
-enum {
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_0_PROPERTY,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_NUM_PROPERTIES
-};
-static GParamSpec* search_filter_toolbar_saved_search_popover_data_button_properties[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_NUM_PROPERTIES];
-enum {
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_CLICKED_SIGNAL,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_NUM_SIGNALS
-};
-static guint search_filter_toolbar_saved_search_popover_data_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_NUM_SIGNALS] = {0};
-typedef struct _SearchFilterToolbarParamSpecSavedSearchPopover SearchFilterToolbarParamSpecSavedSearchPopover;
-enum {
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_SEARCH_ACTIVATED_SIGNAL,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_EDIT_CLICKED_SIGNAL,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DELETE_CLICKED_SIGNAL,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_ADD_CLICKED_SIGNAL,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_CLOSED_SIGNAL,
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_NUM_SIGNALS
-};
-static guint search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- SEARCH_FILTER_CRITERIA_NONE = 0,
- SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0,
- SEARCH_FILTER_CRITERIA_TEXT = 1 << 1,
- SEARCH_FILTER_CRITERIA_FLAG = 1 << 2,
- SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3,
- SEARCH_FILTER_CRITERIA_RATING = 1 << 4,
- SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5,
- SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL
-} SearchFilterCriteria;
-
-typedef enum {
- RATING_FILTER_NO_FILTER = 0,
- RATING_FILTER_REJECTED_OR_HIGHER = 1,
- RATING_FILTER_UNRATED_OR_HIGHER = 2,
- RATING_FILTER_ONE_OR_HIGHER = 3,
- RATING_FILTER_TWO_OR_HIGHER = 4,
- RATING_FILTER_THREE_OR_HIGHER = 5,
- RATING_FILTER_FOUR_OR_HIGHER = 6,
- RATING_FILTER_FIVE_OR_HIGHER = 7,
- RATING_FILTER_REJECTED_ONLY = 8,
- RATING_FILTER_UNRATED_ONLY = 9,
- RATING_FILTER_ONE_ONLY = 10,
- RATING_FILTER_TWO_ONLY = 11,
- RATING_FILTER_THREE_ONLY = 12,
- RATING_FILTER_FOUR_ONLY = 13,
- RATING_FILTER_FIVE_ONLY = 14
-} RatingFilter;
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _SearchViewFilter {
- ViewFilter parent_instance;
- SearchViewFilterPrivate * priv;
-};
-
-struct _SearchViewFilterClass {
- ViewFilterClass parent_class;
- guint (*get_criteria) (SearchViewFilter* self);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _SearchViewFilterPrivate {
- gboolean rating_allow_higher;
- Rating rating;
- RatingFilter rating_filter;
- gboolean _flagged;
- gboolean _show_media_video;
- gboolean _show_media_photos;
- gboolean _show_media_raw;
- gchar* search_filter;
- gchar** search_filter_words;
- gint search_filter_words_length1;
- gint _search_filter_words_size_;
- SavedSearch* _saved_search;
-};
-
-struct _DefaultSearchViewFilter {
- SearchViewFilter parent_instance;
- DefaultSearchViewFilterPrivate * priv;
-};
-
-struct _DefaultSearchViewFilterClass {
- SearchViewFilterClass parent_class;
-};
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _DisabledViewFilter {
- SearchViewFilter parent_instance;
- DisabledViewFilterPrivate * priv;
-};
-
-struct _DisabledViewFilterClass {
- SearchViewFilterClass parent_class;
-};
-
-struct _TextAction {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TextActionPrivate * priv;
-};
-
-struct _TextActionClass {
- GTypeClass parent_class;
- void (*finalize) (TextAction *self);
-};
-
-struct _TextActionPrivate {
- gchar* text;
- gboolean sensitive;
- gboolean visible;
-};
-
-struct _ParamSpecTextAction {
- GParamSpec parent_instance;
-};
-
-struct _SearchFilterActions {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SearchFilterActionsPrivate * priv;
-};
-
-struct _SearchFilterActionsClass {
- GTypeClass parent_class;
- void (*finalize) (SearchFilterActions *self);
-};
-
-struct _SearchFilterActionsPrivate {
- SearchFilterCriteria criteria;
- TextAction* _text;
- gboolean has_flagged;
- gboolean has_photos;
- gboolean has_videos;
- gboolean has_raw;
- gboolean can_filter_by_stars;
-};
-
-struct _CoreTracker {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CoreTrackerPrivate * priv;
-};
-
-struct _CoreTrackerClass {
- GTypeClass parent_class;
- void (*finalize) (CoreTracker *self);
- void (*updated) (CoreTracker* self);
-};
-
-struct _CoreViewTracker {
- CoreTracker parent_instance;
- CoreViewTrackerPrivate * priv;
-};
-
-struct _CoreViewTrackerClass {
- CoreTrackerClass parent_class;
-};
-
-struct _MediaViewTracker {
- CoreViewTracker parent_instance;
- MediaViewTrackerPrivate * priv;
- MediaAccumulator* all;
- MediaAccumulator* visible;
- MediaAccumulator* selected;
-};
-
-struct _MediaViewTrackerClass {
- CoreViewTrackerClass parent_class;
-};
-
-struct _CoreTrackerAccumulatorIface {
- GTypeInterface parent_iface;
- gboolean (*include) (CoreTrackerAccumulator* self, DataObject* object);
- gboolean (*uninclude) (CoreTrackerAccumulator* self, DataObject* object);
- gboolean (*altered) (CoreTrackerAccumulator* self, DataObject* object, Alteration* alteration);
-};
-
-struct _MediaAccumulator {
- GObject parent_instance;
- MediaAccumulatorPrivate * priv;
- gint total;
- gint photos;
- gint videos;
- gint raw;
- gint flagged;
-};
-
-struct _MediaAccumulatorClass {
- GObjectClass parent_class;
-};
-
-struct _CameraViewTracker {
- CoreViewTracker parent_instance;
- CameraViewTrackerPrivate * priv;
- CameraAccumulator* all;
- CameraAccumulator* visible;
- CameraAccumulator* selected;
-};
-
-struct _CameraViewTrackerClass {
- CoreViewTrackerClass parent_class;
-};
-
-struct _ParamSpecSearchFilterActions {
- GParamSpec parent_instance;
-};
-
-struct _SearchFilterToolbar {
- GtkRevealer parent_instance;
- SearchFilterToolbarPrivate * priv;
- GtkBuilder* builder;
-};
-
-struct _SearchFilterToolbarClass {
- GtkRevealerClass parent_class;
-};
-
-struct _SearchFilterToolbarPrivate {
- GtkToolbar* toolbar;
- GtkMenu* close_menu;
- GtkMenuItem* close_item;
- SearchFilterActions* actions;
- SavedSearch* saved_search;
- SearchFilterToolbarSearchBox* search_box;
- SearchFilterToolbarRatingFilterButton* rating_button;
- SearchFilterToolbarSavedSearchFilterButton* saved_search_button;
- gboolean elide_showing_again;
- SearchViewFilter* search_filter;
- SearchFilterToolbarLabelToolItem* label_type;
- SearchFilterToolbarToggleActionToolButton* toolbtn_photos;
- SearchFilterToolbarToggleActionToolButton* toolbtn_videos;
- SearchFilterToolbarToggleActionToolButton* toolbtn_raw;
- SearchFilterToolbarToggleActionToolButton* toolbtn_flag;
- GtkSeparatorToolItem* sepr_mediatype_flagged;
- GtkSeparatorToolItem* sepr_flagged_rating;
- GtkSeparatorToolItem* sepr_rating_saved;
-};
-
-struct _SearchFilterToolbarSavedSearchFilterButton {
- GtkToolItem parent_instance;
- SearchFilterToolbarSavedSearchFilterButtonPrivate * priv;
- SearchFilterToolbarSavedSearchPopover* filter_popup;
- GtkToggleButton* button;
-};
-
-struct _SearchFilterToolbarSavedSearchFilterButtonClass {
- GtkToolItemClass parent_class;
-};
-
-struct _SearchFilterToolbarLabelToolItem {
- GtkToolItem parent_instance;
- SearchFilterToolbarLabelToolItemPrivate * priv;
-};
-
-struct _SearchFilterToolbarLabelToolItemClass {
- GtkToolItemClass parent_class;
-};
-
-struct _SearchFilterToolbarLabelToolItemPrivate {
- GtkLabel* label;
-};
-
-struct _SearchFilterToolbarToggleActionToolButton {
- GtkToolItem parent_instance;
- SearchFilterToolbarToggleActionToolButtonPrivate * priv;
-};
-
-struct _SearchFilterToolbarToggleActionToolButtonClass {
- GtkToolItemClass parent_class;
-};
-
-struct _SearchFilterToolbarToggleActionToolButtonPrivate {
- GtkToggleButton* button;
-};
-
-struct _SearchFilterToolbarSearchBox {
- GtkToolItem parent_instance;
- SearchFilterToolbarSearchBoxPrivate * priv;
-};
-
-struct _SearchFilterToolbarSearchBoxClass {
- GtkToolItemClass parent_class;
-};
-
-struct _SearchFilterToolbarSearchBoxPrivate {
- GtkSearchEntry* search_entry;
- TextAction* action;
-};
-
-struct _SearchFilterToolbarRatingFilterButton {
- GtkToolItem parent_instance;
- SearchFilterToolbarRatingFilterButtonPrivate * priv;
- GtkMenuButton* button;
-};
-
-struct _SearchFilterToolbarRatingFilterButtonClass {
- GtkToolItemClass parent_class;
-};
-
-struct _SearchFilterToolbarSavedSearchPopover {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SearchFilterToolbarSavedSearchPopoverPrivate * priv;
-};
-
-struct _SearchFilterToolbarSavedSearchPopoverClass {
- GTypeClass parent_class;
- void (*finalize) (SearchFilterToolbarSavedSearchPopover *self);
-};
-
-struct _SearchFilterToolbarSavedSearchPopoverPrivate {
- GtkPopover* popover;
- GtkListBox* list_box;
- SearchFilterToolbarSavedSearchPopoverDataButton** edit_buttons;
- gint edit_buttons_length1;
- gint _edit_buttons_size_;
- SearchFilterToolbarSavedSearchPopoverDataButton** delete_buttons;
- gint delete_buttons_length1;
- gint _delete_buttons_size_;
- GtkButton* add;
-};
-
-struct _SearchFilterToolbarSavedSearchPopoverDataButton {
- GtkBin parent_instance;
- SearchFilterToolbarSavedSearchPopoverDataButtonPrivate * priv;
-};
-
-struct _SearchFilterToolbarSavedSearchPopoverDataButtonClass {
- GtkBinClass parent_class;
-};
-
-struct _SearchFilterToolbarSavedSearchPopoverDataButtonPrivate {
- GtkButton* button;
- SavedSearch* _search;
-};
-
-struct _SearchFilterToolbarParamSpecSavedSearchPopover {
- GParamSpec parent_instance;
-};
-
-
-static gpointer search_view_filter_parent_class = NULL;
-static gpointer default_search_view_filter_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-static gpointer disabled_view_filter_parent_class = NULL;
-static gpointer text_action_parent_class = NULL;
-static gpointer search_filter_actions_parent_class = NULL;
-static gpointer search_filter_toolbar_parent_class = NULL;
-static gpointer search_filter_toolbar_label_tool_item_parent_class = NULL;
-static gpointer search_filter_toolbar_toggle_action_tool_button_parent_class = NULL;
-static gpointer search_filter_toolbar_search_box_parent_class = NULL;
-static gpointer search_filter_toolbar_rating_filter_button_parent_class = NULL;
-static gpointer search_filter_toolbar_saved_search_filter_button_parent_class = NULL;
-static gpointer search_filter_toolbar_saved_search_popover_parent_class = NULL;
-static gpointer search_filter_toolbar_saved_search_popover_data_button_parent_class = NULL;
-
-GType search_filter_criteria_get_type (void) G_GNUC_CONST;
-GType rating_filter_get_type (void) G_GNUC_CONST;
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType saved_search_get_type (void) G_GNUC_CONST;
-#define SEARCH_VIEW_FILTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterPrivate))
-guint search_view_filter_get_criteria (SearchViewFilter* self);
-static guint search_view_filter_real_get_criteria (SearchViewFilter* self);
-void search_view_filter_set_rating_filter (SearchViewFilter* self,
- RatingFilter rf);
-gboolean search_view_filter_has_search_filter (SearchViewFilter* self);
-gboolean is_string_empty (const gchar* s);
-const gchar* search_view_filter_get_search_filter (SearchViewFilter* self);
-gchar** search_view_filter_get_search_filter_words (SearchViewFilter* self,
- int* result_length1);
-void search_view_filter_set_search_filter (SearchViewFilter* self,
- const gchar* text);
-static gchar** _vala_array_dup27 (gchar** self,
- int length);
-void search_view_filter_clear_search_filter (SearchViewFilter* self);
-gboolean search_view_filter_has_saved_search (SearchViewFilter* self);
-SavedSearch* search_view_filter_get_saved_search (SearchViewFilter* self);
-gboolean search_view_filter_get_rating_allow_higher (SearchViewFilter* self);
-Rating search_view_filter_get_rating (SearchViewFilter* self);
-gboolean search_view_filter_filter_by_media_type (SearchViewFilter* self);
-gboolean search_view_filter_get_show_media_video (SearchViewFilter* self);
-gboolean search_view_filter_get_show_media_photos (SearchViewFilter* self);
-gboolean search_view_filter_get_show_media_raw (SearchViewFilter* self);
-SearchViewFilter* search_view_filter_construct (GType object_type);
-ViewFilter* view_filter_construct (GType object_type);
-gboolean search_view_filter_get_flagged (SearchViewFilter* self);
-void search_view_filter_set_flagged (SearchViewFilter* self,
- gboolean value);
-void search_view_filter_set_show_media_video (SearchViewFilter* self,
- gboolean value);
-void search_view_filter_set_show_media_photos (SearchViewFilter* self,
- gboolean value);
-void search_view_filter_set_show_media_raw (SearchViewFilter* self,
- gboolean value);
-void search_view_filter_set_saved_search (SearchViewFilter* self,
- SavedSearch* value);
-static void search_view_filter_finalize (ViewFilter * obj);
-GType default_search_view_filter_get_type (void) G_GNUC_CONST;
-static gboolean default_search_view_filter_real_predicate (ViewFilter* base,
- DataView* view);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType media_source_item_get_type (void) G_GNUC_CONST;
-GType thumbnail_get_type (void) G_GNUC_CONST;
-MediaSource* thumbnail_get_media_source (Thumbnail* self);
-Rating media_source_get_rating (MediaSource* self);
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-GType video_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 photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-GType indexable_get_type (void) G_GNUC_CONST;
-const gchar* indexable_get_indexable_keywords (Indexable* self);
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-Event* media_source_get_event (MediaSource* self);
-GType tag_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self,
- MediaSource* source);
-gboolean saved_search_predicate (SavedSearch* self,
- MediaSource* source);
-DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type);
-GType disabled_view_filter_get_type (void) G_GNUC_CONST;
-static gboolean disabled_view_filter_real_predicate (ViewFilter* base,
- DataView* view);
-static guint disabled_view_filter_real_get_criteria (SearchViewFilter* base);
-DisabledViewFilter* disabled_view_filter_new (void);
-DisabledViewFilter* disabled_view_filter_construct (GType object_type);
-gpointer text_action_ref (gpointer instance);
-void text_action_unref (gpointer instance);
-GParamSpec* param_spec_text_action (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_text_action (GValue* value,
- gpointer v_object);
-void value_take_text_action (GValue* value,
- gpointer v_object);
-gpointer value_get_text_action (const GValue* value);
-GType text_action_get_type (void) G_GNUC_CONST;
-#define TEXT_ACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEXT_ACTION, TextActionPrivate))
-TextAction* text_action_new (const gchar* init);
-TextAction* text_action_construct (GType object_type,
- const gchar* init);
-void text_action_set_text (TextAction* self,
- const gchar* text);
-void text_action_clear (TextAction* self);
-gboolean text_action_is_sensitive (TextAction* self);
-void text_action_set_sensitive (TextAction* self,
- gboolean sensitive);
-gboolean text_action_is_visible (TextAction* self);
-void text_action_set_visible (TextAction* self,
- gboolean visible);
-const gchar* text_action_get_value (TextAction* self);
-static void text_action_finalize (TextAction * obj);
-gpointer search_filter_actions_ref (gpointer instance);
-void search_filter_actions_unref (gpointer instance);
-GParamSpec* param_spec_search_filter_actions (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_search_filter_actions (GValue* value,
- gpointer v_object);
-void value_take_search_filter_actions (GValue* value,
- gpointer v_object);
-gpointer value_get_search_filter_actions (const GValue* value);
-GType search_filter_actions_get_type (void) G_GNUC_CONST;
-#define SEARCH_FILTER_ACTIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsPrivate))
-static void search_filter_actions_on_action_radio (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* parameter);
-static void _search_filter_actions_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void search_filter_actions_on_rating_changed (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value);
-static void _search_filter_actions_on_rating_changed_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void search_filter_actions_on_action_toggle (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* parameter);
-static void _search_filter_actions_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void search_filter_actions_on_flagged_toggled (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value);
-static void _search_filter_actions_on_flagged_toggled_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void search_filter_actions_on_photos_toggled (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value);
-static void _search_filter_actions_on_photos_toggled_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void search_filter_actions_on_videos_toggled (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value);
-static void _search_filter_actions_on_videos_toggled_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void search_filter_actions_on_raw_toggled (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value);
-static void _search_filter_actions_on_raw_toggled_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-SearchFilterActions* search_filter_actions_new (void);
-SearchFilterActions* search_filter_actions_construct (GType object_type);
-static void search_filter_actions_register (SearchFilterActions* self);
-TextAction* search_filter_actions_get_text (SearchFilterActions* self);
-static void search_filter_actions_on_text_changed (SearchFilterActions* self,
- TextAction* action,
- const gchar* text);
-static void _search_filter_actions_on_text_changed_text_action_text_changed (TextAction* _sender,
- const gchar* text,
- gpointer self);
-SearchFilterCriteria search_filter_actions_get_criteria (SearchFilterActions* self);
-GActionEntry* search_filter_actions_get_actions (SearchFilterActions* self,
- int* result_length1);
-GSimpleAction* search_filter_actions_get_action (SearchFilterActions* self,
- const gchar* name);
-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;
-AppWindow* app_window_get_instance (void);
-void search_filter_actions_set_action_sensitive (SearchFilterActions* self,
- const gchar* name,
- gboolean sensitive);
-void search_filter_actions_reset (SearchFilterActions* self);
-GSimpleAction* search_filter_actions_get_flagged (SearchFilterActions* self);
-static GVariant* _variant_new32 (gboolean value);
-GSimpleAction* search_filter_actions_get_photos (SearchFilterActions* self);
-static GVariant* _variant_new33 (gboolean value);
-GSimpleAction* search_filter_actions_get_raw (SearchFilterActions* self);
-static GVariant* _variant_new34 (gboolean value);
-GSimpleAction* search_filter_actions_get_videos (SearchFilterActions* self);
-static GVariant* _variant_new35 (gboolean value);
-static GVariant* _variant_new36 (gchar* value);
-GSimpleAction* search_filter_actions_get_rating (SearchFilterActions* self);
-void search_filter_actions_set_sensitive_for_search_criteria (SearchFilterActions* self,
- SearchFilterCriteria criteria);
-static void search_filter_actions_update_sensitivities (SearchFilterActions* self);
-GType page_get_type (void) G_GNUC_CONST;
-void search_filter_actions_monitor_page_contents (SearchFilterActions* self,
- Page* old_page,
- Page* new_page);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-CoreViewTracker* checkerboard_page_get_view_tracker (CheckerboardPage* self);
-GType media_view_tracker_get_type (void) G_GNUC_CONST;
-static void search_filter_actions_on_media_tracker_updated (SearchFilterActions* self,
- CoreTracker* t);
-static void _search_filter_actions_on_media_tracker_updated_core_tracker_updated (CoreTracker* _sender,
- gpointer self);
-GType camera_view_tracker_get_type (void) G_GNUC_CONST;
-static void search_filter_actions_on_camera_tracker_updated (SearchFilterActions* self,
- CoreTracker* t);
-static void _search_filter_actions_on_camera_tracker_updated_core_tracker_updated (CoreTracker* _sender,
- gpointer self);
-GType media_accumulator_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType core_tracker_accumulator_get_type (void) G_GNUC_CONST;
-GType camera_accumulator_get_type (void) G_GNUC_CONST;
-gint camera_accumulator_get_photos (CameraAccumulator* self);
-gint camera_accumulator_get_videos (CameraAccumulator* self);
-gint camera_accumulator_get_raw (CameraAccumulator* self);
-static gboolean _variant_get37 (GVariant* value);
-static GVariant* _variant_new38 (gboolean value);
-gboolean search_filter_actions_get_has_photos (SearchFilterActions* self);
-gboolean search_filter_actions_get_has_videos (SearchFilterActions* self);
-gboolean search_filter_actions_get_has_raw (SearchFilterActions* self);
-gboolean search_filter_actions_get_has_flagged (SearchFilterActions* self);
-static void g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void search_filter_actions_finalize (SearchFilterActions * obj);
-GType search_filter_toolbar_get_type (void) G_GNUC_CONST;
-GType search_filter_toolbar_search_box_get_type (void) G_GNUC_CONST;
-GType search_filter_toolbar_rating_filter_button_get_type (void) G_GNUC_CONST;
-GType search_filter_toolbar_saved_search_filter_button_get_type (void) G_GNUC_CONST;
-static GType search_filter_toolbar_label_tool_item_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static GType search_filter_toolbar_toggle_action_tool_button_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define SEARCH_FILTER_TOOLBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarPrivate))
-static void search_filter_toolbar_on_media_context_changed (SearchFilterToolbar* self,
- gboolean has_photos,
- gboolean has_videos,
- gboolean has_raw,
- gboolean has_flagged);
-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);
-static void search_filter_toolbar_on_flagged_toggled (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled (SearchFilterActions* _sender,
- gboolean on,
- gpointer self);
-static void search_filter_toolbar_on_photos_toggled (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled (SearchFilterActions* _sender,
- gboolean on,
- gpointer self);
-static void search_filter_toolbar_on_videos_toggled (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled (SearchFilterActions* _sender,
- gboolean on,
- gpointer self);
-static void search_filter_toolbar_on_raw_toggled (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled (SearchFilterActions* _sender,
- gboolean on,
- gpointer self);
-static void search_filter_toolbar_on_rating_changed (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed (SearchFilterActions* _sender,
- RatingFilter filter,
- gpointer self);
-static void search_filter_toolbar_on_search_text_changed (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed (SearchFilterActions* _sender,
- const gchar* text,
- gpointer self);
-static void search_filter_toolbar_on_criteria_changed (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed (SearchFilterActions* _sender,
- gpointer self);
-static gboolean search_filter_toolbar_on_context_menu_requested (SearchFilterToolbar* self,
- gint x,
- gint y,
- gint button);
-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);
-SearchFilterToolbarSavedSearchFilterButton* search_filter_toolbar_saved_search_filter_button_new (void);
-SearchFilterToolbarSavedSearchFilterButton* search_filter_toolbar_saved_search_filter_button_construct (GType object_type);
-#define SEARCH_FILTER_TOOLBAR_FILTER_BUTTON_MARGIN 12
-#define SEARCH_FILTER_TOOLBAR_FILTER_ICON_STAR_SCALE 0.65f
-#define SEARCH_FILTER_TOOLBAR_FILTER_ICON_SCALE 0.75f
-#define SEARCH_FILTER_TOOLBAR_FILTER_ICON_BASE_WIDTH 30
-#define SEARCH_FILTER_TOOLBAR_FILTER_ICON_PLUS_WIDTH 20
-SearchFilterToolbar* search_filter_toolbar_new (SearchFilterActions* actions);
-SearchFilterToolbar* search_filter_toolbar_construct (GType object_type,
- SearchFilterActions* actions);
-SearchFilterToolbarSearchBox* search_filter_toolbar_search_box_new (TextAction* action);
-SearchFilterToolbarSearchBox* search_filter_toolbar_search_box_construct (GType object_type,
- TextAction* action);
-gchar* resources_get_ui (const gchar* filename);
-void app_window_panic (const gchar* msg);
-static void search_filter_toolbar_on_context_menu_close_chosen (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_context_menu_close_chosen_gtk_menu_item_activate (GtkMenuItem* _sender,
- gpointer self);
-static SearchFilterToolbarLabelToolItem* search_filter_toolbar_label_tool_item_new (const gchar* s,
- gint left_padding,
- gint right_padding);
-static SearchFilterToolbarLabelToolItem* search_filter_toolbar_label_tool_item_construct (GType object_type,
- const gchar* s,
- gint left_padding,
- gint right_padding);
-static SearchFilterToolbarToggleActionToolButton* search_filter_toolbar_toggle_action_tool_button_new (const gchar* action);
-static SearchFilterToolbarToggleActionToolButton* search_filter_toolbar_toggle_action_tool_button_construct (GType object_type,
- const gchar* action);
-static void search_filter_toolbar_toggle_action_tool_button_set_label (SearchFilterToolbarToggleActionToolButton* self,
- const gchar* label);
-SearchFilterToolbarRatingFilterButton* search_filter_toolbar_rating_filter_button_new (GMenuModel* model);
-SearchFilterToolbarRatingFilterButton* search_filter_toolbar_rating_filter_button_construct (GType object_type,
- GMenuModel* model);
-void search_filter_toolbar_rating_filter_button_set_label (SearchFilterToolbarRatingFilterButton* self,
- const gchar* label);
-void search_filter_toolbar_saved_search_filter_button_set_label (SearchFilterToolbarSavedSearchFilterButton* self,
- const gchar* label);
-static void search_filter_toolbar_on_saved_search_button_clicked (SearchFilterToolbar* self);
-static void _search_filter_toolbar_on_saved_search_button_clicked_search_filter_toolbar_saved_search_filter_button_clicked (SearchFilterToolbarSavedSearchFilterButton* _sender,
- gpointer self);
-static void search_filter_toolbar_toggle_action_tool_button_set_icon_name (SearchFilterToolbarToggleActionToolButton* self,
- const gchar* icon_name);
-#define RESOURCES_ICON_FILTER_PHOTOS "filter-photos"
-#define RESOURCES_ICON_FILTER_PHOTOS_DISABLED "filter-photos-disabled"
-#define RESOURCES_ICON_FILTER_VIDEOS "filter-videos"
-#define RESOURCES_ICON_FILTER_VIDEOS_DISABLED "filter-videos-disabled"
-#define RESOURCES_ICON_FILTER_RAW "filter-raw"
-#define RESOURCES_ICON_FILTER_RAW_DISABLED "filter-raw-disabled"
-#define RESOURCES_ICON_FILTER_FLAGGED "filter-flagged"
-#define RESOURCES_ICON_FILTER_FLAGGED_DISABLED "filter-flagged-disabled"
-LibraryWindow* library_window_get_app (void);
-static GVariant* _variant_new39 (gboolean value);
-void search_filter_toolbar_update (SearchFilterToolbar* self);
-static GVariant* _variant_new40 (gboolean value);
-void search_filter_toolbar_set_view_filter (SearchFilterToolbar* self,
- SearchViewFilter* search_filter);
-void search_filter_toolbar_unset_view_filter (SearchFilterToolbar* self);
-void library_window_show_search_bar (LibraryWindow* self,
- gboolean display);
-void search_filter_toolbar_rating_filter_button_set_filter_icon (SearchFilterToolbarRatingFilterButton* self,
- RatingFilter filter);
-static void search_filter_toolbar_on_savedsearch_selected (SearchFilterToolbar* self,
- SavedSearch* saved_search);
-static void search_filter_toolbar_disable_savedsearch (SearchFilterToolbar* self);
-static void search_filter_toolbar_edit_dialog (SearchFilterToolbar* self,
- SavedSearch* search);
-gpointer search_filter_toolbar_saved_search_popover_ref (gpointer instance);
-void search_filter_toolbar_saved_search_popover_unref (gpointer instance);
-GParamSpec* search_filter_toolbar_param_spec_saved_search_popover (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void search_filter_toolbar_value_set_saved_search_popover (GValue* value,
- gpointer v_object);
-void search_filter_toolbar_value_take_saved_search_popover (GValue* value,
- gpointer v_object);
-gpointer search_filter_toolbar_value_get_saved_search_popover (const GValue* value);
-GType search_filter_toolbar_saved_search_popover_get_type (void) G_GNUC_CONST;
-void search_filter_toolbar_saved_search_popover_hide (SearchFilterToolbarSavedSearchPopover* self);
-GType saved_search_dialog_get_type (void) G_GNUC_CONST;
-SavedSearchDialog* saved_search_dialog_new_edit_existing (SavedSearch* saved_search);
-SavedSearchDialog* saved_search_dialog_construct_edit_existing (GType object_type,
- SavedSearch* saved_search);
-void saved_search_dialog_show (SavedSearchDialog* self);
-static void search_filter_toolbar_delete_dialog (SearchFilterToolbar* self,
- SavedSearch* search);
-gboolean dialogs_confirm_delete_saved_search (SavedSearch* search);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* app_window_get_command_manager (void);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search);
-DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type,
- SavedSearch* search);
-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;
-static void search_filter_toolbar_add_dialog (SearchFilterToolbar* self);
-SavedSearchDialog* saved_search_dialog_new (void);
-SavedSearchDialog* saved_search_dialog_construct (GType object_type);
-static void search_filter_toolbar_on_popover_closed (SearchFilterToolbar* self);
-void search_filter_toolbar_saved_search_filter_button_set_active (SearchFilterToolbarSavedSearchFilterButton* self,
- gboolean active);
-static void _search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked (SearchFilterToolbarSavedSearchPopover* _sender,
- SavedSearch* search,
- gpointer self);
-static void _search_filter_toolbar_on_savedsearch_selected_search_filter_toolbar_saved_search_popover_search_activated (SearchFilterToolbarSavedSearchPopover* _sender,
- SavedSearch* search,
- gpointer self);
-static void _search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked (SearchFilterToolbarSavedSearchPopover* _sender,
- SavedSearch* search,
- gpointer self);
-static void _search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked (SearchFilterToolbarSavedSearchPopover* _sender,
- gpointer self);
-static void _search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed (SearchFilterToolbarSavedSearchPopover* _sender,
- gpointer self);
-SearchFilterToolbarSavedSearchPopover* search_filter_toolbar_saved_search_popover_new (GtkWidget* relative_to);
-SearchFilterToolbarSavedSearchPopover* search_filter_toolbar_saved_search_popover_construct (GType object_type,
- GtkWidget* relative_to);
-void search_filter_toolbar_saved_search_popover_show_all (SearchFilterToolbarSavedSearchPopover* self);
-void search_filter_toolbar_take_focus (SearchFilterToolbar* self);
-void search_filter_toolbar_search_box_get_focus (SearchFilterToolbarSearchBox* self);
-#define SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItemPrivate))
-static void search_filter_toolbar_label_tool_item_finalize (GObject * obj);
-#define SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButtonPrivate))
-static void search_filter_toolbar_toggle_action_tool_button_finalize (GObject * obj);
-#define SEARCH_FILTER_TOOLBAR_SEARCH_BOX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBoxPrivate))
-static void search_filter_toolbar_search_box_on_action_text_changed (SearchFilterToolbarSearchBox* self,
- const gchar* text);
-static void _search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed (TextAction* _sender,
- const gchar* text,
- gpointer self);
-static void search_filter_toolbar_search_box_on_sensitivity_changed (SearchFilterToolbarSearchBox* self,
- gboolean sensitive);
-static void _search_filter_toolbar_search_box_on_sensitivity_changed_text_action_sensitivity_changed (TextAction* _sender,
- gboolean sensitive,
- gpointer self);
-static void search_filter_toolbar_search_box_on_visibility_changed (SearchFilterToolbarSearchBox* self,
- gboolean visible);
-static void _search_filter_toolbar_search_box_on_visibility_changed_text_action_visibility_changed (TextAction* _sender,
- gboolean visible,
- gpointer self);
-static void search_filter_toolbar_search_box_on_entry_changed (SearchFilterToolbarSearchBox* self);
-static void _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text (GtkEntryBuffer* _sender,
- guint position,
- guint n_chars,
- gpointer self);
-static void _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text (GtkEntryBuffer* _sender,
- guint position,
- const gchar* chars,
- guint n_chars,
- gpointer self);
-static gboolean search_filter_toolbar_search_box_on_escape_key (SearchFilterToolbarSearchBox* self,
- GdkEventKey* e);
-static gboolean _search_filter_toolbar_search_box_on_escape_key_gtk_widget_key_press_event (GtkWidget* _sender,
- GdkEventKey* event,
- gpointer self);
-static void search_filter_toolbar_search_box_set_nullable_text (SearchFilterToolbarSearchBox* self,
- const gchar* text);
-static void search_filter_toolbar_search_box_finalize (GObject * obj);
-static GtkWidget* search_filter_toolbar_rating_filter_button_get_filter_icon (SearchFilterToolbarRatingFilterButton* self,
- RatingFilter filter);
-#define RESOURCES_ICON_FILTER_REJECTED_OR_BETTER "all-rejected.png"
-#define RESOURCES_ICON_RATING_REJECTED "rejected.svg"
-#define RESOURCES_ICON_FILTER_UNRATED_OR_BETTER "shotwell-16.png"
-GdkPixbuf* resources_load_icon (const gchar* name,
- gint scale);
-static gint search_filter_toolbar_rating_filter_button_get_filter_icon_size (SearchFilterToolbarRatingFilterButton* self,
- RatingFilter filter);
-#define RESOURCES_ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE 32
-#define RESOURCES_ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE 16
-static gint search_filter_toolbar_rating_filter_button_get_filter_button_size (SearchFilterToolbarRatingFilterButton* self,
- RatingFilter filter);
-gchar* resources_get_rating_filter_tooltip (RatingFilter filter);
-static void search_filter_toolbar_rating_filter_button_finalize (GObject * obj);
-static void search_filter_toolbar_saved_search_filter_button_on_clicked (SearchFilterToolbarSavedSearchFilterButton* self);
-static void _search_filter_toolbar_saved_search_filter_button_on_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-void search_filter_toolbar_saved_search_filter_button_restyle (SearchFilterToolbarSavedSearchFilterButton* self);
-static void search_filter_toolbar_saved_search_filter_button_finalize (GObject * obj);
-static GType search_filter_toolbar_saved_search_popover_data_button_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopoverPrivate))
-static void search_filter_toolbar_saved_search_popover_on_edit_click (SearchFilterToolbarSavedSearchPopover* self,
- SavedSearch* search);
-static void _search_filter_toolbar_saved_search_popover_on_edit_click_search_filter_toolbar_saved_search_popover_data_button_clicked (SearchFilterToolbarSavedSearchPopoverDataButton* _sender,
- SavedSearch* search,
- gpointer self);
-static void search_filter_toolbar_saved_search_popover_on_delete_click (SearchFilterToolbarSavedSearchPopover* self,
- SavedSearch* search);
-static void _search_filter_toolbar_saved_search_popover_on_delete_click_search_filter_toolbar_saved_search_popover_data_button_clicked (SearchFilterToolbarSavedSearchPopoverDataButton* _sender,
- SavedSearch* search,
- gpointer self);
-static void search_filter_toolbar_saved_search_popover_on_add_click (SearchFilterToolbarSavedSearchPopover* self);
-static void _search_filter_toolbar_saved_search_popover_on_add_click_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void search_filter_toolbar_saved_search_popover_on_activate_row (SearchFilterToolbarSavedSearchPopover* self,
- GtkListBoxRow* row);
-static void _search_filter_toolbar_saved_search_popover_on_activate_row_gtk_list_box_row_activated (GtkListBox* _sender,
- GtkListBoxRow* row,
- gpointer self);
-static void search_filter_toolbar_saved_search_popover_on_popover_closed (SearchFilterToolbarSavedSearchPopover* self);
-static void _search_filter_toolbar_saved_search_popover_on_popover_closed_gtk_popover_closed (GtkPopover* _sender,
- gpointer self);
-gpointer saved_search_table_ref (gpointer instance);
-void saved_search_table_unref (gpointer instance);
-GParamSpec* param_spec_saved_search_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_saved_search_table (GValue* value,
- gpointer v_object);
-void value_take_saved_search_table (GValue* value,
- gpointer v_object);
-gpointer value_get_saved_search_table (const GValue* value);
-GType saved_search_table_get_type (void) G_GNUC_CONST;
-SavedSearchTable* saved_search_table_get_instance (void);
-GeeCollection* saved_search_table_get_all (SavedSearchTable* self);
-gchar* data_object_get_name (DataObject* self);
-static SearchFilterToolbarSavedSearchPopoverDataButton* search_filter_toolbar_saved_search_popover_data_button_new (SavedSearch* search,
- const gchar* name);
-static SearchFilterToolbarSavedSearchPopoverDataButton* search_filter_toolbar_saved_search_popover_data_button_construct (GType object_type,
- SavedSearch* search,
- const gchar* name);
-static void _vala_array_add133 (SearchFilterToolbarSavedSearchPopoverDataButton** * array,
- int* length,
- int* size,
- SearchFilterToolbarSavedSearchPopoverDataButton* value);
-static void _vala_array_add134 (SearchFilterToolbarSavedSearchPopoverDataButton** * array,
- int* length,
- int* size,
- SearchFilterToolbarSavedSearchPopoverDataButton* value);
-void search_filter_toolbar_saved_search_popover_restyle (SearchFilterToolbarSavedSearchPopover* self);
-static void search_filter_toolbar_saved_search_popover_data_button_restyle (SearchFilterToolbarSavedSearchPopoverDataButton* self);
-static gboolean search_filter_toolbar_saved_search_popover_is_search_row (SearchFilterToolbarSavedSearchPopover* self,
- GtkListBoxRow* row);
-static SavedSearch* search_filter_toolbar_saved_search_popover_get_search (SearchFilterToolbarSavedSearchPopover* self,
- GtkListBoxRow* row);
-static SavedSearch* search_filter_toolbar_saved_search_popover_data_button_get_search (SearchFilterToolbarSavedSearchPopoverDataButton* self);
-#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButtonPrivate))
-static void search_filter_toolbar_saved_search_popover_data_button_on_click (SearchFilterToolbarSavedSearchPopoverDataButton* self);
-static void _search_filter_toolbar_saved_search_popover_data_button_on_click_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void search_filter_toolbar_saved_search_popover_data_button_set_search (SearchFilterToolbarSavedSearchPopoverDataButton* self,
- SavedSearch* value);
-static void search_filter_toolbar_saved_search_popover_data_button_finalize (GObject * obj);
-static void _vala_search_filter_toolbar_saved_search_popover_data_button_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_search_filter_toolbar_saved_search_popover_data_button_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-static void search_filter_toolbar_saved_search_popover_finalize (SearchFilterToolbarSavedSearchPopover * obj);
-static void search_filter_toolbar_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 gint _vala_array_length (gpointer array);
-
-static const GActionEntry SEARCH_FILTER_ACTIONS_entries[5] = {{"display.rating", _search_filter_actions_on_action_radio_gsimple_action_activate_callback, "s", "'2'", _search_filter_actions_on_rating_changed_gsimple_action_change_state_callback}, {"display.flagged", _search_filter_actions_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _search_filter_actions_on_flagged_toggled_gsimple_action_change_state_callback}, {"display.photos", _search_filter_actions_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _search_filter_actions_on_photos_toggled_gsimple_action_change_state_callback}, {"display.videos", _search_filter_actions_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _search_filter_actions_on_videos_toggled_gsimple_action_change_state_callback}, {"display.raw", _search_filter_actions_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _search_filter_actions_on_raw_toggled_gsimple_action_change_state_callback}};
-
-GType
-search_filter_criteria_get_type (void)
-{
- static volatile gsize search_filter_criteria_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_criteria_type_id__volatile)) {
- static const GFlagsValue values[] = {{SEARCH_FILTER_CRITERIA_NONE, "SEARCH_FILTER_CRITERIA_NONE", "none"}, {SEARCH_FILTER_CRITERIA_RECURSIVE, "SEARCH_FILTER_CRITERIA_RECURSIVE", "recursive"}, {SEARCH_FILTER_CRITERIA_TEXT, "SEARCH_FILTER_CRITERIA_TEXT", "text"}, {SEARCH_FILTER_CRITERIA_FLAG, "SEARCH_FILTER_CRITERIA_FLAG", "flag"}, {SEARCH_FILTER_CRITERIA_MEDIA, "SEARCH_FILTER_CRITERIA_MEDIA", "media"}, {SEARCH_FILTER_CRITERIA_RATING, "SEARCH_FILTER_CRITERIA_RATING", "rating"}, {SEARCH_FILTER_CRITERIA_SAVEDSEARCH, "SEARCH_FILTER_CRITERIA_SAVEDSEARCH", "savedsearch"}, {SEARCH_FILTER_CRITERIA_ALL, "SEARCH_FILTER_CRITERIA_ALL", "all"}, {0, NULL, NULL}};
- GType search_filter_criteria_type_id;
- search_filter_criteria_type_id = g_flags_register_static ("SearchFilterCriteria", values);
- g_once_init_leave (&search_filter_criteria_type_id__volatile, search_filter_criteria_type_id);
- }
- return search_filter_criteria_type_id__volatile;
-}
-
-
-GType
-rating_filter_get_type (void)
-{
- static volatile gsize rating_filter_type_id__volatile = 0;
- if (g_once_init_enter (&rating_filter_type_id__volatile)) {
- static const GEnumValue values[] = {{RATING_FILTER_NO_FILTER, "RATING_FILTER_NO_FILTER", "no-filter"}, {RATING_FILTER_REJECTED_OR_HIGHER, "RATING_FILTER_REJECTED_OR_HIGHER", "rejected-or-higher"}, {RATING_FILTER_UNRATED_OR_HIGHER, "RATING_FILTER_UNRATED_OR_HIGHER", "unrated-or-higher"}, {RATING_FILTER_ONE_OR_HIGHER, "RATING_FILTER_ONE_OR_HIGHER", "one-or-higher"}, {RATING_FILTER_TWO_OR_HIGHER, "RATING_FILTER_TWO_OR_HIGHER", "two-or-higher"}, {RATING_FILTER_THREE_OR_HIGHER, "RATING_FILTER_THREE_OR_HIGHER", "three-or-higher"}, {RATING_FILTER_FOUR_OR_HIGHER, "RATING_FILTER_FOUR_OR_HIGHER", "four-or-higher"}, {RATING_FILTER_FIVE_OR_HIGHER, "RATING_FILTER_FIVE_OR_HIGHER", "five-or-higher"}, {RATING_FILTER_REJECTED_ONLY, "RATING_FILTER_REJECTED_ONLY", "rejected-only"}, {RATING_FILTER_UNRATED_ONLY, "RATING_FILTER_UNRATED_ONLY", "unrated-only"}, {RATING_FILTER_ONE_ONLY, "RATING_FILTER_ONE_ONLY", "one-only"}, {RATING_FILTER_TWO_ONLY, "RATING_FILTER_TWO_ONLY", "two-only"}, {RATING_FILTER_THREE_ONLY, "RATING_FILTER_THREE_ONLY", "three-only"}, {RATING_FILTER_FOUR_ONLY, "RATING_FILTER_FOUR_ONLY", "four-only"}, {RATING_FILTER_FIVE_ONLY, "RATING_FILTER_FIVE_ONLY", "five-only"}, {0, NULL, NULL}};
- GType rating_filter_type_id;
- rating_filter_type_id = g_enum_register_static ("RatingFilter", values);
- g_once_init_leave (&rating_filter_type_id__volatile, rating_filter_type_id);
- }
- return rating_filter_type_id__volatile;
-}
-
-
-static guint
-search_view_filter_real_get_criteria (SearchViewFilter* self)
-{
- guint _tmp0_ = 0U;
-#line 65 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_critical ("Type `%s' does not implement abstract method `search_view_filter_get_criteria'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 65 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return _tmp0_;
-#line 1751 "SearchFilter.c"
-}
-
-
-guint
-search_view_filter_get_criteria (SearchViewFilter* self)
-{
-#line 65 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), 0U);
-#line 65 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return SEARCH_VIEW_FILTER_GET_CLASS (self)->get_criteria (self);
-#line 1762 "SearchFilter.c"
-}
-
-
-void
-search_view_filter_set_rating_filter (SearchViewFilter* self,
- RatingFilter rf)
-{
- RatingFilter _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (self));
-#line 68 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_filter = rf;
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->rating_filter;
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- switch (_tmp0_) {
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_REJECTED_ONLY:
-#line 1781 "SearchFilter.c"
- {
-#line 71 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_REJECTED;
-#line 72 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = FALSE;
-#line 73 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1789 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_REJECTED_OR_HIGHER:
-#line 1793 "SearchFilter.c"
- {
-#line 76 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_REJECTED;
-#line 77 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = TRUE;
-#line 78 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1801 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_ONE_OR_HIGHER:
-#line 1805 "SearchFilter.c"
- {
-#line 81 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_ONE;
-#line 82 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = TRUE;
-#line 83 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1813 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_ONE_ONLY:
-#line 1817 "SearchFilter.c"
- {
-#line 86 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_ONE;
-#line 87 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = FALSE;
-#line 88 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1825 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_TWO_OR_HIGHER:
-#line 1829 "SearchFilter.c"
- {
-#line 91 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_TWO;
-#line 92 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = TRUE;
-#line 93 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1837 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_TWO_ONLY:
-#line 1841 "SearchFilter.c"
- {
-#line 96 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_TWO;
-#line 97 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = FALSE;
-#line 98 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1849 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_THREE_OR_HIGHER:
-#line 1853 "SearchFilter.c"
- {
-#line 101 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_THREE;
-#line 102 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = TRUE;
-#line 103 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1861 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_THREE_ONLY:
-#line 1865 "SearchFilter.c"
- {
-#line 106 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_THREE;
-#line 107 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = FALSE;
-#line 108 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1873 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FOUR_OR_HIGHER:
-#line 1877 "SearchFilter.c"
- {
-#line 111 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_FOUR;
-#line 112 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = TRUE;
-#line 113 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1885 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FOUR_ONLY:
-#line 1889 "SearchFilter.c"
- {
-#line 116 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_FOUR;
-#line 117 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = FALSE;
-#line 118 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1897 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FIVE_OR_HIGHER:
-#line 1901 "SearchFilter.c"
- {
-#line 121 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_FIVE;
-#line 122 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = TRUE;
-#line 123 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1909 "SearchFilter.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FIVE_ONLY:
-#line 1913 "SearchFilter.c"
- {
-#line 126 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_FIVE;
-#line 127 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = FALSE;
-#line 128 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1921 "SearchFilter.c"
- }
- default:
-#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_UNRATED_OR_HIGHER:
-#line 1926 "SearchFilter.c"
- {
-#line 132 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_UNRATED;
-#line 133 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = TRUE;
-#line 134 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 1934 "SearchFilter.c"
- }
- }
-}
-
-
-gboolean
-search_view_filter_has_search_filter (SearchViewFilter* self)
-{
- gboolean result = FALSE;
- const gchar* _tmp0_;
-#line 138 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE);
-#line 139 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->search_filter;
-#line 139 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = !is_string_empty (_tmp0_);
-#line 139 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 1953 "SearchFilter.c"
-}
-
-
-const gchar*
-search_view_filter_get_search_filter (SearchViewFilter* self)
-{
- const gchar* result = NULL;
- const gchar* _tmp0_;
-#line 142 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), NULL);
-#line 143 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->search_filter;
-#line 143 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 143 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 1970 "SearchFilter.c"
-}
-
-
-gchar**
-search_view_filter_get_search_filter_words (SearchViewFilter* self,
- int* result_length1)
-{
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
-#line 146 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), NULL);
-#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->search_filter_words;
-#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0__length1 = self->priv->search_filter_words_length1;
-#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_;
-#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (result_length1) {
-#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *result_length1 = _tmp1__length1;
-#line 1997 "SearchFilter.c"
- }
-#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp1_;
-#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2003 "SearchFilter.c"
-}
-
-
-static gchar**
-_vala_array_dup27 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = g_new0 (gchar*, length + 1);
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- for (i = 0; i < length; i++) {
-#line 2017 "SearchFilter.c"
- gchar* _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result[i] = _tmp0_;
-#line 2023 "SearchFilter.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2027 "SearchFilter.c"
-}
-
-
-void
-search_view_filter_set_search_filter (SearchViewFilter* self,
- const gchar* text)
-{
- gchar* _tmp0_ = NULL;
- gchar* _tmp2_;
- gchar** _tmp3_ = NULL;
- gint _tmp3__length1 = 0;
- gint __tmp3__size_ = 0;
- const gchar* _tmp4_;
- gchar** _tmp8_;
- gint _tmp8__length1;
-#line 150 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (self));
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!is_string_empty (text)) {
-#line 2047 "SearchFilter.c"
- gchar* _tmp1_;
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = g_utf8_strdown (text, (gssize) -1);
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (_tmp0_);
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _tmp1_;
-#line 2055 "SearchFilter.c"
- } else {
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (_tmp0_);
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = NULL;
-#line 2061 "SearchFilter.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = g_strdup (_tmp0_);
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (self->priv->search_filter);
-#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter = _tmp2_;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->search_filter;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp4_ != NULL) {
-#line 2073 "SearchFilter.c"
- const gchar* _tmp5_;
- gchar** _tmp6_;
- gchar** _tmp7_;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->search_filter;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = _tmp6_ = g_strsplit (_tmp5_, " ", 0);
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp7_;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3__length1 = _vala_array_length (_tmp6_);
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- __tmp3__size_ = _tmp3__length1;
-#line 2089 "SearchFilter.c"
- } else {
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = NULL;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3__length1 = 0;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- __tmp3__size_ = _tmp3__length1;
-#line 2099 "SearchFilter.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = (_tmp3_ != NULL) ? _vala_array_dup27 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_);
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8__length1 = _tmp3__length1;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words = (_vala_array_free (self->priv->search_filter_words, self->priv->search_filter_words_length1, (GDestroyNotify) g_free), NULL);
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words = _tmp8_;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words_length1 = _tmp8__length1;
-#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_search_filter_words_size_ = self->priv->search_filter_words_length1;
-#line 150 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
-#line 150 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (_tmp0_);
-#line 2117 "SearchFilter.c"
-}
-
-
-void
-search_view_filter_clear_search_filter (SearchViewFilter* self)
-{
-#line 155 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (self));
-#line 156 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (self->priv->search_filter);
-#line 156 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter = NULL;
-#line 157 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words = (_vala_array_free (self->priv->search_filter_words, self->priv->search_filter_words_length1, (GDestroyNotify) g_free), NULL);
-#line 157 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words = NULL;
-#line 157 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words_length1 = 0;
-#line 157 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_search_filter_words_size_ = self->priv->search_filter_words_length1;
-#line 2138 "SearchFilter.c"
-}
-
-
-gboolean
-search_view_filter_has_saved_search (SearchViewFilter* self)
-{
- gboolean result = FALSE;
- SavedSearch* _tmp0_;
-#line 160 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE);
-#line 161 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_saved_search;
-#line 161 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_ != NULL;
-#line 161 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2155 "SearchFilter.c"
-}
-
-
-gboolean
-search_view_filter_get_rating_allow_higher (SearchViewFilter* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 164 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE);
-#line 165 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->rating_allow_higher;
-#line 165 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 165 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2172 "SearchFilter.c"
-}
-
-
-Rating
-search_view_filter_get_rating (SearchViewFilter* self)
-{
- Rating result = 0;
- Rating _tmp0_;
-#line 168 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), 0);
-#line 169 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->rating;
-#line 169 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 169 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2189 "SearchFilter.c"
-}
-
-
-gboolean
-search_view_filter_filter_by_media_type (SearchViewFilter* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
-#line 172 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE);
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->_show_media_video;
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp3_) {
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = TRUE;
-#line 2209 "SearchFilter.c"
- } else {
- gboolean _tmp4_;
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->_show_media_photos;
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = _tmp4_;
-#line 2216 "SearchFilter.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp2_) {
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = TRUE;
-#line 2222 "SearchFilter.c"
- } else {
- gboolean _tmp5_;
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->_show_media_raw;
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp5_;
-#line 2229 "SearchFilter.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp1_) {
-#line 2233 "SearchFilter.c"
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_;
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = self->priv->_show_media_video;
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp8_) {
-#line 2241 "SearchFilter.c"
- gboolean _tmp9_;
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = self->priv->_show_media_photos;
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = _tmp9_;
-#line 2247 "SearchFilter.c"
- } else {
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = FALSE;
-#line 2251 "SearchFilter.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp7_) {
-#line 2255 "SearchFilter.c"
- gboolean _tmp10_;
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = self->priv->_show_media_raw;
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _tmp10_;
-#line 2261 "SearchFilter.c"
- } else {
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = FALSE;
-#line 2265 "SearchFilter.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = !_tmp6_;
-#line 2269 "SearchFilter.c"
- } else {
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = FALSE;
-#line 2273 "SearchFilter.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2279 "SearchFilter.c"
-}
-
-
-SearchViewFilter*
-search_view_filter_construct (GType object_type)
-{
- SearchViewFilter* self = NULL;
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchViewFilter*) view_filter_construct (object_type);
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 2291 "SearchFilter.c"
-}
-
-
-gboolean
-search_view_filter_get_flagged (SearchViewFilter* self)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE);
-#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_flagged;
-#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2308 "SearchFilter.c"
-}
-
-
-void
-search_view_filter_set_flagged (SearchViewFilter* self,
- gboolean value)
-{
-#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (self));
-#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_flagged = value;
-#line 2320 "SearchFilter.c"
-}
-
-
-gboolean
-search_view_filter_get_show_media_video (SearchViewFilter* self)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE);
-#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_show_media_video;
-#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2337 "SearchFilter.c"
-}
-
-
-void
-search_view_filter_set_show_media_video (SearchViewFilter* self,
- gboolean value)
-{
-#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (self));
-#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_show_media_video = value;
-#line 2349 "SearchFilter.c"
-}
-
-
-gboolean
-search_view_filter_get_show_media_photos (SearchViewFilter* self)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE);
-#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_show_media_photos;
-#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2366 "SearchFilter.c"
-}
-
-
-void
-search_view_filter_set_show_media_photos (SearchViewFilter* self,
- gboolean value)
-{
-#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (self));
-#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_show_media_photos = value;
-#line 2378 "SearchFilter.c"
-}
-
-
-gboolean
-search_view_filter_get_show_media_raw (SearchViewFilter* self)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE);
-#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_show_media_raw;
-#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2395 "SearchFilter.c"
-}
-
-
-void
-search_view_filter_set_show_media_raw (SearchViewFilter* self,
- gboolean value)
-{
-#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (self));
-#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_show_media_raw = value;
-#line 2407 "SearchFilter.c"
-}
-
-
-SavedSearch*
-search_view_filter_get_saved_search (SearchViewFilter* self)
-{
- SavedSearch* result;
- SavedSearch* _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), NULL);
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_saved_search;
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2424 "SearchFilter.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self ? g_object_ref (self) : NULL;
-#line 2433 "SearchFilter.c"
-}
-
-
-void
-search_view_filter_set_saved_search (SearchViewFilter* self,
- SavedSearch* value)
-{
- SavedSearch* _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (self));
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->_saved_search);
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_saved_search = _tmp0_;
-#line 2450 "SearchFilter.c"
-}
-
-
-static void
-search_view_filter_class_init (SearchViewFilterClass * klass)
-{
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ((ViewFilterClass *) klass)->finalize = search_view_filter_finalize;
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (SearchViewFilterPrivate));
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) search_view_filter_real_get_criteria;
-#line 2465 "SearchFilter.c"
-}
-
-
-static void
-search_view_filter_instance_init (SearchViewFilter * self)
-{
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = SEARCH_VIEW_FILTER_GET_PRIVATE (self);
-#line 41 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_allow_higher = TRUE;
-#line 44 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating = RATING_UNRATED;
-#line 45 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_filter = RATING_FILTER_UNRATED_OR_HIGHER;
-#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_flagged = FALSE;
-#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_show_media_video = TRUE;
-#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_show_media_photos = TRUE;
-#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_show_media_raw = TRUE;
-#line 56 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter = NULL;
-#line 57 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words = NULL;
-#line 57 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words_length1 = 0;
-#line 57 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_search_filter_words_size_ = self->priv->search_filter_words_length1;
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_saved_search = NULL;
-#line 2498 "SearchFilter.c"
-}
-
-
-static void
-search_view_filter_finalize (ViewFilter * obj)
-{
- SearchViewFilter * self;
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter);
-#line 56 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (self->priv->search_filter);
-#line 57 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter_words = (_vala_array_free (self->priv->search_filter_words, self->priv->search_filter_words_length1, (GDestroyNotify) g_free), NULL);
-#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->_saved_search);
-#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- VIEW_FILTER_CLASS (search_view_filter_parent_class)->finalize (obj);
-#line 2516 "SearchFilter.c"
-}
-
-
-GType
-search_view_filter_get_type (void)
-{
- static volatile gsize search_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&search_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchViewFilter), 0, (GInstanceInitFunc) search_view_filter_instance_init, NULL };
- GType search_view_filter_type_id;
- search_view_filter_type_id = g_type_register_static (TYPE_VIEW_FILTER, "SearchViewFilter", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&search_view_filter_type_id__volatile, search_view_filter_type_id);
- }
- return search_view_filter_type_id__volatile;
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2550 "SearchFilter.c"
-}
-
-
-static gboolean
-default_search_view_filter_real_predicate (ViewFilter* base,
- DataView* view)
-{
- DefaultSearchViewFilter * self;
- gboolean result = FALSE;
- MediaSource* source = NULL;
- MediaSource* _tmp0_;
- guint criteria = 0U;
- guint _tmp1_;
- guint _tmp6_;
- gboolean _tmp13_ = FALSE;
- guint _tmp14_;
- gboolean _tmp29_ = FALSE;
- guint _tmp30_;
- gboolean _tmp72_ = FALSE;
- guint _tmp73_;
-#line 181 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter);
-#line 181 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 182 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_THUMBNAIL, Thumbnail));
-#line 182 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- source = _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- criteria = search_view_filter_get_criteria (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 186 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = criteria;
-#line 186 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if ((SEARCH_FILTER_CRITERIA_RATING & _tmp1_) != 0) {
-#line 2585 "SearchFilter.c"
- gboolean _tmp2_ = FALSE;
-#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (search_view_filter_get_rating_allow_higher (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))) {
-#line 2589 "SearchFilter.c"
- MediaSource* _tmp3_;
-#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = source;
-#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = media_source_get_rating (_tmp3_) < search_view_filter_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 2595 "SearchFilter.c"
- } else {
-#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = FALSE;
-#line 2599 "SearchFilter.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp2_) {
-#line 188 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 188 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 188 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2609 "SearchFilter.c"
- } else {
- gboolean _tmp4_ = FALSE;
-#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!search_view_filter_get_rating_allow_higher (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))) {
-#line 2614 "SearchFilter.c"
- MediaSource* _tmp5_;
-#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = source;
-#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = media_source_get_rating (_tmp5_) != search_view_filter_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 2620 "SearchFilter.c"
- } else {
-#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = FALSE;
-#line 2624 "SearchFilter.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp4_) {
-#line 190 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 190 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 190 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2634 "SearchFilter.c"
- }
- }
- }
-#line 194 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = criteria;
-#line 194 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if ((SEARCH_FILTER_CRITERIA_FLAG & _tmp6_) != 0) {
-#line 2642 "SearchFilter.c"
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_;
- gboolean _tmp10_;
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = search_view_filter_get_flagged (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = _tmp9_;
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp10_) {
-#line 2653 "SearchFilter.c"
- MediaSource* _tmp11_;
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = source;
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_FLAGGABLE);
-#line 2659 "SearchFilter.c"
- } else {
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = FALSE;
-#line 2663 "SearchFilter.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp8_) {
-#line 2667 "SearchFilter.c"
- MediaSource* _tmp12_;
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = source;
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = !flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_FLAGGABLE, Flaggable));
-#line 2673 "SearchFilter.c"
- } else {
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = FALSE;
-#line 2677 "SearchFilter.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp7_) {
-#line 196 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 196 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 196 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2687 "SearchFilter.c"
- }
- }
-#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp14_ = criteria;
-#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if ((SEARCH_FILTER_CRITERIA_MEDIA & _tmp14_) != 0) {
-#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = search_view_filter_filter_by_media_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 2696 "SearchFilter.c"
- } else {
-#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = FALSE;
-#line 2700 "SearchFilter.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp13_) {
-#line 2704 "SearchFilter.c"
- MediaSource* _tmp15_;
-#line 201 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp15_ = source;
-#line 201 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_VIDEO_SOURCE)) {
-#line 2710 "SearchFilter.c"
- gboolean _tmp16_;
- gboolean _tmp17_;
-#line 202 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp16_ = search_view_filter_get_show_media_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 202 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp17_ = _tmp16_;
-#line 202 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!_tmp17_) {
-#line 203 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 203 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 203 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2725 "SearchFilter.c"
- }
- } else {
- MediaSource* _tmp18_;
-#line 204 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp18_ = source;
-#line 204 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_PHOTO)) {
-#line 2733 "SearchFilter.c"
- Photo* photo = NULL;
- MediaSource* _tmp19_;
- Photo* _tmp20_;
- Photo* _tmp21_;
-#line 205 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp19_ = source;
-#line 205 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO) ? ((Photo*) _tmp19_) : NULL);
-#line 205 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- photo = _tmp20_;
-#line 206 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp21_ = photo;
-#line 206 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (photo_get_master_file_format (_tmp21_) == PHOTO_FILE_FORMAT_RAW) {
-#line 2748 "SearchFilter.c"
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_;
- gboolean _tmp24_;
-#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp23_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp24_ = _tmp23_;
-#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!_tmp24_) {
-#line 2758 "SearchFilter.c"
- gboolean _tmp25_;
- gboolean _tmp26_;
-#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp25_ = search_view_filter_get_show_media_raw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp26_ = _tmp25_;
-#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp22_ = !_tmp26_;
-#line 2767 "SearchFilter.c"
- } else {
-#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp22_ = FALSE;
-#line 2771 "SearchFilter.c"
- }
-#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp22_) {
-#line 208 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 208 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (photo);
-#line 208 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 208 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2783 "SearchFilter.c"
- }
- } else {
- gboolean _tmp27_;
- gboolean _tmp28_;
-#line 209 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp27_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 209 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp28_ = _tmp27_;
-#line 209 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!_tmp28_) {
-#line 210 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 210 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (photo);
-#line 210 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 210 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 2802 "SearchFilter.c"
- }
- }
-#line 204 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (photo);
-#line 2807 "SearchFilter.c"
- }
- }
- }
-#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp30_ = criteria;
-#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if ((SEARCH_FILTER_CRITERIA_TEXT & _tmp30_) != 0) {
-#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp29_ = search_view_filter_has_search_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 2817 "SearchFilter.c"
- } else {
-#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp29_ = FALSE;
-#line 2821 "SearchFilter.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp29_) {
-#line 2825 "SearchFilter.c"
- const gchar* media_keywords = NULL;
- MediaSource* _tmp31_;
- const gchar* _tmp32_;
- const gchar* event_keywords = NULL;
- Event* event = NULL;
- MediaSource* _tmp33_;
- Event* _tmp34_;
- Event* _tmp35_;
- GeeList* tags = NULL;
- TagSourceCollection* _tmp38_;
- MediaSource* _tmp39_;
- GeeList* _tmp40_;
- gint _tmp41_ = 0;
- GeeList* _tmp42_;
- gint tags_size = 0;
- gint _tmp46_;
- gchar** _tmp47_;
-#line 216 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp31_ = source;
-#line 216 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp32_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_INDEXABLE, Indexable));
-#line 216 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- media_keywords = _tmp32_;
-#line 218 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- event_keywords = NULL;
-#line 219 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp33_ = source;
-#line 219 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp34_ = media_source_get_event (_tmp33_);
-#line 219 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- event = _tmp34_;
-#line 220 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp35_ = event;
-#line 220 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp35_ != NULL) {
-#line 2861 "SearchFilter.c"
- Event* _tmp36_;
- const gchar* _tmp37_;
-#line 221 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp36_ = event;
-#line 221 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp37_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_INDEXABLE, Indexable));
-#line 221 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- event_keywords = _tmp37_;
-#line 2870 "SearchFilter.c"
- }
-#line 223 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp38_ = tag_global;
-#line 223 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp39_ = source;
-#line 223 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp40_ = tag_source_collection_fetch_for_source (_tmp38_, _tmp39_);
-#line 223 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- tags = _tmp40_;
-#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp42_ = tags;
-#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp42_ != NULL) {
-#line 2884 "SearchFilter.c"
- GeeList* _tmp43_;
- gint _tmp44_;
- gint _tmp45_;
-#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp43_ = tags;
-#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp44_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp45_ = _tmp44_;
-#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp41_ = _tmp45_;
-#line 2896 "SearchFilter.c"
- } else {
-#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp41_ = 0;
-#line 2900 "SearchFilter.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- tags_size = _tmp41_;
-#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp47_ = search_view_filter_get_search_filter_words (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter), &_tmp46_);
-#line 2906 "SearchFilter.c"
- {
- gchar** word_collection = NULL;
- gint word_collection_length1 = 0;
- gint _word_collection_size_ = 0;
- gint word_it = 0;
-#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- word_collection = _tmp47_;
-#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- word_collection_length1 = _tmp46_;
-#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- for (word_it = 0; word_it < _tmp46_; word_it = word_it + 1) {
-#line 2918 "SearchFilter.c"
- const gchar* word = NULL;
-#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- word = word_collection[word_it];
-#line 2922 "SearchFilter.c"
- {
- gboolean _tmp48_ = FALSE;
- const gchar* _tmp49_;
- gboolean _tmp52_ = FALSE;
- const gchar* _tmp53_;
- gint _tmp56_;
-#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp49_ = media_keywords;
-#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp49_ != NULL) {
-#line 2933 "SearchFilter.c"
- const gchar* _tmp50_;
- const gchar* _tmp51_;
-#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp50_ = media_keywords;
-#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp51_ = word;
-#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp48_ = string_contains (_tmp50_, _tmp51_);
-#line 2942 "SearchFilter.c"
- } else {
-#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp48_ = FALSE;
-#line 2946 "SearchFilter.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp48_) {
-#line 228 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- continue;
-#line 2952 "SearchFilter.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp53_ = event_keywords;
-#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp53_ != NULL) {
-#line 2958 "SearchFilter.c"
- const gchar* _tmp54_;
- const gchar* _tmp55_;
-#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp54_ = event_keywords;
-#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp55_ = word;
-#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp52_ = string_contains (_tmp54_, _tmp55_);
-#line 2967 "SearchFilter.c"
- } else {
-#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp52_ = FALSE;
-#line 2971 "SearchFilter.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp52_) {
-#line 231 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- continue;
-#line 2977 "SearchFilter.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp56_ = tags_size;
-#line 233 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp56_ > 0) {
-#line 2983 "SearchFilter.c"
- gboolean found = FALSE;
- gboolean _tmp71_;
-#line 234 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- found = FALSE;
-#line 2988 "SearchFilter.c"
- {
- gint ctr = 0;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ctr = 0;
-#line 2993 "SearchFilter.c"
- {
- gboolean _tmp57_ = FALSE;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp57_ = TRUE;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- while (TRUE) {
-#line 3000 "SearchFilter.c"
- gint _tmp59_;
- gint _tmp60_;
- const gchar* tag_keywords = NULL;
- GeeList* _tmp61_;
- gint _tmp62_;
- gpointer _tmp63_;
- Tag* _tmp64_;
- const gchar* _tmp65_;
- const gchar* _tmp66_;
- gboolean _tmp67_ = FALSE;
- const gchar* _tmp68_;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!_tmp57_) {
-#line 3014 "SearchFilter.c"
- gint _tmp58_;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp58_ = ctr;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ctr = _tmp58_ + 1;
-#line 3020 "SearchFilter.c"
- }
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp57_ = FALSE;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp59_ = ctr;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp60_ = tags_size;
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!(_tmp59_ < _tmp60_)) {
-#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 3032 "SearchFilter.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp61_ = tags;
-#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp62_ = ctr;
-#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp63_ = gee_list_get (_tmp61_, _tmp62_);
-#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp64_ = (Tag*) _tmp63_;
-#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp65_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_INDEXABLE, Indexable));
-#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp66_ = _tmp65_;
-#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp64_);
-#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- tag_keywords = _tmp66_;
-#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp68_ = tag_keywords;
-#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp68_ != NULL) {
-#line 3054 "SearchFilter.c"
- const gchar* _tmp69_;
- const gchar* _tmp70_;
-#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp69_ = tag_keywords;
-#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp70_ = word;
-#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp67_ = string_contains (_tmp69_, _tmp70_);
-#line 3063 "SearchFilter.c"
- } else {
-#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp67_ = FALSE;
-#line 3067 "SearchFilter.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp67_) {
-#line 238 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- found = TRUE;
-#line 240 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 3075 "SearchFilter.c"
- }
- }
- }
- }
-#line 244 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp71_ = found;
-#line 244 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp71_) {
-#line 245 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- continue;
-#line 3086 "SearchFilter.c"
- }
- }
-#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (tags);
-#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (event);
-#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3099 "SearchFilter.c"
- }
- }
- }
-#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (tags);
-#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (event);
-#line 3107 "SearchFilter.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp73_ = criteria;
-#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if ((SEARCH_FILTER_CRITERIA_SAVEDSEARCH & _tmp73_) != 0) {
-#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp72_ = search_view_filter_has_saved_search (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 3115 "SearchFilter.c"
- } else {
-#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp72_ = FALSE;
-#line 3119 "SearchFilter.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp72_) {
-#line 3123 "SearchFilter.c"
- SavedSearch* _tmp74_;
- SavedSearch* _tmp75_;
- MediaSource* _tmp76_;
-#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp74_ = search_view_filter_get_saved_search (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp75_ = _tmp74_;
-#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp76_ = source;
-#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = saved_search_predicate (_tmp75_, _tmp76_);
-#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3139 "SearchFilter.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = TRUE;
-#line 259 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (source);
-#line 259 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3147 "SearchFilter.c"
-}
-
-
-DefaultSearchViewFilter*
-default_search_view_filter_construct (GType object_type)
-{
- DefaultSearchViewFilter* self = NULL;
-#line 180 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (DefaultSearchViewFilter*) search_view_filter_construct (object_type);
-#line 180 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 3159 "SearchFilter.c"
-}
-
-
-static void
-default_search_view_filter_class_init (DefaultSearchViewFilterClass * klass)
-{
-#line 180 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- default_search_view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 180 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) default_search_view_filter_real_predicate;
-#line 3170 "SearchFilter.c"
-}
-
-
-static void
-default_search_view_filter_instance_init (DefaultSearchViewFilter * self)
-{
-}
-
-
-GType
-default_search_view_filter_get_type (void)
-{
- static volatile gsize default_search_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&default_search_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DefaultSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) default_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DefaultSearchViewFilter), 0, (GInstanceInitFunc) default_search_view_filter_instance_init, NULL };
- GType default_search_view_filter_type_id;
- default_search_view_filter_type_id = g_type_register_static (TYPE_SEARCH_VIEW_FILTER, "DefaultSearchViewFilter", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&default_search_view_filter_type_id__volatile, default_search_view_filter_type_id);
- }
- return default_search_view_filter_type_id__volatile;
-}
-
-
-static gboolean
-disabled_view_filter_real_predicate (ViewFilter* base,
- DataView* view)
-{
- DisabledViewFilter * self;
- gboolean result = FALSE;
-#line 264 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DISABLED_VIEW_FILTER, DisabledViewFilter);
-#line 264 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 265 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = TRUE;
-#line 265 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3208 "SearchFilter.c"
-}
-
-
-static guint
-disabled_view_filter_real_get_criteria (SearchViewFilter* base)
-{
- DisabledViewFilter * self;
- guint result = 0U;
-#line 268 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DISABLED_VIEW_FILTER, DisabledViewFilter);
-#line 269 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = (guint) SEARCH_FILTER_CRITERIA_RATING;
-#line 269 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3223 "SearchFilter.c"
-}
-
-
-DisabledViewFilter*
-disabled_view_filter_construct (GType object_type)
-{
- DisabledViewFilter* self = NULL;
-#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (DisabledViewFilter*) search_view_filter_construct (object_type);
-#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 3235 "SearchFilter.c"
-}
-
-
-DisabledViewFilter*
-disabled_view_filter_new (void)
-{
-#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return disabled_view_filter_construct (TYPE_DISABLED_VIEW_FILTER);
-#line 3244 "SearchFilter.c"
-}
-
-
-static void
-disabled_view_filter_class_init (DisabledViewFilterClass * klass)
-{
-#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- disabled_view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) disabled_view_filter_real_predicate;
-#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) disabled_view_filter_real_get_criteria;
-#line 3257 "SearchFilter.c"
-}
-
-
-static void
-disabled_view_filter_instance_init (DisabledViewFilter * self)
-{
-}
-
-
-GType
-disabled_view_filter_get_type (void)
-{
- static volatile gsize disabled_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&disabled_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DisabledViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) disabled_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DisabledViewFilter), 0, (GInstanceInitFunc) disabled_view_filter_instance_init, NULL };
- GType disabled_view_filter_type_id;
- disabled_view_filter_type_id = g_type_register_static (TYPE_SEARCH_VIEW_FILTER, "DisabledViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&disabled_view_filter_type_id__volatile, disabled_view_filter_type_id);
- }
- return disabled_view_filter_type_id__volatile;
-}
-
-
-TextAction*
-text_action_construct (GType object_type,
- const gchar* init)
-{
- TextAction* self = NULL;
- gchar* _tmp0_;
-#line 290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (TextAction*) g_type_create_instance (object_type);
-#line 291 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = g_strdup (init);
-#line 291 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (self->priv->text);
-#line 291 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->text = _tmp0_;
-#line 290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 3297 "SearchFilter.c"
-}
-
-
-TextAction*
-text_action_new (const gchar* init)
-{
-#line 290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return text_action_construct (TYPE_TEXT_ACTION, init);
-#line 3306 "SearchFilter.c"
-}
-
-
-void
-text_action_set_text (TextAction* self,
- const gchar* text)
-{
- const gchar* _tmp0_;
-#line 294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_TEXT_ACTION (self));
-#line 295 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->text;
-#line 295 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (g_strcmp0 (_tmp0_, text) != 0) {
-#line 3321 "SearchFilter.c"
- gchar* _tmp1_;
-#line 296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = g_strdup (text);
-#line 296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (self->priv->text);
-#line 296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->text = _tmp1_;
-#line 297 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, text_action_signals[TEXT_ACTION_TEXT_CHANGED_SIGNAL], 0, text);
-#line 3331 "SearchFilter.c"
- }
-}
-
-
-void
-text_action_clear (TextAction* self)
-{
-#line 301 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_TEXT_ACTION (self));
-#line 302 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_set_text (self, NULL);
-#line 3343 "SearchFilter.c"
-}
-
-
-gboolean
-text_action_is_sensitive (TextAction* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 305 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_TEXT_ACTION (self), FALSE);
-#line 306 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->sensitive;
-#line 306 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 306 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3360 "SearchFilter.c"
-}
-
-
-void
-text_action_set_sensitive (TextAction* self,
- gboolean sensitive)
-{
- gboolean _tmp0_;
-#line 309 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_TEXT_ACTION (self));
-#line 310 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->sensitive;
-#line 310 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp0_ != sensitive) {
-#line 311 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->sensitive = sensitive;
-#line 312 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, text_action_signals[TEXT_ACTION_SENSITIVITY_CHANGED_SIGNAL], 0, sensitive);
-#line 3379 "SearchFilter.c"
- }
-}
-
-
-gboolean
-text_action_is_visible (TextAction* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 316 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_TEXT_ACTION (self), FALSE);
-#line 317 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->visible;
-#line 317 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 317 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3397 "SearchFilter.c"
-}
-
-
-void
-text_action_set_visible (TextAction* self,
- gboolean visible)
-{
- gboolean _tmp0_;
-#line 320 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_TEXT_ACTION (self));
-#line 321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->visible;
-#line 321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp0_ != visible) {
-#line 322 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->visible = visible;
-#line 323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, text_action_signals[TEXT_ACTION_VISIBILITY_CHANGED_SIGNAL], 0, visible);
-#line 3416 "SearchFilter.c"
- }
-}
-
-
-const gchar*
-text_action_get_value (TextAction* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 275 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_TEXT_ACTION (self), NULL);
-#line 276 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->text;
-#line 276 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 276 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3434 "SearchFilter.c"
-}
-
-
-static void
-value_text_action_init (GValue* value)
-{
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 3443 "SearchFilter.c"
-}
-
-
-static void
-value_text_action_free_value (GValue* value)
-{
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (value->data[0].v_pointer) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_unref (value->data[0].v_pointer);
-#line 3454 "SearchFilter.c"
- }
-}
-
-
-static void
-value_text_action_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (src_value->data[0].v_pointer) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- dest_value->data[0].v_pointer = text_action_ref (src_value->data[0].v_pointer);
-#line 3467 "SearchFilter.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3471 "SearchFilter.c"
- }
-}
-
-
-static gpointer
-value_text_action_peek_pointer (const GValue* value)
-{
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return value->data[0].v_pointer;
-#line 3481 "SearchFilter.c"
-}
-
-
-static gchar*
-value_text_action_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (collect_values[0].v_pointer) {
-#line 3493 "SearchFilter.c"
- TextAction * object;
- object = collect_values[0].v_pointer;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3500 "SearchFilter.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.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 3504 "SearchFilter.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = text_action_ref (object);
-#line 3508 "SearchFilter.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 3512 "SearchFilter.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return NULL;
-#line 3516 "SearchFilter.c"
-}
-
-
-static gchar*
-value_text_action_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TextAction ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!object_p) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3532 "SearchFilter.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!value->data[0].v_pointer) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = NULL;
-#line 3538 "SearchFilter.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = value->data[0].v_pointer;
-#line 3542 "SearchFilter.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = text_action_ref (value->data[0].v_pointer);
-#line 3546 "SearchFilter.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return NULL;
-#line 3550 "SearchFilter.c"
-}
-
-
-GParamSpec*
-param_spec_text_action (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTextAction* spec;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TEXT_ACTION), NULL);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return G_PARAM_SPEC (spec);
-#line 3570 "SearchFilter.c"
-}
-
-
-gpointer
-value_get_text_action (const GValue* value)
-{
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ACTION), NULL);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return value->data[0].v_pointer;
-#line 3581 "SearchFilter.c"
-}
-
-
-void
-value_set_text_action (GValue* value,
- gpointer v_object)
-{
- TextAction * old;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ACTION));
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- old = value->data[0].v_pointer;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (v_object) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEXT_ACTION));
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = v_object;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_ref (value->data[0].v_pointer);
-#line 3604 "SearchFilter.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 3608 "SearchFilter.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (old) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_unref (old);
-#line 3614 "SearchFilter.c"
- }
-}
-
-
-void
-value_take_text_action (GValue* value,
- gpointer v_object)
-{
- TextAction * old;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ACTION));
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- old = value->data[0].v_pointer;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (v_object) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEXT_ACTION));
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = v_object;
-#line 3636 "SearchFilter.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 3640 "SearchFilter.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (old) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_unref (old);
-#line 3646 "SearchFilter.c"
- }
-}
-
-
-static void
-text_action_class_init (TextActionClass * klass)
-{
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_parent_class = g_type_class_peek_parent (klass);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ((TextActionClass *) klass)->finalize = text_action_finalize;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (TextActionPrivate));
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_signals[TEXT_ACTION_TEXT_CHANGED_SIGNAL] = g_signal_new ("text-changed", TYPE_TEXT_ACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_signals[TEXT_ACTION_SENSITIVITY_CHANGED_SIGNAL] = g_signal_new ("sensitivity-changed", TYPE_TEXT_ACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_signals[TEXT_ACTION_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("visibility-changed", TYPE_TEXT_ACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 3666 "SearchFilter.c"
-}
-
-
-static void
-text_action_instance_init (TextAction * self)
-{
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = TEXT_ACTION_GET_PRIVATE (self);
-#line 280 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->text = NULL;
-#line 281 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->sensitive = TRUE;
-#line 282 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->visible = TRUE;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->ref_count = 1;
-#line 3683 "SearchFilter.c"
-}
-
-
-static void
-text_action_finalize (TextAction * obj)
-{
- TextAction * self;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEXT_ACTION, TextAction);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_handlers_destroy (self);
-#line 280 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (self->priv->text);
-#line 3697 "SearchFilter.c"
-}
-
-
-GType
-text_action_get_type (void)
-{
- static volatile gsize text_action_type_id__volatile = 0;
- if (g_once_init_enter (&text_action_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_text_action_init, value_text_action_free_value, value_text_action_copy_value, value_text_action_peek_pointer, "p", value_text_action_collect_value, "p", value_text_action_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TextActionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) text_action_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TextAction), 0, (GInstanceInitFunc) text_action_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType text_action_type_id;
- text_action_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TextAction", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&text_action_type_id__volatile, text_action_type_id);
- }
- return text_action_type_id__volatile;
-}
-
-
-gpointer
-text_action_ref (gpointer instance)
-{
- TextAction * self;
- self = instance;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return instance;
-#line 3726 "SearchFilter.c"
-}
-
-
-void
-text_action_unref (gpointer instance)
-{
- TextAction * self;
- self = instance;
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- TEXT_ACTION_GET_CLASS (self)->finalize (self);
-#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3741 "SearchFilter.c"
- }
-}
-
-
-static void
-_search_filter_actions_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_action_radio ((SearchFilterActions*) self, action, parameter);
-#line 3753 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_rating_changed_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_rating_changed ((SearchFilterActions*) self, action, value);
-#line 3764 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_action_toggle ((SearchFilterActions*) self, action, parameter);
-#line 3775 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_flagged_toggled_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_flagged_toggled ((SearchFilterActions*) self, action, value);
-#line 3786 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_photos_toggled_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_photos_toggled ((SearchFilterActions*) self, action, value);
-#line 3797 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_videos_toggled_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_videos_toggled ((SearchFilterActions*) self, action, value);
-#line 3808 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_raw_toggled_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_raw_toggled ((SearchFilterActions*) self, action, value);
-#line 3819 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_text_changed_text_action_text_changed (TextAction* _sender,
- const gchar* text,
- gpointer self)
-{
-#line 406 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_text_changed ((SearchFilterActions*) self, _sender, text);
-#line 3830 "SearchFilter.c"
-}
-
-
-SearchFilterActions*
-search_filter_actions_construct (GType object_type)
-{
- SearchFilterActions* self = NULL;
- TextAction* _tmp0_;
- TextAction* _tmp1_;
-#line 402 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterActions*) g_type_create_instance (object_type);
-#line 404 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_register (self);
-#line 406 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_actions_get_text (self);
-#line 406 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_;
-#line 406 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect (_tmp1_, "text-changed", (GCallback) _search_filter_actions_on_text_changed_text_action_text_changed, self);
-#line 402 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 3852 "SearchFilter.c"
-}
-
-
-SearchFilterActions*
-search_filter_actions_new (void)
-{
-#line 402 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_actions_construct (TYPE_SEARCH_FILTER_ACTIONS);
-#line 3861 "SearchFilter.c"
-}
-
-
-SearchFilterCriteria
-search_filter_actions_get_criteria (SearchFilterActions* self)
-{
- SearchFilterCriteria result = 0;
- SearchFilterCriteria _tmp0_;
-#line 409 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), 0);
-#line 410 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->criteria;
-#line 410 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 410 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3878 "SearchFilter.c"
-}
-
-
-GActionEntry*
-search_filter_actions_get_actions (SearchFilterActions* self,
- int* result_length1)
-{
- GActionEntry* result = NULL;
- GActionEntry* _tmp0_;
- gint _tmp0__length1;
-#line 413 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL);
-#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = SEARCH_FILTER_ACTIONS_entries;
-#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0__length1 = G_N_ELEMENTS (SEARCH_FILTER_ACTIONS_entries);
-#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (result_length1) {
-#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *result_length1 = _tmp0__length1;
-#line 3899 "SearchFilter.c"
- }
-#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3905 "SearchFilter.c"
-}
-
-
-GSimpleAction*
-search_filter_actions_get_action (SearchFilterActions* self,
- const gchar* name)
-{
- GSimpleAction* result = NULL;
- LibraryWindow* lw = NULL;
- AppWindow* _tmp0_;
- LibraryWindow* _tmp1_;
- LibraryWindow* _tmp2_;
-#line 417 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL);
-#line 417 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = app_window_get_instance ();
-#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_WINDOW) ? ((LibraryWindow*) _tmp0_) : NULL;
-#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp1_ == NULL) {
-#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp0_);
-#line 3930 "SearchFilter.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- lw = _tmp1_;
-#line 419 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = lw;
-#line 419 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp2_ != NULL) {
-#line 3938 "SearchFilter.c"
- LibraryWindow* _tmp3_;
- GAction* _tmp4_;
-#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = lw;
-#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_action_map_get_type (), GActionMap), name);
-#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp4_) : NULL;
-#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (lw);
-#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3951 "SearchFilter.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = NULL;
-#line 423 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (lw);
-#line 423 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 3959 "SearchFilter.c"
-}
-
-
-void
-search_filter_actions_set_action_sensitive (SearchFilterActions* self,
- const gchar* name,
- gboolean sensitive)
-{
- GSimpleAction* action = NULL;
- GSimpleAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
-#line 427 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 427 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (name != NULL);
-#line 428 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_actions_get_action (self, name);
-#line 428 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 428 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- action = _tmp1_;
-#line 429 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = action;
-#line 429 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp2_ != NULL) {
-#line 3986 "SearchFilter.c"
- GSimpleAction* _tmp3_;
-#line 430 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = action;
-#line 430 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_simple_action_set_enabled (_tmp3_, sensitive);
-#line 3992 "SearchFilter.c"
- }
-#line 427 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (action);
-#line 3996 "SearchFilter.c"
-}
-
-
-static GVariant*
-_variant_new32 (gboolean value)
-{
-#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 4005 "SearchFilter.c"
-}
-
-
-static GVariant*
-_variant_new33 (gboolean value)
-{
-#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 4014 "SearchFilter.c"
-}
-
-
-static GVariant*
-_variant_new34 (gboolean value)
-{
-#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 4023 "SearchFilter.c"
-}
-
-
-static GVariant*
-_variant_new35 (gboolean value)
-{
-#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 4032 "SearchFilter.c"
-}
-
-
-static GVariant*
-_variant_new36 (gchar* value)
-{
-#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 4041 "SearchFilter.c"
-}
-
-
-void
-search_filter_actions_reset (SearchFilterActions* self)
-{
- GSimpleAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GVariant* _tmp2_;
- GSimpleAction* _tmp3_;
- GSimpleAction* _tmp4_;
- GVariant* _tmp5_;
- GSimpleAction* _tmp6_;
- GSimpleAction* _tmp7_;
- GVariant* _tmp8_;
- GSimpleAction* _tmp9_;
- GSimpleAction* _tmp10_;
- GVariant* _tmp11_;
- GVariant* v = NULL;
- gchar* _tmp12_;
- gchar* _tmp13_;
- GVariant* _tmp14_;
- GVariant* _tmp15_;
- GSimpleAction* _tmp16_;
- GSimpleAction* _tmp17_;
- TextAction* _tmp18_;
- TextAction* _tmp19_;
-#line 434 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_actions_get_flagged (self);
-#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_;
-#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = _variant_new32 (FALSE);
-#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (_tmp1_, "change-state", _tmp2_);
-#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp2_);
-#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = search_filter_actions_get_photos (self);
-#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = _tmp3_;
-#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = _variant_new33 (FALSE);
-#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (_tmp4_, "change-state", _tmp5_);
-#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp5_);
-#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = search_filter_actions_get_raw (self);
-#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = _tmp6_;
-#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = _variant_new34 (FALSE);
-#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (_tmp7_, "change-state", _tmp8_);
-#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp8_);
-#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = search_filter_actions_get_videos (self);
-#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = _tmp9_;
-#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = _variant_new35 (FALSE);
-#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (_tmp10_, "change-state", _tmp11_);
-#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp11_);
-#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = g_strdup_printf ("%d", (gint) RATING_FILTER_UNRATED_OR_HIGHER);
-#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = _tmp12_;
-#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp14_ = _variant_new36 (_tmp13_);
-#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp15_ = _tmp14_;
-#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (_tmp13_);
-#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- v = _tmp15_;
-#line 440 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp16_ = search_filter_actions_get_rating (self);
-#line 440 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp17_ = _tmp16_;
-#line 440 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (_tmp17_, "change-state", v);
-#line 442 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp18_ = search_filter_actions_get_text (self);
-#line 442 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp19_ = _tmp18_;
-#line 442 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_set_text (_tmp19_, NULL);
-#line 434 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (v);
-#line 4137 "SearchFilter.c"
-}
-
-
-void
-search_filter_actions_set_sensitive_for_search_criteria (SearchFilterActions* self,
- SearchFilterCriteria criteria)
-{
-#line 445 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 446 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->criteria = criteria;
-#line 447 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_update_sensitivities (self);
-#line 450 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_CRITERIA_CHANGED_SIGNAL], 0);
-#line 4153 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_media_tracker_updated_core_tracker_updated (CoreTracker* _sender,
- gpointer self)
-{
-#line 458 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_media_tracker_updated ((SearchFilterActions*) self, _sender);
-#line 4163 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_actions_on_camera_tracker_updated_core_tracker_updated (CoreTracker* _sender,
- gpointer self)
-{
-#line 460 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_camera_tracker_updated ((SearchFilterActions*) self, _sender);
-#line 4173 "SearchFilter.c"
-}
-
-
-void
-search_filter_actions_monitor_page_contents (SearchFilterActions* self,
- Page* old_page,
- Page* new_page)
-{
- CheckerboardPage* old_tracked_page = NULL;
- CheckerboardPage* _tmp0_;
- CheckerboardPage* _tmp1_;
- CheckerboardPage* new_tracked_page = NULL;
- CheckerboardPage* _tmp10_;
- CheckerboardPage* _tmp11_;
-#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page));
-#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page));
-#line 454 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (old_page, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) old_page) : NULL);
-#line 454 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- old_tracked_page = _tmp0_;
-#line 455 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = old_tracked_page;
-#line 455 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp1_ != NULL) {
-#line 4202 "SearchFilter.c"
- CoreViewTracker* tracker = NULL;
- CheckerboardPage* _tmp2_;
- CoreViewTracker* _tmp3_;
- CoreViewTracker* _tmp4_;
-#line 456 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = old_tracked_page;
-#line 456 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = checkerboard_page_get_view_tracker (_tmp2_);
-#line 456 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- tracker = _tmp3_;
-#line 457 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = tracker;
-#line 457 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_MEDIA_VIEW_TRACKER)) {
-#line 4217 "SearchFilter.c"
- CoreViewTracker* _tmp5_;
- guint _tmp6_;
-#line 458 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = tracker;
-#line 458 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("updated", CORE_TYPE_TRACKER, &_tmp6_, NULL, FALSE);
-#line 458 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, CORE_TYPE_TRACKER, CoreTracker), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _search_filter_actions_on_media_tracker_updated_core_tracker_updated, self);
-#line 4226 "SearchFilter.c"
- } else {
- CoreViewTracker* _tmp7_;
-#line 459 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = tracker;
-#line 459 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_CAMERA_VIEW_TRACKER)) {
-#line 4233 "SearchFilter.c"
- CoreViewTracker* _tmp8_;
- guint _tmp9_;
-#line 460 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = tracker;
-#line 460 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("updated", CORE_TYPE_TRACKER, &_tmp9_, NULL, FALSE);
-#line 460 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, CORE_TYPE_TRACKER, CoreTracker), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _search_filter_actions_on_camera_tracker_updated_core_tracker_updated, self);
-#line 4242 "SearchFilter.c"
- }
- }
-#line 455 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _core_tracker_unref0 (tracker);
-#line 4247 "SearchFilter.c"
- }
-#line 463 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (new_page, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) new_page) : NULL);
-#line 463 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- new_tracked_page = _tmp10_;
-#line 464 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = new_tracked_page;
-#line 464 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp11_ != NULL) {
-#line 4257 "SearchFilter.c"
- CoreViewTracker* tracker = NULL;
- CheckerboardPage* _tmp12_;
- CoreViewTracker* _tmp13_;
- CoreViewTracker* _tmp14_;
-#line 465 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->can_filter_by_stars = TRUE;
-#line 467 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = new_tracked_page;
-#line 467 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = checkerboard_page_get_view_tracker (_tmp12_);
-#line 467 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- tracker = _tmp13_;
-#line 468 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp14_ = tracker;
-#line 468 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_MEDIA_VIEW_TRACKER)) {
-#line 4274 "SearchFilter.c"
- CoreViewTracker* _tmp15_;
- CoreViewTracker* _tmp16_;
-#line 469 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp15_ = tracker;
-#line 469 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, CORE_TYPE_TRACKER, CoreTracker), "updated", (GCallback) _search_filter_actions_on_media_tracker_updated_core_tracker_updated, self);
-#line 470 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp16_ = tracker;
-#line 470 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_media_tracker_updated (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, CORE_TYPE_TRACKER, CoreTracker));
-#line 472 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _core_tracker_unref0 (tracker);
-#line 472 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (new_tracked_page);
-#line 472 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (old_tracked_page);
-#line 472 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return;
-#line 4293 "SearchFilter.c"
- } else {
- CoreViewTracker* _tmp17_;
-#line 473 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp17_ = tracker;
-#line 473 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, TYPE_CAMERA_VIEW_TRACKER)) {
-#line 4300 "SearchFilter.c"
- CoreViewTracker* _tmp18_;
- CoreViewTracker* _tmp19_;
-#line 474 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp18_ = tracker;
-#line 474 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, CORE_TYPE_TRACKER, CoreTracker), "updated", (GCallback) _search_filter_actions_on_camera_tracker_updated_core_tracker_updated, self);
-#line 475 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp19_ = tracker;
-#line 475 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_on_camera_tracker_updated (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, CORE_TYPE_TRACKER, CoreTracker));
-#line 477 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _core_tracker_unref0 (tracker);
-#line 477 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (new_tracked_page);
-#line 477 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (old_tracked_page);
-#line 477 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return;
-#line 4319 "SearchFilter.c"
- }
- }
-#line 464 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _core_tracker_unref0 (tracker);
-#line 4324 "SearchFilter.c"
- }
-#line 482 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_flagged = FALSE;
-#line 483 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_photos = FALSE;
-#line 484 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_videos = FALSE;
-#line 485 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_raw = FALSE;
-#line 486 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->can_filter_by_stars = FALSE;
-#line 488 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_update_sensitivities (self);
-#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (new_tracked_page);
-#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (old_tracked_page);
-#line 4342 "SearchFilter.c"
-}
-
-
-static gpointer
-_core_tracker_ref0 (gpointer self)
-{
-#line 492 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self ? core_tracker_ref (self) : NULL;
-#line 4351 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_media_tracker_updated (SearchFilterActions* self,
- CoreTracker* t)
-{
- MediaViewTracker* tracker = NULL;
- MediaViewTracker* _tmp0_;
- MediaAccumulator* _tmp1_;
- gint _tmp2_;
- MediaAccumulator* _tmp3_;
- gint _tmp4_;
- MediaAccumulator* _tmp5_;
- gint _tmp6_;
- MediaAccumulator* _tmp7_;
- gint _tmp8_;
-#line 491 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 491 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (CORE_IS_TRACKER (t));
-#line 492 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (t, TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker));
-#line 492 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- tracker = _tmp0_;
-#line 494 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = tracker->all;
-#line 494 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = _tmp1_->flagged;
-#line 494 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_flagged = _tmp2_ > 0;
-#line 495 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = tracker->all;
-#line 495 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = _tmp3_->photos;
-#line 495 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_photos = _tmp4_ > 0;
-#line 496 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = tracker->all;
-#line 496 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _tmp5_->videos;
-#line 496 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_videos = _tmp6_ > 0;
-#line 497 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = tracker->all;
-#line 497 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = _tmp7_->raw;
-#line 497 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_raw = _tmp8_ > 0;
-#line 499 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_update_sensitivities (self);
-#line 491 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _core_tracker_unref0 (tracker);
-#line 4405 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_camera_tracker_updated (SearchFilterActions* self,
- CoreTracker* t)
-{
- CameraViewTracker* tracker = NULL;
- CameraViewTracker* _tmp0_;
- CameraAccumulator* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- CameraAccumulator* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- CameraAccumulator* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 502 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 502 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (CORE_IS_TRACKER (t));
-#line 503 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (t, TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker));
-#line 503 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- tracker = _tmp0_;
-#line 505 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_flagged = FALSE;
-#line 506 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = tracker->all;
-#line 506 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = camera_accumulator_get_photos (_tmp1_);
-#line 506 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_;
-#line 506 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_photos = _tmp3_ > 0;
-#line 507 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = tracker->all;
-#line 507 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = camera_accumulator_get_videos (_tmp4_);
-#line 507 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _tmp5_;
-#line 507 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_videos = _tmp6_ > 0;
-#line 508 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = tracker->all;
-#line 508 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = camera_accumulator_get_raw (_tmp7_);
-#line 508 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = _tmp8_;
-#line 508 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_raw = _tmp9_ > 0;
-#line 510 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_update_sensitivities (self);
-#line 502 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _core_tracker_unref0 (tracker);
-#line 4462 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_update_sensitivities (SearchFilterActions* self)
-{
- gboolean allow_ratings = FALSE;
- SearchFilterCriteria _tmp0_;
- gboolean _tmp1_;
- TextAction* _tmp2_;
- TextAction* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp7_;
-#line 513 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 514 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->criteria;
-#line 514 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- allow_ratings = (SEARCH_FILTER_CRITERIA_RATING & _tmp0_) != 0;
-#line 515 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->can_filter_by_stars;
-#line 515 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_set_action_sensitive (self, "display.rating", allow_ratings & _tmp1_);
-#line 519 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = search_filter_actions_get_text (self);
-#line 519 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_;
-#line 519 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_set_sensitive (_tmp3_, TRUE);
-#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->has_photos;
-#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->has_videos;
-#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->priv->has_raw;
-#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = self->priv->has_flagged;
-#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_MEDIA_CONTEXT_CHANGED_SIGNAL], 0, _tmp4_, _tmp5_, _tmp6_, _tmp7_);
-#line 4504 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_text_changed (SearchFilterActions* self,
- TextAction* action,
- const gchar* text)
-{
-#line 524 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 524 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_TEXT_ACTION (action));
-#line 525 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_TEXT_CHANGED_SIGNAL], 0, text);
-#line 4519 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_action_radio (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* parameter)
-{
-#line 536 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 536 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 538 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (action, "change-state", parameter);
-#line 4534 "SearchFilter.c"
-}
-
-
-static gboolean
-_variant_get37 (GVariant* value)
-{
-#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_get_boolean (value);
-#line 4543 "SearchFilter.c"
-}
-
-
-static GVariant*
-_variant_new38 (gboolean value)
-{
-#line 544 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 4552 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_action_toggle (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* parameter)
-{
- gboolean state = FALSE;
- GVariant* _tmp0_;
- GVariant* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- GVariant* _tmp4_;
-#line 541 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 541 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction));
-#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_;
-#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = _variant_get37 (_tmp1_);
-#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_;
-#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp1_);
-#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- state = _tmp3_;
-#line 544 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = _variant_new38 (!state);
-#line 544 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (action, "change-state", _tmp4_);
-#line 544 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp4_);
-#line 4589 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_register (SearchFilterActions* self)
-{
- TextAction* _tmp0_;
-#line 547 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 548 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = text_action_new (NULL);
-#line 548 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _text_action_unref0 (self->priv->_text);
-#line 548 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_text = _tmp0_;
-#line 4605 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_rating_changed (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value)
-{
- const gchar* _tmp0_;
- GVariant* _tmp1_;
- GVariant* _tmp2_;
- const gchar* _tmp3_;
- gboolean _tmp4_;
- RatingFilter filter = 0;
- const gchar* _tmp5_;
- RatingFilter _tmp6_;
-#line 551 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 551 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 551 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (value != NULL);
-#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = g_variant_get_string (value, NULL);
-#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction));
-#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = _tmp1_;
-#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = g_variant_get_string (_tmp2_, NULL);
-#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = g_strcmp0 (_tmp0_, _tmp3_) == 0;
-#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp2_);
-#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp4_) {
-#line 554 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return;
-#line 4644 "SearchFilter.c"
- }
-#line 556 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = g_variant_get_string (value, NULL);
-#line 556 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- filter = (RatingFilter) atoi (_tmp5_);
-#line 557 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_simple_action_set_state (action, value);
-#line 558 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = filter;
-#line 558 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_RATING_CHANGED_SIGNAL], 0, _tmp6_);
-#line 4656 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_flagged_toggled (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 561 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 561 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 561 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (value != NULL);
-#line 563 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_simple_action_set_state (action, value);
-#line 564 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_FLAGGED_TOGGLED_SIGNAL], 0, g_variant_get_boolean (value));
-#line 4675 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_photos_toggled (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 567 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 567 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 567 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (value != NULL);
-#line 569 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_simple_action_set_state (action, value);
-#line 570 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_PHOTOS_TOGGLED_SIGNAL], 0, g_variant_get_boolean (value));
-#line 4694 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_videos_toggled (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 573 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 573 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 573 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (value != NULL);
-#line 575 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_simple_action_set_state (action, value);
-#line 576 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_VIDEOS_TOGGLED_SIGNAL], 0, g_variant_get_boolean (value));
-#line 4713 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_on_raw_toggled (SearchFilterActions* self,
- GSimpleAction* action,
- GVariant* value)
-{
-#line 579 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self));
-#line 579 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 579 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (value != NULL);
-#line 581 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_simple_action_set_state (action, value);
-#line 582 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_RAW_TOGGLED_SIGNAL], 0, g_variant_get_boolean (value));
-#line 4732 "SearchFilter.c"
-}
-
-
-gboolean
-search_filter_actions_get_has_photos (SearchFilterActions* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 585 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), FALSE);
-#line 586 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->has_photos;
-#line 586 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 586 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4749 "SearchFilter.c"
-}
-
-
-gboolean
-search_filter_actions_get_has_videos (SearchFilterActions* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 589 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), FALSE);
-#line 590 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->has_videos;
-#line 590 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 590 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4766 "SearchFilter.c"
-}
-
-
-gboolean
-search_filter_actions_get_has_raw (SearchFilterActions* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 593 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), FALSE);
-#line 594 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->has_raw;
-#line 594 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 594 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4783 "SearchFilter.c"
-}
-
-
-gboolean
-search_filter_actions_get_has_flagged (SearchFilterActions* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 597 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), FALSE);
-#line 598 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->has_flagged;
-#line 598 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 598 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4800 "SearchFilter.c"
-}
-
-
-GSimpleAction*
-search_filter_actions_get_flagged (SearchFilterActions* self)
-{
- GSimpleAction* result;
- GSimpleAction* _tmp0_;
-#line 331 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL);
-#line 332 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_actions_get_action (self, "display.flagged");
-#line 332 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 332 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4817 "SearchFilter.c"
-}
-
-
-GSimpleAction*
-search_filter_actions_get_photos (SearchFilterActions* self)
-{
- GSimpleAction* result;
- GSimpleAction* _tmp0_;
-#line 337 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL);
-#line 338 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_actions_get_action (self, "display.photos");
-#line 338 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 338 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4834 "SearchFilter.c"
-}
-
-
-GSimpleAction*
-search_filter_actions_get_videos (SearchFilterActions* self)
-{
- GSimpleAction* result;
- GSimpleAction* _tmp0_;
-#line 343 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL);
-#line 344 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_actions_get_action (self, "display.videos");
-#line 344 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 344 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4851 "SearchFilter.c"
-}
-
-
-GSimpleAction*
-search_filter_actions_get_raw (SearchFilterActions* self)
-{
- GSimpleAction* result;
- GSimpleAction* _tmp0_;
-#line 349 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL);
-#line 350 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_actions_get_action (self, "display.raw");
-#line 350 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 350 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4868 "SearchFilter.c"
-}
-
-
-GSimpleAction*
-search_filter_actions_get_rating (SearchFilterActions* self)
-{
- GSimpleAction* result;
- GSimpleAction* _tmp0_;
-#line 355 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL);
-#line 356 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_actions_get_action (self, "display.rating");
-#line 356 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 356 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4885 "SearchFilter.c"
-}
-
-
-TextAction*
-search_filter_actions_get_text (SearchFilterActions* self)
-{
- TextAction* result;
- TextAction* _tmp0_;
- TextAction* _tmp1_;
-#line 361 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL);
-#line 362 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_text;
-#line 362 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _vala_assert (_tmp0_ != NULL, "_text != null");
-#line 363 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->_text;
-#line 363 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp1_;
-#line 363 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 4907 "SearchFilter.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN) (gpointer data1, gboolean arg_1, gboolean arg_2, gboolean arg_3, gboolean arg_4, gpointer data2);
- register GMarshalFunc_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (n_param_values == 5);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- data1 = closure->data;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- data2 = param_values->data[0].v_pointer;
-#line 4933 "SearchFilter.c"
- } else {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- data1 = param_values->data[0].v_pointer;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- data2 = closure->data;
-#line 4939 "SearchFilter.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- callback = (GMarshalFunc_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- callback (data1, g_value_get_boolean (param_values + 1), g_value_get_boolean (param_values + 2), g_value_get_boolean (param_values + 3), g_value_get_boolean (param_values + 4), data2);
-#line 4945 "SearchFilter.c"
-}
-
-
-static void
-value_search_filter_actions_init (GValue* value)
-{
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 4954 "SearchFilter.c"
-}
-
-
-static void
-value_search_filter_actions_free_value (GValue* value)
-{
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (value->data[0].v_pointer) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_unref (value->data[0].v_pointer);
-#line 4965 "SearchFilter.c"
- }
-}
-
-
-static void
-value_search_filter_actions_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (src_value->data[0].v_pointer) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- dest_value->data[0].v_pointer = search_filter_actions_ref (src_value->data[0].v_pointer);
-#line 4978 "SearchFilter.c"
- } else {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4982 "SearchFilter.c"
- }
-}
-
-
-static gpointer
-value_search_filter_actions_peek_pointer (const GValue* value)
-{
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return value->data[0].v_pointer;
-#line 4992 "SearchFilter.c"
-}
-
-
-static gchar*
-value_search_filter_actions_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (collect_values[0].v_pointer) {
-#line 5004 "SearchFilter.c"
- SearchFilterActions * object;
- object = collect_values[0].v_pointer;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5011 "SearchFilter.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.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 5015 "SearchFilter.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = search_filter_actions_ref (object);
-#line 5019 "SearchFilter.c"
- } else {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 5023 "SearchFilter.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return NULL;
-#line 5027 "SearchFilter.c"
-}
-
-
-static gchar*
-value_search_filter_actions_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SearchFilterActions ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!object_p) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5043 "SearchFilter.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!value->data[0].v_pointer) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = NULL;
-#line 5049 "SearchFilter.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = value->data[0].v_pointer;
-#line 5053 "SearchFilter.c"
- } else {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = search_filter_actions_ref (value->data[0].v_pointer);
-#line 5057 "SearchFilter.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return NULL;
-#line 5061 "SearchFilter.c"
-}
-
-
-GParamSpec*
-param_spec_search_filter_actions (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecSearchFilterActions* spec;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SEARCH_FILTER_ACTIONS), NULL);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return G_PARAM_SPEC (spec);
-#line 5081 "SearchFilter.c"
-}
-
-
-gpointer
-value_get_search_filter_actions (const GValue* value)
-{
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_FILTER_ACTIONS), NULL);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return value->data[0].v_pointer;
-#line 5092 "SearchFilter.c"
-}
-
-
-void
-value_set_search_filter_actions (GValue* value,
- gpointer v_object)
-{
- SearchFilterActions * old;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_FILTER_ACTIONS));
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- old = value->data[0].v_pointer;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (v_object) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SEARCH_FILTER_ACTIONS));
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = v_object;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_ref (value->data[0].v_pointer);
-#line 5115 "SearchFilter.c"
- } else {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 5119 "SearchFilter.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (old) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_unref (old);
-#line 5125 "SearchFilter.c"
- }
-}
-
-
-void
-value_take_search_filter_actions (GValue* value,
- gpointer v_object)
-{
- SearchFilterActions * old;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_FILTER_ACTIONS));
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- old = value->data[0].v_pointer;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (v_object) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SEARCH_FILTER_ACTIONS));
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = v_object;
-#line 5147 "SearchFilter.c"
- } else {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 5151 "SearchFilter.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (old) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_unref (old);
-#line 5157 "SearchFilter.c"
- }
-}
-
-
-static void
-search_filter_actions_class_init (SearchFilterActionsClass * klass)
-{
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_parent_class = g_type_class_peek_parent (klass);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ((SearchFilterActionsClass *) klass)->finalize = search_filter_actions_finalize;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (SearchFilterActionsPrivate));
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_signals[SEARCH_FILTER_ACTIONS_FLAGGED_TOGGLED_SIGNAL] = g_signal_new ("flagged-toggled", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_signals[SEARCH_FILTER_ACTIONS_PHOTOS_TOGGLED_SIGNAL] = g_signal_new ("photos-toggled", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_signals[SEARCH_FILTER_ACTIONS_VIDEOS_TOGGLED_SIGNAL] = g_signal_new ("videos-toggled", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_signals[SEARCH_FILTER_ACTIONS_RAW_TOGGLED_SIGNAL] = g_signal_new ("raw-toggled", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_signals[SEARCH_FILTER_ACTIONS_RATING_CHANGED_SIGNAL] = g_signal_new ("rating-changed", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__ENUM, G_TYPE_NONE, 1, TYPE_RATING_FILTER);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_signals[SEARCH_FILTER_ACTIONS_TEXT_CHANGED_SIGNAL] = g_signal_new ("text-changed", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
-#line 5183 "SearchFilter.c"
- /**
- * fired when the kinds of media present in the current view change (e.g., a video becomes
- * available in the view through a new import operation or no raw photos are available in
- * the view anymore because the last one was moved to the trash)
- */
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_signals[SEARCH_FILTER_ACTIONS_MEDIA_CONTEXT_CHANGED_SIGNAL] = g_signal_new ("media-context-changed", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_signals[SEARCH_FILTER_ACTIONS_CRITERIA_CHANGED_SIGNAL] = g_signal_new ("criteria-changed", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 5193 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_instance_init (SearchFilterActions * self)
-{
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = SEARCH_FILTER_ACTIONS_GET_PRIVATE (self);
-#line 367 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->criteria = SEARCH_FILTER_CRITERIA_ALL;
-#line 368 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_text = NULL;
-#line 369 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_flagged = TRUE;
-#line 370 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_photos = TRUE;
-#line 371 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_videos = TRUE;
-#line 372 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->has_raw = TRUE;
-#line 373 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->can_filter_by_stars = TRUE;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->ref_count = 1;
-#line 5218 "SearchFilter.c"
-}
-
-
-static void
-search_filter_actions_finalize (SearchFilterActions * obj)
-{
- SearchFilterActions * self;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActions);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_handlers_destroy (self);
-#line 368 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _text_action_unref0 (self->priv->_text);
-#line 5232 "SearchFilter.c"
-}
-
-
-GType
-search_filter_actions_get_type (void)
-{
- static volatile gsize search_filter_actions_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_actions_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_search_filter_actions_init, value_search_filter_actions_free_value, value_search_filter_actions_copy_value, value_search_filter_actions_peek_pointer, "p", value_search_filter_actions_collect_value, "p", value_search_filter_actions_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterActionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_actions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterActions), 0, (GInstanceInitFunc) search_filter_actions_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType search_filter_actions_type_id;
- search_filter_actions_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SearchFilterActions", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&search_filter_actions_type_id__volatile, search_filter_actions_type_id);
- }
- return search_filter_actions_type_id__volatile;
-}
-
-
-gpointer
-search_filter_actions_ref (gpointer instance)
-{
- SearchFilterActions * self;
- self = instance;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return instance;
-#line 5261 "SearchFilter.c"
-}
-
-
-void
-search_filter_actions_unref (gpointer instance)
-{
- SearchFilterActions * self;
- self = instance;
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- SEARCH_FILTER_ACTIONS_GET_CLASS (self)->finalize (self);
-#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 5276 "SearchFilter.c"
- }
-}
-
-
-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 1156 "/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 5291 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled (SearchFilterActions* _sender,
- gboolean on,
- gpointer self)
-{
-#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_flagged_toggled ((SearchFilterToolbar*) self);
-#line 5302 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled (SearchFilterActions* _sender,
- gboolean on,
- gpointer self)
-{
-#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_photos_toggled ((SearchFilterToolbar*) self);
-#line 5313 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled (SearchFilterActions* _sender,
- gboolean on,
- gpointer self)
-{
-#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_videos_toggled ((SearchFilterToolbar*) self);
-#line 5324 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled (SearchFilterActions* _sender,
- gboolean on,
- gpointer self)
-{
-#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_raw_toggled ((SearchFilterToolbar*) self);
-#line 5335 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed (SearchFilterActions* _sender,
- RatingFilter filter,
- gpointer self)
-{
-#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_rating_changed ((SearchFilterToolbar*) self);
-#line 5346 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed (SearchFilterActions* _sender,
- const gchar* text,
- gpointer self)
-{
-#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_search_text_changed ((SearchFilterToolbar*) self);
-#line 5357 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed (SearchFilterActions* _sender,
- gpointer self)
-{
-#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_criteria_changed ((SearchFilterToolbar*) self);
-#line 5367 "SearchFilter.c"
-}
-
-
-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 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 5382 "SearchFilter.c"
-}
-
-
-static gpointer
-_search_filter_actions_ref0 (gpointer self)
-{
-#line 1051 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self ? search_filter_actions_ref (self) : NULL;
-#line 5391 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_context_menu_close_chosen_gtk_menu_item_activate (GtkMenuItem* _sender,
- gpointer self)
-{
-#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_context_menu_close_chosen ((SearchFilterToolbar*) self);
-#line 5401 "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 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_saved_search_button_clicked ((SearchFilterToolbar*) self);
-#line 5411 "SearchFilter.c"
-}
-
-
-SearchFilterToolbar*
-search_filter_toolbar_construct (GType object_type,
- SearchFilterActions* actions)
-{
- SearchFilterToolbar * self = NULL;
- SearchFilterActions* _tmp0_;
- GtkToolbar* _tmp1_;
- TextAction* _tmp2_;
- TextAction* _tmp3_;
- SearchFilterToolbarSearchBox* _tmp4_;
- GtkToolbar* _tmp5_;
- GtkToolbar* _tmp6_;
- GtkMenuItem* _tmp14_;
- GtkMenuItem* _tmp15_;
- GtkMenuItem* _tmp16_;
- GtkMenu* _tmp17_;
- GtkMenuItem* _tmp18_;
- SearchFilterToolbarLabelToolItem* _tmp19_;
- GtkToolbar* _tmp20_;
- SearchFilterToolbarLabelToolItem* _tmp21_;
- SearchFilterToolbarToggleActionToolButton* _tmp22_;
- SearchFilterToolbarToggleActionToolButton* _tmp23_;
- SearchFilterToolbarToggleActionToolButton* _tmp24_;
- SearchFilterToolbarToggleActionToolButton* _tmp25_;
- SearchFilterToolbarToggleActionToolButton* _tmp26_;
- SearchFilterToolbarToggleActionToolButton* _tmp27_;
- GtkToolbar* _tmp28_;
- SearchFilterToolbarToggleActionToolButton* _tmp29_;
- GtkToolbar* _tmp30_;
- SearchFilterToolbarToggleActionToolButton* _tmp31_;
- GtkToolbar* _tmp32_;
- SearchFilterToolbarToggleActionToolButton* _tmp33_;
- GtkSeparatorToolItem* _tmp34_;
- GtkToolbar* _tmp35_;
- GtkSeparatorToolItem* _tmp36_;
- SearchFilterToolbarToggleActionToolButton* _tmp37_;
- SearchFilterToolbarToggleActionToolButton* _tmp38_;
- SearchFilterToolbarToggleActionToolButton* _tmp39_;
- GtkToolbar* _tmp40_;
- SearchFilterToolbarToggleActionToolButton* _tmp41_;
- GtkSeparatorToolItem* _tmp42_;
- GtkToolbar* _tmp43_;
- GtkSeparatorToolItem* _tmp44_;
- GMenuModel* model = NULL;
- GtkBuilder* _tmp45_;
- GObject* _tmp46_;
- GMenuModel* _tmp47_;
- SearchFilterToolbarRatingFilterButton* _tmp48_;
- SearchFilterToolbarRatingFilterButton* _tmp49_;
- SearchFilterToolbarRatingFilterButton* _tmp50_;
- GtkToolbar* _tmp51_;
- SearchFilterToolbarRatingFilterButton* _tmp52_;
- GtkSeparatorToolItem* _tmp53_;
- GtkToolbar* _tmp54_;
- GtkSeparatorToolItem* _tmp55_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp56_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp57_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp58_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp59_;
- GtkToolbar* _tmp60_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp61_;
- GtkSeparatorToolItem* separator_align = NULL;
- GtkSeparatorToolItem* _tmp62_;
- GtkToolbar* _tmp63_;
- GtkToolbar* _tmp64_;
- SearchFilterToolbarSearchBox* _tmp65_;
- GtkToolbar* _tmp66_;
- GtkToolbar* _tmp67_;
- GError * _inner_error_ = NULL;
-#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (actions), NULL);
-#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterToolbar*) g_object_new (object_type, NULL);
-#line 1051 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _search_filter_actions_ref0 (actions);
-#line 1051 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _search_filter_actions_unref0 (self->priv->actions);
-#line 1051 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->actions = _tmp0_;
-#line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = (GtkToolbar*) gtk_toolbar_new ();
-#line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp1_);
-#line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbar);
-#line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->toolbar = _tmp1_;
-#line 1053 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (actions, "media-context-changed", (GCallback) _search_filter_toolbar_on_media_context_changed_search_filter_actions_media_context_changed, self, 0);
-#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = search_filter_actions_get_text (actions);
-#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_;
-#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = search_filter_toolbar_search_box_new (_tmp3_);
-#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp4_);
-#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->search_box);
-#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_box = _tmp4_;
-#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->toolbar;
-#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_buildable_set_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_buildable_get_type (), GtkBuildable), "search-filter-toolbar");
-#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->priv->toolbar;
-#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_set_icon_size (_tmp6_, GTK_ICON_SIZE_SMALL_TOOLBAR);
-#line 5524 "SearchFilter.c"
- {
- GtkBuilder* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = self->builder;
-#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = resources_get_ui ("search_bar.ui");
-#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = _tmp8_;
-#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_builder_add_from_resource (_tmp7_, _tmp9_, &_inner_error_);
-#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (_tmp9_);
-#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5541 "SearchFilter.c"
- goto __catch603_g_error;
- }
- }
- goto __finally603;
- __catch603_g_error:
- {
- GError* err = NULL;
- GError* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- err = _inner_error_;
-#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _inner_error_ = NULL;
-#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = err;
-#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = _tmp10_->message;
-#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = g_strdup_printf (_ ("Error loading search bar UI: %s"), _tmp11_);
-#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = _tmp12_;
-#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- app_window_panic (_tmp13_);
-#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (_tmp13_);
-#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_error_free0 (err);
-#line 5571 "SearchFilter.c"
- }
- __finally603:
-#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1059 "/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 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_clear_error (&_inner_error_);
-#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return NULL;
-#line 5582 "SearchFilter.c"
- }
-#line 1071 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp14_ = self->priv->close_item;
-#line 1071 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_menu_item_set_label (_tmp14_, _ ("Close"));
-#line 1072 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp15_ = self->priv->close_item;
-#line 1072 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget));
-#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp16_ = self->priv->close_item;
-#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp16_, "activate", (GCallback) _search_filter_toolbar_on_context_menu_close_chosen_gtk_menu_item_activate, self, 0);
-#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp17_ = self->priv->close_menu;
-#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp18_ = self->priv->close_item;
-#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_menu_shell_append (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_menu_shell_get_type (), GtkMenuShell), _tmp18_);
-#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp19_ = search_filter_toolbar_label_tool_item_new (_ ("Type"), 10, 5);
-#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp19_);
-#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->label_type);
-#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->label_type = _tmp19_;
-#line 1078 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp20_ = self->priv->toolbar;
-#line 1078 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp21_ = self->priv->label_type;
-#line 1078 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp22_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.photos");
-#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp22_);
-#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbtn_photos);
-#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->toolbtn_photos = _tmp22_;
-#line 1081 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp23_ = self->priv->toolbtn_photos;
-#line 1081 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_tool_item_get_type (), GtkToolItem), _ ("Photos"));
-#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp24_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.videos");
-#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp24_);
-#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbtn_videos);
-#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->toolbtn_videos = _tmp24_;
-#line 1084 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp25_ = self->priv->toolbtn_videos;
-#line 1084 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_tool_item_get_type (), GtkToolItem), _ ("Videos"));
-#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp26_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.raw");
-#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp26_);
-#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbtn_raw);
-#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->toolbtn_raw = _tmp26_;
-#line 1087 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp27_ = self->priv->toolbtn_raw;
-#line 1087 "/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), _ ("RAW Photos"));
-#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp28_ = self->priv->toolbar;
-#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp29_ = self->priv->toolbtn_photos;
-#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp30_ = self->priv->toolbar;
-#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp31_ = self->priv->toolbtn_videos;
-#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp32_ = self->priv->toolbar;
-#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp33_ = self->priv->toolbtn_raw;
-#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp34_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp34_);
-#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->sepr_mediatype_flagged);
-#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->sepr_mediatype_flagged = _tmp34_;
-#line 1095 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp35_ = self->priv->toolbar;
-#line 1095 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp36_ = self->priv->sepr_mediatype_flagged;
-#line 1095 "/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 1099 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp37_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.flagged");
-#line 1099 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp37_);
-#line 1099 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbtn_flag);
-#line 1099 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->toolbtn_flag = _tmp37_;
-#line 1100 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp38_ = self->priv->toolbtn_flag;
-#line 1100 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_toggle_action_tool_button_set_label (_tmp38_, _ ("Flagged"));
-#line 1101 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp39_ = self->priv->toolbtn_flag;
-#line 1101 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_tool_item_get_type (), GtkToolItem), _ ("Flagged"));
-#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp40_ = self->priv->toolbar;
-#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp41_ = self->priv->toolbtn_flag;
-#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp42_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp42_);
-#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->sepr_flagged_rating);
-#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->sepr_flagged_rating = _tmp42_;
-#line 1107 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp43_ = self->priv->toolbar;
-#line 1107 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp44_ = self->priv->sepr_flagged_rating;
-#line 1107 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp43_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp45_ = self->builder;
-#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp46_ = gtk_builder_get_object (_tmp45_, "popup-menu");
-#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp47_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp46_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp46_) : NULL);
-#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- model = _tmp47_;
-#line 1111 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp48_ = search_filter_toolbar_rating_filter_button_new (model);
-#line 1111 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp48_);
-#line 1111 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->rating_button);
-#line 1111 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->rating_button = _tmp48_;
-#line 1112 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp49_ = self->priv->rating_button;
-#line 1112 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_rating_filter_button_set_label (_tmp49_, _ ("Rating"));
-#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp50_ = self->priv->rating_button;
-#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_tool_item_get_type (), GtkToolItem), FALSE);
-#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp51_ = self->priv->toolbar;
-#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp52_ = self->priv->rating_button;
-#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp53_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp53_);
-#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->sepr_rating_saved);
-#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->sepr_rating_saved = _tmp53_;
-#line 1118 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp54_ = self->priv->toolbar;
-#line 1118 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp55_ = self->priv->sepr_rating_saved;
-#line 1118 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp54_, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1121 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp56_ = self->priv->saved_search_button;
-#line 1121 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_tool_item_get_type (), GtkToolItem), FALSE);
-#line 1122 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp57_ = self->priv->saved_search_button;
-#line 1122 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_filter_button_set_label (_tmp57_, _ ("Saved Search"));
-#line 1123 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp58_ = self->priv->saved_search_button;
-#line 1123 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_tool_item_get_type (), GtkToolItem), _ ("Use a saved search to filter items in the current view"));
-#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp59_ = self->priv->saved_search_button;
-#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp59_, "clicked", (GCallback) _search_filter_toolbar_on_saved_search_button_clicked_search_filter_toolbar_saved_search_filter_button_clicked, self, 0);
-#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp60_ = self->priv->toolbar;
-#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp61_ = self->priv->saved_search_button;
-#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp60_, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp62_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp62_);
-#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- separator_align = _tmp62_;
-#line 1129 "/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 1130 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_separator_tool_item_set_draw (separator_align, FALSE);
-#line 1131 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp63_ = self->priv->toolbar;
-#line 1131 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toolbar_insert (_tmp63_, G_TYPE_CHECK_INSTANCE_CAST (separator_align, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 1134 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp64_ = self->priv->toolbar;
-#line 1134 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp65_ = self->priv->search_box;
-#line 1134 "/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 1136 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp66_ = self->priv->toolbar;
-#line 1136 "/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 (_tmp66_, gtk_widget_get_type (), GtkWidget));
-#line 1139 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (actions, "flagged-toggled", (GCallback) _search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled, self, 0);
-#line 1140 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (actions, "photos-toggled", (GCallback) _search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled, self, 0);
-#line 1141 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (actions, "videos-toggled", (GCallback) _search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled, self, 0);
-#line 1142 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (actions, "raw-toggled", (GCallback) _search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled, self, 0);
-#line 1143 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (actions, "rating-changed", (GCallback) _search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed, self, 0);
-#line 1144 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (actions, "text-changed", (GCallback) _search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed, self, 0);
-#line 1145 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (actions, "criteria-changed", (GCallback) _search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed, self, 0);
-#line 1148 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp67_ = self->priv->toolbar;
-#line 1148 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp67_, "popup-context-menu", (GCallback) _search_filter_toolbar_on_context_menu_requested_gtk_toolbar_popup_context_menu, self, 0);
-#line 1150 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_media_context_changed (self, search_filter_actions_get_has_photos (actions), search_filter_actions_get_has_videos (actions), search_filter_actions_get_has_raw (actions), search_filter_actions_get_has_flagged (actions));
-#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (separator_align);
-#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (model);
-#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 5836 "SearchFilter.c"
-}
-
-
-SearchFilterToolbar*
-search_filter_toolbar_new (SearchFilterActions* actions)
-{
-#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_toolbar_construct (TYPE_SEARCH_FILTER_TOOLBAR, actions);
-#line 5845 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_media_context_changed (SearchFilterToolbar* self,
- gboolean has_photos,
- gboolean has_videos,
- gboolean has_raw,
- gboolean has_flagged)
-{
- gboolean _tmp0_ = FALSE;
-#line 1169 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (has_photos) {
-#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = TRUE;
-#line 5863 "SearchFilter.c"
- } else {
-#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = has_raw;
-#line 5867 "SearchFilter.c"
- }
-#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp0_) {
-#line 5871 "SearchFilter.c"
- SearchFilterToolbarToggleActionToolButton* _tmp1_;
-#line 1174 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->toolbtn_photos;
-#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 5877 "SearchFilter.c"
- } else {
- SearchFilterToolbarToggleActionToolButton* _tmp2_;
-#line 1176 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->toolbtn_photos;
-#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 5884 "SearchFilter.c"
- }
-#line 1178 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (has_videos) {
-#line 5888 "SearchFilter.c"
- SearchFilterToolbarToggleActionToolButton* _tmp3_;
-#line 1179 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->toolbtn_videos;
-#line 1179 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp3_, RESOURCES_ICON_FILTER_VIDEOS);
-#line 5894 "SearchFilter.c"
- } else {
- SearchFilterToolbarToggleActionToolButton* _tmp4_;
-#line 1181 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->toolbtn_videos;
-#line 1181 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp4_, RESOURCES_ICON_FILTER_VIDEOS_DISABLED);
-#line 5901 "SearchFilter.c"
- }
-#line 1183 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (has_raw) {
-#line 5905 "SearchFilter.c"
- SearchFilterToolbarToggleActionToolButton* _tmp5_;
-#line 1184 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->toolbtn_raw;
-#line 1184 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp5_, RESOURCES_ICON_FILTER_RAW);
-#line 5911 "SearchFilter.c"
- } else {
- SearchFilterToolbarToggleActionToolButton* _tmp6_;
-#line 1186 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->priv->toolbtn_raw;
-#line 1186 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp6_, RESOURCES_ICON_FILTER_RAW_DISABLED);
-#line 5918 "SearchFilter.c"
- }
-#line 1188 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (has_flagged) {
-#line 5922 "SearchFilter.c"
- SearchFilterToolbarToggleActionToolButton* _tmp7_;
-#line 1189 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = self->priv->toolbtn_flag;
-#line 1189 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp7_, RESOURCES_ICON_FILTER_FLAGGED);
-#line 5928 "SearchFilter.c"
- } else {
- SearchFilterToolbarToggleActionToolButton* _tmp8_;
-#line 1191 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = self->priv->toolbtn_flag;
-#line 1191 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp8_, RESOURCES_ICON_FILTER_FLAGGED_DISABLED);
-#line 5935 "SearchFilter.c"
- }
-}
-
-
-static gboolean
-search_filter_toolbar_on_context_menu_requested (SearchFilterToolbar* self,
- gint x,
- gint y,
- gint button)
-{
- gboolean result = FALSE;
- GtkMenu* _tmp0_;
-#line 1195 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SEARCH_FILTER_TOOLBAR (self), FALSE);
-#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->close_menu;
-#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_menu_popup (_tmp0_, NULL, NULL, NULL, NULL, (guint) button, gtk_get_current_event_time ());
-#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 5958 "SearchFilter.c"
-}
-
-
-static GVariant*
-_variant_new39 (gboolean value)
-{
-#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 5967 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_context_menu_close_chosen (SearchFilterToolbar* self)
-{
- AppWindow* aw = NULL;
- LibraryWindow* _tmp0_;
- GSimpleAction* action = NULL;
- AppWindow* _tmp1_;
- GAction* _tmp2_;
- GSimpleAction* _tmp3_;
- GSimpleAction* _tmp4_;
-#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = library_window_get_app ();
-#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- aw = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_APP_WINDOW, AppWindow);
-#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = aw;
-#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 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 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- action = _tmp3_;
-#line 1212 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = action;
-#line 1212 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp4_ != NULL) {
-#line 5999 "SearchFilter.c"
- GSimpleAction* _tmp5_;
- GVariant* _tmp6_;
-#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = action;
-#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _variant_new39 (FALSE);
-#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (_tmp5_, "change-state", _tmp6_);
-#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp6_);
-#line 6010 "SearchFilter.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (action);
-#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (aw);
-#line 6016 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_flagged_toggled (SearchFilterToolbar* self)
-{
-#line 1218 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1219 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6027 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_videos_toggled (SearchFilterToolbar* self)
-{
-#line 1222 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1223 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6038 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_photos_toggled (SearchFilterToolbar* self)
-{
-#line 1226 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1227 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6049 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_raw_toggled (SearchFilterToolbar* self)
-{
-#line 1230 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1231 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6060 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_search_text_changed (SearchFilterToolbar* self)
-{
-#line 1234 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1235 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6071 "SearchFilter.c"
-}
-
-
-static GVariant*
-_variant_new40 (gboolean value)
-{
-#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 6080 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_rating_changed (SearchFilterToolbar* self)
-{
- AppWindow* aw = NULL;
- LibraryWindow* _tmp0_;
- AppWindow* _tmp1_;
- GSimpleAction* action = NULL;
- AppWindow* _tmp2_;
- GAction* _tmp3_;
- GSimpleAction* _tmp4_;
- GSimpleAction* _tmp5_;
-#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = library_window_get_app ();
-#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- aw = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_APP_WINDOW, AppWindow);
-#line 1241 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = aw;
-#line 1241 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp1_ == NULL) {
-#line 1242 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (aw);
-#line 1242 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return;
-#line 6109 "SearchFilter.c"
- }
-#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = aw;
-#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 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 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- action = _tmp4_;
-#line 1248 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = action;
-#line 1248 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp5_ != NULL) {
-#line 6123 "SearchFilter.c"
- GSimpleAction* _tmp6_;
- GVariant* _tmp7_;
-#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = action;
-#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = _variant_new40 (TRUE);
-#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (_tmp6_, "change-state", _tmp7_);
-#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp7_);
-#line 6134 "SearchFilter.c"
- }
-#line 1252 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (action);
-#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (aw);
-#line 6142 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_criteria_changed (SearchFilterToolbar* self)
-{
-#line 1258 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1259 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6153 "SearchFilter.c"
-}
-
-
-static gpointer
-_view_filter_ref0 (gpointer self)
-{
-#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self ? view_filter_ref (self) : NULL;
-#line 6162 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_set_view_filter (SearchFilterToolbar* self,
- SearchViewFilter* search_filter)
-{
- SearchViewFilter* _tmp0_;
- SearchViewFilter* _tmp1_;
- SearchFilterActions* _tmp2_;
- SearchFilterToolbarRatingFilterButton* _tmp3_;
-#line 1262 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1262 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_VIEW_FILTER (search_filter));
-#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->search_filter;
-#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (search_filter == _tmp0_) {
-#line 1264 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return;
-#line 6184 "SearchFilter.c"
- }
-#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _view_filter_ref0 (search_filter);
-#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _view_filter_unref0 (self->priv->search_filter);
-#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter = _tmp1_;
-#line 1269 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->actions;
-#line 1269 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_actions_set_sensitive_for_search_criteria (_tmp2_, (SearchFilterCriteria) search_view_filter_get_criteria (search_filter));
-#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->rating_button;
-#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), (SEARCH_FILTER_CRITERIA_RATING & search_view_filter_get_criteria (search_filter)) != 0);
-#line 1272 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6202 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_unset_view_filter (SearchFilterToolbar* self)
-{
- DisabledViewFilter* _tmp0_;
- DisabledViewFilter* _tmp1_;
-#line 1275 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = disabled_view_filter_new ();
-#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_;
-#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 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _view_filter_unref0 (_tmp1_);
-#line 6221 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_update (SearchFilterToolbar* self)
-{
- SearchViewFilter* _tmp0_;
- SearchViewFilter* _tmp3_;
- SearchViewFilter* _tmp4_;
- SearchFilterActions* _tmp5_;
- TextAction* _tmp6_;
- TextAction* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
- SearchViewFilter* _tmp10_;
- SearchFilterActions* _tmp11_;
- GSimpleAction* _tmp12_;
- GSimpleAction* _tmp13_;
- GVariant* _tmp14_;
- GVariant* _tmp15_;
- SearchViewFilter* _tmp16_;
- SearchFilterActions* _tmp17_;
- GSimpleAction* _tmp18_;
- GSimpleAction* _tmp19_;
- GVariant* _tmp20_;
- GVariant* _tmp21_;
- SearchViewFilter* _tmp22_;
- SearchFilterActions* _tmp23_;
- GSimpleAction* _tmp24_;
- GSimpleAction* _tmp25_;
- GVariant* _tmp26_;
- GVariant* _tmp27_;
- SearchViewFilter* _tmp28_;
- SearchFilterActions* _tmp29_;
- GSimpleAction* _tmp30_;
- GSimpleAction* _tmp31_;
- GVariant* _tmp32_;
- GVariant* _tmp33_;
- RatingFilter filter = 0;
- SearchFilterActions* _tmp34_;
- GSimpleAction* _tmp35_;
- GSimpleAction* _tmp36_;
- GVariant* _tmp37_;
- GVariant* _tmp38_;
- const gchar* _tmp39_;
- RatingFilter _tmp40_;
- SearchViewFilter* _tmp41_;
- RatingFilter _tmp42_;
- SearchFilterToolbarRatingFilterButton* _tmp43_;
- RatingFilter _tmp44_;
- SearchViewFilter* _tmp45_;
- SavedSearch* _tmp46_;
- SearchFilterCriteria criteria = 0;
- SearchFilterActions* _tmp47_;
- SearchFilterToolbarSearchBox* _tmp48_;
- SearchFilterCriteria _tmp49_;
- SearchFilterToolbarRatingFilterButton* _tmp50_;
- SearchFilterCriteria _tmp51_;
- SearchFilterToolbarToggleActionToolButton* _tmp52_;
- SearchFilterCriteria _tmp53_;
- SearchFilterToolbarLabelToolItem* _tmp54_;
- SearchFilterCriteria _tmp55_;
- SearchFilterToolbarToggleActionToolButton* _tmp56_;
- SearchFilterCriteria _tmp57_;
- SearchFilterToolbarToggleActionToolButton* _tmp58_;
- SearchFilterCriteria _tmp59_;
- SearchFilterToolbarToggleActionToolButton* _tmp60_;
- SearchFilterCriteria _tmp61_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp62_;
- SearchFilterCriteria _tmp63_;
- gboolean _tmp64_ = FALSE;
- SearchFilterToolbarLabelToolItem* _tmp65_;
- gboolean _tmp66_;
- gboolean _tmp67_;
- GtkSeparatorToolItem* _tmp71_;
- gboolean _tmp72_ = FALSE;
- gboolean _tmp73_ = FALSE;
- SearchFilterToolbarLabelToolItem* _tmp74_;
- gboolean _tmp75_;
- gboolean _tmp76_;
- GtkSeparatorToolItem* _tmp87_;
- SearchViewFilter* _tmp88_;
-#line 1280 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1281 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->search_filter;
-#line 1281 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (NULL == _tmp0_) {
-#line 6310 "SearchFilter.c"
- LibraryWindow* _tmp1_;
- LibraryWindow* _tmp2_;
-#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = library_window_get_app ();
-#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = _tmp1_;
-#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- library_window_show_search_bar (_tmp2_, TRUE);
-#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp2_);
-#line 6321 "SearchFilter.c"
- }
-#line 1286 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->search_filter;
-#line 1286 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _vala_assert (NULL != _tmp3_, "null != search_filter");
-#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->search_filter;
-#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->actions;
-#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = search_filter_actions_get_text (_tmp5_);
-#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = _tmp6_;
-#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = text_action_get_value (_tmp7_);
-#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = _tmp8_;
-#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_view_filter_set_search_filter (_tmp4_, _tmp9_);
-#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = self->priv->search_filter;
-#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = self->priv->actions;
-#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = search_filter_actions_get_flagged (_tmp11_);
-#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = _tmp12_;
-#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 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp15_ = _tmp14_;
-#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_view_filter_set_flagged (_tmp10_, g_variant_get_boolean (_tmp15_));
-#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp15_);
-#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp16_ = self->priv->search_filter;
-#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp17_ = self->priv->actions;
-#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp18_ = search_filter_actions_get_videos (_tmp17_);
-#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp19_ = _tmp18_;
-#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp20_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, g_action_get_type (), GAction));
-#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp21_ = _tmp20_;
-#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_view_filter_set_show_media_video (_tmp16_, g_variant_get_boolean (_tmp21_));
-#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp21_);
-#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp22_ = self->priv->search_filter;
-#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp23_ = self->priv->actions;
-#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp24_ = search_filter_actions_get_photos (_tmp23_);
-#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp25_ = _tmp24_;
-#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp26_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, g_action_get_type (), GAction));
-#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp27_ = _tmp26_;
-#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_view_filter_set_show_media_photos (_tmp22_, g_variant_get_boolean (_tmp27_));
-#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp27_);
-#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp28_ = self->priv->search_filter;
-#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp29_ = self->priv->actions;
-#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp30_ = search_filter_actions_get_raw (_tmp29_);
-#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp31_ = _tmp30_;
-#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp32_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, g_action_get_type (), GAction));
-#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp33_ = _tmp32_;
-#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_view_filter_set_show_media_raw (_tmp28_, g_variant_get_boolean (_tmp33_));
-#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp33_);
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp34_ = self->priv->actions;
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp35_ = search_filter_actions_get_rating (_tmp34_);
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp36_ = _tmp35_;
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp37_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, g_action_get_type (), GAction));
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp38_ = _tmp37_;
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp39_ = g_variant_get_string (_tmp38_, NULL);
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp40_ = (RatingFilter) atoi (_tmp39_);
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_variant_unref0 (_tmp38_);
-#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- filter = _tmp40_;
-#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp41_ = self->priv->search_filter;
-#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp42_ = filter;
-#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_view_filter_set_rating_filter (_tmp41_, _tmp42_);
-#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp43_ = self->priv->rating_button;
-#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp44_ = filter;
-#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_rating_filter_button_set_filter_icon (_tmp43_, _tmp44_);
-#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp45_ = self->priv->search_filter;
-#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp46_ = self->priv->saved_search;
-#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_view_filter_set_saved_search (_tmp45_, _tmp46_);
-#line 1304 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp47_ = self->priv->actions;
-#line 1304 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- criteria = search_filter_actions_get_criteria (_tmp47_);
-#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp48_ = self->priv->search_box;
-#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp49_ = criteria;
-#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_widget_get_type (), GtkWidget), (_tmp49_ & SEARCH_FILTER_CRITERIA_TEXT) != 0);
-#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp50_ = self->priv->rating_button;
-#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp51_ = criteria;
-#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget), (_tmp51_ & SEARCH_FILTER_CRITERIA_RATING) != 0);
-#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp52_ = self->priv->toolbtn_flag;
-#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp53_ = criteria;
-#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), (_tmp53_ & SEARCH_FILTER_CRITERIA_FLAG) != 0);
-#line 1312 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp54_ = self->priv->label_type;
-#line 1312 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp55_ = criteria;
-#line 1312 "/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_MEDIA) != 0);
-#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp56_ = self->priv->toolbtn_photos;
-#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp57_ = criteria;
-#line 1313 "/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_MEDIA) != 0);
-#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp58_ = self->priv->toolbtn_videos;
-#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp59_ = criteria;
-#line 1314 "/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_MEDIA) != 0);
-#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp60_ = self->priv->toolbtn_raw;
-#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp61_ = criteria;
-#line 1315 "/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 1317 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp62_ = self->priv->saved_search_button;
-#line 1317 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp63_ = criteria;
-#line 1317 "/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_SAVEDSEARCH) != 0);
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp65_ = self->priv->label_type;
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp66_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget));
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp67_ = _tmp66_;
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp67_) {
-#line 6501 "SearchFilter.c"
- SearchFilterToolbarToggleActionToolButton* _tmp68_;
- gboolean _tmp69_;
- gboolean _tmp70_;
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp68_ = self->priv->toolbtn_flag;
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp69_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_widget_get_type (), GtkWidget));
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp70_ = _tmp69_;
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp64_ = _tmp70_;
-#line 6513 "SearchFilter.c"
- } else {
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp64_ = FALSE;
-#line 6517 "SearchFilter.c"
- }
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp71_ = self->priv->sepr_mediatype_flagged;
-#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), _tmp64_);
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp74_ = self->priv->label_type;
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp75_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget));
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp76_ = _tmp75_;
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp76_) {
-#line 6531 "SearchFilter.c"
- SearchFilterToolbarRatingFilterButton* _tmp77_;
- gboolean _tmp78_;
- gboolean _tmp79_;
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp77_ = self->priv->rating_button;
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp78_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_widget_get_type (), GtkWidget));
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp79_ = _tmp78_;
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp73_ = _tmp79_;
-#line 6543 "SearchFilter.c"
- } else {
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp73_ = FALSE;
-#line 6547 "SearchFilter.c"
- }
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp73_) {
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp72_ = TRUE;
-#line 6553 "SearchFilter.c"
- } else {
- gboolean _tmp80_ = FALSE;
- SearchFilterToolbarToggleActionToolButton* _tmp81_;
- gboolean _tmp82_;
- gboolean _tmp83_;
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp81_ = self->priv->toolbtn_flag;
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp82_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, gtk_widget_get_type (), GtkWidget));
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp83_ = _tmp82_;
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp83_) {
-#line 6567 "SearchFilter.c"
- SearchFilterToolbarRatingFilterButton* _tmp84_;
- gboolean _tmp85_;
- gboolean _tmp86_;
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp84_ = self->priv->rating_button;
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp85_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, gtk_widget_get_type (), GtkWidget));
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp86_ = _tmp85_;
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp80_ = _tmp86_;
-#line 6579 "SearchFilter.c"
- } else {
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp80_ = FALSE;
-#line 6583 "SearchFilter.c"
- }
-#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp72_ = _tmp80_;
-#line 6587 "SearchFilter.c"
- }
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp87_ = self->priv->sepr_flagged_rating;
-#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, gtk_widget_get_type (), GtkWidget), _tmp72_);
-#line 1327 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp88_ = self->priv->search_filter;
-#line 1327 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_VIEW_FILTER, ViewFilter), "refresh");
-#line 6597 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_savedsearch_selected (SearchFilterToolbar* self,
- SavedSearch* saved_search)
-{
- SavedSearch* _tmp0_;
-#line 1330 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1330 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SAVED_SEARCH (saved_search));
-#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _g_object_ref0 (saved_search);
-#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->saved_search);
-#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->saved_search = _tmp0_;
-#line 1332 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6618 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_disable_savedsearch (SearchFilterToolbar* self)
-{
-#line 1335 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1336 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->saved_search);
-#line 1336 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->saved_search = NULL;
-#line 1337 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_update (self);
-#line 6633 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_edit_dialog (SearchFilterToolbar* self,
- SavedSearch* search)
-{
- SearchFilterToolbarSavedSearchFilterButton* _tmp0_;
- SearchFilterToolbarSavedSearchPopover* _tmp1_;
- SavedSearchDialog* ssd = NULL;
- SavedSearchDialog* _tmp2_;
-#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->saved_search_button;
-#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_->filter_popup;
-#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_hide (_tmp1_);
-#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = saved_search_dialog_new_edit_existing (search);
-#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp2_);
-#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ssd = _tmp2_;
-#line 1343 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- saved_search_dialog_show (ssd);
-#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (ssd);
-#line 6665 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_delete_dialog (SearchFilterToolbar* self,
- SavedSearch* search)
-{
- SearchFilterToolbarSavedSearchFilterButton* _tmp0_;
- SearchFilterToolbarSavedSearchPopover* _tmp1_;
-#line 1346 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1346 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->saved_search_button;
-#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_->filter_popup;
-#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_hide (_tmp1_);
-#line 1348 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (dialogs_confirm_delete_saved_search (search)) {
-#line 6687 "SearchFilter.c"
- CommandManager* _tmp2_;
- CommandManager* _tmp3_;
- DeleteSavedSearchCommand* _tmp4_;
- DeleteSavedSearchCommand* _tmp5_;
-#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = app_window_get_command_manager ();
-#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_;
-#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = delete_saved_search_command_new (search);
-#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = _tmp4_;
-#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command));
-#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp5_);
-#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _command_manager_unref0 (_tmp3_);
-#line 6706 "SearchFilter.c"
- }
-}
-
-
-static void
-search_filter_toolbar_add_dialog (SearchFilterToolbar* self)
-{
- SearchFilterToolbarSavedSearchFilterButton* _tmp0_;
- SearchFilterToolbarSavedSearchPopover* _tmp1_;
- SavedSearchDialog* _tmp2_;
- SavedSearchDialog* _tmp3_;
-#line 1352 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->saved_search_button;
-#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_->filter_popup;
-#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_hide (_tmp1_);
-#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = saved_search_dialog_new ();
-#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp2_);
-#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_;
-#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- saved_search_dialog_show (_tmp3_);
-#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp3_);
-#line 6736 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_popover_closed (SearchFilterToolbar* self)
-{
- SearchFilterToolbarSavedSearchFilterButton* _tmp0_;
- SavedSearch* _tmp1_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp2_;
- SearchFilterToolbarSavedSearchPopover* _tmp3_;
-#line 1357 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1359 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->elide_showing_again = TRUE;
-#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->saved_search_button;
-#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->saved_search;
-#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_filter_button_set_active (_tmp0_, _tmp1_ != NULL);
-#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->saved_search_button;
-#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_->filter_popup;
-#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_hide (_tmp3_);
-#line 6763 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked (SearchFilterToolbarSavedSearchPopover* _sender,
- SavedSearch* search,
- gpointer self)
-{
-#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_edit_dialog ((SearchFilterToolbar*) self, search);
-#line 6774 "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 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_savedsearch_selected ((SearchFilterToolbar*) self, search);
-#line 6785 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked (SearchFilterToolbarSavedSearchPopover* _sender,
- SavedSearch* search,
- gpointer self)
-{
-#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_delete_dialog ((SearchFilterToolbar*) self, search);
-#line 6796 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked (SearchFilterToolbarSavedSearchPopover* _sender,
- gpointer self)
-{
-#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_add_dialog ((SearchFilterToolbar*) self);
-#line 6806 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed (SearchFilterToolbarSavedSearchPopover* _sender,
- gpointer self)
-{
-#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_on_popover_closed ((SearchFilterToolbar*) self);
-#line 6816 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_on_saved_search_button_clicked (SearchFilterToolbar* self)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 1364 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->elide_showing_again;
-#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp1_) {
-#line 6831 "SearchFilter.c"
- SavedSearch* _tmp2_;
-#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->saved_search;
-#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _tmp2_ == NULL;
-#line 6837 "SearchFilter.c"
- } else {
-#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = FALSE;
-#line 6841 "SearchFilter.c"
- }
-#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp0_) {
-#line 6845 "SearchFilter.c"
- } else {
- SavedSearch* _tmp3_;
-#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->saved_search;
-#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp3_ != NULL) {
-#line 6852 "SearchFilter.c"
- SearchFilterToolbarSavedSearchFilterButton* _tmp4_;
-#line 1367 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->saved_search);
-#line 1367 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->saved_search = NULL;
-#line 1368 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->saved_search_button;
-#line 1368 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_filter_button_set_active (_tmp4_, FALSE);
-#line 1369 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_disable_savedsearch (self);
-#line 6864 "SearchFilter.c"
- } else {
- SearchFilterToolbarSavedSearchFilterButton* _tmp5_;
- SearchFilterToolbarSavedSearchPopover* _tmp6_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp22_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp23_;
- SearchFilterToolbarSavedSearchPopover* _tmp24_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp25_;
- SearchFilterToolbarSavedSearchPopover* _tmp26_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp27_;
- SearchFilterToolbarSavedSearchPopover* _tmp28_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp29_;
- SearchFilterToolbarSavedSearchPopover* _tmp30_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp31_;
- SearchFilterToolbarSavedSearchPopover* _tmp32_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp33_;
- SearchFilterToolbarSavedSearchPopover* _tmp34_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp35_;
- SearchFilterToolbarSavedSearchPopover* _tmp36_;
-#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->saved_search_button;
-#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _tmp5_->filter_popup;
-#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp6_ != NULL) {
-#line 6889 "SearchFilter.c"
- SearchFilterToolbarSavedSearchFilterButton* _tmp7_;
- SearchFilterToolbarSavedSearchPopover* _tmp8_;
- guint _tmp9_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp10_;
- SearchFilterToolbarSavedSearchPopover* _tmp11_;
- guint _tmp12_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp13_;
- SearchFilterToolbarSavedSearchPopover* _tmp14_;
- guint _tmp15_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp16_;
- SearchFilterToolbarSavedSearchPopover* _tmp17_;
- guint _tmp18_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp19_;
- SearchFilterToolbarSavedSearchPopover* _tmp20_;
- guint _tmp21_;
-#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = self->priv->saved_search_button;
-#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = _tmp7_->filter_popup;
-#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 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 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = self->priv->saved_search_button;
-#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = _tmp10_->filter_popup;
-#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 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 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = self->priv->saved_search_button;
-#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp14_ = _tmp13_->filter_popup;
-#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 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 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp16_ = self->priv->saved_search_button;
-#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp17_ = _tmp16_->filter_popup;
-#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 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 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp19_ = self->priv->saved_search_button;
-#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp20_ = _tmp19_->filter_popup;
-#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 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 6945 "SearchFilter.c"
- }
-#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp22_ = self->priv->saved_search_button;
-#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp23_ = self->priv->saved_search_button;
-#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 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _search_filter_toolbar_saved_search_popover_unref0 (_tmp22_->filter_popup);
-#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp22_->filter_popup = _tmp24_;
-#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp25_ = self->priv->saved_search_button;
-#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp26_ = _tmp25_->filter_popup;
-#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 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp27_ = self->priv->saved_search_button;
-#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp28_ = _tmp27_->filter_popup;
-#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 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp29_ = self->priv->saved_search_button;
-#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp30_ = _tmp29_->filter_popup;
-#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 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp31_ = self->priv->saved_search_button;
-#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp32_ = _tmp31_->filter_popup;
-#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 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp33_ = self->priv->saved_search_button;
-#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp34_ = _tmp33_->filter_popup;
-#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 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp35_ = self->priv->saved_search_button;
-#line 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp36_ = _tmp35_->filter_popup;
-#line 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_show_all (_tmp36_);
-#line 6993 "SearchFilter.c"
- }
- }
-#line 1387 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->elide_showing_again = FALSE;
-#line 6998 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_take_focus (SearchFilterToolbar* self)
-{
- SearchFilterToolbarSearchBox* _tmp0_;
-#line 1390 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self));
-#line 1391 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->search_box;
-#line 1391 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_get_focus (_tmp0_);
-#line 7012 "SearchFilter.c"
-}
-
-
-static SearchFilterToolbarLabelToolItem*
-search_filter_toolbar_label_tool_item_construct (GType object_type,
- const gchar* s,
- gint left_padding,
- gint right_padding)
-{
- SearchFilterToolbarLabelToolItem * self = NULL;
- GtkLabel* _tmp0_;
- gboolean _tmp1_ = FALSE;
- GtkLabel* _tmp6_;
-#line 616 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (s != NULL, NULL);
-#line 616 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterToolbarLabelToolItem*) g_object_new (object_type, NULL);
-#line 617 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = (GtkLabel*) gtk_label_new (s);
-#line 617 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp0_);
-#line 617 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->label);
-#line 617 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->label = _tmp0_;
-#line 618 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (left_padding != 0) {
-#line 618 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = TRUE;
-#line 7042 "SearchFilter.c"
- } else {
-#line 618 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = right_padding != 0;
-#line 7046 "SearchFilter.c"
- }
-#line 618 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp1_) {
-#line 7050 "SearchFilter.c"
- GtkLabel* _tmp2_;
- GtkLabel* _tmp3_;
- GtkLabel* _tmp4_;
- GtkLabel* _tmp5_;
-#line 619 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->label;
-#line 619 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 620 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->label;
-#line 620 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 621 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->label;
-#line 621 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), left_padding);
-#line 622 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->label;
-#line 622 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), right_padding);
-#line 7071 "SearchFilter.c"
- }
-#line 624 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->priv->label;
-#line 624 "/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 (_tmp6_, gtk_widget_get_type (), GtkWidget));
-#line 616 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 7079 "SearchFilter.c"
-}
-
-
-static SearchFilterToolbarLabelToolItem*
-search_filter_toolbar_label_tool_item_new (const gchar* s,
- gint left_padding,
- gint right_padding)
-{
-#line 616 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_toolbar_label_tool_item_construct (SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, s, left_padding, right_padding);
-#line 7090 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_label_tool_item_class_init (SearchFilterToolbarLabelToolItemClass * klass)
-{
-#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_label_tool_item_parent_class = g_type_class_peek_parent (klass);
-#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (SearchFilterToolbarLabelToolItemPrivate));
-#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_label_tool_item_finalize;
-#line 7103 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_label_tool_item_instance_init (SearchFilterToolbarLabelToolItem * self)
-{
-#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_GET_PRIVATE (self);
-#line 7112 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_label_tool_item_finalize (GObject * obj)
-{
- SearchFilterToolbarLabelToolItem * self;
-#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItem);
-#line 614 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->label);
-#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (search_filter_toolbar_label_tool_item_parent_class)->finalize (obj);
-#line 7126 "SearchFilter.c"
-}
-
-
-static GType
-search_filter_toolbar_label_tool_item_get_type (void)
-{
- static volatile gsize search_filter_toolbar_label_tool_item_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_toolbar_label_tool_item_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarLabelToolItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_label_tool_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarLabelToolItem), 0, (GInstanceInitFunc) search_filter_toolbar_label_tool_item_instance_init, NULL };
- GType search_filter_toolbar_label_tool_item_type_id;
- search_filter_toolbar_label_tool_item_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarLabelToolItem", &g_define_type_info, 0);
- g_once_init_leave (&search_filter_toolbar_label_tool_item_type_id__volatile, search_filter_toolbar_label_tool_item_type_id);
- }
- return search_filter_toolbar_label_tool_item_type_id__volatile;
-}
-
-
-static SearchFilterToolbarToggleActionToolButton*
-search_filter_toolbar_toggle_action_tool_button_construct (GType object_type,
- const gchar* action)
-{
- SearchFilterToolbarToggleActionToolButton * self = NULL;
- GtkToggleButton* _tmp0_;
- GtkToggleButton* _tmp1_;
- GtkToggleButton* _tmp2_;
- GtkToggleButton* _tmp3_;
- GtkToggleButton* _tmp4_;
- GtkToggleButton* _tmp5_;
- GtkToggleButton* _tmp6_;
-#line 631 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (action != NULL, NULL);
-#line 631 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterToolbarToggleActionToolButton*) g_object_new (object_type, NULL);
-#line 632 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = (GtkToggleButton*) gtk_toggle_button_new ();
-#line 632 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp0_);
-#line 632 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->button);
-#line 632 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->button = _tmp0_;
-#line 633 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->button;
-#line 633 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 634 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->button;
-#line 634 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_actionable_get_type (), GtkActionable), action);
-#line 635 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->button;
-#line 635 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_has_tooltip (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 636 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->button;
-#line 636 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_relief (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_button_get_type (), GtkButton), GTK_RELIEF_NONE);
-#line 637 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->button;
-#line 637 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), 2);
-#line 639 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->priv->button;
-#line 639 "/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 (_tmp6_, gtk_widget_get_type (), GtkWidget));
-#line 631 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 7194 "SearchFilter.c"
-}
-
-
-static SearchFilterToolbarToggleActionToolButton*
-search_filter_toolbar_toggle_action_tool_button_new (const gchar* action)
-{
-#line 631 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_toolbar_toggle_action_tool_button_construct (SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, action);
-#line 7203 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_toggle_action_tool_button_set_icon_name (SearchFilterToolbarToggleActionToolButton* self,
- const gchar* icon_name)
-{
- GtkImage* image = NULL;
- GtkToggleButton* _tmp0_;
- GtkImage* _tmp1_;
- GtkToggleButton* _tmp2_;
- GtkImage* _tmp3_;
- gboolean _tmp4_ = FALSE;
- GtkToggleButton* _tmp5_;
- const gchar* _tmp6_;
-#line 642 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_TOGGLE_ACTION_TOOL_BUTTON (self));
-#line 642 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (icon_name != NULL);
-#line 643 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- image = NULL;
-#line 644 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->button;
-#line 644 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_always_show_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), TRUE);
-#line 645 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = (GtkImage*) gtk_image_new_from_icon_name (icon_name, (GtkIconSize) GTK_ICON_SIZE_SMALL_TOOLBAR);
-#line 645 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp1_);
-#line 645 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (image);
-#line 645 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- image = _tmp1_;
-#line 646 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->button;
-#line 646 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = image;
-#line 646 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_button_get_type (), GtkButton), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->button;
-#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = gtk_button_get_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton));
-#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (g_strcmp0 (_tmp6_, "") != 0) {
-#line 7249 "SearchFilter.c"
- GtkToggleButton* _tmp7_;
- const gchar* _tmp8_;
-#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = self->priv->button;
-#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = gtk_button_get_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_button_get_type (), GtkButton));
-#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = _tmp8_ != NULL;
-#line 7258 "SearchFilter.c"
- } else {
-#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = FALSE;
-#line 7262 "SearchFilter.c"
- }
-#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp4_) {
-#line 7266 "SearchFilter.c"
- GtkImage* _tmp9_;
-#line 648 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = image;
-#line 648 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), 6);
-#line 7272 "SearchFilter.c"
- }
-#line 642 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (image);
-#line 7276 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_toggle_action_tool_button_set_label (SearchFilterToolbarToggleActionToolButton* self,
- const gchar* label)
-{
- GtkToggleButton* _tmp0_;
-#line 652 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_TOGGLE_ACTION_TOOL_BUTTON (self));
-#line 652 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (label != NULL);
-#line 653 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->button;
-#line 653 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), label);
-#line 7293 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_toggle_action_tool_button_class_init (SearchFilterToolbarToggleActionToolButtonClass * klass)
-{
-#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_toggle_action_tool_button_parent_class = g_type_class_peek_parent (klass);
-#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (SearchFilterToolbarToggleActionToolButtonPrivate));
-#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_toggle_action_tool_button_finalize;
-#line 7306 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_toggle_action_tool_button_instance_init (SearchFilterToolbarToggleActionToolButton * self)
-{
-#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_GET_PRIVATE (self);
-#line 7315 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_toggle_action_tool_button_finalize (GObject * obj)
-{
- SearchFilterToolbarToggleActionToolButton * self;
-#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButton);
-#line 629 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->button);
-#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (search_filter_toolbar_toggle_action_tool_button_parent_class)->finalize (obj);
-#line 7329 "SearchFilter.c"
-}
-
-
-static GType
-search_filter_toolbar_toggle_action_tool_button_get_type (void)
-{
- static volatile gsize search_filter_toolbar_toggle_action_tool_button_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_toolbar_toggle_action_tool_button_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarToggleActionToolButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_toggle_action_tool_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarToggleActionToolButton), 0, (GInstanceInitFunc) search_filter_toolbar_toggle_action_tool_button_instance_init, NULL };
- GType search_filter_toolbar_toggle_action_tool_button_type_id;
- search_filter_toolbar_toggle_action_tool_button_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarToggleActionToolButton", &g_define_type_info, 0);
- g_once_init_leave (&search_filter_toolbar_toggle_action_tool_button_type_id__volatile, search_filter_toolbar_toggle_action_tool_button_type_id);
- }
- return search_filter_toolbar_toggle_action_tool_button_type_id__volatile;
-}
-
-
-static void
-_search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed (TextAction* _sender,
- const gchar* text,
- gpointer self)
-{
-#line 688 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_on_action_text_changed ((SearchFilterToolbarSearchBox*) self, text);
-#line 7354 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_search_box_on_sensitivity_changed_text_action_sensitivity_changed (TextAction* _sender,
- gboolean sensitive,
- gpointer self)
-{
-#line 689 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_on_sensitivity_changed ((SearchFilterToolbarSearchBox*) self, sensitive);
-#line 7365 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_search_box_on_visibility_changed_text_action_visibility_changed (TextAction* _sender,
- gboolean visible,
- gpointer self)
-{
-#line 690 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_on_visibility_changed ((SearchFilterToolbarSearchBox*) self, visible);
-#line 7376 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text (GtkEntryBuffer* _sender,
- guint position,
- guint n_chars,
- gpointer self)
-{
-#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_on_entry_changed ((SearchFilterToolbarSearchBox*) self);
-#line 7388 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text (GtkEntryBuffer* _sender,
- guint position,
- const gchar* chars,
- guint n_chars,
- gpointer self)
-{
-#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_on_entry_changed ((SearchFilterToolbarSearchBox*) self);
-#line 7401 "SearchFilter.c"
-}
-
-
-static gpointer
-_text_action_ref0 (gpointer self)
-{
-#line 670 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self ? text_action_ref (self) : NULL;
-#line 7410 "SearchFilter.c"
-}
-
-
-static gboolean
-_search_filter_toolbar_search_box_on_escape_key_gtk_widget_key_press_event (GtkWidget* _sender,
- GdkEventKey* event,
- gpointer self)
-{
- gboolean result;
- result = search_filter_toolbar_search_box_on_escape_key ((SearchFilterToolbarSearchBox*) self, event);
-#line 674 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 7423 "SearchFilter.c"
-}
-
-
-SearchFilterToolbarSearchBox*
-search_filter_toolbar_search_box_construct (GType object_type,
- TextAction* action)
-{
- SearchFilterToolbarSearchBox * self = NULL;
- TextAction* _tmp0_;
- GtkSearchEntry* _tmp1_;
- GtkSearchEntry* _tmp2_;
- GtkSearchEntry* _tmp3_;
- GtkSearchEntry* _tmp4_;
- const gchar* _tmp5_;
- const gchar* _tmp6_;
- GtkSearchEntry* _tmp7_;
- GtkEntryBuffer* _tmp8_;
- GtkEntryBuffer* _tmp9_;
- GtkSearchEntry* _tmp10_;
- GtkEntryBuffer* _tmp11_;
- GtkEntryBuffer* _tmp12_;
-#line 669 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_TEXT_ACTION (action), NULL);
-#line 669 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterToolbarSearchBox*) g_object_new (object_type, NULL);
-#line 670 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _text_action_ref0 (action);
-#line 670 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _text_action_unref0 (self->priv->action);
-#line 670 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->action = _tmp0_;
-#line 671 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = (GtkSearchEntry*) gtk_search_entry_new ();
-#line 671 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp1_);
-#line 671 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->search_entry);
-#line 671 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_entry = _tmp1_;
-#line 673 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->search_entry;
-#line 673 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_entry_set_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_entry_get_type (), GtkEntry), 23);
-#line 674 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->search_entry;
-#line 674 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _search_filter_toolbar_search_box_on_escape_key_gtk_widget_key_press_event, self, 0);
-#line 675 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->search_entry;
-#line 675 "/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 (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 677 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = text_action_get_value (action);
-#line 677 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _tmp5_;
-#line 677 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_set_nullable_text (self, _tmp6_);
-#line 679 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (action, "text-changed", (GCallback) _search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed, self, 0);
-#line 680 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (action, "sensitivity-changed", (GCallback) _search_filter_toolbar_search_box_on_sensitivity_changed_text_action_sensitivity_changed, self, 0);
-#line 681 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (action, "visibility-changed", (GCallback) _search_filter_toolbar_search_box_on_visibility_changed_text_action_visibility_changed, self, 0);
-#line 683 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = self->priv->search_entry;
-#line 683 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_entry_get_type (), GtkEntry));
-#line 683 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = _tmp8_;
-#line 683 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp9_, "deleted-text", (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text, self, 0);
-#line 684 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = self->priv->search_entry;
-#line 684 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_entry_get_type (), GtkEntry));
-#line 684 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = _tmp11_;
-#line 684 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp12_, "inserted-text", (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text, self, 0);
-#line 669 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 7505 "SearchFilter.c"
-}
-
-
-SearchFilterToolbarSearchBox*
-search_filter_toolbar_search_box_new (TextAction* action)
-{
-#line 669 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_toolbar_search_box_construct (SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, action);
-#line 7514 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_search_box_get_focus (SearchFilterToolbarSearchBox* self)
-{
- GtkSearchEntry* _tmp0_;
-#line 696 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self));
-#line 697 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->search_entry;
-#line 697 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), "has-focus", TRUE, NULL);
-#line 7528 "SearchFilter.c"
-}
-
-
-static gboolean
-search_filter_toolbar_search_box_on_escape_key (SearchFilterToolbarSearchBox* self,
- GdkEventKey* e)
-{
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
-#line 702 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self), FALSE);
-#line 702 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (e != NULL, FALSE);
-#line 703 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = e->keyval;
-#line 703 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 703 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (g_strcmp0 (_tmp1_, "Escape") == 0) {
-#line 7549 "SearchFilter.c"
- TextAction* _tmp2_;
-#line 704 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->action;
-#line 704 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_clear (_tmp2_);
-#line 7555 "SearchFilter.c"
- }
-#line 708 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 708 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 7561 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_search_box_on_action_text_changed (SearchFilterToolbarSearchBox* self,
- const gchar* text)
-{
- GtkSearchEntry* _tmp0_;
- GtkEntryBuffer* _tmp1_;
- GtkEntryBuffer* _tmp2_;
- guint _tmp3_;
- GtkSearchEntry* _tmp4_;
- GtkEntryBuffer* _tmp5_;
- GtkEntryBuffer* _tmp6_;
- guint _tmp7_;
- GtkSearchEntry* _tmp8_;
- GtkEntryBuffer* _tmp9_;
- GtkEntryBuffer* _tmp10_;
- GtkSearchEntry* _tmp11_;
- GtkEntryBuffer* _tmp12_;
- GtkEntryBuffer* _tmp13_;
-#line 711 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self));
-#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->search_entry;
-#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_entry_get_type (), GtkEntry));
-#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = _tmp1_;
-#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("deleted-text", gtk_entry_buffer_get_type (), &_tmp3_, NULL, FALSE);
-#line 712 "/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_search_box_on_entry_changed_gtk_entry_buffer_deleted_text, self);
-#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->search_entry;
-#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_entry_get_type (), GtkEntry));
-#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _tmp5_;
-#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("inserted-text", gtk_entry_buffer_get_type (), &_tmp7_, NULL, FALSE);
-#line 713 "/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_search_box_on_entry_changed_gtk_entry_buffer_inserted_text, self);
-#line 714 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_set_nullable_text (self, text);
-#line 715 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = self->priv->search_entry;
-#line 715 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_entry_get_type (), GtkEntry));
-#line 715 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = _tmp9_;
-#line 715 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp10_, "deleted-text", (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text, self, 0);
-#line 716 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = self->priv->search_entry;
-#line 716 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_entry_get_type (), GtkEntry));
-#line 716 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = _tmp12_;
-#line 716 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp13_, "inserted-text", (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text, self, 0);
-#line 7623 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_search_box_on_entry_changed (SearchFilterToolbarSearchBox* self)
-{
- TextAction* _tmp0_;
- guint _tmp1_;
- TextAction* _tmp2_;
- GtkSearchEntry* _tmp3_;
- const gchar* _tmp4_;
- TextAction* _tmp5_;
-#line 719 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self));
-#line 720 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->action;
-#line 720 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("text-changed", TYPE_TEXT_ACTION, &_tmp1_, NULL, FALSE);
-#line 720 "/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_search_box_on_action_text_changed_text_action_text_changed, self);
-#line 721 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->action;
-#line 721 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->priv->search_entry;
-#line 721 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = gtk_entry_get_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_entry_get_type (), GtkEntry));
-#line 721 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- text_action_set_text (_tmp2_, _tmp4_);
-#line 722 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->priv->action;
-#line 722 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp5_, "text-changed", (GCallback) _search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed, self, 0);
-#line 7656 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_search_box_on_sensitivity_changed (SearchFilterToolbarSearchBox* self,
- gboolean sensitive)
-{
-#line 725 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self));
-#line 726 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), sensitive);
-#line 7668 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_search_box_on_visibility_changed (SearchFilterToolbarSearchBox* self,
- gboolean visible)
-{
-#line 729 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self));
-#line 730 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), visible);
-#line 7680 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_search_box_set_nullable_text (SearchFilterToolbarSearchBox* self,
- const gchar* text)
-{
- const gchar* _tmp0_ = NULL;
- GtkSearchEntry* _tmp1_;
-#line 733 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self));
-#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (text != NULL) {
-#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = text;
-#line 7696 "SearchFilter.c"
- } else {
-#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = "";
-#line 7700 "SearchFilter.c"
- }
-#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->search_entry;
-#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_entry_set_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_entry_get_type (), GtkEntry), _tmp0_);
-#line 7706 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_search_box_class_init (SearchFilterToolbarSearchBoxClass * klass)
-{
-#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_search_box_parent_class = g_type_class_peek_parent (klass);
-#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (SearchFilterToolbarSearchBoxPrivate));
-#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_search_box_finalize;
-#line 7719 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_search_box_instance_init (SearchFilterToolbarSearchBox * self)
-{
-#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = SEARCH_FILTER_TOOLBAR_SEARCH_BOX_GET_PRIVATE (self);
-#line 7728 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_search_box_finalize (GObject * obj)
-{
- SearchFilterToolbarSearchBox * self;
- TextAction* _tmp0_;
- guint _tmp1_;
- TextAction* _tmp2_;
- guint _tmp3_;
- TextAction* _tmp4_;
- guint _tmp5_;
- GtkSearchEntry* _tmp6_;
- GtkEntryBuffer* _tmp7_;
- GtkEntryBuffer* _tmp8_;
- guint _tmp9_;
- GtkSearchEntry* _tmp10_;
- GtkEntryBuffer* _tmp11_;
- GtkEntryBuffer* _tmp12_;
- guint _tmp13_;
-#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBox);
-#line 688 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->action;
-#line 688 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("text-changed", TYPE_TEXT_ACTION, &_tmp1_, NULL, FALSE);
-#line 688 "/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_search_box_on_action_text_changed_text_action_text_changed, self);
-#line 689 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->action;
-#line 689 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("sensitivity-changed", TYPE_TEXT_ACTION, &_tmp3_, NULL, FALSE);
-#line 689 "/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_search_box_on_sensitivity_changed_text_action_sensitivity_changed, self);
-#line 690 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->action;
-#line 690 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("visibility-changed", TYPE_TEXT_ACTION, &_tmp5_, NULL, FALSE);
-#line 690 "/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_search_box_on_visibility_changed_text_action_visibility_changed, self);
-#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->priv->search_entry;
-#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_entry_get_type (), GtkEntry));
-#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = _tmp7_;
-#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("deleted-text", gtk_entry_buffer_get_type (), &_tmp9_, NULL, FALSE);
-#line 692 "/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_search_box_on_entry_changed_gtk_entry_buffer_deleted_text, self);
-#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = self->priv->search_entry;
-#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_entry_get_type (), GtkEntry));
-#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = _tmp11_;
-#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("inserted-text", gtk_entry_buffer_get_type (), &_tmp13_, NULL, FALSE);
-#line 693 "/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_search_box_on_entry_changed_gtk_entry_buffer_inserted_text, self);
-#line 666 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->search_entry);
-#line 667 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _text_action_unref0 (self->priv->action);
-#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (search_filter_toolbar_search_box_parent_class)->finalize (obj);
-#line 7796 "SearchFilter.c"
-}
-
-
-GType
-search_filter_toolbar_search_box_get_type (void)
-{
- static volatile gsize search_filter_toolbar_search_box_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_toolbar_search_box_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarSearchBoxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_search_box_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarSearchBox), 0, (GInstanceInitFunc) search_filter_toolbar_search_box_instance_init, NULL };
- GType search_filter_toolbar_search_box_type_id;
- search_filter_toolbar_search_box_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarSearchBox", &g_define_type_info, 0);
- g_once_init_leave (&search_filter_toolbar_search_box_type_id__volatile, search_filter_toolbar_search_box_type_id);
- }
- return search_filter_toolbar_search_box_type_id__volatile;
-}
-
-
-SearchFilterToolbarRatingFilterButton*
-search_filter_toolbar_rating_filter_button_construct (GType object_type,
- GMenuModel* model)
-{
- SearchFilterToolbarRatingFilterButton * self = NULL;
- GtkMenuButton* _tmp0_;
- GtkMenuButton* _tmp1_;
- GtkWidget* _tmp2_;
- GtkWidget* _tmp3_;
- GtkMenuButton* _tmp4_;
- GtkMenuButton* _tmp5_;
- GtkMenuButton* _tmp6_;
- GtkMenuButton* _tmp7_;
- GtkMenuButton* _tmp8_;
-#line 742 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (G_IS_MENU_MODEL (model), NULL);
-#line 742 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterToolbarRatingFilterButton*) g_object_new (object_type, NULL);
-#line 743 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = (GtkMenuButton*) gtk_menu_button_new ();
-#line 743 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp0_);
-#line 743 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->button);
-#line 743 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->button = _tmp0_;
-#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->button;
-#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = search_filter_toolbar_rating_filter_button_get_filter_icon (self, RATING_FILTER_UNRATED_OR_HIGHER);
-#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_;
-#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), _tmp3_);
-#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp3_);
-#line 746 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->button;
-#line 746 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 747 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->button;
-#line 747 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_relief (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton), GTK_RELIEF_NONE);
-#line 748 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->button;
-#line 748 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), 2);
-#line 749 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = self->button;
-#line 749 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_menu_button_set_menu_model (_tmp7_, model);
-#line 751 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_homogeneous (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tool_item_get_type (), GtkToolItem), FALSE);
-#line 753 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = self->button;
-#line 753 "/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 (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 742 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 7874 "SearchFilter.c"
-}
-
-
-SearchFilterToolbarRatingFilterButton*
-search_filter_toolbar_rating_filter_button_new (GMenuModel* model)
-{
-#line 742 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_toolbar_rating_filter_button_construct (SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, model);
-#line 7883 "SearchFilter.c"
-}
-
-
-static GtkWidget*
-search_filter_toolbar_rating_filter_button_get_filter_icon (SearchFilterToolbarRatingFilterButton* self,
- RatingFilter filter)
-{
- GtkWidget* result = NULL;
- gchar* filename = NULL;
- GtkImage* image = NULL;
- const gchar* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GtkImage* _tmp6_;
- GtkImage* _tmp7_;
-#line 756 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self), NULL);
-#line 757 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- filename = NULL;
-#line 759 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- switch (filter) {
-#line 759 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_REJECTED_OR_HIGHER:
-#line 7907 "SearchFilter.c"
- {
- gchar* _tmp0_;
-#line 761 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_FILTER_REJECTED_OR_BETTER);
-#line 761 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (filename);
-#line 761 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- filename = _tmp0_;
-#line 762 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 7918 "SearchFilter.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_REJECTED_ONLY:
-#line 7922 "SearchFilter.c"
- {
- gchar* _tmp1_;
-#line 765 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = g_strdup (RESOURCES_ICON_RATING_REJECTED);
-#line 765 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (filename);
-#line 765 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- filename = _tmp1_;
-#line 766 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 7933 "SearchFilter.c"
- }
- default:
-#line 759 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_UNRATED_OR_HIGHER:
-#line 7938 "SearchFilter.c"
- {
- gchar* _tmp2_;
-#line 770 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = g_strdup (RESOURCES_ICON_FILTER_UNRATED_OR_BETTER);
-#line 770 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (filename);
-#line 770 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- filename = _tmp2_;
-#line 771 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 7949 "SearchFilter.c"
- }
- }
-#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = filename;
-#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = resources_load_icon (_tmp3_, search_filter_toolbar_rating_filter_button_get_filter_icon_size (self, filter));
-#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = _tmp4_;
-#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp5_);
-#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp6_);
-#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = _tmp6_;
-#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp5_);
-#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- image = _tmp7_;
-#line 776 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget), 6);
-#line 778 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget);
-#line 778 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (filename);
-#line 778 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 7976 "SearchFilter.c"
-}
-
-
-static gint
-search_filter_toolbar_rating_filter_button_get_filter_icon_size (SearchFilterToolbarRatingFilterButton* self,
- RatingFilter filter)
-{
- gint result = 0;
- gint icon_base = 0;
- gint icon_star_base = 0;
- gint icon_plus = 0;
-#line 781 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self), 0);
-#line 782 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- icon_base = (gint) (SEARCH_FILTER_TOOLBAR_FILTER_ICON_BASE_WIDTH * SEARCH_FILTER_TOOLBAR_FILTER_ICON_SCALE);
-#line 783 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- icon_star_base = (gint) (SEARCH_FILTER_TOOLBAR_FILTER_ICON_BASE_WIDTH * SEARCH_FILTER_TOOLBAR_FILTER_ICON_STAR_SCALE);
-#line 784 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- icon_plus = (gint) (SEARCH_FILTER_TOOLBAR_FILTER_ICON_PLUS_WIDTH * SEARCH_FILTER_TOOLBAR_FILTER_ICON_STAR_SCALE);
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- switch (filter) {
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_ONE_OR_HIGHER:
-#line 8000 "SearchFilter.c"
- {
- gint _tmp0_;
- gint _tmp1_;
-#line 788 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = icon_star_base;
-#line 788 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = icon_plus;
-#line 788 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_ + _tmp1_;
-#line 788 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8012 "SearchFilter.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_TWO_OR_HIGHER:
-#line 8016 "SearchFilter.c"
- {
- gint _tmp2_;
- gint _tmp3_;
-#line 790 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = icon_star_base;
-#line 790 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = icon_plus;
-#line 790 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = (_tmp2_ * 2) + _tmp3_;
-#line 790 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8028 "SearchFilter.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_THREE_OR_HIGHER:
-#line 8032 "SearchFilter.c"
- {
- gint _tmp4_;
- gint _tmp5_;
-#line 792 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = icon_star_base;
-#line 792 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = icon_plus;
-#line 792 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = (_tmp4_ * 3) + _tmp5_;
-#line 792 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8044 "SearchFilter.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FOUR_OR_HIGHER:
-#line 8048 "SearchFilter.c"
- {
- gint _tmp6_;
- gint _tmp7_;
-#line 794 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = icon_star_base;
-#line 794 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = icon_plus;
-#line 794 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = (_tmp6_ * 4) + _tmp7_;
-#line 794 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8060 "SearchFilter.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FIVE_OR_HIGHER:
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FIVE_ONLY:
-#line 8066 "SearchFilter.c"
- {
- gint _tmp8_;
-#line 797 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = icon_star_base;
-#line 797 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp8_ * 5;
-#line 797 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8075 "SearchFilter.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_REJECTED_OR_HIGHER:
-#line 8079 "SearchFilter.c"
- {
-#line 799 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = RESOURCES_ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE;
-#line 799 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8085 "SearchFilter.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_UNRATED_OR_HIGHER:
-#line 8089 "SearchFilter.c"
- {
-#line 801 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = RESOURCES_ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE;
-#line 801 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8095 "SearchFilter.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_REJECTED_ONLY:
-#line 8099 "SearchFilter.c"
- {
-#line 803 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = icon_plus;
-#line 803 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8105 "SearchFilter.c"
- }
- default:
- {
-#line 805 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = icon_base;
-#line 805 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8113 "SearchFilter.c"
- }
- }
-}
-
-
-void
-search_filter_toolbar_rating_filter_button_set_filter_icon (SearchFilterToolbarRatingFilterButton* self,
- RatingFilter filter)
-{
- GtkMenuButton* _tmp0_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 809 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self));
-#line 810 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->button;
-#line 810 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_always_show_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), TRUE);
-#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- switch (filter) {
-#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_ONE_OR_HIGHER:
-#line 8136 "SearchFilter.c"
- {
- GtkMenuButton* _tmp1_;
-#line 813 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->button;
-#line 813 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), _ ("★+ Rating"));
-#line 814 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 8145 "SearchFilter.c"
- }
-#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_TWO_OR_HIGHER:
-#line 8149 "SearchFilter.c"
- {
- GtkMenuButton* _tmp2_;
-#line 816 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->button;
-#line 816 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_button_get_type (), GtkButton), _ ("★★+ Rating"));
-#line 817 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 8158 "SearchFilter.c"
- }
-#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_THREE_OR_HIGHER:
-#line 8162 "SearchFilter.c"
- {
- GtkMenuButton* _tmp3_;
-#line 819 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->button;
-#line 819 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_button_get_type (), GtkButton), _ ("★★★+ Rating"));
-#line 820 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 8171 "SearchFilter.c"
- }
-#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FOUR_OR_HIGHER:
-#line 8175 "SearchFilter.c"
- {
- GtkMenuButton* _tmp4_;
-#line 822 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->button;
-#line 822 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_button_get_type (), GtkButton), _ ("★★★★+ Rating"));
-#line 823 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 8184 "SearchFilter.c"
- }
-#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FIVE_ONLY:
-#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case RATING_FILTER_FIVE_OR_HIGHER:
-#line 8190 "SearchFilter.c"
- {
- GtkMenuButton* _tmp5_;
-#line 826 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->button;
-#line 826 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton), _ ("★★★★★+ Rating"));
-#line 827 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 8199 "SearchFilter.c"
- }
- default:
- {
- GtkMenuButton* _tmp6_;
- GtkMenuButton* _tmp7_;
- GtkWidget* _tmp8_;
- GtkWidget* _tmp9_;
-#line 829 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->button;
-#line 829 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_button_get_type (), GtkButton), _ ("Rating"));
-#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = self->button;
-#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = search_filter_toolbar_rating_filter_button_get_filter_icon (self, filter);
-#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = _tmp8_;
-#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_button_get_type (), GtkButton), _tmp9_);
-#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp9_);
-#line 831 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 8223 "SearchFilter.c"
- }
- }
-#line 834 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), search_filter_toolbar_rating_filter_button_get_filter_button_size (self, filter), -1);
-#line 835 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = resources_get_rating_filter_tooltip (filter);
-#line 835 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = _tmp10_;
-#line 835 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tool_item_get_type (), GtkToolItem), _tmp11_);
-#line 835 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (_tmp11_);
-#line 836 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_has_tooltip (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 837 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 8240 "SearchFilter.c"
-}
-
-
-static gint
-search_filter_toolbar_rating_filter_button_get_filter_button_size (SearchFilterToolbarRatingFilterButton* self,
- RatingFilter filter)
-{
- gint result = 0;
-#line 840 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self), 0);
-#line 841 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = search_filter_toolbar_rating_filter_button_get_filter_icon_size (self, filter) + (2 * SEARCH_FILTER_TOOLBAR_FILTER_BUTTON_MARGIN);
-#line 841 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 8255 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_rating_filter_button_set_label (SearchFilterToolbarRatingFilterButton* self,
- const gchar* label)
-{
- GtkMenuButton* _tmp0_;
-#line 844 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self));
-#line 844 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (label != NULL);
-#line 845 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->button;
-#line 845 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), label);
-#line 8272 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_rating_filter_button_class_init (SearchFilterToolbarRatingFilterButtonClass * klass)
-{
-#line 739 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_rating_filter_button_parent_class = g_type_class_peek_parent (klass);
-#line 739 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_rating_filter_button_finalize;
-#line 8283 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_rating_filter_button_instance_init (SearchFilterToolbarRatingFilterButton * self)
-{
-}
-
-
-static void
-search_filter_toolbar_rating_filter_button_finalize (GObject * obj)
-{
- SearchFilterToolbarRatingFilterButton * self;
-#line 739 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, SearchFilterToolbarRatingFilterButton);
-#line 740 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->button);
-#line 739 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (search_filter_toolbar_rating_filter_button_parent_class)->finalize (obj);
-#line 8303 "SearchFilter.c"
-}
-
-
-GType
-search_filter_toolbar_rating_filter_button_get_type (void)
-{
- static volatile gsize search_filter_toolbar_rating_filter_button_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_toolbar_rating_filter_button_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarRatingFilterButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_rating_filter_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarRatingFilterButton), 0, (GInstanceInitFunc) search_filter_toolbar_rating_filter_button_instance_init, NULL };
- GType search_filter_toolbar_rating_filter_button_type_id;
- search_filter_toolbar_rating_filter_button_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarRatingFilterButton", &g_define_type_info, 0);
- g_once_init_leave (&search_filter_toolbar_rating_filter_button_type_id__volatile, search_filter_toolbar_rating_filter_button_type_id);
- }
- return search_filter_toolbar_rating_filter_button_type_id__volatile;
-}
-
-
-static void
-_search_filter_toolbar_saved_search_filter_button_on_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 875 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_filter_button_on_clicked ((SearchFilterToolbarSavedSearchFilterButton*) self);
-#line 8327 "SearchFilter.c"
-}
-
-
-SearchFilterToolbarSavedSearchFilterButton*
-search_filter_toolbar_saved_search_filter_button_construct (GType object_type)
-{
- SearchFilterToolbarSavedSearchFilterButton * self = NULL;
- GtkToggleButton* _tmp0_;
- GtkToggleButton* _tmp1_;
- GtkImage* image = NULL;
- GtkImage* _tmp2_;
- GtkToggleButton* _tmp3_;
- GtkToggleButton* _tmp4_;
- GtkToggleButton* _tmp5_;
- GtkToggleButton* _tmp6_;
-#line 856 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterToolbarSavedSearchFilterButton*) g_object_new (object_type, NULL);
-#line 857 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = (GtkToggleButton*) gtk_toggle_button_new ();
-#line 857 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp0_);
-#line 857 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->button);
-#line 857 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->button = _tmp0_;
-#line 858 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->button;
-#line 858 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_always_show_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), TRUE);
-#line 860 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = (GtkImage*) gtk_image_new_from_icon_name ("edit-find", (GtkIconSize) GTK_ICON_SIZE_SMALL_TOOLBAR);
-#line 860 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp2_);
-#line 860 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- image = _tmp2_;
-#line 861 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget), 6);
-#line 862 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = self->button;
-#line 862 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_button_get_type (), GtkButton), G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget));
-#line 863 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->button;
-#line 863 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 865 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = self->button;
-#line 865 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _search_filter_toolbar_saved_search_filter_button_on_clicked_gtk_button_clicked, self, 0);
-#line 867 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_filter_button_restyle (self);
-#line 869 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_tool_item_set_homogeneous (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tool_item_get_type (), GtkToolItem), FALSE);
-#line 871 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->button;
-#line 871 "/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 (_tmp6_, gtk_widget_get_type (), GtkWidget));
-#line 856 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (image);
-#line 856 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 8389 "SearchFilter.c"
-}
-
-
-SearchFilterToolbarSavedSearchFilterButton*
-search_filter_toolbar_saved_search_filter_button_new (void)
-{
-#line 856 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_toolbar_saved_search_filter_button_construct (SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON);
-#line 8398 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_filter_button_on_clicked (SearchFilterToolbarSavedSearchFilterButton* self)
-{
-#line 878 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON (self));
-#line 879 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_toolbar_saved_search_filter_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_CLICKED_SIGNAL], 0);
-#line 8409 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_saved_search_filter_button_set_active (SearchFilterToolbarSavedSearchFilterButton* self,
- gboolean active)
-{
- GtkToggleButton* _tmp0_;
-#line 882 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON (self));
-#line 883 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->button;
-#line 883 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_toggle_button_set_active (_tmp0_, active);
-#line 8424 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_saved_search_filter_button_set_label (SearchFilterToolbarSavedSearchFilterButton* self,
- const gchar* label)
-{
- GtkToggleButton* _tmp0_;
-#line 886 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON (self));
-#line 886 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (label != NULL);
-#line 887 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->button;
-#line 887 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), label);
-#line 8441 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_saved_search_filter_button_restyle (SearchFilterToolbarSavedSearchFilterButton* self)
-{
- GtkToggleButton* _tmp0_;
- GtkToggleButton* _tmp1_;
-#line 890 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON (self));
-#line 891 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->button;
-#line 891 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), 24, 24);
-#line 892 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->button;
-#line 892 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_relief (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), GTK_RELIEF_NONE);
-#line 8460 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_filter_button_class_init (SearchFilterToolbarSavedSearchFilterButtonClass * klass)
-{
-#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_filter_button_parent_class = g_type_class_peek_parent (klass);
-#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_saved_search_filter_button_finalize;
-#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_filter_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_CLICKED_SIGNAL] = g_signal_new ("clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 8473 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_filter_button_instance_init (SearchFilterToolbarSavedSearchFilterButton * self)
-{
-#line 851 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->filter_popup = NULL;
-#line 8482 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_filter_button_finalize (GObject * obj)
-{
- SearchFilterToolbarSavedSearchFilterButton * self;
- GtkToggleButton* _tmp0_;
- guint _tmp1_;
-#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, SearchFilterToolbarSavedSearchFilterButton);
-#line 875 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->button;
-#line 875 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp1_, NULL, FALSE);
-#line 875 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _search_filter_toolbar_saved_search_filter_button_on_clicked_gtk_button_clicked, self);
-#line 851 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _search_filter_toolbar_saved_search_popover_unref0 (self->filter_popup);
-#line 852 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->button);
-#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (search_filter_toolbar_saved_search_filter_button_parent_class)->finalize (obj);
-#line 8506 "SearchFilter.c"
-}
-
-
-GType
-search_filter_toolbar_saved_search_filter_button_get_type (void)
-{
- static volatile gsize search_filter_toolbar_saved_search_filter_button_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_toolbar_saved_search_filter_button_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarSavedSearchFilterButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_saved_search_filter_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarSavedSearchFilterButton), 0, (GInstanceInitFunc) search_filter_toolbar_saved_search_filter_button_instance_init, NULL };
- GType search_filter_toolbar_saved_search_filter_button_type_id;
- search_filter_toolbar_saved_search_filter_button_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarSavedSearchFilterButton", &g_define_type_info, 0);
- g_once_init_leave (&search_filter_toolbar_saved_search_filter_button_type_id__volatile, search_filter_toolbar_saved_search_filter_button_type_id);
- }
- return search_filter_toolbar_saved_search_filter_button_type_id__volatile;
-}
-
-
-static void
-_search_filter_toolbar_saved_search_popover_on_edit_click_search_filter_toolbar_saved_search_popover_data_button_clicked (SearchFilterToolbarSavedSearchPopoverDataButton* _sender,
- SavedSearch* search,
- gpointer self)
-{
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_on_edit_click ((SearchFilterToolbarSavedSearchPopover*) self, search);
-#line 8531 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_saved_search_popover_on_delete_click_search_filter_toolbar_saved_search_popover_data_button_clicked (SearchFilterToolbarSavedSearchPopoverDataButton* _sender,
- SavedSearch* search,
- gpointer self)
-{
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_on_delete_click ((SearchFilterToolbarSavedSearchPopover*) self, search);
-#line 8542 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_saved_search_popover_on_add_click_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 979 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_on_add_click ((SearchFilterToolbarSavedSearchPopover*) self);
-#line 8552 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_saved_search_popover_on_activate_row_gtk_list_box_row_activated (GtkListBox* _sender,
- GtkListBoxRow* row,
- gpointer self)
-{
-#line 980 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_on_activate_row ((SearchFilterToolbarSavedSearchPopover*) self, row);
-#line 8563 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_saved_search_popover_on_popover_closed_gtk_popover_closed (GtkPopover* _sender,
- gpointer self)
-{
-#line 981 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_on_popover_closed ((SearchFilterToolbarSavedSearchPopover*) self);
-#line 8573 "SearchFilter.c"
-}
-
-
-static void
-_vala_array_add133 (SearchFilterToolbarSavedSearchPopoverDataButton** * array,
- int* length,
- int* size,
- SearchFilterToolbarSavedSearchPopoverDataButton* value)
-{
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if ((*length) == (*size)) {
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *array = g_renew (SearchFilterToolbarSavedSearchPopoverDataButton*, *array, (*size) + 1);
-#line 8589 "SearchFilter.c"
- }
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- (*array)[(*length)++] = value;
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- (*array)[*length] = NULL;
-#line 8595 "SearchFilter.c"
-}
-
-
-static void
-_vala_array_add134 (SearchFilterToolbarSavedSearchPopoverDataButton** * array,
- int* length,
- int* size,
- SearchFilterToolbarSavedSearchPopoverDataButton* value)
-{
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if ((*length) == (*size)) {
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *array = g_renew (SearchFilterToolbarSavedSearchPopoverDataButton*, *array, (*size) + 1);
-#line 8611 "SearchFilter.c"
- }
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- (*array)[(*length)++] = value;
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- (*array)[*length] = NULL;
-#line 8617 "SearchFilter.c"
-}
-
-
-SearchFilterToolbarSavedSearchPopover*
-search_filter_toolbar_saved_search_popover_construct (GType object_type,
- GtkWidget* relative_to)
-{
- SearchFilterToolbarSavedSearchPopover* self = NULL;
- GtkPopover* _tmp0_;
- GtkPopover* _tmp1_;
- GtkListBox* _tmp2_;
- SearchFilterToolbarSavedSearchPopoverDataButton** _tmp3_;
- SearchFilterToolbarSavedSearchPopoverDataButton** _tmp4_;
- GtkButton* _tmp42_;
- GtkButton* _tmp43_;
- GtkListBox* _tmp44_;
- GtkButton* _tmp45_;
- GtkListBox* _tmp46_;
- GtkListBox* _tmp47_;
- GtkPopover* _tmp48_;
- GtkListBox* _tmp49_;
-#line 940 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (GTK_IS_WIDGET (relative_to), NULL);
-#line 940 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterToolbarSavedSearchPopover*) g_type_create_instance (object_type);
-#line 941 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = (GtkPopover*) gtk_popover_new (relative_to);
-#line 941 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp0_);
-#line 941 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->popover);
-#line 941 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->popover = _tmp0_;
-#line 942 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->popover;
-#line 942 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect (_tmp1_, "closed", (GCallback) _search_filter_toolbar_saved_search_popover_on_popover_closed_gtk_popover_closed, self);
-#line 943 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = (GtkListBox*) gtk_list_box_new ();
-#line 943 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp2_);
-#line 943 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->list_box);
-#line 943 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->list_box = _tmp2_;
-#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = g_new0 (SearchFilterToolbarSavedSearchPopoverDataButton*, 0 + 1);
-#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->edit_buttons = (_vala_array_free (self->priv->edit_buttons, self->priv->edit_buttons_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->edit_buttons = _tmp3_;
-#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->edit_buttons_length1 = 0;
-#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_edit_buttons_size_ = self->priv->edit_buttons_length1;
-#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = g_new0 (SearchFilterToolbarSavedSearchPopoverDataButton*, 0 + 1);
-#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->delete_buttons = (_vala_array_free (self->priv->delete_buttons, self->priv->delete_buttons_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->delete_buttons = _tmp4_;
-#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->delete_buttons_length1 = 0;
-#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_delete_buttons_size_ = self->priv->delete_buttons_length1;
-#line 8683 "SearchFilter.c"
- {
- GeeIterator* _search_it = NULL;
- SavedSearchTable* _tmp5_;
- SavedSearchTable* _tmp6_;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
- GeeIterator* _tmp9_;
- GeeIterator* _tmp10_;
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = saved_search_table_get_instance ();
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _tmp5_;
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = saved_search_table_get_all (_tmp6_);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = _tmp7_;
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = _tmp9_;
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp8_);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _saved_search_table_unref0 (_tmp6_);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _search_it = _tmp10_;
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- while (TRUE) {
-#line 8712 "SearchFilter.c"
- GeeIterator* _tmp11_;
- SavedSearch* search = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- GtkBox* row = NULL;
- GtkBox* _tmp14_;
- GtkBox* _tmp15_;
- GtkLabel* label = NULL;
- SavedSearch* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GtkLabel* _tmp19_;
- GtkLabel* _tmp20_;
- GtkLabel* _tmp21_;
- GtkBox* _tmp22_;
- GtkLabel* _tmp23_;
- SearchFilterToolbarSavedSearchPopoverDataButton* delete_button = NULL;
- SavedSearch* _tmp24_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp25_;
- GtkBox* _tmp26_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp27_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp28_;
- SearchFilterToolbarSavedSearchPopoverDataButton** _tmp29_;
- gint _tmp29__length1;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp30_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp31_;
- SearchFilterToolbarSavedSearchPopoverDataButton* edit_button = NULL;
- SavedSearch* _tmp32_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp33_;
- GtkBox* _tmp34_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp35_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp36_;
- SearchFilterToolbarSavedSearchPopoverDataButton** _tmp37_;
- gint _tmp37__length1;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp38_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp39_;
- GtkListBox* _tmp40_;
- GtkBox* _tmp41_;
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = _search_it;
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 8757 "SearchFilter.c"
- }
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = _search_it;
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search = (SavedSearch*) _tmp13_;
-#line 948 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp14_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 1);
-#line 948 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp14_);
-#line 948 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- row = _tmp14_;
-#line 949 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp15_ = row;
-#line 949 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_box_set_homogeneous (_tmp15_, FALSE);
-#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp16_ = search;
-#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp17_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
-#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp18_ = _tmp17_;
-#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp19_ = (GtkLabel*) gtk_label_new (_tmp18_);
-#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp19_);
-#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp20_ = _tmp19_;
-#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_free0 (_tmp18_);
-#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- label = _tmp20_;
-#line 951 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp21_ = label;
-#line 951 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 952 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp22_ = row;
-#line 952 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp23_ = label;
-#line 952 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_box_pack_start (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 3);
-#line 954 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp24_ = search;
-#line 954 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp25_ = search_filter_toolbar_saved_search_popover_data_button_new (_tmp24_, "edit-delete-symbolic");
-#line 954 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp25_);
-#line 954 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- delete_button = _tmp25_;
-#line 955 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp26_ = row;
-#line 955 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp27_ = delete_button;
-#line 955 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_box_pack_end (_tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 956 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp28_ = delete_button;
-#line 956 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect (_tmp28_, "clicked", (GCallback) _search_filter_toolbar_saved_search_popover_on_delete_click_search_filter_toolbar_saved_search_popover_data_button_clicked, self);
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp29_ = self->priv->delete_buttons;
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp29__length1 = self->priv->delete_buttons_length1;
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp30_ = delete_button;
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp31_ = _g_object_ref0 (_tmp30_);
-#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _vala_array_add133 (&self->priv->delete_buttons, &self->priv->delete_buttons_length1, &self->priv->_delete_buttons_size_, _tmp31_);
-#line 959 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp32_ = search;
-#line 959 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp33_ = search_filter_toolbar_saved_search_popover_data_button_new (_tmp32_, "text-editor-symbolic");
-#line 959 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp33_);
-#line 959 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- edit_button = _tmp33_;
-#line 960 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp34_ = row;
-#line 960 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp35_ = edit_button;
-#line 960 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_box_pack_end (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 961 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp36_ = edit_button;
-#line 961 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect (_tmp36_, "clicked", (GCallback) _search_filter_toolbar_saved_search_popover_on_edit_click_search_filter_toolbar_saved_search_popover_data_button_clicked, self);
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp37_ = self->priv->edit_buttons;
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp37__length1 = self->priv->edit_buttons_length1;
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp38_ = edit_button;
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp39_ = _g_object_ref0 (_tmp38_);
-#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _vala_array_add134 (&self->priv->edit_buttons, &self->priv->edit_buttons_length1, &self->priv->_edit_buttons_size_, _tmp39_);
-#line 964 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp40_ = self->priv->list_box;
-#line 964 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp41_ = row;
-#line 964 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_list_box_insert (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), -1);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (edit_button);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (delete_button);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (label);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (row);
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (search);
-#line 8873 "SearchFilter.c"
- }
-#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_search_it);
-#line 8877 "SearchFilter.c"
- }
-#line 966 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp42_ = (GtkButton*) gtk_button_new_from_icon_name ("list-add-symbolic", (GtkIconSize) GTK_ICON_SIZE_BUTTON);
-#line 966 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp42_);
-#line 966 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->add);
-#line 966 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->add = _tmp42_;
-#line 967 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp43_ = self->priv->add;
-#line 967 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect (_tmp43_, "clicked", (GCallback) _search_filter_toolbar_saved_search_popover_on_add_click_gtk_button_clicked, self);
-#line 968 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp44_ = self->priv->list_box;
-#line 968 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp45_ = self->priv->add;
-#line 968 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_list_box_insert (_tmp44_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), -1);
-#line 969 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp46_ = self->priv->list_box;
-#line 969 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect (_tmp46_, "row-activated", (GCallback) _search_filter_toolbar_saved_search_popover_on_activate_row_gtk_list_box_row_activated, self);
-#line 970 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp47_ = self->priv->list_box;
-#line 970 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_list_box_set_selection_mode (_tmp47_, GTK_SELECTION_NONE);
-#line 971 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp48_ = self->priv->popover;
-#line 971 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp49_ = self->priv->list_box;
-#line 971 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget));
-#line 973 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_restyle (self);
-#line 940 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 8915 "SearchFilter.c"
-}
-
-
-SearchFilterToolbarSavedSearchPopover*
-search_filter_toolbar_saved_search_popover_new (GtkWidget* relative_to)
-{
-#line 940 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_toolbar_saved_search_popover_construct (SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, relative_to);
-#line 8924 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_saved_search_popover_restyle (SearchFilterToolbarSavedSearchPopover* self)
-{
- GtkButton* _tmp0_;
- SearchFilterToolbarSavedSearchPopoverDataButton** _tmp1_;
- gint _tmp1__length1;
- SearchFilterToolbarSavedSearchPopoverDataButton** _tmp4_;
- gint _tmp4__length1;
-#line 984 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self));
-#line 985 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->add;
-#line 985 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_relief (_tmp0_, GTK_RELIEF_NONE);
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->edit_buttons;
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1__length1 = self->priv->edit_buttons_length1;
-#line 8946 "SearchFilter.c"
- {
- SearchFilterToolbarSavedSearchPopoverDataButton** button_collection = NULL;
- gint button_collection_length1 = 0;
- gint _button_collection_size_ = 0;
- gint button_it = 0;
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button_collection = _tmp1_;
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button_collection_length1 = _tmp1__length1;
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- for (button_it = 0; button_it < _tmp1__length1; button_it = button_it + 1) {
-#line 8958 "SearchFilter.c"
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp2_;
- SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL;
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = _g_object_ref0 (button_collection[button_it]);
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button = _tmp2_;
-#line 8965 "SearchFilter.c"
- {
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp3_;
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = button;
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_data_button_restyle (_tmp3_);
-#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (button);
-#line 8974 "SearchFilter.c"
- }
- }
- }
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->delete_buttons;
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4__length1 = self->priv->delete_buttons_length1;
-#line 8982 "SearchFilter.c"
- {
- SearchFilterToolbarSavedSearchPopoverDataButton** button_collection = NULL;
- gint button_collection_length1 = 0;
- gint _button_collection_size_ = 0;
- gint button_it = 0;
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button_collection = _tmp4_;
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button_collection_length1 = _tmp4__length1;
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- for (button_it = 0; button_it < _tmp4__length1; button_it = button_it + 1) {
-#line 8994 "SearchFilter.c"
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp5_;
- SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL;
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = _g_object_ref0 (button_collection[button_it]);
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button = _tmp5_;
-#line 9001 "SearchFilter.c"
- {
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp6_;
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = button;
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_data_button_restyle (_tmp6_);
-#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (button);
-#line 9010 "SearchFilter.c"
- }
- }
- }
-}
-
-
-static gboolean
-search_filter_toolbar_saved_search_popover_is_search_row (SearchFilterToolbarSavedSearchPopover* self,
- GtkListBoxRow* row)
-{
- gboolean result = FALSE;
- GList* _tmp0_;
- GList* _tmp1_;
- GList* _tmp2_;
- gconstpointer _tmp3_;
- gboolean _tmp4_;
-#line 990 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self), FALSE);
-#line 990 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail ((row == NULL) || GTK_IS_LIST_BOX_ROW (row), FALSE);
-#line 991 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (row == NULL) {
-#line 991 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 991 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 9037 "SearchFilter.c"
- }
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (row, gtk_container_get_type (), GtkContainer));
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_;
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = g_list_last (_tmp1_);
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_->data;
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE ((GtkWidget*) _tmp3_, gtk_button_get_type ());
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_list_free0 (_tmp1_);
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (_tmp4_) {
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = FALSE;
-#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 9057 "SearchFilter.c"
- }
-#line 993 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = TRUE;
-#line 993 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 9063 "SearchFilter.c"
-}
-
-
-static SavedSearch*
-search_filter_toolbar_saved_search_popover_get_search (SearchFilterToolbarSavedSearchPopover* self,
- GtkListBoxRow* row)
-{
- SavedSearch* result = NULL;
- SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL;
- GList* _tmp0_;
- GList* _tmp1_;
- GList* _tmp2_;
- gconstpointer _tmp3_;
- GtkWidget* _tmp4_;
- GList* _tmp5_;
- GList* _tmp6_;
- GList* _tmp7_;
- gconstpointer _tmp8_;
- GtkWidget* _tmp9_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp10_;
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp11_;
- SavedSearch* _tmp12_;
- SavedSearch* _tmp13_;
- SavedSearch* _tmp14_;
-#line 996 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self), NULL);
-#line 996 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (GTK_IS_LIST_BOX_ROW (row), NULL);
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (row, gtk_container_get_type (), GtkContainer));
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_;
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = g_list_first (_tmp1_);
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = _tmp2_->data;
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = (GtkWidget*) _tmp3_;
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_box_get_type ()) ? ((GtkBox*) _tmp4_) : NULL, gtk_container_get_type (), GtkContainer));
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = _tmp5_;
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp7_ = g_list_last (_tmp6_);
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = _tmp7_->data;
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp9_ = (GtkWidget*) _tmp8_;
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON) ? ((SearchFilterToolbarSavedSearchPopoverDataButton*) _tmp9_) : NULL);
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp11_ = _tmp10_;
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_list_free0 (_tmp6_);
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_list_free0 (_tmp1_);
-#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button = _tmp11_;
-#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = search_filter_toolbar_saved_search_popover_data_button_get_search (button);
-#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp13_ = _tmp12_;
-#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp14_;
-#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (button);
-#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 9134 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_on_activate_row (SearchFilterToolbarSavedSearchPopover* self,
- GtkListBoxRow* row)
-{
- GtkPopover* _tmp2_;
-#line 1001 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self));
-#line 1001 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail ((row == NULL) || GTK_IS_LIST_BOX_ROW (row));
-#line 1002 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (search_filter_toolbar_saved_search_popover_is_search_row (self, row)) {
-#line 9149 "SearchFilter.c"
- SavedSearch* _tmp0_;
- SavedSearch* _tmp1_;
-#line 1003 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = search_filter_toolbar_saved_search_popover_get_search (self, row);
-#line 1003 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _tmp0_;
-#line 1003 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_SEARCH_ACTIVATED_SIGNAL], 0, _tmp1_);
-#line 1003 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (_tmp1_);
-#line 9160 "SearchFilter.c"
- }
-#line 1004 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->popover;
-#line 1004 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 9166 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_on_edit_click (SearchFilterToolbarSavedSearchPopover* self,
- SavedSearch* search)
-{
-#line 1007 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self));
-#line 1007 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 1008 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_EDIT_CLICKED_SIGNAL], 0, search);
-#line 9180 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_on_delete_click (SearchFilterToolbarSavedSearchPopover* self,
- SavedSearch* search)
-{
-#line 1011 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self));
-#line 1011 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 1012 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DELETE_CLICKED_SIGNAL], 0, search);
-#line 9194 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_on_add_click (SearchFilterToolbarSavedSearchPopover* self)
-{
-#line 1015 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self));
-#line 1016 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_ADD_CLICKED_SIGNAL], 0);
-#line 9205 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_on_popover_closed (SearchFilterToolbarSavedSearchPopover* self)
-{
-#line 1019 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self));
-#line 1020 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_CLOSED_SIGNAL], 0);
-#line 9216 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_saved_search_popover_show_all (SearchFilterToolbarSavedSearchPopover* self)
-{
- GtkPopover* _tmp0_;
-#line 1023 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self));
-#line 1024 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->popover;
-#line 1024 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 9230 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_saved_search_popover_hide (SearchFilterToolbarSavedSearchPopover* self)
-{
- GtkPopover* _tmp0_;
-#line 1027 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self));
-#line 1028 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->popover;
-#line 1028 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 9244 "SearchFilter.c"
-}
-
-
-static void
-_search_filter_toolbar_saved_search_popover_data_button_on_click_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 927 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_data_button_on_click ((SearchFilterToolbarSavedSearchPopoverDataButton*) self);
-#line 9254 "SearchFilter.c"
-}
-
-
-static SearchFilterToolbarSavedSearchPopoverDataButton*
-search_filter_toolbar_saved_search_popover_data_button_construct (GType object_type,
- SavedSearch* search,
- const gchar* name)
-{
- SearchFilterToolbarSavedSearchPopoverDataButton * self = NULL;
- GtkButton* _tmp0_;
- GtkButton* _tmp1_;
- GtkButton* _tmp2_;
-#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
-#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = (SearchFilterToolbarSavedSearchPopoverDataButton*) g_object_new (object_type, NULL);
-#line 917 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = (GtkButton*) gtk_button_new_from_icon_name (name, (GtkIconSize) GTK_ICON_SIZE_SMALL_TOOLBAR);
-#line 917 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp0_);
-#line 917 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->button);
-#line 917 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->button = _tmp0_;
-#line 918 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_data_button_set_search (self, search);
-#line 919 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->button;
-#line 919 "/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 (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 921 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_data_button_restyle (self);
-#line 923 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->button;
-#line 923 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_connect_object (_tmp2_, "clicked", (GCallback) _search_filter_toolbar_saved_search_popover_data_button_on_click_gtk_button_clicked, self, 0);
-#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return self;
-#line 9295 "SearchFilter.c"
-}
-
-
-static SearchFilterToolbarSavedSearchPopoverDataButton*
-search_filter_toolbar_saved_search_popover_data_button_new (SavedSearch* search,
- const gchar* name)
-{
-#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return search_filter_toolbar_saved_search_popover_data_button_construct (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, search, name);
-#line 9305 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_data_button_restyle (SearchFilterToolbarSavedSearchPopoverDataButton* self)
-{
- GtkButton* _tmp0_;
- GtkButton* _tmp1_;
-#line 930 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON (self));
-#line 931 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->button;
-#line 931 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), 24, 24);
-#line 932 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = self->priv->button;
-#line 932 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- gtk_button_set_relief (_tmp1_, GTK_RELIEF_NONE);
-#line 9324 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_data_button_on_click (SearchFilterToolbarSavedSearchPopoverDataButton* self)
-{
- SavedSearch* _tmp0_;
-#line 935 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON (self));
-#line 936 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_search;
-#line 936 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_emit (self, search_filter_toolbar_saved_search_popover_data_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_CLICKED_SIGNAL], 0, _tmp0_);
-#line 9338 "SearchFilter.c"
-}
-
-
-static SavedSearch*
-search_filter_toolbar_saved_search_popover_data_button_get_search (SearchFilterToolbarSavedSearchPopoverDataButton* self)
-{
- SavedSearch* result;
- SavedSearch* _tmp0_;
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON (self), NULL);
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->_search;
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- result = _tmp0_;
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return result;
-#line 9355 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_data_button_set_search (SearchFilterToolbarSavedSearchPopoverDataButton* self,
- SavedSearch* value)
-{
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON (self));
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (search_filter_toolbar_saved_search_popover_data_button_get_search (self) != value) {
-#line 9367 "SearchFilter.c"
- SavedSearch* _tmp0_;
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->_search);
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_search = _tmp0_;
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_notify_by_pspec ((GObject *) self, search_filter_toolbar_saved_search_popover_data_button_properties[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY]);
-#line 9377 "SearchFilter.c"
- }
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_data_button_class_init (SearchFilterToolbarSavedSearchPopoverDataButtonClass * klass)
-{
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_data_button_parent_class = g_type_class_peek_parent (klass);
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (SearchFilterToolbarSavedSearchPopoverDataButtonPrivate));
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_search_filter_toolbar_saved_search_popover_data_button_get_property;
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_search_filter_toolbar_saved_search_popover_data_button_set_property;
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_saved_search_popover_data_button_finalize;
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY, search_filter_toolbar_saved_search_popover_data_button_properties[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY] = g_param_spec_object ("search", "search", "search", TYPE_SAVED_SEARCH, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_data_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_CLICKED_SIGNAL] = g_signal_new ("clicked", SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
-#line 9399 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_data_button_instance_init (SearchFilterToolbarSavedSearchPopoverDataButton * self)
-{
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_GET_PRIVATE (self);
-#line 911 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->button = NULL;
-#line 9410 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_data_button_finalize (GObject * obj)
-{
- SearchFilterToolbarSavedSearchPopoverDataButton * self;
- GtkButton* _tmp0_;
- guint _tmp1_;
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButton);
-#line 927 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->button;
-#line 927 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp1_, NULL, FALSE);
-#line 927 "/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_saved_search_popover_data_button_on_click_gtk_button_clicked, self);
-#line 911 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->button);
-#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->_search);
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (search_filter_toolbar_saved_search_popover_data_button_parent_class)->finalize (obj);
-#line 9434 "SearchFilter.c"
-}
-
-
-static GType
-search_filter_toolbar_saved_search_popover_data_button_get_type (void)
-{
- static volatile gsize search_filter_toolbar_saved_search_popover_data_button_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_toolbar_saved_search_popover_data_button_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarSavedSearchPopoverDataButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_saved_search_popover_data_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarSavedSearchPopoverDataButton), 0, (GInstanceInitFunc) search_filter_toolbar_saved_search_popover_data_button_instance_init, NULL };
- GType search_filter_toolbar_saved_search_popover_data_button_type_id;
- search_filter_toolbar_saved_search_popover_data_button_type_id = g_type_register_static (gtk_bin_get_type (), "SearchFilterToolbarSavedSearchPopoverDataButton", &g_define_type_info, 0);
- g_once_init_leave (&search_filter_toolbar_saved_search_popover_data_button_type_id__volatile, search_filter_toolbar_saved_search_popover_data_button_type_id);
- }
- return search_filter_toolbar_saved_search_popover_data_button_type_id__volatile;
-}
-
-
-static void
-_vala_search_filter_toolbar_saved_search_popover_data_button_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- SearchFilterToolbarSavedSearchPopoverDataButton * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButton);
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- switch (property_id) {
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY:
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_value_set_object (value, search_filter_toolbar_saved_search_popover_data_button_get_search (self));
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 9468 "SearchFilter.c"
- default:
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 9474 "SearchFilter.c"
- }
-}
-
-
-static void
-_vala_search_filter_toolbar_saved_search_popover_data_button_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- SearchFilterToolbarSavedSearchPopoverDataButton * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButton);
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- switch (property_id) {
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- case SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY:
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_data_button_set_search (self, g_value_get_object (value));
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 9495 "SearchFilter.c"
- default:
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- break;
-#line 9501 "SearchFilter.c"
- }
-}
-
-
-static void
-search_filter_toolbar_value_saved_search_popover_init (GValue* value)
-{
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 9511 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_value_saved_search_popover_free_value (GValue* value)
-{
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (value->data[0].v_pointer) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_unref (value->data[0].v_pointer);
-#line 9522 "SearchFilter.c"
- }
-}
-
-
-static void
-search_filter_toolbar_value_saved_search_popover_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (src_value->data[0].v_pointer) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- dest_value->data[0].v_pointer = search_filter_toolbar_saved_search_popover_ref (src_value->data[0].v_pointer);
-#line 9535 "SearchFilter.c"
- } else {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 9539 "SearchFilter.c"
- }
-}
-
-
-static gpointer
-search_filter_toolbar_value_saved_search_popover_peek_pointer (const GValue* value)
-{
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return value->data[0].v_pointer;
-#line 9549 "SearchFilter.c"
-}
-
-
-static gchar*
-search_filter_toolbar_value_saved_search_popover_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (collect_values[0].v_pointer) {
-#line 9561 "SearchFilter.c"
- SearchFilterToolbarSavedSearchPopover * object;
- object = collect_values[0].v_pointer;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 9568 "SearchFilter.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.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 9572 "SearchFilter.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = search_filter_toolbar_saved_search_popover_ref (object);
-#line 9576 "SearchFilter.c"
- } else {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 9580 "SearchFilter.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return NULL;
-#line 9584 "SearchFilter.c"
-}
-
-
-static gchar*
-search_filter_toolbar_value_saved_search_popover_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SearchFilterToolbarSavedSearchPopover ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!object_p) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 9600 "SearchFilter.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (!value->data[0].v_pointer) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = NULL;
-#line 9606 "SearchFilter.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = value->data[0].v_pointer;
-#line 9610 "SearchFilter.c"
- } else {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- *object_p = search_filter_toolbar_saved_search_popover_ref (value->data[0].v_pointer);
-#line 9614 "SearchFilter.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return NULL;
-#line 9618 "SearchFilter.c"
-}
-
-
-GParamSpec*
-search_filter_toolbar_param_spec_saved_search_popover (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- SearchFilterToolbarParamSpecSavedSearchPopover* spec;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (g_type_is_a (object_type, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER), NULL);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return G_PARAM_SPEC (spec);
-#line 9638 "SearchFilter.c"
-}
-
-
-gpointer
-search_filter_toolbar_value_get_saved_search_popover (const GValue* value)
-{
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER), NULL);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return value->data[0].v_pointer;
-#line 9649 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_value_set_saved_search_popover (GValue* value,
- gpointer v_object)
-{
- SearchFilterToolbarSavedSearchPopover * old;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER));
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- old = value->data[0].v_pointer;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (v_object) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER));
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = v_object;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_ref (value->data[0].v_pointer);
-#line 9672 "SearchFilter.c"
- } else {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 9676 "SearchFilter.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (old) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_unref (old);
-#line 9682 "SearchFilter.c"
- }
-}
-
-
-void
-search_filter_toolbar_value_take_saved_search_popover (GValue* value,
- gpointer v_object)
-{
- SearchFilterToolbarSavedSearchPopover * old;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER));
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- old = value->data[0].v_pointer;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (v_object) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER));
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = v_object;
-#line 9704 "SearchFilter.c"
- } else {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- value->data[0].v_pointer = NULL;
-#line 9708 "SearchFilter.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (old) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_unref (old);
-#line 9714 "SearchFilter.c"
- }
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_class_init (SearchFilterToolbarSavedSearchPopoverClass * klass)
-{
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_parent_class = g_type_class_peek_parent (klass);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- ((SearchFilterToolbarSavedSearchPopoverClass *) klass)->finalize = search_filter_toolbar_saved_search_popover_finalize;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (SearchFilterToolbarSavedSearchPopoverPrivate));
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_SEARCH_ACTIVATED_SIGNAL] = g_signal_new ("search-activated", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_EDIT_CLICKED_SIGNAL] = g_signal_new ("edit-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DELETE_CLICKED_SIGNAL] = g_signal_new ("delete-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_ADD_CLICKED_SIGNAL] = g_signal_new ("add-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_CLOSED_SIGNAL] = g_signal_new ("closed", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 9738 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_instance_init (SearchFilterToolbarSavedSearchPopover * self)
-{
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_GET_PRIVATE (self);
-#line 897 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->popover = NULL;
-#line 898 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->list_box = NULL;
-#line 899 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->edit_buttons = NULL;
-#line 899 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->edit_buttons_length1 = 0;
-#line 899 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_edit_buttons_size_ = self->priv->edit_buttons_length1;
-#line 900 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->delete_buttons = NULL;
-#line 900 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->delete_buttons_length1 = 0;
-#line 900 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->_delete_buttons_size_ = self->priv->delete_buttons_length1;
-#line 901 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->add = NULL;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->ref_count = 1;
-#line 9767 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_saved_search_popover_finalize (SearchFilterToolbarSavedSearchPopover * obj)
-{
- SearchFilterToolbarSavedSearchPopover * self;
- SearchFilterToolbarSavedSearchPopoverDataButton** _tmp0_;
- gint _tmp0__length1;
- SearchFilterToolbarSavedSearchPopoverDataButton** _tmp4_;
- gint _tmp4__length1;
- GtkButton* _tmp8_;
- guint _tmp9_;
- GtkListBox* _tmp10_;
- guint _tmp11_;
- GtkPopover* _tmp12_;
- guint _tmp13_;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopover);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_handlers_destroy (self);
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->edit_buttons;
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0__length1 = self->priv->edit_buttons_length1;
-#line 9793 "SearchFilter.c"
- {
- SearchFilterToolbarSavedSearchPopoverDataButton** button_collection = NULL;
- gint button_collection_length1 = 0;
- gint _button_collection_size_ = 0;
- gint button_it = 0;
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button_collection = _tmp0_;
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button_collection_length1 = _tmp0__length1;
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- for (button_it = 0; button_it < _tmp0__length1; button_it = button_it + 1) {
-#line 9805 "SearchFilter.c"
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp1_;
- SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL;
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = _g_object_ref0 (button_collection[button_it]);
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button = _tmp1_;
-#line 9812 "SearchFilter.c"
- {
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp2_;
- guint _tmp3_;
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = button;
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("clicked", SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, &_tmp3_, NULL, FALSE);
-#line 977 "/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_saved_search_popover_on_edit_click_search_filter_toolbar_saved_search_popover_data_button_clicked, self);
-#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (button);
-#line 9824 "SearchFilter.c"
- }
- }
- }
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->delete_buttons;
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4__length1 = self->priv->delete_buttons_length1;
-#line 9832 "SearchFilter.c"
- {
- SearchFilterToolbarSavedSearchPopoverDataButton** button_collection = NULL;
- gint button_collection_length1 = 0;
- gint _button_collection_size_ = 0;
- gint button_it = 0;
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button_collection = _tmp4_;
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button_collection_length1 = _tmp4__length1;
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- for (button_it = 0; button_it < _tmp4__length1; button_it = button_it + 1) {
-#line 9844 "SearchFilter.c"
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp5_;
- SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL;
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp5_ = _g_object_ref0 (button_collection[button_it]);
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- button = _tmp5_;
-#line 9851 "SearchFilter.c"
- {
- SearchFilterToolbarSavedSearchPopoverDataButton* _tmp6_;
- guint _tmp7_;
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = button;
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("clicked", SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, &_tmp7_, NULL, FALSE);
-#line 978 "/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_saved_search_popover_on_delete_click_search_filter_toolbar_saved_search_popover_data_button_clicked, self);
-#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (button);
-#line 9863 "SearchFilter.c"
- }
- }
- }
-#line 979 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = self->priv->add;
-#line 979 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp9_, NULL, FALSE);
-#line 979 "/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_saved_search_popover_on_add_click_gtk_button_clicked, self);
-#line 980 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = self->priv->list_box;
-#line 980 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("row-activated", gtk_list_box_get_type (), &_tmp11_, NULL, FALSE);
-#line 980 "/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_saved_search_popover_on_activate_row_gtk_list_box_row_activated, self);
-#line 981 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = self->priv->popover;
-#line 981 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("closed", gtk_popover_get_type (), &_tmp13_, NULL, FALSE);
-#line 981 "/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_saved_search_popover_on_popover_closed_gtk_popover_closed, self);
-#line 897 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->popover);
-#line 898 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->list_box);
-#line 899 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->edit_buttons = (_vala_array_free (self->priv->edit_buttons, self->priv->edit_buttons_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 900 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->delete_buttons = (_vala_array_free (self->priv->delete_buttons, self->priv->delete_buttons_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 901 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->add);
-#line 9895 "SearchFilter.c"
-}
-
-
-GType
-search_filter_toolbar_saved_search_popover_get_type (void)
-{
- static volatile gsize search_filter_toolbar_saved_search_popover_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_toolbar_saved_search_popover_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { search_filter_toolbar_value_saved_search_popover_init, search_filter_toolbar_value_saved_search_popover_free_value, search_filter_toolbar_value_saved_search_popover_copy_value, search_filter_toolbar_value_saved_search_popover_peek_pointer, "p", search_filter_toolbar_value_saved_search_popover_collect_value, "p", search_filter_toolbar_value_saved_search_popover_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarSavedSearchPopoverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_saved_search_popover_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarSavedSearchPopover), 0, (GInstanceInitFunc) search_filter_toolbar_saved_search_popover_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType search_filter_toolbar_saved_search_popover_type_id;
- search_filter_toolbar_saved_search_popover_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SearchFilterToolbarSavedSearchPopover", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&search_filter_toolbar_saved_search_popover_type_id__volatile, search_filter_toolbar_saved_search_popover_type_id);
- }
- return search_filter_toolbar_saved_search_popover_type_id__volatile;
-}
-
-
-gpointer
-search_filter_toolbar_saved_search_popover_ref (gpointer instance)
-{
- SearchFilterToolbarSavedSearchPopover * self;
- self = instance;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- return instance;
-#line 9924 "SearchFilter.c"
-}
-
-
-void
-search_filter_toolbar_saved_search_popover_unref (gpointer instance)
-{
- SearchFilterToolbarSavedSearchPopover * self;
- self = instance;
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_GET_CLASS (self)->finalize (self);
-#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 9939 "SearchFilter.c"
- }
-}
-
-
-static void
-search_filter_toolbar_class_init (SearchFilterToolbarClass * klass)
-{
-#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- search_filter_toolbar_parent_class = g_type_class_peek_parent (klass);
-#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_type_class_add_private (klass, sizeof (SearchFilterToolbarPrivate));
-#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_finalize;
-#line 9953 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_instance_init (SearchFilterToolbar * self)
-{
- GtkMenu* _tmp0_;
- GtkMenuItem* _tmp1_;
- GtkBuilder* _tmp2_;
- SearchFilterToolbarSavedSearchFilterButton* _tmp3_;
-#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv = SEARCH_FILTER_TOOLBAR_GET_PRIVATE (self);
-#line 661 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = (GtkMenu*) gtk_menu_new ();
-#line 661 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp0_);
-#line 661 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->close_menu = _tmp0_;
-#line 662 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp1_ = (GtkMenuItem*) gtk_menu_item_new ();
-#line 662 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp1_);
-#line 662 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->close_item = _tmp1_;
-#line 1032 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = gtk_builder_new ();
-#line 1032 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->builder = _tmp2_;
-#line 1035 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->saved_search = NULL;
-#line 1038 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp3_ = search_filter_toolbar_saved_search_filter_button_new ();
-#line 1038 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_object_ref_sink (_tmp3_);
-#line 1038 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->saved_search_button = _tmp3_;
-#line 1039 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->elide_showing_again = FALSE;
-#line 1040 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self->priv->search_filter = NULL;
-#line 9994 "SearchFilter.c"
-}
-
-
-static void
-search_filter_toolbar_finalize (GObject * obj)
-{
- SearchFilterToolbar * self;
- SearchFilterActions* _tmp0_;
- guint _tmp1_;
- SearchFilterActions* _tmp2_;
- guint _tmp3_;
- SearchFilterActions* _tmp4_;
- guint _tmp5_;
- SearchFilterActions* _tmp6_;
- guint _tmp7_;
- SearchFilterActions* _tmp8_;
- guint _tmp9_;
- SearchFilterActions* _tmp10_;
- guint _tmp11_;
- SearchFilterActions* _tmp12_;
- guint _tmp13_;
- SearchFilterActions* _tmp14_;
- guint _tmp15_;
- GtkToolbar* _tmp16_;
- guint _tmp17_;
-#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbar);
-#line 1156 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp0_ = self->priv->actions;
-#line 1156 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("media-context-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp1_, NULL, FALSE);
-#line 1156 "/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 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp2_ = self->priv->actions;
-#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("flagged-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp3_, NULL, FALSE);
-#line 1158 "/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 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp4_ = self->priv->actions;
-#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("photos-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp5_, NULL, FALSE);
-#line 1159 "/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 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp6_ = self->priv->actions;
-#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("videos-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp7_, NULL, FALSE);
-#line 1160 "/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 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp8_ = self->priv->actions;
-#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("raw-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp9_, NULL, FALSE);
-#line 1161 "/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 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp10_ = self->priv->actions;
-#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("rating-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp11_, NULL, FALSE);
-#line 1162 "/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 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp12_ = self->priv->actions;
-#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("text-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp13_, NULL, FALSE);
-#line 1163 "/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 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp14_ = self->priv->actions;
-#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("criteria-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp15_, NULL, FALSE);
-#line 1164 "/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 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _tmp16_ = self->priv->toolbar;
-#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- g_signal_parse_name ("popup-context-menu", gtk_toolbar_get_type (), &_tmp17_, NULL, FALSE);
-#line 1166 "/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 603 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbar);
-#line 661 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->close_menu);
-#line 662 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->close_item);
-#line 1032 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->builder);
-#line 1034 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _search_filter_actions_unref0 (self->priv->actions);
-#line 1035 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->saved_search);
-#line 1036 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->search_box);
-#line 1037 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->rating_button);
-#line 1038 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->saved_search_button);
-#line 1040 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _view_filter_unref0 (self->priv->search_filter);
-#line 1041 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->label_type);
-#line 1042 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbtn_photos);
-#line 1043 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbtn_videos);
-#line 1044 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbtn_raw);
-#line 1045 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->toolbtn_flag);
-#line 1046 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->sepr_mediatype_flagged);
-#line 1047 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->sepr_flagged_rating);
-#line 1048 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- _g_object_unref0 (self->priv->sepr_rating_saved);
-#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala"
- G_OBJECT_CLASS (search_filter_toolbar_parent_class)->finalize (obj);
-#line 10114 "SearchFilter.c"
-}
-
-
-GType
-search_filter_toolbar_get_type (void)
-{
- static volatile gsize search_filter_toolbar_type_id__volatile = 0;
- if (g_once_init_enter (&search_filter_toolbar_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbar), 0, (GInstanceInitFunc) search_filter_toolbar_instance_init, NULL };
- GType search_filter_toolbar_type_id;
- search_filter_toolbar_type_id = g_type_register_static (gtk_revealer_get_type (), "SearchFilterToolbar", &g_define_type_info, 0);
- g_once_init_leave (&search_filter_toolbar_type_id__volatile, search_filter_toolbar_type_id);
- }
- return search_filter_toolbar_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index 8acf035..bad6a73 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -223,6 +223,10 @@ public abstract class DefaultSearchViewFilter : SearchViewFilter {
Gee.List<Tag>? tags = Tag.global.fetch_for_source(source);
int tags_size = (tags != null) ? tags.size : 0;
+#if ENABLE_FACES
+ Gee.List<Face>? faces = Face.global.fetch_for_source(source);
+#endif
+
foreach (unowned string word in get_search_filter_words()) {
if (media_keywords != null && media_keywords.contains(word))
continue;
@@ -245,6 +249,22 @@ public abstract class DefaultSearchViewFilter : SearchViewFilter {
continue;
}
+#if ENABLE_FACES
+ if (faces != null) {
+ bool found = false;
+ foreach (Face f in faces) {
+ unowned string? face_keywords = f.get_indexable_keywords();
+ if (face_keywords != null && face_keywords.contains(word)) {
+ found = true;
+
+ break;
+ }
+ }
+
+ if (found)
+ continue;
+ }
+#endif
// failed all tests (this even works if none of the Indexables have strings,
// as they fail the implicit AND test)
return false;
@@ -754,28 +774,32 @@ public class SearchFilterToolbar : Gtk.Revealer {
}
private Gtk.Widget get_filter_icon(RatingFilter filter) {
- string filename = null;
+ Gtk.Widget? icon = null;
switch (filter) {
case RatingFilter.REJECTED_OR_HIGHER:
- filename = Resources.ICON_FILTER_REJECTED_OR_BETTER;
+ icon = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
+ var image = new Gtk.Image.from_icon_name ("emblem-photos-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
+ image.margin_end = 2;
+ (icon as Gtk.Box).pack_start(image);
+ image = new Gtk.Image.from_icon_name ("window-close-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
+ (icon as Gtk.Box).pack_start(image);
+ icon.show_all();
break;
case RatingFilter.REJECTED_ONLY:
- filename = Resources.ICON_RATING_REJECTED;
+ icon = new Gtk.Image.from_icon_name ("window-close-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
break;
case RatingFilter.UNRATED_OR_HIGHER:
default:
- filename = Resources.ICON_FILTER_UNRATED_OR_BETTER;
+ icon = new Gtk.Image.from_icon_name ("emblem-photos-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
break;
}
-
- Gtk.Image image = new Gtk.Image.from_pixbuf(Resources.load_icon(filename,
- get_filter_icon_size(filter)));
- image.set_margin_end(6);
- return image;
+ icon.margin_end = 6;
+
+ return icon;
}
private int get_filter_icon_size(RatingFilter filter) {
@@ -857,7 +881,7 @@ public class SearchFilterToolbar : Gtk.Revealer {
button = new Gtk.ToggleButton();
button.set_always_show_image(true);
- Gtk.Image? image = new Gtk.Image.from_icon_name("edit-find", Gtk.IconSize.SMALL_TOOLBAR);
+ Gtk.Image? image = new Gtk.Image.from_icon_name("edit-find-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
image.set_margin_end(6);
button.set_image(image);
button.set_can_focus(false);
@@ -1171,29 +1195,29 @@ public class SearchFilterToolbar : Gtk.Revealer {
if (has_photos || has_raw)
// As a user, I would expect, that a raw photo is still a photo.
// Let's enable the photo button even if there ar only raw photos.
- toolbtn_photos.set_icon_name(Resources.ICON_FILTER_PHOTOS);
+ toolbtn_photos.set_icon_name("filter-photos-symbolic");
else
- toolbtn_photos.set_icon_name(Resources.ICON_FILTER_PHOTOS_DISABLED);
+ toolbtn_photos.set_icon_name("filter-photos-disabled-symbolic");
if (has_videos)
- toolbtn_videos.set_icon_name(Resources.ICON_FILTER_VIDEOS);
+ toolbtn_videos.set_icon_name("filter-videos-symbolic");
else
- toolbtn_videos.set_icon_name(Resources.ICON_FILTER_VIDEOS_DISABLED);
+ toolbtn_videos.set_icon_name("filter-videos-disabled-symbolic");
if (has_raw)
- toolbtn_raw.set_icon_name(Resources.ICON_FILTER_RAW);
+ toolbtn_raw.set_icon_name("filter-raw-symbolic");
else
- toolbtn_raw.set_icon_name(Resources.ICON_FILTER_RAW_DISABLED);
+ toolbtn_raw.set_icon_name("filter-raw-disabled-symbolic");
if (has_flagged)
- toolbtn_flag.set_icon_name(Resources.ICON_FILTER_FLAGGED);
+ toolbtn_flag.set_icon_name("filter-flagged-symbolic");
else
- toolbtn_flag.set_icon_name(Resources.ICON_FILTER_FLAGGED_DISABLED);
+ toolbtn_flag.set_icon_name("filter-flagged-disabled-symbolic");
}
// Ticket #3260 part IV - display the context menu on secondary click
private bool on_context_menu_requested(int x, int y, int button) {
- close_menu.popup(null, null, null, button, Gtk.get_current_event_time());
+ close_menu.popup_at_pointer(null);
return false;
}
diff --git a/src/SlideshowPage.c b/src/SlideshowPage.c
deleted file mode 100644
index e19ca76..0000000
--- a/src/SlideshowPage.c
+++ /dev/null
@@ -1,3324 +0,0 @@
-/* SlideshowPage.c generated by valac 0.40.4, the Vala compiler
- * generated from SlideshowPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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 <float.h>
-#include <math.h>
-#include <pango/pango.h>
-#include <pango/pangocairo.h>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate;
-
-#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ())
-#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer))
-#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER))
-#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER))
-#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-
-typedef struct _ZoomBuffer ZoomBuffer;
-typedef struct _ZoomBufferClass ZoomBufferClass;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ())
-
-#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ())
-#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage))
-#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
-#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE))
-#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE))
-#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
-
-typedef struct _SlideshowPage SlideshowPage;
-typedef struct _SlideshowPageClass SlideshowPageClass;
-typedef struct _SlideshowPagePrivate SlideshowPagePrivate;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_PIXBUF_CACHE (pixbuf_cache_get_type ())
-#define PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXBUF_CACHE, PixbufCache))
-#define PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXBUF_CACHE, PixbufCacheClass))
-#define IS_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXBUF_CACHE))
-#define IS_PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXBUF_CACHE))
-#define PIXBUF_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXBUF_CACHE, PixbufCacheClass))
-
-typedef struct _PixbufCache PixbufCache;
-typedef struct _PixbufCacheClass PixbufCacheClass;
-
-#define TYPE_SCREENSAVER (screensaver_get_type ())
-#define SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCREENSAVER, Screensaver))
-#define SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCREENSAVER, ScreensaverClass))
-#define IS_SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCREENSAVER))
-#define IS_SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCREENSAVER))
-#define SCREENSAVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCREENSAVER, ScreensaverClass))
-
-typedef struct _Screensaver Screensaver;
-typedef struct _ScreensaverClass ScreensaverClass;
-enum {
- SLIDESHOW_PAGE_0_PROPERTY,
- SLIDESHOW_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* slideshow_page_properties[SLIDESHOW_PAGE_NUM_PROPERTIES];
-#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 _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
-#define _screensaver_unref0(var) ((var == NULL) ? NULL : (var = (screensaver_unref (var), NULL)))
-
-#define TYPE_TRANSITION_EFFECTS_MANAGER (transition_effects_manager_get_type ())
-#define TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager))
-#define TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass))
-#define IS_TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_EFFECTS_MANAGER))
-#define IS_TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_EFFECTS_MANAGER))
-#define TRANSITION_EFFECTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass))
-
-typedef struct _TransitionEffectsManager TransitionEffectsManager;
-typedef struct _TransitionEffectsManagerClass TransitionEffectsManagerClass;
-#define _transition_effects_manager_unref0(var) ((var == NULL) ? NULL : (var = (transition_effects_manager_unref (var), NULL)))
-
-#define PIXBUF_CACHE_TYPE_PHOTO_TYPE (pixbuf_cache_photo_type_get_type ())
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#define TYPE_DIRECTION (direction_get_type ())
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#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_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG (slideshow_page_settings_dialog_get_type ())
-#define SLIDESHOW_PAGE_SETTINGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialog))
-#define SLIDESHOW_PAGE_SETTINGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogClass))
-#define SLIDESHOW_PAGE_IS_SETTINGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG))
-#define SLIDESHOW_PAGE_IS_SETTINGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG))
-#define SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogClass))
-
-typedef struct _SlideshowPageSettingsDialog SlideshowPageSettingsDialog;
-typedef struct _SlideshowPageSettingsDialogClass SlideshowPageSettingsDialogClass;
-#define _pango_attribute_destroy0(var) ((var == NULL) ? NULL : (var = (pango_attribute_destroy (var), NULL)))
-#define _pango_attr_list_unref0(var) ((var == NULL) ? NULL : (var = (pango_attr_list_unref (var), NULL)))
-typedef struct _SlideshowPageSettingsDialogPrivate SlideshowPageSettingsDialogPrivate;
-enum {
- SLIDESHOW_PAGE_SETTINGS_DIALOG_0_PROPERTY,
- SLIDESHOW_PAGE_SETTINGS_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* slideshow_page_settings_dialog_properties[SLIDESHOW_PAGE_SETTINGS_DIALOG_NUM_PROPERTIES];
-enum {
- SLIDESHOW_PAGE_HIDE_TOOLBAR_SIGNAL,
- SLIDESHOW_PAGE_NUM_SIGNALS
-};
-static guint slideshow_page_signals[SLIDESHOW_PAGE_NUM_SIGNALS] = {0};
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS
-} SinglePhotoPageUpdateReason;
-
-struct _SinglePhotoPage {
- Page parent_instance;
- SinglePhotoPagePrivate * priv;
- GtkDrawingArea* canvas;
- GtkViewport* viewport;
-};
-
-struct _SinglePhotoPageClass {
- PageClass parent_class;
- gboolean (*is_zoom_supported) (SinglePhotoPage* self);
- void (*cancel_zoom) (SinglePhotoPage* self);
- void (*save_zoom_state) (SinglePhotoPage* self);
- void (*restore_zoom_state) (SinglePhotoPage* self);
- ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self);
- void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim);
- void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*on_previous_photo) (SinglePhotoPage* self);
- void (*on_next_photo) (SinglePhotoPage* self);
-};
-
-struct _SlideshowPage {
- SinglePhotoPage parent_instance;
- SlideshowPagePrivate * priv;
-};
-
-struct _SlideshowPageClass {
- SinglePhotoPageClass parent_class;
-};
-
-struct _SlideshowPagePrivate {
- SourceCollection* sources;
- ViewCollection* controller;
- Photo* current;
- GtkToolButton* play_pause_button;
- GtkToolButton* settings_button;
- PixbufCache* cache;
- GTimer* timer;
- gboolean playing;
- gboolean exiting;
- gchar** transitions;
- gint transitions_length1;
- gint _transitions_size_;
- Screensaver* screensaver;
-};
-
-typedef enum {
- PIXBUF_CACHE_PHOTO_TYPE_BASELINE,
- PIXBUF_CACHE_PHOTO_TYPE_MASTER
-} PixbufCachePhotoType;
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef gboolean (*PixbufCacheCacheFilter) (Photo* photo, void* user_data);
-typedef enum {
- DIRECTION_FORWARD,
- DIRECTION_BACKWARD
-} Direction;
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _SlideshowPageSettingsDialog {
- GtkDialog parent_instance;
- SlideshowPageSettingsDialogPrivate * priv;
-};
-
-struct _SlideshowPageSettingsDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _SlideshowPageSettingsDialogPrivate {
- GtkAdjustment* delay_adjustment;
- GtkSpinButton* delay_entry;
- GtkComboBoxText* transition_effect_selector;
- GtkScale* transition_effect_hscale;
- GtkSpinButton* transition_effect_entry;
- GtkAdjustment* transition_effect_adjustment;
- GtkCheckButton* show_title_button;
-};
-
-
-static gpointer slideshow_page_parent_class = NULL;
-static gpointer slideshow_page_settings_dialog_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType zoom_buffer_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST;
-GType slideshow_page_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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 pixbuf_cache_get_type (void) G_GNUC_CONST;
-gpointer screensaver_ref (gpointer instance);
-void screensaver_unref (gpointer instance);
-GParamSpec* param_spec_screensaver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_screensaver (GValue* value,
- gpointer v_object);
-void value_take_screensaver (GValue* value,
- gpointer v_object);
-gpointer value_get_screensaver (const GValue* value);
-GType screensaver_get_type (void) G_GNUC_CONST;
-#define SLIDESHOW_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SLIDESHOW_PAGE, SlideshowPagePrivate))
-#define SLIDESHOW_PAGE_READAHEAD_COUNT 5
-#define SLIDESHOW_PAGE_CHECK_ADVANCE_MSEC 250
-SlideshowPage* slideshow_page_new (SourceCollection* sources,
- ViewCollection* controller,
- Photo* start);
-SlideshowPage* slideshow_page_construct (GType object_type,
- SourceCollection* sources,
- ViewCollection* controller,
- Photo* start);
-SinglePhotoPage* single_photo_page_construct (GType object_type,
- const gchar* page_name,
- gboolean scale_up_to_viewport);
-gpointer transition_effects_manager_ref (gpointer instance);
-void transition_effects_manager_unref (gpointer instance);
-GParamSpec* param_spec_transition_effects_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transition_effects_manager (GValue* value,
- gpointer v_object);
-void value_take_transition_effects_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_transition_effects_manager (const GValue* value);
-GType transition_effects_manager_get_type (void) G_GNUC_CONST;
-TransitionEffectsManager* transition_effects_manager_get_instance (void);
-GeeCollection* transition_effects_manager_get_effect_ids (TransitionEffectsManager* self);
-#define NULL_TRANSITION_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.null"
-#define RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.random"
-static void slideshow_page_update_transition_effect (SlideshowPage* self);
-GtkToolbar* page_get_toolbar (Page* self);
-void single_photo_page_on_previous_photo (SinglePhotoPage* self);
-static void _single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-static void slideshow_page_on_play_pause (SlideshowPage* self);
-static void _slideshow_page_on_play_pause_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-void single_photo_page_on_next_photo (SinglePhotoPage* self);
-static void _single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-static void slideshow_page_on_change_settings (SlideshowPage* self);
-static void _slideshow_page_on_change_settings_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self);
-Screensaver* screensaver_new (void);
-Screensaver* screensaver_construct (GType object_type);
-static void slideshow_page_real_switched_to (Page* base);
-void page_switched_to (Page* self);
-GType pixbuf_cache_photo_type_get_type (void) G_GNUC_CONST;
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void single_photo_page_get_canvas_scaling (SinglePhotoPage* self,
- Scaling* result);
-PixbufCache* pixbuf_cache_new (SourceCollection* sources,
- PixbufCachePhotoType type,
- Scaling* scaling,
- gint max_count,
- PixbufCacheCacheFilter filter,
- void* filter_target);
-PixbufCache* pixbuf_cache_construct (GType object_type,
- SourceCollection* sources,
- PixbufCachePhotoType type,
- Scaling* scaling,
- gint max_count,
- PixbufCacheCacheFilter filter,
- void* filter_target);
-GType direction_get_type (void) G_GNUC_CONST;
-static gboolean slideshow_page_get_next_photo (SlideshowPage* self,
- Photo* start,
- Direction direction,
- Photo* * next,
- GdkPixbuf* * next_pixbuf);
-void single_photo_page_set_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* unscaled,
- Dimensions* max_dim,
- Direction* direction);
-GType photo_exception_get_type (void) G_GNUC_CONST;
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-static gboolean slideshow_page_auto_advance (SlideshowPage* self);
-static gboolean _slideshow_page_auto_advance_gsource_func (gpointer self);
-void screensaver_inhibit (Screensaver* self,
- const gchar* reason);
-static void slideshow_page_real_switching_from (Page* base);
-void page_switching_from (Page* self);
-void screensaver_uninhibit (Screensaver* self);
-GdkPixbuf* pixbuf_cache_fetch (PixbufCache* self,
- Photo* photo,
- GError** error);
-gchar* data_object_to_string (DataObject* self);
-GType data_view_get_type (void) G_GNUC_CONST;
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-DataView* view_collection_get_next (ViewCollection* self,
- DataView* view);
-DataView* view_collection_get_previous (ViewCollection* self,
- DataView* view);
-DataSource* data_view_get_source (DataView* self);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-GtkWindow* page_get_container (Page* self);
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-void app_window_end_fullscreen (AppWindow* self);
-gboolean view_collection_get_immediate_neighbors (ViewCollection* self,
- DataSource* home,
- DataSource* * next,
- DataSource* * prev,
- const gchar* type_selector);
-#define PHOTO_TYPENAME "thumb"
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-void pixbuf_cache_prefetch (PixbufCache* self,
- Photo* photo,
- BackgroundJobJobPriority priority,
- gboolean force);
-GeeSet* view_collection_get_extended_neighbors (ViewCollection* self,
- DataSource* home,
- const gchar* typename);
-void pixbuf_cache_prefetch_many (PixbufCache* self,
- GeeCollection* photos,
- BackgroundJobJobPriority priority,
- gboolean force);
-static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base);
-static void slideshow_page_advance (SlideshowPage* self,
- Photo* photo,
- Direction direction);
-static void slideshow_page_real_on_next_photo (SinglePhotoPage* base);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gchar* configuration_facade_get_slideshow_transition_effect_id (ConfigurationFacade* self);
-static void slideshow_page_random_transition_effect (SlideshowPage* self);
-gdouble configuration_facade_get_slideshow_delay (ConfigurationFacade* self);
-static gboolean slideshow_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-static GType slideshow_page_settings_dialog_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_new (void);
-static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GType object_type);
-void configuration_facade_set_slideshow_delay (ConfigurationFacade* self,
- gdouble delay);
-static gdouble slideshow_page_settings_dialog_get_delay (SlideshowPageSettingsDialog* self);
-void configuration_facade_set_slideshow_transition_delay (ConfigurationFacade* self,
- gdouble delay);
-static gdouble slideshow_page_settings_dialog_get_transition_delay (SlideshowPageSettingsDialog* self);
-void configuration_facade_set_slideshow_transition_effect_id (ConfigurationFacade* self,
- const gchar* id);
-static gchar* slideshow_page_settings_dialog_get_transition_effect_id (SlideshowPageSettingsDialog* self);
-void configuration_facade_set_slideshow_show_title (ConfigurationFacade* self,
- gboolean show_title);
-static gboolean slideshow_page_settings_dialog_get_show_title (SlideshowPageSettingsDialog* self);
-gdouble configuration_facade_get_slideshow_transition_delay (ConfigurationFacade* self);
-void single_photo_page_set_transition (SinglePhotoPage* self,
- const gchar* effect_id,
- gint duration_msec);
-#define TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID NULL_TRANSITION_DESCRIPTOR_EFFECT_ID
-static void slideshow_page_paint_title (SlideshowPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-gchar* media_source_get_title (MediaSource* self);
-void set_source_color_from_string (cairo_t* ctx,
- const gchar* spec);
-static void slideshow_page_real_paint (SinglePhotoPage* base,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-void single_photo_page_paint (SinglePhotoPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim);
-gboolean configuration_facade_get_slideshow_show_title (ConfigurationFacade* self);
-gboolean single_photo_page_is_transition_in_progress (SinglePhotoPage* self);
-#define SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogPrivate))
-FullscreenWindow* app_window_get_fullscreen (void);
-gchar* transition_effects_manager_get_effect_name (TransitionEffectsManager* self,
- const gchar* effect_id);
-GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsManager* self,
- GCompareDataFunc comparator,
- void* comparator_target,
- GDestroyNotify comparator_target_destroy_notify);
-gint utf8_ci_compare (void* a,
- void* b);
-static gint _utf8_ci_compare_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self,
- const gchar* effect_name);
-static void slideshow_page_settings_dialog_on_transition_changed (SlideshowPageSettingsDialog* self);
-static void _slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void slideshow_page_settings_dialog_finalize (GObject * obj);
-static void slideshow_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 gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 764 "SlideshowPage.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return self ? g_object_ref (self) : NULL;
-#line 773 "SlideshowPage.c"
-}
-
-
-static void
-_single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 137 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- single_photo_page_on_previous_photo ((SinglePhotoPage*) self);
-#line 783 "SlideshowPage.c"
-}
-
-
-static void
-_slideshow_page_on_play_pause_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_on_play_pause ((SlideshowPage*) self);
-#line 793 "SlideshowPage.c"
-}
-
-
-static void
-_single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- single_photo_page_on_next_photo ((SinglePhotoPage*) self);
-#line 803 "SlideshowPage.c"
-}
-
-
-static void
-_slideshow_page_on_change_settings_gtk_tool_button_clicked (GtkToolButton* _sender,
- gpointer self)
-{
-#line 159 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_on_change_settings ((SlideshowPage*) self);
-#line 813 "SlideshowPage.c"
-}
-
-
-SlideshowPage*
-slideshow_page_construct (GType object_type,
- SourceCollection* sources,
- ViewCollection* controller,
- Photo* start)
-{
- SlideshowPage * self = NULL;
- SourceCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeCollection* pluggables = NULL;
- TransitionEffectsManager* _tmp2_;
- TransitionEffectsManager* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeArrayList* a = NULL;
- GeeArrayList* _tmp6_;
- gint _tmp7_;
- gpointer* _tmp8_;
- Photo* _tmp9_;
- GtkToolbar* toolbar = NULL;
- GtkToolbar* _tmp10_;
- GtkToolButton* previous_button = NULL;
- GtkToolButton* _tmp11_;
- GtkToolButton* _tmp12_;
- GtkToolButton* _tmp13_;
- GtkToolButton* _tmp14_;
- GtkToolButton* _tmp15_;
- GtkToolButton* _tmp16_;
- GtkToolButton* next_button = NULL;
- GtkToolButton* _tmp17_;
- GtkToolButton* _tmp18_;
- GtkToolButton* _tmp19_;
- GtkToolButton* _tmp20_;
- GtkToolButton* _tmp21_;
- GtkToolButton* _tmp22_;
- GtkToolButton* _tmp23_;
- GtkToolButton* _tmp24_;
- Screensaver* _tmp25_;
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL);
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (controller), NULL);
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (IS_PHOTO (start), NULL);
-#line 115 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = (SlideshowPage*) single_photo_page_construct (object_type, _ ("Slideshow"), TRUE);
-#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = _data_collection_ref0 (sources);
-#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->sources = _tmp0_;
-#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = _data_collection_ref0 (controller);
-#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _data_collection_unref0 (self->priv->controller);
-#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->controller = _tmp1_;
-#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = transition_effects_manager_get_instance ();
-#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = _tmp2_;
-#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = transition_effects_manager_get_effect_ids (_tmp3_);
-#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = _tmp4_;
-#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _transition_effects_manager_unref0 (_tmp3_);
-#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pluggables = _tmp5_;
-#line 121 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 121 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- a = _tmp6_;
-#line 122 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gee_array_list_add_all (a, pluggables);
-#line 123 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), NULL_TRANSITION_DESCRIPTOR_EFFECT_ID);
-#line 124 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID);
-#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection), &_tmp7_);
-#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->transitions = (_vala_array_free (self->priv->transitions, self->priv->transitions_length1, (GDestroyNotify) g_free), NULL);
-#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->transitions = _tmp8_;
-#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->transitions_length1 = _tmp7_;
-#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->_transitions_size_ = self->priv->transitions_length1;
-#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = _g_object_ref0 (start);
-#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->current);
-#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->current = _tmp9_;
-#line 128 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_update_transition_effect (self);
-#line 131 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 131 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- toolbar = _tmp10_;
-#line 134 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = (GtkToolButton*) gtk_tool_button_new (NULL, _ ("Back"));
-#line 134 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_object_ref_sink (_tmp11_);
-#line 134 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- previous_button = _tmp11_;
-#line 135 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_icon_name (previous_button, "go-previous");
-#line 136 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (previous_button, gtk_tool_item_get_type (), GtkToolItem), _ ("Go to the previous photo"));
-#line 137 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_signal_connect_object (previous_button, "clicked", (GCallback) _single_photo_page_on_previous_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0);
-#line 139 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (previous_button, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = (GtkToolButton*) gtk_tool_button_new (NULL, _ ("Pause"));
-#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_object_ref_sink (_tmp12_);
-#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->play_pause_button);
-#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->play_pause_button = _tmp12_;
-#line 142 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp13_ = self->priv->play_pause_button;
-#line 142 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_icon_name (_tmp13_, "media-playback-pause");
-#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp14_ = self->priv->play_pause_button;
-#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_tool_item_get_type (), GtkToolItem), _ ("Pause the slideshow"));
-#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp15_ = self->priv->play_pause_button;
-#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_signal_connect_object (_tmp15_, "clicked", (GCallback) _slideshow_page_on_play_pause_gtk_tool_button_clicked, self, 0);
-#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp16_ = self->priv->play_pause_button;
-#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 148 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp17_ = (GtkToolButton*) gtk_tool_button_new (NULL, _ ("Next"));
-#line 148 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_object_ref_sink (_tmp17_);
-#line 148 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- next_button = _tmp17_;
-#line 149 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_icon_name (next_button, "go-next");
-#line 150 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (next_button, gtk_tool_item_get_type (), GtkToolItem), _ ("Go to the next photo"));
-#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_signal_connect_object (next_button, "clicked", (GCallback) _single_photo_page_on_next_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0);
-#line 153 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (next_button, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 155 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp18_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL);
-#line 155 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_object_ref_sink (_tmp18_);
-#line 155 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->settings_button);
-#line 155 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->settings_button = _tmp18_;
-#line 156 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp19_ = self->priv->settings_button;
-#line 156 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_icon_name (_tmp19_, "preferences-system");
-#line 157 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp20_ = self->priv->settings_button;
-#line 157 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_label (_tmp20_, _ ("Settings"));
-#line 158 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp21_ = self->priv->settings_button;
-#line 158 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_item_get_type (), GtkToolItem), _ ("Change slideshow settings"));
-#line 159 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp22_ = self->priv->settings_button;
-#line 159 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_signal_connect_object (_tmp22_, "clicked", (GCallback) _slideshow_page_on_change_settings_gtk_tool_button_clicked, self, 0);
-#line 160 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp23_ = self->priv->settings_button;
-#line 160 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 162 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp24_ = self->priv->settings_button;
-#line 162 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 164 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp25_ = screensaver_new ();
-#line 164 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _screensaver_unref0 (self->priv->screensaver);
-#line 164 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->screensaver = _tmp25_;
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_button);
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (previous_button);
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (toolbar);
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (a);
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (pluggables);
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return self;
-#line 1021 "SlideshowPage.c"
-}
-
-
-SlideshowPage*
-slideshow_page_new (SourceCollection* sources,
- ViewCollection* controller,
- Photo* start)
-{
-#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return slideshow_page_construct (TYPE_SLIDESHOW_PAGE, sources, controller, start);
-#line 1032 "SlideshowPage.c"
-}
-
-
-static gboolean
-_slideshow_page_auto_advance_gsource_func (gpointer self)
-{
- gboolean result;
- result = slideshow_page_auto_advance ((SlideshowPage*) self);
-#line 179 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 1043 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_real_switched_to (Page* base)
-{
- SlideshowPage * self;
- SourceCollection* _tmp0_;
- Scaling _tmp1_ = {0};
- PixbufCache* _tmp2_;
- GdkPixbuf* pixbuf = NULL;
- Photo* _tmp3_;
- Photo* _tmp4_ = NULL;
- GdkPixbuf* _tmp5_ = NULL;
- gboolean _tmp6_;
- GTimer* _tmp11_;
- Screensaver* _tmp12_;
-#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
-#line 168 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- PAGE_CLASS (slideshow_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page));
-#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->sources;
-#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_);
-#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = pixbuf_cache_new (_tmp0_, PIXBUF_CACHE_PHOTO_TYPE_BASELINE, &_tmp1_, SLIDESHOW_PAGE_READAHEAD_COUNT, NULL, NULL);
-#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->cache);
-#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->cache = _tmp2_;
-#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = self->priv->current;
-#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = slideshow_page_get_next_photo (self, _tmp3_, DIRECTION_FORWARD, &_tmp4_, &_tmp5_);
-#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->current);
-#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->current = _tmp4_;
-#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (pixbuf);
-#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pixbuf = _tmp5_;
-#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp6_) {
-#line 1089 "SlideshowPage.c"
- GdkPixbuf* _tmp7_;
- Photo* _tmp8_;
- Dimensions _tmp9_ = {0};
- Direction _tmp10_;
-#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = pixbuf;
-#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = self->priv->current;
-#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_);
-#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = DIRECTION_FORWARD;
-#line 176 "/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 1104 "SlideshowPage.c"
- }
-#line 179 "/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);
-#line 180 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = self->priv->timer;
-#line 180 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_timer_start (_tmp11_);
-#line 182 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = self->priv->screensaver;
-#line 182 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- screensaver_inhibit (_tmp12_, "Playing slideshow");
-#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (pixbuf);
-#line 1118 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_real_switching_from (Page* base)
-{
- SlideshowPage * self;
- Screensaver* _tmp0_;
-#line 185 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
-#line 186 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- PAGE_CLASS (slideshow_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page));
-#line 188 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->screensaver;
-#line 188 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- screensaver_uninhibit (_tmp0_);
-#line 189 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->exiting = TRUE;
-#line 1137 "SlideshowPage.c"
-}
-
-
-static gboolean
-slideshow_page_get_next_photo (SlideshowPage* self,
- Photo* start,
- Direction direction,
- Photo* * next,
- GdkPixbuf* * next_pixbuf)
-{
- Photo* _vala_next = NULL;
- GdkPixbuf* _vala_next_pixbuf = NULL;
- gboolean result = FALSE;
- Photo* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (IS_SLIDESHOW_PAGE (self), FALSE);
-#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (IS_PHOTO (start), FALSE);
-#line 194 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = _g_object_ref0 (start);
-#line 194 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next);
-#line 194 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _vala_next = _tmp0_;
-#line 1163 "SlideshowPage.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 196 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = TRUE;
-#line 196 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- while (TRUE) {
-#line 1170 "SlideshowPage.c"
- DataSource* forward = NULL;
- DataSource* back = NULL;
- ViewCollection* _tmp37_;
- Photo* _tmp38_;
- DataSource* _tmp39_ = NULL;
- DataSource* _tmp40_ = NULL;
- PixbufCache* _tmp41_;
- DataSource* _tmp42_;
- PixbufCache* _tmp43_;
- DataSource* _tmp44_;
- GeeSet* neighbors = NULL;
- ViewCollection* _tmp45_;
- Photo* _tmp46_;
- GeeSet* _tmp47_;
- GeeSet* _tmp48_;
- DataSource* _tmp49_;
- GeeSet* _tmp50_;
- DataSource* _tmp51_;
- PixbufCache* _tmp52_;
- GeeSet* _tmp53_;
-#line 196 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (!_tmp1_) {
-#line 1193 "SlideshowPage.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = FALSE;
-#line 1197 "SlideshowPage.c"
- {
- GdkPixbuf* _tmp2_ = NULL;
- PixbufCache* _tmp3_;
- Photo* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = self->priv->cache;
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = _vala_next;
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = pixbuf_cache_fetch (_tmp3_, _tmp4_, &_inner_error_);
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = _tmp5_;
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1214 "SlideshowPage.c"
- goto __catch470_g_error;
- }
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = _tmp2_;
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = NULL;
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next_pixbuf);
-#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _vala_next_pixbuf = _tmp6_;
-#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 1227 "SlideshowPage.c"
- }
- goto __finally470;
- __catch470_g_error:
- {
- GError* err = NULL;
- Photo* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GError* _tmp10_;
- const gchar* _tmp11_;
- DataView* view = NULL;
- ViewCollection* _tmp12_;
- Photo* _tmp13_;
- DataView* _tmp14_;
- DataView* _tmp15_ = NULL;
- DataView* _tmp22_;
- DataView* _tmp23_;
- DataSource* _tmp24_;
- gboolean _tmp25_ = FALSE;
- gboolean _tmp26_ = FALSE;
- Photo* _tmp27_;
-#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- err = _inner_error_;
-#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _inner_error_ = NULL;
-#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = _vala_next;
-#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject));
-#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = _tmp8_;
-#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = err;
-#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = _tmp10_->message;
-#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_warning ("SlideshowPage.vala:201: Unable to fetch pixbuf for %s: %s", _tmp9_, _tmp11_);
-#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (_tmp9_);
-#line 204 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = self->priv->controller;
-#line 204 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp13_ = _vala_next;
-#line 204 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp14_ = view_collection_get_view_for_source (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_SOURCE, DataSource));
-#line 204 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- view = _tmp14_;
-#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (direction == DIRECTION_FORWARD) {
-#line 1277 "SlideshowPage.c"
- ViewCollection* _tmp16_;
- DataView* _tmp17_;
- DataView* _tmp18_;
-#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp16_ = self->priv->controller;
-#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp17_ = view;
-#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp18_ = view_collection_get_next (_tmp16_, _tmp17_);
-#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp15_ = _tmp18_;
-#line 1291 "SlideshowPage.c"
- } else {
- ViewCollection* _tmp19_;
- DataView* _tmp20_;
- DataView* _tmp21_;
-#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp19_ = self->priv->controller;
-#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp20_ = view;
-#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp21_ = view_collection_get_previous (_tmp19_, _tmp20_);
-#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp15_ = _tmp21_;
-#line 1306 "SlideshowPage.c"
- }
-#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp22_ = _g_object_ref0 (_tmp15_);
-#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (view);
-#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- view = _tmp22_;
-#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp23_ = view;
-#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp24_ = data_view_get_source (_tmp23_);
-#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next);
-#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _vala_next = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PHOTO, Photo);
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp27_ = _vala_next;
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp27_ == start) {
-#line 1326 "SlideshowPage.c"
- Photo* _tmp28_;
- Photo* _tmp29_;
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp28_ = _vala_next;
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp29_ = self->priv->current;
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp26_ = _tmp28_ != _tmp29_;
-#line 1335 "SlideshowPage.c"
- } else {
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp26_ = FALSE;
-#line 1339 "SlideshowPage.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp26_) {
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp25_ = TRUE;
-#line 1345 "SlideshowPage.c"
- } else {
- Photo* _tmp30_;
- Photo* _tmp31_;
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp30_ = _vala_next;
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp31_ = self->priv->current;
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp25_ = _tmp30_ == _tmp31_;
-#line 1355 "SlideshowPage.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp25_) {
-#line 1359 "SlideshowPage.c"
- GtkWindow* _tmp32_;
- GtkWindow* _tmp33_;
- AppWindow* _tmp34_;
- AppWindow* _tmp35_;
-#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp32_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp33_ = _tmp32_;
-#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- app_window_error_message (_ ("All photo source files are missing."), _tmp33_);
-#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp33_);
-#line 213 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp34_ = app_window_get_instance ();
-#line 213 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp35_ = _tmp34_;
-#line 213 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- app_window_end_fullscreen (_tmp35_);
-#line 213 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp35_);
-#line 215 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next);
-#line 215 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _vala_next = NULL;
-#line 216 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next_pixbuf);
-#line 216 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _vala_next_pixbuf = NULL;
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = FALSE;
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (view);
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_error_free0 (err);
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (next) {
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- *next = _vala_next;
-#line 1400 "SlideshowPage.c"
- } else {
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next);
-#line 1404 "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 1410 "SlideshowPage.c"
- } else {
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next_pixbuf);
-#line 1414 "SlideshowPage.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 1418 "SlideshowPage.c"
- }
-#line 221 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 221 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (view);
-#line 221 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_error_free0 (err);
-#line 221 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- continue;
-#line 1428 "SlideshowPage.c"
- }
- __finally470:
-#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1433 "SlideshowPage.c"
- gboolean _tmp36_ = FALSE;
-#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.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 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_clear_error (&_inner_error_);
-#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return _tmp36_;
-#line 1441 "SlideshowPage.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp37_ = self->priv->controller;
-#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp38_ = _vala_next;
-#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- view_collection_get_immediate_neighbors (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_SOURCE, DataSource), &_tmp39_, &_tmp40_, PHOTO_TYPENAME);
-#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (forward);
-#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- forward = _tmp39_;
-#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (back);
-#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- back = _tmp40_;
-#line 228 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp41_ = self->priv->cache;
-#line 228 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp42_ = forward;
-#line 228 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pixbuf_cache_prefetch (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PHOTO, Photo), BACKGROUND_JOB_JOB_PRIORITY_HIGHEST, FALSE);
-#line 229 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp43_ = self->priv->cache;
-#line 229 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp44_ = back;
-#line 229 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pixbuf_cache_prefetch (_tmp43_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_PHOTO, Photo), BACKGROUND_JOB_JOB_PRIORITY_NORMAL, FALSE);
-#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp45_ = self->priv->controller;
-#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp46_ = _vala_next;
-#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp47_ = view_collection_get_extended_neighbors (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME);
-#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- neighbors = _tmp47_;
-#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp48_ = neighbors;
-#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp49_ = forward;
-#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection), _tmp49_);
-#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp50_ = neighbors;
-#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp51_ = back;
-#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection), _tmp51_);
-#line 235 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp52_ = self->priv->cache;
-#line 235 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp53_ = neighbors;
-#line 235 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pixbuf_cache_prefetch_many (_tmp52_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_COLLECTION, GeeCollection), BACKGROUND_JOB_JOB_PRIORITY_LOWEST, FALSE);
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = TRUE;
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (neighbors);
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (back);
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (forward);
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (next) {
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- *next = _vala_next;
-#line 1507 "SlideshowPage.c"
- } else {
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next);
-#line 1511 "SlideshowPage.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (next_pixbuf) {
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- *next_pixbuf = _vala_next_pixbuf;
-#line 1517 "SlideshowPage.c"
- } else {
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next_pixbuf);
-#line 1521 "SlideshowPage.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 1525 "SlideshowPage.c"
- }
- }
-#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (next) {
-#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- *next = _vala_next;
-#line 1532 "SlideshowPage.c"
- } else {
-#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next);
-#line 1536 "SlideshowPage.c"
- }
-#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (next_pixbuf) {
-#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- *next_pixbuf = _vala_next_pixbuf;
-#line 1542 "SlideshowPage.c"
- } else {
-#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_vala_next_pixbuf);
-#line 1546 "SlideshowPage.c"
- }
-}
-
-
-static void
-slideshow_page_on_play_pause (SlideshowPage* self)
-{
- gboolean _tmp0_;
- gboolean _tmp7_;
- GTimer* _tmp8_;
-#line 241 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (IS_SLIDESHOW_PAGE (self));
-#line 242 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->playing;
-#line 242 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp0_) {
-#line 1563 "SlideshowPage.c"
- GtkToolButton* _tmp1_;
- GtkToolButton* _tmp2_;
- GtkToolButton* _tmp3_;
-#line 243 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = self->priv->play_pause_button;
-#line 243 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_icon_name (_tmp1_, "media-playback-start");
-#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = self->priv->play_pause_button;
-#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_label (_tmp2_, _ ("Play"));
-#line 245 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = self->priv->play_pause_button;
-#line 245 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tool_item_get_type (), GtkToolItem), _ ("Continue the slideshow"));
-#line 1579 "SlideshowPage.c"
- } else {
- GtkToolButton* _tmp4_;
- GtkToolButton* _tmp5_;
- GtkToolButton* _tmp6_;
-#line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = self->priv->play_pause_button;
-#line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_icon_name (_tmp4_, "media-playback-pause");
-#line 248 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = self->priv->play_pause_button;
-#line 248 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_button_set_label (_tmp5_, _ ("Pause"));
-#line 249 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = self->priv->play_pause_button;
-#line 249 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), _ ("Pause the slideshow"));
-#line 1596 "SlideshowPage.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = self->priv->playing;
-#line 252 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->playing = !_tmp7_;
-#line 255 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = self->priv->timer;
-#line 255 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_timer_start (_tmp8_);
-#line 1606 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_real_on_previous_photo (SinglePhotoPage* base)
-{
- SlideshowPage * self;
- DataView* view = NULL;
- ViewCollection* _tmp0_;
- Photo* _tmp1_;
- DataView* _tmp2_;
- Photo* prev_photo = NULL;
- DataView* start_view = NULL;
- ViewCollection* _tmp3_;
- DataView* _tmp4_;
- DataView* _tmp5_;
- DataView* prev_view = NULL;
- DataView* _tmp6_;
- DataView* _tmp7_;
- Photo* _tmp20_;
-#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
-#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->controller;
-#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = self->priv->current;
-#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = view_collection_get_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource));
-#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- view = _tmp2_;
-#line 261 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- prev_photo = NULL;
-#line 262 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = self->priv->controller;
-#line 262 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = view;
-#line 262 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = view_collection_get_previous (_tmp3_, _tmp4_);
-#line 262 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- start_view = _tmp5_;
-#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = start_view;
-#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- prev_view = _tmp7_;
-#line 265 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- while (TRUE) {
-#line 1655 "SlideshowPage.c"
- DataView* _tmp8_;
- DataView* _tmp9_;
- DataSource* _tmp10_;
- DataSource* _tmp11_;
- gboolean _tmp12_;
- ViewCollection* _tmp15_;
- DataView* _tmp16_;
- DataView* _tmp17_;
- DataView* _tmp18_;
- DataView* _tmp19_;
-#line 265 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = prev_view;
-#line 265 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (!(_tmp8_ != NULL)) {
-#line 265 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- break;
-#line 1672 "SlideshowPage.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = prev_view;
-#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = data_view_get_source (_tmp9_);
-#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = _tmp10_;
-#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_PHOTO);
-#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp12_) {
-#line 1686 "SlideshowPage.c"
- DataView* _tmp13_;
- DataSource* _tmp14_;
-#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp13_ = prev_view;
-#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp14_ = data_view_get_source (_tmp13_);
-#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (prev_photo);
-#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- prev_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo);
-#line 268 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- break;
-#line 1699 "SlideshowPage.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp15_ = self->priv->controller;
-#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp16_ = prev_view;
-#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp17_ = view_collection_get_previous (_tmp15_, _tmp16_);
-#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (prev_view);
-#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- prev_view = _tmp17_;
-#line 273 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp18_ = prev_view;
-#line 273 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp19_ = start_view;
-#line 273 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp18_ == _tmp19_) {
-#line 274 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_warning ("SlideshowPage.vala:274: on_previous( ): can't advance to previous phot" \
-"o: collection has only videos");
-#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (prev_view);
-#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (start_view);
-#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (prev_photo);
-#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (view);
-#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return;
-#line 1729 "SlideshowPage.c"
- }
- }
-#line 279 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp20_ = prev_photo;
-#line 279 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_advance (self, _tmp20_, DIRECTION_BACKWARD);
-#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (prev_view);
-#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (start_view);
-#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (prev_photo);
-#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (view);
-#line 1744 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_real_on_next_photo (SinglePhotoPage* base)
-{
- SlideshowPage * self;
- DataView* view = NULL;
- ViewCollection* _tmp0_;
- Photo* _tmp1_;
- DataView* _tmp2_;
- Photo* next_photo = NULL;
- DataView* start_view = NULL;
- ViewCollection* _tmp3_;
- DataView* _tmp4_;
- DataView* _tmp5_;
- DataView* next_view = NULL;
- DataView* _tmp6_;
- DataView* _tmp7_;
- ConfigFacade* _tmp20_;
- ConfigFacade* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- gboolean _tmp24_;
- Photo* _tmp25_;
-#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
-#line 283 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->controller;
-#line 283 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = self->priv->current;
-#line 283 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = view_collection_get_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource));
-#line 283 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- view = _tmp2_;
-#line 285 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- next_photo = NULL;
-#line 286 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = self->priv->controller;
-#line 286 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = view;
-#line 286 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = view_collection_get_next (_tmp3_, _tmp4_);
-#line 286 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- start_view = _tmp5_;
-#line 287 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = start_view;
-#line 287 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 287 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- next_view = _tmp7_;
-#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- while (TRUE) {
-#line 1798 "SlideshowPage.c"
- DataView* _tmp8_;
- DataView* _tmp9_;
- DataSource* _tmp10_;
- DataSource* _tmp11_;
- gboolean _tmp12_;
- ViewCollection* _tmp15_;
- DataView* _tmp16_;
- DataView* _tmp17_;
- DataView* _tmp18_;
- DataView* _tmp19_;
-#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = next_view;
-#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (!(_tmp8_ != NULL)) {
-#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- break;
-#line 1815 "SlideshowPage.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = next_view;
-#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = data_view_get_source (_tmp9_);
-#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = _tmp10_;
-#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_PHOTO);
-#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp12_) {
-#line 1829 "SlideshowPage.c"
- DataView* _tmp13_;
- DataSource* _tmp14_;
-#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp13_ = next_view;
-#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp14_ = data_view_get_source (_tmp13_);
-#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_photo);
-#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- next_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo);
-#line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- break;
-#line 1842 "SlideshowPage.c"
- }
-#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp15_ = self->priv->controller;
-#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp16_ = next_view;
-#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp17_ = view_collection_get_next (_tmp15_, _tmp16_);
-#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_view);
-#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- next_view = _tmp17_;
-#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp18_ = next_view;
-#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp19_ = start_view;
-#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp18_ == _tmp19_) {
-#line 298 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_warning ("SlideshowPage.vala:298: on_next( ): can't advance to next photo: colle" \
-"ction has only videos");
-#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_view);
-#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (start_view);
-#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_photo);
-#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (view);
-#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return;
-#line 1872 "SlideshowPage.c"
- }
- }
-#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp20_ = config_facade_get_instance ();
-#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp21_ = _tmp20_;
-#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp22_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp23_ = _tmp22_;
-#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp24_ = g_strcmp0 (_tmp23_, RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID) == 0;
-#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (_tmp23_);
-#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp21_);
-#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp24_) {
-#line 305 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_random_transition_effect (self);
-#line 1893 "SlideshowPage.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp25_ = next_photo;
-#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_advance (self, _tmp25_, DIRECTION_FORWARD);
-#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_view);
-#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (start_view);
-#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_photo);
-#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (view);
-#line 1907 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_advance (SlideshowPage* self,
- Photo* photo,
- Direction direction)
-{
- Photo* _tmp0_;
- GdkPixbuf* next_pixbuf = NULL;
- Photo* _tmp1_;
- Photo* _tmp2_ = NULL;
- GdkPixbuf* _tmp3_ = NULL;
- gboolean _tmp4_;
- GTimer* _tmp8_;
-#line 311 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (IS_SLIDESHOW_PAGE (self));
-#line 311 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (IS_PHOTO (photo));
-#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = _g_object_ref0 (photo);
-#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->current);
-#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->current = _tmp0_;
-#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = self->priv->current;
-#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = slideshow_page_get_next_photo (self, _tmp1_, direction, &_tmp2_, &_tmp3_);
-#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->current);
-#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->current = _tmp2_;
-#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_pixbuf);
-#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- next_pixbuf = _tmp3_;
-#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp4_) {
-#line 1947 "SlideshowPage.c"
- GdkPixbuf* _tmp5_;
- Photo* _tmp6_;
- Dimensions _tmp7_ = {0};
-#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = next_pixbuf;
-#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = self->priv->current;
-#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp7_);
-#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp5_, &_tmp7_, &direction);
-#line 1959 "SlideshowPage.c"
- }
-#line 320 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = self->priv->timer;
-#line 320 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_timer_start (_tmp8_);
-#line 311 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (next_pixbuf);
-#line 1967 "SlideshowPage.c"
-}
-
-
-static gboolean
-slideshow_page_auto_advance (SlideshowPage* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- gboolean _tmp1_;
- GTimer* _tmp2_;
- gdouble _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- gboolean _tmp6_;
-#line 323 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (IS_SLIDESHOW_PAGE (self), FALSE);
-#line 324 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->exiting;
-#line 324 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp0_) {
-#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = FALSE;
-#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 1992 "SlideshowPage.c"
- }
-#line 327 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = self->priv->playing;
-#line 327 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (!_tmp1_) {
-#line 328 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = TRUE;
-#line 328 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 2002 "SlideshowPage.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = self->priv->timer;
-#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = g_timer_elapsed (_tmp2_, NULL);
-#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = _tmp4_;
-#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = _tmp3_ < configuration_facade_get_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp6_) {
-#line 331 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = TRUE;
-#line 331 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 2022 "SlideshowPage.c"
- }
-#line 333 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- single_photo_page_on_next_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 335 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = TRUE;
-#line 335 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 2030 "SlideshowPage.c"
-}
-
-
-static gboolean
-slideshow_page_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- SlideshowPage * self;
- gboolean result = FALSE;
- gboolean handled = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- GQuark _tmp4_ = 0U;
-#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- static GQuark _tmp3_label0 = 0;
-#line 2047 "SlideshowPage.c"
- gboolean _tmp5_;
- gboolean _tmp6_ = FALSE;
-#line 338 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
-#line 338 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 339 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- handled = TRUE;
-#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = event->keyval;
-#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = _tmp1_;
-#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
-#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("space")))) {
-#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- switch (0) {
-#line 2068 "SlideshowPage.c"
- default:
- {
-#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_on_play_pause (self);
-#line 343 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- break;
-#line 2075 "SlideshowPage.c"
- }
- }
- } else {
-#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- switch (0) {
-#line 2081 "SlideshowPage.c"
- default:
- {
-#line 346 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- handled = FALSE;
-#line 347 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- break;
-#line 2088 "SlideshowPage.c"
- }
- }
- }
-#line 350 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = handled;
-#line 350 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp5_) {
-#line 351 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = TRUE;
-#line 351 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 2100 "SlideshowPage.c"
- }
-#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (GTK_WIDGET_CLASS (slideshow_page_parent_class)->key_press_event != NULL) {
-#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = 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), event);
-#line 2106 "SlideshowPage.c"
- } else {
-#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = TRUE;
-#line 2110 "SlideshowPage.c"
- }
-#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = _tmp6_;
-#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 2116 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_on_change_settings (SlideshowPage* self)
-{
- SlideshowPageSettingsDialog* settings_dialog = NULL;
- SlideshowPageSettingsDialog* _tmp0_;
- SlideshowPageSettingsDialog* _tmp1_;
- gboolean slideshow_playing = FALSE;
- gboolean _tmp2_;
- SlideshowPageSettingsDialog* _tmp3_;
- SlideshowPageSettingsDialog* _tmp18_;
- gboolean _tmp19_;
- GTimer* _tmp20_;
-#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (IS_SLIDESHOW_PAGE (self));
-#line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = slideshow_page_settings_dialog_new ();
-#line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_object_ref_sink (_tmp0_);
-#line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- settings_dialog = _tmp0_;
-#line 358 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = settings_dialog;
-#line 358 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 360 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = self->priv->playing;
-#line 360 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_playing = _tmp2_;
-#line 361 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->playing = FALSE;
-#line 362 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_signal_emit (self, slideshow_page_signals[SLIDESHOW_PAGE_HIDE_TOOLBAR_SIGNAL], 0);
-#line 364 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = settings_dialog;
-#line 364 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) {
-#line 2156 "SlideshowPage.c"
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- SlideshowPageSettingsDialog* _tmp6_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- SlideshowPageSettingsDialog* _tmp9_;
- ConfigFacade* _tmp10_;
- ConfigFacade* _tmp11_;
- SlideshowPageSettingsDialog* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- ConfigFacade* _tmp15_;
- ConfigFacade* _tmp16_;
- SlideshowPageSettingsDialog* _tmp17_;
-#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = _tmp4_;
-#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = settings_dialog;
-#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- configuration_facade_set_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), slideshow_page_settings_dialog_get_delay (_tmp6_));
-#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = _tmp7_;
-#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = settings_dialog;
-#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- configuration_facade_set_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), slideshow_page_settings_dialog_get_transition_delay (_tmp9_));
-#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = config_facade_get_instance ();
-#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = _tmp10_;
-#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = settings_dialog;
-#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp13_ = slideshow_page_settings_dialog_get_transition_effect_id (_tmp12_);
-#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp14_ = _tmp13_;
-#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- configuration_facade_set_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp14_);
-#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (_tmp14_);
-#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp15_ = config_facade_get_instance ();
-#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp16_ = _tmp15_;
-#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp17_ = settings_dialog;
-#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- configuration_facade_set_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), slideshow_page_settings_dialog_get_show_title (_tmp17_));
-#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 372 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_update_transition_effect (self);
-#line 2219 "SlideshowPage.c"
- }
-#line 375 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp18_ = settings_dialog;
-#line 375 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget));
-#line 376 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp19_ = slideshow_playing;
-#line 376 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->playing = _tmp19_;
-#line 377 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp20_ = self->priv->timer;
-#line 377 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_timer_start (_tmp20_);
-#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (settings_dialog);
-#line 2235 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_update_transition_effect (SlideshowPage* self)
-{
- gchar* effect_id = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gdouble effect_delay = 0.0;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- gdouble _tmp6_;
-#line 380 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (IS_SLIDESHOW_PAGE (self));
-#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = _tmp0_;
-#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = _tmp2_;
-#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- effect_id = _tmp3_;
-#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = _tmp4_;
-#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- effect_delay = _tmp6_;
-#line 384 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- single_photo_page_set_transition (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), effect_id, (gint) (effect_delay * 1000.0));
-#line 380 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (effect_id);
-#line 2279 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_random_transition_effect (SlideshowPage* self)
-{
- gdouble effect_delay = 0.0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gdouble _tmp2_;
- gchar* effect_id = NULL;
- gchar* _tmp3_;
- gchar** _tmp4_;
- gint _tmp4__length1;
- const gchar* _tmp10_;
- gdouble _tmp11_;
-#line 387 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (IS_SLIDESHOW_PAGE (self));
-#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = _tmp0_;
-#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- effect_delay = _tmp2_;
-#line 389 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID);
-#line 389 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- effect_id = _tmp3_;
-#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = self->priv->transitions;
-#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4__length1 = self->priv->transitions_length1;
-#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (0 < _tmp4__length1) {
-#line 2318 "SlideshowPage.c"
- gint random = 0;
- gchar** _tmp5_;
- gint _tmp5__length1;
- gchar** _tmp6_;
- gint _tmp6__length1;
- gint _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 391 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = self->priv->transitions;
-#line 391 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5__length1 = self->priv->transitions_length1;
-#line 391 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- random = (gint) g_random_int_range ((gint32) 0, (gint32) _tmp5__length1);
-#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = self->priv->transitions;
-#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6__length1 = self->priv->transitions_length1;
-#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = random;
-#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = _tmp6_[_tmp7_];
-#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (effect_id);
-#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- effect_id = _tmp9_;
-#line 2347 "SlideshowPage.c"
- }
-#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = effect_id;
-#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = effect_delay;
-#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- single_photo_page_set_transition (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp10_, (gint) (_tmp11_ * 1000.0));
-#line 387 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (effect_id);
-#line 2357 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_paint_title (SlideshowPage* self,
- cairo_t* ctx,
- Dimensions* ctx_dim)
-{
- gchar* title = NULL;
- Photo* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_ = FALSE;
- const gchar* _tmp3_;
- PangoLayout* layout = NULL;
- const gchar* _tmp5_;
- PangoLayout* _tmp6_;
- PangoAttrList* list = NULL;
- PangoAttrList* _tmp7_;
- PangoAttribute* size = NULL;
- PangoAttribute* _tmp8_;
- PangoAttrList* _tmp9_;
- PangoAttribute* _tmp10_;
- PangoAttribute* _tmp11_;
- PangoLayout* _tmp12_;
- PangoAttrList* _tmp13_;
- PangoLayout* _tmp14_;
- Dimensions _tmp15_;
- gint _tmp16_;
- gint title_width = 0;
- gint title_height = 0;
- PangoLayout* _tmp17_;
- gint _tmp18_ = 0;
- gint _tmp19_ = 0;
- gdouble x = 0.0;
- Dimensions _tmp20_;
- gint _tmp21_;
- gdouble y = 0.0;
- Dimensions _tmp22_;
- gint _tmp23_;
- gdouble _tmp24_;
- gint _tmp25_;
- Dimensions _tmp26_;
- gint _tmp27_;
- gdouble _tmp31_;
- gint _tmp32_;
- Dimensions _tmp33_;
- gint _tmp34_;
- gdouble _tmp38_;
- gdouble _tmp39_;
- PangoLayout* _tmp40_;
- PangoLayout* _tmp41_;
-#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (IS_SLIDESHOW_PAGE (self));
-#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (ctx != NULL);
-#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (ctx_dim != NULL);
-#line 399 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->current;
-#line 399 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 399 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- title = _tmp1_;
-#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = title;
-#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp3_ == NULL) {
-#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = TRUE;
-#line 2427 "SlideshowPage.c"
- } else {
- const gchar* _tmp4_;
-#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = title;
-#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = g_strcmp0 (_tmp4_, "") == 0;
-#line 2434 "SlideshowPage.c"
- }
-#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp2_) {
-#line 403 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (title);
-#line 403 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return;
-#line 2442 "SlideshowPage.c"
- }
-#line 405 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = title;
-#line 405 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp5_);
-#line 405 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- layout = _tmp6_;
-#line 406 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = pango_attr_list_new ();
-#line 406 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- list = _tmp7_;
-#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = pango_attr_scale_new ((gdouble) 3);
-#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- size = _tmp8_;
-#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = list;
-#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = size;
-#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = pango_attribute_copy (_tmp10_);
-#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pango_attr_list_insert (_tmp9_, _tmp11_);
-#line 409 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = layout;
-#line 409 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp13_ = list;
-#line 409 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pango_layout_set_attributes (_tmp12_, _tmp13_);
-#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp14_ = layout;
-#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp15_ = *ctx_dim;
-#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp16_ = _tmp15_.width;
-#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pango_layout_set_width (_tmp14_, (gint) ((_tmp16_ * 0.9) * PANGO_SCALE));
-#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp17_ = layout;
-#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pango_layout_get_pixel_size (_tmp17_, &_tmp18_, &_tmp19_);
-#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- title_width = _tmp18_;
-#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- title_height = _tmp19_;
-#line 415 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp20_ = *ctx_dim;
-#line 415 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp21_ = _tmp20_.width;
-#line 415 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- x = _tmp21_ * 0.2;
-#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp22_ = *ctx_dim;
-#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp23_ = _tmp22_.height;
-#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- y = _tmp23_ * 0.90;
-#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp24_ = y;
-#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp25_ = title_height;
-#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp26_ = *ctx_dim;
-#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp27_ = _tmp26_.height;
-#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if ((_tmp24_ + _tmp25_) >= (_tmp27_ * 0.95)) {
-#line 2510 "SlideshowPage.c"
- Dimensions _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
-#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp28_ = *ctx_dim;
-#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp29_ = _tmp28_.height;
-#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp30_ = title_height;
-#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- y = (_tmp29_ * 0.95) - _tmp30_;
-#line 2522 "SlideshowPage.c"
- }
-#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp31_ = x;
-#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp32_ = title_width;
-#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp33_ = *ctx_dim;
-#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp34_ = _tmp33_.width;
-#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if ((_tmp31_ + _tmp32_) >= (_tmp34_ * 0.95)) {
-#line 2534 "SlideshowPage.c"
- Dimensions _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
-#line 423 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp35_ = *ctx_dim;
-#line 423 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp36_ = _tmp35_.width;
-#line 423 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp37_ = title_width;
-#line 423 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- x = (gdouble) ((_tmp36_ / 2) - (_tmp37_ / 2));
-#line 2546 "SlideshowPage.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- set_source_color_from_string (ctx, "#fff");
-#line 426 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp38_ = x;
-#line 426 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp39_ = y;
-#line 426 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- cairo_move_to (ctx, _tmp38_, _tmp39_);
-#line 427 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp40_ = layout;
-#line 427 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pango_cairo_show_layout (ctx, _tmp40_);
-#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp41_ = layout;
-#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- pango_cairo_layout_path (ctx, _tmp41_);
-#line 429 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- cairo_set_line_width (ctx, 1.5);
-#line 430 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- set_source_color_from_string (ctx, "#000");
-#line 431 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- cairo_stroke (ctx);
-#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _pango_attribute_destroy0 (size);
-#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _pango_attr_list_unref0 (list);
-#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (layout);
-#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (title);
-#line 2578 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_real_paint (SinglePhotoPage* base,
- cairo_t* ctx,
- Dimensions* ctx_dim)
-{
- SlideshowPage * self;
- Dimensions _tmp0_;
- gboolean _tmp1_ = FALSE;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- gboolean _tmp4_;
-#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
-#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (ctx != NULL);
-#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (ctx_dim != NULL);
-#line 435 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = *ctx_dim;
-#line 435 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- SINGLE_PHOTO_PAGE_CLASS (slideshow_page_parent_class)->paint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), ctx, &_tmp0_);
-#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = _tmp2_;
-#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = configuration_facade_get_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp4_) {
-#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = !single_photo_page_is_transition_in_progress (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
-#line 2615 "SlideshowPage.c"
- } else {
-#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = FALSE;
-#line 2619 "SlideshowPage.c"
- }
-#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp1_) {
-#line 2623 "SlideshowPage.c"
- Dimensions _tmp5_;
-#line 438 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = *ctx_dim;
-#line 438 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_paint_title (self, ctx, &_tmp5_);
-#line 2629 "SlideshowPage.c"
- }
-}
-
-
-static gint
-_utf8_ci_compare_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = utf8_ci_compare (a, b);
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 2643 "SlideshowPage.c"
-}
-
-
-static void
-_slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 71 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_settings_dialog_on_transition_changed ((SlideshowPageSettingsDialog*) self);
-#line 2653 "SlideshowPage.c"
-}
-
-
-static SlideshowPageSettingsDialog*
-slideshow_page_settings_dialog_construct (GType object_type)
-{
- SlideshowPageSettingsDialog * self = NULL;
- gdouble delay = 0.0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gdouble _tmp2_;
- FullscreenWindow* _tmp3_;
- FullscreenWindow* _tmp4_;
- GtkAdjustment* _tmp5_;
- gdouble _tmp6_;
- gchar* effect_id = NULL;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* null_display_name = NULL;
- TransitionEffectsManager* _tmp11_;
- TransitionEffectsManager* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- GtkComboBoxText* _tmp15_;
- const gchar* _tmp16_;
- GtkComboBoxText* _tmp17_;
- gint i = 0;
- GtkComboBoxText* _tmp41_;
- gdouble transition_delay = 0.0;
- ConfigFacade* _tmp42_;
- ConfigFacade* _tmp43_;
- gdouble _tmp44_;
- GtkAdjustment* _tmp45_;
- gboolean show_title = FALSE;
- ConfigFacade* _tmp46_;
- ConfigFacade* _tmp47_;
- gboolean _tmp48_;
- GtkCheckButton* _tmp49_;
-#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = (SlideshowPageSettingsDialog*) g_object_new (object_type, NULL);
-#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = _tmp0_;
-#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = configuration_facade_get_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- delay = _tmp2_;
-#line 46 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = app_window_get_fullscreen ();
-#line 46 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = _tmp3_;
-#line 46 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow));
-#line 46 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 48 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = self->priv->delay_adjustment;
-#line 48 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = delay;
-#line 48 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_adjustment_set_value (_tmp5_, _tmp6_);
-#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = _tmp7_;
-#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = _tmp9_;
-#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- effect_id = _tmp10_;
-#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = transition_effects_manager_get_instance ();
-#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = _tmp11_;
-#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp13_ = transition_effects_manager_get_effect_name (_tmp12_, TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID);
-#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp14_ = _tmp13_;
-#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _transition_effects_manager_unref0 (_tmp12_);
-#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- null_display_name = _tmp14_;
-#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp15_ = self->priv->transition_effect_selector;
-#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp16_ = null_display_name;
-#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_combo_box_text_append_text (_tmp15_, _tmp16_);
-#line 57 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp17_ = self->priv->transition_effect_selector;
-#line 57 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 59 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- i = 1;
-#line 2756 "SlideshowPage.c"
- {
- GeeIterator* _display_name_it = NULL;
- TransitionEffectsManager* _tmp18_;
- TransitionEffectsManager* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
- GeeIterator* _tmp22_;
- GeeIterator* _tmp23_;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp18_ = transition_effects_manager_get_instance ();
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp19_ = _tmp18_;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp20_ = transition_effects_manager_get_effect_names (_tmp19_, _utf8_ci_compare_gcompare_data_func, NULL, NULL);
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp21_ = _tmp20_;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp23_ = _tmp22_;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp21_);
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _transition_effects_manager_unref0 (_tmp19_);
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _display_name_it = _tmp23_;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- while (TRUE) {
-#line 2785 "SlideshowPage.c"
- GeeIterator* _tmp24_;
- gchar* display_name = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- const gchar* _tmp27_;
- const gchar* _tmp28_;
- GtkComboBoxText* _tmp29_;
- const gchar* _tmp30_;
- const gchar* _tmp31_;
- TransitionEffectsManager* _tmp32_;
- TransitionEffectsManager* _tmp33_;
- const gchar* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- gboolean _tmp37_;
- gint _tmp40_;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp24_ = _display_name_it;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (!gee_iterator_next (_tmp24_)) {
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- break;
-#line 2808 "SlideshowPage.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp25_ = _display_name_it;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- display_name = (gchar*) _tmp26_;
-#line 62 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp27_ = display_name;
-#line 62 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp28_ = null_display_name;
-#line 62 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (g_strcmp0 (_tmp27_, _tmp28_) == 0) {
-#line 63 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (display_name);
-#line 63 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- continue;
-#line 2826 "SlideshowPage.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp29_ = self->priv->transition_effect_selector;
-#line 65 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp30_ = display_name;
-#line 65 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_combo_box_text_append_text (_tmp29_, _tmp30_);
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp31_ = effect_id;
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp32_ = transition_effects_manager_get_instance ();
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp33_ = _tmp32_;
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp34_ = display_name;
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp35_ = transition_effects_manager_get_id_for_effect_name (_tmp33_, _tmp34_);
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp36_ = _tmp35_;
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp37_ = g_strcmp0 (_tmp31_, _tmp36_) == 0;
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (_tmp36_);
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _transition_effects_manager_unref0 (_tmp33_);
-#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp37_) {
-#line 2854 "SlideshowPage.c"
- GtkComboBoxText* _tmp38_;
- gint _tmp39_;
-#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp38_ = self->priv->transition_effect_selector;
-#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp39_ = i;
-#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_combo_box_get_type (), GtkComboBox), _tmp39_);
-#line 2863 "SlideshowPage.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp40_ = i;
-#line 69 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- i = _tmp40_ + 1;
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (display_name);
-#line 2871 "SlideshowPage.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_display_name_it);
-#line 2875 "SlideshowPage.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp41_ = self->priv->transition_effect_selector;
-#line 71 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed, self, 0);
-#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp42_ = config_facade_get_instance ();
-#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp43_ = _tmp42_;
-#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp44_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp43_);
-#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- transition_delay = _tmp44_;
-#line 74 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp45_ = self->priv->transition_effect_adjustment;
-#line 74 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_adjustment_set_value (_tmp45_, transition_delay);
-#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp46_ = config_facade_get_instance ();
-#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp47_ = _tmp46_;
-#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp48_ = configuration_facade_get_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (_tmp47_);
-#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- show_title = _tmp48_;
-#line 77 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp49_ = self->priv->show_title_button;
-#line 77 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_toggle_button_get_type (), GtkToggleButton), show_title);
-#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_settings_dialog_on_transition_changed (self);
-#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (null_display_name);
-#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (effect_id);
-#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return self;
-#line 2917 "SlideshowPage.c"
-}
-
-
-static SlideshowPageSettingsDialog*
-slideshow_page_settings_dialog_new (void)
-{
-#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return slideshow_page_settings_dialog_construct (SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG);
-#line 2926 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_settings_dialog_on_transition_changed (SlideshowPageSettingsDialog* self)
-{
- gchar* selected = NULL;
- GtkComboBoxText* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_ = FALSE;
- const gchar* _tmp3_;
- gboolean sensitive = FALSE;
- GtkScale* _tmp5_;
- GtkSpinButton* _tmp6_;
-#line 82 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self));
-#line 83 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->transition_effect_selector;
-#line 83 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_);
-#line 83 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- selected = _tmp1_;
-#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = selected;
-#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp3_ != NULL) {
-#line 2953 "SlideshowPage.c"
- const gchar* _tmp4_;
-#line 85 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = selected;
-#line 85 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = g_strcmp0 (_tmp4_, TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID) != 0;
-#line 2959 "SlideshowPage.c"
- } else {
-#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = FALSE;
-#line 2963 "SlideshowPage.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- sensitive = _tmp2_;
-#line 87 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = self->priv->transition_effect_hscale;
-#line 87 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), sensitive);
-#line 88 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = self->priv->transition_effect_entry;
-#line 88 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), sensitive);
-#line 82 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (selected);
-#line 2977 "SlideshowPage.c"
-}
-
-
-static gdouble
-slideshow_page_settings_dialog_get_delay (SlideshowPageSettingsDialog* self)
-{
- gdouble result = 0.0;
- GtkSpinButton* _tmp0_;
-#line 91 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), 0.0);
-#line 92 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->delay_entry;
-#line 92 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = gtk_spin_button_get_value (_tmp0_);
-#line 92 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 2994 "SlideshowPage.c"
-}
-
-
-static gdouble
-slideshow_page_settings_dialog_get_transition_delay (SlideshowPageSettingsDialog* self)
-{
- gdouble result = 0.0;
- GtkSpinButton* _tmp0_;
-#line 95 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), 0.0);
-#line 96 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->transition_effect_entry;
-#line 96 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = gtk_spin_button_get_value (_tmp0_);
-#line 96 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 3011 "SlideshowPage.c"
-}
-
-
-static gchar*
-slideshow_page_settings_dialog_get_transition_effect_id (SlideshowPageSettingsDialog* self)
-{
- gchar* result = NULL;
- gchar* active = NULL;
- GtkComboBoxText* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* id = NULL;
- TransitionEffectsManager* _tmp4_;
- TransitionEffectsManager* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- const gchar* _tmp9_ = NULL;
- const gchar* _tmp10_;
- gchar* _tmp12_;
-#line 99 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), NULL);
-#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->transition_effect_selector;
-#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_);
-#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- active = _tmp1_;
-#line 101 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = active;
-#line 101 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp2_ == NULL) {
-#line 3044 "SlideshowPage.c"
- gchar* _tmp3_;
-#line 102 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp3_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID);
-#line 102 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = _tmp3_;
-#line 102 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (active);
-#line 102 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 3054 "SlideshowPage.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp4_ = transition_effects_manager_get_instance ();
-#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp5_ = _tmp4_;
-#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp6_ = active;
-#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp7_ = transition_effects_manager_get_id_for_effect_name (_tmp5_, _tmp6_);
-#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp8_ = _tmp7_;
-#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _transition_effects_manager_unref0 (_tmp5_);
-#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- id = _tmp8_;
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp10_ = id;
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- if (_tmp10_ != NULL) {
-#line 3074 "SlideshowPage.c"
- const gchar* _tmp11_;
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp11_ = id;
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = _tmp11_;
-#line 3080 "SlideshowPage.c"
- } else {
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp9_ = TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID;
-#line 3084 "SlideshowPage.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp12_ = g_strdup (_tmp9_);
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = _tmp12_;
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (id);
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_free0 (active);
-#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 3096 "SlideshowPage.c"
-}
-
-
-static gboolean
-slideshow_page_settings_dialog_get_show_title (SlideshowPageSettingsDialog* self)
-{
- gboolean result = FALSE;
- GtkCheckButton* _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
-#line 109 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), FALSE);
-#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = self->priv->show_title_button;
-#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp2_ = _tmp1_;
-#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- result = _tmp2_;
-#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- return result;
-#line 3119 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_settings_dialog_class_init (SlideshowPageSettingsDialogClass * klass)
-{
- gint SlideshowPageSettingsDialog_private_offset;
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_settings_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_type_class_add_private (klass, sizeof (SlideshowPageSettingsDialogPrivate));
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- G_OBJECT_CLASS (klass)->finalize = slideshow_page_settings_dialog_finalize;
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- SlideshowPageSettingsDialog_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/slideshow_settings.ui");
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "delay_adjustment", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, delay_adjustment));
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "delay_entry", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, delay_entry));
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transition_effect_selector", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, transition_effect_selector));
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transition_effect_hscale", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, transition_effect_hscale));
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transition_effect_entry", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, transition_effect_entry));
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transition_effect_adjustment", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, transition_effect_adjustment));
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "show_title_button", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, show_title_button));
-#line 3151 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_settings_dialog_instance_init (SlideshowPageSettingsDialog * self)
-{
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv = SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_PRIVATE (self);
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 3162 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_settings_dialog_finalize (GObject * obj)
-{
- SlideshowPageSettingsDialog * self;
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialog);
-#line 29 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->delay_adjustment);
-#line 31 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->delay_entry);
-#line 33 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->transition_effect_selector);
-#line 35 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->transition_effect_hscale);
-#line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->transition_effect_entry);
-#line 39 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->transition_effect_adjustment);
-#line 41 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->show_title_button);
-#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- G_OBJECT_CLASS (slideshow_page_settings_dialog_parent_class)->finalize (obj);
-#line 3188 "SlideshowPage.c"
-}
-
-
-static GType
-slideshow_page_settings_dialog_get_type (void)
-{
- static volatile gsize slideshow_page_settings_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&slideshow_page_settings_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SlideshowPageSettingsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slideshow_page_settings_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideshowPageSettingsDialog), 0, (GInstanceInitFunc) slideshow_page_settings_dialog_instance_init, NULL };
- GType slideshow_page_settings_dialog_type_id;
- slideshow_page_settings_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SlideshowPageSettingsDialog", &g_define_type_info, 0);
- g_once_init_leave (&slideshow_page_settings_dialog_type_id__volatile, slideshow_page_settings_dialog_type_id);
- }
- return slideshow_page_settings_dialog_type_id__volatile;
-}
-
-
-static void
-slideshow_page_class_init (SlideshowPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- g_type_class_add_private (klass, sizeof (SlideshowPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) slideshow_page_real_switched_to;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- ((PageClass *) klass)->switching_from = (void (*) (Page *)) slideshow_page_real_switching_from;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- ((SinglePhotoPageClass *) klass)->on_previous_photo = (void (*) (SinglePhotoPage *)) slideshow_page_real_on_previous_photo;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- ((SinglePhotoPageClass *) klass)->on_next_photo = (void (*) (SinglePhotoPage *)) slideshow_page_real_on_next_photo;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) slideshow_page_real_key_press_event;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- ((SinglePhotoPageClass *) klass)->paint = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) slideshow_page_real_paint;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- G_OBJECT_CLASS (klass)->finalize = slideshow_page_finalize;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- slideshow_page_signals[SLIDESHOW_PAGE_HIDE_TOOLBAR_SIGNAL] = 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 3229 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_instance_init (SlideshowPage * self)
-{
- GTimer* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv = SLIDESHOW_PAGE_GET_PRIVATE (self);
-#line 16 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->cache = NULL;
-#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _tmp0_ = g_timer_new ();
-#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->timer = _tmp0_;
-#line 18 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->playing = TRUE;
-#line 19 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->exiting = FALSE;
-#line 3249 "SlideshowPage.c"
-}
-
-
-static void
-slideshow_page_finalize (GObject * obj)
-{
- SlideshowPage * self;
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SLIDESHOW_PAGE, SlideshowPage);
-#line 11 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 12 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _data_collection_unref0 (self->priv->controller);
-#line 13 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->current);
-#line 14 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->play_pause_button);
-#line 15 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->settings_button);
-#line 16 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_object_unref0 (self->priv->cache);
-#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _g_timer_destroy0 (self->priv->timer);
-#line 20 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- self->priv->transitions = (_vala_array_free (self->priv->transitions, self->priv->transitions_length1, (GDestroyNotify) g_free), NULL);
-#line 22 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- _screensaver_unref0 (self->priv->screensaver);
-#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
- G_OBJECT_CLASS (slideshow_page_parent_class)->finalize (obj);
-#line 3279 "SlideshowPage.c"
-}
-
-
-GType
-slideshow_page_get_type (void)
-{
- static volatile gsize slideshow_page_type_id__volatile = 0;
- if (g_once_init_enter (&slideshow_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SlideshowPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slideshow_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideshowPage), 0, (GInstanceInitFunc) slideshow_page_instance_init, NULL };
- GType slideshow_page_type_id;
- slideshow_page_type_id = g_type_register_static (TYPE_SINGLE_PHOTO_PAGE, "SlideshowPage", &g_define_type_info, 0);
- g_once_init_leave (&slideshow_page_type_id__volatile, slideshow_page_type_id);
- }
- return slideshow_page_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/SlideshowPage.vala b/src/SlideshowPage.vala
index fcb6430..18fef7f 100644
--- a/src/SlideshowPage.vala
+++ b/src/SlideshowPage.vala
@@ -41,6 +41,8 @@ class SlideshowPage : SinglePhotoPage {
Gtk.CheckButton show_title_button;
public SettingsDialog() {
+ Object (use_header_bar: Resources.use_header_bar());
+
double delay = Config.Facade.get_instance().get_slideshow_delay();
set_transient_for(AppWindow.get_fullscreen());
@@ -132,28 +134,28 @@ class SlideshowPage : SinglePhotoPage {
// add toolbar buttons
Gtk.ToolButton previous_button = new Gtk.ToolButton(null, _("Back"));
- previous_button.set_icon_name("go-previous");
+ previous_button.set_icon_name("go-previous-symbolic");
previous_button.set_tooltip_text(_("Go to the previous photo"));
previous_button.clicked.connect(on_previous_photo);
toolbar.insert(previous_button, -1);
play_pause_button = new Gtk.ToolButton(null, _("Pause"));
- play_pause_button.set_icon_name("media-playback-pause");
+ play_pause_button.set_icon_name("media-playback-pause-symbolic");
play_pause_button.set_tooltip_text(_("Pause the slideshow"));
play_pause_button.clicked.connect(on_play_pause);
toolbar.insert(play_pause_button, -1);
Gtk.ToolButton next_button = new Gtk.ToolButton(null, _("Next"));
- next_button.set_icon_name("go-next");
+ next_button.set_icon_name("go-next-symbolic");
next_button.set_tooltip_text(_("Go to the next photo"));
next_button.clicked.connect(on_next_photo);
toolbar.insert(next_button, -1);
settings_button = new Gtk.ToolButton(null, null);
- settings_button.set_icon_name("preferences-system");
+ settings_button.set_icon_name("preferences-system-symbolic");
settings_button.set_label(_("Settings"));
settings_button.set_tooltip_text(_("Change slideshow settings"));
settings_button.clicked.connect(on_change_settings);
@@ -240,11 +242,11 @@ class SlideshowPage : SinglePhotoPage {
private void on_play_pause() {
if (playing) {
- play_pause_button.set_icon_name("media-playback-start");
+ play_pause_button.set_icon_name("media-playback-start-symbolic");
play_pause_button.set_label(_("Play"));
play_pause_button.set_tooltip_text(_("Continue the slideshow"));
} else {
- play_pause_button.set_icon_name("media-playback-pause");
+ play_pause_button.set_icon_name("media-playback-pause-symbolic");
play_pause_button.set_label(_("Pause"));
play_pause_button.set_tooltip_text(_("Pause the slideshow"));
}
diff --git a/src/SortedList.c b/src/SortedList.c
deleted file mode 100644
index 37f2db4..0000000
--- a/src/SortedList.c
+++ /dev/null
@@ -1,2613 +0,0 @@
-/* SortedList.c generated by valac 0.40.4, the Vala compiler
- * generated from SortedList.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-
-
-#define TYPE_SORTED_LIST (sorted_list_get_type ())
-#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
-#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
-#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
-#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
-#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
-
-typedef struct _SortedList SortedList;
-typedef struct _SortedListClass SortedListClass;
-typedef struct _SortedListPrivate SortedListPrivate;
-enum {
- SORTED_LIST_0_PROPERTY,
- SORTED_LIST_G_TYPE,
- SORTED_LIST_G_DUP_FUNC,
- SORTED_LIST_G_DESTROY_FUNC,
- SORTED_LIST_ELEMENT_TYPE_PROPERTY,
- SORTED_LIST_READ_ONLY_PROPERTY,
- SORTED_LIST_IS_EMPTY_PROPERTY,
- SORTED_LIST_SIZE_PROPERTY,
- SORTED_LIST_READ_ONLY_VIEW_PROPERTY,
- SORTED_LIST_READ_ONLY_VIEW_AS_LIST_PROPERTY,
- SORTED_LIST_NUM_PROPERTIES
-};
-static GParamSpec* sorted_list_properties[SORTED_LIST_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-struct _SortedList {
- GObject parent_instance;
- SortedListPrivate * priv;
-};
-
-struct _SortedListClass {
- GObjectClass parent_class;
-};
-
-struct _SortedListPrivate {
- GType g_type;
- GBoxedCopyFunc g_dup_func;
- GDestroyNotify g_destroy_func;
- GeeArrayList* list;
- Comparator cmp;
- gpointer cmp_target;
-};
-
-
-static gpointer sorted_list_parent_class = NULL;
-static GeeTraversableIface * sorted_list_gee_traversable_parent_iface = NULL;
-static GeeIterableIface * sorted_list_gee_iterable_parent_iface = NULL;
-static GeeCollectionIface * sorted_list_gee_collection_parent_iface = NULL;
-
-GType sorted_list_get_type (void) G_GNUC_CONST;
-#define SORTED_LIST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SORTED_LIST, SortedListPrivate))
-SortedList* sorted_list_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-SortedList* sorted_list_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-static GeeIterator* sorted_list_real_iterator (GeeIterable* base);
-static gboolean sorted_list_real_foreach (GeeTraversable* base,
- GeeForallFunc f,
- void* f_target);
-static gboolean sorted_list_real_add (GeeCollection* base,
- gconstpointer item);
-static gint sorted_list_get_sorted_insert_pos (SortedList* self,
- gconstpointer item);
-static gboolean sorted_list_real_add_all (GeeCollection* base,
- GeeCollection* collection);
-gboolean sorted_list_add_list (SortedList* self,
- GeeList* items);
-static gboolean sorted_list_merge_sort (SortedList* self,
- GeeList* add);
-static void sorted_list_real_clear (GeeCollection* base);
-static gboolean sorted_list_real_contains (GeeCollection* base,
- gconstpointer item);
-static gboolean sorted_list_real_contains_all (GeeCollection* base,
- GeeCollection* collection);
-static gboolean sorted_list_real_remove (GeeCollection* base,
- gconstpointer item);
-static gboolean sorted_list_real_remove_all (GeeCollection* base,
- GeeCollection* collection);
-static gboolean sorted_list_real_retain_all (GeeCollection* base,
- GeeCollection* collection);
-gint sorted_list_get_count (SortedList* self);
-gpointer sorted_list_get_at (SortedList* self,
- gint index);
-static gint sorted_list_binary_search (SortedList* self,
- gconstpointer search,
- GEqualFunc equal_func);
-gint sorted_list_index_of (SortedList* self,
- gconstpointer search);
-gint sorted_list_locate (SortedList* self,
- gconstpointer search,
- gboolean altered,
- GEqualFunc equal_func);
-gpointer sorted_list_remove_at (SortedList* self,
- gint index);
-static gpointer* sorted_list_real_to_array (GeeCollection* base,
- int* result_length1);
-void sorted_list_resort (SortedList* self,
- Comparator new_cmp,
- void* new_cmp_target);
-gboolean sorted_list_resort_item (SortedList* self,
- gconstpointer item);
-SortedList* sorted_list_copy (SortedList* self);
-static void _sorted_list_merge_sort (SortedList* self,
- gpointer* array,
- int array_length1,
- gpointer* scratch,
- int scratch_length1,
- gint start_index,
- gint end_index);
-static void sorted_list_merge (SortedList* self,
- gpointer* array,
- int array_length1,
- gpointer* scratch,
- int scratch_length1,
- gint start_index,
- gint middle_index,
- gint end_index);
-GeeList* sorted_list_get_read_only_view_as_list (SortedList* self);
-static void sorted_list_finalize (GObject * obj);
-static void _vala_sorted_list_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_sorted_list_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-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);
-
-
-SortedList*
-sorted_list_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target)
-{
- SortedList * self = NULL;
- GeeArrayList* _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = (SortedList*) g_object_new (object_type, NULL);
-#line 13 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->g_type = g_type;
-#line 13 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->g_dup_func = g_dup_func;
-#line 13 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->g_destroy_func = g_destroy_func;
-#line 14 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = gee_array_list_new (g_type, (GBoxedCopyFunc) g_dup_func, (GDestroyNotify) g_destroy_func, NULL, NULL, NULL);
-#line 14 "/home/jens/Source/shotwell/src/SortedList.vala"
- _g_object_unref0 (self->priv->list);
-#line 14 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->list = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->cmp = cmp;
-#line 15 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->cmp_target = cmp_target;
-#line 13 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self;
-#line 195 "SortedList.c"
-}
-
-
-SortedList*
-sorted_list_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target)
-{
-#line 13 "/home/jens/Source/shotwell/src/SortedList.vala"
- return sorted_list_construct (TYPE_SORTED_LIST, g_type, g_dup_func, g_destroy_func, cmp, cmp_target);
-#line 208 "SortedList.c"
-}
-
-
-static GeeIterator*
-sorted_list_real_iterator (GeeIterable* base)
-{
- SortedList * self;
- GeeIterator* result = NULL;
- GeeArrayList* _tmp0_;
- GeeIterator* _tmp1_;
-#line 26 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 27 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 27 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 27 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp1_;
-#line 27 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 229 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_foreach (GeeTraversable* base,
- GeeForallFunc f,
- void* f_target)
-{
- SortedList * self;
- gboolean result = FALSE;
- GeeArrayList* _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 31 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 31 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = gee_abstract_collection_foreach (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), f, f_target);
-#line 31 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 249 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_add (GeeCollection* base,
- gconstpointer item)
-{
- SortedList * self;
- gboolean result = FALSE;
- Comparator _tmp0_;
- void* _tmp0__target;
-#line 34 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 35 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->cmp;
-#line 35 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0__target = self->priv->cmp_target;
-#line 35 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp0_ == NULL) {
-#line 269 "SortedList.c"
- GeeArrayList* _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = self->priv->list;
-#line 36 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), item);
-#line 275 "SortedList.c"
- } else {
- GeeArrayList* _tmp2_;
-#line 38 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = self->priv->list;
-#line 38 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), sorted_list_get_sorted_insert_pos (self, item), item);
-#line 282 "SortedList.c"
- }
-#line 44 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = TRUE;
-#line 44 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 288 "SortedList.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 51 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self ? g_object_ref (self) : NULL;
-#line 297 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_add_all (GeeCollection* base,
- GeeCollection* collection)
-{
- SortedList * self;
- gboolean result = FALSE;
- gint _tmp0_;
- gint _tmp1_;
- GeeList* as_list = NULL;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- Comparator _tmp5_;
- void* _tmp5__target;
- gboolean changed = FALSE;
- gint _tmp7_;
- gint _tmp8_;
-#line 47 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 47 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (collection), FALSE);
-#line 48 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = gee_collection_get_size (collection);
-#line 48 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = _tmp0_;
-#line 48 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp1_ == 0) {
-#line 49 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = FALSE;
-#line 49 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 331 "SortedList.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (collection, GEE_TYPE_LIST) ? ((GeeList*) collection) : NULL);
-#line 51 "/home/jens/Source/shotwell/src/SortedList.vala"
- as_list = _tmp2_;
-#line 52 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = as_list;
-#line 52 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp3_ != NULL) {
-#line 341 "SortedList.c"
- GeeList* _tmp4_;
-#line 53 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = as_list;
-#line 53 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = sorted_list_add_list (self, _tmp4_);
-#line 53 "/home/jens/Source/shotwell/src/SortedList.vala"
- _g_object_unref0 (as_list);
-#line 53 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 351 "SortedList.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = self->priv->cmp;
-#line 55 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5__target = self->priv->cmp_target;
-#line 55 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp5_ == NULL) {
-#line 359 "SortedList.c"
- GeeArrayList* _tmp6_;
-#line 56 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = self->priv->list;
-#line 56 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = gee_array_list_add_all (_tmp6_, collection);
-#line 56 "/home/jens/Source/shotwell/src/SortedList.vala"
- _g_object_unref0 (as_list);
-#line 56 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 369 "SortedList.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/SortedList.vala"
- changed = FALSE;
-#line 59 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = gee_collection_get_size (collection);
-#line 59 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = _tmp7_;
-#line 59 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp8_ == 1) {
-#line 379 "SortedList.c"
- GeeIterator* iter = NULL;
- GeeIterator* _tmp9_;
- GeeIterator* _tmp10_;
- gpointer item = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- GeeArrayList* _tmp13_;
- gconstpointer _tmp14_;
- gconstpointer _tmp15_;
-#line 60 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (collection, GEE_TYPE_ITERABLE, GeeIterable));
-#line 60 "/home/jens/Source/shotwell/src/SortedList.vala"
- iter = _tmp9_;
-#line 61 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp10_ = iter;
-#line 61 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_iterator_next (_tmp10_);
-#line 62 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp11_ = iter;
-#line 62 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 62 "/home/jens/Source/shotwell/src/SortedList.vala"
- item = _tmp12_;
-#line 64 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp13_ = self->priv->list;
-#line 64 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp14_ = item;
-#line 64 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp15_ = item;
-#line 64 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), sorted_list_get_sorted_insert_pos (self, _tmp14_), _tmp15_);
-#line 65 "/home/jens/Source/shotwell/src/SortedList.vala"
- changed = TRUE;
-#line 59 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL));
-#line 59 "/home/jens/Source/shotwell/src/SortedList.vala"
- _g_object_unref0 (iter);
-#line 417 "SortedList.c"
- } else {
- GeeList* items = NULL;
- GeeArrayList* _tmp16_;
- GeeList* _tmp17_;
- GeeList* _tmp18_;
-#line 67 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp16_ = gee_array_list_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, NULL, NULL, NULL);
-#line 67 "/home/jens/Source/shotwell/src/SortedList.vala"
- items = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_LIST, GeeList);
-#line 68 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp17_ = items;
-#line 68 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), collection);
-#line 70 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp18_ = items;
-#line 70 "/home/jens/Source/shotwell/src/SortedList.vala"
- changed = sorted_list_merge_sort (self, _tmp18_);
-#line 59 "/home/jens/Source/shotwell/src/SortedList.vala"
- _g_object_unref0 (items);
-#line 437 "SortedList.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = changed;
-#line 76 "/home/jens/Source/shotwell/src/SortedList.vala"
- _g_object_unref0 (as_list);
-#line 76 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 445 "SortedList.c"
-}
-
-
-gboolean
-sorted_list_add_list (SortedList* self,
- GeeList* items)
-{
- gboolean result = FALSE;
- gboolean added = FALSE;
- gint _tmp0_;
- gint _tmp1_;
-#line 79 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), FALSE);
-#line 79 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (GEE_IS_LIST (items), FALSE);
-#line 80 "/home/jens/Source/shotwell/src/SortedList.vala"
- added = FALSE;
-#line 81 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_COLLECTION, GeeCollection));
-#line 81 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp1_ == 0) {
-#line 469 "SortedList.c"
- } else {
- Comparator _tmp2_;
- void* _tmp2__target;
-#line 83 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = self->priv->cmp;
-#line 83 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2__target = self->priv->cmp_target;
-#line 83 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp2_ != NULL) {
-#line 479 "SortedList.c"
- gint _tmp3_;
- gint _tmp4_;
-#line 86 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_COLLECTION, GeeCollection));
-#line 86 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = _tmp3_;
-#line 86 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp4_ == 1) {
-#line 488 "SortedList.c"
- GeeArrayList* _tmp5_;
- gpointer _tmp6_;
- gpointer _tmp7_;
- gpointer _tmp8_;
- gpointer _tmp9_;
-#line 87 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = self->priv->list;
-#line 87 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = gee_list_get (items, 0);
-#line 87 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = _tmp6_;
-#line 87 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = gee_list_get (items, 0);
-#line 87 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = _tmp8_;
-#line 87 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), sorted_list_get_sorted_insert_pos (self, _tmp7_), _tmp9_);
-#line 87 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((_tmp9_ == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp9_ = (self->priv->g_destroy_func (_tmp9_), NULL));
-#line 87 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((_tmp7_ == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp7_ = (self->priv->g_destroy_func (_tmp7_), NULL));
-#line 88 "/home/jens/Source/shotwell/src/SortedList.vala"
- added = TRUE;
-#line 512 "SortedList.c"
- } else {
-#line 90 "/home/jens/Source/shotwell/src/SortedList.vala"
- added = sorted_list_merge_sort (self, items);
-#line 516 "SortedList.c"
- }
- } else {
- GeeArrayList* _tmp10_;
-#line 93 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp10_ = self->priv->list;
-#line 93 "/home/jens/Source/shotwell/src/SortedList.vala"
- added = gee_array_list_add_all (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_COLLECTION, GeeCollection));
-#line 524 "SortedList.c"
- }
- }
-#line 100 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = added;
-#line 100 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 531 "SortedList.c"
-}
-
-
-static void
-sorted_list_real_clear (GeeCollection* base)
-{
- SortedList * self;
- GeeArrayList* _tmp0_;
-#line 103 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 104 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 104 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 546 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_contains (GeeCollection* base,
- gconstpointer item)
-{
- SortedList * self;
- gboolean result = FALSE;
- GeeArrayList* _tmp0_;
-#line 107 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 108 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 108 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), item);
-#line 108 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 565 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_contains_all (GeeCollection* base,
- GeeCollection* collection)
-{
- SortedList * self;
- gboolean result = FALSE;
- GeeArrayList* _tmp0_;
-#line 111 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 111 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (collection), FALSE);
-#line 112 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 112 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = gee_collection_contains_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), collection);
-#line 112 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 586 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_remove (GeeCollection* base,
- gconstpointer item)
-{
- SortedList * self;
- gboolean result = FALSE;
- GeeArrayList* _tmp0_;
-#line 121 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 122 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 122 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), item);
-#line 122 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 605 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_remove_all (GeeCollection* base,
- GeeCollection* collection)
-{
- SortedList * self;
- gboolean result = FALSE;
- GeeArrayList* _tmp0_;
-#line 125 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 125 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (collection), FALSE);
-#line 126 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 126 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), collection);
-#line 126 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 626 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_retain_all (GeeCollection* base,
- GeeCollection* collection)
-{
- SortedList * self;
- gboolean result = FALSE;
- GeeArrayList* _tmp0_;
-#line 129 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 129 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (collection), FALSE);
-#line 130 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 130 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = gee_collection_retain_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), collection);
-#line 130 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 647 "SortedList.c"
-}
-
-
-inline gint
-sorted_list_get_count (SortedList* self)
-{
- gint result = 0;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 137 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), 0);
-#line 138 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 138 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 138 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = _tmp1_;
-#line 138 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp2_;
-#line 138 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 670 "SortedList.c"
-}
-
-
-gpointer
-sorted_list_get_at (SortedList* self,
- gint index)
-{
- gpointer result = NULL;
- GeeArrayList* _tmp0_;
- gpointer _tmp1_;
-#line 141 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), NULL);
-#line 142 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 142 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), index);
-#line 142 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp1_;
-#line 142 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 691 "SortedList.c"
-}
-
-
-static gint
-sorted_list_binary_search (SortedList* self,
- gconstpointer search,
- GEqualFunc equal_func)
-{
- gint result = 0;
- Comparator _tmp0_;
- void* _tmp0__target;
- gint min = 0;
- gint max = 0;
- GeeArrayList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 145 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), 0);
-#line 146 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->cmp;
-#line 146 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0__target = self->priv->cmp_target;
-#line 146 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (_tmp0_ != NULL, "cmp != null");
-#line 148 "/home/jens/Source/shotwell/src/SortedList.vala"
- min = 0;
-#line 149 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = self->priv->list;
-#line 149 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 149 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = _tmp2_;
-#line 149 "/home/jens/Source/shotwell/src/SortedList.vala"
- max = _tmp3_;
-#line 726 "SortedList.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 150 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = TRUE;
-#line 150 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 733 "SortedList.c"
- gint mid = 0;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gpointer item = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- gboolean _tmp11_ = FALSE;
- gint64 compare = 0LL;
- Comparator _tmp13_;
- void* _tmp13__target;
- gconstpointer _tmp14_;
- gint64 _tmp15_;
- gint _tmp19_;
- gint _tmp20_;
-#line 150 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!_tmp4_) {
-#line 752 "SortedList.c"
- }
-#line 150 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = FALSE;
-#line 151 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = min;
-#line 151 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = max;
-#line 151 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = min;
-#line 151 "/home/jens/Source/shotwell/src/SortedList.vala"
- mid = _tmp5_ + ((_tmp6_ - _tmp7_) / 2);
-#line 152 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = self->priv->list;
-#line 152 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = mid;
-#line 152 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 152 "/home/jens/Source/shotwell/src/SortedList.vala"
- item = _tmp10_;
-#line 154 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (equal_func != NULL) {
-#line 774 "SortedList.c"
- gconstpointer _tmp12_;
-#line 154 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp12_ = item;
-#line 154 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp11_ = equal_func (_tmp12_, search);
-#line 780 "SortedList.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp11_ = FALSE;
-#line 784 "SortedList.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp11_) {
-#line 155 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = mid;
-#line 155 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL));
-#line 155 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 794 "SortedList.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp13_ = self->priv->cmp;
-#line 157 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp13__target = self->priv->cmp_target;
-#line 157 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp14_ = item;
-#line 157 "/home/jens/Source/shotwell/src/SortedList.vala"
- compare = _tmp13_ (_tmp14_, search, _tmp13__target);
-#line 158 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp15_ = compare;
-#line 158 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp15_ == ((gint64) 0)) {
-#line 159 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = mid;
-#line 159 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL));
-#line 159 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 814 "SortedList.c"
- } else {
- gint64 _tmp16_;
-#line 160 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp16_ = compare;
-#line 160 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp16_ > ((gint64) 0)) {
-#line 821 "SortedList.c"
- gint _tmp17_;
-#line 161 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp17_ = mid;
-#line 161 "/home/jens/Source/shotwell/src/SortedList.vala"
- max = _tmp17_ - 1;
-#line 827 "SortedList.c"
- } else {
- gint _tmp18_;
-#line 163 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp18_ = mid;
-#line 163 "/home/jens/Source/shotwell/src/SortedList.vala"
- min = _tmp18_ + 1;
-#line 834 "SortedList.c"
- }
- }
-#line 165 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp19_ = min;
-#line 165 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp20_ = max;
-#line 165 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp19_ > _tmp20_) {
-#line 166 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL));
-#line 166 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 847 "SortedList.c"
- }
-#line 150 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL));
-#line 851 "SortedList.c"
- }
- }
-#line 169 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = -1;
-#line 169 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 858 "SortedList.c"
-}
-
-
-gint
-sorted_list_index_of (SortedList* self,
- gconstpointer search)
-{
- gint result = 0;
- gint _tmp0_ = 0;
- Comparator _tmp1_;
- void* _tmp1__target;
-#line 179 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), 0);
-#line 180 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = self->priv->cmp;
-#line 180 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1__target = self->priv->cmp_target;
-#line 180 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp1_ != NULL) {
-#line 180 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = sorted_list_binary_search (self, search, NULL);
-#line 880 "SortedList.c"
- } else {
- GEqualFunc _tmp2_;
-#line 180 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = g_direct_equal;
-#line 180 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = sorted_list_locate (self, search, FALSE, _tmp2_);
-#line 887 "SortedList.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp0_;
-#line 180 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 893 "SortedList.c"
-}
-
-
-gint
-sorted_list_locate (SortedList* self,
- gconstpointer search,
- gboolean altered,
- GEqualFunc equal_func)
-{
- gint result = 0;
- gboolean _tmp0_ = FALSE;
- Comparator _tmp1_;
- void* _tmp1__target;
-#line 184 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), 0);
-#line 185 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = self->priv->cmp;
-#line 185 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1__target = self->priv->cmp_target;
-#line 185 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp1_ == NULL) {
-#line 185 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = TRUE;
-#line 917 "SortedList.c"
- } else {
-#line 185 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = altered;
-#line 921 "SortedList.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp0_) {
-#line 925 "SortedList.c"
- gint count = 0;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 186 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = self->priv->list;
-#line 186 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 186 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = _tmp3_;
-#line 186 "/home/jens/Source/shotwell/src/SortedList.vala"
- count = _tmp4_;
-#line 938 "SortedList.c"
- {
- gint ctr = 0;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- ctr = 0;
-#line 943 "SortedList.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = TRUE;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 950 "SortedList.c"
- gint _tmp7_;
- gint _tmp8_;
- GeeArrayList* _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
- gpointer _tmp12_;
- gboolean _tmp13_;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!_tmp5_) {
-#line 960 "SortedList.c"
- gint _tmp6_;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = ctr;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- ctr = _tmp6_ + 1;
-#line 966 "SortedList.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = FALSE;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = ctr;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = count;
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!(_tmp7_ < _tmp8_)) {
-#line 187 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 978 "SortedList.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = self->priv->list;
-#line 188 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp10_ = ctr;
-#line 188 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp10_);
-#line 188 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp12_ = _tmp11_;
-#line 188 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp13_ = equal_func (_tmp12_, search);
-#line 188 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((_tmp12_ == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp12_ = (self->priv->g_destroy_func (_tmp12_), NULL));
-#line 188 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp13_) {
-#line 189 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = ctr;
-#line 189 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 998 "SortedList.c"
- }
- }
- }
- }
-#line 192 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = -1;
-#line 192 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1007 "SortedList.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = sorted_list_binary_search (self, search, equal_func);
-#line 195 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1013 "SortedList.c"
-}
-
-
-gpointer
-sorted_list_remove_at (SortedList* self,
- gint index)
-{
- gpointer result = NULL;
- GeeArrayList* _tmp0_;
- gpointer _tmp1_;
-#line 210 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), NULL);
-#line 211 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 211 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), index);
-#line 211 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp1_;
-#line 211 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1034 "SortedList.c"
-}
-
-
-static gpointer*
-sorted_list_real_to_array (GeeCollection* base,
- int* result_length1)
-{
- SortedList * self;
- gpointer* result = NULL;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gpointer* _tmp2_;
- gpointer* _tmp3_;
- gint _tmp3__length1;
-#line 214 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 215 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 215 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp1_);
-#line 215 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = _tmp2_;
-#line 215 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3__length1 = _tmp1_;
-#line 215 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (result_length1) {
-#line 215 "/home/jens/Source/shotwell/src/SortedList.vala"
- *result_length1 = _tmp3__length1;
-#line 1063 "SortedList.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp3_;
-#line 215 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1069 "SortedList.c"
-}
-
-
-void
-sorted_list_resort (SortedList* self,
- Comparator new_cmp,
- void* new_cmp_target)
-{
-#line 218 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_if_fail (IS_SORTED_LIST (self));
-#line 219 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->cmp = new_cmp;
-#line 219 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->cmp_target = new_cmp_target;
-#line 221 "/home/jens/Source/shotwell/src/SortedList.vala"
- sorted_list_merge_sort (self, NULL);
-#line 1086 "SortedList.c"
-}
-
-
-gboolean
-sorted_list_resort_item (SortedList* self,
- gconstpointer item)
-{
- gboolean result = FALSE;
- gint index = 0;
- GEqualFunc _tmp0_;
- gint _tmp1_;
- gint new_index = 0;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 229 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), FALSE);
-#line 230 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = g_direct_equal;
-#line 230 "/home/jens/Source/shotwell/src/SortedList.vala"
- index = sorted_list_locate (self, item, TRUE, _tmp0_);
-#line 231 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = index;
-#line 231 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (_tmp1_ >= 0, "index >= 0");
-#line 233 "/home/jens/Source/shotwell/src/SortedList.vala"
- new_index = sorted_list_get_sorted_insert_pos (self, item);
-#line 235 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = index;
-#line 235 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = new_index;
-#line 235 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp2_ == _tmp3_) {
-#line 236 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = FALSE;
-#line 236 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1125 "SortedList.c"
- }
-#line 240 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = new_index;
-#line 240 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = index;
-#line 240 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp4_ > _tmp5_) {
-#line 1133 "SortedList.c"
- GeeArrayList* _tmp6_;
- gint _tmp7_;
- gpointer removed_item = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- gconstpointer _tmp11_;
-#line 241 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = self->priv->list;
-#line 241 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = new_index;
-#line 241 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp7_, item);
-#line 242 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = self->priv->list;
-#line 242 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = index;
-#line 242 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp10_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 242 "/home/jens/Source/shotwell/src/SortedList.vala"
- removed_item = _tmp10_;
-#line 243 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp11_ = removed_item;
-#line 243 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (item == _tmp11_, "item == removed_item");
-#line 240 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((removed_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (removed_item = (self->priv->g_destroy_func (removed_item), NULL));
-#line 1161 "SortedList.c"
- } else {
- gpointer removed_item = NULL;
- GeeArrayList* _tmp12_;
- gint _tmp13_;
- gpointer _tmp14_;
- gconstpointer _tmp15_;
- GeeArrayList* _tmp16_;
- gint _tmp17_;
-#line 245 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp12_ = self->priv->list;
-#line 245 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp13_ = index;
-#line 245 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp14_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp13_);
-#line 245 "/home/jens/Source/shotwell/src/SortedList.vala"
- removed_item = _tmp14_;
-#line 246 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp15_ = removed_item;
-#line 246 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (item == _tmp15_, "item == removed_item");
-#line 247 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp16_ = self->priv->list;
-#line 247 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp17_ = new_index;
-#line 247 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp17_, item);
-#line 240 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((removed_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (removed_item = (self->priv->g_destroy_func (removed_item), NULL));
-#line 1190 "SortedList.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = TRUE;
-#line 254 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1196 "SortedList.c"
-}
-
-
-static gint
-sorted_list_get_sorted_insert_pos (SortedList* self,
- gconstpointer item)
-{
- gint result = 0;
- gint low = 0;
- gint high = 0;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 257 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), 0);
-#line 258 "/home/jens/Source/shotwell/src/SortedList.vala"
- low = 0;
-#line 259 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 259 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 259 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = _tmp1_;
-#line 259 "/home/jens/Source/shotwell/src/SortedList.vala"
- high = _tmp2_;
-#line 1222 "SortedList.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 260 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = TRUE;
-#line 260 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 1229 "SortedList.c"
- gint _tmp4_;
- gint _tmp5_;
- gint mid = 0;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gpointer cmp_item = NULL;
- GeeArrayList* _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
- gconstpointer _tmp12_;
- gint64 _result_ = 0LL;
- Comparator _tmp23_;
- void* _tmp23__target;
- gconstpointer _tmp24_;
- gint64 _tmp25_;
-#line 260 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!_tmp3_) {
-#line 1248 "SortedList.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = FALSE;
-#line 261 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = low;
-#line 261 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = high;
-#line 261 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp4_ == _tmp5_) {
-#line 262 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = low;
-#line 262 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1262 "SortedList.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = low;
-#line 264 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = high;
-#line 264 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = low;
-#line 264 "/home/jens/Source/shotwell/src/SortedList.vala"
- mid = _tmp6_ + ((_tmp7_ - _tmp8_) / 2);
-#line 268 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = self->priv->list;
-#line 268 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp10_ = mid;
-#line 268 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp10_);
-#line 268 "/home/jens/Source/shotwell/src/SortedList.vala"
- cmp_item = _tmp11_;
-#line 269 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp12_ = cmp_item;
-#line 269 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (item == _tmp12_) {
-#line 1284 "SortedList.c"
- gint _tmp13_;
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- GeeArrayList* _tmp20_;
- gint _tmp21_;
- gpointer _tmp22_;
-#line 271 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp13_ = mid;
-#line 271 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp14_ = self->priv->list;
-#line 271 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 271 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp16_ = _tmp15_;
-#line 271 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp13_ >= (_tmp16_ - 1)) {
-#line 1302 "SortedList.c"
- GeeArrayList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
-#line 272 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp17_ = self->priv->list;
-#line 272 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp18_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 272 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp19_ = _tmp18_;
-#line 272 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp19_;
-#line 272 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((cmp_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (cmp_item = (self->priv->g_destroy_func (cmp_item), NULL));
-#line 272 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1318 "SortedList.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp20_ = self->priv->list;
-#line 274 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp21_ = mid;
-#line 274 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp22_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp21_ + 1);
-#line 274 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((cmp_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (cmp_item = (self->priv->g_destroy_func (cmp_item), NULL));
-#line 274 "/home/jens/Source/shotwell/src/SortedList.vala"
- cmp_item = _tmp22_;
-#line 1330 "SortedList.c"
- }
-#line 277 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp23_ = self->priv->cmp;
-#line 277 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp23__target = self->priv->cmp_target;
-#line 277 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp24_ = cmp_item;
-#line 277 "/home/jens/Source/shotwell/src/SortedList.vala"
- _result_ = _tmp23_ (item, _tmp24_, _tmp23__target);
-#line 278 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp25_ = _result_;
-#line 278 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp25_ < ((gint64) 0)) {
-#line 1344 "SortedList.c"
- gint _tmp26_;
-#line 279 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp26_ = mid;
-#line 279 "/home/jens/Source/shotwell/src/SortedList.vala"
- high = _tmp26_;
-#line 1350 "SortedList.c"
- } else {
- gint64 _tmp27_;
-#line 280 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp27_ = _result_;
-#line 280 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp27_ > ((gint64) 0)) {
-#line 1357 "SortedList.c"
- gint _tmp28_;
-#line 281 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp28_ = mid;
-#line 281 "/home/jens/Source/shotwell/src/SortedList.vala"
- low = _tmp28_ + 1;
-#line 1363 "SortedList.c"
- } else {
-#line 283 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = mid;
-#line 283 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((cmp_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (cmp_item = (self->priv->g_destroy_func (cmp_item), NULL));
-#line 283 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1371 "SortedList.c"
- }
- }
-#line 260 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((cmp_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (cmp_item = (self->priv->g_destroy_func (cmp_item), NULL));
-#line 1376 "SortedList.c"
- }
- }
-}
-
-
-SortedList*
-sorted_list_copy (SortedList* self)
-{
- SortedList* result = NULL;
- SortedList* copy = NULL;
- Comparator _tmp0_;
- void* _tmp0__target;
- SortedList* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
-#line 287 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), NULL);
-#line 288 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->cmp;
-#line 288 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0__target = self->priv->cmp_target;
-#line 288 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = sorted_list_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, _tmp0_, _tmp0__target);
-#line 288 "/home/jens/Source/shotwell/src/SortedList.vala"
- copy = _tmp1_;
-#line 290 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = copy->priv->list;
-#line 290 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = self->priv->list;
-#line 290 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_array_list_add_all (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 292 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = copy;
-#line 292 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1412 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_merge_sort (SortedList* self,
- GeeList* add)
-{
- gboolean result = FALSE;
- Comparator _tmp0_;
- void* _tmp0__target;
- gint list_count = 0;
- GeeArrayList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_ = 0;
- gint add_count = 0;
- gint count = 0;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gpointer* array = NULL;
- gint _tmp10_;
- gpointer* _tmp11_;
- gint array_length1;
- gint _array_size_;
- gint offset = 0;
- gint _tmp29_;
- gint _tmp30_;
- gpointer* _tmp31_;
- gint _tmp31__length1;
- gint _tmp32_;
- gpointer* _tmp33_;
- gpointer* _tmp34_;
- gint _tmp34__length1;
- gint _tmp35_;
-#line 313 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), FALSE);
-#line 313 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail ((add == NULL) || GEE_IS_LIST (add), FALSE);
-#line 314 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->cmp;
-#line 314 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0__target = self->priv->cmp_target;
-#line 314 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (_tmp0_ != NULL, "cmp != null");
-#line 316 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = self->priv->list;
-#line 316 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 316 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = _tmp2_;
-#line 316 "/home/jens/Source/shotwell/src/SortedList.vala"
- list_count = _tmp3_;
-#line 317 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (add != NULL) {
-#line 1468 "SortedList.c"
- gint _tmp5_;
- gint _tmp6_;
-#line 317 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (add, GEE_TYPE_COLLECTION, GeeCollection));
-#line 317 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = _tmp5_;
-#line 317 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = _tmp6_;
-#line 1477 "SortedList.c"
- } else {
-#line 317 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = 0;
-#line 1481 "SortedList.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/SortedList.vala"
- add_count = _tmp4_;
-#line 319 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = list_count;
-#line 319 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = add_count;
-#line 319 "/home/jens/Source/shotwell/src/SortedList.vala"
- count = _tmp7_ + _tmp8_;
-#line 320 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = count;
-#line 320 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp9_ == 0) {
-#line 321 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = FALSE;
-#line 321 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1499 "SortedList.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp10_ = count;
-#line 325 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp11_ = g_new0 (gpointer, _tmp10_);
-#line 325 "/home/jens/Source/shotwell/src/SortedList.vala"
- array = _tmp11_;
-#line 325 "/home/jens/Source/shotwell/src/SortedList.vala"
- array_length1 = _tmp10_;
-#line 325 "/home/jens/Source/shotwell/src/SortedList.vala"
- _array_size_ = array_length1;
-#line 326 "/home/jens/Source/shotwell/src/SortedList.vala"
- offset = 0;
-#line 328 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 1515 "SortedList.c"
- gint _tmp12_;
- gint _tmp13_;
- gpointer* _tmp14_;
- gint _tmp14__length1;
- gint _tmp15_;
- GeeArrayList* _tmp16_;
- gint _tmp17_;
- gpointer _tmp18_;
- gpointer _tmp19_;
- gint _tmp20_;
-#line 328 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp12_ = offset;
-#line 328 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp13_ = list_count;
-#line 328 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 328 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 1534 "SortedList.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp14_ = array;
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp14__length1 = array_length1;
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp15_ = offset;
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp16_ = self->priv->list;
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp17_ = offset;
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp18_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp17_);
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((_tmp14_[_tmp15_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp14_[_tmp15_] = (self->priv->g_destroy_func (_tmp14_[_tmp15_]), NULL));
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp14_[_tmp15_] = _tmp18_;
-#line 329 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp19_ = _tmp14_[_tmp15_];
-#line 330 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp20_ = offset;
-#line 330 "/home/jens/Source/shotwell/src/SortedList.vala"
- offset = _tmp20_ + 1;
-#line 1558 "SortedList.c"
- }
-#line 333 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (add != NULL) {
-#line 1562 "SortedList.c"
- gint add_ctr = 0;
-#line 334 "/home/jens/Source/shotwell/src/SortedList.vala"
- add_ctr = 0;
-#line 335 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 1568 "SortedList.c"
- gint _tmp21_;
- gint _tmp22_;
- gpointer* _tmp23_;
- gint _tmp23__length1;
- gint _tmp24_;
- gint _tmp25_;
- gpointer _tmp26_;
- gpointer _tmp27_;
- gint _tmp28_;
-#line 335 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp21_ = offset;
-#line 335 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp22_ = count;
-#line 335 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!(_tmp21_ < _tmp22_)) {
-#line 335 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 1586 "SortedList.c"
- }
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp23_ = array;
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp23__length1 = array_length1;
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp24_ = offset;
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp25_ = add_ctr;
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- add_ctr = _tmp25_ + 1;
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp26_ = gee_list_get (add, _tmp25_);
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((_tmp23_[_tmp24_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp23_[_tmp24_] = (self->priv->g_destroy_func (_tmp23_[_tmp24_]), NULL));
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp23_[_tmp24_] = _tmp26_;
-#line 336 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp27_ = _tmp23_[_tmp24_];
-#line 337 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp28_ = offset;
-#line 337 "/home/jens/Source/shotwell/src/SortedList.vala"
- offset = _tmp28_ + 1;
-#line 1610 "SortedList.c"
- }
- }
-#line 341 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp29_ = offset;
-#line 341 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp30_ = count;
-#line 341 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (_tmp29_ == _tmp30_, "offset == count");
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp31_ = array;
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp31__length1 = array_length1;
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp32_ = count;
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp33_ = g_new0 (gpointer, _tmp32_);
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp34_ = _tmp33_;
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp34__length1 = _tmp32_;
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp35_ = count;
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _sorted_list_merge_sort (self, _tmp31_, _tmp31__length1, _tmp34_, _tmp32_, 0, _tmp35_ - 1);
-#line 343 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp34_ = (_vala_array_free (_tmp34_, _tmp34__length1, (GDestroyNotify) self->priv->g_destroy_func), NULL);
-#line 345 "/home/jens/Source/shotwell/src/SortedList.vala"
- offset = 0;
-#line 346 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 1641 "SortedList.c"
- gint _tmp36_;
- gint _tmp37_;
- GeeArrayList* _tmp38_;
- gint _tmp39_;
- gpointer* _tmp40_;
- gint _tmp40__length1;
- gint _tmp41_;
- gconstpointer _tmp42_;
- gint _tmp43_;
-#line 346 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp36_ = offset;
-#line 346 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp37_ = list_count;
-#line 346 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!(_tmp36_ < _tmp37_)) {
-#line 346 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 1659 "SortedList.c"
- }
-#line 347 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp38_ = self->priv->list;
-#line 347 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp39_ = offset;
-#line 347 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp40_ = array;
-#line 347 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp40__length1 = array_length1;
-#line 347 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp41_ = offset;
-#line 347 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp42_ = _tmp40_[_tmp41_];
-#line 347 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_list_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp39_, _tmp42_);
-#line 348 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp43_ = offset;
-#line 348 "/home/jens/Source/shotwell/src/SortedList.vala"
- offset = _tmp43_ + 1;
-#line 1679 "SortedList.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 1683 "SortedList.c"
- gint _tmp44_;
- gint _tmp45_;
- GeeArrayList* _tmp46_;
- gint _tmp47_;
- gpointer* _tmp48_;
- gint _tmp48__length1;
- gint _tmp49_;
- gconstpointer _tmp50_;
- gint _tmp51_;
-#line 351 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp44_ = offset;
-#line 351 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp45_ = count;
-#line 351 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!(_tmp44_ < _tmp45_)) {
-#line 351 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 1701 "SortedList.c"
- }
-#line 352 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp46_ = self->priv->list;
-#line 352 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp47_ = offset;
-#line 352 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp48_ = array;
-#line 352 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp48__length1 = array_length1;
-#line 352 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp49_ = offset;
-#line 352 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp50_ = _tmp48_[_tmp49_];
-#line 352 "/home/jens/Source/shotwell/src/SortedList.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp47_, _tmp50_);
-#line 353 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp51_ = offset;
-#line 353 "/home/jens/Source/shotwell/src/SortedList.vala"
- offset = _tmp51_ + 1;
-#line 1721 "SortedList.c"
- }
-#line 356 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = TRUE;
-#line 356 "/home/jens/Source/shotwell/src/SortedList.vala"
- array = (_vala_array_free (array, array_length1, (GDestroyNotify) self->priv->g_destroy_func), NULL);
-#line 356 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 1729 "SortedList.c"
-}
-
-
-static void
-_sorted_list_merge_sort (SortedList* self,
- gpointer* array,
- int array_length1,
- gpointer* scratch,
- int scratch_length1,
- gint start_index,
- gint end_index)
-{
- gint count = 0;
- gint _tmp0_;
- gint middle_index = 0;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- Comparator _tmp4_;
- void* _tmp4__target;
- gint _tmp5_;
- gconstpointer _tmp6_;
- gint _tmp7_;
- gconstpointer _tmp8_;
-#line 359 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_if_fail (IS_SORTED_LIST (self));
-#line 360 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (start_index <= end_index, "start_index <= end_index");
-#line 362 "/home/jens/Source/shotwell/src/SortedList.vala"
- count = (end_index - start_index) + 1;
-#line 363 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = count;
-#line 363 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp0_ <= 1) {
-#line 364 "/home/jens/Source/shotwell/src/SortedList.vala"
- return;
-#line 1766 "SortedList.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = count;
-#line 366 "/home/jens/Source/shotwell/src/SortedList.vala"
- middle_index = start_index + (_tmp1_ / 2);
-#line 368 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = middle_index;
-#line 368 "/home/jens/Source/shotwell/src/SortedList.vala"
- _sorted_list_merge_sort (self, array, array_length1, scratch, scratch_length1, start_index, _tmp2_ - 1);
-#line 369 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = middle_index;
-#line 369 "/home/jens/Source/shotwell/src/SortedList.vala"
- _sorted_list_merge_sort (self, array, array_length1, scratch, scratch_length1, _tmp3_, end_index);
-#line 371 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = self->priv->cmp;
-#line 371 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4__target = self->priv->cmp_target;
-#line 371 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = middle_index;
-#line 371 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = array[_tmp5_ - 1];
-#line 371 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = middle_index;
-#line 371 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = array[_tmp7_];
-#line 371 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp4_ (_tmp6_, _tmp8_, _tmp4__target) > ((gint64) 0)) {
-#line 1794 "SortedList.c"
- gint _tmp9_;
-#line 372 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = middle_index;
-#line 372 "/home/jens/Source/shotwell/src/SortedList.vala"
- sorted_list_merge (self, array, array_length1, scratch, scratch_length1, start_index, _tmp9_, end_index);
-#line 1800 "SortedList.c"
- }
-}
-
-
-static void
-sorted_list_merge (SortedList* self,
- gpointer* array,
- int array_length1,
- gpointer* scratch,
- int scratch_length1,
- gint start_index,
- gint middle_index,
- gint end_index)
-{
- gint count = 0;
- gint left_start = 0;
- gint left_end = 0;
- gint right_start = 0;
- gint right_end = 0;
- gint _tmp0_;
- gint scratch_index = 0;
- gint _tmp39_;
- gint _tmp40_;
-#line 375 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_if_fail (IS_SORTED_LIST (self));
-#line 376 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (start_index < end_index, "start_index < end_index");
-#line 378 "/home/jens/Source/shotwell/src/SortedList.vala"
- count = (end_index - start_index) + 1;
-#line 379 "/home/jens/Source/shotwell/src/SortedList.vala"
- left_start = start_index;
-#line 380 "/home/jens/Source/shotwell/src/SortedList.vala"
- left_end = middle_index - 1;
-#line 381 "/home/jens/Source/shotwell/src/SortedList.vala"
- right_start = middle_index;
-#line 382 "/home/jens/Source/shotwell/src/SortedList.vala"
- right_end = end_index;
-#line 384 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = count;
-#line 384 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (scratch_length1 >= _tmp0_, "scratch.length >= count");
-#line 385 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch_index = 0;
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 1846 "SortedList.c"
- gboolean _tmp1_ = FALSE;
- gint _tmp2_;
- gint _tmp3_;
- gpointer left = NULL;
- gint _tmp6_;
- gconstpointer _tmp7_;
- gpointer _tmp8_;
- gpointer right = NULL;
- gint _tmp9_;
- gconstpointer _tmp10_;
- gpointer _tmp11_;
- Comparator _tmp12_;
- void* _tmp12__target;
- gconstpointer _tmp13_;
- gconstpointer _tmp14_;
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = left_start;
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp3_ = left_end;
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp2_ <= _tmp3_) {
-#line 1868 "SortedList.c"
- gint _tmp4_;
- gint _tmp5_;
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp4_ = right_start;
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp5_ = right_end;
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = _tmp4_ <= _tmp5_;
-#line 1877 "SortedList.c"
- } else {
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = FALSE;
-#line 1881 "SortedList.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!_tmp1_) {
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 1887 "SortedList.c"
- }
-#line 388 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp6_ = left_start;
-#line 388 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp7_ = array[_tmp6_];
-#line 388 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp8_ = ((_tmp7_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp7_) : ((gpointer) _tmp7_);
-#line 388 "/home/jens/Source/shotwell/src/SortedList.vala"
- left = _tmp8_;
-#line 389 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp9_ = right_start;
-#line 389 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp10_ = array[_tmp9_];
-#line 389 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp11_ = ((_tmp10_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp10_) : ((gpointer) _tmp10_);
-#line 389 "/home/jens/Source/shotwell/src/SortedList.vala"
- right = _tmp11_;
-#line 391 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp12_ = self->priv->cmp;
-#line 391 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp12__target = self->priv->cmp_target;
-#line 391 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp13_ = left;
-#line 391 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp14_ = right;
-#line 391 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (_tmp12_ (_tmp13_, _tmp14_, _tmp12__target) <= ((gint64) 0)) {
-#line 1915 "SortedList.c"
- gint _tmp15_;
- gconstpointer _tmp16_;
- gpointer _tmp17_;
- gpointer _tmp18_;
- gint _tmp19_;
-#line 392 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp15_ = scratch_index;
-#line 392 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch_index = _tmp15_ + 1;
-#line 392 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp16_ = left;
-#line 392 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp17_ = ((_tmp16_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp16_) : ((gpointer) _tmp16_);
-#line 392 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((scratch[_tmp15_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (scratch[_tmp15_] = (self->priv->g_destroy_func (scratch[_tmp15_]), NULL));
-#line 392 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch[_tmp15_] = _tmp17_;
-#line 392 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp18_ = scratch[_tmp15_];
-#line 393 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp19_ = left_start;
-#line 393 "/home/jens/Source/shotwell/src/SortedList.vala"
- left_start = _tmp19_ + 1;
-#line 1939 "SortedList.c"
- } else {
- gint _tmp20_;
- gconstpointer _tmp21_;
- gpointer _tmp22_;
- gpointer _tmp23_;
- gint _tmp24_;
-#line 395 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp20_ = scratch_index;
-#line 395 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch_index = _tmp20_ + 1;
-#line 395 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp21_ = right;
-#line 395 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp22_ = ((_tmp21_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp21_) : ((gpointer) _tmp21_);
-#line 395 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((scratch[_tmp20_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (scratch[_tmp20_] = (self->priv->g_destroy_func (scratch[_tmp20_]), NULL));
-#line 395 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch[_tmp20_] = _tmp22_;
-#line 395 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp23_ = scratch[_tmp20_];
-#line 396 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp24_ = right_start;
-#line 396 "/home/jens/Source/shotwell/src/SortedList.vala"
- right_start = _tmp24_ + 1;
-#line 1964 "SortedList.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((right == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (right = (self->priv->g_destroy_func (right), NULL));
-#line 387 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((left == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (left = (self->priv->g_destroy_func (left), NULL));
-#line 1970 "SortedList.c"
- }
-#line 400 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 1974 "SortedList.c"
- gint _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gconstpointer _tmp29_;
- gpointer _tmp30_;
- gpointer _tmp31_;
-#line 400 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp25_ = left_start;
-#line 400 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp26_ = left_end;
-#line 400 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!(_tmp25_ <= _tmp26_)) {
-#line 400 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 1990 "SortedList.c"
- }
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp27_ = scratch_index;
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch_index = _tmp27_ + 1;
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp28_ = left_start;
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- left_start = _tmp28_ + 1;
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp29_ = array[_tmp28_];
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp30_ = ((_tmp29_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp29_) : ((gpointer) _tmp29_);
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((scratch[_tmp27_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (scratch[_tmp27_] = (self->priv->g_destroy_func (scratch[_tmp27_]), NULL));
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch[_tmp27_] = _tmp30_;
-#line 401 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp31_ = scratch[_tmp27_];
-#line 2010 "SortedList.c"
- }
-#line 403 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 2014 "SortedList.c"
- gint _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- gconstpointer _tmp36_;
- gpointer _tmp37_;
- gpointer _tmp38_;
-#line 403 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp32_ = right_start;
-#line 403 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp33_ = right_end;
-#line 403 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!(_tmp32_ <= _tmp33_)) {
-#line 403 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 2030 "SortedList.c"
- }
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp34_ = scratch_index;
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch_index = _tmp34_ + 1;
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp35_ = right_start;
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- right_start = _tmp35_ + 1;
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp36_ = array[_tmp35_];
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp37_ = ((_tmp36_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp36_) : ((gpointer) _tmp36_);
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((scratch[_tmp34_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (scratch[_tmp34_] = (self->priv->g_destroy_func (scratch[_tmp34_]), NULL));
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch[_tmp34_] = _tmp37_;
-#line 404 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp38_ = scratch[_tmp34_];
-#line 2050 "SortedList.c"
- }
-#line 406 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp39_ = scratch_index;
-#line 406 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp40_ = count;
-#line 406 "/home/jens/Source/shotwell/src/SortedList.vala"
- _vala_assert (_tmp39_ == _tmp40_, "scratch_index == count");
-#line 408 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch_index = 0;
-#line 2060 "SortedList.c"
- {
- gint list_index = 0;
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- list_index = start_index;
-#line 2065 "SortedList.c"
- {
- gboolean _tmp41_ = FALSE;
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp41_ = TRUE;
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- while (TRUE) {
-#line 2072 "SortedList.c"
- gint _tmp43_;
- gint _tmp44_;
- gint _tmp45_;
- gconstpointer _tmp46_;
- gpointer _tmp47_;
- gpointer _tmp48_;
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!_tmp41_) {
-#line 2081 "SortedList.c"
- gint _tmp42_;
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp42_ = list_index;
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- list_index = _tmp42_ + 1;
-#line 2087 "SortedList.c"
- }
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp41_ = FALSE;
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp43_ = list_index;
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- if (!(_tmp43_ <= end_index)) {
-#line 409 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 2097 "SortedList.c"
- }
-#line 410 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp44_ = list_index;
-#line 410 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp45_ = scratch_index;
-#line 410 "/home/jens/Source/shotwell/src/SortedList.vala"
- scratch_index = _tmp45_ + 1;
-#line 410 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp46_ = scratch[_tmp45_];
-#line 410 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp47_ = ((_tmp46_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp46_) : ((gpointer) _tmp46_);
-#line 410 "/home/jens/Source/shotwell/src/SortedList.vala"
- ((array[_tmp44_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (array[_tmp44_] = (self->priv->g_destroy_func (array[_tmp44_]), NULL));
-#line 410 "/home/jens/Source/shotwell/src/SortedList.vala"
- array[_tmp44_] = _tmp47_;
-#line 410 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp48_ = array[_tmp44_];
-#line 2115 "SortedList.c"
- }
- }
- }
-}
-
-
-static GType
-sorted_list_real_get_element_type (GeeTraversable* base)
-{
- GType result;
- SortedList* self;
-#line 19 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 19 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = self->priv->g_type;
-#line 19 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 2133 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_get_read_only (GeeCollection* base)
-{
- gboolean result;
- SortedList* self;
- GeeArrayList* _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 23 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 23 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_collection_get_read_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 23 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 2157 "SortedList.c"
-}
-
-
-static gboolean
-sorted_list_real_get_is_empty (GeeCollection* base)
-{
- gboolean result;
- SortedList* self;
- GeeArrayList* _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 117 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 117 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 117 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = _tmp1_;
-#line 117 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp2_;
-#line 117 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 2181 "SortedList.c"
-}
-
-
-static gint
-sorted_list_real_get_size (GeeCollection* base)
-{
- gint result;
- SortedList* self;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 134 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 134 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 134 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 134 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = _tmp1_;
-#line 134 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = _tmp2_;
-#line 134 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 2205 "SortedList.c"
-}
-
-
-static GeeCollection*
-sorted_list_real_get_read_only_view (GeeCollection* base)
-{
- GeeCollection* result;
- SortedList* self;
- GeeArrayList* _tmp0_;
- GeeBidirList* _tmp1_;
- GeeBidirList* _tmp2_;
-#line 199 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList);
-#line 200 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 200 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_bidir_list_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList));
-#line 200 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = _tmp1_;
-#line 200 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 200 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 2229 "SortedList.c"
-}
-
-
-GeeList*
-sorted_list_get_read_only_view_as_list (SortedList* self)
-{
- GeeList* result;
- GeeArrayList* _tmp0_;
- GeeBidirList* _tmp1_;
- GeeBidirList* _tmp2_;
-#line 205 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_return_val_if_fail (IS_SORTED_LIST (self), NULL);
-#line 206 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp0_ = self->priv->list;
-#line 206 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp1_ = gee_abstract_bidir_list_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList));
-#line 206 "/home/jens/Source/shotwell/src/SortedList.vala"
- _tmp2_ = _tmp1_;
-#line 206 "/home/jens/Source/shotwell/src/SortedList.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
-#line 206 "/home/jens/Source/shotwell/src/SortedList.vala"
- return result;
-#line 2252 "SortedList.c"
-}
-
-
-static void
-sorted_list_class_init (SortedListClass * klass)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- sorted_list_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_type_class_add_private (klass, sizeof (SortedListPrivate));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_sorted_list_get_property;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_sorted_list_set_property;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- G_OBJECT_CLASS (klass)->finalize = sorted_list_finalize;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_G_TYPE, g_param_spec_gtype ("g-type", "type", "type", G_TYPE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_G_DUP_FUNC, g_param_spec_pointer ("g-dup-func", "dup func", "dup func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_G_DESTROY_FUNC, g_param_spec_pointer ("g-destroy-func", "destroy func", "destroy func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_ELEMENT_TYPE_PROPERTY, sorted_list_properties[SORTED_LIST_ELEMENT_TYPE_PROPERTY] = g_param_spec_gtype ("element-type", "element-type", "element-type", G_TYPE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_READ_ONLY_PROPERTY, sorted_list_properties[SORTED_LIST_READ_ONLY_PROPERTY] = g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_IS_EMPTY_PROPERTY, sorted_list_properties[SORTED_LIST_IS_EMPTY_PROPERTY] = g_param_spec_boolean ("is-empty", "is-empty", "is-empty", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_SIZE_PROPERTY, sorted_list_properties[SORTED_LIST_SIZE_PROPERTY] = g_param_spec_int ("size", "size", "size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_READ_ONLY_VIEW_PROPERTY, sorted_list_properties[SORTED_LIST_READ_ONLY_VIEW_PROPERTY] = g_param_spec_object ("read-only-view", "read-only-view", "read-only-view", GEE_TYPE_COLLECTION, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_READ_ONLY_VIEW_AS_LIST_PROPERTY, sorted_list_properties[SORTED_LIST_READ_ONLY_VIEW_AS_LIST_PROPERTY] = g_param_spec_object ("read-only-view-as-list", "read-only-view-as-list", "read-only-view-as-list", GEE_TYPE_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 2287 "SortedList.c"
-}
-
-
-static GType
-sorted_list_gee_traversable_get_g_type (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_type;
-#line 2296 "SortedList.c"
-}
-
-
-static GBoxedCopyFunc
-sorted_list_gee_traversable_get_g_dup_func (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_dup_func;
-#line 2305 "SortedList.c"
-}
-
-
-static GDestroyNotify
-sorted_list_gee_traversable_get_g_destroy_func (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_destroy_func;
-#line 2314 "SortedList.c"
-}
-
-
-static void
-sorted_list_gee_traversable_interface_init (GeeTraversableIface * iface)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- sorted_list_gee_traversable_parent_iface = g_type_interface_peek_parent (iface);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->foreach = (gboolean (*) (GeeTraversable *, GeeForallFunc, void*)) sorted_list_real_foreach;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_type = (GType (*) (GeeTraversable *)) sorted_list_gee_traversable_get_g_type;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_dup_func = (GBoxedCopyFunc (*) (GeeTraversable *)) sorted_list_gee_traversable_get_g_dup_func;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_destroy_func = (GDestroyNotify (*) (GeeTraversable *)) sorted_list_gee_traversable_get_g_destroy_func;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_element_type = sorted_list_real_get_element_type;
-#line 2333 "SortedList.c"
-}
-
-
-static GType
-sorted_list_gee_iterable_get_g_type (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_type;
-#line 2342 "SortedList.c"
-}
-
-
-static GBoxedCopyFunc
-sorted_list_gee_iterable_get_g_dup_func (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_dup_func;
-#line 2351 "SortedList.c"
-}
-
-
-static GDestroyNotify
-sorted_list_gee_iterable_get_g_destroy_func (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_destroy_func;
-#line 2360 "SortedList.c"
-}
-
-
-static void
-sorted_list_gee_iterable_interface_init (GeeIterableIface * iface)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- sorted_list_gee_iterable_parent_iface = g_type_interface_peek_parent (iface);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->iterator = (GeeIterator* (*) (GeeIterable *)) sorted_list_real_iterator;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_type = (GType (*) (GeeIterable *)) sorted_list_gee_iterable_get_g_type;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_dup_func = (GBoxedCopyFunc (*) (GeeIterable *)) sorted_list_gee_iterable_get_g_dup_func;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_destroy_func = (GDestroyNotify (*) (GeeIterable *)) sorted_list_gee_iterable_get_g_destroy_func;
-#line 2377 "SortedList.c"
-}
-
-
-static GType
-sorted_list_gee_collection_get_g_type (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_type;
-#line 2386 "SortedList.c"
-}
-
-
-static GBoxedCopyFunc
-sorted_list_gee_collection_get_g_dup_func (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_dup_func;
-#line 2395 "SortedList.c"
-}
-
-
-static GDestroyNotify
-sorted_list_gee_collection_get_g_destroy_func (SortedList* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- return self->priv->g_destroy_func;
-#line 2404 "SortedList.c"
-}
-
-
-static void
-sorted_list_gee_collection_interface_init (GeeCollectionIface * iface)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- sorted_list_gee_collection_parent_iface = g_type_interface_peek_parent (iface);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->add = (gboolean (*) (GeeCollection *, gconstpointer)) sorted_list_real_add;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->add_all = (gboolean (*) (GeeCollection *, GeeCollection*)) sorted_list_real_add_all;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->clear = (void (*) (GeeCollection *)) sorted_list_real_clear;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->contains = (gboolean (*) (GeeCollection *, gconstpointer)) sorted_list_real_contains;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->contains_all = (gboolean (*) (GeeCollection *, GeeCollection*)) sorted_list_real_contains_all;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->remove = (gboolean (*) (GeeCollection *, gconstpointer)) sorted_list_real_remove;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->remove_all = (gboolean (*) (GeeCollection *, GeeCollection*)) sorted_list_real_remove_all;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->retain_all = (gboolean (*) (GeeCollection *, GeeCollection*)) sorted_list_real_retain_all;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->to_array = (gpointer* (*) (GeeCollection *, int*)) sorted_list_real_to_array;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_type = (GType (*) (GeeCollection *)) sorted_list_gee_collection_get_g_type;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_dup_func = (GBoxedCopyFunc (*) (GeeCollection *)) sorted_list_gee_collection_get_g_dup_func;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_g_destroy_func = (GDestroyNotify (*) (GeeCollection *)) sorted_list_gee_collection_get_g_destroy_func;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_read_only = sorted_list_real_get_read_only;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_is_empty = sorted_list_real_get_is_empty;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_size = sorted_list_real_get_size;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- iface->get_read_only_view = sorted_list_real_get_read_only_view;
-#line 2445 "SortedList.c"
-}
-
-
-static void
-sorted_list_instance_init (SortedList * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv = SORTED_LIST_GET_PRIVATE (self);
-#line 2454 "SortedList.c"
-}
-
-
-static void
-sorted_list_finalize (GObject * obj)
-{
- SortedList * self;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SORTED_LIST, SortedList);
-#line 10 "/home/jens/Source/shotwell/src/SortedList.vala"
- _g_object_unref0 (self->priv->list);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- G_OBJECT_CLASS (sorted_list_parent_class)->finalize (obj);
-#line 2468 "SortedList.c"
-}
-
-
-GType
-sorted_list_get_type (void)
-{
- static volatile gsize sorted_list_type_id__volatile = 0;
- if (g_once_init_enter (&sorted_list_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SortedListClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sorted_list_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SortedList), 0, (GInstanceInitFunc) sorted_list_instance_init, NULL };
- static const GInterfaceInfo gee_traversable_info = { (GInterfaceInitFunc) sorted_list_gee_traversable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo gee_iterable_info = { (GInterfaceInitFunc) sorted_list_gee_iterable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo gee_collection_info = { (GInterfaceInitFunc) sorted_list_gee_collection_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType sorted_list_type_id;
- sorted_list_type_id = g_type_register_static (G_TYPE_OBJECT, "SortedList", &g_define_type_info, 0);
- g_type_add_interface_static (sorted_list_type_id, GEE_TYPE_TRAVERSABLE, &gee_traversable_info);
- g_type_add_interface_static (sorted_list_type_id, GEE_TYPE_ITERABLE, &gee_iterable_info);
- g_type_add_interface_static (sorted_list_type_id, GEE_TYPE_COLLECTION, &gee_collection_info);
- g_once_init_leave (&sorted_list_type_id__volatile, sorted_list_type_id);
- }
- return sorted_list_type_id__volatile;
-}
-
-
-static void
-_vala_sorted_list_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- SortedList * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SORTED_LIST, SortedList);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- switch (property_id) {
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_ELEMENT_TYPE_PROPERTY:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_value_set_gtype (value, gee_traversable_get_element_type (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_TRAVERSABLE, GeeTraversable)));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_READ_ONLY_PROPERTY:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_value_set_boolean (value, gee_collection_get_read_only (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_COLLECTION, GeeCollection)));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_IS_EMPTY_PROPERTY:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_value_set_boolean (value, gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_COLLECTION, GeeCollection)));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_SIZE_PROPERTY:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_value_set_int (value, gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_COLLECTION, GeeCollection)));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_READ_ONLY_VIEW_PROPERTY:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_value_take_object (value, gee_collection_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_COLLECTION, GeeCollection)));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_READ_ONLY_VIEW_AS_LIST_PROPERTY:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- g_value_take_object (value, sorted_list_get_read_only_view_as_list (self));
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 2538 "SortedList.c"
- default:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 2544 "SortedList.c"
- }
-}
-
-
-static void
-_vala_sorted_list_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- SortedList * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SORTED_LIST, SortedList);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- switch (property_id) {
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_G_TYPE:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->g_type = g_value_get_gtype (value);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_G_DUP_FUNC:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->g_dup_func = g_value_get_pointer (value);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- case SORTED_LIST_G_DESTROY_FUNC:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- self->priv->g_destroy_func = g_value_get_pointer (value);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 2577 "SortedList.c"
- default:
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 9 "/home/jens/Source/shotwell/src/SortedList.vala"
- break;
-#line 2583 "SortedList.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Tag.c b/src/Tag.c
deleted file mode 100644
index a4b9131..0000000
--- a/src/Tag.c
+++ /dev/null
@@ -1,9694 +0,0 @@
-/* Tag.c generated by valac 0.40.4, the Vala compiler
- * generated from Tag.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <time.h>
-#include <glib/gi18n-lib.h>
-
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-typedef struct _ContainerSourceCollectionPrivate ContainerSourceCollectionPrivate;
-
-#define TYPE_CONTAINER_SOURCE (container_source_get_type ())
-#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource))
-#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE))
-#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface))
-
-typedef struct _ContainerSource ContainerSource;
-typedef struct _ContainerSourceIface ContainerSourceIface;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-typedef struct _TagSourceCollectionPrivate TagSourceCollectionPrivate;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#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_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#define TYPE_TAG_ID (tag_id_get_type ())
-typedef struct _TagID TagID;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _DataObjectPrivate DataObjectPrivate;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-
-#define TYPE_PROXYABLE (proxyable_get_type ())
-#define PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROXYABLE, Proxyable))
-#define IS_PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROXYABLE))
-#define PROXYABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_PROXYABLE, ProxyableIface))
-
-typedef struct _Proxyable Proxyable;
-typedef struct _ProxyableIface ProxyableIface;
-
-#define TYPE_SOURCE_PROXY (source_proxy_get_type ())
-#define SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_PROXY, SourceProxy))
-#define SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_PROXY, SourceProxyClass))
-#define IS_SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_PROXY))
-#define IS_SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_PROXY))
-#define SOURCE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_PROXY, SourceProxyClass))
-
-typedef struct _SourceProxy SourceProxy;
-typedef struct _SourceProxyClass SourceProxyClass;
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-typedef struct _TagPrivate TagPrivate;
-
-#define TYPE_TAG_ROW (tag_row_get_type ())
-#define TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_ROW, TagRow))
-#define TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_ROW, TagRowClass))
-#define IS_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_ROW))
-#define IS_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_ROW))
-#define TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_ROW, TagRowClass))
-
-typedef struct _TagRow TagRow;
-typedef struct _TagRowClass TagRowClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-enum {
- TAG_0_PROPERTY,
- TAG_NUM_PROPERTIES
-};
-static GParamSpec* tag_properties[TAG_NUM_PROPERTIES];
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-#define _tag_row_unref0(var) ((var == NULL) ? NULL : (var = (tag_row_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-typedef struct _TagRowPrivate TagRowPrivate;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_TAG_TABLE (tag_table_get_type ())
-#define TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_TABLE, TagTable))
-#define TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_TABLE, TagTableClass))
-#define IS_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_TABLE))
-#define IS_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_TABLE))
-#define TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_TABLE, TagTableClass))
-
-typedef struct _TagTable TagTable;
-typedef struct _TagTableClass TagTableClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#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 _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#define TAG_TYPE_TAG_SNAPSHOT (tag_tag_snapshot_get_type ())
-#define TAG_TAG_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshot))
-#define TAG_TAG_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshotClass))
-#define TAG_IS_TAG_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAG_TYPE_TAG_SNAPSHOT))
-#define TAG_IS_TAG_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAG_TYPE_TAG_SNAPSHOT))
-#define TAG_TAG_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshotClass))
-
-typedef struct _TagTagSnapshot TagTagSnapshot;
-typedef struct _TagTagSnapshotClass TagTagSnapshotClass;
-
-#define TAG_TYPE_TAG_PROXY (tag_tag_proxy_get_type ())
-#define TAG_TAG_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAG_TYPE_TAG_PROXY, TagTagProxy))
-#define TAG_TAG_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAG_TYPE_TAG_PROXY, TagTagProxyClass))
-#define TAG_IS_TAG_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAG_TYPE_TAG_PROXY))
-#define TAG_IS_TAG_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAG_TYPE_TAG_PROXY))
-#define TAG_TAG_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAG_TYPE_TAG_PROXY, TagTagProxyClass))
-
-typedef struct _TagTagProxy TagTagProxy;
-typedef struct _TagTagProxyClass TagTagProxyClass;
-#define _source_backlink_unref0(var) ((var == NULL) ? NULL : (var = (source_backlink_unref (var), NULL)))
-typedef struct _SourceSnapshotPrivate SourceSnapshotPrivate;
-typedef struct _TagTagSnapshotPrivate TagTagSnapshotPrivate;
-typedef struct _SourceProxyPrivate SourceProxyPrivate;
-typedef struct _TagTagProxyPrivate TagTagProxyPrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _ContainerSourceIface {
- GTypeInterface parent_iface;
- gboolean (*has_links) (ContainerSource* self);
- SourceBacklink* (*get_backlink) (ContainerSource* self);
- void (*break_link) (ContainerSource* self, DataSource* source);
- void (*break_link_many) (ContainerSource* self, GeeCollection* sources);
- void (*establish_link) (ContainerSource* self, DataSource* source);
- void (*establish_link_many) (ContainerSource* self, GeeCollection* sources);
-};
-
-struct _ContainerSourceCollection {
- DatabaseSourceCollection parent_instance;
- ContainerSourceCollectionPrivate * priv;
-};
-
-struct _ContainerSourceCollectionClass {
- DatabaseSourceCollectionClass parent_class;
- void (*notify_container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
- void (*notify_container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
- void (*notify_container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
- void (*notify_backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
- GeeCollection* (*get_containers_holding_source) (ContainerSourceCollection* self, DataSource* source);
- ContainerSource* (*convert_backlink_to_container) (ContainerSourceCollection* self, SourceBacklink* backlink);
- void (*container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
- void (*container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
- void (*container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
- void (*backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
-};
-
-struct _TagSourceCollection {
- ContainerSourceCollection parent_instance;
- TagSourceCollectionPrivate * priv;
-};
-
-struct _TagSourceCollectionClass {
- ContainerSourceCollectionClass parent_class;
-};
-
-struct _TagSourceCollectionPrivate {
- GeeHashMap* name_map;
- GeeHashMap* source_map;
- GeeHashMap* sorted_source_map;
-};
-
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-struct _TagID {
- gint64 id;
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-struct _ProxyableIface {
- GTypeInterface parent_iface;
- SourceProxy* (*get_proxy) (Proxyable* self);
-};
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _Tag {
- DataSource parent_instance;
- TagPrivate * priv;
-};
-
-struct _TagClass {
- DataSourceClass parent_class;
-};
-
-struct _TagPrivate {
- TagRow* row;
- ViewCollection* media_views;
- gchar* name_collation_key;
- gboolean unlinking;
- gboolean relinking;
- gchar* indexable_keywords;
-};
-
-struct _TagRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TagRowPrivate * priv;
- TagID tag_id;
- gchar* name;
- GeeSet* source_id_list;
- time_t time_created;
-};
-
-struct _TagRowClass {
- GTypeClass parent_class;
- void (*finalize) (TagRow *self);
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-typedef enum {
- PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0,
- PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
- PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
- PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
- PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
-} PrepareInputTextOptions;
-
-typedef DataView* (*CreateView) (DataSource* source, void* user_data);
-typedef gboolean (*CreateViewPredicate) (DataSource* source, void* user_data);
-struct _SourceSnapshot {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceSnapshotPrivate * priv;
-};
-
-struct _SourceSnapshotClass {
- GTypeClass parent_class;
- void (*finalize) (SourceSnapshot *self);
- void (*notify_broken) (SourceSnapshot* self);
- void (*broken) (SourceSnapshot* self);
-};
-
-struct _TagTagSnapshot {
- SourceSnapshot parent_instance;
- TagTagSnapshotPrivate * priv;
-};
-
-struct _TagTagSnapshotClass {
- SourceSnapshotClass parent_class;
-};
-
-struct _TagTagSnapshotPrivate {
- TagRow* row;
- GeeHashSet* sources;
-};
-
-struct _SourceProxy {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceProxyPrivate * priv;
-};
-
-struct _SourceProxyClass {
- GTypeClass parent_class;
- void (*finalize) (SourceProxy *self);
- DataSource* (*reconstitute) (SourceProxy* self, gint64 object_id, SourceSnapshot* snapshot);
- void (*notify_reconstituted) (SourceProxy* self, DataSource* source);
- void (*notify_dehydrated) (SourceProxy* self);
- void (*notify_broken) (SourceProxy* self);
- void (*reconstituted) (SourceProxy* self, DataSource* source);
- void (*dehydrated) (SourceProxy* self);
- void (*broken) (SourceProxy* self);
-};
-
-struct _TagTagProxy {
- SourceProxy parent_instance;
- TagTagProxyPrivate * priv;
-};
-
-struct _TagTagProxyClass {
- SourceProxyClass parent_class;
-};
-
-
-static gpointer tag_source_collection_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-static gpointer tag_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-TagSourceCollection* tag_global = NULL;
-static gpointer tag_tag_snapshot_parent_class = NULL;
-static gpointer tag_tag_proxy_parent_class = NULL;
-static ContainerSourceIface * tag_container_source_parent_iface = NULL;
-static ProxyableIface * tag_proxyable_parent_iface = NULL;
-static IndexableIface * tag_indexable_parent_iface = NULL;
-
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-#define TAG_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionPrivate))
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType library_photo_source_collection_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;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-static void tag_source_collection_on_photo_source_reimported (TagSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata);
-static void _tag_source_collection_on_photo_source_reimported_library_photo_source_collection_source_reimported (LibraryPhotoSourceCollection* _sender,
- LibraryPhoto* photo,
- PhotoMetadata* metadata,
- gpointer self);
-guint tag_hash_name_string (const gchar* a);
-static guint _tag_hash_name_string_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean tag_equal_name_strings (const gchar* a,
- const gchar* b);
-static gboolean _tag_equal_name_strings_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-TagSourceCollection* tag_source_collection_new (void);
-TagSourceCollection* tag_source_collection_construct (GType object_type);
-#define TAG_TYPENAME "tag"
-static gint64 tag_source_collection_get_tag_key (DataSource* source);
-static gint64 _tag_source_collection_get_tag_key_get_source_database_key (DataSource* source,
- gpointer self);
-ContainerSourceCollection* container_source_collection_construct (GType object_type,
- const gchar* backlink_name,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-void container_source_collection_attach_collection (ContainerSourceCollection* self,
- SourceCollection* collection);
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-static gboolean tag_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source);
-gint64 data_source_get_instance_id (DataSource* self);
-static GeeCollection* tag_source_collection_real_get_containers_holding_source (ContainerSourceCollection* base,
- DataSource* source);
-GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self,
- MediaSource* source);
-static ContainerSource* tag_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* base,
- SourceBacklink* backlink);
-GType tag_id_get_type (void) G_GNUC_CONST;
-TagID* tag_id_dup (const TagID* self);
-void tag_id_free (TagID* self);
-gint64 source_backlink_get_instance_id (SourceBacklink* self);
-void tag_id_init (TagID *self,
- gint64 id);
-Tag* tag_source_collection_fetch (TagSourceCollection* self,
- TagID* tag_id);
-GeeCollection* container_source_collection_get_holding_tank (ContainerSourceCollection* self);
-void tag_get_tag_id (Tag* self,
- TagID* result);
-gchar* tag_get_path (Tag* self);
-#define TAG_PATH_SEPARATOR_STRING "/"
-GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
-gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path);
-void tag_promote (Tag* self);
-DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self,
- gint64 key);
-gboolean tag_source_collection_exists (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root);
-Tag* tag_source_collection_fetch_by_name (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root);
-GeeCollection* tag_source_collection_get_all_names (TagSourceCollection* self);
-GeeSortedSet* tag_source_collection_fetch_sorted_for_source (TagSourceCollection* self,
- MediaSource* photo);
-GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
-gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name);
-Tag* tag_source_collection_restore_tag_from_holding_tank (TagSourceCollection* self,
- const gchar* name);
-gchar* data_object_get_name (DataObject* self);
-gboolean container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self,
- ContainerSource* source);
-static void tag_source_collection_real_notify_items_added (DataCollection* base,
- GeeIterable* added);
-void data_collection_notify_items_added (DataCollection* self,
- GeeIterable* added);
-static void tag_source_collection_real_notify_items_removed (DataCollection* base,
- GeeIterable* removed);
-Tag* tag_get_hierarchical_parent (Tag* self);
-GeeList* tag_get_hierarchical_children (Tag* self);
-void tag_flatten (Tag* self);
-void data_collection_notify_items_removed (DataCollection* self,
- GeeIterable* removed);
-static void tag_source_collection_real_notify_items_altered (DataCollection* base,
- GeeMap* map);
-gboolean data_source_equals (DataSource* self,
- DataSource* source);
-void data_collection_notify_items_altered (DataCollection* self,
- GeeMap* items);
-static void tag_source_collection_real_notify_container_contents_added (ContainerSourceCollection* base,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinking);
-gint tag_compare_names (Tag* a,
- Tag* b);
-static gint _tag_compare_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked);
-static void tag_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* base,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinking);
-void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinked);
-static void tag_source_collection_finalize (DataCollection * obj);
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-gpointer source_proxy_ref (gpointer instance);
-void source_proxy_unref (gpointer instance);
-GParamSpec* param_spec_source_proxy (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_proxy (GValue* value,
- gpointer v_object);
-void value_take_source_proxy (GValue* value,
- gpointer v_object);
-gpointer value_get_source_proxy (const GValue* value);
-GType source_proxy_get_type (void) G_GNUC_CONST;
-GType proxyable_get_type (void) G_GNUC_CONST;
-GType indexable_get_type (void) G_GNUC_CONST;
-gpointer tag_row_ref (gpointer instance);
-void tag_row_unref (gpointer instance);
-GParamSpec* param_spec_tag_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_tag_row (GValue* value,
- gpointer v_object);
-void value_take_tag_row (GValue* value,
- gpointer v_object);
-gpointer value_get_tag_row (const GValue* value);
-GType tag_row_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-#define TAG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG, TagPrivate))
-GType data_view_get_type (void) G_GNUC_CONST;
-static void tag_on_media_views_contents_altered (Tag* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void _tag_on_media_views_contents_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static void tag_on_sources_destroyed (Tag* self,
- GeeCollection* sources);
-static void _tag_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
- GeeCollection* destroyed,
- gpointer self);
-#define TAG_TAG_LIST_SEPARATOR_STRING ", "
-static Tag* tag_new (TagRow* row,
- gint64 object_id);
-static Tag* tag_construct (GType object_type,
- TagRow* row,
- gint64 object_id);
-DataSource* data_source_construct (GType object_type,
- gint64 object_id);
-gchar* tag_prep_tag_name (const gchar* name);
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-MediaSource* media_collection_registry_fetch_media (MediaCollectionRegistry* self,
- const gchar* source_id);
-ThumbnailView* thumbnail_view_new (ThumbnailSource* source);
-ThumbnailView* thumbnail_view_construct (GType object_type,
- ThumbnailSource* source);
-ViewCollection* view_collection_new (const gchar* name);
-ViewCollection* view_collection_construct (GType object_type,
- const gchar* name);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked);
-static void tag_update_indexable_keywords (Tag* self);
-void tag_init (ProgressMonitor monitor,
- void* monitor_target);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType tag_table_get_type (void) G_GNUC_CONST;
-TagTable* tag_table_get_instance (void);
-GQuark database_error_quark (void);
-GeeList* tag_table_get_all_rows (TagTable* self,
- GError** error);
-void app_window_database_error (GError* err);
-void tag_table_remove (TagTable* self,
- TagID* tag_id,
- GError** error);
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-gboolean container_source_has_links (ContainerSource* self);
-void data_source_rehydrate_backlinks (DataSource* self,
- SourceCollection* unlinked_from,
- const gchar* dehydrated);
-GeeCollection* tag_get_sources (Tag* self);
-gchar* tag_get_user_visible_name (Tag* self);
-void tag_attach_many (Tag* self,
- GeeCollection* sources);
-GeeMultiMap* tag_detach_many (Tag* self,
- GeeCollection* sources);
-gboolean data_source_destroy_orphan (DataSource* self,
- gboolean delete_backing);
-gint tag_get_sources_count (Tag* self);
-void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self,
- GeeCollection* unlinked);
-void tag_terminate (void);
-gint string_precollated_compare (const gchar* astr,
- const gchar* akey,
- const gchar* bstr,
- const gchar* bkey);
-gchar* tag_get_name_collation_key (Tag* self);
-gint tag_compare_user_visible_names (Tag* a,
- Tag* b);
-guint string_collated_hash (void* ptr);
-gboolean string_collated_equals (void* a,
- void* b);
-Tag* tag_for_path (const gchar* name);
-TagRow* tag_table_add (TagTable* self,
- const gchar* name,
- GError** error);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-GeeCollection* tag_get_terminal_tags (GeeCollection* tags);
-GeeList* tag_make_user_visible_tag_list (GeeCollection* tags);
-static gint _tag_compare_user_visible_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-gchar* tag_make_tag_markup_string (GeeList* tags,
- gint highlight_index);
-gchar* guarded_markup_escape_text (const gchar* plain);
-GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
-gchar* prepare_input_text (const gchar* text,
- PrepareInputTextOptions options,
- gint dest_length);
-#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024
-gchar** tag_prep_tag_names (gchar** names,
- int names_length1,
- int* result_length1);
-static void _vala_array_add127 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void tag_set_raw_flat_name (Tag* self,
- const gchar* name);
-void tag_table_rename (TagTable* self,
- TagID* tag_id,
- const gchar* new_name,
- GError** error);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-Alteration* alteration_new_from_list (const gchar* list);
-Alteration* alteration_construct_from_list (GType object_type,
- const gchar* list);
-static void tag_set_raw_path (Tag* self,
- const gchar* path,
- gboolean suppress_notify);
-static gchar* tag_real_get_typename (DataSource* base);
-static gint64 tag_real_get_instance_id (DataSource* base);
-static gchar* tag_real_get_name (DataObject* base);
-gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path);
-gchar* tag_get_searchable_name (Tag* self);
-gchar* string_remove_diacritics (const gchar* istring);
-gint tag_get_attachment_count (Tag* self,
- MediaSource* source);
-gboolean tag_contains (Tag* self,
- MediaSource* source);
-static gchar* tag_get_next_untitled_tag_name (const gchar* _prefix);
-Tag* tag_create_new_child (Tag* self);
-Tag* tag_create_new_root (void);
-static gchar* tag_real_to_string (DataObject* base);
-gint data_collection_get_count (DataCollection* self);
-static gboolean tag_real_equals (DataSource* base,
- DataSource* source);
-static SourceSnapshot* tag_real_save_snapshot (DataSource* base);
-static TagTagSnapshot* tag_tag_snapshot_new (Tag* tag);
-static TagTagSnapshot* tag_tag_snapshot_construct (GType object_type,
- Tag* tag);
-static GType tag_tag_snapshot_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SourceProxy* tag_real_get_proxy (Proxyable* base);
-static TagTagProxy* tag_tag_proxy_new (Tag* tag);
-static TagTagProxy* tag_tag_proxy_construct (GType object_type,
- Tag* tag);
-static GType tag_tag_proxy_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-Tag* tag_reconstitute (gint64 object_id,
- TagRow* row);
-void tag_table_create_from_row (TagTable* self,
- TagRow* row,
- TagID* result,
- GError** error);
-gchar* data_object_to_string (DataObject* self);
-static gboolean tag_real_has_links (ContainerSource* base);
-gboolean source_collection_has_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-SourceBacklink* container_source_get_backlink (ContainerSource* self);
-static SourceBacklink* tag_real_get_backlink (ContainerSource* base);
-SourceBacklink* source_backlink_new_from_source (DataSource* source);
-SourceBacklink* source_backlink_construct_from_source (GType object_type,
- DataSource* source);
-static void tag_real_break_link (ContainerSource* base,
- DataSource* source);
-GeeList* tag_detach (Tag* self,
- MediaSource* source);
-static void tag_real_break_link_many (ContainerSource* base,
- GeeCollection* sources);
-static void tag_real_establish_link (ContainerSource* base,
- DataSource* source);
-void tag_attach (Tag* self,
- MediaSource* source);
-static void tag_real_establish_link_many (ContainerSource* base,
- GeeCollection* sources);
-gchar* indexable_prepare_indexable_string (const gchar* str);
-static const gchar* tag_real_get_indexable_keywords (Indexable* base);
-gboolean view_collection_has_view_for_source (ViewCollection* self,
- DataSource* source);
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-void data_collection_remove_marked (DataCollection* self,
- Marker* m);
-Marker* data_collection_mark (DataCollection* self,
- DataObject* object);
-Marker* data_collection_start_marking (DataCollection* self);
-void marker_mark (Marker* self,
- DataObject* object);
-gboolean tag_rename (Tag* self,
- const gchar* name);
-GeeCollection* view_collection_get_sources (ViewCollection* self);
-void tag_mirror_sources (Tag* self,
- ViewCollection* view,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target);
-void view_collection_mirror (ViewCollection* self,
- ViewCollection* to_mirror,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target,
- CreateViewPredicate should_mirror,
- void* should_mirror_target);
-DataSource* data_view_get_source (DataView* self);
-gchar* data_source_get_source_id (DataSource* self);
-void tag_table_set_tagged_sources (TagTable* self,
- TagID* tag_id,
- GeeCollection* source_ids,
- GError** error);
-static void tag_real_destroy (DataSource* base);
-void data_collection_clear (DataCollection* self);
-void data_source_destroy (DataSource* self);
-#define TAG_TAG_SNAPSHOT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshotPrivate))
-static void tag_tag_snapshot_on_source_destroyed (TagTagSnapshot* self,
- DataSource* source);
-static void _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-SourceSnapshot* source_snapshot_construct (GType object_type);
-static TagRow* tag_tag_snapshot_get_row (TagTagSnapshot* self);
-static void tag_tag_snapshot_real_notify_broken (SourceSnapshot* base);
-TagRow* tag_row_new (void);
-TagRow* tag_row_construct (GType object_type);
-void source_snapshot_notify_broken (SourceSnapshot* self);
-static void tag_tag_snapshot_finalize (SourceSnapshot * obj);
-SourceProxy* source_proxy_construct (GType object_type,
- DataSource* source);
-static DataSource* tag_tag_proxy_real_reconstitute (SourceProxy* base,
- gint64 object_id,
- SourceSnapshot* snapshot);
-static void tag_finalize (GObject * obj);
-static void _vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func);
-static void _vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func);
-
-
-static void
-_tag_source_collection_on_photo_source_reimported_library_photo_source_collection_source_reimported (LibraryPhotoSourceCollection* _sender,
- LibraryPhoto* photo,
- PhotoMetadata* metadata,
- gpointer self)
-{
-#line 26 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_source_collection_on_photo_source_reimported ((TagSourceCollection*) self, photo, metadata);
-#line 1229 "Tag.c"
-}
-
-
-static guint
-_tag_hash_name_string_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = tag_hash_name_string ((const gchar*) v);
-#line 8 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1241 "Tag.c"
-}
-
-
-static gboolean
-_tag_equal_name_strings_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = tag_equal_name_strings ((const gchar*) a, (const gchar*) b);
-#line 8 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1254 "Tag.c"
-}
-
-
-static gint64
-_tag_source_collection_get_tag_key_get_source_database_key (DataSource* source,
- gpointer self)
-{
- gint64 result;
- result = tag_source_collection_get_tag_key (source);
-#line 16 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1266 "Tag.c"
-}
-
-
-TagSourceCollection*
-tag_source_collection_construct (GType object_type)
-{
- TagSourceCollection* self = NULL;
- LibraryPhotoSourceCollection* _tmp0_;
- VideoSourceCollection* _tmp1_;
- LibraryPhotoSourceCollection* _tmp2_;
-#line 16 "/home/jens/Source/shotwell/src/Tag.vala"
- self = (TagSourceCollection*) container_source_collection_construct (object_type, TAG_TYPENAME, "TagSourceCollection", _tag_source_collection_get_tag_key_get_source_database_key, NULL);
-#line 18 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = library_photo_global;
-#line 18 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection));
-#line 19 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = video_global;
-#line 19 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_COLLECTION, SourceCollection));
-#line 22 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = library_photo_global;
-#line 22 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_connect (_tmp2_, "source-reimported", (GCallback) _tag_source_collection_on_photo_source_reimported_library_photo_source_collection_source_reimported, self);
-#line 15 "/home/jens/Source/shotwell/src/Tag.vala"
- return self;
-#line 1293 "Tag.c"
-}
-
-
-TagSourceCollection*
-tag_source_collection_new (void)
-{
-#line 15 "/home/jens/Source/shotwell/src/Tag.vala"
- return tag_source_collection_construct (TYPE_TAG_SOURCE_COLLECTION);
-#line 1302 "Tag.c"
-}
-
-
-static gboolean
-tag_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source)
-{
- TagSourceCollection * self;
- gboolean result = FALSE;
-#line 29 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 29 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 30 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TAG);
-#line 30 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1320 "Tag.c"
-}
-
-
-static gint64
-tag_source_collection_get_tag_key (DataSource* source)
-{
- gint64 result = 0LL;
-#line 33 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL);
-#line 34 "/home/jens/Source/shotwell/src/Tag.vala"
- result = data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag), TYPE_DATA_SOURCE, DataSource));
-#line 34 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1334 "Tag.c"
-}
-
-
-static GeeCollection*
-tag_source_collection_real_get_containers_holding_source (ContainerSourceCollection* base,
- DataSource* source)
-{
- TagSourceCollection * self;
- GeeCollection* result = NULL;
- GeeList* _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 37 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 38 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_source_collection_fetch_for_source (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 38 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 38 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1355 "Tag.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 48 "/home/jens/Source/shotwell/src/Tag.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1364 "Tag.c"
-}
-
-
-static ContainerSource*
-tag_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* base,
- SourceBacklink* backlink)
-{
- TagSourceCollection * self;
- ContainerSource* result = NULL;
- TagID tag_id = {0};
- gint64 _tmp0_;
- gint64 _tmp1_;
- Tag* _result_ = NULL;
- Tag* tag = NULL;
- TagID _tmp2_;
- Tag* _tmp3_;
- Tag* _tmp4_;
- Tag* _tmp23_;
-#line 41 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 41 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), NULL);
-#line 42 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = source_backlink_get_instance_id (backlink);
-#line 42 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_id_init (&tag_id, _tmp1_);
-#line 43 "/home/jens/Source/shotwell/src/Tag.vala"
- _result_ = NULL;
-#line 46 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_id;
-#line 46 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = tag_source_collection_fetch (self, &_tmp2_);
-#line 46 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp3_;
-#line 47 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = tag;
-#line 47 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp4_ != NULL) {
-#line 1405 "Tag.c"
- Tag* _tmp5_;
- Tag* _tmp6_;
-#line 48 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = tag;
-#line 48 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
-#line 48 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_result_);
-#line 48 "/home/jens/Source/shotwell/src/Tag.vala"
- _result_ = _tmp6_;
-#line 1416 "Tag.c"
- } else {
- {
- GeeIterator* _container_it = NULL;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
- GeeIterator* _tmp9_;
- GeeIterator* _tmp10_;
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection));
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _tmp7_;
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = _tmp9_;
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp8_);
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _container_it = _tmp10_;
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 1438 "Tag.c"
- GeeIterator* _tmp11_;
- ContainerSource* container = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- ContainerSource* _tmp14_;
- Tag* _tmp15_;
- Tag* _tmp16_;
- TagID _tmp17_ = {0};
- gint64 _tmp18_;
- TagID _tmp19_;
- gint64 _tmp20_;
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = _container_it;
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 1456 "Tag.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = _container_it;
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- container = (ContainerSource*) _tmp13_;
-#line 52 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = container;
-#line 52 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_TAG, Tag));
-#line 52 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 52 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp15_;
-#line 53 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = tag;
-#line 53 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_get_tag_id (_tmp16_, &_tmp17_);
-#line 53 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = _tmp17_.id;
-#line 53 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = tag_id;
-#line 53 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = _tmp19_.id;
-#line 53 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp18_ == _tmp20_) {
-#line 1484 "Tag.c"
- Tag* _tmp21_;
- Tag* _tmp22_;
-#line 54 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = tag;
-#line 54 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = _g_object_ref0 (_tmp21_);
-#line 54 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_result_);
-#line 54 "/home/jens/Source/shotwell/src/Tag.vala"
- _result_ = _tmp22_;
-#line 55 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (container);
-#line 55 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 1499 "Tag.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (container);
-#line 1503 "Tag.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_container_it);
-#line 1507 "Tag.c"
- }
- }
-#line 63 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = _result_;
-#line 63 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp23_ != NULL) {
-#line 1514 "Tag.c"
- gboolean _tmp24_ = FALSE;
- Tag* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gboolean _tmp28_;
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = _result_;
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = tag_get_path (_tmp25_);
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = _tmp26_;
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = g_str_has_prefix (_tmp27_, TAG_PATH_SEPARATOR_STRING);
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp27_);
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp28_) {
-#line 1532 "Tag.c"
- Tag* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- GeeList* _tmp32_;
- GeeList* _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = _result_;
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = tag_get_path (_tmp29_);
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = _tmp30_;
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp31_);
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp33_ = _tmp32_;
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp35_ = _tmp34_;
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = _tmp35_ > 0;
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp33_);
-#line 65 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp31_);
-#line 1560 "Tag.c"
- } else {
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = FALSE;
-#line 1564 "Tag.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp24_) {
-#line 1568 "Tag.c"
- gchar* top_level_with_prefix_path = NULL;
- Tag* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- GeeList* _tmp39_;
- GeeList* _tmp40_;
- gpointer _tmp41_;
- gchar* _tmp42_;
- gchar* top_level_no_prefix_path = NULL;
- const gchar* _tmp43_;
- gchar* _tmp44_;
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp36_ = _result_;
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp37_ = tag_get_path (_tmp36_);
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp38_ = _tmp37_;
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp39_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp38_);
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp40_ = _tmp39_;
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp41_ = gee_list_get (_tmp40_, 0);
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp42_ = (gchar*) _tmp41_;
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp40_);
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp38_);
-#line 66 "/home/jens/Source/shotwell/src/Tag.vala"
- top_level_with_prefix_path = _tmp42_;
-#line 68 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp43_ = top_level_with_prefix_path;
-#line 68 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp44_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp43_);
-#line 68 "/home/jens/Source/shotwell/src/Tag.vala"
- top_level_no_prefix_path = _tmp44_;
-#line 1606 "Tag.c"
- {
- GeeIterator* _container_it = NULL;
- GeeCollection* _tmp45_;
- GeeCollection* _tmp46_;
- GeeIterator* _tmp47_;
- GeeIterator* _tmp48_;
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp45_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection));
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp46_ = _tmp45_;
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp47_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp48_ = _tmp47_;
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp46_);
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _container_it = _tmp48_;
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 1627 "Tag.c"
- GeeIterator* _tmp49_;
- ContainerSource* container = NULL;
- GeeIterator* _tmp50_;
- gpointer _tmp51_;
- Tag* parent_candidate = NULL;
- ContainerSource* _tmp52_;
- Tag* _tmp53_;
- Tag* _tmp54_;
- gchar* _tmp55_;
- gchar* _tmp56_;
- const gchar* _tmp57_;
- gboolean _tmp58_;
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp49_ = _container_it;
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp49_)) {
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 1646 "Tag.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp50_ = _container_it;
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp51_ = gee_iterator_get (_tmp50_);
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- container = (ContainerSource*) _tmp51_;
-#line 72 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp52_ = container;
-#line 72 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp53_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_TAG, Tag));
-#line 72 "/home/jens/Source/shotwell/src/Tag.vala"
- parent_candidate = _tmp53_;
-#line 73 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp54_ = parent_candidate;
-#line 73 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp55_ = tag_get_path (_tmp54_);
-#line 73 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp56_ = _tmp55_;
-#line 73 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp57_ = top_level_no_prefix_path;
-#line 73 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp58_ = g_strcmp0 (_tmp56_, _tmp57_) == 0;
-#line 73 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp56_);
-#line 73 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp58_) {
-#line 1674 "Tag.c"
- Tag* _tmp59_;
-#line 74 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp59_ = parent_candidate;
-#line 74 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_promote (_tmp59_);
-#line 1680 "Tag.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (parent_candidate);
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (container);
-#line 1686 "Tag.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_container_it);
-#line 1690 "Tag.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (top_level_no_prefix_path);
-#line 64 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (top_level_with_prefix_path);
-#line 1696 "Tag.c"
- }
- }
-#line 79 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_result_, TYPE_CONTAINER_SOURCE, ContainerSource);
-#line 79 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 79 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1705 "Tag.c"
-}
-
-
-Tag*
-tag_source_collection_fetch (TagSourceCollection* self,
- TagID* tag_id)
-{
- Tag* result = NULL;
- TagID _tmp0_;
- gint64 _tmp1_;
- DataSource* _tmp2_;
-#line 82 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL);
-#line 82 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (tag_id != NULL, NULL);
-#line 83 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = *tag_id;
-#line 83 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_.id;
-#line 83 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_);
-#line 83 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_TAG, Tag);
-#line 83 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1731 "Tag.c"
-}
-
-
-gboolean
-tag_source_collection_exists (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root)
-{
- gboolean result = FALSE;
- Tag* _tmp0_;
- Tag* _tmp1_;
- gboolean _tmp2_;
-#line 86 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), FALSE);
-#line 86 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (name != NULL, FALSE);
-#line 87 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_source_collection_fetch_by_name (self, name, treat_htags_as_root);
-#line 87 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _tmp1_ != NULL;
-#line 87 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp1_);
-#line 87 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp2_;
-#line 87 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1760 "Tag.c"
-}
-
-
-GeeCollection*
-tag_source_collection_get_all_names (TagSourceCollection* self)
-{
- GeeCollection* result = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
-#line 90 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL);
-#line 91 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->name_map;
-#line 91 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 91 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _tmp1_;
-#line 91 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 91 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1783 "Tag.c"
-}
-
-
-GeeList*
-tag_source_collection_fetch_for_source (TagSourceCollection* self,
- MediaSource* source)
-{
- GeeList* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL);
-#line 98 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 99 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->source_map;
-#line 99 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source);
-#line 99 "/home/jens/Source/shotwell/src/Tag.vala"
- result = (GeeList*) _tmp1_;
-#line 99 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1806 "Tag.c"
-}
-
-
-GeeSortedSet*
-tag_source_collection_fetch_sorted_for_source (TagSourceCollection* self,
- MediaSource* photo)
-{
- GeeSortedSet* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 106 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL);
-#line 106 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (photo), NULL);
-#line 107 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->sorted_source_map;
-#line 107 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
-#line 107 "/home/jens/Source/shotwell/src/Tag.vala"
- result = (GeeSortedSet*) _tmp1_;
-#line 107 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1829 "Tag.c"
-}
-
-
-Tag*
-tag_source_collection_fetch_by_name (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root)
-{
- Tag* result = NULL;
- GeeHashMap* _tmp17_;
- gpointer _tmp18_;
-#line 112 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL);
-#line 112 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 113 "/home/jens/Source/shotwell/src/Tag.vala"
- if (treat_htags_as_root) {
-#line 114 "/home/jens/Source/shotwell/src/Tag.vala"
- if (g_str_has_prefix (name, TAG_PATH_SEPARATOR_STRING)) {
-#line 1849 "Tag.c"
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gboolean _tmp4_;
-#line 115 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = hierarchical_tag_utilities_enumerate_path_components (name);
-#line 115 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 115 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 115 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 115 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _tmp3_ == 1;
-#line 115 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp1_);
-#line 115 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp4_) {
-#line 1869 "Tag.c"
- Tag* tag = NULL;
- GeeHashMap* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gpointer _tmp8_;
- Tag* _tmp9_;
- Tag* _tmp10_;
-#line 116 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = self->priv->name_map;
-#line 116 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = hierarchical_tag_utilities_hierarchical_to_flat (name);
-#line 116 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _tmp6_;
-#line 116 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp7_);
-#line 116 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = (Tag*) _tmp8_;
-#line 116 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp7_);
-#line 116 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp9_;
-#line 117 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = tag;
-#line 117 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp10_ != NULL) {
-#line 118 "/home/jens/Source/shotwell/src/Tag.vala"
- result = tag;
-#line 118 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1899 "Tag.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 1903 "Tag.c"
- }
- } else {
- Tag* tag = NULL;
- GeeHashMap* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gpointer _tmp14_;
- Tag* _tmp15_;
- Tag* _tmp16_;
-#line 121 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = self->priv->name_map;
-#line 121 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = hierarchical_tag_utilities_flat_to_hierarchical (name);
-#line 121 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = _tmp12_;
-#line 121 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_);
-#line 121 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = (Tag*) _tmp14_;
-#line 121 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp13_);
-#line 121 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp15_;
-#line 122 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = tag;
-#line 122 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp16_ != NULL) {
-#line 123 "/home/jens/Source/shotwell/src/Tag.vala"
- result = tag;
-#line 123 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1935 "Tag.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 1939 "Tag.c"
- }
- }
-#line 127 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = self->priv->name_map;
-#line 127 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name);
-#line 127 "/home/jens/Source/shotwell/src/Tag.vala"
- result = (Tag*) _tmp18_;
-#line 127 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 1950 "Tag.c"
-}
-
-
-Tag*
-tag_source_collection_restore_tag_from_holding_tank (TagSourceCollection* self,
- const gchar* name)
-{
- Tag* result = NULL;
- Tag* found = NULL;
- Tag* _tmp15_;
-#line 130 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL);
-#line 130 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 131 "/home/jens/Source/shotwell/src/Tag.vala"
- found = NULL;
-#line 1967 "Tag.c"
- {
- GeeIterator* _container_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection));
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp1_);
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _container_it = _tmp3_;
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 1988 "Tag.c"
- GeeIterator* _tmp4_;
- ContainerSource* container = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- Tag* tag = NULL;
- ContainerSource* _tmp7_;
- Tag* _tmp8_;
- Tag* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_;
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _container_it;
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2006 "Tag.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _container_it;
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- container = (ContainerSource*) _tmp6_;
-#line 133 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = container;
-#line 133 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_TAG, Tag));
-#line 133 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp8_;
-#line 134 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = tag;
-#line 134 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 134 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = _tmp10_;
-#line 134 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = g_strcmp0 (_tmp11_, name) == 0;
-#line 134 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp11_);
-#line 134 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp12_) {
-#line 2032 "Tag.c"
- Tag* _tmp13_;
- Tag* _tmp14_;
-#line 135 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = tag;
-#line 135 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 135 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (found);
-#line 135 "/home/jens/Source/shotwell/src/Tag.vala"
- found = _tmp14_;
-#line 137 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 137 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (container);
-#line 137 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2049 "Tag.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (container);
-#line 2055 "Tag.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_container_it);
-#line 2059 "Tag.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = found;
-#line 141 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp15_ != NULL) {
-#line 2065 "Tag.c"
- gboolean relinked = FALSE;
- Tag* _tmp16_;
- gboolean _tmp17_;
-#line 142 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = found;
-#line 142 "/home/jens/Source/shotwell/src/Tag.vala"
- relinked = container_source_collection_relink_from_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_CONTAINER_SOURCE, ContainerSource));
-#line 143 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = relinked;
-#line 143 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp17_, "relinked");
-#line 2077 "Tag.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/Tag.vala"
- result = found;
-#line 146 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 2083 "Tag.c"
-}
-
-
-static void
-tag_source_collection_real_notify_items_added (DataCollection* base,
- GeeIterable* added)
-{
- TagSourceCollection * self;
-#line 149 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 149 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 2096 "Tag.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- _object_it = _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 2106 "Tag.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Tag* tag = NULL;
- DataObject* _tmp4_;
- Tag* _tmp5_;
- GeeHashMap* _tmp6_;
- Tag* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GeeHashMap* _tmp10_;
- Tag* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- Tag* _tmp14_;
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _object_it;
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2129 "Tag.c"
- }
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _object_it;
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- object = (DataObject*) _tmp3_;
-#line 151 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = object;
-#line 151 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TAG, Tag));
-#line 151 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp5_;
-#line 153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = self->priv->name_map;
-#line 153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = tag;
-#line 153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject));
-#line 153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _tmp8_;
-#line 153 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_), "!name_map.has_key(tag.get_name())");
-#line 153 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp9_);
-#line 154 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = self->priv->name_map;
-#line 154 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tag;
-#line 154 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject));
-#line 154 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = _tmp12_;
-#line 154 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = tag;
-#line 154 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp14_);
-#line 154 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp13_);
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (object);
-#line 2173 "Tag.c"
- }
-#line 150 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_object_it);
-#line 2177 "Tag.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/Tag.vala"
- DATA_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_items_added (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added);
-#line 2181 "Tag.c"
-}
-
-
-static void
-tag_source_collection_real_notify_items_removed (DataCollection* base,
- GeeIterable* removed)
-{
- TagSourceCollection * self;
-#line 160 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 160 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 2194 "Tag.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_iterable_iterator (removed);
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _object_it = _tmp0_;
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 2204 "Tag.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Tag* tag = NULL;
- DataObject* _tmp4_;
- Tag* _tmp5_;
- gboolean unset = FALSE;
- GeeHashMap* _tmp6_;
- Tag* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gboolean _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_;
- Tag* parent = NULL;
- Tag* _tmp13_;
- Tag* _tmp14_;
- gboolean _tmp15_ = FALSE;
- Tag* _tmp16_;
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _object_it;
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2231 "Tag.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _object_it;
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- object = (DataObject*) _tmp3_;
-#line 162 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = object;
-#line 162 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TAG, Tag));
-#line 162 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp5_;
-#line 164 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = self->priv->name_map;
-#line 164 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = tag;
-#line 164 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject));
-#line 164 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _tmp8_;
-#line 164 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL);
-#line 164 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = _tmp10_;
-#line 164 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp9_);
-#line 164 "/home/jens/Source/shotwell/src/Tag.vala"
- unset = _tmp11_;
-#line 165 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = unset;
-#line 165 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp12_, "unset");
-#line 169 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = tag;
-#line 169 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = tag_get_hierarchical_parent (_tmp13_);
-#line 169 "/home/jens/Source/shotwell/src/Tag.vala"
- parent = _tmp14_;
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = parent;
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp16_ != NULL) {
-#line 2275 "Tag.c"
- Tag* _tmp17_;
- Tag* _tmp18_;
- Tag* _tmp19_;
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = parent;
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = tag_get_hierarchical_parent (_tmp17_);
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = _tmp18_;
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _tmp19_ == NULL;
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp19_);
-#line 2289 "Tag.c"
- } else {
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = FALSE;
-#line 2293 "Tag.c"
- }
-#line 170 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp15_) {
-#line 2297 "Tag.c"
- Tag* _tmp20_;
- GeeList* _tmp21_;
- GeeList* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gboolean _tmp25_;
-#line 171 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = parent;
-#line 171 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = tag_get_hierarchical_children (_tmp20_);
-#line 171 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = _tmp21_;
-#line 171 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 171 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = _tmp23_;
-#line 171 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = _tmp24_ == 0;
-#line 171 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp22_);
-#line 171 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp25_) {
-#line 2320 "Tag.c"
- Tag* _tmp26_;
-#line 172 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = parent;
-#line 172 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_flatten (_tmp26_);
-#line 2326 "Tag.c"
- }
- }
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (parent);
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (object);
-#line 2335 "Tag.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_object_it);
-#line 2339 "Tag.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/Tag.vala"
- DATA_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_items_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), TYPE_DATA_COLLECTION, DataCollection), removed);
-#line 2343 "Tag.c"
-}
-
-
-static void
-tag_source_collection_real_notify_items_altered (DataCollection* base,
- GeeMap* map)
-{
- TagSourceCollection * self;
-#line 179 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 179 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 2356 "Tag.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_map_get_keys (map);
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _tmp1_;
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _tmp3_;
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp2_);
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _object_it = _tmp4_;
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 2380 "Tag.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Tag* tag = NULL;
- DataObject* _tmp8_;
- Tag* _tmp9_;
- gchar* old_name = NULL;
- GeeMapIterator* iter = NULL;
- GeeHashMap* _tmp10_;
- GeeMapIterator* _tmp11_;
- const gchar* _tmp20_;
- Tag* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- const gchar* _tmp24_;
- gboolean _tmp25_;
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _object_it;
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2404 "Tag.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _object_it;
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- object = (DataObject*) _tmp7_;
-#line 181 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = object;
-#line 181 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_TAG, Tag));
-#line 181 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp9_;
-#line 183 "/home/jens/Source/shotwell/src/Tag.vala"
- old_name = NULL;
-#line 186 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = self->priv->name_map;
-#line 186 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = gee_abstract_map_map_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 186 "/home/jens/Source/shotwell/src/Tag.vala"
- iter = _tmp11_;
-#line 187 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 2428 "Tag.c"
- GeeMapIterator* _tmp12_;
- GeeMapIterator* _tmp13_;
- gpointer _tmp14_;
- Tag* _tmp15_;
- Tag* _tmp16_;
- gboolean _tmp17_;
- GeeMapIterator* _tmp18_;
- gpointer _tmp19_;
-#line 187 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = iter;
-#line 187 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_map_iterator_next (_tmp12_)) {
-#line 187 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2443 "Tag.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = iter;
-#line 188 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = gee_map_iterator_get_value (_tmp13_);
-#line 188 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = (Tag*) _tmp14_;
-#line 188 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = tag;
-#line 188 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_SOURCE, DataSource));
-#line 188 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp15_);
-#line 188 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp17_) {
-#line 189 "/home/jens/Source/shotwell/src/Tag.vala"
- continue;
-#line 2461 "Tag.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = iter;
-#line 191 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = gee_map_iterator_get_key (_tmp18_);
-#line 191 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (old_name);
-#line 191 "/home/jens/Source/shotwell/src/Tag.vala"
- old_name = (gchar*) _tmp19_;
-#line 193 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2473 "Tag.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = old_name;
-#line 196 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp20_ != NULL, "old_name != null");
-#line 198 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = tag;
-#line 198 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject));
-#line 198 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = _tmp22_;
-#line 198 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = old_name;
-#line 198 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = g_strcmp0 (_tmp23_, _tmp24_) != 0;
-#line 198 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp23_);
-#line 198 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp25_) {
-#line 2493 "Tag.c"
- GeeHashMap* _tmp26_;
- const gchar* _tmp27_;
- GeeHashMap* _tmp28_;
- Tag* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- Tag* _tmp32_;
-#line 199 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = self->priv->name_map;
-#line 199 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = old_name;
-#line 199 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp27_, NULL);
-#line 200 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = self->priv->name_map;
-#line 200 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = tag;
-#line 200 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_OBJECT, DataObject));
-#line 200 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = _tmp30_;
-#line 200 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = tag;
-#line 200 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp31_, _tmp32_);
-#line 200 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp31_);
-#line 2521 "Tag.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (iter);
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (old_name);
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (object);
-#line 2531 "Tag.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_object_it);
-#line 2535 "Tag.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/Tag.vala"
- DATA_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_items_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), TYPE_DATA_COLLECTION, DataCollection), map);
-#line 2539 "Tag.c"
-}
-
-
-static gint
-_tag_compare_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = tag_compare_names ((Tag*) a, (Tag*) b);
-#line 224 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 2552 "Tag.c"
-}
-
-
-static void
-tag_source_collection_real_notify_container_contents_added (ContainerSourceCollection* base,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinking)
-{
- TagSourceCollection * self;
- Tag* tag = NULL;
- Tag* _tmp0_;
- GeeCollection* sources = NULL;
- GeeCollection* _tmp1_;
-#line 207 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 207 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 207 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_COLLECTION (added));
-#line 209 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_TAG, Tag));
-#line 209 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp0_;
-#line 210 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection));
-#line 210 "/home/jens/Source/shotwell/src/Tag.vala"
- sources = _tmp1_;
-#line 2581 "Tag.c"
- {
- GeeIterator* _source_it = NULL;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = sources;
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _source_it = _tmp3_;
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 2594 "Tag.c"
- GeeIterator* _tmp4_;
- MediaSource* source = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- GeeList* tags = NULL;
- GeeHashMap* _tmp7_;
- MediaSource* _tmp8_;
- gpointer _tmp9_;
- GeeList* _tmp10_;
- gboolean is_added = FALSE;
- GeeList* _tmp15_;
- Tag* _tmp16_;
- gboolean _tmp17_;
- GeeSortedSet* sorted_tags = NULL;
- GeeHashMap* _tmp18_;
- MediaSource* _tmp19_;
- gpointer _tmp20_;
- GeeSortedSet* _tmp21_;
- GeeSortedSet* _tmp26_;
- Tag* _tmp27_;
- gboolean _tmp28_;
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _source_it;
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2622 "Tag.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _source_it;
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- source = (MediaSource*) _tmp6_;
-#line 213 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = self->priv->source_map;
-#line 213 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = source;
-#line 213 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_);
-#line 213 "/home/jens/Source/shotwell/src/Tag.vala"
- tags = (GeeList*) _tmp9_;
-#line 214 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = tags;
-#line 214 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp10_ == NULL) {
-#line 2642 "Tag.c"
- GeeArrayList* _tmp11_;
- GeeHashMap* _tmp12_;
- MediaSource* _tmp13_;
- GeeList* _tmp14_;
-#line 215 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 215 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tags);
-#line 215 "/home/jens/Source/shotwell/src/Tag.vala"
- tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_LIST, GeeList);
-#line 216 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = self->priv->source_map;
-#line 216 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = source;
-#line 216 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = tags;
-#line 216 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp14_);
-#line 2661 "Tag.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = tags;
-#line 219 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = tag;
-#line 219 "/home/jens/Source/shotwell/src/Tag.vala"
- is_added = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), _tmp16_);
-#line 220 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = is_added;
-#line 220 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp17_, "is_added");
-#line 222 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = self->priv->sorted_source_map;
-#line 222 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = source;
-#line 222 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp19_);
-#line 222 "/home/jens/Source/shotwell/src/Tag.vala"
- sorted_tags = (GeeSortedSet*) _tmp20_;
-#line 223 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = sorted_tags;
-#line 223 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp21_ == NULL) {
-#line 2685 "Tag.c"
- GeeTreeSet* _tmp22_;
- GeeHashMap* _tmp23_;
- MediaSource* _tmp24_;
- GeeSortedSet* _tmp25_;
-#line 224 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = gee_tree_set_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tag_compare_names_gcompare_data_func, NULL, NULL);
-#line 224 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (sorted_tags);
-#line 224 "/home/jens/Source/shotwell/src/Tag.vala"
- sorted_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 225 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = self->priv->sorted_source_map;
-#line 225 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = source;
-#line 225 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = sorted_tags;
-#line 225 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp24_, _tmp25_);
-#line 2704 "Tag.c"
- }
-#line 228 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = sorted_tags;
-#line 228 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = tag;
-#line 228 "/home/jens/Source/shotwell/src/Tag.vala"
- is_added = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_);
-#line 229 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = is_added;
-#line 229 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp28_, "is_added");
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (sorted_tags);
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tags);
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source);
-#line 2722 "Tag.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_source_it);
-#line 2726 "Tag.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/Tag.vala"
- CONTAINER_SOURCE_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), container, added, relinking);
-#line 207 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (sources);
-#line 207 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 2734 "Tag.c"
-}
-
-
-static void
-tag_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* base,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinking)
-{
- TagSourceCollection * self;
- Tag* tag = NULL;
- Tag* _tmp0_;
- GeeCollection* sources = NULL;
- GeeCollection* _tmp1_;
-#line 235 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 235 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 235 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_COLLECTION (removed));
-#line 237 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_TAG, Tag));
-#line 237 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp0_;
-#line 238 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection));
-#line 238 "/home/jens/Source/shotwell/src/Tag.vala"
- sources = _tmp1_;
-#line 2763 "Tag.c"
- {
- GeeIterator* _source_it = NULL;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = sources;
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _source_it = _tmp3_;
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 2776 "Tag.c"
- GeeIterator* _tmp4_;
- MediaSource* source = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- GeeList* tags = NULL;
- GeeHashMap* _tmp7_;
- MediaSource* _tmp8_;
- gpointer _tmp9_;
- GeeList* _tmp10_;
- gboolean is_removed = FALSE;
- GeeList* _tmp11_;
- Tag* _tmp12_;
- gboolean _tmp13_;
- GeeList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- GeeSortedSet* sorted_tags = NULL;
- GeeHashMap* _tmp19_;
- MediaSource* _tmp20_;
- gpointer _tmp21_;
- GeeSortedSet* _tmp22_;
- GeeSortedSet* _tmp23_;
- Tag* _tmp24_;
- gboolean _tmp25_;
- GeeSortedSet* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _source_it;
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 2810 "Tag.c"
- }
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _source_it;
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- source = (MediaSource*) _tmp6_;
-#line 241 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = self->priv->source_map;
-#line 241 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = source;
-#line 241 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_);
-#line 241 "/home/jens/Source/shotwell/src/Tag.vala"
- tags = (GeeList*) _tmp9_;
-#line 242 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = tags;
-#line 242 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp10_ != NULL, "tags != null");
-#line 244 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tags;
-#line 244 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = tag;
-#line 244 "/home/jens/Source/shotwell/src/Tag.vala"
- is_removed = gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp12_);
-#line 245 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = is_removed;
-#line 245 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp13_, "is_removed");
-#line 247 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = tags;
-#line 247 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 247 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = _tmp15_;
-#line 247 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp16_ == 0) {
-#line 2848 "Tag.c"
- GeeHashMap* _tmp17_;
- MediaSource* _tmp18_;
-#line 248 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = self->priv->source_map;
-#line 248 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = source;
-#line 248 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp18_, NULL);
-#line 2857 "Tag.c"
- }
-#line 250 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = self->priv->sorted_source_map;
-#line 250 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = source;
-#line 250 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp20_);
-#line 250 "/home/jens/Source/shotwell/src/Tag.vala"
- sorted_tags = (GeeSortedSet*) _tmp21_;
-#line 251 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = sorted_tags;
-#line 251 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp22_ != NULL, "sorted_tags != null");
-#line 253 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = sorted_tags;
-#line 253 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = tag;
-#line 253 "/home/jens/Source/shotwell/src/Tag.vala"
- is_removed = gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection), _tmp24_);
-#line 254 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = is_removed;
-#line 254 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp25_, "is_removed");
-#line 256 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = sorted_tags;
-#line 256 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 256 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = _tmp27_;
-#line 256 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp28_ == 0) {
-#line 2889 "Tag.c"
- GeeHashMap* _tmp29_;
- MediaSource* _tmp30_;
-#line 257 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = self->priv->sorted_source_map;
-#line 257 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = source;
-#line 257 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_, NULL);
-#line 2898 "Tag.c"
- }
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (sorted_tags);
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tags);
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source);
-#line 2906 "Tag.c"
- }
-#line 240 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_source_it);
-#line 2910 "Tag.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/Tag.vala"
- CONTAINER_SOURCE_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_container_contents_removed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), container, removed, unlinking);
-#line 235 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (sources);
-#line 235 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 2918 "Tag.c"
-}
-
-
-static void
-tag_source_collection_on_photo_source_reimported (TagSourceCollection* self,
- LibraryPhoto* photo,
- PhotoMetadata* metadata)
-{
-#line 263 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG_SOURCE_COLLECTION (self));
-#line 263 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_LIBRARY_PHOTO (photo));
-#line 263 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 2933 "Tag.c"
-}
-
-
-static void
-tag_source_collection_class_init (TagSourceCollectionClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataCollectionClass *) klass)->finalize = tag_source_collection_finalize;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- g_type_class_add_private (klass, sizeof (TagSourceCollectionPrivate));
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) tag_source_collection_real_holds_type_of_source;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((ContainerSourceCollectionClass *) klass)->get_containers_holding_source = (GeeCollection* (*) (ContainerSourceCollection *, DataSource*)) tag_source_collection_real_get_containers_holding_source;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((ContainerSourceCollectionClass *) klass)->convert_backlink_to_container = (ContainerSource* (*) (ContainerSourceCollection *, SourceBacklink*)) tag_source_collection_real_convert_backlink_to_container;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) tag_source_collection_real_notify_items_added;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) tag_source_collection_real_notify_items_removed;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataCollectionClass *) klass)->notify_items_altered = (void (*) (DataCollection *, GeeMap*)) tag_source_collection_real_notify_items_altered;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((ContainerSourceCollectionClass *) klass)->notify_container_contents_added = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean)) tag_source_collection_real_notify_container_contents_added;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- ((ContainerSourceCollectionClass *) klass)->notify_container_contents_removed = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean)) tag_source_collection_real_notify_container_contents_removed;
-#line 2962 "Tag.c"
-}
-
-
-static void
-tag_source_collection_instance_init (TagSourceCollection * self)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
- GeeHashMap* _tmp2_;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv = TAG_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 8 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tag_hash_name_string_gee_hash_data_func, NULL, NULL, _tag_equal_name_strings_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 8 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->name_map = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GEE_TYPE_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 10 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->source_map = _tmp1_;
-#line 12 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GEE_TYPE_SORTED_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 12 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->sorted_source_map = _tmp2_;
-#line 2986 "Tag.c"
-}
-
-
-static void
-tag_source_collection_finalize (DataCollection * obj)
-{
- TagSourceCollection * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection);
-#line 26 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = library_photo_global;
-#line 26 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_parse_name ("source-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 26 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tag_source_collection_on_photo_source_reimported_library_photo_source_collection_source_reimported, self);
-#line 8 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (self->priv->name_map);
-#line 10 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (self->priv->source_map);
-#line 12 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (self->priv->sorted_source_map);
-#line 7 "/home/jens/Source/shotwell/src/Tag.vala"
- DATA_COLLECTION_CLASS (tag_source_collection_parent_class)->finalize (obj);
-#line 3012 "Tag.c"
-}
-
-
-GType
-tag_source_collection_get_type (void)
-{
- static volatile gsize tag_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&tag_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagSourceCollection), 0, (GInstanceInitFunc) tag_source_collection_instance_init, NULL };
- GType tag_source_collection_type_id;
- tag_source_collection_type_id = g_type_register_static (TYPE_CONTAINER_SOURCE_COLLECTION, "TagSourceCollection", &g_define_type_info, 0);
- g_once_init_leave (&tag_source_collection_type_id__volatile, tag_source_collection_type_id);
- }
- return tag_source_collection_type_id__volatile;
-}
-
-
-static void
-_tag_on_media_views_contents_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 382 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_on_media_views_contents_altered ((Tag*) self, added, removed);
-#line 3038 "Tag.c"
-}
-
-
-static void
-_tag_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
- GeeCollection* destroyed,
- gpointer self)
-{
-#line 383 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_on_sources_destroyed ((Tag*) self, destroyed);
-#line 3049 "Tag.c"
-}
-
-
-static gpointer
-_tag_row_ref0 (gpointer self)
-{
-#line 335 "/home/jens/Source/shotwell/src/Tag.vala"
- return self ? tag_row_ref (self) : NULL;
-#line 3058 "Tag.c"
-}
-
-
-static Tag*
-tag_construct (GType object_type,
- TagRow* row,
- gint64 object_id)
-{
- Tag * self = NULL;
- TagRow* _tmp0_;
- TagRow* _tmp1_;
- TagRow* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- GeeArrayList* source_list = NULL;
- GeeArrayList* _tmp5_;
- GeeArrayList* thumbnail_views = NULL;
- GeeArrayList* _tmp6_;
- TagRow* _tmp7_;
- GeeSet* _tmp8_;
- TagID _tmp29_;
- gint64 _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- ViewCollection* _tmp35_;
- ViewCollection* _tmp36_;
- GeeArrayList* _tmp37_;
- GeeCollection* _tmp38_;
- GeeCollection* _tmp39_;
- GeeArrayList* _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- ViewCollection* _tmp47_;
- LibraryPhotoSourceCollection* _tmp48_;
- VideoSourceCollection* _tmp49_;
-#line 332 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_ROW (row), NULL);
-#line 333 "/home/jens/Source/shotwell/src/Tag.vala"
- self = (Tag*) data_source_construct (object_type, object_id);
-#line 335 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = _tag_row_ref0 (row);
-#line 335 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (self->priv->row);
-#line 335 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->row = _tmp0_;
-#line 338 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = self->priv->row;
-#line 338 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = self->priv->row;
-#line 338 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_->name;
-#line 338 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = tag_prep_tag_name (_tmp3_);
-#line 338 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_->name);
-#line 338 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_->name = _tmp4_;
-#line 341 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 341 "/home/jens/Source/shotwell/src/Tag.vala"
- source_list = _tmp5_;
-#line 342 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 342 "/home/jens/Source/shotwell/src/Tag.vala"
- thumbnail_views = _tmp6_;
-#line 343 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = self->priv->row;
-#line 343 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _tmp7_->source_id_list;
-#line 343 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp8_ != NULL) {
-#line 3132 "Tag.c"
- {
- GeeIterator* _source_id_it = NULL;
- TagRow* _tmp9_;
- GeeSet* _tmp10_;
- GeeIterator* _tmp11_;
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = self->priv->row;
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = _tmp9_->source_id_list;
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _source_id_it = _tmp11_;
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 3148 "Tag.c"
- GeeIterator* _tmp12_;
- gchar* source_id = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- MediaSource* current_source = NULL;
- MediaCollectionRegistry* _tmp15_;
- MediaCollectionRegistry* _tmp16_;
- const gchar* _tmp17_;
- MediaSource* _tmp18_;
- MediaSource* _tmp19_;
- MediaSource* _tmp20_;
- GeeArrayList* _tmp21_;
- MediaSource* _tmp22_;
- GeeArrayList* _tmp23_;
- MediaSource* _tmp24_;
- ThumbnailView* _tmp25_;
- ThumbnailView* _tmp26_;
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = _source_id_it;
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 3172 "Tag.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = _source_id_it;
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- source_id = (gchar*) _tmp14_;
-#line 345 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = media_collection_registry_get_instance ();
-#line 345 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = _tmp15_;
-#line 345 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = source_id;
-#line 345 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = media_collection_registry_fetch_media (_tmp16_, _tmp17_);
-#line 345 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 345 "/home/jens/Source/shotwell/src/Tag.vala"
- _media_collection_registry_unref0 (_tmp16_);
-#line 345 "/home/jens/Source/shotwell/src/Tag.vala"
- current_source = _tmp19_;
-#line 347 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = current_source;
-#line 347 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp20_ == NULL) {
-#line 348 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (current_source);
-#line 348 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (source_id);
-#line 348 "/home/jens/Source/shotwell/src/Tag.vala"
- continue;
-#line 3204 "Tag.c"
- }
-#line 350 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = source_list;
-#line 350 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = current_source;
-#line 350 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp22_);
-#line 351 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = thumbnail_views;
-#line 351 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = current_source;
-#line 351 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 351 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = _tmp25_;
-#line 351 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_);
-#line 351 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp26_);
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (current_source);
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (source_id);
-#line 3228 "Tag.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_source_id_it);
-#line 3232 "Tag.c"
- }
- } else {
- TagRow* _tmp27_;
- GeeHashSet* _tmp28_;
-#line 355 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = self->priv->row;
-#line 355 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 355 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp27_->source_id_list);
-#line 355 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_->source_id_list = G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_SET, GeeSet);
-#line 3245 "Tag.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = row->tag_id;
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = _tmp29_.id;
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp30_);
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = _tmp31_;
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp33_ = g_strdup_printf ("ViewCollection for tag %s", _tmp32_);
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = _tmp33_;
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp35_ = view_collection_new (_tmp34_);
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _data_collection_unref0 (self->priv->media_views);
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->media_views = _tmp35_;
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp34_);
-#line 359 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp32_);
-#line 360 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp36_ = self->priv->media_views;
-#line 360 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp37_ = thumbnail_views;
-#line 360 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp38_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 360 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp39_ = _tmp38_;
-#line 360 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp39_);
-#line 364 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp40_ = source_list;
-#line 364 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp41_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 364 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp42_ = _tmp41_;
-#line 364 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp42_ > 0) {
-#line 3287 "Tag.c"
- TagSourceCollection* _tmp43_;
- GeeArrayList* _tmp44_;
- TagSourceCollection* _tmp45_;
- GeeArrayList* _tmp46_;
-#line 365 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp43_ = tag_global;
-#line 365 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp44_ = source_list;
-#line 365 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection), FALSE);
-#line 366 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp45_ = tag_global;
-#line 366 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp46_ = source_list;
-#line 366 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, FALSE);
-#line 3304 "Tag.c"
- }
-#line 371 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp47_ = self->priv->media_views;
-#line 371 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _tag_on_media_views_contents_altered_data_collection_contents_altered, self, 0);
-#line 375 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp48_ = library_photo_global;
-#line 375 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _tag_on_sources_destroyed_source_collection_items_destroyed, self, 0);
-#line 376 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp49_ = video_global;
-#line 376 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _tag_on_sources_destroyed_source_collection_items_destroyed, self, 0);
-#line 378 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_update_indexable_keywords (self);
-#line 332 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (thumbnail_views);
-#line 332 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source_list);
-#line 332 "/home/jens/Source/shotwell/src/Tag.vala"
- return self;
-#line 3326 "Tag.c"
-}
-
-
-static Tag*
-tag_new (TagRow* row,
- gint64 object_id)
-{
-#line 332 "/home/jens/Source/shotwell/src/Tag.vala"
- return tag_construct (TYPE_TAG, row, object_id);
-#line 3336 "Tag.c"
-}
-
-
-void
-tag_init (ProgressMonitor monitor,
- void* monitor_target)
-{
- TagSourceCollection* _tmp0_;
- GeeList* rows = NULL;
- GeeTreeMap* ancestry_dictionary = NULL;
- GeeTreeMap* _tmp8_;
- GeeArrayList* unlinked = NULL;
- GeeArrayList* _tmp9_;
- gint count = 0;
- GeeList* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- GeeSet* victim_set = NULL;
- GeeHashSet* _tmp51_;
- GeeSet* _tmp103_;
- TagSourceCollection* _tmp158_;
- GeeTreeMap* _tmp159_;
- GeeCollection* _tmp160_;
- GeeCollection* _tmp161_;
- GeeCollection* _tmp162_;
- GeeCollection* _tmp163_;
- GeeCollection* _tmp164_;
- TagSourceCollection* _tmp165_;
- GeeArrayList* _tmp166_;
- GError * _inner_error_ = NULL;
-#line 388 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_source_collection_new ();
-#line 388 "/home/jens/Source/shotwell/src/Tag.vala"
- _data_collection_unref0 (tag_global);
-#line 388 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_global = _tmp0_;
-#line 391 "/home/jens/Source/shotwell/src/Tag.vala"
- rows = NULL;
-#line 3375 "Tag.c"
- {
- GeeList* _tmp1_ = NULL;
- TagTable* _tmp2_;
- TagTable* _tmp3_;
- GeeList* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_table_get_instance ();
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = tag_table_get_all_rows (_tmp3_, &_inner_error_);
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp4_;
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _database_table_unref0 (_tmp3_);
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp5_;
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 3399 "Tag.c"
- goto __catch480_database_error;
- }
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (rows);
-#line 393 "/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);
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 3410 "Tag.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tmp1_;
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = NULL;
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (rows);
-#line 393 "/home/jens/Source/shotwell/src/Tag.vala"
- rows = _tmp6_;
-#line 392 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp1_);
-#line 3422 "Tag.c"
- }
- goto __finally480;
- __catch480_database_error:
- {
- GError* err = NULL;
- GError* _tmp7_;
-#line 392 "/home/jens/Source/shotwell/src/Tag.vala"
- err = _inner_error_;
-#line 392 "/home/jens/Source/shotwell/src/Tag.vala"
- _inner_error_ = NULL;
-#line 395 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = err;
-#line 395 "/home/jens/Source/shotwell/src/Tag.vala"
- app_window_database_error (_tmp7_);
-#line 392 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_error_free0 (err);
-#line 3439 "Tag.c"
- }
- __finally480:
-#line 392 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 392 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (rows);
-#line 392 "/home/jens/Source/shotwell/src/Tag.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 392 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 392 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 3452 "Tag.c"
- }
-#line 404 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = gee_tree_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 404 "/home/jens/Source/shotwell/src/Tag.vala"
- ancestry_dictionary = _tmp8_;
-#line 406 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 406 "/home/jens/Source/shotwell/src/Tag.vala"
- unlinked = _tmp9_;
-#line 407 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = rows;
-#line 407 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 407 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = _tmp11_;
-#line 407 "/home/jens/Source/shotwell/src/Tag.vala"
- count = _tmp12_;
-#line 3470 "Tag.c"
- {
- gint ctr = 0;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- ctr = 0;
-#line 3475 "Tag.c"
- {
- gboolean _tmp13_ = FALSE;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = TRUE;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 3482 "Tag.c"
- gint _tmp15_;
- gint _tmp16_;
- TagRow* row = NULL;
- GeeList* _tmp17_;
- gint _tmp18_;
- gpointer _tmp19_;
- gchar* name = NULL;
- TagRow* _tmp20_;
- const gchar* _tmp21_;
- gchar* _tmp22_;
- const gchar* _tmp23_;
- TagRow* _tmp34_;
- const gchar* _tmp35_;
- gchar* _tmp36_;
- Tag* tag = NULL;
- TagRow* _tmp37_;
- Tag* _tmp38_;
- GeeTreeMap* _tmp41_;
- Tag* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- Tag* _tmp45_;
- Tag* _tmp46_;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!_tmp13_) {
-#line 3508 "Tag.c"
- gint _tmp14_;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = ctr;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- ctr = _tmp14_ + 1;
-#line 3514 "Tag.c"
- }
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = FALSE;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = ctr;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = count;
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp15_ < _tmp16_)) {
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 3526 "Tag.c"
- }
-#line 409 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = rows;
-#line 409 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = ctr;
-#line 409 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = gee_list_get (_tmp17_, _tmp18_);
-#line 409 "/home/jens/Source/shotwell/src/Tag.vala"
- row = (TagRow*) _tmp19_;
-#line 412 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = row;
-#line 412 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = _tmp20_->name;
-#line 412 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = tag_prep_tag_name (_tmp21_);
-#line 412 "/home/jens/Source/shotwell/src/Tag.vala"
- name = _tmp22_;
-#line 413 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = name;
-#line 413 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp23_ == NULL) {
-#line 3548 "Tag.c"
- TagRow* _tmp24_;
- const gchar* _tmp25_;
-#line 416 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = row;
-#line 416 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = _tmp24_->name;
-#line 416 "/home/jens/Source/shotwell/src/Tag.vala"
- g_warning ("Tag.vala:416: Invalid tag name \"%s\": removing from database", _tmp25_);
-#line 3557 "Tag.c"
- {
- TagTable* _tmp26_;
- TagTable* _tmp27_;
- TagRow* _tmp28_;
- TagID _tmp29_;
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = tag_table_get_instance ();
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = _tmp26_;
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = row;
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = _tmp28_->tag_id;
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_table_remove (_tmp27_, &_tmp29_, &_inner_error_);
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _database_table_unref0 (_tmp27_);
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 3579 "Tag.c"
- goto __catch481_database_error;
- }
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (name);
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (row);
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (unlinked);
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (ancestry_dictionary);
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (rows);
-#line 418 "/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);
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 418 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 3598 "Tag.c"
- }
- }
- goto __finally481;
- __catch481_database_error:
- {
- GError* err = NULL;
- TagRow* _tmp30_;
- const gchar* _tmp31_;
- GError* _tmp32_;
- const gchar* _tmp33_;
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- err = _inner_error_;
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- _inner_error_ = NULL;
-#line 420 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = row;
-#line 420 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = _tmp30_->name;
-#line 420 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = err;
-#line 420 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp33_ = _tmp32_->message;
-#line 420 "/home/jens/Source/shotwell/src/Tag.vala"
- g_warning ("Tag.vala:420: Unable to delete tag \"%s\": %s", _tmp31_, _tmp33_);
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_error_free0 (err);
-#line 3625 "Tag.c"
- }
- __finally481:
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (name);
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (row);
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (unlinked);
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (ancestry_dictionary);
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (rows);
-#line 417 "/home/jens/Source/shotwell/src/Tag.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 417 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 417 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 3646 "Tag.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (name);
-#line 423 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (row);
-#line 423 "/home/jens/Source/shotwell/src/Tag.vala"
- continue;
-#line 3654 "Tag.c"
- }
-#line 426 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = row;
-#line 426 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp35_ = name;
-#line 426 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp36_ = g_strdup (_tmp35_);
-#line 426 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp34_->name);
-#line 426 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_->name = _tmp36_;
-#line 428 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp37_ = row;
-#line 428 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp38_ = tag_new (_tmp37_, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 428 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp38_;
-#line 429 "/home/jens/Source/shotwell/src/Tag.vala"
- if (monitor != NULL) {
-#line 3674 "Tag.c"
- gint _tmp39_;
- gint _tmp40_;
-#line 430 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp39_ = ctr;
-#line 430 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp40_ = count;
-#line 430 "/home/jens/Source/shotwell/src/Tag.vala"
- monitor ((guint64) _tmp39_, (guint64) _tmp40_, TRUE, monitor_target);
-#line 3683 "Tag.c"
- }
-#line 432 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp41_ = ancestry_dictionary;
-#line 432 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp42_ = tag;
-#line 432 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp43_ = tag_get_path (_tmp42_);
-#line 432 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp44_ = _tmp43_;
-#line 432 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp45_ = tag;
-#line 432 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp44_, _tmp45_);
-#line 432 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp44_);
-#line 434 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp46_ = tag;
-#line 434 "/home/jens/Source/shotwell/src/Tag.vala"
- if (container_source_has_links (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_CONTAINER_SOURCE, ContainerSource))) {
-#line 3703 "Tag.c"
- Tag* _tmp47_;
- TagSourceCollection* _tmp48_;
- GeeArrayList* _tmp49_;
- Tag* _tmp50_;
-#line 435 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp47_ = tag;
-#line 435 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp48_ = tag_global;
-#line 435 "/home/jens/Source/shotwell/src/Tag.vala"
- data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_SOURCE_COLLECTION, SourceCollection), NULL);
-#line 436 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp49_ = unlinked;
-#line 436 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp50_ = tag;
-#line 436 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp50_);
-#line 3720 "Tag.c"
- }
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (name);
-#line 408 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (row);
-#line 3728 "Tag.c"
- }
- }
- }
-#line 440 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp51_ = gee_hash_set_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 440 "/home/jens/Source/shotwell/src/Tag.vala"
- victim_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_SET, GeeSet);
-#line 3736 "Tag.c"
- {
- GeeIterator* _fq_tag_path_it = NULL;
- GeeTreeMap* _tmp52_;
- GeeSet* _tmp53_;
- GeeSet* _tmp54_;
- GeeSet* _tmp55_;
- GeeIterator* _tmp56_;
- GeeIterator* _tmp57_;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp52_ = ancestry_dictionary;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp53_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp54_ = _tmp53_;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp55_ = _tmp54_;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp56_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp57_ = _tmp56_;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp55_);
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _fq_tag_path_it = _tmp57_;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 3763 "Tag.c"
- GeeIterator* _tmp58_;
- gchar* fq_tag_path = NULL;
- GeeIterator* _tmp59_;
- gpointer _tmp60_;
- const gchar* _tmp61_;
- GeeList* _tmp62_;
- GeeList* _tmp63_;
- gint _tmp64_;
- gint _tmp65_;
- gboolean _tmp66_;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp58_ = _fq_tag_path_it;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp58_)) {
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 3780 "Tag.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp59_ = _fq_tag_path_it;
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp60_ = gee_iterator_get (_tmp59_);
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- fq_tag_path = (gchar*) _tmp60_;
-#line 446 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp61_ = fq_tag_path;
-#line 446 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp62_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp61_);
-#line 446 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp63_ = _tmp62_;
-#line 446 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp64_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 446 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp65_ = _tmp64_;
-#line 446 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp66_ = _tmp65_ < 1;
-#line 446 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp63_);
-#line 446 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp66_) {
-#line 3804 "Tag.c"
- gboolean _tmp67_ = FALSE;
- const gchar* _tmp68_;
-#line 447 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp68_ = fq_tag_path;
-#line 447 "/home/jens/Source/shotwell/src/Tag.vala"
- if (g_str_has_prefix (_tmp68_, TAG_PATH_SEPARATOR_STRING)) {
-#line 3811 "Tag.c"
- GeeTreeMap* _tmp69_;
- const gchar* _tmp70_;
- gchar* _tmp71_;
- gchar* _tmp72_;
-#line 448 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp69_ = ancestry_dictionary;
-#line 448 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp70_ = fq_tag_path;
-#line 448 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp71_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp70_);
-#line 448 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp72_ = _tmp71_;
-#line 448 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp67_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp72_);
-#line 448 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp72_);
-#line 3828 "Tag.c"
- } else {
-#line 447 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp67_ = FALSE;
-#line 3832 "Tag.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp67_) {
-#line 3836 "Tag.c"
- GeeSet* _tmp73_;
- GeeTreeMap* _tmp74_;
- const gchar* _tmp75_;
- gpointer _tmp76_;
- Tag* _tmp77_;
-#line 449 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp73_ = victim_set;
-#line 449 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp74_ = ancestry_dictionary;
-#line 449 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp75_ = fq_tag_path;
-#line 449 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp76_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp75_);
-#line 449 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp77_ = (Tag*) _tmp76_;
-#line 449 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, GEE_TYPE_COLLECTION, GeeCollection), _tmp77_);
-#line 449 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp77_);
-#line 3856 "Tag.c"
- }
- }
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (fq_tag_path);
-#line 3861 "Tag.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_fq_tag_path_it);
-#line 3865 "Tag.c"
- }
- {
- GeeIterator* _tag_it = NULL;
- GeeSet* _tmp78_;
- GeeIterator* _tmp79_;
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp78_ = victim_set;
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp79_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_it = _tmp79_;
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 3879 "Tag.c"
- GeeIterator* _tmp80_;
- Tag* tag = NULL;
- GeeIterator* _tmp81_;
- gpointer _tmp82_;
- GeeCollection* source_collection = NULL;
- Tag* _tmp83_;
- GeeCollection* _tmp84_;
- gchar* flat_version = NULL;
- Tag* _tmp85_;
- gchar* _tmp86_;
- TagSourceCollection* _tmp87_;
- const gchar* _tmp88_;
- Tag* _tmp89_;
- Tag* _tmp90_;
- GeeCollection* _tmp91_;
- GeeTreeMap* _tmp92_;
- Tag* _tmp93_;
- gchar* _tmp94_;
- gchar* _tmp95_;
- Tag* _tmp96_;
- Tag* _tmp97_;
- GeeCollection* _tmp98_;
- GeeCollection* _tmp99_;
- GeeMultiMap* _tmp100_;
- GeeMultiMap* _tmp101_;
- Tag* _tmp102_;
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp80_ = _tag_it;
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp80_)) {
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 3912 "Tag.c"
- }
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp81_ = _tag_it;
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp82_ = gee_iterator_get (_tmp81_);
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = (Tag*) _tmp82_;
-#line 455 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp83_ = tag;
-#line 455 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp84_ = tag_get_sources (_tmp83_);
-#line 455 "/home/jens/Source/shotwell/src/Tag.vala"
- source_collection = _tmp84_;
-#line 456 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp85_ = tag;
-#line 456 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp86_ = tag_get_user_visible_name (_tmp85_);
-#line 456 "/home/jens/Source/shotwell/src/Tag.vala"
- flat_version = _tmp86_;
-#line 457 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp87_ = tag_global;
-#line 457 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp88_ = flat_version;
-#line 457 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp89_ = tag_source_collection_fetch_by_name (_tmp87_, _tmp88_, FALSE);
-#line 457 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp90_ = _tmp89_;
-#line 457 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp91_ = source_collection;
-#line 457 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_attach_many (_tmp90_, _tmp91_);
-#line 457 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp90_);
-#line 459 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp92_ = ancestry_dictionary;
-#line 459 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp93_ = tag;
-#line 459 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp94_ = tag_get_path (_tmp93_);
-#line 459 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp95_ = _tmp94_;
-#line 459 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp95_, NULL);
-#line 459 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp95_);
-#line 461 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp96_ = tag;
-#line 461 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp97_ = tag;
-#line 461 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp98_ = tag_get_sources (_tmp97_);
-#line 461 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp99_ = _tmp98_;
-#line 461 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp100_ = tag_detach_many (_tmp96_, _tmp99_);
-#line 461 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp101_ = _tmp100_;
-#line 461 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp101_);
-#line 461 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp99_);
-#line 462 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp102_ = tag;
-#line 462 "/home/jens/Source/shotwell/src/Tag.vala"
- data_source_destroy_orphan (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, TYPE_DATA_SOURCE, DataSource), TRUE);
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (flat_version);
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source_collection);
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 3984 "Tag.c"
- }
-#line 454 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tag_it);
-#line 3988 "Tag.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp103_ = victim_set;
-#line 468 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp103_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 3994 "Tag.c"
- {
- GeeIterator* _fq_tag_path_it = NULL;
- GeeTreeMap* _tmp104_;
- GeeSet* _tmp105_;
- GeeSet* _tmp106_;
- GeeSet* _tmp107_;
- GeeIterator* _tmp108_;
- GeeIterator* _tmp109_;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp104_ = ancestry_dictionary;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp105_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp106_ = _tmp105_;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp107_ = _tmp106_;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp108_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp109_ = _tmp108_;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp107_);
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _fq_tag_path_it = _tmp109_;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 4021 "Tag.c"
- GeeIterator* _tmp110_;
- gchar* fq_tag_path = NULL;
- GeeIterator* _tmp111_;
- gpointer _tmp112_;
- GeeList* parents_to_search = NULL;
- const gchar* _tmp113_;
- GeeList* _tmp114_;
- Tag* curr_child = NULL;
- GeeTreeMap* _tmp115_;
- const gchar* _tmp116_;
- gpointer _tmp117_;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp110_ = _fq_tag_path_it;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp110_)) {
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4039 "Tag.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp111_ = _fq_tag_path_it;
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp112_ = gee_iterator_get (_tmp111_);
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- fq_tag_path = (gchar*) _tmp112_;
-#line 471 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp113_ = fq_tag_path;
-#line 471 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp114_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp113_);
-#line 471 "/home/jens/Source/shotwell/src/Tag.vala"
- parents_to_search = _tmp114_;
-#line 474 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp115_ = ancestry_dictionary;
-#line 474 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp116_ = fq_tag_path;
-#line 474 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp117_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp116_);
-#line 474 "/home/jens/Source/shotwell/src/Tag.vala"
- curr_child = (Tag*) _tmp117_;
-#line 4061 "Tag.c"
- {
- GeeList* _parent_path_list = NULL;
- GeeList* _tmp118_;
- GeeList* _tmp119_;
- gint _parent_path_size = 0;
- GeeList* _tmp120_;
- gint _tmp121_;
- gint _tmp122_;
- gint _parent_path_index = 0;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp118_ = parents_to_search;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp119_ = _g_object_ref0 (_tmp118_);
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _parent_path_list = _tmp119_;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp120_ = _parent_path_list;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp121_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp120_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp122_ = _tmp121_;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _parent_path_size = _tmp122_;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _parent_path_index = -1;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 4089 "Tag.c"
- gint _tmp123_;
- gint _tmp124_;
- gint _tmp125_;
- gchar* parent_path = NULL;
- GeeList* _tmp126_;
- gint _tmp127_;
- gpointer _tmp128_;
- gint child_ref_count = 0;
- Tag* _tmp129_;
- gint parent_ref_count = 0;
- GeeTreeMap* _tmp130_;
- const gchar* _tmp131_;
- gint _tmp136_;
- gint _tmp137_;
- GeeSet* _tmp140_;
- GeeTreeMap* _tmp141_;
- const gchar* _tmp142_;
- gpointer _tmp143_;
- Tag* _tmp144_;
- gboolean _tmp145_;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp123_ = _parent_path_index;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _parent_path_index = _tmp123_ + 1;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp124_ = _parent_path_index;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp125_ = _parent_path_size;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp124_ < _tmp125_)) {
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4122 "Tag.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp126_ = _parent_path_list;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp127_ = _parent_path_index;
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp128_ = gee_list_get (_tmp126_, _tmp127_);
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- parent_path = (gchar*) _tmp128_;
-#line 479 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp129_ = curr_child;
-#line 479 "/home/jens/Source/shotwell/src/Tag.vala"
- child_ref_count = tag_get_sources_count (_tmp129_);
-#line 480 "/home/jens/Source/shotwell/src/Tag.vala"
- parent_ref_count = -1;
-#line 483 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp130_ = ancestry_dictionary;
-#line 483 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp131_ = parent_path;
-#line 483 "/home/jens/Source/shotwell/src/Tag.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp131_)) {
-#line 4144 "Tag.c"
- GeeTreeMap* _tmp132_;
- const gchar* _tmp133_;
- gpointer _tmp134_;
- Tag* _tmp135_;
-#line 485 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp132_ = ancestry_dictionary;
-#line 485 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp133_ = parent_path;
-#line 485 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp134_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp132_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp133_);
-#line 485 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp135_ = (Tag*) _tmp134_;
-#line 485 "/home/jens/Source/shotwell/src/Tag.vala"
- parent_ref_count = tag_get_sources_count (_tmp135_);
-#line 485 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp135_);
-#line 4161 "Tag.c"
- }
-#line 489 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp136_ = child_ref_count;
-#line 489 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp137_ = parent_ref_count;
-#line 489 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp136_ > _tmp137_) {
-#line 4169 "Tag.c"
- GeeSet* _tmp138_;
- Tag* _tmp139_;
-#line 493 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp138_ = victim_set;
-#line 493 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp139_ = curr_child;
-#line 493 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp138_, GEE_TYPE_COLLECTION, GeeCollection), _tmp139_);
-#line 497 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (parent_path);
-#line 497 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4182 "Tag.c"
- }
-#line 501 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp140_ = victim_set;
-#line 501 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp141_ = ancestry_dictionary;
-#line 501 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp142_ = parent_path;
-#line 501 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp143_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp141_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp142_);
-#line 501 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp144_ = (Tag*) _tmp143_;
-#line 501 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp145_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp140_, GEE_TYPE_COLLECTION, GeeCollection), _tmp144_);
-#line 501 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp144_);
-#line 501 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp145_) {
-#line 4200 "Tag.c"
- GeeSet* _tmp146_;
- Tag* _tmp147_;
-#line 503 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp146_ = victim_set;
-#line 503 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp147_ = curr_child;
-#line 503 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp146_, GEE_TYPE_COLLECTION, GeeCollection), _tmp147_);
-#line 504 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (parent_path);
-#line 504 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4213 "Tag.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (parent_path);
-#line 4217 "Tag.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_parent_path_list);
-#line 4221 "Tag.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (curr_child);
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (parents_to_search);
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (fq_tag_path);
-#line 4229 "Tag.c"
- }
-#line 470 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_fq_tag_path_it);
-#line 4233 "Tag.c"
- }
- {
- GeeIterator* _t_it = NULL;
- GeeSet* _tmp148_;
- GeeIterator* _tmp149_;
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp148_ = victim_set;
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp149_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp148_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- _t_it = _tmp149_;
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 4247 "Tag.c"
- GeeIterator* _tmp150_;
- Tag* t = NULL;
- GeeIterator* _tmp151_;
- gpointer _tmp152_;
- GeeTreeMap* _tmp153_;
- Tag* _tmp154_;
- gchar* _tmp155_;
- gchar* _tmp156_;
- Tag* _tmp157_;
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp150_ = _t_it;
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp150_)) {
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4263 "Tag.c"
- }
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp151_ = _t_it;
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp152_ = gee_iterator_get (_tmp151_);
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- t = (Tag*) _tmp152_;
-#line 511 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp153_ = ancestry_dictionary;
-#line 511 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp154_ = t;
-#line 511 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp155_ = tag_get_path (_tmp154_);
-#line 511 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp156_ = _tmp155_;
-#line 511 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp153_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp156_, NULL);
-#line 511 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp156_);
-#line 512 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp157_ = t;
-#line 512 "/home/jens/Source/shotwell/src/Tag.vala"
- data_source_destroy_orphan (G_TYPE_CHECK_INSTANCE_CAST (_tmp157_, TYPE_DATA_SOURCE, DataSource), TRUE);
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (t);
-#line 4289 "Tag.c"
- }
-#line 510 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_t_it);
-#line 4293 "Tag.c"
- }
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp158_ = tag_global;
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp159_ = ancestry_dictionary;
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp160_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp159_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp161_ = _tmp160_;
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp162_ = _tmp161_;
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp163_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp158_, TYPE_DATA_COLLECTION, DataCollection), _tmp162_, NULL, NULL);
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp164_ = _tmp163_;
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp164_);
-#line 516 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp162_);
-#line 517 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp165_ = tag_global;
-#line 517 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp166_ = unlinked;
-#line 517 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_init_add_many_unlinked (G_TYPE_CHECK_INSTANCE_CAST (_tmp165_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp166_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 4319 "Tag.c"
- {
- GeeIterator* _t_it = NULL;
- GeeTreeMap* _tmp167_;
- GeeCollection* _tmp168_;
- GeeCollection* _tmp169_;
- GeeCollection* _tmp170_;
- GeeIterator* _tmp171_;
- GeeIterator* _tmp172_;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp167_ = ancestry_dictionary;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp168_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp167_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp169_ = _tmp168_;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp170_ = _tmp169_;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp171_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp170_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp172_ = _tmp171_;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp170_);
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _t_it = _tmp172_;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 4346 "Tag.c"
- GeeIterator* _tmp173_;
- Tag* t = NULL;
- GeeIterator* _tmp174_;
- gpointer _tmp175_;
- gboolean _tmp176_ = FALSE;
- Tag* _tmp177_;
- GeeList* _tmp178_;
- GeeList* _tmp179_;
- gint _tmp180_;
- gint _tmp181_;
- gboolean _tmp182_;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp173_ = _t_it;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp173_)) {
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4364 "Tag.c"
- }
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp174_ = _t_it;
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp175_ = gee_iterator_get (_tmp174_);
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- t = (Tag*) _tmp175_;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp177_ = t;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp178_ = tag_get_hierarchical_children (_tmp177_);
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp179_ = _tmp178_;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp180_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp179_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp181_ = _tmp180_;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp182_ = _tmp181_ < 1;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp179_);
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp182_) {
-#line 4388 "Tag.c"
- Tag* _tmp183_;
- Tag* _tmp184_;
- Tag* _tmp185_;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp183_ = t;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp184_ = tag_get_hierarchical_parent (_tmp183_);
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp185_ = _tmp184_;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp176_ = _tmp185_ == NULL;
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp185_);
-#line 4402 "Tag.c"
- } else {
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp176_ = FALSE;
-#line 4406 "Tag.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp176_) {
-#line 4410 "Tag.c"
- Tag* _tmp186_;
-#line 525 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp186_ = t;
-#line 525 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_flatten (_tmp186_);
-#line 4416 "Tag.c"
- }
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (t);
-#line 4420 "Tag.c"
- }
-#line 521 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_t_it);
-#line 4424 "Tag.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (victim_set);
-#line 387 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (unlinked);
-#line 387 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (ancestry_dictionary);
-#line 387 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (rows);
-#line 4434 "Tag.c"
-}
-
-
-void
-tag_terminate (void)
-{
-}
-
-
-gint
-tag_compare_names (Tag* a,
- Tag* b)
-{
- gint result = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gint _tmp8_;
-#line 533 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (a), 0);
-#line 533 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (b), 0);
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (a, TYPE_DATA_OBJECT, DataObject));
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_get_name_collation_key (a);
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (b, TYPE_DATA_OBJECT, DataObject));
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp4_;
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = tag_get_name_collation_key (b);
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _tmp6_;
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = string_precollated_compare (_tmp1_, _tmp3_, _tmp5_, _tmp7_);
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp7_);
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp5_);
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp3_);
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp8_;
-#line 534 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 4492 "Tag.c"
-}
-
-
-gint
-tag_compare_user_visible_names (Tag* a,
- Tag* b)
-{
- gint result = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gint _tmp8_;
-#line 538 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (a), 0);
-#line 538 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (b), 0);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_user_visible_name (a);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_get_name_collation_key (a);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = tag_get_user_visible_name (b);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp4_;
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = tag_get_name_collation_key (b);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _tmp6_;
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = string_precollated_compare (_tmp1_, _tmp3_, _tmp5_, _tmp7_);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp7_);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp5_);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp3_);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp8_;
-#line 539 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 4544 "Tag.c"
-}
-
-
-guint
-tag_hash_name_string (const gchar* a)
-{
- guint result = 0U;
-#line 543 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (a != NULL, 0U);
-#line 544 "/home/jens/Source/shotwell/src/Tag.vala"
- result = string_collated_hash (a);
-#line 544 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 4558 "Tag.c"
-}
-
-
-gboolean
-tag_equal_name_strings (const gchar* a,
- const gchar* b)
-{
- gboolean result = FALSE;
-#line 547 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (a != NULL, FALSE);
-#line 547 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (b != NULL, FALSE);
-#line 548 "/home/jens/Source/shotwell/src/Tag.vala"
- result = string_collated_equals (a, b);
-#line 548 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 4575 "Tag.c"
-}
-
-
-Tag*
-tag_for_path (const gchar* name)
-{
- Tag* result = NULL;
- Tag* tag = NULL;
- TagSourceCollection* _tmp0_;
- Tag* _tmp1_;
- Tag* _tmp2_;
- Tag* _tmp5_;
- TagSourceCollection* _tmp13_;
- Tag* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 553 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 554 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_global;
-#line 554 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = tag_source_collection_fetch_by_name (_tmp0_, name, TRUE);
-#line 554 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp1_;
-#line 555 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag;
-#line 555 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp2_ == NULL) {
-#line 4603 "Tag.c"
- TagSourceCollection* _tmp3_;
- Tag* _tmp4_;
-#line 556 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = tag_global;
-#line 556 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = tag_source_collection_restore_tag_from_holding_tank (_tmp3_, name);
-#line 556 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 556 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp4_;
-#line 4614 "Tag.c"
- }
-#line 558 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = tag;
-#line 558 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp5_ != NULL) {
-#line 559 "/home/jens/Source/shotwell/src/Tag.vala"
- result = tag;
-#line 559 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 4624 "Tag.c"
- }
- {
- TagRow* _tmp6_ = NULL;
- TagTable* _tmp7_;
- TagTable* _tmp8_;
- TagRow* _tmp9_;
- TagRow* _tmp10_;
- Tag* _tmp11_;
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = tag_table_get_instance ();
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _tmp7_;
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = tag_table_add (_tmp8_, name, &_inner_error_);
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = _tmp9_;
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _database_table_unref0 (_tmp8_);
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tmp10_;
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 4649 "Tag.c"
- goto __catch482_database_error;
- }
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 563 "/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);
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- return NULL;
-#line 4660 "Tag.c"
- }
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tag_new (_tmp6_, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 563 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp11_;
-#line 562 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (_tmp6_);
-#line 4670 "Tag.c"
- }
- goto __finally482;
- __catch482_database_error:
- {
- GError* err = NULL;
- GError* _tmp12_;
-#line 562 "/home/jens/Source/shotwell/src/Tag.vala"
- err = _inner_error_;
-#line 562 "/home/jens/Source/shotwell/src/Tag.vala"
- _inner_error_ = NULL;
-#line 565 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = err;
-#line 565 "/home/jens/Source/shotwell/src/Tag.vala"
- app_window_database_error (_tmp12_);
-#line 562 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_error_free0 (err);
-#line 4687 "Tag.c"
- }
- __finally482:
-#line 562 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 562 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 562 "/home/jens/Source/shotwell/src/Tag.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 562 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 562 "/home/jens/Source/shotwell/src/Tag.vala"
- return NULL;
-#line 4700 "Tag.c"
- }
-#line 568 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = tag_global;
-#line 568 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = tag;
-#line 568 "/home/jens/Source/shotwell/src/Tag.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject));
-#line 570 "/home/jens/Source/shotwell/src/Tag.vala"
- result = tag;
-#line 570 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 4712 "Tag.c"
-}
-
-
-GeeCollection*
-tag_get_terminal_tags (GeeCollection* tags)
-{
- GeeCollection* result = NULL;
- GeeSet* result_paths = NULL;
- GeeHashSet* _tmp0_;
- GeeArrayList* _result_ = NULL;
- GeeArrayList* _tmp34_;
-#line 573 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (tags), NULL);
-#line 574 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 574 "/home/jens/Source/shotwell/src/Tag.vala"
- result_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
-#line 4730 "Tag.c"
- {
- GeeIterator* _tag_it = NULL;
- GeeIterator* _tmp1_;
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (tags, GEE_TYPE_ITERABLE, GeeIterable));
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_it = _tmp1_;
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 4740 "Tag.c"
- GeeIterator* _tmp2_;
- Tag* tag = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- Tag* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gboolean _tmp8_;
- Tag* _tmp13_;
- Tag* _tmp14_;
- Tag* _tmp15_;
- gboolean _tmp16_;
- GeeSet* _tmp30_;
- Tag* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _tag_it;
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4763 "Tag.c"
- }
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tag_it;
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = (Tag*) _tmp4_;
-#line 578 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = tag;
-#line 578 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = tag_get_path (_tmp5_);
-#line 578 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _tmp6_;
-#line 578 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = !g_str_has_prefix (_tmp7_, TAG_PATH_SEPARATOR_STRING);
-#line 578 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp7_);
-#line 578 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp8_) {
-#line 4783 "Tag.c"
- GeeSet* _tmp9_;
- Tag* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 579 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = result_paths;
-#line 579 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = tag;
-#line 579 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tag_get_path (_tmp10_);
-#line 579 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = _tmp11_;
-#line 579 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection), _tmp12_);
-#line 579 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp12_);
-#line 580 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 580 "/home/jens/Source/shotwell/src/Tag.vala"
- continue;
-#line 4804 "Tag.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = tag;
-#line 586 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = tag_get_hierarchical_parent (_tmp13_);
-#line 586 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _tmp14_;
-#line 586 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = _tmp15_ != NULL;
-#line 586 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp15_);
-#line 586 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp16_) {
-#line 4818 "Tag.c"
- GeeSet* _tmp17_;
- Tag* _tmp18_;
- Tag* _tmp19_;
- Tag* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- gboolean _tmp23_;
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = result_paths;
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = tag;
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = tag_get_hierarchical_parent (_tmp18_);
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = _tmp19_;
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = tag_get_path (_tmp20_);
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = _tmp21_;
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_);
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp22_);
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp20_);
-#line 589 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp23_) {
-#line 4846 "Tag.c"
- GeeSet* _tmp24_;
- Tag* _tmp25_;
- Tag* _tmp26_;
- Tag* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = result_paths;
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = tag;
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = tag_get_hierarchical_parent (_tmp25_);
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = _tmp26_;
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = tag_get_path (_tmp27_);
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = _tmp28_;
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp29_);
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp29_);
-#line 590 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp27_);
-#line 4871 "Tag.c"
- }
- }
-#line 593 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = result_paths;
-#line 593 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = tag;
-#line 593 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = tag_get_path (_tmp31_);
-#line 593 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp33_ = _tmp32_;
-#line 593 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), _tmp33_);
-#line 593 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp33_);
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 4888 "Tag.c"
- }
-#line 576 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tag_it);
-#line 4892 "Tag.c"
- }
-#line 596 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 596 "/home/jens/Source/shotwell/src/Tag.vala"
- _result_ = _tmp34_;
-#line 4898 "Tag.c"
- {
- GeeIterator* _path_it = NULL;
- GeeSet* _tmp35_;
- GeeIterator* _tmp36_;
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp35_ = result_paths;
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp36_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- _path_it = _tmp36_;
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 4911 "Tag.c"
- GeeIterator* _tmp37_;
- gchar* path = NULL;
- GeeIterator* _tmp38_;
- gpointer _tmp39_;
- TagSourceCollection* _tmp40_;
- const gchar* _tmp41_;
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp37_ = _path_it;
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp37_)) {
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4924 "Tag.c"
- }
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp38_ = _path_it;
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp39_ = gee_iterator_get (_tmp38_);
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- path = (gchar*) _tmp39_;
-#line 598 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp40_ = tag_global;
-#line 598 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp41_ = path;
-#line 598 "/home/jens/Source/shotwell/src/Tag.vala"
- if (tag_source_collection_exists (_tmp40_, _tmp41_, FALSE)) {
-#line 4938 "Tag.c"
- GeeArrayList* _tmp42_;
- const gchar* _tmp43_;
- Tag* _tmp44_;
- Tag* _tmp45_;
-#line 599 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp42_ = _result_;
-#line 599 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp43_ = path;
-#line 599 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp44_ = tag_for_path (_tmp43_);
-#line 599 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp45_ = _tmp44_;
-#line 599 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp45_);
-#line 599 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp45_);
-#line 4955 "Tag.c"
- } else {
- {
- GeeIterator* _probed_tag_it = NULL;
- GeeIterator* _tmp46_;
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp46_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (tags, GEE_TYPE_ITERABLE, GeeIterable));
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- _probed_tag_it = _tmp46_;
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 4966 "Tag.c"
- GeeIterator* _tmp47_;
- Tag* probed_tag = NULL;
- GeeIterator* _tmp48_;
- gpointer _tmp49_;
- Tag* _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- const gchar* _tmp53_;
- gboolean _tmp54_;
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp47_ = _probed_tag_it;
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp47_)) {
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 4982 "Tag.c"
- }
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp48_ = _probed_tag_it;
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp49_ = gee_iterator_get (_tmp48_);
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- probed_tag = (Tag*) _tmp49_;
-#line 602 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp50_ = probed_tag;
-#line 602 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp51_ = tag_get_path (_tmp50_);
-#line 602 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp52_ = _tmp51_;
-#line 602 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp53_ = path;
-#line 602 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp54_ = g_strcmp0 (_tmp52_, _tmp53_) == 0;
-#line 602 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp52_);
-#line 602 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp54_) {
-#line 5004 "Tag.c"
- GeeArrayList* _tmp55_;
- Tag* _tmp56_;
-#line 603 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp55_ = _result_;
-#line 603 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp56_ = probed_tag;
-#line 603 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp56_);
-#line 5013 "Tag.c"
- }
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (probed_tag);
-#line 5017 "Tag.c"
- }
-#line 601 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_probed_tag_it);
-#line 5021 "Tag.c"
- }
- }
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (path);
-#line 5026 "Tag.c"
- }
-#line 597 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_path_it);
-#line 5030 "Tag.c"
- }
-#line 608 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 608 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (result_paths);
-#line 608 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5038 "Tag.c"
-}
-
-
-static gint
-_tag_compare_user_visible_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = tag_compare_user_visible_names ((Tag*) a, (Tag*) b);
-#line 623 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5051 "Tag.c"
-}
-
-
-GeeList*
-tag_make_user_visible_tag_list (GeeCollection* tags)
-{
- GeeList* result = NULL;
- GeeHashSet* seen_tags = NULL;
- GeeHashSet* _tmp0_;
- GeeCollection* terminal_tags = NULL;
- GeeCollection* _tmp1_;
- GeeArrayList* sorted_tags = NULL;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp16_;
-#line 612 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (tags), NULL);
-#line 613 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 613 "/home/jens/Source/shotwell/src/Tag.vala"
- seen_tags = _tmp0_;
-#line 614 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = tag_get_terminal_tags (tags);
-#line 614 "/home/jens/Source/shotwell/src/Tag.vala"
- terminal_tags = _tmp1_;
-#line 615 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 615 "/home/jens/Source/shotwell/src/Tag.vala"
- sorted_tags = _tmp2_;
-#line 5080 "Tag.c"
- {
- GeeIterator* _tag_it = NULL;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = terminal_tags;
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_it = _tmp4_;
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 5093 "Tag.c"
- GeeIterator* _tmp5_;
- Tag* tag = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- gchar* user_visible_name = NULL;
- Tag* _tmp8_;
- gchar* _tmp9_;
- GeeHashSet* _tmp10_;
- const gchar* _tmp11_;
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tag_it;
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 5109 "Tag.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tag_it;
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = (Tag*) _tmp7_;
-#line 617 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = tag;
-#line 617 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = tag_get_user_visible_name (_tmp8_);
-#line 617 "/home/jens/Source/shotwell/src/Tag.vala"
- user_visible_name = _tmp9_;
-#line 618 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = seen_tags;
-#line 618 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = user_visible_name;
-#line 618 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp11_)) {
-#line 5129 "Tag.c"
- GeeArrayList* _tmp12_;
- Tag* _tmp13_;
- GeeHashSet* _tmp14_;
- const gchar* _tmp15_;
-#line 619 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = sorted_tags;
-#line 619 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = tag;
-#line 619 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_);
-#line 620 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = seen_tags;
-#line 620 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = user_visible_name;
-#line 620 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 5146 "Tag.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (user_visible_name);
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 5152 "Tag.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tag_it);
-#line 5156 "Tag.c"
- }
-#line 623 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = sorted_tags;
-#line 623 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_LIST, GeeList), _tag_compare_user_visible_names_gcompare_data_func, NULL, NULL);
-#line 624 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (sorted_tags, GEE_TYPE_LIST, GeeList);
-#line 624 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (terminal_tags);
-#line 624 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (seen_tags);
-#line 624 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5170 "Tag.c"
-}
-
-
-gchar*
-tag_make_tag_markup_string (GeeList* tags,
- gint highlight_index)
-{
- gchar* result = NULL;
- GString* builder = NULL;
- GString* _tmp0_;
- gint i = 0;
- gboolean first = FALSE;
- GString* _tmp24_;
- gchar* built = NULL;
- GString* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
-#line 627 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (GEE_IS_LIST (tags), NULL);
-#line 628 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = g_string_new ("<small>");
-#line 628 "/home/jens/Source/shotwell/src/Tag.vala"
- builder = _tmp0_;
-#line 629 "/home/jens/Source/shotwell/src/Tag.vala"
- i = 0;
-#line 630 "/home/jens/Source/shotwell/src/Tag.vala"
- first = TRUE;
-#line 5198 "Tag.c"
- {
- GeeList* _tag_list = NULL;
- GeeList* _tmp1_;
- gint _tag_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tag_index = 0;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _g_object_ref0 (tags);
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_list = _tmp1_;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _tag_list;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _tmp3_;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_size = _tmp4_;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_index = -1;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 5223 "Tag.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- Tag* tag = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- gchar* tag_name = NULL;
- Tag* _tmp11_;
- gchar* _tmp12_;
- gchar* esc_tag_name = NULL;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gboolean _tmp15_;
- gint _tmp17_;
- GString* _tmp19_;
- const gchar* _tmp20_;
- gint _tmp21_;
- gint _tmp23_;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tag_index;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_index = _tmp5_ + 1;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tag_index;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _tag_size;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 5255 "Tag.c"
- }
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _tag_list;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _tag_index;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = (Tag*) _tmp10_;
-#line 632 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tag;
-#line 632 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = tag_get_user_visible_name (_tmp11_);
-#line 632 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_name = _tmp12_;
-#line 633 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = tag_name;
-#line 633 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = guarded_markup_escape_text (_tmp13_);
-#line 633 "/home/jens/Source/shotwell/src/Tag.vala"
- esc_tag_name = _tmp14_;
-#line 634 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = first;
-#line 634 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp15_) {
-#line 635 "/home/jens/Source/shotwell/src/Tag.vala"
- first = FALSE;
-#line 5283 "Tag.c"
- } else {
- GString* _tmp16_;
-#line 637 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = builder;
-#line 637 "/home/jens/Source/shotwell/src/Tag.vala"
- g_string_append (_tmp16_, TAG_TAG_LIST_SEPARATOR_STRING);
-#line 5290 "Tag.c"
- }
-#line 638 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = i;
-#line 638 "/home/jens/Source/shotwell/src/Tag.vala"
- if (highlight_index == _tmp17_) {
-#line 5296 "Tag.c"
- GString* _tmp18_;
-#line 639 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = builder;
-#line 639 "/home/jens/Source/shotwell/src/Tag.vala"
- g_string_append (_tmp18_, "<u>");
-#line 5302 "Tag.c"
- }
-#line 640 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = builder;
-#line 640 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = esc_tag_name;
-#line 640 "/home/jens/Source/shotwell/src/Tag.vala"
- g_string_append (_tmp19_, _tmp20_);
-#line 641 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = i;
-#line 641 "/home/jens/Source/shotwell/src/Tag.vala"
- if (highlight_index == _tmp21_) {
-#line 5314 "Tag.c"
- GString* _tmp22_;
-#line 642 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = builder;
-#line 642 "/home/jens/Source/shotwell/src/Tag.vala"
- g_string_append (_tmp22_, "</u>");
-#line 5320 "Tag.c"
- }
-#line 643 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = i;
-#line 643 "/home/jens/Source/shotwell/src/Tag.vala"
- i = _tmp23_ + 1;
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (esc_tag_name);
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (tag_name);
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 5332 "Tag.c"
- }
-#line 631 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tag_list);
-#line 5336 "Tag.c"
- }
-#line 646 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = builder;
-#line 646 "/home/jens/Source/shotwell/src/Tag.vala"
- g_string_append (_tmp24_, "</small>");
-#line 647 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = builder;
-#line 647 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = _tmp25_->str;
-#line 647 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = g_strdup (_tmp26_);
-#line 647 "/home/jens/Source/shotwell/src/Tag.vala"
- built = _tmp27_;
-#line 648 "/home/jens/Source/shotwell/src/Tag.vala"
- result = built;
-#line 648 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_string_free0 (builder);
-#line 648 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5356 "Tag.c"
-}
-
-
-gchar*
-tag_prep_tag_name (const gchar* name)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 653 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 654 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = prepare_input_text (name, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, DEFAULT_USER_TEXT_INPUT_LENGTH);
-#line 654 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp0_;
-#line 654 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5373 "Tag.c"
-}
-
-
-static void
-_vala_array_add127 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- if ((*length) == (*size)) {
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 5389 "Tag.c"
- }
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- (*array)[(*length)++] = value;
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- (*array)[*length] = NULL;
-#line 5395 "Tag.c"
-}
-
-
-gchar**
-tag_prep_tag_names (gchar** names,
- int names_length1,
- int* result_length1)
-{
- gchar** result = NULL;
- gchar** _result_ = NULL;
- gchar** _tmp0_;
- gint _result__length1;
- gint __result__size_;
- gchar** _tmp11_;
- gint _tmp11__length1;
-#line 660 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 660 "/home/jens/Source/shotwell/src/Tag.vala"
- _result_ = _tmp0_;
-#line 660 "/home/jens/Source/shotwell/src/Tag.vala"
- _result__length1 = 0;
-#line 660 "/home/jens/Source/shotwell/src/Tag.vala"
- __result__size_ = _result__length1;
-#line 5419 "Tag.c"
- {
- gint ctr = 0;
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- ctr = 0;
-#line 5424 "Tag.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = TRUE;
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 5431 "Tag.c"
- gint _tmp3_;
- gchar* new_name = NULL;
- gint _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!_tmp1_) {
-#line 5440 "Tag.c"
- gint _tmp2_;
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = ctr;
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- ctr = _tmp2_ + 1;
-#line 5446 "Tag.c"
- }
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = FALSE;
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = ctr;
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp3_ < names_length1)) {
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 5456 "Tag.c"
- }
-#line 663 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = ctr;
-#line 663 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = names[_tmp4_];
-#line 663 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = tag_prep_tag_name (_tmp5_);
-#line 663 "/home/jens/Source/shotwell/src/Tag.vala"
- new_name = _tmp6_;
-#line 664 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = new_name;
-#line 664 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp7_ != NULL) {
-#line 5470 "Tag.c"
- gchar** _tmp8_;
- gint _tmp8__length1;
- const gchar* _tmp9_;
- gchar* _tmp10_;
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _result_;
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8__length1 = _result__length1;
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = new_name;
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = g_strdup (_tmp9_);
-#line 665 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_array_add127 (&_result_, &_result__length1, &__result__size_, _tmp10_);
-#line 5485 "Tag.c"
- }
-#line 662 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_name);
-#line 5489 "Tag.c"
- }
- }
- }
-#line 668 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = _result_;
-#line 668 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11__length1 = _result__length1;
-#line 668 "/home/jens/Source/shotwell/src/Tag.vala"
- if (result_length1) {
-#line 668 "/home/jens/Source/shotwell/src/Tag.vala"
- *result_length1 = _tmp11__length1;
-#line 5501 "Tag.c"
- }
-#line 668 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp11_;
-#line 668 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5507 "Tag.c"
-}
-
-
-static void
-tag_set_raw_flat_name (Tag* self,
- const gchar* name)
-{
- gchar* prepped_name = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- TagRow* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- Alteration* _tmp12_;
- Alteration* _tmp13_;
- GError * _inner_error_ = NULL;
-#line 671 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 671 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (name != NULL);
-#line 672 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_prep_tag_name (name);
-#line 672 "/home/jens/Source/shotwell/src/Tag.vala"
- prepped_name = _tmp0_;
-#line 674 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = prepped_name;
-#line 674 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp1_ != NULL, "prepped_name != null");
-#line 675 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = prepped_name;
-#line 675 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (!g_str_has_prefix (_tmp2_, TAG_PATH_SEPARATOR_STRING), "!prepped_name.has_prefix(Tag.PATH_SEPARATOR_STRING)");
-#line 5541 "Tag.c"
- {
- TagTable* _tmp3_;
- TagTable* _tmp4_;
- TagRow* _tmp5_;
- TagID _tmp6_;
- const gchar* _tmp7_;
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = tag_table_get_instance ();
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _tmp3_;
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = self->priv->row;
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tmp5_->tag_id;
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = prepped_name;
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_table_rename (_tmp4_, &_tmp6_, _tmp7_, &_inner_error_);
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- _database_table_unref0 (_tmp4_);
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5566 "Tag.c"
- goto __catch483_database_error;
- }
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prepped_name);
-#line 678 "/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);
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 678 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 5577 "Tag.c"
- }
- }
- goto __finally483;
- __catch483_database_error:
- {
- GError* err = NULL;
- GError* _tmp8_;
-#line 677 "/home/jens/Source/shotwell/src/Tag.vala"
- err = _inner_error_;
-#line 677 "/home/jens/Source/shotwell/src/Tag.vala"
- _inner_error_ = NULL;
-#line 680 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = err;
-#line 680 "/home/jens/Source/shotwell/src/Tag.vala"
- app_window_database_error (_tmp8_);
-#line 681 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_error_free0 (err);
-#line 681 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prepped_name);
-#line 681 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 5599 "Tag.c"
- }
- __finally483:
-#line 677 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 677 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prepped_name);
-#line 677 "/home/jens/Source/shotwell/src/Tag.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 677 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 677 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 5612 "Tag.c"
- }
-#line 684 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = self->priv->row;
-#line 684 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = prepped_name;
-#line 684 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 684 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp9_->name);
-#line 684 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_->name = _tmp11_;
-#line 685 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (self->priv->name_collation_key);
-#line 685 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->name_collation_key = NULL;
-#line 687 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_update_indexable_keywords (self);
-#line 689 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = alteration_new_from_list ("metadata:name, indexable:keywords");
-#line 689 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = _tmp12_;
-#line 689 "/home/jens/Source/shotwell/src/Tag.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_);
-#line 689 "/home/jens/Source/shotwell/src/Tag.vala"
- _alteration_unref0 (_tmp13_);
-#line 671 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prepped_name);
-#line 5640 "Tag.c"
-}
-
-
-static void
-tag_set_raw_path (Tag* self,
- const gchar* path,
- gboolean suppress_notify)
-{
- gchar* prepped_path = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- TagSourceCollection* _tmp3_;
- const gchar* _tmp4_;
- TagRow* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- GError * _inner_error_ = NULL;
-#line 692 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 692 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (path != NULL);
-#line 693 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_prep_tag_name (path);
-#line 693 "/home/jens/Source/shotwell/src/Tag.vala"
- prepped_path = _tmp0_;
-#line 695 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = prepped_path;
-#line 695 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp1_ != NULL, "prepped_path != null");
-#line 696 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = prepped_path;
-#line 696 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (g_str_has_prefix (_tmp2_, TAG_PATH_SEPARATOR_STRING), "prepped_path.has_prefix(Tag.PATH_SEPARATOR_STRING)");
-#line 697 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = tag_global;
-#line 697 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = prepped_path;
-#line 697 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (!tag_source_collection_exists (_tmp3_, _tmp4_, FALSE), "!Tag.global.exists(prepped_path)");
-#line 5681 "Tag.c"
- {
- TagTable* _tmp5_;
- TagTable* _tmp6_;
- TagRow* _tmp7_;
- TagID _tmp8_;
- const gchar* _tmp9_;
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = tag_table_get_instance ();
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tmp5_;
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = self->priv->row;
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _tmp7_->tag_id;
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = prepped_path;
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_table_rename (_tmp6_, &_tmp8_, _tmp9_, &_inner_error_);
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- _database_table_unref0 (_tmp6_);
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5706 "Tag.c"
- goto __catch484_database_error;
- }
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prepped_path);
-#line 700 "/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);
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 700 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 5717 "Tag.c"
- }
- }
- goto __finally484;
- __catch484_database_error:
- {
- GError* err = NULL;
- GError* _tmp10_;
-#line 699 "/home/jens/Source/shotwell/src/Tag.vala"
- err = _inner_error_;
-#line 699 "/home/jens/Source/shotwell/src/Tag.vala"
- _inner_error_ = NULL;
-#line 702 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = err;
-#line 702 "/home/jens/Source/shotwell/src/Tag.vala"
- app_window_database_error (_tmp10_);
-#line 703 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_error_free0 (err);
-#line 703 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prepped_path);
-#line 703 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 5739 "Tag.c"
- }
- __finally484:
-#line 699 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 699 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prepped_path);
-#line 699 "/home/jens/Source/shotwell/src/Tag.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 699 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 699 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 5752 "Tag.c"
- }
-#line 706 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = self->priv->row;
-#line 706 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = prepped_path;
-#line 706 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 706 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp11_->name);
-#line 706 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_->name = _tmp13_;
-#line 707 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (self->priv->name_collation_key);
-#line 707 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->name_collation_key = NULL;
-#line 709 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!suppress_notify) {
-#line 5770 "Tag.c"
- Alteration* _tmp14_;
- Alteration* _tmp15_;
-#line 710 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_update_indexable_keywords (self);
-#line 711 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = alteration_new_from_list ("metadata:name, indexable:keywords");
-#line 711 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _tmp14_;
-#line 711 "/home/jens/Source/shotwell/src/Tag.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_);
-#line 711 "/home/jens/Source/shotwell/src/Tag.vala"
- _alteration_unref0 (_tmp15_);
-#line 5783 "Tag.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prepped_path);
-#line 5787 "Tag.c"
-}
-
-
-static gchar*
-tag_real_get_typename (DataSource* base)
-{
- Tag * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 715 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 716 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = g_strdup (TAG_TYPENAME);
-#line 716 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp0_;
-#line 716 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5805 "Tag.c"
-}
-
-
-static gint64
-tag_real_get_instance_id (DataSource* base)
-{
- Tag * self;
- gint64 result = 0LL;
- TagID _tmp0_ = {0};
- gint64 _tmp1_;
-#line 719 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 720 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_get_tag_id (self, &_tmp0_);
-#line 720 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_.id;
-#line 720 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp1_;
-#line 720 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5826 "Tag.c"
-}
-
-
-static gchar*
-tag_real_get_name (DataObject* base)
-{
- Tag * self;
- gchar* result = NULL;
- TagRow* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 723 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 724 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->row;
-#line 724 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_->name;
-#line 724 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 724 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp2_;
-#line 724 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5850 "Tag.c"
-}
-
-
-gchar*
-tag_get_path (Tag* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 727 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 728 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 728 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp0_;
-#line 728 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5867 "Tag.c"
-}
-
-
-gchar*
-tag_get_user_visible_name (Tag* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 731 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 732 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_path (self);
-#line 732 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 732 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = hierarchical_tag_utilities_get_basename (_tmp1_);
-#line 732 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 732 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 732 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp3_;
-#line 732 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5895 "Tag.c"
-}
-
-
-gchar*
-tag_get_searchable_name (Tag* self)
-{
- gchar* result = NULL;
- gchar* istring = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 735 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_path (self);
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = hierarchical_tag_utilities_get_basename (_tmp1_);
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1);
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp4_;
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp3_);
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 736 "/home/jens/Source/shotwell/src/Tag.vala"
- istring = _tmp5_;
-#line 737 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = string_remove_diacritics (istring);
-#line 737 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp6_;
-#line 737 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (istring);
-#line 737 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 5939 "Tag.c"
-}
-
-
-void
-tag_flatten (Tag* self)
-{
- Tag* _tmp0_;
- Tag* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 740 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 741 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_hierarchical_parent (self);
-#line 741 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 741 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp1_ == NULL, "get_hierarchical_parent() == null");
-#line 741 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp1_);
-#line 743 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_get_user_visible_name (self);
-#line 743 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 743 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_set_raw_flat_name (self, _tmp3_);
-#line 743 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp3_);
-#line 5968 "Tag.c"
-}
-
-
-void
-tag_promote (Tag* self)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 746 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 747 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_path (self);
-#line 747 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 747 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = g_str_has_prefix (_tmp1_, TAG_PATH_SEPARATOR_STRING);
-#line 747 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 747 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp2_) {
-#line 748 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 5996 "Tag.c"
- }
-#line 750 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = tag_get_path (self);
-#line 750 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _tmp3_;
-#line 750 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp4_, NULL);
-#line 750 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tmp5_;
-#line 750 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_set_raw_path (self, _tmp6_, FALSE);
-#line 750 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp6_);
-#line 750 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp4_);
-#line 6012 "Tag.c"
-}
-
-
-Tag*
-tag_get_hierarchical_parent (Tag* self)
-{
- Tag* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
- GeeList* components = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- GeeList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- GeeList* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gchar* parent_path = NULL;
- gchar* _tmp13_;
- TagSourceCollection* _tmp28_;
- const gchar* _tmp29_;
-#line 753 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 755 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_path (self);
-#line 755 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 755 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = !g_str_has_prefix (_tmp1_, TAG_PATH_SEPARATOR_STRING);
-#line 755 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 755 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp2_) {
-#line 756 "/home/jens/Source/shotwell/src/Tag.vala"
- result = NULL;
-#line 756 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6054 "Tag.c"
- }
-#line 758 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = tag_get_path (self);
-#line 758 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _tmp3_;
-#line 758 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = hierarchical_tag_utilities_enumerate_path_components (_tmp4_);
-#line 758 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tmp5_;
-#line 758 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp4_);
-#line 758 "/home/jens/Source/shotwell/src/Tag.vala"
- components = _tmp6_;
-#line 761 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = components;
-#line 761 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 761 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _tmp8_;
-#line 761 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp9_ > 0, "components.size > 0");
-#line 763 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = components;
-#line 763 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 763 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = _tmp11_;
-#line 763 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp12_ == 1) {
-#line 764 "/home/jens/Source/shotwell/src/Tag.vala"
- result = NULL;
-#line 764 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (components);
-#line 764 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6090 "Tag.c"
- }
-#line 767 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = g_strdup ("");
-#line 767 "/home/jens/Source/shotwell/src/Tag.vala"
- parent_path = _tmp13_;
-#line 6096 "Tag.c"
- {
- gint i = 0;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- i = 0;
-#line 6101 "Tag.c"
- {
- gboolean _tmp14_ = FALSE;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = TRUE;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 6108 "Tag.c"
- gint _tmp16_;
- GeeList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- const gchar* _tmp20_;
- GeeList* _tmp21_;
- gint _tmp22_;
- gpointer _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!_tmp14_) {
-#line 6123 "Tag.c"
- gint _tmp15_;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = i;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- i = _tmp15_ + 1;
-#line 6129 "Tag.c"
- }
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = FALSE;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = i;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = components;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = _tmp18_;
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp16_ < (_tmp19_ - 1))) {
-#line 768 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 6145 "Tag.c"
- }
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = parent_path;
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = components;
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = i;
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = gee_list_get (_tmp21_, _tmp22_);
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = (gchar*) _tmp23_;
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp24_, NULL);
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = _tmp25_;
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = g_strconcat (_tmp20_, _tmp26_, NULL);
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (parent_path);
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- parent_path = _tmp27_;
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp26_);
-#line 769 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp24_);
-#line 6171 "Tag.c"
- }
- }
- }
-#line 771 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = tag_global;
-#line 771 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = parent_path;
-#line 771 "/home/jens/Source/shotwell/src/Tag.vala"
- if (tag_source_collection_exists (_tmp28_, _tmp29_, FALSE)) {
-#line 6181 "Tag.c"
- const gchar* _tmp30_;
- Tag* _tmp31_;
-#line 772 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = parent_path;
-#line 772 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = tag_for_path (_tmp30_);
-#line 772 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp31_;
-#line 772 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (parent_path);
-#line 772 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (components);
-#line 772 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6196 "Tag.c"
- } else {
-#line 774 "/home/jens/Source/shotwell/src/Tag.vala"
- result = NULL;
-#line 774 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (parent_path);
-#line 774 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (components);
-#line 774 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6206 "Tag.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (parent_path);
-#line 753 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (components);
-#line 6212 "Tag.c"
-}
-
-
-gint
-tag_get_attachment_count (Tag* self,
- MediaSource* source)
-{
- gint result = 0;
- gint _result_ = 0;
-#line 777 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), 0);
-#line 777 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), 0);
-#line 779 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!tag_contains (self, source)) {
-#line 780 "/home/jens/Source/shotwell/src/Tag.vala"
- result = 0;
-#line 780 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6232 "Tag.c"
- }
-#line 783 "/home/jens/Source/shotwell/src/Tag.vala"
- _result_ = 1;
-#line 6236 "Tag.c"
- {
- GeeList* _child_list = NULL;
- GeeList* _tmp0_;
- gint _child_size = 0;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _child_index = 0;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_hierarchical_children (self);
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_list = _tmp0_;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _child_list;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_size = _tmp3_;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_index = -1;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 6261 "Tag.c"
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- Tag* child = NULL;
- GeeList* _tmp7_;
- gint _tmp8_;
- gpointer _tmp9_;
- Tag* _tmp10_;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _child_index;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_index = _tmp4_ + 1;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _child_index;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _child_size;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp5_ < _tmp6_)) {
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 6282 "Tag.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _child_list;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _child_index;
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = gee_list_get (_tmp7_, _tmp8_);
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- child = (Tag*) _tmp9_;
-#line 787 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = child;
-#line 787 "/home/jens/Source/shotwell/src/Tag.vala"
- if (tag_contains (_tmp10_, source)) {
-#line 6296 "Tag.c"
- gint _tmp11_;
-#line 788 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = _result_;
-#line 788 "/home/jens/Source/shotwell/src/Tag.vala"
- _result_ = _tmp11_ + 1;
-#line 6302 "Tag.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (child);
-#line 6306 "Tag.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_child_list);
-#line 6310 "Tag.c"
- }
-#line 790 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _result_;
-#line 790 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6316 "Tag.c"
-}
-
-
-/**
- * gets all hierarchical children of a tag recursively; tags are enumerated from most-derived
- * to least-derived
- */
-GeeList*
-tag_get_hierarchical_children (Tag* self)
-{
- GeeList* result = NULL;
- GeeArrayList* _result_ = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* result_reversed = NULL;
- GeeArrayList* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
- GeeTreeSet* forward_sorted_paths = NULL;
- GeeTreeSet* _tmp5_;
- gchar* target_path = NULL;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 797 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 798 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 798 "/home/jens/Source/shotwell/src/Tag.vala"
- _result_ = _tmp0_;
-#line 799 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 799 "/home/jens/Source/shotwell/src/Tag.vala"
- result_reversed = _tmp1_;
-#line 802 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_get_path (self);
-#line 802 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 802 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = !g_str_has_prefix (_tmp3_, TAG_PATH_SEPARATOR_STRING);
-#line 802 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp3_);
-#line 802 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp4_) {
-#line 803 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_LIST, GeeList);
-#line 803 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (result_reversed);
-#line 803 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6368 "Tag.c"
- }
-#line 807 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 807 "/home/jens/Source/shotwell/src/Tag.vala"
- forward_sorted_paths = _tmp5_;
-#line 809 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = tag_get_path (self);
-#line 809 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _tmp6_;
-#line 809 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = g_strconcat (_tmp7_, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 809 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _tmp8_;
-#line 809 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp7_);
-#line 809 "/home/jens/Source/shotwell/src/Tag.vala"
- target_path = _tmp9_;
-#line 6386 "Tag.c"
- {
- GeeIterator* _path_it = NULL;
- TagSourceCollection* _tmp10_;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
- GeeIterator* _tmp13_;
- GeeIterator* _tmp14_;
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = tag_global;
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tag_source_collection_get_all_names (_tmp10_);
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = _tmp11_;
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = _tmp13_;
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp12_);
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _path_it = _tmp14_;
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 6410 "Tag.c"
- GeeIterator* _tmp15_;
- gchar* path = NULL;
- GeeIterator* _tmp16_;
- gpointer _tmp17_;
- const gchar* _tmp18_;
- const gchar* _tmp19_;
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _path_it;
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp15_)) {
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 6423 "Tag.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = _path_it;
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = gee_iterator_get (_tmp16_);
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- path = (gchar*) _tmp17_;
-#line 811 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = path;
-#line 811 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = target_path;
-#line 811 "/home/jens/Source/shotwell/src/Tag.vala"
- if (g_str_has_prefix (_tmp18_, _tmp19_)) {
-#line 6437 "Tag.c"
- GeeTreeSet* _tmp20_;
- const gchar* _tmp21_;
-#line 812 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = forward_sorted_paths;
-#line 812 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = path;
-#line 812 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_);
-#line 6446 "Tag.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (path);
-#line 6450 "Tag.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_path_it);
-#line 6454 "Tag.c"
- }
- {
- GeeIterator* _tmp_it = NULL;
- GeeTreeSet* _tmp22_;
- GeeIterator* _tmp23_;
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = forward_sorted_paths;
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp_it = _tmp23_;
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 6468 "Tag.c"
- GeeIterator* _tmp24_;
- gchar* tmp = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- GeeArrayList* _tmp27_;
- const gchar* _tmp28_;
- Tag* _tmp29_;
- Tag* _tmp30_;
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = _tmp_it;
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp24_)) {
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 6483 "Tag.c"
- }
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = _tmp_it;
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- tmp = (gchar*) _tmp26_;
-#line 816 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = result_reversed;
-#line 816 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = tmp;
-#line 816 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = tag_for_path (_tmp28_);
-#line 816 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = _tmp29_;
-#line 816 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp30_);
-#line 816 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp30_);
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (tmp);
-#line 6505 "Tag.c"
- }
-#line 815 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp_it);
-#line 6509 "Tag.c"
- }
- {
- gint index = 0;
- GeeArrayList* _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = result_reversed;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp33_ = _tmp32_;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- index = _tmp33_ - 1;
-#line 6524 "Tag.c"
- {
- gboolean _tmp34_ = FALSE;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = TRUE;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 6531 "Tag.c"
- gint _tmp36_;
- GeeArrayList* _tmp37_;
- GeeArrayList* _tmp38_;
- gint _tmp39_;
- gpointer _tmp40_;
- Tag* _tmp41_;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!_tmp34_) {
-#line 6540 "Tag.c"
- gint _tmp35_;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp35_ = index;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- index = _tmp35_ - 1;
-#line 6546 "Tag.c"
- }
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = FALSE;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp36_ = index;
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp36_ >= 0)) {
-#line 819 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 6556 "Tag.c"
- }
-#line 820 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp37_ = _result_;
-#line 820 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp38_ = result_reversed;
-#line 820 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp39_ = index;
-#line 820 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp40_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp39_);
-#line 820 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp41_ = (Tag*) _tmp40_;
-#line 820 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp41_);
-#line 820 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp41_);
-#line 6572 "Tag.c"
- }
- }
- }
-#line 823 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_LIST, GeeList);
-#line 823 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (target_path);
-#line 823 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (forward_sorted_paths);
-#line 823 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (result_reversed);
-#line 823 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6586 "Tag.c"
-}
-
-
-static gchar*
-tag_get_next_untitled_tag_name (const gchar* _prefix)
-{
- gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* prefix = NULL;
- gchar* _tmp1_;
- gchar* candidate_name = NULL;
- gchar* _tmp2_;
- guint64 counter = 0ULL;
-#line 829 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_prefix != NULL) {
-#line 829 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = _prefix;
-#line 6604 "Tag.c"
- } else {
-#line 829 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = "";
-#line 6608 "Tag.c"
- }
-#line 829 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 829 "/home/jens/Source/shotwell/src/Tag.vala"
- prefix = _tmp1_;
-#line 830 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = g_strdup (_ ("untitled"));
-#line 830 "/home/jens/Source/shotwell/src/Tag.vala"
- candidate_name = _tmp2_;
-#line 831 "/home/jens/Source/shotwell/src/Tag.vala"
- counter = (guint64) 0;
-#line 6620 "Tag.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 832 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = TRUE;
-#line 832 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 6627 "Tag.c"
- gchar* _tmp5_ = NULL;
- guint64 _tmp6_;
- gchar* path_candidate = NULL;
- const gchar* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- TagSourceCollection* _tmp18_;
- const gchar* _tmp19_;
- guint64 _tmp20_;
-#line 832 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!_tmp3_) {
-#line 6642 "Tag.c"
- guint64 _tmp4_;
-#line 840 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = counter;
-#line 840 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp4_ < G_MAXUINT64)) {
-#line 840 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 6650 "Tag.c"
- }
- }
-#line 832 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = FALSE;
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = counter;
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp6_ == ((guint64) 0)) {
-#line 6659 "Tag.c"
- gchar* _tmp7_;
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = g_strdup ("");
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp5_);
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp7_;
-#line 6667 "Tag.c"
- } else {
- guint64 _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = counter;
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp8_);
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = _tmp9_;
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = g_strconcat (" ", _tmp10_, NULL);
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp5_);
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp11_;
-#line 834 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp10_);
-#line 6687 "Tag.c"
- }
-#line 833 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = prefix;
-#line 833 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = candidate_name;
-#line 833 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = g_strconcat (_tmp12_, _tmp13_, NULL);
-#line 833 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _tmp14_;
-#line 833 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = g_strconcat (_tmp15_, _tmp5_, NULL);
-#line 833 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = _tmp16_;
-#line 833 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp15_);
-#line 833 "/home/jens/Source/shotwell/src/Tag.vala"
- path_candidate = _tmp17_;
-#line 836 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = tag_global;
-#line 836 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = path_candidate;
-#line 836 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!tag_source_collection_exists (_tmp18_, _tmp19_, FALSE)) {
-#line 837 "/home/jens/Source/shotwell/src/Tag.vala"
- result = path_candidate;
-#line 837 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp5_);
-#line 837 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (candidate_name);
-#line 837 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prefix);
-#line 837 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6721 "Tag.c"
- }
-#line 839 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = counter;
-#line 839 "/home/jens/Source/shotwell/src/Tag.vala"
- counter = _tmp20_ + 1;
-#line 832 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (path_candidate);
-#line 832 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp5_);
-#line 6731 "Tag.c"
- }
- }
-#line 843 "/home/jens/Source/shotwell/src/Tag.vala"
- g_assert_not_reached ();
-#line 828 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (candidate_name);
-#line 828 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (prefix);
-#line 6740 "Tag.c"
-}
-
-
-Tag*
-tag_create_new_child (Tag* self)
-{
- Tag* result = NULL;
- gchar* path_prefix = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- Tag* _tmp12_;
- Tag* _tmp13_;
-#line 846 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 847 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_path (self);
-#line 847 "/home/jens/Source/shotwell/src/Tag.vala"
- path_prefix = _tmp0_;
-#line 849 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = path_prefix;
-#line 849 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!g_str_has_prefix (_tmp1_, TAG_PATH_SEPARATOR_STRING)) {
-#line 6768 "Tag.c"
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 850 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_get_path (self);
-#line 850 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 850 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp3_);
-#line 850 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp4_;
-#line 850 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_set_raw_path (self, _tmp5_, FALSE);
-#line 850 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp5_);
-#line 850 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp3_);
-#line 852 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = tag_get_path (self);
-#line 852 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (path_prefix);
-#line 852 "/home/jens/Source/shotwell/src/Tag.vala"
- path_prefix = _tmp6_;
-#line 6794 "Tag.c"
- }
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = path_prefix;
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = g_strconcat (_tmp7_, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _tmp8_;
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = tag_get_next_untitled_tag_name (_tmp9_);
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = _tmp10_;
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = tag_for_path (_tmp11_);
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = _tmp12_;
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp11_);
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp9_);
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp13_;
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (path_prefix);
-#line 855 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6820 "Tag.c"
-}
-
-
-Tag*
-tag_create_new_root (void)
-{
- Tag* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- Tag* _tmp2_;
- Tag* _tmp3_;
-#line 859 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_next_untitled_tag_name (NULL);
-#line 859 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 859 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_for_path (_tmp1_);
-#line 859 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 859 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 859 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp3_;
-#line 859 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6846 "Tag.c"
-}
-
-
-gchar*
-tag_get_name_collation_key (Tag* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
-#line 862 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 863 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->name_collation_key;
-#line 863 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp0_ == NULL) {
-#line 6863 "Tag.c"
- TagRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 864 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = self->priv->row;
-#line 864 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _tmp1_->name;
-#line 864 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = g_utf8_collate_key (_tmp2_, (gssize) -1);
-#line 864 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (self->priv->name_collation_key);
-#line 864 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->name_collation_key = _tmp3_;
-#line 6877 "Tag.c"
- }
-#line 866 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = self->priv->name_collation_key;
-#line 866 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 866 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp5_;
-#line 866 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6887 "Tag.c"
-}
-
-
-static gchar*
-tag_real_to_string (DataObject* base)
-{
- Tag * self;
- gchar* result = NULL;
- TagRow* _tmp0_;
- const gchar* _tmp1_;
- ViewCollection* _tmp2_;
- gchar* _tmp3_;
-#line 869 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 870 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->row;
-#line 870 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_->name;
-#line 870 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = self->priv->media_views;
-#line 870 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = g_strdup_printf ("Tag %s (%d sources)", _tmp1_, data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection)));
-#line 870 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp3_;
-#line 870 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6914 "Tag.c"
-}
-
-
-static gboolean
-tag_real_equals (DataSource* base,
- DataSource* source)
-{
- Tag * self;
- gboolean result = FALSE;
- Tag* tag = NULL;
- Tag* _tmp0_;
- Tag* _tmp1_;
-#line 873 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 873 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE);
-#line 875 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TAG) ? ((Tag*) source) : NULL);
-#line 875 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp0_;
-#line 876 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = tag;
-#line 876 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp1_ != NULL) {
-#line 6939 "Tag.c"
- Tag* _tmp2_;
-#line 877 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag;
-#line 877 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp2_ != self) {
-#line 6945 "Tag.c"
- Tag* _tmp3_;
- TagRow* _tmp4_;
- TagID _tmp5_;
- gint64 _tmp6_;
- TagRow* _tmp7_;
- TagID _tmp8_;
- gint64 _tmp9_;
-#line 878 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = tag;
-#line 878 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _tmp3_->priv->row;
-#line 878 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp4_->tag_id;
-#line 878 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tmp5_.id;
-#line 878 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = self->priv->row;
-#line 878 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _tmp7_->tag_id;
-#line 878 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _tmp8_.id;
-#line 878 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp6_ != _tmp9_, "tag.row.tag_id.id != row.tag_id.id");
-#line 6969 "Tag.c"
- }
- }
-#line 882 "/home/jens/Source/shotwell/src/Tag.vala"
- result = DATA_SOURCE_CLASS (tag_parent_class)->equals (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), source);
-#line 882 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (tag);
-#line 882 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 6978 "Tag.c"
-}
-
-
-void
-tag_get_tag_id (Tag* self,
- TagID* result)
-{
- TagRow* _tmp0_;
- TagID _tmp1_;
-#line 885 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 886 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->row;
-#line 886 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_->tag_id;
-#line 886 "/home/jens/Source/shotwell/src/Tag.vala"
- *result = _tmp1_;
-#line 886 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 6998 "Tag.c"
-}
-
-
-static SourceSnapshot*
-tag_real_save_snapshot (DataSource* base)
-{
- Tag * self;
- SourceSnapshot* result = NULL;
- TagTagSnapshot* _tmp0_;
-#line 889 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 890 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_tag_snapshot_new (self);
-#line 890 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_SNAPSHOT, SourceSnapshot);
-#line 890 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7016 "Tag.c"
-}
-
-
-static SourceProxy*
-tag_real_get_proxy (Proxyable* base)
-{
- Tag * self;
- SourceProxy* result = NULL;
- TagTagProxy* _tmp0_;
-#line 893 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 894 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_tag_proxy_new (self);
-#line 894 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_PROXY, SourceProxy);
-#line 894 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7034 "Tag.c"
-}
-
-
-Tag*
-tag_reconstitute (gint64 object_id,
- TagRow* row)
-{
- Tag* result = NULL;
- Tag* tag = NULL;
- Tag* _tmp6_;
- TagSourceCollection* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 897 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG_ROW (row), NULL);
-#line 7051 "Tag.c"
- {
- TagID _tmp0_ = {0};
- TagTable* _tmp1_;
- TagTable* _tmp2_;
- TagID _tmp3_ = {0};
- TagID _tmp4_;
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = tag_table_get_instance ();
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _tmp1_;
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_table_create_from_row (_tmp2_, row, &_tmp3_, &_inner_error_);
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _tmp3_;
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- _database_table_unref0 (_tmp2_);
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = _tmp4_;
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 7074 "Tag.c"
- goto __catch485_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);
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- return NULL;
-#line 7083 "Tag.c"
- }
-#line 900 "/home/jens/Source/shotwell/src/Tag.vala"
- row->tag_id = _tmp0_;
-#line 7087 "Tag.c"
- }
- goto __finally485;
- __catch485_database_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 899 "/home/jens/Source/shotwell/src/Tag.vala"
- err = _inner_error_;
-#line 899 "/home/jens/Source/shotwell/src/Tag.vala"
- _inner_error_ = NULL;
-#line 902 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = err;
-#line 902 "/home/jens/Source/shotwell/src/Tag.vala"
- app_window_database_error (_tmp5_);
-#line 899 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_error_free0 (err);
-#line 7104 "Tag.c"
- }
- __finally485:
-#line 899 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 899 "/home/jens/Source/shotwell/src/Tag.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 899 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 899 "/home/jens/Source/shotwell/src/Tag.vala"
- return NULL;
-#line 7115 "Tag.c"
- }
-#line 905 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = tag_new (row, object_id);
-#line 905 "/home/jens/Source/shotwell/src/Tag.vala"
- tag = _tmp6_;
-#line 906 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = tag_global;
-#line 906 "/home/jens/Source/shotwell/src/Tag.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
-#line 908 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
-#line 908 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _tmp8_;
-#line 908 "/home/jens/Source/shotwell/src/Tag.vala"
- g_debug ("Tag.vala:908: Reconstituted %s", _tmp9_);
-#line 908 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp9_);
-#line 910 "/home/jens/Source/shotwell/src/Tag.vala"
- result = tag;
-#line 910 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7137 "Tag.c"
-}
-
-
-static gboolean
-tag_real_has_links (ContainerSource* base)
-{
- Tag * self;
- gboolean result = FALSE;
- LibraryPhotoSourceCollection* _tmp0_;
- SourceBacklink* _tmp1_;
- SourceBacklink* _tmp2_;
- gboolean _tmp3_;
-#line 913 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 914 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = library_photo_global;
-#line 914 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource));
-#line 914 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _tmp1_;
-#line 914 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = source_collection_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp2_);
-#line 914 "/home/jens/Source/shotwell/src/Tag.vala"
- _source_backlink_unref0 (_tmp2_);
-#line 914 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp3_;
-#line 914 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7166 "Tag.c"
-}
-
-
-static SourceBacklink*
-tag_real_get_backlink (ContainerSource* base)
-{
- Tag * self;
- SourceBacklink* result = NULL;
- SourceBacklink* _tmp0_;
-#line 917 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 918 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = source_backlink_new_from_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
-#line 918 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp0_;
-#line 918 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7184 "Tag.c"
-}
-
-
-static void
-tag_real_break_link (ContainerSource* base,
- DataSource* source)
-{
- Tag * self;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
-#line 921 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 921 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 922 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->unlinking = TRUE;
-#line 924 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_detach (self, G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
-#line 924 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 924 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp1_);
-#line 926 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->unlinking = FALSE;
-#line 7209 "Tag.c"
-}
-
-
-static void
-tag_real_break_link_many (ContainerSource* base,
- GeeCollection* sources)
-{
- Tag * self;
- GeeMultiMap* _tmp0_;
- GeeMultiMap* _tmp1_;
-#line 929 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 929 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 930 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->unlinking = TRUE;
-#line 932 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_detach_many (self, G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection));
-#line 932 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 932 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp1_);
-#line 934 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->unlinking = FALSE;
-#line 7234 "Tag.c"
-}
-
-
-static void
-tag_real_establish_link (ContainerSource* base,
- DataSource* source)
-{
- Tag * self;
-#line 937 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 937 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 938 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->relinking = TRUE;
-#line 940 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_attach (self, G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
-#line 942 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->relinking = FALSE;
-#line 7253 "Tag.c"
-}
-
-
-static void
-tag_real_establish_link_many (ContainerSource* base,
- GeeCollection* sources)
-{
- Tag * self;
-#line 945 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 945 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 946 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->relinking = TRUE;
-#line 948 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_attach_many (self, G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection));
-#line 950 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->relinking = FALSE;
-#line 7272 "Tag.c"
-}
-
-
-static void
-tag_update_indexable_keywords (Tag* self)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 953 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 954 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_searchable_name (self);
-#line 954 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 954 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = indexable_prepare_indexable_string (_tmp1_);
-#line 954 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (self->priv->indexable_keywords);
-#line 954 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->indexable_keywords = _tmp2_;
-#line 954 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 7296 "Tag.c"
-}
-
-
-static const gchar*
-tag_real_get_indexable_keywords (Indexable* base)
-{
- Tag * self;
- const gchar* result = NULL;
- const gchar* _tmp0_;
-#line 957 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 958 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->indexable_keywords;
-#line 958 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp0_;
-#line 958 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7314 "Tag.c"
-}
-
-
-void
-tag_attach (Tag* self,
- MediaSource* source)
-{
- Tag* attach_to = NULL;
- Tag* _tmp0_;
-#line 961 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 961 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (source));
-#line 962 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 962 "/home/jens/Source/shotwell/src/Tag.vala"
- attach_to = _tmp0_;
-#line 963 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 7334 "Tag.c"
- Tag* _tmp1_;
- Tag* _tmp2_;
- ViewCollection* _tmp3_;
- Tag* _tmp8_;
- Tag* _tmp9_;
-#line 963 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = attach_to;
-#line 963 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp1_ != NULL)) {
-#line 963 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 7346 "Tag.c"
- }
-#line 964 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = attach_to;
-#line 964 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_->priv->media_views;
-#line 964 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!view_collection_has_view_for_source (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource))) {
-#line 7354 "Tag.c"
- Tag* _tmp4_;
- ViewCollection* _tmp5_;
- ThumbnailView* _tmp6_;
- ThumbnailView* _tmp7_;
-#line 965 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = attach_to;
-#line 965 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp4_->priv->media_views;
-#line 965 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 965 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _tmp6_;
-#line 965 "/home/jens/Source/shotwell/src/Tag.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject));
-#line 965 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp7_);
-#line 7371 "Tag.c"
- }
-#line 968 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = attach_to;
-#line 968 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = tag_get_hierarchical_parent (_tmp8_);
-#line 968 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (attach_to);
-#line 968 "/home/jens/Source/shotwell/src/Tag.vala"
- attach_to = _tmp9_;
-#line 7381 "Tag.c"
- }
-#line 961 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (attach_to);
-#line 7385 "Tag.c"
-}
-
-
-void
-tag_attach_many (Tag* self,
- GeeCollection* sources)
-{
- Tag* attach_to = NULL;
- Tag* _tmp0_;
-#line 972 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 972 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 973 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = _g_object_ref0 (self);
-#line 973 "/home/jens/Source/shotwell/src/Tag.vala"
- attach_to = _tmp0_;
-#line 974 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 7405 "Tag.c"
- Tag* _tmp1_;
- GeeArrayList* view_list = NULL;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- Tag* _tmp22_;
- Tag* _tmp23_;
-#line 974 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = attach_to;
-#line 974 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp1_ != NULL)) {
-#line 974 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 7420 "Tag.c"
- }
-#line 975 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 975 "/home/jens/Source/shotwell/src/Tag.vala"
- view_list = _tmp2_;
-#line 7426 "Tag.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp3_;
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- _source_it = _tmp3_;
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 7436 "Tag.c"
- GeeIterator* _tmp4_;
- MediaSource* source = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- Tag* _tmp7_;
- ViewCollection* _tmp8_;
- MediaSource* _tmp9_;
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _source_it;
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 7450 "Tag.c"
- }
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _source_it;
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- source = (MediaSource*) _tmp6_;
-#line 977 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = attach_to;
-#line 977 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _tmp7_->priv->media_views;
-#line 977 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = source;
-#line 977 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!view_collection_has_view_for_source (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource))) {
-#line 7466 "Tag.c"
- GeeArrayList* _tmp10_;
- MediaSource* _tmp11_;
- ThumbnailView* _tmp12_;
- ThumbnailView* _tmp13_;
-#line 978 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = view_list;
-#line 978 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = source;
-#line 978 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 978 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = _tmp12_;
-#line 978 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_);
-#line 978 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp13_);
-#line 7483 "Tag.c"
- }
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source);
-#line 7487 "Tag.c"
- }
-#line 976 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_source_it);
-#line 7491 "Tag.c"
- }
-#line 981 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = view_list;
-#line 981 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 981 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = _tmp15_;
-#line 981 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp16_ > 0) {
-#line 7501 "Tag.c"
- Tag* _tmp17_;
- ViewCollection* _tmp18_;
- GeeArrayList* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
-#line 982 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = attach_to;
-#line 982 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = _tmp17_->priv->media_views;
-#line 982 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = view_list;
-#line 982 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 982 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = _tmp20_;
-#line 982 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp21_);
-#line 7519 "Tag.c"
- }
-#line 984 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = attach_to;
-#line 984 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = tag_get_hierarchical_parent (_tmp22_);
-#line 984 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (attach_to);
-#line 984 "/home/jens/Source/shotwell/src/Tag.vala"
- attach_to = _tmp23_;
-#line 974 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (view_list);
-#line 7531 "Tag.c"
- }
-#line 972 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (attach_to);
-#line 7535 "Tag.c"
-}
-
-
-GeeList*
-tag_detach (Tag* self,
- MediaSource* source)
-{
- GeeList* result = NULL;
- DataView* this_view = NULL;
- ViewCollection* _tmp0_;
- DataView* _tmp1_;
- DataView* _tmp2_;
- GeeList* detached_from = NULL;
- GeeArrayList* _tmp3_;
- ViewCollection* _tmp27_;
- ViewCollection* _tmp28_;
- DataView* _tmp29_;
- Marker* _tmp30_;
- Marker* _tmp31_;
- GeeList* _tmp32_;
-#line 991 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 991 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 992 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->media_views;
-#line 992 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = view_collection_get_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 992 "/home/jens/Source/shotwell/src/Tag.vala"
- this_view = _tmp1_;
-#line 993 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = this_view;
-#line 993 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp2_ == NULL) {
-#line 994 "/home/jens/Source/shotwell/src/Tag.vala"
- result = NULL;
-#line 994 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (this_view);
-#line 994 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7576 "Tag.c"
- }
-#line 996 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 996 "/home/jens/Source/shotwell/src/Tag.vala"
- detached_from = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList);
-#line 7582 "Tag.c"
- {
- GeeList* _child_tag_list = NULL;
- GeeList* _tmp4_;
- gint _child_tag_size = 0;
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _child_tag_index = 0;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = tag_get_hierarchical_children (self);
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_tag_list = _tmp4_;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _child_tag_list;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _tmp6_;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_tag_size = _tmp7_;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_tag_index = -1;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 7607 "Tag.c"
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- Tag* child_tag = NULL;
- GeeList* _tmp11_;
- gint _tmp12_;
- gpointer _tmp13_;
- DataView* child_view = NULL;
- Tag* _tmp14_;
- ViewCollection* _tmp15_;
- DataView* _tmp16_;
- DataView* _tmp17_;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _child_tag_index;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_tag_index = _tmp8_ + 1;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = _child_tag_index;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = _child_tag_size;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp9_ < _tmp10_)) {
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 7632 "Tag.c"
- }
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = _child_tag_list;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = _child_tag_index;
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = gee_list_get (_tmp11_, _tmp12_);
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- child_tag = (Tag*) _tmp13_;
-#line 999 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = child_tag;
-#line 999 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _tmp14_->priv->media_views;
-#line 999 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = view_collection_get_view_for_source (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 999 "/home/jens/Source/shotwell/src/Tag.vala"
- child_view = _tmp16_;
-#line 1000 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = child_view;
-#line 1000 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp17_ != NULL) {
-#line 7654 "Tag.c"
- Tag* _tmp18_;
- ViewCollection* _tmp19_;
- Tag* _tmp20_;
- ViewCollection* _tmp21_;
- DataView* _tmp22_;
- Marker* _tmp23_;
- Marker* _tmp24_;
- GeeList* _tmp25_;
- Tag* _tmp26_;
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = child_tag;
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = _tmp18_->priv->media_views;
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = child_tag;
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = _tmp20_->priv->media_views;
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = child_view;
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject));
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = _tmp23_;
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection), _tmp24_);
-#line 1001 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp24_);
-#line 1002 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = detached_from;
-#line 1002 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = child_tag;
-#line 1002 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection), _tmp26_);
-#line 7688 "Tag.c"
- }
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (child_view);
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (child_tag);
-#line 7694 "Tag.c"
- }
-#line 998 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_child_tag_list);
-#line 7698 "Tag.c"
- }
-#line 1006 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = self->priv->media_views;
-#line 1006 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = self->priv->media_views;
-#line 1006 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = this_view;
-#line 1006 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_OBJECT, DataObject));
-#line 1006 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = _tmp30_;
-#line 1006 "/home/jens/Source/shotwell/src/Tag.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_COLLECTION, DataCollection), _tmp31_);
-#line 1006 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp31_);
-#line 1007 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = detached_from;
-#line 1007 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection), self);
-#line 1009 "/home/jens/Source/shotwell/src/Tag.vala"
- result = detached_from;
-#line 1009 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (this_view);
-#line 1009 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7724 "Tag.c"
-}
-
-
-GeeMultiMap*
-tag_detach_many (Tag* self,
- GeeCollection* sources)
-{
- GeeMultiMap* result = NULL;
- GeeMultiMap* detached_from = NULL;
- GeeHashMultiMap* _tmp0_;
- Marker* marker = NULL;
- ViewCollection* _tmp1_;
- Marker* _tmp2_;
- ViewCollection* _tmp40_;
- Marker* _tmp41_;
- GeeMultiMap* _tmp42_ = NULL;
- GeeMultiMap* _tmp43_;
- gint _tmp44_;
- gint _tmp45_;
- GeeMultiMap* _tmp47_;
-#line 1015 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 1015 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
-#line 1016 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_hash_multi_map_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1016 "/home/jens/Source/shotwell/src/Tag.vala"
- detached_from = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
-#line 1018 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = self->priv->media_views;
-#line 1018 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1018 "/home/jens/Source/shotwell/src/Tag.vala"
- marker = _tmp2_;
-#line 7759 "Tag.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp3_;
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- _source_it = _tmp3_;
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 7769 "Tag.c"
- GeeIterator* _tmp4_;
- MediaSource* source = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- DataView* view = NULL;
- ViewCollection* _tmp7_;
- MediaSource* _tmp8_;
- DataView* _tmp9_;
- DataView* _tmp10_;
- Marker* _tmp36_;
- DataView* _tmp37_;
- GeeMultiMap* _tmp38_;
- MediaSource* _tmp39_;
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = _source_it;
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 7789 "Tag.c"
- }
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _source_it;
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- source = (MediaSource*) _tmp6_;
-#line 1020 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = self->priv->media_views;
-#line 1020 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = source;
-#line 1020 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = view_collection_get_view_for_source (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_SOURCE, DataSource));
-#line 1020 "/home/jens/Source/shotwell/src/Tag.vala"
- view = _tmp9_;
-#line 1021 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = view;
-#line 1021 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp10_ == NULL) {
-#line 1022 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (view);
-#line 1022 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source);
-#line 1022 "/home/jens/Source/shotwell/src/Tag.vala"
- continue;
-#line 7815 "Tag.c"
- }
- {
- GeeList* _child_tag_list = NULL;
- GeeList* _tmp11_;
- gint _child_tag_size = 0;
- GeeList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _child_tag_index = 0;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tag_get_hierarchical_children (self);
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_tag_list = _tmp11_;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = _child_tag_list;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = _tmp13_;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_tag_size = _tmp14_;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_tag_index = -1;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 7841 "Tag.c"
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- Tag* child_tag = NULL;
- GeeList* _tmp18_;
- gint _tmp19_;
- gpointer _tmp20_;
- DataView* child_view = NULL;
- Tag* _tmp21_;
- ViewCollection* _tmp22_;
- MediaSource* _tmp23_;
- DataView* _tmp24_;
- DataView* _tmp25_;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _child_tag_index;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_tag_index = _tmp15_ + 1;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = _child_tag_index;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = _child_tag_size;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!(_tmp16_ < _tmp17_)) {
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 7867 "Tag.c"
- }
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = _child_tag_list;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = _child_tag_index;
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = gee_list_get (_tmp18_, _tmp19_);
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- child_tag = (Tag*) _tmp20_;
-#line 1025 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = child_tag;
-#line 1025 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = _tmp21_->priv->media_views;
-#line 1025 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = source;
-#line 1025 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = view_collection_get_view_for_source (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_SOURCE, DataSource));
-#line 1025 "/home/jens/Source/shotwell/src/Tag.vala"
- child_view = _tmp24_;
-#line 1026 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = child_view;
-#line 1026 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp25_ != NULL) {
-#line 7891 "Tag.c"
- Tag* _tmp26_;
- ViewCollection* _tmp27_;
- Tag* _tmp28_;
- ViewCollection* _tmp29_;
- DataView* _tmp30_;
- Marker* _tmp31_;
- Marker* _tmp32_;
- GeeMultiMap* _tmp33_;
- Tag* _tmp34_;
- MediaSource* _tmp35_;
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = child_tag;
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = _tmp26_->priv->media_views;
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = child_tag;
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = _tmp28_->priv->media_views;
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = child_view;
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_OBJECT, DataObject));
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = _tmp31_;
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_COLLECTION, DataCollection), _tmp32_);
-#line 1027 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp32_);
-#line 1028 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp33_ = detached_from;
-#line 1028 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = child_tag;
-#line 1028 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp35_ = source;
-#line 1028 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_multi_map_set (_tmp33_, _tmp34_, _tmp35_);
-#line 7928 "Tag.c"
- }
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (child_view);
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (child_tag);
-#line 7934 "Tag.c"
- }
-#line 1024 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_child_tag_list);
-#line 7938 "Tag.c"
- }
-#line 1032 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp36_ = marker;
-#line 1032 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp37_ = view;
-#line 1032 "/home/jens/Source/shotwell/src/Tag.vala"
- marker_mark (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATA_OBJECT, DataObject));
-#line 1033 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp38_ = detached_from;
-#line 1033 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp39_ = source;
-#line 1033 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_multi_map_set (_tmp38_, self, _tmp39_);
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (view);
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source);
-#line 7956 "Tag.c"
- }
-#line 1019 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_source_it);
-#line 7960 "Tag.c"
- }
-#line 1036 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp40_ = self->priv->media_views;
-#line 1036 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp41_ = marker;
-#line 1036 "/home/jens/Source/shotwell/src/Tag.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_DATA_COLLECTION, DataCollection), _tmp41_);
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp43_ = detached_from;
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp44_ = gee_multi_map_get_size (_tmp43_);
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp45_ = _tmp44_;
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp45_ > 0) {
-#line 7976 "Tag.c"
- GeeMultiMap* _tmp46_;
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp46_ = detached_from;
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp42_ = _tmp46_;
-#line 7982 "Tag.c"
- } else {
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp42_ = NULL;
-#line 7986 "Tag.c"
- }
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp47_ = _g_object_ref0 (_tmp42_);
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp47_;
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (marker);
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (detached_from);
-#line 1038 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 7998 "Tag.c"
-}
-
-
-static gint
-string_index_of (const gchar* self,
- const gchar* needle,
- gint start_index)
-{
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, 0);
-#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle);
-#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ != NULL) {
-#line 8023 "Tag.c"
- gchar* _tmp2_;
-#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _result_;
-#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) (_tmp2_ - ((gchar*) self));
-#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 8031 "Tag.c"
- } else {
-#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = -1;
-#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 8037 "Tag.c"
- }
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 8062 "Tag.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 8071 "Tag.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 8092 "Tag.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 8096 "Tag.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 8102 "Tag.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 8112 "Tag.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 8116 "Tag.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 8124 "Tag.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 8131 "Tag.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 8135 "Tag.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 8141 "Tag.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 8153 "Tag.c"
-}
-
-
-gboolean
-tag_rename (Tag* self,
- const gchar* name)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
- gchar* new_name = NULL;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gboolean _tmp7_;
-#line 1042 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), FALSE);
-#line 1042 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (name != NULL, FALSE);
-#line 1043 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_get_user_visible_name (self);
-#line 1043 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 1043 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = g_strcmp0 (name, _tmp1_) == 0;
-#line 1043 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp1_);
-#line 1043 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp2_) {
-#line 1044 "/home/jens/Source/shotwell/src/Tag.vala"
- result = TRUE;
-#line 1044 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 8189 "Tag.c"
- }
-#line 1046 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = tag_prep_tag_name (name);
-#line 1046 "/home/jens/Source/shotwell/src/Tag.vala"
- new_name = _tmp3_;
-#line 1047 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = new_name;
-#line 1047 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp4_ == NULL) {
-#line 1048 "/home/jens/Source/shotwell/src/Tag.vala"
- result = FALSE;
-#line 1048 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_name);
-#line 1048 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 8205 "Tag.c"
- }
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = tag_get_path (self);
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _tmp5_;
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = g_str_has_prefix (_tmp6_, TAG_PATH_SEPARATOR_STRING);
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp6_);
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp7_) {
-#line 8217 "Tag.c"
- gchar* new_path = NULL;
- const gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* old_path = NULL;
- gchar* _tmp10_;
- Tag* parent = NULL;
- Tag* _tmp11_;
- Tag* _tmp12_;
- TagSourceCollection* _tmp22_;
- const gchar* _tmp23_;
- GeeCollection* children = NULL;
- GeeList* _tmp24_;
- const gchar* _tmp25_;
- Alteration* _tmp47_;
- Alteration* _tmp48_;
-#line 1052 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = new_name;
-#line 1052 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 1052 "/home/jens/Source/shotwell/src/Tag.vala"
- new_path = _tmp9_;
-#line 1053 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = tag_get_path (self);
-#line 1053 "/home/jens/Source/shotwell/src/Tag.vala"
- old_path = _tmp10_;
-#line 1055 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tag_get_hierarchical_parent (self);
-#line 1055 "/home/jens/Source/shotwell/src/Tag.vala"
- parent = _tmp11_;
-#line 1056 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = parent;
-#line 1056 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp12_ != NULL) {
-#line 8251 "Tag.c"
- Tag* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = parent;
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = tag_get_path (_tmp13_);
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _tmp14_;
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = g_strconcat (_tmp15_, TAG_PATH_SEPARATOR_STRING, NULL);
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = _tmp16_;
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = new_path;
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = g_strconcat (_tmp17_, _tmp18_, NULL);
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_path);
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- new_path = _tmp19_;
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp17_);
-#line 1057 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp15_);
-#line 8281 "Tag.c"
- } else {
- const gchar* _tmp20_;
- gchar* _tmp21_;
-#line 1059 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = new_path;
-#line 1059 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp20_, NULL);
-#line 1059 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_path);
-#line 1059 "/home/jens/Source/shotwell/src/Tag.vala"
- new_path = _tmp21_;
-#line 8293 "Tag.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = tag_global;
-#line 1062 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = new_path;
-#line 1062 "/home/jens/Source/shotwell/src/Tag.vala"
- if (tag_source_collection_exists (_tmp22_, _tmp23_, TRUE)) {
-#line 1063 "/home/jens/Source/shotwell/src/Tag.vala"
- result = FALSE;
-#line 1063 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (parent);
-#line 1063 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (old_path);
-#line 1063 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_path);
-#line 1063 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_name);
-#line 1063 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 8313 "Tag.c"
- }
-#line 1065 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = tag_get_hierarchical_children (self);
-#line 1065 "/home/jens/Source/shotwell/src/Tag.vala"
- children = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1067 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = new_path;
-#line 1067 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_set_raw_path (self, _tmp25_, TRUE);
-#line 8323 "Tag.c"
- {
- GeeIterator* _child_it = NULL;
- GeeCollection* _tmp26_;
- GeeIterator* _tmp27_;
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = children;
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_it = _tmp27_;
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 8336 "Tag.c"
- GeeIterator* _tmp28_;
- Tag* child = NULL;
- GeeIterator* _tmp29_;
- gpointer _tmp30_;
- gchar* old_child_path = NULL;
- Tag* _tmp31_;
- gchar* _tmp32_;
- gint old_path_index = 0;
- const gchar* _tmp33_;
- const gchar* _tmp34_;
- gint _tmp35_;
- gchar* child_subpath = NULL;
- const gchar* _tmp36_;
- gint _tmp37_;
- const gchar* _tmp38_;
- gint _tmp39_;
- gint _tmp40_;
- gchar* _tmp41_;
- gchar* new_child_path = NULL;
- const gchar* _tmp42_;
- const gchar* _tmp43_;
- gchar* _tmp44_;
- Tag* _tmp45_;
- const gchar* _tmp46_;
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = _child_it;
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp28_)) {
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 8367 "Tag.c"
- }
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = _child_it;
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = gee_iterator_get (_tmp29_);
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- child = (Tag*) _tmp30_;
-#line 1072 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = child;
-#line 1072 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = tag_get_path (_tmp31_);
-#line 1072 "/home/jens/Source/shotwell/src/Tag.vala"
- old_child_path = _tmp32_;
-#line 1076 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp33_ = old_child_path;
-#line 1076 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = old_path;
-#line 1076 "/home/jens/Source/shotwell/src/Tag.vala"
- old_path_index = string_index_of (_tmp33_, _tmp34_, 0);
-#line 1077 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp35_ = old_path_index;
-#line 1077 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp35_ != -1, "old_path_index != -1");
-#line 1079 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp36_ = old_child_path;
-#line 1079 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp37_ = old_path_index;
-#line 1079 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp38_ = old_path;
-#line 1079 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp39_ = strlen (_tmp38_);
-#line 1079 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp40_ = _tmp39_;
-#line 1079 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp41_ = string_substring (_tmp36_, (glong) (_tmp37_ + _tmp40_), (glong) -1);
-#line 1079 "/home/jens/Source/shotwell/src/Tag.vala"
- child_subpath = _tmp41_;
-#line 1081 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp42_ = new_path;
-#line 1081 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp43_ = child_subpath;
-#line 1081 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp44_ = g_strconcat (_tmp42_, _tmp43_, NULL);
-#line 1081 "/home/jens/Source/shotwell/src/Tag.vala"
- new_child_path = _tmp44_;
-#line 1083 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp45_ = child;
-#line 1083 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp46_ = new_child_path;
-#line 1083 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_set_raw_path (_tmp45_, _tmp46_, TRUE);
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_child_path);
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (child_subpath);
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (old_child_path);
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (child);
-#line 8427 "Tag.c"
- }
-#line 1069 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_child_it);
-#line 8431 "Tag.c"
- }
-#line 1086 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_update_indexable_keywords (self);
-#line 1087 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp47_ = alteration_new_from_list ("metadata:name, indexable:keywords");
-#line 1087 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp48_ = _tmp47_;
-#line 1087 "/home/jens/Source/shotwell/src/Tag.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp48_);
-#line 1087 "/home/jens/Source/shotwell/src/Tag.vala"
- _alteration_unref0 (_tmp48_);
-#line 8443 "Tag.c"
- {
- GeeIterator* _child_it = NULL;
- GeeCollection* _tmp49_;
- GeeIterator* _tmp50_;
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp49_ = children;
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp50_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- _child_it = _tmp50_;
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 8456 "Tag.c"
- GeeIterator* _tmp51_;
- Tag* child = NULL;
- GeeIterator* _tmp52_;
- gpointer _tmp53_;
- Tag* _tmp54_;
- Alteration* _tmp55_;
- Alteration* _tmp56_;
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp51_ = _child_it;
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp51_)) {
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 8470 "Tag.c"
- }
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp52_ = _child_it;
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp53_ = gee_iterator_get (_tmp52_);
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- child = (Tag*) _tmp53_;
-#line 1089 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp54_ = child;
-#line 1089 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp55_ = alteration_new_from_list ("metadata:name, indexable:keywords");
-#line 1089 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp56_ = _tmp55_;
-#line 1089 "/home/jens/Source/shotwell/src/Tag.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_DATA_OBJECT, DataObject), _tmp56_);
-#line 1089 "/home/jens/Source/shotwell/src/Tag.vala"
- _alteration_unref0 (_tmp56_);
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (child);
-#line 8490 "Tag.c"
- }
-#line 1088 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_child_it);
-#line 8494 "Tag.c"
- }
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (children);
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (parent);
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (old_path);
-#line 1051 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_path);
-#line 8504 "Tag.c"
- } else {
- TagSourceCollection* _tmp57_;
- const gchar* _tmp58_;
- const gchar* _tmp59_;
-#line 1093 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp57_ = tag_global;
-#line 1093 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp58_ = new_name;
-#line 1093 "/home/jens/Source/shotwell/src/Tag.vala"
- if (tag_source_collection_exists (_tmp57_, _tmp58_, TRUE)) {
-#line 1094 "/home/jens/Source/shotwell/src/Tag.vala"
- result = FALSE;
-#line 1094 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_name);
-#line 1094 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 8521 "Tag.c"
- }
-#line 1096 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp59_ = new_name;
-#line 1096 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_set_raw_flat_name (self, _tmp59_);
-#line 8527 "Tag.c"
- }
-#line 1099 "/home/jens/Source/shotwell/src/Tag.vala"
- result = TRUE;
-#line 1099 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (new_name);
-#line 1099 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 8535 "Tag.c"
-}
-
-
-gboolean
-tag_contains (Tag* self,
- MediaSource* source)
-{
- gboolean result = FALSE;
- ViewCollection* _tmp0_;
-#line 1102 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), FALSE);
-#line 1102 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 1103 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->media_views;
-#line 1103 "/home/jens/Source/shotwell/src/Tag.vala"
- result = view_collection_has_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 1103 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 8555 "Tag.c"
-}
-
-
-gint
-tag_get_sources_count (Tag* self)
-{
- gint result = 0;
- ViewCollection* _tmp0_;
-#line 1106 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), 0);
-#line 1107 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->media_views;
-#line 1107 "/home/jens/Source/shotwell/src/Tag.vala"
- result = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1107 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 8572 "Tag.c"
-}
-
-
-GeeCollection*
-tag_get_sources (Tag* self)
-{
- GeeCollection* result = NULL;
- ViewCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 1110 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (self), NULL);
-#line 1111 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->media_views;
-#line 1111 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = view_collection_get_sources (_tmp0_);
-#line 1111 "/home/jens/Source/shotwell/src/Tag.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1111 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 8592 "Tag.c"
-}
-
-
-void
-tag_mirror_sources (Tag* self,
- ViewCollection* view,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target)
-{
- ViewCollection* _tmp0_;
-#line 1114 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 1114 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (view));
-#line 1115 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->media_views;
-#line 1115 "/home/jens/Source/shotwell/src/Tag.vala"
- view_collection_mirror (view, _tmp0_, mirroring_ctor, mirroring_ctor_target, NULL, NULL);
-#line 8611 "Tag.c"
-}
-
-
-static void
-tag_on_media_views_contents_altered (Tag* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
- GeeCollection* added_sources = NULL;
- GeeCollection* removed_sources = NULL;
- GeeCollection* _tmp47_;
- GeeCollection* _tmp51_;
- gboolean _tmp55_ = FALSE;
- GeeCollection* _tmp56_;
- GError * _inner_error_ = NULL;
-#line 1118 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 1118 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 1118 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 1120 "/home/jens/Source/shotwell/src/Tag.vala"
- added_sources = NULL;
-#line 1121 "/home/jens/Source/shotwell/src/Tag.vala"
- if (added != NULL) {
-#line 8637 "Tag.c"
- GeeArrayList* _tmp0_;
-#line 1122 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1122 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (added_sources);
-#line 1122 "/home/jens/Source/shotwell/src/Tag.vala"
- added_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 8645 "Tag.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp1_;
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = gee_iterable_iterator (added);
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- _view_it = _tmp1_;
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 8655 "Tag.c"
- GeeIterator* _tmp2_;
- DataView* view = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- MediaSource* source = NULL;
- DataView* _tmp5_;
- DataSource* _tmp6_;
- TagRow* _tmp7_;
- GeeSet* _tmp8_;
- MediaSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_;
- gboolean is_added = FALSE;
- GeeCollection* _tmp20_;
- MediaSource* _tmp21_;
- gboolean _tmp22_;
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = _view_it;
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 8679 "Tag.c"
- }
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _view_it;
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- view = (DataView*) _tmp4_;
-#line 1124 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = view;
-#line 1124 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = data_view_get_source (_tmp5_);
-#line 1124 "/home/jens/Source/shotwell/src/Tag.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 1128 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = self->priv->row;
-#line 1128 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = _tmp7_->source_id_list;
-#line 1128 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = source;
-#line 1128 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource));
-#line 1128 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = _tmp10_;
-#line 1128 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = !gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp11_);
-#line 1128 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp11_);
-#line 1128 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp12_) {
-#line 8709 "Tag.c"
- gboolean is_added = FALSE;
- TagRow* _tmp13_;
- GeeSet* _tmp14_;
- MediaSource* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gboolean _tmp18_;
- gboolean _tmp19_;
-#line 1129 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = self->priv->row;
-#line 1129 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = _tmp13_->source_id_list;
-#line 1129 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = source;
-#line 1129 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource));
-#line 1129 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = _tmp16_;
-#line 1129 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_);
-#line 1129 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp17_);
-#line 1129 "/home/jens/Source/shotwell/src/Tag.vala"
- is_added = _tmp18_;
-#line 1130 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp19_ = is_added;
-#line 1130 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp19_, "is_added");
-#line 8738 "Tag.c"
- }
-#line 1133 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp20_ = added_sources;
-#line 1133 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp21_ = source;
-#line 1133 "/home/jens/Source/shotwell/src/Tag.vala"
- is_added = gee_collection_add (_tmp20_, _tmp21_);
-#line 1134 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp22_ = is_added;
-#line 1134 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp22_, "is_added");
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source);
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (view);
-#line 8754 "Tag.c"
- }
-#line 1123 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_view_it);
-#line 8758 "Tag.c"
- }
- }
-#line 1138 "/home/jens/Source/shotwell/src/Tag.vala"
- removed_sources = NULL;
-#line 1139 "/home/jens/Source/shotwell/src/Tag.vala"
- if (removed != NULL) {
-#line 8765 "Tag.c"
- GeeArrayList* _tmp23_;
-#line 1140 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp23_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1140 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (removed_sources);
-#line 1140 "/home/jens/Source/shotwell/src/Tag.vala"
- removed_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 8773 "Tag.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp24_;
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp24_ = gee_iterable_iterator (removed);
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- _view_it = _tmp24_;
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 8783 "Tag.c"
- GeeIterator* _tmp25_;
- DataView* view = NULL;
- GeeIterator* _tmp26_;
- gpointer _tmp27_;
- MediaSource* source = NULL;
- DataView* _tmp28_;
- DataSource* _tmp29_;
- gboolean is_removed = FALSE;
- TagRow* _tmp30_;
- GeeSet* _tmp31_;
- MediaSource* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- gboolean _tmp35_;
- gboolean _tmp36_;
- gboolean is_added = FALSE;
- GeeCollection* _tmp37_;
- MediaSource* _tmp38_;
- gboolean _tmp39_;
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp25_ = _view_it;
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp25_)) {
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 8809 "Tag.c"
- }
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp26_ = _view_it;
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp27_ = gee_iterator_get (_tmp26_);
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- view = (DataView*) _tmp27_;
-#line 1142 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp28_ = view;
-#line 1142 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp29_ = data_view_get_source (_tmp28_);
-#line 1142 "/home/jens/Source/shotwell/src/Tag.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 1144 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp30_ = self->priv->row;
-#line 1144 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp31_ = _tmp30_->source_id_list;
-#line 1144 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp32_ = source;
-#line 1144 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp33_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_SOURCE, DataSource));
-#line 1144 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp34_ = _tmp33_;
-#line 1144 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp35_ = gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection), _tmp34_);
-#line 1144 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (_tmp34_);
-#line 1144 "/home/jens/Source/shotwell/src/Tag.vala"
- is_removed = _tmp35_;
-#line 1145 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp36_ = is_removed;
-#line 1145 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp36_, "is_removed");
-#line 1147 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp37_ = removed_sources;
-#line 1147 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp38_ = source;
-#line 1147 "/home/jens/Source/shotwell/src/Tag.vala"
- is_added = gee_collection_add (_tmp37_, _tmp38_);
-#line 1148 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp39_ = is_added;
-#line 1148 "/home/jens/Source/shotwell/src/Tag.vala"
- _vala_assert (_tmp39_, "is_added");
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source);
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (view);
-#line 8857 "Tag.c"
- }
-#line 1141 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_view_it);
-#line 8861 "Tag.c"
- }
- }
- {
- TagTable* _tmp40_;
- TagTable* _tmp41_;
- TagRow* _tmp42_;
- TagID _tmp43_;
- TagRow* _tmp44_;
- GeeSet* _tmp45_;
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp40_ = tag_table_get_instance ();
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp41_ = _tmp40_;
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp42_ = self->priv->row;
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp43_ = _tmp42_->tag_id;
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp44_ = self->priv->row;
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp45_ = _tmp44_->source_id_list;
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_table_set_tagged_sources (_tmp41_, &_tmp43_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_COLLECTION, GeeCollection), &_inner_error_);
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _database_table_unref0 (_tmp41_);
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 8891 "Tag.c"
- goto __catch486_database_error;
- }
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (removed_sources);
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (added_sources);
-#line 1153 "/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);
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 1153 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 8904 "Tag.c"
- }
- }
- goto __finally486;
- __catch486_database_error:
- {
- GError* err = NULL;
- GError* _tmp46_;
-#line 1152 "/home/jens/Source/shotwell/src/Tag.vala"
- err = _inner_error_;
-#line 1152 "/home/jens/Source/shotwell/src/Tag.vala"
- _inner_error_ = NULL;
-#line 1155 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp46_ = err;
-#line 1155 "/home/jens/Source/shotwell/src/Tag.vala"
- app_window_database_error (_tmp46_);
-#line 1152 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_error_free0 (err);
-#line 8922 "Tag.c"
- }
- __finally486:
-#line 1152 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1152 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (removed_sources);
-#line 1152 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (added_sources);
-#line 1152 "/home/jens/Source/shotwell/src/Tag.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 1152 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 1152 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 8937 "Tag.c"
- }
-#line 1159 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp47_ = added_sources;
-#line 1159 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp47_ != NULL) {
-#line 8943 "Tag.c"
- TagSourceCollection* _tmp48_;
- GeeCollection* _tmp49_;
- gboolean _tmp50_;
-#line 1160 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp48_ = tag_global;
-#line 1160 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp49_ = added_sources;
-#line 1160 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp50_ = self->priv->relinking;
-#line 1160 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), _tmp49_, _tmp50_);
-#line 8955 "Tag.c"
- }
-#line 1162 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp51_ = removed_sources;
-#line 1162 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp51_ != NULL) {
-#line 8961 "Tag.c"
- TagSourceCollection* _tmp52_;
- GeeCollection* _tmp53_;
- gboolean _tmp54_;
-#line 1163 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp52_ = tag_global;
-#line 1163 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp53_ = removed_sources;
-#line 1163 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp54_ = self->priv->unlinking;
-#line 1163 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_notify_container_contents_removed (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), _tmp53_, _tmp54_);
-#line 8973 "Tag.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp56_ = added_sources;
-#line 1165 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp56_ != NULL) {
-#line 1165 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp55_ = TRUE;
-#line 8981 "Tag.c"
- } else {
- GeeCollection* _tmp57_;
-#line 1165 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp57_ = removed_sources;
-#line 1165 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp55_ = _tmp57_ != NULL;
-#line 8988 "Tag.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_tmp55_) {
-#line 8992 "Tag.c"
- TagSourceCollection* _tmp58_;
- GeeCollection* _tmp59_;
- gboolean _tmp60_;
- GeeCollection* _tmp61_;
- gboolean _tmp62_;
-#line 1166 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp58_ = tag_global;
-#line 1166 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp59_ = added_sources;
-#line 1166 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp60_ = self->priv->relinking;
-#line 1166 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp61_ = removed_sources;
-#line 1166 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp62_ = self->priv->unlinking;
-#line 1166 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), _tmp59_, _tmp60_, _tmp61_, _tmp62_);
-#line 9010 "Tag.c"
- }
-#line 1118 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (removed_sources);
-#line 1118 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (added_sources);
-#line 9016 "Tag.c"
-}
-
-
-static void
-tag_on_sources_destroyed (Tag* self,
- GeeCollection* sources)
-{
- GeeMultiMap* _tmp0_;
- GeeMultiMap* _tmp1_;
-#line 1171 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_TAG (self));
-#line 1171 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 1172 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_detach_many (self, G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1172 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 1172 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp1_);
-#line 9036 "Tag.c"
-}
-
-
-static void
-tag_real_destroy (DataSource* base)
-{
- Tag * self;
- ViewCollection* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 1175 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag);
-#line 1179 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->media_views;
-#line 1179 "/home/jens/Source/shotwell/src/Tag.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)) > 0) {
-#line 9052 "Tag.c"
- ViewCollection* _tmp1_;
- guint _tmp2_;
- GeeArrayList* removed = NULL;
- GeeArrayList* _tmp3_;
- GeeArrayList* _tmp4_;
- ViewCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- ViewCollection* _tmp8_;
- TagSourceCollection* _tmp9_;
- GeeArrayList* _tmp10_;
- TagSourceCollection* _tmp11_;
- GeeArrayList* _tmp12_;
- ViewCollection* _tmp13_;
-#line 1180 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = self->priv->media_views;
-#line 1180 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE);
-#line 1180 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _tag_on_media_views_contents_altered_data_collection_contents_altered, self);
-#line 1182 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1182 "/home/jens/Source/shotwell/src/Tag.vala"
- removed = _tmp3_;
-#line 1183 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = removed;
-#line 1183 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = self->priv->media_views;
-#line 1183 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = view_collection_get_sources (_tmp5_);
-#line 1183 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1183 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_array_list_add_all (_tmp4_, _tmp7_);
-#line 1183 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp7_);
-#line 1185 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = self->priv->media_views;
-#line 1185 "/home/jens/Source/shotwell/src/Tag.vala"
- data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1187 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = tag_global;
-#line 1187 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = removed;
-#line 1187 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_notify_container_contents_removed (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), FALSE);
-#line 1188 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = tag_global;
-#line 1188 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = removed;
-#line 1188 "/home/jens/Source/shotwell/src/Tag.vala"
- container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), NULL, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), FALSE);
-#line 1190 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp13_ = self->priv->media_views;
-#line 1190 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _tag_on_media_views_contents_altered_data_collection_contents_altered, self, 0);
-#line 1179 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (removed);
-#line 9111 "Tag.c"
- }
- {
- TagTable* _tmp14_;
- TagTable* _tmp15_;
- TagRow* _tmp16_;
- TagID _tmp17_;
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp14_ = tag_table_get_instance ();
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp15_ = _tmp14_;
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp16_ = self->priv->row;
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp17_ = _tmp16_->tag_id;
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_table_remove (_tmp15_, &_tmp17_, &_inner_error_);
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- _database_table_unref0 (_tmp15_);
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 9134 "Tag.c"
- goto __catch487_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);
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 1194 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 9143 "Tag.c"
- }
- }
- goto __finally487;
- __catch487_database_error:
- {
- GError* err = NULL;
- GError* _tmp18_;
-#line 1193 "/home/jens/Source/shotwell/src/Tag.vala"
- err = _inner_error_;
-#line 1193 "/home/jens/Source/shotwell/src/Tag.vala"
- _inner_error_ = NULL;
-#line 1196 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp18_ = err;
-#line 1196 "/home/jens/Source/shotwell/src/Tag.vala"
- app_window_database_error (_tmp18_);
-#line 1193 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_error_free0 (err);
-#line 9161 "Tag.c"
- }
- __finally487:
-#line 1193 "/home/jens/Source/shotwell/src/Tag.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1193 "/home/jens/Source/shotwell/src/Tag.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 1193 "/home/jens/Source/shotwell/src/Tag.vala"
- g_clear_error (&_inner_error_);
-#line 1193 "/home/jens/Source/shotwell/src/Tag.vala"
- return;
-#line 9172 "Tag.c"
- }
-#line 1199 "/home/jens/Source/shotwell/src/Tag.vala"
- DATA_SOURCE_CLASS (tag_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
-#line 9176 "Tag.c"
-}
-
-
-static void
-_tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 292 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_tag_snapshot_on_source_destroyed ((TagTagSnapshot*) self, source);
-#line 9187 "Tag.c"
-}
-
-
-static TagTagSnapshot*
-tag_tag_snapshot_construct (GType object_type,
- Tag* tag)
-{
- TagTagSnapshot* self = NULL;
- TagRow* _tmp0_;
- TagRow* _tmp1_;
- LibraryPhotoSourceCollection* _tmp11_;
- VideoSourceCollection* _tmp12_;
-#line 278 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 278 "/home/jens/Source/shotwell/src/Tag.vala"
- self = (TagTagSnapshot*) source_snapshot_construct (object_type);
-#line 280 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag->priv->row;
-#line 280 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tag_row_ref0 (_tmp0_);
-#line 280 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (self->priv->row);
-#line 280 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->row = _tmp1_;
-#line 9212 "Tag.c"
- {
- GeeIterator* _source_it = NULL;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_get_sources (tag);
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = _tmp2_;
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp5_ = _tmp4_;
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_tmp3_);
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _source_it = _tmp5_;
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- while (TRUE) {
-#line 9233 "Tag.c"
- GeeIterator* _tmp6_;
- MediaSource* source = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- GeeHashSet* _tmp9_;
- MediaSource* _tmp10_;
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp6_ = _source_it;
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- break;
-#line 9246 "Tag.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp7_ = _source_it;
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- source = (MediaSource*) _tmp8_;
-#line 285 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp9_ = self->priv->sources;
-#line 285 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp10_ = source;
-#line 285 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (source);
-#line 9262 "Tag.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (_source_it);
-#line 9266 "Tag.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp11_ = library_photo_global;
-#line 287 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed, self);
-#line 288 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp12_ = video_global;
-#line 288 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed, self);
-#line 278 "/home/jens/Source/shotwell/src/Tag.vala"
- return self;
-#line 9278 "Tag.c"
-}
-
-
-static TagTagSnapshot*
-tag_tag_snapshot_new (Tag* tag)
-{
-#line 278 "/home/jens/Source/shotwell/src/Tag.vala"
- return tag_tag_snapshot_construct (TAG_TYPE_TAG_SNAPSHOT, tag);
-#line 9287 "Tag.c"
-}
-
-
-static TagRow*
-tag_tag_snapshot_get_row (TagTagSnapshot* self)
-{
- TagRow* result = NULL;
- TagRow* _tmp0_;
- TagRow* _tmp1_;
-#line 296 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (TAG_IS_TAG_SNAPSHOT (self), NULL);
-#line 297 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->row;
-#line 297 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tag_row_ref0 (_tmp0_);
-#line 297 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp1_;
-#line 297 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 9307 "Tag.c"
-}
-
-
-static void
-tag_tag_snapshot_real_notify_broken (SourceSnapshot* base)
-{
- TagTagSnapshot * self;
- TagRow* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 300 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshot);
-#line 301 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_row_new ();
-#line 301 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (self->priv->row);
-#line 301 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->row = _tmp0_;
-#line 302 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = self->priv->sources;
-#line 302 "/home/jens/Source/shotwell/src/Tag.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 304 "/home/jens/Source/shotwell/src/Tag.vala"
- SOURCE_SNAPSHOT_CLASS (tag_tag_snapshot_parent_class)->notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot));
-#line 9331 "Tag.c"
-}
-
-
-static void
-tag_tag_snapshot_on_source_destroyed (TagTagSnapshot* self,
- DataSource* source)
-{
- GeeHashSet* _tmp0_;
-#line 307 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (TAG_IS_TAG_SNAPSHOT (self));
-#line 307 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 308 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->sources;
-#line 308 "/home/jens/Source/shotwell/src/Tag.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource))) {
-#line 309 "/home/jens/Source/shotwell/src/Tag.vala"
- source_snapshot_notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot));
-#line 9350 "Tag.c"
- }
-}
-
-
-static void
-tag_tag_snapshot_class_init (TagTagSnapshotClass * klass)
-{
-#line 274 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_tag_snapshot_parent_class = g_type_class_peek_parent (klass);
-#line 274 "/home/jens/Source/shotwell/src/Tag.vala"
- ((SourceSnapshotClass *) klass)->finalize = tag_tag_snapshot_finalize;
-#line 274 "/home/jens/Source/shotwell/src/Tag.vala"
- g_type_class_add_private (klass, sizeof (TagTagSnapshotPrivate));
-#line 274 "/home/jens/Source/shotwell/src/Tag.vala"
- ((SourceSnapshotClass *) klass)->notify_broken = (void (*) (SourceSnapshot *)) tag_tag_snapshot_real_notify_broken;
-#line 9366 "Tag.c"
-}
-
-
-static void
-tag_tag_snapshot_instance_init (TagTagSnapshot * self)
-{
- GeeHashSet* _tmp0_;
-#line 274 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv = TAG_TAG_SNAPSHOT_GET_PRIVATE (self);
-#line 276 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 276 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->sources = _tmp0_;
-#line 9380 "Tag.c"
-}
-
-
-static void
-tag_tag_snapshot_finalize (SourceSnapshot * obj)
-{
- TagTagSnapshot * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- VideoSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 274 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshot);
-#line 292 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = library_photo_global;
-#line 292 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 292 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed, self);
-#line 293 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = video_global;
-#line 293 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 293 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed, self);
-#line 275 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (self->priv->row);
-#line 276 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_object_unref0 (self->priv->sources);
-#line 274 "/home/jens/Source/shotwell/src/Tag.vala"
- SOURCE_SNAPSHOT_CLASS (tag_tag_snapshot_parent_class)->finalize (obj);
-#line 9412 "Tag.c"
-}
-
-
-static GType
-tag_tag_snapshot_get_type (void)
-{
- static volatile gsize tag_tag_snapshot_type_id__volatile = 0;
- if (g_once_init_enter (&tag_tag_snapshot_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagTagSnapshotClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_tag_snapshot_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagTagSnapshot), 0, (GInstanceInitFunc) tag_tag_snapshot_instance_init, NULL };
- GType tag_tag_snapshot_type_id;
- tag_tag_snapshot_type_id = g_type_register_static (TYPE_SOURCE_SNAPSHOT, "TagTagSnapshot", &g_define_type_info, 0);
- g_once_init_leave (&tag_tag_snapshot_type_id__volatile, tag_tag_snapshot_type_id);
- }
- return tag_tag_snapshot_type_id__volatile;
-}
-
-
-static TagTagProxy*
-tag_tag_proxy_construct (GType object_type,
- Tag* tag)
-{
- TagTagProxy* self = NULL;
-#line 314 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 315 "/home/jens/Source/shotwell/src/Tag.vala"
- self = (TagTagProxy*) source_proxy_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_SOURCE, DataSource));
-#line 314 "/home/jens/Source/shotwell/src/Tag.vala"
- return self;
-#line 9441 "Tag.c"
-}
-
-
-static TagTagProxy*
-tag_tag_proxy_new (Tag* tag)
-{
-#line 314 "/home/jens/Source/shotwell/src/Tag.vala"
- return tag_tag_proxy_construct (TAG_TYPE_TAG_PROXY, tag);
-#line 9450 "Tag.c"
-}
-
-
-static DataSource*
-tag_tag_proxy_real_reconstitute (SourceProxy* base,
- gint64 object_id,
- SourceSnapshot* snapshot)
-{
- TagTagProxy * self;
- DataSource* result = NULL;
- TagRow* _tmp0_;
- TagRow* _tmp1_;
- Tag* _tmp2_;
- DataSource* _tmp3_;
-#line 318 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAG_TYPE_TAG_PROXY, TagTagProxy);
-#line 318 "/home/jens/Source/shotwell/src/Tag.vala"
- g_return_val_if_fail (IS_SOURCE_SNAPSHOT (snapshot), NULL);
-#line 319 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = tag_tag_snapshot_get_row (G_TYPE_CHECK_INSTANCE_CAST (snapshot, TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshot));
-#line 319 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp1_ = _tmp0_;
-#line 319 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = tag_reconstitute (object_id, _tmp1_);
-#line 319 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource);
-#line 319 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (_tmp1_);
-#line 319 "/home/jens/Source/shotwell/src/Tag.vala"
- result = _tmp3_;
-#line 319 "/home/jens/Source/shotwell/src/Tag.vala"
- return result;
-#line 9483 "Tag.c"
-}
-
-
-static void
-tag_tag_proxy_class_init (TagTagProxyClass * klass)
-{
-#line 313 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_tag_proxy_parent_class = g_type_class_peek_parent (klass);
-#line 313 "/home/jens/Source/shotwell/src/Tag.vala"
- ((SourceProxyClass *) klass)->reconstitute = (DataSource* (*) (SourceProxy *, gint64, SourceSnapshot*)) tag_tag_proxy_real_reconstitute;
-#line 9494 "Tag.c"
-}
-
-
-static void
-tag_tag_proxy_instance_init (TagTagProxy * self)
-{
-}
-
-
-static GType
-tag_tag_proxy_get_type (void)
-{
- static volatile gsize tag_tag_proxy_type_id__volatile = 0;
- if (g_once_init_enter (&tag_tag_proxy_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagTagProxyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_tag_proxy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagTagProxy), 0, (GInstanceInitFunc) tag_tag_proxy_instance_init, NULL };
- GType tag_tag_proxy_type_id;
- tag_tag_proxy_type_id = g_type_register_static (TYPE_SOURCE_PROXY, "TagTagProxy", &g_define_type_info, 0);
- g_once_init_leave (&tag_tag_proxy_type_id__volatile, tag_tag_proxy_type_id);
- }
- return tag_tag_proxy_type_id__volatile;
-}
-
-
-static void
-tag_class_init (TagClass * klass)
-{
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_parent_class = g_type_class_peek_parent (klass);
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- g_type_class_add_private (klass, sizeof (TagPrivate));
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) tag_real_get_typename;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) tag_real_get_instance_id;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) tag_real_get_name;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) tag_real_to_string;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) tag_real_equals;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataSourceClass *) klass)->save_snapshot = (SourceSnapshot* (*) (DataSource *)) tag_real_save_snapshot;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) tag_real_destroy;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- G_OBJECT_CLASS (klass)->finalize = tag_finalize;
-#line 9541 "Tag.c"
-}
-
-
-static void
-tag_container_source_interface_init (ContainerSourceIface * iface)
-{
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_container_source_parent_iface = g_type_interface_peek_parent (iface);
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- iface->has_links = (gboolean (*) (ContainerSource *)) tag_real_has_links;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- iface->get_backlink = (SourceBacklink* (*) (ContainerSource *)) tag_real_get_backlink;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- iface->break_link = (void (*) (ContainerSource *, DataSource*)) tag_real_break_link;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- iface->break_link_many = (void (*) (ContainerSource *, GeeCollection*)) tag_real_break_link_many;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- iface->establish_link = (void (*) (ContainerSource *, DataSource*)) tag_real_establish_link;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- iface->establish_link_many = (void (*) (ContainerSource *, GeeCollection*)) tag_real_establish_link_many;
-#line 9562 "Tag.c"
-}
-
-
-static void
-tag_proxyable_interface_init (ProxyableIface * iface)
-{
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_proxyable_parent_iface = g_type_interface_peek_parent (iface);
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- iface->get_proxy = (SourceProxy* (*) (Proxyable *)) tag_real_get_proxy;
-#line 9573 "Tag.c"
-}
-
-
-static void
-tag_indexable_interface_init (IndexableIface * iface)
-{
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- tag_indexable_parent_iface = g_type_interface_peek_parent (iface);
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- iface->get_indexable_keywords = (const gchar* (*) (Indexable *)) tag_real_get_indexable_keywords;
-#line 9584 "Tag.c"
-}
-
-
-static void
-tag_instance_init (Tag * self)
-{
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv = TAG_GET_PRIVATE (self);
-#line 327 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->name_collation_key = NULL;
-#line 328 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->unlinking = FALSE;
-#line 329 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->relinking = FALSE;
-#line 330 "/home/jens/Source/shotwell/src/Tag.vala"
- self->priv->indexable_keywords = NULL;
-#line 9601 "Tag.c"
-}
-
-
-static void
-tag_finalize (GObject * obj)
-{
- Tag * self;
- ViewCollection* _tmp0_;
- guint _tmp1_;
- LibraryPhotoSourceCollection* _tmp2_;
- guint _tmp3_;
- VideoSourceCollection* _tmp4_;
- guint _tmp5_;
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG, Tag);
-#line 382 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp0_ = self->priv->media_views;
-#line 382 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 382 "/home/jens/Source/shotwell/src/Tag.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) _tag_on_media_views_contents_altered_data_collection_contents_altered, self);
-#line 383 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp2_ = library_photo_global;
-#line 383 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 383 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tag_on_sources_destroyed_source_collection_items_destroyed, self);
-#line 384 "/home/jens/Source/shotwell/src/Tag.vala"
- _tmp4_ = video_global;
-#line 384 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 384 "/home/jens/Source/shotwell/src/Tag.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _tag_on_sources_destroyed_source_collection_items_destroyed, self);
-#line 325 "/home/jens/Source/shotwell/src/Tag.vala"
- _tag_row_unref0 (self->priv->row);
-#line 326 "/home/jens/Source/shotwell/src/Tag.vala"
- _data_collection_unref0 (self->priv->media_views);
-#line 327 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (self->priv->name_collation_key);
-#line 330 "/home/jens/Source/shotwell/src/Tag.vala"
- _g_free0 (self->priv->indexable_keywords);
-#line 269 "/home/jens/Source/shotwell/src/Tag.vala"
- G_OBJECT_CLASS (tag_parent_class)->finalize (obj);
-#line 9645 "Tag.c"
-}
-
-
-GType
-tag_get_type (void)
-{
- static volatile gsize tag_type_id__volatile = 0;
- if (g_once_init_enter (&tag_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Tag), 0, (GInstanceInitFunc) tag_instance_init, NULL };
- static const GInterfaceInfo container_source_info = { (GInterfaceInitFunc) tag_container_source_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo proxyable_info = { (GInterfaceInitFunc) tag_proxyable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo indexable_info = { (GInterfaceInitFunc) tag_indexable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType tag_type_id;
- tag_type_id = g_type_register_static (TYPE_DATA_SOURCE, "Tag", &g_define_type_info, 0);
- g_type_add_interface_static (tag_type_id, TYPE_CONTAINER_SOURCE, &container_source_info);
- g_type_add_interface_static (tag_type_id, TYPE_PROXYABLE, &proxyable_info);
- g_type_add_interface_static (tag_type_id, TYPE_INDEXABLE, &indexable_info);
- g_once_init_leave (&tag_type_id__volatile, tag_type_id);
- }
- return tag_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Thumbnail.c b/src/Thumbnail.c
deleted file mode 100644
index 34942cc..0000000
--- a/src/Thumbnail.c
+++ /dev/null
@@ -1,2656 +0,0 @@
-/* Thumbnail.c generated by valac 0.40.4, the Vala compiler
- * generated from Thumbnail.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <cairo.h>
-#include <gdk/gdk.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <pango/pango.h>
-#include <time.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#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))
-#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
-#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
-#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
-
-typedef struct _MediaSourceItem MediaSourceItem;
-typedef struct _MediaSourceItemClass MediaSourceItemClass;
-typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate;
-
-#define TYPE_THUMBNAIL (thumbnail_get_type ())
-#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail))
-#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass))
-#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL))
-#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL))
-#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass))
-
-typedef struct _Thumbnail Thumbnail;
-typedef struct _ThumbnailClass ThumbnailClass;
-typedef struct _ThumbnailPrivate ThumbnailPrivate;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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;
-enum {
- THUMBNAIL_0_PROPERTY,
- THUMBNAIL_NUM_PROPERTIES
-};
-static GParamSpec* thumbnail_properties[THUMBNAIL_NUM_PROPERTIES];
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE (container_source_get_type ())
-#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource))
-#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE))
-#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface))
-
-typedef struct _ContainerSource ContainerSource;
-typedef struct _ContainerSourceIface ContainerSourceIface;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#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 (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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ())
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-struct _MediaSourceItem {
- CheckerboardItem parent_instance;
- MediaSourceItemPrivate * priv;
-};
-
-struct _MediaSourceItemClass {
- CheckerboardItemClass parent_class;
-};
-
-struct _Thumbnail {
- MediaSourceItem parent_instance;
- ThumbnailPrivate * priv;
-};
-
-struct _ThumbnailClass {
- MediaSourceItemClass parent_class;
-};
-
-struct _ThumbnailPrivate {
- MediaSource* media;
- gint scale;
- Dimensions original_dim;
- Dimensions dim;
- GdkPixbuf* unscaled_pixbuf;
- GCancellable* cancellable;
- gboolean hq_scheduled;
- gboolean hq_reschedule;
- gboolean exposure;
-};
-
-struct _ContainerSourceIface {
- GTypeInterface parent_iface;
- gboolean (*has_links) (ContainerSource* self);
- SourceBacklink* (*get_backlink) (ContainerSource* self);
- void (*break_link) (ContainerSource* self, DataSource* source);
- void (*break_link_many) (ContainerSource* self, GeeCollection* sources);
- void (*establish_link) (ContainerSource* self, DataSource* source);
- void (*establish_link_many) (ContainerSource* self, GeeCollection* sources);
-};
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef void (*ThumbnailCacheAsyncFetchCallback) (GdkPixbuf* pixbuf, GdkPixbuf* unscaled, Dimensions* dim, GdkInterpType interp, GError* err, void* user_data);
-typedef enum {
- THUMBNAIL_CACHE_SIZE_LARGEST = 360,
- THUMBNAIL_CACHE_SIZE_BIG = 360,
- THUMBNAIL_CACHE_SIZE_MEDIUM = 128,
- THUMBNAIL_CACHE_SIZE_SMALLEST = 128
-} ThumbnailCacheSize;
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-
-static gpointer thumbnail_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType media_source_item_get_type (void) G_GNUC_CONST;
-GType thumbnail_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-#define THUMBNAIL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_THUMBNAIL, ThumbnailPrivate))
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType container_source_get_type (void) G_GNUC_CONST;
-static void thumbnail_on_tag_contents_altered (Thumbnail* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinking,
- GeeCollection* removed,
- gboolean unlinking);
-static void _thumbnail_on_tag_contents_altered_container_source_collection_container_contents_altered (ContainerSourceCollection* _sender,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked,
- gpointer self);
-static void thumbnail_on_tags_altered (Thumbnail* self,
- GeeMap* altered);
-static void _thumbnail_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-#define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles"
-#define THUMBNAIL_PROP_SHOW_TAGS CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES
-#define THUMBNAIL_PROP_SIZE "thumbnail-size"
-#define THUMBNAIL_PROP_SHOW_RATINGS "show-ratings"
-#define THUMBNAIL_LOW_QUALITY_INTERP GDK_INTERP_NEAREST
-#define THUMBNAIL_HIGH_QUALITY_INTERP GDK_INTERP_BILINEAR
-#define THUMBNAIL_HQ_IMPROVEMENT_MSEC 100
-Thumbnail* thumbnail_new (MediaSource* media,
- gint scale);
-Thumbnail* thumbnail_construct (GType object_type,
- MediaSource* media,
- gint scale);
-GType photo_exception_get_type (void) G_GNUC_CONST;
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-void dimensions_get_scaled (Dimensions *self,
- gint scale,
- gboolean scale_up,
- Dimensions* result);
-gchar* data_object_get_name (DataObject* self);
-gchar* media_source_get_comment (MediaSource* self);
-MediaSourceItem* media_source_item_new (ThumbnailSource* source,
- Dimensions* initial_pixbuf_dim,
- const gchar* title,
- const gchar* comment,
- gboolean marked_up,
- PangoAlignment alignment);
-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);
-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;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-void media_source_item_set_enable_sprockets (MediaSourceItem* self,
- gboolean enable_sprockets);
-static void thumbnail_update_title (Thumbnail* self,
- gboolean init);
-static void thumbnail_update_comment (Thumbnail* self,
- gboolean init);
-static void thumbnail_update_tags (Thumbnail* self,
- gboolean init);
-GType tag_get_type (void) G_GNUC_CONST;
-GeeSortedSet* tag_source_collection_fetch_sorted_for_source (TagSourceCollection* self,
- MediaSource* photo);
-void checkerboard_item_clear_tags (CheckerboardItem* self);
-void checkerboard_item_set_tags (CheckerboardItem* self,
- GeeCollection* tags,
- PangoAlignment alignment);
-gboolean tag_contains (Tag* self,
- MediaSource* source);
-gboolean is_string_empty (const gchar* s);
-void checkerboard_item_clear_title (CheckerboardItem* self);
-void media_source_item_set_title (MediaSourceItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-void checkerboard_item_clear_comment (CheckerboardItem* self);
-void checkerboard_item_set_comment (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-static void thumbnail_real_notify_altered (DataObject* base,
- Alteration* alteration);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-MediaSource* thumbnail_get_media_source (Thumbnail* self);
-gint64 thumbnail_photo_id_ascending_comparator (void* a,
- void* b);
-gint64 data_source_get_instance_id (DataSource* self);
-gint64 thumbnail_photo_id_descending_comparator (void* a,
- void* b);
-gint64 thumbnail_title_ascending_comparator (void* a,
- void* b);
-gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self);
-gint64 thumbnail_title_descending_comparator (void* a,
- void* b);
-gboolean thumbnail_title_comparator_predicate (DataObject* object,
- Alteration* alteration);
-gint64 thumbnail_exposure_time_ascending_comparator (void* a,
- void* b);
-time_t media_source_get_exposure_time (MediaSource* self);
-gint64 thumbnail_filename_ascending_comparator (void* a,
- void* b);
-gint64 thumbnail_exposure_time_desending_comparator (void* a,
- void* b);
-gint64 thumbnail_filename_descending_comparator (void* a,
- void* b);
-gboolean thumbnail_exposure_time_comparator_predicate (DataObject* object,
- Alteration* alteration);
-gboolean thumbnail_filename_comparator_predicate (DataObject* object,
- Alteration* alteration);
-GFile* media_source_get_file (MediaSource* self);
-gint64 thumbnail_rating_ascending_comparator (void* a,
- void* b);
-GType rating_get_type (void) G_GNUC_CONST;
-Rating media_source_get_rating (MediaSource* self);
-gint64 thumbnail_rating_descending_comparator (void* a,
- void* b);
-gboolean thumbnail_rating_comparator_predicate (DataObject* object,
- Alteration* alteration);
-static void thumbnail_real_thumbnail_altered (ThumbnailView* base);
-static void thumbnail_delayed_high_quality_fetch (Thumbnail* self);
-static void thumbnail_paint_empty (Thumbnail* self);
-static void thumbnail_real_notify_collection_property_set (DataObject* base,
- const gchar* name,
- GValue* old,
- GValue* val);
-static void thumbnail_resize (Thumbnail* self,
- gint new_scale);
-void data_view_notify_view_altered (DataView* self);
-void data_object_notify_collection_property_set (DataObject* self,
- const gchar* name,
- GValue* old,
- GValue* val);
-gint thumbnail_get_MIN_SCALE (void);
-gint thumbnail_get_MAX_SCALE (void);
-static void thumbnail_cancel_async_fetch (Thumbnail* self);
-gboolean checkerboard_item_has_image (CheckerboardItem* self);
-GdkPixbuf* checkerboard_item_get_image (CheckerboardItem* self);
-void checkerboard_item_set_image (CheckerboardItem* self,
- GdkPixbuf* pixbuf);
-GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* resized,
- GdkInterpType interp);
-void checkerboard_item_clear_image (CheckerboardItem* self,
- Dimensions* dim);
-static void thumbnail_schedule_low_quality_fetch (Thumbnail* self);
-void thumbnail_cache_fetch_async_scaled (ThumbnailSource* source,
- gint scale,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable);
-GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
-static void thumbnail_on_low_quality_fetched (Thumbnail* self,
- GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err);
-static void _thumbnail_on_low_quality_fetched_thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err,
- gpointer self);
-static gboolean thumbnail_on_schedule_high_quality (Thumbnail* self);
-static gboolean _thumbnail_on_schedule_high_quality_gsource_func (gpointer self);
-static void thumbnail_on_high_quality_fetched (Thumbnail* self,
- GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err);
-static void _thumbnail_on_high_quality_fetched_thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err,
- gpointer self);
-gchar* data_object_to_string (DataObject* self);
-static void thumbnail_real_exposed (CheckerboardItem* base);
-void checkerboard_item_exposed (CheckerboardItem* self);
-static void thumbnail_real_unexposed (CheckerboardItem* base);
-void checkerboard_item_unexposed (CheckerboardItem* self);
-static GdkPixbuf* thumbnail_real_get_top_right_trinket (CheckerboardItem* base,
- gint scale);
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-GdkPixbuf* resources_get_icon (const gchar* name,
- gint scale);
-#define RESOURCES_ICON_FLAGGED_TRINKET "flag-trinket.png"
-#define RESOURCES_DEFAULT_ICON_SCALE 24
-static GdkPixbuf* thumbnail_real_get_bottom_left_trinket (CheckerboardItem* base,
- gint scale);
-void data_object_get_collection_property (DataObject* self,
- const gchar* name,
- GValue* def,
- GValue* result);
-static void _vala_GValue_free (GValue* self);
-GdkPixbuf* resources_get_rating_trinket (Rating rating,
- gint scale);
-gint thumbnail_cache_size_get_scale (ThumbnailCacheSize self);
-gint thumbnail_get_DEFAULT_SCALE (void);
-static void thumbnail_finalize (GObject * obj);
-static void _vala_thumbnail_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-
-
-static void
-_thumbnail_on_tag_contents_altered_container_source_collection_container_contents_altered (ContainerSourceCollection* _sender,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked,
- gpointer self)
-{
-#line 76 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_on_tag_contents_altered ((Thumbnail*) self, container, added, relinked, removed, unlinked);
-#line 726 "Thumbnail.c"
-}
-
-
-static void
-_thumbnail_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 77 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_on_tags_altered ((Thumbnail*) self, items);
-#line 737 "Thumbnail.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 53 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return self ? g_object_ref (self) : NULL;
-#line 746 "Thumbnail.c"
-}
-
-
-Thumbnail*
-thumbnail_construct (GType object_type,
- MediaSource* media,
- gint scale)
-{
- Thumbnail * self = NULL;
- Dimensions _tmp0_ = {0};
- Dimensions _tmp1_ = {0};
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- MediaSource* _tmp6_;
- TagSourceCollection* _tmp7_;
- TagSourceCollection* _tmp8_;
- gboolean _tmp9_ = FALSE;
- Dimensions _tmp10_ = {0};
- Dimensions _tmp11_ = {0};
-#line 49 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL);
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- media_source_get_dimensions (media, PHOTO_EXCEPTION_NONE, &_tmp0_);
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- dimensions_get_scaled (&_tmp0_, scale, TRUE, &_tmp1_);
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_OBJECT, DataObject));
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = _tmp2_;
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = media_source_get_comment (media);
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = _tmp4_;
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = (Thumbnail*) media_source_item_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), &_tmp1_, _tmp3_, _tmp5_, FALSE, PANGO_ALIGN_LEFT);
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp5_);
-#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp3_);
-#line 53 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = _g_object_ref0 (media);
-#line 53 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->media);
-#line 53 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->media = _tmp6_;
-#line 54 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->scale = scale;
-#line 56 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp7_ = tag_global;
-#line 56 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), "container-contents-altered", (GCallback) _thumbnail_on_tag_contents_altered_container_source_collection_container_contents_altered, self, 0);
-#line 57 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp8_ = tag_global;
-#line 57 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _thumbnail_on_tags_altered_data_collection_items_altered, self, 0);
-#line 59 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_LIBRARY_PHOTO)) {
-#line 59 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp9_ = TRUE;
-#line 808 "Thumbnail.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_VIDEO);
-#line 812 "Thumbnail.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _vala_assert (_tmp9_, "(media is LibraryPhoto) || (media is Video)");
-#line 60 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- media_source_item_set_enable_sprockets (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_VIDEO));
-#line 62 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- media_source_get_dimensions (media, PHOTO_EXCEPTION_NONE, &_tmp10_);
-#line 62 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->original_dim = _tmp10_;
-#line 63 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- dimensions_get_scaled (&self->priv->original_dim, scale, TRUE, &_tmp11_);
-#line 63 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->dim = _tmp11_;
-#line 67 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_title (self, TRUE);
-#line 68 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_comment (self, TRUE);
-#line 69 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_tags (self, TRUE);
-#line 49 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return self;
-#line 834 "Thumbnail.c"
-}
-
-
-Thumbnail*
-thumbnail_new (MediaSource* media,
- gint scale)
-{
-#line 49 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return thumbnail_construct (TYPE_THUMBNAIL, media, scale);
-#line 844 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_update_tags (Thumbnail* self,
- gboolean init)
-{
- GeeCollection* tags = NULL;
- TagSourceCollection* _tmp0_;
- MediaSource* _tmp1_;
- GeeSortedSet* _tmp2_;
- gboolean _tmp3_ = FALSE;
- GeeCollection* _tmp4_;
-#line 80 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 81 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = tag_global;
-#line 81 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = self->priv->media;
-#line 81 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = tag_source_collection_fetch_sorted_for_source (_tmp0_, _tmp1_);
-#line 81 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = tags;
-#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp4_ == NULL) {
-#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = TRUE;
-#line 874 "Thumbnail.c"
- } else {
- GeeCollection* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = tags;
-#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = gee_collection_get_size (_tmp5_);
-#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp7_ = _tmp6_;
-#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = _tmp7_ == 0;
-#line 887 "Thumbnail.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp3_) {
-#line 83 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_clear_tags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 893 "Thumbnail.c"
- } else {
- GeeCollection* _tmp8_;
-#line 85 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp8_ = tags;
-#line 85 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_set_tags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp8_, PANGO_ALIGN_LEFT);
-#line 900 "Thumbnail.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (tags);
-#line 904 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_on_tag_contents_altered (Thumbnail* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinking,
- GeeCollection* removed,
- gboolean unlinking)
-{
- gboolean _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean tag_added = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean tag_removed = FALSE;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_;
-#line 88 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 88 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 88 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 88 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 90 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->exposure;
-#line 90 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (!_tmp0_) {
-#line 91 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return;
-#line 937 "Thumbnail.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (added != NULL) {
-#line 941 "Thumbnail.c"
- MediaSource* _tmp2_;
-#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = self->priv->media;
-#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = gee_collection_contains (added, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource));
-#line 947 "Thumbnail.c"
- } else {
-#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = FALSE;
-#line 951 "Thumbnail.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- tag_added = _tmp1_;
-#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (removed != NULL) {
-#line 957 "Thumbnail.c"
- MediaSource* _tmp4_;
-#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = self->priv->media;
-#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = gee_collection_contains (removed, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource));
-#line 963 "Thumbnail.c"
- } else {
-#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = FALSE;
-#line 967 "Thumbnail.c"
- }
-#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- tag_removed = _tmp3_;
-#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = tag_added;
-#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp6_) {
-#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = TRUE;
-#line 977 "Thumbnail.c"
- } else {
- gboolean _tmp7_;
-#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp7_ = tag_removed;
-#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = _tmp7_;
-#line 984 "Thumbnail.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp5_) {
-#line 98 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_tags (self, FALSE);
-#line 990 "Thumbnail.c"
- }
-}
-
-
-static void
-thumbnail_on_tags_altered (Thumbnail* self,
- GeeMap* altered)
-{
- gboolean _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 101 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (GEE_IS_MAP (altered));
-#line 102 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->exposure;
-#line 102 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (!_tmp0_) {
-#line 103 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return;
-#line 1010 "Thumbnail.c"
- }
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = gee_map_get_keys (altered);
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _tmp1_;
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = _tmp2_;
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = _tmp4_;
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_tmp3_);
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _object_it = _tmp5_;
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- while (TRUE) {
-#line 1035 "Thumbnail.c"
- GeeIterator* _tmp6_;
- DataObject* object = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- Tag* tag = NULL;
- DataObject* _tmp9_;
- Tag* _tmp10_;
- Tag* _tmp11_;
- MediaSource* _tmp12_;
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = _object_it;
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- break;
-#line 1051 "Thumbnail.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp7_ = _object_it;
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- object = (DataObject*) _tmp8_;
-#line 106 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp9_ = object;
-#line 106 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_TAG, Tag));
-#line 106 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- tag = _tmp10_;
-#line 108 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp11_ = tag;
-#line 108 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp12_ = self->priv->media;
-#line 108 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (tag_contains (_tmp11_, _tmp12_)) {
-#line 109 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_tags (self, FALSE);
-#line 111 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (tag);
-#line 111 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (object);
-#line 111 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- break;
-#line 1079 "Thumbnail.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (tag);
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (object);
-#line 1085 "Thumbnail.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_object_it);
-#line 1089 "Thumbnail.c"
- }
-}
-
-
-static void
-thumbnail_update_title (Thumbnail* self,
- gboolean init)
-{
- gchar* title = NULL;
- MediaSource* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 117 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->media;
-#line 117 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject));
-#line 117 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- title = _tmp1_;
-#line 118 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = title;
-#line 118 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (is_string_empty (_tmp2_)) {
-#line 119 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_clear_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1116 "Thumbnail.c"
- } else {
-#line 120 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (!init) {
-#line 1120 "Thumbnail.c"
- const gchar* _tmp3_;
-#line 121 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = title;
-#line 121 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- media_source_item_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), _tmp3_, FALSE, PANGO_ALIGN_LEFT);
-#line 1126 "Thumbnail.c"
- }
- }
-#line 116 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (title);
-#line 1131 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_update_comment (Thumbnail* self,
- gboolean init)
-{
- gchar* comment = NULL;
- MediaSource* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
-#line 124 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 125 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->media;
-#line 125 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = media_source_get_comment (_tmp0_);
-#line 125 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- comment = _tmp1_;
-#line 126 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = comment;
-#line 126 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (is_string_empty (_tmp2_)) {
-#line 127 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_clear_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1157 "Thumbnail.c"
- } else {
-#line 128 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (!init) {
-#line 1161 "Thumbnail.c"
- const gchar* _tmp3_;
-#line 129 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = comment;
-#line 129 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp3_, FALSE, PANGO_ALIGN_LEFT);
-#line 1167 "Thumbnail.c"
- }
- }
-#line 124 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (comment);
-#line 1172 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_real_notify_altered (DataObject* base,
- Alteration* alteration)
-{
- Thumbnail * self;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
-#line 132 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail);
-#line 132 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = self->priv->exposure;
-#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp1_) {
-#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = alteration_has_detail (alteration, "metadata", "name");
-#line 1195 "Thumbnail.c"
- } else {
-#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = FALSE;
-#line 1199 "Thumbnail.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp0_) {
-#line 134 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_title (self, FALSE);
-#line 1205 "Thumbnail.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = self->priv->exposure;
-#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp3_) {
-#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = alteration_has_detail (alteration, "metadata", "comment");
-#line 1213 "Thumbnail.c"
- } else {
-#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = FALSE;
-#line 1217 "Thumbnail.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp2_) {
-#line 136 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_comment (self, FALSE);
-#line 1223 "Thumbnail.c"
- }
-#line 138 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- DATA_OBJECT_CLASS (thumbnail_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_DATA_OBJECT, DataObject), alteration);
-#line 1227 "Thumbnail.c"
-}
-
-
-MediaSource*
-thumbnail_get_media_source (Thumbnail* self)
-{
- MediaSource* result = NULL;
- MediaSource* _tmp0_;
- MediaSource* _tmp1_;
-#line 141 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_THUMBNAIL (self), NULL);
-#line 142 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->media;
-#line 142 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 142 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp1_;
-#line 142 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1247 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_photo_id_ascending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- MediaSource* _tmp0_;
- MediaSource* _tmp1_;
-#line 150 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_THUMBNAIL, Thumbnail)->priv->media;
-#line 150 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_THUMBNAIL, Thumbnail)->priv->media;
-#line 150 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource)) - data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource));
-#line 150 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1266 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_photo_id_descending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
-#line 154 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = thumbnail_photo_id_ascending_comparator (b, a);
-#line 154 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1279 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_title_ascending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 _result_ = 0LL;
- GCompareFunc _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gint64 _tmp5_;
- gint64 _tmp6_ = 0LL;
- gint64 _tmp7_;
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = g_strcmp0;
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = media_source_item_get_natural_collation_key (G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem));
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _tmp1_;
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = media_source_item_get_natural_collation_key (G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem));
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = _tmp3_;
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = (gint64) _tmp0_ (_tmp2_, _tmp4_);
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp4_);
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp2_);
-#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _result_ = _tmp5_;
-#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp7_ = _result_;
-#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp7_ != ((gint64) 0)) {
-#line 1319 "Thumbnail.c"
- gint64 _tmp8_;
-#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp8_ = _result_;
-#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = _tmp8_;
-#line 1325 "Thumbnail.c"
- } else {
-#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = thumbnail_photo_id_ascending_comparator (a, b);
-#line 1329 "Thumbnail.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp6_;
-#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1335 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_title_descending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 _result_ = 0LL;
- gint64 _tmp0_ = 0LL;
- gint64 _tmp1_;
-#line 163 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _result_ = thumbnail_title_ascending_comparator (b, a);
-#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _result_;
-#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp1_ != ((gint64) 0)) {
-#line 1353 "Thumbnail.c"
- gint64 _tmp2_;
-#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _result_;
-#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = _tmp2_;
-#line 1359 "Thumbnail.c"
- } else {
-#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = thumbnail_photo_id_descending_comparator (a, b);
-#line 1363 "Thumbnail.c"
- }
-#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp0_;
-#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1369 "Thumbnail.c"
-}
-
-
-gboolean
-thumbnail_title_comparator_predicate (DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 168 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 168 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 169 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = alteration_has_detail (alteration, "metadata", "title");
-#line 169 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1386 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_exposure_time_ascending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 time_a = 0LL;
- MediaSource* _tmp0_;
- gint64 time_b = 0LL;
- MediaSource* _tmp1_;
- gint64 _result_ = 0LL;
- gint64 _tmp2_;
- gint64 _tmp3_;
- gint64 _tmp4_ = 0LL;
- gint64 _tmp5_;
-#line 173 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_THUMBNAIL, Thumbnail)->priv->media;
-#line 173 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- time_a = (gint64) media_source_get_exposure_time (_tmp0_);
-#line 174 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_THUMBNAIL, Thumbnail)->priv->media;
-#line 174 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- time_b = (gint64) media_source_get_exposure_time (_tmp1_);
-#line 175 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = time_a;
-#line 175 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = time_b;
-#line 175 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _result_ = _tmp2_ - _tmp3_;
-#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = _result_;
-#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp5_ != ((gint64) 0)) {
-#line 1422 "Thumbnail.c"
- gint64 _tmp6_;
-#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = _result_;
-#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = _tmp6_;
-#line 1428 "Thumbnail.c"
- } else {
-#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = thumbnail_filename_ascending_comparator (a, b);
-#line 1432 "Thumbnail.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp4_;
-#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1438 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_exposure_time_desending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 _result_ = 0LL;
- gint64 _tmp0_ = 0LL;
- gint64 _tmp1_;
-#line 181 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _result_ = thumbnail_exposure_time_ascending_comparator (b, a);
-#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _result_;
-#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp1_ != ((gint64) 0)) {
-#line 1456 "Thumbnail.c"
- gint64 _tmp2_;
-#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _result_;
-#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = _tmp2_;
-#line 1462 "Thumbnail.c"
- } else {
-#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = thumbnail_filename_descending_comparator (a, b);
-#line 1466 "Thumbnail.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1472 "Thumbnail.c"
-}
-
-
-gboolean
-thumbnail_exposure_time_comparator_predicate (DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 186 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 186 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 187 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = alteration_has_detail (alteration, "metadata", "exposure-time");
-#line 187 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1489 "Thumbnail.c"
-}
-
-
-gboolean
-thumbnail_filename_comparator_predicate (DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 190 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 190 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 191 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = alteration_has_detail (alteration, "metadata", "filename");
-#line 191 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1506 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_filename_ascending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gchar* path_a = NULL;
- MediaSource* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* path_b = NULL;
- MediaSource* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gint64 _result_ = 0LL;
- GCompareFunc _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gint64 _tmp21_;
- gint64 _tmp22_ = 0LL;
- gint64 _tmp23_;
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_THUMBNAIL, Thumbnail)->priv->media;
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = media_source_get_file (_tmp0_);
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _tmp1_;
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = g_file_get_basename (_tmp2_);
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = _tmp3_;
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = g_utf8_strdown (_tmp4_, (gssize) -1);
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = _tmp5_;
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp4_);
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_tmp2_);
-#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- path_a = _tmp6_;
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_THUMBNAIL, Thumbnail)->priv->media;
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp8_ = media_source_get_file (_tmp7_);
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp9_ = _tmp8_;
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp10_ = g_file_get_basename (_tmp9_);
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp11_ = _tmp10_;
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp12_ = g_utf8_strdown (_tmp11_, (gssize) -1);
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp13_ = _tmp12_;
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp11_);
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_tmp9_);
-#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- path_b = _tmp13_;
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp14_ = g_strcmp0;
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp15_ = path_a;
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp16_ = g_utf8_collate_key_for_filename (_tmp15_, (gssize) -1);
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp17_ = _tmp16_;
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp18_ = path_b;
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp19_ = g_utf8_collate_key_for_filename (_tmp18_, (gssize) -1);
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp20_ = _tmp19_;
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp21_ = (gint64) _tmp14_ (_tmp17_, _tmp20_);
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp20_);
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp17_);
-#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _result_ = _tmp21_;
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp23_ = _result_;
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp23_ != ((gint64) 0)) {
-#line 1608 "Thumbnail.c"
- gint64 _tmp24_;
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp24_ = _result_;
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp22_ = _tmp24_;
-#line 1614 "Thumbnail.c"
- } else {
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp22_ = thumbnail_photo_id_ascending_comparator (a, b);
-#line 1618 "Thumbnail.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp22_;
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (path_b);
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (path_a);
-#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1628 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_filename_descending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 _result_ = 0LL;
- gint64 _tmp0_ = 0LL;
- gint64 _tmp1_;
-#line 203 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _result_ = thumbnail_filename_ascending_comparator (b, a);
-#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _result_;
-#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp1_ != ((gint64) 0)) {
-#line 1646 "Thumbnail.c"
- gint64 _tmp2_;
-#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _result_;
-#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = _tmp2_;
-#line 1652 "Thumbnail.c"
- } else {
-#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = thumbnail_photo_id_descending_comparator (a, b);
-#line 1656 "Thumbnail.c"
- }
-#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp0_;
-#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1662 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_rating_ascending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 _result_ = 0LL;
- MediaSource* _tmp0_;
- MediaSource* _tmp1_;
- gint64 _tmp2_ = 0LL;
- gint64 _tmp3_;
-#line 209 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_THUMBNAIL, Thumbnail)->priv->media;
-#line 209 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_THUMBNAIL, Thumbnail)->priv->media;
-#line 209 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _result_ = (gint64) (media_source_get_rating (_tmp0_) - media_source_get_rating (_tmp1_));
-#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = _result_;
-#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp3_ != ((gint64) 0)) {
-#line 1686 "Thumbnail.c"
- gint64 _tmp4_;
-#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = _result_;
-#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _tmp4_;
-#line 1692 "Thumbnail.c"
- } else {
-#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = thumbnail_photo_id_ascending_comparator (a, b);
-#line 1696 "Thumbnail.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp2_;
-#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1702 "Thumbnail.c"
-}
-
-
-gint64
-thumbnail_rating_descending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 _result_ = 0LL;
- gint64 _tmp0_ = 0LL;
- gint64 _tmp1_;
-#line 215 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _result_ = thumbnail_rating_ascending_comparator (b, a);
-#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _result_;
-#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp1_ != ((gint64) 0)) {
-#line 1720 "Thumbnail.c"
- gint64 _tmp2_;
-#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _result_;
-#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = _tmp2_;
-#line 1726 "Thumbnail.c"
- } else {
-#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = thumbnail_photo_id_descending_comparator (a, b);
-#line 1730 "Thumbnail.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp0_;
-#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1736 "Thumbnail.c"
-}
-
-
-gboolean
-thumbnail_rating_comparator_predicate (DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 220 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 220 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 221 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = alteration_has_detail (alteration, "metadata", "rating");
-#line 221 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 1753 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_real_thumbnail_altered (ThumbnailView* base)
-{
- Thumbnail * self;
- MediaSource* _tmp0_;
- Dimensions _tmp1_ = {0};
- gint _tmp2_;
- Dimensions _tmp3_ = {0};
- gboolean _tmp4_;
-#line 224 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail);
-#line 225 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->media;
-#line 225 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- media_source_get_dimensions (_tmp0_, PHOTO_EXCEPTION_NONE, &_tmp1_);
-#line 225 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->original_dim = _tmp1_;
-#line 226 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = self->priv->scale;
-#line 226 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- dimensions_get_scaled (&self->priv->original_dim, _tmp2_, TRUE, &_tmp3_);
-#line 226 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->dim = _tmp3_;
-#line 228 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = self->priv->exposure;
-#line 228 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp4_) {
-#line 229 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_delayed_high_quality_fetch (self);
-#line 1786 "Thumbnail.c"
- } else {
-#line 231 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_paint_empty (self);
-#line 1790 "Thumbnail.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- THUMBNAIL_VIEW_CLASS (thumbnail_parent_class)->thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_THUMBNAIL_VIEW, ThumbnailView));
-#line 1794 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_real_notify_collection_property_set (DataObject* base,
- const gchar* name,
- GValue* old,
- GValue* val)
-{
- Thumbnail * self;
- const gchar* _tmp0_;
- GQuark _tmp2_ = 0U;
- GValue _tmp4_;
-#line 236 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail);
-#line 236 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (name != NULL);
-#line 236 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (val != NULL);
-#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = name;
-#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_);
-#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp2_ == g_quark_from_string (THUMBNAIL_PROP_SIZE)) {
-#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- switch (0) {
-#line 1822 "Thumbnail.c"
- default:
- {
- GValue _tmp3_;
-#line 239 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = *val;
-#line 239 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_resize (self, g_value_get_int (&_tmp3_));
-#line 240 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- break;
-#line 1832 "Thumbnail.c"
- }
- }
- } else if (_tmp2_ == g_quark_from_string (THUMBNAIL_PROP_SHOW_RATINGS)) {
-#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- switch (0) {
-#line 1838 "Thumbnail.c"
- default:
- {
-#line 243 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 244 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- break;
-#line 1845 "Thumbnail.c"
- }
- }
- }
-#line 247 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = *val;
-#line 247 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- DATA_OBJECT_CLASS (thumbnail_parent_class)->notify_collection_property_set (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_DATA_OBJECT, DataObject), name, old, &_tmp4_);
-#line 1853 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_resize (Thumbnail* self,
- gint new_scale)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- Dimensions _tmp6_ = {0};
- gboolean _tmp7_;
-#line 250 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 251 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = thumbnail_get_MIN_SCALE ();
-#line 251 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _tmp0_;
-#line 251 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _vala_assert (new_scale >= _tmp1_, "new_scale >= MIN_SCALE");
-#line 252 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = thumbnail_get_MAX_SCALE ();
-#line 252 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = _tmp2_;
-#line 252 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _vala_assert (new_scale <= _tmp3_, "new_scale <= MAX_SCALE");
-#line 254 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = self->priv->scale;
-#line 254 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp4_ == new_scale) {
-#line 255 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return;
-#line 1889 "Thumbnail.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->scale = new_scale;
-#line 258 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = self->priv->scale;
-#line 258 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- dimensions_get_scaled (&self->priv->original_dim, _tmp5_, TRUE, &_tmp6_);
-#line 258 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->dim = _tmp6_;
-#line 260 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_cancel_async_fetch (self);
-#line 262 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp7_ = self->priv->exposure;
-#line 262 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp7_) {
-#line 1905 "Thumbnail.c"
- GdkPixbuf* resizable = NULL;
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp12_;
-#line 267 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- resizable = NULL;
-#line 268 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp8_ = self->priv->unscaled_pixbuf;
-#line 268 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp8_ != NULL) {
-#line 1915 "Thumbnail.c"
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
-#line 269 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp9_ = self->priv->unscaled_pixbuf;
-#line 269 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 269 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (resizable);
-#line 269 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- resizable = _tmp10_;
-#line 1926 "Thumbnail.c"
- } else {
-#line 270 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (checkerboard_item_has_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) {
-#line 1930 "Thumbnail.c"
- GdkPixbuf* _tmp11_;
-#line 271 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp11_ = checkerboard_item_get_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 271 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (resizable);
-#line 271 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- resizable = _tmp11_;
-#line 1938 "Thumbnail.c"
- }
- }
-#line 273 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp12_ = resizable;
-#line 273 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp12_ != NULL) {
-#line 1945 "Thumbnail.c"
- GdkPixbuf* _tmp13_;
- Dimensions _tmp14_;
- GdkPixbuf* _tmp15_;
- GdkPixbuf* _tmp16_;
-#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp13_ = resizable;
-#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp14_ = self->priv->dim;
-#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp15_ = resize_pixbuf (_tmp13_, &_tmp14_, THUMBNAIL_LOW_QUALITY_INTERP);
-#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp16_ = _tmp15_;
-#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp16_);
-#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_tmp16_);
-#line 1962 "Thumbnail.c"
- }
-#line 276 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_delayed_high_quality_fetch (self);
-#line 262 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (resizable);
-#line 1968 "Thumbnail.c"
- } else {
- Dimensions _tmp17_;
-#line 278 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp17_ = self->priv->dim;
-#line 278 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp17_);
-#line 1975 "Thumbnail.c"
- }
-}
-
-
-static void
-thumbnail_paint_empty (Thumbnail* self)
-{
- Dimensions _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 283 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_cancel_async_fetch (self);
-#line 284 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->dim;
-#line 284 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp0_);
-#line 285 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->unscaled_pixbuf);
-#line 285 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->unscaled_pixbuf = NULL;
-#line 1996 "Thumbnail.c"
-}
-
-
-static void
-_thumbnail_on_low_quality_fetched_thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err,
- gpointer self)
-{
-#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_on_low_quality_fetched ((Thumbnail*) self, pixbuf, unscaled, dim, interp, err);
-#line 2010 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_schedule_low_quality_fetch (Thumbnail* self)
-{
- GCancellable* _tmp0_;
- MediaSource* _tmp1_;
- Dimensions _tmp2_;
- GCancellable* _tmp3_;
-#line 288 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 289 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_cancel_async_fetch (self);
-#line 290 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = g_cancellable_new ();
-#line 290 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 290 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->cancellable = _tmp0_;
-#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = self->priv->media;
-#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = self->priv->dim;
-#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = self->priv->cancellable;
-#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_cache_fetch_async_scaled (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_SMALLEST, &_tmp2_, THUMBNAIL_LOW_QUALITY_INTERP, _thumbnail_on_low_quality_fetched_thumbnail_cache_async_fetch_callback, self, _tmp3_);
-#line 2039 "Thumbnail.c"
-}
-
-
-static gboolean
-_thumbnail_on_schedule_high_quality_gsource_func (gpointer self)
-{
- gboolean result;
- result = thumbnail_on_schedule_high_quality ((Thumbnail*) self);
-#line 303 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 2050 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_delayed_high_quality_fetch (Thumbnail* self)
-{
- gboolean _tmp0_;
-#line 296 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 297 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->hq_scheduled;
-#line 297 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp0_) {
-#line 298 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->hq_reschedule = TRUE;
-#line 300 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return;
-#line 2068 "Thumbnail.c"
- }
-#line 303 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) THUMBNAIL_HQ_IMPROVEMENT_MSEC, _thumbnail_on_schedule_high_quality_gsource_func, g_object_ref (self), g_object_unref);
-#line 304 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->hq_scheduled = TRUE;
-#line 2074 "Thumbnail.c"
-}
-
-
-static void
-_thumbnail_on_high_quality_fetched_thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err,
- gpointer self)
-{
-#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_on_high_quality_fetched ((Thumbnail*) self, pixbuf, unscaled, dim, interp, err);
-#line 2088 "Thumbnail.c"
-}
-
-
-static gboolean
-thumbnail_on_schedule_high_quality (Thumbnail* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- GCancellable* _tmp1_;
- gboolean _tmp2_;
-#line 307 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_val_if_fail (IS_THUMBNAIL (self), FALSE);
-#line 308 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->hq_reschedule;
-#line 308 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp0_) {
-#line 309 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->hq_reschedule = FALSE;
-#line 311 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = TRUE;
-#line 311 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 2111 "Thumbnail.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_cancel_async_fetch (self);
-#line 315 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = g_cancellable_new ();
-#line 315 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 315 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->cancellable = _tmp1_;
-#line 317 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = self->priv->exposure;
-#line 317 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp2_) {
-#line 2125 "Thumbnail.c"
- MediaSource* _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_;
- GCancellable* _tmp6_;
-#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = self->priv->media;
-#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = self->priv->scale;
-#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = self->priv->dim;
-#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = self->priv->cancellable;
-#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_cache_fetch_async_scaled (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp4_, &_tmp5_, THUMBNAIL_HIGH_QUALITY_INTERP, _thumbnail_on_high_quality_fetched_thumbnail_cache_async_fetch_callback, self, _tmp6_);
-#line 2140 "Thumbnail.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->hq_scheduled = FALSE;
-#line 324 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = FALSE;
-#line 324 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 2148 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_cancel_async_fetch (Thumbnail* self)
-{
- GCancellable* _tmp0_;
-#line 327 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 329 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->cancellable;
-#line 329 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp0_ != NULL) {
-#line 2162 "Thumbnail.c"
- GCancellable* _tmp1_;
-#line 330 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = self->priv->cancellable;
-#line 330 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_cancellable_cancel (_tmp1_);
-#line 2168 "Thumbnail.c"
- }
-}
-
-
-static void
-thumbnail_on_low_quality_fetched (Thumbnail* self,
- GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err)
-{
-#line 333 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 333 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail ((pixbuf == NULL) || GDK_IS_PIXBUF (pixbuf));
-#line 333 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail ((unscaled == NULL) || GDK_IS_PIXBUF (unscaled));
-#line 333 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (dim != NULL);
-#line 335 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (err != NULL) {
-#line 2191 "Thumbnail.c"
- gchar* _tmp0_;
- gchar* _tmp1_;
- gint _tmp2_;
- const gchar* _tmp3_;
-#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _tmp0_;
-#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = self->priv->scale;
-#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = err->message;
-#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_critical ("Thumbnail.vala:336: Unable to fetch low-quality thumbnail for %s (scal" \
-"e: %d): %s", _tmp1_, _tmp2_, _tmp3_);
-#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp1_);
-#line 2208 "Thumbnail.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (pixbuf != NULL) {
-#line 340 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), pixbuf);
-#line 2214 "Thumbnail.c"
- }
-#line 342 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (unscaled != NULL) {
-#line 2218 "Thumbnail.c"
- GdkPixbuf* _tmp4_;
-#line 343 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = _g_object_ref0 (unscaled);
-#line 343 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->unscaled_pixbuf);
-#line 343 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->unscaled_pixbuf = _tmp4_;
-#line 2226 "Thumbnail.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_delayed_high_quality_fetch (self);
-#line 2230 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_on_high_quality_fetched (Thumbnail* self,
- GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err)
-{
-#line 348 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (IS_THUMBNAIL (self));
-#line 348 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail ((pixbuf == NULL) || GDK_IS_PIXBUF (pixbuf));
-#line 348 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail ((unscaled == NULL) || GDK_IS_PIXBUF (unscaled));
-#line 348 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_return_if_fail (dim != NULL);
-#line 350 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (err != NULL) {
-#line 2252 "Thumbnail.c"
- gchar* _tmp0_;
- gchar* _tmp1_;
- gint _tmp2_;
- const gchar* _tmp3_;
-#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _tmp0_;
-#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = self->priv->scale;
-#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = err->message;
-#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_critical ("Thumbnail.vala:351: Unable to fetch high-quality thumbnail for %s (sca" \
-"le: %d): %s", _tmp1_, _tmp2_, _tmp3_);
-#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_free0 (_tmp1_);
-#line 2269 "Thumbnail.c"
- }
-#line 354 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (pixbuf != NULL) {
-#line 355 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), pixbuf);
-#line 2275 "Thumbnail.c"
- }
-#line 357 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (unscaled != NULL) {
-#line 2279 "Thumbnail.c"
- GdkPixbuf* _tmp4_;
-#line 358 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = _g_object_ref0 (unscaled);
-#line 358 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->unscaled_pixbuf);
-#line 358 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->unscaled_pixbuf = _tmp4_;
-#line 2287 "Thumbnail.c"
- }
-}
-
-
-static void
-thumbnail_real_exposed (CheckerboardItem* base)
-{
- Thumbnail * self;
-#line 361 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail);
-#line 362 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->exposure = TRUE;
-#line 364 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (!checkerboard_item_has_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) {
-#line 365 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_schedule_low_quality_fetch (self);
-#line 2304 "Thumbnail.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_title (self, FALSE);
-#line 368 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_comment (self, FALSE);
-#line 369 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_update_tags (self, FALSE);
-#line 371 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- CHECKERBOARD_ITEM_CLASS (thumbnail_parent_class)->exposed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 2314 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_real_unexposed (CheckerboardItem* base)
-{
- Thumbnail * self;
-#line 374 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail);
-#line 375 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->exposure = FALSE;
-#line 377 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_paint_empty (self);
-#line 379 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- CHECKERBOARD_ITEM_CLASS (thumbnail_parent_class)->unexposed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 2330 "Thumbnail.c"
-}
-
-
-static GdkPixbuf*
-thumbnail_real_get_top_right_trinket (CheckerboardItem* base,
- gint scale)
-{
- Thumbnail * self;
- GdkPixbuf* result = NULL;
- Flaggable* flaggable = NULL;
- MediaSource* _tmp0_;
- Flaggable* _tmp1_;
- GdkPixbuf* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
- Flaggable* _tmp4_;
-#line 382 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail);
-#line 383 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->media;
-#line 383 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp0_) : NULL);
-#line 383 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- flaggable = _tmp1_;
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = flaggable;
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp4_ != NULL) {
-#line 2358 "Thumbnail.c"
- Flaggable* _tmp5_;
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = flaggable;
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = flaggable_is_flagged (_tmp5_);
-#line 2364 "Thumbnail.c"
- } else {
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = FALSE;
-#line 2368 "Thumbnail.c"
- }
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp3_) {
-#line 2372 "Thumbnail.c"
- GdkPixbuf* _tmp6_;
-#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = resources_get_icon (RESOURCES_ICON_FLAGGED_TRINKET, RESOURCES_DEFAULT_ICON_SCALE);
-#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_tmp2_);
-#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = _tmp6_;
-#line 2380 "Thumbnail.c"
- } else {
-#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_tmp2_);
-#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = NULL;
-#line 2386 "Thumbnail.c"
- }
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp2_;
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (flaggable);
-#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 2394 "Thumbnail.c"
-}
-
-
-static void
-_vala_GValue_free (GValue* self)
-{
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_value_unset (self);
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_free (self);
-#line 2405 "Thumbnail.c"
-}
-
-
-static GdkPixbuf*
-thumbnail_real_get_bottom_left_trinket (CheckerboardItem* base,
- gint scale)
-{
- Thumbnail * self;
- GdkPixbuf* result = NULL;
- Rating rating = 0;
- MediaSource* _tmp0_;
- gboolean show_ratings = FALSE;
- GValue* _tmp1_ = NULL;
- GValue _tmp2_ = {0};
- gboolean _tmp3_;
- GdkPixbuf* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
- Rating _tmp6_;
-#line 389 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail);
-#line 390 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->media;
-#line 390 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- rating = media_source_get_rating (_tmp0_);
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = g_new0 (GValue, 1);
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_value_init (_tmp1_, G_TYPE_BOOLEAN);
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_value_set_boolean (_tmp1_, FALSE);
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- data_object_get_collection_property (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), THUMBNAIL_PROP_SHOW_RATINGS, _tmp1_, &_tmp2_);
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp3_ = g_value_get_boolean (&_tmp2_);
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- __vala_GValue_free0 (_tmp1_);
-#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- show_ratings = _tmp3_;
-#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp6_ = rating;
-#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp6_ != RATING_UNRATED) {
-#line 2448 "Thumbnail.c"
- gboolean _tmp7_;
-#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp7_ = show_ratings;
-#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = _tmp7_;
-#line 2454 "Thumbnail.c"
- } else {
-#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp5_ = FALSE;
-#line 2458 "Thumbnail.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp5_) {
-#line 2462 "Thumbnail.c"
- Rating _tmp8_;
- GdkPixbuf* _tmp9_;
-#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp8_ = rating;
-#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp9_ = resources_get_rating_trinket (_tmp8_, scale);
-#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_tmp4_);
-#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = _tmp9_;
-#line 2473 "Thumbnail.c"
- } else {
-#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (_tmp4_);
-#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = NULL;
-#line 2479 "Thumbnail.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = _tmp4_;
-#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 2485 "Thumbnail.c"
-}
-
-
-gint
-thumbnail_get_MIN_SCALE (void)
-{
- gint result;
-#line 18 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = 72;
-#line 18 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 2497 "Thumbnail.c"
-}
-
-
-gint
-thumbnail_get_MAX_SCALE (void)
-{
- gint result;
-#line 23 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_LARGEST);
-#line 23 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 2509 "Thumbnail.c"
-}
-
-
-gint
-thumbnail_get_DEFAULT_SCALE (void)
-{
- gint result;
-#line 28 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- result = thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_MEDIUM);
-#line 28 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- return result;
-#line 2521 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_class_init (ThumbnailClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- thumbnail_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_type_class_add_private (klass, sizeof (ThumbnailPrivate));
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) thumbnail_real_notify_altered;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- ((ThumbnailViewClass *) klass)->thumbnail_altered = (void (*) (ThumbnailView *)) thumbnail_real_thumbnail_altered;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- ((DataObjectClass *) klass)->notify_collection_property_set = (void (*) (DataObject *, const gchar*, GValue*, GValue*)) thumbnail_real_notify_collection_property_set;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- ((CheckerboardItemClass *) klass)->exposed = (void (*) (CheckerboardItem *)) thumbnail_real_exposed;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- ((CheckerboardItemClass *) klass)->unexposed = (void (*) (CheckerboardItem *)) thumbnail_real_unexposed;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- ((CheckerboardItemClass *) klass)->get_top_right_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) thumbnail_real_get_top_right_trinket;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- ((CheckerboardItemClass *) klass)->get_bottom_left_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) thumbnail_real_get_bottom_left_trinket;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_thumbnail_get_property;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- G_OBJECT_CLASS (klass)->finalize = thumbnail_finalize;
-#line 2550 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_instance_init (Thumbnail * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv = THUMBNAIL_GET_PRIVATE (self);
-#line 41 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->unscaled_pixbuf = NULL;
-#line 42 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->cancellable = NULL;
-#line 43 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->hq_scheduled = FALSE;
-#line 44 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->hq_reschedule = FALSE;
-#line 47 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self->priv->exposure = FALSE;
-#line 2569 "Thumbnail.c"
-}
-
-
-static void
-thumbnail_finalize (GObject * obj)
-{
- Thumbnail * self;
- GCancellable* _tmp0_;
- TagSourceCollection* _tmp2_;
- guint _tmp3_;
- TagSourceCollection* _tmp4_;
- guint _tmp5_;
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAIL, Thumbnail);
-#line 73 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp0_ = self->priv->cancellable;
-#line 73 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- if (_tmp0_ != NULL) {
-#line 2588 "Thumbnail.c"
- GCancellable* _tmp1_;
-#line 74 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp1_ = self->priv->cancellable;
-#line 74 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_cancellable_cancel (_tmp1_);
-#line 2594 "Thumbnail.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp2_ = tag_global;
-#line 76 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_signal_parse_name ("container-contents-altered", TYPE_CONTAINER_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 76 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _thumbnail_on_tag_contents_altered_container_source_collection_container_contents_altered, self);
-#line 77 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _tmp4_ = tag_global;
-#line 77 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 77 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _thumbnail_on_tags_altered_data_collection_items_altered, self);
-#line 37 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->media);
-#line 41 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->unscaled_pixbuf);
-#line 42 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- G_OBJECT_CLASS (thumbnail_parent_class)->finalize (obj);
-#line 2616 "Thumbnail.c"
-}
-
-
-GType
-thumbnail_get_type (void)
-{
- static volatile gsize thumbnail_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnail_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ThumbnailClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Thumbnail), 0, (GInstanceInitFunc) thumbnail_instance_init, NULL };
- GType thumbnail_type_id;
- thumbnail_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_ITEM, "Thumbnail", &g_define_type_info, 0);
- g_once_init_leave (&thumbnail_type_id__volatile, thumbnail_type_id);
- }
- return thumbnail_type_id__volatile;
-}
-
-
-static void
-_vala_thumbnail_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- Thumbnail * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_THUMBNAIL, Thumbnail);
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- switch (property_id) {
-#line 2644 "Thumbnail.c"
- default:
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala"
- break;
-#line 2650 "Thumbnail.c"
- }
-}
-
-
-
diff --git a/src/Thumbnail.vala b/src/Thumbnail.vala
index 17dda4b..f47fc69 100644
--- a/src/Thumbnail.vala
+++ b/src/Thumbnail.vala
@@ -57,8 +57,7 @@ public class Thumbnail : MediaSourceItem {
Tag.global.items_altered.connect(on_tags_altered);
assert((media is LibraryPhoto) || (media is Video));
- set_enable_sprockets(media is Video);
-
+
original_dim = media.get_dimensions();
dim = original_dim.get_scaled(scale, true);
@@ -378,12 +377,15 @@ public class Thumbnail : MediaSourceItem {
base.unexposed();
}
-
+
protected override Gdk.Pixbuf? get_top_right_trinket(int scale) {
Flaggable? flaggable = media as Flaggable;
- return (flaggable != null && flaggable.is_flagged())
- ? Resources.get_icon(Resources.ICON_FLAGGED_TRINKET) : null;
+ if (!(flaggable != null && flaggable.is_flagged()))
+ return null;
+
+ return Resources.get_flagged_trinket(scale);
+
}
protected override Gdk.Pixbuf? get_bottom_left_trinket(int scale) {
@@ -393,4 +395,8 @@ public class Thumbnail : MediaSourceItem {
return (rating != Rating.UNRATED && show_ratings)
? Resources.get_rating_trinket(rating, scale) : null;
}
+
+ protected override Gdk.Pixbuf? get_top_left_trinket(int scale) {
+ return (media is Video) ? Resources.get_video_trinket (scale) : null;
+ }
}
diff --git a/src/ThumbnailCache.c b/src/ThumbnailCache.c
deleted file mode 100644
index 8b17e03..0000000
--- a/src/ThumbnailCache.c
+++ /dev/null
@@ -1,4535 +0,0 @@
-/* ThumbnailCache.c generated by valac 0.40.4, the Vala compiler
- * generated from ThumbnailCache.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_THUMBNAILS (thumbnails_get_type ())
-#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails))
-#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass))
-#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS))
-#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS))
-#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass))
-
-typedef struct _Thumbnails Thumbnails;
-typedef struct _ThumbnailsClass ThumbnailsClass;
-typedef struct _ThumbnailsPrivate ThumbnailsPrivate;
-
-#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecThumbnails ParamSpecThumbnails;
-
-#define TYPE_THUMBNAIL_CACHE (thumbnail_cache_get_type ())
-#define THUMBNAIL_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_CACHE, ThumbnailCache))
-#define THUMBNAIL_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_CACHE, ThumbnailCacheClass))
-#define IS_THUMBNAIL_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_CACHE))
-#define IS_THUMBNAIL_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_CACHE))
-#define THUMBNAIL_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_CACHE, ThumbnailCacheClass))
-
-typedef struct _ThumbnailCache ThumbnailCache;
-typedef struct _ThumbnailCacheClass ThumbnailCacheClass;
-typedef struct _ThumbnailCachePrivate ThumbnailCachePrivate;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-
-#define THUMBNAIL_CACHE_TYPE_IMAGE_DATA (thumbnail_cache_image_data_get_type ())
-#define THUMBNAIL_CACHE_IMAGE_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUMBNAIL_CACHE_TYPE_IMAGE_DATA, ThumbnailCacheImageData))
-#define THUMBNAIL_CACHE_IMAGE_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), THUMBNAIL_CACHE_TYPE_IMAGE_DATA, ThumbnailCacheImageDataClass))
-#define THUMBNAIL_CACHE_IS_IMAGE_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUMBNAIL_CACHE_TYPE_IMAGE_DATA))
-#define THUMBNAIL_CACHE_IS_IMAGE_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUMBNAIL_CACHE_TYPE_IMAGE_DATA))
-#define THUMBNAIL_CACHE_IMAGE_DATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THUMBNAIL_CACHE_TYPE_IMAGE_DATA, ThumbnailCacheImageDataClass))
-
-typedef struct _ThumbnailCacheImageData ThumbnailCacheImageData;
-typedef struct _ThumbnailCacheImageDataClass ThumbnailCacheImageDataClass;
-enum {
- THUMBNAIL_CACHE_0_PROPERTY,
- THUMBNAIL_CACHE_NUM_PROPERTIES
-};
-static GParamSpec* thumbnail_cache_properties[THUMBNAIL_CACHE_NUM_PROPERTIES];
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _Scaling Scaling;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
-#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
-#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
-#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
-#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-
-typedef struct _OneShotScheduler OneShotScheduler;
-typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL)))
-#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_ROTATION (rotation_get_type ())
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB (thumbnail_cache_async_fetch_job_get_type ())
-#define THUMBNAIL_CACHE_ASYNC_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob))
-#define THUMBNAIL_CACHE_ASYNC_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJobClass))
-#define THUMBNAIL_CACHE_IS_ASYNC_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB))
-#define THUMBNAIL_CACHE_IS_ASYNC_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB))
-#define THUMBNAIL_CACHE_ASYNC_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJobClass))
-
-typedef struct _ThumbnailCacheAsyncFetchJob ThumbnailCacheAsyncFetchJob;
-typedef struct _ThumbnailCacheAsyncFetchJobClass ThumbnailCacheAsyncFetchJobClass;
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _ThumbnailCacheAsyncFetchJobPrivate ThumbnailCacheAsyncFetchJobPrivate;
-
-#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 _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
-typedef struct _ThumbnailCacheImageDataPrivate ThumbnailCacheImageDataPrivate;
-#define _thumbnail_cache_image_data_unref0(var) ((var == NULL) ? NULL : (var = (thumbnail_cache_image_data_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-typedef struct _ThumbnailCacheParamSpecImageData ThumbnailCacheParamSpecImageData;
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Thumbnails {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ThumbnailsPrivate * priv;
-};
-
-struct _ThumbnailsClass {
- GTypeClass parent_class;
- void (*finalize) (Thumbnails *self);
-};
-
-typedef enum {
- THUMBNAIL_CACHE_SIZE_LARGEST = 360,
- THUMBNAIL_CACHE_SIZE_BIG = 360,
- THUMBNAIL_CACHE_SIZE_MEDIUM = 128,
- THUMBNAIL_CACHE_SIZE_SMALLEST = 128
-} ThumbnailCacheSize;
-
-struct _ThumbnailsPrivate {
- GeeHashMap* map;
-};
-
-struct _ParamSpecThumbnails {
- GParamSpec parent_instance;
-};
-
-struct _ThumbnailCache {
- GObject parent_instance;
- ThumbnailCachePrivate * priv;
-};
-
-struct _ThumbnailCacheClass {
- GObjectClass parent_class;
-};
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _ThumbnailCachePrivate {
- GFile* cache_dir;
- ThumbnailCacheSize size;
- gulong max_cached_bytes;
- GdkInterpType interp;
- JpegQuality quality;
- GeeHashMap* cache_map;
- GeeArrayList* cache_lru;
- gulong cached_bytes;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef void (*OneShotCallback) (void* user_data);
-typedef void (*ThumbnailCacheAsyncFetchCallback) (GdkPixbuf* pixbuf, GdkPixbuf* unscaled, Dimensions* dim, GdkInterpType interp, GError* err, void* user_data);
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- ROTATION_CLOCKWISE,
- ROTATION_COUNTERCLOCKWISE,
- ROTATION_MIRROR,
- ROTATION_UPSIDE_DOWN
-} Rotation;
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _ThumbnailCacheAsyncFetchJob {
- BackgroundJob parent_instance;
- ThumbnailCacheAsyncFetchJobPrivate * priv;
- ThumbnailCache* cache;
- gchar* thumbnail_name;
- ThumbnailSource* source;
- PhotoFileFormat source_format;
- Dimensions dim;
- GdkInterpType interp;
- ThumbnailCacheAsyncFetchCallback callback;
- gpointer callback_target;
- GdkPixbuf* unscaled;
- GdkPixbuf* scaled;
- GError* err;
- gboolean fetched;
- gboolean replace;
-};
-
-struct _ThumbnailCacheAsyncFetchJobClass {
- BackgroundJobClass parent_class;
-};
-
-struct _ThumbnailCacheImageData {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ThumbnailCacheImageDataPrivate * priv;
- GdkPixbuf* pixbuf;
- gulong bytes;
-};
-
-struct _ThumbnailCacheImageDataClass {
- GTypeClass parent_class;
- void (*finalize) (ThumbnailCacheImageData *self);
-};
-
-typedef enum {
- PHOTO_FORMAT_ERROR_READ_ONLY
-} PhotoFormatError;
-#define PHOTO_FORMAT_ERROR photo_format_error_quark ()
-struct _ThumbnailCacheParamSpecImageData {
- GParamSpec parent_instance;
-};
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-
-static gpointer thumbnails_parent_class = NULL;
-static gpointer thumbnail_cache_parent_class = NULL;
-static ThumbnailCacheSize* thumbnail_cache_ALL_SIZES;
-static gint thumbnail_cache_ALL_SIZES_length1;
-static ThumbnailCacheSize* thumbnail_cache_ALL_SIZES = NULL;
-static gint thumbnail_cache_ALL_SIZES_length1 = 0;
-static gint _thumbnail_cache_ALL_SIZES_size_ = 0;
-static Workers* thumbnail_cache_fetch_workers;
-static Workers* thumbnail_cache_fetch_workers = NULL;
-static ThumbnailCache* thumbnail_cache_big;
-static ThumbnailCache* thumbnail_cache_big = NULL;
-static ThumbnailCache* thumbnail_cache_medium;
-static ThumbnailCache* thumbnail_cache_medium = NULL;
-static OneShotScheduler* thumbnail_cache_debug_scheduler;
-static OneShotScheduler* thumbnail_cache_debug_scheduler = NULL;
-static gint thumbnail_cache_cycle_fetched_thumbnails;
-static gint thumbnail_cache_cycle_fetched_thumbnails = 0;
-static gint thumbnail_cache_cycle_async_fetched_thumbnails;
-static gint thumbnail_cache_cycle_async_fetched_thumbnails = 0;
-static gint thumbnail_cache_cycle_async_resized_thumbnails;
-static gint thumbnail_cache_cycle_async_resized_thumbnails = 0;
-static gint thumbnail_cache_cycle_overflow_thumbnails;
-static gint thumbnail_cache_cycle_overflow_thumbnails = 0;
-static gulong thumbnail_cache_cycle_dropped_bytes;
-static gulong thumbnail_cache_cycle_dropped_bytes = (gulong) 0;
-static gpointer thumbnail_cache_image_data_parent_class = NULL;
-static gpointer thumbnail_cache_async_fetch_job_parent_class = NULL;
-
-gpointer thumbnails_ref (gpointer instance);
-void thumbnails_unref (gpointer instance);
-GParamSpec* param_spec_thumbnails (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_thumbnails (GValue* value,
- gpointer v_object);
-void value_take_thumbnails (GValue* value,
- gpointer v_object);
-gpointer value_get_thumbnails (const GValue* value);
-GType thumbnails_get_type (void) G_GNUC_CONST;
-GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
-#define THUMBNAILS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_THUMBNAILS, ThumbnailsPrivate))
-Thumbnails* thumbnails_new (void);
-Thumbnails* thumbnails_construct (GType object_type);
-void thumbnails_set (Thumbnails* self,
- ThumbnailCacheSize size,
- GdkPixbuf* pixbuf);
-void thumbnails_remove (Thumbnails* self,
- ThumbnailCacheSize size);
-GdkPixbuf* thumbnails_get (Thumbnails* self,
- ThumbnailCacheSize size);
-static void thumbnails_finalize (Thumbnails * obj);
-GType thumbnail_cache_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-static gpointer thumbnail_cache_image_data_ref (gpointer instance);
-static void thumbnail_cache_image_data_unref (gpointer instance);
-static GParamSpec* thumbnail_cache_param_spec_image_data (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void thumbnail_cache_value_set_image_data (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void thumbnail_cache_value_take_image_data (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer thumbnail_cache_value_get_image_data (const GValue* value) G_GNUC_UNUSED;
-static GType thumbnail_cache_image_data_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define THUMBNAIL_CACHE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_THUMBNAIL_CACHE, ThumbnailCachePrivate))
-gint thumbnail_cache_size_get_scale (ThumbnailCacheSize self);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void thumbnail_cache_size_get_scaling (ThumbnailCacheSize self,
- Scaling* result);
-void scaling_for_best_fit (gint pixels,
- gboolean scale_up,
- Scaling* result);
-ThumbnailCacheSize thumbnail_cache_size_get_best_size (gint scale);
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-gpointer one_shot_scheduler_ref (gpointer instance);
-void one_shot_scheduler_unref (gpointer instance);
-GParamSpec* param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_one_shot_scheduler (GValue* value,
- gpointer v_object);
-void value_take_one_shot_scheduler (GValue* value,
- gpointer v_object);
-gpointer value_get_one_shot_scheduler (const GValue* value);
-GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
-#define THUMBNAIL_CACHE_DEFAULT_INTERP GDK_INTERP_HYPER
-#define THUMBNAIL_CACHE_DEFAULT_QUALITY JPEG_QUALITY_HIGH
-#define THUMBNAIL_CACHE_MAX_INMEMORY_DATA_SIZE (512 * 1024)
-#define THUMBNAIL_CACHE_MAX_BIG_CACHED_BYTES ((gulong) ((40 * 1024) * 1024))
-#define THUMBNAIL_CACHE_MAX_MEDIUM_CACHED_BYTES ((gulong) ((30 * 1024) * 1024))
-static ThumbnailCache* thumbnail_cache_new (ThumbnailCacheSize size,
- gulong max_cached_bytes,
- GdkInterpType interp,
- JpegQuality quality);
-static ThumbnailCache* thumbnail_cache_construct (GType object_type,
- ThumbnailCacheSize size,
- gulong max_cached_bytes,
- GdkInterpType interp,
- JpegQuality quality);
-GFile* app_dirs_get_cache_subdir (const gchar* name,
- const gchar* subname);
-void thumbnail_cache_init (void);
-static void thumbnail_cache_report_cycle (void);
-static void _thumbnail_cache_report_cycle_one_shot_callback (gpointer self);
-OneShotScheduler* one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-OneShotScheduler* one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-guint workers_threads_per_cpu (gint per,
- gint max);
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-void thumbnail_cache_terminate (void);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-void thumbnail_cache_import_from_source (ThumbnailSource* source,
- gboolean force,
- GError** error);
-gchar* data_object_to_string (DataObject* self);
-static void _thumbnail_cache_import_from_source (ThumbnailCache* self,
- ThumbnailSource* source,
- gboolean force,
- GError** error);
-void thumbnail_cache_import_thumbnails (ThumbnailSource* source,
- Thumbnails* thumbnails,
- gboolean force,
- GError** error);
-static void _thumbnail_cache_import_thumbnail (ThumbnailCache* self,
- ThumbnailSource* source,
- GdkPixbuf* scaled,
- gboolean force,
- GError** error);
-void thumbnail_cache_duplicate (ThumbnailSource* src_source,
- ThumbnailSource* dest_source);
-static void _thumbnail_cache_duplicate (ThumbnailCache* self,
- ThumbnailSource* src_source,
- ThumbnailSource* dest_source);
-void thumbnail_cache_remove (ThumbnailSource* source);
-static void _thumbnail_cache_remove (ThumbnailCache* self,
- ThumbnailSource* source);
-static ThumbnailCache* thumbnail_cache_get_best_cache (gint scale);
-static ThumbnailCache* thumbnail_cache_get_cache_for (ThumbnailCacheSize size);
-GdkPixbuf* thumbnail_cache_fetch (ThumbnailSource* source,
- gint scale,
- GError** error);
-static GdkPixbuf* _thumbnail_cache_fetch (ThumbnailCache* self,
- ThumbnailSource* source,
- GError** error);
-void thumbnail_cache_fetch_async (ThumbnailSource* source,
- gint scale,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-static void _thumbnail_cache_fetch_async (ThumbnailCache* self,
- ThumbnailSource* source,
- PhotoFileFormat format,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable);
-PhotoFileFormat thumbnail_source_get_preferred_thumbnail_format (ThumbnailSource* self);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-void thumbnail_cache_fetch_async_scaled (ThumbnailSource* source,
- gint scale,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable);
-void thumbnail_cache_replace (ThumbnailSource* source,
- ThumbnailCacheSize size,
- GdkPixbuf* replacement,
- GError** error);
-static void _thumbnail_cache_replace (ThumbnailCache* self,
- ThumbnailSource* source,
- GdkPixbuf* original,
- GError** error);
-gboolean thumbnail_cache_exists (ThumbnailSource* source);
-static gboolean _thumbnail_cache_exists (ThumbnailCache* self,
- ThumbnailSource* source);
-GType rotation_get_type (void) G_GNUC_CONST;
-void thumbnail_cache_rotate (ThumbnailSource* source,
- Rotation rotation,
- GError** error);
-GdkPixbuf* rotation_perform (Rotation self,
- GdkPixbuf* pixbuf);
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-GType orientation_get_type (void) G_GNUC_CONST;
-void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails,
- PhotoFileReader* reader,
- Orientation orientation,
- Dimensions* original_dim,
- GError** error);
-void scaling_get_scaled_dimensions (Scaling *self,
- Dimensions* original,
- Dimensions* result);
-GdkPixbuf* photo_file_reader_scaled_read (PhotoFileReader* self,
- Dimensions* full,
- Dimensions* scaled,
- GError** error);
-GdkPixbuf* photo_file_reader_unscaled_read (PhotoFileReader* self,
- GError** error);
-GdkPixbuf* orientation_rotate_pixbuf (Orientation self,
- GdkPixbuf* pixbuf);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-void thumbnail_cache_generate_for_video_frame (Thumbnails* thumbnails,
- GdkPixbuf* preview_frame);
-GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self,
- GdkPixbuf* pixbuf,
- GdkInterpType interp,
- gboolean scale_up);
-static void thumbnail_cache_schedule_debug (void);
-static GdkPixbuf* thumbnail_cache_fetch_from_memory (ThumbnailCache* self,
- const gchar* thumbnail_name);
-gchar* data_source_get_source_id (DataSource* self);
-static GdkPixbuf* thumbnail_cache_read_pixbuf (ThumbnailCache* self,
- const gchar* thumbnail_name,
- PhotoFileFormat format,
- GError** error);
-static void thumbnail_cache_store_in_memory (ThumbnailCache* self,
- const gchar* thumbnail_name,
- GdkPixbuf* thumbnail);
-gboolean dimensions_has_area (Dimensions *self);
-gboolean dimensions_equals (Dimensions *self,
- Dimensions* dim);
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-static ThumbnailCacheAsyncFetchJob* thumbnail_cache_async_fetch_job_new (ThumbnailCache* cache,
- const gchar* thumbnail_name,
- ThumbnailSource* source,
- GdkPixbuf* prefetched,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable);
-static ThumbnailCacheAsyncFetchJob* thumbnail_cache_async_fetch_job_construct (GType object_type,
- ThumbnailCache* cache,
- const gchar* thumbnail_name,
- ThumbnailSource* source,
- GdkPixbuf* prefetched,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable);
-static GType thumbnail_cache_async_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static void thumbnail_cache_async_fetch_completion_callback (BackgroundJob* background_job);
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-static GFile* thumbnail_cache_get_source_cached_file (ThumbnailCache* self,
- ThumbnailSource* source);
-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;
-GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-static void thumbnail_cache_save_thumbnail (ThumbnailCache* self,
- GFile* file,
- GdkPixbuf* pixbuf,
- ThumbnailSource* source,
- GError** error);
-gboolean dimensions_approx_scaled (Dimensions *self,
- gint scale,
- gint fudge);
-static GFile* thumbnail_cache_get_cached_file (ThumbnailCache* self,
- const gchar* thumbnail_name,
- PhotoFileFormat thumbnail_format);
-gchar* thumbnail_source_get_representative_id (ThumbnailSource* self);
-void app_window_panic (const gchar* msg);
-static gboolean thumbnail_cache_remove_from_memory (ThumbnailCache* self,
- const gchar* thumbnail_name);
-GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf,
- gint scale,
- GdkInterpType interp,
- gboolean scale_up);
-PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self,
- const gchar* filepath);
-gchar* photo_file_format_get_default_basename (PhotoFileFormat self,
- const gchar* name);
-static ThumbnailCacheImageData* thumbnail_cache_image_data_new (GdkPixbuf* pixbuf);
-static ThumbnailCacheImageData* thumbnail_cache_image_data_construct (GType object_type,
- GdkPixbuf* pixbuf);
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-GQuark photo_format_error_quark (void);
-PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error);
-void photo_file_writer_write (PhotoFileWriter* self,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error);
-static void thumbnail_cache_image_data_finalize (ThumbnailCacheImageData * obj);
-static void _thumbnail_cache_async_fetch_completion_callback_completion_callback (BackgroundJob* job,
- gpointer self);
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-static BackgroundJobJobPriority thumbnail_cache_async_fetch_job_real_get_priority (BackgroundJob* base);
-static void thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base);
-gboolean background_job_is_cancelled (BackgroundJob* self);
-GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* resized,
- GdkInterpType interp);
-static void thumbnail_cache_async_fetch_job_generate_thumbnail (ThumbnailCacheAsyncFetchJob* self,
- GError** error);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-GdkPixbuf* thumbnail_source_create_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-static void thumbnail_cache_async_fetch_job_finalize (BackgroundJob * obj);
-static void thumbnail_cache_finalize (GObject * obj);
-
-
-Thumbnails*
-thumbnails_construct (GType object_type)
-{
- Thumbnails* self = NULL;
-#line 11 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = (Thumbnails*) g_type_create_instance (object_type);
-#line 11 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return self;
-#line 841 "ThumbnailCache.c"
-}
-
-
-Thumbnails*
-thumbnails_new (void)
-{
-#line 11 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return thumbnails_construct (TYPE_THUMBNAILS);
-#line 850 "ThumbnailCache.c"
-}
-
-
-void
-thumbnails_set (Thumbnails* self,
- ThumbnailCacheSize size,
- GdkPixbuf* pixbuf)
-{
- GeeHashMap* _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAILS (self));
-#line 14 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 15 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->priv->map;
-#line 15 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) size), pixbuf);
-#line 868 "ThumbnailCache.c"
-}
-
-
-void
-thumbnails_remove (Thumbnails* self,
- ThumbnailCacheSize size)
-{
- GeeHashMap* _tmp0_;
-#line 18 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAILS (self));
-#line 19 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->priv->map;
-#line 19 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) size), NULL);
-#line 883 "ThumbnailCache.c"
-}
-
-
-GdkPixbuf*
-thumbnails_get (Thumbnails* self,
- ThumbnailCacheSize size)
-{
- GdkPixbuf* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 22 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAILS (self), NULL);
-#line 23 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->priv->map;
-#line 23 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) size));
-#line 23 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = (GdkPixbuf*) _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 904 "ThumbnailCache.c"
-}
-
-
-static void
-value_thumbnails_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = NULL;
-#line 913 "ThumbnailCache.c"
-}
-
-
-static void
-value_thumbnails_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnails_unref (value->data[0].v_pointer);
-#line 924 "ThumbnailCache.c"
- }
-}
-
-
-static void
-value_thumbnails_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dest_value->data[0].v_pointer = thumbnails_ref (src_value->data[0].v_pointer);
-#line 937 "ThumbnailCache.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 941 "ThumbnailCache.c"
- }
-}
-
-
-static gpointer
-value_thumbnails_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return value->data[0].v_pointer;
-#line 951 "ThumbnailCache.c"
-}
-
-
-static gchar*
-value_thumbnails_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (collect_values[0].v_pointer) {
-#line 963 "ThumbnailCache.c"
- Thumbnails * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 970 "ThumbnailCache.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.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 974 "ThumbnailCache.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = thumbnails_ref (object);
-#line 978 "ThumbnailCache.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = NULL;
-#line 982 "ThumbnailCache.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return NULL;
-#line 986 "ThumbnailCache.c"
-}
-
-
-static gchar*
-value_thumbnails_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- Thumbnails ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1002 "ThumbnailCache.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- *object_p = NULL;
-#line 1008 "ThumbnailCache.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- *object_p = value->data[0].v_pointer;
-#line 1012 "ThumbnailCache.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- *object_p = thumbnails_ref (value->data[0].v_pointer);
-#line 1016 "ThumbnailCache.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return NULL;
-#line 1020 "ThumbnailCache.c"
-}
-
-
-GParamSpec*
-param_spec_thumbnails (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecThumbnails* spec;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_THUMBNAILS), NULL);
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return G_PARAM_SPEC (spec);
-#line 1040 "ThumbnailCache.c"
-}
-
-
-gpointer
-value_get_thumbnails (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THUMBNAILS), NULL);
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return value->data[0].v_pointer;
-#line 1051 "ThumbnailCache.c"
-}
-
-
-void
-value_set_thumbnails (GValue* value,
- gpointer v_object)
-{
- Thumbnails * old;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THUMBNAILS));
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_THUMBNAILS));
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- 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/ThumbnailCache.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnails_ref (value->data[0].v_pointer);
-#line 1074 "ThumbnailCache.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = NULL;
-#line 1078 "ThumbnailCache.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnails_unref (old);
-#line 1084 "ThumbnailCache.c"
- }
-}
-
-
-void
-value_take_thumbnails (GValue* value,
- gpointer v_object)
-{
- Thumbnails * old;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THUMBNAILS));
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_THUMBNAILS));
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- 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/ThumbnailCache.vala"
- value->data[0].v_pointer = v_object;
-#line 1106 "ThumbnailCache.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = NULL;
-#line 1110 "ThumbnailCache.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnails_unref (old);
-#line 1116 "ThumbnailCache.c"
- }
-}
-
-
-static void
-thumbnails_class_init (ThumbnailsClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnails_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- ((ThumbnailsClass *) klass)->finalize = thumbnails_finalize;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_type_class_add_private (klass, sizeof (ThumbnailsPrivate));
-#line 1130 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnails_instance_init (Thumbnails * self)
-{
- GeeHashMap* _tmp0_;
-#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_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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"
- self->ref_count = 1;
-#line 1146 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnails_finalize (Thumbnails * obj)
-{
- Thumbnails * self;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAILS, Thumbnails);
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_signal_handlers_destroy (self);
-#line 8 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->priv->map);
-#line 1160 "ThumbnailCache.c"
-}
-
-
-GType
-thumbnails_get_type (void)
-{
- static volatile gsize thumbnails_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnails_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_thumbnails_init, value_thumbnails_free_value, value_thumbnails_copy_value, value_thumbnails_peek_pointer, "p", value_thumbnails_collect_value, "p", value_thumbnails_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ThumbnailsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnails_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Thumbnails), 0, (GInstanceInitFunc) thumbnails_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType thumbnails_type_id;
- thumbnails_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Thumbnails", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&thumbnails_type_id__volatile, thumbnails_type_id);
- }
- return thumbnails_type_id__volatile;
-}
-
-
-gpointer
-thumbnails_ref (gpointer instance)
-{
- Thumbnails * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return instance;
-#line 1189 "ThumbnailCache.c"
-}
-
-
-void
-thumbnails_unref (gpointer instance)
-{
- Thumbnails * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- THUMBNAILS_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1204 "ThumbnailCache.c"
- }
-}
-
-
-gint
-thumbnail_cache_size_get_scale (ThumbnailCacheSize self)
-{
- gint result = 0;
-#line 42 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = (gint) self;
-#line 42 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 1217 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_size_get_scaling (ThumbnailCacheSize self,
- Scaling* result)
-{
- Scaling _tmp0_ = {0};
-#line 46 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- scaling_for_best_fit (thumbnail_cache_size_get_scale (self), TRUE, &_tmp0_);
-#line 46 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- *result = _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1232 "ThumbnailCache.c"
-}
-
-
-ThumbnailCacheSize
-thumbnail_cache_size_get_best_size (gint scale)
-{
- ThumbnailCacheSize result = 0;
- ThumbnailCacheSize _tmp0_ = 0;
-#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (scale <= thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_MEDIUM)) {
-#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = THUMBNAIL_CACHE_SIZE_MEDIUM;
-#line 1245 "ThumbnailCache.c"
- } else {
-#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = THUMBNAIL_CACHE_SIZE_BIG;
-#line 1249 "ThumbnailCache.c"
- }
-#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp0_;
-#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 1255 "ThumbnailCache.c"
-}
-
-
-GType
-thumbnail_cache_size_get_type (void)
-{
- static volatile gsize thumbnail_cache_size_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnail_cache_size_type_id__volatile)) {
- static const GEnumValue values[] = {{THUMBNAIL_CACHE_SIZE_LARGEST, "THUMBNAIL_CACHE_SIZE_LARGEST", "largest"}, {THUMBNAIL_CACHE_SIZE_BIG, "THUMBNAIL_CACHE_SIZE_BIG", "big"}, {THUMBNAIL_CACHE_SIZE_MEDIUM, "THUMBNAIL_CACHE_SIZE_MEDIUM", "medium"}, {THUMBNAIL_CACHE_SIZE_SMALLEST, "THUMBNAIL_CACHE_SIZE_SMALLEST", "smallest"}, {0, NULL, NULL}};
- GType thumbnail_cache_size_type_id;
- thumbnail_cache_size_type_id = g_enum_register_static ("ThumbnailCacheSize", values);
- g_once_init_leave (&thumbnail_cache_size_type_id__volatile, thumbnail_cache_size_type_id);
- }
- return thumbnail_cache_size_type_id__volatile;
-}
-
-
-static ThumbnailCache*
-thumbnail_cache_construct (GType object_type,
- ThumbnailCacheSize size,
- gulong max_cached_bytes,
- GdkInterpType interp,
- JpegQuality quality)
-{
- ThumbnailCache * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GFile* _tmp2_;
-#line 190 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = (ThumbnailCache*) g_object_new (object_type, NULL);
-#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = g_strdup_printf ("thumbs%d", thumbnail_cache_size_get_scale (size));
-#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp0_;
-#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = app_dirs_get_cache_subdir ("thumbs", _tmp1_);
-#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->priv->cache_dir);
-#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->cache_dir = _tmp2_;
-#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp1_);
-#line 193 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->size = size;
-#line 194 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->max_cached_bytes = max_cached_bytes;
-#line 195 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->interp = interp;
-#line 196 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->quality = quality;
-#line 190 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return self;
-#line 1308 "ThumbnailCache.c"
-}
-
-
-static ThumbnailCache*
-thumbnail_cache_new (ThumbnailCacheSize size,
- gulong max_cached_bytes,
- GdkInterpType interp,
- JpegQuality quality)
-{
-#line 190 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return thumbnail_cache_construct (TYPE_THUMBNAIL_CACHE, size, max_cached_bytes, interp, quality);
-#line 1320 "ThumbnailCache.c"
-}
-
-
-static void
-_thumbnail_cache_report_cycle_one_shot_callback (gpointer self)
-{
-#line 201 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_report_cycle ();
-#line 1329 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_init (void)
-{
- OneShotScheduler* _tmp0_;
- Workers* _tmp1_;
- ThumbnailCache* _tmp2_;
- ThumbnailCache* _tmp3_;
-#line 201 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = one_shot_scheduler_new ("ThumbnailCache cycle reporter", _thumbnail_cache_report_cycle_one_shot_callback, NULL);
-#line 201 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _one_shot_scheduler_unref0 (thumbnail_cache_debug_scheduler);
-#line 201 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_debug_scheduler = _tmp0_;
-#line 202 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = workers_new (workers_threads_per_cpu (1, -1), TRUE);
-#line 202 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _workers_unref0 (thumbnail_cache_fetch_workers);
-#line 202 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_fetch_workers = _tmp1_;
-#line 204 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_new (THUMBNAIL_CACHE_SIZE_BIG, THUMBNAIL_CACHE_MAX_BIG_CACHED_BYTES, THUMBNAIL_CACHE_DEFAULT_INTERP, THUMBNAIL_CACHE_DEFAULT_QUALITY);
-#line 204 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (thumbnail_cache_big);
-#line 204 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_big = _tmp2_;
-#line 205 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = thumbnail_cache_new (THUMBNAIL_CACHE_SIZE_MEDIUM, THUMBNAIL_CACHE_MAX_MEDIUM_CACHED_BYTES, THUMBNAIL_CACHE_DEFAULT_INTERP, THUMBNAIL_CACHE_DEFAULT_QUALITY);
-#line 205 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (thumbnail_cache_medium);
-#line 205 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_medium = _tmp3_;
-#line 1364 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_terminate (void)
-{
-}
-
-
-void
-thumbnail_cache_import_from_source (ThumbnailSource* source,
- gboolean force,
- GError** error)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- ThumbnailCache* _tmp2_;
- ThumbnailCache* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 211 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 213 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 213 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp0_;
-#line 213 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_debug ("ThumbnailCache.vala:213: import from source: %s", _tmp1_);
-#line 213 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp1_);
-#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_big;
-#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_import_from_source (_tmp2_, source, force, &_inner_error_);
-#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1404 "ThumbnailCache.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = thumbnail_cache_medium;
-#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_import_from_source (_tmp3_, source, force, &_inner_error_);
-#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1416 "ThumbnailCache.c"
- }
-}
-
-
-void
-thumbnail_cache_import_thumbnails (ThumbnailSource* source,
- Thumbnails* thumbnails,
- gboolean force,
- GError** error)
-{
- ThumbnailCache* _tmp0_;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- ThumbnailCache* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 218 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 218 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAILS (thumbnails));
-#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_big;
-#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnails_get (thumbnails, THUMBNAIL_CACHE_SIZE_BIG);
-#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp1_;
-#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_import_thumbnail (_tmp0_, source, _tmp2_, force, &_inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp2_);
-#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1454 "ThumbnailCache.c"
- }
-#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = thumbnail_cache_medium;
-#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = thumbnails_get (thumbnails, THUMBNAIL_CACHE_SIZE_MEDIUM);
-#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = _tmp4_;
-#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_import_thumbnail (_tmp3_, source, _tmp5_, force, &_inner_error_);
-#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp5_);
-#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1472 "ThumbnailCache.c"
- }
-}
-
-
-void
-thumbnail_cache_duplicate (ThumbnailSource* src_source,
- ThumbnailSource* dest_source)
-{
- ThumbnailCache* _tmp0_;
- ThumbnailCache* _tmp1_;
-#line 224 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (src_source));
-#line 224 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (dest_source));
-#line 225 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_big;
-#line 225 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_duplicate (_tmp0_, src_source, dest_source);
-#line 226 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_cache_medium;
-#line 226 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_duplicate (_tmp1_, src_source, dest_source);
-#line 1495 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_remove (ThumbnailSource* source)
-{
- ThumbnailCache* _tmp0_;
- ThumbnailCache* _tmp1_;
-#line 229 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 230 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_big;
-#line 230 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_remove (_tmp0_, source);
-#line 231 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_cache_medium;
-#line 231 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_remove (_tmp1_, source);
-#line 1514 "ThumbnailCache.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1523 "ThumbnailCache.c"
-}
-
-
-static ThumbnailCache*
-thumbnail_cache_get_best_cache (gint scale)
-{
- ThumbnailCache* result = NULL;
- ThumbnailCacheSize size = 0;
- ThumbnailCacheSize _tmp0_;
-#line 235 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size = thumbnail_cache_size_get_best_size (scale);
-#line 236 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = size;
-#line 236 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp0_ == THUMBNAIL_CACHE_SIZE_BIG) {
-#line 1539 "ThumbnailCache.c"
- ThumbnailCache* _tmp1_;
- ThumbnailCache* _tmp2_;
-#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_cache_big;
-#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp2_;
-#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 1550 "ThumbnailCache.c"
- } else {
- ThumbnailCacheSize _tmp3_;
- ThumbnailCache* _tmp4_;
- ThumbnailCache* _tmp5_;
-#line 239 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = size;
-#line 239 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (_tmp3_ == THUMBNAIL_CACHE_SIZE_MEDIUM, "size == Size.MEDIUM");
-#line 241 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = thumbnail_cache_medium;
-#line 241 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 241 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp5_;
-#line 241 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 1567 "ThumbnailCache.c"
- }
-}
-
-
-static ThumbnailCache*
-thumbnail_cache_get_cache_for (ThumbnailCacheSize size)
-{
- ThumbnailCache* result = NULL;
-#line 246 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- switch (size) {
-#line 246 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- case THUMBNAIL_CACHE_SIZE_BIG:
-#line 1580 "ThumbnailCache.c"
- {
- ThumbnailCache* _tmp0_;
- ThumbnailCache* _tmp1_;
-#line 248 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_big;
-#line 248 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 248 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp1_;
-#line 248 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 1592 "ThumbnailCache.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- case THUMBNAIL_CACHE_SIZE_MEDIUM:
-#line 1596 "ThumbnailCache.c"
- {
- ThumbnailCache* _tmp2_;
- ThumbnailCache* _tmp3_;
-#line 251 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_medium;
-#line 251 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 251 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp3_;
-#line 251 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 1608 "ThumbnailCache.c"
- }
- default:
- {
-#line 254 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_error ("ThumbnailCache.vala:254: Unknown thumbnail size %d", thumbnail_cache_size_get_scale (size));
-#line 1614 "ThumbnailCache.c"
- }
- }
-}
-
-
-GdkPixbuf*
-thumbnail_cache_fetch (ThumbnailSource* source,
- gint scale,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- ThumbnailCache* _tmp1_;
- ThumbnailCache* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 258 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL);
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_cache_get_best_cache (scale);
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp1_;
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _thumbnail_cache_fetch (_tmp2_, source, &_inner_error_);
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = _tmp3_;
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp2_);
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = _tmp4_;
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return NULL;
-#line 1653 "ThumbnailCache.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = _tmp0_;
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = NULL;
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp5_;
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp0_);
-#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 1665 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_fetch_async (ThumbnailSource* source,
- gint scale,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable)
-{
- ThumbnailCache* _tmp0_;
- ThumbnailCache* _tmp1_;
- Dimensions _tmp2_ = {0};
-#line 262 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 262 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable));
-#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_get_best_cache (scale);
-#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp0_;
-#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dimensions_init (&_tmp2_, 0, 0);
-#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_fetch_async (_tmp1_, source, thumbnail_source_get_preferred_thumbnail_format (source), &_tmp2_, THUMBNAIL_CACHE_DEFAULT_INTERP, callback, callback_target, cancellable);
-#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 1693 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_fetch_async_scaled (ThumbnailSource* source,
- gint scale,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable)
-{
- ThumbnailCache* _tmp0_;
- ThumbnailCache* _tmp1_;
- Dimensions _tmp2_;
-#line 268 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 268 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (dim != NULL);
-#line 268 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable));
-#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_get_best_cache (scale);
-#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp0_;
-#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = *dim;
-#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_fetch_async (_tmp1_, source, thumbnail_source_get_preferred_thumbnail_format (source), &_tmp2_, interp, callback, callback_target, cancellable);
-#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 1725 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_replace (ThumbnailSource* source,
- ThumbnailCacheSize size,
- GdkPixbuf* replacement,
- GError** error)
-{
- ThumbnailCache* _tmp0_;
- ThumbnailCache* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 274 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 274 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (GDK_IS_PIXBUF (replacement));
-#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_get_cache_for (size);
-#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp0_;
-#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_replace (_tmp1_, source, replacement, &_inner_error_);
-#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1756 "ThumbnailCache.c"
- }
-}
-
-
-gboolean
-thumbnail_cache_exists (ThumbnailSource* source)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- ThumbnailCache* _tmp1_;
-#line 279 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), FALSE);
-#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_cache_big;
-#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_thumbnail_cache_exists (_tmp1_, source)) {
-#line 1773 "ThumbnailCache.c"
- ThumbnailCache* _tmp2_;
-#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_medium;
-#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = _thumbnail_cache_exists (_tmp2_, source);
-#line 1779 "ThumbnailCache.c"
- } else {
-#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = FALSE;
-#line 1783 "ThumbnailCache.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp0_;
-#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 1789 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_rotate (ThumbnailSource* source,
- Rotation rotation,
- GError** error)
-{
- ThumbnailCacheSize* _tmp0_;
- gint _tmp0__length1;
- GError * _inner_error_ = NULL;
-#line 283 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_ALL_SIZES;
-#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0__length1 = thumbnail_cache_ALL_SIZES_length1;
-#line 1807 "ThumbnailCache.c"
- {
- ThumbnailCacheSize* size_collection = NULL;
- gint size_collection_length1 = 0;
- gint _size_collection_size_ = 0;
- gint size_it = 0;
-#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size_collection = _tmp0_;
-#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size_collection_length1 = _tmp0__length1;
-#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- for (size_it = 0; size_it < _tmp0__length1; size_it = size_it + 1) {
-#line 1819 "ThumbnailCache.c"
- ThumbnailCacheSize size = 0;
-#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size = size_collection[size_it];
-#line 1823 "ThumbnailCache.c"
- {
- GdkPixbuf* thumbnail = NULL;
- ThumbnailCacheSize _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- ThumbnailCacheSize _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = size;
-#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_fetch (source, (gint) _tmp1_, &_inner_error_);
-#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail = _tmp2_;
-#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1844 "ThumbnailCache.c"
- }
-#line 286 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = thumbnail;
-#line 286 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = rotation_perform (rotation, _tmp3_);
-#line 286 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (thumbnail);
-#line 286 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail = _tmp4_;
-#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = size;
-#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = thumbnail;
-#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_replace (source, _tmp5_, _tmp6_, &_inner_error_);
-#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (thumbnail);
-#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1868 "ThumbnailCache.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (thumbnail);
-#line 1872 "ThumbnailCache.c"
- }
- }
- }
-}
-
-
-void
-thumbnail_cache_generate_for_photo (Thumbnails* thumbnails,
- PhotoFileReader* reader,
- Orientation orientation,
- Dimensions* original_dim,
- GError** error)
-{
- ThumbnailCacheSize max_size = 0;
- Dimensions dim = {0};
- ThumbnailCacheSize _tmp0_;
- Scaling _tmp1_ = {0};
- Dimensions _tmp2_;
- Dimensions _tmp3_ = {0};
- GdkPixbuf* largest_thumbnail = NULL;
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
- Dimensions largest_thumb_dimensions = {0};
- GdkPixbuf* _tmp14_;
- Dimensions _tmp15_ = {0};
- ThumbnailCacheSize* _tmp16_;
- gint _tmp16__length1;
- GError * _inner_error_ = NULL;
-#line 293 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAILS (thumbnails));
-#line 293 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_PHOTO_FILE_READER (reader));
-#line 293 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (original_dim != NULL);
-#line 296 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- max_size = THUMBNAIL_CACHE_SIZE_BIG * 2;
-#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = max_size;
-#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_size_get_scaling (_tmp0_, &_tmp1_);
-#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = *original_dim;
-#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- scaling_get_scaled_dimensions (&_tmp1_, &_tmp2_, &_tmp3_);
-#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dim = _tmp3_;
-#line 298 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- largest_thumbnail = NULL;
-#line 1921 "ThumbnailCache.c"
- {
- GdkPixbuf* _tmp4_ = NULL;
- Dimensions _tmp5_;
- Dimensions _tmp6_;
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp8_;
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = *original_dim;
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = dim;
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = photo_file_reader_scaled_read (reader, &_tmp5_, &_tmp6_, &_inner_error_);
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = _tmp7_;
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1938 "ThumbnailCache.c"
- goto __catch248_g_error;
- }
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = _tmp4_;
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = NULL;
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (largest_thumbnail);
-#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- largest_thumbnail = _tmp8_;
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp4_);
-#line 1951 "ThumbnailCache.c"
- }
- goto __finally248;
- __catch248_g_error:
- {
- GError* err = NULL;
- GdkPixbuf* _tmp9_ = NULL;
- GdkPixbuf* _tmp10_;
- GdkPixbuf* _tmp11_;
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- err = _inner_error_;
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _inner_error_ = NULL;
-#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp10_ = photo_file_reader_unscaled_read (reader, &_inner_error_);
-#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = _tmp10_;
-#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 1972 "ThumbnailCache.c"
- goto __finally248;
- }
-#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp11_ = _tmp9_;
-#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = NULL;
-#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (largest_thumbnail);
-#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- largest_thumbnail = _tmp11_;
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp9_);
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 1987 "ThumbnailCache.c"
- }
- __finally248:
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (largest_thumbnail);
-#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 1998 "ThumbnailCache.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp12_ = largest_thumbnail;
-#line 307 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = orientation_rotate_pixbuf (orientation, _tmp12_);
-#line 307 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (largest_thumbnail);
-#line 307 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- largest_thumbnail = _tmp13_;
-#line 308 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp14_ = largest_thumbnail;
-#line 308 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dimensions_for_pixbuf (_tmp14_, &_tmp15_);
-#line 308 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- largest_thumb_dimensions = _tmp15_;
-#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp16_ = thumbnail_cache_ALL_SIZES;
-#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp16__length1 = thumbnail_cache_ALL_SIZES_length1;
-#line 2018 "ThumbnailCache.c"
- {
- ThumbnailCacheSize* size_collection = NULL;
- gint size_collection_length1 = 0;
- gint _size_collection_size_ = 0;
- gint size_it = 0;
-#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size_collection = _tmp16_;
-#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size_collection_length1 = _tmp16__length1;
-#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- for (size_it = 0; size_it < _tmp16__length1; size_it = size_it + 1) {
-#line 2030 "ThumbnailCache.c"
- ThumbnailCacheSize size = 0;
-#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size = size_collection[size_it];
-#line 2034 "ThumbnailCache.c"
- {
- ThumbnailCacheSize _tmp17_;
- Scaling _tmp18_ = {0};
- Dimensions _tmp19_;
- Dimensions _tmp20_ = {0};
- ThumbnailCacheSize _tmp21_;
- GdkPixbuf* _tmp22_;
- Dimensions _tmp23_;
- gint _tmp24_;
- Dimensions _tmp25_;
- gint _tmp26_;
- GdkPixbuf* _tmp27_;
- GdkPixbuf* _tmp28_;
-#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp17_ = size;
-#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_size_get_scaling (_tmp17_, &_tmp18_);
-#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp19_ = largest_thumb_dimensions;
-#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- scaling_get_scaled_dimensions (&_tmp18_, &_tmp19_, &_tmp20_);
-#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dim = _tmp20_;
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp21_ = size;
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp22_ = largest_thumbnail;
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp23_ = dim;
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp24_ = _tmp23_.width;
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp25_ = dim;
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp26_ = _tmp25_.height;
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp27_ = gdk_pixbuf_scale_simple (_tmp22_, _tmp24_, _tmp26_, GDK_INTERP_HYPER);
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp28_ = _tmp27_;
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnails_set (thumbnails, _tmp21_, _tmp28_);
-#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp28_);
-#line 2078 "ThumbnailCache.c"
- }
- }
- }
-#line 293 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (largest_thumbnail);
-#line 2084 "ThumbnailCache.c"
-}
-
-
-void
-thumbnail_cache_generate_for_video_frame (Thumbnails* thumbnails,
- GdkPixbuf* preview_frame)
-{
- ThumbnailCacheSize* _tmp0_;
- gint _tmp0__length1;
-#line 316 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAILS (thumbnails));
-#line 316 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (GDK_IS_PIXBUF (preview_frame));
-#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_ALL_SIZES;
-#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0__length1 = thumbnail_cache_ALL_SIZES_length1;
-#line 2102 "ThumbnailCache.c"
- {
- ThumbnailCacheSize* size_collection = NULL;
- gint size_collection_length1 = 0;
- gint _size_collection_size_ = 0;
- gint size_it = 0;
-#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size_collection = _tmp0_;
-#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size_collection_length1 = _tmp0__length1;
-#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- for (size_it = 0; size_it < _tmp0__length1; size_it = size_it + 1) {
-#line 2114 "ThumbnailCache.c"
- ThumbnailCacheSize size = 0;
-#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- size = size_collection[size_it];
-#line 2118 "ThumbnailCache.c"
- {
- Scaling current_scaling = {0};
- ThumbnailCacheSize _tmp1_;
- Scaling _tmp2_ = {0};
- GdkPixbuf* current_thumbnail = NULL;
- GdkPixbuf* _tmp3_;
- ThumbnailCacheSize _tmp4_;
- GdkPixbuf* _tmp5_;
-#line 318 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = size;
-#line 318 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_size_get_scaling (_tmp1_, &_tmp2_);
-#line 318 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- current_scaling = _tmp2_;
-#line 319 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = scaling_perform_on_pixbuf (&current_scaling, preview_frame, GDK_INTERP_HYPER, TRUE);
-#line 319 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- current_thumbnail = _tmp3_;
-#line 321 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = size;
-#line 321 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = current_thumbnail;
-#line 321 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnails_set (thumbnails, _tmp4_, _tmp5_);
-#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (current_thumbnail);
-#line 2145 "ThumbnailCache.c"
- }
- }
- }
-}
-
-
-static void
-thumbnail_cache_schedule_debug (void)
-{
-}
-
-
-static void
-thumbnail_cache_report_cycle (void)
-{
-}
-
-
-static GdkPixbuf*
-_thumbnail_cache_fetch (ThumbnailCache* self,
- ThumbnailSource* source,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_ = NULL;
- gchar* _tmp6_;
- gchar* _tmp7_;
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
- gint _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- GdkPixbuf* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 371 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL);
-#line 371 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL);
-#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp0_;
-#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_fetch_from_memory (self, _tmp1_);
-#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _tmp2_;
-#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp1_);
-#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- pixbuf = _tmp3_;
-#line 374 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = pixbuf;
-#line 374 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp4_ != NULL) {
-#line 375 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = pixbuf;
-#line 375 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 2211 "ThumbnailCache.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = _tmp6_;
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = thumbnail_cache_read_pixbuf (self, _tmp7_, thumbnail_source_get_preferred_thumbnail_format (source), &_inner_error_);
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = _tmp8_;
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp7_);
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = _tmp9_;
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (pixbuf);
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return NULL;
-#line 2233 "ThumbnailCache.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp10_ = _tmp5_;
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = NULL;
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (pixbuf);
-#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- pixbuf = _tmp10_;
-#line 379 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp11_ = thumbnail_cache_cycle_fetched_thumbnails;
-#line 379 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_cycle_fetched_thumbnails = _tmp11_ + 1;
-#line 380 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_schedule_debug ();
-#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp12_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = _tmp12_;
-#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp14_ = pixbuf;
-#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_store_in_memory (self, _tmp13_, _tmp14_);
-#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp13_);
-#line 385 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = pixbuf;
-#line 385 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp5_);
-#line 385 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 2265 "ThumbnailCache.c"
-}
-
-
-static void
-_thumbnail_cache_fetch_async (ThumbnailCache* self,
- ThumbnailSource* source,
- PhotoFileFormat format,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable)
-{
- gchar* thumbnail_name = NULL;
- gchar* _tmp0_;
- GdkPixbuf* pixbuf = NULL;
- const gchar* _tmp1_;
- GdkPixbuf* _tmp2_;
- gboolean _tmp3_ = FALSE;
- GdkPixbuf* _tmp4_;
- Workers* _tmp12_;
- const gchar* _tmp13_;
- GdkPixbuf* _tmp14_;
- Dimensions _tmp15_;
- ThumbnailCacheAsyncFetchJob* _tmp16_;
- ThumbnailCacheAsyncFetchJob* _tmp17_;
-#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_CACHE (self));
-#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (dim != NULL);
-#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable));
-#line 391 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 391 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_name = _tmp0_;
-#line 392 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_name;
-#line 392 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_fetch_from_memory (self, _tmp1_);
-#line 392 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- pixbuf = _tmp2_;
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = pixbuf;
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp4_ != NULL) {
-#line 2314 "ThumbnailCache.c"
- gboolean _tmp5_ = FALSE;
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (!dimensions_has_area (dim)) {
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = TRUE;
-#line 2320 "ThumbnailCache.c"
- } else {
- GdkPixbuf* _tmp6_;
- Dimensions _tmp7_ = {0};
- Dimensions _tmp8_;
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = pixbuf;
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dimensions_for_pixbuf (_tmp6_, &_tmp7_);
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = *dim;
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = dimensions_equals (&_tmp7_, &_tmp8_);
-#line 2333 "ThumbnailCache.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _tmp5_;
-#line 2337 "ThumbnailCache.c"
- } else {
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = FALSE;
-#line 2341 "ThumbnailCache.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp3_) {
-#line 2345 "ThumbnailCache.c"
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
- Dimensions _tmp11_;
-#line 396 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = pixbuf;
-#line 396 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp10_ = pixbuf;
-#line 396 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp11_ = *dim;
-#line 396 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- callback (_tmp9_, _tmp10_, &_tmp11_, interp, NULL, callback_target);
-#line 398 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (pixbuf);
-#line 398 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (thumbnail_name);
-#line 398 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2363 "ThumbnailCache.c"
- }
-#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp12_ = thumbnail_cache_fetch_workers;
-#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = thumbnail_name;
-#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp14_ = pixbuf;
-#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp15_ = *dim;
-#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp16_ = thumbnail_cache_async_fetch_job_new (self, _tmp13_, source, _tmp14_, &_tmp15_, interp, callback, callback_target, cancellable);
-#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp17_ = _tmp16_;
-#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- workers_enqueue (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _background_job_unref0 (_tmp17_);
-#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (pixbuf);
-#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (thumbnail_name);
-#line 2385 "ThumbnailCache.c"
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 417 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return self ? background_job_ref (self) : NULL;
-#line 2394 "ThumbnailCache.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return self ? g_error_copy (self) : NULL;
-#line 2403 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_async_fetch_completion_callback (BackgroundJob* background_job)
-{
- ThumbnailCacheAsyncFetchJob* job = NULL;
- ThumbnailCacheAsyncFetchJob* _tmp0_;
- gboolean _tmp1_ = FALSE;
- ThumbnailCacheAsyncFetchJob* _tmp2_;
- gboolean _tmp3_;
- ThumbnailCacheAsyncFetchJob* _tmp16_;
- GdkPixbuf* _tmp17_;
- ThumbnailCacheAsyncFetchJob* _tmp28_;
- ThumbnailCacheAsyncFetchCallback _tmp29_;
- void* _tmp29__target;
- ThumbnailCacheAsyncFetchJob* _tmp30_;
- GdkPixbuf* _tmp31_;
- ThumbnailCacheAsyncFetchJob* _tmp32_;
- GdkPixbuf* _tmp33_;
- ThumbnailCacheAsyncFetchJob* _tmp34_;
- Dimensions _tmp35_;
- ThumbnailCacheAsyncFetchJob* _tmp36_;
- GdkInterpType _tmp37_;
- ThumbnailCacheAsyncFetchJob* _tmp38_;
- GError* _tmp39_;
- GError * _inner_error_ = NULL;
-#line 416 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (background_job));
-#line 417 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (background_job, THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob));
-#line 417 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- job = _tmp0_;
-#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = job;
-#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _tmp2_->replace;
-#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp3_) {
-#line 2443 "ThumbnailCache.c"
- ThumbnailCacheAsyncFetchJob* _tmp4_;
- GdkPixbuf* _tmp5_;
-#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = job;
-#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = _tmp4_->unscaled;
-#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp5_ != NULL;
-#line 2452 "ThumbnailCache.c"
- } else {
-#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = FALSE;
-#line 2456 "ThumbnailCache.c"
- }
-#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp1_) {
-#line 2460 "ThumbnailCache.c"
- {
- ThumbnailCacheAsyncFetchJob* _tmp6_;
- ThumbnailSource* _tmp7_;
- ThumbnailCacheAsyncFetchJob* _tmp8_;
- ThumbnailCache* _tmp9_;
- ThumbnailCacheSize _tmp10_;
- ThumbnailCacheAsyncFetchJob* _tmp11_;
- GdkPixbuf* _tmp12_;
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = job;
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = _tmp6_->source;
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = job;
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = _tmp8_->cache;
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp10_ = _tmp9_->priv->size;
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp11_ = job;
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp12_ = _tmp11_->unscaled;
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_replace (_tmp7_, _tmp10_, _tmp12_, &_inner_error_);
-#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2487 "ThumbnailCache.c"
- goto __catch249_g_error;
- }
- }
- goto __finally249;
- __catch249_g_error:
- {
- GError* err = NULL;
- ThumbnailCacheAsyncFetchJob* _tmp13_;
- GError* _tmp14_;
- GError* _tmp15_;
-#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- err = _inner_error_;
-#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _inner_error_ = NULL;
-#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = job;
-#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp14_ = err;
-#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp15_ = _g_error_copy0 (_tmp14_);
-#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (_tmp13_->err);
-#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_->err = _tmp15_;
-#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 2514 "ThumbnailCache.c"
- }
- __finally249:
-#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _background_job_unref0 (job);
-#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.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 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_clear_error (&_inner_error_);
-#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2527 "ThumbnailCache.c"
- }
- }
-#line 429 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp16_ = job;
-#line 429 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp17_ = _tmp16_->unscaled;
-#line 429 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp17_ != NULL) {
-#line 2536 "ThumbnailCache.c"
- ThumbnailCacheAsyncFetchJob* _tmp18_;
- gboolean _tmp19_;
-#line 430 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp18_ = job;
-#line 430 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp19_ = _tmp18_->fetched;
-#line 430 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp19_) {
-#line 2545 "ThumbnailCache.c"
- ThumbnailCacheAsyncFetchJob* _tmp20_;
- ThumbnailCache* _tmp21_;
- ThumbnailCacheAsyncFetchJob* _tmp22_;
- const gchar* _tmp23_;
- ThumbnailCacheAsyncFetchJob* _tmp24_;
- GdkPixbuf* _tmp25_;
- gint _tmp26_;
-#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp20_ = job;
-#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp21_ = _tmp20_->cache;
-#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp22_ = job;
-#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp23_ = _tmp22_->thumbnail_name;
-#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp24_ = job;
-#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp25_ = _tmp24_->unscaled;
-#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_store_in_memory (_tmp21_, _tmp23_, _tmp25_);
-#line 434 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp26_ = thumbnail_cache_cycle_async_fetched_thumbnails;
-#line 434 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_cycle_async_fetched_thumbnails = _tmp26_ + 1;
-#line 435 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_schedule_debug ();
-#line 2573 "ThumbnailCache.c"
- } else {
- gint _tmp27_;
-#line 437 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp27_ = thumbnail_cache_cycle_async_resized_thumbnails;
-#line 437 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_cycle_async_resized_thumbnails = _tmp27_ + 1;
-#line 438 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_schedule_debug ();
-#line 2582 "ThumbnailCache.c"
- }
- }
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp28_ = job;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp29_ = _tmp28_->callback;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp29__target = _tmp28_->callback_target;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp30_ = job;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp31_ = _tmp30_->scaled;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp32_ = job;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp33_ = _tmp32_->unscaled;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp34_ = job;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp35_ = _tmp34_->dim;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp36_ = job;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp37_ = _tmp36_->interp;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp38_ = job;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp39_ = _tmp38_->err;
-#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp29_ (_tmp31_, _tmp33_, &_tmp35_, _tmp37_, _tmp39_, _tmp29__target);
-#line 416 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _background_job_unref0 (job);
-#line 2615 "ThumbnailCache.c"
-}
-
-
-static void
-_thumbnail_cache_import_from_source (ThumbnailCache* self,
- ThumbnailSource* source,
- gboolean force,
- GError** error)
-{
- GFile* file = NULL;
- GFile* _tmp0_;
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp1_;
- GdkPixbuf* _tmp2_ = NULL;
- LibraryPhoto* _tmp3_;
- ThumbnailCacheSize _tmp4_;
- Scaling _tmp5_ = {0};
- GdkPixbuf* _tmp6_;
- GFile* _tmp7_;
- GError * _inner_error_ = NULL;
-#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_CACHE (self));
-#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 447 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_get_source_cached_file (self, source);
-#line 447 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- file = _tmp0_;
-#line 451 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (!force) {
-#line 452 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_thumbnail_cache_exists (self, source)) {
-#line 453 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (file);
-#line 453 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2652 "ThumbnailCache.c"
- }
- } else {
-#line 456 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_remove (self, source);
-#line 2657 "ThumbnailCache.c"
- }
-#line 459 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 459 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- photo = _tmp1_;
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = photo;
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = self->priv->size;
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- scaling_for_best_fit (thumbnail_cache_size_get_scale (_tmp4_), TRUE, &_tmp5_);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp5_, &_inner_error_);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp6_;
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (photo);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (file);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2683 "ThumbnailCache.c"
- }
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = file;
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_save_thumbnail (self, _tmp7_, _tmp2_, source, &_inner_error_);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp2_);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (photo);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (file);
-#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2701 "ThumbnailCache.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp2_);
-#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (photo);
-#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (file);
-#line 2709 "ThumbnailCache.c"
-}
-
-
-static void
-_thumbnail_cache_import_thumbnail (ThumbnailCache* self,
- ThumbnailSource* source,
- GdkPixbuf* scaled,
- gboolean force,
- GError** error)
-{
- Dimensions _tmp0_ = {0};
- ThumbnailCacheSize _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 466 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_CACHE (self));
-#line 466 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 466 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail ((scaled == NULL) || GDK_IS_PIXBUF (scaled));
-#line 468 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (scaled != NULL, "scaled != null");
-#line 469 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dimensions_for_pixbuf (scaled, &_tmp0_);
-#line 469 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = self->priv->size;
-#line 469 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (dimensions_approx_scaled (&_tmp0_, thumbnail_cache_size_get_scale (_tmp1_), 1), "Dimensions.for_pixbuf(scaled).approx_scaled(size.get_scale())");
-#line 473 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (!force) {
-#line 474 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_thumbnail_cache_exists (self, source)) {
-#line 475 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2745 "ThumbnailCache.c"
- }
- } else {
-#line 478 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_remove (self, source);
-#line 2750 "ThumbnailCache.c"
- }
-#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_get_source_cached_file (self, source);
-#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _tmp2_;
-#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_save_thumbnail (self, _tmp3_, scaled, source, &_inner_error_);
-#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp3_);
-#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2766 "ThumbnailCache.c"
- }
-}
-
-
-static void
-_thumbnail_cache_duplicate (ThumbnailCache* self,
- ThumbnailSource* src_source,
- ThumbnailSource* dest_source)
-{
- GFile* src_file = NULL;
- GFile* _tmp0_;
- GFile* dest_file = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_CACHE (self));
-#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (src_source));
-#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (dest_source));
-#line 489 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_get_source_cached_file (self, src_source);
-#line 489 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- src_file = _tmp0_;
-#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_source_get_representative_id (dest_source);
-#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp1_;
-#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = thumbnail_cache_get_cached_file (self, _tmp2_, thumbnail_source_get_preferred_thumbnail_format (src_source));
-#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = _tmp3_;
-#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp2_);
-#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dest_file = _tmp4_;
-#line 2806 "ThumbnailCache.c"
- {
-#line 494 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_file_copy (src_file, dest_file, G_FILE_COPY_ALL_METADATA | G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &_inner_error_);
-#line 494 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2812 "ThumbnailCache.c"
- goto __catch250_g_error;
- }
- }
- goto __finally250;
- __catch250_g_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- err = _inner_error_;
-#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _inner_error_ = NULL;
-#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = err;
-#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = _tmp5_->message;
-#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = g_strdup_printf ("%s", _tmp6_);
-#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = _tmp7_;
-#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- app_window_panic (_tmp8_);
-#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp8_);
-#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 2842 "ThumbnailCache.c"
- }
- __finally250:
-#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (dest_file);
-#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (src_file);
-#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.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 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_clear_error (&_inner_error_);
-#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2857 "ThumbnailCache.c"
- }
-#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (dest_file);
-#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (src_file);
-#line 2863 "ThumbnailCache.c"
-}
-
-
-static void
-_thumbnail_cache_replace (ThumbnailCache* self,
- ThumbnailSource* source,
- GdkPixbuf* original,
- GError** error)
-{
- GFile* file = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GdkPixbuf* scaled = NULL;
- ThumbnailCacheSize _tmp3_;
- GdkInterpType _tmp4_;
- GdkPixbuf* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- GError * _inner_error_ = NULL;
-#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_CACHE (self));
-#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (GDK_IS_PIXBUF (original));
-#line 503 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_get_source_cached_file (self, source);
-#line 503 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- file = _tmp0_;
-#line 506 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 506 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp1_;
-#line 506 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_remove_from_memory (self, _tmp2_);
-#line 506 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp2_);
-#line 509 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = self->priv->size;
-#line 509 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = self->priv->interp;
-#line 509 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = scale_pixbuf (original, thumbnail_cache_size_get_scale (_tmp3_), _tmp4_, TRUE);
-#line 509 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- scaled = _tmp5_;
-#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_save_thumbnail (self, file, scaled, source, &_inner_error_);
-#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (scaled);
-#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (file);
-#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2922 "ThumbnailCache.c"
- }
-#line 518 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 518 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = _tmp6_;
-#line 518 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_store_in_memory (self, _tmp7_, scaled);
-#line 518 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp7_);
-#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (scaled);
-#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (file);
-#line 2936 "ThumbnailCache.c"
-}
-
-
-static void
-_thumbnail_cache_remove (ThumbnailCache* self,
- ThumbnailSource* source)
-{
- GFile* file = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 521 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_CACHE (self));
-#line 521 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 522 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_get_source_cached_file (self, source);
-#line 522 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- file = _tmp0_;
-#line 525 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 525 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp1_;
-#line 525 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_remove_from_memory (self, _tmp2_);
-#line 525 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp2_);
-#line 2965 "ThumbnailCache.c"
- {
-#line 529 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_file_delete (file, NULL, &_inner_error_);
-#line 529 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2971 "ThumbnailCache.c"
- goto __catch251_g_error;
- }
- }
- goto __finally251;
- __catch251_g_error:
- {
- GError* err = NULL;
-#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- err = _inner_error_;
-#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _inner_error_ = NULL;
-#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 2985 "ThumbnailCache.c"
- }
- __finally251:
-#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (file);
-#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.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 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_clear_error (&_inner_error_);
-#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 2998 "ThumbnailCache.c"
- }
-#line 521 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (file);
-#line 3002 "ThumbnailCache.c"
-}
-
-
-static gboolean
-_thumbnail_cache_exists (ThumbnailCache* self,
- ThumbnailSource* source)
-{
- gboolean result = FALSE;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gboolean _tmp2_;
-#line 535 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), FALSE);
-#line 535 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), FALSE);
-#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_get_source_cached_file (self, source);
-#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp0_;
-#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = g_file_query_exists (_tmp1_, NULL);
-#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp2_;
-#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 3030 "ThumbnailCache.c"
-}
-
-
-static GdkPixbuf*
-thumbnail_cache_read_pixbuf (ThumbnailCache* self,
- const gchar* thumbnail_name,
- PhotoFileFormat format,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- PhotoFileReader* _tmp5_;
- PhotoFileReader* _tmp6_;
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 540 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL);
-#line 540 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (thumbnail_name != NULL, NULL);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_cache_get_cached_file (self, thumbnail_name, format);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp1_;
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = g_file_get_path (_tmp2_);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = _tmp3_;
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = photo_file_format_create_reader (format, _tmp4_);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = _tmp5_;
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = photo_file_reader_unscaled_read (_tmp6_, &_inner_error_);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = _tmp7_;
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _photo_file_adapter_unref0 (_tmp6_);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp4_);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp2_);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = _tmp8_;
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return NULL;
-#line 3086 "ThumbnailCache.c"
- }
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = _tmp0_;
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = NULL;
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp9_;
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp0_);
-#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 3098 "ThumbnailCache.c"
-}
-
-
-static GFile*
-thumbnail_cache_get_source_cached_file (ThumbnailCache* self,
- ThumbnailSource* source)
-{
- GFile* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 545 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL);
-#line 545 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL);
-#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_source_get_representative_id (source);
-#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp0_;
-#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = thumbnail_cache_get_cached_file (self, _tmp1_, thumbnail_source_get_preferred_thumbnail_format (source));
-#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _tmp2_;
-#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp1_);
-#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp3_;
-#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 3129 "ThumbnailCache.c"
-}
-
-
-static GFile*
-thumbnail_cache_get_cached_file (ThumbnailCache* self,
- const gchar* thumbnail_name,
- PhotoFileFormat thumbnail_format)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
-#line 550 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL);
-#line 550 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (thumbnail_name != NULL, NULL);
-#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->priv->cache_dir;
-#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = photo_file_format_get_default_basename (thumbnail_format, thumbnail_name);
-#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp1_;
-#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = g_file_get_child (_tmp0_, _tmp2_);
-#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = _tmp3_;
-#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp2_);
-#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp4_;
-#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 3164 "ThumbnailCache.c"
-}
-
-
-static GdkPixbuf*
-thumbnail_cache_fetch_from_memory (ThumbnailCache* self,
- const gchar* thumbnail_name)
-{
- GdkPixbuf* result = NULL;
- ThumbnailCacheImageData* data = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- GdkPixbuf* _tmp2_ = NULL;
- ThumbnailCacheImageData* _tmp3_;
- GdkPixbuf* _tmp6_;
-#line 554 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL);
-#line 554 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (thumbnail_name != NULL, NULL);
-#line 555 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->priv->cache_map;
-#line 555 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), thumbnail_name);
-#line 555 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- data = (ThumbnailCacheImageData*) _tmp1_;
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = data;
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp3_ != NULL) {
-#line 3193 "ThumbnailCache.c"
- ThumbnailCacheImageData* _tmp4_;
- GdkPixbuf* _tmp5_;
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = data;
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = _tmp4_->pixbuf;
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp5_;
-#line 3202 "ThumbnailCache.c"
- } else {
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = NULL;
-#line 3206 "ThumbnailCache.c"
- }
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = _g_object_ref0 (_tmp2_);
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = _tmp6_;
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_image_data_unref0 (data);
-#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 3216 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_store_in_memory (ThumbnailCache* self,
- const gchar* thumbnail_name,
- GdkPixbuf* thumbnail)
-{
- gulong _tmp0_;
- ThumbnailCacheImageData* data = NULL;
- ThumbnailCacheImageData* _tmp1_;
- ThumbnailCacheImageData* _tmp2_;
- gulong _tmp3_;
- GeeHashMap* _tmp4_;
- ThumbnailCacheImageData* _tmp5_;
- GeeArrayList* _tmp6_;
- gulong _tmp7_;
- ThumbnailCacheImageData* _tmp8_;
- gulong _tmp9_;
-#line 560 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_CACHE (self));
-#line 560 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (thumbnail_name != NULL);
-#line 560 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (GDK_IS_PIXBUF (thumbnail));
-#line 561 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->priv->max_cached_bytes;
-#line 561 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp0_ <= ((gulong) 0)) {
-#line 562 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 3248 "ThumbnailCache.c"
- }
-#line 564 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_remove_from_memory (self, thumbnail_name);
-#line 566 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = thumbnail_cache_image_data_new (thumbnail);
-#line 566 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- data = _tmp1_;
-#line 569 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = data;
-#line 569 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _tmp2_->bytes;
-#line 569 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp3_ > ((gulong) THUMBNAIL_CACHE_MAX_INMEMORY_DATA_SIZE)) {
-#line 570 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_debug ("ThumbnailCache.vala:570: Persistent thumbnail [%s] too large to cache " \
-"in memory", thumbnail_name);
-#line 572 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_image_data_unref0 (data);
-#line 572 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 3268 "ThumbnailCache.c"
- }
-#line 575 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = self->priv->cache_map;
-#line 575 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = data;
-#line 575 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), thumbnail_name, _tmp5_);
-#line 576 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = self->priv->cache_lru;
-#line 576 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, thumbnail_name);
-#line 578 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = self->priv->cached_bytes;
-#line 578 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = data;
-#line 578 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = _tmp8_->bytes;
-#line 578 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->cached_bytes = _tmp7_ + _tmp9_;
-#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- while (TRUE) {
-#line 3290 "ThumbnailCache.c"
- gulong _tmp10_;
- gulong _tmp11_;
- GeeArrayList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint index = 0;
- GeeArrayList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gchar* victim_name = NULL;
- GeeArrayList* _tmp18_;
- gint _tmp19_;
- gpointer _tmp20_;
- GeeArrayList* _tmp21_;
- gint _tmp22_;
- gpointer _tmp23_;
- gchar* _tmp24_;
- GeeHashMap* _tmp25_;
- const gchar* _tmp26_;
- gpointer _tmp27_;
- gint _tmp28_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp29_;
- const gchar* _tmp30_;
- gboolean _tmp31_;
- gboolean _tmp32_;
- ThumbnailCacheImageData* _tmp33_;
- gulong _tmp34_;
- gulong _tmp35_;
- gulong _tmp36_;
- ThumbnailCacheImageData* _tmp37_;
- gulong _tmp38_;
-#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp10_ = self->priv->cached_bytes;
-#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp11_ = self->priv->max_cached_bytes;
-#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (!(_tmp10_ > _tmp11_)) {
-#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- break;
-#line 3331 "ThumbnailCache.c"
- }
-#line 582 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp12_ = self->priv->cache_lru;
-#line 582 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 582 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp14_ = _tmp13_;
-#line 582 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (_tmp14_ > 0, "cache_lru.size > 0");
-#line 583 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp15_ = self->priv->cache_lru;
-#line 583 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 583 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp17_ = _tmp16_;
-#line 583 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- index = _tmp17_ - 1;
-#line 585 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp18_ = self->priv->cache_lru;
-#line 585 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp19_ = index;
-#line 585 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp20_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp19_);
-#line 585 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- victim_name = (gchar*) _tmp20_;
-#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp21_ = self->priv->cache_lru;
-#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp22_ = index;
-#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp23_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp22_);
-#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp24_ = (gchar*) _tmp23_;
-#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp24_);
-#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp25_ = self->priv->cache_map;
-#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp26_ = victim_name;
-#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp27_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp26_);
-#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_image_data_unref0 (data);
-#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- data = (ThumbnailCacheImageData*) _tmp27_;
-#line 590 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp28_ = thumbnail_cache_cycle_overflow_thumbnails;
-#line 590 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_cycle_overflow_thumbnails = _tmp28_ + 1;
-#line 591 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_schedule_debug ();
-#line 593 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp29_ = self->priv->cache_map;
-#line 593 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp30_ = victim_name;
-#line 593 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp31_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_, NULL);
-#line 593 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- removed = _tmp31_;
-#line 594 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp32_ = removed;
-#line 594 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (_tmp32_, "removed");
-#line 596 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp33_ = data;
-#line 596 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp34_ = _tmp33_->bytes;
-#line 596 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp35_ = self->priv->cached_bytes;
-#line 596 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (_tmp34_ <= _tmp35_, "data.bytes <= cached_bytes");
-#line 597 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp36_ = self->priv->cached_bytes;
-#line 597 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp37_ = data;
-#line 597 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp38_ = _tmp37_->bytes;
-#line 597 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->cached_bytes = _tmp36_ - _tmp38_;
-#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (victim_name);
-#line 3413 "ThumbnailCache.c"
- }
-#line 560 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_image_data_unref0 (data);
-#line 3417 "ThumbnailCache.c"
-}
-
-
-static gboolean
-thumbnail_cache_remove_from_memory (ThumbnailCache* self,
- const gchar* thumbnail_name)
-{
- gboolean result = FALSE;
- ThumbnailCacheImageData* data = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- ThumbnailCacheImageData* _tmp2_;
- gulong _tmp3_;
- ThumbnailCacheImageData* _tmp4_;
- gulong _tmp5_;
- gulong _tmp6_;
- ThumbnailCacheImageData* _tmp7_;
- gulong _tmp8_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp9_;
- gboolean _tmp10_;
- gboolean _tmp11_;
- GeeArrayList* _tmp12_;
- gboolean _tmp13_;
-#line 601 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), FALSE);
-#line 601 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (thumbnail_name != NULL, FALSE);
-#line 602 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->priv->cache_map;
-#line 602 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), thumbnail_name);
-#line 602 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- data = (ThumbnailCacheImageData*) _tmp1_;
-#line 603 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = data;
-#line 603 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp2_ == NULL) {
-#line 604 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = FALSE;
-#line 604 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_image_data_unref0 (data);
-#line 604 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 3462 "ThumbnailCache.c"
- }
-#line 606 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = self->priv->cached_bytes;
-#line 606 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = data;
-#line 606 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = _tmp4_->bytes;
-#line 606 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (_tmp3_ >= _tmp5_, "cached_bytes >= data.bytes");
-#line 607 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = self->priv->cached_bytes;
-#line 607 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = data;
-#line 607 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = _tmp7_->bytes;
-#line 607 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->cached_bytes = _tmp6_ - _tmp8_;
-#line 610 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = self->priv->cache_map;
-#line 610 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp10_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), thumbnail_name, NULL);
-#line 610 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- removed = _tmp10_;
-#line 611 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp11_ = removed;
-#line 611 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (_tmp11_, "removed");
-#line 614 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp12_ = self->priv->cache_lru;
-#line 614 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), thumbnail_name);
-#line 615 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = removed;
-#line 615 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _vala_assert (_tmp13_, "removed");
-#line 617 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = TRUE;
-#line 617 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _thumbnail_cache_image_data_unref0 (data);
-#line 617 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 3504 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_save_thumbnail (ThumbnailCache* self,
- GFile* file,
- GdkPixbuf* pixbuf,
- ThumbnailSource* source,
- GError** error)
-{
- PhotoFileWriter* _tmp0_ = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- PhotoFileWriter* _tmp3_;
- PhotoFileWriter* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_CACHE (self));
-#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = g_file_get_path (file);
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _tmp1_;
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = photo_file_format_create_writer (thumbnail_source_get_preferred_thumbnail_format (source), _tmp2_, &_inner_error_);
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = _tmp3_;
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (_tmp2_);
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = _tmp4_;
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 3547 "ThumbnailCache.c"
- }
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- photo_file_writer_write (_tmp0_, pixbuf, THUMBNAIL_CACHE_DEFAULT_QUALITY, &_inner_error_);
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _photo_file_adapter_unref0 (_tmp0_);
-#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 3559 "ThumbnailCache.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _photo_file_adapter_unref0 (_tmp0_);
-#line 3563 "ThumbnailCache.c"
-}
-
-
-static ThumbnailCacheImageData*
-thumbnail_cache_image_data_construct (GType object_type,
- GdkPixbuf* pixbuf)
-{
- ThumbnailCacheImageData* self = NULL;
- GdkPixbuf* _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 63 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = (ThumbnailCacheImageData*) g_type_create_instance (object_type);
-#line 64 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = _g_object_ref0 (pixbuf);
-#line 64 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->pixbuf);
-#line 64 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->pixbuf = _tmp0_;
-#line 68 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->bytes = ((gulong) gdk_pixbuf_get_rowstride (pixbuf)) * ((gulong) gdk_pixbuf_get_height (pixbuf));
-#line 63 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return self;
-#line 3587 "ThumbnailCache.c"
-}
-
-
-static ThumbnailCacheImageData*
-thumbnail_cache_image_data_new (GdkPixbuf* pixbuf)
-{
-#line 63 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return thumbnail_cache_image_data_construct (THUMBNAIL_CACHE_TYPE_IMAGE_DATA, pixbuf);
-#line 3596 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_value_image_data_init (GValue* value)
-{
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = NULL;
-#line 3605 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_value_image_data_free_value (GValue* value)
-{
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (value->data[0].v_pointer) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_image_data_unref (value->data[0].v_pointer);
-#line 3616 "ThumbnailCache.c"
- }
-}
-
-
-static void
-thumbnail_cache_value_image_data_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (src_value->data[0].v_pointer) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dest_value->data[0].v_pointer = thumbnail_cache_image_data_ref (src_value->data[0].v_pointer);
-#line 3629 "ThumbnailCache.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3633 "ThumbnailCache.c"
- }
-}
-
-
-static gpointer
-thumbnail_cache_value_image_data_peek_pointer (const GValue* value)
-{
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return value->data[0].v_pointer;
-#line 3643 "ThumbnailCache.c"
-}
-
-
-static gchar*
-thumbnail_cache_value_image_data_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (collect_values[0].v_pointer) {
-#line 3655 "ThumbnailCache.c"
- ThumbnailCacheImageData * object;
- object = collect_values[0].v_pointer;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3662 "ThumbnailCache.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.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 3666 "ThumbnailCache.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = thumbnail_cache_image_data_ref (object);
-#line 3670 "ThumbnailCache.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = NULL;
-#line 3674 "ThumbnailCache.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return NULL;
-#line 3678 "ThumbnailCache.c"
-}
-
-
-static gchar*
-thumbnail_cache_value_image_data_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- ThumbnailCacheImageData ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (!object_p) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3694 "ThumbnailCache.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (!value->data[0].v_pointer) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- *object_p = NULL;
-#line 3700 "ThumbnailCache.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- *object_p = value->data[0].v_pointer;
-#line 3704 "ThumbnailCache.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- *object_p = thumbnail_cache_image_data_ref (value->data[0].v_pointer);
-#line 3708 "ThumbnailCache.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return NULL;
-#line 3712 "ThumbnailCache.c"
-}
-
-
-static GParamSpec*
-thumbnail_cache_param_spec_image_data (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ThumbnailCacheParamSpecImageData* spec;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (g_type_is_a (object_type, THUMBNAIL_CACHE_TYPE_IMAGE_DATA), NULL);
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return G_PARAM_SPEC (spec);
-#line 3732 "ThumbnailCache.c"
-}
-
-
-static gpointer
-thumbnail_cache_value_get_image_data (const GValue* value)
-{
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, THUMBNAIL_CACHE_TYPE_IMAGE_DATA), NULL);
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return value->data[0].v_pointer;
-#line 3743 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_value_set_image_data (GValue* value,
- gpointer v_object)
-{
- ThumbnailCacheImageData * old;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, THUMBNAIL_CACHE_TYPE_IMAGE_DATA));
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- old = value->data[0].v_pointer;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (v_object) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, THUMBNAIL_CACHE_TYPE_IMAGE_DATA));
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = v_object;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_image_data_ref (value->data[0].v_pointer);
-#line 3766 "ThumbnailCache.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = NULL;
-#line 3770 "ThumbnailCache.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (old) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_image_data_unref (old);
-#line 3776 "ThumbnailCache.c"
- }
-}
-
-
-static void
-thumbnail_cache_value_take_image_data (GValue* value,
- gpointer v_object)
-{
- ThumbnailCacheImageData * old;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, THUMBNAIL_CACHE_TYPE_IMAGE_DATA));
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- old = value->data[0].v_pointer;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (v_object) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, THUMBNAIL_CACHE_TYPE_IMAGE_DATA));
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = v_object;
-#line 3798 "ThumbnailCache.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- value->data[0].v_pointer = NULL;
-#line 3802 "ThumbnailCache.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (old) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_image_data_unref (old);
-#line 3808 "ThumbnailCache.c"
- }
-}
-
-
-static void
-thumbnail_cache_image_data_class_init (ThumbnailCacheImageDataClass * klass)
-{
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_image_data_parent_class = g_type_class_peek_parent (klass);
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- ((ThumbnailCacheImageDataClass *) klass)->finalize = thumbnail_cache_image_data_finalize;
-#line 3820 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_image_data_instance_init (ThumbnailCacheImageData * self)
-{
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->ref_count = 1;
-#line 3829 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_image_data_finalize (ThumbnailCacheImageData * obj)
-{
- ThumbnailCacheImageData * self;
- gulong _tmp0_;
- gulong _tmp1_;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, THUMBNAIL_CACHE_TYPE_IMAGE_DATA, ThumbnailCacheImageData);
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_signal_handlers_destroy (self);
-#line 72 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = thumbnail_cache_cycle_dropped_bytes;
-#line 72 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = self->bytes;
-#line 72 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_cycle_dropped_bytes = _tmp0_ + _tmp1_;
-#line 73 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_schedule_debug ();
-#line 60 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->pixbuf);
-#line 3853 "ThumbnailCache.c"
-}
-
-
-static GType
-thumbnail_cache_image_data_get_type (void)
-{
- static volatile gsize thumbnail_cache_image_data_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnail_cache_image_data_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { thumbnail_cache_value_image_data_init, thumbnail_cache_value_image_data_free_value, thumbnail_cache_value_image_data_copy_value, thumbnail_cache_value_image_data_peek_pointer, "p", thumbnail_cache_value_image_data_collect_value, "p", thumbnail_cache_value_image_data_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ThumbnailCacheImageDataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_cache_image_data_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailCacheImageData), 0, (GInstanceInitFunc) thumbnail_cache_image_data_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType thumbnail_cache_image_data_type_id;
- thumbnail_cache_image_data_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ThumbnailCacheImageData", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&thumbnail_cache_image_data_type_id__volatile, thumbnail_cache_image_data_type_id);
- }
- return thumbnail_cache_image_data_type_id__volatile;
-}
-
-
-static gpointer
-thumbnail_cache_image_data_ref (gpointer instance)
-{
- ThumbnailCacheImageData * self;
- self = instance;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return instance;
-#line 3882 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_image_data_unref (gpointer instance)
-{
- ThumbnailCacheImageData * self;
- self = instance;
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- THUMBNAIL_CACHE_IMAGE_DATA_GET_CLASS (self)->finalize (self);
-#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3897 "ThumbnailCache.c"
- }
-}
-
-
-static void
-_thumbnail_cache_async_fetch_completion_callback_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 94 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_async_fetch_completion_callback (job);
-#line 3908 "ThumbnailCache.c"
-}
-
-
-static ThumbnailCacheAsyncFetchJob*
-thumbnail_cache_async_fetch_job_construct (GType object_type,
- ThumbnailCache* cache,
- const gchar* thumbnail_name,
- ThumbnailSource* source,
- GdkPixbuf* prefetched,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable)
-{
- ThumbnailCacheAsyncFetchJob* self = NULL;
- ThumbnailCache* _tmp0_;
- gchar* _tmp1_;
- ThumbnailSource* _tmp2_;
- GdkPixbuf* _tmp3_;
- Dimensions _tmp4_;
-#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_CACHE (cache), NULL);
-#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (thumbnail_name != NULL, NULL);
-#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL);
-#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail ((prefetched == NULL) || GDK_IS_PIXBUF (prefetched), NULL);
-#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail (dim != NULL, NULL);
-#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL);
-#line 94 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = (ThumbnailCacheAsyncFetchJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (cache, G_TYPE_OBJECT, GObject), _thumbnail_cache_async_fetch_completion_callback_completion_callback, NULL, cancellable, NULL, NULL, NULL);
-#line 96 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = _g_object_ref0 (cache);
-#line 96 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->cache);
-#line 96 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->cache = _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = g_strdup (thumbnail_name);
-#line 97 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (self->thumbnail_name);
-#line 97 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->thumbnail_name = _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = _g_object_ref0 (source);
-#line 98 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->source);
-#line 98 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->source = _tmp2_;
-#line 99 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->source_format = thumbnail_source_get_preferred_thumbnail_format (source);
-#line 100 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _g_object_ref0 (prefetched);
-#line 100 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->unscaled);
-#line 100 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->unscaled = _tmp3_;
-#line 101 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = *dim;
-#line 101 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->dim = _tmp4_;
-#line 102 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->interp = interp;
-#line 103 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->callback = callback;
-#line 103 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->callback_target = callback_target;
-#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return self;
-#line 3982 "ThumbnailCache.c"
-}
-
-
-static ThumbnailCacheAsyncFetchJob*
-thumbnail_cache_async_fetch_job_new (ThumbnailCache* cache,
- const gchar* thumbnail_name,
- ThumbnailSource* source,
- GdkPixbuf* prefetched,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable)
-{
-#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return thumbnail_cache_async_fetch_job_construct (THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, cache, thumbnail_name, source, prefetched, dim, interp, callback, callback_target, cancellable);
-#line 3999 "ThumbnailCache.c"
-}
-
-
-static BackgroundJobJobPriority
-thumbnail_cache_async_fetch_job_real_get_priority (BackgroundJob* base)
-{
- ThumbnailCacheAsyncFetchJob * self;
- BackgroundJobJobPriority result = 0;
- GdkInterpType _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob);
-#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->interp;
-#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- switch (_tmp0_) {
-#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- case GDK_INTERP_NEAREST:
-#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- case GDK_INTERP_TILES:
-#line 4019 "ThumbnailCache.c"
- {
-#line 112 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = BACKGROUND_JOB_JOB_PRIORITY_HIGH;
-#line 112 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 4025 "ThumbnailCache.c"
- }
- default:
-#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- case GDK_INTERP_BILINEAR:
-#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- case GDK_INTERP_HYPER:
-#line 4032 "ThumbnailCache.c"
- {
-#line 117 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- result = BACKGROUND_JOB_JOB_PRIORITY_NORMAL;
-#line 117 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return result;
-#line 4038 "ThumbnailCache.c"
- }
- }
-}
-
-
-static void
-thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base)
-{
- ThumbnailCacheAsyncFetchJob * self;
- GError * _inner_error_ = NULL;
-#line 121 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob);
-#line 4051 "ThumbnailCache.c"
- {
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp7_ = NULL;
- GdkPixbuf* _tmp14_;
-#line 124 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->unscaled;
-#line 124 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp0_ == NULL) {
-#line 4060 "ThumbnailCache.c"
- GdkPixbuf* _tmp1_ = NULL;
- ThumbnailCache* _tmp2_;
- const gchar* _tmp3_;
- PhotoFileFormat _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = self->cache;
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = self->thumbnail_name;
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = self->source_format;
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = thumbnail_cache_read_pixbuf (_tmp2_, _tmp3_, _tmp4_, &_inner_error_);
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _tmp5_;
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4079 "ThumbnailCache.c"
- goto __catch252_g_error;
- }
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = _tmp1_;
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = NULL;
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->unscaled);
-#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->unscaled = _tmp6_;
-#line 126 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->fetched = TRUE;
-#line 124 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp1_);
-#line 4094 "ThumbnailCache.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob))) {
-#line 130 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 4100 "ThumbnailCache.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (dimensions_has_area (&self->dim)) {
-#line 4104 "ThumbnailCache.c"
- GdkPixbuf* _tmp8_;
- Dimensions _tmp9_;
- GdkInterpType _tmp10_;
- GdkPixbuf* _tmp11_;
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = self->unscaled;
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = self->dim;
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp10_ = self->interp;
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp11_ = resize_pixbuf (_tmp8_, &_tmp9_, _tmp10_);
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp7_);
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = _tmp11_;
-#line 4121 "ThumbnailCache.c"
- } else {
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp12_ = self->unscaled;
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = _g_object_ref0 (_tmp12_);
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp7_);
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp7_ = _tmp13_;
-#line 4133 "ThumbnailCache.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp14_ = _g_object_ref0 (_tmp7_);
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->scaled);
-#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->scaled = _tmp14_;
-#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp7_);
-#line 4143 "ThumbnailCache.c"
- }
- goto __finally252;
- __catch252_g_error:
- {
- GError* err = NULL;
- GError* _tmp15_;
-#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- err = _inner_error_;
-#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _inner_error_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp15_ = err;
-#line 135 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp15_->domain == G_FILE_ERROR) {
-#line 4158 "ThumbnailCache.c"
- {
-#line 137 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_async_fetch_job_generate_thumbnail (self, &_inner_error_);
-#line 137 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4164 "ThumbnailCache.c"
- goto __catch253_g_error;
- }
- }
- goto __finally253;
- __catch253_g_error:
- {
- GError* generr = NULL;
- GError* _tmp16_;
- GError* _tmp17_;
-#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- generr = _inner_error_;
-#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _inner_error_ = NULL;
-#line 140 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp16_ = generr;
-#line 140 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp17_ = _g_error_copy0 (_tmp16_);
-#line 140 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 140 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- err = _tmp17_;
-#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (generr);
-#line 4188 "ThumbnailCache.c"
- }
- __finally253:
-#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.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 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_clear_error (&_inner_error_);
-#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 4203 "ThumbnailCache.c"
- }
- } else {
- GError* _tmp18_;
- GError* _tmp19_;
-#line 144 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp18_ = err;
-#line 144 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp19_ = _g_error_copy0 (_tmp18_);
-#line 144 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (self->err);
-#line 144 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->err = _tmp19_;
-#line 4216 "ThumbnailCache.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (err);
-#line 4220 "ThumbnailCache.c"
- }
- __finally252:
-#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.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 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_clear_error (&_inner_error_);
-#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 4231 "ThumbnailCache.c"
- }
-}
-
-
-static void
-thumbnail_cache_async_fetch_job_generate_thumbnail (ThumbnailCacheAsyncFetchJob* self,
- GError** error)
-{
- Photo* photo = NULL;
- ThumbnailSource* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- GdkPixbuf* _tmp19_;
- GError * _inner_error_ = NULL;
-#line 149 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_return_if_fail (THUMBNAIL_CACHE_IS_ASYNC_FETCH_JOB (self));
-#line 150 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = self->source;
-#line 150 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO) ? ((Photo*) _tmp0_) : NULL);
-#line 150 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- photo = _tmp1_;
-#line 151 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp2_ = photo;
-#line 151 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp2_ != NULL) {
-#line 4258 "ThumbnailCache.c"
- GdkPixbuf* _tmp3_ = NULL;
- Photo* _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
- Scaling _tmp7_ = {0};
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp4_ = photo;
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp5_ = self->dim;
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp6_ = _tmp5_.width;
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- scaling_for_best_fit (_tmp6_, TRUE, &_tmp7_);
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp8_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp7_, &_inner_error_);
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = _tmp8_;
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (photo);
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 4286 "ThumbnailCache.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp9_ = _tmp3_;
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp3_ = NULL;
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->unscaled);
-#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->unscaled = _tmp9_;
-#line 151 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp3_);
-#line 4298 "ThumbnailCache.c"
- } else {
- Video* video = NULL;
- ThumbnailSource* _tmp10_;
- Video* _tmp11_;
- Video* _tmp12_;
-#line 154 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp10_ = self->source;
-#line 154 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_VIDEO) ? ((Video*) _tmp10_) : NULL);
-#line 154 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- video = _tmp11_;
-#line 155 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp12_ = video;
-#line 155 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp12_ != NULL) {
-#line 4314 "ThumbnailCache.c"
- GdkPixbuf* _tmp13_ = NULL;
- Video* _tmp14_;
- Dimensions _tmp15_;
- gint _tmp16_;
- GdkPixbuf* _tmp17_;
- GdkPixbuf* _tmp18_;
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp14_ = video;
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp15_ = self->dim;
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp16_ = _tmp15_.width;
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp17_ = thumbnail_source_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp16_, &_inner_error_);
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = _tmp17_;
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_propagate_error (error, _inner_error_);
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (video);
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (photo);
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- return;
-#line 4341 "ThumbnailCache.c"
- }
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp18_ = _tmp13_;
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp13_ = NULL;
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->unscaled);
-#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->unscaled = _tmp18_;
-#line 155 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (_tmp13_);
-#line 4353 "ThumbnailCache.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (video);
-#line 4357 "ThumbnailCache.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp19_ = self->unscaled;
-#line 159 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- if (_tmp19_ != NULL) {
-#line 4363 "ThumbnailCache.c"
- GdkPixbuf* _tmp20_;
- Dimensions _tmp21_;
- GdkInterpType _tmp22_;
- GdkPixbuf* _tmp23_;
-#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp20_ = self->unscaled;
-#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp21_ = self->dim;
-#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp22_ = self->interp;
-#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp23_ = resize_pixbuf (_tmp20_, &_tmp21_, _tmp22_);
-#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->scaled);
-#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->scaled = _tmp23_;
-#line 161 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->replace = TRUE;
-#line 4382 "ThumbnailCache.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (photo);
-#line 4386 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_async_fetch_job_class_init (ThumbnailCacheAsyncFetchJobClass * klass)
-{
-#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_async_fetch_job_parent_class = g_type_class_peek_parent (klass);
-#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- ((BackgroundJobClass *) klass)->finalize = thumbnail_cache_async_fetch_job_finalize;
-#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- ((BackgroundJobClass *) klass)->get_priority = (BackgroundJobJobPriority (*) (BackgroundJob *)) thumbnail_cache_async_fetch_job_real_get_priority;
-#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) thumbnail_cache_async_fetch_job_real_execute;
-#line 4401 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_async_fetch_job_instance_init (ThumbnailCacheAsyncFetchJob * self)
-{
-#line 86 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->scaled = NULL;
-#line 87 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->err = NULL;
-#line 88 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->fetched = FALSE;
-#line 89 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->replace = FALSE;
-#line 4416 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_async_fetch_job_finalize (BackgroundJob * obj)
-{
- ThumbnailCacheAsyncFetchJob * self;
-#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob);
-#line 78 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->cache);
-#line 79 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_free0 (self->thumbnail_name);
-#line 80 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->source);
-#line 85 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->unscaled);
-#line 86 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->scaled);
-#line 87 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_error_free0 (self->err);
-#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- BACKGROUND_JOB_CLASS (thumbnail_cache_async_fetch_job_parent_class)->finalize (obj);
-#line 4440 "ThumbnailCache.c"
-}
-
-
-static GType
-thumbnail_cache_async_fetch_job_get_type (void)
-{
- static volatile gsize thumbnail_cache_async_fetch_job_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnail_cache_async_fetch_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ThumbnailCacheAsyncFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_cache_async_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailCacheAsyncFetchJob), 0, (GInstanceInitFunc) thumbnail_cache_async_fetch_job_instance_init, NULL };
- GType thumbnail_cache_async_fetch_job_type_id;
- thumbnail_cache_async_fetch_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "ThumbnailCacheAsyncFetchJob", &g_define_type_info, 0);
- g_once_init_leave (&thumbnail_cache_async_fetch_job_type_id__volatile, thumbnail_cache_async_fetch_job_type_id);
- }
- return thumbnail_cache_async_fetch_job_type_id__volatile;
-}
-
-
-static void
-thumbnail_cache_class_init (ThumbnailCacheClass * klass)
-{
- ThumbnailCacheSize* _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_parent_class = g_type_class_peek_parent (klass);
-#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- g_type_class_add_private (klass, sizeof (ThumbnailCachePrivate));
-#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- G_OBJECT_CLASS (klass)->finalize = thumbnail_cache_finalize;
-#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = g_new0 (ThumbnailCacheSize, 2);
-#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_[0] = THUMBNAIL_CACHE_SIZE_BIG;
-#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_[1] = THUMBNAIL_CACHE_SIZE_MEDIUM;
-#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_ALL_SIZES = _tmp0_;
-#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- thumbnail_cache_ALL_SIZES_length1 = 2;
-#line 4478 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_instance_init (ThumbnailCache * self)
-{
- GeeHashMap* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv = THUMBNAIL_CACHE_GET_PRIVATE (self);
-#line 186 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, THUMBNAIL_CACHE_TYPE_IMAGE_DATA, (GBoxedCopyFunc) thumbnail_cache_image_data_ref, (GDestroyNotify) thumbnail_cache_image_data_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 186 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->cache_map = _tmp0_;
-#line 187 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _tmp1_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 187 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->cache_lru = _tmp1_;
-#line 188 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self->priv->cached_bytes = (gulong) 0;
-#line 4499 "ThumbnailCache.c"
-}
-
-
-static void
-thumbnail_cache_finalize (GObject * obj)
-{
- ThumbnailCache * self;
-#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAIL_CACHE, ThumbnailCache);
-#line 181 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->priv->cache_dir);
-#line 186 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->priv->cache_map);
-#line 187 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- _g_object_unref0 (self->priv->cache_lru);
-#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala"
- G_OBJECT_CLASS (thumbnail_cache_parent_class)->finalize (obj);
-#line 4517 "ThumbnailCache.c"
-}
-
-
-GType
-thumbnail_cache_get_type (void)
-{
- static volatile gsize thumbnail_cache_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnail_cache_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ThumbnailCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailCache), 0, (GInstanceInitFunc) thumbnail_cache_instance_init, NULL };
- GType thumbnail_cache_type_id;
- thumbnail_cache_type_id = g_type_register_static (G_TYPE_OBJECT, "ThumbnailCache", &g_define_type_info, 0);
- g_once_init_leave (&thumbnail_cache_type_id__volatile, thumbnail_cache_type_id);
- }
- return thumbnail_cache_type_id__volatile;
-}
-
-
-
diff --git a/src/ThumbnailCache.vala b/src/ThumbnailCache.vala
index f803089..a0b27fd 100644
--- a/src/ThumbnailCache.vala
+++ b/src/ThumbnailCache.vala
@@ -149,7 +149,7 @@ public class ThumbnailCache : Object {
private void generate_thumbnail() throws Error {
Photo? photo = source as Photo;
if (photo != null) {
- unscaled = photo.get_pixbuf(Scaling.for_best_fit(dim.width, true));
+ unscaled = photo.get_pixbuf(Scaling.for_best_fit(dim.major_axis(), true));
} else {
Video? video = source as Video;
if (video != null)
diff --git a/src/TimedQueue.c b/src/TimedQueue.c
deleted file mode 100644
index 8775526..0000000
--- a/src/TimedQueue.c
+++ /dev/null
@@ -1,2416 +0,0 @@
-/* TimedQueue.c generated by valac 0.40.4, the Vala compiler
- * generated from TimedQueue.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* TimedQueue is a specialized collection class. It holds items in order, but rather than being*/
-/* manually dequeued, they are dequeued automatically after a specified amount of time has elapsed*/
-/* for that item. As of today, it's possible the item will be dequeued a bit later than asked*/
-/* for, but it will never be early. Future implementations might tighten up the lateness.*/
-/**/
-/* The original design was to use a signal to notify when an item has been dequeued, but Vala has*/
-/* a bug with passing an unnamed type as a signal parameter:*/
-/* https://bugzilla.gnome.org/show_bug.cgi?id=628639*/
-/**/
-/* The rate the items come off the queue can be spaced out. Note that this can cause items to back*/
-/* up. As of today, TimedQueue makes no effort to combat this.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_TIMED_QUEUE (timed_queue_get_type ())
-#define TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TIMED_QUEUE, TimedQueue))
-#define TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TIMED_QUEUE, TimedQueueClass))
-#define IS_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TIMED_QUEUE))
-#define IS_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TIMED_QUEUE))
-#define TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TIMED_QUEUE, TimedQueueClass))
-
-typedef struct _TimedQueue TimedQueue;
-typedef struct _TimedQueueClass TimedQueueClass;
-typedef struct _TimedQueuePrivate TimedQueuePrivate;
-
-#define TYPE_SORTED_LIST (sorted_list_get_type ())
-#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
-#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
-#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
-#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
-#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
-
-typedef struct _SortedList SortedList;
-typedef struct _SortedListClass SortedListClass;
-
-#define TIMED_QUEUE_TYPE_ELEMENT (timed_queue_element_get_type ())
-#define TIMED_QUEUE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElement))
-#define TIMED_QUEUE_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElementClass))
-#define TIMED_QUEUE_IS_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TIMED_QUEUE_TYPE_ELEMENT))
-#define TIMED_QUEUE_IS_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TIMED_QUEUE_TYPE_ELEMENT))
-#define TIMED_QUEUE_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElementClass))
-
-typedef struct _TimedQueueElement TimedQueueElement;
-typedef struct _TimedQueueElementClass TimedQueueElementClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _TimedQueueElementPrivate TimedQueueElementPrivate;
-#define _timed_queue_element_unref0(var) ((var == NULL) ? NULL : (var = (timed_queue_element_unref (var), NULL)))
-#define _g_destroy_func0(var) (((var == NULL) || (g_destroy_func == NULL)) ? NULL : (var = (g_destroy_func (var), NULL)))
-typedef struct _TimedQueueParamSpecElement TimedQueueParamSpecElement;
-typedef struct _ParamSpecTimedQueue ParamSpecTimedQueue;
-enum {
- TIMED_QUEUE_PAUSED_SIGNAL,
- TIMED_QUEUE_NUM_SIGNALS
-};
-static guint timed_queue_signals[TIMED_QUEUE_NUM_SIGNALS] = {0};
-
-#define TYPE_HASH_TIMED_QUEUE (hash_timed_queue_get_type ())
-#define HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueue))
-#define HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass))
-#define IS_HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HASH_TIMED_QUEUE))
-#define IS_HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HASH_TIMED_QUEUE))
-#define HASH_TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass))
-
-typedef struct _HashTimedQueue HashTimedQueue;
-typedef struct _HashTimedQueueClass HashTimedQueueClass;
-typedef struct _HashTimedQueuePrivate HashTimedQueuePrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef void (*DequeuedCallback) (gconstpointer item, void* user_data);
-struct _TimedQueue {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TimedQueuePrivate * priv;
-};
-
-struct _TimedQueueClass {
- GTypeClass parent_class;
- void (*finalize) (TimedQueue *self);
- void (*notify_dequeued) (TimedQueue* self, gconstpointer item);
- void (*clear) (TimedQueue* self);
- gboolean (*contains) (TimedQueue* self, gconstpointer item);
- gboolean (*enqueue) (TimedQueue* self, gconstpointer item);
- gboolean (*enqueue_many) (TimedQueue* self, GeeCollection* items);
- gboolean (*remove_first) (TimedQueue* self, gconstpointer item);
- void (*paused) (TimedQueue* self, gboolean is_paused);
- gint (*get_size) (TimedQueue* self);
-};
-
-struct _TimedQueuePrivate {
- GType g_type;
- GBoxedCopyFunc g_dup_func;
- GDestroyNotify g_destroy_func;
- guint hold_msec;
- DequeuedCallback callback;
- gpointer callback_target;
- GeeEqualDataFunc equal_func;
- gpointer equal_func_target;
- GDestroyNotify equal_func_target_destroy_notify;
- gint priority;
- guint timer_id;
- SortedList* queue;
- guint dequeue_spacing_msec;
- gulong last_dequeue;
- gboolean paused_state;
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-struct _TimedQueueElement {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TimedQueueElementPrivate * priv;
- gpointer item;
- gulong ready;
-};
-
-struct _TimedQueueElementClass {
- GTypeClass parent_class;
- void (*finalize) (TimedQueueElement *self);
-};
-
-struct _TimedQueueElementPrivate {
- GType g_type;
- GBoxedCopyFunc g_dup_func;
- GDestroyNotify g_destroy_func;
-};
-
-struct _TimedQueueParamSpecElement {
- GParamSpec parent_instance;
-};
-
-struct _ParamSpecTimedQueue {
- GParamSpec parent_instance;
-};
-
-struct _HashTimedQueue {
- TimedQueue parent_instance;
- HashTimedQueuePrivate * priv;
-};
-
-struct _HashTimedQueueClass {
- TimedQueueClass parent_class;
-};
-
-struct _HashTimedQueuePrivate {
- GType g_type;
- GBoxedCopyFunc g_dup_func;
- GDestroyNotify g_destroy_func;
- GeeHashMap* item_count;
-};
-
-
-static gpointer timed_queue_parent_class = NULL;
-static gpointer timed_queue_element_parent_class = NULL;
-static gpointer hash_timed_queue_parent_class = NULL;
-
-gpointer timed_queue_ref (gpointer instance);
-void timed_queue_unref (gpointer instance);
-GParamSpec* param_spec_timed_queue (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_timed_queue (GValue* value,
- gpointer v_object);
-void value_take_timed_queue (GValue* value,
- gpointer v_object);
-gpointer value_get_timed_queue (const GValue* value);
-GType timed_queue_get_type (void) G_GNUC_CONST;
-GType sorted_list_get_type (void) G_GNUC_CONST;
-static gpointer timed_queue_element_ref (gpointer instance);
-static void timed_queue_element_unref (gpointer instance);
-static GParamSpec* timed_queue_param_spec_element (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void timed_queue_value_set_element (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void timed_queue_value_take_element (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer timed_queue_value_get_element (const GValue* value) G_GNUC_UNUSED;
-static GType timed_queue_element_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define TIMED_QUEUE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TIMED_QUEUE, TimedQueuePrivate))
-TimedQueue* timed_queue_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority);
-TimedQueue* timed_queue_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority);
-static gint64 timed_queue_element_comparator (void* a,
- void* b);
-static gint64 _timed_queue_element_comparator_comparator (void* a,
- void* b,
- gpointer self);
-SortedList* sorted_list_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-SortedList* sorted_list_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-static guint timed_queue_get_heartbeat_timeout (TimedQueue* self);
-static gboolean timed_queue_on_heartbeat (TimedQueue* self);
-static gboolean _timed_queue_on_heartbeat_gsource_func (gpointer self);
-guint timed_queue_get_dequeue_spacing_msec (TimedQueue* self);
-void timed_queue_set_dequeue_spacing_msec (TimedQueue* self,
- guint msec);
-void timed_queue_notify_dequeued (TimedQueue* self,
- gconstpointer item);
-static void timed_queue_real_notify_dequeued (TimedQueue* self,
- gconstpointer item);
-gboolean timed_queue_is_paused (TimedQueue* self);
-void timed_queue_pause (TimedQueue* self);
-void timed_queue_unpause (TimedQueue* self);
-void timed_queue_clear (TimedQueue* self);
-static void timed_queue_real_clear (TimedQueue* self);
-gboolean timed_queue_contains (TimedQueue* self,
- gconstpointer item);
-static gboolean timed_queue_real_contains (TimedQueue* self,
- gconstpointer item);
-gboolean timed_queue_enqueue (TimedQueue* self,
- gconstpointer item);
-static gboolean timed_queue_real_enqueue (TimedQueue* self,
- gconstpointer item);
-static gulong timed_queue_calc_ready_time (TimedQueue* self);
-static TimedQueueElement* timed_queue_element_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer item,
- gulong ready);
-static TimedQueueElement* timed_queue_element_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer item,
- gulong ready);
-gboolean timed_queue_enqueue_many (TimedQueue* self,
- GeeCollection* items);
-static gboolean timed_queue_real_enqueue_many (TimedQueue* self,
- GeeCollection* items);
-gboolean sorted_list_add_list (SortedList* self,
- GeeList* items);
-gboolean timed_queue_remove_first (TimedQueue* self,
- gconstpointer item);
-static gboolean timed_queue_real_remove_first (TimedQueue* self,
- gconstpointer item);
-gulong now_ms (void);
-gpointer sorted_list_get_at (SortedList* self,
- gint index);
-gpointer sorted_list_remove_at (SortedList* self,
- gint index);
-gint timed_queue_get_size (TimedQueue* self);
-static void timed_queue_real_paused (TimedQueue* self,
- gboolean is_paused);
-#define TIMED_QUEUE_ELEMENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElementPrivate))
-static void timed_queue_element_finalize (TimedQueueElement * obj);
-static void timed_queue_finalize (TimedQueue * obj);
-GType hash_timed_queue_get_type (void) G_GNUC_CONST;
-#define HASH_TIMED_QUEUE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HASH_TIMED_QUEUE, HashTimedQueuePrivate))
-HashTimedQueue* hash_timed_queue_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeHashDataFunc hash_func,
- void* hash_func_target,
- GDestroyNotify hash_func_target_destroy_notify,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority);
-HashTimedQueue* hash_timed_queue_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeHashDataFunc hash_func,
- void* hash_func_target,
- GDestroyNotify hash_func_target_destroy_notify,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority);
-static void hash_timed_queue_real_notify_dequeued (TimedQueue* base,
- gconstpointer item);
-static void hash_timed_queue_removed (HashTimedQueue* self,
- gconstpointer item);
-static void hash_timed_queue_real_clear (TimedQueue* base);
-static gboolean hash_timed_queue_real_contains (TimedQueue* base,
- gconstpointer item);
-static gboolean hash_timed_queue_real_enqueue (TimedQueue* base,
- gconstpointer item);
-static gboolean hash_timed_queue_real_enqueue_many (TimedQueue* base,
- GeeCollection* items);
-static gboolean hash_timed_queue_real_remove_first (TimedQueue* base,
- gconstpointer item);
-static void hash_timed_queue_finalize (TimedQueue * obj);
-
-
-static gint64
-_timed_queue_element_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = timed_queue_element_comparator (a, b);
-#line 64 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 348 "TimedQueue.c"
-}
-
-
-static gboolean
-_timed_queue_on_heartbeat_gsource_func (gpointer self)
-{
- gboolean result;
- result = timed_queue_on_heartbeat ((TimedQueue*) self);
-#line 66 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 359 "TimedQueue.c"
-}
-
-
-TimedQueue*
-timed_queue_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority)
-{
- TimedQueue* self = NULL;
- SortedList* _tmp4_;
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = (TimedQueue*) g_type_create_instance (object_type);
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_type = g_type;
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_dup_func = g_dup_func;
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_destroy_func = g_destroy_func;
-#line 54 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->hold_msec = hold_msec;
-#line 55 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->callback = callback;
-#line 55 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->callback_target = callback_target;
-#line 57 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (equal_func != NULL) {
-#line 394 "TimedQueue.c"
- GeeEqualDataFunc _tmp0_;
- void* _tmp0__target;
- GDestroyNotify _tmp0__target_destroy_notify;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = equal_func;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0__target = equal_func_target;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0__target_destroy_notify = equal_func_target_destroy_notify;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func = NULL;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target = NULL;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target_destroy_notify = NULL;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- (self->priv->equal_func_target_destroy_notify == NULL) ? NULL : (self->priv->equal_func_target_destroy_notify (self->priv->equal_func_target), NULL);
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func = NULL;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target = NULL;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target_destroy_notify = NULL;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func = _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target = _tmp0__target;
-#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target_destroy_notify = _tmp0__target_destroy_notify;
-#line 424 "TimedQueue.c"
- } else {
- void* _tmp1_;
- GDestroyNotify _tmp2_;
- GeeEqualDataFunc _tmp3_;
-#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = gee_functions_get_equal_func_for (g_type, &_tmp1_, &_tmp2_);
-#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- (self->priv->equal_func_target_destroy_notify == NULL) ? NULL : (self->priv->equal_func_target_destroy_notify (self->priv->equal_func_target), NULL);
-#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func = NULL;
-#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target = NULL;
-#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target_destroy_notify = NULL;
-#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func = (GeeEqualDataFunc) _tmp3_;
-#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target = _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target_destroy_notify = _tmp2_;
-#line 445 "TimedQueue.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->priority = priority;
-#line 64 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = sorted_list_new (TIMED_QUEUE_TYPE_ELEMENT, (GBoxedCopyFunc) timed_queue_element_ref, (GDestroyNotify) timed_queue_element_unref, _timed_queue_element_comparator_comparator, NULL);
-#line 64 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (self->priv->queue);
-#line 64 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->queue = _tmp4_;
-#line 66 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->timer_id = g_timeout_add_full (priority, timed_queue_get_heartbeat_timeout (self), _timed_queue_on_heartbeat_gsource_func, timed_queue_ref (self), timed_queue_unref);
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- (equal_func_target_destroy_notify == NULL) ? NULL : (equal_func_target_destroy_notify (equal_func_target), NULL);
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func = NULL;
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target = NULL;
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target_destroy_notify = NULL;
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return self;
-#line 467 "TimedQueue.c"
-}
-
-
-TimedQueue*
-timed_queue_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority)
-{
-#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return timed_queue_construct (TYPE_TIMED_QUEUE, g_type, g_dup_func, g_destroy_func, hold_msec, callback, callback_target, equal_func, equal_func_target, equal_func_target_destroy_notify, priority);
-#line 485 "TimedQueue.c"
-}
-
-
-guint
-timed_queue_get_dequeue_spacing_msec (TimedQueue* self)
-{
- guint result = 0U;
- guint _tmp0_;
-#line 74 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), 0U);
-#line 75 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->dequeue_spacing_msec;
-#line 75 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 502 "TimedQueue.c"
-}
-
-
-void
-timed_queue_set_dequeue_spacing_msec (TimedQueue* self,
- guint msec)
-{
- guint _tmp0_;
- guint _tmp1_;
- gint _tmp3_;
-#line 78 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (IS_TIMED_QUEUE (self));
-#line 79 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->dequeue_spacing_msec;
-#line 79 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (msec == _tmp0_) {
-#line 80 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return;
-#line 521 "TimedQueue.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = self->priv->timer_id;
-#line 82 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp1_ != ((guint) 0)) {
-#line 527 "TimedQueue.c"
- guint _tmp2_;
-#line 83 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = self->priv->timer_id;
-#line 83 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_source_remove (_tmp2_);
-#line 533 "TimedQueue.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->dequeue_spacing_msec = msec;
-#line 87 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = self->priv->priority;
-#line 87 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->timer_id = g_timeout_add_full (_tmp3_, timed_queue_get_heartbeat_timeout (self), _timed_queue_on_heartbeat_gsource_func, timed_queue_ref (self), timed_queue_unref);
-#line 541 "TimedQueue.c"
-}
-
-
-static guint
-timed_queue_get_heartbeat_timeout (TimedQueue* self)
-{
- guint result = 0U;
- guint _tmp0_ = 0U;
- guint _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), 0U);
-#line 91 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = self->priv->dequeue_spacing_msec;
-#line 91 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp1_ == ((guint) 0)) {
-#line 557 "TimedQueue.c"
- guint _tmp2_;
-#line 92 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = self->priv->hold_msec;
-#line 92 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = _tmp2_ / 10;
-#line 563 "TimedQueue.c"
- } else {
- guint _tmp3_;
-#line 93 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = self->priv->dequeue_spacing_msec;
-#line 93 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = _tmp3_ / 2;
-#line 570 "TimedQueue.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = CLAMP (_tmp0_, (guint) 10, G_MAXUINT);
-#line 91 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 576 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_real_notify_dequeued (TimedQueue* self,
- gconstpointer item)
-{
- DequeuedCallback _tmp0_;
- void* _tmp0__target;
-#line 97 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->callback;
-#line 97 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0__target = self->priv->callback_target;
-#line 97 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ (item, _tmp0__target);
-#line 592 "TimedQueue.c"
-}
-
-
-void
-timed_queue_notify_dequeued (TimedQueue* self,
- gconstpointer item)
-{
-#line 96 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (IS_TIMED_QUEUE (self));
-#line 96 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- TIMED_QUEUE_GET_CLASS (self)->notify_dequeued (self, item);
-#line 604 "TimedQueue.c"
-}
-
-
-gboolean
-timed_queue_is_paused (TimedQueue* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 100 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE);
-#line 101 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->paused_state;
-#line 101 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 621 "TimedQueue.c"
-}
-
-
-void
-timed_queue_pause (TimedQueue* self)
-{
- gboolean _tmp0_;
-#line 104 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (IS_TIMED_QUEUE (self));
-#line 105 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->paused_state;
-#line 105 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp0_) {
-#line 106 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return;
-#line 637 "TimedQueue.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->paused_state = TRUE;
-#line 110 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_signal_emit (self, timed_queue_signals[TIMED_QUEUE_PAUSED_SIGNAL], 0, TRUE);
-#line 643 "TimedQueue.c"
-}
-
-
-void
-timed_queue_unpause (TimedQueue* self)
-{
- gboolean _tmp0_;
-#line 113 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (IS_TIMED_QUEUE (self));
-#line 114 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->paused_state;
-#line 114 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!_tmp0_) {
-#line 115 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return;
-#line 659 "TimedQueue.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->paused_state = FALSE;
-#line 119 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_signal_emit (self, timed_queue_signals[TIMED_QUEUE_PAUSED_SIGNAL], 0, FALSE);
-#line 665 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_real_clear (TimedQueue* self)
-{
- SortedList* _tmp0_;
-#line 123 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->queue;
-#line 123 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 677 "TimedQueue.c"
-}
-
-
-void
-timed_queue_clear (TimedQueue* self)
-{
-#line 122 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (IS_TIMED_QUEUE (self));
-#line 122 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- TIMED_QUEUE_GET_CLASS (self)->clear (self);
-#line 688 "TimedQueue.c"
-}
-
-
-static gboolean
-timed_queue_real_contains (TimedQueue* self,
- gconstpointer item)
-{
- gboolean result = FALSE;
- {
- GeeIterator* _e_it = NULL;
- SortedList* _tmp0_;
- GeeIterator* _tmp1_;
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->queue;
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _e_it = _tmp1_;
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- while (TRUE) {
-#line 709 "TimedQueue.c"
- GeeIterator* _tmp2_;
- TimedQueueElement* e = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeEqualDataFunc _tmp5_;
- void* _tmp5__target;
- TimedQueueElement* _tmp6_;
- gconstpointer _tmp7_;
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = _e_it;
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- break;
-#line 724 "TimedQueue.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = _e_it;
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- e = (TimedQueueElement*) _tmp4_;
-#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp5_ = self->priv->equal_func;
-#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp5__target = self->priv->equal_func_target;
-#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp6_ = e;
-#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp7_ = _tmp6_->item;
-#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp5_ (item, _tmp7_, _tmp5__target)) {
-#line 129 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = TRUE;
-#line 129 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (e);
-#line 129 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (_e_it);
-#line 129 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 750 "TimedQueue.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (e);
-#line 754 "TimedQueue.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (_e_it);
-#line 758 "TimedQueue.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = FALSE;
-#line 132 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 764 "TimedQueue.c"
-}
-
-
-gboolean
-timed_queue_contains (TimedQueue* self,
- gconstpointer item)
-{
-#line 126 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE);
-#line 126 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return TIMED_QUEUE_GET_CLASS (self)->contains (self, item);
-#line 776 "TimedQueue.c"
-}
-
-
-static gboolean
-timed_queue_real_enqueue (TimedQueue* self,
- gconstpointer item)
-{
- gboolean result = FALSE;
- SortedList* _tmp0_;
- TimedQueueElement* _tmp1_;
- TimedQueueElement* _tmp2_;
- gboolean _tmp3_;
-#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->queue;
-#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = timed_queue_element_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, item, timed_queue_calc_ready_time (self));
-#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = _tmp1_;
-#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), _tmp2_);
-#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (_tmp2_);
-#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = _tmp3_;
-#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 803 "TimedQueue.c"
-}
-
-
-gboolean
-timed_queue_enqueue (TimedQueue* self,
- gconstpointer item)
-{
-#line 135 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE);
-#line 135 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return TIMED_QUEUE_GET_CLASS (self)->enqueue (self, item);
-#line 815 "TimedQueue.c"
-}
-
-
-static gboolean
-timed_queue_real_enqueue_many (TimedQueue* self,
- GeeCollection* items)
-{
- gboolean result = FALSE;
- gulong ready_time = 0UL;
- GeeArrayList* elements = NULL;
- GeeArrayList* _tmp0_;
- SortedList* _tmp10_;
- GeeArrayList* _tmp11_;
-#line 139 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (items), FALSE);
-#line 140 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ready_time = timed_queue_calc_ready_time (self);
-#line 142 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = gee_array_list_new (TIMED_QUEUE_TYPE_ELEMENT, (GBoxedCopyFunc) timed_queue_element_ref, (GDestroyNotify) timed_queue_element_unref, NULL, NULL, NULL);
-#line 142 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- elements = _tmp0_;
-#line 837 "TimedQueue.c"
- {
- GeeIterator* _item_it = NULL;
- GeeIterator* _tmp1_;
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_ITERABLE, GeeIterable));
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _item_it = _tmp1_;
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- while (TRUE) {
-#line 847 "TimedQueue.c"
- GeeIterator* _tmp2_;
- gpointer item = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeArrayList* _tmp5_;
- gconstpointer _tmp6_;
- gulong _tmp7_;
- TimedQueueElement* _tmp8_;
- TimedQueueElement* _tmp9_;
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = _item_it;
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- break;
-#line 863 "TimedQueue.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = _item_it;
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- item = _tmp4_;
-#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp5_ = elements;
-#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp6_ = item;
-#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp7_ = ready_time;
-#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp8_ = timed_queue_element_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, _tmp6_, _tmp7_);
-#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp9_ = _tmp8_;
-#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_);
-#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (_tmp9_);
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL));
-#line 887 "TimedQueue.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (_item_it);
-#line 891 "TimedQueue.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp10_ = self->priv->queue;
-#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp11_ = elements;
-#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = sorted_list_add_list (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_LIST, GeeList));
-#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (elements);
-#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 903 "TimedQueue.c"
-}
-
-
-gboolean
-timed_queue_enqueue_many (TimedQueue* self,
- GeeCollection* items)
-{
-#line 139 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE);
-#line 139 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return TIMED_QUEUE_GET_CLASS (self)->enqueue_many (self, items);
-#line 915 "TimedQueue.c"
-}
-
-
-static gboolean
-timed_queue_real_remove_first (TimedQueue* self,
- gconstpointer item)
-{
- gboolean result = FALSE;
- GeeIterator* iter = NULL;
- SortedList* _tmp0_;
- GeeIterator* _tmp1_;
-#line 150 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->queue;
-#line 150 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 150 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- iter = _tmp1_;
-#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- while (TRUE) {
-#line 935 "TimedQueue.c"
- GeeIterator* _tmp2_;
- TimedQueueElement* e = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeEqualDataFunc _tmp5_;
- void* _tmp5__target;
- TimedQueueElement* _tmp6_;
- gconstpointer _tmp7_;
-#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = iter;
-#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- break;
-#line 950 "TimedQueue.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = iter;
-#line 152 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 152 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- e = (TimedQueueElement*) _tmp4_;
-#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp5_ = self->priv->equal_func;
-#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp5__target = self->priv->equal_func_target;
-#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp6_ = e;
-#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp7_ = _tmp6_->item;
-#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp5_ (item, _tmp7_, _tmp5__target)) {
-#line 968 "TimedQueue.c"
- GeeIterator* _tmp8_;
-#line 154 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp8_ = iter;
-#line 154 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- gee_iterator_remove (_tmp8_);
-#line 156 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = TRUE;
-#line 156 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (e);
-#line 156 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (iter);
-#line 156 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 982 "TimedQueue.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (e);
-#line 986 "TimedQueue.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = FALSE;
-#line 160 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (iter);
-#line 160 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 994 "TimedQueue.c"
-}
-
-
-gboolean
-timed_queue_remove_first (TimedQueue* self,
- gconstpointer item)
-{
-#line 149 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE);
-#line 149 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return TIMED_QUEUE_GET_CLASS (self)->remove_first (self, item);
-#line 1006 "TimedQueue.c"
-}
-
-
-static gulong
-timed_queue_calc_ready_time (TimedQueue* self)
-{
- gulong result = 0UL;
- guint _tmp0_;
-#line 169 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), 0UL);
-#line 170 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->hold_msec;
-#line 170 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = now_ms () + ((gulong) _tmp0_);
-#line 170 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 1023 "TimedQueue.c"
-}
-
-
-static gboolean
-timed_queue_on_heartbeat (TimedQueue* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- gulong now = 0UL;
-#line 173 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE);
-#line 174 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->paused_state;
-#line 174 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp0_) {
-#line 175 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = TRUE;
-#line 175 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 1043 "TimedQueue.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- now = (gulong) 0;
-#line 1047 "TimedQueue.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = TRUE;
-#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- while (TRUE) {
-#line 1054 "TimedQueue.c"
- SortedList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- TimedQueueElement* head = NULL;
- SortedList* _tmp5_;
- gpointer _tmp6_;
- TimedQueueElement* _tmp7_;
- gulong _tmp8_;
- TimedQueueElement* _tmp9_;
- gulong _tmp10_;
- gulong _tmp11_;
- gboolean _tmp12_ = FALSE;
- guint _tmp13_;
- TimedQueueElement* h = NULL;
- SortedList* _tmp17_;
- gpointer _tmp18_;
- TimedQueueElement* _tmp19_;
- TimedQueueElement* _tmp20_;
- TimedQueueElement* _tmp21_;
- gconstpointer _tmp22_;
- gulong _tmp23_;
- guint _tmp24_;
-#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!_tmp1_) {
-#line 1079 "TimedQueue.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = FALSE;
-#line 180 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = self->priv->queue;
-#line 180 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 180 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = _tmp3_;
-#line 180 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp4_ == 0) {
-#line 181 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- break;
-#line 1093 "TimedQueue.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp5_ = self->priv->queue;
-#line 183 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp6_ = sorted_list_get_at (_tmp5_, 0);
-#line 183 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- head = (TimedQueueElement*) _tmp6_;
-#line 184 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp7_ = head;
-#line 184 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _vala_assert (_tmp7_ != NULL, "head != null");
-#line 186 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp8_ = now;
-#line 186 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp8_ == ((gulong) 0)) {
-#line 187 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- now = now_ms ();
-#line 1111 "TimedQueue.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp9_ = head;
-#line 189 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp10_ = _tmp9_->ready;
-#line 189 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp11_ = now;
-#line 189 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp10_ > _tmp11_) {
-#line 190 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (head);
-#line 190 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- break;
-#line 1125 "TimedQueue.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp13_ = self->priv->dequeue_spacing_msec;
-#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp13_ != ((guint) 0)) {
-#line 1131 "TimedQueue.c"
- gulong _tmp14_;
- gulong _tmp15_;
- guint _tmp16_;
-#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp14_ = now;
-#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp15_ = self->priv->last_dequeue;
-#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp16_ = self->priv->dequeue_spacing_msec;
-#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp12_ = (_tmp14_ - _tmp15_) < ((gulong) _tmp16_);
-#line 1143 "TimedQueue.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp12_ = FALSE;
-#line 1147 "TimedQueue.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp12_) {
-#line 194 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (head);
-#line 194 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- break;
-#line 1155 "TimedQueue.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp17_ = self->priv->queue;
-#line 196 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp18_ = sorted_list_remove_at (_tmp17_, 0);
-#line 196 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- h = (TimedQueueElement*) _tmp18_;
-#line 197 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp19_ = head;
-#line 197 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp20_ = h;
-#line 197 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _vala_assert (_tmp19_ == _tmp20_, "head == h");
-#line 199 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp21_ = head;
-#line 199 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp22_ = _tmp21_->item;
-#line 199 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_notify_dequeued (self, _tmp22_);
-#line 200 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp23_ = now;
-#line 200 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->last_dequeue = _tmp23_;
-#line 204 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp24_ = self->priv->dequeue_spacing_msec;
-#line 204 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp24_ != ((guint) 0)) {
-#line 205 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (h);
-#line 205 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (head);
-#line 205 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- break;
-#line 1189 "TimedQueue.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (h);
-#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _timed_queue_element_unref0 (head);
-#line 1195 "TimedQueue.c"
- }
- }
-#line 208 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = TRUE;
-#line 208 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 1202 "TimedQueue.c"
-}
-
-
-gint
-timed_queue_get_size (TimedQueue* self)
-{
-#line 164 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (IS_TIMED_QUEUE (self), 0);
-#line 164 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return TIMED_QUEUE_GET_CLASS (self)->get_size (self);
-#line 1213 "TimedQueue.c"
-}
-
-
-static gint
-timed_queue_real_get_size (TimedQueue* base)
-{
- gint result;
- TimedQueue* self;
- SortedList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 164 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = base;
-#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->queue;
-#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = _tmp1_;
-#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = _tmp2_;
-#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 1237 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_real_paused (TimedQueue* self,
- gboolean is_paused)
-{
-}
-
-
-static TimedQueueElement*
-timed_queue_element_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer item,
- gulong ready)
-{
- TimedQueueElement* self = NULL;
- gpointer _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = (TimedQueueElement*) g_type_create_instance (object_type);
-#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_type = g_type;
-#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_dup_func = g_dup_func;
-#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_destroy_func = g_destroy_func;
-#line 27 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = ((item != NULL) && (g_dup_func != NULL)) ? g_dup_func ((gpointer) item) : ((gpointer) item);
-#line 27 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_destroy_func0 (self->item);
-#line 27 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->item = _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->ready = ready;
-#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return self;
-#line 1276 "TimedQueue.c"
-}
-
-
-static TimedQueueElement*
-timed_queue_element_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer item,
- gulong ready)
-{
-#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return timed_queue_element_construct (TIMED_QUEUE_TYPE_ELEMENT, g_type, g_dup_func, g_destroy_func, item, ready);
-#line 1289 "TimedQueue.c"
-}
-
-
-static gint64
-timed_queue_element_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gulong _tmp0_;
- gulong _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((TimedQueueElement*) a, TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElement)->ready;
-#line 32 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((TimedQueueElement*) b, TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElement)->ready;
-#line 32 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = ((gint64) _tmp0_) - ((gint64) _tmp1_);
-#line 32 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 1308 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_value_element_init (GValue* value)
-{
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = NULL;
-#line 1317 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_value_element_free_value (GValue* value)
-{
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (value->data[0].v_pointer) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_element_unref (value->data[0].v_pointer);
-#line 1328 "TimedQueue.c"
- }
-}
-
-
-static void
-timed_queue_value_element_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (src_value->data[0].v_pointer) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- dest_value->data[0].v_pointer = timed_queue_element_ref (src_value->data[0].v_pointer);
-#line 1341 "TimedQueue.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1345 "TimedQueue.c"
- }
-}
-
-
-static gpointer
-timed_queue_value_element_peek_pointer (const GValue* value)
-{
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return value->data[0].v_pointer;
-#line 1355 "TimedQueue.c"
-}
-
-
-static gchar*
-timed_queue_value_element_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (collect_values[0].v_pointer) {
-#line 1367 "TimedQueue.c"
- TimedQueueElement * object;
- object = collect_values[0].v_pointer;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1374 "TimedQueue.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.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 1378 "TimedQueue.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = timed_queue_element_ref (object);
-#line 1382 "TimedQueue.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = NULL;
-#line 1386 "TimedQueue.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return NULL;
-#line 1390 "TimedQueue.c"
-}
-
-
-static gchar*
-timed_queue_value_element_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TimedQueueElement ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!object_p) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1406 "TimedQueue.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!value->data[0].v_pointer) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- *object_p = NULL;
-#line 1412 "TimedQueue.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- *object_p = value->data[0].v_pointer;
-#line 1416 "TimedQueue.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- *object_p = timed_queue_element_ref (value->data[0].v_pointer);
-#line 1420 "TimedQueue.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return NULL;
-#line 1424 "TimedQueue.c"
-}
-
-
-static GParamSpec*
-timed_queue_param_spec_element (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- TimedQueueParamSpecElement* spec;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TIMED_QUEUE_TYPE_ELEMENT), NULL);
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return G_PARAM_SPEC (spec);
-#line 1444 "TimedQueue.c"
-}
-
-
-static gpointer
-timed_queue_value_get_element (const GValue* value)
-{
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TIMED_QUEUE_TYPE_ELEMENT), NULL);
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return value->data[0].v_pointer;
-#line 1455 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_value_set_element (GValue* value,
- gpointer v_object)
-{
- TimedQueueElement * old;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TIMED_QUEUE_TYPE_ELEMENT));
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- old = value->data[0].v_pointer;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (v_object) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TIMED_QUEUE_TYPE_ELEMENT));
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = v_object;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_element_ref (value->data[0].v_pointer);
-#line 1478 "TimedQueue.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = NULL;
-#line 1482 "TimedQueue.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (old) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_element_unref (old);
-#line 1488 "TimedQueue.c"
- }
-}
-
-
-static void
-timed_queue_value_take_element (GValue* value,
- gpointer v_object)
-{
- TimedQueueElement * old;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TIMED_QUEUE_TYPE_ELEMENT));
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- old = value->data[0].v_pointer;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (v_object) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TIMED_QUEUE_TYPE_ELEMENT));
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = v_object;
-#line 1510 "TimedQueue.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = NULL;
-#line 1514 "TimedQueue.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (old) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_element_unref (old);
-#line 1520 "TimedQueue.c"
- }
-}
-
-
-static void
-timed_queue_element_class_init (TimedQueueElementClass * klass)
-{
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_element_parent_class = g_type_class_peek_parent (klass);
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueElementClass *) klass)->finalize = timed_queue_element_finalize;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_type_class_add_private (klass, sizeof (TimedQueueElementPrivate));
-#line 1534 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_element_instance_init (TimedQueueElement * self)
-{
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv = TIMED_QUEUE_ELEMENT_GET_PRIVATE (self);
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->ref_count = 1;
-#line 1545 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_element_finalize (TimedQueueElement * obj)
-{
- TimedQueueElement * self;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElement);
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_signal_handlers_destroy (self);
-#line 23 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((self->item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->item = (self->priv->g_destroy_func (self->item), NULL));
-#line 1559 "TimedQueue.c"
-}
-
-
-static GType
-timed_queue_element_get_type (void)
-{
- static volatile gsize timed_queue_element_type_id__volatile = 0;
- if (g_once_init_enter (&timed_queue_element_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { timed_queue_value_element_init, timed_queue_value_element_free_value, timed_queue_value_element_copy_value, timed_queue_value_element_peek_pointer, "p", timed_queue_value_element_collect_value, "p", timed_queue_value_element_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TimedQueueElementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) timed_queue_element_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TimedQueueElement), 0, (GInstanceInitFunc) timed_queue_element_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType timed_queue_element_type_id;
- timed_queue_element_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TimedQueueElement", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&timed_queue_element_type_id__volatile, timed_queue_element_type_id);
- }
- return timed_queue_element_type_id__volatile;
-}
-
-
-static gpointer
-timed_queue_element_ref (gpointer instance)
-{
- TimedQueueElement * self;
- self = instance;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return instance;
-#line 1588 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_element_unref (gpointer instance)
-{
- TimedQueueElement * self;
- self = instance;
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- TIMED_QUEUE_ELEMENT_GET_CLASS (self)->finalize (self);
-#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1603 "TimedQueue.c"
- }
-}
-
-
-static void
-value_timed_queue_init (GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = NULL;
-#line 1613 "TimedQueue.c"
-}
-
-
-static void
-value_timed_queue_free_value (GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_unref (value->data[0].v_pointer);
-#line 1624 "TimedQueue.c"
- }
-}
-
-
-static void
-value_timed_queue_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (src_value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- dest_value->data[0].v_pointer = timed_queue_ref (src_value->data[0].v_pointer);
-#line 1637 "TimedQueue.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1641 "TimedQueue.c"
- }
-}
-
-
-static gpointer
-value_timed_queue_peek_pointer (const GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return value->data[0].v_pointer;
-#line 1651 "TimedQueue.c"
-}
-
-
-static gchar*
-value_timed_queue_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (collect_values[0].v_pointer) {
-#line 1663 "TimedQueue.c"
- TimedQueue * object;
- object = collect_values[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1670 "TimedQueue.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.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 1674 "TimedQueue.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = timed_queue_ref (object);
-#line 1678 "TimedQueue.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = NULL;
-#line 1682 "TimedQueue.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return NULL;
-#line 1686 "TimedQueue.c"
-}
-
-
-static gchar*
-value_timed_queue_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TimedQueue ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!object_p) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1702 "TimedQueue.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- *object_p = NULL;
-#line 1708 "TimedQueue.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- *object_p = value->data[0].v_pointer;
-#line 1712 "TimedQueue.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- *object_p = timed_queue_ref (value->data[0].v_pointer);
-#line 1716 "TimedQueue.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return NULL;
-#line 1720 "TimedQueue.c"
-}
-
-
-GParamSpec*
-param_spec_timed_queue (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTimedQueue* spec;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TIMED_QUEUE), NULL);
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return G_PARAM_SPEC (spec);
-#line 1740 "TimedQueue.c"
-}
-
-
-gpointer
-value_get_timed_queue (const GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TIMED_QUEUE), NULL);
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return value->data[0].v_pointer;
-#line 1751 "TimedQueue.c"
-}
-
-
-void
-value_set_timed_queue (GValue* value,
- gpointer v_object)
-{
- TimedQueue * old;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TIMED_QUEUE));
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- old = value->data[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (v_object) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TIMED_QUEUE));
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = v_object;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_ref (value->data[0].v_pointer);
-#line 1774 "TimedQueue.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = NULL;
-#line 1778 "TimedQueue.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (old) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_unref (old);
-#line 1784 "TimedQueue.c"
- }
-}
-
-
-void
-value_take_timed_queue (GValue* value,
- gpointer v_object)
-{
- TimedQueue * old;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TIMED_QUEUE));
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- old = value->data[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (v_object) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TIMED_QUEUE));
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = v_object;
-#line 1806 "TimedQueue.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- value->data[0].v_pointer = NULL;
-#line 1810 "TimedQueue.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (old) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_unref (old);
-#line 1816 "TimedQueue.c"
- }
-}
-
-
-static void
-timed_queue_class_init (TimedQueueClass * klass)
-{
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_parent_class = g_type_class_peek_parent (klass);
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->finalize = timed_queue_finalize;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_type_class_add_private (klass, sizeof (TimedQueuePrivate));
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->notify_dequeued = (void (*) (TimedQueue *, gconstpointer)) timed_queue_real_notify_dequeued;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->clear = (void (*) (TimedQueue *)) timed_queue_real_clear;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->contains = (gboolean (*) (TimedQueue *, gconstpointer)) timed_queue_real_contains;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->enqueue = (gboolean (*) (TimedQueue *, gconstpointer)) timed_queue_real_enqueue;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->enqueue_many = (gboolean (*) (TimedQueue *, GeeCollection*)) timed_queue_real_enqueue_many;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->remove_first = (gboolean (*) (TimedQueue *, gconstpointer)) timed_queue_real_remove_first;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->paused = timed_queue_real_paused;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- TIMED_QUEUE_CLASS (klass)->get_size = timed_queue_real_get_size;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- timed_queue_signals[TIMED_QUEUE_PAUSED_SIGNAL] = g_signal_new ("paused", TYPE_TIMED_QUEUE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (TimedQueueClass, paused), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 1848 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_instance_init (TimedQueue * self)
-{
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv = TIMED_QUEUE_GET_PRIVATE (self);
-#line 40 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->timer_id = (guint) 0;
-#line 42 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->dequeue_spacing_msec = (guint) 0;
-#line 43 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->last_dequeue = (gulong) 0;
-#line 44 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->paused_state = FALSE;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->ref_count = 1;
-#line 1867 "TimedQueue.c"
-}
-
-
-static void
-timed_queue_finalize (TimedQueue * obj)
-{
- TimedQueue * self;
- guint _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TIMED_QUEUE, TimedQueue);
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_signal_handlers_destroy (self);
-#line 70 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->timer_id;
-#line 70 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp0_ != ((guint) 0)) {
-#line 1884 "TimedQueue.c"
- guint _tmp1_;
-#line 71 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = self->priv->timer_id;
-#line 71 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_source_remove (_tmp1_);
-#line 1890 "TimedQueue.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- (self->priv->equal_func_target_destroy_notify == NULL) ? NULL : (self->priv->equal_func_target_destroy_notify (self->priv->equal_func_target), NULL);
-#line 38 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func = NULL;
-#line 38 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target = NULL;
-#line 38 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->equal_func_target_destroy_notify = NULL;
-#line 41 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (self->priv->queue);
-#line 1902 "TimedQueue.c"
-}
-
-
-GType
-timed_queue_get_type (void)
-{
- static volatile gsize timed_queue_type_id__volatile = 0;
- if (g_once_init_enter (&timed_queue_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_timed_queue_init, value_timed_queue_free_value, value_timed_queue_copy_value, value_timed_queue_peek_pointer, "p", value_timed_queue_collect_value, "p", value_timed_queue_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TimedQueueClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) timed_queue_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TimedQueue), 0, (GInstanceInitFunc) timed_queue_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType timed_queue_type_id;
- timed_queue_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TimedQueue", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&timed_queue_type_id__volatile, timed_queue_type_id);
- }
- return timed_queue_type_id__volatile;
-}
-
-
-gpointer
-timed_queue_ref (gpointer instance)
-{
- TimedQueue * self;
- self = instance;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return instance;
-#line 1931 "TimedQueue.c"
-}
-
-
-void
-timed_queue_unref (gpointer instance)
-{
- TimedQueue * self;
- self = instance;
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- TIMED_QUEUE_GET_CLASS (self)->finalize (self);
-#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1946 "TimedQueue.c"
- }
-}
-
-
-HashTimedQueue*
-hash_timed_queue_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeHashDataFunc hash_func,
- void* hash_func_target,
- GDestroyNotify hash_func_target_destroy_notify,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority)
-{
- HashTimedQueue* self = NULL;
- GeeEqualDataFunc _tmp0_;
- void* _tmp0__target;
- GDestroyNotify _tmp0__target_destroy_notify;
- GeeHashDataFunc _tmp1_;
- void* _tmp1__target;
- GDestroyNotify _tmp1__target_destroy_notify;
- GeeEqualDataFunc _tmp2_;
- void* _tmp2__target;
- GDestroyNotify _tmp2__target_destroy_notify;
- GeeHashMap* _tmp3_;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = equal_func;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0__target = equal_func_target;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0__target_destroy_notify = equal_func_target_destroy_notify;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func = NULL;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target = NULL;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target_destroy_notify = NULL;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = (HashTimedQueue*) timed_queue_construct (object_type, g_type, (GBoxedCopyFunc) g_dup_func, (GDestroyNotify) g_destroy_func, hold_msec, callback, callback_target, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify, priority);
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_type = g_type;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_dup_func = g_dup_func;
-#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->g_destroy_func = g_destroy_func;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = hash_func;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1__target = hash_func_target;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1__target_destroy_notify = hash_func_target_destroy_notify;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_func = NULL;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_func_target = NULL;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_func_target_destroy_notify = NULL;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = equal_func;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2__target = equal_func_target;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2__target_destroy_notify = equal_func_target_destroy_notify;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func = NULL;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target = NULL;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target_destroy_notify = NULL;
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = gee_hash_map_new (g_type, (GBoxedCopyFunc) g_dup_func, (GDestroyNotify) g_destroy_func, G_TYPE_INT, NULL, NULL, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify, _tmp2_, _tmp2__target, _tmp2__target_destroy_notify, NULL, NULL, NULL);
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (self->priv->item_count);
-#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv->item_count = _tmp3_;
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- (hash_func_target_destroy_notify == NULL) ? NULL : (hash_func_target_destroy_notify (hash_func_target), NULL);
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_func = NULL;
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_func_target = NULL;
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_func_target_destroy_notify = NULL;
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- (equal_func_target_destroy_notify == NULL) ? NULL : (equal_func_target_destroy_notify (equal_func_target), NULL);
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func = NULL;
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target = NULL;
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- equal_func_target_destroy_notify = NULL;
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return self;
-#line 2046 "TimedQueue.c"
-}
-
-
-HashTimedQueue*
-hash_timed_queue_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- guint hold_msec,
- DequeuedCallback callback,
- void* callback_target,
- GeeHashDataFunc hash_func,
- void* hash_func_target,
- GDestroyNotify hash_func_target_destroy_notify,
- GeeEqualDataFunc equal_func,
- void* equal_func_target,
- GDestroyNotify equal_func_target_destroy_notify,
- gint priority)
-{
-#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return hash_timed_queue_construct (TYPE_HASH_TIMED_QUEUE, g_type, g_dup_func, g_destroy_func, hold_msec, callback, callback_target, hash_func, hash_func_target, hash_func_target_destroy_notify, equal_func, equal_func_target, equal_func_target_destroy_notify, priority);
-#line 2067 "TimedQueue.c"
-}
-
-
-static void
-hash_timed_queue_real_notify_dequeued (TimedQueue* base,
- gconstpointer item)
-{
- HashTimedQueue * self;
-#line 225 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue);
-#line 226 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_timed_queue_removed (self, item);
-#line 228 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->notify_dequeued (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue), item);
-#line 2082 "TimedQueue.c"
-}
-
-
-static void
-hash_timed_queue_real_clear (TimedQueue* base)
-{
- HashTimedQueue * self;
- GeeHashMap* _tmp0_;
-#line 231 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue);
-#line 232 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->item_count;
-#line 232 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 234 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->clear (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue));
-#line 2099 "TimedQueue.c"
-}
-
-
-static gboolean
-hash_timed_queue_real_contains (TimedQueue* base,
- gconstpointer item)
-{
- HashTimedQueue * self;
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
-#line 237 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue);
-#line 238 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->item_count;
-#line 238 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item);
-#line 238 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 2118 "TimedQueue.c"
-}
-
-
-static gboolean
-hash_timed_queue_real_enqueue (TimedQueue* base,
- gconstpointer item)
-{
- HashTimedQueue * self;
- gboolean result = FALSE;
- gint _tmp0_ = 0;
- GeeHashMap* _tmp1_;
- GeeHashMap* _tmp4_;
-#line 241 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue);
-#line 242 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->enqueue (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue), item)) {
-#line 243 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = FALSE;
-#line 243 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 2139 "TimedQueue.c"
- }
-#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = self->priv->item_count;
-#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item)) {
-#line 2145 "TimedQueue.c"
- GeeHashMap* _tmp2_;
- gpointer _tmp3_;
-#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = self->priv->item_count;
-#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item);
-#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = ((gint) ((gintptr) _tmp3_)) + 1;
-#line 2154 "TimedQueue.c"
- } else {
-#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = 1;
-#line 2158 "TimedQueue.c"
- }
-#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = self->priv->item_count;
-#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item, (gpointer) ((gintptr) _tmp0_));
-#line 247 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = TRUE;
-#line 247 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 2168 "TimedQueue.c"
-}
-
-
-static gboolean
-hash_timed_queue_real_enqueue_many (TimedQueue* base,
- GeeCollection* items)
-{
- HashTimedQueue * self;
- gboolean result = FALSE;
-#line 250 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue);
-#line 250 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (items), FALSE);
-#line 251 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->enqueue_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue), items)) {
-#line 252 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = FALSE;
-#line 252 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 2188 "TimedQueue.c"
- }
- {
- GeeIterator* _item_it = NULL;
- GeeIterator* _tmp0_;
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_ITERABLE, GeeIterable));
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _item_it = _tmp0_;
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- while (TRUE) {
-#line 2199 "TimedQueue.c"
- GeeIterator* _tmp1_;
- gpointer item = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- gint _tmp4_ = 0;
- GeeHashMap* _tmp5_;
- gconstpointer _tmp6_;
- GeeHashMap* _tmp10_;
- gconstpointer _tmp11_;
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = _item_it;
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- break;
-#line 2215 "TimedQueue.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = _item_it;
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- item = _tmp3_;
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp5_ = self->priv->item_count;
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp6_ = item;
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_)) {
-#line 2229 "TimedQueue.c"
- GeeHashMap* _tmp7_;
- gconstpointer _tmp8_;
- gpointer _tmp9_;
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp7_ = self->priv->item_count;
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp8_ = item;
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_);
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = ((gint) ((gintptr) _tmp9_)) + 1;
-#line 2241 "TimedQueue.c"
- } else {
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = 1;
-#line 2245 "TimedQueue.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp10_ = self->priv->item_count;
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp11_ = item;
-#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, (gpointer) ((gintptr) _tmp4_));
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL));
-#line 2255 "TimedQueue.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (_item_it);
-#line 2259 "TimedQueue.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = TRUE;
-#line 257 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 2265 "TimedQueue.c"
-}
-
-
-static gboolean
-hash_timed_queue_real_remove_first (TimedQueue* base,
- gconstpointer item)
-{
- HashTimedQueue * self;
- gboolean result = FALSE;
-#line 260 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue);
-#line 261 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->remove_first (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue), item)) {
-#line 262 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = FALSE;
-#line 262 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 2283 "TimedQueue.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_timed_queue_removed (self, item);
-#line 266 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- result = TRUE;
-#line 266 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return result;
-#line 2291 "TimedQueue.c"
-}
-
-
-static void
-hash_timed_queue_removed (HashTimedQueue* self,
- gconstpointer item)
-{
- GeeHashMap* _tmp0_;
- gint count = 0;
- GeeHashMap* _tmp1_;
- gpointer _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 269 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_return_if_fail (IS_HASH_TIMED_QUEUE (self));
-#line 272 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp0_ = self->priv->item_count;
-#line 272 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item)) {
-#line 273 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- return;
-#line 2314 "TimedQueue.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp1_ = self->priv->item_count;
-#line 275 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item);
-#line 275 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- count = (gint) ((gintptr) _tmp2_);
-#line 276 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp3_ = count;
-#line 276 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _vala_assert (_tmp3_ > 0, "count > 0");
-#line 278 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp4_ = count;
-#line 278 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- count = _tmp4_ - 1;
-#line 278 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp5_ = count;
-#line 278 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- if (_tmp5_ == 0) {
-#line 2334 "TimedQueue.c"
- GeeHashMap* _tmp6_;
-#line 279 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp6_ = self->priv->item_count;
-#line 279 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item, NULL);
-#line 2340 "TimedQueue.c"
- } else {
- GeeHashMap* _tmp7_;
- gint _tmp8_;
-#line 281 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp7_ = self->priv->item_count;
-#line 281 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _tmp8_ = count;
-#line 281 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item, (gpointer) ((gintptr) _tmp8_));
-#line 2350 "TimedQueue.c"
- }
-}
-
-
-static void
-hash_timed_queue_class_init (HashTimedQueueClass * klass)
-{
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- hash_timed_queue_parent_class = g_type_class_peek_parent (klass);
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->finalize = hash_timed_queue_finalize;
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- g_type_class_add_private (klass, sizeof (HashTimedQueuePrivate));
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->notify_dequeued = (void (*) (TimedQueue *, gconstpointer)) hash_timed_queue_real_notify_dequeued;
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->clear = (void (*) (TimedQueue *)) hash_timed_queue_real_clear;
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->contains = (gboolean (*) (TimedQueue *, gconstpointer)) hash_timed_queue_real_contains;
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->enqueue = (gboolean (*) (TimedQueue *, gconstpointer)) hash_timed_queue_real_enqueue;
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->enqueue_many = (gboolean (*) (TimedQueue *, GeeCollection*)) hash_timed_queue_real_enqueue_many;
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- ((TimedQueueClass *) klass)->remove_first = (gboolean (*) (TimedQueue *, gconstpointer)) hash_timed_queue_real_remove_first;
-#line 2376 "TimedQueue.c"
-}
-
-
-static void
-hash_timed_queue_instance_init (HashTimedQueue * self)
-{
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self->priv = HASH_TIMED_QUEUE_GET_PRIVATE (self);
-#line 2385 "TimedQueue.c"
-}
-
-
-static void
-hash_timed_queue_finalize (TimedQueue * obj)
-{
- HashTimedQueue * self;
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HASH_TIMED_QUEUE, HashTimedQueue);
-#line 215 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- _g_object_unref0 (self->priv->item_count);
-#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala"
- TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->finalize (obj);
-#line 2399 "TimedQueue.c"
-}
-
-
-GType
-hash_timed_queue_get_type (void)
-{
- static volatile gsize hash_timed_queue_type_id__volatile = 0;
- if (g_once_init_enter (&hash_timed_queue_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (HashTimedQueueClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hash_timed_queue_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HashTimedQueue), 0, (GInstanceInitFunc) hash_timed_queue_instance_init, NULL };
- GType hash_timed_queue_type_id;
- hash_timed_queue_type_id = g_type_register_static (TYPE_TIMED_QUEUE, "HashTimedQueue", &g_define_type_info, 0);
- g_once_init_leave (&hash_timed_queue_type_id__volatile, hash_timed_queue_type_id);
- }
- return hash_timed_queue_type_id__volatile;
-}
-
-
-
diff --git a/src/Tombstone.c b/src/Tombstone.c
deleted file mode 100644
index 4f221d3..0000000
--- a/src/Tombstone.c
+++ /dev/null
@@ -1,3711 +0,0 @@
-/* Tombstone.c generated by valac 0.40.4, the Vala compiler
- * generated from Tombstone.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <time.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-
-#define TYPE_TOMBSTONE_SOURCE_COLLECTION (tombstone_source_collection_get_type ())
-#define TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection))
-#define TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass))
-#define IS_TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION))
-#define IS_TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION))
-#define TOMBSTONE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass))
-
-typedef struct _TombstoneSourceCollection TombstoneSourceCollection;
-typedef struct _TombstoneSourceCollectionClass TombstoneSourceCollectionClass;
-typedef struct _TombstoneSourceCollectionPrivate TombstoneSourceCollectionPrivate;
-
-#define TYPE_TOMBSTONE (tombstone_get_type ())
-#define TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE, Tombstone))
-#define TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE, TombstoneClass))
-#define IS_TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE))
-#define IS_TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE))
-#define TOMBSTONE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE, TombstoneClass))
-
-typedef struct _Tombstone Tombstone;
-typedef struct _TombstoneClass TombstoneClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_TOMBSTONE_ID (tombstone_id_get_type ())
-typedef struct _TombstoneID TombstoneID;
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ())
-#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor))
-#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR))
-#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR))
-#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-
-typedef struct _DirectoryMonitor DirectoryMonitor;
-typedef struct _DirectoryMonitorClass DirectoryMonitorClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-typedef struct _TombstoneSourceCollectionAsyncScanData TombstoneSourceCollectionAsyncScanData;
-
-#define TYPE_TOMBSTONED_FILE (tombstoned_file_get_type ())
-#define TOMBSTONED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONED_FILE, TombstonedFile))
-#define TOMBSTONED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONED_FILE, TombstonedFileClass))
-#define IS_TOMBSTONED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONED_FILE))
-#define IS_TOMBSTONED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONED_FILE))
-#define TOMBSTONED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONED_FILE, TombstonedFileClass))
-
-typedef struct _TombstonedFile TombstonedFile;
-typedef struct _TombstonedFileClass TombstonedFileClass;
-typedef struct _TombstonedFilePrivate TombstonedFilePrivate;
-typedef struct _ParamSpecTombstonedFile ParamSpecTombstonedFile;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-typedef struct _TombstonePrivate TombstonePrivate;
-
-#define TYPE_TOMBSTONE_ROW (tombstone_row_get_type ())
-#define TOMBSTONE_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_ROW, TombstoneRow))
-#define TOMBSTONE_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_ROW, TombstoneRowClass))
-#define IS_TOMBSTONE_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_ROW))
-#define IS_TOMBSTONE_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_ROW))
-#define TOMBSTONE_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_ROW, TombstoneRowClass))
-
-typedef struct _TombstoneRow TombstoneRow;
-typedef struct _TombstoneRowClass TombstoneRowClass;
-enum {
- TOMBSTONE_0_PROPERTY,
- TOMBSTONE_NUM_PROPERTIES
-};
-static GParamSpec* tombstone_properties[TOMBSTONE_NUM_PROPERTIES];
-
-#define TOMBSTONE_TYPE_REASON (tombstone_reason_get_type ())
-#define _tombstone_row_unref0(var) ((var == NULL) ? NULL : (var = (tombstone_row_unref (var), NULL)))
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_TOMBSTONE_TABLE (tombstone_table_get_type ())
-#define TOMBSTONE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_TABLE, TombstoneTable))
-#define TOMBSTONE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_TABLE, TombstoneTableClass))
-#define IS_TOMBSTONE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_TABLE))
-#define IS_TOMBSTONE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_TABLE))
-#define TOMBSTONE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_TABLE, TombstoneTableClass))
-
-typedef struct _TombstoneTable TombstoneTable;
-typedef struct _TombstoneTableClass TombstoneTableClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-
-#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ())
-#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState))
-#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE))
-#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE))
-#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-
-typedef struct _BackingFileState BackingFileState;
-typedef struct _BackingFileStateClass BackingFileStateClass;
-typedef struct _BackingFileStatePrivate BackingFileStatePrivate;
-#define _tombstoned_file_unref0(var) ((var == NULL) ? NULL : (var = (tombstoned_file_unref (var), NULL)))
-#define _backing_file_state_unref0(var) ((var == NULL) ? NULL : (var = (backing_file_state_unref (var), NULL)))
-typedef struct _TombstoneRowPrivate TombstoneRowPrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _TombstoneSourceCollection {
- DatabaseSourceCollection parent_instance;
- TombstoneSourceCollectionPrivate * priv;
-};
-
-struct _TombstoneSourceCollectionClass {
- DatabaseSourceCollectionClass parent_class;
-};
-
-struct _TombstoneSourceCollectionPrivate {
- GeeHashMap* file_map;
-};
-
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-struct _TombstoneID {
- gint64 id;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _TombstoneSourceCollectionAsyncScanData {
- int _state_;
- GObject* _source_object_;
- GAsyncResult* _res_;
- GTask* _async_result;
- GAsyncReadyCallback _callback_;
- gboolean _task_complete_;
- TombstoneSourceCollection* self;
- DirectoryMonitor* monitor;
- GCancellable* cancellable;
- Marker* marker;
- Marker* _tmp0_;
- GeeIterator* _object_it;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
- DataObject* object;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Tombstone* tombstone;
- DataObject* _tmp8_;
- Tombstone* _tmp9_;
- GFile* file;
- Tombstone* _tmp10_;
- GFile* _tmp11_;
- GFileInfo* info;
- GFile* _tmp12_;
- GFileInfo* _tmp13_;
- GFileInfo* _tmp14_;
- GFileInfo* _tmp15_;
- GFile* _tmp16_;
- GFileInfo* _tmp17_;
- GFileInfo* _tmp18_;
- GError* err;
- GError* _tmp19_;
- GError* _tmp20_;
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GError* _tmp24_;
- const gchar* _tmp25_;
- GFileInfo* _tmp26_;
- Marker* _tmp27_;
- Tombstone* _tmp28_;
- Marker* _tmp29_;
- Marker* _tmp30_;
- Marker* _tmp31_;
- GError* err2;
- GError* _tmp32_;
- GError * _inner_error_;
-};
-
-struct _TombstonedFile {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TombstonedFilePrivate * priv;
- GFile* file;
- gint64 filesize;
- gchar* md5;
-};
-
-struct _TombstonedFileClass {
- GTypeClass parent_class;
- void (*finalize) (TombstonedFile *self);
-};
-
-struct _ParamSpecTombstonedFile {
- GParamSpec parent_instance;
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-struct _Tombstone {
- DataSource parent_instance;
- TombstonePrivate * priv;
-};
-
-struct _TombstoneClass {
- DataSourceClass parent_class;
-};
-
-struct _TombstonePrivate {
- TombstoneRow* row;
- GFile* file;
-};
-
-typedef enum {
- TOMBSTONE_REASON_REMOVED_BY_USER = 0,
- TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE = 1
-} TombstoneReason;
-
-struct _BackingFileState {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingFileStatePrivate * priv;
- gchar* filepath;
- gint64 filesize;
- time_t modification_time;
- gchar* md5;
-};
-
-struct _BackingFileStateClass {
- GTypeClass parent_class;
- void (*finalize) (BackingFileState *self);
-};
-
-struct _TombstoneRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TombstoneRowPrivate * priv;
- TombstoneID id;
- gchar* filepath;
- gint64 filesize;
- gchar* md5;
- time_t time_created;
- TombstoneReason reason;
-};
-
-struct _TombstoneRowClass {
- GTypeClass parent_class;
- void (*finalize) (TombstoneRow *self);
-};
-
-
-static gpointer tombstone_source_collection_parent_class = NULL;
-static gpointer tombstoned_file_parent_class = NULL;
-static gpointer tombstone_parent_class = NULL;
-extern TombstoneSourceCollection* tombstone_global;
-TombstoneSourceCollection* tombstone_global = NULL;
-
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType tombstone_source_collection_get_type (void) G_GNUC_CONST;
-GType tombstone_get_type (void) G_GNUC_CONST;
-#define TOMBSTONE_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionPrivate))
-guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean file_equal (GFile* a,
- GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-TombstoneSourceCollection* tombstone_source_collection_new (void);
-TombstoneSourceCollection* tombstone_source_collection_construct (GType object_type);
-static gint64 tombstone_source_collection_get_tombstone_id (DataSource* source);
-static gint64 _tombstone_source_collection_get_tombstone_id_get_source_database_key (DataSource* source,
- gpointer self);
-DatabaseSourceCollection* database_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-static gboolean tombstone_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source);
-GType tombstone_id_get_type (void) G_GNUC_CONST;
-TombstoneID* tombstone_id_dup (const TombstoneID* self);
-void tombstone_id_free (TombstoneID* self);
-void tombstone_get_tombstone_id (Tombstone* self,
- TombstoneID* result);
-static void tombstone_source_collection_real_notify_contents_altered (DataCollection* base,
- GeeIterable* added,
- GeeIterable* removed);
-GFile* tombstone_get_file (Tombstone* self);
-void data_collection_notify_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void tombstone_source_collection_real_notify_items_altered (DataCollection* base,
- GeeMap* items);
-gboolean alteration_has_subject (Alteration* self,
- const gchar* subject);
-GeeCollection* alteration_get_details (Alteration* self,
- const gchar* subject);
-Tombstone* tombstone_source_collection_locate (TombstoneSourceCollection* self,
- GFile* file);
-gboolean tombstone_source_collection_matches (TombstoneSourceCollection* self,
- GFile* file);
-void tombstone_source_collection_resurrect (TombstoneSourceCollection* self,
- Tombstone* tombstone);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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);
-Marker* data_collection_mark (DataCollection* self,
- DataObject* object);
-void tombstone_source_collection_resurrect_many (TombstoneSourceCollection* self,
- GeeCollection* tombstones);
-Marker* data_collection_mark_many (DataCollection* self,
- GeeCollection* objects);
-void data_collection_freeze_notifications (DataCollection* self);
-void database_table_begin_transaction (void);
-GQuark database_error_quark (void);
-void database_table_commit_transaction (GError** error);
-void app_window_database_error (GError* err);
-void data_collection_thaw_notifications (DataCollection* self);
-GType directory_monitor_get_type (void) G_GNUC_CONST;
-void tombstone_source_collection_launch_scan (TombstoneSourceCollection* self,
- DirectoryMonitor* monitor,
- GCancellable* cancellable);
-static void tombstone_source_collection_async_scan (TombstoneSourceCollection* self,
- DirectoryMonitor* monitor,
- GCancellable* cancellable,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_);
-static void tombstone_source_collection_async_scan_finish (TombstoneSourceCollection* self,
- GAsyncResult* _res_);
-static void tombstone_source_collection_async_scan_data_free (gpointer _data);
-static void tombstone_source_collection_async_scan_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data);
-static gboolean tombstone_source_collection_async_scan_co (TombstoneSourceCollectionAsyncScanData* _data_);
-Marker* data_collection_start_marking (DataCollection* self);
-GeeCollection* data_collection_get_all (DataCollection* self);
-GFileInfo* directory_monitor_get_file_info (DirectoryMonitor* self,
- GFile* file);
-static void tombstone_source_collection_async_scan_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_);
-void marker_mark (Marker* self,
- DataObject* object);
-static gboolean _tombstone_source_collection_async_scan_co_gsource_func (gpointer self);
-gint marker_get_count (Marker* self);
-static void tombstone_source_collection_finalize (DataCollection * obj);
-gpointer tombstoned_file_ref (gpointer instance);
-void tombstoned_file_unref (gpointer instance);
-GParamSpec* param_spec_tombstoned_file (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_tombstoned_file (GValue* value,
- gpointer v_object);
-void value_take_tombstoned_file (GValue* value,
- gpointer v_object);
-gpointer value_get_tombstoned_file (const GValue* value);
-GType tombstoned_file_get_type (void) G_GNUC_CONST;
-TombstonedFile* tombstoned_file_new (GFile* file,
- gint64 filesize,
- const gchar* md5);
-TombstonedFile* tombstoned_file_construct (GType object_type,
- GFile* file,
- gint64 filesize,
- const gchar* md5);
-static void tombstoned_file_finalize (TombstonedFile * obj);
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-gpointer tombstone_row_ref (gpointer instance);
-void tombstone_row_unref (gpointer instance);
-GParamSpec* param_spec_tombstone_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_tombstone_row (GValue* value,
- gpointer v_object);
-void value_take_tombstone_row (GValue* value,
- gpointer v_object);
-gpointer value_get_tombstone_row (const GValue* value);
-GType tombstone_row_get_type (void) G_GNUC_CONST;
-#define TOMBSTONE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TOMBSTONE, TombstonePrivate))
-GType tombstone_reason_get_type (void) G_GNUC_CONST;
-gint tombstone_reason_serialize (TombstoneReason self);
-TombstoneReason tombstone_reason_unserialize (gint value);
-static Tombstone* tombstone_new (TombstoneRow* row);
-static Tombstone* tombstone_construct (GType object_type,
- TombstoneRow* row);
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-DataSource* data_source_construct (GType object_type,
- gint64 object_id);
-void tombstone_init (void);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType tombstone_table_get_type (void) G_GNUC_CONST;
-TombstoneTable* tombstone_table_get_instance (void);
-TombstoneRow** tombstone_table_fetch_all (TombstoneTable* self,
- int* result_length1,
- GError** error);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-void tombstone_terminate (void);
-void tombstone_entomb_many_sources (GeeCollection* sources,
- TombstoneReason reason,
- GError** error);
-gpointer backing_file_state_ref (gpointer instance);
-void backing_file_state_unref (gpointer instance);
-GParamSpec* param_spec_backing_file_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_file_state (GValue* value,
- gpointer v_object);
-void value_take_backing_file_state (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_file_state (const GValue* value);
-GType backing_file_state_get_type (void) G_GNUC_CONST;
-BackingFileState** media_source_get_backing_files_state (MediaSource* self,
- int* result_length1);
-GFile* backing_file_state_get_file (BackingFileState* self);
-void tombstone_entomb_many_files (GeeCollection* files,
- TombstoneReason reason,
- GError** error);
-TombstoneRow* tombstone_table_add (TombstoneTable* self,
- const gchar* filepath,
- gint64 filesize,
- const gchar* md5,
- TombstoneReason reason,
- GError** error);
-static gchar* tombstone_real_get_typename (DataSource* base);
-static gint64 tombstone_real_get_instance_id (DataSource* base);
-static gchar* tombstone_real_get_name (DataObject* base);
-static gchar* tombstone_real_to_string (DataObject* base);
-gchar* data_object_get_name (DataObject* self);
-gchar* tombstone_get_md5 (Tombstone* self);
-gboolean is_string_empty (const gchar* s);
-TombstoneReason tombstone_get_reason (Tombstone* self);
-void tombstone_move (Tombstone* self,
- GFile* file);
-void tombstone_table_update_file (TombstoneTable* self,
- TombstoneID* tombstone_id,
- const gchar* filepath,
- GError** error);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-gboolean tombstone_matches (Tombstone* self,
- GFile* file,
- gint64 filesize,
- const gchar* md5);
-static void tombstone_real_destroy (DataSource* base);
-void tombstone_table_remove (TombstoneTable* self,
- TombstoneID* tombstone_id,
- GError** error);
-void data_source_destroy (DataSource* self);
-static void tombstone_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 guint
-_file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = file_hash ((GFile*) v);
-#line 8 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 850 "Tombstone.c"
-}
-
-
-static gboolean
-_file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = file_equal ((GFile*) a, (GFile*) b);
-#line 8 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 863 "Tombstone.c"
-}
-
-
-static gint64
-_tombstone_source_collection_get_tombstone_id_get_source_database_key (DataSource* source,
- gpointer self)
-{
- gint64 result;
- result = tombstone_source_collection_get_tombstone_id (source);
-#line 12 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 875 "Tombstone.c"
-}
-
-
-TombstoneSourceCollection*
-tombstone_source_collection_construct (GType object_type)
-{
- TombstoneSourceCollection* self = NULL;
-#line 12 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = (TombstoneSourceCollection*) database_source_collection_construct (object_type, "Tombstones", _tombstone_source_collection_get_tombstone_id_get_source_database_key, NULL);
-#line 11 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return self;
-#line 887 "Tombstone.c"
-}
-
-
-TombstoneSourceCollection*
-tombstone_source_collection_new (void)
-{
-#line 11 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return tombstone_source_collection_construct (TYPE_TOMBSTONE_SOURCE_COLLECTION);
-#line 896 "Tombstone.c"
-}
-
-
-static gboolean
-tombstone_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source)
-{
- TombstoneSourceCollection * self;
- gboolean result = FALSE;
-#line 15 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection);
-#line 15 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 16 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TOMBSTONE);
-#line 16 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 914 "Tombstone.c"
-}
-
-
-static gint64
-tombstone_source_collection_get_tombstone_id (DataSource* source)
-{
- gint64 result = 0LL;
- TombstoneID _tmp0_ = {0};
- gint64 _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL);
-#line 20 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_get_tombstone_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TOMBSTONE, Tombstone), &_tmp0_);
-#line 20 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_.id;
-#line 20 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 934 "Tombstone.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 27 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return self ? g_object_ref (self) : NULL;
-#line 943 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_real_notify_contents_altered (DataCollection* base,
- GeeIterable* added,
- GeeIterable* removed)
-{
- TombstoneSourceCollection * self;
-#line 23 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection);
-#line 23 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 23 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 25 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (added != NULL) {
-#line 961 "Tombstone.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _object_it = _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (TRUE) {
-#line 971 "Tombstone.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Tombstone* tombstone = NULL;
- DataObject* _tmp4_;
- Tombstone* _tmp5_;
- GeeHashMap* _tmp6_;
- Tombstone* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- Tombstone* _tmp10_;
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _object_it;
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 990 "Tombstone.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = _object_it;
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- object = (DataObject*) _tmp3_;
-#line 27 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = object;
-#line 27 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TOMBSTONE, Tombstone));
-#line 27 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone = _tmp5_;
-#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp6_ = self->priv->file_map;
-#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp7_ = tombstone;
-#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp8_ = tombstone_get_file (_tmp7_);
-#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp9_ = _tmp8_;
-#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp10_ = tombstone;
-#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_);
-#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp9_);
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (tombstone);
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (object);
-#line 1022 "Tombstone.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_object_it);
-#line 1026 "Tombstone.c"
- }
- }
-#line 33 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (removed != NULL) {
-#line 1031 "Tombstone.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp11_;
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp11_ = gee_iterable_iterator (removed);
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _object_it = _tmp11_;
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (TRUE) {
-#line 1041 "Tombstone.c"
- GeeIterator* _tmp12_;
- DataObject* object = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- Tombstone* tombstone = NULL;
- DataObject* _tmp15_;
- Tombstone* _tmp16_;
- GeeHashMap* _tmp17_;
- Tombstone* _tmp18_;
- GFile* _tmp19_;
- GFile* _tmp20_;
- gboolean _tmp21_;
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp12_ = _object_it;
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 1060 "Tombstone.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp13_ = _object_it;
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- object = (DataObject*) _tmp14_;
-#line 35 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp15_ = object;
-#line 35 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_TOMBSTONE, Tombstone));
-#line 35 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone = _tmp16_;
-#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp17_ = self->priv->file_map;
-#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp18_ = tombstone;
-#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp19_ = tombstone_get_file (_tmp18_);
-#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp20_ = _tmp19_;
-#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp21_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp20_);
-#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp20_);
-#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_tmp21_) {
-#line 1088 "Tombstone.c"
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp22_;
- Tombstone* _tmp23_;
- GFile* _tmp24_;
- GFile* _tmp25_;
- gboolean _tmp26_;
- gboolean _tmp27_;
- gboolean _tmp28_;
-#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp22_ = self->priv->file_map;
-#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp23_ = tombstone;
-#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp24_ = tombstone_get_file (_tmp23_);
-#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp25_ = _tmp24_;
-#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp26_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp25_, NULL);
-#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp27_ = _tmp26_;
-#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp25_);
-#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala"
- is_removed = _tmp27_;
-#line 41 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp28_ = is_removed;
-#line 41 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _vala_assert (_tmp28_, "is_removed");
-#line 1117 "Tombstone.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (tombstone);
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (object);
-#line 1123 "Tombstone.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_object_it);
-#line 1127 "Tombstone.c"
- }
- }
-#line 49 "/home/jens/Source/shotwell/src/Tombstone.vala"
- DATA_COLLECTION_CLASS (tombstone_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added, removed);
-#line 1132 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_real_notify_items_altered (DataCollection* base,
- GeeMap* items)
-{
- TombstoneSourceCollection * self;
-#line 52 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection);
-#line 52 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (GEE_IS_MAP (items));
-#line 1145 "Tombstone.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = gee_map_get_keys (items);
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = _tmp1_;
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = _tmp3_;
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp2_);
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _object_it = _tmp4_;
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (TRUE) {
-#line 1169 "Tombstone.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Alteration* alteration = NULL;
- DataObject* _tmp8_;
- gpointer _tmp9_;
- Alteration* _tmp10_;
- Tombstone* tombstone = NULL;
- DataObject* _tmp11_;
- Tombstone* _tmp12_;
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = _object_it;
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 1187 "Tombstone.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp6_ = _object_it;
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- object = (DataObject*) _tmp7_;
-#line 54 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp8_ = object;
-#line 54 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp9_ = gee_map_get (items, _tmp8_);
-#line 54 "/home/jens/Source/shotwell/src/Tombstone.vala"
- alteration = (Alteration*) _tmp9_;
-#line 55 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp10_ = alteration;
-#line 55 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!alteration_has_subject (_tmp10_, "file")) {
-#line 56 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _alteration_unref0 (alteration);
-#line 56 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (object);
-#line 56 "/home/jens/Source/shotwell/src/Tombstone.vala"
- continue;
-#line 1211 "Tombstone.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp11_ = object;
-#line 58 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_TOMBSTONE, Tombstone));
-#line 58 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone = _tmp12_;
-#line 1219 "Tombstone.c"
- {
- GeeIterator* _detail_it = NULL;
- Alteration* _tmp13_;
- GeeCollection* _tmp14_;
- GeeCollection* _tmp15_;
- GeeIterator* _tmp16_;
- GeeIterator* _tmp17_;
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp13_ = alteration;
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp14_ = alteration_get_details (_tmp13_, "file");
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp15_ = _tmp14_;
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp17_ = _tmp16_;
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp15_);
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _detail_it = _tmp17_;
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (TRUE) {
-#line 1243 "Tombstone.c"
- GeeIterator* _tmp18_;
- gchar* detail = NULL;
- GeeIterator* _tmp19_;
- gpointer _tmp20_;
- GFile* old_file = NULL;
- const gchar* _tmp21_;
- GFile* _tmp22_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp23_;
- GFile* _tmp24_;
- gboolean _tmp25_;
- gboolean _tmp26_;
- GeeHashMap* _tmp27_;
- Tombstone* _tmp28_;
- GFile* _tmp29_;
- GFile* _tmp30_;
- Tombstone* _tmp31_;
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp18_ = _detail_it;
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!gee_iterator_next (_tmp18_)) {
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 1267 "Tombstone.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp19_ = _detail_it;
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp20_ = gee_iterator_get (_tmp19_);
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- detail = (gchar*) _tmp20_;
-#line 61 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp21_ = detail;
-#line 61 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp22_ = g_file_new_for_path (_tmp21_);
-#line 61 "/home/jens/Source/shotwell/src/Tombstone.vala"
- old_file = _tmp22_;
-#line 63 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp23_ = self->priv->file_map;
-#line 63 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp24_ = old_file;
-#line 63 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp25_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp24_, NULL);
-#line 63 "/home/jens/Source/shotwell/src/Tombstone.vala"
- removed = _tmp25_;
-#line 64 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp26_ = removed;
-#line 64 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _vala_assert (_tmp26_, "removed");
-#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp27_ = self->priv->file_map;
-#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp28_ = tombstone;
-#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp29_ = tombstone_get_file (_tmp28_);
-#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp30_ = _tmp29_;
-#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp31_ = tombstone;
-#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_, _tmp31_);
-#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp30_);
-#line 68 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (old_file);
-#line 68 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (detail);
-#line 68 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 1313 "Tombstone.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_detail_it);
-#line 1317 "Tombstone.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (tombstone);
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _alteration_unref0 (alteration);
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (object);
-#line 1325 "Tombstone.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_object_it);
-#line 1329 "Tombstone.c"
- }
-}
-
-
-Tombstone*
-tombstone_source_collection_locate (TombstoneSourceCollection* self,
- GFile* file)
-{
- Tombstone* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 73 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self), NULL);
-#line 73 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 74 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = self->priv->file_map;
-#line 74 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 74 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = (Tombstone*) _tmp1_;
-#line 74 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 1353 "Tombstone.c"
-}
-
-
-gboolean
-tombstone_source_collection_matches (TombstoneSourceCollection* self,
- GFile* file)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
-#line 77 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self), FALSE);
-#line 77 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 78 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = self->priv->file_map;
-#line 78 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 78 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 1373 "Tombstone.c"
-}
-
-
-void
-tombstone_source_collection_resurrect (TombstoneSourceCollection* self,
- Tombstone* tombstone)
-{
- Marker* _tmp0_;
- Marker* _tmp1_;
-#line 81 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self));
-#line 81 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (IS_TOMBSTONE (tombstone));
-#line 82 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (tombstone, TYPE_DATA_OBJECT, DataObject));
-#line 82 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_;
-#line 82 "/home/jens/Source/shotwell/src/Tombstone.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp1_, FALSE, NULL, NULL, NULL);
-#line 82 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp1_);
-#line 1395 "Tombstone.c"
-}
-
-
-void
-tombstone_source_collection_resurrect_many (TombstoneSourceCollection* self,
- GeeCollection* tombstones)
-{
- Marker* marker = NULL;
- Marker* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 85 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self));
-#line 85 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (GEE_IS_COLLECTION (tombstones));
-#line 86 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), tombstones);
-#line 86 "/home/jens/Source/shotwell/src/Tombstone.vala"
- marker = _tmp0_;
-#line 88 "/home/jens/Source/shotwell/src/Tombstone.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 89 "/home/jens/Source/shotwell/src/Tombstone.vala"
- database_table_begin_transaction ();
-#line 91 "/home/jens/Source/shotwell/src/Tombstone.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), marker, FALSE, NULL, NULL, NULL);
-#line 1420 "Tombstone.c"
- {
-#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala"
- database_table_commit_transaction (&_inner_error_);
-#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1428 "Tombstone.c"
- goto __catch557_database_error;
- }
-#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (marker);
-#line 94 "/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);
-#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 1439 "Tombstone.c"
- }
- }
- goto __finally557;
- __catch557_database_error:
- {
- GError* err = NULL;
- GError* _tmp1_;
-#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala"
- err = _inner_error_;
-#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _inner_error_ = NULL;
-#line 96 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = err;
-#line 96 "/home/jens/Source/shotwell/src/Tombstone.vala"
- app_window_database_error (_tmp1_);
-#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_error_free0 (err);
-#line 1457 "Tombstone.c"
- }
- __finally557:
-#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (marker);
-#line 93 "/home/jens/Source/shotwell/src/Tombstone.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 93 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 1470 "Tombstone.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/Tombstone.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 85 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (marker);
-#line 1476 "Tombstone.c"
-}
-
-
-void
-tombstone_source_collection_launch_scan (TombstoneSourceCollection* self,
- DirectoryMonitor* monitor,
- GCancellable* cancellable)
-{
-#line 108 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self));
-#line 108 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail ((monitor == NULL) || IS_DIRECTORY_MONITOR (monitor));
-#line 108 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable));
-#line 109 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_source_collection_async_scan (self, monitor, cancellable, NULL, NULL);
-#line 1493 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_async_scan_data_free (gpointer _data)
-{
- TombstoneSourceCollectionAsyncScanData* _data_;
- _data_ = _data;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->monitor);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->cancellable);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_collection_unref0 (_data_->self);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_slice_free (TombstoneSourceCollectionAsyncScanData, _data_);
-#line 1510 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_async_scan_async_ready_wrapper (GObject *source_object,
- GAsyncResult *res,
- void *user_data)
-{
- TombstoneSourceCollectionAsyncScanData* _task_data_;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _task_data_ = g_task_get_task_data (G_TASK (res));
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_task_data_->_callback_ != NULL) {
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _task_data_->_callback_ (source_object, res, user_data);
-#line 1526 "Tombstone.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _task_data_->_task_complete_ = TRUE;
-#line 1530 "Tombstone.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 1539 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_async_scan (TombstoneSourceCollection* self,
- DirectoryMonitor* monitor,
- GCancellable* cancellable,
- GAsyncReadyCallback _callback_,
- gpointer _user_data_)
-{
- TombstoneSourceCollectionAsyncScanData* _data_;
- TombstoneSourceCollection* _tmp0_;
- DirectoryMonitor* _tmp1_;
- GCancellable* _tmp2_;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_ = g_slice_new0 (TombstoneSourceCollectionAsyncScanData);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_callback_ = _callback_;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_async_result = g_task_new (NULL, cancellable, tombstone_source_collection_async_scan_async_ready_wrapper, _user_data_);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_callback_ == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_task_complete_ = TRUE;
-#line 1564 "Tombstone.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_task_set_task_data (_data_->_async_result, _data_, tombstone_source_collection_async_scan_data_free);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = _data_collection_ref0 (self);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->self = _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _g_object_ref0 (monitor);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->monitor);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->monitor = _tmp1_;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = _g_object_ref0 (cancellable);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->cancellable);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->cancellable = _tmp2_;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_source_collection_async_scan_co (_data_);
-#line 1586 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_async_scan_finish (TombstoneSourceCollection* self,
- GAsyncResult* _res_)
-{
- TombstoneSourceCollectionAsyncScanData* _data_;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (NULL == _data_) {
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 1601 "Tombstone.c"
- }
-}
-
-
-static void
-tombstone_source_collection_async_scan_ready (GObject* source_object,
- GAsyncResult* _res_,
- gpointer _user_data_)
-{
- TombstoneSourceCollectionAsyncScanData* _data_;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_ = _user_data_;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_source_object_ = source_object;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_res_ = _res_;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_task_complete_ = TRUE;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_source_collection_async_scan_co (_data_);
-#line 1622 "Tombstone.c"
-}
-
-
-static gboolean
-_tombstone_source_collection_async_scan_co_gsource_func (gpointer self)
-{
- gboolean result;
- result = tombstone_source_collection_async_scan_co (self);
-#line 145 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 1633 "Tombstone.c"
-}
-
-
-static gboolean
-tombstone_source_collection_async_scan_co (TombstoneSourceCollectionAsyncScanData* _data_)
-{
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- switch (_data_->_state_) {
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- case 0:
-#line 1644 "Tombstone.c"
- goto _state_0;
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- case 1:
-#line 1648 "Tombstone.c"
- goto _state_1;
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- case 2:
-#line 1652 "Tombstone.c"
- goto _state_2;
- default:
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_assert_not_reached ();
-#line 1657 "Tombstone.c"
- }
- _state_0:
-#line 114 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_DATA_COLLECTION, DataCollection));
-#line 114 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->marker = _data_->_tmp0_;
-#line 1664 "Tombstone.c"
- {
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp1_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_DATA_COLLECTION, DataCollection));
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp2_ = _data_->_tmp1_;
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp4_ = _data_->_tmp3_;
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->_tmp2_);
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_object_it = _data_->_tmp4_;
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (TRUE) {
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp5_ = _data_->_object_it;
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!gee_iterator_next (_data_->_tmp5_)) {
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 1686 "Tombstone.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp6_ = _data_->_object_it;
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp7_ = gee_iterator_get (_data_->_tmp6_);
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->object = (DataObject*) _data_->_tmp7_;
-#line 116 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp8_ = _data_->object;
-#line 116 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp8_, TYPE_TOMBSTONE, Tombstone));
-#line 116 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->tombstone = _data_->_tmp9_;
-#line 117 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp10_ = _data_->tombstone;
-#line 117 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp11_ = tombstone_get_file (_data_->_tmp10_);
-#line 117 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->file = _data_->_tmp11_;
-#line 119 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->info = NULL;
-#line 120 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_data_->monitor != NULL) {
-#line 121 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp12_ = _data_->file;
-#line 121 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp13_ = directory_monitor_get_file_info (_data_->monitor, _data_->_tmp12_);
-#line 121 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->info);
-#line 121 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->info = _data_->_tmp13_;
-#line 1718 "Tombstone.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp14_ = _data_->info;
-#line 125 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_data_->_tmp14_ == NULL) {
-#line 1724 "Tombstone.c"
- {
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp16_ = _data_->file;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_state_ = 1;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_file_query_info_async (_data_->_tmp16_, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, G_PRIORITY_LOW, _data_->cancellable, tombstone_source_collection_async_scan_ready, _data_);
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return FALSE;
-#line 1734 "Tombstone.c"
- _state_1:
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp17_ = g_file_query_info_finish (_data_->_tmp16_, _data_->_res_, &_data_->_inner_error_);
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp15_ = _data_->_tmp17_;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
-#line 1742 "Tombstone.c"
- goto __catch558_g_error;
- }
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp18_ = _data_->_tmp15_;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp15_ = NULL;
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->info);
-#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->info = _data_->_tmp18_;
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->_tmp15_);
-#line 1755 "Tombstone.c"
- }
- goto __finally558;
- __catch558_g_error:
- {
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->err = _data_->_inner_error_;
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_inner_error_ = NULL;
-#line 131 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp19_ = _data_->err;
-#line 131 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (g_error_matches (_data_->_tmp19_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
-#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_error_free0 (_data_->err);
-#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->info);
-#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->file);
-#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->tombstone);
-#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->object);
-#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 1780 "Tombstone.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp20_ = _data_->err;
-#line 134 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!g_error_matches (_data_->_tmp20_, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) {
-#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp21_ = _data_->file;
-#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp22_ = g_file_get_path (_data_->_tmp21_);
-#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp23_ = _data_->_tmp22_;
-#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp24_ = _data_->err;
-#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp25_ = _data_->_tmp24_->message;
-#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_warning ("Tombstone.vala:135: Unable to check for existence of tombstoned file %" \
-"s: %s", _data_->_tmp23_, _data_->_tmp25_);
-#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (_data_->_tmp23_);
-#line 1800 "Tombstone.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_error_free0 (_data_->err);
-#line 1804 "Tombstone.c"
- }
- __finally558:
-#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"
- _g_object_unref0 (_data_->info);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->file);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->tombstone);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->object);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->_object_it);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->marker);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_data_->_inner_error_);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_object_unref (_data_->_async_result);
-#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return FALSE;
-#line 1829 "Tombstone.c"
- }
- }
-#line 142 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp26_ = _data_->info;
-#line 142 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_data_->_tmp26_ == NULL) {
-#line 143 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp27_ = _data_->marker;
-#line 143 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp28_ = _data_->tombstone;
-#line 143 "/home/jens/Source/shotwell/src/Tombstone.vala"
- marker_mark (_data_->_tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp28_, TYPE_DATA_OBJECT, DataObject));
-#line 1842 "Tombstone.c"
- }
-#line 145 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _tombstone_source_collection_async_scan_co_gsource_func, _data_, NULL);
-#line 146 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_state_ = 2;
-#line 146 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return FALSE;
-#line 1850 "Tombstone.c"
- _state_2:
- ;
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->info);
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->file);
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->tombstone);
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->object);
-#line 1861 "Tombstone.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->_object_it);
-#line 1865 "Tombstone.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp29_ = _data_->marker;
-#line 149 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (marker_get_count (_data_->_tmp29_) > 0) {
-#line 150 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp30_ = _data_->marker;
-#line 150 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_debug ("Tombstone.vala:150: Resurrecting %d tombstones with no backing file", marker_get_count (_data_->_tmp30_));
-#line 151 "/home/jens/Source/shotwell/src/Tombstone.vala"
- database_table_begin_transaction ();
-#line 152 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp31_ = _data_->marker;
-#line 152 "/home/jens/Source/shotwell/src/Tombstone.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_SOURCE_COLLECTION, SourceCollection), _data_->_tmp31_, FALSE, NULL, NULL, NULL);
-#line 1881 "Tombstone.c"
- {
-#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala"
- database_table_commit_transaction (&_data_->_inner_error_);
-#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
-#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_data_->_inner_error_->domain == DATABASE_ERROR) {
-#line 1889 "Tombstone.c"
- goto __catch559_database_error;
- }
-#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->marker);
-#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
-#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_data_->_inner_error_);
-#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_object_unref (_data_->_async_result);
-#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return FALSE;
-#line 1902 "Tombstone.c"
- }
- }
- goto __finally559;
- __catch559_database_error:
- {
-#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->err2 = _data_->_inner_error_;
-#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_inner_error_ = NULL;
-#line 156 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_->_tmp32_ = _data_->err2;
-#line 156 "/home/jens/Source/shotwell/src/Tombstone.vala"
- app_window_database_error (_data_->_tmp32_);
-#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_error_free0 (_data_->err2);
-#line 1918 "Tombstone.c"
- }
- __finally559:
-#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"
- _g_object_unref0 (_data_->marker);
-#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
-#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_data_->_inner_error_);
-#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_object_unref (_data_->_async_result);
-#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return FALSE;
-#line 1933 "Tombstone.c"
- }
- }
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_data_->marker);
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_data_->_state_ != 0) {
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (_data_->_task_complete_ != TRUE) {
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 1946 "Tombstone.c"
- }
- }
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_object_unref (_data_->_async_result);
-#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return FALSE;
-#line 1953 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_class_init (TombstoneSourceCollectionClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((DataCollectionClass *) klass)->finalize = tombstone_source_collection_finalize;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_type_class_add_private (klass, sizeof (TombstoneSourceCollectionPrivate));
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) tombstone_source_collection_real_holds_type_of_source;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) tombstone_source_collection_real_notify_contents_altered;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((DataCollectionClass *) klass)->notify_items_altered = (void (*) (DataCollection *, GeeMap*)) tombstone_source_collection_real_notify_items_altered;
-#line 1972 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_instance_init (TombstoneSourceCollection * self)
-{
- GeeHashMap* _tmp0_;
-#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_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_TOMBSTONE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 1986 "Tombstone.c"
-}
-
-
-static void
-tombstone_source_collection_finalize (DataCollection * obj)
-{
- TombstoneSourceCollection * self;
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection);
-#line 8 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (self->priv->file_map);
-#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala"
- DATA_COLLECTION_CLASS (tombstone_source_collection_parent_class)->finalize (obj);
-#line 2000 "Tombstone.c"
-}
-
-
-GType
-tombstone_source_collection_get_type (void)
-{
- static volatile gsize tombstone_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&tombstone_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TombstoneSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstone_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TombstoneSourceCollection), 0, (GInstanceInitFunc) tombstone_source_collection_instance_init, NULL };
- GType tombstone_source_collection_type_id;
- tombstone_source_collection_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_COLLECTION, "TombstoneSourceCollection", &g_define_type_info, 0);
- g_once_init_leave (&tombstone_source_collection_type_id__volatile, tombstone_source_collection_type_id);
- }
- return tombstone_source_collection_type_id__volatile;
-}
-
-
-TombstonedFile*
-tombstoned_file_construct (GType object_type,
- GFile* file,
- gint64 filesize,
- const gchar* md5)
-{
- TombstonedFile* self = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
-#line 167 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 167 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = (TombstonedFile*) g_type_create_instance (object_type);
-#line 168 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 168 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (self->file);
-#line 168 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->file = _tmp0_;
-#line 169 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->filesize = filesize;
-#line 170 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = g_strdup (md5);
-#line 170 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (self->md5);
-#line 170 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->md5 = _tmp1_;
-#line 167 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return self;
-#line 2047 "Tombstone.c"
-}
-
-
-TombstonedFile*
-tombstoned_file_new (GFile* file,
- gint64 filesize,
- const gchar* md5)
-{
-#line 167 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return tombstoned_file_construct (TYPE_TOMBSTONED_FILE, file, filesize, md5);
-#line 2058 "Tombstone.c"
-}
-
-
-static void
-value_tombstoned_file_init (GValue* value)
-{
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- value->data[0].v_pointer = NULL;
-#line 2067 "Tombstone.c"
-}
-
-
-static void
-value_tombstoned_file_free_value (GValue* value)
-{
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (value->data[0].v_pointer) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstoned_file_unref (value->data[0].v_pointer);
-#line 2078 "Tombstone.c"
- }
-}
-
-
-static void
-value_tombstoned_file_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (src_value->data[0].v_pointer) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- dest_value->data[0].v_pointer = tombstoned_file_ref (src_value->data[0].v_pointer);
-#line 2091 "Tombstone.c"
- } else {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2095 "Tombstone.c"
- }
-}
-
-
-static gpointer
-value_tombstoned_file_peek_pointer (const GValue* value)
-{
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return value->data[0].v_pointer;
-#line 2105 "Tombstone.c"
-}
-
-
-static gchar*
-value_tombstoned_file_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (collect_values[0].v_pointer) {
-#line 2117 "Tombstone.c"
- TombstonedFile * object;
- object = collect_values[0].v_pointer;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2124 "Tombstone.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.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 2128 "Tombstone.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- value->data[0].v_pointer = tombstoned_file_ref (object);
-#line 2132 "Tombstone.c"
- } else {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- value->data[0].v_pointer = NULL;
-#line 2136 "Tombstone.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return NULL;
-#line 2140 "Tombstone.c"
-}
-
-
-static gchar*
-value_tombstoned_file_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TombstonedFile ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!object_p) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2156 "Tombstone.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!value->data[0].v_pointer) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- *object_p = NULL;
-#line 2162 "Tombstone.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- *object_p = value->data[0].v_pointer;
-#line 2166 "Tombstone.c"
- } else {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- *object_p = tombstoned_file_ref (value->data[0].v_pointer);
-#line 2170 "Tombstone.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return NULL;
-#line 2174 "Tombstone.c"
-}
-
-
-GParamSpec*
-param_spec_tombstoned_file (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTombstonedFile* spec;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TOMBSTONED_FILE), NULL);
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return G_PARAM_SPEC (spec);
-#line 2194 "Tombstone.c"
-}
-
-
-gpointer
-value_get_tombstoned_file (const GValue* value)
-{
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONED_FILE), NULL);
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return value->data[0].v_pointer;
-#line 2205 "Tombstone.c"
-}
-
-
-void
-value_set_tombstoned_file (GValue* value,
- gpointer v_object)
-{
- TombstonedFile * old;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONED_FILE));
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- old = value->data[0].v_pointer;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (v_object) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TOMBSTONED_FILE));
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- value->data[0].v_pointer = v_object;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstoned_file_ref (value->data[0].v_pointer);
-#line 2228 "Tombstone.c"
- } else {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- value->data[0].v_pointer = NULL;
-#line 2232 "Tombstone.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (old) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstoned_file_unref (old);
-#line 2238 "Tombstone.c"
- }
-}
-
-
-void
-value_take_tombstoned_file (GValue* value,
- gpointer v_object)
-{
- TombstonedFile * old;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONED_FILE));
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- old = value->data[0].v_pointer;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (v_object) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TOMBSTONED_FILE));
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- value->data[0].v_pointer = v_object;
-#line 2260 "Tombstone.c"
- } else {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- value->data[0].v_pointer = NULL;
-#line 2264 "Tombstone.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (old) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstoned_file_unref (old);
-#line 2270 "Tombstone.c"
- }
-}
-
-
-static void
-tombstoned_file_class_init (TombstonedFileClass * klass)
-{
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstoned_file_parent_class = g_type_class_peek_parent (klass);
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((TombstonedFileClass *) klass)->finalize = tombstoned_file_finalize;
-#line 2282 "Tombstone.c"
-}
-
-
-static void
-tombstoned_file_instance_init (TombstonedFile * self)
-{
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->ref_count = 1;
-#line 2291 "Tombstone.c"
-}
-
-
-static void
-tombstoned_file_finalize (TombstonedFile * obj)
-{
- TombstonedFile * self;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONED_FILE, TombstonedFile);
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_signal_handlers_destroy (self);
-#line 163 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (self->file);
-#line 165 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (self->md5);
-#line 2307 "Tombstone.c"
-}
-
-
-GType
-tombstoned_file_get_type (void)
-{
- static volatile gsize tombstoned_file_type_id__volatile = 0;
- if (g_once_init_enter (&tombstoned_file_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_tombstoned_file_init, value_tombstoned_file_free_value, value_tombstoned_file_copy_value, value_tombstoned_file_peek_pointer, "p", value_tombstoned_file_collect_value, "p", value_tombstoned_file_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TombstonedFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstoned_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TombstonedFile), 0, (GInstanceInitFunc) tombstoned_file_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType tombstoned_file_type_id;
- tombstoned_file_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TombstonedFile", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&tombstoned_file_type_id__volatile, tombstoned_file_type_id);
- }
- return tombstoned_file_type_id__volatile;
-}
-
-
-gpointer
-tombstoned_file_ref (gpointer instance)
-{
- TombstonedFile * self;
- self = instance;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return instance;
-#line 2336 "Tombstone.c"
-}
-
-
-void
-tombstoned_file_unref (gpointer instance)
-{
- TombstonedFile * self;
- self = instance;
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- TOMBSTONED_FILE_GET_CLASS (self)->finalize (self);
-#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2351 "Tombstone.c"
- }
-}
-
-
-gint
-tombstone_reason_serialize (TombstoneReason self)
-{
- gint result = 0;
-#line 181 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = (gint) self;
-#line 181 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 2364 "Tombstone.c"
-}
-
-
-TombstoneReason
-tombstone_reason_unserialize (gint value)
-{
- TombstoneReason result = 0;
-#line 185 "/home/jens/Source/shotwell/src/Tombstone.vala"
- switch ((TombstoneReason) value) {
-#line 185 "/home/jens/Source/shotwell/src/Tombstone.vala"
- case TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE:
-#line 2376 "Tombstone.c"
- {
-#line 187 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE;
-#line 187 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 2382 "Tombstone.c"
- }
- default:
-#line 185 "/home/jens/Source/shotwell/src/Tombstone.vala"
- case TOMBSTONE_REASON_REMOVED_BY_USER:
-#line 2387 "Tombstone.c"
- {
-#line 192 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = TOMBSTONE_REASON_REMOVED_BY_USER;
-#line 192 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 2393 "Tombstone.c"
- }
- }
-}
-
-
-GType
-tombstone_reason_get_type (void)
-{
- static volatile gsize tombstone_reason_type_id__volatile = 0;
- if (g_once_init_enter (&tombstone_reason_type_id__volatile)) {
- static const GEnumValue values[] = {{TOMBSTONE_REASON_REMOVED_BY_USER, "TOMBSTONE_REASON_REMOVED_BY_USER", "removed-by-user"}, {TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE, "TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE", "auto-detected-duplicate"}, {0, NULL, NULL}};
- GType tombstone_reason_type_id;
- tombstone_reason_type_id = g_enum_register_static ("TombstoneReason", values);
- g_once_init_leave (&tombstone_reason_type_id__volatile, tombstone_reason_type_id);
- }
- return tombstone_reason_type_id__volatile;
-}
-
-
-static gpointer
-_tombstone_row_ref0 (gpointer self)
-{
-#line 203 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return self ? tombstone_row_ref (self) : NULL;
-#line 2418 "Tombstone.c"
-}
-
-
-static Tombstone*
-tombstone_construct (GType object_type,
- TombstoneRow* row)
-{
- Tombstone * self = NULL;
- TombstoneRow* _tmp0_;
-#line 202 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_TOMBSTONE_ROW (row), NULL);
-#line 202 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = (Tombstone*) data_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 203 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = _tombstone_row_ref0 (row);
-#line 203 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstone_row_unref0 (self->priv->row);
-#line 203 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->priv->row = _tmp0_;
-#line 202 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return self;
-#line 2440 "Tombstone.c"
-}
-
-
-static Tombstone*
-tombstone_new (TombstoneRow* row)
-{
-#line 202 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return tombstone_construct (TYPE_TOMBSTONE, row);
-#line 2449 "Tombstone.c"
-}
-
-
-void
-tombstone_init (void)
-{
- TombstoneSourceCollection* _tmp0_;
- TombstoneRow** rows = NULL;
- gint rows_length1;
- gint _rows_size_;
- TombstoneRow** _tmp9_;
- gint _tmp9__length1;
- GError * _inner_error_ = NULL;
-#line 207 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = tombstone_source_collection_new ();
-#line 207 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _data_collection_unref0 (tombstone_global);
-#line 207 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_global = _tmp0_;
-#line 209 "/home/jens/Source/shotwell/src/Tombstone.vala"
- rows = NULL;
-#line 209 "/home/jens/Source/shotwell/src/Tombstone.vala"
- rows_length1 = 0;
-#line 209 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _rows_size_ = rows_length1;
-#line 2475 "Tombstone.c"
- {
- TombstoneRow** _tmp1_ = NULL;
- TombstoneTable* _tmp2_;
- TombstoneTable* _tmp3_;
- gint _tmp4_;
- TombstoneRow** _tmp5_;
- TombstoneRow** _tmp6_;
- gint _tmp6__length1;
- gint _tmp1__length1;
- gint __tmp1__size_;
- TombstoneRow** _tmp7_;
- gint _tmp7__length1;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = tombstone_table_get_instance ();
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = _tmp2_;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = tombstone_table_fetch_all (_tmp3_, &_tmp4_, &_inner_error_);
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp6_ = _tmp5_;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp6__length1 = _tmp4_;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _database_table_unref0 (_tmp3_);
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp6_;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1__length1 = _tmp6__length1;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- __tmp1__size_ = _tmp1__length1;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 2510 "Tombstone.c"
- goto __catch560_database_error;
- }
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL);
-#line 211 "/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);
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 2521 "Tombstone.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp7_ = _tmp1_;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp7__length1 = _tmp1__length1;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = NULL;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1__length1 = 0;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL);
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- rows = _tmp7_;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- rows_length1 = _tmp7__length1;
-#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _rows_size_ = rows_length1;
-#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = (_vala_array_free (_tmp1_, _tmp1__length1, (GDestroyNotify) tombstone_row_unref), NULL);
-#line 2541 "Tombstone.c"
- }
- goto __finally560;
- __catch560_database_error:
- {
- GError* err = NULL;
- GError* _tmp8_;
-#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala"
- err = _inner_error_;
-#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _inner_error_ = NULL;
-#line 213 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp8_ = err;
-#line 213 "/home/jens/Source/shotwell/src/Tombstone.vala"
- app_window_database_error (_tmp8_);
-#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_error_free0 (err);
-#line 2558 "Tombstone.c"
- }
- __finally560:
-#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala"
- rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL);
-#line 210 "/home/jens/Source/shotwell/src/Tombstone.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 210 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 2571 "Tombstone.c"
- }
-#line 216 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp9_ = rows;
-#line 216 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp9__length1 = rows_length1;
-#line 216 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_tmp9_ != NULL) {
-#line 2579 "Tombstone.c"
- GeeArrayList* tombstones = NULL;
- GeeArrayList* _tmp10_;
- TombstoneRow** _tmp11_;
- gint _tmp11__length1;
- TombstoneSourceCollection* _tmp17_;
- GeeArrayList* _tmp18_;
- GeeCollection* _tmp19_;
- GeeCollection* _tmp20_;
-#line 217 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp10_ = gee_array_list_new (TYPE_TOMBSTONE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 217 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstones = _tmp10_;
-#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp11_ = rows;
-#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp11__length1 = rows_length1;
-#line 2596 "Tombstone.c"
- {
- TombstoneRow** row_collection = NULL;
- gint row_collection_length1 = 0;
- gint _row_collection_size_ = 0;
- gint row_it = 0;
-#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala"
- row_collection = _tmp11_;
-#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala"
- row_collection_length1 = _tmp11__length1;
-#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala"
- for (row_it = 0; row_it < _tmp11__length1; row_it = row_it + 1) {
-#line 2608 "Tombstone.c"
- TombstoneRow* _tmp12_;
- TombstoneRow* row = NULL;
-#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp12_ = _tombstone_row_ref0 (row_collection[row_it]);
-#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala"
- row = _tmp12_;
-#line 2615 "Tombstone.c"
- {
- GeeArrayList* _tmp13_;
- TombstoneRow* _tmp14_;
- Tombstone* _tmp15_;
- Tombstone* _tmp16_;
-#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp13_ = tombstones;
-#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp14_ = row;
-#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp15_ = tombstone_new (_tmp14_);
-#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp16_ = _tmp15_;
-#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_);
-#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp16_);
-#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstone_row_unref0 (row);
-#line 2635 "Tombstone.c"
- }
- }
- }
-#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp17_ = tombstone_global;
-#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp18_ = tombstones;
-#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp19_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp20_ = _tmp19_;
-#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp20_);
-#line 216 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (tombstones);
-#line 2651 "Tombstone.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/Tombstone.vala"
- rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL);
-#line 2655 "Tombstone.c"
-}
-
-
-void
-tombstone_terminate (void)
-{
-}
-
-
-static gpointer
-_backing_file_state_ref0 (gpointer self)
-{
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return self ? backing_file_state_ref (self) : NULL;
-#line 2670 "Tombstone.c"
-}
-
-
-void
-tombstone_entomb_many_sources (GeeCollection* sources,
- TombstoneReason reason,
- GError** error)
-{
- GeeCollection* files = NULL;
- GeeArrayList* _tmp0_;
- GeeCollection* _tmp19_;
- GError * _inner_error_ = NULL;
-#line 228 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 230 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = gee_array_list_new (TYPE_TOMBSTONED_FILE, (GBoxedCopyFunc) tombstoned_file_ref, (GDestroyNotify) tombstoned_file_unref, NULL, NULL, NULL);
-#line 230 "/home/jens/Source/shotwell/src/Tombstone.vala"
- files = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 2689 "Tombstone.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp1_;
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _source_it = _tmp1_;
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (TRUE) {
-#line 2699 "Tombstone.c"
- GeeIterator* _tmp2_;
- MediaSource* source = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- MediaSource* _tmp5_;
- gint _tmp6_;
- BackingFileState** _tmp7_;
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = _source_it;
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 2713 "Tombstone.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = _source_it;
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- source = (MediaSource*) _tmp4_;
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = source;
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp7_ = media_source_get_backing_files_state (_tmp5_, &_tmp6_);
-#line 2725 "Tombstone.c"
- {
- BackingFileState** state_collection = NULL;
- gint state_collection_length1 = 0;
- gint _state_collection_size_ = 0;
- gint state_it = 0;
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- state_collection = _tmp7_;
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- state_collection_length1 = _tmp6_;
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- for (state_it = 0; state_it < _tmp6_; state_it = state_it + 1) {
-#line 2737 "Tombstone.c"
- BackingFileState* _tmp8_;
- BackingFileState* state = NULL;
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp8_ = _backing_file_state_ref0 (state_collection[state_it]);
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- state = _tmp8_;
-#line 2744 "Tombstone.c"
- {
- GeeCollection* _tmp9_;
- BackingFileState* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- BackingFileState* _tmp13_;
- gint64 _tmp14_;
- BackingFileState* _tmp15_;
- const gchar* _tmp16_;
- TombstonedFile* _tmp17_;
- TombstonedFile* _tmp18_;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp9_ = files;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp10_ = state;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp11_ = backing_file_state_get_file (_tmp10_);
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp12_ = _tmp11_;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp13_ = state;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp14_ = _tmp13_->filesize;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp15_ = state;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp16_ = _tmp15_->md5;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp17_ = tombstoned_file_new (_tmp12_, _tmp14_, _tmp16_);
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp18_ = _tmp17_;
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- gee_collection_add (_tmp9_, _tmp18_);
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstoned_file_unref0 (_tmp18_);
-#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp12_);
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _backing_file_state_unref0 (state);
-#line 2784 "Tombstone.c"
- }
- }
-#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala"
- state_collection = (_vala_array_free (state_collection, state_collection_length1, (GDestroyNotify) backing_file_state_unref), NULL);
-#line 2789 "Tombstone.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (source);
-#line 2793 "Tombstone.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_source_it);
-#line 2797 "Tombstone.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp19_ = files;
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_entomb_many_files (_tmp19_, reason, &_inner_error_);
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_propagate_error (error, _inner_error_);
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (files);
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 2813 "Tombstone.c"
- } else {
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (files);
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.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 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 2823 "Tombstone.c"
- }
- }
-#line 228 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (files);
-#line 2828 "Tombstone.c"
-}
-
-
-void
-tombstone_entomb_many_files (GeeCollection* files,
- TombstoneReason reason,
- GError** error)
-{
- Marker* to_destroy = NULL;
- TombstoneSourceCollection* _tmp0_;
- Marker* _tmp1_;
- TombstoneSourceCollection* _tmp13_;
- Marker* _tmp14_;
- GeeArrayList* tombstones = NULL;
- GeeArrayList* _tmp15_;
- TombstoneSourceCollection* _tmp36_;
- GeeArrayList* _tmp37_;
- GeeCollection* _tmp38_;
- GeeCollection* _tmp39_;
- GError * _inner_error_ = NULL;
-#line 239 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (GEE_IS_COLLECTION (files));
-#line 242 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = tombstone_global;
-#line 242 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 242 "/home/jens/Source/shotwell/src/Tombstone.vala"
- to_destroy = _tmp1_;
-#line 2857 "Tombstone.c"
- {
- GeeIterator* _file_it = NULL;
- GeeIterator* _tmp2_;
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (files, GEE_TYPE_ITERABLE, GeeIterable));
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _file_it = _tmp2_;
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (TRUE) {
-#line 2867 "Tombstone.c"
- GeeIterator* _tmp3_;
- TombstonedFile* file = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- Tombstone* tombstone = NULL;
- TombstoneSourceCollection* _tmp6_;
- TombstonedFile* _tmp7_;
- GFile* _tmp8_;
- Tombstone* _tmp9_;
- Tombstone* _tmp10_;
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = _file_it;
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 2884 "Tombstone.c"
- }
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = _file_it;
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- file = (TombstonedFile*) _tmp5_;
-#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp6_ = tombstone_global;
-#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp7_ = file;
-#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp8_ = _tmp7_->file;
-#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp9_ = tombstone_source_collection_locate (_tmp6_, _tmp8_);
-#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone = _tmp9_;
-#line 245 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp10_ = tombstone;
-#line 245 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_tmp10_ != NULL) {
-#line 2906 "Tombstone.c"
- Marker* _tmp11_;
- Tombstone* _tmp12_;
-#line 246 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp11_ = to_destroy;
-#line 246 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp12_ = tombstone;
-#line 246 "/home/jens/Source/shotwell/src/Tombstone.vala"
- marker_mark (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
-#line 2915 "Tombstone.c"
- }
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (tombstone);
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstoned_file_unref0 (file);
-#line 2921 "Tombstone.c"
- }
-#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_file_it);
-#line 2925 "Tombstone.c"
- }
-#line 249 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp13_ = tombstone_global;
-#line 249 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp14_ = to_destroy;
-#line 249 "/home/jens/Source/shotwell/src/Tombstone.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp14_, FALSE, NULL, NULL, NULL);
-#line 251 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp15_ = gee_array_list_new (TYPE_TOMBSTONE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 251 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstones = _tmp15_;
-#line 2937 "Tombstone.c"
- {
- GeeIterator* _file_it = NULL;
- GeeIterator* _tmp16_;
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (files, GEE_TYPE_ITERABLE, GeeIterable));
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _file_it = _tmp16_;
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- while (TRUE) {
-#line 2947 "Tombstone.c"
- GeeIterator* _tmp17_;
- TombstonedFile* file = NULL;
- GeeIterator* _tmp18_;
- gpointer _tmp19_;
- TombstoneRow* _tmp20_ = NULL;
- TombstoneTable* _tmp21_;
- TombstoneTable* _tmp22_;
- TombstonedFile* _tmp23_;
- GFile* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- TombstonedFile* _tmp27_;
- gint64 _tmp28_;
- TombstonedFile* _tmp29_;
- const gchar* _tmp30_;
- TombstoneRow* _tmp31_;
- TombstoneRow* _tmp32_;
- GeeArrayList* _tmp33_;
- Tombstone* _tmp34_;
- Tombstone* _tmp35_;
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp17_ = _file_it;
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (!gee_iterator_next (_tmp17_)) {
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- break;
-#line 2974 "Tombstone.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp18_ = _file_it;
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp19_ = gee_iterator_get (_tmp18_);
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- file = (TombstonedFile*) _tmp19_;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp21_ = tombstone_table_get_instance ();
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp22_ = _tmp21_;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp23_ = file;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp24_ = _tmp23_->file;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp25_ = g_file_get_path (_tmp24_);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp26_ = _tmp25_;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp27_ = file;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp28_ = _tmp27_->filesize;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp29_ = file;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp30_ = _tmp29_->md5;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp31_ = tombstone_table_add (_tmp22_, _tmp26_, _tmp28_, _tmp30_, reason, &_inner_error_);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp32_ = _tmp31_;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (_tmp26_);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _database_table_unref0 (_tmp22_);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp20_ = _tmp32_;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_propagate_error (error, _inner_error_);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstoned_file_unref0 (file);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_file_it);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (tombstones);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (to_destroy);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 3028 "Tombstone.c"
- } else {
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstoned_file_unref0 (file);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_file_it);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (tombstones);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (to_destroy);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.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 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 3044 "Tombstone.c"
- }
- }
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp33_ = tombstones;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp34_ = tombstone_new (_tmp20_);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp35_ = _tmp34_;
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp35_);
-#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp35_);
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstone_row_unref0 (_tmp20_);
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstoned_file_unref0 (file);
-#line 3061 "Tombstone.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_file_it);
-#line 3065 "Tombstone.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp36_ = tombstone_global;
-#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp37_ = tombstones;
-#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp38_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp39_ = _tmp38_;
-#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp39_);
-#line 239 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (tombstones);
-#line 239 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (to_destroy);
-#line 3081 "Tombstone.c"
-}
-
-
-static gchar*
-tombstone_real_get_typename (DataSource* base)
-{
- Tombstone * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 260 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone);
-#line 261 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = g_strdup ("tombstone");
-#line 261 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = _tmp0_;
-#line 261 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3099 "Tombstone.c"
-}
-
-
-static gint64
-tombstone_real_get_instance_id (DataSource* base)
-{
- Tombstone * self;
- gint64 result = 0LL;
- TombstoneID _tmp0_ = {0};
- gint64 _tmp1_;
-#line 264 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone);
-#line 265 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_get_tombstone_id (self, &_tmp0_);
-#line 265 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_.id;
-#line 265 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = _tmp1_;
-#line 265 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3120 "Tombstone.c"
-}
-
-
-static gchar*
-tombstone_real_get_name (DataObject* base)
-{
- Tombstone * self;
- gchar* result = NULL;
- TombstoneRow* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 268 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone);
-#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = self->priv->row;
-#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_->filepath;
-#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = _tmp2_;
-#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3144 "Tombstone.c"
-}
-
-
-static gchar*
-tombstone_real_to_string (DataObject* base)
-{
- Tombstone * self;
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 272 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone);
-#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_;
-#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = g_strdup_printf ("Tombstone %s", _tmp1_);
-#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = _tmp2_;
-#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (_tmp1_);
-#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = _tmp3_;
-#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3173 "Tombstone.c"
-}
-
-
-void
-tombstone_get_tombstone_id (Tombstone* self,
- TombstoneID* result)
-{
- TombstoneRow* _tmp0_;
- TombstoneID _tmp1_;
-#line 276 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (IS_TOMBSTONE (self));
-#line 277 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = self->priv->row;
-#line 277 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_->id;
-#line 277 "/home/jens/Source/shotwell/src/Tombstone.vala"
- *result = _tmp1_;
-#line 277 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 3193 "Tombstone.c"
-}
-
-
-GFile*
-tombstone_get_file (Tombstone* self)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp4_;
- GFile* _tmp5_;
-#line 280 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_TOMBSTONE (self), NULL);
-#line 281 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = self->priv->file;
-#line 281 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_tmp0_ == NULL) {
-#line 3210 "Tombstone.c"
- TombstoneRow* _tmp1_;
- const gchar* _tmp2_;
- GFile* _tmp3_;
-#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = self->priv->row;
-#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = _tmp1_->filepath;
-#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (self->priv->file);
-#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->priv->file = _tmp3_;
-#line 3224 "Tombstone.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = self->priv->file;
-#line 284 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 284 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = _tmp5_;
-#line 284 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3234 "Tombstone.c"
-}
-
-
-gchar*
-tombstone_get_md5 (Tombstone* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- TombstoneRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp5_;
-#line 287 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_TOMBSTONE (self), NULL);
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = self->priv->row;
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = _tmp1_->md5;
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (is_string_empty (_tmp2_)) {
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = NULL;
-#line 3256 "Tombstone.c"
- } else {
- TombstoneRow* _tmp3_;
- const gchar* _tmp4_;
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = self->priv->row;
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = _tmp3_->md5;
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = _tmp4_;
-#line 3266 "Tombstone.c"
- }
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = g_strdup (_tmp0_);
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = _tmp5_;
-#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3274 "Tombstone.c"
-}
-
-
-TombstoneReason
-tombstone_get_reason (Tombstone* self)
-{
- TombstoneReason result = 0;
- TombstoneRow* _tmp0_;
- TombstoneReason _tmp1_;
-#line 291 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_TOMBSTONE (self), 0);
-#line 292 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = self->priv->row;
-#line 292 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_->reason;
-#line 292 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = _tmp1_;
-#line 292 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3294 "Tombstone.c"
-}
-
-
-void
-tombstone_move (Tombstone* self,
- GFile* file)
-{
- gchar* old_filepath = NULL;
- TombstoneRow* _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
- TombstoneRow* _tmp10_;
- gchar* _tmp11_;
- GFile* _tmp12_;
- Alteration* _tmp13_;
- Alteration* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 295 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (IS_TOMBSTONE (self));
-#line 295 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 3316 "Tombstone.c"
- {
- TombstoneTable* _tmp0_;
- TombstoneTable* _tmp1_;
- TombstoneRow* _tmp2_;
- TombstoneID _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = tombstone_table_get_instance ();
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_;
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = self->priv->row;
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = _tmp2_->id;
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = g_file_get_path (file);
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = _tmp4_;
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_table_update_file (_tmp1_, &_tmp3_, _tmp5_, &_inner_error_);
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (_tmp5_);
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _database_table_unref0 (_tmp1_);
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 3346 "Tombstone.c"
- goto __catch561_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);
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 3355 "Tombstone.c"
- }
- }
- goto __finally561;
- __catch561_database_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
-#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala"
- err = _inner_error_;
-#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _inner_error_ = NULL;
-#line 299 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp6_ = err;
-#line 299 "/home/jens/Source/shotwell/src/Tombstone.vala"
- app_window_database_error (_tmp6_);
-#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_error_free0 (err);
-#line 3373 "Tombstone.c"
- }
- __finally561:
-#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 296 "/home/jens/Source/shotwell/src/Tombstone.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 296 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 3384 "Tombstone.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp7_ = self->priv->row;
-#line 302 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp8_ = _tmp7_->filepath;
-#line 302 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 302 "/home/jens/Source/shotwell/src/Tombstone.vala"
- old_filepath = _tmp9_;
-#line 303 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp10_ = self->priv->row;
-#line 303 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp11_ = g_file_get_path (file);
-#line 303 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (_tmp10_->filepath);
-#line 303 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp10_->filepath = _tmp11_;
-#line 304 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp12_ = _g_object_ref0 (file);
-#line 304 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (self->priv->file);
-#line 304 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->priv->file = _tmp12_;
-#line 306 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp13_ = alteration_new ("file", old_filepath);
-#line 306 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp14_ = _tmp13_;
-#line 306 "/home/jens/Source/shotwell/src/Tombstone.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp14_);
-#line 306 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _alteration_unref0 (_tmp14_);
-#line 295 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (old_filepath);
-#line 3418 "Tombstone.c"
-}
-
-
-gboolean
-tombstone_matches (Tombstone* self,
- GFile* file,
- gint64 filesize,
- const gchar* md5)
-{
- gboolean result = FALSE;
- TombstoneRow* _tmp0_;
- gint64 _tmp1_;
- const gchar* _tmp2_ = NULL;
- TombstoneRow* _tmp3_;
- const gchar* _tmp4_;
- gchar* this_md5 = NULL;
- gchar* _tmp7_;
- const gchar* _tmp8_ = NULL;
- gchar* other_md5 = NULL;
- gchar* _tmp9_;
- const gchar* _tmp10_;
- const gchar* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
- gboolean _tmp14_;
-#line 309 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (IS_TOMBSTONE (self), FALSE);
-#line 309 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 310 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = self->priv->row;
-#line 310 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_->filesize;
-#line 310 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_tmp1_ != filesize) {
-#line 311 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = FALSE;
-#line 311 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3458 "Tombstone.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = self->priv->row;
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = _tmp3_->md5;
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (is_string_empty (_tmp4_)) {
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = NULL;
-#line 3468 "Tombstone.c"
- } else {
- TombstoneRow* _tmp5_;
- const gchar* _tmp6_;
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp5_ = self->priv->row;
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp6_ = _tmp5_->md5;
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = _tmp6_;
-#line 3478 "Tombstone.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp7_ = g_strdup (_tmp2_);
-#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala"
- this_md5 = _tmp7_;
-#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (is_string_empty (md5)) {
-#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp8_ = NULL;
-#line 3488 "Tombstone.c"
- } else {
-#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp8_ = md5;
-#line 3492 "Tombstone.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala"
- other_md5 = _tmp9_;
-#line 317 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp10_ = this_md5;
-#line 317 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp11_ = other_md5;
-#line 317 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (g_strcmp0 (_tmp10_, _tmp11_) != 0) {
-#line 318 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = FALSE;
-#line 318 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (other_md5);
-#line 318 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (this_md5);
-#line 318 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3512 "Tombstone.c"
- }
-#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp12_ = tombstone_get_file (self);
-#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp13_ = _tmp12_;
-#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp14_ = !g_file_equal (_tmp13_, file);
-#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (_tmp13_);
-#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_tmp14_) {
-#line 321 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = FALSE;
-#line 321 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (other_md5);
-#line 321 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (this_md5);
-#line 321 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3532 "Tombstone.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/Tombstone.vala"
- result = TRUE;
-#line 323 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (other_md5);
-#line 323 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_free0 (this_md5);
-#line 323 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return result;
-#line 3542 "Tombstone.c"
-}
-
-
-static void
-tombstone_real_destroy (DataSource* base)
-{
- Tombstone * self;
- GError * _inner_error_ = NULL;
-#line 326 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone);
-#line 3553 "Tombstone.c"
- {
- TombstoneTable* _tmp0_;
- TombstoneTable* _tmp1_;
- TombstoneRow* _tmp2_;
- TombstoneID _tmp3_;
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp0_ = tombstone_table_get_instance ();
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp1_ = _tmp0_;
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp2_ = self->priv->row;
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp3_ = _tmp2_->id;
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_table_remove (_tmp1_, &_tmp3_, &_inner_error_);
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _database_table_unref0 (_tmp1_);
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 3575 "Tombstone.c"
- goto __catch562_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);
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 3584 "Tombstone.c"
- }
- }
- goto __finally562;
- __catch562_database_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala"
- err = _inner_error_;
-#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _inner_error_ = NULL;
-#line 330 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tmp4_ = err;
-#line 330 "/home/jens/Source/shotwell/src/Tombstone.vala"
- app_window_database_error (_tmp4_);
-#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_error_free0 (err);
-#line 3602 "Tombstone.c"
- }
- __finally562:
-#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 327 "/home/jens/Source/shotwell/src/Tombstone.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 327 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_clear_error (&_inner_error_);
-#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala"
- return;
-#line 3613 "Tombstone.c"
- }
-#line 333 "/home/jens/Source/shotwell/src/Tombstone.vala"
- DATA_SOURCE_CLASS (tombstone_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
-#line 3617 "Tombstone.c"
-}
-
-
-static void
-tombstone_class_init (TombstoneClass * klass)
-{
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- tombstone_parent_class = g_type_class_peek_parent (klass);
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- g_type_class_add_private (klass, sizeof (TombstonePrivate));
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) tombstone_real_get_typename;
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) tombstone_real_get_instance_id;
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) tombstone_real_get_name;
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) tombstone_real_to_string;
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) tombstone_real_destroy;
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- G_OBJECT_CLASS (klass)->finalize = tombstone_finalize;
-#line 3640 "Tombstone.c"
-}
-
-
-static void
-tombstone_instance_init (Tombstone * self)
-{
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->priv = TOMBSTONE_GET_PRIVATE (self);
-#line 200 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self->priv->file = NULL;
-#line 3651 "Tombstone.c"
-}
-
-
-static void
-tombstone_finalize (GObject * obj)
-{
- Tombstone * self;
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONE, Tombstone);
-#line 199 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _tombstone_row_unref0 (self->priv->row);
-#line 200 "/home/jens/Source/shotwell/src/Tombstone.vala"
- _g_object_unref0 (self->priv->file);
-#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala"
- G_OBJECT_CLASS (tombstone_parent_class)->finalize (obj);
-#line 3667 "Tombstone.c"
-}
-
-
-GType
-tombstone_get_type (void)
-{
- static volatile gsize tombstone_type_id__volatile = 0;
- if (g_once_init_enter (&tombstone_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TombstoneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstone_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Tombstone), 0, (GInstanceInitFunc) tombstone_instance_init, NULL };
- GType tombstone_type_id;
- tombstone_type_id = g_type_register_static (TYPE_DATA_SOURCE, "Tombstone", &g_define_type_info, 0);
- g_once_init_leave (&tombstone_type_id__volatile, tombstone_type_id);
- }
- return tombstone_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/Upgrades.c b/src/Upgrades.c
deleted file mode 100644
index f8844af..0000000
--- a/src/Upgrades.c
+++ /dev/null
@@ -1,1755 +0,0 @@
-/* Upgrades.c generated by valac 0.40.4, the Vala compiler
- * generated from Upgrades.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* Class for aggregating one-off "upgrade" tasks that occur at startup, such as*/
-/* moving or deleting files. This occurs after the UI is shown, so it's not appropriate*/
-/* for database updates and such.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include "shotwell-graphics-processor.h"
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_UPGRADES (upgrades_get_type ())
-#define UPGRADES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UPGRADES, Upgrades))
-#define UPGRADES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_UPGRADES, UpgradesClass))
-#define IS_UPGRADES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UPGRADES))
-#define IS_UPGRADES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_UPGRADES))
-#define UPGRADES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_UPGRADES, UpgradesClass))
-
-typedef struct _Upgrades Upgrades;
-typedef struct _UpgradesClass UpgradesClass;
-typedef struct _UpgradesPrivate UpgradesPrivate;
-
-#define TYPE_UPGRADE_TASK (upgrade_task_get_type ())
-#define UPGRADE_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UPGRADE_TASK, UpgradeTask))
-#define IS_UPGRADE_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UPGRADE_TASK))
-#define UPGRADE_TASK_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_UPGRADE_TASK, UpgradeTaskIface))
-
-typedef struct _UpgradeTask UpgradeTask;
-typedef struct _UpgradeTaskIface UpgradeTaskIface;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_MIMICS_REMOVAL_TASK (mimics_removal_task_get_type ())
-#define MIMICS_REMOVAL_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTask))
-#define MIMICS_REMOVAL_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTaskClass))
-#define IS_MIMICS_REMOVAL_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MIMICS_REMOVAL_TASK))
-#define IS_MIMICS_REMOVAL_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MIMICS_REMOVAL_TASK))
-#define MIMICS_REMOVAL_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTaskClass))
-
-typedef struct _MimicsRemovalTask MimicsRemovalTask;
-typedef struct _MimicsRemovalTaskClass MimicsRemovalTaskClass;
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-
-#define TYPE_FIXUP_RAW_THUMBNAILS_TASK (fixup_raw_thumbnails_task_get_type ())
-#define FIXUP_RAW_THUMBNAILS_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTask))
-#define FIXUP_RAW_THUMBNAILS_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTaskClass))
-#define IS_FIXUP_RAW_THUMBNAILS_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FIXUP_RAW_THUMBNAILS_TASK))
-#define IS_FIXUP_RAW_THUMBNAILS_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FIXUP_RAW_THUMBNAILS_TASK))
-#define FIXUP_RAW_THUMBNAILS_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTaskClass))
-
-typedef struct _FixupRawThumbnailsTask FixupRawThumbnailsTask;
-typedef struct _FixupRawThumbnailsTaskClass FixupRawThumbnailsTaskClass;
-#define _upgrades_unref0(var) ((var == NULL) ? NULL : (var = (upgrades_unref (var), NULL)))
-typedef struct _ParamSpecUpgrades ParamSpecUpgrades;
-typedef struct _MimicsRemovalTaskPrivate MimicsRemovalTaskPrivate;
-enum {
- MIMICS_REMOVAL_TASK_0_PROPERTY,
- MIMICS_REMOVAL_TASK_NUM_PROPERTIES
-};
-static GParamSpec* mimics_removal_task_properties[MIMICS_REMOVAL_TASK_NUM_PROPERTIES];
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _FixupRawThumbnailsTaskPrivate FixupRawThumbnailsTaskPrivate;
-enum {
- FIXUP_RAW_THUMBNAILS_TASK_0_PROPERTY,
- FIXUP_RAW_THUMBNAILS_TASK_NUM_PROPERTIES
-};
-static GParamSpec* fixup_raw_thumbnails_task_properties[FIXUP_RAW_THUMBNAILS_TASK_NUM_PROPERTIES];
-
-#define TYPE_PHOTO_ROW (photo_row_get_type ())
-#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow))
-#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass))
-#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW))
-#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW))
-#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass))
-
-typedef struct _PhotoRow PhotoRow;
-typedef struct _PhotoRowClass PhotoRowClass;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_PHOTO_TABLE (photo_table_get_type ())
-#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable))
-#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass))
-#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE))
-#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE))
-#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass))
-
-typedef struct _PhotoTable PhotoTable;
-typedef struct _PhotoTableClass PhotoTableClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-typedef struct _PhotoRowPrivate PhotoRowPrivate;
-
-#define TYPE_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _photo_row_unref0(var) ((var == NULL) ? NULL : (var = (photo_row_unref (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-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 _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Upgrades {
- GTypeInstance parent_instance;
- volatile int ref_count;
- UpgradesPrivate * priv;
-};
-
-struct _UpgradesClass {
- GTypeClass parent_class;
- void (*finalize) (Upgrades *self);
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _UpgradeTaskIface {
- GTypeInterface parent_iface;
- guint64 (*get_step_count) (UpgradeTask* self);
- void (*execute) (UpgradeTask* self, ProgressMonitor monitor, void* monitor_target);
-};
-
-struct _UpgradesPrivate {
- guint64 total_steps;
- GeeLinkedList* task_list;
-};
-
-struct _ParamSpecUpgrades {
- GParamSpec parent_instance;
-};
-
-struct _MimicsRemovalTask {
- GObject parent_instance;
- MimicsRemovalTaskPrivate * priv;
-};
-
-struct _MimicsRemovalTaskClass {
- GObjectClass parent_class;
-};
-
-struct _MimicsRemovalTaskPrivate {
- GFile* mimic_dir;
- guint64 num_mimics;
-};
-
-struct _FixupRawThumbnailsTask {
- GObject parent_instance;
- FixupRawThumbnailsTaskPrivate * priv;
-};
-
-struct _FixupRawThumbnailsTaskClass {
- GObjectClass parent_class;
-};
-
-struct _PhotoID {
- gint64 id;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _EventID {
- gint64 id;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _PhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoRowPrivate * priv;
- PhotoID photo_id;
- BackingPhotoRow* master;
- time_t exposure_time;
- ImportID import_id;
- EventID event_id;
- Orientation orientation;
- GeeHashMap* transformations;
- gchar* md5;
- gchar* thumbnail_md5;
- gchar* exif_md5;
- time_t time_created;
- guint64 flags;
- Rating rating;
- gchar* title;
- gchar* comment;
- gchar* backlinks;
- time_t time_reimported;
- BackingPhotoID editable_id;
- gboolean metadata_dirty;
- RawDeveloper developer;
- BackingPhotoID* development_ids;
- gint development_ids_length1;
-};
-
-struct _PhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoRow *self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-
-static gpointer upgrades_parent_class = NULL;
-static Upgrades* upgrades_instance;
-static Upgrades* upgrades_instance = NULL;
-static gpointer mimics_removal_task_parent_class = NULL;
-static UpgradeTaskIface * mimics_removal_task_upgrade_task_parent_iface = NULL;
-static gpointer fixup_raw_thumbnails_task_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-static UpgradeTaskIface * fixup_raw_thumbnails_task_upgrade_task_parent_iface = NULL;
-
-gpointer upgrades_ref (gpointer instance);
-void upgrades_unref (gpointer instance);
-GParamSpec* param_spec_upgrades (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_upgrades (GValue* value,
- gpointer v_object);
-void value_take_upgrades (GValue* value,
- gpointer v_object);
-gpointer value_get_upgrades (const GValue* value);
-GType upgrades_get_type (void) G_GNUC_CONST;
-GType upgrade_task_get_type (void) G_GNUC_CONST;
-#define UPGRADES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_UPGRADES, UpgradesPrivate))
-static Upgrades* upgrades_new (void);
-static Upgrades* upgrades_construct (GType object_type);
-static void upgrades_add (Upgrades* self,
- UpgradeTask* task);
-MimicsRemovalTask* mimics_removal_task_new (void);
-MimicsRemovalTask* mimics_removal_task_construct (GType object_type);
-GType mimics_removal_task_get_type (void) G_GNUC_CONST;
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-gboolean application_get_raw_thumbs_fix_required (Application* self);
-FixupRawThumbnailsTask* fixup_raw_thumbnails_task_new (void);
-FixupRawThumbnailsTask* fixup_raw_thumbnails_task_construct (GType object_type);
-GType fixup_raw_thumbnails_task_get_type (void) G_GNUC_CONST;
-void upgrades_init (void);
-Upgrades* upgrades_get_instance (void);
-guint64 upgrades_get_step_count (Upgrades* self);
-void upgrades_execute (Upgrades* self,
- ProgressMonitor monitor,
- void* monitor_target);
-void upgrade_task_execute (UpgradeTask* self,
- ProgressMonitor monitor,
- void* monitor_target);
-guint64 upgrade_task_get_step_count (UpgradeTask* self);
-static void upgrades_finalize (Upgrades * obj);
-#define MIMICS_REMOVAL_TASK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTaskPrivate))
-GFile* app_dirs_get_data_dir (void);
-static guint64 mimics_removal_task_real_get_step_count (UpgradeTask* base);
-guint64 count_files_in_directory (GFile* dir,
- GError** error);
-static void mimics_removal_task_real_execute (UpgradeTask* base,
- ProgressMonitor monitor,
- void* monitor_target);
-void delete_all_files (GFile* dir,
- GeeSet* exceptions,
- ProgressMonitor monitor,
- void* monitor_target,
- guint64 file_count,
- GCancellable* cancellable,
- GError** error);
-static void mimics_removal_task_finalize (GObject * obj);
-static guint64 fixup_raw_thumbnails_task_real_get_step_count (UpgradeTask* base);
-gpointer photo_row_ref (gpointer instance);
-void photo_row_unref (gpointer instance);
-GParamSpec* param_spec_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_row (GValue* value,
- gpointer v_object);
-void value_take_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_row (const GValue* value);
-GType photo_row_get_type (void) G_GNUC_CONST;
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType photo_table_get_type (void) G_GNUC_CONST;
-PhotoTable* photo_table_get_instance (void);
-GeeArrayList* photo_table_get_all (PhotoTable* self);
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-GType orientation_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-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);
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-static void fixup_raw_thumbnails_task_real_execute (UpgradeTask* base,
- ProgressMonitor monitor,
- void* monitor_target);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-void thumbnail_cache_remove (ThumbnailSource* source);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-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;
-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);
-
-
-static Upgrades*
-upgrades_construct (GType object_type)
-{
- Upgrades* self = NULL;
- MimicsRemovalTask* _tmp0_;
- MimicsRemovalTask* _tmp1_;
- Application* _tmp2_;
- Application* _tmp3_;
- gboolean _tmp4_;
-#line 15 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = (Upgrades*) g_type_create_instance (object_type);
-#line 17 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = mimics_removal_task_new ();
-#line 17 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrades_add (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_UPGRADE_TASK, UpgradeTask));
-#line 17 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (_tmp1_);
-#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp2_ = application_get_instance ();
-#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp3_ = _tmp2_;
-#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp4_ = application_get_raw_thumbs_fix_required (_tmp3_);
-#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _application_unref0 (_tmp3_);
-#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (_tmp4_) {
-#line 644 "Upgrades.c"
- FixupRawThumbnailsTask* _tmp5_;
- FixupRawThumbnailsTask* _tmp6_;
-#line 20 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp5_ = fixup_raw_thumbnails_task_new ();
-#line 20 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp6_ = _tmp5_;
-#line 20 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrades_add (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_UPGRADE_TASK, UpgradeTask));
-#line 20 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (_tmp6_);
-#line 655 "Upgrades.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return self;
-#line 659 "Upgrades.c"
-}
-
-
-static Upgrades*
-upgrades_new (void)
-{
-#line 15 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return upgrades_construct (TYPE_UPGRADES);
-#line 668 "Upgrades.c"
-}
-
-
-void
-upgrades_init (void)
-{
- Upgrades* _tmp0_;
- Upgrades* _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = upgrades_instance;
-#line 25 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _vala_assert (_tmp0_ == NULL, "instance == null");
-#line 26 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = upgrades_new ();
-#line 26 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _upgrades_unref0 (upgrades_instance);
-#line 26 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrades_instance = _tmp1_;
-#line 687 "Upgrades.c"
-}
-
-
-static gpointer
-_upgrades_ref0 (gpointer self)
-{
-#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return self ? upgrades_ref (self) : NULL;
-#line 696 "Upgrades.c"
-}
-
-
-Upgrades*
-upgrades_get_instance (void)
-{
- Upgrades* result = NULL;
- Upgrades* _tmp0_;
- Upgrades* _tmp1_;
-#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = upgrades_instance;
-#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = _upgrades_ref0 (_tmp0_);
-#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala"
- result = _tmp1_;
-#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return result;
-#line 714 "Upgrades.c"
-}
-
-
-guint64
-upgrades_get_step_count (Upgrades* self)
-{
- guint64 result = 0ULL;
- guint64 _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_val_if_fail (IS_UPGRADES (self), 0ULL);
-#line 35 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = self->priv->total_steps;
-#line 35 "/home/jens/Source/shotwell/src/Upgrades.vala"
- result = _tmp0_;
-#line 35 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return result;
-#line 731 "Upgrades.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return self ? g_object_ref (self) : NULL;
-#line 740 "Upgrades.c"
-}
-
-
-void
-upgrades_execute (Upgrades* self,
- ProgressMonitor monitor,
- void* monitor_target)
-{
-#line 39 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (IS_UPGRADES (self));
-#line 751 "Upgrades.c"
- {
- GeeLinkedList* _task_list = NULL;
- GeeLinkedList* _tmp0_;
- GeeLinkedList* _tmp1_;
- gint _task_size = 0;
- GeeLinkedList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _task_index = 0;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = self->priv->task_list;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _task_list = _tmp1_;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp2_ = _task_list;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp4_ = _tmp3_;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _task_size = _tmp4_;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _task_index = -1;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- while (TRUE) {
-#line 779 "Upgrades.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- UpgradeTask* task = NULL;
- GeeLinkedList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- UpgradeTask* _tmp11_;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp5_ = _task_index;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _task_index = _tmp5_ + 1;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp6_ = _task_index;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp7_ = _task_size;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- break;
-#line 800 "Upgrades.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp8_ = _task_list;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp9_ = _task_index;
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- task = (UpgradeTask*) _tmp10_;
-#line 41 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp11_ = task;
-#line 41 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrade_task_execute (_tmp11_, monitor, monitor_target);
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (task);
-#line 816 "Upgrades.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (_task_list);
-#line 820 "Upgrades.c"
- }
-}
-
-
-static void
-upgrades_add (Upgrades* self,
- UpgradeTask* task)
-{
- guint64 _tmp0_;
- GeeLinkedList* _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (IS_UPGRADES (self));
-#line 44 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (IS_UPGRADE_TASK (task));
-#line 45 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = self->priv->total_steps;
-#line 45 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->priv->total_steps = _tmp0_ + upgrade_task_get_step_count (task);
-#line 46 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = self->priv->task_list;
-#line 46 "/home/jens/Source/shotwell/src/Upgrades.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), task);
-#line 843 "Upgrades.c"
-}
-
-
-static void
-value_upgrades_init (GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- value->data[0].v_pointer = NULL;
-#line 852 "Upgrades.c"
-}
-
-
-static void
-value_upgrades_free_value (GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrades_unref (value->data[0].v_pointer);
-#line 863 "Upgrades.c"
- }
-}
-
-
-static void
-value_upgrades_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (src_value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- dest_value->data[0].v_pointer = upgrades_ref (src_value->data[0].v_pointer);
-#line 876 "Upgrades.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 880 "Upgrades.c"
- }
-}
-
-
-static gpointer
-value_upgrades_peek_pointer (const GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return value->data[0].v_pointer;
-#line 890 "Upgrades.c"
-}
-
-
-static gchar*
-value_upgrades_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (collect_values[0].v_pointer) {
-#line 902 "Upgrades.c"
- Upgrades * object;
- object = collect_values[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 909 "Upgrades.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.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 913 "Upgrades.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- value->data[0].v_pointer = upgrades_ref (object);
-#line 917 "Upgrades.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- value->data[0].v_pointer = NULL;
-#line 921 "Upgrades.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return NULL;
-#line 925 "Upgrades.c"
-}
-
-
-static gchar*
-value_upgrades_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- Upgrades ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (!object_p) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 941 "Upgrades.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (!value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- *object_p = NULL;
-#line 947 "Upgrades.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- *object_p = value->data[0].v_pointer;
-#line 951 "Upgrades.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- *object_p = upgrades_ref (value->data[0].v_pointer);
-#line 955 "Upgrades.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return NULL;
-#line 959 "Upgrades.c"
-}
-
-
-GParamSpec*
-param_spec_upgrades (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecUpgrades* spec;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_UPGRADES), NULL);
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return G_PARAM_SPEC (spec);
-#line 979 "Upgrades.c"
-}
-
-
-gpointer
-value_get_upgrades (const GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UPGRADES), NULL);
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return value->data[0].v_pointer;
-#line 990 "Upgrades.c"
-}
-
-
-void
-value_set_upgrades (GValue* value,
- gpointer v_object)
-{
- Upgrades * old;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UPGRADES));
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- old = value->data[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (v_object) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UPGRADES));
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- value->data[0].v_pointer = v_object;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrades_ref (value->data[0].v_pointer);
-#line 1013 "Upgrades.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- value->data[0].v_pointer = NULL;
-#line 1017 "Upgrades.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (old) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrades_unref (old);
-#line 1023 "Upgrades.c"
- }
-}
-
-
-void
-value_take_upgrades (GValue* value,
- gpointer v_object)
-{
- Upgrades * old;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UPGRADES));
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- old = value->data[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (v_object) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UPGRADES));
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- value->data[0].v_pointer = v_object;
-#line 1045 "Upgrades.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- value->data[0].v_pointer = NULL;
-#line 1049 "Upgrades.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (old) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrades_unref (old);
-#line 1055 "Upgrades.c"
- }
-}
-
-
-static void
-upgrades_class_init (UpgradesClass * klass)
-{
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- upgrades_parent_class = g_type_class_peek_parent (klass);
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- ((UpgradesClass *) klass)->finalize = upgrades_finalize;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_type_class_add_private (klass, sizeof (UpgradesPrivate));
-#line 1069 "Upgrades.c"
-}
-
-
-static void
-upgrades_instance_init (Upgrades * self)
-{
- GeeLinkedList* _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->priv = UPGRADES_GET_PRIVATE (self);
-#line 12 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->priv->total_steps = (guint64) 0;
-#line 13 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = gee_linked_list_new (TYPE_UPGRADE_TASK, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 13 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->priv->task_list = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->ref_count = 1;
-#line 1087 "Upgrades.c"
-}
-
-
-static void
-upgrades_finalize (Upgrades * obj)
-{
- Upgrades * self;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_UPGRADES, Upgrades);
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_signal_handlers_destroy (self);
-#line 13 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (self->priv->task_list);
-#line 1101 "Upgrades.c"
-}
-
-
-GType
-upgrades_get_type (void)
-{
- static volatile gsize upgrades_type_id__volatile = 0;
- if (g_once_init_enter (&upgrades_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_upgrades_init, value_upgrades_free_value, value_upgrades_copy_value, value_upgrades_peek_pointer, "p", value_upgrades_collect_value, "p", value_upgrades_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (UpgradesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) upgrades_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Upgrades), 0, (GInstanceInitFunc) upgrades_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType upgrades_type_id;
- upgrades_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Upgrades", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&upgrades_type_id__volatile, upgrades_type_id);
- }
- return upgrades_type_id__volatile;
-}
-
-
-gpointer
-upgrades_ref (gpointer instance)
-{
- Upgrades * self;
- self = instance;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return instance;
-#line 1130 "Upgrades.c"
-}
-
-
-void
-upgrades_unref (gpointer instance)
-{
- Upgrades * self;
- self = instance;
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- UPGRADES_GET_CLASS (self)->finalize (self);
-#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1145 "Upgrades.c"
- }
-}
-
-
-guint64
-upgrade_task_get_step_count (UpgradeTask* self)
-{
-#line 55 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_val_if_fail (IS_UPGRADE_TASK (self), 0ULL);
-#line 55 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return UPGRADE_TASK_GET_INTERFACE (self)->get_step_count (self);
-#line 1157 "Upgrades.c"
-}
-
-
-void
-upgrade_task_execute (UpgradeTask* self,
- ProgressMonitor monitor,
- void* monitor_target)
-{
-#line 60 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_return_if_fail (IS_UPGRADE_TASK (self));
-#line 60 "/home/jens/Source/shotwell/src/Upgrades.vala"
- UPGRADE_TASK_GET_INTERFACE (self)->execute (self, monitor, monitor_target);
-#line 1170 "Upgrades.c"
-}
-
-
-static void
-upgrade_task_base_init (UpgradeTaskIface * iface)
-{
-#line 53 "/home/jens/Source/shotwell/src/Upgrades.vala"
- static gboolean initialized = FALSE;
-#line 53 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (!initialized) {
-#line 53 "/home/jens/Source/shotwell/src/Upgrades.vala"
- initialized = TRUE;
-#line 1183 "Upgrades.c"
- }
-}
-
-
-GType
-upgrade_task_get_type (void)
-{
- static volatile gsize upgrade_task_type_id__volatile = 0;
- if (g_once_init_enter (&upgrade_task_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (UpgradeTaskIface), (GBaseInitFunc) upgrade_task_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType upgrade_task_type_id;
- upgrade_task_type_id = g_type_register_static (G_TYPE_INTERFACE, "UpgradeTask", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (upgrade_task_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&upgrade_task_type_id__volatile, upgrade_task_type_id);
- }
- return upgrade_task_type_id__volatile;
-}
-
-
-static guint64
-mimics_removal_task_real_get_step_count (UpgradeTask* base)
-{
- MimicsRemovalTask * self;
- guint64 result = 0ULL;
- guint64 _tmp5_;
- GError * _inner_error_ = NULL;
-#line 71 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTask);
-#line 1212 "Upgrades.c"
- {
- guint64 _tmp0_ = 0ULL;
- GFile* _tmp1_;
-#line 73 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = self->priv->mimic_dir;
-#line 73 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = count_files_in_directory (_tmp1_, &_inner_error_);
-#line 73 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1222 "Upgrades.c"
- goto __catch604_g_error;
- }
-#line 73 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->priv->num_mimics = _tmp0_;
-#line 1227 "Upgrades.c"
- }
- goto __finally604;
- __catch604_g_error:
- {
- GError* e = NULL;
- GError* _tmp2_;
- const gchar* _tmp3_;
-#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala"
- e = _inner_error_;
-#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _inner_error_ = NULL;
-#line 75 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp2_ = e;
-#line 75 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp3_ = _tmp2_->message;
-#line 75 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_debug ("Upgrades.vala:75: Error on deleting mimics: %s", _tmp3_);
-#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_error_free0 (e);
-#line 1247 "Upgrades.c"
- }
- __finally604:
-#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1252 "Upgrades.c"
- guint64 _tmp4_ = 0ULL;
-#line 72 "/home/jens/Source/shotwell/src/Upgrades.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 72 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_clear_error (&_inner_error_);
-#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return _tmp4_;
-#line 1260 "Upgrades.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp5_ = self->priv->num_mimics;
-#line 77 "/home/jens/Source/shotwell/src/Upgrades.vala"
- result = _tmp5_;
-#line 77 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return result;
-#line 1268 "Upgrades.c"
-}
-
-
-static void
-mimics_removal_task_real_execute (UpgradeTask* base,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- MimicsRemovalTask * self;
- GError * _inner_error_ = NULL;
-#line 80 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTask);
-#line 1281 "Upgrades.c"
- {
- GFile* _tmp0_;
- guint64 _tmp1_;
- GFile* _tmp2_;
-#line 82 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = self->priv->mimic_dir;
-#line 82 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = self->priv->num_mimics;
-#line 82 "/home/jens/Source/shotwell/src/Upgrades.vala"
- delete_all_files (_tmp0_, NULL, monitor, monitor_target, _tmp1_, NULL, &_inner_error_);
-#line 82 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1294 "Upgrades.c"
- goto __catch605_g_error;
- }
-#line 83 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp2_ = self->priv->mimic_dir;
-#line 83 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_file_delete (_tmp2_, NULL, &_inner_error_);
-#line 83 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1303 "Upgrades.c"
- goto __catch605_g_error;
- }
- }
- goto __finally605;
- __catch605_g_error:
- {
- GError* e = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala"
- e = _inner_error_;
-#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _inner_error_ = NULL;
-#line 85 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp3_ = e;
-#line 85 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp4_ = _tmp3_->message;
-#line 85 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_debug ("Upgrades.vala:85: Could not delete mimics: %s", _tmp4_);
-#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_error_free0 (e);
-#line 1325 "Upgrades.c"
- }
- __finally605:
-#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 81 "/home/jens/Source/shotwell/src/Upgrades.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 81 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_clear_error (&_inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return;
-#line 1336 "Upgrades.c"
- }
-}
-
-
-MimicsRemovalTask*
-mimics_removal_task_construct (GType object_type)
-{
- MimicsRemovalTask * self = NULL;
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = (MimicsRemovalTask*) g_object_new (object_type, NULL);
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return self;
-#line 1349 "Upgrades.c"
-}
-
-
-MimicsRemovalTask*
-mimics_removal_task_new (void)
-{
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return mimics_removal_task_construct (TYPE_MIMICS_REMOVAL_TASK);
-#line 1358 "Upgrades.c"
-}
-
-
-static void
-mimics_removal_task_class_init (MimicsRemovalTaskClass * klass)
-{
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- mimics_removal_task_parent_class = g_type_class_peek_parent (klass);
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_type_class_add_private (klass, sizeof (MimicsRemovalTaskPrivate));
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- G_OBJECT_CLASS (klass)->finalize = mimics_removal_task_finalize;
-#line 1371 "Upgrades.c"
-}
-
-
-static void
-mimics_removal_task_upgrade_task_interface_init (UpgradeTaskIface * iface)
-{
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- mimics_removal_task_upgrade_task_parent_iface = g_type_interface_peek_parent (iface);
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- iface->get_step_count = (guint64 (*) (UpgradeTask *)) mimics_removal_task_real_get_step_count;
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- iface->execute = (void (*) (UpgradeTask *, ProgressMonitor, void*)) mimics_removal_task_real_execute;
-#line 1384 "Upgrades.c"
-}
-
-
-static void
-mimics_removal_task_instance_init (MimicsRemovalTask * self)
-{
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->priv = MIMICS_REMOVAL_TASK_GET_PRIVATE (self);
-#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = app_dirs_get_data_dir ();
-#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = _tmp0_;
-#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp2_ = g_file_get_child (_tmp1_, "mimics");
-#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->priv->mimic_dir = _tmp2_;
-#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (_tmp1_);
-#line 69 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self->priv->num_mimics = (guint64) 0;
-#line 1408 "Upgrades.c"
-}
-
-
-static void
-mimics_removal_task_finalize (GObject * obj)
-{
- MimicsRemovalTask * self;
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTask);
-#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (self->priv->mimic_dir);
-#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala"
- G_OBJECT_CLASS (mimics_removal_task_parent_class)->finalize (obj);
-#line 1422 "Upgrades.c"
-}
-
-
-GType
-mimics_removal_task_get_type (void)
-{
- static volatile gsize mimics_removal_task_type_id__volatile = 0;
- if (g_once_init_enter (&mimics_removal_task_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MimicsRemovalTaskClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) mimics_removal_task_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MimicsRemovalTask), 0, (GInstanceInitFunc) mimics_removal_task_instance_init, NULL };
- static const GInterfaceInfo upgrade_task_info = { (GInterfaceInitFunc) mimics_removal_task_upgrade_task_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType mimics_removal_task_type_id;
- mimics_removal_task_type_id = g_type_register_static (G_TYPE_OBJECT, "MimicsRemovalTask", &g_define_type_info, 0);
- g_type_add_interface_static (mimics_removal_task_type_id, TYPE_UPGRADE_TASK, &upgrade_task_info);
- g_once_init_leave (&mimics_removal_task_type_id__volatile, mimics_removal_task_type_id);
- }
- return mimics_removal_task_type_id__volatile;
-}
-
-
-static guint64
-fixup_raw_thumbnails_task_real_get_step_count (UpgradeTask* base)
-{
- FixupRawThumbnailsTask * self;
- guint64 result = 0ULL;
- gint num_raw_files = 0;
-#line 94 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTask);
-#line 95 "/home/jens/Source/shotwell/src/Upgrades.vala"
- num_raw_files = 0;
-#line 1452 "Upgrades.c"
- {
- GeeArrayList* _phr_list = NULL;
- PhotoTable* _tmp0_;
- PhotoTable* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
- gint _phr_size = 0;
- GeeArrayList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _phr_index = 0;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = photo_table_get_instance ();
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp2_ = photo_table_get_all (_tmp1_);
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp3_ = _tmp2_;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _database_table_unref0 (_tmp1_);
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _phr_list = _tmp3_;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp4_ = _phr_list;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp6_ = _tmp5_;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _phr_size = _tmp6_;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _phr_index = -1;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- while (TRUE) {
-#line 1488 "Upgrades.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- PhotoRow* phr = NULL;
- GeeArrayList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- PhotoRow* _tmp13_;
- BackingPhotoRow* _tmp14_;
- PhotoFileFormat _tmp15_;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp7_ = _phr_index;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _phr_index = _tmp7_ + 1;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp8_ = _phr_index;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp9_ = _phr_size;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- break;
-#line 1511 "Upgrades.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp10_ = _phr_list;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp11_ = _phr_index;
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp12_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp11_);
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- phr = (PhotoRow*) _tmp12_;
-#line 98 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp13_ = phr;
-#line 98 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp14_ = _tmp13_->master;
-#line 98 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp15_ = _tmp14_->file_format;
-#line 98 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (_tmp15_ == PHOTO_FILE_FORMAT_RAW) {
-#line 1529 "Upgrades.c"
- gint _tmp16_;
-#line 99 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp16_ = num_raw_files;
-#line 99 "/home/jens/Source/shotwell/src/Upgrades.vala"
- num_raw_files = _tmp16_ + 1;
-#line 1535 "Upgrades.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _photo_row_unref0 (phr);
-#line 1539 "Upgrades.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (_phr_list);
-#line 1543 "Upgrades.c"
- }
-#line 101 "/home/jens/Source/shotwell/src/Upgrades.vala"
- result = (guint64) num_raw_files;
-#line 101 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return result;
-#line 1549 "Upgrades.c"
-}
-
-
-static void
-fixup_raw_thumbnails_task_real_execute (UpgradeTask* base,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- FixupRawThumbnailsTask * self;
-#line 104 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTask);
-#line 105 "/home/jens/Source/shotwell/src/Upgrades.vala"
- g_debug ("Upgrades.vala:105: Executing thumbnail deletion and fixup");
-#line 1563 "Upgrades.c"
- {
- GeeArrayList* _phr_list = NULL;
- PhotoTable* _tmp0_;
- PhotoTable* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
- gint _phr_size = 0;
- GeeArrayList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _phr_index = 0;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp0_ = photo_table_get_instance ();
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp1_ = _tmp0_;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp2_ = photo_table_get_all (_tmp1_);
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp3_ = _tmp2_;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _database_table_unref0 (_tmp1_);
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _phr_list = _tmp3_;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp4_ = _phr_list;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp6_ = _tmp5_;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _phr_size = _tmp6_;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _phr_index = -1;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- while (TRUE) {
-#line 1599 "Upgrades.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- PhotoRow* phr = NULL;
- GeeArrayList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- gboolean _tmp13_ = FALSE;
- PhotoRow* _tmp14_;
- BackingPhotoRow* _tmp15_;
- PhotoFileFormat _tmp16_;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp7_ = _phr_index;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _phr_index = _tmp7_ + 1;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp8_ = _phr_index;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp9_ = _phr_size;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- break;
-#line 1623 "Upgrades.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp10_ = _phr_list;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp11_ = _phr_index;
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp12_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp11_);
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- phr = (PhotoRow*) _tmp12_;
-#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp14_ = phr;
-#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp15_ = _tmp14_->master;
-#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp16_ = _tmp15_->file_format;
-#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (_tmp16_ == PHOTO_FILE_FORMAT_RAW) {
-#line 1641 "Upgrades.c"
- PhotoRow* _tmp17_;
- RawDeveloper _tmp18_;
-#line 109 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp17_ = phr;
-#line 109 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp18_ = _tmp17_->developer;
-#line 109 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp13_ = _tmp18_ == RAW_DEVELOPER_CAMERA;
-#line 1650 "Upgrades.c"
- } else {
-#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp13_ = FALSE;
-#line 1654 "Upgrades.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala"
- if (_tmp13_) {
-#line 1658 "Upgrades.c"
- LibraryPhotoSourceCollection* _tmp19_;
- PhotoRow* _tmp20_;
- PhotoID _tmp21_;
- LibraryPhoto* _tmp22_;
- LibraryPhoto* _tmp23_;
-#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp19_ = library_photo_global;
-#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp20_ = phr;
-#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp21_ = _tmp20_->photo_id;
-#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp22_ = library_photo_source_collection_fetch (_tmp19_, &_tmp21_);
-#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _tmp23_ = _tmp22_;
-#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala"
- thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (_tmp23_);
-#line 1678 "Upgrades.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _photo_row_unref0 (phr);
-#line 1682 "Upgrades.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala"
- _g_object_unref0 (_phr_list);
-#line 1686 "Upgrades.c"
- }
-}
-
-
-FixupRawThumbnailsTask*
-fixup_raw_thumbnails_task_construct (GType object_type)
-{
- FixupRawThumbnailsTask * self = NULL;
-#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala"
- self = (FixupRawThumbnailsTask*) g_object_new (object_type, NULL);
-#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return self;
-#line 1699 "Upgrades.c"
-}
-
-
-FixupRawThumbnailsTask*
-fixup_raw_thumbnails_task_new (void)
-{
-#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala"
- return fixup_raw_thumbnails_task_construct (TYPE_FIXUP_RAW_THUMBNAILS_TASK);
-#line 1708 "Upgrades.c"
-}
-
-
-static void
-fixup_raw_thumbnails_task_class_init (FixupRawThumbnailsTaskClass * klass)
-{
-#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala"
- fixup_raw_thumbnails_task_parent_class = g_type_class_peek_parent (klass);
-#line 1717 "Upgrades.c"
-}
-
-
-static void
-fixup_raw_thumbnails_task_upgrade_task_interface_init (UpgradeTaskIface * iface)
-{
-#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala"
- fixup_raw_thumbnails_task_upgrade_task_parent_iface = g_type_interface_peek_parent (iface);
-#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala"
- iface->get_step_count = (guint64 (*) (UpgradeTask *)) fixup_raw_thumbnails_task_real_get_step_count;
-#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala"
- iface->execute = (void (*) (UpgradeTask *, ProgressMonitor, void*)) fixup_raw_thumbnails_task_real_execute;
-#line 1730 "Upgrades.c"
-}
-
-
-static void
-fixup_raw_thumbnails_task_instance_init (FixupRawThumbnailsTask * self)
-{
-}
-
-
-GType
-fixup_raw_thumbnails_task_get_type (void)
-{
- static volatile gsize fixup_raw_thumbnails_task_type_id__volatile = 0;
- if (g_once_init_enter (&fixup_raw_thumbnails_task_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FixupRawThumbnailsTaskClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fixup_raw_thumbnails_task_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FixupRawThumbnailsTask), 0, (GInstanceInitFunc) fixup_raw_thumbnails_task_instance_init, NULL };
- static const GInterfaceInfo upgrade_task_info = { (GInterfaceInitFunc) fixup_raw_thumbnails_task_upgrade_task_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType fixup_raw_thumbnails_task_type_id;
- fixup_raw_thumbnails_task_type_id = g_type_register_static (G_TYPE_OBJECT, "FixupRawThumbnailsTask", &g_define_type_info, 0);
- g_type_add_interface_static (fixup_raw_thumbnails_task_type_id, TYPE_UPGRADE_TASK, &upgrade_task_info);
- g_once_init_leave (&fixup_raw_thumbnails_task_type_id__volatile, fixup_raw_thumbnails_task_type_id);
- }
- return fixup_raw_thumbnails_task_type_id__volatile;
-}
-
-
-
diff --git a/src/VideoMetadata.c b/src/VideoMetadata.c
deleted file mode 100644
index 0befb0a..0000000
--- a/src/VideoMetadata.c
+++ /dev/null
@@ -1,5651 +0,0 @@
-/* VideoMetadata.c generated by valac 0.40.4, the Vala compiler
- * generated from VideoMetadata.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <stdio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-typedef struct _MediaMetadataPrivate MediaMetadataPrivate;
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-
-#define TYPE_VIDEO_METADATA (video_metadata_get_type ())
-#define VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_METADATA, VideoMetadata))
-#define VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_METADATA, VideoMetadataClass))
-#define IS_VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_METADATA))
-#define IS_VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_METADATA))
-#define VIDEO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_METADATA, VideoMetadataClass))
-
-typedef struct _VideoMetadata VideoMetadata;
-typedef struct _VideoMetadataClass VideoMetadataClass;
-typedef struct _VideoMetadataPrivate VideoMetadataPrivate;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_QUICK_TIME_METADATA_LOADER (quick_time_metadata_loader_get_type ())
-#define QUICK_TIME_METADATA_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoader))
-#define QUICK_TIME_METADATA_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoaderClass))
-#define IS_QUICK_TIME_METADATA_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_QUICK_TIME_METADATA_LOADER))
-#define IS_QUICK_TIME_METADATA_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_QUICK_TIME_METADATA_LOADER))
-#define QUICK_TIME_METADATA_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoaderClass))
-
-typedef struct _QuickTimeMetadataLoader QuickTimeMetadataLoader;
-typedef struct _QuickTimeMetadataLoaderClass QuickTimeMetadataLoaderClass;
-#define _quick_time_metadata_loader_unref0(var) ((var == NULL) ? NULL : (var = (quick_time_metadata_loader_unref (var), NULL)))
-
-#define TYPE_AVI_METADATA_LOADER (avi_metadata_loader_get_type ())
-#define AVI_METADATA_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AVI_METADATA_LOADER, AVIMetadataLoader))
-#define AVI_METADATA_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AVI_METADATA_LOADER, AVIMetadataLoaderClass))
-#define IS_AVI_METADATA_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AVI_METADATA_LOADER))
-#define IS_AVI_METADATA_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AVI_METADATA_LOADER))
-#define AVI_METADATA_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AVI_METADATA_LOADER, AVIMetadataLoaderClass))
-
-typedef struct _AVIMetadataLoader AVIMetadataLoader;
-typedef struct _AVIMetadataLoaderClass AVIMetadataLoaderClass;
-#define _avi_metadata_loader_unref0(var) ((var == NULL) ? NULL : (var = (avi_metadata_loader_unref (var), NULL)))
-typedef struct _QuickTimeMetadataLoaderPrivate QuickTimeMetadataLoaderPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_QUICK_TIME_ATOM (quick_time_atom_get_type ())
-#define QUICK_TIME_ATOM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_QUICK_TIME_ATOM, QuickTimeAtom))
-#define QUICK_TIME_ATOM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_QUICK_TIME_ATOM, QuickTimeAtomClass))
-#define IS_QUICK_TIME_ATOM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_QUICK_TIME_ATOM))
-#define IS_QUICK_TIME_ATOM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_QUICK_TIME_ATOM))
-#define QUICK_TIME_ATOM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_QUICK_TIME_ATOM, QuickTimeAtomClass))
-
-typedef struct _QuickTimeAtom QuickTimeAtom;
-typedef struct _QuickTimeAtomClass QuickTimeAtomClass;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _quick_time_atom_unref0(var) ((var == NULL) ? NULL : (var = (quick_time_atom_unref (var), NULL)))
-typedef struct _ParamSpecQuickTimeMetadataLoader ParamSpecQuickTimeMetadataLoader;
-typedef struct _QuickTimeAtomPrivate QuickTimeAtomPrivate;
-#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
-typedef struct _ParamSpecQuickTimeAtom ParamSpecQuickTimeAtom;
-typedef struct _AVIMetadataLoaderPrivate AVIMetadataLoaderPrivate;
-
-#define TYPE_AVI_CHUNK (avi_chunk_get_type ())
-#define AVI_CHUNK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AVI_CHUNK, AVIChunk))
-#define AVI_CHUNK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AVI_CHUNK, AVIChunkClass))
-#define IS_AVI_CHUNK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AVI_CHUNK))
-#define IS_AVI_CHUNK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AVI_CHUNK))
-#define AVI_CHUNK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AVI_CHUNK, AVIChunkClass))
-
-typedef struct _AVIChunk AVIChunk;
-typedef struct _AVIChunkClass AVIChunkClass;
-#define _avi_chunk_unref0(var) ((var == NULL) ? NULL : (var = (avi_chunk_unref (var), NULL)))
-typedef struct _ParamSpecAVIMetadataLoader ParamSpecAVIMetadataLoader;
-typedef struct _AVIChunkPrivate AVIChunkPrivate;
-typedef struct _ParamSpecAVIChunk ParamSpecAVIChunk;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _MediaMetadata {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MediaMetadataPrivate * priv;
-};
-
-struct _MediaMetadataClass {
- GTypeClass parent_class;
- void (*finalize) (MediaMetadata *self);
- void (*read_from_file) (MediaMetadata* self, GFile* file, GError** error);
- MetadataDateTime* (*get_creation_date_time) (MediaMetadata* self);
- gchar* (*get_title) (MediaMetadata* self);
- gchar* (*get_comment) (MediaMetadata* self);
-};
-
-struct _VideoMetadata {
- MediaMetadata parent_instance;
- VideoMetadataPrivate * priv;
-};
-
-struct _VideoMetadataClass {
- MediaMetadataClass parent_class;
-};
-
-struct _VideoMetadataPrivate {
- MetadataDateTime* timestamp;
- gchar* title;
- gchar* comment;
-};
-
-struct _QuickTimeMetadataLoader {
- GTypeInstance parent_instance;
- volatile int ref_count;
- QuickTimeMetadataLoaderPrivate * priv;
-};
-
-struct _QuickTimeMetadataLoaderClass {
- GTypeClass parent_class;
- void (*finalize) (QuickTimeMetadataLoader *self);
-};
-
-struct _QuickTimeMetadataLoaderPrivate {
- GFile* file;
-};
-
-struct _ParamSpecQuickTimeMetadataLoader {
- GParamSpec parent_instance;
-};
-
-struct _QuickTimeAtom {
- GTypeInstance parent_instance;
- volatile int ref_count;
- QuickTimeAtomPrivate * priv;
-};
-
-struct _QuickTimeAtomClass {
- GTypeClass parent_class;
- void (*finalize) (QuickTimeAtom *self);
-};
-
-struct _QuickTimeAtomPrivate {
- GFile* file;
- gchar* section_name;
- guint64 section_size;
- guint64 section_offset;
- GDataInputStream* input;
- QuickTimeAtom* parent;
-};
-
-struct _ParamSpecQuickTimeAtom {
- GParamSpec parent_instance;
-};
-
-struct _AVIMetadataLoader {
- GTypeInstance parent_instance;
- volatile int ref_count;
- AVIMetadataLoaderPrivate * priv;
-};
-
-struct _AVIMetadataLoaderClass {
- GTypeClass parent_class;
- void (*finalize) (AVIMetadataLoader *self);
-};
-
-struct _AVIMetadataLoaderPrivate {
- GFile* file;
-};
-
-struct _ParamSpecAVIMetadataLoader {
- GParamSpec parent_instance;
-};
-
-struct _AVIChunk {
- GTypeInstance parent_instance;
- volatile int ref_count;
- AVIChunkPrivate * priv;
-};
-
-struct _AVIChunkClass {
- GTypeClass parent_class;
- void (*finalize) (AVIChunk *self);
-};
-
-struct _AVIChunkPrivate {
- GFile* file;
- gchar* section_name;
- guint64 section_size;
- guint64 section_offset;
- GDataInputStream* input;
- AVIChunk* parent;
-};
-
-struct _ParamSpecAVIChunk {
- GParamSpec parent_instance;
-};
-
-
-static gpointer video_metadata_parent_class = NULL;
-static gpointer quick_time_metadata_loader_parent_class = NULL;
-static gpointer quick_time_atom_parent_class = NULL;
-static gpointer avi_metadata_loader_parent_class = NULL;
-static gpointer avi_chunk_parent_class = NULL;
-
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-GType video_metadata_get_type (void) G_GNUC_CONST;
-#define VIDEO_METADATA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_METADATA, VideoMetadataPrivate))
-VideoMetadata* video_metadata_new (void);
-VideoMetadata* video_metadata_construct (GType object_type);
-MediaMetadata* media_metadata_construct (GType object_type);
-static void video_metadata_real_read_from_file (MediaMetadata* base,
- GFile* file,
- GError** error);
-gpointer quick_time_metadata_loader_ref (gpointer instance);
-void quick_time_metadata_loader_unref (gpointer instance);
-GParamSpec* param_spec_quick_time_metadata_loader (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_quick_time_metadata_loader (GValue* value,
- gpointer v_object);
-void value_take_quick_time_metadata_loader (GValue* value,
- gpointer v_object);
-gpointer value_get_quick_time_metadata_loader (const GValue* value);
-GType quick_time_metadata_loader_get_type (void) G_GNUC_CONST;
-QuickTimeMetadataLoader* quick_time_metadata_loader_new (GFile* file);
-QuickTimeMetadataLoader* quick_time_metadata_loader_construct (GType object_type,
- GFile* file);
-gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self);
-MetadataDateTime* quick_time_metadata_loader_get_creation_date_time (QuickTimeMetadataLoader* self);
-gchar* quick_time_metadata_loader_get_title (QuickTimeMetadataLoader* self);
-gpointer avi_metadata_loader_ref (gpointer instance);
-void avi_metadata_loader_unref (gpointer instance);
-GParamSpec* param_spec_avi_metadata_loader (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_avi_metadata_loader (GValue* value,
- gpointer v_object);
-void value_take_avi_metadata_loader (GValue* value,
- gpointer v_object);
-gpointer value_get_avi_metadata_loader (const GValue* value);
-GType avi_metadata_loader_get_type (void) G_GNUC_CONST;
-AVIMetadataLoader* avi_metadata_loader_new (GFile* file);
-AVIMetadataLoader* avi_metadata_loader_construct (GType object_type,
- GFile* file);
-gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self);
-MetadataDateTime* avi_metadata_loader_get_creation_date_time (AVIMetadataLoader* self);
-gchar* avi_metadata_loader_get_title (AVIMetadataLoader* self);
-static MetadataDateTime* video_metadata_real_get_creation_date_time (MediaMetadata* base);
-static gchar* video_metadata_real_get_title (MediaMetadata* base);
-static gchar* video_metadata_real_get_comment (MediaMetadata* base);
-static void video_metadata_finalize (MediaMetadata * obj);
-#define QUICK_TIME_METADATA_LOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoaderPrivate))
-#define QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT ((time_t) 2082844800)
-static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (QuickTimeMetadataLoader* self);
-MetadataDateTime* metadata_date_time_new (time_t timestamp);
-MetadataDateTime* metadata_date_time_construct (GType object_type,
- time_t timestamp);
-gpointer quick_time_atom_ref (gpointer instance);
-void quick_time_atom_unref (gpointer instance);
-GParamSpec* param_spec_quick_time_atom (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_quick_time_atom (GValue* value,
- gpointer v_object);
-void value_take_quick_time_atom (GValue* value,
- gpointer v_object);
-gpointer value_get_quick_time_atom (const GValue* value);
-GType quick_time_atom_get_type (void) G_GNUC_CONST;
-QuickTimeAtom* quick_time_atom_new (GFile* file);
-QuickTimeAtom* quick_time_atom_construct (GType object_type,
- GFile* file);
-void quick_time_atom_open_file (QuickTimeAtom* self,
- GError** error);
-void quick_time_atom_read_atom (QuickTimeAtom* self,
- GError** error);
-gchar* quick_time_atom_get_current_atom_name (QuickTimeAtom* self);
-void quick_time_atom_next_atom (QuickTimeAtom* self,
- GError** error);
-gboolean quick_time_atom_is_last_atom (QuickTimeAtom* self);
-void quick_time_atom_close_file (QuickTimeAtom* self,
- GError** error);
-QuickTimeAtom* quick_time_atom_get_first_child_atom (QuickTimeAtom* self);
-guint64 quick_time_atom_section_size_remaining (QuickTimeAtom* self);
-guint32 quick_time_atom_read_uint32 (QuickTimeAtom* self,
- GError** error);
-static void quick_time_metadata_loader_finalize (QuickTimeMetadataLoader * obj);
-#define QUICK_TIME_ATOM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_QUICK_TIME_ATOM, QuickTimeAtomPrivate))
-static QuickTimeAtom* quick_time_atom_new_with_input_stream (GDataInputStream* input,
- QuickTimeAtom* parent);
-static QuickTimeAtom* quick_time_atom_construct_with_input_stream (GType object_type,
- GDataInputStream* input,
- QuickTimeAtom* parent);
-static void quick_time_atom_advance_section_offset (QuickTimeAtom* self,
- guint64 amount);
-guchar quick_time_atom_read_byte (QuickTimeAtom* self,
- GError** error);
-guint64 quick_time_atom_read_uint64 (QuickTimeAtom* self,
- GError** error);
-static void quick_time_atom_skip (QuickTimeAtom* self,
- guint64 skip_amount,
- GError** error);
-void skip_uint64 (GInputStream* input,
- guint64 skip_amount,
- GError** error);
-static void quick_time_atom_finalize (QuickTimeAtom * obj);
-#define AVI_METADATA_LOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AVI_METADATA_LOADER, AVIMetadataLoaderPrivate))
-#define AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH 19
-#define AVI_METADATA_LOADER_NIKON_NCTG_TIMESTAMP_MARKER ((guint16) 0x13)
-#define AVI_METADATA_LOADER_MAX_STRD_LENGTH 100
-static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoader* self);
-gpointer avi_chunk_ref (gpointer instance);
-void avi_chunk_unref (gpointer instance);
-GParamSpec* param_spec_avi_chunk (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_avi_chunk (GValue* value,
- gpointer v_object);
-void value_take_avi_chunk (GValue* value,
- gpointer v_object);
-gpointer value_get_avi_chunk (const GValue* value);
-GType avi_chunk_get_type (void) G_GNUC_CONST;
-AVIChunk* avi_chunk_new (GFile* file);
-AVIChunk* avi_chunk_construct (GType object_type,
- GFile* file);
-void avi_chunk_open_file (AVIChunk* self,
- GError** error);
-void avi_chunk_read_chunk (AVIChunk* self,
- GError** error);
-gchar* avi_chunk_get_current_chunk_name (AVIChunk* self);
-gchar* avi_chunk_read_name (AVIChunk* self,
- GError** error);
-void avi_chunk_close_file (AVIChunk* self,
- GError** error);
-static gchar* avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self,
- AVIChunk* chunk,
- GError** error);
-guint64 avi_chunk_section_size_remaining (AVIChunk* self);
-guint16 avi_chunk_read_uint16 (AVIChunk* self,
- GError** error);
-void avi_chunk_skip (AVIChunk* self,
- guint64 skip_amount,
- GError** error);
-guchar avi_chunk_read_byte (AVIChunk* self,
- GError** error);
-static gchar* avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self,
- AVIChunk* chunk,
- GError** error);
-static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self,
- AVIChunk* chunk,
- GError** error);
-gchar* avi_chunk_section_to_string (AVIChunk* self,
- GError** error);
-AVIChunk* avi_chunk_get_first_child_chunk (AVIChunk* self);
-gboolean avi_chunk_is_last_chunk (AVIChunk* self);
-void avi_chunk_next_chunk (AVIChunk* self,
- GError** error);
-static gulong avi_metadata_loader_parse_date (AVIMetadataLoader* self,
- const gchar* sdate);
-static GDateMonth avi_metadata_loader_month_from_string (AVIMetadataLoader* self,
- const gchar* s);
-void avi_chunk_nonsection_skip (AVIChunk* self,
- guint64 skip_amount,
- GError** error);
-static void avi_metadata_loader_finalize (AVIMetadataLoader * obj);
-#define AVI_CHUNK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AVI_CHUNK, AVIChunkPrivate))
-#define AVI_CHUNK_MAX_STRING_TO_SECTION_LENGTH 1024
-static AVIChunk* avi_chunk_new_with_input_stream (GDataInputStream* input,
- AVIChunk* parent);
-static AVIChunk* avi_chunk_construct_with_input_stream (GType object_type,
- GDataInputStream* input,
- AVIChunk* parent);
-static void avi_chunk_advance_section_offset (AVIChunk* self,
- guint64 amount);
-static void avi_chunk_finalize (AVIChunk * obj);
-
-
-VideoMetadata*
-video_metadata_construct (GType object_type)
-{
- VideoMetadata* self = NULL;
-#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = (VideoMetadata*) media_metadata_construct (object_type);
-#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self;
-#line 451 "VideoMetadata.c"
-}
-
-
-VideoMetadata*
-video_metadata_new (void)
-{
-#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return video_metadata_construct (TYPE_VIDEO_METADATA);
-#line 460 "VideoMetadata.c"
-}
-
-
-static void
-video_metadata_real_read_from_file (MediaMetadata* base,
- GFile* file,
- GError** error)
-{
- VideoMetadata * self;
- QuickTimeMetadataLoader* quicktime = NULL;
- QuickTimeMetadataLoader* _tmp0_;
- QuickTimeMetadataLoader* _tmp1_;
- AVIMetadataLoader* avi = NULL;
- AVIMetadataLoader* _tmp6_;
- AVIMetadataLoader* _tmp7_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- GError* _tmp14_;
- GError* _tmp15_;
- GError * _inner_error_ = NULL;
-#line 19 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata);
-#line 19 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 20 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = quick_time_metadata_loader_new (file);
-#line 20 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quicktime = _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = quicktime;
-#line 21 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (quick_time_metadata_loader_is_supported (_tmp1_)) {
-#line 493 "VideoMetadata.c"
- QuickTimeMetadataLoader* _tmp2_;
- MetadataDateTime* _tmp3_;
- QuickTimeMetadataLoader* _tmp4_;
- gchar* _tmp5_;
-#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = quicktime;
-#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = quick_time_metadata_loader_get_creation_date_time (_tmp2_);
-#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _metadata_date_time_unref0 (self->priv->timestamp);
-#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->timestamp = _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = quicktime;
-#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = quick_time_metadata_loader_get_title (_tmp4_);
-#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->title);
-#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->title = _tmp5_;
-#line 25 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->comment);
-#line 25 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->comment = NULL;
-#line 26 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_metadata_loader_unref0 (quicktime);
-#line 26 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 522 "VideoMetadata.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = avi_metadata_loader_new (file);
-#line 28 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi = _tmp6_;
-#line 29 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = avi;
-#line 29 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (avi_metadata_loader_is_supported (_tmp7_)) {
-#line 532 "VideoMetadata.c"
- AVIMetadataLoader* _tmp8_;
- MetadataDateTime* _tmp9_;
- AVIMetadataLoader* _tmp10_;
- gchar* _tmp11_;
-#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = avi;
-#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = avi_metadata_loader_get_creation_date_time (_tmp8_);
-#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _metadata_date_time_unref0 (self->priv->timestamp);
-#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->timestamp = _tmp9_;
-#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = avi;
-#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = avi_metadata_loader_get_title (_tmp10_);
-#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->title);
-#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->title = _tmp11_;
-#line 32 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->comment);
-#line 32 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->comment = NULL;
-#line 33 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_metadata_loader_unref0 (avi);
-#line 33 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_metadata_loader_unref0 (quicktime);
-#line 33 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 563 "VideoMetadata.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = g_file_get_path (file);
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = _tmp12_;
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "File %s is not a supported video format", _tmp13_);
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = _tmp14_;
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp13_);
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = _tmp15_;
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_metadata_loader_unref0 (avi);
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_metadata_loader_unref0 (quicktime);
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 585 "VideoMetadata.c"
-}
-
-
-static gpointer
-_metadata_date_time_ref0 (gpointer self)
-{
-#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self ? metadata_date_time_ref (self) : NULL;
-#line 594 "VideoMetadata.c"
-}
-
-
-static MetadataDateTime*
-video_metadata_real_get_creation_date_time (MediaMetadata* base)
-{
- VideoMetadata * self;
- MetadataDateTime* result = NULL;
- MetadataDateTime* _tmp0_;
- MetadataDateTime* _tmp1_;
-#line 39 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata);
-#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->timestamp;
-#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _metadata_date_time_ref0 (_tmp0_);
-#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
-#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 615 "VideoMetadata.c"
-}
-
-
-static gchar*
-video_metadata_real_get_title (MediaMetadata* base)
-{
- VideoMetadata * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 43 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata);
-#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->title;
-#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 636 "VideoMetadata.c"
-}
-
-
-static gchar*
-video_metadata_real_get_comment (MediaMetadata* base)
-{
- VideoMetadata * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 47 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata);
-#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->comment;
-#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 657 "VideoMetadata.c"
-}
-
-
-static void
-video_metadata_class_init (VideoMetadataClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- video_metadata_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((MediaMetadataClass *) klass)->finalize = video_metadata_finalize;
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_class_add_private (klass, sizeof (VideoMetadataPrivate));
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((MediaMetadataClass *) klass)->read_from_file = (void (*) (MediaMetadata *, GFile*, GError**)) video_metadata_real_read_from_file;
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_creation_date_time = (MetadataDateTime* (*) (MediaMetadata *)) video_metadata_real_get_creation_date_time;
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_title = (gchar* (*) (MediaMetadata *)) video_metadata_real_get_title;
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_comment = (gchar* (*) (MediaMetadata *)) video_metadata_real_get_comment;
-#line 678 "VideoMetadata.c"
-}
-
-
-static void
-video_metadata_instance_init (VideoMetadata * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv = VIDEO_METADATA_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->timestamp = NULL;
-#line 10 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->title = NULL;
-#line 11 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->comment = NULL;
-#line 693 "VideoMetadata.c"
-}
-
-
-static void
-video_metadata_finalize (MediaMetadata * obj)
-{
- VideoMetadata * self;
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_METADATA, VideoMetadata);
-#line 9 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _metadata_date_time_unref0 (self->priv->timestamp);
-#line 10 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->title);
-#line 11 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->comment);
-#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- MEDIA_METADATA_CLASS (video_metadata_parent_class)->finalize (obj);
-#line 711 "VideoMetadata.c"
-}
-
-
-GType
-video_metadata_get_type (void)
-{
- static volatile gsize video_metadata_type_id__volatile = 0;
- if (g_once_init_enter (&video_metadata_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMetadata), 0, (GInstanceInitFunc) video_metadata_instance_init, NULL };
- GType video_metadata_type_id;
- video_metadata_type_id = g_type_register_static (TYPE_MEDIA_METADATA, "VideoMetadata", &g_define_type_info, 0);
- g_once_init_leave (&video_metadata_type_id__volatile, video_metadata_type_id);
- }
- return video_metadata_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self ? g_object_ref (self) : NULL;
-#line 734 "VideoMetadata.c"
-}
-
-
-QuickTimeMetadataLoader*
-quick_time_metadata_loader_construct (GType object_type,
- GFile* file)
-{
- QuickTimeMetadataLoader* self = NULL;
- GFile* _tmp0_;
-#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = (QuickTimeMetadataLoader*) g_type_create_instance (object_type);
-#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->file);
-#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = _tmp0_;
-#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self;
-#line 756 "VideoMetadata.c"
-}
-
-
-QuickTimeMetadataLoader*
-quick_time_metadata_loader_new (GFile* file)
-{
-#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return quick_time_metadata_loader_construct (TYPE_QUICK_TIME_METADATA_LOADER, file);
-#line 765 "VideoMetadata.c"
-}
-
-
-MetadataDateTime*
-quick_time_metadata_loader_get_creation_date_time (QuickTimeMetadataLoader* self)
-{
- MetadataDateTime* result = NULL;
- MetadataDateTime* _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), NULL);
-#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = metadata_date_time_new ((time_t) quick_time_metadata_loader_get_creation_date_time_for_quicktime (self));
-#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp0_;
-#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 782 "VideoMetadata.c"
-}
-
-
-gchar*
-quick_time_metadata_loader_get_title (QuickTimeMetadataLoader* self)
-{
- gchar* result = NULL;
-#line 69 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), NULL);
-#line 71 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = NULL;
-#line 71 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 796 "VideoMetadata.c"
-}
-
-
-gboolean
-quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
-{
- gboolean result = FALSE;
- QuickTimeAtom* test = NULL;
- GFile* _tmp0_;
- QuickTimeAtom* _tmp1_;
- gboolean ret = FALSE;
- GError * _inner_error_ = NULL;
-#line 75 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), FALSE);
-#line 76 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->file;
-#line 76 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = quick_time_atom_new (_tmp0_);
-#line 76 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- test = _tmp1_;
-#line 78 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ret = FALSE;
-#line 819 "VideoMetadata.c"
- {
- QuickTimeAtom* _tmp2_;
- QuickTimeAtom* _tmp3_;
- QuickTimeAtom* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gboolean _tmp7_;
-#line 80 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = test;
-#line 80 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_open_file (_tmp2_, &_inner_error_);
-#line 80 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 833 "VideoMetadata.c"
- goto __catch586_g_error;
- }
-#line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = test;
-#line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_read_atom (_tmp3_, &_inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 842 "VideoMetadata.c"
- goto __catch586_g_error;
- }
-#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = test;
-#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = quick_time_atom_get_current_atom_name (_tmp4_);
-#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = _tmp5_;
-#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = g_strcmp0 ("ftyp", _tmp6_) == 0;
-#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp6_);
-#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp7_) {
-#line 85 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ret = TRUE;
-#line 859 "VideoMetadata.c"
- } else {
-#line 90 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 863 "VideoMetadata.c"
- QuickTimeAtom* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gboolean _tmp11_;
- QuickTimeAtom* _tmp12_;
- QuickTimeAtom* _tmp13_;
- QuickTimeAtom* _tmp14_;
-#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = test;
-#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = quick_time_atom_get_current_atom_name (_tmp8_);
-#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = _tmp9_;
-#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = g_strcmp0 ("moov", _tmp10_) == 0;
-#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp10_);
-#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp11_) {
-#line 92 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ret = TRUE;
-#line 93 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 887 "VideoMetadata.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = test;
-#line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_next_atom (_tmp12_, &_inner_error_);
-#line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 895 "VideoMetadata.c"
- goto __catch586_g_error;
- }
-#line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = test;
-#line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_read_atom (_tmp13_, &_inner_error_);
-#line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 904 "VideoMetadata.c"
- goto __catch586_g_error;
- }
-#line 97 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = test;
-#line 97 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (quick_time_atom_is_last_atom (_tmp14_)) {
-#line 98 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 913 "VideoMetadata.c"
- }
- }
- }
- }
- goto __finally586;
- __catch586_g_error:
- {
- GError* e = NULL;
- GFile* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- GError* _tmp18_;
- const gchar* _tmp19_;
-#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- e = _inner_error_;
-#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = NULL;
-#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = self->priv->file;
-#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = g_file_get_path (_tmp15_);
-#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = _tmp16_;
-#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = e;
-#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = _tmp18_->message;
-#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:103: Error while testing for QuickTime file for %s:" \
-" %s", _tmp17_, _tmp19_);
-#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp17_);
-#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_error_free0 (e);
-#line 947 "VideoMetadata.c"
- }
- __finally586:
-#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 952 "VideoMetadata.c"
- gboolean _tmp20_ = FALSE;
-#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (test);
-#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.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 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp20_;
-#line 962 "VideoMetadata.c"
- }
- {
- QuickTimeAtom* _tmp21_;
-#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = test;
-#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_close_file (_tmp21_, &_inner_error_);
-#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 972 "VideoMetadata.c"
- goto __catch587_g_error;
- }
- }
- goto __finally587;
- __catch587_g_error:
- {
- GError* e = NULL;
- GError* _tmp22_;
- const gchar* _tmp23_;
-#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- e = _inner_error_;
-#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = NULL;
-#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = e;
-#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = _tmp22_->message;
-#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:109: Error while closing Quicktime file: %s", _tmp23_);
-#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_error_free0 (e);
-#line 994 "VideoMetadata.c"
- }
- __finally587:
-#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 999 "VideoMetadata.c"
- gboolean _tmp24_ = FALSE;
-#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (test);
-#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.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 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp24_;
-#line 1009 "VideoMetadata.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = ret;
-#line 111 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (test);
-#line 111 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 1017 "VideoMetadata.c"
-}
-
-
-static gulong
-quick_time_metadata_loader_get_creation_date_time_for_quicktime (QuickTimeMetadataLoader* self)
-{
- gulong result = 0UL;
- QuickTimeAtom* test = NULL;
- GFile* _tmp0_;
- QuickTimeAtom* _tmp1_;
- time_t timestamp = 0;
- time_t _tmp33_;
- time_t _tmp35_;
- GError * _inner_error_ = NULL;
-#line 114 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), 0UL);
-#line 115 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->file;
-#line 115 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = quick_time_atom_new (_tmp0_);
-#line 115 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- test = _tmp1_;
-#line 116 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- timestamp = (time_t) 0;
-#line 1042 "VideoMetadata.c"
- {
- QuickTimeAtom* _tmp2_;
- gboolean done = FALSE;
-#line 119 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = test;
-#line 119 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_open_file (_tmp2_, &_inner_error_);
-#line 119 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1052 "VideoMetadata.c"
- goto __catch588_g_error;
- }
-#line 120 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- done = FALSE;
-#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 1059 "VideoMetadata.c"
- gboolean _tmp3_;
- QuickTimeAtom* _tmp4_;
- QuickTimeAtom* _tmp5_;
- QuickTimeAtom* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gboolean _tmp9_;
- QuickTimeAtom* _tmp25_;
-#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = done;
-#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(!_tmp3_)) {
-#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 1074 "VideoMetadata.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = test;
-#line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_read_atom (_tmp4_, &_inner_error_);
-#line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1082 "VideoMetadata.c"
- goto __catch588_g_error;
- }
-#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = test;
-#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (quick_time_atom_is_last_atom (_tmp5_)) {
-#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 1091 "VideoMetadata.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = test;
-#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = quick_time_atom_get_current_atom_name (_tmp6_);
-#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = _tmp7_;
-#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = g_strcmp0 ("moov", _tmp8_) == 0;
-#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp8_);
-#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp9_) {
-#line 1105 "VideoMetadata.c"
- QuickTimeAtom* child = NULL;
- QuickTimeAtom* _tmp10_;
- QuickTimeAtom* _tmp11_;
-#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = test;
-#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = quick_time_atom_get_first_child_atom (_tmp10_);
-#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- child = _tmp11_;
-#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 1117 "VideoMetadata.c"
- gboolean _tmp12_;
- QuickTimeAtom* _tmp13_;
- gboolean _tmp14_ = FALSE;
- QuickTimeAtom* _tmp15_;
- QuickTimeAtom* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gboolean _tmp20_;
- QuickTimeAtom* _tmp24_;
-#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = done;
-#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(!_tmp12_)) {
-#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 1133 "VideoMetadata.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = child;
-#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_read_atom (_tmp13_, &_inner_error_);
-#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (child);
-#line 1143 "VideoMetadata.c"
- goto __catch588_g_error;
- }
-#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = child;
-#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (quick_time_atom_is_last_atom (_tmp15_)) {
-#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = TRUE;
-#line 1152 "VideoMetadata.c"
- } else {
- QuickTimeAtom* _tmp16_;
-#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = child;
-#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = ((guint64) 0) == quick_time_atom_section_size_remaining (_tmp16_);
-#line 1159 "VideoMetadata.c"
- }
-#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp14_) {
-#line 131 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- done = TRUE;
-#line 132 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 1167 "VideoMetadata.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = child;
-#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = quick_time_atom_get_current_atom_name (_tmp17_);
-#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = _tmp18_;
-#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = g_strcmp0 ("mvhd", _tmp19_) == 0;
-#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp19_);
-#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp20_) {
-#line 1181 "VideoMetadata.c"
- QuickTimeAtom* _tmp21_;
- guint32 _tmp22_ = 0U;
- QuickTimeAtom* _tmp23_;
-#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = child;
-#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_read_uint32 (_tmp21_, &_inner_error_);
-#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (child);
-#line 1193 "VideoMetadata.c"
- goto __catch588_g_error;
- }
-#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = child;
-#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = quick_time_atom_read_uint32 (_tmp23_, &_inner_error_);
-#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (child);
-#line 1204 "VideoMetadata.c"
- goto __catch588_g_error;
- }
-#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- timestamp = _tmp22_ - QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT;
-#line 140 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- done = TRUE;
-#line 141 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 1213 "VideoMetadata.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = child;
-#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_next_atom (_tmp24_, &_inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (child);
-#line 1223 "VideoMetadata.c"
- goto __catch588_g_error;
- }
- }
-#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (child);
-#line 1229 "VideoMetadata.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp25_ = test;
-#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_next_atom (_tmp25_, &_inner_error_);
-#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1237 "VideoMetadata.c"
- goto __catch588_g_error;
- }
- }
- }
- goto __finally588;
- __catch588_g_error:
- {
- GError* e = NULL;
- GError* _tmp26_;
- const gchar* _tmp27_;
-#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- e = _inner_error_;
-#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = NULL;
-#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp26_ = e;
-#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp27_ = _tmp26_->message;
-#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:149: Error while testing for QuickTime file: %s", _tmp27_);
-#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_error_free0 (e);
-#line 1260 "VideoMetadata.c"
- }
- __finally588:
-#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1265 "VideoMetadata.c"
- gulong _tmp28_ = 0UL;
-#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (test);
-#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.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 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp28_;
-#line 1275 "VideoMetadata.c"
- }
- {
- QuickTimeAtom* _tmp29_;
-#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp29_ = test;
-#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_close_file (_tmp29_, &_inner_error_);
-#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1285 "VideoMetadata.c"
- goto __catch589_g_error;
- }
- }
- goto __finally589;
- __catch589_g_error:
- {
- GError* e = NULL;
- GError* _tmp30_;
- const gchar* _tmp31_;
-#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- e = _inner_error_;
-#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = NULL;
-#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp30_ = e;
-#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp31_ = _tmp30_->message;
-#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:155: Error while closing Quicktime file: %s", _tmp31_);
-#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_error_free0 (e);
-#line 1307 "VideoMetadata.c"
- }
- __finally589:
-#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1312 "VideoMetadata.c"
- gulong _tmp32_ = 0UL;
-#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (test);
-#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.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 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp32_;
-#line 1322 "VideoMetadata.c"
- }
-#line 166 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp33_ = timestamp;
-#line 166 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp33_ < ((time_t) 0)) {
-#line 1328 "VideoMetadata.c"
- time_t _tmp34_;
-#line 167 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp34_ = timestamp;
-#line 167 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- timestamp = _tmp34_ + QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT;
-#line 1334 "VideoMetadata.c"
- }
-#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp35_ = timestamp;
-#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = (gulong) _tmp35_;
-#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (test);
-#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 1344 "VideoMetadata.c"
-}
-
-
-static void
-value_quick_time_metadata_loader_init (GValue* value)
-{
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1353 "VideoMetadata.c"
-}
-
-
-static void
-value_quick_time_metadata_loader_free_value (GValue* value)
-{
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_metadata_loader_unref (value->data[0].v_pointer);
-#line 1364 "VideoMetadata.c"
- }
-}
-
-
-static void
-value_quick_time_metadata_loader_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- dest_value->data[0].v_pointer = quick_time_metadata_loader_ref (src_value->data[0].v_pointer);
-#line 1377 "VideoMetadata.c"
- } else {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1381 "VideoMetadata.c"
- }
-}
-
-
-static gpointer
-value_quick_time_metadata_loader_peek_pointer (const GValue* value)
-{
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return value->data[0].v_pointer;
-#line 1391 "VideoMetadata.c"
-}
-
-
-static gchar*
-value_quick_time_metadata_loader_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 1403 "VideoMetadata.c"
- QuickTimeMetadataLoader * object;
- object = collect_values[0].v_pointer;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1410 "VideoMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.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 1414 "VideoMetadata.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = quick_time_metadata_loader_ref (object);
-#line 1418 "VideoMetadata.c"
- } else {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1422 "VideoMetadata.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 1426 "VideoMetadata.c"
-}
-
-
-static gchar*
-value_quick_time_metadata_loader_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- QuickTimeMetadataLoader ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!object_p) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1442 "VideoMetadata.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = NULL;
-#line 1448 "VideoMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 1452 "VideoMetadata.c"
- } else {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = quick_time_metadata_loader_ref (value->data[0].v_pointer);
-#line 1456 "VideoMetadata.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 1460 "VideoMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_quick_time_metadata_loader (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecQuickTimeMetadataLoader* spec;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_QUICK_TIME_METADATA_LOADER), NULL);
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 1480 "VideoMetadata.c"
-}
-
-
-gpointer
-value_get_quick_time_metadata_loader (const GValue* value)
-{
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER), NULL);
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return value->data[0].v_pointer;
-#line 1491 "VideoMetadata.c"
-}
-
-
-void
-value_set_quick_time_metadata_loader (GValue* value,
- gpointer v_object)
-{
- QuickTimeMetadataLoader * old;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER));
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (v_object) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QUICK_TIME_METADATA_LOADER));
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_metadata_loader_ref (value->data[0].v_pointer);
-#line 1514 "VideoMetadata.c"
- } else {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1518 "VideoMetadata.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (old) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_metadata_loader_unref (old);
-#line 1524 "VideoMetadata.c"
- }
-}
-
-
-void
-value_take_quick_time_metadata_loader (GValue* value,
- gpointer v_object)
-{
- QuickTimeMetadataLoader * old;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER));
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (v_object) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QUICK_TIME_METADATA_LOADER));
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 1546 "VideoMetadata.c"
- } else {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1550 "VideoMetadata.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (old) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_metadata_loader_unref (old);
-#line 1556 "VideoMetadata.c"
- }
-}
-
-
-static void
-quick_time_metadata_loader_class_init (QuickTimeMetadataLoaderClass * klass)
-{
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_metadata_loader_parent_class = g_type_class_peek_parent (klass);
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((QuickTimeMetadataLoaderClass *) klass)->finalize = quick_time_metadata_loader_finalize;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_class_add_private (klass, sizeof (QuickTimeMetadataLoaderPrivate));
-#line 1570 "VideoMetadata.c"
-}
-
-
-static void
-quick_time_metadata_loader_instance_init (QuickTimeMetadataLoader * self)
-{
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv = QUICK_TIME_METADATA_LOADER_GET_PRIVATE (self);
-#line 59 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = NULL;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->ref_count = 1;
-#line 1583 "VideoMetadata.c"
-}
-
-
-static void
-quick_time_metadata_loader_finalize (QuickTimeMetadataLoader * obj)
-{
- QuickTimeMetadataLoader * self;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoader);
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 59 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->file);
-#line 1597 "VideoMetadata.c"
-}
-
-
-GType
-quick_time_metadata_loader_get_type (void)
-{
- static volatile gsize quick_time_metadata_loader_type_id__volatile = 0;
- if (g_once_init_enter (&quick_time_metadata_loader_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_quick_time_metadata_loader_init, value_quick_time_metadata_loader_free_value, value_quick_time_metadata_loader_copy_value, value_quick_time_metadata_loader_peek_pointer, "p", value_quick_time_metadata_loader_collect_value, "p", value_quick_time_metadata_loader_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (QuickTimeMetadataLoaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) quick_time_metadata_loader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (QuickTimeMetadataLoader), 0, (GInstanceInitFunc) quick_time_metadata_loader_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType quick_time_metadata_loader_type_id;
- quick_time_metadata_loader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "QuickTimeMetadataLoader", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&quick_time_metadata_loader_type_id__volatile, quick_time_metadata_loader_type_id);
- }
- return quick_time_metadata_loader_type_id__volatile;
-}
-
-
-gpointer
-quick_time_metadata_loader_ref (gpointer instance)
-{
- QuickTimeMetadataLoader * self;
- self = instance;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return instance;
-#line 1626 "VideoMetadata.c"
-}
-
-
-void
-quick_time_metadata_loader_unref (gpointer instance)
-{
- QuickTimeMetadataLoader * self;
- self = instance;
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- QUICK_TIME_METADATA_LOADER_GET_CLASS (self)->finalize (self);
-#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1641 "VideoMetadata.c"
- }
-}
-
-
-QuickTimeAtom*
-quick_time_atom_construct (GType object_type,
- GFile* file)
-{
- QuickTimeAtom* self = NULL;
- GFile* _tmp0_;
-#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = (QuickTimeAtom*) g_type_create_instance (object_type);
-#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->file);
-#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = _tmp0_;
-#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self;
-#line 1664 "VideoMetadata.c"
-}
-
-
-QuickTimeAtom*
-quick_time_atom_new (GFile* file)
-{
-#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return quick_time_atom_construct (TYPE_QUICK_TIME_ATOM, file);
-#line 1673 "VideoMetadata.c"
-}
-
-
-static gpointer
-_quick_time_atom_ref0 (gpointer self)
-{
-#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self ? quick_time_atom_ref (self) : NULL;
-#line 1682 "VideoMetadata.c"
-}
-
-
-static QuickTimeAtom*
-quick_time_atom_construct_with_input_stream (GType object_type,
- GDataInputStream* input,
- QuickTimeAtom* parent)
-{
- QuickTimeAtom* self = NULL;
- GDataInputStream* _tmp0_;
- QuickTimeAtom* _tmp1_;
-#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_IS_DATA_INPUT_STREAM (input), NULL);
-#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_ATOM (parent), NULL);
-#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = (QuickTimeAtom*) g_type_create_instance (object_type);
-#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _g_object_ref0 (input);
-#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->input);
-#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->input = _tmp0_;
-#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _quick_time_atom_ref0 (parent);
-#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (self->priv->parent);
-#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->parent = _tmp1_;
-#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self;
-#line 1714 "VideoMetadata.c"
-}
-
-
-static QuickTimeAtom*
-quick_time_atom_new_with_input_stream (GDataInputStream* input,
- QuickTimeAtom* parent)
-{
-#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return quick_time_atom_construct_with_input_stream (TYPE_QUICK_TIME_ATOM, input, parent);
-#line 1724 "VideoMetadata.c"
-}
-
-
-void
-quick_time_atom_open_file (QuickTimeAtom* self,
- GError** error)
-{
- GFileInputStream* _tmp0_ = NULL;
- GFile* _tmp1_;
- GFileInputStream* _tmp2_;
- GDataInputStream* _tmp3_;
- GDataInputStream* _tmp4_;
- gchar* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 190 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_QUICK_TIME_ATOM (self));
-#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_close_file (self, &_inner_error_);
-#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 1749 "VideoMetadata.c"
- }
-#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->file;
-#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_file_read (_tmp1_, NULL, &_inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _tmp2_;
-#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 1763 "VideoMetadata.c"
- }
-#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _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"
- self->priv->input = _tmp3_;
-#line 193 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = self->priv->input;
-#line 193 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_data_input_stream_set_byte_order (_tmp4_, G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN);
-#line 194 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) 0;
-#line 195 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = (guint64) 0;
-#line 196 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = g_strdup ("");
-#line 196 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->section_name);
-#line 196 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_name = _tmp5_;
-#line 190 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (_tmp0_);
-#line 1787 "VideoMetadata.c"
-}
-
-
-void
-quick_time_atom_close_file (QuickTimeAtom* self,
- GError** error)
-{
- GDataInputStream* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 199 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_QUICK_TIME_ATOM (self));
-#line 200 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->input;
-#line 200 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp0_) {
-#line 1803 "VideoMetadata.c"
- GDataInputStream* _tmp1_;
-#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_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"
- g_propagate_error (error, _inner_error_);
-#line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 1815 "VideoMetadata.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->input);
-#line 202 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->input = NULL;
-#line 1821 "VideoMetadata.c"
- }
-}
-
-
-static void
-quick_time_atom_advance_section_offset (QuickTimeAtom* self,
- guint64 amount)
-{
- guint64 _tmp0_;
- QuickTimeAtom* _tmp1_;
-#line 206 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_QUICK_TIME_ATOM (self));
-#line 207 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->section_offset;
-#line 207 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = _tmp0_ + amount;
-#line 208 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->parent;
-#line 208 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp1_) {
-#line 1842 "VideoMetadata.c"
- QuickTimeAtom* _tmp2_;
-#line 209 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = self->priv->parent;
-#line 209 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_advance_section_offset (_tmp2_, amount);
-#line 1848 "VideoMetadata.c"
- }
-}
-
-
-QuickTimeAtom*
-quick_time_atom_get_first_child_atom (QuickTimeAtom* self)
-{
- QuickTimeAtom* result = NULL;
- GDataInputStream* _tmp0_;
- QuickTimeAtom* _tmp1_;
-#line 213 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), NULL);
-#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->input;
-#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = quick_time_atom_new_with_input_stream (_tmp0_, self);
-#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
-#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 1869 "VideoMetadata.c"
-}
-
-
-guchar
-quick_time_atom_read_byte (QuickTimeAtom* self,
- GError** error)
-{
- guchar result = '\0';
- guint8 _tmp0_ = 0U;
- GDataInputStream* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 222 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), '\0');
-#line 223 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_advance_section_offset (self, (guint64) 1);
-#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->input;
-#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_data_input_stream_read_byte (_tmp1_, NULL, &_inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1891 "VideoMetadata.c"
- guchar _tmp2_ = '\0';
-#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp2_;
-#line 1897 "VideoMetadata.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = (guchar) _tmp0_;
-#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 1903 "VideoMetadata.c"
-}
-
-
-guint32
-quick_time_atom_read_uint32 (QuickTimeAtom* self,
- GError** error)
-{
- guint32 result = 0U;
- guint32 _tmp0_ = 0U;
- GDataInputStream* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 227 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), 0U);
-#line 228 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_advance_section_offset (self, (guint64) 4);
-#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->input;
-#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_data_input_stream_read_uint32 (_tmp1_, NULL, &_inner_error_);
-#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1925 "VideoMetadata.c"
- guint32 _tmp2_ = 0U;
-#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp2_;
-#line 1931 "VideoMetadata.c"
- }
-#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp0_;
-#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 1937 "VideoMetadata.c"
-}
-
-
-guint64
-quick_time_atom_read_uint64 (QuickTimeAtom* self,
- GError** error)
-{
- guint64 result = 0ULL;
- guint64 _tmp0_ = 0ULL;
- GDataInputStream* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 232 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), 0ULL);
-#line 233 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_advance_section_offset (self, (guint64) 8);
-#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->input;
-#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_data_input_stream_read_uint64 (_tmp1_, NULL, &_inner_error_);
-#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1959 "VideoMetadata.c"
- guint64 _tmp2_ = 0ULL;
-#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp2_;
-#line 1965 "VideoMetadata.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp0_;
-#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 1971 "VideoMetadata.c"
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1989 "VideoMetadata.c"
-}
-
-
-void
-quick_time_atom_read_atom (QuickTimeAtom* self,
- GError** error)
-{
- guint32 _tmp0_ = 0U;
- GString* sb = NULL;
- GString* _tmp1_;
- guchar _tmp2_ = '\0';
- GString* _tmp3_;
- guchar _tmp4_ = '\0';
- GString* _tmp5_;
- guchar _tmp6_ = '\0';
- GString* _tmp7_;
- guchar _tmp8_ = '\0';
- GString* _tmp9_;
- GString* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- const gchar* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- guint64 _tmp34_;
- GError * _inner_error_ = NULL;
-#line 237 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_QUICK_TIME_ATOM (self));
-#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = quick_time_atom_read_uint32 (self, &_inner_error_);
-#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2026 "VideoMetadata.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) _tmp0_;
-#line 242 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = g_string_new ("");
-#line 242 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp1_;
-#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = quick_time_atom_read_byte (self, &_inner_error_);
-#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2044 "VideoMetadata.c"
- }
-#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = sb;
-#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp3_, (gchar) _tmp2_);
-#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = quick_time_atom_read_byte (self, &_inner_error_);
-#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2060 "VideoMetadata.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = sb;
-#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp5_, (gchar) _tmp4_);
-#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = quick_time_atom_read_byte (self, &_inner_error_);
-#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2076 "VideoMetadata.c"
- }
-#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = sb;
-#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp7_, (gchar) _tmp6_);
-#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = quick_time_atom_read_byte (self, &_inner_error_);
-#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2092 "VideoMetadata.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = sb;
-#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp9_, (gchar) _tmp8_);
-#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = sb;
-#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = _tmp10_->str;
-#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = g_strdup (_tmp11_);
-#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->section_name);
-#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_name = _tmp12_;
-#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = self->priv->section_name;
-#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = strlen (_tmp13_);
-#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = _tmp14_;
-#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp15_ != 4) {
-#line 2116 "VideoMetadata.c"
- GFile* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GError* _tmp19_;
- GError* _tmp20_;
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = self->priv->file;
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = g_file_get_path (_tmp16_);
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = _tmp17_;
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "QuickTime atom name length is invalid for %s", _tmp18_);
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = _tmp19_;
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp18_);
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = _tmp20_;
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2142 "VideoMetadata.c"
- }
- {
- gint i = 0;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- i = 0;
-#line 2148 "VideoMetadata.c"
- {
- gboolean _tmp21_ = FALSE;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = TRUE;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 2155 "VideoMetadata.c"
- gint _tmp23_;
- const gchar* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- const gchar* _tmp27_;
- gint _tmp28_;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!_tmp21_) {
-#line 2164 "VideoMetadata.c"
- gint _tmp22_;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = i;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- i = _tmp22_ + 1;
-#line 2170 "VideoMetadata.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = FALSE;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = i;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = self->priv->section_name;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp25_ = strlen (_tmp24_);
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp26_ = _tmp25_;
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(_tmp23_ < _tmp26_)) {
-#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 2186 "VideoMetadata.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp27_ = self->priv->section_name;
-#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp28_ = i;
-#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!g_ascii_isprint (string_get (_tmp27_, (glong) _tmp28_))) {
-#line 2194 "VideoMetadata.c"
- GFile* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- GError* _tmp32_;
- GError* _tmp33_;
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp29_ = self->priv->file;
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp30_ = g_file_get_path (_tmp29_);
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp31_ = _tmp30_;
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp32_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "Bad QuickTime atom in file %s", _tmp31_);
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp33_ = _tmp32_;
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp31_);
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = _tmp33_;
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2220 "VideoMetadata.c"
- }
- }
- }
- }
-#line 260 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp34_ = self->priv->section_size;
-#line 260 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (((guint64) 1) == _tmp34_) {
-#line 2229 "VideoMetadata.c"
- guint64 _tmp35_ = 0ULL;
-#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp35_ = quick_time_atom_read_uint64 (self, &_inner_error_);
-#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2241 "VideoMetadata.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = _tmp35_;
-#line 2245 "VideoMetadata.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 2249 "VideoMetadata.c"
-}
-
-
-static void
-quick_time_atom_skip (QuickTimeAtom* self,
- guint64 skip_amount,
- GError** error)
-{
- GDataInputStream* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 267 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_QUICK_TIME_ATOM (self));
-#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->input;
-#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_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"
- g_propagate_error (error, _inner_error_);
-#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2272 "VideoMetadata.c"
- }
-}
-
-
-guint64
-quick_time_atom_section_size_remaining (QuickTimeAtom* self)
-{
- guint64 result = 0ULL;
- guint64 _tmp0_;
- guint64 _tmp1_;
- guint64 _tmp2_;
- guint64 _tmp3_;
-#line 271 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), 0ULL);
-#line 272 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->section_size;
-#line 272 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->section_offset;
-#line 272 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _vala_assert (_tmp0_ >= _tmp1_, "section_size >= section_offset");
-#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = self->priv->section_size;
-#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = self->priv->section_offset;
-#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp2_ - _tmp3_;
-#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 2301 "VideoMetadata.c"
-}
-
-
-void
-quick_time_atom_next_atom (QuickTimeAtom* self,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 276 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_QUICK_TIME_ATOM (self));
-#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_skip (self, quick_time_atom_section_size_remaining (self), &_inner_error_);
-#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 2320 "VideoMetadata.c"
- }
-#line 278 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) 0;
-#line 279 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = (guint64) 0;
-#line 2326 "VideoMetadata.c"
-}
-
-
-gchar*
-quick_time_atom_get_current_atom_name (QuickTimeAtom* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 282 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), NULL);
-#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->section_name;
-#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
-#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 2346 "VideoMetadata.c"
-}
-
-
-gboolean
-quick_time_atom_is_last_atom (QuickTimeAtom* self)
-{
- gboolean result = FALSE;
- guint64 _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), FALSE);
-#line 287 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->section_size;
-#line 287 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = ((guint64) 0) == _tmp0_;
-#line 287 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 2363 "VideoMetadata.c"
-}
-
-
-static void
-value_quick_time_atom_init (GValue* value)
-{
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2372 "VideoMetadata.c"
-}
-
-
-static void
-value_quick_time_atom_free_value (GValue* value)
-{
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_unref (value->data[0].v_pointer);
-#line 2383 "VideoMetadata.c"
- }
-}
-
-
-static void
-value_quick_time_atom_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- dest_value->data[0].v_pointer = quick_time_atom_ref (src_value->data[0].v_pointer);
-#line 2396 "VideoMetadata.c"
- } else {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2400 "VideoMetadata.c"
- }
-}
-
-
-static gpointer
-value_quick_time_atom_peek_pointer (const GValue* value)
-{
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return value->data[0].v_pointer;
-#line 2410 "VideoMetadata.c"
-}
-
-
-static gchar*
-value_quick_time_atom_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 2422 "VideoMetadata.c"
- QuickTimeAtom * object;
- object = collect_values[0].v_pointer;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2429 "VideoMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.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 2433 "VideoMetadata.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = quick_time_atom_ref (object);
-#line 2437 "VideoMetadata.c"
- } else {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2441 "VideoMetadata.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 2445 "VideoMetadata.c"
-}
-
-
-static gchar*
-value_quick_time_atom_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- QuickTimeAtom ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!object_p) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2461 "VideoMetadata.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = NULL;
-#line 2467 "VideoMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 2471 "VideoMetadata.c"
- } else {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = quick_time_atom_ref (value->data[0].v_pointer);
-#line 2475 "VideoMetadata.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 2479 "VideoMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_quick_time_atom (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecQuickTimeAtom* spec;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_QUICK_TIME_ATOM), NULL);
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 2499 "VideoMetadata.c"
-}
-
-
-gpointer
-value_get_quick_time_atom (const GValue* value)
-{
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM), NULL);
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return value->data[0].v_pointer;
-#line 2510 "VideoMetadata.c"
-}
-
-
-void
-value_set_quick_time_atom (GValue* value,
- gpointer v_object)
-{
- QuickTimeAtom * old;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM));
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (v_object) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QUICK_TIME_ATOM));
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_ref (value->data[0].v_pointer);
-#line 2533 "VideoMetadata.c"
- } else {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2537 "VideoMetadata.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (old) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_unref (old);
-#line 2543 "VideoMetadata.c"
- }
-}
-
-
-void
-value_take_quick_time_atom (GValue* value,
- gpointer v_object)
-{
- QuickTimeAtom * old;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM));
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (v_object) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QUICK_TIME_ATOM));
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 2565 "VideoMetadata.c"
- } else {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2569 "VideoMetadata.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (old) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_unref (old);
-#line 2575 "VideoMetadata.c"
- }
-}
-
-
-static void
-quick_time_atom_class_init (QuickTimeAtomClass * klass)
-{
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_parent_class = g_type_class_peek_parent (klass);
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((QuickTimeAtomClass *) klass)->finalize = quick_time_atom_finalize;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_class_add_private (klass, sizeof (QuickTimeAtomPrivate));
-#line 2589 "VideoMetadata.c"
-}
-
-
-static void
-quick_time_atom_instance_init (QuickTimeAtom * self)
-{
- gchar* _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv = QUICK_TIME_ATOM_GET_PRIVATE (self);
-#line 174 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = NULL;
-#line 175 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_strdup ("");
-#line 175 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_name = _tmp0_;
-#line 176 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) 0;
-#line 177 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = (guint64) 0;
-#line 178 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->input = NULL;
-#line 179 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->parent = NULL;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->ref_count = 1;
-#line 2615 "VideoMetadata.c"
-}
-
-
-static void
-quick_time_atom_finalize (QuickTimeAtom * obj)
-{
- QuickTimeAtom * self;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_QUICK_TIME_ATOM, QuickTimeAtom);
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 174 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->file);
-#line 175 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->section_name);
-#line 178 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->input);
-#line 179 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _quick_time_atom_unref0 (self->priv->parent);
-#line 2635 "VideoMetadata.c"
-}
-
-
-GType
-quick_time_atom_get_type (void)
-{
- static volatile gsize quick_time_atom_type_id__volatile = 0;
- if (g_once_init_enter (&quick_time_atom_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_quick_time_atom_init, value_quick_time_atom_free_value, value_quick_time_atom_copy_value, value_quick_time_atom_peek_pointer, "p", value_quick_time_atom_collect_value, "p", value_quick_time_atom_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (QuickTimeAtomClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) quick_time_atom_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (QuickTimeAtom), 0, (GInstanceInitFunc) quick_time_atom_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType quick_time_atom_type_id;
- quick_time_atom_type_id = g_type_register_fundamental (g_type_fundamental_next (), "QuickTimeAtom", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&quick_time_atom_type_id__volatile, quick_time_atom_type_id);
- }
- return quick_time_atom_type_id__volatile;
-}
-
-
-gpointer
-quick_time_atom_ref (gpointer instance)
-{
- QuickTimeAtom * self;
- self = instance;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return instance;
-#line 2664 "VideoMetadata.c"
-}
-
-
-void
-quick_time_atom_unref (gpointer instance)
-{
- QuickTimeAtom * self;
- self = instance;
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- QUICK_TIME_ATOM_GET_CLASS (self)->finalize (self);
-#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2679 "VideoMetadata.c"
- }
-}
-
-
-AVIMetadataLoader*
-avi_metadata_loader_construct (GType object_type,
- GFile* file)
-{
- AVIMetadataLoader* self = NULL;
- GFile* _tmp0_;
-#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = (AVIMetadataLoader*) g_type_create_instance (object_type);
-#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->file);
-#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = _tmp0_;
-#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self;
-#line 2702 "VideoMetadata.c"
-}
-
-
-AVIMetadataLoader*
-avi_metadata_loader_new (GFile* file)
-{
-#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return avi_metadata_loader_construct (TYPE_AVI_METADATA_LOADER, file);
-#line 2711 "VideoMetadata.c"
-}
-
-
-MetadataDateTime*
-avi_metadata_loader_get_creation_date_time (AVIMetadataLoader* self)
-{
- MetadataDateTime* result = NULL;
- MetadataDateTime* _tmp0_;
-#line 309 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
-#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = metadata_date_time_new ((time_t) avi_metadata_loader_get_creation_date_time_for_avi (self));
-#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp0_;
-#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 2728 "VideoMetadata.c"
-}
-
-
-gchar*
-avi_metadata_loader_get_title (AVIMetadataLoader* self)
-{
- gchar* result = NULL;
-#line 313 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
-#line 315 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = NULL;
-#line 315 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 2742 "VideoMetadata.c"
-}
-
-
-gboolean
-avi_metadata_loader_is_supported (AVIMetadataLoader* self)
-{
- gboolean result = FALSE;
- AVIChunk* chunk = NULL;
- GFile* _tmp0_;
- AVIChunk* _tmp1_;
- gboolean ret = FALSE;
- GError * _inner_error_ = NULL;
-#line 319 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), FALSE);
-#line 320 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->file;
-#line 320 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = avi_chunk_new (_tmp0_);
-#line 320 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- chunk = _tmp1_;
-#line 321 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ret = FALSE;
-#line 2765 "VideoMetadata.c"
- {
- AVIChunk* _tmp2_;
- AVIChunk* _tmp3_;
- gboolean _tmp4_ = FALSE;
- AVIChunk* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gboolean _tmp8_;
-#line 323 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = chunk;
-#line 323 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_open_file (_tmp2_, &_inner_error_);
-#line 323 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2780 "VideoMetadata.c"
- goto __catch590_g_error;
- }
-#line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = chunk;
-#line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_read_chunk (_tmp3_, &_inner_error_);
-#line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2789 "VideoMetadata.c"
- goto __catch590_g_error;
- }
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = chunk;
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = avi_chunk_get_current_chunk_name (_tmp5_);
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = _tmp6_;
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = g_strcmp0 ("RIFF", _tmp7_) == 0;
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp7_);
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp8_) {
-#line 2804 "VideoMetadata.c"
- gchar* _tmp9_ = NULL;
- AVIChunk* _tmp10_;
- gchar* _tmp11_;
-#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = chunk;
-#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = avi_chunk_read_name (_tmp10_, &_inner_error_);
-#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = _tmp11_;
-#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2816 "VideoMetadata.c"
- goto __catch590_g_error;
- }
-#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = g_strcmp0 ("AVI ", _tmp9_) == 0;
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp9_);
-#line 2823 "VideoMetadata.c"
- } else {
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = FALSE;
-#line 2827 "VideoMetadata.c"
- }
-#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp4_) {
-#line 328 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ret = TRUE;
-#line 2833 "VideoMetadata.c"
- }
- }
- goto __finally590;
- __catch590_g_error:
- {
- GError* e = NULL;
- GError* _tmp12_;
- const gchar* _tmp13_;
-#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- e = _inner_error_;
-#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = NULL;
-#line 331 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = e;
-#line 331 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = _tmp12_->message;
-#line 331 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:331: Error while testing for AVI file: %s", _tmp13_);
-#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_error_free0 (e);
-#line 2854 "VideoMetadata.c"
- }
- __finally590:
-#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2859 "VideoMetadata.c"
- gboolean _tmp14_ = FALSE;
-#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (chunk);
-#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.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 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp14_;
-#line 2869 "VideoMetadata.c"
- }
- {
- AVIChunk* _tmp15_;
-#line 335 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = chunk;
-#line 335 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_close_file (_tmp15_, &_inner_error_);
-#line 335 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2879 "VideoMetadata.c"
- goto __catch591_g_error;
- }
- }
- goto __finally591;
- __catch591_g_error:
- {
- GError* e = NULL;
- GError* _tmp16_;
- const gchar* _tmp17_;
-#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- e = _inner_error_;
-#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = NULL;
-#line 337 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = e;
-#line 337 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = _tmp16_->message;
-#line 337 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:337: Error while closing AVI file: %s", _tmp17_);
-#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_error_free0 (e);
-#line 2901 "VideoMetadata.c"
- }
- __finally591:
-#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2906 "VideoMetadata.c"
- gboolean _tmp18_ = FALSE;
-#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (chunk);
-#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.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 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp18_;
-#line 2916 "VideoMetadata.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = ret;
-#line 339 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (chunk);
-#line 339 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 2924 "VideoMetadata.c"
-}
-
-
-static gchar*
-avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self,
- AVIChunk* chunk,
- GError** error)
-{
- gchar* result = NULL;
- gboolean found_date = FALSE;
- gboolean _tmp2_;
- gchar* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 343 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
-#line 343 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (chunk), NULL);
-#line 344 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- found_date = FALSE;
-#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 2946 "VideoMetadata.c"
- guint16 tag = 0U;
- guint16 size = 0U;
- guint16 _tmp0_;
- guint16 _tmp1_;
-#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(avi_chunk_section_size_remaining (chunk) > ((guint64) (sizeof (guint16) * 2)))) {
-#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 2955 "VideoMetadata.c"
- }
-#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- tag = avi_chunk_read_uint16 (chunk, &_inner_error_);
-#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 2965 "VideoMetadata.c"
- }
-#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- size = avi_chunk_read_uint16 (chunk, &_inner_error_);
-#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 2975 "VideoMetadata.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = tag;
-#line 348 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (AVI_METADATA_LOADER_NIKON_NCTG_TIMESTAMP_MARKER == _tmp0_) {
-#line 349 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- found_date = TRUE;
-#line 350 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 2985 "VideoMetadata.c"
- }
-#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = size;
-#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_skip (chunk, (guint64) _tmp1_, &_inner_error_);
-#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 2997 "VideoMetadata.c"
- }
- }
-#line 355 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = found_date;
-#line 355 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp2_) {
-#line 3004 "VideoMetadata.c"
- GString* sb = NULL;
- GString* _tmp3_;
- GString* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
-#line 357 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = g_string_new ("");
-#line 357 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp3_;
-#line 3014 "VideoMetadata.c"
- {
- gint i = 0;
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- i = 0;
-#line 3019 "VideoMetadata.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = TRUE;
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 3026 "VideoMetadata.c"
- gint _tmp6_;
- guchar _tmp7_ = '\0';
- GString* _tmp8_;
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!_tmp4_) {
-#line 3032 "VideoMetadata.c"
- gint _tmp5_;
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = i;
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- i = _tmp5_ + 1;
-#line 3038 "VideoMetadata.c"
- }
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = FALSE;
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = i;
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(_tmp6_ < AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH)) {
-#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 3048 "VideoMetadata.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = avi_chunk_read_byte (chunk, &_inner_error_);
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3060 "VideoMetadata.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = sb;
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp8_, (gchar) _tmp7_);
-#line 3066 "VideoMetadata.c"
- }
- }
- }
-#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = sb;
-#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = _tmp9_->str;
-#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp11_;
-#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3082 "VideoMetadata.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = g_strdup ("");
-#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp12_;
-#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3090 "VideoMetadata.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3114 "VideoMetadata.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3123 "VideoMetadata.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 3144 "VideoMetadata.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 3148 "VideoMetadata.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 3154 "VideoMetadata.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 3164 "VideoMetadata.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 3168 "VideoMetadata.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 3176 "VideoMetadata.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 3183 "VideoMetadata.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 3187 "VideoMetadata.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 3193 "VideoMetadata.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3205 "VideoMetadata.c"
-}
-
-
-static gchar*
-avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self,
- AVIChunk* chunk,
- GError** error)
-{
- gchar* result = NULL;
- gint colons = 0;
- gint post_colons = 0;
- GString* sb = NULL;
- GString* _tmp0_;
- GString* _tmp15_;
- const gchar* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- GString* _tmp20_;
- const gchar* _tmp21_;
- GString* _tmp22_;
- const gchar* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- gchar* _tmp26_;
- GError * _inner_error_ = NULL;
-#line 368 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
-#line 368 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (chunk), NULL);
-#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_skip (chunk, (guint64) 98, &_inner_error_);
-#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3243 "VideoMetadata.c"
- }
-#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_skip (chunk, (guint64) 8, &_inner_error_);
-#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3253 "VideoMetadata.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- colons = 0;
-#line 373 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- post_colons = 0;
-#line 374 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_string_new ("");
-#line 374 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp0_;
-#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 3265 "VideoMetadata.c"
- gboolean _tmp1_ = FALSE;
- gint _tmp2_;
- guchar _tmp4_ = '\0';
- gchar c = '\0';
- gint _tmp5_;
- gchar _tmp7_;
- gchar _tmp9_;
- GString* _tmp12_;
- gssize _tmp13_;
-#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = colons;
-#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp2_ <= 4) {
-#line 3279 "VideoMetadata.c"
- gint _tmp3_;
-#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = post_colons;
-#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _tmp3_ < 2;
-#line 3285 "VideoMetadata.c"
- } else {
-#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = FALSE;
-#line 3289 "VideoMetadata.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!_tmp1_) {
-#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 3295 "VideoMetadata.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = avi_chunk_read_byte (chunk, &_inner_error_);
-#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3307 "VideoMetadata.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- c = (gchar) _tmp4_;
-#line 378 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = colons;
-#line 378 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (4 == _tmp5_) {
-#line 3315 "VideoMetadata.c"
- gint _tmp6_;
-#line 379 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = post_colons;
-#line 379 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- post_colons = _tmp6_ + 1;
-#line 3321 "VideoMetadata.c"
- }
-#line 381 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = c;
-#line 381 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (':' == _tmp7_) {
-#line 3327 "VideoMetadata.c"
- gint _tmp8_;
-#line 382 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = colons;
-#line 382 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- colons = _tmp8_ + 1;
-#line 3333 "VideoMetadata.c"
- }
-#line 384 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = c;
-#line 384 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_ascii_isprint (_tmp9_)) {
-#line 3339 "VideoMetadata.c"
- GString* _tmp10_;
- gchar _tmp11_;
-#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = sb;
-#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = c;
-#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp10_, _tmp11_);
-#line 3348 "VideoMetadata.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = sb;
-#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = _tmp12_->len;
-#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp13_ > ((gssize) AVI_METADATA_LOADER_MAX_STRD_LENGTH)) {
-#line 3356 "VideoMetadata.c"
- gchar* _tmp14_;
-#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = g_strdup ("");
-#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp14_;
-#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3366 "VideoMetadata.c"
- }
- }
-#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = sb;
-#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = _tmp15_->str;
-#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = strlen (_tmp16_);
-#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = _tmp17_;
-#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp18_ < AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH) {
-#line 3379 "VideoMetadata.c"
- gchar* _tmp19_;
-#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = g_strdup ("");
-#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp19_;
-#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3389 "VideoMetadata.c"
- }
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = sb;
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = _tmp20_->str;
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = sb;
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = _tmp22_->str;
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = strlen (_tmp23_);
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp25_ = _tmp24_;
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp26_ = string_substring (_tmp21_, (glong) (_tmp25_ - AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH), (glong) -1);
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp26_;
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3411 "VideoMetadata.c"
-}
-
-
-static gchar*
-avi_metadata_loader_read_section (AVIMetadataLoader* self,
- AVIChunk* chunk,
- GError** error)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 400 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
-#line 400 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (chunk), NULL);
-#line 401 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 3428 "VideoMetadata.c"
- gchar* name = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp13_;
-#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_read_chunk (chunk, &_inner_error_);
-#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3441 "VideoMetadata.c"
- }
-#line 403 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = avi_chunk_get_current_chunk_name (chunk);
-#line 403 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- name = _tmp0_;
-#line 404 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = name;
-#line 404 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_strcmp0 ("IDIT", _tmp1_) == 0) {
-#line 3451 "VideoMetadata.c"
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = avi_chunk_section_to_string (chunk, &_inner_error_);
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = _tmp3_;
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3467 "VideoMetadata.c"
- }
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = _tmp2_;
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = NULL;
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp4_;
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp2_);
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3481 "VideoMetadata.c"
- } else {
- const gchar* _tmp5_;
-#line 406 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = name;
-#line 406 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_strcmp0 ("nctg", _tmp5_) == 0) {
-#line 3488 "VideoMetadata.c"
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = avi_metadata_loader_read_nikon_nctg_tag (self, chunk, &_inner_error_);
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = _tmp7_;
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3504 "VideoMetadata.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = _tmp6_;
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = NULL;
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp8_;
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp6_);
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3518 "VideoMetadata.c"
- } else {
- const gchar* _tmp9_;
-#line 408 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = name;
-#line 408 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_strcmp0 ("strd", _tmp9_) == 0) {
-#line 3525 "VideoMetadata.c"
- gchar* _tmp10_ = NULL;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = avi_metadata_loader_read_fuji_strd_tag (self, chunk, &_inner_error_);
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = _tmp11_;
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3541 "VideoMetadata.c"
- }
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = _tmp10_;
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = NULL;
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp12_;
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp10_);
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3555 "VideoMetadata.c"
- }
- }
- }
-#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = name;
-#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_strcmp0 ("LIST", _tmp13_) == 0) {
-#line 3563 "VideoMetadata.c"
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _result_ = NULL;
- AVIChunk* _tmp16_;
- AVIChunk* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- const gchar* _tmp20_;
-#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = avi_chunk_read_name (chunk, &_inner_error_);
-#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = _tmp14_;
-#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp15_);
-#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3586 "VideoMetadata.c"
- }
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = avi_chunk_get_first_child_chunk (chunk);
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = _tmp16_;
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = avi_metadata_loader_read_section (self, _tmp17_, &_inner_error_);
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = _tmp18_;
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (_tmp17_);
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _result_ = _tmp19_;
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3608 "VideoMetadata.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = _result_;
-#line 415 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp20_) {
-#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _result_;
-#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3620 "VideoMetadata.c"
- }
-#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_result_);
-#line 3624 "VideoMetadata.c"
- }
-#line 420 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (avi_chunk_is_last_chunk (chunk)) {
-#line 421 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 421 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 3632 "VideoMetadata.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_next_chunk (chunk, &_inner_error_);
-#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 3644 "VideoMetadata.c"
- }
-#line 401 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (name);
-#line 3648 "VideoMetadata.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = NULL;
-#line 425 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3654 "VideoMetadata.c"
-}
-
-
-static gulong
-avi_metadata_loader_parse_date (AVIMetadataLoader* self,
- const gchar* sdate)
-{
- gulong result = 0UL;
- gint _tmp0_;
- gint _tmp1_;
- GDate date = {0};
- guint seconds = 0U;
- gint year = 0;
- gint month = 0;
- gint day = 0;
- gint hour = 0;
- gint min = 0;
- gint sec = 0;
- gchar weekday[4] = {0};
- gchar monthstr[4] = {0};
- struct tm time = {0};
- struct tm _tmp17_ = {0};
- time_t tm = 0;
- gulong _result_ = 0UL;
- time_t _tmp18_;
- guint _tmp19_;
- gulong _tmp20_;
- time_t _tmp21_;
-#line 432 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), 0UL);
-#line 432 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (sdate != NULL, 0UL);
-#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = strlen (sdate);
-#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _tmp0_;
-#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp1_ == 0) {
-#line 434 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = (gulong) 0;
-#line 434 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3697 "VideoMetadata.c"
- }
-#line 437 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- memset (&date, 0, sizeof (GDate));
-#line 438 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- seconds = (guint) 0;
-#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_ascii_isdigit (string_get (sdate, (glong) 0))) {
-#line 3705 "VideoMetadata.c"
- gchar* tmp = NULL;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- gint _result_ = 0;
- const gchar* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 447 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_strdup (sdate);
-#line 447 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- tmp = _tmp2_;
-#line 448 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = tmp;
-#line 448 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_strcanon (_tmp3_, "0123456789 ", ' ');
-#line 449 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sec = 0;
-#line 450 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = tmp;
-#line 450 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _result_ = sscanf (_tmp4_, "%d %d %d %d %d %d", &year, &month, &day, &hour, &min, &sec);
-#line 451 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = _result_;
-#line 451 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp5_ < 5) {
-#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = (gulong) 0;
-#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (tmp);
-#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3742 "VideoMetadata.c"
- }
-#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = day;
-#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = month;
-#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = year;
-#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_date_set_dmy (&date, (GDateDay) _tmp6_, (gint) ((GDateMonth) _tmp7_), (GDateYear) _tmp8_);
-#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = sec;
-#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = min;
-#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = hour;
-#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- seconds = (guint) ((_tmp9_ + (_tmp10_ * 60)) + (_tmp11_ * 3600));
-#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (tmp);
-#line 3762 "VideoMetadata.c"
- } else {
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
-#line 458 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (7 != sscanf (sdate, "%3s %3s %d %d:%d:%d %d", weekday, monthstr, &day, &hour, &min, &sec, &year)) {
-#line 460 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = (gulong) 0;
-#line 460 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3775 "VideoMetadata.c"
- }
-#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = day;
-#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = year;
-#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_date_set_dmy (&date, (GDateDay) _tmp12_, (gint) avi_metadata_loader_month_from_string (self, (const gchar*) monthstr), (GDateYear) _tmp13_);
-#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = sec;
-#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = min;
-#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = hour;
-#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- seconds = (guint) ((_tmp14_ + (_tmp15_ * 60)) + (_tmp16_ * 3600));
-#line 3791 "VideoMetadata.c"
- }
-#line 466 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- memset (&time, 0, sizeof (struct tm));
-#line 467 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_date_to_struct_tm (&date, &_tmp17_);
-#line 467 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- time = _tmp17_;
-#line 470 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- tm = mktime (&time);
-#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = tm;
-#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = seconds;
-#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _result_ = (gulong) (_tmp18_ + _tmp19_);
-#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = _result_;
-#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = tm;
-#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp20_ < ((gulong) _tmp21_)) {
-#line 3813 "VideoMetadata.c"
- GFile* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
-#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = self->priv->file;
-#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = g_file_get_path (_tmp22_);
-#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = _tmp23_;
-#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:473: Overflow for timestamp in video file %s", _tmp24_);
-#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp24_);
-#line 475 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = (gulong) 0;
-#line 475 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3831 "VideoMetadata.c"
- }
-#line 478 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _result_;
-#line 478 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3837 "VideoMetadata.c"
-}
-
-
-static GDateMonth
-avi_metadata_loader_month_from_string (AVIMetadataLoader* self,
- const gchar* s)
-{
- GDateMonth result = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GQuark _tmp3_ = 0U;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label0 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label1 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label2 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label3 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label4 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label5 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label6 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label7 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label8 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label9 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label10 = 0;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp2_label11 = 0;
-#line 481 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), 0);
-#line 481 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (s != NULL, 0);
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_utf8_strdown (s, (gssize) -1);
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _tmp0_;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_free (_tmp1_);
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("jan")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3889 "VideoMetadata.c"
- default:
- {
-#line 484 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_JANUARY;
-#line 484 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3896 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("feb")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3902 "VideoMetadata.c"
- default:
- {
-#line 486 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_FEBRUARY;
-#line 486 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3909 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("mar")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3915 "VideoMetadata.c"
- default:
- {
-#line 488 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_MARCH;
-#line 488 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3922 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("apr")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3928 "VideoMetadata.c"
- default:
- {
-#line 490 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_APRIL;
-#line 490 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3935 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("may")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3941 "VideoMetadata.c"
- default:
- {
-#line 492 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_MAY;
-#line 492 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3948 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label5) ? _tmp2_label5 : (_tmp2_label5 = g_quark_from_static_string ("jun")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3954 "VideoMetadata.c"
- default:
- {
-#line 494 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_JUNE;
-#line 494 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3961 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label6) ? _tmp2_label6 : (_tmp2_label6 = g_quark_from_static_string ("jul")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3967 "VideoMetadata.c"
- default:
- {
-#line 496 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_JULY;
-#line 496 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3974 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label7) ? _tmp2_label7 : (_tmp2_label7 = g_quark_from_static_string ("aug")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3980 "VideoMetadata.c"
- default:
- {
-#line 498 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_AUGUST;
-#line 498 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 3987 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label8) ? _tmp2_label8 : (_tmp2_label8 = g_quark_from_static_string ("sep")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 3993 "VideoMetadata.c"
- default:
- {
-#line 500 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_SEPTEMBER;
-#line 500 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4000 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label9) ? _tmp2_label9 : (_tmp2_label9 = g_quark_from_static_string ("oct")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 4006 "VideoMetadata.c"
- default:
- {
-#line 502 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_OCTOBER;
-#line 502 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4013 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label10) ? _tmp2_label10 : (_tmp2_label10 = g_quark_from_static_string ("nov")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 4019 "VideoMetadata.c"
- default:
- {
-#line 504 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_NOVEMBER;
-#line 504 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4026 "VideoMetadata.c"
- }
- }
- } else if (_tmp3_ == ((0 != _tmp2_label11) ? _tmp2_label11 : (_tmp2_label11 = g_quark_from_static_string ("dec")))) {
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- switch (0) {
-#line 4032 "VideoMetadata.c"
- default:
- {
-#line 506 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_DECEMBER;
-#line 506 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4039 "VideoMetadata.c"
- }
- }
- }
-#line 508 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = G_DATE_BAD_MONTH;
-#line 508 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4047 "VideoMetadata.c"
-}
-
-
-static gchar*
-string_strip (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strstrip (_tmp1_);
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4072 "VideoMetadata.c"
-}
-
-
-static gulong
-avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoader* self)
-{
- gulong result = 0UL;
- AVIChunk* chunk = NULL;
- GFile* _tmp0_;
- AVIChunk* _tmp1_;
- gulong timestamp = 0UL;
- GError * _inner_error_ = NULL;
-#line 511 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), 0UL);
-#line 512 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->file;
-#line 512 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = avi_chunk_new (_tmp0_);
-#line 512 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- chunk = _tmp1_;
-#line 513 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- timestamp = (gulong) 0;
-#line 4095 "VideoMetadata.c"
- {
- AVIChunk* _tmp2_;
- AVIChunk* _tmp3_;
- gchar* sdate = NULL;
- AVIChunk* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 515 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = chunk;
-#line 515 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_open_file (_tmp2_, &_inner_error_);
-#line 515 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4109 "VideoMetadata.c"
- goto __catch592_g_error;
- }
-#line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = chunk;
-#line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_nonsection_skip (_tmp3_, (guint64) 12, &_inner_error_);
-#line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4118 "VideoMetadata.c"
- goto __catch592_g_error;
- }
-#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = chunk;
-#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = avi_metadata_loader_read_section (self, _tmp4_, &_inner_error_);
-#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sdate = _tmp5_;
-#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4129 "VideoMetadata.c"
- goto __catch592_g_error;
- }
-#line 518 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = sdate;
-#line 518 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp6_) {
-#line 4136 "VideoMetadata.c"
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = sdate;
-#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = string_strip (_tmp7_);
-#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = _tmp8_;
-#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- timestamp = avi_metadata_loader_parse_date (self, _tmp9_);
-#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp9_);
-#line 4150 "VideoMetadata.c"
- }
-#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (sdate);
-#line 4154 "VideoMetadata.c"
- }
- goto __finally592;
- __catch592_g_error:
- {
- GError* e = NULL;
- GError* _tmp10_;
- const gchar* _tmp11_;
-#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- e = _inner_error_;
-#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = NULL;
-#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = e;
-#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = _tmp10_->message;
-#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:522: Error while reading AVI file: %s", _tmp11_);
-#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_error_free0 (e);
-#line 4174 "VideoMetadata.c"
- }
- __finally592:
-#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4179 "VideoMetadata.c"
- gulong _tmp12_ = 0UL;
-#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (chunk);
-#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.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 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp12_;
-#line 4189 "VideoMetadata.c"
- }
- {
- AVIChunk* _tmp13_;
-#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = chunk;
-#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_close_file (_tmp13_, &_inner_error_);
-#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4199 "VideoMetadata.c"
- goto __catch593_g_error;
- }
- }
- goto __finally593;
- __catch593_g_error:
- {
- GError* e = NULL;
- GError* _tmp14_;
- const gchar* _tmp15_;
-#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- e = _inner_error_;
-#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = NULL;
-#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = e;
-#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = _tmp14_->message;
-#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:528: Error while closing AVI file: %s", _tmp15_);
-#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_error_free0 (e);
-#line 4221 "VideoMetadata.c"
- }
- __finally593:
-#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4226 "VideoMetadata.c"
- gulong _tmp16_ = 0UL;
-#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (chunk);
-#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.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 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp16_;
-#line 4236 "VideoMetadata.c"
- }
-#line 530 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = timestamp;
-#line 530 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (chunk);
-#line 530 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4244 "VideoMetadata.c"
-}
-
-
-static void
-value_avi_metadata_loader_init (GValue* value)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 4253 "VideoMetadata.c"
-}
-
-
-static void
-value_avi_metadata_loader_free_value (GValue* value)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_metadata_loader_unref (value->data[0].v_pointer);
-#line 4264 "VideoMetadata.c"
- }
-}
-
-
-static void
-value_avi_metadata_loader_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- dest_value->data[0].v_pointer = avi_metadata_loader_ref (src_value->data[0].v_pointer);
-#line 4277 "VideoMetadata.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4281 "VideoMetadata.c"
- }
-}
-
-
-static gpointer
-value_avi_metadata_loader_peek_pointer (const GValue* value)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return value->data[0].v_pointer;
-#line 4291 "VideoMetadata.c"
-}
-
-
-static gchar*
-value_avi_metadata_loader_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 4303 "VideoMetadata.c"
- AVIMetadataLoader * object;
- object = collect_values[0].v_pointer;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4310 "VideoMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.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 4314 "VideoMetadata.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = avi_metadata_loader_ref (object);
-#line 4318 "VideoMetadata.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 4322 "VideoMetadata.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 4326 "VideoMetadata.c"
-}
-
-
-static gchar*
-value_avi_metadata_loader_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- AVIMetadataLoader ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!object_p) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4342 "VideoMetadata.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = NULL;
-#line 4348 "VideoMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 4352 "VideoMetadata.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = avi_metadata_loader_ref (value->data[0].v_pointer);
-#line 4356 "VideoMetadata.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 4360 "VideoMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_avi_metadata_loader (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecAVIMetadataLoader* spec;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_AVI_METADATA_LOADER), NULL);
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 4380 "VideoMetadata.c"
-}
-
-
-gpointer
-value_get_avi_metadata_loader (const GValue* value)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER), NULL);
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return value->data[0].v_pointer;
-#line 4391 "VideoMetadata.c"
-}
-
-
-void
-value_set_avi_metadata_loader (GValue* value,
- gpointer v_object)
-{
- AVIMetadataLoader * old;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER));
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (v_object) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AVI_METADATA_LOADER));
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_metadata_loader_ref (value->data[0].v_pointer);
-#line 4414 "VideoMetadata.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 4418 "VideoMetadata.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (old) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_metadata_loader_unref (old);
-#line 4424 "VideoMetadata.c"
- }
-}
-
-
-void
-value_take_avi_metadata_loader (GValue* value,
- gpointer v_object)
-{
- AVIMetadataLoader * old;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER));
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (v_object) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AVI_METADATA_LOADER));
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 4446 "VideoMetadata.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 4450 "VideoMetadata.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (old) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_metadata_loader_unref (old);
-#line 4456 "VideoMetadata.c"
- }
-}
-
-
-static void
-avi_metadata_loader_class_init (AVIMetadataLoaderClass * klass)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_metadata_loader_parent_class = g_type_class_peek_parent (klass);
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((AVIMetadataLoaderClass *) klass)->finalize = avi_metadata_loader_finalize;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_class_add_private (klass, sizeof (AVIMetadataLoaderPrivate));
-#line 4470 "VideoMetadata.c"
-}
-
-
-static void
-avi_metadata_loader_instance_init (AVIMetadataLoader * self)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv = AVI_METADATA_LOADER_GET_PRIVATE (self);
-#line 294 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = NULL;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->ref_count = 1;
-#line 4483 "VideoMetadata.c"
-}
-
-
-static void
-avi_metadata_loader_finalize (AVIMetadataLoader * obj)
-{
- AVIMetadataLoader * self;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AVI_METADATA_LOADER, AVIMetadataLoader);
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 294 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->file);
-#line 4497 "VideoMetadata.c"
-}
-
-
-GType
-avi_metadata_loader_get_type (void)
-{
- static volatile gsize avi_metadata_loader_type_id__volatile = 0;
- if (g_once_init_enter (&avi_metadata_loader_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_avi_metadata_loader_init, value_avi_metadata_loader_free_value, value_avi_metadata_loader_copy_value, value_avi_metadata_loader_peek_pointer, "p", value_avi_metadata_loader_collect_value, "p", value_avi_metadata_loader_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (AVIMetadataLoaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) avi_metadata_loader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AVIMetadataLoader), 0, (GInstanceInitFunc) avi_metadata_loader_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType avi_metadata_loader_type_id;
- avi_metadata_loader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AVIMetadataLoader", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&avi_metadata_loader_type_id__volatile, avi_metadata_loader_type_id);
- }
- return avi_metadata_loader_type_id__volatile;
-}
-
-
-gpointer
-avi_metadata_loader_ref (gpointer instance)
-{
- AVIMetadataLoader * self;
- self = instance;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return instance;
-#line 4526 "VideoMetadata.c"
-}
-
-
-void
-avi_metadata_loader_unref (gpointer instance)
-{
- AVIMetadataLoader * self;
- self = instance;
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- AVI_METADATA_LOADER_GET_CLASS (self)->finalize (self);
-#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4541 "VideoMetadata.c"
- }
-}
-
-
-AVIChunk*
-avi_chunk_construct (GType object_type,
- GFile* file)
-{
- AVIChunk* self = NULL;
- GFile* _tmp0_;
-#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = (AVIChunk*) g_type_create_instance (object_type);
-#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->file);
-#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = _tmp0_;
-#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self;
-#line 4564 "VideoMetadata.c"
-}
-
-
-AVIChunk*
-avi_chunk_new (GFile* file)
-{
-#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return avi_chunk_construct (TYPE_AVI_CHUNK, file);
-#line 4573 "VideoMetadata.c"
-}
-
-
-static gpointer
-_avi_chunk_ref0 (gpointer self)
-{
-#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self ? avi_chunk_ref (self) : NULL;
-#line 4582 "VideoMetadata.c"
-}
-
-
-static AVIChunk*
-avi_chunk_construct_with_input_stream (GType object_type,
- GDataInputStream* input,
- AVIChunk* parent)
-{
- AVIChunk* self = NULL;
- GDataInputStream* _tmp0_;
- AVIChunk* _tmp1_;
-#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_IS_DATA_INPUT_STREAM (input), NULL);
-#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (parent), NULL);
-#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = (AVIChunk*) g_type_create_instance (object_type);
-#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _g_object_ref0 (input);
-#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->input);
-#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->input = _tmp0_;
-#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _avi_chunk_ref0 (parent);
-#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (self->priv->parent);
-#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->parent = _tmp1_;
-#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return self;
-#line 4614 "VideoMetadata.c"
-}
-
-
-static AVIChunk*
-avi_chunk_new_with_input_stream (GDataInputStream* input,
- AVIChunk* parent)
-{
-#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return avi_chunk_construct_with_input_stream (TYPE_AVI_CHUNK, input, parent);
-#line 4624 "VideoMetadata.c"
-}
-
-
-void
-avi_chunk_open_file (AVIChunk* self,
- GError** error)
-{
- GFileInputStream* _tmp0_ = NULL;
- GFile* _tmp1_;
- GFileInputStream* _tmp2_;
- GDataInputStream* _tmp3_;
- GDataInputStream* _tmp4_;
- gchar* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 552 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_AVI_CHUNK (self));
-#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_close_file (self, &_inner_error_);
-#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 4649 "VideoMetadata.c"
- }
-#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->file;
-#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_file_read (_tmp1_, NULL, &_inner_error_);
-#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _tmp2_;
-#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 4663 "VideoMetadata.c"
- }
-#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _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"
- self->priv->input = _tmp3_;
-#line 555 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = self->priv->input;
-#line 555 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_data_input_stream_set_byte_order (_tmp4_, G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN);
-#line 556 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) 0;
-#line 557 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = (guint64) 0;
-#line 558 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = g_strdup ("");
-#line 558 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->section_name);
-#line 558 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_name = _tmp5_;
-#line 552 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (_tmp0_);
-#line 4687 "VideoMetadata.c"
-}
-
-
-void
-avi_chunk_close_file (AVIChunk* self,
- GError** error)
-{
- GDataInputStream* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 561 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_AVI_CHUNK (self));
-#line 562 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->input;
-#line 562 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp0_) {
-#line 4703 "VideoMetadata.c"
- GDataInputStream* _tmp1_;
-#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_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"
- g_propagate_error (error, _inner_error_);
-#line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 4715 "VideoMetadata.c"
- }
-#line 564 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->input);
-#line 564 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->input = NULL;
-#line 4721 "VideoMetadata.c"
- }
-}
-
-
-void
-avi_chunk_nonsection_skip (AVIChunk* self,
- guint64 skip_amount,
- GError** error)
-{
- GDataInputStream* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 568 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_AVI_CHUNK (self));
-#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->input;
-#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_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"
- g_propagate_error (error, _inner_error_);
-#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 4745 "VideoMetadata.c"
- }
-}
-
-
-void
-avi_chunk_skip (AVIChunk* self,
- guint64 skip_amount,
- GError** error)
-{
- GDataInputStream* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 572 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_AVI_CHUNK (self));
-#line 573 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_advance_section_offset (self, skip_amount);
-#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->input;
-#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_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"
- g_propagate_error (error, _inner_error_);
-#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 4771 "VideoMetadata.c"
- }
-}
-
-
-AVIChunk*
-avi_chunk_get_first_child_chunk (AVIChunk* self)
-{
- AVIChunk* result = NULL;
- GDataInputStream* _tmp0_;
- AVIChunk* _tmp1_;
-#line 577 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (self), NULL);
-#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->input;
-#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = avi_chunk_new_with_input_stream (_tmp0_, self);
-#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
-#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4792 "VideoMetadata.c"
-}
-
-
-static void
-avi_chunk_advance_section_offset (AVIChunk* self,
- guint64 amount)
-{
- guint64 _tmp0_;
- guint64 _tmp1_;
- guint64 _tmp4_;
- AVIChunk* _tmp5_;
-#line 581 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_AVI_CHUNK (self));
-#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->section_offset;
-#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->section_size;
-#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if ((_tmp0_ + amount) > _tmp1_) {
-#line 4812 "VideoMetadata.c"
- guint64 _tmp2_;
- guint64 _tmp3_;
-#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = self->priv->section_size;
-#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = self->priv->section_offset;
-#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- amount = _tmp2_ - _tmp3_;
-#line 4821 "VideoMetadata.c"
- }
-#line 585 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = self->priv->section_offset;
-#line 585 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = _tmp4_ + amount;
-#line 586 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = self->priv->parent;
-#line 586 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp5_) {
-#line 4831 "VideoMetadata.c"
- AVIChunk* _tmp6_;
-#line 587 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = self->priv->parent;
-#line 587 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_advance_section_offset (_tmp6_, amount);
-#line 4837 "VideoMetadata.c"
- }
-}
-
-
-guchar
-avi_chunk_read_byte (AVIChunk* self,
- GError** error)
-{
- guchar result = '\0';
- guint8 _tmp0_ = 0U;
- GDataInputStream* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 591 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (self), '\0');
-#line 592 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_advance_section_offset (self, (guint64) 1);
-#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->input;
-#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_data_input_stream_read_byte (_tmp1_, NULL, &_inner_error_);
-#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4860 "VideoMetadata.c"
- guchar _tmp2_ = '\0';
-#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp2_;
-#line 4866 "VideoMetadata.c"
- }
-#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = (guchar) _tmp0_;
-#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4872 "VideoMetadata.c"
-}
-
-
-guint16
-avi_chunk_read_uint16 (AVIChunk* self,
- GError** error)
-{
- guint16 result = 0U;
- guint16 _tmp0_ = 0U;
- GDataInputStream* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 596 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (self), 0U);
-#line 597 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_advance_section_offset (self, (guint64) 2);
-#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->input;
-#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_data_input_stream_read_uint16 (_tmp1_, NULL, &_inner_error_);
-#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4894 "VideoMetadata.c"
- guint16 _tmp2_ = 0U;
-#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp2_;
-#line 4900 "VideoMetadata.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp0_;
-#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 4906 "VideoMetadata.c"
-}
-
-
-void
-avi_chunk_read_chunk (AVIChunk* self,
- GError** error)
-{
- GString* sb = NULL;
- GString* _tmp0_;
- guint8 _tmp1_ = 0U;
- GDataInputStream* _tmp2_;
- GString* _tmp3_;
- guint8 _tmp4_ = 0U;
- GDataInputStream* _tmp5_;
- GString* _tmp6_;
- guint8 _tmp7_ = 0U;
- GDataInputStream* _tmp8_;
- GString* _tmp9_;
- guint8 _tmp10_ = 0U;
- GDataInputStream* _tmp11_;
- GString* _tmp12_;
- GString* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
- guint32 _tmp16_ = 0U;
- GDataInputStream* _tmp17_;
- GError * _inner_error_ = NULL;
-#line 601 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_AVI_CHUNK (self));
-#line 604 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_string_new ("");
-#line 604 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp0_;
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = self->priv->input;
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = g_data_input_stream_read_byte (_tmp2_, NULL, &_inner_error_);
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 4952 "VideoMetadata.c"
- }
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = sb;
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp3_, (gchar) _tmp1_);
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = self->priv->input;
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = g_data_input_stream_read_byte (_tmp5_, NULL, &_inner_error_);
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 4970 "VideoMetadata.c"
- }
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = sb;
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp6_, (gchar) _tmp4_);
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = self->priv->input;
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = g_data_input_stream_read_byte (_tmp8_, NULL, &_inner_error_);
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 4988 "VideoMetadata.c"
- }
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = sb;
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp9_, (gchar) _tmp7_);
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = self->priv->input;
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = g_data_input_stream_read_byte (_tmp11_, NULL, &_inner_error_);
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 5006 "VideoMetadata.c"
- }
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = sb;
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp12_, (gchar) _tmp10_);
-#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = sb;
-#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = _tmp13_->str;
-#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = g_strdup (_tmp14_);
-#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->section_name);
-#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_name = _tmp15_;
-#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = self->priv->input;
-#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = g_data_input_stream_read_uint32 (_tmp17_, NULL, &_inner_error_);
-#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 5034 "VideoMetadata.c"
- }
-#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) _tmp16_;
-#line 611 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = (guint64) 0;
-#line 601 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 5042 "VideoMetadata.c"
-}
-
-
-gchar*
-avi_chunk_read_name (AVIChunk* self,
- GError** error)
-{
- gchar* result = NULL;
- GString* sb = NULL;
- GString* _tmp0_;
- guchar _tmp1_ = '\0';
- GString* _tmp2_;
- guchar _tmp3_ = '\0';
- GString* _tmp4_;
- guchar _tmp5_ = '\0';
- GString* _tmp6_;
- guchar _tmp7_ = '\0';
- GString* _tmp8_;
- GString* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- GError * _inner_error_ = NULL;
-#line 614 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (self), NULL);
-#line 615 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_string_new ("");
-#line 615 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp0_;
-#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = avi_chunk_read_byte (self, &_inner_error_);
-#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 5081 "VideoMetadata.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = sb;
-#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp2_, (gchar) _tmp1_);
-#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = avi_chunk_read_byte (self, &_inner_error_);
-#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 5097 "VideoMetadata.c"
- }
-#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = sb;
-#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp4_, (gchar) _tmp3_);
-#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = avi_chunk_read_byte (self, &_inner_error_);
-#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 5113 "VideoMetadata.c"
- }
-#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = sb;
-#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp6_, (gchar) _tmp5_);
-#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = avi_chunk_read_byte (self, &_inner_error_);
-#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 5129 "VideoMetadata.c"
- }
-#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = sb;
-#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp8_, (gchar) _tmp7_);
-#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = sb;
-#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = _tmp9_->str;
-#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp11_;
-#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 5147 "VideoMetadata.c"
-}
-
-
-void
-avi_chunk_next_chunk (AVIChunk* self,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 623 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (IS_AVI_CHUNK (self));
-#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_skip (self, avi_chunk_section_size_remaining (self), &_inner_error_);
-#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return;
-#line 5166 "VideoMetadata.c"
- }
-#line 625 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) 0;
-#line 626 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = (guint64) 0;
-#line 5172 "VideoMetadata.c"
-}
-
-
-gchar*
-avi_chunk_get_current_chunk_name (AVIChunk* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 629 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (self), NULL);
-#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->section_name;
-#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
-#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 5192 "VideoMetadata.c"
-}
-
-
-gboolean
-avi_chunk_is_last_chunk (AVIChunk* self)
-{
- gboolean result = FALSE;
- guint64 _tmp0_;
-#line 633 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (self), FALSE);
-#line 634 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->section_size;
-#line 634 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp0_ == ((guint64) 0);
-#line 634 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 5209 "VideoMetadata.c"
-}
-
-
-guint64
-avi_chunk_section_size_remaining (AVIChunk* self)
-{
- guint64 result = 0ULL;
- guint64 _tmp0_;
- guint64 _tmp1_;
- guint64 _tmp2_;
- guint64 _tmp3_;
-#line 637 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (self), 0ULL);
-#line 638 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = self->priv->section_size;
-#line 638 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->section_offset;
-#line 638 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _vala_assert (_tmp0_ >= _tmp1_, "section_size >= section_offset");
-#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = self->priv->section_size;
-#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = self->priv->section_offset;
-#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp2_ - _tmp3_;
-#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 5237 "VideoMetadata.c"
-}
-
-
-gchar*
-avi_chunk_section_to_string (AVIChunk* self,
- GError** error)
-{
- gchar* result = NULL;
- GString* sb = NULL;
- GString* _tmp0_;
- GString* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 643 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (IS_AVI_CHUNK (self), NULL);
-#line 644 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_string_new ("");
-#line 644 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp0_;
-#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- while (TRUE) {
-#line 5260 "VideoMetadata.c"
- guint64 _tmp1_;
- guint64 _tmp2_;
- guchar _tmp3_ = '\0';
- GString* _tmp4_;
- GString* _tmp5_;
- gssize _tmp6_;
-#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->section_offset;
-#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = self->priv->section_size;
-#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(_tmp1_ < _tmp2_)) {
-#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- break;
-#line 5275 "VideoMetadata.c"
- }
-#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = avi_chunk_read_byte (self, &_inner_error_);
-#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 5287 "VideoMetadata.c"
- }
-#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = sb;
-#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp4_, (gchar) _tmp3_);
-#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = sb;
-#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = _tmp5_->len;
-#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp6_ > ((gssize) AVI_CHUNK_MAX_STRING_TO_SECTION_LENGTH)) {
-#line 5299 "VideoMetadata.c"
- GString* _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = sb;
-#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = _tmp7_->str;
-#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp9_;
-#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 5315 "VideoMetadata.c"
- }
- }
-#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = sb;
-#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = _tmp10_->str;
-#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = g_strdup (_tmp11_);
-#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp12_;
-#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_string_free0 (sb);
-#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return result;
-#line 5330 "VideoMetadata.c"
-}
-
-
-static void
-value_avi_chunk_init (GValue* value)
-{
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 5339 "VideoMetadata.c"
-}
-
-
-static void
-value_avi_chunk_free_value (GValue* value)
-{
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_unref (value->data[0].v_pointer);
-#line 5350 "VideoMetadata.c"
- }
-}
-
-
-static void
-value_avi_chunk_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- dest_value->data[0].v_pointer = avi_chunk_ref (src_value->data[0].v_pointer);
-#line 5363 "VideoMetadata.c"
- } else {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 5367 "VideoMetadata.c"
- }
-}
-
-
-static gpointer
-value_avi_chunk_peek_pointer (const GValue* value)
-{
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return value->data[0].v_pointer;
-#line 5377 "VideoMetadata.c"
-}
-
-
-static gchar*
-value_avi_chunk_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 5389 "VideoMetadata.c"
- AVIChunk * object;
- object = collect_values[0].v_pointer;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5396 "VideoMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.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 5400 "VideoMetadata.c"
- }
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = avi_chunk_ref (object);
-#line 5404 "VideoMetadata.c"
- } else {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 5408 "VideoMetadata.c"
- }
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 5412 "VideoMetadata.c"
-}
-
-
-static gchar*
-value_avi_chunk_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- AVIChunk ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!object_p) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5428 "VideoMetadata.c"
- }
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = NULL;
-#line 5434 "VideoMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 5438 "VideoMetadata.c"
- } else {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- *object_p = avi_chunk_ref (value->data[0].v_pointer);
-#line 5442 "VideoMetadata.c"
- }
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return NULL;
-#line 5446 "VideoMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_avi_chunk (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecAVIChunk* spec;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_AVI_CHUNK), NULL);
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 5466 "VideoMetadata.c"
-}
-
-
-gpointer
-value_get_avi_chunk (const GValue* value)
-{
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK), NULL);
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return value->data[0].v_pointer;
-#line 5477 "VideoMetadata.c"
-}
-
-
-void
-value_set_avi_chunk (GValue* value,
- gpointer v_object)
-{
- AVIChunk * old;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK));
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (v_object) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AVI_CHUNK));
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_ref (value->data[0].v_pointer);
-#line 5500 "VideoMetadata.c"
- } else {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 5504 "VideoMetadata.c"
- }
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (old) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_unref (old);
-#line 5510 "VideoMetadata.c"
- }
-}
-
-
-void
-value_take_avi_chunk (GValue* value,
- gpointer v_object)
-{
- AVIChunk * old;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK));
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (v_object) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AVI_CHUNK));
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 5532 "VideoMetadata.c"
- } else {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 5536 "VideoMetadata.c"
- }
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (old) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_unref (old);
-#line 5542 "VideoMetadata.c"
- }
-}
-
-
-static void
-avi_chunk_class_init (AVIChunkClass * klass)
-{
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_parent_class = g_type_class_peek_parent (klass);
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- ((AVIChunkClass *) klass)->finalize = avi_chunk_finalize;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_class_add_private (klass, sizeof (AVIChunkPrivate));
-#line 5556 "VideoMetadata.c"
-}
-
-
-static void
-avi_chunk_instance_init (AVIChunk * self)
-{
- gchar* _tmp0_;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv = AVI_CHUNK_GET_PRIVATE (self);
-#line 535 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = NULL;
-#line 536 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = g_strdup ("");
-#line 536 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_name = _tmp0_;
-#line 537 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) 0;
-#line 538 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = (guint64) 0;
-#line 539 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->input = NULL;
-#line 540 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->parent = NULL;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->ref_count = 1;
-#line 5582 "VideoMetadata.c"
-}
-
-
-static void
-avi_chunk_finalize (AVIChunk * obj)
-{
- AVIChunk * self;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AVI_CHUNK, AVIChunk);
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 535 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->file);
-#line 536 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (self->priv->section_name);
-#line 539 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_object_unref0 (self->priv->input);
-#line 540 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (self->priv->parent);
-#line 5602 "VideoMetadata.c"
-}
-
-
-GType
-avi_chunk_get_type (void)
-{
- static volatile gsize avi_chunk_type_id__volatile = 0;
- if (g_once_init_enter (&avi_chunk_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_avi_chunk_init, value_avi_chunk_free_value, value_avi_chunk_copy_value, value_avi_chunk_peek_pointer, "p", value_avi_chunk_collect_value, "p", value_avi_chunk_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (AVIChunkClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) avi_chunk_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AVIChunk), 0, (GInstanceInitFunc) avi_chunk_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType avi_chunk_type_id;
- avi_chunk_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AVIChunk", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&avi_chunk_type_id__volatile, avi_chunk_type_id);
- }
- return avi_chunk_type_id__volatile;
-}
-
-
-gpointer
-avi_chunk_ref (gpointer instance)
-{
- AVIChunk * self;
- self = instance;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return instance;
-#line 5631 "VideoMetadata.c"
-}
-
-
-void
-avi_chunk_unref (gpointer instance)
-{
- AVIChunk * self;
- self = instance;
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- AVI_CHUNK_GET_CLASS (self)->finalize (self);
-#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 5646 "VideoMetadata.c"
- }
-}
-
-
-
diff --git a/src/VideoMonitor.c b/src/VideoMonitor.c
deleted file mode 100644
index a3f8a75..0000000
--- a/src/VideoMonitor.c
+++ /dev/null
@@ -1,2456 +0,0 @@
-/* VideoMonitor.c generated by valac 0.40.4, the Vala compiler
- * generated from VideoMonitor.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-
-
-#define TYPE_MONITORABLE_UPDATES (monitorable_updates_get_type ())
-#define MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdates))
-#define MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass))
-#define IS_MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE_UPDATES))
-#define IS_MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MONITORABLE_UPDATES))
-#define MONITORABLE_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass))
-
-typedef struct _MonitorableUpdates MonitorableUpdates;
-typedef struct _MonitorableUpdatesClass MonitorableUpdatesClass;
-typedef struct _MonitorableUpdatesPrivate MonitorableUpdatesPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_MONITORABLE (monitorable_get_type ())
-#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
-#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
-#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
-
-typedef struct _Monitorable Monitorable;
-typedef struct _MonitorableIface MonitorableIface;
-
-#define TYPE_VIDEO_UPDATES (video_updates_get_type ())
-#define VIDEO_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_UPDATES, VideoUpdates))
-#define VIDEO_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_UPDATES, VideoUpdatesClass))
-#define IS_VIDEO_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_UPDATES))
-#define IS_VIDEO_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_UPDATES))
-#define VIDEO_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_UPDATES, VideoUpdatesClass))
-
-typedef struct _VideoUpdates VideoUpdates;
-typedef struct _VideoUpdatesClass VideoUpdatesClass;
-typedef struct _VideoUpdatesPrivate VideoUpdatesPrivate;
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_MEDIA_MONITOR (media_monitor_get_type ())
-#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor))
-#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR))
-#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR))
-#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-
-typedef struct _MediaMonitor MediaMonitor;
-typedef struct _MediaMonitorClass MediaMonitorClass;
-typedef struct _MediaMonitorPrivate MediaMonitorPrivate;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define MEDIA_MONITOR_TYPE_DISCOVERED_FILE (media_monitor_discovered_file_get_type ())
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-
-#define TYPE_VIDEO_MONITOR (video_monitor_get_type ())
-#define VIDEO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_MONITOR, VideoMonitor))
-#define VIDEO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_MONITOR, VideoMonitorClass))
-#define IS_VIDEO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_MONITOR))
-#define IS_VIDEO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_MONITOR))
-#define VIDEO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_MONITOR, VideoMonitorClass))
-
-typedef struct _VideoMonitor VideoMonitor;
-typedef struct _VideoMonitorClass VideoMonitorClass;
-typedef struct _VideoMonitorPrivate VideoMonitorPrivate;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-enum {
- VIDEO_MONITOR_0_PROPERTY,
- VIDEO_MONITOR_NUM_PROPERTIES
-};
-static GParamSpec* video_monitor_properties[VIDEO_MONITOR_NUM_PROPERTIES];
-#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#define VIDEO_SOURCE_COLLECTION_TYPE_STATE (video_source_collection_state_get_type ())
-#define _monitorable_updates_unref0(var) ((var == NULL) ? NULL : (var = (monitorable_updates_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB (video_monitor_video_interpretable_check_job_get_type ())
-#define VIDEO_MONITOR_VIDEO_INTERPRETABLE_CHECK_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob))
-#define VIDEO_MONITOR_VIDEO_INTERPRETABLE_CHECK_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJobClass))
-#define VIDEO_MONITOR_IS_VIDEO_INTERPRETABLE_CHECK_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB))
-#define VIDEO_MONITOR_IS_VIDEO_INTERPRETABLE_CHECK_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB))
-#define VIDEO_MONITOR_VIDEO_INTERPRETABLE_CHECK_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJobClass))
-
-typedef struct _VideoMonitorVideoInterpretableCheckJob VideoMonitorVideoInterpretableCheckJob;
-typedef struct _VideoMonitorVideoInterpretableCheckJobClass VideoMonitorVideoInterpretableCheckJobClass;
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-typedef struct _VideoMonitorVideoInterpretableCheckJobPrivate VideoMonitorVideoInterpretableCheckJobPrivate;
-
-#define VIDEO_TYPE_INTERPRETABLE_RESULTS (video_interpretable_results_get_type ())
-#define VIDEO_INTERPRETABLE_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResults))
-#define VIDEO_INTERPRETABLE_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResultsClass))
-#define VIDEO_IS_INTERPRETABLE_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS))
-#define VIDEO_IS_INTERPRETABLE_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIDEO_TYPE_INTERPRETABLE_RESULTS))
-#define VIDEO_INTERPRETABLE_RESULTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResultsClass))
-
-typedef struct _VideoInterpretableResults VideoInterpretableResults;
-typedef struct _VideoInterpretableResultsClass VideoInterpretableResultsClass;
-#define _video_interpretable_results_unref0(var) ((var == NULL) ? NULL : (var = (video_interpretable_results_unref (var), NULL)))
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _MonitorableIface {
- GTypeInterface parent_iface;
- gboolean (*is_offline) (Monitorable* self);
- void (*mark_online) (Monitorable* self);
- void (*mark_offline) (Monitorable* self);
- void (*set_master_file) (Monitorable* self, GFile* file);
- void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
-};
-
-struct _MonitorableUpdates {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MonitorableUpdatesPrivate * priv;
- Monitorable* monitorable;
-};
-
-struct _MonitorableUpdatesClass {
- GTypeClass parent_class;
- void (*finalize) (MonitorableUpdates *self);
- gboolean (*is_in_alteration) (MonitorableUpdates* self);
- void (*set_master_file) (MonitorableUpdates* self, GFile* file);
- void (*set_master_file_info_altered) (MonitorableUpdates* self, gboolean altered);
- void (*set_master_file_info) (MonitorableUpdates* self, GFileInfo* info);
- void (*set_master_in_alteration) (MonitorableUpdates* self, gboolean in_alteration);
- void (*set_master_alterations_complete) (MonitorableUpdates* self, GFileInfo* info);
- void (*mark_offline) (MonitorableUpdates* self);
- void (*mark_online) (MonitorableUpdates* self);
- void (*reset_online_offline) (MonitorableUpdates* self);
- gboolean (*is_all_updated) (MonitorableUpdates* self);
-};
-
-struct _VideoUpdates {
- MonitorableUpdates parent_instance;
- VideoUpdatesPrivate * priv;
- Video* video;
-};
-
-struct _VideoUpdatesClass {
- MonitorableUpdatesClass parent_class;
- void (*set_check_interpretable) (VideoUpdates* self, gboolean check);
-};
-
-struct _VideoUpdatesPrivate {
- gboolean check_interpretable;
-};
-
-typedef enum {
- MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED,
- MEDIA_MONITOR_DISCOVERED_FILE_IGNORE,
- MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN
-} MediaMonitorDiscoveredFile;
-
-struct _MediaMonitor {
- GObject parent_instance;
- MediaMonitorPrivate * priv;
-};
-
-struct _MediaMonitorClass {
- GObjectClass parent_class;
- MediaSourceCollection* (*get_media_source_collection) (MediaMonitor* self);
- void (*close) (MediaMonitor* self);
- gchar* (*to_string) (MediaMonitor* self);
- MonitorableUpdates* (*create_updates) (MediaMonitor* self, Monitorable* monitorable);
- void (*on_media_source_destroyed) (MediaMonitor* self, DataSource* source);
- void (*notify_discovery_started) (MediaMonitor* self);
- MediaMonitorDiscoveredFile (*notify_file_discovered) (MediaMonitor* self, GFile* file, GFileInfo* info, Monitorable* * monitorable);
- GeeCollection* (*candidates_for_unknown_file) (MediaMonitor* self, GFile* file, GFileInfo* info, MediaMonitorDiscoveredFile* _result_);
- GFile** (*get_auxilliary_backing_files) (MediaMonitor* self, Monitorable* monitorable, int* result_length1);
- void (*update_backing_file_info) (MediaMonitor* self, Monitorable* monitorable, GFile* file, GFileInfo* info);
- void (*notify_discovery_completing) (MediaMonitor* self);
- gboolean (*is_file_represented) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_created) (MediaMonitor* self, GFile* file, GFileInfo* info);
- gboolean (*notify_file_moved) (MediaMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info);
- gboolean (*notify_file_altered) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_attributes_altered) (MediaMonitor* self, GFile* file);
- gboolean (*notify_file_alteration_completed) (MediaMonitor* self, GFile* file, GFileInfo* info);
- gboolean (*notify_file_deleted) (MediaMonitor* self, GFile* file);
- void (*process_updates) (MediaMonitor* self, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error);
-};
-
-struct _VideoMonitor {
- MediaMonitor parent_instance;
- VideoMonitorPrivate * priv;
-};
-
-struct _VideoMonitorClass {
- MediaMonitorClass parent_class;
-};
-
-struct _VideoMonitorPrivate {
- Workers* workers;
- guint64 background_jobs;
-};
-
-typedef enum {
- VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN,
- VIDEO_SOURCE_COLLECTION_STATE_ONLINE,
- VIDEO_SOURCE_COLLECTION_STATE_OFFLINE,
- VIDEO_SOURCE_COLLECTION_STATE_TRASH
-} VideoSourceCollectionState;
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _VideoMonitorVideoInterpretableCheckJob {
- BackgroundJob parent_instance;
- VideoMonitorVideoInterpretableCheckJobPrivate * priv;
- Video* video;
- VideoInterpretableResults* results;
-};
-
-struct _VideoMonitorVideoInterpretableCheckJobClass {
- BackgroundJobClass parent_class;
-};
-
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-
-static gpointer video_updates_parent_class = NULL;
-static gpointer video_monitor_parent_class = NULL;
-extern VideoSourceCollection* video_global;
-static gpointer video_monitor_video_interpretable_check_job_parent_class = NULL;
-
-gpointer monitorable_updates_ref (gpointer instance);
-void monitorable_updates_unref (gpointer instance);
-GParamSpec* param_spec_monitorable_updates (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_monitorable_updates (GValue* value,
- gpointer v_object);
-void value_take_monitorable_updates (GValue* value,
- gpointer v_object);
-gpointer value_get_monitorable_updates (const GValue* value);
-GType monitorable_updates_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType monitorable_get_type (void) G_GNUC_CONST;
-GType video_updates_get_type (void) G_GNUC_CONST;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-#define VIDEO_UPDATES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_UPDATES, VideoUpdatesPrivate))
-VideoUpdates* video_updates_new (Video* video);
-VideoUpdates* video_updates_construct (GType object_type,
- Video* video);
-MonitorableUpdates* monitorable_updates_new (Monitorable* monitorable);
-MonitorableUpdates* monitorable_updates_construct (GType object_type,
- Monitorable* monitorable);
-void video_updates_set_check_interpretable (VideoUpdates* self,
- gboolean check);
-static void video_updates_real_set_check_interpretable (VideoUpdates* self,
- gboolean check);
-static void video_updates_real_mark_online (MonitorableUpdates* base);
-void monitorable_updates_mark_online (MonitorableUpdates* self);
-gboolean video_updates_is_check_interpretable (VideoUpdates* self);
-static gboolean video_updates_real_is_all_updated (MonitorableUpdates* base);
-gboolean monitorable_updates_is_all_updated (MonitorableUpdates* self);
-static void video_updates_finalize (MonitorableUpdates * obj);
-GType media_monitor_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST;
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-GType video_monitor_get_type (void) G_GNUC_CONST;
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-#define VIDEO_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_MONITOR, VideoMonitorPrivate))
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-#define VIDEO_MONITOR_MAX_INTERPRETABLE_CHECKS_PER_CYCLE 5
-VideoMonitor* video_monitor_new (GCancellable* cancellable);
-VideoMonitor* video_monitor_construct (GType object_type,
- GCancellable* cancellable);
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-MediaMonitor* media_monitor_construct (GType object_type,
- MediaSourceCollection* sources,
- GCancellable* cancellable);
-GeeCollection* data_collection_get_all (DataCollection* self);
-gboolean video_get_is_interpretable (Video* self);
-void video_monitor_set_check_interpretable (VideoMonitor* self,
- Video* video,
- gboolean check);
-static MonitorableUpdates* video_monitor_real_create_updates (MediaMonitor* base,
- Monitorable* monitorable);
-static MediaSourceCollection* video_monitor_real_get_media_source_collection (MediaMonitor* base);
-static gboolean video_monitor_real_is_file_represented (MediaMonitor* base,
- GFile* file);
-GType video_source_collection_state_get_type (void) G_GNUC_CONST;
-static Video* video_monitor_get_state (VideoMonitor* self,
- GFile* file,
- VideoSourceCollectionState* state);
-static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (MediaMonitor* base,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable);
-static GeeCollection* video_monitor_real_candidates_for_unknown_file (MediaMonitor* base,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_);
-void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self,
- GFileInfo* info,
- GeeCollection* matching_master);
-static gboolean video_monitor_real_notify_file_created (MediaMonitor* base,
- GFile* file,
- GFileInfo* info);
-void media_monitor_update_online (MediaMonitor* self,
- Monitorable* monitorable);
-static gboolean video_monitor_real_notify_file_moved (MediaMonitor* base,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info);
-void media_monitor_update_master_file (MediaMonitor* self,
- Monitorable* monitorable,
- GFile* file);
-void media_monitor_update_offline (MediaMonitor* self,
- Monitorable* monitorable);
-static gboolean video_monitor_real_notify_file_altered (MediaMonitor* base,
- GFile* file);
-static gboolean video_monitor_real_notify_file_attributes_altered (MediaMonitor* base,
- GFile* file);
-void media_monitor_update_master_file_info_altered (MediaMonitor* self,
- Monitorable* monitorable);
-void media_monitor_update_master_file_in_alteration (MediaMonitor* self,
- Monitorable* monitorable,
- gboolean in_alteration);
-static gboolean video_monitor_real_notify_file_alteration_completed (MediaMonitor* base,
- GFile* file,
- GFileInfo* info);
-void media_monitor_update_master_file_alterations_completed (MediaMonitor* self,
- Monitorable* monitorable,
- GFileInfo* info);
-static gboolean video_monitor_real_notify_file_deleted (MediaMonitor* base,
- GFile* file);
-GeeCollection* media_monitor_get_monitorables (MediaMonitor* self);
-VideoUpdates* video_monitor_get_existing_video_updates (VideoMonitor* self,
- Video* video);
-GFile* monitorable_updates_get_master_file (MonitorableUpdates* self);
-GFile* media_source_get_master_file (MediaSource* self);
-Video* video_source_collection_get_state_by_file (VideoSourceCollection* self,
- GFile* file,
- VideoSourceCollectionState* state);
-VideoUpdates* video_monitor_fetch_video_updates (VideoMonitor* self,
- Video* video);
-MonitorableUpdates* media_monitor_fetch_updates (MediaMonitor* self,
- Monitorable* monitorable);
-MonitorableUpdates* media_monitor_get_existing_updates (MediaMonitor* self,
- Monitorable* monitorable);
-static void video_monitor_real_process_updates (MediaMonitor* base,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error);
-void media_monitor_process_updates (MediaMonitor* self,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error);
-#define MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE 100
-void media_monitor_mdbg (const gchar* msg);
-void video_notify_offline_thumbs_regenerated (void);
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-static void video_monitor_on_interpretable_check_complete (VideoMonitor* self,
- BackgroundJob* j);
-static void _video_monitor_on_interpretable_check_complete_completion_callback (BackgroundJob* job,
- gpointer self);
-static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_new (Video* video,
- CompletionCallback callback,
- void* callback_target);
-static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_construct (GType object_type,
- Video* video,
- CompletionCallback callback,
- void* callback_target);
-static GType video_monitor_video_interpretable_check_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-gpointer video_interpretable_results_ref (gpointer instance);
-void video_interpretable_results_unref (gpointer instance);
-GParamSpec* video_param_spec_interpretable_results (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void video_value_set_interpretable_results (GValue* value,
- gpointer v_object);
-void video_value_take_interpretable_results (GValue* value,
- gpointer v_object);
-gpointer video_value_get_interpretable_results (const GValue* value);
-GType video_interpretable_results_get_type (void) G_GNUC_CONST;
-void video_interpretable_results_foreground_finish (VideoInterpretableResults* self);
-void video_notify_normal_thumbs_regenerated (void);
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-static void video_monitor_video_interpretable_check_job_real_execute (BackgroundJob* base);
-VideoInterpretableResults* video_check_is_interpretable (Video* self);
-static void video_monitor_video_interpretable_check_job_finalize (BackgroundJob * obj);
-static void video_monitor_finalize (GObject * obj);
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return self ? g_object_ref (self) : NULL;
-#line 661 "VideoMonitor.c"
-}
-
-
-VideoUpdates*
-video_updates_construct (GType object_type,
- Video* video)
-{
- VideoUpdates* self = NULL;
- Video* _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_VIDEO (video), NULL);
-#line 13 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = (VideoUpdates*) monitorable_updates_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable));
-#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = _g_object_ref0 (video);
-#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (self->video);
-#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->video = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return self;
-#line 683 "VideoMonitor.c"
-}
-
-
-VideoUpdates*
-video_updates_new (Video* video)
-{
-#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return video_updates_construct (TYPE_VIDEO_UPDATES, video);
-#line 692 "VideoMonitor.c"
-}
-
-
-static void
-video_updates_real_set_check_interpretable (VideoUpdates* self,
- gboolean check)
-{
-#line 19 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->check_interpretable = check;
-#line 702 "VideoMonitor.c"
-}
-
-
-void
-video_updates_set_check_interpretable (VideoUpdates* self,
- gboolean check)
-{
-#line 18 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_if_fail (IS_VIDEO_UPDATES (self));
-#line 18 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- VIDEO_UPDATES_GET_CLASS (self)->set_check_interpretable (self, check);
-#line 714 "VideoMonitor.c"
-}
-
-
-static void
-video_updates_real_mark_online (MonitorableUpdates* base)
-{
- VideoUpdates * self;
-#line 22 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_UPDATES, VideoUpdates);
-#line 23 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->mark_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 25 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_updates_set_check_interpretable (self, TRUE);
-#line 728 "VideoMonitor.c"
-}
-
-
-gboolean
-video_updates_is_check_interpretable (VideoUpdates* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_VIDEO_UPDATES (self), FALSE);
-#line 29 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = self->priv->check_interpretable;
-#line 29 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 745 "VideoMonitor.c"
-}
-
-
-static gboolean
-video_updates_real_is_all_updated (MonitorableUpdates* base)
-{
- VideoUpdates * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_UPDATES, VideoUpdates);
-#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = self->priv->check_interpretable;
-#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp1_ == FALSE) {
-#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->is_all_updated (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 764 "VideoMonitor.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = FALSE;
-#line 768 "VideoMonitor.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 774 "VideoMonitor.c"
-}
-
-
-static void
-video_updates_class_init (VideoUpdatesClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_updates_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->finalize = video_updates_finalize;
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_type_class_add_private (klass, sizeof (VideoUpdatesPrivate));
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((VideoUpdatesClass *) klass)->set_check_interpretable = (void (*) (VideoUpdates *, gboolean)) video_updates_real_set_check_interpretable;
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->mark_online = (void (*) (MonitorableUpdates *)) video_updates_real_mark_online;
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MonitorableUpdatesClass *) klass)->is_all_updated = (gboolean (*) (MonitorableUpdates *)) video_updates_real_is_all_updated;
-#line 793 "VideoMonitor.c"
-}
-
-
-static void
-video_updates_instance_init (VideoUpdates * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv = VIDEO_UPDATES_GET_PRIVATE (self);
-#line 10 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->check_interpretable = FALSE;
-#line 804 "VideoMonitor.c"
-}
-
-
-static void
-video_updates_finalize (MonitorableUpdates * obj)
-{
- VideoUpdates * self;
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_UPDATES, VideoUpdates);
-#line 8 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (self->video);
-#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->finalize (obj);
-#line 818 "VideoMonitor.c"
-}
-
-
-GType
-video_updates_get_type (void)
-{
- static volatile gsize video_updates_type_id__volatile = 0;
- if (g_once_init_enter (&video_updates_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoUpdatesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_updates_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoUpdates), 0, (GInstanceInitFunc) video_updates_instance_init, NULL };
- GType video_updates_type_id;
- video_updates_type_id = g_type_register_static (TYPE_MONITORABLE_UPDATES, "VideoUpdates", &g_define_type_info, 0);
- g_once_init_leave (&video_updates_type_id__volatile, video_updates_type_id);
- }
- return video_updates_type_id__volatile;
-}
-
-
-VideoMonitor*
-video_monitor_construct (GType object_type,
- GCancellable* cancellable)
-{
- VideoMonitor * self = NULL;
- VideoSourceCollection* _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 66 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video_global;
-#line 66 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = (VideoMonitor*) media_monitor_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), cancellable);
-#line 848 "VideoMonitor.c"
- {
- GeeIterator* _obj_it = NULL;
- VideoSourceCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_global;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = _tmp4_;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp3_);
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _obj_it = _tmp5_;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- while (TRUE) {
-#line 872 "VideoMonitor.c"
- GeeIterator* _tmp6_;
- DataObject* obj = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- Video* video = NULL;
- DataObject* _tmp9_;
- Video* _tmp10_;
- Video* _tmp11_;
- Video* _tmp12_;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = _obj_it;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- break;
-#line 888 "VideoMonitor.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp7_ = _obj_it;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- obj = (DataObject*) _tmp8_;
-#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = obj;
-#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO) ? ((Video*) _tmp9_) : NULL);
-#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp10_;
-#line 70 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = video;
-#line 70 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_assert (_tmp11_ != NULL, "video != null");
-#line 71 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = video;
-#line 71 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!video_get_is_interpretable (_tmp12_)) {
-#line 910 "VideoMonitor.c"
- Video* _tmp13_;
-#line 72 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = video;
-#line 72 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_set_check_interpretable (self, _tmp13_, TRUE);
-#line 916 "VideoMonitor.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (obj);
-#line 922 "VideoMonitor.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_obj_it);
-#line 926 "VideoMonitor.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return self;
-#line 930 "VideoMonitor.c"
-}
-
-
-VideoMonitor*
-video_monitor_new (GCancellable* cancellable)
-{
-#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return video_monitor_construct (TYPE_VIDEO_MONITOR, cancellable);
-#line 939 "VideoMonitor.c"
-}
-
-
-static MonitorableUpdates*
-video_monitor_real_create_updates (MediaMonitor* base,
- Monitorable* monitorable)
-{
- VideoMonitor * self;
- MonitorableUpdates* result = NULL;
- VideoUpdates* _tmp0_;
-#line 76 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 76 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
-#line 77 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (monitorable, TYPE_VIDEO), "monitorable is Video");
-#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video_updates_new (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_VIDEO, Video));
-#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates);
-#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 962 "VideoMonitor.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 971 "VideoMonitor.c"
-}
-
-
-static MediaSourceCollection*
-video_monitor_real_get_media_source_collection (MediaMonitor* base)
-{
- VideoMonitor * self;
- MediaSourceCollection* result = NULL;
- VideoSourceCollection* _tmp0_;
- MediaSourceCollection* _tmp1_;
-#line 82 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video_global;
-#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp1_;
-#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 992 "VideoMonitor.c"
-}
-
-
-static gboolean
-video_monitor_real_is_file_represented (MediaMonitor* base,
- GFile* file)
-{
- VideoMonitor * self;
- gboolean result = FALSE;
- VideoSourceCollectionState state = 0;
- VideoSourceCollectionState _tmp0_ = 0;
- Video* _tmp1_;
- Video* _tmp2_;
- gboolean _tmp3_;
-#line 86 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 86 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
-#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp0_;
-#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = _tmp2_ != NULL;
-#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp2_);
-#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp3_;
-#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1025 "VideoMonitor.c"
-}
-
-
-static MediaMonitorDiscoveredFile
-video_monitor_real_notify_file_discovered (MediaMonitor* base,
- GFile* file,
- GFileInfo* info,
- Monitorable* * monitorable)
-{
- VideoMonitor * self;
- Monitorable* _vala_monitorable = NULL;
- MediaMonitorDiscoveredFile result = 0;
- VideoSourceCollectionState state = 0;
- Video* video = NULL;
- VideoSourceCollectionState _tmp0_ = 0;
- Video* _tmp1_;
- Video* _tmp2_;
- VideoSourceCollectionState _tmp3_;
-#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), 0);
-#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), 0);
-#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
-#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp0_;
-#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp1_;
-#line 95 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video;
-#line 95 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 96 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 96 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_monitorable = NULL;
-#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN;
-#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (monitorable) {
-#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- *monitorable = _vala_monitorable;
-#line 1072 "VideoMonitor.c"
- } else {
-#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 1076 "VideoMonitor.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1080 "VideoMonitor.c"
- }
-#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = state;
-#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- switch (_tmp3_) {
-#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- case VIDEO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- case VIDEO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 1090 "VideoMonitor.c"
- {
- Video* _tmp4_;
- Monitorable* _tmp5_;
-#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = video;
-#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable));
-#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_monitorable = _tmp5_;
-#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED;
-#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (monitorable) {
-#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- *monitorable = _vala_monitorable;
-#line 1110 "VideoMonitor.c"
- } else {
-#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 1114 "VideoMonitor.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1118 "VideoMonitor.c"
- }
- default:
-#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- case VIDEO_SOURCE_COLLECTION_STATE_TRASH:
-#line 1123 "VideoMonitor.c"
- {
-#line 111 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 111 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_monitorable = NULL;
-#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = MEDIA_MONITOR_DISCOVERED_FILE_IGNORE;
-#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (monitorable) {
-#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- *monitorable = _vala_monitorable;
-#line 1137 "VideoMonitor.c"
- } else {
-#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 1141 "VideoMonitor.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1145 "VideoMonitor.c"
- }
- }
-#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (monitorable) {
-#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- *monitorable = _vala_monitorable;
-#line 1154 "VideoMonitor.c"
- } else {
-#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_vala_monitorable);
-#line 1158 "VideoMonitor.c"
- }
-}
-
-
-static GeeCollection*
-video_monitor_real_candidates_for_unknown_file (MediaMonitor* base,
- GFile* file,
- GFileInfo* info,
- MediaMonitorDiscoveredFile* _result_)
-{
- VideoMonitor * self;
- MediaMonitorDiscoveredFile _vala_result = 0;
- GeeCollection* result = NULL;
- GeeCollection* matched = NULL;
- GeeArrayList* _tmp0_;
- VideoSourceCollection* _tmp1_;
-#line 117 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 117 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 117 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
-#line 119 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 119 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- matched = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 120 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_global;
-#line 120 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_source_collection_fetch_by_matching_backing (_tmp1_, info, matched);
-#line 122 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN;
-#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = matched;
-#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_result_) {
-#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- *_result_ = _vala_result;
-#line 1197 "VideoMonitor.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1201 "VideoMonitor.c"
-}
-
-
-static gboolean
-video_monitor_real_notify_file_created (MediaMonitor* base,
- GFile* file,
- GFileInfo* info)
-{
- VideoMonitor * self;
- gboolean result = FALSE;
- VideoSourceCollectionState state = 0;
- Video* video = NULL;
- VideoSourceCollectionState _tmp0_ = 0;
- Video* _tmp1_;
- Video* _tmp2_;
- Video* _tmp3_;
-#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
-#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp0_;
-#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp1_;
-#line 130 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video;
-#line 130 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = FALSE;
-#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1240 "VideoMonitor.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
-#line 133 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable));
-#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = TRUE;
-#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1252 "VideoMonitor.c"
-}
-
-
-static gboolean
-video_monitor_real_notify_file_moved (MediaMonitor* base,
- GFile* old_file,
- GFile* new_file,
- GFileInfo* new_file_info)
-{
- VideoMonitor * self;
- gboolean result = FALSE;
- VideoSourceCollectionState old_state = 0;
- Video* old_video = NULL;
- VideoSourceCollectionState _tmp0_ = 0;
- Video* _tmp1_;
- VideoSourceCollectionState new_state = 0;
- Video* new_video = NULL;
- VideoSourceCollectionState _tmp2_ = 0;
- Video* _tmp3_;
- gboolean _tmp4_ = FALSE;
- Video* _tmp5_;
-#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (old_file), FALSE);
-#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (new_file), FALSE);
-#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (new_file_info), FALSE);
-#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_get_state (self, old_file, &_tmp0_);
-#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- old_state = _tmp0_;
-#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- old_video = _tmp1_;
-#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video_monitor_get_state (self, new_file, &_tmp2_);
-#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- new_state = _tmp2_;
-#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- new_video = _tmp3_;
-#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = old_video;
-#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp5_ != NULL) {
-#line 1298 "VideoMonitor.c"
- Video* _tmp6_;
-#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = new_video;
-#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = _tmp6_ == NULL;
-#line 1304 "VideoMonitor.c"
- } else {
-#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = FALSE;
-#line 1308 "VideoMonitor.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp4_) {
-#line 1312 "VideoMonitor.c"
- Video* _tmp7_;
-#line 159 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp7_ = old_video;
-#line 159 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MONITORABLE, Monitorable), new_file);
-#line 1318 "VideoMonitor.c"
- } else {
- gboolean _tmp8_ = FALSE;
- Video* _tmp9_;
-#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = old_video;
-#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp9_ == NULL) {
-#line 1326 "VideoMonitor.c"
- Video* _tmp10_;
-#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp10_ = new_video;
-#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = _tmp10_ != NULL;
-#line 1332 "VideoMonitor.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = FALSE;
-#line 1336 "VideoMonitor.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp8_) {
-#line 1340 "VideoMonitor.c"
- Video* _tmp11_;
-#line 162 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = new_video;
-#line 162 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_set_check_interpretable (self, _tmp11_, TRUE);
-#line 1346 "VideoMonitor.c"
- } else {
- gboolean _tmp12_ = FALSE;
- Video* _tmp13_;
-#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = old_video;
-#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp13_ == NULL) {
-#line 1354 "VideoMonitor.c"
- Video* _tmp14_;
-#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp14_ = new_video;
-#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = _tmp14_ == NULL;
-#line 1360 "VideoMonitor.c"
- } else {
-#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = FALSE;
-#line 1364 "VideoMonitor.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp12_) {
-#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = FALSE;
-#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (new_video);
-#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (old_video);
-#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1376 "VideoMonitor.c"
- } else {
- gboolean _tmp15_ = FALSE;
- Video* _tmp16_;
- Video* _tmp18_;
- Video* _tmp19_;
-#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp16_ = old_video;
-#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp16_ != NULL) {
-#line 1386 "VideoMonitor.c"
- Video* _tmp17_;
-#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp17_ = new_video;
-#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = _tmp17_ != NULL;
-#line 1392 "VideoMonitor.c"
- } else {
-#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = FALSE;
-#line 1396 "VideoMonitor.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_assert (_tmp15_, "old_video != null && new_video != null");
-#line 170 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp18_ = old_video;
-#line 170 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MONITORABLE, Monitorable));
-#line 171 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp19_ = new_video;
-#line 171 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_set_check_interpretable (self, _tmp19_, TRUE);
-#line 1408 "VideoMonitor.c"
- }
- }
- }
-#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = TRUE;
-#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (new_video);
-#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (old_video);
-#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1420 "VideoMonitor.c"
-}
-
-
-static gboolean
-video_monitor_real_notify_file_altered (MediaMonitor* base,
- GFile* file)
-{
- VideoMonitor * self;
- gboolean result = FALSE;
- VideoSourceCollectionState state = 0;
- VideoSourceCollectionState _tmp0_ = 0;
- Video* _tmp1_;
- Video* _tmp2_;
- gboolean _tmp3_;
-#line 177 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 177 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
-#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp0_;
-#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = _tmp1_;
-#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = _tmp2_ != NULL;
-#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp2_);
-#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp3_;
-#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1453 "VideoMonitor.c"
-}
-
-
-static gboolean
-video_monitor_real_notify_file_attributes_altered (MediaMonitor* base,
- GFile* file)
-{
- VideoMonitor * self;
- gboolean result = FALSE;
- VideoSourceCollectionState state = 0;
- Video* video = NULL;
- VideoSourceCollectionState _tmp0_ = 0;
- Video* _tmp1_;
- Video* _tmp2_;
- Video* _tmp3_;
- Video* _tmp4_;
-#line 182 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 182 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
-#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp0_;
-#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp1_;
-#line 185 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video;
-#line 185 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = FALSE;
-#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1490 "VideoMonitor.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
-#line 188 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file_info_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable));
-#line 189 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = video;
-#line 189 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable), TRUE);
-#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = TRUE;
-#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1506 "VideoMonitor.c"
-}
-
-
-static gboolean
-video_monitor_real_notify_file_alteration_completed (MediaMonitor* base,
- GFile* file,
- GFileInfo* info)
-{
- VideoMonitor * self;
- gboolean result = FALSE;
- VideoSourceCollectionState state = 0;
- Video* video = NULL;
- VideoSourceCollectionState _tmp0_ = 0;
- Video* _tmp1_;
- Video* _tmp2_;
- Video* _tmp3_;
-#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
-#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
-#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp0_;
-#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp1_;
-#line 197 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video;
-#line 197 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = FALSE;
-#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1545 "VideoMonitor.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
-#line 200 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file_alterations_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable), info);
-#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = TRUE;
-#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1557 "VideoMonitor.c"
-}
-
-
-static gboolean
-video_monitor_real_notify_file_deleted (MediaMonitor* base,
- GFile* file)
-{
- VideoMonitor * self;
- gboolean result = FALSE;
- VideoSourceCollectionState state = 0;
- Video* video = NULL;
- VideoSourceCollectionState _tmp0_ = 0;
- Video* _tmp1_;
- Video* _tmp2_;
- Video* _tmp3_;
- Video* _tmp4_;
-#line 205 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 205 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
-#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp0_;
-#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp1_;
-#line 208 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video;
-#line 208 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = FALSE;
-#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1594 "VideoMonitor.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
-#line 211 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable), FALSE);
-#line 212 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = video;
-#line 212 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable));
-#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = TRUE;
-#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1610 "VideoMonitor.c"
-}
-
-
-static Video*
-video_monitor_get_state (VideoMonitor* self,
- GFile* file,
- VideoSourceCollectionState* state)
-{
- VideoSourceCollectionState _vala_state = 0;
- Video* result = NULL;
- GFile* real_file = NULL;
- GFile* _tmp22_ = NULL;
- GFile* _tmp23_;
- VideoSourceCollection* _tmp24_;
- VideoSourceCollectionState _tmp25_ = 0;
- Video* _tmp26_;
-#line 217 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL);
-#line 217 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 218 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- real_file = NULL;
-#line 1633 "VideoMonitor.c"
- {
- GeeIterator* _monitorable_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = media_monitor_get_monitorables (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor));
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = _tmp2_;
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp1_);
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_it = _tmp3_;
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- while (TRUE) {
-#line 1654 "VideoMonitor.c"
- GeeIterator* _tmp4_;
- Monitorable* monitorable = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- Video* video = NULL;
- Monitorable* _tmp7_;
- Video* _tmp8_;
- VideoUpdates* updates = NULL;
- Video* _tmp9_;
- VideoUpdates* _tmp10_;
- VideoUpdates* _tmp11_;
- gboolean _tmp12_ = FALSE;
- VideoUpdates* _tmp13_;
- GFile* _tmp14_;
- GFile* _tmp15_;
- gboolean _tmp16_;
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = _monitorable_it;
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- break;
-#line 1677 "VideoMonitor.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = _monitorable_it;
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- monitorable = (Monitorable*) _tmp6_;
-#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp7_ = monitorable;
-#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIDEO, Video));
-#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp8_;
-#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = video;
-#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp10_ = video_monitor_get_existing_video_updates (self, _tmp9_);
-#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- updates = _tmp10_;
-#line 223 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = updates;
-#line 223 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp11_ == NULL) {
-#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- continue;
-#line 1709 "VideoMonitor.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = updates;
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp14_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = _tmp14_;
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp16_ = _tmp15_ != NULL;
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp15_);
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp16_) {
-#line 1723 "VideoMonitor.c"
- VideoUpdates* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp17_ = updates;
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp18_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp19_ = _tmp18_;
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = g_file_equal (_tmp19_, file);
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp19_);
-#line 1737 "VideoMonitor.c"
- } else {
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = FALSE;
-#line 1741 "VideoMonitor.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp12_) {
-#line 1745 "VideoMonitor.c"
- Video* _tmp20_;
- GFile* _tmp21_;
-#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp20_ = video;
-#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp21_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (real_file);
-#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- real_file = _tmp21_;
-#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- break;
-#line 1764 "VideoMonitor.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (monitorable);
-#line 1772 "VideoMonitor.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_monitorable_it);
-#line 1776 "VideoMonitor.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp23_ = real_file;
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp22_ = _tmp23_;
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp22_ == NULL) {
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp22_ = file;
-#line 1786 "VideoMonitor.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp24_ = video_global;
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp26_ = video_source_collection_get_state_by_file (_tmp24_, _tmp22_, &_tmp25_);
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_state = _tmp25_;
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp26_;
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (real_file);
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (state) {
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- *state = _vala_state;
-#line 1802 "VideoMonitor.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1806 "VideoMonitor.c"
-}
-
-
-VideoUpdates*
-video_monitor_fetch_video_updates (VideoMonitor* self,
- Video* video)
-{
- VideoUpdates* result = NULL;
- VideoUpdates* updates = NULL;
- MonitorableUpdates* _tmp0_;
- VideoUpdates* _tmp1_;
-#line 236 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL);
-#line 236 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_VIDEO (video), NULL);
-#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = media_monitor_fetch_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable));
-#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp0_) : NULL;
-#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp1_ == NULL) {
-#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (_tmp0_);
-#line 1830 "VideoMonitor.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- updates = _tmp1_;
-#line 238 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_assert (updates != NULL, "updates != null");
-#line 240 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = updates;
-#line 240 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1840 "VideoMonitor.c"
-}
-
-
-VideoUpdates*
-video_monitor_get_existing_video_updates (VideoMonitor* self,
- Video* video)
-{
- VideoUpdates* result = NULL;
- MonitorableUpdates* _tmp0_;
- VideoUpdates* _tmp1_;
-#line 243 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL);
-#line 243 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_VIDEO (video), NULL);
-#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = media_monitor_get_existing_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable));
-#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp0_) : NULL;
-#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp1_ == NULL) {
-#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (_tmp0_);
-#line 1863 "VideoMonitor.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp1_;
-#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return result;
-#line 1869 "VideoMonitor.c"
-}
-
-
-void
-video_monitor_set_check_interpretable (VideoMonitor* self,
- Video* video,
- gboolean check)
-{
- VideoUpdates* _tmp0_;
- VideoUpdates* _tmp1_;
-#line 247 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_if_fail (IS_VIDEO_MONITOR (self));
-#line 247 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_if_fail (IS_VIDEO (video));
-#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video_monitor_fetch_video_updates (self, video);
-#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = _tmp0_;
-#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_updates_set_check_interpretable (_tmp1_, check);
-#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 1892 "VideoMonitor.c"
-}
-
-
-static gpointer
-_monitorable_updates_ref0 (gpointer self)
-{
-#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return self ? monitorable_updates_ref (self) : NULL;
-#line 1901 "VideoMonitor.c"
-}
-
-
-static void
-_video_monitor_on_interpretable_check_complete_completion_callback (BackgroundJob* job,
- gpointer self)
-{
-#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_on_interpretable_check_complete ((VideoMonitor*) self, job);
-#line 1911 "VideoMonitor.c"
-}
-
-
-static void
-video_monitor_real_process_updates (MediaMonitor* base,
- GeeCollection* all_updates,
- TransactionController* controller,
- gint* op_count,
- GError** error)
-{
- VideoMonitor * self;
- GeeArrayList* check = NULL;
- GeeArrayList* _tmp20_;
- GError * _inner_error_ = NULL;
-#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_if_fail (GEE_IS_COLLECTION (all_updates));
-#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
-#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- MEDIA_MONITOR_CLASS (video_monitor_parent_class)->process_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), all_updates, controller, op_count, &_inner_error_);
-#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_propagate_error (error, _inner_error_);
-#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return;
-#line 1940 "VideoMonitor.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- check = NULL;
-#line 1944 "VideoMonitor.c"
- {
- GeeIterator* _monitorable_updates_it = NULL;
- GeeIterator* _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (all_updates, GEE_TYPE_ITERABLE, GeeIterable));
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_it = _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- while (TRUE) {
-#line 1954 "VideoMonitor.c"
- GeeIterator* _tmp1_;
- MonitorableUpdates* monitorable_updates = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- gboolean _tmp4_ = FALSE;
- GeeArrayList* _tmp5_;
- VideoUpdates* updates = NULL;
- MonitorableUpdates* _tmp9_;
- VideoUpdates* _tmp10_;
- VideoUpdates* _tmp11_;
- VideoUpdates* _tmp12_;
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = _monitorable_updates_it;
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- break;
-#line 1972 "VideoMonitor.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = _monitorable_updates_it;
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- monitorable_updates = (MonitorableUpdates*) _tmp3_;
-#line 258 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if ((*op_count) >= MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE) {
-#line 259 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (monitorable_updates);
-#line 259 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- break;
-#line 1986 "VideoMonitor.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = check;
-#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp5_ != NULL) {
-#line 1992 "VideoMonitor.c"
- GeeArrayList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = check;
-#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = _tmp7_;
-#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = _tmp8_ >= VIDEO_MONITOR_MAX_INTERPRETABLE_CHECKS_PER_CYCLE;
-#line 2004 "VideoMonitor.c"
- } else {
-#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = FALSE;
-#line 2008 "VideoMonitor.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp4_) {
-#line 264 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (monitorable_updates);
-#line 264 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- break;
-#line 2016 "VideoMonitor.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = monitorable_updates;
-#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp10_ = _monitorable_updates_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp9_) : NULL);
-#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- updates = _tmp10_;
-#line 267 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = updates;
-#line 267 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp11_ == NULL) {
-#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (monitorable_updates);
-#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- continue;
-#line 2034 "VideoMonitor.c"
- }
-#line 270 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = updates;
-#line 270 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (video_updates_is_check_interpretable (_tmp12_)) {
-#line 2040 "VideoMonitor.c"
- GeeArrayList* _tmp13_;
- GeeArrayList* _tmp15_;
- VideoUpdates* _tmp16_;
- Video* _tmp17_;
- VideoUpdates* _tmp18_;
- gint _tmp19_;
-#line 271 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = check;
-#line 271 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp13_ == NULL) {
-#line 2051 "VideoMonitor.c"
- GeeArrayList* _tmp14_;
-#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp14_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (check);
-#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- check = _tmp14_;
-#line 2059 "VideoMonitor.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = check;
-#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp16_ = updates;
-#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp17_ = _tmp16_->video;
-#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
-#line 275 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp18_ = updates;
-#line 275 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_updates_set_check_interpretable (_tmp18_, FALSE);
-#line 276 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp19_ = *op_count;
-#line 276 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- *op_count = _tmp19_ + 1;
-#line 2077 "VideoMonitor.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (updates);
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (monitorable_updates);
-#line 2083 "VideoMonitor.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_monitorable_updates_it);
-#line 2087 "VideoMonitor.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp20_ = check;
-#line 280 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp20_ != NULL) {
-#line 2093 "VideoMonitor.c"
- GeeArrayList* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- guint64 _tmp26_;
- GeeArrayList* _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
-#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp21_ = check;
-#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp22_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp23_ = _tmp22_;
-#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp24_ = g_strdup_printf ("Checking interpretable for %d videos", _tmp23_);
-#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp25_ = _tmp24_;
-#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_mdbg (_tmp25_);
-#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_free0 (_tmp25_);
-#line 283 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_notify_offline_thumbs_regenerated ();
-#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp26_ = self->priv->background_jobs;
-#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp27_ = check;
-#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp29_ = _tmp28_;
-#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->background_jobs = _tmp26_ + _tmp29_;
-#line 2129 "VideoMonitor.c"
- {
- GeeArrayList* _video_list = NULL;
- GeeArrayList* _tmp30_;
- GeeArrayList* _tmp31_;
- gint _video_size = 0;
- GeeArrayList* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gint _video_index = 0;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp30_ = check;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp31_ = _g_object_ref0 (_tmp30_);
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_list = _tmp31_;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp32_ = _video_list;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp33_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp34_ = _tmp33_;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_size = _tmp34_;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_index = -1;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- while (TRUE) {
-#line 2157 "VideoMonitor.c"
- gint _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- Video* video = NULL;
- GeeArrayList* _tmp38_;
- gint _tmp39_;
- gpointer _tmp40_;
- Workers* _tmp41_;
- Video* _tmp42_;
- VideoMonitorVideoInterpretableCheckJob* _tmp43_;
- VideoMonitorVideoInterpretableCheckJob* _tmp44_;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp35_ = _video_index;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_index = _tmp35_ + 1;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp36_ = _video_index;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp37_ = _video_size;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!(_tmp36_ < _tmp37_)) {
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- break;
-#line 2181 "VideoMonitor.c"
- }
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp38_ = _video_list;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp39_ = _video_index;
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp40_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp39_);
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = (Video*) _tmp40_;
-#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp41_ = self->priv->workers;
-#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp42_ = video;
-#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp43_ = video_monitor_video_interpretable_check_job_new (_tmp42_, _video_monitor_on_interpretable_check_complete_completion_callback, self);
-#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp44_ = _tmp43_;
-#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- workers_enqueue (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _background_job_unref0 (_tmp44_);
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (video);
-#line 2205 "VideoMonitor.c"
- }
-#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_video_list);
-#line 2209 "VideoMonitor.c"
- }
- }
-#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (check);
-#line 2214 "VideoMonitor.c"
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return self ? background_job_ref (self) : NULL;
-#line 2223 "VideoMonitor.c"
-}
-
-
-static void
-video_monitor_on_interpretable_check_complete (VideoMonitor* self,
- BackgroundJob* j)
-{
- VideoMonitorVideoInterpretableCheckJob* job = NULL;
- VideoMonitorVideoInterpretableCheckJob* _tmp0_;
- VideoMonitorVideoInterpretableCheckJob* _tmp1_;
- VideoInterpretableResults* _tmp2_;
- guint64 _tmp3_;
- guint64 _tmp4_;
-#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_if_fail (IS_VIDEO_MONITOR (self));
-#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob));
-#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- job = _tmp0_;
-#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = job;
-#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = _tmp1_->results;
-#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_interpretable_results_foreground_finish (_tmp2_);
-#line 296 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = self->priv->background_jobs;
-#line 296 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->background_jobs = _tmp3_ - 1;
-#line 297 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = self->priv->background_jobs;
-#line 297 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp4_ <= ((guint64) 0)) {
-#line 298 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_notify_normal_thumbs_regenerated ();
-#line 2261 "VideoMonitor.c"
- }
-#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _background_job_unref0 (job);
-#line 2265 "VideoMonitor.c"
-}
-
-
-static VideoMonitorVideoInterpretableCheckJob*
-video_monitor_video_interpretable_check_job_construct (GType object_type,
- Video* video,
- CompletionCallback callback,
- void* callback_target)
-{
- VideoMonitorVideoInterpretableCheckJob* self = NULL;
- Video* _tmp0_;
-#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_return_val_if_fail (IS_VIDEO (video), NULL);
-#line 50 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = (VideoMonitorVideoInterpretableCheckJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (video, G_TYPE_OBJECT, GObject), callback, callback_target, NULL, NULL, NULL, NULL);
-#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = _g_object_ref0 (video);
-#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (self->video);
-#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->video = _tmp0_;
-#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return self;
-#line 2289 "VideoMonitor.c"
-}
-
-
-static VideoMonitorVideoInterpretableCheckJob*
-video_monitor_video_interpretable_check_job_new (Video* video,
- CompletionCallback callback,
- void* callback_target)
-{
-#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- return video_monitor_video_interpretable_check_job_construct (VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, video, callback, callback_target);
-#line 2300 "VideoMonitor.c"
-}
-
-
-static void
-video_monitor_video_interpretable_check_job_real_execute (BackgroundJob* base)
-{
- VideoMonitorVideoInterpretableCheckJob * self;
- Video* _tmp0_;
- VideoInterpretableResults* _tmp1_;
-#line 54 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob);
-#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = self->video;
-#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_check_is_interpretable (_tmp0_);
-#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_interpretable_results_unref0 (self->results);
-#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->results = _tmp1_;
-#line 2320 "VideoMonitor.c"
-}
-
-
-static void
-video_monitor_video_interpretable_check_job_class_init (VideoMonitorVideoInterpretableCheckJobClass * klass)
-{
-#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_video_interpretable_check_job_parent_class = g_type_class_peek_parent (klass);
-#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((BackgroundJobClass *) klass)->finalize = video_monitor_video_interpretable_check_job_finalize;
-#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) video_monitor_video_interpretable_check_job_real_execute;
-#line 2333 "VideoMonitor.c"
-}
-
-
-static void
-video_monitor_video_interpretable_check_job_instance_init (VideoMonitorVideoInterpretableCheckJob * self)
-{
-#line 47 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->results = NULL;
-#line 2342 "VideoMonitor.c"
-}
-
-
-static void
-video_monitor_video_interpretable_check_job_finalize (BackgroundJob * obj)
-{
- VideoMonitorVideoInterpretableCheckJob * self;
-#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob);
-#line 44 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (self->video);
-#line 47 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_interpretable_results_unref0 (self->results);
-#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- BACKGROUND_JOB_CLASS (video_monitor_video_interpretable_check_job_parent_class)->finalize (obj);
-#line 2358 "VideoMonitor.c"
-}
-
-
-static GType
-video_monitor_video_interpretable_check_job_get_type (void)
-{
- static volatile gsize video_monitor_video_interpretable_check_job_type_id__volatile = 0;
- if (g_once_init_enter (&video_monitor_video_interpretable_check_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoMonitorVideoInterpretableCheckJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_monitor_video_interpretable_check_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMonitorVideoInterpretableCheckJob), 0, (GInstanceInitFunc) video_monitor_video_interpretable_check_job_instance_init, NULL };
- GType video_monitor_video_interpretable_check_job_type_id;
- video_monitor_video_interpretable_check_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "VideoMonitorVideoInterpretableCheckJob", &g_define_type_info, 0);
- g_once_init_leave (&video_monitor_video_interpretable_check_job_type_id__volatile, video_monitor_video_interpretable_check_job_type_id);
- }
- return video_monitor_video_interpretable_check_job_type_id__volatile;
-}
-
-
-static void
-video_monitor_class_init (VideoMonitorClass * klass)
-{
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_parent_class = g_type_class_peek_parent (klass);
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- g_type_class_add_private (klass, sizeof (VideoMonitorPrivate));
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->create_updates = (MonitorableUpdates* (*) (MediaMonitor *, Monitorable*)) video_monitor_real_create_updates;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->get_media_source_collection = (MediaSourceCollection* (*) (MediaMonitor *)) video_monitor_real_get_media_source_collection;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->is_file_represented = (gboolean (*) (MediaMonitor *, GFile*)) video_monitor_real_is_file_represented;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_discovered = (MediaMonitorDiscoveredFile (*) (MediaMonitor *, GFile*, GFileInfo*, Monitorable* *)) video_monitor_real_notify_file_discovered;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->candidates_for_unknown_file = (GeeCollection* (*) (MediaMonitor *, GFile*, GFileInfo*, MediaMonitorDiscoveredFile*)) video_monitor_real_candidates_for_unknown_file;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_created = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) video_monitor_real_notify_file_created;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_moved = (gboolean (*) (MediaMonitor *, GFile*, GFile*, GFileInfo*)) video_monitor_real_notify_file_moved;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_altered = (gboolean (*) (MediaMonitor *, GFile*)) video_monitor_real_notify_file_altered;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_attributes_altered = (gboolean (*) (MediaMonitor *, GFile*)) video_monitor_real_notify_file_attributes_altered;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_alteration_completed = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) video_monitor_real_notify_file_alteration_completed;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->notify_file_deleted = (gboolean (*) (MediaMonitor *, GFile*)) video_monitor_real_notify_file_deleted;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- ((MediaMonitorClass *) klass)->process_updates = (void (*) (MediaMonitor *, GeeCollection*, TransactionController*, gint*, GError**)) video_monitor_real_process_updates;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- G_OBJECT_CLASS (klass)->finalize = video_monitor_finalize;
-#line 2409 "VideoMonitor.c"
-}
-
-
-static void
-video_monitor_instance_init (VideoMonitor * self)
-{
- Workers* _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv = VIDEO_MONITOR_GET_PRIVATE (self);
-#line 62 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = workers_new ((guint) 1, FALSE);
-#line 62 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->workers = _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->background_jobs = (guint64) 0;
-#line 2425 "VideoMonitor.c"
-}
-
-
-static void
-video_monitor_finalize (GObject * obj)
-{
- VideoMonitor * self;
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_MONITOR, VideoMonitor);
-#line 62 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _workers_unref0 (self->priv->workers);
-#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- G_OBJECT_CLASS (video_monitor_parent_class)->finalize (obj);
-#line 2439 "VideoMonitor.c"
-}
-
-
-GType
-video_monitor_get_type (void)
-{
- static volatile gsize video_monitor_type_id__volatile = 0;
- if (g_once_init_enter (&video_monitor_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMonitor), 0, (GInstanceInitFunc) video_monitor_instance_init, NULL };
- GType video_monitor_type_id;
- video_monitor_type_id = g_type_register_static (TYPE_MEDIA_MONITOR, "VideoMonitor", &g_define_type_info, 0);
- g_once_init_leave (&video_monitor_type_id__volatile, video_monitor_type_id);
- }
- return video_monitor_type_id__volatile;
-}
-
-
-
diff --git a/src/VideoSupport.c b/src/VideoSupport.c
deleted file mode 100644
index ddc760b..0000000
--- a/src/VideoSupport.c
+++ /dev/null
@@ -1,11394 +0,0 @@
-/* VideoSupport.c generated by valac 0.40.4, the Vala compiler
- * generated from VideoSupport.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gst/pbutils/pbutils.h>
-#include <gst/gst.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <gio/gunixinputstream.h>
-#include <sys/wait.h>
-#include <glib/gstdio.h>
-#include <gee.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n-lib.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_VIDEO_IMPORT_PARAMS (video_import_params_get_type ())
-#define VIDEO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParams))
-#define VIDEO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParamsClass))
-#define IS_VIDEO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_IMPORT_PARAMS))
-#define IS_VIDEO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_IMPORT_PARAMS))
-#define VIDEO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParamsClass))
-
-typedef struct _VideoImportParams VideoImportParams;
-typedef struct _VideoImportParamsClass VideoImportParamsClass;
-typedef struct _VideoImportParamsPrivate VideoImportParamsPrivate;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_THUMBNAILS (thumbnails_get_type ())
-#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails))
-#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass))
-#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS))
-#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS))
-#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass))
-
-typedef struct _Thumbnails Thumbnails;
-typedef struct _ThumbnailsClass ThumbnailsClass;
-
-#define TYPE_VIDEO_ROW (video_row_get_type ())
-#define VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_ROW, VideoRow))
-#define VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_ROW, VideoRowClass))
-#define IS_VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_ROW))
-#define IS_VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_ROW))
-#define VIDEO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_ROW, VideoRowClass))
-
-typedef struct _VideoRow VideoRow;
-typedef struct _VideoRowClass VideoRowClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _thumbnails_unref0(var) ((var == NULL) ? NULL : (var = (thumbnails_unref (var), NULL)))
-#define _video_row_unref0(var) ((var == NULL) ? NULL : (var = (video_row_unref (var), NULL)))
-typedef struct _ParamSpecVideoImportParams ParamSpecVideoImportParams;
-
-#define TYPE_VIDEO_READER (video_reader_get_type ())
-#define VIDEO_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_READER, VideoReader))
-#define VIDEO_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_READER, VideoReaderClass))
-#define IS_VIDEO_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_READER))
-#define IS_VIDEO_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_READER))
-#define VIDEO_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_READER, VideoReaderClass))
-
-typedef struct _VideoReader VideoReader;
-typedef struct _VideoReaderClass VideoReaderClass;
-typedef struct _VideoReaderPrivate VideoReaderPrivate;
-#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_IMPORT_RESULT (import_result_get_type ())
-#define _video_reader_unref0(var) ((var == NULL) ? NULL : (var = (video_reader_unref (var), NULL)))
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_VIDEO_METADATA (video_metadata_get_type ())
-#define VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_METADATA, VideoMetadata))
-#define VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_METADATA, VideoMetadataClass))
-#define IS_VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_METADATA))
-#define IS_VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_METADATA))
-#define VIDEO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_METADATA, VideoMetadataClass))
-
-typedef struct _VideoMetadata VideoMetadata;
-typedef struct _VideoMetadataClass VideoMetadataClass;
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-typedef struct _VideoRowPrivate VideoRowPrivate;
-
-#define TYPE_VIDEO_ID (video_id_get_type ())
-typedef struct _VideoID VideoID;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_RATING (rating_get_type ())
-typedef struct _ParamSpecVideoReader ParamSpecVideoReader;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-
-#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;
-typedef struct _MediaSourcePrivate MediaSourcePrivate;
-
-#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ())
-#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState))
-#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE))
-#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE))
-#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-
-typedef struct _BackingFileState BackingFileState;
-typedef struct _BackingFileStateClass BackingFileStateClass;
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-typedef struct _VideoSourcePrivate VideoSourcePrivate;
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-
-#define TYPE_MONITORABLE (monitorable_get_type ())
-#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
-#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
-#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
-
-typedef struct _Monitorable Monitorable;
-typedef struct _MonitorableIface MonitorableIface;
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-typedef struct _VideoPrivate VideoPrivate;
-enum {
- VIDEO_0_PROPERTY,
- VIDEO_NUM_PROPERTIES
-};
-static GParamSpec* video_properties[VIDEO_NUM_PROPERTIES];
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_VIDEO_TABLE (video_table_get_type ())
-#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable))
-#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass))
-#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE))
-#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE))
-#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass))
-
-typedef struct _VideoTable VideoTable;
-typedef struct _VideoTableClass VideoTableClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
-
-#define TYPE_EXPORTER (exporter_get_type ())
-#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter))
-#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass))
-#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER))
-#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER))
-#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass))
-
-typedef struct _Exporter Exporter;
-typedef struct _ExporterClass ExporterClass;
-
-#define TYPE_EXPORTER_UI (exporter_ui_get_type ())
-#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI))
-#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass))
-#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI))
-#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI))
-#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass))
-
-typedef struct _ExporterUI ExporterUI;
-typedef struct _ExporterUIClass ExporterUIClass;
-
-#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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 _backing_file_state_unref0(var) ((var == NULL) ? NULL : (var = (backing_file_state_unref (var), NULL)))
-
-#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ())
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#define VIDEO_TYPE_INTERPRETABLE_RESULTS (video_interpretable_results_get_type ())
-#define VIDEO_INTERPRETABLE_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResults))
-#define VIDEO_INTERPRETABLE_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResultsClass))
-#define VIDEO_IS_INTERPRETABLE_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS))
-#define VIDEO_IS_INTERPRETABLE_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIDEO_TYPE_INTERPRETABLE_RESULTS))
-#define VIDEO_INTERPRETABLE_RESULTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResultsClass))
-
-typedef struct _VideoInterpretableResults VideoInterpretableResults;
-typedef struct _VideoInterpretableResultsClass VideoInterpretableResultsClass;
-#define _video_interpretable_results_unref0(var) ((var == NULL) ? NULL : (var = (video_interpretable_results_unref (var), NULL)))
-typedef struct _VideoInterpretableResultsPrivate VideoInterpretableResultsPrivate;
-typedef struct _VideoParamSpecInterpretableResults VideoParamSpecInterpretableResults;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-typedef struct _MediaSourceCollectionPrivate MediaSourceCollectionPrivate;
-
-#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ())
-#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank))
-#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-
-typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank;
-typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass;
-
-#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ())
-#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank))
-#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK))
-#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
-
-typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank;
-typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-
-#define TYPE_MEDIA_MONITOR (media_monitor_get_type ())
-#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor))
-#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR))
-#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR))
-#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass))
-
-typedef struct _MediaMonitor MediaMonitor;
-typedef struct _MediaMonitorClass MediaMonitorClass;
-
-#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
-#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
-#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
-#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
-#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
-
-typedef struct _TransactionController TransactionController;
-typedef struct _TransactionControllerClass TransactionControllerClass;
-typedef struct _VideoSourceCollectionPrivate VideoSourceCollectionPrivate;
-
-#define VIDEO_SOURCE_COLLECTION_TYPE_STATE (video_source_collection_state_get_type ())
-#define _transaction_controller_unref0(var) ((var == NULL) ? NULL : (var = (transaction_controller_unref (var), NULL)))
-#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL)))
-
-#define TYPE_VIDEO_MONITOR (video_monitor_get_type ())
-#define VIDEO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_MONITOR, VideoMonitor))
-#define VIDEO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_MONITOR, VideoMonitorClass))
-#define IS_VIDEO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_MONITOR))
-#define IS_VIDEO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_MONITOR))
-#define VIDEO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_MONITOR, VideoMonitorClass))
-
-typedef struct _VideoMonitor VideoMonitor;
-typedef struct _VideoMonitorClass VideoMonitorClass;
-
-#define TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER (media_source_transaction_controller_get_type ())
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController))
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass))
-#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER))
-#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER))
-#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass))
-
-typedef struct _MediaSourceTransactionController MediaSourceTransactionController;
-typedef struct _MediaSourceTransactionControllerClass MediaSourceTransactionControllerClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- VIDEO_ERROR_FILE,
- VIDEO_ERROR_CONTENTS
-} VideoError;
-#define VIDEO_ERROR video_error_quark ()
-struct _ImportID {
- gint64 id;
-};
-
-struct _VideoImportParams {
- GTypeInstance parent_instance;
- volatile int ref_count;
- VideoImportParamsPrivate * priv;
- GFile* file;
- ImportID import_id;
- gchar* md5;
- time_t exposure_time_override;
- Thumbnails* thumbnails;
- VideoRow* row;
-};
-
-struct _VideoImportParamsClass {
- GTypeClass parent_class;
- void (*finalize) (VideoImportParams *self);
-};
-
-struct _ParamSpecVideoImportParams {
- GParamSpec parent_instance;
-};
-
-struct _VideoReader {
- GTypeInstance parent_instance;
- volatile int ref_count;
- VideoReaderPrivate * priv;
-};
-
-struct _VideoReaderClass {
- GTypeClass parent_class;
- void (*finalize) (VideoReader *self);
-};
-
-struct _VideoReaderPrivate {
- gdouble clip_duration;
- GdkPixbuf* preview_frame;
- GFile* file;
- GPid thumbnailer_pid;
- GDateTime* _timestamp;
-};
-
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-struct _VideoID {
- gint64 id;
-};
-
-struct _EventID {
- gint64 id;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _VideoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- VideoRowPrivate * priv;
- VideoID video_id;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- gint width;
- gint height;
- gdouble clip_duration;
- gboolean is_interpretable;
- time_t exposure_time;
- ImportID import_id;
- EventID event_id;
- gchar* md5;
- time_t time_created;
- Rating rating;
- gchar* title;
- gchar* backlinks;
- time_t time_reimported;
- guint64 flags;
- gchar* comment;
-};
-
-struct _VideoRowClass {
- GTypeClass parent_class;
- void (*finalize) (VideoRow *self);
-};
-
-struct _ParamSpecVideoReader {
- GParamSpec parent_instance;
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _ThumbnailSource {
- DataSource parent_instance;
- ThumbnailSourcePrivate * priv;
-};
-
-struct _ThumbnailSourceClass {
- DataSourceClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailSource* self);
- GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- gchar* (*get_representative_id) (ThumbnailSource* self);
- PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self);
- void (*thumbnail_altered) (ThumbnailSource* self);
-};
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _MediaSource {
- ThumbnailSource parent_instance;
- MediaSourcePrivate * priv;
-};
-
-struct _MediaSourceClass {
- ThumbnailSourceClass parent_class;
- void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
- gboolean (*set_event_id) (MediaSource* self, EventID* id);
- gchar* (*get_basename) (MediaSource* self);
- GFile* (*get_file) (MediaSource* self);
- GFile* (*get_master_file) (MediaSource* self);
- guint64 (*get_master_filesize) (MediaSource* self);
- guint64 (*get_filesize) (MediaSource* self);
- time_t (*get_timestamp) (MediaSource* self);
- BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1);
- gchar* (*get_title) (MediaSource* self);
- gchar* (*get_comment) (MediaSource* self);
- void (*set_title) (MediaSource* self, const gchar* title);
- gboolean (*set_comment) (MediaSource* self, const gchar* comment);
- Rating (*get_rating) (MediaSource* self);
- void (*set_rating) (MediaSource* self, Rating rating);
- void (*increase_rating) (MediaSource* self);
- void (*decrease_rating) (MediaSource* self);
- void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result);
- GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error);
- gboolean (*is_trashed) (MediaSource* self);
- void (*trash) (MediaSource* self);
- void (*untrash) (MediaSource* self);
- gboolean (*is_offline) (MediaSource* self);
- void (*mark_offline) (MediaSource* self);
- void (*mark_online) (MediaSource* self);
- gchar* (*get_master_md5) (MediaSource* self);
- void (*get_event_id) (MediaSource* self, EventID* result);
- time_t (*get_exposure_time) (MediaSource* self);
- void (*get_import_id) (MediaSource* self, ImportID* result);
- void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
-};
-
-struct _VideoSource {
- MediaSource parent_instance;
- VideoSourcePrivate * priv;
-};
-
-struct _VideoSourceClass {
- MediaSourceClass parent_class;
-};
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-struct _MonitorableIface {
- GTypeInterface parent_iface;
- gboolean (*is_offline) (Monitorable* self);
- void (*mark_online) (Monitorable* self);
- void (*mark_offline) (Monitorable* self);
- void (*set_master_file) (Monitorable* self, GFile* file);
- void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
-};
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-struct _Video {
- VideoSource parent_instance;
- VideoPrivate * priv;
-};
-
-struct _VideoClass {
- VideoSourceClass parent_class;
-};
-
-struct _VideoPrivate {
- VideoRow* backing_row;
- GRecMutex __lock_backing_row;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data);
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-typedef enum {
- THUMBNAIL_CACHE_SIZE_LARGEST = 360,
- THUMBNAIL_CACHE_SIZE_BIG = 360,
- THUMBNAIL_CACHE_SIZE_MEDIUM = 128,
- THUMBNAIL_CACHE_SIZE_SMALLEST = 128
-} ThumbnailCacheSize;
-
-struct _VideoInterpretableResults {
- GTypeInstance parent_instance;
- volatile int ref_count;
- VideoInterpretableResultsPrivate * priv;
- Video* video;
- gboolean update_interpretable;
- gboolean is_interpretable;
- GdkPixbuf* new_thumbnail;
-};
-
-struct _VideoInterpretableResultsClass {
- GTypeClass parent_class;
- void (*finalize) (VideoInterpretableResults *self);
-};
-
-struct _VideoParamSpecInterpretableResults {
- GParamSpec parent_instance;
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _MediaSourceCollection {
- DatabaseSourceCollection parent_instance;
- MediaSourceCollectionPrivate * priv;
-};
-
-struct _MediaSourceCollectionClass {
- DatabaseSourceCollectionClass parent_class;
- MediaSourceHoldingTank* (*create_trashcan) (MediaSourceCollection* self);
- MediaSourceHoldingTank* (*create_offline_bin) (MediaSourceCollection* self);
- MediaMonitor* (*create_media_monitor) (MediaSourceCollection* self, Workers* workers, GCancellable* cancellable);
- gchar* (*get_typename) (MediaSourceCollection* self);
- gboolean (*is_file_recognized) (MediaSourceCollection* self, GFile* file);
- MediaSource* (*fetch_by_numeric_id) (MediaSourceCollection* self, gint64 numeric_id);
- void (*notify_import_roll_altered) (MediaSourceCollection* self);
- void (*notify_flagged_contents_altered) (MediaSourceCollection* self);
- void (*notify_media_import_starting) (MediaSourceCollection* self, GeeCollection* media);
- void (*notify_media_import_completed) (MediaSourceCollection* self, GeeCollection* media);
- MediaSource* (*fetch_by_source_id) (MediaSourceCollection* self, const gchar* source_id);
- GeeCollection* (*get_event_source_ids) (MediaSourceCollection* self, EventID* event_id);
- void (*import_many) (MediaSourceCollection* self, GeeCollection* media);
- void (*postprocess_imported_media) (MediaSourceCollection* self, GeeCollection* media);
- void (*media_import_starting) (MediaSourceCollection* self, GeeCollection* media);
- void (*media_import_completed) (MediaSourceCollection* self, GeeCollection* media);
- void (*master_file_replaced) (MediaSourceCollection* self, MediaSource* media, GFile* old_file, GFile* new_file);
- void (*trashcan_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed);
- void (*import_roll_altered) (MediaSourceCollection* self);
- void (*offline_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed);
- void (*flagged_contents_altered) (MediaSourceCollection* self);
- TransactionController* (*get_transaction_controller) (MediaSourceCollection* self);
-};
-
-struct _VideoSourceCollection {
- MediaSourceCollection parent_instance;
- VideoSourceCollectionPrivate * priv;
-};
-
-struct _VideoSourceCollectionClass {
- MediaSourceCollectionClass parent_class;
-};
-
-struct _VideoSourceCollectionPrivate {
- TransactionController* _transaction_controller;
- GeeMultiMap* filesize_to_video;
-};
-
-typedef enum {
- VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN,
- VIDEO_SOURCE_COLLECTION_STATE_ONLINE,
- VIDEO_SOURCE_COLLECTION_STATE_OFFLINE,
- VIDEO_SOURCE_COLLECTION_STATE_TRASH
-} VideoSourceCollectionState;
-
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data);
-
-static gpointer video_import_params_parent_class = NULL;
-static gpointer video_reader_parent_class = NULL;
-static gpointer video_parent_class = NULL;
-static gboolean video_interpreter_state_changed;
-static gboolean video_interpreter_state_changed = FALSE;
-static gint video_current_state;
-static gint video_current_state = 0;
-static gboolean video_normal_regen_complete;
-static gboolean video_normal_regen_complete = FALSE;
-static gboolean video_offline_regen_complete;
-static gboolean video_offline_regen_complete = FALSE;
-extern VideoSourceCollection* video_global;
-VideoSourceCollection* video_global = NULL;
-static gpointer video_interpretable_results_parent_class = NULL;
-static FlaggableIface * video_flaggable_parent_iface = NULL;
-static MonitorableIface * video_monitorable_parent_iface = NULL;
-static DateableIface * video_dateable_parent_iface = NULL;
-static gpointer video_source_collection_parent_class = NULL;
-
-GQuark video_error_quark (void);
-gpointer video_import_params_ref (gpointer instance);
-void video_import_params_unref (gpointer instance);
-GParamSpec* param_spec_video_import_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_video_import_params (GValue* value,
- gpointer v_object);
-void value_take_video_import_params (GValue* value,
- gpointer v_object);
-gpointer value_get_video_import_params (const GValue* value);
-GType video_import_params_get_type (void) G_GNUC_CONST;
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-gpointer thumbnails_ref (gpointer instance);
-void thumbnails_unref (gpointer instance);
-GParamSpec* param_spec_thumbnails (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_thumbnails (GValue* value,
- gpointer v_object);
-void value_take_thumbnails (GValue* value,
- gpointer v_object);
-gpointer value_get_thumbnails (const GValue* value);
-GType thumbnails_get_type (void) G_GNUC_CONST;
-gpointer video_row_ref (gpointer instance);
-void video_row_unref (gpointer instance);
-GParamSpec* param_spec_video_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_video_row (GValue* value,
- gpointer v_object);
-void value_take_video_row (GValue* value,
- gpointer v_object);
-gpointer value_get_video_row (const GValue* value);
-GType video_row_get_type (void) G_GNUC_CONST;
-#define IMPORT_ID_INVALID ((gint64) 0)
-void import_id_init (ImportID *self,
- gint64 id);
-VideoRow* video_row_new (void);
-VideoRow* video_row_construct (GType object_type);
-VideoImportParams* video_import_params_new (GFile* file,
- ImportID* import_id,
- const gchar* md5,
- Thumbnails* thumbnails,
- time_t exposure_time_override);
-VideoImportParams* video_import_params_construct (GType object_type,
- GFile* file,
- ImportID* import_id,
- const gchar* md5,
- Thumbnails* thumbnails,
- time_t exposure_time_override);
-static void video_import_params_finalize (VideoImportParams * obj);
-gpointer video_reader_ref (gpointer instance);
-void video_reader_unref (gpointer instance);
-GParamSpec* param_spec_video_reader (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_video_reader (GValue* value,
- gpointer v_object);
-void value_take_video_reader (GValue* value,
- gpointer v_object);
-gpointer value_get_video_reader (const GValue* value);
-GType video_reader_get_type (void) G_GNUC_CONST;
-#define VIDEO_READER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_READER, VideoReaderPrivate))
-#define VIDEO_READER_UNKNOWN_CLIP_DURATION (-1.0)
-#define VIDEO_READER_THUMBNAILER_TIMEOUT ((guint) 10000)
-VideoReader* video_reader_new (GFile* file);
-VideoReader* video_reader_construct (GType object_type,
- GFile* file);
-gboolean video_reader_is_supported_video_file (GFile* file);
-gboolean video_reader_is_supported_video_filename (const gchar* filename);
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-gint utf8_ci_compare (void* a,
- void* b);
-GType import_result_get_type (void) G_GNUC_CONST;
-ImportResult video_reader_prepare_for_import (VideoImportParams* params);
-#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value"
-#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES
-GdkPixbuf* video_reader_read_preview_frame (VideoReader* self);
-gdouble video_reader_read_clip_duration (VideoReader* self,
- GError** error);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType video_metadata_get_type (void) G_GNUC_CONST;
-VideoMetadata* video_reader_read_metadata (VideoReader* self,
- GError** error);
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-MetadataDateTime* media_metadata_get_creation_date_time (MediaMetadata* self);
-time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
-gchar* media_metadata_get_title (MediaMetadata* self);
-gchar* media_metadata_get_comment (MediaMetadata* self);
-GDateTime* video_reader_get_timestamp (VideoReader* self);
-GType video_id_get_type (void) G_GNUC_CONST;
-VideoID* video_id_dup (const VideoID* self);
-void video_id_free (VideoID* self);
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-GType rating_get_type (void) G_GNUC_CONST;
-#define VIDEO_ID_INVALID ((gint64) -1)
-void video_id_init (VideoID *self,
- gint64 id);
-#define EVENT_ID_INVALID ((gint64) -1)
-void event_id_init (EventID *self,
- gint64 id);
-Thumbnails* thumbnails_new (void);
-Thumbnails* thumbnails_construct (GType object_type);
-void thumbnail_cache_generate_for_video_frame (Thumbnails* thumbnails,
- GdkPixbuf* preview_frame);
-static void video_reader_read_internal (VideoReader* self,
- GError** error);
-static gboolean video_reader_does_file_exist (VideoReader* self);
-static GDate* _g_date_dup (GDate* self);
-static void video_reader_set_timestamp (VideoReader* self,
- GDateTime* value);
-static gboolean video_reader_on_thumbnailer_timer (VideoReader* self);
-static GdkPixbuf* video_reader_thumbnailer (VideoReader* self,
- const gchar* video_file);
-GFile* app_dirs_get_thumbnailer_bin (void);
-static gboolean _video_reader_on_thumbnailer_timer_gsource_func (gpointer self);
-GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void);
-VideoMetadata* video_metadata_new (void);
-VideoMetadata* video_metadata_construct (GType object_type);
-void media_metadata_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error);
-static void video_reader_finalize (VideoReader * obj);
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType indexable_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-gpointer backing_file_state_ref (gpointer instance);
-void backing_file_state_unref (gpointer instance);
-GParamSpec* param_spec_backing_file_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_file_state (GValue* value,
- gpointer v_object);
-void value_take_backing_file_state (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_file_state (const GValue* value);
-GType backing_file_state_get_type (void) G_GNUC_CONST;
-GType photo_exception_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType flaggable_get_type (void) G_GNUC_CONST;
-GType monitorable_get_type (void) G_GNUC_CONST;
-GType dateable_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-#define VIDEO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO, VideoPrivate))
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-#define VIDEO_TYPENAME "video"
-#define VIDEO_FLAG_TRASH ((guint64) 0x0000000000000001)
-#define VIDEO_FLAG_OFFLINE ((guint64) 0x0000000000000002)
-#define VIDEO_FLAG_FLAGGED ((guint64) 0x0000000000000004)
-Video* video_new (VideoRow* row);
-Video* video_construct (GType object_type,
- VideoRow* row);
-VideoSource* video_source_construct (GType object_type);
-gchar* media_source_prep_title (const gchar* title);
-void data_source_rehydrate_backlinks (DataSource* self,
- SourceCollection* unlinked_from,
- const gchar* dehydrated);
-void video_init (ProgressMonitor monitor,
- void* monitor_target);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gint configuration_facade_get_video_interpreter_state_cookie (ConfigurationFacade* self);
-#define CONFIG_FACADE_NO_VIDEO_INTERPRETER_STATE -1
-static gboolean __lambda12_ (GstPluginFeature* f);
-static gboolean ___lambda12__gst_plugin_feature_filter (GstPluginFeature* feature,
- gpointer self);
-VideoSourceCollection* video_source_collection_new (void);
-VideoSourceCollection* video_source_collection_construct (GType object_type);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType video_table_get_type (void) G_GNUC_CONST;
-VideoTable* video_table_get_instance (void);
-GeeArrayList* video_table_get_all (VideoTable* self);
-static void video_set_is_interpretable (Video* self,
- gboolean is_interpretable);
-gboolean media_source_is_trashed (MediaSource* self);
-gboolean media_source_is_offline (MediaSource* self);
-void media_source_collection_add_many_to_trash (MediaSourceCollection* self,
- GeeCollection* sources);
-void media_source_collection_add_many_to_offline (MediaSourceCollection* self,
- GeeCollection* sources);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-static void _g_object_unref0_ (gpointer var);
-static inline void _g_list_free__g_object_unref0_ (GList* self);
-gboolean video_has_interpreter_state_changed (void);
-void video_notify_normal_thumbs_regenerated (void);
-static void video_save_interpreter_state (void);
-void video_notify_offline_thumbs_regenerated (void);
-void configuration_facade_set_video_interpreter_state_cookie (ConfigurationFacade* self,
- gint state_cookie);
-void video_terminate (void);
-GType exporter_get_type (void) G_GNUC_CONST;
-gpointer exporter_ui_ref (gpointer instance);
-void exporter_ui_unref (gpointer instance);
-GParamSpec* param_spec_exporter_ui (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_exporter_ui (GValue* value,
- gpointer v_object);
-void value_take_exporter_ui (GValue* value,
- gpointer v_object);
-gpointer value_get_exporter_ui (const GValue* value);
-GType exporter_ui_get_type (void) G_GNUC_CONST;
-ExporterUI* video_export_many (GeeCollection* videos,
- ExporterCompletionCallback done,
- void* done_target,
- gboolean export_in_place);
-void scaling_for_original (Scaling* result);
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-void export_format_parameters_unmodified (ExportFormatParameters* result);
-Exporter* exporter_new_for_temp_file (GeeCollection* to_export,
- Scaling* scaling,
- ExportFormatParameters* export_params);
-Exporter* exporter_construct_for_temp_file (GType object_type,
- GeeCollection* to_export,
- Scaling* scaling,
- ExportFormatParameters* export_params);
-ExporterUI* exporter_ui_new (Exporter* exporter);
-ExporterUI* exporter_ui_construct (GType object_type,
- Exporter* exporter);
-void exporter_ui_export (ExporterUI* self,
- ExporterCompletionCallback completion_callback,
- void* completion_callback_target);
-GFile* export_ui_choose_file (const gchar* current_file_basename);
-gchar* media_source_get_basename (MediaSource* self);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-void page_window_set_busy_cursor (PageWindow* self);
-void video_export (Video* self,
- GFile* dest_file,
- GError** error);
-void page_window_set_normal_cursor (PageWindow* self);
-GtkResponseType export_error_dialog (GFile* dest,
- gboolean photos_remaining);
-GFile* export_ui_choose_dir (const gchar* user_title);
-Exporter* exporter_new (GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-Exporter* exporter_construct (GType object_type,
- GeeCollection* to_export,
- GFile* dir,
- Scaling* scaling,
- ExportFormatParameters* export_params,
- gboolean auto_replace_all);
-static void video_real_commit_backlinks (DataSource* base,
- SourceCollection* sources,
- const gchar* backlinks);
-GQuark database_error_quark (void);
-void video_table_update_backlinks (VideoTable* self,
- VideoID* video_id,
- const gchar* backlinks,
- GError** error);
-void video_get_video_id (Video* self,
- VideoID* result);
-gchar* data_object_to_string (DataObject* self);
-static gboolean video_real_set_event_id (MediaSource* base,
- EventID* event_id);
-gboolean video_table_set_event (VideoTable* self,
- VideoID* video_id,
- EventID* event_id);
-gboolean video_is_duplicate (GFile* file,
- const gchar* full_md5);
-gboolean video_table_has_duplicate (VideoTable* self,
- GFile* file,
- const gchar* md5);
-ImportResult video_import_create (VideoImportParams* params,
- Video* * video);
-void video_table_add (VideoTable* self,
- VideoRow* video_row,
- VideoID* result,
- GError** error);
-gboolean video_id_is_invalid (VideoID *self);
-void video_import_failed (Video* video);
-void video_table_remove (VideoTable* self,
- VideoID* videoID,
- GError** error);
-void app_window_database_error (GError* err);
-static BackingFileState** video_real_get_backing_files_state (MediaSource* base,
- int* result_length1);
-BackingFileState* backing_file_state_new (const gchar* filepath,
- gint64 filesize,
- time_t modification_time,
- const gchar* md5);
-BackingFileState* backing_file_state_construct (GType object_type,
- const gchar* filepath,
- gint64 filesize,
- time_t modification_time,
- const gchar* md5);
-static GdkPixbuf* video_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-GdkPixbuf* thumbnail_cache_fetch (ThumbnailSource* source,
- gint scale,
- GError** error);
-static gchar* video_real_get_master_md5 (MediaSource* base);
-static GdkPixbuf* video_real_get_preview_pixbuf (MediaSource* base,
- Scaling* scaling,
- GError** error);
-GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
-GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self,
- GdkPixbuf* pixbuf,
- GdkInterpType interp,
- gboolean scale_up);
-static GdkPixbuf* video_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-GFile* media_source_get_file (MediaSource* self);
-static gchar* video_real_get_typename (DataSource* base);
-static gint64 video_real_get_instance_id (DataSource* base);
-static void video_real_get_import_id (MediaSource* base,
- ImportID* result);
-static PhotoFileFormat video_real_get_preferred_thumbnail_format (ThumbnailSource* base);
-PhotoFileFormat photo_file_format_get_system_default_format (void);
-static gchar* video_real_get_title (MediaSource* base);
-static void video_real_set_title (MediaSource* base,
- const gchar* title);
-void video_table_set_title (VideoTable* self,
- VideoID* video_id,
- const gchar* new_title,
- GError** error);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-static gchar* video_real_get_comment (MediaSource* base);
-static gboolean video_real_set_comment (MediaSource* base,
- const gchar* comment);
-void video_table_set_comment (VideoTable* self,
- VideoID* video_id,
- const gchar* new_comment,
- GError** error);
-static Rating video_real_get_rating (MediaSource* base);
-static void video_real_set_rating (MediaSource* base,
- Rating rating);
-gboolean rating_is_valid (Rating self);
-void video_table_set_rating (VideoTable* self,
- VideoID* video_id,
- Rating rating,
- GError** error);
-static void video_real_increase_rating (MediaSource* base);
-void media_source_set_rating (MediaSource* self,
- Rating rating);
-Rating rating_increase (Rating self);
-static void video_real_decrease_rating (MediaSource* base);
-Rating rating_decrease (Rating self);
-static gboolean video_real_is_trashed (MediaSource* base);
-gboolean video_is_flag_set (Video* self,
- guint64 flag);
-static gboolean video_real_is_offline (Monitorable* base);
-static void video_real_mark_offline (Monitorable* base);
-guint64 video_add_flags (Video* self,
- guint64 flags_to_add,
- Alteration* additional_alteration);
-static void video_real_mark_online (Monitorable* base);
-guint64 video_remove_flags (Video* self,
- guint64 flags_to_remove,
- Alteration* additional_alteration);
-gboolean video_get_is_interpretable (Video* self);
-gpointer video_interpretable_results_ref (gpointer instance);
-void video_interpretable_results_unref (gpointer instance);
-GParamSpec* video_param_spec_interpretable_results (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void video_value_set_interpretable_results (GValue* value,
- gpointer v_object);
-void video_value_take_interpretable_results (GValue* value,
- gpointer v_object);
-gpointer video_value_get_interpretable_results (const GValue* value);
-GType video_interpretable_results_get_type (void) G_GNUC_CONST;
-VideoInterpretableResults* video_check_is_interpretable (Video* self);
-void video_interpretable_results_foreground_finish (VideoInterpretableResults* self);
-static void video_real_trash (MediaSource* base);
-static void video_real_untrash (MediaSource* base);
-static gboolean video_real_is_flagged (Flaggable* base);
-static void video_real_mark_flagged (Flaggable* base);
-static void video_real_mark_unflagged (Flaggable* base);
-static void video_real_get_event_id (MediaSource* base,
- EventID* result);
-static gchar* video_real_to_string (DataObject* base);
-static time_t video_real_get_exposure_time (Dateable* base);
-static void video_real_set_exposure_time (Dateable* base,
- time_t time);
-void video_table_set_exposure_time (VideoTable* self,
- VideoID* video_id,
- time_t time,
- GError** error);
-void video_get_frame_dimensions (Video* self,
- Dimensions* result);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-static void video_real_get_dimensions (MediaSource* base,
- PhotoException disallowed_steps,
- Dimensions* result);
-static guint64 video_real_get_filesize (MediaSource* base);
-guint64 media_source_get_master_filesize (MediaSource* self);
-static guint64 video_real_get_master_filesize (MediaSource* base);
-static time_t video_real_get_timestamp (MediaSource* base);
-static void video_real_set_master_timestamp (Monitorable* base,
- GFileInfo* info);
-void video_table_set_timestamp (VideoTable* self,
- VideoID* video_id,
- time_t timestamp,
- GError** error);
-gchar* video_get_filename (Video* self);
-static GFile* video_real_get_file (MediaSource* base);
-static GFile* video_real_get_master_file (MediaSource* base);
-gdouble video_get_clip_duration (Video* self);
-void video_table_update_is_interpretable (VideoTable* self,
- VideoID* video_id,
- gboolean is_interpretable,
- GError** error);
-VideoInterpretableResults* video_interpretable_results_new (Video* video);
-VideoInterpretableResults* video_interpretable_results_construct (GType object_type,
- Video* video);
-static void video_real_destroy (DataSource* base);
-void thumbnail_cache_remove (ThumbnailSource* source);
-void data_source_destroy (DataSource* self);
-static gboolean video_real_internal_delete_backing (DataSource* base,
- GError** error);
-gboolean media_source_delete_original_file (MediaSource* self);
-gboolean data_source_internal_delete_backing (DataSource* self,
- GError** error);
-static void video_notify_flags_altered (Video* self,
- Alteration* additional_alteration);
-Alteration* alteration_compress (Alteration* self,
- Alteration* other);
-guint64 media_source_internal_add_flags (guint64 flags,
- guint64 selector);
-void video_table_set_flags (VideoTable* self,
- VideoID* video_id,
- guint64 flags,
- GError** error);
-guint64 media_source_internal_remove_flags (guint64 flags,
- guint64 selector);
-gboolean media_source_internal_is_flag_set (guint64 flags,
- guint64 selector);
-static void video_real_set_master_file (Monitorable* base,
- GFile* file);
-void video_table_set_filepath (VideoTable* self,
- VideoID* video_id,
- const gchar* filepath,
- GError** error);
-void media_source_notify_master_replaced (MediaSource* self,
- GFile* old_file,
- GFile* new_file);
-Alteration* alteration_new_from_list (const gchar* list);
-Alteration* alteration_construct_from_list (GType object_type,
- const gchar* list);
-VideoMetadata* video_read_metadata (Video* self,
- GError** error);
-void thumbnail_cache_replace (ThumbnailSource* source,
- ThumbnailCacheSize size,
- GdkPixbuf* replacement,
- GError** error);
-void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self);
-static void video_interpretable_results_finalize (VideoInterpretableResults * obj);
-static void video_finalize (GObject * obj);
-GType marker_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType database_source_holding_tank_get_type (void) G_GNUC_CONST;
-GType media_source_holding_tank_get_type (void) G_GNUC_CONST;
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-GType media_monitor_get_type (void) G_GNUC_CONST;
-gpointer transaction_controller_ref (gpointer instance);
-void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transaction_controller (GValue* value,
- gpointer v_object);
-void value_take_transaction_controller (GValue* value,
- gpointer v_object);
-gpointer value_get_transaction_controller (const GValue* value);
-GType transaction_controller_get_type (void) G_GNUC_CONST;
-#define VIDEO_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionPrivate))
-GType video_source_collection_state_get_type (void) G_GNUC_CONST;
-gint uint64_compare (guint64* a,
- guint64* b);
-static gint _uint64_compare_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-static guint64* _uint64_dup (guint64* self);
-gint64 video_source_collection_get_video_key (DataSource* source);
-static gint64 _video_source_collection_get_video_key_get_source_database_key (DataSource* source,
- gpointer self);
-MediaSourceCollection* media_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-MediaSourceHoldingTank* media_source_collection_get_trashcan (MediaSourceCollection* self);
-static void video_source_collection_on_trashcan_contents_altered (VideoSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void _video_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self);
-static void video_source_collection_on_offline_contents_altered (VideoSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void _video_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-static MediaSourceHoldingTank* video_source_collection_real_create_trashcan (MediaSourceCollection* base);
-gboolean video_source_collection_is_video_trashed (DataSource* source);
-static gboolean _video_source_collection_is_video_trashed_source_holding_tank_check_to_keep (DataSource* source,
- Alteration* alteration,
- gpointer self);
-MediaSourceHoldingTank* media_source_holding_tank_new (MediaSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-MediaSourceHoldingTank* media_source_holding_tank_construct (GType object_type,
- MediaSourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-static MediaSourceHoldingTank* video_source_collection_real_create_offline_bin (MediaSourceCollection* base);
-gboolean video_source_collection_is_video_offline (DataSource* source);
-static gboolean _video_source_collection_is_video_offline_source_holding_tank_check_to_keep (DataSource* source,
- Alteration* alteration,
- gpointer self);
-static MediaMonitor* video_source_collection_real_create_media_monitor (MediaSourceCollection* base,
- Workers* workers,
- GCancellable* cancellable);
-VideoMonitor* video_monitor_new (GCancellable* cancellable);
-VideoMonitor* video_monitor_construct (GType object_type,
- GCancellable* cancellable);
-GType video_monitor_get_type (void) G_GNUC_CONST;
-static gboolean video_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source);
-static gchar* video_source_collection_real_get_typename (MediaSourceCollection* base);
-static gboolean video_source_collection_real_is_file_recognized (MediaSourceCollection* base,
- GFile* file);
-static MediaSource* video_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base,
- gint64 numeric_id);
-Video* video_source_collection_fetch (VideoSourceCollection* self,
- VideoID* video_id);
-DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self,
- gint64 key);
-static GeeCollection* video_source_collection_real_get_event_source_ids (MediaSourceCollection* base,
- EventID* event_id);
-GeeArrayList* video_table_get_event_source_ids (VideoTable* self,
- EventID* event_id);
-Video* video_source_collection_get_state_by_file (VideoSourceCollection* self,
- GFile* file,
- VideoSourceCollectionState* state);
-MediaSource* media_source_collection_fetch_by_master_file (MediaSourceCollection* self,
- GFile* file);
-MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self,
- GFile* file);
-static void video_source_collection_compare_backing (VideoSourceCollection* self,
- Video* video,
- GFileInfo* info,
- GeeCollection* matching_master);
-guint64 media_source_get_filesize (MediaSource* self);
-time_t media_source_get_timestamp (MediaSource* self);
-void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self,
- GFileInfo* info,
- GeeCollection* matching_master);
-GeeCollection* data_collection_get_all (DataCollection* self);
-GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self);
-static void video_source_collection_real_notify_contents_altered (DataCollection* base,
- GeeIterable* added,
- GeeIterable* removed);
-void data_collection_notify_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed);
-void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollection* self,
- const gchar* basename,
- guint64 filesize,
- VideoID* result);
-GFile* media_source_get_master_file (MediaSource* self);
-gboolean video_source_collection_has_basename_filesize_duplicate (VideoSourceCollection* self,
- const gchar* basename,
- guint64 filesize);
-gboolean video_id_is_valid (VideoID *self);
-MediaSourceTransactionController* media_source_transaction_controller_new (MediaSourceCollection* sources);
-MediaSourceTransactionController* media_source_transaction_controller_construct (GType object_type,
- MediaSourceCollection* sources);
-GType media_source_transaction_controller_get_type (void) G_GNUC_CONST;
-static void video_source_collection_finalize (DataCollection * 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 gchar* VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS[4] = {"bdm", "bdmv", "cpi", "mpl"};
-
-GQuark
-video_error_quark (void)
-{
- return g_quark_from_static_string ("video_error-quark");
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1840 "VideoSupport.c"
-}
-
-
-static gpointer
-_thumbnails_ref0 (gpointer self)
-{
-#line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self ? thumbnails_ref (self) : NULL;
-#line 1849 "VideoSupport.c"
-}
-
-
-VideoImportParams*
-video_import_params_construct (GType object_type,
- GFile* file,
- ImportID* import_id,
- const gchar* md5,
- Thumbnails* thumbnails,
- time_t exposure_time_override)
-{
- VideoImportParams* self = NULL;
- GFile* _tmp0_;
- ImportID _tmp1_;
- gchar* _tmp2_;
- Thumbnails* _tmp3_;
-#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (import_id != NULL, NULL);
-#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail ((thumbnails == NULL) || IS_THUMBNAILS (thumbnails), NULL);
-#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = (VideoImportParams*) g_type_create_instance (object_type);
-#line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->file);
-#line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->file = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = *import_id;
-#line 31 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->import_id = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = g_strdup (md5);
-#line 32 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (self->md5);
-#line 32 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->md5 = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _thumbnails_ref0 (thumbnails);
-#line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _thumbnails_unref0 (self->thumbnails);
-#line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->thumbnails = _tmp3_;
-#line 34 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->exposure_time_override = exposure_time_override;
-#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self;
-#line 1900 "VideoSupport.c"
-}
-
-
-VideoImportParams*
-video_import_params_new (GFile* file,
- ImportID* import_id,
- const gchar* md5,
- Thumbnails* thumbnails,
- time_t exposure_time_override)
-{
-#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return video_import_params_construct (TYPE_VIDEO_IMPORT_PARAMS, file, import_id, md5, thumbnails, exposure_time_override);
-#line 1913 "VideoSupport.c"
-}
-
-
-static void
-value_video_import_params_init (GValue* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 1922 "VideoSupport.c"
-}
-
-
-static void
-value_video_import_params_free_value (GValue* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (value->data[0].v_pointer) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_import_params_unref (value->data[0].v_pointer);
-#line 1933 "VideoSupport.c"
- }
-}
-
-
-static void
-value_video_import_params_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (src_value->data[0].v_pointer) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dest_value->data[0].v_pointer = video_import_params_ref (src_value->data[0].v_pointer);
-#line 1946 "VideoSupport.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1950 "VideoSupport.c"
- }
-}
-
-
-static gpointer
-value_video_import_params_peek_pointer (const GValue* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return value->data[0].v_pointer;
-#line 1960 "VideoSupport.c"
-}
-
-
-static gchar*
-value_video_import_params_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (collect_values[0].v_pointer) {
-#line 1972 "VideoSupport.c"
- VideoImportParams * object;
- object = collect_values[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1979 "VideoSupport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.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 1983 "VideoSupport.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = video_import_params_ref (object);
-#line 1987 "VideoSupport.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 1991 "VideoSupport.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 1995 "VideoSupport.c"
-}
-
-
-static gchar*
-value_video_import_params_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- VideoImportParams ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!object_p) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2011 "VideoSupport.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!value->data[0].v_pointer) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = NULL;
-#line 2017 "VideoSupport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = value->data[0].v_pointer;
-#line 2021 "VideoSupport.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = video_import_params_ref (value->data[0].v_pointer);
-#line 2025 "VideoSupport.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 2029 "VideoSupport.c"
-}
-
-
-GParamSpec*
-param_spec_video_import_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecVideoImportParams* spec;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIDEO_IMPORT_PARAMS), NULL);
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return G_PARAM_SPEC (spec);
-#line 2049 "VideoSupport.c"
-}
-
-
-gpointer
-value_get_video_import_params (const GValue* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_IMPORT_PARAMS), NULL);
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return value->data[0].v_pointer;
-#line 2060 "VideoSupport.c"
-}
-
-
-void
-value_set_video_import_params (GValue* value,
- gpointer v_object)
-{
- VideoImportParams * old;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_IMPORT_PARAMS));
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- old = value->data[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (v_object) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_IMPORT_PARAMS));
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = v_object;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_import_params_ref (value->data[0].v_pointer);
-#line 2083 "VideoSupport.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 2087 "VideoSupport.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (old) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_import_params_unref (old);
-#line 2093 "VideoSupport.c"
- }
-}
-
-
-void
-value_take_video_import_params (GValue* value,
- gpointer v_object)
-{
- VideoImportParams * old;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_IMPORT_PARAMS));
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- old = value->data[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (v_object) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_IMPORT_PARAMS));
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = v_object;
-#line 2115 "VideoSupport.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 2119 "VideoSupport.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (old) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_import_params_unref (old);
-#line 2125 "VideoSupport.c"
- }
-}
-
-
-static void
-video_import_params_class_init (VideoImportParamsClass * klass)
-{
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_import_params_parent_class = g_type_class_peek_parent (klass);
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((VideoImportParamsClass *) klass)->finalize = video_import_params_finalize;
-#line 2137 "VideoSupport.c"
-}
-
-
-static void
-video_import_params_instance_init (VideoImportParams * self)
-{
- VideoRow* _tmp0_;
-#line 18 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- import_id_init (&self->import_id, IMPORT_ID_INVALID);
-#line 26 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_row_new ();
-#line 26 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->row = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->ref_count = 1;
-#line 2153 "VideoSupport.c"
-}
-
-
-static void
-video_import_params_finalize (VideoImportParams * obj)
-{
- VideoImportParams * self;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_IMPORT_PARAMS, VideoImportParams);
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_signal_handlers_destroy (self);
-#line 17 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->file);
-#line 19 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (self->md5);
-#line 23 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _thumbnails_unref0 (self->thumbnails);
-#line 26 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_row_unref0 (self->row);
-#line 2173 "VideoSupport.c"
-}
-
-
-GType
-video_import_params_get_type (void)
-{
- static volatile gsize video_import_params_type_id__volatile = 0;
- if (g_once_init_enter (&video_import_params_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_video_import_params_init, value_video_import_params_free_value, value_video_import_params_copy_value, value_video_import_params_peek_pointer, "p", value_video_import_params_collect_value, "p", value_video_import_params_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (VideoImportParamsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_import_params_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoImportParams), 0, (GInstanceInitFunc) video_import_params_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType video_import_params_type_id;
- video_import_params_type_id = g_type_register_fundamental (g_type_fundamental_next (), "VideoImportParams", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&video_import_params_type_id__volatile, video_import_params_type_id);
- }
- return video_import_params_type_id__volatile;
-}
-
-
-gpointer
-video_import_params_ref (gpointer instance)
-{
- VideoImportParams * self;
- self = instance;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return instance;
-#line 2202 "VideoSupport.c"
-}
-
-
-void
-video_import_params_unref (gpointer instance)
-{
- VideoImportParams * self;
- self = instance;
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- VIDEO_IMPORT_PARAMS_GET_CLASS (self)->finalize (self);
-#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2217 "VideoSupport.c"
- }
-}
-
-
-VideoReader*
-video_reader_construct (GType object_type,
- GFile* file)
-{
- VideoReader* self = NULL;
- GFile* _tmp0_;
-#line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = (VideoReader*) g_type_create_instance (object_type);
-#line 52 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 52 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->priv->file);
-#line 52 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->file = _tmp0_;
-#line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self;
-#line 2240 "VideoSupport.c"
-}
-
-
-VideoReader*
-video_reader_new (GFile* file)
-{
-#line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return video_reader_construct (TYPE_VIDEO_READER, file);
-#line 2249 "VideoSupport.c"
-}
-
-
-gboolean
-video_reader_is_supported_video_file (GFile* file)
-{
- gboolean result = FALSE;
- gchar* mime_type = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- guchar* _tmp2_;
- guchar* _tmp3_;
- gint _tmp3__length1;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gboolean _tmp6_ = FALSE;
- const gchar* _tmp7_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gboolean _tmp20_;
- GError * _inner_error_ = NULL;
-#line 55 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = g_file_get_basename (file);
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = g_new0 (guchar, 0);
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3__length1 = 0;
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = g_content_type_guess (_tmp1_, _tmp3_, (gsize) 0, NULL);
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_;
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = (g_free (_tmp3_), NULL);
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp1_);
-#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- mime_type = _tmp5_;
-#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = mime_type;
-#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_strcmp0 (_tmp7_, "audio/ogg") == 0) {
-#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = g_file_has_uri_scheme (file, "file");
-#line 2299 "VideoSupport.c"
- } else {
-#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = FALSE;
-#line 2303 "VideoSupport.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp6_) {
-#line 2307 "VideoSupport.c"
- {
- GFileInfo* info = NULL;
- GFileInfo* _tmp8_;
- gchar* content_type = NULL;
- GFileInfo* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_ = FALSE;
- const gchar* _tmp13_;
-#line 60 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 60 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- info = _tmp8_;
-#line 60 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2323 "VideoSupport.c"
- goto __catch503_g_error;
- }
-#line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = info;
-#line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = g_file_info_get_content_type (_tmp9_);
-#line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- content_type = _tmp11_;
-#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = content_type;
-#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp13_ != NULL) {
-#line 2338 "VideoSupport.c"
- const gchar* _tmp14_;
-#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = content_type;
-#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = g_str_has_prefix (_tmp14_, "video/");
-#line 2344 "VideoSupport.c"
- } else {
-#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = FALSE;
-#line 2348 "VideoSupport.c"
- }
-#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp12_) {
-#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = TRUE;
-#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (content_type);
-#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2362 "VideoSupport.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (content_type);
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 2368 "VideoSupport.c"
- }
- goto __finally503;
- __catch503_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp15_;
- const gchar* _tmp16_;
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _error_ = _inner_error_;
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 67 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = _error_;
-#line 67 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = _tmp15_->message;
-#line 67 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:67: Failed to query content type: %s", _tmp16_);
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (_error_);
-#line 2388 "VideoSupport.c"
- }
- __finally503:
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2393 "VideoSupport.c"
- gboolean _tmp17_ = FALSE;
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.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 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp17_;
-#line 2403 "VideoSupport.c"
- }
- }
-#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = g_file_get_basename (file);
-#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = _tmp18_;
-#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = video_reader_is_supported_video_filename (_tmp19_);
-#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp19_);
-#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp20_;
-#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2420 "VideoSupport.c"
-}
-
-
-gboolean
-video_reader_is_supported_video_filename (const gchar* filename)
-{
- gboolean result = FALSE;
- gchar* mime_type = NULL;
- guchar* _tmp0_;
- guchar* _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gboolean _tmp3_ = FALSE;
- const gchar* _tmp4_;
-#line 74 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (filename != NULL, FALSE);
-#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = g_new0 (guchar, 0);
-#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1__length1 = 0;
-#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = g_content_type_guess (filename, _tmp1_, (gsize) 0, NULL);
-#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- mime_type = _tmp2_;
-#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = (g_free (_tmp1_), NULL);
-#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = mime_type;
-#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_str_has_prefix (_tmp4_, "video/")) {
-#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = TRUE;
-#line 2457 "VideoSupport.c"
- } else {
- const gchar* _tmp5_;
-#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = mime_type;
-#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = g_str_has_suffix (_tmp5_, "mp4");
-#line 2464 "VideoSupport.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp3_) {
-#line 2468 "VideoSupport.c"
- gchar* extension = NULL;
- gchar* name = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- const gchar* _tmp8_;
-#line 79 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- extension = NULL;
-#line 80 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- name = NULL;
-#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- disassemble_filename (filename, &_tmp6_, &_tmp7_);
-#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (name);
-#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- name = _tmp6_;
-#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (extension);
-#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- extension = _tmp7_;
-#line 83 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = extension;
-#line 83 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp8_ == NULL) {
-#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = TRUE;
-#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (name);
-#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (extension);
-#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2502 "VideoSupport.c"
- }
- {
- const gchar** s_collection = NULL;
- gint s_collection_length1 = 0;
- gint _s_collection_size_ = 0;
- gint s_it = 0;
-#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- s_collection = VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS;
-#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- s_collection_length1 = G_N_ELEMENTS (VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS);
-#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- for (s_it = 0; s_it < G_N_ELEMENTS (VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS); s_it = s_it + 1) {
-#line 2515 "VideoSupport.c"
- gchar* _tmp9_;
- gchar* s = NULL;
-#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = g_strdup (s_collection[s_it]);
-#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- s = _tmp9_;
-#line 2522 "VideoSupport.c"
- {
- const gchar* _tmp10_;
- const gchar* _tmp11_;
-#line 87 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = s;
-#line 87 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = extension;
-#line 87 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (utf8_ci_compare (_tmp10_, _tmp11_) == 0) {
-#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = FALSE;
-#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (s);
-#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (name);
-#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (extension);
-#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2544 "VideoSupport.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (s);
-#line 2548 "VideoSupport.c"
- }
- }
- }
-#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = TRUE;
-#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (name);
-#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (extension);
-#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2562 "VideoSupport.c"
- } else {
- const gchar* _tmp12_;
-#line 93 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = mime_type;
-#line 93 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:93: Skipping %s, unsupported mime type %s", filename, _tmp12_);
-#line 94 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = FALSE;
-#line 94 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 94 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2575 "VideoSupport.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (mime_type);
-#line 2579 "VideoSupport.c"
-}
-
-
-ImportResult
-video_reader_prepare_for_import (VideoImportParams* params)
-{
- ImportResult result = 0;
- GFile* file = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFileInfo* info = NULL;
- GFileInfo* _tmp6_;
- GFile* _tmp7_;
- GTimeVal timestamp = {0};
- GFileInfo* _tmp11_;
- GTimeVal _tmp12_ = {0};
- const gchar* _tmp13_;
- time_t exposure_time = 0;
- time_t _tmp14_;
- gchar* title = NULL;
- gchar* _tmp15_;
- gchar* comment = NULL;
- gchar* _tmp16_;
- VideoReader* reader = NULL;
- GFile* _tmp17_;
- VideoReader* _tmp18_;
- gboolean is_interpretable = FALSE;
- gdouble clip_duration = 0.0;
- GdkPixbuf* preview_frame = NULL;
- VideoReader* _tmp19_;
- GdkPixbuf* _tmp20_;
- time_t _tmp45_;
- VideoRow* _tmp51_;
- VideoRow* _tmp52_;
- GFile* _tmp53_;
- gchar* _tmp54_;
- VideoRow* _tmp55_;
- GFileInfo* _tmp56_;
- VideoRow* _tmp57_;
- GTimeVal _tmp58_;
- glong _tmp59_;
- VideoRow* _tmp60_;
- GdkPixbuf* _tmp61_;
- gint _tmp62_;
- gint _tmp63_;
- VideoRow* _tmp64_;
- GdkPixbuf* _tmp65_;
- gint _tmp66_;
- gint _tmp67_;
- VideoRow* _tmp68_;
- gdouble _tmp69_;
- VideoRow* _tmp70_;
- gboolean _tmp71_;
- VideoRow* _tmp72_;
- time_t _tmp73_;
- VideoRow* _tmp74_;
- ImportID _tmp75_;
- VideoRow* _tmp76_;
- VideoRow* _tmp77_;
- const gchar* _tmp78_;
- gchar* _tmp79_;
- VideoRow* _tmp80_;
- VideoRow* _tmp81_;
- const gchar* _tmp82_;
- gchar* _tmp83_;
- VideoRow* _tmp84_;
- const gchar* _tmp85_;
- gchar* _tmp86_;
- VideoRow* _tmp87_;
- gchar* _tmp88_;
- VideoRow* _tmp89_;
- VideoRow* _tmp90_;
- Thumbnails* _tmp91_;
- GError * _inner_error_ = NULL;
-#line 98 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_IMPORT_PARAMS (params), 0);
-#line 102 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = params->file;
-#line 102 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 102 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- file = _tmp1_;
-#line 104 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- info = NULL;
-#line 2664 "VideoSupport.c"
- {
- GFileInfo* _tmp2_ = NULL;
- GFile* _tmp3_;
- GFileInfo* _tmp4_;
- GFileInfo* _tmp5_;
-#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = file;
-#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = g_file_query_info (_tmp3_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp4_;
-#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2678 "VideoSupport.c"
- goto __catch504_g_error;
- }
-#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp2_;
-#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = NULL;
-#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- info = _tmp5_;
-#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp2_);
-#line 2691 "VideoSupport.c"
- }
- goto __finally504;
- __catch504_g_error:
- {
- GError* err = NULL;
-#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = IMPORT_RESULT_FILE_ERROR;
-#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2711 "VideoSupport.c"
- }
- __finally504:
-#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 105 "/home/jens/Source/shotwell/src/VideoSupport.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 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 2726 "VideoSupport.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = info;
-#line 112 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_file_info_get_file_type (_tmp6_) != G_FILE_TYPE_REGULAR) {
-#line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = IMPORT_RESULT_NOT_A_FILE;
-#line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2740 "VideoSupport.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = file;
-#line 115 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!video_reader_is_supported_video_file (_tmp7_)) {
-#line 2746 "VideoSupport.c"
- GFile* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = file;
-#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = g_file_get_path (_tmp8_);
-#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _tmp9_;
-#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_message ("Not importing %s: file is marked as a video file but doesn't have a" "supported extension", _tmp10_);
-#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp10_);
-#line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2768 "VideoSupport.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = info;
-#line 122 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_file_info_get_modification_time (_tmp11_, &_tmp12_);
-#line 122 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- timestamp = _tmp12_;
-#line 125 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = params->md5;
-#line 125 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_assert (_tmp13_ != NULL, "params.md5 != null");
-#line 127 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = params->exposure_time_override;
-#line 127 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- exposure_time = _tmp14_;
-#line 128 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = g_strdup ("");
-#line 128 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- title = _tmp15_;
-#line 129 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = g_strdup ("");
-#line 129 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- comment = _tmp16_;
-#line 131 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = file;
-#line 131 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = video_reader_new (_tmp17_);
-#line 131 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- reader = _tmp18_;
-#line 132 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- is_interpretable = TRUE;
-#line 133 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- clip_duration = 0.0;
-#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = reader;
-#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = video_reader_read_preview_frame (_tmp19_);
-#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- preview_frame = _tmp20_;
-#line 2808 "VideoSupport.c"
- {
- gdouble _tmp21_ = 0.0;
- VideoReader* _tmp22_;
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = reader;
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = video_reader_read_clip_duration (_tmp22_, &_inner_error_);
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == VIDEO_ERROR) {
-#line 2820 "VideoSupport.c"
- goto __catch505_video_error;
- }
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (reader);
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (comment);
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (title);
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 136 "/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);
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 2841 "VideoSupport.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- clip_duration = _tmp21_;
-#line 2845 "VideoSupport.c"
- }
- goto __finally505;
- __catch505_video_error:
- {
- GError* err = NULL;
- GError* _tmp23_;
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 138 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = err;
-#line 138 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_error_matches (_tmp23_, VIDEO_ERROR, VIDEO_ERROR_FILE)) {
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = IMPORT_RESULT_FILE_ERROR;
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (reader);
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (comment);
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (title);
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 2878 "VideoSupport.c"
- } else {
- GError* _tmp24_;
-#line 140 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = err;
-#line 140 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_error_matches (_tmp24_, VIDEO_ERROR, VIDEO_ERROR_CONTENTS)) {
-#line 141 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- is_interpretable = FALSE;
-#line 142 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- clip_duration = 0.0;
-#line 2889 "VideoSupport.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_error ("VideoSupport.vala:144: can't prepare video for import: an unknown kind" \
-" of video error occurred");
-#line 2893 "VideoSupport.c"
- }
- }
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 2898 "VideoSupport.c"
- }
- __finally505:
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (reader);
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (comment);
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (title);
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.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 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 2921 "VideoSupport.c"
- }
- {
- VideoMetadata* metadata = NULL;
- VideoReader* _tmp25_;
- VideoMetadata* _tmp26_;
- MetadataDateTime* creation_date_time = NULL;
- VideoMetadata* _tmp27_;
- MetadataDateTime* _tmp28_;
- gboolean _tmp29_ = FALSE;
- MetadataDateTime* _tmp30_;
- gchar* video_title = NULL;
- VideoMetadata* _tmp33_;
- gchar* _tmp34_;
- gchar* video_comment = NULL;
- VideoMetadata* _tmp35_;
- gchar* _tmp36_;
- const gchar* _tmp37_;
- const gchar* _tmp40_;
-#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp25_ = reader;
-#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp26_ = video_reader_read_metadata (_tmp25_, &_inner_error_);
-#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- metadata = _tmp26_;
-#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2948 "VideoSupport.c"
- goto __catch506_g_error;
- }
-#line 150 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp27_ = metadata;
-#line 150 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp28_ = media_metadata_get_creation_date_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 150 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- creation_date_time = _tmp28_;
-#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp30_ = creation_date_time;
-#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp30_ != NULL) {
-#line 2961 "VideoSupport.c"
- MetadataDateTime* _tmp31_;
-#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp31_ = creation_date_time;
-#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp29_ = metadata_date_time_get_timestamp (_tmp31_) != ((time_t) 0);
-#line 2967 "VideoSupport.c"
- } else {
-#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp29_ = FALSE;
-#line 2971 "VideoSupport.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp29_) {
-#line 2975 "VideoSupport.c"
- MetadataDateTime* _tmp32_;
-#line 153 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp32_ = creation_date_time;
-#line 153 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- exposure_time = metadata_date_time_get_timestamp (_tmp32_);
-#line 2981 "VideoSupport.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp33_ = metadata;
-#line 155 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp34_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 155 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_title = _tmp34_;
-#line 156 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp35_ = metadata;
-#line 156 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp36_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 156 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_comment = _tmp36_;
-#line 157 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp37_ = video_title;
-#line 157 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp37_ != NULL) {
-#line 2999 "VideoSupport.c"
- const gchar* _tmp38_;
- gchar* _tmp39_;
-#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp38_ = video_title;
-#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp39_ = g_strdup (_tmp38_);
-#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (title);
-#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- title = _tmp39_;
-#line 3010 "VideoSupport.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp40_ = video_comment;
-#line 159 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp40_ != NULL) {
-#line 3016 "VideoSupport.c"
- const gchar* _tmp41_;
- gchar* _tmp42_;
-#line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp41_ = video_comment;
-#line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp42_ = g_strdup (_tmp41_);
-#line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (comment);
-#line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- comment = _tmp42_;
-#line 3027 "VideoSupport.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (video_comment);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (video_title);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _metadata_date_time_unref0 (creation_date_time);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _media_metadata_unref0 (metadata);
-#line 3037 "VideoSupport.c"
- }
- goto __finally506;
- __catch506_g_error:
- {
- GError* err = NULL;
- GError* _tmp43_;
- const gchar* _tmp44_;
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 162 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp43_ = err;
-#line 162 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp44_ = _tmp43_->message;
-#line 162 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_warning ("VideoSupport.vala:162: Unable to read video metadata: %s", _tmp44_);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 3057 "VideoSupport.c"
- }
- __finally506:
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (reader);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (comment);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (title);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.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 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 3080 "VideoSupport.c"
- }
-#line 165 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp45_ = exposure_time;
-#line 165 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp45_ == ((time_t) 0)) {
-#line 3086 "VideoSupport.c"
- gint64 _tmp46_ = 0LL;
- VideoReader* _tmp47_;
- GDateTime* _tmp48_;
-#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp47_ = reader;
-#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp48_ = _tmp47_->priv->_timestamp;
-#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp48_ != NULL) {
-#line 3096 "VideoSupport.c"
- VideoReader* _tmp49_;
- GDateTime* _tmp50_;
-#line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp49_ = reader;
-#line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp50_ = _tmp49_->priv->_timestamp;
-#line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp46_ = g_date_time_to_unix (_tmp50_);
-#line 3105 "VideoSupport.c"
- } else {
-#line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp46_ = (gint64) 0;
-#line 3109 "VideoSupport.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- exposure_time = (time_t) _tmp46_;
-#line 3113 "VideoSupport.c"
- }
-#line 171 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp51_ = params->row;
-#line 171 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_id_init (&_tmp51_->video_id, VIDEO_ID_INVALID);
-#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp52_ = params->row;
-#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp53_ = file;
-#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp54_ = g_file_get_path (_tmp53_);
-#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp52_->filepath);
-#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp52_->filepath = _tmp54_;
-#line 173 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp55_ = params->row;
-#line 173 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp56_ = info;
-#line 173 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp55_->filesize = g_file_info_get_size (_tmp56_);
-#line 174 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp57_ = params->row;
-#line 174 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp58_ = timestamp;
-#line 174 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp59_ = _tmp58_.tv_sec;
-#line 174 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp57_->timestamp = (time_t) _tmp59_;
-#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp60_ = params->row;
-#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp61_ = preview_frame;
-#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp62_ = gdk_pixbuf_get_width (_tmp61_);
-#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp63_ = _tmp62_;
-#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp60_->width = _tmp63_;
-#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp64_ = params->row;
-#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp65_ = preview_frame;
-#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp66_ = gdk_pixbuf_get_height (_tmp65_);
-#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp67_ = _tmp66_;
-#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp64_->height = _tmp67_;
-#line 177 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp68_ = params->row;
-#line 177 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp69_ = clip_duration;
-#line 177 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp68_->clip_duration = _tmp69_;
-#line 178 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp70_ = params->row;
-#line 178 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp71_ = is_interpretable;
-#line 178 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp70_->is_interpretable = _tmp71_;
-#line 179 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp72_ = params->row;
-#line 179 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp73_ = exposure_time;
-#line 179 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp72_->exposure_time = _tmp73_;
-#line 180 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp74_ = params->row;
-#line 180 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp75_ = params->import_id;
-#line 180 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp74_->import_id = _tmp75_;
-#line 181 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp76_ = params->row;
-#line 181 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- event_id_init (&_tmp76_->event_id, EVENT_ID_INVALID);
-#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp77_ = params->row;
-#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp78_ = params->md5;
-#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp79_ = g_strdup (_tmp78_);
-#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp77_->md5);
-#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp77_->md5 = _tmp79_;
-#line 183 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp80_ = params->row;
-#line 183 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp80_->time_created = (time_t) 0;
-#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp81_ = params->row;
-#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp82_ = title;
-#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp83_ = g_strdup (_tmp82_);
-#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp81_->title);
-#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp81_->title = _tmp83_;
-#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp84_ = params->row;
-#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp85_ = comment;
-#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp86_ = g_strdup (_tmp85_);
-#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp84_->comment);
-#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp84_->comment = _tmp86_;
-#line 186 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp87_ = params->row;
-#line 186 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp88_ = g_strdup ("");
-#line 186 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp87_->backlinks);
-#line 186 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp87_->backlinks = _tmp88_;
-#line 187 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp89_ = params->row;
-#line 187 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp89_->time_reimported = (time_t) 0;
-#line 188 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp90_ = params->row;
-#line 188 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp90_->flags = (guint64) 0;
-#line 190 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp91_ = params->thumbnails;
-#line 190 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp91_ != NULL) {
-#line 3245 "VideoSupport.c"
- Thumbnails* _tmp92_;
- Thumbnails* _tmp93_;
- GdkPixbuf* _tmp94_;
-#line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp92_ = thumbnails_new ();
-#line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _thumbnails_unref0 (params->thumbnails);
-#line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- params->thumbnails = _tmp92_;
-#line 192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp93_ = params->thumbnails;
-#line 192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp94_ = preview_frame;
-#line 192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- thumbnail_cache_generate_for_video_frame (_tmp93_, _tmp94_);
-#line 3261 "VideoSupport.c"
- }
-#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = IMPORT_RESULT_SUCCESS;
-#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (reader);
-#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (comment);
-#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (title);
-#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (file);
-#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3279 "VideoSupport.c"
-}
-
-
-static GDate*
-_g_date_dup (GDate* self)
-{
- GDate* dup;
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dup = g_new0 (GDate, 1);
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- memcpy (dup, self, sizeof (GDate));
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return dup;
-#line 3293 "VideoSupport.c"
-}
-
-
-static gpointer
-__g_date_dup0 (gpointer self)
-{
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self ? _g_date_dup (self) : NULL;
-#line 3302 "VideoSupport.c"
-}
-
-
-static void
-video_reader_read_internal (VideoReader* self,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 201 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO_READER (self));
-#line 202 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!video_reader_does_file_exist (self)) {
-#line 3315 "VideoSupport.c"
- GFile* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GError* _tmp5_;
- GError* _tmp6_;
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->file;
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = g_file_get_path (_tmp0_);
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = g_strdup_printf ("video file '%s' does not exist or is inaccessible", _tmp2_);
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_;
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = g_error_new_literal (VIDEO_ERROR, VIDEO_ERROR_FILE, _tmp4_);
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = _tmp5_;
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp4_);
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp2_);
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = _tmp6_;
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == VIDEO_ERROR) {
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 3349 "VideoSupport.c"
- } else {
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.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 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 3357 "VideoSupport.c"
- }
- }
- {
- GstDiscoverer* d = NULL;
- GstDiscoverer* _tmp7_;
- GstDiscovererInfo* info = NULL;
- GstDiscoverer* _tmp8_;
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GstDiscovererInfo* _tmp12_;
- GstDiscovererInfo* _tmp13_;
- GstDiscovererInfo* _tmp14_;
- GDate* video_date = NULL;
- gboolean _tmp15_ = FALSE;
- GstDiscovererInfo* _tmp16_;
- GstTagList* _tmp17_;
-#line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = gst_discoverer_new ((GstClockTime) (GST_SECOND * 5), &_inner_error_);
-#line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- d = _tmp7_;
-#line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3381 "VideoSupport.c"
- goto __catch507_g_error;
- }
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = d;
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = self->priv->file;
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = g_file_get_uri (_tmp9_);
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = _tmp10_;
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = gst_discoverer_discover_uri (_tmp8_, _tmp11_, &_inner_error_);
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = _tmp12_;
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp11_);
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- info = _tmp13_;
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (d);
-#line 3404 "VideoSupport.c"
- goto __catch507_g_error;
- }
-#line 210 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = info;
-#line 210 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->clip_duration = ((gdouble) gst_discoverer_info_get_duration (_tmp14_)) / 1000000000.0;
-#line 215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_date = NULL;
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = info;
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = gst_discoverer_info_get_tags (_tmp16_);
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp17_ != NULL) {
-#line 3419 "VideoSupport.c"
- GstDiscovererInfo* _tmp18_;
- GstTagList* _tmp19_;
- GDate _tmp20_ = {0};
- gboolean _tmp21_;
- GDate _tmp22_;
- GDate* _tmp23_;
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = info;
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = gst_discoverer_info_get_tags (_tmp18_);
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = gst_tag_list_get_date (_tmp19_, GST_TAG_DATE, &_tmp20_);
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (video_date);
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = _tmp20_;
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = __g_date_dup0 (&_tmp22_);
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_date = _tmp23_;
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = _tmp21_;
-#line 3442 "VideoSupport.c"
- } else {
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = FALSE;
-#line 3446 "VideoSupport.c"
- }
-#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp15_) {
-#line 3450 "VideoSupport.c"
- GDate* _tmp24_;
-#line 218 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = video_date;
-#line 218 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp24_ != NULL) {
-#line 3456 "VideoSupport.c"
- GDate* _tmp25_;
- GDate* _tmp26_;
- GDate* _tmp27_;
- GDateTime* _tmp28_;
- GDateTime* _tmp29_;
-#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp25_ = video_date;
-#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp26_ = video_date;
-#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp27_ = video_date;
-#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp28_ = g_date_time_new_local ((gint) g_date_get_year (_tmp25_), (gint) g_date_get_month (_tmp26_), (gint) g_date_get_day (_tmp27_), 0, 0, (gdouble) 0);
-#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp29_ = _tmp28_;
-#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_reader_set_timestamp (self, _tmp29_);
-#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_date_time_unref0 (_tmp29_);
-#line 3476 "VideoSupport.c"
- }
- }
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (video_date);
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (info);
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (d);
-#line 3485 "VideoSupport.c"
- }
- goto __finally507;
- __catch507_g_error:
- {
- GError* e = NULL;
- GError* _tmp30_;
- const gchar* _tmp31_;
- GError* _tmp32_;
- const gchar* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- GError* _tmp36_;
- GError* _tmp37_;
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 224 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp30_ = e;
-#line 224 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp31_ = _tmp30_->message;
-#line 224 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:224: Video read error: %s", _tmp31_);
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp32_ = e;
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp33_ = _tmp32_->message;
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp34_ = g_strdup_printf ("GStreamer couldn't extract clip information: %s", _tmp33_);
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp35_ = _tmp34_;
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp36_ = g_error_new_literal (VIDEO_ERROR, VIDEO_ERROR_CONTENTS, _tmp35_);
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp37_ = _tmp36_;
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp35_);
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = _tmp37_;
-#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 3527 "VideoSupport.c"
- goto __finally507;
- }
- __finally507:
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == VIDEO_ERROR) {
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 3539 "VideoSupport.c"
- } else {
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.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 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 3547 "VideoSupport.c"
- }
- }
-}
-
-
-static gboolean
-video_reader_on_thumbnailer_timer (VideoReader* self)
-{
- gboolean result = FALSE;
- GPid _tmp0_;
-#line 231 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_READER (self), FALSE);
-#line 232 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:232: Thumbnailer timer called");
-#line 233 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->thumbnailer_pid;
-#line 233 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_ != ((GPid) 0)) {
-#line 3566 "VideoSupport.c"
- GPid _tmp1_;
- GPid _tmp2_;
-#line 234 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->thumbnailer_pid;
-#line 234 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:234: Killing thumbnailer process: %d", (gint) _tmp1_);
-#line 235 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->thumbnailer_pid;
-#line 235 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- kill ((pid_t) _tmp2_, SIGKILL);
-#line 3577 "VideoSupport.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = FALSE;
-#line 237 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3583 "VideoSupport.c"
-}
-
-
-static gboolean
-_video_reader_on_thumbnailer_timer_gsource_func (gpointer self)
-{
- gboolean result;
- result = video_reader_on_thumbnailer_timer ((VideoReader*) self);
-#line 260 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3594 "VideoSupport.c"
-}
-
-
-static GdkPixbuf*
-video_reader_thumbnailer (VideoReader* self,
- const gchar* video_file)
-{
- GdkPixbuf* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar** argv = NULL;
- GFile* _tmp4_;
- GFile* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar** _tmp8_;
- gchar** _tmp9_;
- gint _tmp9__length1;
- gint argv_length1;
- gint _argv_size_;
- gint child_stdout = 0;
- GdkPixbuf* buf = NULL;
- gint child_status = 0;
- gint ret_waitpid = 0;
- GPid _tmp26_;
- gint _tmp27_ = 0;
- pid_t _tmp28_;
- gint _tmp29_;
- GPid _tmp33_;
- GError * _inner_error_ = NULL;
-#line 242 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_READER (self), NULL);
-#line 242 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (video_file != NULL, NULL);
-#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = app_dirs_get_thumbnailer_bin ();
-#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:244: Launching thumbnailer process: %s", _tmp3_);
-#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp3_);
-#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp1_);
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = app_dirs_get_thumbnailer_bin ();
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_;
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = g_file_get_path (_tmp5_);
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = g_strdup (video_file);
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = g_new0 (gchar*, 2 + 1);
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_[0] = _tmp6_;
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_[1] = _tmp7_;
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = _tmp8_;
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9__length1 = 2;
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp5_);
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- argv = _tmp9_;
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- argv_length1 = _tmp9__length1;
-#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _argv_size_ = argv_length1;
-#line 3671 "VideoSupport.c"
- {
- gchar** _tmp10_;
- gint _tmp10__length1;
- GPid _tmp11_ = 0;
- gint _tmp12_ = 0;
- GPid _tmp13_;
-#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = argv;
-#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10__length1 = argv_length1;
-#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_spawn_async_with_pipes (NULL, _tmp10_, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, &_tmp11_, NULL, &_tmp12_, NULL, &_inner_error_);
-#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->thumbnailer_pid = _tmp11_;
-#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- child_stdout = _tmp12_;
-#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3690 "VideoSupport.c"
- goto __catch508_g_error;
- }
-#line 251 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = self->priv->thumbnailer_pid;
-#line 251 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:251: Spawned thumbnailer, child pid: %d", (gint) _tmp13_);
-#line 3697 "VideoSupport.c"
- }
- goto __finally508;
- __catch508_g_error:
- {
- GError* e = NULL;
- GError* _tmp14_;
- const gchar* _tmp15_;
- GPid _tmp16_;
-#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 253 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = e;
-#line 253 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = _tmp14_->message;
-#line 253 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:253: Error spawning process: %s", _tmp15_);
-#line 254 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = self->priv->thumbnailer_pid;
-#line 254 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp16_ != ((GPid) 0)) {
-#line 3720 "VideoSupport.c"
- GPid _tmp17_;
-#line 255 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = self->priv->thumbnailer_pid;
-#line 255 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_spawn_close_pid (_tmp17_);
-#line 3726 "VideoSupport.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = NULL;
-#line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3736 "VideoSupport.c"
- }
- __finally508:
-#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 247 "/home/jens/Source/shotwell/src/VideoSupport.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 247 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 3749 "VideoSupport.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_timeout_add_full (G_PRIORITY_DEFAULT, VIDEO_READER_THUMBNAILER_TIMEOUT, _video_reader_on_thumbnailer_timer_gsource_func, video_reader_ref (self), video_reader_unref);
-#line 263 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- buf = NULL;
-#line 3755 "VideoSupport.c"
- {
- GUnixInputStream* unix_input = NULL;
- gint _tmp18_;
- GUnixInputStream* _tmp19_;
- GdkPixbuf* _tmp20_ = NULL;
- GUnixInputStream* _tmp21_;
- GdkPixbuf* _tmp22_;
- GdkPixbuf* _tmp23_;
-#line 265 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = child_stdout;
-#line 265 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = (GUnixInputStream*) g_unix_input_stream_new (_tmp18_, TRUE);
-#line 265 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- unix_input = _tmp19_;
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = unix_input;
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_);
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = _tmp22_;
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (unix_input);
-#line 3780 "VideoSupport.c"
- goto __catch509_g_error;
- }
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = _tmp20_;
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = NULL;
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (buf);
-#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- buf = _tmp23_;
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp20_);
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (unix_input);
-#line 3795 "VideoSupport.c"
- }
- goto __finally509;
- __catch509_g_error:
- {
- GError* e = NULL;
- GError* _tmp24_;
- const gchar* _tmp25_;
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 268 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = e;
-#line 268 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp25_ = _tmp24_->message;
-#line 268 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:268: Error creating pixbuf: %s", _tmp25_);
-#line 269 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (buf);
-#line 269 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- buf = NULL;
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 3819 "VideoSupport.c"
- }
- __finally509:
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (buf);
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.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 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 3834 "VideoSupport.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- child_status = 0;
-#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp26_ = self->priv->thumbnailer_pid;
-#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp28_ = waitpid ((pid_t) _tmp26_, &_tmp27_, 0);
-#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- child_status = _tmp27_;
-#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ret_waitpid = (gint) _tmp28_;
-#line 275 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp29_ = ret_waitpid;
-#line 275 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp29_ < 0) {
-#line 3850 "VideoSupport.c"
- gint _tmp30_;
-#line 276 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp30_ = ret_waitpid;
-#line 276 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:276: waitpid returned error code: %d", _tmp30_);
-#line 277 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (buf);
-#line 277 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- buf = NULL;
-#line 3860 "VideoSupport.c"
- } else {
- gint _tmp31_;
-#line 278 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp31_ = child_status;
-#line 278 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (0 != WEXITSTATUS (_tmp31_)) {
-#line 3867 "VideoSupport.c"
- gint _tmp32_;
-#line 279 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp32_ = child_status;
-#line 279 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:279: Thumbnailer exited with error code: %d", WEXITSTATUS (_tmp32_));
-#line 281 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (buf);
-#line 281 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- buf = NULL;
-#line 3877 "VideoSupport.c"
- }
- }
-#line 284 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp33_ = self->priv->thumbnailer_pid;
-#line 284 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_spawn_close_pid (_tmp33_);
-#line 285 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->thumbnailer_pid = (GPid) 0;
-#line 286 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = buf;
-#line 286 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 286 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3892 "VideoSupport.c"
-}
-
-
-static gboolean
-video_reader_does_file_exist (VideoReader* self)
-{
- gboolean result = FALSE;
- GFile* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gboolean _tmp3_;
-#line 289 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_READER (self), FALSE);
-#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->file;
-#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = g_file_get_path (_tmp0_);
-#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = g_file_test (_tmp2_, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR);
-#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp2_);
-#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3920 "VideoSupport.c"
-}
-
-
-GdkPixbuf*
-video_reader_read_preview_frame (VideoReader* self)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GFile* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GdkPixbuf* _tmp6_;
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
-#line 293 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_READER (self), NULL);
-#line 294 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->preview_frame;
-#line 294 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_ != NULL) {
-#line 3942 "VideoSupport.c"
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
-#line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->preview_frame;
-#line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3953 "VideoSupport.c"
- }
-#line 297 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!video_reader_does_file_exist (self)) {
-#line 298 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = NULL;
-#line 298 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3961 "VideoSupport.c"
- }
-#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->file;
-#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = g_file_get_path (_tmp3_);
-#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_;
-#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = video_reader_thumbnailer (self, _tmp5_);
-#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->priv->preview_frame);
-#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->preview_frame = _tmp6_;
-#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp5_);
-#line 302 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = self->priv->preview_frame;
-#line 302 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (NULL == _tmp7_) {
-#line 3981 "VideoSupport.c"
- GdkPixbuf* _tmp8_;
-#line 303 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = resources_get_noninterpretable_badge_pixbuf ();
-#line 303 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->priv->preview_frame);
-#line 303 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->preview_frame = _tmp8_;
-#line 3989 "VideoSupport.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = self->priv->preview_frame;
-#line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp10_;
-#line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 3999 "VideoSupport.c"
-}
-
-
-gdouble
-video_reader_read_clip_duration (VideoReader* self,
- GError** error)
-{
- gdouble result = 0.0;
- gdouble _tmp0_;
- gdouble _tmp3_;
- GError * _inner_error_ = NULL;
-#line 308 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_READER (self), 0.0);
-#line 309 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->clip_duration;
-#line 309 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_ == VIDEO_READER_UNKNOWN_CLIP_DURATION) {
-#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_reader_read_internal (self, &_inner_error_);
-#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == VIDEO_ERROR) {
-#line 4023 "VideoSupport.c"
- gdouble _tmp1_ = 0.0;
-#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp1_;
-#line 4029 "VideoSupport.c"
- } else {
- gdouble _tmp2_ = 0.0;
-#line 310 "/home/jens/Source/shotwell/src/VideoSupport.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 310 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp2_;
-#line 4038 "VideoSupport.c"
- }
- }
- }
-#line 312 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->clip_duration;
-#line 312 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 312 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 4048 "VideoSupport.c"
-}
-
-
-VideoMetadata*
-video_reader_read_metadata (VideoReader* self,
- GError** error)
-{
- VideoMetadata* result = NULL;
- VideoMetadata* metadata = NULL;
- VideoMetadata* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 315 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_READER (self), NULL);
-#line 316 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_metadata_new ();
-#line 316 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- metadata = _tmp0_;
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->file;
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = g_file_new_for_path (_tmp3_);
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_;
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata), _tmp5_, &_inner_error_);
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp5_);
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp3_);
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _media_metadata_unref0 (metadata);
-#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 4095 "VideoSupport.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = metadata;
-#line 319 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 4101 "VideoSupport.c"
-}
-
-
-GDateTime*
-video_reader_get_timestamp (VideoReader* self)
-{
- GDateTime* result;
- GDateTime* _tmp0_;
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_READER (self), NULL);
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->_timestamp;
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp0_;
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 4118 "VideoSupport.c"
-}
-
-
-static gpointer
-_g_date_time_ref0 (gpointer self)
-{
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self ? g_date_time_ref (self) : NULL;
-#line 4127 "VideoSupport.c"
-}
-
-
-static void
-video_reader_set_timestamp (VideoReader* self,
- GDateTime* value)
-{
- GDateTime* _tmp0_;
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO_READER (self));
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _g_date_time_ref0 (value);
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_date_time_unref0 (self->priv->_timestamp);
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->_timestamp = _tmp0_;
-#line 4144 "VideoSupport.c"
-}
-
-
-static void
-value_video_reader_init (GValue* value)
-{
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 4153 "VideoSupport.c"
-}
-
-
-static void
-value_video_reader_free_value (GValue* value)
-{
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (value->data[0].v_pointer) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_reader_unref (value->data[0].v_pointer);
-#line 4164 "VideoSupport.c"
- }
-}
-
-
-static void
-value_video_reader_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (src_value->data[0].v_pointer) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dest_value->data[0].v_pointer = video_reader_ref (src_value->data[0].v_pointer);
-#line 4177 "VideoSupport.c"
- } else {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4181 "VideoSupport.c"
- }
-}
-
-
-static gpointer
-value_video_reader_peek_pointer (const GValue* value)
-{
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return value->data[0].v_pointer;
-#line 4191 "VideoSupport.c"
-}
-
-
-static gchar*
-value_video_reader_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (collect_values[0].v_pointer) {
-#line 4203 "VideoSupport.c"
- VideoReader * object;
- object = collect_values[0].v_pointer;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4210 "VideoSupport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.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 4214 "VideoSupport.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = video_reader_ref (object);
-#line 4218 "VideoSupport.c"
- } else {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 4222 "VideoSupport.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 4226 "VideoSupport.c"
-}
-
-
-static gchar*
-value_video_reader_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- VideoReader ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!object_p) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4242 "VideoSupport.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!value->data[0].v_pointer) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = NULL;
-#line 4248 "VideoSupport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = value->data[0].v_pointer;
-#line 4252 "VideoSupport.c"
- } else {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = video_reader_ref (value->data[0].v_pointer);
-#line 4256 "VideoSupport.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 4260 "VideoSupport.c"
-}
-
-
-GParamSpec*
-param_spec_video_reader (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecVideoReader* spec;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIDEO_READER), NULL);
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return G_PARAM_SPEC (spec);
-#line 4280 "VideoSupport.c"
-}
-
-
-gpointer
-value_get_video_reader (const GValue* value)
-{
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_READER), NULL);
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return value->data[0].v_pointer;
-#line 4291 "VideoSupport.c"
-}
-
-
-void
-value_set_video_reader (GValue* value,
- gpointer v_object)
-{
- VideoReader * old;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_READER));
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- old = value->data[0].v_pointer;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (v_object) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_READER));
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = v_object;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_reader_ref (value->data[0].v_pointer);
-#line 4314 "VideoSupport.c"
- } else {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 4318 "VideoSupport.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (old) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_reader_unref (old);
-#line 4324 "VideoSupport.c"
- }
-}
-
-
-void
-value_take_video_reader (GValue* value,
- gpointer v_object)
-{
- VideoReader * old;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_READER));
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- old = value->data[0].v_pointer;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (v_object) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_READER));
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = v_object;
-#line 4346 "VideoSupport.c"
- } else {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 4350 "VideoSupport.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (old) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_reader_unref (old);
-#line 4356 "VideoSupport.c"
- }
-}
-
-
-static void
-video_reader_class_init (VideoReaderClass * klass)
-{
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_reader_parent_class = g_type_class_peek_parent (klass);
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((VideoReaderClass *) klass)->finalize = video_reader_finalize;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_type_class_add_private (klass, sizeof (VideoReaderPrivate));
-#line 4370 "VideoSupport.c"
-}
-
-
-static void
-video_reader_instance_init (VideoReader * self)
-{
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv = VIDEO_READER_GET_PRIVATE (self);
-#line 45 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->clip_duration = VIDEO_READER_UNKNOWN_CLIP_DURATION;
-#line 46 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->preview_frame = NULL;
-#line 47 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->file = NULL;
-#line 48 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->thumbnailer_pid = (GPid) 0;
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->_timestamp = NULL;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->ref_count = 1;
-#line 4391 "VideoSupport.c"
-}
-
-
-static void
-video_reader_finalize (VideoReader * obj)
-{
- VideoReader * self;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_READER, VideoReader);
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_signal_handlers_destroy (self);
-#line 46 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->priv->preview_frame);
-#line 47 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->priv->file);
-#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_date_time_unref0 (self->priv->_timestamp);
-#line 4409 "VideoSupport.c"
-}
-
-
-GType
-video_reader_get_type (void)
-{
- static volatile gsize video_reader_type_id__volatile = 0;
- if (g_once_init_enter (&video_reader_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_video_reader_init, value_video_reader_free_value, value_video_reader_copy_value, value_video_reader_peek_pointer, "p", value_video_reader_collect_value, "p", value_video_reader_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (VideoReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoReader), 0, (GInstanceInitFunc) video_reader_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType video_reader_type_id;
- video_reader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "VideoReader", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&video_reader_type_id__volatile, video_reader_type_id);
- }
- return video_reader_type_id__volatile;
-}
-
-
-gpointer
-video_reader_ref (gpointer instance)
-{
- VideoReader * self;
- self = instance;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return instance;
-#line 4438 "VideoSupport.c"
-}
-
-
-void
-video_reader_unref (gpointer instance)
-{
- VideoReader * self;
- self = instance;
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- VIDEO_READER_GET_CLASS (self)->finalize (self);
-#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4453 "VideoSupport.c"
- }
-}
-
-
-static gpointer
-_video_row_ref0 (gpointer self)
-{
-#line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self ? video_row_ref (self) : NULL;
-#line 4463 "VideoSupport.c"
-}
-
-
-Video*
-video_construct (GType object_type,
- VideoRow* row)
-{
- Video * self = NULL;
- VideoRow* _tmp0_;
- VideoRow* _tmp1_;
- VideoRow* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gboolean _tmp5_ = FALSE;
- guint64 _tmp6_;
-#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_ROW (row), NULL);
-#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = (Video*) video_source_construct (object_type);
-#line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _video_row_ref0 (row);
-#line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_row_unref0 (self->priv->backing_row);
-#line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->backing_row = _tmp0_;
-#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->backing_row;
-#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_->title;
-#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = media_source_prep_title (_tmp3_);
-#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp1_->title);
-#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_->title = _tmp4_;
-#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = row->flags;
-#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if ((_tmp6_ & VIDEO_FLAG_TRASH) != ((guint64) 0)) {
-#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = TRUE;
-#line 4507 "VideoSupport.c"
- } else {
- guint64 _tmp7_;
-#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = row->flags;
-#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = (_tmp7_ & VIDEO_FLAG_OFFLINE) != ((guint64) 0);
-#line 4514 "VideoSupport.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp5_) {
-#line 4518 "VideoSupport.c"
- VideoSourceCollection* _tmp8_;
- const gchar* _tmp9_;
-#line 373 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = video_global;
-#line 373 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = row->backlinks;
-#line 373 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp9_);
-#line 4527 "VideoSupport.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self;
-#line 4531 "VideoSupport.c"
-}
-
-
-Video*
-video_new (VideoRow* row)
-{
-#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return video_construct (TYPE_VIDEO, row);
-#line 4540 "VideoSupport.c"
-}
-
-
-static gboolean
-__lambda12_ (GstPluginFeature* f)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
-#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (GST_IS_PLUGIN_FEATURE (f), FALSE);
-#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = gst_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (f, gst_object_get_type (), GstObject));
-#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = g_str_has_prefix (_tmp1_, "vaapi");
-#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp1_);
-#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 4565 "VideoSupport.c"
-}
-
-
-static gboolean
-___lambda12__gst_plugin_feature_filter (GstPluginFeature* feature,
- gpointer self)
-{
- gboolean result;
- result = __lambda12_ (feature);
-#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 4577 "VideoSupport.c"
-}
-
-
-static void
-_g_object_unref0_ (gpointer var)
-{
-#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- (var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
-#line 4586 "VideoSupport.c"
-}
-
-
-static inline void
-_g_list_free__g_object_unref0_ (GList* self)
-{
-#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
-#line 4595 "VideoSupport.c"
-}
-
-
-void
-video_init (ProgressMonitor monitor,
- void* monitor_target)
-{
- gchar** args = NULL;
- gint args_length1;
- gint _args_size_;
- GstRegistry* registry = NULL;
- GstRegistry* _tmp0_;
- GstRegistry* _tmp1_;
- gint saved_state = 0;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- gint _tmp4_;
- GstRegistry* _tmp5_;
- gint _tmp6_;
- GList* features = NULL;
- GstRegistry* _tmp9_;
- GList* _tmp10_;
- GList* _tmp11_;
- VideoSourceCollection* _tmp18_;
- GeeArrayList* all = NULL;
- VideoTable* _tmp19_;
- VideoTable* _tmp20_;
- GeeArrayList* _tmp21_;
- GeeArrayList* _tmp22_;
- GeeArrayList* all_videos = NULL;
- GeeArrayList* _tmp23_;
- GeeArrayList* trashed_videos = NULL;
- GeeArrayList* _tmp24_;
- GeeArrayList* offline_videos = NULL;
- GeeArrayList* _tmp25_;
- gint count = 0;
- GeeArrayList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- VideoSourceCollection* _tmp51_;
- GeeArrayList* _tmp52_;
- VideoSourceCollection* _tmp53_;
- GeeArrayList* _tmp54_;
- VideoSourceCollection* _tmp55_;
- GeeArrayList* _tmp56_;
- GeeCollection* _tmp57_;
- GeeCollection* _tmp58_;
-#line 380 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpreter_state_changed = FALSE;
-#line 381 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_current_state = -1;
-#line 382 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_normal_regen_complete = FALSE;
-#line 383 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_offline_regen_complete = FALSE;
-#line 387 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- args = NULL;
-#line 387 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- args_length1 = 0;
-#line 387 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _args_size_ = args_length1;
-#line 388 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- gst_init (&args_length1, &args);
-#line 390 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = gst_registry_get ();
-#line 390 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 390 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- registry = _tmp1_;
-#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = configuration_facade_get_video_interpreter_state_cookie (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp3_);
-#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- saved_state = _tmp4_;
-#line 392 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = registry;
-#line 392 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_current_state = (gint) gst_registry_get_feature_list_cookie (_tmp5_);
-#line 393 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = saved_state;
-#line 393 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp6_ == CONFIG_FACADE_NO_VIDEO_INTERPRETER_STATE) {
-#line 394 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_message ("VideoSupport.vala:394: interpreter state cookie not found; assuming al" \
-"l video thumbnails are out of date");
-#line 395 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpreter_state_changed = TRUE;
-#line 4687 "VideoSupport.c"
- } else {
- gint _tmp7_;
- gint _tmp8_;
-#line 396 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = saved_state;
-#line 396 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = video_current_state;
-#line 396 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp7_ != _tmp8_) {
-#line 397 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_message ("VideoSupport.vala:397: interpreter state has changed; video thumbnails" \
-" may be out of date");
-#line 398 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpreter_state_changed = TRUE;
-#line 4701 "VideoSupport.c"
- }
- }
-#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = registry;
-#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = gst_registry_feature_filter (_tmp9_, ___lambda12__gst_plugin_feature_filter, FALSE, NULL);
-#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- features = _tmp10_;
-#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = features;
-#line 4712 "VideoSupport.c"
- {
- GList* feature_collection = NULL;
- GList* feature_it = NULL;
-#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- feature_collection = _tmp11_;
-#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- for (feature_it = feature_collection; feature_it != NULL; feature_it = feature_it->next) {
-#line 4720 "VideoSupport.c"
- GstPluginFeature* _tmp12_;
- GstPluginFeature* feature = NULL;
-#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = _g_object_ref0 ((GstPluginFeature*) feature_it->data);
-#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- feature = _tmp12_;
-#line 4727 "VideoSupport.c"
- {
- GstPluginFeature* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- GstRegistry* _tmp16_;
- GstPluginFeature* _tmp17_;
-#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = feature;
-#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = gst_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gst_object_get_type (), GstObject));
-#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = _tmp14_;
-#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:412: Removing registry feature %s", _tmp15_);
-#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp15_);
-#line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = registry;
-#line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = feature;
-#line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- gst_registry_remove_feature (_tmp16_, _tmp17_);
-#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (feature);
-#line 4752 "VideoSupport.c"
- }
- }
- }
-#line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = video_source_collection_new ();
-#line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _data_collection_unref0 (video_global);
-#line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_global = _tmp18_;
-#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = video_table_get_instance ();
-#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = _tmp19_;
-#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = video_table_get_all (_tmp20_);
-#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = _tmp21_;
-#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp20_);
-#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- all = _tmp22_;
-#line 419 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 419 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- all_videos = _tmp23_;
-#line 420 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 420 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- trashed_videos = _tmp24_;
-#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp25_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- offline_videos = _tmp25_;
-#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp26_ = all;
-#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp27_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp28_ = _tmp27_;
-#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- count = _tmp28_;
-#line 4794 "VideoSupport.c"
- {
- gint ctr = 0;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ctr = 0;
-#line 4799 "VideoSupport.c"
- {
- gboolean _tmp29_ = FALSE;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp29_ = TRUE;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- while (TRUE) {
-#line 4806 "VideoSupport.c"
- gint _tmp31_;
- gint _tmp32_;
- Video* video = NULL;
- GeeArrayList* _tmp33_;
- gint _tmp34_;
- gpointer _tmp35_;
- VideoRow* _tmp36_;
- Video* _tmp37_;
- Video* _tmp38_;
- gboolean _tmp39_;
- Video* _tmp41_;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!_tmp29_) {
-#line 4820 "VideoSupport.c"
- gint _tmp30_;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp30_ = ctr;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ctr = _tmp30_ + 1;
-#line 4826 "VideoSupport.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp29_ = FALSE;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp31_ = ctr;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp32_ = count;
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!(_tmp31_ < _tmp32_)) {
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- break;
-#line 4838 "VideoSupport.c"
- }
-#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp33_ = all;
-#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp34_ = ctr;
-#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp35_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp34_);
-#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp36_ = (VideoRow*) _tmp35_;
-#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp37_ = video_new (_tmp36_);
-#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp38_ = _tmp37_;
-#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_row_unref0 (_tmp36_);
-#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = _tmp38_;
-#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp39_ = video_interpreter_state_changed;
-#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp39_) {
-#line 4860 "VideoSupport.c"
- Video* _tmp40_;
-#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp40_ = video;
-#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_set_is_interpretable (_tmp40_, FALSE);
-#line 4866 "VideoSupport.c"
- }
-#line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp41_ = video;
-#line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_MEDIA_SOURCE, MediaSource))) {
-#line 4872 "VideoSupport.c"
- GeeArrayList* _tmp42_;
- Video* _tmp43_;
-#line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp42_ = trashed_videos;
-#line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp43_ = video;
-#line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp43_);
-#line 4881 "VideoSupport.c"
- } else {
- Video* _tmp44_;
-#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp44_ = video;
-#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_MEDIA_SOURCE, MediaSource))) {
-#line 4888 "VideoSupport.c"
- GeeArrayList* _tmp45_;
- Video* _tmp46_;
-#line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp45_ = offline_videos;
-#line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp46_ = video;
-#line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp46_);
-#line 4897 "VideoSupport.c"
- } else {
- GeeArrayList* _tmp47_;
- Video* _tmp48_;
-#line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp47_ = all_videos;
-#line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp48_ = video;
-#line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp48_);
-#line 4907 "VideoSupport.c"
- }
- }
-#line 436 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (monitor != NULL) {
-#line 4912 "VideoSupport.c"
- gint _tmp49_;
- gint _tmp50_;
-#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp49_ = ctr;
-#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp50_ = count;
-#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- monitor ((guint64) _tmp49_, (guint64) _tmp50_, TRUE, monitor_target);
-#line 4921 "VideoSupport.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 4925 "VideoSupport.c"
- }
- }
- }
-#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp51_ = video_global;
-#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp52_ = trashed_videos;
-#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- media_source_collection_add_many_to_trash (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp53_ = video_global;
-#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp54_ = offline_videos;
-#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- media_source_collection_add_many_to_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp55_ = video_global;
-#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp56_ = all_videos;
-#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp57_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp58_ = _tmp57_;
-#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp58_);
-#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (offline_videos);
-#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (trashed_videos);
-#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (all_videos);
-#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (all);
-#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- __g_list_free__g_object_unref0_0 (features);
-#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (registry);
-#line 4963 "VideoSupport.c"
-}
-
-
-gboolean
-video_has_interpreter_state_changed (void)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_interpreter_state_changed;
-#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp0_;
-#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 4978 "VideoSupport.c"
-}
-
-
-void
-video_notify_normal_thumbs_regenerated (void)
-{
- gboolean _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
-#line 450 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_normal_regen_complete;
-#line 450 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_) {
-#line 451 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 4994 "VideoSupport.c"
- }
-#line 453 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_message ("VideoSupport.vala:453: normal video thumbnail regeneration completed");
-#line 455 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_normal_regen_complete = TRUE;
-#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = video_normal_regen_complete;
-#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp2_) {
-#line 5004 "VideoSupport.c"
- gboolean _tmp3_;
-#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = video_offline_regen_complete;
-#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp3_;
-#line 5010 "VideoSupport.c"
- } else {
-#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = FALSE;
-#line 5014 "VideoSupport.c"
- }
-#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp1_) {
-#line 457 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_save_interpreter_state ();
-#line 5020 "VideoSupport.c"
- }
-}
-
-
-void
-video_notify_offline_thumbs_regenerated (void)
-{
- gboolean _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
-#line 461 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_offline_regen_complete;
-#line 461 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_) {
-#line 462 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 5037 "VideoSupport.c"
- }
-#line 464 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_message ("VideoSupport.vala:464: offline video thumbnail regeneration completed");
-#line 466 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_offline_regen_complete = TRUE;
-#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = video_normal_regen_complete;
-#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp2_) {
-#line 5047 "VideoSupport.c"
- gboolean _tmp3_;
-#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = video_offline_regen_complete;
-#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp3_;
-#line 5053 "VideoSupport.c"
- } else {
-#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = FALSE;
-#line 5057 "VideoSupport.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp1_) {
-#line 468 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_save_interpreter_state ();
-#line 5063 "VideoSupport.c"
- }
-}
-
-
-static void
-video_save_interpreter_state (void)
-{
- gboolean _tmp0_;
-#line 472 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_interpreter_state_changed;
-#line 472 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_) {
-#line 5076 "VideoSupport.c"
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- gint _tmp3_;
-#line 473 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_message ("VideoSupport.vala:473: saving video interpreter state to configuration" \
-" system");
-#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = video_current_state;
-#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- configuration_facade_set_video_interpreter_state_cookie (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_);
-#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp2_);
-#line 476 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpreter_state_changed = FALSE;
-#line 5094 "VideoSupport.c"
- }
-}
-
-
-void
-video_terminate (void)
-{
-}
-
-
-ExporterUI*
-video_export_many (GeeCollection* videos,
- ExporterCompletionCallback done,
- void* done_target,
- gboolean export_in_place)
-{
- ExporterUI* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp9_;
- gint _tmp10_;
- GFile* export_dir = NULL;
- GFile* _tmp32_;
- GFile* _tmp33_;
- ExporterUI* exporter = NULL;
- GFile* _tmp34_;
- Scaling _tmp35_ = {0};
- ExportFormatParameters _tmp36_ = {0};
- Exporter* _tmp37_;
- Exporter* _tmp38_;
- ExporterUI* _tmp39_;
- ExporterUI* _tmp40_;
- ExporterUI* _tmp41_;
- GError * _inner_error_ = NULL;
-#line 483 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (videos), NULL);
-#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = gee_collection_get_size (videos);
-#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp1_ == 0) {
-#line 486 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = NULL;
-#line 486 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5141 "VideoSupport.c"
- }
-#line 489 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (export_in_place) {
-#line 5145 "VideoSupport.c"
- ExporterUI* temp_exporter = NULL;
- Scaling _tmp2_ = {0};
- ExportFormatParameters _tmp3_ = {0};
- Exporter* _tmp4_;
- Exporter* _tmp5_;
- ExporterUI* _tmp6_;
- ExporterUI* _tmp7_;
- ExporterUI* _tmp8_;
-#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- scaling_for_original (&_tmp2_);
-#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- export_format_parameters_unmodified (&_tmp3_);
-#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = exporter_new_for_temp_file (videos, &_tmp2_, &_tmp3_);
-#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_;
-#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = exporter_ui_new (_tmp5_);
-#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_;
-#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp5_);
-#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- temp_exporter = _tmp7_;
-#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = temp_exporter;
-#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- exporter_ui_export (_tmp8_, done, done_target);
-#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = temp_exporter;
-#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5178 "VideoSupport.c"
- }
-#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = gee_collection_get_size (videos);
-#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _tmp9_;
-#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp10_ == 1) {
-#line 5186 "VideoSupport.c"
- Video* video = NULL;
- GFile* save_as = NULL;
- Video* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- GFile* _tmp20_;
- GFile* _tmp21_;
- GFile* _tmp22_;
-#line 498 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = NULL;
-#line 5197 "VideoSupport.c"
- {
- GeeIterator* _v_it = NULL;
- GeeIterator* _tmp11_;
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_ITERABLE, GeeIterable));
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _v_it = _tmp11_;
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- while (TRUE) {
-#line 5207 "VideoSupport.c"
- GeeIterator* _tmp12_;
- Video* v = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- Video* _tmp15_;
- Video* _tmp16_;
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = _v_it;
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- break;
-#line 5220 "VideoSupport.c"
- }
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = _v_it;
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- v = (Video*) _tmp14_;
-#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = v;
-#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = _tmp16_;
-#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (v);
-#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- break;
-#line 5240 "VideoSupport.c"
- }
-#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_v_it);
-#line 5244 "VideoSupport.c"
- }
-#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = video;
-#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = _tmp18_;
-#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = export_ui_choose_file (_tmp19_);
-#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = _tmp20_;
-#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp19_);
-#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- save_as = _tmp21_;
-#line 505 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = save_as;
-#line 505 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp22_ == NULL) {
-#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = NULL;
-#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (save_as);
-#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5272 "VideoSupport.c"
- }
- {
- AppWindow* _tmp23_;
- AppWindow* _tmp24_;
- Video* _tmp25_;
- GFile* _tmp26_;
- AppWindow* _tmp27_;
- AppWindow* _tmp28_;
-#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = app_window_get_instance ();
-#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = _tmp23_;
-#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PAGE_WINDOW, PageWindow));
-#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp24_);
-#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp25_ = video;
-#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp26_ = save_as;
-#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_export (_tmp25_, _tmp26_, &_inner_error_);
-#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5297 "VideoSupport.c"
- goto __catch510_g_error;
- }
-#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp27_ = app_window_get_instance ();
-#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp28_ = _tmp27_;
-#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_PAGE_WINDOW, PageWindow));
-#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp28_);
-#line 5308 "VideoSupport.c"
- }
- goto __finally510;
- __catch510_g_error:
- {
- GError* err = NULL;
- AppWindow* _tmp29_;
- AppWindow* _tmp30_;
- GFile* _tmp31_;
-#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp29_ = app_window_get_instance ();
-#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp30_ = _tmp29_;
-#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_PAGE_WINDOW, PageWindow));
-#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp30_);
-#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp31_ = save_as;
-#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- export_error_dialog (_tmp31_, FALSE);
-#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 5335 "VideoSupport.c"
- }
- __finally510:
-#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (save_as);
-#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 508 "/home/jens/Source/shotwell/src/VideoSupport.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 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 5350 "VideoSupport.c"
- }
-#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = NULL;
-#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (save_as);
-#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5360 "VideoSupport.c"
- }
-#line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp32_ = export_ui_choose_dir (_ ("Export Videos"));
-#line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- export_dir = _tmp32_;
-#line 522 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp33_ = export_dir;
-#line 522 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp33_ == NULL) {
-#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = NULL;
-#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (export_dir);
-#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5376 "VideoSupport.c"
- }
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp34_ = export_dir;
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- scaling_for_original (&_tmp35_);
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- export_format_parameters_unmodified (&_tmp36_);
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp37_ = exporter_new (videos, _tmp34_, &_tmp35_, &_tmp36_, FALSE);
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp38_ = _tmp37_;
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp39_ = exporter_ui_new (_tmp38_);
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp40_ = _tmp39_;
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp38_);
-#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- exporter = _tmp40_;
-#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp41_ = exporter;
-#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- exporter_ui_export (_tmp41_, done, done_target);
-#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = exporter;
-#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (export_dir);
-#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5406 "VideoSupport.c"
-}
-
-
-static void
-video_real_commit_backlinks (DataSource* base,
- SourceCollection* sources,
- const gchar* backlinks)
-{
- Video * self;
- GError * _inner_error_ = NULL;
-#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources));
-#line 5421 "VideoSupport.c"
- {
- VideoTable* _tmp0_;
- VideoTable* _tmp1_;
- VideoID _tmp2_ = {0};
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_table_get_instance ();
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (self, &_tmp2_);
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_update_backlinks (_tmp1_, &_tmp2_, backlinks, &_inner_error_);
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp1_);
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5440 "VideoSupport.c"
- goto __catch511_database_error;
- }
-#line 534 "/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);
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 5449 "VideoSupport.c"
- }
- {
- VideoRow* _tmp3_;
-#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 5457 "VideoSupport.c"
- {
- VideoRow* _tmp4_;
- gchar* _tmp5_;
-#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = g_strdup (backlinks);
-#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp4_->backlinks);
-#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_->backlinks = _tmp5_;
-#line 5469 "VideoSupport.c"
- }
- __finally512:
- {
- VideoRow* _tmp6_;
-#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->backing_row;
-#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5478 "VideoSupport.c"
- }
-#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5484 "VideoSupport.c"
- goto __catch511_database_error;
- }
-#line 535 "/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);
-#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 5493 "VideoSupport.c"
- }
- }
- }
- goto __finally511;
- __catch511_database_error:
- {
- GError* err = NULL;
- gchar* _tmp7_;
- gchar* _tmp8_;
- GError* _tmp9_;
- const gchar* _tmp10_;
-#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = _tmp7_;
-#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = err;
-#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _tmp9_->message;
-#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_warning ("VideoSupport.vala:539: Unable to update link state for %s: %s", _tmp8_, _tmp10_);
-#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp8_);
-#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 5523 "VideoSupport.c"
- }
- __finally511:
-#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 533 "/home/jens/Source/shotwell/src/VideoSupport.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 533 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 5534 "VideoSupport.c"
- }
-}
-
-
-static gboolean
-video_real_set_event_id (MediaSource* base,
- EventID* event_id)
-{
- Video * self;
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 543 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 543 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 5550 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
- gboolean _tmp12_ = FALSE;
-#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 5558 "VideoSupport.c"
- {
- gboolean committed = FALSE;
- VideoTable* _tmp1_;
- VideoTable* _tmp2_;
- VideoRow* _tmp3_;
- VideoID _tmp4_;
- EventID _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp7_;
-#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = video_table_get_instance ();
-#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_->video_id;
-#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = *event_id;
-#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = video_table_set_event (_tmp2_, &_tmp4_, &_tmp5_);
-#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp2_);
-#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- committed = _tmp6_;
-#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = committed;
-#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp7_) {
-#line 5588 "VideoSupport.c"
- VideoRow* _tmp8_;
- EventID _tmp9_;
-#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->priv->backing_row;
-#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = *event_id;
-#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_->event_id = _tmp9_;
-#line 5597 "VideoSupport.c"
- }
-#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = committed;
-#line 5601 "VideoSupport.c"
- {
- VideoRow* _tmp10_;
-#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = self->priv->backing_row;
-#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5608 "VideoSupport.c"
- }
-#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5612 "VideoSupport.c"
- }
- __finally513:
- {
- VideoRow* _tmp11_;
-#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = self->priv->backing_row;
-#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5621 "VideoSupport.c"
- }
-#line 544 "/home/jens/Source/shotwell/src/VideoSupport.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 544 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp12_;
-#line 5629 "VideoSupport.c"
- }
-}
-
-
-gboolean
-video_is_duplicate (GFile* file,
- const gchar* full_md5)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- VideoTable* _tmp1_;
- VideoTable* _tmp2_;
- gboolean _tmp3_;
-#line 554 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE);
-#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (file != NULL) {
-#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = TRUE;
-#line 5649 "VideoSupport.c"
- } else {
-#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = full_md5 != NULL;
-#line 5653 "VideoSupport.c"
- }
-#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_assert (_tmp0_, "file != null || full_md5 != null");
-#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = video_table_get_instance ();
-#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = video_table_has_duplicate (_tmp2_, file, full_md5);
-#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp2_);
-#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5669 "VideoSupport.c"
-}
-
-
-ImportResult
-video_import_create (VideoImportParams* params,
- Video* * video)
-{
- Video* _vala_video = NULL;
- ImportResult result = 0;
- VideoRow* _tmp6_;
- Video* _tmp7_;
- GError * _inner_error_ = NULL;
-#line 563 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_IMPORT_PARAMS (params), 0);
-#line 564 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_vala_video);
-#line 564 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_video = NULL;
-#line 5688 "VideoSupport.c"
- {
- VideoID _tmp0_ = {0};
- VideoTable* _tmp1_;
- VideoTable* _tmp2_;
- VideoRow* _tmp3_;
- VideoID _tmp4_ = {0};
- VideoID _tmp5_;
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = video_table_get_instance ();
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = params->row;
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_add (_tmp2_, _tmp3_, &_tmp4_, &_inner_error_);
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_;
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp2_);
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _tmp5_;
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5714 "VideoSupport.c"
- goto __catch514_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);
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 5723 "VideoSupport.c"
- }
-#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (video_id_is_invalid (&_tmp0_)) {
-#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = IMPORT_RESULT_DATABASE_ERROR;
-#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (video) {
-#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *video = _vala_video;
-#line 5733 "VideoSupport.c"
- } else {
-#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_vala_video);
-#line 5737 "VideoSupport.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5741 "VideoSupport.c"
- }
- }
- goto __finally514;
- __catch514_database_error:
- {
- GError* err = NULL;
-#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = IMPORT_RESULT_DATABASE_ERROR;
-#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (video) {
-#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *video = _vala_video;
-#line 5760 "VideoSupport.c"
- } else {
-#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_vala_video);
-#line 5764 "VideoSupport.c"
- }
-#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5768 "VideoSupport.c"
- }
- __finally514:
-#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 567 "/home/jens/Source/shotwell/src/VideoSupport.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 567 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 5779 "VideoSupport.c"
- }
-#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = params->row;
-#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = video_new (_tmp6_);
-#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_vala_video);
-#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_video = _tmp7_;
-#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = IMPORT_RESULT_SUCCESS;
-#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (video) {
-#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *video = _vala_video;
-#line 5795 "VideoSupport.c"
- } else {
-#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_vala_video);
-#line 5799 "VideoSupport.c"
- }
-#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5803 "VideoSupport.c"
-}
-
-
-void
-video_import_failed (Video* video)
-{
- GError * _inner_error_ = NULL;
-#line 580 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO (video));
-#line 5813 "VideoSupport.c"
- {
- VideoTable* _tmp0_;
- VideoTable* _tmp1_;
- VideoID _tmp2_ = {0};
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_table_get_instance ();
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (video, &_tmp2_);
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_remove (_tmp1_, &_tmp2_, &_inner_error_);
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp1_);
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5832 "VideoSupport.c"
- goto __catch515_database_error;
- }
-#line 582 "/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);
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 5841 "VideoSupport.c"
- }
- }
- goto __finally515;
- __catch515_database_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
-#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = err;
-#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp3_);
-#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 5859 "VideoSupport.c"
- }
- __finally515:
-#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 581 "/home/jens/Source/shotwell/src/VideoSupport.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 581 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 5870 "VideoSupport.c"
- }
-}
-
-
-static BackingFileState**
-video_real_get_backing_files_state (MediaSource* base,
- int* result_length1)
-{
- Video * self;
- BackingFileState** result = NULL;
- BackingFileState** backing = NULL;
- BackingFileState** _tmp0_;
- gint backing_length1;
- gint _backing_size_;
- BackingFileState** _tmp13_;
- gint _tmp13__length1;
- GError * _inner_error_ = NULL;
-#line 588 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = g_new0 (BackingFileState*, 1 + 1);
-#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- backing = _tmp0_;
-#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- backing_length1 = 1;
-#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _backing_size_ = backing_length1;
-#line 5898 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
-#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 5905 "VideoSupport.c"
- {
- VideoRow* _tmp2_;
- const gchar* _tmp3_;
- VideoRow* _tmp4_;
- gint64 _tmp5_;
- VideoRow* _tmp6_;
- time_t _tmp7_;
- VideoRow* _tmp8_;
- const gchar* _tmp9_;
- BackingFileState* _tmp10_;
- BackingFileState* _tmp11_;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->backing_row;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_->filepath;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_->filesize;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->backing_row;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_->timestamp;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->priv->backing_row;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = _tmp8_->md5;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = backing_file_state_new (_tmp3_, _tmp5_, _tmp7_, _tmp9_);
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _backing_file_state_unref0 (backing[0]);
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- backing[0] = _tmp10_;
-#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = backing[0];
-#line 5941 "VideoSupport.c"
- }
- __finally516:
- {
- VideoRow* _tmp12_;
-#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = self->priv->backing_row;
-#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5950 "VideoSupport.c"
- }
-#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- backing = (_vala_array_free (backing, backing_length1, (GDestroyNotify) backing_file_state_unref), NULL);
-#line 590 "/home/jens/Source/shotwell/src/VideoSupport.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 590 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 5962 "VideoSupport.c"
- }
- }
-#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = backing;
-#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13__length1 = backing_length1;
-#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (result_length1) {
-#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *result_length1 = _tmp13__length1;
-#line 5973 "VideoSupport.c"
- }
-#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp13_;
-#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 5979 "VideoSupport.c"
-}
-
-
-static GdkPixbuf*
-video_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- Video * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = thumbnail_cache_fetch (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_);
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _tmp1_;
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 6006 "VideoSupport.c"
- }
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp0_;
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = NULL;
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp0_);
-#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6018 "VideoSupport.c"
-}
-
-
-static gchar*
-video_real_get_master_md5 (MediaSource* base)
-{
- Video * self;
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6030 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6037 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->md5;
-#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 6050 "VideoSupport.c"
- {
- VideoRow* _tmp4_;
-#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6057 "VideoSupport.c"
- }
-#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6061 "VideoSupport.c"
- }
- __finally517:
- {
- VideoRow* _tmp5_;
-#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->priv->backing_row;
-#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6070 "VideoSupport.c"
- }
-#line 603 "/home/jens/Source/shotwell/src/VideoSupport.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 603 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 6078 "VideoSupport.c"
- }
-}
-
-
-static GdkPixbuf*
-video_real_get_preview_pixbuf (MediaSource* base,
- Scaling* scaling,
- GError** error)
-{
- Video * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 608 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 608 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_BIG, &_inner_error_);
-#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- pixbuf = _tmp0_;
-#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 6108 "VideoSupport.c"
- }
-#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = scaling_perform_on_pixbuf (scaling, pixbuf, GDK_INTERP_NEAREST, TRUE);
-#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp1_;
-#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (pixbuf);
-#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6118 "VideoSupport.c"
-}
-
-
-static GdkPixbuf*
-video_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- Video * self;
- GdkPixbuf* result = NULL;
- VideoReader* reader = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- VideoReader* _tmp2_;
- VideoReader* _tmp3_;
- GdkPixbuf* frame = NULL;
- VideoReader* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_ = NULL;
- GdkPixbuf* _tmp7_;
-#line 614 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = video_reader_new (_tmp1_);
-#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp1_);
-#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- reader = _tmp3_;
-#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = reader;
-#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = video_reader_read_preview_frame (_tmp4_);
-#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- frame = _tmp5_;
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = frame;
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp7_ != NULL) {
-#line 6163 "VideoSupport.c"
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = frame;
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp6_);
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = _tmp9_;
-#line 6174 "VideoSupport.c"
- } else {
- GdkPixbuf* _tmp10_;
- GdkPixbuf* _tmp11_;
- GdkPixbuf* _tmp12_;
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = resources_get_noninterpretable_badge_pixbuf ();
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = _tmp10_;
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = gdk_pixbuf_copy (_tmp11_);
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp6_);
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = _tmp12_;
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp11_);
-#line 6191 "VideoSupport.c"
- }
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp6_;
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (frame);
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (reader);
-#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6201 "VideoSupport.c"
-}
-
-
-static gchar*
-video_real_get_typename (DataSource* base)
-{
- Video * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = g_strdup (VIDEO_TYPENAME);
-#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp0_;
-#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6219 "VideoSupport.c"
-}
-
-
-static gint64
-video_real_get_instance_id (DataSource* base)
-{
- Video * self;
- gint64 result = 0LL;
- VideoID _tmp0_ = {0};
- gint64 _tmp1_;
-#line 625 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (self, &_tmp0_);
-#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_.id;
-#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp1_;
-#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6240 "VideoSupport.c"
-}
-
-
-static void
-video_real_get_import_id (MediaSource* base,
- ImportID* result)
-{
- Video * self;
- GError * _inner_error_ = NULL;
-#line 629 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6252 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6259 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- ImportID _tmp2_;
-#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->import_id;
-#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *result = _tmp2_;
-#line 6269 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6276 "VideoSupport.c"
- }
-#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6280 "VideoSupport.c"
- }
- __finally518:
- {
- VideoRow* _tmp4_;
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6289 "VideoSupport.c"
- }
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6297 "VideoSupport.c"
- }
-}
-
-
-static PhotoFileFormat
-video_real_get_preferred_thumbnail_format (ThumbnailSource* base)
-{
- Video * self;
- PhotoFileFormat result = 0;
-#line 635 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 636 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = photo_file_format_get_system_default_format ();
-#line 636 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6313 "VideoSupport.c"
-}
-
-
-static gchar*
-video_real_get_title (MediaSource* base)
-{
- Video * self;
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 639 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6325 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6332 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->title;
-#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 6345 "VideoSupport.c"
- {
- VideoRow* _tmp4_;
-#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6352 "VideoSupport.c"
- }
-#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6356 "VideoSupport.c"
- }
- __finally519:
- {
- VideoRow* _tmp5_;
-#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->priv->backing_row;
-#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6365 "VideoSupport.c"
- }
-#line 640 "/home/jens/Source/shotwell/src/VideoSupport.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 640 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 6373 "VideoSupport.c"
- }
-}
-
-
-static void
-video_real_set_title (MediaSource* base,
- const gchar* title)
-{
- Video * self;
- gchar* new_title = NULL;
- gchar* _tmp0_;
- Alteration* _tmp19_;
- Alteration* _tmp20_;
- GError * _inner_error_ = NULL;
-#line 645 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 646 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = media_source_prep_title (title);
-#line 646 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- new_title = _tmp0_;
-#line 6394 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6401 "VideoSupport.c"
- {
- VideoRow* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- VideoRow* _tmp15_;
- const gchar* _tmp16_;
- gchar* _tmp17_;
-#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->backing_row;
-#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_->title;
-#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = new_title;
-#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_strcmp0 (_tmp3_, _tmp4_) == 0) {
-#line 6417 "VideoSupport.c"
- {
- VideoRow* _tmp5_;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->priv->backing_row;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6424 "VideoSupport.c"
- }
-#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_title);
-#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6430 "VideoSupport.c"
- }
- {
- VideoTable* _tmp6_;
- VideoTable* _tmp7_;
- VideoRow* _tmp8_;
- VideoID _tmp9_;
- const gchar* _tmp10_;
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = video_table_get_instance ();
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_;
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->priv->backing_row;
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = _tmp8_->video_id;
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = new_title;
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_set_title (_tmp7_, &_tmp9_, _tmp10_, &_inner_error_);
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp7_);
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6456 "VideoSupport.c"
- goto __catch521_database_error;
- }
- {
- VideoRow* _tmp11_;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = self->priv->backing_row;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6465 "VideoSupport.c"
- }
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_title);
-#line 653 "/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);
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6475 "VideoSupport.c"
- }
- }
- goto __finally521;
- __catch521_database_error:
- {
- GError* e = NULL;
- GError* _tmp12_;
-#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = e;
-#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp12_);
-#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 6493 "VideoSupport.c"
- {
- VideoRow* _tmp13_;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = self->priv->backing_row;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6500 "VideoSupport.c"
- }
-#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_title);
-#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6506 "VideoSupport.c"
- }
- __finally521:
-#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6511 "VideoSupport.c"
- {
- VideoRow* _tmp14_;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = self->priv->backing_row;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6518 "VideoSupport.c"
- }
-#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_title);
-#line 652 "/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);
-#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6528 "VideoSupport.c"
- }
-#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = self->priv->backing_row;
-#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = new_title;
-#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = g_strdup (_tmp16_);
-#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp15_->title);
-#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_->title = _tmp17_;
-#line 6540 "VideoSupport.c"
- }
- __finally520:
- {
- VideoRow* _tmp18_;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = self->priv->backing_row;
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6549 "VideoSupport.c"
- }
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_title);
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6561 "VideoSupport.c"
- }
- }
-#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = alteration_new ("metadata", "name");
-#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = _tmp19_;
-#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_);
-#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp20_);
-#line 645 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_title);
-#line 6574 "VideoSupport.c"
-}
-
-
-static gchar*
-video_real_get_comment (MediaSource* base)
-{
- Video * self;
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 666 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6586 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6593 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->comment;
-#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 6606 "VideoSupport.c"
- {
- VideoRow* _tmp4_;
-#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6613 "VideoSupport.c"
- }
-#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6617 "VideoSupport.c"
- }
- __finally522:
- {
- VideoRow* _tmp5_;
-#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->priv->backing_row;
-#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6626 "VideoSupport.c"
- }
-#line 667 "/home/jens/Source/shotwell/src/VideoSupport.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 667 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 6634 "VideoSupport.c"
- }
-}
-
-
-static gboolean
-video_real_set_comment (MediaSource* base,
- const gchar* comment)
-{
- Video * self;
- gboolean result = FALSE;
- gchar* new_comment = NULL;
- gchar* _tmp0_;
- Alteration* _tmp22_;
- Alteration* _tmp23_;
- GError * _inner_error_ = NULL;
-#line 672 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 673 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = media_source_prep_title (comment);
-#line 673 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- new_comment = _tmp0_;
-#line 6656 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6663 "VideoSupport.c"
- {
- VideoRow* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- VideoRow* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
-#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->backing_row;
-#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_->comment;
-#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = new_comment;
-#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_strcmp0 (_tmp3_, _tmp4_) == 0) {
-#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = TRUE;
-#line 6681 "VideoSupport.c"
- {
- VideoRow* _tmp5_;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->priv->backing_row;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6688 "VideoSupport.c"
- }
-#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_comment);
-#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6694 "VideoSupport.c"
- }
- {
- VideoTable* _tmp6_;
- VideoTable* _tmp7_;
- VideoRow* _tmp8_;
- VideoID _tmp9_;
- const gchar* _tmp10_;
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = video_table_get_instance ();
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_;
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->priv->backing_row;
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = _tmp8_->video_id;
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = new_comment;
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_set_comment (_tmp7_, &_tmp9_, _tmp10_, &_inner_error_);
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp7_);
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6718 "VideoSupport.c"
- gboolean _tmp12_ = FALSE;
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6722 "VideoSupport.c"
- goto __catch524_database_error;
- }
- {
- VideoRow* _tmp11_;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = self->priv->backing_row;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6731 "VideoSupport.c"
- }
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_comment);
-#line 680 "/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);
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp12_;
-#line 6741 "VideoSupport.c"
- }
- }
- goto __finally524;
- __catch524_database_error:
- {
- GError* e = NULL;
- GError* _tmp13_;
-#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = e;
-#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp13_);
-#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = FALSE;
-#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 6761 "VideoSupport.c"
- {
- VideoRow* _tmp14_;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = self->priv->backing_row;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6768 "VideoSupport.c"
- }
-#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_comment);
-#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6774 "VideoSupport.c"
- }
- __finally524:
-#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6779 "VideoSupport.c"
- gboolean _tmp16_ = FALSE;
- {
- VideoRow* _tmp15_;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = self->priv->backing_row;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6787 "VideoSupport.c"
- }
-#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_comment);
-#line 679 "/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);
-#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp16_;
-#line 6797 "VideoSupport.c"
- }
-#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = self->priv->backing_row;
-#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = new_comment;
-#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = g_strdup (_tmp18_);
-#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp17_->comment);
-#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_->comment = _tmp19_;
-#line 6809 "VideoSupport.c"
- }
- __finally523:
- {
- VideoRow* _tmp20_;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = self->priv->backing_row;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6818 "VideoSupport.c"
- }
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6822 "VideoSupport.c"
- gboolean _tmp21_ = FALSE;
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_comment);
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.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 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp21_;
-#line 6832 "VideoSupport.c"
- }
- }
-#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = alteration_new ("metadata", "comment");
-#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = _tmp22_;
-#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_);
-#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp23_);
-#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = TRUE;
-#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_comment);
-#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6849 "VideoSupport.c"
-}
-
-
-static Rating
-video_real_get_rating (MediaSource* base)
-{
- Video * self;
- Rating result = 0;
- GError * _inner_error_ = NULL;
-#line 696 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6861 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6868 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- Rating _tmp2_;
-#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->rating;
-#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 6878 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6885 "VideoSupport.c"
- }
-#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 6889 "VideoSupport.c"
- }
- __finally525:
- {
- VideoRow* _tmp4_;
-#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6898 "VideoSupport.c"
- }
-#line 697 "/home/jens/Source/shotwell/src/VideoSupport.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 697 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 6906 "VideoSupport.c"
- }
-}
-
-
-static void
-video_real_set_rating (MediaSource* base,
- Rating rating)
-{
- Video * self;
- Alteration* _tmp14_;
- Alteration* _tmp15_;
- GError * _inner_error_ = NULL;
-#line 702 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6921 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6928 "VideoSupport.c"
- {
- gboolean _tmp1_ = FALSE;
- VideoRow* _tmp12_;
-#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!rating_is_valid (rating)) {
-#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = TRUE;
-#line 6936 "VideoSupport.c"
- } else {
- VideoRow* _tmp2_;
- Rating _tmp3_;
-#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->backing_row;
-#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_->rating;
-#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = rating == _tmp3_;
-#line 6946 "VideoSupport.c"
- }
-#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp1_) {
-#line 6950 "VideoSupport.c"
- {
- VideoRow* _tmp4_;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6957 "VideoSupport.c"
- }
-#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6961 "VideoSupport.c"
- }
- {
- VideoTable* _tmp5_;
- VideoTable* _tmp6_;
- VideoID _tmp7_ = {0};
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = video_table_get_instance ();
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = _tmp5_;
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (self, &_tmp7_);
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_set_rating (_tmp6_, &_tmp7_, rating, &_inner_error_);
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp6_);
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6981 "VideoSupport.c"
- goto __catch527_database_error;
- }
- {
- VideoRow* _tmp8_;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->priv->backing_row;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6990 "VideoSupport.c"
- }
-#line 708 "/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);
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 6998 "VideoSupport.c"
- }
- }
- goto __finally527;
- __catch527_database_error:
- {
- GError* e = NULL;
- GError* _tmp9_;
-#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = e;
-#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp9_);
-#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 7016 "VideoSupport.c"
- {
- VideoRow* _tmp10_;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = self->priv->backing_row;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7023 "VideoSupport.c"
- }
-#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7027 "VideoSupport.c"
- }
- __finally527:
-#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7032 "VideoSupport.c"
- {
- VideoRow* _tmp11_;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = self->priv->backing_row;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7039 "VideoSupport.c"
- }
-#line 707 "/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);
-#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7047 "VideoSupport.c"
- }
-#line 715 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = self->priv->backing_row;
-#line 715 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_->rating = rating;
-#line 7053 "VideoSupport.c"
- }
- __finally526:
- {
- VideoRow* _tmp13_;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = self->priv->backing_row;
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7062 "VideoSupport.c"
- }
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.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 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7072 "VideoSupport.c"
- }
- }
-#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = alteration_new ("metadata", "rating");
-#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = _tmp14_;
-#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_);
-#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp15_);
-#line 7083 "VideoSupport.c"
-}
-
-
-static void
-video_real_increase_rating (MediaSource* base)
-{
- Video * self;
- GError * _inner_error_ = NULL;
-#line 721 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7094 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7101 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- Rating _tmp2_;
-#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->rating;
-#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), rating_increase (_tmp2_));
-#line 7111 "VideoSupport.c"
- }
- __finally528:
- {
- VideoRow* _tmp3_;
-#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7120 "VideoSupport.c"
- }
-#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 722 "/home/jens/Source/shotwell/src/VideoSupport.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 722 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7130 "VideoSupport.c"
- }
- }
-}
-
-
-static void
-video_real_decrease_rating (MediaSource* base)
-{
- Video * self;
- GError * _inner_error_ = NULL;
-#line 727 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7143 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7150 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- Rating _tmp2_;
-#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->rating;
-#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), rating_decrease (_tmp2_));
-#line 7160 "VideoSupport.c"
- }
- __finally529:
- {
- VideoRow* _tmp3_;
-#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7169 "VideoSupport.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 728 "/home/jens/Source/shotwell/src/VideoSupport.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 728 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7179 "VideoSupport.c"
- }
- }
-}
-
-
-static gboolean
-video_real_is_trashed (MediaSource* base)
-{
- Video * self;
- gboolean result = FALSE;
-#line 733 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 734 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = video_is_flag_set (self, VIDEO_FLAG_TRASH);
-#line 734 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 7196 "VideoSupport.c"
-}
-
-
-static gboolean
-video_real_is_offline (Monitorable* base)
-{
- Video * self;
- gboolean result = FALSE;
-#line 737 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 738 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = video_is_flag_set (self, VIDEO_FLAG_OFFLINE);
-#line 738 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 7211 "VideoSupport.c"
-}
-
-
-static void
-video_real_mark_offline (Monitorable* base)
-{
- Video * self;
-#line 741 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 742 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_add_flags (self, VIDEO_FLAG_OFFLINE, NULL);
-#line 7223 "VideoSupport.c"
-}
-
-
-static void
-video_real_mark_online (Monitorable* base)
-{
- Video * self;
- gboolean _tmp0_ = FALSE;
-#line 745 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 746 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_remove_flags (self, VIDEO_FLAG_OFFLINE, NULL);
-#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!video_get_is_interpretable (self)) {
-#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_has_interpreter_state_changed ();
-#line 7240 "VideoSupport.c"
- } else {
-#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = FALSE;
-#line 7244 "VideoSupport.c"
- }
-#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_) {
-#line 7248 "VideoSupport.c"
- VideoInterpretableResults* _tmp1_;
- VideoInterpretableResults* _tmp2_;
-#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = video_check_is_interpretable (self);
-#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpretable_results_foreground_finish (_tmp2_);
-#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_interpretable_results_unref0 (_tmp2_);
-#line 7259 "VideoSupport.c"
- }
-}
-
-
-static void
-video_real_trash (MediaSource* base)
-{
- Video * self;
-#line 752 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 753 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_add_flags (self, VIDEO_FLAG_TRASH, NULL);
-#line 7272 "VideoSupport.c"
-}
-
-
-static void
-video_real_untrash (MediaSource* base)
-{
- Video * self;
-#line 756 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 757 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_remove_flags (self, VIDEO_FLAG_TRASH, NULL);
-#line 7284 "VideoSupport.c"
-}
-
-
-static gboolean
-video_real_is_flagged (Flaggable* base)
-{
- Video * self;
- gboolean result = FALSE;
-#line 760 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 761 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = video_is_flag_set (self, VIDEO_FLAG_FLAGGED);
-#line 761 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 7299 "VideoSupport.c"
-}
-
-
-static void
-video_real_mark_flagged (Flaggable* base)
-{
- Video * self;
- Alteration* _tmp0_;
- Alteration* _tmp1_;
-#line 764 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = alteration_new ("metadata", "flagged");
-#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_add_flags (self, VIDEO_FLAG_FLAGGED, _tmp1_);
-#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp1_);
-#line 7319 "VideoSupport.c"
-}
-
-
-static void
-video_real_mark_unflagged (Flaggable* base)
-{
- Video * self;
- Alteration* _tmp0_;
- Alteration* _tmp1_;
-#line 768 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = alteration_new ("metadata", "flagged");
-#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_remove_flags (self, VIDEO_FLAG_FLAGGED, _tmp1_);
-#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp1_);
-#line 7339 "VideoSupport.c"
-}
-
-
-static void
-video_real_get_event_id (MediaSource* base,
- EventID* result)
-{
- Video * self;
- GError * _inner_error_ = NULL;
-#line 772 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7351 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7358 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- EventID _tmp2_;
-#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->event_id;
-#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *result = _tmp2_;
-#line 7368 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7375 "VideoSupport.c"
- }
-#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7379 "VideoSupport.c"
- }
- __finally530:
- {
- VideoRow* _tmp4_;
-#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7388 "VideoSupport.c"
- }
-#line 773 "/home/jens/Source/shotwell/src/VideoSupport.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 773 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7396 "VideoSupport.c"
- }
-}
-
-
-static gchar*
-video_real_to_string (DataObject* base)
-{
- Video * self;
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 778 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7409 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7416 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- VideoID _tmp2_;
- gint64 _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- VideoRow* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->video_id;
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_.id;
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp3_);
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_;
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->backing_row;
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_->filepath;
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = g_strdup_printf ("[%s] %s", _tmp5_, _tmp7_);
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = _tmp8_;
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp5_);
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp9_;
-#line 7449 "VideoSupport.c"
- {
- VideoRow* _tmp10_;
-#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = self->priv->backing_row;
-#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7456 "VideoSupport.c"
- }
-#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 7460 "VideoSupport.c"
- }
- __finally531:
- {
- VideoRow* _tmp11_;
-#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = self->priv->backing_row;
-#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7469 "VideoSupport.c"
- }
-#line 779 "/home/jens/Source/shotwell/src/VideoSupport.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 779 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 7477 "VideoSupport.c"
- }
-}
-
-
-void
-video_get_video_id (Video* self,
- VideoID* result)
-{
- GError * _inner_error_ = NULL;
-#line 784 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO (self));
-#line 7489 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7496 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- VideoID _tmp2_;
-#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->video_id;
-#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *result = _tmp2_;
-#line 7506 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7513 "VideoSupport.c"
- }
-#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7517 "VideoSupport.c"
- }
- __finally532:
- {
- VideoRow* _tmp4_;
-#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7526 "VideoSupport.c"
- }
-#line 785 "/home/jens/Source/shotwell/src/VideoSupport.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 785 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7534 "VideoSupport.c"
- }
-}
-
-
-static time_t
-video_real_get_exposure_time (Dateable* base)
-{
- Video * self;
- time_t result = 0;
- GError * _inner_error_ = NULL;
-#line 790 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7547 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
- time_t _tmp5_ = 0;
-#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7555 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- time_t _tmp2_;
-#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->exposure_time;
-#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 7565 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7572 "VideoSupport.c"
- }
-#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 7576 "VideoSupport.c"
- }
- __finally533:
- {
- VideoRow* _tmp4_;
-#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7585 "VideoSupport.c"
- }
-#line 791 "/home/jens/Source/shotwell/src/VideoSupport.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 791 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp5_;
-#line 7593 "VideoSupport.c"
- }
-}
-
-
-static void
-video_real_set_exposure_time (Dateable* base,
- time_t time)
-{
- Video * self;
- Alteration* _tmp10_;
- Alteration* _tmp11_;
- GError * _inner_error_ = NULL;
-#line 796 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7608 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7615 "VideoSupport.c"
- {
- VideoRow* _tmp8_;
- {
- VideoTable* _tmp1_;
- VideoTable* _tmp2_;
- VideoRow* _tmp3_;
- VideoID _tmp4_;
-#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = video_table_get_instance ();
-#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_->video_id;
-#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_set_exposure_time (_tmp2_, &_tmp4_, time, &_inner_error_);
-#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp2_);
-#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7637 "VideoSupport.c"
- goto __catch535_g_error;
- }
- }
- goto __finally535;
- __catch535_g_error:
- {
- GError* e = NULL;
- GError* _tmp5_;
- const gchar* _tmp6_;
-#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = e;
-#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = _tmp5_->message;
-#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:801: Warning - %s", _tmp6_);
-#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 7659 "VideoSupport.c"
- }
- __finally535:
-#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7664 "VideoSupport.c"
- {
- VideoRow* _tmp7_;
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = self->priv->backing_row;
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7671 "VideoSupport.c"
- }
-#line 798 "/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);
-#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7679 "VideoSupport.c"
- }
-#line 803 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->priv->backing_row;
-#line 803 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_->exposure_time = time;
-#line 7685 "VideoSupport.c"
- }
- __finally534:
- {
- VideoRow* _tmp9_;
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = self->priv->backing_row;
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7694 "VideoSupport.c"
- }
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.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 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7704 "VideoSupport.c"
- }
- }
-#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = alteration_new ("metadata", "exposure-time");
-#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = _tmp10_;
-#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp11_);
-#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp11_);
-#line 7715 "VideoSupport.c"
-}
-
-
-void
-video_get_frame_dimensions (Video* self,
- Dimensions* result)
-{
- GError * _inner_error_ = NULL;
-#line 809 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO (self));
-#line 7726 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7733 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- gint _tmp2_;
- VideoRow* _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_ = {0};
-#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->width;
-#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_->height;
-#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dimensions_init (&_tmp5_, _tmp2_, _tmp4_);
-#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *result = _tmp5_;
-#line 7752 "VideoSupport.c"
- {
- VideoRow* _tmp6_;
-#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->backing_row;
-#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7759 "VideoSupport.c"
- }
-#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7763 "VideoSupport.c"
- }
- __finally536:
- {
- VideoRow* _tmp7_;
-#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = self->priv->backing_row;
-#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7772 "VideoSupport.c"
- }
-#line 810 "/home/jens/Source/shotwell/src/VideoSupport.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 810 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7780 "VideoSupport.c"
- }
-}
-
-
-static void
-video_real_get_dimensions (MediaSource* base,
- PhotoException disallowed_steps,
- Dimensions* result)
-{
- Video * self;
- Dimensions _tmp0_ = {0};
-#line 815 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_frame_dimensions (self, &_tmp0_);
-#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *result = _tmp0_;
-#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7800 "VideoSupport.c"
-}
-
-
-static guint64
-video_real_get_filesize (MediaSource* base)
-{
- Video * self;
- guint64 result = 0ULL;
-#line 819 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 820 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 820 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 7815 "VideoSupport.c"
-}
-
-
-static guint64
-video_real_get_master_filesize (MediaSource* base)
-{
- Video * self;
- guint64 result = 0ULL;
- GError * _inner_error_ = NULL;
-#line 823 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7827 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
- guint64 _tmp5_ = 0ULL;
-#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7835 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- gint64 _tmp2_;
-#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->filesize;
-#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = (guint64) _tmp2_;
-#line 7845 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7852 "VideoSupport.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 7856 "VideoSupport.c"
- }
- __finally537:
- {
- VideoRow* _tmp4_;
-#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7865 "VideoSupport.c"
- }
-#line 824 "/home/jens/Source/shotwell/src/VideoSupport.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 824 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp5_;
-#line 7873 "VideoSupport.c"
- }
-}
-
-
-static time_t
-video_real_get_timestamp (MediaSource* base)
-{
- Video * self;
- time_t result = 0;
- GError * _inner_error_ = NULL;
-#line 829 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7886 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
- time_t _tmp5_ = 0;
-#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7894 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- time_t _tmp2_;
-#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->timestamp;
-#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 7904 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7911 "VideoSupport.c"
- }
-#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 7915 "VideoSupport.c"
- }
- __finally538:
- {
- VideoRow* _tmp4_;
-#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7924 "VideoSupport.c"
- }
-#line 830 "/home/jens/Source/shotwell/src/VideoSupport.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 830 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp5_;
-#line 7932 "VideoSupport.c"
- }
-}
-
-
-static void
-video_real_set_master_timestamp (Monitorable* base,
- GFileInfo* info)
-{
- Video * self;
- GTimeVal time_val = {0};
- GTimeVal _tmp0_ = {0};
- Alteration* _tmp18_;
- Alteration* _tmp19_;
- GError * _inner_error_ = NULL;
-#line 835 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 835 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 836 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_file_info_get_modification_time (info, &_tmp0_);
-#line 836 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- time_val = _tmp0_;
-#line 7955 "VideoSupport.c"
- {
- {
- VideoRow* _tmp1_;
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7963 "VideoSupport.c"
- {
- VideoRow* _tmp2_;
- time_t _tmp3_;
- GTimeVal _tmp4_;
- glong _tmp5_;
- VideoTable* _tmp7_;
- VideoTable* _tmp8_;
- VideoRow* _tmp9_;
- VideoID _tmp10_;
- GTimeVal _tmp11_;
- glong _tmp12_;
- VideoRow* _tmp13_;
- GTimeVal _tmp14_;
- glong _tmp15_;
-#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->backing_row;
-#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_->timestamp;
-#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = time_val;
-#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_.tv_sec;
-#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp3_ == ((time_t) _tmp5_)) {
-#line 7988 "VideoSupport.c"
- {
- VideoRow* _tmp6_;
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->backing_row;
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7995 "VideoSupport.c"
- }
-#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 7999 "VideoSupport.c"
- }
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = video_table_get_instance ();
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = _tmp7_;
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = self->priv->backing_row;
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _tmp9_->video_id;
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = time_val;
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = _tmp11_.tv_sec;
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_set_timestamp (_tmp8_, &_tmp10_, (time_t) _tmp12_, &_inner_error_);
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp8_);
-#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8019 "VideoSupport.c"
- goto __finally540;
- }
-#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = self->priv->backing_row;
-#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = time_val;
-#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = _tmp14_.tv_sec;
-#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_->timestamp = (time_t) _tmp15_;
-#line 8030 "VideoSupport.c"
- }
- __finally540:
- {
- VideoRow* _tmp16_;
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = self->priv->backing_row;
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8039 "VideoSupport.c"
- }
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 8045 "VideoSupport.c"
- goto __catch539_database_error;
- }
-#line 839 "/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);
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8054 "VideoSupport.c"
- }
- }
- }
- goto __finally539;
- __catch539_database_error:
- {
- GError* err = NULL;
- GError* _tmp17_;
-#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = err;
-#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp17_);
-#line 849 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 849 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8075 "VideoSupport.c"
- }
- __finally539:
-#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 838 "/home/jens/Source/shotwell/src/VideoSupport.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 838 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8086 "VideoSupport.c"
- }
-#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = alteration_new ("metadata", "master-timestamp");
-#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = _tmp18_;
-#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp19_);
-#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp19_);
-#line 8096 "VideoSupport.c"
-}
-
-
-gchar*
-video_get_filename (Video* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
-#line 855 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (self), NULL);
-#line 8107 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8114 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->filepath;
-#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 8127 "VideoSupport.c"
- {
- VideoRow* _tmp4_;
-#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8134 "VideoSupport.c"
- }
-#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8138 "VideoSupport.c"
- }
- __finally541:
- {
- VideoRow* _tmp5_;
-#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->priv->backing_row;
-#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8147 "VideoSupport.c"
- }
-#line 856 "/home/jens/Source/shotwell/src/VideoSupport.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 856 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 8155 "VideoSupport.c"
- }
-}
-
-
-static GFile*
-video_real_get_file (MediaSource* base)
-{
- Video * self;
- GFile* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 861 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_get_filename (self);
-#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = g_file_new_for_path (_tmp1_);
-#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp1_);
-#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8185 "VideoSupport.c"
-}
-
-
-static GFile*
-video_real_get_master_file (MediaSource* base)
-{
- Video * self;
- GFile* result = NULL;
- GFile* _tmp0_;
-#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp0_;
-#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8203 "VideoSupport.c"
-}
-
-
-void
-video_export (Video* self,
- GFile* dest_file,
- GError** error)
-{
- GFile* source_file = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO (self));
-#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_IS_FILE (dest_file));
-#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_get_filename (self);
-#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = g_file_new_for_path (_tmp1_);
-#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp1_);
-#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- source_file = _tmp3_;
-#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_file_copy (source_file, dest_file, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_);
-#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (source_file);
-#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8244 "VideoSupport.c"
- }
-#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (source_file);
-#line 8248 "VideoSupport.c"
-}
-
-
-gdouble
-video_get_clip_duration (Video* self)
-{
- gdouble result = 0.0;
- GError * _inner_error_ = NULL;
-#line 875 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (self), 0.0);
-#line 8259 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
- gdouble _tmp5_ = 0.0;
-#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8267 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- gdouble _tmp2_;
-#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->clip_duration;
-#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 8277 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8284 "VideoSupport.c"
- }
-#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8288 "VideoSupport.c"
- }
- __finally542:
- {
- VideoRow* _tmp4_;
-#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8297 "VideoSupport.c"
- }
-#line 876 "/home/jens/Source/shotwell/src/VideoSupport.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 876 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp5_;
-#line 8305 "VideoSupport.c"
- }
-}
-
-
-gboolean
-video_get_is_interpretable (Video* self)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 881 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (self), FALSE);
-#line 8317 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8325 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- gboolean _tmp2_;
-#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->is_interpretable;
-#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 8335 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8342 "VideoSupport.c"
- }
-#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8346 "VideoSupport.c"
- }
- __finally543:
- {
- VideoRow* _tmp4_;
-#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8355 "VideoSupport.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/VideoSupport.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 882 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp5_;
-#line 8363 "VideoSupport.c"
- }
-}
-
-
-static void
-video_set_is_interpretable (Video* self,
- gboolean is_interpretable)
-{
- GError * _inner_error_ = NULL;
-#line 887 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO (self));
-#line 8375 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8382 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- gboolean _tmp2_;
- VideoRow* _tmp4_;
-#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->is_interpretable;
-#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp2_ == is_interpretable) {
-#line 8393 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8400 "VideoSupport.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8404 "VideoSupport.c"
- }
-#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_->is_interpretable = is_interpretable;
-#line 8410 "VideoSupport.c"
- }
- __finally544:
- {
- VideoRow* _tmp5_;
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->priv->backing_row;
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8419 "VideoSupport.c"
- }
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.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 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8429 "VideoSupport.c"
- }
- }
- {
- VideoTable* _tmp6_;
- VideoTable* _tmp7_;
- VideoID _tmp8_ = {0};
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = video_table_get_instance ();
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_;
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (self, &_tmp8_);
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_update_is_interpretable (_tmp7_, &_tmp8_, is_interpretable, &_inner_error_);
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp7_);
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 8450 "VideoSupport.c"
- goto __catch545_database_error;
- }
-#line 896 "/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);
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8459 "VideoSupport.c"
- }
- }
- goto __finally545;
- __catch545_database_error:
- {
- GError* e = NULL;
- GError* _tmp9_;
-#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = e;
-#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp9_);
-#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 8477 "VideoSupport.c"
- }
- __finally545:
-#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 895 "/home/jens/Source/shotwell/src/VideoSupport.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 895 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8488 "VideoSupport.c"
- }
-}
-
-
-VideoInterpretableResults*
-video_check_is_interpretable (Video* self)
-{
- VideoInterpretableResults* result = NULL;
- VideoInterpretableResults* results = NULL;
- VideoInterpretableResults* _tmp0_;
- gdouble clip_duration = 0.0;
- GdkPixbuf* preview_frame = NULL;
- VideoReader* backing_file_reader = NULL;
- GFile* _tmp1_;
- GFile* _tmp2_;
- VideoReader* _tmp3_;
- VideoReader* _tmp4_;
- GFile* _tmp13_;
- GFile* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- VideoInterpretableResults* _tmp21_;
- VideoInterpretableResults* _tmp22_;
- VideoInterpretableResults* _tmp23_;
- GdkPixbuf* _tmp24_;
- GdkPixbuf* _tmp25_;
- GError * _inner_error_ = NULL;
-#line 905 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (self), NULL);
-#line 906 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_interpretable_results_new (self);
-#line 906 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- results = _tmp0_;
-#line 908 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- clip_duration = -1.0;
-#line 909 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- preview_frame = NULL;
-#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = video_reader_new (_tmp2_);
-#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_;
-#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp2_);
-#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- backing_file_reader = _tmp4_;
-#line 8538 "VideoSupport.c"
- {
- gdouble _tmp5_ = 0.0;
- VideoReader* _tmp6_;
- VideoReader* _tmp7_;
- GdkPixbuf* _tmp8_;
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = backing_file_reader;
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = video_reader_read_clip_duration (_tmp6_, &_inner_error_);
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == VIDEO_ERROR) {
-#line 8552 "VideoSupport.c"
- goto __catch546_video_error;
- }
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (backing_file_reader);
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_interpretable_results_unref0 (results);
-#line 913 "/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);
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 8567 "VideoSupport.c"
- }
-#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- clip_duration = _tmp5_;
-#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = backing_file_reader;
-#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = video_reader_read_preview_frame (_tmp7_);
-#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- preview_frame = _tmp8_;
-#line 8579 "VideoSupport.c"
- }
- goto __finally546;
- __catch546_video_error:
- {
- GError* e = NULL;
- VideoInterpretableResults* _tmp9_;
- VideoInterpretableResults* _tmp10_;
-#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 918 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = results;
-#line 918 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_->update_interpretable = video_get_is_interpretable (self);
-#line 919 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = results;
-#line 919 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_->is_interpretable = FALSE;
-#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = results;
-#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (backing_file_reader);
-#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8609 "VideoSupport.c"
- }
- __finally546:
-#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (backing_file_reader);
-#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_interpretable_results_unref0 (results);
-#line 912 "/home/jens/Source/shotwell/src/VideoSupport.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 912 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 8626 "VideoSupport.c"
- }
-#line 925 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (video_get_is_interpretable (self)) {
-#line 8630 "VideoSupport.c"
- VideoInterpretableResults* _tmp11_;
- VideoInterpretableResults* _tmp12_;
-#line 926 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = results;
-#line 926 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_->update_interpretable = FALSE;
-#line 927 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = results;
-#line 927 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_->is_interpretable = TRUE;
-#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = results;
-#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (backing_file_reader);
-#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8649 "VideoSupport.c"
- }
-#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = _tmp13_;
-#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = g_file_get_basename (_tmp14_);
-#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = _tmp15_;
-#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_debug ("VideoSupport.vala:932: video %s has become interpretable", _tmp16_);
-#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp16_);
-#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp14_);
-#line 8665 "VideoSupport.c"
- {
- VideoRow* _tmp17_;
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = self->priv->backing_row;
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8672 "VideoSupport.c"
- {
- VideoRow* _tmp18_;
- gdouble _tmp19_;
-#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = self->priv->backing_row;
-#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = clip_duration;
-#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_->clip_duration = _tmp19_;
-#line 8682 "VideoSupport.c"
- }
- __finally547:
- {
- VideoRow* _tmp20_;
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = self->priv->backing_row;
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8691 "VideoSupport.c"
- }
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (backing_file_reader);
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_interpretable_results_unref0 (results);
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.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 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 8707 "VideoSupport.c"
- }
- }
-#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = results;
-#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_->update_interpretable = TRUE;
-#line 940 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = results;
-#line 940 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_->is_interpretable = TRUE;
-#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = results;
-#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = preview_frame;
-#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp25_ = _g_object_ref0 (_tmp24_);
-#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp23_->new_thumbnail);
-#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_->new_thumbnail = _tmp25_;
-#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = results;
-#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (backing_file_reader);
-#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (preview_frame);
-#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8736 "VideoSupport.c"
-}
-
-
-static void
-video_real_destroy (DataSource* base)
-{
- Video * self;
- VideoID video_id = {0};
- VideoID _tmp0_ = {0};
- GError * _inner_error_ = NULL;
-#line 946 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 947 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (self, &_tmp0_);
-#line 947 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_id = _tmp0_;
-#line 949 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 8755 "VideoSupport.c"
- {
- VideoTable* _tmp1_;
- VideoTable* _tmp2_;
- VideoID _tmp3_;
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = video_table_get_instance ();
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = video_id;
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_remove (_tmp2_, &_tmp3_, &_inner_error_);
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp2_);
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 8774 "VideoSupport.c"
- goto __catch548_database_error;
- }
-#line 952 "/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);
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8783 "VideoSupport.c"
- }
- }
- goto __finally548;
- __catch548_database_error:
- {
- GError* err = NULL;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _tmp4_;
-#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_error ("VideoSupport.vala:954: failed to remove video %s from video table", _tmp5_);
-#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp5_);
-#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 8806 "VideoSupport.c"
- }
- __finally548:
-#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 951 "/home/jens/Source/shotwell/src/VideoSupport.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 951 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 8817 "VideoSupport.c"
- }
-#line 957 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- DATA_SOURCE_CLASS (video_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIDEO_SOURCE, VideoSource), TYPE_DATA_SOURCE, DataSource));
-#line 8821 "VideoSupport.c"
-}
-
-
-static gboolean
-video_real_internal_delete_backing (DataSource* base,
- GError** error)
-{
- Video * self;
- gboolean result = FALSE;
- gboolean ret = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 960 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 961 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ret = media_source_delete_original_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = DATA_SOURCE_CLASS (video_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIDEO_SOURCE, VideoSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_);
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8843 "VideoSupport.c"
- gboolean _tmp2_ = FALSE;
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp2_;
-#line 8849 "VideoSupport.c"
- }
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp1_) {
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = ret;
-#line 8855 "VideoSupport.c"
- } else {
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = FALSE;
-#line 8859 "VideoSupport.c"
- }
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp0_;
-#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8865 "VideoSupport.c"
-}
-
-
-static void
-video_notify_flags_altered (Video* self,
- Alteration* additional_alteration)
-{
- Alteration* alteration = NULL;
- Alteration* _tmp0_;
- Alteration* _tmp3_;
-#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO (self));
-#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration));
-#line 968 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = alteration_new ("metadata", "flags");
-#line 968 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- alteration = _tmp0_;
-#line 969 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (additional_alteration != NULL) {
-#line 8886 "VideoSupport.c"
- Alteration* _tmp1_;
- Alteration* _tmp2_;
-#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = alteration;
-#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = alteration_compress (_tmp1_, additional_alteration);
-#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (alteration);
-#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- alteration = _tmp2_;
-#line 8897 "VideoSupport.c"
- }
-#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = alteration;
-#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp3_);
-#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (alteration);
-#line 8905 "VideoSupport.c"
-}
-
-
-guint64
-video_add_flags (Video* self,
- guint64 flags_to_add,
- Alteration* additional_alteration)
-{
- guint64 result = 0ULL;
- guint64 new_flags = 0ULL;
- GError * _inner_error_ = NULL;
-#line 975 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (self), 0ULL);
-#line 975 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 8921 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8928 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- guint64 _tmp2_;
- VideoRow* _tmp3_;
- guint64 _tmp4_;
- guint64 _tmp5_;
- VideoRow* _tmp21_;
- guint64 _tmp22_;
-#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->flags;
-#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- new_flags = media_source_internal_add_flags (_tmp2_, flags_to_add);
-#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_->flags;
-#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = new_flags;
-#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp4_ == _tmp5_) {
-#line 8951 "VideoSupport.c"
- VideoRow* _tmp6_;
- guint64 _tmp7_;
-#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->backing_row;
-#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_->flags;
-#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp7_;
-#line 8960 "VideoSupport.c"
- {
- VideoRow* _tmp8_;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->priv->backing_row;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8967 "VideoSupport.c"
- }
-#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 8971 "VideoSupport.c"
- }
- {
- VideoTable* _tmp9_;
- VideoTable* _tmp10_;
- VideoID _tmp11_ = {0};
- guint64 _tmp12_;
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = video_table_get_instance ();
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _tmp9_;
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (self, &_tmp11_);
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = new_flags;
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_set_flags (_tmp10_, &_tmp11_, _tmp12_, &_inner_error_);
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp10_);
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8992 "VideoSupport.c"
- guint64 _tmp14_ = 0ULL;
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 8996 "VideoSupport.c"
- goto __catch550_database_error;
- }
- {
- VideoRow* _tmp13_;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = self->priv->backing_row;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9005 "VideoSupport.c"
- }
-#line 983 "/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);
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp14_;
-#line 9013 "VideoSupport.c"
- }
- }
- goto __finally550;
- __catch550_database_error:
- {
- GError* e = NULL;
- GError* _tmp15_;
- VideoRow* _tmp16_;
- guint64 _tmp17_;
-#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = e;
-#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp15_);
-#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = self->priv->backing_row;
-#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = _tmp16_->flags;
-#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp17_;
-#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 9039 "VideoSupport.c"
- {
- VideoRow* _tmp18_;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = self->priv->backing_row;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9046 "VideoSupport.c"
- }
-#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 9050 "VideoSupport.c"
- }
- __finally550:
-#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9055 "VideoSupport.c"
- guint64 _tmp20_ = 0ULL;
- {
- VideoRow* _tmp19_;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = self->priv->backing_row;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9063 "VideoSupport.c"
- }
-#line 982 "/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);
-#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp20_;
-#line 9071 "VideoSupport.c"
- }
-#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = self->priv->backing_row;
-#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = new_flags;
-#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_->flags = _tmp22_;
-#line 9079 "VideoSupport.c"
- }
- __finally549:
- {
- VideoRow* _tmp23_;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = self->priv->backing_row;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9088 "VideoSupport.c"
- }
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9092 "VideoSupport.c"
- guint64 _tmp24_ = 0ULL;
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.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 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp24_;
-#line 9100 "VideoSupport.c"
- }
- }
-#line 992 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_notify_flags_altered (self, additional_alteration);
-#line 994 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = new_flags;
-#line 994 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 9109 "VideoSupport.c"
-}
-
-
-guint64
-video_remove_flags (Video* self,
- guint64 flags_to_remove,
- Alteration* additional_alteration)
-{
- guint64 result = 0ULL;
- guint64 new_flags = 0ULL;
- GError * _inner_error_ = NULL;
-#line 997 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (self), 0ULL);
-#line 997 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 9125 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 9132 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- guint64 _tmp2_;
- VideoRow* _tmp3_;
- guint64 _tmp4_;
- guint64 _tmp5_;
- VideoRow* _tmp21_;
- guint64 _tmp22_;
-#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->flags;
-#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- new_flags = media_source_internal_remove_flags (_tmp2_, flags_to_remove);
-#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_->flags;
-#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = new_flags;
-#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp4_ == _tmp5_) {
-#line 9155 "VideoSupport.c"
- VideoRow* _tmp6_;
- guint64 _tmp7_;
-#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->backing_row;
-#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_->flags;
-#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp7_;
-#line 9164 "VideoSupport.c"
- {
- VideoRow* _tmp8_;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->priv->backing_row;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9171 "VideoSupport.c"
- }
-#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 9175 "VideoSupport.c"
- }
- {
- VideoTable* _tmp9_;
- VideoTable* _tmp10_;
- VideoID _tmp11_ = {0};
- guint64 _tmp12_;
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = video_table_get_instance ();
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _tmp9_;
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (self, &_tmp11_);
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = new_flags;
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_set_flags (_tmp10_, &_tmp11_, _tmp12_, &_inner_error_);
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp10_);
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9196 "VideoSupport.c"
- guint64 _tmp14_ = 0ULL;
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 9200 "VideoSupport.c"
- goto __catch552_database_error;
- }
- {
- VideoRow* _tmp13_;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = self->priv->backing_row;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9209 "VideoSupport.c"
- }
-#line 1005 "/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);
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp14_;
-#line 9217 "VideoSupport.c"
- }
- }
- goto __finally552;
- __catch552_database_error:
- {
- GError* e = NULL;
- GError* _tmp15_;
- VideoRow* _tmp16_;
- guint64 _tmp17_;
-#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- e = _inner_error_;
-#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = e;
-#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp15_);
-#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = self->priv->backing_row;
-#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = _tmp16_->flags;
-#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp17_;
-#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (e);
-#line 9243 "VideoSupport.c"
- {
- VideoRow* _tmp18_;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = self->priv->backing_row;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9250 "VideoSupport.c"
- }
-#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 9254 "VideoSupport.c"
- }
- __finally552:
-#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9259 "VideoSupport.c"
- guint64 _tmp20_ = 0ULL;
- {
- VideoRow* _tmp19_;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = self->priv->backing_row;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9267 "VideoSupport.c"
- }
-#line 1004 "/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);
-#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp20_;
-#line 9275 "VideoSupport.c"
- }
-#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = self->priv->backing_row;
-#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = new_flags;
-#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_->flags = _tmp22_;
-#line 9283 "VideoSupport.c"
- }
- __finally551:
- {
- VideoRow* _tmp23_;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = self->priv->backing_row;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9292 "VideoSupport.c"
- }
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9296 "VideoSupport.c"
- guint64 _tmp24_ = 0ULL;
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.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 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp24_;
-#line 9304 "VideoSupport.c"
- }
- }
-#line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_notify_flags_altered (self, additional_alteration);
-#line 1016 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = new_flags;
-#line 1016 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 9313 "VideoSupport.c"
-}
-
-
-gboolean
-video_is_flag_set (Video* self,
- guint64 flag)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 1019 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (self), FALSE);
-#line 9325 "VideoSupport.c"
- {
- VideoRow* _tmp0_;
- gboolean _tmp5_ = FALSE;
-#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->backing_row;
-#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 9333 "VideoSupport.c"
- {
- VideoRow* _tmp1_;
- guint64 _tmp2_;
-#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_->flags;
-#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = media_source_internal_is_flag_set (_tmp2_, flag);
-#line 9343 "VideoSupport.c"
- {
- VideoRow* _tmp3_;
-#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->priv->backing_row;
-#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9350 "VideoSupport.c"
- }
-#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 9354 "VideoSupport.c"
- }
- __finally553:
- {
- VideoRow* _tmp4_;
-#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->priv->backing_row;
-#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9363 "VideoSupport.c"
- }
-#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.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 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return _tmp5_;
-#line 9371 "VideoSupport.c"
- }
-}
-
-
-static void
-video_real_set_master_file (Monitorable* base,
- GFile* file)
-{
- Video * self;
- gchar* new_filepath = NULL;
- gchar* _tmp0_;
- gchar* old_filepath = NULL;
- const gchar* _tmp19_;
- const gchar* _tmp20_;
- GFile* _tmp21_;
- GFile* _tmp22_;
- Alteration* _tmp23_;
- Alteration* _tmp24_;
- GError * _inner_error_ = NULL;
-#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 1026 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = g_file_get_path (file);
-#line 1026 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- new_filepath = _tmp0_;
-#line 1027 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- old_filepath = NULL;
-#line 9401 "VideoSupport.c"
- {
- {
- VideoRow* _tmp1_;
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->backing_row;
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 9409 "VideoSupport.c"
- {
- VideoRow* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- VideoRow* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- VideoTable* _tmp9_;
- VideoTable* _tmp10_;
- VideoRow* _tmp11_;
- VideoID _tmp12_;
- const gchar* _tmp13_;
- VideoRow* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
-#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->backing_row;
-#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_->filepath;
-#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = new_filepath;
-#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_strcmp0 (_tmp3_, _tmp4_) == 0) {
-#line 9433 "VideoSupport.c"
- {
- VideoRow* _tmp5_;
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->priv->backing_row;
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9440 "VideoSupport.c"
- }
-#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (old_filepath);
-#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_filepath);
-#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 9448 "VideoSupport.c"
- }
-#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->backing_row;
-#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_->filepath;
-#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = g_strdup (_tmp7_);
-#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (old_filepath);
-#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- old_filepath = _tmp8_;
-#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = video_table_get_instance ();
-#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _tmp9_;
-#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = self->priv->backing_row;
-#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = _tmp11_->video_id;
-#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = new_filepath;
-#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_table_set_filepath (_tmp10_, &_tmp12_, _tmp13_, &_inner_error_);
-#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp10_);
-#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9476 "VideoSupport.c"
- goto __finally555;
- }
-#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = self->priv->backing_row;
-#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = new_filepath;
-#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp14_->filepath);
-#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_->filepath = _tmp16_;
-#line 9489 "VideoSupport.c"
- }
- __finally555:
- {
- VideoRow* _tmp17_;
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = self->priv->backing_row;
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9498 "VideoSupport.c"
- }
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 9504 "VideoSupport.c"
- goto __catch554_database_error;
- }
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (old_filepath);
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_filepath);
-#line 1029 "/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);
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 9517 "VideoSupport.c"
- }
- }
- }
- goto __finally554;
- __catch554_database_error:
- {
- GError* err = NULL;
- GError* _tmp18_;
-#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = err;
-#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp18_);
-#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (old_filepath);
-#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_filepath);
-#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 9542 "VideoSupport.c"
- }
- __finally554:
-#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (old_filepath);
-#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_filepath);
-#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.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 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 9557 "VideoSupport.c"
- }
-#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = old_filepath;
-#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_assert (_tmp19_ != NULL, "old_filepath != null");
-#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = old_filepath;
-#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = g_file_new_for_path (_tmp20_);
-#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = _tmp21_;
-#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- media_source_notify_master_replaced (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp22_, file);
-#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp22_);
-#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = alteration_new_from_list ("backing:master,metadata:name");
-#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = _tmp23_;
-#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp24_);
-#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp24_);
-#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (old_filepath);
-#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (new_filepath);
-#line 9585 "VideoSupport.c"
-}
-
-
-VideoMetadata*
-video_read_metadata (Video* self,
- GError** error)
-{
- VideoMetadata* result = NULL;
- VideoMetadata* _tmp0_ = NULL;
- GFile* _tmp1_;
- GFile* _tmp2_;
- VideoReader* _tmp3_;
- VideoReader* _tmp4_;
- VideoMetadata* _tmp5_;
- VideoMetadata* _tmp6_;
- VideoMetadata* _tmp7_;
- GError * _inner_error_ = NULL;
-#line 1050 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (self), NULL);
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = video_reader_new (_tmp2_);
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_;
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = video_reader_read_metadata (_tmp4_, &_inner_error_);
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = _tmp5_;
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_reader_unref0 (_tmp4_);
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp2_);
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _tmp6_;
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 9629 "VideoSupport.c"
- }
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp0_;
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = NULL;
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp7_;
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _media_metadata_unref0 (_tmp0_);
-#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 9641 "VideoSupport.c"
-}
-
-
-VideoInterpretableResults*
-video_interpretable_results_construct (GType object_type,
- Video* video)
-{
- VideoInterpretableResults* self = NULL;
- Video* _tmp0_;
-#line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO (video), NULL);
-#line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = (VideoInterpretableResults*) g_type_create_instance (object_type);
-#line 337 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _g_object_ref0 (video);
-#line 337 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->video);
-#line 337 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->video = _tmp0_;
-#line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self;
-#line 9663 "VideoSupport.c"
-}
-
-
-VideoInterpretableResults*
-video_interpretable_results_new (Video* video)
-{
-#line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return video_interpretable_results_construct (VIDEO_TYPE_INTERPRETABLE_RESULTS, video);
-#line 9672 "VideoSupport.c"
-}
-
-
-void
-video_interpretable_results_foreground_finish (VideoInterpretableResults* self)
-{
- gboolean _tmp0_;
- GdkPixbuf* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 340 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (VIDEO_IS_INTERPRETABLE_RESULTS (self));
-#line 341 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->update_interpretable;
-#line 341 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_) {
-#line 9688 "VideoSupport.c"
- Video* _tmp1_;
- gboolean _tmp2_;
-#line 342 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->video;
-#line 342 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->is_interpretable;
-#line 342 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_set_is_interpretable (_tmp1_, _tmp2_);
-#line 9697 "VideoSupport.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = self->new_thumbnail;
-#line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp3_ != NULL) {
-#line 9703 "VideoSupport.c"
- {
- Video* _tmp4_;
- GdkPixbuf* _tmp5_;
- Video* _tmp6_;
- GdkPixbuf* _tmp7_;
- Video* _tmp8_;
-#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = self->video;
-#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = self->new_thumbnail;
-#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- thumbnail_cache_replace (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), THUMBNAIL_CACHE_SIZE_BIG, _tmp5_, &_inner_error_);
-#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9718 "VideoSupport.c"
- goto __catch556_g_error;
- }
-#line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->video;
-#line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = self->new_thumbnail;
-#line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- thumbnail_cache_replace (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), THUMBNAIL_CACHE_SIZE_MEDIUM, _tmp7_, &_inner_error_);
-#line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9729 "VideoSupport.c"
- goto __catch556_g_error;
- }
-#line 349 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = self->video;
-#line 349 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 9736 "VideoSupport.c"
- }
- goto __finally556;
- __catch556_g_error:
- {
- GError* err = NULL;
- Video* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GError* _tmp12_;
- const gchar* _tmp13_;
-#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- err = _inner_error_;
-#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _inner_error_ = NULL;
-#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = self->video;
-#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
-#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = _tmp10_;
-#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = err;
-#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = _tmp12_->message;
-#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_message ("VideoSupport.vala:351: Unable to update video thumbnails for %s: %s", _tmp11_, _tmp13_);
-#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp11_);
-#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_error_free0 (err);
-#line 9767 "VideoSupport.c"
- }
- __finally556:
-#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 345 "/home/jens/Source/shotwell/src/VideoSupport.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 345 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_clear_error (&_inner_error_);
-#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 9778 "VideoSupport.c"
- }
- }
-}
-
-
-static void
-video_value_interpretable_results_init (GValue* value)
-{
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 9789 "VideoSupport.c"
-}
-
-
-static void
-video_value_interpretable_results_free_value (GValue* value)
-{
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (value->data[0].v_pointer) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpretable_results_unref (value->data[0].v_pointer);
-#line 9800 "VideoSupport.c"
- }
-}
-
-
-static void
-video_value_interpretable_results_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (src_value->data[0].v_pointer) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dest_value->data[0].v_pointer = video_interpretable_results_ref (src_value->data[0].v_pointer);
-#line 9813 "VideoSupport.c"
- } else {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 9817 "VideoSupport.c"
- }
-}
-
-
-static gpointer
-video_value_interpretable_results_peek_pointer (const GValue* value)
-{
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return value->data[0].v_pointer;
-#line 9827 "VideoSupport.c"
-}
-
-
-static gchar*
-video_value_interpretable_results_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (collect_values[0].v_pointer) {
-#line 9839 "VideoSupport.c"
- VideoInterpretableResults * object;
- object = collect_values[0].v_pointer;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 9846 "VideoSupport.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.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 9850 "VideoSupport.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = video_interpretable_results_ref (object);
-#line 9854 "VideoSupport.c"
- } else {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 9858 "VideoSupport.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 9862 "VideoSupport.c"
-}
-
-
-static gchar*
-video_value_interpretable_results_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- VideoInterpretableResults ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!object_p) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 9878 "VideoSupport.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!value->data[0].v_pointer) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = NULL;
-#line 9884 "VideoSupport.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = value->data[0].v_pointer;
-#line 9888 "VideoSupport.c"
- } else {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *object_p = video_interpretable_results_ref (value->data[0].v_pointer);
-#line 9892 "VideoSupport.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return NULL;
-#line 9896 "VideoSupport.c"
-}
-
-
-GParamSpec*
-video_param_spec_interpretable_results (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- VideoParamSpecInterpretableResults* spec;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (g_type_is_a (object_type, VIDEO_TYPE_INTERPRETABLE_RESULTS), NULL);
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return G_PARAM_SPEC (spec);
-#line 9916 "VideoSupport.c"
-}
-
-
-gpointer
-video_value_get_interpretable_results (const GValue* value)
-{
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIDEO_TYPE_INTERPRETABLE_RESULTS), NULL);
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return value->data[0].v_pointer;
-#line 9927 "VideoSupport.c"
-}
-
-
-void
-video_value_set_interpretable_results (GValue* value,
- gpointer v_object)
-{
- VideoInterpretableResults * old;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIDEO_TYPE_INTERPRETABLE_RESULTS));
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- old = value->data[0].v_pointer;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (v_object) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VIDEO_TYPE_INTERPRETABLE_RESULTS));
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = v_object;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpretable_results_ref (value->data[0].v_pointer);
-#line 9950 "VideoSupport.c"
- } else {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 9954 "VideoSupport.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (old) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpretable_results_unref (old);
-#line 9960 "VideoSupport.c"
- }
-}
-
-
-void
-video_value_take_interpretable_results (GValue* value,
- gpointer v_object)
-{
- VideoInterpretableResults * old;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIDEO_TYPE_INTERPRETABLE_RESULTS));
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- old = value->data[0].v_pointer;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (v_object) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VIDEO_TYPE_INTERPRETABLE_RESULTS));
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = v_object;
-#line 9982 "VideoSupport.c"
- } else {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- value->data[0].v_pointer = NULL;
-#line 9986 "VideoSupport.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (old) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpretable_results_unref (old);
-#line 9992 "VideoSupport.c"
- }
-}
-
-
-static void
-video_interpretable_results_class_init (VideoInterpretableResultsClass * klass)
-{
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_interpretable_results_parent_class = g_type_class_peek_parent (klass);
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((VideoInterpretableResultsClass *) klass)->finalize = video_interpretable_results_finalize;
-#line 10004 "VideoSupport.c"
-}
-
-
-static void
-video_interpretable_results_instance_init (VideoInterpretableResults * self)
-{
-#line 332 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->update_interpretable = FALSE;
-#line 333 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->is_interpretable = FALSE;
-#line 334 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->new_thumbnail = NULL;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->ref_count = 1;
-#line 10019 "VideoSupport.c"
-}
-
-
-static void
-video_interpretable_results_finalize (VideoInterpretableResults * obj)
-{
- VideoInterpretableResults * self;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResults);
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_signal_handlers_destroy (self);
-#line 331 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->video);
-#line 334 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->new_thumbnail);
-#line 10035 "VideoSupport.c"
-}
-
-
-GType
-video_interpretable_results_get_type (void)
-{
- static volatile gsize video_interpretable_results_type_id__volatile = 0;
- if (g_once_init_enter (&video_interpretable_results_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { video_value_interpretable_results_init, video_value_interpretable_results_free_value, video_value_interpretable_results_copy_value, video_value_interpretable_results_peek_pointer, "p", video_value_interpretable_results_collect_value, "p", video_value_interpretable_results_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (VideoInterpretableResultsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_interpretable_results_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoInterpretableResults), 0, (GInstanceInitFunc) video_interpretable_results_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType video_interpretable_results_type_id;
- video_interpretable_results_type_id = g_type_register_fundamental (g_type_fundamental_next (), "VideoInterpretableResults", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&video_interpretable_results_type_id__volatile, video_interpretable_results_type_id);
- }
- return video_interpretable_results_type_id__volatile;
-}
-
-
-gpointer
-video_interpretable_results_ref (gpointer instance)
-{
- VideoInterpretableResults * self;
- self = instance;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return instance;
-#line 10064 "VideoSupport.c"
-}
-
-
-void
-video_interpretable_results_unref (gpointer instance)
-{
- VideoInterpretableResults * self;
- self = instance;
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- VIDEO_INTERPRETABLE_RESULTS_GET_CLASS (self)->finalize (self);
-#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 10079 "VideoSupport.c"
- }
-}
-
-
-static void
-video_class_init (VideoClass * klass)
-{
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_parent_class = g_type_class_peek_parent (klass);
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_type_class_add_private (klass, sizeof (VideoPrivate));
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->commit_backlinks = (void (*) (DataSource *, SourceCollection*, const gchar*)) video_real_commit_backlinks;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->set_event_id = (gboolean (*) (MediaSource *, EventID*)) video_real_set_event_id;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_backing_files_state = (BackingFileState** (*) (MediaSource *, int*)) video_real_get_backing_files_state;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) video_real_get_thumbnail;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_master_md5 = (gchar* (*) (MediaSource *)) video_real_get_master_md5;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*) (MediaSource *, Scaling*, GError**)) video_real_get_preview_pixbuf;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) video_real_create_thumbnail;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) video_real_get_typename;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) video_real_get_instance_id;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_import_id = (void (*) (MediaSource *, ImportID*)) video_real_get_import_id;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) video_real_get_preferred_thumbnail_format;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_title = (gchar* (*) (MediaSource *)) video_real_get_title;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->set_title = (void (*) (MediaSource *, const gchar*)) video_real_set_title;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_comment = (gchar* (*) (MediaSource *)) video_real_get_comment;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->set_comment = (gboolean (*) (MediaSource *, const gchar*)) video_real_set_comment;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_rating = (Rating (*) (MediaSource *)) video_real_get_rating;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->set_rating = (void (*) (MediaSource *, Rating)) video_real_set_rating;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->increase_rating = (void (*) (MediaSource *)) video_real_increase_rating;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->decrease_rating = (void (*) (MediaSource *)) video_real_decrease_rating;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->is_trashed = (gboolean (*) (MediaSource *)) video_real_is_trashed;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->is_offline = (gboolean (*) (MediaSource *)) video_real_is_offline;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->mark_offline = (void (*) (MediaSource *)) video_real_mark_offline;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->mark_online = (void (*) (MediaSource *)) video_real_mark_online;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->trash = (void (*) (MediaSource *)) video_real_trash;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->untrash = (void (*) (MediaSource *)) video_real_untrash;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_event_id = (void (*) (MediaSource *, EventID*)) video_real_get_event_id;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) video_real_to_string;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_exposure_time = (time_t (*) (MediaSource *)) video_real_get_exposure_time;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_dimensions = (void (*) (MediaSource *, PhotoException, Dimensions*)) video_real_get_dimensions;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_filesize = (guint64 (*) (MediaSource *)) video_real_get_filesize;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_master_filesize = (guint64 (*) (MediaSource *)) video_real_get_master_filesize;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_timestamp = (time_t (*) (MediaSource *)) video_real_get_timestamp;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_file = (GFile* (*) (MediaSource *)) video_real_get_file;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_master_file = (GFile* (*) (MediaSource *)) video_real_get_master_file;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) video_real_destroy;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) video_real_internal_delete_backing;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- G_OBJECT_CLASS (klass)->finalize = video_finalize;
-#line 10165 "VideoSupport.c"
-}
-
-
-static void
-video_flaggable_interface_init (FlaggableIface * iface)
-{
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_flaggable_parent_iface = g_type_interface_peek_parent (iface);
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->is_flagged = (gboolean (*) (Flaggable *)) video_real_is_flagged;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->mark_flagged = (void (*) (Flaggable *)) video_real_mark_flagged;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->mark_unflagged = (void (*) (Flaggable *)) video_real_mark_unflagged;
-#line 10180 "VideoSupport.c"
-}
-
-
-static void
-video_monitorable_interface_init (MonitorableIface * iface)
-{
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_monitorable_parent_iface = g_type_interface_peek_parent (iface);
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->is_offline = (gboolean (*) (Monitorable *)) video_real_is_offline;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->mark_offline = (void (*) (Monitorable *)) video_real_mark_offline;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->mark_online = (void (*) (Monitorable *)) video_real_mark_online;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->set_master_timestamp = (void (*) (Monitorable *, GFileInfo*)) video_real_set_master_timestamp;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->set_master_file = (void (*) (Monitorable *, GFile*)) video_real_set_master_file;
-#line 10199 "VideoSupport.c"
-}
-
-
-static void
-video_dateable_interface_init (DateableIface * iface)
-{
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_dateable_parent_iface = g_type_interface_peek_parent (iface);
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->get_exposure_time = (time_t (*) (Dateable *)) video_real_get_exposure_time;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- iface->set_exposure_time = (void (*) (Dateable *, time_t)) video_real_set_exposure_time;
-#line 10212 "VideoSupport.c"
-}
-
-
-static void
-video_instance_init (Video * self)
-{
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv = VIDEO_GET_PRIVATE (self);
-#line 364 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_init (&self->priv->__lock_backing_row);
-#line 10223 "VideoSupport.c"
-}
-
-
-static void
-video_finalize (GObject * obj)
-{
- Video * self;
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO, Video);
-#line 364 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_rec_mutex_clear (&self->priv->__lock_backing_row);
-#line 364 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_row_unref0 (self->priv->backing_row);
-#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- G_OBJECT_CLASS (video_parent_class)->finalize (obj);
-#line 10239 "VideoSupport.c"
-}
-
-
-GType
-video_get_type (void)
-{
- static volatile gsize video_type_id__volatile = 0;
- if (g_once_init_enter (&video_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Video), 0, (GInstanceInitFunc) video_instance_init, NULL };
- static const GInterfaceInfo flaggable_info = { (GInterfaceInitFunc) video_flaggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo monitorable_info = { (GInterfaceInitFunc) video_monitorable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo dateable_info = { (GInterfaceInitFunc) video_dateable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType video_type_id;
- video_type_id = g_type_register_static (TYPE_VIDEO_SOURCE, "Video", &g_define_type_info, 0);
- g_type_add_interface_static (video_type_id, TYPE_FLAGGABLE, &flaggable_info);
- g_type_add_interface_static (video_type_id, TYPE_MONITORABLE, &monitorable_info);
- g_type_add_interface_static (video_type_id, TYPE_DATEABLE, &dateable_info);
- g_once_init_leave (&video_type_id__volatile, video_type_id);
- }
- return video_type_id__volatile;
-}
-
-
-GType
-video_source_collection_state_get_type (void)
-{
- static volatile gsize video_source_collection_state_type_id__volatile = 0;
- if (g_once_init_enter (&video_source_collection_state_type_id__volatile)) {
- static const GEnumValue values[] = {{VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN, "VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN", "unknown"}, {VIDEO_SOURCE_COLLECTION_STATE_ONLINE, "VIDEO_SOURCE_COLLECTION_STATE_ONLINE", "online"}, {VIDEO_SOURCE_COLLECTION_STATE_OFFLINE, "VIDEO_SOURCE_COLLECTION_STATE_OFFLINE", "offline"}, {VIDEO_SOURCE_COLLECTION_STATE_TRASH, "VIDEO_SOURCE_COLLECTION_STATE_TRASH", "trash"}, {0, NULL, NULL}};
- GType video_source_collection_state_type_id;
- video_source_collection_state_type_id = g_enum_register_static ("VideoSourceCollectionState", values);
- g_once_init_leave (&video_source_collection_state_type_id__volatile, video_source_collection_state_type_id);
- }
- return video_source_collection_state_type_id__volatile;
-}
-
-
-static gint
-_uint64_compare_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = uint64_compare ((guint64*) a, (guint64*) b);
-#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10286 "VideoSupport.c"
-}
-
-
-static guint64*
-_uint64_dup (guint64* self)
-{
- guint64* dup;
-#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- dup = g_new0 (guint64, 1);
-#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- memcpy (dup, self, sizeof (guint64));
-#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return dup;
-#line 10300 "VideoSupport.c"
-}
-
-
-static gint64
-_video_source_collection_get_video_key_get_source_database_key (DataSource* source,
- gpointer self)
-{
- gint64 result;
- result = video_source_collection_get_video_key (source);
-#line 1077 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10312 "VideoSupport.c"
-}
-
-
-static void
-_video_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self)
-{
-#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_source_collection_on_trashcan_contents_altered ((VideoSourceCollection*) self, added, removed);
-#line 10324 "VideoSupport.c"
-}
-
-
-static void
-_video_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self)
-{
-#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_source_collection_on_offline_contents_altered ((VideoSourceCollection*) self, added, removed);
-#line 10336 "VideoSupport.c"
-}
-
-
-VideoSourceCollection*
-video_source_collection_construct (GType object_type)
-{
- VideoSourceCollection* self = NULL;
- MediaSourceHoldingTank* _tmp0_;
- MediaSourceHoldingTank* _tmp1_;
- MediaSourceHoldingTank* _tmp2_;
- MediaSourceHoldingTank* _tmp3_;
-#line 1077 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = (VideoSourceCollection*) media_source_collection_construct (object_type, "VideoSourceCollection", _video_source_collection_get_video_key_get_source_database_key, NULL);
-#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _video_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered, self);
-#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _source_holding_tank_unref0 (_tmp1_);
-#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _video_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered, self);
-#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _source_holding_tank_unref0 (_tmp3_);
-#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return self;
-#line 10368 "VideoSupport.c"
-}
-
-
-VideoSourceCollection*
-video_source_collection_new (void)
-{
-#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return video_source_collection_construct (TYPE_VIDEO_SOURCE_COLLECTION);
-#line 10377 "VideoSupport.c"
-}
-
-
-static gboolean
-_video_source_collection_is_video_trashed_source_holding_tank_check_to_keep (DataSource* source,
- Alteration* alteration,
- gpointer self)
-{
- gboolean result;
- result = video_source_collection_is_video_trashed (source);
-#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10390 "VideoSupport.c"
-}
-
-
-static MediaSourceHoldingTank*
-video_source_collection_real_create_trashcan (MediaSourceCollection* base)
-{
- VideoSourceCollection * self;
- MediaSourceHoldingTank* result = NULL;
- MediaSourceHoldingTank* _tmp0_;
-#line 1083 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = media_source_holding_tank_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _video_source_collection_is_video_trashed_source_holding_tank_check_to_keep, NULL, _video_source_collection_get_video_key_get_source_database_key, NULL);
-#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp0_;
-#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10408 "VideoSupport.c"
-}
-
-
-static gboolean
-_video_source_collection_is_video_offline_source_holding_tank_check_to_keep (DataSource* source,
- Alteration* alteration,
- gpointer self)
-{
- gboolean result;
- result = video_source_collection_is_video_offline (source);
-#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10421 "VideoSupport.c"
-}
-
-
-static MediaSourceHoldingTank*
-video_source_collection_real_create_offline_bin (MediaSourceCollection* base)
-{
- VideoSourceCollection * self;
- MediaSourceHoldingTank* result = NULL;
- MediaSourceHoldingTank* _tmp0_;
-#line 1087 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = media_source_holding_tank_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _video_source_collection_is_video_offline_source_holding_tank_check_to_keep, NULL, _video_source_collection_get_video_key_get_source_database_key, NULL);
-#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp0_;
-#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10439 "VideoSupport.c"
-}
-
-
-static MediaMonitor*
-video_source_collection_real_create_media_monitor (MediaSourceCollection* base,
- Workers* workers,
- GCancellable* cancellable)
-{
- VideoSourceCollection * self;
- MediaMonitor* result = NULL;
- VideoMonitor* _tmp0_;
-#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_WORKERS (workers), NULL);
-#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_monitor_new (cancellable);
-#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_MONITOR, MediaMonitor);
-#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10463 "VideoSupport.c"
-}
-
-
-static gboolean
-video_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source)
-{
- VideoSourceCollection * self;
- gboolean result = FALSE;
-#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 1096 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_VIDEO);
-#line 1096 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10481 "VideoSupport.c"
-}
-
-
-static gchar*
-video_source_collection_real_get_typename (MediaSourceCollection* base)
-{
- VideoSourceCollection * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1099 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = g_strdup (VIDEO_TYPENAME);
-#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp0_;
-#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10499 "VideoSupport.c"
-}
-
-
-static gboolean
-video_source_collection_real_is_file_recognized (MediaSourceCollection* base,
- GFile* file)
-{
- VideoSourceCollection * self;
- gboolean result = FALSE;
-#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 1104 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = video_reader_is_supported_video_file (file);
-#line 1104 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10517 "VideoSupport.c"
-}
-
-
-static void
-video_source_collection_on_trashcan_contents_altered (VideoSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self));
-#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 1109 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection));
-#line 10534 "VideoSupport.c"
-}
-
-
-static void
-video_source_collection_on_offline_contents_altered (VideoSourceCollection* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self));
-#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 1115 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection));
-#line 10551 "VideoSupport.c"
-}
-
-
-static MediaSource*
-video_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base,
- gint64 numeric_id)
-{
- VideoSourceCollection * self;
- MediaSource* result = NULL;
- VideoID _tmp0_ = {0};
- Video* _tmp1_;
-#line 1119 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_id_init (&_tmp0_, numeric_id);
-#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = video_source_collection_fetch (self, &_tmp0_);
-#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10573 "VideoSupport.c"
-}
-
-
-gint64
-video_source_collection_get_video_key (DataSource* source)
-{
- gint64 result = 0LL;
- Video* video = NULL;
- Video* _tmp0_;
- VideoID video_id = {0};
- VideoID _tmp1_ = {0};
- VideoID _tmp2_;
- gint64 _tmp3_;
-#line 1123 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL);
-#line 1124 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_VIDEO, Video));
-#line 1124 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = _tmp0_;
-#line 1125 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (video, &_tmp1_);
-#line 1125 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_id = _tmp1_;
-#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = video_id;
-#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_.id;
-#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp3_;
-#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10607 "VideoSupport.c"
-}
-
-
-gboolean
-video_source_collection_is_video_trashed (DataSource* source)
-{
- gboolean result = FALSE;
-#line 1130 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 1131 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_VIDEO, Video), TYPE_MEDIA_SOURCE, MediaSource));
-#line 1131 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10621 "VideoSupport.c"
-}
-
-
-gboolean
-video_source_collection_is_video_offline (DataSource* source)
-{
- gboolean result = FALSE;
-#line 1134 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 1135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_VIDEO, Video), TYPE_MEDIA_SOURCE, MediaSource));
-#line 1135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10635 "VideoSupport.c"
-}
-
-
-Video*
-video_source_collection_fetch (VideoSourceCollection* self,
- VideoID* video_id)
-{
- Video* result = NULL;
- VideoID _tmp0_;
- gint64 _tmp1_;
- DataSource* _tmp2_;
-#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), NULL);
-#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (video_id != NULL, NULL);
-#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = *video_id;
-#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_.id;
-#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_);
-#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIDEO, Video);
-#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10661 "VideoSupport.c"
-}
-
-
-static GeeCollection*
-video_source_collection_real_get_event_source_ids (MediaSourceCollection* base,
- EventID* event_id)
-{
- VideoSourceCollection * self;
- GeeCollection* result = NULL;
- VideoTable* _tmp0_;
- VideoTable* _tmp1_;
- EventID _tmp2_;
- GeeArrayList* _tmp3_;
- GeeCollection* _tmp4_;
-#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = video_table_get_instance ();
-#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = *event_id;
-#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = video_table_get_event_source_ids (_tmp1_, &_tmp2_);
-#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _database_table_unref0 (_tmp1_);
-#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp4_;
-#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10696 "VideoSupport.c"
-}
-
-
-Video*
-video_source_collection_get_state_by_file (VideoSourceCollection* self,
- GFile* file,
- VideoSourceCollectionState* state)
-{
- VideoSourceCollectionState _vala_state = 0;
- Video* result = NULL;
- Video* video = NULL;
- MediaSource* _tmp0_;
- Video* _tmp1_;
- MediaSourceHoldingTank* _tmp2_;
- MediaSourceHoldingTank* _tmp3_;
- MediaSource* _tmp4_;
- Video* _tmp5_;
- MediaSourceHoldingTank* _tmp6_;
- MediaSourceHoldingTank* _tmp7_;
- MediaSource* _tmp8_;
- Video* _tmp9_;
-#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), NULL);
-#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 1147 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = media_source_collection_fetch_by_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), file);
-#line 1147 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIDEO, Video);
-#line 1148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = video;
-#line 1148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp1_ != NULL) {
-#line 1149 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_state = VIDEO_SOURCE_COLLECTION_STATE_ONLINE;
-#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = video;
-#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (state) {
-#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *state = _vala_state;
-#line 10738 "VideoSupport.c"
- }
-#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10742 "VideoSupport.c"
- }
-#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = media_source_holding_tank_fetch_by_master_file (_tmp3_, file);
-#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_VIDEO, Video);
-#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _source_holding_tank_unref0 (_tmp3_);
-#line 1155 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = video;
-#line 1155 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp5_ != NULL) {
-#line 1156 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_state = VIDEO_SOURCE_COLLECTION_STATE_TRASH;
-#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = video;
-#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (state) {
-#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *state = _vala_state;
-#line 10768 "VideoSupport.c"
- }
-#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10772 "VideoSupport.c"
- }
-#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = _tmp6_;
-#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = media_source_holding_tank_fetch_by_master_file (_tmp7_, file);
-#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_VIDEO, Video);
-#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _source_holding_tank_unref0 (_tmp7_);
-#line 1162 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = video;
-#line 1162 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp9_ != NULL) {
-#line 1163 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_state = VIDEO_SOURCE_COLLECTION_STATE_OFFLINE;
-#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = video;
-#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (state) {
-#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *state = _vala_state;
-#line 10798 "VideoSupport.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10802 "VideoSupport.c"
- }
-#line 1168 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _vala_state = VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN;
-#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = NULL;
-#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (state) {
-#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *state = _vala_state;
-#line 10814 "VideoSupport.c"
- }
-#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 10818 "VideoSupport.c"
-}
-
-
-static void
-video_source_collection_compare_backing (VideoSourceCollection* self,
- Video* video,
- GFileInfo* info,
- GeeCollection* matching_master)
-{
- GTimeVal _tmp0_ = {0};
- glong _tmp1_;
-#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self));
-#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO (video));
-#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (GEE_IS_COLLECTION (matching_master));
-#line 1174 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MEDIA_SOURCE, MediaSource)) != ((guint64) g_file_info_get_size (info))) {
-#line 1175 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 10842 "VideoSupport.c"
- }
-#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_file_info_get_modification_time (info, &_tmp0_);
-#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_.tv_sec;
-#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (media_source_get_timestamp (G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MEDIA_SOURCE, MediaSource)) == ((time_t) _tmp1_)) {
-#line 1178 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- gee_collection_add (matching_master, video);
-#line 10852 "VideoSupport.c"
- }
-}
-
-
-void
-video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self,
- GFileInfo* info,
- GeeCollection* matching_master)
-{
-#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self));
-#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (GEE_IS_COLLECTION (matching_master));
-#line 10868 "VideoSupport.c"
- {
- GeeIterator* _object_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _tmp0_;
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = _tmp2_;
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp1_);
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _object_it = _tmp3_;
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- while (TRUE) {
-#line 10889 "VideoSupport.c"
- GeeIterator* _tmp4_;
- DataObject* object = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- DataObject* _tmp7_;
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _object_it;
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- break;
-#line 10901 "VideoSupport.c"
- }
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _object_it;
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- object = (DataObject*) _tmp6_;
-#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = object;
-#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIDEO, Video), info, matching_master);
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (object);
-#line 10915 "VideoSupport.c"
- }
-#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_object_it);
-#line 10919 "VideoSupport.c"
- }
- {
- GeeIterator* _media_it = NULL;
- GeeCollection* _tmp8_;
- GeeCollection* _tmp9_;
- GeeIterator* _tmp10_;
- GeeIterator* _tmp11_;
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = _tmp8_;
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = _tmp10_;
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp9_);
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _media_it = _tmp11_;
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- while (TRUE) {
-#line 10941 "VideoSupport.c"
- GeeIterator* _tmp12_;
- MediaSource* media = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- MediaSource* _tmp15_;
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = _media_it;
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- break;
-#line 10953 "VideoSupport.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = _media_it;
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- media = (MediaSource*) _tmp14_;
-#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = media;
-#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_VIDEO, Video), info, matching_master);
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (media);
-#line 10967 "VideoSupport.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_media_it);
-#line 10971 "VideoSupport.c"
- }
-}
-
-
-static void
-video_source_collection_real_notify_contents_altered (DataCollection* base,
- GeeIterable* added,
- GeeIterable* removed)
-{
- VideoSourceCollection * self;
-#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 1191 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (added != NULL) {
-#line 10990 "VideoSupport.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _object_it = _tmp0_;
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- while (TRUE) {
-#line 11000 "VideoSupport.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- Video* video = NULL;
- DataObject* _tmp4_;
- Video* _tmp5_;
- GeeMultiMap* _tmp6_;
- Video* _tmp7_;
- guint64 _tmp8_;
- Video* _tmp9_;
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = _object_it;
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- break;
-#line 11018 "VideoSupport.c"
- }
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _object_it;
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- object = (DataObject*) _tmp3_;
-#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = object;
-#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_VIDEO, Video));
-#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = _tmp5_;
-#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = self->priv->filesize_to_video;
-#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = video;
-#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = video;
-#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- gee_multi_map_set (_tmp6_, &_tmp8_, _tmp9_);
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (object);
-#line 11046 "VideoSupport.c"
- }
-#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_object_it);
-#line 11050 "VideoSupport.c"
- }
- }
-#line 1199 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (removed != NULL) {
-#line 11055 "VideoSupport.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp10_;
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = gee_iterable_iterator (removed);
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _object_it = _tmp10_;
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- while (TRUE) {
-#line 11065 "VideoSupport.c"
- GeeIterator* _tmp11_;
- DataObject* object = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- Video* video = NULL;
- DataObject* _tmp14_;
- Video* _tmp15_;
- GeeMultiMap* _tmp16_;
- Video* _tmp17_;
- guint64 _tmp18_;
- Video* _tmp19_;
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = _object_it;
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- break;
-#line 11083 "VideoSupport.c"
- }
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = _object_it;
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- object = (DataObject*) _tmp13_;
-#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = object;
-#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_VIDEO, Video));
-#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = _tmp15_;
-#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = self->priv->filesize_to_video;
-#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = video;
-#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = video;
-#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- gee_multi_map_remove (_tmp16_, &_tmp18_, _tmp19_);
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (object);
-#line 11111 "VideoSupport.c"
- }
-#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_object_it);
-#line 11115 "VideoSupport.c"
- }
- }
-#line 1207 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- DATA_COLLECTION_CLASS (video_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added, removed);
-#line 11120 "VideoSupport.c"
-}
-
-
-void
-video_source_collection_get_basename_filesize_duplicate (VideoSourceCollection* self,
- const gchar* basename,
- guint64 filesize,
- VideoID* result)
-{
- VideoID _tmp15_ = {0};
-#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self));
-#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_if_fail (basename != NULL);
-#line 11135 "VideoSupport.c"
- {
- GeeIterator* _video_it = NULL;
- GeeMultiMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->filesize_to_video;
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = gee_multi_map_get (_tmp0_, &filesize);
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = _tmp1_;
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp4_ = _tmp3_;
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp2_);
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _video_it = _tmp4_;
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- while (TRUE) {
-#line 11159 "VideoSupport.c"
- GeeIterator* _tmp5_;
- Video* video = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Video* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_;
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp5_ = _video_it;
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- break;
-#line 11175 "VideoSupport.c"
- }
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp6_ = _video_it;
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video = (Video*) _tmp7_;
-#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp8_ = video;
-#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp10_ = _tmp9_;
-#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp11_ = g_file_get_basename (_tmp10_);
-#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp12_ = utf8_ci_compare (_tmp11_, basename) == 0;
-#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_tmp10_);
-#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp12_) {
-#line 11197 "VideoSupport.c"
- Video* _tmp13_;
- VideoID _tmp14_ = {0};
-#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = video;
-#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_get_video_id (_tmp13_, &_tmp14_);
-#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *result = _tmp14_;
-#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_video_it);
-#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 11212 "VideoSupport.c"
- }
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (video);
-#line 11216 "VideoSupport.c"
- }
-#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (_video_it);
-#line 11220 "VideoSupport.c"
- }
-#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_id_init (&_tmp15_, VIDEO_ID_INVALID);
-#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- *result = _tmp15_;
-#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return;
-#line 11228 "VideoSupport.c"
-}
-
-
-gboolean
-video_source_collection_has_basename_filesize_duplicate (VideoSourceCollection* self,
- const gchar* basename,
- guint64 filesize)
-{
- gboolean result = FALSE;
- VideoID _tmp0_ = {0};
-#line 1220 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), FALSE);
-#line 1220 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_return_val_if_fail (basename != NULL, FALSE);
-#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_source_collection_get_basename_filesize_duplicate (self, basename, filesize, &_tmp0_);
-#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = video_id_is_valid (&_tmp0_);
-#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 11249 "VideoSupport.c"
-}
-
-
-static TransactionController*
-video_source_collection_real_get_transaction_controller (MediaSourceCollection* base)
-{
- TransactionController* result;
- VideoSourceCollection* self;
- TransactionController* _tmp0_;
- TransactionController* _tmp2_;
-#line 1064 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1065 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = self->priv->_transaction_controller;
-#line 1065 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- if (_tmp0_ == NULL) {
-#line 11266 "VideoSupport.c"
- MediaSourceTransactionController* _tmp1_;
-#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = media_source_transaction_controller_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _transaction_controller_unref0 (self->priv->_transaction_controller);
-#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->_transaction_controller = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TRANSACTION_CONTROLLER, TransactionController);
-#line 11274 "VideoSupport.c"
- }
-#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp2_ = self->priv->_transaction_controller;
-#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp2_;
-#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return result;
-#line 11282 "VideoSupport.c"
-}
-
-
-static void
-video_source_collection_class_init (VideoSourceCollectionClass * klass)
-{
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataCollectionClass *) klass)->finalize = video_source_collection_finalize;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- g_type_class_add_private (klass, sizeof (VideoSourceCollectionPrivate));
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->create_trashcan = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) video_source_collection_real_create_trashcan;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->create_offline_bin = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) video_source_collection_real_create_offline_bin;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->create_media_monitor = (MediaMonitor* (*) (MediaSourceCollection *, Workers*, GCancellable*)) video_source_collection_real_create_media_monitor;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) video_source_collection_real_holds_type_of_source;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->get_typename = (gchar* (*) (MediaSourceCollection *)) video_source_collection_real_get_typename;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->is_file_recognized = (gboolean (*) (MediaSourceCollection *, GFile*)) video_source_collection_real_is_file_recognized;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = (MediaSource* (*) (MediaSourceCollection *, gint64)) video_source_collection_real_fetch_by_numeric_id;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->get_event_source_ids = (GeeCollection* (*) (MediaSourceCollection *, EventID*)) video_source_collection_real_get_event_source_ids;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) video_source_collection_real_notify_contents_altered;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- MEDIA_SOURCE_COLLECTION_CLASS (klass)->get_transaction_controller = video_source_collection_real_get_transaction_controller;
-#line 11315 "VideoSupport.c"
-}
-
-
-static void
-video_source_collection_instance_init (VideoSourceCollection * self)
-{
- GeeTreeMultiMap* _tmp0_;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv = VIDEO_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 1072 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->_transaction_controller = NULL;
-#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = gee_tree_multi_map_new (G_TYPE_UINT64, (GBoxedCopyFunc) _uint64_dup, (GDestroyNotify) g_free, TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _uint64_compare_gcompare_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self->priv->filesize_to_video = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
-#line 11331 "VideoSupport.c"
-}
-
-
-static void
-video_source_collection_finalize (DataCollection * obj)
-{
- VideoSourceCollection * self;
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection);
-#line 1072 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _transaction_controller_unref0 (self->priv->_transaction_controller);
-#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_object_unref0 (self->priv->filesize_to_video);
-#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- DATA_COLLECTION_CLASS (video_source_collection_parent_class)->finalize (obj);
-#line 11347 "VideoSupport.c"
-}
-
-
-GType
-video_source_collection_get_type (void)
-{
- static volatile gsize video_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&video_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoSourceCollection), 0, (GInstanceInitFunc) video_source_collection_instance_init, NULL };
- GType video_source_collection_type_id;
- video_source_collection_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_COLLECTION, "VideoSourceCollection", &g_define_type_info, 0);
- g_once_init_leave (&video_source_collection_type_id__volatile, video_source_collection_type_id);
- }
- return video_source_collection_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/camera/Camera.c b/src/camera/Camera.c
deleted file mode 100644
index 6decca0..0000000
--- a/src/camera/Camera.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Camera.c generated by valac 0.40.4, the Vala compiler
- * generated from Camera.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void camera_init (GError** error);
-void camera_branch_init (void);
-void camera_terminate (void);
-void camera_branch_terminate (void);
-
-
-void
-camera_init (GError** error)
-{
-#line 10 "/home/jens/Source/shotwell/src/camera/Camera.vala"
- camera_branch_init ();
-#line 29 "Camera.c"
-}
-
-
-void
-camera_terminate (void)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/Camera.vala"
- camera_branch_terminate ();
-#line 38 "Camera.c"
-}
-
-
-
diff --git a/src/camera/CameraBranch.c b/src/camera/CameraBranch.c
deleted file mode 100644
index 17c9f52..0000000
--- a/src/camera/CameraBranch.c
+++ /dev/null
@@ -1,1283 +0,0 @@
-/* CameraBranch.c generated by valac 0.40.4, the Vala compiler
- * generated from CameraBranch.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n-lib.h>
-#include <gdk/gdk.h>
-#include <gphoto2/gphoto2-camera.h>
-#include <gphoto.h>
-
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
-
-#define CAMERA_TYPE_BRANCH (camera_branch_get_type ())
-#define CAMERA_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_BRANCH, CameraBranch))
-#define CAMERA_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_BRANCH, CameraBranchClass))
-#define CAMERA_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_BRANCH))
-#define CAMERA_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_BRANCH))
-#define CAMERA_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_BRANCH, CameraBranchClass))
-
-typedef struct _CameraBranch CameraBranch;
-typedef struct _CameraBranchClass CameraBranchClass;
-typedef struct _CameraBranchPrivate CameraBranchPrivate;
-
-#define TYPE_DISCOVERED_CAMERA (discovered_camera_get_type ())
-#define DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCamera))
-#define DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass))
-#define IS_DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISCOVERED_CAMERA))
-#define IS_DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISCOVERED_CAMERA))
-#define DISCOVERED_CAMERA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass))
-
-typedef struct _DiscoveredCamera DiscoveredCamera;
-typedef struct _DiscoveredCameraClass DiscoveredCameraClass;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-
-#define CAMERA_TYPE_SIDEBAR_ENTRY (camera_sidebar_entry_get_type ())
-#define CAMERA_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry))
-#define CAMERA_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryClass))
-#define CAMERA_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_SIDEBAR_ENTRY))
-#define CAMERA_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_SIDEBAR_ENTRY))
-#define CAMERA_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryClass))
-
-typedef struct _CameraSidebarEntry CameraSidebarEntry;
-typedef struct _CameraSidebarEntryClass CameraSidebarEntryClass;
-enum {
- CAMERA_BRANCH_0_PROPERTY,
- CAMERA_BRANCH_NUM_PROPERTIES
-};
-static GParamSpec* camera_branch_properties[CAMERA_BRANCH_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
-#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
-#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-
-typedef struct _SidebarGrouping SidebarGrouping;
-typedef struct _SidebarGroupingClass SidebarGroupingClass;
-
-#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
-#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
-#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-
-typedef struct _SidebarHeader SidebarHeader;
-typedef struct _SidebarHeaderClass SidebarHeaderClass;
-
-#define CAMERA_TYPE_HEADER (camera_header_get_type ())
-#define CAMERA_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_HEADER, CameraHeader))
-#define CAMERA_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_HEADER, CameraHeaderClass))
-#define CAMERA_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_HEADER))
-#define CAMERA_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_HEADER))
-#define CAMERA_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_HEADER, CameraHeaderClass))
-
-typedef struct _CameraHeader CameraHeader;
-typedef struct _CameraHeaderClass CameraHeaderClass;
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
-
-#define TYPE_CAMERA_TABLE (camera_table_get_type ())
-#define CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_TABLE, CameraTable))
-#define CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_TABLE, CameraTableClass))
-#define IS_CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_TABLE))
-#define IS_CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_TABLE))
-#define CAMERA_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_TABLE, CameraTableClass))
-
-typedef struct _CameraTable CameraTable;
-typedef struct _CameraTableClass CameraTableClass;
-#define _camera_table_unref0(var) ((var == NULL) ? NULL : (var = (camera_table_unref (var), NULL)))
-#define _discovered_camera_unref0(var) ((var == NULL) ? NULL : (var = (discovered_camera_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-
-#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
-#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
-#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
-#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
-
-typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
-typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
-typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate;
-
-#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ())
-#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry))
-#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY))
-#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface))
-
-typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry;
-typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface;
-typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate;
-typedef struct _CameraHeaderPrivate CameraHeaderPrivate;
-enum {
- CAMERA_HEADER_0_PROPERTY,
- CAMERA_HEADER_NUM_PROPERTIES
-};
-static GParamSpec* camera_header_properties[CAMERA_HEADER_NUM_PROPERTIES];
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-typedef struct _CameraSidebarEntryPrivate CameraSidebarEntryPrivate;
-enum {
- CAMERA_SIDEBAR_ENTRY_0_PROPERTY,
- CAMERA_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* camera_sidebar_entry_properties[CAMERA_SIDEBAR_ENTRY_NUM_PROPERTIES];
-typedef struct _DiscoveredCameraPrivate DiscoveredCameraPrivate;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_IMPORT_PAGE (import_page_get_type ())
-#define IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_PAGE, ImportPage))
-#define IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_PAGE, ImportPageClass))
-#define IS_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_PAGE))
-#define IS_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_PAGE))
-#define IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_PAGE, ImportPageClass))
-
-typedef struct _ImportPage ImportPage;
-typedef struct _ImportPageClass ImportPageClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SidebarBranch {
- GObject parent_instance;
- SidebarBranchPrivate * priv;
-};
-
-struct _SidebarBranchClass {
- GObjectClass parent_class;
-};
-
-struct _CameraBranch {
- SidebarBranch parent_instance;
- CameraBranchPrivate * priv;
-};
-
-struct _CameraBranchClass {
- SidebarBranchClass parent_class;
-};
-
-struct _CameraBranchPrivate {
- GeeHashMap* camera_map;
-};
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-typedef enum {
- SIDEBAR_BRANCH_OPTIONS_NONE = 0,
- SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
- SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
-} SidebarBranchOptions;
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _SidebarRenameableEntryIface {
- GTypeInterface parent_iface;
- void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
- gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
-};
-
-struct _SidebarGrouping {
- GObject parent_instance;
- SidebarGroupingPrivate * priv;
-};
-
-struct _SidebarGroupingClass {
- GObjectClass parent_class;
-};
-
-struct _SidebarEmphasizableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*is_emphasized) (SidebarEmphasizableEntry* self);
-};
-
-struct _SidebarHeader {
- SidebarGrouping parent_instance;
- SidebarHeaderPrivate * priv;
-};
-
-struct _SidebarHeaderClass {
- SidebarGroupingClass parent_class;
-};
-
-struct _CameraHeader {
- SidebarHeader parent_instance;
- CameraHeaderPrivate * priv;
-};
-
-struct _CameraHeaderClass {
- SidebarHeaderClass parent_class;
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _CameraSidebarEntry {
- SidebarSimplePageEntry parent_instance;
- CameraSidebarEntryPrivate * priv;
-};
-
-struct _CameraSidebarEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _CameraSidebarEntryPrivate {
- DiscoveredCamera* camera;
- gchar* uri;
-};
-
-struct _DiscoveredCamera {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DiscoveredCameraPrivate * priv;
- Camera* gcamera;
- gchar* uri;
- gchar* display_name;
- gchar* icon;
-};
-
-struct _DiscoveredCameraClass {
- GTypeClass parent_class;
- void (*finalize) (DiscoveredCamera *self);
-};
-
-
-static gpointer camera_branch_parent_class = NULL;
-extern gchar* camera_branch_cameras_icon;
-gchar* camera_branch_cameras_icon = NULL;
-static gpointer camera_header_parent_class = NULL;
-static gpointer camera_sidebar_entry_parent_class = NULL;
-
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-GType camera_branch_get_type (void) G_GNUC_CONST;
-gpointer discovered_camera_ref (gpointer instance);
-void discovered_camera_unref (gpointer instance);
-GParamSpec* param_spec_discovered_camera (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_discovered_camera (GValue* value,
- gpointer v_object);
-void value_take_discovered_camera (GValue* value,
- gpointer v_object);
-gpointer value_get_discovered_camera (const GValue* value);
-GType discovered_camera_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType camera_sidebar_entry_get_type (void) G_GNUC_CONST;
-#define CAMERA_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CAMERA_TYPE_BRANCH, CameraBranchPrivate))
-#define RESOURCES_ICON_CAMERAS "camera-photo"
-CameraBranch* camera_branch_new (void);
-CameraBranch* camera_branch_construct (GType object_type);
-CameraHeader* camera_header_new (void);
-CameraHeader* camera_header_construct (GType object_type);
-GType sidebar_grouping_get_type (void) G_GNUC_CONST;
-GType sidebar_header_get_type (void) G_GNUC_CONST;
-GType camera_header_get_type (void) G_GNUC_CONST;
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-static gint camera_branch_camera_comparator (SidebarEntry* a,
- SidebarEntry* b);
-static gint _camera_branch_camera_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-gpointer camera_table_ref (gpointer instance);
-void camera_table_unref (gpointer instance);
-GParamSpec* param_spec_camera_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_camera_table (GValue* value,
- gpointer v_object);
-void value_take_camera_table (GValue* value,
- gpointer v_object);
-gpointer value_get_camera_table (const GValue* value);
-GType camera_table_get_type (void) G_GNUC_CONST;
-CameraTable* camera_table_get_instance (void);
-GeeIterable* camera_table_get_cameras (CameraTable* self);
-static void camera_branch_add_camera (CameraBranch* self,
- DiscoveredCamera* camera);
-static void camera_branch_on_camera_added (CameraBranch* self,
- DiscoveredCamera* camera);
-static void _camera_branch_on_camera_added_camera_table_camera_added (CameraTable* _sender,
- DiscoveredCamera* camera,
- gpointer self);
-static void camera_branch_on_camera_removed (CameraBranch* self,
- DiscoveredCamera* camera);
-static void _camera_branch_on_camera_removed_camera_table_camera_removed (CameraTable* _sender,
- DiscoveredCamera* camera,
- gpointer self);
-void camera_branch_init (void);
-void camera_branch_terminate (void);
-gchar* sidebar_entry_get_sidebar_name (SidebarEntry* self);
-gchar* camera_sidebar_entry_get_uri (CameraSidebarEntry* self);
-CameraSidebarEntry* camera_branch_get_entry_for_camera (CameraBranch* self,
- DiscoveredCamera* camera);
-static void camera_branch_remove_camera (CameraBranch* self,
- DiscoveredCamera* camera);
-CameraSidebarEntry* camera_sidebar_entry_new (DiscoveredCamera* camera);
-CameraSidebarEntry* camera_sidebar_entry_construct (GType object_type,
- DiscoveredCamera* camera);
-void sidebar_branch_graft (SidebarBranch* self,
- SidebarEntry* parent,
- SidebarEntry* entry,
- GCompareFunc comparator);
-SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-void sidebar_branch_prune (SidebarBranch* self,
- SidebarEntry* entry);
-static void camera_branch_finalize (GObject * obj);
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST;
-SidebarHeader* sidebar_header_new (const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type,
- const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-#define CAMERA_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryPrivate))
-SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
-static gchar* camera_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-static gchar* camera_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static Page* camera_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-gchar* sidebar_simple_page_entry_get_sidebar_name (SidebarSimplePageEntry* self);
-gchar* sidebar_simple_page_entry_get_sidebar_icon (SidebarSimplePageEntry* self);
-ImportPage* import_page_new (Camera* camera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon);
-ImportPage* import_page_construct (GType object_type,
- Camera* camera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType import_page_get_type (void) G_GNUC_CONST;
-static void camera_sidebar_entry_finalize (GObject * obj);
-
-
-static gint
-_camera_branch_camera_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = camera_branch_camera_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return result;
-#line 522 "CameraBranch.c"
-}
-
-
-static void
-_camera_branch_on_camera_added_camera_table_camera_added (CameraTable* _sender,
- DiscoveredCamera* camera,
- gpointer self)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_branch_on_camera_added ((CameraBranch*) self, camera);
-#line 533 "CameraBranch.c"
-}
-
-
-static void
-_camera_branch_on_camera_removed_camera_table_camera_removed (CameraTable* _sender,
- DiscoveredCamera* camera,
- gpointer self)
-{
-#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_branch_on_camera_removed ((CameraBranch*) self, camera);
-#line 544 "CameraBranch.c"
-}
-
-
-CameraBranch*
-camera_branch_construct (GType object_type)
-{
- CameraBranch * self = NULL;
- CameraHeader* _tmp0_;
- CameraHeader* _tmp1_;
- CameraTable* _tmp12_;
- CameraTable* _tmp13_;
- CameraTable* _tmp14_;
- CameraTable* _tmp15_;
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = camera_header_new ();
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self = (CameraBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY | SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD, _camera_branch_camera_comparator_gcompare_func, NULL);
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 566 "CameraBranch.c"
- {
- GeeIterator* _camera_it = NULL;
- CameraTable* _tmp2_;
- CameraTable* _tmp3_;
- GeeIterable* _tmp4_;
- GeeIterable* _tmp5_;
- GeeIterator* _tmp6_;
- GeeIterator* _tmp7_;
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp2_ = camera_table_get_instance ();
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp3_ = _tmp2_;
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp4_ = camera_table_get_cameras (_tmp3_);
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp5_ = _tmp4_;
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp6_ = gee_iterable_iterator (_tmp5_);
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp7_ = _tmp6_;
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (_tmp5_);
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _camera_table_unref0 (_tmp3_);
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _camera_it = _tmp7_;
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- while (TRUE) {
-#line 595 "CameraBranch.c"
- GeeIterator* _tmp8_;
- DiscoveredCamera* camera = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- DiscoveredCamera* _tmp11_;
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp8_ = _camera_it;
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- break;
-#line 607 "CameraBranch.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp9_ = _camera_it;
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera = (DiscoveredCamera*) _tmp10_;
-#line 19 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp11_ = camera;
-#line 19 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_branch_add_camera (self, _tmp11_);
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _discovered_camera_unref0 (camera);
-#line 621 "CameraBranch.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (_camera_it);
-#line 625 "CameraBranch.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp12_ = camera_table_get_instance ();
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp13_ = _tmp12_;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_signal_connect_object (_tmp13_, "camera-added", (GCallback) _camera_branch_on_camera_added_camera_table_camera_added, self, 0);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _camera_table_unref0 (_tmp13_);
-#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp14_ = camera_table_get_instance ();
-#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp15_ = _tmp14_;
-#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_signal_connect_object (_tmp15_, "camera-removed", (GCallback) _camera_branch_on_camera_removed_camera_table_camera_removed, self, 0);
-#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _camera_table_unref0 (_tmp15_);
-#line 13 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return self;
-#line 645 "CameraBranch.c"
-}
-
-
-CameraBranch*
-camera_branch_new (void)
-{
-#line 13 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return camera_branch_construct (CAMERA_TYPE_BRANCH);
-#line 654 "CameraBranch.c"
-}
-
-
-void
-camera_branch_init (void)
-{
-}
-
-
-void
-camera_branch_terminate (void)
-{
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 39 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return self ? g_object_ref (self) : NULL;
-#line 675 "CameraBranch.c"
-}
-
-
-static gint
-camera_branch_camera_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- gint ret = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 31 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 31 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 32 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- if (a == b) {
-#line 33 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- result = 0;
-#line 33 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return result;
-#line 701 "CameraBranch.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = sidebar_entry_get_sidebar_name (a);
-#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp2_ = sidebar_entry_get_sidebar_name (b);
-#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp3_ = _tmp2_;
-#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp4_ = g_utf8_collate (_tmp1_, _tmp3_);
-#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_free0 (_tmp3_);
-#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_free0 (_tmp1_);
-#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- ret = _tmp4_;
-#line 37 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp5_ = ret;
-#line 37 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- if (_tmp5_ == 0) {
-#line 723 "CameraBranch.c"
- CameraSidebarEntry* cam_a = NULL;
- CameraSidebarEntry* _tmp6_;
- CameraSidebarEntry* cam_b = NULL;
- CameraSidebarEntry* _tmp7_;
- gboolean _tmp8_ = FALSE;
- CameraSidebarEntry* _tmp9_;
- CameraSidebarEntry* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- CameraSidebarEntry* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 39 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (a, CAMERA_TYPE_SIDEBAR_ENTRY) ? ((CameraSidebarEntry*) a) : NULL);
-#line 39 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- cam_a = _tmp6_;
-#line 40 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (b, CAMERA_TYPE_SIDEBAR_ENTRY) ? ((CameraSidebarEntry*) b) : NULL);
-#line 40 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- cam_b = _tmp7_;
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp9_ = cam_a;
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- if (_tmp9_ != NULL) {
-#line 748 "CameraBranch.c"
- CameraSidebarEntry* _tmp10_;
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp10_ = cam_b;
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp8_ = _tmp10_ != NULL;
-#line 754 "CameraBranch.c"
- } else {
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp8_ = FALSE;
-#line 758 "CameraBranch.c"
- }
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _vala_assert (_tmp8_, "cam_a != null && cam_b != null");
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp11_ = cam_a;
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp12_ = camera_sidebar_entry_get_uri (_tmp11_);
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp13_ = _tmp12_;
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp14_ = cam_b;
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp15_ = camera_sidebar_entry_get_uri (_tmp14_);
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp16_ = _tmp15_;
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- ret = g_utf8_collate (_tmp13_, _tmp16_);
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_free0 (_tmp16_);
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_free0 (_tmp13_);
-#line 37 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (cam_b);
-#line 37 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (cam_a);
-#line 784 "CameraBranch.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- result = ret;
-#line 45 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return result;
-#line 790 "CameraBranch.c"
-}
-
-
-CameraSidebarEntry*
-camera_branch_get_entry_for_camera (CameraBranch* self,
- DiscoveredCamera* camera)
-{
- CameraSidebarEntry* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_val_if_fail (CAMERA_IS_BRANCH (self), NULL);
-#line 48 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_val_if_fail (IS_DISCOVERED_CAMERA (camera), NULL);
-#line 49 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = self->priv->camera_map;
-#line 49 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera);
-#line 49 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- result = (CameraSidebarEntry*) _tmp1_;
-#line 49 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return result;
-#line 813 "CameraBranch.c"
-}
-
-
-static void
-camera_branch_on_camera_added (CameraBranch* self,
- DiscoveredCamera* camera)
-{
-#line 52 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_if_fail (CAMERA_IS_BRANCH (self));
-#line 52 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_if_fail (IS_DISCOVERED_CAMERA (camera));
-#line 53 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_branch_add_camera (self, camera);
-#line 827 "CameraBranch.c"
-}
-
-
-static void
-camera_branch_on_camera_removed (CameraBranch* self,
- DiscoveredCamera* camera)
-{
-#line 56 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_if_fail (CAMERA_IS_BRANCH (self));
-#line 56 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_if_fail (IS_DISCOVERED_CAMERA (camera));
-#line 57 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_branch_remove_camera (self, camera);
-#line 841 "CameraBranch.c"
-}
-
-
-static void
-camera_branch_add_camera (CameraBranch* self,
- DiscoveredCamera* camera)
-{
- GeeHashMap* _tmp0_;
- CameraSidebarEntry* entry = NULL;
- CameraSidebarEntry* _tmp1_;
- GeeHashMap* _tmp2_;
- SidebarEntry* _tmp3_;
- SidebarEntry* _tmp4_;
-#line 60 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_if_fail (CAMERA_IS_BRANCH (self));
-#line 60 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_if_fail (IS_DISCOVERED_CAMERA (camera));
-#line 61 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = self->priv->camera_map;
-#line 61 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera), "!camera_map.has_key(camera)");
-#line 63 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = camera_sidebar_entry_new (camera);
-#line 63 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- entry = _tmp1_;
-#line 64 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp2_ = self->priv->camera_map;
-#line 64 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera, entry);
-#line 67 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp3_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 67 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp4_ = _tmp3_;
-#line 67 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp4_, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
-#line 67 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (_tmp4_);
-#line 60 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (entry);
-#line 881 "CameraBranch.c"
-}
-
-
-static void
-camera_branch_remove_camera (CameraBranch* self,
- DiscoveredCamera* camera)
-{
- GeeHashMap* _tmp0_;
- CameraSidebarEntry* entry = NULL;
- GeeHashMap* _tmp1_;
- gpointer _tmp2_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp3_;
- gboolean _tmp4_;
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_if_fail (CAMERA_IS_BRANCH (self));
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_if_fail (IS_DISCOVERED_CAMERA (camera));
-#line 71 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = self->priv->camera_map;
-#line 71 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera), "camera_map.has_key(camera)");
-#line 73 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = self->priv->camera_map;
-#line 73 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera);
-#line 73 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- entry = (CameraSidebarEntry*) _tmp2_;
-#line 74 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _vala_assert (entry != NULL, "entry != null");
-#line 76 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp3_ = self->priv->camera_map;
-#line 76 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera, NULL);
-#line 76 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- removed = _tmp4_;
-#line 77 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _vala_assert (removed, "removed");
-#line 79 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (entry);
-#line 924 "CameraBranch.c"
-}
-
-
-static void
-camera_branch_class_init (CameraBranchClass * klass)
-{
- gchar* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_branch_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_type_class_add_private (klass, sizeof (CameraBranchPrivate));
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = camera_branch_finalize;
-#line 8 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_CAMERAS);
-#line 8 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_branch_cameras_icon = _tmp0_;
-#line 942 "CameraBranch.c"
-}
-
-
-static void
-camera_branch_instance_init (CameraBranch * self)
-{
- GeeHashMap* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self->priv = CAMERA_BRANCH_GET_PRIVATE (self);
-#line 10 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = gee_hash_map_new (TYPE_DISCOVERED_CAMERA, (GBoxedCopyFunc) discovered_camera_ref, (GDestroyNotify) discovered_camera_unref, CAMERA_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 10 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self->priv->camera_map = _tmp0_;
-#line 956 "CameraBranch.c"
-}
-
-
-static void
-camera_branch_finalize (GObject * obj)
-{
- CameraBranch * self;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, CAMERA_TYPE_BRANCH, CameraBranch);
-#line 10 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_object_unref0 (self->priv->camera_map);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- G_OBJECT_CLASS (camera_branch_parent_class)->finalize (obj);
-#line 970 "CameraBranch.c"
-}
-
-
-GType
-camera_branch_get_type (void)
-{
- static volatile gsize camera_branch_type_id__volatile = 0;
- if (g_once_init_enter (&camera_branch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CameraBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraBranch), 0, (GInstanceInitFunc) camera_branch_instance_init, NULL };
- GType camera_branch_type_id;
- camera_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "CameraBranch", &g_define_type_info, 0);
- g_once_init_leave (&camera_branch_type_id__volatile, camera_branch_type_id);
- }
- return camera_branch_type_id__volatile;
-}
-
-
-CameraHeader*
-camera_header_construct (GType object_type)
-{
- CameraHeader * self = NULL;
-#line 85 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self = (CameraHeader*) sidebar_header_construct (object_type, _ ("Cameras"), _ ("List of all discovered camera devices"), TRUE);
-#line 84 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return self;
-#line 996 "CameraBranch.c"
-}
-
-
-CameraHeader*
-camera_header_new (void)
-{
-#line 84 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return camera_header_construct (CAMERA_TYPE_HEADER);
-#line 1005 "CameraBranch.c"
-}
-
-
-static void
-camera_header_class_init (CameraHeaderClass * klass)
-{
-#line 83 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_header_parent_class = g_type_class_peek_parent (klass);
-#line 1014 "CameraBranch.c"
-}
-
-
-static void
-camera_header_instance_init (CameraHeader * self)
-{
-}
-
-
-GType
-camera_header_get_type (void)
-{
- static volatile gsize camera_header_type_id__volatile = 0;
- if (g_once_init_enter (&camera_header_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CameraHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraHeader), 0, (GInstanceInitFunc) camera_header_instance_init, NULL };
- GType camera_header_type_id;
- camera_header_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "CameraHeader", &g_define_type_info, 0);
- g_once_init_leave (&camera_header_type_id__volatile, camera_header_type_id);
- }
- return camera_header_type_id__volatile;
-}
-
-
-static gpointer
-_discovered_camera_ref0 (gpointer self)
-{
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return self ? discovered_camera_ref (self) : NULL;
-#line 1043 "CameraBranch.c"
-}
-
-
-CameraSidebarEntry*
-camera_sidebar_entry_construct (GType object_type,
- DiscoveredCamera* camera)
-{
- CameraSidebarEntry * self = NULL;
- DiscoveredCamera* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 93 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_val_if_fail (IS_DISCOVERED_CAMERA (camera), NULL);
-#line 93 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self = (CameraSidebarEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = _discovered_camera_ref0 (camera);
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _discovered_camera_unref0 (self->priv->camera);
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self->priv->camera = _tmp0_;
-#line 95 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = camera->uri;
-#line 95 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 95 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_free0 (self->priv->uri);
-#line 95 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self->priv->uri = _tmp2_;
-#line 93 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return self;
-#line 1075 "CameraBranch.c"
-}
-
-
-CameraSidebarEntry*
-camera_sidebar_entry_new (DiscoveredCamera* camera)
-{
-#line 93 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return camera_sidebar_entry_construct (CAMERA_TYPE_SIDEBAR_ENTRY, camera);
-#line 1084 "CameraBranch.c"
-}
-
-
-static gchar*
-camera_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- CameraSidebarEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- DiscoveredCamera* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 98 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry);
-#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = self->priv->camera;
-#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp2_ = _tmp1_->display_name;
-#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = _tmp2_;
-#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- if (_tmp0_ == NULL) {
-#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = _ ("Camera");
-#line 1109 "CameraBranch.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp3_ = g_strdup (_tmp0_);
-#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- result = _tmp3_;
-#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return result;
-#line 1117 "CameraBranch.c"
-}
-
-
-static gchar*
-camera_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- CameraSidebarEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- DiscoveredCamera* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp4_;
-#line 102 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry);
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = self->priv->camera;
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp2_ = _tmp1_->icon;
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = _tmp2_;
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- if (_tmp0_ == NULL) {
-#line 1140 "CameraBranch.c"
- const gchar* _tmp3_;
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp3_ = camera_branch_cameras_icon;
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = _tmp3_;
-#line 1146 "CameraBranch.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp4_ = g_strdup (_tmp0_);
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- result = _tmp4_;
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return result;
-#line 1154 "CameraBranch.c"
-}
-
-
-static Page*
-camera_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- CameraSidebarEntry * self;
- Page* result = NULL;
- DiscoveredCamera* _tmp0_;
- Camera* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- ImportPage* _tmp7_;
- Page* _tmp8_;
-#line 106 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = self->priv->camera;
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = _tmp0_->gcamera;
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp2_ = self->priv->uri;
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp3_ = sidebar_simple_page_entry_get_sidebar_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry));
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp4_ = _tmp3_;
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp5_ = sidebar_simple_page_entry_get_sidebar_icon (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry));
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp6_ = _tmp5_;
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp7_ = import_page_new (_tmp1_, _tmp2_, _tmp4_, _tmp6_);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_object_ref_sink (_tmp7_);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE, Page);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_free0 (_tmp6_);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_free0 (_tmp4_);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- result = _tmp8_;
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return result;
-#line 1202 "CameraBranch.c"
-}
-
-
-gchar*
-camera_sidebar_entry_get_uri (CameraSidebarEntry* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 110 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_return_val_if_fail (CAMERA_IS_SIDEBAR_ENTRY (self), NULL);
-#line 111 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp0_ = self->priv->uri;
-#line 111 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 111 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- result = _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- return result;
-#line 1222 "CameraBranch.c"
-}
-
-
-static void
-camera_sidebar_entry_class_init (CameraSidebarEntryClass * klass)
-{
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- camera_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- g_type_class_add_private (klass, sizeof (CameraSidebarEntryPrivate));
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) camera_sidebar_entry_real_get_sidebar_name;
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) camera_sidebar_entry_real_get_sidebar_icon;
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) camera_sidebar_entry_real_create_page;
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = camera_sidebar_entry_finalize;
-#line 1241 "CameraBranch.c"
-}
-
-
-static void
-camera_sidebar_entry_instance_init (CameraSidebarEntry * self)
-{
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self->priv = CAMERA_SIDEBAR_ENTRY_GET_PRIVATE (self);
-#line 1250 "CameraBranch.c"
-}
-
-
-static void
-camera_sidebar_entry_finalize (GObject * obj)
-{
- CameraSidebarEntry * self;
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry);
-#line 90 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _discovered_camera_unref0 (self->priv->camera);
-#line 91 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- _g_free0 (self->priv->uri);
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala"
- G_OBJECT_CLASS (camera_sidebar_entry_parent_class)->finalize (obj);
-#line 1266 "CameraBranch.c"
-}
-
-
-GType
-camera_sidebar_entry_get_type (void)
-{
- static volatile gsize camera_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&camera_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CameraSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraSidebarEntry), 0, (GInstanceInitFunc) camera_sidebar_entry_instance_init, NULL };
- GType camera_sidebar_entry_type_id;
- camera_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "CameraSidebarEntry", &g_define_type_info, 0);
- g_once_init_leave (&camera_sidebar_entry_type_id__volatile, camera_sidebar_entry_type_id);
- }
- return camera_sidebar_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/camera/CameraTable.c b/src/camera/CameraTable.c
deleted file mode 100644
index d35655d..0000000
--- a/src/camera/CameraTable.c
+++ /dev/null
@@ -1,4249 +0,0 @@
-/* CameraTable.c generated by valac 0.40.4, the Vala compiler
- * generated from CameraTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gphoto2/gphoto2-camera.h>
-#include <gphoto.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gudev/gudev.h>
-#include <gphoto2/gphoto2-context.h>
-#include <gphoto2/gphoto2-abilities-list.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <gtk/gtk.h>
-#include <gphoto2/gphoto2-result.h>
-#include <gphoto2/gphoto2-port-result.h>
-#include <gphoto2/gphoto2-port-info-list.h>
-#include <gphoto2/gphoto2-list.h>
-#include <glib/gi18n-lib.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_DISCOVERED_CAMERA (discovered_camera_get_type ())
-#define DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCamera))
-#define DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass))
-#define IS_DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISCOVERED_CAMERA))
-#define IS_DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISCOVERED_CAMERA))
-#define DISCOVERED_CAMERA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass))
-
-typedef struct _DiscoveredCamera DiscoveredCamera;
-typedef struct _DiscoveredCameraClass DiscoveredCameraClass;
-typedef struct _DiscoveredCameraPrivate DiscoveredCameraPrivate;
-#define _gp_camera_unref0(var) ((var == NULL) ? NULL : (var = (gp_camera_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecDiscoveredCamera ParamSpecDiscoveredCamera;
-
-#define TYPE_CAMERA_TABLE (camera_table_get_type ())
-#define CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_TABLE, CameraTable))
-#define CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_TABLE, CameraTableClass))
-#define IS_CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_TABLE))
-#define IS_CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_TABLE))
-#define CAMERA_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_TABLE, CameraTableClass))
-
-typedef struct _CameraTable CameraTable;
-typedef struct _CameraTableClass CameraTableClass;
-typedef struct _CameraTablePrivate CameraTablePrivate;
-
-#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
-#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
-#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
-#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
-#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-
-typedef struct _OneShotScheduler OneShotScheduler;
-typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL)))
-#define _gp_context_unref0(var) ((var == NULL) ? NULL : (var = (gp_context_unref (var), NULL)))
-#define _gp_abilities_list_free0(var) ((var == NULL) ? NULL : (var = (gp_abilities_list_free (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _camera_table_unref0(var) ((var == NULL) ? NULL : (var = (camera_table_unref (var), NULL)))
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
-#define _gp_port_info_list_free0(var) ((var == NULL) ? NULL : (var = (gp_port_info_list_free (var), NULL)))
-#define _gp_list_unref0(var) ((var == NULL) ? NULL : (var = (gp_list_unref (var), NULL)))
-#define _discovered_camera_unref0(var) ((var == NULL) ? NULL : (var = (discovered_camera_unref (var), NULL)))
-typedef struct _ParamSpecCameraTable ParamSpecCameraTable;
-enum {
- CAMERA_TABLE_CAMERA_ADDED_SIGNAL,
- CAMERA_TABLE_CAMERA_REMOVED_SIGNAL,
- CAMERA_TABLE_NUM_SIGNALS
-};
-static guint camera_table_signals[CAMERA_TABLE_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DiscoveredCamera {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DiscoveredCameraPrivate * priv;
- Camera* gcamera;
- gchar* uri;
- gchar* display_name;
- gchar* icon;
-};
-
-struct _DiscoveredCameraClass {
- GTypeClass parent_class;
- void (*finalize) (DiscoveredCamera *self);
-};
-
-struct _ParamSpecDiscoveredCamera {
- GParamSpec parent_instance;
-};
-
-struct _CameraTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CameraTablePrivate * priv;
-};
-
-struct _CameraTableClass {
- GTypeClass parent_class;
- void (*finalize) (CameraTable *self);
-};
-
-struct _CameraTablePrivate {
- GUdevClient* client;
- OneShotScheduler* camera_update_scheduler;
- GPContext* null_context;
- CameraAbilitiesList* abilities_list;
- GVolumeMonitor* volume_monitor;
- GeeHashMap* camera_map;
-};
-
-typedef void (*OneShotCallback) (void* user_data);
-typedef enum {
- GPHOTO_ERROR_LIBRARY
-} GPhotoError;
-#define GPHOTO_ERROR gphoto_error_quark ()
-struct _ParamSpecCameraTable {
- GParamSpec parent_instance;
-};
-
-
-static gpointer discovered_camera_parent_class = NULL;
-static gpointer camera_table_parent_class = NULL;
-static CameraTable* camera_table_instance;
-static CameraTable* camera_table_instance = NULL;
-
-gpointer discovered_camera_ref (gpointer instance);
-void discovered_camera_unref (gpointer instance);
-GParamSpec* param_spec_discovered_camera (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_discovered_camera (GValue* value,
- gpointer v_object);
-void value_take_discovered_camera (GValue* value,
- gpointer v_object);
-gpointer value_get_discovered_camera (const GValue* value);
-GType discovered_camera_get_type (void) G_GNUC_CONST;
-DiscoveredCamera* discovered_camera_new (Camera* gcamera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon);
-DiscoveredCamera* discovered_camera_construct (GType object_type,
- Camera* gcamera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon);
-static void discovered_camera_finalize (DiscoveredCamera * obj);
-gpointer camera_table_ref (gpointer instance);
-void camera_table_unref (gpointer instance);
-GParamSpec* param_spec_camera_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_camera_table (GValue* value,
- gpointer v_object);
-void value_take_camera_table (GValue* value,
- gpointer v_object);
-gpointer value_get_camera_table (const GValue* value);
-GType camera_table_get_type (void) G_GNUC_CONST;
-gpointer one_shot_scheduler_ref (gpointer instance);
-void one_shot_scheduler_unref (gpointer instance);
-GParamSpec* param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_one_shot_scheduler (GValue* value,
- gpointer v_object);
-void value_take_one_shot_scheduler (GValue* value,
- gpointer v_object);
-gpointer value_get_one_shot_scheduler (const GValue* value);
-GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
-#define CAMERA_TABLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CAMERA_TABLE, CameraTablePrivate))
-#define CAMERA_TABLE_UPDATE_DELAY_MSEC 1000
-static CameraTable* camera_table_new (void);
-static CameraTable* camera_table_construct (GType object_type);
-static void camera_table_on_update_cameras (CameraTable* self);
-static void _camera_table_on_update_cameras_one_shot_callback (gpointer self);
-OneShotScheduler* one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-OneShotScheduler* one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-static void camera_table_on_udev_event (CameraTable* self,
- const gchar* action,
- GUdevDevice* device);
-static void _camera_table_on_udev_event_g_udev_client_uevent (GUdevClient* _sender,
- const gchar* action,
- GUdevDevice* device,
- gpointer self);
-void camera_table_on_volume_changed (CameraTable* self,
- GVolume* volume);
-static void _camera_table_on_volume_changed_g_volume_monitor_volume_changed (GVolumeMonitor* _sender,
- GVolume* volume,
- gpointer self);
-static void _camera_table_on_volume_changed_g_volume_monitor_volume_added (GVolumeMonitor* _sender,
- GVolume* volume,
- gpointer self);
-static gboolean camera_table_delayed_init (CameraTable* self);
-static gboolean _camera_table_delayed_init_gsource_func (gpointer self);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-GType library_window_get_type (void) G_GNUC_CONST;
-void library_window_set_page_switching_enabled (LibraryWindow* self,
- gboolean should_enable);
-GQuark gphoto_error_quark (void);
-static void camera_table_init_camera_table (CameraTable* self,
- GError** error);
-static void camera_table_update_camera_table (CameraTable* self,
- GError** error);
-CameraTable* camera_table_get_instance (void);
-GeeIterable* camera_table_get_cameras (CameraTable* self);
-gint camera_table_get_count (CameraTable* self);
-DiscoveredCamera* camera_table_get_for_uri (CameraTable* self,
- const gchar* uri);
-static void camera_table_do_op (CameraTable* self,
- int res,
- const gchar* op,
- GError** error);
-gchar* camera_table_get_port_uri (const gchar* port);
-gchar* camera_table_get_port_path (const gchar* port);
-static gchar* camera_table_get_name_for_uuid (CameraTable* self,
- const gchar* uuid);
-static void _g_object_unref0_ (gpointer var);
-static inline void _g_list_free__g_object_unref0_ (GList* self);
-static gchar* camera_table_get_icon_for_uuid (CameraTable* self,
- const gchar* uuid);
-static void _vala_array_add69 (DiscoveredCamera** * array,
- int* length,
- int* size,
- DiscoveredCamera* value);
-void one_shot_scheduler_after_timeout (OneShotScheduler* self,
- guint msec,
- gboolean reschedule);
-static void g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void camera_table_finalize (CameraTable * 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 gchar* CAMERA_TABLE_SUBSYSTEMS[3] = {"usb", "block", NULL};
-
-static gpointer
-_GPHOTO_REF_CAMERA0 (gpointer self)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return self ? GPHOTO_REF_CAMERA (self) : NULL;
-#line 308 "CameraTable.c"
-}
-
-
-DiscoveredCamera*
-discovered_camera_construct (GType object_type,
- Camera* gcamera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon)
-{
- DiscoveredCamera* self = NULL;
- Camera* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (gcamera != NULL, NULL);
-#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (uri != NULL, NULL);
-#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (display_name != NULL, NULL);
-#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self = (DiscoveredCamera*) g_type_create_instance (object_type);
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = _GPHOTO_REF_CAMERA0 (gcamera);
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (self->gcamera);
-#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->gcamera = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = g_strdup (uri);
-#line 15 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (self->uri);
-#line 15 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->uri = _tmp1_;
-#line 16 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = g_strdup (display_name);
-#line 16 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (self->display_name);
-#line 16 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->display_name = _tmp2_;
-#line 17 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = g_strdup (icon);
-#line 17 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (self->icon);
-#line 17 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->icon = _tmp3_;
-#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return self;
-#line 358 "CameraTable.c"
-}
-
-
-DiscoveredCamera*
-discovered_camera_new (Camera* gcamera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon)
-{
-#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return discovered_camera_construct (TYPE_DISCOVERED_CAMERA, gcamera, uri, display_name, icon);
-#line 370 "CameraTable.c"
-}
-
-
-static void
-value_discovered_camera_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = NULL;
-#line 379 "CameraTable.c"
-}
-
-
-static void
-value_discovered_camera_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- discovered_camera_unref (value->data[0].v_pointer);
-#line 390 "CameraTable.c"
- }
-}
-
-
-static void
-value_discovered_camera_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- dest_value->data[0].v_pointer = discovered_camera_ref (src_value->data[0].v_pointer);
-#line 403 "CameraTable.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 407 "CameraTable.c"
- }
-}
-
-
-static gpointer
-value_discovered_camera_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return value->data[0].v_pointer;
-#line 417 "CameraTable.c"
-}
-
-
-static gchar*
-value_discovered_camera_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (collect_values[0].v_pointer) {
-#line 429 "CameraTable.c"
- DiscoveredCamera * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 436 "CameraTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.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 440 "CameraTable.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = discovered_camera_ref (object);
-#line 444 "CameraTable.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = NULL;
-#line 448 "CameraTable.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return NULL;
-#line 452 "CameraTable.c"
-}
-
-
-static gchar*
-value_discovered_camera_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- DiscoveredCamera ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 468 "CameraTable.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- *object_p = NULL;
-#line 474 "CameraTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 478 "CameraTable.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- *object_p = discovered_camera_ref (value->data[0].v_pointer);
-#line 482 "CameraTable.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return NULL;
-#line 486 "CameraTable.c"
-}
-
-
-GParamSpec*
-param_spec_discovered_camera (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecDiscoveredCamera* spec;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_DISCOVERED_CAMERA), NULL);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return G_PARAM_SPEC (spec);
-#line 506 "CameraTable.c"
-}
-
-
-gpointer
-value_get_discovered_camera (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA), NULL);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return value->data[0].v_pointer;
-#line 517 "CameraTable.c"
-}
-
-
-void
-value_set_discovered_camera (GValue* value,
- gpointer v_object)
-{
- DiscoveredCamera * old;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA));
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DISCOVERED_CAMERA));
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- 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/camera/CameraTable.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- discovered_camera_ref (value->data[0].v_pointer);
-#line 540 "CameraTable.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = NULL;
-#line 544 "CameraTable.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- discovered_camera_unref (old);
-#line 550 "CameraTable.c"
- }
-}
-
-
-void
-value_take_discovered_camera (GValue* value,
- gpointer v_object)
-{
- DiscoveredCamera * old;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA));
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DISCOVERED_CAMERA));
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- 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/camera/CameraTable.vala"
- value->data[0].v_pointer = v_object;
-#line 572 "CameraTable.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = NULL;
-#line 576 "CameraTable.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- discovered_camera_unref (old);
-#line 582 "CameraTable.c"
- }
-}
-
-
-static void
-discovered_camera_class_init (DiscoveredCameraClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- discovered_camera_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- ((DiscoveredCameraClass *) klass)->finalize = discovered_camera_finalize;
-#line 594 "CameraTable.c"
-}
-
-
-static void
-discovered_camera_instance_init (DiscoveredCamera * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->ref_count = 1;
-#line 603 "CameraTable.c"
-}
-
-
-static void
-discovered_camera_finalize (DiscoveredCamera * obj)
-{
- DiscoveredCamera * self;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DISCOVERED_CAMERA, DiscoveredCamera);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_handlers_destroy (self);
-#line 8 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (self->gcamera);
-#line 9 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (self->uri);
-#line 10 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (self->display_name);
-#line 11 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (self->icon);
-#line 623 "CameraTable.c"
-}
-
-
-GType
-discovered_camera_get_type (void)
-{
- static volatile gsize discovered_camera_type_id__volatile = 0;
- if (g_once_init_enter (&discovered_camera_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_discovered_camera_init, value_discovered_camera_free_value, value_discovered_camera_copy_value, value_discovered_camera_peek_pointer, "p", value_discovered_camera_collect_value, "p", value_discovered_camera_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DiscoveredCameraClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) discovered_camera_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DiscoveredCamera), 0, (GInstanceInitFunc) discovered_camera_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType discovered_camera_type_id;
- discovered_camera_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DiscoveredCamera", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&discovered_camera_type_id__volatile, discovered_camera_type_id);
- }
- return discovered_camera_type_id__volatile;
-}
-
-
-gpointer
-discovered_camera_ref (gpointer instance)
-{
- DiscoveredCamera * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return instance;
-#line 652 "CameraTable.c"
-}
-
-
-void
-discovered_camera_unref (gpointer instance)
-{
- DiscoveredCamera * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- DISCOVERED_CAMERA_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 667 "CameraTable.c"
- }
-}
-
-
-static void
-_camera_table_on_update_cameras_one_shot_callback (gpointer self)
-{
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_on_update_cameras ((CameraTable*) self);
-#line 677 "CameraTable.c"
-}
-
-
-static void
-_camera_table_on_udev_event_g_udev_client_uevent (GUdevClient* _sender,
- const gchar* action,
- GUdevDevice* device,
- gpointer self)
-{
-#line 46 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_on_udev_event ((CameraTable*) self, action, device);
-#line 689 "CameraTable.c"
-}
-
-
-static void
-_camera_table_on_volume_changed_g_volume_monitor_volume_changed (GVolumeMonitor* _sender,
- GVolume* volume,
- gpointer self)
-{
-#line 48 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_on_volume_changed ((CameraTable*) self, volume);
-#line 700 "CameraTable.c"
-}
-
-
-static void
-_camera_table_on_volume_changed_g_volume_monitor_volume_added (GVolumeMonitor* _sender,
- GVolume* volume,
- gpointer self)
-{
-#line 49 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_on_volume_changed ((CameraTable*) self, volume);
-#line 711 "CameraTable.c"
-}
-
-
-static gboolean
-_camera_table_delayed_init_gsource_func (gpointer self)
-{
- gboolean result;
- result = camera_table_delayed_init ((CameraTable*) self);
-#line 54 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 722 "CameraTable.c"
-}
-
-
-static CameraTable*
-camera_table_construct (GType object_type)
-{
- CameraTable* self = NULL;
- OneShotScheduler* _tmp0_;
- GUdevClient* _tmp1_;
- GVolumeMonitor* _tmp2_;
- GVolumeMonitor* _tmp3_;
- GVolumeMonitor* _tmp4_;
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self = (CameraTable*) g_type_create_instance (object_type);
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = one_shot_scheduler_new ("CameraTable update scheduler", _camera_table_on_update_cameras_one_shot_callback, self);
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _one_shot_scheduler_unref0 (self->priv->camera_update_scheduler);
-#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->priv->camera_update_scheduler = _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = self->priv->client;
-#line 46 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_connect (_tmp1_, "uevent", (GCallback) _camera_table_on_udev_event_g_udev_client_uevent, self);
-#line 47 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = g_volume_monitor_get ();
-#line 47 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (self->priv->volume_monitor);
-#line 47 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->priv->volume_monitor = _tmp2_;
-#line 48 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = self->priv->volume_monitor;
-#line 48 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_connect (_tmp3_, "volume-changed", (GCallback) _camera_table_on_volume_changed_g_volume_monitor_volume_changed, self);
-#line 49 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp4_ = self->priv->volume_monitor;
-#line 49 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_connect (_tmp4_, "volume-added", (GCallback) _camera_table_on_volume_changed_g_volume_monitor_volume_added, self);
-#line 54 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, _camera_table_delayed_init_gsource_func, camera_table_ref (self), camera_table_unref);
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return self;
-#line 765 "CameraTable.c"
-}
-
-
-static CameraTable*
-camera_table_new (void)
-{
-#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return camera_table_construct (TYPE_CAMERA_TABLE);
-#line 774 "CameraTable.c"
-}
-
-
-static gboolean
-camera_table_delayed_init (CameraTable* self)
-{
- gboolean result = FALSE;
- AppWindow* _tmp0_;
- LibraryWindow* _tmp1_;
- AppWindow* _tmp10_;
- LibraryWindow* _tmp11_;
- GError * _inner_error_ = NULL;
-#line 57 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (IS_CAMERA_TABLE (self), FALSE);
-#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = app_window_get_instance ();
-#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- library_window_set_page_switching_enabled (_tmp1_, FALSE);
-#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_tmp1_);
-#line 797 "CameraTable.c"
- {
-#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_init_camera_table (self, &_inner_error_);
-#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 803 "CameraTable.c"
- gboolean _tmp2_ = FALSE;
-#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 807 "CameraTable.c"
- goto __catch64_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);
-#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return _tmp2_;
-#line 816 "CameraTable.c"
- }
- }
- goto __finally64;
- __catch64_gphoto_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- err = _inner_error_;
-#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _inner_error_ = NULL;
-#line 65 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = err;
-#line 65 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp4_ = _tmp3_->message;
-#line 65 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_warning ("CameraTable.vala:65: Unable to initialize camera table: %s", _tmp4_);
-#line 67 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = FALSE;
-#line 67 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_error_free0 (err);
-#line 67 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 841 "CameraTable.c"
- }
- __finally64:
-#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 846 "CameraTable.c"
- gboolean _tmp5_ = FALSE;
-#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.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 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return _tmp5_;
-#line 854 "CameraTable.c"
- }
- {
-#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_update_camera_table (self, &_inner_error_);
-#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 861 "CameraTable.c"
- gboolean _tmp6_ = FALSE;
-#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 865 "CameraTable.c"
- goto __catch65_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);
-#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return _tmp6_;
-#line 874 "CameraTable.c"
- }
- }
- goto __finally65;
- __catch65_gphoto_error:
- {
- GError* err = NULL;
- GError* _tmp7_;
- const gchar* _tmp8_;
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- err = _inner_error_;
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _inner_error_ = NULL;
-#line 73 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp7_ = err;
-#line 73 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp8_ = _tmp7_->message;
-#line 73 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_warning ("CameraTable.vala:73: Unable to update camera table: %s", _tmp8_);
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_error_free0 (err);
-#line 895 "CameraTable.c"
- }
- __finally65:
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 900 "CameraTable.c"
- gboolean _tmp9_ = FALSE;
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.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 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return _tmp9_;
-#line 908 "CameraTable.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp10_ = app_window_get_instance ();
-#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- library_window_set_page_switching_enabled (_tmp11_, TRUE);
-#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_tmp11_);
-#line 79 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = FALSE;
-#line 79 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 922 "CameraTable.c"
-}
-
-
-static gpointer
-_camera_table_ref0 (gpointer self)
-{
-#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return self ? camera_table_ref (self) : NULL;
-#line 931 "CameraTable.c"
-}
-
-
-CameraTable*
-camera_table_get_instance (void)
-{
- CameraTable* result = NULL;
- CameraTable* _tmp0_;
- CameraTable* _tmp2_;
- CameraTable* _tmp3_;
-#line 83 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = camera_table_instance;
-#line 83 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_tmp0_ == NULL) {
-#line 946 "CameraTable.c"
- CameraTable* _tmp1_;
-#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = camera_table_new ();
-#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _camera_table_unref0 (camera_table_instance);
-#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_instance = _tmp1_;
-#line 954 "CameraTable.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = camera_table_instance;
-#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = _camera_table_ref0 (_tmp2_);
-#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = _tmp3_;
-#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 964 "CameraTable.c"
-}
-
-
-GeeIterable*
-camera_table_get_cameras (CameraTable* self)
-{
- GeeIterable* result = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
-#line 89 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
-#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = self->priv->camera_map;
-#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable);
-#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 987 "CameraTable.c"
-}
-
-
-gint
-camera_table_get_count (CameraTable* self)
-{
- gint result = 0;
- GeeHashMap* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 93 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (IS_CAMERA_TABLE (self), 0);
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = self->priv->camera_map;
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = _tmp1_;
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = _tmp2_;
-#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 1010 "CameraTable.c"
-}
-
-
-DiscoveredCamera*
-camera_table_get_for_uri (CameraTable* self,
- const gchar* uri)
-{
- DiscoveredCamera* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 97 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
-#line 97 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (uri != NULL, NULL);
-#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = self->priv->camera_map;
-#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), uri);
-#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = (DiscoveredCamera*) _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 1033 "CameraTable.c"
-}
-
-
-static void
-camera_table_do_op (CameraTable* self,
- int res,
- const gchar* op,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 101 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (IS_CAMERA_TABLE (self));
-#line 101 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (op != NULL);
-#line 102 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (res != GP_OK) {
-#line 1050 "CameraTable.c"
- const gchar* _tmp0_;
- GError* _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = gp_port_result_as_string (res);
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Unable to %s: %s", (gint) res, op, _tmp0_);
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _inner_error_ = _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1065 "CameraTable.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.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 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1073 "CameraTable.c"
- }
- }
-}
-
-
-static void
-camera_table_init_camera_table (CameraTable* self,
- GError** error)
-{
- CameraAbilitiesList* _tmp0_ = NULL;
- int _tmp1_;
- CameraAbilitiesList* _tmp2_;
- GPContext* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 106 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (IS_CAMERA_TABLE (self));
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = gp_abilities_list_new (&_tmp0_);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_abilities_list_free0 (self->priv->abilities_list);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->priv->abilities_list = _tmp0_;
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp1_, "create camera abilities list", &_inner_error_);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1106 "CameraTable.c"
- } else {
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.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 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1114 "CameraTable.c"
- }
- }
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = self->priv->abilities_list;
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = self->priv->null_context;
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, gp_abilities_list_load (_tmp2_, _tmp3_), "load camera abilities list", &_inner_error_);
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1131 "CameraTable.c"
- } else {
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.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 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1139 "CameraTable.c"
- }
- }
-}
-
-
-gchar*
-camera_table_get_port_uri (const gchar* port)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 111 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (port != NULL, NULL);
-#line 112 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = g_strdup_printf ("gphoto2://[%s]/", port);
-#line 112 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = _tmp0_;
-#line 112 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 1158 "CameraTable.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1182 "CameraTable.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1191 "CameraTable.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 1212 "CameraTable.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 1216 "CameraTable.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 1222 "CameraTable.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 1232 "CameraTable.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 1236 "CameraTable.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 1244 "CameraTable.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 1251 "CameraTable.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 1255 "CameraTable.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 1261 "CameraTable.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1273 "CameraTable.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 1296 "CameraTable.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 1300 "CameraTable.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 1306 "CameraTable.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 1310 "CameraTable.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1314 "CameraTable.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1322 "CameraTable.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 1350 "CameraTable.c"
- goto __catch66_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1359 "CameraTable.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 1373 "CameraTable.c"
- goto __catch66_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1384 "CameraTable.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1398 "CameraTable.c"
- }
- goto __finally66;
- __catch66_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 1412 "CameraTable.c"
- }
- __finally66:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1423 "CameraTable.c"
- }
-}
-
-
-gchar*
-camera_table_get_port_path (const gchar* port)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
-#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (port != NULL, NULL);
-#line 117 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (g_str_has_prefix (port, "usb:")) {
-#line 1437 "CameraTable.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = string_substring (port, (glong) 4, (glong) -1);
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = _tmp1_;
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = string_replace (_tmp2_, ",", "/");
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp4_ = _tmp3_;
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp5_ = g_strdup_printf ("/dev/bus/usb/%s", _tmp4_);
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp0_);
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = _tmp5_;
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp4_);
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp2_);
-#line 1461 "CameraTable.c"
- } else {
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp0_);
-#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = NULL;
-#line 1467 "CameraTable.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = _tmp0_;
-#line 117 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 1473 "CameraTable.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1482 "CameraTable.c"
-}
-
-
-static void
-_g_object_unref0_ (gpointer var)
-{
-#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
-#line 1491 "CameraTable.c"
-}
-
-
-static inline void
-_g_list_free__g_object_unref0_ (GList* self)
-{
-#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
-#line 1500 "CameraTable.c"
-}
-
-
-static gchar*
-camera_table_get_name_for_uuid (CameraTable* self,
- const gchar* uuid)
-{
- gchar* result = NULL;
- GVolumeMonitor* _tmp0_;
- GList* _tmp1_;
-#line 121 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
-#line 121 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (uuid != NULL, NULL);
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = self->priv->volume_monitor;
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = g_volume_monitor_get_volumes (_tmp0_);
-#line 1519 "CameraTable.c"
- {
- GList* volume_collection = NULL;
- GList* volume_it = NULL;
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- volume_collection = _tmp1_;
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- for (volume_it = volume_collection; volume_it != NULL; volume_it = volume_it->next) {
-#line 1527 "CameraTable.c"
- GVolume* _tmp2_;
- GVolume* volume = NULL;
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = _g_object_ref0 ((GVolume*) volume_it->data);
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- volume = _tmp2_;
-#line 1534 "CameraTable.c"
- {
- GVolume* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gboolean _tmp6_;
-#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = volume;
-#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp4_ = g_volume_get_identifier (_tmp3_, G_VOLUME_IDENTIFIER_KIND_UUID);
-#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp5_ = _tmp4_;
-#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp6_ = g_strcmp0 (_tmp5_, uuid) == 0;
-#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp5_);
-#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_tmp6_) {
-#line 1552 "CameraTable.c"
- GVolume* _tmp7_;
- gchar* _tmp8_;
-#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp7_ = volume;
-#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp8_ = g_volume_get_name (_tmp7_);
-#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = _tmp8_;
-#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (volume);
-#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- __g_list_free__g_object_unref0_0 (volume_collection);
-#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 1567 "CameraTable.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (volume);
-#line 1571 "CameraTable.c"
- }
- }
-#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- __g_list_free__g_object_unref0_0 (volume_collection);
-#line 1576 "CameraTable.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = NULL;
-#line 127 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 1582 "CameraTable.c"
-}
-
-
-static gchar*
-camera_table_get_icon_for_uuid (CameraTable* self,
- const gchar* uuid)
-{
- gchar* result = NULL;
- GVolumeMonitor* _tmp0_;
- GList* _tmp1_;
-#line 130 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
-#line 130 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (uuid != NULL, NULL);
-#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = self->priv->volume_monitor;
-#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = g_volume_monitor_get_volumes (_tmp0_);
-#line 1601 "CameraTable.c"
- {
- GList* volume_collection = NULL;
- GList* volume_it = NULL;
-#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- volume_collection = _tmp1_;
-#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- for (volume_it = volume_collection; volume_it != NULL; volume_it = volume_it->next) {
-#line 1609 "CameraTable.c"
- GVolume* _tmp2_;
- GVolume* volume = NULL;
-#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = _g_object_ref0 ((GVolume*) volume_it->data);
-#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- volume = _tmp2_;
-#line 1616 "CameraTable.c"
- {
- GVolume* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gboolean _tmp6_;
-#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = volume;
-#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp4_ = g_volume_get_identifier (_tmp3_, G_VOLUME_IDENTIFIER_KIND_UUID);
-#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp5_ = _tmp4_;
-#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp6_ = g_strcmp0 (_tmp5_, uuid) == 0;
-#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp5_);
-#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_tmp6_) {
-#line 1634 "CameraTable.c"
- GVolume* _tmp7_;
- GIcon* _tmp8_;
- GIcon* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp7_ = volume;
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp8_ = g_volume_get_icon (_tmp7_);
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp9_ = _tmp8_;
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp10_ = g_icon_to_string (_tmp9_);
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp11_ = _tmp10_;
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_tmp9_);
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = _tmp11_;
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (volume);
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- __g_list_free__g_object_unref0_0 (volume_collection);
-#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 1660 "CameraTable.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (volume);
-#line 1664 "CameraTable.c"
- }
- }
-#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- __g_list_free__g_object_unref0_0 (volume_collection);
-#line 1669 "CameraTable.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- result = NULL;
-#line 136 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return result;
-#line 1675 "CameraTable.c"
-}
-
-
-static gpointer
-_discovered_camera_ref0 (gpointer self)
-{
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return self ? discovered_camera_ref (self) : NULL;
-#line 1684 "CameraTable.c"
-}
-
-
-static void
-_vala_array_add69 (DiscoveredCamera** * array,
- int* length,
- int* size,
- DiscoveredCamera* value)
-{
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if ((*length) == (*size)) {
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- *array = g_renew (DiscoveredCamera*, *array, (*size) + 1);
-#line 1700 "CameraTable.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (*array)[(*length)++] = value;
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (*array)[*length] = NULL;
-#line 1706 "CameraTable.c"
-}
-
-
-static void
-camera_table_update_camera_table (CameraTable* self,
- GError** error)
-{
- GPPortInfoList* port_info_list = NULL;
- GPPortInfoList* _tmp0_ = NULL;
- int _tmp1_;
- GPPortInfoList* _tmp2_;
- CameraList* camera_list = NULL;
- CameraList* _tmp3_ = NULL;
- int _tmp4_;
- CameraAbilitiesList* _tmp5_;
- GPPortInfoList* _tmp6_;
- CameraList* _tmp7_;
- GPContext* _tmp8_;
- GeeHashMap* detected_map = NULL;
- GeeHashMap* _tmp9_;
- DiscoveredCamera** missing = NULL;
- DiscoveredCamera** _tmp31_;
- gint missing_length1;
- gint _missing_size_;
- DiscoveredCamera** _tmp62_;
- gint _tmp62__length1;
- GError * _inner_error_ = NULL;
-#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (IS_CAMERA_TABLE (self));
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = gp_port_info_list_new (&_tmp0_);
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- port_info_list = _tmp0_;
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp1_, "create port list", &_inner_error_);
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1754 "CameraTable.c"
- } else {
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.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 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1764 "CameraTable.c"
- }
- }
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = port_info_list;
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, gp_port_info_list_load (_tmp2_), "load port list", &_inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1781 "CameraTable.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.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 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1791 "CameraTable.c"
- }
- }
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp4_ = gp_list_new (&_tmp3_);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_list = _tmp3_;
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp4_, "create camera list", &_inner_error_);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1814 "CameraTable.c"
- } else {
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.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 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1826 "CameraTable.c"
- }
- }
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp5_ = self->priv->abilities_list;
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp6_ = port_info_list;
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp7_ = camera_list;
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp8_ = self->priv->null_context;
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, gp_abilities_list_detect (_tmp5_, _tmp6_, _tmp7_, _tmp8_), "detect cameras", &_inner_error_);
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1851 "CameraTable.c"
- } else {
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.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 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1863 "CameraTable.c"
- }
- }
-#line 149 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp9_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 149 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- detected_map = _tmp9_;
-#line 1870 "CameraTable.c"
- {
- gint ctr = 0;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- ctr = 0;
-#line 1875 "CameraTable.c"
- {
- gboolean _tmp10_ = FALSE;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp10_ = TRUE;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- while (TRUE) {
-#line 1882 "CameraTable.c"
- gint _tmp12_;
- CameraList* _tmp13_;
- gchar* name = NULL;
- CameraList* _tmp14_;
- gint _tmp15_;
- const gchar* _tmp16_ = NULL;
- int _tmp17_;
- gchar* _tmp18_;
- gchar* port = NULL;
- CameraList* _tmp19_;
- gint _tmp20_;
- const gchar* _tmp21_ = NULL;
- int _tmp22_;
- gchar* _tmp23_;
- gint _tmp24_;
- CameraList* _tmp25_;
- const gchar* _tmp26_;
- const gchar* _tmp27_;
- GeeHashMap* _tmp28_;
- const gchar* _tmp29_;
- const gchar* _tmp30_;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (!_tmp10_) {
-#line 1906 "CameraTable.c"
- gint _tmp11_;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp11_ = ctr;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- ctr = _tmp11_ + 1;
-#line 1912 "CameraTable.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp10_ = FALSE;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp12_ = ctr;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp13_ = camera_list;
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (!(_tmp12_ < gp_list_count (_tmp13_))) {
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- break;
-#line 1924 "CameraTable.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp14_ = camera_list;
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp15_ = ctr;
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp17_ = gp_list_get_name (_tmp14_, _tmp15_, &_tmp16_);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp18_ = g_strdup (_tmp16_);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- name = _tmp18_;
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp17_, "get detected camera name", &_inner_error_);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1956 "CameraTable.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.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 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 1972 "CameraTable.c"
- }
- }
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp19_ = camera_list;
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp20_ = ctr;
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp22_ = gp_list_get_value (_tmp19_, _tmp20_, &_tmp21_);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp23_ = g_strdup (_tmp21_);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- port = _tmp23_;
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp22_, "get detected camera port", &_inner_error_);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2007 "CameraTable.c"
- } else {
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.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 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2025 "CameraTable.c"
- }
- }
-#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp24_ = ctr;
-#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp25_ = camera_list;
-#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp26_ = name;
-#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp27_ = port;
-#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_debug ("CameraTable.vala:159: Detected %d/%d %s @ %s", _tmp24_ + 1, gp_list_count (_tmp25_), _tmp26_, _tmp27_);
-#line 162 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp28_ = detected_map;
-#line 162 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp29_ = port;
-#line 162 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp30_ = name;
-#line 162 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, _tmp30_);
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 2050 "CameraTable.c"
- }
- }
- }
-#line 166 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp31_ = g_new0 (DiscoveredCamera*, 0 + 1);
-#line 166 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = _tmp31_;
-#line 166 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing_length1 = 0;
-#line 166 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _missing_size_ = missing_length1;
-#line 2062 "CameraTable.c"
- {
- GeeIterator* _camera_it = NULL;
- GeeHashMap* _tmp32_;
- GeeCollection* _tmp33_;
- GeeCollection* _tmp34_;
- GeeCollection* _tmp35_;
- GeeIterator* _tmp36_;
- GeeIterator* _tmp37_;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp32_ = self->priv->camera_map;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp33_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp34_ = _tmp33_;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp35_ = _tmp34_;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp36_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp37_ = _tmp36_;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_tmp35_);
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _camera_it = _tmp37_;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- while (TRUE) {
-#line 2089 "CameraTable.c"
- GeeIterator* _tmp38_;
- DiscoveredCamera* camera = NULL;
- GeeIterator* _tmp39_;
- gpointer _tmp40_;
- GPPortInfo port_info = {0};
- gchar* tmp_path = NULL;
- DiscoveredCamera* _tmp41_;
- Camera* _tmp42_;
- GPPortInfo _tmp43_ = {0};
- int _tmp44_;
- const gchar* _tmp45_ = NULL;
- gchar* _tmp46_;
- CameraAbilities abilities = {0};
- DiscoveredCamera* _tmp47_;
- Camera* _tmp48_;
- CameraAbilities _tmp49_ = {0};
- int _tmp50_;
- GeeHashMap* _tmp51_;
- const gchar* _tmp52_;
- CameraAbilities _tmp56_;
- const gchar* _tmp57_;
- const gchar* _tmp58_;
- DiscoveredCamera** _tmp59_;
- gint _tmp59__length1;
- DiscoveredCamera* _tmp60_;
- DiscoveredCamera* _tmp61_;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp38_ = _camera_it;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (!gee_iterator_next (_tmp38_)) {
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- break;
-#line 2122 "CameraTable.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp39_ = _camera_it;
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp40_ = gee_iterator_get (_tmp39_);
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera = (DiscoveredCamera*) _tmp40_;
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp41_ = camera;
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp42_ = _tmp41_->gcamera;
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp44_ = gp_camera_get_port_info (_tmp42_, &_tmp43_);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- port_info = _tmp43_;
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp44_, "retrieve missing camera port information", &_inner_error_);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_camera_it);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2166 "CameraTable.c"
- } else {
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_camera_it);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.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 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2190 "CameraTable.c"
- }
- }
-#line 174 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- gp_port_info_get_path (port_info, &_tmp45_);
-#line 174 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 174 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp46_ = g_strdup (_tmp45_);
-#line 174 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- tmp_path = _tmp46_;
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp47_ = camera;
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp48_ = _tmp47_->gcamera;
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp50_ = gp_camera_get_abilities (_tmp48_, &_tmp49_);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- abilities = _tmp49_;
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp50_, "retrieve camera abilities", &_inner_error_);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_camera_it);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2239 "CameraTable.c"
- } else {
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_camera_it);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.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 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2265 "CameraTable.c"
- }
- }
-#line 179 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp51_ = detected_map;
-#line 179 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp52_ = tmp_path;
-#line 179 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp52_)) {
-#line 2274 "CameraTable.c"
- CameraAbilities _tmp53_;
- const gchar* _tmp54_;
- const gchar* _tmp55_;
-#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp53_ = abilities;
-#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp54_ = _tmp53_.model;
-#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp55_ = tmp_path;
-#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_debug ("CameraTable.vala:180: Found camera for %s @ %s in detected map", _tmp54_, _tmp55_);
-#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- continue;
-#line 2296 "CameraTable.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp56_ = abilities;
-#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp57_ = _tmp56_.model;
-#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp58_ = tmp_path;
-#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_debug ("CameraTable.vala:185: %s @ %s missing", _tmp57_, _tmp58_);
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp59_ = missing;
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp59__length1 = missing_length1;
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp60_ = camera;
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp61_ = _discovered_camera_ref0 (_tmp60_);
-#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _vala_array_add69 (&missing, &missing_length1, &_missing_size_, _tmp61_);
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 2324 "CameraTable.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_camera_it);
-#line 2328 "CameraTable.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp62_ = missing;
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp62__length1 = missing_length1;
-#line 2334 "CameraTable.c"
- {
- DiscoveredCamera** camera_collection = NULL;
- gint camera_collection_length1 = 0;
- gint _camera_collection_size_ = 0;
- gint camera_it = 0;
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_collection = _tmp62_;
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_collection_length1 = _tmp62__length1;
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- for (camera_it = 0; camera_it < _tmp62__length1; camera_it = camera_it + 1) {
-#line 2346 "CameraTable.c"
- DiscoveredCamera* _tmp63_;
- DiscoveredCamera* camera = NULL;
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp63_ = _discovered_camera_ref0 (camera_collection[camera_it]);
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera = _tmp63_;
-#line 2353 "CameraTable.c"
- {
- GPPortInfo port_info = {0};
- gchar* tmp_path = NULL;
- DiscoveredCamera* _tmp64_;
- Camera* _tmp65_;
- GPPortInfo _tmp66_ = {0};
- int _tmp67_;
- const gchar* _tmp68_ = NULL;
- gchar* _tmp69_;
- CameraAbilities abilities = {0};
- DiscoveredCamera* _tmp70_;
- Camera* _tmp71_;
- CameraAbilities _tmp72_ = {0};
- int _tmp73_;
- CameraAbilities _tmp74_;
- const gchar* _tmp75_;
- const gchar* _tmp76_;
- GeeHashMap* _tmp77_;
- const gchar* _tmp78_;
- gchar* _tmp79_;
- gchar* _tmp80_;
- DiscoveredCamera* _tmp81_;
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp64_ = camera;
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp65_ = _tmp64_->gcamera;
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp67_ = gp_camera_get_port_info (_tmp65_, &_tmp66_);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- port_info = _tmp66_;
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp67_, "retrieve missing camera port information", &_inner_error_);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2410 "CameraTable.c"
- } else {
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.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 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2432 "CameraTable.c"
- }
- }
-#line 197 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- gp_port_info_get_path (port_info, &_tmp68_);
-#line 197 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 197 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp69_ = g_strdup (_tmp68_);
-#line 197 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- tmp_path = _tmp69_;
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp70_ = camera;
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp71_ = _tmp70_->gcamera;
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp73_ = gp_camera_get_abilities (_tmp71_, &_tmp72_);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- abilities = _tmp72_;
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp73_, "retrieve missing camera abilities", &_inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2479 "CameraTable.c"
- } else {
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.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 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2503 "CameraTable.c"
- }
- }
-#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp74_ = abilities;
-#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp75_ = _tmp74_.model;
-#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp76_ = tmp_path;
-#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_debug ("CameraTable.vala:202: Removing from camera table: %s @ %s", _tmp75_, _tmp76_);
-#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp77_ = self->priv->camera_map;
-#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp78_ = tmp_path;
-#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp79_ = camera_table_get_port_uri (_tmp78_);
-#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp80_ = _tmp79_;
-#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp80_, NULL);
-#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp80_);
-#line 206 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp81_ = camera;
-#line 206 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_emit (self, camera_table_signals[CAMERA_TABLE_CAMERA_REMOVED_SIGNAL], 0, _tmp81_);
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (abilities);
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 2538 "CameraTable.c"
- }
- }
- }
- {
- GeeIterator* _port_it = NULL;
- GeeHashMap* _tmp82_;
- GeeSet* _tmp83_;
- GeeSet* _tmp84_;
- GeeSet* _tmp85_;
- GeeIterator* _tmp86_;
- GeeIterator* _tmp87_;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp82_ = detected_map;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp83_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp84_ = _tmp83_;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp85_ = _tmp84_;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp86_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp87_ = _tmp86_;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_tmp85_);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _port_it = _tmp87_;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- while (TRUE) {
-#line 2568 "CameraTable.c"
- GeeIterator* _tmp88_;
- gchar* port = NULL;
- GeeIterator* _tmp89_;
- gpointer _tmp90_;
- gchar* name = NULL;
- GeeHashMap* _tmp91_;
- const gchar* _tmp92_;
- gpointer _tmp93_;
- gchar* display_name = NULL;
- gchar* icon = NULL;
- gchar* uri = NULL;
- const gchar* _tmp94_;
- gchar* _tmp95_;
- GeeHashMap* _tmp96_;
- const gchar* _tmp97_;
- gchar* path = NULL;
- const gchar* _tmp100_;
- gchar* _tmp101_;
- const gchar* _tmp102_;
- const gchar* _tmp122_;
- const gchar* _tmp141_;
- gint index = 0;
- GPPortInfoList* _tmp144_;
- const gchar* _tmp145_;
- gint _tmp146_;
- GPPortInfo port_info = {0};
- gchar* tmp_path = NULL;
- GPPortInfoList* _tmp151_;
- gint _tmp152_;
- GPPortInfo _tmp153_ = {0};
- int _tmp154_;
- const gchar* _tmp155_;
- gchar* _tmp156_;
- gchar* _tmp157_;
- const gchar* _tmp158_ = NULL;
- gchar* _tmp159_;
- const gchar* _tmp160_;
- const gchar* _tmp161_;
- CameraAbilitiesList* _tmp162_;
- const gchar* _tmp163_;
- gint _tmp164_;
- CameraAbilities camera_abilities = {0};
- CameraAbilitiesList* _tmp169_;
- gint _tmp170_;
- CameraAbilities _tmp171_ = {0};
- int _tmp172_;
- const gchar* _tmp173_;
- gchar* _tmp174_;
- gchar* _tmp175_;
- Camera* gcamera = NULL;
- Camera* _tmp176_ = NULL;
- int _tmp177_;
- const gchar* _tmp178_;
- gchar* _tmp179_;
- gchar* _tmp180_;
- Camera* _tmp181_;
- CameraAbilities _tmp182_;
- const gchar* _tmp183_;
- gchar* _tmp184_;
- gchar* _tmp185_;
- Camera* _tmp186_;
- GPPortInfo _tmp187_;
- const gchar* _tmp188_;
- const gchar* _tmp189_;
- gchar* _tmp190_;
- gchar* _tmp191_;
- const gchar* _tmp192_;
- const gchar* _tmp193_;
- DiscoveredCamera* camera = NULL;
- Camera* _tmp194_;
- const gchar* _tmp195_;
- const gchar* _tmp196_;
- const gchar* _tmp197_;
- DiscoveredCamera* _tmp198_;
- GeeHashMap* _tmp199_;
- const gchar* _tmp200_;
- DiscoveredCamera* _tmp201_;
- DiscoveredCamera* _tmp202_;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp88_ = _port_it;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (!gee_iterator_next (_tmp88_)) {
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- break;
-#line 2653 "CameraTable.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp89_ = _port_it;
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp90_ = gee_iterator_get (_tmp89_);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- port = (gchar*) _tmp90_;
-#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp91_ = detected_map;
-#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp92_ = port;
-#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp93_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp92_);
-#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- name = (gchar*) _tmp93_;
-#line 212 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- display_name = NULL;
-#line 213 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- icon = NULL;
-#line 214 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp94_ = port;
-#line 214 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp95_ = camera_table_get_port_uri (_tmp94_);
-#line 214 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- uri = _tmp95_;
-#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp96_ = self->priv->camera_map;
-#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp97_ = uri;
-#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp97_)) {
-#line 2685 "CameraTable.c"
- const gchar* _tmp98_;
- const gchar* _tmp99_;
-#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp98_ = name;
-#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp99_ = port;
-#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_debug ("CameraTable.vala:218: %s @ %s already registered, skipping", _tmp98_, _tmp99_);
-#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- continue;
-#line 2706 "CameraTable.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp100_ = port;
-#line 224 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp101_ = camera_table_get_port_path (_tmp100_);
-#line 224 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- path = _tmp101_;
-#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp102_ = path;
-#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (NULL != _tmp102_) {
-#line 2718 "CameraTable.c"
- GUdevDevice* device = NULL;
- GUdevClient* _tmp103_;
- const gchar* _tmp104_;
- GUdevDevice* _tmp105_;
- gchar* serial = NULL;
- GUdevDevice* _tmp106_;
- const gchar* _tmp107_;
- gchar* _tmp108_;
- const gchar* _tmp109_;
- const gchar* _tmp114_;
- const gchar* _tmp118_;
-#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp103_ = self->priv->client;
-#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp104_ = path;
-#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp105_ = g_udev_client_query_by_device_file (_tmp103_, _tmp104_);
-#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- device = _tmp105_;
-#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp106_ = device;
-#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp107_ = g_udev_device_get_property (_tmp106_, "ID_SERIAL_SHORT");
-#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp108_ = g_strdup (_tmp107_);
-#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- serial = _tmp108_;
-#line 228 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp109_ = serial;
-#line 228 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (NULL != _tmp109_) {
-#line 2750 "CameraTable.c"
- const gchar* _tmp110_;
- gchar* _tmp111_;
- const gchar* _tmp112_;
- gchar* _tmp113_;
-#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp110_ = serial;
-#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp111_ = camera_table_get_name_for_uuid (self, _tmp110_);
-#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- display_name = _tmp111_;
-#line 231 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp112_ = serial;
-#line 231 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp113_ = camera_table_get_icon_for_uuid (self, _tmp112_);
-#line 231 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 231 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- icon = _tmp113_;
-#line 2771 "CameraTable.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp114_ = display_name;
-#line 233 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (NULL == _tmp114_) {
-#line 2777 "CameraTable.c"
- GUdevDevice* _tmp115_;
- const gchar* _tmp116_;
- gchar* _tmp117_;
-#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp115_ = device;
-#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp116_ = g_udev_device_get_sysfs_attr (_tmp115_, "product");
-#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp117_ = g_strdup (_tmp116_);
-#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- display_name = _tmp117_;
-#line 2791 "CameraTable.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp118_ = display_name;
-#line 236 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (NULL == _tmp118_) {
-#line 2797 "CameraTable.c"
- GUdevDevice* _tmp119_;
- const gchar* _tmp120_;
- gchar* _tmp121_;
-#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp119_ = device;
-#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp120_ = g_udev_device_get_property (_tmp119_, "ID_MODEL");
-#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp121_ = g_strdup (_tmp120_);
-#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- display_name = _tmp121_;
-#line 2811 "CameraTable.c"
- }
-#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (serial);
-#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (device);
-#line 2817 "CameraTable.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp122_ = port;
-#line 241 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (g_str_has_prefix (_tmp122_, "disk:")) {
-#line 2823 "CameraTable.c"
- {
- GMount* mount = NULL;
- const gchar* _tmp123_;
- gchar* _tmp124_;
- gchar* _tmp125_;
- GFile* _tmp126_;
- GFile* _tmp127_;
- GMount* _tmp128_;
- GMount* _tmp129_;
- GVolume* volume = NULL;
- GMount* _tmp130_;
- GVolume* _tmp131_;
- const gchar* _tmp132_;
- GVolume* _tmp133_;
- gchar* _tmp134_;
- gchar* _tmp135_;
- gchar* _tmp136_;
- GVolume* _tmp137_;
- GIcon* _tmp138_;
- GIcon* _tmp139_;
- gchar* _tmp140_;
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp123_ = port;
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp124_ = string_substring (_tmp123_, (glong) 5, (glong) -1);
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp125_ = _tmp124_;
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp126_ = g_file_new_for_path (_tmp125_);
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp127_ = _tmp126_;
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp128_ = g_file_find_enclosing_mount (_tmp127_, NULL, &_inner_error_);
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp129_ = _tmp128_;
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_tmp127_);
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp125_);
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- mount = _tmp129_;
-#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2867 "CameraTable.c"
- goto __catch67_g_error;
- }
-#line 244 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp130_ = mount;
-#line 244 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp131_ = g_mount_get_volume (_tmp130_);
-#line 244 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- volume = _tmp131_;
-#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp132_ = name;
-#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp133_ = volume;
-#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp134_ = g_volume_get_name (_tmp133_);
-#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp135_ = _tmp134_;
-#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp136_ = g_strdup_printf (_ ("%s (%s)"), _tmp132_, _tmp135_);
-#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- display_name = _tmp136_;
-#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp135_);
-#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp137_ = volume;
-#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp138_ = g_volume_get_icon (_tmp137_);
-#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp139_ = _tmp138_;
-#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp140_ = g_icon_to_string (_tmp139_);
-#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- icon = _tmp140_;
-#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_tmp139_);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (volume);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (mount);
-#line 2910 "CameraTable.c"
- }
- goto __finally67;
- __catch67_g_error:
- {
- GError* e = NULL;
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- e = _inner_error_;
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _inner_error_ = NULL;
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_error_free0 (e);
-#line 2922 "CameraTable.c"
- }
- __finally67:
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2955 "CameraTable.c"
- } else {
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.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 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 2985 "CameraTable.c"
- }
- }
- }
-#line 251 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp141_ = display_name;
-#line 251 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (NULL == _tmp141_) {
-#line 2993 "CameraTable.c"
- const gchar* _tmp142_;
- gchar* _tmp143_;
-#line 253 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp142_ = name;
-#line 253 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp143_ = g_strdup (_tmp142_);
-#line 253 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 253 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- display_name = _tmp143_;
-#line 3004 "CameraTable.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp144_ = port_info_list;
-#line 255 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp145_ = port;
-#line 255 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- index = gp_port_info_list_lookup_path (_tmp144_, _tmp145_);
-#line 256 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp146_ = index;
-#line 256 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_tmp146_ < 0) {
-#line 3016 "CameraTable.c"
- gint _tmp147_;
- const gchar* _tmp148_;
- gchar* _tmp149_;
- gchar* _tmp150_;
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp147_ = index;
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp148_ = port;
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp149_ = g_strdup_printf ("lookup port %s", _tmp148_);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp150_ = _tmp149_;
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, (int) _tmp147_, _tmp150_, &_inner_error_);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp150_);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3063 "CameraTable.c"
- } else {
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.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 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3093 "CameraTable.c"
- }
- }
- }
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp151_ = port_info_list;
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp152_ = index;
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp154_ = gp_port_info_list_get_info (_tmp151_, _tmp152_, &_tmp153_);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- port_info = _tmp153_;
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp155_ = port;
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp156_ = g_strdup_printf ("get port info for %s", _tmp155_);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp157_ = _tmp156_;
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp154_, _tmp157_, &_inner_error_);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp157_);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3151 "CameraTable.c"
- } else {
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.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 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3185 "CameraTable.c"
- }
- }
-#line 263 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- gp_port_info_get_path (port_info, &_tmp158_);
-#line 263 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 263 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp159_ = g_strdup (_tmp158_);
-#line 263 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- tmp_path = _tmp159_;
-#line 266 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp160_ = port;
-#line 266 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp161_ = tmp_path;
-#line 266 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _vala_assert (g_strcmp0 (_tmp160_, _tmp161_) == 0, "port == tmp_path");
-#line 268 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp162_ = self->priv->abilities_list;
-#line 268 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp163_ = name;
-#line 268 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- index = gp_abilities_list_lookup_model (_tmp162_, _tmp163_);
-#line 269 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp164_ = index;
-#line 269 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_tmp164_ < 0) {
-#line 3212 "CameraTable.c"
- gint _tmp165_;
- const gchar* _tmp166_;
- gchar* _tmp167_;
- gchar* _tmp168_;
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp165_ = index;
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp166_ = name;
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp167_ = g_strdup_printf ("lookup camera model %s", _tmp166_);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp168_ = _tmp167_;
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, (int) _tmp165_, _tmp168_, &_inner_error_);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp168_);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3263 "CameraTable.c"
- } else {
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.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 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3297 "CameraTable.c"
- }
- }
- }
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp169_ = self->priv->abilities_list;
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp170_ = index;
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp172_ = gp_abilities_list_get_abilities (_tmp169_, _tmp170_, &_tmp171_);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_abilities = _tmp171_;
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp173_ = name;
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp174_ = g_strdup_printf ("lookup camera abilities for %s", _tmp173_);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp175_ = _tmp174_;
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp172_, _tmp175_, &_inner_error_);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp175_);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3357 "CameraTable.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.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 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3393 "CameraTable.c"
- }
- }
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp177_ = gp_camera_new (&_tmp176_);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (gcamera);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- gcamera = _tmp176_;
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp178_ = name;
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp179_ = g_strdup_printf ("create camera object for %s", _tmp178_);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp180_ = _tmp179_;
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, _tmp177_, _tmp180_, &_inner_error_);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp180_);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (gcamera);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3450 "CameraTable.c"
- } else {
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (gcamera);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.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 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3488 "CameraTable.c"
- }
- }
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp181_ = gcamera;
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp182_ = camera_abilities;
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp183_ = name;
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp184_ = g_strdup_printf ("set camera abilities for %s", _tmp183_);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp185_ = _tmp184_;
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, gp_camera_set_abilities (_tmp181_, _tmp182_), _tmp185_, &_inner_error_);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp185_);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (gcamera);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3543 "CameraTable.c"
- } else {
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (gcamera);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.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 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3581 "CameraTable.c"
- }
- }
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp186_ = gcamera;
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp187_ = port_info;
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp188_ = name;
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp189_ = port;
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp190_ = g_strdup_printf ("set port info for %s on %s", _tmp188_, _tmp189_);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp191_ = _tmp190_;
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_do_op (self, gp_camera_set_port_info (_tmp186_, _tmp187_), _tmp191_, &_inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (_tmp191_);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (gcamera);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3638 "CameraTable.c"
- } else {
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (gcamera);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.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 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3676 "CameraTable.c"
- }
- }
-#line 281 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp192_ = name;
-#line 281 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp193_ = port;
-#line 281 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_debug ("CameraTable.vala:281: Adding to camera table: %s @ %s", _tmp192_, _tmp193_);
-#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp194_ = gcamera;
-#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp195_ = uri;
-#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp196_ = display_name;
-#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp197_ = icon;
-#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp198_ = discovered_camera_new (_tmp194_, _tmp195_, _tmp196_, _tmp197_);
-#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera = _tmp198_;
-#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp199_ = self->priv->camera_map;
-#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp200_ = uri;
-#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp201_ = camera;
-#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp199_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp200_, _tmp201_);
-#line 286 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp202_ = camera;
-#line 286 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_emit (self, camera_table_signals[CAMERA_TABLE_CAMERA_ADDED_SIGNAL], 0, _tmp202_);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _discovered_camera_unref0 (camera);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_camera_unref0 (gcamera);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (camera_abilities);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (tmp_path);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- (port_info);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (path);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (uri);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (icon);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (display_name);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (name);
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_free0 (port);
-#line 3731 "CameraTable.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (_port_it);
-#line 3735 "CameraTable.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
-#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (detected_map);
-#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_list_unref0 (camera_list);
-#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_port_info_list_free0 (port_info_list);
-#line 3745 "CameraTable.c"
-}
-
-
-static void
-camera_table_on_udev_event (CameraTable* self,
- const gchar* action,
- GUdevDevice* device)
-{
- const gchar* _tmp0_;
- OneShotScheduler* _tmp1_;
-#line 290 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (IS_CAMERA_TABLE (self));
-#line 290 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (action != NULL);
-#line 290 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_UDEV_IS_DEVICE (device));
-#line 291 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = g_udev_device_get_name (device);
-#line 291 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_debug ("CameraTable.vala:291: udev event: %s on %s", action, _tmp0_);
-#line 295 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = self->priv->camera_update_scheduler;
-#line 295 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- one_shot_scheduler_after_timeout (_tmp1_, (guint) CAMERA_TABLE_UPDATE_DELAY_MSEC, TRUE);
-#line 3770 "CameraTable.c"
-}
-
-
-void
-camera_table_on_volume_changed (CameraTable* self,
- GVolume* volume)
-{
- OneShotScheduler* _tmp0_;
-#line 298 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (IS_CAMERA_TABLE (self));
-#line 298 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_IS_VOLUME (volume));
-#line 299 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = self->priv->camera_update_scheduler;
-#line 299 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- one_shot_scheduler_after_timeout (_tmp0_, (guint) CAMERA_TABLE_UPDATE_DELAY_MSEC, TRUE);
-#line 3787 "CameraTable.c"
-}
-
-
-static void
-camera_table_on_update_cameras (CameraTable* self)
-{
- GError * _inner_error_ = NULL;
-#line 302 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (IS_CAMERA_TABLE (self));
-#line 3797 "CameraTable.c"
- {
- CameraTable* _tmp0_;
- CameraTable* _tmp1_;
-#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = camera_table_get_instance ();
-#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = _tmp0_;
-#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_update_camera_table (_tmp1_, &_inner_error_);
-#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _camera_table_unref0 (_tmp1_);
-#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 3813 "CameraTable.c"
- goto __catch68_gphoto_error;
- }
-#line 304 "/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);
-#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3822 "CameraTable.c"
- }
- }
- goto __finally68;
- __catch68_gphoto_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
- const gchar* _tmp3_;
-#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- err = _inner_error_;
-#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _inner_error_ = NULL;
-#line 306 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = err;
-#line 306 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp3_ = _tmp2_->message;
-#line 306 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_warning ("CameraTable.vala:306: Error updating camera table: %s", _tmp3_);
-#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_error_free0 (err);
-#line 3843 "CameraTable.c"
- }
- __finally68:
-#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.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 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_clear_error (&_inner_error_);
-#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return;
-#line 3854 "CameraTable.c"
- }
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__DISCOVERED_CAMERA) (gpointer data1, gpointer arg_1, gpointer data2);
- register GMarshalFunc_VOID__DISCOVERED_CAMERA callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (n_param_values == 2);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- data1 = closure->data;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- data2 = param_values->data[0].v_pointer;
-#line 3881 "CameraTable.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- data1 = param_values->data[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- data2 = closure->data;
-#line 3887 "CameraTable.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- callback = (GMarshalFunc_VOID__DISCOVERED_CAMERA) (marshal_data ? marshal_data : cc->callback);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- callback (data1, value_get_discovered_camera (param_values + 1), data2);
-#line 3893 "CameraTable.c"
-}
-
-
-static void
-value_camera_table_init (GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = NULL;
-#line 3902 "CameraTable.c"
-}
-
-
-static void
-value_camera_table_free_value (GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_unref (value->data[0].v_pointer);
-#line 3913 "CameraTable.c"
- }
-}
-
-
-static void
-value_camera_table_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- dest_value->data[0].v_pointer = camera_table_ref (src_value->data[0].v_pointer);
-#line 3926 "CameraTable.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3930 "CameraTable.c"
- }
-}
-
-
-static gpointer
-value_camera_table_peek_pointer (const GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return value->data[0].v_pointer;
-#line 3940 "CameraTable.c"
-}
-
-
-static gchar*
-value_camera_table_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (collect_values[0].v_pointer) {
-#line 3952 "CameraTable.c"
- CameraTable * object;
- object = collect_values[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3959 "CameraTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.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 3963 "CameraTable.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = camera_table_ref (object);
-#line 3967 "CameraTable.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = NULL;
-#line 3971 "CameraTable.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return NULL;
-#line 3975 "CameraTable.c"
-}
-
-
-static gchar*
-value_camera_table_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- CameraTable ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (!object_p) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3991 "CameraTable.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (!value->data[0].v_pointer) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- *object_p = NULL;
-#line 3997 "CameraTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 4001 "CameraTable.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- *object_p = camera_table_ref (value->data[0].v_pointer);
-#line 4005 "CameraTable.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return NULL;
-#line 4009 "CameraTable.c"
-}
-
-
-GParamSpec*
-param_spec_camera_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecCameraTable* spec;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_CAMERA_TABLE), NULL);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return G_PARAM_SPEC (spec);
-#line 4029 "CameraTable.c"
-}
-
-
-gpointer
-value_get_camera_table (const GValue* value)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE), NULL);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return value->data[0].v_pointer;
-#line 4040 "CameraTable.c"
-}
-
-
-void
-value_set_camera_table (GValue* value,
- gpointer v_object)
-{
- CameraTable * old;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE));
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- old = value->data[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (v_object) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CAMERA_TABLE));
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = v_object;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_ref (value->data[0].v_pointer);
-#line 4063 "CameraTable.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = NULL;
-#line 4067 "CameraTable.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (old) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_unref (old);
-#line 4073 "CameraTable.c"
- }
-}
-
-
-void
-value_take_camera_table (GValue* value,
- gpointer v_object)
-{
- CameraTable * old;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE));
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- old = value->data[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (v_object) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CAMERA_TABLE));
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = v_object;
-#line 4095 "CameraTable.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- value->data[0].v_pointer = NULL;
-#line 4099 "CameraTable.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (old) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_unref (old);
-#line 4105 "CameraTable.c"
- }
-}
-
-
-static void
-camera_table_class_init (CameraTableClass * klass)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_parent_class = g_type_class_peek_parent (klass);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- ((CameraTableClass *) klass)->finalize = camera_table_finalize;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_type_class_add_private (klass, sizeof (CameraTablePrivate));
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_signals[CAMERA_TABLE_CAMERA_ADDED_SIGNAL] = g_signal_new ("camera-added", TYPE_CAMERA_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA, G_TYPE_NONE, 1, TYPE_DISCOVERED_CAMERA);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- camera_table_signals[CAMERA_TABLE_CAMERA_REMOVED_SIGNAL] = g_signal_new ("camera-removed", TYPE_CAMERA_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA, G_TYPE_NONE, 1, TYPE_DISCOVERED_CAMERA);
-#line 4123 "CameraTable.c"
-}
-
-
-static void
-camera_table_instance_init (CameraTable * self)
-{
- GUdevClient* _tmp0_;
- GPContext* _tmp1_;
- GeeHashMap* _tmp2_;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->priv = CAMERA_TABLE_GET_PRIVATE (self);
-#line 29 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp0_ = g_udev_client_new (CAMERA_TABLE_SUBSYSTEMS);
-#line 29 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->priv->client = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->priv->camera_update_scheduler = NULL;
-#line 31 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp1_ = gp_context_new ();
-#line 31 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->priv->null_context = _tmp1_;
-#line 35 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _tmp2_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_DISCOVERED_CAMERA, (GBoxedCopyFunc) discovered_camera_ref, (GDestroyNotify) discovered_camera_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 35 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->priv->camera_map = _tmp2_;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self->ref_count = 1;
-#line 4151 "CameraTable.c"
-}
-
-
-static void
-camera_table_finalize (CameraTable * obj)
-{
- CameraTable * self;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_TABLE, CameraTable);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_handlers_destroy (self);
-#line 29 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (self->priv->client);
-#line 30 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _one_shot_scheduler_unref0 (self->priv->camera_update_scheduler);
-#line 31 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_context_unref0 (self->priv->null_context);
-#line 32 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _gp_abilities_list_free0 (self->priv->abilities_list);
-#line 33 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (self->priv->volume_monitor);
-#line 35 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- _g_object_unref0 (self->priv->camera_map);
-#line 4175 "CameraTable.c"
-}
-
-
-GType
-camera_table_get_type (void)
-{
- static volatile gsize camera_table_type_id__volatile = 0;
- if (g_once_init_enter (&camera_table_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_camera_table_init, value_camera_table_free_value, value_camera_table_copy_value, value_camera_table_peek_pointer, "p", value_camera_table_collect_value, "p", value_camera_table_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (CameraTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraTable), 0, (GInstanceInitFunc) camera_table_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType camera_table_type_id;
- camera_table_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CameraTable", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&camera_table_type_id__volatile, camera_table_type_id);
- }
- return camera_table_type_id__volatile;
-}
-
-
-gpointer
-camera_table_ref (gpointer instance)
-{
- CameraTable * self;
- self = instance;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- return instance;
-#line 4204 "CameraTable.c"
-}
-
-
-void
-camera_table_unref (gpointer instance)
-{
- CameraTable * self;
- self = instance;
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- CAMERA_TABLE_GET_CLASS (self)->finalize (self);
-#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4219 "CameraTable.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/camera/CameraTable.vala b/src/camera/CameraTable.vala
index 3df4ad6..5f888ac 100644
--- a/src/camera/CameraTable.vala
+++ b/src/camera/CameraTable.vala
@@ -26,7 +26,9 @@ public class CameraTable {
private static CameraTable instance = null;
+#if HAVE_UDEV
private GUdev.Client client = new GUdev.Client(SUBSYSTEMS);
+#endif
private OneShotScheduler camera_update_scheduler = null;
private GPhoto.Context null_context = new GPhoto.Context();
private GPhoto.CameraAbilitiesList abilities_list;
@@ -43,7 +45,12 @@ public class CameraTable {
on_update_cameras);
// listen for interesting events on the specified subsystems
+
+#if HAVE_UDEV
client.uevent.connect(on_udev_event);
+#else
+ Timeout.add_seconds(10, () => { camera_update_scheduler.after_timeout(UPDATE_DELAY_MSEC, true); return true; });
+#endif
volume_monitor = VolumeMonitor.get();
volume_monitor.volume_changed.connect(on_volume_changed);
volume_monitor.volume_added.connect(on_volume_changed);
@@ -118,6 +125,7 @@ public class CameraTable {
"/dev/bus/usb/%s".printf(port.substring(4).replace(",", "/")) : null;
}
+#if HAVE_UDEV
private string? get_name_for_uuid(string uuid) {
foreach (Volume volume in volume_monitor.get_volumes()) {
if (volume.get_identifier(VolumeIdentifier.UUID) == uuid) {
@@ -130,11 +138,12 @@ public class CameraTable {
private string? get_icon_for_uuid(string uuid) {
foreach (Volume volume in volume_monitor.get_volumes()) {
if (volume.get_identifier(VolumeIdentifier.UUID) == uuid) {
- return volume.get_icon().to_string();
+ return volume.get_symbolic_icon().to_string();
}
}
return null;
}
+#endif
private void update_camera_table() throws GPhotoError {
// need to do this because virtual ports come and go in the USB world (and probably others)
@@ -147,7 +156,7 @@ public class CameraTable {
do_op(abilities_list.detect(port_info_list, camera_list, null_context), "detect cameras");
Gee.HashMap<string, string> detected_map = new Gee.HashMap<string, string>();
-
+
// go through the detected camera list and glean their ports
for (int ctr = 0; ctr < camera_list.count(); ctr++) {
string name;
@@ -158,7 +167,6 @@ public class CameraTable {
debug("Detected %d/%d %s @ %s", ctr + 1, camera_list.count(), name, port);
-
detected_map.set(port, name);
}
@@ -220,6 +228,7 @@ public class CameraTable {
continue;
}
+#if HAVE_UDEV
// Get display name for camera.
string path = get_port_path(port);
if (null != path) {
@@ -237,6 +246,7 @@ public class CameraTable {
display_name = device.get_property("ID_MODEL");
}
}
+#endif
if (port.has_prefix("disk:")) {
try {
@@ -244,7 +254,7 @@ public class CameraTable {
var volume = mount.get_volume();
// Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume)
display_name = _("%s (%s)").printf (name, volume.get_name ());
- icon = volume.get_icon().to_string();
+ icon = volume.get_symbolic_icon().to_string();
} catch (Error e) { }
}
@@ -287,6 +297,7 @@ public class CameraTable {
}
}
+#if HAVE_UDEV
private void on_udev_event(string action, GUdev.Device device) {
debug("udev event: %s on %s", action, device.get_name());
@@ -294,6 +305,7 @@ public class CameraTable {
// update to occur when they come in all at once
camera_update_scheduler.after_timeout(UPDATE_DELAY_MSEC, true);
}
+#endif
public void on_volume_changed(Volume volume) {
camera_update_scheduler.after_timeout(UPDATE_DELAY_MSEC, true);
diff --git a/src/camera/GPhoto.c b/src/camera/GPhoto.c
deleted file mode 100644
index 773ab4e..0000000
--- a/src/camera/GPhoto.c
+++ /dev/null
@@ -1,2627 +0,0 @@
-/* GPhoto.c generated by valac 0.40.4, the Vala compiler
- * generated from GPhoto.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <gphoto2/gphoto2-context.h>
-#include <gphoto.h>
-#include <gphoto2/gphoto2-camera.h>
-#include <gphoto2/gphoto2-filesys.h>
-#include <gphoto2/gphoto2-result.h>
-#include <gphoto2/gphoto2-port-result.h>
-#include <gphoto2/gphoto2-file.h>
-#include <gphoto2/gphoto2-port-info-list.h>
-#include <gio/gio.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <errno.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define GP_TYPE_CONTEXT_WRAPPER (gp_context_wrapper_get_type ())
-#define GP_CONTEXT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper))
-#define GP_CONTEXT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapperClass))
-#define GP_IS_CONTEXT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GP_TYPE_CONTEXT_WRAPPER))
-#define GP_IS_CONTEXT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GP_TYPE_CONTEXT_WRAPPER))
-#define GP_CONTEXT_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapperClass))
-
-typedef struct _GPContextWrapper GPContextWrapper;
-typedef struct _GPContextWrapperClass GPContextWrapperClass;
-typedef struct _GPContextWrapperPrivate GPContextWrapperPrivate;
-#define _gp_context_unref0(var) ((var == NULL) ? NULL : (var = (gp_context_unref (var), NULL)))
-typedef struct _GPParamSpecContextWrapper GPParamSpecContextWrapper;
-
-#define GP_TYPE_SPIN_IDLE_WRAPPER (gp_spin_idle_wrapper_get_type ())
-#define GP_SPIN_IDLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapper))
-#define GP_SPIN_IDLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapperClass))
-#define GP_IS_SPIN_IDLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GP_TYPE_SPIN_IDLE_WRAPPER))
-#define GP_IS_SPIN_IDLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GP_TYPE_SPIN_IDLE_WRAPPER))
-#define GP_SPIN_IDLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapperClass))
-
-typedef struct _GPSpinIdleWrapper GPSpinIdleWrapper;
-typedef struct _GPSpinIdleWrapperClass GPSpinIdleWrapperClass;
-typedef struct _GPSpinIdleWrapperPrivate GPSpinIdleWrapperPrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL)))
-
-#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ())
-#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview))
-#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
-#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW))
-#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW))
-#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
-
-typedef struct _PhotoPreview PhotoPreview;
-typedef struct _PhotoPreviewClass PhotoPreviewClass;
-#define _photo_preview_unref0(var) ((var == NULL) ? NULL : (var = (photo_preview_unref (var), NULL)))
-#define _gp_file_unref0(var) ((var == NULL) ? NULL : (var = (gp_file_unref (var), NULL)))
-
-typedef enum {
- GPHOTO_ERROR_LIBRARY
-} GPhotoError;
-#define GPHOTO_ERROR gphoto_error_quark ()
-struct _GPContextWrapper {
- GTypeInstance parent_instance;
- volatile int ref_count;
- GPContextWrapperPrivate * priv;
- GPContext* context;
-};
-
-struct _GPContextWrapperClass {
- GTypeClass parent_class;
- void (*finalize) (GPContextWrapper *self);
- void (*idle) (GPContextWrapper* self);
- void (*error) (GPContextWrapper* self, const gchar* text, void* data);
- void (*status) (GPContextWrapper* self, const gchar* text, void* data);
- void (*message) (GPContextWrapper* self, const gchar* text, void* data);
- void (*progress_start) (GPContextWrapper* self, gfloat current, const gchar* text, void* data);
- void (*progress_update) (GPContextWrapper* self, gfloat current, void* data);
- void (*progress_stop) (GPContextWrapper* self);
-};
-
-struct _GPParamSpecContextWrapper {
- GParamSpec parent_instance;
-};
-
-struct _GPSpinIdleWrapper {
- GPContextWrapper parent_instance;
- GPSpinIdleWrapperPrivate * priv;
-};
-
-struct _GPSpinIdleWrapperClass {
- GPContextWrapperClass parent_class;
-};
-
-
-static gpointer gp_context_wrapper_parent_class = NULL;
-static gpointer gp_spin_idle_wrapper_parent_class = NULL;
-
-GQuark gphoto_error_quark (void);
-gpointer gp_context_wrapper_ref (gpointer instance);
-void gp_context_wrapper_unref (gpointer instance);
-GParamSpec* gp_param_spec_context_wrapper (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void gp_value_set_context_wrapper (GValue* value,
- gpointer v_object);
-void gp_value_take_context_wrapper (GValue* value,
- gpointer v_object);
-gpointer gp_value_get_context_wrapper (const GValue* value);
-GType gp_context_wrapper_get_type (void) G_GNUC_CONST;
-GPContextWrapper* gp_context_wrapper_new (void);
-GPContextWrapper* gp_context_wrapper_construct (GType object_type);
-static void gp_context_wrapper_on_idle (GPContextWrapper* self,
- GPContext* context);
-static void _gp_context_wrapper_on_idle_gp_context_idle_func (GPContext* context,
- gpointer self);
-static void gp_context_wrapper_on_error (GPContextWrapper* self,
- GPContext* context,
- const gchar* text);
-static void _gp_context_wrapper_on_error_gp_context_error_func (GPContext* context,
- const gchar* text,
- gpointer self);
-static void gp_context_wrapper_on_status (GPContextWrapper* self,
- GPContext* context,
- const gchar* text);
-static void _gp_context_wrapper_on_status_gp_context_status_func (GPContext* context,
- const gchar* text,
- gpointer self);
-static void gp_context_wrapper_on_message (GPContextWrapper* self,
- GPContext* context,
- const gchar* text);
-static void _gp_context_wrapper_on_message_gp_context_message_func (GPContext* context,
- const gchar* text,
- gpointer self);
-static guint gp_context_wrapper_on_progress_start (GPContextWrapper* self,
- GPContext* context,
- gfloat target,
- const gchar* text);
-static guint _gp_context_wrapper_on_progress_start_gp_context_progress_start_func (GPContext* context,
- gfloat target,
- const gchar* text,
- gpointer self);
-static void gp_context_wrapper_on_progress_update (GPContextWrapper* self,
- GPContext* context,
- guint id,
- gfloat current);
-static void _gp_context_wrapper_on_progress_update_gp_context_progress_update_func (GPContext* context,
- guint id,
- gfloat current,
- gpointer self);
-static void gp_context_wrapper_on_progress_stop (GPContextWrapper* self,
- GPContext* context,
- guint id);
-static void _gp_context_wrapper_on_progress_stop_gp_context_progress_stop_func (GPContext* context,
- guint id,
- gpointer self);
-void gp_context_wrapper_idle (GPContextWrapper* self);
-static void gp_context_wrapper_real_idle (GPContextWrapper* self);
-void gp_context_wrapper_error (GPContextWrapper* self,
- const gchar* text,
- void* data);
-static void gp_context_wrapper_real_error (GPContextWrapper* self,
- const gchar* text,
- void* data);
-void gp_context_wrapper_status (GPContextWrapper* self,
- const gchar* text,
- void* data);
-static void gp_context_wrapper_real_status (GPContextWrapper* self,
- const gchar* text,
- void* data);
-void gp_context_wrapper_message (GPContextWrapper* self,
- const gchar* text,
- void* data);
-static void gp_context_wrapper_real_message (GPContextWrapper* self,
- const gchar* text,
- void* data);
-void gp_context_wrapper_progress_start (GPContextWrapper* self,
- gfloat current,
- const gchar* text,
- void* data);
-static void gp_context_wrapper_real_progress_start (GPContextWrapper* self,
- gfloat current,
- const gchar* text,
- void* data);
-void gp_context_wrapper_progress_update (GPContextWrapper* self,
- gfloat current,
- void* data);
-static void gp_context_wrapper_real_progress_update (GPContextWrapper* self,
- gfloat current,
- void* data);
-void gp_context_wrapper_progress_stop (GPContextWrapper* self);
-static void gp_context_wrapper_real_progress_stop (GPContextWrapper* self);
-static void gp_context_wrapper_finalize (GPContextWrapper * obj);
-GType gp_spin_idle_wrapper_get_type (void) G_GNUC_CONST;
-GPSpinIdleWrapper* gp_spin_idle_wrapper_new (void);
-GPSpinIdleWrapper* gp_spin_idle_wrapper_construct (GType object_type);
-static void gp_spin_idle_wrapper_real_idle (GPContextWrapper* base);
-void spin_event_loop (void);
-static void gp_spin_idle_wrapper_real_progress_update (GPContextWrapper* base,
- gfloat current,
- void* data);
-#define GP_MAX_FILENAME_LENGTH 63
-#define GP_MAX_BASEDIR_LENGTH 255
-gboolean gp_get_info (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- CameraFileInfo* info,
- GError** error);
-GBytes* gp_camera_file_to_bytes (GPContext* context,
- CameraFile* file);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoMetadata* gp_get_fallback_metadata (Camera* camera,
- GPContext* context,
- const gchar* folder,
- const gchar* filename);
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-void media_metadata_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error);
-GdkPixbuf* gp_load_preview (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- gchar* * preview_md5,
- GError** error);
-GBytes* gp_load_file_into_buffer (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- CameraFileType filetype,
- GError** error);
-guint photo_metadata_get_preview_count (PhotoMetadata* self);
-gpointer photo_preview_ref (gpointer instance);
-void photo_preview_unref (gpointer instance);
-GParamSpec* param_spec_photo_preview (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_preview (GValue* value,
- gpointer v_object);
-void value_take_photo_preview (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_preview (const GValue* value);
-GType photo_preview_get_type (void) G_GNUC_CONST;
-PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self,
- guint number);
-GBytes* photo_preview_flatten (PhotoPreview* self,
- GError** error);
-#define IMPORT_PREVIEW_MAX_SCALE 128
-GdkPixbuf* gp_load_image (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- GError** error);
-GInputStream* gp_load_file_into_stream (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- CameraFileType filetype,
- GError** error);
-void gp_save_image (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- GFile* dest_file,
- GError** error);
-PhotoMetadata* gp_load_metadata (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- GError** error);
-void photo_metadata_read_from_app1_segment (PhotoMetadata* self,
- GBytes* buffer,
- GError** error);
-GFile* app_dirs_get_temp_dir (void);
-
-
-GQuark
-gphoto_error_quark (void)
-{
- return g_quark_from_static_string ("gphoto_error-quark");
-}
-
-
-static void
-_gp_context_wrapper_on_idle_gp_context_idle_func (GPContext* context,
- gpointer self)
-{
-#line 18 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_on_idle ((GPContextWrapper*) self, context);
-#line 344 "GPhoto.c"
-}
-
-
-static void
-_gp_context_wrapper_on_error_gp_context_error_func (GPContext* context,
- const gchar* text,
- gpointer self)
-{
-#line 19 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_on_error ((GPContextWrapper*) self, context, text);
-#line 355 "GPhoto.c"
-}
-
-
-static void
-_gp_context_wrapper_on_status_gp_context_status_func (GPContext* context,
- const gchar* text,
- gpointer self)
-{
-#line 20 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_on_status ((GPContextWrapper*) self, context, text);
-#line 366 "GPhoto.c"
-}
-
-
-static void
-_gp_context_wrapper_on_message_gp_context_message_func (GPContext* context,
- const gchar* text,
- gpointer self)
-{
-#line 21 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_on_message ((GPContextWrapper*) self, context, text);
-#line 377 "GPhoto.c"
-}
-
-
-static guint
-_gp_context_wrapper_on_progress_start_gp_context_progress_start_func (GPContext* context,
- gfloat target,
- const gchar* text,
- gpointer self)
-{
- guint result;
- result = gp_context_wrapper_on_progress_start ((GPContextWrapper*) self, context, target, text);
-#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 391 "GPhoto.c"
-}
-
-
-static void
-_gp_context_wrapper_on_progress_update_gp_context_progress_update_func (GPContext* context,
- guint id,
- gfloat current,
- gpointer self)
-{
-#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_on_progress_update ((GPContextWrapper*) self, context, id, current);
-#line 403 "GPhoto.c"
-}
-
-
-static void
-_gp_context_wrapper_on_progress_stop_gp_context_progress_stop_func (GPContext* context,
- guint id,
- gpointer self)
-{
-#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_on_progress_stop ((GPContextWrapper*) self, context, id);
-#line 414 "GPhoto.c"
-}
-
-
-GPContextWrapper*
-gp_context_wrapper_construct (GType object_type)
-{
- GPContextWrapper* self = NULL;
- GPContext* _tmp0_;
- GPContext* _tmp1_;
- GPContext* _tmp2_;
- GPContext* _tmp3_;
- GPContext* _tmp4_;
-#line 17 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- self = (GPContextWrapper*) g_type_create_instance (object_type);
-#line 18 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = self->context;
-#line 18 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_set_idle_func (_tmp0_, _gp_context_wrapper_on_idle_gp_context_idle_func, self);
-#line 19 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp1_ = self->context;
-#line 19 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_set_error_func (_tmp1_, _gp_context_wrapper_on_error_gp_context_error_func, self);
-#line 20 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = self->context;
-#line 20 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_set_status_func (_tmp2_, _gp_context_wrapper_on_status_gp_context_status_func, self);
-#line 21 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = self->context;
-#line 21 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_set_message_func (_tmp3_, _gp_context_wrapper_on_message_gp_context_message_func, self);
-#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = self->context;
-#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_set_progress_funcs (_tmp4_, _gp_context_wrapper_on_progress_start_gp_context_progress_start_func, _gp_context_wrapper_on_progress_update_gp_context_progress_update_func, _gp_context_wrapper_on_progress_stop_gp_context_progress_stop_func, self);
-#line 17 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return self;
-#line 451 "GPhoto.c"
-}
-
-
-GPContextWrapper*
-gp_context_wrapper_new (void)
-{
-#line 17 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return gp_context_wrapper_construct (GP_TYPE_CONTEXT_WRAPPER);
-#line 460 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_real_idle (GPContextWrapper* self)
-{
-}
-
-
-void
-gp_context_wrapper_idle (GPContextWrapper* self)
-{
-#line 25 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 25 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_GET_CLASS (self)->idle (self);
-#line 477 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_real_error (GPContextWrapper* self,
- const gchar* text,
- void* data)
-{
-#line 28 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (text != NULL);
-#line 488 "GPhoto.c"
-}
-
-
-void
-gp_context_wrapper_error (GPContextWrapper* self,
- const gchar* text,
- void* data)
-{
-#line 28 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 28 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_GET_CLASS (self)->error (self, text, data);
-#line 501 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_real_status (GPContextWrapper* self,
- const gchar* text,
- void* data)
-{
-#line 31 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (text != NULL);
-#line 512 "GPhoto.c"
-}
-
-
-void
-gp_context_wrapper_status (GPContextWrapper* self,
- const gchar* text,
- void* data)
-{
-#line 31 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 31 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_GET_CLASS (self)->status (self, text, data);
-#line 525 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_real_message (GPContextWrapper* self,
- const gchar* text,
- void* data)
-{
-#line 34 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (text != NULL);
-#line 536 "GPhoto.c"
-}
-
-
-void
-gp_context_wrapper_message (GPContextWrapper* self,
- const gchar* text,
- void* data)
-{
-#line 34 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 34 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_GET_CLASS (self)->message (self, text, data);
-#line 549 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_real_progress_start (GPContextWrapper* self,
- gfloat current,
- const gchar* text,
- void* data)
-{
-#line 37 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (text != NULL);
-#line 561 "GPhoto.c"
-}
-
-
-void
-gp_context_wrapper_progress_start (GPContextWrapper* self,
- gfloat current,
- const gchar* text,
- void* data)
-{
-#line 37 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 37 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_GET_CLASS (self)->progress_start (self, current, text, data);
-#line 575 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_real_progress_update (GPContextWrapper* self,
- gfloat current,
- void* data)
-{
-}
-
-
-void
-gp_context_wrapper_progress_update (GPContextWrapper* self,
- gfloat current,
- void* data)
-{
-#line 40 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 40 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_GET_CLASS (self)->progress_update (self, current, data);
-#line 596 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_real_progress_stop (GPContextWrapper* self)
-{
-}
-
-
-void
-gp_context_wrapper_progress_stop (GPContextWrapper* self)
-{
-#line 43 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 43 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_GET_CLASS (self)->progress_stop (self);
-#line 613 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_on_idle (GPContextWrapper* self,
- GPContext* context)
-{
-#line 46 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 46 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (context != NULL);
-#line 47 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_idle (self);
-#line 627 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_on_error (GPContextWrapper* self,
- GPContext* context,
- const gchar* text)
-{
-#line 50 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 50 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (context != NULL);
-#line 50 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (text != NULL);
-#line 51 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_error (self, text, NULL);
-#line 644 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_on_status (GPContextWrapper* self,
- GPContext* context,
- const gchar* text)
-{
-#line 54 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 54 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (context != NULL);
-#line 54 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (text != NULL);
-#line 55 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_status (self, text, NULL);
-#line 661 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_on_message (GPContextWrapper* self,
- GPContext* context,
- const gchar* text)
-{
-#line 58 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 58 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (context != NULL);
-#line 58 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (text != NULL);
-#line 59 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_message (self, text, NULL);
-#line 678 "GPhoto.c"
-}
-
-
-static guint
-gp_context_wrapper_on_progress_start (GPContextWrapper* self,
- GPContext* context,
- gfloat target,
- const gchar* text)
-{
- guint result = 0U;
-#line 62 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (GP_IS_CONTEXT_WRAPPER (self), 0U);
-#line 62 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, 0U);
-#line 62 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (text != NULL, 0U);
-#line 63 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_progress_start (self, target, text, NULL);
-#line 65 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = (guint) 0;
-#line 65 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 701 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_on_progress_update (GPContextWrapper* self,
- GPContext* context,
- guint id,
- gfloat current)
-{
-#line 68 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 68 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (context != NULL);
-#line 69 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_progress_update (self, current, NULL);
-#line 717 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_on_progress_stop (GPContextWrapper* self,
- GPContext* context,
- guint id)
-{
-#line 72 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self));
-#line 72 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (context != NULL);
-#line 73 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_progress_stop (self);
-#line 732 "GPhoto.c"
-}
-
-
-static void
-gp_value_context_wrapper_init (GValue* value)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- value->data[0].v_pointer = NULL;
-#line 741 "GPhoto.c"
-}
-
-
-static void
-gp_value_context_wrapper_free_value (GValue* value)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (value->data[0].v_pointer) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_unref (value->data[0].v_pointer);
-#line 752 "GPhoto.c"
- }
-}
-
-
-static void
-gp_value_context_wrapper_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (src_value->data[0].v_pointer) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- dest_value->data[0].v_pointer = gp_context_wrapper_ref (src_value->data[0].v_pointer);
-#line 765 "GPhoto.c"
- } else {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 769 "GPhoto.c"
- }
-}
-
-
-static gpointer
-gp_value_context_wrapper_peek_pointer (const GValue* value)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return value->data[0].v_pointer;
-#line 779 "GPhoto.c"
-}
-
-
-static gchar*
-gp_value_context_wrapper_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (collect_values[0].v_pointer) {
-#line 791 "GPhoto.c"
- GPContextWrapper * object;
- object = collect_values[0].v_pointer;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 798 "GPhoto.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.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 802 "GPhoto.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- value->data[0].v_pointer = gp_context_wrapper_ref (object);
-#line 806 "GPhoto.c"
- } else {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- value->data[0].v_pointer = NULL;
-#line 810 "GPhoto.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 814 "GPhoto.c"
-}
-
-
-static gchar*
-gp_value_context_wrapper_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- GPContextWrapper ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (!object_p) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 830 "GPhoto.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (!value->data[0].v_pointer) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- *object_p = NULL;
-#line 836 "GPhoto.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- *object_p = value->data[0].v_pointer;
-#line 840 "GPhoto.c"
- } else {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- *object_p = gp_context_wrapper_ref (value->data[0].v_pointer);
-#line 844 "GPhoto.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 848 "GPhoto.c"
-}
-
-
-GParamSpec*
-gp_param_spec_context_wrapper (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- GPParamSpecContextWrapper* spec;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (g_type_is_a (object_type, GP_TYPE_CONTEXT_WRAPPER), NULL);
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return G_PARAM_SPEC (spec);
-#line 868 "GPhoto.c"
-}
-
-
-gpointer
-gp_value_get_context_wrapper (const GValue* value)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GP_TYPE_CONTEXT_WRAPPER), NULL);
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return value->data[0].v_pointer;
-#line 879 "GPhoto.c"
-}
-
-
-void
-gp_value_set_context_wrapper (GValue* value,
- gpointer v_object)
-{
- GPContextWrapper * old;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GP_TYPE_CONTEXT_WRAPPER));
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- old = value->data[0].v_pointer;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (v_object) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GP_TYPE_CONTEXT_WRAPPER));
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- value->data[0].v_pointer = v_object;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_ref (value->data[0].v_pointer);
-#line 902 "GPhoto.c"
- } else {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- value->data[0].v_pointer = NULL;
-#line 906 "GPhoto.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (old) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_unref (old);
-#line 912 "GPhoto.c"
- }
-}
-
-
-void
-gp_value_take_context_wrapper (GValue* value,
- gpointer v_object)
-{
- GPContextWrapper * old;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GP_TYPE_CONTEXT_WRAPPER));
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- old = value->data[0].v_pointer;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (v_object) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GP_TYPE_CONTEXT_WRAPPER));
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- value->data[0].v_pointer = v_object;
-#line 934 "GPhoto.c"
- } else {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- value->data[0].v_pointer = NULL;
-#line 938 "GPhoto.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (old) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_unref (old);
-#line 944 "GPhoto.c"
- }
-}
-
-
-static void
-gp_context_wrapper_class_init (GPContextWrapperClass * klass)
-{
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_context_wrapper_parent_class = g_type_class_peek_parent (klass);
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->finalize = gp_context_wrapper_finalize;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->idle = (void (*) (GPContextWrapper *)) gp_context_wrapper_real_idle;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->error = (void (*) (GPContextWrapper *, const gchar*, void*)) gp_context_wrapper_real_error;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->status = (void (*) (GPContextWrapper *, const gchar*, void*)) gp_context_wrapper_real_status;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->message = (void (*) (GPContextWrapper *, const gchar*, void*)) gp_context_wrapper_real_message;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->progress_start = (void (*) (GPContextWrapper *, gfloat, const gchar*, void*)) gp_context_wrapper_real_progress_start;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->progress_update = (void (*) (GPContextWrapper *, gfloat, void*)) gp_context_wrapper_real_progress_update;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->progress_stop = (void (*) (GPContextWrapper *)) gp_context_wrapper_real_progress_stop;
-#line 970 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_instance_init (GPContextWrapper * self)
-{
- GPContext* _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = gp_context_new ();
-#line 15 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- self->context = _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- self->ref_count = 1;
-#line 984 "GPhoto.c"
-}
-
-
-static void
-gp_context_wrapper_finalize (GPContextWrapper * obj)
-{
- GPContextWrapper * self;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper);
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_signal_handlers_destroy (self);
-#line 15 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_context_unref0 (self->context);
-#line 998 "GPhoto.c"
-}
-
-
-GType
-gp_context_wrapper_get_type (void)
-{
- static volatile gsize gp_context_wrapper_type_id__volatile = 0;
- if (g_once_init_enter (&gp_context_wrapper_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { gp_value_context_wrapper_init, gp_value_context_wrapper_free_value, gp_value_context_wrapper_copy_value, gp_value_context_wrapper_peek_pointer, "p", gp_value_context_wrapper_collect_value, "p", gp_value_context_wrapper_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (GPContextWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gp_context_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GPContextWrapper), 0, (GInstanceInitFunc) gp_context_wrapper_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType gp_context_wrapper_type_id;
- gp_context_wrapper_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GPContextWrapper", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&gp_context_wrapper_type_id__volatile, gp_context_wrapper_type_id);
- }
- return gp_context_wrapper_type_id__volatile;
-}
-
-
-gpointer
-gp_context_wrapper_ref (gpointer instance)
-{
- GPContextWrapper * self;
- self = instance;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return instance;
-#line 1027 "GPhoto.c"
-}
-
-
-void
-gp_context_wrapper_unref (gpointer instance)
-{
- GPContextWrapper * self;
- self = instance;
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_GET_CLASS (self)->finalize (self);
-#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1042 "GPhoto.c"
- }
-}
-
-
-GPSpinIdleWrapper*
-gp_spin_idle_wrapper_construct (GType object_type)
-{
- GPSpinIdleWrapper* self = NULL;
-#line 79 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- self = (GPSpinIdleWrapper*) gp_context_wrapper_construct (object_type);
-#line 79 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return self;
-#line 1055 "GPhoto.c"
-}
-
-
-GPSpinIdleWrapper*
-gp_spin_idle_wrapper_new (void)
-{
-#line 79 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return gp_spin_idle_wrapper_construct (GP_TYPE_SPIN_IDLE_WRAPPER);
-#line 1064 "GPhoto.c"
-}
-
-
-static void
-gp_spin_idle_wrapper_real_idle (GPContextWrapper* base)
-{
- GPSpinIdleWrapper * self;
-#line 82 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapper);
-#line 83 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_CLASS (gp_spin_idle_wrapper_parent_class)->idle (G_TYPE_CHECK_INSTANCE_CAST (self, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper));
-#line 85 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- spin_event_loop ();
-#line 1078 "GPhoto.c"
-}
-
-
-static void
-gp_spin_idle_wrapper_real_progress_update (GPContextWrapper* base,
- gfloat current,
- void* data)
-{
- GPSpinIdleWrapper * self;
-#line 88 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapper);
-#line 89 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- GP_CONTEXT_WRAPPER_CLASS (gp_spin_idle_wrapper_parent_class)->progress_update (G_TYPE_CHECK_INSTANCE_CAST (self, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper), current, data);
-#line 91 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- spin_event_loop ();
-#line 1094 "GPhoto.c"
-}
-
-
-static void
-gp_spin_idle_wrapper_class_init (GPSpinIdleWrapperClass * klass)
-{
-#line 78 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_spin_idle_wrapper_parent_class = g_type_class_peek_parent (klass);
-#line 78 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->idle = (void (*) (GPContextWrapper *)) gp_spin_idle_wrapper_real_idle;
-#line 78 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ((GPContextWrapperClass *) klass)->progress_update = (void (*) (GPContextWrapper *, gfloat, void*)) gp_spin_idle_wrapper_real_progress_update;
-#line 1107 "GPhoto.c"
-}
-
-
-static void
-gp_spin_idle_wrapper_instance_init (GPSpinIdleWrapper * self)
-{
-}
-
-
-GType
-gp_spin_idle_wrapper_get_type (void)
-{
- static volatile gsize gp_spin_idle_wrapper_type_id__volatile = 0;
- if (g_once_init_enter (&gp_spin_idle_wrapper_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (GPSpinIdleWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gp_spin_idle_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GPSpinIdleWrapper), 0, (GInstanceInitFunc) gp_spin_idle_wrapper_instance_init, NULL };
- GType gp_spin_idle_wrapper_type_id;
- gp_spin_idle_wrapper_type_id = g_type_register_static (GP_TYPE_CONTEXT_WRAPPER, "GPSpinIdleWrapper", &g_define_type_info, 0);
- g_once_init_leave (&gp_spin_idle_wrapper_type_id__volatile, gp_spin_idle_wrapper_type_id);
- }
- return gp_spin_idle_wrapper_type_id__volatile;
-}
-
-
-gboolean
-gp_get_info (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- CameraFileInfo* info,
- GError** error)
-{
- CameraFileInfo _vala_info = {0};
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- gint _tmp2_;
- int res = 0;
- CameraFileInfo _tmp6_ = {0};
- int _tmp7_;
- int _tmp8_;
- GError * _inner_error_ = NULL;
-#line 102 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, FALSE);
-#line 102 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (camera != NULL, FALSE);
-#line 102 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (folder != NULL, FALSE);
-#line 102 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (filename != NULL, FALSE);
-#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp1_ = strlen (folder);
-#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = _tmp1_;
-#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp2_ > GP_MAX_BASEDIR_LENGTH) {
-#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = TRUE;
-#line 1165 "GPhoto.c"
- } else {
- gint _tmp3_;
- gint _tmp4_;
-#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = strlen (filename);
-#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = _tmp3_;
-#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = _tmp4_ > GP_MAX_FILENAME_LENGTH;
-#line 1175 "GPhoto.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp0_) {
-#line 1179 "GPhoto.c"
- CameraFileInfo _tmp5_ = {0};
-#line 105 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- (_vala_info);
-#line 105 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _vala_info = _tmp5_;
-#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = FALSE;
-#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (info) {
-#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- *info = _vala_info;
-#line 1191 "GPhoto.c"
- } else {
-#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- (_vala_info);
-#line 1195 "GPhoto.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1199 "GPhoto.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7_ = gp_camera_file_get_info (camera, folder, filename, &_tmp6_, context);
-#line 110 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- (_vala_info);
-#line 110 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _vala_info = _tmp6_;
-#line 110 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = _tmp7_;
-#line 111 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp8_ = res;
-#line 111 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp8_ != GP_OK) {
-#line 1213 "GPhoto.c"
- int _tmp9_;
- int _tmp10_;
- const gchar* _tmp11_;
- GError* _tmp12_;
- gboolean _tmp13_ = FALSE;
-#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = res;
-#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp10_ = res;
-#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp11_ = gp_port_result_as_string (_tmp10_);
-#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp12_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error retrieving file information for %s/%s: %s", (gint) _tmp9_, folder, filename, _tmp11_);
-#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp12_;
-#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return _tmp13_;
-#line 1233 "GPhoto.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = TRUE;
-#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (info) {
-#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- *info = _vala_info;
-#line 1241 "GPhoto.c"
- } else {
-#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- (_vala_info);
-#line 1245 "GPhoto.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1249 "GPhoto.c"
-}
-
-
-static gpointer
-_GPHOTO_REF_FILE0 (gpointer self)
-{
-#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return self ? GPHOTO_REF_FILE (self) : NULL;
-#line 1258 "GPhoto.c"
-}
-
-
-GBytes*
-gp_camera_file_to_bytes (GPContext* context,
- CameraFile* file)
-{
- GBytes* result = NULL;
- guint8* data = NULL;
- gulong data_len = 0UL;
- int res = 0;
- guint8* _tmp0_ = NULL;
- gulong _tmp1_ = 0UL;
- int _tmp2_;
- int _tmp3_;
- guint8* buffer = NULL;
- guint8* _tmp4_;
- gint buffer_length1;
- gint _buffer_size_;
- gulong _tmp5_;
- gint _tmp6_;
- guint8* _tmp7_;
- gint _tmp7__length1;
- CameraFile* _tmp8_;
- GBytes* _tmp9_;
-#line 118 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, NULL);
-#line 118 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (file != NULL, NULL);
-#line 124 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = gp_file_get_data_and_size (file, &_tmp0_, &_tmp1_);
-#line 124 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- data = _tmp0_;
-#line 124 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- data_len = _tmp1_;
-#line 124 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = _tmp2_;
-#line 125 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = res;
-#line 125 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp3_ != GP_OK) {
-#line 126 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = NULL;
-#line 126 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1304 "GPhoto.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = data;
-#line 128 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- buffer = (guint8*) _tmp4_;
-#line 128 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- buffer_length1 = sizeof (guint8) / sizeof (guint8);
-#line 128 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _buffer_size_ = buffer_length1;
-#line 129 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp5_ = data_len;
-#line 129 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- buffer_length1 = (gint) _tmp5_;
-#line 129 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp6_ = buffer_length1;
-#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7_ = buffer;
-#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7__length1 = buffer_length1;
-#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp8_ = _GPHOTO_REF_FILE0 (file);
-#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = g_bytes_new_with_free_func (_tmp7_, (gsize) _tmp7__length1, gp_file_unref, _tmp8_);
-#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = _tmp9_;
-#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1332 "GPhoto.c"
-}
-
-
-static gchar*
-string_slice (const gchar* self,
- glong start,
- glong end)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gint _tmp0_;
- gint _tmp1_;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp6_ = FALSE;
- gchar* _tmp8_;
-#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strlen (self);
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _tmp0_;
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp1_;
-#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (start < ((glong) 0)) {
-#line 1358 "GPhoto.c"
- glong _tmp2_;
-#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = string_length;
-#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- start = _tmp2_ + start;
-#line 1364 "GPhoto.c"
- }
-#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (end < ((glong) 0)) {
-#line 1368 "GPhoto.c"
- glong _tmp3_;
-#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp3_ + end;
-#line 1374 "GPhoto.c"
- }
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (start >= ((glong) 0)) {
-#line 1378 "GPhoto.c"
- glong _tmp5_;
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = start <= _tmp5_;
-#line 1384 "GPhoto.c"
- } else {
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = FALSE;
-#line 1388 "GPhoto.c"
- }
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp4_, NULL);
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (end >= ((glong) 0)) {
-#line 1394 "GPhoto.c"
- glong _tmp7_;
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = string_length;
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = end <= _tmp7_;
-#line 1400 "GPhoto.c"
- } else {
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = FALSE;
-#line 1404 "GPhoto.c"
- }
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp6_, NULL);
-#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (start <= end, NULL);
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start));
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp8_;
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1416 "GPhoto.c"
-}
-
-
-PhotoMetadata*
-gp_get_fallback_metadata (Camera* camera,
- GPContext* context,
- const gchar* folder,
- const gchar* filename)
-{
- PhotoMetadata* result = NULL;
- CameraStorageInformation* sifs = NULL;
- gint count = 0;
- gint _tmp0_ = 0;
- GPPortInfo port_info = {0};
- GPPortInfo _tmp1_ = {0};
- gchar* path = NULL;
- const gchar* _tmp2_ = NULL;
- gchar* _tmp3_;
- gchar* prefix = NULL;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp13_;
- GError * _inner_error_ = NULL;
-#line 137 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 137 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, NULL);
-#line 137 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 137 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 138 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- sifs = NULL;
-#line 139 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- count = 0;
-#line 140 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_camera_get_storageinfo (camera, &sifs, &_tmp0_, context);
-#line 140 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- count = _tmp0_;
-#line 143 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_camera_get_port_info (camera, &_tmp1_);
-#line 143 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- (port_info);
-#line 143 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- port_info = _tmp1_;
-#line 146 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- gp_port_info_get_path (port_info, &_tmp2_);
-#line 146 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (path);
-#line 146 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 146 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- path = _tmp3_;
-#line 148 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = g_strdup ("disk:");
-#line 148 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- prefix = _tmp4_;
-#line 149 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp5_ = path;
-#line 149 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (g_str_has_prefix (_tmp5_, prefix)) {
-#line 1479 "GPhoto.c"
- const gchar* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- const gchar* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gchar* _tmp12_;
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp6_ = path;
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7_ = strlen (prefix);
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp8_ = _tmp7_;
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = path;
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp10_ = strlen (_tmp9_);
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp11_ = _tmp10_;
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp12_ = string_slice (_tmp6_, (glong) _tmp8_, (glong) _tmp11_);
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (path);
-#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- path = _tmp12_;
-#line 1505 "GPhoto.c"
- } else {
-#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = NULL;
-#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (prefix);
-#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (path);
-#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- (port_info);
-#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1517 "GPhoto.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp13_ = photo_metadata_new ();
-#line 154 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- metadata = _tmp13_;
-#line 1523 "GPhoto.c"
- {
- PhotoMetadata* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GFile* _tmp22_;
- GFile* _tmp23_;
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp14_ = metadata;
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp15_ = path;
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp16_ = g_strconcat (_tmp15_, folder, NULL);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp17_ = _tmp16_;
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp18_ = g_strconcat (_tmp17_, "/", NULL);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp19_ = _tmp18_;
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp20_ = g_strconcat (_tmp19_, filename, NULL);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp21_ = _tmp20_;
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp22_ = g_file_new_for_path (_tmp21_);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp23_ = _tmp22_;
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp23_, &_inner_error_);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (_tmp23_);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_tmp21_);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_tmp19_);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_tmp17_);
-#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1567 "GPhoto.c"
- goto __catch69_g_error;
- }
- }
- goto __finally69;
- __catch69_g_error:
- {
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_clear_error (&_inner_error_);
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = NULL;
-#line 158 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 158 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- metadata = NULL;
-#line 1582 "GPhoto.c"
- }
- __finally69:
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (prefix);
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (path);
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- (port_info);
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.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 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_clear_error (&_inner_error_);
-#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 1601 "GPhoto.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = metadata;
-#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (prefix);
-#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (path);
-#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- (port_info);
-#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1613 "GPhoto.c"
-}
-
-
-static gpointer
-_g_bytes_ref0 (gpointer self)
-{
-#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return self ? g_bytes_ref (self) : NULL;
-#line 1622 "GPhoto.c"
-}
-
-
-GdkPixbuf*
-gp_load_preview (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- gchar* * preview_md5,
- GError** error)
-{
- gchar* _vala_preview_md5 = NULL;
- GdkPixbuf* result = NULL;
- GBytes* raw = NULL;
- GBytes* out_bytes = NULL;
- GBytes* _tmp15_;
- GBytes* _tmp16_;
- GBytes* _tmp17_;
- gchar* _tmp18_;
- GMemoryInputStream* mins = NULL;
- GBytes* _tmp19_;
- GMemoryInputStream* _tmp20_;
- GdkPixbuf* _tmp21_ = NULL;
- GMemoryInputStream* _tmp22_;
- GdkPixbuf* _tmp23_;
- GdkPixbuf* _tmp24_;
- GError * _inner_error_ = NULL;
-#line 164 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, NULL);
-#line 164 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 164 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 164 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 166 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- raw = NULL;
-#line 167 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- out_bytes = NULL;
-#line 168 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_vala_preview_md5);
-#line 168 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _vala_preview_md5 = NULL;
-#line 1666 "GPhoto.c"
- {
- GBytes* _tmp0_ = NULL;
- GBytes* _tmp1_;
- GBytes* _tmp2_;
-#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp1_ = gp_load_file_into_buffer (context, camera, folder, filename, GP_FILE_TYPE_PREVIEW, &_inner_error_);
-#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1677 "GPhoto.c"
- goto __catch70_g_error;
- }
-#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = _tmp0_;
-#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = NULL;
-#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (raw);
-#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- raw = _tmp2_;
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (_tmp0_);
-#line 1690 "GPhoto.c"
- }
- goto __finally70;
- __catch70_g_error:
- {
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp3_;
- PhotoMetadata* _tmp4_;
- PhotoMetadata* _tmp5_;
- PhotoPreview* preview = NULL;
- PhotoMetadata* _tmp6_;
- PhotoMetadata* _tmp7_;
- PhotoPreview* _tmp8_;
- GBytes* _tmp9_ = NULL;
- PhotoPreview* _tmp10_;
- GBytes* _tmp11_;
- GBytes* _tmp12_;
- GBytes* _tmp13_;
- gchar* _tmp14_;
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_clear_error (&_inner_error_);
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = NULL;
-#line 173 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = gp_get_fallback_metadata (camera, context, folder, filename);
-#line 173 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- metadata = _tmp3_;
-#line 174 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = metadata;
-#line 174 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (NULL == _tmp4_) {
-#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = NULL;
-#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (out_bytes);
-#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (raw);
-#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (preview_md5) {
-#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- *preview_md5 = _vala_preview_md5;
-#line 1733 "GPhoto.c"
- } else {
-#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_vala_preview_md5);
-#line 1737 "GPhoto.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1741 "GPhoto.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp5_ = metadata;
-#line 176 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (((guint) 0) == photo_metadata_get_preview_count (_tmp5_)) {
-#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = NULL;
-#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (out_bytes);
-#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (raw);
-#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (preview_md5) {
-#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- *preview_md5 = _vala_preview_md5;
-#line 1759 "GPhoto.c"
- } else {
-#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_vala_preview_md5);
-#line 1763 "GPhoto.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1767 "GPhoto.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp6_ = metadata;
-#line 180 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7_ = metadata;
-#line 180 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp8_ = photo_metadata_get_preview (_tmp6_, photo_metadata_get_preview_count (_tmp7_) - 1);
-#line 180 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- preview = _tmp8_;
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp10_ = preview;
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp11_ = photo_preview_flatten (_tmp10_, &_inner_error_);
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = _tmp11_;
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _photo_preview_unref0 (preview);
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 1789 "GPhoto.c"
- goto __finally70;
- }
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp12_ = _tmp9_;
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = NULL;
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (raw);
-#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- raw = _tmp12_;
-#line 182 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp13_ = raw;
-#line 182 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp14_ = g_compute_checksum_for_bytes (G_CHECKSUM_MD5, _tmp13_);
-#line 182 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_vala_preview_md5);
-#line 182 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _vala_preview_md5 = _tmp14_;
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (_tmp9_);
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _photo_preview_unref0 (preview);
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 1814 "GPhoto.c"
- }
- __finally70:
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (out_bytes);
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (raw);
-#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 1827 "GPhoto.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp15_ = raw;
-#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp16_ = _g_bytes_ref0 (_tmp15_);
-#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (out_bytes);
-#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- out_bytes = _tmp16_;
-#line 186 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp17_ = out_bytes;
-#line 186 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp18_ = g_compute_checksum_for_bytes (G_CHECKSUM_MD5, _tmp17_);
-#line 186 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_vala_preview_md5);
-#line 186 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _vala_preview_md5 = _tmp18_;
-#line 188 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp19_ = raw;
-#line 188 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp20_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp19_);
-#line 188 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- mins = _tmp20_;
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp22_ = mins;
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp23_ = gdk_pixbuf_new_from_stream_at_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, g_input_stream_get_type (), GInputStream), IMPORT_PREVIEW_MAX_SCALE, IMPORT_PREVIEW_MAX_SCALE, TRUE, NULL, &_inner_error_);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp21_ = _tmp23_;
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (mins);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (out_bytes);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (raw);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 1869 "GPhoto.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp24_ = _tmp21_;
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp21_ = NULL;
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = _tmp24_;
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (_tmp21_);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (mins);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (out_bytes);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (raw);
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (preview_md5) {
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- *preview_md5 = _vala_preview_md5;
-#line 1889 "GPhoto.c"
- } else {
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_vala_preview_md5);
-#line 1893 "GPhoto.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1897 "GPhoto.c"
-}
-
-
-GdkPixbuf*
-gp_load_image (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GInputStream* ins = NULL;
- GInputStream* _tmp0_;
- GInputStream* _tmp1_;
- GdkPixbuf* _tmp2_ = NULL;
- GInputStream* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 193 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, NULL);
-#line 193 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 193 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 193 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = gp_load_file_into_stream (context, camera, folder, filename, GP_FILE_TYPE_NORMAL, &_inner_error_);
-#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- ins = _tmp0_;
-#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 1935 "GPhoto.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp1_ = ins;
-#line 196 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp1_ == NULL) {
-#line 197 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = NULL;
-#line 197 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (ins);
-#line 197 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1947 "GPhoto.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = ins;
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = gdk_pixbuf_new_from_stream (_tmp3_, NULL, &_inner_error_);
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = _tmp4_;
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (ins);
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 1963 "GPhoto.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp5_ = _tmp2_;
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = NULL;
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = _tmp5_;
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (_tmp2_);
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (ins);
-#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 1977 "GPhoto.c"
-}
-
-
-void
-gp_save_image (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- GFile* dest_file,
- GError** error)
-{
- gint fd = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- CameraFile* camera_file = NULL;
- int res = 0;
- gint _tmp9_;
- CameraFile* _tmp10_ = NULL;
- int _tmp11_;
- int _tmp12_;
- CameraFile* _tmp17_;
- int _tmp18_;
- GError * _inner_error_ = NULL;
-#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (context != NULL);
-#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (camera != NULL);
-#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (folder != NULL);
-#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (filename != NULL);
-#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_if_fail (G_IS_FILE (dest_file));
-#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = g_file_get_path (dest_file);
-#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp1_ = _tmp0_;
-#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = creat (_tmp1_, (mode_t) 0640);
-#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_tmp1_);
-#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- fd = _tmp2_;
-#line 204 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = fd;
-#line 204 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp3_ < 0) {
-#line 2027 "GPhoto.c"
- gint _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GError* _tmp7_;
- GError* _tmp8_;
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = errno;
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp5_ = g_file_get_path (dest_file);
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp6_ = _tmp5_;
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "[%d] Error creating file %s: %m", _tmp4_, _tmp6_);
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp8_ = _tmp7_;
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_tmp6_);
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp8_;
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return;
-#line 2051 "GPhoto.c"
- }
-#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = fd;
-#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp11_ = gp_file_new_from_fd (&_tmp10_, _tmp9_);
-#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- camera_file = _tmp10_;
-#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = _tmp11_;
-#line 210 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp12_ = res;
-#line 210 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp12_ != GP_OK) {
-#line 2067 "GPhoto.c"
- int _tmp13_;
- int _tmp14_;
- const gchar* _tmp15_;
- GError* _tmp16_;
-#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp13_ = res;
-#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp14_ = res;
-#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp15_ = gp_port_result_as_string (_tmp14_);
-#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp16_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error allocating camera file: %s", (gint) _tmp13_, _tmp15_);
-#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp16_;
-#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return;
-#line 2088 "GPhoto.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp17_ = camera_file;
-#line 214 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = gp_camera_file_get (camera, folder, filename, GP_FILE_TYPE_NORMAL, _tmp17_, context);
-#line 215 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp18_ = res;
-#line 215 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp18_ != GP_OK) {
-#line 2098 "GPhoto.c"
- int _tmp19_;
- int _tmp20_;
- const gchar* _tmp21_;
- GError* _tmp22_;
-#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp19_ = res;
-#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp20_ = res;
-#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp21_ = gp_port_result_as_string (_tmp20_);
-#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp22_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error retrieving file object for %s/%s: %s", (gint) _tmp19_, folder, filename, _tmp21_);
-#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp22_;
-#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return;
-#line 2119 "GPhoto.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 2123 "GPhoto.c"
-}
-
-
-static gint
-_vala_g_bytes_get_length (GBytes* self)
-{
- gint result;
-#line 5049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 5051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) g_bytes_get_size (self);
-#line 5051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2137 "GPhoto.c"
-}
-
-
-PhotoMetadata*
-gp_load_metadata (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- GError** error)
-{
- PhotoMetadata* result = NULL;
- GBytes* camera_raw = NULL;
- gboolean _tmp4_ = FALSE;
- GBytes* _tmp5_;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp9_;
- PhotoMetadata* _tmp10_;
- GBytes* _tmp11_;
- GError * _inner_error_ = NULL;
-#line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, NULL);
-#line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 223 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- camera_raw = NULL;
-#line 2167 "GPhoto.c"
- {
- GBytes* _tmp0_ = NULL;
- GBytes* _tmp1_;
- GBytes* _tmp2_;
-#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp1_ = gp_load_file_into_buffer (context, camera, folder, filename, GP_FILE_TYPE_EXIF, &_inner_error_);
-#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = _tmp1_;
-#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2178 "GPhoto.c"
- goto __catch71_g_error;
- }
-#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = _tmp0_;
-#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp0_ = NULL;
-#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (camera_raw);
-#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- camera_raw = _tmp2_;
-#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (_tmp0_);
-#line 2191 "GPhoto.c"
- }
- goto __finally71;
- __catch71_g_error:
- {
- PhotoMetadata* _tmp3_;
-#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_clear_error (&_inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = NULL;
-#line 227 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = gp_get_fallback_metadata (camera, context, folder, filename);
-#line 227 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = _tmp3_;
-#line 227 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (camera_raw);
-#line 227 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 2209 "GPhoto.c"
- }
- __finally71:
-#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (camera_raw);
-#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 2220 "GPhoto.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp5_ = camera_raw;
-#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp5_ == NULL) {
-#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = TRUE;
-#line 2228 "GPhoto.c"
- } else {
- GBytes* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp6_ = camera_raw;
-#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7_ = _vala_g_bytes_get_length (_tmp6_);
-#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp8_ = _tmp7_;
-#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = _tmp8_ == 0;
-#line 2241 "GPhoto.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp4_) {
-#line 231 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = NULL;
-#line 231 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (camera_raw);
-#line 231 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 2251 "GPhoto.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = photo_metadata_new ();
-#line 233 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- metadata = _tmp9_;
-#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp10_ = metadata;
-#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp11_ = camera_raw;
-#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- photo_metadata_read_from_app1_segment (_tmp10_, _tmp11_, &_inner_error_);
-#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (camera_raw);
-#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 2273 "GPhoto.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = metadata;
-#line 236 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (camera_raw);
-#line 236 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 2281 "GPhoto.c"
-}
-
-
-GInputStream*
-gp_load_file_into_stream (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- CameraFileType filetype,
- GError** error)
-{
- GInputStream* result = NULL;
- CameraFile* camera_file = NULL;
- int res = 0;
- CameraFile* _tmp0_ = NULL;
- int _tmp1_;
- int _tmp2_;
- int _tmp7_;
- GBytes* bytes = NULL;
- GBytes* _tmp12_;
- GBytes* _tmp13_;
- GFile* temp = NULL;
- GFile* _tmp16_;
- GFile* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
- GFile* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- int _tmp23_;
- GFileInputStream* _tmp32_ = NULL;
- GFile* _tmp33_;
- GFileInputStream* _tmp34_;
- GFileInputStream* _tmp35_;
- GError * _inner_error_ = NULL;
-#line 241 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, NULL);
-#line 241 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 241 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 241 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 244 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp1_ = gp_file_new (&_tmp0_);
-#line 244 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 244 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- camera_file = _tmp0_;
-#line 244 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = _tmp1_;
-#line 245 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = res;
-#line 245 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp2_ != GP_OK) {
-#line 2337 "GPhoto.c"
- int _tmp3_;
- int _tmp4_;
- const gchar* _tmp5_;
- GError* _tmp6_;
-#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = res;
-#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = res;
-#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp5_ = gp_port_result_as_string (_tmp4_);
-#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp6_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error allocating camera file: %s", (gint) _tmp3_, _tmp5_);
-#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp6_;
-#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 2358 "GPhoto.c"
- }
-#line 248 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = gp_camera_file_get (camera, folder, filename, filetype, camera_file, context);
-#line 249 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7_ = res;
-#line 249 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp7_ != GP_OK) {
-#line 2366 "GPhoto.c"
- int _tmp8_;
- int _tmp9_;
- const gchar* _tmp10_;
- GError* _tmp11_;
-#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp8_ = res;
-#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = res;
-#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp10_ = gp_port_result_as_string (_tmp9_);
-#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp11_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error retrieving file object for %s/%s: %s", (gint) _tmp8_, folder, filename, _tmp10_);
-#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp11_;
-#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 2387 "GPhoto.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp12_ = gp_camera_file_to_bytes (context, camera_file);
-#line 256 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- bytes = _tmp12_;
-#line 257 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp13_ = bytes;
-#line 257 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp13_ != NULL) {
-#line 2397 "GPhoto.c"
- GBytes* _tmp14_;
- GMemoryInputStream* _tmp15_;
-#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp14_ = bytes;
-#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp15_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp14_);
-#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, g_input_stream_get_type (), GInputStream);
-#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (bytes);
-#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 2412 "GPhoto.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp16_ = app_dirs_get_temp_dir ();
-#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp17_ = _tmp16_;
-#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp18_ = g_file_get_child (_tmp17_, "import.tmp");
-#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp19_ = _tmp18_;
-#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (_tmp17_);
-#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- temp = _tmp19_;
-#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp20_ = temp;
-#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp21_ = g_file_get_path (_tmp20_);
-#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp22_ = _tmp21_;
-#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = gp_file_save (camera_file, _tmp22_);
-#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_tmp22_);
-#line 264 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp23_ = res;
-#line 264 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp23_ != GP_OK) {
-#line 2440 "GPhoto.c"
- int _tmp24_;
- GFile* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- int _tmp28_;
- const gchar* _tmp29_;
- GError* _tmp30_;
- GError* _tmp31_;
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp24_ = res;
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp25_ = temp;
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp26_ = g_file_get_path (_tmp25_);
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp27_ = _tmp26_;
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp28_ = res;
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp29_ = gp_port_result_as_string (_tmp28_);
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp30_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error copying file %s/%s to %s: %s", (gint) _tmp24_, folder, filename, _tmp27_, _tmp29_);
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp31_ = _tmp30_;
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_free0 (_tmp27_);
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp31_;
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (temp);
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (bytes);
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 2479 "GPhoto.c"
- }
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp33_ = temp;
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp34_ = g_file_read (_tmp33_, NULL, &_inner_error_);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp32_ = _tmp34_;
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (temp);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (bytes);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 2499 "GPhoto.c"
- }
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp35_ = _tmp32_;
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp32_ = NULL;
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, g_input_stream_get_type (), GInputStream);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (_tmp32_);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_object_unref0 (temp);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _g_bytes_unref0 (bytes);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 2517 "GPhoto.c"
-}
-
-
-GBytes*
-gp_load_file_into_buffer (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- CameraFileType filetype,
- GError** error)
-{
- GBytes* result = NULL;
- CameraFile* camera_file = NULL;
- int res = 0;
- CameraFile* _tmp0_ = NULL;
- int _tmp1_;
- int _tmp2_;
- CameraFile* _tmp7_;
- int _tmp8_;
- CameraFile* _tmp13_;
- GBytes* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 272 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (context != NULL, NULL);
-#line 272 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 272 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 272 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 275 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp1_ = gp_file_new (&_tmp0_);
-#line 275 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 275 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- camera_file = _tmp0_;
-#line 275 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = _tmp1_;
-#line 276 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp2_ = res;
-#line 276 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp2_ != GP_OK) {
-#line 2560 "GPhoto.c"
- int _tmp3_;
- int _tmp4_;
- const gchar* _tmp5_;
- GError* _tmp6_;
-#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp3_ = res;
-#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp4_ = res;
-#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp5_ = gp_port_result_as_string (_tmp4_);
-#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp6_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error allocating camera file: %s", (gint) _tmp3_, _tmp5_);
-#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp6_;
-#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 2581 "GPhoto.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp7_ = camera_file;
-#line 279 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- res = gp_camera_file_get (camera, folder, filename, filetype, _tmp7_, context);
-#line 280 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp8_ = res;
-#line 280 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- if (_tmp8_ != GP_OK) {
-#line 2591 "GPhoto.c"
- int _tmp9_;
- int _tmp10_;
- const gchar* _tmp11_;
- GError* _tmp12_;
-#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp9_ = res;
-#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp10_ = res;
-#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp11_ = gp_port_result_as_string (_tmp10_);
-#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp12_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error retrieving file object for %s/%s: %s", (gint) _tmp9_, folder, filename, _tmp11_);
-#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _inner_error_ = _tmp12_;
-#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return NULL;
-#line 2612 "GPhoto.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp13_ = camera_file;
-#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _tmp14_ = gp_camera_file_to_bytes (context, _tmp13_);
-#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- result = _tmp14_;
-#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- _gp_file_unref0 (camera_file);
-#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala"
- return result;
-#line 2624 "GPhoto.c"
-}
-
-
-
diff --git a/src/camera/ImportPage.c b/src/camera/ImportPage.c
deleted file mode 100644
index 7287f44..0000000
--- a/src/camera/ImportPage.c
+++ /dev/null
@@ -1,13894 +0,0 @@
-/* ImportPage.c generated by valac 0.40.4, the Vala compiler
- * generated from ImportPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <time.h>
-#include <gphoto2/gphoto2-camera.h>
-#include <gphoto.h>
-#include <gphoto2/gphoto2-result.h>
-#include <gphoto2/gphoto2-port-result.h>
-#include <float.h>
-#include <math.h>
-#include <gphoto2/gphoto2-context.h>
-#include <cairo.h>
-#include <gdk/gdk.h>
-#include <pango/pango.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-#include <gtk/gtk.h>
-#include <gphoto2/gphoto2-abilities-list.h>
-#include <gphoto2/gphoto2-list.h>
-#include <gphoto2/gphoto2-filesys.h>
-
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_IMPORT_SOURCE_COLLECTION (import_source_collection_get_type ())
-#define IMPORT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_SOURCE_COLLECTION, ImportSourceCollection))
-#define IMPORT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_SOURCE_COLLECTION, ImportSourceCollectionClass))
-#define IS_IMPORT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_SOURCE_COLLECTION))
-#define IS_IMPORT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_SOURCE_COLLECTION))
-#define IMPORT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_SOURCE_COLLECTION, ImportSourceCollectionClass))
-
-typedef struct _ImportSourceCollection ImportSourceCollection;
-typedef struct _ImportSourceCollectionClass ImportSourceCollectionClass;
-typedef struct _ImportSourceCollectionPrivate ImportSourceCollectionPrivate;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_IMPORT_SOURCE (import_source_get_type ())
-#define IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_SOURCE, ImportSource))
-#define IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_SOURCE, ImportSourceClass))
-#define IS_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_SOURCE))
-#define IS_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_SOURCE))
-#define IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_SOURCE, ImportSourceClass))
-
-typedef struct _ImportSource ImportSource;
-typedef struct _ImportSourceClass ImportSourceClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-typedef struct _ImportSourcePrivate ImportSourcePrivate;
-enum {
- IMPORT_SOURCE_0_PROPERTY,
- IMPORT_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* import_source_properties[IMPORT_SOURCE_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _gp_camera_unref0(var) ((var == NULL) ? NULL : (var = (gp_camera_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define GP_TYPE_CONTEXT_WRAPPER (gp_context_wrapper_get_type ())
-#define GP_CONTEXT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper))
-#define GP_CONTEXT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapperClass))
-#define GP_IS_CONTEXT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GP_TYPE_CONTEXT_WRAPPER))
-#define GP_IS_CONTEXT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GP_TYPE_CONTEXT_WRAPPER))
-#define GP_CONTEXT_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapperClass))
-
-typedef struct _GPContextWrapper GPContextWrapper;
-typedef struct _GPContextWrapperClass GPContextWrapperClass;
-
-#define GP_TYPE_SPIN_IDLE_WRAPPER (gp_spin_idle_wrapper_get_type ())
-#define GP_SPIN_IDLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapper))
-#define GP_SPIN_IDLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapperClass))
-#define GP_IS_SPIN_IDLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GP_TYPE_SPIN_IDLE_WRAPPER))
-#define GP_IS_SPIN_IDLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GP_TYPE_SPIN_IDLE_WRAPPER))
-#define GP_SPIN_IDLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapperClass))
-
-typedef struct _GPSpinIdleWrapper GPSpinIdleWrapper;
-typedef struct _GPSpinIdleWrapperClass GPSpinIdleWrapperClass;
-typedef struct _GPContextWrapperPrivate GPContextWrapperPrivate;
-
-#define TYPE_VIDEO_IMPORT_SOURCE (video_import_source_get_type ())
-#define VIDEO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource))
-#define VIDEO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSourceClass))
-#define IS_VIDEO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_IMPORT_SOURCE))
-#define IS_VIDEO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_IMPORT_SOURCE))
-#define VIDEO_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSourceClass))
-
-typedef struct _VideoImportSource VideoImportSource;
-typedef struct _VideoImportSourceClass VideoImportSourceClass;
-typedef struct _VideoImportSourcePrivate VideoImportSourcePrivate;
-enum {
- VIDEO_IMPORT_SOURCE_0_PROPERTY,
- VIDEO_IMPORT_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* video_import_source_properties[VIDEO_IMPORT_SOURCE_NUM_PROPERTIES];
-
-#define TYPE_PHOTO_IMPORT_SOURCE (photo_import_source_get_type ())
-#define PHOTO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource))
-#define PHOTO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourceClass))
-#define IS_PHOTO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_SOURCE))
-#define IS_PHOTO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_SOURCE))
-#define PHOTO_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourceClass))
-
-typedef struct _PhotoImportSource PhotoImportSource;
-typedef struct _PhotoImportSourceClass PhotoImportSourceClass;
-typedef struct _PhotoImportSourcePrivate PhotoImportSourcePrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-enum {
- PHOTO_IMPORT_SOURCE_0_PROPERTY,
- PHOTO_IMPORT_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* photo_import_source_properties[PHOTO_IMPORT_SOURCE_NUM_PROPERTIES];
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#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))
-#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
-#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
-#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
-
-typedef struct _MediaSourceItem MediaSourceItem;
-typedef struct _MediaSourceItemClass MediaSourceItemClass;
-typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate;
-
-#define TYPE_IMPORT_PREVIEW (import_preview_get_type ())
-#define IMPORT_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_PREVIEW, ImportPreview))
-#define IMPORT_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_PREVIEW, ImportPreviewClass))
-#define IS_IMPORT_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_PREVIEW))
-#define IS_IMPORT_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_PREVIEW))
-#define IMPORT_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_PREVIEW, ImportPreviewClass))
-
-typedef struct _ImportPreview ImportPreview;
-typedef struct _ImportPreviewClass ImportPreviewClass;
-typedef struct _ImportPreviewPrivate ImportPreviewPrivate;
-
-#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ())
-#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile))
-#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE))
-#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE))
-#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-
-typedef struct _DuplicatedFile DuplicatedFile;
-typedef struct _DuplicatedFileClass DuplicatedFileClass;
-enum {
- IMPORT_PREVIEW_0_PROPERTY,
- IMPORT_PREVIEW_NUM_PROPERTIES
-};
-static GParamSpec* import_preview_properties[IMPORT_PREVIEW_NUM_PROPERTIES];
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define TYPE_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#define TYPE_VIDEO_ID (video_id_get_type ())
-typedef struct _VideoID VideoID;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-typedef struct _CoreTrackerPrivate CoreTrackerPrivate;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-typedef struct _CoreViewTrackerPrivate CoreViewTrackerPrivate;
-
-#define TYPE_CAMERA_VIEW_TRACKER (camera_view_tracker_get_type ())
-#define CAMERA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker))
-#define CAMERA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_VIEW_TRACKER, CameraViewTrackerClass))
-#define IS_CAMERA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_VIEW_TRACKER))
-#define IS_CAMERA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_VIEW_TRACKER))
-#define CAMERA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_VIEW_TRACKER, CameraViewTrackerClass))
-
-typedef struct _CameraViewTracker CameraViewTracker;
-typedef struct _CameraViewTrackerClass CameraViewTrackerClass;
-typedef struct _CameraViewTrackerPrivate CameraViewTrackerPrivate;
-
-#define TYPE_CAMERA_ACCUMULATOR (camera_accumulator_get_type ())
-#define CAMERA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_ACCUMULATOR, CameraAccumulator))
-#define CAMERA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorClass))
-#define IS_CAMERA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_ACCUMULATOR))
-#define IS_CAMERA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_ACCUMULATOR))
-#define CAMERA_ACCUMULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorClass))
-
-typedef struct _CameraAccumulator CameraAccumulator;
-typedef struct _CameraAccumulatorClass CameraAccumulatorClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define CORE_TYPE_TRACKER_ACCUMULATOR (core_tracker_accumulator_get_type ())
-#define CORE_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator))
-#define CORE_IS_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR))
-#define CORE_TRACKER_ACCUMULATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulatorIface))
-
-typedef struct _CoreTrackerAccumulator CoreTrackerAccumulator;
-typedef struct _CoreTrackerAccumulatorIface CoreTrackerAccumulatorIface;
-typedef struct _CameraAccumulatorPrivate CameraAccumulatorPrivate;
-enum {
- CAMERA_ACCUMULATOR_0_PROPERTY,
- CAMERA_ACCUMULATOR_TOTAL_PROPERTY,
- CAMERA_ACCUMULATOR_PHOTOS_PROPERTY,
- CAMERA_ACCUMULATOR_VIDEOS_PROPERTY,
- CAMERA_ACCUMULATOR_RAW_PROPERTY,
- CAMERA_ACCUMULATOR_NUM_PROPERTIES
-};
-static GParamSpec* camera_accumulator_properties[CAMERA_ACCUMULATOR_NUM_PROPERTIES];
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define TYPE_IMPORT_PAGE (import_page_get_type ())
-#define IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_PAGE, ImportPage))
-#define IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_PAGE, ImportPageClass))
-#define IS_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_PAGE))
-#define IS_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_PAGE))
-#define IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_PAGE, ImportPageClass))
-
-typedef struct _ImportPage ImportPage;
-typedef struct _ImportPageClass ImportPageClass;
-typedef struct _ImportPagePrivate ImportPagePrivate;
-
-#define IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER (import_page_import_page_search_view_filter_get_type ())
-#define IMPORT_PAGE_IMPORT_PAGE_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilter))
-#define IMPORT_PAGE_IMPORT_PAGE_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilterClass))
-#define IMPORT_PAGE_IS_IMPORT_PAGE_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER))
-#define IMPORT_PAGE_IS_IMPORT_PAGE_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER))
-#define IMPORT_PAGE_IMPORT_PAGE_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilterClass))
-
-typedef struct _ImportPageImportPageSearchViewFilter ImportPageImportPageSearchViewFilter;
-typedef struct _ImportPageImportPageSearchViewFilterClass ImportPageImportPageSearchViewFilterClass;
-
-#define IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER (import_page_hide_imported_view_filter_get_type ())
-#define IMPORT_PAGE_HIDE_IMPORTED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilter))
-#define IMPORT_PAGE_HIDE_IMPORTED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilterClass))
-#define IMPORT_PAGE_IS_HIDE_IMPORTED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER))
-#define IMPORT_PAGE_IS_HIDE_IMPORTED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER))
-#define IMPORT_PAGE_HIDE_IMPORTED_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilterClass))
-
-typedef struct _ImportPageHideImportedViewFilter ImportPageHideImportedViewFilter;
-typedef struct _ImportPageHideImportedViewFilterClass ImportPageHideImportedViewFilterClass;
-enum {
- IMPORT_PAGE_0_PROPERTY,
- IMPORT_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* import_page_properties[IMPORT_PAGE_NUM_PROPERTIES];
-
-#define IMPORT_PAGE_TYPE_REFRESH_RESULT (import_page_refresh_result_get_type ())
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL)))
-#define _gp_context_wrapper_unref0(var) ((var == NULL) ? NULL : (var = (gp_context_wrapper_unref (var), NULL)))
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-
-#define IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER (import_page_import_view_manager_get_type ())
-#define IMPORT_PAGE_IMPORT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManager))
-#define IMPORT_PAGE_IMPORT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManagerClass))
-#define IMPORT_PAGE_IS_IMPORT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER))
-#define IMPORT_PAGE_IS_IMPORT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER))
-#define IMPORT_PAGE_IMPORT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManagerClass))
-
-typedef struct _ImportPageImportViewManager ImportPageImportViewManager;
-typedef struct _ImportPageImportViewManagerClass ImportPageImportViewManagerClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-
-#define IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB (import_page_camera_import_job_get_type ())
-#define IMPORT_PAGE_CAMERA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob))
-#define IMPORT_PAGE_CAMERA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJobClass))
-#define IMPORT_PAGE_IS_CAMERA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB))
-#define IMPORT_PAGE_IS_CAMERA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB))
-#define IMPORT_PAGE_CAMERA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJobClass))
-
-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))
-#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 _gp_list_unref0(var) ((var == NULL) ? NULL : (var = (gp_list_unref (var), NULL)))
-
-#define TYPE_SORTED_LIST (sorted_list_get_type ())
-#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
-#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
-#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
-#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
-#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
-
-typedef struct _SortedList SortedList;
-typedef struct _SortedListClass SortedListClass;
-#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
-
-#define TYPE_BATCH_IMPORT (batch_import_get_type ())
-#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
-#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
-#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
-#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
-#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
-
-typedef struct _BatchImport BatchImport;
-typedef struct _BatchImportClass BatchImportClass;
-
-#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ())
-#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
-#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
-#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
-#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-
-typedef struct _ImportManifest ImportManifest;
-typedef struct _ImportManifestClass ImportManifestClass;
-
-#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-typedef struct _BatchImportRollClass BatchImportRollClass;
-
-#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ())
-#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult))
-#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT))
-#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT))
-#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-
-typedef struct _BatchImportResult BatchImportResult;
-typedef struct _BatchImportResultClass BatchImportResultClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-#define _import_manifest_unref0(var) ((var == NULL) ? NULL : (var = (import_manifest_unref (var), NULL)))
-typedef struct _BatchImportResultPrivate BatchImportResultPrivate;
-
-#define TYPE_IMPORT_RESULT (import_result_get_type ())
-typedef struct _ImportManifestPrivate ImportManifestPrivate;
-
-#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ())
-#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams))
-#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-
-typedef struct _ImportUIQuestionParams ImportUIQuestionParams;
-typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass;
-#define _import_ui_question_params_unref0(var) ((var == NULL) ? NULL : (var = (import_ui_question_params_unref (var), NULL)))
-#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL)))
-
-#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))
-#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG))
-#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG))
-#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass))
-
-typedef struct _ProgressDialog ProgressDialog;
-typedef struct _ProgressDialogClass ProgressDialogClass;
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-typedef struct _ImportPageImportViewManagerPrivate ImportPageImportViewManagerPrivate;
-typedef struct _BatchImportJobPrivate BatchImportJobPrivate;
-typedef struct _ImportPageCameraImportJobPrivate ImportPageCameraImportJobPrivate;
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL)))
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate;
-typedef struct _ImportPageImportPageSearchViewFilterPrivate ImportPageImportPageSearchViewFilterPrivate;
-
-#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ())
-typedef struct _ImportPageHideImportedViewFilterPrivate ImportPageHideImportedViewFilterPrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _ImportSourceCollection {
- SourceCollection parent_instance;
- ImportSourceCollectionPrivate * priv;
-};
-
-struct _ImportSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _ThumbnailSource {
- DataSource parent_instance;
- ThumbnailSourcePrivate * priv;
-};
-
-struct _ThumbnailSourceClass {
- DataSourceClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailSource* self);
- GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- gchar* (*get_representative_id) (ThumbnailSource* self);
- PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self);
- void (*thumbnail_altered) (ThumbnailSource* self);
-};
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _ImportSource {
- ThumbnailSource parent_instance;
- ImportSourcePrivate * priv;
-};
-
-struct _ImportSourceClass {
- ThumbnailSourceClass parent_class;
- GdkPixbuf* (*get_preview) (ImportSource* self);
- time_t (*get_exposure_time) (ImportSource* self);
-};
-
-struct _ImportSourcePrivate {
- gchar* camera_name;
- Camera* camera;
- gint fsid;
- gchar* folder;
- gchar* filename;
- gulong file_size;
- time_t modification_time;
- GdkPixbuf* preview;
- gchar* indexable_keywords;
-};
-
-struct _GPContextWrapper {
- GTypeInstance parent_instance;
- volatile int ref_count;
- GPContextWrapperPrivate * priv;
- GPContext* context;
-};
-
-struct _GPContextWrapperClass {
- GTypeClass parent_class;
- void (*finalize) (GPContextWrapper *self);
- void (*idle) (GPContextWrapper* self);
- void (*error) (GPContextWrapper* self, const gchar* text, void* data);
- void (*status) (GPContextWrapper* self, const gchar* text, void* data);
- void (*message) (GPContextWrapper* self, const gchar* text, void* data);
- void (*progress_start) (GPContextWrapper* self, gfloat current, const gchar* text, void* data);
- void (*progress_update) (GPContextWrapper* self, gfloat current, void* data);
- void (*progress_stop) (GPContextWrapper* self);
-};
-
-struct _VideoImportSource {
- ImportSource parent_instance;
- VideoImportSourcePrivate * priv;
-};
-
-struct _VideoImportSourceClass {
- ImportSourceClass parent_class;
-};
-
-struct _PhotoImportSource {
- ImportSource parent_instance;
- PhotoImportSourcePrivate * priv;
-};
-
-struct _PhotoImportSourceClass {
- ImportSourceClass parent_class;
-};
-
-struct _PhotoImportSourcePrivate {
- PhotoFileFormat file_format;
- gchar* preview_md5;
- PhotoMetadata* metadata;
- gchar* exif_md5;
- PhotoImportSource* associated;
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-struct _MediaSourceItem {
- CheckerboardItem parent_instance;
- MediaSourceItemPrivate * priv;
-};
-
-struct _MediaSourceItemClass {
- CheckerboardItemClass parent_class;
-};
-
-struct _ImportPreview {
- MediaSourceItem parent_instance;
- ImportPreviewPrivate * priv;
-};
-
-struct _ImportPreviewClass {
- MediaSourceItemClass parent_class;
-};
-
-struct _ImportPreviewPrivate {
- DuplicatedFile* duplicated_file;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-struct _PhotoID {
- gint64 id;
-};
-
-struct _VideoID {
- gint64 id;
-};
-
-struct _CoreTracker {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CoreTrackerPrivate * priv;
-};
-
-struct _CoreTrackerClass {
- GTypeClass parent_class;
- void (*finalize) (CoreTracker *self);
- void (*updated) (CoreTracker* self);
-};
-
-struct _CoreViewTracker {
- CoreTracker parent_instance;
- CoreViewTrackerPrivate * priv;
-};
-
-struct _CoreViewTrackerClass {
- CoreTrackerClass parent_class;
-};
-
-struct _CameraViewTracker {
- CoreViewTracker parent_instance;
- CameraViewTrackerPrivate * priv;
- CameraAccumulator* all;
- CameraAccumulator* visible;
- CameraAccumulator* selected;
-};
-
-struct _CameraViewTrackerClass {
- CoreViewTrackerClass parent_class;
-};
-
-struct _CoreTrackerAccumulatorIface {
- GTypeInterface parent_iface;
- gboolean (*include) (CoreTrackerAccumulator* self, DataObject* object);
- gboolean (*uninclude) (CoreTrackerAccumulator* self, DataObject* object);
- gboolean (*altered) (CoreTrackerAccumulator* self, DataObject* object, Alteration* alteration);
-};
-
-struct _CameraAccumulator {
- GObject parent_instance;
- CameraAccumulatorPrivate * priv;
-};
-
-struct _CameraAccumulatorClass {
- GObjectClass parent_class;
-};
-
-struct _CameraAccumulatorPrivate {
- gint _total;
- gint _photos;
- gint _videos;
- gint _raw;
-};
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-struct _ImportPage {
- CheckerboardPage parent_instance;
- ImportPagePrivate * priv;
-};
-
-struct _ImportPageClass {
- CheckerboardPageClass parent_class;
-};
-
-struct _ImportPagePrivate {
- SourceCollection* import_sources;
- GtkLabel* camera_label;
- GtkCheckButton* hide_imported;
- GtkProgressBar* progress_bar;
- Camera* camera;
- gchar* uri;
- gboolean busy;
- gboolean refreshed;
- int refresh_result;
- gchar* refresh_error;
- gchar* camera_name;
- GVolumeMonitor* volume_monitor;
- ImportPage* local_ref;
- gchar* icon;
- ImportPageImportPageSearchViewFilter* search_filter;
- ImportPageHideImportedViewFilter* hide_imported_filter;
- CameraViewTracker* tracker;
- gint claim_timeout;
-};
-
-typedef enum {
- IMPORT_PAGE_REFRESH_RESULT_OK,
- IMPORT_PAGE_REFRESH_RESULT_BUSY,
- IMPORT_PAGE_REFRESH_RESULT_LOCKED,
- IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR
-} ImportPageRefreshResult;
-
-typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data);
-typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data);
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-struct _BatchImportResult {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportResultPrivate * priv;
- BatchImportJob* job;
- GFile* file;
- gchar* src_identifier;
- gchar* dest_identifier;
- ImportResult result;
- gchar* errmsg;
- DuplicatedFile* duplicate_of;
-};
-
-struct _BatchImportResultClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportResult *self);
-};
-
-struct _ImportManifest {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ImportManifestPrivate * priv;
- GeeList* imported;
- GeeList* success;
- GeeList* camera_failed;
- GeeList* failed;
- GeeList* write_failed;
- GeeList* skipped_photos;
- GeeList* skipped_files;
- GeeList* aborted;
- GeeList* already_imported;
- GeeList* corrupt_files;
- GeeList* all;
- GTimer* timer;
-};
-
-struct _ImportManifestClass {
- GTypeClass parent_class;
- void (*finalize) (ImportManifest *self);
-};
-
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _ImportPageImportViewManager {
- ViewManager parent_instance;
- ImportPageImportViewManagerPrivate * priv;
-};
-
-struct _ImportPageImportViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _ImportPageImportViewManagerPrivate {
- ImportPage* owner;
-};
-
-struct _BatchImportJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportJobPrivate * priv;
-};
-
-struct _BatchImportJobClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportJob *self);
- gchar* (*get_dest_identifier) (BatchImportJob* self);
- gchar* (*get_source_identifier) (BatchImportJob* self);
- gboolean (*is_directory) (BatchImportJob* self);
- gchar* (*get_basename) (BatchImportJob* self);
- gchar* (*get_path) (BatchImportJob* self);
- DuplicatedFile* (*get_duplicated_file) (BatchImportJob* self);
- GFile* (*get_associated_file) (BatchImportJob* self);
- void (*set_associated) (BatchImportJob* self, BatchImportJob* associated);
- gboolean (*determine_file_size) (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir);
- gboolean (*prepare) (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error);
- gboolean (*complete) (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error);
- time_t (*get_exposure_time_override) (BatchImportJob* self);
- gboolean (*recurse) (BatchImportJob* self);
-};
-
-struct _ImportPageCameraImportJob {
- BatchImportJob parent_instance;
- ImportPageCameraImportJobPrivate * priv;
-};
-
-struct _ImportPageCameraImportJobClass {
- BatchImportJobClass parent_class;
-};
-
-struct _ImportPageCameraImportJobPrivate {
- GPContextWrapper* context;
- ImportSource* import_file;
- Camera* camera;
- gchar* fulldir;
- gchar* filename;
- guint64 filesize;
- PhotoMetadata* metadata;
- time_t exposure_time;
- ImportPageCameraImportJob* associated;
- BackingPhotoRow* associated_file;
- DuplicatedFile* duplicated_file;
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _SearchViewFilter {
- ViewFilter parent_instance;
- SearchViewFilterPrivate * priv;
-};
-
-struct _SearchViewFilterClass {
- ViewFilterClass parent_class;
- guint (*get_criteria) (SearchViewFilter* self);
-};
-
-struct _ImportPageImportPageSearchViewFilter {
- SearchViewFilter parent_instance;
- ImportPageImportPageSearchViewFilterPrivate * priv;
-};
-
-struct _ImportPageImportPageSearchViewFilterClass {
- SearchViewFilterClass parent_class;
-};
-
-typedef enum {
- SEARCH_FILTER_CRITERIA_NONE = 0,
- SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0,
- SEARCH_FILTER_CRITERIA_TEXT = 1 << 1,
- SEARCH_FILTER_CRITERIA_FLAG = 1 << 2,
- SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3,
- SEARCH_FILTER_CRITERIA_RATING = 1 << 4,
- SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5,
- SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL
-} SearchFilterCriteria;
-
-struct _ImportPageHideImportedViewFilter {
- ViewFilter parent_instance;
- ImportPageHideImportedViewFilterPrivate * priv;
-};
-
-struct _ImportPageHideImportedViewFilterClass {
- ViewFilterClass parent_class;
-};
-
-
-static gpointer import_source_collection_parent_class = NULL;
-static gpointer import_source_parent_class = NULL;
-extern GPSpinIdleWrapper* import_page_spin_idle_context;
-static IndexableIface * import_source_indexable_parent_iface = NULL;
-static gpointer video_import_source_parent_class = NULL;
-static gpointer photo_import_source_parent_class = NULL;
-static gpointer import_preview_parent_class = NULL;
-static GdkPixbuf* import_preview_placeholder_preview;
-static GdkPixbuf* import_preview_placeholder_preview = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-static gpointer camera_view_tracker_parent_class = NULL;
-static gpointer camera_accumulator_parent_class = NULL;
-static CoreTrackerAccumulatorIface * camera_accumulator_core_tracker_accumulator_parent_iface = NULL;
-static gpointer import_page_parent_class = NULL;
-extern GPContextWrapper* import_page_null_context;
-GPContextWrapper* import_page_null_context = NULL;
-GPSpinIdleWrapper* import_page_spin_idle_context = NULL;
-static gpointer import_page_import_view_manager_parent_class = NULL;
-static gpointer import_page_camera_import_job_parent_class = NULL;
-static gpointer import_page_import_page_search_view_filter_parent_class = NULL;
-static gpointer import_page_hide_imported_view_filter_parent_class = NULL;
-
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType import_source_collection_get_type (void) G_GNUC_CONST;
-ImportSourceCollection* import_source_collection_new (const gchar* name);
-ImportSourceCollection* import_source_collection_construct (GType object_type,
- const gchar* name);
-SourceCollection* source_collection_construct (GType object_type,
- const gchar* name);
-static gboolean import_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType import_source_get_type (void) G_GNUC_CONST;
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType indexable_get_type (void) G_GNUC_CONST;
-#define IMPORT_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IMPORT_SOURCE, ImportSourcePrivate))
-ImportSource* import_source_construct (GType object_type,
- const gchar* camera_name,
- Camera* camera,
- gint fsid,
- const gchar* folder,
- const gchar* filename,
- gulong file_size,
- time_t modification_time);
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-ThumbnailSource* thumbnail_source_construct (GType object_type,
- gint64 object_id);
-gchar* indexable_prepare_indexable_string (const gchar* str);
-void import_source_set_preview (ImportSource* self,
- GdkPixbuf* preview);
-gchar* import_source_get_camera_name (ImportSource* self);
-Camera* import_source_get_camera (ImportSource* self);
-gint import_source_get_fsid (ImportSource* self);
-gchar* import_source_get_folder (ImportSource* self);
-gchar* import_source_get_filename (ImportSource* self);
-gulong import_source_get_filesize (ImportSource* self);
-time_t import_source_get_modification_time (ImportSource* self);
-GdkPixbuf* import_source_get_preview (ImportSource* self);
-static GdkPixbuf* import_source_real_get_preview (ImportSource* self);
-time_t import_source_get_exposure_time (ImportSource* self);
-static time_t import_source_real_get_exposure_time (ImportSource* self);
-gchar* import_source_get_fulldir (ImportSource* self);
-gchar* import_page_get_fulldir (Camera* camera,
- const gchar* camera_name,
- gint fsid,
- const gchar* folder);
-static gchar* import_source_real_to_string (DataObject* base);
-static gboolean import_source_real_internal_delete_backing (DataSource* base,
- GError** error);
-gchar* data_object_to_string (DataObject* self);
-gboolean data_source_internal_delete_backing (DataSource* self,
- GError** error);
-gpointer gp_context_wrapper_ref (gpointer instance);
-void gp_context_wrapper_unref (gpointer instance);
-GParamSpec* gp_param_spec_context_wrapper (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void gp_value_set_context_wrapper (GValue* value,
- gpointer v_object);
-void gp_value_take_context_wrapper (GValue* value,
- gpointer v_object);
-gpointer gp_value_get_context_wrapper (const GValue* value);
-GType gp_context_wrapper_get_type (void) G_GNUC_CONST;
-GType gp_spin_idle_wrapper_get_type (void) G_GNUC_CONST;
-static const gchar* import_source_real_get_indexable_keywords (Indexable* base);
-static void import_source_finalize (GObject * obj);
-GType video_import_source_get_type (void) G_GNUC_CONST;
-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);
-VideoImportSource* video_import_source_construct (GType object_type,
- const gchar* camera_name,
- Camera* camera,
- gint fsid,
- const gchar* folder,
- const gchar* filename,
- gulong file_size,
- time_t modification_time);
-static GdkPixbuf* video_import_source_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-GdkPixbuf* thumbnail_source_create_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-static GdkPixbuf* video_import_source_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf,
- gint scale,
- GdkInterpType interp,
- gboolean scale_up);
-static gchar* video_import_source_real_get_typename (DataSource* base);
-static gint64 video_import_source_real_get_instance_id (DataSource* base);
-gint64 data_object_get_object_id (DataObject* self);
-static PhotoFileFormat video_import_source_real_get_preferred_thumbnail_format (ThumbnailSource* base);
-PhotoFileFormat photo_file_format_get_system_default_format (void);
-static gchar* video_import_source_real_get_name (DataObject* base);
-void video_import_source_update (VideoImportSource* self,
- GdkPixbuf* preview);
-GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void);
-GType photo_import_source_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-#define PHOTO_IMPORT_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourcePrivate))
-#define PHOTO_IMPORT_SOURCE_INTERP GDK_INTERP_BILINEAR
-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);
-PhotoImportSource* photo_import_source_construct (GType object_type,
- const gchar* camera_name,
- Camera* camera,
- gint fsid,
- const gchar* folder,
- const gchar* filename,
- gulong file_size,
- time_t modification_time,
- PhotoFileFormat file_format);
-static gchar* photo_import_source_real_get_name (DataObject* base);
-gchar* photo_import_source_get_title (PhotoImportSource* self);
-gboolean is_string_empty (const gchar* s);
-static gchar* photo_import_source_real_get_typename (DataSource* base);
-static gint64 photo_import_source_real_get_instance_id (DataSource* base);
-static PhotoFileFormat photo_import_source_real_get_preferred_thumbnail_format (ThumbnailSource* base);
-gboolean photo_file_format_can_write (PhotoFileFormat self);
-static GdkPixbuf* photo_import_source_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-void photo_import_source_update (PhotoImportSource* self,
- GdkPixbuf* preview,
- const gchar* preview_md5,
- PhotoMetadata* metadata,
- const gchar* exif_md5);
-static time_t photo_import_source_real_get_exposure_time (ImportSource* base);
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
-time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
-gchar* media_metadata_get_title (MediaMetadata* self);
-PhotoMetadata* photo_import_source_get_metadata (PhotoImportSource* self);
-static GdkPixbuf* photo_import_source_real_get_preview (ImportSource* base);
-static GdkPixbuf* photo_import_source_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-PhotoFileFormat photo_import_source_get_file_format (PhotoImportSource* self);
-gchar* photo_import_source_get_preview_md5 (PhotoImportSource* self);
-void photo_import_source_set_associated (PhotoImportSource* self,
- PhotoImportSource* associated);
-PhotoImportSource* photo_import_source_get_associated (PhotoImportSource* self);
-static gboolean photo_import_source_real_internal_delete_backing (DataSource* base,
- GError** error);
-static void photo_import_source_finalize (GObject * obj);
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType media_source_item_get_type (void) G_GNUC_CONST;
-GType import_preview_get_type (void) G_GNUC_CONST;
-GType duplicated_file_get_type (void) G_GNUC_CONST;
-#define IMPORT_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IMPORT_PREVIEW, ImportPreviewPrivate))
-#define IMPORT_PREVIEW_MAX_SCALE 128
-ImportPreview* import_preview_new (ImportSource* source);
-ImportPreview* import_preview_construct (GType object_type,
- ImportSource* source);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-gchar* data_object_get_name (DataObject* self);
-MediaSourceItem* media_source_item_new (ThumbnailSource* source,
- Dimensions* initial_pixbuf_dim,
- const gchar* title,
- const gchar* comment,
- gboolean marked_up,
- PangoAlignment alignment);
-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);
-void media_source_item_set_enable_sprockets (MediaSourceItem* self,
- gboolean enable_sprockets);
-GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-GdkPixbuf* get_placeholder_pixbuf (void);
-GType orientation_get_type (void) G_GNUC_CONST;
-Orientation photo_metadata_get_orientation (PhotoMetadata* self);
-GdkPixbuf* orientation_rotate_pixbuf (Orientation self,
- GdkPixbuf* pixbuf);
-void checkerboard_item_set_subtitle (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-void checkerboard_item_set_image (CheckerboardItem* self,
- GdkPixbuf* pixbuf);
-gboolean import_preview_is_already_imported (ImportPreview* self);
-ImportSource* import_preview_get_import_source (ImportPreview* self);
-gboolean library_photo_has_nontrash_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format);
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-DuplicatedFile* duplicated_file_create_from_photo_id (PhotoID* photo_id);
-void library_photo_get_nontrash_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format,
- PhotoID* result);
-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;
-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;
-VideoID* video_id_dup (const VideoID* self);
-void video_id_free (VideoID* self);
-DuplicatedFile* duplicated_file_create_from_video_id (VideoID* video_id);
-void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollection* self,
- const gchar* basename,
- guint64 filesize,
- VideoID* result);
-DuplicatedFile* import_preview_get_duplicated_file (ImportPreview* self);
-DataSource* data_view_get_source (DataView* self);
-static void import_preview_finalize (GObject * obj);
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType camera_view_tracker_get_type (void) G_GNUC_CONST;
-GType camera_accumulator_get_type (void) G_GNUC_CONST;
-CameraAccumulator* camera_accumulator_new (void);
-CameraAccumulator* camera_accumulator_construct (GType object_type);
-GType view_collection_get_type (void) G_GNUC_CONST;
-CameraViewTracker* camera_view_tracker_new (ViewCollection* collection);
-CameraViewTracker* camera_view_tracker_construct (GType object_type,
- ViewCollection* collection);
-CoreViewTracker* core_view_tracker_new (ViewCollection* collection);
-CoreViewTracker* core_view_tracker_construct (GType object_type,
- ViewCollection* collection);
-GType core_tracker_accumulator_get_type (void) G_GNUC_CONST;
-void core_view_tracker_start (CoreViewTracker* self,
- CoreTrackerAccumulator* all,
- CoreTrackerAccumulator* visible,
- CoreTrackerAccumulator* selected);
-static void camera_view_tracker_finalize (CoreTracker * obj);
-#define CAMERA_ACCUMULATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorPrivate))
-static gboolean camera_accumulator_real_include (CoreTrackerAccumulator* base,
- DataObject* object);
-gint camera_accumulator_get_total (CameraAccumulator* self);
-static void camera_accumulator_set_total (CameraAccumulator* self,
- gint value);
-gint camera_accumulator_get_photos (CameraAccumulator* self);
-static void camera_accumulator_set_photos (CameraAccumulator* self,
- gint value);
-gint camera_accumulator_get_raw (CameraAccumulator* self);
-static void camera_accumulator_set_raw (CameraAccumulator* self,
- gint value);
-gint camera_accumulator_get_videos (CameraAccumulator* self);
-static void camera_accumulator_set_videos (CameraAccumulator* self,
- gint value);
-static gboolean camera_accumulator_real_uninclude (CoreTrackerAccumulator* base,
- DataObject* object);
-static gboolean camera_accumulator_real_altered (CoreTrackerAccumulator* base,
- DataObject* object,
- Alteration* alteration);
-gchar* camera_accumulator_to_string (CameraAccumulator* self);
-static void camera_accumulator_finalize (GObject * obj);
-static void _vala_camera_accumulator_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_camera_accumulator_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-GType import_page_get_type (void) G_GNUC_CONST;
-static GType import_page_import_page_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static GType import_page_hide_imported_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define IMPORT_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IMPORT_PAGE, ImportPagePrivate))
-static void import_page_on_media_added_removed (ImportPage* self);
-static void _import_page_on_media_added_removed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-GType import_page_refresh_result_get_type (void) G_GNUC_CONST;
-static ImportPageImportPageSearchViewFilter* import_page_import_page_search_view_filter_new (void);
-static ImportPageImportPageSearchViewFilter* import_page_import_page_search_view_filter_construct (GType object_type);
-static ImportPageHideImportedViewFilter* import_page_hide_imported_view_filter_new (void);
-static ImportPageHideImportedViewFilter* import_page_hide_imported_view_filter_construct (GType object_type);
-#define IMPORT_PAGE_UNMOUNT_FAILED_MSG _ ("Unable to unmount camera. Try unmounting the camera from the file mana" \
-"ger.")
-static void import_page_on_import_selected (ImportPage* self);
-static void _import_page_on_import_selected_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void import_page_on_import_all (ImportPage* self);
-static void _import_page_on_import_all_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-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 import_page_on_display_titles (ImportPage* self,
- GSimpleAction* action,
- GVariant* value);
-static void _import_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-ImportPage* import_page_new (Camera* camera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon);
-ImportPage* import_page_construct (GType object_type,
- Camera* camera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon);
-CheckerboardPage* checkerboard_page_construct (GType object_type,
- const gchar* page_name);
-ViewCollection* page_get_view (Page* self);
-void page_set_page_name (Page* self,
- const gchar* page_name);
-GPContextWrapper* gp_context_wrapper_new (void);
-GPContextWrapper* gp_context_wrapper_construct (GType object_type);
-GPSpinIdleWrapper* gp_spin_idle_wrapper_new (void);
-GPSpinIdleWrapper* gp_spin_idle_wrapper_construct (GType object_type);
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-static ImportPageImportViewManager* import_page_import_view_manager_new (ImportPage* owner);
-static ImportPageImportViewManager* import_page_import_view_manager_construct (GType object_type,
- ImportPage* owner);
-static GType import_page_import_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-void data_collection_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-static gint64 import_page_preview_comparator (void* a,
- void* b);
-static gint64 _import_page_preview_comparator_comparator (void* a,
- void* b,
- gpointer self);
-static gboolean import_page_preview_comparator_predicate (DataObject* object,
- Alteration* alteration);
-static gboolean _import_page_preview_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self);
-static void import_page_on_view_changed (ImportPage* self);
-static void _import_page_on_view_changed_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self);
-static void _import_page_on_view_changed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static void _import_page_on_view_changed_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self);
-void data_collection_set_property (DataCollection* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target);
-#define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles"
-void checkerboard_page_init_item_context_menu (CheckerboardPage* self,
- const gchar* path);
-void checkerboard_page_init_page_context_menu (CheckerboardPage* self,
- const gchar* path);
-static GtkToolbar* import_page_real_get_toolbar (Page* base);
-GtkToolbar* page_get_toolbar (Page* self);
-static void import_page_on_hide_imported (ImportPage* self);
-static void _import_page_on_hide_imported_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-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);
-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);
-static gchar* import_page_real_get_filter_no_match_message (CheckerboardPage* base);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-static gint64 import_page_import_job_comparator (ImportPage* self,
- void* a,
- void* b);
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-static GType import_page_camera_import_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-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,
- 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);
-static void import_page_real_init_actions (Page* base,
- gint selected_count,
- gint count);
-void page_set_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive);
-void page_init_actions (Page* self,
- gint selected_count,
- gint count);
-gboolean import_page_is_refreshed (ImportPage* self);
-gchar* import_page_get_refresh_message (ImportPage* self);
-static void import_page_update_status (ImportPage* self,
- gboolean busy,
- gboolean refreshed);
-gint view_collection_get_unfiltered_count (ViewCollection* self);
-gint view_collection_get_selected_count (ViewCollection* self);
-gint data_collection_get_count (DataCollection* self);
-void checkerboard_page_set_display_titles (CheckerboardPage* self,
- gboolean display);
-void configuration_facade_set_display_photo_titles (ConfigurationFacade* self,
- gboolean display);
-static void import_page_real_switched_to (Page* base);
-void page_switched_to (Page* self);
-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);
-static void import_page_on_unmounted (ImportPage* self,
- GMount* mount);
-static void _import_page_on_unmounted_g_mount_unmounted (GMount* _sender,
- gpointer self);
-static void import_page_on_unmount_finished (ImportPage* self,
- GObject* source,
- GAsyncResult* aresult);
-static void _import_page_on_unmount_finished_gasync_ready_callback (GObject* source_object,
- GAsyncResult* res,
- gpointer self);
-static void import_page_clear_all_import_sources (ImportPage* self);
-Marker* data_collection_start_marking (DataCollection* self);
-void marker_mark_all (Marker* self);
-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 ____lambda18_ (ImportPage* self);
-static gboolean _____lambda18__gsource_func (gpointer self);
-static gboolean import_page_enumerate_files (ImportPage* self,
- gint fsid,
- const gchar* dir,
- GeeArrayList* import_list);
-static void import_page_auto_match_raw_jpeg (ImportPage* self,
- GeeArrayList* import_list);
-static void import_page_load_previews_and_metadata (ImportPage* self,
- GeeList* import_list);
-gchar* checkerboard_page_get_view_empty_message (CheckerboardPage* self);
-static gchar* import_page_chomp_ch (const gchar* str,
- gchar ch);
-gchar* import_page_append_path (const gchar* basepath,
- const gchar* addition);
-gchar* import_page_get_fs_basedir (Camera* camera,
- gint fsid);
-#define GP_MAX_BASEDIR_LENGTH 255
-gboolean gp_get_info (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- CameraFileInfo* info,
- GError** error);
-gboolean video_reader_is_supported_video_filename (const gchar* filename);
-PhotoFileFormat photo_file_format_from_gphoto_type (const gchar* type);
-PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename);
-void spin_event_loop (void);
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-PhotoMetadata* gp_load_metadata (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- GError** error);
-gchar* photo_metadata_exif_hash (PhotoMetadata* self);
-GdkPixbuf* gp_load_preview (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- gchar* * preview_md5,
- GError** error);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-void view_collection_install_view_filter (ViewCollection* self,
- ViewFilter* f);
-void view_collection_remove_view_filter (ViewCollection* self,
- ViewFilter* f);
-void configuration_facade_set_hide_photos_already_imported (ConfigurationFacade* self,
- gboolean hide_imported);
-static void import_page_import (ImportPage* self,
- GeeIterable* items);
-GeeList* view_collection_get_selected (ViewCollection* self);
-GeeCollection* data_collection_get_all (DataCollection* self);
-GType sorted_list_get_type (void) G_GNUC_CONST;
-static gint64 _import_page_import_job_comparator_comparator (void* a,
- void* b,
- gpointer self);
-SortedList* sorted_list_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-SortedList* sorted_list_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-static ImportPageCameraImportJob* import_page_camera_import_job_new (GPContextWrapper* context,
- ImportSource* import_file,
- DuplicatedFile* duplicated_file);
-static ImportPageCameraImportJob* import_page_camera_import_job_construct (GType object_type,
- GPContextWrapper* context,
- ImportSource* import_file,
- DuplicatedFile* duplicated_file);
-void batch_import_job_set_associated (BatchImportJob* self,
- BatchImportJob* associated);
-GType batch_import_get_type (void) G_GNUC_CONST;
-gpointer import_manifest_ref (gpointer instance);
-void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_import_manifest (GValue* value,
- gpointer v_object);
-void value_take_import_manifest (GValue* value,
- gpointer v_object);
-gpointer value_get_import_manifest (const GValue* value);
-GType import_manifest_get_type (void) G_GNUC_CONST;
-static void import_page_import_reporter (ImportPage* self,
- ImportManifest* manifest);
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-static void _import_page_import_reporter_batch_import_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self);
-BatchImport* batch_import_new (GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-BatchImport* batch_import_construct (GType object_type,
- GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-gpointer batch_import_result_ref (gpointer instance);
-void batch_import_result_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_result (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_result (GValue* value,
- gpointer v_object);
-void value_take_batch_import_result (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_result (const GValue* value);
-GType batch_import_result_get_type (void) G_GNUC_CONST;
-static void import_page_on_import_job_failed (ImportPage* self,
- BatchImportResult* _result_);
-static void _import_page_on_import_job_failed_batch_import_import_job_failed (BatchImport* _sender,
- BatchImportResult* _result_,
- gpointer self);
-static void import_page_close_import (ImportPage* self);
-static void _import_page_close_import_batch_import_import_complete (BatchImport* _sender,
- ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self);
-GType library_window_get_type (void) G_GNUC_CONST;
-LibraryWindow* library_window_get_app (void);
-void library_window_enqueue_batch_import (LibraryWindow* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel);
-void library_window_switch_to_import_queue_page (LibraryWindow* self);
-ImportManifest* import_manifest_new (GeeList* prefailed,
- GeeList* pre_already_imported);
-ImportManifest* import_manifest_construct (GType object_type,
- GeeList* prefailed,
- GeeList* pre_already_imported);
-GType import_result_get_type (void) G_GNUC_CONST;
-gchar* import_ui_get_media_specific_string (GeeCollection* import_collection,
- const gchar* photos_msg,
- const gchar* videos_msg,
- const gchar* both_msg,
- const gchar* neither_msg);
-gpointer import_ui_question_params_ref (gpointer instance);
-void import_ui_question_params_unref (gpointer instance);
-GParamSpec* import_ui_param_spec_question_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void import_ui_value_set_question_params (GValue* value,
- gpointer v_object);
-void import_ui_value_take_question_params (GValue* value,
- gpointer v_object);
-gpointer import_ui_value_get_question_params (const GValue* value);
-GType import_ui_question_params_get_type (void) G_GNUC_CONST;
-#define RESOURCES_DELETE_LABEL _ ("_Delete")
-ImportUIQuestionParams* import_ui_question_params_new (const gchar* question,
- const gchar* yes_button,
- const gchar* no_button);
-ImportUIQuestionParams* import_ui_question_params_construct (GType object_type,
- const gchar* question,
- const gchar* yes_button,
- const gchar* no_button);
-gboolean import_ui_report_manifest (ImportManifest* manifest,
- gboolean show_dest_id,
- ImportUIQuestionParams* question);
-void marker_mark (Marker* self,
- DataObject* object);
-static ImportSource* import_page_camera_import_job_get_source (ImportPageCameraImportJob* self);
-GType progress_dialog_get_type (void) G_GNUC_CONST;
-ProgressDialog* progress_dialog_new (GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-ProgressDialog* progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-gboolean progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop);
-static gboolean _progress_dialog_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self);
-void progress_dialog_close (ProgressDialog* self);
-static void import_page_real_set_display_titles (CheckerboardPage* base,
- gboolean display);
-void page_set_action_active (Page* self,
- const gchar* name,
- gboolean active);
-static SearchViewFilter* import_page_real_get_search_view_filter (CheckerboardPage* base);
-#define IMPORT_PAGE_IMPORT_VIEW_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManagerPrivate))
-ViewManager* view_manager_construct (GType object_type);
-static DataView* import_page_import_view_manager_real_create_view (ViewManager* base,
- DataSource* source);
-static void import_page_import_view_manager_finalize (ViewManager * obj);
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-#define IMPORT_PAGE_CAMERA_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJobPrivate))
-BatchImportJob* batch_import_job_construct (GType object_type);
-static DuplicatedFile* import_page_camera_import_job_real_get_duplicated_file (BatchImportJob* base);
-static time_t import_page_camera_import_job_real_get_exposure_time_override (BatchImportJob* base);
-static gchar* import_page_camera_import_job_real_get_dest_identifier (BatchImportJob* base);
-static gchar* import_page_camera_import_job_real_get_source_identifier (BatchImportJob* base);
-static gchar* import_page_camera_import_job_real_get_basename (BatchImportJob* base);
-static gchar* import_page_camera_import_job_real_get_path (BatchImportJob* base);
-static void import_page_camera_import_job_real_set_associated (BatchImportJob* base,
- BatchImportJob* associated);
-static gboolean import_page_camera_import_job_real_is_directory (BatchImportJob* base);
-static gboolean import_page_camera_import_job_real_determine_file_size (BatchImportJob* base,
- guint64* filesize,
- GFile* * file);
-static gboolean import_page_camera_import_job_real_prepare (BatchImportJob* base,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error);
-GFile* library_files_generate_unique_file (const gchar* basename,
- MediaMetadata* metadata,
- time_t ts,
- gboolean* collision,
- GError** error);
-void library_monitor_blacklist_file (GFile* file,
- const gchar* reason);
-void gp_save_image (GPContext* context,
- Camera* camera,
- const gchar* folder,
- const gchar* filename,
- GFile* dest_file,
- GError** error);
-void library_monitor_unblacklist_file (GFile* file);
-GType raw_developer_get_type (void) G_GNUC_CONST;
-BackingPhotoRow* raw_developer_create_backing_row_for_development (RawDeveloper self,
- const gchar* raw_filepath,
- const gchar* camera_development_filename,
- GError** error);
-gchar* batch_import_job_get_basename (BatchImportJob* self);
-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 GFile* import_page_camera_import_job_real_get_associated_file (BatchImportJob* base);
-static void import_page_camera_import_job_finalize (BatchImportJob * obj);
-static guint import_page_import_page_search_view_filter_real_get_criteria (SearchViewFilter* base);
-GType search_filter_criteria_get_type (void) G_GNUC_CONST;
-static gboolean import_page_import_page_search_view_filter_real_predicate (ViewFilter* base,
- DataView* view);
-guint search_view_filter_get_criteria (SearchViewFilter* self);
-gboolean search_view_filter_filter_by_media_type (SearchViewFilter* self);
-gboolean search_view_filter_get_show_media_video (SearchViewFilter* self);
-gboolean search_view_filter_get_show_media_photos (SearchViewFilter* self);
-gboolean search_view_filter_get_show_media_raw (SearchViewFilter* self);
-const gchar* indexable_get_indexable_keywords (Indexable* self);
-gchar** search_view_filter_get_search_filter_words (SearchViewFilter* self,
- int* result_length1);
-SearchViewFilter* search_view_filter_construct (GType object_type);
-static gboolean import_page_hide_imported_view_filter_real_predicate (ViewFilter* base,
- DataView* view);
-ViewFilter* view_filter_construct (GType object_type);
-static void import_page_finalize (GObject * obj);
-
-static const GActionEntry IMPORT_PAGE_entries[3] = {{"ImportSelected", _import_page_on_import_selected_gsimple_action_activate_callback}, {"ImportAll", _import_page_on_import_all_gsimple_action_activate_callback}, {"ViewTitle", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _import_page_on_display_titles_gsimple_action_change_state_callback}};
-
-ImportSourceCollection*
-import_source_collection_construct (GType object_type,
- const gchar* name)
-{
- ImportSourceCollection* self = NULL;
-#line 8 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 9 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (ImportSourceCollection*) source_collection_construct (object_type, name);
-#line 8 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 2559 "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 2568 "ImportPage.c"
-}
-
-
-static gboolean
-import_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source)
-{
- ImportSourceCollection * self;
- gboolean result = FALSE;
-#line 12 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_SOURCE_COLLECTION, ImportSourceCollection);
-#line 12 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 13 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_IMPORT_SOURCE);
-#line 13 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2586 "ImportPage.c"
-}
-
-
-static void
-import_source_collection_class_init (ImportSourceCollectionClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- 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 = (gboolean (*) (SourceCollection *, DataSource*)) import_source_collection_real_holds_type_of_source;
-#line 2597 "ImportPage.c"
-}
-
-
-static void
-import_source_collection_instance_init (ImportSourceCollection * self)
-{
-}
-
-
-GType
-import_source_collection_get_type (void)
-{
- static volatile gsize import_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&import_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportSourceCollection), 0, (GInstanceInitFunc) import_source_collection_instance_init, NULL };
- GType import_source_collection_type_id;
- import_source_collection_type_id = g_type_register_static (TYPE_SOURCE_COLLECTION, "ImportSourceCollection", &g_define_type_info, 0);
- g_once_init_leave (&import_source_collection_type_id__volatile, import_source_collection_type_id);
- }
- return import_source_collection_type_id__volatile;
-}
-
-
-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 2626 "ImportPage.c"
-}
-
-
-ImportSource*
-import_source_construct (GType object_type,
- const gchar* camera_name,
- Camera* camera,
- gint fsid,
- const gchar* folder,
- const gchar* filename,
- gulong file_size,
- time_t modification_time)
-{
- ImportSource * self = NULL;
- gchar* _tmp0_;
- Camera* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera_name != NULL, NULL);
-#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (ImportSource*) thumbnail_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 30 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = g_strdup (camera_name);
-#line 30 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->camera_name);
-#line 30 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->camera_name = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _GPHOTO_REF_CAMERA0 (camera);
-#line 31 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_camera_unref0 (self->priv->camera);
-#line 31 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->camera = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->fsid = fsid;
-#line 33 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = g_strdup (folder);
-#line 33 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->folder);
-#line 33 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->folder = _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = g_strdup (filename);
-#line 34 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->filename);
-#line 34 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->filename = _tmp3_;
-#line 35 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->file_size = file_size;
-#line 36 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->modification_time = modification_time;
-#line 37 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = indexable_prepare_indexable_string (filename);
-#line 37 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->indexable_keywords);
-#line 37 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->indexable_keywords = _tmp4_;
-#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 2694 "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 2703 "ImportPage.c"
-}
-
-
-void
-import_source_set_preview (ImportSource* self,
- GdkPixbuf* preview)
-{
- GdkPixbuf* _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_SOURCE (self));
-#line 40 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail ((preview == NULL) || GDK_IS_PIXBUF (preview));
-#line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _g_object_ref0 (preview);
-#line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->preview);
-#line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->preview = _tmp0_;
-#line 2722 "ImportPage.c"
-}
-
-
-gchar*
-import_source_get_camera_name (ImportSource* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL);
-#line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->camera_name;
-#line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2742 "ImportPage.c"
-}
-
-
-Camera*
-import_source_get_camera (ImportSource* self)
-{
- Camera* result = NULL;
- Camera* _tmp0_;
- Camera* _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL);
-#line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->camera;
-#line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _GPHOTO_REF_CAMERA0 (_tmp0_);
-#line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2762 "ImportPage.c"
-}
-
-
-gint
-import_source_get_fsid (ImportSource* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (self), 0);
-#line 53 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->fsid;
-#line 53 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2779 "ImportPage.c"
-}
-
-
-gchar*
-import_source_get_folder (ImportSource* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL);
-#line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->folder;
-#line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2799 "ImportPage.c"
-}
-
-
-gchar*
-import_source_get_filename (ImportSource* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL);
-#line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->filename;
-#line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2819 "ImportPage.c"
-}
-
-
-gulong
-import_source_get_filesize (ImportSource* self)
-{
- gulong result = 0UL;
- gulong _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (self), 0UL);
-#line 65 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->file_size;
-#line 65 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2836 "ImportPage.c"
-}
-
-
-time_t
-import_source_get_modification_time (ImportSource* self)
-{
- time_t result = 0;
- time_t _tmp0_;
-#line 68 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (self), 0);
-#line 69 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->modification_time;
-#line 69 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 69 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2853 "ImportPage.c"
-}
-
-
-static GdkPixbuf*
-import_source_real_get_preview (ImportSource* self)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->preview;
-#line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2871 "ImportPage.c"
-}
-
-
-GdkPixbuf*
-import_source_get_preview (ImportSource* self)
-{
-#line 72 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- 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 2882 "ImportPage.c"
-}
-
-
-static time_t
-import_source_real_get_exposure_time (ImportSource* self)
-{
- time_t result = 0;
-#line 77 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = import_source_get_modification_time (self);
-#line 77 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2894 "ImportPage.c"
-}
-
-
-time_t
-import_source_get_exposure_time (ImportSource* self)
-{
-#line 76 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- 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 2905 "ImportPage.c"
-}
-
-
-gchar*
-import_source_get_fulldir (ImportSource* self)
-{
- gchar* result = NULL;
- Camera* _tmp0_;
- Camera* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 80 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL);
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_source_get_camera (self);
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = import_source_get_camera_name (self);
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = import_source_get_folder (self);
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = import_page_get_fulldir (_tmp1_, _tmp3_, import_source_get_fsid (self), _tmp5_);
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp6_;
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp5_);
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp3_);
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_camera_unref0 (_tmp1_);
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp7_;
-#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2949 "ImportPage.c"
-}
-
-
-static gchar*
-import_source_real_to_string (DataObject* base)
-{
- ImportSource * self;
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 84 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_SOURCE, ImportSource);
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_source_get_camera_name (self);
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = import_source_get_folder (self);
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = import_source_get_filename (self);
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = g_strdup_printf ("%s %s/%s", _tmp1_, _tmp3_, _tmp5_);
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp6_;
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp5_);
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp3_);
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp1_);
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp7_;
-#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 2994 "ImportPage.c"
-}
-
-
-static gchar*
-gp_result_to_full_string (int self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 482 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi"
- _tmp0_ = gp_port_result_as_string (self);
-#line 482 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi"
- _tmp1_ = g_strdup_printf ("%s (%d)", _tmp0_, (gint) self);
-#line 482 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi"
- result = _tmp1_;
-#line 482 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi"
- return result;
-#line 3012 "ImportPage.c"
-}
-
-
-static gboolean
-import_source_real_internal_delete_backing (DataSource* base,
- GError** error)
-{
- ImportSource * self;
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* fulldir = NULL;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- int _result_ = 0;
- Camera* _tmp10_;
- Camera* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- GPSpinIdleWrapper* _tmp15_;
- GPContext* _tmp16_;
- int _tmp17_;
- int _tmp18_;
- gboolean _tmp25_ = FALSE;
- gboolean _tmp26_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 88 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_SOURCE, ImportSource);
-#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->camera_name;
-#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:89: Deleting %s from %s", _tmp1_, _tmp2_);
-#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp1_);
-#line 91 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = import_source_get_fulldir (self);
-#line 91 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- fulldir = _tmp3_;
-#line 92 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = fulldir;
-#line 92 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp4_ == NULL) {
-#line 3061 "ImportPage.c"
- gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
- gboolean _tmp8_ = FALSE;
-#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = _tmp5_;
-#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->camera_name;
-#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:93: Skipping deleting %s from %s: invalid folder name", _tmp6_, _tmp7_);
-#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp6_);
-#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = 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_);
-#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3080 "ImportPage.c"
- gboolean _tmp9_ = FALSE;
-#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp9_;
-#line 3088 "ImportPage.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp8_;
-#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3096 "ImportPage.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = import_source_get_camera (self);
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = _tmp10_;
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = fulldir;
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = import_source_get_filename (self);
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = _tmp13_;
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = import_page_spin_idle_context;
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = gp_camera_file_delete (_tmp11_, _tmp12_, _tmp14_, _tmp16_);
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp14_);
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_camera_unref0 (_tmp11_);
-#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _result_ = _tmp17_;
-#line 100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = _result_;
-#line 100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp18_ != GP_OK) {
-#line 3124 "ImportPage.c"
- gchar* _tmp19_;
- gchar* _tmp20_;
- const gchar* _tmp21_;
- int _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = _tmp19_;
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = self->priv->camera_name;
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = _result_;
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = gp_result_to_full_string (_tmp22_);
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = _tmp23_;
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:101: Error deleting %s from %s: %s", _tmp20_, _tmp21_, _tmp24_);
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp24_);
-#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp20_);
-#line 3149 "ImportPage.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = 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_);
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3155 "ImportPage.c"
- gboolean _tmp27_ = FALSE;
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp27_;
-#line 3163 "ImportPage.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp26_) {
-#line 3167 "ImportPage.c"
- int _tmp28_;
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = _result_;
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = _tmp28_ == GP_OK;
-#line 3173 "ImportPage.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = FALSE;
-#line 3177 "ImportPage.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp25_;
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3185 "ImportPage.c"
-}
-
-
-static const gchar*
-import_source_real_get_indexable_keywords (Indexable* base)
-{
- ImportSource * self;
- const gchar* result = NULL;
- const gchar* _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_SOURCE, ImportSource);
-#line 107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->indexable_keywords;
-#line 107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3203 "ImportPage.c"
-}
-
-
-static void
-import_source_class_init (ImportSourceClass * klass)
-{
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_source_parent_class = g_type_class_peek_parent (klass);
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_type_class_add_private (klass, sizeof (ImportSourcePrivate));
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ImportSourceClass *) klass)->get_preview = (GdkPixbuf* (*) (ImportSource *)) import_source_real_get_preview;
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ImportSourceClass *) klass)->get_exposure_time = (time_t (*) (ImportSource *)) import_source_real_get_exposure_time;
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) import_source_real_to_string;
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) 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 3224 "ImportPage.c"
-}
-
-
-static void
-import_source_indexable_interface_init (IndexableIface * iface)
-{
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- 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 3235 "ImportPage.c"
-}
-
-
-static void
-import_source_instance_init (ImportSource * self)
-{
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv = IMPORT_SOURCE_GET_PRIVATE (self);
-#line 25 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->preview = NULL;
-#line 26 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->indexable_keywords = NULL;
-#line 3248 "ImportPage.c"
-}
-
-
-static void
-import_source_finalize (GObject * obj)
-{
- ImportSource * self;
-#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_SOURCE, ImportSource);
-#line 18 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->camera_name);
-#line 19 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_camera_unref0 (self->priv->camera);
-#line 21 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->folder);
-#line 22 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->filename);
-#line 25 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->preview);
-#line 26 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _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 3272 "ImportPage.c"
-}
-
-
-GType
-import_source_get_type (void)
-{
- static volatile gsize import_source_type_id__volatile = 0;
- if (g_once_init_enter (&import_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportSource), 0, (GInstanceInitFunc) import_source_instance_init, NULL };
- static const GInterfaceInfo indexable_info = { (GInterfaceInitFunc) import_source_indexable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType import_source_type_id;
- import_source_type_id = g_type_register_static (TYPE_THUMBNAIL_SOURCE, "ImportSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_type_add_interface_static (import_source_type_id, TYPE_INDEXABLE, &indexable_info);
- g_once_init_leave (&import_source_type_id__volatile, import_source_type_id);
- }
- return import_source_type_id__volatile;
-}
-
-
-VideoImportSource*
-video_import_source_construct (GType object_type,
- const gchar* camera_name,
- Camera* camera,
- gint fsid,
- const gchar* folder,
- const gchar* filename,
- gulong file_size,
- time_t modification_time)
-{
- VideoImportSource * self = NULL;
-#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera_name != NULL, NULL);
-#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 114 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (VideoImportSource*) import_source_construct (object_type, camera_name, camera, fsid, folder, filename, file_size, modification_time);
-#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 3315 "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 3330 "ImportPage.c"
-}
-
-
-static GdkPixbuf*
-video_import_source_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- VideoImportSource * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 117 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource);
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = thumbnail_source_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_);
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _tmp1_;
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return NULL;
-#line 3357 "ImportPage.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp0_;
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = NULL;
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp2_;
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3369 "ImportPage.c"
-}
-
-
-static GdkPixbuf*
-video_import_source_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- VideoImportSource * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
- gboolean _tmp2_;
- GdkPixbuf* _tmp3_ = NULL;
-#line 121 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource);
-#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp1_ == NULL;
-#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp2_) {
-#line 123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = NULL;
-#line 123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3400 "ImportPage.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (scale > 0) {
-#line 3404 "ImportPage.c"
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = scale_pixbuf (_tmp5_, scale, GDK_INTERP_BILINEAR, TRUE);
-#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp6_;
-#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 3420 "ImportPage.c"
- } else {
- GdkPixbuf* _tmp7_;
-#line 128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp7_;
-#line 3429 "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 3435 "ImportPage.c"
-}
-
-
-static gchar*
-video_import_source_real_get_typename (DataSource* base)
-{
- VideoImportSource * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource);
-#line 132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = g_strdup ("videoimport");
-#line 132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3453 "ImportPage.c"
-}
-
-
-static gint64
-video_import_source_real_get_instance_id (DataSource* base)
-{
- VideoImportSource * self;
- gint64 result = 0LL;
-#line 135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource);
-#line 136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3468 "ImportPage.c"
-}
-
-
-static PhotoFileFormat
-video_import_source_real_get_preferred_thumbnail_format (ThumbnailSource* base)
-{
- VideoImportSource * self;
- PhotoFileFormat result = 0;
-#line 139 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource);
-#line 140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = photo_file_format_get_system_default_format ();
-#line 140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3483 "ImportPage.c"
-}
-
-
-static gchar*
-video_import_source_real_get_name (DataObject* base)
-{
- VideoImportSource * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource);
-#line 144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3501 "ImportPage.c"
-}
-
-
-void
-video_import_source_update (VideoImportSource* self,
- GdkPixbuf* preview)
-{
- GdkPixbuf* _tmp0_ = NULL;
-#line 147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_VIDEO_IMPORT_SOURCE (self));
-#line 147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail ((preview == NULL) || GDK_IS_PIXBUF (preview));
-#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (preview != NULL) {
-#line 3516 "ImportPage.c"
- GdkPixbuf* _tmp1_;
-#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _g_object_ref0 (preview);
-#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _tmp1_;
-#line 3524 "ImportPage.c"
- } else {
- GdkPixbuf* _tmp2_;
-#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = resources_get_noninterpretable_badge_pixbuf ();
-#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _tmp2_;
-#line 3533 "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 3539 "ImportPage.c"
-}
-
-
-static void
-video_import_source_class_init (VideoImportSourceClass * klass)
-{
-#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- video_import_source_parent_class = g_type_class_peek_parent (klass);
-#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) video_import_source_real_get_thumbnail;
-#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) video_import_source_real_create_thumbnail;
-#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) video_import_source_real_get_typename;
-#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) video_import_source_real_get_instance_id;
-#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) video_import_source_real_get_preferred_thumbnail_format;
-#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) video_import_source_real_get_name;
-#line 3560 "ImportPage.c"
-}
-
-
-static void
-video_import_source_instance_init (VideoImportSource * self)
-{
-}
-
-
-GType
-video_import_source_get_type (void)
-{
- static volatile gsize video_import_source_type_id__volatile = 0;
- if (g_once_init_enter (&video_import_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoImportSource), 0, (GInstanceInitFunc) video_import_source_instance_init, NULL };
- GType video_import_source_type_id;
- video_import_source_type_id = g_type_register_static (TYPE_IMPORT_SOURCE, "VideoImportSource", &g_define_type_info, 0);
- g_once_init_leave (&video_import_source_type_id__volatile, video_import_source_type_id);
- }
- return video_import_source_type_id__volatile;
-}
-
-
-PhotoImportSource*
-photo_import_source_construct (GType object_type,
- const gchar* camera_name,
- Camera* camera,
- gint fsid,
- const gchar* folder,
- const gchar* filename,
- gulong file_size,
- time_t modification_time,
- PhotoFileFormat file_format)
-{
- PhotoImportSource * self = NULL;
-#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera_name != NULL, NULL);
-#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 163 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (PhotoImportSource*) import_source_construct (object_type, camera_name, camera, fsid, folder, filename, file_size, modification_time);
-#line 164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->file_format = file_format;
-#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 3610 "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 3626 "ImportPage.c"
-}
-
-
-static gchar*
-photo_import_source_real_get_name (DataObject* base)
-{
- PhotoImportSource * self;
- gchar* result = NULL;
- gchar* title = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
-#line 167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 168 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = photo_import_source_get_title (self);
-#line 168 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- title = _tmp0_;
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = title;
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!is_string_empty (_tmp2_)) {
-#line 3649 "ImportPage.c"
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = title;
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = g_strdup (_tmp3_);
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp1_);
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp4_;
-#line 3660 "ImportPage.c"
- } else {
- gchar* _tmp5_;
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp1_);
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp5_;
-#line 3669 "ImportPage.c"
- }
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (title);
-#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3677 "ImportPage.c"
-}
-
-
-static gchar*
-photo_import_source_real_get_typename (DataSource* base)
-{
- PhotoImportSource * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = g_strdup ("photoimport");
-#line 174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3695 "ImportPage.c"
-}
-
-
-static gint64
-photo_import_source_real_get_instance_id (DataSource* base)
-{
- PhotoImportSource * self;
- gint64 result = 0LL;
-#line 177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3710 "ImportPage.c"
-}
-
-
-static PhotoFileFormat
-photo_import_source_real_get_preferred_thumbnail_format (ThumbnailSource* base)
-{
- PhotoImportSource * self;
- PhotoFileFormat result = 0;
- PhotoFileFormat _tmp0_ = 0;
- PhotoFileFormat _tmp1_;
-#line 181 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->file_format;
-#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (photo_file_format_can_write (_tmp1_)) {
-#line 3727 "ImportPage.c"
- PhotoFileFormat _tmp2_;
-#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->file_format;
-#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _tmp2_;
-#line 3733 "ImportPage.c"
- } else {
-#line 183 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = photo_file_format_get_system_default_format ();
-#line 3737 "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 3743 "ImportPage.c"
-}
-
-
-static GdkPixbuf*
-photo_import_source_real_create_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- PhotoImportSource * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
- gboolean _tmp2_;
- GdkPixbuf* _tmp3_ = NULL;
-#line 186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp1_ == NULL;
-#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp2_) {
-#line 188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = NULL;
-#line 188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3774 "ImportPage.c"
- }
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (scale > 0) {
-#line 3778 "ImportPage.c"
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = scale_pixbuf (_tmp5_, scale, PHOTO_IMPORT_SOURCE_INTERP, TRUE);
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp6_;
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 3794 "ImportPage.c"
- } else {
- GdkPixbuf* _tmp7_;
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp7_;
-#line 3803 "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 3809 "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 3818 "ImportPage.c"
-}
-
-
-void
-photo_import_source_update (PhotoImportSource* self,
- GdkPixbuf* preview,
- const gchar* preview_md5,
- PhotoMetadata* metadata,
- const gchar* exif_md5)
-{
- gchar* _tmp0_;
- PhotoMetadata* _tmp1_;
- gchar* _tmp2_;
-#line 196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_PHOTO_IMPORT_SOURCE (self));
-#line 196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail ((preview == NULL) || GDK_IS_PIXBUF (preview));
-#line 196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
-#line 197 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_source_set_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource), preview);
-#line 198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = g_strdup (preview_md5);
-#line 198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->preview_md5);
-#line 198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->preview_md5 = _tmp0_;
-#line 199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _media_metadata_ref0 (metadata);
-#line 199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (self->priv->metadata);
-#line 199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->metadata = _tmp1_;
-#line 200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = g_strdup (exif_md5);
-#line 200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->exif_md5);
-#line 200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->exif_md5 = _tmp2_;
-#line 3858 "ImportPage.c"
-}
-
-
-static time_t
-photo_import_source_real_get_exposure_time (ImportSource* base)
-{
- PhotoImportSource * self;
- time_t result = 0;
- PhotoMetadata* _tmp0_;
- MetadataDateTime* date_time = NULL;
- PhotoMetadata* _tmp1_;
- MetadataDateTime* _tmp2_;
- time_t _tmp3_ = 0;
- MetadataDateTime* _tmp4_;
-#line 203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->metadata;
-#line 204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_ == NULL) {
-#line 205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = import_source_get_modification_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3883 "ImportPage.c"
- }
-#line 207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->metadata;
-#line 207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = photo_metadata_get_exposure_date_time (_tmp1_);
-#line 207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- date_time = _tmp2_;
-#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = date_time;
-#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp4_ != NULL) {
-#line 3895 "ImportPage.c"
- MetadataDateTime* _tmp5_;
-#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = date_time;
-#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = metadata_date_time_get_timestamp (_tmp5_);
-#line 3901 "ImportPage.c"
- } else {
-#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = import_source_get_modification_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 3905 "ImportPage.c"
- }
-#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp3_;
-#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _metadata_date_time_unref0 (date_time);
-#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3913 "ImportPage.c"
-}
-
-
-gchar*
-photo_import_source_get_title (PhotoImportSource* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- PhotoMetadata* _tmp1_;
-#line 212 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), NULL);
-#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->metadata;
-#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp1_ != NULL) {
-#line 3929 "ImportPage.c"
- PhotoMetadata* _tmp2_;
- gchar* _tmp3_;
-#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->metadata;
-#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp0_);
-#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _tmp3_;
-#line 3940 "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 3946 "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 3952 "ImportPage.c"
-}
-
-
-PhotoMetadata*
-photo_import_source_get_metadata (PhotoImportSource* self)
-{
- PhotoMetadata* result = NULL;
- PhotoImportSource* _tmp0_;
- PhotoMetadata* _tmp3_;
- PhotoMetadata* _tmp4_;
-#line 216 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), NULL);
-#line 217 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->associated;
-#line 217 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_ != NULL) {
-#line 3969 "ImportPage.c"
- PhotoImportSource* _tmp1_;
- PhotoMetadata* _tmp2_;
-#line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->associated;
-#line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = photo_import_source_get_metadata (_tmp1_);
-#line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp2_;
-#line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3980 "ImportPage.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->metadata;
-#line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _media_metadata_ref0 (_tmp3_);
-#line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp4_;
-#line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 3990 "ImportPage.c"
-}
-
-
-static GdkPixbuf*
-photo_import_source_real_get_preview (ImportSource* base)
-{
- PhotoImportSource * self;
- GdkPixbuf* result = NULL;
- PhotoImportSource* _tmp0_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- gboolean _tmp5_;
-#line 223 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->associated;
-#line 224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_ != NULL) {
-#line 4009 "ImportPage.c"
- PhotoImportSource* _tmp1_;
- GdkPixbuf* _tmp2_;
-#line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->associated;
-#line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp2_;
-#line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4020 "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));
-#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _tmp3_;
-#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp4_ != NULL;
-#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp5_) {
-#line 4032 "ImportPage.c"
- GdkPixbuf* _tmp6_;
-#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));
-#line 228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp6_;
-#line 228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4040 "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 4046 "ImportPage.c"
-}
-
-
-static GdkPixbuf*
-photo_import_source_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- PhotoImportSource * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
- gboolean _tmp2_;
- GdkPixbuf* _tmp3_ = NULL;
-#line 233 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp1_ == NULL;
-#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp2_) {
-#line 235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = NULL;
-#line 235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4077 "ImportPage.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (scale > 0) {
-#line 4081 "ImportPage.c"
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = scale_pixbuf (_tmp5_, scale, PHOTO_IMPORT_SOURCE_INTERP, TRUE);
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp6_;
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 4097 "ImportPage.c"
- } else {
- GdkPixbuf* _tmp7_;
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource));
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp7_;
-#line 4106 "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 4112 "ImportPage.c"
-}
-
-
-PhotoFileFormat
-photo_import_source_get_file_format (PhotoImportSource* self)
-{
- PhotoFileFormat result = 0;
- PhotoFileFormat _tmp0_;
-#line 240 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), 0);
-#line 241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->file_format;
-#line 241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4129 "ImportPage.c"
-}
-
-
-gchar*
-photo_import_source_get_preview_md5 (PhotoImportSource* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 244 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), NULL);
-#line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->preview_md5;
-#line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4149 "ImportPage.c"
-}
-
-
-void
-photo_import_source_set_associated (PhotoImportSource* self,
- PhotoImportSource* associated)
-{
- PhotoImportSource* _tmp0_;
-#line 248 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_PHOTO_IMPORT_SOURCE (self));
-#line 248 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail ((associated == NULL) || IS_PHOTO_IMPORT_SOURCE (associated));
-#line 249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _g_object_ref0 (associated);
-#line 249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->associated);
-#line 249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->associated = _tmp0_;
-#line 4168 "ImportPage.c"
-}
-
-
-PhotoImportSource*
-photo_import_source_get_associated (PhotoImportSource* self)
-{
- PhotoImportSource* result = NULL;
- PhotoImportSource* _tmp0_;
- PhotoImportSource* _tmp1_;
-#line 252 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), NULL);
-#line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->associated;
-#line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4188 "ImportPage.c"
-}
-
-
-static gboolean
-photo_import_source_real_internal_delete_backing (DataSource* base,
- GError** error)
-{
- PhotoImportSource * self;
- gboolean result = FALSE;
- gboolean ret = FALSE;
- PhotoImportSource* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ret = DATA_SOURCE_CLASS (photo_import_source_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_);
-#line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4207 "ImportPage.c"
- gboolean _tmp0_ = FALSE;
-#line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp0_;
-#line 4213 "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 4219 "ImportPage.c"
- gboolean _tmp2_ = FALSE;
- PhotoImportSource* _tmp3_;
- gboolean _tmp5_;
-#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->associated;
-#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = data_source_internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource), &_inner_error_);
-#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4229 "ImportPage.c"
- gboolean _tmp4_ = FALSE;
-#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp4_;
-#line 4235 "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 4241 "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 4247 "ImportPage.c"
-}
-
-
-static void
-photo_import_source_class_init (PhotoImportSourceClass * klass)
-{
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo_import_source_parent_class = g_type_class_peek_parent (klass);
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_type_class_add_private (klass, sizeof (PhotoImportSourcePrivate));
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) photo_import_source_real_get_name;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) photo_import_source_real_get_typename;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) photo_import_source_real_get_instance_id;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) photo_import_source_real_get_preferred_thumbnail_format;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) photo_import_source_real_create_thumbnail;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ImportSourceClass *) klass)->get_exposure_time = (time_t (*) (ImportSource *)) photo_import_source_real_get_exposure_time;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ImportSourceClass *) klass)->get_preview = (GdkPixbuf* (*) (ImportSource *)) photo_import_source_real_get_preview;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) photo_import_source_real_get_thumbnail;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) 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 4278 "ImportPage.c"
-}
-
-
-static void
-photo_import_source_instance_init (PhotoImportSource * self)
-{
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv = PHOTO_IMPORT_SOURCE_GET_PRIVATE (self);
-#line 156 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->preview_md5 = NULL;
-#line 157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->metadata = NULL;
-#line 158 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->exif_md5 = NULL;
-#line 159 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->associated = NULL;
-#line 4295 "ImportPage.c"
-}
-
-
-static void
-photo_import_source_finalize (GObject * obj)
-{
- PhotoImportSource * self;
-#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource);
-#line 156 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->preview_md5);
-#line 157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (self->priv->metadata);
-#line 158 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->exif_md5);
-#line 159 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _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 4315 "ImportPage.c"
-}
-
-
-GType
-photo_import_source_get_type (void)
-{
- static volatile gsize photo_import_source_type_id__volatile = 0;
- if (g_once_init_enter (&photo_import_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoImportSource), 0, (GInstanceInitFunc) photo_import_source_instance_init, NULL };
- GType photo_import_source_type_id;
- photo_import_source_type_id = g_type_register_static (TYPE_IMPORT_SOURCE, "PhotoImportSource", &g_define_type_info, 0);
- g_once_init_leave (&photo_import_source_type_id__volatile, photo_import_source_type_id);
- }
- return photo_import_source_type_id__volatile;
-}
-
-
-ImportPreview*
-import_preview_construct (GType object_type,
- ImportSource* source)
-{
- ImportPreview * self = NULL;
- Dimensions _tmp0_ = {0};
- gchar* _tmp1_;
- gchar* _tmp2_;
- GdkPixbuf* pixbuf = NULL;
- gboolean using_placeholder = FALSE;
- GdkPixbuf* _tmp10_;
- GdkPixbuf* _tmp11_;
- gboolean _tmp18_ = FALSE;
- GdkPixbuf* _tmp19_;
- GdkPixbuf* _tmp40_;
- GError * _inner_error_ = NULL;
-#line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (source), NULL);
-#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- dimensions_init (&_tmp0_, 0, 0);
-#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp1_;
-#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (ImportPreview*) media_source_item_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), &_tmp0_, _tmp2_, NULL, FALSE, PANGO_ALIGN_LEFT);
-#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp2_);
-#line 274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->duplicated_file);
-#line 274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->duplicated_file = NULL;
-#line 277 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (source, 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 4369 "ImportPage.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- pixbuf = NULL;
-#line 4373 "ImportPage.c"
- {
- GdkPixbuf* _tmp3_ = NULL;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
-#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), 0, &_inner_error_);
-#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp4_;
-#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4384 "ImportPage.c"
- goto __catch72_g_error;
- }
-#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp3_;
-#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = NULL;
-#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (pixbuf);
-#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- pixbuf = _tmp5_;
-#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 4397 "ImportPage.c"
- }
- goto __finally72;
- __catch72_g_error:
- {
- GError* err = NULL;
- gchar* _tmp6_;
- gchar* _tmp7_;
- GError* _tmp8_;
- const gchar* _tmp9_;
-#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp6_;
-#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = err;
-#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = _tmp8_->message;
-#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:285: Unable to fetch loaded import preview for %s: %s", _tmp7_, _tmp9_);
-#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp7_);
-#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 4425 "ImportPage.c"
- }
- __finally72:
-#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"
- _g_object_unref0 (pixbuf);
-#line 282 "/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 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return NULL;
-#line 4438 "ImportPage.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = pixbuf;
-#line 289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- using_placeholder = _tmp10_ == NULL;
-#line 290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = pixbuf;
-#line 290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp11_ == NULL) {
-#line 4448 "ImportPage.c"
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp16_;
- GdkPixbuf* _tmp17_;
-#line 291 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = import_preview_placeholder_preview;
-#line 291 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp12_ == NULL) {
-#line 4456 "ImportPage.c"
- GdkPixbuf* _tmp13_;
- GdkPixbuf* _tmp14_;
- GdkPixbuf* _tmp15_;
-#line 292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = get_placeholder_pixbuf ();
-#line 292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_preview_placeholder_preview);
-#line 292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_preview_placeholder_preview = _tmp13_;
-#line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = import_preview_placeholder_preview;
-#line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = scale_pixbuf (_tmp14_, IMPORT_PREVIEW_MAX_SCALE, GDK_INTERP_BILINEAR, TRUE);
-#line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_preview_placeholder_preview);
-#line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_preview_placeholder_preview = _tmp15_;
-#line 4474 "ImportPage.c"
- }
-#line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = import_preview_placeholder_preview;
-#line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = _g_object_ref0 (_tmp16_);
-#line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (pixbuf);
-#line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- pixbuf = _tmp17_;
-#line 4484 "ImportPage.c"
- }
-#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = pixbuf;
-#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (gdk_pixbuf_get_width (_tmp19_) > IMPORT_PREVIEW_MAX_SCALE) {
-#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = TRUE;
-#line 4492 "ImportPage.c"
- } else {
- GdkPixbuf* _tmp20_;
-#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = pixbuf;
-#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = gdk_pixbuf_get_height (_tmp20_) > IMPORT_PREVIEW_MAX_SCALE;
-#line 4499 "ImportPage.c"
- }
-#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp18_) {
-#line 4503 "ImportPage.c"
- GdkPixbuf* _tmp21_;
- GdkPixbuf* _tmp22_;
-#line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = pixbuf;
-#line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = scale_pixbuf (_tmp21_, IMPORT_PREVIEW_MAX_SCALE, PHOTO_IMPORT_SOURCE_INTERP, FALSE);
-#line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (pixbuf);
-#line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- pixbuf = _tmp22_;
-#line 4514 "ImportPage.c"
- }
-#line 304 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO_IMPORT_SOURCE)) {
-#line 4518 "ImportPage.c"
- PhotoImportSource* photo_import_source = NULL;
- PhotoImportSource* _tmp23_;
- gboolean _tmp24_ = FALSE;
- gboolean _tmp25_;
- PhotoImportSource* _tmp34_;
- PhotoImportSource* _tmp35_;
- PhotoImportSource* _tmp36_;
- gboolean _tmp37_;
-#line 306 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) source) : NULL);
-#line 306 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo_import_source = _tmp23_;
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = using_placeholder;
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp25_) {
-#line 4535 "ImportPage.c"
- PhotoImportSource* _tmp26_;
- PhotoMetadata* _tmp27_;
- PhotoMetadata* _tmp28_;
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = photo_import_source;
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = photo_import_source_get_metadata (_tmp26_);
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = _tmp27_;
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = _tmp28_ != NULL;
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (_tmp28_);
-#line 4549 "ImportPage.c"
- } else {
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = FALSE;
-#line 4553 "ImportPage.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp24_) {
-#line 4557 "ImportPage.c"
- PhotoImportSource* _tmp29_;
- PhotoMetadata* _tmp30_;
- PhotoMetadata* _tmp31_;
- GdkPixbuf* _tmp32_;
- GdkPixbuf* _tmp33_;
-#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = photo_import_source;
-#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = photo_import_source_get_metadata (_tmp29_);
-#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = _tmp30_;
-#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = pixbuf;
-#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = orientation_rotate_pixbuf (photo_metadata_get_orientation (_tmp31_), _tmp32_);
-#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (pixbuf);
-#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- pixbuf = _tmp33_;
-#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (_tmp31_);
-#line 4579 "ImportPage.c"
- }
-#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = photo_import_source;
-#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = photo_import_source_get_associated (_tmp34_);
-#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = _tmp35_;
-#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = _tmp36_ != NULL;
-#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp36_);
-#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp37_) {
-#line 4593 "ImportPage.c"
- gchar* _tmp38_;
- gchar* _tmp39_;
-#line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = g_strdup_printf ("<small>%s</small>", _ ("RAW+JPEG"));
-#line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = _tmp38_;
-#line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- checkerboard_item_set_subtitle (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp39_, TRUE, PANGO_ALIGN_LEFT);
-#line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp39_);
-#line 4604 "ImportPage.c"
- }
-#line 304 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo_import_source);
-#line 4608 "ImportPage.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = pixbuf;
-#line 315 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp40_);
-#line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (pixbuf);
-#line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 4618 "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 4627 "ImportPage.c"
-}
-
-
-gboolean
-import_preview_is_already_imported (ImportPreview* self)
-{
- gboolean result = FALSE;
- PhotoImportSource* photo_import_source = NULL;
- ImportSource* _tmp0_;
- PhotoImportSource* _tmp1_;
- PhotoImportSource* _tmp2_;
- VideoImportSource* video_import_source = NULL;
- ImportSource* _tmp42_;
- VideoImportSource* _tmp43_;
- VideoImportSource* _tmp44_;
-#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"
- _tmp0_ = import_preview_get_import_source (self);
-#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp0_) : NULL;
-#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp1_ == NULL) {
-#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 4653 "ImportPage.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo_import_source = _tmp1_;
-#line 320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = photo_import_source;
-#line 320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp2_ != NULL) {
-#line 4661 "ImportPage.c"
- gchar* preview_md5 = NULL;
- PhotoImportSource* _tmp3_;
- gchar* _tmp4_;
- PhotoFileFormat file_format = 0;
- PhotoImportSource* _tmp5_;
- gboolean _tmp6_ = FALSE;
- const gchar* _tmp7_;
- PhotoFileFormat _tmp14_;
-#line 321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = photo_import_source;
-#line 321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = photo_import_source_get_preview_md5 (_tmp3_);
-#line 321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview_md5 = _tmp4_;
-#line 322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = photo_import_source;
-#line 322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- file_format = photo_import_source_get_file_format (_tmp5_);
-#line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = preview_md5;
-#line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!is_string_empty (_tmp7_)) {
-#line 4684 "ImportPage.c"
- const gchar* _tmp8_;
- PhotoFileFormat _tmp9_;
-#line 326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = preview_md5;
-#line 326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = file_format;
-#line 326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = library_photo_has_nontrash_duplicate (NULL, _tmp8_, NULL, _tmp9_);
-#line 4693 "ImportPage.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = FALSE;
-#line 4697 "ImportPage.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp6_) {
-#line 4701 "ImportPage.c"
- const gchar* _tmp10_;
- PhotoFileFormat _tmp11_;
- PhotoID _tmp12_ = {0};
- DuplicatedFile* _tmp13_;
-#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = preview_md5;
-#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = file_format;
-#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_photo_get_nontrash_duplicate (NULL, _tmp10_, NULL, _tmp11_, &_tmp12_);
-#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = duplicated_file_create_from_photo_id (&_tmp12_);
-#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->duplicated_file);
-#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->duplicated_file = _tmp13_;
-#line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_md5);
-#line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo_import_source);
-#line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4726 "ImportPage.c"
- }
-#line 337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = file_format;
-#line 337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp14_ == PHOTO_FILE_FORMAT_RAW) {
-#line 4732 "ImportPage.c"
- guint64 filesize = 0ULL;
- ImportSource* _tmp15_;
- ImportSource* _tmp16_;
- guint64 _tmp17_;
- guint64 _tmp18_;
-#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = import_preview_get_import_source (self);
-#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = _tmp15_;
-#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = (guint64) import_source_get_filesize (_tmp16_);
-#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- filesize = _tmp17_;
-#line 340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = filesize;
-#line 340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp18_ <= ((guint64) G_MAXINT64)) {
-#line 4752 "ImportPage.c"
- PhotoID duplicated_photo_id = {0};
- LibraryPhotoSourceCollection* _tmp19_;
- ImportSource* _tmp20_;
- ImportSource* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- guint64 _tmp24_;
- PhotoID _tmp25_ = {0};
- PhotoID _tmp26_;
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = library_photo_global;
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = import_preview_get_import_source (self);
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = _tmp20_;
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = import_source_get_filename (_tmp21_);
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = _tmp22_;
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = filesize;
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_photo_source_collection_get_basename_filesize_duplicate (_tmp19_, _tmp23_, (gint64) _tmp24_, &_tmp25_);
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = _tmp25_;
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp23_);
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp21_);
-#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- duplicated_photo_id = _tmp26_;
-#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (photo_id_is_valid (&duplicated_photo_id)) {
-#line 4786 "ImportPage.c"
- LibraryPhoto* duplicated_photo = NULL;
- LibraryPhotoSourceCollection* _tmp27_;
- PhotoID _tmp28_;
- LibraryPhoto* _tmp29_;
- time_t photo_exposure_time = 0;
- PhotoImportSource* _tmp30_;
- time_t duplicated_photo_exposure_time = 0;
- LibraryPhoto* _tmp31_;
- time_t _tmp32_;
- time_t _tmp33_;
-#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = library_photo_global;
-#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = duplicated_photo_id;
-#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = library_photo_source_collection_fetch (_tmp27_, &_tmp28_);
-#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- duplicated_photo = _tmp29_;
-#line 347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = photo_import_source;
-#line 347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo_exposure_time = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = duplicated_photo;
-#line 348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- duplicated_photo_exposure_time = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = photo_exposure_time;
-#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = duplicated_photo_exposure_time;
-#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp32_ == _tmp33_) {
-#line 4819 "ImportPage.c"
- LibraryPhotoSourceCollection* _tmp34_;
- ImportSource* _tmp35_;
- ImportSource* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- guint64 _tmp39_;
- PhotoID _tmp40_ = {0};
- DuplicatedFile* _tmp41_;
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = library_photo_global;
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = import_preview_get_import_source (self);
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = _tmp35_;
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = import_source_get_filename (_tmp36_);
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = _tmp37_;
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = filesize;
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_photo_source_collection_get_basename_filesize_duplicate (_tmp34_, _tmp38_, (gint64) _tmp39_, &_tmp40_);
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = duplicated_file_create_from_photo_id (&_tmp40_);
-#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 = _tmp41_;
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp38_);
-#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp36_);
-#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 4862 "ImportPage.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (duplicated_photo);
-#line 4866 "ImportPage.c"
- }
- }
- }
-#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_md5);
-#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo_import_source);
-#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4878 "ImportPage.c"
- }
-#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = import_preview_get_import_source (self);
-#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, TYPE_VIDEO_IMPORT_SOURCE) ? ((VideoImportSource*) _tmp42_) : NULL;
-#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp43_ == NULL) {
-#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp42_);
-#line 4888 "ImportPage.c"
- }
-#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- video_import_source = _tmp43_;
-#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = video_import_source;
-#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp44_ != NULL) {
-#line 4896 "ImportPage.c"
- VideoSourceCollection* _tmp45_;
- VideoImportSource* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
- VideoImportSource* _tmp49_;
- gboolean _tmp50_;
-#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = video_global;
-#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = video_import_source;
-#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = _tmp47_;
-#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = video_import_source;
-#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = video_source_collection_has_basename_filesize_duplicate (_tmp45_, _tmp48_, (guint64) import_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_IMPORT_SOURCE, ImportSource)));
-#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp48_);
-#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp50_) {
-#line 4919 "ImportPage.c"
- VideoSourceCollection* _tmp51_;
- VideoImportSource* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
- VideoImportSource* _tmp55_;
- VideoID _tmp56_ = {0};
- DuplicatedFile* _tmp57_;
-#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp51_ = video_global;
-#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp52_ = video_import_source;
-#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = _tmp53_;
-#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = video_import_source;
-#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- video_source_collection_get_basename_filesize_duplicate (_tmp51_, _tmp54_, (guint64) import_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_IMPORT_SOURCE, ImportSource)), &_tmp56_);
-#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = duplicated_file_create_from_video_id (&_tmp56_);
-#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 = _tmp57_;
-#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp54_);
-#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 4955 "ImportPage.c"
- }
-#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (video_import_source);
-#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo_import_source);
-#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4965 "ImportPage.c"
- }
-#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (video_import_source);
-#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo_import_source);
-#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4975 "ImportPage.c"
-}
-
-
-DuplicatedFile*
-import_preview_get_duplicated_file (ImportPreview* self)
-{
- DuplicatedFile* result = NULL;
- DuplicatedFile* _tmp0_;
- DuplicatedFile* _tmp1_;
-#line 387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PREVIEW (self), NULL);
-#line 388 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!import_preview_is_already_imported (self)) {
-#line 389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = NULL;
-#line 389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 4993 "ImportPage.c"
- }
-#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->duplicated_file;
-#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5003 "ImportPage.c"
-}
-
-
-ImportSource*
-import_preview_get_import_source (ImportPreview* self)
-{
- ImportSource* result = NULL;
- DataSource* _tmp0_;
-#line 394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PREVIEW (self), NULL);
-#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 395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_SOURCE, ImportSource);
-#line 395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5020 "ImportPage.c"
-}
-
-
-static void
-import_preview_class_init (ImportPreviewClass * klass)
-{
-#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_preview_parent_class = g_type_class_peek_parent (klass);
-#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- 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 5033 "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 5042 "ImportPage.c"
-}
-
-
-static void
-import_preview_finalize (GObject * obj)
-{
- ImportPreview * self;
-#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_PREVIEW, ImportPreview);
-#line 269 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _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 5056 "ImportPage.c"
-}
-
-
-GType
-import_preview_get_type (void)
-{
- static volatile gsize import_preview_type_id__volatile = 0;
- if (g_once_init_enter (&import_preview_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPreview), 0, (GInstanceInitFunc) import_preview_instance_init, NULL };
- GType import_preview_type_id;
- import_preview_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_ITEM, "ImportPreview", &g_define_type_info, 0);
- g_once_init_leave (&import_preview_type_id__volatile, import_preview_type_id);
- }
- return import_preview_type_id__volatile;
-}
-
-
-CameraViewTracker*
-camera_view_tracker_construct (GType object_type,
- ViewCollection* collection)
-{
- CameraViewTracker* self = NULL;
- CameraAccumulator* _tmp0_;
- CameraAccumulator* _tmp1_;
- CameraAccumulator* _tmp2_;
-#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (collection), NULL);
-#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (CameraViewTracker*) core_view_tracker_construct (object_type, collection);
-#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->all;
-#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->visible;
-#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->selected;
-#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 (_tmp0_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator));
-#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 5096 "ImportPage.c"
-}
-
-
-CameraViewTracker*
-camera_view_tracker_new (ViewCollection* collection)
-{
-#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return camera_view_tracker_construct (TYPE_CAMERA_VIEW_TRACKER, collection);
-#line 5105 "ImportPage.c"
-}
-
-
-static void
-camera_view_tracker_class_init (CameraViewTrackerClass * klass)
-{
-#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_view_tracker_parent_class = g_type_class_peek_parent (klass);
-#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((CoreTrackerClass *) klass)->finalize = camera_view_tracker_finalize;
-#line 5116 "ImportPage.c"
-}
-
-
-static void
-camera_view_tracker_instance_init (CameraViewTracker * self)
-{
- CameraAccumulator* _tmp0_;
- CameraAccumulator* _tmp1_;
- CameraAccumulator* _tmp2_;
-#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = camera_accumulator_new ();
-#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->all = _tmp0_;
-#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = camera_accumulator_new ();
-#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->visible = _tmp1_;
-#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = camera_accumulator_new ();
-#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->selected = _tmp2_;
-#line 5138 "ImportPage.c"
-}
-
-
-static void
-camera_view_tracker_finalize (CoreTracker * obj)
-{
- CameraViewTracker * self;
-#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker);
-#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->all);
-#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->visible);
-#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->selected);
-#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- CORE_TRACKER_CLASS (camera_view_tracker_parent_class)->finalize (obj);
-#line 5156 "ImportPage.c"
-}
-
-
-GType
-camera_view_tracker_get_type (void)
-{
- static volatile gsize camera_view_tracker_type_id__volatile = 0;
- if (g_once_init_enter (&camera_view_tracker_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CameraViewTrackerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_view_tracker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraViewTracker), 0, (GInstanceInitFunc) camera_view_tracker_instance_init, NULL };
- GType camera_view_tracker_type_id;
- camera_view_tracker_type_id = g_type_register_static (CORE_TYPE_VIEW_TRACKER, "CameraViewTracker", &g_define_type_info, 0);
- g_once_init_leave (&camera_view_tracker_type_id__volatile, camera_view_tracker_type_id);
- }
- return camera_view_tracker_type_id__volatile;
-}
-
-
-static gboolean
-camera_accumulator_real_include (CoreTrackerAccumulator* base,
- DataObject* object)
-{
- CameraAccumulator * self;
- gboolean result = FALSE;
- ImportSource* source = NULL;
- DataSource* _tmp0_;
- gint _tmp1_;
- PhotoImportSource* photo = NULL;
- ImportSource* _tmp2_;
- PhotoImportSource* _tmp3_;
- gboolean _tmp4_ = FALSE;
- PhotoImportSource* _tmp5_;
-#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator);
-#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_SOURCE, ImportSource);
-#line 420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->_total;
-#line 420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_total (self, _tmp1_ + 1);
-#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = source;
-#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp2_) : NULL);
-#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo = _tmp3_;
-#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = photo;
-#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp5_ != NULL) {
-#line 5210 "ImportPage.c"
- PhotoImportSource* _tmp6_;
-#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = photo;
-#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = photo_import_source_get_file_format (_tmp6_) != PHOTO_FILE_FORMAT_RAW;
-#line 5216 "ImportPage.c"
- } else {
-#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = FALSE;
-#line 5220 "ImportPage.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp4_) {
-#line 5224 "ImportPage.c"
- gint _tmp7_;
-#line 424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->_photos;
-#line 424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_photos (self, _tmp7_ + 1);
-#line 5230 "ImportPage.c"
- } else {
- gboolean _tmp8_ = FALSE;
- PhotoImportSource* _tmp9_;
-#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = photo;
-#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp9_ != NULL) {
-#line 5238 "ImportPage.c"
- PhotoImportSource* _tmp10_;
-#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = photo;
-#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = photo_import_source_get_file_format (_tmp10_) == PHOTO_FILE_FORMAT_RAW;
-#line 5244 "ImportPage.c"
- } else {
-#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = FALSE;
-#line 5248 "ImportPage.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp8_) {
-#line 5252 "ImportPage.c"
- gint _tmp11_;
-#line 426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = self->priv->_raw;
-#line 426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_raw (self, _tmp11_ + 1);
-#line 5258 "ImportPage.c"
- } else {
- ImportSource* _tmp12_;
-#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = source;
-#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_VIDEO_IMPORT_SOURCE)) {
-#line 5265 "ImportPage.c"
- gint _tmp13_;
-#line 428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = self->priv->_videos;
-#line 428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_videos (self, _tmp13_ + 1);
-#line 5271 "ImportPage.c"
- }
- }
- }
-#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo);
-#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5283 "ImportPage.c"
-}
-
-
-static gboolean
-camera_accumulator_real_uninclude (CoreTrackerAccumulator* base,
- DataObject* object)
-{
- CameraAccumulator * self;
- gboolean result = FALSE;
- ImportSource* source = NULL;
- DataSource* _tmp0_;
- gint _tmp1_;
- PhotoImportSource* photo = NULL;
- ImportSource* _tmp2_;
- PhotoImportSource* _tmp3_;
- gboolean _tmp4_ = FALSE;
- PhotoImportSource* _tmp5_;
-#line 434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator);
-#line 434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_SOURCE, ImportSource);
-#line 437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->_total;
-#line 437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_total (self, _tmp1_ + 1);
-#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = source;
-#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp2_) : NULL);
-#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo = _tmp3_;
-#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = photo;
-#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp5_ != NULL) {
-#line 5323 "ImportPage.c"
- PhotoImportSource* _tmp6_;
-#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = photo;
-#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = photo_import_source_get_file_format (_tmp6_) != PHOTO_FILE_FORMAT_RAW;
-#line 5329 "ImportPage.c"
- } else {
-#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = FALSE;
-#line 5333 "ImportPage.c"
- }
-#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp4_) {
-#line 5337 "ImportPage.c"
- gint _tmp7_;
- gint _tmp8_;
-#line 441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->_photos;
-#line 441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_assert (_tmp7_ > 0, "photos > 0");
-#line 442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = self->priv->_photos;
-#line 442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_photos (self, _tmp8_ - 1);
-#line 5348 "ImportPage.c"
- } else {
- gboolean _tmp9_ = FALSE;
- PhotoImportSource* _tmp10_;
-#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = photo;
-#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp10_ != NULL) {
-#line 5356 "ImportPage.c"
- PhotoImportSource* _tmp11_;
-#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = photo;
-#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = photo_import_source_get_file_format (_tmp11_) == PHOTO_FILE_FORMAT_RAW;
-#line 5362 "ImportPage.c"
- } else {
-#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = FALSE;
-#line 5366 "ImportPage.c"
- }
-#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp9_) {
-#line 5370 "ImportPage.c"
- gint _tmp12_;
- gint _tmp13_;
-#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = self->priv->_raw;
-#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_assert (_tmp12_ > 0, "raw > 0");
-#line 445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = self->priv->_raw;
-#line 445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_raw (self, _tmp13_ - 1);
-#line 5381 "ImportPage.c"
- } else {
- ImportSource* _tmp14_;
-#line 446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = source;
-#line 446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_VIDEO_IMPORT_SOURCE)) {
-#line 5388 "ImportPage.c"
- gint _tmp15_;
- gint _tmp16_;
-#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = self->priv->_videos;
-#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_assert (_tmp15_ > 0, "videos > 0");
-#line 448 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = self->priv->_videos;
-#line 448 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_videos (self, _tmp16_ - 1);
-#line 5399 "ImportPage.c"
- }
- }
- }
-#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo);
-#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5411 "ImportPage.c"
-}
-
-
-static gboolean
-camera_accumulator_real_altered (CoreTrackerAccumulator* base,
- DataObject* object,
- Alteration* alteration)
-{
- CameraAccumulator * self;
- gboolean result = FALSE;
-#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator);
-#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5432 "ImportPage.c"
-}
-
-
-gchar*
-camera_accumulator_to_string (CameraAccumulator* self)
-{
- gchar* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gchar* _tmp4_;
-#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), NULL);
-#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->_total;
-#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->_photos;
-#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->_videos;
-#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->_raw;
-#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 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp4_;
-#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5461 "ImportPage.c"
-}
-
-
-CameraAccumulator*
-camera_accumulator_construct (GType object_type)
-{
- CameraAccumulator * self = NULL;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (CameraAccumulator*) g_object_new (object_type, NULL);
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 5473 "ImportPage.c"
-}
-
-
-CameraAccumulator*
-camera_accumulator_new (void)
-{
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return camera_accumulator_construct (TYPE_CAMERA_ACCUMULATOR);
-#line 5482 "ImportPage.c"
-}
-
-
-gint
-camera_accumulator_get_total (CameraAccumulator* self)
-{
- gint result;
- gint _tmp0_;
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0);
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->_total;
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5499 "ImportPage.c"
-}
-
-
-static void
-camera_accumulator_set_total (CameraAccumulator* self,
- gint value)
-{
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_CAMERA_ACCUMULATOR (self));
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (camera_accumulator_get_total (self) != value) {
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->_total = value;
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_notify_by_pspec ((GObject *) self, camera_accumulator_properties[CAMERA_ACCUMULATOR_TOTAL_PROPERTY]);
-#line 5515 "ImportPage.c"
- }
-}
-
-
-gint
-camera_accumulator_get_photos (CameraAccumulator* self)
-{
- gint result;
- gint _tmp0_;
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0);
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->_photos;
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5533 "ImportPage.c"
-}
-
-
-static void
-camera_accumulator_set_photos (CameraAccumulator* self,
- gint value)
-{
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_CAMERA_ACCUMULATOR (self));
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (camera_accumulator_get_photos (self) != value) {
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->_photos = value;
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_notify_by_pspec ((GObject *) self, camera_accumulator_properties[CAMERA_ACCUMULATOR_PHOTOS_PROPERTY]);
-#line 5549 "ImportPage.c"
- }
-}
-
-
-gint
-camera_accumulator_get_videos (CameraAccumulator* self)
-{
- gint result;
- gint _tmp0_;
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0);
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->_videos;
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5567 "ImportPage.c"
-}
-
-
-static void
-camera_accumulator_set_videos (CameraAccumulator* self,
- gint value)
-{
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_CAMERA_ACCUMULATOR (self));
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (camera_accumulator_get_videos (self) != value) {
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->_videos = value;
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_notify_by_pspec ((GObject *) self, camera_accumulator_properties[CAMERA_ACCUMULATOR_VIDEOS_PROPERTY]);
-#line 5583 "ImportPage.c"
- }
-}
-
-
-gint
-camera_accumulator_get_raw (CameraAccumulator* self)
-{
- gint result;
- gint _tmp0_;
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0);
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->_raw;
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5601 "ImportPage.c"
-}
-
-
-static void
-camera_accumulator_set_raw (CameraAccumulator* self,
- gint value)
-{
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_CAMERA_ACCUMULATOR (self));
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (camera_accumulator_get_raw (self) != value) {
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->_raw = value;
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_notify_by_pspec ((GObject *) self, camera_accumulator_properties[CAMERA_ACCUMULATOR_RAW_PROPERTY]);
-#line 5617 "ImportPage.c"
- }
-}
-
-
-static void
-camera_accumulator_class_init (CameraAccumulatorClass * klass)
-{
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_parent_class = g_type_class_peek_parent (klass);
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_type_class_add_private (klass, sizeof (CameraAccumulatorPrivate));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_camera_accumulator_get_property;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_camera_accumulator_set_property;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_OBJECT_CLASS (klass)->finalize = camera_accumulator_finalize;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_TOTAL_PROPERTY, camera_accumulator_properties[CAMERA_ACCUMULATOR_TOTAL_PROPERTY] = g_param_spec_int ("total", "total", "total", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_PHOTOS_PROPERTY, camera_accumulator_properties[CAMERA_ACCUMULATOR_PHOTOS_PROPERTY] = g_param_spec_int ("photos", "photos", "photos", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_VIDEOS_PROPERTY, camera_accumulator_properties[CAMERA_ACCUMULATOR_VIDEOS_PROPERTY] = g_param_spec_int ("videos", "videos", "videos", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_RAW_PROPERTY, camera_accumulator_properties[CAMERA_ACCUMULATOR_RAW_PROPERTY] = g_param_spec_int ("raw", "raw", "raw", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 5643 "ImportPage.c"
-}
-
-
-static void
-camera_accumulator_core_tracker_accumulator_interface_init (CoreTrackerAccumulatorIface * iface)
-{
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_core_tracker_accumulator_parent_iface = g_type_interface_peek_parent (iface);
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- iface->include = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) camera_accumulator_real_include;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- iface->uninclude = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) camera_accumulator_real_uninclude;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- iface->altered = (gboolean (*) (CoreTrackerAccumulator *, DataObject*, Alteration*)) camera_accumulator_real_altered;
-#line 5658 "ImportPage.c"
-}
-
-
-static void
-camera_accumulator_instance_init (CameraAccumulator * self)
-{
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv = CAMERA_ACCUMULATOR_GET_PRIVATE (self);
-#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->_total = 0;
-#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->_photos = 0;
-#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->_videos = 0;
-#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->_raw = 0;
-#line 5675 "ImportPage.c"
-}
-
-
-static void
-camera_accumulator_finalize (GObject * obj)
-{
- CameraAccumulator * self;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator);
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_OBJECT_CLASS (camera_accumulator_parent_class)->finalize (obj);
-#line 5687 "ImportPage.c"
-}
-
-
-GType
-camera_accumulator_get_type (void)
-{
- static volatile gsize camera_accumulator_type_id__volatile = 0;
- if (g_once_init_enter (&camera_accumulator_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CameraAccumulatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_accumulator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraAccumulator), 0, (GInstanceInitFunc) camera_accumulator_instance_init, NULL };
- static const GInterfaceInfo core_tracker_accumulator_info = { (GInterfaceInitFunc) camera_accumulator_core_tracker_accumulator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType camera_accumulator_type_id;
- camera_accumulator_type_id = g_type_register_static (G_TYPE_OBJECT, "CameraAccumulator", &g_define_type_info, 0);
- g_type_add_interface_static (camera_accumulator_type_id, CORE_TYPE_TRACKER_ACCUMULATOR, &core_tracker_accumulator_info);
- g_once_init_leave (&camera_accumulator_type_id__volatile, camera_accumulator_type_id);
- }
- return camera_accumulator_type_id__volatile;
-}
-
-
-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 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- switch (property_id) {
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case CAMERA_ACCUMULATOR_TOTAL_PROPERTY:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_value_set_int (value, camera_accumulator_get_total (self));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case CAMERA_ACCUMULATOR_PHOTOS_PROPERTY:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_value_set_int (value, camera_accumulator_get_photos (self));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case CAMERA_ACCUMULATOR_VIDEOS_PROPERTY:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_value_set_int (value, camera_accumulator_get_videos (self));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case CAMERA_ACCUMULATOR_RAW_PROPERTY:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_value_set_int (value, camera_accumulator_get_raw (self));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 5741 "ImportPage.c"
- default:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 5747 "ImportPage.c"
- }
-}
-
-
-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 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- switch (property_id) {
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case CAMERA_ACCUMULATOR_TOTAL_PROPERTY:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_total (self, g_value_get_int (value));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case CAMERA_ACCUMULATOR_PHOTOS_PROPERTY:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_photos (self, g_value_get_int (value));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case CAMERA_ACCUMULATOR_VIDEOS_PROPERTY:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_videos (self, g_value_get_int (value));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case CAMERA_ACCUMULATOR_RAW_PROPERTY:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- camera_accumulator_set_raw (self, g_value_get_int (value));
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 5786 "ImportPage.c"
- default:
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 5792 "ImportPage.c"
- }
-}
-
-
-static void
-_import_page_on_media_added_removed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_media_added_removed ((ImportPage*) self);
-#line 5805 "ImportPage.c"
-}
-
-
-GType
-import_page_refresh_result_get_type (void)
-{
- static volatile gsize import_page_refresh_result_type_id__volatile = 0;
- if (g_once_init_enter (&import_page_refresh_result_type_id__volatile)) {
- static const GEnumValue values[] = {{IMPORT_PAGE_REFRESH_RESULT_OK, "IMPORT_PAGE_REFRESH_RESULT_OK", "ok"}, {IMPORT_PAGE_REFRESH_RESULT_BUSY, "IMPORT_PAGE_REFRESH_RESULT_BUSY", "busy"}, {IMPORT_PAGE_REFRESH_RESULT_LOCKED, "IMPORT_PAGE_REFRESH_RESULT_LOCKED", "locked"}, {IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR, "IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR", "library-error"}, {0, NULL, NULL}};
- GType import_page_refresh_result_type_id;
- import_page_refresh_result_type_id = g_enum_register_static ("ImportPageRefreshResult", values);
- g_once_init_leave (&import_page_refresh_result_type_id__volatile, import_page_refresh_result_type_id);
- }
- return import_page_refresh_result_type_id__volatile;
-}
-
-
-static void
-_import_page_on_import_selected_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_import_selected ((ImportPage*) self);
-#line 5830 "ImportPage.c"
-}
-
-
-static void
-_import_page_on_import_all_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_import_all ((ImportPage*) self);
-#line 5841 "ImportPage.c"
-}
-
-
-static void
-_page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- page_on_action_toggle ((Page*) self, action, parameter);
-#line 5852 "ImportPage.c"
-}
-
-
-static void
-_import_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_display_titles ((ImportPage*) self, action, value);
-#line 5863 "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 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5876 "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 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 5889 "ImportPage.c"
-}
-
-
-static void
-_import_page_on_view_changed_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self)
-{
-#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed ((ImportPage*) self);
-#line 5900 "ImportPage.c"
-}
-
-
-static void
-_import_page_on_view_changed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed ((ImportPage*) self);
-#line 5912 "ImportPage.c"
-}
-
-
-static void
-_import_page_on_view_changed_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self)
-{
-#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed ((ImportPage*) self);
-#line 5923 "ImportPage.c"
-}
-
-
-ImportPage*
-import_page_construct (GType object_type,
- Camera* camera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon)
-{
- ImportPage * self = NULL;
- Camera* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- ImportSourceCollection* _tmp4_;
- gchar* _tmp5_;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- CameraViewTracker* _tmp8_;
- GtkLabel* _tmp17_;
- const gchar* _tmp18_;
- const gchar* _tmp19_;
- GVolumeMonitor* _tmp20_;
- GPContextWrapper* _tmp21_;
- GPSpinIdleWrapper* _tmp23_;
- ViewCollection* _tmp25_;
- ViewCollection* _tmp26_;
- SourceCollection* _tmp27_;
- ImportPageImportViewManager* _tmp28_;
- ImportPageImportViewManager* _tmp29_;
- ViewCollectionMonitor* _tmp30_;
- ViewCollectionMonitor* _tmp31_;
- ViewCollection* _tmp32_;
- ViewCollection* _tmp33_;
- ViewCollection* _tmp34_;
- ViewCollection* _tmp35_;
- ViewCollection* _tmp36_;
- ViewCollection* _tmp37_;
- ViewCollection* _tmp38_;
- ViewCollection* _tmp39_;
- ViewCollection* _tmp40_;
- ViewCollection* _tmp41_;
- GValue _tmp42_ = {0};
- LibraryPhotoSourceCollection* _tmp43_;
- VideoSourceCollection* _tmp44_;
-#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (uri != NULL, NULL);
-#line 711 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (ImportPage*) checkerboard_page_construct (object_type, _ ("Camera"));
-#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _GPHOTO_REF_CAMERA0 (camera);
-#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_camera_unref0 (self->priv->camera);
-#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->camera = _tmp0_;
-#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (uri);
-#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->uri);
-#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->uri = _tmp1_;
-#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = g_strdup_printf ("ImportSources for %s", uri);
-#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = import_source_collection_new (_tmp3_);
-#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (self->priv->import_sources);
-#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->import_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection);
-#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp3_);
-#line 715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = g_strdup (icon);
-#line 715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->icon);
-#line 715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->icon = _tmp5_;
-#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp6_;
-#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = camera_view_tracker_new (_tmp7_);
-#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _core_tracker_unref0 (self->priv->tracker);
-#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->tracker = _tmp8_;
-#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp7_);
-#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (NULL != display_name) {
-#line 6020 "ImportPage.c"
- gchar* _tmp9_;
-#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = g_strdup (display_name);
-#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->camera_name);
-#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->camera_name = _tmp9_;
-#line 6028 "ImportPage.c"
- } else {
- CameraAbilities abilities = {0};
- int res = 0;
- CameraAbilities _tmp10_ = {0};
- int _tmp11_;
- int _tmp12_;
-#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = gp_camera_get_abilities (camera, &_tmp10_);
-#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- (abilities);
-#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- abilities = _tmp10_;
-#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- res = _tmp11_;
-#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = res;
-#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp12_ != GP_OK) {
-#line 6047 "ImportPage.c"
- int _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = res;
-#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = gp_result_to_full_string (_tmp13_);
-#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = _tmp14_;
-#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:726: Unable to get camera abilities: %s", _tmp15_);
-#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp15_);
-#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = g_strdup (_ ("Camera"));
-#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->camera_name);
-#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->camera_name = _tmp16_;
-#line 6068 "ImportPage.c"
- }
-#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- (abilities);
-#line 6072 "ImportPage.c"
- }
-#line 730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = self->priv->camera_label;
-#line 730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = self->priv->camera_name;
-#line 730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_label_set_text (_tmp17_, _tmp18_);
-#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = self->priv->camera_name;
-#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp19_);
-#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = g_volume_monitor_get ();
-#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->volume_monitor);
-#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->volume_monitor = _tmp20_;
-#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = import_page_null_context;
-#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp21_ == NULL) {
-#line 6094 "ImportPage.c"
- GPContextWrapper* _tmp22_;
-#line 738 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = gp_context_wrapper_new ();
-#line 738 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_context_wrapper_unref0 (import_page_null_context);
-#line 738 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_null_context = _tmp22_;
-#line 6102 "ImportPage.c"
- }
-#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = import_page_spin_idle_context;
-#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp23_ == NULL) {
-#line 6108 "ImportPage.c"
- GPSpinIdleWrapper* _tmp24_;
-#line 742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = gp_spin_idle_wrapper_new ();
-#line 742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_context_wrapper_unref0 (import_page_spin_idle_context);
-#line 742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_spin_idle_context = _tmp24_;
-#line 6116 "ImportPage.c"
- }
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = _tmp25_;
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = self->priv->import_sources;
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = import_page_import_view_manager_new (self);
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = _tmp28_;
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = view_collection_monitor_source_collection (_tmp26_, _tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL);
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = _tmp30_;
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _view_collection_monitor_unref0 (_tmp31_);
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _view_manager_unref0 (_tmp29_);
-#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp26_);
-#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = _tmp32_;
-#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_COLLECTION, DataCollection), _import_page_preview_comparator_comparator, NULL, _import_page_preview_comparator_predicate_comparator_predicate, NULL);
-#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp33_);
-#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = _tmp34_;
-#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (_tmp35_, "items-state-changed", (GCallback) _import_page_on_view_changed_view_collection_items_state_changed, self, 0);
-#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp35_);
-#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = _tmp36_;
-#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_view_changed_data_collection_contents_altered, self, 0);
-#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp37_);
-#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = _tmp38_;
-#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (_tmp39_, "items-visibility-changed", (GCallback) _import_page_on_view_changed_view_collection_items_visibility_changed, self, 0);
-#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp39_);
-#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = _tmp40_;
-#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_value_init (&_tmp42_, G_TYPE_BOOLEAN);
-#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_value_set_boolean (&_tmp42_, TRUE);
-#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES, &_tmp42_, NULL, NULL);
-#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_IS_VALUE (&_tmp42_) ? (g_value_unset (&_tmp42_), NULL) : NULL;
-#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp41_);
-#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = library_photo_global;
-#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self, 0);
-#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = video_global;
-#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self, 0);
-#line 762 "/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 763 "/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 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 6198 "ImportPage.c"
-}
-
-
-ImportPage*
-import_page_new (Camera* camera,
- const gchar* uri,
- const gchar* display_name,
- const gchar* icon)
-{
-#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return import_page_construct (TYPE_IMPORT_PAGE, camera, uri, display_name, icon);
-#line 6210 "ImportPage.c"
-}
-
-
-static void
-_import_page_on_hide_imported_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_hide_imported ((ImportPage*) self);
-#line 6220 "ImportPage.c"
-}
-
-
-static GtkToolbar*
-import_page_real_get_toolbar (Page* base)
-{
- ImportPage * self;
- GtkToolbar* result = NULL;
- GtkToolbar* _tmp0_;
- GtkToolbar* _tmp54_;
- GtkToolbar* _tmp55_;
-#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_ == NULL) {
-#line 6238 "ImportPage.c"
- GtkToolbar* _tmp1_;
- GtkToolbar* _tmp2_;
- GtkCheckButton* _tmp3_;
- GtkCheckButton* _tmp4_;
- GtkCheckButton* _tmp5_;
- GtkCheckButton* _tmp6_;
- GtkCheckButton* _tmp7_;
- ConfigFacade* _tmp8_;
- ConfigFacade* _tmp9_;
- GtkToolItem* hide_item = NULL;
- GtkToolItem* _tmp10_;
- GtkToolItem* _tmp11_;
- GtkToolItem* _tmp12_;
- GtkCheckButton* _tmp13_;
- GtkToolbar* _tmp14_;
- GtkToolItem* _tmp15_;
- GtkSeparatorToolItem* separator = NULL;
- GtkSeparatorToolItem* _tmp16_;
- GtkSeparatorToolItem* _tmp17_;
- GtkToolbar* _tmp18_;
- GtkSeparatorToolItem* _tmp19_;
- GtkProgressBar* _tmp20_;
- GtkProgressBar* _tmp21_;
- GtkToolItem* progress_item = NULL;
- GtkToolItem* _tmp22_;
- GtkToolItem* _tmp23_;
- GtkToolItem* _tmp24_;
- GtkProgressBar* _tmp25_;
- GtkProgressBar* _tmp26_;
- GtkToolbar* _tmp27_;
- GtkToolItem* _tmp28_;
- GtkToggleToolButton* find_button = NULL;
- GtkToggleToolButton* _tmp29_;
- GtkToggleToolButton* _tmp30_;
- GtkToggleToolButton* _tmp31_;
- GtkToolbar* _tmp32_;
- GtkToggleToolButton* _tmp33_;
- GtkToolbar* _tmp34_;
- GtkSeparatorToolItem* _tmp35_;
- GtkSeparatorToolItem* _tmp36_;
- GtkToolButton* import_selected_button = NULL;
- GtkToolButton* _tmp37_;
- GtkToolButton* _tmp38_;
- GtkToolButton* _tmp39_;
- GtkToolButton* _tmp40_;
- GtkToolButton* _tmp41_;
- GtkToolButton* _tmp42_;
- GtkToolbar* _tmp43_;
- GtkToolButton* _tmp44_;
- GtkToolButton* import_all_button = NULL;
- GtkToolButton* _tmp45_;
- GtkToolButton* _tmp46_;
- GtkToolButton* _tmp47_;
- GtkToolButton* _tmp48_;
- GtkToolButton* _tmp49_;
- GtkToolButton* _tmp50_;
- GtkToolbar* _tmp51_;
- GtkToolButton* _tmp52_;
- GtkProgressBar* _tmp53_;
-#line 773 "/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 773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp1_;
-#line 773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = (GtkCheckButton*) gtk_check_button_new_with_label (_ ("Hide photos already imported"));
-#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp3_);
-#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->hide_imported);
-#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->hide_imported = _tmp3_;
-#line 777 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = self->priv->hide_imported;
-#line 777 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), _ ("Only display photos that have not been imported"));
-#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = self->priv->hide_imported;
-#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _import_page_on_hide_imported_gtk_button_clicked, self, 0);
-#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = self->priv->hide_imported;
-#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->hide_imported;
-#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = config_facade_get_instance ();
-#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = _tmp8_;
-#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_hide_photos_already_imported (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = gtk_tool_item_new ();
-#line 781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp10_);
-#line 781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- hide_item = _tmp10_;
-#line 782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = hide_item;
-#line 782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_item_set_is_important (_tmp11_, TRUE);
-#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = hide_item;
-#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = self->priv->hide_imported;
-#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget));
-#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = hide_item;
-#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_toolbar_insert (_tmp14_, _tmp15_, -1);
-#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp16_);
-#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- separator = _tmp16_;
-#line 789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = separator;
-#line 789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_separator_tool_item_set_draw (_tmp17_, FALSE);
-#line 791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = separator;
-#line 791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_toolbar_insert (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = self->priv->progress_bar;
-#line 794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_orientable_set_orientation (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_orientable_get_type (), GtkOrientable), GTK_ORIENTATION_HORIZONTAL);
-#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = self->priv->progress_bar;
-#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = gtk_tool_item_new ();
-#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp22_);
-#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- progress_item = _tmp22_;
-#line 797 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = progress_item;
-#line 797 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_item_set_expand (_tmp23_, TRUE);
-#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = progress_item;
-#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = self->priv->progress_bar;
-#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget));
-#line 799 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = self->priv->progress_bar;
-#line 799 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_show_text (_tmp26_, TRUE);
-#line 801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = progress_item;
-#line 801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_toolbar_insert (_tmp27_, _tmp28_, -1);
-#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new ();
-#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp29_);
-#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- find_button = _tmp29_;
-#line 805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = find_button;
-#line 805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_tool_button_get_type (), GtkToolButton), "edit-find");
-#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = find_button;
-#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_actionable_get_type (), GtkActionable), "win.CommonDisplaySearchbar");
-#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = find_button;
-#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_toolbar_insert (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp35_);
-#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = _tmp35_;
-#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_toolbar_insert (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp36_);
-#line 814 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL);
-#line 814 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp37_);
-#line 814 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_selected_button = _tmp37_;
-#line 815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = import_selected_button;
-#line 815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_button_set_icon_name (_tmp38_, "import");
-#line 816 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = import_selected_button;
-#line 816 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_button_set_label (_tmp39_, _ ("Import _Selected"));
-#line 817 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = import_selected_button;
-#line 817 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = import_selected_button;
-#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_button_set_use_underline (_tmp41_, TRUE);
-#line 819 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = import_selected_button;
-#line 819 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_actionable_get_type (), GtkActionable), "win.ImportSelected");
-#line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = import_selected_button;
-#line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_toolbar_insert (_tmp43_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 824 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL);
-#line 824 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp45_);
-#line 824 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_all_button = _tmp45_;
-#line 825 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = import_all_button;
-#line 825 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_button_set_icon_name (_tmp46_, "import-all");
-#line 826 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = import_all_button;
-#line 826 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_button_set_label (_tmp47_, _ ("Import _All"));
-#line 827 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = import_all_button;
-#line 827 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = import_all_button;
-#line 828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_tool_button_set_use_underline (_tmp49_, TRUE);
-#line 829 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = import_all_button;
-#line 829 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_actionable_get_type (), GtkActionable), "win.ImportAll");
-#line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp51_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp52_ = import_all_button;
-#line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_toolbar_insert (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 835 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = self->priv->progress_bar;
-#line 835 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_no_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 837 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_toolbar_state (self);
-#line 839 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_all_button);
-#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_selected_button);
-#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (find_button);
-#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (progress_item);
-#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (separator);
-#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (hide_item);
-#line 6522 "ImportPage.c"
- }
-#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
-#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = _g_object_ref0 (_tmp54_);
-#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp55_;
-#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6532 "ImportPage.c"
-}
-
-
-static gpointer
-_core_tracker_ref0 (gpointer self)
-{
-#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self ? core_tracker_ref (self) : NULL;
-#line 6541 "ImportPage.c"
-}
-
-
-static CoreViewTracker*
-import_page_real_get_view_tracker (CheckerboardPage* base)
-{
- ImportPage * self;
- CoreViewTracker* result = NULL;
- CameraViewTracker* _tmp0_;
- CoreViewTracker* _tmp1_;
-#line 845 "/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"
- _tmp0_ = self->priv->tracker;
-#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker));
-#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6562 "ImportPage.c"
-}
-
-
-static gchar*
-import_page_real_get_view_empty_message (CheckerboardPage* base)
-{
- ImportPage * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 849 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = g_strdup (_ ("The camera seems to be empty. No photos/videos found to import"));
-#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6580 "ImportPage.c"
-}
-
-
-static gchar*
-import_page_real_get_filter_no_match_message (CheckerboardPage* base)
-{
- ImportPage * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 853 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 854 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = g_strdup (_ ("No new photos/videos found on camera"));
-#line 854 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 854 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6598 "ImportPage.c"
-}
-
-
-static gint64
-import_page_preview_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- ImportSource* _tmp0_;
- ImportSource* _tmp1_;
- ImportSource* _tmp2_;
- ImportSource* _tmp3_;
- gint64 _tmp4_;
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST ((ImportPreview*) a, TYPE_IMPORT_PREVIEW, ImportPreview));
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST ((ImportPreview*) b, TYPE_IMPORT_PREVIEW, ImportPreview));
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = (gint64) (import_source_get_exposure_time (_tmp1_) - import_source_get_exposure_time (_tmp3_));
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp4_;
-#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6630 "ImportPage.c"
-}
-
-
-static gboolean
-import_page_preview_comparator_predicate (DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 862 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 862 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 863 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = alteration_has_detail (alteration, "metadata", "exposure-time");
-#line 863 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6647 "ImportPage.c"
-}
-
-
-static gint64
-import_page_import_job_comparator (ImportPage* self,
- void* a,
- void* b)
-{
- gint64 result = 0LL;
-#line 866 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), 0LL);
-#line 867 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = (gint64) (import_page_camera_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((ImportPageCameraImportJob*) a, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob)) - import_page_camera_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((ImportPageCameraImportJob*) b, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob)));
-#line 867 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6663 "ImportPage.c"
-}
-
-
-static void
-import_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- ImportPage * self;
-#line 870 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 870 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 871 "/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), ui_filenames);
-#line 873 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "import.ui");
-#line 6680 "ImportPage.c"
-}
-
-
-static GVariant*
-_variant_new15 (gboolean value)
-{
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 6689 "ImportPage.c"
-}
-
-
-static void
-import_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- ImportPage * self;
- GAction* _tmp0_;
- GAction* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- GVariant* _tmp4_;
-#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 884 "/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), map);
-#line 886 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_action_map_add_action_entries (map, IMPORT_PAGE_entries, G_N_ELEMENTS (IMPORT_PAGE_entries), self);
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle");
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _variant_new15 (configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_action_change_state (_tmp1_, _tmp4_);
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_variant_unref0 (_tmp4_);
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 6729 "ImportPage.c"
-}
-
-
-static void
-import_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- ImportPage * self;
-#line 891 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 891 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (G_IS_ACTION_MAP (map));
-#line 892 "/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), map);
-#line 6744 "ImportPage.c"
- {
- GActionEntry* entry_collection = NULL;
- gint entry_collection_length1 = 0;
- gint _entry_collection_size_ = 0;
- gint entry_it = 0;
-#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- entry_collection = IMPORT_PAGE_entries;
-#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- entry_collection_length1 = G_N_ELEMENTS (IMPORT_PAGE_entries);
-#line 893 "/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 6756 "ImportPage.c"
- GActionEntry entry = {0};
-#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- entry = entry_collection[entry_it];
-#line 6760 "ImportPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 894 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = entry;
-#line 894 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 894 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 6770 "ImportPage.c"
- }
- }
- }
-}
-
-
-Camera*
-import_page_get_camera (ImportPage* self)
-{
- Camera* result = NULL;
- Camera* _tmp0_;
- Camera* _tmp1_;
-#line 898 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL);
-#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->camera;
-#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _GPHOTO_REF_CAMERA0 (_tmp0_);
-#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6793 "ImportPage.c"
-}
-
-
-gchar*
-import_page_get_uri (ImportPage* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 902 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL);
-#line 903 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->uri;
-#line 903 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 903 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 903 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6813 "ImportPage.c"
-}
-
-
-gboolean
-import_page_is_busy (ImportPage* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 906 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE);
-#line 907 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->busy;
-#line 907 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 907 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6830 "ImportPage.c"
-}
-
-
-static void
-import_page_real_init_actions (Page* base,
- gint selected_count,
- gint count)
-{
- ImportPage * self;
-#line 910 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 911 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed (self);
-#line 913 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportSelected", TRUE);
-#line 914 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportAll", TRUE);
-#line 916 "/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), selected_count, count);
-#line 6850 "ImportPage.c"
-}
-
-
-gboolean
-import_page_is_refreshed (ImportPage* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 919 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE);
-#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->refreshed;
-#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp1_) {
-#line 6866 "ImportPage.c"
- gboolean _tmp2_;
-#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->busy;
-#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = !_tmp2_;
-#line 6872 "ImportPage.c"
- } else {
-#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = FALSE;
-#line 6876 "ImportPage.c"
- }
-#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6882 "ImportPage.c"
-}
-
-
-gchar*
-import_page_get_refresh_message (ImportPage* self)
-{
- gchar* result = NULL;
- gchar* msg = NULL;
- const gchar* _tmp0_;
-#line 923 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL);
-#line 924 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- msg = NULL;
-#line 925 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->refresh_error;
-#line 925 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_ != NULL) {
-#line 6900 "ImportPage.c"
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->refresh_error;
-#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (msg);
-#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- msg = _tmp2_;
-#line 6911 "ImportPage.c"
- } else {
- int _tmp3_;
-#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->refresh_result;
-#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp3_ == GP_OK) {
-#line 6918 "ImportPage.c"
- } else {
- int _tmp4_;
- gchar* _tmp5_;
-#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = self->priv->refresh_result;
-#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = gp_result_to_full_string (_tmp4_);
-#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (msg);
-#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- msg = _tmp5_;
-#line 6930 "ImportPage.c"
- }
- }
-#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = msg;
-#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 6937 "ImportPage.c"
-}
-
-
-static void
-import_page_update_status (ImportPage* self,
- gboolean busy,
- gboolean refreshed)
-{
-#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 937 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->busy = busy;
-#line 938 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refreshed = refreshed;
-#line 940 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed (self);
-#line 6954 "ImportPage.c"
-}
-
-
-static void
-import_page_update_toolbar_state (ImportPage* self)
-{
- GtkCheckButton* _tmp0_;
-#line 943 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 944 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->hide_imported;
-#line 944 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_ != NULL) {
-#line 6968 "ImportPage.c"
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
- GtkCheckButton* _tmp7_;
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->busy;
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp3_) {
-#line 6977 "ImportPage.c"
- gboolean _tmp4_;
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = self->priv->refreshed;
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp4_;
-#line 6983 "ImportPage.c"
- } else {
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = FALSE;
-#line 6987 "ImportPage.c"
- }
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp2_) {
-#line 6991 "ImportPage.c"
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = _tmp5_;
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = view_collection_get_unfiltered_count (_tmp6_) > 0;
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 7002 "ImportPage.c"
- } else {
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = FALSE;
-#line 7006 "ImportPage.c"
- }
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->hide_imported;
-#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), _tmp1_);
-#line 7012 "ImportPage.c"
- }
-}
-
-
-static void
-import_page_on_view_changed (ImportPage* self)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_;
-#line 948 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->busy;
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp2_) {
-#line 7034 "ImportPage.c"
- gboolean _tmp3_;
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->refreshed;
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp3_;
-#line 7040 "ImportPage.c"
- } else {
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = FALSE;
-#line 7044 "ImportPage.c"
- }
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp1_) {
-#line 7048 "ImportPage.c"
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = view_collection_get_selected_count (_tmp5_) > 0;
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 7059 "ImportPage.c"
- } else {
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = FALSE;
-#line 7063 "ImportPage.c"
- }
-#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportSelected", _tmp0_);
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = self->priv->busy;
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp8_) {
-#line 7071 "ImportPage.c"
- gboolean _tmp9_;
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = self->priv->refreshed;
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp9_;
-#line 7077 "ImportPage.c"
- } else {
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = FALSE;
-#line 7081 "ImportPage.c"
- }
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp7_) {
-#line 7085 "ImportPage.c"
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = _tmp10_;
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection)) > 0;
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp11_);
-#line 7096 "ImportPage.c"
- } else {
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = FALSE;
-#line 7100 "ImportPage.c"
- }
-#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportAll", _tmp6_);
-#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = self->priv->busy;
-#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp13_) {
-#line 7108 "ImportPage.c"
- ViewCollection* _tmp14_;
- ViewCollection* _tmp15_;
-#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = _tmp14_;
-#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection)) > 0;
-#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp15_);
-#line 7119 "ImportPage.c"
- } else {
-#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = FALSE;
-#line 7123 "ImportPage.c"
- }
-#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonSelectAll", _tmp12_);
-#line 953 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_toolbar_state (self);
-#line 7129 "ImportPage.c"
-}
-
-
-static void
-import_page_on_media_added_removed (ImportPage* self)
-{
- ImportPageImportPageSearchViewFilter* _tmp0_;
-#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->search_filter;
-#line 957 "/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 7143 "ImportPage.c"
-}
-
-
-static void
-import_page_on_display_titles (ImportPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 960 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 960 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 961 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- display = g_variant_get_boolean (value);
-#line 963 "/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 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- configuration_facade_set_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display);
-#line 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 966 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_simple_action_set_state (action, value);
-#line 7173 "ImportPage.c"
-}
-
-
-static void
-import_page_real_switched_to (Page* base)
-{
- ImportPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 969 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#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), configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 972 "/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 7195 "ImportPage.c"
-}
-
-
-static void
-import_page_real_ready (Page* base)
-{
- ImportPage * self;
- ImportPageHideImportedViewFilter* _tmp0_;
-#line 975 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 976 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_try_refreshing_camera (self, FALSE);
-#line 977 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->hide_imported_filter;
-#line 977 "/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 7212 "ImportPage.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7236 "ImportPage.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7245 "ImportPage.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 7266 "ImportPage.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 7270 "ImportPage.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 7276 "ImportPage.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 7286 "ImportPage.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 7290 "ImportPage.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 7298 "ImportPage.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 7305 "ImportPage.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 7309 "ImportPage.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 7315 "ImportPage.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7327 "ImportPage.c"
-}
-
-
-static void
-import_page_try_refreshing_camera (ImportPage* self,
- gboolean fail_on_locked)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- ImportPageRefreshResult res = 0;
- ImportPageRefreshResult _tmp3_;
- GError * _inner_error_ = NULL;
-#line 980 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->refreshed;
-#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp1_) {
-#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = TRUE;
-#line 7348 "ImportPage.c"
- } else {
- gboolean _tmp2_;
-#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->busy;
-#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _tmp2_;
-#line 7355 "ImportPage.c"
- }
-#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_) {
-#line 983 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 7361 "ImportPage.c"
- }
-#line 985 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- res = import_page_refresh_camera (self);
-#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = res;
-#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- switch (_tmp3_) {
-#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case IMPORT_PAGE_REFRESH_RESULT_OK:
-#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case IMPORT_PAGE_REFRESH_RESULT_BUSY:
-#line 7373 "ImportPage.c"
- {
-#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 7377 "ImportPage.c"
- }
-#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case IMPORT_PAGE_REFRESH_RESULT_LOCKED:
-#line 7381 "ImportPage.c"
- {
- const gchar* _tmp4_;
- GFile* uri = NULL;
- const gchar* _tmp5_;
- GFile* _tmp6_;
- GMount* mount = NULL;
- gboolean _tmp11_ = FALSE;
- GMount* _tmp12_;
- GMount* _tmp24_;
-#line 994 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (fail_on_locked) {
-#line 995 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- app_window_error_message (IMPORT_PAGE_UNMOUNT_FAILED_MSG, NULL);
-#line 997 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 7397 "ImportPage.c"
- }
-#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = self->priv->uri;
-#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:1001: Checking if %s is mounted…", _tmp4_);
-#line 1003 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = self->priv->uri;
-#line 1003 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = g_file_new_for_uri (_tmp5_);
-#line 1003 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- uri = _tmp6_;
-#line 1005 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- mount = NULL;
-#line 7411 "ImportPage.c"
- {
- GMount* _tmp7_ = NULL;
- GFile* _tmp8_;
- GMount* _tmp9_;
- GMount* _tmp10_;
-#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = uri;
-#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = g_file_find_enclosing_mount (_tmp8_, NULL, &_inner_error_);
-#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp9_;
-#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7425 "ImportPage.c"
- goto __catch73_g_error;
- }
-#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = _tmp7_;
-#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = NULL;
-#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (mount);
-#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- mount = _tmp10_;
-#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 7438 "ImportPage.c"
- }
- goto __finally73;
- __catch73_g_error:
- {
- GError* err = NULL;
-#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 7450 "ImportPage.c"
- }
- __finally73:
-#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (mount);
-#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (uri);
-#line 1006 "/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 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 7465 "ImportPage.c"
- }
-#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = mount;
-#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp12_ == NULL) {
-#line 7471 "ImportPage.c"
- const gchar* _tmp13_;
-#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = self->priv->uri;
-#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = g_str_has_prefix (_tmp13_, "gphoto2");
-#line 7477 "ImportPage.c"
- } else {
-#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = FALSE;
-#line 7481 "ImportPage.c"
- }
-#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp11_) {
-#line 7485 "ImportPage.c"
- const gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GFile* _tmp19_;
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = self->priv->uri;
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = string_substring (_tmp14_, (glong) 7, (glong) -1);
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = _tmp15_;
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = g_strconcat ("mtp", _tmp16_, NULL);
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = _tmp17_;
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = g_file_new_for_uri (_tmp18_);
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (uri);
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- uri = _tmp19_;
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp18_);
-#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp16_);
-#line 7512 "ImportPage.c"
- {
- GMount* _tmp20_ = NULL;
- GFile* _tmp21_;
- GMount* _tmp22_;
- GMount* _tmp23_;
-#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = uri;
-#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = g_file_find_enclosing_mount (_tmp21_, NULL, &_inner_error_);
-#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = _tmp22_;
-#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7526 "ImportPage.c"
- goto __catch74_g_error;
- }
-#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = _tmp20_;
-#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = NULL;
-#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (mount);
-#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- mount = _tmp23_;
-#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp20_);
-#line 7539 "ImportPage.c"
- }
- goto __finally74;
- __catch74_g_error:
- {
- GError* err = NULL;
-#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 7551 "ImportPage.c"
- }
- __finally74:
-#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (mount);
-#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (uri);
-#line 1016 "/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 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 7566 "ImportPage.c"
- }
- }
-#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = mount;
-#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp24_ != NULL) {
-#line 7573 "ImportPage.c"
- gchar* mounted_message = NULL;
- gchar* _tmp25_;
- GtkMessageDialog* dialog = NULL;
- AppWindow* _tmp26_;
- AppWindow* _tmp27_;
- const gchar* _tmp28_;
- GtkMessageDialog* _tmp29_;
- GtkMessageDialog* _tmp30_;
- GtkMessageDialog* _tmp31_;
- GtkMessageDialog* _tmp32_;
- gint dialog_res = 0;
- GtkMessageDialog* _tmp33_;
- GtkMessageDialog* _tmp34_;
- gint _tmp35_;
-#line 1025 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = g_strdup (_ ("Shotwell needs to unmount the camera from the filesystem in order to a" \
-"ccess it. Continue?"));
-#line 1025 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- mounted_message = _tmp25_;
-#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = app_window_get_instance ();
-#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = _tmp26_;
-#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = mounted_message;
-#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_CANCEL, "%s", _tmp28_);
-#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp29_);
-#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = _tmp29_;
-#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp27_);
-#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- dialog = _tmp30_;
-#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = dialog;
-#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE);
-#line 1031 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = dialog;
-#line 1031 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_dialog_get_type (), GtkDialog), _ ("_Unmount"), (gint) GTK_RESPONSE_YES);
-#line 1032 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = dialog;
-#line 1032 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- dialog_res = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_dialog_get_type (), GtkDialog));
-#line 1033 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = dialog;
-#line 1033 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget));
-#line 1035 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = dialog_res;
-#line 1035 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp35_ != ((gint) GTK_RESPONSE_YES)) {
-#line 1036 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _ ("Please unmount the camera."));
-#line 7630 "ImportPage.c"
- } else {
- GMount* _tmp36_;
-#line 1038 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = mount;
-#line 1038 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_unmount_camera (self, _tmp36_);
-#line 7637 "ImportPage.c"
- }
-#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dialog);
-#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (mounted_message);
-#line 7643 "ImportPage.c"
- } else {
- gchar* locked_message = NULL;
- gchar* _tmp37_;
- GtkMessageDialog* dialog = NULL;
- AppWindow* _tmp38_;
- AppWindow* _tmp39_;
- const gchar* _tmp40_;
- GtkMessageDialog* _tmp41_;
- GtkMessageDialog* _tmp42_;
- GtkMessageDialog* _tmp43_;
- GtkMessageDialog* _tmp44_;
- GtkMessageDialog* _tmp45_;
-#line 1041 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = g_strdup (_ ("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 1041 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- locked_message = _tmp37_;
-#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = app_window_get_instance ();
-#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = _tmp38_;
-#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = locked_message;
-#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, "%s", _tmp40_);
-#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp41_);
-#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = _tmp41_;
-#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp39_);
-#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- dialog = _tmp42_;
-#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = dialog;
-#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE);
-#line 1048 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = dialog;
-#line 1048 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_dialog_get_type (), GtkDialog));
-#line 1049 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = dialog;
-#line 1049 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget));
-#line 1051 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _ ("Please close any other application using the camera."));
-#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dialog);
-#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (locked_message);
-#line 7694 "ImportPage.c"
- }
-#line 1053 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (mount);
-#line 1053 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (uri);
-#line 1053 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 7702 "ImportPage.c"
- }
-#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR:
-#line 7706 "ImportPage.c"
- {
- gchar* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
-#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = import_page_get_refresh_message (self);
-#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = _tmp46_;
-#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = g_strdup_printf (_ ("Unable to fetch previews from the camera:\n%s"), _tmp47_);
-#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = _tmp48_;
-#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- app_window_error_message (_tmp49_, NULL);
-#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp49_);
-#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp47_);
-#line 1058 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 7728 "ImportPage.c"
- }
- default:
- {
- ImportPageRefreshResult _tmp50_;
-#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = res;
-#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_error ("ImportPage.vala:1061: Unknown result type %d", (gint) _tmp50_);
-#line 7737 "ImportPage.c"
- }
- }
-}
-
-
-static void
-_import_page_on_unmounted_g_mount_unmounted (GMount* _sender,
- gpointer self)
-{
-#line 1078 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_unmounted ((ImportPage*) self, _sender);
-#line 7749 "ImportPage.c"
-}
-
-
-static void
-_import_page_on_unmount_finished_gasync_ready_callback (GObject* source_object,
- GAsyncResult* res,
- gpointer self)
-{
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_unmount_finished ((ImportPage*) self, source_object, res);
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_unref (self);
-#line 7762 "ImportPage.c"
-}
-
-
-gboolean
-import_page_unmount_camera (ImportPage* self,
- GMount* mount)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- GtkProgressBar* _tmp1_;
- GtkProgressBar* _tmp2_;
- GtkProgressBar* _tmp3_;
- GtkProgressBar* _tmp4_;
- AppWindow* _tmp5_;
- AppWindow* _tmp6_;
- GtkMountOperation* _tmp7_;
- GtkMountOperation* _tmp8_;
-#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE);
-#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (G_IS_MOUNT (mount), FALSE);
-#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->busy;
-#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_) {
-#line 1067 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1067 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 7792 "ImportPage.c"
- }
-#line 1069 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, TRUE, FALSE);
-#line 1070 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->progress_bar;
-#line 1070 "/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 1071 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->progress_bar;
-#line 1071 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_fraction (_tmp2_, 0.0);
-#line 1072 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->progress_bar;
-#line 1072 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_ellipsize (_tmp3_, PANGO_ELLIPSIZE_NONE);
-#line 1073 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = self->priv->progress_bar;
-#line 1073 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_text (_tmp4_, _ ("Unmounting…"));
-#line 1078 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (mount, "unmounted", (GCallback) _import_page_on_unmounted_g_mount_unmounted, self, 0);
-#line 1080 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:1080: Unmounting camera…");
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = app_window_get_instance ();
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = _tmp5_;
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = (GtkMountOperation*) gtk_mount_operation_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow));
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = _tmp7_;
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_mount_unmount_with_operation (mount, G_MOUNT_UNMOUNT_NONE, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, g_mount_operation_get_type (), GMountOperation), NULL, _import_page_on_unmount_finished_gasync_ready_callback, g_object_ref (self));
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 1084 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 1084 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 7834 "ImportPage.c"
-}
-
-
-static void
-import_page_on_unmount_finished (ImportPage* self,
- GObject* source,
- GAsyncResult* aresult)
-{
- GMount* mount = NULL;
- GMount* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail ((source == NULL) || G_IS_OBJECT (source));
-#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (G_IS_ASYNC_RESULT (aresult));
-#line 1088 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:1088: Async unmount finished");
-#line 1090 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, g_mount_get_type (), GMount));
-#line 1090 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- mount = _tmp0_;
-#line 7858 "ImportPage.c"
- {
-#line 1092 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_mount_unmount_with_operation_finish (mount, aresult, &_inner_error_);
-#line 1092 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7864 "ImportPage.c"
- goto __catch75_g_error;
- }
- }
- goto __finally75;
- __catch75_g_error:
- {
- GError* err = NULL;
- guint _tmp1_;
- gboolean _tmp2_;
- GtkProgressBar* _tmp3_;
- GtkProgressBar* _tmp4_;
- GtkProgressBar* _tmp5_;
-#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 1094 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- app_window_error_message (IMPORT_PAGE_UNMOUNT_FAILED_MSG, NULL);
-#line 1097 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_parse_name ("unmounted", g_mount_get_type (), &_tmp1_, NULL, FALSE);
-#line 1097 "/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, _tmp1_, 0, NULL, (GCallback) _import_page_on_unmounted_g_mount_unmounted, self);
-#line 1099 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->refreshed;
-#line 1099 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, FALSE, _tmp2_);
-#line 1100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->progress_bar;
-#line 1100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_ellipsize (_tmp3_, PANGO_ELLIPSIZE_NONE);
-#line 1101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = self->priv->progress_bar;
-#line 1101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_text (_tmp4_, "");
-#line 1102 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = self->priv->progress_bar;
-#line 1102 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 7905 "ImportPage.c"
- }
- __finally75:
-#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (mount);
-#line 1091 "/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 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 7918 "ImportPage.c"
- }
-#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (mount);
-#line 7922 "ImportPage.c"
-}
-
-
-static void
-import_page_on_unmounted (ImportPage* self,
- GMount* mount)
-{
- gboolean _tmp0_;
- GtkProgressBar* _tmp1_;
- GtkProgressBar* _tmp2_;
- GtkProgressBar* _tmp3_;
-#line 1106 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1106 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (G_IS_MOUNT (mount));
-#line 1107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:1107: on_unmounted");
-#line 1109 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->refreshed;
-#line 1109 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, FALSE, _tmp0_);
-#line 1110 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->progress_bar;
-#line 1110 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_ellipsize (_tmp1_, PANGO_ELLIPSIZE_NONE);
-#line 1111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->progress_bar;
-#line 1111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_text (_tmp2_, "");
-#line 1112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->progress_bar;
-#line 1112 "/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 1114 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_try_refreshing_camera (self, TRUE);
-#line 7958 "ImportPage.c"
-}
-
-
-static void
-import_page_clear_all_import_sources (ImportPage* self)
-{
- Marker* marker = NULL;
- SourceCollection* _tmp0_;
- Marker* _tmp1_;
- SourceCollection* _tmp2_;
-#line 1117 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->import_sources;
-#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- marker = _tmp1_;
-#line 1119 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- marker_mark_all (marker);
-#line 1120 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->import_sources;
-#line 1120 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- source_collection_destroy_marked (_tmp2_, marker, FALSE, NULL, NULL, NULL);
-#line 1117 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (marker);
-#line 7985 "ImportPage.c"
-}
-
-
-/**
- * @brief Returns whether the current device has a given directory or not.
- *
- * @param fsid The file system id of the camera or other device to search.
- * @param dir The path to start searching from.
- * @param search_target The name of the directory to look for.
- */
-static gboolean
-import_page_check_directory_exists (ImportPage* self,
- gint fsid,
- const gchar* dir,
- const gchar* search_target)
-{
- gboolean result = FALSE;
- gchar* fulldir = NULL;
- Camera* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- int _result_ = 0;
- CameraList* folders = NULL;
- CameraList* _tmp3_ = NULL;
- int _tmp4_;
- int _tmp5_;
- Camera* _tmp6_;
- const gchar* _tmp7_;
- CameraList* _tmp8_;
- GPSpinIdleWrapper* _tmp9_;
- GPContext* _tmp10_;
- int _tmp11_;
- gint list_len = 0;
- CameraList* _tmp12_;
-#line 1130 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE);
-#line 1130 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (dir != NULL, FALSE);
-#line 1130 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (search_target != NULL, FALSE);
-#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->camera;
-#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->camera_name;
-#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = import_page_get_fulldir (_tmp0_, _tmp1_, fsid, dir);
-#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- fulldir = _tmp2_;
-#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = gp_list_new (&_tmp3_);
-#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- folders = _tmp3_;
-#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _result_ = _tmp4_;
-#line 1136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _result_;
-#line 1136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp5_ != GP_OK) {
-#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8054 "ImportPage.c"
- }
-#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = self->priv->camera;
-#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = fulldir;
-#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = folders;
-#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = import_page_spin_idle_context;
-#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _result_ = gp_camera_folder_list_folders (_tmp6_, _tmp7_, _tmp8_, _tmp10_);
-#line 1142 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = _result_;
-#line 1142 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp11_ != GP_OK) {
-#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8080 "ImportPage.c"
- }
-#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = folders;
-#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- list_len = gp_list_count (_tmp12_);
-#line 8086 "ImportPage.c"
- {
- gint list_index = 0;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- list_index = 0;
-#line 8091 "ImportPage.c"
- {
- gboolean _tmp13_ = FALSE;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = TRUE;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 8098 "ImportPage.c"
- gint _tmp15_;
- gint _tmp16_;
- gchar* tmp = NULL;
- CameraList* _tmp17_;
- gint _tmp18_;
- const gchar* _tmp19_ = NULL;
- gchar* _tmp20_;
- const gchar* _tmp21_;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp13_) {
-#line 8109 "ImportPage.c"
- gint _tmp14_;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = list_index;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- list_index = _tmp14_ + 1;
-#line 8115 "ImportPage.c"
- }
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = FALSE;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = list_index;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = list_len;
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!(_tmp15_ < _tmp16_)) {
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 8127 "ImportPage.c"
- }
-#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = folders;
-#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = list_index;
-#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gp_list_get_name (_tmp17_, _tmp18_, &_tmp19_);
-#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (tmp);
-#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = g_strdup (_tmp19_);
-#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- tmp = _tmp20_;
-#line 1153 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = tmp;
-#line 1153 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (g_strcmp0 (_tmp21_, search_target) == 0) {
-#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (tmp);
-#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8155 "ImportPage.c"
- }
-#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (tmp);
-#line 8159 "ImportPage.c"
- }
- }
- }
-#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8171 "ImportPage.c"
-}
-
-
-static gboolean
-____lambda18_ (ImportPage* self)
-{
- gboolean result = FALSE;
-#line 1180 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_refresh_camera (self);
-#line 1181 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1181 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8185 "ImportPage.c"
-}
-
-
-static gboolean
-_____lambda18__gsource_func (gpointer self)
-{
- gboolean result;
- result = ____lambda18_ ((ImportPage*) self);
-#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8196 "ImportPage.c"
-}
-
-
-static ImportPageRefreshResult
-import_page_refresh_camera (ImportPage* self)
-{
- ImportPageRefreshResult result = 0;
- gboolean _tmp0_;
- gboolean _tmp1_;
- Camera* _tmp2_;
- GPSpinIdleWrapper* _tmp3_;
- GPContext* _tmp4_;
- int _tmp5_;
- int _tmp9_;
- gboolean _tmp15_;
- GtkProgressBar* _tmp16_;
- GtkProgressBar* _tmp17_;
- GtkProgressBar* _tmp18_;
- GtkProgressBar* _tmp19_;
- GtkProgressBar* _tmp20_;
- GeeArrayList* import_list = NULL;
- GeeArrayList* _tmp21_;
- CameraStorageInformation* sifs = NULL;
- gint count = 0;
- Camera* _tmp22_;
- GPSpinIdleWrapper* _tmp23_;
- GPContext* _tmp24_;
- gint _tmp25_ = 0;
- int _tmp26_;
- int _tmp27_;
- GeeArrayList* _tmp65_;
- GeeArrayList* _tmp66_;
- GtkProgressBar* _tmp67_;
- GtkProgressBar* _tmp68_;
- GtkProgressBar* _tmp69_;
- GtkProgressBar* _tmp70_;
- int res = 0;
- Camera* _tmp71_;
- GPSpinIdleWrapper* _tmp72_;
- GPContext* _tmp73_;
- int _tmp74_;
- int _tmp78_;
- int _tmp82_;
-#line 1162 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), 0);
-#line 1163 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->busy;
-#line 1163 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_) {
-#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = IMPORT_PAGE_REFRESH_RESULT_BUSY;
-#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8250 "ImportPage.c"
- }
-#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _ ("Connecting to camera, please wait…"));
-#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->busy;
-#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, _tmp1_, FALSE);
-#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->refresh_error);
-#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_error = NULL;
-#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->camera;
-#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = import_page_spin_idle_context;
-#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = gp_camera_init (_tmp2_, _tmp4_);
-#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = self->priv->refresh_result;
-#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp5_ == GP_ERROR_IO_USB_CLAIM) {
-#line 8274 "ImportPage.c"
- gint _tmp6_;
-#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = self->priv->claim_timeout;
-#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp6_ < 4000) {
-#line 8280 "ImportPage.c"
- gint _tmp7_;
- gint _tmp8_;
-#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->claim_timeout;
-#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) _tmp7_, _____lambda18__gsource_func, g_object_ref (self), g_object_unref);
-#line 1183 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = self->priv->claim_timeout;
-#line 1183 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->claim_timeout = _tmp8_ * 2;
-#line 1185 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = IMPORT_PAGE_REFRESH_RESULT_LOCKED;
-#line 1185 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8295 "ImportPage.c"
- }
- }
-#line 1190 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->claim_timeout = 500;
-#line 1192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = self->priv->refresh_result;
-#line 1192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp9_ != GP_OK) {
-#line 8304 "ImportPage.c"
- int _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- ImportPageRefreshResult _tmp13_ = 0;
- int _tmp14_;
-#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = self->priv->refresh_result;
-#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = gp_result_to_full_string (_tmp10_);
-#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = _tmp11_;
-#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1193: Unable to initialize camera: %s", _tmp12_);
-#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp12_);
-#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = self->priv->refresh_result;
-#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp14_ == GP_ERROR_IO_LOCK) {
-#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = IMPORT_PAGE_REFRESH_RESULT_LOCKED;
-#line 8326 "ImportPage.c"
- } else {
-#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR;
-#line 8330 "ImportPage.c"
- }
-#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp13_;
-#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8336 "ImportPage.c"
- }
-#line 1198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _ ("Starting import, please wait…"));
-#line 1199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = self->priv->refreshed;
-#line 1199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, TRUE, _tmp15_);
-#line 1201 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed (self);
-#line 1203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = self->priv->progress_bar;
-#line 1203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_ellipsize (_tmp16_, PANGO_ELLIPSIZE_NONE);
-#line 1204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = self->priv->progress_bar;
-#line 1204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_text (_tmp17_, _ ("Fetching photo information"));
-#line 1205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = self->priv->progress_bar;
-#line 1205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_fraction (_tmp18_, 0.0);
-#line 1206 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = self->priv->progress_bar;
-#line 1206 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_pulse_step (_tmp19_, 0.01);
-#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = self->priv->progress_bar;
-#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 1209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = gee_array_list_new (TYPE_IMPORT_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_list = _tmp21_;
-#line 1211 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- sifs = NULL;
-#line 1212 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- count = 0;
-#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = self->priv->camera;
-#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = import_page_spin_idle_context;
-#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = gp_camera_get_storageinfo (_tmp22_, &sifs, &_tmp25_, _tmp24_);
-#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- count = _tmp25_;
-#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = _tmp26_;
-#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = self->priv->refresh_result;
-#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp27_ == GP_OK) {
-#line 8390 "ImportPage.c"
- {
- gint fsid = 0;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- fsid = 0;
-#line 8395 "ImportPage.c"
- {
- gboolean _tmp28_ = FALSE;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = TRUE;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 8402 "ImportPage.c"
- gint _tmp30_;
- gint _tmp31_;
- gboolean got_well_known_dir = FALSE;
- gint _tmp32_;
- gint _tmp35_;
- gint _tmp38_;
- gint _tmp41_;
- gint _tmp44_;
- gint _tmp47_;
- gint _tmp50_;
- gint _tmp53_;
- gint _tmp56_;
- gint _tmp59_;
- gboolean _tmp62_;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp28_) {
-#line 8419 "ImportPage.c"
- gint _tmp29_;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = fsid;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- fsid = _tmp29_ + 1;
-#line 8425 "ImportPage.c"
- }
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = FALSE;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = fsid;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = count;
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!(_tmp30_ < _tmp31_)) {
-#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 8437 "ImportPage.c"
- }
-#line 1219 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = FALSE;
-#line 1222 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = fsid;
-#line 1222 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp32_, "/", "DCIM")) {
-#line 8445 "ImportPage.c"
- gint _tmp33_;
- GeeArrayList* _tmp34_;
-#line 1223 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = fsid;
-#line 1223 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = import_list;
-#line 1223 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp33_, "/DCIM", _tmp34_);
-#line 1224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8456 "ImportPage.c"
- }
-#line 1226 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = fsid;
-#line 1226 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp35_, "/", "dcim")) {
-#line 8462 "ImportPage.c"
- gint _tmp36_;
- GeeArrayList* _tmp37_;
-#line 1227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = fsid;
-#line 1227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = import_list;
-#line 1227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp36_, "/dcim", _tmp37_);
-#line 1228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8473 "ImportPage.c"
- }
-#line 1233 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = fsid;
-#line 1233 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp38_, "/PRIVATE/", "AVCHD")) {
-#line 8479 "ImportPage.c"
- gint _tmp39_;
- GeeArrayList* _tmp40_;
-#line 1234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = fsid;
-#line 1234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = import_list;
-#line 1234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp39_, "/PRIVATE/AVCHD", _tmp40_);
-#line 1235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8490 "ImportPage.c"
- }
-#line 1237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = fsid;
-#line 1237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp41_, "/private/", "avchd")) {
-#line 8496 "ImportPage.c"
- gint _tmp42_;
- GeeArrayList* _tmp43_;
-#line 1238 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = fsid;
-#line 1238 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = import_list;
-#line 1238 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp42_, "/private/avchd", _tmp43_);
-#line 1239 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8507 "ImportPage.c"
- }
-#line 1241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = fsid;
-#line 1241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp44_, "/", "AVCHD")) {
-#line 8513 "ImportPage.c"
- gint _tmp45_;
- GeeArrayList* _tmp46_;
-#line 1242 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = fsid;
-#line 1242 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = import_list;
-#line 1242 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp45_, "/AVCHD", _tmp46_);
-#line 1243 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8524 "ImportPage.c"
- }
-#line 1245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = fsid;
-#line 1245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp47_, "/", "avchd")) {
-#line 8530 "ImportPage.c"
- gint _tmp48_;
- GeeArrayList* _tmp49_;
-#line 1246 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = fsid;
-#line 1246 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = import_list;
-#line 1246 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp48_, "/avchd", _tmp49_);
-#line 1247 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8541 "ImportPage.c"
- }
-#line 1252 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = fsid;
-#line 1252 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp50_, "/PRIVATE/", "SONY")) {
-#line 8547 "ImportPage.c"
- gint _tmp51_;
- GeeArrayList* _tmp52_;
-#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp51_ = fsid;
-#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp52_ = import_list;
-#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp51_, "/PRIVATE/SONY", _tmp52_);
-#line 1254 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8558 "ImportPage.c"
- }
-#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = fsid;
-#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp53_, "/private/", "sony")) {
-#line 8564 "ImportPage.c"
- gint _tmp54_;
- GeeArrayList* _tmp55_;
-#line 1257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = fsid;
-#line 1257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = import_list;
-#line 1257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp54_, "/private/sony", _tmp55_);
-#line 1258 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8575 "ImportPage.c"
- }
-#line 1262 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp56_ = fsid;
-#line 1262 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp56_, "/", "MP_ROOT")) {
-#line 8581 "ImportPage.c"
- gint _tmp57_;
- GeeArrayList* _tmp58_;
-#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = fsid;
-#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp58_ = import_list;
-#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp57_, "/MP_ROOT", _tmp58_);
-#line 1264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8592 "ImportPage.c"
- }
-#line 1266 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp59_ = fsid;
-#line 1266 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_page_check_directory_exists (self, _tmp59_, "/", "mp_root")) {
-#line 8598 "ImportPage.c"
- gint _tmp60_;
- GeeArrayList* _tmp61_;
-#line 1267 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp60_ = fsid;
-#line 1267 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp61_ = import_list;
-#line 1267 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_enumerate_files (self, _tmp60_, "/mp_root", _tmp61_);
-#line 1268 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- got_well_known_dir = TRUE;
-#line 8609 "ImportPage.c"
- }
-#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp62_ = got_well_known_dir;
-#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp62_) {
-#line 8615 "ImportPage.c"
- gint _tmp63_;
- GeeArrayList* _tmp64_;
-#line 1274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp63_ = fsid;
-#line 1274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp64_ = import_list;
-#line 1274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!import_page_enumerate_files (self, _tmp63_, "/", _tmp64_)) {
-#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 8626 "ImportPage.c"
- }
- }
- }
- }
- }
- }
-#line 1280 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_clear_all_import_sources (self);
-#line 1283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp65_ = import_list;
-#line 1283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_auto_match_raw_jpeg (self, _tmp65_);
-#line 1290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp66_ = import_list;
-#line 1290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_load_previews_and_metadata (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, GEE_TYPE_LIST, GeeList));
-#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp67_ = self->priv->progress_bar;
-#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp68_ = self->priv->progress_bar;
-#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_ellipsize (_tmp68_, PANGO_ELLIPSIZE_NONE);
-#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp69_ = self->priv->progress_bar;
-#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_text (_tmp69_, "");
-#line 1300 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp70_ = self->priv->progress_bar;
-#line 1300 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_fraction (_tmp70_, 0.0);
-#line 1302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp71_ = self->priv->camera;
-#line 1302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp72_ = import_page_spin_idle_context;
-#line 1302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp73_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- res = gp_camera_exit (_tmp71_, _tmp73_);
-#line 1303 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp74_ = res;
-#line 1303 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp74_ != GP_OK) {
-#line 8671 "ImportPage.c"
- int _tmp75_;
- gchar* _tmp76_;
- gchar* _tmp77_;
-#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp75_ = res;
-#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp76_ = gp_result_to_full_string (_tmp75_);
-#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp77_ = _tmp76_;
-#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1305: Unable to unlock camera: %s", _tmp77_);
-#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp77_);
-#line 8685 "ImportPage.c"
- }
-#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp78_ = self->priv->refresh_result;
-#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp78_ == GP_OK) {
-#line 8691 "ImportPage.c"
- SourceCollection* _tmp79_;
-#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp79_ = self->priv->import_sources;
-#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_DATA_COLLECTION, DataCollection)) == 0) {
-#line 8697 "ImportPage.c"
- gchar* _tmp80_;
- gchar* _tmp81_;
-#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp80_ = checkerboard_page_get_view_empty_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage));
-#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp81_ = _tmp80_;
-#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp81_);
-#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp81_);
-#line 8708 "ImportPage.c"
- }
-#line 1312 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, FALSE, TRUE);
-#line 8712 "ImportPage.c"
- } else {
-#line 1314 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, FALSE, FALSE);
-#line 1317 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_clear_all_import_sources (self);
-#line 8718 "ImportPage.c"
- }
-#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed (self);
-#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp82_ = self->priv->refresh_result;
-#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- switch (_tmp82_) {
-#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case GP_OK:
-#line 8728 "ImportPage.c"
- {
-#line 1324 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = IMPORT_PAGE_REFRESH_RESULT_OK;
-#line 1324 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_list);
-#line 1324 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8736 "ImportPage.c"
- }
-#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- case GP_ERROR_IO_LOCK:
-#line 8740 "ImportPage.c"
- {
-#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = IMPORT_PAGE_REFRESH_RESULT_LOCKED;
-#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_list);
-#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8748 "ImportPage.c"
- }
- default:
- {
-#line 1330 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR;
-#line 1330 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_list);
-#line 1330 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8758 "ImportPage.c"
- }
- }
-#line 1162 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_list);
-#line 8763 "ImportPage.c"
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 8781 "ImportPage.c"
-}
-
-
-static gchar*
-string_slice (const gchar* self,
- glong start,
- glong end)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gint _tmp0_;
- gint _tmp1_;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp6_ = FALSE;
- gchar* _tmp8_;
-#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strlen (self);
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _tmp0_;
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp1_;
-#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (start < ((glong) 0)) {
-#line 8807 "ImportPage.c"
- glong _tmp2_;
-#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = string_length;
-#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- start = _tmp2_ + start;
-#line 8813 "ImportPage.c"
- }
-#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (end < ((glong) 0)) {
-#line 8817 "ImportPage.c"
- glong _tmp3_;
-#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp3_ + end;
-#line 8823 "ImportPage.c"
- }
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (start >= ((glong) 0)) {
-#line 8827 "ImportPage.c"
- glong _tmp5_;
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = start <= _tmp5_;
-#line 8833 "ImportPage.c"
- } else {
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = FALSE;
-#line 8837 "ImportPage.c"
- }
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp4_, NULL);
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (end >= ((glong) 0)) {
-#line 8843 "ImportPage.c"
- glong _tmp7_;
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = string_length;
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = end <= _tmp7_;
-#line 8849 "ImportPage.c"
- } else {
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = FALSE;
-#line 8853 "ImportPage.c"
- }
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp6_, NULL);
-#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (start <= end, NULL);
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start));
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp8_;
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 8865 "ImportPage.c"
-}
-
-
-static gchar*
-import_page_chomp_ch (const gchar* str,
- gchar ch)
-{
- gchar* result = NULL;
- glong offset = 0L;
- gint _tmp0_;
- gint _tmp1_;
- gchar* _tmp7_;
-#line 1334 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (str != NULL, NULL);
-#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = strlen (str);
-#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- offset = (glong) _tmp1_;
-#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 8888 "ImportPage.c"
- glong _tmp2_;
- glong _tmp3_;
- glong _tmp4_;
-#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = offset;
-#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- offset = _tmp2_ - 1;
-#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = offset;
-#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!(_tmp3_ >= ((glong) 0))) {
-#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 8902 "ImportPage.c"
- }
-#line 1337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = offset;
-#line 1337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (string_get (str, _tmp4_) != ch) {
-#line 8908 "ImportPage.c"
- glong _tmp5_;
- gchar* _tmp6_;
-#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = offset;
-#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = string_slice (str, (glong) 0, _tmp5_);
-#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp6_;
-#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8919 "ImportPage.c"
- }
- }
-#line 1341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = g_strdup ("");
-#line 1341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp7_;
-#line 1341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8928 "ImportPage.c"
-}
-
-
-gchar*
-import_page_append_path (const gchar* basepath,
- const gchar* addition)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
-#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (basepath != NULL, NULL);
-#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (addition != NULL, NULL);
-#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!g_str_has_suffix (basepath, "/")) {
-#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = !g_str_has_prefix (addition, "/");
-#line 8946 "ImportPage.c"
- } else {
-#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = FALSE;
-#line 8950 "ImportPage.c"
- }
-#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_) {
-#line 8954 "ImportPage.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strconcat (basepath, "/", NULL);
-#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp1_;
-#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = g_strconcat (_tmp2_, addition, NULL);
-#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _tmp3_;
-#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp2_);
-#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp4_;
-#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 8973 "ImportPage.c"
- } else {
- gboolean _tmp5_ = FALSE;
-#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (g_str_has_suffix (basepath, "/")) {
-#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = g_str_has_prefix (addition, "/");
-#line 8980 "ImportPage.c"
- } else {
-#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = FALSE;
-#line 8984 "ImportPage.c"
- }
-#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp5_) {
-#line 8988 "ImportPage.c"
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = import_page_chomp_ch (basepath, '/');
-#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp6_;
-#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = g_strconcat (_tmp7_, addition, NULL);
-#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = _tmp8_;
-#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp7_);
-#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp9_;
-#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9007 "ImportPage.c"
- } else {
- gchar* _tmp10_;
-#line 1350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = g_strconcat (basepath, addition, NULL);
-#line 1350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp10_;
-#line 1350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9016 "ImportPage.c"
- }
- }
-}
-
-
-gchar*
-import_page_get_fs_basedir (Camera* camera,
- gint fsid)
-{
- gchar* result = NULL;
- CameraStorageInformation* sifs = NULL;
- gint count = 0;
- int res = 0;
- GPContextWrapper* _tmp0_;
- GPContext* _tmp1_;
- gint _tmp2_ = 0;
- int _tmp3_;
- int _tmp4_;
- gint _tmp5_;
- CameraStorageInformation* ifs = NULL;
- CameraStorageInformation* _tmp6_;
- const gchar* _tmp7_ = NULL;
- CameraStorageInformation* _tmp8_;
- CameraStorageInfoFields _tmp9_;
- gchar* _tmp12_;
-#line 1355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 1356 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- sifs = NULL;
-#line 1357 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- count = 0;
-#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_page_null_context;
-#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_->context;
-#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = gp_camera_get_storageinfo (camera, &sifs, &_tmp2_, _tmp1_);
-#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- count = _tmp2_;
-#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- res = _tmp3_;
-#line 1359 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = res;
-#line 1359 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp4_ != GP_OK) {
-#line 1360 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = NULL;
-#line 1360 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9066 "ImportPage.c"
- }
-#line 1362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = count;
-#line 1362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (fsid >= _tmp5_) {
-#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = NULL;
-#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9076 "ImportPage.c"
- }
-#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = sifs;
-#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ifs = _tmp6_ + fsid;
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = ifs;
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = (*_tmp8_).fields;
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if ((_tmp9_ & GP_STORAGEINFO_BASE) != 0) {
-#line 9088 "ImportPage.c"
- CameraStorageInformation* _tmp10_;
- const gchar* _tmp11_;
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = ifs;
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = (*_tmp10_).basedir;
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp11_;
-#line 9097 "ImportPage.c"
- } else {
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = "/";
-#line 9101 "ImportPage.c"
- }
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = g_strdup (_tmp7_);
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp12_;
-#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9109 "ImportPage.c"
-}
-
-
-gchar*
-import_page_get_fulldir (Camera* camera,
- const gchar* camera_name,
- gint fsid,
- const gchar* folder)
-{
- gchar* result = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gchar* basedir = NULL;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera != NULL, NULL);
-#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (camera_name != NULL, NULL);
-#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (folder != NULL, NULL);
-#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = strlen (folder);
-#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp1_ > GP_MAX_BASEDIR_LENGTH) {
-#line 1372 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = NULL;
-#line 1372 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9143 "ImportPage.c"
- }
-#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = import_page_get_fs_basedir (camera, fsid);
-#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- basedir = _tmp2_;
-#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = basedir;
-#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp3_ == NULL) {
-#line 9153 "ImportPage.c"
- gchar* _tmp4_;
-#line 1376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:1376: Unable to find base directory for %s fsid %d", camera_name, fsid);
-#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = g_strdup (folder);
-#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp4_;
-#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (basedir);
-#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9165 "ImportPage.c"
- }
-#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = basedir;
-#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = import_page_append_path (_tmp5_, folder);
-#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp6_;
-#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (basedir);
-#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9177 "ImportPage.c"
-}
-
-
-static gboolean
-import_page_enumerate_files (ImportPage* self,
- gint fsid,
- const gchar* dir,
- GeeArrayList* import_list)
-{
- gboolean result = FALSE;
- gchar* fulldir = NULL;
- Camera* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- CameraList* files = NULL;
- CameraList* _tmp4_ = NULL;
- int _tmp5_;
- int _tmp6_;
- Camera* _tmp10_;
- const gchar* _tmp11_;
- CameraList* _tmp12_;
- GPSpinIdleWrapper* _tmp13_;
- GPContext* _tmp14_;
- int _tmp15_;
- CameraList* _tmp20_;
- CameraList* folders = NULL;
- CameraList* _tmp97_ = NULL;
- int _tmp98_;
- int _tmp99_;
- Camera* _tmp103_;
- const gchar* _tmp104_;
- CameraList* _tmp105_;
- GPSpinIdleWrapper* _tmp106_;
- GPContext* _tmp107_;
- int _tmp108_;
- GError * _inner_error_ = NULL;
-#line 1384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE);
-#line 1384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (dir != NULL, FALSE);
-#line 1384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (GEE_IS_ARRAY_LIST (import_list), FALSE);
-#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->camera;
-#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->camera_name;
-#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = import_page_get_fulldir (_tmp0_, _tmp1_, fsid, dir);
-#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- fulldir = _tmp2_;
-#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = fulldir;
-#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp3_ == NULL) {
-#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1387: Skipping enumerating %s: invalid folder name", dir);
-#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9241 "ImportPage.c"
- }
-#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = gp_list_new (&_tmp4_);
-#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- files = _tmp4_;
-#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = _tmp5_;
-#line 1394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = self->priv->refresh_result;
-#line 1394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp6_ != GP_OK) {
-#line 9255 "ImportPage.c"
- int _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->refresh_result;
-#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = gp_result_to_full_string (_tmp7_);
-#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = _tmp8_;
-#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1395: Unable to create file list: %s", _tmp9_);
-#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp9_);
-#line 1397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9277 "ImportPage.c"
- }
-#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = self->priv->camera;
-#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = fulldir;
-#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = files;
-#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = import_page_spin_idle_context;
-#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = gp_camera_folder_list_files (_tmp10_, _tmp11_, _tmp12_, _tmp14_);
-#line 1401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = self->priv->refresh_result;
-#line 1401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp15_ != GP_OK) {
-#line 9295 "ImportPage.c"
- const gchar* _tmp16_;
- int _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
-#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = fulldir;
-#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = self->priv->refresh_result;
-#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = gp_result_to_full_string (_tmp17_);
-#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = _tmp18_;
-#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1402: Unable to list files in %s: %s", _tmp16_, _tmp19_);
-#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp19_);
-#line 1405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = GP_OK;
-#line 1407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 1407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9322 "ImportPage.c"
- }
-#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = files;
-#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gp_list_sort (_tmp20_);
-#line 9328 "ImportPage.c"
- {
- gint ctr = 0;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ctr = 0;
-#line 9333 "ImportPage.c"
- {
- gboolean _tmp21_ = FALSE;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = TRUE;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 9340 "ImportPage.c"
- gint _tmp23_;
- CameraList* _tmp24_;
- gchar* filename = NULL;
- CameraList* _tmp25_;
- gint _tmp26_;
- const gchar* _tmp27_ = NULL;
- int _tmp28_;
- gchar* _tmp29_;
- int _tmp30_;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp21_) {
-#line 9352 "ImportPage.c"
- gint _tmp22_;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = ctr;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ctr = _tmp22_ + 1;
-#line 9358 "ImportPage.c"
- }
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = FALSE;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = ctr;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = files;
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!(_tmp23_ < gp_list_count (_tmp24_))) {
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 9370 "ImportPage.c"
- }
-#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = files;
-#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = ctr;
-#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = gp_list_get_name (_tmp25_, _tmp26_, &_tmp27_);
-#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = g_strdup (_tmp27_);
-#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- filename = _tmp29_;
-#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = _tmp28_;
-#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = self->priv->refresh_result;
-#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp30_ != GP_OK) {
-#line 9390 "ImportPage.c"
- gint _tmp31_;
- const gchar* _tmp32_;
- int _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
-#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = ctr;
-#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = fulldir;
-#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = self->priv->refresh_result;
-#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = gp_result_to_full_string (_tmp33_);
-#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = _tmp34_;
-#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1415: Unable to get the name of file %d in %s: %s", _tmp31_, _tmp32_, _tmp35_);
-#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp35_);
-#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9420 "ImportPage.c"
- }
- {
- CameraFileInfo info = {0};
- gboolean _tmp36_ = FALSE;
- GPSpinIdleWrapper* _tmp37_;
- GPContext* _tmp38_;
- Camera* _tmp39_;
- const gchar* _tmp40_;
- const gchar* _tmp41_;
- CameraFileInfo _tmp42_ = {0};
- gboolean _tmp43_;
- CameraFileInfo _tmp46_;
- CameraFileInfoFile _tmp47_;
- CameraFileInfoFields _tmp48_;
- const gchar* _tmp54_;
- GtkProgressBar* _tmp89_;
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = import_page_spin_idle_context;
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = self->priv->camera;
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = fulldir;
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = filename;
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = gp_get_info (_tmp38_, _tmp39_, _tmp40_, _tmp41_, &_tmp42_, &_inner_error_);
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- (info);
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- info = _tmp42_;
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = _tmp43_;
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- (info);
-#line 9459 "ImportPage.c"
- goto __catch76_g_error;
- }
-#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp36_) {
-#line 9464 "ImportPage.c"
- const gchar* _tmp44_;
- const gchar* _tmp45_;
-#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = fulldir;
-#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = filename;
-#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1424: Skipping import of %s/%s: name too long", _tmp44_, _tmp45_);
-#line 1426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- (info);
-#line 1426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- continue;
-#line 9479 "ImportPage.c"
- }
-#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = info;
-#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = _tmp46_.file;
-#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = _tmp47_.fields;
-#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if ((_tmp48_ & GP_FILE_INFO_TYPE) == 0) {
-#line 9489 "ImportPage.c"
- const gchar* _tmp49_;
- const gchar* _tmp50_;
- CameraFileInfo _tmp51_;
- CameraFileInfoFile _tmp52_;
- CameraFileInfoFields _tmp53_;
-#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = fulldir;
-#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = filename;
-#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp51_ = info;
-#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp52_ = _tmp51_.file;
-#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = _tmp52_.fields;
-#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_message ("ImportPage.vala:1430: Skipping %s/%s: No file (file=%02Xh)", _tmp49_, _tmp50_, (guint) _tmp53_);
-#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- (info);
-#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- continue;
-#line 9513 "ImportPage.c"
- }
-#line 1436 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = filename;
-#line 1436 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (video_reader_is_supported_video_filename (_tmp54_)) {
-#line 9519 "ImportPage.c"
- VideoImportSource* video_source = NULL;
- const gchar* _tmp55_;
- Camera* _tmp56_;
- const gchar* _tmp57_;
- CameraFileInfo _tmp58_;
- CameraFileInfoFile _tmp59_;
- gulong _tmp60_;
- CameraFileInfo _tmp61_;
- CameraFileInfoFile _tmp62_;
- time_t _tmp63_;
- VideoImportSource* _tmp64_;
- VideoImportSource* _tmp65_;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = self->priv->camera_name;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp56_ = self->priv->camera;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = filename;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp58_ = info;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp59_ = _tmp58_.file;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp60_ = _tmp59_.size;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp61_ = info;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp62_ = _tmp61_.file;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp63_ = _tmp62_.mtime;
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp64_ = video_import_source_new (_tmp55_, _tmp56_, fsid, dir, _tmp57_, _tmp60_, _tmp63_);
-#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- video_source = _tmp64_;
-#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp65_ = video_source;
-#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1436 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (video_source);
-#line 9560 "ImportPage.c"
- } else {
- PhotoFileFormat file_format = 0;
- CameraFileInfo _tmp66_;
- CameraFileInfoFile _tmp67_;
- const gchar* _tmp68_;
- PhotoFileFormat _tmp69_;
- const gchar* _tmp77_;
- Camera* _tmp78_;
- const gchar* _tmp79_;
- CameraFileInfo _tmp80_;
- CameraFileInfoFile _tmp81_;
- gulong _tmp82_;
- CameraFileInfo _tmp83_;
- CameraFileInfoFile _tmp84_;
- time_t _tmp85_;
- PhotoFileFormat _tmp86_;
- PhotoImportSource* _tmp87_;
- PhotoImportSource* _tmp88_;
-#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp66_ = info;
-#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp67_ = _tmp66_.file;
-#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp68_ = _tmp67_.type;
-#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- file_format = photo_file_format_from_gphoto_type (_tmp68_);
-#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp69_ = file_format;
-#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp69_ == PHOTO_FILE_FORMAT_UNKNOWN) {
-#line 9591 "ImportPage.c"
- const gchar* _tmp70_;
- PhotoFileFormat _tmp71_;
-#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp70_ = filename;
-#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- file_format = photo_file_format_get_by_basename_extension (_tmp70_);
-#line 1445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp71_ = file_format;
-#line 1445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp71_ == PHOTO_FILE_FORMAT_UNKNOWN) {
-#line 9602 "ImportPage.c"
- const gchar* _tmp72_;
- const gchar* _tmp73_;
- CameraFileInfo _tmp74_;
- CameraFileInfoFile _tmp75_;
- const gchar* _tmp76_;
-#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp72_ = fulldir;
-#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp73_ = filename;
-#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp74_ = info;
-#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp75_ = _tmp74_.file;
-#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp76_ = _tmp75_.type;
-#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_message ("ImportPage.vala:1446: Skipping %s/%s: Not a supported file extension (" \
-"%s)", _tmp72_, _tmp73_, _tmp76_);
-#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- (info);
-#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- continue;
-#line 9626 "ImportPage.c"
- }
- }
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp77_ = self->priv->camera_name;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp78_ = self->priv->camera;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp79_ = filename;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp80_ = info;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp81_ = _tmp80_.file;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp82_ = _tmp81_.size;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp83_ = info;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp84_ = _tmp83_.file;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp85_ = _tmp84_.mtime;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp86_ = file_format;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp87_ = photo_import_source_new (_tmp77_, _tmp78_, fsid, dir, _tmp79_, _tmp82_, _tmp85_, _tmp86_);
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp88_ = _tmp87_;
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp88_);
-#line 9657 "ImportPage.c"
- }
-#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp89_ = self->priv->progress_bar;
-#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_pulse (_tmp89_);
-#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- spin_event_loop ();
-#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- (info);
-#line 9667 "ImportPage.c"
- }
- goto __finally76;
- __catch76_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp90_;
- GError* _tmp91_;
- const gchar* _tmp92_;
- GError* _tmp93_;
- const gchar* _tmp94_;
- gchar* _tmp95_;
-#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp90_ = fulldir;
-#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp91_ = err;
-#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp92_ = _tmp91_->message;
-#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1461: Error while enumerating files in %s: %s", _tmp90_, _tmp92_);
-#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp93_ = err;
-#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp94_ = _tmp93_->message;
-#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp95_ = g_strdup (_tmp94_);
-#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->refresh_error);
-#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_error = _tmp95_;
-#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9713 "ImportPage.c"
- }
- __finally76:
-#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9718 "ImportPage.c"
- gboolean _tmp96_ = FALSE;
-#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1421 "/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 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp96_;
-#line 9732 "ImportPage.c"
- }
-#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 9736 "ImportPage.c"
- }
- }
- }
-#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp98_ = gp_list_new (&_tmp97_);
-#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- folders = _tmp97_;
-#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = _tmp98_;
-#line 1471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp99_ = self->priv->refresh_result;
-#line 1471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp99_ != GP_OK) {
-#line 9752 "ImportPage.c"
- int _tmp100_;
- gchar* _tmp101_;
- gchar* _tmp102_;
-#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp100_ = self->priv->refresh_result;
-#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp101_ = gp_result_to_full_string (_tmp100_);
-#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp102_ = _tmp101_;
-#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1472: Unable to create folder list: %s", _tmp102_);
-#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp102_);
-#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9776 "ImportPage.c"
- }
-#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp103_ = self->priv->camera;
-#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp104_ = fulldir;
-#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp105_ = folders;
-#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp106_ = import_page_spin_idle_context;
-#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp107_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = gp_camera_folder_list_folders (_tmp103_, _tmp104_, _tmp105_, _tmp107_);
-#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp108_ = self->priv->refresh_result;
-#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp108_ != GP_OK) {
-#line 9794 "ImportPage.c"
- const gchar* _tmp109_;
- int _tmp110_;
- gchar* _tmp111_;
- gchar* _tmp112_;
-#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp109_ = fulldir;
-#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp110_ = self->priv->refresh_result;
-#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp111_ = gp_result_to_full_string (_tmp110_);
-#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp112_ = _tmp111_;
-#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1479: Unable to list folders in %s: %s", _tmp109_, _tmp112_);
-#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp112_);
-#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = GP_OK;
-#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9823 "ImportPage.c"
- }
- {
- gint ctr = 0;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ctr = 0;
-#line 9829 "ImportPage.c"
- {
- gboolean _tmp113_ = FALSE;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp113_ = TRUE;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 9836 "ImportPage.c"
- gint _tmp115_;
- CameraList* _tmp116_;
- gchar* subdir = NULL;
- CameraList* _tmp117_;
- gint _tmp118_;
- const gchar* _tmp119_ = NULL;
- int _tmp120_;
- gchar* _tmp121_;
- int _tmp122_;
- const gchar* _tmp127_;
- gchar* _tmp128_;
- gchar* _tmp129_;
- gboolean _tmp130_;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp113_) {
-#line 9852 "ImportPage.c"
- gint _tmp114_;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp114_ = ctr;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ctr = _tmp114_ + 1;
-#line 9858 "ImportPage.c"
- }
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp113_ = FALSE;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp115_ = ctr;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp116_ = folders;
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!(_tmp115_ < gp_list_count (_tmp116_))) {
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 9870 "ImportPage.c"
- }
-#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp117_ = folders;
-#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp118_ = ctr;
-#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp120_ = gp_list_get_name (_tmp117_, _tmp118_, &_tmp119_);
-#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (subdir);
-#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp121_ = g_strdup (_tmp119_);
-#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- subdir = _tmp121_;
-#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = _tmp120_;
-#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp122_ = self->priv->refresh_result;
-#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp122_ != GP_OK) {
-#line 9890 "ImportPage.c"
- gint _tmp123_;
- int _tmp124_;
- gchar* _tmp125_;
- gchar* _tmp126_;
-#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp123_ = ctr;
-#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp124_ = self->priv->refresh_result;
-#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp125_ = gp_result_to_full_string (_tmp124_);
-#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp126_ = _tmp125_;
-#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1491: Unable to get name of folder %d: %s", _tmp123_, _tmp126_);
-#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp126_);
-#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (subdir);
-#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9919 "ImportPage.c"
- }
-#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp127_ = subdir;
-#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp128_ = import_page_append_path (dir, _tmp127_);
-#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp129_ = _tmp128_;
-#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp130_ = !import_page_enumerate_files (self, fsid, _tmp129_, import_list);
-#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp129_);
-#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp130_) {
-#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (subdir);
-#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9945 "ImportPage.c"
- }
-#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (subdir);
-#line 9949 "ImportPage.c"
- }
- }
- }
-#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (folders);
-#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_list_unref0 (files);
-#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 9963 "ImportPage.c"
-}
-
-
-static void
-import_page_auto_match_raw_jpeg (ImportPage* self,
- GeeArrayList* import_list)
-{
-#line 1504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (GEE_IS_ARRAY_LIST (import_list));
-#line 9975 "ImportPage.c"
- {
- gint i = 0;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- i = 0;
-#line 9980 "ImportPage.c"
- {
- gboolean _tmp0_ = FALSE;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = TRUE;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 9987 "ImportPage.c"
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- PhotoImportSource* current = NULL;
- gint _tmp5_;
- gpointer _tmp6_;
- ImportSource* _tmp7_;
- PhotoImportSource* _tmp8_;
- PhotoImportSource* _tmp9_ = NULL;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- PhotoImportSource* next = NULL;
- PhotoImportSource* _tmp17_;
- PhotoImportSource* _tmp18_ = NULL;
- gint _tmp19_;
- PhotoImportSource* prev = NULL;
- PhotoImportSource* _tmp24_;
- gboolean _tmp25_ = FALSE;
- PhotoImportSource* _tmp26_;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp0_) {
-#line 10010 "ImportPage.c"
- gint _tmp1_;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = i;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- i = _tmp1_ + 1;
-#line 10016 "ImportPage.c"
- }
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = FALSE;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = i;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _tmp3_;
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!(_tmp2_ < _tmp4_)) {
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 10030 "ImportPage.c"
- }
-#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = i;
-#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp5_);
-#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = (ImportSource*) _tmp6_;
-#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp7_) : NULL;
-#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp8_ == NULL) {
-#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 10044 "ImportPage.c"
- }
-#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- current = _tmp8_;
-#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = i;
-#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = _tmp11_;
-#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if ((_tmp10_ + 1) < _tmp12_) {
-#line 10056 "ImportPage.c"
- gint _tmp13_;
- gpointer _tmp14_;
- ImportSource* _tmp15_;
- PhotoImportSource* _tmp16_;
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = i;
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp13_ + 1);
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = (ImportSource*) _tmp14_;
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp15_) : NULL;
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp16_ == NULL) {
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 10073 "ImportPage.c"
- }
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = _tmp16_;
-#line 10079 "ImportPage.c"
- } else {
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = NULL;
-#line 10085 "ImportPage.c"
- }
-#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = _g_object_ref0 (_tmp9_);
-#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- next = _tmp17_;
-#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = i;
-#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp19_ > 0) {
-#line 10095 "ImportPage.c"
- gint _tmp20_;
- gpointer _tmp21_;
- ImportSource* _tmp22_;
- PhotoImportSource* _tmp23_;
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = i;
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp20_ - 1);
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = (ImportSource*) _tmp21_;
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp22_) : NULL;
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp23_ == NULL) {
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp22_);
-#line 10112 "ImportPage.c"
- }
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = _tmp23_;
-#line 10118 "ImportPage.c"
- } else {
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = NULL;
-#line 10124 "ImportPage.c"
- }
-#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = _g_object_ref0 (_tmp18_);
-#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- prev = _tmp24_;
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = current;
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp26_ != NULL) {
-#line 10134 "ImportPage.c"
- PhotoImportSource* _tmp27_;
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = current;
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = photo_import_source_get_file_format (_tmp27_) == PHOTO_FILE_FORMAT_RAW;
-#line 10140 "ImportPage.c"
- } else {
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = FALSE;
-#line 10144 "ImportPage.c"
- }
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp25_) {
-#line 10148 "ImportPage.c"
- gchar* current_name = NULL;
- gchar* ext = NULL;
- PhotoImportSource* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_ = NULL;
- gchar* _tmp32_ = NULL;
- PhotoImportSource* associated = NULL;
- gboolean _tmp33_ = FALSE;
- PhotoImportSource* _tmp34_;
- gboolean _tmp45_ = FALSE;
- PhotoImportSource* _tmp46_;
- PhotoImportSource* _tmp57_;
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = current;
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = _tmp29_;
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- disassemble_filename (_tmp30_, &_tmp31_, &_tmp32_);
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (current_name);
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- current_name = _tmp31_;
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (ext);
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ext = _tmp32_;
-#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp30_);
-#line 1517 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- associated = NULL;
-#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = next;
-#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp34_ != NULL) {
-#line 10186 "ImportPage.c"
- PhotoImportSource* _tmp35_;
-#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = next;
-#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = photo_import_source_get_file_format (_tmp35_) == PHOTO_FILE_FORMAT_JFIF;
-#line 10192 "ImportPage.c"
- } else {
-#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = FALSE;
-#line 10196 "ImportPage.c"
- }
-#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp33_) {
-#line 10200 "ImportPage.c"
- gchar* next_name = NULL;
- PhotoImportSource* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_ = NULL;
- gchar* _tmp40_ = NULL;
- const gchar* _tmp41_;
- const gchar* _tmp42_;
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = next;
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = _tmp37_;
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- disassemble_filename (_tmp38_, &_tmp39_, &_tmp40_);
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (next_name);
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- next_name = _tmp39_;
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (ext);
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ext = _tmp40_;
-#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp38_);
-#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = next_name;
-#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = current_name;
-#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (g_strcmp0 (_tmp41_, _tmp42_) == 0) {
-#line 10233 "ImportPage.c"
- PhotoImportSource* _tmp43_;
- PhotoImportSource* _tmp44_;
-#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = next;
-#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = _g_object_ref0 (_tmp43_);
-#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (associated);
-#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- associated = _tmp44_;
-#line 10244 "ImportPage.c"
- }
-#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (next_name);
-#line 10248 "ImportPage.c"
- }
-#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = prev;
-#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp46_ != NULL) {
-#line 10254 "ImportPage.c"
- PhotoImportSource* _tmp47_;
-#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = prev;
-#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = photo_import_source_get_file_format (_tmp47_) == PHOTO_FILE_FORMAT_JFIF;
-#line 10260 "ImportPage.c"
- } else {
-#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = FALSE;
-#line 10264 "ImportPage.c"
- }
-#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp45_) {
-#line 10268 "ImportPage.c"
- gchar* prev_name = NULL;
- PhotoImportSource* _tmp48_;
- gchar* _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_ = NULL;
- gchar* _tmp52_ = NULL;
- const gchar* _tmp53_;
- const gchar* _tmp54_;
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = prev;
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = _tmp49_;
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- disassemble_filename (_tmp50_, &_tmp51_, &_tmp52_);
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (prev_name);
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- prev_name = _tmp51_;
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (ext);
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ext = _tmp52_;
-#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp50_);
-#line 1527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = prev_name;
-#line 1527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = current_name;
-#line 1527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (g_strcmp0 (_tmp53_, _tmp54_) == 0) {
-#line 10301 "ImportPage.c"
- PhotoImportSource* _tmp55_;
- PhotoImportSource* _tmp56_;
-#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = prev;
-#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp56_ = _g_object_ref0 (_tmp55_);
-#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (associated);
-#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- associated = _tmp56_;
-#line 10312 "ImportPage.c"
- }
-#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (prev_name);
-#line 10316 "ImportPage.c"
- }
-#line 1532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = associated;
-#line 1532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp57_ != NULL) {
-#line 10322 "ImportPage.c"
- PhotoImportSource* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- PhotoImportSource* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- PhotoImportSource* _tmp64_;
- PhotoImportSource* _tmp65_;
- PhotoImportSource* _tmp66_;
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp58_ = current;
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp59_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp60_ = _tmp59_;
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp61_ = associated;
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp62_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp63_ = _tmp62_;
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:1533: Found RAW+JPEG pair: %s and %s", _tmp60_, _tmp63_);
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp63_);
-#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp60_);
-#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp64_ = current;
-#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp65_ = associated;
-#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo_import_source_set_associated (_tmp64_, _tmp65_);
-#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp66_ = associated;
-#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_IMPORT_SOURCE, ImportSource))) {
-#line 10360 "ImportPage.c"
- PhotoImportSource* _tmp67_;
-#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:1536: Unable to associate files");
-#line 1537 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp67_ = current;
-#line 1537 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo_import_source_set_associated (_tmp67_, NULL);
-#line 10368 "ImportPage.c"
- }
- }
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (associated);
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (ext);
-#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (current_name);
-#line 10377 "ImportPage.c"
- }
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (prev);
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (next);
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (current);
-#line 10389 "ImportPage.c"
- }
- }
- }
-}
-
-
-static void
-import_page_load_previews_and_metadata (ImportPage* self,
- GeeList* import_list)
-{
- gint loaded_photos = 0;
- GError * _inner_error_ = NULL;
-#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (GEE_IS_LIST (import_list));
-#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- loaded_photos = 0;
-#line 10408 "ImportPage.c"
- {
- GeeList* _import_source_list = NULL;
- GeeList* _tmp0_;
- gint _import_source_size = 0;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _import_source_index = 0;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _g_object_ref0 (import_list);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _import_source_list = _tmp0_;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _import_source_list;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _import_source_size = _tmp3_;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _import_source_index = -1;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 10433 "ImportPage.c"
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- ImportSource* import_source = NULL;
- GeeList* _tmp7_;
- gint _tmp8_;
- gpointer _tmp9_;
- gchar* filename = NULL;
- ImportSource* _tmp10_;
- gchar* _tmp11_;
- gchar* fulldir = NULL;
- ImportSource* _tmp12_;
- gchar* _tmp13_;
- const gchar* _tmp14_;
- PhotoImportSource* associated = NULL;
- gboolean _tmp18_ = FALSE;
- ImportSource* _tmp19_;
- GtkProgressBar* _tmp25_;
- GtkProgressBar* _tmp26_;
- ImportSource* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- PhotoMetadata* metadata = NULL;
- const gchar* _tmp32_;
- gchar* exif_only_md5 = NULL;
- PhotoMetadata* _tmp45_;
- GdkPixbuf* preview = NULL;
- gchar* preview_md5 = NULL;
- ImportSource* _tmp71_;
- ImportSource* _tmp74_;
- PhotoImportSource* _tmp80_;
- SourceCollection* _tmp104_;
- ImportSource* _tmp105_;
- GtkProgressBar* _tmp106_;
- gint _tmp107_;
- gint _tmp108_;
- gint _tmp109_;
- gint _tmp110_;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _import_source_index;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _import_source_index = _tmp4_ + 1;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _import_source_index;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = _import_source_size;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!(_tmp5_ < _tmp6_)) {
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 10486 "ImportPage.c"
- }
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _import_source_list;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = _import_source_index;
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = gee_list_get (_tmp7_, _tmp8_);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_source = (ImportSource*) _tmp9_;
-#line 1547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = import_source;
-#line 1547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = import_source_get_filename (_tmp10_);
-#line 1547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- filename = _tmp11_;
-#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = import_source;
-#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = import_source_get_fulldir (_tmp12_);
-#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- fulldir = _tmp13_;
-#line 1549 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = fulldir;
-#line 1549 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp14_ == NULL) {
-#line 10512 "ImportPage.c"
- ImportSource* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
-#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = import_source;
-#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_OBJECT, DataObject));
-#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = _tmp16_;
-#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1550: Skipping loading preview of %s: invalid folder n" \
-"ame", _tmp17_);
-#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp17_);
-#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_source);
-#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- continue;
-#line 10534 "ImportPage.c"
- }
-#line 1556 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- associated = NULL;
-#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = import_source;
-#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO_IMPORT_SOURCE)) {
-#line 10542 "ImportPage.c"
- ImportSource* _tmp20_;
- PhotoImportSource* _tmp21_;
- PhotoImportSource* _tmp22_;
-#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = import_source;
-#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource));
-#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = _tmp21_;
-#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = _tmp22_ != NULL;
-#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp22_);
-#line 10556 "ImportPage.c"
- } else {
-#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = FALSE;
-#line 10560 "ImportPage.c"
- }
-#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp18_) {
-#line 10564 "ImportPage.c"
- ImportSource* _tmp23_;
- PhotoImportSource* _tmp24_;
-#line 1559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = import_source;
-#line 1559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource));
-#line 1559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (associated);
-#line 1559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- associated = _tmp24_;
-#line 10575 "ImportPage.c"
- }
-#line 1562 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = self->priv->progress_bar;
-#line 1562 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_ellipsize (_tmp25_, PANGO_ELLIPSIZE_MIDDLE);
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = self->priv->progress_bar;
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = import_source;
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_OBJECT, DataObject));
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = _tmp28_;
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = g_strdup_printf (_ ("Fetching preview for %s"), _tmp29_);
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = _tmp30_;
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_text (_tmp26_, _tmp31_);
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp31_);
-#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp29_);
-#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- metadata = NULL;
-#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = filename;
-#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!video_reader_is_supported_video_filename (_tmp32_)) {
-#line 10605 "ImportPage.c"
- {
- PhotoMetadata* _tmp33_ = NULL;
- GPSpinIdleWrapper* _tmp34_;
- GPContext* _tmp35_;
- Camera* _tmp36_;
- const gchar* _tmp37_;
- const gchar* _tmp38_;
- PhotoMetadata* _tmp39_;
- PhotoMetadata* _tmp40_;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = import_page_spin_idle_context;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = self->priv->camera;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = fulldir;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = filename;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = gp_load_metadata (_tmp35_, _tmp36_, _tmp37_, _tmp38_, &_inner_error_);
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = _tmp39_;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10631 "ImportPage.c"
- goto __catch77_g_error;
- }
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = _tmp33_;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = NULL;
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (metadata);
-#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- metadata = _tmp40_;
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (_tmp33_);
-#line 10644 "ImportPage.c"
- }
- goto __finally77;
- __catch77_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp41_;
- const gchar* _tmp42_;
- GError* _tmp43_;
- const gchar* _tmp44_;
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = fulldir;
-#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = filename;
-#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = err;
-#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = _tmp43_->message;
-#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1576: Unable to fetch metadata for %s/%s: %s", _tmp41_, _tmp42_, _tmp44_);
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 10670 "ImportPage.c"
- }
- __finally77:
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (metadata);
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (associated);
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_source);
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_import_source_list);
-#line 1572 "/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 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 10693 "ImportPage.c"
- }
- }
-#line 1582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- exif_only_md5 = NULL;
-#line 1583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = metadata;
-#line 1583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp45_ != NULL) {
-#line 10702 "ImportPage.c"
- PhotoMetadata* _tmp46_;
- gchar* _tmp47_;
-#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = metadata;
-#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = photo_metadata_exif_hash (_tmp46_);
-#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (exif_only_md5);
-#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- exif_only_md5 = _tmp47_;
-#line 10713 "ImportPage.c"
- }
-#line 1593 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview = NULL;
-#line 1594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview_md5 = NULL;
-#line 10719 "ImportPage.c"
- {
- gchar* preview_fulldir = NULL;
- const gchar* _tmp48_;
- gchar* _tmp49_;
- gchar* preview_filename = NULL;
- const gchar* _tmp50_;
- gchar* _tmp51_;
- PhotoImportSource* _tmp52_;
- GdkPixbuf* _tmp57_ = NULL;
- GPSpinIdleWrapper* _tmp58_;
- GPContext* _tmp59_;
- Camera* _tmp60_;
- const gchar* _tmp61_;
- const gchar* _tmp62_;
- gchar* _tmp63_ = NULL;
- GdkPixbuf* _tmp64_;
- GdkPixbuf* _tmp65_;
-#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = fulldir;
-#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = g_strdup (_tmp48_);
-#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview_fulldir = _tmp49_;
-#line 1597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = filename;
-#line 1597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp51_ = g_strdup (_tmp50_);
-#line 1597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview_filename = _tmp51_;
-#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp52_ = associated;
-#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp52_ != NULL) {
-#line 10753 "ImportPage.c"
- PhotoImportSource* _tmp53_;
- gchar* _tmp54_;
- PhotoImportSource* _tmp55_;
- gchar* _tmp56_;
-#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = associated;
-#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_fulldir);
-#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview_fulldir = _tmp54_;
-#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = associated;
-#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp56_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_filename);
-#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview_filename = _tmp56_;
-#line 10774 "ImportPage.c"
- }
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp58_ = import_page_spin_idle_context;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp59_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp60_ = self->priv->camera;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp61_ = preview_fulldir;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp62_ = preview_filename;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp64_ = gp_load_preview (_tmp59_, _tmp60_, _tmp61_, _tmp62_, &_tmp63_, &_inner_error_);
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_md5);
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview_md5 = _tmp63_;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = _tmp64_;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_filename);
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_fulldir);
-#line 10800 "ImportPage.c"
- goto __catch78_g_error;
- }
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp65_ = _tmp57_;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = NULL;
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (preview);
-#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview = _tmp65_;
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp57_);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_filename);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_fulldir);
-#line 10817 "ImportPage.c"
- }
- goto __finally78;
- __catch78_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp66_;
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp66_ = filename;
-#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!video_reader_is_supported_video_filename (_tmp66_)) {
-#line 10832 "ImportPage.c"
- const gchar* _tmp67_;
- const gchar* _tmp68_;
- GError* _tmp69_;
- const gchar* _tmp70_;
-#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp67_ = fulldir;
-#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp68_ = filename;
-#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp69_ = err;
-#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp70_ = _tmp69_->message;
-#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1611: Unable to fetch preview for %s/%s: %s", _tmp67_, _tmp68_, _tmp70_);
-#line 10847 "ImportPage.c"
- }
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 10851 "ImportPage.c"
- }
- __finally78:
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_md5);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (preview);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (exif_only_md5);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (metadata);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (associated);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_source);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_import_source_list);
-#line 1595 "/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 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 10880 "ImportPage.c"
- }
-#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp71_ = import_source;
-#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp71_, TYPE_VIDEO_IMPORT_SOURCE)) {
-#line 10886 "ImportPage.c"
- ImportSource* _tmp72_;
- GdkPixbuf* _tmp73_;
-#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp72_ = import_source;
-#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp73_ = preview;
-#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- video_import_source_update (G_TYPE_CHECK_INSTANCE_TYPE (_tmp72_, TYPE_VIDEO_IMPORT_SOURCE) ? ((VideoImportSource*) _tmp72_) : NULL, _tmp73_);
-#line 10895 "ImportPage.c"
- }
-#line 1622 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp74_ = import_source;
-#line 1622 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp74_, TYPE_PHOTO_IMPORT_SOURCE)) {
-#line 10901 "ImportPage.c"
- ImportSource* _tmp75_;
- GdkPixbuf* _tmp76_;
- const gchar* _tmp77_;
- PhotoMetadata* _tmp78_;
- const gchar* _tmp79_;
-#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp75_ = import_source;
-#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp76_ = preview;
-#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp77_ = preview_md5;
-#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp78_ = metadata;
-#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp79_ = exif_only_md5;
-#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo_import_source_update (G_TYPE_CHECK_INSTANCE_TYPE (_tmp75_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp75_) : NULL, _tmp76_, _tmp77_, _tmp78_, _tmp79_);
-#line 10919 "ImportPage.c"
- }
-#line 1626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp80_ = associated;
-#line 1626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp80_ != NULL) {
-#line 10925 "ImportPage.c"
- {
- PhotoMetadata* associated_metadata = NULL;
- GPSpinIdleWrapper* _tmp81_;
- GPContext* _tmp82_;
- Camera* _tmp83_;
- PhotoImportSource* _tmp84_;
- gchar* _tmp85_;
- gchar* _tmp86_;
- PhotoImportSource* _tmp87_;
- gchar* _tmp88_;
- gchar* _tmp89_;
- PhotoMetadata* _tmp90_;
- PhotoMetadata* _tmp91_;
- PhotoImportSource* _tmp92_;
- GdkPixbuf* _tmp93_;
- const gchar* _tmp94_;
- PhotoMetadata* _tmp95_;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp81_ = import_page_spin_idle_context;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp82_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp83_ = self->priv->camera;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp84_ = associated;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp85_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp86_ = _tmp85_;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp87_ = associated;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp88_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp89_ = _tmp88_;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp90_ = gp_load_metadata (_tmp82_, _tmp83_, _tmp86_, _tmp89_, &_inner_error_);
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp91_ = _tmp90_;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp89_);
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp86_);
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- associated_metadata = _tmp91_;
-#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10973 "ImportPage.c"
- goto __catch79_g_error;
- }
-#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp92_ = associated;
-#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp93_ = preview;
-#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp94_ = preview_md5;
-#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp95_ = associated_metadata;
-#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo_import_source_update (_tmp92_, _tmp93_, _tmp94_, _tmp95_, NULL);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (associated_metadata);
-#line 10988 "ImportPage.c"
- }
- goto __finally79;
- __catch79_g_error:
- {
- GError* err = NULL;
- PhotoImportSource* _tmp96_;
- gchar* _tmp97_;
- gchar* _tmp98_;
- PhotoImportSource* _tmp99_;
- gchar* _tmp100_;
- gchar* _tmp101_;
- GError* _tmp102_;
- const gchar* _tmp103_;
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp96_ = associated;
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp97_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp98_ = _tmp97_;
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp99_ = associated;
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp100_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, TYPE_IMPORT_SOURCE, ImportSource));
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp101_ = _tmp100_;
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp102_ = err;
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp103_ = _tmp102_->message;
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:1632: Unable to fetch metadata for %s/%s: %s", _tmp98_, _tmp101_, _tmp103_);
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp101_);
-#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp98_);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 11030 "ImportPage.c"
- }
- __finally79:
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_md5);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (preview);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (exif_only_md5);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (metadata);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (associated);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_source);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_import_source_list);
-#line 1627 "/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 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 11059 "ImportPage.c"
- }
- }
-#line 1638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp104_ = self->priv->import_sources;
-#line 1638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp105_ = import_source;
-#line 1638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, TYPE_DATA_OBJECT, DataObject));
-#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp106_ = self->priv->progress_bar;
-#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp107_ = loaded_photos;
-#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- loaded_photos = _tmp107_ + 1;
-#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp108_ = loaded_photos;
-#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp109_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp110_ = _tmp109_;
-#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_progress_bar_set_fraction (_tmp106_, ((gdouble) _tmp108_) / ((gdouble) _tmp110_));
-#line 1647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- spin_event_loop ();
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (preview_md5);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (preview);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (exif_only_md5);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (metadata);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (associated);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (fulldir);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (filename);
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_source);
-#line 11100 "ImportPage.c"
- }
-#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_import_source_list);
-#line 11104 "ImportPage.c"
- }
-}
-
-
-static void
-import_page_on_hide_imported (ImportPage* self)
-{
- GtkCheckButton* _tmp0_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- GtkCheckButton* _tmp9_;
-#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->hide_imported;
-#line 1652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))) {
-#line 11122 "ImportPage.c"
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ImportPageHideImportedViewFilter* _tmp3_;
-#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp1_;
-#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->hide_imported_filter;
-#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- view_collection_install_view_filter (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_VIEW_FILTER, ViewFilter));
-#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp2_);
-#line 11136 "ImportPage.c"
- } else {
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- ImportPageHideImportedViewFilter* _tmp6_;
-#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = self->priv->hide_imported_filter;
-#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- view_collection_remove_view_filter (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_VIEW_FILTER, ViewFilter));
-#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 11151 "ImportPage.c"
- }
-#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = _tmp7_;
-#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = self->priv->hide_imported;
-#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- configuration_facade_set_hide_photos_already_imported (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton)));
-#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 11163 "ImportPage.c"
-}
-
-
-static void
-import_page_on_import_selected (ImportPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
-#line 1660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = view_collection_get_selected (_tmp1_);
-#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_import (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 11190 "ImportPage.c"
-}
-
-
-static void
-import_page_on_import_all (ImportPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
-#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_import (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 11217 "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 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 11230 "ImportPage.c"
-}
-
-
-static void
-_import_page_import_reporter_batch_import_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self)
-{
-#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_import_reporter ((ImportPage*) self, manifest);
-#line 11241 "ImportPage.c"
-}
-
-
-static void
-_import_page_on_import_job_failed_batch_import_import_job_failed (BatchImport* _sender,
- BatchImportResult* _result_,
- gpointer self)
-{
-#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_import_job_failed ((ImportPage*) self, _result_);
-#line 11252 "ImportPage.c"
-}
-
-
-static void
-_import_page_close_import_batch_import_import_complete (BatchImport* _sender,
- ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self)
-{
-#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_close_import ((ImportPage*) self);
-#line 11264 "ImportPage.c"
-}
-
-
-static void
-import_page_import (ImportPage* self,
- GeeIterable* items)
-{
- int res = 0;
- Camera* _tmp0_;
- GPSpinIdleWrapper* _tmp1_;
- GPContext* _tmp2_;
- int _tmp3_;
- gboolean _tmp9_;
- GtkProgressBar* _tmp10_;
- SortedList* jobs = NULL;
- SortedList* _tmp11_;
- GeeArrayList* already_imported = NULL;
- GeeArrayList* _tmp12_;
- SortedList* _tmp50_;
- gint _tmp51_;
- gint _tmp52_;
- const gchar* _tmp53_;
- SortedList* _tmp54_;
- gint _tmp55_;
- gint _tmp56_;
-#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (GEE_IS_ITERABLE (items));
-#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->camera;
-#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = import_page_spin_idle_context;
-#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- res = gp_camera_init (_tmp0_, _tmp2_);
-#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = res;
-#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp3_ != GP_OK) {
-#line 11306 "ImportPage.c"
- int _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = res;
-#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = gp_result_to_full_string (_tmp4_);
-#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = _tmp5_;
-#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = g_strdup_printf (_ ("Unable to lock camera: %s"), _tmp6_);
-#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = _tmp7_;
-#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- app_window_error_message (_tmp8_, NULL);
-#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp8_);
-#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp6_);
-#line 1673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 11330 "ImportPage.c"
- }
-#line 1676 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = self->priv->refreshed;
-#line 1676 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, TRUE, _tmp9_);
-#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed (self);
-#line 1679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = self->priv->progress_bar;
-#line 1679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = sorted_list_new (IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, _import_page_import_job_comparator_comparator, self);
-#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- jobs = _tmp11_;
-#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = gee_array_list_new (IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
-#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- already_imported = _tmp12_;
-#line 11350 "ImportPage.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp13_;
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = gee_iterable_iterator (items);
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _object_it = _tmp13_;
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 11360 "ImportPage.c"
- GeeIterator* _tmp14_;
- DataObject* object = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- ImportPreview* preview = NULL;
- DataObject* _tmp17_;
- ImportPreview* _tmp18_;
- ImportSource* import_file = NULL;
- ImportPreview* _tmp19_;
- DataSource* _tmp20_;
- ImportPreview* _tmp21_;
- ImportPageCameraImportJob* import_job = NULL;
- GPContextWrapper* _tmp33_;
- ImportSource* _tmp34_;
- ImportPageCameraImportJob* _tmp35_;
- gboolean _tmp36_ = FALSE;
- ImportSource* _tmp37_;
- SortedList* _tmp48_;
- ImportPageCameraImportJob* _tmp49_;
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = _object_it;
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 11386 "ImportPage.c"
- }
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = _object_it;
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- object = (DataObject*) _tmp16_;
-#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = object;
-#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_IMPORT_PREVIEW, ImportPreview));
-#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- preview = _tmp18_;
-#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = preview;
-#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_VIEW, DataView));
-#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_file = G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_IMPORT_SOURCE, ImportSource);
-#line 1688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = preview;
-#line 1688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (import_preview_is_already_imported (_tmp21_)) {
-#line 11410 "ImportPage.c"
- ImportSource* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- GeeArrayList* _tmp25_;
- GPContextWrapper* _tmp26_;
- ImportSource* _tmp27_;
- ImportPreview* _tmp28_;
- DuplicatedFile* _tmp29_;
- DuplicatedFile* _tmp30_;
- ImportPageCameraImportJob* _tmp31_;
- ImportPageCameraImportJob* _tmp32_;
-#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = import_file;
-#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = import_source_get_filename (_tmp22_);
-#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = _tmp23_;
-#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_message ("ImportPage.vala:1689: Skipping import of %s: checksum detected in libr" \
-"ary", _tmp24_);
-#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp24_);
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = already_imported;
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = import_page_null_context;
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = import_file;
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = preview;
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = import_preview_get_duplicated_file (_tmp28_);
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = _tmp29_;
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = import_page_camera_import_job_new (_tmp26_, _tmp27_, _tmp30_);
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = _tmp31_;
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp32_);
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_import_job_unref0 (_tmp32_);
-#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp30_);
-#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_file);
-#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (preview);
-#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (object);
-#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- continue;
-#line 11462 "ImportPage.c"
- }
-#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = import_page_null_context;
-#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = import_file;
-#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = import_page_camera_import_job_new (_tmp33_, _tmp34_, NULL);
-#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_job = _tmp35_;
-#line 1701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = import_file;
-#line 1701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp37_, TYPE_PHOTO_IMPORT_SOURCE)) {
-#line 11476 "ImportPage.c"
- ImportSource* _tmp38_;
- PhotoImportSource* _tmp39_;
- PhotoImportSource* _tmp40_;
-#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = import_file;
-#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource));
-#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = _tmp39_;
-#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = _tmp40_ != NULL;
-#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp40_);
-#line 11490 "ImportPage.c"
- } else {
-#line 1701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = FALSE;
-#line 11494 "ImportPage.c"
- }
-#line 1701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp36_) {
-#line 11498 "ImportPage.c"
- ImportPageCameraImportJob* _tmp41_;
- GPContextWrapper* _tmp42_;
- ImportSource* _tmp43_;
- PhotoImportSource* _tmp44_;
- PhotoImportSource* _tmp45_;
- ImportPageCameraImportJob* _tmp46_;
- ImportPageCameraImportJob* _tmp47_;
-#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = import_job;
-#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = import_page_null_context;
-#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = import_file;
-#line 1703 "/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 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = _tmp44_;
-#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = import_page_camera_import_job_new (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_IMPORT_SOURCE, ImportSource), NULL);
-#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = _tmp46_;
-#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- batch_import_job_set_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_BATCH_IMPORT_JOB, BatchImportJob), G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_BATCH_IMPORT_JOB, BatchImportJob));
-#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_import_job_unref0 (_tmp47_);
-#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp45_);
-#line 11526 "ImportPage.c"
- }
-#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = jobs;
-#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = import_job;
-#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection), _tmp49_);
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_import_job_unref0 (import_job);
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (import_file);
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (preview);
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (object);
-#line 11542 "ImportPage.c"
- }
-#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_object_it);
-#line 11546 "ImportPage.c"
- }
-#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = jobs;
-#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp51_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp52_ = _tmp51_;
-#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = self->priv->camera_name;
-#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_debug ("ImportPage.vala:1710: Importing %d files from %s", _tmp52_, _tmp53_);
-#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = jobs;
-#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp56_ = _tmp55_;
-#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp56_ > 0) {
-#line 11566 "ImportPage.c"
- ImportPage* _tmp57_;
- ImportPage* _tmp58_;
- BatchImport* batch_import = NULL;
- SortedList* _tmp59_;
- const gchar* _tmp60_;
- GeeArrayList* _tmp61_;
- BatchImport* _tmp62_;
- BatchImport* _tmp63_;
- BatchImport* _tmp64_;
- LibraryWindow* _tmp65_;
- LibraryWindow* _tmp66_;
- BatchImport* _tmp67_;
- LibraryWindow* _tmp68_;
- LibraryWindow* _tmp69_;
-#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = self->priv->local_ref;
-#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_assert (_tmp57_ == NULL, "local_ref == null");
-#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp58_ = _g_object_ref0 (self);
-#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->local_ref);
-#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->local_ref = _tmp58_;
-#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp59_ = jobs;
-#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp60_ = self->priv->camera_name;
-#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp61_ = already_imported;
-#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp62_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ITERABLE, GeeIterable), _tmp60_, _import_page_import_reporter_batch_import_import_reporter, self, NULL, _tmp61_, NULL, NULL, NULL);
-#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- batch_import = _tmp62_;
-#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp63_ = batch_import;
-#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (_tmp63_, "import-job-failed", (GCallback) _import_page_on_import_job_failed_batch_import_import_job_failed, self, 0);
-#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp64_ = batch_import;
-#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_connect_object (_tmp64_, "import-complete", (GCallback) _import_page_close_import_batch_import_import_complete, self, 0);
-#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp65_ = library_window_get_app ();
-#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp66_ = _tmp65_;
-#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp67_ = batch_import;
-#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_window_enqueue_batch_import (_tmp66_, _tmp67_, TRUE);
-#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp66_);
-#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp68_ = library_window_get_app ();
-#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp69_ = _tmp68_;
-#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_window_switch_to_import_queue_page (_tmp69_);
-#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp69_);
-#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (batch_import);
-#line 11629 "ImportPage.c"
- } else {
- GeeArrayList* _tmp70_;
- gint _tmp71_;
- gint _tmp72_;
-#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp70_ = already_imported;
-#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp71_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp72_ = _tmp71_;
-#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp72_ > 0) {
-#line 11642 "ImportPage.c"
- GeeArrayList* _tmp73_;
- ImportManifest* _tmp74_;
- ImportManifest* _tmp75_;
-#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp73_ = already_imported;
-#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp74_ = import_manifest_new (NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, GEE_TYPE_LIST, GeeList));
-#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp75_ = _tmp74_;
-#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_import_reporter (self, _tmp75_);
-#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _import_manifest_unref0 (_tmp75_);
-#line 11656 "ImportPage.c"
- }
-#line 1730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_close_import (self);
-#line 11660 "ImportPage.c"
- }
-#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (already_imported);
-#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (jobs);
-#line 11666 "ImportPage.c"
-}
-
-
-static void
-import_page_on_import_job_failed (ImportPage* self,
- BatchImportResult* _result_)
-{
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_BATCH_IMPORT_RESULT (_result_));
-#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _result_->file;
-#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp1_ == NULL) {
-#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = TRUE;
-#line 11687 "ImportPage.c"
- } else {
- ImportResult _tmp2_;
-#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _result_->result;
-#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _tmp2_ == IMPORT_RESULT_SUCCESS;
-#line 11694 "ImportPage.c"
- }
-#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_) {
-#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 11700 "ImportPage.c"
- }
- {
- GFile* _tmp3_;
-#line 1740 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = _result_->file;
-#line 1740 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_file_delete (_tmp3_, NULL, &_inner_error_);
-#line 1740 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11710 "ImportPage.c"
- goto __catch80_g_error;
- }
- }
- goto __finally80;
- __catch80_g_error:
- {
- GError* err = NULL;
- GFile* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GError* _tmp7_;
- const gchar* _tmp8_;
-#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _result_->file;
-#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = g_file_get_path (_tmp4_);
-#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = _tmp5_;
-#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = err;
-#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = _tmp7_->message;
-#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_message ("ImportPage.vala:1742: Unable to delete downloaded file %s: %s", _tmp6_, _tmp8_);
-#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp6_);
-#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 11743 "ImportPage.c"
- }
- __finally80:
-#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1739 "/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 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_clear_error (&_inner_error_);
-#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 11754 "ImportPage.c"
- }
-}
-
-
-static gpointer
-_batch_import_job_ref0 (gpointer self)
-{
-#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self ? batch_import_job_ref (self) : NULL;
-#line 11764 "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 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 11778 "ImportPage.c"
-}
-
-
-static void
-import_page_import_reporter (ImportPage* self,
- ImportManifest* manifest)
-{
- ImportPage* local_ref = NULL;
- ImportPage* _tmp0_;
- ImportPage* _tmp1_;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- Marker* marker = NULL;
- SourceCollection* _tmp42_;
- Marker* _tmp43_;
- ProgressDialog* progress = NULL;
- AppWindow* _tmp62_;
- AppWindow* _tmp63_;
- GCancellable* _tmp64_;
- GCancellable* _tmp65_;
- ProgressDialog* _tmp66_;
- ProgressDialog* _tmp67_;
- gint error_count = 0;
- SourceCollection* _tmp68_;
- Marker* _tmp69_;
- ProgressDialog* _tmp70_;
- gint _tmp71_;
- ProgressDialog* _tmp76_;
-#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_MANIFEST (manifest));
-#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->local_ref;
-#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- local_ref = _tmp1_;
-#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->local_ref);
-#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->local_ref = NULL;
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = manifest->success;
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _tmp3_;
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp4_ > 0) {
-#line 11830 "ImportPage.c"
- gchar* photos_string = NULL;
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- GeeList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gchar* _tmp11_;
- gchar* videos_string = NULL;
- GeeList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- GeeList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gchar* _tmp18_;
- gchar* both_string = NULL;
- GeeList* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- GeeList* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gchar* _tmp25_;
- gchar* neither_string = NULL;
- GeeList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- GeeList* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- gchar* _tmp32_;
- gchar* question_string = NULL;
- GeeList* _tmp33_;
- const gchar* _tmp34_;
- const gchar* _tmp35_;
- const gchar* _tmp36_;
- const gchar* _tmp37_;
- gchar* _tmp38_;
- ImportUIQuestionParams* question = NULL;
- const gchar* _tmp39_;
- ImportUIQuestionParams* _tmp40_;
- ImportUIQuestionParams* _tmp41_;
-#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = manifest->success;
-#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp6_;
-#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = manifest->success;
-#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = _tmp9_;
-#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = g_strdup_printf (ngettext ("Delete this photo from camera?", "Delete these %d photos from camera?", (gulong) _tmp7_), _tmp10_);
-#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photos_string = _tmp11_;
-#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = manifest->success;
-#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = _tmp13_;
-#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = manifest->success;
-#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = _tmp16_;
-#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = g_strdup_printf (ngettext ("Delete this video from camera?", "Delete these %d videos from camera?", (gulong) _tmp14_), _tmp17_);
-#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- videos_string = _tmp18_;
-#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = manifest->success;
-#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = _tmp20_;
-#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = manifest->success;
-#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = _tmp23_;
-#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp25_ = g_strdup_printf (ngettext ("Delete this photo/video from camera?", "Delete these %d photos/videos from camera?", (gulong) _tmp21_), _tmp24_);
-#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- both_string = _tmp25_;
-#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = manifest->success;
-#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = _tmp27_;
-#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = manifest->success;
-#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = _tmp30_;
-#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = g_strdup_printf (ngettext ("Delete these files from camera?", "Delete these %d files from camera?", (gulong) _tmp28_), _tmp31_);
-#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- neither_string = _tmp32_;
-#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = manifest->success;
-#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = photos_string;
-#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = videos_string;
-#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = both_string;
-#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = neither_string;
-#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), _tmp34_, _tmp35_, _tmp36_, _tmp37_);
-#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- question_string = _tmp38_;
-#line 1772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = question_string;
-#line 1772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = import_ui_question_params_new (_tmp39_, RESOURCES_DELETE_LABEL, _ ("_Keep"));
-#line 1772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- question = _tmp40_;
-#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp41_ = question;
-#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!import_ui_report_manifest (manifest, FALSE, _tmp41_)) {
-#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _import_ui_question_params_unref0 (question);
-#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (question_string);
-#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (neither_string);
-#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (both_string);
-#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (videos_string);
-#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (photos_string);
-#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (local_ref);
-#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 11978 "ImportPage.c"
- }
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _import_ui_question_params_unref0 (question);
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (question_string);
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (neither_string);
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (both_string);
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (videos_string);
-#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (photos_string);
-#line 11992 "ImportPage.c"
- } else {
-#line 1778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_ui_report_manifest (manifest, FALSE, NULL);
-#line 1779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (local_ref);
-#line 1779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return;
-#line 12000 "ImportPage.c"
- }
-#line 1784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = self->priv->import_sources;
-#line 1784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- marker = _tmp43_;
-#line 12008 "ImportPage.c"
- {
- GeeList* _batch_result_list = NULL;
- GeeList* _tmp44_;
- GeeList* _tmp45_;
- gint _batch_result_size = 0;
- GeeList* _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
- gint _batch_result_index = 0;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = manifest->success;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = _g_object_ref0 (_tmp44_);
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_result_list = _tmp45_;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = _batch_result_list;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = _tmp47_;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_result_size = _tmp48_;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_result_index = -1;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- while (TRUE) {
-#line 12036 "ImportPage.c"
- gint _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
- BatchImportResult* batch_result = NULL;
- GeeList* _tmp52_;
- gint _tmp53_;
- gpointer _tmp54_;
- ImportPageCameraImportJob* job = NULL;
- BatchImportResult* _tmp55_;
- BatchImportJob* _tmp56_;
- ImportPageCameraImportJob* _tmp57_;
- Marker* _tmp58_;
- ImportPageCameraImportJob* _tmp59_;
- ImportSource* _tmp60_;
- ImportSource* _tmp61_;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = _batch_result_index;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_result_index = _tmp49_ + 1;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = _batch_result_index;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp51_ = _batch_result_size;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!(_tmp50_ < _tmp51_)) {
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- break;
-#line 12064 "ImportPage.c"
- }
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp52_ = _batch_result_list;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = _batch_result_index;
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = gee_list_get (_tmp52_, _tmp53_);
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- batch_result = (BatchImportResult*) _tmp54_;
-#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = batch_result;
-#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp56_ = _tmp55_->job;
-#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp56_, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB) ? ((ImportPageCameraImportJob*) _tmp56_) : NULL);
-#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- job = _tmp57_;
-#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp58_ = marker;
-#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp59_ = job;
-#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp60_ = import_page_camera_import_job_get_source (_tmp59_);
-#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp61_ = _tmp60_;
-#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- marker_mark (_tmp58_, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_DATA_OBJECT, DataObject));
-#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp61_);
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_import_job_unref0 (job);
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_import_result_unref0 (batch_result);
-#line 12098 "ImportPage.c"
- }
-#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_batch_result_list);
-#line 12102 "ImportPage.c"
- }
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp62_ = app_window_get_instance ();
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp63_ = _tmp62_;
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp64_ = g_cancellable_new ();
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp65_ = _tmp64_;
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp66_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_window_get_type (), GtkWindow), _ ("Removing photos/videos from camera"), _tmp65_);
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp66_);
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp67_ = _tmp66_;
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp65_);
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp63_);
-#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- progress = _tmp67_;
-#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp68_ = self->priv->import_sources;
-#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp69_ = marker;
-#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp70_ = progress;
-#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- error_count = source_collection_destroy_marked (_tmp68_, _tmp69_, TRUE, _progress_dialog_monitor_progress_monitor, _tmp70_, NULL);
-#line 1794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp71_ = error_count;
-#line 1794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp71_ > 0) {
-#line 12136 "ImportPage.c"
- gchar* error_string = NULL;
- gint _tmp72_;
- gint _tmp73_;
- gchar* _tmp74_;
- const gchar* _tmp75_;
-#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp72_ = error_count;
-#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp73_ = error_count;
-#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp74_ = g_strdup_printf (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) _tmp72_), _tmp73_);
-#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- error_string = _tmp74_;
-#line 1799 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp75_ = error_string;
-#line 1799 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- app_window_error_message (_tmp75_, NULL);
-#line 1794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (error_string);
-#line 12156 "ImportPage.c"
- }
-#line 1802 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp76_ = progress;
-#line 1802 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- progress_dialog_close (_tmp76_);
-#line 1805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (local_ref);
-#line 1805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- local_ref = NULL;
-#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (progress);
-#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (marker);
-#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (local_ref);
-#line 12172 "ImportPage.c"
-}
-
-
-static void
-import_page_close_import (ImportPage* self)
-{
- int res = 0;
- Camera* _tmp0_;
- GPSpinIdleWrapper* _tmp1_;
- GPContext* _tmp2_;
- int _tmp3_;
- gboolean _tmp7_;
-#line 1808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_IMPORT_PAGE (self));
-#line 1809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->camera;
-#line 1809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = import_page_spin_idle_context;
-#line 1809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context;
-#line 1809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- res = gp_camera_exit (_tmp0_, _tmp2_);
-#line 1810 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = res;
-#line 1810 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp3_ != GP_OK) {
-#line 12199 "ImportPage.c"
- int _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = res;
-#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = gp_result_to_full_string (_tmp4_);
-#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = _tmp5_;
-#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_message ("ImportPage.vala:1812: Unable to unlock camera: %s", _tmp6_);
-#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp6_);
-#line 12213 "ImportPage.c"
- }
-#line 1815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->refreshed;
-#line 1815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_update_status (self, FALSE, _tmp7_);
-#line 1817 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_on_view_changed (self);
-#line 12221 "ImportPage.c"
-}
-
-
-static void
-import_page_real_set_display_titles (CheckerboardPage* base,
- gboolean display)
-{
- ImportPage * self;
-#line 1820 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 1821 "/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), display);
-#line 1823 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle", display);
-#line 12236 "ImportPage.c"
-}
-
-
-static gpointer
-_view_filter_ref0 (gpointer self)
-{
-#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self ? view_filter_ref (self) : NULL;
-#line 12245 "ImportPage.c"
-}
-
-
-static SearchViewFilter*
-import_page_real_get_search_view_filter (CheckerboardPage* base)
-{
- ImportPage * self;
- SearchViewFilter* result = NULL;
- ImportPageImportPageSearchViewFilter* _tmp0_;
- SearchViewFilter* _tmp1_;
-#line 1827 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage);
-#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->search_filter;
-#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12266 "ImportPage.c"
-}
-
-
-static ImportPageImportViewManager*
-import_page_import_view_manager_construct (GType object_type,
- ImportPage* owner)
-{
- ImportPageImportViewManager* self = NULL;
- ImportPage* _tmp0_;
-#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_PAGE (owner), NULL);
-#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (ImportPageImportViewManager*) view_manager_construct (object_type);
-#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _g_object_ref0 (owner);
-#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->owner);
-#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->owner = _tmp0_;
-#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 12288 "ImportPage.c"
-}
-
-
-static ImportPageImportViewManager*
-import_page_import_view_manager_new (ImportPage* owner)
-{
-#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 12297 "ImportPage.c"
-}
-
-
-static DataView*
-import_page_import_view_manager_real_create_view (ViewManager* base,
- DataSource* source)
-{
- ImportPageImportViewManager * self;
- DataView* result = NULL;
- ImportPreview* _tmp0_;
-#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 475 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_preview_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_IMPORT_SOURCE, ImportSource));
-#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView);
-#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12318 "ImportPage.c"
-}
-
-
-static void
-import_page_import_view_manager_class_init (ImportPageImportViewManagerClass * klass)
-{
-#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_import_view_manager_parent_class = g_type_class_peek_parent (klass);
-#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ViewManagerClass *) klass)->finalize = import_page_import_view_manager_finalize;
-#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_type_class_add_private (klass, sizeof (ImportPageImportViewManagerPrivate));
-#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) import_page_import_view_manager_real_create_view;
-#line 12333 "ImportPage.c"
-}
-
-
-static void
-import_page_import_view_manager_instance_init (ImportPageImportViewManager * self)
-{
-#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv = IMPORT_PAGE_IMPORT_VIEW_MANAGER_GET_PRIVATE (self);
-#line 12342 "ImportPage.c"
-}
-
-
-static void
-import_page_import_view_manager_finalize (ViewManager * obj)
-{
- ImportPageImportViewManager * self;
-#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 469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->owner);
-#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- VIEW_MANAGER_CLASS (import_page_import_view_manager_parent_class)->finalize (obj);
-#line 12356 "ImportPage.c"
-}
-
-
-static GType
-import_page_import_view_manager_get_type (void)
-{
- static volatile gsize import_page_import_view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&import_page_import_view_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportPageImportViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_import_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPageImportViewManager), 0, (GInstanceInitFunc) import_page_import_view_manager_instance_init, NULL };
- GType import_page_import_view_manager_type_id;
- import_page_import_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "ImportPageImportViewManager", &g_define_type_info, 0);
- g_once_init_leave (&import_page_import_view_manager_type_id__volatile, import_page_import_view_manager_type_id);
- }
- return import_page_import_view_manager_type_id__volatile;
-}
-
-
-static gpointer
-_gp_context_wrapper_ref0 (gpointer self)
-{
-#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self ? gp_context_wrapper_ref (self) : NULL;
-#line 12379 "ImportPage.c"
-}
-
-
-static ImportPageCameraImportJob*
-import_page_camera_import_job_construct (GType object_type,
- GPContextWrapper* context,
- ImportSource* import_file,
- DuplicatedFile* duplicated_file)
-{
- ImportPageCameraImportJob* self = NULL;
- GPContextWrapper* _tmp0_;
- ImportSource* _tmp1_;
- DuplicatedFile* _tmp2_;
- Camera* _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- PhotoMetadata* _tmp7_ = NULL;
- PhotoMetadata* _tmp9_;
-#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (GP_IS_CONTEXT_WRAPPER (context), NULL);
-#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_IMPORT_SOURCE (import_file), NULL);
-#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 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (ImportPageCameraImportJob*) batch_import_job_construct (object_type);
-#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _gp_context_wrapper_ref0 (context);
-#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_context_wrapper_unref0 (self->priv->context);
-#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->context = _tmp0_;
-#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _g_object_ref0 (import_file);
-#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->import_file);
-#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->import_file = _tmp1_;
-#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _g_object_ref0 (duplicated_file);
-#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->duplicated_file);
-#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->duplicated_file = _tmp2_;
-#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = import_source_get_camera (import_file);
-#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_camera_unref0 (self->priv->camera);
-#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->camera = _tmp3_;
-#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = import_source_get_fulldir (import_file);
-#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->fulldir);
-#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->fulldir = _tmp4_;
-#line 503 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = self->priv->fulldir;
-#line 503 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_assert (_tmp5_ != NULL, "fulldir != null");
-#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = import_source_get_filename (import_file);
-#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->filename);
-#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->filename = _tmp6_;
-#line 505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->filesize = (guint64) import_source_get_filesize (import_file);
-#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (import_file, TYPE_PHOTO_IMPORT_SOURCE)) {
-#line 12451 "ImportPage.c"
- PhotoMetadata* _tmp8_;
-#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = photo_import_source_get_metadata (G_TYPE_CHECK_INSTANCE_TYPE (import_file, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) import_file) : NULL);
-#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (_tmp7_);
-#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _tmp8_;
-#line 12459 "ImportPage.c"
- } else {
-#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (_tmp7_);
-#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = NULL;
-#line 12465 "ImportPage.c"
- }
-#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = _media_metadata_ref0 (_tmp7_);
-#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (self->priv->metadata);
-#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->metadata = _tmp9_;
-#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->exposure_time = import_source_get_exposure_time (import_file);
-#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (_tmp7_);
-#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 12479 "ImportPage.c"
-}
-
-
-static ImportPageCameraImportJob*
-import_page_camera_import_job_new (GPContextWrapper* context,
- ImportSource* import_file,
- DuplicatedFile* duplicated_file)
-{
-#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 12490 "ImportPage.c"
-}
-
-
-static time_t
-import_page_camera_import_job_get_exposure_time (ImportPageCameraImportJob* self)
-{
- time_t result = 0;
- time_t _tmp0_;
-#line 511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IMPORT_PAGE_IS_CAMERA_IMPORT_JOB (self), 0);
-#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->exposure_time;
-#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12507 "ImportPage.c"
-}
-
-
-static DuplicatedFile*
-import_page_camera_import_job_real_get_duplicated_file (BatchImportJob* base)
-{
- ImportPageCameraImportJob * self;
- DuplicatedFile* result = NULL;
- DuplicatedFile* _tmp0_;
- DuplicatedFile* _tmp1_;
-#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 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->duplicated_file;
-#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12528 "ImportPage.c"
-}
-
-
-static time_t
-import_page_camera_import_job_real_get_exposure_time_override (BatchImportJob* base)
-{
- ImportPageCameraImportJob * self;
- time_t result = 0;
- time_t _tmp0_ = 0;
- ImportSource* _tmp1_;
-#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 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->import_file;
-#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIDEO_IMPORT_SOURCE)) {
-#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_page_camera_import_job_get_exposure_time (self);
-#line 12547 "ImportPage.c"
- } else {
-#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = (time_t) 0;
-#line 12551 "ImportPage.c"
- }
-#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp0_;
-#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12557 "ImportPage.c"
-}
-
-
-static gchar*
-import_page_camera_import_job_real_get_dest_identifier (BatchImportJob* base)
-{
- ImportPageCameraImportJob * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#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 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->filename;
-#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12578 "ImportPage.c"
-}
-
-
-static gchar*
-import_page_camera_import_job_real_get_source_identifier (BatchImportJob* base)
-{
- ImportPageCameraImportJob * self;
- gchar* result = NULL;
- ImportSource* _tmp0_;
- gchar* _tmp1_;
-#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 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->import_file;
-#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = import_source_get_filename (_tmp0_);
-#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12599 "ImportPage.c"
-}
-
-
-static gchar*
-import_page_camera_import_job_real_get_basename (BatchImportJob* base)
-{
- ImportPageCameraImportJob * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#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 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->filename;
-#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12620 "ImportPage.c"
-}
-
-
-static gchar*
-import_page_camera_import_job_real_get_path (BatchImportJob* base)
-{
- ImportPageCameraImportJob * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#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 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->fulldir;
-#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12641 "ImportPage.c"
-}
-
-
-static void
-import_page_camera_import_job_real_set_associated (BatchImportJob* base,
- BatchImportJob* associated)
-{
- ImportPageCameraImportJob * self;
- ImportPageCameraImportJob* _tmp0_;
-#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 539 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (associated));
-#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (associated, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB) ? ((ImportPageCameraImportJob*) associated) : NULL);
-#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_import_job_unref0 (self->priv->associated);
-#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->associated = _tmp0_;
-#line 12661 "ImportPage.c"
-}
-
-
-static ImportSource*
-import_page_camera_import_job_get_source (ImportPageCameraImportJob* self)
-{
- ImportSource* result = NULL;
- ImportSource* _tmp0_;
- ImportSource* _tmp1_;
-#line 543 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IMPORT_PAGE_IS_CAMERA_IMPORT_JOB (self), NULL);
-#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->import_file;
-#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp1_;
-#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12681 "ImportPage.c"
-}
-
-
-static gboolean
-import_page_camera_import_job_real_is_directory (BatchImportJob* base)
-{
- ImportPageCameraImportJob * self;
- gboolean result = FALSE;
-#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 548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12696 "ImportPage.c"
-}
-
-
-static gboolean
-import_page_camera_import_job_real_determine_file_size (BatchImportJob* base,
- guint64* filesize,
- GFile* * file)
-{
- ImportPageCameraImportJob * self;
- guint64 _vala_filesize = 0ULL;
- GFile* _vala_file = NULL;
- gboolean result = FALSE;
- guint64 _tmp0_;
-#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 552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_vala_file);
-#line 552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_file = NULL;
-#line 553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->filesize;
-#line 553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_filesize = _tmp0_;
-#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (filesize) {
-#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- *filesize = _vala_filesize;
-#line 12726 "ImportPage.c"
- }
-#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (file) {
-#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- *file = _vala_file;
-#line 12732 "ImportPage.c"
- } else {
-#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_vala_file);
-#line 12736 "ImportPage.c"
- }
-#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12740 "ImportPage.c"
-}
-
-
-static gboolean
-import_page_camera_import_job_real_prepare (BatchImportJob* base,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error)
-{
- ImportPageCameraImportJob * self;
- GFile* _vala_file_to_import = NULL;
- gboolean _vala_copy_to_library = FALSE;
- gboolean result = FALSE;
- GFile* dest_file = NULL;
- GFile* _tmp13_;
- GFile* _tmp17_;
- ImportPageCameraImportJob* _tmp26_;
- GFile* _tmp59_;
- GFile* _tmp60_;
- GError * _inner_error_ = NULL;
-#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 559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_file_to_import = NULL;
-#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_copy_to_library = FALSE;
-#line 562 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- dest_file = NULL;
-#line 12771 "ImportPage.c"
- {
- gboolean collision = FALSE;
- GFile* _tmp0_ = NULL;
- const gchar* _tmp1_;
- PhotoMetadata* _tmp2_;
- time_t _tmp3_;
- gboolean _tmp4_ = FALSE;
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->filename;
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = self->priv->metadata;
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = self->priv->exposure_time;
-#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 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- collision = _tmp4_;
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = _tmp5_;
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12795 "ImportPage.c"
- goto __catch81_g_error;
- }
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = _tmp0_;
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = NULL;
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dest_file);
-#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- dest_file = _tmp6_;
-#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 12808 "ImportPage.c"
- }
- goto __finally81;
- __catch81_g_error:
- {
- GError* err = NULL;
- ImportSource* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GError* _tmp10_;
- const gchar* _tmp11_;
-#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = self->priv->import_file;
-#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = import_source_get_filename (_tmp7_);
-#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = _tmp8_;
-#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = err;
-#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = _tmp10_->message;
-#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 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 12839 "ImportPage.c"
- }
- __finally81:
-#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12844 "ImportPage.c"
- gboolean _tmp12_ = FALSE;
-#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dest_file);
-#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp12_;
-#line 12852 "ImportPage.c"
- }
-#line 572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = dest_file;
-#line 572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp13_ == NULL) {
-#line 12858 "ImportPage.c"
- ImportSource* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = self->priv->import_file;
-#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = import_source_get_filename (_tmp14_);
-#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = _tmp15_;
-#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_message ("ImportPage.vala:573: Unable to generate local file for %s", _tmp16_);
-#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp16_);
-#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dest_file);
-#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (file_to_import) {
-#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- *file_to_import = _vala_file_to_import;
-#line 12880 "ImportPage.c"
- } else {
-#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 12884 "ImportPage.c"
- }
-#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (copy_to_library) {
-#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- *copy_to_library = _vala_copy_to_library;
-#line 12890 "ImportPage.c"
- }
-#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 12894 "ImportPage.c"
- }
-#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = dest_file;
-#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_monitor_blacklist_file (_tmp17_, "CameraImportJob.prepare");
-#line 12900 "ImportPage.c"
- {
- GPContextWrapper* _tmp18_;
- GPContext* _tmp19_;
- Camera* _tmp20_;
- const gchar* _tmp21_;
- const gchar* _tmp22_;
- GFile* _tmp23_;
-#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = self->priv->context;
-#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = _tmp18_->context;
-#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = self->priv->camera;
-#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = self->priv->fulldir;
-#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = self->priv->filename;
-#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = dest_file;
-#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gp_save_image (_tmp19_, _tmp20_, _tmp21_, _tmp22_, _tmp23_, &_inner_error_);
-#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12924 "ImportPage.c"
- goto __finally82;
- }
- }
- __finally82:
- {
- GFile* _tmp24_;
-#line 584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = dest_file;
-#line 584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_monitor_unblacklist_file (_tmp24_);
-#line 12935 "ImportPage.c"
- }
-#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12939 "ImportPage.c"
- gboolean _tmp25_ = FALSE;
-#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dest_file);
-#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp25_;
-#line 12947 "ImportPage.c"
- }
-#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = self->priv->associated;
-#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp26_ != NULL) {
-#line 12953 "ImportPage.c"
- BackingPhotoRow* _tmp42_;
- GFile* assoc_dest = NULL;
- BackingPhotoRow* _tmp45_;
- const gchar* _tmp46_;
- GFile* _tmp47_;
- GFile* _tmp48_;
- {
- BackingPhotoRow* _tmp27_ = NULL;
- GFile* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- ImportPageCameraImportJob* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- BackingPhotoRow* _tmp34_;
- BackingPhotoRow* _tmp35_;
- BackingPhotoRow* _tmp36_;
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = dest_file;
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp29_ = g_file_get_path (_tmp28_);
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp30_ = _tmp29_;
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp31_ = self->priv->associated;
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp32_ = batch_import_job_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_BATCH_IMPORT_JOB, BatchImportJob));
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp33_ = _tmp32_;
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp34_ = raw_developer_create_backing_row_for_development (RAW_DEVELOPER_CAMERA, _tmp30_, _tmp33_, &_inner_error_);
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp35_ = _tmp34_;
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp33_);
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (_tmp30_);
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = _tmp35_;
-#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12995 "ImportPage.c"
- goto __catch83_g_error;
- }
-#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp36_ = _tmp27_;
-#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = NULL;
-#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _backing_photo_row_unref0 (self->priv->associated_file);
-#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->associated_file = _tmp36_;
-#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _backing_photo_row_unref0 (_tmp27_);
-#line 13008 "ImportPage.c"
- }
- goto __finally83;
- __catch83_g_error:
- {
- GError* err = NULL;
- ImportPageCameraImportJob* _tmp37_;
- const gchar* _tmp38_;
- GError* _tmp39_;
- const gchar* _tmp40_;
-#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- err = _inner_error_;
-#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _inner_error_ = NULL;
-#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp37_ = self->priv->associated;
-#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp38_ = _tmp37_->priv->filename;
-#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp39_ = err;
-#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp40_ = _tmp39_->message;
-#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_warning ("ImportPage.vala:594: Unable to generate backing associated file for %s" \
-": %s", _tmp38_, _tmp40_);
-#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_error_free0 (err);
-#line 13034 "ImportPage.c"
- }
- __finally83:
-#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13039 "ImportPage.c"
- gboolean _tmp41_ = FALSE;
-#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dest_file);
-#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp41_;
-#line 13047 "ImportPage.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp42_ = self->priv->associated_file;
-#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp42_ == NULL) {
-#line 13053 "ImportPage.c"
- ImportPageCameraImportJob* _tmp43_;
- const gchar* _tmp44_;
-#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp43_ = self->priv->associated;
-#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp44_ = _tmp43_->priv->filename;
-#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_message ("ImportPage.vala:599: Unable to generate backing associated file for %s", _tmp44_);
-#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dest_file);
-#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (file_to_import) {
-#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- *file_to_import = _vala_file_to_import;
-#line 13070 "ImportPage.c"
- } else {
-#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 13074 "ImportPage.c"
- }
-#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (copy_to_library) {
-#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- *copy_to_library = _vala_copy_to_library;
-#line 13080 "ImportPage.c"
- }
-#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13084 "ImportPage.c"
- }
-#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp45_ = self->priv->associated_file;
-#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp46_ = _tmp45_->filepath;
-#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp47_ = g_file_new_for_path (_tmp46_);
-#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- assoc_dest = _tmp47_;
-#line 604 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp48_ = assoc_dest;
-#line 604 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_monitor_blacklist_file (_tmp48_, "CameraImportJob.prepare");
-#line 13098 "ImportPage.c"
- {
- GPContextWrapper* _tmp49_;
- GPContext* _tmp50_;
- Camera* _tmp51_;
- ImportPageCameraImportJob* _tmp52_;
- const gchar* _tmp53_;
- ImportPageCameraImportJob* _tmp54_;
- const gchar* _tmp55_;
- GFile* _tmp56_;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp49_ = self->priv->context;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp50_ = _tmp49_->context;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp51_ = self->priv->camera;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp52_ = self->priv->associated;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp53_ = _tmp52_->priv->fulldir;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp54_ = self->priv->associated;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp55_ = _tmp54_->priv->filename;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp56_ = assoc_dest;
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- gp_save_image (_tmp50_, _tmp51_, _tmp53_, _tmp55_, _tmp56_, &_inner_error_);
-#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13128 "ImportPage.c"
- goto __finally84;
- }
- }
- __finally84:
- {
- GFile* _tmp57_;
-#line 609 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp57_ = assoc_dest;
-#line 609 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- library_monitor_unblacklist_file (_tmp57_);
-#line 13139 "ImportPage.c"
- }
-#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13143 "ImportPage.c"
- gboolean _tmp58_ = FALSE;
-#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_propagate_error (error, _inner_error_);
-#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (assoc_dest);
-#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dest_file);
-#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return _tmp58_;
-#line 13153 "ImportPage.c"
- }
-#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (assoc_dest);
-#line 13157 "ImportPage.c"
- }
-#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp59_ = dest_file;
-#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp60_ = _g_object_ref0 (_tmp59_);
-#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_file_to_import = _tmp60_;
-#line 614 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _vala_copy_to_library = FALSE;
-#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (dest_file);
-#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (file_to_import) {
-#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- *file_to_import = _vala_file_to_import;
-#line 13177 "ImportPage.c"
- } else {
-#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 13181 "ImportPage.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (copy_to_library) {
-#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- *copy_to_library = _vala_copy_to_library;
-#line 13187 "ImportPage.c"
- }
-#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13191 "ImportPage.c"
-}
-
-
-static GFile*
-import_page_camera_import_job_real_get_associated_file (BatchImportJob* base)
-{
- ImportPageCameraImportJob * self;
- GFile* result = NULL;
- BackingPhotoRow* _tmp0_;
- BackingPhotoRow* _tmp1_;
- const gchar* _tmp2_;
- GFile* _tmp3_;
-#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 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = self->priv->associated_file;
-#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp0_ == NULL) {
-#line 621 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = NULL;
-#line 621 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13214 "ImportPage.c"
- }
-#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = self->priv->associated_file;
-#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = _tmp1_->filepath;
-#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = _tmp3_;
-#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13226 "ImportPage.c"
-}
-
-
-static void
-import_page_camera_import_job_class_init (ImportPageCameraImportJobClass * klass)
-{
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_camera_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->finalize = import_page_camera_import_job_finalize;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_type_class_add_private (klass, sizeof (ImportPageCameraImportJobPrivate));
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->get_duplicated_file = (DuplicatedFile* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_duplicated_file;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->get_exposure_time_override = (time_t (*) (BatchImportJob *)) import_page_camera_import_job_real_get_exposure_time_override;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_dest_identifier;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_source_identifier;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_basename;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_path;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) import_page_camera_import_job_real_set_associated;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) import_page_camera_import_job_real_is_directory;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) import_page_camera_import_job_real_determine_file_size;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) import_page_camera_import_job_real_prepare;
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((BatchImportJobClass *) klass)->get_associated_file = (GFile* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_associated_file;
-#line 13261 "ImportPage.c"
-}
-
-
-static void
-import_page_camera_import_job_instance_init (ImportPageCameraImportJob * self)
-{
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv = IMPORT_PAGE_CAMERA_IMPORT_JOB_GET_PRIVATE (self);
-#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->associated = NULL;
-#line 490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->associated_file = NULL;
-#line 13274 "ImportPage.c"
-}
-
-
-static void
-import_page_camera_import_job_finalize (BatchImportJob * obj)
-{
- ImportPageCameraImportJob * self;
-#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 481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_context_wrapper_unref0 (self->priv->context);
-#line 482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->import_file);
-#line 483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_camera_unref0 (self->priv->camera);
-#line 484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->fulldir);
-#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->filename);
-#line 487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _media_metadata_unref0 (self->priv->metadata);
-#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _batch_import_job_unref0 (self->priv->associated);
-#line 490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _backing_photo_row_unref0 (self->priv->associated_file);
-#line 491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->duplicated_file);
-#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- BATCH_IMPORT_JOB_CLASS (import_page_camera_import_job_parent_class)->finalize (obj);
-#line 13304 "ImportPage.c"
-}
-
-
-static GType
-import_page_camera_import_job_get_type (void)
-{
- static volatile gsize import_page_camera_import_job_type_id__volatile = 0;
- if (g_once_init_enter (&import_page_camera_import_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportPageCameraImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_camera_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPageCameraImportJob), 0, (GInstanceInitFunc) import_page_camera_import_job_instance_init, NULL };
- GType import_page_camera_import_job_type_id;
- import_page_camera_import_job_type_id = g_type_register_static (TYPE_BATCH_IMPORT_JOB, "ImportPageCameraImportJob", &g_define_type_info, 0);
- g_once_init_leave (&import_page_camera_import_job_type_id__volatile, import_page_camera_import_job_type_id);
- }
- return import_page_camera_import_job_type_id__volatile;
-}
-
-
-static guint
-import_page_import_page_search_view_filter_real_get_criteria (SearchViewFilter* base)
-{
- ImportPageImportPageSearchViewFilter * self;
- guint result = 0U;
-#line 629 "/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 630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = (guint) (SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_MEDIA);
-#line 630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13333 "ImportPage.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 13353 "ImportPage.c"
-}
-
-
-static gboolean
-import_page_import_page_search_view_filter_real_predicate (ViewFilter* base,
- DataView* view)
-{
- ImportPageImportPageSearchViewFilter * self;
- gboolean result = FALSE;
- ImportSource* source = NULL;
- ImportSource* _tmp0_;
- gboolean _tmp1_ = FALSE;
-#line 633 "/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 633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 634 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_IMPORT_PREVIEW, ImportPreview));
-#line 634 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- source = _tmp0_;
-#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if ((gboolean) (SEARCH_FILTER_CRITERIA_MEDIA & search_view_filter_get_criteria (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)))) {
-#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = search_view_filter_filter_by_media_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 13378 "ImportPage.c"
- } else {
-#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = FALSE;
-#line 13382 "ImportPage.c"
- }
-#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp1_) {
-#line 13386 "ImportPage.c"
- ImportSource* _tmp2_;
-#line 638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = source;
-#line 638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_VIDEO_IMPORT_SOURCE)) {
-#line 13392 "ImportPage.c"
- gboolean _tmp3_;
- gboolean _tmp4_;
-#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = search_view_filter_get_show_media_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp4_ = _tmp3_;
-#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp4_) {
-#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13407 "ImportPage.c"
- }
- } else {
- ImportSource* _tmp5_;
-#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp5_ = source;
-#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PHOTO_IMPORT_SOURCE)) {
-#line 13415 "ImportPage.c"
- PhotoImportSource* photo = NULL;
- ImportSource* _tmp6_;
- PhotoImportSource* _tmp7_;
- PhotoImportSource* _tmp8_;
-#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp6_ = source;
-#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp6_) : NULL);
-#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- photo = _tmp7_;
-#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp8_ = photo;
-#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (photo_import_source_get_file_format (_tmp8_) == PHOTO_FILE_FORMAT_RAW) {
-#line 13430 "ImportPage.c"
- PhotoImportSource* _tmp9_;
- PhotoImportSource* _tmp10_;
- PhotoImportSource* _tmp11_;
- gboolean _tmp12_;
-#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp9_ = photo;
-#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp10_ = photo_import_source_get_associated (_tmp9_);
-#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp11_ = _tmp10_;
-#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp12_ = _tmp11_ != NULL;
-#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp12_) {
-#line 13447 "ImportPage.c"
- gboolean _tmp13_ = FALSE;
- gboolean _tmp14_;
- gboolean _tmp15_;
-#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp14_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp15_ = _tmp14_;
-#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp15_) {
-#line 13457 "ImportPage.c"
- gboolean _tmp16_;
- gboolean _tmp17_;
-#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp16_ = search_view_filter_get_show_media_raw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp17_ = _tmp16_;
-#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = !_tmp17_;
-#line 13466 "ImportPage.c"
- } else {
-#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp13_ = FALSE;
-#line 13470 "ImportPage.c"
- }
-#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (_tmp13_) {
-#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo);
-#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13482 "ImportPage.c"
- }
- } else {
- gboolean _tmp18_;
- gboolean _tmp19_;
-#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp18_ = search_view_filter_get_show_media_raw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp19_ = _tmp18_;
-#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp19_) {
-#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo);
-#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13501 "ImportPage.c"
- }
- }
- } else {
- gboolean _tmp20_;
- gboolean _tmp21_;
-#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp20_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp21_ = _tmp20_;
-#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!_tmp21_) {
-#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo);
-#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13521 "ImportPage.c"
- }
- }
-#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (photo);
-#line 13526 "ImportPage.c"
- }
- }
- }
-#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if ((gboolean) (SEARCH_FILTER_CRITERIA_TEXT & search_view_filter_get_criteria (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)))) {
-#line 13532 "ImportPage.c"
- const gchar* keywords = NULL;
- ImportSource* _tmp22_;
- const gchar* _tmp23_;
- const gchar* _tmp24_;
- gint _tmp25_;
- gchar** _tmp26_;
-#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp22_ = source;
-#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp23_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_INDEXABLE, Indexable));
-#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- keywords = _tmp23_;
-#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp24_ = keywords;
-#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (is_string_empty (_tmp24_)) {
-#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13555 "ImportPage.c"
- }
-#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp26_ = search_view_filter_get_search_filter_words (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter), &_tmp25_);
-#line 13559 "ImportPage.c"
- {
- gchar** word_collection = NULL;
- gint word_collection_length1 = 0;
- gint _word_collection_size_ = 0;
- gint word_it = 0;
-#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- word_collection = _tmp26_;
-#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- word_collection_length1 = _tmp25_;
-#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- for (word_it = 0; word_it < _tmp25_; word_it = word_it + 1) {
-#line 13571 "ImportPage.c"
- const gchar* word = NULL;
-#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- word = word_collection[word_it];
-#line 13575 "ImportPage.c"
- {
- const gchar* _tmp27_;
- const gchar* _tmp28_;
-#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp27_ = keywords;
-#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp28_ = word;
-#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- if (!string_contains (_tmp27_, _tmp28_)) {
-#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = FALSE;
-#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13591 "ImportPage.c"
- }
- }
- }
- }
- }
-#line 667 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = TRUE;
-#line 667 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (source);
-#line 667 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13603 "ImportPage.c"
-}
-
-
-static ImportPageImportPageSearchViewFilter*
-import_page_import_page_search_view_filter_construct (GType object_type)
-{
- ImportPageImportPageSearchViewFilter* self = NULL;
-#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (ImportPageImportPageSearchViewFilter*) search_view_filter_construct (object_type);
-#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 13615 "ImportPage.c"
-}
-
-
-static ImportPageImportPageSearchViewFilter*
-import_page_import_page_search_view_filter_new (void)
-{
-#line 628 "/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 13624 "ImportPage.c"
-}
-
-
-static void
-import_page_import_page_search_view_filter_class_init (ImportPageImportPageSearchViewFilterClass * klass)
-{
-#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_import_page_search_view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) import_page_import_page_search_view_filter_real_get_criteria;
-#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) import_page_import_page_search_view_filter_real_predicate;
-#line 13637 "ImportPage.c"
-}
-
-
-static void
-import_page_import_page_search_view_filter_instance_init (ImportPageImportPageSearchViewFilter * self)
-{
-}
-
-
-static GType
-import_page_import_page_search_view_filter_get_type (void)
-{
- static volatile gsize import_page_import_page_search_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&import_page_import_page_search_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportPageImportPageSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_import_page_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPageImportPageSearchViewFilter), 0, (GInstanceInitFunc) import_page_import_page_search_view_filter_instance_init, NULL };
- GType import_page_import_page_search_view_filter_type_id;
- import_page_import_page_search_view_filter_type_id = g_type_register_static (TYPE_SEARCH_VIEW_FILTER, "ImportPageImportPageSearchViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&import_page_import_page_search_view_filter_type_id__volatile, import_page_import_page_search_view_filter_type_id);
- }
- return import_page_import_page_search_view_filter_type_id__volatile;
-}
-
-
-static gboolean
-import_page_hide_imported_view_filter_real_predicate (ViewFilter* base,
- DataView* view)
-{
- ImportPageHideImportedViewFilter * self;
- gboolean result = FALSE;
-#line 673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilter);
-#line 673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 674 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- result = !import_preview_is_already_imported (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_IMPORT_PREVIEW, ImportPreview));
-#line 674 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return result;
-#line 13675 "ImportPage.c"
-}
-
-
-static ImportPageHideImportedViewFilter*
-import_page_hide_imported_view_filter_construct (GType object_type)
-{
- ImportPageHideImportedViewFilter* self = NULL;
-#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = (ImportPageHideImportedViewFilter*) view_filter_construct (object_type);
-#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return self;
-#line 13687 "ImportPage.c"
-}
-
-
-static ImportPageHideImportedViewFilter*
-import_page_hide_imported_view_filter_new (void)
-{
-#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- return import_page_hide_imported_view_filter_construct (IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER);
-#line 13696 "ImportPage.c"
-}
-
-
-static void
-import_page_hide_imported_view_filter_class_init (ImportPageHideImportedViewFilterClass * klass)
-{
-#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_hide_imported_view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) import_page_hide_imported_view_filter_real_predicate;
-#line 13707 "ImportPage.c"
-}
-
-
-static void
-import_page_hide_imported_view_filter_instance_init (ImportPageHideImportedViewFilter * self)
-{
-}
-
-
-static GType
-import_page_hide_imported_view_filter_get_type (void)
-{
- static volatile gsize import_page_hide_imported_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&import_page_hide_imported_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportPageHideImportedViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_hide_imported_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPageHideImportedViewFilter), 0, (GInstanceInitFunc) import_page_hide_imported_view_filter_instance_init, NULL };
- GType import_page_hide_imported_view_filter_type_id;
- import_page_hide_imported_view_filter_type_id = g_type_register_static (TYPE_VIEW_FILTER, "ImportPageHideImportedViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&import_page_hide_imported_view_filter_type_id__volatile, import_page_hide_imported_view_filter_type_id);
- }
- return import_page_hide_imported_view_filter_type_id__volatile;
-}
-
-
-static void
-import_page_class_init (ImportPageClass * klass)
-{
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- import_page_parent_class = g_type_class_peek_parent (klass);
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_type_class_add_private (klass, sizeof (ImportPagePrivate));
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((PageClass *) klass)->get_toolbar = (GtkToolbar* (*) (Page *)) import_page_real_get_toolbar;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) import_page_real_get_view_tracker;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((CheckerboardPageClass *) klass)->get_view_empty_message = (gchar* (*) (CheckerboardPage *)) import_page_real_get_view_empty_message;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((CheckerboardPageClass *) klass)->get_filter_no_match_message = (gchar* (*) (CheckerboardPage *)) import_page_real_get_filter_no_match_message;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) import_page_real_init_collect_ui_filenames;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) import_page_real_add_actions;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) import_page_real_remove_actions;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) import_page_real_init_actions;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) import_page_real_switched_to;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((PageClass *) klass)->ready = (void (*) (Page *)) import_page_real_ready;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((CheckerboardPageClass *) klass)->set_display_titles = (void (*) (CheckerboardPage *, gboolean)) import_page_real_set_display_titles;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) import_page_real_get_search_view_filter;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_OBJECT_CLASS (klass)->finalize = import_page_finalize;
-#line 13764 "ImportPage.c"
-}
-
-
-static void
-import_page_instance_init (ImportPage * self)
-{
- GtkLabel* _tmp0_;
- GtkProgressBar* _tmp1_;
- ImportPageImportPageSearchViewFilter* _tmp2_;
- ImportPageHideImportedViewFilter* _tmp3_;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv = IMPORT_PAGE_GET_PRIVATE (self);
-#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->import_sources = NULL;
-#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = (GtkLabel*) gtk_label_new (NULL);
-#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp0_);
-#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->camera_label = _tmp0_;
-#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp1_ = (GtkProgressBar*) gtk_progress_bar_new ();
-#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_object_ref_sink (_tmp1_);
-#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->progress_bar = _tmp1_;
-#line 687 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->busy = FALSE;
-#line 688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refreshed = FALSE;
-#line 689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_result = GP_OK;
-#line 690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->refresh_error = NULL;
-#line 692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->volume_monitor = NULL;
-#line 693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->local_ref = NULL;
-#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = import_page_import_page_search_view_filter_new ();
-#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->search_filter = _tmp2_;
-#line 696 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp3_ = import_page_hide_imported_view_filter_new ();
-#line 696 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->hide_imported_filter = _tmp3_;
-#line 1160 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self->priv->claim_timeout = 500;
-#line 13813 "ImportPage.c"
-}
-
-
-static void
-import_page_finalize (GObject * obj)
-{
- ImportPage * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- VideoSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_PAGE, ImportPage);
-#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp0_ = library_photo_global;
-#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 767 "/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 768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _tmp2_ = video_global;
-#line 768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 768 "/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 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _data_collection_unref0 (self->priv->import_sources);
-#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->camera_label);
-#line 683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->hide_imported);
-#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->progress_bar);
-#line 685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _gp_camera_unref0 (self->priv->camera);
-#line 686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->uri);
-#line 690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->refresh_error);
-#line 691 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->camera_name);
-#line 692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->volume_monitor);
-#line 693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_object_unref0 (self->priv->local_ref);
-#line 694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _g_free0 (self->priv->icon);
-#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _view_filter_unref0 (self->priv->search_filter);
-#line 696 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _view_filter_unref0 (self->priv->hide_imported_filter);
-#line 697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- _core_tracker_unref0 (self->priv->tracker);
-#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala"
- G_OBJECT_CLASS (import_page_parent_class)->finalize (obj);
-#line 13869 "ImportPage.c"
-}
-
-
-GType
-import_page_get_type (void)
-{
- static volatile gsize import_page_type_id__volatile = 0;
- if (g_once_init_enter (&import_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPage), 0, (GInstanceInitFunc) import_page_instance_init, NULL };
- GType import_page_type_id;
- import_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "ImportPage", &g_define_type_info, 0);
- g_once_init_leave (&import_page_type_id__volatile, import_page_type_id);
- }
- return import_page_type_id__volatile;
-}
-
-
-
diff --git a/src/camera/ImportPage.vala b/src/camera/ImportPage.vala
index f7698a6..0839590 100644
--- a/src/camera/ImportPage.vala
+++ b/src/camera/ImportPage.vala
@@ -272,11 +272,7 @@ class ImportPreview : MediaSourceItem {
base(source, Dimensions(), source.get_name(), null);
this.duplicated_file = null;
-
- // draw sprocket holes as visual indications on video previews
- if (source is VideoImportSource)
- set_enable_sprockets(true);
-
+
// scale down pixbuf if necessary
Gdk.Pixbuf pixbuf = null;
try {
@@ -394,6 +390,10 @@ class ImportPreview : MediaSourceItem {
public ImportSource get_import_source() {
return (ImportSource) get_source();
}
+
+ protected override Gdk.Pixbuf? get_top_left_trinket(int scale) {
+ return (get_import_source() is VideoImportSource) ? Resources.get_video_trinket (scale) : null;
+ }
}
public class CameraViewTracker : Core.ViewTracker {
@@ -802,7 +802,7 @@ public class ImportPage : CheckerboardPage {
// Find button
Gtk.ToggleToolButton find_button = new Gtk.ToggleToolButton();
- find_button.set_icon_name("edit-find");
+ find_button.set_icon_name("edit-find-symbolic");
find_button.set_action_name ("win.CommonDisplaySearchbar");
toolbar.insert(find_button, -1);
@@ -812,7 +812,7 @@ public class ImportPage : CheckerboardPage {
// Import selected
Gtk.ToolButton import_selected_button = new Gtk.ToolButton(null, null);
- import_selected_button.set_icon_name("import");
+ import_selected_button.set_icon_name(Resources.IMPORT);
import_selected_button.set_label(_("Import _Selected"));
import_selected_button.is_important = true;
import_selected_button.use_underline = true;
@@ -822,7 +822,7 @@ public class ImportPage : CheckerboardPage {
// Import all
Gtk.ToolButton import_all_button = new Gtk.ToolButton(null, null);
- import_all_button.set_icon_name("import-all");
+ import_all_button.set_icon_name(Resources.IMPORT_ALL);
import_all_button.set_label(_("Import _All"));
import_all_button.is_important = true;
import_all_button.use_underline = true;
diff --git a/src/config/Config.c b/src/config/Config.c
deleted file mode 100644
index 7dd8334..0000000
--- a/src/config/Config.c
+++ /dev/null
@@ -1,1011 +0,0 @@
-/* Config.c generated by valac 0.40.4, the Vala compiler
- * generated from Config.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* This file is the master unit file for the Config unit. It should be edited to include
- * whatever code is deemed necessary.
- *
- * The init() and terminate() methods are mandatory.
- *
- * If the unit needs to be configured prior to initialization, add the proper parameters to
- * the preconfigure() method, implement it, and ensure in init() that it's been called.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <gdk/gdk.h>
-
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-typedef struct _ConfigurationFacadePrivate ConfigurationFacadePrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ())
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-typedef struct _ConfigFacadePrivate ConfigFacadePrivate;
-enum {
- CONFIG_FACADE_0_PROPERTY,
- CONFIG_FACADE_NUM_PROPERTIES
-};
-static GParamSpec* config_facade_properties[CONFIG_FACADE_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_GSETTINGS_CONFIGURATION_ENGINE (gsettings_configuration_engine_get_type ())
-#define GSETTINGS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine))
-#define GSETTINGS_CONFIGURATION_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngineClass))
-#define IS_GSETTINGS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE))
-#define IS_GSETTINGS_CONFIGURATION_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GSETTINGS_CONFIGURATION_ENGINE))
-#define GSETTINGS_CONFIGURATION_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngineClass))
-
-typedef struct _GSettingsConfigurationEngine GSettingsConfigurationEngine;
-typedef struct _GSettingsConfigurationEngineClass GSettingsConfigurationEngineClass;
-
-#define TYPE_CONFIGURATION_ENGINE (configuration_engine_get_type ())
-#define CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngine))
-#define IS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_ENGINE))
-#define CONFIGURATION_ENGINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngineIface))
-
-typedef struct _ConfigurationEngine ConfigurationEngine;
-typedef struct _ConfigurationEngineIface ConfigurationEngineIface;
-
-#define TYPE_CONFIGURABLE_PROPERTY (configurable_property_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-enum {
- CONFIG_FACADE_COLORS_CHANGED_SIGNAL,
- CONFIG_FACADE_NUM_SIGNALS
-};
-static guint config_facade_signals[CONFIG_FACADE_NUM_SIGNALS] = {0};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-typedef enum {
- FUZZY_PROPERTY_STATE_ENABLED,
- FUZZY_PROPERTY_STATE_DISABLED,
- FUZZY_PROPERTY_STATE_UNKNOWN
-} FuzzyPropertyState;
-
-struct _ConfigurationFacade {
- GObject parent_instance;
- ConfigurationFacadePrivate * priv;
-};
-
-struct _ConfigurationFacadeClass {
- GObjectClass parent_class;
- gboolean (*get_auto_import_from_library) (ConfigurationFacade* self);
- void (*set_auto_import_from_library) (ConfigurationFacade* self, gboolean auto_import);
- gchar* (*get_bg_color_name) (ConfigurationFacade* self);
- void (*set_bg_color_name) (ConfigurationFacade* self, const gchar* color_name);
- gchar* (*get_transparent_background_type) (ConfigurationFacade* self);
- void (*set_transparent_background_type) (ConfigurationFacade* self, const gchar* type);
- gchar* (*get_transparent_background_color) (ConfigurationFacade* self);
- void (*set_transparent_background_color) (ConfigurationFacade* self, const gchar* color_name);
- gboolean (*get_commit_metadata_to_masters) (ConfigurationFacade* self);
- void (*set_commit_metadata_to_masters) (ConfigurationFacade* self, gboolean commit_metadata);
- gchar* (*get_desktop_background) (ConfigurationFacade* self);
- void (*set_desktop_background) (ConfigurationFacade* self, const gchar* filename);
- gchar* (*get_screensaver) (ConfigurationFacade* self);
- void (*set_screensaver) (ConfigurationFacade* self, const gchar* filename);
- gchar* (*get_directory_pattern) (ConfigurationFacade* self);
- void (*set_directory_pattern) (ConfigurationFacade* self, const gchar* s);
- gchar* (*get_directory_pattern_custom) (ConfigurationFacade* self);
- void (*set_directory_pattern_custom) (ConfigurationFacade* self, const gchar* s);
- void (*get_direct_window_state) (ConfigurationFacade* self, gboolean* maximize, Dimensions* dimensions);
- void (*set_direct_window_state) (ConfigurationFacade* self, gboolean maximize, Dimensions* dimensions);
- gboolean (*get_display_basic_properties) (ConfigurationFacade* self);
- void (*set_display_basic_properties) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_extended_properties) (ConfigurationFacade* self);
- void (*set_display_extended_properties) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_sidebar) (ConfigurationFacade* self);
- void (*set_display_sidebar) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_toolbar) (ConfigurationFacade* self);
- void (*set_display_toolbar) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_search_bar) (ConfigurationFacade* self);
- void (*set_display_search_bar) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_photo_ratings) (ConfigurationFacade* self);
- void (*set_display_photo_ratings) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_photo_tags) (ConfigurationFacade* self);
- void (*set_display_photo_tags) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_photo_titles) (ConfigurationFacade* self);
- void (*set_display_photo_titles) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_photo_comments) (ConfigurationFacade* self);
- void (*set_display_photo_comments) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_event_comments) (ConfigurationFacade* self);
- void (*set_display_event_comments) (ConfigurationFacade* self, gboolean display);
- void (*get_event_photos_sort) (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by);
- void (*set_event_photos_sort) (ConfigurationFacade* self, gboolean sort_order, gint sort_by);
- gboolean (*get_events_sort_ascending) (ConfigurationFacade* self);
- void (*set_events_sort_ascending) (ConfigurationFacade* self, gboolean sort);
- gchar* (*get_external_photo_app) (ConfigurationFacade* self);
- void (*set_external_photo_app) (ConfigurationFacade* self, const gchar* external_photo_app);
- gchar* (*get_external_raw_app) (ConfigurationFacade* self);
- void (*set_external_raw_app) (ConfigurationFacade* self, const gchar* external_raw_app);
- ScaleConstraint (*get_export_constraint) (ConfigurationFacade* self);
- void (*set_export_constraint) (ConfigurationFacade* self, ScaleConstraint constraint);
- ExportFormatMode (*get_export_export_format_mode) (ConfigurationFacade* self);
- void (*set_export_export_format_mode) (ConfigurationFacade* self, ExportFormatMode export_format_mode);
- gboolean (*get_export_export_metadata) (ConfigurationFacade* self);
- void (*set_export_export_metadata) (ConfigurationFacade* self, gboolean export_metadata);
- PhotoFileFormat (*get_export_photo_file_format) (ConfigurationFacade* self);
- void (*set_export_photo_file_format) (ConfigurationFacade* self, PhotoFileFormat photo_file_format);
- JpegQuality (*get_export_quality) (ConfigurationFacade* self);
- void (*set_export_quality) (ConfigurationFacade* self, JpegQuality quality);
- gint (*get_export_scale) (ConfigurationFacade* self);
- void (*set_export_scale) (ConfigurationFacade* self, gint scale);
- RawDeveloper (*get_default_raw_developer) (ConfigurationFacade* self);
- void (*set_default_raw_developer) (ConfigurationFacade* self, RawDeveloper d);
- gboolean (*get_hide_photos_already_imported) (ConfigurationFacade* self);
- void (*set_hide_photos_already_imported) (ConfigurationFacade* self, gboolean hide_imported);
- gchar* (*get_import_dir) (ConfigurationFacade* self);
- void (*set_import_dir) (ConfigurationFacade* self, const gchar* import_dir);
- gboolean (*get_keep_relativity) (ConfigurationFacade* self);
- void (*set_keep_relativity) (ConfigurationFacade* self, gboolean keep_relativity);
- gboolean (*get_pin_toolbar_state) (ConfigurationFacade* self);
- void (*set_pin_toolbar_state) (ConfigurationFacade* self, gboolean state);
- gint (*get_last_crop_height) (ConfigurationFacade* self);
- void (*set_last_crop_height) (ConfigurationFacade* self, gint choice);
- gint (*get_last_crop_menu_choice) (ConfigurationFacade* self);
- void (*set_last_crop_menu_choice) (ConfigurationFacade* self, gint choice);
- gint (*get_last_crop_width) (ConfigurationFacade* self);
- void (*set_last_crop_width) (ConfigurationFacade* self, gint choice);
- gchar* (*get_last_used_service) (ConfigurationFacade* self);
- void (*set_last_used_service) (ConfigurationFacade* self, const gchar* service_name);
- gchar* (*get_last_used_dataimports_service) (ConfigurationFacade* self);
- void (*set_last_used_dataimports_service) (ConfigurationFacade* self, const gchar* service_name);
- void (*get_library_photos_sort) (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by);
- void (*set_library_photos_sort) (ConfigurationFacade* self, gboolean sort_order, gint sort_by);
- void (*get_library_window_state) (ConfigurationFacade* self, gboolean* maximize, Dimensions* dimensions);
- void (*set_library_window_state) (ConfigurationFacade* self, gboolean maximize, Dimensions* dimensions);
- gboolean (*get_modify_originals) (ConfigurationFacade* self);
- void (*set_modify_originals) (ConfigurationFacade* self, gboolean modify_originals);
- gint (*get_photo_thumbnail_scale) (ConfigurationFacade* self);
- void (*set_photo_thumbnail_scale) (ConfigurationFacade* self, gint scale);
- gdouble (*get_printing_content_height) (ConfigurationFacade* self);
- void (*set_printing_content_height) (ConfigurationFacade* self, gdouble content_height);
- gint (*get_printing_content_layout) (ConfigurationFacade* self);
- void (*set_printing_content_layout) (ConfigurationFacade* self, gint layout_code);
- gint (*get_printing_content_ppi) (ConfigurationFacade* self);
- void (*set_printing_content_ppi) (ConfigurationFacade* self, gint content_ppi);
- gint (*get_printing_content_units) (ConfigurationFacade* self);
- void (*set_printing_content_units) (ConfigurationFacade* self, gint units_code);
- gdouble (*get_printing_content_width) (ConfigurationFacade* self);
- void (*set_printing_content_width) (ConfigurationFacade* self, gdouble content_width);
- gint (*get_printing_images_per_page) (ConfigurationFacade* self);
- void (*set_printing_images_per_page) (ConfigurationFacade* self, gint images_per_page_code);
- gboolean (*get_printing_match_aspect_ratio) (ConfigurationFacade* self);
- void (*set_printing_match_aspect_ratio) (ConfigurationFacade* self, gboolean match_aspect_ratio);
- gboolean (*get_printing_print_titles) (ConfigurationFacade* self);
- void (*set_printing_print_titles) (ConfigurationFacade* self, gboolean print_titles);
- gint (*get_printing_size_selection) (ConfigurationFacade* self);
- void (*set_printing_size_selection) (ConfigurationFacade* self, gint size_code);
- gchar* (*get_printing_titles_font) (ConfigurationFacade* self);
- void (*set_printing_titles_font) (ConfigurationFacade* self, const gchar* font_name);
- gboolean (*get_show_welcome_dialog) (ConfigurationFacade* self);
- void (*set_show_welcome_dialog) (ConfigurationFacade* self, gboolean show);
- gint (*get_sidebar_position) (ConfigurationFacade* self);
- void (*set_sidebar_position) (ConfigurationFacade* self, gint position);
- gdouble (*get_slideshow_delay) (ConfigurationFacade* self);
- void (*set_slideshow_delay) (ConfigurationFacade* self, gdouble delay);
- gdouble (*get_slideshow_transition_delay) (ConfigurationFacade* self);
- void (*set_slideshow_transition_delay) (ConfigurationFacade* self, gdouble delay);
- gchar* (*get_slideshow_transition_effect_id) (ConfigurationFacade* self);
- void (*set_slideshow_transition_effect_id) (ConfigurationFacade* self, const gchar* id);
- gboolean (*get_slideshow_show_title) (ConfigurationFacade* self);
- void (*set_slideshow_show_title) (ConfigurationFacade* self, gboolean show_title);
- gboolean (*get_use_24_hour_time) (ConfigurationFacade* self);
- void (*set_use_24_hour_time) (ConfigurationFacade* self, gboolean use_24_hour_time);
- gboolean (*get_use_lowercase_filenames) (ConfigurationFacade* self);
- void (*set_use_lowercase_filenames) (ConfigurationFacade* self, gboolean b);
- gint (*get_video_interpreter_state_cookie) (ConfigurationFacade* self);
- void (*set_video_interpreter_state_cookie) (ConfigurationFacade* self, gint state_cookie);
- gboolean (*get_plugin_bool) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def);
- void (*set_plugin_bool) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val);
- gdouble (*get_plugin_double) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def);
- void (*set_plugin_double) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val);
- gint (*get_plugin_int) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint def);
- void (*set_plugin_int) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint val);
- gchar* (*get_plugin_string) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def);
- void (*set_plugin_string) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val);
- void (*unset_plugin_key) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key);
- FuzzyPropertyState (*is_plugin_enabled) (ConfigurationFacade* self, const gchar* id);
- void (*set_plugin_enabled) (ConfigurationFacade* self, const gchar* id, gboolean enabled);
-};
-
-struct _ConfigFacade {
- ConfigurationFacade parent_instance;
- ConfigFacadePrivate * priv;
-};
-
-struct _ConfigFacadeClass {
- ConfigurationFacadeClass parent_class;
-};
-
-struct _ConfigFacadePrivate {
- gchar* bg_color;
- gchar* selected_color;
- gchar* unselected_color;
- gchar* unfocused_selected_color;
- gchar* border_color;
-};
-
-typedef enum {
- CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY = 0,
- CONFIGURABLE_PROPERTY_BG_COLOR_NAME,
- CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE,
- CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR,
- CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS,
- CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE,
- CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE,
- CONFIGURABLE_PROPERTY_SCREENSAVER_FILE,
- CONFIGURABLE_PROPERTY_SCREENSAVER_MODE,
- CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN,
- CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH,
- CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES,
- CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS,
- CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES,
- CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR,
- CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR,
- CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS,
- CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY,
- CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT,
- CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE,
- CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA,
- CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT,
- CONFIGURABLE_PROPERTY_EXPORT_QUALITY,
- CONFIGURABLE_PROPERTY_EXPORT_SCALE,
- CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP,
- CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP,
- CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED,
- CONFIGURABLE_PROPERTY_IMPORT_DIR,
- CONFIGURABLE_PROPERTY_KEEP_RELATIVITY,
- CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT,
- CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE,
- CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH,
- CONFIGURABLE_PROPERTY_LAST_USED_SERVICE,
- CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE,
- CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH,
- CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS,
- CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE,
- CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH,
- CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE,
- CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO,
- CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES,
- CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION,
- CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT,
- CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT,
- CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG,
- CONFIGURABLE_PROPERTY_SIDEBAR_POSITION,
- CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY,
- CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY,
- CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID,
- CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE,
- CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME,
- CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES,
- CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE,
- CONFIGURABLE_PROPERTY_NUM_PROPERTIES
-} ConfigurableProperty;
-
-typedef enum {
- CONFIGURATION_ERROR_PROPERTY_HAS_NO_VALUE,
- CONFIGURATION_ERROR_ENGINE_ERROR
-} ConfigurationError;
-#define CONFIGURATION_ERROR configuration_error_quark ()
-struct _ConfigurationEngineIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (ConfigurationEngine* self);
- gint (*get_int_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_int_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error);
- gint (*get_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error);
- gchar* (*get_string_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_string_property) (ConfigurationEngine* self, ConfigurableProperty p, const gchar* val, GError** error);
- gboolean (*get_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, gboolean val, GError** error);
- gdouble (*get_double_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_double_property) (ConfigurationEngine* self, ConfigurableProperty p, gdouble val, GError** error);
- gboolean (*get_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def);
- void (*set_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val);
- gdouble (*get_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def);
- void (*set_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val);
- gint (*get_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint def);
- void (*set_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint val);
- gchar* (*get_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def);
- void (*set_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val);
- void (*unset_plugin_key) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key);
- FuzzyPropertyState (*is_plugin_enabled) (ConfigurationEngine* self, const gchar* id);
- void (*set_plugin_enabled) (ConfigurationEngine* self, const gchar* id, gboolean enabled);
-};
-
-
-static gpointer config_facade_parent_class = NULL;
-static ConfigFacade* config_facade_instance;
-static ConfigFacade* config_facade_instance = NULL;
-
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType fuzzy_property_state_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-#define CONFIG_FACADE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CONFIG_TYPE_FACADE, ConfigFacadePrivate))
-#define CONFIG_FACADE_WIDTH_DEFAULT 1024
-#define CONFIG_FACADE_HEIGHT_DEFAULT 768
-#define CONFIG_FACADE_SIDEBAR_MIN_POSITION 180
-#define CONFIG_FACADE_SIDEBAR_MAX_POSITION 1000
-#define CONFIG_FACADE_DEFAULT_BG_COLOR "#444"
-#define CONFIG_FACADE_NO_VIDEO_INTERPRETER_STATE -1
-#define CONFIG_FACADE_BLACK_THRESHOLD 0.61
-#define CONFIG_FACADE_DARK_SELECTED_COLOR "#0AD"
-#define CONFIG_FACADE_LIGHT_SELECTED_COLOR "#2DF"
-#define CONFIG_FACADE_DARK_UNSELECTED_COLOR "#000"
-#define CONFIG_FACADE_LIGHT_UNSELECTED_COLOR "#FFF"
-#define CONFIG_FACADE_DARK_BORDER_COLOR "#999"
-#define CONFIG_FACADE_LIGHT_BORDER_COLOR "#AAA"
-#define CONFIG_FACADE_DARK_UNFOCUSED_SELECTED_COLOR "#6fc4dd"
-#define CONFIG_FACADE_LIGHT_UNFOCUSED_SELECTED_COLOR "#99efff"
-static ConfigFacade* config_facade_new (void);
-static ConfigFacade* config_facade_construct (GType object_type);
-GSettingsConfigurationEngine* gsettings_configuration_engine_new (void);
-GSettingsConfigurationEngine* gsettings_configuration_engine_construct (GType object_type);
-GType gsettings_configuration_engine_get_type (void) G_GNUC_CONST;
-GType configurable_property_get_type (void) G_GNUC_CONST;
-GQuark configuration_error_quark (void);
-GType configuration_engine_get_type (void) G_GNUC_CONST;
-ConfigurationFacade* configuration_facade_construct (GType object_type,
- ConfigurationEngine* engine);
-static void config_facade_on_color_name_changed (ConfigFacade* self);
-static void _config_facade_on_color_name_changed_configuration_facade_bg_color_name_changed (ConfigurationFacade* _sender,
- gpointer self);
-static void _config_facade_on_color_name_changed_configuration_facade_transparent_background_type_changed (ConfigurationFacade* _sender,
- gpointer self);
-static void _config_facade_on_color_name_changed_configuration_facade_transparent_background_color_changed (ConfigurationFacade* _sender,
- gpointer self);
-ConfigFacade* config_facade_get_instance (void);
-static void config_facade_set_text_colors (ConfigFacade* self,
- GdkRGBA* bg_color);
-static void config_facade_get_colors (ConfigFacade* self);
-gchar* configuration_facade_get_bg_color_name (ConfigurationFacade* self);
-gboolean is_color_parsable (const gchar* spec);
-void parse_color (const gchar* spec,
- GdkRGBA* result);
-void config_facade_get_bg_color (ConfigFacade* self,
- GdkRGBA* result);
-gboolean is_string_empty (const gchar* s);
-void config_facade_get_selected_color (ConfigFacade* self,
- gboolean in_focus,
- GdkRGBA* result);
-void config_facade_get_unselected_color (ConfigFacade* self,
- GdkRGBA* result);
-void config_facade_get_border_color (ConfigFacade* self,
- GdkRGBA* result);
-void config_facade_set_bg_color (ConfigFacade* self,
- GdkRGBA* color);
-void configuration_facade_set_bg_color_name (ConfigurationFacade* self,
- const gchar* color_name);
-void config_facade_commit_bg_color (ConfigFacade* self);
-static void config_facade_finalize (GObject * obj);
-void config_preconfigure (void);
-void config_init (GError** error);
-void config_terminate (void);
-
-
-static void
-_config_facade_on_color_name_changed_configuration_facade_bg_color_name_changed (ConfigurationFacade* _sender,
- gpointer self)
-{
-#line 49 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_on_color_name_changed ((ConfigFacade*) self);
-#line 499 "Config.c"
-}
-
-
-static void
-_config_facade_on_color_name_changed_configuration_facade_transparent_background_type_changed (ConfigurationFacade* _sender,
- gpointer self)
-{
-#line 50 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_on_color_name_changed ((ConfigFacade*) self);
-#line 509 "Config.c"
-}
-
-
-static void
-_config_facade_on_color_name_changed_configuration_facade_transparent_background_color_changed (ConfigurationFacade* _sender,
- gpointer self)
-{
-#line 51 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_on_color_name_changed ((ConfigFacade*) self);
-#line 519 "Config.c"
-}
-
-
-static ConfigFacade*
-config_facade_construct (GType object_type)
-{
- ConfigFacade * self = NULL;
- GSettingsConfigurationEngine* _tmp0_;
- GSettingsConfigurationEngine* _tmp1_;
-#line 47 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = gsettings_configuration_engine_new ();
-#line 47 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/config/Config.vala"
- self = (ConfigFacade*) configuration_facade_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine));
-#line 47 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_object_unref0 (_tmp1_);
-#line 49 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "bg-color-name-changed", (GCallback) _config_facade_on_color_name_changed_configuration_facade_bg_color_name_changed, self, 0);
-#line 50 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "transparent-background-type-changed", (GCallback) _config_facade_on_color_name_changed_configuration_facade_transparent_background_type_changed, self, 0);
-#line 51 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "transparent-background-color-changed", (GCallback) _config_facade_on_color_name_changed_configuration_facade_transparent_background_color_changed, self, 0);
-#line 46 "/home/jens/Source/shotwell/src/config/Config.vala"
- return self;
-#line 545 "Config.c"
-}
-
-
-static ConfigFacade*
-config_facade_new (void)
-{
-#line 46 "/home/jens/Source/shotwell/src/config/Config.vala"
- return config_facade_construct (CONFIG_TYPE_FACADE);
-#line 554 "Config.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 58 "/home/jens/Source/shotwell/src/config/Config.vala"
- return self ? g_object_ref (self) : NULL;
-#line 563 "Config.c"
-}
-
-
-ConfigFacade*
-config_facade_get_instance (void)
-{
- ConfigFacade* result = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
-#line 55 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = config_facade_instance;
-#line 55 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (_tmp0_ == NULL) {
-#line 578 "Config.c"
- ConfigFacade* _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = config_facade_new ();
-#line 56 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_object_unref0 (config_facade_instance);
-#line 56 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_instance = _tmp1_;
-#line 586 "Config.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp2_ = config_facade_instance;
-#line 58 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 58 "/home/jens/Source/shotwell/src/config/Config.vala"
- result = _tmp3_;
-#line 58 "/home/jens/Source/shotwell/src/config/Config.vala"
- return result;
-#line 596 "Config.c"
-}
-
-
-static void
-config_facade_on_color_name_changed (ConfigFacade* self)
-{
-#line 61 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 62 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_signal_emit (self, config_facade_signals[CONFIG_FACADE_COLORS_CHANGED_SIGNAL], 0);
-#line 607 "Config.c"
-}
-
-
-static void
-config_facade_set_text_colors (ConfigFacade* self,
- GdkRGBA* bg_color)
-{
- GdkRGBA _tmp0_;
- gdouble _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 65 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (bg_color != NULL);
-#line 69 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = *bg_color;
-#line 69 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = _tmp0_.red;
-#line 69 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (_tmp1_ > CONFIG_FACADE_BLACK_THRESHOLD) {
-#line 627 "Config.c"
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 70 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp2_ = g_strdup (CONFIG_FACADE_DARK_SELECTED_COLOR);
-#line 70 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->selected_color);
-#line 70 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->selected_color = _tmp2_;
-#line 71 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp3_ = g_strdup (CONFIG_FACADE_DARK_UNSELECTED_COLOR);
-#line 71 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->unselected_color);
-#line 71 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->unselected_color = _tmp3_;
-#line 72 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp4_ = g_strdup (CONFIG_FACADE_DARK_UNFOCUSED_SELECTED_COLOR);
-#line 72 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->unfocused_selected_color);
-#line 72 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->unfocused_selected_color = _tmp4_;
-#line 73 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp5_ = g_strdup (CONFIG_FACADE_DARK_BORDER_COLOR);
-#line 73 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->border_color);
-#line 73 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->border_color = _tmp5_;
-#line 656 "Config.c"
- } else {
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 75 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp6_ = g_strdup (CONFIG_FACADE_LIGHT_SELECTED_COLOR);
-#line 75 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->selected_color);
-#line 75 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->selected_color = _tmp6_;
-#line 76 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp7_ = g_strdup (CONFIG_FACADE_LIGHT_UNSELECTED_COLOR);
-#line 76 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->unselected_color);
-#line 76 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->unselected_color = _tmp7_;
-#line 77 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp8_ = g_strdup (CONFIG_FACADE_LIGHT_UNFOCUSED_SELECTED_COLOR);
-#line 77 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->unfocused_selected_color);
-#line 77 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->unfocused_selected_color = _tmp8_;
-#line 78 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp9_ = g_strdup (CONFIG_FACADE_LIGHT_BORDER_COLOR);
-#line 78 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->border_color);
-#line 78 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->border_color = _tmp9_;
-#line 686 "Config.c"
- }
-}
-
-
-static void
-config_facade_get_colors (ConfigFacade* self)
-{
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp3_;
- GdkRGBA _tmp4_ = {0};
-#line 82 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 83 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = CONFIGURATION_FACADE_CLASS (config_facade_parent_class)->get_bg_color_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 83 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->bg_color);
-#line 83 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->bg_color = _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = self->priv->bg_color;
-#line 85 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (!is_color_parsable (_tmp1_)) {
-#line 710 "Config.c"
- gchar* _tmp2_;
-#line 86 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp2_ = g_strdup (CONFIG_FACADE_DEFAULT_BG_COLOR);
-#line 86 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->bg_color);
-#line 86 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->bg_color = _tmp2_;
-#line 718 "Config.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp3_ = self->priv->bg_color;
-#line 88 "/home/jens/Source/shotwell/src/config/Config.vala"
- parse_color (_tmp3_, &_tmp4_);
-#line 88 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_set_text_colors (self, &_tmp4_);
-#line 726 "Config.c"
-}
-
-
-void
-config_facade_get_bg_color (ConfigFacade* self,
- GdkRGBA* result)
-{
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- GdkRGBA _tmp2_ = {0};
-#line 91 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 92 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = self->priv->bg_color;
-#line 92 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (is_string_empty (_tmp0_)) {
-#line 93 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_get_colors (self);
-#line 745 "Config.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = self->priv->bg_color;
-#line 95 "/home/jens/Source/shotwell/src/config/Config.vala"
- parse_color (_tmp1_, &_tmp2_);
-#line 95 "/home/jens/Source/shotwell/src/config/Config.vala"
- *result = _tmp2_;
-#line 95 "/home/jens/Source/shotwell/src/config/Config.vala"
- return;
-#line 755 "Config.c"
-}
-
-
-void
-config_facade_get_selected_color (ConfigFacade* self,
- gboolean in_focus,
- GdkRGBA* result)
-{
-#line 98 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 99 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (in_focus) {
-#line 768 "Config.c"
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- GdkRGBA _tmp2_ = {0};
-#line 100 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = self->priv->selected_color;
-#line 100 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (is_string_empty (_tmp0_)) {
-#line 101 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_get_colors (self);
-#line 778 "Config.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = self->priv->selected_color;
-#line 103 "/home/jens/Source/shotwell/src/config/Config.vala"
- parse_color (_tmp1_, &_tmp2_);
-#line 103 "/home/jens/Source/shotwell/src/config/Config.vala"
- *result = _tmp2_;
-#line 103 "/home/jens/Source/shotwell/src/config/Config.vala"
- return;
-#line 788 "Config.c"
- } else {
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- GdkRGBA _tmp5_ = {0};
-#line 105 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp3_ = self->priv->unfocused_selected_color;
-#line 105 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (is_string_empty (_tmp3_)) {
-#line 106 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_get_colors (self);
-#line 799 "Config.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp4_ = self->priv->unfocused_selected_color;
-#line 108 "/home/jens/Source/shotwell/src/config/Config.vala"
- parse_color (_tmp4_, &_tmp5_);
-#line 108 "/home/jens/Source/shotwell/src/config/Config.vala"
- *result = _tmp5_;
-#line 108 "/home/jens/Source/shotwell/src/config/Config.vala"
- return;
-#line 809 "Config.c"
- }
-}
-
-
-void
-config_facade_get_unselected_color (ConfigFacade* self,
- GdkRGBA* result)
-{
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- GdkRGBA _tmp2_ = {0};
-#line 112 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 113 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = self->priv->unselected_color;
-#line 113 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (is_string_empty (_tmp0_)) {
-#line 114 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_get_colors (self);
-#line 829 "Config.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = self->priv->unselected_color;
-#line 116 "/home/jens/Source/shotwell/src/config/Config.vala"
- parse_color (_tmp1_, &_tmp2_);
-#line 116 "/home/jens/Source/shotwell/src/config/Config.vala"
- *result = _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/config/Config.vala"
- return;
-#line 839 "Config.c"
-}
-
-
-void
-config_facade_get_border_color (ConfigFacade* self,
- GdkRGBA* result)
-{
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- GdkRGBA _tmp2_ = {0};
-#line 119 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 120 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = self->priv->border_color;
-#line 120 "/home/jens/Source/shotwell/src/config/Config.vala"
- if (is_string_empty (_tmp0_)) {
-#line 121 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_get_colors (self);
-#line 858 "Config.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = self->priv->border_color;
-#line 123 "/home/jens/Source/shotwell/src/config/Config.vala"
- parse_color (_tmp1_, &_tmp2_);
-#line 123 "/home/jens/Source/shotwell/src/config/Config.vala"
- *result = _tmp2_;
-#line 123 "/home/jens/Source/shotwell/src/config/Config.vala"
- return;
-#line 868 "Config.c"
-}
-
-
-void
-config_facade_set_bg_color (ConfigFacade* self,
- GdkRGBA* color)
-{
- guint8 col_tmp = 0U;
- GdkRGBA _tmp0_;
- gdouble _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- GdkRGBA _tmp4_;
-#line 126 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 126 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (color != NULL);
-#line 127 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = *color;
-#line 127 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp1_ = _tmp0_.red;
-#line 127 "/home/jens/Source/shotwell/src/config/Config.vala"
- col_tmp = (guint8) (_tmp1_ * 255.0);
-#line 129 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp2_ = g_strdup_printf ("#%02X%02X%02X", (guint) col_tmp, (guint) col_tmp, (guint) col_tmp);
-#line 129 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->bg_color);
-#line 129 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->bg_color = _tmp2_;
-#line 130 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp3_ = self->priv->bg_color;
-#line 130 "/home/jens/Source/shotwell/src/config/Config.vala"
- configuration_facade_set_bg_color_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_);
-#line 132 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp4_ = *color;
-#line 132 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_set_text_colors (self, &_tmp4_);
-#line 906 "Config.c"
-}
-
-
-void
-config_facade_commit_bg_color (ConfigFacade* self)
-{
- const gchar* _tmp0_;
-#line 135 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_return_if_fail (CONFIG_IS_FACADE (self));
-#line 136 "/home/jens/Source/shotwell/src/config/Config.vala"
- _tmp0_ = self->priv->bg_color;
-#line 136 "/home/jens/Source/shotwell/src/config/Config.vala"
- CONFIGURATION_FACADE_CLASS (config_facade_parent_class)->set_bg_color_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp0_);
-#line 920 "Config.c"
-}
-
-
-static void
-config_facade_class_init (ConfigFacadeClass * klass)
-{
-#line 18 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_parent_class = g_type_class_peek_parent (klass);
-#line 18 "/home/jens/Source/shotwell/src/config/Config.vala"
- g_type_class_add_private (klass, sizeof (ConfigFacadePrivate));
-#line 18 "/home/jens/Source/shotwell/src/config/Config.vala"
- G_OBJECT_CLASS (klass)->finalize = config_facade_finalize;
-#line 18 "/home/jens/Source/shotwell/src/config/Config.vala"
- config_facade_signals[CONFIG_FACADE_COLORS_CHANGED_SIGNAL] = g_signal_new ("colors-changed", CONFIG_TYPE_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 935 "Config.c"
-}
-
-
-static void
-config_facade_instance_init (ConfigFacade * self)
-{
-#line 18 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv = CONFIG_FACADE_GET_PRIVATE (self);
-#line 36 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->bg_color = NULL;
-#line 37 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->selected_color = NULL;
-#line 38 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->unselected_color = NULL;
-#line 39 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->unfocused_selected_color = NULL;
-#line 40 "/home/jens/Source/shotwell/src/config/Config.vala"
- self->priv->border_color = NULL;
-#line 954 "Config.c"
-}
-
-
-static void
-config_facade_finalize (GObject * obj)
-{
- ConfigFacade * self;
-#line 18 "/home/jens/Source/shotwell/src/config/Config.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONFIG_TYPE_FACADE, ConfigFacade);
-#line 36 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->bg_color);
-#line 37 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->selected_color);
-#line 38 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->unselected_color);
-#line 39 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->unfocused_selected_color);
-#line 40 "/home/jens/Source/shotwell/src/config/Config.vala"
- _g_free0 (self->priv->border_color);
-#line 18 "/home/jens/Source/shotwell/src/config/Config.vala"
- G_OBJECT_CLASS (config_facade_parent_class)->finalize (obj);
-#line 976 "Config.c"
-}
-
-
-GType
-config_facade_get_type (void)
-{
- static volatile gsize config_facade_type_id__volatile = 0;
- if (g_once_init_enter (&config_facade_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ConfigFacadeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) config_facade_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ConfigFacade), 0, (GInstanceInitFunc) config_facade_instance_init, NULL };
- GType config_facade_type_id;
- config_facade_type_id = g_type_register_static (TYPE_CONFIGURATION_FACADE, "ConfigFacade", &g_define_type_info, 0);
- g_once_init_leave (&config_facade_type_id__volatile, config_facade_type_id);
- }
- return config_facade_type_id__volatile;
-}
-
-
-void
-config_preconfigure (void)
-{
-}
-
-
-void
-config_init (GError** error)
-{
-}
-
-
-void
-config_terminate (void)
-{
-}
-
-
-
diff --git a/src/config/Config.vala b/src/config/Config.vala
index f80bfce..5675567 100644
--- a/src/config/Config.vala
+++ b/src/config/Config.vala
@@ -20,25 +20,9 @@ public class Facade : ConfigurationFacade {
public const int HEIGHT_DEFAULT = 768;
public const int SIDEBAR_MIN_POSITION = 180;
public const int SIDEBAR_MAX_POSITION = 1000;
- public const string DEFAULT_BG_COLOR = "#444";
public const int NO_VIDEO_INTERPRETER_STATE = -1;
- private const double BLACK_THRESHOLD = 0.61;
- private const string DARK_SELECTED_COLOR = "#0AD";
- private const string LIGHT_SELECTED_COLOR = "#2DF";
- private const string DARK_UNSELECTED_COLOR = "#000";
- private const string LIGHT_UNSELECTED_COLOR = "#FFF";
- private const string DARK_BORDER_COLOR = "#999";
- private const string LIGHT_BORDER_COLOR = "#AAA";
- private const string DARK_UNFOCUSED_SELECTED_COLOR = "#6fc4dd";
- private const string LIGHT_UNFOCUSED_SELECTED_COLOR = "#99efff";
-
- private string bg_color = null;
- private string selected_color = null;
- private string unselected_color = null;
- private string unfocused_selected_color = null;
- private string border_color = null;
-
+
private static Facade instance = null;
public signal void colors_changed();
@@ -46,7 +30,6 @@ public class Facade : ConfigurationFacade {
private Facade() {
base(new GSettingsConfigurationEngine());
- bg_color_name_changed.connect(on_color_name_changed);
transparent_background_type_changed.connect(on_color_name_changed);
transparent_background_color_changed.connect(on_color_name_changed);
}
@@ -61,80 +44,6 @@ public class Facade : ConfigurationFacade {
private void on_color_name_changed() {
colors_changed();
}
-
- private void set_text_colors(Gdk.RGBA bg_color) {
- // since bg color is greyscale, we only need to compare the red value to the threshold,
- // which determines whether the background is dark enough to need light text and selection
- // colors or vice versa
- if (bg_color.red > BLACK_THRESHOLD) {
- selected_color = DARK_SELECTED_COLOR;
- unselected_color = DARK_UNSELECTED_COLOR;
- unfocused_selected_color = DARK_UNFOCUSED_SELECTED_COLOR;
- border_color = DARK_BORDER_COLOR;
- } else {
- selected_color = LIGHT_SELECTED_COLOR;
- unselected_color = LIGHT_UNSELECTED_COLOR;
- unfocused_selected_color = LIGHT_UNFOCUSED_SELECTED_COLOR;
- border_color = LIGHT_BORDER_COLOR;
- }
- }
-
- private void get_colors() {
- bg_color = base.get_bg_color_name();
-
- if (!is_color_parsable(bg_color))
- bg_color = DEFAULT_BG_COLOR;
-
- set_text_colors(parse_color(bg_color));
- }
-
- public Gdk.RGBA get_bg_color() {
- if (is_string_empty(bg_color))
- get_colors();
-
- return parse_color(bg_color);
- }
-
- public Gdk.RGBA get_selected_color(bool in_focus = true) {
- if (in_focus) {
- if (is_string_empty(selected_color))
- get_colors();
-
- return parse_color(selected_color);
- } else {
- if (is_string_empty(unfocused_selected_color))
- get_colors();
-
- return parse_color(unfocused_selected_color);
- }
- }
-
- public Gdk.RGBA get_unselected_color() {
- if (is_string_empty(unselected_color))
- get_colors();
-
- return parse_color(unselected_color);
- }
-
- public Gdk.RGBA get_border_color() {
- if (is_string_empty(border_color))
- get_colors();
-
- return parse_color(border_color);
- }
-
- public void set_bg_color(Gdk.RGBA color) {
- uint8 col_tmp = (uint8) (color.red * 255.0);
-
- bg_color = "#%02X%02X%02X".printf(col_tmp, col_tmp, col_tmp);
- set_bg_color_name(bg_color);
-
- set_text_colors(color);
- }
-
- public void commit_bg_color() {
- base.set_bg_color_name(bg_color);
- }
}
// preconfigure may be deleted if not used.
diff --git a/src/config/ConfigurationInterfaces.c b/src/config/ConfigurationInterfaces.c
deleted file mode 100644
index 2750b10..0000000
--- a/src/config/ConfigurationInterfaces.c
+++ /dev/null
@@ -1,14452 +0,0 @@
-/* ConfigurationInterfaces.c generated by valac 0.40.4, the Vala compiler
- * generated from ConfigurationInterfaces.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <time.h>
-
-
-#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ())
-
-#define TYPE_CONFIGURABLE_PROPERTY (configurable_property_get_type ())
-
-#define TYPE_CONFIGURATION_ENGINE (configuration_engine_get_type ())
-#define CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngine))
-#define IS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_ENGINE))
-#define CONFIGURATION_ENGINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngineIface))
-
-typedef struct _ConfigurationEngine ConfigurationEngine;
-typedef struct _ConfigurationEngineIface ConfigurationEngineIface;
-enum {
- CONFIGURATION_ENGINE_PROPERTY_CHANGED_SIGNAL,
- CONFIGURATION_ENGINE_NUM_SIGNALS
-};
-static guint configuration_engine_signals[CONFIGURATION_ENGINE_NUM_SIGNALS] = {0};
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-typedef struct _ConfigurationFacadePrivate ConfigurationFacadePrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-enum {
- CONFIGURATION_FACADE_0_PROPERTY,
- CONFIGURATION_FACADE_NUM_PROPERTIES
-};
-static GParamSpec* configuration_facade_properties[CONFIGURATION_FACADE_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define RESOURCES_TYPE_UNIT_SYSTEM (resources_unit_system_get_type ())
-enum {
- CONFIGURATION_FACADE_AUTO_IMPORT_FROM_LIBRARY_CHANGED_SIGNAL,
- CONFIGURATION_FACADE_BG_COLOR_NAME_CHANGED_SIGNAL,
- CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_TYPE_CHANGED_SIGNAL,
- CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_COLOR_CHANGED_SIGNAL,
- CONFIGURATION_FACADE_COMMIT_METADATA_TO_MASTERS_CHANGED_SIGNAL,
- CONFIGURATION_FACADE_EVENTS_SORT_ASCENDING_CHANGED_SIGNAL,
- CONFIGURATION_FACADE_EXTERNAL_APP_CHANGED_SIGNAL,
- CONFIGURATION_FACADE_IMPORT_DIRECTORY_CHANGED_SIGNAL,
- CONFIGURATION_FACADE_NUM_SIGNALS
-};
-static guint configuration_facade_signals[CONFIGURATION_FACADE_NUM_SIGNALS] = {0};
-
-typedef enum {
- CONFIGURATION_ERROR_PROPERTY_HAS_NO_VALUE,
- CONFIGURATION_ERROR_ENGINE_ERROR
-} ConfigurationError;
-#define CONFIGURATION_ERROR configuration_error_quark ()
-typedef enum {
- FUZZY_PROPERTY_STATE_ENABLED,
- FUZZY_PROPERTY_STATE_DISABLED,
- FUZZY_PROPERTY_STATE_UNKNOWN
-} FuzzyPropertyState;
-
-typedef enum {
- CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY = 0,
- CONFIGURABLE_PROPERTY_BG_COLOR_NAME,
- CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE,
- CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR,
- CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS,
- CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE,
- CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE,
- CONFIGURABLE_PROPERTY_SCREENSAVER_FILE,
- CONFIGURABLE_PROPERTY_SCREENSAVER_MODE,
- CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN,
- CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH,
- CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES,
- CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS,
- CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES,
- CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR,
- CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR,
- CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS,
- CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY,
- CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT,
- CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE,
- CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA,
- CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT,
- CONFIGURABLE_PROPERTY_EXPORT_QUALITY,
- CONFIGURABLE_PROPERTY_EXPORT_SCALE,
- CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP,
- CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP,
- CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED,
- CONFIGURABLE_PROPERTY_IMPORT_DIR,
- CONFIGURABLE_PROPERTY_KEEP_RELATIVITY,
- CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT,
- CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE,
- CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH,
- CONFIGURABLE_PROPERTY_LAST_USED_SERVICE,
- CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE,
- CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH,
- CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS,
- CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE,
- CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH,
- CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE,
- CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO,
- CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES,
- CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION,
- CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT,
- CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT,
- CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG,
- CONFIGURABLE_PROPERTY_SIDEBAR_POSITION,
- CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY,
- CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY,
- CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID,
- CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE,
- CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME,
- CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES,
- CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE,
- CONFIGURABLE_PROPERTY_NUM_PROPERTIES
-} ConfigurableProperty;
-
-struct _ConfigurationEngineIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (ConfigurationEngine* self);
- gint (*get_int_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_int_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error);
- gint (*get_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error);
- gchar* (*get_string_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_string_property) (ConfigurationEngine* self, ConfigurableProperty p, const gchar* val, GError** error);
- gboolean (*get_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, gboolean val, GError** error);
- gdouble (*get_double_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_double_property) (ConfigurationEngine* self, ConfigurableProperty p, gdouble val, GError** error);
- gboolean (*get_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def);
- void (*set_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val);
- gdouble (*get_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def);
- void (*set_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val);
- gint (*get_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint def);
- void (*set_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint val);
- gchar* (*get_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def);
- void (*set_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val);
- void (*unset_plugin_key) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key);
- FuzzyPropertyState (*is_plugin_enabled) (ConfigurationEngine* self, const gchar* id);
- void (*set_plugin_enabled) (ConfigurationEngine* self, const gchar* id, gboolean enabled);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _ConfigurationFacade {
- GObject parent_instance;
- ConfigurationFacadePrivate * priv;
-};
-
-struct _ConfigurationFacadeClass {
- GObjectClass parent_class;
- gboolean (*get_auto_import_from_library) (ConfigurationFacade* self);
- void (*set_auto_import_from_library) (ConfigurationFacade* self, gboolean auto_import);
- gchar* (*get_bg_color_name) (ConfigurationFacade* self);
- void (*set_bg_color_name) (ConfigurationFacade* self, const gchar* color_name);
- gchar* (*get_transparent_background_type) (ConfigurationFacade* self);
- void (*set_transparent_background_type) (ConfigurationFacade* self, const gchar* type);
- gchar* (*get_transparent_background_color) (ConfigurationFacade* self);
- void (*set_transparent_background_color) (ConfigurationFacade* self, const gchar* color_name);
- gboolean (*get_commit_metadata_to_masters) (ConfigurationFacade* self);
- void (*set_commit_metadata_to_masters) (ConfigurationFacade* self, gboolean commit_metadata);
- gchar* (*get_desktop_background) (ConfigurationFacade* self);
- void (*set_desktop_background) (ConfigurationFacade* self, const gchar* filename);
- gchar* (*get_screensaver) (ConfigurationFacade* self);
- void (*set_screensaver) (ConfigurationFacade* self, const gchar* filename);
- gchar* (*get_directory_pattern) (ConfigurationFacade* self);
- void (*set_directory_pattern) (ConfigurationFacade* self, const gchar* s);
- gchar* (*get_directory_pattern_custom) (ConfigurationFacade* self);
- void (*set_directory_pattern_custom) (ConfigurationFacade* self, const gchar* s);
- void (*get_direct_window_state) (ConfigurationFacade* self, gboolean* maximize, Dimensions* dimensions);
- void (*set_direct_window_state) (ConfigurationFacade* self, gboolean maximize, Dimensions* dimensions);
- gboolean (*get_display_basic_properties) (ConfigurationFacade* self);
- void (*set_display_basic_properties) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_extended_properties) (ConfigurationFacade* self);
- void (*set_display_extended_properties) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_sidebar) (ConfigurationFacade* self);
- void (*set_display_sidebar) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_toolbar) (ConfigurationFacade* self);
- void (*set_display_toolbar) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_search_bar) (ConfigurationFacade* self);
- void (*set_display_search_bar) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_photo_ratings) (ConfigurationFacade* self);
- void (*set_display_photo_ratings) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_photo_tags) (ConfigurationFacade* self);
- void (*set_display_photo_tags) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_photo_titles) (ConfigurationFacade* self);
- void (*set_display_photo_titles) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_photo_comments) (ConfigurationFacade* self);
- void (*set_display_photo_comments) (ConfigurationFacade* self, gboolean display);
- gboolean (*get_display_event_comments) (ConfigurationFacade* self);
- void (*set_display_event_comments) (ConfigurationFacade* self, gboolean display);
- void (*get_event_photos_sort) (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by);
- void (*set_event_photos_sort) (ConfigurationFacade* self, gboolean sort_order, gint sort_by);
- gboolean (*get_events_sort_ascending) (ConfigurationFacade* self);
- void (*set_events_sort_ascending) (ConfigurationFacade* self, gboolean sort);
- gchar* (*get_external_photo_app) (ConfigurationFacade* self);
- void (*set_external_photo_app) (ConfigurationFacade* self, const gchar* external_photo_app);
- gchar* (*get_external_raw_app) (ConfigurationFacade* self);
- void (*set_external_raw_app) (ConfigurationFacade* self, const gchar* external_raw_app);
- ScaleConstraint (*get_export_constraint) (ConfigurationFacade* self);
- void (*set_export_constraint) (ConfigurationFacade* self, ScaleConstraint constraint);
- ExportFormatMode (*get_export_export_format_mode) (ConfigurationFacade* self);
- void (*set_export_export_format_mode) (ConfigurationFacade* self, ExportFormatMode export_format_mode);
- gboolean (*get_export_export_metadata) (ConfigurationFacade* self);
- void (*set_export_export_metadata) (ConfigurationFacade* self, gboolean export_metadata);
- PhotoFileFormat (*get_export_photo_file_format) (ConfigurationFacade* self);
- void (*set_export_photo_file_format) (ConfigurationFacade* self, PhotoFileFormat photo_file_format);
- JpegQuality (*get_export_quality) (ConfigurationFacade* self);
- void (*set_export_quality) (ConfigurationFacade* self, JpegQuality quality);
- gint (*get_export_scale) (ConfigurationFacade* self);
- void (*set_export_scale) (ConfigurationFacade* self, gint scale);
- RawDeveloper (*get_default_raw_developer) (ConfigurationFacade* self);
- void (*set_default_raw_developer) (ConfigurationFacade* self, RawDeveloper d);
- gboolean (*get_hide_photos_already_imported) (ConfigurationFacade* self);
- void (*set_hide_photos_already_imported) (ConfigurationFacade* self, gboolean hide_imported);
- gchar* (*get_import_dir) (ConfigurationFacade* self);
- void (*set_import_dir) (ConfigurationFacade* self, const gchar* import_dir);
- gboolean (*get_keep_relativity) (ConfigurationFacade* self);
- void (*set_keep_relativity) (ConfigurationFacade* self, gboolean keep_relativity);
- gboolean (*get_pin_toolbar_state) (ConfigurationFacade* self);
- void (*set_pin_toolbar_state) (ConfigurationFacade* self, gboolean state);
- gint (*get_last_crop_height) (ConfigurationFacade* self);
- void (*set_last_crop_height) (ConfigurationFacade* self, gint choice);
- gint (*get_last_crop_menu_choice) (ConfigurationFacade* self);
- void (*set_last_crop_menu_choice) (ConfigurationFacade* self, gint choice);
- gint (*get_last_crop_width) (ConfigurationFacade* self);
- void (*set_last_crop_width) (ConfigurationFacade* self, gint choice);
- gchar* (*get_last_used_service) (ConfigurationFacade* self);
- void (*set_last_used_service) (ConfigurationFacade* self, const gchar* service_name);
- gchar* (*get_last_used_dataimports_service) (ConfigurationFacade* self);
- void (*set_last_used_dataimports_service) (ConfigurationFacade* self, const gchar* service_name);
- void (*get_library_photos_sort) (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by);
- void (*set_library_photos_sort) (ConfigurationFacade* self, gboolean sort_order, gint sort_by);
- void (*get_library_window_state) (ConfigurationFacade* self, gboolean* maximize, Dimensions* dimensions);
- void (*set_library_window_state) (ConfigurationFacade* self, gboolean maximize, Dimensions* dimensions);
- gboolean (*get_modify_originals) (ConfigurationFacade* self);
- void (*set_modify_originals) (ConfigurationFacade* self, gboolean modify_originals);
- gint (*get_photo_thumbnail_scale) (ConfigurationFacade* self);
- void (*set_photo_thumbnail_scale) (ConfigurationFacade* self, gint scale);
- gdouble (*get_printing_content_height) (ConfigurationFacade* self);
- void (*set_printing_content_height) (ConfigurationFacade* self, gdouble content_height);
- gint (*get_printing_content_layout) (ConfigurationFacade* self);
- void (*set_printing_content_layout) (ConfigurationFacade* self, gint layout_code);
- gint (*get_printing_content_ppi) (ConfigurationFacade* self);
- void (*set_printing_content_ppi) (ConfigurationFacade* self, gint content_ppi);
- gint (*get_printing_content_units) (ConfigurationFacade* self);
- void (*set_printing_content_units) (ConfigurationFacade* self, gint units_code);
- gdouble (*get_printing_content_width) (ConfigurationFacade* self);
- void (*set_printing_content_width) (ConfigurationFacade* self, gdouble content_width);
- gint (*get_printing_images_per_page) (ConfigurationFacade* self);
- void (*set_printing_images_per_page) (ConfigurationFacade* self, gint images_per_page_code);
- gboolean (*get_printing_match_aspect_ratio) (ConfigurationFacade* self);
- void (*set_printing_match_aspect_ratio) (ConfigurationFacade* self, gboolean match_aspect_ratio);
- gboolean (*get_printing_print_titles) (ConfigurationFacade* self);
- void (*set_printing_print_titles) (ConfigurationFacade* self, gboolean print_titles);
- gint (*get_printing_size_selection) (ConfigurationFacade* self);
- void (*set_printing_size_selection) (ConfigurationFacade* self, gint size_code);
- gchar* (*get_printing_titles_font) (ConfigurationFacade* self);
- void (*set_printing_titles_font) (ConfigurationFacade* self, const gchar* font_name);
- gboolean (*get_show_welcome_dialog) (ConfigurationFacade* self);
- void (*set_show_welcome_dialog) (ConfigurationFacade* self, gboolean show);
- gint (*get_sidebar_position) (ConfigurationFacade* self);
- void (*set_sidebar_position) (ConfigurationFacade* self, gint position);
- gdouble (*get_slideshow_delay) (ConfigurationFacade* self);
- void (*set_slideshow_delay) (ConfigurationFacade* self, gdouble delay);
- gdouble (*get_slideshow_transition_delay) (ConfigurationFacade* self);
- void (*set_slideshow_transition_delay) (ConfigurationFacade* self, gdouble delay);
- gchar* (*get_slideshow_transition_effect_id) (ConfigurationFacade* self);
- void (*set_slideshow_transition_effect_id) (ConfigurationFacade* self, const gchar* id);
- gboolean (*get_slideshow_show_title) (ConfigurationFacade* self);
- void (*set_slideshow_show_title) (ConfigurationFacade* self, gboolean show_title);
- gboolean (*get_use_24_hour_time) (ConfigurationFacade* self);
- void (*set_use_24_hour_time) (ConfigurationFacade* self, gboolean use_24_hour_time);
- gboolean (*get_use_lowercase_filenames) (ConfigurationFacade* self);
- void (*set_use_lowercase_filenames) (ConfigurationFacade* self, gboolean b);
- gint (*get_video_interpreter_state_cookie) (ConfigurationFacade* self);
- void (*set_video_interpreter_state_cookie) (ConfigurationFacade* self, gint state_cookie);
- gboolean (*get_plugin_bool) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def);
- void (*set_plugin_bool) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val);
- gdouble (*get_plugin_double) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def);
- void (*set_plugin_double) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val);
- gint (*get_plugin_int) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint def);
- void (*set_plugin_int) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint val);
- gchar* (*get_plugin_string) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def);
- void (*set_plugin_string) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val);
- void (*unset_plugin_key) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key);
- FuzzyPropertyState (*is_plugin_enabled) (ConfigurationFacade* self, const gchar* id);
- void (*set_plugin_enabled) (ConfigurationFacade* self, const gchar* id, gboolean enabled);
-};
-
-struct _ConfigurationFacadePrivate {
- ConfigurationEngine* engine;
-};
-
-typedef enum {
- RESOURCES_UNIT_SYSTEM_IMPERIAL,
- RESOURCES_UNIT_SYSTEM_METRIC,
- RESOURCES_UNIT_SYSTEM_UNKNOWN
-} ResourcesUnitSystem;
-
-
-static gpointer configuration_facade_parent_class = NULL;
-
-GQuark configuration_error_quark (void);
-GType fuzzy_property_state_get_type (void) G_GNUC_CONST;
-GType configurable_property_get_type (void) G_GNUC_CONST;
-gchar* configurable_property_to_string (ConfigurableProperty self);
-GType configuration_engine_get_type (void) G_GNUC_CONST;
-gchar* configuration_engine_get_name (ConfigurationEngine* self);
-gint configuration_engine_get_int_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error);
-void configuration_engine_set_int_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- gint val,
- GError** error);
-gint configuration_engine_get_enum_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error);
-void configuration_engine_set_enum_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- gint val,
- GError** error);
-gchar* configuration_engine_get_string_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error);
-void configuration_engine_set_string_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- const gchar* val,
- GError** error);
-gboolean configuration_engine_get_bool_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error);
-void configuration_engine_set_bool_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- gboolean val,
- GError** error);
-gdouble configuration_engine_get_double_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error);
-void configuration_engine_set_double_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- gdouble val,
- GError** error);
-gboolean configuration_engine_get_plugin_bool (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def);
-void configuration_engine_set_plugin_bool (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val);
-gdouble configuration_engine_get_plugin_double (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def);
-void configuration_engine_set_plugin_double (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val);
-gint configuration_engine_get_plugin_int (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def);
-void configuration_engine_set_plugin_int (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val);
-gchar* configuration_engine_get_plugin_string (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def);
-void configuration_engine_set_plugin_string (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val);
-void configuration_engine_unset_plugin_key (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key);
-FuzzyPropertyState configuration_engine_is_plugin_enabled (ConfigurationEngine* self,
- const gchar* id);
-void configuration_engine_set_plugin_enabled (ConfigurationEngine* self,
- const gchar* id,
- gboolean enabled);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-#define CONFIGURATION_FACADE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONFIGURATION_FACADE, ConfigurationFacadePrivate))
-ConfigurationFacade* configuration_facade_construct (GType object_type,
- ConfigurationEngine* engine);
-static void configuration_facade_on_property_changed (ConfigurationFacade* self,
- ConfigurableProperty p);
-static void _configuration_facade_on_property_changed_configuration_engine_property_changed (ConfigurationEngine* _sender,
- ConfigurableProperty p,
- gpointer self);
-ConfigurationEngine* configuration_facade_get_engine (ConfigurationFacade* self);
-void configuration_facade_on_configuration_error (ConfigurationFacade* self,
- GError* err);
-gboolean configuration_facade_get_auto_import_from_library (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_auto_import_from_library (ConfigurationFacade* self);
-void configuration_facade_set_auto_import_from_library (ConfigurationFacade* self,
- gboolean auto_import);
-static void configuration_facade_real_set_auto_import_from_library (ConfigurationFacade* self,
- gboolean auto_import);
-gchar* configuration_facade_get_bg_color_name (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_bg_color_name (ConfigurationFacade* self);
-void configuration_facade_set_bg_color_name (ConfigurationFacade* self,
- const gchar* color_name);
-static void configuration_facade_real_set_bg_color_name (ConfigurationFacade* self,
- const gchar* color_name);
-gchar* configuration_facade_get_transparent_background_type (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_transparent_background_type (ConfigurationFacade* self);
-void configuration_facade_set_transparent_background_type (ConfigurationFacade* self,
- const gchar* type);
-static void configuration_facade_real_set_transparent_background_type (ConfigurationFacade* self,
- const gchar* type);
-gchar* configuration_facade_get_transparent_background_color (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_transparent_background_color (ConfigurationFacade* self);
-void configuration_facade_set_transparent_background_color (ConfigurationFacade* self,
- const gchar* color_name);
-static void configuration_facade_real_set_transparent_background_color (ConfigurationFacade* self,
- const gchar* color_name);
-gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_commit_metadata_to_masters (ConfigurationFacade* self);
-void configuration_facade_set_commit_metadata_to_masters (ConfigurationFacade* self,
- gboolean commit_metadata);
-static void configuration_facade_real_set_commit_metadata_to_masters (ConfigurationFacade* self,
- gboolean commit_metadata);
-gchar* configuration_facade_get_desktop_background (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_desktop_background (ConfigurationFacade* self);
-void configuration_facade_set_desktop_background (ConfigurationFacade* self,
- const gchar* filename);
-static void configuration_facade_real_set_desktop_background (ConfigurationFacade* self,
- const gchar* filename);
-gchar* configuration_facade_get_screensaver (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_screensaver (ConfigurationFacade* self);
-void configuration_facade_set_screensaver (ConfigurationFacade* self,
- const gchar* filename);
-static void configuration_facade_real_set_screensaver (ConfigurationFacade* self,
- const gchar* filename);
-gchar* configuration_facade_get_directory_pattern (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_directory_pattern (ConfigurationFacade* self);
-void configuration_facade_set_directory_pattern (ConfigurationFacade* self,
- const gchar* s);
-static void configuration_facade_real_set_directory_pattern (ConfigurationFacade* self,
- const gchar* s);
-gchar* configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_directory_pattern_custom (ConfigurationFacade* self);
-void configuration_facade_set_directory_pattern_custom (ConfigurationFacade* self,
- const gchar* s);
-static void configuration_facade_real_set_directory_pattern_custom (ConfigurationFacade* self,
- const gchar* s);
-void configuration_facade_get_direct_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions);
-static void configuration_facade_real_get_direct_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-void configuration_facade_set_direct_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions);
-static void configuration_facade_real_set_direct_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions);
-gboolean configuration_facade_get_display_basic_properties (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_basic_properties (ConfigurationFacade* self);
-void configuration_facade_set_display_basic_properties (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_basic_properties (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_extended_properties (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_extended_properties (ConfigurationFacade* self);
-void configuration_facade_set_display_extended_properties (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_extended_properties (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_sidebar (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_sidebar (ConfigurationFacade* self);
-void configuration_facade_set_display_sidebar (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_sidebar (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_toolbar (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_toolbar (ConfigurationFacade* self);
-void configuration_facade_set_display_toolbar (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_toolbar (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_search_bar (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_search_bar (ConfigurationFacade* self);
-void configuration_facade_set_display_search_bar (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_search_bar (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_photo_ratings (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_photo_ratings (ConfigurationFacade* self);
-void configuration_facade_set_display_photo_ratings (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_photo_ratings (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_photo_tags (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_photo_tags (ConfigurationFacade* self);
-void configuration_facade_set_display_photo_tags (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_photo_tags (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_photo_titles (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_photo_titles (ConfigurationFacade* self);
-void configuration_facade_set_display_photo_titles (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_photo_titles (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_photo_comments (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_photo_comments (ConfigurationFacade* self);
-void configuration_facade_set_display_photo_comments (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_photo_comments (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_event_comments (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_display_event_comments (ConfigurationFacade* self);
-void configuration_facade_set_display_event_comments (ConfigurationFacade* self,
- gboolean display);
-static void configuration_facade_real_set_display_event_comments (ConfigurationFacade* self,
- gboolean display);
-void configuration_facade_get_event_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void configuration_facade_real_get_event_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-void configuration_facade_set_event_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-static void configuration_facade_real_set_event_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-gboolean configuration_facade_get_events_sort_ascending (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_events_sort_ascending (ConfigurationFacade* self);
-void configuration_facade_set_events_sort_ascending (ConfigurationFacade* self,
- gboolean sort);
-static void configuration_facade_real_set_events_sort_ascending (ConfigurationFacade* self,
- gboolean sort);
-gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_external_photo_app (ConfigurationFacade* self);
-void configuration_facade_set_external_photo_app (ConfigurationFacade* self,
- const gchar* external_photo_app);
-static void configuration_facade_real_set_external_photo_app (ConfigurationFacade* self,
- const gchar* external_photo_app);
-gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_external_raw_app (ConfigurationFacade* self);
-void configuration_facade_set_external_raw_app (ConfigurationFacade* self,
- const gchar* external_raw_app);
-static void configuration_facade_real_set_external_raw_app (ConfigurationFacade* self,
- const gchar* external_raw_app);
-ScaleConstraint configuration_facade_get_export_constraint (ConfigurationFacade* self);
-static ScaleConstraint configuration_facade_real_get_export_constraint (ConfigurationFacade* self);
-void configuration_facade_set_export_constraint (ConfigurationFacade* self,
- ScaleConstraint constraint);
-static void configuration_facade_real_set_export_constraint (ConfigurationFacade* self,
- ScaleConstraint constraint);
-ExportFormatMode configuration_facade_get_export_export_format_mode (ConfigurationFacade* self);
-static ExportFormatMode configuration_facade_real_get_export_export_format_mode (ConfigurationFacade* self);
-void configuration_facade_set_export_export_format_mode (ConfigurationFacade* self,
- ExportFormatMode export_format_mode);
-static void configuration_facade_real_set_export_export_format_mode (ConfigurationFacade* self,
- ExportFormatMode export_format_mode);
-gboolean configuration_facade_get_export_export_metadata (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_export_export_metadata (ConfigurationFacade* self);
-void configuration_facade_set_export_export_metadata (ConfigurationFacade* self,
- gboolean export_metadata);
-static void configuration_facade_real_set_export_export_metadata (ConfigurationFacade* self,
- gboolean export_metadata);
-PhotoFileFormat configuration_facade_get_export_photo_file_format (ConfigurationFacade* self);
-static PhotoFileFormat configuration_facade_real_get_export_photo_file_format (ConfigurationFacade* self);
-PhotoFileFormat photo_file_format_unserialize (gint value);
-void configuration_facade_set_export_photo_file_format (ConfigurationFacade* self,
- PhotoFileFormat photo_file_format);
-static void configuration_facade_real_set_export_photo_file_format (ConfigurationFacade* self,
- PhotoFileFormat photo_file_format);
-gint photo_file_format_serialize (PhotoFileFormat self);
-JpegQuality configuration_facade_get_export_quality (ConfigurationFacade* self);
-static JpegQuality configuration_facade_real_get_export_quality (ConfigurationFacade* self);
-void configuration_facade_set_export_quality (ConfigurationFacade* self,
- JpegQuality quality);
-static void configuration_facade_real_set_export_quality (ConfigurationFacade* self,
- JpegQuality quality);
-gint configuration_facade_get_export_scale (ConfigurationFacade* self);
-static gint configuration_facade_real_get_export_scale (ConfigurationFacade* self);
-void configuration_facade_set_export_scale (ConfigurationFacade* self,
- gint scale);
-static void configuration_facade_real_set_export_scale (ConfigurationFacade* self,
- gint scale);
-RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self);
-static RawDeveloper configuration_facade_real_get_default_raw_developer (ConfigurationFacade* self);
-RawDeveloper raw_developer_from_string (const gchar* value);
-void configuration_facade_set_default_raw_developer (ConfigurationFacade* self,
- RawDeveloper d);
-static void configuration_facade_real_set_default_raw_developer (ConfigurationFacade* self,
- RawDeveloper d);
-gchar* raw_developer_to_string (RawDeveloper self);
-gboolean configuration_facade_get_hide_photos_already_imported (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_hide_photos_already_imported (ConfigurationFacade* self);
-void configuration_facade_set_hide_photos_already_imported (ConfigurationFacade* self,
- gboolean hide_imported);
-static void configuration_facade_real_set_hide_photos_already_imported (ConfigurationFacade* self,
- gboolean hide_imported);
-gchar* configuration_facade_get_import_dir (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_import_dir (ConfigurationFacade* self);
-void configuration_facade_set_import_dir (ConfigurationFacade* self,
- const gchar* import_dir);
-static void configuration_facade_real_set_import_dir (ConfigurationFacade* self,
- const gchar* import_dir);
-gboolean configuration_facade_get_keep_relativity (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_keep_relativity (ConfigurationFacade* self);
-void configuration_facade_set_keep_relativity (ConfigurationFacade* self,
- gboolean keep_relativity);
-static void configuration_facade_real_set_keep_relativity (ConfigurationFacade* self,
- gboolean keep_relativity);
-gboolean configuration_facade_get_pin_toolbar_state (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_pin_toolbar_state (ConfigurationFacade* self);
-void configuration_facade_set_pin_toolbar_state (ConfigurationFacade* self,
- gboolean state);
-static void configuration_facade_real_set_pin_toolbar_state (ConfigurationFacade* self,
- gboolean state);
-gint configuration_facade_get_last_crop_height (ConfigurationFacade* self);
-static gint configuration_facade_real_get_last_crop_height (ConfigurationFacade* self);
-void configuration_facade_set_last_crop_height (ConfigurationFacade* self,
- gint choice);
-static void configuration_facade_real_set_last_crop_height (ConfigurationFacade* self,
- gint choice);
-gint configuration_facade_get_last_crop_menu_choice (ConfigurationFacade* self);
-static gint configuration_facade_real_get_last_crop_menu_choice (ConfigurationFacade* self);
-void configuration_facade_set_last_crop_menu_choice (ConfigurationFacade* self,
- gint choice);
-static void configuration_facade_real_set_last_crop_menu_choice (ConfigurationFacade* self,
- gint choice);
-gint configuration_facade_get_last_crop_width (ConfigurationFacade* self);
-static gint configuration_facade_real_get_last_crop_width (ConfigurationFacade* self);
-void configuration_facade_set_last_crop_width (ConfigurationFacade* self,
- gint choice);
-static void configuration_facade_real_set_last_crop_width (ConfigurationFacade* self,
- gint choice);
-gchar* configuration_facade_get_last_used_service (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_last_used_service (ConfigurationFacade* self);
-void configuration_facade_set_last_used_service (ConfigurationFacade* self,
- const gchar* service_name);
-static void configuration_facade_real_set_last_used_service (ConfigurationFacade* self,
- const gchar* service_name);
-gchar* configuration_facade_get_last_used_dataimports_service (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_last_used_dataimports_service (ConfigurationFacade* self);
-void configuration_facade_set_last_used_dataimports_service (ConfigurationFacade* self,
- const gchar* service_name);
-static void configuration_facade_real_set_last_used_dataimports_service (ConfigurationFacade* self,
- const gchar* service_name);
-void configuration_facade_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void configuration_facade_real_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-void configuration_facade_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-static void configuration_facade_real_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-void configuration_facade_get_library_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions);
-static void configuration_facade_real_get_library_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions);
-void configuration_facade_set_library_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions);
-static void configuration_facade_real_set_library_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions);
-gboolean configuration_facade_get_modify_originals (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_modify_originals (ConfigurationFacade* self);
-void configuration_facade_set_modify_originals (ConfigurationFacade* self,
- gboolean modify_originals);
-static void configuration_facade_real_set_modify_originals (ConfigurationFacade* self,
- gboolean modify_originals);
-gint configuration_facade_get_photo_thumbnail_scale (ConfigurationFacade* self);
-static gint configuration_facade_real_get_photo_thumbnail_scale (ConfigurationFacade* self);
-gint thumbnail_get_DEFAULT_SCALE (void);
-void configuration_facade_set_photo_thumbnail_scale (ConfigurationFacade* self,
- gint scale);
-static void configuration_facade_real_set_photo_thumbnail_scale (ConfigurationFacade* self,
- gint scale);
-gdouble configuration_facade_get_printing_content_height (ConfigurationFacade* self);
-static gdouble configuration_facade_real_get_printing_content_height (ConfigurationFacade* self);
-void configuration_facade_set_printing_content_height (ConfigurationFacade* self,
- gdouble content_height);
-static void configuration_facade_real_set_printing_content_height (ConfigurationFacade* self,
- gdouble content_height);
-gint configuration_facade_get_printing_content_layout (ConfigurationFacade* self);
-static gint configuration_facade_real_get_printing_content_layout (ConfigurationFacade* self);
-void configuration_facade_set_printing_content_layout (ConfigurationFacade* self,
- gint layout_code);
-static void configuration_facade_real_set_printing_content_layout (ConfigurationFacade* self,
- gint layout_code);
-gint configuration_facade_get_printing_content_ppi (ConfigurationFacade* self);
-static gint configuration_facade_real_get_printing_content_ppi (ConfigurationFacade* self);
-void configuration_facade_set_printing_content_ppi (ConfigurationFacade* self,
- gint content_ppi);
-static void configuration_facade_real_set_printing_content_ppi (ConfigurationFacade* self,
- gint content_ppi);
-gint configuration_facade_get_printing_content_units (ConfigurationFacade* self);
-static gint configuration_facade_real_get_printing_content_units (ConfigurationFacade* self);
-void configuration_facade_set_printing_content_units (ConfigurationFacade* self,
- gint units_code);
-static void configuration_facade_real_set_printing_content_units (ConfigurationFacade* self,
- gint units_code);
-gdouble configuration_facade_get_printing_content_width (ConfigurationFacade* self);
-static gdouble configuration_facade_real_get_printing_content_width (ConfigurationFacade* self);
-void configuration_facade_set_printing_content_width (ConfigurationFacade* self,
- gdouble content_width);
-static void configuration_facade_real_set_printing_content_width (ConfigurationFacade* self,
- gdouble content_width);
-gint configuration_facade_get_printing_images_per_page (ConfigurationFacade* self);
-static gint configuration_facade_real_get_printing_images_per_page (ConfigurationFacade* self);
-void configuration_facade_set_printing_images_per_page (ConfigurationFacade* self,
- gint images_per_page_code);
-static void configuration_facade_real_set_printing_images_per_page (ConfigurationFacade* self,
- gint images_per_page_code);
-gboolean configuration_facade_get_printing_match_aspect_ratio (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_printing_match_aspect_ratio (ConfigurationFacade* self);
-void configuration_facade_set_printing_match_aspect_ratio (ConfigurationFacade* self,
- gboolean match_aspect_ratio);
-static void configuration_facade_real_set_printing_match_aspect_ratio (ConfigurationFacade* self,
- gboolean match_aspect_ratio);
-gboolean configuration_facade_get_printing_print_titles (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_printing_print_titles (ConfigurationFacade* self);
-void configuration_facade_set_printing_print_titles (ConfigurationFacade* self,
- gboolean print_titles);
-static void configuration_facade_real_set_printing_print_titles (ConfigurationFacade* self,
- gboolean print_titles);
-gint configuration_facade_get_printing_size_selection (ConfigurationFacade* self);
-static gint configuration_facade_real_get_printing_size_selection (ConfigurationFacade* self);
-GType resources_unit_system_get_type (void) G_GNUC_CONST;
-ResourcesUnitSystem resources_get_default_measurement_unit (void);
-void configuration_facade_set_printing_size_selection (ConfigurationFacade* self,
- gint size_code);
-static void configuration_facade_real_set_printing_size_selection (ConfigurationFacade* self,
- gint size_code);
-gchar* configuration_facade_get_printing_titles_font (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_printing_titles_font (ConfigurationFacade* self);
-void configuration_facade_set_printing_titles_font (ConfigurationFacade* self,
- const gchar* font_name);
-static void configuration_facade_real_set_printing_titles_font (ConfigurationFacade* self,
- const gchar* font_name);
-gboolean configuration_facade_get_show_welcome_dialog (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_show_welcome_dialog (ConfigurationFacade* self);
-void configuration_facade_set_show_welcome_dialog (ConfigurationFacade* self,
- gboolean show);
-static void configuration_facade_real_set_show_welcome_dialog (ConfigurationFacade* self,
- gboolean show);
-gint configuration_facade_get_sidebar_position (ConfigurationFacade* self);
-static gint configuration_facade_real_get_sidebar_position (ConfigurationFacade* self);
-void configuration_facade_set_sidebar_position (ConfigurationFacade* self,
- gint position);
-static void configuration_facade_real_set_sidebar_position (ConfigurationFacade* self,
- gint position);
-gdouble configuration_facade_get_slideshow_delay (ConfigurationFacade* self);
-static gdouble configuration_facade_real_get_slideshow_delay (ConfigurationFacade* self);
-void configuration_facade_set_slideshow_delay (ConfigurationFacade* self,
- gdouble delay);
-static void configuration_facade_real_set_slideshow_delay (ConfigurationFacade* self,
- gdouble delay);
-gdouble configuration_facade_get_slideshow_transition_delay (ConfigurationFacade* self);
-static gdouble configuration_facade_real_get_slideshow_transition_delay (ConfigurationFacade* self);
-void configuration_facade_set_slideshow_transition_delay (ConfigurationFacade* self,
- gdouble delay);
-static void configuration_facade_real_set_slideshow_transition_delay (ConfigurationFacade* self,
- gdouble delay);
-gchar* configuration_facade_get_slideshow_transition_effect_id (ConfigurationFacade* self);
-static gchar* configuration_facade_real_get_slideshow_transition_effect_id (ConfigurationFacade* self);
-#define NULL_TRANSITION_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.null"
-#define TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID NULL_TRANSITION_DESCRIPTOR_EFFECT_ID
-void configuration_facade_set_slideshow_transition_effect_id (ConfigurationFacade* self,
- const gchar* id);
-static void configuration_facade_real_set_slideshow_transition_effect_id (ConfigurationFacade* self,
- const gchar* id);
-gboolean configuration_facade_get_slideshow_show_title (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_slideshow_show_title (ConfigurationFacade* self);
-void configuration_facade_set_slideshow_show_title (ConfigurationFacade* self,
- gboolean show_title);
-static void configuration_facade_real_set_slideshow_show_title (ConfigurationFacade* self,
- gboolean show_title);
-gboolean configuration_facade_get_use_24_hour_time (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_use_24_hour_time (ConfigurationFacade* self);
-gboolean is_string_empty (const gchar* s);
-void configuration_facade_set_use_24_hour_time (ConfigurationFacade* self,
- gboolean use_24_hour_time);
-static void configuration_facade_real_set_use_24_hour_time (ConfigurationFacade* self,
- gboolean use_24_hour_time);
-gboolean configuration_facade_get_use_lowercase_filenames (ConfigurationFacade* self);
-static gboolean configuration_facade_real_get_use_lowercase_filenames (ConfigurationFacade* self);
-void configuration_facade_set_use_lowercase_filenames (ConfigurationFacade* self,
- gboolean b);
-static void configuration_facade_real_set_use_lowercase_filenames (ConfigurationFacade* self,
- gboolean b);
-gint configuration_facade_get_video_interpreter_state_cookie (ConfigurationFacade* self);
-static gint configuration_facade_real_get_video_interpreter_state_cookie (ConfigurationFacade* self);
-void configuration_facade_set_video_interpreter_state_cookie (ConfigurationFacade* self,
- gint state_cookie);
-static void configuration_facade_real_set_video_interpreter_state_cookie (ConfigurationFacade* self,
- gint state_cookie);
-gboolean configuration_facade_get_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def);
-static gboolean configuration_facade_real_get_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def);
-void configuration_facade_set_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val);
-static void configuration_facade_real_set_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val);
-gdouble configuration_facade_get_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def);
-static gdouble configuration_facade_real_get_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def);
-void configuration_facade_set_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val);
-static void configuration_facade_real_set_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val);
-gint configuration_facade_get_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def);
-static gint configuration_facade_real_get_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def);
-void configuration_facade_set_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val);
-static void configuration_facade_real_set_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val);
-gchar* configuration_facade_get_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def);
-static gchar* configuration_facade_real_get_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def);
-void configuration_facade_set_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val);
-static void configuration_facade_real_set_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val);
-void configuration_facade_unset_plugin_key (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key);
-static void configuration_facade_real_unset_plugin_key (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key);
-FuzzyPropertyState configuration_facade_is_plugin_enabled (ConfigurationFacade* self,
- const gchar* id);
-static FuzzyPropertyState configuration_facade_real_is_plugin_enabled (ConfigurationFacade* self,
- const gchar* id);
-void configuration_facade_set_plugin_enabled (ConfigurationFacade* self,
- const gchar* id,
- gboolean enabled);
-static void configuration_facade_real_set_plugin_enabled (ConfigurationFacade* self,
- const gchar* id,
- gboolean enabled);
-static void configuration_facade_finalize (GObject * obj);
-
-
-GQuark
-configuration_error_quark (void)
-{
- return g_quark_from_static_string ("configuration_error-quark");
-}
-
-
-GType
-fuzzy_property_state_get_type (void)
-{
- static volatile gsize fuzzy_property_state_type_id__volatile = 0;
- if (g_once_init_enter (&fuzzy_property_state_type_id__volatile)) {
- static const GEnumValue values[] = {{FUZZY_PROPERTY_STATE_ENABLED, "FUZZY_PROPERTY_STATE_ENABLED", "enabled"}, {FUZZY_PROPERTY_STATE_DISABLED, "FUZZY_PROPERTY_STATE_DISABLED", "disabled"}, {FUZZY_PROPERTY_STATE_UNKNOWN, "FUZZY_PROPERTY_STATE_UNKNOWN", "unknown"}, {0, NULL, NULL}};
- GType fuzzy_property_state_type_id;
- fuzzy_property_state_type_id = g_enum_register_static ("FuzzyPropertyState", values);
- g_once_init_leave (&fuzzy_property_state_type_id__volatile, fuzzy_property_state_type_id);
- }
- return fuzzy_property_state_type_id__volatile;
-}
-
-
-gchar*
-configurable_property_to_string (ConfigurableProperty self)
-{
- gchar* result = NULL;
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- switch (self) {
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY:
-#line 1052 "ConfigurationInterfaces.c"
- {
- gchar* _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = g_strdup ("AUTO_IMPORT_FROM_LIBRARY");
-#line 101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1061 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_BG_COLOR_NAME:
-#line 1065 "ConfigurationInterfaces.c"
- {
- gchar* _tmp1_;
-#line 104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = g_strdup ("BG_COLOR_NAME");
-#line 104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp1_;
-#line 104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1074 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE:
-#line 1078 "ConfigurationInterfaces.c"
- {
- gchar* _tmp2_;
-#line 107 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = g_strdup ("TRANSPARENT_BACKGROUND_TYPE");
-#line 107 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp2_;
-#line 107 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1087 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR:
-#line 1091 "ConfigurationInterfaces.c"
- {
- gchar* _tmp3_;
-#line 110 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = g_strdup ("TRANSPARENT_BACKGROUND_COLOR");
-#line 110 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp3_;
-#line 110 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1100 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS:
-#line 1104 "ConfigurationInterfaces.c"
- {
- gchar* _tmp4_;
-#line 113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = g_strdup ("COMMIT_METADATA_TO_MASTERS");
-#line 113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp4_;
-#line 113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1113 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE:
-#line 1117 "ConfigurationInterfaces.c"
- {
- gchar* _tmp5_;
-#line 116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = g_strdup ("DESKTOP_BACKGROUND_FILE");
-#line 116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1126 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE:
-#line 1130 "ConfigurationInterfaces.c"
- {
- gchar* _tmp6_;
-#line 119 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = g_strdup ("DESKTOP_BACKGROUND_MODE");
-#line 119 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp6_;
-#line 119 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1139 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_SCREENSAVER_FILE:
-#line 1143 "ConfigurationInterfaces.c"
- {
- gchar* _tmp7_;
-#line 122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("SCREENSAVER_FILE");
-#line 122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1152 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_SCREENSAVER_MODE:
-#line 1156 "ConfigurationInterfaces.c"
- {
- gchar* _tmp8_;
-#line 125 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = g_strdup ("SCREENSAVER_MODE");
-#line 125 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp8_;
-#line 125 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1165 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN:
-#line 1169 "ConfigurationInterfaces.c"
- {
- gchar* _tmp9_;
-#line 128 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp9_ = g_strdup ("DIRECTORY_PATTERN");
-#line 128 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp9_;
-#line 128 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1178 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM:
-#line 1182 "ConfigurationInterfaces.c"
- {
- gchar* _tmp10_;
-#line 131 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp10_ = g_strdup ("DIRECTORY_PATTERN_CUSTOM");
-#line 131 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp10_;
-#line 131 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1191 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT:
-#line 1195 "ConfigurationInterfaces.c"
- {
- gchar* _tmp11_;
-#line 134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp11_ = g_strdup ("DIRECT_WINDOW_HEIGHT");
-#line 134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp11_;
-#line 134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1204 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE:
-#line 1208 "ConfigurationInterfaces.c"
- {
- gchar* _tmp12_;
-#line 137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp12_ = g_strdup ("DIRECT_WINDOW_MAXIMIZE");
-#line 137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp12_;
-#line 137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1217 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH:
-#line 1221 "ConfigurationInterfaces.c"
- {
- gchar* _tmp13_;
-#line 140 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp13_ = g_strdup ("DIRECT_WINDOW_WIDTH");
-#line 140 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp13_;
-#line 140 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1230 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES:
-#line 1234 "ConfigurationInterfaces.c"
- {
- gchar* _tmp14_;
-#line 143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp14_ = g_strdup ("DISPLAY_BASIC_PROPERTIES");
-#line 143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp14_;
-#line 143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1243 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES:
-#line 1247 "ConfigurationInterfaces.c"
- {
- gchar* _tmp15_;
-#line 146 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp15_ = g_strdup ("DISPLAY_EXTENDED_PROPERTIES");
-#line 146 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp15_;
-#line 146 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1256 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR:
-#line 1260 "ConfigurationInterfaces.c"
- {
- gchar* _tmp16_;
-#line 149 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp16_ = g_strdup ("DISPLAY_SIDEBAR");
-#line 149 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp16_;
-#line 149 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1269 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR:
-#line 1273 "ConfigurationInterfaces.c"
- {
- gchar* _tmp17_;
-#line 152 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp17_ = g_strdup ("DISPLAY_TOOLBAR");
-#line 152 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp17_;
-#line 152 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1282 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR:
-#line 1286 "ConfigurationInterfaces.c"
- {
- gchar* _tmp18_;
-#line 155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp18_ = g_strdup ("DISPLAY_SEARCH_BAR");
-#line 155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp18_;
-#line 155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1295 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS:
-#line 1299 "ConfigurationInterfaces.c"
- {
- gchar* _tmp19_;
-#line 158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp19_ = g_strdup ("DISPLAY_PHOTO_RATINGS");
-#line 158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp19_;
-#line 158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1308 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS:
-#line 1312 "ConfigurationInterfaces.c"
- {
- gchar* _tmp20_;
-#line 161 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp20_ = g_strdup ("DISPLAY_PHOTO_TAGS");
-#line 161 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp20_;
-#line 161 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1321 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES:
-#line 1325 "ConfigurationInterfaces.c"
- {
- gchar* _tmp21_;
-#line 164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp21_ = g_strdup ("DISPLAY_PHOTO_TITLES");
-#line 164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp21_;
-#line 164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1334 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS:
-#line 1338 "ConfigurationInterfaces.c"
- {
- gchar* _tmp22_;
-#line 167 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp22_ = g_strdup ("DISPLAY_PHOTO_COMMENTS");
-#line 167 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp22_;
-#line 167 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1347 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS:
-#line 1351 "ConfigurationInterfaces.c"
- {
- gchar* _tmp23_;
-#line 170 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp23_ = g_strdup ("DISPLAY_EVENT_COMMENTS");
-#line 170 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp23_;
-#line 170 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1360 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING:
-#line 1364 "ConfigurationInterfaces.c"
- {
- gchar* _tmp24_;
-#line 173 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp24_ = g_strdup ("EVENT_PHOTOS_SORT_ASCENDING");
-#line 173 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp24_;
-#line 173 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1373 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY:
-#line 1377 "ConfigurationInterfaces.c"
- {
- gchar* _tmp25_;
-#line 176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp25_ = g_strdup ("EVENT_PHOTOS_SORT_BY");
-#line 176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp25_;
-#line 176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1386 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING:
-#line 1390 "ConfigurationInterfaces.c"
- {
- gchar* _tmp26_;
-#line 179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp26_ = g_strdup ("EVENTS_SORT_ASCENDING");
-#line 179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp26_;
-#line 179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1399 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT:
-#line 1403 "ConfigurationInterfaces.c"
- {
- gchar* _tmp27_;
-#line 182 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp27_ = g_strdup ("EXPORT_CONSTRAINT");
-#line 182 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp27_;
-#line 182 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1412 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE:
-#line 1416 "ConfigurationInterfaces.c"
- {
- gchar* _tmp28_;
-#line 185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp28_ = g_strdup ("EXPORT_EXPORT_FORMAT_MODE");
-#line 185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp28_;
-#line 185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1425 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA:
-#line 1429 "ConfigurationInterfaces.c"
- {
- gchar* _tmp29_;
-#line 188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp29_ = g_strdup ("EXPORT_EXPORT_METADATA");
-#line 188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp29_;
-#line 188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1438 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT:
-#line 1442 "ConfigurationInterfaces.c"
- {
- gchar* _tmp30_;
-#line 191 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp30_ = g_strdup ("EXPORT_PHOTO_FILE_FORMAT");
-#line 191 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp30_;
-#line 191 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1451 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXPORT_QUALITY:
-#line 1455 "ConfigurationInterfaces.c"
- {
- gchar* _tmp31_;
-#line 194 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp31_ = g_strdup ("EXPORT_QUALITY");
-#line 194 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp31_;
-#line 194 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1464 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXPORT_SCALE:
-#line 1468 "ConfigurationInterfaces.c"
- {
- gchar* _tmp32_;
-#line 197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp32_ = g_strdup ("EXPORT_SCALE");
-#line 197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp32_;
-#line 197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1477 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP:
-#line 1481 "ConfigurationInterfaces.c"
- {
- gchar* _tmp33_;
-#line 200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp33_ = g_strdup ("EXTERNAL_PHOTO_APP");
-#line 200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp33_;
-#line 200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1490 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP:
-#line 1494 "ConfigurationInterfaces.c"
- {
- gchar* _tmp34_;
-#line 203 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp34_ = g_strdup ("EXTERNAL_RAW_APP");
-#line 203 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp34_;
-#line 203 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1503 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED:
-#line 1507 "ConfigurationInterfaces.c"
- {
- gchar* _tmp35_;
-#line 206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp35_ = g_strdup ("HIDE_PHOTOS_ALREADY_IMPORTED");
-#line 206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp35_;
-#line 206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1516 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_IMPORT_DIR:
-#line 1520 "ConfigurationInterfaces.c"
- {
- gchar* _tmp36_;
-#line 209 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp36_ = g_strdup ("IMPORT_DIR");
-#line 209 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp36_;
-#line 209 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1529 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_KEEP_RELATIVITY:
-#line 1533 "ConfigurationInterfaces.c"
- {
- gchar* _tmp37_;
-#line 212 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp37_ = g_strdup ("KEEP_RELATIVITY");
-#line 212 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp37_;
-#line 212 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1542 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT:
-#line 1546 "ConfigurationInterfaces.c"
- {
- gchar* _tmp38_;
-#line 215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp38_ = g_strdup ("LAST_CROP_HEIGHT");
-#line 215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp38_;
-#line 215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1555 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE:
-#line 1559 "ConfigurationInterfaces.c"
- {
- gchar* _tmp39_;
-#line 218 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp39_ = g_strdup ("LAST_CROP_MENU_CHOICE");
-#line 218 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp39_;
-#line 218 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1568 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH:
-#line 1572 "ConfigurationInterfaces.c"
- {
- gchar* _tmp40_;
-#line 221 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp40_ = g_strdup ("LAST_CROP_WIDTH");
-#line 221 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp40_;
-#line 221 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1581 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LAST_USED_SERVICE:
-#line 1585 "ConfigurationInterfaces.c"
- {
- gchar* _tmp41_;
-#line 224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp41_ = g_strdup ("LAST_USED_SERVICE");
-#line 224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp41_;
-#line 224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1594 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE:
-#line 1598 "ConfigurationInterfaces.c"
- {
- gchar* _tmp42_;
-#line 227 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp42_ = g_strdup ("LAST_USED_DATAIMPORTS_SERVICE");
-#line 227 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp42_;
-#line 227 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1607 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING:
-#line 1611 "ConfigurationInterfaces.c"
- {
- gchar* _tmp43_;
-#line 230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp43_ = g_strdup ("LIBRARY_PHOTOS_SORT_ASCENDING");
-#line 230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp43_;
-#line 230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1620 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY:
-#line 1624 "ConfigurationInterfaces.c"
- {
- gchar* _tmp44_;
-#line 233 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp44_ = g_strdup ("LIBRARY_PHOTOS_SORT_BY");
-#line 233 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp44_;
-#line 233 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1633 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT:
-#line 1637 "ConfigurationInterfaces.c"
- {
- gchar* _tmp45_;
-#line 236 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp45_ = g_strdup ("LIBRARY_WINDOW_HEIGHT");
-#line 236 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp45_;
-#line 236 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1646 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE:
-#line 1650 "ConfigurationInterfaces.c"
- {
- gchar* _tmp46_;
-#line 239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp46_ = g_strdup ("LIBRARY_WINDOW_MAXIMIZE");
-#line 239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp46_;
-#line 239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1659 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH:
-#line 1663 "ConfigurationInterfaces.c"
- {
- gchar* _tmp47_;
-#line 242 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp47_ = g_strdup ("LIBRARY_WINDOW_WIDTH");
-#line 242 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp47_;
-#line 242 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1672 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS:
-#line 1676 "ConfigurationInterfaces.c"
- {
- gchar* _tmp48_;
-#line 245 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp48_ = g_strdup ("MODIFY_ORIGINALS");
-#line 245 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp48_;
-#line 245 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1685 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE:
-#line 1689 "ConfigurationInterfaces.c"
- {
- gchar* _tmp49_;
-#line 248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp49_ = g_strdup ("PHOTO_THUMBNAIL_SCALE");
-#line 248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp49_;
-#line 248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1698 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE:
-#line 1702 "ConfigurationInterfaces.c"
- {
- gchar* _tmp50_;
-#line 251 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp50_ = g_strdup ("PIN_TOOLBAR_STATE");
-#line 251 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp50_;
-#line 251 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1711 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT:
-#line 1715 "ConfigurationInterfaces.c"
- {
- gchar* _tmp51_;
-#line 254 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp51_ = g_strdup ("PRINTING_CONTENT_HEIGHT");
-#line 254 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp51_;
-#line 254 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1724 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT:
-#line 1728 "ConfigurationInterfaces.c"
- {
- gchar* _tmp52_;
-#line 257 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp52_ = g_strdup ("PRINTING_CONTENT_LAYOUT");
-#line 257 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp52_;
-#line 257 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1737 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI:
-#line 1741 "ConfigurationInterfaces.c"
- {
- gchar* _tmp53_;
-#line 260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp53_ = g_strdup ("PRINTING_CONTENT_PPI");
-#line 260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp53_;
-#line 260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1750 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS:
-#line 1754 "ConfigurationInterfaces.c"
- {
- gchar* _tmp54_;
-#line 263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp54_ = g_strdup ("PRINTING_CONTENT_UNITS");
-#line 263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp54_;
-#line 263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1763 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH:
-#line 1767 "ConfigurationInterfaces.c"
- {
- gchar* _tmp55_;
-#line 266 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp55_ = g_strdup ("PRINTING_CONTENT_WIDTH");
-#line 266 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp55_;
-#line 266 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1776 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE:
-#line 1780 "ConfigurationInterfaces.c"
- {
- gchar* _tmp56_;
-#line 269 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp56_ = g_strdup ("PRINTING_IMAGES_PER_PAGE");
-#line 269 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp56_;
-#line 269 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1789 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO:
-#line 1793 "ConfigurationInterfaces.c"
- {
- gchar* _tmp57_;
-#line 272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp57_ = g_strdup ("PRINTING_MATCH_ASPECT_RATIO");
-#line 272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp57_;
-#line 272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1802 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES:
-#line 1806 "ConfigurationInterfaces.c"
- {
- gchar* _tmp58_;
-#line 275 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp58_ = g_strdup ("PRINTING_PRINT_TITLES");
-#line 275 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp58_;
-#line 275 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1815 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION:
-#line 1819 "ConfigurationInterfaces.c"
- {
- gchar* _tmp59_;
-#line 278 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp59_ = g_strdup ("PRINTING_SIZE_SELECTION");
-#line 278 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp59_;
-#line 278 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1828 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT:
-#line 1832 "ConfigurationInterfaces.c"
- {
- gchar* _tmp60_;
-#line 281 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp60_ = g_strdup ("PRINTING_TITLES_FONT");
-#line 281 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp60_;
-#line 281 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1841 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT:
-#line 1845 "ConfigurationInterfaces.c"
- {
- gchar* _tmp61_;
-#line 284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp61_ = g_strdup ("RAW_DEVELOPER_DEFAULT");
-#line 284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp61_;
-#line 284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1854 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG:
-#line 1858 "ConfigurationInterfaces.c"
- {
- gchar* _tmp62_;
-#line 287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp62_ = g_strdup ("SHOW_WELCOME_DIALOG");
-#line 287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp62_;
-#line 287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1867 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_SIDEBAR_POSITION:
-#line 1871 "ConfigurationInterfaces.c"
- {
- gchar* _tmp63_;
-#line 290 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp63_ = g_strdup ("SIDEBAR_POSITION");
-#line 290 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp63_;
-#line 290 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1880 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY:
-#line 1884 "ConfigurationInterfaces.c"
- {
- gchar* _tmp64_;
-#line 293 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp64_ = g_strdup ("SLIDESHOW_DELAY");
-#line 293 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp64_;
-#line 293 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1893 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY:
-#line 1897 "ConfigurationInterfaces.c"
- {
- gchar* _tmp65_;
-#line 296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp65_ = g_strdup ("SLIDESHOW_TRANSITION_DELAY");
-#line 296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp65_;
-#line 296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1906 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID:
-#line 1910 "ConfigurationInterfaces.c"
- {
- gchar* _tmp66_;
-#line 299 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp66_ = g_strdup ("SLIDESHOW_TRANSITION_EFFECT_ID");
-#line 299 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp66_;
-#line 299 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1919 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE:
-#line 1923 "ConfigurationInterfaces.c"
- {
- gchar* _tmp67_;
-#line 302 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp67_ = g_strdup ("SLIDESHOW_SHOW_TITLE");
-#line 302 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp67_;
-#line 302 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1932 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME:
-#line 1936 "ConfigurationInterfaces.c"
- {
- gchar* _tmp68_;
-#line 305 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp68_ = g_strdup ("USE_24_HOUR_TIME");
-#line 305 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp68_;
-#line 305 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1945 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES:
-#line 1949 "ConfigurationInterfaces.c"
- {
- gchar* _tmp69_;
-#line 308 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp69_ = g_strdup ("USE_LOWERCASE_FILENAMES");
-#line 308 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp69_;
-#line 308 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1958 "ConfigurationInterfaces.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE:
-#line 1962 "ConfigurationInterfaces.c"
- {
- gchar* _tmp70_;
-#line 311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp70_ = g_strdup ("VIDEO_INTERPRETER_STATE_COOKIE");
-#line 311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp70_;
-#line 311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 1971 "ConfigurationInterfaces.c"
- }
- default:
- {
-#line 314 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_error ("ConfigurationInterfaces.vala:314: unknown ConfigurableProperty enumera" \
-"tion value");
-#line 1977 "ConfigurationInterfaces.c"
- }
- }
-}
-
-
-GType
-configurable_property_get_type (void)
-{
- static volatile gsize configurable_property_type_id__volatile = 0;
- if (g_once_init_enter (&configurable_property_type_id__volatile)) {
- static const GEnumValue values[] = {{CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY, "CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY", "auto-import-from-library"}, {CONFIGURABLE_PROPERTY_BG_COLOR_NAME, "CONFIGURABLE_PROPERTY_BG_COLOR_NAME", "bg-color-name"}, {CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, "CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE", "transparent-background-type"}, {CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, "CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR", "transparent-background-color"}, {CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, "CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS", "commit-metadata-to-masters"}, {CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, "CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE", "desktop-background-file"}, {CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE, "CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE", "desktop-background-mode"}, {CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, "CONFIGURABLE_PROPERTY_SCREENSAVER_FILE", "screensaver-file"}, {CONFIGURABLE_PROPERTY_SCREENSAVER_MODE, "CONFIGURABLE_PROPERTY_SCREENSAVER_MODE", "screensaver-mode"}, {CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, "CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN", "directory-pattern"}, {CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, "CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM", "directory-pattern-custom"}, {CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, "CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT", "direct-window-height"}, {CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, "CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE", "direct-window-maximize"}, {CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, "CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH", "direct-window-width"}, {CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, "CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES", "display-basic-properties"}, {CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, "CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS", "display-event-comments"}, {CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, "CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES", "display-extended-properties"}, {CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, "CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR", "display-sidebar"}, {CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, "CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR", "display-toolbar"}, {CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, "CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR", "display-search-bar"}, {CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, "CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS", "display-photo-ratings"}, {CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, "CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS", "display-photo-tags"}, {CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, "CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES", "display-photo-titles"}, {CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, "CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS", "display-photo-comments"}, {CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, "CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING", "event-photos-sort-ascending"}, {CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, "CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY", "event-photos-sort-by"}, {CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, "CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING", "events-sort-ascending"}, {CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, "CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT", "export-constraint"}, {CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, "CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE", "export-export-format-mode"}, {CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, "CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA", "export-export-metadata"}, {CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, "CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT", "export-photo-file-format"}, {CONFIGURABLE_PROPERTY_EXPORT_QUALITY, "CONFIGURABLE_PROPERTY_EXPORT_QUALITY", "export-quality"}, {CONFIGURABLE_PROPERTY_EXPORT_SCALE, "CONFIGURABLE_PROPERTY_EXPORT_SCALE", "export-scale"}, {CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, "CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP", "external-photo-app"}, {CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, "CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP", "external-raw-app"}, {CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, "CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED", "hide-photos-already-imported"}, {CONFIGURABLE_PROPERTY_IMPORT_DIR, "CONFIGURABLE_PROPERTY_IMPORT_DIR", "import-dir"}, {CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, "CONFIGURABLE_PROPERTY_KEEP_RELATIVITY", "keep-relativity"}, {CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, "CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT", "last-crop-height"}, {CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, "CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE", "last-crop-menu-choice"}, {CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, "CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH", "last-crop-width"}, {CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, "CONFIGURABLE_PROPERTY_LAST_USED_SERVICE", "last-used-service"}, {CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, "CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE", "last-used-dataimports-service"}, {CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, "CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING", "library-photos-sort-ascending"}, {CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, "CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY", "library-photos-sort-by"}, {CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, "CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT", "library-window-height"}, {CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, "CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE", "library-window-maximize"}, {CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, "CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH", "library-window-width"}, {CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, "CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS", "modify-originals"}, {CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, "CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE", "photo-thumbnail-scale"}, {CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, "CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE", "pin-toolbar-state"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT", "printing-content-height"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT", "printing-content-layout"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI", "printing-content-ppi"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS", "printing-content-units"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH", "printing-content-width"}, {CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, "CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE", "printing-images-per-page"}, {CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, "CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO", "printing-match-aspect-ratio"}, {CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, "CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES", "printing-print-titles"}, {CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, "CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION", "printing-size-selection"}, {CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, "CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT", "printing-titles-font"}, {CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, "CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT", "raw-developer-default"}, {CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, "CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG", "show-welcome-dialog"}, {CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, "CONFIGURABLE_PROPERTY_SIDEBAR_POSITION", "sidebar-position"}, {CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, "CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY", "slideshow-delay"}, {CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, "CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY", "slideshow-transition-delay"}, {CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, "CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID", "slideshow-transition-effect-id"}, {CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, "CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE", "slideshow-show-title"}, {CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, "CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME", "use-24-hour-time"}, {CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, "CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES", "use-lowercase-filenames"}, {CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, "CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE", "video-interpreter-state-cookie"}, {CONFIGURABLE_PROPERTY_NUM_PROPERTIES, "CONFIGURABLE_PROPERTY_NUM_PROPERTIES", "num-properties"}, {0, NULL, NULL}};
- GType configurable_property_type_id;
- configurable_property_type_id = g_enum_register_static ("ConfigurableProperty", values);
- g_once_init_leave (&configurable_property_type_id__volatile, configurable_property_type_id);
- }
- return configurable_property_type_id__volatile;
-}
-
-
-gchar*
-configuration_engine_get_name (ConfigurationEngine* self)
-{
-#line 322 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), NULL);
-#line 322 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_name (self);
-#line 2004 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_engine_get_int_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error)
-{
-#line 324 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0);
-#line 324 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_int_property (self, p, error);
-#line 2017 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_int_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- gint val,
- GError** error)
-{
-#line 325 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 325 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_int_property (self, p, val, error);
-#line 2031 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_engine_get_enum_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error)
-{
-#line 327 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0);
-#line 327 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_enum_property (self, p, error);
-#line 2044 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_enum_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- gint val,
- GError** error)
-{
-#line 328 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 328 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_enum_property (self, p, val, error);
-#line 2058 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_engine_get_string_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error)
-{
-#line 330 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), NULL);
-#line 330 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_string_property (self, p, error);
-#line 2071 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_string_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- const gchar* val,
- GError** error)
-{
-#line 331 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 331 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_string_property (self, p, val, error);
-#line 2085 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_engine_get_bool_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error)
-{
-#line 333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), FALSE);
-#line 333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_bool_property (self, p, error);
-#line 2098 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_bool_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- gboolean val,
- GError** error)
-{
-#line 334 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 334 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_bool_property (self, p, val, error);
-#line 2112 "ConfigurationInterfaces.c"
-}
-
-
-gdouble
-configuration_engine_get_double_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- GError** error)
-{
-#line 336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0.0);
-#line 336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_double_property (self, p, error);
-#line 2125 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_double_property (ConfigurationEngine* self,
- ConfigurableProperty p,
- gdouble val,
- GError** error)
-{
-#line 337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_double_property (self, p, val, error);
-#line 2139 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_engine_get_plugin_bool (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def)
-{
-#line 339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), FALSE);
-#line 339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_plugin_bool (self, domain, id, key, def);
-#line 2154 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_plugin_bool (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val)
-{
-#line 340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_bool (self, domain, id, key, val);
-#line 2169 "ConfigurationInterfaces.c"
-}
-
-
-gdouble
-configuration_engine_get_plugin_double (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def)
-{
-#line 341 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0.0);
-#line 341 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_plugin_double (self, domain, id, key, def);
-#line 2184 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_plugin_double (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val)
-{
-#line 342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_double (self, domain, id, key, val);
-#line 2199 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_engine_get_plugin_int (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def)
-{
-#line 343 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0);
-#line 343 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_plugin_int (self, domain, id, key, def);
-#line 2214 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_plugin_int (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val)
-{
-#line 344 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 344 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_int (self, domain, id, key, val);
-#line 2229 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_engine_get_plugin_string (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def)
-{
-#line 345 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), NULL);
-#line 345 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_plugin_string (self, domain, id, key, def);
-#line 2244 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_plugin_string (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val)
-{
-#line 346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_string (self, domain, id, key, val);
-#line 2259 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_unset_plugin_key (ConfigurationEngine* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key)
-{
-#line 347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->unset_plugin_key (self, domain, id, key);
-#line 2273 "ConfigurationInterfaces.c"
-}
-
-
-FuzzyPropertyState
-configuration_engine_is_plugin_enabled (ConfigurationEngine* self,
- const gchar* id)
-{
-#line 349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0);
-#line 349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_ENGINE_GET_INTERFACE (self)->is_plugin_enabled (self, id);
-#line 2285 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_engine_set_plugin_enabled (ConfigurationEngine* self,
- const gchar* id,
- gboolean enabled)
-{
-#line 350 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_ENGINE (self));
-#line 350 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_enabled (self, id, enabled);
-#line 2298 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_engine_base_init (ConfigurationEngineIface * iface)
-{
-#line 319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (!initialized) {
-#line 319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- initialized = TRUE;
-#line 319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_signals[CONFIGURATION_ENGINE_PROPERTY_CHANGED_SIGNAL] = g_signal_new ("property-changed", TYPE_CONFIGURATION_ENGINE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__ENUM, G_TYPE_NONE, 1, TYPE_CONFIGURABLE_PROPERTY);
-#line 2313 "ConfigurationInterfaces.c"
- }
-}
-
-
-GType
-configuration_engine_get_type (void)
-{
- static volatile gsize configuration_engine_type_id__volatile = 0;
- if (g_once_init_enter (&configuration_engine_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ConfigurationEngineIface), (GBaseInitFunc) configuration_engine_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType configuration_engine_type_id;
- configuration_engine_type_id = g_type_register_static (G_TYPE_INTERFACE, "ConfigurationEngine", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (configuration_engine_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&configuration_engine_type_id__volatile, configuration_engine_type_id);
- }
- return configuration_engine_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 366 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return self ? g_object_ref (self) : NULL;
-#line 2338 "ConfigurationInterfaces.c"
-}
-
-
-static void
-_configuration_facade_on_property_changed_configuration_engine_property_changed (ConfigurationEngine* _sender,
- ConfigurableProperty p,
- gpointer self)
-{
-#line 368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_property_changed ((ConfigurationFacade*) self, p);
-#line 2349 "ConfigurationInterfaces.c"
-}
-
-
-ConfigurationFacade*
-configuration_facade_construct (GType object_type,
- ConfigurationEngine* engine)
-{
- ConfigurationFacade * self = NULL;
- ConfigurationEngine* _tmp0_;
-#line 365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_ENGINE (engine), NULL);
-#line 365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- self = (ConfigurationFacade*) g_object_new (object_type, NULL);
-#line 366 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _g_object_ref0 (engine);
-#line 366 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (self->priv->engine);
-#line 366 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- self->priv->engine = _tmp0_;
-#line 368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_connect_object (engine, "property-changed", (GCallback) _configuration_facade_on_property_changed_configuration_engine_property_changed, self, 0);
-#line 365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return self;
-#line 2373 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_on_property_changed (ConfigurationFacade* self,
- ConfigurableProperty p)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 371 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configurable_property_to_string (p);
-#line 372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_debug ("ConfigurationInterfaces.vala:372: ConfigurationFacade: engine reports " \
-"property '%s' changed.", _tmp1_);
-#line 372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp1_);
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- switch (p) {
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY:
-#line 2397 "ConfigurationInterfaces.c"
- {
-#line 376 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_AUTO_IMPORT_FROM_LIBRARY_CHANGED_SIGNAL], 0);
-#line 377 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2403 "ConfigurationInterfaces.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_BG_COLOR_NAME:
-#line 2407 "ConfigurationInterfaces.c"
- {
-#line 380 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_BG_COLOR_NAME_CHANGED_SIGNAL], 0);
-#line 381 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2413 "ConfigurationInterfaces.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE:
-#line 2417 "ConfigurationInterfaces.c"
- {
-#line 384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_TYPE_CHANGED_SIGNAL], 0);
-#line 385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2423 "ConfigurationInterfaces.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR:
-#line 2427 "ConfigurationInterfaces.c"
- {
-#line 388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_COLOR_CHANGED_SIGNAL], 0);
-#line 389 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2433 "ConfigurationInterfaces.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS:
-#line 2437 "ConfigurationInterfaces.c"
- {
-#line 392 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_COMMIT_METADATA_TO_MASTERS_CHANGED_SIGNAL], 0);
-#line 393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2443 "ConfigurationInterfaces.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING:
-#line 2447 "ConfigurationInterfaces.c"
- {
-#line 396 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_EVENTS_SORT_ASCENDING_CHANGED_SIGNAL], 0);
-#line 397 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2453 "ConfigurationInterfaces.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP:
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP:
-#line 2459 "ConfigurationInterfaces.c"
- {
-#line 401 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_EXTERNAL_APP_CHANGED_SIGNAL], 0);
-#line 402 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2465 "ConfigurationInterfaces.c"
- }
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- case CONFIGURABLE_PROPERTY_IMPORT_DIR:
-#line 2469 "ConfigurationInterfaces.c"
- {
-#line 405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_IMPORT_DIRECTORY_CHANGED_SIGNAL], 0);
-#line 406 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2475 "ConfigurationInterfaces.c"
- }
- default:
-#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- break;
-#line 2480 "ConfigurationInterfaces.c"
- }
-}
-
-
-ConfigurationEngine*
-configuration_facade_get_engine (ConfigurationFacade* self)
-{
- ConfigurationEngine* result = NULL;
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 410 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 411 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = self->priv->engine;
-#line 411 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 411 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp1_;
-#line 411 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 2501 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_facade_on_configuration_error (ConfigurationFacade* self,
- GError* err)
-{
-#line 414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (g_error_matches (err, CONFIGURATION_ERROR, CONFIGURATION_ERROR_PROPERTY_HAS_NO_VALUE)) {
-#line 2513 "ConfigurationInterfaces.c"
- ConfigurationEngine* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = self->priv->engine;
-#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_engine_get_name (_tmp0_);
-#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = err->message;
-#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_message ("ConfigurationInterfaces.vala:416: configuration engine '%s' reports PR" \
-"OPERTY_HAS_NO_VALUE error: %s", _tmp2_, _tmp3_);
-#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp2_);
-#line 2530 "ConfigurationInterfaces.c"
- } else {
-#line 419 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (g_error_matches (err, CONFIGURATION_ERROR, CONFIGURATION_ERROR_ENGINE_ERROR)) {
-#line 2534 "ConfigurationInterfaces.c"
- ConfigurationEngine* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = self->priv->engine;
-#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = configuration_engine_get_name (_tmp4_);
-#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = _tmp5_;
-#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = err->message;
-#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_critical ("ConfigurationInterfaces.vala:420: configuration engine '%s' reports EN" \
-"GINE_ERROR: %s", _tmp6_, _tmp7_);
-#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp6_);
-#line 2551 "ConfigurationInterfaces.c"
- } else {
- ConfigurationEngine* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- const gchar* _tmp11_;
-#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = self->priv->engine;
-#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp9_ = configuration_engine_get_name (_tmp8_);
-#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp10_ = _tmp9_;
-#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp11_ = err->message;
-#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_critical ("ConfigurationInterfaces.vala:423: configuration engine '%s' reports un" \
-"known error: %s", _tmp10_, _tmp11_);
-#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp10_);
-#line 2569 "ConfigurationInterfaces.c"
- }
- }
-}
-
-
-static gboolean
-configuration_facade_real_get_auto_import_from_library (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY, &_inner_error_);
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2598 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 2602 "ConfigurationInterfaces.c"
- goto __catch91_configuration_error;
- }
-#line 433 "/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);
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 2611 "ConfigurationInterfaces.c"
- }
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 2617 "ConfigurationInterfaces.c"
- }
- goto __finally91;
- __catch91_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 435 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 435 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 2638 "ConfigurationInterfaces.c"
- }
- __finally91:
-#line 432 "/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 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 2647 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_auto_import_from_library (ConfigurationFacade* self)
-{
-#line 431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_auto_import_from_library (self);
-#line 2658 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_auto_import_from_library (ConfigurationFacade* self,
- gboolean auto_import)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY, auto_import, &_inner_error_);
-#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 2682 "ConfigurationInterfaces.c"
- goto __catch92_configuration_error;
- }
-#line 443 "/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);
-#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 2691 "ConfigurationInterfaces.c"
- }
- }
- goto __finally92;
- __catch92_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 446 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 446 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 2711 "ConfigurationInterfaces.c"
- }
- __finally92:
-#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 442 "/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 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 2722 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_auto_import_from_library (ConfigurationFacade* self,
- gboolean auto_import)
-{
-#line 441 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 441 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_auto_import_from_library (self, auto_import);
-#line 2735 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_bg_color_name (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_BG_COLOR_NAME, &_inner_error_);
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 2767 "ConfigurationInterfaces.c"
- goto __catch93_configuration_error;
- }
-#line 456 "/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);
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 2776 "ConfigurationInterfaces.c"
- }
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 2788 "ConfigurationInterfaces.c"
- }
- goto __finally93;
- __catch93_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 2812 "ConfigurationInterfaces.c"
- }
- __finally93:
-#line 455 "/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 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 2821 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_bg_color_name (ConfigurationFacade* self)
-{
-#line 454 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 454 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_bg_color_name (self);
-#line 2832 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_bg_color_name (ConfigurationFacade* self,
- const gchar* color_name)
-{
- GError * _inner_error_ = NULL;
-#line 464 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (color_name != NULL);
-#line 2843 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_BG_COLOR_NAME, color_name, &_inner_error_);
-#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 2859 "ConfigurationInterfaces.c"
- goto __catch94_configuration_error;
- }
-#line 466 "/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);
-#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 2868 "ConfigurationInterfaces.c"
- }
- }
- goto __finally94;
- __catch94_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 468 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 468 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 2888 "ConfigurationInterfaces.c"
- }
- __finally94:
-#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 465 "/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 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 2899 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_bg_color_name (ConfigurationFacade* self,
- const gchar* color_name)
-{
-#line 464 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 464 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_bg_color_name (self, color_name);
-#line 2912 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_transparent_background_type (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, &_inner_error_);
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 2944 "ConfigurationInterfaces.c"
- goto __catch95_configuration_error;
- }
-#line 478 "/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);
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 2953 "ConfigurationInterfaces.c"
- }
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 2965 "ConfigurationInterfaces.c"
- }
- goto __finally95;
- __catch95_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("checkered");
-#line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 2989 "ConfigurationInterfaces.c"
- }
- __finally95:
-#line 477 "/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 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 2998 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_transparent_background_type (ConfigurationFacade* self)
-{
-#line 476 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 476 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_transparent_background_type (self);
-#line 3009 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_transparent_background_type (ConfigurationFacade* self,
- const gchar* type)
-{
- GError * _inner_error_ = NULL;
-#line 486 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (type != NULL);
-#line 3020 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, type, &_inner_error_);
-#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3036 "ConfigurationInterfaces.c"
- goto __catch96_configuration_error;
- }
-#line 488 "/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);
-#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3045 "ConfigurationInterfaces.c"
- }
- }
- goto __finally96;
- __catch96_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 490 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 490 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3065 "ConfigurationInterfaces.c"
- }
- __finally96:
-#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 487 "/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 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3076 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_transparent_background_type (ConfigurationFacade* self,
- const gchar* type)
-{
-#line 486 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 486 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_transparent_background_type (self, type);
-#line 3089 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_transparent_background_color (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, &_inner_error_);
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3121 "ConfigurationInterfaces.c"
- goto __catch97_configuration_error;
- }
-#line 500 "/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);
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 3130 "ConfigurationInterfaces.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3142 "ConfigurationInterfaces.c"
- }
- goto __finally97;
- __catch97_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 504 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("#444");
-#line 504 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 504 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 504 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3166 "ConfigurationInterfaces.c"
- }
- __finally97:
-#line 499 "/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 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 3175 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_transparent_background_color (ConfigurationFacade* self)
-{
-#line 498 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 498 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_transparent_background_color (self);
-#line 3186 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_transparent_background_color (ConfigurationFacade* self,
- const gchar* color_name)
-{
- GError * _inner_error_ = NULL;
-#line 508 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (color_name != NULL);
-#line 3197 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, color_name, &_inner_error_);
-#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3213 "ConfigurationInterfaces.c"
- goto __catch98_configuration_error;
- }
-#line 510 "/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);
-#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3222 "ConfigurationInterfaces.c"
- }
- }
- goto __finally98;
- __catch98_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 512 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 512 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3242 "ConfigurationInterfaces.c"
- }
- __finally98:
-#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 509 "/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 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3253 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_transparent_background_color (ConfigurationFacade* self,
- const gchar* color_name)
-{
-#line 508 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 508 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_transparent_background_color (self, color_name);
-#line 3266 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_commit_metadata_to_masters (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, &_inner_error_);
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3293 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3297 "ConfigurationInterfaces.c"
- goto __catch99_configuration_error;
- }
-#line 522 "/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);
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 3306 "ConfigurationInterfaces.c"
- }
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3312 "ConfigurationInterfaces.c"
- }
- goto __finally99;
- __catch99_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 526 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 526 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 526 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3333 "ConfigurationInterfaces.c"
- }
- __finally99:
-#line 521 "/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 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 3342 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self)
-{
-#line 520 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 520 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_commit_metadata_to_masters (self);
-#line 3353 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_commit_metadata_to_masters (ConfigurationFacade* self,
- gboolean commit_metadata)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, commit_metadata, &_inner_error_);
-#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3377 "ConfigurationInterfaces.c"
- goto __catch100_configuration_error;
- }
-#line 532 "/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);
-#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3386 "ConfigurationInterfaces.c"
- }
- }
- goto __finally100;
- __catch100_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3406 "ConfigurationInterfaces.c"
- }
- __finally100:
-#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 531 "/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 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3417 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_commit_metadata_to_masters (ConfigurationFacade* self,
- gboolean commit_metadata)
-{
-#line 530 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 530 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_commit_metadata_to_masters (self, commit_metadata);
-#line 3430 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_desktop_background (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, &_inner_error_);
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3462 "ConfigurationInterfaces.c"
- goto __catch101_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);
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 3471 "ConfigurationInterfaces.c"
- }
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3483 "ConfigurationInterfaces.c"
- }
- goto __finally101;
- __catch101_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 547 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 547 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3507 "ConfigurationInterfaces.c"
- }
- __finally101:
-#line 544 "/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 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 3516 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_desktop_background (ConfigurationFacade* self)
-{
-#line 543 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 543 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_desktop_background (self);
-#line 3527 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_desktop_background (ConfigurationFacade* self,
- const gchar* filename)
-{
- GError * _inner_error_ = NULL;
-#line 553 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (filename != NULL);
-#line 3538 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- ConfigurationEngine* _tmp3_;
-#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, filename, &_inner_error_);
-#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3556 "ConfigurationInterfaces.c"
- goto __catch102_configuration_error;
- }
-#line 555 "/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);
-#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3565 "ConfigurationInterfaces.c"
- }
-#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_facade_get_engine (self);
-#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp3_, CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE, "zoom", &_inner_error_);
-#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp3_);
-#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3579 "ConfigurationInterfaces.c"
- goto __catch102_configuration_error;
- }
-#line 557 "/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);
-#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3588 "ConfigurationInterfaces.c"
- }
- }
- goto __finally102;
- __catch102_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 560 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 560 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 3606 "ConfigurationInterfaces.c"
- }
- __finally102:
-#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 554 "/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 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3617 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_desktop_background (ConfigurationFacade* self,
- const gchar* filename)
-{
-#line 553 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 553 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_desktop_background (self, filename);
-#line 3630 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_screensaver (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, &_inner_error_);
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3662 "ConfigurationInterfaces.c"
- goto __catch103_configuration_error;
- }
-#line 569 "/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);
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 3671 "ConfigurationInterfaces.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3683 "ConfigurationInterfaces.c"
- }
- goto __finally103;
- __catch103_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 571 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 571 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3707 "ConfigurationInterfaces.c"
- }
- __finally103:
-#line 568 "/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 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 3716 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_screensaver (ConfigurationFacade* self)
-{
-#line 567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_screensaver (self);
-#line 3727 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_screensaver (ConfigurationFacade* self,
- const gchar* filename)
-{
- GError * _inner_error_ = NULL;
-#line 577 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (filename != NULL);
-#line 3738 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- ConfigurationEngine* _tmp3_;
-#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, filename, &_inner_error_);
-#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3756 "ConfigurationInterfaces.c"
- goto __catch104_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);
-#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3765 "ConfigurationInterfaces.c"
- }
-#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_facade_get_engine (self);
-#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp3_, CONFIGURABLE_PROPERTY_SCREENSAVER_MODE, "zoom", &_inner_error_);
-#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp3_);
-#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3779 "ConfigurationInterfaces.c"
- goto __catch104_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);
-#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3788 "ConfigurationInterfaces.c"
- }
- }
- goto __finally104;
- __catch104_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 584 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 584 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 3806 "ConfigurationInterfaces.c"
- }
- __finally104:
-#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"
- 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 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3817 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_screensaver (ConfigurationFacade* self,
- const gchar* filename)
-{
-#line 577 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 577 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_screensaver (self, filename);
-#line 3830 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_directory_pattern (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* s = NULL;
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_ = NULL;
- gchar* _tmp5_;
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_engine_get_string_property (_tmp1_, CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, &_inner_error_);
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- s = _tmp3_;
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3863 "ConfigurationInterfaces.c"
- goto __catch105_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);
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 3872 "ConfigurationInterfaces.c"
- }
-#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (g_strcmp0 (s, "") == 0) {
-#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = NULL;
-#line 3878 "ConfigurationInterfaces.c"
- } else {
-#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = s;
-#line 3882 "ConfigurationInterfaces.c"
- }
-#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (s);
-#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3892 "ConfigurationInterfaces.c"
- }
- goto __finally105;
- __catch105_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 596 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 596 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 3916 "ConfigurationInterfaces.c"
- }
- __finally105:
-#line 592 "/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 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 3925 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_directory_pattern (ConfigurationFacade* self)
-{
-#line 591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_directory_pattern (self);
-#line 3936 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_directory_pattern (ConfigurationFacade* self,
- const gchar* s)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 604 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (s == NULL) {
-#line 605 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- s = "";
-#line 3952 "ConfigurationInterfaces.c"
- }
-#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, s, &_inner_error_);
-#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3966 "ConfigurationInterfaces.c"
- goto __catch106_configuration_error;
- }
-#line 607 "/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);
-#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 3975 "ConfigurationInterfaces.c"
- }
- }
- goto __finally106;
- __catch106_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 609 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 609 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 3993 "ConfigurationInterfaces.c"
- }
- __finally106:
-#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 603 "/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 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4004 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_directory_pattern (ConfigurationFacade* self,
- const gchar* s)
-{
-#line 602 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 602 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_directory_pattern (self, s);
-#line 4017 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_directory_pattern_custom (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, &_inner_error_);
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4049 "ConfigurationInterfaces.c"
- goto __catch107_configuration_error;
- }
-#line 618 "/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);
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 4058 "ConfigurationInterfaces.c"
- }
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 4070 "ConfigurationInterfaces.c"
- }
- goto __finally107;
- __catch107_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 620 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 620 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 4094 "ConfigurationInterfaces.c"
- }
- __finally107:
-#line 617 "/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 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 4103 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self)
-{
-#line 616 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 616 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_directory_pattern_custom (self);
-#line 4114 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_directory_pattern_custom (ConfigurationFacade* self,
- const gchar* s)
-{
- GError * _inner_error_ = NULL;
-#line 626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (s != NULL);
-#line 4125 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, s, &_inner_error_);
-#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4141 "ConfigurationInterfaces.c"
- goto __catch108_configuration_error;
- }
-#line 628 "/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);
-#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4150 "ConfigurationInterfaces.c"
- }
- }
- goto __finally108;
- __catch108_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 630 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 630 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 4168 "ConfigurationInterfaces.c"
- }
- __finally108:
-#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 627 "/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 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4179 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_directory_pattern_custom (ConfigurationFacade* self,
- const gchar* s)
-{
-#line 626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_directory_pattern_custom (self, s);
-#line 4192 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_get_direct_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions)
-{
- gboolean _vala_maximize = FALSE;
- Dimensions _vala_dimensions = {0};
- GError * _inner_error_ = NULL;
-#line 638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_maximize = FALSE;
-#line 639 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- dimensions_init (&_vala_dimensions, 1024, 768);
-#line 4208 "ConfigurationInterfaces.c"
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
- gint w = 0;
- ConfigurationEngine* _tmp4_;
- ConfigurationEngine* _tmp5_;
- gint _tmp6_;
- gint h = 0;
- ConfigurationEngine* _tmp7_;
- ConfigurationEngine* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, &_inner_error_);
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4238 "ConfigurationInterfaces.c"
- goto __catch109_configuration_error;
- }
-#line 641 "/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);
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4247 "ConfigurationInterfaces.c"
- }
-#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_maximize = _tmp0_;
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = configuration_facade_get_engine (self);
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp4_;
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = configuration_engine_get_int_property (_tmp5_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, &_inner_error_);
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp5_);
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- w = _tmp6_;
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4265 "ConfigurationInterfaces.c"
- goto __catch109_configuration_error;
- }
-#line 642 "/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);
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4274 "ConfigurationInterfaces.c"
- }
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = configuration_facade_get_engine (self);
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = _tmp7_;
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp9_ = configuration_engine_get_int_property (_tmp8_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, &_inner_error_);
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp8_);
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- h = _tmp9_;
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4290 "ConfigurationInterfaces.c"
- goto __catch109_configuration_error;
- }
-#line 643 "/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);
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4299 "ConfigurationInterfaces.c"
- }
-#line 644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp10_ = w;
-#line 644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp11_ = h;
-#line 644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- dimensions_init (&_vala_dimensions, _tmp10_, _tmp11_);
-#line 4307 "ConfigurationInterfaces.c"
- }
- goto __finally109;
- __catch109_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp12_;
-#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 646 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp12_ = err;
-#line 646 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp12_);
-#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 4324 "ConfigurationInterfaces.c"
- }
- __finally109:
-#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 640 "/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 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4335 "ConfigurationInterfaces.c"
- }
-#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (maximize) {
-#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- *maximize = _vala_maximize;
-#line 4341 "ConfigurationInterfaces.c"
- }
-#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (dimensions) {
-#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- *dimensions = _vala_dimensions;
-#line 4347 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_get_direct_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions)
-{
-#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->get_direct_window_state (self, maximize, dimensions);
-#line 4361 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_direct_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions)
-{
- GError * _inner_error_ = NULL;
-#line 650 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (dimensions != NULL);
-#line 4373 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- ConfigurationEngine* _tmp3_;
- Dimensions _tmp4_;
- gint _tmp5_;
- ConfigurationEngine* _tmp6_;
- ConfigurationEngine* _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
-#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, maximize, &_inner_error_);
-#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4397 "ConfigurationInterfaces.c"
- goto __catch110_configuration_error;
- }
-#line 652 "/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);
-#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4406 "ConfigurationInterfaces.c"
- }
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_facade_get_engine (self);
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = *dimensions;
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp4_.width;
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp3_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, _tmp5_, &_inner_error_);
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp3_);
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4424 "ConfigurationInterfaces.c"
- goto __catch110_configuration_error;
- }
-#line 653 "/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);
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4433 "ConfigurationInterfaces.c"
- }
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = configuration_facade_get_engine (self);
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = _tmp6_;
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = *dimensions;
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp9_ = _tmp8_.height;
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp7_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, _tmp9_, &_inner_error_);
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp7_);
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4451 "ConfigurationInterfaces.c"
- goto __catch110_configuration_error;
- }
-#line 655 "/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);
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4460 "ConfigurationInterfaces.c"
- }
- }
- goto __finally110;
- __catch110_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp10_;
-#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp10_ = err;
-#line 658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp10_);
-#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 4478 "ConfigurationInterfaces.c"
- }
- __finally110:
-#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 651 "/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 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4489 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_direct_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions)
-{
-#line 650 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 650 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_direct_window_state (self, maximize, dimensions);
-#line 4503 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_basic_properties (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, &_inner_error_);
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4530 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4534 "ConfigurationInterfaces.c"
- goto __catch111_configuration_error;
- }
-#line 667 "/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);
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 4543 "ConfigurationInterfaces.c"
- }
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 4549 "ConfigurationInterfaces.c"
- }
- goto __finally111;
- __catch111_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 669 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 669 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 671 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = TRUE;
-#line 671 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 671 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 4570 "ConfigurationInterfaces.c"
- }
- __finally111:
-#line 666 "/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 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 4579 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_basic_properties (ConfigurationFacade* self)
-{
-#line 665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_basic_properties (self);
-#line 4590 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_basic_properties (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, display, &_inner_error_);
-#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4614 "ConfigurationInterfaces.c"
- goto __catch112_configuration_error;
- }
-#line 677 "/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);
-#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4623 "ConfigurationInterfaces.c"
- }
- }
- goto __finally112;
- __catch112_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 4641 "ConfigurationInterfaces.c"
- }
- __finally112:
-#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 676 "/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 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4652 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_basic_properties (ConfigurationFacade* self,
- gboolean display)
-{
-#line 675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_basic_properties (self, display);
-#line 4665 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_extended_properties (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, &_inner_error_);
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4692 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4696 "ConfigurationInterfaces.c"
- goto __catch113_configuration_error;
- }
-#line 688 "/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);
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 4705 "ConfigurationInterfaces.c"
- }
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 4711 "ConfigurationInterfaces.c"
- }
- goto __finally113;
- __catch113_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 690 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 690 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 692 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 692 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 692 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 4732 "ConfigurationInterfaces.c"
- }
- __finally113:
-#line 687 "/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 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 4741 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_extended_properties (ConfigurationFacade* self)
-{
-#line 686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_extended_properties (self);
-#line 4752 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_extended_properties (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, display, &_inner_error_);
-#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4776 "ConfigurationInterfaces.c"
- goto __catch114_configuration_error;
- }
-#line 698 "/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);
-#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4785 "ConfigurationInterfaces.c"
- }
- }
- goto __finally114;
- __catch114_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 4803 "ConfigurationInterfaces.c"
- }
- __finally114:
-#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 697 "/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 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4814 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_extended_properties (ConfigurationFacade* self,
- gboolean display)
-{
-#line 696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_extended_properties (self, display);
-#line 4827 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_sidebar (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, &_inner_error_);
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4854 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4858 "ConfigurationInterfaces.c"
- goto __catch115_configuration_error;
- }
-#line 710 "/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);
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 4867 "ConfigurationInterfaces.c"
- }
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 4873 "ConfigurationInterfaces.c"
- }
- goto __finally115;
- __catch115_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 714 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 714 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 714 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 4894 "ConfigurationInterfaces.c"
- }
- __finally115:
-#line 709 "/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 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 4903 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_sidebar (ConfigurationFacade* self)
-{
-#line 708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_sidebar (self);
-#line 4914 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_sidebar (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, display, &_inner_error_);
-#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4938 "ConfigurationInterfaces.c"
- goto __catch116_configuration_error;
- }
-#line 720 "/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);
-#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4947 "ConfigurationInterfaces.c"
- }
- }
- goto __finally116;
- __catch116_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 722 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 722 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 4965 "ConfigurationInterfaces.c"
- }
- __finally116:
-#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 719 "/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 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 4976 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_sidebar (ConfigurationFacade* self,
- gboolean display)
-{
-#line 718 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 718 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_sidebar (self, display);
-#line 4989 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_toolbar (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, &_inner_error_);
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5016 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5020 "ConfigurationInterfaces.c"
- goto __catch117_configuration_error;
- }
-#line 732 "/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);
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 5029 "ConfigurationInterfaces.c"
- }
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5035 "ConfigurationInterfaces.c"
- }
- goto __finally117;
- __catch117_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 736 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 736 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 736 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5056 "ConfigurationInterfaces.c"
- }
- __finally117:
-#line 731 "/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 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 5065 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_toolbar (ConfigurationFacade* self)
-{
-#line 730 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 730 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_toolbar (self);
-#line 5076 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_toolbar (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, display, &_inner_error_);
-#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#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"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5100 "ConfigurationInterfaces.c"
- goto __catch118_configuration_error;
- }
-#line 742 "/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);
-#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5109 "ConfigurationInterfaces.c"
- }
- }
- goto __finally118;
- __catch118_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 744 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 744 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 5127 "ConfigurationInterfaces.c"
- }
- __finally118:
-#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 741 "/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 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5138 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_toolbar (ConfigurationFacade* self,
- gboolean display)
-{
-#line 740 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 740 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_toolbar (self, display);
-#line 5151 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_search_bar (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, &_inner_error_);
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5178 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5182 "ConfigurationInterfaces.c"
- goto __catch119_configuration_error;
- }
-#line 753 "/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);
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 5191 "ConfigurationInterfaces.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5197 "ConfigurationInterfaces.c"
- }
- goto __finally119;
- __catch119_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 757 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 757 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 757 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5218 "ConfigurationInterfaces.c"
- }
- __finally119:
-#line 752 "/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 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 5227 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_search_bar (ConfigurationFacade* self)
-{
-#line 751 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 751 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_search_bar (self);
-#line 5238 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_search_bar (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, display, &_inner_error_);
-#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#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"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5262 "ConfigurationInterfaces.c"
- goto __catch120_configuration_error;
- }
-#line 763 "/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);
-#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5271 "ConfigurationInterfaces.c"
- }
- }
- goto __finally120;
- __catch120_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 765 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 765 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 5289 "ConfigurationInterfaces.c"
- }
- __finally120:
-#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 762 "/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 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5300 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_search_bar (ConfigurationFacade* self,
- gboolean display)
-{
-#line 761 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 761 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_search_bar (self, display);
-#line 5313 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_photo_ratings (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, &_inner_error_);
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5340 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5344 "ConfigurationInterfaces.c"
- goto __catch121_configuration_error;
- }
-#line 774 "/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);
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 5353 "ConfigurationInterfaces.c"
- }
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5359 "ConfigurationInterfaces.c"
- }
- goto __finally121;
- __catch121_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 776 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 776 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = TRUE;
-#line 778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5380 "ConfigurationInterfaces.c"
- }
- __finally121:
-#line 773 "/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 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 5389 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_photo_ratings (ConfigurationFacade* self)
-{
-#line 772 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 772 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_photo_ratings (self);
-#line 5400 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_photo_ratings (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, display, &_inner_error_);
-#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#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"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5424 "ConfigurationInterfaces.c"
- goto __catch122_configuration_error;
- }
-#line 784 "/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);
-#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5433 "ConfigurationInterfaces.c"
- }
- }
- goto __finally122;
- __catch122_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 786 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 786 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 5451 "ConfigurationInterfaces.c"
- }
- __finally122:
-#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 783 "/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 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5462 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_photo_ratings (ConfigurationFacade* self,
- gboolean display)
-{
-#line 782 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 782 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_photo_ratings (self, display);
-#line 5475 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_photo_tags (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, &_inner_error_);
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5502 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5506 "ConfigurationInterfaces.c"
- goto __catch123_configuration_error;
- }
-#line 795 "/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);
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 5515 "ConfigurationInterfaces.c"
- }
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5521 "ConfigurationInterfaces.c"
- }
- goto __finally123;
- __catch123_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 797 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 797 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = TRUE;
-#line 799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5542 "ConfigurationInterfaces.c"
- }
- __finally123:
-#line 794 "/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 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 5551 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_photo_tags (ConfigurationFacade* self)
-{
-#line 793 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 793 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_photo_tags (self);
-#line 5562 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_photo_tags (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, display, &_inner_error_);
-#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#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"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5586 "ConfigurationInterfaces.c"
- goto __catch124_configuration_error;
- }
-#line 805 "/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);
-#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5595 "ConfigurationInterfaces.c"
- }
- }
- goto __finally124;
- __catch124_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 807 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 807 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 5613 "ConfigurationInterfaces.c"
- }
- __finally124:
-#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 804 "/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 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5624 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_photo_tags (ConfigurationFacade* self,
- gboolean display)
-{
-#line 803 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 803 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_photo_tags (self, display);
-#line 5637 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_photo_titles (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, &_inner_error_);
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5664 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5668 "ConfigurationInterfaces.c"
- goto __catch125_configuration_error;
- }
-#line 816 "/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);
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 5677 "ConfigurationInterfaces.c"
- }
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5683 "ConfigurationInterfaces.c"
- }
- goto __finally125;
- __catch125_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 818 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 818 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5704 "ConfigurationInterfaces.c"
- }
- __finally125:
-#line 815 "/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 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 5713 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_photo_titles (ConfigurationFacade* self)
-{
-#line 814 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 814 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_photo_titles (self);
-#line 5724 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_photo_titles (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, display, &_inner_error_);
-#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5748 "ConfigurationInterfaces.c"
- goto __catch126_configuration_error;
- }
-#line 826 "/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);
-#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5757 "ConfigurationInterfaces.c"
- }
- }
- goto __finally126;
- __catch126_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 828 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 828 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 5775 "ConfigurationInterfaces.c"
- }
- __finally126:
-#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 825 "/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 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5786 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_photo_titles (ConfigurationFacade* self,
- gboolean display)
-{
-#line 824 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 824 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_photo_titles (self, display);
-#line 5799 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_photo_comments (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, &_inner_error_);
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5826 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5830 "ConfigurationInterfaces.c"
- goto __catch127_configuration_error;
- }
-#line 837 "/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);
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 5839 "ConfigurationInterfaces.c"
- }
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5845 "ConfigurationInterfaces.c"
- }
- goto __finally127;
- __catch127_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 839 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 839 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 5866 "ConfigurationInterfaces.c"
- }
- __finally127:
-#line 836 "/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 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 5875 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_photo_comments (ConfigurationFacade* self)
-{
-#line 835 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 835 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_photo_comments (self);
-#line 5886 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_photo_comments (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, display, &_inner_error_);
-#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5910 "ConfigurationInterfaces.c"
- goto __catch128_configuration_error;
- }
-#line 847 "/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);
-#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5919 "ConfigurationInterfaces.c"
- }
- }
- goto __finally128;
- __catch128_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 5937 "ConfigurationInterfaces.c"
- }
- __finally128:
-#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 846 "/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 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 5948 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_photo_comments (ConfigurationFacade* self,
- gboolean display)
-{
-#line 845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_photo_comments (self, display);
-#line 5961 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_display_event_comments (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, &_inner_error_);
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5988 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5992 "ConfigurationInterfaces.c"
- goto __catch129_configuration_error;
- }
-#line 858 "/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);
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 6001 "ConfigurationInterfaces.c"
- }
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6007 "ConfigurationInterfaces.c"
- }
- goto __finally129;
- __catch129_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 860 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 860 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 862 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 862 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 862 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6028 "ConfigurationInterfaces.c"
- }
- __finally129:
-#line 857 "/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 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 6037 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_display_event_comments (ConfigurationFacade* self)
-{
-#line 856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_event_comments (self);
-#line 6048 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_display_event_comments (ConfigurationFacade* self,
- gboolean display)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, display, &_inner_error_);
-#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6072 "ConfigurationInterfaces.c"
- goto __catch130_configuration_error;
- }
-#line 868 "/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);
-#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6081 "ConfigurationInterfaces.c"
- }
- }
- goto __finally130;
- __catch130_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 870 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 870 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 6099 "ConfigurationInterfaces.c"
- }
- __finally130:
-#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 867 "/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 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6110 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_display_event_comments (ConfigurationFacade* self,
- gboolean display)
-{
-#line 866 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 866 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_display_event_comments (self, display);
-#line 6123 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_get_event_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by)
-{
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- GError * _inner_error_ = NULL;
-#line 878 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_sort_order = FALSE;
-#line 879 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_sort_by = 2;
-#line 6139 "ConfigurationInterfaces.c"
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
- gint _tmp4_ = 0;
- ConfigurationEngine* _tmp5_;
- ConfigurationEngine* _tmp6_;
- gint _tmp7_;
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, &_inner_error_);
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6163 "ConfigurationInterfaces.c"
- goto __catch131_configuration_error;
- }
-#line 881 "/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);
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6172 "ConfigurationInterfaces.c"
- }
-#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_sort_order = _tmp0_;
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = configuration_facade_get_engine (self);
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = _tmp5_;
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = configuration_engine_get_int_property (_tmp6_, CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, &_inner_error_);
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp6_);
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp7_;
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6190 "ConfigurationInterfaces.c"
- goto __catch131_configuration_error;
- }
-#line 883 "/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);
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6199 "ConfigurationInterfaces.c"
- }
-#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_sort_by = _tmp4_;
-#line 6203 "ConfigurationInterfaces.c"
- }
- goto __finally131;
- __catch131_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp8_;
-#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 885 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = err;
-#line 885 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp8_);
-#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 6220 "ConfigurationInterfaces.c"
- }
- __finally131:
-#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 880 "/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 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6231 "ConfigurationInterfaces.c"
- }
-#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (sort_order) {
-#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- *sort_order = _vala_sort_order;
-#line 6237 "ConfigurationInterfaces.c"
- }
-#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (sort_by) {
-#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- *sort_by = _vala_sort_by;
-#line 6243 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_get_event_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by)
-{
-#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->get_event_photos_sort (self, sort_order, sort_by);
-#line 6257 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_event_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- ConfigurationEngine* _tmp3_;
-#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, sort_order, &_inner_error_);
-#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6284 "ConfigurationInterfaces.c"
- goto __catch132_configuration_error;
- }
-#line 891 "/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);
-#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6293 "ConfigurationInterfaces.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_facade_get_engine (self);
-#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp3_, CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, sort_by, &_inner_error_);
-#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp3_);
-#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6307 "ConfigurationInterfaces.c"
- goto __catch132_configuration_error;
- }
-#line 893 "/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);
-#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6316 "ConfigurationInterfaces.c"
- }
- }
- goto __finally132;
- __catch132_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 896 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 896 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 6334 "ConfigurationInterfaces.c"
- }
- __finally132:
-#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 890 "/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 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6345 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_event_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by)
-{
-#line 889 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 889 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_event_photos_sort (self, sort_order, sort_by);
-#line 6359 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_events_sort_ascending (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, &_inner_error_);
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6386 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6390 "ConfigurationInterfaces.c"
- goto __catch133_configuration_error;
- }
-#line 905 "/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);
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 6399 "ConfigurationInterfaces.c"
- }
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6405 "ConfigurationInterfaces.c"
- }
- goto __finally133;
- __catch133_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 907 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 907 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 909 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 909 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 909 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6426 "ConfigurationInterfaces.c"
- }
- __finally133:
-#line 904 "/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 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 6435 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_events_sort_ascending (ConfigurationFacade* self)
-{
-#line 903 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 903 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_events_sort_ascending (self);
-#line 6446 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_events_sort_ascending (ConfigurationFacade* self,
- gboolean sort)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, sort, &_inner_error_);
-#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6470 "ConfigurationInterfaces.c"
- goto __catch134_configuration_error;
- }
-#line 915 "/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);
-#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6479 "ConfigurationInterfaces.c"
- }
- }
- goto __finally134;
- __catch134_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 917 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 917 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 918 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 918 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6499 "ConfigurationInterfaces.c"
- }
- __finally134:
-#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 914 "/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 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6510 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_events_sort_ascending (ConfigurationFacade* self,
- gboolean sort)
-{
-#line 913 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 913 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_events_sort_ascending (self, sort);
-#line 6523 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_external_photo_app (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, &_inner_error_);
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6555 "ConfigurationInterfaces.c"
- goto __catch135_configuration_error;
- }
-#line 927 "/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);
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 6564 "ConfigurationInterfaces.c"
- }
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6576 "ConfigurationInterfaces.c"
- }
- goto __finally135;
- __catch135_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 929 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 929 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 931 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 931 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 931 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 931 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6600 "ConfigurationInterfaces.c"
- }
- __finally135:
-#line 926 "/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 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 6609 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_external_photo_app (ConfigurationFacade* self)
-{
-#line 925 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 925 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_external_photo_app (self);
-#line 6620 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_external_photo_app (ConfigurationFacade* self,
- const gchar* external_photo_app)
-{
- GError * _inner_error_ = NULL;
-#line 935 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (external_photo_app != NULL);
-#line 6631 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, external_photo_app, &_inner_error_);
-#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6647 "ConfigurationInterfaces.c"
- goto __catch136_configuration_error;
- }
-#line 937 "/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);
-#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6656 "ConfigurationInterfaces.c"
- }
- }
- goto __finally136;
- __catch136_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 940 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 940 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 941 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 941 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6676 "ConfigurationInterfaces.c"
- }
- __finally136:
-#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 936 "/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 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6687 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_external_photo_app (ConfigurationFacade* self,
- const gchar* external_photo_app)
-{
-#line 935 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 935 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_external_photo_app (self, external_photo_app);
-#line 6700 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_external_raw_app (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, &_inner_error_);
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6732 "ConfigurationInterfaces.c"
- goto __catch137_configuration_error;
- }
-#line 950 "/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);
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 6741 "ConfigurationInterfaces.c"
- }
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6753 "ConfigurationInterfaces.c"
- }
- goto __finally137;
- __catch137_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 952 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 952 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 954 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 954 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 954 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 954 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6777 "ConfigurationInterfaces.c"
- }
- __finally137:
-#line 949 "/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 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 6786 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_external_raw_app (ConfigurationFacade* self)
-{
-#line 948 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 948 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_external_raw_app (self);
-#line 6797 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_external_raw_app (ConfigurationFacade* self,
- const gchar* external_raw_app)
-{
- GError * _inner_error_ = NULL;
-#line 958 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (external_raw_app != NULL);
-#line 6808 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, external_raw_app, &_inner_error_);
-#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6824 "ConfigurationInterfaces.c"
- goto __catch138_configuration_error;
- }
-#line 960 "/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);
-#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6833 "ConfigurationInterfaces.c"
- }
- }
- goto __finally138;
- __catch138_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 963 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 963 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 964 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 964 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6853 "ConfigurationInterfaces.c"
- }
- __finally138:
-#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 959 "/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 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6864 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_external_raw_app (ConfigurationFacade* self,
- const gchar* external_raw_app)
-{
-#line 958 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 958 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_external_raw_app (self, external_raw_app);
-#line 6877 "ConfigurationInterfaces.c"
-}
-
-
-static ScaleConstraint
-configuration_facade_real_get_export_constraint (ConfigurationFacade* self)
-{
- ScaleConstraint result = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_enum_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, &_inner_error_);
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6905 "ConfigurationInterfaces.c"
- goto __catch139_configuration_error;
- }
-#line 973 "/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);
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 6914 "ConfigurationInterfaces.c"
- }
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = (ScaleConstraint) _tmp0_;
-#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6920 "ConfigurationInterfaces.c"
- }
- goto __finally139;
- __catch139_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 975 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 975 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 977 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 977 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 977 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 6941 "ConfigurationInterfaces.c"
- }
- __finally139:
-#line 972 "/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 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 6950 "ConfigurationInterfaces.c"
-}
-
-
-ScaleConstraint
-configuration_facade_get_export_constraint (ConfigurationFacade* self)
-{
-#line 971 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 971 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_constraint (self);
-#line 6961 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_export_constraint (ConfigurationFacade* self,
- ScaleConstraint constraint)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_enum_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, (gint) constraint, &_inner_error_);
-#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 6985 "ConfigurationInterfaces.c"
- goto __catch140_configuration_error;
- }
-#line 983 "/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);
-#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 6994 "ConfigurationInterfaces.c"
- }
- }
- goto __finally140;
- __catch140_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 985 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 985 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 986 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 986 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7014 "ConfigurationInterfaces.c"
- }
- __finally140:
-#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 982 "/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 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7025 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_export_constraint (ConfigurationFacade* self,
- ScaleConstraint constraint)
-{
-#line 981 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 981 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_export_constraint (self, constraint);
-#line 7038 "ConfigurationInterfaces.c"
-}
-
-
-static ExportFormatMode
-configuration_facade_real_get_export_export_format_mode (ConfigurationFacade* self)
-{
- ExportFormatMode result = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_enum_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, &_inner_error_);
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7066 "ConfigurationInterfaces.c"
- goto __catch141_configuration_error;
- }
-#line 992 "/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);
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 7075 "ConfigurationInterfaces.c"
- }
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = (ExportFormatMode) _tmp0_;
-#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7081 "ConfigurationInterfaces.c"
- }
- goto __finally141;
- __catch141_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 994 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 994 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 996 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 996 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 996 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7102 "ConfigurationInterfaces.c"
- }
- __finally141:
-#line 991 "/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 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 7111 "ConfigurationInterfaces.c"
-}
-
-
-ExportFormatMode
-configuration_facade_get_export_export_format_mode (ConfigurationFacade* self)
-{
-#line 990 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 990 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_export_format_mode (self);
-#line 7122 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_export_export_format_mode (ConfigurationFacade* self,
- ExportFormatMode export_format_mode)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_enum_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, (gint) export_format_mode, &_inner_error_);
-#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7146 "ConfigurationInterfaces.c"
- goto __catch142_configuration_error;
- }
-#line 1002 "/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);
-#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7155 "ConfigurationInterfaces.c"
- }
- }
- goto __finally142;
- __catch142_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1004 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1004 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1005 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1005 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7175 "ConfigurationInterfaces.c"
- }
- __finally142:
-#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1001 "/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 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7186 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_export_export_format_mode (ConfigurationFacade* self,
- ExportFormatMode export_format_mode)
-{
-#line 1000 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1000 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_export_export_format_mode (self, export_format_mode);
-#line 7199 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_export_export_metadata (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, &_inner_error_);
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7226 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7230 "ConfigurationInterfaces.c"
- goto __catch143_configuration_error;
- }
-#line 1011 "/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);
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 7239 "ConfigurationInterfaces.c"
- }
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7245 "ConfigurationInterfaces.c"
- }
- goto __finally143;
- __catch143_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1013 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1013 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1015 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 1015 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1015 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7266 "ConfigurationInterfaces.c"
- }
- __finally143:
-#line 1010 "/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 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 7275 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_export_export_metadata (ConfigurationFacade* self)
-{
-#line 1009 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1009 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_export_metadata (self);
-#line 7286 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_export_export_metadata (ConfigurationFacade* self,
- gboolean export_metadata)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, export_metadata, &_inner_error_);
-#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7310 "ConfigurationInterfaces.c"
- goto __catch144_configuration_error;
- }
-#line 1021 "/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);
-#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7319 "ConfigurationInterfaces.c"
- }
- }
- goto __finally144;
- __catch144_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1023 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1023 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1024 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1024 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7339 "ConfigurationInterfaces.c"
- }
- __finally144:
-#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1020 "/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 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7350 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_export_export_metadata (ConfigurationFacade* self,
- gboolean export_metadata)
-{
-#line 1019 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1019 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_export_export_metadata (self, export_metadata);
-#line 7363 "ConfigurationInterfaces.c"
-}
-
-
-static PhotoFileFormat
-configuration_facade_real_get_export_photo_file_format (ConfigurationFacade* self)
-{
- PhotoFileFormat result = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_enum_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, &_inner_error_);
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7391 "ConfigurationInterfaces.c"
- goto __catch145_configuration_error;
- }
-#line 1030 "/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);
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 7400 "ConfigurationInterfaces.c"
- }
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = photo_file_format_unserialize (_tmp0_);
-#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7406 "ConfigurationInterfaces.c"
- }
- goto __finally145;
- __catch145_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1032 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 1032 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 1034 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 1034 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1034 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7427 "ConfigurationInterfaces.c"
- }
- __finally145:
-#line 1029 "/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 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 7436 "ConfigurationInterfaces.c"
-}
-
-
-PhotoFileFormat
-configuration_facade_get_export_photo_file_format (ConfigurationFacade* self)
-{
-#line 1028 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1028 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_photo_file_format (self);
-#line 7447 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_export_photo_file_format (ConfigurationFacade* self,
- PhotoFileFormat photo_file_format)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_enum_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, photo_file_format_serialize (photo_file_format), &_inner_error_);
-#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7471 "ConfigurationInterfaces.c"
- goto __catch146_configuration_error;
- }
-#line 1040 "/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);
-#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7480 "ConfigurationInterfaces.c"
- }
- }
- goto __finally146;
- __catch146_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1042 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1042 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1043 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1043 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7500 "ConfigurationInterfaces.c"
- }
- __finally146:
-#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1039 "/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 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7511 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_export_photo_file_format (ConfigurationFacade* self,
- PhotoFileFormat photo_file_format)
-{
-#line 1038 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1038 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_export_photo_file_format (self, photo_file_format);
-#line 7524 "ConfigurationInterfaces.c"
-}
-
-
-static JpegQuality
-configuration_facade_real_get_export_quality (ConfigurationFacade* self)
-{
- JpegQuality result = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_enum_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_QUALITY, &_inner_error_);
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7552 "ConfigurationInterfaces.c"
- goto __catch147_configuration_error;
- }
-#line 1049 "/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);
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 7561 "ConfigurationInterfaces.c"
- }
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = (JpegQuality) _tmp0_;
-#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7567 "ConfigurationInterfaces.c"
- }
- goto __finally147;
- __catch147_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1051 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 1051 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 1053 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 1053 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1053 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7588 "ConfigurationInterfaces.c"
- }
- __finally147:
-#line 1048 "/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 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 7597 "ConfigurationInterfaces.c"
-}
-
-
-JpegQuality
-configuration_facade_get_export_quality (ConfigurationFacade* self)
-{
-#line 1047 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1047 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_quality (self);
-#line 7608 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_export_quality (ConfigurationFacade* self,
- JpegQuality quality)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_enum_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_QUALITY, (gint) quality, &_inner_error_);
-#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7632 "ConfigurationInterfaces.c"
- goto __catch148_configuration_error;
- }
-#line 1059 "/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);
-#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7641 "ConfigurationInterfaces.c"
- }
- }
- goto __finally148;
- __catch148_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1061 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1061 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1062 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1062 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7661 "ConfigurationInterfaces.c"
- }
- __finally148:
-#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1058 "/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 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7672 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_export_quality (ConfigurationFacade* self,
- JpegQuality quality)
-{
-#line 1057 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1057 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_export_quality (self, quality);
-#line 7685 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_export_scale (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_SCALE, &_inner_error_);
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7712 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7716 "ConfigurationInterfaces.c"
- goto __catch149_configuration_error;
- }
-#line 1068 "/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);
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 7725 "ConfigurationInterfaces.c"
- }
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7731 "ConfigurationInterfaces.c"
- }
- goto __finally149;
- __catch149_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1070 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1070 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1072 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 1072 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1072 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7752 "ConfigurationInterfaces.c"
- }
- __finally149:
-#line 1067 "/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 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 7761 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_export_scale (ConfigurationFacade* self)
-{
-#line 1066 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1066 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_scale (self);
-#line 7772 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_export_scale (ConfigurationFacade* self,
- gint scale)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_SCALE, scale, &_inner_error_);
-#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7796 "ConfigurationInterfaces.c"
- goto __catch150_configuration_error;
- }
-#line 1078 "/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);
-#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7805 "ConfigurationInterfaces.c"
- }
- }
- goto __finally150;
- __catch150_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1080 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1080 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1081 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1081 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7825 "ConfigurationInterfaces.c"
- }
- __finally150:
-#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1077 "/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 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7836 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_export_scale (ConfigurationFacade* self,
- gint scale)
-{
-#line 1076 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1076 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_export_scale (self, scale);
-#line 7849 "ConfigurationInterfaces.c"
-}
-
-
-static RawDeveloper
-configuration_facade_real_get_default_raw_developer (ConfigurationFacade* self)
-{
- RawDeveloper result = 0;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, &_inner_error_);
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7880 "ConfigurationInterfaces.c"
- goto __catch151_configuration_error;
- }
-#line 1090 "/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);
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 7889 "ConfigurationInterfaces.c"
- }
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = raw_developer_from_string (_tmp0_);
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7897 "ConfigurationInterfaces.c"
- }
- goto __finally151;
- __catch151_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1093 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1093 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1095 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = RAW_DEVELOPER_CAMERA;
-#line 1095 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1095 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 7918 "ConfigurationInterfaces.c"
- }
- __finally151:
-#line 1089 "/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 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return 0;
-#line 7927 "ConfigurationInterfaces.c"
-}
-
-
-RawDeveloper
-configuration_facade_get_default_raw_developer (ConfigurationFacade* self)
-{
-#line 1088 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1088 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_default_raw_developer (self);
-#line 7938 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_default_raw_developer (ConfigurationFacade* self,
- RawDeveloper d)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = raw_developer_to_string (d);
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, _tmp3_, &_inner_error_);
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp3_);
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 7970 "ConfigurationInterfaces.c"
- goto __catch152_configuration_error;
- }
-#line 1101 "/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);
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7979 "ConfigurationInterfaces.c"
- }
- }
- goto __finally152;
- __catch152_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 1104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 1105 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1105 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 7999 "ConfigurationInterfaces.c"
- }
- __finally152:
-#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1100 "/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 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8010 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_default_raw_developer (ConfigurationFacade* self,
- RawDeveloper d)
-{
-#line 1099 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1099 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_default_raw_developer (self, d);
-#line 8023 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_hide_photos_already_imported (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, &_inner_error_);
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8050 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8054 "ConfigurationInterfaces.c"
- goto __catch153_configuration_error;
- }
-#line 1114 "/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);
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 8063 "ConfigurationInterfaces.c"
- }
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8069 "ConfigurationInterfaces.c"
- }
- goto __finally153;
- __catch153_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1118 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = TRUE;
-#line 1118 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1118 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8090 "ConfigurationInterfaces.c"
- }
- __finally153:
-#line 1113 "/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 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 8099 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_hide_photos_already_imported (ConfigurationFacade* self)
-{
-#line 1112 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1112 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_hide_photos_already_imported (self);
-#line 8110 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_hide_photos_already_imported (ConfigurationFacade* self,
- gboolean hide_imported)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, hide_imported, &_inner_error_);
-#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8134 "ConfigurationInterfaces.c"
- goto __catch154_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);
-#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8143 "ConfigurationInterfaces.c"
- }
- }
- goto __finally154;
- __catch154_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1126 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1126 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 8161 "ConfigurationInterfaces.c"
- }
- __finally154:
-#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"
- 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 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8172 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_hide_photos_already_imported (ConfigurationFacade* self,
- gboolean hide_imported)
-{
-#line 1122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_hide_photos_already_imported (self, hide_imported);
-#line 8185 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_import_dir (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_IMPORT_DIR, &_inner_error_);
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8217 "ConfigurationInterfaces.c"
- goto __catch155_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);
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 8226 "ConfigurationInterfaces.c"
- }
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8238 "ConfigurationInterfaces.c"
- }
- goto __finally155;
- __catch155_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 1137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 1139 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 1139 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 1139 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1139 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8262 "ConfigurationInterfaces.c"
- }
- __finally155:
-#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"
- g_clear_error (&_inner_error_);
-#line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 8271 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_import_dir (ConfigurationFacade* self)
-{
-#line 1133 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 1133 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_import_dir (self);
-#line 8282 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_import_dir (ConfigurationFacade* self,
- const gchar* import_dir)
-{
- GError * _inner_error_ = NULL;
-#line 1143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (import_dir != NULL);
-#line 8293 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_IMPORT_DIR, import_dir, &_inner_error_);
-#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8309 "ConfigurationInterfaces.c"
- goto __catch156_configuration_error;
- }
-#line 1145 "/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);
-#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8318 "ConfigurationInterfaces.c"
- }
- }
- goto __finally156;
- __catch156_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1147 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1147 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 8336 "ConfigurationInterfaces.c"
- }
- __finally156:
-#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1144 "/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 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8347 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_import_dir (ConfigurationFacade* self,
- const gchar* import_dir)
-{
-#line 1143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_import_dir (self, import_dir);
-#line 8360 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_keep_relativity (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, &_inner_error_);
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8387 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8391 "ConfigurationInterfaces.c"
- goto __catch157_configuration_error;
- }
-#line 1156 "/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);
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 8400 "ConfigurationInterfaces.c"
- }
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8406 "ConfigurationInterfaces.c"
- }
- goto __finally157;
- __catch157_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1160 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = TRUE;
-#line 1160 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1160 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8427 "ConfigurationInterfaces.c"
- }
- __finally157:
-#line 1155 "/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 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 8436 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_keep_relativity (ConfigurationFacade* self)
-{
-#line 1154 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1154 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_keep_relativity (self);
-#line 8447 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_keep_relativity (ConfigurationFacade* self,
- gboolean keep_relativity)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, keep_relativity, &_inner_error_);
-#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8471 "ConfigurationInterfaces.c"
- goto __catch158_configuration_error;
- }
-#line 1166 "/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);
-#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8480 "ConfigurationInterfaces.c"
- }
- }
- goto __finally158;
- __catch158_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1168 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1168 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 8498 "ConfigurationInterfaces.c"
- }
- __finally158:
-#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1165 "/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 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8509 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_keep_relativity (ConfigurationFacade* self,
- gboolean keep_relativity)
-{
-#line 1164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_keep_relativity (self, keep_relativity);
-#line 8522 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_pin_toolbar_state (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, &_inner_error_);
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8549 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8553 "ConfigurationInterfaces.c"
- goto __catch159_configuration_error;
- }
-#line 1177 "/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);
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 8562 "ConfigurationInterfaces.c"
- }
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8568 "ConfigurationInterfaces.c"
- }
- goto __finally159;
- __catch159_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1180 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 1180 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1180 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8589 "ConfigurationInterfaces.c"
- }
- __finally159:
-#line 1176 "/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 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 8598 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_pin_toolbar_state (ConfigurationFacade* self)
-{
-#line 1175 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1175 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_pin_toolbar_state (self);
-#line 8609 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_pin_toolbar_state (ConfigurationFacade* self,
- gboolean state)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, state, &_inner_error_);
-#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8633 "ConfigurationInterfaces.c"
- goto __catch160_configuration_error;
- }
-#line 1186 "/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);
-#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8642 "ConfigurationInterfaces.c"
- }
- }
- goto __finally160;
- __catch160_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 8660 "ConfigurationInterfaces.c"
- }
- __finally160:
-#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1185 "/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 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8671 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_pin_toolbar_state (ConfigurationFacade* self,
- gboolean state)
-{
-#line 1184 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1184 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_pin_toolbar_state (self, state);
-#line 8684 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_last_crop_height (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, &_inner_error_);
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8711 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8715 "ConfigurationInterfaces.c"
- goto __catch161_configuration_error;
- }
-#line 1197 "/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);
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 8724 "ConfigurationInterfaces.c"
- }
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8730 "ConfigurationInterfaces.c"
- }
- goto __finally161;
- __catch161_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1199 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1199 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 1;
-#line 1200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8751 "ConfigurationInterfaces.c"
- }
- __finally161:
-#line 1196 "/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 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 8760 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_last_crop_height (ConfigurationFacade* self)
-{
-#line 1195 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1195 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_crop_height (self);
-#line 8771 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_last_crop_height (ConfigurationFacade* self,
- gint choice)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, choice, &_inner_error_);
-#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8795 "ConfigurationInterfaces.c"
- goto __catch162_configuration_error;
- }
-#line 1206 "/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);
-#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8804 "ConfigurationInterfaces.c"
- }
- }
- goto __finally162;
- __catch162_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1208 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1208 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 8822 "ConfigurationInterfaces.c"
- }
- __finally162:
-#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1205 "/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 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8833 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_last_crop_height (ConfigurationFacade* self,
- gint choice)
-{
-#line 1204 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1204 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_last_crop_height (self, choice);
-#line 8846 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_last_crop_menu_choice (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, &_inner_error_);
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8873 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8877 "ConfigurationInterfaces.c"
- goto __catch163_configuration_error;
- }
-#line 1217 "/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);
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 8886 "ConfigurationInterfaces.c"
- }
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8892 "ConfigurationInterfaces.c"
- }
- goto __finally163;
- __catch163_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1219 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1219 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 1224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 8913 "ConfigurationInterfaces.c"
- }
- __finally163:
-#line 1216 "/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 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 8922 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_last_crop_menu_choice (ConfigurationFacade* self)
-{
-#line 1215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_crop_menu_choice (self);
-#line 8933 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_last_crop_menu_choice (ConfigurationFacade* self,
- gint choice)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, choice, &_inner_error_);
-#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 8957 "ConfigurationInterfaces.c"
- goto __catch164_configuration_error;
- }
-#line 1230 "/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);
-#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8966 "ConfigurationInterfaces.c"
- }
- }
- goto __finally164;
- __catch164_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1232 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1232 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 8984 "ConfigurationInterfaces.c"
- }
- __finally164:
-#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1229 "/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 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 8995 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_last_crop_menu_choice (ConfigurationFacade* self,
- gint choice)
-{
-#line 1228 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1228 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_last_crop_menu_choice (self, choice);
-#line 9008 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_last_crop_width (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, &_inner_error_);
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9035 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9039 "ConfigurationInterfaces.c"
- goto __catch165_configuration_error;
- }
-#line 1241 "/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);
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 9048 "ConfigurationInterfaces.c"
- }
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 9054 "ConfigurationInterfaces.c"
- }
- goto __finally165;
- __catch165_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1243 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1243 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1244 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 1;
-#line 1244 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1244 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 9075 "ConfigurationInterfaces.c"
- }
- __finally165:
-#line 1240 "/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 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 9084 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_last_crop_width (ConfigurationFacade* self)
-{
-#line 1239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_crop_width (self);
-#line 9095 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_last_crop_width (ConfigurationFacade* self,
- gint choice)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, choice, &_inner_error_);
-#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9119 "ConfigurationInterfaces.c"
- goto __catch166_configuration_error;
- }
-#line 1250 "/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);
-#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9128 "ConfigurationInterfaces.c"
- }
- }
- goto __finally166;
- __catch166_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1252 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1252 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 9146 "ConfigurationInterfaces.c"
- }
- __finally166:
-#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1249 "/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 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9157 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_last_crop_width (ConfigurationFacade* self,
- gint choice)
-{
-#line 1248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_last_crop_width (self, choice);
-#line 9170 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_last_used_service (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, &_inner_error_);
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9202 "ConfigurationInterfaces.c"
- goto __catch167_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);
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 9211 "ConfigurationInterfaces.c"
- }
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 9223 "ConfigurationInterfaces.c"
- }
- goto __finally167;
- __catch167_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 1263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 1268 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 1268 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 1268 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1268 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 9247 "ConfigurationInterfaces.c"
- }
- __finally167:
-#line 1260 "/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 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 9256 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_last_used_service (ConfigurationFacade* self)
-{
-#line 1259 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 1259 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_used_service (self);
-#line 9267 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_last_used_service (ConfigurationFacade* self,
- const gchar* service_name)
-{
- GError * _inner_error_ = NULL;
-#line 1272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (service_name != NULL);
-#line 9278 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, service_name, &_inner_error_);
-#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#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"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9294 "ConfigurationInterfaces.c"
- goto __catch168_configuration_error;
- }
-#line 1274 "/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);
-#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9303 "ConfigurationInterfaces.c"
- }
- }
- goto __finally168;
- __catch168_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1276 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1276 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 9321 "ConfigurationInterfaces.c"
- }
- __finally168:
-#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1273 "/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 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9332 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_last_used_service (ConfigurationFacade* self,
- const gchar* service_name)
-{
-#line 1272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_last_used_service (self, service_name);
-#line 9345 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_last_used_dataimports_service (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, &_inner_error_);
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#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"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9377 "ConfigurationInterfaces.c"
- goto __catch169_configuration_error;
- }
-#line 1285 "/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);
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 9386 "ConfigurationInterfaces.c"
- }
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 9398 "ConfigurationInterfaces.c"
- }
- goto __finally169;
- __catch169_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 1287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 1292 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("");
-#line 1292 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 1292 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1292 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 9422 "ConfigurationInterfaces.c"
- }
- __finally169:
-#line 1284 "/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 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 9431 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_last_used_dataimports_service (ConfigurationFacade* self)
-{
-#line 1283 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 1283 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_used_dataimports_service (self);
-#line 9442 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_last_used_dataimports_service (ConfigurationFacade* self,
- const gchar* service_name)
-{
- GError * _inner_error_ = NULL;
-#line 1296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (service_name != NULL);
-#line 9453 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, service_name, &_inner_error_);
-#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9469 "ConfigurationInterfaces.c"
- goto __catch170_configuration_error;
- }
-#line 1298 "/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);
-#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9478 "ConfigurationInterfaces.c"
- }
- }
- goto __finally170;
- __catch170_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1300 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1300 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 9496 "ConfigurationInterfaces.c"
- }
- __finally170:
-#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1297 "/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 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9507 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_last_used_dataimports_service (ConfigurationFacade* self,
- const gchar* service_name)
-{
-#line 1296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_last_used_dataimports_service (self, service_name);
-#line 9520 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by)
-{
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- GError * _inner_error_ = NULL;
-#line 1308 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_sort_order = FALSE;
-#line 1309 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_sort_by = 2;
-#line 9536 "ConfigurationInterfaces.c"
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
- gint _tmp4_ = 0;
- ConfigurationEngine* _tmp5_;
- ConfigurationEngine* _tmp6_;
- gint _tmp7_;
-#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, &_inner_error_);
-#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#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"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9560 "ConfigurationInterfaces.c"
- goto __catch171_configuration_error;
- }
-#line 1311 "/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);
-#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9569 "ConfigurationInterfaces.c"
- }
-#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_sort_order = _tmp0_;
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = configuration_facade_get_engine (self);
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = _tmp5_;
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = configuration_engine_get_int_property (_tmp6_, CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, &_inner_error_);
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp6_);
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp7_;
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9587 "ConfigurationInterfaces.c"
- goto __catch171_configuration_error;
- }
-#line 1313 "/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);
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9596 "ConfigurationInterfaces.c"
- }
-#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_sort_by = _tmp4_;
-#line 9600 "ConfigurationInterfaces.c"
- }
- goto __finally171;
- __catch171_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp8_;
-#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1315 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = err;
-#line 1315 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp8_);
-#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 9617 "ConfigurationInterfaces.c"
- }
- __finally171:
-#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1310 "/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 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9628 "ConfigurationInterfaces.c"
- }
-#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (sort_order) {
-#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- *sort_order = _vala_sort_order;
-#line 9634 "ConfigurationInterfaces.c"
- }
-#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (sort_by) {
-#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- *sort_by = _vala_sort_by;
-#line 9640 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by)
-{
-#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->get_library_photos_sort (self, sort_order, sort_by);
-#line 9654 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- ConfigurationEngine* _tmp3_;
-#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, sort_order, &_inner_error_);
-#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9681 "ConfigurationInterfaces.c"
- goto __catch172_configuration_error;
- }
-#line 1321 "/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);
-#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9690 "ConfigurationInterfaces.c"
- }
-#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_facade_get_engine (self);
-#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp3_, CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, sort_by, &_inner_error_);
-#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp3_);
-#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9704 "ConfigurationInterfaces.c"
- goto __catch172_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);
-#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9713 "ConfigurationInterfaces.c"
- }
- }
- goto __finally172;
- __catch172_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
-#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1326 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = err;
-#line 1326 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp4_);
-#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 9731 "ConfigurationInterfaces.c"
- }
- __finally172:
-#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1320 "/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 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9742 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by)
-{
-#line 1319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_library_photos_sort (self, sort_order, sort_by);
-#line 9756 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_get_library_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions)
-{
- gboolean _vala_maximize = FALSE;
- Dimensions _vala_dimensions = {0};
- GError * _inner_error_ = NULL;
-#line 1334 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_maximize = FALSE;
-#line 1335 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- dimensions_init (&_vala_dimensions, 1024, 768);
-#line 9772 "ConfigurationInterfaces.c"
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
- gint w = 0;
- ConfigurationEngine* _tmp4_;
- ConfigurationEngine* _tmp5_;
- gint _tmp6_;
- gint h = 0;
- ConfigurationEngine* _tmp7_;
- ConfigurationEngine* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, &_inner_error_);
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9802 "ConfigurationInterfaces.c"
- goto __catch173_configuration_error;
- }
-#line 1337 "/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);
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9811 "ConfigurationInterfaces.c"
- }
-#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _vala_maximize = _tmp0_;
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = configuration_facade_get_engine (self);
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp4_;
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = configuration_engine_get_int_property (_tmp5_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, &_inner_error_);
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp5_);
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- w = _tmp6_;
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9829 "ConfigurationInterfaces.c"
- goto __catch173_configuration_error;
- }
-#line 1338 "/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);
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9838 "ConfigurationInterfaces.c"
- }
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = configuration_facade_get_engine (self);
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = _tmp7_;
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp9_ = configuration_engine_get_int_property (_tmp8_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, &_inner_error_);
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp8_);
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- h = _tmp9_;
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9854 "ConfigurationInterfaces.c"
- goto __catch173_configuration_error;
- }
-#line 1339 "/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);
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9863 "ConfigurationInterfaces.c"
- }
-#line 1340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp10_ = w;
-#line 1340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp11_ = h;
-#line 1340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- dimensions_init (&_vala_dimensions, _tmp10_, _tmp11_);
-#line 9871 "ConfigurationInterfaces.c"
- }
- goto __finally173;
- __catch173_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp12_;
-#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp12_ = err;
-#line 1342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp12_);
-#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 9888 "ConfigurationInterfaces.c"
- }
- __finally173:
-#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1336 "/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 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9899 "ConfigurationInterfaces.c"
- }
-#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (maximize) {
-#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- *maximize = _vala_maximize;
-#line 9905 "ConfigurationInterfaces.c"
- }
-#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (dimensions) {
-#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- *dimensions = _vala_dimensions;
-#line 9911 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_get_library_window_state (ConfigurationFacade* self,
- gboolean* maximize,
- Dimensions* dimensions)
-{
-#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->get_library_window_state (self, maximize, dimensions);
-#line 9925 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_library_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions)
-{
- GError * _inner_error_ = NULL;
-#line 1346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (dimensions != NULL);
-#line 9937 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- ConfigurationEngine* _tmp3_;
- Dimensions _tmp4_;
- gint _tmp5_;
- ConfigurationEngine* _tmp6_;
- ConfigurationEngine* _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
-#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, maximize, &_inner_error_);
-#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9961 "ConfigurationInterfaces.c"
- goto __catch174_configuration_error;
- }
-#line 1348 "/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);
-#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9970 "ConfigurationInterfaces.c"
- }
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_facade_get_engine (self);
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = *dimensions;
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp4_.width;
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp3_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, _tmp5_, &_inner_error_);
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp3_);
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 9988 "ConfigurationInterfaces.c"
- goto __catch174_configuration_error;
- }
-#line 1349 "/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);
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 9997 "ConfigurationInterfaces.c"
- }
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = configuration_facade_get_engine (self);
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = _tmp6_;
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = *dimensions;
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp9_ = _tmp8_.height;
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp7_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, _tmp9_, &_inner_error_);
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp7_);
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10015 "ConfigurationInterfaces.c"
- goto __catch174_configuration_error;
- }
-#line 1351 "/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);
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10024 "ConfigurationInterfaces.c"
- }
- }
- goto __finally174;
- __catch174_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp10_;
-#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1354 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp10_ = err;
-#line 1354 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp10_);
-#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 10042 "ConfigurationInterfaces.c"
- }
- __finally174:
-#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1347 "/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 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10053 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_library_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions)
-{
-#line 1346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_library_window_state (self, maximize, dimensions);
-#line 10067 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_modify_originals (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, &_inner_error_);
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10094 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10098 "ConfigurationInterfaces.c"
- goto __catch175_configuration_error;
- }
-#line 1363 "/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);
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 10107 "ConfigurationInterfaces.c"
- }
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10113 "ConfigurationInterfaces.c"
- }
- goto __finally175;
- __catch175_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 1368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10134 "ConfigurationInterfaces.c"
- }
- __finally175:
-#line 1362 "/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 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 10143 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_modify_originals (ConfigurationFacade* self)
-{
-#line 1361 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1361 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_modify_originals (self);
-#line 10154 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_modify_originals (ConfigurationFacade* self,
- gboolean modify_originals)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, modify_originals, &_inner_error_);
-#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#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"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10178 "ConfigurationInterfaces.c"
- goto __catch176_configuration_error;
- }
-#line 1374 "/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);
-#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10187 "ConfigurationInterfaces.c"
- }
- }
- goto __finally176;
- __catch176_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1376 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1376 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 10205 "ConfigurationInterfaces.c"
- }
- __finally176:
-#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1373 "/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 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10216 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_modify_originals (ConfigurationFacade* self,
- gboolean modify_originals)
-{
-#line 1372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_modify_originals (self, modify_originals);
-#line 10229 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_photo_thumbnail_scale (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp8_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, &_inner_error_);
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10256 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10260 "ConfigurationInterfaces.c"
- goto __catch177_configuration_error;
- }
-#line 1385 "/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);
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 10269 "ConfigurationInterfaces.c"
- }
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10275 "ConfigurationInterfaces.c"
- }
- goto __finally177;
- __catch177_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1387 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1387 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = thumbnail_get_DEFAULT_SCALE ();
-#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = _tmp6_;
-#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10302 "ConfigurationInterfaces.c"
- }
- __finally177:
-#line 1384 "/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 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp8_;
-#line 10311 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_photo_thumbnail_scale (ConfigurationFacade* self)
-{
-#line 1383 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1383 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_photo_thumbnail_scale (self);
-#line 10322 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_photo_thumbnail_scale (ConfigurationFacade* self,
- gint scale)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, scale, &_inner_error_);
-#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10346 "ConfigurationInterfaces.c"
- goto __catch178_configuration_error;
- }
-#line 1394 "/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);
-#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10355 "ConfigurationInterfaces.c"
- }
- }
- goto __finally178;
- __catch178_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1396 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1396 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 10373 "ConfigurationInterfaces.c"
- }
- __finally178:
-#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1393 "/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 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10384 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_photo_thumbnail_scale (ConfigurationFacade* self,
- gint scale)
-{
-#line 1392 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1392 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_photo_thumbnail_scale (self, scale);
-#line 10397 "ConfigurationInterfaces.c"
-}
-
-
-static gdouble
-configuration_facade_real_get_printing_content_height (ConfigurationFacade* self)
-{
- gdouble result = 0.0;
- gdouble _tmp6_ = 0.0;
- GError * _inner_error_ = NULL;
- {
- gdouble _tmp0_ = 0.0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gdouble _tmp3_;
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_double_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, &_inner_error_);
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10424 "ConfigurationInterfaces.c"
- gdouble _tmp4_ = 0.0;
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10428 "ConfigurationInterfaces.c"
- goto __catch179_configuration_error;
- }
-#line 1405 "/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);
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 10437 "ConfigurationInterfaces.c"
- }
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10443 "ConfigurationInterfaces.c"
- }
- goto __finally179;
- __catch179_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1407 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1407 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1409 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 5.0;
-#line 1409 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1409 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10464 "ConfigurationInterfaces.c"
- }
- __finally179:
-#line 1404 "/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 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 10473 "ConfigurationInterfaces.c"
-}
-
-
-gdouble
-configuration_facade_get_printing_content_height (ConfigurationFacade* self)
-{
-#line 1403 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0);
-#line 1403 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_height (self);
-#line 10484 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_content_height (ConfigurationFacade* self,
- gdouble content_height)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_double_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, content_height, &_inner_error_);
-#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10508 "ConfigurationInterfaces.c"
- goto __catch180_configuration_error;
- }
-#line 1415 "/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);
-#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10517 "ConfigurationInterfaces.c"
- }
- }
- goto __finally180;
- __catch180_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1418 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1418 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 10535 "ConfigurationInterfaces.c"
- }
- __finally180:
-#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1414 "/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 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10546 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_content_height (ConfigurationFacade* self,
- gdouble content_height)
-{
-#line 1413 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1413 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_height (self, content_height);
-#line 10559 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_printing_content_layout (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, &_inner_error_);
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10586 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10590 "ConfigurationInterfaces.c"
- goto __catch181_configuration_error;
- }
-#line 1427 "/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);
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 10599 "ConfigurationInterfaces.c"
- }
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_ - 1;
-#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10605 "ConfigurationInterfaces.c"
- }
- goto __finally181;
- __catch181_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1429 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1429 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 1431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10626 "ConfigurationInterfaces.c"
- }
- __finally181:
-#line 1426 "/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 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 10635 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_printing_content_layout (ConfigurationFacade* self)
-{
-#line 1425 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1425 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_layout (self);
-#line 10646 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_content_layout (ConfigurationFacade* self,
- gint layout_code)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, layout_code + 1, &_inner_error_);
-#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10670 "ConfigurationInterfaces.c"
- goto __catch182_configuration_error;
- }
-#line 1437 "/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);
-#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10679 "ConfigurationInterfaces.c"
- }
- }
- goto __finally182;
- __catch182_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1440 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1440 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 10697 "ConfigurationInterfaces.c"
- }
- __finally182:
-#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1436 "/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 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10708 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_content_layout (ConfigurationFacade* self,
- gint layout_code)
-{
-#line 1435 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1435 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_layout (self, layout_code);
-#line 10721 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_printing_content_ppi (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, &_inner_error_);
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10748 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10752 "ConfigurationInterfaces.c"
- goto __catch183_configuration_error;
- }
-#line 1449 "/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);
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 10761 "ConfigurationInterfaces.c"
- }
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10767 "ConfigurationInterfaces.c"
- }
- goto __finally183;
- __catch183_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1451 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1451 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1453 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 600;
-#line 1453 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1453 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10788 "ConfigurationInterfaces.c"
- }
- __finally183:
-#line 1448 "/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 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 10797 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_printing_content_ppi (ConfigurationFacade* self)
-{
-#line 1447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_ppi (self);
-#line 10808 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_content_ppi (ConfigurationFacade* self,
- gint content_ppi)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, content_ppi, &_inner_error_);
-#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10832 "ConfigurationInterfaces.c"
- goto __catch184_configuration_error;
- }
-#line 1459 "/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);
-#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10841 "ConfigurationInterfaces.c"
- }
- }
- goto __finally184;
- __catch184_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1461 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1461 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 10859 "ConfigurationInterfaces.c"
- }
- __finally184:
-#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1458 "/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 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 10870 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_content_ppi (ConfigurationFacade* self,
- gint content_ppi)
-{
-#line 1457 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1457 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_ppi (self, content_ppi);
-#line 10883 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_printing_content_units (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, &_inner_error_);
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10910 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10914 "ConfigurationInterfaces.c"
- goto __catch185_configuration_error;
- }
-#line 1470 "/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);
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 10923 "ConfigurationInterfaces.c"
- }
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_ - 1;
-#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10929 "ConfigurationInterfaces.c"
- }
- goto __finally185;
- __catch185_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1472 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1472 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1474 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 1474 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1474 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 10950 "ConfigurationInterfaces.c"
- }
- __finally185:
-#line 1469 "/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 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 10959 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_printing_content_units (ConfigurationFacade* self)
-{
-#line 1468 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1468 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_units (self);
-#line 10970 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_content_units (ConfigurationFacade* self,
- gint units_code)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, units_code + 1, &_inner_error_);
-#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 10994 "ConfigurationInterfaces.c"
- goto __catch186_configuration_error;
- }
-#line 1480 "/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);
-#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11003 "ConfigurationInterfaces.c"
- }
- }
- goto __finally186;
- __catch186_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1483 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1483 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 11021 "ConfigurationInterfaces.c"
- }
- __finally186:
-#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1479 "/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 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11032 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_content_units (ConfigurationFacade* self,
- gint units_code)
-{
-#line 1478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_units (self, units_code);
-#line 11045 "ConfigurationInterfaces.c"
-}
-
-
-static gdouble
-configuration_facade_real_get_printing_content_width (ConfigurationFacade* self)
-{
- gdouble result = 0.0;
- gdouble _tmp6_ = 0.0;
- GError * _inner_error_ = NULL;
- {
- gdouble _tmp0_ = 0.0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gdouble _tmp3_;
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_double_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, &_inner_error_);
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11072 "ConfigurationInterfaces.c"
- gdouble _tmp4_ = 0.0;
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11076 "ConfigurationInterfaces.c"
- goto __catch187_configuration_error;
- }
-#line 1492 "/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);
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 11085 "ConfigurationInterfaces.c"
- }
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11091 "ConfigurationInterfaces.c"
- }
- goto __finally187;
- __catch187_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1494 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1494 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1496 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 7.0;
-#line 1496 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1496 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11112 "ConfigurationInterfaces.c"
- }
- __finally187:
-#line 1491 "/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 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 11121 "ConfigurationInterfaces.c"
-}
-
-
-gdouble
-configuration_facade_get_printing_content_width (ConfigurationFacade* self)
-{
-#line 1490 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0);
-#line 1490 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_width (self);
-#line 11132 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_content_width (ConfigurationFacade* self,
- gdouble content_width)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_double_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, content_width, &_inner_error_);
-#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11156 "ConfigurationInterfaces.c"
- goto __catch188_configuration_error;
- }
-#line 1502 "/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);
-#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11165 "ConfigurationInterfaces.c"
- }
- }
- goto __finally188;
- __catch188_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1505 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1505 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 11183 "ConfigurationInterfaces.c"
- }
- __finally188:
-#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1501 "/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 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11194 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_content_width (ConfigurationFacade* self,
- gdouble content_width)
-{
-#line 1500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_width (self, content_width);
-#line 11207 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_printing_images_per_page (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, &_inner_error_);
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11234 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11238 "ConfigurationInterfaces.c"
- goto __catch189_configuration_error;
- }
-#line 1514 "/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);
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 11247 "ConfigurationInterfaces.c"
- }
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_ - 1;
-#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11253 "ConfigurationInterfaces.c"
- }
- goto __finally189;
- __catch189_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1516 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1516 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1518 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 1518 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1518 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11274 "ConfigurationInterfaces.c"
- }
- __finally189:
-#line 1513 "/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 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 11283 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_printing_images_per_page (ConfigurationFacade* self)
-{
-#line 1512 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1512 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_images_per_page (self);
-#line 11294 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_images_per_page (ConfigurationFacade* self,
- gint images_per_page_code)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, images_per_page_code + 1, &_inner_error_);
-#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11318 "ConfigurationInterfaces.c"
- goto __catch190_configuration_error;
- }
-#line 1524 "/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);
-#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11327 "ConfigurationInterfaces.c"
- }
- }
- goto __finally190;
- __catch190_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1527 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1527 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 11345 "ConfigurationInterfaces.c"
- }
- __finally190:
-#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1523 "/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 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11356 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_images_per_page (ConfigurationFacade* self,
- gint images_per_page_code)
-{
-#line 1522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_images_per_page (self, images_per_page_code);
-#line 11369 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_printing_match_aspect_ratio (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, &_inner_error_);
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11396 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11400 "ConfigurationInterfaces.c"
- goto __catch191_configuration_error;
- }
-#line 1536 "/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);
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 11409 "ConfigurationInterfaces.c"
- }
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11415 "ConfigurationInterfaces.c"
- }
- goto __finally191;
- __catch191_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1538 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1538 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1540 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = TRUE;
-#line 1540 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1540 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11436 "ConfigurationInterfaces.c"
- }
- __finally191:
-#line 1535 "/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 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 11445 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_printing_match_aspect_ratio (ConfigurationFacade* self)
-{
-#line 1534 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1534 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_match_aspect_ratio (self);
-#line 11456 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_match_aspect_ratio (ConfigurationFacade* self,
- gboolean match_aspect_ratio)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, match_aspect_ratio, &_inner_error_);
-#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11480 "ConfigurationInterfaces.c"
- goto __catch192_configuration_error;
- }
-#line 1546 "/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);
-#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11489 "ConfigurationInterfaces.c"
- }
- }
- goto __finally192;
- __catch192_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 11507 "ConfigurationInterfaces.c"
- }
- __finally192:
-#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1545 "/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 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11518 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_match_aspect_ratio (ConfigurationFacade* self,
- gboolean match_aspect_ratio)
-{
-#line 1544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_match_aspect_ratio (self, match_aspect_ratio);
-#line 11531 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_printing_print_titles (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, &_inner_error_);
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11558 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11562 "ConfigurationInterfaces.c"
- goto __catch193_configuration_error;
- }
-#line 1558 "/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);
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 11571 "ConfigurationInterfaces.c"
- }
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11577 "ConfigurationInterfaces.c"
- }
- goto __finally193;
- __catch193_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1560 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1560 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1562 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 1562 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1562 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11598 "ConfigurationInterfaces.c"
- }
- __finally193:
-#line 1557 "/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 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 11607 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_printing_print_titles (ConfigurationFacade* self)
-{
-#line 1556 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1556 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_print_titles (self);
-#line 11618 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_print_titles (ConfigurationFacade* self,
- gboolean print_titles)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, print_titles, &_inner_error_);
-#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11642 "ConfigurationInterfaces.c"
- goto __catch194_configuration_error;
- }
-#line 1568 "/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);
-#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11651 "ConfigurationInterfaces.c"
- }
- }
- goto __finally194;
- __catch194_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1571 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1571 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 11669 "ConfigurationInterfaces.c"
- }
- __finally194:
-#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1567 "/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 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11680 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_print_titles (ConfigurationFacade* self,
- gboolean print_titles)
-{
-#line 1566 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1566 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_print_titles (self, print_titles);
-#line 11693 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_printing_size_selection (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp7_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
- gint val = 0;
- gint _tmp5_;
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, &_inner_error_);
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11722 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11726 "ConfigurationInterfaces.c"
- goto __catch195_configuration_error;
- }
-#line 1580 "/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);
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 11735 "ConfigurationInterfaces.c"
- }
-#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- val = _tmp0_ - 1;
-#line 1581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = val;
-#line 1581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_tmp5_ == -2) {
-#line 1582 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (resources_get_default_measurement_unit () == RESOURCES_UNIT_SYSTEM_IMPERIAL) {
-#line 1583 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- val = 2;
-#line 11747 "ConfigurationInterfaces.c"
- } else {
-#line 1585 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- val = 10;
-#line 11751 "ConfigurationInterfaces.c"
- }
- }
-#line 1589 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = val;
-#line 1589 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11758 "ConfigurationInterfaces.c"
- }
- goto __finally195;
- __catch195_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
-#line 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 1591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 1593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0;
-#line 1593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11779 "ConfigurationInterfaces.c"
- }
- __finally195:
-#line 1579 "/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 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp7_;
-#line 11788 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_printing_size_selection (ConfigurationFacade* self)
-{
-#line 1578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_size_selection (self);
-#line 11799 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_size_selection (ConfigurationFacade* self,
- gint size_code)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, size_code + 1, &_inner_error_);
-#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11823 "ConfigurationInterfaces.c"
- goto __catch196_configuration_error;
- }
-#line 1599 "/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);
-#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11832 "ConfigurationInterfaces.c"
- }
- }
- goto __finally196;
- __catch196_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1602 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1602 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 11850 "ConfigurationInterfaces.c"
- }
- __finally196:
-#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1598 "/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 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 11861 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_size_selection (ConfigurationFacade* self,
- gint size_code)
-{
-#line 1597 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1597 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_size_selection (self, size_code);
-#line 11874 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_printing_titles_font (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, &_inner_error_);
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11906 "ConfigurationInterfaces.c"
- goto __catch197_configuration_error;
- }
-#line 1611 "/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);
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 11915 "ConfigurationInterfaces.c"
- }
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11927 "ConfigurationInterfaces.c"
- }
- goto __finally197;
- __catch197_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1613 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 1613 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 1617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup ("Sans Bold 12");
-#line 1617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 1617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 11951 "ConfigurationInterfaces.c"
- }
- __finally197:
-#line 1610 "/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 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 11960 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_printing_titles_font (ConfigurationFacade* self)
-{
-#line 1609 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 1609 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_titles_font (self);
-#line 11971 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_printing_titles_font (ConfigurationFacade* self,
- const gchar* font_name)
-{
- GError * _inner_error_ = NULL;
-#line 1621 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (font_name != NULL);
-#line 11982 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, font_name, &_inner_error_);
-#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 11998 "ConfigurationInterfaces.c"
- goto __catch198_configuration_error;
- }
-#line 1623 "/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);
-#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12007 "ConfigurationInterfaces.c"
- }
- }
- goto __finally198;
- __catch198_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1625 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1625 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 12025 "ConfigurationInterfaces.c"
- }
- __finally198:
-#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1622 "/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 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12036 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_printing_titles_font (ConfigurationFacade* self,
- const gchar* font_name)
-{
-#line 1621 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1621 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_titles_font (self, font_name);
-#line 12049 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_show_welcome_dialog (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, &_inner_error_);
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12076 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12080 "ConfigurationInterfaces.c"
- goto __catch199_configuration_error;
- }
-#line 1634 "/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);
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 12089 "ConfigurationInterfaces.c"
- }
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12095 "ConfigurationInterfaces.c"
- }
- goto __finally199;
- __catch199_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1636 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1636 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = TRUE;
-#line 1638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12116 "ConfigurationInterfaces.c"
- }
- __finally199:
-#line 1633 "/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 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 12125 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_show_welcome_dialog (ConfigurationFacade* self)
-{
-#line 1632 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1632 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_show_welcome_dialog (self);
-#line 12136 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_show_welcome_dialog (ConfigurationFacade* self,
- gboolean show)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, show, &_inner_error_);
-#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12160 "ConfigurationInterfaces.c"
- goto __catch200_configuration_error;
- }
-#line 1644 "/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);
-#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12169 "ConfigurationInterfaces.c"
- }
- }
- goto __finally200;
- __catch200_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1647 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1647 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 12187 "ConfigurationInterfaces.c"
- }
- __finally200:
-#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1643 "/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 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12198 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_show_welcome_dialog (ConfigurationFacade* self,
- gboolean show)
-{
-#line 1642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_show_welcome_dialog (self, show);
-#line 12211 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_sidebar_position (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, &_inner_error_);
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12238 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12242 "ConfigurationInterfaces.c"
- goto __catch201_configuration_error;
- }
-#line 1656 "/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);
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 12251 "ConfigurationInterfaces.c"
- }
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12257 "ConfigurationInterfaces.c"
- }
- goto __finally201;
- __catch201_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1660 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 180;
-#line 1660 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1660 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12278 "ConfigurationInterfaces.c"
- }
- __finally201:
-#line 1655 "/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 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 12287 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_sidebar_position (ConfigurationFacade* self)
-{
-#line 1654 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1654 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_sidebar_position (self);
-#line 12298 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_sidebar_position (ConfigurationFacade* self,
- gint position)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, position, &_inner_error_);
-#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12322 "ConfigurationInterfaces.c"
- goto __catch202_configuration_error;
- }
-#line 1666 "/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);
-#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12331 "ConfigurationInterfaces.c"
- }
- }
- goto __finally202;
- __catch202_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1668 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1668 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 12349 "ConfigurationInterfaces.c"
- }
- __finally202:
-#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1665 "/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 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12360 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_sidebar_position (ConfigurationFacade* self,
- gint position)
-{
-#line 1664 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1664 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_sidebar_position (self, position);
-#line 12373 "ConfigurationInterfaces.c"
-}
-
-
-static gdouble
-configuration_facade_real_get_slideshow_delay (ConfigurationFacade* self)
-{
- gdouble result = 0.0;
- gdouble _tmp6_ = 0.0;
- GError * _inner_error_ = NULL;
- {
- gdouble _tmp0_ = 0.0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gdouble _tmp3_;
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_double_property (_tmp2_, CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, &_inner_error_);
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12400 "ConfigurationInterfaces.c"
- gdouble _tmp4_ = 0.0;
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12404 "ConfigurationInterfaces.c"
- goto __catch203_configuration_error;
- }
-#line 1677 "/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);
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 12413 "ConfigurationInterfaces.c"
- }
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12419 "ConfigurationInterfaces.c"
- }
- goto __finally203;
- __catch203_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1681 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 3.0;
-#line 1681 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1681 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12440 "ConfigurationInterfaces.c"
- }
- __finally203:
-#line 1676 "/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 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 12449 "ConfigurationInterfaces.c"
-}
-
-
-gdouble
-configuration_facade_get_slideshow_delay (ConfigurationFacade* self)
-{
-#line 1675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0);
-#line 1675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_slideshow_delay (self);
-#line 12460 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_slideshow_delay (ConfigurationFacade* self,
- gdouble delay)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_double_property (_tmp1_, CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, delay, &_inner_error_);
-#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12484 "ConfigurationInterfaces.c"
- goto __catch204_configuration_error;
- }
-#line 1687 "/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);
-#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12493 "ConfigurationInterfaces.c"
- }
- }
- goto __finally204;
- __catch204_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1689 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1689 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 12511 "ConfigurationInterfaces.c"
- }
- __finally204:
-#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1686 "/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 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12522 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_slideshow_delay (ConfigurationFacade* self,
- gdouble delay)
-{
-#line 1685 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1685 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_slideshow_delay (self, delay);
-#line 12535 "ConfigurationInterfaces.c"
-}
-
-
-static gdouble
-configuration_facade_real_get_slideshow_transition_delay (ConfigurationFacade* self)
-{
- gdouble result = 0.0;
- gdouble _tmp6_ = 0.0;
- GError * _inner_error_ = NULL;
- {
- gdouble _tmp0_ = 0.0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gdouble _tmp3_;
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_double_property (_tmp2_, CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, &_inner_error_);
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12562 "ConfigurationInterfaces.c"
- gdouble _tmp4_ = 0.0;
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12566 "ConfigurationInterfaces.c"
- goto __catch205_configuration_error;
- }
-#line 1698 "/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);
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 12575 "ConfigurationInterfaces.c"
- }
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12581 "ConfigurationInterfaces.c"
- }
- goto __finally205;
- __catch205_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1703 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = 0.3;
-#line 1703 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1703 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12602 "ConfigurationInterfaces.c"
- }
- __finally205:
-#line 1697 "/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 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 12611 "ConfigurationInterfaces.c"
-}
-
-
-gdouble
-configuration_facade_get_slideshow_transition_delay (ConfigurationFacade* self)
-{
-#line 1696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0);
-#line 1696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_slideshow_transition_delay (self);
-#line 12622 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_slideshow_transition_delay (ConfigurationFacade* self,
- gdouble delay)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_double_property (_tmp1_, CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, delay, &_inner_error_);
-#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12646 "ConfigurationInterfaces.c"
- goto __catch206_configuration_error;
- }
-#line 1709 "/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);
-#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12655 "ConfigurationInterfaces.c"
- }
- }
- goto __finally206;
- __catch206_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 12673 "ConfigurationInterfaces.c"
- }
- __finally206:
-#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1708 "/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 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12684 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_slideshow_transition_delay (ConfigurationFacade* self,
- gdouble delay)
-{
-#line 1707 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1707 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_slideshow_transition_delay (self, delay);
-#line 12697 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_slideshow_transition_effect_id (ConfigurationFacade* self)
-{
- gchar* result = NULL;
- GError * _inner_error_ = NULL;
- {
- gchar* _tmp0_ = NULL;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, &_inner_error_);
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp3_;
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp4_;
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12729 "ConfigurationInterfaces.c"
- goto __catch207_configuration_error;
- }
-#line 1721 "/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);
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 12738 "ConfigurationInterfaces.c"
- }
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _tmp0_;
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = NULL;
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp5_;
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp0_);
-#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12750 "ConfigurationInterfaces.c"
- }
- goto __finally207;
- __catch207_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- gchar* _tmp7_;
-#line 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1724 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = err;
-#line 1724 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp6_);
-#line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID);
-#line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12774 "ConfigurationInterfaces.c"
- }
- __finally207:
-#line 1720 "/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 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return NULL;
-#line 12783 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_slideshow_transition_effect_id (ConfigurationFacade* self)
-{
-#line 1719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 1719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_slideshow_transition_effect_id (self);
-#line 12794 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_slideshow_transition_effect_id (ConfigurationFacade* self,
- const gchar* id)
-{
- GError * _inner_error_ = NULL;
-#line 1732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (id != NULL);
-#line 12805 "ConfigurationInterfaces.c"
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, id, &_inner_error_);
-#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12821 "ConfigurationInterfaces.c"
- goto __catch208_configuration_error;
- }
-#line 1734 "/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);
-#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12830 "ConfigurationInterfaces.c"
- }
- }
- goto __finally208;
- __catch208_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1737 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1737 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 12848 "ConfigurationInterfaces.c"
- }
- __finally208:
-#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1733 "/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 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12859 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_slideshow_transition_effect_id (ConfigurationFacade* self,
- const gchar* id)
-{
-#line 1732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_slideshow_transition_effect_id (self, id);
-#line 12872 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_slideshow_show_title (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, &_inner_error_);
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12899 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12903 "ConfigurationInterfaces.c"
- goto __catch209_configuration_error;
- }
-#line 1746 "/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);
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 12912 "ConfigurationInterfaces.c"
- }
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12918 "ConfigurationInterfaces.c"
- }
- goto __finally209;
- __catch209_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1748 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1748 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1750 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 1750 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1750 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 12939 "ConfigurationInterfaces.c"
- }
- __finally209:
-#line 1745 "/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 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 12948 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_slideshow_show_title (ConfigurationFacade* self)
-{
-#line 1744 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1744 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_slideshow_show_title (self);
-#line 12959 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_slideshow_show_title (ConfigurationFacade* self,
- gboolean show_title)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, show_title, &_inner_error_);
-#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 12983 "ConfigurationInterfaces.c"
- goto __catch210_configuration_error;
- }
-#line 1756 "/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);
-#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 12992 "ConfigurationInterfaces.c"
- }
- }
- goto __finally210;
- __catch210_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1758 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1758 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 13010 "ConfigurationInterfaces.c"
- }
- __finally210:
-#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1755 "/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 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 13021 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_slideshow_show_title (ConfigurationFacade* self,
- gboolean show_title)
-{
-#line 1754 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1754 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_slideshow_show_title (self, show_title);
-#line 13034 "ConfigurationInterfaces.c"
-}
-
-
-static void
-g_time_local (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- localtime_r (&time, &_tmp0_);
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 13052 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-g_time_format (struct tm *self,
- const gchar* format)
-{
- gchar* result = NULL;
- gchar* buffer = NULL;
- gchar* _tmp0_;
- gint buffer_length1;
- gint _buffer_size_;
- gchar* _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gint _tmp2__length1;
- gchar* _tmp3_;
-#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (format != NULL, NULL);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, 64);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = _tmp0_;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer_length1 = 64;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _buffer_size_ = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = buffer;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1__length1 = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- strftime (_tmp1_, _tmp1__length1, format, &(*self));
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = buffer;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2__length1 = buffer_length1;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_strdup ((const gchar*) _tmp2_);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp3_;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = (g_free (buffer), NULL);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 13098 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_use_24_hour_time (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp10_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, &_inner_error_);
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13125 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 13129 "ConfigurationInterfaces.c"
- goto __catch211_configuration_error;
- }
-#line 1767 "/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);
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 13138 "ConfigurationInterfaces.c"
- }
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13144 "ConfigurationInterfaces.c"
- }
- goto __finally211;
- __catch211_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- struct tm _tmp6_ = {0};
- gchar* _tmp7_;
- gchar* _tmp8_;
- gboolean _tmp9_;
-#line 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1769 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1769 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_time_local ((time_t) 0, &_tmp6_);
-#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_time_format (&_tmp6_, "%p");
-#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp8_ = _tmp7_;
-#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp9_ = is_string_empty (_tmp8_);
-#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_tmp8_);
-#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp9_;
-#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13179 "ConfigurationInterfaces.c"
- }
- __finally211:
-#line 1766 "/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 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp10_;
-#line 13188 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_use_24_hour_time (ConfigurationFacade* self)
-{
-#line 1765 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1765 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_use_24_hour_time (self);
-#line 13199 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_use_24_hour_time (ConfigurationFacade* self,
- gboolean use_24_hour_time)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, use_24_hour_time, &_inner_error_);
-#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 13223 "ConfigurationInterfaces.c"
- goto __catch212_configuration_error;
- }
-#line 1779 "/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);
-#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 13232 "ConfigurationInterfaces.c"
- }
- }
- goto __finally212;
- __catch212_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1781 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1781 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 13250 "ConfigurationInterfaces.c"
- }
- __finally212:
-#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1778 "/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 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 13261 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_use_24_hour_time (ConfigurationFacade* self,
- gboolean use_24_hour_time)
-{
-#line 1777 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1777 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_use_24_hour_time (self, use_24_hour_time);
-#line 13274 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_use_lowercase_filenames (ConfigurationFacade* self)
-{
- gboolean result = FALSE;
- gboolean _tmp6_ = FALSE;
- GError * _inner_error_ = NULL;
- {
- gboolean _tmp0_ = FALSE;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gboolean _tmp3_;
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, &_inner_error_);
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13301 "ConfigurationInterfaces.c"
- gboolean _tmp4_ = FALSE;
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 13305 "ConfigurationInterfaces.c"
- goto __catch213_configuration_error;
- }
-#line 1790 "/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);
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 13314 "ConfigurationInterfaces.c"
- }
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13320 "ConfigurationInterfaces.c"
- }
- goto __finally213;
- __catch213_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1792 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1792 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = FALSE;
-#line 1794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13341 "ConfigurationInterfaces.c"
- }
- __finally213:
-#line 1789 "/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 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 13350 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_use_lowercase_filenames (ConfigurationFacade* self)
-{
-#line 1788 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1788 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_use_lowercase_filenames (self);
-#line 13361 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_use_lowercase_filenames (ConfigurationFacade* self,
- gboolean b)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, b, &_inner_error_);
-#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 13385 "ConfigurationInterfaces.c"
- goto __catch214_configuration_error;
- }
-#line 1800 "/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);
-#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 13394 "ConfigurationInterfaces.c"
- }
- }
- goto __finally214;
- __catch214_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1802 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1802 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 13412 "ConfigurationInterfaces.c"
- }
- __finally214:
-#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1799 "/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 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 13423 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_use_lowercase_filenames (ConfigurationFacade* self,
- gboolean b)
-{
-#line 1798 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1798 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_use_lowercase_filenames (self, b);
-#line 13436 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_video_interpreter_state_cookie (ConfigurationFacade* self)
-{
- gint result = 0;
- gint _tmp6_ = 0;
- GError * _inner_error_ = NULL;
- {
- gint _tmp0_ = 0;
- ConfigurationEngine* _tmp1_;
- ConfigurationEngine* _tmp2_;
- gint _tmp3_;
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = configuration_facade_get_engine (self);
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = _tmp1_;
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, &_inner_error_);
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp2_);
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = _tmp3_;
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13463 "ConfigurationInterfaces.c"
- gint _tmp4_ = 0;
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 13467 "ConfigurationInterfaces.c"
- goto __catch215_configuration_error;
- }
-#line 1811 "/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);
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp4_;
-#line 13476 "ConfigurationInterfaces.c"
- }
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp0_;
-#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13482 "ConfigurationInterfaces.c"
- }
- goto __finally215;
- __catch215_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
-#line 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1814 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = err;
-#line 1814 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp5_);
-#line 1816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = -1;
-#line 1816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 1816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13503 "ConfigurationInterfaces.c"
- }
- __finally215:
-#line 1810 "/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 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return _tmp6_;
-#line 13512 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_video_interpreter_state_cookie (ConfigurationFacade* self)
-{
-#line 1809 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1809 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_video_interpreter_state_cookie (self);
-#line 13523 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_video_interpreter_state_cookie (ConfigurationFacade* self,
- gint state_cookie)
-{
- GError * _inner_error_ = NULL;
- {
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, state_cookie, &_inner_error_);
-#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 13547 "ConfigurationInterfaces.c"
- goto __catch216_configuration_error;
- }
-#line 1822 "/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);
-#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 13556 "ConfigurationInterfaces.c"
- }
- }
- goto __finally216;
- __catch216_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- err = _inner_error_;
-#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _inner_error_ = NULL;
-#line 1825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = err;
-#line 1825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_on_configuration_error (self, _tmp2_);
-#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_error_free0 (err);
-#line 13574 "ConfigurationInterfaces.c"
- }
- __finally216:
-#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1821 "/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 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_clear_error (&_inner_error_);
-#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return;
-#line 13585 "ConfigurationInterfaces.c"
- }
-}
-
-
-void
-configuration_facade_set_video_interpreter_state_cookie (ConfigurationFacade* self,
- gint state_cookie)
-{
-#line 1820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_video_interpreter_state_cookie (self, state_cookie);
-#line 13598 "ConfigurationInterfaces.c"
-}
-
-
-static gboolean
-configuration_facade_real_get_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def)
-{
- gboolean result = FALSE;
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- gboolean _tmp2_;
-#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (domain != NULL, FALSE);
-#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (id != NULL, FALSE);
-#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (key != NULL, FALSE);
-#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_engine_get_plugin_bool (_tmp1_, domain, id, key, def);
-#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp2_;
-#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13631 "ConfigurationInterfaces.c"
-}
-
-
-gboolean
-configuration_facade_get_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def)
-{
-#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE);
-#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_plugin_bool (self, domain, id, key, def);
-#line 13646 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val)
-{
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (domain != NULL);
-#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (id != NULL);
-#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (key != NULL);
-#line 1837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_plugin_bool (_tmp1_, domain, id, key, val);
-#line 1837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 13673 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_facade_set_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val)
-{
-#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_bool (self, domain, id, key, val);
-#line 13688 "ConfigurationInterfaces.c"
-}
-
-
-static gdouble
-configuration_facade_real_get_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def)
-{
- gdouble result = 0.0;
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- gdouble _tmp2_;
-#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (domain != NULL, 0.0);
-#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (id != NULL, 0.0);
-#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (key != NULL, 0.0);
-#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_engine_get_plugin_double (_tmp1_, domain, id, key, def);
-#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp2_;
-#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13721 "ConfigurationInterfaces.c"
-}
-
-
-gdouble
-configuration_facade_get_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def)
-{
-#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0);
-#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_plugin_double (self, domain, id, key, def);
-#line 13736 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val)
-{
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (domain != NULL);
-#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (id != NULL);
-#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (key != NULL);
-#line 1845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_plugin_double (_tmp1_, domain, id, key, val);
-#line 1845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 13763 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_facade_set_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val)
-{
-#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_double (self, domain, id, key, val);
-#line 13778 "ConfigurationInterfaces.c"
-}
-
-
-static gint
-configuration_facade_real_get_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def)
-{
- gint result = 0;
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- gint _tmp2_;
-#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (domain != NULL, 0);
-#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (id != NULL, 0);
-#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (key != NULL, 0);
-#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_engine_get_plugin_int (_tmp1_, domain, id, key, def);
-#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp2_;
-#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13811 "ConfigurationInterfaces.c"
-}
-
-
-gint
-configuration_facade_get_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def)
-{
-#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_plugin_int (self, domain, id, key, def);
-#line 13826 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val)
-{
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (domain != NULL);
-#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (id != NULL);
-#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (key != NULL);
-#line 1853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_plugin_int (_tmp1_, domain, id, key, val);
-#line 1853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 13853 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_facade_set_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val)
-{
-#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_int (self, domain, id, key, val);
-#line 13868 "ConfigurationInterfaces.c"
-}
-
-
-static gchar*
-configuration_facade_real_get_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_ = NULL;
- const gchar* _tmp5_;
- gchar* _tmp7_;
-#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (domain != NULL, NULL);
-#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (key != NULL, NULL);
-#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_engine_get_plugin_string (_tmp1_, domain, id, key, def);
-#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _result_ = _tmp3_;
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp5_ = _result_;
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (g_strcmp0 (_tmp5_, "") == 0) {
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = NULL;
-#line 13912 "ConfigurationInterfaces.c"
- } else {
- const gchar* _tmp6_;
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp6_ = _result_;
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp4_ = _tmp6_;
-#line 13919 "ConfigurationInterfaces.c"
- }
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp7_ = g_strdup (_tmp4_);
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp7_;
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_free0 (_result_);
-#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 13929 "ConfigurationInterfaces.c"
-}
-
-
-gchar*
-configuration_facade_get_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def)
-{
-#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL);
-#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->get_plugin_string (self, domain, id, key, def);
-#line 13944 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val)
-{
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (domain != NULL);
-#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (id != NULL);
-#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (key != NULL);
-#line 1862 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- if (val == NULL) {
-#line 1863 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- val = "";
-#line 13967 "ConfigurationInterfaces.c"
- }
-#line 1865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_plugin_string (_tmp1_, domain, id, key, val);
-#line 1865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 13977 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_facade_set_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val)
-{
-#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_string (self, domain, id, key, val);
-#line 13992 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_unset_plugin_key (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key)
-{
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (domain != NULL);
-#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (id != NULL);
-#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (key != NULL);
-#line 1869 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1869 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1869 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_unset_plugin_key (_tmp1_, domain, id, key);
-#line 1869 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 14018 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_facade_unset_plugin_key (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key)
-{
-#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->unset_plugin_key (self, domain, id, key);
-#line 14032 "ConfigurationInterfaces.c"
-}
-
-
-static FuzzyPropertyState
-configuration_facade_real_is_plugin_enabled (ConfigurationFacade* self,
- const gchar* id)
-{
- FuzzyPropertyState result = 0;
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
- FuzzyPropertyState _tmp2_;
-#line 1875 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (id != NULL, 0);
-#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp2_ = configuration_engine_is_plugin_enabled (_tmp1_, id);
-#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- result = _tmp2_;
-#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return result;
-#line 14058 "ConfigurationInterfaces.c"
-}
-
-
-FuzzyPropertyState
-configuration_facade_is_plugin_enabled (ConfigurationFacade* self,
- const gchar* id)
-{
-#line 1875 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0);
-#line 1875 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- return CONFIGURATION_FACADE_GET_CLASS (self)->is_plugin_enabled (self, id);
-#line 14070 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_real_set_plugin_enabled (ConfigurationFacade* self,
- const gchar* id,
- gboolean enabled)
-{
- ConfigurationEngine* _tmp0_;
- ConfigurationEngine* _tmp1_;
-#line 1879 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (id != NULL);
-#line 1880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp0_ = configuration_facade_get_engine (self);
-#line 1880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 1880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_engine_set_plugin_enabled (_tmp1_, id, enabled);
-#line 1880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (_tmp1_);
-#line 14091 "ConfigurationInterfaces.c"
-}
-
-
-void
-configuration_facade_set_plugin_enabled (ConfigurationFacade* self,
- const gchar* id,
- gboolean enabled)
-{
-#line 1879 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_return_if_fail (IS_CONFIGURATION_FACADE (self));
-#line 1879 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_enabled (self, id, enabled);
-#line 14104 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_class_init (ConfigurationFacadeClass * klass)
-{
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_parent_class = g_type_class_peek_parent (klass);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- g_type_class_add_private (klass, sizeof (ConfigurationFacadePrivate));
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_auto_import_from_library = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_auto_import_from_library;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_auto_import_from_library = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_auto_import_from_library;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_bg_color_name = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_bg_color_name;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_bg_color_name = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_bg_color_name;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_transparent_background_type = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_transparent_background_type;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_transparent_background_type = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_transparent_background_type;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_transparent_background_color = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_transparent_background_color;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_transparent_background_color = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_transparent_background_color;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_commit_metadata_to_masters = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_commit_metadata_to_masters;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_commit_metadata_to_masters = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_commit_metadata_to_masters;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_desktop_background = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_desktop_background;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_desktop_background = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_desktop_background;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_screensaver = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_screensaver;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_screensaver = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_screensaver;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_directory_pattern = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_directory_pattern;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_directory_pattern = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_directory_pattern;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_directory_pattern_custom = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_directory_pattern_custom;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_directory_pattern_custom = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_directory_pattern_custom;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_direct_window_state = (void (*) (ConfigurationFacade *, gboolean*, Dimensions*)) configuration_facade_real_get_direct_window_state;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_direct_window_state = (void (*) (ConfigurationFacade *, gboolean, Dimensions*)) configuration_facade_real_set_direct_window_state;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_basic_properties = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_basic_properties;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_basic_properties = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_basic_properties;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_extended_properties = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_extended_properties;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_extended_properties = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_extended_properties;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_sidebar = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_sidebar;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_sidebar = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_sidebar;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_toolbar = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_toolbar;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_toolbar = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_toolbar;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_search_bar = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_search_bar;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_search_bar = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_search_bar;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_photo_ratings = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_photo_ratings;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_photo_ratings = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_photo_ratings;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_photo_tags = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_photo_tags;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_photo_tags = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_photo_tags;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_photo_titles = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_photo_titles;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_photo_titles = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_photo_titles;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_photo_comments = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_photo_comments;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_photo_comments = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_photo_comments;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_display_event_comments = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_event_comments;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_display_event_comments = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_event_comments;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_event_photos_sort = (void (*) (ConfigurationFacade *, gboolean*, gint*)) configuration_facade_real_get_event_photos_sort;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_event_photos_sort = (void (*) (ConfigurationFacade *, gboolean, gint)) configuration_facade_real_set_event_photos_sort;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_events_sort_ascending = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_events_sort_ascending;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_events_sort_ascending = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_events_sort_ascending;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_external_photo_app = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_external_photo_app;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_external_photo_app = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_external_photo_app;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_external_raw_app = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_external_raw_app;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_external_raw_app = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_external_raw_app;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_export_constraint = (ScaleConstraint (*) (ConfigurationFacade *)) configuration_facade_real_get_export_constraint;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_export_constraint = (void (*) (ConfigurationFacade *, ScaleConstraint)) configuration_facade_real_set_export_constraint;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_export_export_format_mode = (ExportFormatMode (*) (ConfigurationFacade *)) configuration_facade_real_get_export_export_format_mode;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_export_export_format_mode = (void (*) (ConfigurationFacade *, ExportFormatMode)) configuration_facade_real_set_export_export_format_mode;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_export_export_metadata = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_export_export_metadata;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_export_export_metadata = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_export_export_metadata;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_export_photo_file_format = (PhotoFileFormat (*) (ConfigurationFacade *)) configuration_facade_real_get_export_photo_file_format;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_export_photo_file_format = (void (*) (ConfigurationFacade *, PhotoFileFormat)) configuration_facade_real_set_export_photo_file_format;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_export_quality = (JpegQuality (*) (ConfigurationFacade *)) configuration_facade_real_get_export_quality;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_export_quality = (void (*) (ConfigurationFacade *, JpegQuality)) configuration_facade_real_set_export_quality;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_export_scale = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_export_scale;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_export_scale = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_export_scale;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_default_raw_developer = (RawDeveloper (*) (ConfigurationFacade *)) configuration_facade_real_get_default_raw_developer;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_default_raw_developer = (void (*) (ConfigurationFacade *, RawDeveloper)) configuration_facade_real_set_default_raw_developer;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_hide_photos_already_imported = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_hide_photos_already_imported;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_hide_photos_already_imported = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_hide_photos_already_imported;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_import_dir = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_import_dir;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_import_dir = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_import_dir;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_keep_relativity = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_keep_relativity;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_keep_relativity = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_keep_relativity;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_pin_toolbar_state = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_pin_toolbar_state;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_pin_toolbar_state = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_pin_toolbar_state;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_last_crop_height = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_last_crop_height;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_last_crop_height = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_last_crop_height;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_last_crop_menu_choice = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_last_crop_menu_choice;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_last_crop_menu_choice = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_last_crop_menu_choice;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_last_crop_width = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_last_crop_width;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_last_crop_width = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_last_crop_width;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_last_used_service = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_last_used_service;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_last_used_service = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_last_used_service;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_last_used_dataimports_service = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_last_used_dataimports_service;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_last_used_dataimports_service = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_last_used_dataimports_service;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_library_photos_sort = (void (*) (ConfigurationFacade *, gboolean*, gint*)) configuration_facade_real_get_library_photos_sort;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_library_photos_sort = (void (*) (ConfigurationFacade *, gboolean, gint)) configuration_facade_real_set_library_photos_sort;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_library_window_state = (void (*) (ConfigurationFacade *, gboolean*, Dimensions*)) configuration_facade_real_get_library_window_state;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_library_window_state = (void (*) (ConfigurationFacade *, gboolean, Dimensions*)) configuration_facade_real_set_library_window_state;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_modify_originals = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_modify_originals;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_modify_originals = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_modify_originals;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_photo_thumbnail_scale = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_photo_thumbnail_scale;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_photo_thumbnail_scale = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_photo_thumbnail_scale;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_content_height = (gdouble (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_height;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_content_height = (void (*) (ConfigurationFacade *, gdouble)) configuration_facade_real_set_printing_content_height;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_content_layout = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_layout;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_content_layout = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_content_layout;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_content_ppi = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_ppi;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_content_ppi = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_content_ppi;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_content_units = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_units;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_content_units = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_content_units;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_content_width = (gdouble (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_width;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_content_width = (void (*) (ConfigurationFacade *, gdouble)) configuration_facade_real_set_printing_content_width;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_images_per_page = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_images_per_page;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_images_per_page = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_images_per_page;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_match_aspect_ratio = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_match_aspect_ratio;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_match_aspect_ratio = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_printing_match_aspect_ratio;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_print_titles = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_print_titles;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_print_titles = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_printing_print_titles;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_size_selection = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_size_selection;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_size_selection = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_size_selection;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_printing_titles_font = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_titles_font;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_printing_titles_font = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_printing_titles_font;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_show_welcome_dialog = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_show_welcome_dialog;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_show_welcome_dialog = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_show_welcome_dialog;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_sidebar_position = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_sidebar_position;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_sidebar_position = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_sidebar_position;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_slideshow_delay = (gdouble (*) (ConfigurationFacade *)) configuration_facade_real_get_slideshow_delay;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_slideshow_delay = (void (*) (ConfigurationFacade *, gdouble)) configuration_facade_real_set_slideshow_delay;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_slideshow_transition_delay = (gdouble (*) (ConfigurationFacade *)) configuration_facade_real_get_slideshow_transition_delay;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_slideshow_transition_delay = (void (*) (ConfigurationFacade *, gdouble)) configuration_facade_real_set_slideshow_transition_delay;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_slideshow_transition_effect_id = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_slideshow_transition_effect_id;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_slideshow_transition_effect_id = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_slideshow_transition_effect_id;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_slideshow_show_title = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_slideshow_show_title;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_slideshow_show_title = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_slideshow_show_title;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_use_24_hour_time = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_use_24_hour_time;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_use_24_hour_time = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_use_24_hour_time;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_use_lowercase_filenames = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_use_lowercase_filenames;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_use_lowercase_filenames = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_use_lowercase_filenames;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_video_interpreter_state_cookie = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_video_interpreter_state_cookie;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_video_interpreter_state_cookie = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_video_interpreter_state_cookie;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_plugin_bool = (gboolean (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gboolean)) configuration_facade_real_get_plugin_bool;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_plugin_bool = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gboolean)) configuration_facade_real_set_plugin_bool;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_plugin_double = (gdouble (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gdouble)) configuration_facade_real_get_plugin_double;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_plugin_double = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gdouble)) configuration_facade_real_set_plugin_double;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_plugin_int = (gint (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gint)) configuration_facade_real_get_plugin_int;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_plugin_int = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gint)) configuration_facade_real_set_plugin_int;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->get_plugin_string = (gchar* (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, const gchar*)) configuration_facade_real_get_plugin_string;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_plugin_string = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, const gchar*)) configuration_facade_real_set_plugin_string;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->unset_plugin_key = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*)) configuration_facade_real_unset_plugin_key;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->is_plugin_enabled = (FuzzyPropertyState (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_is_plugin_enabled;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- ((ConfigurationFacadeClass *) klass)->set_plugin_enabled = (void (*) (ConfigurationFacade *, const gchar*, gboolean)) configuration_facade_real_set_plugin_enabled;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- G_OBJECT_CLASS (klass)->finalize = configuration_facade_finalize;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_signals[CONFIGURATION_FACADE_AUTO_IMPORT_FROM_LIBRARY_CHANGED_SIGNAL] = g_signal_new ("auto-import-from-library-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_signals[CONFIGURATION_FACADE_BG_COLOR_NAME_CHANGED_SIGNAL] = g_signal_new ("bg-color-name-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_signals[CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_TYPE_CHANGED_SIGNAL] = g_signal_new ("transparent-background-type-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_signals[CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_COLOR_CHANGED_SIGNAL] = g_signal_new ("transparent-background-color-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_signals[CONFIGURATION_FACADE_COMMIT_METADATA_TO_MASTERS_CHANGED_SIGNAL] = g_signal_new ("commit-metadata-to-masters-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_signals[CONFIGURATION_FACADE_EVENTS_SORT_ASCENDING_CHANGED_SIGNAL] = g_signal_new ("events-sort-ascending-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_signals[CONFIGURATION_FACADE_EXTERNAL_APP_CHANGED_SIGNAL] = g_signal_new ("external-app-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- configuration_facade_signals[CONFIGURATION_FACADE_IMPORT_DIRECTORY_CHANGED_SIGNAL] = g_signal_new ("import-directory-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 14407 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_instance_init (ConfigurationFacade * self)
-{
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- self->priv = CONFIGURATION_FACADE_GET_PRIVATE (self);
-#line 14416 "ConfigurationInterfaces.c"
-}
-
-
-static void
-configuration_facade_finalize (GObject * obj)
-{
- ConfigurationFacade * self;
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONFIGURATION_FACADE, ConfigurationFacade);
-#line 354 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- _g_object_unref0 (self->priv->engine);
-#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala"
- G_OBJECT_CLASS (configuration_facade_parent_class)->finalize (obj);
-#line 14430 "ConfigurationInterfaces.c"
-}
-
-
-GType
-configuration_facade_get_type (void)
-{
- static volatile gsize configuration_facade_type_id__volatile = 0;
- if (g_once_init_enter (&configuration_facade_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ConfigurationFacadeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) configuration_facade_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ConfigurationFacade), 0, (GInstanceInitFunc) configuration_facade_instance_init, NULL };
- GType configuration_facade_type_id;
- configuration_facade_type_id = g_type_register_static (G_TYPE_OBJECT, "ConfigurationFacade", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&configuration_facade_type_id__volatile, configuration_facade_type_id);
- }
- return configuration_facade_type_id__volatile;
-}
-
-
-
diff --git a/src/config/ConfigurationInterfaces.vala b/src/config/ConfigurationInterfaces.vala
index c785144..8af5a73 100644
--- a/src/config/ConfigurationInterfaces.vala
+++ b/src/config/ConfigurationInterfaces.vala
@@ -21,7 +21,7 @@ public enum FuzzyPropertyState {
public enum ConfigurableProperty {
AUTO_IMPORT_FROM_LIBRARY = 0,
- BG_COLOR_NAME,
+ GTK_THEME_VARIANT,
TRANSPARENT_BACKGROUND_TYPE,
TRANSPARENT_BACKGROUND_COLOR,
COMMIT_METADATA_TO_MASTERS,
@@ -100,8 +100,8 @@ public enum ConfigurableProperty {
case AUTO_IMPORT_FROM_LIBRARY:
return "AUTO_IMPORT_FROM_LIBRARY";
- case BG_COLOR_NAME:
- return "BG_COLOR_NAME";
+ case GTK_THEME_VARIANT:
+ return "GTK_THEME_VARIANT";
case TRANSPARENT_BACKGROUND_TYPE:
return "TRANSPARENT_BACKGROUND_TYPE";
@@ -376,7 +376,7 @@ public abstract class ConfigurationFacade : Object {
auto_import_from_library_changed();
break;
- case ConfigurableProperty.BG_COLOR_NAME:
+ case ConfigurableProperty.GTK_THEME_VARIANT:
bg_color_name_changed();
break;
@@ -449,21 +449,21 @@ public abstract class ConfigurationFacade : Object {
}
//
- // bg color name
+ // GTK theme variant
//
- public virtual string get_bg_color_name() {
+ public virtual bool get_gtk_theme_variant() {
try {
- return get_engine().get_string_property(ConfigurableProperty.BG_COLOR_NAME);
+ return get_engine().get_bool_property(ConfigurableProperty.GTK_THEME_VARIANT);
} catch (ConfigurationError err) {
on_configuration_error(err);
- return "";
+ return true;
}
}
- public virtual void set_bg_color_name(string color_name) {
+ public virtual void set_gtk_theme_variant(bool dark) {
try {
- get_engine().set_string_property(ConfigurableProperty.BG_COLOR_NAME, color_name);
+ get_engine().set_bool_property(ConfigurableProperty.GTK_THEME_VARIANT, dark);
} catch (ConfigurationError err) {
on_configuration_error(err);
return;
diff --git a/src/config/GSettingsEngine.c b/src/config/GSettingsEngine.c
deleted file mode 100644
index 3ddaa71..0000000
--- a/src/config/GSettingsEngine.c
+++ /dev/null
@@ -1,5835 +0,0 @@
-/* GSettingsEngine.c generated by valac 0.40.4, the Vala compiler
- * generated from GSettingsEngine.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <gio/gio.h>
-
-
-#define TYPE_CONFIGURATION_ENGINE (configuration_engine_get_type ())
-#define CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngine))
-#define IS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_ENGINE))
-#define CONFIGURATION_ENGINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngineIface))
-
-typedef struct _ConfigurationEngine ConfigurationEngine;
-typedef struct _ConfigurationEngineIface ConfigurationEngineIface;
-
-#define TYPE_CONFIGURABLE_PROPERTY (configurable_property_get_type ())
-
-#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ())
-
-#define TYPE_GSETTINGS_CONFIGURATION_ENGINE (gsettings_configuration_engine_get_type ())
-#define GSETTINGS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine))
-#define GSETTINGS_CONFIGURATION_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngineClass))
-#define IS_GSETTINGS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE))
-#define IS_GSETTINGS_CONFIGURATION_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GSETTINGS_CONFIGURATION_ENGINE))
-#define GSETTINGS_CONFIGURATION_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngineClass))
-
-typedef struct _GSettingsConfigurationEngine GSettingsConfigurationEngine;
-typedef struct _GSettingsConfigurationEngineClass GSettingsConfigurationEngineClass;
-typedef struct _GSettingsConfigurationEnginePrivate GSettingsConfigurationEnginePrivate;
-enum {
- GSETTINGS_CONFIGURATION_ENGINE_0_PROPERTY,
- GSETTINGS_CONFIGURATION_ENGINE_NUM_PROPERTIES
-};
-static GParamSpec* gsettings_configuration_engine_properties[GSETTINGS_CONFIGURATION_ENGINE_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_settings_schema_unref0(var) ((var == NULL) ? NULL : (var = (g_settings_schema_unref (var), NULL)))
-#define _g_settings_schema_source_unref0(var) ((var == NULL) ? NULL : (var = (g_settings_schema_source_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-typedef enum {
- CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY = 0,
- CONFIGURABLE_PROPERTY_BG_COLOR_NAME,
- CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE,
- CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR,
- CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS,
- CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE,
- CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE,
- CONFIGURABLE_PROPERTY_SCREENSAVER_FILE,
- CONFIGURABLE_PROPERTY_SCREENSAVER_MODE,
- CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN,
- CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE,
- CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH,
- CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES,
- CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS,
- CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES,
- CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR,
- CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR,
- CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES,
- CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS,
- CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY,
- CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT,
- CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE,
- CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA,
- CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT,
- CONFIGURABLE_PROPERTY_EXPORT_QUALITY,
- CONFIGURABLE_PROPERTY_EXPORT_SCALE,
- CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP,
- CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP,
- CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED,
- CONFIGURABLE_PROPERTY_IMPORT_DIR,
- CONFIGURABLE_PROPERTY_KEEP_RELATIVITY,
- CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT,
- CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE,
- CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH,
- CONFIGURABLE_PROPERTY_LAST_USED_SERVICE,
- CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE,
- CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING,
- CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE,
- CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH,
- CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS,
- CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE,
- CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS,
- CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH,
- CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE,
- CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO,
- CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES,
- CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION,
- CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT,
- CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT,
- CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG,
- CONFIGURABLE_PROPERTY_SIDEBAR_POSITION,
- CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY,
- CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY,
- CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID,
- CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE,
- CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME,
- CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES,
- CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE,
- CONFIGURABLE_PROPERTY_NUM_PROPERTIES
-} ConfigurableProperty;
-
-typedef enum {
- CONFIGURATION_ERROR_PROPERTY_HAS_NO_VALUE,
- CONFIGURATION_ERROR_ENGINE_ERROR
-} ConfigurationError;
-#define CONFIGURATION_ERROR configuration_error_quark ()
-typedef enum {
- FUZZY_PROPERTY_STATE_ENABLED,
- FUZZY_PROPERTY_STATE_DISABLED,
- FUZZY_PROPERTY_STATE_UNKNOWN
-} FuzzyPropertyState;
-
-struct _ConfigurationEngineIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (ConfigurationEngine* self);
- gint (*get_int_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_int_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error);
- gint (*get_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error);
- gchar* (*get_string_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_string_property) (ConfigurationEngine* self, ConfigurableProperty p, const gchar* val, GError** error);
- gboolean (*get_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, gboolean val, GError** error);
- gdouble (*get_double_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error);
- void (*set_double_property) (ConfigurationEngine* self, ConfigurableProperty p, gdouble val, GError** error);
- gboolean (*get_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def);
- void (*set_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val);
- gdouble (*get_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def);
- void (*set_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val);
- gint (*get_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint def);
- void (*set_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint val);
- gchar* (*get_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def);
- void (*set_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val);
- void (*unset_plugin_key) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key);
- FuzzyPropertyState (*is_plugin_enabled) (ConfigurationEngine* self, const gchar* id);
- void (*set_plugin_enabled) (ConfigurationEngine* self, const gchar* id, gboolean enabled);
-};
-
-struct _GSettingsConfigurationEngine {
- GObject parent_instance;
- GSettingsConfigurationEnginePrivate * priv;
-};
-
-struct _GSettingsConfigurationEngineClass {
- GObjectClass parent_class;
-};
-
-struct _GSettingsConfigurationEnginePrivate {
- gchar** schema_names;
- gint schema_names_length1;
- gint _schema_names_size_;
- gchar** key_names;
- gint key_names_length1;
- gint _key_names_size_;
-};
-
-
-static gpointer gsettings_configuration_engine_parent_class = NULL;
-static ConfigurationEngineIface * gsettings_configuration_engine_configuration_engine_parent_iface = NULL;
-
-GType configurable_property_get_type (void) G_GNUC_CONST;
-GQuark configuration_error_quark (void);
-GType fuzzy_property_state_get_type (void) G_GNUC_CONST;
-GType configuration_engine_get_type (void) G_GNUC_CONST;
-GType gsettings_configuration_engine_get_type (void) G_GNUC_CONST;
-#define GSETTINGS_CONFIGURATION_ENGINE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEnginePrivate))
-#define GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME "org.yorba.shotwell"
-#define GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".preferences"
-#define GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".ui"
-#define GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".slideshow"
-#define GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".window"
-#define GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".files"
-#define GSETTINGS_CONFIGURATION_ENGINE_EDITING_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".editing"
-#define GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".export"
-#define GSETTINGS_CONFIGURATION_ENGINE_VIDEO_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".video"
-#define GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".printing"
-#define GSETTINGS_CONFIGURATION_ENGINE_SHARING_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".sharing"
-#define GSETTINGS_CONFIGURATION_ENGINE_IMPORTING_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".dataimports"
-#define GSETTINGS_CONFIGURATION_ENGINE_CROP_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".crop-settings"
-#define GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_DESKTOP_SCHEMA_NAME "org.gnome.desktop.background"
-#define GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_SCREENSAVER_SCHEMA_NAME "org.gnome.desktop.screensaver"
-#define GSETTINGS_CONFIGURATION_ENGINE_PLUGINS_ENABLE_DISABLE_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".plugins.enable-state"
-GSettingsConfigurationEngine* gsettings_configuration_engine_new (void);
-GSettingsConfigurationEngine* gsettings_configuration_engine_construct (GType object_type);
-static void gsettings_configuration_engine_check_key_valid (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error);
-static gboolean gsettings_configuration_engine_get_gs_bool (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error);
-static void gsettings_configuration_engine_set_gs_bool (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- gboolean value,
- GError** error);
-static void gsettings_configuration_engine_set_gs_enum (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- gint value,
- GError** error);
-static gint gsettings_configuration_engine_get_gs_enum (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error);
-static gint gsettings_configuration_engine_get_gs_int (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error);
-static void gsettings_configuration_engine_set_gs_int (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- gint value,
- GError** error);
-static gdouble gsettings_configuration_engine_get_gs_double (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error);
-static void gsettings_configuration_engine_set_gs_double (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- gdouble value,
- GError** error);
-static gchar* gsettings_configuration_engine_get_gs_string (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error);
-static void gsettings_configuration_engine_set_gs_string (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- const gchar* value,
- GError** error);
-static void gsettings_configuration_engine_reset_gs_to_default (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error);
-static gchar* gsettings_configuration_engine_clean_plugin_id (const gchar* id);
-gboolean is_string_empty (const gchar* s);
-static gchar* gsettings_configuration_engine_get_plugin_enable_disable_name (const gchar* id);
-static gchar* gsettings_configuration_engine_make_plugin_schema_name (const gchar* domain,
- const gchar* id);
-static gchar* gsettings_configuration_engine_make_gsettings_key (const gchar* gconf_key);
-static gchar* gsettings_configuration_engine_real_get_name (ConfigurationEngine* base);
-static gint gsettings_configuration_engine_real_get_enum_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error);
-static void gsettings_configuration_engine_real_set_enum_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- gint val,
- GError** error);
-static gint gsettings_configuration_engine_real_get_int_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error);
-static void gsettings_configuration_engine_real_set_int_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- gint val,
- GError** error);
-static gchar* gsettings_configuration_engine_real_get_string_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error);
-static void gsettings_configuration_engine_real_set_string_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- const gchar* val,
- GError** error);
-static gboolean gsettings_configuration_engine_real_get_bool_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error);
-static void gsettings_configuration_engine_real_set_bool_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- gboolean val,
- GError** error);
-static gdouble gsettings_configuration_engine_real_get_double_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error);
-static void gsettings_configuration_engine_real_set_double_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- gdouble val,
- GError** error);
-static gboolean gsettings_configuration_engine_real_get_plugin_bool (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def);
-static void gsettings_configuration_engine_real_set_plugin_bool (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val);
-static gdouble gsettings_configuration_engine_real_get_plugin_double (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def);
-static void gsettings_configuration_engine_real_set_plugin_double (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val);
-static gint gsettings_configuration_engine_real_get_plugin_int (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def);
-static void gsettings_configuration_engine_real_set_plugin_int (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val);
-static gchar* gsettings_configuration_engine_real_get_plugin_string (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def);
-static void gsettings_configuration_engine_real_set_plugin_string (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val);
-static void gsettings_configuration_engine_real_unset_plugin_key (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key);
-static FuzzyPropertyState gsettings_configuration_engine_real_is_plugin_enabled (ConfigurationEngine* base,
- const gchar* id);
-static void gsettings_configuration_engine_real_set_plugin_enabled (ConfigurationEngine* base,
- const gchar* id,
- gboolean enabled);
-void gsettings_configuration_engine_run_gsettings_migrator (void);
-GFile* app_dirs_get_settings_migrator_bin (void);
-static void gsettings_configuration_engine_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);
-
-
-GSettingsConfigurationEngine*
-gsettings_configuration_engine_construct (GType object_type)
-{
- GSettingsConfigurationEngine * self = NULL;
- gchar** _tmp0_;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar** _tmp4_;
- gint _tmp4__length1;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar** _tmp7_;
- gint _tmp7__length1;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar** _tmp10_;
- gint _tmp10__length1;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar** _tmp13_;
- gint _tmp13__length1;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar** _tmp16_;
- gint _tmp16__length1;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar** _tmp19_;
- gint _tmp19__length1;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar** _tmp22_;
- gint _tmp22__length1;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar** _tmp25_;
- gint _tmp25__length1;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gchar** _tmp28_;
- gint _tmp28__length1;
- gchar* _tmp29_;
- gchar* _tmp30_;
- gchar** _tmp31_;
- gint _tmp31__length1;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar** _tmp34_;
- gint _tmp34__length1;
- gchar* _tmp35_;
- gchar* _tmp36_;
- gchar** _tmp37_;
- gint _tmp37__length1;
- gchar* _tmp38_;
- gchar* _tmp39_;
- gchar** _tmp40_;
- gint _tmp40__length1;
- gchar* _tmp41_;
- gchar* _tmp42_;
- gchar** _tmp43_;
- gint _tmp43__length1;
- gchar* _tmp44_;
- gchar* _tmp45_;
- gchar** _tmp46_;
- gint _tmp46__length1;
- gchar* _tmp47_;
- gchar* _tmp48_;
- gchar** _tmp49_;
- gint _tmp49__length1;
- gchar* _tmp50_;
- gchar* _tmp51_;
- gchar** _tmp52_;
- gint _tmp52__length1;
- gchar* _tmp53_;
- gchar* _tmp54_;
- gchar** _tmp55_;
- gint _tmp55__length1;
- gchar* _tmp56_;
- gchar* _tmp57_;
- gchar** _tmp58_;
- gint _tmp58__length1;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar** _tmp61_;
- gint _tmp61__length1;
- gchar* _tmp62_;
- gchar* _tmp63_;
- gchar** _tmp64_;
- gint _tmp64__length1;
- gchar* _tmp65_;
- gchar* _tmp66_;
- gchar** _tmp67_;
- gint _tmp67__length1;
- gchar* _tmp68_;
- gchar* _tmp69_;
- gchar** _tmp70_;
- gint _tmp70__length1;
- gchar* _tmp71_;
- gchar* _tmp72_;
- gchar** _tmp73_;
- gint _tmp73__length1;
- gchar* _tmp74_;
- gchar* _tmp75_;
- gchar** _tmp76_;
- gint _tmp76__length1;
- gchar* _tmp77_;
- gchar* _tmp78_;
- gchar** _tmp79_;
- gint _tmp79__length1;
- gchar* _tmp80_;
- gchar* _tmp81_;
- gchar** _tmp82_;
- gint _tmp82__length1;
- gchar* _tmp83_;
- gchar* _tmp84_;
- gchar** _tmp85_;
- gint _tmp85__length1;
- gchar* _tmp86_;
- gchar* _tmp87_;
- gchar** _tmp88_;
- gint _tmp88__length1;
- gchar* _tmp89_;
- gchar* _tmp90_;
- gchar** _tmp91_;
- gint _tmp91__length1;
- gchar* _tmp92_;
- gchar* _tmp93_;
- gchar** _tmp94_;
- gint _tmp94__length1;
- gchar* _tmp95_;
- gchar* _tmp96_;
- gchar** _tmp97_;
- gint _tmp97__length1;
- gchar* _tmp98_;
- gchar* _tmp99_;
- gchar** _tmp100_;
- gint _tmp100__length1;
- gchar* _tmp101_;
- gchar* _tmp102_;
- gchar** _tmp103_;
- gint _tmp103__length1;
- gchar* _tmp104_;
- gchar* _tmp105_;
- gchar** _tmp106_;
- gint _tmp106__length1;
- gchar* _tmp107_;
- gchar* _tmp108_;
- gchar** _tmp109_;
- gint _tmp109__length1;
- gchar* _tmp110_;
- gchar* _tmp111_;
- gchar** _tmp112_;
- gint _tmp112__length1;
- gchar* _tmp113_;
- gchar* _tmp114_;
- gchar** _tmp115_;
- gint _tmp115__length1;
- gchar* _tmp116_;
- gchar* _tmp117_;
- gchar** _tmp118_;
- gint _tmp118__length1;
- gchar* _tmp119_;
- gchar* _tmp120_;
- gchar** _tmp121_;
- gint _tmp121__length1;
- gchar* _tmp122_;
- gchar* _tmp123_;
- gchar** _tmp124_;
- gint _tmp124__length1;
- gchar* _tmp125_;
- gchar* _tmp126_;
- gchar** _tmp127_;
- gint _tmp127__length1;
- gchar* _tmp128_;
- gchar* _tmp129_;
- gchar** _tmp130_;
- gint _tmp130__length1;
- gchar* _tmp131_;
- gchar* _tmp132_;
- gchar** _tmp133_;
- gint _tmp133__length1;
- gchar* _tmp134_;
- gchar* _tmp135_;
- gchar** _tmp136_;
- gint _tmp136__length1;
- gchar* _tmp137_;
- gchar* _tmp138_;
- gchar** _tmp139_;
- gint _tmp139__length1;
- gchar* _tmp140_;
- gchar* _tmp141_;
- gchar** _tmp142_;
- gint _tmp142__length1;
- gchar* _tmp143_;
- gchar* _tmp144_;
- gchar** _tmp145_;
- gint _tmp145__length1;
- gchar* _tmp146_;
- gchar* _tmp147_;
- gchar** _tmp148_;
- gint _tmp148__length1;
- gchar* _tmp149_;
- gchar* _tmp150_;
- gchar** _tmp151_;
- gint _tmp151__length1;
- gchar* _tmp152_;
- gchar* _tmp153_;
- gchar** _tmp154_;
- gint _tmp154__length1;
- gchar* _tmp155_;
- gchar* _tmp156_;
- gchar** _tmp157_;
- gint _tmp157__length1;
- gchar* _tmp158_;
- gchar* _tmp159_;
- gchar** _tmp160_;
- gint _tmp160__length1;
- gchar* _tmp161_;
- gchar* _tmp162_;
- gchar** _tmp163_;
- gint _tmp163__length1;
- gchar* _tmp164_;
- gchar* _tmp165_;
- gchar** _tmp166_;
- gint _tmp166__length1;
- gchar* _tmp167_;
- gchar* _tmp168_;
- gchar** _tmp169_;
- gint _tmp169__length1;
- gchar* _tmp170_;
- gchar* _tmp171_;
- gchar** _tmp172_;
- gint _tmp172__length1;
- gchar* _tmp173_;
- gchar* _tmp174_;
- gchar** _tmp175_;
- gint _tmp175__length1;
- gchar* _tmp176_;
- gchar* _tmp177_;
- gchar** _tmp178_;
- gint _tmp178__length1;
- gchar* _tmp179_;
- gchar* _tmp180_;
- gchar** _tmp181_;
- gint _tmp181__length1;
- gchar* _tmp182_;
- gchar* _tmp183_;
- gchar** _tmp184_;
- gint _tmp184__length1;
- gchar* _tmp185_;
- gchar* _tmp186_;
- gchar** _tmp187_;
- gint _tmp187__length1;
- gchar* _tmp188_;
- gchar* _tmp189_;
- gchar** _tmp190_;
- gint _tmp190__length1;
- gchar* _tmp191_;
- gchar* _tmp192_;
- gchar** _tmp193_;
- gint _tmp193__length1;
- gchar* _tmp194_;
- gchar* _tmp195_;
- gchar** _tmp196_;
- gint _tmp196__length1;
- gchar* _tmp197_;
- gchar* _tmp198_;
- gchar** _tmp199_;
- gint _tmp199__length1;
- gchar* _tmp200_;
- gchar* _tmp201_;
- gchar** _tmp202_;
- gint _tmp202__length1;
- gchar* _tmp203_;
- gchar* _tmp204_;
- gchar** _tmp205_;
- gint _tmp205__length1;
- gchar* _tmp206_;
- gchar* _tmp207_;
- gchar** _tmp208_;
- gint _tmp208__length1;
- gchar* _tmp209_;
- gchar* _tmp210_;
- gchar** _tmp211_;
- gint _tmp211__length1;
- gchar* _tmp212_;
- gchar* _tmp213_;
- gchar** _tmp214_;
- gchar** _tmp215_;
- gint _tmp215__length1;
- gchar* _tmp216_;
- gchar* _tmp217_;
- gchar** _tmp218_;
- gint _tmp218__length1;
- gchar* _tmp219_;
- gchar* _tmp220_;
- gchar** _tmp221_;
- gint _tmp221__length1;
- gchar* _tmp222_;
- gchar* _tmp223_;
- gchar** _tmp224_;
- gint _tmp224__length1;
- gchar* _tmp225_;
- gchar* _tmp226_;
- gchar** _tmp227_;
- gint _tmp227__length1;
- gchar* _tmp228_;
- gchar* _tmp229_;
- gchar** _tmp230_;
- gint _tmp230__length1;
- gchar* _tmp231_;
- gchar* _tmp232_;
- gchar** _tmp233_;
- gint _tmp233__length1;
- gchar* _tmp234_;
- gchar* _tmp235_;
- gchar** _tmp236_;
- gint _tmp236__length1;
- gchar* _tmp237_;
- gchar* _tmp238_;
- gchar** _tmp239_;
- gint _tmp239__length1;
- gchar* _tmp240_;
- gchar* _tmp241_;
- gchar** _tmp242_;
- gint _tmp242__length1;
- gchar* _tmp243_;
- gchar* _tmp244_;
- gchar** _tmp245_;
- gint _tmp245__length1;
- gchar* _tmp246_;
- gchar* _tmp247_;
- gchar** _tmp248_;
- gint _tmp248__length1;
- gchar* _tmp249_;
- gchar* _tmp250_;
- gchar** _tmp251_;
- gint _tmp251__length1;
- gchar* _tmp252_;
- gchar* _tmp253_;
- gchar** _tmp254_;
- gint _tmp254__length1;
- gchar* _tmp255_;
- gchar* _tmp256_;
- gchar** _tmp257_;
- gint _tmp257__length1;
- gchar* _tmp258_;
- gchar* _tmp259_;
- gchar** _tmp260_;
- gint _tmp260__length1;
- gchar* _tmp261_;
- gchar* _tmp262_;
- gchar** _tmp263_;
- gint _tmp263__length1;
- gchar* _tmp264_;
- gchar* _tmp265_;
- gchar** _tmp266_;
- gint _tmp266__length1;
- gchar* _tmp267_;
- gchar* _tmp268_;
- gchar** _tmp269_;
- gint _tmp269__length1;
- gchar* _tmp270_;
- gchar* _tmp271_;
- gchar** _tmp272_;
- gint _tmp272__length1;
- gchar* _tmp273_;
- gchar* _tmp274_;
- gchar** _tmp275_;
- gint _tmp275__length1;
- gchar* _tmp276_;
- gchar* _tmp277_;
- gchar** _tmp278_;
- gint _tmp278__length1;
- gchar* _tmp279_;
- gchar* _tmp280_;
- gchar** _tmp281_;
- gint _tmp281__length1;
- gchar* _tmp282_;
- gchar* _tmp283_;
- gchar** _tmp284_;
- gint _tmp284__length1;
- gchar* _tmp285_;
- gchar* _tmp286_;
- gchar** _tmp287_;
- gint _tmp287__length1;
- gchar* _tmp288_;
- gchar* _tmp289_;
- gchar** _tmp290_;
- gint _tmp290__length1;
- gchar* _tmp291_;
- gchar* _tmp292_;
- gchar** _tmp293_;
- gint _tmp293__length1;
- gchar* _tmp294_;
- gchar* _tmp295_;
- gchar** _tmp296_;
- gint _tmp296__length1;
- gchar* _tmp297_;
- gchar* _tmp298_;
- gchar** _tmp299_;
- gint _tmp299__length1;
- gchar* _tmp300_;
- gchar* _tmp301_;
- gchar** _tmp302_;
- gint _tmp302__length1;
- gchar* _tmp303_;
- gchar* _tmp304_;
- gchar** _tmp305_;
- gint _tmp305__length1;
- gchar* _tmp306_;
- gchar* _tmp307_;
- gchar** _tmp308_;
- gint _tmp308__length1;
- gchar* _tmp309_;
- gchar* _tmp310_;
- gchar** _tmp311_;
- gint _tmp311__length1;
- gchar* _tmp312_;
- gchar* _tmp313_;
- gchar** _tmp314_;
- gint _tmp314__length1;
- gchar* _tmp315_;
- gchar* _tmp316_;
- gchar** _tmp317_;
- gint _tmp317__length1;
- gchar* _tmp318_;
- gchar* _tmp319_;
- gchar** _tmp320_;
- gint _tmp320__length1;
- gchar* _tmp321_;
- gchar* _tmp322_;
- gchar** _tmp323_;
- gint _tmp323__length1;
- gchar* _tmp324_;
- gchar* _tmp325_;
- gchar** _tmp326_;
- gint _tmp326__length1;
- gchar* _tmp327_;
- gchar* _tmp328_;
- gchar** _tmp329_;
- gint _tmp329__length1;
- gchar* _tmp330_;
- gchar* _tmp331_;
- gchar** _tmp332_;
- gint _tmp332__length1;
- gchar* _tmp333_;
- gchar* _tmp334_;
- gchar** _tmp335_;
- gint _tmp335__length1;
- gchar* _tmp336_;
- gchar* _tmp337_;
- gchar** _tmp338_;
- gint _tmp338__length1;
- gchar* _tmp339_;
- gchar* _tmp340_;
- gchar** _tmp341_;
- gint _tmp341__length1;
- gchar* _tmp342_;
- gchar* _tmp343_;
- gchar** _tmp344_;
- gint _tmp344__length1;
- gchar* _tmp345_;
- gchar* _tmp346_;
- gchar** _tmp347_;
- gint _tmp347__length1;
- gchar* _tmp348_;
- gchar* _tmp349_;
- gchar** _tmp350_;
- gint _tmp350__length1;
- gchar* _tmp351_;
- gchar* _tmp352_;
- gchar** _tmp353_;
- gint _tmp353__length1;
- gchar* _tmp354_;
- gchar* _tmp355_;
- gchar** _tmp356_;
- gint _tmp356__length1;
- gchar* _tmp357_;
- gchar* _tmp358_;
- gchar** _tmp359_;
- gint _tmp359__length1;
- gchar* _tmp360_;
- gchar* _tmp361_;
- gchar** _tmp362_;
- gint _tmp362__length1;
- gchar* _tmp363_;
- gchar* _tmp364_;
- gchar** _tmp365_;
- gint _tmp365__length1;
- gchar* _tmp366_;
- gchar* _tmp367_;
- gchar** _tmp368_;
- gint _tmp368__length1;
- gchar* _tmp369_;
- gchar* _tmp370_;
- gchar** _tmp371_;
- gint _tmp371__length1;
- gchar* _tmp372_;
- gchar* _tmp373_;
- gchar** _tmp374_;
- gint _tmp374__length1;
- gchar* _tmp375_;
- gchar* _tmp376_;
- gchar** _tmp377_;
- gint _tmp377__length1;
- gchar* _tmp378_;
- gchar* _tmp379_;
- gchar** _tmp380_;
- gint _tmp380__length1;
- gchar* _tmp381_;
- gchar* _tmp382_;
- gchar** _tmp383_;
- gint _tmp383__length1;
- gchar* _tmp384_;
- gchar* _tmp385_;
- gchar** _tmp386_;
- gint _tmp386__length1;
- gchar* _tmp387_;
- gchar* _tmp388_;
- gchar** _tmp389_;
- gint _tmp389__length1;
- gchar* _tmp390_;
- gchar* _tmp391_;
- gchar** _tmp392_;
- gint _tmp392__length1;
- gchar* _tmp393_;
- gchar* _tmp394_;
- gchar** _tmp395_;
- gint _tmp395__length1;
- gchar* _tmp396_;
- gchar* _tmp397_;
- gchar** _tmp398_;
- gint _tmp398__length1;
- gchar* _tmp399_;
- gchar* _tmp400_;
- gchar** _tmp401_;
- gint _tmp401__length1;
- gchar* _tmp402_;
- gchar* _tmp403_;
- gchar** _tmp404_;
- gint _tmp404__length1;
- gchar* _tmp405_;
- gchar* _tmp406_;
- gchar** _tmp407_;
- gint _tmp407__length1;
- gchar* _tmp408_;
- gchar* _tmp409_;
- gchar** _tmp410_;
- gint _tmp410__length1;
- gchar* _tmp411_;
- gchar* _tmp412_;
- gchar** _tmp413_;
- gint _tmp413__length1;
- gchar* _tmp414_;
- gchar* _tmp415_;
- gchar** _tmp416_;
- gint _tmp416__length1;
- gchar* _tmp417_;
- gchar* _tmp418_;
- gchar** _tmp419_;
- gint _tmp419__length1;
- gchar* _tmp420_;
- gchar* _tmp421_;
- gchar** _tmp422_;
- gint _tmp422__length1;
- gchar* _tmp423_;
- gchar* _tmp424_;
- gchar** _tmp425_;
- gint _tmp425__length1;
- gchar* _tmp426_;
- gchar* _tmp427_;
-#line 29 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = (GSettingsConfigurationEngine*) g_object_new (object_type, NULL);
-#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_new0 (gchar*, CONFIGURABLE_PROPERTY_NUM_PROPERTIES + 1);
-#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->schema_names = (_vala_array_free (self->priv->schema_names, self->priv->schema_names_length1, (GDestroyNotify) g_free), NULL);
-#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->schema_names = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->schema_names_length1 = CONFIGURABLE_PROPERTY_NUM_PROPERTIES;
-#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->_schema_names_size_ = self->priv->schema_names_length1;
-#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = self->priv->schema_names;
-#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1__length1 = self->priv->schema_names_length1;
-#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME);
-#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp1_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY]);
-#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY] = _tmp2_;
-#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp1_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY];
-#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = self->priv->schema_names;
-#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4__length1 = self->priv->schema_names_length1;
-#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp4_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME]);
-#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME] = _tmp5_;
-#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = _tmp4_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME];
-#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_ = self->priv->schema_names;
-#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7__length1 = self->priv->schema_names_length1;
-#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp8_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp7_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE]);
-#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE] = _tmp8_;
-#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp9_ = _tmp7_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE];
-#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp10_ = self->priv->schema_names;
-#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp10__length1 = self->priv->schema_names_length1;
-#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp11_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp10_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR]);
-#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp10_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR] = _tmp11_;
-#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp12_ = _tmp10_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR];
-#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp13_ = self->priv->schema_names;
-#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp13__length1 = self->priv->schema_names_length1;
-#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp14_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME);
-#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp13_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS]);
-#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp13_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS] = _tmp14_;
-#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp15_ = _tmp13_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS];
-#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp16_ = self->priv->schema_names;
-#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp16__length1 = self->priv->schema_names_length1;
-#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp17_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_DESKTOP_SCHEMA_NAME);
-#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp16_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE]);
-#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp16_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE] = _tmp17_;
-#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp18_ = _tmp16_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE];
-#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp19_ = self->priv->schema_names;
-#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp19__length1 = self->priv->schema_names_length1;
-#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp20_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_DESKTOP_SCHEMA_NAME);
-#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp19_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE]);
-#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp19_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE] = _tmp20_;
-#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp21_ = _tmp19_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE];
-#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp22_ = self->priv->schema_names;
-#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp22__length1 = self->priv->schema_names_length1;
-#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp23_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_SCREENSAVER_SCHEMA_NAME);
-#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp22_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE]);
-#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp22_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE] = _tmp23_;
-#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp24_ = _tmp22_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE];
-#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp25_ = self->priv->schema_names;
-#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp25__length1 = self->priv->schema_names_length1;
-#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp26_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_SCREENSAVER_SCHEMA_NAME);
-#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp25_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE]);
-#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp25_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE] = _tmp26_;
-#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp27_ = _tmp25_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE];
-#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp28_ = self->priv->schema_names;
-#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp28__length1 = self->priv->schema_names_length1;
-#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp29_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME);
-#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp28_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN]);
-#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp28_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN] = _tmp29_;
-#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp30_ = _tmp28_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN];
-#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp31_ = self->priv->schema_names;
-#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp31__length1 = self->priv->schema_names_length1;
-#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp32_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME);
-#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp31_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM]);
-#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp31_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM] = _tmp32_;
-#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp33_ = _tmp31_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM];
-#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp34_ = self->priv->schema_names;
-#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp34__length1 = self->priv->schema_names_length1;
-#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp35_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME);
-#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp34_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT]);
-#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp34_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT] = _tmp35_;
-#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp36_ = _tmp34_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT];
-#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp37_ = self->priv->schema_names;
-#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp37__length1 = self->priv->schema_names_length1;
-#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp38_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME);
-#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp37_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE]);
-#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp37_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE] = _tmp38_;
-#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp39_ = _tmp37_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE];
-#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp40_ = self->priv->schema_names;
-#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp40__length1 = self->priv->schema_names_length1;
-#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp41_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME);
-#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp40_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH]);
-#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp40_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH] = _tmp41_;
-#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp42_ = _tmp40_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH];
-#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp43_ = self->priv->schema_names;
-#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp43__length1 = self->priv->schema_names_length1;
-#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp44_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp43_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES]);
-#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp43_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES] = _tmp44_;
-#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp45_ = _tmp43_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES];
-#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp46_ = self->priv->schema_names;
-#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp46__length1 = self->priv->schema_names_length1;
-#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp47_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp46_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES]);
-#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp46_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES] = _tmp47_;
-#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp48_ = _tmp46_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES];
-#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp49_ = self->priv->schema_names;
-#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp49__length1 = self->priv->schema_names_length1;
-#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp50_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp49_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR]);
-#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp49_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR] = _tmp50_;
-#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp51_ = _tmp49_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR];
-#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp52_ = self->priv->schema_names;
-#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp52__length1 = self->priv->schema_names_length1;
-#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp53_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp52_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR]);
-#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp52_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR] = _tmp53_;
-#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp54_ = _tmp52_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR];
-#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp55_ = self->priv->schema_names;
-#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp55__length1 = self->priv->schema_names_length1;
-#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp56_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp55_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR]);
-#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp55_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR] = _tmp56_;
-#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp57_ = _tmp55_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR];
-#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp58_ = self->priv->schema_names;
-#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp58__length1 = self->priv->schema_names_length1;
-#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp59_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp58_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS]);
-#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp58_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS] = _tmp59_;
-#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp60_ = _tmp58_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS];
-#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp61_ = self->priv->schema_names;
-#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp61__length1 = self->priv->schema_names_length1;
-#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp62_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp61_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS]);
-#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp61_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS] = _tmp62_;
-#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp63_ = _tmp61_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS];
-#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp64_ = self->priv->schema_names;
-#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp64__length1 = self->priv->schema_names_length1;
-#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp65_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp64_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES]);
-#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp64_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES] = _tmp65_;
-#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp66_ = _tmp64_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES];
-#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp67_ = self->priv->schema_names;
-#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp67__length1 = self->priv->schema_names_length1;
-#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp68_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp67_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS]);
-#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp67_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS] = _tmp68_;
-#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp69_ = _tmp67_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS];
-#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp70_ = self->priv->schema_names;
-#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp70__length1 = self->priv->schema_names_length1;
-#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp71_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp70_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS]);
-#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp70_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS] = _tmp71_;
-#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp72_ = _tmp70_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS];
-#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp73_ = self->priv->schema_names;
-#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp73__length1 = self->priv->schema_names_length1;
-#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp74_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp73_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING]);
-#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp73_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING] = _tmp74_;
-#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp75_ = _tmp73_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING];
-#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp76_ = self->priv->schema_names;
-#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp76__length1 = self->priv->schema_names_length1;
-#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp77_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp76_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY]);
-#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp76_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY] = _tmp77_;
-#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp78_ = _tmp76_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY];
-#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp79_ = self->priv->schema_names;
-#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp79__length1 = self->priv->schema_names_length1;
-#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp80_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp79_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING]);
-#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp79_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING] = _tmp80_;
-#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp81_ = _tmp79_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING];
-#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp82_ = self->priv->schema_names;
-#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp82__length1 = self->priv->schema_names_length1;
-#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp83_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME);
-#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp82_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT]);
-#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp82_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT] = _tmp83_;
-#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp84_ = _tmp82_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT];
-#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp85_ = self->priv->schema_names;
-#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp85__length1 = self->priv->schema_names_length1;
-#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp86_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME);
-#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp85_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE]);
-#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp85_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE] = _tmp86_;
-#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp87_ = _tmp85_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE];
-#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp88_ = self->priv->schema_names;
-#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp88__length1 = self->priv->schema_names_length1;
-#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp89_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME);
-#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp88_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA]);
-#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp88_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA] = _tmp89_;
-#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp90_ = _tmp88_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA];
-#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp91_ = self->priv->schema_names;
-#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp91__length1 = self->priv->schema_names_length1;
-#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp92_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME);
-#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp91_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT]);
-#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp91_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT] = _tmp92_;
-#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp93_ = _tmp91_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT];
-#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp94_ = self->priv->schema_names;
-#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp94__length1 = self->priv->schema_names_length1;
-#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp95_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME);
-#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp94_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY]);
-#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp94_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY] = _tmp95_;
-#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp96_ = _tmp94_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY];
-#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp97_ = self->priv->schema_names;
-#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp97__length1 = self->priv->schema_names_length1;
-#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp98_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME);
-#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp97_[CONFIGURABLE_PROPERTY_EXPORT_SCALE]);
-#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp97_[CONFIGURABLE_PROPERTY_EXPORT_SCALE] = _tmp98_;
-#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp99_ = _tmp97_[CONFIGURABLE_PROPERTY_EXPORT_SCALE];
-#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp100_ = self->priv->schema_names;
-#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp100__length1 = self->priv->schema_names_length1;
-#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp101_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EDITING_PREFS_SCHEMA_NAME);
-#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp100_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP]);
-#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp100_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP] = _tmp101_;
-#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp102_ = _tmp100_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP];
-#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp103_ = self->priv->schema_names;
-#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp103__length1 = self->priv->schema_names_length1;
-#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp104_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EDITING_PREFS_SCHEMA_NAME);
-#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp103_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP]);
-#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp103_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP] = _tmp104_;
-#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp105_ = _tmp103_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP];
-#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp106_ = self->priv->schema_names;
-#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp106__length1 = self->priv->schema_names_length1;
-#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp107_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp106_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED]);
-#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp106_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED] = _tmp107_;
-#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp108_ = _tmp106_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED];
-#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp109_ = self->priv->schema_names;
-#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp109__length1 = self->priv->schema_names_length1;
-#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp110_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME);
-#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp109_[CONFIGURABLE_PROPERTY_IMPORT_DIR]);
-#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp109_[CONFIGURABLE_PROPERTY_IMPORT_DIR] = _tmp110_;
-#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp111_ = _tmp109_[CONFIGURABLE_PROPERTY_IMPORT_DIR];
-#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp112_ = self->priv->schema_names;
-#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp112__length1 = self->priv->schema_names_length1;
-#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp113_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp112_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY]);
-#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp112_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY] = _tmp113_;
-#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp114_ = _tmp112_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY];
-#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp115_ = self->priv->schema_names;
-#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp115__length1 = self->priv->schema_names_length1;
-#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp116_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_CROP_SCHEMA_NAME);
-#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp115_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT]);
-#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp115_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT] = _tmp116_;
-#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp117_ = _tmp115_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT];
-#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp118_ = self->priv->schema_names;
-#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp118__length1 = self->priv->schema_names_length1;
-#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp119_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_CROP_SCHEMA_NAME);
-#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp118_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE]);
-#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp118_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE] = _tmp119_;
-#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp120_ = _tmp118_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE];
-#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp121_ = self->priv->schema_names;
-#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp121__length1 = self->priv->schema_names_length1;
-#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp122_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_CROP_SCHEMA_NAME);
-#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp121_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH]);
-#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp121_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH] = _tmp122_;
-#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp123_ = _tmp121_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH];
-#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp124_ = self->priv->schema_names;
-#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp124__length1 = self->priv->schema_names_length1;
-#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp125_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SHARING_SCHEMA_NAME);
-#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp124_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE]);
-#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp124_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE] = _tmp125_;
-#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp126_ = _tmp124_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE];
-#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp127_ = self->priv->schema_names;
-#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp127__length1 = self->priv->schema_names_length1;
-#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp128_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_IMPORTING_SCHEMA_NAME);
-#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp127_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE]);
-#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp127_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE] = _tmp128_;
-#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp129_ = _tmp127_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE];
-#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp130_ = self->priv->schema_names;
-#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp130__length1 = self->priv->schema_names_length1;
-#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp131_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp130_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING]);
-#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp130_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING] = _tmp131_;
-#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp132_ = _tmp130_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING];
-#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp133_ = self->priv->schema_names;
-#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp133__length1 = self->priv->schema_names_length1;
-#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp134_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp133_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY]);
-#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp133_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY] = _tmp134_;
-#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp135_ = _tmp133_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY];
-#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp136_ = self->priv->schema_names;
-#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp136__length1 = self->priv->schema_names_length1;
-#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp137_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME);
-#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp136_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT]);
-#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp136_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT] = _tmp137_;
-#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp138_ = _tmp136_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT];
-#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp139_ = self->priv->schema_names;
-#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp139__length1 = self->priv->schema_names_length1;
-#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp140_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME);
-#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp139_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE]);
-#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp139_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE] = _tmp140_;
-#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp141_ = _tmp139_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE];
-#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp142_ = self->priv->schema_names;
-#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp142__length1 = self->priv->schema_names_length1;
-#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp143_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME);
-#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp142_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH]);
-#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp142_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH] = _tmp143_;
-#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp144_ = _tmp142_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH];
-#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp145_ = self->priv->schema_names;
-#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp145__length1 = self->priv->schema_names_length1;
-#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp146_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp145_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS]);
-#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp145_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS] = _tmp146_;
-#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp147_ = _tmp145_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS];
-#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp148_ = self->priv->schema_names;
-#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp148__length1 = self->priv->schema_names_length1;
-#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp149_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp148_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE]);
-#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp148_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE] = _tmp149_;
-#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp150_ = _tmp148_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE];
-#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp151_ = self->priv->schema_names;
-#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp151__length1 = self->priv->schema_names_length1;
-#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp152_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp151_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE]);
-#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp151_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE] = _tmp152_;
-#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp153_ = _tmp151_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE];
-#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp154_ = self->priv->schema_names;
-#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp154__length1 = self->priv->schema_names_length1;
-#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp155_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp154_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT]);
-#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp154_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT] = _tmp155_;
-#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp156_ = _tmp154_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT];
-#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp157_ = self->priv->schema_names;
-#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp157__length1 = self->priv->schema_names_length1;
-#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp158_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp157_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT]);
-#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp157_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT] = _tmp158_;
-#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp159_ = _tmp157_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT];
-#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp160_ = self->priv->schema_names;
-#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp160__length1 = self->priv->schema_names_length1;
-#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp161_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp160_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI]);
-#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp160_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI] = _tmp161_;
-#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp162_ = _tmp160_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI];
-#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp163_ = self->priv->schema_names;
-#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp163__length1 = self->priv->schema_names_length1;
-#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp164_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp163_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS]);
-#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp163_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS] = _tmp164_;
-#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp165_ = _tmp163_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS];
-#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp166_ = self->priv->schema_names;
-#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp166__length1 = self->priv->schema_names_length1;
-#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp167_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp166_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH]);
-#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp166_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH] = _tmp167_;
-#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp168_ = _tmp166_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH];
-#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp169_ = self->priv->schema_names;
-#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp169__length1 = self->priv->schema_names_length1;
-#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp170_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp169_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE]);
-#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp169_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE] = _tmp170_;
-#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp171_ = _tmp169_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE];
-#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp172_ = self->priv->schema_names;
-#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp172__length1 = self->priv->schema_names_length1;
-#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp173_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp172_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO]);
-#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp172_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO] = _tmp173_;
-#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp174_ = _tmp172_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO];
-#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp175_ = self->priv->schema_names;
-#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp175__length1 = self->priv->schema_names_length1;
-#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp176_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp175_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES]);
-#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp175_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES] = _tmp176_;
-#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp177_ = _tmp175_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES];
-#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp178_ = self->priv->schema_names;
-#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp178__length1 = self->priv->schema_names_length1;
-#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp179_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp178_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION]);
-#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp178_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION] = _tmp179_;
-#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp180_ = _tmp178_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION];
-#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp181_ = self->priv->schema_names;
-#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp181__length1 = self->priv->schema_names_length1;
-#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp182_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME);
-#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp181_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT]);
-#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp181_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT] = _tmp182_;
-#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp183_ = _tmp181_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT];
-#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp184_ = self->priv->schema_names;
-#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp184__length1 = self->priv->schema_names_length1;
-#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp185_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME);
-#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp184_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT]);
-#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp184_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT] = _tmp185_;
-#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp186_ = _tmp184_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT];
-#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp187_ = self->priv->schema_names;
-#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp187__length1 = self->priv->schema_names_length1;
-#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp188_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp187_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG]);
-#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp187_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG] = _tmp188_;
-#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp189_ = _tmp187_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG];
-#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp190_ = self->priv->schema_names;
-#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp190__length1 = self->priv->schema_names_length1;
-#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp191_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp190_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION]);
-#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp190_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION] = _tmp191_;
-#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp192_ = _tmp190_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION];
-#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp193_ = self->priv->schema_names;
-#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp193__length1 = self->priv->schema_names_length1;
-#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp194_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME);
-#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp193_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY]);
-#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp193_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY] = _tmp194_;
-#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp195_ = _tmp193_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY];
-#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp196_ = self->priv->schema_names;
-#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp196__length1 = self->priv->schema_names_length1;
-#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp197_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME);
-#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp196_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY]);
-#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp196_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY] = _tmp197_;
-#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp198_ = _tmp196_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY];
-#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp199_ = self->priv->schema_names;
-#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp199__length1 = self->priv->schema_names_length1;
-#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp200_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME);
-#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp199_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID]);
-#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp199_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID] = _tmp200_;
-#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp201_ = _tmp199_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID];
-#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp202_ = self->priv->schema_names;
-#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp202__length1 = self->priv->schema_names_length1;
-#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp203_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME);
-#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp202_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE]);
-#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp202_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE] = _tmp203_;
-#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp204_ = _tmp202_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE];
-#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp205_ = self->priv->schema_names;
-#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp205__length1 = self->priv->schema_names_length1;
-#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp206_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME);
-#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp205_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME]);
-#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp205_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME] = _tmp206_;
-#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp207_ = _tmp205_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME];
-#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp208_ = self->priv->schema_names;
-#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp208__length1 = self->priv->schema_names_length1;
-#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp209_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME);
-#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp208_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES]);
-#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp208_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES] = _tmp209_;
-#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp210_ = _tmp208_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES];
-#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp211_ = self->priv->schema_names;
-#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp211__length1 = self->priv->schema_names_length1;
-#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp212_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_VIDEO_SCHEMA_NAME);
-#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp211_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE]);
-#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp211_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE] = _tmp212_;
-#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp213_ = _tmp211_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE];
-#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp214_ = g_new0 (gchar*, CONFIGURABLE_PROPERTY_NUM_PROPERTIES + 1);
-#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->key_names = (_vala_array_free (self->priv->key_names, self->priv->key_names_length1, (GDestroyNotify) g_free), NULL);
-#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->key_names = _tmp214_;
-#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->key_names_length1 = CONFIGURABLE_PROPERTY_NUM_PROPERTIES;
-#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->_key_names_size_ = self->priv->key_names_length1;
-#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp215_ = self->priv->key_names;
-#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp215__length1 = self->priv->key_names_length1;
-#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp216_ = g_strdup ("auto-import");
-#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp215_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY]);
-#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp215_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY] = _tmp216_;
-#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp217_ = _tmp215_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY];
-#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp218_ = self->priv->key_names;
-#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp218__length1 = self->priv->key_names_length1;
-#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp219_ = g_strdup ("background-color");
-#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp218_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME]);
-#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp218_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME] = _tmp219_;
-#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp220_ = _tmp218_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME];
-#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp221_ = self->priv->key_names;
-#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp221__length1 = self->priv->key_names_length1;
-#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp222_ = g_strdup ("transparent-background-type");
-#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp221_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE]);
-#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp221_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE] = _tmp222_;
-#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp223_ = _tmp221_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE];
-#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp224_ = self->priv->key_names;
-#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp224__length1 = self->priv->key_names_length1;
-#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp225_ = g_strdup ("transparent-background-color");
-#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp224_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR]);
-#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp224_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR] = _tmp225_;
-#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp226_ = _tmp224_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR];
-#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp227_ = self->priv->key_names;
-#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp227__length1 = self->priv->key_names_length1;
-#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp228_ = g_strdup ("commit-metadata");
-#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp227_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS]);
-#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp227_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS] = _tmp228_;
-#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp229_ = _tmp227_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS];
-#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp230_ = self->priv->key_names;
-#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp230__length1 = self->priv->key_names_length1;
-#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp231_ = g_strdup ("picture-uri");
-#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp230_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE]);
-#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp230_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE] = _tmp231_;
-#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp232_ = _tmp230_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE];
-#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp233_ = self->priv->key_names;
-#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp233__length1 = self->priv->key_names_length1;
-#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp234_ = g_strdup ("picture-options");
-#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp233_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE]);
-#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp233_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE] = _tmp234_;
-#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp235_ = _tmp233_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE];
-#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp236_ = self->priv->key_names;
-#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp236__length1 = self->priv->key_names_length1;
-#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp237_ = g_strdup ("picture-uri");
-#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp236_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE]);
-#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp236_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE] = _tmp237_;
-#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp238_ = _tmp236_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE];
-#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp239_ = self->priv->key_names;
-#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp239__length1 = self->priv->key_names_length1;
-#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp240_ = g_strdup ("picture-options");
-#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp239_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE]);
-#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp239_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE] = _tmp240_;
-#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp241_ = _tmp239_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE];
-#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp242_ = self->priv->key_names;
-#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp242__length1 = self->priv->key_names_length1;
-#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp243_ = g_strdup ("directory-pattern");
-#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp242_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN]);
-#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp242_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN] = _tmp243_;
-#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp244_ = _tmp242_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN];
-#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp245_ = self->priv->key_names;
-#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp245__length1 = self->priv->key_names_length1;
-#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp246_ = g_strdup ("directory-pattern-custom");
-#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp245_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM]);
-#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp245_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM] = _tmp246_;
-#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp247_ = _tmp245_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM];
-#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp248_ = self->priv->key_names;
-#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp248__length1 = self->priv->key_names_length1;
-#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp249_ = g_strdup ("direct-height");
-#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp248_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT]);
-#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp248_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT] = _tmp249_;
-#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp250_ = _tmp248_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT];
-#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp251_ = self->priv->key_names;
-#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp251__length1 = self->priv->key_names_length1;
-#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp252_ = g_strdup ("direct-maximize");
-#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp251_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE]);
-#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp251_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE] = _tmp252_;
-#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp253_ = _tmp251_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE];
-#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp254_ = self->priv->key_names;
-#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp254__length1 = self->priv->key_names_length1;
-#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp255_ = g_strdup ("direct-width");
-#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp254_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH]);
-#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp254_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH] = _tmp255_;
-#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp256_ = _tmp254_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH];
-#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp257_ = self->priv->key_names;
-#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp257__length1 = self->priv->key_names_length1;
-#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp258_ = g_strdup ("display-basic-properties");
-#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp257_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES]);
-#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp257_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES] = _tmp258_;
-#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp259_ = _tmp257_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES];
-#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp260_ = self->priv->key_names;
-#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp260__length1 = self->priv->key_names_length1;
-#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp261_ = g_strdup ("display-extended-properties");
-#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp260_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES]);
-#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp260_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES] = _tmp261_;
-#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp262_ = _tmp260_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES];
-#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp263_ = self->priv->key_names;
-#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp263__length1 = self->priv->key_names_length1;
-#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp264_ = g_strdup ("display-sidebar");
-#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp263_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR]);
-#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp263_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR] = _tmp264_;
-#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp265_ = _tmp263_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR];
-#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp266_ = self->priv->key_names;
-#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp266__length1 = self->priv->key_names_length1;
-#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp267_ = g_strdup ("display-toolbar");
-#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp266_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR]);
-#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp266_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR] = _tmp267_;
-#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp268_ = _tmp266_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR];
-#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp269_ = self->priv->key_names;
-#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp269__length1 = self->priv->key_names_length1;
-#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp270_ = g_strdup ("display-search-bar");
-#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp269_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR]);
-#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp269_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR] = _tmp270_;
-#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp271_ = _tmp269_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR];
-#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp272_ = self->priv->key_names;
-#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp272__length1 = self->priv->key_names_length1;
-#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp273_ = g_strdup ("display-photo-ratings");
-#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp272_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS]);
-#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp272_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS] = _tmp273_;
-#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp274_ = _tmp272_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS];
-#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp275_ = self->priv->key_names;
-#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp275__length1 = self->priv->key_names_length1;
-#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp276_ = g_strdup ("display-photo-tags");
-#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp275_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS]);
-#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp275_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS] = _tmp276_;
-#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp277_ = _tmp275_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS];
-#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp278_ = self->priv->key_names;
-#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp278__length1 = self->priv->key_names_length1;
-#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp279_ = g_strdup ("display-photo-titles");
-#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp278_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES]);
-#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp278_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES] = _tmp279_;
-#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp280_ = _tmp278_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES];
-#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp281_ = self->priv->key_names;
-#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp281__length1 = self->priv->key_names_length1;
-#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp282_ = g_strdup ("display-photo-comments");
-#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp281_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS]);
-#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp281_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS] = _tmp282_;
-#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp283_ = _tmp281_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS];
-#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp284_ = self->priv->key_names;
-#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp284__length1 = self->priv->key_names_length1;
-#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp285_ = g_strdup ("display-event-comments");
-#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp284_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS]);
-#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp284_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS] = _tmp285_;
-#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp286_ = _tmp284_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS];
-#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp287_ = self->priv->key_names;
-#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp287__length1 = self->priv->key_names_length1;
-#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp288_ = g_strdup ("event-photos-sort-ascending");
-#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp287_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING]);
-#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp287_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING] = _tmp288_;
-#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp289_ = _tmp287_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING];
-#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp290_ = self->priv->key_names;
-#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp290__length1 = self->priv->key_names_length1;
-#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp291_ = g_strdup ("event-photos-sort-by");
-#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp290_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY]);
-#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp290_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY] = _tmp291_;
-#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp292_ = _tmp290_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY];
-#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp293_ = self->priv->key_names;
-#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp293__length1 = self->priv->key_names_length1;
-#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp294_ = g_strdup ("events-sort-ascending");
-#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp293_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING]);
-#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp293_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING] = _tmp294_;
-#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp295_ = _tmp293_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING];
-#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp296_ = self->priv->key_names;
-#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp296__length1 = self->priv->key_names_length1;
-#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp297_ = g_strdup ("constraint");
-#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp296_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT]);
-#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp296_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT] = _tmp297_;
-#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp298_ = _tmp296_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT];
-#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp299_ = self->priv->key_names;
-#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp299__length1 = self->priv->key_names_length1;
-#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp300_ = g_strdup ("export-format-mode");
-#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp299_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE]);
-#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp299_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE] = _tmp300_;
-#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp301_ = _tmp299_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE];
-#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp302_ = self->priv->key_names;
-#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp302__length1 = self->priv->key_names_length1;
-#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp303_ = g_strdup ("export-metadata");
-#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp302_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA]);
-#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp302_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA] = _tmp303_;
-#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp304_ = _tmp302_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA];
-#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp305_ = self->priv->key_names;
-#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp305__length1 = self->priv->key_names_length1;
-#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp306_ = g_strdup ("photo-file-format");
-#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp305_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT]);
-#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp305_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT] = _tmp306_;
-#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp307_ = _tmp305_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT];
-#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp308_ = self->priv->key_names;
-#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp308__length1 = self->priv->key_names_length1;
-#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp309_ = g_strdup ("quality");
-#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp308_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY]);
-#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp308_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY] = _tmp309_;
-#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp310_ = _tmp308_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY];
-#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp311_ = self->priv->key_names;
-#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp311__length1 = self->priv->key_names_length1;
-#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp312_ = g_strdup ("scale");
-#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp311_[CONFIGURABLE_PROPERTY_EXPORT_SCALE]);
-#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp311_[CONFIGURABLE_PROPERTY_EXPORT_SCALE] = _tmp312_;
-#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp313_ = _tmp311_[CONFIGURABLE_PROPERTY_EXPORT_SCALE];
-#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp314_ = self->priv->key_names;
-#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp314__length1 = self->priv->key_names_length1;
-#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp315_ = g_strdup ("external-photo-editor");
-#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp314_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP]);
-#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp314_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP] = _tmp315_;
-#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp316_ = _tmp314_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP];
-#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp317_ = self->priv->key_names;
-#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp317__length1 = self->priv->key_names_length1;
-#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp318_ = g_strdup ("external-raw-editor");
-#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp317_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP]);
-#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp317_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP] = _tmp318_;
-#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp319_ = _tmp317_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP];
-#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp320_ = self->priv->key_names;
-#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp320__length1 = self->priv->key_names_length1;
-#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp321_ = g_strdup ("hide-photos-already-imported");
-#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp320_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED]);
-#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp320_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED] = _tmp321_;
-#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp322_ = _tmp320_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED];
-#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp323_ = self->priv->key_names;
-#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp323__length1 = self->priv->key_names_length1;
-#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp324_ = g_strdup ("import-dir");
-#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp323_[CONFIGURABLE_PROPERTY_IMPORT_DIR]);
-#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp323_[CONFIGURABLE_PROPERTY_IMPORT_DIR] = _tmp324_;
-#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp325_ = _tmp323_[CONFIGURABLE_PROPERTY_IMPORT_DIR];
-#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp326_ = self->priv->key_names;
-#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp326__length1 = self->priv->key_names_length1;
-#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp327_ = g_strdup ("keep-relativity");
-#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp326_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY]);
-#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp326_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY] = _tmp327_;
-#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp328_ = _tmp326_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY];
-#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp329_ = self->priv->key_names;
-#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp329__length1 = self->priv->key_names_length1;
-#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp330_ = g_strdup ("last-crop-height");
-#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp329_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT]);
-#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp329_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT] = _tmp330_;
-#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp331_ = _tmp329_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT];
-#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp332_ = self->priv->key_names;
-#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp332__length1 = self->priv->key_names_length1;
-#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp333_ = g_strdup ("last-crop-menu-choice");
-#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp332_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE]);
-#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp332_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE] = _tmp333_;
-#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp334_ = _tmp332_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE];
-#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp335_ = self->priv->key_names;
-#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp335__length1 = self->priv->key_names_length1;
-#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp336_ = g_strdup ("last-crop-width");
-#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp335_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH]);
-#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp335_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH] = _tmp336_;
-#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp337_ = _tmp335_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH];
-#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp338_ = self->priv->key_names;
-#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp338__length1 = self->priv->key_names_length1;
-#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp339_ = g_strdup ("last-used-service");
-#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp338_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE]);
-#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp338_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE] = _tmp339_;
-#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp340_ = _tmp338_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE];
-#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp341_ = self->priv->key_names;
-#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp341__length1 = self->priv->key_names_length1;
-#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp342_ = g_strdup ("last-used-dataimports-service");
-#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp341_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE]);
-#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp341_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE] = _tmp342_;
-#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp343_ = _tmp341_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE];
-#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp344_ = self->priv->key_names;
-#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp344__length1 = self->priv->key_names_length1;
-#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp345_ = g_strdup ("library-photos-sort-ascending");
-#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp344_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING]);
-#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp344_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING] = _tmp345_;
-#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp346_ = _tmp344_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING];
-#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp347_ = self->priv->key_names;
-#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp347__length1 = self->priv->key_names_length1;
-#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp348_ = g_strdup ("library-photos-sort-by");
-#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp347_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY]);
-#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp347_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY] = _tmp348_;
-#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp349_ = _tmp347_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY];
-#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp350_ = self->priv->key_names;
-#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp350__length1 = self->priv->key_names_length1;
-#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp351_ = g_strdup ("library-height");
-#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp350_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT]);
-#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp350_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT] = _tmp351_;
-#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp352_ = _tmp350_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT];
-#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp353_ = self->priv->key_names;
-#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp353__length1 = self->priv->key_names_length1;
-#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp354_ = g_strdup ("library-maximize");
-#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp353_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE]);
-#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp353_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE] = _tmp354_;
-#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp355_ = _tmp353_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE];
-#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp356_ = self->priv->key_names;
-#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp356__length1 = self->priv->key_names_length1;
-#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp357_ = g_strdup ("library-width");
-#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp356_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH]);
-#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp356_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH] = _tmp357_;
-#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp358_ = _tmp356_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH];
-#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp359_ = self->priv->key_names;
-#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp359__length1 = self->priv->key_names_length1;
-#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp360_ = g_strdup ("modify-originals");
-#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp359_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS]);
-#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp359_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS] = _tmp360_;
-#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp361_ = _tmp359_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS];
-#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp362_ = self->priv->key_names;
-#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp362__length1 = self->priv->key_names_length1;
-#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp363_ = g_strdup ("photo-thumbnail-scale");
-#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp362_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE]);
-#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp362_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE] = _tmp363_;
-#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp364_ = _tmp362_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE];
-#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp365_ = self->priv->key_names;
-#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp365__length1 = self->priv->key_names_length1;
-#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp366_ = g_strdup ("pin-toolbar-state");
-#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp365_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE]);
-#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp365_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE] = _tmp366_;
-#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp367_ = _tmp365_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE];
-#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp368_ = self->priv->key_names;
-#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp368__length1 = self->priv->key_names_length1;
-#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp369_ = g_strdup ("content-height");
-#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp368_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT]);
-#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp368_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT] = _tmp369_;
-#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp370_ = _tmp368_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT];
-#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp371_ = self->priv->key_names;
-#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp371__length1 = self->priv->key_names_length1;
-#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp372_ = g_strdup ("content-layout");
-#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp371_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT]);
-#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp371_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT] = _tmp372_;
-#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp373_ = _tmp371_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT];
-#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp374_ = self->priv->key_names;
-#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp374__length1 = self->priv->key_names_length1;
-#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp375_ = g_strdup ("content-ppi");
-#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp374_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI]);
-#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp374_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI] = _tmp375_;
-#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp376_ = _tmp374_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI];
-#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp377_ = self->priv->key_names;
-#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp377__length1 = self->priv->key_names_length1;
-#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp378_ = g_strdup ("content-units");
-#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp377_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS]);
-#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp377_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS] = _tmp378_;
-#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp379_ = _tmp377_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS];
-#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp380_ = self->priv->key_names;
-#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp380__length1 = self->priv->key_names_length1;
-#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp381_ = g_strdup ("content-width");
-#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp380_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH]);
-#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp380_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH] = _tmp381_;
-#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp382_ = _tmp380_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH];
-#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp383_ = self->priv->key_names;
-#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp383__length1 = self->priv->key_names_length1;
-#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp384_ = g_strdup ("images-per-page");
-#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp383_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE]);
-#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp383_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE] = _tmp384_;
-#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp385_ = _tmp383_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE];
-#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp386_ = self->priv->key_names;
-#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp386__length1 = self->priv->key_names_length1;
-#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp387_ = g_strdup ("match-aspect-ratio");
-#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp386_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO]);
-#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp386_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO] = _tmp387_;
-#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp388_ = _tmp386_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO];
-#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp389_ = self->priv->key_names;
-#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp389__length1 = self->priv->key_names_length1;
-#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp390_ = g_strdup ("print-titles");
-#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp389_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES]);
-#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp389_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES] = _tmp390_;
-#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp391_ = _tmp389_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES];
-#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp392_ = self->priv->key_names;
-#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp392__length1 = self->priv->key_names_length1;
-#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp393_ = g_strdup ("size-selection");
-#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp392_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION]);
-#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp392_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION] = _tmp393_;
-#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp394_ = _tmp392_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION];
-#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp395_ = self->priv->key_names;
-#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp395__length1 = self->priv->key_names_length1;
-#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp396_ = g_strdup ("titles-font");
-#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp395_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT]);
-#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp395_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT] = _tmp396_;
-#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp397_ = _tmp395_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT];
-#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp398_ = self->priv->key_names;
-#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp398__length1 = self->priv->key_names_length1;
-#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp399_ = g_strdup ("raw-developer-default");
-#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp398_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT]);
-#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp398_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT] = _tmp399_;
-#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp400_ = _tmp398_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT];
-#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp401_ = self->priv->key_names;
-#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp401__length1 = self->priv->key_names_length1;
-#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp402_ = g_strdup ("show-welcome-dialog");
-#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp401_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG]);
-#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp401_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG] = _tmp402_;
-#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp403_ = _tmp401_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG];
-#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp404_ = self->priv->key_names;
-#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp404__length1 = self->priv->key_names_length1;
-#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp405_ = g_strdup ("sidebar-position");
-#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp404_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION]);
-#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp404_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION] = _tmp405_;
-#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp406_ = _tmp404_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION];
-#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp407_ = self->priv->key_names;
-#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp407__length1 = self->priv->key_names_length1;
-#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp408_ = g_strdup ("delay");
-#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp407_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY]);
-#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp407_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY] = _tmp408_;
-#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp409_ = _tmp407_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY];
-#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp410_ = self->priv->key_names;
-#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp410__length1 = self->priv->key_names_length1;
-#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp411_ = g_strdup ("transition-delay");
-#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp410_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY]);
-#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp410_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY] = _tmp411_;
-#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp412_ = _tmp410_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY];
-#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp413_ = self->priv->key_names;
-#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp413__length1 = self->priv->key_names_length1;
-#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp414_ = g_strdup ("transition-effect-id");
-#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp413_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID]);
-#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp413_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID] = _tmp414_;
-#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp415_ = _tmp413_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID];
-#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp416_ = self->priv->key_names;
-#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp416__length1 = self->priv->key_names_length1;
-#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp417_ = g_strdup ("show-title");
-#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp416_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE]);
-#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp416_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE] = _tmp417_;
-#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp418_ = _tmp416_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE];
-#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp419_ = self->priv->key_names;
-#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp419__length1 = self->priv->key_names_length1;
-#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp420_ = g_strdup ("use-24-hour-time");
-#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp419_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME]);
-#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp419_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME] = _tmp420_;
-#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp421_ = _tmp419_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME];
-#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp422_ = self->priv->key_names;
-#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp422__length1 = self->priv->key_names_length1;
-#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp423_ = g_strdup ("use-lowercase-filenames");
-#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp422_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES]);
-#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp422_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES] = _tmp423_;
-#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp424_ = _tmp422_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES];
-#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp425_ = self->priv->key_names;
-#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp425__length1 = self->priv->key_names_length1;
-#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp426_ = g_strdup ("interpreter-state-cookie");
-#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp425_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE]);
-#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp425_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE] = _tmp426_;
-#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp427_ = _tmp425_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE];
-#line 29 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return self;
-#line 2670 "GSettingsEngine.c"
-}
-
-
-GSettingsConfigurationEngine*
-gsettings_configuration_engine_new (void)
-{
-#line 29 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return gsettings_configuration_engine_construct (TYPE_GSETTINGS_CONFIGURATION_ENGINE);
-#line 2679 "GSettingsEngine.c"
-}
-
-
-static gpointer
-_g_settings_schema_source_ref0 (gpointer self)
-{
-#line 180 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return self ? g_settings_schema_source_ref (self) : NULL;
-#line 2688 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_check_key_valid (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error)
-{
- GSettingsSchemaSource* schema_source = NULL;
- GSettingsSchemaSource* _tmp0_;
- GSettingsSchemaSource* _tmp1_;
- GSettingsSchema* settings_scheme = NULL;
- GSettingsSchemaSource* _tmp2_;
- GSettingsSchema* _tmp3_;
- GSettingsSchema* _tmp4_;
- GSettingsSchema* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self));
-#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (schema != NULL);
-#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 180 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_settings_schema_source_get_default ();
-#line 180 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _g_settings_schema_source_ref0 (_tmp0_);
-#line 180 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_source = _tmp1_;
-#line 181 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = schema_source;
-#line 181 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = g_settings_schema_source_lookup (_tmp2_, schema, TRUE);
-#line 181 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- settings_scheme = _tmp3_;
-#line 182 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = settings_scheme;
-#line 182 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_tmp4_ == NULL) {
-#line 2729 "GSettingsEngine.c"
- gchar* _tmp5_;
- gchar* _tmp6_;
- GError* _tmp7_;
- GError* _tmp8_;
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = g_strdup_printf ("schema '%s' is not installed", schema);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = _tmp5_;
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_ = g_error_new_literal (CONFIGURATION_ERROR, CONFIGURATION_ERROR_ENGINE_ERROR, _tmp6_);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp8_ = _tmp7_;
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp6_);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = _tmp8_;
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_unref0 (settings_scheme);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_source_unref0 (schema_source);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 2756 "GSettingsEngine.c"
- } else {
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_unref0 (settings_scheme);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_source_unref0 (schema_source);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 2768 "GSettingsEngine.c"
- }
- }
-#line 186 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp9_ = settings_scheme;
-#line 186 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (!g_settings_schema_has_key (_tmp9_, key)) {
-#line 2775 "GSettingsEngine.c"
- gchar* _tmp10_;
- gchar* _tmp11_;
- GError* _tmp12_;
- GError* _tmp13_;
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp10_ = g_strdup_printf ("schema '%s' does not define key '%s'", schema, key);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp11_ = _tmp10_;
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp12_ = g_error_new_literal (CONFIGURATION_ERROR, CONFIGURATION_ERROR_ENGINE_ERROR, _tmp11_);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp13_ = _tmp12_;
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp11_);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = _tmp13_;
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_unref0 (settings_scheme);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_source_unref0 (schema_source);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 2802 "GSettingsEngine.c"
- } else {
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_unref0 (settings_scheme);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_source_unref0 (schema_source);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 2814 "GSettingsEngine.c"
- }
- }
-#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_unref0 (settings_scheme);
-#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_settings_schema_source_unref0 (schema_source);
-#line 2821 "GSettingsEngine.c"
-}
-
-
-static gboolean
-gsettings_configuration_engine_get_gs_bool (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error)
-{
- gboolean result = FALSE;
- GSettings* schema_object = NULL;
- GSettings* _tmp2_;
- GSettings* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 191 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), FALSE);
-#line 191 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (schema != NULL, FALSE);
-#line 191 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, FALSE);
-#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 2848 "GSettingsEngine.c"
- gboolean _tmp0_ = FALSE;
-#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp0_;
-#line 2854 "GSettingsEngine.c"
- } else {
- gboolean _tmp1_ = FALSE;
-#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp1_;
-#line 2863 "GSettingsEngine.c"
- }
- }
-#line 194 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_settings_new (schema);
-#line 194 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp2_;
-#line 196 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = schema_object;
-#line 196 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = g_settings_get_boolean (_tmp3_, key);
-#line 196 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 196 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 2878 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_set_gs_bool (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- gboolean value,
- GError** error)
-{
- GSettings* schema_object = NULL;
- GSettings* _tmp0_;
- GSettings* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 199 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self));
-#line 199 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (schema != NULL);
-#line 199 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 2909 "GSettingsEngine.c"
- } else {
-#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 2917 "GSettingsEngine.c"
- }
- }
-#line 202 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_settings_new (schema);
-#line 202 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp0_;
-#line 204 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = schema_object;
-#line 204 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_settings_set_boolean (_tmp1_, key, value);
-#line 199 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 2930 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_set_gs_enum (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- gint value,
- GError** error)
-{
- GSettings* schema_object = NULL;
- GSettings* _tmp0_;
- GSettings* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 207 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self));
-#line 207 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (schema != NULL);
-#line 207 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 2961 "GSettingsEngine.c"
- } else {
-#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 2969 "GSettingsEngine.c"
- }
- }
-#line 210 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_settings_new (schema);
-#line 210 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp0_;
-#line 211 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = schema_object;
-#line 211 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_settings_set_enum (_tmp1_, key, value);
-#line 207 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 2982 "GSettingsEngine.c"
-}
-
-
-static gint
-gsettings_configuration_engine_get_gs_enum (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error)
-{
- gint result = 0;
- GSettings* schema_object = NULL;
- GSettings* _tmp2_;
- GSettings* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 214 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), 0);
-#line 214 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (schema != NULL, 0);
-#line 214 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, 0);
-#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3009 "GSettingsEngine.c"
- gint _tmp0_ = 0;
-#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp0_;
-#line 3015 "GSettingsEngine.c"
- } else {
- gint _tmp1_ = 0;
-#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp1_;
-#line 3024 "GSettingsEngine.c"
- }
- }
-#line 217 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_settings_new (schema);
-#line 217 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp2_;
-#line 218 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = schema_object;
-#line 218 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = g_settings_get_enum (_tmp3_, key);
-#line 218 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 218 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3039 "GSettingsEngine.c"
-}
-
-
-static gint
-gsettings_configuration_engine_get_gs_int (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error)
-{
- gint result = 0;
- GSettings* schema_object = NULL;
- GSettings* _tmp2_;
- GSettings* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 221 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), 0);
-#line 221 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (schema != NULL, 0);
-#line 221 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, 0);
-#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3066 "GSettingsEngine.c"
- gint _tmp0_ = 0;
-#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp0_;
-#line 3072 "GSettingsEngine.c"
- } else {
- gint _tmp1_ = 0;
-#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp1_;
-#line 3081 "GSettingsEngine.c"
- }
- }
-#line 224 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_settings_new (schema);
-#line 224 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp2_;
-#line 226 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = schema_object;
-#line 226 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = g_settings_get_int (_tmp3_, key);
-#line 226 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 226 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3096 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_set_gs_int (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- gint value,
- GError** error)
-{
- GSettings* schema_object = NULL;
- GSettings* _tmp0_;
- GSettings* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 229 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self));
-#line 229 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (schema != NULL);
-#line 229 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3127 "GSettingsEngine.c"
- } else {
-#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3135 "GSettingsEngine.c"
- }
- }
-#line 232 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_settings_new (schema);
-#line 232 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp0_;
-#line 234 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = schema_object;
-#line 234 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_settings_set_int (_tmp1_, key, value);
-#line 229 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 3148 "GSettingsEngine.c"
-}
-
-
-static gdouble
-gsettings_configuration_engine_get_gs_double (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error)
-{
- gdouble result = 0.0;
- GSettings* schema_object = NULL;
- GSettings* _tmp2_;
- GSettings* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 237 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), 0.0);
-#line 237 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (schema != NULL, 0.0);
-#line 237 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, 0.0);
-#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3175 "GSettingsEngine.c"
- gdouble _tmp0_ = 0.0;
-#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp0_;
-#line 3181 "GSettingsEngine.c"
- } else {
- gdouble _tmp1_ = 0.0;
-#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp1_;
-#line 3190 "GSettingsEngine.c"
- }
- }
-#line 240 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_settings_new (schema);
-#line 240 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp2_;
-#line 242 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = schema_object;
-#line 242 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = g_settings_get_double (_tmp3_, key);
-#line 242 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 242 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3205 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_set_gs_double (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- gdouble value,
- GError** error)
-{
- GSettings* schema_object = NULL;
- GSettings* _tmp0_;
- GSettings* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 245 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self));
-#line 245 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (schema != NULL);
-#line 245 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3236 "GSettingsEngine.c"
- } else {
-#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3244 "GSettingsEngine.c"
- }
- }
-#line 248 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_settings_new (schema);
-#line 248 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp0_;
-#line 250 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = schema_object;
-#line 250 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_settings_set_double (_tmp1_, key, value);
-#line 245 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 3257 "GSettingsEngine.c"
-}
-
-
-static gchar*
-gsettings_configuration_engine_get_gs_string (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error)
-{
- gchar* result = NULL;
- GSettings* schema_object = NULL;
- GSettings* _tmp0_;
- GSettings* _tmp1_;
- gchar* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 253 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), NULL);
-#line 253 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (schema != NULL, NULL);
-#line 253 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, NULL);
-#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return NULL;
-#line 3289 "GSettingsEngine.c"
- } else {
-#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return NULL;
-#line 3297 "GSettingsEngine.c"
- }
- }
-#line 256 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_settings_new (schema);
-#line 256 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp0_;
-#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = schema_object;
-#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_settings_get_string (_tmp1_, key);
-#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp2_;
-#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3314 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_set_gs_string (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- const gchar* value,
- GError** error)
-{
- GSettings* schema_object = NULL;
- GSettings* _tmp0_;
- GSettings* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self));
-#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (schema != NULL);
-#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (value != NULL);
-#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3347 "GSettingsEngine.c"
- } else {
-#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3355 "GSettingsEngine.c"
- }
- }
-#line 264 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_settings_new (schema);
-#line 264 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp0_;
-#line 266 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = schema_object;
-#line 266 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_settings_set_string (_tmp1_, key, value);
-#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 3368 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_reset_gs_to_default (GSettingsConfigurationEngine* self,
- const gchar* schema,
- const gchar* key,
- GError** error)
-{
- GSettings* schema_object = NULL;
- GSettings* _tmp0_;
- GSettings* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 269 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self));
-#line 269 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (schema != NULL);
-#line 269 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_);
-#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3398 "GSettingsEngine.c"
- } else {
-#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3406 "GSettingsEngine.c"
- }
- }
-#line 272 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_settings_new (schema);
-#line 272 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_object = _tmp0_;
-#line 274 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = schema_object;
-#line 274 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_settings_reset (_tmp1_, key);
-#line 269 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (schema_object);
-#line 3419 "GSettingsEngine.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 3442 "GSettingsEngine.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 3446 "GSettingsEngine.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 3452 "GSettingsEngine.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 3456 "GSettingsEngine.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 3460 "GSettingsEngine.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3468 "GSettingsEngine.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 3496 "GSettingsEngine.c"
- goto __catch217_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 3505 "GSettingsEngine.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 3519 "GSettingsEngine.c"
- goto __catch217_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 3530 "GSettingsEngine.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3544 "GSettingsEngine.c"
- }
- goto __finally217;
- __catch217_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 3558 "GSettingsEngine.c"
- }
- __finally217:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 3569 "GSettingsEngine.c"
- }
-}
-
-
-static gchar*
-string_strip (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strstrip (_tmp1_);
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3595 "GSettingsEngine.c"
-}
-
-
-static gchar*
-gsettings_configuration_engine_clean_plugin_id (const gchar* id)
-{
- gchar* result = NULL;
- gchar* cleaned = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_ = NULL;
- const gchar* _tmp4_;
- gchar* _tmp6_;
-#line 277 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 278 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = string_replace (id, "/", "-");
-#line 278 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned = _tmp0_;
-#line 279 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = cleaned;
-#line 279 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = string_strip (_tmp1_);
-#line 279 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cleaned);
-#line 279 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned = _tmp2_;
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = cleaned;
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (!is_string_empty (_tmp4_)) {
-#line 3628 "GSettingsEngine.c"
- const gchar* _tmp5_;
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = cleaned;
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp5_;
-#line 3634 "GSettingsEngine.c"
- } else {
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = NULL;
-#line 3638 "GSettingsEngine.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = g_strdup (_tmp3_);
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp6_;
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cleaned);
-#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3648 "GSettingsEngine.c"
-}
-
-
-static gchar*
-gsettings_configuration_engine_get_plugin_enable_disable_name (const gchar* id)
-{
- gchar* result = NULL;
- gchar* cleaned_id = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 284 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 285 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_clean_plugin_id (id);
-#line 285 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned_id = _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = cleaned_id;
-#line 286 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_tmp1_ == NULL) {
-#line 3673 "GSettingsEngine.c"
- gchar* _tmp2_;
-#line 287 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_strdup ("default");
-#line 287 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cleaned_id);
-#line 287 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned_id = _tmp2_;
-#line 3681 "GSettingsEngine.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = cleaned_id;
-#line 289 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = string_replace (_tmp3_, "org.yorba.shotwell.", "");
-#line 289 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cleaned_id);
-#line 289 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned_id = _tmp4_;
-#line 290 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = cleaned_id;
-#line 290 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = string_replace (_tmp5_, ".", "-");
-#line 290 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cleaned_id);
-#line 290 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned_id = _tmp6_;
-#line 292 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = cleaned_id;
-#line 292 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3703 "GSettingsEngine.c"
-}
-
-
-static gchar*
-gsettings_configuration_engine_make_plugin_schema_name (const gchar* domain,
- const gchar* id)
-{
- gchar* result = NULL;
- gchar* cleaned_id = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 295 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (domain != NULL, NULL);
-#line 295 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 296 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_clean_plugin_id (id);
-#line 296 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned_id = _tmp0_;
-#line 297 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = cleaned_id;
-#line 297 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_tmp1_ == NULL) {
-#line 3731 "GSettingsEngine.c"
- gchar* _tmp2_;
-#line 298 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_strdup ("default");
-#line 298 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cleaned_id);
-#line 298 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned_id = _tmp2_;
-#line 3739 "GSettingsEngine.c"
- }
-#line 299 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = cleaned_id;
-#line 299 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = string_replace (_tmp3_, ".", "-");
-#line 299 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cleaned_id);
-#line 299 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cleaned_id = _tmp4_;
-#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = cleaned_id;
-#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = g_strdup_printf ("org.yorba.shotwell.%s.%s", domain, _tmp5_);
-#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp6_;
-#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cleaned_id);
-#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3759 "GSettingsEngine.c"
-}
-
-
-static gchar*
-gsettings_configuration_engine_make_gsettings_key (const gchar* gconf_key)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 304 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (gconf_key != NULL, NULL);
-#line 305 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = string_replace (gconf_key, "_", "-");
-#line 305 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp0_;
-#line 305 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3776 "GSettingsEngine.c"
-}
-
-
-static gchar*
-gsettings_configuration_engine_real_get_name (ConfigurationEngine* base)
-{
- GSettingsConfigurationEngine * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 308 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 309 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_strdup ("GSettings");
-#line 309 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp0_;
-#line 309 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3794 "GSettingsEngine.c"
-}
-
-
-static gint
-gsettings_configuration_engine_real_get_enum_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gint result = 0;
- gint _tmp0_ = 0;
- gchar** _tmp1_;
- gint _tmp1__length1;
- const gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- const gchar* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 312 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = self->priv->schema_names;
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1__length1 = self->priv->schema_names_length1;
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_[p];
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = self->priv->key_names;
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3__length1 = self->priv->key_names_length1;
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_[p];
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_get_gs_enum (self, _tmp2_, _tmp4_, &_inner_error_);
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3833 "GSettingsEngine.c"
- gint _tmp5_ = 0;
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp5_;
-#line 3839 "GSettingsEngine.c"
- } else {
- gint _tmp6_ = 0;
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp6_;
-#line 3848 "GSettingsEngine.c"
- }
- }
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp0_;
-#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3855 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_enum_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- gint val,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- const gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 316 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = self->priv->schema_names;
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0__length1 = self->priv->schema_names_length1;
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp0_[p];
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = self->priv->key_names;
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2__length1 = self->priv->key_names_length1;
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_[p];
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_enum (self, _tmp1_, _tmp3_, val, &_inner_error_);
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3897 "GSettingsEngine.c"
- } else {
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 3905 "GSettingsEngine.c"
- }
- }
-#line 318 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p);
-#line 3910 "GSettingsEngine.c"
-}
-
-
-static gint
-gsettings_configuration_engine_real_get_int_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gint result = 0;
- gint _tmp0_ = 0;
- gchar** _tmp1_;
- gint _tmp1__length1;
- const gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- const gchar* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 321 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = self->priv->schema_names;
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1__length1 = self->priv->schema_names_length1;
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_[p];
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = self->priv->key_names;
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3__length1 = self->priv->key_names_length1;
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_[p];
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_get_gs_int (self, _tmp2_, _tmp4_, &_inner_error_);
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 3949 "GSettingsEngine.c"
- gint _tmp5_ = 0;
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp5_;
-#line 3955 "GSettingsEngine.c"
- } else {
- gint _tmp6_ = 0;
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp6_;
-#line 3964 "GSettingsEngine.c"
- }
- }
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp0_;
-#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 3971 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_int_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- gint val,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- const gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 325 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = self->priv->schema_names;
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0__length1 = self->priv->schema_names_length1;
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp0_[p];
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = self->priv->key_names;
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2__length1 = self->priv->key_names_length1;
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_[p];
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_int (self, _tmp1_, _tmp3_, val, &_inner_error_);
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4013 "GSettingsEngine.c"
- } else {
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4021 "GSettingsEngine.c"
- }
- }
-#line 327 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p);
-#line 4026 "GSettingsEngine.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4050 "GSettingsEngine.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4059 "GSettingsEngine.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 4080 "GSettingsEngine.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 4084 "GSettingsEngine.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 4090 "GSettingsEngine.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 4100 "GSettingsEngine.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 4104 "GSettingsEngine.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 4112 "GSettingsEngine.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 4119 "GSettingsEngine.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 4123 "GSettingsEngine.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 4129 "GSettingsEngine.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 4141 "GSettingsEngine.c"
-}
-
-
-static gchar*
-gsettings_configuration_engine_real_get_string_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gchar* result = NULL;
- gchar* gs_result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _result_ = NULL;
- gchar* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 330 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = self->priv->schema_names;
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0__length1 = self->priv->schema_names_length1;
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp0_[p];
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = self->priv->key_names;
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2__length1 = self->priv->key_names_length1;
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_[p];
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = gsettings_configuration_engine_get_gs_string (self, _tmp1_, _tmp3_, &_inner_error_);
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gs_result = _tmp4_;
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return NULL;
-#line 4189 "GSettingsEngine.c"
- } else {
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return NULL;
-#line 4197 "GSettingsEngine.c"
- }
- }
-#line 335 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = g_strdup (gs_result);
-#line 335 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _result_ = _tmp5_;
-#line 336 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (p == CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE) {
-#line 4206 "GSettingsEngine.c"
- gchar* _tmp6_;
-#line 337 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = string_substring (gs_result, (glong) 7, (glong) -1);
-#line 337 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_result_);
-#line 337 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _result_ = _tmp6_;
-#line 4214 "GSettingsEngine.c"
- }
-#line 340 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _result_;
-#line 340 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (gs_result);
-#line 340 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 4222 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_string_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- const gchar* val,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gchar* converted_val = NULL;
- gchar* _tmp0_;
- gboolean _tmp1_ = FALSE;
- gchar** _tmp3_;
- gint _tmp3__length1;
- const gchar* _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- GError * _inner_error_ = NULL;
-#line 343 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 343 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (val != NULL);
-#line 345 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = g_strdup (val);
-#line 345 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- converted_val = _tmp0_;
-#line 346 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (p == CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE) {
-#line 346 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = TRUE;
-#line 4256 "GSettingsEngine.c"
- } else {
-#line 347 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = p == CONFIGURABLE_PROPERTY_SCREENSAVER_FILE;
-#line 4260 "GSettingsEngine.c"
- }
-#line 346 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_tmp1_) {
-#line 4264 "GSettingsEngine.c"
- gchar* _tmp2_;
-#line 348 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_strconcat ("file://", val, NULL);
-#line 348 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (converted_val);
-#line 348 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- converted_val = _tmp2_;
-#line 4272 "GSettingsEngine.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = self->priv->schema_names;
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3__length1 = self->priv->schema_names_length1;
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_[p];
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = self->priv->key_names;
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5__length1 = self->priv->key_names_length1;
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = _tmp5_[p];
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_ = converted_val;
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_string (self, _tmp4_, _tmp6_, _tmp7_, &_inner_error_);
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (converted_val);
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4300 "GSettingsEngine.c"
- } else {
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (converted_val);
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4310 "GSettingsEngine.c"
- }
- }
-#line 352 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p);
-#line 343 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (converted_val);
-#line 4317 "GSettingsEngine.c"
-}
-
-
-static gboolean
-gsettings_configuration_engine_real_get_bool_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gchar** _tmp1_;
- gint _tmp1__length1;
- const gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- const gchar* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 355 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = self->priv->schema_names;
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1__length1 = self->priv->schema_names_length1;
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_[p];
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = self->priv->key_names;
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3__length1 = self->priv->key_names_length1;
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_[p];
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_get_gs_bool (self, _tmp2_, _tmp4_, &_inner_error_);
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4356 "GSettingsEngine.c"
- gboolean _tmp5_ = FALSE;
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp5_;
-#line 4362 "GSettingsEngine.c"
- } else {
- gboolean _tmp6_ = FALSE;
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp6_;
-#line 4371 "GSettingsEngine.c"
- }
- }
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp0_;
-#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 4378 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_bool_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- gboolean val,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- const gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 359 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = self->priv->schema_names;
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0__length1 = self->priv->schema_names_length1;
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp0_[p];
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = self->priv->key_names;
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2__length1 = self->priv->key_names_length1;
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_[p];
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_bool (self, _tmp1_, _tmp3_, val, &_inner_error_);
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4420 "GSettingsEngine.c"
- } else {
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4428 "GSettingsEngine.c"
- }
- }
-#line 361 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p);
-#line 4433 "GSettingsEngine.c"
-}
-
-
-static gdouble
-gsettings_configuration_engine_real_get_double_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gdouble result = 0.0;
- gdouble _tmp0_ = 0.0;
- gchar** _tmp1_;
- gint _tmp1__length1;
- const gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- const gchar* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 364 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = self->priv->schema_names;
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1__length1 = self->priv->schema_names_length1;
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_[p];
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = self->priv->key_names;
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3__length1 = self->priv->key_names_length1;
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_[p];
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_get_gs_double (self, _tmp2_, _tmp4_, &_inner_error_);
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4472 "GSettingsEngine.c"
- gdouble _tmp5_ = 0.0;
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp5_;
-#line 4478 "GSettingsEngine.c"
- } else {
- gdouble _tmp6_ = 0.0;
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp6_;
-#line 4487 "GSettingsEngine.c"
- }
- }
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp0_;
-#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 4494 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_double_property (ConfigurationEngine* base,
- ConfigurableProperty p,
- gdouble val,
- GError** error)
-{
- GSettingsConfigurationEngine * self;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- const gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 368 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = self->priv->schema_names;
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0__length1 = self->priv->schema_names_length1;
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp0_[p];
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = self->priv->key_names;
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2__length1 = self->priv->key_names_length1;
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_[p];
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_double (self, _tmp1_, _tmp3_, val, &_inner_error_);
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_propagate_error (error, _inner_error_);
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4536 "GSettingsEngine.c"
- } else {
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4544 "GSettingsEngine.c"
- }
- }
-#line 370 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p);
-#line 4549 "GSettingsEngine.c"
-}
-
-
-static gboolean
-gsettings_configuration_engine_real_get_plugin_bool (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def)
-{
- GSettingsConfigurationEngine * self;
- gboolean result = FALSE;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- gboolean _tmp8_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (domain != NULL, FALSE);
-#line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (id != NULL, FALSE);
-#line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, FALSE);
-#line 374 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 374 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 4578 "GSettingsEngine.c"
- {
- gboolean _tmp1_ = FALSE;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_;
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = gsettings_configuration_engine_get_gs_bool (self, schema_name, _tmp3_, &_inner_error_);
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp3_);
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp4_;
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4596 "GSettingsEngine.c"
- gboolean _tmp5_ = FALSE;
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4600 "GSettingsEngine.c"
- goto __catch218_configuration_error;
- }
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp5_;
-#line 4611 "GSettingsEngine.c"
- }
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp1_;
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 4619 "GSettingsEngine.c"
- }
- goto __finally218;
- __catch218_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 379 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = err;
-#line 379 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_ = _tmp6_->message;
-#line 379 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:379: GSettingsConfigurationEngine: error: %s", _tmp7_);
-#line 380 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = def;
-#line 380 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 380 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 380 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 4645 "GSettingsEngine.c"
- }
- __finally218:
-#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp8_;
-#line 4656 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_plugin_bool (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val)
-{
- GSettingsConfigurationEngine * self;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (domain != NULL);
-#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (id != NULL);
-#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 385 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 385 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 4683 "GSettingsEngine.c"
- {
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_;
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_bool (self, schema_name, _tmp2_, val, &_inner_error_);
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp2_);
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4699 "GSettingsEngine.c"
- goto __catch219_configuration_error;
- }
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4710 "GSettingsEngine.c"
- }
- }
- goto __finally219;
- __catch219_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 390 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = err;
-#line 390 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_->message;
-#line 390 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:390: GSettingsConfigurationEngine: error: %s", _tmp4_);
-#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 4731 "GSettingsEngine.c"
- }
- __finally219:
-#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4744 "GSettingsEngine.c"
- }
-#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 4748 "GSettingsEngine.c"
-}
-
-
-static gdouble
-gsettings_configuration_engine_real_get_plugin_double (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def)
-{
- GSettingsConfigurationEngine * self;
- gdouble result = 0.0;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- gdouble _tmp8_ = 0.0;
- GError * _inner_error_ = NULL;
-#line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (domain != NULL, 0.0);
-#line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (id != NULL, 0.0);
-#line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, 0.0);
-#line 395 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 395 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 4777 "GSettingsEngine.c"
- {
- gdouble _tmp1_ = 0.0;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gdouble _tmp4_;
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_;
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = gsettings_configuration_engine_get_gs_double (self, schema_name, _tmp3_, &_inner_error_);
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp3_);
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp4_;
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4795 "GSettingsEngine.c"
- gdouble _tmp5_ = 0.0;
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4799 "GSettingsEngine.c"
- goto __catch220_configuration_error;
- }
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp5_;
-#line 4810 "GSettingsEngine.c"
- }
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp1_;
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 4818 "GSettingsEngine.c"
- }
- goto __finally220;
- __catch220_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 400 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = err;
-#line 400 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_ = _tmp6_->message;
-#line 400 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:400: GSettingsConfigurationEngine: error: %s", _tmp7_);
-#line 401 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = def;
-#line 401 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 401 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 401 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 4844 "GSettingsEngine.c"
- }
- __finally220:
-#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp8_;
-#line 4855 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_plugin_double (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val)
-{
- GSettingsConfigurationEngine * self;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (domain != NULL);
-#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (id != NULL);
-#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 406 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 406 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 4882 "GSettingsEngine.c"
- {
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_;
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_double (self, schema_name, _tmp2_, val, &_inner_error_);
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp2_);
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4898 "GSettingsEngine.c"
- goto __catch221_configuration_error;
- }
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4909 "GSettingsEngine.c"
- }
- }
- goto __finally221;
- __catch221_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 411 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = err;
-#line 411 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_->message;
-#line 411 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:411: GSettingsConfigurationEngine: error: %s", _tmp4_);
-#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 4930 "GSettingsEngine.c"
- }
- __finally221:
-#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 4943 "GSettingsEngine.c"
- }
-#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 4947 "GSettingsEngine.c"
-}
-
-
-static gint
-gsettings_configuration_engine_real_get_plugin_int (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def)
-{
- GSettingsConfigurationEngine * self;
- gint result = 0;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- gint _tmp8_ = 0;
- GError * _inner_error_ = NULL;
-#line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (domain != NULL, 0);
-#line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (id != NULL, 0);
-#line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, 0);
-#line 416 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 416 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 4976 "GSettingsEngine.c"
- {
- gint _tmp1_ = 0;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gint _tmp4_;
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_;
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = gsettings_configuration_engine_get_gs_int (self, schema_name, _tmp3_, &_inner_error_);
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp3_);
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp4_;
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4994 "GSettingsEngine.c"
- gint _tmp5_ = 0;
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 4998 "GSettingsEngine.c"
- goto __catch222_configuration_error;
- }
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp5_;
-#line 5009 "GSettingsEngine.c"
- }
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp1_;
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 5017 "GSettingsEngine.c"
- }
- goto __finally222;
- __catch222_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 421 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = err;
-#line 421 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_ = _tmp6_->message;
-#line 421 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:421: GSettingsConfigurationEngine: error: %s", _tmp7_);
-#line 422 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = def;
-#line 422 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 422 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 422 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 5043 "GSettingsEngine.c"
- }
- __finally222:
-#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return _tmp8_;
-#line 5054 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_plugin_int (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val)
-{
- GSettingsConfigurationEngine * self;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (domain != NULL);
-#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (id != NULL);
-#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 427 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 427 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 5081 "GSettingsEngine.c"
- {
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_;
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_int (self, schema_name, _tmp2_, val, &_inner_error_);
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp2_);
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5097 "GSettingsEngine.c"
- goto __catch223_configuration_error;
- }
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5108 "GSettingsEngine.c"
- }
- }
- goto __finally223;
- __catch223_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 432 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = err;
-#line 432 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_->message;
-#line 432 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:432: GSettingsConfigurationEngine: error: %s", _tmp4_);
-#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 5129 "GSettingsEngine.c"
- }
- __finally223:
-#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5142 "GSettingsEngine.c"
- }
-#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 5146 "GSettingsEngine.c"
-}
-
-
-static gchar*
-gsettings_configuration_engine_real_get_plugin_string (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def)
-{
- GSettingsConfigurationEngine * self;
- gchar* result = NULL;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (domain != NULL, NULL);
-#line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (key != NULL, NULL);
-#line 437 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 437 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 5174 "GSettingsEngine.c"
- {
- gchar* _tmp1_ = NULL;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_;
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = gsettings_configuration_engine_get_gs_string (self, schema_name, _tmp3_, &_inner_error_);
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = _tmp4_;
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp3_);
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp5_;
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5198 "GSettingsEngine.c"
- goto __catch224_configuration_error;
- }
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return NULL;
-#line 5209 "GSettingsEngine.c"
- }
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = _tmp1_;
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = NULL;
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp6_;
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp1_);
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 5223 "GSettingsEngine.c"
- }
- goto __finally224;
- __catch224_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 442 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_ = err;
-#line 442 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp8_ = _tmp7_->message;
-#line 442 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:442: GSettingsConfigurationEngine: error: %s", _tmp8_);
-#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp9_ = g_strdup (def);
-#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp9_;
-#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 5252 "GSettingsEngine.c"
- }
- __finally224:
-#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return NULL;
-#line 5263 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_plugin_string (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val)
-{
- GSettingsConfigurationEngine * self;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (domain != NULL);
-#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (id != NULL);
-#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 448 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 448 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 5290 "GSettingsEngine.c"
- {
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_;
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_string (self, schema_name, _tmp2_, val, &_inner_error_);
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp2_);
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5306 "GSettingsEngine.c"
- goto __catch225_configuration_error;
- }
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5317 "GSettingsEngine.c"
- }
- }
- goto __finally225;
- __catch225_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 453 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = err;
-#line 453 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_->message;
-#line 453 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:453: GSettingsConfigurationEngine: error: %s", _tmp4_);
-#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 5338 "GSettingsEngine.c"
- }
- __finally225:
-#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5351 "GSettingsEngine.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 5355 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_unset_plugin_key (ConfigurationEngine* base,
- const gchar* domain,
- const gchar* id,
- const gchar* key)
-{
- GSettingsConfigurationEngine * self;
- gchar* schema_name = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (domain != NULL);
-#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (id != NULL);
-#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (key != NULL);
-#line 458 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id);
-#line 458 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- schema_name = _tmp0_;
-#line 5381 "GSettingsEngine.c"
- {
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key);
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_;
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_reset_gs_to_default (self, schema_name, _tmp2_, &_inner_error_);
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp2_);
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5397 "GSettingsEngine.c"
- goto __catch226_configuration_error;
- }
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5408 "GSettingsEngine.c"
- }
- }
- goto __finally226;
- __catch226_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 463 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = err;
-#line 463 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_->message;
-#line 463 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:463: GSettingsConfigurationEngine: error: %s", _tmp4_);
-#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 5429 "GSettingsEngine.c"
- }
- __finally226:
-#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5442 "GSettingsEngine.c"
- }
-#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (schema_name);
-#line 5446 "GSettingsEngine.c"
-}
-
-
-static FuzzyPropertyState
-gsettings_configuration_engine_real_is_plugin_enabled (ConfigurationEngine* base,
- const gchar* id)
-{
- GSettingsConfigurationEngine * self;
- FuzzyPropertyState result = 0;
- gchar* enable_disable_name = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 467 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 467 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_val_if_fail (id != NULL, 0);
-#line 468 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_get_plugin_enable_disable_name (id);
-#line 468 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- enable_disable_name = _tmp0_;
-#line 5467 "GSettingsEngine.c"
- {
- FuzzyPropertyState _tmp1_ = 0;
- gboolean _tmp2_ = FALSE;
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = gsettings_configuration_engine_get_gs_bool (self, GSETTINGS_CONFIGURATION_ENGINE_PLUGINS_ENABLE_DISABLE_SCHEMA_NAME, enable_disable_name, &_inner_error_);
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5477 "GSettingsEngine.c"
- goto __catch227_configuration_error;
- }
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (enable_disable_name);
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return 0;
-#line 5488 "GSettingsEngine.c"
- }
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_tmp2_) {
-#line 472 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = FUZZY_PROPERTY_STATE_ENABLED;
-#line 5494 "GSettingsEngine.c"
- } else {
-#line 472 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = FUZZY_PROPERTY_STATE_DISABLED;
-#line 5498 "GSettingsEngine.c"
- }
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = _tmp1_;
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (enable_disable_name);
-#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 5506 "GSettingsEngine.c"
- }
- goto __finally227;
- __catch227_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 474 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = err;
-#line 474 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = _tmp3_->message;
-#line 474 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:474: GSettingsConfigurationEngine: error: %s", _tmp4_);
-#line 475 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- result = FUZZY_PROPERTY_STATE_UNKNOWN;
-#line 475 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 475 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (enable_disable_name);
-#line 475 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return result;
-#line 5532 "GSettingsEngine.c"
- }
- __finally227:
-#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (enable_disable_name);
-#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return 0;
-#line 5543 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_real_set_plugin_enabled (ConfigurationEngine* base,
- const gchar* id,
- gboolean enabled)
-{
- GSettingsConfigurationEngine * self;
- gchar* enable_disable_name = NULL;
- gchar* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 479 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 479 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_return_if_fail (id != NULL);
-#line 480 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = gsettings_configuration_engine_get_plugin_enable_disable_name (id);
-#line 480 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- enable_disable_name = _tmp0_;
-#line 5564 "GSettingsEngine.c"
- {
-#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_set_gs_bool (self, GSETTINGS_CONFIGURATION_ENGINE_PLUGINS_ENABLE_DISABLE_SCHEMA_NAME, enable_disable_name, enabled, &_inner_error_);
-#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (_inner_error_->domain == CONFIGURATION_ERROR) {
-#line 5572 "GSettingsEngine.c"
- goto __catch228_configuration_error;
- }
-#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (enable_disable_name);
-#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5583 "GSettingsEngine.c"
- }
- }
- goto __finally228;
- __catch228_configuration_error:
- {
- GError* err = NULL;
- GError* _tmp1_;
- const gchar* _tmp2_;
-#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 485 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = err;
-#line 485 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = _tmp1_->message;
-#line 485 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_critical ("GSettingsEngine.vala:485: GSettingsConfigurationEngine: error: %s", _tmp2_);
-#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 5604 "GSettingsEngine.c"
- }
- __finally228:
-#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (enable_disable_name);
-#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5617 "GSettingsEngine.c"
- }
-#line 479 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (enable_disable_name);
-#line 5621 "GSettingsEngine.c"
-}
-
-
-void
-gsettings_configuration_engine_run_gsettings_migrator (void)
-{
- gchar* cmd_line = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp0_ = app_dirs_get_settings_migrator_bin ();
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp1_ = _tmp0_;
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp3_ = _tmp2_;
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp4_ = g_strconcat ("sh ", _tmp3_, NULL);
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp5_ = _tmp4_;
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (_tmp3_);
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_object_unref0 (_tmp1_);
-#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- cmd_line = _tmp5_;
-#line 5654 "GSettingsEngine.c"
- {
-#line 497 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_spawn_command_line_sync (cmd_line, NULL, NULL, NULL, &_inner_error_);
-#line 497 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5660 "GSettingsEngine.c"
- goto __catch229_g_error;
- }
- }
- goto __finally229;
- __catch229_g_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- err = _inner_error_;
-#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _inner_error_ = NULL;
-#line 499 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp6_ = err;
-#line 499 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _tmp7_ = _tmp6_->message;
-#line 499 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_message ("GSettingsEngine.vala:499: Error running shotwell-settings-migrator: %s", _tmp7_);
-#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_error_free0 (err);
-#line 5682 "GSettingsEngine.c"
- }
- __finally229:
-#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cmd_line);
-#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.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 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_clear_error (&_inner_error_);
-#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- return;
-#line 5695 "GSettingsEngine.c"
- }
-#line 493 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- _g_free0 (cmd_line);
-#line 5699 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_class_init (GSettingsConfigurationEngineClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- g_type_class_add_private (klass, sizeof (GSettingsConfigurationEnginePrivate));
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- G_OBJECT_CLASS (klass)->finalize = gsettings_configuration_engine_finalize;
-#line 5712 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_configuration_engine_interface_init (ConfigurationEngineIface * iface)
-{
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- gsettings_configuration_engine_configuration_engine_parent_iface = g_type_interface_peek_parent (iface);
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_name = (gchar* (*) (ConfigurationEngine *)) gsettings_configuration_engine_real_get_name;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_enum_property = (gint (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_enum_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_enum_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, gint, GError**)) gsettings_configuration_engine_real_set_enum_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_int_property = (gint (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_int_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_int_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, gint, GError**)) gsettings_configuration_engine_real_set_int_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_string_property = (gchar* (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_string_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_string_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, const gchar*, GError**)) gsettings_configuration_engine_real_set_string_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_bool_property = (gboolean (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_bool_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_bool_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, gboolean, GError**)) gsettings_configuration_engine_real_set_bool_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_double_property = (gdouble (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_double_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_double_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, gdouble, GError**)) gsettings_configuration_engine_real_set_double_property;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_plugin_bool = (gboolean (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gboolean)) gsettings_configuration_engine_real_get_plugin_bool;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_plugin_bool = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gboolean)) gsettings_configuration_engine_real_set_plugin_bool;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_plugin_double = (gdouble (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gdouble)) gsettings_configuration_engine_real_get_plugin_double;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_plugin_double = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gdouble)) gsettings_configuration_engine_real_set_plugin_double;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_plugin_int = (gint (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gint)) gsettings_configuration_engine_real_get_plugin_int;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_plugin_int = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gint)) gsettings_configuration_engine_real_set_plugin_int;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->get_plugin_string = (gchar* (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, const gchar*)) gsettings_configuration_engine_real_get_plugin_string;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_plugin_string = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, const gchar*)) gsettings_configuration_engine_real_set_plugin_string;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->unset_plugin_key = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*)) gsettings_configuration_engine_real_unset_plugin_key;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->is_plugin_enabled = (FuzzyPropertyState (*) (ConfigurationEngine *, const gchar*)) gsettings_configuration_engine_real_is_plugin_enabled;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- iface->set_plugin_enabled = (void (*) (ConfigurationEngine *, const gchar*, gboolean)) gsettings_configuration_engine_real_set_plugin_enabled;
-#line 5765 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_instance_init (GSettingsConfigurationEngine * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv = GSETTINGS_CONFIGURATION_ENGINE_GET_PRIVATE (self);
-#line 5774 "GSettingsEngine.c"
-}
-
-
-static void
-gsettings_configuration_engine_finalize (GObject * obj)
-{
- GSettingsConfigurationEngine * self;
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine);
-#line 26 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->schema_names = (_vala_array_free (self->priv->schema_names, self->priv->schema_names_length1, (GDestroyNotify) g_free), NULL);
-#line 27 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- self->priv->key_names = (_vala_array_free (self->priv->key_names, self->priv->key_names_length1, (GDestroyNotify) g_free), NULL);
-#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala"
- G_OBJECT_CLASS (gsettings_configuration_engine_parent_class)->finalize (obj);
-#line 5790 "GSettingsEngine.c"
-}
-
-
-GType
-gsettings_configuration_engine_get_type (void)
-{
- static volatile gsize gsettings_configuration_engine_type_id__volatile = 0;
- if (g_once_init_enter (&gsettings_configuration_engine_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (GSettingsConfigurationEngineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gsettings_configuration_engine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GSettingsConfigurationEngine), 0, (GInstanceInitFunc) gsettings_configuration_engine_instance_init, NULL };
- static const GInterfaceInfo configuration_engine_info = { (GInterfaceInitFunc) gsettings_configuration_engine_configuration_engine_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType gsettings_configuration_engine_type_id;
- gsettings_configuration_engine_type_id = g_type_register_static (G_TYPE_OBJECT, "GSettingsConfigurationEngine", &g_define_type_info, 0);
- g_type_add_interface_static (gsettings_configuration_engine_type_id, TYPE_CONFIGURATION_ENGINE, &configuration_engine_info);
- g_once_init_leave (&gsettings_configuration_engine_type_id__volatile, gsettings_configuration_engine_type_id);
- }
- return gsettings_configuration_engine_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/config/GSettingsEngine.vala b/src/config/GSettingsEngine.vala
index 89116a7..a3d4e04 100644
--- a/src/config/GSettingsEngine.vala
+++ b/src/config/GSettingsEngine.vala
@@ -25,12 +25,13 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private string[] schema_names;
private string[] key_names;
+ private Gee.HashMap<string, Settings> settings_cache = new Gee.HashMap<string, Settings>();
public GSettingsConfigurationEngine() {
schema_names = new string[ConfigurableProperty.NUM_PROPERTIES];
schema_names[ConfigurableProperty.AUTO_IMPORT_FROM_LIBRARY] = FILES_PREFS_SCHEMA_NAME;
- schema_names[ConfigurableProperty.BG_COLOR_NAME] = UI_PREFS_SCHEMA_NAME;
+ schema_names[ConfigurableProperty.GTK_THEME_VARIANT] = UI_PREFS_SCHEMA_NAME;
schema_names[ConfigurableProperty.TRANSPARENT_BACKGROUND_TYPE] = UI_PREFS_SCHEMA_NAME;
schema_names[ConfigurableProperty.TRANSPARENT_BACKGROUND_COLOR] = UI_PREFS_SCHEMA_NAME;
schema_names[ConfigurableProperty.COMMIT_METADATA_TO_MASTERS] = FILES_PREFS_SCHEMA_NAME;
@@ -104,7 +105,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
key_names = new string[ConfigurableProperty.NUM_PROPERTIES];
key_names[ConfigurableProperty.AUTO_IMPORT_FROM_LIBRARY] = "auto-import";
- key_names[ConfigurableProperty.BG_COLOR_NAME] = "background-color";
+ key_names[ConfigurableProperty.GTK_THEME_VARIANT] = "use-dark-theme";
key_names[ConfigurableProperty.TRANSPARENT_BACKGROUND_TYPE] = "transparent-background-type";
key_names[ConfigurableProperty.TRANSPARENT_BACKGROUND_COLOR] = "transparent-background-color";
key_names[ConfigurableProperty.COMMIT_METADATA_TO_MASTERS] = "commit-metadata";
@@ -176,6 +177,14 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
key_names[ConfigurableProperty.VIDEO_INTERPRETER_STATE_COOKIE] = "interpreter-state-cookie";
}
+ private Settings get_settings(string schema) {
+ if (!this.settings_cache.has_key(schema)) {
+ this.settings_cache[schema] = new Settings(schema);
+ }
+
+ return this.settings_cache[schema];
+ }
+
private void check_key_valid(string schema, string key) throws ConfigurationError {
var schema_source = SettingsSchemaSource.get_default ();
var settings_scheme = schema_source.lookup (schema, true);
@@ -191,7 +200,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private bool get_gs_bool(string schema, string key) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
return schema_object.get_boolean(key);
}
@@ -199,7 +208,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private void set_gs_bool(string schema, string key, bool value) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
schema_object.set_boolean(key, value);
}
@@ -207,21 +216,21 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private void set_gs_enum (string schema, string key, int value) throws ConfigurationError {
check_key_valid (schema, key);
- var schema_object = new Settings (schema);
+ var schema_object = get_settings (schema);
schema_object.set_enum (key, value);
}
private int get_gs_enum (string schema, string key) throws ConfigurationError {
check_key_valid (schema, key);
- var schema_object = new Settings (schema);
+ var schema_object = get_settings (schema);
return schema_object.get_enum (key);
}
private int get_gs_int(string schema, string key) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
return schema_object.get_int(key);
}
@@ -229,7 +238,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private void set_gs_int(string schema, string key, int value) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
schema_object.set_int(key, value);
}
@@ -237,7 +246,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private double get_gs_double(string schema, string key) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
return schema_object.get_double(key);
}
@@ -245,7 +254,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private void set_gs_double(string schema, string key, double value) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
schema_object.set_double(key, value);
}
@@ -253,7 +262,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private string get_gs_string(string schema, string key) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
return schema_object.get_string(key);
}
@@ -261,7 +270,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private void set_gs_string(string schema, string key, string value) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
schema_object.set_string(key, value);
}
@@ -269,7 +278,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
private void reset_gs_to_default(string schema, string key) throws ConfigurationError {
check_key_valid(schema, key);
- Settings schema_object = new Settings(schema);
+ Settings schema_object = get_settings(schema);
schema_object.reset(key);
}
diff --git a/src/core/Alteration.c b/src/core/Alteration.c
deleted file mode 100644
index a6d9ad0..0000000
--- a/src/core/Alteration.c
+++ /dev/null
@@ -1,2817 +0,0 @@
-/* Alteration.c generated by valac 0.40.4, the Vala compiler
- * generated from Alteration.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/**/
-/* Alteration represents a description of what has changed in the DataObject (reported via the*/
-/* "altered" signal). Since the descriptions can vary wildly depending on the semantics of each*/
-/* DataObject, no assumptions or requirements are placed on Alteration other than it must have*/
-/* one or more "subjects", each with a "detail". Subscribers to the "altered" signal can query*/
-/* the Alteration object to determine if the change is important to them.*/
-/**/
-/* Alteration is an immutable type. This means it's possible to store const Alterations of oft-used*/
-/* values for reuse.*/
-/**/
-/* Alterations may be compressed, merging their subjects and details into a new aggregated*/
-/* Alteration. Generally this is handled automatically by DataObject and DataCollection, when*/
-/* necessary.*/
-/**/
-/* NOTE: subjects and details should be ASCII labels (as in, plain-old ASCII, no code pages).*/
-/* They are treated as case-sensitive strings.*/
-/**/
-/* Recommended subjects include: image, thumbnail, metadata.*/
-/**/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-typedef struct _AlterationPrivate AlterationPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecAlteration ParamSpecAlteration;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Alteration {
- GTypeInstance parent_instance;
- volatile int ref_count;
- AlterationPrivate * priv;
-};
-
-struct _AlterationClass {
- GTypeClass parent_class;
- void (*finalize) (Alteration *self);
-};
-
-struct _AlterationPrivate {
- gchar* subject;
- gchar* detail;
- GeeMultiMap* map;
-};
-
-struct _ParamSpecAlteration {
- GParamSpec parent_instance;
-};
-
-
-static gpointer alteration_parent_class = NULL;
-
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-#define ALTERATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ALTERATION, AlterationPrivate))
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-static void alteration_add_detail (Alteration* self,
- const gchar* sub,
- const gchar* det);
-Alteration* alteration_new_from_list (const gchar* list);
-Alteration* alteration_construct_from_list (GType object_type,
- const gchar* list);
-Alteration* alteration_new_from_array (gchar** array,
- int array_length1);
-Alteration* alteration_construct_from_array (GType object_type,
- gchar** array,
- int array_length1);
-static Alteration* alteration_new_from_map (GeeMultiMap* map);
-static Alteration* alteration_construct_from_map (GType object_type,
- GeeMultiMap* map);
-static GeeMultiMap* alteration_create_map (Alteration* self);
-static guint alteration_case_hash (const gchar* a);
-static guint _alteration_case_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-static gboolean alteration_case_equal (const gchar* a,
- const gchar* b);
-static gboolean _alteration_case_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-static inline gboolean alteration_equal_values (const gchar* str1,
- const gchar* str2);
-static inline guint alteration_hash_value (const gchar* str);
-gboolean alteration_has_subject (Alteration* self,
- const gchar* subject);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-GeeCollection* alteration_get_details (Alteration* self,
- const gchar* subject);
-gchar* alteration_to_string (Alteration* self);
-gboolean alteration_contains_any (Alteration* self,
- Alteration* other);
-gboolean alteration_equals (Alteration* self,
- Alteration* other);
-static void alteration_multimap_add_all (GeeMultiMap* dest,
- GeeMultiMap* src);
-Alteration* alteration_compress (Alteration* self,
- Alteration* other);
-static void alteration_finalize (Alteration * 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 gint _vala_array_length (gpointer array);
-
-
-Alteration*
-alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail)
-{
- Alteration* self = NULL;
-#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (subject != NULL, NULL);
-#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (detail != NULL, NULL);
-#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self = (Alteration*) g_type_create_instance (object_type);
-#line 33 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_add_detail (self, subject, detail);
-#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return self;
-#line 168 "Alteration.c"
-}
-
-
-Alteration*
-alteration_new (const gchar* subject,
- const gchar* detail)
-{
-#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return alteration_construct (TYPE_ALTERATION, subject, detail);
-#line 178 "Alteration.c"
-}
-
-
-Alteration*
-alteration_construct_from_list (GType object_type,
- const gchar* list)
-{
- Alteration* self = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gchar** pairs = NULL;
- gchar** _tmp2_;
- gchar** _tmp3_;
- gint pairs_length1;
- gint _pairs_size_;
- gchar** _tmp4_;
- gint _tmp4__length1;
- gchar** _tmp5_;
- gint _tmp5__length1;
-#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (list != NULL, NULL);
-#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self = (Alteration*) g_type_create_instance (object_type);
-#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = strlen (list);
-#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_return_val_if_fail (_tmp1_ > 0, "list.length > 0", NULL);
-#line 39 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = _tmp2_ = g_strsplit (list, ",", 0);
-#line 39 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pairs = _tmp3_;
-#line 39 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pairs_length1 = _vala_array_length (_tmp2_);
-#line 39 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _pairs_size_ = pairs_length1;
-#line 40 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = pairs;
-#line 40 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4__length1 = pairs_length1;
-#line 40 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp4__length1 >= 1, "pairs.length >= 1");
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = pairs;
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5__length1 = pairs_length1;
-#line 226 "Alteration.c"
- {
- gchar** pair_collection = NULL;
- gint pair_collection_length1 = 0;
- gint _pair_collection_size_ = 0;
- gint pair_it = 0;
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pair_collection = _tmp5_;
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pair_collection_length1 = _tmp5__length1;
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- for (pair_it = 0; pair_it < _tmp5__length1; pair_it = pair_it + 1) {
-#line 238 "Alteration.c"
- gchar* _tmp6_;
- gchar* pair = NULL;
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = g_strdup (pair_collection[pair_it]);
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pair = _tmp6_;
-#line 245 "Alteration.c"
- {
- gchar** subject_detail = NULL;
- const gchar* _tmp7_;
- gchar** _tmp8_;
- gchar** _tmp9_;
- gint subject_detail_length1;
- gint _subject_detail_size_;
- gchar** _tmp10_;
- gint _tmp10__length1;
- gchar** _tmp11_;
- gint _tmp11__length1;
- const gchar* _tmp12_;
- gchar** _tmp13_;
- gint _tmp13__length1;
- const gchar* _tmp14_;
-#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = pair;
-#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = _tmp8_ = g_strsplit (_tmp7_, ":", 2);
-#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- subject_detail = _tmp9_;
-#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- subject_detail_length1 = _vala_array_length (_tmp8_);
-#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _subject_detail_size_ = subject_detail_length1;
-#line 44 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = subject_detail;
-#line 44 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10__length1 = subject_detail_length1;
-#line 44 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp10__length1 == 2, "subject_detail.length == 2");
-#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = subject_detail;
-#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11__length1 = subject_detail_length1;
-#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = _tmp11_[0];
-#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = subject_detail;
-#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13__length1 = subject_detail_length1;
-#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp14_ = _tmp13_[1];
-#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_add_detail (self, _tmp12_, _tmp14_);
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- subject_detail = (_vala_array_free (subject_detail, subject_detail_length1, (GDestroyNotify) g_free), NULL);
-#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (pair);
-#line 295 "Alteration.c"
- }
- }
- }
-#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pairs = (_vala_array_free (pairs, pairs_length1, (GDestroyNotify) g_free), NULL);
-#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return self;
-#line 303 "Alteration.c"
-}
-
-
-Alteration*
-alteration_new_from_list (const gchar* list)
-{
-#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return alteration_construct_from_list (TYPE_ALTERATION, list);
-#line 312 "Alteration.c"
-}
-
-
-Alteration*
-alteration_construct_from_array (GType object_type,
- gchar** array,
- int array_length1)
-{
- Alteration* self = NULL;
-#line 52 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self = (Alteration*) g_type_create_instance (object_type);
-#line 52 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_return_val_if_fail (array_length1 > 0, "array.length > 0", NULL);
-#line 326 "Alteration.c"
- {
- gchar** pair_collection = NULL;
- gint pair_collection_length1 = 0;
- gint _pair_collection_size_ = 0;
- gint pair_it = 0;
-#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pair_collection = array;
-#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pair_collection_length1 = array_length1;
-#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- for (pair_it = 0; pair_it < array_length1; pair_it = pair_it + 1) {
-#line 338 "Alteration.c"
- gchar* _tmp0_;
- gchar* pair = NULL;
-#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = g_strdup (pair_collection[pair_it]);
-#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- pair = _tmp0_;
-#line 345 "Alteration.c"
- {
- gchar** subject_detail = NULL;
- const gchar* _tmp1_;
- gchar** _tmp2_;
- gchar** _tmp3_;
- gint subject_detail_length1;
- gint _subject_detail_size_;
- gchar** _tmp4_;
- gint _tmp4__length1;
- gchar** _tmp5_;
- gint _tmp5__length1;
- const gchar* _tmp6_;
- gchar** _tmp7_;
- gint _tmp7__length1;
- const gchar* _tmp8_;
-#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = pair;
-#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = _tmp2_ = g_strsplit (_tmp1_, ":", 2);
-#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- subject_detail = _tmp3_;
-#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- subject_detail_length1 = _vala_array_length (_tmp2_);
-#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _subject_detail_size_ = subject_detail_length1;
-#line 55 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = subject_detail;
-#line 55 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4__length1 = subject_detail_length1;
-#line 55 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp4__length1 == 2, "subject_detail.length == 2");
-#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = subject_detail;
-#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5__length1 = subject_detail_length1;
-#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = _tmp5_[0];
-#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = subject_detail;
-#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7__length1 = subject_detail_length1;
-#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = _tmp7_[1];
-#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_add_detail (self, _tmp6_, _tmp8_);
-#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- subject_detail = (_vala_array_free (subject_detail, subject_detail_length1, (GDestroyNotify) g_free), NULL);
-#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (pair);
-#line 395 "Alteration.c"
- }
- }
- }
-#line 52 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return self;
-#line 401 "Alteration.c"
-}
-
-
-Alteration*
-alteration_new_from_array (gchar** array,
- int array_length1)
-{
-#line 52 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return alteration_construct_from_array (TYPE_ALTERATION, array, array_length1);
-#line 411 "Alteration.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 63 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return self ? g_object_ref (self) : NULL;
-#line 420 "Alteration.c"
-}
-
-
-static Alteration*
-alteration_construct_from_map (GType object_type,
- GeeMultiMap* map)
-{
- Alteration* self = NULL;
- GeeMultiMap* _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (GEE_IS_MULTI_MAP (map), NULL);
-#line 62 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self = (Alteration*) g_type_create_instance (object_type);
-#line 63 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = _g_object_ref0 (map);
-#line 63 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (self->priv->map);
-#line 63 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->map = _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return self;
-#line 442 "Alteration.c"
-}
-
-
-static Alteration*
-alteration_new_from_map (GeeMultiMap* map)
-{
-#line 62 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return alteration_construct_from_map (TYPE_ALTERATION, map);
-#line 451 "Alteration.c"
-}
-
-
-static gchar*
-string_strip (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strstrip (_tmp1_);
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 476 "Alteration.c"
-}
-
-
-static void
-alteration_add_detail (Alteration* self,
- const gchar* sub,
- const gchar* det)
-{
- gchar* subject = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gchar* detail = NULL;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gboolean _tmp8_ = FALSE;
- const gchar* _tmp9_;
- GeeMultiMap* _tmp16_;
- const gchar* _tmp18_;
- GeeMultiMap* _tmp23_;
- const gchar* _tmp24_;
- const gchar* _tmp25_;
-#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (IS_ALTERATION (self));
-#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (sub != NULL);
-#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (det != NULL);
-#line 68 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = string_strip (sub);
-#line 68 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- subject = _tmp0_;
-#line 69 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = subject;
-#line 69 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = strlen (_tmp1_);
-#line 69 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = _tmp2_;
-#line 69 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp3_ > 0, "subject.length > 0");
-#line 71 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = string_strip (det);
-#line 71 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- detail = _tmp4_;
-#line 72 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = detail;
-#line 72 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = strlen (_tmp5_);
-#line 72 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = _tmp6_;
-#line 72 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp7_ > 0, "detail.length > 0");
-#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = self->priv->subject;
-#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp9_ == NULL) {
-#line 536 "Alteration.c"
- GeeMultiMap* _tmp10_;
-#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = self->priv->map;
-#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = _tmp10_ == NULL;
-#line 542 "Alteration.c"
- } else {
-#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = FALSE;
-#line 546 "Alteration.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp8_) {
-#line 550 "Alteration.c"
- const gchar* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
-#line 76 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = self->priv->detail;
-#line 76 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp11_ == NULL, "this.detail == null");
-#line 78 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = subject;
-#line 78 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 78 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (self->priv->subject);
-#line 78 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->subject = _tmp13_;
-#line 79 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp14_ = detail;
-#line 79 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp15_ = g_strdup (_tmp14_);
-#line 79 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (self->priv->detail);
-#line 79 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->detail = _tmp15_;
-#line 81 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (detail);
-#line 81 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (subject);
-#line 81 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return;
-#line 582 "Alteration.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp16_ = self->priv->map;
-#line 85 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp16_ == NULL) {
-#line 588 "Alteration.c"
- GeeMultiMap* _tmp17_;
-#line 86 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp17_ = alteration_create_map (self);
-#line 86 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (self->priv->map);
-#line 86 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->map = _tmp17_;
-#line 596 "Alteration.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp18_ = self->priv->subject;
-#line 89 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp18_ != NULL) {
-#line 602 "Alteration.c"
- const gchar* _tmp19_;
- GeeMultiMap* _tmp20_;
- const gchar* _tmp21_;
- const gchar* _tmp22_;
-#line 90 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp19_ = self->priv->detail;
-#line 90 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp19_ != NULL, "this.detail != null");
-#line 92 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp20_ = self->priv->map;
-#line 92 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp21_ = self->priv->subject;
-#line 92 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp22_ = self->priv->detail;
-#line 92 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- gee_multi_map_set (_tmp20_, _tmp21_, _tmp22_);
-#line 93 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (self->priv->subject);
-#line 93 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->subject = NULL;
-#line 94 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (self->priv->detail);
-#line 94 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->detail = NULL;
-#line 627 "Alteration.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp23_ = self->priv->map;
-#line 98 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp24_ = subject;
-#line 98 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp25_ = detail;
-#line 98 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- gee_multi_map_set (_tmp23_, _tmp24_, _tmp25_);
-#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (detail);
-#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (subject);
-#line 641 "Alteration.c"
-}
-
-
-static guint
-_alteration_case_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = alteration_case_hash ((const gchar*) v);
-#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 653 "Alteration.c"
-}
-
-
-static gboolean
-_alteration_case_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = alteration_case_equal ((const gchar*) a, (const gchar*) b);
-#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 666 "Alteration.c"
-}
-
-
-static GeeMultiMap*
-alteration_create_map (Alteration* self)
-{
- GeeMultiMap* result = NULL;
- GeeHashMultiMap* _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (self), NULL);
-#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _alteration_case_hash_gee_hash_data_func, NULL, NULL, _alteration_case_equal_gee_equal_data_func, NULL, NULL, _alteration_case_hash_gee_hash_data_func, NULL, NULL, _alteration_case_equal_gee_equal_data_func, NULL, NULL);
-#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
-#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 683 "Alteration.c"
-}
-
-
-static gboolean
-alteration_case_equal (const gchar* a,
- const gchar* b)
-{
- gboolean result = FALSE;
-#line 106 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = alteration_equal_values (a, b);
-#line 106 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 696 "Alteration.c"
-}
-
-
-static guint
-alteration_case_hash (const gchar* a)
-{
- guint result = 0U;
-#line 110 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = alteration_hash_value (a);
-#line 110 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 708 "Alteration.c"
-}
-
-
-static inline gboolean
-alteration_equal_values (const gchar* str1,
- const gchar* str2)
-{
- gboolean result = FALSE;
-#line 113 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (str1 != NULL, FALSE);
-#line 113 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (str2 != NULL, FALSE);
-#line 114 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = g_ascii_strcasecmp (str1, str2) == 0;
-#line 114 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 725 "Alteration.c"
-}
-
-
-static inline guint
-alteration_hash_value (const gchar* str)
-{
- guint result = 0U;
- GHashFunc _tmp0_;
-#line 117 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (str != NULL, 0U);
-#line 118 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = g_str_hash;
-#line 118 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp0_ (str);
-#line 118 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 742 "Alteration.c"
-}
-
-
-gboolean
-alteration_has_subject (Alteration* self,
- const gchar* subject)
-{
- gboolean result = FALSE;
- const gchar* _tmp0_;
- GeeMultiMap* _tmp2_;
- GeeSet* keys = NULL;
- GeeMultiMap* _tmp3_;
- GeeSet* _tmp4_;
- GeeSet* _tmp5_;
-#line 121 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (self), FALSE);
-#line 121 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (subject != NULL, FALSE);
-#line 122 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = self->priv->subject;
-#line 122 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp0_ != NULL) {
-#line 765 "Alteration.c"
- const gchar* _tmp1_;
-#line 123 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = self->priv->subject;
-#line 123 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = alteration_equal_values (_tmp1_, subject);
-#line 123 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 773 "Alteration.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = self->priv->map;
-#line 125 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp2_ != NULL, "map != null");
-#line 126 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = self->priv->map;
-#line 126 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = gee_multi_map_get_keys (_tmp3_);
-#line 126 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- keys = _tmp4_;
-#line 127 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = keys;
-#line 127 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp5_ != NULL) {
-#line 789 "Alteration.c"
- {
- GeeIterator* _key_it = NULL;
- GeeSet* _tmp6_;
- GeeIterator* _tmp7_;
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = keys;
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _key_it = _tmp7_;
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 802 "Alteration.c"
- GeeIterator* _tmp8_;
- gchar* key = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- const gchar* _tmp11_;
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = _key_it;
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 814 "Alteration.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = _key_it;
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- key = (gchar*) _tmp10_;
-#line 129 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = key;
-#line 129 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (alteration_equal_values (_tmp11_, subject)) {
-#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = TRUE;
-#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (key);
-#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_key_it);
-#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 836 "Alteration.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (key);
-#line 840 "Alteration.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_key_it);
-#line 844 "Alteration.c"
- }
- }
-#line 134 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 134 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 134 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 853 "Alteration.c"
-}
-
-
-gboolean
-alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- const gchar* _tmp1_;
- GeeMultiMap* _tmp6_;
- GeeCollection* values = NULL;
- GeeMultiMap* _tmp7_;
- GeeCollection* _tmp8_;
- GeeCollection* _tmp9_;
-#line 137 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (self), FALSE);
-#line 137 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (subject != NULL, FALSE);
-#line 137 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (detail != NULL, FALSE);
-#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = self->priv->subject;
-#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp1_ != NULL) {
-#line 880 "Alteration.c"
- const gchar* _tmp2_;
-#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = self->priv->detail;
-#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = _tmp2_ != NULL;
-#line 886 "Alteration.c"
- } else {
-#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = FALSE;
-#line 890 "Alteration.c"
- }
-#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp0_) {
-#line 894 "Alteration.c"
- gboolean _tmp3_ = FALSE;
- const gchar* _tmp4_;
-#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = self->priv->subject;
-#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (alteration_equal_values (_tmp4_, subject)) {
-#line 901 "Alteration.c"
- const gchar* _tmp5_;
-#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = self->priv->detail;
-#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = alteration_equal_values (_tmp5_, detail);
-#line 907 "Alteration.c"
- } else {
-#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = FALSE;
-#line 911 "Alteration.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp3_;
-#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 917 "Alteration.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = self->priv->map;
-#line 141 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp6_ != NULL, "map != null");
-#line 142 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = self->priv->map;
-#line 142 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = gee_multi_map_get (_tmp7_, subject);
-#line 142 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- values = _tmp8_;
-#line 143 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = values;
-#line 143 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp9_ != NULL) {
-#line 933 "Alteration.c"
- {
- GeeIterator* _value_it = NULL;
- GeeCollection* _tmp10_;
- GeeIterator* _tmp11_;
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = values;
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _value_it = _tmp11_;
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 946 "Alteration.c"
- GeeIterator* _tmp12_;
- gchar* value = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- const gchar* _tmp15_;
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = _value_it;
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 958 "Alteration.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = _value_it;
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value = (gchar*) _tmp14_;
-#line 145 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp15_ = value;
-#line 145 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (alteration_equal_values (_tmp15_, detail)) {
-#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = TRUE;
-#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (value);
-#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_value_it);
-#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (values);
-#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 980 "Alteration.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (value);
-#line 984 "Alteration.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_value_it);
-#line 988 "Alteration.c"
- }
- }
-#line 150 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 150 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (values);
-#line 150 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 997 "Alteration.c"
-}
-
-
-GeeCollection*
-alteration_get_details (Alteration* self,
- const gchar* subject)
-{
- GeeCollection* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- const gchar* _tmp2_;
- GeeCollection* _tmp8_ = NULL;
- GeeMultiMap* _tmp9_;
-#line 153 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (self), NULL);
-#line 153 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (subject != NULL, NULL);
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = self->priv->subject;
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp2_ != NULL) {
-#line 1019 "Alteration.c"
- const gchar* _tmp3_;
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = self->priv->detail;
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = _tmp3_ != NULL;
-#line 1025 "Alteration.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = FALSE;
-#line 1029 "Alteration.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp1_) {
-#line 1033 "Alteration.c"
- const gchar* _tmp4_;
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = self->priv->subject;
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = alteration_equal_values (_tmp4_, subject);
-#line 1039 "Alteration.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = FALSE;
-#line 1043 "Alteration.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp0_) {
-#line 1047 "Alteration.c"
- GeeArrayList* details = NULL;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
- const gchar* _tmp7_;
-#line 155 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 155 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- details = _tmp5_;
-#line 156 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = details;
-#line 156 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = self->priv->detail;
-#line 156 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_);
-#line 158 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (details, GEE_TYPE_COLLECTION, GeeCollection);
-#line 158 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1066 "Alteration.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = self->priv->map;
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp9_ != NULL) {
-#line 1072 "Alteration.c"
- GeeMultiMap* _tmp10_;
- GeeCollection* _tmp11_;
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = self->priv->map;
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = gee_multi_map_get (_tmp10_, subject);
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_tmp8_);
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = _tmp11_;
-#line 1083 "Alteration.c"
- } else {
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_tmp8_);
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = NULL;
-#line 1089 "Alteration.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp8_;
-#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1095 "Alteration.c"
-}
-
-
-gchar*
-alteration_to_string (Alteration* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- GeeMultiMap* _tmp5_;
- gchar* str = NULL;
- gchar* _tmp6_;
-#line 164 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (self), NULL);
-#line 165 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = self->priv->subject;
-#line 165 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp0_ != NULL) {
-#line 1113 "Alteration.c"
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 166 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = self->priv->detail;
-#line 166 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp1_ != NULL, "detail != null");
-#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = self->priv->subject;
-#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = self->priv->detail;
-#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = g_strdup_printf ("%s:%s", _tmp2_, _tmp3_);
-#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp4_;
-#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1132 "Alteration.c"
- }
-#line 171 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = self->priv->map;
-#line 171 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp5_ != NULL, "map != null");
-#line 173 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = g_strdup ("");
-#line 173 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- str = _tmp6_;
-#line 1142 "Alteration.c"
- {
- GeeIterator* _key_it = NULL;
- GeeMultiMap* _tmp7_;
- GeeSet* _tmp8_;
- GeeSet* _tmp9_;
- GeeIterator* _tmp10_;
- GeeIterator* _tmp11_;
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = self->priv->map;
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = gee_multi_map_get_keys (_tmp7_);
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = _tmp8_;
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = _tmp10_;
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_tmp9_);
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _key_it = _tmp11_;
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 1166 "Alteration.c"
- GeeIterator* _tmp12_;
- gchar* key = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = _key_it;
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 1177 "Alteration.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = _key_it;
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- key = (gchar*) _tmp14_;
-#line 1185 "Alteration.c"
- {
- GeeIterator* _value_it = NULL;
- GeeMultiMap* _tmp15_;
- const gchar* _tmp16_;
- GeeCollection* _tmp17_;
- GeeCollection* _tmp18_;
- GeeIterator* _tmp19_;
- GeeIterator* _tmp20_;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp15_ = self->priv->map;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp16_ = key;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp17_ = gee_multi_map_get (_tmp15_, _tmp16_);
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp18_ = _tmp17_;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp19_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp20_ = _tmp19_;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_tmp18_);
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _value_it = _tmp20_;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 1212 "Alteration.c"
- GeeIterator* _tmp21_;
- gchar* value = NULL;
- GeeIterator* _tmp22_;
- gpointer _tmp23_;
- const gchar* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- const gchar* _tmp29_;
- const gchar* _tmp30_;
- const gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp21_ = _value_it;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp21_)) {
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 1232 "Alteration.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp22_ = _value_it;
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp23_ = gee_iterator_get (_tmp22_);
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value = (gchar*) _tmp23_;
-#line 176 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp24_ = str;
-#line 176 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp25_ = strlen (_tmp24_);
-#line 176 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp26_ = _tmp25_;
-#line 176 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp26_ != 0) {
-#line 1248 "Alteration.c"
- const gchar* _tmp27_;
- gchar* _tmp28_;
-#line 177 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp27_ = str;
-#line 177 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp28_ = g_strconcat (_tmp27_, ", ", NULL);
-#line 177 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (str);
-#line 177 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- str = _tmp28_;
-#line 1259 "Alteration.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp29_ = str;
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp30_ = key;
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp31_ = value;
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp32_ = g_strdup_printf ("%s:%s", _tmp30_, _tmp31_);
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp33_ = _tmp32_;
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp34_ = g_strconcat (_tmp29_, _tmp33_, NULL);
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (str);
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- str = _tmp34_;
-#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (_tmp33_);
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (value);
-#line 1281 "Alteration.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_value_it);
-#line 1285 "Alteration.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (key);
-#line 1289 "Alteration.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_key_it);
-#line 1293 "Alteration.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = str;
-#line 183 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1299 "Alteration.c"
-}
-
-
-gboolean
-alteration_contains_any (Alteration* self,
- Alteration* other)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- const gchar* _tmp3_;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_ = FALSE;
- GeeMultiMap* _tmp14_;
- gboolean _tmp42_ = FALSE;
- GeeMultiMap* _tmp43_;
-#line 187 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (self), FALSE);
-#line 187 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (other), FALSE);
-#line 189 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (self == other) {
-#line 190 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = TRUE;
-#line 190 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1327 "Alteration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = self->priv->subject;
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp3_ != NULL) {
-#line 1333 "Alteration.c"
- const gchar* _tmp4_;
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = other->priv->subject;
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = _tmp4_ != NULL;
-#line 1339 "Alteration.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = FALSE;
-#line 1343 "Alteration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp2_) {
-#line 1347 "Alteration.c"
- const gchar* _tmp5_;
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = self->priv->detail;
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = _tmp5_ != NULL;
-#line 1353 "Alteration.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = FALSE;
-#line 1357 "Alteration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp1_) {
-#line 1361 "Alteration.c"
- const gchar* _tmp6_;
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = other->priv->detail;
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = _tmp6_ != NULL;
-#line 1367 "Alteration.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = FALSE;
-#line 1371 "Alteration.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp0_) {
-#line 1375 "Alteration.c"
- gboolean _tmp7_ = FALSE;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = self->priv->subject;
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = other->priv->subject;
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (alteration_equal_values (_tmp8_, _tmp9_)) {
-#line 1385 "Alteration.c"
- const gchar* _tmp10_;
- const gchar* _tmp11_;
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = self->priv->detail;
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = other->priv->detail;
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = alteration_equal_values (_tmp10_, _tmp11_);
-#line 1394 "Alteration.c"
- } else {
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = FALSE;
-#line 1398 "Alteration.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp7_;
-#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1404 "Alteration.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp14_ = self->priv->map;
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp14_ != NULL) {
-#line 1410 "Alteration.c"
- GeeMultiMap* _tmp15_;
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp15_ = other->priv->map;
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = _tmp15_ == NULL;
-#line 1416 "Alteration.c"
- } else {
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = FALSE;
-#line 1420 "Alteration.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp13_) {
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = TRUE;
-#line 1426 "Alteration.c"
- } else {
- gboolean _tmp16_ = FALSE;
- GeeMultiMap* _tmp17_;
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp17_ = self->priv->map;
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp17_ == NULL) {
-#line 1434 "Alteration.c"
- GeeMultiMap* _tmp18_;
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp18_ = other->priv->map;
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp16_ = _tmp18_ != NULL;
-#line 1440 "Alteration.c"
- } else {
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp16_ = FALSE;
-#line 1444 "Alteration.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = _tmp16_;
-#line 1448 "Alteration.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp12_) {
-#line 1452 "Alteration.c"
- const gchar* _tmp19_ = NULL;
- const gchar* _tmp20_;
- gchar* single_subject = NULL;
- gchar* _tmp23_;
- const gchar* _tmp24_ = NULL;
- const gchar* _tmp25_;
- gchar* single_detail = NULL;
- gchar* _tmp28_;
- GeeMultiMap* _tmp29_ = NULL;
- GeeMultiMap* _tmp30_;
- GeeMultiMap* multimap = NULL;
- GeeMultiMap* _tmp33_;
- gboolean _tmp34_ = FALSE;
- GeeMultiMap* _tmp35_;
- const gchar* _tmp36_;
-#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp20_ = self->priv->subject;
-#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp20_ != NULL) {
-#line 1472 "Alteration.c"
- const gchar* _tmp21_;
-#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp21_ = self->priv->subject;
-#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp19_ = _tmp21_;
-#line 1478 "Alteration.c"
- } else {
- const gchar* _tmp22_;
-#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp22_ = other->priv->subject;
-#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp19_ = _tmp22_;
-#line 1485 "Alteration.c"
- }
-#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp23_ = g_strdup (_tmp19_);
-#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- single_subject = _tmp23_;
-#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp25_ = self->priv->detail;
-#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp25_ != NULL) {
-#line 1495 "Alteration.c"
- const gchar* _tmp26_;
-#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp26_ = self->priv->detail;
-#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp24_ = _tmp26_;
-#line 1501 "Alteration.c"
- } else {
- const gchar* _tmp27_;
-#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp27_ = other->priv->detail;
-#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp24_ = _tmp27_;
-#line 1508 "Alteration.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp28_ = g_strdup (_tmp24_);
-#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- single_detail = _tmp28_;
-#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp30_ = self->priv->map;
-#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp30_ != NULL) {
-#line 1518 "Alteration.c"
- GeeMultiMap* _tmp31_;
-#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp31_ = self->priv->map;
-#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp29_ = _tmp31_;
-#line 1524 "Alteration.c"
- } else {
- GeeMultiMap* _tmp32_;
-#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp32_ = other->priv->map;
-#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp29_ = _tmp32_;
-#line 1531 "Alteration.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp33_ = _g_object_ref0 (_tmp29_);
-#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- multimap = _tmp33_;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp35_ = multimap;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp36_ = single_subject;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (gee_multi_map_contains (_tmp35_, _tmp36_)) {
-#line 1543 "Alteration.c"
- GeeMultiMap* _tmp37_;
- const gchar* _tmp38_;
- GeeCollection* _tmp39_;
- GeeCollection* _tmp40_;
- const gchar* _tmp41_;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp37_ = self->priv->map;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp38_ = single_subject;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp39_ = gee_multi_map_get (_tmp37_, _tmp38_);
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp40_ = _tmp39_;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp41_ = single_detail;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp34_ = gee_collection_contains (_tmp40_, _tmp41_);
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_tmp40_);
-#line 1563 "Alteration.c"
- } else {
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp34_ = FALSE;
-#line 1567 "Alteration.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp34_;
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (multimap);
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (single_detail);
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (single_subject);
-#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1579 "Alteration.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp43_ = self->priv->map;
-#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp43_ != NULL) {
-#line 1585 "Alteration.c"
- GeeMultiMap* _tmp44_;
-#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp44_ = other->priv->map;
-#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp42_ = _tmp44_ != NULL;
-#line 1591 "Alteration.c"
- } else {
-#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp42_ = FALSE;
-#line 1595 "Alteration.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp42_) {
-#line 1599 "Alteration.c"
- GeeSet* keys = NULL;
- GeeMultiMap* _tmp45_;
- GeeSet* _tmp46_;
- GeeSet* _tmp47_;
- GeeSet* other_keys = NULL;
- GeeMultiMap* _tmp48_;
- GeeSet* _tmp49_;
- GeeSet* _tmp50_;
-#line 207 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp45_ = self->priv->map;
-#line 207 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp46_ = gee_multi_map_get_keys (_tmp45_);
-#line 207 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- keys = _tmp46_;
-#line 208 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp47_ = keys;
-#line 208 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp47_ != NULL, "keys != null");
-#line 209 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp48_ = other->priv->map;
-#line 209 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp49_ = gee_multi_map_get_keys (_tmp48_);
-#line 209 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- other_keys = _tmp49_;
-#line 210 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp50_ = other_keys;
-#line 210 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp50_ != NULL, "other_keys != null");
-#line 1628 "Alteration.c"
- {
- GeeIterator* _subject_it = NULL;
- GeeSet* _tmp51_;
- GeeIterator* _tmp52_;
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp51_ = other_keys;
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp52_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _subject_it = _tmp52_;
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 1641 "Alteration.c"
- GeeIterator* _tmp53_;
- gchar* subject = NULL;
- GeeIterator* _tmp54_;
- gpointer _tmp55_;
- GeeSet* _tmp56_;
- const gchar* _tmp57_;
- GeeCollection* details = NULL;
- GeeMultiMap* _tmp58_;
- const gchar* _tmp59_;
- GeeCollection* _tmp60_;
- GeeCollection* other_details = NULL;
- GeeMultiMap* _tmp61_;
- const gchar* _tmp62_;
- GeeCollection* _tmp63_;
- gboolean _tmp64_ = FALSE;
- GeeCollection* _tmp65_;
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp53_ = _subject_it;
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp53_)) {
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 1664 "Alteration.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp54_ = _subject_it;
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp55_ = gee_iterator_get (_tmp54_);
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- subject = (gchar*) _tmp55_;
-#line 213 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp56_ = keys;
-#line 213 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp57_ = subject;
-#line 213 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection), _tmp57_)) {
-#line 214 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (subject);
-#line 214 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- continue;
-#line 1682 "Alteration.c"
- }
-#line 216 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp58_ = self->priv->map;
-#line 216 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp59_ = subject;
-#line 216 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp60_ = gee_multi_map_get (_tmp58_, _tmp59_);
-#line 216 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- details = _tmp60_;
-#line 217 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp61_ = other->priv->map;
-#line 217 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp62_ = subject;
-#line 217 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp63_ = gee_multi_map_get (_tmp61_, _tmp62_);
-#line 217 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- other_details = _tmp63_;
-#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp65_ = details;
-#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp65_ != NULL) {
-#line 1704 "Alteration.c"
- GeeCollection* _tmp66_;
-#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp66_ = other_details;
-#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp64_ = _tmp66_ != NULL;
-#line 1710 "Alteration.c"
- } else {
-#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp64_ = FALSE;
-#line 1714 "Alteration.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp64_) {
-#line 1718 "Alteration.c"
- {
- GeeIterator* _detail_it = NULL;
- GeeCollection* _tmp67_;
- GeeIterator* _tmp68_;
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp67_ = other_details;
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp68_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _detail_it = _tmp68_;
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 1731 "Alteration.c"
- GeeIterator* _tmp69_;
- gchar* detail = NULL;
- GeeIterator* _tmp70_;
- gpointer _tmp71_;
- GeeCollection* _tmp72_;
- const gchar* _tmp73_;
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp69_ = _detail_it;
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp69_)) {
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 1744 "Alteration.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp70_ = _detail_it;
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp71_ = gee_iterator_get (_tmp70_);
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- detail = (gchar*) _tmp71_;
-#line 221 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp72_ = details;
-#line 221 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp73_ = detail;
-#line 221 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (gee_collection_contains (_tmp72_, _tmp73_)) {
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = TRUE;
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (detail);
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_detail_it);
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_details);
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (details);
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (subject);
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_subject_it);
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1778 "Alteration.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (detail);
-#line 1782 "Alteration.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_detail_it);
-#line 1786 "Alteration.c"
- }
- }
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_details);
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (details);
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (subject);
-#line 1795 "Alteration.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_subject_it);
-#line 1799 "Alteration.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 1805 "Alteration.c"
- }
-#line 228 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 228 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1811 "Alteration.c"
-}
-
-
-gboolean
-alteration_equals (Alteration* self,
- Alteration* other)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- const gchar* _tmp3_;
- gboolean _tmp12_ = FALSE;
- GeeMultiMap* _tmp13_;
-#line 231 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (self), FALSE);
-#line 231 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (other), FALSE);
-#line 233 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (self == other) {
-#line 234 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = TRUE;
-#line 234 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1836 "Alteration.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = self->priv->subject;
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp3_ != NULL) {
-#line 1842 "Alteration.c"
- const gchar* _tmp4_;
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = other->priv->subject;
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = _tmp4_ != NULL;
-#line 1848 "Alteration.c"
- } else {
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = FALSE;
-#line 1852 "Alteration.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp2_) {
-#line 1856 "Alteration.c"
- const gchar* _tmp5_;
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = self->priv->detail;
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = _tmp5_ != NULL;
-#line 1862 "Alteration.c"
- } else {
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = FALSE;
-#line 1866 "Alteration.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp1_) {
-#line 1870 "Alteration.c"
- const gchar* _tmp6_;
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = other->priv->detail;
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = _tmp6_ != NULL;
-#line 1876 "Alteration.c"
- } else {
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = FALSE;
-#line 1880 "Alteration.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp0_) {
-#line 1884 "Alteration.c"
- gboolean _tmp7_ = FALSE;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = self->priv->subject;
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = other->priv->subject;
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (alteration_equal_values (_tmp8_, _tmp9_)) {
-#line 1894 "Alteration.c"
- const gchar* _tmp10_;
- const gchar* _tmp11_;
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = self->priv->detail;
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = other->priv->detail;
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = alteration_equal_values (_tmp10_, _tmp11_);
-#line 1903 "Alteration.c"
- } else {
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = FALSE;
-#line 1907 "Alteration.c"
- }
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp7_;
-#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1913 "Alteration.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = self->priv->map;
-#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp13_ != NULL) {
-#line 1919 "Alteration.c"
- GeeMultiMap* _tmp14_;
-#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp14_ = other->priv->map;
-#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = _tmp14_ != NULL;
-#line 1925 "Alteration.c"
- } else {
-#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = FALSE;
-#line 1929 "Alteration.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp12_) {
-#line 1933 "Alteration.c"
- GeeSet* keys = NULL;
- GeeMultiMap* _tmp15_;
- GeeSet* _tmp16_;
- GeeSet* _tmp17_;
- GeeSet* other_keys = NULL;
- GeeMultiMap* _tmp18_;
- GeeSet* _tmp19_;
- GeeSet* _tmp20_;
- GeeSet* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- GeeSet* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- GeeSet* _tmp27_;
- GeeSet* _tmp28_;
- GeeSet* _tmp29_;
- GeeSet* _tmp30_;
-#line 243 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp15_ = self->priv->map;
-#line 243 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp16_ = gee_multi_map_get_keys (_tmp15_);
-#line 243 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- keys = _tmp16_;
-#line 244 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp17_ = keys;
-#line 244 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp17_ != NULL, "keys != null");
-#line 245 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp18_ = other->priv->map;
-#line 245 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp19_ = gee_multi_map_get_keys (_tmp18_);
-#line 245 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- other_keys = _tmp19_;
-#line 246 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp20_ = other_keys;
-#line 246 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp20_ != NULL, "other_keys != null");
-#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp21_ = keys;
-#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp23_ = _tmp22_;
-#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp24_ = other_keys;
-#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp25_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp26_ = _tmp25_;
-#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp23_ != _tmp26_) {
-#line 249 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 249 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 249 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 249 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 1994 "Alteration.c"
- }
-#line 251 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp27_ = keys;
-#line 251 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp28_ = other_keys;
-#line 251 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_collection_contains_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection))) {
-#line 252 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 252 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 252 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 252 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2010 "Alteration.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp29_ = other_keys;
-#line 254 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp30_ = keys;
-#line 254 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_collection_contains_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection))) {
-#line 255 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 255 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 255 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 255 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2026 "Alteration.c"
- }
- {
- GeeIterator* _key_it = NULL;
- GeeSet* _tmp31_;
- GeeIterator* _tmp32_;
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp31_ = keys;
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp32_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _key_it = _tmp32_;
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 2040 "Alteration.c"
- GeeIterator* _tmp33_;
- gchar* key = NULL;
- GeeIterator* _tmp34_;
- gpointer _tmp35_;
- GeeCollection* values = NULL;
- GeeMultiMap* _tmp36_;
- const gchar* _tmp37_;
- GeeCollection* _tmp38_;
- GeeCollection* other_values = NULL;
- GeeMultiMap* _tmp39_;
- const gchar* _tmp40_;
- GeeCollection* _tmp41_;
- GeeCollection* _tmp42_;
- gint _tmp43_;
- gint _tmp44_;
- GeeCollection* _tmp45_;
- gint _tmp46_;
- gint _tmp47_;
- GeeCollection* _tmp48_;
- GeeCollection* _tmp49_;
- GeeCollection* _tmp50_;
- GeeCollection* _tmp51_;
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp33_ = _key_it;
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp33_)) {
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 2069 "Alteration.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp34_ = _key_it;
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp35_ = gee_iterator_get (_tmp34_);
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- key = (gchar*) _tmp35_;
-#line 258 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp36_ = self->priv->map;
-#line 258 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp37_ = key;
-#line 258 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp38_ = gee_multi_map_get (_tmp36_, _tmp37_);
-#line 258 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- values = _tmp38_;
-#line 259 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp39_ = other->priv->map;
-#line 259 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp40_ = key;
-#line 259 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp41_ = gee_multi_map_get (_tmp39_, _tmp40_);
-#line 259 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- other_values = _tmp41_;
-#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp42_ = values;
-#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp43_ = gee_collection_get_size (_tmp42_);
-#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp44_ = _tmp43_;
-#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp45_ = other_values;
-#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp46_ = gee_collection_get_size (_tmp45_);
-#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp47_ = _tmp46_;
-#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp44_ != _tmp47_) {
-#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_values);
-#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (values);
-#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (key);
-#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_key_it);
-#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2123 "Alteration.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp48_ = values;
-#line 264 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp49_ = other_values;
-#line 264 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_collection_contains_all (_tmp48_, _tmp49_)) {
-#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_values);
-#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (values);
-#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (key);
-#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_key_it);
-#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2147 "Alteration.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp50_ = other_values;
-#line 267 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp51_ = values;
-#line 267 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_collection_contains_all (_tmp50_, _tmp51_)) {
-#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_values);
-#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (values);
-#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (key);
-#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_key_it);
-#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2171 "Alteration.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_values);
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (values);
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (key);
-#line 2179 "Alteration.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_key_it);
-#line 2183 "Alteration.c"
- }
-#line 272 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = TRUE;
-#line 272 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (other_keys);
-#line 272 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 272 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2193 "Alteration.c"
- }
-#line 276 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = FALSE;
-#line 276 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2199 "Alteration.c"
-}
-
-
-static void
-alteration_multimap_add_all (GeeMultiMap* dest,
- GeeMultiMap* src)
-{
- GeeSet* keys = NULL;
- GeeSet* _tmp0_;
-#line 279 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (GEE_IS_MULTI_MAP (dest));
-#line 279 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (GEE_IS_MULTI_MAP (src));
-#line 281 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = gee_multi_map_get_keys (src);
-#line 281 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- keys = _tmp0_;
-#line 2217 "Alteration.c"
- {
- GeeIterator* _key_it = NULL;
- GeeSet* _tmp1_;
- GeeIterator* _tmp2_;
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = keys;
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _key_it = _tmp2_;
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 2230 "Alteration.c"
- GeeIterator* _tmp3_;
- gchar* key = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- GeeCollection* values = NULL;
- const gchar* _tmp6_;
- GeeCollection* _tmp7_;
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = _key_it;
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 2244 "Alteration.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = _key_it;
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- key = (gchar*) _tmp5_;
-#line 283 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = key;
-#line 283 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = gee_multi_map_get (src, _tmp6_);
-#line 283 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- values = _tmp7_;
-#line 2258 "Alteration.c"
- {
- GeeIterator* _value_it = NULL;
- GeeCollection* _tmp8_;
- GeeIterator* _tmp9_;
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = values;
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _value_it = _tmp9_;
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- while (TRUE) {
-#line 2271 "Alteration.c"
- GeeIterator* _tmp10_;
- gchar* value = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- const gchar* _tmp13_;
- const gchar* _tmp14_;
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = _value_it;
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- break;
-#line 2284 "Alteration.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = _value_it;
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value = (gchar*) _tmp12_;
-#line 285 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = key;
-#line 285 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp14_ = value;
-#line 285 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- gee_multi_map_set (dest, _tmp13_, _tmp14_);
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (value);
-#line 2300 "Alteration.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_value_it);
-#line 2304 "Alteration.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (values);
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (key);
-#line 2310 "Alteration.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (_key_it);
-#line 2314 "Alteration.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (keys);
-#line 2318 "Alteration.c"
-}
-
-
-static gpointer
-_alteration_ref0 (gpointer self)
-{
-#line 293 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return self ? alteration_ref (self) : NULL;
-#line 2327 "Alteration.c"
-}
-
-
-Alteration*
-alteration_compress (Alteration* self,
- Alteration* other)
-{
- Alteration* result = NULL;
- GeeMultiMap* compressed = NULL;
- GeeMultiMap* _tmp1_;
- gboolean _tmp2_ = FALSE;
- const gchar* _tmp3_;
- gboolean _tmp11_ = FALSE;
- const gchar* _tmp12_;
- GeeMultiMap* _tmp20_;
- Alteration* _tmp21_;
-#line 291 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (self), NULL);
-#line 291 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (IS_ALTERATION (other), NULL);
-#line 292 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (alteration_equals (self, other)) {
-#line 2350 "Alteration.c"
- Alteration* _tmp0_;
-#line 293 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp0_ = _alteration_ref0 (self);
-#line 293 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp0_;
-#line 293 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2358 "Alteration.c"
- }
-#line 297 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp1_ = alteration_create_map (self);
-#line 297 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- compressed = _tmp1_;
-#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp3_ = self->priv->subject;
-#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp3_ != NULL) {
-#line 2368 "Alteration.c"
- const gchar* _tmp4_;
-#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp4_ = self->priv->detail;
-#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = _tmp4_ != NULL;
-#line 2374 "Alteration.c"
- } else {
-#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp2_ = FALSE;
-#line 2378 "Alteration.c"
- }
-#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp2_) {
-#line 2382 "Alteration.c"
- GeeMultiMap* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 300 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp5_ = compressed;
-#line 300 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp6_ = self->priv->subject;
-#line 300 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp7_ = self->priv->detail;
-#line 300 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- gee_multi_map_set (_tmp5_, _tmp6_, _tmp7_);
-#line 2394 "Alteration.c"
- } else {
- GeeMultiMap* _tmp8_;
- GeeMultiMap* _tmp9_;
- GeeMultiMap* _tmp10_;
-#line 302 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp8_ = self->priv->map;
-#line 302 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp8_ != NULL, "map != null");
-#line 303 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp9_ = compressed;
-#line 303 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp10_ = self->priv->map;
-#line 303 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_multimap_add_all (_tmp9_, _tmp10_);
-#line 2409 "Alteration.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp12_ = other->priv->subject;
-#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp12_ != NULL) {
-#line 2415 "Alteration.c"
- const gchar* _tmp13_;
-#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp13_ = other->priv->detail;
-#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = _tmp13_ != NULL;
-#line 2421 "Alteration.c"
- } else {
-#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp11_ = FALSE;
-#line 2425 "Alteration.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (_tmp11_) {
-#line 2429 "Alteration.c"
- GeeMultiMap* _tmp14_;
- const gchar* _tmp15_;
- const gchar* _tmp16_;
-#line 307 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp14_ = compressed;
-#line 307 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp15_ = other->priv->subject;
-#line 307 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp16_ = other->priv->detail;
-#line 307 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- gee_multi_map_set (_tmp14_, _tmp15_, _tmp16_);
-#line 2441 "Alteration.c"
- } else {
- GeeMultiMap* _tmp17_;
- GeeMultiMap* _tmp18_;
- GeeMultiMap* _tmp19_;
-#line 309 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp17_ = other->priv->map;
-#line 309 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _vala_assert (_tmp17_ != NULL, "other.map != null");
-#line 310 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp18_ = compressed;
-#line 310 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp19_ = other->priv->map;
-#line 310 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_multimap_add_all (_tmp18_, _tmp19_);
-#line 2456 "Alteration.c"
- }
-#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp20_ = compressed;
-#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _tmp21_ = alteration_new_from_map (_tmp20_);
-#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- result = _tmp21_;
-#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (compressed);
-#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return result;
-#line 2468 "Alteration.c"
-}
-
-
-static void
-value_alteration_init (GValue* value)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value->data[0].v_pointer = NULL;
-#line 2477 "Alteration.c"
-}
-
-
-static void
-value_alteration_free_value (GValue* value)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (value->data[0].v_pointer) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_unref (value->data[0].v_pointer);
-#line 2488 "Alteration.c"
- }
-}
-
-
-static void
-value_alteration_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (src_value->data[0].v_pointer) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- dest_value->data[0].v_pointer = alteration_ref (src_value->data[0].v_pointer);
-#line 2501 "Alteration.c"
- } else {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2505 "Alteration.c"
- }
-}
-
-
-static gpointer
-value_alteration_peek_pointer (const GValue* value)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return value->data[0].v_pointer;
-#line 2515 "Alteration.c"
-}
-
-
-static gchar*
-value_alteration_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (collect_values[0].v_pointer) {
-#line 2527 "Alteration.c"
- Alteration * object;
- object = collect_values[0].v_pointer;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2534 "Alteration.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.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 2538 "Alteration.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value->data[0].v_pointer = alteration_ref (object);
-#line 2542 "Alteration.c"
- } else {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value->data[0].v_pointer = NULL;
-#line 2546 "Alteration.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return NULL;
-#line 2550 "Alteration.c"
-}
-
-
-static gchar*
-value_alteration_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- Alteration ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!object_p) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2566 "Alteration.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (!value->data[0].v_pointer) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- *object_p = NULL;
-#line 2572 "Alteration.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- *object_p = value->data[0].v_pointer;
-#line 2576 "Alteration.c"
- } else {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- *object_p = alteration_ref (value->data[0].v_pointer);
-#line 2580 "Alteration.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return NULL;
-#line 2584 "Alteration.c"
-}
-
-
-GParamSpec*
-param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecAlteration* spec;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_ALTERATION), NULL);
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return G_PARAM_SPEC (spec);
-#line 2604 "Alteration.c"
-}
-
-
-gpointer
-value_get_alteration (const GValue* value)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ALTERATION), NULL);
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return value->data[0].v_pointer;
-#line 2615 "Alteration.c"
-}
-
-
-void
-value_set_alteration (GValue* value,
- gpointer v_object)
-{
- Alteration * old;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ALTERATION));
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- old = value->data[0].v_pointer;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (v_object) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ALTERATION));
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value->data[0].v_pointer = v_object;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_ref (value->data[0].v_pointer);
-#line 2638 "Alteration.c"
- } else {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value->data[0].v_pointer = NULL;
-#line 2642 "Alteration.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (old) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_unref (old);
-#line 2648 "Alteration.c"
- }
-}
-
-
-void
-value_take_alteration (GValue* value,
- gpointer v_object)
-{
- Alteration * old;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ALTERATION));
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- old = value->data[0].v_pointer;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (v_object) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ALTERATION));
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value->data[0].v_pointer = v_object;
-#line 2670 "Alteration.c"
- } else {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- value->data[0].v_pointer = NULL;
-#line 2674 "Alteration.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (old) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_unref (old);
-#line 2680 "Alteration.c"
- }
-}
-
-
-static void
-alteration_class_init (AlterationClass * klass)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- alteration_parent_class = g_type_class_peek_parent (klass);
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- ((AlterationClass *) klass)->finalize = alteration_finalize;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_type_class_add_private (klass, sizeof (AlterationPrivate));
-#line 2694 "Alteration.c"
-}
-
-
-static void
-alteration_instance_init (Alteration * self)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv = ALTERATION_GET_PRIVATE (self);
-#line 28 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->subject = NULL;
-#line 29 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->detail = NULL;
-#line 30 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->priv->map = NULL;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self->ref_count = 1;
-#line 2711 "Alteration.c"
-}
-
-
-static void
-alteration_finalize (Alteration * obj)
-{
- Alteration * self;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ALTERATION, Alteration);
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_signal_handlers_destroy (self);
-#line 28 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (self->priv->subject);
-#line 29 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_free0 (self->priv->detail);
-#line 30 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- _g_object_unref0 (self->priv->map);
-#line 2729 "Alteration.c"
-}
-
-
-GType
-alteration_get_type (void)
-{
- static volatile gsize alteration_type_id__volatile = 0;
- if (g_once_init_enter (&alteration_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_alteration_init, value_alteration_free_value, value_alteration_copy_value, value_alteration_peek_pointer, "p", value_alteration_collect_value, "p", value_alteration_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (AlterationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) alteration_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Alteration), 0, (GInstanceInitFunc) alteration_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType alteration_type_id;
- alteration_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Alteration", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&alteration_type_id__volatile, alteration_type_id);
- }
- return alteration_type_id__volatile;
-}
-
-
-gpointer
-alteration_ref (gpointer instance)
-{
- Alteration * self;
- self = instance;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- return instance;
-#line 2758 "Alteration.c"
-}
-
-
-void
-alteration_unref (gpointer instance)
-{
- Alteration * self;
- self = instance;
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- ALTERATION_GET_CLASS (self)->finalize (self);
-#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2773 "Alteration.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/core/ContainerSourceCollection.c b/src/core/ContainerSourceCollection.c
deleted file mode 100644
index f9f30cb..0000000
--- a/src/core/ContainerSourceCollection.c
+++ /dev/null
@@ -1,2236 +0,0 @@
-/* ContainerSourceCollection.c generated by valac 0.40.4, the Vala compiler
- * generated from ContainerSourceCollection.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* A ContainerSourceCollection is for DataSources which maintain links to one or more other*/
-/* DataSources, assumed to be of a different type. ContainerSourceCollection automates the task*/
-/* of handling unlinking and relinking and maintaining backlinks. Unlinked DataSources are*/
-/* held in a holding tank, until they are either relinked or destroyed.*/
-/**/
-/* If the ContainerSourceCollection's DataSources are types that "evaporate" (i.e. they disappear*/
-/* when they hold no items), they should use the evaporate() method, which will either destroy*/
-/* the DataSource or hold it in the tank (if backlinks are outstanding).*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-typedef struct _ContainerSourceCollectionPrivate ContainerSourceCollectionPrivate;
-
-#define TYPE_CONTAINER_SOURCE (container_source_get_type ())
-#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource))
-#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE))
-#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface))
-
-typedef struct _ContainerSource ContainerSource;
-typedef struct _ContainerSourceIface ContainerSourceIface;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _source_backlink_unref0(var) ((var == NULL) ? NULL : (var = (source_backlink_unref (var), NULL)))
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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;
-enum {
- CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ADDED_SIGNAL,
- CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL,
- CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL,
- CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL,
- CONTAINER_SOURCE_COLLECTION_NUM_SIGNALS
-};
-static guint container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _ContainerSourceIface {
- GTypeInterface parent_iface;
- gboolean (*has_links) (ContainerSource* self);
- SourceBacklink* (*get_backlink) (ContainerSource* self);
- void (*break_link) (ContainerSource* self, DataSource* source);
- void (*break_link_many) (ContainerSource* self, GeeCollection* sources);
- void (*establish_link) (ContainerSource* self, DataSource* source);
- void (*establish_link_many) (ContainerSource* self, GeeCollection* sources);
-};
-
-struct _ContainerSourceCollection {
- DatabaseSourceCollection parent_instance;
- ContainerSourceCollectionPrivate * priv;
-};
-
-struct _ContainerSourceCollectionClass {
- DatabaseSourceCollectionClass parent_class;
- void (*notify_container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
- void (*notify_container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
- void (*notify_container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
- void (*notify_backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
- GeeCollection* (*get_containers_holding_source) (ContainerSourceCollection* self, DataSource* source);
- ContainerSource* (*convert_backlink_to_container) (ContainerSourceCollection* self, SourceBacklink* backlink);
- void (*container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
- void (*container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
- void (*container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
- void (*backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
-};
-
-struct _ContainerSourceCollectionPrivate {
- GeeHashSet* attached_collections;
- gchar* backlink_name;
- GeeHashSet* holding_tank;
-};
-
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-
-static gpointer container_source_collection_parent_class = NULL;
-
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_get_type (void) G_GNUC_CONST;
-#define CONTAINER_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionPrivate))
-void container_source_collection_detach_all_collections (ContainerSourceCollection* self);
-ContainerSourceCollection* container_source_collection_construct (GType object_type,
- const gchar* backlink_name,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-DatabaseSourceCollection* database_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-static void container_source_collection_real_notify_backlink_removed (SourceCollection* base,
- SourceBacklink* backlink,
- GeeCollection* sources);
-void source_collection_notify_backlink_removed (SourceCollection* self,
- SourceBacklink* backlink,
- GeeCollection* sources);
-ContainerSource* container_source_collection_convert_backlink_to_container (ContainerSourceCollection* self,
- SourceBacklink* backlink);
-void container_source_collection_notify_backlink_to_container_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* sources);
-void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked);
-static void container_source_collection_real_notify_container_contents_added (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked);
-void source_collection_relink (SourceCollection* self,
- DataSource* source);
-void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinked);
-static void container_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinked);
-void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked);
-static void container_source_collection_real_notify_container_contents_altered (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked);
-static void container_source_collection_real_notify_backlink_to_container_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* sources);
-GeeCollection* container_source_collection_get_containers_holding_source (ContainerSourceCollection* self,
- DataSource* source);
-static GeeCollection* container_source_collection_real_get_containers_holding_source (ContainerSourceCollection* self,
- DataSource* source);
-static ContainerSource* container_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* self,
- SourceBacklink* backlink);
-void container_source_collection_freeze_attached_notifications (ContainerSourceCollection* self);
-void data_collection_freeze_notifications (DataCollection* self);
-void container_source_collection_thaw_attached_notifications (ContainerSourceCollection* self);
-void data_collection_thaw_notifications (DataCollection* self);
-GeeCollection* container_source_collection_get_holding_tank (ContainerSourceCollection* self);
-void container_source_collection_init_add_unlinked (ContainerSourceCollection* self,
- ContainerSource* unlinked);
-void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self,
- GeeCollection* unlinked);
-gboolean container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self,
- ContainerSource* source);
-static void container_source_collection_on_contained_sources_unlinking (ContainerSourceCollection* self,
- GeeCollection* unlinking);
-void data_source_set_backlink (DataSource* self,
- SourceBacklink* backlink);
-SourceBacklink* container_source_get_backlink (ContainerSource* self);
-void container_source_break_link_many (ContainerSource* self,
- GeeCollection* sources);
-static void container_source_collection_on_contained_sources_relinked (ContainerSourceCollection* self,
- GeeCollection* relinked);
-GeeList* data_source_get_backlinks (DataSource* self,
- const gchar* name);
-gchar* data_object_to_string (DataObject* self);
-gchar* source_backlink_to_string (SourceBacklink* self);
-void container_source_establish_link_many (ContainerSource* self,
- GeeCollection* sources);
-static void container_source_collection_on_contained_source_destroyed (ContainerSourceCollection* self,
- DataSource* source);
-gboolean container_source_has_links (ContainerSource* self);
-GType tag_get_type (void) G_GNUC_CONST;
-gboolean data_source_destroy_orphan (DataSource* self,
- gboolean delete_backing);
-static void container_source_collection_real_notify_item_destroyed (SourceCollection* base,
- DataSource* source);
-void source_collection_remove_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-void source_collection_notify_item_destroyed (SourceCollection* self,
- DataSource* source);
-void container_source_collection_evaporate (ContainerSourceCollection* self,
- ContainerSource* container);
-gboolean source_collection_has_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-GeeCollection* source_collection_unlink_marked (SourceCollection* self,
- Marker* marker,
- ProgressMonitor monitor,
- void* monitor_target);
-Marker* data_collection_mark (DataCollection* self,
- DataObject* object);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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);
-void container_source_collection_attach_collection (ContainerSourceCollection* self,
- SourceCollection* collection);
-gchar* data_collection_to_string (DataCollection* self);
-static void _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking (SourceCollection* _sender,
- GeeCollection* unlinking,
- gpointer self);
-static void _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked (SourceCollection* _sender,
- GeeCollection* relinked,
- gpointer self);
-static void _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-static void _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-static void container_source_collection_real_container_contents_added (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void container_source_collection_real_container_contents_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinked);
-static void container_source_collection_real_container_contents_altered (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void container_source_collection_real_backlink_to_container_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* sources);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void container_source_collection_finalize (DataCollection * obj);
-
-
-ContainerSourceCollection*
-container_source_collection_construct (GType object_type,
- const gchar* backlink_name,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target)
-{
- ContainerSourceCollection* self = NULL;
- gchar* _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_val_if_fail (backlink_name != NULL, NULL);
-#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 40 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self = (ContainerSourceCollection*) database_source_collection_construct (object_type, name, source_key_func, source_key_func_target);
-#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = g_strdup (backlink_name);
-#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (self->priv->backlink_name);
-#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self->priv->backlink_name = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return self;
-#line 542 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_notify_backlink_removed (SourceCollection* base,
- SourceBacklink* backlink,
- GeeCollection* sources)
-{
- ContainerSourceCollection * self;
- ContainerSource* container = NULL;
- ContainerSource* _tmp0_;
- ContainerSource* _tmp1_;
-#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection);
-#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 51 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- SOURCE_COLLECTION_CLASS (container_source_collection_parent_class)->notify_backlink_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), backlink, sources);
-#line 53 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = container_source_collection_convert_backlink_to_container (self, backlink);
-#line 53 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = _tmp0_;
-#line 54 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = container;
-#line 54 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp1_ != NULL) {
-#line 571 "ContainerSourceCollection.c"
- ContainerSource* _tmp2_;
-#line 55 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = container;
-#line 55 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_notify_backlink_to_container_removed (self, _tmp2_, sources);
-#line 577 "ContainerSourceCollection.c"
- }
-#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (container);
-#line 581 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_notify_container_contents_added (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked)
-{
- GeeHashSet* _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (added));
-#line 61 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->holding_tank;
-#line 61 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container)) {
-#line 600 "ContainerSourceCollection.c"
- gboolean removed = FALSE;
- GeeHashSet* _tmp1_;
- gboolean _tmp2_;
-#line 62 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = self->priv->holding_tank;
-#line 62 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container);
-#line 63 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = removed;
-#line 63 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _vala_assert (_tmp2_, "removed");
-#line 65 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source_collection_relink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_SOURCE, DataSource));
-#line 614 "ContainerSourceCollection.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ADDED_SIGNAL], 0, container, added, relinked);
-#line 618 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_notify_container_contents_added (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked)
-{
-#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_added (self, container, added, relinked);
-#line 632 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinked)
-{
-#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (removed));
-#line 73 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL], 0, container, removed, unlinked);
-#line 648 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinked)
-{
-#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_removed (self, container, removed, unlinked);
-#line 662 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_notify_container_contents_altered (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked)
-{
-#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 79 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL], 0, container, added, relinked, removed, unlinked);
-#line 682 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked)
-{
-#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_altered (self, container, added, relinked, removed, unlinked);
-#line 698 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_notify_backlink_to_container_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* sources)
-{
-#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 84 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL], 0, container, sources);
-#line 713 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_notify_backlink_to_container_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* sources)
-{
-#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_backlink_to_container_removed (self, container, sources);
-#line 726 "ContainerSourceCollection.c"
-}
-
-
-static GeeCollection*
-container_source_collection_real_get_containers_holding_source (ContainerSourceCollection* self,
- DataSource* source)
-{
-#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_critical ("Type `%s' does not implement abstract method `container_source_collection_get_containers_holding_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return NULL;
-#line 738 "ContainerSourceCollection.c"
-}
-
-
-GeeCollection*
-container_source_collection_get_containers_holding_source (ContainerSourceCollection* self,
- DataSource* source)
-{
-#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), NULL);
-#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->get_containers_holding_source (self, source);
-#line 750 "ContainerSourceCollection.c"
-}
-
-
-static ContainerSource*
-container_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* self,
- SourceBacklink* backlink)
-{
-#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_critical ("Type `%s' does not implement abstract method `container_source_collection_convert_backlink_to_container'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return NULL;
-#line 762 "ContainerSourceCollection.c"
-}
-
-
-ContainerSource*
-container_source_collection_convert_backlink_to_container (ContainerSourceCollection* self,
- SourceBacklink* backlink)
-{
-#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), NULL);
-#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->convert_backlink_to_container (self, backlink);
-#line 774 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_freeze_attached_notifications (ContainerSourceCollection* self)
-{
-#line 92 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 783 "ContainerSourceCollection.c"
- {
- GeeIterator* _collection_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->attached_collections;
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _collection_it = _tmp1_;
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 796 "ContainerSourceCollection.c"
- GeeIterator* _tmp2_;
- SourceCollection* collection = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SourceCollection* _tmp5_;
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _collection_it;
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 808 "ContainerSourceCollection.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _collection_it;
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp4_;
-#line 94 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = collection;
-#line 94 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _data_collection_unref0 (collection);
-#line 822 "ContainerSourceCollection.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_collection_it);
-#line 826 "ContainerSourceCollection.c"
- }
-}
-
-
-void
-container_source_collection_thaw_attached_notifications (ContainerSourceCollection* self)
-{
-#line 97 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 836 "ContainerSourceCollection.c"
- {
- GeeIterator* _collection_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->attached_collections;
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _collection_it = _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 849 "ContainerSourceCollection.c"
- GeeIterator* _tmp2_;
- SourceCollection* collection = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SourceCollection* _tmp5_;
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _collection_it;
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 861 "ContainerSourceCollection.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _collection_it;
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp4_;
-#line 99 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = collection;
-#line 99 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _data_collection_unref0 (collection);
-#line 875 "ContainerSourceCollection.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_collection_it);
-#line 879 "ContainerSourceCollection.c"
- }
-}
-
-
-GeeCollection*
-container_source_collection_get_holding_tank (ContainerSourceCollection* self)
-{
- GeeCollection* result = NULL;
- GeeHashSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
-#line 102 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), NULL);
-#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->holding_tank;
-#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_abstract_set_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_SET, GeeAbstractSet));
-#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return result;
-#line 903 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_init_add_unlinked (ContainerSourceCollection* self,
- ContainerSource* unlinked)
-{
- GeeHashSet* _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 106 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (unlinked));
-#line 107 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->holding_tank;
-#line 107 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), unlinked);
-#line 920 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self,
- GeeCollection* unlinked)
-{
- GeeHashSet* _tmp0_;
-#line 110 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 110 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (unlinked));
-#line 111 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->holding_tank;
-#line 111 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), unlinked);
-#line 937 "ContainerSourceCollection.c"
-}
-
-
-gboolean
-container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self,
- ContainerSource* source)
-{
- gboolean result = FALSE;
- GeeHashSet* _tmp0_;
-#line 114 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), FALSE);
-#line 114 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_val_if_fail (IS_CONTAINER_SOURCE (source), FALSE);
-#line 115 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->holding_tank;
-#line 115 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source)) {
-#line 116 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- result = FALSE;
-#line 116 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return result;
-#line 959 "ContainerSourceCollection.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source_collection_relink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 120 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- result = TRUE;
-#line 120 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return result;
-#line 967 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_on_contained_sources_unlinking (ContainerSourceCollection* self,
- GeeCollection* unlinking)
-{
- GeeHashMultiMap* map = NULL;
- GeeHashMultiMap* _tmp0_;
-#line 123 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 123 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (unlinking));
-#line 124 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_freeze_attached_notifications (self);
-#line 126 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = gee_hash_multi_map_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 126 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- map = _tmp0_;
-#line 987 "ContainerSourceCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp1_;
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (unlinking, GEE_TYPE_ITERABLE, GeeIterable));
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_it = _tmp1_;
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 997 "ContainerSourceCollection.c"
- GeeIterator* _tmp2_;
- DataSource* source = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeCollection* containers = NULL;
- DataSource* _tmp5_;
- GeeCollection* _tmp6_;
- gboolean _tmp7_ = FALSE;
- GeeCollection* _tmp8_;
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _source_it;
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1013 "ContainerSourceCollection.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _source_it;
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source = (DataSource*) _tmp4_;
-#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = source;
-#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = container_source_collection_get_containers_holding_source (self, _tmp5_);
-#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- containers = _tmp6_;
-#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = containers;
-#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp8_ == NULL) {
-#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = TRUE;
-#line 1033 "ContainerSourceCollection.c"
- } else {
- GeeCollection* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = containers;
-#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = gee_collection_get_size (_tmp9_);
-#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = _tmp10_;
-#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = _tmp11_ == 0;
-#line 1046 "ContainerSourceCollection.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp7_) {
-#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (containers);
-#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (source);
-#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- continue;
-#line 1056 "ContainerSourceCollection.c"
- }
- {
- GeeIterator* _container_it = NULL;
- GeeCollection* _tmp12_;
- GeeIterator* _tmp13_;
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp12_ = containers;
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _container_it = _tmp13_;
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1070 "ContainerSourceCollection.c"
- GeeIterator* _tmp14_;
- ContainerSource* container = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- GeeHashMultiMap* _tmp17_;
- ContainerSource* _tmp18_;
- DataSource* _tmp19_;
- DataSource* _tmp20_;
- ContainerSource* _tmp21_;
- SourceBacklink* _tmp22_;
- SourceBacklink* _tmp23_;
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp14_ = _container_it;
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1088 "ContainerSourceCollection.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp15_ = _container_it;
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = (ContainerSource*) _tmp16_;
-#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp17_ = map;
-#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp18_ = container;
-#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp19_ = source;
-#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp18_, _tmp19_);
-#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp20_ = source;
-#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp21_ = container;
-#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp22_ = container_source_get_backlink (_tmp21_);
-#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp23_ = _tmp22_;
-#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data_source_set_backlink (_tmp20_, _tmp23_);
-#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_backlink_unref0 (_tmp23_);
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (container);
-#line 1118 "ContainerSourceCollection.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_container_it);
-#line 1122 "ContainerSourceCollection.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (containers);
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (source);
-#line 1128 "ContainerSourceCollection.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_source_it);
-#line 1132 "ContainerSourceCollection.c"
- }
- {
- GeeIterator* _container_it = NULL;
- GeeHashMultiMap* _tmp24_;
- GeeSet* _tmp25_;
- GeeSet* _tmp26_;
- GeeIterator* _tmp27_;
- GeeIterator* _tmp28_;
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp24_ = map;
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp25_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp26_ = _tmp25_;
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp28_ = _tmp27_;
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp26_);
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _container_it = _tmp28_;
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1157 "ContainerSourceCollection.c"
- GeeIterator* _tmp29_;
- ContainerSource* container = NULL;
- GeeIterator* _tmp30_;
- gpointer _tmp31_;
- ContainerSource* _tmp32_;
- GeeHashMultiMap* _tmp33_;
- ContainerSource* _tmp34_;
- GeeCollection* _tmp35_;
- GeeCollection* _tmp36_;
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp29_ = _container_it;
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp29_)) {
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1173 "ContainerSourceCollection.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp30_ = _container_it;
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp31_ = gee_iterator_get (_tmp30_);
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = (ContainerSource*) _tmp31_;
-#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp32_ = container;
-#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp33_ = map;
-#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp34_ = container;
-#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp35_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp34_);
-#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp36_ = _tmp35_;
-#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_break_link_many (_tmp32_, _tmp36_);
-#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp36_);
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (container);
-#line 1197 "ContainerSourceCollection.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_container_it);
-#line 1201 "ContainerSourceCollection.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_thaw_attached_notifications (self);
-#line 123 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (map);
-#line 1207 "ContainerSourceCollection.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1216 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_on_contained_sources_relinked (ContainerSourceCollection* self,
- GeeCollection* relinked)
-{
- GeeHashMultiMap* map = NULL;
- GeeHashMultiMap* _tmp0_;
-#line 146 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 146 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (relinked));
-#line 147 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_freeze_attached_notifications (self);
-#line 149 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = gee_hash_multi_map_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 149 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- map = _tmp0_;
-#line 1236 "ContainerSourceCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp1_;
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (relinked, GEE_TYPE_ITERABLE, GeeIterable));
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_it = _tmp1_;
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1246 "ContainerSourceCollection.c"
- GeeIterator* _tmp2_;
- DataSource* source = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeList* backlinks = NULL;
- DataSource* _tmp5_;
- const gchar* _tmp6_;
- GeeList* _tmp7_;
- gboolean _tmp8_ = FALSE;
- GeeList* _tmp9_;
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _source_it;
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1263 "ContainerSourceCollection.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _source_it;
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source = (DataSource*) _tmp4_;
-#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = source;
-#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = self->priv->backlink_name;
-#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = data_source_get_backlinks (_tmp5_, _tmp6_);
-#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- backlinks = _tmp7_;
-#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = backlinks;
-#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp9_ == NULL) {
-#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = TRUE;
-#line 1285 "ContainerSourceCollection.c"
- } else {
- GeeList* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = backlinks;
-#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp12_ = _tmp11_;
-#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = _tmp12_ == 0;
-#line 1298 "ContainerSourceCollection.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp8_) {
-#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (backlinks);
-#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (source);
-#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- continue;
-#line 1308 "ContainerSourceCollection.c"
- }
- {
- GeeList* _backlink_list = NULL;
- GeeList* _tmp13_;
- GeeList* _tmp14_;
- gint _backlink_size = 0;
- GeeList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gint _backlink_index = 0;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp13_ = backlinks;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _backlink_list = _tmp14_;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp15_ = _backlink_list;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp17_ = _tmp16_;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _backlink_size = _tmp17_;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _backlink_index = -1;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1337 "ContainerSourceCollection.c"
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- SourceBacklink* backlink = NULL;
- GeeList* _tmp21_;
- gint _tmp22_;
- gpointer _tmp23_;
- ContainerSource* container = NULL;
- SourceBacklink* _tmp24_;
- ContainerSource* _tmp25_;
- ContainerSource* _tmp26_;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp18_ = _backlink_index;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _backlink_index = _tmp18_ + 1;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp19_ = _backlink_index;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp20_ = _backlink_size;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!(_tmp19_ < _tmp20_)) {
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1361 "ContainerSourceCollection.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp21_ = _backlink_list;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp22_ = _backlink_index;
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp23_ = gee_list_get (_tmp21_, _tmp22_);
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- backlink = (SourceBacklink*) _tmp23_;
-#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp24_ = backlink;
-#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp25_ = container_source_collection_convert_backlink_to_container (self, _tmp24_);
-#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = _tmp25_;
-#line 159 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp26_ = container;
-#line 159 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp26_ != NULL) {
-#line 1381 "ContainerSourceCollection.c"
- GeeHashMultiMap* _tmp27_;
- ContainerSource* _tmp28_;
- DataSource* _tmp29_;
-#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp27_ = map;
-#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp28_ = container;
-#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp29_ = source;
-#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp28_, _tmp29_);
-#line 1393 "ContainerSourceCollection.c"
- } else {
- DataSource* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- SourceBacklink* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp30_ = source;
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp31_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_OBJECT, DataObject));
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp32_ = _tmp31_;
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp33_ = backlink;
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp34_ = source_backlink_to_string (_tmp33_);
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp35_ = _tmp34_;
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_warning ("ContainerSourceCollection.vala:162: Unable to relink %s to container b" \
-"acklink %s", _tmp32_, _tmp35_);
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (_tmp35_);
-#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (_tmp32_);
-#line 1419 "ContainerSourceCollection.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (container);
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_backlink_unref0 (backlink);
-#line 1425 "ContainerSourceCollection.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_backlink_list);
-#line 1429 "ContainerSourceCollection.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (backlinks);
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (source);
-#line 1435 "ContainerSourceCollection.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_source_it);
-#line 1439 "ContainerSourceCollection.c"
- }
- {
- GeeIterator* _container_it = NULL;
- GeeHashMultiMap* _tmp36_;
- GeeSet* _tmp37_;
- GeeSet* _tmp38_;
- GeeIterator* _tmp39_;
- GeeIterator* _tmp40_;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp36_ = map;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp37_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp38_ = _tmp37_;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp39_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp40_ = _tmp39_;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp38_);
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _container_it = _tmp40_;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1464 "ContainerSourceCollection.c"
- GeeIterator* _tmp41_;
- ContainerSource* container = NULL;
- GeeIterator* _tmp42_;
- gpointer _tmp43_;
- ContainerSource* _tmp44_;
- GeeHashMultiMap* _tmp45_;
- ContainerSource* _tmp46_;
- GeeCollection* _tmp47_;
- GeeCollection* _tmp48_;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp41_ = _container_it;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp41_)) {
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1480 "ContainerSourceCollection.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp42_ = _container_it;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp43_ = gee_iterator_get (_tmp42_);
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = (ContainerSource*) _tmp43_;
-#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp44_ = container;
-#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp45_ = map;
-#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp46_ = container;
-#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp47_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp46_);
-#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp48_ = _tmp47_;
-#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_establish_link_many (_tmp44_, _tmp48_);
-#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp48_);
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (container);
-#line 1504 "ContainerSourceCollection.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_container_it);
-#line 1508 "ContainerSourceCollection.c"
- }
-#line 171 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_thaw_attached_notifications (self);
-#line 146 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (map);
-#line 1514 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_on_contained_source_destroyed (ContainerSourceCollection* self,
- DataSource* source)
-{
- GeeIterator* iter = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 174 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 174 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 175 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->holding_tank;
-#line 175 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 175 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- iter = _tmp1_;
-#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1537 "ContainerSourceCollection.c"
- GeeIterator* _tmp2_;
- ContainerSource* container = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- gboolean _tmp5_ = FALSE;
- ContainerSource* _tmp6_;
-#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = iter;
-#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1550 "ContainerSourceCollection.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = iter;
-#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = (ContainerSource*) _tmp4_;
-#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = container;
-#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!container_source_has_links (_tmp6_)) {
-#line 1562 "ContainerSourceCollection.c"
- ContainerSource* _tmp7_;
-#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = container;
-#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_TAG);
-#line 1568 "ContainerSourceCollection.c"
- } else {
-#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = FALSE;
-#line 1572 "ContainerSourceCollection.c"
- }
-#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp5_) {
-#line 1576 "ContainerSourceCollection.c"
- GeeIterator* _tmp8_;
- ContainerSource* _tmp9_;
-#line 182 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = iter;
-#line 182 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_iterator_remove (_tmp8_);
-#line 183 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = container;
-#line 183 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data_source_destroy_orphan (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource), TRUE);
-#line 1587 "ContainerSourceCollection.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (container);
-#line 1591 "ContainerSourceCollection.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (iter);
-#line 1595 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_notify_item_destroyed (SourceCollection* base,
- DataSource* source)
-{
- ContainerSourceCollection * self;
-#line 188 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection);
-#line 188 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1608 "ContainerSourceCollection.c"
- {
- GeeIterator* _collection_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->attached_collections;
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _collection_it = _tmp1_;
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1621 "ContainerSourceCollection.c"
- GeeIterator* _tmp2_;
- SourceCollection* collection = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SourceCollection* _tmp5_;
- SourceBacklink* _tmp6_;
- SourceBacklink* _tmp7_;
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _collection_it;
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1635 "ContainerSourceCollection.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _collection_it;
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp4_;
-#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = collection;
-#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_CONTAINER_SOURCE, ContainerSource));
-#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = _tmp6_;
-#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source_collection_remove_backlink (_tmp5_, _tmp7_);
-#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_backlink_unref0 (_tmp7_);
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _data_collection_unref0 (collection);
-#line 1655 "ContainerSourceCollection.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_collection_it);
-#line 1659 "ContainerSourceCollection.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- SOURCE_COLLECTION_CLASS (container_source_collection_parent_class)->notify_item_destroyed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), source);
-#line 1663 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_evaporate (ContainerSourceCollection* self,
- ContainerSource* container)
-{
- Marker* _tmp15_;
- Marker* _tmp16_;
-#line 200 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 200 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 1677 "ContainerSourceCollection.c"
- {
- GeeIterator* _collection_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->attached_collections;
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _collection_it = _tmp1_;
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1690 "ContainerSourceCollection.c"
- GeeIterator* _tmp2_;
- SourceCollection* collection = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SourceCollection* _tmp5_;
- SourceBacklink* _tmp6_;
- SourceBacklink* _tmp7_;
- gboolean _tmp8_;
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _collection_it;
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1705 "ContainerSourceCollection.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _collection_it;
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp4_;
-#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = collection;
-#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = container_source_get_backlink (container);
-#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = _tmp6_;
-#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = source_collection_has_backlink (_tmp5_, _tmp7_);
-#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_backlink_unref0 (_tmp7_);
-#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp8_) {
-#line 1725 "ContainerSourceCollection.c"
- Marker* _tmp9_;
- Marker* _tmp10_;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
- gboolean added = FALSE;
- GeeHashSet* _tmp13_;
- gboolean _tmp14_;
-#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_OBJECT, DataObject));
-#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = _tmp9_;
-#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = source_collection_unlink_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp10_, NULL, NULL);
-#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp12_ = _tmp11_;
-#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp12_);
-#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp10_);
-#line 204 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp13_ = self->priv->holding_tank;
-#line 204 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- added = gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container);
-#line 205 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp14_ = added;
-#line 205 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _vala_assert (_tmp14_, "added");
-#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _data_collection_unref0 (collection);
-#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_collection_it);
-#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return;
-#line 1759 "ContainerSourceCollection.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _data_collection_unref0 (collection);
-#line 1763 "ContainerSourceCollection.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_collection_it);
-#line 1767 "ContainerSourceCollection.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp15_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_OBJECT, DataObject));
-#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp16_ = _tmp15_;
-#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp16_, TRUE, NULL, NULL, NULL);
-#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp16_);
-#line 1777 "ContainerSourceCollection.c"
-}
-
-
-static void
-_container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking (SourceCollection* _sender,
- GeeCollection* unlinking,
- gpointer self)
-{
-#line 221 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_on_contained_sources_unlinking ((ContainerSourceCollection*) self, unlinking);
-#line 1788 "ContainerSourceCollection.c"
-}
-
-
-static void
-_container_source_collection_on_contained_sources_relinked_source_collection_items_relinked (SourceCollection* _sender,
- GeeCollection* relinked,
- gpointer self)
-{
-#line 222 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_on_contained_sources_relinked ((ContainerSourceCollection*) self, relinked);
-#line 1799 "ContainerSourceCollection.c"
-}
-
-
-static void
-_container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 223 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_on_contained_source_destroyed ((ContainerSourceCollection*) self, source);
-#line 1810 "ContainerSourceCollection.c"
-}
-
-
-static void
-_container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 224 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_on_contained_source_destroyed ((ContainerSourceCollection*) self, source);
-#line 1821 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_attach_collection (ContainerSourceCollection* self,
- SourceCollection* collection)
-{
- GeeHashSet* _tmp0_;
- GeeHashSet* _tmp5_;
-#line 213 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 213 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (collection));
-#line 214 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->attached_collections;
-#line 214 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), collection)) {
-#line 1839 "ContainerSourceCollection.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (collection, TYPE_DATA_COLLECTION, DataCollection));
-#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _tmp1_;
-#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = _tmp3_;
-#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_warning ("ContainerSourceCollection.vala:215: attempted to multiple-attach '%s' " \
-"to '%s'", _tmp2_, _tmp4_);
-#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (_tmp4_);
-#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (_tmp2_);
-#line 216 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- return;
-#line 1860 "ContainerSourceCollection.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = self->priv->attached_collections;
-#line 219 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), collection);
-#line 221 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_connect (collection, "items-unlinking", (GCallback) _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking, self);
-#line 222 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_connect (collection, "items-relinked", (GCallback) _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked, self);
-#line 223 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_connect (collection, "item-destroyed", (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed, self);
-#line 224 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_connect (collection, "unlinked-destroyed", (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed, self);
-#line 1874 "ContainerSourceCollection.c"
-}
-
-
-void
-container_source_collection_detach_all_collections (ContainerSourceCollection* self)
-{
- GeeHashSet* _tmp13_;
-#line 227 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 1884 "ContainerSourceCollection.c"
- {
- GeeIterator* _collection_it = NULL;
- GeeHashSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = self->priv->attached_collections;
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _collection_it = _tmp1_;
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- while (TRUE) {
-#line 1897 "ContainerSourceCollection.c"
- GeeIterator* _tmp2_;
- SourceCollection* collection = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SourceCollection* _tmp5_;
- guint _tmp6_;
- SourceCollection* _tmp7_;
- guint _tmp8_;
- SourceCollection* _tmp9_;
- guint _tmp10_;
- SourceCollection* _tmp11_;
- guint _tmp12_;
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = _collection_it;
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- break;
-#line 1916 "ContainerSourceCollection.c"
- }
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _collection_it;
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp4_;
-#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = collection;
-#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_parse_name ("items-unlinking", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE);
-#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking, self);
-#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = collection;
-#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_parse_name ("items-relinked", TYPE_SOURCE_COLLECTION, &_tmp8_, NULL, FALSE);
-#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked, self);
-#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = collection;
-#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed, self);
-#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = collection;
-#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_parse_name ("unlinked-destroyed", TYPE_SOURCE_COLLECTION, &_tmp12_, NULL, FALSE);
-#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed, self);
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _data_collection_unref0 (collection);
-#line 1950 "ContainerSourceCollection.c"
- }
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_collection_it);
-#line 1954 "ContainerSourceCollection.c"
- }
-#line 235 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp13_ = self->priv->attached_collections;
-#line 235 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1960 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_container_contents_added (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked)
-{
-#line 20 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 20 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (added));
-#line 1974 "ContainerSourceCollection.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gboolean arg_3, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (n_param_values == 4);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data1 = closure->data;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data2 = param_values->data[0].v_pointer;
-#line 2000 "ContainerSourceCollection.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data1 = param_values->data[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data2 = closure->data;
-#line 2006 "ContainerSourceCollection.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boolean (param_values + 3), data2);
-#line 2012 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_container_contents_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* removed,
- gboolean unlinked)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 24 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (removed));
-#line 2026 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_container_contents_altered (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* added,
- gboolean relinked,
- GeeCollection* removed,
- gboolean unlinked)
-{
-#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 2044 "ContainerSourceCollection.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gboolean arg_3, gpointer arg_4, gboolean arg_5, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (n_param_values == 6);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data1 = closure->data;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data2 = param_values->data[0].v_pointer;
-#line 2070 "ContainerSourceCollection.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data1 = param_values->data[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data2 = closure->data;
-#line 2076 "ContainerSourceCollection.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boolean (param_values + 3), g_value_get_object (param_values + 4), g_value_get_boolean (param_values + 5), data2);
-#line 2082 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_real_backlink_to_container_removed (ContainerSourceCollection* self,
- ContainerSource* container,
- GeeCollection* sources)
-{
-#line 34 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 34 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 2095 "ContainerSourceCollection.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_return_if_fail (n_param_values == 3);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data1 = closure->data;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data2 = param_values->data[0].v_pointer;
-#line 2121 "ContainerSourceCollection.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data1 = param_values->data[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data2 = closure->data;
-#line 2127 "ContainerSourceCollection.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 2133 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_class_init (ContainerSourceCollectionClass * klass)
-{
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((DataCollectionClass *) klass)->finalize = container_source_collection_finalize;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_type_class_add_private (klass, sizeof (ContainerSourceCollectionPrivate));
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((SourceCollectionClass *) klass)->notify_backlink_removed = (void (*) (SourceCollection *, SourceBacklink*, GeeCollection*)) container_source_collection_real_notify_backlink_removed;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->notify_container_contents_added = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean)) container_source_collection_real_notify_container_contents_added;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->notify_container_contents_removed = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean)) container_source_collection_real_notify_container_contents_removed;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->notify_container_contents_altered = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean, GeeCollection*, gboolean)) container_source_collection_real_notify_container_contents_altered;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->notify_backlink_to_container_removed = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*)) container_source_collection_real_notify_backlink_to_container_removed;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->get_containers_holding_source = (GeeCollection* (*) (ContainerSourceCollection *, DataSource*)) container_source_collection_real_get_containers_holding_source;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->convert_backlink_to_container = (ContainerSource* (*) (ContainerSourceCollection *, SourceBacklink*)) container_source_collection_real_convert_backlink_to_container;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((SourceCollectionClass *) klass)->notify_item_destroyed = (void (*) (SourceCollection *, DataSource*)) container_source_collection_real_notify_item_destroyed;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->container_contents_added = container_source_collection_real_container_contents_added;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->container_contents_removed = container_source_collection_real_container_contents_removed;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->container_contents_altered = container_source_collection_real_container_contents_altered;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- ((ContainerSourceCollectionClass *) klass)->backlink_to_container_removed = container_source_collection_real_backlink_to_container_removed;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ADDED_SIGNAL] = g_signal_new ("container-contents-added", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, container_contents_added), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN, G_TYPE_NONE, 3, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL] = g_signal_new ("container-contents-removed", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, container_contents_removed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN, G_TYPE_NONE, 3, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("container-contents-altered", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, container_contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN, G_TYPE_NONE, 5, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL] = g_signal_new ("backlink-to-container-removed", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, backlink_to_container_removed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION);
-#line 2178 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_instance_init (ContainerSourceCollection * self)
-{
- GeeHashSet* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self->priv = CONTAINER_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 16 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = gee_hash_set_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 16 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self->priv->attached_collections = _tmp0_;
-#line 18 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = gee_hash_set_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 18 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self->priv->holding_tank = _tmp1_;
-#line 2197 "ContainerSourceCollection.c"
-}
-
-
-static void
-container_source_collection_finalize (DataCollection * obj)
-{
- ContainerSourceCollection * self;
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection);
-#line 46 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_detach_all_collections (self);
-#line 16 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (self->priv->attached_collections);
-#line 17 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (self->priv->backlink_name);
-#line 18 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (self->priv->holding_tank);
-#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- DATA_COLLECTION_CLASS (container_source_collection_parent_class)->finalize (obj);
-#line 2217 "ContainerSourceCollection.c"
-}
-
-
-GType
-container_source_collection_get_type (void)
-{
- static volatile gsize container_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&container_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ContainerSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) container_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ContainerSourceCollection), 0, (GInstanceInitFunc) container_source_collection_instance_init, NULL };
- GType container_source_collection_type_id;
- container_source_collection_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_COLLECTION, "ContainerSourceCollection", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&container_source_collection_type_id__volatile, container_source_collection_type_id);
- }
- return container_source_collection_type_id__volatile;
-}
-
-
-
diff --git a/src/core/DataCollection.c b/src/core/DataCollection.c
deleted file mode 100644
index f71e80c..0000000
--- a/src/core/DataCollection.c
+++ /dev/null
@@ -1,4077 +0,0 @@
-/* DataCollection.c generated by valac 0.40.4, the Vala compiler
- * generated from DataCollection.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_DATA_SET (data_set_get_type ())
-#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet))
-#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass))
-#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET))
-#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET))
-#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass))
-
-typedef struct _DataSet DataSet;
-typedef struct _DataSetClass DataSetClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_SINGLETON_COLLECTION (singleton_collection_get_type ())
-#define SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollection))
-#define SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass))
-#define IS_SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLETON_COLLECTION))
-#define IS_SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLETON_COLLECTION))
-#define SINGLETON_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass))
-
-typedef struct _SingletonCollection SingletonCollection;
-typedef struct _SingletonCollectionClass SingletonCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define DATA_COLLECTION_TYPE_MARKER_IMPL (data_collection_marker_impl_get_type ())
-#define DATA_COLLECTION_MARKER_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl))
-#define DATA_COLLECTION_MARKER_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImplClass))
-#define DATA_COLLECTION_IS_MARKER_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL))
-#define DATA_COLLECTION_IS_MARKER_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_COLLECTION_TYPE_MARKER_IMPL))
-#define DATA_COLLECTION_MARKER_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImplClass))
-
-typedef struct _DataCollectionMarkerImpl DataCollectionMarkerImpl;
-typedef struct _DataCollectionMarkerImplClass DataCollectionMarkerImplClass;
-typedef struct _DataCollectionMarkerImplPrivate DataCollectionMarkerImplPrivate;
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
-enum {
- DATA_COLLECTION_MARKER_IMPL_0_PROPERTY,
- DATA_COLLECTION_MARKER_IMPL_NUM_PROPERTIES
-};
-static GParamSpec* data_collection_marker_impl_properties[DATA_COLLECTION_MARKER_IMPL_NUM_PROPERTIES];
-typedef struct _ParamSpecDataCollection ParamSpecDataCollection;
-enum {
- DATA_COLLECTION_ITEMS_ADDED_SIGNAL,
- DATA_COLLECTION_ITEMS_REMOVED_SIGNAL,
- DATA_COLLECTION_CONTENTS_ALTERED_SIGNAL,
- DATA_COLLECTION_ITEMS_ALTERED_SIGNAL,
- DATA_COLLECTION_ORDERING_CHANGED_SIGNAL,
- DATA_COLLECTION_PROPERTY_SET_SIGNAL,
- DATA_COLLECTION_PROPERTY_CLEARED_SIGNAL,
- DATA_COLLECTION_FROZEN_SIGNAL,
- DATA_COLLECTION_THAWED_SIGNAL,
- DATA_COLLECTION_NUM_SIGNALS
-};
-static guint data_collection_signals[DATA_COLLECTION_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _DataCollectionPrivate {
- gchar* name;
- DataSet* dataset;
- GeeHashMap* properties;
- gint64 object_ordinal_generator;
- gint notifies_frozen;
- GeeHashMap* frozen_items_altered;
- gboolean fire_ordering_changed;
-};
-
-typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data);
-struct _DataCollectionMarkerImpl {
- GObject parent_instance;
- DataCollectionMarkerImplPrivate * priv;
- DataCollection* owner;
- GeeHashSet* marked;
- gint freeze_count;
-};
-
-struct _DataCollectionMarkerImplClass {
- GObjectClass parent_class;
-};
-
-typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data);
-struct _ParamSpecDataCollection {
- GParamSpec parent_instance;
-};
-
-
-static gpointer data_collection_parent_class = NULL;
-static gpointer data_collection_marker_impl_parent_class = NULL;
-static MarkerIface * data_collection_marker_impl_marker_parent_iface = NULL;
-
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-gpointer data_set_ref (gpointer instance);
-void data_set_unref (gpointer instance);
-GParamSpec* param_spec_data_set (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_set (GValue* value,
- gpointer v_object);
-void value_take_data_set (GValue* value,
- gpointer v_object);
-gpointer value_get_data_set (const GValue* value);
-GType data_set_get_type (void) G_GNUC_CONST;
-#define DATA_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_COLLECTION, DataCollectionPrivate))
-DataSet* data_set_new (void);
-DataSet* data_set_construct (GType object_type);
-static GValue* _g_value_dup (GValue* self);
-static void _vala_GValue_free (GValue* self);
-#define DATA_COLLECTION_INVALID_OBJECT_ORDINAL ((gint64) -1)
-DataCollection* data_collection_new (const gchar* name);
-DataCollection* data_collection_construct (GType object_type,
- const gchar* name);
-gchar* data_collection_to_string (DataCollection* self);
-static gchar* data_collection_real_to_string (DataCollection* self);
-gint data_collection_get_count (DataCollection* self);
-void data_collection_notify_items_added (DataCollection* self,
- GeeIterable* added);
-static void data_collection_real_notify_items_added (DataCollection* self,
- GeeIterable* added);
-void data_collection_notify_items_removed (DataCollection* self,
- GeeIterable* removed);
-static void data_collection_real_notify_items_removed (DataCollection* self,
- GeeIterable* removed);
-void data_collection_notify_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void data_collection_real_notify_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed);
-void data_collection_notify_items_altered (DataCollection* self,
- GeeMap* items);
-static void data_collection_real_notify_items_altered (DataCollection* self,
- GeeMap* items);
-void data_collection_notify_ordering_changed (DataCollection* self);
-static void data_collection_real_notify_ordering_changed (DataCollection* self);
-void data_collection_notify_property_set (DataCollection* self,
- const gchar* name,
- GValue* old,
- GValue* val);
-static void data_collection_real_notify_property_set (DataCollection* self,
- const gchar* name,
- GValue* old,
- GValue* val);
-void data_collection_notify_property_cleared (DataCollection* self,
- const gchar* name);
-static void data_collection_real_notify_property_cleared (DataCollection* self,
- const gchar* name);
-GeeCollection* data_collection_get_singleton (DataObject* object);
-SingletonCollection* singleton_collection_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer object);
-SingletonCollection* singleton_collection_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer object);
-GType singleton_collection_get_type (void) G_GNUC_CONST;
-GeeMap* data_collection_get_alteration_singleton (DataObject* object,
- Alteration* alteration);
-gboolean data_collection_valid_type (DataCollection* self,
- DataObject* object);
-static gboolean data_collection_real_valid_type (DataCollection* self,
- DataObject* object);
-Comparator data_collection_get_comparator (DataCollection* self,
- void** result_target);
-Comparator data_set_get_comparator (DataSet* self,
- void** result_target);
-ComparatorPredicate data_collection_get_comparator_predicate (DataCollection* self,
- void** result_target);
-ComparatorPredicate data_set_get_comparator_predicate (DataSet* self,
- void** result_target);
-void data_collection_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-static void data_collection_real_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-void data_set_set_comparator (DataSet* self,
- Comparator user_comparator,
- void* user_comparator_target,
- ComparatorPredicate comparator_predicate,
- void* comparator_predicate_target);
-void data_collection_reset_comparator (DataCollection* self);
-static void data_collection_real_reset_comparator (DataCollection* self);
-void data_set_reset_comparator (DataSet* self);
-GeeCollection* data_collection_get_all (DataCollection* self);
-static GeeCollection* data_collection_real_get_all (DataCollection* self);
-GeeList* data_set_get_all (DataSet* self);
-DataSet* data_collection_get_dataset_copy (DataCollection* self);
-DataSet* data_set_copy (DataSet* self);
-static gint data_collection_real_get_count (DataCollection* self);
-gint data_set_get_count (DataSet* self);
-DataObject* data_collection_get_at (DataCollection* self,
- gint index);
-static DataObject* data_collection_real_get_at (DataCollection* self,
- gint index);
-DataObject* data_set_get_at (DataSet* self,
- gint index);
-gint data_collection_index_of (DataCollection* self,
- DataObject* object);
-static gint data_collection_real_index_of (DataCollection* self,
- DataObject* object);
-gint data_set_index_of (DataSet* self,
- DataObject* object);
-gboolean data_collection_contains (DataCollection* self,
- DataObject* object);
-static gboolean data_collection_real_contains (DataCollection* self,
- DataObject* object);
-static gboolean data_collection_internal_contains (DataCollection* self,
- DataObject* object);
-gboolean data_set_contains (DataSet* self,
- DataObject* object);
-DataCollection* data_object_get_membership (DataObject* self);
-static void data_collection_internal_add (DataCollection* self,
- DataObject* object);
-void data_object_internal_set_membership (DataObject* self,
- DataCollection* collection,
- gint64 ordinal);
-gboolean data_set_add (DataSet* self,
- DataObject* object);
-static void data_collection_internal_add_many (DataCollection* self,
- GeeList* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-gboolean data_set_add_many (DataSet* self,
- GeeCollection* objects);
-static void data_collection_internal_remove (DataCollection* self,
- DataObject* object);
-gboolean data_set_remove (DataSet* self,
- DataObject* object);
-void data_object_internal_clear_membership (DataObject* self);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-static gboolean data_collection_real_add (DataCollection* self,
- DataObject* object);
-gchar* data_object_to_string (DataObject* self);
-void data_object_notify_membership_changed (DataObject* self,
- DataCollection* collection);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-static GeeCollection* data_collection_real_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-Marker* data_collection_start_marking (DataCollection* self);
-static DataCollectionMarkerImpl* data_collection_marker_impl_new (DataCollection* owner);
-static DataCollectionMarkerImpl* data_collection_marker_impl_construct (GType object_type,
- DataCollection* owner);
-static GType data_collection_marker_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-Marker* data_collection_mark (DataCollection* self,
- DataObject* object);
-void marker_mark (Marker* self,
- DataObject* object);
-Marker* data_collection_mark_many (DataCollection* self,
- GeeCollection* objects);
-void marker_mark_many (Marker* self,
- GeeCollection* list);
-void data_collection_act_on_marked (DataCollection* self,
- Marker* m,
- MarkedAction action,
- void* action_target,
- ProgressMonitor monitor,
- void* monitor_target,
- GObject* user);
-static gboolean data_collection_marker_impl_is_valid (DataCollectionMarkerImpl* self,
- DataCollection* collection);
-static void data_collection_marker_impl_freeze (DataCollectionMarkerImpl* self);
-static void data_collection_marker_impl_finished (DataCollectionMarkerImpl* self);
-void data_collection_remove_marked (DataCollection* self,
- Marker* m);
-static void data_collection_real_remove_marked (DataCollection* self,
- Marker* m);
-void data_collection_clear (DataCollection* self);
-static void data_collection_real_clear (DataCollection* self);
-void data_collection_close (DataCollection* self);
-static void data_collection_real_close (DataCollection* self);
-void data_collection_internal_notify_altered (DataCollection* self,
- DataObject* object,
- Alteration* alteration);
-gboolean data_set_resort_object (DataSet* self,
- DataObject* object,
- Alteration* alteration);
-gboolean data_collection_are_notifications_frozen (DataCollection* self);
-Alteration* alteration_compress (Alteration* self,
- Alteration* other);
-GValue* data_collection_get_property (DataCollection* self,
- const gchar* name);
-void data_collection_set_property (DataCollection* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target);
-gboolean bool_value_equals (GValue* a,
- GValue* b);
-static gboolean _bool_value_equals_value_equal_func (GValue* a,
- GValue* b,
- gpointer self);
-gboolean int_value_equals (GValue* a,
- GValue* b);
-static gboolean _int_value_equals_value_equal_func (GValue* a,
- GValue* b,
- gpointer self);
-void data_object_notify_collection_property_set (DataObject* self,
- const gchar* name,
- GValue* old,
- GValue* val);
-void data_collection_clear_property (DataCollection* self,
- const gchar* name);
-void data_object_notify_collection_property_cleared (DataObject* self,
- const gchar* name);
-void data_collection_freeze_notifications (DataCollection* self);
-void data_collection_notify_frozen (DataCollection* self);
-void data_collection_thaw_notifications (DataCollection* self);
-void data_collection_notify_thawed (DataCollection* self);
-static void data_collection_real_notify_frozen (DataCollection* self);
-static void data_collection_real_notify_thawed (DataCollection* self);
-static void data_collection_real_items_added (DataCollection* self,
- GeeIterable* added);
-static void data_collection_real_items_removed (DataCollection* self,
- GeeIterable* removed);
-static void data_collection_real_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void data_collection_real_items_altered (DataCollection* self,
- GeeMap* items);
-static void data_collection_real_ordering_changed (DataCollection* self);
-static void data_collection_real_property_set (DataCollection* self,
- const gchar* name,
- GValue* old,
- GValue* val);
-static void g_cclosure_user_marshal_VOID__STRING_POINTER_BOXED (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void data_collection_real_property_cleared (DataCollection* self,
- const gchar* name);
-static void data_collection_real_frozen (DataCollection* self);
-static void data_collection_real_thawed (DataCollection* self);
-static void data_collection_marker_impl_on_items_removed (DataCollectionMarkerImpl* self,
- GeeIterable* removed);
-static void _data_collection_marker_impl_on_items_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self);
-static void data_collection_marker_impl_real_mark (Marker* base,
- DataObject* object);
-static void data_collection_marker_impl_real_unmark (Marker* base,
- DataObject* object);
-static gboolean data_collection_marker_impl_real_toggle (Marker* base,
- DataObject* object);
-static void data_collection_marker_impl_real_mark_many (Marker* base,
- GeeCollection* list);
-static void data_collection_marker_impl_real_unmark_many (Marker* base,
- GeeCollection* list);
-static void data_collection_marker_impl_real_mark_all (Marker* base);
-static gint data_collection_marker_impl_real_get_count (Marker* base);
-static GeeCollection* data_collection_marker_impl_real_get_all (Marker* base);
-static void data_collection_marker_impl_finalize (GObject * obj);
-static void data_collection_finalize (DataCollection * obj);
-
-
-static GValue*
-_g_value_dup (GValue* self)
-{
-#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return g_boxed_copy (G_TYPE_VALUE, self);
-#line 528 "DataCollection.c"
-}
-
-
-static void
-_vala_GValue_free (GValue* self)
-{
-#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_value_unset (self);
-#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_free (self);
-#line 539 "DataCollection.c"
-}
-
-
-DataCollection*
-data_collection_construct (GType object_type,
- const gchar* name)
-{
- DataCollection* self = NULL;
- gchar* _tmp0_;
-#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = (DataCollection*) g_type_create_instance (object_type);
-#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = g_strdup (name);
-#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_free0 (self->priv->name);
-#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->name = _tmp0_;
-#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return self;
-#line 561 "DataCollection.c"
-}
-
-
-DataCollection*
-data_collection_new (const gchar* name)
-{
-#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return data_collection_construct (TYPE_DATA_COLLECTION, name);
-#line 570 "DataCollection.c"
-}
-
-
-static gchar*
-data_collection_real_to_string (DataCollection* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->name;
-#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = g_strdup_printf ("%s (%d)", _tmp0_, data_collection_get_count (self));
-#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = _tmp1_;
-#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 588 "DataCollection.c"
-}
-
-
-gchar*
-data_collection_to_string (DataCollection* self)
-{
-#line 167 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 167 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->to_string (self);
-#line 599 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_items_added (DataCollection* self,
- GeeIterable* added)
-{
-#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 173 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_ITEMS_ADDED_SIGNAL], 0, added);
-#line 611 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_items_added (DataCollection* self,
- GeeIterable* added)
-{
-#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_items_added (self, added);
-#line 623 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_items_removed (DataCollection* self,
- GeeIterable* removed)
-{
-#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 177 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_ITEMS_REMOVED_SIGNAL], 0, removed);
-#line 635 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_items_removed (DataCollection* self,
- GeeIterable* removed)
-{
-#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_items_removed (self, removed);
-#line 647 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
-#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 182 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_CONTENTS_ALTERED_SIGNAL], 0, added, removed);
-#line 662 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
-#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_contents_altered (self, added, removed);
-#line 675 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_items_altered (DataCollection* self,
- GeeMap* items)
-{
-#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_MAP (items));
-#line 186 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_ITEMS_ALTERED_SIGNAL], 0, items);
-#line 687 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_items_altered (DataCollection* self,
- GeeMap* items)
-{
-#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_items_altered (self, items);
-#line 699 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_ordering_changed (DataCollection* self)
-{
-#line 190 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_ORDERING_CHANGED_SIGNAL], 0);
-#line 708 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_ordering_changed (DataCollection* self)
-{
-#line 189 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 189 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_ordering_changed (self);
-#line 719 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_property_set (DataCollection* self,
- const gchar* name,
- GValue* old,
- GValue* val)
-{
- GValue _tmp0_;
-#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (name != NULL);
-#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (val != NULL);
-#line 194 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = *val;
-#line 194 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_PROPERTY_SET_SIGNAL], 0, name, old, &_tmp0_);
-#line 738 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_property_set (DataCollection* self,
- const gchar* name,
- GValue* old,
- GValue* val)
-{
-#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_property_set (self, name, old, val);
-#line 752 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_property_cleared (DataCollection* self,
- const gchar* name)
-{
-#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (name != NULL);
-#line 198 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_PROPERTY_CLEARED_SIGNAL], 0, name);
-#line 764 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_property_cleared (DataCollection* self,
- const gchar* name)
-{
-#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_property_cleared (self, name);
-#line 776 "DataCollection.c"
-}
-
-
-GeeCollection*
-data_collection_get_singleton (DataObject* object)
-{
- GeeCollection* result = NULL;
- SingletonCollection* _tmp0_;
-#line 206 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), NULL);
-#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = singleton_collection_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, object);
-#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 793 "DataCollection.c"
-}
-
-
-GeeMap*
-data_collection_get_alteration_singleton (DataObject* object,
- Alteration* alteration)
-{
- GeeMap* result = NULL;
- GeeMap* map = NULL;
- GeeHashMap* _tmp0_;
-#line 210 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), NULL);
-#line 210 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), NULL);
-#line 212 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = gee_hash_map_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_ALTERATION, (GBoxedCopyFunc) alteration_ref, (GDestroyNotify) alteration_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 212 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- map = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
-#line 213 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_map_set (map, object, alteration);
-#line 215 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = map;
-#line 215 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 818 "DataCollection.c"
-}
-
-
-static gboolean
-data_collection_real_valid_type (DataCollection* self,
- DataObject* object)
-{
- gboolean result = FALSE;
-#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 219 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = TRUE;
-#line 219 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 833 "DataCollection.c"
-}
-
-
-gboolean
-data_collection_valid_type (DataCollection* self,
- DataObject* object)
-{
-#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
-#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->valid_type (self, object);
-#line 845 "DataCollection.c"
-}
-
-
-Comparator
-data_collection_get_comparator (DataCollection* self,
- void** result_target)
-{
- Comparator result = NULL;
- DataSet* _tmp0_;
- void* _tmp1_;
- Comparator _tmp2_;
- Comparator _tmp3_;
- void* _tmp3__target;
-#line 222 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = data_set_get_comparator (_tmp0_, &_tmp1_);
-#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = _tmp2_;
-#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3__target = _tmp1_;
-#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- *result_target = _tmp3__target;
-#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = _tmp3_;
-#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 875 "DataCollection.c"
-}
-
-
-ComparatorPredicate
-data_collection_get_comparator_predicate (DataCollection* self,
- void** result_target)
-{
- ComparatorPredicate result = NULL;
- DataSet* _tmp0_;
- void* _tmp1_;
- ComparatorPredicate _tmp2_;
- ComparatorPredicate _tmp3_;
- void* _tmp3__target;
-#line 226 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = data_set_get_comparator_predicate (_tmp0_, &_tmp1_);
-#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = _tmp2_;
-#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3__target = _tmp1_;
-#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- *result_target = _tmp3__target;
-#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = _tmp3_;
-#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 905 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target)
-{
- DataSet* _tmp0_;
-#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_set_set_comparator (_tmp0_, comparator, comparator_target, predicate, predicate_target);
-#line 232 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_ordering_changed (self);
-#line 923 "DataCollection.c"
-}
-
-
-void
-data_collection_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target)
-{
-#line 230 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 230 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->set_comparator (self, comparator, comparator_target, predicate, predicate_target);
-#line 938 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_reset_comparator (DataCollection* self)
-{
- DataSet* _tmp0_;
-#line 237 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 237 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_set_reset_comparator (_tmp0_);
-#line 238 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_ordering_changed (self);
-#line 952 "DataCollection.c"
-}
-
-
-void
-data_collection_reset_comparator (DataCollection* self)
-{
-#line 236 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 236 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->reset_comparator (self);
-#line 963 "DataCollection.c"
-}
-
-
-static GeeCollection*
-data_collection_real_get_all (DataCollection* self)
-{
- GeeCollection* result = NULL;
- DataSet* _tmp0_;
- GeeList* _tmp1_;
-#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = data_set_get_all (_tmp0_);
-#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 981 "DataCollection.c"
-}
-
-
-GeeCollection*
-data_collection_get_all (DataCollection* self)
-{
-#line 241 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 241 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->get_all (self);
-#line 992 "DataCollection.c"
-}
-
-
-DataSet*
-data_collection_get_dataset_copy (DataCollection* self)
-{
- DataSet* result = NULL;
- DataSet* _tmp0_;
- DataSet* _tmp1_;
-#line 245 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = data_set_copy (_tmp0_);
-#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = _tmp1_;
-#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1012 "DataCollection.c"
-}
-
-
-static gint
-data_collection_real_get_count (DataCollection* self)
-{
- gint result = 0;
- DataSet* _tmp0_;
-#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = data_set_get_count (_tmp0_);
-#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1027 "DataCollection.c"
-}
-
-
-gint
-data_collection_get_count (DataCollection* self)
-{
-#line 249 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), 0);
-#line 249 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->get_count (self);
-#line 1038 "DataCollection.c"
-}
-
-
-static DataObject*
-data_collection_real_get_at (DataCollection* self,
- gint index)
-{
- DataObject* result = NULL;
- DataSet* _tmp0_;
- DataObject* _tmp1_;
-#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = data_set_get_at (_tmp0_, index);
-#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = _tmp1_;
-#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1057 "DataCollection.c"
-}
-
-
-DataObject*
-data_collection_get_at (DataCollection* self,
- gint index)
-{
-#line 253 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 253 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->get_at (self, index);
-#line 1069 "DataCollection.c"
-}
-
-
-static gint
-data_collection_real_index_of (DataCollection* self,
- DataObject* object)
-{
- gint result = 0;
- DataSet* _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), 0);
-#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = data_set_index_of (_tmp0_, object);
-#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1087 "DataCollection.c"
-}
-
-
-gint
-data_collection_index_of (DataCollection* self,
- DataObject* object)
-{
-#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), 0);
-#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->index_of (self, object);
-#line 1099 "DataCollection.c"
-}
-
-
-static gboolean
-data_collection_real_contains (DataCollection* self,
- DataObject* object)
-{
- gboolean result = FALSE;
-#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 262 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = data_collection_internal_contains (self, object);
-#line 262 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1114 "DataCollection.c"
-}
-
-
-gboolean
-data_collection_contains (DataCollection* self,
- DataObject* object)
-{
-#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
-#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->contains (self, object);
-#line 1126 "DataCollection.c"
-}
-
-
-static gboolean
-data_collection_internal_contains (DataCollection* self,
- DataObject* object)
-{
- gboolean result = FALSE;
- DataSet* _tmp0_;
- DataCollection* _tmp1_;
- DataCollection* _tmp2_;
-#line 267 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
-#line 267 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 268 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 268 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!data_set_contains (_tmp0_, object)) {
-#line 269 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = FALSE;
-#line 269 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1150 "DataCollection.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = data_object_get_membership (object);
-#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = _tmp1_;
-#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (_tmp2_ == self, "object.get_membership() == this");
-#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _data_collection_unref0 (_tmp2_);
-#line 273 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = TRUE;
-#line 273 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1164 "DataCollection.c"
-}
-
-
-static void
-data_collection_internal_add (DataCollection* self,
- DataObject* object)
-{
- gint64 _tmp0_;
- gboolean added = FALSE;
- DataSet* _tmp1_;
-#line 276 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 276 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_OBJECT (object));
-#line 277 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_valid_type (self, object), "valid_type(object)");
-#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->object_ordinal_generator;
-#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->object_ordinal_generator = _tmp0_ + 1;
-#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_internal_set_membership (object, self, _tmp0_);
-#line 281 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->priv->dataset;
-#line 281 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- added = data_set_add (_tmp1_, object);
-#line 282 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (added, "added");
-#line 1193 "DataCollection.c"
-}
-
-
-static void
-data_collection_internal_add_many (DataCollection* self,
- GeeList* objects,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- gint count = 0;
- gint _tmp0_;
- gint _tmp1_;
- gboolean added = FALSE;
- DataSet* _tmp13_;
-#line 285 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 285 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_LIST (objects));
-#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_COLLECTION, GeeCollection));
-#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- count = _tmp1_;
-#line 1218 "DataCollection.c"
- {
- gint ctr = 0;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ctr = 0;
-#line 1223 "DataCollection.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = TRUE;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 1230 "DataCollection.c"
- gint _tmp4_;
- gint _tmp5_;
- DataObject* object = NULL;
- gint _tmp6_;
- gpointer _tmp7_;
- DataObject* _tmp8_;
- DataObject* _tmp9_;
- gint64 _tmp10_;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!_tmp2_) {
-#line 1241 "DataCollection.c"
- gint _tmp3_;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = ctr;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ctr = _tmp3_ + 1;
-#line 1247 "DataCollection.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = FALSE;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = ctr;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = count;
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!(_tmp4_ < _tmp5_)) {
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 1259 "DataCollection.c"
- }
-#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = ctr;
-#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = gee_list_get (objects, _tmp6_);
-#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp7_;
-#line 289 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = object;
-#line 289 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_valid_type (self, _tmp8_), "valid_type(object)");
-#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = object;
-#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp10_ = self->priv->object_ordinal_generator;
-#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->object_ordinal_generator = _tmp10_ + 1;
-#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_internal_set_membership (_tmp9_, self, _tmp10_);
-#line 293 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (monitor != NULL) {
-#line 1281 "DataCollection.c"
- gint _tmp11_;
- gint _tmp12_;
-#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = ctr;
-#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp12_ = count;
-#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- monitor ((guint64) _tmp11_, (guint64) _tmp12_, TRUE, monitor_target);
-#line 1290 "DataCollection.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 1294 "DataCollection.c"
- }
- }
- }
-#line 297 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp13_ = self->priv->dataset;
-#line 297 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- added = data_set_add_many (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_COLLECTION, GeeCollection));
-#line 298 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (added, "added");
-#line 1304 "DataCollection.c"
-}
-
-
-static void
-data_collection_internal_remove (DataCollection* self,
- DataObject* object)
-{
- gboolean removed = FALSE;
- DataSet* _tmp0_;
-#line 301 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 301 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_OBJECT (object));
-#line 302 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 302 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- removed = data_set_remove (_tmp0_, object);
-#line 303 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (removed, "removed");
-#line 305 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_internal_clear_membership (object);
-#line 1326 "DataCollection.c"
-}
-
-
-static gboolean
-data_collection_real_add (DataCollection* self,
- DataObject* object)
-{
- gboolean result = FALSE;
- GeeCollection* added = NULL;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
-#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 310 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (data_collection_internal_contains (self, object)) {
-#line 1343 "DataCollection.c"
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = data_collection_to_string (self);
-#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = _tmp0_;
-#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = data_object_to_string (object);
-#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = _tmp2_;
-#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_debug ("DataCollection.vala:311: %s cannot add %s: already present", _tmp1_, _tmp3_);
-#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_free0 (_tmp3_);
-#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_free0 (_tmp1_);
-#line 313 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = FALSE;
-#line 313 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1366 "DataCollection.c"
- }
-#line 316 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_internal_add (self, object);
-#line 319 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = data_collection_get_singleton (object);
-#line 319 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- added = _tmp4_;
-#line 320 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = added;
-#line 320 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 321 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = added;
-#line 321 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_contents_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), NULL);
-#line 324 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_notify_membership_changed (object, self);
-#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = TRUE;
-#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (added);
-#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1390 "DataCollection.c"
-}
-
-
-gboolean
-data_collection_add (DataCollection* self,
- DataObject* object)
-{
-#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
-#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->add (self, object);
-#line 1402 "DataCollection.c"
-}
-
-
-static GeeCollection*
-data_collection_real_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- GeeCollection* result = NULL;
- GeeArrayList* added = NULL;
- GeeArrayList* _tmp0_;
- gint count = 0;
- GeeArrayList* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- GeeArrayList* _tmp17_;
- GeeArrayList* _tmp18_;
- GeeArrayList* _tmp19_;
-#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (objects), NULL);
-#line 332 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 332 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- added = _tmp0_;
-#line 1429 "DataCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp1_;
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ITERABLE, GeeIterable));
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_it = _tmp1_;
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 1439 "DataCollection.c"
- GeeIterator* _tmp2_;
- DataObject* object = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- DataObject* _tmp5_;
- GeeArrayList* _tmp11_;
- DataObject* _tmp12_;
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = _object_it;
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 1453 "DataCollection.c"
- }
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = _object_it;
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp4_;
-#line 334 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = object;
-#line 334 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (data_collection_internal_contains (self, _tmp5_)) {
-#line 1465 "DataCollection.c"
- gchar* _tmp6_;
- gchar* _tmp7_;
- DataObject* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = data_collection_to_string (self);
-#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = _tmp6_;
-#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = object;
-#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = data_object_to_string (_tmp8_);
-#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp10_ = _tmp9_;
-#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_debug ("DataCollection.vala:335: %s cannot add %s: already present", _tmp7_, _tmp10_);
-#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_free0 (_tmp10_);
-#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_free0 (_tmp7_);
-#line 337 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 337 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- continue;
-#line 1491 "DataCollection.c"
- }
-#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = added;
-#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp12_ = object;
-#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_);
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 1501 "DataCollection.c"
- }
-#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_it);
-#line 1505 "DataCollection.c"
- }
-#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp13_ = added;
-#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp14_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp15_ = _tmp14_;
-#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- count = _tmp15_;
-#line 344 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp16_ = count;
-#line 344 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp16_ == 0) {
-#line 345 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection);
-#line 345 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1523 "DataCollection.c"
- }
-#line 347 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp17_ = added;
-#line 347 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_internal_add_many (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_LIST, GeeList), monitor, monitor_target);
-#line 350 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp18_ = added;
-#line 350 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 351 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp19_ = added;
-#line 351 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_contents_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ITERABLE, GeeIterable), NULL);
-#line 1537 "DataCollection.c"
- {
- gint ctr = 0;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ctr = 0;
-#line 1542 "DataCollection.c"
- {
- gboolean _tmp20_ = FALSE;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp20_ = TRUE;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 1549 "DataCollection.c"
- gint _tmp22_;
- gint _tmp23_;
- GeeArrayList* _tmp24_;
- gint _tmp25_;
- gpointer _tmp26_;
- DataObject* _tmp27_;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!_tmp20_) {
-#line 1558 "DataCollection.c"
- gint _tmp21_;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp21_ = ctr;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ctr = _tmp21_ + 1;
-#line 1564 "DataCollection.c"
- }
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp20_ = FALSE;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp22_ = ctr;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp23_ = count;
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!(_tmp22_ < _tmp23_)) {
-#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 1576 "DataCollection.c"
- }
-#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp24_ = added;
-#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp25_ = ctr;
-#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp26_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp25_);
-#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp27_ = (DataObject*) _tmp26_;
-#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_notify_membership_changed (_tmp27_, self);
-#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_tmp27_);
-#line 1590 "DataCollection.c"
- }
- }
- }
-#line 357 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection);
-#line 357 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1598 "DataCollection.c"
-}
-
-
-GeeCollection*
-data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target)
-{
-#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return DATA_COLLECTION_GET_CLASS (self)->add_many (self, objects, monitor, monitor_target);
-#line 1612 "DataCollection.c"
-}
-
-
-Marker*
-data_collection_start_marking (DataCollection* self)
-{
- Marker* result = NULL;
- DataCollectionMarkerImpl* _tmp0_;
-#line 361 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = data_collection_marker_impl_new (self);
-#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker);
-#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1629 "DataCollection.c"
-}
-
-
-Marker*
-data_collection_mark (DataCollection* self,
- DataObject* object)
-{
- Marker* result = NULL;
- Marker* marker = NULL;
- DataCollectionMarkerImpl* _tmp0_;
-#line 366 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 366 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), NULL);
-#line 367 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = data_collection_marker_impl_new (self);
-#line 367 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- marker = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker);
-#line 368 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- marker_mark (marker, object);
-#line 370 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = marker;
-#line 370 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1654 "DataCollection.c"
-}
-
-
-Marker*
-data_collection_mark_many (DataCollection* self,
- GeeCollection* objects)
-{
- Marker* result = NULL;
- Marker* marker = NULL;
- DataCollectionMarkerImpl* _tmp0_;
-#line 374 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 374 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (objects), NULL);
-#line 375 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = data_collection_marker_impl_new (self);
-#line 375 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- marker = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker);
-#line 376 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- marker_mark_many (marker, objects);
-#line 378 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = marker;
-#line 378 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 1679 "DataCollection.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1688 "DataCollection.c"
-}
-
-
-void
-data_collection_act_on_marked (DataCollection* self,
- Marker* m,
- MarkedAction action,
- void* action_target,
- ProgressMonitor monitor,
- void* monitor_target,
- GObject* user)
-{
- DataCollectionMarkerImpl* marker = NULL;
- DataCollectionMarkerImpl* _tmp0_;
- DataCollectionMarkerImpl* _tmp1_;
- DataCollectionMarkerImpl* _tmp2_;
- guint64 count = 0ULL;
- guint64 total = 0ULL;
- DataCollectionMarkerImpl* _tmp3_;
- GeeHashSet* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- DataCollectionMarkerImpl* _tmp21_;
-#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_MARKER (m));
-#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail ((user == NULL) || G_IS_OBJECT (user));
-#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (m, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl));
-#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- marker = _tmp0_;
-#line 387 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = marker;
-#line 387 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_marker_impl_is_valid (_tmp1_, self), "marker.is_valid(this)");
-#line 390 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = marker;
-#line 390 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_marker_impl_freeze (_tmp2_);
-#line 392 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- count = (guint64) 0;
-#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = marker;
-#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = _tmp3_->marked;
-#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = _tmp5_;
-#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- total = (guint64) _tmp6_;
-#line 1742 "DataCollection.c"
- {
- GeeIterator* _object_it = NULL;
- DataCollectionMarkerImpl* _tmp7_;
- GeeHashSet* _tmp8_;
- GeeIterator* _tmp9_;
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = marker;
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = _tmp7_->marked;
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_it = _tmp9_;
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 1758 "DataCollection.c"
- GeeIterator* _tmp10_;
- DataObject* object = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- DataObject* _tmp13_;
- DataObject* _tmp17_;
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp10_ = _object_it;
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 1771 "DataCollection.c"
- }
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = _object_it;
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp12_;
-#line 398 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp13_ = object;
-#line 398 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!data_collection_internal_contains (self, _tmp13_)) {
-#line 1783 "DataCollection.c"
- DataObject* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp14_ = object;
-#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp15_ = data_object_to_string (_tmp14_);
-#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp16_ = _tmp15_;
-#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_warning ("DataCollection.vala:399: act_on_marked: marker holding ref to unknown " \
-"%s", _tmp16_);
-#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_free0 (_tmp16_);
-#line 401 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 401 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- continue;
-#line 1801 "DataCollection.c"
- }
-#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp17_ = object;
-#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!action (_tmp17_, user, action_target)) {
-#line 405 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 405 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 1811 "DataCollection.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (monitor != NULL) {
-#line 1815 "DataCollection.c"
- guint64 _tmp18_;
- guint64 _tmp19_;
- guint64 _tmp20_;
-#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp18_ = count;
-#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- count = _tmp18_ + 1;
-#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp19_ = count;
-#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp20_ = total;
-#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!monitor (_tmp19_, _tmp20_, TRUE, monitor_target)) {
-#line 409 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 409 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 1833 "DataCollection.c"
- }
- }
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 1838 "DataCollection.c"
- }
-#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_it);
-#line 1842 "DataCollection.c"
- }
-#line 414 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp21_ = marker;
-#line 414 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_marker_impl_finished (_tmp21_);
-#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (marker);
-#line 1850 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_remove_marked (DataCollection* self,
- Marker* m)
-{
- DataCollectionMarkerImpl* marker = NULL;
- DataCollectionMarkerImpl* _tmp0_;
- DataCollectionMarkerImpl* _tmp1_;
- DataCollectionMarkerImpl* _tmp2_;
- GeeArrayList* skipped = NULL;
- GeeArrayList* _tmp18_;
- DataCollectionMarkerImpl* _tmp22_;
- GeeHashSet* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- DataCollectionMarkerImpl* _tmp37_;
-#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_MARKER (m));
-#line 420 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (m, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl));
-#line 420 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- marker = _tmp0_;
-#line 422 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = marker;
-#line 422 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_marker_impl_is_valid (_tmp1_, self), "marker.is_valid(this)");
-#line 425 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = marker;
-#line 425 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_marker_impl_freeze (_tmp2_);
-#line 428 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- skipped = NULL;
-#line 1885 "DataCollection.c"
- {
- GeeIterator* _object_it = NULL;
- DataCollectionMarkerImpl* _tmp3_;
- GeeHashSet* _tmp4_;
- GeeIterator* _tmp5_;
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = marker;
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = _tmp3_->marked;
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_it = _tmp5_;
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 1901 "DataCollection.c"
- GeeIterator* _tmp6_;
- DataObject* object = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- DataObject* _tmp9_;
- DataObject* _tmp17_;
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = _object_it;
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 1914 "DataCollection.c"
- }
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = _object_it;
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp8_;
-#line 431 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = object;
-#line 431 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!data_collection_internal_contains (self, _tmp9_)) {
-#line 1926 "DataCollection.c"
- DataObject* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- GeeArrayList* _tmp13_;
- GeeArrayList* _tmp15_;
- DataObject* _tmp16_;
-#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp10_ = object;
-#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = data_object_to_string (_tmp10_);
-#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp12_ = _tmp11_;
-#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_warning ("DataCollection.vala:432: remove_marked: marker holding ref to unknown " \
-"%s", _tmp12_);
-#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_free0 (_tmp12_);
-#line 434 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp13_ = skipped;
-#line 434 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp13_ == NULL) {
-#line 1947 "DataCollection.c"
- GeeArrayList* _tmp14_;
-#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp14_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (skipped);
-#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- skipped = _tmp14_;
-#line 1955 "DataCollection.c"
- }
-#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp15_ = skipped;
-#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp16_ = object;
-#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_);
-#line 439 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 439 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- continue;
-#line 1967 "DataCollection.c"
- }
-#line 442 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp17_ = object;
-#line 442 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_internal_remove (self, _tmp17_);
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 1975 "DataCollection.c"
- }
-#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_it);
-#line 1979 "DataCollection.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp18_ = skipped;
-#line 445 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp18_ != NULL) {
-#line 1985 "DataCollection.c"
- DataCollectionMarkerImpl* _tmp19_;
- GeeHashSet* _tmp20_;
- GeeArrayList* _tmp21_;
-#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp19_ = marker;
-#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp20_ = _tmp19_->marked;
-#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp21_ = skipped;
-#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1997 "DataCollection.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp22_ = marker;
-#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp23_ = _tmp22_->marked;
-#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp25_ = _tmp24_;
-#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp25_ > 0) {
-#line 2009 "DataCollection.c"
- DataCollectionMarkerImpl* _tmp26_;
- GeeHashSet* _tmp27_;
- DataCollectionMarkerImpl* _tmp28_;
- GeeHashSet* _tmp29_;
-#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp26_ = marker;
-#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp27_ = _tmp26_->marked;
-#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_items_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp28_ = marker;
-#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp29_ = _tmp28_->marked;
-#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2026 "DataCollection.c"
- {
- GeeIterator* _object_it = NULL;
- DataCollectionMarkerImpl* _tmp30_;
- GeeHashSet* _tmp31_;
- GeeIterator* _tmp32_;
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp30_ = marker;
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp31_ = _tmp30_->marked;
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp32_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_it = _tmp32_;
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 2042 "DataCollection.c"
- GeeIterator* _tmp33_;
- DataObject* object = NULL;
- GeeIterator* _tmp34_;
- gpointer _tmp35_;
- DataObject* _tmp36_;
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp33_ = _object_it;
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!gee_iterator_next (_tmp33_)) {
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 2054 "DataCollection.c"
- }
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp34_ = _object_it;
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp35_ = gee_iterator_get (_tmp34_);
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp35_;
-#line 455 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp36_ = object;
-#line 455 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_notify_membership_changed (_tmp36_, NULL);
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 2068 "DataCollection.c"
- }
-#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_it);
-#line 2072 "DataCollection.c"
- }
- }
-#line 459 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp37_ = marker;
-#line 459 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_marker_impl_finished (_tmp37_);
-#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (skipped);
-#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (marker);
-#line 2083 "DataCollection.c"
-}
-
-
-void
-data_collection_remove_marked (DataCollection* self,
- Marker* m)
-{
-#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->remove_marked (self, m);
-#line 2095 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_clear (DataCollection* self)
-{
- DataSet* _tmp0_;
- GeeArrayList* removed = NULL;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp10_;
- GeeArrayList* _tmp11_;
-#line 463 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 463 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (data_set_get_count (_tmp0_) == 0) {
-#line 464 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return;
-#line 2113 "DataCollection.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 468 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- removed = _tmp1_;
-#line 2119 "DataCollection.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = TRUE;
-#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 2126 "DataCollection.c"
- DataObject* object = NULL;
- DataSet* _tmp4_;
- DataObject* _tmp5_;
- DataObject* _tmp6_;
- GeeArrayList* _tmp7_;
- DataObject* _tmp8_;
- DataObject* _tmp9_;
-#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!_tmp2_) {
-#line 2136 "DataCollection.c"
- DataSet* _tmp3_;
-#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = self->priv->dataset;
-#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!(data_set_get_count (_tmp3_) > 0)) {
-#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 2144 "DataCollection.c"
- }
- }
-#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = FALSE;
-#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = self->priv->dataset;
-#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = data_set_get_at (_tmp4_, 0);
-#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = _tmp5_;
-#line 471 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = object;
-#line 471 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (_tmp6_ != NULL, "object != null");
-#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = removed;
-#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = object;
-#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_);
-#line 474 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = object;
-#line 474 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_internal_remove (self, _tmp9_);
-#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 2171 "DataCollection.c"
- }
- }
-#line 478 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp10_ = removed;
-#line 478 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_items_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 479 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = removed;
-#line 479 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2182 "DataCollection.c"
- {
- GeeArrayList* _object_list = NULL;
- GeeArrayList* _tmp12_;
- GeeArrayList* _tmp13_;
- gint _object_size = 0;
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _object_index = 0;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp12_ = removed;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp13_ = _g_object_ref0 (_tmp12_);
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_list = _tmp13_;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp14_ = _object_list;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp16_ = _tmp15_;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_size = _tmp16_;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_index = -1;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 2210 "DataCollection.c"
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- DataObject* object = NULL;
- GeeArrayList* _tmp20_;
- gint _tmp21_;
- gpointer _tmp22_;
- DataObject* _tmp23_;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp17_ = _object_index;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_index = _tmp17_ + 1;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp18_ = _object_index;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp19_ = _object_size;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!(_tmp18_ < _tmp19_)) {
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 2231 "DataCollection.c"
- }
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp20_ = _object_list;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp21_ = _object_index;
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp22_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp21_);
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp22_;
-#line 483 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp23_ = object;
-#line 483 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_notify_membership_changed (_tmp23_, NULL);
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 2247 "DataCollection.c"
- }
-#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_list);
-#line 2251 "DataCollection.c"
- }
-#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (removed);
-#line 2255 "DataCollection.c"
-}
-
-
-void
-data_collection_clear (DataCollection* self)
-{
-#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->clear (self);
-#line 2266 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_close (DataCollection* self)
-{
-#line 493 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_clear (self);
-#line 2275 "DataCollection.c"
-}
-
-
-void
-data_collection_close (DataCollection* self)
-{
-#line 492 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 492 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->close (self);
-#line 2286 "DataCollection.c"
-}
-
-
-static gpointer
-_alteration_ref0 (gpointer self)
-{
-#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return self ? alteration_ref (self) : NULL;
-#line 2295 "DataCollection.c"
-}
-
-
-void
-data_collection_internal_notify_altered (DataCollection* self,
- DataObject* object,
- Alteration* alteration)
-{
- gboolean resort_occurred = FALSE;
- DataSet* _tmp0_;
- gboolean _tmp14_;
- GeeMap* _tmp15_;
- GeeMap* _tmp16_;
-#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_OBJECT (object));
-#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 499 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_internal_contains (self, object), "internal_contains(object)");
-#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->dataset;
-#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- resort_occurred = data_set_resort_object (_tmp0_, object, alteration);
-#line 503 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (data_collection_are_notifications_frozen (self)) {
-#line 2323 "DataCollection.c"
- GeeHashMap* _tmp1_;
- Alteration* current = NULL;
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
- Alteration* _tmp5_;
- GeeHashMap* _tmp9_;
- Alteration* _tmp10_;
- gboolean _tmp11_ = FALSE;
- gboolean _tmp12_;
-#line 504 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->priv->frozen_items_altered;
-#line 504 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp1_ == NULL) {
-#line 2337 "DataCollection.c"
- GeeHashMap* _tmp2_;
-#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = gee_hash_map_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_ALTERATION, (GBoxedCopyFunc) alteration_ref, (GDestroyNotify) alteration_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (self->priv->frozen_items_altered);
-#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->frozen_items_altered = _tmp2_;
-#line 2345 "DataCollection.c"
- }
-#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = self->priv->frozen_items_altered;
-#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), object);
-#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- current = (Alteration*) _tmp4_;
-#line 510 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = current;
-#line 510 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp5_ != NULL) {
-#line 2357 "DataCollection.c"
- Alteration* _tmp6_;
- Alteration* _tmp7_;
-#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = current;
-#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = alteration_compress (_tmp6_, alteration);
-#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _alteration_unref0 (current);
-#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- current = _tmp7_;
-#line 2368 "DataCollection.c"
- } else {
- Alteration* _tmp8_;
-#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = _alteration_ref0 (alteration);
-#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _alteration_unref0 (current);
-#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- current = _tmp8_;
-#line 2377 "DataCollection.c"
- }
-#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = self->priv->frozen_items_altered;
-#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp10_ = current;
-#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), object, _tmp10_);
-#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp12_ = self->priv->fire_ordering_changed;
-#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp12_) {
-#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = TRUE;
-#line 2391 "DataCollection.c"
- } else {
- gboolean _tmp13_;
-#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp13_ = resort_occurred;
-#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = _tmp13_;
-#line 2398 "DataCollection.c"
- }
-#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->fire_ordering_changed = _tmp11_;
-#line 519 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _alteration_unref0 (current);
-#line 519 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return;
-#line 2406 "DataCollection.c"
- }
-#line 522 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp14_ = resort_occurred;
-#line 522 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp14_) {
-#line 523 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_ordering_changed (self);
-#line 2414 "DataCollection.c"
- }
-#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp15_ = data_collection_get_alteration_singleton (object, alteration);
-#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp16_ = _tmp15_;
-#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_items_altered (self, _tmp16_);
-#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_tmp16_);
-#line 2424 "DataCollection.c"
-}
-
-
-GValue*
-data_collection_get_property (DataCollection* self,
- const gchar* name)
-{
- GValue* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 528 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
-#line 528 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->properties;
-#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name);
-#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = (GValue*) _tmp1_;
-#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 2447 "DataCollection.c"
-}
-
-
-static gboolean
-_bool_value_equals_value_equal_func (GValue* a,
- GValue* b,
- gpointer self)
-{
- gboolean result;
- result = bool_value_equals (a, b);
-#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 2460 "DataCollection.c"
-}
-
-
-static gboolean
-_int_value_equals_value_equal_func (GValue* a,
- GValue* b,
- gpointer self)
-{
- gboolean result;
- result = int_value_equals (a, b);
-#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 2473 "DataCollection.c"
-}
-
-
-void
-data_collection_set_property (DataCollection* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target)
-{
- GValue* old = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- GValue* _tmp2_;
- GeeHashMap* _tmp6_;
- GValue _tmp7_;
- GValue* _tmp8_;
- GValue _tmp9_;
- gint count = 0;
- DataSet* _tmp10_;
-#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (name != NULL);
-#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (val != NULL);
-#line 533 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (value_equals == NULL) {
-#line 534 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (G_VALUE_HOLDS (val, G_TYPE_BOOLEAN)) {
-#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value_equals = _bool_value_equals_value_equal_func;
-#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value_equals_target = NULL;
-#line 2508 "DataCollection.c"
- } else {
-#line 536 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (G_VALUE_HOLDS (val, G_TYPE_INT)) {
-#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value_equals = _int_value_equals_value_equal_func;
-#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value_equals_target = NULL;
-#line 2516 "DataCollection.c"
- } else {
-#line 539 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_error ("DataCollection.vala:539: value_equals must be specified for this type");
-#line 2520 "DataCollection.c"
- }
- }
- }
-#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->properties;
-#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name);
-#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- old = (GValue*) _tmp1_;
-#line 543 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = old;
-#line 543 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp2_ != NULL) {
-#line 2534 "DataCollection.c"
- GValue* _tmp3_;
- GValue _tmp4_;
- GValue _tmp5_;
-#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = old;
-#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = *val;
-#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = *_tmp3_;
-#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (value_equals (&_tmp5_, &_tmp4_, value_equals_target)) {
-#line 545 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- __vala_GValue_free0 (old);
-#line 545 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return;
-#line 2550 "DataCollection.c"
- }
- }
-#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = self->priv->properties;
-#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = *val;
-#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name, &_tmp7_);
-#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = old;
-#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = *val;
-#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_property_set (self, name, _tmp8_, &_tmp9_);
-#line 553 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp10_ = self->priv->dataset;
-#line 553 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- count = data_set_get_count (_tmp10_);
-#line 2569 "DataCollection.c"
- {
- gint ctr = 0;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ctr = 0;
-#line 2574 "DataCollection.c"
- {
- gboolean _tmp11_ = FALSE;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = TRUE;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 2581 "DataCollection.c"
- gint _tmp13_;
- gint _tmp14_;
- DataSet* _tmp15_;
- gint _tmp16_;
- DataObject* _tmp17_;
- DataObject* _tmp18_;
- GValue* _tmp19_;
- GValue _tmp20_;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!_tmp11_) {
-#line 2592 "DataCollection.c"
- gint _tmp12_;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp12_ = ctr;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ctr = _tmp12_ + 1;
-#line 2598 "DataCollection.c"
- }
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp11_ = FALSE;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp13_ = ctr;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp14_ = count;
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!(_tmp13_ < _tmp14_)) {
-#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 2610 "DataCollection.c"
- }
-#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp15_ = self->priv->dataset;
-#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp16_ = ctr;
-#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp17_ = data_set_get_at (_tmp15_, _tmp16_);
-#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp18_ = _tmp17_;
-#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp19_ = old;
-#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp20_ = *val;
-#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_notify_collection_property_set (_tmp18_, name, _tmp19_, &_tmp20_);
-#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_tmp18_);
-#line 2628 "DataCollection.c"
- }
- }
- }
-#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- __vala_GValue_free0 (old);
-#line 2634 "DataCollection.c"
-}
-
-
-void
-data_collection_clear_property (DataCollection* self,
- const gchar* name)
-{
- GeeHashMap* _tmp0_;
- gboolean _tmp1_;
- gint count = 0;
- DataSet* _tmp2_;
-#line 558 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 558 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (name != NULL);
-#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->properties;
-#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name, NULL);
-#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!_tmp1_) {
-#line 560 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return;
-#line 2658 "DataCollection.c"
- }
-#line 563 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_property_cleared (self, name);
-#line 566 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = self->priv->dataset;
-#line 566 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- count = data_set_get_count (_tmp2_);
-#line 2666 "DataCollection.c"
- {
- gint ctr = 0;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ctr = 0;
-#line 2671 "DataCollection.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = TRUE;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 2678 "DataCollection.c"
- gint _tmp5_;
- gint _tmp6_;
- DataSet* _tmp7_;
- gint _tmp8_;
- DataObject* _tmp9_;
- DataObject* _tmp10_;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!_tmp3_) {
-#line 2687 "DataCollection.c"
- gint _tmp4_;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = ctr;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ctr = _tmp4_ + 1;
-#line 2693 "DataCollection.c"
- }
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = FALSE;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = ctr;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = count;
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!(_tmp5_ < _tmp6_)) {
-#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 2705 "DataCollection.c"
- }
-#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = self->priv->dataset;
-#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = ctr;
-#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = data_set_get_at (_tmp7_, _tmp8_);
-#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp10_ = _tmp9_;
-#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_object_notify_collection_property_cleared (_tmp10_, name);
-#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_tmp10_);
-#line 2719 "DataCollection.c"
- }
- }
- }
-}
-
-
-void
-data_collection_freeze_notifications (DataCollection* self)
-{
- gint _tmp0_;
-#line 581 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->notifies_frozen;
-#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->notifies_frozen = _tmp0_ + 1;
-#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp0_ == 0) {
-#line 583 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_frozen (self);
-#line 2740 "DataCollection.c"
- }
-}
-
-
-void
-data_collection_thaw_notifications (DataCollection* self)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 586 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 587 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->notifies_frozen;
-#line 587 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp0_ == 0) {
-#line 588 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return;
-#line 2759 "DataCollection.c"
- }
-#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->priv->notifies_frozen;
-#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->notifies_frozen = _tmp1_ - 1;
-#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = self->priv->notifies_frozen;
-#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp2_ == 0) {
-#line 591 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_thawed (self);
-#line 2771 "DataCollection.c"
- }
-}
-
-
-gboolean
-data_collection_are_notifications_frozen (DataCollection* self)
-{
- gboolean result = FALSE;
- gint _tmp0_;
-#line 594 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
-#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->notifies_frozen;
-#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = _tmp0_ > 0;
-#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 2789 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_frozen (DataCollection* self)
-{
-#line 601 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_FROZEN_SIGNAL], 0);
-#line 2798 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_frozen (DataCollection* self)
-{
-#line 600 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 600 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_frozen (self);
-#line 2809 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_notify_thawed (DataCollection* self)
-{
- GeeHashMap* _tmp0_;
- gboolean _tmp4_;
-#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->priv->frozen_items_altered;
-#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp0_ != NULL) {
-#line 2822 "DataCollection.c"
- GeeMap* copy = NULL;
- GeeHashMap* _tmp1_;
- GeeMap* _tmp2_;
- GeeMap* _tmp3_;
-#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->priv->frozen_items_altered;
-#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MAP, GeeMap));
-#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- copy = _tmp2_;
-#line 610 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (self->priv->frozen_items_altered);
-#line 610 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->frozen_items_altered = NULL;
-#line 612 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = copy;
-#line 612 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_items_altered (self, _tmp3_);
-#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (copy);
-#line 2843 "DataCollection.c"
- }
-#line 615 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = self->priv->fire_ordering_changed;
-#line 615 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp4_) {
-#line 616 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->fire_ordering_changed = FALSE;
-#line 617 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_notify_ordering_changed (self);
-#line 2853 "DataCollection.c"
- }
-#line 620 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_emit (self, data_collection_signals[DATA_COLLECTION_THAWED_SIGNAL], 0);
-#line 2857 "DataCollection.c"
-}
-
-
-void
-data_collection_notify_thawed (DataCollection* self)
-{
-#line 606 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (self));
-#line 606 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->notify_thawed (self);
-#line 2868 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_items_added (DataCollection* self,
- GeeIterable* added)
-{
-#line 116 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 2878 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_items_removed (DataCollection* self,
- GeeIterable* removed)
-{
-#line 120 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 2888 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_contents_altered (DataCollection* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
-#line 124 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 124 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 2901 "DataCollection.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (n_param_values == 3);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data1 = closure->data;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data2 = param_values->data[0].v_pointer;
-#line 2927 "DataCollection.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data1 = param_values->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data2 = closure->data;
-#line 2933 "DataCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 2939 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_items_altered (DataCollection* self,
- GeeMap* items)
-{
-#line 130 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_MAP (items));
-#line 2949 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_ordering_changed (DataCollection* self)
-{
-}
-
-
-static void
-data_collection_real_property_set (DataCollection* self,
- const gchar* name,
- GValue* old,
- GValue* val)
-{
-#line 140 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (name != NULL);
-#line 140 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (val != NULL);
-#line 2969 "DataCollection.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__STRING_POINTER_BOXED (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__STRING_POINTER_BOXED) (gpointer data1, const char* arg_1, gpointer arg_2, gpointer arg_3, gpointer data2);
- register GMarshalFunc_VOID__STRING_POINTER_BOXED callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (n_param_values == 4);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data1 = closure->data;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data2 = param_values->data[0].v_pointer;
-#line 2995 "DataCollection.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data1 = param_values->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data2 = closure->data;
-#line 3001 "DataCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- callback = (GMarshalFunc_VOID__STRING_POINTER_BOXED) (marshal_data ? marshal_data : cc->callback);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- callback (data1, g_value_get_string (param_values + 1), g_value_get_pointer (param_values + 2), g_value_get_boxed (param_values + 3), data2);
-#line 3007 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_property_cleared (DataCollection* self,
- const gchar* name)
-{
-#line 144 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (name != NULL);
-#line 3017 "DataCollection.c"
-}
-
-
-static void
-data_collection_real_frozen (DataCollection* self)
-{
-}
-
-
-static void
-data_collection_real_thawed (DataCollection* self)
-{
-}
-
-
-static void
-_data_collection_marker_impl_on_items_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_marker_impl_on_items_removed ((DataCollectionMarkerImpl*) self, removed);
-#line 3040 "DataCollection.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 3049 "DataCollection.c"
-}
-
-
-static DataCollectionMarkerImpl*
-data_collection_marker_impl_construct (GType object_type,
- DataCollection* owner)
-{
- DataCollectionMarkerImpl * self = NULL;
- DataCollection* _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (owner), NULL);
-#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = (DataCollectionMarkerImpl*) g_object_new (object_type, NULL);
-#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = _data_collection_ref0 (owner);
-#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _data_collection_unref0 (self->owner);
-#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->owner = _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_connect_object (owner, "items-removed", (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self, 0);
-#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return self;
-#line 3073 "DataCollection.c"
-}
-
-
-static DataCollectionMarkerImpl*
-data_collection_marker_impl_new (DataCollection* owner)
-{
-#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return data_collection_marker_impl_construct (DATA_COLLECTION_TYPE_MARKER_IMPL, owner);
-#line 3082 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_real_mark (Marker* base,
- DataObject* object)
-{
- DataCollectionMarkerImpl * self;
- DataCollection* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 27 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 27 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_OBJECT (object));
-#line 28 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->owner;
-#line 28 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_internal_contains (_tmp0_, object), "owner.internal_contains(object)");
-#line 30 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->marked;
-#line 30 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object);
-#line 3105 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_real_unmark (Marker* base,
- DataObject* object)
-{
- DataCollectionMarkerImpl * self;
- DataCollection* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 33 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 33 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (IS_DATA_OBJECT (object));
-#line 34 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->owner;
-#line 34 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_internal_contains (_tmp0_, object), "owner.internal_contains(object)");
-#line 36 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->marked;
-#line 36 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object);
-#line 3128 "DataCollection.c"
-}
-
-
-static gboolean
-data_collection_marker_impl_real_toggle (Marker* base,
- DataObject* object)
-{
- DataCollectionMarkerImpl * self;
- gboolean result = FALSE;
- DataCollection* _tmp0_;
- GeeHashSet* _tmp1_;
- GeeHashSet* _tmp4_;
-#line 39 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 39 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 40 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->owner;
-#line 40 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_internal_contains (_tmp0_, object), "owner.internal_contains(object)");
-#line 42 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->marked;
-#line 42 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object)) {
-#line 3153 "DataCollection.c"
- GeeHashSet* _tmp2_;
-#line 43 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = self->marked;
-#line 43 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object);
-#line 3159 "DataCollection.c"
- } else {
- GeeHashSet* _tmp3_;
-#line 45 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = self->marked;
-#line 45 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object);
-#line 3166 "DataCollection.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = self->marked;
-#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object);
-#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 3174 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_real_mark_many (Marker* base,
- GeeCollection* list)
-{
- DataCollectionMarkerImpl * self;
-#line 51 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 51 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (list));
-#line 3187 "DataCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ITERABLE, GeeIterable));
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_it = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 3197 "DataCollection.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataCollection* _tmp4_;
- DataObject* _tmp5_;
- GeeHashSet* _tmp6_;
- DataObject* _tmp7_;
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = _object_it;
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 3212 "DataCollection.c"
- }
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = _object_it;
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp3_;
-#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = self->owner;
-#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = object;
-#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_internal_contains (_tmp4_, _tmp5_), "owner.internal_contains(object)");
-#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = self->marked;
-#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = object;
-#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_);
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 3234 "DataCollection.c"
- }
-#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3238 "DataCollection.c"
- }
-}
-
-
-static void
-data_collection_marker_impl_real_unmark_many (Marker* base,
- GeeCollection* list)
-{
- DataCollectionMarkerImpl * self;
-#line 59 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 59 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (list));
-#line 3252 "DataCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ITERABLE, GeeIterable));
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_it = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 3262 "DataCollection.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataCollection* _tmp4_;
- DataObject* _tmp5_;
- GeeHashSet* _tmp6_;
- DataObject* _tmp7_;
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = _object_it;
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 3277 "DataCollection.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = _object_it;
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp3_;
-#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = self->owner;
-#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = object;
-#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _vala_assert (data_collection_internal_contains (_tmp4_, _tmp5_), "owner.internal_contains(object)");
-#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = self->marked;
-#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = object;
-#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_);
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 3299 "DataCollection.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3303 "DataCollection.c"
- }
-}
-
-
-static void
-data_collection_marker_impl_real_mark_all (Marker* base)
-{
- DataCollectionMarkerImpl * self;
-#line 67 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 3314 "DataCollection.c"
- {
- GeeIterator* _object_it = NULL;
- DataCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->owner;
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = data_collection_get_all (_tmp0_);
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = _tmp3_;
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_tmp2_);
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_it = _tmp4_;
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 3338 "DataCollection.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- GeeHashSet* _tmp8_;
- DataObject* _tmp9_;
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = _object_it;
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 3351 "DataCollection.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp6_ = _object_it;
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp7_;
-#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp8_ = self->marked;
-#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp9_ = object;
-#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_);
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 3367 "DataCollection.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3371 "DataCollection.c"
- }
-}
-
-
-static gint
-data_collection_marker_impl_real_get_count (Marker* base)
-{
- DataCollectionMarkerImpl * self;
- gint result = 0;
- gint _tmp0_ = 0;
- GeeHashSet* _tmp1_;
-#line 72 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->marked;
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp1_ != NULL) {
-#line 3389 "DataCollection.c"
- GeeHashSet* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = self->marked;
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = _tmp3_;
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = _tmp4_;
-#line 3401 "DataCollection.c"
- } else {
- gint _tmp5_;
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = self->freeze_count;
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = _tmp5_;
-#line 3408 "DataCollection.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 3414 "DataCollection.c"
-}
-
-
-static GeeCollection*
-data_collection_marker_impl_real_get_all (Marker* base)
-{
- DataCollectionMarkerImpl * self;
- GeeCollection* result = NULL;
- GeeArrayList* copy = NULL;
- GeeArrayList* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 76 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 77 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 77 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- copy = _tmp0_;
-#line 78 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->marked;
-#line 78 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_array_list_add_all (copy, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 80 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (copy, GEE_TYPE_COLLECTION, GeeCollection);
-#line 80 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 3440 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_on_items_removed (DataCollectionMarkerImpl* self,
- GeeIterable* removed)
-{
-#line 83 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self));
-#line 83 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 3452 "DataCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = gee_iterable_iterator (removed);
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _object_it = _tmp0_;
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- while (TRUE) {
-#line 3462 "DataCollection.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- GeeHashSet* _tmp4_;
- DataObject* _tmp5_;
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = _object_it;
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- break;
-#line 3475 "DataCollection.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = _object_it;
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- object = (DataObject*) _tmp3_;
-#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp4_ = self->marked;
-#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp5_ = object;
-#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_);
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (object);
-#line 3491 "DataCollection.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3495 "DataCollection.c"
- }
-}
-
-
-static void
-data_collection_marker_impl_freeze (DataCollectionMarkerImpl* self)
-{
- DataCollection* _tmp0_;
- guint _tmp1_;
-#line 91 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self));
-#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->owner;
-#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self);
-#line 3513 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_finished (DataCollectionMarkerImpl* self)
-{
- GeeHashSet* _tmp0_;
-#line 95 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self));
-#line 96 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->marked;
-#line 96 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (_tmp0_ != NULL) {
-#line 3527 "DataCollection.c"
- GeeHashSet* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->marked;
-#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp3_ = _tmp2_;
-#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->freeze_count = _tmp3_;
-#line 3539 "DataCollection.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (self->marked);
-#line 99 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->marked = NULL;
-#line 3545 "DataCollection.c"
-}
-
-
-static gboolean
-data_collection_marker_impl_is_valid (DataCollectionMarkerImpl* self,
- DataCollection* collection)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- DataCollection* _tmp1_;
-#line 102 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self), FALSE);
-#line 102 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (collection), FALSE);
-#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = self->owner;
-#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (collection == _tmp1_) {
-#line 3564 "DataCollection.c"
- GeeHashSet* _tmp2_;
-#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp2_ = self->marked;
-#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = _tmp2_ != NULL;
-#line 3570 "DataCollection.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = FALSE;
-#line 3574 "DataCollection.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- result = _tmp0_;
-#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return result;
-#line 3580 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_class_init (DataCollectionMarkerImplClass * klass)
-{
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_marker_impl_parent_class = g_type_class_peek_parent (klass);
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- G_OBJECT_CLASS (klass)->finalize = data_collection_marker_impl_finalize;
-#line 3591 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_marker_interface_init (MarkerIface * iface)
-{
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_marker_impl_marker_parent_iface = g_type_interface_peek_parent (iface);
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- iface->mark = (void (*) (Marker *, DataObject*)) data_collection_marker_impl_real_mark;
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- iface->unmark = (void (*) (Marker *, DataObject*)) data_collection_marker_impl_real_unmark;
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- iface->toggle = (gboolean (*) (Marker *, DataObject*)) data_collection_marker_impl_real_toggle;
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- iface->mark_many = (void (*) (Marker *, GeeCollection*)) data_collection_marker_impl_real_mark_many;
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- iface->unmark_many = (void (*) (Marker *, GeeCollection*)) data_collection_marker_impl_real_unmark_many;
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- iface->mark_all = (void (*) (Marker *)) data_collection_marker_impl_real_mark_all;
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- iface->get_count = (gint (*) (Marker *)) data_collection_marker_impl_real_get_count;
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- iface->get_all = (GeeCollection* (*) (Marker *)) data_collection_marker_impl_real_get_all;
-#line 3616 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_instance_init (DataCollectionMarkerImpl * self)
-{
- GeeHashSet* _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = gee_hash_set_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->marked = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->freeze_count = 0;
-#line 3630 "DataCollection.c"
-}
-
-
-static void
-data_collection_marker_impl_finalize (GObject * obj)
-{
- DataCollectionMarkerImpl * self;
- DataCollection* _tmp0_;
- guint _tmp1_;
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
-#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = self->owner;
-#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self);
-#line 11 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _data_collection_unref0 (self->owner);
-#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (self->marked);
-#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- G_OBJECT_CLASS (data_collection_marker_impl_parent_class)->finalize (obj);
-#line 3654 "DataCollection.c"
-}
-
-
-static GType
-data_collection_marker_impl_get_type (void)
-{
- static volatile gsize data_collection_marker_impl_type_id__volatile = 0;
- if (g_once_init_enter (&data_collection_marker_impl_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataCollectionMarkerImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_collection_marker_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataCollectionMarkerImpl), 0, (GInstanceInitFunc) data_collection_marker_impl_instance_init, NULL };
- static const GInterfaceInfo marker_info = { (GInterfaceInitFunc) data_collection_marker_impl_marker_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType data_collection_marker_impl_type_id;
- data_collection_marker_impl_type_id = g_type_register_static (G_TYPE_OBJECT, "DataCollectionMarkerImpl", &g_define_type_info, 0);
- g_type_add_interface_static (data_collection_marker_impl_type_id, TYPE_MARKER, &marker_info);
- g_once_init_leave (&data_collection_marker_impl_type_id__volatile, data_collection_marker_impl_type_id);
- }
- return data_collection_marker_impl_type_id__volatile;
-}
-
-
-static void
-value_data_collection_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 3679 "DataCollection.c"
-}
-
-
-static void
-value_data_collection_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_unref (value->data[0].v_pointer);
-#line 3690 "DataCollection.c"
- }
-}
-
-
-static void
-value_data_collection_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- dest_value->data[0].v_pointer = data_collection_ref (src_value->data[0].v_pointer);
-#line 3703 "DataCollection.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3707 "DataCollection.c"
- }
-}
-
-
-static gpointer
-value_data_collection_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return value->data[0].v_pointer;
-#line 3717 "DataCollection.c"
-}
-
-
-static gchar*
-value_data_collection_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (collect_values[0].v_pointer) {
-#line 3729 "DataCollection.c"
- DataCollection * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3736 "DataCollection.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.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 3740 "DataCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value->data[0].v_pointer = data_collection_ref (object);
-#line 3744 "DataCollection.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 3748 "DataCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return NULL;
-#line 3752 "DataCollection.c"
-}
-
-
-static gchar*
-value_data_collection_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- DataCollection ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3768 "DataCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- *object_p = NULL;
-#line 3774 "DataCollection.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- *object_p = value->data[0].v_pointer;
-#line 3778 "DataCollection.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- *object_p = data_collection_ref (value->data[0].v_pointer);
-#line 3782 "DataCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return NULL;
-#line 3786 "DataCollection.c"
-}
-
-
-GParamSpec*
-param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecDataCollection* spec;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_DATA_COLLECTION), NULL);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return G_PARAM_SPEC (spec);
-#line 3806 "DataCollection.c"
-}
-
-
-gpointer
-value_get_data_collection (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION), NULL);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return value->data[0].v_pointer;
-#line 3817 "DataCollection.c"
-}
-
-
-void
-value_set_data_collection (GValue* value,
- gpointer v_object)
-{
- DataCollection * old;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION));
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_COLLECTION));
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- 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/core/DataCollection.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_ref (value->data[0].v_pointer);
-#line 3840 "DataCollection.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 3844 "DataCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_unref (old);
-#line 3850 "DataCollection.c"
- }
-}
-
-
-void
-value_take_data_collection (GValue* value,
- gpointer v_object)
-{
- DataCollection * old;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION));
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_COLLECTION));
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- 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/core/DataCollection.vala"
- value->data[0].v_pointer = v_object;
-#line 3872 "DataCollection.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 3876 "DataCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_unref (old);
-#line 3882 "DataCollection.c"
- }
-}
-
-
-static void
-data_collection_class_init (DataCollectionClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->finalize = data_collection_finalize;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_type_class_add_private (klass, sizeof (DataCollectionPrivate));
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->to_string = (gchar* (*) (DataCollection *)) data_collection_real_to_string;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) data_collection_real_notify_items_added;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) data_collection_real_notify_items_removed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) data_collection_real_notify_contents_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_items_altered = (void (*) (DataCollection *, GeeMap*)) data_collection_real_notify_items_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_ordering_changed = (void (*) (DataCollection *)) data_collection_real_notify_ordering_changed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_property_set = (void (*) (DataCollection *, const gchar*, GValue*, GValue*)) data_collection_real_notify_property_set;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_property_cleared = (void (*) (DataCollection *, const gchar*)) data_collection_real_notify_property_cleared;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->valid_type = (gboolean (*) (DataCollection *, DataObject*)) data_collection_real_valid_type;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->set_comparator = (void (*) (DataCollection *, Comparator, void*, ComparatorPredicate, void*)) data_collection_real_set_comparator;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->reset_comparator = (void (*) (DataCollection *)) data_collection_real_reset_comparator;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->get_all = (GeeCollection* (*) (DataCollection *)) data_collection_real_get_all;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->get_count = (gint (*) (DataCollection *)) data_collection_real_get_count;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->get_at = (DataObject* (*) (DataCollection *, gint)) data_collection_real_get_at;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->index_of = (gint (*) (DataCollection *, DataObject*)) data_collection_real_index_of;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->contains = (gboolean (*) (DataCollection *, DataObject*)) data_collection_real_contains;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->add = (gboolean (*) (DataCollection *, DataObject*)) data_collection_real_add;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->add_many = (GeeCollection* (*) (DataCollection *, GeeCollection*, ProgressMonitor, void*)) data_collection_real_add_many;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->remove_marked = (void (*) (DataCollection *, Marker*)) data_collection_real_remove_marked;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->clear = (void (*) (DataCollection *)) data_collection_real_clear;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->close = (void (*) (DataCollection *)) data_collection_real_close;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_frozen = (void (*) (DataCollection *)) data_collection_real_notify_frozen;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->notify_thawed = (void (*) (DataCollection *)) data_collection_real_notify_thawed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->items_added = data_collection_real_items_added;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->items_removed = data_collection_real_items_removed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->contents_altered = data_collection_real_contents_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->items_altered = data_collection_real_items_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->ordering_changed = data_collection_real_ordering_changed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->property_set = data_collection_real_property_set;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->property_cleared = data_collection_real_property_cleared;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->frozen = data_collection_real_frozen;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- ((DataCollectionClass *) klass)->thawed = data_collection_real_thawed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_ITEMS_ADDED_SIGNAL] = g_signal_new ("items-added", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_added), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_ITEMS_REMOVED_SIGNAL] = g_signal_new ("items-removed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_removed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("contents-altered", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_ITERABLE, GEE_TYPE_ITERABLE);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_ITEMS_ALTERED_SIGNAL] = g_signal_new ("items-altered", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_MAP);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_ORDERING_CHANGED_SIGNAL] = g_signal_new ("ordering-changed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, ordering_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_PROPERTY_SET_SIGNAL] = g_signal_new ("property-set", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, property_set), NULL, NULL, g_cclosure_user_marshal_VOID__STRING_POINTER_BOXED, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_VALUE);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_PROPERTY_CLEARED_SIGNAL] = g_signal_new ("property-cleared", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, property_cleared), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_FROZEN_SIGNAL] = g_signal_new ("frozen", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, frozen), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- data_collection_signals[DATA_COLLECTION_THAWED_SIGNAL] = g_signal_new ("thawed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, thawed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 3978 "DataCollection.c"
-}
-
-
-static void
-data_collection_instance_init (DataCollection * self)
-{
- DataSet* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv = DATA_COLLECTION_GET_PRIVATE (self);
-#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp0_ = data_set_new ();
-#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->dataset = _tmp0_;
-#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_VALUE, (GBoxedCopyFunc) _g_value_dup, (GDestroyNotify) _vala_GValue_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->properties = _tmp1_;
-#line 110 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->object_ordinal_generator = (gint64) 0;
-#line 111 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->notifies_frozen = 0;
-#line 112 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->frozen_items_altered = NULL;
-#line 113 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->priv->fire_ordering_changed = FALSE;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self->ref_count = 1;
-#line 4007 "DataCollection.c"
-}
-
-
-static void
-data_collection_finalize (DataCollection * obj)
-{
- DataCollection * self;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_COLLECTION, DataCollection);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_signal_handlers_destroy (self);
-#line 107 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_free0 (self->priv->name);
-#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _data_set_unref0 (self->priv->dataset);
-#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (self->priv->properties);
-#line 112 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- _g_object_unref0 (self->priv->frozen_items_altered);
-#line 4027 "DataCollection.c"
-}
-
-
-GType
-data_collection_get_type (void)
-{
- static volatile gsize data_collection_type_id__volatile = 0;
- if (g_once_init_enter (&data_collection_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_data_collection_init, value_data_collection_free_value, value_data_collection_copy_value, value_data_collection_peek_pointer, "p", value_data_collection_collect_value, "p", value_data_collection_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DataCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataCollection), 0, (GInstanceInitFunc) data_collection_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType data_collection_type_id;
- data_collection_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DataCollection", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&data_collection_type_id__volatile, data_collection_type_id);
- }
- return data_collection_type_id__volatile;
-}
-
-
-gpointer
-data_collection_ref (gpointer instance)
-{
- DataCollection * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- return instance;
-#line 4056 "DataCollection.c"
-}
-
-
-void
-data_collection_unref (gpointer instance)
-{
- DataCollection * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- DATA_COLLECTION_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4071 "DataCollection.c"
- }
-}
-
-
-
diff --git a/src/core/DataObject.c b/src/core/DataObject.c
deleted file mode 100644
index 1f966d2..0000000
--- a/src/core/DataObject.c
+++ /dev/null
@@ -1,733 +0,0 @@
-/* DataObject.c generated by valac 0.40.4, the Vala compiler
- * generated from DataObject.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/**/
-/* DataObject*/
-/**/
-/* Object IDs are incremented for each DataObject, and therefore may be used to compare*/
-/* creation order. This behavior may be relied upon elsewhere. Object IDs may be recycled when*/
-/* DataObjects are reconstituted by a proxy.*/
-/**/
-/* Ordinal IDs are supplied by DataCollections to record the ordering of the object being added*/
-/* to the collection. This value is primarily only used by DataCollection, but may be used*/
-/* elsewhere to resolve ordering questions (including stabilizing a sort).*/
-/**/
-/* Have to inherit from Object due to ContainerSource and this bug:*/
-/* https://bugzilla.gnome.org/show_bug.cgi?id=615904*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-enum {
- DATA_OBJECT_0_PROPERTY,
- DATA_OBJECT_NUM_PROPERTIES
-};
-static GParamSpec* data_object_properties[DATA_OBJECT_NUM_PROPERTIES];
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataObjectPrivate {
- gint64 object_id;
- DataCollection* member_of;
- gint64 ordinal;
-};
-
-typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data);
-
-static gpointer data_object_parent_class = NULL;
-static gint64 data_object_object_id_generator;
-static gint64 data_object_object_id_generator = (gint64) 0;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-#define DATA_OBJECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_OBJECT, DataObjectPrivate))
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-#define DATA_COLLECTION_INVALID_OBJECT_ORDINAL ((gint64) -1)
-DataObject* data_object_construct (GType object_type,
- gint64 object_id);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-static void data_object_real_notify_altered (DataObject* self,
- Alteration* alteration);
-void data_collection_internal_notify_altered (DataCollection* self,
- DataObject* object,
- Alteration* alteration);
-void data_object_notify_membership_changed (DataObject* self,
- DataCollection* collection);
-static void data_object_real_notify_membership_changed (DataObject* self,
- DataCollection* collection);
-void data_object_notify_collection_property_set (DataObject* self,
- const gchar* name,
- GValue* old,
- GValue* val);
-static void data_object_real_notify_collection_property_set (DataObject* self,
- const gchar* name,
- GValue* old,
- GValue* val);
-void data_object_notify_collection_property_cleared (DataObject* self,
- const gchar* name);
-static void data_object_real_notify_collection_property_cleared (DataObject* self,
- const gchar* name);
-gchar* data_object_get_name (DataObject* self);
-static gchar* data_object_real_get_name (DataObject* self);
-gchar* data_object_to_string (DataObject* self);
-static gchar* data_object_real_to_string (DataObject* self);
-DataCollection* data_object_get_membership (DataObject* self);
-gboolean data_object_has_membership (DataObject* self);
-void data_object_internal_set_membership (DataObject* self,
- DataCollection* collection,
- gint64 ordinal);
-void data_object_internal_set_ordinal (DataObject* self,
- gint64 ordinal);
-void data_object_internal_clear_membership (DataObject* self);
-gint64 data_object_internal_get_ordinal (DataObject* self);
-gint64 data_object_get_object_id (DataObject* self);
-void data_object_get_collection_property (DataObject* self,
- const gchar* name,
- GValue* def,
- GValue* result);
-GValue* data_collection_get_property (DataCollection* self,
- const gchar* name);
-static void _vala_GValue_free (GValue* self);
-void data_object_set_collection_property (DataObject* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target);
-void data_collection_set_property (DataCollection* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target);
-void data_object_clear_collection_property (DataObject* self,
- const gchar* name);
-void data_collection_clear_property (DataCollection* self,
- const gchar* name);
-static void data_object_finalize (GObject * obj);
-
-
-DataObject*
-data_object_construct (GType object_type,
- gint64 object_id)
-{
- DataObject * self = NULL;
- gint64 _tmp0_ = 0LL;
-#line 38 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self = (DataObject*) g_object_new (object_type, NULL);
-#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- if (object_id == DATA_OBJECT_INVALID_OBJECT_ID) {
-#line 203 "DataObject.c"
- gint64 _tmp1_;
-#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp1_ = data_object_object_id_generator;
-#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- data_object_object_id_generator = _tmp1_ + 1;
-#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = _tmp1_;
-#line 211 "DataObject.c"
- } else {
-#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = object_id;
-#line 215 "DataObject.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->object_id = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return self;
-#line 221 "DataObject.c"
-}
-
-
-static void
-data_object_real_notify_altered (DataObject* self,
- Alteration* alteration)
-{
- DataCollection* _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 43 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->member_of;
-#line 43 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- if (_tmp0_ != NULL) {
-#line 236 "DataObject.c"
- DataCollection* _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp1_ = self->priv->member_of;
-#line 44 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- data_collection_internal_notify_altered (_tmp1_, self, alteration);
-#line 242 "DataObject.c"
- }
-}
-
-
-void
-data_object_notify_altered (DataObject* self,
- Alteration* alteration)
-{
-#line 42 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 42 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- DATA_OBJECT_GET_CLASS (self)->notify_altered (self, alteration);
-#line 255 "DataObject.c"
-}
-
-
-static void
-data_object_real_notify_membership_changed (DataObject* self,
- DataCollection* collection)
-{
-#line 56 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail ((collection == NULL) || IS_DATA_COLLECTION (collection));
-#line 265 "DataObject.c"
-}
-
-
-void
-data_object_notify_membership_changed (DataObject* self,
- DataCollection* collection)
-{
-#line 56 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 56 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- DATA_OBJECT_GET_CLASS (self)->notify_membership_changed (self, collection);
-#line 277 "DataObject.c"
-}
-
-
-static void
-data_object_real_notify_collection_property_set (DataObject* self,
- const gchar* name,
- GValue* old,
- GValue* val)
-{
-#line 61 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (name != NULL);
-#line 61 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (val != NULL);
-#line 291 "DataObject.c"
-}
-
-
-void
-data_object_notify_collection_property_set (DataObject* self,
- const gchar* name,
- GValue* old,
- GValue* val)
-{
-#line 61 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 61 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- DATA_OBJECT_GET_CLASS (self)->notify_collection_property_set (self, name, old, val);
-#line 305 "DataObject.c"
-}
-
-
-static void
-data_object_real_notify_collection_property_cleared (DataObject* self,
- const gchar* name)
-{
-#line 66 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (name != NULL);
-#line 315 "DataObject.c"
-}
-
-
-void
-data_object_notify_collection_property_cleared (DataObject* self,
- const gchar* name)
-{
-#line 66 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 66 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- DATA_OBJECT_GET_CLASS (self)->notify_collection_property_cleared (self, name);
-#line 327 "DataObject.c"
-}
-
-
-static gchar*
-data_object_real_get_name (DataObject* self)
-{
-#line 69 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_critical ("Type `%s' does not implement abstract method `data_object_get_name'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 69 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return NULL;
-#line 338 "DataObject.c"
-}
-
-
-gchar*
-data_object_get_name (DataObject* self)
-{
-#line 69 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (self), NULL);
-#line 69 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return DATA_OBJECT_GET_CLASS (self)->get_name (self);
-#line 349 "DataObject.c"
-}
-
-
-static gchar*
-data_object_real_to_string (DataObject* self)
-{
-#line 71 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_critical ("Type `%s' does not implement abstract method `data_object_to_string'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 71 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return NULL;
-#line 360 "DataObject.c"
-}
-
-
-gchar*
-data_object_to_string (DataObject* self)
-{
-#line 71 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (self), NULL);
-#line 71 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return DATA_OBJECT_GET_CLASS (self)->to_string (self);
-#line 371 "DataObject.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 380 "DataObject.c"
-}
-
-
-DataCollection*
-data_object_get_membership (DataObject* self)
-{
- DataCollection* result = NULL;
- DataCollection* _tmp0_;
- DataCollection* _tmp1_;
-#line 73 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (self), NULL);
-#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->member_of;
-#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp1_ = _data_collection_ref0 (_tmp0_);
-#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- result = _tmp1_;
-#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return result;
-#line 400 "DataObject.c"
-}
-
-
-gboolean
-data_object_has_membership (DataObject* self)
-{
- gboolean result = FALSE;
- DataCollection* _tmp0_;
-#line 77 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (self), FALSE);
-#line 78 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->member_of;
-#line 78 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- result = _tmp0_ != NULL;
-#line 78 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return result;
-#line 417 "DataObject.c"
-}
-
-
-void
-data_object_internal_set_membership (DataObject* self,
- DataCollection* collection,
- gint64 ordinal)
-{
- DataCollection* _tmp0_;
- DataCollection* _tmp1_;
-#line 83 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 83 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_COLLECTION (collection));
-#line 84 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->member_of;
-#line 84 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _vala_assert (_tmp0_ == NULL, "member_of == null");
-#line 86 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp1_ = _data_collection_ref0 (collection);
-#line 86 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _data_collection_unref0 (self->priv->member_of);
-#line 86 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->member_of = _tmp1_;
-#line 87 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->ordinal = ordinal;
-#line 444 "DataObject.c"
-}
-
-
-void
-data_object_internal_set_ordinal (DataObject* self,
- gint64 ordinal)
-{
- DataCollection* _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 97 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->member_of;
-#line 97 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _vala_assert (_tmp0_ == NULL, "member_of == null");
-#line 99 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->ordinal = ordinal;
-#line 461 "DataObject.c"
-}
-
-
-void
-data_object_internal_clear_membership (DataObject* self)
-{
-#line 104 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 105 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _data_collection_unref0 (self->priv->member_of);
-#line 105 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->member_of = NULL;
-#line 106 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->ordinal = DATA_COLLECTION_INVALID_OBJECT_ORDINAL;
-#line 476 "DataObject.c"
-}
-
-
-inline gint64
-data_object_internal_get_ordinal (DataObject* self)
-{
- gint64 result = 0LL;
- gint64 _tmp0_;
-#line 110 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (self), 0LL);
-#line 111 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->ordinal;
-#line 111 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- result = _tmp0_;
-#line 111 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return result;
-#line 493 "DataObject.c"
-}
-
-
-inline gint64
-data_object_get_object_id (DataObject* self)
-{
- gint64 result = 0LL;
- gint64 _tmp0_;
-#line 114 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (self), 0LL);
-#line 115 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->object_id;
-#line 115 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- result = _tmp0_;
-#line 115 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return result;
-#line 510 "DataObject.c"
-}
-
-
-static void
-_vala_GValue_free (GValue* self)
-{
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_value_unset (self);
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_free (self);
-#line 521 "DataObject.c"
-}
-
-
-void
-data_object_get_collection_property (DataObject* self,
- const gchar* name,
- GValue* def,
- GValue* result)
-{
- DataCollection* _tmp0_;
- GValue* _result_ = NULL;
- DataCollection* _tmp2_;
- GValue* _tmp3_;
- GValue* _tmp4_ = NULL;
- GValue* _tmp5_;
- GValue _tmp7_ = {0};
-#line 118 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 118 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (name != NULL);
-#line 119 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->member_of;
-#line 119 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- if (_tmp0_ == NULL) {
-#line 546 "DataObject.c"
- GValue _tmp1_ = {0};
-#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- if (G_IS_VALUE (def)) {
-#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_value_init (&_tmp1_, G_VALUE_TYPE (def));
-#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_value_copy (def, &_tmp1_);
-#line 554 "DataObject.c"
- } else {
-#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp1_ = *def;
-#line 558 "DataObject.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- *result = _tmp1_;
-#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return;
-#line 564 "DataObject.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp2_ = self->priv->member_of;
-#line 122 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp3_ = data_collection_get_property (_tmp2_, name);
-#line 122 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _result_ = _tmp3_;
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp5_ = _result_;
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- if (_tmp5_ != NULL) {
-#line 576 "DataObject.c"
- GValue* _tmp6_;
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp6_ = _result_;
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp4_ = _tmp6_;
-#line 582 "DataObject.c"
- } else {
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp4_ = def;
-#line 586 "DataObject.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- if (G_IS_VALUE (_tmp4_)) {
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_value_init (&_tmp7_, G_VALUE_TYPE (_tmp4_));
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_value_copy (_tmp4_, &_tmp7_);
-#line 594 "DataObject.c"
- } else {
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp7_ = *_tmp4_;
-#line 598 "DataObject.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- *result = _tmp7_;
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- __vala_GValue_free0 (_result_);
-#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- return;
-#line 606 "DataObject.c"
-}
-
-
-void
-data_object_set_collection_property (DataObject* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target)
-{
- DataCollection* _tmp0_;
-#line 127 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 127 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (name != NULL);
-#line 127 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (val != NULL);
-#line 128 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->member_of;
-#line 128 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- if (_tmp0_ != NULL) {
-#line 628 "DataObject.c"
- DataCollection* _tmp1_;
- GValue _tmp2_;
-#line 129 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp1_ = self->priv->member_of;
-#line 129 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp2_ = *val;
-#line 129 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- data_collection_set_property (_tmp1_, name, &_tmp2_, value_equals, value_equals_target);
-#line 637 "DataObject.c"
- }
-}
-
-
-void
-data_object_clear_collection_property (DataObject* self,
- const gchar* name)
-{
- DataCollection* _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (IS_DATA_OBJECT (self));
-#line 132 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_return_if_fail (name != NULL);
-#line 133 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp0_ = self->priv->member_of;
-#line 133 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- if (_tmp0_ != NULL) {
-#line 655 "DataObject.c"
- DataCollection* _tmp1_;
-#line 134 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _tmp1_ = self->priv->member_of;
-#line 134 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- data_collection_clear_property (_tmp1_, name);
-#line 661 "DataObject.c"
- }
-}
-
-
-static void
-data_object_class_init (DataObjectClass * klass)
-{
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- data_object_parent_class = g_type_class_peek_parent (klass);
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- g_type_class_add_private (klass, sizeof (DataObjectPrivate));
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) data_object_real_notify_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- ((DataObjectClass *) klass)->notify_membership_changed = (void (*) (DataObject *, DataCollection*)) data_object_real_notify_membership_changed;
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- ((DataObjectClass *) klass)->notify_collection_property_set = (void (*) (DataObject *, const gchar*, GValue*, GValue*)) data_object_real_notify_collection_property_set;
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- ((DataObjectClass *) klass)->notify_collection_property_cleared = (void (*) (DataObject *, const gchar*)) data_object_real_notify_collection_property_cleared;
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) data_object_real_get_name;
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) data_object_real_to_string;
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- G_OBJECT_CLASS (klass)->finalize = data_object_finalize;
-#line 687 "DataObject.c"
-}
-
-
-static void
-data_object_instance_init (DataObject * self)
-{
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv = DATA_OBJECT_GET_PRIVATE (self);
-#line 32 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->object_id = DATA_OBJECT_INVALID_OBJECT_ID;
-#line 33 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->member_of = NULL;
-#line 34 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self->priv->ordinal = DATA_COLLECTION_INVALID_OBJECT_ORDINAL;
-#line 702 "DataObject.c"
-}
-
-
-static void
-data_object_finalize (GObject * obj)
-{
- DataObject * self;
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_OBJECT, DataObject);
-#line 33 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- _data_collection_unref0 (self->priv->member_of);
-#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala"
- G_OBJECT_CLASS (data_object_parent_class)->finalize (obj);
-#line 716 "DataObject.c"
-}
-
-
-GType
-data_object_get_type (void)
-{
- static volatile gsize data_object_type_id__volatile = 0;
- if (g_once_init_enter (&data_object_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataObject), 0, (GInstanceInitFunc) data_object_instance_init, NULL };
- GType data_object_type_id;
- data_object_type_id = g_type_register_static (G_TYPE_OBJECT, "DataObject", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&data_object_type_id__volatile, data_object_type_id);
- }
- return data_object_type_id__volatile;
-}
-
-
-
diff --git a/src/core/DataSet.c b/src/core/DataSet.c
deleted file mode 100644
index 367fefc..0000000
--- a/src/core/DataSet.c
+++ /dev/null
@@ -1,1195 +0,0 @@
-/* DataSet.c generated by valac 0.40.4, the Vala compiler
- * generated from DataSet.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/**/
-/* DataSet*/
-/**/
-/* A DataSet is a collection class used for internal implementations of DataCollection*/
-/* and its children. It may be of use to other classes, however.*/
-/**/
-/* The general purpose of DataSet is to provide low-cost implementations of various collection*/
-/* operations at a cost of internally maintaining its objects in more than one simple collection.*/
-/* contains(), for example, can return a result with hash-table performance while notions of*/
-/* ordering are maintained by a SortedList. The cost is in adding and removing objects (in general,*/
-/* there are others).*/
-/**/
-/* Because this class has no signalling mechanisms and does not manipulate DataObjects in ways*/
-/* they expect to be manipulated (these features are performed by DataCollection), it's probably*/
-/* best not to use this class. Even in cases of building a list of DataObjects for some quick*/
-/* operation is probably best done by a Gee.ArrayList.*/
-/**/
-/* ComparatorPredicate is used to determine if a re-sort operation is necessary; it has no*/
-/* effect on adding a DataObject to a DataSet in sorted order.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_SET (data_set_get_type ())
-#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet))
-#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass))
-#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET))
-#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET))
-#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass))
-
-typedef struct _DataSet DataSet;
-typedef struct _DataSetClass DataSetClass;
-typedef struct _DataSetPrivate DataSetPrivate;
-
-#define TYPE_SORTED_LIST (sorted_list_get_type ())
-#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
-#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
-#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
-#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
-#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
-
-typedef struct _SortedList SortedList;
-typedef struct _SortedListClass SortedListClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL)))
-typedef struct _ParamSpecDataSet ParamSpecDataSet;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-struct _DataSet {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataSetPrivate * priv;
-};
-
-struct _DataSetClass {
- GTypeClass parent_class;
- void (*finalize) (DataSet *self);
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-struct _DataSetPrivate {
- SortedList* list;
- GeeHashSet* hash_set;
- Comparator user_comparator;
- gpointer user_comparator_target;
- ComparatorPredicate comparator_predicate;
- gpointer comparator_predicate_target;
-};
-
-struct _ParamSpecDataSet {
- GParamSpec parent_instance;
-};
-
-
-static gpointer data_set_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_set_ref (gpointer instance);
-void data_set_unref (gpointer instance);
-GParamSpec* param_spec_data_set (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_set (GValue* value,
- gpointer v_object);
-void value_take_data_set (GValue* value,
- gpointer v_object);
-gpointer value_get_data_set (const GValue* value);
-GType data_set_get_type (void) G_GNUC_CONST;
-GType sorted_list_get_type (void) G_GNUC_CONST;
-#define DATA_SET_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_SET, DataSetPrivate))
-SortedList* sorted_list_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-SortedList* sorted_list_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-DataSet* data_set_new (void);
-DataSet* data_set_construct (GType object_type);
-void data_set_reset_comparator (DataSet* self);
-static gint64 data_set_order_added_comparator (DataSet* self,
- void* a,
- void* b);
-gint64 data_object_internal_get_ordinal (DataObject* self);
-static gboolean data_set_order_added_predicate (DataSet* self,
- DataObject* object,
- Alteration* alteration);
-static gint64 data_set_comparator_wrapper (DataSet* self,
- void* a,
- void* b);
-gboolean data_set_contains (DataSet* self,
- DataObject* object);
-gint data_set_get_count (DataSet* self);
-gint sorted_list_get_count (SortedList* self);
-static gboolean _data_set_order_added_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self);
-void sorted_list_resort (SortedList* self,
- Comparator new_cmp,
- void* new_cmp_target);
-static gint64 _data_set_order_added_comparator_comparator (void* a,
- void* b,
- gpointer self);
-Comparator data_set_get_comparator (DataSet* self,
- void** result_target);
-ComparatorPredicate data_set_get_comparator_predicate (DataSet* self,
- void** result_target);
-void data_set_set_comparator (DataSet* self,
- Comparator user_comparator,
- void* user_comparator_target,
- ComparatorPredicate comparator_predicate,
- void* comparator_predicate_target);
-static gint64 _data_set_comparator_wrapper_comparator (void* a,
- void* b,
- gpointer self);
-GeeList* data_set_get_all (DataSet* self);
-GeeList* sorted_list_get_read_only_view_as_list (SortedList* self);
-DataSet* data_set_copy (DataSet* self);
-SortedList* sorted_list_copy (SortedList* self);
-DataObject* data_set_get_at (DataSet* self,
- gint index);
-gpointer sorted_list_get_at (SortedList* self,
- gint index);
-gint data_set_index_of (DataSet* self,
- DataObject* object);
-gint sorted_list_locate (SortedList* self,
- gconstpointer search,
- gboolean altered,
- GEqualFunc equal_func);
-gboolean data_set_add (DataSet* self,
- DataObject* object);
-gboolean data_set_add_many (DataSet* self,
- GeeCollection* objects);
-gboolean data_set_remove (DataSet* self,
- DataObject* object);
-gboolean data_set_remove_many (DataSet* self,
- GeeCollection* objects);
-gboolean data_set_resort_object (DataSet* self,
- DataObject* object,
- Alteration* alteration);
-gboolean sorted_list_resort_item (SortedList* self,
- gconstpointer item);
-static void data_set_finalize (DataSet * obj);
-
-
-DataSet*
-data_set_construct (GType object_type)
-{
- DataSet* self = NULL;
-#line 35 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self = (DataSet*) g_type_create_instance (object_type);
-#line 36 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- data_set_reset_comparator (self);
-#line 35 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return self;
-#line 232 "DataSet.c"
-}
-
-
-DataSet*
-data_set_new (void)
-{
-#line 35 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return data_set_construct (TYPE_DATA_SET);
-#line 241 "DataSet.c"
-}
-
-
-static gint64
-data_set_order_added_comparator (DataSet* self,
- void* a,
- void* b)
-{
- gint64 result = 0LL;
-#line 39 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), 0LL);
-#line 40 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = data_object_internal_get_ordinal (G_TYPE_CHECK_INSTANCE_CAST ((DataObject*) a, TYPE_DATA_OBJECT, DataObject)) - data_object_internal_get_ordinal (G_TYPE_CHECK_INSTANCE_CAST ((DataObject*) b, TYPE_DATA_OBJECT, DataObject));
-#line 40 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 257 "DataSet.c"
-}
-
-
-static gboolean
-data_set_order_added_predicate (DataSet* self,
- DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 43 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), FALSE);
-#line 43 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 43 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 45 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = FALSE;
-#line 45 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 277 "DataSet.c"
-}
-
-
-static gint64
-data_set_comparator_wrapper (DataSet* self,
- void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 _result_ = 0LL;
- Comparator _tmp0_;
- void* _tmp0__target;
- gint64 _tmp2_;
- gint64 _tmp3_;
-#line 48 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), 0LL);
-#line 49 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (a == b) {
-#line 50 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = (gint64) 0;
-#line 50 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 300 "DataSet.c"
- }
-#line 54 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _result_ = (gint64) 0;
-#line 56 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->user_comparator;
-#line 56 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0__target = self->priv->user_comparator_target;
-#line 56 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (_tmp0_ != NULL) {
-#line 310 "DataSet.c"
- Comparator _tmp1_;
- void* _tmp1__target;
-#line 57 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = self->priv->user_comparator;
-#line 57 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1__target = self->priv->user_comparator_target;
-#line 57 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _result_ = _tmp1_ (a, b, _tmp1__target);
-#line 319 "DataSet.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp2_ = _result_;
-#line 59 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (_tmp2_ == ((gint64) 0)) {
-#line 60 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _result_ = data_set_order_added_comparator (self, a, b);
-#line 327 "DataSet.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp3_ = _result_;
-#line 62 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _vala_assert (_tmp3_ != ((gint64) 0), "result != 0");
-#line 64 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = _result_;
-#line 64 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 337 "DataSet.c"
-}
-
-
-gboolean
-data_set_contains (DataSet* self,
- DataObject* object)
-{
- gboolean result = FALSE;
- GeeHashSet* _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), FALSE);
-#line 67 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 68 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->hash_set;
-#line 68 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object);
-#line 68 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 357 "DataSet.c"
-}
-
-
-inline gint
-data_set_get_count (DataSet* self)
-{
- gint result = 0;
- SortedList* _tmp0_;
-#line 71 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), 0);
-#line 72 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 72 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = sorted_list_get_count (_tmp0_);
-#line 72 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 374 "DataSet.c"
-}
-
-
-static gboolean
-_data_set_order_added_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self)
-{
- gboolean result;
- result = data_set_order_added_predicate ((DataSet*) self, object, alteration);
-#line 77 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 387 "DataSet.c"
-}
-
-
-static gint64
-_data_set_order_added_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = data_set_order_added_comparator ((DataSet*) self, a, b);
-#line 78 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 400 "DataSet.c"
-}
-
-
-void
-data_set_reset_comparator (DataSet* self)
-{
- SortedList* _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_if_fail (IS_DATA_SET (self));
-#line 76 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->user_comparator = NULL;
-#line 76 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->user_comparator_target = NULL;
-#line 77 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->comparator_predicate = _data_set_order_added_predicate_comparator_predicate;
-#line 77 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->comparator_predicate_target = self;
-#line 78 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 78 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- sorted_list_resort (_tmp0_, _data_set_order_added_comparator_comparator, self);
-#line 422 "DataSet.c"
-}
-
-
-Comparator
-data_set_get_comparator (DataSet* self,
- void** result_target)
-{
- Comparator result = NULL;
- Comparator _tmp0_;
- void* _tmp0__target;
- Comparator _tmp1_;
- void* _tmp1__target;
-#line 81 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), NULL);
-#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->user_comparator;
-#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0__target = self->priv->user_comparator_target;
-#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = _tmp0_;
-#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1__target = _tmp0__target;
-#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- *result_target = _tmp1__target;
-#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = _tmp1_;
-#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 451 "DataSet.c"
-}
-
-
-ComparatorPredicate
-data_set_get_comparator_predicate (DataSet* self,
- void** result_target)
-{
- ComparatorPredicate result = NULL;
- ComparatorPredicate _tmp0_;
- void* _tmp0__target;
- ComparatorPredicate _tmp1_;
- void* _tmp1__target;
-#line 85 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), NULL);
-#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->comparator_predicate;
-#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0__target = self->priv->comparator_predicate_target;
-#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = _tmp0_;
-#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1__target = _tmp0__target;
-#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- *result_target = _tmp1__target;
-#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 480 "DataSet.c"
-}
-
-
-static gint64
-_data_set_comparator_wrapper_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = data_set_comparator_wrapper ((DataSet*) self, a, b);
-#line 92 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 493 "DataSet.c"
-}
-
-
-void
-data_set_set_comparator (DataSet* self,
- Comparator user_comparator,
- void* user_comparator_target,
- ComparatorPredicate comparator_predicate,
- void* comparator_predicate_target)
-{
- SortedList* _tmp0_;
-#line 89 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_if_fail (IS_DATA_SET (self));
-#line 90 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->user_comparator = user_comparator;
-#line 90 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->user_comparator_target = user_comparator_target;
-#line 91 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->comparator_predicate = comparator_predicate;
-#line 91 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->comparator_predicate_target = comparator_predicate_target;
-#line 92 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 92 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- sorted_list_resort (_tmp0_, _data_set_comparator_wrapper_comparator, self);
-#line 519 "DataSet.c"
-}
-
-
-GeeList*
-data_set_get_all (DataSet* self)
-{
- GeeList* result = NULL;
- SortedList* _tmp0_;
- GeeList* _tmp1_;
- GeeList* _tmp2_;
-#line 95 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), NULL);
-#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = sorted_list_get_read_only_view_as_list (_tmp0_);
-#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp2_ = _tmp1_;
-#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = _tmp2_;
-#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 542 "DataSet.c"
-}
-
-
-DataSet*
-data_set_copy (DataSet* self)
-{
- DataSet* result = NULL;
- DataSet* clone = NULL;
- DataSet* _tmp0_;
- SortedList* _tmp1_;
- SortedList* _tmp2_;
- GeeHashSet* _tmp3_;
- GeeHashSet* _tmp4_;
-#line 99 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), NULL);
-#line 100 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = data_set_new ();
-#line 100 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- clone = _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = self->priv->list;
-#line 101 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp2_ = sorted_list_copy (_tmp1_);
-#line 101 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _g_object_unref0 (clone->priv->list);
-#line 101 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- clone->priv->list = _tmp2_;
-#line 102 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp3_ = clone->priv->hash_set;
-#line 102 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp4_ = self->priv->hash_set;
-#line 102 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 104 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = clone;
-#line 104 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 580 "DataSet.c"
-}
-
-
-DataObject*
-data_set_get_at (DataSet* self,
- gint index)
-{
- DataObject* result = NULL;
- SortedList* _tmp0_;
- gpointer _tmp1_;
-#line 107 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), NULL);
-#line 108 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 108 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = sorted_list_get_at (_tmp0_, index);
-#line 108 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = (DataObject*) _tmp1_;
-#line 108 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 601 "DataSet.c"
-}
-
-
-gint
-data_set_index_of (DataSet* self,
- DataObject* object)
-{
- gint result = 0;
- SortedList* _tmp0_;
- GEqualFunc _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), 0);
-#line 111 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), 0);
-#line 112 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 112 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = g_direct_equal;
-#line 112 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = sorted_list_locate (_tmp0_, object, FALSE, _tmp1_);
-#line 112 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 624 "DataSet.c"
-}
-
-
-gboolean
-data_set_add (DataSet* self,
- DataObject* object)
-{
- gboolean result = FALSE;
- SortedList* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 116 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), FALSE);
-#line 116 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 117 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 117 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), object)) {
-#line 118 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = FALSE;
-#line 118 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 647 "DataSet.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = self->priv->hash_set;
-#line 120 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object)) {
-#line 653 "DataSet.c"
- SortedList* _tmp2_;
-#line 122 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp2_ = self->priv->list;
-#line 122 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), object);
-#line 124 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = FALSE;
-#line 124 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 663 "DataSet.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = TRUE;
-#line 127 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 669 "DataSet.c"
-}
-
-
-gboolean
-data_set_add_many (DataSet* self,
- GeeCollection* objects)
-{
- gboolean result = FALSE;
- gint count = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- SortedList* _tmp3_;
- GeeHashSet* _tmp4_;
-#line 131 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), FALSE);
-#line 131 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (objects), FALSE);
-#line 132 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = gee_collection_get_size (objects);
-#line 132 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- count = _tmp1_;
-#line 133 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp2_ = count;
-#line 133 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (_tmp2_ == 0) {
-#line 134 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = TRUE;
-#line 134 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 702 "DataSet.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp3_ = self->priv->list;
-#line 136 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), objects)) {
-#line 137 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = FALSE;
-#line 137 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 712 "DataSet.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp4_ = self->priv->hash_set;
-#line 139 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection), objects)) {
-#line 718 "DataSet.c"
- SortedList* _tmp5_;
-#line 141 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp5_ = self->priv->list;
-#line 141 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), objects);
-#line 143 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = FALSE;
-#line 143 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 728 "DataSet.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = TRUE;
-#line 146 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 734 "DataSet.c"
-}
-
-
-gboolean
-data_set_remove (DataSet* self,
- DataObject* object)
-{
- gboolean result = FALSE;
- gboolean success = FALSE;
- SortedList* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 149 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), FALSE);
-#line 149 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 150 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- success = TRUE;
-#line 152 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 152 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), object)) {
-#line 153 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- success = FALSE;
-#line 758 "DataSet.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = self->priv->hash_set;
-#line 155 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object)) {
-#line 156 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- success = FALSE;
-#line 766 "DataSet.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = success;
-#line 158 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 772 "DataSet.c"
-}
-
-
-gboolean
-data_set_remove_many (DataSet* self,
- GeeCollection* objects)
-{
- gboolean result = FALSE;
- gboolean success = FALSE;
- SortedList* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), FALSE);
-#line 161 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (objects), FALSE);
-#line 162 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- success = TRUE;
-#line 164 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = self->priv->list;
-#line 164 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), objects)) {
-#line 165 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- success = FALSE;
-#line 796 "DataSet.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = self->priv->hash_set;
-#line 167 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), objects)) {
-#line 168 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- success = FALSE;
-#line 804 "DataSet.c"
- }
-#line 170 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = success;
-#line 170 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 810 "DataSet.c"
-}
-
-
-gboolean
-data_set_resort_object (DataSet* self,
- DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- ComparatorPredicate _tmp2_;
- void* _tmp2__target;
- SortedList* _tmp4_;
-#line 174 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_SET (self), FALSE);
-#line 174 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 174 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail ((alteration == NULL) || IS_ALTERATION (alteration), FALSE);
-#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp2_ = self->priv->comparator_predicate;
-#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp2__target = self->priv->comparator_predicate_target;
-#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (_tmp2_ != NULL) {
-#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = alteration != NULL;
-#line 839 "DataSet.c"
- } else {
-#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = FALSE;
-#line 843 "DataSet.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (_tmp1_) {
-#line 847 "DataSet.c"
- ComparatorPredicate _tmp3_;
- void* _tmp3__target;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp3_ = self->priv->comparator_predicate;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp3__target = self->priv->comparator_predicate_target;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = !_tmp3_ (object, alteration, _tmp3__target);
-#line 856 "DataSet.c"
- } else {
-#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = FALSE;
-#line 860 "DataSet.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (_tmp0_) {
-#line 177 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = FALSE;
-#line 177 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 868 "DataSet.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp4_ = self->priv->list;
-#line 180 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- result = sorted_list_resort_item (_tmp4_, object);
-#line 180 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return result;
-#line 876 "DataSet.c"
-}
-
-
-static void
-value_data_set_init (GValue* value)
-{
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- value->data[0].v_pointer = NULL;
-#line 885 "DataSet.c"
-}
-
-
-static void
-value_data_set_free_value (GValue* value)
-{
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (value->data[0].v_pointer) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- data_set_unref (value->data[0].v_pointer);
-#line 896 "DataSet.c"
- }
-}
-
-
-static void
-value_data_set_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (src_value->data[0].v_pointer) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- dest_value->data[0].v_pointer = data_set_ref (src_value->data[0].v_pointer);
-#line 909 "DataSet.c"
- } else {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 913 "DataSet.c"
- }
-}
-
-
-static gpointer
-value_data_set_peek_pointer (const GValue* value)
-{
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return value->data[0].v_pointer;
-#line 923 "DataSet.c"
-}
-
-
-static gchar*
-value_data_set_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (collect_values[0].v_pointer) {
-#line 935 "DataSet.c"
- DataSet * object;
- object = collect_values[0].v_pointer;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 942 "DataSet.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.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 946 "DataSet.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- value->data[0].v_pointer = data_set_ref (object);
-#line 950 "DataSet.c"
- } else {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- value->data[0].v_pointer = NULL;
-#line 954 "DataSet.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return NULL;
-#line 958 "DataSet.c"
-}
-
-
-static gchar*
-value_data_set_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- DataSet ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!object_p) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 974 "DataSet.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (!value->data[0].v_pointer) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- *object_p = NULL;
-#line 980 "DataSet.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- *object_p = value->data[0].v_pointer;
-#line 984 "DataSet.c"
- } else {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- *object_p = data_set_ref (value->data[0].v_pointer);
-#line 988 "DataSet.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return NULL;
-#line 992 "DataSet.c"
-}
-
-
-GParamSpec*
-param_spec_data_set (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecDataSet* spec;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_DATA_SET), NULL);
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return G_PARAM_SPEC (spec);
-#line 1012 "DataSet.c"
-}
-
-
-gpointer
-value_get_data_set (const GValue* value)
-{
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_SET), NULL);
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return value->data[0].v_pointer;
-#line 1023 "DataSet.c"
-}
-
-
-void
-value_set_data_set (GValue* value,
- gpointer v_object)
-{
- DataSet * old;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_SET));
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- old = value->data[0].v_pointer;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (v_object) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_SET));
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- value->data[0].v_pointer = v_object;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- data_set_ref (value->data[0].v_pointer);
-#line 1046 "DataSet.c"
- } else {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- value->data[0].v_pointer = NULL;
-#line 1050 "DataSet.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (old) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- data_set_unref (old);
-#line 1056 "DataSet.c"
- }
-}
-
-
-void
-value_take_data_set (GValue* value,
- gpointer v_object)
-{
- DataSet * old;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_SET));
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- old = value->data[0].v_pointer;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (v_object) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_SET));
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- value->data[0].v_pointer = v_object;
-#line 1078 "DataSet.c"
- } else {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- value->data[0].v_pointer = NULL;
-#line 1082 "DataSet.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (old) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- data_set_unref (old);
-#line 1088 "DataSet.c"
- }
-}
-
-
-static void
-data_set_class_init (DataSetClass * klass)
-{
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- data_set_parent_class = g_type_class_peek_parent (klass);
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- ((DataSetClass *) klass)->finalize = data_set_finalize;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_type_class_add_private (klass, sizeof (DataSetPrivate));
-#line 1102 "DataSet.c"
-}
-
-
-static void
-data_set_instance_init (DataSet * self)
-{
- SortedList* _tmp0_;
- GeeHashSet* _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv = DATA_SET_GET_PRIVATE (self);
-#line 30 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp0_ = sorted_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL);
-#line 30 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->list = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _tmp1_ = gee_hash_set_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 31 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->hash_set = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->user_comparator = NULL;
-#line 32 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->user_comparator_target = self;
-#line 33 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->comparator_predicate = NULL;
-#line 33 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->priv->comparator_predicate_target = self;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self->ref_count = 1;
-#line 1131 "DataSet.c"
-}
-
-
-static void
-data_set_finalize (DataSet * obj)
-{
- DataSet * self;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_SET, DataSet);
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_signal_handlers_destroy (self);
-#line 30 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _g_object_unref0 (self->priv->list);
-#line 31 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- _g_object_unref0 (self->priv->hash_set);
-#line 1147 "DataSet.c"
-}
-
-
-GType
-data_set_get_type (void)
-{
- static volatile gsize data_set_type_id__volatile = 0;
- if (g_once_init_enter (&data_set_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_data_set_init, value_data_set_free_value, value_data_set_copy_value, value_data_set_peek_pointer, "p", value_data_set_collect_value, "p", value_data_set_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DataSetClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_set_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataSet), 0, (GInstanceInitFunc) data_set_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType data_set_type_id;
- data_set_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DataSet", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&data_set_type_id__volatile, data_set_type_id);
- }
- return data_set_type_id__volatile;
-}
-
-
-gpointer
-data_set_ref (gpointer instance)
-{
- DataSet * self;
- self = instance;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- return instance;
-#line 1176 "DataSet.c"
-}
-
-
-void
-data_set_unref (gpointer instance)
-{
- DataSet * self;
- self = instance;
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- DATA_SET_GET_CLASS (self)->finalize (self);
-#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1191 "DataSet.c"
- }
-}
-
-
-
diff --git a/src/core/DataSource.c b/src/core/DataSource.c
deleted file mode 100644
index 3d7ecf5..0000000
--- a/src/core/DataSource.c
+++ /dev/null
@@ -1,5127 +0,0 @@
-/* DataSource.c generated by valac 0.40.4, the Vala compiler
- * generated from DataSource.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/**/
-/* DataSource*/
-/* */
-/* A DataSource is an object that is unique throughout the system. DataSources*/
-/* commonly have external and/or persistent representations, hence they have a notion of being*/
-/* destroyed (versus removed or freed). Several DataViews may exist that reference a single*/
-/* DataSource. Note that DataSources MUST be destroyed (rather than simply removed) from their*/
-/* SourceCollection, and that they MUST be destroyed via their SourceCollection (rather than*/
-/* calling DataSource.destroy() directly.)*/
-/**/
-/* Destroying a DataSource indicates it should remove all secondary and tertiary structures (such*/
-/* as thumbnails) and any records pointing to its backing store. SourceCollection.destroy_marked()*/
-/* has a parameter indicating if the backing should be destroyed as well; that is when*/
-/* internal_delete_backing() is called.*/
-/**/
-/* There are no provisions (currently) for a DataSource to be removed from its SourceCollection*/
-/* without destroying its backing and/or secondary and tertiary structures. DataSources are intended*/
-/* to go to the grave with their SourceCollection otherwise. If a need arises for a DataSource to*/
-/* be peaceably removed from its SourceCollection, code will need to be written. SourceSnapshots*/
-/* may be one solution to this problem.*/
-/**/
-/* Some DataSources cannot be reconstituted (for example, if its backing file is deleted). In*/
-/* that case, dehydrate() should return null. When reconstituted, it is the responsibility of the*/
-/* implementation to ensure an exact clone is produced, minus any details that are not relevant or*/
-/* exposed (such as a database ID).*/
-/**/
-/* If other DataSources refer to this DataSource, their state will *not* be */
-/* saved/restored. This must be achieved via other means. However, implementations *should**/
-/* track when changes to external state would break the proxy and call notify_broken();*/
-/**/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-enum {
- DATA_SOURCE_0_PROPERTY,
- DATA_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* data_source_properties[DATA_SOURCE_NUM_PROPERTIES];
-#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-#define _source_backlink_unref0(var) ((var == NULL) ? NULL : (var = (source_backlink_unref (var), NULL)))
-#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-enum {
- DATA_SOURCE_UNLINKED_SIGNAL,
- DATA_SOURCE_RELINKED_SIGNAL,
- DATA_SOURCE_DESTROYED_SIGNAL,
- DATA_SOURCE_NUM_SIGNALS
-};
-static guint data_source_signals[DATA_SOURCE_NUM_SIGNALS] = {0};
-typedef struct _SourceSnapshotPrivate SourceSnapshotPrivate;
-typedef struct _ParamSpecSourceSnapshot ParamSpecSourceSnapshot;
-enum {
- SOURCE_SNAPSHOT_BROKEN_SIGNAL,
- SOURCE_SNAPSHOT_NUM_SIGNALS
-};
-static guint source_snapshot_signals[SOURCE_SNAPSHOT_NUM_SIGNALS] = {0};
-typedef struct _SourceBacklinkPrivate SourceBacklinkPrivate;
-typedef struct _ParamSpecSourceBacklink ParamSpecSourceBacklink;
-
-#define TYPE_SOURCE_PROXY (source_proxy_get_type ())
-#define SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_PROXY, SourceProxy))
-#define SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_PROXY, SourceProxyClass))
-#define IS_SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_PROXY))
-#define IS_SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_PROXY))
-#define SOURCE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_PROXY, SourceProxyClass))
-
-typedef struct _SourceProxy SourceProxy;
-typedef struct _SourceProxyClass SourceProxyClass;
-typedef struct _SourceProxyPrivate SourceProxyPrivate;
-#define _source_snapshot_unref0(var) ((var == NULL) ? NULL : (var = (source_snapshot_unref (var), NULL)))
-typedef struct _ParamSpecSourceProxy ParamSpecSourceProxy;
-enum {
- SOURCE_PROXY_RECONSTITUTED_SIGNAL,
- SOURCE_PROXY_DEHYDRATED_SIGNAL,
- SOURCE_PROXY_BROKEN_SIGNAL,
- SOURCE_PROXY_NUM_SIGNALS
-};
-static guint source_proxy_signals[SOURCE_PROXY_NUM_SIGNALS] = {0};
-
-#define TYPE_PROXYABLE (proxyable_get_type ())
-#define PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROXYABLE, Proxyable))
-#define IS_PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROXYABLE))
-#define PROXYABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_PROXYABLE, ProxyableIface))
-
-typedef struct _Proxyable Proxyable;
-typedef struct _ProxyableIface ProxyableIface;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-struct _DataSourcePrivate {
- DataView** subscribers;
- gint subscribers_length1;
- gint _subscribers_size_;
- SourceHoldingTank* holding_tank;
- SourceCollection* unlinked_from_collection;
- GeeHashMap* backlinks;
- gboolean in_contact;
- gboolean marked_for_destroy;
- gboolean is_destroyed;
-};
-
-typedef void (*DataSourceContactSubscriber) (DataView* view, void* user_data);
-typedef void (*DataSourceContactSubscriberAlteration) (DataView* view, Alteration* alteration, void* user_data);
-struct _SourceSnapshot {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceSnapshotPrivate * priv;
-};
-
-struct _SourceSnapshotClass {
- GTypeClass parent_class;
- void (*finalize) (SourceSnapshot *self);
- void (*notify_broken) (SourceSnapshot* self);
- void (*broken) (SourceSnapshot* self);
-};
-
-struct _SourceSnapshotPrivate {
- gboolean snapshot_broken;
-};
-
-struct _ParamSpecSourceSnapshot {
- GParamSpec parent_instance;
-};
-
-struct _SourceBacklink {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceBacklinkPrivate * priv;
-};
-
-struct _SourceBacklinkClass {
- GTypeClass parent_class;
- void (*finalize) (SourceBacklink *self);
-};
-
-struct _SourceBacklinkPrivate {
- gchar* _name;
- gchar* _value;
-};
-
-struct _ParamSpecSourceBacklink {
- GParamSpec parent_instance;
-};
-
-struct _SourceProxy {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceProxyPrivate * priv;
-};
-
-struct _SourceProxyClass {
- GTypeClass parent_class;
- void (*finalize) (SourceProxy *self);
- DataSource* (*reconstitute) (SourceProxy* self, gint64 object_id, SourceSnapshot* snapshot);
- void (*notify_reconstituted) (SourceProxy* self, DataSource* source);
- void (*notify_dehydrated) (SourceProxy* self);
- void (*notify_broken) (SourceProxy* self);
- void (*reconstituted) (SourceProxy* self, DataSource* source);
- void (*dehydrated) (SourceProxy* self);
- void (*broken) (SourceProxy* self);
-};
-
-struct _SourceProxyPrivate {
- gint64 object_id;
- gchar* source_string;
- DataSource* source;
- SourceSnapshot* snapshot;
- SourceCollection* membership;
-};
-
-struct _ParamSpecSourceProxy {
- GParamSpec parent_instance;
-};
-
-struct _ProxyableIface {
- GTypeInterface parent_iface;
- SourceProxy* (*get_proxy) (Proxyable* self);
-};
-
-
-static gpointer data_source_parent_class = NULL;
-static gpointer source_snapshot_parent_class = NULL;
-static gpointer source_backlink_parent_class = NULL;
-static gpointer source_proxy_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-#define DATA_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_SOURCE, DataSourcePrivate))
-DataSource* data_source_construct (GType object_type,
- gint64 object_id);
-DataObject* data_object_construct (GType object_type,
- gint64 object_id);
-static void data_source_real_notify_membership_changed (DataObject* base,
- DataCollection* collection);
-void data_source_notify_unlinked (DataSource* self);
-void data_object_notify_membership_changed (DataObject* self,
- DataCollection* collection);
-void data_source_notify_held_in_tank (DataSource* self,
- SourceHoldingTank* holding_tank);
-static void data_source_real_notify_held_in_tank (DataSource* self,
- SourceHoldingTank* holding_tank);
-DataCollection* data_object_get_membership (DataObject* self);
-static void data_source_real_notify_altered (DataObject* base,
- Alteration* alteration);
-void source_holding_tank_internal_notify_altered (SourceHoldingTank* self,
- DataSource* source,
- Alteration* alteration);
-void data_source_contact_subscribers_alteration (DataSource* self,
- Alteration* alteration);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-void data_source_notify_unlinking (DataSource* self,
- SourceCollection* collection);
-static void data_source_real_notify_unlinking (DataSource* self,
- SourceCollection* collection);
-static void data_source_real_notify_unlinked (DataSource* self);
-void data_source_commit_backlinks (DataSource* self,
- SourceCollection* sources,
- const gchar* dehydrated);
-static gchar* data_source_dehydrate_backlinks (DataSource* self);
-void data_source_notify_relinking (DataSource* self,
- SourceCollection* collection);
-static void data_source_real_notify_relinking (DataSource* self,
- SourceCollection* collection);
-void data_source_notify_relinked (DataSource* self);
-static void data_source_real_notify_relinked (DataSource* self);
-gchar* data_source_get_typename (DataSource* self);
-static gchar* data_source_real_get_typename (DataSource* self);
-gint64 data_source_get_instance_id (DataSource* self);
-static gint64 data_source_real_get_instance_id (DataSource* self);
-gchar* data_source_get_source_id (DataSource* self);
-static gchar* data_source_real_get_source_id (DataSource* self);
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-gboolean data_source_has_backlink (DataSource* self,
- SourceBacklink* backlink);
-const gchar* source_backlink_get_name (SourceBacklink* self);
-const gchar* source_backlink_get_value (SourceBacklink* self);
-GeeList* data_source_get_backlinks (DataSource* self,
- const gchar* name);
-SourceBacklink* source_backlink_new (const gchar* name,
- const gchar* value);
-SourceBacklink* source_backlink_construct (GType object_type,
- const gchar* name,
- const gchar* value);
-void data_source_set_backlink (DataSource* self,
- SourceBacklink* backlink);
-void source_collection_internal_backlink_set (SourceCollection* self,
- DataSource* source,
- SourceBacklink* backlink);
-gboolean data_source_remove_backlink (DataSource* self,
- SourceBacklink* backlink);
-void source_collection_internal_backlink_removed (SourceCollection* self,
- DataSource* source,
- SourceBacklink* backlink);
-static void data_source_real_commit_backlinks (DataSource* self,
- SourceCollection* sources,
- const gchar* dehydrated);
-gchar* data_object_to_string (DataObject* self);
-gboolean is_string_empty (const gchar* s);
-void data_source_rehydrate_backlinks (DataSource* self,
- SourceCollection* unlinked_from,
- const gchar* dehydrated);
-SourceSnapshot* data_source_save_snapshot (DataSource* self);
-static SourceSnapshot* data_source_real_save_snapshot (DataSource* self);
-void data_source_internal_mark_for_destroy (DataSource* self);
-gboolean data_source_internal_delete_backing (DataSource* self,
- GError** error);
-static gboolean data_source_real_internal_delete_backing (DataSource* self,
- GError** error);
-gboolean data_source_equals (DataSource* self,
- DataSource* source);
-static gboolean data_source_real_equals (DataSource* self,
- DataSource* source);
-void data_source_destroy (DataSource* self);
-static void data_source_real_destroy (DataSource* self);
-void data_view_notify_unsubscribed (DataView* self,
- DataSource* source);
-gboolean data_source_destroy_orphan (DataSource* self,
- gboolean delete_backing);
-void source_collection_notify_unlinked_destroyed (SourceCollection* self,
- DataSource* unlinked);
-void data_source_internal_subscribe (DataSource* self,
- DataView* view);
-static void _vala_array_add66 (DataView** * array,
- int* length,
- int* size,
- DataView* value);
-void data_source_internal_unsubscribe (DataSource* self,
- DataView* view);
-void data_source_contact_subscribers (DataSource* self,
- DataSourceContactSubscriber contact_subscriber,
- void* contact_subscriber_target);
-static void data_source_real_unlinked (DataSource* self,
- SourceCollection* sources);
-static void g_cclosure_user_marshal_VOID__DATA_COLLECTION (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void data_source_real_relinked (DataSource* self,
- SourceCollection* sources);
-static void data_source_real_destroyed (DataSource* self);
-static void data_source_finalize (GObject * obj);
-#define SOURCE_SNAPSHOT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_SNAPSHOT, SourceSnapshotPrivate))
-void source_snapshot_notify_broken (SourceSnapshot* self);
-static void source_snapshot_real_notify_broken (SourceSnapshot* self);
-gboolean source_snapshot_is_broken (SourceSnapshot* self);
-SourceSnapshot* source_snapshot_construct (GType object_type);
-static void source_snapshot_real_broken (SourceSnapshot* self);
-static void source_snapshot_finalize (SourceSnapshot * obj);
-#define SOURCE_BACKLINK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_BACKLINK, SourceBacklinkPrivate))
-static gboolean source_backlink_validate_name_value (const gchar* name,
- const gchar* value);
-SourceBacklink* source_backlink_new_from_source (DataSource* source);
-SourceBacklink* source_backlink_construct_from_source (GType object_type,
- DataSource* source);
-gchar* source_backlink_to_string (SourceBacklink* self);
-guint source_backlink_hash_func (SourceBacklink* backlink);
-gboolean source_backlink_equal_func (SourceBacklink* alink,
- SourceBacklink* blink);
-const gchar* source_backlink_get_typename (SourceBacklink* self);
-gint64 source_backlink_get_instance_id (SourceBacklink* self);
-static void source_backlink_finalize (SourceBacklink * obj);
-gpointer source_proxy_ref (gpointer instance);
-void source_proxy_unref (gpointer instance);
-GParamSpec* param_spec_source_proxy (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_proxy (GValue* value,
- gpointer v_object);
-void value_take_source_proxy (GValue* value,
- gpointer v_object);
-gpointer value_get_source_proxy (const GValue* value);
-GType source_proxy_get_type (void) G_GNUC_CONST;
-#define SOURCE_PROXY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_PROXY, SourceProxyPrivate))
-static void source_proxy_drop_source (SourceProxy* self);
-static void source_proxy_on_source_added (SourceProxy* self,
- GeeIterable* added);
-static void _source_proxy_on_source_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self);
-SourceProxy* source_proxy_construct (GType object_type,
- DataSource* source);
-gint64 data_object_get_object_id (DataObject* self);
-static void source_proxy_on_snapshot_broken (SourceProxy* self);
-static void _source_proxy_on_snapshot_broken_source_snapshot_broken (SourceSnapshot* _sender,
- gpointer self);
-static void source_proxy_set_source (SourceProxy* self,
- DataSource* source);
-DataSource* source_proxy_reconstitute (SourceProxy* self,
- gint64 object_id,
- SourceSnapshot* snapshot);
-static DataSource* source_proxy_real_reconstitute (SourceProxy* self,
- gint64 object_id,
- SourceSnapshot* snapshot);
-void source_proxy_notify_reconstituted (SourceProxy* self,
- DataSource* source);
-static void source_proxy_real_notify_reconstituted (SourceProxy* self,
- DataSource* source);
-void source_proxy_notify_dehydrated (SourceProxy* self);
-static void source_proxy_real_notify_dehydrated (SourceProxy* self);
-void source_proxy_notify_broken (SourceProxy* self);
-static void source_proxy_real_notify_broken (SourceProxy* self);
-static void source_proxy_on_destroyed (SourceProxy* self);
-static void _source_proxy_on_destroyed_data_source_destroyed (DataSource* _sender,
- gpointer self);
-DataSource* source_proxy_get_source (SourceProxy* self);
-gboolean data_collection_contains (DataCollection* self,
- DataObject* object);
-static void source_proxy_real_reconstituted (SourceProxy* self,
- DataSource* source);
-static void source_proxy_real_dehydrated (SourceProxy* self);
-static void source_proxy_real_broken (SourceProxy* self);
-static void source_proxy_finalize (SourceProxy * obj);
-GType proxyable_get_type (void) G_GNUC_CONST;
-SourceProxy* proxyable_get_proxy (Proxyable* self);
-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 gint _vala_array_length (gpointer array);
-
-
-DataSource*
-data_source_construct (GType object_type,
- gint64 object_id)
-{
- DataSource * self = NULL;
-#line 64 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = (DataSource*) data_object_construct (object_type, object_id);
-#line 63 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return self;
-#line 616 "DataSource.c"
-}
-
-
-static void
-data_source_real_notify_membership_changed (DataObject* base,
- DataCollection* collection)
-{
- DataSource * self;
- gboolean _tmp4_ = FALSE;
-#line 73 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATA_SOURCE, DataSource);
-#line 73 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail ((collection == NULL) || IS_DATA_COLLECTION (collection));
-#line 75 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (collection == NULL) {
-#line 632 "DataSource.c"
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->is_destroyed;
-#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_) {
-#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = TRUE;
-#line 641 "DataSource.c"
- } else {
- GeeHashMap* _tmp2_;
-#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->backlinks;
-#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = _tmp2_ != NULL;
-#line 648 "DataSource.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp0_, "is_destroyed || backlinks != null");
-#line 652 "DataSource.c"
- } else {
- gboolean _tmp3_;
-#line 78 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = self->priv->is_destroyed;
-#line 78 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (!_tmp3_, "!is_destroyed");
-#line 659 "DataSource.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (collection == NULL) {
-#line 663 "DataSource.c"
- GeeHashMap* _tmp5_;
-#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = self->priv->backlinks;
-#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = _tmp5_ != NULL;
-#line 669 "DataSource.c"
- } else {
-#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = FALSE;
-#line 673 "DataSource.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp4_) {
-#line 83 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_notify_unlinked (self);
-#line 679 "DataSource.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_OBJECT_CLASS (data_source_parent_class)->notify_membership_changed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), collection);
-#line 683 "DataSource.c"
-}
-
-
-static gpointer
-_source_holding_tank_ref0 (gpointer self)
-{
-#line 100 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return self ? source_holding_tank_ref (self) : NULL;
-#line 692 "DataSource.c"
-}
-
-
-static void
-data_source_real_notify_held_in_tank (DataSource* self,
- SourceHoldingTank* holding_tank)
-{
- DataCollection* _tmp0_;
- DataCollection* _tmp1_;
- SourceHoldingTank* _tmp4_;
-#line 88 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail ((holding_tank == NULL) || IS_SOURCE_HOLDING_TANK (holding_tank));
-#line 90 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 90 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = _tmp0_;
-#line 90 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp1_ == NULL, "get_membership() == null");
-#line 90 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _data_collection_unref0 (_tmp1_);
-#line 94 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (holding_tank != NULL) {
-#line 715 "DataSource.c"
- SourceHoldingTank* _tmp2_;
-#line 95 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->holding_tank;
-#line 95 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp2_ == NULL, "this.holding_tank == null");
-#line 721 "DataSource.c"
- } else {
- SourceHoldingTank* _tmp3_;
-#line 97 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = self->priv->holding_tank;
-#line 97 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp3_ != NULL, "this.holding_tank != null");
-#line 728 "DataSource.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = _source_holding_tank_ref0 (holding_tank);
-#line 100 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _source_holding_tank_unref0 (self->priv->holding_tank);
-#line 100 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->holding_tank = _tmp4_;
-#line 736 "DataSource.c"
-}
-
-
-void
-data_source_notify_held_in_tank (DataSource* self,
- SourceHoldingTank* holding_tank)
-{
-#line 88 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 88 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_SOURCE_GET_CLASS (self)->notify_held_in_tank (self, holding_tank);
-#line 748 "DataSource.c"
-}
-
-
-static void
-data_source_real_notify_altered (DataObject* base,
- Alteration* alteration)
-{
- DataSource * self;
- SourceHoldingTank* _tmp0_;
-#line 103 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATA_SOURCE, DataSource);
-#line 103 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 105 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->holding_tank;
-#line 105 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp0_ != NULL) {
-#line 766 "DataSource.c"
- SourceHoldingTank* _tmp1_;
-#line 106 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->holding_tank;
-#line 106 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_holding_tank_internal_notify_altered (_tmp1_, self, alteration);
-#line 772 "DataSource.c"
- } else {
-#line 108 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_contact_subscribers_alteration (self, alteration);
-#line 110 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_OBJECT_CLASS (data_source_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), alteration);
-#line 778 "DataSource.c"
- }
-}
-
-
-static void
-data_source_real_notify_unlinking (DataSource* self,
- SourceCollection* collection)
-{
- gboolean _tmp0_ = FALSE;
- GeeHashMap* _tmp1_;
- GeeHashMap* _tmp3_;
-#line 115 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (collection));
-#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->backlinks;
-#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_ == NULL) {
-#line 796 "DataSource.c"
- SourceCollection* _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->unlinked_from_collection;
-#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = _tmp2_ == NULL;
-#line 802 "DataSource.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = FALSE;
-#line 806 "DataSource.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp0_, "backlinks == null && unlinked_from_collection == null");
-#line 118 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->unlinked_from_collection = collection;
-#line 119 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 119 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (self->priv->backlinks);
-#line 119 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->backlinks = _tmp3_;
-#line 818 "DataSource.c"
-}
-
-
-void
-data_source_notify_unlinking (DataSource* self,
- SourceCollection* collection)
-{
-#line 115 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 115 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_SOURCE_GET_CLASS (self)->notify_unlinking (self, collection);
-#line 830 "DataSource.c"
-}
-
-
-static void
-data_source_real_notify_unlinked (DataSource* self)
-{
- gboolean _tmp0_ = FALSE;
- SourceCollection* _tmp1_;
- SourceCollection* _tmp3_;
- GeeHashMap* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->unlinked_from_collection;
-#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_ != NULL) {
-#line 847 "DataSource.c"
- GeeHashMap* _tmp2_;
-#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->backlinks;
-#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = _tmp2_ != NULL;
-#line 853 "DataSource.c"
- } else {
-#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = FALSE;
-#line 857 "DataSource.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp0_, "unlinked_from_collection != null && backlinks != null");
-#line 126 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = self->priv->unlinked_from_collection;
-#line 126 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_emit (self, data_source_signals[DATA_SOURCE_UNLINKED_SIGNAL], 0, _tmp3_);
-#line 129 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = self->priv->backlinks;
-#line 129 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 129 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = _tmp5_;
-#line 129 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp6_ > 0) {
-#line 873 "DataSource.c"
- SourceCollection* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = self->priv->unlinked_from_collection;
-#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = data_source_dehydrate_backlinks (self);
-#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = _tmp8_;
-#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_commit_backlinks (self, _tmp7_, _tmp9_);
-#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp9_);
-#line 887 "DataSource.c"
- }
-}
-
-
-void
-data_source_notify_unlinked (DataSource* self)
-{
-#line 123 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 123 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_SOURCE_GET_CLASS (self)->notify_unlinked (self);
-#line 899 "DataSource.c"
-}
-
-
-static void
-data_source_real_notify_relinking (DataSource* self,
- SourceCollection* collection)
-{
- gboolean _tmp0_ = FALSE;
- GeeHashMap* _tmp1_;
-#line 134 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (collection));
-#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->backlinks;
-#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_ != NULL) {
-#line 915 "DataSource.c"
- SourceCollection* _tmp2_;
-#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->unlinked_from_collection;
-#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = _tmp2_ == collection;
-#line 921 "DataSource.c"
- } else {
-#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = FALSE;
-#line 925 "DataSource.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp0_, "(backlinks != null) && (unlinked_from_collection == collection)");
-#line 929 "DataSource.c"
-}
-
-
-void
-data_source_notify_relinking (DataSource* self,
- SourceCollection* collection)
-{
-#line 134 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 134 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_SOURCE_GET_CLASS (self)->notify_relinking (self, collection);
-#line 941 "DataSource.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 142 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 950 "DataSource.c"
-}
-
-
-static void
-data_source_real_notify_relinked (DataSource* self)
-{
- gboolean _tmp0_ = FALSE;
- GeeHashMap* _tmp1_;
- SourceCollection* relinked_to = NULL;
- SourceCollection* _tmp3_;
- SourceCollection* _tmp4_;
-#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->backlinks;
-#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_ != NULL) {
-#line 966 "DataSource.c"
- SourceCollection* _tmp2_;
-#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->unlinked_from_collection;
-#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = _tmp2_ != NULL;
-#line 972 "DataSource.c"
- } else {
-#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = FALSE;
-#line 976 "DataSource.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp0_, "backlinks != null && unlinked_from_collection != null");
-#line 142 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = self->priv->unlinked_from_collection;
-#line 142 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = _data_collection_ref0 (_tmp3_);
-#line 142 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- relinked_to = _tmp4_;
-#line 143 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (self->priv->backlinks);
-#line 143 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->backlinks = NULL;
-#line 144 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->unlinked_from_collection = NULL;
-#line 145 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_emit (self, data_source_signals[DATA_SOURCE_RELINKED_SIGNAL], 0, relinked_to);
-#line 148 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_commit_backlinks (self, NULL, NULL);
-#line 139 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _data_collection_unref0 (relinked_to);
-#line 998 "DataSource.c"
-}
-
-
-void
-data_source_notify_relinked (DataSource* self)
-{
-#line 139 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 139 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_SOURCE_GET_CLASS (self)->notify_relinked (self);
-#line 1009 "DataSource.c"
-}
-
-
-static gchar*
-data_source_real_get_typename (DataSource* self)
-{
-#line 156 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_critical ("Type `%s' does not implement abstract method `data_source_get_typename'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 156 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return NULL;
-#line 1020 "DataSource.c"
-}
-
-
-gchar*
-data_source_get_typename (DataSource* self)
-{
-#line 156 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), NULL);
-#line 156 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return DATA_SOURCE_GET_CLASS (self)->get_typename (self);
-#line 1031 "DataSource.c"
-}
-
-
-static gint64
-data_source_real_get_instance_id (DataSource* self)
-{
- gint64 _tmp0_ = 0LL;
-#line 162 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_critical ("Type `%s' does not implement abstract method `data_source_get_instance_id'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 162 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return _tmp0_;
-#line 1043 "DataSource.c"
-}
-
-
-gint64
-data_source_get_instance_id (DataSource* self)
-{
-#line 162 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), 0LL);
-#line 162 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return DATA_SOURCE_GET_CLASS (self)->get_instance_id (self);
-#line 1054 "DataSource.c"
-}
-
-
-static gchar*
-data_source_real_get_source_id (DataSource* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = data_source_get_typename (self);
-#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = _tmp0_;
-#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = g_strdup_printf ("%s-%016" G_GINT64_MODIFIER "x", _tmp1_, data_source_get_instance_id (self));
-#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _tmp2_;
-#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp1_);
-#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp3_;
-#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1080 "DataSource.c"
-}
-
-
-gchar*
-data_source_get_source_id (DataSource* self)
-{
-#line 166 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), NULL);
-#line 166 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return DATA_SOURCE_GET_CLASS (self)->get_source_id (self);
-#line 1091 "DataSource.c"
-}
-
-
-gboolean
-data_source_has_backlink (DataSource* self,
- SourceBacklink* backlink)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
- GeeList* values = NULL;
- GeeHashMap* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gpointer _tmp4_;
- gboolean _tmp5_ = FALSE;
- GeeList* _tmp6_;
-#line 170 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE);
-#line 170 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE);
-#line 171 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->backlinks;
-#line 171 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp0_ == NULL) {
-#line 172 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = FALSE;
-#line 172 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1120 "DataSource.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->backlinks;
-#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = source_backlink_get_name (backlink);
-#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _tmp2_;
-#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_);
-#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- values = (GeeList*) _tmp4_;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = values;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp6_ != NULL) {
-#line 1136 "DataSource.c"
- GeeList* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = values;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = source_backlink_get_value (backlink);
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = _tmp8_;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_);
-#line 1148 "DataSource.c"
- } else {
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = FALSE;
-#line 1152 "DataSource.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp5_;
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1160 "DataSource.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1169 "DataSource.c"
-}
-
-
-GeeList*
-data_source_get_backlinks (DataSource* self,
- const gchar* name)
-{
- GeeList* result = NULL;
- GeeHashMap* _tmp0_;
- GeeList* values = NULL;
- GeeHashMap* _tmp1_;
- gpointer _tmp2_;
- gboolean _tmp3_ = FALSE;
- GeeList* _tmp4_;
- GeeList* backlinks = NULL;
- GeeArrayList* _tmp8_;
-#line 179 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), NULL);
-#line 179 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 180 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->backlinks;
-#line 180 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp0_ == NULL) {
-#line 181 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = NULL;
-#line 181 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1198 "DataSource.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->backlinks;
-#line 183 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name);
-#line 183 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- values = (GeeList*) _tmp2_;
-#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = values;
-#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp4_ == NULL) {
-#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = TRUE;
-#line 1212 "DataSource.c"
- } else {
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = values;
-#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = _tmp6_;
-#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _tmp7_ == 0;
-#line 1225 "DataSource.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp3_) {
-#line 185 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = NULL;
-#line 185 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 185 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1235 "DataSource.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = gee_array_list_new (TYPE_SOURCE_BACKLINK, (GBoxedCopyFunc) source_backlink_ref, (GDestroyNotify) source_backlink_unref, NULL, NULL, NULL);
-#line 187 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- backlinks = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_LIST, GeeList);
-#line 1241 "DataSource.c"
- {
- GeeList* _value_list = NULL;
- GeeList* _tmp9_;
- GeeList* _tmp10_;
- gint _value_size = 0;
- GeeList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gint _value_index = 0;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = values;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _value_list = _tmp10_;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11_ = _value_list;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp13_ = _tmp12_;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _value_size = _tmp13_;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _value_index = -1;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 1269 "DataSource.c"
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gchar* value = NULL;
- GeeList* _tmp17_;
- gint _tmp18_;
- gpointer _tmp19_;
- GeeList* _tmp20_;
- const gchar* _tmp21_;
- SourceBacklink* _tmp22_;
- SourceBacklink* _tmp23_;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp14_ = _value_index;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _value_index = _tmp14_ + 1;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp15_ = _value_index;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp16_ = _value_size;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!(_tmp15_ < _tmp16_)) {
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 1293 "DataSource.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp17_ = _value_list;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp18_ = _value_index;
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp19_ = gee_list_get (_tmp17_, _tmp18_);
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value = (gchar*) _tmp19_;
-#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp20_ = backlinks;
-#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp21_ = value;
-#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp22_ = source_backlink_new (name, _tmp21_);
-#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp23_ = _tmp22_;
-#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp23_);
-#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _source_backlink_unref0 (_tmp23_);
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (value);
-#line 1317 "DataSource.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (_value_list);
-#line 1321 "DataSource.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = backlinks;
-#line 191 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 191 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1329 "DataSource.c"
-}
-
-
-void
-data_source_set_backlink (DataSource* self,
- SourceBacklink* backlink)
-{
- GeeHashMap* _tmp0_;
- GeeList* values = NULL;
- GeeHashMap* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gpointer _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp11_;
- const gchar* _tmp12_;
- const gchar* _tmp13_;
- SourceCollection* sources = NULL;
- DataCollection* _tmp14_;
- SourceCollection* _tmp15_;
-#line 194 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 194 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 196 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->backlinks;
-#line 196 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp0_ != NULL, "backlinks != null");
-#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->backlinks;
-#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = source_backlink_get_name (backlink);
-#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _tmp2_;
-#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_);
-#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- values = (GeeList*) _tmp4_;
-#line 199 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = values;
-#line 199 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp5_ == NULL) {
-#line 1372 "DataSource.c"
- GeeArrayList* _tmp6_;
- GeeHashMap* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
- GeeList* _tmp10_;
-#line 200 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 200 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 200 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- values = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList);
-#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = self->priv->backlinks;
-#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = source_backlink_get_name (backlink);
-#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = _tmp8_;
-#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = values;
-#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_);
-#line 1394 "DataSource.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11_ = values;
-#line 204 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_ = source_backlink_get_value (backlink);
-#line 204 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp13_ = _tmp12_;
-#line 204 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_);
-#line 206 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp14_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 206 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection);
-#line 207 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp15_ = sources;
-#line 207 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp15_ != NULL) {
-#line 1412 "DataSource.c"
- SourceCollection* _tmp16_;
-#line 208 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp16_ = sources;
-#line 208 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_collection_internal_backlink_set (_tmp16_, self, backlink);
-#line 1418 "DataSource.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _data_collection_unref0 (sources);
-#line 194 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 1424 "DataSource.c"
-}
-
-
-gboolean
-data_source_remove_backlink (DataSource* self,
- SourceBacklink* backlink)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
- GeeList* values = NULL;
- GeeHashMap* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gpointer _tmp4_;
- GeeList* _tmp5_;
- gint original_size = 0;
- GeeList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- GeeIterator* iter = NULL;
- GeeList* _tmp10_;
- GeeIterator* _tmp11_;
- GeeList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- SourceCollection* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- SourceCollection* sources = NULL;
- DataCollection* _tmp29_;
- SourceCollection* _tmp30_;
- GeeList* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
-#line 211 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE);
-#line 211 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE);
-#line 212 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->backlinks;
-#line 212 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp0_ == NULL) {
-#line 213 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = FALSE;
-#line 213 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1473 "DataSource.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->backlinks;
-#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = source_backlink_get_name (backlink);
-#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _tmp2_;
-#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_);
-#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- values = (GeeList*) _tmp4_;
-#line 216 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = values;
-#line 216 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp5_ == NULL) {
-#line 217 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = FALSE;
-#line 217 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 217 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1495 "DataSource.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = values;
-#line 219 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 219 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = _tmp7_;
-#line 219 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- original_size = _tmp8_;
-#line 220 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = original_size;
-#line 220 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp9_ > 0, "original_size > 0");
-#line 222 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = values;
-#line 222 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 222 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- iter = _tmp11_;
-#line 223 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 1517 "DataSource.c"
- GeeIterator* _tmp12_;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- gchar* _tmp15_;
- const gchar* _tmp16_;
- const gchar* _tmp17_;
- gboolean _tmp18_;
-#line 223 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_ = iter;
-#line 223 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 223 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 1531 "DataSource.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp13_ = iter;
-#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp15_ = (gchar*) _tmp14_;
-#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp16_ = source_backlink_get_value (backlink);
-#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp17_ = _tmp16_;
-#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp18_ = g_strcmp0 (_tmp15_, _tmp17_) == 0;
-#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp15_);
-#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp18_) {
-#line 1549 "DataSource.c"
- GeeIterator* _tmp19_;
-#line 225 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp19_ = iter;
-#line 225 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- gee_iterator_remove (_tmp19_);
-#line 1555 "DataSource.c"
- }
- }
-#line 228 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp20_ = values;
-#line 228 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 228 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp22_ = _tmp21_;
-#line 228 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp22_ == 0) {
-#line 1566 "DataSource.c"
- GeeHashMap* _tmp23_;
- const gchar* _tmp24_;
- const gchar* _tmp25_;
-#line 229 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp23_ = self->priv->backlinks;
-#line 229 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp24_ = source_backlink_get_name (backlink);
-#line 229 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp25_ = _tmp24_;
-#line 229 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp25_, NULL);
-#line 1578 "DataSource.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp26_ = self->priv->unlinked_from_collection;
-#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp27_ = data_source_dehydrate_backlinks (self);
-#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp28_ = _tmp27_;
-#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_commit_backlinks (self, _tmp26_, _tmp28_);
-#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp28_);
-#line 235 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp29_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 235 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_SOURCE_COLLECTION, SourceCollection);
-#line 236 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp30_ = sources;
-#line 236 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp30_ != NULL) {
-#line 1598 "DataSource.c"
- SourceCollection* _tmp31_;
-#line 237 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp31_ = sources;
-#line 237 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_collection_internal_backlink_removed (_tmp31_, self, backlink);
-#line 1604 "DataSource.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp32_ = values;
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp34_ = _tmp33_;
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp35_ = original_size;
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp34_ != _tmp35_;
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _data_collection_unref0 (sources);
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (iter);
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1624 "DataSource.c"
-}
-
-
-static void
-data_source_real_commit_backlinks (DataSource* self,
- SourceCollection* sources,
- const gchar* dehydrated)
-{
- gboolean _tmp0_ = FALSE;
-#line 248 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources));
-#line 249 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (sources != NULL) {
-#line 249 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = TRUE;
-#line 1640 "DataSource.c"
- } else {
-#line 249 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = dehydrated != NULL;
-#line 1644 "DataSource.c"
- }
-#line 249 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp0_) {
-#line 1648 "DataSource.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 250 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 250 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = _tmp1_;
-#line 250 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_warning ("DataSource.vala:250: No implementation to commit link state for %s", _tmp2_);
-#line 250 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp2_);
-#line 1659 "DataSource.c"
- }
-}
-
-
-void
-data_source_commit_backlinks (DataSource* self,
- SourceCollection* sources,
- const gchar* dehydrated)
-{
-#line 248 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 248 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_SOURCE_GET_CLASS (self)->commit_backlinks (self, sources, dehydrated);
-#line 1673 "DataSource.c"
-}
-
-
-static gchar*
-data_source_dehydrate_backlinks (DataSource* self)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- GeeHashMap* _tmp1_;
- GString* builder = NULL;
- GString* _tmp5_;
- const gchar* _tmp49_ = NULL;
- GString* _tmp50_;
- const gchar* _tmp51_;
- gint _tmp52_;
- gint _tmp53_;
- gchar* _tmp56_;
-#line 253 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), NULL);
-#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->backlinks;
-#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_ == NULL) {
-#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = TRUE;
-#line 1699 "DataSource.c"
- } else {
- GeeHashMap* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->backlinks;
-#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = _tmp3_;
-#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = _tmp4_ == 0;
-#line 1712 "DataSource.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp0_) {
-#line 255 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = NULL;
-#line 255 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1720 "DataSource.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = g_string_new ("");
-#line 257 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- builder = _tmp5_;
-#line 1726 "DataSource.c"
- {
- GeeIterator* _name_it = NULL;
- GeeHashMap* _tmp6_;
- GeeSet* _tmp7_;
- GeeSet* _tmp8_;
- GeeSet* _tmp9_;
- GeeIterator* _tmp10_;
- GeeIterator* _tmp11_;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = self->priv->backlinks;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = _tmp7_;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = _tmp8_;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11_ = _tmp10_;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (_tmp9_);
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _name_it = _tmp11_;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 1753 "DataSource.c"
- GeeIterator* _tmp12_;
- gchar* name = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- GeeList* values = NULL;
- GeeHashMap* _tmp15_;
- const gchar* _tmp16_;
- gpointer _tmp17_;
- gboolean _tmp18_ = FALSE;
- GeeList* _tmp19_;
- gchar* value_field = NULL;
- gchar* _tmp23_;
- const gchar* _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_ = _name_it;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 1775 "DataSource.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp13_ = _name_it;
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- name = (gchar*) _tmp14_;
-#line 259 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp15_ = self->priv->backlinks;
-#line 259 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp16_ = name;
-#line 259 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp17_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp16_);
-#line 259 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- values = (GeeList*) _tmp17_;
-#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp19_ = values;
-#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp19_ == NULL) {
-#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp18_ = TRUE;
-#line 1797 "DataSource.c"
- } else {
- GeeList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
-#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp20_ = values;
-#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp22_ = _tmp21_;
-#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp18_ = _tmp22_ == 0;
-#line 1810 "DataSource.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp18_) {
-#line 261 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 261 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (name);
-#line 261 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- continue;
-#line 1820 "DataSource.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp23_ = g_strdup ("");
-#line 263 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value_field = _tmp23_;
-#line 1826 "DataSource.c"
- {
- GeeList* _value_list = NULL;
- GeeList* _tmp24_;
- GeeList* _tmp25_;
- gint _value_size = 0;
- GeeList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint _value_index = 0;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp24_ = values;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp25_ = _g_object_ref0 (_tmp24_);
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _value_list = _tmp25_;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp26_ = _value_list;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp28_ = _tmp27_;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _value_size = _tmp28_;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _value_index = -1;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 1854 "DataSource.c"
- gint _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- gchar* value = NULL;
- GeeList* _tmp32_;
- gint _tmp33_;
- gpointer _tmp34_;
- const gchar* _tmp35_;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp29_ = _value_index;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _value_index = _tmp29_ + 1;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp30_ = _value_index;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp31_ = _value_size;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!(_tmp30_ < _tmp31_)) {
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 1875 "DataSource.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp32_ = _value_list;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp33_ = _value_index;
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp34_ = gee_list_get (_tmp32_, _tmp33_);
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value = (gchar*) _tmp34_;
-#line 265 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp35_ = value;
-#line 265 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!is_string_empty (_tmp35_)) {
-#line 1889 "DataSource.c"
- const gchar* _tmp36_;
- const gchar* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
-#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp36_ = value_field;
-#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp37_ = value;
-#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp38_ = g_strconcat (_tmp37_, "|", NULL);
-#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp39_ = _tmp38_;
-#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp40_ = g_strconcat (_tmp36_, _tmp39_, NULL);
-#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (value_field);
-#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value_field = _tmp40_;
-#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp39_);
-#line 1911 "DataSource.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (value);
-#line 1915 "DataSource.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (_value_list);
-#line 1919 "DataSource.c"
- }
-#line 269 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp41_ = value_field;
-#line 269 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp42_ = strlen (_tmp41_);
-#line 269 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp43_ = _tmp42_;
-#line 269 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp43_ > 0) {
-#line 1929 "DataSource.c"
- GString* _tmp44_;
- const gchar* _tmp45_;
- const gchar* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
-#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp44_ = builder;
-#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp45_ = name;
-#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp46_ = value_field;
-#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp47_ = g_strdup_printf ("%s=%s\n", _tmp45_, _tmp46_);
-#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp48_ = _tmp47_;
-#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_string_append (_tmp44_, _tmp48_);
-#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp48_);
-#line 1949 "DataSource.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (value_field);
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (name);
-#line 1957 "DataSource.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (_name_it);
-#line 1961 "DataSource.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp50_ = builder;
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp51_ = _tmp50_->str;
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp52_ = strlen (_tmp51_);
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp53_ = _tmp52_;
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp53_ > 0) {
-#line 1973 "DataSource.c"
- GString* _tmp54_;
- const gchar* _tmp55_;
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp54_ = builder;
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp55_ = _tmp54_->str;
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp49_ = _tmp55_;
-#line 1982 "DataSource.c"
- } else {
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp49_ = NULL;
-#line 1986 "DataSource.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp56_ = g_strdup (_tmp49_);
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp56_;
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_string_free0 (builder);
-#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 1996 "DataSource.c"
-}
-
-
-void
-data_source_rehydrate_backlinks (DataSource* self,
- SourceCollection* unlinked_from,
- const gchar* dehydrated)
-{
- GeeHashMap* _tmp0_;
- gchar** lines = NULL;
- gchar** _tmp1_;
- gchar** _tmp2_;
- gint lines_length1;
- gint _lines_size_;
- gchar** _tmp3_;
- gint _tmp3__length1;
-#line 278 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 278 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (unlinked_from));
-#line 279 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->unlinked_from_collection = unlinked_from;
-#line 280 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 280 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (self->priv->backlinks);
-#line 280 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->backlinks = _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (dehydrated == NULL) {
-#line 283 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return;
-#line 2029 "DataSource.c"
- }
-#line 285 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = _tmp1_ = g_strsplit (dehydrated, "\n", 0);
-#line 285 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- lines = _tmp2_;
-#line 285 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- lines_length1 = _vala_array_length (_tmp1_);
-#line 285 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _lines_size_ = lines_length1;
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = lines;
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3__length1 = lines_length1;
-#line 2043 "DataSource.c"
- {
- gchar** line_collection = NULL;
- gint line_collection_length1 = 0;
- gint _line_collection_size_ = 0;
- gint line_it = 0;
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- line_collection = _tmp3_;
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- line_collection_length1 = _tmp3__length1;
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- for (line_it = 0; line_it < _tmp3__length1; line_it = line_it + 1) {
-#line 2055 "DataSource.c"
- gchar* _tmp4_;
- gchar* line = NULL;
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = g_strdup (line_collection[line_it]);
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- line = _tmp4_;
-#line 2062 "DataSource.c"
- {
- const gchar* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gchar** tokens = NULL;
- const gchar* _tmp8_;
- gchar** _tmp9_;
- gchar** _tmp10_;
- gint tokens_length1;
- gint _tokens_size_;
- gchar** _tmp11_;
- gint _tmp11__length1;
- gchar** decoded_values = NULL;
- gchar** _tmp15_;
- gint _tmp15__length1;
- const gchar* _tmp16_;
- gchar** _tmp17_;
- gchar** _tmp18_;
- gint decoded_values_length1;
- gint _decoded_values_size_;
- GeeList* values = NULL;
- GeeArrayList* _tmp19_;
- gchar** _tmp20_;
- gint _tmp20__length1;
- GeeList* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
-#line 287 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = line;
-#line 287 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = strlen (_tmp5_);
-#line 287 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = _tmp6_;
-#line 287 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp7_ == 0) {
-#line 288 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (line);
-#line 288 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- continue;
-#line 2102 "DataSource.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = line;
-#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = _tmp9_ = g_strsplit (_tmp8_, "=", 2);
-#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- tokens = _tmp10_;
-#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- tokens_length1 = _vala_array_length (_tmp9_);
-#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tokens_size_ = tokens_length1;
-#line 291 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11_ = tokens;
-#line 291 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11__length1 = tokens_length1;
-#line 291 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp11__length1 < 2) {
-#line 2120 "DataSource.c"
- const gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_ = line;
-#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp13_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp14_ = _tmp13_;
-#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_warning ("DataSource.vala:292: Unable to rehydrate \"%s\" for %s: name and value" \
-" not present", _tmp12_, _tmp14_);
-#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp14_);
-#line 295 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- tokens = (_vala_array_free (tokens, tokens_length1, (GDestroyNotify) g_free), NULL);
-#line 295 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (line);
-#line 295 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- continue;
-#line 2140 "DataSource.c"
- }
-#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp15_ = tokens;
-#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp15__length1 = tokens_length1;
-#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp16_ = _tmp15_[1];
-#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp18_ = _tmp17_ = g_strsplit (_tmp16_, "|", 0);
-#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- decoded_values = _tmp18_;
-#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- decoded_values_length1 = _vala_array_length (_tmp17_);
-#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _decoded_values_size_ = decoded_values_length1;
-#line 299 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp19_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 299 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- values = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_LIST, GeeList);
-#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp20_ = decoded_values;
-#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp20__length1 = decoded_values_length1;
-#line 2164 "DataSource.c"
- {
- gchar** value_collection = NULL;
- gint value_collection_length1 = 0;
- gint _value_collection_size_ = 0;
- gint value_it = 0;
-#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value_collection = _tmp20_;
-#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value_collection_length1 = _tmp20__length1;
-#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- for (value_it = 0; value_it < _tmp20__length1; value_it = value_it + 1) {
-#line 2176 "DataSource.c"
- gchar* _tmp21_;
- gchar* value = NULL;
-#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp21_ = g_strdup (value_collection[value_it]);
-#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value = _tmp21_;
-#line 2183 "DataSource.c"
- {
- gboolean _tmp22_ = FALSE;
- const gchar* _tmp23_;
-#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp23_ = value;
-#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp23_ != NULL) {
-#line 2191 "DataSource.c"
- const gchar* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
-#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp24_ = value;
-#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp25_ = strlen (_tmp24_);
-#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp26_ = _tmp25_;
-#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp22_ = _tmp26_ > 0;
-#line 2203 "DataSource.c"
- } else {
-#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp22_ = FALSE;
-#line 2207 "DataSource.c"
- }
-#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp22_) {
-#line 2211 "DataSource.c"
- GeeList* _tmp27_;
- const gchar* _tmp28_;
-#line 302 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp27_ = values;
-#line 302 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp28_ = value;
-#line 302 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_);
-#line 2220 "DataSource.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (value);
-#line 2224 "DataSource.c"
- }
- }
- }
-#line 305 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp29_ = values;
-#line 305 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp30_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 305 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp31_ = _tmp30_;
-#line 305 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp31_ > 0) {
-#line 2236 "DataSource.c"
- GeeHashMap* _tmp32_;
- gchar** _tmp33_;
- gint _tmp33__length1;
- const gchar* _tmp34_;
- GeeList* _tmp35_;
-#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp32_ = self->priv->backlinks;
-#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp33_ = tokens;
-#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp33__length1 = tokens_length1;
-#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp34_ = _tmp33_[0];
-#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp35_ = values;
-#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp34_, _tmp35_);
-#line 2254 "DataSource.c"
- }
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (values);
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- decoded_values = (_vala_array_free (decoded_values, decoded_values_length1, (GDestroyNotify) g_free), NULL);
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- tokens = (_vala_array_free (tokens, tokens_length1, (GDestroyNotify) g_free), NULL);
-#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (line);
-#line 2264 "DataSource.c"
- }
- }
- }
-#line 278 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- lines = (_vala_array_free (lines, lines_length1, (GDestroyNotify) g_free), NULL);
-#line 2270 "DataSource.c"
-}
-
-
-static SourceSnapshot*
-data_source_real_save_snapshot (DataSource* self)
-{
- SourceSnapshot* result = NULL;
-#line 312 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = NULL;
-#line 312 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 2282 "DataSource.c"
-}
-
-
-SourceSnapshot*
-data_source_save_snapshot (DataSource* self)
-{
-#line 311 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), NULL);
-#line 311 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return DATA_SOURCE_GET_CLASS (self)->save_snapshot (self);
-#line 2293 "DataSource.c"
-}
-
-
-void
-data_source_internal_mark_for_destroy (DataSource* self)
-{
-#line 316 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 317 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->marked_for_destroy = TRUE;
-#line 2304 "DataSource.c"
-}
-
-
-static gboolean
-data_source_real_internal_delete_backing (DataSource* self,
- GError** error)
-{
- gboolean result = FALSE;
-#line 325 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = TRUE;
-#line 325 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 2317 "DataSource.c"
-}
-
-
-gboolean
-data_source_internal_delete_backing (DataSource* self,
- GError** error)
-{
-#line 324 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE);
-#line 324 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return DATA_SOURCE_GET_CLASS (self)->internal_delete_backing (self, error);
-#line 2329 "DataSource.c"
-}
-
-
-static gboolean
-data_source_real_equals (DataSource* self,
- DataSource* source)
-{
- gboolean result = FALSE;
-#line 330 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE);
-#line 331 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = self == source;
-#line 331 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 2344 "DataSource.c"
-}
-
-
-gboolean
-data_source_equals (DataSource* self,
- DataSource* source)
-{
-#line 330 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE);
-#line 330 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return DATA_SOURCE_GET_CLASS (self)->equals (self, source);
-#line 2356 "DataSource.c"
-}
-
-
-static void
-data_source_real_destroy (DataSource* self)
-{
- gboolean _tmp0_;
-#line 341 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->marked_for_destroy;
-#line 341 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp0_, "marked_for_destroy");
-#line 344 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->is_destroyed = TRUE;
-#line 2370 "DataSource.c"
- {
- gint ctr = 0;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = 0;
-#line 2375 "DataSource.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = TRUE;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 2382 "DataSource.c"
- gint _tmp3_;
- DataView** _tmp4_;
- gint _tmp4__length1;
- DataView** _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- DataView* _tmp7_;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!_tmp1_) {
-#line 2392 "DataSource.c"
- gint _tmp2_;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = ctr;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = _tmp2_ + 1;
-#line 2398 "DataSource.c"
- }
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = FALSE;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = ctr;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = self->priv->subscribers;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4__length1 = self->priv->subscribers_length1;
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!(_tmp3_ < _tmp4__length1)) {
-#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 2412 "DataSource.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = self->priv->subscribers;
-#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5__length1 = self->priv->subscribers_length1;
-#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = ctr;
-#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = _tmp5_[_tmp6_];
-#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp7_ != NULL) {
-#line 2424 "DataSource.c"
- DataView* view = NULL;
- DataView** _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- DataView* _tmp10_;
- DataView* _tmp11_;
- DataView** _tmp12_;
- gint _tmp12__length1;
- gint _tmp13_;
- DataView* _tmp14_;
- DataView* _tmp15_;
-#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = self->priv->subscribers;
-#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8__length1 = self->priv->subscribers_length1;
-#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = ctr;
-#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = _tmp8_[_tmp9_];
-#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- view = _tmp11_;
-#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_ = self->priv->subscribers;
-#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12__length1 = self->priv->subscribers_length1;
-#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp13_ = ctr;
-#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (_tmp12_[_tmp13_]);
-#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_[_tmp13_] = NULL;
-#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp14_ = _tmp12_[_tmp13_];
-#line 352 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp15_ = view;
-#line 352 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_view_notify_unsubscribed (_tmp15_, self);
-#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (view);
-#line 2466 "DataSource.c"
- }
- }
- }
- }
-#line 357 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_emit (self, data_source_signals[DATA_SOURCE_DESTROYED_SIGNAL], 0);
-#line 2473 "DataSource.c"
-}
-
-
-void
-data_source_destroy (DataSource* self)
-{
-#line 340 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 340 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- DATA_SOURCE_GET_CLASS (self)->destroy (self);
-#line 2484 "DataSource.c"
-}
-
-
-gboolean
-data_source_destroy_orphan (DataSource* self,
- gboolean delete_backing)
-{
- gboolean result = FALSE;
- gboolean ret = FALSE;
- SourceCollection* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 366 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE);
-#line 367 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ret = TRUE;
-#line 368 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (delete_backing) {
-#line 2502 "DataSource.c"
- {
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 370 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = data_source_internal_delete_backing (self, &_inner_error_);
-#line 370 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2510 "DataSource.c"
- goto __catch54_g_error;
- }
-#line 370 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ret = _tmp0_;
-#line 371 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = ret;
-#line 371 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!_tmp1_) {
-#line 2519 "DataSource.c"
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 372 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 372 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _tmp2_;
-#line 372 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_warning ("DataSource.vala:372: Unable to delete backing for %s", _tmp3_);
-#line 372 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp3_);
-#line 2530 "DataSource.c"
- }
- }
- goto __finally54;
- __catch54_g_error:
- {
- GError* err = NULL;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- err = _inner_error_;
-#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _inner_error_ = NULL;
-#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = _tmp4_;
-#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = err;
-#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = _tmp6_->message;
-#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_warning ("DataSource.vala:375: Unable to delete backing for %s: %s", _tmp5_, _tmp7_);
-#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp5_);
-#line 376 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ret = FALSE;
-#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_error_free0 (err);
-#line 2561 "DataSource.c"
- }
- __finally54:
-#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2566 "DataSource.c"
- gboolean _tmp8_ = FALSE;
-#line 369 "/home/jens/Source/shotwell/src/core/DataSource.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 369 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_clear_error (&_inner_error_);
-#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return _tmp8_;
-#line 2574 "DataSource.c"
- }
- }
-#line 380 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_internal_mark_for_destroy (self);
-#line 381 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_destroy (self);
-#line 383 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = self->priv->unlinked_from_collection;
-#line 383 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp9_ != NULL) {
-#line 2585 "DataSource.c"
- SourceCollection* _tmp10_;
-#line 384 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = self->priv->unlinked_from_collection;
-#line 384 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_collection_notify_unlinked_destroyed (_tmp10_, self);
-#line 2591 "DataSource.c"
- }
-#line 386 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = ret;
-#line 386 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 2597 "DataSource.c"
-}
-
-
-static void
-_vala_array_add66 (DataView** * array,
- int* length,
- int* size,
- DataView* value)
-{
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if ((*length) == (*size)) {
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *array = g_renew (DataView*, *array, (*size) + 1);
-#line 2613 "DataSource.c"
- }
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- (*array)[(*length)++] = value;
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- (*array)[*length] = NULL;
-#line 2619 "DataSource.c"
-}
-
-
-void
-data_source_internal_subscribe (DataSource* self,
- DataView* view)
-{
- gboolean _tmp0_;
- DataView** _tmp12_;
- gint _tmp12__length1;
- DataView* _tmp13_;
-#line 395 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 395 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 396 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->in_contact;
-#line 396 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (!_tmp0_, "!in_contact");
-#line 2639 "DataSource.c"
- {
- gint ctr = 0;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = 0;
-#line 2644 "DataSource.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = TRUE;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 2651 "DataSource.c"
- gint _tmp3_;
- DataView** _tmp4_;
- gint _tmp4__length1;
- DataView** _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- DataView* _tmp7_;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!_tmp1_) {
-#line 2661 "DataSource.c"
- gint _tmp2_;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = ctr;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = _tmp2_ + 1;
-#line 2667 "DataSource.c"
- }
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = FALSE;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = ctr;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = self->priv->subscribers;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4__length1 = self->priv->subscribers_length1;
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!(_tmp3_ < _tmp4__length1)) {
-#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 2681 "DataSource.c"
- }
-#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = self->priv->subscribers;
-#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5__length1 = self->priv->subscribers_length1;
-#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = ctr;
-#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = _tmp5_[_tmp6_];
-#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp7_ == NULL) {
-#line 2693 "DataSource.c"
- DataView** _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- DataView* _tmp10_;
- DataView* _tmp11_;
-#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = self->priv->subscribers;
-#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8__length1 = self->priv->subscribers_length1;
-#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = ctr;
-#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = _g_object_ref0 (view);
-#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (_tmp8_[_tmp9_]);
-#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_[_tmp9_] = _tmp10_;
-#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11_ = _tmp8_[_tmp9_];
-#line 402 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return;
-#line 2715 "DataSource.c"
- }
- }
- }
- }
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_ = self->priv->subscribers;
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12__length1 = self->priv->subscribers_length1;
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp13_ = _g_object_ref0 (view);
-#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_array_add66 (&self->priv->subscribers, &self->priv->subscribers_length1, &self->priv->_subscribers_size_, _tmp13_);
-#line 2728 "DataSource.c"
-}
-
-
-void
-data_source_internal_unsubscribe (DataSource* self,
- DataView* view)
-{
- gboolean _tmp0_;
-#line 411 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 411 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 412 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->in_contact;
-#line 412 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (!_tmp0_, "!in_contact");
-#line 2745 "DataSource.c"
- {
- gint ctr = 0;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = 0;
-#line 2750 "DataSource.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = TRUE;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 2757 "DataSource.c"
- gint _tmp3_;
- DataView** _tmp4_;
- gint _tmp4__length1;
- DataView** _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- DataView* _tmp7_;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!_tmp1_) {
-#line 2767 "DataSource.c"
- gint _tmp2_;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = ctr;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = _tmp2_ + 1;
-#line 2773 "DataSource.c"
- }
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = FALSE;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = ctr;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = self->priv->subscribers;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4__length1 = self->priv->subscribers_length1;
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!(_tmp3_ < _tmp4__length1)) {
-#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 2787 "DataSource.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = self->priv->subscribers;
-#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5__length1 = self->priv->subscribers_length1;
-#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = ctr;
-#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = _tmp5_[_tmp6_];
-#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp7_ == view) {
-#line 2799 "DataSource.c"
- DataView** _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- DataView* _tmp10_;
-#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = self->priv->subscribers;
-#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8__length1 = self->priv->subscribers_length1;
-#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = ctr;
-#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (_tmp8_[_tmp9_]);
-#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_[_tmp9_] = NULL;
-#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = _tmp8_[_tmp9_];
-#line 418 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return;
-#line 2818 "DataSource.c"
- }
- }
- }
- }
-}
-
-
-void
-data_source_contact_subscribers (DataSource* self,
- DataSourceContactSubscriber contact_subscriber,
- void* contact_subscriber_target)
-{
- gboolean _tmp0_;
-#line 423 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 424 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->in_contact;
-#line 424 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (!_tmp0_, "!in_contact");
-#line 426 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->in_contact = TRUE;
-#line 2840 "DataSource.c"
- {
- gint ctr = 0;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = 0;
-#line 2845 "DataSource.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = TRUE;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 2852 "DataSource.c"
- gint _tmp3_;
- DataView** _tmp4_;
- gint _tmp4__length1;
- DataView** _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- DataView* _tmp7_;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!_tmp1_) {
-#line 2862 "DataSource.c"
- gint _tmp2_;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = ctr;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = _tmp2_ + 1;
-#line 2868 "DataSource.c"
- }
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = FALSE;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = ctr;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = self->priv->subscribers;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4__length1 = self->priv->subscribers_length1;
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!(_tmp3_ < _tmp4__length1)) {
-#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 2882 "DataSource.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = self->priv->subscribers;
-#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5__length1 = self->priv->subscribers_length1;
-#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = ctr;
-#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = _tmp5_[_tmp6_];
-#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp7_ != NULL) {
-#line 2894 "DataSource.c"
- DataView** _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- DataView* _tmp10_;
-#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = self->priv->subscribers;
-#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8__length1 = self->priv->subscribers_length1;
-#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = ctr;
-#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = _tmp8_[_tmp9_];
-#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- contact_subscriber (_tmp10_, contact_subscriber_target);
-#line 2909 "DataSource.c"
- }
- }
- }
- }
-#line 431 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->in_contact = FALSE;
-#line 2916 "DataSource.c"
-}
-
-
-void
-data_source_contact_subscribers_alteration (DataSource* self,
- Alteration* alteration)
-{
- gboolean _tmp0_;
-#line 434 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (self));
-#line 434 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 435 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->in_contact;
-#line 435 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (!_tmp0_, "!in_contact");
-#line 437 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->in_contact = TRUE;
-#line 2935 "DataSource.c"
- {
- gint ctr = 0;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = 0;
-#line 2940 "DataSource.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = TRUE;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 2947 "DataSource.c"
- gint _tmp3_;
- DataView** _tmp4_;
- gint _tmp4__length1;
- DataView** _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- DataView* _tmp7_;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!_tmp1_) {
-#line 2957 "DataSource.c"
- gint _tmp2_;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = ctr;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ctr = _tmp2_ + 1;
-#line 2963 "DataSource.c"
- }
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = FALSE;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = ctr;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = self->priv->subscribers;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4__length1 = self->priv->subscribers_length1;
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!(_tmp3_ < _tmp4__length1)) {
-#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 2977 "DataSource.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = self->priv->subscribers;
-#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5__length1 = self->priv->subscribers_length1;
-#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = ctr;
-#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = _tmp5_[_tmp6_];
-#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp7_ != NULL) {
-#line 2989 "DataSource.c"
- DataView** _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- DataView* _tmp10_;
-#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = self->priv->subscribers;
-#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8__length1 = self->priv->subscribers_length1;
-#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = ctr;
-#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = _tmp8_[_tmp9_];
-#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject), alteration);
-#line 3004 "DataSource.c"
- }
- }
- }
- }
-#line 442 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->in_contact = FALSE;
-#line 3011 "DataSource.c"
-}
-
-
-static void
-data_source_real_unlinked (DataSource* self,
- SourceCollection* sources)
-{
-#line 51 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (sources));
-#line 3021 "DataSource.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__DATA_COLLECTION (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__DATA_COLLECTION) (gpointer data1, gpointer arg_1, gpointer data2);
- register GMarshalFunc_VOID__DATA_COLLECTION callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (n_param_values == 2);
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data1 = closure->data;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data2 = param_values->data[0].v_pointer;
-#line 3047 "DataSource.c"
- } else {
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data1 = param_values->data[0].v_pointer;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data2 = closure->data;
-#line 3053 "DataSource.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- callback = (GMarshalFunc_VOID__DATA_COLLECTION) (marshal_data ? marshal_data : cc->callback);
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- callback (data1, value_get_data_collection (param_values + 1), data2);
-#line 3059 "DataSource.c"
-}
-
-
-static void
-data_source_real_relinked (DataSource* self,
- SourceCollection* sources)
-{
-#line 55 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (sources));
-#line 3069 "DataSource.c"
-}
-
-
-static void
-data_source_real_destroyed (DataSource* self)
-{
-}
-
-
-static void
-data_source_class_init (DataSourceClass * klass)
-{
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_parent_class = g_type_class_peek_parent (klass);
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_type_class_add_private (klass, sizeof (DataSourcePrivate));
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataObjectClass *) klass)->notify_membership_changed = (void (*) (DataObject *, DataCollection*)) data_source_real_notify_membership_changed;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->notify_held_in_tank = (void (*) (DataSource *, SourceHoldingTank*)) data_source_real_notify_held_in_tank;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) data_source_real_notify_altered;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->notify_unlinking = (void (*) (DataSource *, SourceCollection*)) data_source_real_notify_unlinking;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->notify_unlinked = (void (*) (DataSource *)) data_source_real_notify_unlinked;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->notify_relinking = (void (*) (DataSource *, SourceCollection*)) data_source_real_notify_relinking;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->notify_relinked = (void (*) (DataSource *)) data_source_real_notify_relinked;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) data_source_real_get_typename;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) data_source_real_get_instance_id;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->get_source_id = (gchar* (*) (DataSource *)) data_source_real_get_source_id;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->commit_backlinks = (void (*) (DataSource *, SourceCollection*, const gchar*)) data_source_real_commit_backlinks;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->save_snapshot = (SourceSnapshot* (*) (DataSource *)) data_source_real_save_snapshot;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) data_source_real_internal_delete_backing;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) data_source_real_equals;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) data_source_real_destroy;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->unlinked = data_source_real_unlinked;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->relinked = data_source_real_relinked;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((DataSourceClass *) klass)->destroyed = data_source_real_destroyed;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- G_OBJECT_CLASS (klass)->finalize = data_source_finalize;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_signals[DATA_SOURCE_UNLINKED_SIGNAL] = g_signal_new ("unlinked", TYPE_DATA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataSourceClass, unlinked), NULL, NULL, g_cclosure_user_marshal_VOID__DATA_COLLECTION, G_TYPE_NONE, 1, TYPE_SOURCE_COLLECTION);
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_signals[DATA_SOURCE_RELINKED_SIGNAL] = g_signal_new ("relinked", TYPE_DATA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataSourceClass, relinked), NULL, NULL, g_cclosure_user_marshal_VOID__DATA_COLLECTION, G_TYPE_NONE, 1, TYPE_SOURCE_COLLECTION);
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- data_source_signals[DATA_SOURCE_DESTROYED_SIGNAL] = g_signal_new ("destroyed", TYPE_DATA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataSourceClass, destroyed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 3130 "DataSource.c"
-}
-
-
-static void
-data_source_instance_init (DataSource * self)
-{
- DataView** _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv = DATA_SOURCE_GET_PRIVATE (self);
-#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = g_new0 (DataView*, 4 + 1);
-#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->subscribers = _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->subscribers_length1 = 4;
-#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->_subscribers_size_ = self->priv->subscribers_length1;
-#line 43 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->holding_tank = NULL;
-#line 44 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->unlinked_from_collection = NULL;
-#line 45 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->backlinks = NULL;
-#line 46 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->in_contact = FALSE;
-#line 47 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->marked_for_destroy = FALSE;
-#line 48 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->is_destroyed = FALSE;
-#line 3160 "DataSource.c"
-}
-
-
-static void
-data_source_finalize (GObject * obj)
-{
- DataSource * self;
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_SOURCE, DataSource);
-#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->subscribers = (_vala_array_free (self->priv->subscribers, self->priv->subscribers_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 43 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _source_holding_tank_unref0 (self->priv->holding_tank);
-#line 45 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (self->priv->backlinks);
-#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- G_OBJECT_CLASS (data_source_parent_class)->finalize (obj);
-#line 3178 "DataSource.c"
-}
-
-
-GType
-data_source_get_type (void)
-{
- static volatile gsize data_source_type_id__volatile = 0;
- if (g_once_init_enter (&data_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataSource), 0, (GInstanceInitFunc) data_source_instance_init, NULL };
- GType data_source_type_id;
- data_source_type_id = g_type_register_static (TYPE_DATA_OBJECT, "DataSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&data_source_type_id__volatile, data_source_type_id);
- }
- return data_source_type_id__volatile;
-}
-
-
-static void
-source_snapshot_real_notify_broken (SourceSnapshot* self)
-{
-#line 455 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->snapshot_broken = TRUE;
-#line 457 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_emit (self, source_snapshot_signals[SOURCE_SNAPSHOT_BROKEN_SIGNAL], 0);
-#line 3203 "DataSource.c"
-}
-
-
-void
-source_snapshot_notify_broken (SourceSnapshot* self)
-{
-#line 454 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_SNAPSHOT (self));
-#line 454 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- SOURCE_SNAPSHOT_GET_CLASS (self)->notify_broken (self);
-#line 3214 "DataSource.c"
-}
-
-
-gboolean
-source_snapshot_is_broken (SourceSnapshot* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 460 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_SNAPSHOT (self), FALSE);
-#line 461 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->snapshot_broken;
-#line 461 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp0_;
-#line 461 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3231 "DataSource.c"
-}
-
-
-SourceSnapshot*
-source_snapshot_construct (GType object_type)
-{
- SourceSnapshot* self = NULL;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = (SourceSnapshot*) g_type_create_instance (object_type);
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return self;
-#line 3243 "DataSource.c"
-}
-
-
-static void
-source_snapshot_real_broken (SourceSnapshot* self)
-{
-}
-
-
-static void
-value_source_snapshot_init (GValue* value)
-{
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 3258 "DataSource.c"
-}
-
-
-static void
-value_source_snapshot_free_value (GValue* value)
-{
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (value->data[0].v_pointer) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_snapshot_unref (value->data[0].v_pointer);
-#line 3269 "DataSource.c"
- }
-}
-
-
-static void
-value_source_snapshot_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (src_value->data[0].v_pointer) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- dest_value->data[0].v_pointer = source_snapshot_ref (src_value->data[0].v_pointer);
-#line 3282 "DataSource.c"
- } else {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3286 "DataSource.c"
- }
-}
-
-
-static gpointer
-value_source_snapshot_peek_pointer (const GValue* value)
-{
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return value->data[0].v_pointer;
-#line 3296 "DataSource.c"
-}
-
-
-static gchar*
-value_source_snapshot_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (collect_values[0].v_pointer) {
-#line 3308 "DataSource.c"
- SourceSnapshot * object;
- object = collect_values[0].v_pointer;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3315 "DataSource.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.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 3319 "DataSource.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = source_snapshot_ref (object);
-#line 3323 "DataSource.c"
- } else {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 3327 "DataSource.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return NULL;
-#line 3331 "DataSource.c"
-}
-
-
-static gchar*
-value_source_snapshot_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SourceSnapshot ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!object_p) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3347 "DataSource.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!value->data[0].v_pointer) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = NULL;
-#line 3353 "DataSource.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = value->data[0].v_pointer;
-#line 3357 "DataSource.c"
- } else {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = source_snapshot_ref (value->data[0].v_pointer);
-#line 3361 "DataSource.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return NULL;
-#line 3365 "DataSource.c"
-}
-
-
-GParamSpec*
-param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecSourceSnapshot* spec;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SOURCE_SNAPSHOT), NULL);
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return G_PARAM_SPEC (spec);
-#line 3385 "DataSource.c"
-}
-
-
-gpointer
-value_get_source_snapshot (const GValue* value)
-{
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_SNAPSHOT), NULL);
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return value->data[0].v_pointer;
-#line 3396 "DataSource.c"
-}
-
-
-void
-value_set_source_snapshot (GValue* value,
- gpointer v_object)
-{
- SourceSnapshot * old;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_SNAPSHOT));
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- old = value->data[0].v_pointer;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (v_object) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_SNAPSHOT));
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = v_object;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_snapshot_ref (value->data[0].v_pointer);
-#line 3419 "DataSource.c"
- } else {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 3423 "DataSource.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (old) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_snapshot_unref (old);
-#line 3429 "DataSource.c"
- }
-}
-
-
-void
-value_take_source_snapshot (GValue* value,
- gpointer v_object)
-{
- SourceSnapshot * old;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_SNAPSHOT));
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- old = value->data[0].v_pointer;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (v_object) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_SNAPSHOT));
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = v_object;
-#line 3451 "DataSource.c"
- } else {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 3455 "DataSource.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (old) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_snapshot_unref (old);
-#line 3461 "DataSource.c"
- }
-}
-
-
-static void
-source_snapshot_class_init (SourceSnapshotClass * klass)
-{
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_snapshot_parent_class = g_type_class_peek_parent (klass);
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceSnapshotClass *) klass)->finalize = source_snapshot_finalize;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_type_class_add_private (klass, sizeof (SourceSnapshotPrivate));
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceSnapshotClass *) klass)->notify_broken = (void (*) (SourceSnapshot *)) source_snapshot_real_notify_broken;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceSnapshotClass *) klass)->broken = source_snapshot_real_broken;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_snapshot_signals[SOURCE_SNAPSHOT_BROKEN_SIGNAL] = g_signal_new ("broken", TYPE_SOURCE_SNAPSHOT, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceSnapshotClass, broken), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 3481 "DataSource.c"
-}
-
-
-static void
-source_snapshot_instance_init (SourceSnapshot * self)
-{
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv = SOURCE_SNAPSHOT_GET_PRIVATE (self);
-#line 447 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->snapshot_broken = FALSE;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->ref_count = 1;
-#line 3494 "DataSource.c"
-}
-
-
-static void
-source_snapshot_finalize (SourceSnapshot * obj)
-{
- SourceSnapshot * self;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_SNAPSHOT, SourceSnapshot);
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_handlers_destroy (self);
-#line 3506 "DataSource.c"
-}
-
-
-GType
-source_snapshot_get_type (void)
-{
- static volatile gsize source_snapshot_type_id__volatile = 0;
- if (g_once_init_enter (&source_snapshot_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_source_snapshot_init, value_source_snapshot_free_value, value_source_snapshot_copy_value, value_source_snapshot_peek_pointer, "p", value_source_snapshot_collect_value, "p", value_source_snapshot_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SourceSnapshotClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_snapshot_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceSnapshot), 0, (GInstanceInitFunc) source_snapshot_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType source_snapshot_type_id;
- source_snapshot_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SourceSnapshot", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&source_snapshot_type_id__volatile, source_snapshot_type_id);
- }
- return source_snapshot_type_id__volatile;
-}
-
-
-gpointer
-source_snapshot_ref (gpointer instance)
-{
- SourceSnapshot * self;
- self = instance;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return instance;
-#line 3535 "DataSource.c"
-}
-
-
-void
-source_snapshot_unref (gpointer instance)
-{
- SourceSnapshot * self;
- self = instance;
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- SOURCE_SNAPSHOT_GET_CLASS (self)->finalize (self);
-#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3550 "DataSource.c"
- }
-}
-
-
-static gchar*
-string_strip (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strstrip (_tmp1_);
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3576 "DataSource.c"
-}
-
-
-SourceBacklink*
-source_backlink_construct (GType object_type,
- const gchar* name,
- const gchar* value)
-{
- SourceBacklink* self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (value != NULL, NULL);
-#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = (SourceBacklink*) g_type_create_instance (object_type);
-#line 499 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (source_backlink_validate_name_value (name, value), "validate_name_value(name, value)");
-#line 501 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = string_strip (name);
-#line 501 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (self->priv->_name);
-#line 501 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->_name = _tmp0_;
-#line 502 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = string_strip (value);
-#line 502 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (self->priv->_value);
-#line 502 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->_value = _tmp1_;
-#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return self;
-#line 3610 "DataSource.c"
-}
-
-
-SourceBacklink*
-source_backlink_new (const gchar* name,
- const gchar* value)
-{
-#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return source_backlink_construct (TYPE_SOURCE_BACKLINK, name, value);
-#line 3620 "DataSource.c"
-}
-
-
-SourceBacklink*
-source_backlink_construct_from_source (GType object_type,
- DataSource* source)
-{
- SourceBacklink* self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 505 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 505 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = (SourceBacklink*) g_type_create_instance (object_type);
-#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = data_source_get_typename (source);
-#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = _tmp0_;
-#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = string_strip (_tmp1_);
-#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (self->priv->_name);
-#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->_name = _tmp2_;
-#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp1_);
-#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = g_strdup_printf ("%" G_GINT64_FORMAT, data_source_get_instance_id (source));
-#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = _tmp3_;
-#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = string_strip (_tmp4_);
-#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (self->priv->_value);
-#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->_value = _tmp5_;
-#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (_tmp4_);
-#line 509 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = self->priv->_name;
-#line 509 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = self->priv->_value;
-#line 509 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (source_backlink_validate_name_value (_tmp6_, _tmp7_), "validate_name_value(_name, _value)");
-#line 505 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return self;
-#line 3673 "DataSource.c"
-}
-
-
-SourceBacklink*
-source_backlink_new_from_source (DataSource* source)
-{
-#line 505 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return source_backlink_construct_from_source (TYPE_SOURCE_BACKLINK, source);
-#line 3682 "DataSource.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3702 "DataSource.c"
-}
-
-
-static gboolean
-source_backlink_validate_name_value (const gchar* name,
- const gchar* value)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
-#line 512 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (name != NULL, FALSE);
-#line 512 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (value != NULL, FALSE);
-#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!string_contains (name, "=")) {
-#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = !string_contains (name, "|");
-#line 3721 "DataSource.c"
- } else {
-#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = FALSE;
-#line 3725 "DataSource.c"
- }
-#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_) {
-#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = !string_contains (value, "|");
-#line 3731 "DataSource.c"
- } else {
-#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = FALSE;
-#line 3735 "DataSource.c"
- }
-#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp0_;
-#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3741 "DataSource.c"
-}
-
-
-gchar*
-source_backlink_to_string (SourceBacklink* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 516 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (self), NULL);
-#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = source_backlink_get_name (self);
-#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = _tmp0_;
-#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = source_backlink_get_value (self);
-#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _tmp2_;
-#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = g_strdup_printf ("Backlink %s=%s", _tmp1_, _tmp3_);
-#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp4_;
-#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3770 "DataSource.c"
-}
-
-
-guint
-source_backlink_hash_func (SourceBacklink* backlink)
-{
- guint result = 0U;
- GHashFunc _tmp0_;
- const gchar* _tmp1_;
- GHashFunc _tmp2_;
- const gchar* _tmp3_;
-#line 520 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail ((backlink == NULL) || IS_SOURCE_BACKLINK (backlink), 0U);
-#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = g_str_hash;
-#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = backlink->priv->_name;
-#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = g_str_hash;
-#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = backlink->priv->_value;
-#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp0_ (_tmp1_) ^ _tmp2_ (_tmp3_);
-#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3796 "DataSource.c"
-}
-
-
-gboolean
-source_backlink_equal_func (SourceBacklink* alink,
- SourceBacklink* blink)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GEqualFunc _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 524 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail ((alink == NULL) || IS_SOURCE_BACKLINK (alink), FALSE);
-#line 524 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail ((blink == NULL) || IS_SOURCE_BACKLINK (blink), FALSE);
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = g_str_equal;
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = alink->priv->_name;
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = blink->priv->_name;
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_ (_tmp2_, _tmp3_)) {
-#line 3821 "DataSource.c"
- GEqualFunc _tmp4_;
- const gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = g_str_equal;
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = alink->priv->_value;
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = blink->priv->_value;
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = _tmp4_ (_tmp5_, _tmp6_);
-#line 3833 "DataSource.c"
- } else {
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = FALSE;
-#line 3837 "DataSource.c"
- }
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp0_;
-#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3843 "DataSource.c"
-}
-
-
-const gchar*
-source_backlink_get_name (SourceBacklink* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 473 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (self), NULL);
-#line 474 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->_name;
-#line 474 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp0_;
-#line 474 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3860 "DataSource.c"
-}
-
-
-const gchar*
-source_backlink_get_value (SourceBacklink* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 479 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (self), NULL);
-#line 480 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->_value;
-#line 480 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp0_;
-#line 480 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3877 "DataSource.c"
-}
-
-
-const gchar*
-source_backlink_get_typename (SourceBacklink* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 486 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (self), NULL);
-#line 487 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->_name;
-#line 487 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp0_;
-#line 487 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3894 "DataSource.c"
-}
-
-
-static gint64
-int64_parse (const gchar* str)
-{
- gint64 result = 0LL;
- gint64 _tmp0_;
-#line 687 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (str != NULL, 0LL);
-#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_ascii_strtoll (str, NULL, (guint) 0);
-#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3911 "DataSource.c"
-}
-
-
-gint64
-source_backlink_get_instance_id (SourceBacklink* self)
-{
- gint64 result;
- const gchar* _tmp0_;
-#line 493 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (self), 0LL);
-#line 494 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->_value;
-#line 494 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = int64_parse (_tmp0_);
-#line 494 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 3928 "DataSource.c"
-}
-
-
-static void
-value_source_backlink_init (GValue* value)
-{
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 3937 "DataSource.c"
-}
-
-
-static void
-value_source_backlink_free_value (GValue* value)
-{
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (value->data[0].v_pointer) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_backlink_unref (value->data[0].v_pointer);
-#line 3948 "DataSource.c"
- }
-}
-
-
-static void
-value_source_backlink_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (src_value->data[0].v_pointer) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- dest_value->data[0].v_pointer = source_backlink_ref (src_value->data[0].v_pointer);
-#line 3961 "DataSource.c"
- } else {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3965 "DataSource.c"
- }
-}
-
-
-static gpointer
-value_source_backlink_peek_pointer (const GValue* value)
-{
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return value->data[0].v_pointer;
-#line 3975 "DataSource.c"
-}
-
-
-static gchar*
-value_source_backlink_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (collect_values[0].v_pointer) {
-#line 3987 "DataSource.c"
- SourceBacklink * object;
- object = collect_values[0].v_pointer;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3994 "DataSource.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.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 3998 "DataSource.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = source_backlink_ref (object);
-#line 4002 "DataSource.c"
- } else {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 4006 "DataSource.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return NULL;
-#line 4010 "DataSource.c"
-}
-
-
-static gchar*
-value_source_backlink_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SourceBacklink ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!object_p) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4026 "DataSource.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!value->data[0].v_pointer) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = NULL;
-#line 4032 "DataSource.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = value->data[0].v_pointer;
-#line 4036 "DataSource.c"
- } else {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = source_backlink_ref (value->data[0].v_pointer);
-#line 4040 "DataSource.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return NULL;
-#line 4044 "DataSource.c"
-}
-
-
-GParamSpec*
-param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecSourceBacklink* spec;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SOURCE_BACKLINK), NULL);
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return G_PARAM_SPEC (spec);
-#line 4064 "DataSource.c"
-}
-
-
-gpointer
-value_get_source_backlink (const GValue* value)
-{
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_BACKLINK), NULL);
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return value->data[0].v_pointer;
-#line 4075 "DataSource.c"
-}
-
-
-void
-value_set_source_backlink (GValue* value,
- gpointer v_object)
-{
- SourceBacklink * old;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_BACKLINK));
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- old = value->data[0].v_pointer;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (v_object) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_BACKLINK));
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = v_object;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_backlink_ref (value->data[0].v_pointer);
-#line 4098 "DataSource.c"
- } else {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 4102 "DataSource.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (old) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_backlink_unref (old);
-#line 4108 "DataSource.c"
- }
-}
-
-
-void
-value_take_source_backlink (GValue* value,
- gpointer v_object)
-{
- SourceBacklink * old;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_BACKLINK));
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- old = value->data[0].v_pointer;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (v_object) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_BACKLINK));
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = v_object;
-#line 4130 "DataSource.c"
- } else {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 4134 "DataSource.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (old) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_backlink_unref (old);
-#line 4140 "DataSource.c"
- }
-}
-
-
-static void
-source_backlink_class_init (SourceBacklinkClass * klass)
-{
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_backlink_parent_class = g_type_class_peek_parent (klass);
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceBacklinkClass *) klass)->finalize = source_backlink_finalize;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_type_class_add_private (klass, sizeof (SourceBacklinkPrivate));
-#line 4154 "DataSource.c"
-}
-
-
-static void
-source_backlink_instance_init (SourceBacklink * self)
-{
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv = SOURCE_BACKLINK_GET_PRIVATE (self);
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->ref_count = 1;
-#line 4165 "DataSource.c"
-}
-
-
-static void
-source_backlink_finalize (SourceBacklink * obj)
-{
- SourceBacklink * self;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_BACKLINK, SourceBacklink);
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_handlers_destroy (self);
-#line 469 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (self->priv->_name);
-#line 470 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (self->priv->_value);
-#line 4181 "DataSource.c"
-}
-
-
-GType
-source_backlink_get_type (void)
-{
- static volatile gsize source_backlink_type_id__volatile = 0;
- if (g_once_init_enter (&source_backlink_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_source_backlink_init, value_source_backlink_free_value, value_source_backlink_copy_value, value_source_backlink_peek_pointer, "p", value_source_backlink_collect_value, "p", value_source_backlink_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SourceBacklinkClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_backlink_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceBacklink), 0, (GInstanceInitFunc) source_backlink_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType source_backlink_type_id;
- source_backlink_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SourceBacklink", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&source_backlink_type_id__volatile, source_backlink_type_id);
- }
- return source_backlink_type_id__volatile;
-}
-
-
-gpointer
-source_backlink_ref (gpointer instance)
-{
- SourceBacklink * self;
- self = instance;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return instance;
-#line 4210 "DataSource.c"
-}
-
-
-void
-source_backlink_unref (gpointer instance)
-{
- SourceBacklink * self;
- self = instance;
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- SOURCE_BACKLINK_GET_CLASS (self)->finalize (self);
-#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4225 "DataSource.c"
- }
-}
-
-
-static void
-_source_proxy_on_source_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self)
-{
-#line 588 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_on_source_added ((SourceProxy*) self, added);
-#line 4237 "DataSource.c"
-}
-
-
-static void
-_source_proxy_on_snapshot_broken_source_snapshot_broken (SourceSnapshot* _sender,
- gpointer self)
-{
-#line 577 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_on_snapshot_broken ((SourceProxy*) self);
-#line 4247 "DataSource.c"
-}
-
-
-SourceProxy*
-source_proxy_construct (GType object_type,
- DataSource* source)
-{
- SourceProxy* self = NULL;
- gchar* _tmp0_;
- SourceSnapshot* _tmp1_;
- SourceSnapshot* _tmp2_;
- SourceSnapshot* _tmp3_;
- DataCollection* _tmp4_;
- SourceCollection* _tmp5_;
- SourceCollection* _tmp6_;
-#line 571 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 571 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = (SourceProxy*) g_type_create_instance (object_type);
-#line 572 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->object_id = data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 573 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 573 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (self->priv->source_string);
-#line 573 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->source_string = _tmp0_;
-#line 575 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = data_source_save_snapshot (source);
-#line 575 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _source_snapshot_unref0 (self->priv->snapshot);
-#line 575 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->snapshot = _tmp1_;
-#line 576 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->snapshot;
-#line 576 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp2_ != NULL, "snapshot != null");
-#line 577 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = self->priv->snapshot;
-#line 577 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_connect (_tmp3_, "broken", (GCallback) _source_proxy_on_snapshot_broken_source_snapshot_broken, self);
-#line 579 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_set_source (self, source);
-#line 581 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 581 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _data_collection_unref0 (self->priv->membership);
-#line 581 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->membership = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection);
-#line 582 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = self->priv->membership;
-#line 582 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp5_ != NULL, "membership != null");
-#line 583 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = self->priv->membership;
-#line 583 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), "items-added", (GCallback) _source_proxy_on_source_added_data_collection_items_added, self);
-#line 571 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return self;
-#line 4307 "DataSource.c"
-}
-
-
-static DataSource*
-source_proxy_real_reconstitute (SourceProxy* self,
- gint64 object_id,
- SourceSnapshot* snapshot)
-{
-#line 591 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_critical ("Type `%s' does not implement abstract method `source_proxy_reconstitute'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 591 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return NULL;
-#line 4320 "DataSource.c"
-}
-
-
-DataSource*
-source_proxy_reconstitute (SourceProxy* self,
- gint64 object_id,
- SourceSnapshot* snapshot)
-{
-#line 591 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_PROXY (self), NULL);
-#line 591 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return SOURCE_PROXY_GET_CLASS (self)->reconstitute (self, object_id, snapshot);
-#line 4333 "DataSource.c"
-}
-
-
-static void
-source_proxy_real_notify_reconstituted (SourceProxy* self,
- DataSource* source)
-{
-#line 593 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 594 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_emit (self, source_proxy_signals[SOURCE_PROXY_RECONSTITUTED_SIGNAL], 0, source);
-#line 4345 "DataSource.c"
-}
-
-
-void
-source_proxy_notify_reconstituted (SourceProxy* self,
- DataSource* source)
-{
-#line 593 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_PROXY (self));
-#line 593 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- SOURCE_PROXY_GET_CLASS (self)->notify_reconstituted (self, source);
-#line 4357 "DataSource.c"
-}
-
-
-static void
-source_proxy_real_notify_dehydrated (SourceProxy* self)
-{
-#line 598 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_emit (self, source_proxy_signals[SOURCE_PROXY_DEHYDRATED_SIGNAL], 0);
-#line 4366 "DataSource.c"
-}
-
-
-void
-source_proxy_notify_dehydrated (SourceProxy* self)
-{
-#line 597 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_PROXY (self));
-#line 597 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- SOURCE_PROXY_GET_CLASS (self)->notify_dehydrated (self);
-#line 4377 "DataSource.c"
-}
-
-
-static void
-source_proxy_real_notify_broken (SourceProxy* self)
-{
-#line 602 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_emit (self, source_proxy_signals[SOURCE_PROXY_BROKEN_SIGNAL], 0);
-#line 4386 "DataSource.c"
-}
-
-
-void
-source_proxy_notify_broken (SourceProxy* self)
-{
-#line 601 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_PROXY (self));
-#line 601 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- SOURCE_PROXY_GET_CLASS (self)->notify_broken (self);
-#line 4397 "DataSource.c"
-}
-
-
-static void
-source_proxy_on_snapshot_broken (SourceProxy* self)
-{
-#line 605 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_PROXY (self));
-#line 606 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_drop_source (self);
-#line 608 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_notify_broken (self);
-#line 4410 "DataSource.c"
-}
-
-
-static void
-_source_proxy_on_destroyed_data_source_destroyed (DataSource* _sender,
- gpointer self)
-{
-#line 615 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_on_destroyed ((SourceProxy*) self);
-#line 4420 "DataSource.c"
-}
-
-
-static void
-source_proxy_set_source (SourceProxy* self,
- DataSource* source)
-{
- DataSource* _tmp0_;
-#line 611 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_PROXY (self));
-#line 611 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 612 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_drop_source (self);
-#line 614 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = _g_object_ref0 (source);
-#line 614 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (self->priv->source);
-#line 614 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->source = _tmp0_;
-#line 615 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_connect (source, "destroyed", (GCallback) _source_proxy_on_destroyed_data_source_destroyed, self);
-#line 4443 "DataSource.c"
-}
-
-
-static void
-source_proxy_drop_source (SourceProxy* self)
-{
- DataSource* _tmp0_;
- DataSource* _tmp1_;
- guint _tmp2_;
-#line 618 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_PROXY (self));
-#line 619 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->source;
-#line 619 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp0_ == NULL) {
-#line 620 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return;
-#line 4461 "DataSource.c"
- }
-#line 622 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->source;
-#line 622 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp2_, NULL, FALSE);
-#line 622 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _source_proxy_on_destroyed_data_source_destroyed, self);
-#line 623 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (self->priv->source);
-#line 623 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->source = NULL;
-#line 4473 "DataSource.c"
-}
-
-
-DataSource*
-source_proxy_get_source (SourceProxy* self)
-{
- DataSource* result = NULL;
- SourceSnapshot* _tmp0_;
- DataSource* _tmp1_;
- DataSource* new_source = NULL;
- gint64 _tmp4_;
- SourceSnapshot* _tmp5_;
- DataSource* _tmp6_;
- DataSource* _tmp7_;
- DataSource* _tmp8_;
- gint64 _tmp11_;
- DataSource* _tmp12_;
- DataSource* _tmp14_;
- gint64 _tmp15_;
- SourceCollection* _tmp16_;
- DataSource* _tmp17_;
- DataSource* _tmp18_;
- DataSource* _tmp19_;
-#line 626 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_SOURCE_PROXY (self), NULL);
-#line 627 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->snapshot;
-#line 627 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (source_snapshot_is_broken (_tmp0_)) {
-#line 628 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = NULL;
-#line 628 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 4507 "DataSource.c"
- }
-#line 630 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = self->priv->source;
-#line 630 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp1_ != NULL) {
-#line 4513 "DataSource.c"
- DataSource* _tmp2_;
- DataSource* _tmp3_;
-#line 631 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = self->priv->source;
-#line 631 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 631 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp3_;
-#line 631 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 4524 "DataSource.c"
- }
-#line 636 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = self->priv->object_id;
-#line 636 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = self->priv->snapshot;
-#line 636 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = source_proxy_reconstitute (self, _tmp4_, _tmp5_);
-#line 636 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- new_source = _tmp6_;
-#line 637 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = self->priv->source;
-#line 637 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = new_source;
-#line 637 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp7_ != _tmp8_) {
-#line 4540 "DataSource.c"
- DataSource* _tmp9_;
- DataSource* _tmp10_;
-#line 638 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp9_ = new_source;
-#line 638 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 638 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (self->priv->source);
-#line 638 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->source = _tmp10_;
-#line 4551 "DataSource.c"
- }
-#line 639 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp11_ = self->priv->object_id;
-#line 639 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp12_ = self->priv->source;
-#line 639 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp11_ != data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject))) {
-#line 4559 "DataSource.c"
- DataSource* _tmp13_;
-#line 640 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp13_ = new_source;
-#line 640 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv->object_id = data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject));
-#line 4565 "DataSource.c"
- }
-#line 641 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp14_ = self->priv->source;
-#line 641 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp15_ = self->priv->object_id;
-#line 641 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject)) == _tmp15_, "source.get_object_id() == object_id");
-#line 642 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp16_ = self->priv->membership;
-#line 642 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp17_ = self->priv->source;
-#line 642 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_OBJECT, DataObject)), "membership.contains(source)");
-#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp18_ = self->priv->source;
-#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp19_ = _g_object_ref0 (_tmp18_);
-#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- result = _tmp19_;
-#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (new_source);
-#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return result;
-#line 4589 "DataSource.c"
-}
-
-
-static void
-source_proxy_on_destroyed (SourceProxy* self)
-{
- DataSource* _tmp0_;
-#line 647 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_PROXY (self));
-#line 648 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->source;
-#line 648 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _vala_assert (_tmp0_ != NULL, "source != null");
-#line 651 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_drop_source (self);
-#line 653 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_notify_dehydrated (self);
-#line 4607 "DataSource.c"
-}
-
-
-static void
-source_proxy_on_source_added (SourceProxy* self,
- GeeIterable* added)
-{
- DataSource* _tmp0_;
-#line 656 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_SOURCE_PROXY (self));
-#line 656 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 658 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->source;
-#line 658 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (_tmp0_ != NULL) {
-#line 659 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return;
-#line 4626 "DataSource.c"
- }
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp1_;
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp1_ = gee_iterable_iterator (added);
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _object_it = _tmp1_;
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- while (TRUE) {
-#line 4637 "DataSource.c"
- GeeIterator* _tmp2_;
- DataObject* object = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- DataObject* _tmp5_;
- gint64 _tmp6_;
- DataObject* _tmp7_;
- DataObject* _tmp8_;
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp2_ = _object_it;
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 4652 "DataSource.c"
- }
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp3_ = _object_it;
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- object = (DataObject*) _tmp4_;
-#line 663 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp5_ = object;
-#line 663 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp6_ = self->priv->object_id;
-#line 663 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (data_object_get_object_id (_tmp5_) != _tmp6_) {
-#line 664 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (object);
-#line 664 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- continue;
-#line 4670 "DataSource.c"
- }
-#line 667 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp7_ = object;
-#line 667 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_set_source (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource));
-#line 669 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp8_ = object;
-#line 669 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_notify_reconstituted (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_SOURCE, DataSource));
-#line 671 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (object);
-#line 671 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- break;
-#line 4684 "DataSource.c"
- }
-#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (_object_it);
-#line 4688 "DataSource.c"
- }
-}
-
-
-static void
-source_proxy_real_reconstituted (SourceProxy* self,
- DataSource* source)
-{
-#line 558 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 4699 "DataSource.c"
-}
-
-
-static void
-source_proxy_real_dehydrated (SourceProxy* self)
-{
-}
-
-
-static void
-source_proxy_real_broken (SourceProxy* self)
-{
-}
-
-
-static void
-value_source_proxy_init (GValue* value)
-{
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 4720 "DataSource.c"
-}
-
-
-static void
-value_source_proxy_free_value (GValue* value)
-{
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (value->data[0].v_pointer) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_unref (value->data[0].v_pointer);
-#line 4731 "DataSource.c"
- }
-}
-
-
-static void
-value_source_proxy_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (src_value->data[0].v_pointer) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- dest_value->data[0].v_pointer = source_proxy_ref (src_value->data[0].v_pointer);
-#line 4744 "DataSource.c"
- } else {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4748 "DataSource.c"
- }
-}
-
-
-static gpointer
-value_source_proxy_peek_pointer (const GValue* value)
-{
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return value->data[0].v_pointer;
-#line 4758 "DataSource.c"
-}
-
-
-static gchar*
-value_source_proxy_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (collect_values[0].v_pointer) {
-#line 4770 "DataSource.c"
- SourceProxy * object;
- object = collect_values[0].v_pointer;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4777 "DataSource.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.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 4781 "DataSource.c"
- }
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = source_proxy_ref (object);
-#line 4785 "DataSource.c"
- } else {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 4789 "DataSource.c"
- }
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return NULL;
-#line 4793 "DataSource.c"
-}
-
-
-static gchar*
-value_source_proxy_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SourceProxy ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!object_p) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4809 "DataSource.c"
- }
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!value->data[0].v_pointer) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = NULL;
-#line 4815 "DataSource.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = value->data[0].v_pointer;
-#line 4819 "DataSource.c"
- } else {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- *object_p = source_proxy_ref (value->data[0].v_pointer);
-#line 4823 "DataSource.c"
- }
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return NULL;
-#line 4827 "DataSource.c"
-}
-
-
-GParamSpec*
-param_spec_source_proxy (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecSourceProxy* spec;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SOURCE_PROXY), NULL);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return G_PARAM_SPEC (spec);
-#line 4847 "DataSource.c"
-}
-
-
-gpointer
-value_get_source_proxy (const GValue* value)
-{
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_PROXY), NULL);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return value->data[0].v_pointer;
-#line 4858 "DataSource.c"
-}
-
-
-void
-value_set_source_proxy (GValue* value,
- gpointer v_object)
-{
- SourceProxy * old;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_PROXY));
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- old = value->data[0].v_pointer;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (v_object) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_PROXY));
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = v_object;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_ref (value->data[0].v_pointer);
-#line 4881 "DataSource.c"
- } else {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 4885 "DataSource.c"
- }
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (old) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_unref (old);
-#line 4891 "DataSource.c"
- }
-}
-
-
-void
-value_take_source_proxy (GValue* value,
- gpointer v_object)
-{
- SourceProxy * old;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_PROXY));
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- old = value->data[0].v_pointer;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (v_object) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_PROXY));
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = v_object;
-#line 4913 "DataSource.c"
- } else {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- value->data[0].v_pointer = NULL;
-#line 4917 "DataSource.c"
- }
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (old) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_unref (old);
-#line 4923 "DataSource.c"
- }
-}
-
-
-static void
-source_proxy_class_init (SourceProxyClass * klass)
-{
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_parent_class = g_type_class_peek_parent (klass);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceProxyClass *) klass)->finalize = source_proxy_finalize;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_type_class_add_private (klass, sizeof (SourceProxyPrivate));
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceProxyClass *) klass)->reconstitute = (DataSource* (*) (SourceProxy *, gint64, SourceSnapshot*)) source_proxy_real_reconstitute;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceProxyClass *) klass)->notify_reconstituted = (void (*) (SourceProxy *, DataSource*)) source_proxy_real_notify_reconstituted;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceProxyClass *) klass)->notify_dehydrated = (void (*) (SourceProxy *)) source_proxy_real_notify_dehydrated;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceProxyClass *) klass)->notify_broken = (void (*) (SourceProxy *)) source_proxy_real_notify_broken;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceProxyClass *) klass)->reconstituted = source_proxy_real_reconstituted;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceProxyClass *) klass)->dehydrated = source_proxy_real_dehydrated;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- ((SourceProxyClass *) klass)->broken = source_proxy_real_broken;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_signals[SOURCE_PROXY_RECONSTITUTED_SIGNAL] = g_signal_new ("reconstituted", TYPE_SOURCE_PROXY, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceProxyClass, reconstituted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_SOURCE);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_signals[SOURCE_PROXY_DEHYDRATED_SIGNAL] = g_signal_new ("dehydrated", TYPE_SOURCE_PROXY, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceProxyClass, dehydrated), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_signals[SOURCE_PROXY_BROKEN_SIGNAL] = g_signal_new ("broken", TYPE_SOURCE_PROXY, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceProxyClass, broken), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 4957 "DataSource.c"
-}
-
-
-static void
-source_proxy_instance_init (SourceProxy * self)
-{
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->priv = SOURCE_PROXY_GET_PRIVATE (self);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self->ref_count = 1;
-#line 4968 "DataSource.c"
-}
-
-
-static void
-source_proxy_finalize (SourceProxy * obj)
-{
- SourceProxy * self;
- SourceCollection* _tmp0_;
- guint _tmp1_;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_PROXY, SourceProxy);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_handlers_destroy (self);
-#line 587 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- source_proxy_drop_source (self);
-#line 588 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _tmp0_ = self->priv->membership;
-#line 588 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 588 "/home/jens/Source/shotwell/src/core/DataSource.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) _source_proxy_on_source_added_data_collection_items_added, self);
-#line 551 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_free0 (self->priv->source_string);
-#line 552 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _g_object_unref0 (self->priv->source);
-#line 553 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _source_snapshot_unref0 (self->priv->snapshot);
-#line 554 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- _data_collection_unref0 (self->priv->membership);
-#line 4998 "DataSource.c"
-}
-
-
-GType
-source_proxy_get_type (void)
-{
- static volatile gsize source_proxy_type_id__volatile = 0;
- if (g_once_init_enter (&source_proxy_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_source_proxy_init, value_source_proxy_free_value, value_source_proxy_copy_value, value_source_proxy_peek_pointer, "p", value_source_proxy_collect_value, "p", value_source_proxy_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SourceProxyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_proxy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceProxy), 0, (GInstanceInitFunc) source_proxy_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType source_proxy_type_id;
- source_proxy_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SourceProxy", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&source_proxy_type_id__volatile, source_proxy_type_id);
- }
- return source_proxy_type_id__volatile;
-}
-
-
-gpointer
-source_proxy_ref (gpointer instance)
-{
- SourceProxy * self;
- self = instance;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return instance;
-#line 5027 "DataSource.c"
-}
-
-
-void
-source_proxy_unref (gpointer instance)
-{
- SourceProxy * self;
- self = instance;
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- SOURCE_PROXY_GET_CLASS (self)->finalize (self);
-#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 5042 "DataSource.c"
- }
-}
-
-
-SourceProxy*
-proxyable_get_proxy (Proxyable* self)
-{
-#line 677 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- g_return_val_if_fail (IS_PROXYABLE (self), NULL);
-#line 677 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- return PROXYABLE_GET_INTERFACE (self)->get_proxy (self);
-#line 5054 "DataSource.c"
-}
-
-
-static void
-proxyable_base_init (ProxyableIface * iface)
-{
-#line 676 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- static gboolean initialized = FALSE;
-#line 676 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- if (!initialized) {
-#line 676 "/home/jens/Source/shotwell/src/core/DataSource.vala"
- initialized = TRUE;
-#line 5067 "DataSource.c"
- }
-}
-
-
-GType
-proxyable_get_type (void)
-{
- static volatile gsize proxyable_type_id__volatile = 0;
- if (g_once_init_enter (&proxyable_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ProxyableIface), (GBaseInitFunc) proxyable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType proxyable_type_id;
- proxyable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Proxyable", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (proxyable_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&proxyable_type_id__volatile, proxyable_type_id);
- }
- return proxyable_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/core/DataSourceTypes.c b/src/core/DataSourceTypes.c
deleted file mode 100644
index 5fda46c..0000000
--- a/src/core/DataSourceTypes.c
+++ /dev/null
@@ -1,1336 +0,0 @@
-/* DataSourceTypes.c generated by valac 0.40.4, the Vala compiler
- * generated from DataSourceTypes.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/**/
-/* Media sources*/
-/**/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <time.h>
-#include <gee.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-enum {
- THUMBNAIL_SOURCE_0_PROPERTY,
- THUMBNAIL_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* thumbnail_source_properties[THUMBNAIL_SOURCE_NUM_PROPERTIES];
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-enum {
- THUMBNAIL_SOURCE_THUMBNAIL_ALTERED_SIGNAL,
- THUMBNAIL_SOURCE_NUM_SIGNALS
-};
-static guint thumbnail_source_signals[THUMBNAIL_SOURCE_NUM_SIGNALS] = {0};
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-
-#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;
-typedef struct _MediaSourcePrivate MediaSourcePrivate;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ())
-#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState))
-#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE))
-#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE))
-#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-
-typedef struct _BackingFileState BackingFileState;
-typedef struct _BackingFileStateClass BackingFileStateClass;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#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;
-typedef struct _PhotoSourcePrivate PhotoSourcePrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-enum {
- PHOTO_SOURCE_0_PROPERTY,
- PHOTO_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* photo_source_properties[PHOTO_SOURCE_NUM_PROPERTIES];
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-typedef struct _VideoSourcePrivate VideoSourcePrivate;
-enum {
- VIDEO_SOURCE_0_PROPERTY,
- VIDEO_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* video_source_properties[VIDEO_SOURCE_NUM_PROPERTIES];
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-typedef struct _EventSourcePrivate EventSourcePrivate;
-enum {
- EVENT_SOURCE_0_PROPERTY,
- EVENT_SOURCE_NUM_PROPERTIES
-};
-static GParamSpec* event_source_properties[EVENT_SOURCE_NUM_PROPERTIES];
-
-#define TYPE_CONTAINER_SOURCE (container_source_get_type ())
-#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource))
-#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE))
-#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface))
-
-typedef struct _ContainerSource ContainerSource;
-typedef struct _ContainerSourceIface ContainerSourceIface;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _ThumbnailSource {
- DataSource parent_instance;
- ThumbnailSourcePrivate * priv;
-};
-
-struct _ThumbnailSourceClass {
- DataSourceClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailSource* self);
- GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- gchar* (*get_representative_id) (ThumbnailSource* self);
- PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self);
- void (*thumbnail_altered) (ThumbnailSource* self);
-};
-
-typedef void (*DataSourceContactSubscriber) (DataView* view, void* user_data);
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _EventID {
- gint64 id;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _MediaSource {
- ThumbnailSource parent_instance;
- MediaSourcePrivate * priv;
-};
-
-struct _MediaSourceClass {
- ThumbnailSourceClass parent_class;
- void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
- gboolean (*set_event_id) (MediaSource* self, EventID* id);
- gchar* (*get_basename) (MediaSource* self);
- GFile* (*get_file) (MediaSource* self);
- GFile* (*get_master_file) (MediaSource* self);
- guint64 (*get_master_filesize) (MediaSource* self);
- guint64 (*get_filesize) (MediaSource* self);
- time_t (*get_timestamp) (MediaSource* self);
- BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1);
- gchar* (*get_title) (MediaSource* self);
- gchar* (*get_comment) (MediaSource* self);
- void (*set_title) (MediaSource* self, const gchar* title);
- gboolean (*set_comment) (MediaSource* self, const gchar* comment);
- Rating (*get_rating) (MediaSource* self);
- void (*set_rating) (MediaSource* self, Rating rating);
- void (*increase_rating) (MediaSource* self);
- void (*decrease_rating) (MediaSource* self);
- void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result);
- GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error);
- gboolean (*is_trashed) (MediaSource* self);
- void (*trash) (MediaSource* self);
- void (*untrash) (MediaSource* self);
- gboolean (*is_offline) (MediaSource* self);
- void (*mark_offline) (MediaSource* self);
- void (*mark_online) (MediaSource* self);
- gchar* (*get_master_md5) (MediaSource* self);
- void (*get_event_id) (MediaSource* self, EventID* result);
- time_t (*get_exposure_time) (MediaSource* self);
- void (*get_import_id) (MediaSource* self, ImportID* result);
- void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
-};
-
-struct _PhotoSource {
- MediaSource parent_instance;
- PhotoSourcePrivate * priv;
-};
-
-struct _PhotoSourceClass {
- MediaSourceClass parent_class;
- PhotoMetadata* (*get_metadata) (PhotoSource* self);
- GdkPixbuf* (*get_pixbuf) (PhotoSource* self, Scaling* scaling, GError** error);
-};
-
-struct _VideoSource {
- MediaSource parent_instance;
- VideoSourcePrivate * priv;
-};
-
-struct _VideoSourceClass {
- MediaSourceClass parent_class;
-};
-
-struct _EventSource {
- ThumbnailSource parent_instance;
- EventSourcePrivate * priv;
-};
-
-struct _EventSourceClass {
- ThumbnailSourceClass parent_class;
- time_t (*get_start_time) (EventSource* self);
- time_t (*get_end_time) (EventSource* self);
- guint64 (*get_total_filesize) (EventSource* self);
- gint (*get_media_count) (EventSource* self);
- GeeCollection* (*get_media) (EventSource* self);
- gchar* (*get_comment) (EventSource* self);
- gboolean (*set_comment) (EventSource* self, const gchar* comment);
-};
-
-struct _ContainerSourceIface {
- GTypeInterface parent_iface;
- gboolean (*has_links) (ContainerSource* self);
- SourceBacklink* (*get_backlink) (ContainerSource* self);
- void (*break_link) (ContainerSource* self, DataSource* source);
- void (*break_link_many) (ContainerSource* self, GeeCollection* sources);
- void (*establish_link) (ContainerSource* self, DataSource* source);
- void (*establish_link_many) (ContainerSource* self, GeeCollection* sources);
-};
-
-
-static gpointer thumbnail_source_parent_class = NULL;
-static gpointer photo_source_parent_class = NULL;
-static gpointer video_source_parent_class = NULL;
-static gpointer event_source_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-ThumbnailSource* thumbnail_source_construct (GType object_type,
- gint64 object_id);
-DataSource* data_source_construct (GType object_type,
- gint64 object_id);
-void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self);
-static void thumbnail_source_real_notify_thumbnail_altered (ThumbnailSource* self);
-GType data_view_get_type (void) G_GNUC_CONST;
-void data_source_contact_subscribers (DataSource* self,
- DataSourceContactSubscriber contact_subscriber,
- void* contact_subscriber_target);
-static void thumbnail_source_subscriber_thumbnail_altered (ThumbnailSource* self,
- DataView* view);
-static void _thumbnail_source_subscriber_thumbnail_altered_data_source_contact_subscriber (DataView* view,
- gpointer self);
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-void thumbnail_view_notify_thumbnail_altered (ThumbnailView* self);
-GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-static GdkPixbuf* thumbnail_source_real_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-GdkPixbuf* thumbnail_source_create_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-static GdkPixbuf* thumbnail_source_real_create_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-gchar* thumbnail_source_get_representative_id (ThumbnailSource* self);
-static gchar* thumbnail_source_real_get_representative_id (ThumbnailSource* self);
-gchar* data_source_get_source_id (DataSource* self);
-PhotoFileFormat thumbnail_source_get_preferred_thumbnail_format (ThumbnailSource* self);
-static PhotoFileFormat thumbnail_source_real_get_preferred_thumbnail_format (ThumbnailSource* self);
-static void thumbnail_source_real_thumbnail_altered (ThumbnailSource* self);
-GType indexable_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-gpointer backing_file_state_ref (gpointer instance);
-void backing_file_state_unref (gpointer instance);
-GParamSpec* param_spec_backing_file_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_file_state (GValue* value,
- gpointer v_object);
-void value_take_backing_file_state (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_file_state (const GValue* value);
-GType backing_file_state_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType photo_exception_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-GType photo_source_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoSource* photo_source_construct (GType object_type,
- gint64 object_id);
-MediaSource* media_source_construct (GType object_type,
- gint64 object_id);
-PhotoMetadata* photo_source_get_metadata (PhotoSource* self);
-static PhotoMetadata* photo_source_real_get_metadata (PhotoSource* self);
-GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-static GdkPixbuf* photo_source_real_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-GType video_source_get_type (void) G_GNUC_CONST;
-VideoSource* video_source_construct (GType object_type);
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-GType event_source_get_type (void) G_GNUC_CONST;
-EventSource* event_source_construct (GType object_type,
- gint64 object_id);
-time_t event_source_get_start_time (EventSource* self);
-static time_t event_source_real_get_start_time (EventSource* self);
-time_t event_source_get_end_time (EventSource* self);
-static time_t event_source_real_get_end_time (EventSource* self);
-guint64 event_source_get_total_filesize (EventSource* self);
-static guint64 event_source_real_get_total_filesize (EventSource* self);
-gint event_source_get_media_count (EventSource* self);
-static gint event_source_real_get_media_count (EventSource* self);
-GeeCollection* event_source_get_media (EventSource* self);
-static GeeCollection* event_source_real_get_media (EventSource* self);
-gchar* event_source_get_comment (EventSource* self);
-static gchar* event_source_real_get_comment (EventSource* self);
-gboolean event_source_set_comment (EventSource* self,
- const gchar* comment);
-static gboolean event_source_real_set_comment (EventSource* self,
- const gchar* comment);
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType container_source_get_type (void) G_GNUC_CONST;
-gboolean container_source_has_links (ContainerSource* self);
-SourceBacklink* container_source_get_backlink (ContainerSource* self);
-void container_source_break_link (ContainerSource* self,
- DataSource* source);
-void container_source_break_link_many (ContainerSource* self,
- GeeCollection* sources);
-void container_source_establish_link (ContainerSource* self,
- DataSource* source);
-void container_source_establish_link_many (ContainerSource* self,
- GeeCollection* sources);
-
-
-ThumbnailSource*
-thumbnail_source_construct (GType object_type,
- gint64 object_id)
-{
- ThumbnailSource * self = NULL;
-#line 16 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- self = (ThumbnailSource*) data_source_construct (object_type, object_id);
-#line 15 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return self;
-#line 687 "DataSourceTypes.c"
-}
-
-
-static void
-_thumbnail_source_subscriber_thumbnail_altered_data_source_contact_subscriber (DataView* view,
- gpointer self)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- thumbnail_source_subscriber_thumbnail_altered ((ThumbnailSource*) self, view);
-#line 697 "DataSourceTypes.c"
-}
-
-
-static void
-thumbnail_source_real_notify_thumbnail_altered (ThumbnailSource* self)
-{
-#line 21 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_signal_emit (self, thumbnail_source_signals[THUMBNAIL_SOURCE_THUMBNAIL_ALTERED_SIGNAL], 0);
-#line 24 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- data_source_contact_subscribers (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), _thumbnail_source_subscriber_thumbnail_altered_data_source_contact_subscriber, self);
-#line 708 "DataSourceTypes.c"
-}
-
-
-void
-thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self)
-{
-#line 19 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (self));
-#line 19 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- THUMBNAIL_SOURCE_GET_CLASS (self)->notify_thumbnail_altered (self);
-#line 719 "DataSourceTypes.c"
-}
-
-
-static void
-thumbnail_source_subscriber_thumbnail_altered (ThumbnailSource* self,
- DataView* view)
-{
-#line 27 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (self));
-#line 27 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 28 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- thumbnail_view_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_THUMBNAIL_VIEW, ThumbnailView));
-#line 733 "DataSourceTypes.c"
-}
-
-
-static GdkPixbuf*
-thumbnail_source_real_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error)
-{
-#line 31 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `thumbnail_source_get_thumbnail'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 31 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return NULL;
-#line 746 "DataSourceTypes.c"
-}
-
-
-GdkPixbuf*
-thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error)
-{
-#line 31 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (self), NULL);
-#line 31 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return THUMBNAIL_SOURCE_GET_CLASS (self)->get_thumbnail (self, scale, error);
-#line 759 "DataSourceTypes.c"
-}
-
-
-static GdkPixbuf*
-thumbnail_source_real_create_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error)
-{
-#line 35 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `thumbnail_source_create_thumbnail'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 35 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return NULL;
-#line 772 "DataSourceTypes.c"
-}
-
-
-GdkPixbuf*
-thumbnail_source_create_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error)
-{
-#line 35 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (self), NULL);
-#line 35 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return THUMBNAIL_SOURCE_GET_CLASS (self)->create_thumbnail (self, scale, error);
-#line 785 "DataSourceTypes.c"
-}
-
-
-static gchar*
-thumbnail_source_real_get_representative_id (ThumbnailSource* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- _tmp0_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
-#line 47 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- result = _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return result;
-#line 800 "DataSourceTypes.c"
-}
-
-
-gchar*
-thumbnail_source_get_representative_id (ThumbnailSource* self)
-{
-#line 46 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (self), NULL);
-#line 46 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return THUMBNAIL_SOURCE_GET_CLASS (self)->get_representative_id (self);
-#line 811 "DataSourceTypes.c"
-}
-
-
-static PhotoFileFormat
-thumbnail_source_real_get_preferred_thumbnail_format (ThumbnailSource* self)
-{
-#line 50 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `thumbnail_source_get_preferred_thumbnail_format'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 50 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return 0;
-#line 822 "DataSourceTypes.c"
-}
-
-
-PhotoFileFormat
-thumbnail_source_get_preferred_thumbnail_format (ThumbnailSource* self)
-{
-#line 50 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (self), 0);
-#line 50 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return THUMBNAIL_SOURCE_GET_CLASS (self)->get_preferred_thumbnail_format (self);
-#line 833 "DataSourceTypes.c"
-}
-
-
-static void
-thumbnail_source_real_thumbnail_altered (ThumbnailSource* self)
-{
-}
-
-
-static void
-thumbnail_source_class_init (ThumbnailSourceClass * klass)
-{
-#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- thumbnail_source_parent_class = g_type_class_peek_parent (klass);
-#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((ThumbnailSourceClass *) klass)->notify_thumbnail_altered = (void (*) (ThumbnailSource *)) thumbnail_source_real_notify_thumbnail_altered;
-#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) thumbnail_source_real_get_thumbnail;
-#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) thumbnail_source_real_create_thumbnail;
-#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((ThumbnailSourceClass *) klass)->get_representative_id = (gchar* (*) (ThumbnailSource *)) thumbnail_source_real_get_representative_id;
-#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) thumbnail_source_real_get_preferred_thumbnail_format;
-#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((ThumbnailSourceClass *) klass)->thumbnail_altered = thumbnail_source_real_thumbnail_altered;
-#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- thumbnail_source_signals[THUMBNAIL_SOURCE_THUMBNAIL_ALTERED_SIGNAL] = g_signal_new ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ThumbnailSourceClass, thumbnail_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 862 "DataSourceTypes.c"
-}
-
-
-static void
-thumbnail_source_instance_init (ThumbnailSource * self)
-{
-}
-
-
-GType
-thumbnail_source_get_type (void)
-{
- static volatile gsize thumbnail_source_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnail_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ThumbnailSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailSource), 0, (GInstanceInitFunc) thumbnail_source_instance_init, NULL };
- GType thumbnail_source_type_id;
- thumbnail_source_type_id = g_type_register_static (TYPE_DATA_SOURCE, "ThumbnailSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&thumbnail_source_type_id__volatile, thumbnail_source_type_id);
- }
- return thumbnail_source_type_id__volatile;
-}
-
-
-PhotoSource*
-photo_source_construct (GType object_type,
- gint64 object_id)
-{
- PhotoSource * self = NULL;
-#line 55 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- self = (PhotoSource*) media_source_construct (object_type, object_id);
-#line 54 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return self;
-#line 895 "DataSourceTypes.c"
-}
-
-
-static PhotoMetadata*
-photo_source_real_get_metadata (PhotoSource* self)
-{
-#line 58 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_source_get_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 58 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return NULL;
-#line 906 "DataSourceTypes.c"
-}
-
-
-PhotoMetadata*
-photo_source_get_metadata (PhotoSource* self)
-{
-#line 58 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_PHOTO_SOURCE (self), NULL);
-#line 58 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return PHOTO_SOURCE_GET_CLASS (self)->get_metadata (self);
-#line 917 "DataSourceTypes.c"
-}
-
-
-static GdkPixbuf*
-photo_source_real_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error)
-{
-#line 60 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_source_get_pixbuf'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 60 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return NULL;
-#line 930 "DataSourceTypes.c"
-}
-
-
-GdkPixbuf*
-photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error)
-{
-#line 60 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_PHOTO_SOURCE (self), NULL);
-#line 60 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return PHOTO_SOURCE_GET_CLASS (self)->get_pixbuf (self, scaling, error);
-#line 943 "DataSourceTypes.c"
-}
-
-
-static void
-photo_source_class_init (PhotoSourceClass * klass)
-{
-#line 53 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- photo_source_parent_class = g_type_class_peek_parent (klass);
-#line 53 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((PhotoSourceClass *) klass)->get_metadata = (PhotoMetadata* (*) (PhotoSource *)) photo_source_real_get_metadata;
-#line 53 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((PhotoSourceClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoSource *, Scaling*, GError**)) photo_source_real_get_pixbuf;
-#line 956 "DataSourceTypes.c"
-}
-
-
-static void
-photo_source_instance_init (PhotoSource * self)
-{
-}
-
-
-GType
-photo_source_get_type (void)
-{
- static volatile gsize photo_source_type_id__volatile = 0;
- if (g_once_init_enter (&photo_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoSource), 0, (GInstanceInitFunc) photo_source_instance_init, NULL };
- GType photo_source_type_id;
- photo_source_type_id = g_type_register_static (TYPE_MEDIA_SOURCE, "PhotoSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_source_type_id__volatile, photo_source_type_id);
- }
- return photo_source_type_id__volatile;
-}
-
-
-VideoSource*
-video_source_construct (GType object_type)
-{
- VideoSource * self = NULL;
-#line 63 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- self = (VideoSource*) media_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 63 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return self;
-#line 988 "DataSourceTypes.c"
-}
-
-
-static void
-video_source_class_init (VideoSourceClass * klass)
-{
-#line 63 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- video_source_parent_class = g_type_class_peek_parent (klass);
-#line 997 "DataSourceTypes.c"
-}
-
-
-static void
-video_source_instance_init (VideoSource * self)
-{
-}
-
-
-GType
-video_source_get_type (void)
-{
- static volatile gsize video_source_type_id__volatile = 0;
- if (g_once_init_enter (&video_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoSource), 0, (GInstanceInitFunc) video_source_instance_init, NULL };
- GType video_source_type_id;
- video_source_type_id = g_type_register_static (TYPE_MEDIA_SOURCE, "VideoSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&video_source_type_id__volatile, video_source_type_id);
- }
- return video_source_type_id__volatile;
-}
-
-
-EventSource*
-event_source_construct (GType object_type,
- gint64 object_id)
-{
- EventSource * self = NULL;
-#line 72 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- self = (EventSource*) thumbnail_source_construct (object_type, object_id);
-#line 71 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return self;
-#line 1030 "DataSourceTypes.c"
-}
-
-
-static time_t
-event_source_real_get_start_time (EventSource* self)
-{
- time_t _tmp0_ = 0;
-#line 75 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `event_source_get_start_time'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 75 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return _tmp0_;
-#line 1042 "DataSourceTypes.c"
-}
-
-
-time_t
-event_source_get_start_time (EventSource* self)
-{
-#line 75 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE (self), 0);
-#line 75 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return EVENT_SOURCE_GET_CLASS (self)->get_start_time (self);
-#line 1053 "DataSourceTypes.c"
-}
-
-
-static time_t
-event_source_real_get_end_time (EventSource* self)
-{
- time_t _tmp0_ = 0;
-#line 77 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `event_source_get_end_time'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 77 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return _tmp0_;
-#line 1065 "DataSourceTypes.c"
-}
-
-
-time_t
-event_source_get_end_time (EventSource* self)
-{
-#line 77 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE (self), 0);
-#line 77 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return EVENT_SOURCE_GET_CLASS (self)->get_end_time (self);
-#line 1076 "DataSourceTypes.c"
-}
-
-
-static guint64
-event_source_real_get_total_filesize (EventSource* self)
-{
- guint64 _tmp0_ = 0ULL;
-#line 79 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `event_source_get_total_filesize'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 79 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return _tmp0_;
-#line 1088 "DataSourceTypes.c"
-}
-
-
-guint64
-event_source_get_total_filesize (EventSource* self)
-{
-#line 79 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE (self), 0ULL);
-#line 79 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return EVENT_SOURCE_GET_CLASS (self)->get_total_filesize (self);
-#line 1099 "DataSourceTypes.c"
-}
-
-
-static gint
-event_source_real_get_media_count (EventSource* self)
-{
- gint _tmp0_ = 0;
-#line 81 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `event_source_get_media_count'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 81 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return _tmp0_;
-#line 1111 "DataSourceTypes.c"
-}
-
-
-gint
-event_source_get_media_count (EventSource* self)
-{
-#line 81 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE (self), 0);
-#line 81 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return EVENT_SOURCE_GET_CLASS (self)->get_media_count (self);
-#line 1122 "DataSourceTypes.c"
-}
-
-
-static GeeCollection*
-event_source_real_get_media (EventSource* self)
-{
-#line 83 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `event_source_get_media'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 83 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return NULL;
-#line 1133 "DataSourceTypes.c"
-}
-
-
-GeeCollection*
-event_source_get_media (EventSource* self)
-{
-#line 83 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE (self), NULL);
-#line 83 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return EVENT_SOURCE_GET_CLASS (self)->get_media (self);
-#line 1144 "DataSourceTypes.c"
-}
-
-
-static gchar*
-event_source_real_get_comment (EventSource* self)
-{
-#line 85 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `event_source_get_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 85 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return NULL;
-#line 1155 "DataSourceTypes.c"
-}
-
-
-gchar*
-event_source_get_comment (EventSource* self)
-{
-#line 85 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE (self), NULL);
-#line 85 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return EVENT_SOURCE_GET_CLASS (self)->get_comment (self);
-#line 1166 "DataSourceTypes.c"
-}
-
-
-static gboolean
-event_source_real_set_comment (EventSource* self,
- const gchar* comment)
-{
- gboolean _tmp0_ = FALSE;
-#line 87 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_critical ("Type `%s' does not implement abstract method `event_source_set_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 87 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return _tmp0_;
-#line 1179 "DataSourceTypes.c"
-}
-
-
-gboolean
-event_source_set_comment (EventSource* self,
- const gchar* comment)
-{
-#line 87 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE (self), FALSE);
-#line 87 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return EVENT_SOURCE_GET_CLASS (self)->set_comment (self, comment);
-#line 1191 "DataSourceTypes.c"
-}
-
-
-static void
-event_source_class_init (EventSourceClass * klass)
-{
-#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- event_source_parent_class = g_type_class_peek_parent (klass);
-#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((EventSourceClass *) klass)->get_start_time = (time_t (*) (EventSource *)) event_source_real_get_start_time;
-#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((EventSourceClass *) klass)->get_end_time = (time_t (*) (EventSource *)) event_source_real_get_end_time;
-#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((EventSourceClass *) klass)->get_total_filesize = (guint64 (*) (EventSource *)) event_source_real_get_total_filesize;
-#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((EventSourceClass *) klass)->get_media_count = (gint (*) (EventSource *)) event_source_real_get_media_count;
-#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((EventSourceClass *) klass)->get_media = (GeeCollection* (*) (EventSource *)) event_source_real_get_media;
-#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((EventSourceClass *) klass)->get_comment = (gchar* (*) (EventSource *)) event_source_real_get_comment;
-#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- ((EventSourceClass *) klass)->set_comment = (gboolean (*) (EventSource *, const gchar*)) event_source_real_set_comment;
-#line 1214 "DataSourceTypes.c"
-}
-
-
-static void
-event_source_instance_init (EventSource * self)
-{
-}
-
-
-GType
-event_source_get_type (void)
-{
- static volatile gsize event_source_type_id__volatile = 0;
- if (g_once_init_enter (&event_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventSource), 0, (GInstanceInitFunc) event_source_instance_init, NULL };
- GType event_source_type_id;
- event_source_type_id = g_type_register_static (TYPE_THUMBNAIL_SOURCE, "EventSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&event_source_type_id__volatile, event_source_type_id);
- }
- return event_source_type_id__volatile;
-}
-
-
-gboolean
-container_source_has_links (ContainerSource* self)
-{
-#line 95 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_CONTAINER_SOURCE (self), FALSE);
-#line 95 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return CONTAINER_SOURCE_GET_INTERFACE (self)->has_links (self);
-#line 1245 "DataSourceTypes.c"
-}
-
-
-SourceBacklink*
-container_source_get_backlink (ContainerSource* self)
-{
-#line 97 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_val_if_fail (IS_CONTAINER_SOURCE (self), NULL);
-#line 97 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- return CONTAINER_SOURCE_GET_INTERFACE (self)->get_backlink (self);
-#line 1256 "DataSourceTypes.c"
-}
-
-
-void
-container_source_break_link (ContainerSource* self,
- DataSource* source)
-{
-#line 99 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (self));
-#line 99 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- CONTAINER_SOURCE_GET_INTERFACE (self)->break_link (self, source);
-#line 1268 "DataSourceTypes.c"
-}
-
-
-void
-container_source_break_link_many (ContainerSource* self,
- GeeCollection* sources)
-{
-#line 101 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (self));
-#line 101 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- CONTAINER_SOURCE_GET_INTERFACE (self)->break_link_many (self, sources);
-#line 1280 "DataSourceTypes.c"
-}
-
-
-void
-container_source_establish_link (ContainerSource* self,
- DataSource* source)
-{
-#line 103 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (self));
-#line 103 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- CONTAINER_SOURCE_GET_INTERFACE (self)->establish_link (self, source);
-#line 1292 "DataSourceTypes.c"
-}
-
-
-void
-container_source_establish_link_many (ContainerSource* self,
- GeeCollection* sources)
-{
-#line 105 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- g_return_if_fail (IS_CONTAINER_SOURCE (self));
-#line 105 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- CONTAINER_SOURCE_GET_INTERFACE (self)->establish_link_many (self, sources);
-#line 1304 "DataSourceTypes.c"
-}
-
-
-static void
-container_source_base_init (ContainerSourceIface * iface)
-{
-#line 94 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- static gboolean initialized = FALSE;
-#line 94 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- if (!initialized) {
-#line 94 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala"
- initialized = TRUE;
-#line 1317 "DataSourceTypes.c"
- }
-}
-
-
-GType
-container_source_get_type (void)
-{
- static volatile gsize container_source_type_id__volatile = 0;
- if (g_once_init_enter (&container_source_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ContainerSourceIface), (GBaseInitFunc) container_source_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType container_source_type_id;
- container_source_type_id = g_type_register_static (G_TYPE_INTERFACE, "ContainerSource", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (container_source_type_id, TYPE_DATA_SOURCE);
- g_once_init_leave (&container_source_type_id__volatile, container_source_type_id);
- }
- return container_source_type_id__volatile;
-}
-
-
-
diff --git a/src/core/DataView.c b/src/core/DataView.c
deleted file mode 100644
index 7267434..0000000
--- a/src/core/DataView.c
+++ /dev/null
@@ -1,745 +0,0 @@
-/* DataView.c generated by valac 0.40.4, the Vala compiler
- * generated from DataView.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-enum {
- DATA_VIEW_0_PROPERTY,
- DATA_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* data_view_properties[DATA_VIEW_NUM_PROPERTIES];
-#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_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-enum {
- DATA_VIEW_STATE_CHANGED_SIGNAL,
- DATA_VIEW_VISIBILITY_CHANGED_SIGNAL,
- DATA_VIEW_VIEW_ALTERED_SIGNAL,
- DATA_VIEW_GEOMETRY_ALTERED_SIGNAL,
- DATA_VIEW_UNSUBSCRIBED_SIGNAL,
- DATA_VIEW_NUM_SIGNALS
-};
-static guint data_view_signals[DATA_VIEW_NUM_SIGNALS] = {0};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _DataViewPrivate {
- DataSource* source;
- gboolean selected;
- gboolean visible;
-};
-
-
-static gpointer data_view_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-#define DATA_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_VIEW, DataViewPrivate))
-void data_source_internal_unsubscribe (DataSource* self,
- DataView* view);
-DataView* data_view_new (DataSource* source);
-DataView* data_view_construct (GType object_type,
- DataSource* source);
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-DataObject* data_object_construct (GType object_type,
- gint64 object_id);
-void data_source_internal_subscribe (DataSource* self,
- DataView* view);
-static gchar* data_view_real_get_name (DataObject* base);
-gchar* data_object_get_name (DataObject* self);
-static gchar* data_view_real_to_string (DataObject* base);
-gchar* data_object_to_string (DataObject* self);
-DataSource* data_view_get_source (DataView* self);
-gboolean data_view_is_selected (DataView* self);
-void data_view_internal_set_selected (DataView* self,
- gboolean selected);
-gboolean data_view_internal_toggle (DataView* self);
-gboolean data_view_is_visible (DataView* self);
-void data_view_internal_set_visible (DataView* self,
- gboolean visible);
-void data_view_notify_view_altered (DataView* self);
-static void data_view_real_notify_view_altered (DataView* self);
-GType view_collection_get_type (void) G_GNUC_CONST;
-DataCollection* data_object_get_membership (DataObject* self);
-gboolean data_collection_are_notifications_frozen (DataCollection* self);
-void view_collection_internal_notify_view_altered (ViewCollection* self,
- DataView* view);
-void data_view_notify_geometry_altered (DataView* self);
-static void data_view_real_notify_geometry_altered (DataView* self);
-void view_collection_internal_notify_geometry_altered (ViewCollection* self,
- DataView* view);
-void data_view_notify_unsubscribed (DataView* self,
- DataSource* source);
-static void data_view_real_notify_unsubscribed (DataView* self,
- DataSource* source);
-static void data_view_real_state_changed (DataView* self,
- gboolean selected);
-static void data_view_real_visibility_changed (DataView* self,
- gboolean visible);
-static void data_view_real_view_altered (DataView* self);
-static void data_view_real_geometry_altered (DataView* self);
-static void data_view_real_unsubscribed (DataView* self,
- DataSource* source);
-static void data_view_finalize (GObject * obj);
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 33 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return self ? g_object_ref (self) : NULL;
-#line 221 "DataView.c"
-}
-
-
-DataView*
-data_view_construct (GType object_type,
- DataSource* source)
-{
- DataView * self = NULL;
- DataSource* _tmp0_;
-#line 32 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 32 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self = (DataView*) data_object_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 33 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = _g_object_ref0 (source);
-#line 33 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _g_object_unref0 (self->priv->source);
-#line 33 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self->priv->source = _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/core/DataView.vala"
- data_source_internal_subscribe (source, self);
-#line 32 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return self;
-#line 245 "DataView.c"
-}
-
-
-DataView*
-data_view_new (DataSource* source)
-{
-#line 32 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return data_view_construct (TYPE_DATA_VIEW, source);
-#line 254 "DataView.c"
-}
-
-
-static gchar*
-data_view_real_get_name (DataObject* base)
-{
- DataView * self;
- gchar* result = NULL;
- DataSource* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 47 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATA_VIEW, DataView);
-#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->source;
-#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject));
-#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp2_ = _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp3_ = g_strdup_printf ("View of %s", _tmp2_);
-#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp4_ = _tmp3_;
-#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _g_free0 (_tmp2_);
-#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala"
- result = _tmp4_;
-#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return result;
-#line 286 "DataView.c"
-}
-
-
-static gchar*
-data_view_real_to_string (DataObject* base)
-{
- DataView * self;
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- DataSource* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 51 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATA_VIEW, DataView);
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp1_ = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp2_ = self->priv->source;
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp3_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject));
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp4_ = _tmp3_;
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp5_ = g_strdup_printf ("DataView %s [DataSource %s]", _tmp1_, _tmp4_);
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp6_ = _tmp5_;
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _g_free0 (_tmp4_);
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _g_free0 (_tmp1_);
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- result = _tmp6_;
-#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return result;
-#line 326 "DataView.c"
-}
-
-
-DataSource*
-data_view_get_source (DataView* self)
-{
- DataSource* result = NULL;
- DataSource* _tmp0_;
- DataSource* _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_val_if_fail (IS_DATA_VIEW (self), NULL);
-#line 56 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->source;
-#line 56 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 56 "/home/jens/Source/shotwell/src/core/DataView.vala"
- result = _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return result;
-#line 346 "DataView.c"
-}
-
-
-gboolean
-data_view_is_selected (DataView* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 59 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_val_if_fail (IS_DATA_VIEW (self), FALSE);
-#line 60 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->selected;
-#line 60 "/home/jens/Source/shotwell/src/core/DataView.vala"
- result = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return result;
-#line 363 "DataView.c"
-}
-
-
-void
-data_view_internal_set_selected (DataView* self,
- gboolean selected)
-{
- gboolean _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_if_fail (IS_DATA_VIEW (self));
-#line 65 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->selected;
-#line 65 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (_tmp0_ == selected) {
-#line 66 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return;
-#line 380 "DataView.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self->priv->selected = selected;
-#line 69 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_signal_emit (self, data_view_signals[DATA_VIEW_STATE_CHANGED_SIGNAL], 0, selected);
-#line 386 "DataView.c"
-}
-
-
-gboolean
-data_view_internal_toggle (DataView* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
-#line 73 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_val_if_fail (IS_DATA_VIEW (self), FALSE);
-#line 74 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->selected;
-#line 74 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self->priv->selected = !_tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp1_ = self->priv->selected;
-#line 75 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_signal_emit (self, data_view_signals[DATA_VIEW_STATE_CHANGED_SIGNAL], 0, _tmp1_);
-#line 77 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp2_ = self->priv->selected;
-#line 77 "/home/jens/Source/shotwell/src/core/DataView.vala"
- result = _tmp2_;
-#line 77 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return result;
-#line 413 "DataView.c"
-}
-
-
-gboolean
-data_view_is_visible (DataView* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_val_if_fail (IS_DATA_VIEW (self), FALSE);
-#line 81 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->visible;
-#line 81 "/home/jens/Source/shotwell/src/core/DataView.vala"
- result = _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return result;
-#line 430 "DataView.c"
-}
-
-
-void
-data_view_internal_set_visible (DataView* self,
- gboolean visible)
-{
- gboolean _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_if_fail (IS_DATA_VIEW (self));
-#line 86 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->visible;
-#line 86 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (_tmp0_ == visible) {
-#line 87 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return;
-#line 447 "DataView.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self->priv->visible = visible;
-#line 90 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_signal_emit (self, data_view_signals[DATA_VIEW_VISIBILITY_CHANGED_SIGNAL], 0, visible);
-#line 453 "DataView.c"
-}
-
-
-static void
-data_view_real_notify_view_altered (DataView* self)
-{
- gboolean _tmp0_;
- ViewCollection* vc = NULL;
- DataCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
-#line 95 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->visible;
-#line 95 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (!_tmp0_) {
-#line 96 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return;
-#line 471 "DataView.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp1_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIEW_COLLECTION) ? ((ViewCollection*) _tmp1_) : NULL;
-#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (_tmp2_ == NULL) {
-#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _data_collection_unref0 (_tmp1_);
-#line 481 "DataView.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala"
- vc = _tmp2_;
-#line 99 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp3_ = vc;
-#line 99 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (_tmp3_ != NULL) {
-#line 489 "DataView.c"
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 100 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp4_ = vc;
-#line 100 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (!data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection))) {
-#line 101 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_signal_emit (self, data_view_signals[DATA_VIEW_VIEW_ALTERED_SIGNAL], 0);
-#line 498 "DataView.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp5_ = vc;
-#line 104 "/home/jens/Source/shotwell/src/core/DataView.vala"
- view_collection_internal_notify_view_altered (_tmp5_, self);
-#line 504 "DataView.c"
- } else {
-#line 106 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_signal_emit (self, data_view_signals[DATA_VIEW_VIEW_ALTERED_SIGNAL], 0);
-#line 508 "DataView.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _data_collection_unref0 (vc);
-#line 512 "DataView.c"
-}
-
-
-void
-data_view_notify_view_altered (DataView* self)
-{
-#line 93 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_if_fail (IS_DATA_VIEW (self));
-#line 93 "/home/jens/Source/shotwell/src/core/DataView.vala"
- DATA_VIEW_GET_CLASS (self)->notify_view_altered (self);
-#line 523 "DataView.c"
-}
-
-
-static void
-data_view_real_notify_geometry_altered (DataView* self)
-{
- gboolean _tmp0_;
- ViewCollection* vc = NULL;
- DataCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
-#line 112 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->visible;
-#line 112 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (!_tmp0_) {
-#line 113 "/home/jens/Source/shotwell/src/core/DataView.vala"
- return;
-#line 541 "DataView.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp1_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIEW_COLLECTION) ? ((ViewCollection*) _tmp1_) : NULL;
-#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (_tmp2_ == NULL) {
-#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _data_collection_unref0 (_tmp1_);
-#line 551 "DataView.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala"
- vc = _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp3_ = vc;
-#line 116 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (_tmp3_ != NULL) {
-#line 559 "DataView.c"
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 117 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp4_ = vc;
-#line 117 "/home/jens/Source/shotwell/src/core/DataView.vala"
- if (!data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection))) {
-#line 118 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_signal_emit (self, data_view_signals[DATA_VIEW_GEOMETRY_ALTERED_SIGNAL], 0);
-#line 568 "DataView.c"
- }
-#line 121 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp5_ = vc;
-#line 121 "/home/jens/Source/shotwell/src/core/DataView.vala"
- view_collection_internal_notify_geometry_altered (_tmp5_, self);
-#line 574 "DataView.c"
- } else {
-#line 123 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_signal_emit (self, data_view_signals[DATA_VIEW_GEOMETRY_ALTERED_SIGNAL], 0);
-#line 578 "DataView.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _data_collection_unref0 (vc);
-#line 582 "DataView.c"
-}
-
-
-void
-data_view_notify_geometry_altered (DataView* self)
-{
-#line 110 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_if_fail (IS_DATA_VIEW (self));
-#line 110 "/home/jens/Source/shotwell/src/core/DataView.vala"
- DATA_VIEW_GET_CLASS (self)->notify_geometry_altered (self);
-#line 593 "DataView.c"
-}
-
-
-static void
-data_view_real_notify_unsubscribed (DataView* self,
- DataSource* source)
-{
-#line 128 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 129 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_signal_emit (self, data_view_signals[DATA_VIEW_UNSUBSCRIBED_SIGNAL], 0, source);
-#line 605 "DataView.c"
-}
-
-
-void
-data_view_notify_unsubscribed (DataView* self,
- DataSource* source)
-{
-#line 128 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_if_fail (IS_DATA_VIEW (self));
-#line 128 "/home/jens/Source/shotwell/src/core/DataView.vala"
- DATA_VIEW_GET_CLASS (self)->notify_unsubscribed (self, source);
-#line 617 "DataView.c"
-}
-
-
-static void
-data_view_real_state_changed (DataView* self,
- gboolean selected)
-{
-}
-
-
-static void
-data_view_real_visibility_changed (DataView* self,
- gboolean visible)
-{
-}
-
-
-static void
-data_view_real_view_altered (DataView* self)
-{
-}
-
-
-static void
-data_view_real_geometry_altered (DataView* self)
-{
-}
-
-
-static void
-data_view_real_unsubscribed (DataView* self,
- DataSource* source)
-{
-#line 29 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 653 "DataView.c"
-}
-
-
-static void
-data_view_class_init (DataViewClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- data_view_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- g_type_class_add_private (klass, sizeof (DataViewPrivate));
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) data_view_real_get_name;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) data_view_real_to_string;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataViewClass *) klass)->notify_view_altered = (void (*) (DataView *)) data_view_real_notify_view_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataViewClass *) klass)->notify_geometry_altered = (void (*) (DataView *)) data_view_real_notify_geometry_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataViewClass *) klass)->notify_unsubscribed = (void (*) (DataView *, DataSource*)) data_view_real_notify_unsubscribed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataViewClass *) klass)->state_changed = data_view_real_state_changed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataViewClass *) klass)->visibility_changed = data_view_real_visibility_changed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataViewClass *) klass)->view_altered = data_view_real_view_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataViewClass *) klass)->geometry_altered = data_view_real_geometry_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- ((DataViewClass *) klass)->unsubscribed = data_view_real_unsubscribed;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- G_OBJECT_CLASS (klass)->finalize = data_view_finalize;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- data_view_signals[DATA_VIEW_STATE_CHANGED_SIGNAL] = g_signal_new ("state-changed", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, state_changed), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- data_view_signals[DATA_VIEW_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("visibility-changed", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, visibility_changed), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- data_view_signals[DATA_VIEW_VIEW_ALTERED_SIGNAL] = g_signal_new ("view-altered", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, view_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- data_view_signals[DATA_VIEW_GEOMETRY_ALTERED_SIGNAL] = g_signal_new ("geometry-altered", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, geometry_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- data_view_signals[DATA_VIEW_UNSUBSCRIBED_SIGNAL] = g_signal_new ("unsubscribed", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, unsubscribed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_SOURCE);
-#line 696 "DataView.c"
-}
-
-
-static void
-data_view_instance_init (DataView * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self->priv = DATA_VIEW_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self->priv->selected = FALSE;
-#line 10 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self->priv->visible = TRUE;
-#line 709 "DataView.c"
-}
-
-
-static void
-data_view_finalize (GObject * obj)
-{
- DataView * self;
- DataSource* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_VIEW, DataView);
-#line 44 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _tmp0_ = self->priv->source;
-#line 44 "/home/jens/Source/shotwell/src/core/DataView.vala"
- data_source_internal_unsubscribe (_tmp0_, self);
-#line 8 "/home/jens/Source/shotwell/src/core/DataView.vala"
- _g_object_unref0 (self->priv->source);
-#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala"
- G_OBJECT_CLASS (data_view_parent_class)->finalize (obj);
-#line 728 "DataView.c"
-}
-
-
-GType
-data_view_get_type (void)
-{
- static volatile gsize data_view_type_id__volatile = 0;
- if (g_once_init_enter (&data_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataView), 0, (GInstanceInitFunc) data_view_instance_init, NULL };
- GType data_view_type_id;
- data_view_type_id = g_type_register_static (TYPE_DATA_OBJECT, "DataView", &g_define_type_info, 0);
- g_once_init_leave (&data_view_type_id__volatile, data_view_type_id);
- }
- return data_view_type_id__volatile;
-}
-
-
-
diff --git a/src/core/DataViewTypes.c b/src/core/DataViewTypes.c
deleted file mode 100644
index b70a8ff..0000000
--- a/src/core/DataViewTypes.c
+++ /dev/null
@@ -1,621 +0,0 @@
-/* DataViewTypes.c generated by valac 0.40.4, the Vala compiler
- * generated from DataViewTypes.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-enum {
- THUMBNAIL_VIEW_0_PROPERTY,
- THUMBNAIL_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* thumbnail_view_properties[THUMBNAIL_VIEW_NUM_PROPERTIES];
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-enum {
- THUMBNAIL_VIEW_THUMBNAIL_ALTERED_SIGNAL,
- THUMBNAIL_VIEW_NUM_SIGNALS
-};
-static guint thumbnail_view_signals[THUMBNAIL_VIEW_NUM_SIGNALS] = {0};
-
-#define TYPE_PHOTO_VIEW (photo_view_get_type ())
-#define PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_VIEW, PhotoView))
-#define PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_VIEW, PhotoViewClass))
-#define IS_PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_VIEW))
-#define IS_PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_VIEW))
-#define PHOTO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_VIEW, PhotoViewClass))
-
-typedef struct _PhotoView PhotoView;
-typedef struct _PhotoViewClass PhotoViewClass;
-typedef struct _PhotoViewPrivate PhotoViewPrivate;
-enum {
- PHOTO_VIEW_0_PROPERTY,
- PHOTO_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* photo_view_properties[PHOTO_VIEW_NUM_PROPERTIES];
-
-#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_VIDEO_VIEW (video_view_get_type ())
-#define VIDEO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_VIEW, VideoView))
-#define VIDEO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_VIEW, VideoViewClass))
-#define IS_VIDEO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_VIEW))
-#define IS_VIDEO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_VIEW))
-#define VIDEO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_VIEW, VideoViewClass))
-
-typedef struct _VideoView VideoView;
-typedef struct _VideoViewClass VideoViewClass;
-typedef struct _VideoViewPrivate VideoViewPrivate;
-enum {
- VIDEO_VIEW_0_PROPERTY,
- VIDEO_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* video_view_properties[VIDEO_VIEW_NUM_PROPERTIES];
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_EVENT_VIEW (event_view_get_type ())
-#define EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_VIEW, EventView))
-#define EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_VIEW, EventViewClass))
-#define IS_EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_VIEW))
-#define IS_EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_VIEW))
-#define EVENT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_VIEW, EventViewClass))
-
-typedef struct _EventView EventView;
-typedef struct _EventViewClass EventViewClass;
-typedef struct _EventViewPrivate EventViewPrivate;
-enum {
- EVENT_VIEW_0_PROPERTY,
- EVENT_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* event_view_properties[EVENT_VIEW_NUM_PROPERTIES];
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _PhotoView {
- ThumbnailView parent_instance;
- PhotoViewPrivate * priv;
-};
-
-struct _PhotoViewClass {
- ThumbnailViewClass parent_class;
-};
-
-struct _VideoView {
- ThumbnailView parent_instance;
- VideoViewPrivate * priv;
-};
-
-struct _VideoViewClass {
- ThumbnailViewClass parent_class;
-};
-
-struct _EventView {
- ThumbnailView parent_instance;
- EventViewPrivate * priv;
-};
-
-struct _EventViewClass {
- ThumbnailViewClass parent_class;
-};
-
-
-static gpointer thumbnail_view_parent_class = NULL;
-static gpointer photo_view_parent_class = NULL;
-static gpointer video_view_parent_class = NULL;
-static gpointer event_view_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-ThumbnailView* thumbnail_view_new (ThumbnailSource* source);
-ThumbnailView* thumbnail_view_construct (GType object_type,
- ThumbnailSource* source);
-DataView* data_view_new (DataSource* source);
-DataView* data_view_construct (GType object_type,
- DataSource* source);
-void thumbnail_view_notify_thumbnail_altered (ThumbnailView* self);
-static void thumbnail_view_real_notify_thumbnail_altered (ThumbnailView* self);
-static void thumbnail_view_real_thumbnail_altered (ThumbnailView* self);
-GType photo_view_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType photo_source_get_type (void) G_GNUC_CONST;
-PhotoView* photo_view_new (PhotoSource* source);
-PhotoView* photo_view_construct (GType object_type,
- PhotoSource* source);
-PhotoSource* photo_view_get_photo_source (PhotoView* self);
-DataSource* data_view_get_source (DataView* self);
-GType video_view_get_type (void) G_GNUC_CONST;
-GType video_source_get_type (void) G_GNUC_CONST;
-VideoView* video_view_new (VideoSource* source);
-VideoView* video_view_construct (GType object_type,
- VideoSource* source);
-VideoSource* video_view_get_video_source (VideoView* self);
-GType event_view_get_type (void) G_GNUC_CONST;
-GType event_source_get_type (void) G_GNUC_CONST;
-EventView* event_view_new (EventSource* source);
-EventView* event_view_construct (GType object_type,
- EventSource* source);
-EventSource* event_view_get_event_source (EventView* self);
-
-
-ThumbnailView*
-thumbnail_view_construct (GType object_type,
- ThumbnailSource* source)
-{
- ThumbnailView * self = NULL;
-#line 11 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL);
-#line 12 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- self = (ThumbnailView*) data_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 11 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return self;
-#line 338 "DataViewTypes.c"
-}
-
-
-ThumbnailView*
-thumbnail_view_new (ThumbnailSource* source)
-{
-#line 11 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return thumbnail_view_construct (TYPE_THUMBNAIL_VIEW, source);
-#line 347 "DataViewTypes.c"
-}
-
-
-static void
-thumbnail_view_real_notify_thumbnail_altered (ThumbnailView* self)
-{
-#line 17 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_signal_emit (self, thumbnail_view_signals[THUMBNAIL_VIEW_THUMBNAIL_ALTERED_SIGNAL], 0);
-#line 356 "DataViewTypes.c"
-}
-
-
-void
-thumbnail_view_notify_thumbnail_altered (ThumbnailView* self)
-{
-#line 15 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_return_if_fail (IS_THUMBNAIL_VIEW (self));
-#line 15 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- THUMBNAIL_VIEW_GET_CLASS (self)->notify_thumbnail_altered (self);
-#line 367 "DataViewTypes.c"
-}
-
-
-static void
-thumbnail_view_real_thumbnail_altered (ThumbnailView* self)
-{
-}
-
-
-static void
-thumbnail_view_class_init (ThumbnailViewClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- thumbnail_view_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- ((ThumbnailViewClass *) klass)->notify_thumbnail_altered = (void (*) (ThumbnailView *)) thumbnail_view_real_notify_thumbnail_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- ((ThumbnailViewClass *) klass)->thumbnail_altered = thumbnail_view_real_thumbnail_altered;
-#line 7 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- thumbnail_view_signals[THUMBNAIL_VIEW_THUMBNAIL_ALTERED_SIGNAL] = g_signal_new ("thumbnail-altered", TYPE_THUMBNAIL_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ThumbnailViewClass, thumbnail_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 388 "DataViewTypes.c"
-}
-
-
-static void
-thumbnail_view_instance_init (ThumbnailView * self)
-{
-}
-
-
-GType
-thumbnail_view_get_type (void)
-{
- static volatile gsize thumbnail_view_type_id__volatile = 0;
- if (g_once_init_enter (&thumbnail_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ThumbnailViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailView), 0, (GInstanceInitFunc) thumbnail_view_instance_init, NULL };
- GType thumbnail_view_type_id;
- thumbnail_view_type_id = g_type_register_static (TYPE_DATA_VIEW, "ThumbnailView", &g_define_type_info, 0);
- g_once_init_leave (&thumbnail_view_type_id__volatile, thumbnail_view_type_id);
- }
- return thumbnail_view_type_id__volatile;
-}
-
-
-PhotoView*
-photo_view_construct (GType object_type,
- PhotoSource* source)
-{
- PhotoView * self = NULL;
-#line 22 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_return_val_if_fail (IS_PHOTO_SOURCE (source), NULL);
-#line 23 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- self = (PhotoView*) thumbnail_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 22 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return self;
-#line 423 "DataViewTypes.c"
-}
-
-
-PhotoView*
-photo_view_new (PhotoSource* source)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return photo_view_construct (TYPE_PHOTO_VIEW, source);
-#line 432 "DataViewTypes.c"
-}
-
-
-PhotoSource*
-photo_view_get_photo_source (PhotoView* self)
-{
- PhotoSource* result = NULL;
- DataSource* _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_return_val_if_fail (IS_PHOTO_VIEW (self), NULL);
-#line 27 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 27 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_SOURCE, PhotoSource);
-#line 27 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return result;
-#line 449 "DataViewTypes.c"
-}
-
-
-static void
-photo_view_class_init (PhotoViewClass * klass)
-{
-#line 21 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- photo_view_parent_class = g_type_class_peek_parent (klass);
-#line 458 "DataViewTypes.c"
-}
-
-
-static void
-photo_view_instance_init (PhotoView * self)
-{
-}
-
-
-GType
-photo_view_get_type (void)
-{
- static volatile gsize photo_view_type_id__volatile = 0;
- if (g_once_init_enter (&photo_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoView), 0, (GInstanceInitFunc) photo_view_instance_init, NULL };
- GType photo_view_type_id;
- photo_view_type_id = g_type_register_static (TYPE_THUMBNAIL_VIEW, "PhotoView", &g_define_type_info, 0);
- g_once_init_leave (&photo_view_type_id__volatile, photo_view_type_id);
- }
- return photo_view_type_id__volatile;
-}
-
-
-VideoView*
-video_view_construct (GType object_type,
- VideoSource* source)
-{
- VideoView * self = NULL;
-#line 32 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_return_val_if_fail (IS_VIDEO_SOURCE (source), NULL);
-#line 33 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- self = (VideoView*) thumbnail_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 32 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return self;
-#line 493 "DataViewTypes.c"
-}
-
-
-VideoView*
-video_view_new (VideoSource* source)
-{
-#line 32 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return video_view_construct (TYPE_VIDEO_VIEW, source);
-#line 502 "DataViewTypes.c"
-}
-
-
-VideoSource*
-video_view_get_video_source (VideoView* self)
-{
- VideoSource* result = NULL;
- DataSource* _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_return_val_if_fail (IS_VIDEO_VIEW (self), NULL);
-#line 37 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 37 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIDEO_SOURCE, VideoSource);
-#line 37 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return result;
-#line 519 "DataViewTypes.c"
-}
-
-
-static void
-video_view_class_init (VideoViewClass * klass)
-{
-#line 31 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- video_view_parent_class = g_type_class_peek_parent (klass);
-#line 528 "DataViewTypes.c"
-}
-
-
-static void
-video_view_instance_init (VideoView * self)
-{
-}
-
-
-GType
-video_view_get_type (void)
-{
- static volatile gsize video_view_type_id__volatile = 0;
- if (g_once_init_enter (&video_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoView), 0, (GInstanceInitFunc) video_view_instance_init, NULL };
- GType video_view_type_id;
- video_view_type_id = g_type_register_static (TYPE_THUMBNAIL_VIEW, "VideoView", &g_define_type_info, 0);
- g_once_init_leave (&video_view_type_id__volatile, video_view_type_id);
- }
- return video_view_type_id__volatile;
-}
-
-
-EventView*
-event_view_construct (GType object_type,
- EventSource* source)
-{
- EventView * self = NULL;
-#line 42 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_return_val_if_fail (IS_EVENT_SOURCE (source), NULL);
-#line 43 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- self = (EventView*) thumbnail_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 42 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return self;
-#line 563 "DataViewTypes.c"
-}
-
-
-EventView*
-event_view_new (EventSource* source)
-{
-#line 42 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return event_view_construct (TYPE_EVENT_VIEW, source);
-#line 572 "DataViewTypes.c"
-}
-
-
-EventSource*
-event_view_get_event_source (EventView* self)
-{
- EventSource* result = NULL;
- DataSource* _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- g_return_val_if_fail (IS_EVENT_VIEW (self), NULL);
-#line 47 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView));
-#line 47 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT_SOURCE, EventSource);
-#line 47 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- return result;
-#line 589 "DataViewTypes.c"
-}
-
-
-static void
-event_view_class_init (EventViewClass * klass)
-{
-#line 41 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala"
- event_view_parent_class = g_type_class_peek_parent (klass);
-#line 598 "DataViewTypes.c"
-}
-
-
-static void
-event_view_instance_init (EventView * self)
-{
-}
-
-
-GType
-event_view_get_type (void)
-{
- static volatile gsize event_view_type_id__volatile = 0;
- if (g_once_init_enter (&event_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventView), 0, (GInstanceInitFunc) event_view_instance_init, NULL };
- GType event_view_type_id;
- event_view_type_id = g_type_register_static (TYPE_THUMBNAIL_VIEW, "EventView", &g_define_type_info, 0);
- g_once_init_leave (&event_view_type_id__volatile, event_view_type_id);
- }
- return event_view_type_id__volatile;
-}
-
-
-
diff --git a/src/core/DatabaseSourceCollection.c b/src/core/DatabaseSourceCollection.c
deleted file mode 100644
index b61808a..0000000
--- a/src/core/DatabaseSourceCollection.c
+++ /dev/null
@@ -1,945 +0,0 @@
-/* DatabaseSourceCollection.c generated by valac 0.40.4, the Vala compiler
- * generated from DatabaseSourceCollection.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate;
-
-#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ())
-#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank))
-#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK))
-#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
-
-typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank;
-typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass;
-typedef struct _DatabaseSourceHoldingTankPrivate DatabaseSourceHoldingTankPrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _DatabaseSourceCollectionPrivate {
- GetSourceDatabaseKey source_key_func;
- gpointer source_key_func_target;
- GeeHashMap* map;
-};
-
-struct _SourceHoldingTank {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceHoldingTankPrivate * priv;
-};
-
-struct _SourceHoldingTankClass {
- GTypeClass parent_class;
- void (*finalize) (SourceHoldingTank *self);
- void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
- void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
-};
-
-struct _DatabaseSourceHoldingTank {
- SourceHoldingTank parent_instance;
- DatabaseSourceHoldingTankPrivate * priv;
-};
-
-struct _DatabaseSourceHoldingTankClass {
- SourceHoldingTankClass parent_class;
-};
-
-struct _DatabaseSourceHoldingTankPrivate {
- GetSourceDatabaseKey get_key;
- gpointer get_key_target;
- GeeHashMap* map;
-};
-
-typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data);
-
-static gpointer database_source_collection_parent_class = NULL;
-static gpointer database_source_holding_tank_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-#define DATABASE_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionPrivate))
-guint int64_hash (gint64* n);
-static guint _int64_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean int64_equal (gint64* a,
- gint64* b);
-static gboolean _int64_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-static gint64* _int64_dup (gint64* self);
-DatabaseSourceCollection* database_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-SourceCollection* source_collection_construct (GType object_type,
- const gchar* name);
-static void database_source_collection_real_notify_items_added (DataCollection* base,
- GeeIterable* added);
-void data_collection_notify_items_added (DataCollection* self,
- GeeIterable* added);
-static void database_source_collection_real_notify_items_removed (DataCollection* base,
- GeeIterable* removed);
-void data_collection_notify_items_removed (DataCollection* self,
- GeeIterable* removed);
-DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self,
- gint64 key);
-static void database_source_collection_finalize (DataCollection * obj);
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType database_source_holding_tank_get_type (void) G_GNUC_CONST;
-#define DATABASE_SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankPrivate))
-DatabaseSourceHoldingTank* database_source_holding_tank_new (SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-DatabaseSourceHoldingTank* database_source_holding_tank_construct (GType object_type,
- SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target);
-SourceHoldingTank* source_holding_tank_new (SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target);
-SourceHoldingTank* source_holding_tank_construct (GType object_type,
- SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target);
-DataSource* database_source_holding_tank_get_by_id (DatabaseSourceHoldingTank* self,
- gint64 id);
-static void database_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base,
- GeeCollection* added,
- GeeCollection* removed);
-void source_holding_tank_notify_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void database_source_holding_tank_finalize (SourceHoldingTank * obj);
-
-
-static guint
-_int64_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = int64_hash ((gint64*) v);
-#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return result;
-#line 381 "DatabaseSourceCollection.c"
-}
-
-
-static gboolean
-_int64_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = int64_equal ((gint64*) a, (gint64*) b);
-#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return result;
-#line 394 "DatabaseSourceCollection.c"
-}
-
-
-static gint64*
-_int64_dup (gint64* self)
-{
- gint64* dup;
-#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- dup = g_new0 (gint64, 1);
-#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- memcpy (dup, self, sizeof (gint64));
-#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return dup;
-#line 408 "DatabaseSourceCollection.c"
-}
-
-
-DatabaseSourceCollection*
-database_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target)
-{
- DatabaseSourceCollection* self = NULL;
-#line 20 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 21 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self = (DatabaseSourceCollection*) source_collection_construct (object_type, name);
-#line 23 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self->priv->source_key_func = source_key_func;
-#line 23 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self->priv->source_key_func_target = source_key_func_target;
-#line 20 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return self;
-#line 429 "DatabaseSourceCollection.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 28 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return self ? g_object_ref (self) : NULL;
-#line 438 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_collection_real_notify_items_added (DataCollection* base,
- GeeIterable* added)
-{
- DatabaseSourceCollection * self;
-#line 26 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection);
-#line 26 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 451 "DatabaseSourceCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _object_it = _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- while (TRUE) {
-#line 461 "DatabaseSourceCollection.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* source = NULL;
- DataObject* _tmp4_;
- DataSource* _tmp5_;
- gint64 key = 0LL;
- GetSourceDatabaseKey _tmp6_;
- void* _tmp6__target;
- DataSource* _tmp7_;
- GeeHashMap* _tmp8_;
- gint64 _tmp9_;
- GeeHashMap* _tmp10_;
- gint64 _tmp11_;
- DataSource* _tmp12_;
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp1_ = _object_it;
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- break;
-#line 484 "DatabaseSourceCollection.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp2_ = _object_it;
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- object = (DataObject*) _tmp3_;
-#line 28 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp4_ = object;
-#line 28 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource));
-#line 28 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- source = _tmp5_;
-#line 29 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp6_ = self->priv->source_key_func;
-#line 29 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp6__target = self->priv->source_key_func_target;
-#line 29 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp7_ = source;
-#line 29 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- key = _tmp6_ (_tmp7_, _tmp6__target);
-#line 31 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp8_ = self->priv->map;
-#line 31 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp9_ = key;
-#line 31 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp9_), "!map.has_key(key)");
-#line 33 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp10_ = self->priv->map;
-#line 33 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp11_ = key;
-#line 33 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp12_ = source;
-#line 33 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp11_, _tmp12_);
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (source);
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (object);
-#line 524 "DatabaseSourceCollection.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (_object_it);
-#line 528 "DatabaseSourceCollection.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- DATA_COLLECTION_CLASS (database_source_collection_parent_class)->notify_items_added (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), TYPE_DATA_COLLECTION, DataCollection), added);
-#line 532 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_collection_real_notify_items_removed (DataCollection* base,
- GeeIterable* removed)
-{
- DatabaseSourceCollection * self;
-#line 39 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection);
-#line 39 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 545 "DatabaseSourceCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp0_ = gee_iterable_iterator (removed);
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _object_it = _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- while (TRUE) {
-#line 555 "DatabaseSourceCollection.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- gint64 key = 0LL;
- GetSourceDatabaseKey _tmp4_;
- void* _tmp4__target;
- DataObject* _tmp5_;
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp6_;
- gint64 _tmp7_;
- gboolean _tmp8_;
- gboolean _tmp9_;
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp1_ = _object_it;
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- break;
-#line 575 "DatabaseSourceCollection.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp2_ = _object_it;
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- object = (DataObject*) _tmp3_;
-#line 41 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp4_ = self->priv->source_key_func;
-#line 41 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp4__target = self->priv->source_key_func_target;
-#line 41 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp5_ = object;
-#line 41 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- key = _tmp4_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_SOURCE, DataSource), _tmp4__target);
-#line 43 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp6_ = self->priv->map;
-#line 43 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp7_ = key;
-#line 43 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp8_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp7_, NULL);
-#line 43 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- is_removed = _tmp8_;
-#line 44 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp9_ = is_removed;
-#line 44 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _vala_assert (_tmp9_, "is_removed");
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (object);
-#line 605 "DatabaseSourceCollection.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (_object_it);
-#line 609 "DatabaseSourceCollection.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- DATA_COLLECTION_CLASS (database_source_collection_parent_class)->notify_items_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), TYPE_DATA_COLLECTION, DataCollection), removed);
-#line 613 "DatabaseSourceCollection.c"
-}
-
-
-DataSource*
-database_source_collection_fetch_by_key (DatabaseSourceCollection* self,
- gint64 key)
-{
- DataSource* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 50 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_return_val_if_fail (IS_DATABASE_SOURCE_COLLECTION (self), NULL);
-#line 51 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp0_ = self->priv->map;
-#line 51 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &key);
-#line 51 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- result = (DataSource*) _tmp1_;
-#line 51 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return result;
-#line 634 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_collection_class_init (DatabaseSourceCollectionClass * klass)
-{
-#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- database_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- ((DataCollectionClass *) klass)->finalize = database_source_collection_finalize;
-#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_type_class_add_private (klass, sizeof (DatabaseSourceCollectionPrivate));
-#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) database_source_collection_real_notify_items_added;
-#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) database_source_collection_real_notify_items_removed;
-#line 651 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_collection_instance_init (DatabaseSourceCollection * self)
-{
- GeeHashMap* _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self->priv = DATABASE_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _int64_hash_gee_hash_data_func, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self->priv->map = _tmp0_;
-#line 665 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_collection_finalize (DataCollection * obj)
-{
- DatabaseSourceCollection * self;
-#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection);
-#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (self->priv->map);
-#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- DATA_COLLECTION_CLASS (database_source_collection_parent_class)->finalize (obj);
-#line 679 "DatabaseSourceCollection.c"
-}
-
-
-GType
-database_source_collection_get_type (void)
-{
- static volatile gsize database_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&database_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DatabaseSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) database_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DatabaseSourceCollection), 0, (GInstanceInitFunc) database_source_collection_instance_init, NULL };
- GType database_source_collection_type_id;
- database_source_collection_type_id = g_type_register_static (TYPE_SOURCE_COLLECTION, "DatabaseSourceCollection", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&database_source_collection_type_id__volatile, database_source_collection_type_id);
- }
- return database_source_collection_type_id__volatile;
-}
-
-
-DatabaseSourceHoldingTank*
-database_source_holding_tank_construct (GType object_type,
- SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target)
-{
- DatabaseSourceHoldingTank* self = NULL;
-#line 60 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL);
-#line 62 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self = (DatabaseSourceHoldingTank*) source_holding_tank_construct (object_type, sources, check_to_keep, check_to_keep_target);
-#line 64 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self->priv->get_key = get_key;
-#line 64 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self->priv->get_key_target = get_key_target;
-#line 60 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return self;
-#line 716 "DatabaseSourceCollection.c"
-}
-
-
-DatabaseSourceHoldingTank*
-database_source_holding_tank_new (SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target,
- GetSourceDatabaseKey get_key,
- void* get_key_target)
-{
-#line 60 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return database_source_holding_tank_construct (TYPE_DATABASE_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target, get_key, get_key_target);
-#line 729 "DatabaseSourceCollection.c"
-}
-
-
-DataSource*
-database_source_holding_tank_get_by_id (DatabaseSourceHoldingTank* self,
- gint64 id)
-{
- DataSource* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 67 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_return_val_if_fail (IS_DATABASE_SOURCE_HOLDING_TANK (self), NULL);
-#line 68 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp0_ = self->priv->map;
-#line 68 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &id);
-#line 68 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- result = (DataSource*) _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- return result;
-#line 750 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base,
- GeeCollection* added,
- GeeCollection* removed)
-{
- DatabaseSourceHoldingTank * self;
-#line 71 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank);
-#line 71 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 71 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 73 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- if (added != NULL) {
-#line 768 "DatabaseSourceCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable));
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _source_it = _tmp0_;
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- while (TRUE) {
-#line 778 "DatabaseSourceCollection.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- GeeHashMap* _tmp4_;
- GetSourceDatabaseKey _tmp5_;
- void* _tmp5__target;
- DataSource* _tmp6_;
- gint64 _tmp7_;
- DataSource* _tmp8_;
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp1_ = _source_it;
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- break;
-#line 795 "DatabaseSourceCollection.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp2_ = _source_it;
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- source = (DataSource*) _tmp3_;
-#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp4_ = self->priv->map;
-#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp5_ = self->priv->get_key;
-#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp5__target = self->priv->get_key_target;
-#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp6_ = source;
-#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp7_ = _tmp5_ (_tmp6_, _tmp5__target);
-#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp8_ = source;
-#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp7_, _tmp8_);
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (source);
-#line 819 "DatabaseSourceCollection.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (_source_it);
-#line 823 "DatabaseSourceCollection.c"
- }
- }
-#line 78 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- if (removed != NULL) {
-#line 828 "DatabaseSourceCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp9_;
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _source_it = _tmp9_;
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- while (TRUE) {
-#line 838 "DatabaseSourceCollection.c"
- GeeIterator* _tmp10_;
- DataSource* source = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- GeeHashMap* _tmp13_;
- GetSourceDatabaseKey _tmp14_;
- void* _tmp14__target;
- DataSource* _tmp15_;
- gint64 _tmp16_;
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp10_ = _source_it;
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- break;
-#line 854 "DatabaseSourceCollection.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp11_ = _source_it;
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- source = (DataSource*) _tmp12_;
-#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp13_ = self->priv->map;
-#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp14_ = self->priv->get_key;
-#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp14__target = self->priv->get_key_target;
-#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp15_ = source;
-#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp16_ = _tmp14_ (_tmp15_, _tmp14__target);
-#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp16_, NULL);
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (source);
-#line 876 "DatabaseSourceCollection.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (_source_it);
-#line 880 "DatabaseSourceCollection.c"
- }
- }
-#line 83 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- SOURCE_HOLDING_TANK_CLASS (database_source_holding_tank_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), added, removed);
-#line 885 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_holding_tank_class_init (DatabaseSourceHoldingTankClass * klass)
-{
-#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- database_source_holding_tank_parent_class = g_type_class_peek_parent (klass);
-#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- ((SourceHoldingTankClass *) klass)->finalize = database_source_holding_tank_finalize;
-#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- g_type_class_add_private (klass, sizeof (DatabaseSourceHoldingTankPrivate));
-#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- ((SourceHoldingTankClass *) klass)->notify_contents_altered = (void (*) (SourceHoldingTank *, GeeCollection*, GeeCollection*)) database_source_holding_tank_real_notify_contents_altered;
-#line 900 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_holding_tank_instance_init (DatabaseSourceHoldingTank * self)
-{
- GeeHashMap* _tmp0_;
-#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self->priv = DATABASE_SOURCE_HOLDING_TANK_GET_PRIVATE (self);
-#line 57 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _int64_hash_gee_hash_data_func, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
-#line 57 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self->priv->map = _tmp0_;
-#line 914 "DatabaseSourceCollection.c"
-}
-
-
-static void
-database_source_holding_tank_finalize (SourceHoldingTank * obj)
-{
- DatabaseSourceHoldingTank * self;
-#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank);
-#line 57 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- _g_object_unref0 (self->priv->map);
-#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala"
- SOURCE_HOLDING_TANK_CLASS (database_source_holding_tank_parent_class)->finalize (obj);
-#line 928 "DatabaseSourceCollection.c"
-}
-
-
-GType
-database_source_holding_tank_get_type (void)
-{
- static volatile gsize database_source_holding_tank_type_id__volatile = 0;
- if (g_once_init_enter (&database_source_holding_tank_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DatabaseSourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) database_source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DatabaseSourceHoldingTank), 0, (GInstanceInitFunc) database_source_holding_tank_instance_init, NULL };
- GType database_source_holding_tank_type_id;
- database_source_holding_tank_type_id = g_type_register_static (TYPE_SOURCE_HOLDING_TANK, "DatabaseSourceHoldingTank", &g_define_type_info, 0);
- g_once_init_leave (&database_source_holding_tank_type_id__volatile, database_source_holding_tank_type_id);
- }
- return database_source_holding_tank_type_id__volatile;
-}
-
-
-
diff --git a/src/core/SourceCollection.c b/src/core/SourceCollection.c
deleted file mode 100644
index 9de9400..0000000
--- a/src/core/SourceCollection.c
+++ /dev/null
@@ -1,1807 +0,0 @@
-/* SourceCollection.c generated by valac 0.40.4, the Vala compiler
- * generated from SourceCollection.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 SOURCE_COLLECTION_TYPE_DESTROY_COUNTER (source_collection_destroy_counter_get_type ())
-#define SOURCE_COLLECTION_DESTROY_COUNTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter))
-#define SOURCE_COLLECTION_DESTROY_COUNTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounterClass))
-#define SOURCE_COLLECTION_IS_DESTROY_COUNTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER))
-#define SOURCE_COLLECTION_IS_DESTROY_COUNTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER))
-#define SOURCE_COLLECTION_DESTROY_COUNTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounterClass))
-
-typedef struct _SourceCollectionDestroyCounter SourceCollectionDestroyCounter;
-typedef struct _SourceCollectionDestroyCounterClass SourceCollectionDestroyCounterClass;
-typedef struct _SourceCollectionDestroyCounterPrivate SourceCollectionDestroyCounterPrivate;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-enum {
- SOURCE_COLLECTION_DESTROY_COUNTER_0_PROPERTY,
- SOURCE_COLLECTION_DESTROY_COUNTER_NUM_PROPERTIES
-};
-static GParamSpec* source_collection_destroy_counter_properties[SOURCE_COLLECTION_DESTROY_COUNTER_NUM_PROPERTIES];
-enum {
- SOURCE_COLLECTION_ITEMS_UNLINKING_SIGNAL,
- SOURCE_COLLECTION_ITEMS_RELINKED_SIGNAL,
- SOURCE_COLLECTION_ITEM_DESTROYED_SIGNAL,
- SOURCE_COLLECTION_ITEMS_DESTROYED_SIGNAL,
- SOURCE_COLLECTION_UNLINKED_DESTROYED_SIGNAL,
- SOURCE_COLLECTION_BACKLINK_REMOVED_SIGNAL,
- SOURCE_COLLECTION_NUM_SIGNALS
-};
-static guint source_collection_signals[SOURCE_COLLECTION_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _SourceCollectionPrivate {
- GeeMultiMap* backlinks;
-};
-
-typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data);
-struct _SourceCollectionDestroyCounter {
- GObject parent_instance;
- SourceCollectionDestroyCounterPrivate * priv;
- Marker* remove_marker;
- GeeArrayList* notify_list;
- GeeArrayList* not_removed;
-};
-
-struct _SourceCollectionDestroyCounterClass {
- GObjectClass parent_class;
-};
-
-
-static gpointer source_collection_parent_class = NULL;
-static gpointer source_collection_destroy_counter_parent_class = NULL;
-
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-#define SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_COLLECTION, SourceCollectionPrivate))
-SourceCollection* source_collection_construct (GType object_type,
- const gchar* name);
-DataCollection* data_collection_new (const gchar* name);
-DataCollection* data_collection_construct (GType object_type,
- const gchar* name);
-gboolean source_collection_holds_type_of_source (SourceCollection* self,
- DataSource* source);
-static gboolean source_collection_real_holds_type_of_source (SourceCollection* self,
- DataSource* source);
-void source_collection_notify_items_unlinking (SourceCollection* self,
- GeeCollection* unlinking);
-static void source_collection_real_notify_items_unlinking (SourceCollection* self,
- GeeCollection* unlinking);
-void source_collection_notify_items_relinked (SourceCollection* self,
- GeeCollection* relinked);
-static void source_collection_real_notify_items_relinked (SourceCollection* self,
- GeeCollection* relinked);
-void source_collection_notify_item_destroyed (SourceCollection* self,
- DataSource* source);
-static void source_collection_real_notify_item_destroyed (SourceCollection* self,
- DataSource* source);
-void source_collection_notify_items_destroyed (SourceCollection* self,
- GeeCollection* destroyed);
-static void source_collection_real_notify_items_destroyed (SourceCollection* self,
- GeeCollection* destroyed);
-void source_collection_notify_unlinked_destroyed (SourceCollection* self,
- DataSource* unlinked);
-static void source_collection_real_notify_unlinked_destroyed (SourceCollection* self,
- DataSource* unlinked);
-void source_collection_notify_backlink_removed (SourceCollection* self,
- SourceBacklink* backlink,
- GeeCollection* sources);
-static void source_collection_real_notify_backlink_removed (SourceCollection* self,
- SourceBacklink* backlink,
- GeeCollection* sources);
-static gboolean source_collection_real_valid_type (DataCollection* base,
- DataObject* object);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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 GType source_collection_destroy_counter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-Marker* data_collection_start_marking (DataCollection* self);
-static SourceCollectionDestroyCounter* source_collection_destroy_counter_new (Marker* remove_marker);
-static SourceCollectionDestroyCounter* source_collection_destroy_counter_construct (GType object_type,
- Marker* remove_marker);
-void data_collection_act_on_marked (DataCollection* self,
- Marker* m,
- MarkedAction action,
- void* action_target,
- ProgressMonitor monitor,
- void* monitor_target,
- GObject* user);
-static gboolean source_collection_destroy_and_delete_source (SourceCollection* self,
- DataObject* object,
- GObject* user);
-static gboolean _source_collection_destroy_and_delete_source_marked_action (DataObject* object,
- GObject* user,
- gpointer self);
-static gboolean source_collection_destroy_source (SourceCollection* self,
- DataObject* object,
- GObject* user);
-static gboolean _source_collection_destroy_source_marked_action (DataObject* object,
- GObject* user,
- gpointer self);
-void data_collection_remove_marked (DataCollection* self,
- Marker* m);
-gboolean data_source_internal_delete_backing (DataSource* self,
- GError** error);
-void data_source_internal_mark_for_destroy (DataSource* self);
-void data_source_destroy (DataSource* self);
-void marker_mark (Marker* self,
- DataObject* object);
-void source_collection_internal_backlink_set (SourceCollection* self,
- DataSource* source,
- SourceBacklink* backlink);
-guint source_backlink_hash_func (SourceBacklink* backlink);
-static guint _source_backlink_hash_func_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean source_backlink_equal_func (SourceBacklink* alink,
- SourceBacklink* blink);
-static gboolean _source_backlink_equal_func_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-void source_collection_internal_backlink_removed (SourceCollection* self,
- DataSource* source,
- SourceBacklink* backlink);
-gboolean source_collection_has_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-static gboolean source_collection_real_has_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-GeeCollection* source_collection_unlink_marked (SourceCollection* self,
- Marker* marker,
- ProgressMonitor monitor,
- void* monitor_target);
-static gboolean source_collection_prepare_for_unlink (SourceCollection* self,
- DataObject* object,
- GObject* user);
-static gboolean _source_collection_prepare_for_unlink_marked_action (DataObject* object,
- GObject* user,
- gpointer self);
-Marker* data_collection_mark_many (DataCollection* self,
- GeeCollection* objects);
-void data_source_notify_unlinking (DataSource* self,
- SourceCollection* collection);
-void source_collection_relink (SourceCollection* self,
- DataSource* source);
-void data_source_notify_relinking (DataSource* self,
- SourceCollection* collection);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-GeeCollection* data_collection_get_singleton (DataObject* object);
-void data_source_notify_relinked (DataSource* self);
-void source_collection_relink_many (SourceCollection* self,
- GeeCollection* relink);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-void source_collection_remove_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-static void source_collection_real_remove_backlink (SourceCollection* self,
- SourceBacklink* backlink);
-gboolean data_source_remove_backlink (DataSource* self,
- SourceBacklink* backlink);
-static void source_collection_real_items_unlinking (SourceCollection* self,
- GeeCollection* unlinking);
-static void source_collection_real_items_relinked (SourceCollection* self,
- GeeCollection* relinked);
-static void source_collection_real_item_destroyed (SourceCollection* self,
- DataSource* source);
-static void source_collection_real_items_destroyed (SourceCollection* self,
- GeeCollection* destroyed);
-static void source_collection_real_unlinked_destroyed (SourceCollection* self,
- DataSource* source);
-static void source_collection_real_backlink_removed (SourceCollection* self,
- SourceBacklink* backlink,
- GeeCollection* sources);
-static void g_cclosure_user_marshal_VOID__SOURCE_BACKLINK_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void source_collection_destroy_counter_finalize (GObject * obj);
-static void source_collection_finalize (DataCollection * obj);
-
-
-SourceCollection*
-source_collection_construct (GType object_type,
- const gchar* name)
-{
- SourceCollection* self = NULL;
-#line 50 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 51 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self = (SourceCollection*) data_collection_construct (object_type, name);
-#line 50 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return self;
-#line 451 "SourceCollection.c"
-}
-
-
-static gboolean
-source_collection_real_holds_type_of_source (SourceCollection* self,
- DataSource* source)
-{
- gboolean _tmp0_ = FALSE;
-#line 54 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_critical ("Type `%s' does not implement abstract method `source_collection_holds_type_of_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 54 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return _tmp0_;
-#line 464 "SourceCollection.c"
-}
-
-
-gboolean
-source_collection_holds_type_of_source (SourceCollection* self,
- DataSource* source)
-{
-#line 54 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE);
-#line 54 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return SOURCE_COLLECTION_GET_CLASS (self)->holds_type_of_source (self, source);
-#line 476 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_notify_items_unlinking (SourceCollection* self,
- GeeCollection* unlinking)
-{
-#line 56 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (unlinking));
-#line 57 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_ITEMS_UNLINKING_SIGNAL], 0, unlinking);
-#line 488 "SourceCollection.c"
-}
-
-
-void
-source_collection_notify_items_unlinking (SourceCollection* self,
- GeeCollection* unlinking)
-{
-#line 56 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 56 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- SOURCE_COLLECTION_GET_CLASS (self)->notify_items_unlinking (self, unlinking);
-#line 500 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_notify_items_relinked (SourceCollection* self,
- GeeCollection* relinked)
-{
-#line 60 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (relinked));
-#line 61 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_ITEMS_RELINKED_SIGNAL], 0, relinked);
-#line 512 "SourceCollection.c"
-}
-
-
-void
-source_collection_notify_items_relinked (SourceCollection* self,
- GeeCollection* relinked)
-{
-#line 60 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 60 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- SOURCE_COLLECTION_GET_CLASS (self)->notify_items_relinked (self, relinked);
-#line 524 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_notify_item_destroyed (SourceCollection* self,
- DataSource* source)
-{
-#line 64 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 65 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_ITEM_DESTROYED_SIGNAL], 0, source);
-#line 536 "SourceCollection.c"
-}
-
-
-void
-source_collection_notify_item_destroyed (SourceCollection* self,
- DataSource* source)
-{
-#line 64 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 64 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- SOURCE_COLLECTION_GET_CLASS (self)->notify_item_destroyed (self, source);
-#line 548 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_notify_items_destroyed (SourceCollection* self,
- GeeCollection* destroyed)
-{
-#line 68 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (destroyed));
-#line 69 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_ITEMS_DESTROYED_SIGNAL], 0, destroyed);
-#line 560 "SourceCollection.c"
-}
-
-
-void
-source_collection_notify_items_destroyed (SourceCollection* self,
- GeeCollection* destroyed)
-{
-#line 68 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 68 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- SOURCE_COLLECTION_GET_CLASS (self)->notify_items_destroyed (self, destroyed);
-#line 572 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_notify_unlinked_destroyed (SourceCollection* self,
- DataSource* unlinked)
-{
-#line 73 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (unlinked));
-#line 74 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_UNLINKED_DESTROYED_SIGNAL], 0, unlinked);
-#line 584 "SourceCollection.c"
-}
-
-
-void
-source_collection_notify_unlinked_destroyed (SourceCollection* self,
- DataSource* unlinked)
-{
-#line 73 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 73 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- SOURCE_COLLECTION_GET_CLASS (self)->notify_unlinked_destroyed (self, unlinked);
-#line 596 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_notify_backlink_removed (SourceCollection* self,
- SourceBacklink* backlink,
- GeeCollection* sources)
-{
-#line 77 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 77 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 79 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_BACKLINK_REMOVED_SIGNAL], 0, backlink, sources);
-#line 611 "SourceCollection.c"
-}
-
-
-void
-source_collection_notify_backlink_removed (SourceCollection* self,
- SourceBacklink* backlink,
- GeeCollection* sources)
-{
-#line 77 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 77 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- SOURCE_COLLECTION_GET_CLASS (self)->notify_backlink_removed (self, backlink, sources);
-#line 624 "SourceCollection.c"
-}
-
-
-static gboolean
-source_collection_real_valid_type (DataCollection* base,
- DataObject* object)
-{
- SourceCollection * self;
- gboolean result = FALSE;
-#line 82 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SOURCE_COLLECTION, SourceCollection);
-#line 82 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 83 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (object, TYPE_DATA_SOURCE);
-#line 83 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 642 "SourceCollection.c"
-}
-
-
-static gboolean
-_source_collection_destroy_and_delete_source_marked_action (DataObject* object,
- GObject* user,
- gpointer self)
-{
- gboolean result;
- result = source_collection_destroy_and_delete_source ((SourceCollection*) self, object, user);
-#line 93 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 655 "SourceCollection.c"
-}
-
-
-static gboolean
-_source_collection_destroy_source_marked_action (DataObject* object,
- GObject* user,
- gpointer self)
-{
- gboolean result;
- result = source_collection_destroy_source ((SourceCollection*) self, object, user);
-#line 95 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 668 "SourceCollection.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return self ? g_object_ref (self) : NULL;
-#line 677 "SourceCollection.c"
-}
-
-
-gint
-source_collection_destroy_marked (SourceCollection* self,
- Marker* marker,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed)
-{
- gint result = 0;
- SourceCollectionDestroyCounter* counter = NULL;
- Marker* _tmp0_;
- Marker* _tmp1_;
- SourceCollectionDestroyCounter* _tmp2_;
- SourceCollectionDestroyCounter* _tmp3_;
- SourceCollectionDestroyCounter* _tmp19_;
- GeeArrayList* _tmp20_;
- SourceCollectionDestroyCounter* _tmp21_;
- Marker* _tmp22_;
- SourceCollectionDestroyCounter* _tmp25_;
- GeeArrayList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
-#line 88 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (self), 0);
-#line 88 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_MARKER (marker), 0);
-#line 88 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail ((not_removed == NULL) || GEE_IS_LIST (not_removed), 0);
-#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = _tmp0_;
-#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = source_collection_destroy_counter_new (_tmp1_);
-#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp3_ = _tmp2_;
-#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- counter = _tmp3_;
-#line 92 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (delete_backing) {
-#line 723 "SourceCollection.c"
- SourceCollectionDestroyCounter* _tmp4_;
-#line 93 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp4_ = counter;
-#line 93 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _source_collection_destroy_and_delete_source_marked_action, self, monitor, monitor_target, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, G_TYPE_OBJECT, GObject));
-#line 729 "SourceCollection.c"
- } else {
- SourceCollectionDestroyCounter* _tmp5_;
-#line 95 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp5_ = counter;
-#line 95 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _source_collection_destroy_source_marked_action, self, monitor, monitor_target, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, G_TYPE_OBJECT, GObject));
-#line 736 "SourceCollection.c"
- }
- {
- GeeArrayList* _source_list = NULL;
- SourceCollectionDestroyCounter* _tmp6_;
- GeeArrayList* _tmp7_;
- GeeArrayList* _tmp8_;
- gint _source_size = 0;
- GeeArrayList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _source_index = 0;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp6_ = counter;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp7_ = _tmp6_->notify_list;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_list = _tmp8_;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp9_ = _source_list;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp10_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp11_ = _tmp10_;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_size = _tmp11_;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_index = -1;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- while (TRUE) {
-#line 768 "SourceCollection.c"
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- DataSource* source = NULL;
- GeeArrayList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
- DataSource* _tmp18_;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp12_ = _source_index;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_index = _tmp12_ + 1;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp13_ = _source_index;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp14_ = _source_size;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (!(_tmp13_ < _tmp14_)) {
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- break;
-#line 789 "SourceCollection.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp15_ = _source_list;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp16_ = _source_index;
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp16_);
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source = (DataSource*) _tmp17_;
-#line 99 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp18_ = source;
-#line 99 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_notify_item_destroyed (self, _tmp18_);
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (source);
-#line 805 "SourceCollection.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_source_list);
-#line 809 "SourceCollection.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp19_ = counter;
-#line 100 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp20_ = _tmp19_->notify_list;
-#line 100 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_notify_items_destroyed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 103 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp21_ = counter;
-#line 103 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp22_ = _tmp21_->remove_marker;
-#line 103 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp22_);
-#line 105 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (NULL != not_removed) {
-#line 825 "SourceCollection.c"
- SourceCollectionDestroyCounter* _tmp23_;
- GeeArrayList* _tmp24_;
-#line 106 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp23_ = counter;
-#line 106 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp24_ = _tmp23_->not_removed;
-#line 106 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (not_removed, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 834 "SourceCollection.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp25_ = counter;
-#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp26_ = _tmp25_->not_removed;
-#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp27_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp28_ = _tmp27_;
-#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- result = _tmp28_;
-#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (counter);
-#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 850 "SourceCollection.c"
-}
-
-
-static gboolean
-source_collection_destroy_and_delete_source (SourceCollection* self,
- DataObject* object,
- GObject* user)
-{
- gboolean result = FALSE;
- gboolean success = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
- gboolean _tmp5_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 112 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE);
-#line 112 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 112 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE);
-#line 113 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- success = FALSE;
-#line 873 "SourceCollection.c"
- {
- gboolean _tmp0_ = FALSE;
-#line 115 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = data_source_internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_SOURCE, DataSource), &_inner_error_);
-#line 115 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 880 "SourceCollection.c"
- goto __catch53_g_error;
- }
-#line 115 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- success = _tmp0_;
-#line 885 "SourceCollection.c"
- }
- goto __finally53;
- __catch53_g_error:
- {
- GError* err = NULL;
-#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- err = _inner_error_;
-#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _inner_error_ = NULL;
-#line 117 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- success = FALSE;
-#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_error_free0 (err);
-#line 899 "SourceCollection.c"
- }
- __finally53:
-#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 904 "SourceCollection.c"
- gboolean _tmp1_ = FALSE;
-#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.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 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_clear_error (&_inner_error_);
-#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return _tmp1_;
-#line 912 "SourceCollection.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp3_ = success;
-#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (!_tmp3_) {
-#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (object, TYPE_MEDIA_SOURCE);
-#line 920 "SourceCollection.c"
- } else {
-#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = FALSE;
-#line 924 "SourceCollection.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (_tmp2_) {
-#line 928 "SourceCollection.c"
- GeeArrayList* _tmp4_;
-#line 121 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (user, SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter)->not_removed;
-#line 121 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_MEDIA_SOURCE, MediaSource));
-#line 934 "SourceCollection.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (source_collection_destroy_source (self, object, user)) {
-#line 938 "SourceCollection.c"
- gboolean _tmp6_;
-#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp6_ = success;
-#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp5_ = _tmp6_;
-#line 944 "SourceCollection.c"
- } else {
-#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp5_ = FALSE;
-#line 948 "SourceCollection.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- result = _tmp5_;
-#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 954 "SourceCollection.c"
-}
-
-
-static gboolean
-source_collection_destroy_source (SourceCollection* self,
- DataObject* object,
- GObject* user)
-{
- gboolean result = FALSE;
- DataSource* source = NULL;
- DataSource* _tmp0_;
- Marker* _tmp1_;
- GeeArrayList* _tmp2_;
-#line 127 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE);
-#line 127 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 127 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE);
-#line 128 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_SOURCE, DataSource));
-#line 128 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source = _tmp0_;
-#line 130 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_source_internal_mark_for_destroy (source);
-#line 131 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_source_destroy (source);
-#line 133 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (user, SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter)->remove_marker;
-#line 133 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- marker_mark (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 134 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (user, SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter)->notify_list;
-#line 134 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source);
-#line 136 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- result = TRUE;
-#line 136 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (source);
-#line 136 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 996 "SourceCollection.c"
-}
-
-
-static guint
-_source_backlink_hash_func_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = source_backlink_hash_func ((SourceBacklink*) v);
-#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 1008 "SourceCollection.c"
-}
-
-
-static gboolean
-_source_backlink_equal_func_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = source_backlink_equal_func ((SourceBacklink*) a, (SourceBacklink*) b);
-#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 1021 "SourceCollection.c"
-}
-
-
-void
-source_collection_internal_backlink_set (SourceCollection* self,
- DataSource* source,
- SourceBacklink* backlink)
-{
- GeeMultiMap* _tmp0_;
- GeeMultiMap* _tmp2_;
-#line 140 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 140 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 140 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 141 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = self->priv->backlinks;
-#line 141 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (_tmp0_ == NULL) {
-#line 1042 "SourceCollection.c"
- GeeHashMultiMap* _tmp1_;
-#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = gee_hash_multi_map_new (TYPE_SOURCE_BACKLINK, (GBoxedCopyFunc) source_backlink_ref, (GDestroyNotify) source_backlink_unref, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _source_backlink_hash_func_gee_hash_data_func, NULL, NULL, _source_backlink_equal_func_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (self->priv->backlinks);
-#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self->priv->backlinks = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
-#line 1050 "SourceCollection.c"
- }
-#line 146 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = self->priv->backlinks;
-#line 146 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- gee_multi_map_set (_tmp2_, backlink, source);
-#line 1056 "SourceCollection.c"
-}
-
-
-void
-source_collection_internal_backlink_removed (SourceCollection* self,
- DataSource* source,
- SourceBacklink* backlink)
-{
- GeeMultiMap* _tmp0_;
- gboolean removed = FALSE;
- GeeMultiMap* _tmp1_;
-#line 150 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 150 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 150 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 151 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = self->priv->backlinks;
-#line 151 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _vala_assert (_tmp0_ != NULL, "backlinks != null");
-#line 153 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = self->priv->backlinks;
-#line 153 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- removed = gee_multi_map_remove (_tmp1_, backlink, source);
-#line 154 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _vala_assert (removed, "removed");
-#line 1084 "SourceCollection.c"
-}
-
-
-static gboolean
-source_collection_real_has_backlink (SourceCollection* self,
- SourceBacklink* backlink)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GeeMultiMap* _tmp1_;
-#line 157 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE);
-#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = self->priv->backlinks;
-#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (_tmp1_ != NULL) {
-#line 1101 "SourceCollection.c"
- GeeMultiMap* _tmp2_;
-#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = self->priv->backlinks;
-#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = gee_multi_map_contains (_tmp2_, backlink);
-#line 1107 "SourceCollection.c"
- } else {
-#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = FALSE;
-#line 1111 "SourceCollection.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- result = _tmp0_;
-#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 1117 "SourceCollection.c"
-}
-
-
-gboolean
-source_collection_has_backlink (SourceCollection* self,
- SourceBacklink* backlink)
-{
-#line 157 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE);
-#line 157 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return SOURCE_COLLECTION_GET_CLASS (self)->has_backlink (self, backlink);
-#line 1129 "SourceCollection.c"
-}
-
-
-static gboolean
-_source_collection_prepare_for_unlink_marked_action (DataObject* object,
- GObject* user,
- gpointer self)
-{
- gboolean result;
- result = source_collection_prepare_for_unlink ((SourceCollection*) self, object, user);
-#line 163 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 1142 "SourceCollection.c"
-}
-
-
-GeeCollection*
-source_collection_unlink_marked (SourceCollection* self,
- Marker* marker,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- GeeCollection* result = NULL;
- GeeArrayList* list = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
- Marker* _tmp7_;
- Marker* _tmp8_;
-#line 161 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (self), NULL);
-#line 161 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_MARKER (marker), NULL);
-#line 162 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 162 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- list = _tmp0_;
-#line 163 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = list;
-#line 163 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _source_collection_prepare_for_unlink_marked_action, self, monitor, monitor_target, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject));
-#line 165 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = list;
-#line 165 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 165 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp4_ = _tmp3_;
-#line 165 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (_tmp4_ == 0) {
-#line 166 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- result = NULL;
-#line 166 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (list);
-#line 166 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 1189 "SourceCollection.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp5_ = list;
-#line 168 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_notify_items_unlinking (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp6_ = list;
-#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp7_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp8_ = _tmp7_;
-#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp8_);
-#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_tmp8_);
-#line 172 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_COLLECTION, GeeCollection);
-#line 172 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 1209 "SourceCollection.c"
-}
-
-
-static gboolean
-source_collection_prepare_for_unlink (SourceCollection* self,
- DataObject* object,
- GObject* user)
-{
- gboolean result = FALSE;
- DataSource* source = NULL;
- DataSource* _tmp0_;
-#line 175 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE);
-#line 175 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 175 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE);
-#line 176 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_SOURCE, DataSource));
-#line 176 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source = _tmp0_;
-#line 178 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_source_notify_unlinking (source, self);
-#line 179 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (user, GEE_TYPE_LIST, GeeList), GEE_TYPE_COLLECTION, GeeCollection), source);
-#line 181 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- result = TRUE;
-#line 181 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (source);
-#line 181 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return result;
-#line 1241 "SourceCollection.c"
-}
-
-
-void
-source_collection_relink (SourceCollection* self,
- DataSource* source)
-{
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 184 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 184 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 185 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_source_notify_relinking (source, self);
-#line 187 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 188 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = data_collection_get_singleton (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 188 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 188 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_notify_items_relinked (self, _tmp1_);
-#line 188 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 190 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_source_notify_relinked (source);
-#line 1269 "SourceCollection.c"
-}
-
-
-void
-source_collection_relink_many (SourceCollection* self,
- GeeCollection* relink)
-{
- gint _tmp0_;
- gint _tmp1_;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
-#line 193 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 193 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (relink));
-#line 194 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = gee_collection_get_size (relink);
-#line 194 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = _tmp0_;
-#line 194 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (_tmp1_ == 0) {
-#line 195 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return;
-#line 1293 "SourceCollection.c"
- }
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp2_;
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (relink, GEE_TYPE_ITERABLE, GeeIterable));
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_it = _tmp2_;
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- while (TRUE) {
-#line 1304 "SourceCollection.c"
- GeeIterator* _tmp3_;
- DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataSource* _tmp6_;
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp3_ = _source_it;
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- break;
-#line 1316 "SourceCollection.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp4_ = _source_it;
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source = (DataSource*) _tmp5_;
-#line 198 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp6_ = source;
-#line 198 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_source_notify_relinking (_tmp6_, self);
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (source);
-#line 1330 "SourceCollection.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_source_it);
-#line 1334 "SourceCollection.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp7_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), relink, NULL, NULL);
-#line 200 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp8_ = _tmp7_;
-#line 200 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_tmp8_);
-#line 201 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_notify_items_relinked (self, relink);
-#line 1344 "SourceCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp9_;
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (relink, GEE_TYPE_ITERABLE, GeeIterable));
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_it = _tmp9_;
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- while (TRUE) {
-#line 1354 "SourceCollection.c"
- GeeIterator* _tmp10_;
- DataSource* source = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- DataSource* _tmp13_;
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp10_ = _source_it;
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- break;
-#line 1366 "SourceCollection.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp11_ = _source_it;
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source = (DataSource*) _tmp12_;
-#line 204 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp13_ = source;
-#line 204 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_source_notify_relinked (_tmp13_);
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (source);
-#line 1380 "SourceCollection.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_source_it);
-#line 1384 "SourceCollection.c"
- }
-}
-
-
-static void
-source_collection_real_remove_backlink (SourceCollection* self,
- SourceBacklink* backlink)
-{
- GeeMultiMap* _tmp0_;
- GeeArrayList* sources = NULL;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeMultiMap* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeArrayList* _tmp18_;
-#line 207 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 208 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = self->priv->backlinks;
-#line 208 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (_tmp0_ == NULL) {
-#line 209 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return;
-#line 1409 "SourceCollection.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 212 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- sources = _tmp1_;
-#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp2_ = sources;
-#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp3_ = self->priv->backlinks;
-#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp4_ = gee_multi_map_get (_tmp3_, backlink);
-#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp5_ = _tmp4_;
-#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- gee_array_list_add_all (_tmp2_, _tmp5_);
-#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_tmp5_);
-#line 1427 "SourceCollection.c"
- {
- GeeArrayList* _source_list = NULL;
- GeeArrayList* _tmp6_;
- GeeArrayList* _tmp7_;
- gint _source_size = 0;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _source_index = 0;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp6_ = sources;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_list = _tmp7_;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp8_ = _source_list;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp10_ = _tmp9_;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_size = _tmp10_;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_index = -1;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- while (TRUE) {
-#line 1455 "SourceCollection.c"
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- DataSource* source = NULL;
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- DataSource* _tmp17_;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp11_ = _source_index;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _source_index = _tmp11_ + 1;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp12_ = _source_index;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp13_ = _source_size;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- break;
-#line 1476 "SourceCollection.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp14_ = _source_list;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp15_ = _source_index;
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp15_);
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source = (DataSource*) _tmp16_;
-#line 216 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp17_ = source;
-#line 216 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data_source_remove_backlink (_tmp17_, backlink);
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (source);
-#line 1492 "SourceCollection.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (_source_list);
-#line 1496 "SourceCollection.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp18_ = sources;
-#line 218 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_notify_backlink_removed (self, backlink, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 207 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (sources);
-#line 1504 "SourceCollection.c"
-}
-
-
-void
-source_collection_remove_backlink (SourceCollection* self,
- SourceBacklink* backlink)
-{
-#line 207 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (self));
-#line 207 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- SOURCE_COLLECTION_GET_CLASS (self)->remove_backlink (self, backlink);
-#line 1516 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_items_unlinking (SourceCollection* self,
- GeeCollection* unlinking)
-{
-#line 20 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (unlinking));
-#line 1526 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_items_relinked (SourceCollection* self,
- GeeCollection* relinked)
-{
-#line 25 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (relinked));
-#line 1536 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_item_destroyed (SourceCollection* self,
- DataSource* source)
-{
-#line 30 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1546 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_items_destroyed (SourceCollection* self,
- GeeCollection* destroyed)
-{
-#line 35 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (destroyed));
-#line 1556 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_unlinked_destroyed (SourceCollection* self,
- DataSource* source)
-{
-#line 40 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1566 "SourceCollection.c"
-}
-
-
-static void
-source_collection_real_backlink_removed (SourceCollection* self,
- SourceBacklink* backlink,
- GeeCollection* sources)
-{
-#line 44 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 44 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 1579 "SourceCollection.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__SOURCE_BACKLINK_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__SOURCE_BACKLINK_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__SOURCE_BACKLINK_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_if_fail (n_param_values == 3);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data1 = closure->data;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data2 = param_values->data[0].v_pointer;
-#line 1605 "SourceCollection.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data1 = param_values->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- data2 = closure->data;
-#line 1611 "SourceCollection.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- callback = (GMarshalFunc_VOID__SOURCE_BACKLINK_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- callback (data1, value_get_source_backlink (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 1617 "SourceCollection.c"
-}
-
-
-static SourceCollectionDestroyCounter*
-source_collection_destroy_counter_construct (GType object_type,
- Marker* remove_marker)
-{
- SourceCollectionDestroyCounter * self = NULL;
- Marker* _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_return_val_if_fail (IS_MARKER (remove_marker), NULL);
-#line 13 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self = (SourceCollectionDestroyCounter*) g_object_new (object_type, NULL);
-#line 14 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = _g_object_ref0 (remove_marker);
-#line 14 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (self->remove_marker);
-#line 14 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self->remove_marker = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return self;
-#line 1639 "SourceCollection.c"
-}
-
-
-static SourceCollectionDestroyCounter*
-source_collection_destroy_counter_new (Marker* remove_marker)
-{
-#line 13 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- return source_collection_destroy_counter_construct (SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, remove_marker);
-#line 1648 "SourceCollection.c"
-}
-
-
-static void
-source_collection_destroy_counter_class_init (SourceCollectionDestroyCounterClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_destroy_counter_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- G_OBJECT_CLASS (klass)->finalize = source_collection_destroy_counter_finalize;
-#line 1659 "SourceCollection.c"
-}
-
-
-static void
-source_collection_destroy_counter_instance_init (SourceCollectionDestroyCounter * self)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 10 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 10 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self->notify_list = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _tmp1_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 11 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self->not_removed = _tmp1_;
-#line 1676 "SourceCollection.c"
-}
-
-
-static void
-source_collection_destroy_counter_finalize (GObject * obj)
-{
- SourceCollectionDestroyCounter * self;
-#line 8 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter);
-#line 9 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (self->remove_marker);
-#line 10 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (self->notify_list);
-#line 11 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (self->not_removed);
-#line 8 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- G_OBJECT_CLASS (source_collection_destroy_counter_parent_class)->finalize (obj);
-#line 1694 "SourceCollection.c"
-}
-
-
-static GType
-source_collection_destroy_counter_get_type (void)
-{
- static volatile gsize source_collection_destroy_counter_type_id__volatile = 0;
- if (g_once_init_enter (&source_collection_destroy_counter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SourceCollectionDestroyCounterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_collection_destroy_counter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceCollectionDestroyCounter), 0, (GInstanceInitFunc) source_collection_destroy_counter_instance_init, NULL };
- GType source_collection_destroy_counter_type_id;
- source_collection_destroy_counter_type_id = g_type_register_static (G_TYPE_OBJECT, "SourceCollectionDestroyCounter", &g_define_type_info, 0);
- g_once_init_leave (&source_collection_destroy_counter_type_id__volatile, source_collection_destroy_counter_type_id);
- }
- return source_collection_destroy_counter_type_id__volatile;
-}
-
-
-static void
-source_collection_class_init (SourceCollectionClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((DataCollectionClass *) klass)->finalize = source_collection_finalize;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- g_type_class_add_private (klass, sizeof (SourceCollectionPrivate));
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) source_collection_real_holds_type_of_source;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->notify_items_unlinking = (void (*) (SourceCollection *, GeeCollection*)) source_collection_real_notify_items_unlinking;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->notify_items_relinked = (void (*) (SourceCollection *, GeeCollection*)) source_collection_real_notify_items_relinked;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->notify_item_destroyed = (void (*) (SourceCollection *, DataSource*)) source_collection_real_notify_item_destroyed;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->notify_items_destroyed = (void (*) (SourceCollection *, GeeCollection*)) source_collection_real_notify_items_destroyed;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->notify_unlinked_destroyed = (void (*) (SourceCollection *, DataSource*)) source_collection_real_notify_unlinked_destroyed;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->notify_backlink_removed = (void (*) (SourceCollection *, SourceBacklink*, GeeCollection*)) source_collection_real_notify_backlink_removed;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((DataCollectionClass *) klass)->valid_type = (gboolean (*) (DataCollection *, DataObject*)) source_collection_real_valid_type;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->has_backlink = (gboolean (*) (SourceCollection *, SourceBacklink*)) source_collection_real_has_backlink;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->remove_backlink = (void (*) (SourceCollection *, SourceBacklink*)) source_collection_real_remove_backlink;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->items_unlinking = source_collection_real_items_unlinking;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->items_relinked = source_collection_real_items_relinked;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->item_destroyed = source_collection_real_item_destroyed;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->items_destroyed = source_collection_real_items_destroyed;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->unlinked_destroyed = source_collection_real_unlinked_destroyed;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- ((SourceCollectionClass *) klass)->backlink_removed = source_collection_real_backlink_removed;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_signals[SOURCE_COLLECTION_ITEMS_UNLINKING_SIGNAL] = g_signal_new ("items-unlinking", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, items_unlinking), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_signals[SOURCE_COLLECTION_ITEMS_RELINKED_SIGNAL] = g_signal_new ("items-relinked", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, items_relinked), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_signals[SOURCE_COLLECTION_ITEM_DESTROYED_SIGNAL] = g_signal_new ("item-destroyed", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, item_destroyed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_SOURCE);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_signals[SOURCE_COLLECTION_ITEMS_DESTROYED_SIGNAL] = g_signal_new ("items-destroyed", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, items_destroyed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_signals[SOURCE_COLLECTION_UNLINKED_DESTROYED_SIGNAL] = g_signal_new ("unlinked-destroyed", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, unlinked_destroyed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_SOURCE);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- source_collection_signals[SOURCE_COLLECTION_BACKLINK_REMOVED_SIGNAL] = g_signal_new ("backlink-removed", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, backlink_removed), NULL, NULL, g_cclosure_user_marshal_VOID__SOURCE_BACKLINK_OBJECT, G_TYPE_NONE, 2, TYPE_SOURCE_BACKLINK, GEE_TYPE_COLLECTION);
-#line 1765 "SourceCollection.c"
-}
-
-
-static void
-source_collection_instance_init (SourceCollection * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self->priv = SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 48 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self->priv->backlinks = NULL;
-#line 1776 "SourceCollection.c"
-}
-
-
-static void
-source_collection_finalize (DataCollection * obj)
-{
- SourceCollection * self;
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_COLLECTION, SourceCollection);
-#line 48 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- _g_object_unref0 (self->priv->backlinks);
-#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala"
- DATA_COLLECTION_CLASS (source_collection_parent_class)->finalize (obj);
-#line 1790 "SourceCollection.c"
-}
-
-
-GType
-source_collection_get_type (void)
-{
- static volatile gsize source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceCollection), 0, (GInstanceInitFunc) source_collection_instance_init, NULL };
- GType source_collection_type_id;
- source_collection_type_id = g_type_register_static (TYPE_DATA_COLLECTION, "SourceCollection", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&source_collection_type_id__volatile, source_collection_type_id);
- }
- return source_collection_type_id__volatile;
-}
-
-
-
diff --git a/src/core/SourceHoldingTank.c b/src/core/SourceHoldingTank.c
deleted file mode 100644
index 809af37..0000000
--- a/src/core/SourceHoldingTank.c
+++ /dev/null
@@ -1,1736 +0,0 @@
-/* SourceHoldingTank.c generated by valac 0.40.4, the Vala compiler
- * generated from SourceHoldingTank.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* A SourceHoldingTank is similar to the holding tank used by ContainerSourceCollection, but for*/
-/* non-ContainerSources to be held offline from their natural SourceCollection (i.e. PhotoSources*/
-/* being held in a trashcan, for example). It is *not* a DataCollection (important!), but rather*/
-/* a signalled collection that moves DataSources to and from their SourceCollection.*/
-/**/
-/* DataSources can be shuttled from their SourceCollection to the SourceHoldingTank manually*/
-/* (via unlink_and_hold) or can be automatically moved by installing a HoldingPredicate.*/
-/* Only one HoldingConditional may be installed. Because of assertions in the methods, it's unwise*/
-/* to use more than one method. add() and add_many() should ONLY be used for DataSources not*/
-/* first installed in their SourceCollection (i.e. they're born in the SourceHoldingTank).*/
-/**/
-/* NOTE: DataSources should never be in more than one SourceHoldingTank. No tests are performed*/
-/* here to verify this. This is why a filter/predicate method (which could automatically move*/
-/* them in as they're altered) is not offered; there's no easy way to keep DataSources from being*/
-/* moved into more than one holding tank, or which should have preference. The CheckToRemove*/
-/* predicate is offered only to know when to release them.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_SET (data_set_get_type ())
-#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet))
-#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass))
-#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET))
-#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET))
-#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass))
-
-typedef struct _DataSet DataSet;
-typedef struct _DataSetClass DataSetClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-
-#define TYPE_SINGLETON_COLLECTION (singleton_collection_get_type ())
-#define SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollection))
-#define SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass))
-#define IS_SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLETON_COLLECTION))
-#define IS_SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLETON_COLLECTION))
-#define SINGLETON_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass))
-
-typedef struct _SingletonCollection SingletonCollection;
-typedef struct _SingletonCollectionClass SingletonCollectionClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecSourceHoldingTank ParamSpecSourceHoldingTank;
-enum {
- SOURCE_HOLDING_TANK_CONTENTS_ALTERED_SIGNAL,
- SOURCE_HOLDING_TANK_NUM_SIGNALS
-};
-static guint source_holding_tank_signals[SOURCE_HOLDING_TANK_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SourceHoldingTank {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SourceHoldingTankPrivate * priv;
-};
-
-struct _SourceHoldingTankClass {
- GTypeClass parent_class;
- void (*finalize) (SourceHoldingTank *self);
- void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
- void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
-};
-
-typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data);
-struct _SourceHoldingTankPrivate {
- SourceCollection* sources;
- SourceHoldingTankCheckToKeep check_to_keep;
- gpointer check_to_keep_target;
- DataSet* tank;
- GeeHashSet* relinks;
- GeeHashSet* unlinking;
- gint64 ordinal;
-};
-
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _ParamSpecSourceHoldingTank {
- GParamSpec parent_instance;
-};
-
-
-static gpointer source_holding_tank_parent_class = NULL;
-
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_set_ref (gpointer instance);
-void data_set_unref (gpointer instance);
-GParamSpec* param_spec_data_set (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_set (GValue* value,
- gpointer v_object);
-void value_take_data_set (GValue* value,
- gpointer v_object);
-gpointer value_get_data_set (const GValue* value);
-GType data_set_get_type (void) G_GNUC_CONST;
-#define SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankPrivate))
-static void source_holding_tank_on_source_destroyed (SourceHoldingTank* self,
- DataSource* source);
-static void _source_holding_tank_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self);
-static void source_holding_tank_on_source_collection_thawed (SourceHoldingTank* self);
-static void _source_holding_tank_on_source_collection_thawed_data_collection_thawed (DataCollection* _sender,
- gpointer self);
-DataSet* data_set_new (void);
-DataSet* data_set_construct (GType object_type);
-SourceHoldingTank* source_holding_tank_new (SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target);
-SourceHoldingTank* source_holding_tank_construct (GType object_type,
- SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target);
-void source_holding_tank_notify_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void source_holding_tank_real_notify_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed);
-void data_source_notify_held_in_tank (DataSource* self,
- SourceHoldingTank* holding_tank);
-gint source_holding_tank_get_count (SourceHoldingTank* self);
-gint data_set_get_count (DataSet* self);
-GeeCollection* source_holding_tank_get_all (SourceHoldingTank* self);
-GeeList* data_set_get_all (DataSet* self);
-gboolean source_holding_tank_contains (SourceHoldingTank* self,
- DataSource* source);
-gboolean data_set_contains (DataSet* self,
- DataObject* object);
-void source_holding_tank_add_many (SourceHoldingTank* self,
- GeeCollection* many);
-void data_object_internal_set_ordinal (DataObject* self,
- gint64 ordinal);
-gboolean data_set_add_many (DataSet* self,
- GeeCollection* objects);
-void source_holding_tank_unlink_and_hold (SourceHoldingTank* self,
- GeeCollection* unlink);
-GType marker_get_type (void) G_GNUC_CONST;
-GeeCollection* source_collection_unlink_marked (SourceCollection* self,
- Marker* marker,
- ProgressMonitor monitor,
- void* monitor_target);
-Marker* data_collection_mark_many (DataCollection* self,
- GeeCollection* objects);
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-gboolean source_holding_tank_has_backlink (SourceHoldingTank* self,
- SourceBacklink* backlink);
-DataObject* data_set_get_at (DataSet* self,
- gint index);
-gboolean data_source_has_backlink (DataSource* self,
- SourceBacklink* backlink);
-void source_holding_tank_remove_backlink (SourceHoldingTank* self,
- SourceBacklink* backlink);
-gboolean data_source_remove_backlink (DataSource* self,
- SourceBacklink* backlink);
-void source_holding_tank_destroy_orphans (SourceHoldingTank* self,
- GeeList* destroy,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed);
-gboolean data_set_remove_many (DataSet* self,
- GeeCollection* objects);
-gboolean data_source_destroy_orphan (DataSource* self,
- gboolean delete_backing);
-gboolean data_set_remove (DataSet* self,
- DataObject* object);
-SingletonCollection* singleton_collection_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer object);
-SingletonCollection* singleton_collection_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer object);
-GType singleton_collection_get_type (void) G_GNUC_CONST;
-void source_holding_tank_internal_notify_altered (SourceHoldingTank* self,
- DataSource* source,
- Alteration* alteration);
-gchar* data_object_to_string (DataObject* self);
-gchar* source_holding_tank_to_string (SourceHoldingTank* self);
-gboolean data_collection_are_notifications_frozen (DataCollection* self);
-void source_collection_relink (SourceCollection* self,
- DataSource* source);
-void source_collection_relink_many (SourceCollection* self,
- GeeCollection* relink);
-static void source_holding_tank_real_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void source_holding_tank_finalize (SourceHoldingTank * obj);
-
-
-static void
-_source_holding_tank_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
- DataSource* source,
- gpointer self)
-{
-#line 48 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_on_source_destroyed ((SourceHoldingTank*) self, source);
-#line 371 "SourceHoldingTank.c"
-}
-
-
-static void
-_source_holding_tank_on_source_collection_thawed_data_collection_thawed (DataCollection* _sender,
- gpointer self)
-{
-#line 49 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_on_source_collection_thawed ((SourceHoldingTank*) self);
-#line 381 "SourceHoldingTank.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 40 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 390 "SourceHoldingTank.c"
-}
-
-
-SourceHoldingTank*
-source_holding_tank_construct (GType object_type,
- SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target)
-{
- SourceHoldingTank* self = NULL;
- SourceCollection* _tmp0_;
- SourceCollection* _tmp1_;
- SourceCollection* _tmp2_;
-#line 39 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL);
-#line 39 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self = (SourceHoldingTank*) g_type_create_instance (object_type);
-#line 40 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = _data_collection_ref0 (sources);
-#line 40 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 40 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->sources = _tmp0_;
-#line 41 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->check_to_keep = check_to_keep;
-#line 41 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->check_to_keep_target = check_to_keep_target;
-#line 43 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = self->priv->sources;
-#line 43 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_signal_connect (_tmp1_, "item-destroyed", (GCallback) _source_holding_tank_on_source_destroyed_source_collection_item_destroyed, self);
-#line 44 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = self->priv->sources;
-#line 44 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), "thawed", (GCallback) _source_holding_tank_on_source_collection_thawed_data_collection_thawed, self);
-#line 39 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return self;
-#line 428 "SourceHoldingTank.c"
-}
-
-
-SourceHoldingTank*
-source_holding_tank_new (SourceCollection* sources,
- SourceHoldingTankCheckToKeep check_to_keep,
- void* check_to_keep_target)
-{
-#line 39 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return source_holding_tank_construct (TYPE_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target);
-#line 439 "SourceHoldingTank.c"
-}
-
-
-static void
-source_holding_tank_real_notify_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 52 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 52 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 54 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (added != NULL) {
-#line 454 "SourceHoldingTank.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable));
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _source_it = _tmp0_;
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- while (TRUE) {
-#line 464 "SourceHoldingTank.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataSource* _tmp4_;
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = _source_it;
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- break;
-#line 476 "SourceHoldingTank.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = _source_it;
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source = (DataSource*) _tmp3_;
-#line 56 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = source;
-#line 56 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data_source_notify_held_in_tank (_tmp4_, self);
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (source);
-#line 490 "SourceHoldingTank.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_source_it);
-#line 494 "SourceHoldingTank.c"
- }
- }
-#line 59 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (removed != NULL) {
-#line 499 "SourceHoldingTank.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp5_;
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _source_it = _tmp5_;
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- while (TRUE) {
-#line 509 "SourceHoldingTank.c"
- GeeIterator* _tmp6_;
- DataSource* source = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- DataSource* _tmp9_;
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = _source_it;
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- break;
-#line 521 "SourceHoldingTank.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp7_ = _source_it;
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source = (DataSource*) _tmp8_;
-#line 61 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp9_ = source;
-#line 61 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data_source_notify_held_in_tank (_tmp9_, NULL);
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (source);
-#line 535 "SourceHoldingTank.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_source_it);
-#line 539 "SourceHoldingTank.c"
- }
- }
-#line 64 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_signal_emit (self, source_holding_tank_signals[SOURCE_HOLDING_TANK_CONTENTS_ALTERED_SIGNAL], 0, added, removed);
-#line 544 "SourceHoldingTank.c"
-}
-
-
-void
-source_holding_tank_notify_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 52 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_HOLDING_TANK (self));
-#line 52 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- SOURCE_HOLDING_TANK_GET_CLASS (self)->notify_contents_altered (self, added, removed);
-#line 557 "SourceHoldingTank.c"
-}
-
-
-gint
-source_holding_tank_get_count (SourceHoldingTank* self)
-{
- gint result = 0;
- DataSet* _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), 0);
-#line 68 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = self->priv->tank;
-#line 68 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- result = data_set_get_count (_tmp0_);
-#line 68 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return result;
-#line 574 "SourceHoldingTank.c"
-}
-
-
-GeeCollection*
-source_holding_tank_get_all (SourceHoldingTank* self)
-{
- GeeCollection* result = NULL;
- DataSet* _tmp0_;
- GeeList* _tmp1_;
-#line 71 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), NULL);
-#line 72 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = self->priv->tank;
-#line 72 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = data_set_get_all (_tmp0_);
-#line 72 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 72 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return result;
-#line 594 "SourceHoldingTank.c"
-}
-
-
-gboolean
-source_holding_tank_contains (SourceHoldingTank* self,
- DataSource* source)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- DataSet* _tmp1_;
-#line 75 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), FALSE);
-#line 75 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = self->priv->tank;
-#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (data_set_contains (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject))) {
-#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = TRUE;
-#line 615 "SourceHoldingTank.c"
- } else {
- GeeHashSet* _tmp2_;
-#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = self->priv->unlinking;
-#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source);
-#line 622 "SourceHoldingTank.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- result = _tmp0_;
-#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return result;
-#line 628 "SourceHoldingTank.c"
-}
-
-
-void
-source_holding_tank_add_many (SourceHoldingTank* self,
- GeeCollection* many)
-{
- gint _tmp0_;
- gint _tmp1_;
- gboolean added = FALSE;
- DataSet* _tmp8_;
- gboolean _tmp9_;
-#line 80 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_HOLDING_TANK (self));
-#line 80 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (GEE_IS_COLLECTION (many));
-#line 81 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = gee_collection_get_size (many);
-#line 81 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (_tmp1_ == 0) {
-#line 82 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return;
-#line 653 "SourceHoldingTank.c"
- }
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp2_;
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (many, GEE_TYPE_ITERABLE, GeeIterable));
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _source_it = _tmp2_;
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- while (TRUE) {
-#line 664 "SourceHoldingTank.c"
- GeeIterator* _tmp3_;
- DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataSource* _tmp6_;
- gint64 _tmp7_;
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = _source_it;
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- break;
-#line 677 "SourceHoldingTank.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = _source_it;
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source = (DataSource*) _tmp5_;
-#line 85 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = source;
-#line 85 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp7_ = self->priv->ordinal;
-#line 85 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->ordinal = _tmp7_ + 1;
-#line 85 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data_object_internal_set_ordinal (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_OBJECT, DataObject), _tmp7_);
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (source);
-#line 695 "SourceHoldingTank.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_source_it);
-#line 699 "SourceHoldingTank.c"
- }
-#line 87 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp8_ = self->priv->tank;
-#line 87 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- added = data_set_add_many (_tmp8_, many);
-#line 88 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp9_ = added;
-#line 88 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _vala_assert (_tmp9_, "added");
-#line 90 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_notify_contents_altered (self, many, NULL);
-#line 711 "SourceHoldingTank.c"
-}
-
-
-void
-source_holding_tank_unlink_and_hold (SourceHoldingTank* self,
- GeeCollection* unlink)
-{
- gint _tmp0_;
- gint _tmp1_;
- GeeHashSet* _tmp2_;
- SourceCollection* _tmp3_;
- SourceCollection* _tmp4_;
- Marker* _tmp5_;
- Marker* _tmp6_;
- GeeCollection* _tmp7_;
- GeeCollection* _tmp8_;
- gboolean added = FALSE;
- DataSet* _tmp15_;
- gboolean _tmp16_;
- GeeHashSet* _tmp17_;
-#line 95 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_HOLDING_TANK (self));
-#line 95 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (GEE_IS_COLLECTION (unlink));
-#line 96 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = gee_collection_get_size (unlink);
-#line 96 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (_tmp1_ == 0) {
-#line 97 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return;
-#line 744 "SourceHoldingTank.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = self->priv->unlinking;
-#line 100 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), unlink);
-#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = self->priv->sources;
-#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = self->priv->sources;
-#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), unlink);
-#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = _tmp5_;
-#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp7_ = source_collection_unlink_marked (_tmp3_, _tmp6_, NULL, NULL);
-#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp8_ = _tmp7_;
-#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_tmp8_);
-#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_tmp6_);
-#line 766 "SourceHoldingTank.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp9_;
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (unlink, GEE_TYPE_ITERABLE, GeeIterable));
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _source_it = _tmp9_;
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- while (TRUE) {
-#line 776 "SourceHoldingTank.c"
- GeeIterator* _tmp10_;
- DataSource* source = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- DataSource* _tmp13_;
- gint64 _tmp14_;
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp10_ = _source_it;
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- break;
-#line 789 "SourceHoldingTank.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp11_ = _source_it;
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source = (DataSource*) _tmp12_;
-#line 105 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp13_ = source;
-#line 105 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp14_ = self->priv->ordinal;
-#line 105 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->ordinal = _tmp14_ + 1;
-#line 105 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data_object_internal_set_ordinal (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject), _tmp14_);
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (source);
-#line 807 "SourceHoldingTank.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_source_it);
-#line 811 "SourceHoldingTank.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp15_ = self->priv->tank;
-#line 107 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- added = data_set_add_many (_tmp15_, unlink);
-#line 108 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp16_ = added;
-#line 108 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _vala_assert (_tmp16_, "added");
-#line 111 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp17_ = self->priv->unlinking;
-#line 111 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), unlink);
-#line 113 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_notify_contents_altered (self, unlink, NULL);
-#line 827 "SourceHoldingTank.c"
-}
-
-
-gboolean
-source_holding_tank_has_backlink (SourceHoldingTank* self,
- SourceBacklink* backlink)
-{
- gboolean result = FALSE;
- gint count = 0;
- DataSet* _tmp0_;
-#line 116 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), FALSE);
-#line 116 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE);
-#line 117 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = self->priv->tank;
-#line 117 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- count = data_set_get_count (_tmp0_);
-#line 846 "SourceHoldingTank.c"
- {
- gint ctr = 0;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ctr = 0;
-#line 851 "SourceHoldingTank.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = TRUE;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- while (TRUE) {
-#line 858 "SourceHoldingTank.c"
- gint _tmp3_;
- gint _tmp4_;
- DataSet* _tmp5_;
- gint _tmp6_;
- DataObject* _tmp7_;
- DataSource* _tmp8_;
- gboolean _tmp9_;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!_tmp1_) {
-#line 868 "SourceHoldingTank.c"
- gint _tmp2_;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = ctr;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ctr = _tmp2_ + 1;
-#line 874 "SourceHoldingTank.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = FALSE;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = ctr;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = count;
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!(_tmp3_ < _tmp4_)) {
-#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- break;
-#line 886 "SourceHoldingTank.c"
- }
-#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5_ = self->priv->tank;
-#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = ctr;
-#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp7_ = data_set_get_at (_tmp5_, _tmp6_);
-#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource);
-#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp9_ = data_source_has_backlink (_tmp8_, backlink);
-#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_tmp8_);
-#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (_tmp9_) {
-#line 120 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- result = TRUE;
-#line 120 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return result;
-#line 906 "SourceHoldingTank.c"
- }
- }
- }
- }
-#line 123 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- result = FALSE;
-#line 123 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return result;
-#line 915 "SourceHoldingTank.c"
-}
-
-
-void
-source_holding_tank_remove_backlink (SourceHoldingTank* self,
- SourceBacklink* backlink)
-{
- gint count = 0;
- DataSet* _tmp0_;
-#line 126 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_HOLDING_TANK (self));
-#line 126 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
-#line 127 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = self->priv->tank;
-#line 127 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- count = data_set_get_count (_tmp0_);
-#line 933 "SourceHoldingTank.c"
- {
- gint ctr = 0;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ctr = 0;
-#line 938 "SourceHoldingTank.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = TRUE;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- while (TRUE) {
-#line 945 "SourceHoldingTank.c"
- gint _tmp3_;
- gint _tmp4_;
- DataSet* _tmp5_;
- gint _tmp6_;
- DataObject* _tmp7_;
- DataSource* _tmp8_;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!_tmp1_) {
-#line 954 "SourceHoldingTank.c"
- gint _tmp2_;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = ctr;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ctr = _tmp2_ + 1;
-#line 960 "SourceHoldingTank.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = FALSE;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = ctr;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = count;
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!(_tmp3_ < _tmp4_)) {
-#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- break;
-#line 972 "SourceHoldingTank.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5_ = self->priv->tank;
-#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = ctr;
-#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp7_ = data_set_get_at (_tmp5_, _tmp6_);
-#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource);
-#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data_source_remove_backlink (_tmp8_, backlink);
-#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_tmp8_);
-#line 986 "SourceHoldingTank.c"
- }
- }
- }
-}
-
-
-void
-source_holding_tank_destroy_orphans (SourceHoldingTank* self,
- GeeList* destroy,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed)
-{
- gint _tmp0_;
- gint _tmp1_;
- gboolean removed = FALSE;
- DataSet* _tmp2_;
- gboolean _tmp3_;
- gint count = 0;
- gint _tmp4_;
- gint _tmp5_;
-#line 132 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_HOLDING_TANK (self));
-#line 132 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (GEE_IS_LIST (destroy));
-#line 132 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail ((not_removed == NULL) || GEE_IS_LIST (not_removed));
-#line 134 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (destroy, GEE_TYPE_COLLECTION, GeeCollection));
-#line 134 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = _tmp0_;
-#line 134 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (_tmp1_ == 0) {
-#line 135 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return;
-#line 1023 "SourceHoldingTank.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = self->priv->tank;
-#line 137 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- removed = data_set_remove_many (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (destroy, GEE_TYPE_COLLECTION, GeeCollection));
-#line 138 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = removed;
-#line 138 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _vala_assert (_tmp3_, "removed");
-#line 140 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (destroy, GEE_TYPE_COLLECTION, GeeCollection));
-#line 142 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (destroy, GEE_TYPE_COLLECTION, GeeCollection));
-#line 142 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5_ = _tmp4_;
-#line 142 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- count = _tmp5_;
-#line 1041 "SourceHoldingTank.c"
- {
- gint ctr = 0;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ctr = 0;
-#line 1046 "SourceHoldingTank.c"
- {
- gboolean _tmp6_ = FALSE;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = TRUE;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- while (TRUE) {
-#line 1053 "SourceHoldingTank.c"
- gint _tmp8_;
- gint _tmp9_;
- DataSource* source = NULL;
- gint _tmp10_;
- gpointer _tmp11_;
- DataSource* _tmp12_;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!_tmp6_) {
-#line 1062 "SourceHoldingTank.c"
- gint _tmp7_;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp7_ = ctr;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ctr = _tmp7_ + 1;
-#line 1068 "SourceHoldingTank.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = FALSE;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp8_ = ctr;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp9_ = count;
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- break;
-#line 1080 "SourceHoldingTank.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp10_ = ctr;
-#line 144 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp11_ = gee_list_get (destroy, _tmp10_);
-#line 144 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source = (DataSource*) _tmp11_;
-#line 145 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp12_ = source;
-#line 145 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!data_source_destroy_orphan (_tmp12_, delete_backing)) {
-#line 146 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (NULL != not_removed) {
-#line 1094 "SourceHoldingTank.c"
- DataSource* _tmp13_;
-#line 147 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp13_ = source;
-#line 147 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (not_removed, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_);
-#line 1100 "SourceHoldingTank.c"
- }
- }
-#line 150 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (monitor != NULL) {
-#line 1105 "SourceHoldingTank.c"
- gint _tmp14_;
- gint _tmp15_;
-#line 151 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp14_ = ctr;
-#line 151 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp15_ = count;
-#line 151 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- monitor ((guint64) (_tmp14_ + 1), (guint64) _tmp15_, TRUE, monitor_target);
-#line 1114 "SourceHoldingTank.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (source);
-#line 1118 "SourceHoldingTank.c"
- }
- }
- }
-}
-
-
-static void
-source_holding_tank_on_source_destroyed (SourceHoldingTank* self,
- DataSource* source)
-{
- DataSet* _tmp0_;
- gboolean removed = FALSE;
- DataSet* _tmp1_;
- gboolean _tmp2_;
- SingletonCollection* _tmp3_;
- SingletonCollection* _tmp4_;
-#line 155 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_HOLDING_TANK (self));
-#line 155 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 156 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = self->priv->tank;
-#line 156 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!data_set_contains (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject))) {
-#line 157 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return;
-#line 1145 "SourceHoldingTank.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = self->priv->tank;
-#line 159 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- removed = data_set_remove (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 160 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = removed;
-#line 160 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _vala_assert (_tmp2_, "removed");
-#line 162 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = singleton_collection_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, source);
-#line 162 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = _tmp3_;
-#line 162 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 162 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_tmp4_);
-#line 1163 "SourceHoldingTank.c"
-}
-
-
-void
-source_holding_tank_internal_notify_altered (SourceHoldingTank* self,
- DataSource* source,
- Alteration* alteration)
-{
- DataSet* _tmp0_;
- SourceHoldingTankCheckToKeep _tmp5_;
- void* _tmp5__target;
- gboolean removed = FALSE;
- DataSet* _tmp6_;
- gboolean _tmp7_;
- SourceCollection* _tmp8_;
- SingletonCollection* _tmp10_;
- SingletonCollection* _tmp11_;
- SourceCollection* _tmp12_;
-#line 166 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_HOLDING_TANK (self));
-#line 166 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_DATA_SOURCE (source));
-#line 166 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 167 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = self->priv->tank;
-#line 167 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!data_set_contains (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject))) {
-#line 1192 "SourceHoldingTank.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = _tmp1_;
-#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = source_holding_tank_to_string (self);
-#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = _tmp3_;
-#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_debug ("SourceHoldingTank.vala:168: SourceHoldingTank.internal_notify_altered " \
-"called for %s not stored in %s", _tmp2_, _tmp4_);
-#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_free0 (_tmp4_);
-#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_free0 (_tmp2_);
-#line 171 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return;
-#line 1213 "SourceHoldingTank.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5_ = self->priv->check_to_keep;
-#line 175 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5__target = self->priv->check_to_keep_target;
-#line 175 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (_tmp5_ (source, alteration, _tmp5__target)) {
-#line 176 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return;
-#line 1223 "SourceHoldingTank.c"
- }
-#line 178 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = self->priv->tank;
-#line 178 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- removed = data_set_remove (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 179 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp7_ = removed;
-#line 179 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _vala_assert (_tmp7_, "removed");
-#line 181 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp8_ = self->priv->sources;
-#line 181 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection))) {
-#line 1237 "SourceHoldingTank.c"
- GeeHashSet* _tmp9_;
-#line 182 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp9_ = self->priv->relinks;
-#line 182 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source);
-#line 184 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return;
-#line 1245 "SourceHoldingTank.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp10_ = singleton_collection_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, source);
-#line 187 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp11_ = _tmp10_;
-#line 187 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 187 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (_tmp11_);
-#line 189 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp12_ = self->priv->sources;
-#line 189 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_collection_relink (_tmp12_, source);
-#line 1259 "SourceHoldingTank.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 197 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1268 "SourceHoldingTank.c"
-}
-
-
-static void
-source_holding_tank_on_source_collection_thawed (SourceHoldingTank* self)
-{
- GeeHashSet* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GeeHashSet* copy = NULL;
- GeeHashSet* _tmp3_;
- GeeHashSet* _tmp4_;
- GeeHashSet* _tmp5_;
- GeeHashSet* _tmp6_;
- SourceCollection* _tmp7_;
- GeeHashSet* _tmp8_;
-#line 192 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (IS_SOURCE_HOLDING_TANK (self));
-#line 193 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = self->priv->relinks;
-#line 193 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 193 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = _tmp1_;
-#line 193 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (_tmp2_ == 0) {
-#line 194 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return;
-#line 1297 "SourceHoldingTank.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp3_ = self->priv->relinks;
-#line 197 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 197 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- copy = _tmp4_;
-#line 198 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp5_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 198 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (self->priv->relinks);
-#line 198 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->relinks = _tmp5_;
-#line 200 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp6_ = copy;
-#line 200 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 202 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp7_ = self->priv->sources;
-#line 202 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp8_ = copy;
-#line 202 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_collection_relink_many (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 192 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (copy);
-#line 1323 "SourceHoldingTank.c"
-}
-
-
-gchar*
-source_holding_tank_to_string (SourceHoldingTank* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 205 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), NULL);
-#line 206 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = g_strdup_printf ("SourceHoldingTank @ 0x%p", self);
-#line 206 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- result = _tmp0_;
-#line 206 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return result;
-#line 1340 "SourceHoldingTank.c"
-}
-
-
-static void
-source_holding_tank_real_contents_altered (SourceHoldingTank* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 35 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 35 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 1353 "SourceHoldingTank.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (n_param_values == 3);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data1 = closure->data;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data2 = param_values->data[0].v_pointer;
-#line 1379 "SourceHoldingTank.c"
- } else {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data1 = param_values->data[0].v_pointer;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- data2 = closure->data;
-#line 1385 "SourceHoldingTank.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 1391 "SourceHoldingTank.c"
-}
-
-
-static void
-value_source_holding_tank_init (GValue* value)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- value->data[0].v_pointer = NULL;
-#line 1400 "SourceHoldingTank.c"
-}
-
-
-static void
-value_source_holding_tank_free_value (GValue* value)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (value->data[0].v_pointer) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_unref (value->data[0].v_pointer);
-#line 1411 "SourceHoldingTank.c"
- }
-}
-
-
-static void
-value_source_holding_tank_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (src_value->data[0].v_pointer) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- dest_value->data[0].v_pointer = source_holding_tank_ref (src_value->data[0].v_pointer);
-#line 1424 "SourceHoldingTank.c"
- } else {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1428 "SourceHoldingTank.c"
- }
-}
-
-
-static gpointer
-value_source_holding_tank_peek_pointer (const GValue* value)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return value->data[0].v_pointer;
-#line 1438 "SourceHoldingTank.c"
-}
-
-
-static gchar*
-value_source_holding_tank_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (collect_values[0].v_pointer) {
-#line 1450 "SourceHoldingTank.c"
- SourceHoldingTank * object;
- object = collect_values[0].v_pointer;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1457 "SourceHoldingTank.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.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 1461 "SourceHoldingTank.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- value->data[0].v_pointer = source_holding_tank_ref (object);
-#line 1465 "SourceHoldingTank.c"
- } else {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- value->data[0].v_pointer = NULL;
-#line 1469 "SourceHoldingTank.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return NULL;
-#line 1473 "SourceHoldingTank.c"
-}
-
-
-static gchar*
-value_source_holding_tank_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SourceHoldingTank ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!object_p) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1489 "SourceHoldingTank.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (!value->data[0].v_pointer) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- *object_p = NULL;
-#line 1495 "SourceHoldingTank.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- *object_p = value->data[0].v_pointer;
-#line 1499 "SourceHoldingTank.c"
- } else {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- *object_p = source_holding_tank_ref (value->data[0].v_pointer);
-#line 1503 "SourceHoldingTank.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return NULL;
-#line 1507 "SourceHoldingTank.c"
-}
-
-
-GParamSpec*
-param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecSourceHoldingTank* spec;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SOURCE_HOLDING_TANK), NULL);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return G_PARAM_SPEC (spec);
-#line 1527 "SourceHoldingTank.c"
-}
-
-
-gpointer
-value_get_source_holding_tank (const GValue* value)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_HOLDING_TANK), NULL);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return value->data[0].v_pointer;
-#line 1538 "SourceHoldingTank.c"
-}
-
-
-void
-value_set_source_holding_tank (GValue* value,
- gpointer v_object)
-{
- SourceHoldingTank * old;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_HOLDING_TANK));
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- old = value->data[0].v_pointer;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (v_object) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_HOLDING_TANK));
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- value->data[0].v_pointer = v_object;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_ref (value->data[0].v_pointer);
-#line 1561 "SourceHoldingTank.c"
- } else {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- value->data[0].v_pointer = NULL;
-#line 1565 "SourceHoldingTank.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (old) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_unref (old);
-#line 1571 "SourceHoldingTank.c"
- }
-}
-
-
-void
-value_take_source_holding_tank (GValue* value,
- gpointer v_object)
-{
- SourceHoldingTank * old;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_HOLDING_TANK));
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- old = value->data[0].v_pointer;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (v_object) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_HOLDING_TANK));
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- value->data[0].v_pointer = v_object;
-#line 1593 "SourceHoldingTank.c"
- } else {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- value->data[0].v_pointer = NULL;
-#line 1597 "SourceHoldingTank.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (old) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_unref (old);
-#line 1603 "SourceHoldingTank.c"
- }
-}
-
-
-static void
-source_holding_tank_class_init (SourceHoldingTankClass * klass)
-{
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_parent_class = g_type_class_peek_parent (klass);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ((SourceHoldingTankClass *) klass)->finalize = source_holding_tank_finalize;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_type_class_add_private (klass, sizeof (SourceHoldingTankPrivate));
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ((SourceHoldingTankClass *) klass)->notify_contents_altered = (void (*) (SourceHoldingTank *, GeeCollection*, GeeCollection*)) source_holding_tank_real_notify_contents_altered;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- ((SourceHoldingTankClass *) klass)->contents_altered = source_holding_tank_real_contents_altered;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- source_holding_tank_signals[SOURCE_HOLDING_TANK_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("contents-altered", TYPE_SOURCE_HOLDING_TANK, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceHoldingTankClass, contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_COLLECTION, GEE_TYPE_COLLECTION);
-#line 1623 "SourceHoldingTank.c"
-}
-
-
-static void
-source_holding_tank_instance_init (SourceHoldingTank * self)
-{
- DataSet* _tmp0_;
- GeeHashSet* _tmp1_;
- GeeHashSet* _tmp2_;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv = SOURCE_HOLDING_TANK_GET_PRIVATE (self);
-#line 30 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = data_set_new ();
-#line 30 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->tank = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp1_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 31 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->relinks = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 32 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->unlinking = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->priv->ordinal = (gint64) 0;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self->ref_count = 1;
-#line 1651 "SourceHoldingTank.c"
-}
-
-
-static void
-source_holding_tank_finalize (SourceHoldingTank * obj)
-{
- SourceHoldingTank * self;
- SourceCollection* _tmp0_;
- guint _tmp1_;
- SourceCollection* _tmp2_;
- guint _tmp3_;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_signal_handlers_destroy (self);
-#line 48 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp0_ = self->priv->sources;
-#line 48 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 48 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _source_holding_tank_on_source_destroyed_source_collection_item_destroyed, self);
-#line 49 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _tmp2_ = self->priv->sources;
-#line 49 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_signal_parse_name ("thawed", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 49 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.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) _source_holding_tank_on_source_collection_thawed_data_collection_thawed, self);
-#line 28 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _data_collection_unref0 (self->priv->sources);
-#line 30 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _data_set_unref0 (self->priv->tank);
-#line 31 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (self->priv->relinks);
-#line 32 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- _g_object_unref0 (self->priv->unlinking);
-#line 1687 "SourceHoldingTank.c"
-}
-
-
-GType
-source_holding_tank_get_type (void)
-{
- static volatile gsize source_holding_tank_type_id__volatile = 0;
- if (g_once_init_enter (&source_holding_tank_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_source_holding_tank_init, value_source_holding_tank_free_value, value_source_holding_tank_copy_value, value_source_holding_tank_peek_pointer, "p", value_source_holding_tank_collect_value, "p", value_source_holding_tank_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceHoldingTank), 0, (GInstanceInitFunc) source_holding_tank_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType source_holding_tank_type_id;
- source_holding_tank_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SourceHoldingTank", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&source_holding_tank_type_id__volatile, source_holding_tank_type_id);
- }
- return source_holding_tank_type_id__volatile;
-}
-
-
-gpointer
-source_holding_tank_ref (gpointer instance)
-{
- SourceHoldingTank * self;
- self = instance;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- return instance;
-#line 1716 "SourceHoldingTank.c"
-}
-
-
-void
-source_holding_tank_unref (gpointer instance)
-{
- SourceHoldingTank * self;
- self = instance;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- SOURCE_HOLDING_TANK_GET_CLASS (self)->finalize (self);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1731 "SourceHoldingTank.c"
- }
-}
-
-
-
diff --git a/src/core/SourceInterfaces.c b/src/core/SourceInterfaces.c
deleted file mode 100644
index a68996d..0000000
--- a/src/core/SourceInterfaces.c
+++ /dev/null
@@ -1,290 +0,0 @@
-/* SourceInterfaces.c generated by valac 0.40.4, the Vala compiler
- * generated from SourceInterfaces.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (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 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*/
-/* for each call is expensive.*/
-/**/
-/* When the indexable string has changed, the object should fire an alteration of*/
-/* "indexable:keywords". The prepare methods will not do this.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-
-
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType indexable_get_type (void) G_GNUC_CONST;
-const gchar* indexable_get_indexable_keywords (Indexable* self);
-gchar* indexable_prepare_indexable_string (const gchar* str);
-gboolean is_string_empty (const gchar* s);
-gchar* string_remove_diacritics (const gchar* istring);
-gchar* indexable_prepare_indexable_strings (gchar** strs,
- int strs_length1);
-
-
-const gchar*
-indexable_get_indexable_keywords (Indexable* self)
-{
-#line 19 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- g_return_val_if_fail (IS_INDEXABLE (self), NULL);
-#line 19 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- return INDEXABLE_GET_INTERFACE (self)->get_indexable_keywords (self);
-#line 82 "SourceInterfaces.c"
-}
-
-
-gchar*
-indexable_prepare_indexable_string (const gchar* str)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 22 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (is_string_empty (str)) {
-#line 23 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- result = NULL;
-#line 23 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- return result;
-#line 100 "SourceInterfaces.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp0_ = g_utf8_strdown (str, (gssize) -1);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp2_ = string_remove_diacritics (_tmp1_);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp3_ = _tmp2_;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _g_free0 (_tmp1_);
-#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- result = _tmp3_;
-#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- return result;
-#line 116 "SourceInterfaces.c"
-}
-
-
-gchar*
-indexable_prepare_indexable_strings (gchar** strs,
- int strs_length1)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- GString* builder = NULL;
- GString* _tmp1_;
- gint ctr = 0;
- const gchar* _tmp14_ = NULL;
- GString* _tmp15_;
- const gchar* _tmp16_;
- gchar* _tmp19_;
-#line 28 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (strs == NULL) {
-#line 28 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp0_ = TRUE;
-#line 137 "SourceInterfaces.c"
- } else {
-#line 28 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp0_ = strs_length1 == 0;
-#line 141 "SourceInterfaces.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (_tmp0_) {
-#line 29 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- result = NULL;
-#line 29 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- return result;
-#line 149 "SourceInterfaces.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp1_ = g_string_new ("");
-#line 31 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- builder = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- ctr = 0;
-#line 157 "SourceInterfaces.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 33 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp2_ = TRUE;
-#line 33 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- while (TRUE) {
-#line 164 "SourceInterfaces.c"
- gint _tmp5_;
- const gchar* _tmp6_;
-#line 33 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (!_tmp2_) {
-#line 169 "SourceInterfaces.c"
- gint _tmp3_;
- gint _tmp4_;
-#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp3_ = ctr;
-#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- ctr = _tmp3_ + 1;
-#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp4_ = ctr;
-#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (!(_tmp4_ < strs_length1)) {
-#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- break;
-#line 182 "SourceInterfaces.c"
- }
- }
-#line 33 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp2_ = FALSE;
-#line 34 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp5_ = ctr;
-#line 34 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp6_ = strs[_tmp5_];
-#line 34 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (!is_string_empty (_tmp6_)) {
-#line 193 "SourceInterfaces.c"
- GString* _tmp7_;
- gint _tmp8_;
- const gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gint _tmp12_;
-#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp7_ = builder;
-#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp8_ = ctr;
-#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp9_ = strs[_tmp8_];
-#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp10_ = g_utf8_strdown (_tmp9_, (gssize) -1);
-#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp11_ = _tmp10_;
-#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- g_string_append (_tmp7_, _tmp11_);
-#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _g_free0 (_tmp11_);
-#line 36 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp12_ = ctr;
-#line 36 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (_tmp12_ < (strs_length1 - 1)) {
-#line 218 "SourceInterfaces.c"
- GString* _tmp13_;
-#line 37 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp13_ = builder;
-#line 37 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- g_string_append_c (_tmp13_, ' ');
-#line 224 "SourceInterfaces.c"
- }
- }
- }
- }
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp15_ = builder;
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp16_ = _tmp15_->str;
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (!is_string_empty (_tmp16_)) {
-#line 235 "SourceInterfaces.c"
- GString* _tmp17_;
- const gchar* _tmp18_;
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp17_ = builder;
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp18_ = _tmp17_->str;
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp14_ = _tmp18_;
-#line 244 "SourceInterfaces.c"
- } else {
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp14_ = NULL;
-#line 248 "SourceInterfaces.c"
- }
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _tmp19_ = g_strdup (_tmp14_);
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- result = _tmp19_;
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- _g_string_free0 (builder);
-#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- return result;
-#line 258 "SourceInterfaces.c"
-}
-
-
-static void
-indexable_base_init (IndexableIface * iface)
-{
-#line 18 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 18 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- if (!initialized) {
-#line 18 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala"
- initialized = TRUE;
-#line 271 "SourceInterfaces.c"
- }
-}
-
-
-GType
-indexable_get_type (void)
-{
- static volatile gsize indexable_type_id__volatile = 0;
- if (g_once_init_enter (&indexable_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (IndexableIface), (GBaseInitFunc) indexable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType indexable_type_id;
- indexable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Indexable", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (indexable_type_id, TYPE_DATA_SOURCE);
- g_once_init_leave (&indexable_type_id__volatile, indexable_type_id);
- }
- return indexable_type_id__volatile;
-}
-
-
-
diff --git a/src/core/Tracker.c b/src/core/Tracker.c
deleted file mode 100644
index 3e3aee8..0000000
--- a/src/core/Tracker.c
+++ /dev/null
@@ -1,2135 +0,0 @@
-/* Tracker.c generated by valac 0.40.4, the Vala compiler
- * generated from Tracker.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define CORE_TYPE_TRACKER_ACCUMULATOR (core_tracker_accumulator_get_type ())
-#define CORE_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator))
-#define CORE_IS_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR))
-#define CORE_TRACKER_ACCUMULATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulatorIface))
-
-typedef struct _CoreTrackerAccumulator CoreTrackerAccumulator;
-typedef struct _CoreTrackerAccumulatorIface CoreTrackerAccumulatorIface;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-typedef struct _CoreTrackerPrivate CoreTrackerPrivate;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-#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 _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-typedef struct _CoreParamSpecTracker CoreParamSpecTracker;
-enum {
- CORE_TRACKER_UPDATED_SIGNAL,
- CORE_TRACKER_NUM_SIGNALS
-};
-static guint core_tracker_signals[CORE_TRACKER_NUM_SIGNALS] = {0};
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-typedef struct _CoreViewTrackerPrivate CoreViewTrackerPrivate;
-
-#define CORE_VIEW_TRACKER_TYPE_MUX (core_view_tracker_mux_get_type ())
-#define CORE_VIEW_TRACKER_MUX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux))
-#define CORE_VIEW_TRACKER_MUX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMuxClass))
-#define CORE_VIEW_TRACKER_IS_MUX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_VIEW_TRACKER_TYPE_MUX))
-#define CORE_VIEW_TRACKER_IS_MUX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_VIEW_TRACKER_TYPE_MUX))
-#define CORE_VIEW_TRACKER_MUX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMuxClass))
-
-typedef struct _CoreViewTrackerMux CoreViewTrackerMux;
-typedef struct _CoreViewTrackerMuxClass CoreViewTrackerMuxClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _CoreViewTrackerMuxPrivate CoreViewTrackerMuxPrivate;
-enum {
- CORE_VIEW_TRACKER_MUX_0_PROPERTY,
- CORE_VIEW_TRACKER_MUX_NUM_PROPERTIES
-};
-static GParamSpec* core_view_tracker_mux_properties[CORE_VIEW_TRACKER_MUX_NUM_PROPERTIES];
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _CoreTrackerAccumulatorIface {
- GTypeInterface parent_iface;
- gboolean (*include) (CoreTrackerAccumulator* self, DataObject* object);
- gboolean (*uninclude) (CoreTrackerAccumulator* self, DataObject* object);
- gboolean (*altered) (CoreTrackerAccumulator* self, DataObject* object, Alteration* alteration);
-};
-
-struct _CoreTracker {
- GTypeInstance parent_instance;
- volatile int ref_count;
- CoreTrackerPrivate * priv;
-};
-
-struct _CoreTrackerClass {
- GTypeClass parent_class;
- void (*finalize) (CoreTracker *self);
- void (*updated) (CoreTracker* self);
-};
-
-struct _CoreTrackerPrivate {
- DataCollection* collection;
- GeeCollection* initial;
- CoreTrackerAccumulator* acc;
-};
-
-typedef gboolean (*CoreTrackerIncludeUnincludeObject) (DataObject* object, void* user_data);
-struct _CoreParamSpecTracker {
- GParamSpec parent_instance;
-};
-
-struct _CoreViewTracker {
- CoreTracker parent_instance;
- CoreViewTrackerPrivate * priv;
-};
-
-struct _CoreViewTrackerClass {
- CoreTrackerClass parent_class;
-};
-
-struct _CoreViewTrackerPrivate {
- CoreViewTrackerMux* mux;
-};
-
-struct _CoreViewTrackerMux {
- GObject parent_instance;
- CoreViewTrackerMuxPrivate * priv;
- CoreTrackerAccumulator* all;
- CoreTrackerAccumulator* visible;
- CoreTrackerAccumulator* selected;
-};
-
-struct _CoreViewTrackerMuxClass {
- GObjectClass parent_class;
-};
-
-
-static gpointer core_tracker_parent_class = NULL;
-static gpointer core_view_tracker_parent_class = NULL;
-static gpointer core_view_tracker_mux_parent_class = NULL;
-static CoreTrackerAccumulatorIface * core_view_tracker_mux_core_tracker_accumulator_parent_iface = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType core_tracker_accumulator_get_type (void) G_GNUC_CONST;
-gboolean core_tracker_accumulator_include (CoreTrackerAccumulator* self,
- DataObject* object);
-gboolean core_tracker_accumulator_uninclude (CoreTrackerAccumulator* self,
- DataObject* object);
-gboolean core_tracker_accumulator_altered (CoreTrackerAccumulator* self,
- DataObject* object,
- Alteration* alteration);
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-#define CORE_TRACKER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CORE_TYPE_TRACKER, CoreTrackerPrivate))
-static void core_tracker_on_items_added (CoreTracker* self,
- GeeIterable* added);
-static void _core_tracker_on_items_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self);
-static void core_tracker_on_items_removed (CoreTracker* self,
- GeeIterable* removed);
-static void _core_tracker_on_items_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self);
-static void core_tracker_on_items_altered (CoreTracker* self,
- GeeMap* map);
-static void _core_tracker_on_items_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-CoreTracker* core_tracker_new (DataCollection* collection,
- GeeCollection* initial);
-CoreTracker* core_tracker_construct (GType object_type,
- DataCollection* collection,
- GeeCollection* initial);
-void core_tracker_start (CoreTracker* self,
- CoreTrackerAccumulator* acc);
-GeeCollection* data_collection_get_all (DataCollection* self);
-DataCollection* core_tracker_get_collection (CoreTracker* self);
-void core_tracker_include_uninclude (CoreTracker* self,
- GeeIterable* objects,
- CoreTrackerIncludeUnincludeObject cb,
- void* cb_target);
-static gboolean _core_tracker_accumulator_include_core_tracker_include_uninclude_object (DataObject* object,
- gpointer self);
-static gboolean _core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object (DataObject* object,
- gpointer self);
-static void core_tracker_real_updated (CoreTracker* self);
-static void core_tracker_finalize (CoreTracker * obj);
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-static GType core_view_tracker_mux_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define CORE_VIEW_TRACKER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerPrivate))
-GType view_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-static void core_view_tracker_on_items_shown (CoreViewTracker* self,
- GeeCollection* shown);
-static void _core_view_tracker_on_items_shown_view_collection_items_shown (ViewCollection* _sender,
- GeeCollection* visible,
- gpointer self);
-static void core_view_tracker_on_items_hidden (CoreViewTracker* self,
- GeeCollection* hidden);
-static void _core_view_tracker_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender,
- GeeCollection* hidden,
- gpointer self);
-static void core_view_tracker_on_items_selected (CoreViewTracker* self,
- GeeIterable* selected);
-static void _core_view_tracker_on_items_selected_view_collection_items_selected (ViewCollection* _sender,
- GeeIterable* selected,
- gpointer self);
-static void core_view_tracker_on_items_unselected (CoreViewTracker* self,
- GeeIterable* unselected);
-static void _core_view_tracker_on_items_unselected_view_collection_items_unselected (ViewCollection* _sender,
- GeeIterable* unselected,
- gpointer self);
-CoreViewTracker* core_view_tracker_new (ViewCollection* collection);
-CoreViewTracker* core_view_tracker_construct (GType object_type,
- ViewCollection* collection);
-GeeCollection* view_collection_get_all_unfiltered (ViewCollection* self);
-void core_view_tracker_start (CoreViewTracker* self,
- CoreTrackerAccumulator* all,
- CoreTrackerAccumulator* visible,
- CoreTrackerAccumulator* selected);
-static CoreViewTrackerMux* core_view_tracker_mux_new (CoreTrackerAccumulator* all,
- CoreTrackerAccumulator* visible,
- CoreTrackerAccumulator* selected);
-static CoreViewTrackerMux* core_view_tracker_mux_construct (GType object_type,
- CoreTrackerAccumulator* all,
- CoreTrackerAccumulator* visible,
- CoreTrackerAccumulator* selected);
-static gboolean core_view_tracker_mux_real_include (CoreTrackerAccumulator* base,
- DataObject* object);
-gboolean data_view_is_visible (DataView* self);
-gboolean data_view_is_selected (DataView* self);
-static gboolean core_view_tracker_mux_real_uninclude (CoreTrackerAccumulator* base,
- DataObject* object);
-static gboolean core_view_tracker_mux_real_altered (CoreTrackerAccumulator* base,
- DataObject* object,
- Alteration* alteration);
-static void core_view_tracker_mux_finalize (GObject * obj);
-static void core_view_tracker_finalize (CoreTracker * obj);
-
-
-gboolean
-core_tracker_accumulator_include (CoreTrackerAccumulator* self,
- DataObject* object)
-{
-#line 13 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (CORE_IS_TRACKER_ACCUMULATOR (self), FALSE);
-#line 13 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return CORE_TRACKER_ACCUMULATOR_GET_INTERFACE (self)->include (self, object);
-#line 332 "Tracker.c"
-}
-
-
-gboolean
-core_tracker_accumulator_uninclude (CoreTrackerAccumulator* self,
- DataObject* object)
-{
-#line 15 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (CORE_IS_TRACKER_ACCUMULATOR (self), FALSE);
-#line 15 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return CORE_TRACKER_ACCUMULATOR_GET_INTERFACE (self)->uninclude (self, object);
-#line 344 "Tracker.c"
-}
-
-
-gboolean
-core_tracker_accumulator_altered (CoreTrackerAccumulator* self,
- DataObject* object,
- Alteration* alteration)
-{
-#line 17 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (CORE_IS_TRACKER_ACCUMULATOR (self), FALSE);
-#line 17 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return CORE_TRACKER_ACCUMULATOR_GET_INTERFACE (self)->altered (self, object, alteration);
-#line 357 "Tracker.c"
-}
-
-
-static void
-core_tracker_accumulator_base_init (CoreTrackerAccumulatorIface * iface)
-{
-#line 12 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- static gboolean initialized = FALSE;
-#line 12 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (!initialized) {
-#line 12 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- initialized = TRUE;
-#line 370 "Tracker.c"
- }
-}
-
-
-GType
-core_tracker_accumulator_get_type (void)
-{
- static volatile gsize core_tracker_accumulator_type_id__volatile = 0;
- if (g_once_init_enter (&core_tracker_accumulator_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CoreTrackerAccumulatorIface), (GBaseInitFunc) core_tracker_accumulator_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType core_tracker_accumulator_type_id;
- core_tracker_accumulator_type_id = g_type_register_static (G_TYPE_INTERFACE, "CoreTrackerAccumulator", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (core_tracker_accumulator_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&core_tracker_accumulator_type_id__volatile, core_tracker_accumulator_type_id);
- }
- return core_tracker_accumulator_type_id__volatile;
-}
-
-
-static void
-_core_tracker_on_items_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self)
-{
-#line 40 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_on_items_added ((CoreTracker*) self, added);
-#line 397 "Tracker.c"
-}
-
-
-static void
-_core_tracker_on_items_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self)
-{
-#line 41 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_on_items_removed ((CoreTracker*) self, removed);
-#line 408 "Tracker.c"
-}
-
-
-static void
-_core_tracker_on_items_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 42 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_on_items_altered ((CoreTracker*) self, items);
-#line 419 "Tracker.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 34 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 428 "Tracker.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 35 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return self ? g_object_ref (self) : NULL;
-#line 437 "Tracker.c"
-}
-
-
-CoreTracker*
-core_tracker_construct (GType object_type,
- DataCollection* collection,
- GeeCollection* initial)
-{
- CoreTracker* self = NULL;
- DataCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (IS_DATA_COLLECTION (collection), NULL);
-#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail ((initial == NULL) || GEE_IS_COLLECTION (initial), NULL);
-#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = (CoreTracker*) g_type_create_instance (object_type);
-#line 34 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = _data_collection_ref0 (collection);
-#line 34 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _data_collection_unref0 (self->priv->collection);
-#line 34 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv->collection = _tmp0_;
-#line 35 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _g_object_ref0 (initial);
-#line 35 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->priv->initial);
-#line 35 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv->initial = _tmp1_;
-#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return self;
-#line 469 "Tracker.c"
-}
-
-
-CoreTracker*
-core_tracker_new (DataCollection* collection,
- GeeCollection* initial)
-{
-#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return core_tracker_construct (CORE_TYPE_TRACKER, collection, initial);
-#line 479 "Tracker.c"
-}
-
-
-void
-core_tracker_start (CoreTracker* self,
- CoreTrackerAccumulator* acc)
-{
- CoreTrackerAccumulator* _tmp0_;
- CoreTrackerAccumulator* _tmp1_;
- DataCollection* _tmp2_;
- DataCollection* _tmp3_;
- DataCollection* _tmp4_;
- gboolean _tmp5_ = FALSE;
- GeeCollection* _tmp6_;
-#line 46 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_TRACKER (self));
-#line 46 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_TRACKER_ACCUMULATOR (acc));
-#line 48 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->acc;
-#line 48 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _vala_assert (_tmp0_ == NULL, "this.acc == null");
-#line 50 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _g_object_ref0 (acc);
-#line 50 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->priv->acc);
-#line 50 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv->acc = _tmp1_;
-#line 52 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = self->priv->collection;
-#line 52 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_connect (_tmp2_, "items-added", (GCallback) _core_tracker_on_items_added_data_collection_items_added, self);
-#line 53 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = self->priv->collection;
-#line 53 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_connect (_tmp3_, "items-removed", (GCallback) _core_tracker_on_items_removed_data_collection_items_removed, self);
-#line 54 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = self->priv->collection;
-#line 54 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_connect (_tmp4_, "items-altered", (GCallback) _core_tracker_on_items_altered_data_collection_items_altered, self);
-#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = self->priv->initial;
-#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp6_ != NULL) {
-#line 524 "Tracker.c"
- GeeCollection* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp7_ = self->priv->initial;
-#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp8_ = gee_collection_get_size (_tmp7_);
-#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp9_ = _tmp8_;
-#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp5_ = _tmp9_ > 0;
-#line 536 "Tracker.c"
- } else {
-#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp5_ = FALSE;
-#line 540 "Tracker.c"
- }
-#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp5_) {
-#line 544 "Tracker.c"
- GeeCollection* _tmp10_;
-#line 57 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp10_ = self->priv->initial;
-#line 57 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_on_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 550 "Tracker.c"
- } else {
- GeeCollection* _tmp11_;
-#line 58 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp11_ = self->priv->initial;
-#line 58 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp11_ == NULL) {
-#line 557 "Tracker.c"
- DataCollection* _tmp12_;
- GeeCollection* _tmp13_;
- GeeCollection* _tmp14_;
-#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp12_ = self->priv->collection;
-#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp13_ = data_collection_get_all (_tmp12_);
-#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp14_ = _tmp13_;
-#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_on_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (_tmp14_);
-#line 571 "Tracker.c"
- }
- }
-#line 61 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->priv->initial);
-#line 61 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv->initial = NULL;
-#line 578 "Tracker.c"
-}
-
-
-DataCollection*
-core_tracker_get_collection (CoreTracker* self)
-{
- DataCollection* result = NULL;
- DataCollection* _tmp0_;
- DataCollection* _tmp1_;
-#line 64 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (CORE_IS_TRACKER (self), NULL);
-#line 65 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->collection;
-#line 65 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _data_collection_ref0 (_tmp0_);
-#line 65 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- result = _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return result;
-#line 598 "Tracker.c"
-}
-
-
-static gboolean
-_core_tracker_accumulator_include_core_tracker_include_uninclude_object (DataObject* object,
- gpointer self)
-{
- gboolean result;
- result = core_tracker_accumulator_include ((CoreTrackerAccumulator*) self, object);
-#line 69 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return result;
-#line 610 "Tracker.c"
-}
-
-
-static void
-core_tracker_on_items_added (CoreTracker* self,
- GeeIterable* added)
-{
- CoreTrackerAccumulator* _tmp0_;
-#line 68 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_TRACKER (self));
-#line 68 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 69 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->acc;
-#line 69 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_include_uninclude (self, added, _core_tracker_accumulator_include_core_tracker_include_uninclude_object, _tmp0_);
-#line 627 "Tracker.c"
-}
-
-
-static gboolean
-_core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object (DataObject* object,
- gpointer self)
-{
- gboolean result;
- result = core_tracker_accumulator_uninclude ((CoreTrackerAccumulator*) self, object);
-#line 73 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return result;
-#line 639 "Tracker.c"
-}
-
-
-static void
-core_tracker_on_items_removed (CoreTracker* self,
- GeeIterable* removed)
-{
- CoreTrackerAccumulator* _tmp0_;
-#line 72 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_TRACKER (self));
-#line 72 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 73 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->acc;
-#line 73 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_include_uninclude (self, removed, _core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object, _tmp0_);
-#line 656 "Tracker.c"
-}
-
-
-void
-core_tracker_include_uninclude (CoreTracker* self,
- GeeIterable* objects,
- CoreTrackerIncludeUnincludeObject cb,
- void* cb_target)
-{
- gboolean fire_updated = FALSE;
- gboolean _tmp7_;
-#line 77 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_TRACKER (self));
-#line 77 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (GEE_IS_ITERABLE (objects));
-#line 78 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = FALSE;
-#line 674 "Tracker.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = gee_iterable_iterator (objects);
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _object_it = _tmp0_;
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- while (TRUE) {
-#line 684 "Tracker.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- gboolean _tmp4_ = FALSE;
- DataObject* _tmp5_;
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _object_it;
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- break;
-#line 697 "Tracker.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = _object_it;
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- object = (DataObject*) _tmp3_;
-#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp5_ = object;
-#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (cb (_tmp5_, cb_target)) {
-#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = TRUE;
-#line 711 "Tracker.c"
- } else {
- gboolean _tmp6_;
-#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = fire_updated;
-#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = _tmp6_;
-#line 718 "Tracker.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp4_;
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (object);
-#line 724 "Tracker.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (_object_it);
-#line 728 "Tracker.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp7_ = fire_updated;
-#line 82 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp7_) {
-#line 83 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_emit (self, core_tracker_signals[CORE_TRACKER_UPDATED_SIGNAL], 0);
-#line 736 "Tracker.c"
- }
-}
-
-
-static void
-core_tracker_on_items_altered (CoreTracker* self,
- GeeMap* map)
-{
- gboolean fire_updated = FALSE;
- gboolean _tmp16_;
-#line 86 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_TRACKER (self));
-#line 86 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 87 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = FALSE;
-#line 753 "Tracker.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = gee_map_get_keys (map);
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _tmp0_;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = _tmp3_;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (_tmp2_);
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _object_it = _tmp4_;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- while (TRUE) {
-#line 777 "Tracker.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- gboolean _tmp8_ = FALSE;
- CoreTrackerAccumulator* _tmp9_;
- DataObject* _tmp10_;
- DataObject* _tmp11_;
- gpointer _tmp12_;
- Alteration* _tmp13_;
- gboolean _tmp14_;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp5_ = _object_it;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- break;
-#line 795 "Tracker.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = _object_it;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- object = (DataObject*) _tmp7_;
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp9_ = self->priv->acc;
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp10_ = object;
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp11_ = object;
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp12_ = gee_map_get (map, _tmp11_);
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp13_ = (Alteration*) _tmp12_;
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp14_ = core_tracker_accumulator_altered (_tmp9_, _tmp10_, _tmp13_);
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _alteration_unref0 (_tmp13_);
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp14_) {
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp8_ = TRUE;
-#line 821 "Tracker.c"
- } else {
- gboolean _tmp15_;
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp15_ = fire_updated;
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp8_ = _tmp15_;
-#line 828 "Tracker.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp8_;
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (object);
-#line 834 "Tracker.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (_object_it);
-#line 838 "Tracker.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp16_ = fire_updated;
-#line 91 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp16_) {
-#line 92 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_emit (self, core_tracker_signals[CORE_TRACKER_UPDATED_SIGNAL], 0);
-#line 846 "Tracker.c"
- }
-}
-
-
-static void
-core_tracker_real_updated (CoreTracker* self)
-{
-}
-
-
-static void
-core_value_tracker_init (GValue* value)
-{
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- value->data[0].v_pointer = NULL;
-#line 862 "Tracker.c"
-}
-
-
-static void
-core_value_tracker_free_value (GValue* value)
-{
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (value->data[0].v_pointer) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_unref (value->data[0].v_pointer);
-#line 873 "Tracker.c"
- }
-}
-
-
-static void
-core_value_tracker_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (src_value->data[0].v_pointer) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- dest_value->data[0].v_pointer = core_tracker_ref (src_value->data[0].v_pointer);
-#line 886 "Tracker.c"
- } else {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 890 "Tracker.c"
- }
-}
-
-
-static gpointer
-core_value_tracker_peek_pointer (const GValue* value)
-{
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return value->data[0].v_pointer;
-#line 900 "Tracker.c"
-}
-
-
-static gchar*
-core_value_tracker_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (collect_values[0].v_pointer) {
-#line 912 "Tracker.c"
- CoreTracker * object;
- object = collect_values[0].v_pointer;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 919 "Tracker.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.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 923 "Tracker.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- value->data[0].v_pointer = core_tracker_ref (object);
-#line 927 "Tracker.c"
- } else {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- value->data[0].v_pointer = NULL;
-#line 931 "Tracker.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return NULL;
-#line 935 "Tracker.c"
-}
-
-
-static gchar*
-core_value_tracker_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- CoreTracker ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (!object_p) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 951 "Tracker.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (!value->data[0].v_pointer) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- *object_p = NULL;
-#line 957 "Tracker.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- *object_p = value->data[0].v_pointer;
-#line 961 "Tracker.c"
- } else {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- *object_p = core_tracker_ref (value->data[0].v_pointer);
-#line 965 "Tracker.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return NULL;
-#line 969 "Tracker.c"
-}
-
-
-GParamSpec*
-core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- CoreParamSpecTracker* spec;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (g_type_is_a (object_type, CORE_TYPE_TRACKER), NULL);
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return G_PARAM_SPEC (spec);
-#line 989 "Tracker.c"
-}
-
-
-gpointer
-core_value_get_tracker (const GValue* value)
-{
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CORE_TYPE_TRACKER), NULL);
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return value->data[0].v_pointer;
-#line 1000 "Tracker.c"
-}
-
-
-void
-core_value_set_tracker (GValue* value,
- gpointer v_object)
-{
- CoreTracker * old;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CORE_TYPE_TRACKER));
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- old = value->data[0].v_pointer;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (v_object) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, CORE_TYPE_TRACKER));
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- value->data[0].v_pointer = v_object;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_ref (value->data[0].v_pointer);
-#line 1023 "Tracker.c"
- } else {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- value->data[0].v_pointer = NULL;
-#line 1027 "Tracker.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (old) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_unref (old);
-#line 1033 "Tracker.c"
- }
-}
-
-
-void
-core_value_take_tracker (GValue* value,
- gpointer v_object)
-{
- CoreTracker * old;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CORE_TYPE_TRACKER));
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- old = value->data[0].v_pointer;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (v_object) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, CORE_TYPE_TRACKER));
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- value->data[0].v_pointer = v_object;
-#line 1055 "Tracker.c"
- } else {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- value->data[0].v_pointer = NULL;
-#line 1059 "Tracker.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (old) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_unref (old);
-#line 1065 "Tracker.c"
- }
-}
-
-
-static void
-core_tracker_class_init (CoreTrackerClass * klass)
-{
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_parent_class = g_type_class_peek_parent (klass);
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- ((CoreTrackerClass *) klass)->finalize = core_tracker_finalize;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_type_class_add_private (klass, sizeof (CoreTrackerPrivate));
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- ((CoreTrackerClass *) klass)->updated = core_tracker_real_updated;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_signals[CORE_TRACKER_UPDATED_SIGNAL] = g_signal_new ("updated", CORE_TYPE_TRACKER, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (CoreTrackerClass, updated), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 1083 "Tracker.c"
-}
-
-
-static void
-core_tracker_instance_init (CoreTracker * self)
-{
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv = CORE_TRACKER_GET_PRIVATE (self);
-#line 28 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv->acc = NULL;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->ref_count = 1;
-#line 1096 "Tracker.c"
-}
-
-
-static void
-core_tracker_finalize (CoreTracker * obj)
-{
- CoreTracker * self;
- CoreTrackerAccumulator* _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, CORE_TYPE_TRACKER, CoreTracker);
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_handlers_destroy (self);
-#line 39 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->acc;
-#line 39 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp0_ != NULL) {
-#line 1113 "Tracker.c"
- DataCollection* _tmp1_;
- guint _tmp2_;
- DataCollection* _tmp3_;
- guint _tmp4_;
- DataCollection* _tmp5_;
- guint _tmp6_;
-#line 40 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = self->priv->collection;
-#line 40 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE);
-#line 40 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _core_tracker_on_items_added_data_collection_items_added, self);
-#line 41 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = self->priv->collection;
-#line 41 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE);
-#line 41 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _core_tracker_on_items_removed_data_collection_items_removed, self);
-#line 42 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp5_ = self->priv->collection;
-#line 42 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp6_, NULL, FALSE);
-#line 42 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _core_tracker_on_items_altered_data_collection_items_altered, self);
-#line 1138 "Tracker.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _data_collection_unref0 (self->priv->collection);
-#line 27 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->priv->initial);
-#line 28 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->priv->acc);
-#line 1146 "Tracker.c"
-}
-
-
-GType
-core_tracker_get_type (void)
-{
- static volatile gsize core_tracker_type_id__volatile = 0;
- if (g_once_init_enter (&core_tracker_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { core_value_tracker_init, core_value_tracker_free_value, core_value_tracker_copy_value, core_value_tracker_peek_pointer, "p", core_value_tracker_collect_value, "p", core_value_tracker_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (CoreTrackerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) core_tracker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CoreTracker), 0, (GInstanceInitFunc) core_tracker_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType core_tracker_type_id;
- core_tracker_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CoreTracker", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&core_tracker_type_id__volatile, core_tracker_type_id);
- }
- return core_tracker_type_id__volatile;
-}
-
-
-gpointer
-core_tracker_ref (gpointer instance)
-{
- CoreTracker * self;
- self = instance;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return instance;
-#line 1175 "Tracker.c"
-}
-
-
-void
-core_tracker_unref (gpointer instance)
-{
- CoreTracker * self;
- self = instance;
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- CORE_TRACKER_GET_CLASS (self)->finalize (self);
-#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1190 "Tracker.c"
- }
-}
-
-
-static void
-_core_view_tracker_on_items_shown_view_collection_items_shown (ViewCollection* _sender,
- GeeCollection* visible,
- gpointer self)
-{
-#line 173 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_view_tracker_on_items_shown ((CoreViewTracker*) self, visible);
-#line 1202 "Tracker.c"
-}
-
-
-static void
-_core_view_tracker_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender,
- GeeCollection* hidden,
- gpointer self)
-{
-#line 174 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_view_tracker_on_items_hidden ((CoreViewTracker*) self, hidden);
-#line 1213 "Tracker.c"
-}
-
-
-static void
-_core_view_tracker_on_items_selected_view_collection_items_selected (ViewCollection* _sender,
- GeeIterable* selected,
- gpointer self)
-{
-#line 175 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_view_tracker_on_items_selected ((CoreViewTracker*) self, selected);
-#line 1224 "Tracker.c"
-}
-
-
-static void
-_core_view_tracker_on_items_unselected_view_collection_items_unselected (ViewCollection* _sender,
- GeeIterable* unselected,
- gpointer self)
-{
-#line 176 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_view_tracker_on_items_unselected ((CoreViewTracker*) self, unselected);
-#line 1235 "Tracker.c"
-}
-
-
-CoreViewTracker*
-core_view_tracker_construct (GType object_type,
- ViewCollection* collection)
-{
- CoreViewTracker* self = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 165 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (collection), NULL);
-#line 166 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = view_collection_get_all_unfiltered (collection);
-#line 166 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _tmp0_;
-#line 166 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = (CoreViewTracker*) core_tracker_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (collection, TYPE_DATA_COLLECTION, DataCollection), _tmp1_);
-#line 166 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (_tmp1_);
-#line 165 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return self;
-#line 1258 "Tracker.c"
-}
-
-
-CoreViewTracker*
-core_view_tracker_new (ViewCollection* collection)
-{
-#line 165 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return core_view_tracker_construct (CORE_TYPE_VIEW_TRACKER, collection);
-#line 1267 "Tracker.c"
-}
-
-
-void
-core_view_tracker_start (CoreViewTracker* self,
- CoreTrackerAccumulator* all,
- CoreTrackerAccumulator* visible,
- CoreTrackerAccumulator* selected)
-{
- CoreViewTrackerMux* _tmp0_;
- CoreViewTrackerMux* _tmp1_;
- ViewCollection* collection = NULL;
- DataCollection* _tmp2_;
- ViewCollection* _tmp3_;
- CoreViewTrackerMux* _tmp4_;
-#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_VIEW_TRACKER (self));
-#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail ((all == NULL) || CORE_IS_TRACKER_ACCUMULATOR (all));
-#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail ((visible == NULL) || CORE_IS_TRACKER_ACCUMULATOR (visible));
-#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail ((selected == NULL) || CORE_IS_TRACKER_ACCUMULATOR (selected));
-#line 181 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->mux;
-#line 181 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _vala_assert (_tmp0_ == NULL, "mux == null");
-#line 183 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = core_view_tracker_mux_new (all, visible, selected);
-#line 183 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->priv->mux);
-#line 183 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv->mux = _tmp1_;
-#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = core_tracker_get_collection (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker));
-#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_VIEW_COLLECTION) ? ((ViewCollection*) _tmp2_) : NULL;
-#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp3_ == NULL) {
-#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _data_collection_unref0 (_tmp2_);
-#line 1309 "Tracker.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- collection = _tmp3_;
-#line 186 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _vala_assert (collection != NULL, "collection != null");
-#line 187 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_connect (collection, "items-shown", (GCallback) _core_view_tracker_on_items_shown_view_collection_items_shown, self);
-#line 188 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_connect (collection, "items-hidden", (GCallback) _core_view_tracker_on_items_hidden_view_collection_items_hidden, self);
-#line 189 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_connect (collection, "items-selected", (GCallback) _core_view_tracker_on_items_selected_view_collection_items_selected, self);
-#line 190 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_connect (collection, "items-unselected", (GCallback) _core_view_tracker_on_items_unselected_view_collection_items_unselected, self);
-#line 192 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = self->priv->mux;
-#line 192 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_start (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator));
-#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _data_collection_unref0 (collection);
-#line 1329 "Tracker.c"
-}
-
-
-static void
-core_view_tracker_on_items_shown (CoreViewTracker* self,
- GeeCollection* shown)
-{
- CoreViewTrackerMux* _tmp0_;
- CoreTrackerAccumulator* _tmp1_;
-#line 195 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_VIEW_TRACKER (self));
-#line 195 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (GEE_IS_COLLECTION (shown));
-#line 196 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->mux;
-#line 196 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _tmp0_->visible;
-#line 196 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp1_ != NULL) {
-#line 1349 "Tracker.c"
- CoreViewTrackerMux* _tmp2_;
- CoreTrackerAccumulator* _tmp3_;
-#line 197 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = self->priv->mux;
-#line 197 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = _tmp2_->visible;
-#line 197 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_include_uninclude (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), G_TYPE_CHECK_INSTANCE_CAST (shown, GEE_TYPE_ITERABLE, GeeIterable), _core_tracker_accumulator_include_core_tracker_include_uninclude_object, _tmp3_);
-#line 1358 "Tracker.c"
- }
-}
-
-
-static void
-core_view_tracker_on_items_hidden (CoreViewTracker* self,
- GeeCollection* hidden)
-{
- CoreViewTrackerMux* _tmp0_;
- CoreTrackerAccumulator* _tmp1_;
-#line 200 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_VIEW_TRACKER (self));
-#line 200 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (GEE_IS_COLLECTION (hidden));
-#line 201 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->mux;
-#line 201 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _tmp0_->visible;
-#line 201 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp1_ != NULL) {
-#line 1379 "Tracker.c"
- CoreViewTrackerMux* _tmp2_;
- CoreTrackerAccumulator* _tmp3_;
-#line 202 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = self->priv->mux;
-#line 202 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = _tmp2_->visible;
-#line 202 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_include_uninclude (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), G_TYPE_CHECK_INSTANCE_CAST (hidden, GEE_TYPE_ITERABLE, GeeIterable), _core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object, _tmp3_);
-#line 1388 "Tracker.c"
- }
-}
-
-
-static void
-core_view_tracker_on_items_selected (CoreViewTracker* self,
- GeeIterable* selected)
-{
- CoreViewTrackerMux* _tmp0_;
- CoreTrackerAccumulator* _tmp1_;
-#line 205 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_VIEW_TRACKER (self));
-#line 205 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (GEE_IS_ITERABLE (selected));
-#line 206 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->mux;
-#line 206 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _tmp0_->selected;
-#line 206 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp1_ != NULL) {
-#line 1409 "Tracker.c"
- CoreViewTrackerMux* _tmp2_;
- CoreTrackerAccumulator* _tmp3_;
-#line 207 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = self->priv->mux;
-#line 207 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = _tmp2_->selected;
-#line 207 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_include_uninclude (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), selected, _core_tracker_accumulator_include_core_tracker_include_uninclude_object, _tmp3_);
-#line 1418 "Tracker.c"
- }
-}
-
-
-static void
-core_view_tracker_on_items_unselected (CoreViewTracker* self,
- GeeIterable* unselected)
-{
- CoreViewTrackerMux* _tmp0_;
- CoreTrackerAccumulator* _tmp1_;
-#line 210 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (CORE_IS_VIEW_TRACKER (self));
-#line 210 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_if_fail (GEE_IS_ITERABLE (unselected));
-#line 211 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->mux;
-#line 211 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _tmp0_->selected;
-#line 211 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp1_ != NULL) {
-#line 1439 "Tracker.c"
- CoreViewTrackerMux* _tmp2_;
- CoreTrackerAccumulator* _tmp3_;
-#line 212 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = self->priv->mux;
-#line 212 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = _tmp2_->selected;
-#line 212 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_tracker_include_uninclude (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), unselected, _core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object, _tmp3_);
-#line 1448 "Tracker.c"
- }
-}
-
-
-static CoreViewTrackerMux*
-core_view_tracker_mux_construct (GType object_type,
- CoreTrackerAccumulator* all,
- CoreTrackerAccumulator* visible,
- CoreTrackerAccumulator* selected)
-{
- CoreViewTrackerMux * self = NULL;
- CoreTrackerAccumulator* _tmp0_;
- CoreTrackerAccumulator* _tmp1_;
- CoreTrackerAccumulator* _tmp2_;
-#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail ((all == NULL) || CORE_IS_TRACKER_ACCUMULATOR (all), NULL);
-#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail ((visible == NULL) || CORE_IS_TRACKER_ACCUMULATOR (visible), NULL);
-#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail ((selected == NULL) || CORE_IS_TRACKER_ACCUMULATOR (selected), NULL);
-#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = (CoreViewTrackerMux*) g_object_new (object_type, NULL);
-#line 106 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = _g_object_ref0 (all);
-#line 106 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->all);
-#line 106 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->all = _tmp0_;
-#line 107 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = _g_object_ref0 (visible);
-#line 107 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->visible);
-#line 107 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->visible = _tmp1_;
-#line 108 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = _g_object_ref0 (selected);
-#line 108 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->selected);
-#line 108 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->selected = _tmp2_;
-#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return self;
-#line 1491 "Tracker.c"
-}
-
-
-static CoreViewTrackerMux*
-core_view_tracker_mux_new (CoreTrackerAccumulator* all,
- CoreTrackerAccumulator* visible,
- CoreTrackerAccumulator* selected)
-{
-#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return core_view_tracker_mux_construct (CORE_VIEW_TRACKER_TYPE_MUX, all, visible, selected);
-#line 1502 "Tracker.c"
-}
-
-
-static gboolean
-core_view_tracker_mux_real_include (CoreTrackerAccumulator* base,
- DataObject* object)
-{
- CoreViewTrackerMux * self;
- gboolean result = FALSE;
- DataView* view = NULL;
- DataView* _tmp0_;
- gboolean fire_updated = FALSE;
- CoreTrackerAccumulator* _tmp1_;
- gboolean _tmp6_ = FALSE;
- CoreTrackerAccumulator* _tmp7_;
- gboolean _tmp13_ = FALSE;
- CoreTrackerAccumulator* _tmp14_;
-#line 111 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux);
-#line 111 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 112 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 112 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- view = _tmp0_;
-#line 114 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = FALSE;
-#line 116 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = self->all;
-#line 116 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp1_ != NULL) {
-#line 1534 "Tracker.c"
- gboolean _tmp2_ = FALSE;
- CoreTrackerAccumulator* _tmp3_;
- DataView* _tmp4_;
-#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = self->all;
-#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = view;
-#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_include (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject))) {
-#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = TRUE;
-#line 1546 "Tracker.c"
- } else {
- gboolean _tmp5_;
-#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp5_ = fire_updated;
-#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = _tmp5_;
-#line 1553 "Tracker.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp2_;
-#line 1557 "Tracker.c"
- }
-#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp7_ = self->visible;
-#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp7_ != NULL) {
-#line 1563 "Tracker.c"
- DataView* _tmp8_;
-#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp8_ = view;
-#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = data_view_is_visible (_tmp8_);
-#line 1569 "Tracker.c"
- } else {
-#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = FALSE;
-#line 1573 "Tracker.c"
- }
-#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp6_) {
-#line 1577 "Tracker.c"
- gboolean _tmp9_ = FALSE;
- CoreTrackerAccumulator* _tmp10_;
- DataView* _tmp11_;
-#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp10_ = self->visible;
-#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp11_ = view;
-#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_include (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject))) {
-#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp9_ = TRUE;
-#line 1589 "Tracker.c"
- } else {
- gboolean _tmp12_;
-#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp12_ = fire_updated;
-#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp9_ = _tmp12_;
-#line 1596 "Tracker.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp9_;
-#line 1600 "Tracker.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp14_ = self->selected;
-#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp14_ != NULL) {
-#line 1606 "Tracker.c"
- DataView* _tmp15_;
-#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp15_ = view;
-#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp13_ = data_view_is_selected (_tmp15_);
-#line 1612 "Tracker.c"
- } else {
-#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp13_ = FALSE;
-#line 1616 "Tracker.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp13_) {
-#line 1620 "Tracker.c"
- gboolean _tmp16_ = FALSE;
- CoreTrackerAccumulator* _tmp17_;
- DataView* _tmp18_;
-#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp17_ = self->selected;
-#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp18_ = view;
-#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_include (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_OBJECT, DataObject))) {
-#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp16_ = TRUE;
-#line 1632 "Tracker.c"
- } else {
- gboolean _tmp19_;
-#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp19_ = fire_updated;
-#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp16_ = _tmp19_;
-#line 1639 "Tracker.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp16_;
-#line 1643 "Tracker.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- result = fire_updated;
-#line 125 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (view);
-#line 125 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return result;
-#line 1651 "Tracker.c"
-}
-
-
-static gboolean
-core_view_tracker_mux_real_uninclude (CoreTrackerAccumulator* base,
- DataObject* object)
-{
- CoreViewTrackerMux * self;
- gboolean result = FALSE;
- DataView* view = NULL;
- DataView* _tmp0_;
- gboolean fire_updated = FALSE;
- CoreTrackerAccumulator* _tmp1_;
- gboolean _tmp6_ = FALSE;
- CoreTrackerAccumulator* _tmp7_;
- gboolean _tmp13_ = FALSE;
- CoreTrackerAccumulator* _tmp14_;
-#line 128 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux);
-#line 128 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 129 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 129 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- view = _tmp0_;
-#line 131 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = FALSE;
-#line 133 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = self->all;
-#line 133 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp1_ != NULL) {
-#line 1683 "Tracker.c"
- gboolean _tmp2_ = FALSE;
- CoreTrackerAccumulator* _tmp3_;
- DataView* _tmp4_;
-#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = self->all;
-#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = view;
-#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_uninclude (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject))) {
-#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = TRUE;
-#line 1695 "Tracker.c"
- } else {
- gboolean _tmp5_;
-#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp5_ = fire_updated;
-#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = _tmp5_;
-#line 1702 "Tracker.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp2_;
-#line 1706 "Tracker.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp7_ = self->visible;
-#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp7_ != NULL) {
-#line 1712 "Tracker.c"
- DataView* _tmp8_;
-#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp8_ = view;
-#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = data_view_is_visible (_tmp8_);
-#line 1718 "Tracker.c"
- } else {
-#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = FALSE;
-#line 1722 "Tracker.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp6_) {
-#line 1726 "Tracker.c"
- gboolean _tmp9_ = FALSE;
- CoreTrackerAccumulator* _tmp10_;
- DataView* _tmp11_;
-#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp10_ = self->visible;
-#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp11_ = view;
-#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_uninclude (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject))) {
-#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp9_ = TRUE;
-#line 1738 "Tracker.c"
- } else {
- gboolean _tmp12_;
-#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp12_ = fire_updated;
-#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp9_ = _tmp12_;
-#line 1745 "Tracker.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp9_;
-#line 1749 "Tracker.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp14_ = self->selected;
-#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp14_ != NULL) {
-#line 1755 "Tracker.c"
- DataView* _tmp15_;
-#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp15_ = view;
-#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp13_ = data_view_is_selected (_tmp15_);
-#line 1761 "Tracker.c"
- } else {
-#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp13_ = FALSE;
-#line 1765 "Tracker.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp13_) {
-#line 1769 "Tracker.c"
- gboolean _tmp16_ = FALSE;
- CoreTrackerAccumulator* _tmp17_;
- DataView* _tmp18_;
-#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp17_ = self->selected;
-#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp18_ = view;
-#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_uninclude (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_OBJECT, DataObject))) {
-#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp16_ = TRUE;
-#line 1781 "Tracker.c"
- } else {
- gboolean _tmp19_;
-#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp19_ = fire_updated;
-#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp16_ = _tmp19_;
-#line 1788 "Tracker.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp16_;
-#line 1792 "Tracker.c"
- }
-#line 142 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- result = fire_updated;
-#line 142 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (view);
-#line 142 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return result;
-#line 1800 "Tracker.c"
-}
-
-
-static gboolean
-core_view_tracker_mux_real_altered (CoreTrackerAccumulator* base,
- DataObject* object,
- Alteration* alteration)
-{
- CoreViewTrackerMux * self;
- gboolean result = FALSE;
- DataView* view = NULL;
- DataView* _tmp0_;
- gboolean fire_updated = FALSE;
- CoreTrackerAccumulator* _tmp1_;
- gboolean _tmp6_ = FALSE;
- CoreTrackerAccumulator* _tmp7_;
- gboolean _tmp13_ = FALSE;
- CoreTrackerAccumulator* _tmp14_;
-#line 145 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux);
-#line 145 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 145 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 146 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 146 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- view = _tmp0_;
-#line 148 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = FALSE;
-#line 150 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = self->all;
-#line 150 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp1_ != NULL) {
-#line 1835 "Tracker.c"
- gboolean _tmp2_ = FALSE;
- CoreTrackerAccumulator* _tmp3_;
- DataView* _tmp4_;
-#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = self->all;
-#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = view;
-#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_altered (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject), alteration)) {
-#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = TRUE;
-#line 1847 "Tracker.c"
- } else {
- gboolean _tmp5_;
-#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp5_ = fire_updated;
-#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = _tmp5_;
-#line 1854 "Tracker.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp2_;
-#line 1858 "Tracker.c"
- }
-#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp7_ = self->visible;
-#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp7_ != NULL) {
-#line 1864 "Tracker.c"
- DataView* _tmp8_;
-#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp8_ = view;
-#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = data_view_is_visible (_tmp8_);
-#line 1870 "Tracker.c"
- } else {
-#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = FALSE;
-#line 1874 "Tracker.c"
- }
-#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp6_) {
-#line 1878 "Tracker.c"
- gboolean _tmp9_ = FALSE;
- CoreTrackerAccumulator* _tmp10_;
- DataView* _tmp11_;
-#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp10_ = self->visible;
-#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp11_ = view;
-#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_altered (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject), alteration)) {
-#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp9_ = TRUE;
-#line 1890 "Tracker.c"
- } else {
- gboolean _tmp12_;
-#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp12_ = fire_updated;
-#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp9_ = _tmp12_;
-#line 1897 "Tracker.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp9_;
-#line 1901 "Tracker.c"
- }
-#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp14_ = self->selected;
-#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp14_ != NULL) {
-#line 1907 "Tracker.c"
- DataView* _tmp15_;
-#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp15_ = view;
-#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp13_ = data_view_is_selected (_tmp15_);
-#line 1913 "Tracker.c"
- } else {
-#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp13_ = FALSE;
-#line 1917 "Tracker.c"
- }
-#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp13_) {
-#line 1921 "Tracker.c"
- gboolean _tmp16_ = FALSE;
- CoreTrackerAccumulator* _tmp17_;
- DataView* _tmp18_;
-#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp17_ = self->selected;
-#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp18_ = view;
-#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (core_tracker_accumulator_altered (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_OBJECT, DataObject), alteration)) {
-#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp16_ = TRUE;
-#line 1933 "Tracker.c"
- } else {
- gboolean _tmp19_;
-#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp19_ = fire_updated;
-#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp16_ = _tmp19_;
-#line 1940 "Tracker.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- fire_updated = _tmp16_;
-#line 1944 "Tracker.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- result = fire_updated;
-#line 159 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (view);
-#line 159 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- return result;
-#line 1952 "Tracker.c"
-}
-
-
-static void
-core_view_tracker_mux_class_init (CoreViewTrackerMuxClass * klass)
-{
-#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_view_tracker_mux_parent_class = g_type_class_peek_parent (klass);
-#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- G_OBJECT_CLASS (klass)->finalize = core_view_tracker_mux_finalize;
-#line 1963 "Tracker.c"
-}
-
-
-static void
-core_view_tracker_mux_core_tracker_accumulator_interface_init (CoreTrackerAccumulatorIface * iface)
-{
-#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_view_tracker_mux_core_tracker_accumulator_parent_iface = g_type_interface_peek_parent (iface);
-#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- iface->include = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) core_view_tracker_mux_real_include;
-#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- iface->uninclude = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) core_view_tracker_mux_real_uninclude;
-#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- iface->altered = (gboolean (*) (CoreTrackerAccumulator *, DataObject*, Alteration*)) core_view_tracker_mux_real_altered;
-#line 1978 "Tracker.c"
-}
-
-
-static void
-core_view_tracker_mux_instance_init (CoreViewTrackerMux * self)
-{
-}
-
-
-static void
-core_view_tracker_mux_finalize (GObject * obj)
-{
- CoreViewTrackerMux * self;
-#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux);
-#line 101 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->all);
-#line 102 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->visible);
-#line 103 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->selected);
-#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- G_OBJECT_CLASS (core_view_tracker_mux_parent_class)->finalize (obj);
-#line 2002 "Tracker.c"
-}
-
-
-static GType
-core_view_tracker_mux_get_type (void)
-{
- static volatile gsize core_view_tracker_mux_type_id__volatile = 0;
- if (g_once_init_enter (&core_view_tracker_mux_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CoreViewTrackerMuxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) core_view_tracker_mux_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CoreViewTrackerMux), 0, (GInstanceInitFunc) core_view_tracker_mux_instance_init, NULL };
- static const GInterfaceInfo core_tracker_accumulator_info = { (GInterfaceInitFunc) core_view_tracker_mux_core_tracker_accumulator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType core_view_tracker_mux_type_id;
- core_view_tracker_mux_type_id = g_type_register_static (G_TYPE_OBJECT, "CoreViewTrackerMux", &g_define_type_info, 0);
- g_type_add_interface_static (core_view_tracker_mux_type_id, CORE_TYPE_TRACKER_ACCUMULATOR, &core_tracker_accumulator_info);
- g_once_init_leave (&core_view_tracker_mux_type_id__volatile, core_view_tracker_mux_type_id);
- }
- return core_view_tracker_mux_type_id__volatile;
-}
-
-
-static void
-core_view_tracker_class_init (CoreViewTrackerClass * klass)
-{
-#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- core_view_tracker_parent_class = g_type_class_peek_parent (klass);
-#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- ((CoreTrackerClass *) klass)->finalize = core_view_tracker_finalize;
-#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_type_class_add_private (klass, sizeof (CoreViewTrackerPrivate));
-#line 2031 "Tracker.c"
-}
-
-
-static void
-core_view_tracker_instance_init (CoreViewTracker * self)
-{
-#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv = CORE_VIEW_TRACKER_GET_PRIVATE (self);
-#line 163 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self->priv->mux = NULL;
-#line 2042 "Tracker.c"
-}
-
-
-static void
-core_view_tracker_finalize (CoreTracker * obj)
-{
- CoreViewTracker * self;
- CoreViewTrackerMux* _tmp0_;
-#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, CORE_TYPE_VIEW_TRACKER, CoreViewTracker);
-#line 170 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp0_ = self->priv->mux;
-#line 170 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp0_ != NULL) {
-#line 2057 "Tracker.c"
- ViewCollection* collection = NULL;
- DataCollection* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- guint _tmp5_;
- ViewCollection* _tmp6_;
- guint _tmp7_;
- ViewCollection* _tmp8_;
- guint _tmp9_;
- ViewCollection* _tmp10_;
- guint _tmp11_;
-#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp1_ = core_tracker_get_collection (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker));
-#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIEW_COLLECTION) ? ((ViewCollection*) _tmp1_) : NULL;
-#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- if (_tmp2_ == NULL) {
-#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _data_collection_unref0 (_tmp1_);
-#line 2078 "Tracker.c"
- }
-#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- collection = _tmp2_;
-#line 172 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp3_ = collection;
-#line 172 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _vala_assert (_tmp3_ != NULL, "collection != null");
-#line 173 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp4_ = collection;
-#line 173 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_parse_name ("items-shown", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 173 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _core_view_tracker_on_items_shown_view_collection_items_shown, self);
-#line 174 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp6_ = collection;
-#line 174 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_parse_name ("items-hidden", TYPE_VIEW_COLLECTION, &_tmp7_, NULL, FALSE);
-#line 174 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _core_view_tracker_on_items_hidden_view_collection_items_hidden, self);
-#line 175 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp8_ = collection;
-#line 175 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_parse_name ("items-selected", TYPE_VIEW_COLLECTION, &_tmp9_, NULL, FALSE);
-#line 175 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _core_view_tracker_on_items_selected_view_collection_items_selected, self);
-#line 176 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _tmp10_ = collection;
-#line 176 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_parse_name ("items-unselected", TYPE_VIEW_COLLECTION, &_tmp11_, NULL, FALSE);
-#line 176 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _core_view_tracker_on_items_unselected_view_collection_items_unselected, self);
-#line 170 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _data_collection_unref0 (collection);
-#line 2112 "Tracker.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- _g_object_unref0 (self->priv->mux);
-#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala"
- CORE_TRACKER_CLASS (core_view_tracker_parent_class)->finalize (obj);
-#line 2118 "Tracker.c"
-}
-
-
-GType
-core_view_tracker_get_type (void)
-{
- static volatile gsize core_view_tracker_type_id__volatile = 0;
- if (g_once_init_enter (&core_view_tracker_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CoreViewTrackerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) core_view_tracker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CoreViewTracker), 0, (GInstanceInitFunc) core_view_tracker_instance_init, NULL };
- GType core_view_tracker_type_id;
- core_view_tracker_type_id = g_type_register_static (CORE_TYPE_TRACKER, "CoreViewTracker", &g_define_type_info, 0);
- g_once_init_leave (&core_view_tracker_type_id__volatile, core_view_tracker_type_id);
- }
- return core_view_tracker_type_id__volatile;
-}
-
-
-
diff --git a/src/core/ViewCollection.c b/src/core/ViewCollection.c
deleted file mode 100644
index 20c7fd1..0000000
--- a/src/core/ViewCollection.c
+++ /dev/null
@@ -1,9130 +0,0 @@
-/* ViewCollection.c generated by valac 0.40.4, the Vala compiler
- * generated from ViewCollection.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* A ViewCollection holds DataView objects, which are view instances wrapping DataSource objects.*/
-/* Thus, multiple views can exist of a single SourceCollection, each view displaying all or some*/
-/* of that SourceCollection. A view collection also has a notion of order*/
-/* (first/last/next/previous) that can be overridden by child classes. It also understands hidden*/
-/* objects, which are withheld entirely from the collection until they're made visible. Currently*/
-/* the only way to hide objects is with a ViewFilter.*/
-/**/
-/* A ViewCollection may also be locked. When locked, it will not (a) remove hidden items from the*/
-/* collection and (b) remove DataViews representing unlinked DataSources. This allows for the*/
-/* ViewCollection to be "frozen" while manipulating items within it. When the collection is*/
-/* unlocked, all changes are applied at once.*/
-/**/
-/* The default implementation provides a browser which orders the view in the order they're*/
-/* stored in DataCollection, which is not specified.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-typedef struct _ViewCollectionPrivate ViewCollectionPrivate;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR_IMPL (view_collection_monitor_impl_get_type ())
-#define VIEW_COLLECTION_MONITOR_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImpl))
-#define VIEW_COLLECTION_MONITOR_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImplClass))
-#define VIEW_COLLECTION_IS_MONITOR_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR_IMPL))
-#define VIEW_COLLECTION_IS_MONITOR_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR_IMPL))
-#define VIEW_COLLECTION_MONITOR_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImplClass))
-
-typedef struct _ViewCollectionMonitorImpl ViewCollectionMonitorImpl;
-typedef struct _ViewCollectionMonitorImplClass ViewCollectionMonitorImplClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_DATA_SET (data_set_get_type ())
-#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet))
-#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass))
-#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET))
-#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET))
-#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass))
-
-typedef struct _DataSet DataSet;
-typedef struct _DataSetClass DataSetClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-typedef struct _ViewCollectionMonitorPrivate ViewCollectionMonitorPrivate;
-typedef struct _ViewCollectionMonitorImplPrivate ViewCollectionMonitorImplPrivate;
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_RATING (rating_get_type ())
-
-#define VIEW_COLLECTION_TYPE_TOGGLE_LISTS (view_collection_toggle_lists_get_type ())
-#define VIEW_COLLECTION_TOGGLE_LISTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleLists))
-#define VIEW_COLLECTION_TOGGLE_LISTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleListsClass))
-#define VIEW_COLLECTION_IS_TOGGLE_LISTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_TOGGLE_LISTS))
-#define VIEW_COLLECTION_IS_TOGGLE_LISTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_TOGGLE_LISTS))
-#define VIEW_COLLECTION_TOGGLE_LISTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleListsClass))
-
-typedef struct _ViewCollectionToggleLists ViewCollectionToggleLists;
-typedef struct _ViewCollectionToggleListsClass ViewCollectionToggleListsClass;
-typedef struct _ViewCollectionToggleListsPrivate ViewCollectionToggleListsPrivate;
-typedef struct _ViewCollectionParamSpecMonitor ViewCollectionParamSpecMonitor;
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-enum {
- VIEW_COLLECTION_TOGGLE_LISTS_0_PROPERTY,
- VIEW_COLLECTION_TOGGLE_LISTS_NUM_PROPERTIES
-};
-static GParamSpec* view_collection_toggle_lists_properties[VIEW_COLLECTION_TOGGLE_LISTS_NUM_PROPERTIES];
-enum {
- VIEW_COLLECTION_ITEMS_SELECTED_SIGNAL,
- VIEW_COLLECTION_ITEMS_UNSELECTED_SIGNAL,
- VIEW_COLLECTION_ITEMS_STATE_CHANGED_SIGNAL,
- VIEW_COLLECTION_SELECTION_GROUP_ALTERED_SIGNAL,
- VIEW_COLLECTION_ITEMS_SHOWN_SIGNAL,
- VIEW_COLLECTION_ITEMS_HIDDEN_SIGNAL,
- VIEW_COLLECTION_ITEMS_VISIBILITY_CHANGED_SIGNAL,
- VIEW_COLLECTION_ITEM_VIEW_ALTERED_SIGNAL,
- VIEW_COLLECTION_ITEM_GEOMETRY_ALTERED_SIGNAL,
- VIEW_COLLECTION_VIEWS_ALTERED_SIGNAL,
- VIEW_COLLECTION_GEOMETRIES_ALTERED_SIGNAL,
- VIEW_COLLECTION_VIEW_FILTER_INSTALLED_SIGNAL,
- VIEW_COLLECTION_VIEW_FILTER_REMOVED_SIGNAL,
- VIEW_COLLECTION_NUM_SIGNALS
-};
-static guint view_collection_signals[VIEW_COLLECTION_NUM_SIGNALS] = {0};
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-typedef struct _ParamSpecViewManager ParamSpecViewManager;
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-typedef struct _ParamSpecViewFilter ParamSpecViewFilter;
-enum {
- VIEW_FILTER_REFRESH_SIGNAL,
- VIEW_FILTER_NUM_SIGNALS
-};
-static guint view_filter_signals[VIEW_FILTER_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _ViewCollection {
- DataCollection parent_instance;
- ViewCollectionPrivate * priv;
-};
-
-struct _ViewCollectionClass {
- DataCollectionClass parent_class;
- void (*notify_items_selected_unselected) (ViewCollection* self, GeeCollection* selected, GeeCollection* unselected);
- void (*notify_selection_group_altered) (ViewCollection* self);
- void (*notify_item_view_altered) (ViewCollection* self, DataView* view);
- void (*notify_views_altered) (ViewCollection* self, GeeCollection* views);
- void (*notify_item_geometry_altered) (ViewCollection* self, DataView* view);
- void (*notify_geometries_altered) (ViewCollection* self, GeeCollection* views);
- void (*notify_items_shown) (ViewCollection* self, GeeCollection* shown);
- void (*notify_items_hidden) (ViewCollection* self, GeeCollection* hidden);
- void (*notify_items_visibility_changed) (ViewCollection* self, GeeCollection* changed);
- void (*notify_view_filter_installed) (ViewCollection* self, ViewFilter* filter);
- void (*notify_view_filter_removed) (ViewCollection* self, ViewFilter* filter);
- DataView* (*get_first) (ViewCollection* self);
- DataView* (*get_first_unrejected) (ViewCollection* self);
- DataView* (*get_last) (ViewCollection* self);
- DataView* (*get_next) (ViewCollection* self, DataView* view);
- DataView* (*get_previous) (ViewCollection* self, DataView* view);
- void (*items_selected) (ViewCollection* self, GeeIterable* selected);
- void (*items_unselected) (ViewCollection* self, GeeIterable* unselected);
- void (*items_state_changed) (ViewCollection* self, GeeIterable* changed);
- void (*selection_group_altered) (ViewCollection* self);
- void (*items_shown) (ViewCollection* self, GeeCollection* visible);
- void (*items_hidden) (ViewCollection* self, GeeCollection* hidden);
- void (*items_visibility_changed) (ViewCollection* self, GeeCollection* changed);
- void (*item_view_altered) (ViewCollection* self, DataView* view);
- void (*item_geometry_altered) (ViewCollection* self, DataView* view);
- void (*views_altered) (ViewCollection* self, GeeCollection* views);
- void (*geometries_altered) (ViewCollection* self, GeeCollection* views);
- void (*view_filter_installed) (ViewCollection* self, ViewFilter* filer);
- void (*view_filter_removed) (ViewCollection* self, ViewFilter* filer);
-};
-
-typedef DataView* (*CreateView) (DataSource* source, void* user_data);
-typedef gboolean (*CreateViewPredicate) (DataSource* source, void* user_data);
-struct _ViewCollectionPrivate {
- GeeHashMultiMap* monitors;
- ViewCollection* mirroring;
- CreateView mirroring_ctor;
- gpointer mirroring_ctor_target;
- CreateViewPredicate should_mirror;
- gpointer should_mirror_target;
- GeeSet* filters;
- DataSet* selected;
- DataSet* visible;
- GeeHashSet* frozen_views_altered;
- GeeHashSet* frozen_geometries_altered;
- GeeHashMap* source_map;
-};
-
-struct _ViewCollectionMonitor {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewCollectionMonitorPrivate * priv;
-};
-
-struct _ViewCollectionMonitorClass {
- GTypeClass parent_class;
- void (*finalize) (ViewCollectionMonitor *self);
-};
-
-struct _ViewCollectionMonitorImpl {
- ViewCollectionMonitor parent_instance;
- ViewCollectionMonitorImplPrivate * priv;
- ViewCollection* owner;
- SourceCollection* sources;
- ViewManager* manager;
- Alteration* prereq;
-};
-
-struct _ViewCollectionMonitorImplClass {
- ViewCollectionMonitorClass parent_class;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data);
-struct _ViewCollectionToggleLists {
- GObject parent_instance;
- ViewCollectionToggleListsPrivate * priv;
- GeeArrayList* selected;
- GeeArrayList* unselected;
-};
-
-struct _ViewCollectionToggleListsClass {
- GObjectClass parent_class;
-};
-
-struct _ViewCollectionParamSpecMonitor {
- GParamSpec parent_instance;
-};
-
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _ParamSpecViewManager {
- GParamSpec parent_instance;
-};
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _ParamSpecViewFilter {
- GParamSpec parent_instance;
-};
-
-
-static gpointer view_collection_parent_class = NULL;
-static gpointer view_collection_monitor_parent_class = NULL;
-static gpointer view_collection_monitor_impl_parent_class = NULL;
-static gpointer view_collection_toggle_lists_parent_class = NULL;
-static gpointer view_manager_parent_class = NULL;
-static gpointer view_filter_parent_class = NULL;
-
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-static GType view_collection_monitor_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer data_set_ref (gpointer instance);
-void data_set_unref (gpointer instance);
-GParamSpec* param_spec_data_set (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_set (GValue* value,
- gpointer v_object);
-void value_take_data_set (GValue* value,
- gpointer v_object);
-gpointer value_get_data_set (const GValue* value);
-GType data_set_get_type (void) G_GNUC_CONST;
-#define VIEW_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIEW_COLLECTION, ViewCollectionPrivate))
-DataSet* data_set_new (void);
-DataSet* data_set_construct (GType object_type);
-ViewCollection* view_collection_new (const gchar* name);
-ViewCollection* view_collection_construct (GType object_type,
- const gchar* name);
-DataCollection* data_collection_new (const gchar* name);
-DataCollection* data_collection_construct (GType object_type,
- const gchar* name);
-void view_collection_notify_items_selected_unselected (ViewCollection* self,
- GeeCollection* selected,
- GeeCollection* unselected);
-static void view_collection_real_notify_items_selected_unselected (ViewCollection* self,
- GeeCollection* selected,
- GeeCollection* unselected);
-void view_collection_notify_selection_group_altered (ViewCollection* self);
-static void view_collection_real_notify_selection_group_altered (ViewCollection* self);
-void view_collection_notify_item_view_altered (ViewCollection* self,
- DataView* view);
-static void view_collection_real_notify_item_view_altered (ViewCollection* self,
- DataView* view);
-void view_collection_notify_views_altered (ViewCollection* self,
- GeeCollection* views);
-static void view_collection_real_notify_views_altered (ViewCollection* self,
- GeeCollection* views);
-void view_collection_notify_item_geometry_altered (ViewCollection* self,
- DataView* view);
-static void view_collection_real_notify_item_geometry_altered (ViewCollection* self,
- DataView* view);
-void view_collection_notify_geometries_altered (ViewCollection* self,
- GeeCollection* views);
-static void view_collection_real_notify_geometries_altered (ViewCollection* self,
- GeeCollection* views);
-void view_collection_notify_items_shown (ViewCollection* self,
- GeeCollection* shown);
-static void view_collection_real_notify_items_shown (ViewCollection* self,
- GeeCollection* shown);
-void view_collection_notify_items_hidden (ViewCollection* self,
- GeeCollection* hidden);
-static void view_collection_real_notify_items_hidden (ViewCollection* self,
- GeeCollection* hidden);
-void view_collection_notify_items_visibility_changed (ViewCollection* self,
- GeeCollection* changed);
-static void view_collection_real_notify_items_visibility_changed (ViewCollection* self,
- GeeCollection* changed);
-void view_collection_notify_view_filter_installed (ViewCollection* self,
- ViewFilter* filter);
-static void view_collection_real_notify_view_filter_installed (ViewCollection* self,
- ViewFilter* filter);
-void view_collection_notify_view_filter_removed (ViewCollection* self,
- ViewFilter* filter);
-static void view_collection_real_notify_view_filter_removed (ViewCollection* self,
- ViewFilter* filter);
-static void view_collection_real_clear (DataCollection* base);
-gchar* data_collection_to_string (DataCollection* self);
-void data_collection_clear (DataCollection* self);
-static void view_collection_real_close (DataCollection* base);
-void view_collection_halt_all_monitoring (ViewCollection* self);
-void view_collection_halt_mirroring (ViewCollection* self);
-static void view_collection_on_view_filter_refresh (ViewCollection* self);
-static void _view_collection_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender,
- gpointer self);
-void data_collection_close (DataCollection* self);
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-void data_collection_freeze_notifications (DataCollection* self);
-static ViewCollectionMonitorImpl* view_collection_monitor_impl_new (ViewCollection* owner,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq);
-static ViewCollectionMonitorImpl* view_collection_monitor_impl_construct (GType object_type,
- ViewCollection* owner,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq);
-DataView* view_manager_create_view (ViewManager* self,
- DataSource* source);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-static void view_collection_add_sources (ViewCollection* self,
- SourceCollection* sources,
- GeeIterable* added,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-GeeCollection* data_collection_get_all (DataCollection* self);
-void data_collection_thaw_notifications (DataCollection* self);
-void view_collection_halt_monitoring (ViewCollection* self,
- ViewCollectionMonitor* m);
-void view_collection_mirror (ViewCollection* self,
- ViewCollection* to_mirror,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target,
- CreateViewPredicate should_mirror,
- void* should_mirror_target);
-void data_collection_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-Comparator data_collection_get_comparator (DataCollection* self,
- void** result_target);
-ComparatorPredicate data_collection_get_comparator_predicate (DataCollection* self,
- void** result_target);
-static void view_collection_on_mirror_contents_added (ViewCollection* self,
- GeeIterable* added);
-static void _view_collection_on_mirror_contents_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self);
-static void view_collection_on_mirror_contents_removed (ViewCollection* self,
- GeeIterable* removed);
-static void _view_collection_on_mirror_contents_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self);
-void view_collection_copy_into (ViewCollection* self,
- ViewCollection* to_copy,
- CreateView copying_ctor,
- void* copying_ctor_target,
- CreateViewPredicate should_copy,
- void* should_copy_target);
-DataSource* data_view_get_source (DataView* self);
-gboolean view_collection_is_view_filter_installed (ViewCollection* self,
- ViewFilter* f);
-void view_collection_install_view_filter (ViewCollection* self,
- ViewFilter* f);
-void view_collection_remove_view_filter (ViewCollection* self,
- ViewFilter* f);
-static void view_collection_filter_altered_items (ViewCollection* self,
- GeeCollection* views);
-static gboolean view_collection_is_in_filter (ViewCollection* self,
- DataView* view);
-gboolean view_filter_predicate (ViewFilter* self,
- DataView* view);
-static gboolean view_collection_real_valid_type (DataCollection* base,
- DataObject* object);
-static void view_collection_on_sources_added (ViewCollection* self,
- DataCollection* sources,
- GeeIterable* added);
-gboolean view_manager_include_in_view (ViewManager* self,
- DataSource* source);
-static DataView* _view_manager_create_view_create_view (DataSource* source,
- gpointer self);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-static gboolean view_collection_real_add (DataCollection* base,
- DataObject* object);
-void data_view_internal_set_visible (DataView* self,
- gboolean visible);
-GeeCollection* data_collection_get_singleton (DataObject* object);
-static GeeCollection* view_collection_real_add_many (DataCollection* base,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-static void view_collection_on_sources_removed (ViewCollection* self,
- GeeIterable* removed);
-Marker* data_collection_start_marking (DataCollection* self);
-void marker_mark (Marker* self,
- DataObject* object);
-gint marker_get_count (Marker* self);
-void data_collection_remove_marked (DataCollection* self,
- Marker* m);
-static void view_collection_on_sources_altered (ViewCollection* self,
- DataCollection* collection,
- GeeMap* items);
-gboolean alteration_contains_any (Alteration* self,
- Alteration* other);
-gboolean view_collection_has_view_for_source (ViewCollection* self,
- DataSource* source);
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-gboolean data_set_contains (DataSet* self,
- DataObject* object);
-gboolean data_set_resort_object (DataSet* self,
- DataObject* object,
- Alteration* alteration);
-static gboolean view_collection_is_visible (ViewCollection* self,
- DataView* view);
-Marker* data_collection_mark_many (DataCollection* self,
- GeeCollection* objects);
-void data_collection_notify_ordering_changed (DataCollection* self);
-static void view_collection_real_notify_items_added (DataCollection* base,
- GeeIterable* added);
-gboolean data_view_is_selected (DataView* self);
-gboolean data_view_is_visible (DataView* self);
-static gboolean view_collection_add_many_visible (ViewCollection* self,
- GeeCollection* many);
-static void view_collection_add_many_selected (ViewCollection* self,
- GeeCollection* views);
-void data_collection_notify_items_added (DataCollection* self,
- GeeIterable* added);
-static void view_collection_real_notify_items_removed (DataCollection* base,
- GeeIterable* removed);
-gboolean data_set_remove (DataSet* self,
- DataObject* object);
-static void view_collection_remove_many_selected (ViewCollection* self,
- GeeCollection* views);
-void data_collection_notify_items_removed (DataCollection* self,
- GeeIterable* removed);
-static void view_collection_show_items (ViewCollection* self,
- GeeList* to_show);
-static void view_collection_hide_items (ViewCollection* self,
- GeeList* to_hide);
-static void view_collection_real_items_altered (DataCollection* base,
- GeeMap* map);
-static void view_collection_real_set_comparator (DataCollection* base,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-void data_set_set_comparator (DataSet* self,
- Comparator user_comparator,
- void* user_comparator_target,
- ComparatorPredicate comparator_predicate,
- void* comparator_predicate_target);
-static void view_collection_real_reset_comparator (DataCollection* base);
-void data_set_reset_comparator (DataSet* self);
-void data_collection_reset_comparator (DataCollection* self);
-static GeeCollection* view_collection_real_get_all (DataCollection* base);
-GeeList* data_set_get_all (DataSet* self);
-GeeCollection* view_collection_get_all_unfiltered (ViewCollection* self);
-static gint view_collection_real_get_count (DataCollection* base);
-gint data_set_get_count (DataSet* self);
-gint data_collection_get_count (DataCollection* self);
-gint view_collection_get_unfiltered_count (ViewCollection* self);
-static DataObject* view_collection_real_get_at (DataCollection* base,
- gint index);
-DataObject* data_set_get_at (DataSet* self,
- gint index);
-DataObject* data_collection_get_at (DataCollection* self,
- gint index);
-static gint view_collection_real_index_of (DataCollection* base,
- DataObject* object);
-gint data_set_index_of (DataSet* self,
- DataObject* object);
-gint data_collection_index_of (DataCollection* self,
- DataObject* object);
-static gboolean view_collection_real_contains (DataCollection* base,
- DataObject* object);
-gboolean data_collection_contains (DataCollection* self,
- DataObject* object);
-DataView* view_collection_get_first (ViewCollection* self);
-static DataView* view_collection_real_get_first (ViewCollection* self);
-DataView* view_collection_get_first_unrejected (ViewCollection* self);
-static DataView* view_collection_real_get_first_unrejected (ViewCollection* self);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-Rating media_source_get_rating (MediaSource* self);
-DataView* view_collection_get_next (ViewCollection* self,
- DataView* view);
-DataView* view_collection_get_last (ViewCollection* self);
-static DataView* view_collection_real_get_last (ViewCollection* self);
-static DataView* view_collection_real_get_next (ViewCollection* self,
- DataView* view);
-DataView* view_collection_get_previous (ViewCollection* self,
- DataView* view);
-static DataView* view_collection_real_get_previous (ViewCollection* self,
- DataView* view);
-gboolean view_collection_get_immediate_neighbors (ViewCollection* self,
- DataSource* home,
- DataSource* * next,
- DataSource* * prev,
- const gchar* type_selector);
-gchar* data_source_get_typename (DataSource* self);
-GeeSet* view_collection_get_extended_neighbors (ViewCollection* self,
- DataSource* home,
- const gchar* typename);
-gboolean data_set_add_many (DataSet* self,
- GeeCollection* objects);
-gboolean data_set_remove_many (DataSet* self,
- GeeCollection* objects);
-void view_collection_select_marked (ViewCollection* self,
- Marker* marker);
-void data_collection_act_on_marked (DataCollection* self,
- Marker* m,
- MarkedAction action,
- void* action_target,
- ProgressMonitor monitor,
- void* monitor_target,
- GObject* user);
-static gboolean view_collection_select_item (ViewCollection* self,
- DataObject* object,
- GObject* user);
-static gboolean _view_collection_select_item_marked_action (DataObject* object,
- GObject* user,
- gpointer self);
-void view_collection_select_all (ViewCollection* self);
-void marker_mark_all (Marker* self);
-void data_view_internal_set_selected (DataView* self,
- gboolean selected);
-void view_collection_unselect_marked (ViewCollection* self,
- Marker* marker);
-static gboolean view_collection_unselect_item (ViewCollection* self,
- DataObject* object,
- GObject* user);
-static gboolean _view_collection_unselect_item_marked_action (DataObject* object,
- GObject* user,
- gpointer self);
-void view_collection_unselect_all (ViewCollection* self);
-void marker_mark_many (Marker* self,
- GeeCollection* list);
-GeeList* view_collection_get_selected (ViewCollection* self);
-void view_collection_unselect_all_but (ViewCollection* self,
- DataView* exception);
-void view_collection_unselect_and_select_marked (ViewCollection* self,
- Marker* unselect,
- Marker* select);
-void view_collection_toggle_marked (ViewCollection* self,
- Marker* marker);
-static GType view_collection_toggle_lists_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static ViewCollectionToggleLists* view_collection_toggle_lists_new (void);
-static ViewCollectionToggleLists* view_collection_toggle_lists_construct (GType object_type);
-static gboolean view_collection_toggle_item (ViewCollection* self,
- DataObject* object,
- GObject* user);
-static gboolean _view_collection_toggle_item_marked_action (DataObject* object,
- GObject* user,
- gpointer self);
-gboolean data_view_internal_toggle (DataView* self);
-gint view_collection_get_selected_count (ViewCollection* self);
-DataView* view_collection_get_selected_at (ViewCollection* self,
- gint index);
-DataSet* data_collection_get_dataset_copy (DataCollection* self);
-gboolean view_collection_has_view_for_source_with_filtered (ViewCollection* self,
- DataSource* source);
-DataView* view_collection_get_view_for_source_filtered (ViewCollection* self,
- DataSource* source);
-GeeCollection* view_collection_get_sources (ViewCollection* self);
-gboolean view_collection_has_source_of_type (ViewCollection* self,
- GType t);
-gint view_collection_get_sources_of_type_count (ViewCollection* self,
- GType t);
-GeeList* view_collection_get_sources_of_type (ViewCollection* self,
- GType t);
-GeeList* view_collection_get_selected_sources (ViewCollection* self);
-DataSource* view_collection_get_selected_source_at (ViewCollection* self,
- gint index);
-GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self,
- GType t);
-gint view_collection_index_of_source (ViewCollection* self,
- DataSource* source);
-void view_collection_internal_notify_view_altered (ViewCollection* self,
- DataView* view);
-gboolean data_collection_are_notifications_frozen (DataCollection* self);
-void view_collection_internal_notify_geometry_altered (ViewCollection* self,
- DataView* view);
-static void view_collection_real_notify_thawed (DataCollection* base);
-void data_collection_notify_thawed (DataCollection* self);
-gboolean view_collection_are_items_filtered_out (ViewCollection* self);
-static void view_collection_real_items_selected (ViewCollection* self,
- GeeIterable* selected);
-static void view_collection_real_items_unselected (ViewCollection* self,
- GeeIterable* unselected);
-static void view_collection_real_items_state_changed (ViewCollection* self,
- GeeIterable* changed);
-static void view_collection_real_selection_group_altered (ViewCollection* self);
-static void view_collection_real_items_shown (ViewCollection* self,
- GeeCollection* visible);
-static void view_collection_real_items_hidden (ViewCollection* self,
- GeeCollection* hidden);
-static void view_collection_real_items_visibility_changed (ViewCollection* self,
- GeeCollection* changed);
-static void view_collection_real_item_view_altered (ViewCollection* self,
- DataView* view);
-static void view_collection_real_item_geometry_altered (ViewCollection* self,
- DataView* view);
-static void view_collection_real_views_altered (ViewCollection* self,
- GeeCollection* views);
-static void view_collection_real_geometries_altered (ViewCollection* self,
- GeeCollection* views);
-static void view_collection_real_view_filter_installed (ViewCollection* self,
- ViewFilter* filer);
-static void g_cclosure_user_marshal_VOID__VIEW_FILTER (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void view_collection_real_view_filter_removed (ViewCollection* self,
- ViewFilter* filer);
-ViewCollectionMonitor* view_collection_monitor_new (void);
-ViewCollectionMonitor* view_collection_monitor_construct (GType object_type);
-static void view_collection_monitor_finalize (ViewCollectionMonitor * obj);
-static void _view_collection_on_sources_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self);
-static void _view_collection_on_sources_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self);
-static void _view_collection_on_sources_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void view_collection_monitor_impl_finalize (ViewCollectionMonitor * obj);
-static void view_collection_toggle_lists_finalize (GObject * obj);
-static void view_collection_finalize (DataCollection * obj);
-static gboolean view_manager_real_include_in_view (ViewManager* self,
- DataSource* source);
-static DataView* view_manager_real_create_view (ViewManager* self,
- DataSource* source);
-ViewManager* view_manager_construct (GType object_type);
-static void view_manager_finalize (ViewManager * obj);
-static gboolean view_filter_real_predicate (ViewFilter* self,
- DataView* view);
-ViewFilter* view_filter_construct (GType object_type);
-static void view_filter_real_refresh (ViewFilter* self);
-static void view_filter_finalize (ViewFilter * obj);
-
-
-ViewCollection*
-view_collection_construct (GType object_type,
- const gchar* name)
-{
- ViewCollection* self = NULL;
-#line 125 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 126 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = (ViewCollection*) data_collection_construct (object_type, name);
-#line 125 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self;
-#line 958 "ViewCollection.c"
-}
-
-
-ViewCollection*
-view_collection_new (const gchar* name)
-{
-#line 125 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return view_collection_construct (TYPE_VIEW_COLLECTION, name);
-#line 967 "ViewCollection.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self ? g_object_ref (self) : NULL;
-#line 976 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_items_selected_unselected (ViewCollection* self,
- GeeCollection* selected,
- GeeCollection* unselected)
-{
- gboolean _tmp0_ = FALSE;
- gboolean has_selected = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean has_unselected = FALSE;
- gboolean _tmp6_;
- gboolean _tmp7_;
- GeeCollection* sum = NULL;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_;
- GeeCollection* _tmp22_;
-#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail ((selected == NULL) || GEE_IS_COLLECTION (selected));
-#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail ((unselected == NULL) || GEE_IS_COLLECTION (unselected));
-#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (selected != NULL) {
-#line 1001 "ViewCollection.c"
- gint _tmp1_;
- gint _tmp2_;
-#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_collection_get_size (selected);
-#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_;
-#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _tmp2_ > 0;
-#line 1010 "ViewCollection.c"
- } else {
-#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = FALSE;
-#line 1014 "ViewCollection.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- has_selected = _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (unselected != NULL) {
-#line 1020 "ViewCollection.c"
- gint _tmp4_;
- gint _tmp5_;
-#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = gee_collection_get_size (unselected);
-#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _tmp4_;
-#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _tmp5_ > 0;
-#line 1029 "ViewCollection.c"
- } else {
-#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = FALSE;
-#line 1033 "ViewCollection.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- has_unselected = _tmp3_;
-#line 134 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = has_selected;
-#line 134 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp6_) {
-#line 135 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_SELECTED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (selected, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1043 "ViewCollection.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = has_unselected;
-#line 137 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp7_) {
-#line 138 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_UNSELECTED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (unselected, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1051 "ViewCollection.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = has_selected;
-#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp9_) {
-#line 1057 "ViewCollection.c"
- gboolean _tmp10_;
-#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = has_unselected;
-#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = !_tmp10_;
-#line 1063 "ViewCollection.c"
- } else {
-#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = FALSE;
-#line 1067 "ViewCollection.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp8_) {
-#line 1071 "ViewCollection.c"
- GeeCollection* _tmp11_;
-#line 142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = _g_object_ref0 (selected);
-#line 142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (sum);
-#line 142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sum = _tmp11_;
-#line 1079 "ViewCollection.c"
- } else {
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_;
-#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = has_selected;
-#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!_tmp13_) {
-#line 1087 "ViewCollection.c"
- gboolean _tmp14_;
-#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = has_unselected;
-#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = _tmp14_;
-#line 1093 "ViewCollection.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = FALSE;
-#line 1097 "ViewCollection.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp12_) {
-#line 1101 "ViewCollection.c"
- GeeCollection* _tmp15_;
-#line 144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = _g_object_ref0 (unselected);
-#line 144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (sum);
-#line 144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sum = _tmp15_;
-#line 1109 "ViewCollection.c"
- } else {
- gboolean _tmp16_ = FALSE;
- gboolean _tmp17_;
-#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = has_selected;
-#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!_tmp17_) {
-#line 1117 "ViewCollection.c"
- gboolean _tmp18_;
-#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = has_unselected;
-#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = !_tmp18_;
-#line 1123 "ViewCollection.c"
- } else {
-#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = FALSE;
-#line 1127 "ViewCollection.c"
- }
-#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp16_) {
-#line 146 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (sum);
-#line 146 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sum = NULL;
-#line 1135 "ViewCollection.c"
- } else {
- GeeHashSet* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
-#line 148 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = gee_hash_set_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 148 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (sum);
-#line 148 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sum = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 149 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = sum;
-#line 149 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add_all (_tmp20_, selected);
-#line 150 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = sum;
-#line 150 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add_all (_tmp21_, unselected);
-#line 1154 "ViewCollection.c"
- }
- }
- }
-#line 153 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = sum;
-#line 153 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp22_ != NULL) {
-#line 1162 "ViewCollection.c"
- GeeCollection* _tmp23_;
-#line 154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp23_ = sum;
-#line 154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_STATE_CHANGED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 155 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_selection_group_altered (self);
-#line 1170 "ViewCollection.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (sum);
-#line 1174 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_items_selected_unselected (ViewCollection* self,
- GeeCollection* selected,
- GeeCollection* unselected)
-{
-#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_items_selected_unselected (self, selected, unselected);
-#line 1187 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_selection_group_altered (ViewCollection* self)
-{
-#line 160 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_SELECTION_GROUP_ALTERED_SIGNAL], 0);
-#line 1196 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_selection_group_altered (ViewCollection* self)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 159 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_selection_group_altered (self);
-#line 1207 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_item_view_altered (ViewCollection* self,
- DataView* view)
-{
-#line 163 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 164 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEM_VIEW_ALTERED_SIGNAL], 0, view);
-#line 1219 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_item_view_altered (ViewCollection* self,
- DataView* view)
-{
-#line 163 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 163 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_item_view_altered (self, view);
-#line 1231 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_views_altered (ViewCollection* self,
- GeeCollection* views)
-{
-#line 167 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (views));
-#line 168 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_VIEWS_ALTERED_SIGNAL], 0, views);
-#line 1243 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_views_altered (ViewCollection* self,
- GeeCollection* views)
-{
-#line 167 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 167 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_views_altered (self, views);
-#line 1255 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_item_geometry_altered (ViewCollection* self,
- DataView* view)
-{
-#line 171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEM_GEOMETRY_ALTERED_SIGNAL], 0, view);
-#line 1267 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_item_geometry_altered (ViewCollection* self,
- DataView* view)
-{
-#line 171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_item_geometry_altered (self, view);
-#line 1279 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_geometries_altered (ViewCollection* self,
- GeeCollection* views)
-{
-#line 175 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (views));
-#line 176 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_GEOMETRIES_ALTERED_SIGNAL], 0, views);
-#line 1291 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_geometries_altered (ViewCollection* self,
- GeeCollection* views)
-{
-#line 175 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 175 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_geometries_altered (self, views);
-#line 1303 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_items_shown (ViewCollection* self,
- GeeCollection* shown)
-{
-#line 179 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (shown));
-#line 180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_SHOWN_SIGNAL], 0, shown);
-#line 1315 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_items_shown (ViewCollection* self,
- GeeCollection* shown)
-{
-#line 179 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 179 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_items_shown (self, shown);
-#line 1327 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_items_hidden (ViewCollection* self,
- GeeCollection* hidden)
-{
-#line 183 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (hidden));
-#line 184 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_HIDDEN_SIGNAL], 0, hidden);
-#line 1339 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_items_hidden (ViewCollection* self,
- GeeCollection* hidden)
-{
-#line 183 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 183 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_items_hidden (self, hidden);
-#line 1351 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_items_visibility_changed (ViewCollection* self,
- GeeCollection* changed)
-{
-#line 187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (changed));
-#line 188 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_VISIBILITY_CHANGED_SIGNAL], 0, changed);
-#line 1363 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_items_visibility_changed (ViewCollection* self,
- GeeCollection* changed)
-{
-#line 187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_items_visibility_changed (self, changed);
-#line 1375 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_view_filter_installed (ViewCollection* self,
- ViewFilter* filter)
-{
-#line 191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_FILTER (filter));
-#line 192 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_VIEW_FILTER_INSTALLED_SIGNAL], 0, filter);
-#line 1387 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_view_filter_installed (ViewCollection* self,
- ViewFilter* filter)
-{
-#line 191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_view_filter_installed (self, filter);
-#line 1399 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_view_filter_removed (ViewCollection* self,
- ViewFilter* filter)
-{
-#line 195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_FILTER (filter));
-#line 196 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_VIEW_FILTER_REMOVED_SIGNAL], 0, filter);
-#line 1411 "ViewCollection.c"
-}
-
-
-void
-view_collection_notify_view_filter_removed (ViewCollection* self,
- ViewFilter* filter)
-{
-#line 195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_GET_CLASS (self)->notify_view_filter_removed (self, filter);
-#line 1423 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_clear (DataCollection* base)
-{
- ViewCollection * self;
- gboolean _tmp0_ = FALSE;
- GeeHashMultiMap* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 199 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->monitors;
-#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = gee_multi_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
-#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _tmp2_;
-#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp3_ > 0) {
-#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = TRUE;
-#line 1447 "ViewCollection.c"
- } else {
- ViewCollection* _tmp4_;
-#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = self->priv->mirroring;
-#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _tmp4_ != NULL;
-#line 1454 "ViewCollection.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp0_) {
-#line 1458 "ViewCollection.c"
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 203 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 203 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = _tmp5_;
-#line 203 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_warning ("ViewCollection.vala:203: Cannot clear %s: monitoring or mirroring in e" \
-"ffect", _tmp6_);
-#line 203 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_free0 (_tmp6_);
-#line 205 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return;
-#line 1471 "ViewCollection.c"
- }
-#line 208 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->clear (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 1475 "ViewCollection.c"
-}
-
-
-static void
-_view_collection_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender,
- gpointer self)
-{
-#line 215 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_view_filter_refresh ((ViewCollection*) self);
-#line 1485 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_close (DataCollection* base)
-{
- ViewCollection * self;
- GeeSet* _tmp7_;
-#line 211 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 212 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_halt_all_monitoring (self);
-#line 213 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_halt_mirroring (self);
-#line 1500 "ViewCollection.c"
- {
- GeeIterator* _f_it = NULL;
- GeeSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->filters;
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _f_it = _tmp1_;
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 1513 "ViewCollection.c"
- GeeIterator* _tmp2_;
- ViewFilter* f = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- ViewFilter* _tmp5_;
- guint _tmp6_;
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _f_it;
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 1526 "ViewCollection.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _f_it;
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- f = (ViewFilter*) _tmp4_;
-#line 215 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = f;
-#line 215 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp6_, NULL, FALSE);
-#line 215 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _view_collection_on_view_filter_refresh_view_filter_refresh, self);
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_filter_unref0 (f);
-#line 1542 "ViewCollection.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_f_it);
-#line 1546 "ViewCollection.c"
- }
-#line 216 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = self->priv->filters;
-#line 216 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 218 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->close (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 1554 "ViewCollection.c"
-}
-
-
-ViewCollectionMonitor*
-view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target)
-{
- ViewCollectionMonitor* result = NULL;
- ViewCollectionMonitorImpl* monitor = NULL;
- ViewCollectionMonitorImpl* _tmp0_;
- GeeHashMultiMap* _tmp1_;
- ViewCollectionMonitorImpl* _tmp2_;
- gboolean _tmp3_ = FALSE;
-#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL);
-#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_MANAGER (manager), NULL);
-#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail ((prereq == NULL) || IS_ALTERATION (prereq), NULL);
-#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail ((initial == NULL) || GEE_IS_COLLECTION (initial), NULL);
-#line 225 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_halt_mirroring (self);
-#line 227 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 230 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = view_collection_monitor_impl_new (self, sources, manager, prereq);
-#line 230 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- monitor = _tmp0_;
-#line 231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->monitors;
-#line 231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = monitor;
-#line 231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap), sources, _tmp2_);
-#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (initial != NULL) {
-#line 1599 "ViewCollection.c"
- gint _tmp4_;
- gint _tmp5_;
-#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = gee_collection_get_size (initial);
-#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _tmp4_;
-#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _tmp5_ > 0;
-#line 1608 "ViewCollection.c"
- } else {
-#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = FALSE;
-#line 1612 "ViewCollection.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp3_) {
-#line 1616 "ViewCollection.c"
- GeeArrayList* created_views = NULL;
- GeeArrayList* _tmp6_;
- GeeArrayList* _tmp15_;
- GeeCollection* _tmp16_;
- GeeCollection* _tmp17_;
-#line 235 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 235 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- created_views = _tmp6_;
-#line 1626 "ViewCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp7_;
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (initial, GEE_TYPE_ITERABLE, GeeIterable));
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _source_it = _tmp7_;
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 1636 "ViewCollection.c"
- GeeIterator* _tmp8_;
- DataSource* source = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- GeeArrayList* _tmp11_;
- DataSource* _tmp12_;
- DataView* _tmp13_;
- DataView* _tmp14_;
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = _source_it;
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 1651 "ViewCollection.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _source_it;
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- source = (DataSource*) _tmp10_;
-#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = created_views;
-#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = source;
-#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = view_manager_create_view (manager, _tmp12_);
-#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = _tmp13_;
-#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
-#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp14_);
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 1673 "ViewCollection.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_source_it);
-#line 1677 "ViewCollection.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = created_views;
-#line 239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), progress_monitor, progress_monitor_target);
-#line 239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = _tmp16_;
-#line 239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp17_);
-#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (created_views);
-#line 1689 "ViewCollection.c"
- } else {
- GeeCollection* _tmp18_;
- GeeIterable* _tmp19_;
-#line 242 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection));
-#line 242 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ITERABLE, GeeIterable);
-#line 242 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_add_sources (self, sources, _tmp19_, progress_monitor, progress_monitor_target);
-#line 242 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp19_);
-#line 1701 "ViewCollection.c"
- }
-#line 245 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 247 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (monitor, VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor);
-#line 247 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 1709 "ViewCollection.c"
-}
-
-
-static gpointer
-_view_collection_monitor_ref0 (gpointer self)
-{
-#line 251 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self ? view_collection_monitor_ref (self) : NULL;
-#line 1718 "ViewCollection.c"
-}
-
-
-void
-view_collection_halt_monitoring (ViewCollection* self,
- ViewCollectionMonitor* m)
-{
- ViewCollectionMonitorImpl* monitor = NULL;
- ViewCollectionMonitorImpl* _tmp0_;
- gboolean removed = FALSE;
- GeeHashMultiMap* _tmp1_;
- SourceCollection* _tmp2_;
-#line 250 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 250 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (VIEW_COLLECTION_IS_MONITOR (m));
-#line 251 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _view_collection_monitor_ref0 (G_TYPE_CHECK_INSTANCE_CAST (m, VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImpl));
-#line 251 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- monitor = _tmp0_;
-#line 253 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->monitors;
-#line 253 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = monitor->sources;
-#line 253 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- removed = gee_multi_map_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp2_, monitor);
-#line 254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (removed, "removed");
-#line 250 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor);
-#line 1749 "ViewCollection.c"
-}
-
-
-void
-view_collection_halt_all_monitoring (ViewCollection* self)
-{
- GeeHashMultiMap* _tmp0_;
-#line 257 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->monitors;
-#line 258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_multi_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
-#line 1763 "ViewCollection.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 267 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 1772 "ViewCollection.c"
-}
-
-
-static void
-_view_collection_on_mirror_contents_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self)
-{
-#line 275 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_mirror_contents_added ((ViewCollection*) self, added);
-#line 1783 "ViewCollection.c"
-}
-
-
-static void
-_view_collection_on_mirror_contents_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self)
-{
-#line 276 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_mirror_contents_removed ((ViewCollection*) self, removed);
-#line 1794 "ViewCollection.c"
-}
-
-
-void
-view_collection_mirror (ViewCollection* self,
- ViewCollection* to_mirror,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target,
- CreateViewPredicate should_mirror,
- void* should_mirror_target)
-{
- ViewCollection* _tmp0_;
- void* _tmp1_;
- Comparator _tmp2_;
- void* _tmp3_;
- ComparatorPredicate _tmp4_;
- ViewCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
-#line 261 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 261 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (to_mirror));
-#line 263 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_halt_mirroring (self);
-#line 264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_halt_all_monitoring (self);
-#line 265 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 267 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _data_collection_ref0 (to_mirror);
-#line 267 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_collection_unref0 (self->priv->mirroring);
-#line 267 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->mirroring = _tmp0_;
-#line 268 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->mirroring_ctor = mirroring_ctor;
-#line 268 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->mirroring_ctor_target = mirroring_ctor_target;
-#line 269 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->should_mirror = should_mirror;
-#line 269 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->should_mirror_target = should_mirror_target;
-#line 270 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = data_collection_get_comparator (G_TYPE_CHECK_INSTANCE_CAST (to_mirror, TYPE_DATA_COLLECTION, DataCollection), &_tmp1_);
-#line 270 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = data_collection_get_comparator_predicate (G_TYPE_CHECK_INSTANCE_CAST (to_mirror, TYPE_DATA_COLLECTION, DataCollection), &_tmp3_);
-#line 270 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp2_, _tmp1_, _tmp4_, _tmp3_);
-#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = self->priv->mirroring;
-#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
-#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = _tmp6_;
-#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_mirror_contents_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp7_);
-#line 275 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = self->priv->mirroring;
-#line 275 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), "items-added", (GCallback) _view_collection_on_mirror_contents_added_data_collection_items_added, self);
-#line 276 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = self->priv->mirroring;
-#line 276 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), "items-removed", (GCallback) _view_collection_on_mirror_contents_removed_data_collection_items_removed, self);
-#line 1864 "ViewCollection.c"
-}
-
-
-void
-view_collection_halt_mirroring (ViewCollection* self)
-{
- ViewCollection* _tmp0_;
-#line 279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 280 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->mirroring;
-#line 280 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp0_ != NULL) {
-#line 1878 "ViewCollection.c"
- ViewCollection* _tmp1_;
- guint _tmp2_;
- ViewCollection* _tmp3_;
- guint _tmp4_;
-#line 281 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->mirroring;
-#line 281 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE);
-#line 281 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _view_collection_on_mirror_contents_added_data_collection_items_added, self);
-#line 282 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = self->priv->mirroring;
-#line 282 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE);
-#line 282 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _view_collection_on_mirror_contents_removed_data_collection_items_removed, self);
-#line 1895 "ViewCollection.c"
- }
-#line 285 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_collection_unref0 (self->priv->mirroring);
-#line 285 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->mirroring = NULL;
-#line 1901 "ViewCollection.c"
-}
-
-
-void
-view_collection_copy_into (ViewCollection* self,
- ViewCollection* to_copy,
- CreateView copying_ctor,
- void* copying_ctor_target,
- CreateViewPredicate should_copy,
- void* should_copy_target)
-{
- GeeArrayList* copy_view = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp20_;
- GeeCollection* _tmp21_;
- GeeCollection* _tmp22_;
-#line 288 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 288 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (to_copy));
-#line 291 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 291 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- copy_view = _tmp0_;
-#line 1926 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (to_copy, TYPE_DATA_COLLECTION, DataCollection));
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_;
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _tmp3_;
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp2_);
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp4_;
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 1947 "ViewCollection.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- DataView* view = NULL;
- DataObject* _tmp8_;
- DataView* _tmp9_;
- DataView* _tmp10_;
- DataSource* _tmp11_;
- DataSource* _tmp12_;
- gboolean _tmp13_;
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _object_it;
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 1965 "ViewCollection.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = _object_it;
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp7_;
-#line 293 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = object;
-#line 293 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_VIEW, DataView));
-#line 293 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp9_;
-#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = view;
-#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = data_view_get_source (_tmp10_);
-#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = _tmp11_;
-#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = should_copy (_tmp12_, should_copy_target);
-#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp12_);
-#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp13_) {
-#line 1991 "ViewCollection.c"
- GeeArrayList* _tmp14_;
- DataView* _tmp15_;
- DataSource* _tmp16_;
- DataSource* _tmp17_;
- DataView* _tmp18_;
- DataView* _tmp19_;
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = copy_view;
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = view;
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = data_view_get_source (_tmp15_);
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = _tmp16_;
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = copying_ctor (_tmp17_, copying_ctor_target);
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = _tmp18_;
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_OBJECT, DataObject));
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp19_);
-#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp17_);
-#line 2016 "ViewCollection.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 2022 "ViewCollection.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 2026 "ViewCollection.c"
- }
-#line 298 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = copy_view;
-#line 298 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 298 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = _tmp21_;
-#line 298 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp22_);
-#line 288 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (copy_view);
-#line 2038 "ViewCollection.c"
-}
-
-
-gboolean
-view_collection_is_view_filter_installed (ViewCollection* self,
- ViewFilter* f)
-{
- gboolean result = FALSE;
- GeeSet* _tmp0_;
-#line 301 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 301 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_FILTER (f), FALSE);
-#line 302 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->filters;
-#line 302 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), f);
-#line 302 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 2058 "ViewCollection.c"
-}
-
-
-void
-view_collection_install_view_filter (ViewCollection* self,
- ViewFilter* f)
-{
- GeeSet* _tmp0_;
-#line 305 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 305 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_FILTER (f));
-#line 306 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (view_collection_is_view_filter_installed (self, f)) {
-#line 307 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return;
-#line 2075 "ViewCollection.c"
- }
-#line 309 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->filters;
-#line 309 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), f);
-#line 310 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_connect (f, "refresh", (GCallback) _view_collection_on_view_filter_refresh_view_filter_refresh, self);
-#line 313 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_view_filter_refresh (self);
-#line 316 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_view_filter_installed (self, f);
-#line 2087 "ViewCollection.c"
-}
-
-
-void
-view_collection_remove_view_filter (ViewCollection* self,
- ViewFilter* f)
-{
- GeeSet* _tmp0_;
- guint _tmp1_;
-#line 319 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 319 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_FILTER (f));
-#line 320 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!view_collection_is_view_filter_installed (self, f)) {
-#line 321 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return;
-#line 2105 "ViewCollection.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->filters;
-#line 323 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), f);
-#line 324 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp1_, NULL, FALSE);
-#line 324 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_disconnect_matched (f, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _view_collection_on_view_filter_refresh_view_filter_refresh, self);
-#line 327 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_view_filter_refresh (self);
-#line 330 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_view_filter_removed (self, f);
-#line 2119 "ViewCollection.c"
-}
-
-
-static void
-view_collection_on_view_filter_refresh (ViewCollection* self)
-{
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 333 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 334 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 334 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 334 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_filter_altered_items (self, _tmp1_);
-#line 334 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 2138 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_is_in_filter (ViewCollection* self,
- DataView* view)
-{
- gboolean result = FALSE;
-#line 338 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 338 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 2151 "ViewCollection.c"
- {
- GeeIterator* _f_it = NULL;
- GeeSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->filters;
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _f_it = _tmp1_;
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 2164 "ViewCollection.c"
- GeeIterator* _tmp2_;
- ViewFilter* f = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- ViewFilter* _tmp5_;
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _f_it;
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 2176 "ViewCollection.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _f_it;
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- f = (ViewFilter*) _tmp4_;
-#line 340 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = f;
-#line 340 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!view_filter_predicate (_tmp5_, view)) {
-#line 341 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = FALSE;
-#line 341 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_filter_unref0 (f);
-#line 341 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_f_it);
-#line 341 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 2196 "ViewCollection.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_filter_unref0 (f);
-#line 2200 "ViewCollection.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_f_it);
-#line 2204 "ViewCollection.c"
- }
-#line 343 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 343 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 2210 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_real_valid_type (DataCollection* base,
- DataObject* object)
-{
- ViewCollection * self;
- gboolean result = FALSE;
-#line 346 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 346 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 347 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (object, TYPE_DATA_VIEW);
-#line 347 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 2228 "ViewCollection.c"
-}
-
-
-static void
-view_collection_on_sources_added (ViewCollection* self,
- DataCollection* sources,
- GeeIterable* added)
-{
-#line 350 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 350 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (sources));
-#line 350 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 351 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_add_sources (self, G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_SOURCE_COLLECTION, SourceCollection), added, NULL, NULL);
-#line 2245 "ViewCollection.c"
-}
-
-
-static DataView*
-_view_manager_create_view_create_view (DataSource* source,
- gpointer self)
-{
- DataView* result;
- result = view_manager_create_view ((ViewManager*) self, source);
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 2257 "ViewCollection.c"
-}
-
-
-static void
-view_collection_add_sources (ViewCollection* self,
- SourceCollection* sources,
- GeeIterable* added,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target)
-{
- DataView* created_view = NULL;
- GeeArrayList* created_views = NULL;
- DataView* _tmp32_;
-#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_SOURCE_COLLECTION (sources));
-#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 358 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- created_view = NULL;
-#line 359 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- created_views = NULL;
-#line 2281 "ViewCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _source_it = _tmp0_;
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 2291 "ViewCollection.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- CreateView factory = NULL;
- void* factory_target;
- GDestroyNotify factory_target_destroy_notify;
- CreateView _tmp17_;
- void* _tmp17__target;
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _source_it;
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 2307 "ViewCollection.c"
- }
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _source_it;
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- source = (DataSource*) _tmp3_;
-#line 361 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory = NULL;
-#line 361 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory_target = NULL;
-#line 361 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory_target_destroy_notify = NULL;
-#line 2321 "ViewCollection.c"
- {
- GeeIterator* _monitor_it = NULL;
- GeeHashMultiMap* _tmp4_;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
- GeeIterator* _tmp8_;
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = self->priv->monitors;
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_MULTI_MAP, GeeMultiMap), sources);
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = _tmp5_;
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = _tmp7_;
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp6_);
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _monitor_it = _tmp8_;
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 2345 "ViewCollection.c"
- GeeIterator* _tmp9_;
- ViewCollectionMonitorImpl* monitor = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- ViewCollectionMonitorImpl* _tmp12_;
- ViewManager* _tmp13_;
- DataSource* _tmp14_;
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _monitor_it;
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 2359 "ViewCollection.c"
- }
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = _monitor_it;
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- monitor = (ViewCollectionMonitorImpl*) _tmp11_;
-#line 363 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = monitor;
-#line 363 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = _tmp12_->manager;
-#line 363 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = source;
-#line 363 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (view_manager_include_in_view (_tmp13_, _tmp14_)) {
-#line 2375 "ViewCollection.c"
- ViewCollectionMonitorImpl* _tmp15_;
- ViewManager* _tmp16_;
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = monitor;
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = _tmp15_->manager;
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- (factory_target_destroy_notify == NULL) ? NULL : (factory_target_destroy_notify (factory_target), NULL);
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory = NULL;
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory_target = NULL;
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory_target_destroy_notify = NULL;
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory = _view_manager_create_view_create_view;
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory_target = view_manager_ref (_tmp16_);
-#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory_target_destroy_notify = view_manager_unref;
-#line 366 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor);
-#line 366 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 2400 "ViewCollection.c"
- }
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor);
-#line 2404 "ViewCollection.c"
- }
-#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_monitor_it);
-#line 2408 "ViewCollection.c"
- }
-#line 370 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = factory;
-#line 370 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17__target = factory_target;
-#line 370 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp17_ != NULL) {
-#line 2416 "ViewCollection.c"
- DataView* new_view = NULL;
- CreateView _tmp18_;
- void* _tmp18__target;
- DataSource* _tmp19_;
- DataView* _tmp20_;
- GeeArrayList* _tmp21_;
-#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = factory;
-#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18__target = factory_target;
-#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = source;
-#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = _tmp18_ (_tmp19_, _tmp18__target);
-#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- new_view = _tmp20_;
-#line 375 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = created_views;
-#line 375 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp21_ != NULL) {
-#line 2437 "ViewCollection.c"
- GeeArrayList* _tmp22_;
- DataView* _tmp23_;
-#line 376 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = created_views;
-#line 376 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp23_ = new_view;
-#line 376 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp23_);
-#line 2446 "ViewCollection.c"
- } else {
- DataView* _tmp24_;
-#line 377 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp24_ = created_view;
-#line 377 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp24_ == NULL) {
-#line 2453 "ViewCollection.c"
- DataView* _tmp25_;
- DataView* _tmp26_;
-#line 378 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp25_ = new_view;
-#line 378 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp26_ = _g_object_ref0 (_tmp25_);
-#line 378 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (created_view);
-#line 378 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- created_view = _tmp26_;
-#line 2464 "ViewCollection.c"
- } else {
- GeeArrayList* _tmp27_;
- GeeArrayList* _tmp28_;
- DataView* _tmp29_;
- GeeArrayList* _tmp30_;
- DataView* _tmp31_;
-#line 380 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp27_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 380 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (created_views);
-#line 380 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- created_views = _tmp27_;
-#line 381 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp28_ = created_views;
-#line 381 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp29_ = created_view;
-#line 381 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_);
-#line 382 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (created_view);
-#line 382 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- created_view = NULL;
-#line 383 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp30_ = created_views;
-#line 383 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp31_ = new_view;
-#line 383 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp31_);
-#line 2493 "ViewCollection.c"
- }
- }
-#line 370 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (new_view);
-#line 2498 "ViewCollection.c"
- }
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- (factory_target_destroy_notify == NULL) ? NULL : (factory_target_destroy_notify (factory_target), NULL);
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory = NULL;
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory_target = NULL;
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- factory_target_destroy_notify = NULL;
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 2510 "ViewCollection.c"
- }
-#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_source_it);
-#line 2514 "ViewCollection.c"
- }
-#line 388 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp32_ = created_view;
-#line 388 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp32_ != NULL) {
-#line 2520 "ViewCollection.c"
- DataView* _tmp33_;
-#line 389 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp33_ = created_view;
-#line 389 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_OBJECT, DataObject));
-#line 2526 "ViewCollection.c"
- } else {
- gboolean _tmp34_ = FALSE;
- GeeArrayList* _tmp35_;
-#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp35_ = created_views;
-#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp35_ != NULL) {
-#line 2534 "ViewCollection.c"
- GeeArrayList* _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
-#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp36_ = created_views;
-#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp38_ = _tmp37_;
-#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp34_ = _tmp38_ > 0;
-#line 2546 "ViewCollection.c"
- } else {
-#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp34_ = FALSE;
-#line 2550 "ViewCollection.c"
- }
-#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp34_) {
-#line 2554 "ViewCollection.c"
- GeeArrayList* _tmp39_;
- GeeCollection* _tmp40_;
- GeeCollection* _tmp41_;
-#line 391 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp39_ = created_views;
-#line 391 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp40_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), progress_monitor, progress_monitor_target);
-#line 391 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp41_ = _tmp40_;
-#line 391 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp41_);
-#line 2566 "ViewCollection.c"
- }
- }
-#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (created_views);
-#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (created_view);
-#line 2573 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_real_add (DataCollection* base,
- DataObject* object)
-{
- ViewCollection * self;
- gboolean result = FALSE;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 394 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 394 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 395 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_view_internal_set_visible (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView), TRUE);
-#line 397 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!DATA_COLLECTION_CLASS (view_collection_parent_class)->add (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), object)) {
-#line 398 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = FALSE;
-#line 398 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 2597 "ViewCollection.c"
- }
-#line 400 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_collection_get_singleton (object);
-#line 400 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 400 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_filter_altered_items (self, _tmp1_);
-#line 400 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 402 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 402 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 2611 "ViewCollection.c"
-}
-
-
-static GeeCollection*
-view_collection_real_add_many (DataCollection* base,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- ViewCollection * self;
- GeeCollection* result = NULL;
- GeeCollection* return_list = NULL;
- GeeCollection* _tmp5_;
-#line 405 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 405 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (objects), NULL);
-#line 2629 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ITERABLE, GeeIterable));
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp0_;
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 2639 "ViewCollection.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataObject* _tmp4_;
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _object_it;
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 2651 "ViewCollection.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _object_it;
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp3_;
-#line 408 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = object;
-#line 408 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_view_internal_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView), TRUE);
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 2665 "ViewCollection.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 2669 "ViewCollection.c"
- }
-#line 410 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), objects, monitor, monitor_target);
-#line 410 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return_list = _tmp5_;
-#line 412 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_filter_altered_items (self, G_TYPE_CHECK_INSTANCE_CAST (return_list, GEE_TYPE_COLLECTION, GeeCollection));
-#line 414 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = return_list;
-#line 414 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 2681 "ViewCollection.c"
-}
-
-
-static void
-view_collection_on_sources_removed (ViewCollection* self,
- GeeIterable* removed)
-{
- Marker* marker = NULL;
- gboolean _tmp12_ = FALSE;
- Marker* _tmp13_;
-#line 417 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 417 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 419 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker = NULL;
-#line 2698 "ViewCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_iterable_iterator (removed);
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _source_it = _tmp0_;
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 2708 "ViewCollection.c"
- GeeIterator* _tmp1_;
- DataSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataView* view = NULL;
- GeeHashMap* _tmp4_;
- DataSource* _tmp5_;
- gpointer _tmp6_;
- DataView* _tmp7_;
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _source_it;
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 2724 "ViewCollection.c"
- }
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _source_it;
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- source = (DataSource*) _tmp3_;
-#line 421 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = self->priv->source_map;
-#line 421 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = source;
-#line 421 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
-#line 421 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp6_;
-#line 424 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = view;
-#line 424 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp7_ != NULL) {
-#line 2744 "ViewCollection.c"
- Marker* _tmp8_;
- Marker* _tmp10_;
- DataView* _tmp11_;
-#line 425 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = marker;
-#line 425 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp8_ == NULL) {
-#line 2752 "ViewCollection.c"
- Marker* _tmp9_;
-#line 426 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 426 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (marker);
-#line 426 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker = _tmp9_;
-#line 2760 "ViewCollection.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = marker;
-#line 428 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = view;
-#line 428 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker_mark (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject));
-#line 2768 "ViewCollection.c"
- }
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 2774 "ViewCollection.c"
- }
-#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_source_it);
-#line 2778 "ViewCollection.c"
- }
-#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = marker;
-#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp13_ != NULL) {
-#line 2784 "ViewCollection.c"
- Marker* _tmp14_;
-#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = marker;
-#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = marker_get_count (_tmp14_) != 0;
-#line 2790 "ViewCollection.c"
- } else {
-#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = FALSE;
-#line 2794 "ViewCollection.c"
- }
-#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp12_) {
-#line 2798 "ViewCollection.c"
- Marker* _tmp15_;
-#line 433 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = marker;
-#line 433 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp15_);
-#line 2804 "ViewCollection.c"
- }
-#line 417 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (marker);
-#line 2808 "ViewCollection.c"
-}
-
-
-static void
-view_collection_on_sources_altered (ViewCollection* self,
- DataCollection* collection,
- GeeMap* items)
-{
- GeeArrayList* to_add = NULL;
- GeeArrayList* to_remove = NULL;
- gboolean ordering_changed = FALSE;
- GeeArrayList* _tmp69_;
- GeeArrayList* _tmp73_;
- gboolean _tmp77_;
-#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_COLLECTION (collection));
-#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_MAP (items));
-#line 439 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_add = NULL;
-#line 440 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_remove = NULL;
-#line 441 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ordering_changed = FALSE;
-#line 2835 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_map_get_keys (items);
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _tmp0_;
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_;
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _tmp3_;
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp2_);
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp4_;
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 2859 "ViewCollection.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Alteration* alteration = NULL;
- DataObject* _tmp8_;
- gpointer _tmp9_;
- DataSource* source = NULL;
- DataObject* _tmp10_;
- DataSource* _tmp11_;
- ViewCollectionMonitorImpl* monitor = NULL;
- gboolean ignored = FALSE;
- gboolean _tmp31_;
- gboolean _tmp33_ = FALSE;
- ViewCollectionMonitorImpl* _tmp34_;
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _object_it;
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 2881 "ViewCollection.c"
- }
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = _object_it;
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp7_;
-#line 443 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = object;
-#line 443 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = gee_map_get (items, _tmp8_);
-#line 443 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- alteration = (Alteration*) _tmp9_;
-#line 444 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = object;
-#line 444 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_SOURCE, DataSource));
-#line 444 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- source = _tmp11_;
-#line 446 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- monitor = NULL;
-#line 447 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ignored = TRUE;
-#line 2905 "ViewCollection.c"
- {
- GeeIterator* _monitor_impl_it = NULL;
- GeeHashMultiMap* _tmp12_;
- GeeCollection* _tmp13_;
- GeeCollection* _tmp14_;
- GeeIterator* _tmp15_;
- GeeIterator* _tmp16_;
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = self->priv->monitors;
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_MULTI_MAP, GeeMultiMap), G_TYPE_CHECK_INSTANCE_CAST (collection, TYPE_SOURCE_COLLECTION, SourceCollection));
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = _tmp13_;
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = _tmp15_;
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp14_);
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _monitor_impl_it = _tmp16_;
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 2929 "ViewCollection.c"
- GeeIterator* _tmp17_;
- ViewCollectionMonitorImpl* monitor_impl = NULL;
- GeeIterator* _tmp18_;
- gpointer _tmp19_;
- gboolean _tmp20_ = FALSE;
- ViewCollectionMonitorImpl* _tmp21_;
- Alteration* _tmp22_;
- ViewCollectionMonitorImpl* _tmp26_;
- ViewManager* _tmp27_;
- DataSource* _tmp28_;
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = _monitor_impl_it;
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp17_)) {
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 2946 "ViewCollection.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = _monitor_impl_it;
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = gee_iterator_get (_tmp18_);
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- monitor_impl = (ViewCollectionMonitorImpl*) _tmp19_;
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = monitor_impl;
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = _tmp21_->prereq;
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp22_ != NULL) {
-#line 2960 "ViewCollection.c"
- Alteration* _tmp23_;
- ViewCollectionMonitorImpl* _tmp24_;
- Alteration* _tmp25_;
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp23_ = alteration;
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp24_ = monitor_impl;
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp25_ = _tmp24_->prereq;
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = !alteration_contains_any (_tmp23_, _tmp25_);
-#line 2972 "ViewCollection.c"
- } else {
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = FALSE;
-#line 2976 "ViewCollection.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp20_) {
-#line 450 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor_impl);
-#line 450 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- continue;
-#line 2984 "ViewCollection.c"
- }
-#line 452 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ignored = FALSE;
-#line 454 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp26_ = monitor_impl;
-#line 454 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp27_ = _tmp26_->manager;
-#line 454 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp28_ = source;
-#line 454 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (view_manager_include_in_view (_tmp27_, _tmp28_)) {
-#line 2996 "ViewCollection.c"
- ViewCollectionMonitorImpl* _tmp29_;
- ViewCollectionMonitorImpl* _tmp30_;
-#line 455 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp29_ = monitor_impl;
-#line 455 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp30_ = _view_collection_monitor_ref0 (_tmp29_);
-#line 455 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor);
-#line 455 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- monitor = _tmp30_;
-#line 457 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor_impl);
-#line 457 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 3011 "ViewCollection.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor_impl);
-#line 3015 "ViewCollection.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_monitor_impl_it);
-#line 3019 "ViewCollection.c"
- }
-#line 461 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp31_ = ignored;
-#line 461 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp31_) {
-#line 3025 "ViewCollection.c"
- ViewCollectionMonitorImpl* _tmp32_;
-#line 462 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp32_ = monitor;
-#line 462 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp32_ == NULL, "monitor == null");
-#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor);
-#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _alteration_unref0 (alteration);
-#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- continue;
-#line 3041 "ViewCollection.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp34_ = monitor;
-#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp34_ != NULL) {
-#line 3047 "ViewCollection.c"
- DataSource* _tmp35_;
-#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp35_ = source;
-#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp33_ = !view_collection_has_view_for_source (self, _tmp35_);
-#line 3053 "ViewCollection.c"
- } else {
-#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp33_ = FALSE;
-#line 3057 "ViewCollection.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp33_) {
-#line 3061 "ViewCollection.c"
- GeeArrayList* _tmp36_;
- GeeArrayList* _tmp38_;
- ViewCollectionMonitorImpl* _tmp39_;
- ViewManager* _tmp40_;
- DataSource* _tmp41_;
- DataView* _tmp42_;
- DataView* _tmp43_;
-#line 468 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp36_ = to_add;
-#line 468 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp36_ == NULL) {
-#line 3073 "ViewCollection.c"
- GeeArrayList* _tmp37_;
-#line 469 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp37_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 469 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_add);
-#line 469 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_add = _tmp37_;
-#line 3081 "ViewCollection.c"
- }
-#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp38_ = to_add;
-#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp39_ = monitor;
-#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp40_ = _tmp39_->manager;
-#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp41_ = source;
-#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp42_ = view_manager_create_view (_tmp40_, _tmp41_);
-#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp43_ = _tmp42_;
-#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp43_);
-#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp43_);
-#line 3099 "ViewCollection.c"
- } else {
- gboolean _tmp44_ = FALSE;
- ViewCollectionMonitorImpl* _tmp45_;
-#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp45_ = monitor;
-#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp45_ == NULL) {
-#line 3107 "ViewCollection.c"
- DataSource* _tmp46_;
-#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp46_ = source;
-#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp44_ = view_collection_has_view_for_source (self, _tmp46_);
-#line 3113 "ViewCollection.c"
- } else {
-#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp44_ = FALSE;
-#line 3117 "ViewCollection.c"
- }
-#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp44_) {
-#line 3121 "ViewCollection.c"
- GeeArrayList* _tmp47_;
- GeeArrayList* _tmp49_;
- DataSource* _tmp50_;
- DataView* _tmp51_;
- DataView* _tmp52_;
-#line 473 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp47_ = to_remove;
-#line 473 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp47_ == NULL) {
-#line 3131 "ViewCollection.c"
- GeeArrayList* _tmp48_;
-#line 474 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp48_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 474 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_remove);
-#line 474 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_remove = _tmp48_;
-#line 3139 "ViewCollection.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp49_ = to_remove;
-#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp50_ = source;
-#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp51_ = view_collection_get_view_for_source (self, _tmp50_);
-#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp52_ = _tmp51_;
-#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp52_);
-#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp52_);
-#line 3153 "ViewCollection.c"
- } else {
- gboolean _tmp53_ = FALSE;
- ViewCollectionMonitorImpl* _tmp54_;
-#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp54_ = monitor;
-#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp54_ != NULL) {
-#line 3161 "ViewCollection.c"
- DataSource* _tmp55_;
-#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp55_ = source;
-#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp53_ = view_collection_has_view_for_source (self, _tmp55_);
-#line 3167 "ViewCollection.c"
- } else {
-#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp53_ = FALSE;
-#line 3171 "ViewCollection.c"
- }
-#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp53_) {
-#line 3175 "ViewCollection.c"
- DataView* view = NULL;
- DataSource* _tmp56_;
- DataView* _tmp57_;
- DataSet* _tmp58_;
- DataView* _tmp59_;
- gboolean _tmp63_ = FALSE;
- DataSet* _tmp64_;
-#line 478 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp56_ = source;
-#line 478 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp57_ = view_collection_get_view_for_source (self, _tmp56_);
-#line 478 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp57_;
-#line 480 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp58_ = self->priv->selected;
-#line 480 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp59_ = view;
-#line 480 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_set_contains (_tmp58_, G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, TYPE_DATA_OBJECT, DataObject))) {
-#line 3195 "ViewCollection.c"
- DataSet* _tmp60_;
- DataView* _tmp61_;
- Alteration* _tmp62_;
-#line 481 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp60_ = self->priv->selected;
-#line 481 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp61_ = view;
-#line 481 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp62_ = alteration;
-#line 481 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_set_resort_object (_tmp60_, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_DATA_OBJECT, DataObject), _tmp62_);
-#line 3207 "ViewCollection.c"
- }
-#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp64_ = self->priv->visible;
-#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp64_ != NULL) {
-#line 3213 "ViewCollection.c"
- DataView* _tmp65_;
-#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp65_ = view;
-#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp63_ = view_collection_is_visible (self, _tmp65_);
-#line 3219 "ViewCollection.c"
- } else {
-#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp63_ = FALSE;
-#line 3223 "ViewCollection.c"
- }
-#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp63_) {
-#line 3227 "ViewCollection.c"
- DataSet* _tmp66_;
- DataView* _tmp67_;
- Alteration* _tmp68_;
-#line 484 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp66_ = self->priv->visible;
-#line 484 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp67_ = view;
-#line 484 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp68_ = alteration;
-#line 484 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_set_resort_object (_tmp66_, G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_DATA_OBJECT, DataObject), _tmp68_)) {
-#line 485 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ordering_changed = TRUE;
-#line 3241 "ViewCollection.c"
- }
- }
-#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 3246 "ViewCollection.c"
- }
- }
- }
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_collection_monitor_unref0 (monitor);
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _alteration_unref0 (alteration);
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 3258 "ViewCollection.c"
- }
-#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3262 "ViewCollection.c"
- }
-#line 490 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp69_ = to_add;
-#line 490 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp69_ != NULL) {
-#line 3268 "ViewCollection.c"
- GeeArrayList* _tmp70_;
- GeeCollection* _tmp71_;
- GeeCollection* _tmp72_;
-#line 491 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp70_ = to_add;
-#line 491 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp71_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 491 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp72_ = _tmp71_;
-#line 491 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp72_);
-#line 3280 "ViewCollection.c"
- }
-#line 493 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp73_ = to_remove;
-#line 493 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp73_ != NULL) {
-#line 3286 "ViewCollection.c"
- GeeArrayList* _tmp74_;
- Marker* _tmp75_;
- Marker* _tmp76_;
-#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp74_ = to_remove;
-#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp75_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp76_ = _tmp75_;
-#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp76_);
-#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp76_);
-#line 3300 "ViewCollection.c"
- }
-#line 496 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp77_ = ordering_changed;
-#line 496 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp77_) {
-#line 497 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_notify_ordering_changed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 3308 "ViewCollection.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_remove);
-#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_add);
-#line 3314 "ViewCollection.c"
-}
-
-
-static void
-view_collection_on_mirror_contents_added (ViewCollection* self,
- GeeIterable* added)
-{
- GeeArrayList* to_add = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
-#line 500 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 500 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 501 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 501 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_add = _tmp0_;
-#line 3335 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp1_;
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_iterable_iterator (added);
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp1_;
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 3345 "ViewCollection.c"
- GeeIterator* _tmp2_;
- DataObject* object = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- DataSource* source = NULL;
- DataObject* _tmp5_;
- DataSource* _tmp6_;
- gboolean _tmp7_ = FALSE;
- CreateViewPredicate _tmp8_;
- void* _tmp8__target;
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _object_it;
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 3362 "ViewCollection.c"
- }
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _object_it;
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp4_;
-#line 503 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = object;
-#line 503 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_VIEW, DataView));
-#line 503 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- source = _tmp6_;
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = self->priv->should_mirror;
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8__target = self->priv->should_mirror_target;
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp8_ == NULL) {
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = TRUE;
-#line 3384 "ViewCollection.c"
- } else {
- CreateViewPredicate _tmp9_;
- void* _tmp9__target;
- DataSource* _tmp10_;
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = self->priv->should_mirror;
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9__target = self->priv->should_mirror_target;
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = source;
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = _tmp9_ (_tmp10_, _tmp9__target);
-#line 3397 "ViewCollection.c"
- }
-#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp7_) {
-#line 3401 "ViewCollection.c"
- GeeArrayList* _tmp11_;
- CreateView _tmp12_;
- void* _tmp12__target;
- DataSource* _tmp13_;
- DataView* _tmp14_;
- DataView* _tmp15_;
-#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = to_add;
-#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = self->priv->mirroring_ctor;
-#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12__target = self->priv->mirroring_ctor_target;
-#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = source;
-#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = _tmp12_ (_tmp13_, _tmp12__target);
-#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = _tmp14_;
-#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp15_);
-#line 3424 "ViewCollection.c"
- }
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 3430 "ViewCollection.c"
- }
-#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3434 "ViewCollection.c"
- }
-#line 509 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = to_add;
-#line 509 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 509 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = _tmp17_;
-#line 509 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp18_ > 0) {
-#line 3444 "ViewCollection.c"
- GeeArrayList* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
-#line 510 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = to_add;
-#line 510 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
-#line 510 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = _tmp20_;
-#line 510 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp21_);
-#line 3456 "ViewCollection.c"
- }
-#line 500 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_add);
-#line 3460 "ViewCollection.c"
-}
-
-
-static void
-view_collection_on_mirror_contents_removed (ViewCollection* self,
- GeeIterable* removed)
-{
- Marker* marker = NULL;
- Marker* _tmp0_;
- Marker* _tmp15_;
-#line 513 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 513 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 514 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 514 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker = _tmp0_;
-#line 3479 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp1_;
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_iterable_iterator (removed);
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp1_;
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 3489 "ViewCollection.c"
- GeeIterator* _tmp2_;
- DataObject* object = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- DataView* view = NULL;
- DataObject* _tmp5_;
- DataView* _tmp6_;
- DataView* our_view = NULL;
- DataView* _tmp7_;
- DataSource* _tmp8_;
- DataSource* _tmp9_;
- DataView* _tmp10_;
- DataView* _tmp11_;
- DataView* _tmp12_;
- Marker* _tmp13_;
- DataView* _tmp14_;
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _object_it;
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 3512 "ViewCollection.c"
- }
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _object_it;
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp4_;
-#line 516 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = object;
-#line 516 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_VIEW, DataView));
-#line 516 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp6_;
-#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = view;
-#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
-#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _tmp8_;
-#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = view_collection_get_view_for_source (self, _tmp9_);
-#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = _tmp10_;
-#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp9_);
-#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- our_view = _tmp11_;
-#line 519 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = our_view;
-#line 519 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp12_ != NULL, "our_view != null");
-#line 521 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = marker;
-#line 521 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = our_view;
-#line 521 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker_mark (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject));
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (our_view);
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 3556 "ViewCollection.c"
- }
-#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3560 "ViewCollection.c"
- }
-#line 524 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = marker;
-#line 524 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp15_);
-#line 513 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (marker);
-#line 3568 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_items_added (DataCollection* base,
- GeeIterable* added)
-{
- ViewCollection * self;
- GeeArrayList* added_visible = NULL;
- GeeArrayList* added_selected = NULL;
- GeeArrayList* _tmp25_;
- GeeArrayList* _tmp28_;
-#line 528 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 528 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 529 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- added_visible = NULL;
-#line 530 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- added_selected = NULL;
-#line 3589 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp0_;
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 3599 "ViewCollection.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataView* view = NULL;
- DataObject* _tmp4_;
- DataView* _tmp5_;
- GeeHashMap* _tmp6_;
- DataView* _tmp7_;
- DataSource* _tmp8_;
- DataSource* _tmp9_;
- DataView* _tmp10_;
- gboolean _tmp11_ = FALSE;
- DataView* _tmp12_;
- gboolean _tmp18_ = FALSE;
- DataView* _tmp19_;
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _object_it;
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 3622 "ViewCollection.c"
- }
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _object_it;
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp3_;
-#line 533 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = object;
-#line 533 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView));
-#line 533 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp5_;
-#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = self->priv->source_map;
-#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = view;
-#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
-#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _tmp8_;
-#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = view;
-#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_);
-#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp9_);
-#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = view;
-#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_selected (_tmp12_)) {
-#line 3654 "ViewCollection.c"
- DataView* _tmp13_;
-#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = view;
-#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = data_view_is_visible (_tmp13_);
-#line 3660 "ViewCollection.c"
- } else {
-#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = FALSE;
-#line 3664 "ViewCollection.c"
- }
-#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp11_) {
-#line 3668 "ViewCollection.c"
- GeeArrayList* _tmp14_;
- GeeArrayList* _tmp16_;
- DataView* _tmp17_;
-#line 537 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = added_selected;
-#line 537 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp14_ == NULL) {
-#line 3676 "ViewCollection.c"
- GeeArrayList* _tmp15_;
-#line 538 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 538 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (added_selected);
-#line 538 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- added_selected = _tmp15_;
-#line 3684 "ViewCollection.c"
- }
-#line 540 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = added_selected;
-#line 540 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = view;
-#line 540 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
-#line 3692 "ViewCollection.c"
- }
-#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = view;
-#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_visible (_tmp19_)) {
-#line 3698 "ViewCollection.c"
- DataSet* _tmp20_;
-#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = self->priv->visible;
-#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = _tmp20_ != NULL;
-#line 3704 "ViewCollection.c"
- } else {
-#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = FALSE;
-#line 3708 "ViewCollection.c"
- }
-#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp18_) {
-#line 3712 "ViewCollection.c"
- GeeArrayList* _tmp21_;
- GeeArrayList* _tmp23_;
- DataView* _tmp24_;
-#line 545 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = added_visible;
-#line 545 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp21_ == NULL) {
-#line 3720 "ViewCollection.c"
- GeeArrayList* _tmp22_;
-#line 546 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 546 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (added_visible);
-#line 546 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- added_visible = _tmp22_;
-#line 3728 "ViewCollection.c"
- }
-#line 548 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp23_ = added_visible;
-#line 548 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp24_ = view;
-#line 548 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_);
-#line 3736 "ViewCollection.c"
- }
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 3742 "ViewCollection.c"
- }
-#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3746 "ViewCollection.c"
- }
-#line 552 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp25_ = added_visible;
-#line 552 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp25_ != NULL) {
-#line 3752 "ViewCollection.c"
- gboolean is_added = FALSE;
- GeeArrayList* _tmp26_;
- gboolean _tmp27_;
-#line 553 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp26_ = added_visible;
-#line 553 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- is_added = view_collection_add_many_visible (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 554 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp27_ = is_added;
-#line 554 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp27_, "is_added");
-#line 3764 "ViewCollection.c"
- }
-#line 557 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp28_ = added_selected;
-#line 557 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp28_ != NULL) {
-#line 3770 "ViewCollection.c"
- GeeArrayList* _tmp29_;
- GeeArrayList* _tmp30_;
-#line 558 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp29_ = added_selected;
-#line 558 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 559 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp30_ = added_selected;
-#line 559 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_selected_unselected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), NULL);
-#line 3781 "ViewCollection.c"
- }
-#line 562 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->notify_items_added (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), added);
-#line 528 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (added_selected);
-#line 528 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (added_visible);
-#line 3789 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_notify_items_removed (DataCollection* base,
- GeeIterable* removed)
-{
- ViewCollection * self;
- GeeArrayList* selected_removed = NULL;
- GeeArrayList* _tmp33_;
-#line 566 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 566 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 567 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- selected_removed = NULL;
-#line 3806 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_iterable_iterator (removed);
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp0_;
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 3816 "ViewCollection.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataView* view = NULL;
- DataObject* _tmp4_;
- DataView* _tmp5_;
- GeeHashMap* _tmp6_;
- DataView* _tmp7_;
- DataSource* _tmp8_;
- DataSource* _tmp9_;
- gboolean _tmp10_;
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _object_it;
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 3835 "ViewCollection.c"
- }
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _object_it;
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp3_;
-#line 569 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = object;
-#line 569 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView));
-#line 569 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp5_;
-#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = self->priv->source_map;
-#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = view;
-#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
-#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _tmp8_;
-#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_);
-#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp9_);
-#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp10_) {
-#line 3863 "ViewCollection.c"
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp11_;
- DataView* _tmp12_;
- DataSource* _tmp13_;
- DataSource* _tmp14_;
- gboolean _tmp15_;
- gboolean _tmp16_;
- gboolean _tmp17_;
- DataView* _tmp18_;
- gboolean _tmp27_ = FALSE;
- DataView* _tmp28_;
-#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = self->priv->source_map;
-#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = view;
-#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = data_view_get_source (_tmp12_);
-#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = _tmp13_;
-#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_, NULL);
-#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = _tmp15_;
-#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp14_);
-#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- is_removed = _tmp16_;
-#line 577 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = is_removed;
-#line 577 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp17_, "is_removed");
-#line 579 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = view;
-#line 579 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_selected (_tmp18_)) {
-#line 3899 "ViewCollection.c"
- DataSet* _tmp19_;
- DataView* _tmp20_;
- DataView* _tmp21_;
- DataView* _tmp22_;
-#line 581 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = self->priv->selected;
-#line 581 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = view;
-#line 581 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = view;
-#line 581 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (data_set_contains (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject)) == data_view_is_visible (_tmp21_), "selected.contains(view) == view.is_visible()");
-#line 583 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = view;
-#line 583 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_visible (_tmp22_)) {
-#line 3916 "ViewCollection.c"
- GeeArrayList* _tmp23_;
- GeeArrayList* _tmp25_;
- DataView* _tmp26_;
-#line 584 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp23_ = selected_removed;
-#line 584 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp23_ == NULL) {
-#line 3924 "ViewCollection.c"
- GeeArrayList* _tmp24_;
-#line 585 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp24_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 585 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (selected_removed);
-#line 585 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- selected_removed = _tmp24_;
-#line 3932 "ViewCollection.c"
- }
-#line 587 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp25_ = selected_removed;
-#line 587 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp26_ = view;
-#line 587 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_);
-#line 3940 "ViewCollection.c"
- }
- }
-#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp28_ = view;
-#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_visible (_tmp28_)) {
-#line 3947 "ViewCollection.c"
- DataSet* _tmp29_;
-#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp29_ = self->priv->visible;
-#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp27_ = _tmp29_ != NULL;
-#line 3953 "ViewCollection.c"
- } else {
-#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp27_ = FALSE;
-#line 3957 "ViewCollection.c"
- }
-#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp27_) {
-#line 3961 "ViewCollection.c"
- DataSet* _tmp30_;
- DataView* _tmp31_;
- gboolean _tmp32_;
-#line 592 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp30_ = self->priv->visible;
-#line 592 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp31_ = view;
-#line 592 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- is_removed = data_set_remove (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_OBJECT, DataObject));
-#line 593 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp32_ = is_removed;
-#line 593 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp32_, "is_removed");
-#line 3975 "ViewCollection.c"
- }
- }
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 3982 "ViewCollection.c"
- }
-#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 3986 "ViewCollection.c"
- }
-#line 598 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp33_ = selected_removed;
-#line 598 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp33_ != NULL) {
-#line 3992 "ViewCollection.c"
- GeeArrayList* _tmp34_;
-#line 599 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp34_ = selected_removed;
-#line 599 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 604 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_selection_group_altered (self);
-#line 4000 "ViewCollection.c"
- }
-#line 607 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->notify_items_removed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), removed);
-#line 566 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (selected_removed);
-#line 4006 "ViewCollection.c"
-}
-
-
-static void
-view_collection_filter_altered_items (ViewCollection* self,
- GeeCollection* views)
-{
- GeeArrayList* to_show = NULL;
- GeeArrayList* to_hide = NULL;
- GeeArrayList* _tmp15_;
- GeeArrayList* _tmp17_;
-#line 610 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 610 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (views));
-#line 613 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_show = NULL;
-#line 614 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_hide = NULL;
-#line 4026 "ViewCollection.c"
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp0_;
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (views, GEE_TYPE_ITERABLE, GeeIterable));
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_it = _tmp0_;
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 4036 "ViewCollection.c"
- GeeIterator* _tmp1_;
- DataView* view = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataView* _tmp4_;
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _view_it;
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 4048 "ViewCollection.c"
- }
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _view_it;
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp3_;
-#line 620 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = view;
-#line 620 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (view_collection_is_in_filter (self, _tmp4_)) {
-#line 4060 "ViewCollection.c"
- DataView* _tmp5_;
-#line 621 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = view;
-#line 621 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!data_view_is_visible (_tmp5_)) {
-#line 4066 "ViewCollection.c"
- GeeArrayList* _tmp6_;
- GeeArrayList* _tmp8_;
- DataView* _tmp9_;
-#line 622 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = to_show;
-#line 622 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp6_ == NULL) {
-#line 4074 "ViewCollection.c"
- GeeArrayList* _tmp7_;
-#line 623 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 623 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_show);
-#line 623 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_show = _tmp7_;
-#line 4082 "ViewCollection.c"
- }
-#line 625 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = to_show;
-#line 625 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = view;
-#line 625 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_);
-#line 4090 "ViewCollection.c"
- }
- } else {
- DataView* _tmp10_;
-#line 628 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = view;
-#line 628 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_visible (_tmp10_)) {
-#line 4098 "ViewCollection.c"
- GeeArrayList* _tmp11_;
- GeeArrayList* _tmp13_;
- DataView* _tmp14_;
-#line 629 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = to_hide;
-#line 629 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp11_ == NULL) {
-#line 4106 "ViewCollection.c"
- GeeArrayList* _tmp12_;
-#line 630 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 630 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_hide);
-#line 630 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- to_hide = _tmp12_;
-#line 4114 "ViewCollection.c"
- }
-#line 632 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = to_hide;
-#line 632 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = view;
-#line 632 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
-#line 4122 "ViewCollection.c"
- }
- }
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 4127 "ViewCollection.c"
- }
-#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_view_it);
-#line 4131 "ViewCollection.c"
- }
-#line 641 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = to_show;
-#line 641 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp15_ != NULL) {
-#line 4137 "ViewCollection.c"
- GeeArrayList* _tmp16_;
-#line 642 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = to_show;
-#line 642 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_show_items (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_LIST, GeeList));
-#line 4143 "ViewCollection.c"
- }
-#line 644 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = to_hide;
-#line 644 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp17_ != NULL) {
-#line 4149 "ViewCollection.c"
- GeeArrayList* _tmp18_;
-#line 645 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = to_hide;
-#line 645 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_hide_items (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_LIST, GeeList));
-#line 4155 "ViewCollection.c"
- }
-#line 610 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_hide);
-#line 610 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (to_show);
-#line 4161 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_items_altered (DataCollection* base,
- GeeMap* map)
-{
- ViewCollection * self;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeCollection* _tmp2_;
-#line 648 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 648 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_map_get_keys (map);
-#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _tmp0_;
-#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_filter_altered_items (self, _tmp2_);
-#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp2_);
-#line 652 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->items_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), map);
-#line 4189 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_set_comparator (DataCollection* base,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target)
-{
- ViewCollection * self;
- DataSet* _tmp0_;
- DataSet* _tmp1_;
-#line 655 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 656 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->selected;
-#line 656 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_set_set_comparator (_tmp0_, comparator, comparator_target, predicate, predicate_target);
-#line 657 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->visible;
-#line 657 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ != NULL) {
-#line 4213 "ViewCollection.c"
- DataSet* _tmp2_;
-#line 658 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->visible;
-#line 658 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_set_set_comparator (_tmp2_, comparator, comparator_target, predicate, predicate_target);
-#line 4219 "ViewCollection.c"
- }
-#line 660 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->set_comparator (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), comparator, comparator_target, predicate, predicate_target);
-#line 4223 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_reset_comparator (DataCollection* base)
-{
- ViewCollection * self;
- DataSet* _tmp0_;
- DataSet* _tmp1_;
-#line 663 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 664 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->selected;
-#line 664 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_set_reset_comparator (_tmp0_);
-#line 665 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->visible;
-#line 665 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ != NULL) {
-#line 4243 "ViewCollection.c"
- DataSet* _tmp2_;
-#line 666 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->visible;
-#line 666 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_set_reset_comparator (_tmp2_);
-#line 4249 "ViewCollection.c"
- }
-#line 668 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->reset_comparator (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 4253 "ViewCollection.c"
-}
-
-
-static GeeCollection*
-view_collection_real_get_all (DataCollection* base)
-{
- ViewCollection * self;
- GeeCollection* result = NULL;
- GeeCollection* _tmp0_ = NULL;
- DataSet* _tmp1_;
-#line 671 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->visible;
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ != NULL) {
-#line 4270 "ViewCollection.c"
- DataSet* _tmp2_;
- GeeList* _tmp3_;
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->visible;
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = data_set_get_all (_tmp2_);
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp0_);
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 4281 "ViewCollection.c"
- } else {
- GeeCollection* _tmp4_;
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp0_);
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _tmp4_;
-#line 4290 "ViewCollection.c"
- }
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp0_;
-#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4296 "ViewCollection.c"
-}
-
-
-GeeCollection*
-view_collection_get_all_unfiltered (ViewCollection* self)
-{
- GeeCollection* result = NULL;
- GeeCollection* _tmp0_;
-#line 675 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 676 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 676 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp0_;
-#line 676 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4313 "ViewCollection.c"
-}
-
-
-static gint
-view_collection_real_get_count (DataCollection* base)
-{
- ViewCollection * self;
- gint result = 0;
- gint _tmp0_ = 0;
- DataSet* _tmp1_;
-#line 679 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->visible;
-#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ != NULL) {
-#line 4330 "ViewCollection.c"
- DataSet* _tmp2_;
-#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->visible;
-#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_set_get_count (_tmp2_);
-#line 4336 "ViewCollection.c"
- } else {
-#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 4340 "ViewCollection.c"
- }
-#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp0_;
-#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4346 "ViewCollection.c"
-}
-
-
-gint
-view_collection_get_unfiltered_count (ViewCollection* self)
-{
- gint result = 0;
-#line 683 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), 0);
-#line 684 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 684 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4360 "ViewCollection.c"
-}
-
-
-static DataObject*
-view_collection_real_get_at (DataCollection* base,
- gint index)
-{
- ViewCollection * self;
- DataObject* result = NULL;
- DataObject* _tmp0_ = NULL;
- DataSet* _tmp1_;
-#line 687 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->visible;
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ != NULL) {
-#line 4378 "ViewCollection.c"
- DataSet* _tmp2_;
- DataObject* _tmp3_;
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->visible;
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = data_set_get_at (_tmp2_, index);
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp0_);
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _tmp3_;
-#line 4389 "ViewCollection.c"
- } else {
- DataObject* _tmp4_;
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), index);
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp0_);
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _tmp4_;
-#line 4398 "ViewCollection.c"
- }
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp0_;
-#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4404 "ViewCollection.c"
-}
-
-
-static gint
-view_collection_real_index_of (DataCollection* base,
- DataObject* object)
-{
- ViewCollection * self;
- gint result = 0;
- gint _tmp0_ = 0;
- DataSet* _tmp1_;
-#line 691 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 691 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), 0);
-#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->visible;
-#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ != NULL) {
-#line 4424 "ViewCollection.c"
- DataSet* _tmp2_;
-#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->visible;
-#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_set_index_of (_tmp2_, object);
-#line 4430 "ViewCollection.c"
- } else {
-#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), object);
-#line 4434 "ViewCollection.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp0_;
-#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4440 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_real_contains (DataCollection* base,
- DataObject* object)
-{
- ViewCollection * self;
- gboolean result = FALSE;
-#line 695 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 695 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 698 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!DATA_COLLECTION_CLASS (view_collection_parent_class)->contains (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), object)) {
-#line 699 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = FALSE;
-#line 699 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4460 "ViewCollection.c"
- }
-#line 702 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = view_collection_is_visible (self, G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 702 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4466 "ViewCollection.c"
-}
-
-
-static DataView*
-view_collection_real_get_first (ViewCollection* self)
-{
- DataView* result = NULL;
- DataView* _tmp0_ = NULL;
-#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) > 0) {
-#line 4477 "ViewCollection.c"
- DataObject* _tmp1_;
-#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), 0);
-#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp0_);
-#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView);
-#line 4485 "ViewCollection.c"
- } else {
-#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp0_);
-#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = NULL;
-#line 4491 "ViewCollection.c"
- }
-#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp0_;
-#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4497 "ViewCollection.c"
-}
-
-
-DataView*
-view_collection_get_first (ViewCollection* self)
-{
-#line 705 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 705 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return VIEW_COLLECTION_GET_CLASS (self)->get_first (self);
-#line 4508 "ViewCollection.c"
-}
-
-
-/**
- * @brief A helper method for places in the app that need a
- * non-rejected media source (namely Events, when looking to
- * automatically choose a thumbnail).
- *
- * @note If every view in this collection is rejected, we
- * return the first view; this is intentional. This prevents
- * pathological events that have nothing but rejected images
- * in them from breaking.
- */
-static DataView*
-view_collection_real_get_first_unrejected (ViewCollection* self)
-{
- DataView* result = NULL;
- DataView* dv = NULL;
- DataView* _tmp0_;
- gint num_views = 0;
- DataView* _tmp13_;
-#line 721 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) < 1) {
-#line 722 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = NULL;
-#line 722 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4536 "ViewCollection.c"
- }
-#line 725 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = view_collection_get_first (self);
-#line 725 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- dv = _tmp0_;
-#line 726 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- num_views = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 4546 "ViewCollection.c"
- gboolean _tmp1_ = FALSE;
- DataView* _tmp2_;
- MediaSource* tmp = NULL;
- DataView* _tmp5_;
- DataSource* _tmp6_;
- MediaSource* _tmp7_;
- gboolean _tmp8_ = FALSE;
- MediaSource* _tmp9_;
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = dv;
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp2_ != NULL) {
-#line 4559 "ViewCollection.c"
- DataView* _tmp3_;
- gint _tmp4_;
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = dv;
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = num_views;
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_collection_index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)) < (_tmp4_ - 1);
-#line 4568 "ViewCollection.c"
- } else {
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = FALSE;
-#line 4572 "ViewCollection.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!_tmp1_) {
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 4578 "ViewCollection.c"
- }
-#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = dv;
-#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = data_view_get_source (_tmp5_);
-#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp6_) : NULL;
-#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp7_ == NULL) {
-#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp6_);
-#line 4590 "ViewCollection.c"
- }
-#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- tmp = _tmp7_;
-#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = tmp;
-#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp9_ != NULL) {
-#line 4598 "ViewCollection.c"
- MediaSource* _tmp10_;
-#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = tmp;
-#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = media_source_get_rating (_tmp10_) != RATING_REJECTED;
-#line 4604 "ViewCollection.c"
- } else {
-#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = FALSE;
-#line 4608 "ViewCollection.c"
- }
-#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp8_) {
-#line 733 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = dv;
-#line 733 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (tmp);
-#line 733 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4618 "ViewCollection.c"
- } else {
- DataView* _tmp11_;
- DataView* _tmp12_;
-#line 735 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = dv;
-#line 735 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = view_collection_get_next (self, _tmp11_);
-#line 735 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (dv);
-#line 735 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- dv = _tmp12_;
-#line 4630 "ViewCollection.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (tmp);
-#line 4634 "ViewCollection.c"
- }
-#line 741 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = view_collection_get_first (self);
-#line 741 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp13_;
-#line 741 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (dv);
-#line 741 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4644 "ViewCollection.c"
-}
-
-
-DataView*
-view_collection_get_first_unrejected (ViewCollection* self)
-{
-#line 719 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 719 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return VIEW_COLLECTION_GET_CLASS (self)->get_first_unrejected (self);
-#line 4655 "ViewCollection.c"
-}
-
-
-static DataView*
-view_collection_real_get_last (ViewCollection* self)
-{
- DataView* result = NULL;
- DataView* _tmp0_ = NULL;
-#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) > 0) {
-#line 4666 "ViewCollection.c"
- DataObject* _tmp1_;
-#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) - 1);
-#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp0_);
-#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView);
-#line 4674 "ViewCollection.c"
- } else {
-#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp0_);
-#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = NULL;
-#line 4680 "ViewCollection.c"
- }
-#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp0_;
-#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4686 "ViewCollection.c"
-}
-
-
-DataView*
-view_collection_get_last (ViewCollection* self)
-{
-#line 744 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 744 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return VIEW_COLLECTION_GET_CLASS (self)->get_last (self);
-#line 4697 "ViewCollection.c"
-}
-
-
-static DataView*
-view_collection_real_get_next (ViewCollection* self,
- DataView* view)
-{
- DataView* result = NULL;
- gint index = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- DataObject* _tmp4_;
-#line 748 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), NULL);
-#line 749 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) == 0) {
-#line 750 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = NULL;
-#line 750 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4720 "ViewCollection.c"
- }
-#line 752 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- index = data_collection_index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject));
-#line 753 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = index;
-#line 753 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp0_ < 0) {
-#line 754 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = NULL;
-#line 754 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4732 "ViewCollection.c"
- }
-#line 756 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = index;
-#line 756 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- index = _tmp1_ + 1;
-#line 757 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = index;
-#line 757 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp2_ >= data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection))) {
-#line 758 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- index = 0;
-#line 4744 "ViewCollection.c"
- }
-#line 760 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = index;
-#line 760 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp3_);
-#line 760 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView);
-#line 760 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4754 "ViewCollection.c"
-}
-
-
-DataView*
-view_collection_get_next (ViewCollection* self,
- DataView* view)
-{
-#line 748 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 748 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return VIEW_COLLECTION_GET_CLASS (self)->get_next (self, view);
-#line 4766 "ViewCollection.c"
-}
-
-
-static DataView*
-view_collection_real_get_previous (ViewCollection* self,
- DataView* view)
-{
- DataView* result = NULL;
- gint index = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- DataObject* _tmp4_;
-#line 763 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), NULL);
-#line 764 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) == 0) {
-#line 765 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = NULL;
-#line 765 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4789 "ViewCollection.c"
- }
-#line 767 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- index = data_collection_index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject));
-#line 768 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = index;
-#line 768 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp0_ < 0) {
-#line 769 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = NULL;
-#line 769 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4801 "ViewCollection.c"
- }
-#line 771 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = index;
-#line 771 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- index = _tmp1_ - 1;
-#line 772 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = index;
-#line 772 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp2_ < 0) {
-#line 773 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- index = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) - 1;
-#line 4813 "ViewCollection.c"
- }
-#line 775 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = index;
-#line 775 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp3_);
-#line 775 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView);
-#line 775 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4823 "ViewCollection.c"
-}
-
-
-DataView*
-view_collection_get_previous (ViewCollection* self,
- DataView* view)
-{
-#line 763 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 763 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return VIEW_COLLECTION_GET_CLASS (self)->get_previous (self, view);
-#line 4835 "ViewCollection.c"
-}
-
-
-gboolean
-view_collection_get_immediate_neighbors (ViewCollection* self,
- DataSource* home,
- DataSource* * next,
- DataSource* * prev,
- const gchar* type_selector)
-{
- DataSource* _vala_next = NULL;
- DataSource* _vala_prev = NULL;
- gboolean result = FALSE;
- DataView* home_view = NULL;
- DataView* _tmp0_;
- DataView* _tmp1_;
- DataView* next_view = NULL;
- DataView* _tmp2_;
- DataView* _tmp3_;
- DataView* prev_view = NULL;
- DataView* _tmp16_;
- DataView* _tmp17_;
-#line 778 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 778 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (home), FALSE);
-#line 780 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_vala_next);
-#line 780 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_next = NULL;
-#line 781 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_vala_prev);
-#line 781 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_prev = NULL;
-#line 783 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = view_collection_get_view_for_source (self, home);
-#line 783 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- home_view = _tmp0_;
-#line 784 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = home_view;
-#line 784 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ == NULL) {
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = FALSE;
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (home_view);
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (next) {
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *next = _vala_next;
-#line 4886 "ViewCollection.c"
- } else {
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_vala_next);
-#line 4890 "ViewCollection.c"
- }
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (prev) {
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *prev = _vala_prev;
-#line 4896 "ViewCollection.c"
- } else {
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_vala_prev);
-#line 4900 "ViewCollection.c"
- }
-#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 4904 "ViewCollection.c"
- }
-#line 787 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = home_view;
-#line 787 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = view_collection_get_next (self, _tmp2_);
-#line 787 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- next_view = _tmp3_;
-#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 4914 "ViewCollection.c"
- DataView* _tmp4_;
- DataView* _tmp5_;
- gboolean _tmp6_ = FALSE;
- DataView* _tmp14_;
- DataView* _tmp15_;
-#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = next_view;
-#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = home_view;
-#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!(_tmp4_ != _tmp5_)) {
-#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 4928 "ViewCollection.c"
- }
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (type_selector == NULL) {
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = TRUE;
-#line 4934 "ViewCollection.c"
- } else {
- DataView* _tmp7_;
- DataSource* _tmp8_;
- DataSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = next_view;
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _tmp8_;
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = data_source_get_typename (_tmp9_);
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = _tmp10_;
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = g_strcmp0 (_tmp11_, type_selector) == 0;
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_free0 (_tmp11_);
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp9_);
-#line 4957 "ViewCollection.c"
- }
-#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp6_) {
-#line 4961 "ViewCollection.c"
- DataView* _tmp12_;
- DataSource* _tmp13_;
-#line 790 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = next_view;
-#line 790 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = data_view_get_source (_tmp12_);
-#line 790 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_vala_next);
-#line 790 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_next = _tmp13_;
-#line 791 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 4974 "ViewCollection.c"
- }
-#line 793 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = next_view;
-#line 793 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = view_collection_get_next (self, _tmp14_);
-#line 793 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next_view);
-#line 793 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- next_view = _tmp15_;
-#line 4984 "ViewCollection.c"
- }
-#line 796 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = home_view;
-#line 796 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = view_collection_get_previous (self, _tmp16_);
-#line 796 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- prev_view = _tmp17_;
-#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 4994 "ViewCollection.c"
- DataView* _tmp18_;
- DataView* _tmp19_;
- gboolean _tmp20_ = FALSE;
- DataView* _tmp28_;
- DataView* _tmp29_;
-#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = prev_view;
-#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = home_view;
-#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!(_tmp18_ != _tmp19_)) {
-#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 5008 "ViewCollection.c"
- }
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (type_selector == NULL) {
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = TRUE;
-#line 5014 "ViewCollection.c"
- } else {
- DataView* _tmp21_;
- DataSource* _tmp22_;
- DataSource* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = prev_view;
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = data_view_get_source (_tmp21_);
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp23_ = _tmp22_;
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp24_ = data_source_get_typename (_tmp23_);
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp25_ = _tmp24_;
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = g_strcmp0 (_tmp25_, type_selector) == 0;
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_free0 (_tmp25_);
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp23_);
-#line 5037 "ViewCollection.c"
- }
-#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp20_) {
-#line 5041 "ViewCollection.c"
- DataView* _tmp26_;
- DataSource* _tmp27_;
-#line 799 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp26_ = prev_view;
-#line 799 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp27_ = data_view_get_source (_tmp26_);
-#line 799 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_vala_prev);
-#line 799 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_prev = _tmp27_;
-#line 800 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 5054 "ViewCollection.c"
- }
-#line 802 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp28_ = prev_view;
-#line 802 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp29_ = view_collection_get_previous (self, _tmp28_);
-#line 802 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (prev_view);
-#line 802 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- prev_view = _tmp29_;
-#line 5064 "ViewCollection.c"
- }
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (prev_view);
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next_view);
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (home_view);
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (next) {
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *next = _vala_next;
-#line 5078 "ViewCollection.c"
- } else {
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_vala_next);
-#line 5082 "ViewCollection.c"
- }
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (prev) {
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *prev = _vala_prev;
-#line 5088 "ViewCollection.c"
- } else {
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_vala_prev);
-#line 5092 "ViewCollection.c"
- }
-#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5096 "ViewCollection.c"
-}
-
-
-GeeSet*
-view_collection_get_extended_neighbors (ViewCollection* self,
- DataSource* home,
- const gchar* typename)
-{
- GeeSet* result = NULL;
- GeeSet* neighbors = NULL;
- GeeHashSet* _tmp0_;
- DataSource* next = NULL;
- DataSource* prev = NULL;
- DataSource* _tmp1_ = NULL;
- DataSource* _tmp2_ = NULL;
- gboolean _tmp3_;
- DataSource* _tmp4_;
- DataSource* _tmp13_;
- GeeSet* _tmp22_;
-#line 809 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 809 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (home), NULL);
-#line 811 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 811 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- neighbors = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
-#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = view_collection_get_immediate_neighbors (self, home, &_tmp1_, &_tmp2_, typename);
-#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next);
-#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- next = _tmp1_;
-#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (prev);
-#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- prev = _tmp2_;
-#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!_tmp3_) {
-#line 816 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = neighbors;
-#line 816 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (prev);
-#line 816 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next);
-#line 816 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5144 "ViewCollection.c"
- }
-#line 819 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = next;
-#line 819 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp4_ != NULL) {
-#line 5150 "ViewCollection.c"
- GeeSet* _tmp5_;
- DataSource* _tmp6_;
- DataSource* next_next = NULL;
- DataSource* next_prev = NULL;
- DataSource* _tmp7_;
- DataSource* _tmp8_ = NULL;
- DataSource* _tmp9_ = NULL;
- DataSource* _tmp10_;
-#line 820 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = neighbors;
-#line 820 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = next;
-#line 820 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_);
-#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = next;
-#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_get_immediate_neighbors (self, _tmp7_, &_tmp8_, &_tmp9_, typename);
-#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next_next);
-#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- next_next = _tmp8_;
-#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next_prev);
-#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- next_prev = _tmp9_;
-#line 826 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = next_next;
-#line 826 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp10_ != NULL) {
-#line 5181 "ViewCollection.c"
- GeeSet* _tmp11_;
- DataSource* _tmp12_;
-#line 827 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = neighbors;
-#line 827 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = next_next;
-#line 827 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp12_);
-#line 5190 "ViewCollection.c"
- }
-#line 819 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next_prev);
-#line 819 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next_next);
-#line 5196 "ViewCollection.c"
- }
-#line 831 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = prev;
-#line 831 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp13_ != NULL) {
-#line 5202 "ViewCollection.c"
- GeeSet* _tmp14_;
- DataSource* _tmp15_;
- DataSource* next_prev = NULL;
- DataSource* prev_prev = NULL;
- DataSource* _tmp16_;
- DataSource* _tmp17_ = NULL;
- DataSource* _tmp18_ = NULL;
- DataSource* _tmp19_;
-#line 832 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = neighbors;
-#line 832 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = prev;
-#line 832 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_);
-#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = prev;
-#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_get_immediate_neighbors (self, _tmp16_, &_tmp17_, &_tmp18_, typename);
-#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next_prev);
-#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- next_prev = _tmp17_;
-#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (prev_prev);
-#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- prev_prev = _tmp18_;
-#line 838 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = prev_prev;
-#line 838 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp19_ != NULL) {
-#line 5233 "ViewCollection.c"
- GeeSet* _tmp20_;
- DataSource* _tmp21_;
-#line 839 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = neighbors;
-#line 839 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = prev_prev;
-#line 839 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp21_);
-#line 5242 "ViewCollection.c"
- }
-#line 831 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (prev_prev);
-#line 831 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next_prev);
-#line 5248 "ViewCollection.c"
- }
-#line 843 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = neighbors;
-#line 843 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), home);
-#line 845 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = neighbors;
-#line 845 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (prev);
-#line 845 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (next);
-#line 845 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5262 "ViewCollection.c"
-}
-
-
-static void
-view_collection_add_many_selected (ViewCollection* self,
- GeeCollection* views)
-{
- gint _tmp0_;
- gint _tmp1_;
- gboolean added = FALSE;
- DataSet* _tmp7_;
- gboolean _tmp8_;
-#line 850 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 850 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (views));
-#line 851 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_collection_get_size (views);
-#line 851 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _tmp0_;
-#line 851 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ == 0) {
-#line 852 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return;
-#line 5287 "ViewCollection.c"
- }
- {
- GeeIterator* _view_it = NULL;
- GeeIterator* _tmp2_;
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (views, GEE_TYPE_ITERABLE, GeeIterable));
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_it = _tmp2_;
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 5298 "ViewCollection.c"
- GeeIterator* _tmp3_;
- DataView* view = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataView* _tmp6_;
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _view_it;
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 5310 "ViewCollection.c"
- }
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _view_it;
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp5_;
-#line 855 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = view;
-#line 855 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (data_view_is_visible (_tmp6_), "view.is_visible()");
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 5324 "ViewCollection.c"
- }
-#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_view_it);
-#line 5328 "ViewCollection.c"
- }
-#line 857 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = self->priv->selected;
-#line 857 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- added = data_set_add_many (_tmp7_, views);
-#line 858 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = added;
-#line 858 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp8_, "added");
-#line 5338 "ViewCollection.c"
-}
-
-
-static void
-view_collection_remove_many_selected (ViewCollection* self,
- GeeCollection* views)
-{
- gint _tmp0_;
- gint _tmp1_;
- gboolean removed = FALSE;
- DataSet* _tmp2_;
- gboolean _tmp3_;
-#line 861 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 861 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (views));
-#line 862 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_collection_get_size (views);
-#line 862 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _tmp0_;
-#line 862 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ == 0) {
-#line 863 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return;
-#line 5363 "ViewCollection.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->selected;
-#line 865 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- removed = data_set_remove_many (_tmp2_, views);
-#line 866 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = removed;
-#line 866 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp3_, "removed");
-#line 5373 "ViewCollection.c"
-}
-
-
-static gboolean
-_view_collection_select_item_marked_action (DataObject* object,
- GObject* user,
- gpointer self)
-{
- gboolean result;
- result = view_collection_select_item ((ViewCollection*) self, object, user);
-#line 872 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5386 "ViewCollection.c"
-}
-
-
-void
-view_collection_select_marked (ViewCollection* self,
- Marker* marker)
-{
- GeeArrayList* selected = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 870 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 870 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_MARKER (marker));
-#line 871 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 871 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- selected = _tmp0_;
-#line 872 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = selected;
-#line 872 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _view_collection_select_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject));
-#line 874 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = selected;
-#line 874 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 874 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _tmp3_;
-#line 874 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp4_ > 0) {
-#line 5420 "ViewCollection.c"
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
-#line 875 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = selected;
-#line 875 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 876 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = selected;
-#line 876 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_selected_unselected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), NULL);
-#line 5431 "ViewCollection.c"
- }
-#line 870 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (selected);
-#line 5435 "ViewCollection.c"
-}
-
-
-void
-view_collection_select_all (ViewCollection* self)
-{
- Marker* marker = NULL;
- Marker* _tmp0_;
-#line 881 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 882 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 882 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker = _tmp0_;
-#line 883 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker_mark_all (marker);
-#line 884 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_select_marked (self, marker);
-#line 881 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (marker);
-#line 5456 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_select_item (ViewCollection* self,
- DataObject* object,
- GObject* user)
-{
- gboolean result = FALSE;
- DataView* view = NULL;
- DataView* _tmp0_;
- DataView* _tmp1_;
- DataView* _tmp5_;
- DataView* _tmp6_;
-#line 887 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 887 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 887 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE);
-#line 888 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 888 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp0_;
-#line 889 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = view;
-#line 889 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_selected (_tmp1_)) {
-#line 5485 "ViewCollection.c"
- DataView* _tmp2_;
-#line 890 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = view;
-#line 890 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_visible (_tmp2_)) {
-#line 5491 "ViewCollection.c"
- DataSet* _tmp3_;
- DataView* _tmp4_;
-#line 891 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = self->priv->selected;
-#line 891 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = view;
-#line 891 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (data_set_contains (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)), "selected.contains(view)");
-#line 5500 "ViewCollection.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 893 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 893 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5508 "ViewCollection.c"
- }
-#line 896 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = view;
-#line 896 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_view_internal_set_selected (_tmp5_, TRUE);
-#line 900 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = view;
-#line 900 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_visible (_tmp6_)) {
-#line 5518 "ViewCollection.c"
- DataView* _tmp7_;
-#line 901 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = view;
-#line 901 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (user, GEE_TYPE_ARRAY_LIST, GeeArrayList), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_);
-#line 5524 "ViewCollection.c"
- }
-#line 903 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 903 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 903 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5532 "ViewCollection.c"
-}
-
-
-static gboolean
-_view_collection_unselect_item_marked_action (DataObject* object,
- GObject* user,
- gpointer self)
-{
- gboolean result;
- result = view_collection_unselect_item ((ViewCollection*) self, object, user);
-#line 909 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5545 "ViewCollection.c"
-}
-
-
-void
-view_collection_unselect_marked (ViewCollection* self,
- Marker* marker)
-{
- GeeArrayList* unselected = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 907 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 907 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_MARKER (marker));
-#line 908 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 908 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- unselected = _tmp0_;
-#line 909 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = unselected;
-#line 909 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _view_collection_unselect_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject));
-#line 911 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = unselected;
-#line 911 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 911 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _tmp3_;
-#line 911 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp4_ > 0) {
-#line 5579 "ViewCollection.c"
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
-#line 912 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = unselected;
-#line 912 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 913 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = unselected;
-#line 913 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_selected_unselected (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 5590 "ViewCollection.c"
- }
-#line 907 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (unselected);
-#line 5594 "ViewCollection.c"
-}
-
-
-void
-view_collection_unselect_all (ViewCollection* self)
-{
- DataSet* _tmp0_;
- Marker* marker = NULL;
- Marker* _tmp1_;
- Marker* _tmp2_;
- GeeList* _tmp3_;
- GeeList* _tmp4_;
- Marker* _tmp5_;
-#line 918 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 919 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->selected;
-#line 919 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_set_get_count (_tmp0_) == 0) {
-#line 920 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return;
-#line 5616 "ViewCollection.c"
- }
-#line 922 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 922 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker = _tmp1_;
-#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = marker;
-#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = view_collection_get_selected (self);
-#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _tmp3_;
-#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker_mark_many (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp4_);
-#line 925 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = marker;
-#line 925 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_unselect_marked (self, _tmp5_);
-#line 918 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (marker);
-#line 5638 "ViewCollection.c"
-}
-
-
-void
-view_collection_unselect_all_but (ViewCollection* self,
- DataView* exception)
-{
- Marker* marker = NULL;
- Marker* _tmp0_;
- Marker* _tmp13_;
-#line 929 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 929 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_VIEW (exception));
-#line 930 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 930 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker = _tmp0_;
-#line 5657 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_;
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _tmp3_;
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp2_);
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp4_;
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 5678 "ViewCollection.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- DataView* view = NULL;
- DataObject* _tmp8_;
- DataView* _tmp9_;
- DataView* _tmp10_;
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _object_it;
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 5693 "ViewCollection.c"
- }
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = _object_it;
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp7_;
-#line 932 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = object;
-#line 932 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_VIEW, DataView));
-#line 932 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp9_;
-#line 933 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = view;
-#line 933 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp10_ != exception) {
-#line 5711 "ViewCollection.c"
- Marker* _tmp11_;
- DataView* _tmp12_;
-#line 934 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = marker;
-#line 934 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = view;
-#line 934 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- marker_mark (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
-#line 5720 "ViewCollection.c"
- }
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 5726 "ViewCollection.c"
- }
-#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 5730 "ViewCollection.c"
- }
-#line 937 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = marker;
-#line 937 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_unselect_marked (self, _tmp13_);
-#line 929 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (marker);
-#line 5738 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_unselect_item (ViewCollection* self,
- DataObject* object,
- GObject* user)
-{
- gboolean result = FALSE;
- DataView* view = NULL;
- DataView* _tmp0_;
- DataView* _tmp1_;
- DataView* _tmp4_;
- DataView* _tmp5_;
-#line 940 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 940 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 940 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE);
-#line 941 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 941 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp0_;
-#line 942 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = view;
-#line 942 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!data_view_is_selected (_tmp1_)) {
-#line 5767 "ViewCollection.c"
- DataSet* _tmp2_;
- DataView* _tmp3_;
-#line 943 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->selected;
-#line 943 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = view;
-#line 943 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (!data_set_contains (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)), "!selected.contains(view)");
-#line 945 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 945 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 945 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5782 "ViewCollection.c"
- }
-#line 948 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = view;
-#line 948 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_view_internal_set_selected (_tmp4_, FALSE);
-#line 949 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = view;
-#line 949 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (user, GEE_TYPE_ARRAY_LIST, GeeArrayList), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_);
-#line 951 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 951 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 951 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5798 "ViewCollection.c"
-}
-
-
-void
-view_collection_unselect_and_select_marked (ViewCollection* self,
- Marker* unselect,
- Marker* select)
-{
- GeeArrayList* unselected = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* selected = NULL;
- GeeArrayList* _tmp1_;
-#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_MARKER (unselect));
-#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_MARKER (select));
-#line 956 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 956 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- unselected = _tmp0_;
-#line 957 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), unselect, _view_collection_unselect_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (unselected, G_TYPE_OBJECT, GObject));
-#line 959 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (unselected, GEE_TYPE_COLLECTION, GeeCollection));
-#line 961 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 961 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- selected = _tmp1_;
-#line 962 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), select, _view_collection_select_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (selected, G_TYPE_OBJECT, GObject));
-#line 964 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (selected, GEE_TYPE_COLLECTION, GeeCollection));
-#line 966 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_selected_unselected (self, G_TYPE_CHECK_INSTANCE_CAST (selected, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (unselected, GEE_TYPE_COLLECTION, GeeCollection));
-#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (selected);
-#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (unselected);
-#line 5839 "ViewCollection.c"
-}
-
-
-static gboolean
-_view_collection_toggle_item_marked_action (DataObject* object,
- GObject* user,
- gpointer self)
-{
- gboolean result;
- result = view_collection_toggle_item ((ViewCollection*) self, object, user);
-#line 973 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5852 "ViewCollection.c"
-}
-
-
-void
-view_collection_toggle_marked (ViewCollection* self,
- Marker* marker)
-{
- ViewCollectionToggleLists* lists = NULL;
- ViewCollectionToggleLists* _tmp0_;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
- GeeArrayList* _tmp4_;
-#line 971 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 971 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_MARKER (marker));
-#line 972 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = view_collection_toggle_lists_new ();
-#line 972 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- lists = _tmp0_;
-#line 973 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _view_collection_toggle_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (lists, G_TYPE_OBJECT, GObject));
-#line 976 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = lists->selected;
-#line 976 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 977 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = lists->unselected;
-#line 977 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 979 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = lists->selected;
-#line 979 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = lists->unselected;
-#line 979 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_selected_unselected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 971 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (lists);
-#line 5892 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_toggle_item (ViewCollection* self,
- DataObject* object,
- GObject* user)
-{
- gboolean result = FALSE;
- DataView* view = NULL;
- DataView* _tmp0_;
- ViewCollectionToggleLists* lists = NULL;
- ViewCollectionToggleLists* _tmp1_;
- DataView* _tmp2_;
-#line 982 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 982 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 982 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE);
-#line 983 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView));
-#line 983 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp0_;
-#line 984 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (user, VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleLists));
-#line 984 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- lists = _tmp1_;
-#line 990 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = view;
-#line 990 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_internal_toggle (_tmp2_)) {
-#line 5925 "ViewCollection.c"
- DataView* _tmp3_;
-#line 991 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = view;
-#line 991 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_visible (_tmp3_)) {
-#line 5931 "ViewCollection.c"
- ViewCollectionToggleLists* _tmp4_;
- GeeArrayList* _tmp5_;
- DataView* _tmp6_;
-#line 992 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = lists;
-#line 992 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _tmp4_->selected;
-#line 992 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = view;
-#line 992 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_);
-#line 5943 "ViewCollection.c"
- }
- } else {
- ViewCollectionToggleLists* _tmp7_;
- GeeArrayList* _tmp8_;
- DataView* _tmp9_;
-#line 994 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = lists;
-#line 994 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = _tmp7_->unselected;
-#line 994 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = view;
-#line 994 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_);
-#line 5957 "ViewCollection.c"
- }
-#line 997 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 997 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (lists);
-#line 997 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 997 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5967 "ViewCollection.c"
-}
-
-
-gint
-view_collection_get_selected_count (ViewCollection* self)
-{
- gint result = 0;
- DataSet* _tmp0_;
-#line 1000 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), 0);
-#line 1001 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->selected;
-#line 1001 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = data_set_get_count (_tmp0_);
-#line 1001 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 5984 "ViewCollection.c"
-}
-
-
-GeeList*
-view_collection_get_selected (ViewCollection* self)
-{
- GeeList* result = NULL;
- DataSet* _tmp0_;
- GeeList* _tmp1_;
-#line 1004 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1005 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->selected;
-#line 1005 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_set_get_all (_tmp0_);
-#line 1005 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList);
-#line 1005 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6004 "ViewCollection.c"
-}
-
-
-DataView*
-view_collection_get_selected_at (ViewCollection* self,
- gint index)
-{
- DataView* result = NULL;
- DataSet* _tmp0_;
- DataObject* _tmp1_;
-#line 1008 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1009 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->selected;
-#line 1009 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_set_get_at (_tmp0_, index);
-#line 1009 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView);
-#line 1009 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6025 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_is_visible (ViewCollection* self,
- DataView* view)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- DataSet* _tmp1_;
-#line 1012 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 1012 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->visible;
-#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp1_ != NULL) {
-#line 6044 "ViewCollection.c"
- DataSet* _tmp2_;
-#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->visible;
-#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_set_contains (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject));
-#line 6050 "ViewCollection.c"
- } else {
-#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = TRUE;
-#line 6054 "ViewCollection.c"
- }
-#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp0_;
-#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6060 "ViewCollection.c"
-}
-
-
-static gboolean
-view_collection_add_many_visible (ViewCollection* self,
- GeeCollection* many)
-{
- gboolean result = FALSE;
- DataSet* _tmp0_;
- DataSet* _tmp1_;
- DataSet* _tmp2_;
-#line 1016 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 1016 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (many), FALSE);
-#line 1017 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->visible;
-#line 1017 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp0_ == NULL) {
-#line 1018 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 1018 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6084 "ViewCollection.c"
- }
-#line 1020 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->visible;
-#line 1020 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!data_set_add_many (_tmp1_, many)) {
-#line 1021 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = FALSE;
-#line 1021 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6094 "ViewCollection.c"
- }
-#line 1024 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->visible;
-#line 1024 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_set_get_count (_tmp2_) == DATA_COLLECTION_CLASS (view_collection_parent_class)->get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection))) {
-#line 1025 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_set_unref0 (self->priv->visible);
-#line 1025 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->visible = NULL;
-#line 6104 "ViewCollection.c"
- }
-#line 1027 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 1027 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6110 "ViewCollection.c"
-}
-
-
-static void
-view_collection_hide_items (ViewCollection* self,
- GeeList* to_hide)
-{
- GeeArrayList* unselected = NULL;
- GeeArrayList* _tmp0_;
- gint count = 0;
- gint _tmp1_;
- gint _tmp2_;
- DataSet* _tmp17_;
- gboolean removed = FALSE;
- DataSet* _tmp19_;
- gboolean _tmp20_;
- GeeArrayList* _tmp21_;
- GeeArrayList* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp26_;
- gint _tmp27_;
-#line 1031 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 1031 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_LIST (to_hide));
-#line 1032 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1032 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- unselected = _tmp0_;
-#line 1034 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1034 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_;
-#line 1034 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- count = _tmp2_;
-#line 6147 "ViewCollection.c"
- {
- gint ctr = 0;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ctr = 0;
-#line 6152 "ViewCollection.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = TRUE;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 6159 "ViewCollection.c"
- gint _tmp5_;
- gint _tmp6_;
- DataView* view = NULL;
- gint _tmp7_;
- gpointer _tmp8_;
- DataView* _tmp9_;
- DataView* _tmp10_;
- DataView* _tmp16_;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!_tmp3_) {
-#line 6170 "ViewCollection.c"
- gint _tmp4_;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = ctr;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ctr = _tmp4_ + 1;
-#line 6176 "ViewCollection.c"
- }
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = FALSE;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = ctr;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = count;
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!(_tmp5_ < _tmp6_)) {
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 6188 "ViewCollection.c"
- }
-#line 1036 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = ctr;
-#line 1036 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = gee_list_get (to_hide, _tmp7_);
-#line 1036 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp8_;
-#line 1037 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = view;
-#line 1037 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (data_view_is_visible (_tmp9_), "view.is_visible()");
-#line 1039 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = view;
-#line 1039 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_selected (_tmp10_)) {
-#line 6204 "ViewCollection.c"
- DataView* _tmp11_;
- GeeArrayList* _tmp12_;
- DataView* _tmp13_;
-#line 1040 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = view;
-#line 1040 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_view_internal_set_selected (_tmp11_, FALSE);
-#line 1041 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = unselected;
-#line 1041 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = view;
-#line 1041 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_);
-#line 6218 "ViewCollection.c"
- } else {
- DataSet* _tmp14_;
- DataView* _tmp15_;
-#line 1043 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = self->priv->selected;
-#line 1043 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = view;
-#line 1043 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (!data_set_contains (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_OBJECT, DataObject)), "!selected.contains(view)");
-#line 6228 "ViewCollection.c"
- }
-#line 1046 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = view;
-#line 1046 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_view_internal_set_visible (_tmp16_, FALSE);
-#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 6236 "ViewCollection.c"
- }
- }
- }
-#line 1049 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = self->priv->visible;
-#line 1049 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp17_ == NULL) {
-#line 6244 "ViewCollection.c"
- DataSet* _tmp18_;
-#line 1051 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = data_collection_get_dataset_copy (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 1051 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_set_unref0 (self->priv->visible);
-#line 1051 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->visible = _tmp18_;
-#line 6252 "ViewCollection.c"
- }
-#line 1054 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = self->priv->visible;
-#line 1054 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- removed = data_set_remove_many (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1055 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp20_ = removed;
-#line 1055 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp20_, "removed");
-#line 1057 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp21_ = unselected;
-#line 1057 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1059 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp22_ = unselected;
-#line 1059 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp23_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1059 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp24_ = _tmp23_;
-#line 1059 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp24_ > 0) {
-#line 6274 "ViewCollection.c"
- GeeArrayList* _tmp25_;
-#line 1060 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp25_ = unselected;
-#line 1060 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_selected_unselected (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 6280 "ViewCollection.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp26_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1062 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp27_ = _tmp26_;
-#line 1062 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp27_ > 0) {
-#line 1063 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_hidden (self, G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1064 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_visibility_changed (self, G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection));
-#line 6292 "ViewCollection.c"
- }
-#line 1031 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (unselected);
-#line 6296 "ViewCollection.c"
-}
-
-
-static void
-view_collection_show_items (ViewCollection* self,
- GeeList* to_show)
-{
- GeeArrayList* added_selected = NULL;
- GeeArrayList* _tmp0_;
- gint count = 0;
- gint _tmp1_;
- gint _tmp2_;
- gboolean added = FALSE;
- gboolean _tmp16_;
- GeeArrayList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
-#line 1069 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 1069 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_LIST (to_show));
-#line 1070 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1070 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- added_selected = _tmp0_;
-#line 1072 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1072 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_;
-#line 1072 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- count = _tmp2_;
-#line 6328 "ViewCollection.c"
- {
- gint ctr = 0;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ctr = 0;
-#line 6333 "ViewCollection.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = TRUE;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 6340 "ViewCollection.c"
- gint _tmp5_;
- gint _tmp6_;
- DataView* view = NULL;
- gint _tmp7_;
- gpointer _tmp8_;
- DataView* _tmp9_;
- DataView* _tmp10_;
- DataView* _tmp11_;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!_tmp3_) {
-#line 6351 "ViewCollection.c"
- gint _tmp4_;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = ctr;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ctr = _tmp4_ + 1;
-#line 6357 "ViewCollection.c"
- }
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = FALSE;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = ctr;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = count;
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!(_tmp5_ < _tmp6_)) {
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 6369 "ViewCollection.c"
- }
-#line 1074 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = ctr;
-#line 1074 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = gee_list_get (to_show, _tmp7_);
-#line 1074 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp8_;
-#line 1075 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = view;
-#line 1075 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (!data_view_is_visible (_tmp9_), "!view.is_visible()");
-#line 1077 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = view;
-#line 1077 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data_view_internal_set_visible (_tmp10_, TRUE);
-#line 1080 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = view;
-#line 1080 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (data_view_is_selected (_tmp11_)) {
-#line 6389 "ViewCollection.c"
- DataSet* _tmp12_;
- DataView* _tmp13_;
- GeeArrayList* _tmp14_;
- DataView* _tmp15_;
-#line 1081 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = self->priv->selected;
-#line 1081 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = view;
-#line 1081 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (!data_set_contains (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject)), "!selected.contains(view)");
-#line 1082 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = added_selected;
-#line 1082 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = view;
-#line 1082 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 6406 "ViewCollection.c"
- }
-#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 6410 "ViewCollection.c"
- }
- }
- }
-#line 1086 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- added = view_collection_add_many_visible (self, G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1087 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = added;
-#line 1087 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (_tmp16_, "added");
-#line 1089 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp17_ = added_selected;
-#line 1089 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1091 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1091 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp19_ = _tmp18_;
-#line 1091 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp19_ > 0) {
-#line 1092 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_shown (self, G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1093 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_items_visibility_changed (self, G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection));
-#line 6434 "ViewCollection.c"
- }
-#line 1069 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (added_selected);
-#line 6438 "ViewCollection.c"
-}
-
-
-gboolean
-view_collection_has_view_for_source (ViewCollection* self,
- DataSource* source)
-{
- gboolean result = FALSE;
- DataView* _tmp0_;
- DataView* _tmp1_;
- gboolean _tmp2_;
-#line 1098 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 1098 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = view_collection_get_view_for_source (self, source);
-#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _tmp0_;
-#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_ != NULL;
-#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp2_;
-#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6466 "ViewCollection.c"
-}
-
-
-DataView*
-view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source)
-{
- DataView* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 1103 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1103 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 1104 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->source_map;
-#line 1104 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source);
-#line 1104 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = (DataView*) _tmp1_;
-#line 1104 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6489 "ViewCollection.c"
-}
-
-
-gboolean
-view_collection_has_view_for_source_with_filtered (ViewCollection* self,
- DataSource* source)
-{
- gboolean result = FALSE;
- DataView* _tmp0_;
- DataView* _tmp1_;
- gboolean _tmp2_;
-#line 1108 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 1108 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = view_collection_get_view_for_source_filtered (self, source);
-#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _tmp0_;
-#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_ != NULL;
-#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp2_;
-#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6517 "ViewCollection.c"
-}
-
-
-DataView*
-view_collection_get_view_for_source_filtered (ViewCollection* self,
- DataSource* source)
-{
- DataView* result = NULL;
- DataView* view = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gboolean _tmp2_ = FALSE;
- DataView* _tmp3_;
-#line 1113 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1113 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 1114 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->source_map;
-#line 1114 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source);
-#line 1114 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp1_;
-#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = view;
-#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp3_ != NULL) {
-#line 6545 "ViewCollection.c"
- DataView* _tmp4_;
-#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = view;
-#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = !view_collection_is_in_filter (self, _tmp4_);
-#line 6551 "ViewCollection.c"
- } else {
-#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = FALSE;
-#line 6555 "ViewCollection.c"
- }
-#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp2_) {
-#line 1117 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = NULL;
-#line 1117 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 1117 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6565 "ViewCollection.c"
- }
-#line 1118 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = view;
-#line 1118 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6571 "ViewCollection.c"
-}
-
-
-GeeCollection*
-view_collection_get_sources (ViewCollection* self)
-{
- GeeCollection* result = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeSet* _tmp4_;
- GeeSet* _tmp5_;
- GeeCollection* _tmp6_;
-#line 1122 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->source_map;
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_;
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _tmp2_;
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = gee_set_get_read_only_view (_tmp3_);
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _tmp4_;
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp3_);
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp6_;
-#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6608 "ViewCollection.c"
-}
-
-
-gboolean
-view_collection_has_source_of_type (ViewCollection* self,
- GType t)
-{
- gboolean result = FALSE;
-#line 1127 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 1128 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (g_type_is_a (t, TYPE_DATA_SOURCE), "t.is_a(typeof(DataSource))");
-#line 6621 "ViewCollection.c"
- {
- GeeIterator* _source_it = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->source_map;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp1_;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _tmp2_;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _tmp4_;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp3_);
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _source_it = _tmp5_;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 6648 "ViewCollection.c"
- GeeIterator* _tmp6_;
- DataSource* source = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- DataSource* _tmp9_;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = _source_it;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 6660 "ViewCollection.c"
- }
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = _source_it;
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- source = (DataSource*) _tmp8_;
-#line 1131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = source;
-#line 1131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject)), t)) {
-#line 1132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 1132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 1132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_source_it);
-#line 1132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6680 "ViewCollection.c"
- }
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 6684 "ViewCollection.c"
- }
-#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_source_it);
-#line 6688 "ViewCollection.c"
- }
-#line 1135 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = FALSE;
-#line 1135 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6694 "ViewCollection.c"
-}
-
-
-gint
-view_collection_get_sources_of_type_count (ViewCollection* self,
- GType t)
-{
- gint result = 0;
- gint count = 0;
-#line 1138 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), 0);
-#line 1139 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (g_type_is_a (t, TYPE_DATA_SOURCE), "t.is_a(typeof(DataSource))");
-#line 1141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- count = 0;
-#line 6710 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _tmp0_;
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _tmp2_;
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp3_;
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 6731 "ViewCollection.c"
- GeeIterator* _tmp4_;
- DataObject* object = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- DataObject* _tmp7_;
- DataSource* _tmp8_;
- DataSource* _tmp9_;
- gboolean _tmp10_;
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _object_it;
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 6746 "ViewCollection.c"
- }
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _object_it;
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp6_;
-#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = object;
-#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_VIEW, DataView));
-#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = _tmp8_;
-#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject)), t);
-#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp9_);
-#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp10_) {
-#line 6766 "ViewCollection.c"
- gint _tmp11_;
-#line 1144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = count;
-#line 1144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- count = _tmp11_ + 1;
-#line 6772 "ViewCollection.c"
- }
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 6776 "ViewCollection.c"
- }
-#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 6780 "ViewCollection.c"
- }
-#line 1147 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = count;
-#line 1147 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6786 "ViewCollection.c"
-}
-
-
-GeeList*
-view_collection_get_sources_of_type (ViewCollection* self,
- GType t)
-{
- GeeList* result = NULL;
- GeeList* sources = NULL;
-#line 1150 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1151 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _vala_assert (g_type_is_a (t, TYPE_DATA_SOURCE), "t.is_a(typeof(DataSource))");
-#line 1153 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sources = NULL;
-#line 6802 "ViewCollection.c"
- {
- GeeIterator* _object_it = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _tmp0_;
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _tmp2_;
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _object_it = _tmp3_;
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 6823 "ViewCollection.c"
- GeeIterator* _tmp4_;
- DataObject* object = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- DataSource* source = NULL;
- DataObject* _tmp7_;
- DataSource* _tmp8_;
- DataSource* _tmp9_;
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _object_it;
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 6838 "ViewCollection.c"
- }
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _object_it;
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = (DataObject*) _tmp6_;
-#line 1155 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = object;
-#line 1155 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_VIEW, DataView));
-#line 1155 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- source = _tmp8_;
-#line 1156 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = source;
-#line 1156 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject)), t)) {
-#line 6856 "ViewCollection.c"
- GeeList* _tmp10_;
- GeeList* _tmp12_;
- DataSource* _tmp13_;
-#line 1157 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = sources;
-#line 1157 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp10_ == NULL) {
-#line 6864 "ViewCollection.c"
- GeeArrayList* _tmp11_;
-#line 1158 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1158 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (sources);
-#line 1158 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_LIST, GeeList);
-#line 6872 "ViewCollection.c"
- }
-#line 1160 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = sources;
-#line 1160 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = source;
-#line 1160 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_);
-#line 6880 "ViewCollection.c"
- }
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 6886 "ViewCollection.c"
- }
-#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_object_it);
-#line 6890 "ViewCollection.c"
- }
-#line 1164 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = sources;
-#line 1164 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6896 "ViewCollection.c"
-}
-
-
-GeeList*
-view_collection_get_selected_sources (ViewCollection* self)
-{
- GeeList* result = NULL;
- GeeList* sources = NULL;
- GeeArrayList* _tmp0_;
- gint count = 0;
- DataSet* _tmp1_;
-#line 1167 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1168 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1168 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 1170 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->selected;
-#line 1170 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- count = data_set_get_count (_tmp1_);
-#line 6918 "ViewCollection.c"
- {
- gint ctr = 0;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ctr = 0;
-#line 6923 "ViewCollection.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = TRUE;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 6930 "ViewCollection.c"
- gint _tmp4_;
- gint _tmp5_;
- GeeList* _tmp6_;
- DataSet* _tmp7_;
- gint _tmp8_;
- DataObject* _tmp9_;
- DataView* _tmp10_;
- DataSource* _tmp11_;
- DataSource* _tmp12_;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!_tmp2_) {
-#line 6942 "ViewCollection.c"
- gint _tmp3_;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = ctr;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ctr = _tmp3_ + 1;
-#line 6948 "ViewCollection.c"
- }
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = FALSE;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = ctr;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = count;
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!(_tmp4_ < _tmp5_)) {
-#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 6960 "ViewCollection.c"
- }
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = sources;
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = self->priv->selected;
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = ctr;
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = data_set_get_at (_tmp7_, _tmp8_);
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_VIEW, DataView);
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = data_view_get_source (_tmp10_);
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = _tmp11_;
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp12_);
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp12_);
-#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp10_);
-#line 6982 "ViewCollection.c"
- }
- }
- }
-#line 1174 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = sources;
-#line 1174 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 6990 "ViewCollection.c"
-}
-
-
-DataSource*
-view_collection_get_selected_source_at (ViewCollection* self,
- gint index)
-{
- DataSource* result = NULL;
- DataObject* object = NULL;
- DataSet* _tmp0_;
- DataObject* _tmp1_;
- DataSource* _tmp2_ = NULL;
- DataObject* _tmp3_;
-#line 1177 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1178 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->selected;
-#line 1178 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_set_get_at (_tmp0_, index);
-#line 1178 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- object = _tmp1_;
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = object;
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp3_ != NULL) {
-#line 7016 "ViewCollection.c"
- DataObject* _tmp4_;
- DataSource* _tmp5_;
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = object;
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView));
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp2_);
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _tmp5_;
-#line 7027 "ViewCollection.c"
- } else {
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp2_);
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = NULL;
-#line 7033 "ViewCollection.c"
- }
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp2_;
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (object);
-#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 7041 "ViewCollection.c"
-}
-
-
-GeeList*
-view_collection_get_selected_sources_of_type (ViewCollection* self,
- GType t)
-{
- GeeList* result = NULL;
- GeeList* sources = NULL;
-#line 1183 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL);
-#line 1184 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sources = NULL;
-#line 7055 "ViewCollection.c"
- {
- GeeList* _view_list = NULL;
- GeeList* _tmp0_;
- gint _view_size = 0;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _view_index = 0;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = view_collection_get_selected (self);
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_list = _tmp0_;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _view_list;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _tmp2_;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_size = _tmp3_;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_index = -1;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 7080 "ViewCollection.c"
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- DataView* view = NULL;
- GeeList* _tmp7_;
- gint _tmp8_;
- gpointer _tmp9_;
- DataSource* source = NULL;
- DataView* _tmp10_;
- DataSource* _tmp11_;
- DataSource* _tmp12_;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _view_index;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_index = _tmp4_ + 1;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = _view_index;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = _view_size;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!(_tmp5_ < _tmp6_)) {
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 7104 "ViewCollection.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = _view_list;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = _view_index;
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = gee_list_get (_tmp7_, _tmp8_);
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp9_;
-#line 1186 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = view;
-#line 1186 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = data_view_get_source (_tmp10_);
-#line 1186 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- source = _tmp11_;
-#line 1187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = source;
-#line 1187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, G_TYPE_OBJECT, GObject)), t)) {
-#line 7124 "ViewCollection.c"
- GeeList* _tmp13_;
- GeeList* _tmp15_;
- DataSource* _tmp16_;
-#line 1188 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = sources;
-#line 1188 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp13_ == NULL) {
-#line 7132 "ViewCollection.c"
- GeeArrayList* _tmp14_;
-#line 1189 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1189 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (sources);
-#line 1189 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_LIST, GeeList);
-#line 7140 "ViewCollection.c"
- }
-#line 1191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = sources;
-#line 1191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp16_ = source;
-#line 1191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), _tmp16_);
-#line 7148 "ViewCollection.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (source);
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 7154 "ViewCollection.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_view_list);
-#line 7158 "ViewCollection.c"
- }
-#line 1195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = sources;
-#line 1195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 7164 "ViewCollection.c"
-}
-
-
-gint
-view_collection_index_of_source (ViewCollection* self,
- DataSource* source)
-{
- gint result = 0;
- DataView* view = NULL;
- DataView* _tmp0_;
- gint _tmp1_ = 0;
- DataView* _tmp2_;
-#line 1199 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), 0);
-#line 1199 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), 0);
-#line 1200 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = view_collection_get_view_for_source (self, source);
-#line 1200 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = _tmp0_;
-#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = view;
-#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp2_ != NULL) {
-#line 7189 "ViewCollection.c"
- DataView* _tmp3_;
-#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = view;
-#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = data_collection_index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject));
-#line 7195 "ViewCollection.c"
- } else {
-#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = -1;
-#line 7199 "ViewCollection.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = _tmp1_;
-#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 7207 "ViewCollection.c"
-}
-
-
-void
-view_collection_internal_notify_view_altered (ViewCollection* self,
- DataView* view)
-{
-#line 1206 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 1206 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 1207 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection))) {
-#line 7221 "ViewCollection.c"
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 1208 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_item_view_altered (self, view);
-#line 1209 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_collection_get_singleton (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject));
-#line 1209 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1209 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_views_altered (self, _tmp1_);
-#line 1209 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 7234 "ViewCollection.c"
- } else {
- GeeHashSet* _tmp2_;
- GeeHashSet* _tmp4_;
-#line 1211 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->frozen_views_altered;
-#line 1211 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp2_ == NULL) {
-#line 7242 "ViewCollection.c"
- GeeHashSet* _tmp3_;
-#line 1212 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_hash_set_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1212 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->frozen_views_altered);
-#line 1212 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->frozen_views_altered = _tmp3_;
-#line 7250 "ViewCollection.c"
- }
-#line 1213 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = self->priv->frozen_views_altered;
-#line 1213 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), view);
-#line 7256 "ViewCollection.c"
- }
-}
-
-
-void
-view_collection_internal_notify_geometry_altered (ViewCollection* self,
- DataView* view)
-{
-#line 1218 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_COLLECTION (self));
-#line 1218 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 1219 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection))) {
-#line 7271 "ViewCollection.c"
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
-#line 1220 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_item_geometry_altered (self, view);
-#line 1221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = data_collection_get_singleton (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject));
-#line 1221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_geometries_altered (self, _tmp1_);
-#line 1221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_tmp1_);
-#line 7284 "ViewCollection.c"
- } else {
- GeeHashSet* _tmp2_;
- GeeHashSet* _tmp4_;
-#line 1223 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = self->priv->frozen_geometries_altered;
-#line 1223 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp2_ == NULL) {
-#line 7292 "ViewCollection.c"
- GeeHashSet* _tmp3_;
-#line 1224 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_hash_set_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1224 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->frozen_geometries_altered);
-#line 1224 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->frozen_geometries_altered = _tmp3_;
-#line 7300 "ViewCollection.c"
- }
-#line 1225 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = self->priv->frozen_geometries_altered;
-#line 1225 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), view);
-#line 7306 "ViewCollection.c"
- }
-}
-
-
-static void
-view_collection_real_notify_thawed (DataCollection* base)
-{
- ViewCollection * self;
- GeeHashSet* _tmp0_;
- GeeHashSet* _tmp8_;
-#line 1229 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 1230 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->priv->frozen_views_altered;
-#line 1230 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp0_ != NULL) {
-#line 7323 "ViewCollection.c"
- GeeHashSet* _tmp7_;
- {
- GeeIterator* _view_it = NULL;
- GeeHashSet* _tmp1_;
- GeeIterator* _tmp2_;
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->priv->frozen_views_altered;
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_it = _tmp2_;
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 7337 "ViewCollection.c"
- GeeIterator* _tmp3_;
- DataView* view = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataView* _tmp6_;
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _view_it;
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 7349 "ViewCollection.c"
- }
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = _view_it;
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp5_;
-#line 1232 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = view;
-#line 1232 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_item_view_altered (self, _tmp6_);
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 7363 "ViewCollection.c"
- }
-#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_view_it);
-#line 7367 "ViewCollection.c"
- }
-#line 1233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = self->priv->frozen_views_altered;
-#line 1233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_views_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1234 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->frozen_views_altered);
-#line 1234 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->frozen_views_altered = NULL;
-#line 7377 "ViewCollection.c"
- }
-#line 1237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp8_ = self->priv->frozen_geometries_altered;
-#line 1237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (_tmp8_ != NULL) {
-#line 7383 "ViewCollection.c"
- GeeHashSet* _tmp15_;
- {
- GeeIterator* _view_it = NULL;
- GeeHashSet* _tmp9_;
- GeeIterator* _tmp10_;
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp9_ = self->priv->frozen_geometries_altered;
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp10_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_it = _tmp10_;
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- while (TRUE) {
-#line 7397 "ViewCollection.c"
- GeeIterator* _tmp11_;
- DataView* view = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- DataView* _tmp14_;
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp11_ = _view_it;
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- break;
-#line 7409 "ViewCollection.c"
- }
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp12_ = _view_it;
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view = (DataView*) _tmp13_;
-#line 1239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp14_ = view;
-#line 1239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_item_geometry_altered (self, _tmp14_);
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (view);
-#line 7423 "ViewCollection.c"
- }
-#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (_view_it);
-#line 7427 "ViewCollection.c"
- }
-#line 1240 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp15_ = self->priv->frozen_geometries_altered;
-#line 1240 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_notify_geometries_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1241 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->frozen_geometries_altered);
-#line 1241 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->frozen_geometries_altered = NULL;
-#line 7437 "ViewCollection.c"
- }
-#line 1244 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->notify_thawed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 7441 "ViewCollection.c"
-}
-
-
-gboolean
-view_collection_are_items_filtered_out (ViewCollection* self)
-{
- gboolean result = FALSE;
-#line 1247 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE);
-#line 1248 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) != data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
-#line 1248 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 7455 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_items_selected (ViewCollection* self,
- GeeIterable* selected)
-{
-#line 75 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (selected));
-#line 7465 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_items_unselected (ViewCollection* self,
- GeeIterable* unselected)
-{
-#line 79 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (unselected));
-#line 7475 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_items_state_changed (ViewCollection* self,
- GeeIterable* changed)
-{
-#line 83 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_ITERABLE (changed));
-#line 7485 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_selection_group_altered (ViewCollection* self)
-{
-}
-
-
-static void
-view_collection_real_items_shown (ViewCollection* self,
- GeeCollection* visible)
-{
-#line 94 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (visible));
-#line 7501 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_items_hidden (ViewCollection* self,
- GeeCollection* hidden)
-{
-#line 98 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (hidden));
-#line 7511 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_items_visibility_changed (ViewCollection* self,
- GeeCollection* changed)
-{
-#line 102 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (changed));
-#line 7521 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_item_view_altered (ViewCollection* self,
- DataView* view)
-{
-#line 106 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 7531 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_item_geometry_altered (ViewCollection* self,
- DataView* view)
-{
-#line 110 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_DATA_VIEW (view));
-#line 7541 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_views_altered (ViewCollection* self,
- GeeCollection* views)
-{
-#line 113 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (views));
-#line 7551 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_geometries_altered (ViewCollection* self,
- GeeCollection* views)
-{
-#line 116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (GEE_IS_COLLECTION (views));
-#line 7561 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_view_filter_installed (ViewCollection* self,
- ViewFilter* filer)
-{
-#line 119 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_FILTER (filer));
-#line 7571 "ViewCollection.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__VIEW_FILTER (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__VIEW_FILTER) (gpointer data1, gpointer arg_1, gpointer data2);
- register GMarshalFunc_VOID__VIEW_FILTER callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (n_param_values == 2);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data1 = closure->data;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data2 = param_values->data[0].v_pointer;
-#line 7597 "ViewCollection.c"
- } else {
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data1 = param_values->data[0].v_pointer;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- data2 = closure->data;
-#line 7603 "ViewCollection.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- callback = (GMarshalFunc_VOID__VIEW_FILTER) (marshal_data ? marshal_data : cc->callback);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- callback (data1, value_get_view_filter (param_values + 1), data2);
-#line 7609 "ViewCollection.c"
-}
-
-
-static void
-view_collection_real_view_filter_removed (ViewCollection* self,
- ViewFilter* filer)
-{
-#line 122 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (IS_VIEW_FILTER (filer));
-#line 7619 "ViewCollection.c"
-}
-
-
-ViewCollectionMonitor*
-view_collection_monitor_construct (GType object_type)
-{
- ViewCollectionMonitor* self = NULL;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = (ViewCollectionMonitor*) g_type_create_instance (object_type);
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self;
-#line 7631 "ViewCollection.c"
-}
-
-
-ViewCollectionMonitor*
-view_collection_monitor_new (void)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return view_collection_monitor_construct (VIEW_COLLECTION_TYPE_MONITOR);
-#line 7640 "ViewCollection.c"
-}
-
-
-static void
-view_collection_value_monitor_init (GValue* value)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 7649 "ViewCollection.c"
-}
-
-
-static void
-view_collection_value_monitor_free_value (GValue* value)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (value->data[0].v_pointer) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_monitor_unref (value->data[0].v_pointer);
-#line 7660 "ViewCollection.c"
- }
-}
-
-
-static void
-view_collection_value_monitor_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (src_value->data[0].v_pointer) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- dest_value->data[0].v_pointer = view_collection_monitor_ref (src_value->data[0].v_pointer);
-#line 7673 "ViewCollection.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 7677 "ViewCollection.c"
- }
-}
-
-
-static gpointer
-view_collection_value_monitor_peek_pointer (const GValue* value)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return value->data[0].v_pointer;
-#line 7687 "ViewCollection.c"
-}
-
-
-static gchar*
-view_collection_value_monitor_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (collect_values[0].v_pointer) {
-#line 7699 "ViewCollection.c"
- ViewCollectionMonitor * object;
- object = collect_values[0].v_pointer;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 7706 "ViewCollection.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.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 7710 "ViewCollection.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = view_collection_monitor_ref (object);
-#line 7714 "ViewCollection.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 7718 "ViewCollection.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return NULL;
-#line 7722 "ViewCollection.c"
-}
-
-
-static gchar*
-view_collection_value_monitor_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- ViewCollectionMonitor ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!object_p) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 7738 "ViewCollection.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!value->data[0].v_pointer) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = NULL;
-#line 7744 "ViewCollection.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = value->data[0].v_pointer;
-#line 7748 "ViewCollection.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = view_collection_monitor_ref (value->data[0].v_pointer);
-#line 7752 "ViewCollection.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return NULL;
-#line 7756 "ViewCollection.c"
-}
-
-
-GParamSpec*
-view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ViewCollectionParamSpecMonitor* spec;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (g_type_is_a (object_type, VIEW_COLLECTION_TYPE_MONITOR), NULL);
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return G_PARAM_SPEC (spec);
-#line 7776 "ViewCollection.c"
-}
-
-
-gpointer
-view_collection_value_get_monitor (const GValue* value)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIEW_COLLECTION_TYPE_MONITOR), NULL);
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return value->data[0].v_pointer;
-#line 7787 "ViewCollection.c"
-}
-
-
-void
-view_collection_value_set_monitor (GValue* value,
- gpointer v_object)
-{
- ViewCollectionMonitor * old;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIEW_COLLECTION_TYPE_MONITOR));
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- old = value->data[0].v_pointer;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (v_object) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VIEW_COLLECTION_TYPE_MONITOR));
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = v_object;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_monitor_ref (value->data[0].v_pointer);
-#line 7810 "ViewCollection.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 7814 "ViewCollection.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (old) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_monitor_unref (old);
-#line 7820 "ViewCollection.c"
- }
-}
-
-
-void
-view_collection_value_take_monitor (GValue* value,
- gpointer v_object)
-{
- ViewCollectionMonitor * old;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIEW_COLLECTION_TYPE_MONITOR));
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- old = value->data[0].v_pointer;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (v_object) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VIEW_COLLECTION_TYPE_MONITOR));
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = v_object;
-#line 7842 "ViewCollection.c"
- } else {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 7846 "ViewCollection.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (old) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_monitor_unref (old);
-#line 7852 "ViewCollection.c"
- }
-}
-
-
-static void
-view_collection_monitor_class_init (ViewCollectionMonitorClass * klass)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_monitor_parent_class = g_type_class_peek_parent (klass);
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionMonitorClass *) klass)->finalize = view_collection_monitor_finalize;
-#line 7864 "ViewCollection.c"
-}
-
-
-static void
-view_collection_monitor_instance_init (ViewCollectionMonitor * self)
-{
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->ref_count = 1;
-#line 7873 "ViewCollection.c"
-}
-
-
-static void
-view_collection_monitor_finalize (ViewCollectionMonitor * obj)
-{
- ViewCollectionMonitor * self;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor);
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_destroy (self);
-#line 7885 "ViewCollection.c"
-}
-
-
-GType
-view_collection_monitor_get_type (void)
-{
- static volatile gsize view_collection_monitor_type_id__volatile = 0;
- if (g_once_init_enter (&view_collection_monitor_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { view_collection_value_monitor_init, view_collection_value_monitor_free_value, view_collection_value_monitor_copy_value, view_collection_value_monitor_peek_pointer, "p", view_collection_value_monitor_collect_value, "p", view_collection_value_monitor_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ViewCollectionMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_collection_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewCollectionMonitor), 0, (GInstanceInitFunc) view_collection_monitor_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType view_collection_monitor_type_id;
- view_collection_monitor_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ViewCollectionMonitor", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&view_collection_monitor_type_id__volatile, view_collection_monitor_type_id);
- }
- return view_collection_monitor_type_id__volatile;
-}
-
-
-gpointer
-view_collection_monitor_ref (gpointer instance)
-{
- ViewCollectionMonitor * self;
- self = instance;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return instance;
-#line 7914 "ViewCollection.c"
-}
-
-
-void
-view_collection_monitor_unref (gpointer instance)
-{
- ViewCollectionMonitor * self;
- self = instance;
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_MONITOR_GET_CLASS (self)->finalize (self);
-#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 7929 "ViewCollection.c"
- }
-}
-
-
-static void
-_view_collection_on_sources_added_data_collection_items_added (DataCollection* _sender,
- GeeIterable* added,
- gpointer self)
-{
-#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_sources_added ((ViewCollection*) self, _sender, added);
-#line 7941 "ViewCollection.c"
-}
-
-
-static void
-_view_collection_on_sources_removed_data_collection_items_removed (DataCollection* _sender,
- GeeIterable* removed,
- gpointer self)
-{
-#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_sources_removed ((ViewCollection*) self, removed);
-#line 7952 "ViewCollection.c"
-}
-
-
-static void
-_view_collection_on_sources_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_on_sources_altered ((ViewCollection*) self, _sender, items);
-#line 7963 "ViewCollection.c"
-}
-
-
-static gpointer
-_view_manager_ref0 (gpointer self)
-{
-#line 35 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self ? view_manager_ref (self) : NULL;
-#line 7972 "ViewCollection.c"
-}
-
-
-static gpointer
-_alteration_ref0 (gpointer self)
-{
-#line 36 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self ? alteration_ref (self) : NULL;
-#line 7981 "ViewCollection.c"
-}
-
-
-static ViewCollectionMonitorImpl*
-view_collection_monitor_impl_construct (GType object_type,
- ViewCollection* owner,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq)
-{
- ViewCollectionMonitorImpl* self = NULL;
- ViewCollection* _tmp0_;
- SourceCollection* _tmp1_;
- ViewManager* _tmp2_;
- Alteration* _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_COLLECTION (owner), NULL);
-#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL);
-#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_MANAGER (manager), NULL);
-#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail ((prereq == NULL) || IS_ALTERATION (prereq), NULL);
-#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = (ViewCollectionMonitorImpl*) view_collection_monitor_construct (object_type);
-#line 33 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = _data_collection_ref0 (owner);
-#line 33 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_collection_unref0 (self->owner);
-#line 33 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->owner = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = _data_collection_ref0 (sources);
-#line 34 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_collection_unref0 (self->sources);
-#line 34 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->sources = _tmp1_;
-#line 35 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = _view_manager_ref0 (manager);
-#line 35 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_manager_unref0 (self->manager);
-#line 35 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->manager = _tmp2_;
-#line 36 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = _alteration_ref0 (prereq);
-#line 36 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _alteration_unref0 (self->prereq);
-#line 36 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->prereq = _tmp3_;
-#line 38 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-added", (GCallback) _view_collection_on_sources_added_data_collection_items_added, owner);
-#line 39 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-removed", (GCallback) _view_collection_on_sources_removed_data_collection_items_removed, owner);
-#line 40 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _view_collection_on_sources_altered_data_collection_items_altered, owner);
-#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self;
-#line 8039 "ViewCollection.c"
-}
-
-
-static ViewCollectionMonitorImpl*
-view_collection_monitor_impl_new (ViewCollection* owner,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq)
-{
-#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return view_collection_monitor_impl_construct (VIEW_COLLECTION_TYPE_MONITOR_IMPL, owner, sources, manager, prereq);
-#line 8051 "ViewCollection.c"
-}
-
-
-static void
-view_collection_monitor_impl_class_init (ViewCollectionMonitorImplClass * klass)
-{
-#line 25 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_monitor_impl_parent_class = g_type_class_peek_parent (klass);
-#line 25 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionMonitorClass *) klass)->finalize = view_collection_monitor_impl_finalize;
-#line 8062 "ViewCollection.c"
-}
-
-
-static void
-view_collection_monitor_impl_instance_init (ViewCollectionMonitorImpl * self)
-{
-}
-
-
-static void
-view_collection_monitor_impl_finalize (ViewCollectionMonitor * obj)
-{
- ViewCollectionMonitorImpl * self;
- SourceCollection* _tmp0_;
- ViewCollection* _tmp1_;
- guint _tmp2_;
- SourceCollection* _tmp3_;
- ViewCollection* _tmp4_;
- guint _tmp5_;
- SourceCollection* _tmp6_;
- ViewCollection* _tmp7_;
- guint _tmp8_;
-#line 25 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImpl);
-#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = self->sources;
-#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = self->owner;
-#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE);
-#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.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, _tmp2_, 0, NULL, (GCallback) _view_collection_on_sources_added_data_collection_items_added, _tmp1_);
-#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = self->sources;
-#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp4_ = self->owner;
-#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _view_collection_on_sources_removed_data_collection_items_removed, _tmp4_);
-#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp6_ = self->sources;
-#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp7_ = self->owner;
-#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE);
-#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _view_collection_on_sources_altered_data_collection_items_altered, _tmp7_);
-#line 26 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_collection_unref0 (self->owner);
-#line 27 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_collection_unref0 (self->sources);
-#line 28 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _view_manager_unref0 (self->manager);
-#line 29 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _alteration_unref0 (self->prereq);
-#line 25 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_COLLECTION_MONITOR_CLASS (view_collection_monitor_impl_parent_class)->finalize (obj);
-#line 8121 "ViewCollection.c"
-}
-
-
-static GType
-view_collection_monitor_impl_get_type (void)
-{
- static volatile gsize view_collection_monitor_impl_type_id__volatile = 0;
- if (g_once_init_enter (&view_collection_monitor_impl_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ViewCollectionMonitorImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_collection_monitor_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewCollectionMonitorImpl), 0, (GInstanceInitFunc) view_collection_monitor_impl_instance_init, NULL };
- GType view_collection_monitor_impl_type_id;
- view_collection_monitor_impl_type_id = g_type_register_static (VIEW_COLLECTION_TYPE_MONITOR, "ViewCollectionMonitorImpl", &g_define_type_info, 0);
- g_once_init_leave (&view_collection_monitor_impl_type_id__volatile, view_collection_monitor_impl_type_id);
- }
- return view_collection_monitor_impl_type_id__volatile;
-}
-
-
-static ViewCollectionToggleLists*
-view_collection_toggle_lists_construct (GType object_type)
-{
- ViewCollectionToggleLists * self = NULL;
-#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = (ViewCollectionToggleLists*) g_object_new (object_type, NULL);
-#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self;
-#line 8147 "ViewCollection.c"
-}
-
-
-static ViewCollectionToggleLists*
-view_collection_toggle_lists_new (void)
-{
-#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return view_collection_toggle_lists_construct (VIEW_COLLECTION_TYPE_TOGGLE_LISTS);
-#line 8156 "ViewCollection.c"
-}
-
-
-static void
-view_collection_toggle_lists_class_init (ViewCollectionToggleListsClass * klass)
-{
-#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_toggle_lists_parent_class = g_type_class_peek_parent (klass);
-#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- G_OBJECT_CLASS (klass)->finalize = view_collection_toggle_lists_finalize;
-#line 8167 "ViewCollection.c"
-}
-
-
-static void
-view_collection_toggle_lists_instance_init (ViewCollectionToggleLists * self)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 51 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 51 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->selected = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 52 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->unselected = _tmp1_;
-#line 8184 "ViewCollection.c"
-}
-
-
-static void
-view_collection_toggle_lists_finalize (GObject * obj)
-{
- ViewCollectionToggleLists * self;
-#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleLists);
-#line 51 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->selected);
-#line 52 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->unselected);
-#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- G_OBJECT_CLASS (view_collection_toggle_lists_parent_class)->finalize (obj);
-#line 8200 "ViewCollection.c"
-}
-
-
-static GType
-view_collection_toggle_lists_get_type (void)
-{
- static volatile gsize view_collection_toggle_lists_type_id__volatile = 0;
- if (g_once_init_enter (&view_collection_toggle_lists_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ViewCollectionToggleListsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_collection_toggle_lists_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewCollectionToggleLists), 0, (GInstanceInitFunc) view_collection_toggle_lists_instance_init, NULL };
- GType view_collection_toggle_lists_type_id;
- view_collection_toggle_lists_type_id = g_type_register_static (G_TYPE_OBJECT, "ViewCollectionToggleLists", &g_define_type_info, 0);
- g_once_init_leave (&view_collection_toggle_lists_type_id__volatile, view_collection_toggle_lists_type_id);
- }
- return view_collection_toggle_lists_type_id__volatile;
-}
-
-
-static void
-view_collection_class_init (ViewCollectionClass * klass)
-{
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_parent_class = g_type_class_peek_parent (klass);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->finalize = view_collection_finalize;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_type_class_add_private (klass, sizeof (ViewCollectionPrivate));
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_items_selected_unselected = (void (*) (ViewCollection *, GeeCollection*, GeeCollection*)) view_collection_real_notify_items_selected_unselected;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_selection_group_altered = (void (*) (ViewCollection *)) view_collection_real_notify_selection_group_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_item_view_altered = (void (*) (ViewCollection *, DataView*)) view_collection_real_notify_item_view_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_views_altered = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_views_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_item_geometry_altered = (void (*) (ViewCollection *, DataView*)) view_collection_real_notify_item_geometry_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_geometries_altered = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_geometries_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_items_shown = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_items_shown;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_items_hidden = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_items_hidden;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_items_visibility_changed = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_items_visibility_changed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_view_filter_installed = (void (*) (ViewCollection *, ViewFilter*)) view_collection_real_notify_view_filter_installed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->notify_view_filter_removed = (void (*) (ViewCollection *, ViewFilter*)) view_collection_real_notify_view_filter_removed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->clear = (void (*) (DataCollection *)) view_collection_real_clear;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->close = (void (*) (DataCollection *)) view_collection_real_close;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->valid_type = (gboolean (*) (DataCollection *, DataObject*)) view_collection_real_valid_type;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->add = (gboolean (*) (DataCollection *, DataObject*)) view_collection_real_add;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->add_many = (GeeCollection* (*) (DataCollection *, GeeCollection*, ProgressMonitor, void*)) view_collection_real_add_many;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) view_collection_real_notify_items_added;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) view_collection_real_notify_items_removed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->items_altered = (void (*) (DataCollection *, GeeMap*)) view_collection_real_items_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->set_comparator = (void (*) (DataCollection *, Comparator, void*, ComparatorPredicate, void*)) view_collection_real_set_comparator;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->reset_comparator = (void (*) (DataCollection *)) view_collection_real_reset_comparator;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->get_all = (GeeCollection* (*) (DataCollection *)) view_collection_real_get_all;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->get_count = (gint (*) (DataCollection *)) view_collection_real_get_count;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->get_at = (DataObject* (*) (DataCollection *, gint)) view_collection_real_get_at;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->index_of = (gint (*) (DataCollection *, DataObject*)) view_collection_real_index_of;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->contains = (gboolean (*) (DataCollection *, DataObject*)) view_collection_real_contains;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->get_first = (DataView* (*) (ViewCollection *)) view_collection_real_get_first;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->get_first_unrejected = (DataView* (*) (ViewCollection *)) view_collection_real_get_first_unrejected;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->get_last = (DataView* (*) (ViewCollection *)) view_collection_real_get_last;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->get_next = (DataView* (*) (ViewCollection *, DataView*)) view_collection_real_get_next;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->get_previous = (DataView* (*) (ViewCollection *, DataView*)) view_collection_real_get_previous;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((DataCollectionClass *) klass)->notify_thawed = (void (*) (DataCollection *)) view_collection_real_notify_thawed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->items_selected = view_collection_real_items_selected;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->items_unselected = view_collection_real_items_unselected;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->items_state_changed = view_collection_real_items_state_changed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->selection_group_altered = view_collection_real_selection_group_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->items_shown = view_collection_real_items_shown;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->items_hidden = view_collection_real_items_hidden;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->items_visibility_changed = view_collection_real_items_visibility_changed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->item_view_altered = view_collection_real_item_view_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->item_geometry_altered = view_collection_real_item_geometry_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->views_altered = view_collection_real_views_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->geometries_altered = view_collection_real_geometries_altered;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->view_filter_installed = view_collection_real_view_filter_installed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewCollectionClass *) klass)->view_filter_removed = view_collection_real_view_filter_removed;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_ITEMS_SELECTED_SIGNAL] = g_signal_new ("items-selected", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_selected), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_ITEMS_UNSELECTED_SIGNAL] = g_signal_new ("items-unselected", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_unselected), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_ITEMS_STATE_CHANGED_SIGNAL] = g_signal_new ("items-state-changed", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_state_changed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_SELECTION_GROUP_ALTERED_SIGNAL] = g_signal_new ("selection-group-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, selection_group_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_ITEMS_SHOWN_SIGNAL] = g_signal_new ("items-shown", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_shown), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_ITEMS_HIDDEN_SIGNAL] = g_signal_new ("items-hidden", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_hidden), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_ITEMS_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("items-visibility-changed", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_visibility_changed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_ITEM_VIEW_ALTERED_SIGNAL] = g_signal_new ("item-view-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, item_view_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_VIEW);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_ITEM_GEOMETRY_ALTERED_SIGNAL] = g_signal_new ("item-geometry-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, item_geometry_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_VIEW);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_VIEWS_ALTERED_SIGNAL] = g_signal_new ("views-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, views_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_GEOMETRIES_ALTERED_SIGNAL] = g_signal_new ("geometries-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, geometries_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_VIEW_FILTER_INSTALLED_SIGNAL] = g_signal_new ("view-filter-installed", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, view_filter_installed), NULL, NULL, g_cclosure_user_marshal_VOID__VIEW_FILTER, G_TYPE_NONE, 1, TYPE_VIEW_FILTER);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_collection_signals[VIEW_COLLECTION_VIEW_FILTER_REMOVED_SIGNAL] = g_signal_new ("view-filter-removed", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, view_filter_removed), NULL, NULL, g_cclosure_user_marshal_VOID__VIEW_FILTER, G_TYPE_NONE, 1, TYPE_VIEW_FILTER);
-#line 8343 "ViewCollection.c"
-}
-
-
-static void
-view_collection_instance_init (ViewCollection * self)
-{
- GeeHashMultiMap* _tmp0_;
- GeeHashSet* _tmp1_;
- DataSet* _tmp2_;
- GeeHashMap* _tmp3_;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv = VIEW_COLLECTION_GET_PRIVATE (self);
-#line 59 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp0_ = gee_hash_multi_map_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, VIEW_COLLECTION_TYPE_MONITOR_IMPL, (GBoxedCopyFunc) view_collection_monitor_ref, (GDestroyNotify) view_collection_monitor_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 59 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->monitors = _tmp0_;
-#line 61 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->mirroring = NULL;
-#line 62 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->mirroring_ctor = NULL;
-#line 62 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->mirroring_ctor_target = self;
-#line 63 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->should_mirror = NULL;
-#line 63 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->should_mirror_target = self;
-#line 64 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp1_ = gee_hash_set_new (TYPE_VIEW_FILTER, (GBoxedCopyFunc) view_filter_ref, (GDestroyNotify) view_filter_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 64 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->filters = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SET, GeeSet);
-#line 65 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp2_ = data_set_new ();
-#line 65 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->selected = _tmp2_;
-#line 66 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->visible = NULL;
-#line 67 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->frozen_views_altered = NULL;
-#line 68 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->frozen_geometries_altered = NULL;
-#line 72 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _tmp3_ = gee_hash_map_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 72 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->priv->source_map = _tmp3_;
-#line 8388 "ViewCollection.c"
-}
-
-
-static void
-view_collection_finalize (DataCollection * obj)
-{
- ViewCollection * self;
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIEW_COLLECTION, ViewCollection);
-#line 59 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->monitors);
-#line 61 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_collection_unref0 (self->priv->mirroring);
-#line 64 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->filters);
-#line 65 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_set_unref0 (self->priv->selected);
-#line 66 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _data_set_unref0 (self->priv->visible);
-#line 67 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->frozen_views_altered);
-#line 68 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->frozen_geometries_altered);
-#line 72 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- _g_object_unref0 (self->priv->source_map);
-#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- DATA_COLLECTION_CLASS (view_collection_parent_class)->finalize (obj);
-#line 8416 "ViewCollection.c"
-}
-
-
-GType
-view_collection_get_type (void)
-{
- static volatile gsize view_collection_type_id__volatile = 0;
- if (g_once_init_enter (&view_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ViewCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewCollection), 0, (GInstanceInitFunc) view_collection_instance_init, NULL };
- GType view_collection_type_id;
- view_collection_type_id = g_type_register_static (TYPE_DATA_COLLECTION, "ViewCollection", &g_define_type_info, 0);
- g_once_init_leave (&view_collection_type_id__volatile, view_collection_type_id);
- }
- return view_collection_type_id__volatile;
-}
-
-
-static gboolean
-view_manager_real_include_in_view (ViewManager* self,
- DataSource* source)
-{
- gboolean result = FALSE;
-#line 1258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 1259 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- result = TRUE;
-#line 1259 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return result;
-#line 8445 "ViewCollection.c"
-}
-
-
-gboolean
-view_manager_include_in_view (ViewManager* self,
- DataSource* source)
-{
-#line 1258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_MANAGER (self), FALSE);
-#line 1258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return VIEW_MANAGER_GET_CLASS (self)->include_in_view (self, source);
-#line 8457 "ViewCollection.c"
-}
-
-
-static DataView*
-view_manager_real_create_view (ViewManager* self,
- DataSource* source)
-{
-#line 1264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_critical ("Type `%s' does not implement abstract method `view_manager_create_view'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 1264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return NULL;
-#line 8469 "ViewCollection.c"
-}
-
-
-DataView*
-view_manager_create_view (ViewManager* self,
- DataSource* source)
-{
-#line 1264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_MANAGER (self), NULL);
-#line 1264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return VIEW_MANAGER_GET_CLASS (self)->create_view (self, source);
-#line 8481 "ViewCollection.c"
-}
-
-
-ViewManager*
-view_manager_construct (GType object_type)
-{
- ViewManager* self = NULL;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = (ViewManager*) g_type_create_instance (object_type);
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self;
-#line 8493 "ViewCollection.c"
-}
-
-
-static void
-value_view_manager_init (GValue* value)
-{
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 8502 "ViewCollection.c"
-}
-
-
-static void
-value_view_manager_free_value (GValue* value)
-{
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (value->data[0].v_pointer) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_manager_unref (value->data[0].v_pointer);
-#line 8513 "ViewCollection.c"
- }
-}
-
-
-static void
-value_view_manager_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (src_value->data[0].v_pointer) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- dest_value->data[0].v_pointer = view_manager_ref (src_value->data[0].v_pointer);
-#line 8526 "ViewCollection.c"
- } else {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 8530 "ViewCollection.c"
- }
-}
-
-
-static gpointer
-value_view_manager_peek_pointer (const GValue* value)
-{
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return value->data[0].v_pointer;
-#line 8540 "ViewCollection.c"
-}
-
-
-static gchar*
-value_view_manager_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (collect_values[0].v_pointer) {
-#line 8552 "ViewCollection.c"
- ViewManager * object;
- object = collect_values[0].v_pointer;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 8559 "ViewCollection.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.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 8563 "ViewCollection.c"
- }
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = view_manager_ref (object);
-#line 8567 "ViewCollection.c"
- } else {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 8571 "ViewCollection.c"
- }
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return NULL;
-#line 8575 "ViewCollection.c"
-}
-
-
-static gchar*
-value_view_manager_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- ViewManager ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!object_p) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 8591 "ViewCollection.c"
- }
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!value->data[0].v_pointer) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = NULL;
-#line 8597 "ViewCollection.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = value->data[0].v_pointer;
-#line 8601 "ViewCollection.c"
- } else {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = view_manager_ref (value->data[0].v_pointer);
-#line 8605 "ViewCollection.c"
- }
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return NULL;
-#line 8609 "ViewCollection.c"
-}
-
-
-GParamSpec*
-param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecViewManager* spec;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIEW_MANAGER), NULL);
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return G_PARAM_SPEC (spec);
-#line 8629 "ViewCollection.c"
-}
-
-
-gpointer
-value_get_view_manager (const GValue* value)
-{
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_MANAGER), NULL);
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return value->data[0].v_pointer;
-#line 8640 "ViewCollection.c"
-}
-
-
-void
-value_set_view_manager (GValue* value,
- gpointer v_object)
-{
- ViewManager * old;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_MANAGER));
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- old = value->data[0].v_pointer;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (v_object) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIEW_MANAGER));
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = v_object;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_manager_ref (value->data[0].v_pointer);
-#line 8663 "ViewCollection.c"
- } else {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 8667 "ViewCollection.c"
- }
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (old) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_manager_unref (old);
-#line 8673 "ViewCollection.c"
- }
-}
-
-
-void
-value_take_view_manager (GValue* value,
- gpointer v_object)
-{
- ViewManager * old;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_MANAGER));
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- old = value->data[0].v_pointer;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (v_object) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIEW_MANAGER));
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = v_object;
-#line 8695 "ViewCollection.c"
- } else {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 8699 "ViewCollection.c"
- }
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (old) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_manager_unref (old);
-#line 8705 "ViewCollection.c"
- }
-}
-
-
-static void
-view_manager_class_init (ViewManagerClass * klass)
-{
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_manager_parent_class = g_type_class_peek_parent (klass);
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewManagerClass *) klass)->finalize = view_manager_finalize;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) view_manager_real_include_in_view;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) view_manager_real_create_view;
-#line 8721 "ViewCollection.c"
-}
-
-
-static void
-view_manager_instance_init (ViewManager * self)
-{
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->ref_count = 1;
-#line 8730 "ViewCollection.c"
-}
-
-
-static void
-view_manager_finalize (ViewManager * obj)
-{
- ViewManager * self;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIEW_MANAGER, ViewManager);
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_destroy (self);
-#line 8742 "ViewCollection.c"
-}
-
-
-GType
-view_manager_get_type (void)
-{
- static volatile gsize view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&view_manager_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_view_manager_init, value_view_manager_free_value, value_view_manager_copy_value, value_view_manager_peek_pointer, "p", value_view_manager_collect_value, "p", value_view_manager_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewManager), 0, (GInstanceInitFunc) view_manager_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType view_manager_type_id;
- view_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ViewManager", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&view_manager_type_id__volatile, view_manager_type_id);
- }
- return view_manager_type_id__volatile;
-}
-
-
-gpointer
-view_manager_ref (gpointer instance)
-{
- ViewManager * self;
- self = instance;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return instance;
-#line 8771 "ViewCollection.c"
-}
-
-
-void
-view_manager_unref (gpointer instance)
-{
- ViewManager * self;
- self = instance;
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_MANAGER_GET_CLASS (self)->finalize (self);
-#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 8786 "ViewCollection.c"
- }
-}
-
-
-static gboolean
-view_filter_real_predicate (ViewFilter* self,
- DataView* view)
-{
- gboolean _tmp0_ = FALSE;
-#line 1286 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_critical ("Type `%s' does not implement abstract method `view_filter_predicate'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 1286 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return _tmp0_;
-#line 8800 "ViewCollection.c"
-}
-
-
-gboolean
-view_filter_predicate (ViewFilter* self,
- DataView* view)
-{
-#line 1286 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (IS_VIEW_FILTER (self), FALSE);
-#line 1286 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return VIEW_FILTER_GET_CLASS (self)->predicate (self, view);
-#line 8812 "ViewCollection.c"
-}
-
-
-ViewFilter*
-view_filter_construct (GType object_type)
-{
- ViewFilter* self = NULL;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = (ViewFilter*) g_type_create_instance (object_type);
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return self;
-#line 8824 "ViewCollection.c"
-}
-
-
-static void
-view_filter_real_refresh (ViewFilter* self)
-{
-}
-
-
-static void
-value_view_filter_init (GValue* value)
-{
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 8839 "ViewCollection.c"
-}
-
-
-static void
-value_view_filter_free_value (GValue* value)
-{
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (value->data[0].v_pointer) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_filter_unref (value->data[0].v_pointer);
-#line 8850 "ViewCollection.c"
- }
-}
-
-
-static void
-value_view_filter_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (src_value->data[0].v_pointer) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- dest_value->data[0].v_pointer = view_filter_ref (src_value->data[0].v_pointer);
-#line 8863 "ViewCollection.c"
- } else {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 8867 "ViewCollection.c"
- }
-}
-
-
-static gpointer
-value_view_filter_peek_pointer (const GValue* value)
-{
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return value->data[0].v_pointer;
-#line 8877 "ViewCollection.c"
-}
-
-
-static gchar*
-value_view_filter_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (collect_values[0].v_pointer) {
-#line 8889 "ViewCollection.c"
- ViewFilter * object;
- object = collect_values[0].v_pointer;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 8896 "ViewCollection.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.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 8900 "ViewCollection.c"
- }
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = view_filter_ref (object);
-#line 8904 "ViewCollection.c"
- } else {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 8908 "ViewCollection.c"
- }
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return NULL;
-#line 8912 "ViewCollection.c"
-}
-
-
-static gchar*
-value_view_filter_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- ViewFilter ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!object_p) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 8928 "ViewCollection.c"
- }
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (!value->data[0].v_pointer) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = NULL;
-#line 8934 "ViewCollection.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = value->data[0].v_pointer;
-#line 8938 "ViewCollection.c"
- } else {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- *object_p = view_filter_ref (value->data[0].v_pointer);
-#line 8942 "ViewCollection.c"
- }
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return NULL;
-#line 8946 "ViewCollection.c"
-}
-
-
-GParamSpec*
-param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecViewFilter* spec;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIEW_FILTER), NULL);
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return G_PARAM_SPEC (spec);
-#line 8966 "ViewCollection.c"
-}
-
-
-gpointer
-value_get_view_filter (const GValue* value)
-{
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_FILTER), NULL);
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return value->data[0].v_pointer;
-#line 8977 "ViewCollection.c"
-}
-
-
-void
-value_set_view_filter (GValue* value,
- gpointer v_object)
-{
- ViewFilter * old;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_FILTER));
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- old = value->data[0].v_pointer;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (v_object) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIEW_FILTER));
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = v_object;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_filter_ref (value->data[0].v_pointer);
-#line 9000 "ViewCollection.c"
- } else {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 9004 "ViewCollection.c"
- }
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (old) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_filter_unref (old);
-#line 9010 "ViewCollection.c"
- }
-}
-
-
-void
-value_take_view_filter (GValue* value,
- gpointer v_object)
-{
- ViewFilter * old;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_FILTER));
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- old = value->data[0].v_pointer;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (v_object) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIEW_FILTER));
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = v_object;
-#line 9032 "ViewCollection.c"
- } else {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- value->data[0].v_pointer = NULL;
-#line 9036 "ViewCollection.c"
- }
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (old) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_filter_unref (old);
-#line 9042 "ViewCollection.c"
- }
-}
-
-
-static void
-view_filter_class_init (ViewFilterClass * klass)
-{
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewFilterClass *) klass)->finalize = view_filter_finalize;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) view_filter_real_predicate;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- ((ViewFilterClass *) klass)->refresh = view_filter_real_refresh;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- view_filter_signals[VIEW_FILTER_REFRESH_SIGNAL] = g_signal_new ("refresh", TYPE_VIEW_FILTER, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewFilterClass, refresh), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 9060 "ViewCollection.c"
-}
-
-
-static void
-view_filter_instance_init (ViewFilter * self)
-{
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self->ref_count = 1;
-#line 9069 "ViewCollection.c"
-}
-
-
-static void
-view_filter_finalize (ViewFilter * obj)
-{
- ViewFilter * self;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIEW_FILTER, ViewFilter);
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_signal_handlers_destroy (self);
-#line 9081 "ViewCollection.c"
-}
-
-
-GType
-view_filter_get_type (void)
-{
- static volatile gsize view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&view_filter_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_view_filter_init, value_view_filter_free_value, value_view_filter_copy_value, value_view_filter_peek_pointer, "p", value_view_filter_collect_value, "p", value_view_filter_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (ViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewFilter), 0, (GInstanceInitFunc) view_filter_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType view_filter_type_id;
- view_filter_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ViewFilter", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&view_filter_type_id__volatile, view_filter_type_id);
- }
- return view_filter_type_id__volatile;
-}
-
-
-gpointer
-view_filter_ref (gpointer instance)
-{
- ViewFilter * self;
- self = instance;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- return instance;
-#line 9110 "ViewCollection.c"
-}
-
-
-void
-view_filter_unref (gpointer instance)
-{
- ViewFilter * self;
- self = instance;
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- VIEW_FILTER_GET_CLASS (self)->finalize (self);
-#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 9125 "ViewCollection.c"
- }
-}
-
-
-
diff --git a/src/core/util.c b/src/core/util.c
deleted file mode 100644
index 2b9ace7..0000000
--- a/src/core/util.c
+++ /dev/null
@@ -1,2043 +0,0 @@
-/* util.c generated by valac 0.40.4, the Vala compiler
- * generated from util.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* SingletonCollection is a read-only collection designed to hold exactly one item in it. This*/
-/* is far more efficient than creating a dummy collection (such as ArrayList) merely to pass around*/
-/* a single item, particularly for signals which require Iterables and Collections.*/
-/**/
-/* This collection cannot be used to store null.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_SINGLETON_COLLECTION (singleton_collection_get_type ())
-#define SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollection))
-#define SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass))
-#define IS_SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLETON_COLLECTION))
-#define IS_SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLETON_COLLECTION))
-#define SINGLETON_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass))
-
-typedef struct _SingletonCollection SingletonCollection;
-typedef struct _SingletonCollectionClass SingletonCollectionClass;
-typedef struct _SingletonCollectionPrivate SingletonCollectionPrivate;
-enum {
- SINGLETON_COLLECTION_0_PROPERTY,
- SINGLETON_COLLECTION_G_TYPE,
- SINGLETON_COLLECTION_G_DUP_FUNC,
- SINGLETON_COLLECTION_G_DESTROY_FUNC,
- SINGLETON_COLLECTION_READ_ONLY_PROPERTY,
- SINGLETON_COLLECTION_SIZE_PROPERTY,
- SINGLETON_COLLECTION_NUM_PROPERTIES
-};
-static GParamSpec* singleton_collection_properties[SINGLETON_COLLECTION_NUM_PROPERTIES];
-#define _g_destroy_func0(var) (((var == NULL) || (g_destroy_func == NULL)) ? NULL : (var = (g_destroy_func (var), NULL)))
-
-#define SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR (singleton_collection_singleton_iterator_get_type ())
-#define SINGLETON_COLLECTION_SINGLETON_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator))
-#define SINGLETON_COLLECTION_SINGLETON_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIteratorClass))
-#define SINGLETON_COLLECTION_IS_SINGLETON_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR))
-#define SINGLETON_COLLECTION_IS_SINGLETON_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR))
-#define SINGLETON_COLLECTION_SINGLETON_ITERATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIteratorClass))
-
-typedef struct _SingletonCollectionSingletonIterator SingletonCollectionSingletonIterator;
-typedef struct _SingletonCollectionSingletonIteratorClass SingletonCollectionSingletonIteratorClass;
-typedef struct _SingletonCollectionSingletonIteratorPrivate SingletonCollectionSingletonIteratorPrivate;
-enum {
- SINGLETON_COLLECTION_SINGLETON_ITERATOR_0_PROPERTY,
- SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_TYPE,
- SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DUP_FUNC,
- SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DESTROY_FUNC,
- SINGLETON_COLLECTION_SINGLETON_ITERATOR_READ_ONLY_PROPERTY,
- SINGLETON_COLLECTION_SINGLETON_ITERATOR_VALID_PROPERTY,
- SINGLETON_COLLECTION_SINGLETON_ITERATOR_NUM_PROPERTIES
-};
-static GParamSpec* singleton_collection_singleton_iterator_properties[SINGLETON_COLLECTION_SINGLETON_ITERATOR_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_UNKNOWN_TOTAL_MONITOR (unknown_total_monitor_get_type ())
-#define UNKNOWN_TOTAL_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitor))
-#define UNKNOWN_TOTAL_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitorClass))
-#define IS_UNKNOWN_TOTAL_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UNKNOWN_TOTAL_MONITOR))
-#define IS_UNKNOWN_TOTAL_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_UNKNOWN_TOTAL_MONITOR))
-#define UNKNOWN_TOTAL_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitorClass))
-
-typedef struct _UnknownTotalMonitor UnknownTotalMonitor;
-typedef struct _UnknownTotalMonitorClass UnknownTotalMonitorClass;
-typedef struct _UnknownTotalMonitorPrivate UnknownTotalMonitorPrivate;
-typedef struct _ParamSpecUnknownTotalMonitor ParamSpecUnknownTotalMonitor;
-
-#define TYPE_AGGREGATE_PROGRESS_MONITOR (aggregate_progress_monitor_get_type ())
-#define AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitor))
-#define AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass))
-#define IS_AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR))
-#define IS_AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR))
-#define AGGREGATE_PROGRESS_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass))
-
-typedef struct _AggregateProgressMonitor AggregateProgressMonitor;
-typedef struct _AggregateProgressMonitorClass AggregateProgressMonitorClass;
-typedef struct _AggregateProgressMonitorPrivate AggregateProgressMonitorPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecAggregateProgressMonitor ParamSpecAggregateProgressMonitor;
-
-struct _SingletonCollection {
- GeeAbstractCollection parent_instance;
- SingletonCollectionPrivate * priv;
-};
-
-struct _SingletonCollectionClass {
- GeeAbstractCollectionClass parent_class;
-};
-
-struct _SingletonCollectionPrivate {
- GType g_type;
- GBoxedCopyFunc g_dup_func;
- GDestroyNotify g_destroy_func;
- gpointer object;
-};
-
-struct _SingletonCollectionSingletonIterator {
- GObject parent_instance;
- SingletonCollectionSingletonIteratorPrivate * priv;
-};
-
-struct _SingletonCollectionSingletonIteratorClass {
- GObjectClass parent_class;
-};
-
-struct _SingletonCollectionSingletonIteratorPrivate {
- GType g_type;
- GBoxedCopyFunc g_dup_func;
- GDestroyNotify g_destroy_func;
- SingletonCollection* c;
- gboolean done;
- gpointer current;
-};
-
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _UnknownTotalMonitor {
- GTypeInstance parent_instance;
- volatile int ref_count;
- UnknownTotalMonitorPrivate * priv;
-};
-
-struct _UnknownTotalMonitorClass {
- GTypeClass parent_class;
- void (*finalize) (UnknownTotalMonitor *self);
-};
-
-struct _UnknownTotalMonitorPrivate {
- guint64 total;
- ProgressMonitor wrapped_monitor;
- gpointer wrapped_monitor_target;
-};
-
-struct _ParamSpecUnknownTotalMonitor {
- GParamSpec parent_instance;
-};
-
-struct _AggregateProgressMonitor {
- GTypeInstance parent_instance;
- volatile int ref_count;
- AggregateProgressMonitorPrivate * priv;
-};
-
-struct _AggregateProgressMonitorClass {
- GTypeClass parent_class;
- void (*finalize) (AggregateProgressMonitor *self);
-};
-
-struct _AggregateProgressMonitorPrivate {
- guint64 grand_total;
- ProgressMonitor wrapped_monitor;
- gpointer wrapped_monitor_target;
- guint64 aggregate_count;
- guint64 last_count;
-};
-
-struct _ParamSpecAggregateProgressMonitor {
- GParamSpec parent_instance;
-};
-
-
-static gpointer singleton_collection_parent_class = NULL;
-static gpointer singleton_collection_singleton_iterator_parent_class = NULL;
-static GeeTraversableIface * singleton_collection_singleton_iterator_gee_traversable_parent_iface = NULL;
-static GeeIteratorIface * singleton_collection_singleton_iterator_gee_iterator_parent_iface = NULL;
-static gpointer unknown_total_monitor_parent_class = NULL;
-static gpointer aggregate_progress_monitor_parent_class = NULL;
-
-GType singleton_collection_get_type (void) G_GNUC_CONST;
-#define SINGLETON_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SINGLETON_COLLECTION, SingletonCollectionPrivate))
-SingletonCollection* singleton_collection_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer object);
-SingletonCollection* singleton_collection_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer object);
-static gboolean singleton_collection_real_add (GeeAbstractCollection* base,
- gconstpointer object);
-static void singleton_collection_real_clear (GeeAbstractCollection* base);
-static gboolean singleton_collection_real_contains (GeeAbstractCollection* base,
- gconstpointer object);
-static GeeIterator* singleton_collection_real_iterator (GeeAbstractCollection* base);
-static SingletonCollectionSingletonIterator* singleton_collection_singleton_iterator_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- SingletonCollection* c);
-static SingletonCollectionSingletonIterator* singleton_collection_singleton_iterator_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- SingletonCollection* c);
-static GType singleton_collection_singleton_iterator_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static gboolean singleton_collection_real_remove (GeeAbstractCollection* base,
- gconstpointer item);
-#define SINGLETON_COLLECTION_SINGLETON_ITERATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIteratorPrivate))
-static gboolean singleton_collection_singleton_iterator_real_foreach (GeeTraversable* base,
- GeeForallFunc f,
- void* f_target);
-static gpointer singleton_collection_singleton_iterator_real_get (GeeIterator* base);
-static gboolean singleton_collection_singleton_iterator_real_has_next (GeeIterator* base);
-static gboolean singleton_collection_singleton_iterator_real_next (GeeIterator* base);
-static void singleton_collection_singleton_iterator_real_remove (GeeIterator* base);
-static void singleton_collection_singleton_iterator_finalize (GObject * obj);
-static void _vala_singleton_collection_singleton_iterator_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_singleton_collection_singleton_iterator_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-static void singleton_collection_finalize (GObject * obj);
-static void _vala_singleton_collection_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_singleton_collection_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType marker_get_type (void) G_GNUC_CONST;
-void marker_mark (Marker* self,
- DataObject* object);
-void marker_unmark (Marker* self,
- DataObject* object);
-gboolean marker_toggle (Marker* self,
- DataObject* object);
-void marker_mark_many (Marker* self,
- GeeCollection* list);
-void marker_unmark_many (Marker* self,
- GeeCollection* list);
-void marker_mark_all (Marker* self);
-gint marker_get_count (Marker* self);
-GeeCollection* marker_get_all (Marker* self);
-gpointer unknown_total_monitor_ref (gpointer instance);
-void unknown_total_monitor_unref (gpointer instance);
-GParamSpec* param_spec_unknown_total_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_unknown_total_monitor (GValue* value,
- gpointer v_object);
-void value_take_unknown_total_monitor (GValue* value,
- gpointer v_object);
-gpointer value_get_unknown_total_monitor (const GValue* value);
-GType unknown_total_monitor_get_type (void) G_GNUC_CONST;
-#define UNKNOWN_TOTAL_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitorPrivate))
-UnknownTotalMonitor* unknown_total_monitor_new (guint64 total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target);
-UnknownTotalMonitor* unknown_total_monitor_construct (GType object_type,
- guint64 total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target);
-gboolean unknown_total_monitor_monitor (UnknownTotalMonitor* self,
- guint64 count,
- guint64 total);
-static void unknown_total_monitor_finalize (UnknownTotalMonitor * obj);
-gpointer aggregate_progress_monitor_ref (gpointer instance);
-void aggregate_progress_monitor_unref (gpointer instance);
-GParamSpec* param_spec_aggregate_progress_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_aggregate_progress_monitor (GValue* value,
- gpointer v_object);
-void value_take_aggregate_progress_monitor (GValue* value,
- gpointer v_object);
-gpointer value_get_aggregate_progress_monitor (const GValue* value);
-GType aggregate_progress_monitor_get_type (void) G_GNUC_CONST;
-#define AGGREGATE_PROGRESS_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorPrivate))
-AggregateProgressMonitor* aggregate_progress_monitor_new (guint64 grand_total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target);
-AggregateProgressMonitor* aggregate_progress_monitor_construct (GType object_type,
- guint64 grand_total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target);
-void aggregate_progress_monitor_next_step (AggregateProgressMonitor* self,
- const gchar* name);
-gboolean aggregate_progress_monitor_monitor (AggregateProgressMonitor* self,
- guint64 count,
- guint64 total);
-static void aggregate_progress_monitor_finalize (AggregateProgressMonitor * obj);
-gboolean null_progress_monitor (guint64 count,
- guint64 total);
-gdouble degrees_to_radians (gdouble theta);
-
-
-SingletonCollection*
-singleton_collection_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer object)
-{
- SingletonCollection * self = NULL;
- gpointer _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/core/util.vala"
- self = (SingletonCollection*) gee_abstract_collection_construct (object_type, g_type, (GBoxedCopyFunc) g_dup_func, (GDestroyNotify) g_destroy_func);
-#line 65 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_type = g_type;
-#line 65 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_dup_func = g_dup_func;
-#line 65 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_destroy_func = g_destroy_func;
-#line 66 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = ((object != NULL) && (g_dup_func != NULL)) ? g_dup_func ((gpointer) object) : ((gpointer) object);
-#line 66 "/home/jens/Source/shotwell/src/core/util.vala"
- _g_destroy_func0 (self->priv->object);
-#line 66 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->object = _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/core/util.vala"
- return self;
-#line 366 "util.c"
-}
-
-
-SingletonCollection*
-singleton_collection_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- gconstpointer object)
-{
-#line 65 "/home/jens/Source/shotwell/src/core/util.vala"
- return singleton_collection_construct (TYPE_SINGLETON_COLLECTION, g_type, g_dup_func, g_destroy_func, object);
-#line 378 "util.c"
-}
-
-
-static gboolean
-singleton_collection_real_add (GeeAbstractCollection* base,
- gconstpointer object)
-{
- SingletonCollection * self;
- gboolean result = FALSE;
-#line 73 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 74 "/home/jens/Source/shotwell/src/core/util.vala"
- g_warning ("util.vala:74: Cannot add to SingletonCollection");
-#line 76 "/home/jens/Source/shotwell/src/core/util.vala"
- result = FALSE;
-#line 76 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 396 "util.c"
-}
-
-
-static void
-singleton_collection_real_clear (GeeAbstractCollection* base)
-{
- SingletonCollection * self;
-#line 79 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 80 "/home/jens/Source/shotwell/src/core/util.vala"
- ((self->priv->object == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->object = (self->priv->g_destroy_func (self->priv->object), NULL));
-#line 80 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->object = NULL;
-#line 410 "util.c"
-}
-
-
-static gboolean
-singleton_collection_real_contains (GeeAbstractCollection* base,
- gconstpointer object)
-{
- SingletonCollection * self;
- gboolean result = FALSE;
- gconstpointer _tmp0_;
-#line 83 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 84 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->object;
-#line 84 "/home/jens/Source/shotwell/src/core/util.vala"
- result = _tmp0_ == object;
-#line 84 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 429 "util.c"
-}
-
-
-static GeeIterator*
-singleton_collection_real_iterator (GeeAbstractCollection* base)
-{
- SingletonCollection * self;
- GeeIterator* result = NULL;
- SingletonCollectionSingletonIterator* _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 88 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = singleton_collection_singleton_iterator_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, self);
-#line 88 "/home/jens/Source/shotwell/src/core/util.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERATOR, GeeIterator);
-#line 88 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 447 "util.c"
-}
-
-
-static gboolean
-singleton_collection_real_remove (GeeAbstractCollection* base,
- gconstpointer item)
-{
- SingletonCollection * self;
- gboolean result = FALSE;
- gconstpointer _tmp0_;
-#line 91 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 92 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->object;
-#line 92 "/home/jens/Source/shotwell/src/core/util.vala"
- if (item == _tmp0_) {
-#line 93 "/home/jens/Source/shotwell/src/core/util.vala"
- ((self->priv->object == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->object = (self->priv->g_destroy_func (self->priv->object), NULL));
-#line 93 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->object = NULL;
-#line 95 "/home/jens/Source/shotwell/src/core/util.vala"
- result = TRUE;
-#line 95 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 472 "util.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/core/util.vala"
- result = FALSE;
-#line 98 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 478 "util.c"
-}
-
-
-static gboolean
-singleton_collection_real_get_read_only (GeeAbstractCollection* base)
-{
- gboolean result;
- SingletonCollection* self;
-#line 70 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 70 "/home/jens/Source/shotwell/src/core/util.vala"
- result = FALSE;
-#line 70 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 493 "util.c"
-}
-
-
-static gint
-singleton_collection_real_get_size (GeeAbstractCollection* base)
-{
- gint result;
- SingletonCollection* self;
- gint _tmp0_ = 0;
- gconstpointer _tmp1_;
-#line 102 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 103 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_ = self->priv->object;
-#line 103 "/home/jens/Source/shotwell/src/core/util.vala"
- if (_tmp1_ != NULL) {
-#line 103 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = 1;
-#line 512 "util.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = 0;
-#line 516 "util.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/core/util.vala"
- result = _tmp0_;
-#line 103 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 522 "util.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 20 "/home/jens/Source/shotwell/src/core/util.vala"
- return self ? g_object_ref (self) : NULL;
-#line 531 "util.c"
-}
-
-
-static SingletonCollectionSingletonIterator*
-singleton_collection_singleton_iterator_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- SingletonCollection* c)
-{
- SingletonCollectionSingletonIterator * self = NULL;
- SingletonCollection* _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (IS_SINGLETON_COLLECTION (c), NULL);
-#line 19 "/home/jens/Source/shotwell/src/core/util.vala"
- self = (SingletonCollectionSingletonIterator*) g_object_new (object_type, NULL);
-#line 19 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_type = g_type;
-#line 19 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_dup_func = g_dup_func;
-#line 19 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_destroy_func = g_destroy_func;
-#line 20 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = _g_object_ref0 (c);
-#line 20 "/home/jens/Source/shotwell/src/core/util.vala"
- _g_object_unref0 (self->priv->c);
-#line 20 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->c = _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/core/util.vala"
- return self;
-#line 562 "util.c"
-}
-
-
-static SingletonCollectionSingletonIterator*
-singleton_collection_singleton_iterator_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- SingletonCollection* c)
-{
-#line 19 "/home/jens/Source/shotwell/src/core/util.vala"
- return singleton_collection_singleton_iterator_construct (SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, g_type, g_dup_func, g_destroy_func, c);
-#line 574 "util.c"
-}
-
-
-static gboolean
-singleton_collection_singleton_iterator_real_foreach (GeeTraversable* base,
- GeeForallFunc f,
- void* f_target)
-{
- SingletonCollectionSingletonIterator * self;
- gboolean result = FALSE;
- SingletonCollection* _tmp0_;
- gconstpointer _tmp1_;
- gpointer _tmp2_;
-#line 31 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 32 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->c;
-#line 32 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_ = _tmp0_->priv->object;
-#line 32 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp2_ = ((_tmp1_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp1_) : ((gpointer) _tmp1_);
-#line 32 "/home/jens/Source/shotwell/src/core/util.vala"
- result = f (_tmp2_, f_target);
-#line 32 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 600 "util.c"
-}
-
-
-static gpointer
-singleton_collection_singleton_iterator_real_get (GeeIterator* base)
-{
- SingletonCollectionSingletonIterator * self;
- gpointer result = NULL;
- gconstpointer _tmp0_;
- gpointer _tmp1_;
-#line 35 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 36 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->current;
-#line 36 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_ = ((_tmp0_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp0_) : ((gpointer) _tmp0_);
-#line 36 "/home/jens/Source/shotwell/src/core/util.vala"
- result = _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 621 "util.c"
-}
-
-
-static gboolean
-singleton_collection_singleton_iterator_real_has_next (GeeIterator* base)
-{
- SingletonCollectionSingletonIterator * self;
- gboolean result = FALSE;
-#line 39 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 40 "/home/jens/Source/shotwell/src/core/util.vala"
- result = FALSE;
-#line 40 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 636 "util.c"
-}
-
-
-static gboolean
-singleton_collection_singleton_iterator_real_next (GeeIterator* base)
-{
- SingletonCollectionSingletonIterator * self;
- gboolean result = FALSE;
- gboolean _tmp0_;
- SingletonCollection* _tmp1_;
- gconstpointer _tmp2_;
- gpointer _tmp3_;
-#line 43 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 44 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->done;
-#line 44 "/home/jens/Source/shotwell/src/core/util.vala"
- if (_tmp0_) {
-#line 45 "/home/jens/Source/shotwell/src/core/util.vala"
- result = FALSE;
-#line 45 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 659 "util.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->done = TRUE;
-#line 48 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_ = self->priv->c;
-#line 48 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp2_ = _tmp1_->priv->object;
-#line 48 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp3_ = ((_tmp2_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp2_) : ((gpointer) _tmp2_);
-#line 48 "/home/jens/Source/shotwell/src/core/util.vala"
- ((self->priv->current == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->current = (self->priv->g_destroy_func (self->priv->current), NULL));
-#line 48 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->current = _tmp3_;
-#line 50 "/home/jens/Source/shotwell/src/core/util.vala"
- result = TRUE;
-#line 50 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 677 "util.c"
-}
-
-
-static void
-singleton_collection_singleton_iterator_real_remove (GeeIterator* base)
-{
- SingletonCollectionSingletonIterator * self;
- gboolean _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 54 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->done;
-#line 54 "/home/jens/Source/shotwell/src/core/util.vala"
- if (!_tmp0_) {
-#line 692 "util.c"
- SingletonCollection* _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_ = self->priv->c;
-#line 55 "/home/jens/Source/shotwell/src/core/util.vala"
- ((_tmp1_->priv->object == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp1_->priv->object = (self->priv->g_destroy_func (_tmp1_->priv->object), NULL));
-#line 55 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_->priv->object = NULL;
-#line 56 "/home/jens/Source/shotwell/src/core/util.vala"
- ((self->priv->current == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->current = (self->priv->g_destroy_func (self->priv->current), NULL));
-#line 56 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->current = NULL;
-#line 704 "util.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->done = TRUE;
-#line 708 "util.c"
-}
-
-
-static gboolean
-singleton_collection_singleton_iterator_real_get_read_only (GeeIterator* base)
-{
- gboolean result;
- SingletonCollectionSingletonIterator* self;
- gboolean _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 24 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->done;
-#line 24 "/home/jens/Source/shotwell/src/core/util.vala"
- result = _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 726 "util.c"
-}
-
-
-static gboolean
-singleton_collection_singleton_iterator_real_get_valid (GeeIterator* base)
-{
- gboolean result;
- SingletonCollectionSingletonIterator* self;
- gboolean _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 28 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->done;
-#line 28 "/home/jens/Source/shotwell/src/core/util.vala"
- result = _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 744 "util.c"
-}
-
-
-static void
-singleton_collection_singleton_iterator_class_init (SingletonCollectionSingletonIteratorClass * klass)
-{
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- singleton_collection_singleton_iterator_parent_class = g_type_class_peek_parent (klass);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- g_type_class_add_private (klass, sizeof (SingletonCollectionSingletonIteratorPrivate));
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_singleton_collection_singleton_iterator_get_property;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_singleton_collection_singleton_iterator_set_property;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_CLASS (klass)->finalize = singleton_collection_singleton_iterator_finalize;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_TYPE, g_param_spec_gtype ("g-type", "type", "type", G_TYPE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DUP_FUNC, g_param_spec_pointer ("g-dup-func", "dup func", "dup func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DESTROY_FUNC, g_param_spec_pointer ("g-destroy-func", "destroy func", "destroy func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_READ_ONLY_PROPERTY, singleton_collection_singleton_iterator_properties[SINGLETON_COLLECTION_SINGLETON_ITERATOR_READ_ONLY_PROPERTY] = g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_VALID_PROPERTY, singleton_collection_singleton_iterator_properties[SINGLETON_COLLECTION_SINGLETON_ITERATOR_VALID_PROPERTY] = g_param_spec_boolean ("valid", "valid", "valid", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 771 "util.c"
-}
-
-
-static GType
-singleton_collection_singleton_iterator_gee_traversable_get_g_type (SingletonCollectionSingletonIterator* self)
-{
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- return self->priv->g_type;
-#line 780 "util.c"
-}
-
-
-static GBoxedCopyFunc
-singleton_collection_singleton_iterator_gee_traversable_get_g_dup_func (SingletonCollectionSingletonIterator* self)
-{
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- return self->priv->g_dup_func;
-#line 789 "util.c"
-}
-
-
-static GDestroyNotify
-singleton_collection_singleton_iterator_gee_traversable_get_g_destroy_func (SingletonCollectionSingletonIterator* self)
-{
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- return self->priv->g_destroy_func;
-#line 798 "util.c"
-}
-
-
-static void
-singleton_collection_singleton_iterator_gee_traversable_interface_init (GeeTraversableIface * iface)
-{
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- singleton_collection_singleton_iterator_gee_traversable_parent_iface = g_type_interface_peek_parent (iface);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->foreach = (gboolean (*) (GeeTraversable *, GeeForallFunc, void*)) singleton_collection_singleton_iterator_real_foreach;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->get_g_type = (GType (*) (GeeTraversable *)) singleton_collection_singleton_iterator_gee_traversable_get_g_type;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->get_g_dup_func = (GBoxedCopyFunc (*) (GeeTraversable *)) singleton_collection_singleton_iterator_gee_traversable_get_g_dup_func;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->get_g_destroy_func = (GDestroyNotify (*) (GeeTraversable *)) singleton_collection_singleton_iterator_gee_traversable_get_g_destroy_func;
-#line 815 "util.c"
-}
-
-
-static void
-singleton_collection_singleton_iterator_gee_iterator_interface_init (GeeIteratorIface * iface)
-{
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- singleton_collection_singleton_iterator_gee_iterator_parent_iface = g_type_interface_peek_parent (iface);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->get = (gpointer (*) (GeeIterator *)) singleton_collection_singleton_iterator_real_get;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->has_next = (gboolean (*) (GeeIterator *)) singleton_collection_singleton_iterator_real_has_next;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->next = (gboolean (*) (GeeIterator *)) singleton_collection_singleton_iterator_real_next;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->remove = (void (*) (GeeIterator *)) singleton_collection_singleton_iterator_real_remove;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->get_read_only = singleton_collection_singleton_iterator_real_get_read_only;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- iface->get_valid = singleton_collection_singleton_iterator_real_get_valid;
-#line 836 "util.c"
-}
-
-
-static void
-singleton_collection_singleton_iterator_instance_init (SingletonCollectionSingletonIterator * self)
-{
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv = SINGLETON_COLLECTION_SINGLETON_ITERATOR_GET_PRIVATE (self);
-#line 16 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->done = FALSE;
-#line 17 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->current = NULL;
-#line 849 "util.c"
-}
-
-
-static void
-singleton_collection_singleton_iterator_finalize (GObject * obj)
-{
- SingletonCollectionSingletonIterator * self;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 15 "/home/jens/Source/shotwell/src/core/util.vala"
- _g_object_unref0 (self->priv->c);
-#line 17 "/home/jens/Source/shotwell/src/core/util.vala"
- ((self->priv->current == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->current = (self->priv->g_destroy_func (self->priv->current), NULL));
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_CLASS (singleton_collection_singleton_iterator_parent_class)->finalize (obj);
-#line 865 "util.c"
-}
-
-
-static GType
-singleton_collection_singleton_iterator_get_type (void)
-{
- static volatile gsize singleton_collection_singleton_iterator_type_id__volatile = 0;
- if (g_once_init_enter (&singleton_collection_singleton_iterator_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SingletonCollectionSingletonIteratorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) singleton_collection_singleton_iterator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SingletonCollectionSingletonIterator), 0, (GInstanceInitFunc) singleton_collection_singleton_iterator_instance_init, NULL };
- static const GInterfaceInfo gee_traversable_info = { (GInterfaceInitFunc) singleton_collection_singleton_iterator_gee_traversable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo gee_iterator_info = { (GInterfaceInitFunc) singleton_collection_singleton_iterator_gee_iterator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType singleton_collection_singleton_iterator_type_id;
- singleton_collection_singleton_iterator_type_id = g_type_register_static (G_TYPE_OBJECT, "SingletonCollectionSingletonIterator", &g_define_type_info, 0);
- g_type_add_interface_static (singleton_collection_singleton_iterator_type_id, GEE_TYPE_TRAVERSABLE, &gee_traversable_info);
- g_type_add_interface_static (singleton_collection_singleton_iterator_type_id, GEE_TYPE_ITERATOR, &gee_iterator_info);
- g_once_init_leave (&singleton_collection_singleton_iterator_type_id__volatile, singleton_collection_singleton_iterator_type_id);
- }
- return singleton_collection_singleton_iterator_type_id__volatile;
-}
-
-
-static void
-_vala_singleton_collection_singleton_iterator_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- SingletonCollectionSingletonIterator * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- switch (property_id) {
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_SINGLETON_ITERATOR_READ_ONLY_PROPERTY:
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- g_value_set_boolean (value, gee_iterator_get_read_only (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ITERATOR, GeeIterator)));
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_SINGLETON_ITERATOR_VALID_PROPERTY:
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- g_value_set_boolean (value, gee_iterator_get_valid (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ITERATOR, GeeIterator)));
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 909 "util.c"
- default:
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 915 "util.c"
- }
-}
-
-
-static void
-_vala_singleton_collection_singleton_iterator_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- SingletonCollectionSingletonIterator * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- switch (property_id) {
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_TYPE:
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_type = g_value_get_gtype (value);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DUP_FUNC:
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_dup_func = g_value_get_pointer (value);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DESTROY_FUNC:
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_destroy_func = g_value_get_pointer (value);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 948 "util.c"
- default:
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 14 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 954 "util.c"
- }
-}
-
-
-static void
-singleton_collection_class_init (SingletonCollectionClass * klass)
-{
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- singleton_collection_parent_class = g_type_class_peek_parent (klass);
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- g_type_class_add_private (klass, sizeof (SingletonCollectionPrivate));
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- ((GeeAbstractCollectionClass *) klass)->add = (gboolean (*) (GeeAbstractCollection *, gconstpointer)) singleton_collection_real_add;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- ((GeeAbstractCollectionClass *) klass)->clear = (void (*) (GeeAbstractCollection *)) singleton_collection_real_clear;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- ((GeeAbstractCollectionClass *) klass)->contains = (gboolean (*) (GeeAbstractCollection *, gconstpointer)) singleton_collection_real_contains;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- ((GeeAbstractCollectionClass *) klass)->iterator = (GeeIterator* (*) (GeeAbstractCollection *)) singleton_collection_real_iterator;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- ((GeeAbstractCollectionClass *) klass)->remove = (gboolean (*) (GeeAbstractCollection *, gconstpointer)) singleton_collection_real_remove;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- GEE_ABSTRACT_COLLECTION_CLASS (klass)->get_read_only = singleton_collection_real_get_read_only;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- GEE_ABSTRACT_COLLECTION_CLASS (klass)->get_size = singleton_collection_real_get_size;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_singleton_collection_get_property;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_singleton_collection_set_property;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_CLASS (klass)->finalize = singleton_collection_finalize;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_G_TYPE, g_param_spec_gtype ("g-type", "type", "type", G_TYPE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_G_DUP_FUNC, g_param_spec_pointer ("g-dup-func", "dup func", "dup func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_G_DESTROY_FUNC, g_param_spec_pointer ("g-destroy-func", "destroy func", "destroy func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_READ_ONLY_PROPERTY, singleton_collection_properties[SINGLETON_COLLECTION_READ_ONLY_PROPERTY] = g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SIZE_PROPERTY, singleton_collection_properties[SINGLETON_COLLECTION_SIZE_PROPERTY] = g_param_spec_int ("size", "size", "size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 996 "util.c"
-}
-
-
-static void
-singleton_collection_instance_init (SingletonCollection * self)
-{
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv = SINGLETON_COLLECTION_GET_PRIVATE (self);
-#line 1005 "util.c"
-}
-
-
-static void
-singleton_collection_finalize (GObject * obj)
-{
- SingletonCollection * self;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 63 "/home/jens/Source/shotwell/src/core/util.vala"
- ((self->priv->object == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->object = (self->priv->g_destroy_func (self->priv->object), NULL));
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_CLASS (singleton_collection_parent_class)->finalize (obj);
-#line 1019 "util.c"
-}
-
-
-GType
-singleton_collection_get_type (void)
-{
- static volatile gsize singleton_collection_type_id__volatile = 0;
- if (g_once_init_enter (&singleton_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SingletonCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) singleton_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SingletonCollection), 0, (GInstanceInitFunc) singleton_collection_instance_init, NULL };
- GType singleton_collection_type_id;
- singleton_collection_type_id = g_type_register_static (GEE_TYPE_ABSTRACT_COLLECTION, "SingletonCollection", &g_define_type_info, 0);
- g_once_init_leave (&singleton_collection_type_id__volatile, singleton_collection_type_id);
- }
- return singleton_collection_type_id__volatile;
-}
-
-
-static void
-_vala_singleton_collection_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- SingletonCollection * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- switch (property_id) {
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_READ_ONLY_PROPERTY:
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- g_value_set_boolean (value, gee_abstract_collection_get_read_only (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)));
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_SIZE_PROPERTY:
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- g_value_set_int (value, gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)));
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 1059 "util.c"
- default:
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 1065 "util.c"
- }
-}
-
-
-static void
-_vala_singleton_collection_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- SingletonCollection * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SINGLETON_COLLECTION, SingletonCollection);
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- switch (property_id) {
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_G_TYPE:
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_type = g_value_get_gtype (value);
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_G_DUP_FUNC:
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_dup_func = g_value_get_pointer (value);
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- case SINGLETON_COLLECTION_G_DESTROY_FUNC:
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->g_destroy_func = g_value_get_pointer (value);
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 1098 "util.c"
- default:
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 13 "/home/jens/Source/shotwell/src/core/util.vala"
- break;
-#line 1104 "util.c"
- }
-}
-
-
-void
-marker_mark (Marker* self,
- DataObject* object)
-{
-#line 113 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (IS_MARKER (self));
-#line 113 "/home/jens/Source/shotwell/src/core/util.vala"
- MARKER_GET_INTERFACE (self)->mark (self, object);
-#line 1117 "util.c"
-}
-
-
-void
-marker_unmark (Marker* self,
- DataObject* object)
-{
-#line 115 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (IS_MARKER (self));
-#line 115 "/home/jens/Source/shotwell/src/core/util.vala"
- MARKER_GET_INTERFACE (self)->unmark (self, object);
-#line 1129 "util.c"
-}
-
-
-gboolean
-marker_toggle (Marker* self,
- DataObject* object)
-{
-#line 117 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (IS_MARKER (self), FALSE);
-#line 117 "/home/jens/Source/shotwell/src/core/util.vala"
- return MARKER_GET_INTERFACE (self)->toggle (self, object);
-#line 1141 "util.c"
-}
-
-
-void
-marker_mark_many (Marker* self,
- GeeCollection* list)
-{
-#line 119 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (IS_MARKER (self));
-#line 119 "/home/jens/Source/shotwell/src/core/util.vala"
- MARKER_GET_INTERFACE (self)->mark_many (self, list);
-#line 1153 "util.c"
-}
-
-
-void
-marker_unmark_many (Marker* self,
- GeeCollection* list)
-{
-#line 121 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (IS_MARKER (self));
-#line 121 "/home/jens/Source/shotwell/src/core/util.vala"
- MARKER_GET_INTERFACE (self)->unmark_many (self, list);
-#line 1165 "util.c"
-}
-
-
-void
-marker_mark_all (Marker* self)
-{
-#line 123 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (IS_MARKER (self));
-#line 123 "/home/jens/Source/shotwell/src/core/util.vala"
- MARKER_GET_INTERFACE (self)->mark_all (self);
-#line 1176 "util.c"
-}
-
-
-gint
-marker_get_count (Marker* self)
-{
-#line 127 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (IS_MARKER (self), 0);
-#line 127 "/home/jens/Source/shotwell/src/core/util.vala"
- return MARKER_GET_INTERFACE (self)->get_count (self);
-#line 1187 "util.c"
-}
-
-
-GeeCollection*
-marker_get_all (Marker* self)
-{
-#line 130 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (IS_MARKER (self), NULL);
-#line 130 "/home/jens/Source/shotwell/src/core/util.vala"
- return MARKER_GET_INTERFACE (self)->get_all (self);
-#line 1198 "util.c"
-}
-
-
-static void
-marker_base_init (MarkerIface * iface)
-{
-#line 112 "/home/jens/Source/shotwell/src/core/util.vala"
- static gboolean initialized = FALSE;
-#line 112 "/home/jens/Source/shotwell/src/core/util.vala"
- if (!initialized) {
-#line 112 "/home/jens/Source/shotwell/src/core/util.vala"
- initialized = TRUE;
-#line 1211 "util.c"
- }
-}
-
-
-GType
-marker_get_type (void)
-{
- static volatile gsize marker_type_id__volatile = 0;
- if (g_once_init_enter (&marker_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MarkerIface), (GBaseInitFunc) marker_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType marker_type_id;
- marker_type_id = g_type_register_static (G_TYPE_INTERFACE, "Marker", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (marker_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&marker_type_id__volatile, marker_type_id);
- }
- return marker_type_id__volatile;
-}
-
-
-UnknownTotalMonitor*
-unknown_total_monitor_construct (GType object_type,
- guint64 total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target)
-{
- UnknownTotalMonitor* self = NULL;
-#line 147 "/home/jens/Source/shotwell/src/core/util.vala"
- self = (UnknownTotalMonitor*) g_type_create_instance (object_type);
-#line 148 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->total = total;
-#line 149 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->wrapped_monitor = wrapped_monitor;
-#line 149 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->wrapped_monitor_target = wrapped_monitor_target;
-#line 147 "/home/jens/Source/shotwell/src/core/util.vala"
- return self;
-#line 1248 "util.c"
-}
-
-
-UnknownTotalMonitor*
-unknown_total_monitor_new (guint64 total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target)
-{
-#line 147 "/home/jens/Source/shotwell/src/core/util.vala"
- return unknown_total_monitor_construct (TYPE_UNKNOWN_TOTAL_MONITOR, total, wrapped_monitor, wrapped_monitor_target);
-#line 1259 "util.c"
-}
-
-
-gboolean
-unknown_total_monitor_monitor (UnknownTotalMonitor* self,
- guint64 count,
- guint64 total)
-{
- gboolean result = FALSE;
- ProgressMonitor _tmp0_;
- void* _tmp0__target;
- guint64 _tmp1_;
-#line 152 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (IS_UNKNOWN_TOTAL_MONITOR (self), FALSE);
-#line 153 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->wrapped_monitor;
-#line 153 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0__target = self->priv->wrapped_monitor_target;
-#line 153 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_ = self->priv->total;
-#line 153 "/home/jens/Source/shotwell/src/core/util.vala"
- result = _tmp0_ (count, _tmp1_, TRUE, _tmp0__target);
-#line 153 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 1284 "util.c"
-}
-
-
-static void
-value_unknown_total_monitor_init (GValue* value)
-{
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = NULL;
-#line 1293 "util.c"
-}
-
-
-static void
-value_unknown_total_monitor_free_value (GValue* value)
-{
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (value->data[0].v_pointer) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- unknown_total_monitor_unref (value->data[0].v_pointer);
-#line 1304 "util.c"
- }
-}
-
-
-static void
-value_unknown_total_monitor_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (src_value->data[0].v_pointer) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- dest_value->data[0].v_pointer = unknown_total_monitor_ref (src_value->data[0].v_pointer);
-#line 1317 "util.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1321 "util.c"
- }
-}
-
-
-static gpointer
-value_unknown_total_monitor_peek_pointer (const GValue* value)
-{
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- return value->data[0].v_pointer;
-#line 1331 "util.c"
-}
-
-
-static gchar*
-value_unknown_total_monitor_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (collect_values[0].v_pointer) {
-#line 1343 "util.c"
- UnknownTotalMonitor * object;
- object = collect_values[0].v_pointer;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1350 "util.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.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 1354 "util.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = unknown_total_monitor_ref (object);
-#line 1358 "util.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = NULL;
-#line 1362 "util.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- return NULL;
-#line 1366 "util.c"
-}
-
-
-static gchar*
-value_unknown_total_monitor_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- UnknownTotalMonitor ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (!object_p) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1382 "util.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (!value->data[0].v_pointer) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- *object_p = NULL;
-#line 1388 "util.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- *object_p = value->data[0].v_pointer;
-#line 1392 "util.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- *object_p = unknown_total_monitor_ref (value->data[0].v_pointer);
-#line 1396 "util.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- return NULL;
-#line 1400 "util.c"
-}
-
-
-GParamSpec*
-param_spec_unknown_total_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecUnknownTotalMonitor* spec;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_UNKNOWN_TOTAL_MONITOR), NULL);
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- return G_PARAM_SPEC (spec);
-#line 1420 "util.c"
-}
-
-
-gpointer
-value_get_unknown_total_monitor (const GValue* value)
-{
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UNKNOWN_TOTAL_MONITOR), NULL);
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- return value->data[0].v_pointer;
-#line 1431 "util.c"
-}
-
-
-void
-value_set_unknown_total_monitor (GValue* value,
- gpointer v_object)
-{
- UnknownTotalMonitor * old;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UNKNOWN_TOTAL_MONITOR));
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- old = value->data[0].v_pointer;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (v_object) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UNKNOWN_TOTAL_MONITOR));
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = v_object;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- unknown_total_monitor_ref (value->data[0].v_pointer);
-#line 1454 "util.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = NULL;
-#line 1458 "util.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (old) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- unknown_total_monitor_unref (old);
-#line 1464 "util.c"
- }
-}
-
-
-void
-value_take_unknown_total_monitor (GValue* value,
- gpointer v_object)
-{
- UnknownTotalMonitor * old;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UNKNOWN_TOTAL_MONITOR));
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- old = value->data[0].v_pointer;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (v_object) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UNKNOWN_TOTAL_MONITOR));
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = v_object;
-#line 1486 "util.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = NULL;
-#line 1490 "util.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (old) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- unknown_total_monitor_unref (old);
-#line 1496 "util.c"
- }
-}
-
-
-static void
-unknown_total_monitor_class_init (UnknownTotalMonitorClass * klass)
-{
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- unknown_total_monitor_parent_class = g_type_class_peek_parent (klass);
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- ((UnknownTotalMonitorClass *) klass)->finalize = unknown_total_monitor_finalize;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_type_class_add_private (klass, sizeof (UnknownTotalMonitorPrivate));
-#line 1510 "util.c"
-}
-
-
-static void
-unknown_total_monitor_instance_init (UnknownTotalMonitor * self)
-{
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv = UNKNOWN_TOTAL_MONITOR_GET_PRIVATE (self);
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- self->ref_count = 1;
-#line 1521 "util.c"
-}
-
-
-static void
-unknown_total_monitor_finalize (UnknownTotalMonitor * obj)
-{
- UnknownTotalMonitor * self;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitor);
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_signal_handlers_destroy (self);
-#line 1533 "util.c"
-}
-
-
-GType
-unknown_total_monitor_get_type (void)
-{
- static volatile gsize unknown_total_monitor_type_id__volatile = 0;
- if (g_once_init_enter (&unknown_total_monitor_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_unknown_total_monitor_init, value_unknown_total_monitor_free_value, value_unknown_total_monitor_copy_value, value_unknown_total_monitor_peek_pointer, "p", value_unknown_total_monitor_collect_value, "p", value_unknown_total_monitor_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (UnknownTotalMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unknown_total_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnknownTotalMonitor), 0, (GInstanceInitFunc) unknown_total_monitor_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType unknown_total_monitor_type_id;
- unknown_total_monitor_type_id = g_type_register_fundamental (g_type_fundamental_next (), "UnknownTotalMonitor", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&unknown_total_monitor_type_id__volatile, unknown_total_monitor_type_id);
- }
- return unknown_total_monitor_type_id__volatile;
-}
-
-
-gpointer
-unknown_total_monitor_ref (gpointer instance)
-{
- UnknownTotalMonitor * self;
- self = instance;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- return instance;
-#line 1562 "util.c"
-}
-
-
-void
-unknown_total_monitor_unref (gpointer instance)
-{
- UnknownTotalMonitor * self;
- self = instance;
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- UNKNOWN_TOTAL_MONITOR_GET_CLASS (self)->finalize (self);
-#line 143 "/home/jens/Source/shotwell/src/core/util.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1577 "util.c"
- }
-}
-
-
-AggregateProgressMonitor*
-aggregate_progress_monitor_construct (GType object_type,
- guint64 grand_total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target)
-{
- AggregateProgressMonitor* self = NULL;
-#line 165 "/home/jens/Source/shotwell/src/core/util.vala"
- self = (AggregateProgressMonitor*) g_type_create_instance (object_type);
-#line 166 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->grand_total = grand_total;
-#line 167 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->wrapped_monitor = wrapped_monitor;
-#line 167 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->wrapped_monitor_target = wrapped_monitor_target;
-#line 165 "/home/jens/Source/shotwell/src/core/util.vala"
- return self;
-#line 1599 "util.c"
-}
-
-
-AggregateProgressMonitor*
-aggregate_progress_monitor_new (guint64 grand_total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target)
-{
-#line 165 "/home/jens/Source/shotwell/src/core/util.vala"
- return aggregate_progress_monitor_construct (TYPE_AGGREGATE_PROGRESS_MONITOR, grand_total, wrapped_monitor, wrapped_monitor_target);
-#line 1610 "util.c"
-}
-
-
-void
-aggregate_progress_monitor_next_step (AggregateProgressMonitor* self,
- const gchar* name)
-{
- guint64 _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- guint64 _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 170 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (IS_AGGREGATE_PROGRESS_MONITOR (self));
-#line 170 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (name != NULL);
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = self->priv->aggregate_count;
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp0_);
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp2_ = _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp3_ = self->priv->grand_total;
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp4_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp3_);
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp5_ = _tmp4_;
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- g_debug ("util.vala:171: next step: %s (%s/%s)", name, _tmp2_, _tmp5_);
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- _g_free0 (_tmp5_);
-#line 171 "/home/jens/Source/shotwell/src/core/util.vala"
- _g_free0 (_tmp2_);
-#line 172 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->last_count = G_MAXUINT64;
-#line 1648 "util.c"
-}
-
-
-gboolean
-aggregate_progress_monitor_monitor (AggregateProgressMonitor* self,
- guint64 count,
- guint64 total)
-{
- gboolean result = FALSE;
- guint64 _tmp0_ = 0ULL;
- guint64 _tmp1_;
- guint64 _tmp3_;
- guint64 _tmp4_;
- guint64 _tmp5_;
- ProgressMonitor _tmp7_;
- void* _tmp7__target;
- guint64 _tmp8_;
- guint64 _tmp9_;
-#line 175 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (IS_AGGREGATE_PROGRESS_MONITOR (self), FALSE);
-#line 177 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp1_ = self->priv->last_count;
-#line 177 "/home/jens/Source/shotwell/src/core/util.vala"
- if (_tmp1_ != G_MAXUINT64) {
-#line 1673 "util.c"
- guint64 _tmp2_;
-#line 177 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp2_ = self->priv->last_count;
-#line 177 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = count - _tmp2_;
-#line 1679 "util.c"
- } else {
-#line 177 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp0_ = count;
-#line 1683 "util.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp3_ = self->priv->aggregate_count;
-#line 177 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->aggregate_count = _tmp3_ + _tmp0_;
-#line 178 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp4_ = self->priv->aggregate_count;
-#line 178 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp5_ = self->priv->grand_total;
-#line 178 "/home/jens/Source/shotwell/src/core/util.vala"
- if (_tmp4_ > _tmp5_) {
-#line 1695 "util.c"
- guint64 _tmp6_;
-#line 179 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp6_ = self->priv->grand_total;
-#line 179 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->aggregate_count = _tmp6_;
-#line 1701 "util.c"
- }
-#line 182 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->last_count = count;
-#line 184 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp7_ = self->priv->wrapped_monitor;
-#line 184 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp7__target = self->priv->wrapped_monitor_target;
-#line 184 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp8_ = self->priv->aggregate_count;
-#line 184 "/home/jens/Source/shotwell/src/core/util.vala"
- _tmp9_ = self->priv->grand_total;
-#line 184 "/home/jens/Source/shotwell/src/core/util.vala"
- result = _tmp7_ (_tmp8_, _tmp9_, TRUE, _tmp7__target);
-#line 184 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 1717 "util.c"
-}
-
-
-static void
-value_aggregate_progress_monitor_init (GValue* value)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = NULL;
-#line 1726 "util.c"
-}
-
-
-static void
-value_aggregate_progress_monitor_free_value (GValue* value)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (value->data[0].v_pointer) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- aggregate_progress_monitor_unref (value->data[0].v_pointer);
-#line 1737 "util.c"
- }
-}
-
-
-static void
-value_aggregate_progress_monitor_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (src_value->data[0].v_pointer) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- dest_value->data[0].v_pointer = aggregate_progress_monitor_ref (src_value->data[0].v_pointer);
-#line 1750 "util.c"
- } else {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1754 "util.c"
- }
-}
-
-
-static gpointer
-value_aggregate_progress_monitor_peek_pointer (const GValue* value)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- return value->data[0].v_pointer;
-#line 1764 "util.c"
-}
-
-
-static gchar*
-value_aggregate_progress_monitor_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (collect_values[0].v_pointer) {
-#line 1776 "util.c"
- AggregateProgressMonitor * object;
- object = collect_values[0].v_pointer;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1783 "util.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.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 1787 "util.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = aggregate_progress_monitor_ref (object);
-#line 1791 "util.c"
- } else {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = NULL;
-#line 1795 "util.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- return NULL;
-#line 1799 "util.c"
-}
-
-
-static gchar*
-value_aggregate_progress_monitor_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- AggregateProgressMonitor ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (!object_p) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1815 "util.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (!value->data[0].v_pointer) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- *object_p = NULL;
-#line 1821 "util.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- *object_p = value->data[0].v_pointer;
-#line 1825 "util.c"
- } else {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- *object_p = aggregate_progress_monitor_ref (value->data[0].v_pointer);
-#line 1829 "util.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- return NULL;
-#line 1833 "util.c"
-}
-
-
-GParamSpec*
-param_spec_aggregate_progress_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecAggregateProgressMonitor* spec;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_AGGREGATE_PROGRESS_MONITOR), NULL);
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- return G_PARAM_SPEC (spec);
-#line 1853 "util.c"
-}
-
-
-gpointer
-value_get_aggregate_progress_monitor (const GValue* value)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AGGREGATE_PROGRESS_MONITOR), NULL);
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- return value->data[0].v_pointer;
-#line 1864 "util.c"
-}
-
-
-void
-value_set_aggregate_progress_monitor (GValue* value,
- gpointer v_object)
-{
- AggregateProgressMonitor * old;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AGGREGATE_PROGRESS_MONITOR));
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- old = value->data[0].v_pointer;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (v_object) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AGGREGATE_PROGRESS_MONITOR));
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = v_object;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- aggregate_progress_monitor_ref (value->data[0].v_pointer);
-#line 1887 "util.c"
- } else {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = NULL;
-#line 1891 "util.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (old) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- aggregate_progress_monitor_unref (old);
-#line 1897 "util.c"
- }
-}
-
-
-void
-value_take_aggregate_progress_monitor (GValue* value,
- gpointer v_object)
-{
- AggregateProgressMonitor * old;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AGGREGATE_PROGRESS_MONITOR));
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- old = value->data[0].v_pointer;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (v_object) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AGGREGATE_PROGRESS_MONITOR));
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = v_object;
-#line 1919 "util.c"
- } else {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- value->data[0].v_pointer = NULL;
-#line 1923 "util.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (old) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- aggregate_progress_monitor_unref (old);
-#line 1929 "util.c"
- }
-}
-
-
-static void
-aggregate_progress_monitor_class_init (AggregateProgressMonitorClass * klass)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- aggregate_progress_monitor_parent_class = g_type_class_peek_parent (klass);
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- ((AggregateProgressMonitorClass *) klass)->finalize = aggregate_progress_monitor_finalize;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_type_class_add_private (klass, sizeof (AggregateProgressMonitorPrivate));
-#line 1943 "util.c"
-}
-
-
-static void
-aggregate_progress_monitor_instance_init (AggregateProgressMonitor * self)
-{
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv = AGGREGATE_PROGRESS_MONITOR_GET_PRIVATE (self);
-#line 162 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->aggregate_count = (guint64) 0;
-#line 163 "/home/jens/Source/shotwell/src/core/util.vala"
- self->priv->last_count = G_MAXUINT64;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- self->ref_count = 1;
-#line 1958 "util.c"
-}
-
-
-static void
-aggregate_progress_monitor_finalize (AggregateProgressMonitor * obj)
-{
- AggregateProgressMonitor * self;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitor);
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_signal_handlers_destroy (self);
-#line 1970 "util.c"
-}
-
-
-GType
-aggregate_progress_monitor_get_type (void)
-{
- static volatile gsize aggregate_progress_monitor_type_id__volatile = 0;
- if (g_once_init_enter (&aggregate_progress_monitor_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_aggregate_progress_monitor_init, value_aggregate_progress_monitor_free_value, value_aggregate_progress_monitor_copy_value, value_aggregate_progress_monitor_peek_pointer, "p", value_aggregate_progress_monitor_collect_value, "p", value_aggregate_progress_monitor_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (AggregateProgressMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) aggregate_progress_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AggregateProgressMonitor), 0, (GInstanceInitFunc) aggregate_progress_monitor_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType aggregate_progress_monitor_type_id;
- aggregate_progress_monitor_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AggregateProgressMonitor", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&aggregate_progress_monitor_type_id__volatile, aggregate_progress_monitor_type_id);
- }
- return aggregate_progress_monitor_type_id__volatile;
-}
-
-
-gpointer
-aggregate_progress_monitor_ref (gpointer instance)
-{
- AggregateProgressMonitor * self;
- self = instance;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- return instance;
-#line 1999 "util.c"
-}
-
-
-void
-aggregate_progress_monitor_unref (gpointer instance)
-{
- AggregateProgressMonitor * self;
- self = instance;
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- AGGREGATE_PROGRESS_MONITOR_GET_CLASS (self)->finalize (self);
-#line 159 "/home/jens/Source/shotwell/src/core/util.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2014 "util.c"
- }
-}
-
-
-gboolean
-null_progress_monitor (guint64 count,
- guint64 total)
-{
- gboolean result = FALSE;
-#line 190 "/home/jens/Source/shotwell/src/core/util.vala"
- result = TRUE;
-#line 190 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 2028 "util.c"
-}
-
-
-gdouble
-degrees_to_radians (gdouble theta)
-{
- gdouble result = 0.0;
-#line 195 "/home/jens/Source/shotwell/src/core/util.vala"
- result = theta * (G_PI / 180.0);
-#line 195 "/home/jens/Source/shotwell/src/core/util.vala"
- return result;
-#line 2040 "util.c"
-}
-
-
-
diff --git a/src/data_imports/DataImportJob.c b/src/data_imports/DataImportJob.c
deleted file mode 100644
index edc0967..0000000
--- a/src/data_imports/DataImportJob.c
+++ /dev/null
@@ -1,1817 +0,0 @@
-/* DataImportJob.c generated by valac 0.40.4, the Vala compiler
- * generated from DataImportJob.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <time.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gee.h>
-
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-typedef struct _BatchImportJobPrivate BatchImportJobPrivate;
-
-#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ())
-#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile))
-#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE))
-#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE))
-#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-
-typedef struct _DuplicatedFile DuplicatedFile;
-typedef struct _DuplicatedFileClass DuplicatedFileClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-typedef struct _BatchImportRollClass BatchImportRollClass;
-
-#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB (spit_data_imports_data_import_job_get_type ())
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
-
-typedef struct _SpitDataImportsDataImportJob SpitDataImportsDataImportJob;
-typedef struct _SpitDataImportsDataImportJobClass SpitDataImportsDataImportJobClass;
-typedef struct _SpitDataImportsDataImportJobPrivate SpitDataImportsDataImportJobPrivate;
-
-#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ())
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
-
-typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource;
-typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass;
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-#define _spit_data_imports_data_import_source_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_data_import_source_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#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_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ())
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-typedef struct _BatchImportRollPrivate BatchImportRollPrivate;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _BatchImportJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportJobPrivate * priv;
-};
-
-struct _BatchImportJobClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportJob *self);
- gchar* (*get_dest_identifier) (BatchImportJob* self);
- gchar* (*get_source_identifier) (BatchImportJob* self);
- gboolean (*is_directory) (BatchImportJob* self);
- gchar* (*get_basename) (BatchImportJob* self);
- gchar* (*get_path) (BatchImportJob* self);
- DuplicatedFile* (*get_duplicated_file) (BatchImportJob* self);
- GFile* (*get_associated_file) (BatchImportJob* self);
- void (*set_associated) (BatchImportJob* self, BatchImportJob* associated);
- gboolean (*determine_file_size) (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir);
- gboolean (*prepare) (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error);
- gboolean (*complete) (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error);
- time_t (*get_exposure_time_override) (BatchImportJob* self);
- gboolean (*recurse) (BatchImportJob* self);
-};
-
-struct _SpitDataImportsDataImportJob {
- BatchImportJob parent_instance;
- SpitDataImportsDataImportJobPrivate * priv;
-};
-
-struct _SpitDataImportsDataImportJobClass {
- BatchImportJobClass parent_class;
-};
-
-struct _SpitDataImportsDataImportJobPrivate {
- SpitDataImportsDataImportSource* import_source;
- GFile* src_file;
- guint64 filesize;
- time_t exposure_time;
- SpitDataImportsDataImportJob* associated;
- HierarchicalTagIndex* detected_htags;
-};
-
-typedef enum {
- PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0,
- PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
- PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
- PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
- PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
-} PrepareInputTextOptions;
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _BatchImportRoll {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportRollPrivate * priv;
- ImportID import_id;
- ViewCollection* generated_events;
-};
-
-struct _BatchImportRollClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportRoll *self);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-
-static gpointer spit_data_imports_data_import_job_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-GType duplicated_file_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_data_import_job_get_type (void) G_GNUC_CONST;
-gpointer spit_data_imports_data_import_source_ref (gpointer instance);
-void spit_data_imports_data_import_source_unref (gpointer instance);
-GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void spit_data_imports_value_set_data_import_source (GValue* value,
- gpointer v_object);
-void spit_data_imports_value_take_data_import_source (GValue* value,
- gpointer v_object);
-gpointer spit_data_imports_value_get_data_import_source (const GValue* value);
-GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST;
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobPrivate))
-SpitDataImportsDataImportJob* spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source);
-SpitDataImportsDataImportJob* spit_data_imports_data_import_job_construct (GType object_type,
- SpitDataImportsDataImportSource* import_source);
-BatchImportJob* batch_import_job_construct (GType object_type);
-GFile* spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self);
-guint64 spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self);
-time_t spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self);
-static HierarchicalTagIndex* spit_data_imports_data_import_job_build_exclusion_index (SpitDataImportsDataImportJob* self,
- SpitDataImportsImportableTag** src_tags,
- int src_tags_length1);
-gchar* hierarchical_tag_utilities_join_path_components (gchar** path_components,
- int path_components_length1);
-gchar** tag_prep_tag_names (gchar** names,
- int names_length1,
- int* result_length1);
-static gchar** spit_data_imports_data_import_job_build_path_components (SpitDataImportsDataImportJob* self,
- SpitDataImportsImportableTag* tag,
- int* result_length1);
-#define TAG_PATH_SEPARATOR_STRING "/"
-GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
-HierarchicalTagIndex* hierarchical_tag_index_from_paths (GeeCollection* client_paths);
-time_t spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self);
-static gchar* spit_data_imports_data_import_job_real_get_dest_identifier (BatchImportJob* base);
-gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self);
-static gchar* spit_data_imports_data_import_job_real_get_source_identifier (BatchImportJob* base);
-static gboolean spit_data_imports_data_import_job_real_is_directory (BatchImportJob* base);
-static gchar* spit_data_imports_data_import_job_real_get_basename (BatchImportJob* base);
-static gchar* spit_data_imports_data_import_job_real_get_path (BatchImportJob* base);
-static void spit_data_imports_data_import_job_real_set_associated (BatchImportJob* base,
- BatchImportJob* associated);
-static gboolean spit_data_imports_data_import_job_real_determine_file_size (BatchImportJob* base,
- guint64* filesize,
- GFile* * file);
-static gboolean spit_data_imports_data_import_job_real_prepare (BatchImportJob* base,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error);
-SpitDataImportsImportableMediaItem* spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self);
-static gboolean spit_data_imports_data_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;
-GType library_photo_get_type (void) G_GNUC_CONST;
-GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
-GType tag_get_type (void) G_GNUC_CONST;
-Tag* tag_for_path (const gchar* name);
-GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
-gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-gboolean tag_source_collection_exists (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root);
-void tag_promote (Tag* self);
-void tag_attach (Tag* self,
- MediaSource* source);
-GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
-gchar* prepare_input_text (const gchar* text,
- PrepareInputTextOptions options,
- gint dest_length);
-GType view_collection_get_type (void) G_GNUC_CONST;
-void event_generate_single_event (MediaSource* media,
- ViewCollection* events_so_far,
- const gchar* event_name);
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-GType rating_get_type (void) G_GNUC_CONST;
-Rating rating_unserialize (gint value);
-void media_source_set_rating (MediaSource* self,
- Rating rating);
-void media_source_set_title (MediaSource* self,
- const gchar* title);
-GType dateable_get_type (void) G_GNUC_CONST;
-void dateable_set_exposure_time (Dateable* self,
- time_t target_time);
-void photo_set_import_id (Photo* self,
- ImportID* import_id);
-gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
-static void spit_data_imports_data_import_job_finalize (BatchImportJob * 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 gpointer
-_spit_data_imports_data_import_source_ref0 (gpointer self)
-{
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return self ? spit_data_imports_data_import_source_ref (self) : NULL;
-#line 507 "DataImportJob.c"
-}
-
-
-SpitDataImportsDataImportJob*
-spit_data_imports_data_import_job_construct (GType object_type,
- SpitDataImportsDataImportSource* import_source)
-{
- SpitDataImportsDataImportJob* self = NULL;
- SpitDataImportsDataImportSource* _tmp0_;
- GFile* _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (import_source), NULL);
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = (SpitDataImportsDataImportJob*) batch_import_job_construct (object_type);
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = _spit_data_imports_data_import_source_ref0 (import_source);
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _spit_data_imports_data_import_source_unref0 (self->priv->import_source);
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->import_source = _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = spit_data_imports_data_import_source_get_file (import_source);
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (self->priv->src_file);
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->src_file = _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->filesize = spit_data_imports_data_import_source_get_filesize (import_source);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->exposure_time = spit_data_imports_data_import_source_get_exposure_time (import_source);
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return self;
-#line 540 "DataImportJob.c"
-}
-
-
-SpitDataImportsDataImportJob*
-spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source)
-{
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return spit_data_imports_data_import_job_construct (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, import_source);
-#line 549 "DataImportJob.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return self ? g_object_ref (self) : NULL;
-#line 558 "DataImportJob.c"
-}
-
-
-static HierarchicalTagIndex*
-spit_data_imports_data_import_job_build_exclusion_index (SpitDataImportsDataImportJob* self,
- SpitDataImportsImportableTag** src_tags,
- int src_tags_length1)
-{
- HierarchicalTagIndex* result = NULL;
- GeeSet* detected_htags = NULL;
- GeeHashSet* _tmp0_;
- HierarchicalTagIndex* _tmp31_ = NULL;
- GeeSet* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
-#line 29 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), NULL);
-#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- detected_htags = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
-#line 580 "DataImportJob.c"
- {
- SpitDataImportsImportableTag** src_tag_collection = NULL;
- gint src_tag_collection_length1 = 0;
- gint _src_tag_collection_size_ = 0;
- gint src_tag_it = 0;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag_collection = src_tags;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag_collection_length1 = src_tags_length1;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- for (src_tag_it = 0; src_tag_it < src_tags_length1; src_tag_it = src_tag_it + 1) {
-#line 592 "DataImportJob.c"
- SpitDataImportsImportableTag* _tmp1_;
- SpitDataImportsImportableTag* src_tag = NULL;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = _g_object_ref0 (src_tag_collection[src_tag_it]);
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag = _tmp1_;
-#line 599 "DataImportJob.c"
- {
- gchar* prepped = NULL;
- SpitDataImportsImportableTag* _tmp2_;
- gint _tmp3_;
- gchar** _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- gchar** _tmp7_;
- gchar** _tmp8_;
- gint _tmp8__length1;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gboolean _tmp11_ = FALSE;
- const gchar* _tmp12_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = src_tag;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = spit_data_imports_data_import_job_build_path_components (self, _tmp2_, &_tmp3_);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5_ = _tmp4_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5__length1 = _tmp3_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = tag_prep_tag_names (_tmp5_, _tmp3_, &_tmp6_);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = _tmp7_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8__length1 = _tmp6_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp9_ = hierarchical_tag_utilities_join_path_components (_tmp8_, _tmp6_);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp10_ = _tmp9_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- prepped = _tmp10_;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp12_ = prepped;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp12_ != NULL) {
-#line 643 "DataImportJob.c"
- const gchar* _tmp13_;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp13_ = prepped;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp11_ = g_str_has_prefix (_tmp13_, TAG_PATH_SEPARATOR_STRING);
-#line 649 "DataImportJob.c"
- } else {
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp11_ = FALSE;
-#line 653 "DataImportJob.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp11_) {
-#line 657 "DataImportJob.c"
- GeeSet* _tmp14_;
- const gchar* _tmp15_;
- GeeList* parents = NULL;
- const gchar* _tmp16_;
- GeeList* _tmp17_;
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp14_ = detected_htags;
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp15_ = prepped;
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_);
-#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp16_ = prepped;
-#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp17_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp16_);
-#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- parents = _tmp17_;
-#line 675 "DataImportJob.c"
- {
- GeeList* _parent_list = NULL;
- GeeList* _tmp18_;
- GeeList* _tmp19_;
- gint _parent_size = 0;
- GeeList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _parent_index = 0;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp18_ = parents;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp19_ = _g_object_ref0 (_tmp18_);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _parent_list = _tmp19_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp20_ = _parent_list;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp22_ = _tmp21_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _parent_size = _tmp22_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _parent_index = -1;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- while (TRUE) {
-#line 703 "DataImportJob.c"
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- gchar* parent = NULL;
- GeeList* _tmp26_;
- gint _tmp27_;
- gpointer _tmp28_;
- GeeSet* _tmp29_;
- const gchar* _tmp30_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp23_ = _parent_index;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _parent_index = _tmp23_ + 1;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp24_ = _parent_index;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp25_ = _parent_size;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (!(_tmp24_ < _tmp25_)) {
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- break;
-#line 725 "DataImportJob.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp26_ = _parent_list;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp27_ = _parent_index;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp28_ = gee_list_get (_tmp26_, _tmp27_);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- parent = (gchar*) _tmp28_;
-#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp29_ = detected_htags;
-#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp30_ = parent;
-#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), _tmp30_);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (parent);
-#line 743 "DataImportJob.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_parent_list);
-#line 747 "DataImportJob.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (parents);
-#line 751 "DataImportJob.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (prepped);
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_tag);
-#line 757 "DataImportJob.c"
- }
- }
- }
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp32_ = detected_htags;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp34_ = _tmp33_;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp34_ > 0) {
-#line 769 "DataImportJob.c"
- GeeSet* _tmp35_;
- HierarchicalTagIndex* _tmp36_;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp35_ = detected_htags;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp36_ = hierarchical_tag_index_from_paths (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _hierarchical_tag_index_unref0 (_tmp31_);
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp31_ = _tmp36_;
-#line 780 "DataImportJob.c"
- } else {
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _hierarchical_tag_index_unref0 (_tmp31_);
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp31_ = NULL;
-#line 786 "DataImportJob.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp31_;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (detected_htags);
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 794 "DataImportJob.c"
-}
-
-
-time_t
-spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self)
-{
- time_t result = 0;
- time_t _tmp0_;
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), 0);
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->exposure_time;
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 811 "DataImportJob.c"
-}
-
-
-static gchar*
-spit_data_imports_data_import_job_real_get_dest_identifier (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gchar* result = NULL;
- SpitDataImportsDataImportSource* _tmp0_;
- gchar* _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->import_source;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = spit_data_imports_data_import_source_get_filename (_tmp0_);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 832 "DataImportJob.c"
-}
-
-
-static gchar*
-spit_data_imports_data_import_job_real_get_source_identifier (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gchar* result = NULL;
- SpitDataImportsDataImportSource* _tmp0_;
- gchar* _tmp1_;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->import_source;
-#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = spit_data_imports_data_import_source_get_filename (_tmp0_);
-#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 853 "DataImportJob.c"
-}
-
-
-static gboolean
-spit_data_imports_data_import_job_real_is_directory (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gboolean result = FALSE;
-#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = FALSE;
-#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 868 "DataImportJob.c"
-}
-
-
-static gchar*
-spit_data_imports_data_import_job_real_get_basename (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
-#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->src_file;
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = g_file_get_basename (_tmp0_);
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 889 "DataImportJob.c"
-}
-
-
-static gchar*
-spit_data_imports_data_import_job_real_get_path (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->src_file;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = g_file_get_parent (_tmp0_);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = _tmp1_;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp3_ = g_file_get_path (_tmp2_);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = _tmp3_;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp2_);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp4_;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 921 "DataImportJob.c"
-}
-
-
-static gpointer
-_batch_import_job_ref0 (gpointer self)
-{
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return self ? batch_import_job_ref (self) : NULL;
-#line 930 "DataImportJob.c"
-}
-
-
-static void
-spit_data_imports_data_import_job_real_set_associated (BatchImportJob* base,
- BatchImportJob* associated)
-{
- SpitDataImportsDataImportJob * self;
- SpitDataImportsDataImportJob* _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (associated));
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (associated, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB) ? ((SpitDataImportsDataImportJob*) associated) : NULL);
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _batch_import_job_unref0 (self->priv->associated);
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->associated = _tmp0_;
-#line 950 "DataImportJob.c"
-}
-
-
-static gboolean
-spit_data_imports_data_import_job_real_determine_file_size (BatchImportJob* base,
- guint64* filesize,
- GFile* * file)
-{
- SpitDataImportsDataImportJob * self;
- guint64 _vala_filesize = 0ULL;
- GFile* _vala_file = NULL;
- gboolean result = FALSE;
- guint64 _tmp0_;
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_vala_file);
-#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_file = NULL;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->filesize;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_filesize = _tmp0_;
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = TRUE;
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (filesize) {
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *filesize = _vala_filesize;
-#line 980 "DataImportJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (file) {
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *file = _vala_file;
-#line 986 "DataImportJob.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_vala_file);
-#line 990 "DataImportJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 994 "DataImportJob.c"
-}
-
-
-static gboolean
-spit_data_imports_data_import_job_real_prepare (BatchImportJob* base,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error)
-{
- SpitDataImportsDataImportJob * self;
- GFile* _vala_file_to_import = NULL;
- gboolean _vala_copy_to_library = FALSE;
- gboolean result = FALSE;
- GFile* _tmp0_;
- GFile* _tmp1_;
- SpitDataImportsDataImportSource* _tmp2_;
- SpitDataImportsImportableMediaItem* _tmp3_;
- SpitDataImportsImportableMediaItem* _tmp4_;
- gint _tmp5_;
- SpitDataImportsImportableTag** _tmp6_;
- SpitDataImportsImportableTag** _tmp7_;
- gint _tmp7__length1;
- HierarchicalTagIndex* _tmp8_;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->src_file;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_file_to_import = _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_copy_to_library = FALSE;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = self->priv->import_source;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp3_ = spit_data_imports_data_import_source_get_photo (_tmp2_);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = _tmp3_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp6_ = spit_data_imports_importable_media_item_get_tags (_tmp4_, &_tmp5_);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = _tmp6_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7__length1 = _tmp5_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = spit_data_imports_data_import_job_build_exclusion_index (self, _tmp7_, _tmp5_);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _hierarchical_tag_index_unref0 (self->priv->detected_htags);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->detected_htags = _tmp8_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_object_unref), NULL);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp4_);
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = TRUE;
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (file_to_import) {
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *file_to_import = _vala_file_to_import;
-#line 1058 "DataImportJob.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 1062 "DataImportJob.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (copy_to_library) {
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *copy_to_library = _vala_copy_to_library;
-#line 1068 "DataImportJob.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 1072 "DataImportJob.c"
-}
-
-
-static gboolean
-spit_data_imports_data_import_job_real_complete (BatchImportJob* base,
- MediaSource* source,
- BatchImportRoll* import_roll,
- GError** error)
-{
- SpitDataImportsDataImportJob * self;
- gboolean result = FALSE;
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- LibraryPhoto* _tmp1_;
- SpitDataImportsImportableMediaItem* src_photo = NULL;
- SpitDataImportsDataImportSource* _tmp2_;
- SpitDataImportsImportableMediaItem* _tmp3_;
- HierarchicalTagIndex* _tmp4_;
- SpitDataImportsImportableTag** src_tags = NULL;
- SpitDataImportsImportableMediaItem* _tmp15_;
- gint _tmp16_;
- SpitDataImportsImportableTag** _tmp17_;
- gint src_tags_length1;
- gint _src_tags_size_;
- SpitDataImportsImportableTag** _tmp18_;
- gint _tmp18__length1;
- SpitDataImportsImportableEvent* src_event = NULL;
- SpitDataImportsImportableMediaItem* _tmp57_;
- SpitDataImportsImportableEvent* _tmp58_;
- SpitDataImportsImportableEvent* _tmp59_;
- Rating dst_rating = 0;
- SpitDataImportsImportableRating* src_rating = NULL;
- SpitDataImportsImportableMediaItem* _tmp69_;
- SpitDataImportsImportableRating* _tmp70_;
- SpitDataImportsImportableRating* _tmp71_;
- LibraryPhoto* _tmp74_;
- Rating _tmp75_;
- gchar* title = NULL;
- SpitDataImportsImportableMediaItem* _tmp76_;
- gchar* _tmp77_;
- const gchar* _tmp78_;
- time_t* date_time = NULL;
- SpitDataImportsImportableMediaItem* _tmp81_;
- time_t* _tmp82_;
- time_t* _tmp83_;
- LibraryPhoto* _tmp86_;
- ImportID _tmp87_;
-#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_ROLL (import_roll), FALSE);
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) source) : NULL);
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- photo = _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = photo;
-#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp1_ == NULL) {
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = FALSE;
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (photo);
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 1140 "DataImportJob.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = self->priv->import_source;
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp3_ = spit_data_imports_data_import_source_get_photo (_tmp2_);
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_photo = _tmp3_;
-#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = self->priv->detected_htags;
-#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp4_ != NULL) {
-#line 1152 "DataImportJob.c"
- GeeCollection* paths = NULL;
- HierarchicalTagIndex* _tmp5_;
- GeeCollection* _tmp6_;
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5_ = self->priv->detected_htags;
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp6_ = hierarchical_tag_index_get_all_paths (_tmp5_);
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- paths = _tmp6_;
-#line 1162 "DataImportJob.c"
- {
- GeeIterator* _path_it = NULL;
- GeeCollection* _tmp7_;
- GeeIterator* _tmp8_;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = paths;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _path_it = _tmp8_;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- while (TRUE) {
-#line 1175 "DataImportJob.c"
- GeeIterator* _tmp9_;
- gchar* path = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- const gchar* _tmp12_;
- Tag* _tmp13_;
- Tag* _tmp14_;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp9_ = _path_it;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- break;
-#line 1189 "DataImportJob.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp10_ = _path_it;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- path = (gchar*) _tmp11_;
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp12_ = path;
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp13_ = tag_for_path (_tmp12_);
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp14_ = _tmp13_;
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp14_);
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (path);
-#line 1207 "DataImportJob.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_path_it);
-#line 1211 "DataImportJob.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (paths);
-#line 1215 "DataImportJob.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp15_ = src_photo;
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp17_ = spit_data_imports_importable_media_item_get_tags (_tmp15_, &_tmp16_);
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tags = _tmp17_;
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tags_length1 = _tmp16_;
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _src_tags_size_ = src_tags_length1;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp18_ = src_tags;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp18__length1 = src_tags_length1;
-#line 1231 "DataImportJob.c"
- {
- SpitDataImportsImportableTag** src_tag_collection = NULL;
- gint src_tag_collection_length1 = 0;
- gint _src_tag_collection_size_ = 0;
- gint src_tag_it = 0;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag_collection = _tmp18_;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag_collection_length1 = _tmp18__length1;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- for (src_tag_it = 0; src_tag_it < _tmp18__length1; src_tag_it = src_tag_it + 1) {
-#line 1243 "DataImportJob.c"
- SpitDataImportsImportableTag* _tmp19_;
- SpitDataImportsImportableTag* src_tag = NULL;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp19_ = _g_object_ref0 (src_tag_collection[src_tag_it]);
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag = _tmp19_;
-#line 1250 "DataImportJob.c"
- {
- gchar* prepped = NULL;
- SpitDataImportsImportableTag* _tmp20_;
- gint _tmp21_;
- gchar** _tmp22_;
- gchar** _tmp23_;
- gint _tmp23__length1;
- gint _tmp24_;
- gchar** _tmp25_;
- gchar** _tmp26_;
- gint _tmp26__length1;
- gchar* _tmp27_;
- gchar* _tmp28_;
- const gchar* _tmp29_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp20_ = src_tag;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp22_ = spit_data_imports_data_import_job_build_path_components (self, _tmp20_, &_tmp21_);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp23_ = _tmp22_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp23__length1 = _tmp21_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp25_ = tag_prep_tag_names (_tmp23_, _tmp21_, &_tmp24_);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp26_ = _tmp25_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp26__length1 = _tmp24_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp27_ = hierarchical_tag_utilities_join_path_components (_tmp26_, _tmp24_);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp28_ = _tmp27_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp26_ = (_vala_array_free (_tmp26_, _tmp26__length1, (GDestroyNotify) g_free), NULL);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp23_ = (_vala_array_free (_tmp23_, _tmp23__length1, (GDestroyNotify) g_free), NULL);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- prepped = _tmp28_;
-#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp29_ = prepped;
-#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp29_ != NULL) {
-#line 1293 "DataImportJob.c"
- const gchar* _tmp30_;
- GeeList* _tmp31_;
- GeeList* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gboolean _tmp35_;
- const gchar* _tmp53_;
- Tag* _tmp54_;
- Tag* _tmp55_;
- LibraryPhoto* _tmp56_;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp30_ = prepped;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp31_ = hierarchical_tag_utilities_enumerate_path_components (_tmp30_);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp32_ = _tmp31_;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp34_ = _tmp33_;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp35_ = _tmp34_ == 1;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp32_);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp35_) {
-#line 1320 "DataImportJob.c"
- const gchar* _tmp36_;
-#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp36_ = prepped;
-#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (g_str_has_prefix (_tmp36_, TAG_PATH_SEPARATOR_STRING)) {
-#line 1326 "DataImportJob.c"
- const gchar* _tmp37_;
- gchar* _tmp38_;
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp37_ = prepped;
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp38_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp37_);
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (prepped);
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- prepped = _tmp38_;
-#line 1337 "DataImportJob.c"
- }
- } else {
- GeeList* parents = NULL;
- const gchar* _tmp39_;
- GeeList* _tmp40_;
- GeeList* _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- gchar* top_level_parent = NULL;
- GeeList* _tmp44_;
- gpointer _tmp45_;
- gchar* flat_top_level_parent = NULL;
- const gchar* _tmp46_;
- gchar* _tmp47_;
- TagSourceCollection* _tmp48_;
- const gchar* _tmp49_;
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp39_ = prepped;
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp40_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp39_);
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- parents = _tmp40_;
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp41_ = parents;
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp42_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp43_ = _tmp42_;
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_assert (_tmp43_ > 0, "parents.size > 0");
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp44_ = parents;
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp45_ = gee_list_get (_tmp44_, 0);
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- top_level_parent = (gchar*) _tmp45_;
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp46_ = top_level_parent;
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp47_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp46_);
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- flat_top_level_parent = _tmp47_;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp48_ = tag_global;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp49_ = flat_top_level_parent;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (tag_source_collection_exists (_tmp48_, _tmp49_, FALSE)) {
-#line 1386 "DataImportJob.c"
- const gchar* _tmp50_;
- Tag* _tmp51_;
- Tag* _tmp52_;
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp50_ = flat_top_level_parent;
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp51_ = tag_for_path (_tmp50_);
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp52_ = _tmp51_;
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- tag_promote (_tmp52_);
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp52_);
-#line 1400 "DataImportJob.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (flat_top_level_parent);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (top_level_parent);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (parents);
-#line 1408 "DataImportJob.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp53_ = prepped;
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp54_ = tag_for_path (_tmp53_);
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp55_ = _tmp54_;
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp56_ = photo;
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- tag_attach (_tmp55_, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp55_);
-#line 1422 "DataImportJob.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (prepped);
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_tag);
-#line 1428 "DataImportJob.c"
- }
- }
- }
-#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp57_ = src_photo;
-#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp58_ = spit_data_imports_importable_media_item_get_event (_tmp57_);
-#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_event = _tmp58_;
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp59_ = src_event;
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp59_ != NULL) {
-#line 1442 "DataImportJob.c"
- gchar* prepped = NULL;
- SpitDataImportsImportableEvent* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- const gchar* _tmp65_;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp60_ = src_event;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp61_ = spit_data_imports_importable_event_get_name (_tmp60_);
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp62_ = _tmp61_;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp63_ = prepare_input_text (_tmp62_, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, -1);
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp64_ = _tmp63_;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (_tmp62_);
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- prepped = _tmp64_;
-#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp65_ = prepped;
-#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp65_ != NULL) {
-#line 1468 "DataImportJob.c"
- LibraryPhoto* _tmp66_;
- ViewCollection* _tmp67_;
- const gchar* _tmp68_;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp66_ = photo;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp67_ = import_roll->generated_events;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp68_ = prepped;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_MEDIA_SOURCE, MediaSource), _tmp67_, _tmp68_);
-#line 1480 "DataImportJob.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (prepped);
-#line 1484 "DataImportJob.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp69_ = src_photo;
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp70_ = spit_data_imports_importable_media_item_get_rating (_tmp69_);
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_rating = _tmp70_;
-#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp71_ = src_rating;
-#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (spit_data_imports_importable_rating_is_rejected (_tmp71_)) {
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- dst_rating = RATING_REJECTED;
-#line 1498 "DataImportJob.c"
- } else {
- SpitDataImportsImportableRating* _tmp72_;
-#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp72_ = src_rating;
-#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (spit_data_imports_importable_rating_is_unrated (_tmp72_)) {
-#line 152 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- dst_rating = RATING_UNRATED;
-#line 1507 "DataImportJob.c"
- } else {
- SpitDataImportsImportableRating* _tmp73_;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp73_ = src_rating;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- dst_rating = rating_unserialize (spit_data_imports_importable_rating_get_value (_tmp73_));
-#line 1514 "DataImportJob.c"
- }
- }
-#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp74_ = photo;
-#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp75_ = dst_rating;
-#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, TYPE_MEDIA_SOURCE, MediaSource), _tmp75_);
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp76_ = src_photo;
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp77_ = spit_data_imports_importable_media_item_get_title (_tmp76_);
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- title = _tmp77_;
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp78_ = title;
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp78_ != NULL) {
-#line 1533 "DataImportJob.c"
- LibraryPhoto* _tmp79_;
- const gchar* _tmp80_;
-#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp79_ = photo;
-#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp80_ = title;
-#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_MEDIA_SOURCE, MediaSource), _tmp80_);
-#line 1542 "DataImportJob.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp81_ = src_photo;
-#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp82_ = spit_data_imports_importable_media_item_get_exposure_time (_tmp81_);
-#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- date_time = _tmp82_;
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp83_ = date_time;
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp83_ != NULL) {
-#line 1554 "DataImportJob.c"
- LibraryPhoto* _tmp84_;
- time_t* _tmp85_;
-#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp84_ = photo;
-#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp85_ = date_time;
-#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, TYPE_DATEABLE, Dateable), *_tmp85_);
-#line 1563 "DataImportJob.c"
- }
-#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp86_ = photo;
-#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp87_ = import_roll->import_id;
-#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- photo_set_import_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_PHOTO, Photo), &_tmp87_);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = TRUE;
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (date_time);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (title);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_rating);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_event);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tags = (_vala_array_free (src_tags, src_tags_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_photo);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (photo);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 1589 "DataImportJob.c"
-}
-
-
-static gchar**
-spit_data_imports_data_import_job_build_path_components (SpitDataImportsDataImportJob* self,
- SpitDataImportsImportableTag* tag,
- int* result_length1)
-{
- gchar** result = NULL;
- GeeList* components = NULL;
- GeeLinkedList* _tmp0_;
- GeeList* _tmp12_;
- gint _tmp13_;
- gpointer* _tmp14_;
- gchar** _tmp15_;
- gint _tmp15__length1;
-#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), NULL);
-#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (tag), NULL);
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = gee_linked_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- components = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 1614 "DataImportJob.c"
- {
- SpitDataImportsImportableTag* current_tag = NULL;
- SpitDataImportsImportableTag* _tmp1_;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = _g_object_ref0 (tag);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- current_tag = _tmp1_;
-#line 1622 "DataImportJob.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = TRUE;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- while (TRUE) {
-#line 1629 "DataImportJob.c"
- SpitDataImportsImportableTag* _tmp5_;
- GeeList* _tmp6_;
- SpitDataImportsImportableTag* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (!_tmp2_) {
-#line 1639 "DataImportJob.c"
- SpitDataImportsImportableTag* _tmp3_;
- SpitDataImportsImportableTag* _tmp4_;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp3_ = current_tag;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = spit_data_imports_importable_tag_get_parent (_tmp3_);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (current_tag);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- current_tag = _tmp4_;
-#line 1650 "DataImportJob.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = FALSE;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5_ = current_tag;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (!(_tmp5_ != NULL)) {
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- break;
-#line 1660 "DataImportJob.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp6_ = components;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = current_tag;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = spit_data_imports_importable_tag_get_name (_tmp7_);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp9_ = _tmp8_;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp10_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp9_);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp11_ = _tmp10_;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- gee_list_insert (_tmp6_, 0, _tmp11_);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (_tmp11_);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (_tmp9_);
-#line 1680 "DataImportJob.c"
- }
- }
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (current_tag);
-#line 1685 "DataImportJob.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp12_ = components;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp14_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp13_);
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp15_ = _tmp14_;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp15__length1 = _tmp13_;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (result_length1) {
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *result_length1 = _tmp15__length1;
-#line 1699 "DataImportJob.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp15_;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (components);
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 1707 "DataImportJob.c"
-}
-
-
-static void
-spit_data_imports_data_import_job_class_init (SpitDataImportsDataImportJobClass * klass)
-{
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- spit_data_imports_data_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->finalize = spit_data_imports_data_import_job_finalize;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_type_class_add_private (klass, sizeof (SpitDataImportsDataImportJobPrivate));
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_dest_identifier;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_source_identifier;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_is_directory;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_basename;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_path;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) spit_data_imports_data_import_job_real_set_associated;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) spit_data_imports_data_import_job_real_determine_file_size;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) spit_data_imports_data_import_job_real_prepare;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->complete = (gboolean (*) (BatchImportJob *, MediaSource*, BatchImportRoll*, GError**)) spit_data_imports_data_import_job_real_complete;
-#line 1738 "DataImportJob.c"
-}
-
-
-static void
-spit_data_imports_data_import_job_instance_init (SpitDataImportsDataImportJob * self)
-{
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv = SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_PRIVATE (self);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->associated = NULL;
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->detected_htags = NULL;
-#line 1751 "DataImportJob.c"
-}
-
-
-static void
-spit_data_imports_data_import_job_finalize (BatchImportJob * obj)
-{
- SpitDataImportsDataImportJob * self;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 13 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _spit_data_imports_data_import_source_unref0 (self->priv->import_source);
-#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (self->priv->src_file);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _batch_import_job_unref0 (self->priv->associated);
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _hierarchical_tag_index_unref0 (self->priv->detected_htags);
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- BATCH_IMPORT_JOB_CLASS (spit_data_imports_data_import_job_parent_class)->finalize (obj);
-#line 1771 "DataImportJob.c"
-}
-
-
-/**
- * A specialized import job implementation for alien databases.
- */
-GType
-spit_data_imports_data_import_job_get_type (void)
-{
- static volatile gsize spit_data_imports_data_import_job_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_data_import_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_data_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsDataImportJob), 0, (GInstanceInitFunc) spit_data_imports_data_import_job_instance_init, NULL };
- GType spit_data_imports_data_import_job_type_id;
- spit_data_imports_data_import_job_type_id = g_type_register_static (TYPE_BATCH_IMPORT_JOB, "SpitDataImportsDataImportJob", &g_define_type_info, 0);
- g_once_init_leave (&spit_data_imports_data_import_job_type_id__volatile, spit_data_imports_data_import_job_type_id);
- }
- return spit_data_imports_data_import_job_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/data_imports/DataImportSource.c b/src/data_imports/DataImportSource.c
deleted file mode 100644
index b4786b1..0000000
--- a/src/data_imports/DataImportSource.c
+++ /dev/null
@@ -1,1327 +0,0 @@
-/* DataImportSource.c generated by valac 0.40.4, the Vala compiler
- * generated from DataImportSource.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <gio/gio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ())
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
-
-typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource;
-typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass;
-typedef struct _SpitDataImportsDataImportSourcePrivate SpitDataImportsDataImportSourcePrivate;
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-typedef struct _SpitDataImportsParamSpecDataImportSource SpitDataImportsParamSpecDataImportSource;
-
-struct _SpitDataImportsDataImportSource {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SpitDataImportsDataImportSourcePrivate * priv;
-};
-
-struct _SpitDataImportsDataImportSourceClass {
- GTypeClass parent_class;
- void (*finalize) (SpitDataImportsDataImportSource *self);
-};
-
-struct _SpitDataImportsDataImportSourcePrivate {
- gboolean backing_file_found;
- SpitDataImportsImportableMediaItem* db_photo;
- gchar* title;
- gchar* preview_md5;
- guint64 file_size;
- time_t modification_time;
- MetadataDateTime* exposure_time;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _SpitDataImportsParamSpecDataImportSource {
- GParamSpec parent_instance;
-};
-
-
-static gpointer spit_data_imports_data_import_source_parent_class = NULL;
-
-gpointer spit_data_imports_data_import_source_ref (gpointer instance);
-void spit_data_imports_data_import_source_unref (gpointer instance);
-GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void spit_data_imports_value_set_data_import_source (GValue* value,
- gpointer v_object);
-void spit_data_imports_value_take_data_import_source (GValue* value,
- gpointer v_object);
-gpointer spit_data_imports_value_get_data_import_source (const GValue* value);
-GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST;
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourcePrivate))
-SpitDataImportsDataImportSource* spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo);
-SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct (GType object_type,
- SpitDataImportsImportableMediaItem* db_photo);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-void media_metadata_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error);
-gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self);
-gchar* media_metadata_get_title (MediaMetadata* self);
-MetadataDateTime* metadata_date_time_new (time_t timestamp);
-MetadataDateTime* metadata_date_time_construct (GType object_type,
- time_t timestamp);
-MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
-gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self);
-guint64 query_total_file_size (GFile* file_or_dir,
- GCancellable* cancellable,
- GError** error);
-time_t query_file_modified (GFile* file,
- GError** error);
-gchar* spit_data_imports_data_import_source_get_fulldir (SpitDataImportsDataImportSource* self);
-GFile* spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self);
-gchar* spit_data_imports_data_import_source_get_name (SpitDataImportsDataImportSource* self);
-gboolean is_string_empty (const gchar* s);
-gchar* spit_data_imports_data_import_source_get_title (SpitDataImportsDataImportSource* self);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat spit_data_imports_data_import_source_get_file_format (SpitDataImportsDataImportSource* self);
-PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename);
-gchar* spit_data_imports_data_import_source_to_string (SpitDataImportsDataImportSource* self);
-time_t spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self);
-time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
-guint64 spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self);
-SpitDataImportsImportableMediaItem* spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self);
-gboolean spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self);
-gboolean library_photo_has_nontrash_duplicate (GFile* file,
- const gchar* thumbnail_md5,
- const gchar* full_md5,
- PhotoFileFormat file_format);
-gboolean spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self);
-static void spit_data_imports_data_import_source_finalize (SpitDataImportsDataImportSource * obj);
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return self ? g_object_ref (self) : NULL;
-#line 196 "DataImportSource.c"
-}
-
-
-static gpointer
-_metadata_date_time_ref0 (gpointer self)
-{
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return self ? metadata_date_time_ref (self) : NULL;
-#line 205 "DataImportSource.c"
-}
-
-
-SpitDataImportsDataImportSource*
-spit_data_imports_data_import_source_construct (GType object_type,
- SpitDataImportsImportableMediaItem* db_photo)
-{
- SpitDataImportsDataImportSource* self = NULL;
- SpitDataImportsImportableMediaItem* _tmp0_;
- gchar* folder_path = NULL;
- gchar* _tmp1_;
- gchar* filename = NULL;
- gchar* _tmp2_;
- GFile* photo = NULL;
- gboolean _tmp3_ = FALSE;
- const gchar* _tmp4_;
- gboolean _tmp14_ = FALSE;
- GFile* _tmp15_;
- GError * _inner_error_ = NULL;
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (db_photo), NULL);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self = (SpitDataImportsDataImportSource*) g_type_create_instance (object_type);
-#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = _g_object_ref0 (db_photo);
-#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (self->priv->db_photo);
-#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->db_photo = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = spit_data_imports_importable_media_item_get_folder_path (db_photo);
-#line 31 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- folder_path = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp2_ = spit_data_imports_importable_media_item_get_filename (db_photo);
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- filename = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- photo = NULL;
-#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp4_ = folder_path;
-#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp4_ != NULL) {
-#line 249 "DataImportSource.c"
- const gchar* _tmp5_;
-#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp5_ = filename;
-#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp3_ = _tmp5_ != NULL;
-#line 255 "DataImportSource.c"
- } else {
-#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp3_ = FALSE;
-#line 259 "DataImportSource.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp3_) {
-#line 263 "DataImportSource.c"
- gchar* _tmp6_;
- gchar* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GFile* _tmp12_;
- GFile* _tmp13_;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp6_ = spit_data_imports_importable_media_item_get_folder_path (db_photo);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp7_ = _tmp6_;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp8_ = g_file_new_for_path (_tmp7_);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp9_ = _tmp8_;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp10_ = spit_data_imports_importable_media_item_get_filename (db_photo);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp11_ = _tmp10_;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp12_ = g_file_get_child (_tmp9_, _tmp11_);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (photo);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- photo = _tmp12_;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp11_);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (_tmp9_);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp7_);
-#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp13_ = photo;
-#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->backing_file_found = g_file_query_exists (_tmp13_, NULL);
-#line 300 "DataImportSource.c"
- } else {
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->backing_file_found = FALSE;
-#line 304 "DataImportSource.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp15_ = photo;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp15_ != NULL) {
-#line 310 "DataImportSource.c"
- gboolean _tmp16_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp16_ = self->priv->backing_file_found;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp14_ = _tmp16_;
-#line 316 "DataImportSource.c"
- } else {
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp14_ = FALSE;
-#line 320 "DataImportSource.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp14_) {
-#line 324 "DataImportSource.c"
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp17_;
- gchar* _tmp24_;
- const gchar* _tmp25_;
- time_t* date_time = NULL;
- time_t* _tmp31_;
- time_t* _tmp32_;
- PhotoMetadata* _tmp40_;
-#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp17_ = photo_metadata_new ();
-#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- metadata = _tmp17_;
-#line 337 "DataImportSource.c"
- {
- PhotoMetadata* _tmp18_;
- GFile* _tmp19_;
-#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp18_ = metadata;
-#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp19_ = photo;
-#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp19_, &_inner_error_);
-#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 349 "DataImportSource.c"
- goto __catch230_g_error;
- }
- }
- goto __finally230;
- __catch230_g_error:
- {
- GError* e = NULL;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GError* _tmp22_;
- const gchar* _tmp23_;
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- e = _inner_error_;
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _inner_error_ = NULL;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp20_ = spit_data_imports_data_import_source_get_filename (self);
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp21_ = _tmp20_;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp22_ = e;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp23_ = _tmp22_->message;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_warning ("DataImportSource.vala:48: Could not get file metadata for %s: %s", _tmp21_, _tmp23_);
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp21_);
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _media_metadata_unref0 (metadata);
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- metadata = NULL;
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_error_free0 (e);
-#line 383 "DataImportSource.c"
- }
- __finally230:
-#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"
- _media_metadata_unref0 (metadata);
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (photo);
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (filename);
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (folder_path);
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_clear_error (&_inner_error_);
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return NULL;
-#line 402 "DataImportSource.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp24_ = spit_data_imports_importable_media_item_get_title (db_photo);
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (self->priv->title);
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->title = _tmp24_;
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp25_ = self->priv->title;
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp25_ == NULL) {
-#line 414 "DataImportSource.c"
- gchar* _tmp26_ = NULL;
- PhotoMetadata* _tmp27_;
- gchar* _tmp30_;
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp27_ = metadata;
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp27_ != NULL) {
-#line 422 "DataImportSource.c"
- PhotoMetadata* _tmp28_;
- gchar* _tmp29_;
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp28_ = metadata;
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp29_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_MEDIA_METADATA, MediaMetadata));
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp26_);
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp26_ = _tmp29_;
-#line 433 "DataImportSource.c"
- } else {
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp26_);
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp26_ = NULL;
-#line 439 "DataImportSource.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp30_ = g_strdup (_tmp26_);
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (self->priv->title);
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->title = _tmp30_;
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp26_);
-#line 449 "DataImportSource.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp31_ = spit_data_imports_importable_media_item_get_exposure_time (db_photo);
-#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- date_time = _tmp31_;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp32_ = date_time;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp32_ != NULL) {
-#line 459 "DataImportSource.c"
- time_t* _tmp33_;
- MetadataDateTime* _tmp34_;
-#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp33_ = date_time;
-#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp34_ = metadata_date_time_new (*_tmp33_);
-#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _metadata_date_time_unref0 (self->priv->exposure_time);
-#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->exposure_time = _tmp34_;
-#line 470 "DataImportSource.c"
- } else {
- MetadataDateTime* _tmp35_ = NULL;
- PhotoMetadata* _tmp36_;
- MetadataDateTime* _tmp39_;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp36_ = metadata;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp36_ != NULL) {
-#line 479 "DataImportSource.c"
- PhotoMetadata* _tmp37_;
- MetadataDateTime* _tmp38_;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp37_ = metadata;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp38_ = photo_metadata_get_exposure_date_time (_tmp37_);
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _metadata_date_time_unref0 (_tmp35_);
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp35_ = _tmp38_;
-#line 490 "DataImportSource.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _metadata_date_time_unref0 (_tmp35_);
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp35_ = NULL;
-#line 496 "DataImportSource.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp39_ = _metadata_date_time_ref0 (_tmp35_);
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _metadata_date_time_unref0 (self->priv->exposure_time);
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->exposure_time = _tmp39_;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _metadata_date_time_unref0 (_tmp35_);
-#line 506 "DataImportSource.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp40_ = metadata;
-#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp40_ != NULL) {
-#line 512 "DataImportSource.c"
- PhotoMetadata* _tmp41_;
- gchar* _tmp42_;
-#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp41_ = metadata;
-#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp42_ = photo_metadata_thumbnail_hash (_tmp41_);
-#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (self->priv->preview_md5);
-#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->preview_md5 = _tmp42_;
-#line 523 "DataImportSource.c"
- }
- {
- guint64 _tmp43_ = 0ULL;
- GFile* _tmp44_;
-#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp44_ = photo;
-#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp43_ = query_total_file_size (_tmp44_, NULL, &_inner_error_);
-#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 534 "DataImportSource.c"
- goto __catch231_g_error;
- }
-#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->file_size = _tmp43_;
-#line 539 "DataImportSource.c"
- }
- goto __finally231;
- __catch231_g_error:
- {
- GError* e = NULL;
- gchar* _tmp45_;
- gchar* _tmp46_;
- GError* _tmp47_;
- const gchar* _tmp48_;
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- e = _inner_error_;
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _inner_error_ = NULL;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp45_ = spit_data_imports_data_import_source_get_filename (self);
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp46_ = _tmp45_;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp47_ = e;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp48_ = _tmp47_->message;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_warning ("DataImportSource.vala:73: Could not get file size for %s: %s", _tmp46_, _tmp48_);
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp46_);
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_error_free0 (e);
-#line 567 "DataImportSource.c"
- }
- __finally231:
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (date_time);
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _media_metadata_unref0 (metadata);
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (photo);
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (filename);
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (folder_path);
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_clear_error (&_inner_error_);
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return NULL;
-#line 588 "DataImportSource.c"
- }
- {
- time_t _tmp49_ = 0;
- GFile* _tmp50_;
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp50_ = photo;
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp49_ = query_file_modified (_tmp50_, &_inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 599 "DataImportSource.c"
- goto __catch232_g_error;
- }
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->modification_time = _tmp49_;
-#line 604 "DataImportSource.c"
- }
- goto __finally232;
- __catch232_g_error:
- {
- GError* e = NULL;
- gchar* _tmp51_;
- gchar* _tmp52_;
- GError* _tmp53_;
- const gchar* _tmp54_;
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- e = _inner_error_;
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _inner_error_ = NULL;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp51_ = spit_data_imports_data_import_source_get_filename (self);
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp52_ = _tmp51_;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp53_ = e;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp54_ = _tmp53_->message;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_warning ("DataImportSource.vala:78: Could not get modification time for %s: %s", _tmp52_, _tmp54_);
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp52_);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_error_free0 (e);
-#line 632 "DataImportSource.c"
- }
- __finally232:
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (date_time);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _media_metadata_unref0 (metadata);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (photo);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (filename);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (folder_path);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_clear_error (&_inner_error_);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return NULL;
-#line 653 "DataImportSource.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (date_time);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _media_metadata_unref0 (metadata);
-#line 659 "DataImportSource.c"
- } else {
- GFile* _tmp55_;
- gchar* _tmp56_;
- gchar* _tmp57_;
- gchar* _tmp58_;
- gchar* _tmp59_;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp55_ = photo;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp56_ = g_file_get_path (_tmp55_);
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp57_ = _tmp56_;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp58_ = g_strdup_printf ("Photo file %s not found", _tmp57_);
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp59_ = _tmp58_;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_debug ("DataImportSource.vala:81: %s", _tmp59_);
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp59_);
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp57_);
-#line 682 "DataImportSource.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (photo);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (filename);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (folder_path);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return self;
-#line 692 "DataImportSource.c"
-}
-
-
-SpitDataImportsDataImportSource*
-spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo)
-{
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return spit_data_imports_data_import_source_construct (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, db_photo);
-#line 701 "DataImportSource.c"
-}
-
-
-gchar*
-spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self)
-{
- gchar* result = NULL;
- SpitDataImportsImportableMediaItem* _tmp0_;
- gchar* _tmp1_;
-#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = self->priv->db_photo;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = spit_data_imports_importable_media_item_get_filename (_tmp0_);
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 721 "DataImportSource.c"
-}
-
-
-gchar*
-spit_data_imports_data_import_source_get_fulldir (SpitDataImportsDataImportSource* self)
-{
- gchar* result = NULL;
- SpitDataImportsImportableMediaItem* _tmp0_;
- gchar* _tmp1_;
-#line 89 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = self->priv->db_photo;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = spit_data_imports_importable_media_item_get_folder_path (_tmp0_);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 741 "DataImportSource.c"
-}
-
-
-GFile*
-spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self)
-{
- GFile* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
-#line 93 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = spit_data_imports_data_import_source_get_fulldir (self);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = _tmp0_;
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp2_ = g_file_new_for_path (_tmp1_);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp3_ = _tmp2_;
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp4_ = spit_data_imports_data_import_source_get_filename (self);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp5_ = _tmp4_;
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp6_ = g_file_get_child (_tmp3_, _tmp5_);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp7_ = _tmp6_;
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp5_);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (_tmp3_);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp1_);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp7_;
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 785 "DataImportSource.c"
-}
-
-
-gchar*
-spit_data_imports_data_import_source_get_name (SpitDataImportsDataImportSource* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- const gchar* _tmp1_;
-#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = self->priv->title;
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (!is_string_empty (_tmp1_)) {
-#line 801 "DataImportSource.c"
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp2_ = self->priv->title;
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp0_);
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = _tmp3_;
-#line 812 "DataImportSource.c"
- } else {
- gchar* _tmp4_;
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp4_ = spit_data_imports_data_import_source_get_filename (self);
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp0_);
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = _tmp4_;
-#line 821 "DataImportSource.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 827 "DataImportSource.c"
-}
-
-
-gchar*
-spit_data_imports_data_import_source_get_title (SpitDataImportsDataImportSource* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
-#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = self->priv->title;
-#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp1_;
-#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 847 "DataImportSource.c"
-}
-
-
-PhotoFileFormat
-spit_data_imports_data_import_source_get_file_format (SpitDataImportsDataImportSource* self)
-{
- PhotoFileFormat result = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
- PhotoFileFormat _tmp2_;
-#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0);
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = spit_data_imports_data_import_source_get_filename (self);
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp2_ = photo_file_format_get_by_basename_extension (_tmp1_);
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (_tmp1_);
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp2_;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 872 "DataImportSource.c"
-}
-
-
-gchar*
-spit_data_imports_data_import_source_to_string (SpitDataImportsDataImportSource* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = spit_data_imports_data_import_source_get_name (self);
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp0_;
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 889 "DataImportSource.c"
-}
-
-
-time_t
-spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self)
-{
- time_t result = 0;
- time_t _tmp0_ = 0;
- MetadataDateTime* _tmp1_;
-#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0);
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = self->priv->exposure_time;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp1_ != NULL) {
-#line 905 "DataImportSource.c"
- MetadataDateTime* _tmp2_;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp2_ = self->priv->exposure_time;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = metadata_date_time_get_timestamp (_tmp2_);
-#line 911 "DataImportSource.c"
- } else {
- time_t _tmp3_;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp3_ = self->priv->modification_time;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = _tmp3_;
-#line 918 "DataImportSource.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp0_;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 924 "DataImportSource.c"
-}
-
-
-guint64
-spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self)
-{
- guint64 result = 0ULL;
- guint64 _tmp0_;
-#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0ULL);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = self->priv->file_size;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp0_;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 941 "DataImportSource.c"
-}
-
-
-SpitDataImportsImportableMediaItem*
-spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self)
-{
- SpitDataImportsImportableMediaItem* result = NULL;
- SpitDataImportsImportableMediaItem* _tmp0_;
- SpitDataImportsImportableMediaItem* _tmp1_;
-#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = self->priv->db_photo;
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp1_;
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 961 "DataImportSource.c"
-}
-
-
-gboolean
-spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- const gchar* _tmp1_;
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), FALSE);
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp1_ = self->priv->preview_md5;
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (_tmp1_ != NULL) {
-#line 977 "DataImportSource.c"
- const gchar* _tmp2_;
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp2_ = self->priv->preview_md5;
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = library_photo_has_nontrash_duplicate (NULL, _tmp2_, NULL, spit_data_imports_data_import_source_get_file_format (self));
-#line 983 "DataImportSource.c"
- } else {
-#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = FALSE;
-#line 987 "DataImportSource.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp0_;
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 993 "DataImportSource.c"
-}
-
-
-gboolean
-spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), FALSE);
-#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _tmp0_ = self->priv->backing_file_found;
-#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- result = _tmp0_;
-#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return result;
-#line 1010 "DataImportSource.c"
-}
-
-
-static void
-spit_data_imports_value_data_import_source_init (GValue* value)
-{
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- value->data[0].v_pointer = NULL;
-#line 1019 "DataImportSource.c"
-}
-
-
-static void
-spit_data_imports_value_data_import_source_free_value (GValue* value)
-{
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (value->data[0].v_pointer) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- spit_data_imports_data_import_source_unref (value->data[0].v_pointer);
-#line 1030 "DataImportSource.c"
- }
-}
-
-
-static void
-spit_data_imports_value_data_import_source_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (src_value->data[0].v_pointer) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- dest_value->data[0].v_pointer = spit_data_imports_data_import_source_ref (src_value->data[0].v_pointer);
-#line 1043 "DataImportSource.c"
- } else {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1047 "DataImportSource.c"
- }
-}
-
-
-static gpointer
-spit_data_imports_value_data_import_source_peek_pointer (const GValue* value)
-{
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return value->data[0].v_pointer;
-#line 1057 "DataImportSource.c"
-}
-
-
-static gchar*
-spit_data_imports_value_data_import_source_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (collect_values[0].v_pointer) {
-#line 1069 "DataImportSource.c"
- SpitDataImportsDataImportSource * object;
- object = collect_values[0].v_pointer;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1076 "DataImportSource.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 1080 "DataImportSource.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- value->data[0].v_pointer = spit_data_imports_data_import_source_ref (object);
-#line 1084 "DataImportSource.c"
- } else {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- value->data[0].v_pointer = NULL;
-#line 1088 "DataImportSource.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return NULL;
-#line 1092 "DataImportSource.c"
-}
-
-
-static gchar*
-spit_data_imports_value_data_import_source_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SpitDataImportsDataImportSource ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (!object_p) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1108 "DataImportSource.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (!value->data[0].v_pointer) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- *object_p = NULL;
-#line 1114 "DataImportSource.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- *object_p = value->data[0].v_pointer;
-#line 1118 "DataImportSource.c"
- } else {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- *object_p = spit_data_imports_data_import_source_ref (value->data[0].v_pointer);
-#line 1122 "DataImportSource.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return NULL;
-#line 1126 "DataImportSource.c"
-}
-
-
-GParamSpec*
-spit_data_imports_param_spec_data_import_source (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- SpitDataImportsParamSpecDataImportSource* spec;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (g_type_is_a (object_type, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE), NULL);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return G_PARAM_SPEC (spec);
-#line 1146 "DataImportSource.c"
-}
-
-
-gpointer
-spit_data_imports_value_get_data_import_source (const GValue* value)
-{
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE), NULL);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return value->data[0].v_pointer;
-#line 1157 "DataImportSource.c"
-}
-
-
-void
-spit_data_imports_value_set_data_import_source (GValue* value,
- gpointer v_object)
-{
- SpitDataImportsDataImportSource * old;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE));
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- old = value->data[0].v_pointer;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (v_object) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE));
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- value->data[0].v_pointer = v_object;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- spit_data_imports_data_import_source_ref (value->data[0].v_pointer);
-#line 1180 "DataImportSource.c"
- } else {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- value->data[0].v_pointer = NULL;
-#line 1184 "DataImportSource.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (old) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- spit_data_imports_data_import_source_unref (old);
-#line 1190 "DataImportSource.c"
- }
-}
-
-
-void
-spit_data_imports_value_take_data_import_source (GValue* value,
- gpointer v_object)
-{
- SpitDataImportsDataImportSource * old;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE));
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- old = value->data[0].v_pointer;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (v_object) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE));
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- value->data[0].v_pointer = v_object;
-#line 1212 "DataImportSource.c"
- } else {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- value->data[0].v_pointer = NULL;
-#line 1216 "DataImportSource.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (old) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- spit_data_imports_data_import_source_unref (old);
-#line 1222 "DataImportSource.c"
- }
-}
-
-
-static void
-spit_data_imports_data_import_source_class_init (SpitDataImportsDataImportSourceClass * klass)
-{
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- spit_data_imports_data_import_source_parent_class = g_type_class_peek_parent (klass);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- ((SpitDataImportsDataImportSourceClass *) klass)->finalize = spit_data_imports_data_import_source_finalize;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_type_class_add_private (klass, sizeof (SpitDataImportsDataImportSourcePrivate));
-#line 1236 "DataImportSource.c"
-}
-
-
-static void
-spit_data_imports_data_import_source_instance_init (SpitDataImportsDataImportSource * self)
-{
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv = SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_PRIVATE (self);
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->title = NULL;
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->priv->preview_md5 = NULL;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self->ref_count = 1;
-#line 1251 "DataImportSource.c"
-}
-
-
-static void
-spit_data_imports_data_import_source_finalize (SpitDataImportsDataImportSource * obj)
-{
- SpitDataImportsDataImportSource * self;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_signal_handlers_destroy (self);
-#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_object_unref0 (self->priv->db_photo);
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (self->priv->title);
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _g_free0 (self->priv->preview_md5);
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- _metadata_date_time_unref0 (self->priv->exposure_time);
-#line 1271 "DataImportSource.c"
-}
-
-
-/**
- * Photo source implementation for alien databases. This class is responsible
- * for extracting meta-data out of a source photo to support the import
- * process.
- *
- * This class does not extend PhotoSource in order to minimise the API to the
- * absolute minimum required to run the import job.
- */
-GType
-spit_data_imports_data_import_source_get_type (void)
-{
- static volatile gsize spit_data_imports_data_import_source_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_data_import_source_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { spit_data_imports_value_data_import_source_init, spit_data_imports_value_data_import_source_free_value, spit_data_imports_value_data_import_source_copy_value, spit_data_imports_value_data_import_source_peek_pointer, "p", spit_data_imports_value_data_import_source_collect_value, "p", spit_data_imports_value_data_import_source_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_data_import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsDataImportSource), 0, (GInstanceInitFunc) spit_data_imports_data_import_source_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType spit_data_imports_data_import_source_type_id;
- spit_data_imports_data_import_source_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SpitDataImportsDataImportSource", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&spit_data_imports_data_import_source_type_id__volatile, spit_data_imports_data_import_source_type_id);
- }
- return spit_data_imports_data_import_source_type_id__volatile;
-}
-
-
-gpointer
-spit_data_imports_data_import_source_ref (gpointer instance)
-{
- SpitDataImportsDataImportSource * self;
- self = instance;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- return instance;
-#line 1308 "DataImportSource.c"
-}
-
-
-void
-spit_data_imports_data_import_source_unref (gpointer instance)
-{
- SpitDataImportsDataImportSource * self;
- self = instance;
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS (self)->finalize (self);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1323 "DataImportSource.c"
- }
-}
-
-
-
diff --git a/src/data_imports/DataImports.c b/src/data_imports/DataImports.c
deleted file mode 100644
index a1ebfb1..0000000
--- a/src/data_imports/DataImports.c
+++ /dev/null
@@ -1,143 +0,0 @@
-/* DataImports.c generated by valac 0.40.4, the Vala compiler
- * generated from DataImports.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* This file is the master unit file for the DataImports unit. It should be edited to include
- * whatever code is deemed necessary.
- *
- * The init() and terminate() methods are mandatory.
- *
- * If the unit needs to be configured prior to initialization, add the proper parameters to
- * the preconfigure() method, implement it, and ensure in init() that it's been called.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <glib/gi18n-lib.h>
-
-
-
-
-void data_imports_init (GError** error);
-static void _vala_array_add70 (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 "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);
-
-
-static void
-_vala_array_add70 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- if ((*length) == (*size)) {
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 62 "DataImports.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- (*array)[(*length)++] = value;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- (*array)[*length] = NULL;
-#line 68 "DataImports.c"
-}
-
-
-void
-data_imports_init (GError** error)
-{
- gchar** core_ids = NULL;
- gchar** _tmp0_;
- gint core_ids_length1;
- gint _core_ids_size_;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
-#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- core_ids = _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- core_ids_length1 = 0;
-#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- _core_ids_size_ = core_ids_length1;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- _tmp1_ = core_ids;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- _tmp1__length1 = core_ids_length1;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- _tmp2_ = g_strdup ("org.yorba.shotwell.dataimports.fspot");
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- _vala_array_add70 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp2_);
-#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- _tmp3_ = core_ids;
-#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- _tmp3__length1 = core_ids_length1;
-#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- plugins_register_extension_point (SPIT_DATA_IMPORTS_TYPE_SERVICE, _ ("Data Imports"), RESOURCES_IMPORT, _tmp3_, _tmp3__length1);
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
- core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL);
-#line 108 "DataImports.c"
-}
-
-
-void
-data_imports_terminate (void)
-{
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/data_imports/DataImportsPluginHost.c b/src/data_imports/DataImportsPluginHost.c
deleted file mode 100644
index 8b74806..0000000
--- a/src/data_imports/DataImportsPluginHost.c
+++ /dev/null
@@ -1,3658 +0,0 @@
-/* DataImportsPluginHost.c generated by valac 0.40.4, the Vala compiler
- * generated from DataImportsPluginHost.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <float.h>
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-#include <gtk/gtk.h>
-#include <time.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER (spit_data_imports_core_importer_get_type ())
-#define SPIT_DATA_IMPORTS_CORE_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporter))
-#define SPIT_DATA_IMPORTS_CORE_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterClass))
-#define SPIT_DATA_IMPORTS_IS_CORE_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER))
-#define SPIT_DATA_IMPORTS_IS_CORE_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER))
-#define SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterClass))
-
-typedef struct _SpitDataImportsCoreImporter SpitDataImportsCoreImporter;
-typedef struct _SpitDataImportsCoreImporterClass SpitDataImportsCoreImporterClass;
-typedef struct _SpitDataImportsCoreImporterPrivate SpitDataImportsCoreImporterPrivate;
-
-#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-typedef struct _BatchImportRollClass BatchImportRollClass;
-#define _batch_import_roll_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_roll_unref (var), NULL)))
-
-#define TYPE_SORTED_LIST (sorted_list_get_type ())
-#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
-#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
-#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
-#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
-#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
-
-typedef struct _SortedList SortedList;
-typedef struct _SortedListClass SortedListClass;
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-
-#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB (spit_data_imports_data_import_job_get_type ())
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
-
-typedef struct _SpitDataImportsDataImportJob SpitDataImportsDataImportJob;
-typedef struct _SpitDataImportsDataImportJobClass SpitDataImportsDataImportJobClass;
-
-#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ())
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
-
-typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource;
-typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
-#define _spit_data_imports_data_import_source_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_data_import_source_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_BATCH_IMPORT (batch_import_get_type ())
-#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
-#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
-#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
-#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
-#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
-
-typedef struct _BatchImport BatchImport;
-typedef struct _BatchImportClass BatchImportClass;
-
-#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ())
-#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
-#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
-#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
-#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-
-typedef struct _ImportManifest ImportManifest;
-typedef struct _ImportManifestClass ImportManifestClass;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-typedef struct _SpitDataImportsParamSpecCoreImporter SpitDataImportsParamSpecCoreImporter;
-
-#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ())
-#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface))
-#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-
-typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface;
-typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass;
-typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate;
-
-#define SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST (spit_data_imports_concrete_data_imports_host_get_type ())
-#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost))
-#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass))
-#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST))
-#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST))
-#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass))
-
-typedef struct _SpitDataImportsConcreteDataImportsHost SpitDataImportsConcreteDataImportsHost;
-typedef struct _SpitDataImportsConcreteDataImportsHostClass SpitDataImportsConcreteDataImportsHostClass;
-typedef struct _SpitDataImportsConcreteDataImportsHostPrivate SpitDataImportsConcreteDataImportsHostPrivate;
-
-#define DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG (data_imports_ui_data_imports_dialog_get_type ())
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog))
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
-#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
-#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
-
-typedef struct _DataImportsUIDataImportsDialog DataImportsUIDataImportsDialog;
-typedef struct _DataImportsUIDataImportsDialogClass DataImportsUIDataImportsDialogClass;
-
-#define DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE (data_imports_ui_concrete_dialog_pane_get_type ())
-#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane))
-#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass))
-#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE))
-#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE))
-#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass))
-
-typedef struct _DataImportsUIConcreteDialogPane DataImportsUIConcreteDialogPane;
-typedef struct _DataImportsUIConcreteDialogPaneClass DataImportsUIConcreteDialogPaneClass;
-
-#define DATA_IMPORTS_UI_TYPE_PROGRESS_PANE (data_imports_ui_progress_pane_get_type ())
-#define DATA_IMPORTS_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane))
-#define DATA_IMPORTS_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass))
-#define DATA_IMPORTS_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE))
-#define DATA_IMPORTS_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE))
-#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass))
-
-typedef struct _DataImportsUIProgressPane DataImportsUIProgressPane;
-typedef struct _DataImportsUIProgressPaneClass DataImportsUIProgressPaneClass;
-enum {
- SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_0_PROPERTY,
- SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_NUM_PROPERTIES
-};
-static GParamSpec* spit_data_imports_concrete_data_imports_host_properties[SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_NUM_PROPERTIES];
-#define _spit_data_imports_core_importer_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_core_importer_unref (var), NULL)))
-
-#define DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE (data_imports_ui_static_message_pane_get_type ())
-#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePane))
-#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass))
-#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE))
-#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE))
-#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass))
-
-typedef struct _DataImportsUIStaticMessagePane DataImportsUIStaticMessagePane;
-typedef struct _DataImportsUIStaticMessagePaneClass DataImportsUIStaticMessagePaneClass;
-
-#define DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE (data_imports_ui_library_selection_pane_get_type ())
-#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane))
-#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass))
-#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE))
-#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE))
-#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass))
-
-typedef struct _DataImportsUILibrarySelectionPane DataImportsUILibrarySelectionPane;
-typedef struct _DataImportsUILibrarySelectionPaneClass DataImportsUILibrarySelectionPaneClass;
-
-#define SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST (spit_data_imports_welcome_data_imports_host_get_type ())
-#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost))
-#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostClass))
-#define SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST))
-#define SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST))
-#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostClass))
-
-typedef struct _SpitDataImportsWelcomeDataImportsHost SpitDataImportsWelcomeDataImportsHost;
-typedef struct _SpitDataImportsWelcomeDataImportsHostClass SpitDataImportsWelcomeDataImportsHostClass;
-typedef struct _SpitDataImportsWelcomeDataImportsHostPrivate SpitDataImportsWelcomeDataImportsHostPrivate;
-
-#define SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST (spit_data_imports_welcome_import_meta_host_get_type ())
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHost))
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass))
-#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST))
-#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST))
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass))
-
-typedef struct _SpitDataImportsWelcomeImportMetaHost SpitDataImportsWelcomeImportMetaHost;
-typedef struct _SpitDataImportsWelcomeImportMetaHostClass SpitDataImportsWelcomeImportMetaHostClass;
-enum {
- SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_0_PROPERTY,
- SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_NUM_PROPERTIES
-};
-static GParamSpec* spit_data_imports_welcome_data_imports_host_properties[SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_NUM_PROPERTIES];
-
-#define TYPE_WELCOME_SERVICE_ENTRY (welcome_service_entry_get_type ())
-#define WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry))
-#define IS_WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_SERVICE_ENTRY))
-#define WELCOME_SERVICE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntryIface))
-
-typedef struct _WelcomeServiceEntry WelcomeServiceEntry;
-typedef struct _WelcomeServiceEntryIface WelcomeServiceEntryIface;
-
-#define SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY (spit_data_imports_welcome_import_service_entry_get_type ())
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry))
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryClass))
-#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY))
-#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_SERVICE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY))
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryClass))
-
-typedef struct _SpitDataImportsWelcomeImportServiceEntry SpitDataImportsWelcomeImportServiceEntry;
-typedef struct _SpitDataImportsWelcomeImportServiceEntryClass SpitDataImportsWelcomeImportServiceEntryClass;
-typedef struct _SpitDataImportsWelcomeImportServiceEntryPrivate SpitDataImportsWelcomeImportServiceEntryPrivate;
-enum {
- SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_0_PROPERTY,
- SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* spit_data_imports_welcome_import_service_entry_properties[SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_NUM_PROPERTIES];
-typedef struct _SpitDataImportsWelcomeImportMetaHostPrivate SpitDataImportsWelcomeImportMetaHostPrivate;
-
-#define TYPE_WELCOME_DIALOG (welcome_dialog_get_type ())
-#define WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_DIALOG, WelcomeDialog))
-#define WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WELCOME_DIALOG, WelcomeDialogClass))
-#define IS_WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_DIALOG))
-#define IS_WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WELCOME_DIALOG))
-#define WELCOME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WELCOME_DIALOG, WelcomeDialogClass))
-
-typedef struct _WelcomeDialog WelcomeDialog;
-typedef struct _WelcomeDialogClass WelcomeDialogClass;
-enum {
- SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_0_PROPERTY,
- SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_NUM_PROPERTIES
-};
-static GParamSpec* spit_data_imports_welcome_import_meta_host_properties[SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_NUM_PROPERTIES];
-typedef struct _ImportManifestPrivate ImportManifestPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_BATCH_IMPORT_RESULT (batch_import_result_get_type ())
-#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult))
-#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT))
-#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT))
-#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-
-typedef struct _BatchImportResult BatchImportResult;
-typedef struct _BatchImportResultClass BatchImportResultClass;
-#define _import_manifest_unref0(var) ((var == NULL) ? NULL : (var = (import_manifest_unref (var), NULL)))
-#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL)))
-
-#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ())
-#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams))
-#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-
-typedef struct _ImportUIQuestionParams ImportUIQuestionParams;
-typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass;
-
-struct _SpitDataImportsCoreImporter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SpitDataImportsCoreImporterPrivate * priv;
- gint imported_items_count;
- BatchImportRoll* current_import_roll;
-};
-
-struct _SpitDataImportsCoreImporterClass {
- GTypeClass parent_class;
- void (*finalize) (SpitDataImportsCoreImporter *self);
-};
-
-struct _SpitDataImportsCoreImporterPrivate {
- SpitDataImportsPluginHost* host;
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data);
-struct _SpitDataImportsParamSpecCoreImporter {
- GParamSpec parent_instance;
-};
-
-struct _PluginsStandardHostInterface {
- GObject parent_instance;
- PluginsStandardHostInterfacePrivate * priv;
-};
-
-struct _PluginsStandardHostInterfaceClass {
- GObjectClass parent_class;
-};
-
-struct _SpitDataImportsConcreteDataImportsHost {
- PluginsStandardHostInterface parent_instance;
- SpitDataImportsConcreteDataImportsHostPrivate * priv;
-};
-
-struct _SpitDataImportsConcreteDataImportsHostClass {
- PluginsStandardHostInterfaceClass parent_class;
-};
-
-struct _SpitDataImportsConcreteDataImportsHostPrivate {
- SpitDataImportsDataImporter* active_importer;
- DataImportsUIDataImportsDialog* dialog;
- DataImportsUIProgressPane* progress_pane;
- gboolean importing_halted;
- SpitDataImportsCoreImporter* core_importer;
-};
-
-struct _SpitDataImportsWelcomeDataImportsHost {
- PluginsStandardHostInterface parent_instance;
- SpitDataImportsWelcomeDataImportsHostPrivate * priv;
-};
-
-struct _SpitDataImportsWelcomeDataImportsHostClass {
- PluginsStandardHostInterfaceClass parent_class;
-};
-
-struct _SpitDataImportsWelcomeDataImportsHostPrivate {
- SpitDataImportsWelcomeImportMetaHost* meta_host;
- SpitDataImportsDataImporter* active_importer;
- gboolean importing_halted;
- SpitDataImportsCoreImporter* core_importer;
-};
-
-struct _WelcomeServiceEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_service_name) (WelcomeServiceEntry* self);
- void (*execute) (WelcomeServiceEntry* self);
-};
-
-struct _SpitDataImportsWelcomeImportServiceEntry {
- GObject parent_instance;
- SpitDataImportsWelcomeImportServiceEntryPrivate * priv;
-};
-
-struct _SpitDataImportsWelcomeImportServiceEntryClass {
- GObjectClass parent_class;
-};
-
-struct _SpitDataImportsWelcomeImportServiceEntryPrivate {
- gchar* pluggable_name;
- SpitDataImportsImportableLibrary** discovered_libraries;
- gint discovered_libraries_length1;
- gint _discovered_libraries_size_;
- SpitDataImportsPluginHost* host;
-};
-
-struct _SpitDataImportsWelcomeImportMetaHost {
- GObject parent_instance;
- SpitDataImportsWelcomeImportMetaHostPrivate * priv;
-};
-
-struct _SpitDataImportsWelcomeImportMetaHostClass {
- GObjectClass parent_class;
-};
-
-struct _SpitDataImportsWelcomeImportMetaHostPrivate {
- WelcomeDialog* dialog;
-};
-
-struct _ImportManifest {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ImportManifestPrivate * priv;
- GeeList* imported;
- GeeList* success;
- GeeList* camera_failed;
- GeeList* failed;
- GeeList* write_failed;
- GeeList* skipped_photos;
- GeeList* skipped_files;
- GeeList* aborted;
- GeeList* already_imported;
- GeeList* corrupt_files;
- GeeList* all;
- GTimer* timer;
-};
-
-struct _ImportManifestClass {
- GTypeClass parent_class;
- void (*finalize) (ImportManifest *self);
-};
-
-
-static gpointer spit_data_imports_core_importer_parent_class = NULL;
-static gpointer spit_data_imports_concrete_data_imports_host_parent_class = NULL;
-static SpitDataImportsPluginHostIface * spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_parent_iface = NULL;
-static gpointer spit_data_imports_welcome_data_imports_host_parent_class = NULL;
-static SpitDataImportsPluginHostIface * spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_parent_iface = NULL;
-static gpointer spit_data_imports_welcome_import_service_entry_parent_class = NULL;
-static WelcomeServiceEntryIface * spit_data_imports_welcome_import_service_entry_welcome_service_entry_parent_iface = NULL;
-static gpointer spit_data_imports_welcome_import_meta_host_parent_class = NULL;
-extern ImportManifest* spit_data_imports_meta_manifest;
-ImportManifest* spit_data_imports_meta_manifest = NULL;
-
-gpointer spit_data_imports_core_importer_ref (gpointer instance);
-void spit_data_imports_core_importer_unref (gpointer instance);
-GParamSpec* spit_data_imports_param_spec_core_importer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void spit_data_imports_value_set_core_importer (GValue* value,
- gpointer v_object);
-void spit_data_imports_value_take_core_importer (GValue* value,
- gpointer v_object);
-gpointer spit_data_imports_value_get_core_importer (const GValue* value);
-GType spit_data_imports_core_importer_get_type (void) G_GNUC_CONST;
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-#define SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterPrivate))
-SpitDataImportsCoreImporter* spit_data_imports_core_importer_new (SpitDataImportsPluginHost* host);
-SpitDataImportsCoreImporter* spit_data_imports_core_importer_construct (GType object_type,
- SpitDataImportsPluginHost* host);
-void spit_data_imports_core_importer_prepare_media_items_for_import (SpitDataImportsCoreImporter* self,
- SpitDataImportsImportableMediaItem** items,
- int items_length1,
- gdouble progress,
- gdouble host_progress_delta,
- const gchar* progress_message);
-GType sorted_list_get_type (void) G_GNUC_CONST;
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_data_import_job_get_type (void) G_GNUC_CONST;
-gint64 spit_data_imports_import_job_comparator (void* a,
- void* b);
-static gint64 _spit_data_imports_import_job_comparator_comparator (void* a,
- void* b,
- gpointer self);
-SortedList* sorted_list_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-SortedList* sorted_list_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-gpointer spit_data_imports_data_import_source_ref (gpointer instance);
-void spit_data_imports_data_import_source_unref (gpointer instance);
-GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void spit_data_imports_value_set_data_import_source (GValue* value,
- gpointer v_object);
-void spit_data_imports_value_take_data_import_source (GValue* value,
- gpointer v_object);
-gpointer spit_data_imports_value_get_data_import_source (const GValue* value);
-GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST;
-SpitDataImportsDataImportSource* spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo);
-SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct (GType object_type,
- SpitDataImportsImportableMediaItem* db_photo);
-gboolean spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self);
-gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self);
-SpitDataImportsDataImportJob* spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source);
-SpitDataImportsDataImportJob* spit_data_imports_data_import_job_construct (GType object_type,
- SpitDataImportsDataImportSource* import_source);
-gboolean spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self);
-BatchImportRoll* batch_import_roll_new (void);
-BatchImportRoll* batch_import_roll_construct (GType object_type);
-GType batch_import_get_type (void) G_GNUC_CONST;
-gpointer import_manifest_ref (gpointer instance);
-void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_import_manifest (GValue* value,
- gpointer v_object);
-void value_take_import_manifest (GValue* value,
- gpointer v_object);
-gpointer value_get_import_manifest (const GValue* value);
-GType import_manifest_get_type (void) G_GNUC_CONST;
-void spit_data_imports_data_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll);
-static void _spit_data_imports_data_import_reporter_batch_import_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self);
-BatchImport* batch_import_new (GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-BatchImport* batch_import_construct (GType object_type,
- GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-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;
-LibraryWindow* library_window_get_app (void);
-void library_window_enqueue_batch_import (LibraryWindow* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel);
-void spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporter* self);
-static void spit_data_imports_core_importer_finalize (SpitDataImportsCoreImporter * obj);
-GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_concrete_data_imports_host_get_type (void) G_GNUC_CONST;
-GType data_imports_ui_data_imports_dialog_get_type (void) G_GNUC_CONST;
-GType data_imports_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST;
-GType data_imports_ui_progress_pane_get_type (void) G_GNUC_CONST;
-#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostPrivate))
-SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service,
- DataImportsUIDataImportsDialog* dialog);
-SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_construct (GType object_type,
- SpitDataImportsService* service,
- DataImportsUIDataImportsDialog* dialog);
-PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable,
- const gchar* config_domain);
-PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type,
- SpitPluggable* pluggable,
- const gchar* config_domain);
-static SpitDataImportsDataImporter* spit_data_imports_concrete_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base);
-static void spit_data_imports_concrete_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base);
-static void spit_data_imports_concrete_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base);
-static void spit_data_imports_concrete_data_imports_host_clean_up (SpitDataImportsConcreteDataImportsHost* self);
-void spit_data_imports_concrete_data_imports_host_set_button_mode (SpitDataImportsConcreteDataImportsHost* self,
- SpitDataImportsPluginHostButtonMode mode);
-void data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self);
-void data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self);
-static void spit_data_imports_concrete_data_imports_host_real_post_error (SpitDataImportsPluginHost* base,
- GError* err);
-static void spit_data_imports_concrete_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base,
- const gchar* message);
-void data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self,
- SpitDataImportsDialogPane* pane);
-DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new_with_pango (const gchar* msg);
-DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct_with_pango (GType object_type,
- const gchar* msg);
-GType data_imports_ui_static_message_pane_get_type (void) G_GNUC_CONST;
-void data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self);
-static void spit_data_imports_concrete_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base,
- SpitDataImportsDialogPane* pane,
- SpitDataImportsPluginHostButtonMode button_mode);
-static void spit_data_imports_concrete_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base,
- const gchar* message,
- SpitDataImportsPluginHostButtonMode button_mode);
-static void spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label);
-DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label);
-DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_construct (GType object_type,
- SpitDataImportsPluginHost* host,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label);
-GType data_imports_ui_library_selection_pane_get_type (void) G_GNUC_CONST;
-static void spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base,
- const gchar* message);
-DataImportsUIProgressPane* data_imports_ui_progress_pane_new (const gchar* message);
-DataImportsUIProgressPane* data_imports_ui_progress_pane_construct (GType object_type,
- const gchar* message);
-static void spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base,
- gdouble progress,
- const gchar* progress_message);
-void data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self,
- gdouble progress,
- const gchar* progress_message);
-static void spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base,
- SpitDataImportsImportableMediaItem** items,
- int items_length1,
- gdouble progress,
- gdouble host_progress_delta,
- const gchar* progress_message);
-static void spit_data_imports_concrete_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base,
- SpitDataImportsImportedItemsCountCallback report_imported_items_count,
- void* report_imported_items_count_target,
- const gchar* finalize_message);
-void library_window_switch_to_import_queue_page (LibraryWindow* self);
-static void spit_data_imports_concrete_data_imports_host_finalize (GObject * obj);
-GType spit_data_imports_welcome_data_imports_host_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_welcome_import_meta_host_get_type (void) G_GNUC_CONST;
-#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostPrivate))
-SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_new (SpitDataImportsService* service,
- SpitDataImportsWelcomeImportMetaHost* meta_host);
-SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_construct (GType object_type,
- SpitDataImportsService* service,
- SpitDataImportsWelcomeImportMetaHost* meta_host);
-static SpitDataImportsDataImporter* spit_data_imports_welcome_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base);
-static void spit_data_imports_welcome_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base);
-static void spit_data_imports_welcome_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base);
-static void spit_data_imports_welcome_data_imports_host_clean_up (SpitDataImportsWelcomeDataImportsHost* self);
-static void spit_data_imports_welcome_data_imports_host_real_post_error (SpitDataImportsPluginHost* base,
- GError* err);
-static void spit_data_imports_welcome_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base,
- const gchar* message);
-static void spit_data_imports_welcome_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base,
- SpitDataImportsDialogPane* pane,
- SpitDataImportsPluginHostButtonMode button_mode);
-static void spit_data_imports_welcome_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base,
- const gchar* message,
- SpitDataImportsPluginHostButtonMode button_mode);
-static void spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label);
-GType welcome_service_entry_get_type (void) G_GNUC_CONST;
-void spit_data_imports_welcome_import_meta_host_install_service_entry (SpitDataImportsWelcomeImportMetaHost* self,
- WelcomeServiceEntry* entry);
-SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_service_entry_new (SpitDataImportsPluginHost* host,
- const gchar* pluggable_name,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1);
-SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_service_entry_construct (GType object_type,
- SpitDataImportsPluginHost* host,
- const gchar* pluggable_name,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1);
-GType spit_data_imports_welcome_import_service_entry_get_type (void) G_GNUC_CONST;
-static void spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base,
- const gchar* message);
-static void spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base,
- gdouble progress,
- const gchar* progress_message);
-static void spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base,
- SpitDataImportsImportableMediaItem** items,
- int items_length1,
- gdouble progress,
- gdouble host_progress_delta,
- const gchar* progress_message);
-static void spit_data_imports_welcome_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base,
- SpitDataImportsImportedItemsCountCallback report_imported_items_count,
- void* report_imported_items_count_target,
- const gchar* finalize_message);
-void spit_data_imports_welcome_import_meta_host_finalize_import (SpitDataImportsWelcomeImportMetaHost* self,
- SpitDataImportsWelcomeDataImportsHost* host);
-static void spit_data_imports_welcome_data_imports_host_finalize (GObject * obj);
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryPrivate))
-static SpitDataImportsImportableLibrary** _vala_array_dup21 (SpitDataImportsImportableLibrary** self,
- int length);
-static gchar* spit_data_imports_welcome_import_service_entry_real_get_service_name (WelcomeServiceEntry* base);
-static void spit_data_imports_welcome_import_service_entry_real_execute (WelcomeServiceEntry* base);
-static void spit_data_imports_welcome_import_service_entry_finalize (GObject * obj);
-GType welcome_dialog_get_type (void) G_GNUC_CONST;
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostPrivate))
-SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog);
-SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_construct (GType object_type,
- WelcomeDialog* dialog);
-void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self);
-SpitDataImportsService** spit_data_imports_load_all_services (int* result_length1);
-gchar* welcome_service_entry_get_service_name (WelcomeServiceEntry* self);
-void welcome_dialog_install_service_entry (WelcomeDialog* self,
- WelcomeServiceEntry* entry);
-static void spit_data_imports_welcome_import_meta_host_finalize (GObject * obj);
-SpitDataImportsService** spit_data_imports_load_services (gboolean load_all,
- int* result_length1);
-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_add71 (SpitDataImportsService** * array,
- int* length,
- int* size,
- SpitDataImportsService* value);
-static gint __lambda25_ (void* a,
- void* b);
-gint utf8_cs_compare (void* a,
- void* b);
-static gint ___lambda25____compar_fn_t (void* key1,
- void* key2);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-gpointer batch_import_result_ref (gpointer instance);
-void batch_import_result_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_result (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_result (GValue* value,
- gpointer v_object);
-void value_take_batch_import_result (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_result (const GValue* value);
-GType batch_import_result_get_type (void) G_GNUC_CONST;
-ImportManifest* import_manifest_new (GeeList* prefailed,
- GeeList* pre_already_imported);
-ImportManifest* import_manifest_construct (GType object_type,
- GeeList* prefailed,
- GeeList* pre_already_imported);
-void import_manifest_add_result (ImportManifest* self,
- BatchImportResult* batch_result);
-void data_imports_ui_data_imports_dialog_terminate_instance (void);
-gpointer import_ui_question_params_ref (gpointer instance);
-void import_ui_question_params_unref (gpointer instance);
-GParamSpec* import_ui_param_spec_question_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void import_ui_value_set_question_params (GValue* value,
- gpointer v_object);
-void import_ui_value_take_question_params (GValue* value,
- gpointer v_object);
-gpointer import_ui_value_get_question_params (const GValue* value);
-GType import_ui_question_params_get_type (void) G_GNUC_CONST;
-gboolean import_ui_report_manifest (ImportManifest* manifest,
- gboolean show_dest_id,
- ImportUIQuestionParams* question);
-time_t spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self);
-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);
-
-
-SpitDataImportsCoreImporter*
-spit_data_imports_core_importer_construct (GType object_type,
- SpitDataImportsPluginHost* host)
-{
- SpitDataImportsCoreImporter* self = NULL;
-#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
-#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = (SpitDataImportsCoreImporter*) g_type_create_instance (object_type);
-#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->host = host;
-#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return self;
-#line 862 "DataImportsPluginHost.c"
-}
-
-
-SpitDataImportsCoreImporter*
-spit_data_imports_core_importer_new (SpitDataImportsPluginHost* host)
-{
-#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return spit_data_imports_core_importer_construct (SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, host);
-#line 871 "DataImportsPluginHost.c"
-}
-
-
-static gint64
-_spit_data_imports_import_job_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = spit_data_imports_import_job_comparator (a, b);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 884 "DataImportsPluginHost.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return self ? g_object_ref (self) : NULL;
-#line 893 "DataImportsPluginHost.c"
-}
-
-
-static void
-_spit_data_imports_data_import_reporter_batch_import_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self)
-{
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_import_reporter (manifest, import_roll);
-#line 904 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_core_importer_prepare_media_items_for_import (SpitDataImportsCoreImporter* self,
- SpitDataImportsImportableMediaItem** items,
- int items_length1,
- gdouble progress,
- gdouble host_progress_delta,
- const gchar* progress_message)
-{
- SpitDataImportsPluginHost* _tmp0_;
- SortedList* jobs = NULL;
- SortedList* _tmp1_;
- GeeArrayList* already_imported = NULL;
- GeeArrayList* _tmp2_;
- GeeArrayList* failed = NULL;
- GeeArrayList* _tmp3_;
- gint item_idx = 0;
- gdouble item_progress_delta = 0.0;
- SortedList* _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- SpitDataImportsPluginHost* _tmp57_;
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_CORE_IMPORTER (self));
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->host;
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_update_import_progress_pane (_tmp0_, progress, progress_message);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = sorted_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, _spit_data_imports_import_job_comparator_comparator, NULL);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- jobs = _tmp1_;
-#line 28 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = gee_array_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
-#line 28 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- already_imported = _tmp2_;
-#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = gee_array_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
-#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- failed = _tmp3_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- item_idx = 0;
-#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- item_progress_delta = host_progress_delta / items_length1;
-#line 951 "DataImportsPluginHost.c"
- {
- SpitDataImportsImportableMediaItem** src_item_collection = NULL;
- gint src_item_collection_length1 = 0;
- gint _src_item_collection_size_ = 0;
- gint src_item_it = 0;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- src_item_collection = items;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- src_item_collection_length1 = items_length1;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- for (src_item_it = 0; src_item_it < items_length1; src_item_it = src_item_it + 1) {
-#line 963 "DataImportsPluginHost.c"
- SpitDataImportsImportableMediaItem* _tmp4_;
- SpitDataImportsImportableMediaItem* src_item = NULL;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _g_object_ref0 (src_item_collection[src_item_it]);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- src_item = _tmp4_;
-#line 970 "DataImportsPluginHost.c"
- {
- SpitDataImportsDataImportSource* import_source = NULL;
- SpitDataImportsImportableMediaItem* _tmp5_;
- SpitDataImportsDataImportSource* _tmp6_;
- SpitDataImportsDataImportSource* _tmp7_;
- SpitDataImportsDataImportSource* _tmp15_;
- SortedList* _tmp23_;
- SpitDataImportsDataImportSource* _tmp24_;
- SpitDataImportsDataImportJob* _tmp25_;
- SpitDataImportsDataImportJob* _tmp26_;
- gint _tmp27_;
- SpitDataImportsPluginHost* _tmp28_;
- gint _tmp29_;
- gdouble _tmp30_;
-#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = src_item;
-#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = spit_data_imports_data_import_source_new (_tmp5_);
-#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- import_source = _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = import_source;
-#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (!spit_data_imports_data_import_source_was_backing_file_found (_tmp7_)) {
-#line 995 "DataImportsPluginHost.c"
- SpitDataImportsDataImportSource* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GeeArrayList* _tmp11_;
- SpitDataImportsDataImportSource* _tmp12_;
- SpitDataImportsDataImportJob* _tmp13_;
- SpitDataImportsDataImportJob* _tmp14_;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = import_source;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp9_ = spit_data_imports_data_import_source_get_filename (_tmp8_);
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = _tmp9_;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_message ("DataImportsPluginHost.vala:39: Skipping import of %s: backing file not" \
-" found", _tmp10_);
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp10_);
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = failed;
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = import_source;
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = spit_data_imports_data_import_job_new (_tmp12_);
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = _tmp13_;
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_job_unref0 (_tmp14_);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _spit_data_imports_data_import_source_unref0 (import_source);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (src_item);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- continue;
-#line 1031 "DataImportsPluginHost.c"
- }
-#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp15_ = import_source;
-#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (spit_data_imports_data_import_source_is_already_imported (_tmp15_)) {
-#line 1037 "DataImportsPluginHost.c"
- SpitDataImportsDataImportSource* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GeeArrayList* _tmp19_;
- SpitDataImportsDataImportSource* _tmp20_;
- SpitDataImportsDataImportJob* _tmp21_;
- SpitDataImportsDataImportJob* _tmp22_;
-#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = import_source;
-#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp17_ = spit_data_imports_data_import_source_get_filename (_tmp16_);
-#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp18_ = _tmp17_;
-#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_message ("DataImportsPluginHost.vala:47: Skipping import of %s: checksum detecte" \
-"d in library", _tmp18_);
-#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp18_);
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp19_ = already_imported;
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp20_ = import_source;
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp21_ = spit_data_imports_data_import_job_new (_tmp20_);
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp22_ = _tmp21_;
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp22_);
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_job_unref0 (_tmp22_);
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _spit_data_imports_data_import_source_unref0 (import_source);
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (src_item);
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- continue;
-#line 1073 "DataImportsPluginHost.c"
- }
-#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp23_ = jobs;
-#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp24_ = import_source;
-#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp25_ = spit_data_imports_data_import_job_new (_tmp24_);
-#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp26_ = _tmp25_;
-#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection), _tmp26_);
-#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_job_unref0 (_tmp26_);
-#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp27_ = item_idx;
-#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- item_idx = _tmp27_ + 1;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp28_ = self->priv->host;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp29_ = item_idx;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp30_ = item_progress_delta;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_update_import_progress_pane (_tmp28_, progress + (_tmp29_ * _tmp30_), NULL);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _spit_data_imports_data_import_source_unref0 (import_source);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (src_item);
-#line 1103 "DataImportsPluginHost.c"
- }
- }
- }
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp31_ = jobs;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp32_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp33_ = _tmp32_;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp33_ > 0) {
-#line 1115 "DataImportsPluginHost.c"
- BatchImportRoll* _tmp34_;
- gchar* db_name = NULL;
- SpitDataImportsPluginHost* _tmp36_;
- SpitDataImportsDataImporter* _tmp37_;
- SpitDataImportsDataImporter* _tmp38_;
- SpitDataImportsService* _tmp39_;
- SpitDataImportsService* _tmp40_;
- const gchar* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- BatchImport* batch_import = NULL;
- SortedList* _tmp44_;
- const gchar* _tmp45_;
- GeeArrayList* _tmp46_;
- GeeArrayList* _tmp47_;
- BatchImportRoll* _tmp48_;
- BatchImport* _tmp49_;
- LibraryWindow* _tmp50_;
- LibraryWindow* _tmp51_;
- BatchImport* _tmp52_;
- gint _tmp53_;
- SortedList* _tmp54_;
- gint _tmp55_;
- gint _tmp56_;
-#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp34_ = self->current_import_roll;
-#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp34_ == NULL) {
-#line 1144 "DataImportsPluginHost.c"
- BatchImportRoll* _tmp35_;
-#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp35_ = batch_import_roll_new ();
-#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_roll_unref0 (self->current_import_roll);
-#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->current_import_roll = _tmp35_;
-#line 1152 "DataImportsPluginHost.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp36_ = self->priv->host;
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp37_ = spit_data_imports_plugin_host_get_data_importer (_tmp36_);
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp38_ = _tmp37_;
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp39_ = spit_data_imports_data_importer_get_service (_tmp38_);
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp40_ = _tmp39_;
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp41_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp42_ = g_strdup_printf (_ ("%s Database"), _tmp41_);
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp43_ = _tmp42_;
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp40_);
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp38_);
-#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- db_name = _tmp43_;
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp44_ = jobs;
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp45_ = db_name;
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp46_ = failed;
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp47_ = already_imported;
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp48_ = self->current_import_roll;
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp49_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ITERABLE, GeeIterable), _tmp45_, _spit_data_imports_data_import_reporter_batch_import_import_reporter, NULL, _tmp46_, _tmp47_, NULL, _tmp48_, NULL);
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- batch_import = _tmp49_;
-#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp50_ = library_window_get_app ();
-#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp51_ = _tmp50_;
-#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp52_ = batch_import;
-#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- library_window_enqueue_batch_import (_tmp51_, _tmp52_, TRUE);
-#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp51_);
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp53_ = self->imported_items_count;
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp54_ = jobs;
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp55_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp56_ = _tmp55_;
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->imported_items_count = _tmp53_ + _tmp56_;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (batch_import);
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (db_name);
-#line 1214 "DataImportsPluginHost.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp57_ = self->priv->host;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_update_import_progress_pane (_tmp57_, progress + host_progress_delta, NULL);
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (failed);
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (already_imported);
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (jobs);
-#line 1226 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporter* self)
-{
- gchar* db_name = NULL;
- SpitDataImportsPluginHost* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
- SpitDataImportsDataImporter* _tmp2_;
- SpitDataImportsService* _tmp3_;
- SpitDataImportsService* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- BatchImport* batch_import = NULL;
- GeeArrayList* _tmp8_;
- GeeArrayList* _tmp9_;
- BatchImportRoll* _tmp10_;
- BatchImport* _tmp11_;
- BatchImport* _tmp12_;
- LibraryWindow* _tmp13_;
- LibraryWindow* _tmp14_;
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_CORE_IMPORTER (self));
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->host;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_data_imports_plugin_host_get_data_importer (_tmp0_);
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_data_imports_data_importer_get_service (_tmp2_);
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = g_strdup_printf (_ ("%s Database"), _tmp5_);
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = _tmp6_;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp4_);
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- db_name = _tmp7_;
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = gee_array_list_new (TYPE_BATCH_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp9_ = _tmp8_;
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = self->current_import_roll;
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable), db_name, _spit_data_imports_data_import_reporter_batch_import_import_reporter, NULL, NULL, NULL, NULL, _tmp10_, NULL);
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = _tmp11_;
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp9_);
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- batch_import = _tmp12_;
-#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = library_window_get_app ();
-#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = _tmp13_;
-#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- library_window_enqueue_batch_import (_tmp14_, batch_import, TRUE);
-#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp14_);
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_roll_unref0 (self->current_import_roll);
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->current_import_roll = NULL;
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (batch_import);
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (db_name);
-#line 1304 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_value_core_importer_init (GValue* value)
-{
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- value->data[0].v_pointer = NULL;
-#line 1313 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_value_core_importer_free_value (GValue* value)
-{
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (value->data[0].v_pointer) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_unref (value->data[0].v_pointer);
-#line 1324 "DataImportsPluginHost.c"
- }
-}
-
-
-static void
-spit_data_imports_value_core_importer_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (src_value->data[0].v_pointer) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- dest_value->data[0].v_pointer = spit_data_imports_core_importer_ref (src_value->data[0].v_pointer);
-#line 1337 "DataImportsPluginHost.c"
- } else {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1341 "DataImportsPluginHost.c"
- }
-}
-
-
-static gpointer
-spit_data_imports_value_core_importer_peek_pointer (const GValue* value)
-{
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return value->data[0].v_pointer;
-#line 1351 "DataImportsPluginHost.c"
-}
-
-
-static gchar*
-spit_data_imports_value_core_importer_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (collect_values[0].v_pointer) {
-#line 1363 "DataImportsPluginHost.c"
- SpitDataImportsCoreImporter * object;
- object = collect_values[0].v_pointer;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1370 "DataImportsPluginHost.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.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 1374 "DataImportsPluginHost.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- value->data[0].v_pointer = spit_data_imports_core_importer_ref (object);
-#line 1378 "DataImportsPluginHost.c"
- } else {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- value->data[0].v_pointer = NULL;
-#line 1382 "DataImportsPluginHost.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return NULL;
-#line 1386 "DataImportsPluginHost.c"
-}
-
-
-static gchar*
-spit_data_imports_value_core_importer_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SpitDataImportsCoreImporter ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (!object_p) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1402 "DataImportsPluginHost.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (!value->data[0].v_pointer) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- *object_p = NULL;
-#line 1408 "DataImportsPluginHost.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- *object_p = value->data[0].v_pointer;
-#line 1412 "DataImportsPluginHost.c"
- } else {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- *object_p = spit_data_imports_core_importer_ref (value->data[0].v_pointer);
-#line 1416 "DataImportsPluginHost.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return NULL;
-#line 1420 "DataImportsPluginHost.c"
-}
-
-
-GParamSpec*
-spit_data_imports_param_spec_core_importer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- SpitDataImportsParamSpecCoreImporter* spec;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (g_type_is_a (object_type, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER), NULL);
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return G_PARAM_SPEC (spec);
-#line 1440 "DataImportsPluginHost.c"
-}
-
-
-gpointer
-spit_data_imports_value_get_core_importer (const GValue* value)
-{
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER), NULL);
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return value->data[0].v_pointer;
-#line 1451 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_value_set_core_importer (GValue* value,
- gpointer v_object)
-{
- SpitDataImportsCoreImporter * old;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER));
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- old = value->data[0].v_pointer;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (v_object) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER));
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- value->data[0].v_pointer = v_object;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_ref (value->data[0].v_pointer);
-#line 1474 "DataImportsPluginHost.c"
- } else {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- value->data[0].v_pointer = NULL;
-#line 1478 "DataImportsPluginHost.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (old) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_unref (old);
-#line 1484 "DataImportsPluginHost.c"
- }
-}
-
-
-void
-spit_data_imports_value_take_core_importer (GValue* value,
- gpointer v_object)
-{
- SpitDataImportsCoreImporter * old;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER));
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- old = value->data[0].v_pointer;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (v_object) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER));
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- value->data[0].v_pointer = v_object;
-#line 1506 "DataImportsPluginHost.c"
- } else {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- value->data[0].v_pointer = NULL;
-#line 1510 "DataImportsPluginHost.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (old) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_unref (old);
-#line 1516 "DataImportsPluginHost.c"
- }
-}
-
-
-static void
-spit_data_imports_core_importer_class_init (SpitDataImportsCoreImporterClass * klass)
-{
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- ((SpitDataImportsCoreImporterClass *) klass)->finalize = spit_data_imports_core_importer_finalize;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_type_class_add_private (klass, sizeof (SpitDataImportsCoreImporterPrivate));
-#line 1530 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_core_importer_instance_init (SpitDataImportsCoreImporter * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv = SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_PRIVATE (self);
-#line 11 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->imported_items_count = 0;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->current_import_roll = NULL;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->ref_count = 1;
-#line 1545 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_core_importer_finalize (SpitDataImportsCoreImporter * obj)
-{
- SpitDataImportsCoreImporter * self;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporter);
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_signal_handlers_destroy (self);
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_roll_unref0 (self->current_import_roll);
-#line 1559 "DataImportsPluginHost.c"
-}
-
-
-GType
-spit_data_imports_core_importer_get_type (void)
-{
- static volatile gsize spit_data_imports_core_importer_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_core_importer_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { spit_data_imports_value_core_importer_init, spit_data_imports_value_core_importer_free_value, spit_data_imports_value_core_importer_copy_value, spit_data_imports_value_core_importer_peek_pointer, "p", spit_data_imports_value_core_importer_collect_value, "p", spit_data_imports_value_core_importer_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsCoreImporterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_core_importer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsCoreImporter), 0, (GInstanceInitFunc) spit_data_imports_core_importer_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType spit_data_imports_core_importer_type_id;
- spit_data_imports_core_importer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SpitDataImportsCoreImporter", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&spit_data_imports_core_importer_type_id__volatile, spit_data_imports_core_importer_type_id);
- }
- return spit_data_imports_core_importer_type_id__volatile;
-}
-
-
-gpointer
-spit_data_imports_core_importer_ref (gpointer instance)
-{
- SpitDataImportsCoreImporter * self;
- self = instance;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return instance;
-#line 1588 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_core_importer_unref (gpointer instance)
-{
- SpitDataImportsCoreImporter * self;
- self = instance;
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_CLASS (self)->finalize (self);
-#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1603 "DataImportsPluginHost.c"
- }
-}
-
-
-SpitDataImportsConcreteDataImportsHost*
-spit_data_imports_concrete_data_imports_host_construct (GType object_type,
- SpitDataImportsService* service,
- DataImportsUIDataImportsDialog* dialog)
-{
- SpitDataImportsConcreteDataImportsHost * self = NULL;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsCoreImporter* _tmp1_;
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (service), NULL);
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (dialog), NULL);
-#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = (SpitDataImportsConcreteDataImportsHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (service, SPIT_TYPE_PLUGGABLE, SpitPluggable), "data_imports");
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->dialog = dialog;
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = spit_data_imports_service_create_data_importer (service, G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->active_importer);
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->active_importer = _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_data_imports_core_importer_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _spit_data_imports_core_importer_unref0 (self->priv->core_importer);
-#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->core_importer = _tmp1_;
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return self;
-#line 1638 "DataImportsPluginHost.c"
-}
-
-
-SpitDataImportsConcreteDataImportsHost*
-spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service,
- DataImportsUIDataImportsDialog* dialog)
-{
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return spit_data_imports_concrete_data_imports_host_construct (SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, service, dialog);
-#line 1648 "DataImportsPluginHost.c"
-}
-
-
-static SpitDataImportsDataImporter*
-spit_data_imports_concrete_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- SpitDataImportsDataImporter* result = NULL;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->active_importer;
-#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = _tmp1_;
-#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 1669 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
- gboolean _tmp2_;
- SpitDataImportsDataImporter* _tmp3_;
- SpitDataImportsDataImporter* _tmp4_;
-#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _tmp0_;
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_);
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp1_);
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp2_) {
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return;
-#line 1696 "DataImportsPluginHost.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:112: ConcreteDataImportsHost.start_importin" \
-"g( ): invoked.");
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_start (_tmp4_);
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp4_);
-#line 1708 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
- gboolean _tmp2_;
-#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:118: ConcreteDataImportsHost.stop_importing" \
-"( ): invoked.");
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _tmp0_;
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_);
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp1_);
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp2_) {
-#line 1733 "DataImportsPluginHost.c"
- SpitDataImportsDataImporter* _tmp3_;
- SpitDataImportsDataImporter* _tmp4_;
-#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
-#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_stop (_tmp4_);
-#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp4_);
-#line 1744 "DataImportsPluginHost.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_clean_up (self);
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->importing_halted = TRUE;
-#line 1750 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_clean_up (SpitDataImportsConcreteDataImportsHost* self)
-{
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST (self));
-#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->progress_pane);
-#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->progress_pane = NULL;
-#line 1763 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_concrete_data_imports_host_set_button_mode (SpitDataImportsConcreteDataImportsHost* self,
- SpitDataImportsPluginHostButtonMode mode)
-{
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST (self));
-#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (mode == SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE) {
-#line 1775 "DataImportsPluginHost.c"
- DataImportsUIDataImportsDialog* _tmp0_;
-#line 134 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 134 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp0_);
-#line 1781 "DataImportsPluginHost.c"
- } else {
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (mode == SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL) {
-#line 1785 "DataImportsPluginHost.c"
- DataImportsUIDataImportsDialog* _tmp1_;
-#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = self->priv->dialog;
-#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_set_cancel_button_mode (_tmp1_);
-#line 1791 "DataImportsPluginHost.c"
- } else {
-#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_error ("DataImportsPluginHost.vala:138: unrecognized button mode enumeration v" \
-"alue");
-#line 1795 "DataImportsPluginHost.c"
- }
- }
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_post_error (SpitDataImportsPluginHost* base,
- GError* err)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- const gchar* _tmp0_;
-#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = err->message;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp0_);
-#line 1813 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base,
- const gchar* message)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- gchar* msg = NULL;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsService* _tmp1_;
- SpitDataImportsService* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- DataImportsUIDataImportsDialog* _tmp12_;
- const gchar* _tmp13_;
- DataImportsUIStaticMessagePane* _tmp14_;
- DataImportsUIStaticMessagePane* _tmp15_;
- DataImportsUIDataImportsDialog* _tmp16_;
- DataImportsUIDataImportsDialog* _tmp17_;
- SpitDataImportsDataImporter* _tmp18_;
- SpitDataImportsDataImporter* _tmp19_;
-#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (message != NULL);
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->active_importer;
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_data_imports_data_importer_get_service (_tmp0_);
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = g_strdup_printf (_ ("Importing from %s can’t continue because an error occurred:"), _tmp3_);
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = _tmp4_;
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- msg = _tmp5_;
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = msg;
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = g_markup_printf_escaped ("\n\n<i>%s</i>\n\n", message);
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = _tmp7_;
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp9_ = g_strconcat (_tmp6_, _tmp8_, NULL);
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (msg);
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- msg = _tmp9_;
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp8_);
-#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = msg;
-#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = g_strconcat (_tmp10_, _ ("To try importing from another service, select one from the above menu."), NULL);
-#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (msg);
-#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- msg = _tmp11_;
-#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = self->priv->dialog;
-#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = msg;
-#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = data_imports_ui_static_message_pane_new_with_pango (_tmp13_);
-#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp15_ = _tmp14_;
-#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_install_pane (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp15_);
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = self->priv->dialog;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp16_);
-#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp17_ = self->priv->dialog;
-#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_unlock_service (_tmp17_);
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp18_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp19_ = _tmp18_;
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_stop (_tmp19_);
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp19_);
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_clean_up (self);
-#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (msg);
-#line 1917 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base,
- SpitDataImportsDialogPane* pane,
- SpitDataImportsPluginHostButtonMode button_mode)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- gboolean _tmp0_ = FALSE;
- SpitDataImportsDataImporter* _tmp1_;
- SpitDataImportsDataImporter* _tmp2_;
- gboolean _tmp3_;
- DataImportsUIDataImportsDialog* _tmp6_;
-#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane));
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:167: DataImports.PluginHost: install_dialog" \
-"_pane( ): invoked.");
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = _tmp2_ == NULL;
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp3_) {
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = TRUE;
-#line 1950 "DataImportsPluginHost.c"
- } else {
- SpitDataImportsDataImporter* _tmp4_;
- SpitDataImportsDataImporter* _tmp5_;
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = _tmp4_;
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = !spit_data_imports_data_importer_is_running (_tmp5_);
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp5_);
-#line 1962 "DataImportsPluginHost.c"
- }
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp0_) {
-#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return;
-#line 1968 "DataImportsPluginHost.c"
- }
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = self->priv->dialog;
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_install_pane (_tmp6_, pane);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_set_button_mode (self, button_mode);
-#line 1976 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base,
- const gchar* message,
- SpitDataImportsPluginHostButtonMode button_mode)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- DataImportsUIDataImportsDialog* _tmp0_;
- DataImportsUIStaticMessagePane* _tmp1_;
- DataImportsUIStaticMessagePane* _tmp2_;
-#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (message != NULL);
-#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_set_button_mode (self, button_mode);
-#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = data_imports_ui_static_message_pane_new_with_pango (message);
-#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 2005 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- gboolean _tmp0_ = FALSE;
-#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (welcome_message != NULL);
-#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (discovered_libraries_length1 == 0) {
-#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = file_select_label == NULL;
-#line 2026 "DataImportsPluginHost.c"
- } else {
-#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = FALSE;
-#line 2030 "DataImportsPluginHost.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp0_) {
-#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), "Libraries or file option needed");
-#line 2036 "DataImportsPluginHost.c"
- } else {
- DataImportsUIDataImportsDialog* _tmp1_;
- DataImportsUILibrarySelectionPane* _tmp2_;
- DataImportsUILibrarySelectionPane* _tmp3_;
-#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = self->priv->dialog;
-#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = data_imports_ui_library_selection_pane_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label);
-#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = _tmp2_;
-#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp3_);
-#line 2051 "DataImportsPluginHost.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE);
-#line 2055 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base,
- const gchar* message)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- DataImportsUIProgressPane* _tmp0_;
- DataImportsUIDataImportsDialog* _tmp1_;
- DataImportsUIProgressPane* _tmp2_;
- SpitDataImportsCoreImporter* _tmp3_;
- SpitDataImportsCoreImporter* _tmp4_;
-#line 202 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 202 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (message != NULL);
-#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = data_imports_ui_progress_pane_new (message);
-#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->progress_pane);
-#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->progress_pane = _tmp0_;
-#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = self->priv->dialog;
-#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = self->priv->progress_pane;
-#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 207 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL);
-#line 209 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = self->priv->core_importer;
-#line 209 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_->imported_items_count = 0;
-#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = self->priv->core_importer;
-#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_roll_unref0 (_tmp4_->current_import_roll);
-#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_->current_import_roll = NULL;
-#line 2097 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base,
- gdouble progress,
- const gchar* progress_message)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- DataImportsUIProgressPane* _tmp0_;
-#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->progress_pane;
-#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp0_ != NULL) {
-#line 2114 "DataImportsPluginHost.c"
- DataImportsUIProgressPane* _tmp1_;
-#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = self->priv->progress_pane;
-#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_progress_pane_update_progress (_tmp1_, progress, progress_message);
-#line 2120 "DataImportsPluginHost.c"
- }
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base,
- SpitDataImportsImportableMediaItem** items,
- int items_length1,
- gdouble progress,
- gdouble host_progress_delta,
- const gchar* progress_message)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- SpitDataImportsCoreImporter* _tmp0_;
-#line 222 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->core_importer;
-#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_prepare_media_items_for_import (_tmp0_, items, items_length1, progress, host_progress_delta, progress_message);
-#line 2141 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base,
- SpitDataImportsImportedItemsCountCallback report_imported_items_count,
- void* report_imported_items_count_target,
- const gchar* finalize_message)
-{
- SpitDataImportsConcreteDataImportsHost * self;
- SpitDataImportsCoreImporter* _tmp0_;
- SpitDataImportsCoreImporter* _tmp1_;
- gint _tmp2_;
- SpitDataImportsCoreImporter* _tmp3_;
- gint _tmp4_;
-#line 231 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 235 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_update_import_progress_pane (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), 1.0, finalize_message);
-#line 236 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE);
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->core_importer;
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_finalize_import (_tmp0_);
-#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = self->priv->core_importer;
-#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_->imported_items_count;
-#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- report_imported_items_count (_tmp2_, report_imported_items_count_target);
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = self->priv->core_importer;
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_->imported_items_count;
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp4_ > 0) {
-#line 2179 "DataImportsPluginHost.c"
- LibraryWindow* _tmp5_;
- LibraryWindow* _tmp6_;
-#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = library_window_get_app ();
-#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = _tmp5_;
-#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- library_window_switch_to_import_queue_page (_tmp6_);
-#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp6_);
-#line 2190 "DataImportsPluginHost.c"
- }
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_class_init (SpitDataImportsConcreteDataImportsHostClass * klass)
-{
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_parent_class = g_type_class_peek_parent (klass);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_type_class_add_private (klass, sizeof (SpitDataImportsConcreteDataImportsHostPrivate));
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_OBJECT_CLASS (klass)->finalize = spit_data_imports_concrete_data_imports_host_finalize;
-#line 2204 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_interface_init (SpitDataImportsPluginHostIface * iface)
-{
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_parent_iface = g_type_interface_peek_parent (iface);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->get_data_importer = (SpitDataImportsDataImporter* (*) (SpitDataImportsPluginHost *)) spit_data_imports_concrete_data_imports_host_real_get_data_importer;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->start_importing = (void (*) (SpitDataImportsPluginHost *)) spit_data_imports_concrete_data_imports_host_real_start_importing;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->stop_importing = (void (*) (SpitDataImportsPluginHost *)) spit_data_imports_concrete_data_imports_host_real_stop_importing;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->post_error = (void (*) (SpitDataImportsPluginHost *, GError*)) spit_data_imports_concrete_data_imports_host_real_post_error;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->post_error_message = (void (*) (SpitDataImportsPluginHost *, const gchar*)) spit_data_imports_concrete_data_imports_host_real_post_error_message;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->install_dialog_pane = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsDialogPane*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_concrete_data_imports_host_real_install_dialog_pane;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->install_static_message_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_concrete_data_imports_host_real_install_static_message_pane;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->install_library_selection_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*, SpitDataImportsImportableLibrary**, int, const gchar*)) spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->install_import_progress_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*)) spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->update_import_progress_pane = (void (*) (SpitDataImportsPluginHost *, gdouble, const gchar*)) spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->prepare_media_items_for_import = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsImportableMediaItem**, int, gdouble, gdouble, const gchar*)) spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->finalize_import = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsImportedItemsCountCallback, void*, const gchar*)) spit_data_imports_concrete_data_imports_host_real_finalize_import;
-#line 2237 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_instance_init (SpitDataImportsConcreteDataImportsHost * self)
-{
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv = SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_PRIVATE (self);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->active_importer = NULL;
-#line 91 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->dialog = NULL;
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->progress_pane = NULL;
-#line 93 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->importing_halted = FALSE;
-#line 2254 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_concrete_data_imports_host_finalize (GObject * obj)
-{
- SpitDataImportsConcreteDataImportsHost * self;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->active_importer);
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->progress_pane);
-#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _spit_data_imports_core_importer_unref0 (self->priv->core_importer);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_OBJECT_CLASS (spit_data_imports_concrete_data_imports_host_parent_class)->finalize (obj);
-#line 2272 "DataImportsPluginHost.c"
-}
-
-
-GType
-spit_data_imports_concrete_data_imports_host_get_type (void)
-{
- static volatile gsize spit_data_imports_concrete_data_imports_host_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_concrete_data_imports_host_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsConcreteDataImportsHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_concrete_data_imports_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsConcreteDataImportsHost), 0, (GInstanceInitFunc) spit_data_imports_concrete_data_imports_host_instance_init, NULL };
- static const GInterfaceInfo spit_data_imports_plugin_host_info = { (GInterfaceInitFunc) spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType spit_data_imports_concrete_data_imports_host_type_id;
- spit_data_imports_concrete_data_imports_host_type_id = g_type_register_static (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, "SpitDataImportsConcreteDataImportsHost", &g_define_type_info, 0);
- g_type_add_interface_static (spit_data_imports_concrete_data_imports_host_type_id, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, &spit_data_imports_plugin_host_info);
- g_once_init_leave (&spit_data_imports_concrete_data_imports_host_type_id__volatile, spit_data_imports_concrete_data_imports_host_type_id);
- }
- return spit_data_imports_concrete_data_imports_host_type_id__volatile;
-}
-
-
-SpitDataImportsWelcomeDataImportsHost*
-spit_data_imports_welcome_data_imports_host_construct (GType object_type,
- SpitDataImportsService* service,
- SpitDataImportsWelcomeImportMetaHost* meta_host)
-{
- SpitDataImportsWelcomeDataImportsHost * self = NULL;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsCoreImporter* _tmp1_;
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (service), NULL);
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (meta_host), NULL);
-#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = (SpitDataImportsWelcomeDataImportsHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (service, SPIT_TYPE_PLUGGABLE, SpitPluggable), "data_imports");
-#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = spit_data_imports_service_create_data_importer (service, G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->active_importer);
-#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->active_importer = _tmp0_;
-#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_data_imports_core_importer_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _spit_data_imports_core_importer_unref0 (self->priv->core_importer);
-#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->core_importer = _tmp1_;
-#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->meta_host = meta_host;
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return self;
-#line 2322 "DataImportsPluginHost.c"
-}
-
-
-SpitDataImportsWelcomeDataImportsHost*
-spit_data_imports_welcome_data_imports_host_new (SpitDataImportsService* service,
- SpitDataImportsWelcomeImportMetaHost* meta_host)
-{
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return spit_data_imports_welcome_data_imports_host_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, service, meta_host);
-#line 2332 "DataImportsPluginHost.c"
-}
-
-
-static SpitDataImportsDataImporter*
-spit_data_imports_welcome_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
- SpitDataImportsDataImporter* result = NULL;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
-#line 260 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->active_importer;
-#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = _tmp1_;
-#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 2353 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
- gboolean _tmp2_;
- SpitDataImportsDataImporter* _tmp3_;
- SpitDataImportsDataImporter* _tmp4_;
-#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _tmp0_;
-#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_);
-#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp1_);
-#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp2_) {
-#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return;
-#line 2380 "DataImportsPluginHost.c"
- }
-#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:268: WelcomeDataImportsHost.start_importing" \
-"( ): invoked.");
-#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
-#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_start (_tmp4_);
-#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp4_);
-#line 2392 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
- gboolean _tmp2_;
-#line 273 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 274 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:274: WelcomeDataImportsHost.stop_importing(" \
-" ): invoked.");
-#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _tmp0_;
-#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_);
-#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp1_);
-#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp2_) {
-#line 2417 "DataImportsPluginHost.c"
- SpitDataImportsDataImporter* _tmp3_;
- SpitDataImportsDataImporter* _tmp4_;
-#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
-#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_stop (_tmp4_);
-#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp4_);
-#line 2428 "DataImportsPluginHost.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_data_imports_host_clean_up (self);
-#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->importing_halted = TRUE;
-#line 2434 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_clean_up (SpitDataImportsWelcomeDataImportsHost* self)
-{
-#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST (self));
-#line 2443 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_post_error (SpitDataImportsPluginHost* base,
- GError* err)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
- const gchar* _tmp0_;
-#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = err->message;
-#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp0_);
-#line 2459 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base,
- const gchar* message)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
- gchar* msg = NULL;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsService* _tmp1_;
- SpitDataImportsService* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- SpitDataImportsDataImporter* _tmp6_;
- SpitDataImportsDataImporter* _tmp7_;
-#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (message != NULL);
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->active_importer;
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_data_imports_data_importer_get_service (_tmp0_);
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = g_strdup_printf (_ ("Importing from %s can’t continue because an error occurred:"), _tmp3_);
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = _tmp4_;
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- msg = _tmp5_;
-#line 297 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:297: %s", msg);
-#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = _tmp6_;
-#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_stop (_tmp7_);
-#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp7_);
-#line 304 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_data_imports_host_clean_up (self);
-#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (msg);
-#line 2511 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base,
- SpitDataImportsDialogPane* pane,
- SpitDataImportsPluginHostButtonMode button_mode)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
-#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane));
-#line 2525 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base,
- const gchar* message,
- SpitDataImportsPluginHostButtonMode button_mode)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
-#line 312 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 312 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (message != NULL);
-#line 2539 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
- SpitDataImportsDataImporter* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
- SpitDataImportsService* _tmp2_;
- SpitDataImportsService* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 317 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 317 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (welcome_message != NULL);
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _tmp0_;
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = spit_data_imports_data_importer_get_service (_tmp1_);
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = _tmp2_;
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = g_strdup_printf ("WelcomeDataImportsHost: Installing library selection pane for %s", _tmp4_);
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = _tmp5_;
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:322: %s", _tmp6_);
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp6_);
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp3_);
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp1_);
-#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (discovered_libraries_length1 > 0) {
-#line 2586 "DataImportsPluginHost.c"
- SpitDataImportsWelcomeImportMetaHost* _tmp7_;
- SpitDataImportsDataImporter* _tmp8_;
- SpitDataImportsDataImporter* _tmp9_;
- SpitDataImportsService* _tmp10_;
- SpitDataImportsService* _tmp11_;
- const gchar* _tmp12_;
- SpitDataImportsWelcomeImportServiceEntry* _tmp13_;
- SpitDataImportsWelcomeImportServiceEntry* _tmp14_;
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = self->priv->meta_host;
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp9_ = _tmp8_;
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = spit_data_imports_data_importer_get_service (_tmp9_);
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = _tmp10_;
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = spit_data_imports_welcome_import_service_entry_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp12_, discovered_libraries, discovered_libraries_length1);
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = _tmp13_;
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_import_meta_host_install_service_entry (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry));
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp14_);
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp11_);
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp9_);
-#line 2619 "DataImportsPluginHost.c"
- }
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base,
- const gchar* message)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
-#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (message != NULL);
-#line 2633 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base,
- gdouble progress,
- const gchar* progress_message)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
-#line 338 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 2645 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base,
- SpitDataImportsImportableMediaItem** items,
- int items_length1,
- gdouble progress,
- gdouble host_progress_delta,
- const gchar* progress_message)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
- SpitDataImportsCoreImporter* _tmp0_;
-#line 345 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->core_importer;
-#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_prepare_media_items_for_import (_tmp0_, items, items_length1, progress, host_progress_delta, progress_message);
-#line 2665 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base,
- SpitDataImportsImportedItemsCountCallback report_imported_items_count,
- void* report_imported_items_count_target,
- const gchar* finalize_message)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
- SpitDataImportsCoreImporter* _tmp0_;
- SpitDataImportsCoreImporter* _tmp1_;
- gint _tmp2_;
- SpitDataImportsWelcomeImportMetaHost* _tmp3_;
-#line 354 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->core_importer;
-#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_core_importer_finalize_import (_tmp0_);
-#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = self->priv->core_importer;
-#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_->imported_items_count;
-#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- report_imported_items_count (_tmp2_, report_imported_items_count_target);
-#line 360 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = self->priv->meta_host;
-#line 360 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_import_meta_host_finalize_import (_tmp3_, self);
-#line 2696 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_class_init (SpitDataImportsWelcomeDataImportsHostClass * klass)
-{
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_data_imports_host_parent_class = g_type_class_peek_parent (klass);
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeDataImportsHostPrivate));
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_data_imports_host_finalize;
-#line 2709 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_interface_init (SpitDataImportsPluginHostIface * iface)
-{
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_parent_iface = g_type_interface_peek_parent (iface);
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->get_data_importer = (SpitDataImportsDataImporter* (*) (SpitDataImportsPluginHost *)) spit_data_imports_welcome_data_imports_host_real_get_data_importer;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->start_importing = (void (*) (SpitDataImportsPluginHost *)) spit_data_imports_welcome_data_imports_host_real_start_importing;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->stop_importing = (void (*) (SpitDataImportsPluginHost *)) spit_data_imports_welcome_data_imports_host_real_stop_importing;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->post_error = (void (*) (SpitDataImportsPluginHost *, GError*)) spit_data_imports_welcome_data_imports_host_real_post_error;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->post_error_message = (void (*) (SpitDataImportsPluginHost *, const gchar*)) spit_data_imports_welcome_data_imports_host_real_post_error_message;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->install_dialog_pane = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsDialogPane*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_welcome_data_imports_host_real_install_dialog_pane;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->install_static_message_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_welcome_data_imports_host_real_install_static_message_pane;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->install_library_selection_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*, SpitDataImportsImportableLibrary**, int, const gchar*)) spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->install_import_progress_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*)) spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->update_import_progress_pane = (void (*) (SpitDataImportsPluginHost *, gdouble, const gchar*)) spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->prepare_media_items_for_import = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsImportableMediaItem**, int, gdouble, gdouble, const gchar*)) spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->finalize_import = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsImportedItemsCountCallback, void*, const gchar*)) spit_data_imports_welcome_data_imports_host_real_finalize_import;
-#line 2742 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_instance_init (SpitDataImportsWelcomeDataImportsHost * self)
-{
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv = SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_PRIVATE (self);
-#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->active_importer = NULL;
-#line 249 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->importing_halted = FALSE;
-#line 2755 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_data_imports_host_finalize (GObject * obj)
-{
- SpitDataImportsWelcomeDataImportsHost * self;
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
-#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->active_importer);
-#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _spit_data_imports_core_importer_unref0 (self->priv->core_importer);
-#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_OBJECT_CLASS (spit_data_imports_welcome_data_imports_host_parent_class)->finalize (obj);
-#line 2771 "DataImportsPluginHost.c"
-}
-
-
-GType
-spit_data_imports_welcome_data_imports_host_get_type (void)
-{
- static volatile gsize spit_data_imports_welcome_data_imports_host_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_welcome_data_imports_host_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeDataImportsHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_data_imports_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeDataImportsHost), 0, (GInstanceInitFunc) spit_data_imports_welcome_data_imports_host_instance_init, NULL };
- static const GInterfaceInfo spit_data_imports_plugin_host_info = { (GInterfaceInitFunc) spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType spit_data_imports_welcome_data_imports_host_type_id;
- spit_data_imports_welcome_data_imports_host_type_id = g_type_register_static (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, "SpitDataImportsWelcomeDataImportsHost", &g_define_type_info, 0);
- g_type_add_interface_static (spit_data_imports_welcome_data_imports_host_type_id, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, &spit_data_imports_plugin_host_info);
- g_once_init_leave (&spit_data_imports_welcome_data_imports_host_type_id__volatile, spit_data_imports_welcome_data_imports_host_type_id);
- }
- return spit_data_imports_welcome_data_imports_host_type_id__volatile;
-}
-
-
-static SpitDataImportsImportableLibrary**
-_vala_array_dup21 (SpitDataImportsImportableLibrary** self,
- int length)
-{
- SpitDataImportsImportableLibrary** result;
- int i;
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = g_new0 (SpitDataImportsImportableLibrary*, length + 1);
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- for (i = 0; i < length; i++) {
-#line 2801 "DataImportsPluginHost.c"
- SpitDataImportsImportableLibrary* _tmp0_;
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = _g_object_ref0 (self[i]);
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result[i] = _tmp0_;
-#line 2807 "DataImportsPluginHost.c"
- }
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 2811 "DataImportsPluginHost.c"
-}
-
-
-SpitDataImportsWelcomeImportServiceEntry*
-spit_data_imports_welcome_import_service_entry_construct (GType object_type,
- SpitDataImportsPluginHost* host,
- const gchar* pluggable_name,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1)
-{
- SpitDataImportsWelcomeImportServiceEntry * self = NULL;
- SpitDataImportsPluginHost* _tmp0_;
- gchar* _tmp1_;
- SpitDataImportsImportableLibrary** _tmp2_;
- gint _tmp2__length1;
-#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
-#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (pluggable_name != NULL, NULL);
-#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = (SpitDataImportsWelcomeImportServiceEntry*) g_object_new (object_type, NULL);
-#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = _g_object_ref0 (host);
-#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->host);
-#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->host = _tmp0_;
-#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = g_strdup (pluggable_name);
-#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (self->priv->pluggable_name);
-#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->pluggable_name = _tmp1_;
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = (discovered_libraries != NULL) ? _vala_array_dup21 (discovered_libraries, discovered_libraries_length1) : ((gpointer) discovered_libraries);
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2__length1 = discovered_libraries_length1;
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->discovered_libraries = (_vala_array_free (self->priv->discovered_libraries, self->priv->discovered_libraries_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->discovered_libraries = _tmp2_;
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->discovered_libraries_length1 = _tmp2__length1;
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->_discovered_libraries_size_ = self->priv->discovered_libraries_length1;
-#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return self;
-#line 2859 "DataImportsPluginHost.c"
-}
-
-
-SpitDataImportsWelcomeImportServiceEntry*
-spit_data_imports_welcome_import_service_entry_new (SpitDataImportsPluginHost* host,
- const gchar* pluggable_name,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1)
-{
-#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return spit_data_imports_welcome_import_service_entry_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, host, pluggable_name, discovered_libraries, discovered_libraries_length1);
-#line 2871 "DataImportsPluginHost.c"
-}
-
-
-static gchar*
-spit_data_imports_welcome_import_service_entry_real_get_service_name (WelcomeServiceEntry* base)
-{
- SpitDataImportsWelcomeImportServiceEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 381 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry);
-#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->pluggable_name;
-#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = _tmp1_;
-#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 2892 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_import_service_entry_real_execute (WelcomeServiceEntry* base)
-{
- SpitDataImportsWelcomeImportServiceEntry * self;
- SpitDataImportsImportableLibrary** _tmp0_;
- gint _tmp0__length1;
-#line 385 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry);
-#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = self->priv->discovered_libraries;
-#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0__length1 = self->priv->discovered_libraries_length1;
-#line 2908 "DataImportsPluginHost.c"
- {
- SpitDataImportsImportableLibrary** library_collection = NULL;
- gint library_collection_length1 = 0;
- gint _library_collection_size_ = 0;
- gint library_it = 0;
-#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- library_collection = _tmp0_;
-#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- library_collection_length1 = _tmp0__length1;
-#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- for (library_it = 0; library_it < _tmp0__length1; library_it = library_it + 1) {
-#line 2920 "DataImportsPluginHost.c"
- SpitDataImportsImportableLibrary* _tmp1_;
- SpitDataImportsImportableLibrary* library = NULL;
-#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _g_object_ref0 (library_collection[library_it]);
-#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- library = _tmp1_;
-#line 2927 "DataImportsPluginHost.c"
- {
- SpitDataImportsPluginHost* _tmp2_;
- SpitDataImportsDataImporter* _tmp3_;
- SpitDataImportsDataImporter* _tmp4_;
- SpitDataImportsImportableLibrary* _tmp5_;
-#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = self->priv->host;
-#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_data_imports_plugin_host_get_data_importer (_tmp2_);
-#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
-#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = library;
-#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_on_library_selected (_tmp4_, _tmp5_);
-#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp4_);
-#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (library);
-#line 2947 "DataImportsPluginHost.c"
- }
- }
- }
-}
-
-
-static void
-spit_data_imports_welcome_import_service_entry_class_init (SpitDataImportsWelcomeImportServiceEntryClass * klass)
-{
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_import_service_entry_parent_class = g_type_class_peek_parent (klass);
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeImportServiceEntryPrivate));
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_import_service_entry_finalize;
-#line 2963 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_import_service_entry_welcome_service_entry_interface_init (WelcomeServiceEntryIface * iface)
-{
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_import_service_entry_welcome_service_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->get_service_name = (gchar* (*) (WelcomeServiceEntry *)) spit_data_imports_welcome_import_service_entry_real_get_service_name;
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- iface->execute = (void (*) (WelcomeServiceEntry *)) spit_data_imports_welcome_import_service_entry_real_execute;
-#line 2976 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_import_service_entry_instance_init (SpitDataImportsWelcomeImportServiceEntry * self)
-{
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv = SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_PRIVATE (self);
-#line 2985 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_import_service_entry_finalize (GObject * obj)
-{
- SpitDataImportsWelcomeImportServiceEntry * self;
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry);
-#line 368 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (self->priv->pluggable_name);
-#line 369 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->discovered_libraries = (_vala_array_free (self->priv->discovered_libraries, self->priv->discovered_libraries_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 370 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->host);
-#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_OBJECT_CLASS (spit_data_imports_welcome_import_service_entry_parent_class)->finalize (obj);
-#line 3003 "DataImportsPluginHost.c"
-}
-
-
-GType
-spit_data_imports_welcome_import_service_entry_get_type (void)
-{
- static volatile gsize spit_data_imports_welcome_import_service_entry_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_welcome_import_service_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeImportServiceEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_import_service_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeImportServiceEntry), 0, (GInstanceInitFunc) spit_data_imports_welcome_import_service_entry_instance_init, NULL };
- static const GInterfaceInfo welcome_service_entry_info = { (GInterfaceInitFunc) spit_data_imports_welcome_import_service_entry_welcome_service_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType spit_data_imports_welcome_import_service_entry_type_id;
- spit_data_imports_welcome_import_service_entry_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitDataImportsWelcomeImportServiceEntry", &g_define_type_info, 0);
- g_type_add_interface_static (spit_data_imports_welcome_import_service_entry_type_id, TYPE_WELCOME_SERVICE_ENTRY, &welcome_service_entry_info);
- g_once_init_leave (&spit_data_imports_welcome_import_service_entry_type_id__volatile, spit_data_imports_welcome_import_service_entry_type_id);
- }
- return spit_data_imports_welcome_import_service_entry_type_id__volatile;
-}
-
-
-SpitDataImportsWelcomeImportMetaHost*
-spit_data_imports_welcome_import_meta_host_construct (GType object_type,
- WelcomeDialog* dialog)
-{
- SpitDataImportsWelcomeImportMetaHost * self = NULL;
- WelcomeDialog* _tmp0_;
-#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_val_if_fail (IS_WELCOME_DIALOG (dialog), NULL);
-#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = (SpitDataImportsWelcomeImportMetaHost*) g_object_new (object_type, NULL);
-#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = _g_object_ref0 (dialog);
-#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->dialog);
-#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->dialog = _tmp0_;
-#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return self;
-#line 3041 "DataImportsPluginHost.c"
-}
-
-
-SpitDataImportsWelcomeImportMetaHost*
-spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog)
-{
-#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return spit_data_imports_welcome_import_meta_host_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, dialog);
-#line 3050 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self)
-{
- SpitDataImportsService** services = NULL;
- gint _tmp0_;
- SpitDataImportsService** _tmp1_;
- gint services_length1;
- gint _services_size_;
- SpitDataImportsService** _tmp2_;
- gint _tmp2__length1;
-#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self));
-#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_data_imports_load_all_services (&_tmp0_);
-#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- services = _tmp1_;
-#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- services_length1 = _tmp0_;
-#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _services_size_ = services_length1;
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = services;
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2__length1 = services_length1;
-#line 3078 "DataImportsPluginHost.c"
- {
- SpitDataImportsService** service_collection = NULL;
- gint service_collection_length1 = 0;
- gint _service_collection_size_ = 0;
- gint service_it = 0;
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- service_collection = _tmp2_;
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- service_collection_length1 = _tmp2__length1;
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- for (service_it = 0; service_it < _tmp2__length1; service_it = service_it + 1) {
-#line 3090 "DataImportsPluginHost.c"
- SpitDataImportsService* _tmp3_;
- SpitDataImportsService* service = NULL;
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = _g_object_ref0 (service_collection[service_it]);
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- service = _tmp3_;
-#line 3097 "DataImportsPluginHost.c"
- {
- SpitDataImportsWelcomeDataImportsHost* host = NULL;
- SpitDataImportsService* _tmp4_;
- SpitDataImportsWelcomeDataImportsHost* _tmp5_;
- SpitDataImportsWelcomeDataImportsHost* _tmp6_;
-#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = service;
-#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = spit_data_imports_welcome_data_imports_host_new (_tmp4_, self);
-#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- host = _tmp5_;
-#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = host;
-#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_start_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (host);
-#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (service);
-#line 3117 "DataImportsPluginHost.c"
- }
- }
- }
-#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 3123 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_welcome_import_meta_host_finalize_import (SpitDataImportsWelcomeImportMetaHost* self,
- SpitDataImportsWelcomeDataImportsHost* host)
-{
-#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self));
-#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST (host));
-#line 408 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_stop_importing (G_TYPE_CHECK_INSTANCE_CAST (host, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 3137 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_welcome_import_meta_host_install_service_entry (SpitDataImportsWelcomeImportMetaHost* self,
- WelcomeServiceEntry* entry)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- WelcomeDialog* _tmp4_;
-#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self));
-#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (IS_WELCOME_SERVICE_ENTRY (entry));
-#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = welcome_service_entry_get_service_name (entry);
-#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _tmp0_;
-#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = g_strdup_printf ("WelcomeImportMetaHost: Installing service entry for %s", _tmp1_);
-#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = _tmp2_;
-#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:412: %s", _tmp3_);
-#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp3_);
-#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp1_);
-#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = self->priv->dialog;
-#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- welcome_dialog_install_service_entry (_tmp4_, entry);
-#line 3172 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_import_meta_host_class_init (SpitDataImportsWelcomeImportMetaHostClass * klass)
-{
-#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_welcome_import_meta_host_parent_class = g_type_class_peek_parent (klass);
-#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeImportMetaHostPrivate));
-#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_import_meta_host_finalize;
-#line 3185 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_import_meta_host_instance_init (SpitDataImportsWelcomeImportMetaHost * self)
-{
-#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv = SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_PRIVATE (self);
-#line 3194 "DataImportsPluginHost.c"
-}
-
-
-static void
-spit_data_imports_welcome_import_meta_host_finalize (GObject * obj)
-{
- SpitDataImportsWelcomeImportMetaHost * self;
-#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHost);
-#line 393 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (self->priv->dialog);
-#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- G_OBJECT_CLASS (spit_data_imports_welcome_import_meta_host_parent_class)->finalize (obj);
-#line 3208 "DataImportsPluginHost.c"
-}
-
-
-GType
-spit_data_imports_welcome_import_meta_host_get_type (void)
-{
- static volatile gsize spit_data_imports_welcome_import_meta_host_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_welcome_import_meta_host_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeImportMetaHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_import_meta_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeImportMetaHost), 0, (GInstanceInitFunc) spit_data_imports_welcome_import_meta_host_instance_init, NULL };
- GType spit_data_imports_welcome_import_meta_host_type_id;
- spit_data_imports_welcome_import_meta_host_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitDataImportsWelcomeImportMetaHost", &g_define_type_info, 0);
- g_once_init_leave (&spit_data_imports_welcome_import_meta_host_type_id__volatile, spit_data_imports_welcome_import_meta_host_type_id);
- }
- return spit_data_imports_welcome_import_meta_host_type_id__volatile;
-}
-
-
-SpitDataImportsService**
-spit_data_imports_load_all_services (int* result_length1)
-{
- SpitDataImportsService** result = NULL;
- gint _tmp0_;
- SpitDataImportsService** _tmp1_;
- SpitDataImportsService** _tmp2_;
- gint _tmp2__length1;
-#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_data_imports_load_services (TRUE, &_tmp0_);
-#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2__length1 = _tmp0_;
-#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (result_length1) {
-#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- *result_length1 = _tmp2__length1;
-#line 3244 "DataImportsPluginHost.c"
- }
-#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = _tmp2_;
-#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 3250 "DataImportsPluginHost.c"
-}
-
-
-static void
-_vala_array_add71 (SpitDataImportsService** * array,
- int* length,
- int* size,
- SpitDataImportsService* value)
-{
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if ((*length) == (*size)) {
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- *array = g_renew (SpitDataImportsService*, *array, (*size) + 1);
-#line 3266 "DataImportsPluginHost.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- (*array)[(*length)++] = value;
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- (*array)[*length] = NULL;
-#line 3272 "DataImportsPluginHost.c"
-}
-
-
-static gint
-__lambda25_ (void* a,
- void* b)
-{
- gint result = 0;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitDataImportsService**) a), SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitDataImportsService**) b), SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = utf8_cs_compare (_tmp0_, _tmp1_);
-#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 3291 "DataImportsPluginHost.c"
-}
-
-
-static gint
-___lambda25____compar_fn_t (void* key1,
- void* key2)
-{
- gint result;
- result = __lambda25_ (key1, key2);
-#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 3303 "DataImportsPluginHost.c"
-}
-
-
-SpitDataImportsService**
-spit_data_imports_load_services (gboolean load_all,
- int* result_length1)
-{
- SpitDataImportsService** result = NULL;
- SpitDataImportsService** loaded_services = NULL;
- SpitDataImportsService** _tmp0_;
- gint loaded_services_length1;
- gint _loaded_services_size_;
- GeeCollection* pluggables = NULL;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- SpitDataImportsService** _tmp23_;
- gint _tmp23__length1;
- SpitDataImportsService** _tmp24_;
- gint _tmp24__length1;
- SpitDataImportsService** _tmp25_;
- gint _tmp25__length1;
-#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = g_new0 (SpitDataImportsService*, 0 + 1);
-#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- loaded_services = _tmp0_;
-#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- loaded_services_length1 = 0;
-#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _loaded_services_size_ = loaded_services_length1;
-#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = plugins_get_pluggables_for_type (SPIT_DATA_IMPORTS_TYPE_SERVICE, NULL, NULL, NULL, load_all);
-#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- pluggables = _tmp1_;
-#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = pluggables;
-#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = gee_collection_get_size (_tmp2_);
-#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
-#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:429: DataImportsDialog: discovered %d plugg" \
-"able data import services.", _tmp4_);
-#line 3347 "DataImportsPluginHost.c"
- {
- GeeIterator* _pluggable_it = NULL;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = pluggables;
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _pluggable_it = _tmp6_;
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- while (TRUE) {
-#line 3360 "DataImportsPluginHost.c"
- GeeIterator* _tmp7_;
- SpitPluggable* pluggable = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- gint pluggable_interface = 0;
- SpitPluggable* _tmp10_;
- gint _tmp11_;
- SpitDataImportsService* service = NULL;
- SpitPluggable* _tmp16_;
- SpitDataImportsService* _tmp17_;
- SpitDataImportsService* _tmp18_;
- const gchar* _tmp19_;
- SpitDataImportsService** _tmp20_;
- gint _tmp20__length1;
- SpitDataImportsService* _tmp21_;
- SpitDataImportsService* _tmp22_;
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = _pluggable_it;
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- break;
-#line 3383 "DataImportsPluginHost.c"
- }
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = _pluggable_it;
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- pluggable = (SpitPluggable*) _tmp9_;
-#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = pluggable;
-#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- pluggable_interface = spit_pluggable_get_pluggable_interface (_tmp10_, SPIT_DATA_IMPORTS_CURRENT_INTERFACE, SPIT_DATA_IMPORTS_CURRENT_INTERFACE);
-#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = pluggable_interface;
-#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp11_ != SPIT_DATA_IMPORTS_CURRENT_INTERFACE) {
-#line 3399 "DataImportsPluginHost.c"
- SpitPluggable* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gint _tmp15_;
-#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = pluggable;
-#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = plugins_get_pluggable_module_id (_tmp12_);
-#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = _tmp13_;
-#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp15_ = pluggable_interface;
-#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_warning ("DataImportsPluginHost.vala:435: Unable to load data import plugin %s: " \
-"reported interface %d.", _tmp14_, _tmp15_);
-#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp14_);
-#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (pluggable);
-#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- continue;
-#line 3420 "DataImportsPluginHost.c"
- }
-#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = pluggable;
-#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService));
-#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- service = _tmp17_;
-#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp18_ = service;
-#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp19_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:444: DataImportsDialog: discovered pluggabl" \
-"e data import service '%s'.", _tmp19_);
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp20_ = loaded_services;
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp20__length1 = loaded_services_length1;
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp21_ = service;
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp22_ = _g_object_ref0 (_tmp21_);
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _vala_array_add71 (&loaded_services, &loaded_services_length1, &_loaded_services_size_, _tmp22_);
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (service);
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (pluggable);
-#line 3448 "DataImportsPluginHost.c"
- }
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_pluggable_it);
-#line 3452 "DataImportsPluginHost.c"
- }
-#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp23_ = loaded_services;
-#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp23__length1 = loaded_services_length1;
-#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp24_ = loaded_services;
-#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp24__length1 = loaded_services_length1;
-#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- qsort (_tmp23_, (gsize) _tmp24__length1, (gsize) sizeof (SpitDataImportsService*), ___lambda25____compar_fn_t);
-#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp25_ = loaded_services;
-#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp25__length1 = loaded_services_length1;
-#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (result_length1) {
-#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- *result_length1 = _tmp25__length1;
-#line 3472 "DataImportsPluginHost.c"
- }
-#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = _tmp25_;
-#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (pluggables);
-#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 3480 "DataImportsPluginHost.c"
-}
-
-
-void
-spit_data_imports_data_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll)
-{
- GeeList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 462 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (IS_IMPORT_MANIFEST (manifest));
-#line 462 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll));
-#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp0_ = manifest->all;
-#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp2_ > 0) {
-#line 3503 "DataImportsPluginHost.c"
- ImportManifest* _tmp3_;
-#line 464 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = spit_data_imports_meta_manifest;
-#line 464 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp3_ == NULL) {
-#line 3509 "DataImportsPluginHost.c"
- ImportManifest* _tmp4_;
-#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = import_manifest_new (NULL, NULL);
-#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _import_manifest_unref0 (spit_data_imports_meta_manifest);
-#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_meta_manifest = _tmp4_;
-#line 3517 "DataImportsPluginHost.c"
- }
- {
- GeeList* _result_list = NULL;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- gint _result_size = 0;
- GeeList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _result_index = 0;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = manifest->all;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _result_list = _tmp6_;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = _result_list;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp9_ = _tmp8_;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _result_size = _tmp9_;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _result_index = -1;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- while (TRUE) {
-#line 3546 "DataImportsPluginHost.c"
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- BatchImportResult* _result_ = NULL;
- GeeList* _tmp13_;
- gint _tmp14_;
- gpointer _tmp15_;
- ImportManifest* _tmp16_;
- BatchImportResult* _tmp17_;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = _result_index;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _result_index = _tmp10_ + 1;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = _result_index;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = _result_size;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (!(_tmp11_ < _tmp12_)) {
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- break;
-#line 3568 "DataImportsPluginHost.c"
- }
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = _result_list;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = _result_index;
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp15_ = gee_list_get (_tmp13_, _tmp14_);
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _result_ = (BatchImportResult*) _tmp15_;
-#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = spit_data_imports_meta_manifest;
-#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp17_ = _result_;
-#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- import_manifest_add_result (_tmp16_, _tmp17_);
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_result_unref0 (_result_);
-#line 3586 "DataImportsPluginHost.c"
- }
-#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_result_list);
-#line 3590 "DataImportsPluginHost.c"
- }
- } else {
- ImportManifest* _tmp18_;
-#line 470 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_terminate_instance ();
-#line 471 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp18_ = spit_data_imports_meta_manifest;
-#line 471 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- import_ui_report_manifest (_tmp18_, TRUE, NULL);
-#line 472 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _import_manifest_unref0 (spit_data_imports_meta_manifest);
-#line 472 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_meta_manifest = NULL;
-#line 3604 "DataImportsPluginHost.c"
- }
-}
-
-
-gint64
-spit_data_imports_import_job_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
-#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = (gint64) (spit_data_imports_data_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((SpitDataImportsDataImportJob*) a, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob)) - spit_data_imports_data_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((SpitDataImportsDataImportJob*) b, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob)));
-#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- return result;
-#line 3618 "DataImportsPluginHost.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/data_imports/DataImportsUI.c b/src/data_imports/DataImportsUI.c
deleted file mode 100644
index 6a5ebdf..0000000
--- a/src/data_imports/DataImportsUI.c
+++ /dev/null
@@ -1,2814 +0,0 @@
-/* DataImportsUI.c generated by valac 0.40.4, the Vala compiler
- * generated from DataImportsUI.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <float.h>
-#include <math.h>
-#include <gdk/gdk.h>
-
-
-#define DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE (data_imports_ui_concrete_dialog_pane_get_type ())
-#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane))
-#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass))
-#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE))
-#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE))
-#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass))
-
-typedef struct _DataImportsUIConcreteDialogPane DataImportsUIConcreteDialogPane;
-typedef struct _DataImportsUIConcreteDialogPaneClass DataImportsUIConcreteDialogPaneClass;
-typedef struct _DataImportsUIConcreteDialogPanePrivate DataImportsUIConcreteDialogPanePrivate;
-enum {
- DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_0_PROPERTY,
- DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_NUM_PROPERTIES
-};
-static GParamSpec* data_imports_ui_concrete_dialog_pane_properties[DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE (data_imports_ui_static_message_pane_get_type ())
-#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePane))
-#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass))
-#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE))
-#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE))
-#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass))
-
-typedef struct _DataImportsUIStaticMessagePane DataImportsUIStaticMessagePane;
-typedef struct _DataImportsUIStaticMessagePaneClass DataImportsUIStaticMessagePaneClass;
-typedef struct _DataImportsUIStaticMessagePanePrivate DataImportsUIStaticMessagePanePrivate;
-enum {
- DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_0_PROPERTY,
- DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_NUM_PROPERTIES
-};
-static GParamSpec* data_imports_ui_static_message_pane_properties[DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_NUM_PROPERTIES];
-
-#define DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE (data_imports_ui_library_selection_pane_get_type ())
-#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane))
-#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass))
-#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE))
-#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE))
-#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass))
-
-typedef struct _DataImportsUILibrarySelectionPane DataImportsUILibrarySelectionPane;
-typedef struct _DataImportsUILibrarySelectionPaneClass DataImportsUILibrarySelectionPaneClass;
-typedef struct _DataImportsUILibrarySelectionPanePrivate DataImportsUILibrarySelectionPanePrivate;
-enum {
- DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_0_PROPERTY,
- DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_NUM_PROPERTIES
-};
-static GParamSpec* data_imports_ui_library_selection_pane_properties[DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _Block11Data Block11Data;
-typedef struct _Block12Data Block12Data;
-
-#define DATA_IMPORTS_UI_TYPE_PROGRESS_PANE (data_imports_ui_progress_pane_get_type ())
-#define DATA_IMPORTS_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane))
-#define DATA_IMPORTS_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass))
-#define DATA_IMPORTS_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE))
-#define DATA_IMPORTS_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE))
-#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass))
-
-typedef struct _DataImportsUIProgressPane DataImportsUIProgressPane;
-typedef struct _DataImportsUIProgressPaneClass DataImportsUIProgressPaneClass;
-typedef struct _DataImportsUIProgressPanePrivate DataImportsUIProgressPanePrivate;
-enum {
- DATA_IMPORTS_UI_PROGRESS_PANE_0_PROPERTY,
- DATA_IMPORTS_UI_PROGRESS_PANE_NUM_PROPERTIES
-};
-static GParamSpec* data_imports_ui_progress_pane_properties[DATA_IMPORTS_UI_PROGRESS_PANE_NUM_PROPERTIES];
-
-#define DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG (data_imports_ui_data_imports_dialog_get_type ())
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog))
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
-#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
-#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
-
-typedef struct _DataImportsUIDataImportsDialog DataImportsUIDataImportsDialog;
-typedef struct _DataImportsUIDataImportsDialogClass DataImportsUIDataImportsDialogClass;
-typedef struct _DataImportsUIDataImportsDialogPrivate DataImportsUIDataImportsDialogPrivate;
-
-#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ())
-#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface))
-#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-
-typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface;
-typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass;
-
-#define SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST (spit_data_imports_concrete_data_imports_host_get_type ())
-#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost))
-#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass))
-#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST))
-#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST))
-#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass))
-
-typedef struct _SpitDataImportsConcreteDataImportsHost SpitDataImportsConcreteDataImportsHost;
-typedef struct _SpitDataImportsConcreteDataImportsHostClass SpitDataImportsConcreteDataImportsHostClass;
-enum {
- DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_0_PROPERTY,
- DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* data_imports_ui_data_imports_dialog_properties[DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_NUM_PROPERTIES];
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DataImportsUIConcreteDialogPane {
- GObject parent_instance;
- DataImportsUIConcreteDialogPanePrivate * priv;
-};
-
-struct _DataImportsUIConcreteDialogPaneClass {
- GObjectClass parent_class;
-};
-
-struct _DataImportsUIConcreteDialogPanePrivate {
- GtkBox* pane_widget;
-};
-
-struct _DataImportsUIStaticMessagePane {
- DataImportsUIConcreteDialogPane parent_instance;
- DataImportsUIStaticMessagePanePrivate * priv;
-};
-
-struct _DataImportsUIStaticMessagePaneClass {
- DataImportsUIConcreteDialogPaneClass parent_class;
-};
-
-struct _DataImportsUILibrarySelectionPane {
- DataImportsUIConcreteDialogPane parent_instance;
- DataImportsUILibrarySelectionPanePrivate * priv;
-};
-
-struct _DataImportsUILibrarySelectionPaneClass {
- DataImportsUIConcreteDialogPaneClass parent_class;
-};
-
-struct _DataImportsUILibrarySelectionPanePrivate {
- SpitDataImportsPluginHost* host;
- SpitDataImportsImportableLibrary* selected_library;
- GFile* selected_file;
- GtkButton* import_button;
- GtkRadioButton* file_radio;
-};
-
-struct _Block11Data {
- int _ref_count_;
- DataImportsUILibrarySelectionPane* self;
- GtkFileChooserButton* file_chooser;
-};
-
-struct _Block12Data {
- int _ref_count_;
- DataImportsUILibrarySelectionPane* self;
- GtkRadioButton* button;
- SpitDataImportsImportableLibrary* library;
-};
-
-struct _DataImportsUIProgressPane {
- DataImportsUIConcreteDialogPane parent_instance;
- DataImportsUIProgressPanePrivate * priv;
-};
-
-struct _DataImportsUIProgressPaneClass {
- DataImportsUIConcreteDialogPaneClass parent_class;
-};
-
-struct _DataImportsUIProgressPanePrivate {
- GtkLabel* message_label;
- GtkLabel* progress_label;
- GtkProgressBar* progress_bar;
-};
-
-struct _DataImportsUIDataImportsDialog {
- GtkDialog parent_instance;
- DataImportsUIDataImportsDialogPrivate * priv;
-};
-
-struct _DataImportsUIDataImportsDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _DataImportsUIDataImportsDialogPrivate {
- GtkComboBoxText* service_selector_box;
- GtkBox* central_area_layouter;
- GtkButton* close_cancel_button;
- SpitDataImportsDialogPane* active_pane;
- SpitDataImportsConcreteDataImportsHost* host;
-};
-
-
-static gpointer data_imports_ui_concrete_dialog_pane_parent_class = NULL;
-static SpitDataImportsDialogPaneIface * data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_parent_iface = NULL;
-static gpointer data_imports_ui_static_message_pane_parent_class = NULL;
-static gpointer data_imports_ui_library_selection_pane_parent_class = NULL;
-static gpointer data_imports_ui_progress_pane_parent_class = NULL;
-static gpointer data_imports_ui_data_imports_dialog_parent_class = NULL;
-static DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_instance;
-static DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_instance = NULL;
-
-#define DATA_IMPORTS_UI_NO_PLUGINS_ENABLED_MESSAGE _ ("You do not have any data imports plugins enabled.\n" \
-"\n" \
-"In order to use the Import From Application functionality, you need to" \
-" have at least one data imports plugin enabled. Plugins can be enabled" \
-" in the Preferences dialog.")
-GType data_imports_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST;
-#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPanePrivate))
-DataImportsUIConcreteDialogPane* data_imports_ui_concrete_dialog_pane_new (void);
-DataImportsUIConcreteDialogPane* data_imports_ui_concrete_dialog_pane_construct (GType object_type);
-static GtkWidget* data_imports_ui_concrete_dialog_pane_real_get_widget (SpitDataImportsDialogPane* base);
-static SpitDataImportsDialogPaneGeometryOptions data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitDataImportsDialogPane* base);
-static void data_imports_ui_concrete_dialog_pane_real_on_pane_installed (SpitDataImportsDialogPane* base);
-static void data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitDataImportsDialogPane* base);
-static void data_imports_ui_concrete_dialog_pane_finalize (GObject * obj);
-GType data_imports_ui_static_message_pane_get_type (void) G_GNUC_CONST;
-DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new (const gchar* message_string);
-DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct (GType object_type,
- const gchar* message_string);
-DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new_with_pango (const gchar* msg);
-DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct_with_pango (GType object_type,
- const gchar* msg);
-GType data_imports_ui_library_selection_pane_get_type (void) G_GNUC_CONST;
-#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPanePrivate))
-DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label);
-DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_construct (GType object_type,
- SpitDataImportsPluginHost* host,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label);
-static void data_imports_ui_library_selection_pane_on_file_selected (DataImportsUILibrarySelectionPane* self,
- GFile* file);
-static GtkRadioButton* data_imports_ui_library_selection_pane_create_radio_button (DataImportsUILibrarySelectionPane* self,
- GtkBox* box,
- GtkRadioButton* group,
- SpitDataImportsImportableLibrary* library,
- const gchar* label,
- gint margin_left,
- gint margin_right);
-static Block11Data* block11_data_ref (Block11Data* _data11_);
-static void block11_data_unref (void * _userdata_);
-static void ___lambda23_ (Block11Data* _data11_);
-static void data_imports_ui_library_selection_pane_set_import_button_sensitivity (DataImportsUILibrarySelectionPane* self);
-static void ____lambda23__gtk_file_chooser_selection_changed (GtkFileChooser* _sender,
- gpointer self);
-static void __lambda24_ (DataImportsUILibrarySelectionPane* self);
-static void data_imports_ui_library_selection_pane_on_library_selected (DataImportsUILibrarySelectionPane* self,
- SpitDataImportsImportableLibrary* library);
-static void ___lambda24__gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static Block12Data* block12_data_ref (Block12Data* _data12_);
-static void block12_data_unref (void * _userdata_);
-static void __lambda22_ (Block12Data* _data12_);
-static void ___lambda22__gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
-static void data_imports_ui_library_selection_pane_finalize (GObject * obj);
-GType data_imports_ui_progress_pane_get_type (void) G_GNUC_CONST;
-#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPanePrivate))
-DataImportsUIProgressPane* data_imports_ui_progress_pane_new (const gchar* message);
-DataImportsUIProgressPane* data_imports_ui_progress_pane_construct (GType object_type,
- const gchar* message);
-void data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self,
- gdouble progress,
- const gchar* progress_message);
-void spin_event_loop (void);
-static void data_imports_ui_progress_pane_finalize (GObject * obj);
-GType data_imports_ui_data_imports_dialog_get_type (void) G_GNUC_CONST;
-GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_concrete_data_imports_host_get_type (void) G_GNUC_CONST;
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogPrivate))
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH 860
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT 688
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH 1024
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT 688
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH 600
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT 510
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH 16
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT 100
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_CONTENT_LABEL_WIDTH 500
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_ACTION_BUTTON_WIDTH 128
-DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_new (void);
-DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_construct (GType object_type);
-gint resources_use_header_bar (void);
-static gboolean data_imports_ui_data_imports_dialog_on_window_close (DataImportsUIDataImportsDialog* self,
- GdkEventAny* evt);
-static gboolean _data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self);
-SpitDataImportsService** spit_data_imports_load_services (gboolean load_all,
- int* result_length1);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gchar* configuration_facade_get_last_used_dataimports_service (ConfigurationFacade* self);
-static void data_imports_ui_data_imports_dialog_on_service_changed (DataImportsUIDataImportsDialog* self);
-static void _data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void data_imports_ui_data_imports_dialog_on_close_cancel_clicked (DataImportsUIDataImportsDialog* self);
-static void _data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void data_imports_ui_data_imports_dialog_set_standard_window_mode (DataImportsUIDataImportsDialog* self);
-void data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self,
- SpitDataImportsDialogPane* pane);
-void data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self);
-DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_get_or_create_instance (void);
-void data_imports_ui_data_imports_dialog_terminate_instance (void);
-static void data_imports_ui_data_imports_dialog_terminate (DataImportsUIDataImportsDialog* self);
-SpitDataImportsService** spit_data_imports_load_all_services (int* result_length1);
-void configuration_facade_set_last_used_dataimports_service (ConfigurationFacade* self,
- const gchar* service_name);
-SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service,
- DataImportsUIDataImportsDialog* dialog);
-SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_construct (GType object_type,
- SpitDataImportsService* service,
- DataImportsUIDataImportsDialog* dialog);
-static void data_imports_ui_data_imports_dialog_set_large_window_mode (DataImportsUIDataImportsDialog* self);
-static void data_imports_ui_data_imports_dialog_set_colossal_window_mode (DataImportsUIDataImportsDialog* self);
-static void data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (DataImportsUIDataImportsDialog* self);
-static void data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (DataImportsUIDataImportsDialog* self);
-SpitDataImportsDialogPane* data_imports_ui_data_imports_dialog_get_active_pane (DataImportsUIDataImportsDialog* self);
-void data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self);
-void data_imports_ui_data_imports_dialog_lock_service (DataImportsUIDataImportsDialog* self);
-void data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self);
-static void data_imports_ui_data_imports_dialog_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);
-
-
-DataImportsUIConcreteDialogPane*
-data_imports_ui_concrete_dialog_pane_construct (GType object_type)
-{
- DataImportsUIConcreteDialogPane * self = NULL;
- GtkBox* _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = (DataImportsUIConcreteDialogPane*) g_object_new (object_type, NULL);
-#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp0_);
-#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->pane_widget);
-#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->pane_widget = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return self;
-#line 396 "DataImportsUI.c"
-}
-
-
-DataImportsUIConcreteDialogPane*
-data_imports_ui_concrete_dialog_pane_new (void)
-{
-#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return data_imports_ui_concrete_dialog_pane_construct (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE);
-#line 405 "DataImportsUI.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return self ? g_object_ref (self) : NULL;
-#line 414 "DataImportsUI.c"
-}
-
-
-static GtkWidget*
-data_imports_ui_concrete_dialog_pane_real_get_widget (SpitDataImportsDialogPane* base)
-{
- DataImportsUIConcreteDialogPane * self;
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->pane_widget;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- result = _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return result;
-#line 435 "DataImportsUI.c"
-}
-
-
-static SpitDataImportsDialogPaneGeometryOptions
-data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitDataImportsDialogPane* base)
-{
- DataImportsUIConcreteDialogPane * self;
- SpitDataImportsDialogPaneGeometryOptions result = 0;
-#line 23 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- result = SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return result;
-#line 450 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_concrete_dialog_pane_real_on_pane_installed (SpitDataImportsDialogPane* base)
-{
- DataImportsUIConcreteDialogPane * self;
-#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
-#line 460 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitDataImportsDialogPane* base)
-{
- DataImportsUIConcreteDialogPane * self;
-#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
-#line 470 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_concrete_dialog_pane_class_init (DataImportsUIConcreteDialogPaneClass * klass)
-{
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_concrete_dialog_pane_parent_class = g_type_class_peek_parent (klass);
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_type_class_add_private (klass, sizeof (DataImportsUIConcreteDialogPanePrivate));
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- G_OBJECT_CLASS (klass)->finalize = data_imports_ui_concrete_dialog_pane_finalize;
-#line 483 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_interface_init (SpitDataImportsDialogPaneIface * iface)
-{
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- iface->get_widget = (GtkWidget* (*) (SpitDataImportsDialogPane *)) data_imports_ui_concrete_dialog_pane_real_get_widget;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- iface->get_preferred_geometry = (SpitDataImportsDialogPaneGeometryOptions (*) (SpitDataImportsDialogPane *)) data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- iface->on_pane_installed = (void (*) (SpitDataImportsDialogPane *)) data_imports_ui_concrete_dialog_pane_real_on_pane_installed;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- iface->on_pane_uninstalled = (void (*) (SpitDataImportsDialogPane *)) data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled;
-#line 500 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_concrete_dialog_pane_instance_init (DataImportsUIConcreteDialogPane * self)
-{
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv = DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_PRIVATE (self);
-#line 509 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_concrete_dialog_pane_finalize (GObject * obj)
-{
- DataImportsUIConcreteDialogPane * self;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
-#line 13 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->pane_widget);
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- G_OBJECT_CLASS (data_imports_ui_concrete_dialog_pane_parent_class)->finalize (obj);
-#line 523 "DataImportsUI.c"
-}
-
-
-GType
-data_imports_ui_concrete_dialog_pane_get_type (void)
-{
- static volatile gsize data_imports_ui_concrete_dialog_pane_type_id__volatile = 0;
- if (g_once_init_enter (&data_imports_ui_concrete_dialog_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIConcreteDialogPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_concrete_dialog_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIConcreteDialogPane), 0, (GInstanceInitFunc) data_imports_ui_concrete_dialog_pane_instance_init, NULL };
- static const GInterfaceInfo spit_data_imports_dialog_pane_info = { (GInterfaceInitFunc) data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType data_imports_ui_concrete_dialog_pane_type_id;
- data_imports_ui_concrete_dialog_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsUIConcreteDialogPane", &g_define_type_info, 0);
- g_type_add_interface_static (data_imports_ui_concrete_dialog_pane_type_id, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, &spit_data_imports_dialog_pane_info);
- g_once_init_leave (&data_imports_ui_concrete_dialog_pane_type_id__volatile, data_imports_ui_concrete_dialog_pane_type_id);
- }
- return data_imports_ui_concrete_dialog_pane_type_id__volatile;
-}
-
-
-DataImportsUIStaticMessagePane*
-data_imports_ui_static_message_pane_construct (GType object_type,
- const gchar* message_string)
-{
- DataImportsUIStaticMessagePane * self = NULL;
- GtkLabel* message_label = NULL;
- GtkLabel* _tmp0_;
- GtkWidget* _tmp1_;
- GtkBox* _tmp2_;
- GtkBox* _tmp3_;
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (message_string != NULL, NULL);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = (DataImportsUIStaticMessagePane*) data_imports_ui_concrete_dialog_pane_construct (object_type);
-#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = (GtkLabel*) gtk_label_new (message_string);
-#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp0_);
-#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- message_label = _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_box_get_type ()) ? ((GtkBox*) _tmp1_) : NULL;
-#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp2_ == NULL) {
-#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp1_);
-#line 571 "DataImportsUI.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = _tmp2_;
-#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (message_label, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp3_);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (message_label);
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return self;
-#line 583 "DataImportsUI.c"
-}
-
-
-DataImportsUIStaticMessagePane*
-data_imports_ui_static_message_pane_new (const gchar* message_string)
-{
-#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return data_imports_ui_static_message_pane_construct (DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, message_string);
-#line 592 "DataImportsUI.c"
-}
-
-
-DataImportsUIStaticMessagePane*
-data_imports_ui_static_message_pane_construct_with_pango (GType object_type,
- const gchar* msg)
-{
- DataImportsUIStaticMessagePane * self = NULL;
- GtkLabel* label = NULL;
- GtkLabel* _tmp0_;
- GtkWidget* _tmp1_;
- GtkBox* _tmp2_;
- GtkBox* _tmp3_;
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (msg != NULL, NULL);
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = (DataImportsUIStaticMessagePane*) data_imports_ui_concrete_dialog_pane_construct (object_type);
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = (GtkLabel*) gtk_label_new (NULL);
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp0_);
-#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- label = _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_label_set_markup (label, msg);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_label_set_line_wrap (label, TRUE);
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_box_get_type ()) ? ((GtkBox*) _tmp1_) : NULL;
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp2_ == NULL) {
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp1_);
-#line 628 "DataImportsUI.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = _tmp2_;
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (label, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp3_);
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (label);
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return self;
-#line 640 "DataImportsUI.c"
-}
-
-
-DataImportsUIStaticMessagePane*
-data_imports_ui_static_message_pane_new_with_pango (const gchar* msg)
-{
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return data_imports_ui_static_message_pane_construct_with_pango (DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, msg);
-#line 649 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_static_message_pane_class_init (DataImportsUIStaticMessagePaneClass * klass)
-{
-#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_static_message_pane_parent_class = g_type_class_peek_parent (klass);
-#line 658 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_static_message_pane_instance_init (DataImportsUIStaticMessagePane * self)
-{
-}
-
-
-GType
-data_imports_ui_static_message_pane_get_type (void)
-{
- static volatile gsize data_imports_ui_static_message_pane_type_id__volatile = 0;
- if (g_once_init_enter (&data_imports_ui_static_message_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIStaticMessagePaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_static_message_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIStaticMessagePane), 0, (GInstanceInitFunc) data_imports_ui_static_message_pane_instance_init, NULL };
- GType data_imports_ui_static_message_pane_type_id;
- data_imports_ui_static_message_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUIStaticMessagePane", &g_define_type_info, 0);
- g_once_init_leave (&data_imports_ui_static_message_pane_type_id__volatile, data_imports_ui_static_message_pane_type_id);
- }
- return data_imports_ui_static_message_pane_type_id__volatile;
-}
-
-
-static Block11Data*
-block11_data_ref (Block11Data* _data11_)
-{
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_atomic_int_inc (&_data11_->_ref_count_);
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return _data11_;
-#line 689 "DataImportsUI.c"
-}
-
-
-static void
-block11_data_unref (void * _userdata_)
-{
- Block11Data* _data11_;
- _data11_ = (Block11Data*) _userdata_;
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) {
-#line 700 "DataImportsUI.c"
- DataImportsUILibrarySelectionPane* self;
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = _data11_->self;
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_data11_->file_chooser);
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self);
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_slice_free (Block11Data, _data11_);
-#line 710 "DataImportsUI.c"
- }
-}
-
-
-static void
-___lambda23_ (Block11Data* _data11_)
-{
- DataImportsUILibrarySelectionPane* self;
- GtkFileChooserButton* _tmp0_;
- GFile* _tmp1_;
- GtkRadioButton* _tmp2_;
-#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = _data11_->self;
-#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = _data11_->file_chooser;
-#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = gtk_file_chooser_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->selected_file);
-#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->selected_file = _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = self->priv->file_radio;
-#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp2_ != NULL) {
-#line 736 "DataImportsUI.c"
- GtkRadioButton* _tmp3_;
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = self->priv->file_radio;
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 742 "DataImportsUI.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_library_selection_pane_set_import_button_sensitivity (self);
-#line 746 "DataImportsUI.c"
-}
-
-
-static void
-____lambda23__gtk_file_chooser_selection_changed (GtkFileChooser* _sender,
- gpointer self)
-{
-#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- ___lambda23_ (self);
-#line 756 "DataImportsUI.c"
-}
-
-
-static void
-__lambda24_ (DataImportsUILibrarySelectionPane* self)
-{
- SpitDataImportsImportableLibrary* _tmp0_;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->selected_library;
-#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp0_ != NULL) {
-#line 768 "DataImportsUI.c"
- SpitDataImportsImportableLibrary* _tmp1_;
-#line 115 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = self->priv->selected_library;
-#line 115 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_library_selection_pane_on_library_selected (self, _tmp1_);
-#line 774 "DataImportsUI.c"
- } else {
- GFile* _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = self->priv->selected_file;
-#line 116 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp2_ != NULL) {
-#line 781 "DataImportsUI.c"
- GFile* _tmp3_;
-#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = self->priv->selected_file;
-#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_library_selection_pane_on_file_selected (self, _tmp3_);
-#line 787 "DataImportsUI.c"
- } else {
-#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_debug ("DataImportsUI.vala:119: LibrarySelectionPane: Library or file should b" \
-"e selected.");
-#line 791 "DataImportsUI.c"
- }
- }
-}
-
-
-static void
-___lambda24__gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- __lambda24_ ((DataImportsUILibrarySelectionPane*) self);
-#line 803 "DataImportsUI.c"
-}
-
-
-DataImportsUILibrarySelectionPane*
-data_imports_ui_library_selection_pane_construct (GType object_type,
- SpitDataImportsPluginHost* host,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label)
-{
- DataImportsUILibrarySelectionPane * self = NULL;
- gboolean _tmp0_ = FALSE;
- GtkBox* content_box = NULL;
- GtkBox* _tmp1_;
- GtkBox* _tmp2_;
- GtkBox* _tmp3_;
- GtkLabel* welcome_label = NULL;
- GtkLabel* _tmp4_;
- GtkLabel* _tmp5_;
- GtkLabel* _tmp6_;
- GtkLabel* _tmp7_;
- GtkBox* _tmp8_;
- GtkLabel* _tmp9_;
- gint radio_margin_left = 0;
- gint radio_margin_right = 0;
- gint chooser_margin_left = 0;
- gint _tmp10_;
- gint chooser_margin_right = 0;
- gint _tmp11_;
- GtkRadioButton* lib_radio = NULL;
- GtkButton* _tmp38_;
- GtkButton* _tmp39_;
- GtkButtonBox* button_box = NULL;
- GtkButtonBox* _tmp40_;
- GtkButton* _tmp41_;
- GtkBox* _tmp42_;
- GtkWidget* _tmp43_;
- GtkBox* _tmp44_;
- GtkBox* _tmp45_;
- GtkBox* _tmp46_;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (welcome_message != NULL, NULL);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = (DataImportsUILibrarySelectionPane*) data_imports_ui_concrete_dialog_pane_construct (object_type);
-#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (discovered_libraries_length1 > 0) {
-#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = TRUE;
-#line 855 "DataImportsUI.c"
- } else {
-#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = data_imports_ui_library_selection_pane_on_file_selected != NULL;
-#line 859 "DataImportsUI.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _vala_assert (_tmp0_, "discovered_libraries.length > 0 || on_file_selected != null");
-#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->host = host;
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp1_);
-#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- content_box = _tmp1_;
-#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = content_box;
-#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), 30);
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = content_box;
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), 30);
-#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp4_ = (GtkLabel*) gtk_label_new (NULL);
-#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp4_);
-#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- welcome_label = _tmp4_;
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp5_ = welcome_label;
-#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_label_set_markup (_tmp5_, welcome_message);
-#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp6_ = welcome_label;
-#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_label_set_line_wrap (_tmp6_, TRUE);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp7_ = welcome_label;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp8_ = content_box;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp9_ = welcome_label;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 6);
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- radio_margin_left = 20;
-#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- radio_margin_right = 20;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp10_ = radio_margin_left;
-#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- chooser_margin_left = _tmp10_;
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp11_ = radio_margin_right;
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- chooser_margin_right = _tmp11_;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- lib_radio = NULL;
-#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (discovered_libraries_length1 > 0) {
-#line 919 "DataImportsUI.c"
- gint _tmp12_;
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp12_ = radio_margin_left;
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- chooser_margin_left = _tmp12_ + 20;
-#line 925 "DataImportsUI.c"
- {
- SpitDataImportsImportableLibrary** library_collection = NULL;
- gint library_collection_length1 = 0;
- gint _library_collection_size_ = 0;
- gint library_it = 0;
-#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- library_collection = discovered_libraries;
-#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- library_collection_length1 = discovered_libraries_length1;
-#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- for (library_it = 0; library_it < discovered_libraries_length1; library_it = library_it + 1) {
-#line 937 "DataImportsUI.c"
- SpitDataImportsImportableLibrary* _tmp13_;
- SpitDataImportsImportableLibrary* library = NULL;
-#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp13_ = _g_object_ref0 (library_collection[library_it]);
-#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- library = _tmp13_;
-#line 944 "DataImportsUI.c"
- {
- gchar* lib_radio_label = NULL;
- SpitDataImportsImportableLibrary* _tmp14_;
- gchar* _tmp15_;
- GtkBox* _tmp16_;
- GtkRadioButton* _tmp17_;
- SpitDataImportsImportableLibrary* _tmp18_;
- const gchar* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- GtkRadioButton* _tmp22_;
-#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp14_ = library;
-#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp15_ = spit_data_imports_importable_library_get_display_name (_tmp14_);
-#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- lib_radio_label = _tmp15_;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp16_ = content_box;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp17_ = lib_radio;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp18_ = library;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp19_ = lib_radio_label;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp20_ = radio_margin_left;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp21_ = radio_margin_right;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp22_ = data_imports_ui_library_selection_pane_create_radio_button (self, _tmp16_, _tmp17_, _tmp18_, _tmp19_, _tmp20_, _tmp21_);
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (lib_radio);
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- lib_radio = _tmp22_;
-#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_free0 (lib_radio_label);
-#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (library);
-#line 984 "DataImportsUI.c"
- }
- }
- }
-#line 91 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (file_select_label != NULL) {
-#line 990 "DataImportsUI.c"
- GtkBox* _tmp23_;
- GtkRadioButton* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- GtkRadioButton* _tmp27_;
- GtkRadioButton* _tmp28_;
- GtkRadioButton* _tmp29_;
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp23_ = content_box;
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp24_ = lib_radio;
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp25_ = radio_margin_left;
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp26_ = radio_margin_right;
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp27_ = data_imports_ui_library_selection_pane_create_radio_button (self, _tmp23_, _tmp24_, NULL, file_select_label, _tmp25_, _tmp26_);
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (lib_radio);
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- lib_radio = _tmp27_;
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp28_ = lib_radio;
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp29_ = _g_object_ref0 (_tmp28_);
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->file_radio);
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->file_radio = _tmp29_;
-#line 1020 "DataImportsUI.c"
- }
- }
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (file_select_label != NULL) {
-#line 1025 "DataImportsUI.c"
- Block11Data* _data11_;
- GtkFileChooserButton* _tmp30_;
- GtkFileChooserButton* _tmp31_;
- GtkFileChooserButton* _tmp32_;
- gint _tmp33_;
- GtkFileChooserButton* _tmp34_;
- gint _tmp35_;
- GtkBox* _tmp36_;
- GtkFileChooserButton* _tmp37_;
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data11_ = g_slice_new0 (Block11Data);
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data11_->_ref_count_ = 1;
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data11_->self = g_object_ref (self);
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp30_ = (GtkFileChooserButton*) gtk_file_chooser_button_new (_ ("Database file:"), GTK_FILE_CHOOSER_ACTION_OPEN);
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp30_);
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data11_->file_chooser = _tmp30_;
-#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp31_ = _data11_->file_chooser;
-#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_signal_connect_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_file_chooser_get_type (), GtkFileChooser), "selection-changed", (GCallback) ____lambda23__gtk_file_chooser_selection_changed, block11_data_ref (_data11_), (GClosureNotify) block11_data_unref, 0);
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp32_ = _data11_->file_chooser;
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp33_ = chooser_margin_left;
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget), _tmp33_);
-#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp34_ = _data11_->file_chooser;
-#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp35_ = chooser_margin_right;
-#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget), _tmp35_);
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp36_ = content_box;
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp37_ = _data11_->file_chooser;
-#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 6);
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- block11_data_unref (_data11_);
-#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data11_ = NULL;
-#line 1073 "DataImportsUI.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp38_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("_Import"));
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp38_);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->import_button);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->import_button = _tmp38_;
-#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp39_ = self->priv->import_button;
-#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_signal_connect_object (_tmp39_, "clicked", (GCallback) ___lambda24__gtk_button_clicked, self, 0);
-#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp40_ = (GtkButtonBox*) gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
-#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp40_);
-#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- button_box = _tmp40_;
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_set (button_box, "layout-style", GTK_BUTTONBOX_CENTER, NULL);
-#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp41_ = self->priv->import_button;
-#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (button_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget));
-#line 124 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp42_ = content_box;
-#line 124 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_end (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (button_box, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 6);
-#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp43_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp44_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp43_, gtk_box_get_type ()) ? ((GtkBox*) _tmp43_) : NULL;
-#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp44_ == NULL) {
-#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp43_);
-#line 1111 "DataImportsUI.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp45_ = _tmp44_;
-#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp46_ = content_box;
-#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp45_);
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_library_selection_pane_set_import_button_sensitivity (self);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (button_box);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (lib_radio);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (welcome_label);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (content_box);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return self;
-#line 1133 "DataImportsUI.c"
-}
-
-
-DataImportsUILibrarySelectionPane*
-data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label)
-{
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return data_imports_ui_library_selection_pane_construct (DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, host, welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label);
-#line 1146 "DataImportsUI.c"
-}
-
-
-static Block12Data*
-block12_data_ref (Block12Data* _data12_)
-{
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_atomic_int_inc (&_data12_->_ref_count_);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return _data12_;
-#line 1157 "DataImportsUI.c"
-}
-
-
-static void
-block12_data_unref (void * _userdata_)
-{
- Block12Data* _data12_;
- _data12_ = (Block12Data*) _userdata_;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
-#line 1168 "DataImportsUI.c"
- DataImportsUILibrarySelectionPane* self;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = _data12_->self;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_data12_->button);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_data12_->library);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_slice_free (Block12Data, _data12_);
-#line 1180 "DataImportsUI.c"
- }
-}
-
-
-static void
-__lambda22_ (Block12Data* _data12_)
-{
- DataImportsUILibrarySelectionPane* self;
- GtkRadioButton* _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = _data12_->self;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = _data12_->button;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = _tmp1_;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp2_) {
-#line 1202 "DataImportsUI.c"
- SpitDataImportsImportableLibrary* _tmp3_;
-#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = _g_object_ref0 (_data12_->library);
-#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->selected_library);
-#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->selected_library = _tmp3_;
-#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_library_selection_pane_set_import_button_sensitivity (self);
-#line 1212 "DataImportsUI.c"
- }
-}
-
-
-static void
-___lambda22__gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
-{
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- __lambda22_ (self);
-#line 1223 "DataImportsUI.c"
-}
-
-
-static GtkRadioButton*
-data_imports_ui_library_selection_pane_create_radio_button (DataImportsUILibrarySelectionPane* self,
- GtkBox* box,
- GtkRadioButton* group,
- SpitDataImportsImportableLibrary* library,
- const gchar* label,
- gint margin_left,
- gint margin_right)
-{
- GtkRadioButton* result = NULL;
- Block12Data* _data12_;
- SpitDataImportsImportableLibrary* _tmp0_;
- GtkRadioButton* _tmp1_;
- GtkRadioButton* _tmp4_;
- GtkRadioButton* _tmp5_;
- GtkRadioButton* _tmp6_;
- GtkRadioButton* _tmp7_;
- GtkRadioButton* _tmp8_;
- GtkRadioButton* _tmp9_;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self), NULL);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (GTK_IS_BOX (box), NULL);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail ((group == NULL) || GTK_IS_RADIO_BUTTON (group), NULL);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail ((library == NULL) || SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (library), NULL);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (label != NULL, NULL);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data12_ = g_slice_new0 (Block12Data);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data12_->_ref_count_ = 1;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data12_->self = g_object_ref (self);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = _g_object_ref0 (library);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_data12_->library);
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data12_->library = _tmp0_;
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = (GtkRadioButton*) gtk_radio_button_new_with_label_from_widget (group, label);
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp1_);
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data12_->button = _tmp1_;
-#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (group == NULL) {
-#line 1276 "DataImportsUI.c"
- GtkRadioButton* _tmp2_;
- SpitDataImportsImportableLibrary* _tmp3_;
-#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = _data12_->button;
-#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = _g_object_ref0 (_data12_->library);
-#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->selected_library);
-#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->selected_library = _tmp3_;
-#line 1289 "DataImportsUI.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp4_ = _data12_->button;
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_signal_connect_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) ___lambda22__gtk_toggle_button_toggled, block12_data_ref (_data12_), (GClosureNotify) block12_data_unref, 0);
-#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp5_ = _data12_->button;
-#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), margin_left);
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp6_ = _data12_->button;
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), margin_right);
-#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp7_ = _data12_->button;
-#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (box, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 6);
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp8_ = _data12_->button;
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- result = _tmp9_;
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- block12_data_unref (_data12_);
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _data12_ = NULL;
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return result;
-#line 1319 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_library_selection_pane_set_import_button_sensitivity (DataImportsUILibrarySelectionPane* self)
-{
- gboolean _tmp0_ = FALSE;
- SpitDataImportsImportableLibrary* _tmp1_;
- GtkButton* _tmp3_;
-#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self));
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = self->priv->selected_library;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp1_ != NULL) {
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = TRUE;
-#line 1337 "DataImportsUI.c"
- } else {
- GFile* _tmp2_;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = self->priv->selected_file;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = _tmp2_ != NULL;
-#line 1344 "DataImportsUI.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = self->priv->import_button;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), _tmp0_);
-#line 1350 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_library_selection_pane_on_library_selected (DataImportsUILibrarySelectionPane* self,
- SpitDataImportsImportableLibrary* library)
-{
- SpitDataImportsPluginHost* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
- SpitDataImportsDataImporter* _tmp2_;
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self));
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (library));
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->host;
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = spit_data_imports_plugin_host_get_data_importer (_tmp0_);
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = _tmp1_;
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- spit_data_imports_data_importer_on_library_selected (_tmp2_, library);
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp2_);
-#line 1375 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_library_selection_pane_on_file_selected (DataImportsUILibrarySelectionPane* self,
- GFile* file)
-{
- SpitDataImportsPluginHost* _tmp0_;
- SpitDataImportsDataImporter* _tmp1_;
- SpitDataImportsDataImporter* _tmp2_;
-#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self));
-#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->host;
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = spit_data_imports_plugin_host_get_data_importer (_tmp0_);
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = _tmp1_;
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- spit_data_imports_data_importer_on_file_selected (_tmp2_, file);
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp2_);
-#line 1400 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_library_selection_pane_class_init (DataImportsUILibrarySelectionPaneClass * klass)
-{
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_library_selection_pane_parent_class = g_type_class_peek_parent (klass);
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_type_class_add_private (klass, sizeof (DataImportsUILibrarySelectionPanePrivate));
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- G_OBJECT_CLASS (klass)->finalize = data_imports_ui_library_selection_pane_finalize;
-#line 1413 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_library_selection_pane_instance_init (DataImportsUILibrarySelectionPane * self)
-{
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv = DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_PRIVATE (self);
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->selected_library = NULL;
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->selected_file = NULL;
-#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->file_radio = NULL;
-#line 1428 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_library_selection_pane_finalize (GObject * obj)
-{
- DataImportsUILibrarySelectionPane * self;
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane);
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->selected_library);
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->selected_file);
-#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->import_button);
-#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->file_radio);
-#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- G_OBJECT_CLASS (data_imports_ui_library_selection_pane_parent_class)->finalize (obj);
-#line 1448 "DataImportsUI.c"
-}
-
-
-GType
-data_imports_ui_library_selection_pane_get_type (void)
-{
- static volatile gsize data_imports_ui_library_selection_pane_type_id__volatile = 0;
- if (g_once_init_enter (&data_imports_ui_library_selection_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataImportsUILibrarySelectionPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_library_selection_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUILibrarySelectionPane), 0, (GInstanceInitFunc) data_imports_ui_library_selection_pane_instance_init, NULL };
- GType data_imports_ui_library_selection_pane_type_id;
- data_imports_ui_library_selection_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUILibrarySelectionPane", &g_define_type_info, 0);
- g_once_init_leave (&data_imports_ui_library_selection_pane_type_id__volatile, data_imports_ui_library_selection_pane_type_id);
- }
- return data_imports_ui_library_selection_pane_type_id__volatile;
-}
-
-
-DataImportsUIProgressPane*
-data_imports_ui_progress_pane_construct (GType object_type,
- const gchar* message)
-{
- DataImportsUIProgressPane * self = NULL;
- GtkBox* content_box = NULL;
- GtkBox* _tmp0_;
- GtkLabel* _tmp1_;
- GtkLabel* _tmp2_;
- GtkProgressBar* _tmp3_;
- GtkProgressBar* _tmp4_;
- GtkLabel* _tmp5_;
- GtkLabel* _tmp6_;
- GtkWidget* _tmp7_;
- GtkContainer* _tmp8_;
- GtkContainer* _tmp9_;
-#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (message != NULL, NULL);
-#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = (DataImportsUIProgressPane*) data_imports_ui_concrete_dialog_pane_construct (object_type);
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp0_);
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- content_box = _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = (GtkLabel*) gtk_label_new (message);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp1_);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->message_label);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->message_label = _tmp1_;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = self->priv->message_label;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 6);
-#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = (GtkProgressBar*) gtk_progress_bar_new ();
-#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp3_);
-#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->progress_bar);
-#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->progress_bar = _tmp3_;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp4_ = self->priv->progress_bar;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE, TRUE, (guint) 6);
-#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp5_ = (GtkLabel*) gtk_label_new ("");
-#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp5_);
-#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->progress_label);
-#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->progress_label = _tmp5_;
-#line 178 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp6_ = self->priv->progress_label;
-#line 178 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE, TRUE, (guint) 6);
-#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp7_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp7_) : NULL;
-#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp8_ == NULL) {
-#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp7_);
-#line 1536 "DataImportsUI.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp9_ = _tmp8_;
-#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_container_add (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (content_box, gtk_widget_get_type (), GtkWidget));
-#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp9_);
-#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (content_box);
-#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return self;
-#line 1548 "DataImportsUI.c"
-}
-
-
-DataImportsUIProgressPane*
-data_imports_ui_progress_pane_new (const gchar* message)
-{
-#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return data_imports_ui_progress_pane_construct (DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, message);
-#line 1557 "DataImportsUI.c"
-}
-
-
-void
-data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self,
- gdouble progress,
- const gchar* progress_message)
-{
- GtkProgressBar* _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_PROGRESS_PANE (self));
-#line 184 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->progress_bar;
-#line 184 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_progress_bar_set_fraction (_tmp0_, progress);
-#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (progress_message != NULL) {
-#line 1575 "DataImportsUI.c"
- GtkLabel* _tmp1_;
-#line 186 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = self->priv->progress_label;
-#line 186 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_label_set_label (_tmp1_, progress_message);
-#line 1581 "DataImportsUI.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- spin_event_loop ();
-#line 1585 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_progress_pane_class_init (DataImportsUIProgressPaneClass * klass)
-{
-#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_progress_pane_parent_class = g_type_class_peek_parent (klass);
-#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_type_class_add_private (klass, sizeof (DataImportsUIProgressPanePrivate));
-#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- G_OBJECT_CLASS (klass)->finalize = data_imports_ui_progress_pane_finalize;
-#line 1598 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_progress_pane_instance_init (DataImportsUIProgressPane * self)
-{
-#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv = DATA_IMPORTS_UI_PROGRESS_PANE_GET_PRIVATE (self);
-#line 1607 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_progress_pane_finalize (GObject * obj)
-{
- DataImportsUIProgressPane * self;
-#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->message_label);
-#line 168 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->progress_label);
-#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->progress_bar);
-#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- G_OBJECT_CLASS (data_imports_ui_progress_pane_parent_class)->finalize (obj);
-#line 1625 "DataImportsUI.c"
-}
-
-
-GType
-data_imports_ui_progress_pane_get_type (void)
-{
- static volatile gsize data_imports_ui_progress_pane_type_id__volatile = 0;
- if (g_once_init_enter (&data_imports_ui_progress_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIProgressPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_progress_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIProgressPane), 0, (GInstanceInitFunc) data_imports_ui_progress_pane_instance_init, NULL };
- GType data_imports_ui_progress_pane_type_id;
- data_imports_ui_progress_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUIProgressPane", &g_define_type_info, 0);
- g_once_init_leave (&data_imports_ui_progress_pane_type_id__volatile, data_imports_ui_progress_pane_type_id);
- }
- return data_imports_ui_progress_pane_type_id__volatile;
-}
-
-
-static gboolean
-_data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self)
-{
- gboolean result;
- result = data_imports_ui_data_imports_dialog_on_window_close ((DataImportsUIDataImportsDialog*) self, event);
-#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return result;
-#line 1652 "DataImportsUI.c"
-}
-
-
-static void
-_data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_on_service_changed ((DataImportsUIDataImportsDialog*) self);
-#line 1662 "DataImportsUI.c"
-}
-
-
-static void
-_data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 305 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_on_close_cancel_clicked ((DataImportsUIDataImportsDialog*) self);
-#line 1672 "DataImportsUI.c"
-}
-
-
-DataImportsUIDataImportsDialog*
-data_imports_ui_data_imports_dialog_construct (GType object_type)
-{
- DataImportsUIDataImportsDialog * self = NULL;
- gboolean use_header = FALSE;
- gboolean _tmp0_;
- gchar* title = NULL;
- gchar* _tmp2_;
- gchar* label = NULL;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- SpitDataImportsService** loaded_services = NULL;
- gint _tmp5_;
- SpitDataImportsService** _tmp6_;
- gint loaded_services_length1;
- gint _loaded_services_size_;
- SpitDataImportsService** _tmp7_;
- gint _tmp7__length1;
- GtkBox* _tmp62_;
- GtkBox* _tmp63_;
- GtkBox* _tmp64_;
- gboolean _tmp65_;
- GtkButton* _tmp75_;
- SpitDataImportsService** _tmp76_;
- gint _tmp76__length1;
-#line 211 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- use_header = resources_use_header_bar () == 1;
-#line 212 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = (DataImportsUIDataImportsDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = use_header;
-#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp0_) {
-#line 1709 "DataImportsUI.c"
- GtkWidget* _tmp1_;
-#line 214 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 214 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_header_bar_set_show_close_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_header_bar_get_type (), GtkHeaderBar), FALSE);
-#line 1715 "DataImportsUI.c"
- }
-#line 216 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event, self, 0);
-#line 219 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = g_strdup (_ ("Import From Application"));
-#line 219 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- title = _tmp2_;
-#line 220 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = g_strdup (_ ("Import media _from:"));
-#line 220 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- label = _tmp3_;
-#line 222 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp4_ = title;
-#line 222 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp4_);
-#line 224 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp6_ = spit_data_imports_load_services (FALSE, &_tmp5_);
-#line 224 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- loaded_services = _tmp6_;
-#line 224 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- loaded_services_length1 = _tmp5_;
-#line 224 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _loaded_services_size_ = loaded_services_length1;
-#line 226 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp7_ = loaded_services;
-#line 226 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp7__length1 = loaded_services_length1;
-#line 226 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp7__length1 > 0) {
-#line 1747 "DataImportsUI.c"
- GtkComboBoxText* _tmp8_;
- GtkComboBoxText* _tmp9_;
- gchar* last_used_service = NULL;
- ConfigFacade* _tmp10_;
- ConfigFacade* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gint ticker = 0;
- gint last_used_index = 0;
- SpitDataImportsService** _tmp14_;
- gint _tmp14__length1;
- gint _tmp28_;
- GtkComboBoxText* _tmp32_;
- gboolean _tmp33_;
-#line 229 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp8_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 229 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp8_);
-#line 229 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->service_selector_box);
-#line 229 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->service_selector_box = _tmp8_;
-#line 230 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp9_ = self->priv->service_selector_box;
-#line 230 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp10_ = config_facade_get_instance ();
-#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp11_ = _tmp10_;
-#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp12_ = configuration_facade_get_last_used_dataimports_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp13_ = _tmp12_;
-#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp11_);
-#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- last_used_service = _tmp13_;
-#line 235 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- ticker = 0;
-#line 236 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- last_used_index = -1;
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp14_ = loaded_services;
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp14__length1 = loaded_services_length1;
-#line 1794 "DataImportsUI.c"
- {
- SpitDataImportsService** service_collection = NULL;
- gint service_collection_length1 = 0;
- gint _service_collection_size_ = 0;
- gint service_it = 0;
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_collection = _tmp14_;
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_collection_length1 = _tmp14__length1;
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- for (service_it = 0; service_it < _tmp14__length1; service_it = service_it + 1) {
-#line 1806 "DataImportsUI.c"
- SpitDataImportsService* _tmp15_;
- SpitDataImportsService* service = NULL;
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp15_ = _g_object_ref0 (service_collection[service_it]);
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service = _tmp15_;
-#line 1813 "DataImportsUI.c"
- {
- gchar* curr_service_id = NULL;
- SpitDataImportsService* _tmp16_;
- const gchar* _tmp17_;
- gchar* _tmp18_;
- gboolean _tmp19_ = FALSE;
- const gchar* _tmp20_;
- GtkComboBoxText* _tmp24_;
- SpitDataImportsService* _tmp25_;
- const gchar* _tmp26_;
- gint _tmp27_;
-#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp16_ = service;
-#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp17_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp18_ = g_strdup (_tmp17_);
-#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- curr_service_id = _tmp18_;
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp20_ = last_used_service;
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp20_ != NULL) {
-#line 1837 "DataImportsUI.c"
- const gchar* _tmp21_;
- const gchar* _tmp22_;
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp21_ = last_used_service;
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp22_ = curr_service_id;
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp19_ = g_strcmp0 (_tmp21_, _tmp22_) == 0;
-#line 1846 "DataImportsUI.c"
- } else {
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp19_ = FALSE;
-#line 1850 "DataImportsUI.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp19_) {
-#line 1854 "DataImportsUI.c"
- gint _tmp23_;
-#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp23_ = ticker;
-#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- last_used_index = _tmp23_;
-#line 1860 "DataImportsUI.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp24_ = self->priv->service_selector_box;
-#line 242 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp25_ = service;
-#line 242 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp26_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 242 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_combo_box_text_append_text (_tmp24_, _tmp26_);
-#line 243 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp27_ = ticker;
-#line 243 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- ticker = _tmp27_ + 1;
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_free0 (curr_service_id);
-#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (service);
-#line 1878 "DataImportsUI.c"
- }
- }
- }
-#line 245 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp28_ = last_used_index;
-#line 245 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp28_ >= 0) {
-#line 1886 "DataImportsUI.c"
- GtkComboBoxText* _tmp29_;
- gint _tmp30_;
-#line 246 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp29_ = self->priv->service_selector_box;
-#line 246 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp30_ = last_used_index;
-#line 246 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_combo_box_get_type (), GtkComboBox), _tmp30_);
-#line 1895 "DataImportsUI.c"
- } else {
- GtkComboBoxText* _tmp31_;
-#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp31_ = self->priv->service_selector_box;
-#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 1902 "DataImportsUI.c"
- }
-#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp32_ = self->priv->service_selector_box;
-#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed, self, 0);
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp33_ = use_header;
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (!_tmp33_) {
-#line 1912 "DataImportsUI.c"
- GtkLabel* service_selector_box_label = NULL;
- const gchar* _tmp34_;
- GtkLabel* _tmp35_;
- GtkLabel* _tmp36_;
- GtkComboBoxText* _tmp37_;
- GtkLabel* _tmp38_;
- GtkLabel* _tmp39_;
- GtkComboBoxText* _tmp40_;
- GtkComboBoxText* _tmp41_;
- GtkComboBoxText* _tmp42_;
- GtkComboBoxText* _tmp43_;
- GtkBox* service_selector_layouter = NULL;
- GtkBox* _tmp44_;
- GtkBox* _tmp45_;
- GtkBox* _tmp46_;
- GtkLabel* _tmp47_;
- GtkBox* _tmp48_;
- GtkComboBoxText* _tmp49_;
- GtkBox* service_area_layouter = NULL;
- GtkBox* _tmp50_;
- GtkBox* _tmp51_;
- GtkBox* _tmp52_;
- GtkSeparator* service_central_separator = NULL;
- GtkSeparator* _tmp53_;
- GtkBox* _tmp54_;
- GtkSeparator* _tmp55_;
- GtkBox* _tmp56_;
- GtkBox* _tmp57_;
- GtkBox* _tmp58_;
- GtkBox* _tmp59_;
- GtkBox* _tmp60_;
- GtkBox* _tmp61_;
-#line 254 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp34_ = label;
-#line 254 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp35_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp34_);
-#line 254 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp35_);
-#line 254 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_selector_box_label = _tmp35_;
-#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp36_ = service_selector_box_label;
-#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp37_ = self->priv->service_selector_box;
-#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_label_set_mnemonic_widget (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget));
-#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp38_ = service_selector_box_label;
-#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp39_ = service_selector_box_label;
-#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 263 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp40_ = self->priv->service_selector_box;
-#line 263 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END);
-#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp41_ = self->priv->service_selector_box;
-#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp42_ = self->priv->service_selector_box;
-#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp43_ = self->priv->service_selector_box;
-#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp44_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
-#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp44_);
-#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_selector_layouter = _tmp44_;
-#line 269 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp45_ = service_selector_layouter;
-#line 269 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_container_get_type (), GtkContainer), (guint) 12);
-#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp46_ = service_selector_layouter;
-#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp47_ = service_selector_box_label;
-#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_widget_get_type (), GtkWidget));
-#line 271 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp48_ = service_selector_layouter;
-#line 271 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp49_ = self->priv->service_selector_box;
-#line 271 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp50_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp50_);
-#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_area_layouter = _tmp50_;
-#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp51_ = service_area_layouter;
-#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp52_ = service_selector_layouter;
-#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp53_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
-#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp53_);
-#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_central_separator = _tmp53_;
-#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp54_ = service_area_layouter;
-#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp55_ = service_central_separator;
-#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_widget_get_type (), GtkWidget));
-#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp56_ = service_area_layouter;
-#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL);
-#line 280 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp57_ = service_area_layouter;
-#line 280 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp58_ = service_area_layouter;
-#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 282 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp59_ = service_area_layouter;
-#line 282 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp60_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp61_ = service_area_layouter;
-#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (service_central_separator);
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (service_area_layouter);
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (service_selector_layouter);
-#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (service_selector_box_label);
-#line 2059 "DataImportsUI.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_free0 (last_used_service);
-#line 2063 "DataImportsUI.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp62_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp62_);
-#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->central_area_layouter);
-#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->central_area_layouter = _tmp62_;
-#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp63_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp64_ = self->priv->central_area_layouter;
-#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp65_ = use_header;
-#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp65_) {
-#line 2083 "DataImportsUI.c"
- GtkButton* _tmp66_;
- GtkButton* _tmp67_;
- GtkWidget* _tmp68_;
- GtkButton* _tmp69_;
- GtkComboBoxText* _tmp70_;
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp66_ = (GtkButton*) gtk_button_new_with_mnemonic ("_Cancel");
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp66_);
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->close_cancel_button);
-#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->close_cancel_button = _tmp66_;
-#line 295 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp67_ = self->priv->close_cancel_button;
-#line 295 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 296 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp68_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 296 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp69_ = self->priv->close_cancel_button;
-#line 296 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_header_bar_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_widget_get_type (), GtkWidget));
-#line 297 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp70_ = self->priv->service_selector_box;
-#line 297 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp70_ != NULL) {
-#line 2111 "DataImportsUI.c"
- GtkWidget* _tmp71_;
- GtkComboBoxText* _tmp72_;
-#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp71_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp72_ = self->priv->service_selector_box;
-#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_header_bar_pack_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget));
-#line 2120 "DataImportsUI.c"
- }
- } else {
- GtkWidget* _tmp73_;
- GtkButton* _tmp74_;
-#line 302 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), _ ("_Cancel"), (gint) GTK_RESPONSE_CANCEL);
-#line 303 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp73_ = gtk_dialog_get_widget_for_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_CANCEL);
-#line 303 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp74_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp73_, gtk_button_get_type ()) ? ((GtkButton*) _tmp73_) : NULL);
-#line 303 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->close_cancel_button);
-#line 303 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->close_cancel_button = _tmp74_;
-#line 2135 "DataImportsUI.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp75_ = self->priv->close_cancel_button;
-#line 305 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_signal_connect_object (_tmp75_, "clicked", (GCallback) _data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked, self, 0);
-#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_set_standard_window_mode (self);
-#line 309 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp76_ = loaded_services;
-#line 309 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp76__length1 = loaded_services_length1;
-#line 309 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp76__length1 > 0) {
-#line 311 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_on_service_changed (self);
-#line 2151 "DataImportsUI.c"
- } else {
- DataImportsUIStaticMessagePane* _tmp77_;
- DataImportsUIStaticMessagePane* _tmp78_;
-#line 314 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp77_ = data_imports_ui_static_message_pane_new_with_pango (DATA_IMPORTS_UI_NO_PLUGINS_ENABLED_MESSAGE);
-#line 314 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp78_ = _tmp77_;
-#line 314 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_install_pane (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
-#line 314 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp78_);
-#line 315 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_set_close_button_mode (self);
-#line 2165 "DataImportsUI.c"
- }
-#line 318 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- loaded_services = (_vala_array_free (loaded_services, loaded_services_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_free0 (label);
-#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_free0 (title);
-#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return self;
-#line 2177 "DataImportsUI.c"
-}
-
-
-DataImportsUIDataImportsDialog*
-data_imports_ui_data_imports_dialog_new (void)
-{
-#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return data_imports_ui_data_imports_dialog_construct (DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG);
-#line 2186 "DataImportsUI.c"
-}
-
-
-DataImportsUIDataImportsDialog*
-data_imports_ui_data_imports_dialog_get_or_create_instance (void)
-{
- DataImportsUIDataImportsDialog* result = NULL;
- DataImportsUIDataImportsDialog* _tmp0_;
- DataImportsUIDataImportsDialog* _tmp2_;
- DataImportsUIDataImportsDialog* _tmp3_;
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = data_imports_ui_data_imports_dialog_instance;
-#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp0_ == NULL) {
-#line 2201 "DataImportsUI.c"
- DataImportsUIDataImportsDialog* _tmp1_;
-#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = data_imports_ui_data_imports_dialog_new ();
-#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_object_ref_sink (_tmp1_);
-#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (data_imports_ui_data_imports_dialog_instance);
-#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_instance = _tmp1_;
-#line 2211 "DataImportsUI.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = data_imports_ui_data_imports_dialog_instance;
-#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- result = _tmp3_;
-#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return result;
-#line 2221 "DataImportsUI.c"
-}
-
-
-void
-data_imports_ui_data_imports_dialog_terminate_instance (void)
-{
- DataImportsUIDataImportsDialog* _tmp0_;
-#line 329 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = data_imports_ui_data_imports_dialog_instance;
-#line 329 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp0_ != NULL) {
-#line 2233 "DataImportsUI.c"
- DataImportsUIDataImportsDialog* _tmp1_;
-#line 330 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = data_imports_ui_data_imports_dialog_instance;
-#line 330 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_terminate (_tmp1_);
-#line 2239 "DataImportsUI.c"
- }
-#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (data_imports_ui_data_imports_dialog_instance);
-#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_instance = NULL;
-#line 2245 "DataImportsUI.c"
-}
-
-
-static gboolean
-data_imports_ui_data_imports_dialog_on_window_close (DataImportsUIDataImportsDialog* self,
- GdkEventAny* evt)
-{
- gboolean result = FALSE;
-#line 335 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self), FALSE);
-#line 335 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (evt != NULL, FALSE);
-#line 336 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_debug ("DataImportsUI.vala:336: DataImportsDialog: on_window_close( ): invoked" \
-".");
-#line 337 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_terminate (self);
-#line 339 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- result = TRUE;
-#line 339 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return result;
-#line 2266 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_on_service_changed (DataImportsUIDataImportsDialog* self)
-{
- gchar* service_name = NULL;
- GtkComboBoxText* _tmp0_;
- gchar* _tmp1_;
- SpitDataImportsService* selected_service = NULL;
- SpitDataImportsService** services = NULL;
- gint _tmp2_;
- SpitDataImportsService** _tmp3_;
- gint services_length1;
- gint _services_size_;
- SpitDataImportsService** _tmp4_;
- gint _tmp4__length1;
- SpitDataImportsService* _tmp11_;
- ConfigFacade* _tmp12_;
- ConfigFacade* _tmp13_;
- SpitDataImportsService* _tmp14_;
- const gchar* _tmp15_;
- SpitDataImportsService* _tmp16_;
- SpitDataImportsConcreteDataImportsHost* _tmp17_;
- SpitDataImportsConcreteDataImportsHost* _tmp18_;
-#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 343 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_debug ("DataImportsUI.vala:343: DataImportsDialog: on_service_changed invoked.");
-#line 344 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->service_selector_box;
-#line 344 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_);
-#line 344 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_name = _tmp1_;
-#line 346 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- selected_service = NULL;
-#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = spit_data_imports_load_all_services (&_tmp2_);
-#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- services = _tmp3_;
-#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- services_length1 = _tmp2_;
-#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _services_size_ = services_length1;
-#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp4_ = services;
-#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp4__length1 = services_length1;
-#line 2316 "DataImportsUI.c"
- {
- SpitDataImportsService** service_collection = NULL;
- gint service_collection_length1 = 0;
- gint _service_collection_size_ = 0;
- gint service_it = 0;
-#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_collection = _tmp4_;
-#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service_collection_length1 = _tmp4__length1;
-#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- for (service_it = 0; service_it < _tmp4__length1; service_it = service_it + 1) {
-#line 2328 "DataImportsUI.c"
- SpitDataImportsService* _tmp5_;
- SpitDataImportsService* service = NULL;
-#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp5_ = _g_object_ref0 (service_collection[service_it]);
-#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- service = _tmp5_;
-#line 2335 "DataImportsUI.c"
- {
- SpitDataImportsService* _tmp6_;
- const gchar* _tmp7_;
- const gchar* _tmp8_;
-#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp6_ = service;
-#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp7_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp8_ = service_name;
-#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (g_strcmp0 (_tmp7_, _tmp8_) == 0) {
-#line 2348 "DataImportsUI.c"
- SpitDataImportsService* _tmp9_;
- SpitDataImportsService* _tmp10_;
-#line 350 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp9_ = service;
-#line 350 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 350 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (selected_service);
-#line 350 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- selected_service = _tmp10_;
-#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (service);
-#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- break;
-#line 2363 "DataImportsUI.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (service);
-#line 2367 "DataImportsUI.c"
- }
- }
- }
-#line 354 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp11_ = selected_service;
-#line 354 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _vala_assert (_tmp11_ != NULL, "selected_service != null");
-#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp12_ = config_facade_get_instance ();
-#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp13_ = _tmp12_;
-#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp14_ = selected_service;
-#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp15_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- configuration_facade_set_last_used_dataimports_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp15_);
-#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp13_);
-#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp16_ = selected_service;
-#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp17_ = spit_data_imports_concrete_data_imports_host_new (_tmp16_, self);
-#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->host);
-#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->host = _tmp17_;
-#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp18_ = self->priv->host;
-#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- spit_data_imports_plugin_host_start_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (selected_service);
-#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_free0 (service_name);
-#line 2405 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_on_close_cancel_clicked (DataImportsUIDataImportsDialog* self)
-{
-#line 362 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 363 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_debug ("DataImportsUI.vala:363: DataImportsDialog: on_close_cancel_clicked( ):" \
-" invoked.");
-#line 365 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_terminate (self);
-#line 2418 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_terminate (DataImportsUIDataImportsDialog* self)
-{
- SpitDataImportsConcreteDataImportsHost* _tmp0_;
-#line 368 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 369 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_debug ("DataImportsUI.vala:369: DataImportsDialog: terminate( ): invoked.");
-#line 371 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->host;
-#line 371 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp0_ != NULL) {
-#line 2434 "DataImportsUI.c"
- SpitDataImportsConcreteDataImportsHost* _tmp1_;
-#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = self->priv->host;
-#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- spit_data_imports_plugin_host_stop_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
-#line 373 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->host);
-#line 373 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->host = NULL;
-#line 2444 "DataImportsUI.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (data_imports_ui_data_imports_dialog_instance);
-#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_instance = NULL;
-#line 2454 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_set_large_window_mode (DataImportsUIDataImportsDialog* self)
-{
- GtkBox* _tmp0_;
-#line 381 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT);
-#line 383 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->central_area_layouter;
-#line 383 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT);
-#line 385 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 2472 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_set_colossal_window_mode (DataImportsUIDataImportsDialog* self)
-{
- GtkBox* _tmp0_;
-#line 388 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 389 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT);
-#line 390 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->central_area_layouter;
-#line 390 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT);
-#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 2490 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_set_standard_window_mode (DataImportsUIDataImportsDialog* self)
-{
- GtkBox* _tmp0_;
-#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT);
-#line 397 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->central_area_layouter;
-#line 397 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT);
-#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 2508 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (DataImportsUIDataImportsDialog* self)
-{
-#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 2519 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (DataImportsUIDataImportsDialog* self)
-{
-#line 406 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 2530 "DataImportsUI.c"
-}
-
-
-SpitDataImportsDialogPane*
-data_imports_ui_data_imports_dialog_get_active_pane (DataImportsUIDataImportsDialog* self)
-{
- SpitDataImportsDialogPane* result = NULL;
- SpitDataImportsDialogPane* _tmp0_;
- SpitDataImportsDialogPane* _tmp1_;
-#line 410 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self), NULL);
-#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->active_pane;
-#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- result = _tmp1_;
-#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- return result;
-#line 2550 "DataImportsUI.c"
-}
-
-
-void
-data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self)
-{
- GtkButton* _tmp0_;
- GtkButton* _tmp1_;
-#line 414 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 415 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->close_cancel_button;
-#line 415 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_button_set_label (_tmp0_, _ ("_Close"));
-#line 416 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = self->priv->close_cancel_button;
-#line 416 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 2569 "DataImportsUI.c"
-}
-
-
-void
-data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self)
-{
- GtkButton* _tmp0_;
-#line 419 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 420 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->close_cancel_button;
-#line 420 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_button_set_label (_tmp0_, _ ("_Cancel"));
-#line 2583 "DataImportsUI.c"
-}
-
-
-void
-data_imports_ui_data_imports_dialog_lock_service (DataImportsUIDataImportsDialog* self)
-{
- GtkComboBoxText* _tmp0_;
-#line 423 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 424 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->service_selector_box;
-#line 424 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 2597 "DataImportsUI.c"
-}
-
-
-void
-data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self)
-{
- GtkComboBoxText* _tmp0_;
-#line 427 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 428 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->service_selector_box;
-#line 428 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 2611 "DataImportsUI.c"
-}
-
-
-void
-data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self,
- SpitDataImportsDialogPane* pane)
-{
- SpitDataImportsDialogPane* _tmp0_;
- GtkBox* _tmp6_;
- GtkWidget* _tmp7_;
- GtkWidget* _tmp8_;
- SpitDataImportsDialogPaneGeometryOptions geometry_options = 0;
- SpitDataImportsDialogPaneGeometryOptions _tmp9_;
- SpitDataImportsDialogPaneGeometryOptions _tmp11_;
- SpitDataImportsDialogPane* _tmp12_;
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
-#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane));
-#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_debug ("DataImportsUI.vala:432: DataImportsDialog: install_pane( ): invoked.");
-#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp0_ = self->priv->active_pane;
-#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if (_tmp0_ != NULL) {
-#line 2637 "DataImportsUI.c"
- SpitDataImportsDialogPane* _tmp1_;
- GtkBox* _tmp2_;
- SpitDataImportsDialogPane* _tmp3_;
- GtkWidget* _tmp4_;
- GtkWidget* _tmp5_;
-#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_debug ("DataImportsUI.vala:435: DataImportsDialog: install_pane( ): a pane is " \
-"already installed; removing it.");
-#line 437 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp1_ = self->priv->active_pane;
-#line 437 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- spit_data_imports_dialog_pane_on_pane_uninstalled (_tmp1_);
-#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp2_ = self->priv->central_area_layouter;
-#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp3_ = self->priv->active_pane;
-#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp4_ = spit_data_imports_dialog_pane_get_widget (_tmp3_);
-#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp5_ = _tmp4_;
-#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), _tmp5_);
-#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp5_);
-#line 2661 "DataImportsUI.c"
- }
-#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp6_ = self->priv->central_area_layouter;
-#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp7_ = spit_data_imports_dialog_pane_get_widget (pane);
-#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp8_ = _tmp7_;
-#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_box_pack_start (_tmp6_, _tmp8_, TRUE, TRUE, (guint) 0);
-#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (_tmp8_);
-#line 442 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- geometry_options = spit_data_imports_dialog_pane_get_preferred_geometry (pane);
-#line 446 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp9_ = geometry_options;
-#line 446 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if ((_tmp9_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE) != 0) {
-#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_set_large_window_mode (self);
-#line 2683 "DataImportsUI.c"
- } else {
- SpitDataImportsDialogPaneGeometryOptions _tmp10_;
-#line 448 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp10_ = geometry_options;
-#line 448 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if ((_tmp10_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE) != 0) {
-#line 449 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_set_colossal_window_mode (self);
-#line 2692 "DataImportsUI.c"
- } else {
-#line 451 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_set_standard_window_mode (self);
-#line 2696 "DataImportsUI.c"
- }
- }
-#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp11_ = geometry_options;
-#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- if ((_tmp11_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE) != 0) {
-#line 454 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (self);
-#line 2705 "DataImportsUI.c"
- } else {
-#line 456 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (self);
-#line 2709 "DataImportsUI.c"
- }
-#line 458 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _tmp12_ = _g_object_ref0 (pane);
-#line 458 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->active_pane);
-#line 458 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv->active_pane = _tmp12_;
-#line 459 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- spit_data_imports_dialog_pane_on_pane_installed (pane);
-#line 2719 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_class_init (DataImportsUIDataImportsDialogClass * klass)
-{
-#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- data_imports_ui_data_imports_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- g_type_class_add_private (klass, sizeof (DataImportsUIDataImportsDialogPrivate));
-#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- G_OBJECT_CLASS (klass)->finalize = data_imports_ui_data_imports_dialog_finalize;
-#line 2732 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_instance_init (DataImportsUIDataImportsDialog * self)
-{
-#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self->priv = DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_PRIVATE (self);
-#line 2741 "DataImportsUI.c"
-}
-
-
-static void
-data_imports_ui_data_imports_dialog_finalize (GObject * obj)
-{
- DataImportsUIDataImportsDialog * self;
-#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog);
-#line 204 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->service_selector_box);
-#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->central_area_layouter);
-#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->close_cancel_button);
-#line 207 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->active_pane);
-#line 208 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- _g_object_unref0 (self->priv->host);
-#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
- G_OBJECT_CLASS (data_imports_ui_data_imports_dialog_parent_class)->finalize (obj);
-#line 2763 "DataImportsUI.c"
-}
-
-
-GType
-data_imports_ui_data_imports_dialog_get_type (void)
-{
- static volatile gsize data_imports_ui_data_imports_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&data_imports_ui_data_imports_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIDataImportsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_data_imports_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIDataImportsDialog), 0, (GInstanceInitFunc) data_imports_ui_data_imports_dialog_instance_init, NULL };
- GType data_imports_ui_data_imports_dialog_type_id;
- data_imports_ui_data_imports_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "DataImportsUIDataImportsDialog", &g_define_type_info, 0);
- g_once_init_leave (&data_imports_ui_data_imports_dialog_type_id__volatile, data_imports_ui_data_imports_dialog_type_id);
- }
- return data_imports_ui_data_imports_dialog_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/db/DatabaseTable.c b/src/db/DatabaseTable.c
deleted file mode 100644
index 4c1b44e..0000000
--- a/src/db/DatabaseTable.c
+++ /dev/null
@@ -1,2570 +0,0 @@
-/* DatabaseTable.c generated by valac 0.40.4, the Vala compiler
- * generated from DatabaseTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sqlite3.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-typedef struct _DatabaseTablePrivate DatabaseTablePrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _sqlite3_close0(var) ((var == NULL) ? NULL : (var = (sqlite3_close (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
-typedef struct _ParamSpecDatabaseTable ParamSpecDatabaseTable;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _DatabaseTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DatabaseTablePrivate * priv;
- gchar* table_name;
-};
-
-struct _DatabaseTableClass {
- GTypeClass parent_class;
- void (*finalize) (DatabaseTable *self);
-};
-
-struct _ParamSpecDatabaseTable {
- GParamSpec parent_instance;
-};
-
-
-static gpointer database_table_parent_class = NULL;
-extern sqlite3* database_table_db;
-sqlite3* database_table_db = NULL;
-static gint database_table_in_transaction;
-static gint database_table_in_transaction = 0;
-
-GQuark database_error_quark (void);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-#define DATABASE_TABLE_SCHEMA_VERSION 20
-static void database_table_prepare_db (const gchar* filename);
-void app_window_panic (const gchar* msg);
-#define DB_IN_MEMORY_NAME ":memory:"
-void database_table_on_trace (const gchar* message);
-static void _database_table_on_trace_sqlite_trace_callback (gpointer self,
- const gchar* message);
-void database_table_init (const gchar* filename);
-void database_table_warning (const gchar* op,
- gint res);
-void database_table_terminate (void);
-void database_table_fatal (const gchar* op,
- gint res);
-void database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name);
-void database_table_throw_error (const gchar* method,
- gint res,
- GError** error);
-gboolean database_table_exists_by_id (DatabaseTable* self,
- gint64 id);
-gboolean database_table_select_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* columns,
- sqlite3_stmt* * stmt);
-static void database_table_prepare_update_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- sqlite3_stmt* * stmt);
-static gboolean database_table_execute_update_by_id (DatabaseTable* self,
- sqlite3_stmt* stmt);
-gboolean database_table_update_text_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text);
-void database_table_update_text_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text,
- GError** error);
-gboolean database_table_update_int_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint value);
-void database_table_update_int_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint value,
- GError** error);
-gboolean database_table_update_int64_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint64 value);
-void database_table_update_int64_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint64 value,
- GError** error);
-void database_table_delete_by_id (DatabaseTable* self,
- gint64 id,
- GError** error);
-gboolean database_table_has_column (const gchar* table_name,
- const gchar* column_name);
-gboolean database_table_has_table (const gchar* table_name);
-gboolean database_table_add_column (const gchar* table_name,
- const gchar* column_name,
- const gchar* column_constraints);
-gboolean database_table_ensure_column (const gchar* table_name,
- const gchar* column_name,
- const gchar* column_constraints,
- const gchar* upgrade_msg);
-gint database_table_get_row_count (DatabaseTable* self);
-void database_table_begin_transaction (void);
-void database_table_commit_transaction (GError** error);
-DatabaseTable* database_table_construct (GType object_type);
-static void database_table_finalize (DatabaseTable * obj);
-
-
-GQuark
-database_error_quark (void)
-{
- return g_quark_from_static_string ("database_error-quark");
-}
-
-
-static void
-_database_table_on_trace_sqlite_trace_callback (gpointer self,
- const gchar* message)
-{
-#line 57 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_on_trace (message);
-#line 179 "DatabaseTable.c"
-}
-
-
-static void
-database_table_prepare_db (const gchar* filename)
-{
- gint res = 0;
- sqlite3* _tmp0_ = NULL;
- gint _tmp1_;
- gint _tmp2_;
- const gchar* sql_debug = NULL;
- const gchar* _tmp16_;
- gboolean _tmp17_ = FALSE;
- const gchar* _tmp18_;
- GError * _inner_error_ = NULL;
-#line 32 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (filename != NULL);
-#line 34 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = sqlite3_open_v2 (filename, &_tmp0_, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL);
-#line 34 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_close0 (database_table_db);
-#line 34 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_db = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = res;
-#line 36 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp2_ != SQLITE_OK) {
-#line 209 "DatabaseTable.c"
- gint _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = res;
-#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = g_strdup_printf (_ ("Unable to open/create photo database %s: error code %d"), filename, _tmp3_);
-#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = _tmp4_;
-#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- app_window_panic (_tmp5_);
-#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp5_);
-#line 223 "DatabaseTable.c"
- }
-#line 41 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (g_strcmp0 (filename, DB_IN_MEMORY_NAME) != 0) {
-#line 227 "DatabaseTable.c"
- {
- GFile* file_db = NULL;
- GFile* _tmp6_;
- GFileInfo* info = NULL;
- GFile* _tmp7_;
- GFileInfo* _tmp8_;
- GFileInfo* _tmp9_;
-#line 43 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = g_file_new_for_path (filename);
-#line 43 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- file_db = _tmp6_;
-#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = file_db;
-#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = g_file_query_info (_tmp7_, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- info = _tmp8_;
-#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_object_unref0 (file_db);
-#line 249 "DatabaseTable.c"
- goto __catch15_g_error;
- }
-#line 45 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = info;
-#line 45 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (!g_file_info_get_attribute_boolean (_tmp9_, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) {
-#line 256 "DatabaseTable.c"
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 46 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = g_strdup_printf (_ ("Unable to write to photo database file:\n %s"), filename);
-#line 46 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = _tmp10_;
-#line 46 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- app_window_panic (_tmp11_);
-#line 46 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp11_);
-#line 267 "DatabaseTable.c"
- }
-#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_object_unref0 (info);
-#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_object_unref0 (file_db);
-#line 273 "DatabaseTable.c"
- }
- goto __finally15;
- __catch15_g_error:
- {
- GError* e = NULL;
- GError* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- e = _inner_error_;
-#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _inner_error_ = NULL;
-#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp12_ = e;
-#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp13_ = _tmp12_->message;
-#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp14_ = g_strdup_printf (_ ("Error accessing database file:\n %s\n\nError was: \n%s"), filename, _tmp13_);
-#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp15_ = _tmp14_;
-#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- app_window_panic (_tmp15_);
-#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp15_);
-#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_error_free0 (e);
-#line 301 "DatabaseTable.c"
- }
- __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"
- 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 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 312 "DatabaseTable.c"
- }
- }
-#line 53 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp16_ = g_getenv ("SHOTWELL_SQL_DEBUG");
-#line 53 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- sql_debug = _tmp16_;
-#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp18_ = sql_debug;
-#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp18_ != NULL) {
-#line 323 "DatabaseTable.c"
- const gchar* _tmp19_;
-#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp19_ = sql_debug;
-#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp17_ = g_strcmp0 (_tmp19_, "") != 0;
-#line 329 "DatabaseTable.c"
- } else {
-#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp17_ = FALSE;
-#line 333 "DatabaseTable.c"
- }
-#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp17_) {
-#line 337 "DatabaseTable.c"
- sqlite3* _tmp20_;
-#line 57 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp20_ = database_table_db;
-#line 57 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- sqlite3_trace (_tmp20_, _database_table_on_trace_sqlite_trace_callback, NULL);
-#line 343 "DatabaseTable.c"
- }
-}
-
-
-void
-database_table_on_trace (const gchar* message)
-{
-#line 61 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (message != NULL);
-#line 62 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_debug ("DatabaseTable.vala:62: SQLITE: %s", message);
-#line 355 "DatabaseTable.c"
-}
-
-
-static gint
-_sqlite3_exec (sqlite3* self,
- const gchar* sql,
- sqlite3_callback callback,
- void* callback_target,
- gchar* * errmsg)
-{
- gchar* _vala_errmsg = NULL;
- gint result = 0;
- const gchar* sqlite_errmsg = NULL;
- gint ec = 0;
- const gchar* _tmp0_ = NULL;
- gint _tmp1_;
- const gchar* _tmp4_;
-#line 34 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 34 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- g_return_val_if_fail (sql != NULL, 0);
-#line 36 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- _tmp1_ = sqlite3_exec (self, sql, callback, callback_target, (char**) (&_tmp0_));
-#line 36 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- sqlite_errmsg = _tmp0_;
-#line 36 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- ec = _tmp1_;
-#line 37 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- if ((&_vala_errmsg) != NULL) {
-#line 385 "DatabaseTable.c"
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 38 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- _tmp2_ = sqlite_errmsg;
-#line 38 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- _tmp3_ = g_strdup (_tmp2_);
-#line 38 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- _g_free0 (_vala_errmsg);
-#line 38 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- _vala_errmsg = _tmp3_;
-#line 396 "DatabaseTable.c"
- }
-#line 40 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- _tmp4_ = sqlite_errmsg;
-#line 40 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- sqlite3_free ((void*) _tmp4_);
-#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- result = ec;
-#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- if (errmsg) {
-#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- *errmsg = _vala_errmsg;
-#line 408 "DatabaseTable.c"
- } else {
-#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- _g_free0 (_vala_errmsg);
-#line 412 "DatabaseTable.c"
- }
-#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi"
- return result;
-#line 416 "DatabaseTable.c"
-}
-
-
-void
-database_table_init (const gchar* filename)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- GError * _inner_error_ = NULL;
-#line 65 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (filename != NULL);
-#line 67 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_prepare_db (filename);
-#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS VersionTable (" "id INTEGER PRIMARY KEY, " "schema_version INTEGER, " "app_version TEXT, " "user_data TEXT NULL" ")", -1, &_tmp1_, NULL);
-#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp1_;
-#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp2_;
-#line 79 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = res;
-#line 79 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp3_ != SQLITE_OK) {
-#line 451 "DatabaseTable.c"
- gchar* backup_path = NULL;
- gchar* _tmp4_;
-#line 80 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_close0 (database_table_db);
-#line 80 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_db = NULL;
-#line 82 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = g_strconcat (filename, ".bak", NULL);
-#line 82 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- backup_path = _tmp4_;
-#line 462 "DatabaseTable.c"
- {
- GFile* src = NULL;
- const gchar* _tmp5_;
- GFile* _tmp6_;
- GFile* dest = NULL;
- GFile* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
-#line 85 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = backup_path;
-#line 85 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = g_file_new_for_commandline_arg (_tmp5_);
-#line 85 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- src = _tmp6_;
-#line 86 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = g_file_new_for_commandline_arg (filename);
-#line 86 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- dest = _tmp7_;
-#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = src;
-#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = dest;
-#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_file_copy (_tmp8_, _tmp9_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_ALL_METADATA, NULL, NULL, NULL, &_inner_error_);
-#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_object_unref0 (dest);
-#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_object_unref0 (src);
-#line 493 "DatabaseTable.c"
- goto __catch16_g_error;
- }
-#line 90 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_prepare_db (filename);
-#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_object_unref0 (dest);
-#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_object_unref0 (src);
-#line 502 "DatabaseTable.c"
- }
- goto __finally16;
- __catch16_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _error_ = _inner_error_;
-#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _inner_error_ = NULL;
-#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = _error_;
-#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = _tmp10_->message;
-#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp12_ = g_strdup_printf (_ ("Unable to restore photo database %s"), _tmp11_);
-#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp13_ = _tmp12_;
-#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- app_window_panic (_tmp13_);
-#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp13_);
-#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_error_free0 (_error_);
-#line 530 "DatabaseTable.c"
- }
- __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"
- _g_free0 (backup_path);
-#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 545 "DatabaseTable.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (backup_path);
-#line 549 "DatabaseTable.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp14_ = database_table_db;
-#line 98 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp15_ = _sqlite3_exec (_tmp14_, "PRAGMA synchronous=OFF", NULL, NULL, NULL);
-#line 98 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp15_;
-#line 99 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp16_ = res;
-#line 99 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp16_ != SQLITE_OK) {
-#line 561 "DatabaseTable.c"
- gint _tmp17_;
-#line 100 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp17_ = res;
-#line 100 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_warning ("Unable to disable synchronous mode", _tmp17_);
-#line 567 "DatabaseTable.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 571 "DatabaseTable.c"
-}
-
-
-void
-database_table_terminate (void)
-{
-#line 105 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_close0 (database_table_db);
-#line 105 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_db = NULL;
-#line 582 "DatabaseTable.c"
-}
-
-
-void
-database_table_fatal (const gchar* op,
- gint res)
-{
- sqlite3* _tmp0_;
- const gchar* _tmp1_;
-#line 109 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (op != NULL);
-#line 110 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 110 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = sqlite3_errmsg (_tmp0_);
-#line 110 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_error ("DatabaseTable.vala:110: %s: [%d] %s", op, res, _tmp1_);
-#line 600 "DatabaseTable.c"
-}
-
-
-void
-database_table_warning (const gchar* op,
- gint res)
-{
- sqlite3* _tmp0_;
- const gchar* _tmp1_;
-#line 114 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (op != NULL);
-#line 115 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 115 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = sqlite3_errmsg (_tmp0_);
-#line 115 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_warning ("DatabaseTable.vala:115: %s: [%d] %s", op, res, _tmp1_);
-#line 618 "DatabaseTable.c"
-}
-
-
-void
-database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name)
-{
- gchar* _tmp0_;
-#line 118 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (IS_DATABASE_TABLE (self));
-#line 118 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (table_name != NULL);
-#line 119 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = g_strdup (table_name);
-#line 119 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (self->table_name);
-#line 119 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- self->table_name = _tmp0_;
-#line 637 "DatabaseTable.c"
-}
-
-
-void
-database_table_throw_error (const gchar* method,
- gint res,
- GError** error)
-{
- gchar* msg = NULL;
- sqlite3* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 124 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (method != NULL);
-#line 125 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 125 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = sqlite3_errmsg (_tmp0_);
-#line 125 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = g_strdup_printf ("(%s) [%d] - %s", method, res, _tmp1_);
-#line 125 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- msg = _tmp2_;
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- switch (res) {
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_OK:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_DONE:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_ROW:
-#line 669 "DatabaseTable.c"
- {
-#line 131 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 131 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 675 "DatabaseTable.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_PERM:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_BUSY:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_READONLY:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_IOERR:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_CORRUPT:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_CANTOPEN:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_NOLFS:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_AUTH:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_FORMAT:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_NOTADB:
-#line 697 "DatabaseTable.c"
- {
- const gchar* _tmp3_;
- GError* _tmp4_;
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = msg;
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_BACKING, _tmp3_);
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _inner_error_ = _tmp4_;
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 715 "DatabaseTable.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 725 "DatabaseTable.c"
- }
- }
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_NOMEM:
-#line 730 "DatabaseTable.c"
- {
- const gchar* _tmp5_;
- GError* _tmp6_;
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = msg;
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_MEMORY, _tmp5_);
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _inner_error_ = _tmp6_;
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 748 "DatabaseTable.c"
- } else {
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 758 "DatabaseTable.c"
- }
- }
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_ABORT:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_LOCKED:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_INTERRUPT:
-#line 767 "DatabaseTable.c"
- {
- const gchar* _tmp7_;
- GError* _tmp8_;
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = msg;
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_ABORT, _tmp7_);
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _inner_error_ = _tmp8_;
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 785 "DatabaseTable.c"
- } else {
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 795 "DatabaseTable.c"
- }
- }
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_FULL:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_EMPTY:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_TOOBIG:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_CONSTRAINT:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_RANGE:
-#line 808 "DatabaseTable.c"
- {
- const gchar* _tmp9_;
- GError* _tmp10_;
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = msg;
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_LIMITS, _tmp9_);
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _inner_error_ = _tmp10_;
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 826 "DatabaseTable.c"
- } else {
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 836 "DatabaseTable.c"
- }
- }
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_SCHEMA:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_MISMATCH:
-#line 843 "DatabaseTable.c"
- {
- const gchar* _tmp11_;
- GError* _tmp12_;
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = msg;
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp12_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_TYPESPEC, _tmp11_);
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _inner_error_ = _tmp12_;
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 861 "DatabaseTable.c"
- } else {
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 871 "DatabaseTable.c"
- }
- }
- default:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_ERROR:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_INTERNAL:
-#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- case SQLITE_MISUSE:
-#line 881 "DatabaseTable.c"
- {
- const gchar* _tmp13_;
- GError* _tmp14_;
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp13_ = msg;
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp14_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_ERROR, _tmp13_);
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _inner_error_ = _tmp14_;
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 899 "DatabaseTable.c"
- } else {
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 909 "DatabaseTable.c"
- }
- }
- }
-#line 124 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (msg);
-#line 915 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_exists_by_id (DatabaseTable* self,
- gint64 id)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- sqlite3_stmt* _tmp4_ = NULL;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- gboolean _tmp11_ = FALSE;
- gint _tmp12_;
- gint _tmp20_;
-#line 172 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE);
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = self->table_name;
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = g_strdup_printf ("SELECT id FROM %s WHERE id=?", _tmp1_);
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = _tmp2_;
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = sqlite3_prepare_v2 (_tmp0_, _tmp3_, -1, &_tmp4_, NULL);
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp4_;
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = _tmp5_;
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp3_);
-#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp6_;
-#line 175 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = res;
-#line 175 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 177 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = stmt;
-#line 177 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_int64 (_tmp8_, 1, id);
-#line 178 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = res;
-#line 178 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 180 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = stmt;
-#line 180 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp10_);
-#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp12_ = res;
-#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp12_ != SQLITE_ROW) {
-#line 982 "DatabaseTable.c"
- gint _tmp13_;
-#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp13_ = res;
-#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = _tmp13_ != SQLITE_DONE;
-#line 988 "DatabaseTable.c"
- } else {
-#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = FALSE;
-#line 992 "DatabaseTable.c"
- }
-#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp11_) {
-#line 996 "DatabaseTable.c"
- gchar* _tmp14_;
- gchar* _tmp15_;
- const gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gint _tmp19_;
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp14_ = g_strdup_printf ("%" G_GINT64_FORMAT, id);
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp15_ = _tmp14_;
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp16_ = self->table_name;
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp17_ = g_strdup_printf ("exists_by_id [%s] %s", _tmp15_, _tmp16_);
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp18_ = _tmp17_;
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp19_ = res;
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_fatal (_tmp18_, _tmp19_);
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp18_);
-#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp15_);
-#line 1021 "DatabaseTable.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp20_ = res;
-#line 184 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = _tmp20_ == SQLITE_ROW;
-#line 184 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 184 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1031 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_select_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* columns,
- sqlite3_stmt* * stmt)
-{
- sqlite3_stmt* _vala_stmt = NULL;
- gboolean result = FALSE;
- gchar* sql = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gint res = 0;
- sqlite3* _tmp2_;
- const gchar* _tmp3_;
- sqlite3_stmt* _tmp4_ = NULL;
- gint _tmp5_;
- gint _tmp6_;
- sqlite3_stmt* _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- gboolean _tmp10_ = FALSE;
- gint _tmp11_;
- gint _tmp19_;
-#line 187 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE);
-#line 187 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (columns != NULL, FALSE);
-#line 188 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = self->table_name;
-#line 188 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = g_strdup_printf ("SELECT %s FROM %s WHERE id=?", columns, _tmp0_);
-#line 188 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- sql = _tmp1_;
-#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = database_table_db;
-#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = sql;
-#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = sqlite3_prepare_v2 (_tmp2_, _tmp3_, -1, &_tmp4_, NULL);
-#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (_vala_stmt);
-#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_stmt = _tmp4_;
-#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp5_;
-#line 191 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = res;
-#line 191 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK");
-#line 193 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = _vala_stmt;
-#line 193 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_int64 (_tmp7_, 1, id);
-#line 194 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = res;
-#line 194 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 196 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = _vala_stmt;
-#line 196 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp9_);
-#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = res;
-#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp11_ != SQLITE_ROW) {
-#line 1100 "DatabaseTable.c"
- gint _tmp12_;
-#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp12_ = res;
-#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = _tmp12_ != SQLITE_DONE;
-#line 1106 "DatabaseTable.c"
- } else {
-#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = FALSE;
-#line 1110 "DatabaseTable.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp10_) {
-#line 1114 "DatabaseTable.c"
- gchar* _tmp13_;
- gchar* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gint _tmp18_;
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp13_ = g_strdup_printf ("%" G_GINT64_FORMAT, id);
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp14_ = _tmp13_;
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp15_ = self->table_name;
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp16_ = g_strdup_printf ("select_by_id [%s] %s %s", _tmp14_, _tmp15_, columns);
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp17_ = _tmp16_;
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp18_ = res;
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_fatal (_tmp17_, _tmp18_);
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp17_);
-#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp14_);
-#line 1139 "DatabaseTable.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp19_ = res;
-#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = _tmp19_ == SQLITE_ROW;
-#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (sql);
-#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (stmt) {
-#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- *stmt = _vala_stmt;
-#line 1151 "DatabaseTable.c"
- } else {
-#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (_vala_stmt);
-#line 1155 "DatabaseTable.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1159 "DatabaseTable.c"
-}
-
-
-static void
-database_table_prepare_update_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- sqlite3_stmt* * stmt)
-{
- sqlite3_stmt* _vala_stmt = NULL;
- gchar* sql = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gint res = 0;
- sqlite3* _tmp2_;
- sqlite3_stmt* _tmp3_ = NULL;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (IS_DATABASE_TABLE (self));
-#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (column != NULL);
-#line 205 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = self->table_name;
-#line 205 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = g_strdup_printf ("UPDATE %s SET %s=? WHERE id=?", _tmp0_, column);
-#line 205 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- sql = _tmp1_;
-#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = database_table_db;
-#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = sqlite3_prepare_v2 (_tmp2_, sql, -1, &_tmp3_, NULL);
-#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (_vala_stmt);
-#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_stmt = _tmp3_;
-#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp4_;
-#line 208 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = res;
-#line 208 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 210 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_int64 (_vala_stmt, 2, id);
-#line 211 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = res;
-#line 211 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK");
-#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (sql);
-#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (stmt) {
-#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- *stmt = _vala_stmt;
-#line 1215 "DatabaseTable.c"
- } else {
-#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (_vala_stmt);
-#line 1219 "DatabaseTable.c"
- }
-}
-
-
-static gboolean
-database_table_execute_update_by_id (DatabaseTable* self,
- sqlite3_stmt* stmt)
-{
- gboolean result = FALSE;
- gint res = 0;
- gint _tmp0_;
-#line 214 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE);
-#line 214 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (stmt != NULL, FALSE);
-#line 215 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (stmt);
-#line 216 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = res;
-#line 216 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp0_ != SQLITE_DONE) {
-#line 1241 "DatabaseTable.c"
- gint _tmp1_;
-#line 217 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = res;
-#line 217 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_fatal ("execute_update_by_id", _tmp1_);
-#line 219 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = FALSE;
-#line 219 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1251 "DatabaseTable.c"
- }
-#line 222 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = TRUE;
-#line 222 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1257 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_update_text_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_ = NULL;
- gint res = 0;
- gchar* _tmp1_;
- GDestroyNotify _tmp2_;
-#line 225 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE);
-#line 225 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (column != NULL, FALSE);
-#line 225 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (text != NULL, FALSE);
-#line 227 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_prepare_update_by_id (self, id, column, &_tmp0_);
-#line 227 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 227 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp0_;
-#line 229 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = g_strdup (text);
-#line 229 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = g_free;
-#line 229 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_text (stmt, 1, _tmp1_, -1, _tmp2_);
-#line 230 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (res == SQLITE_OK, "res == Sqlite.OK");
-#line 232 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = database_table_execute_update_by_id (self, stmt);
-#line 232 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 232 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1299 "DatabaseTable.c"
-}
-
-
-void
-database_table_update_text_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_ = NULL;
- gint res = 0;
- sqlite3_stmt* _tmp1_;
- gchar* _tmp2_;
- GDestroyNotify _tmp3_;
- gint _tmp4_;
- sqlite3_stmt* _tmp5_;
- gint _tmp6_;
- GError * _inner_error_ = NULL;
-#line 235 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (IS_DATABASE_TABLE (self));
-#line 235 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (column != NULL);
-#line 235 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (text != NULL);
-#line 237 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_prepare_update_by_id (self, id, column, &_tmp0_);
-#line 237 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 237 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp0_;
-#line 239 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = stmt;
-#line 239 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = g_strdup (text);
-#line 239 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = g_free;
-#line 239 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_text (_tmp1_, 1, _tmp2_, -1, _tmp3_);
-#line 240 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = res;
-#line 240 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp4_ == SQLITE_OK, "res == Sqlite.OK");
-#line 242 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = stmt;
-#line 242 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp5_);
-#line 243 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = res;
-#line 243 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp6_ != SQLITE_DONE) {
-#line 1352 "DatabaseTable.c"
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gint _tmp10_;
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = self->table_name;
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = g_strdup_printf ("DatabaseTable.update_text_by_id_2 %s.%s", _tmp7_, column);
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = _tmp8_;
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = res;
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_throw_error (_tmp9_, _tmp10_, &_inner_error_);
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp9_);
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 1379 "DatabaseTable.c"
- } else {
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 1389 "DatabaseTable.c"
- }
- }
- }
-#line 235 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1395 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_update_int_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint value)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_ = NULL;
- gint res = 0;
-#line 247 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE);
-#line 247 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (column != NULL, FALSE);
-#line 249 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_prepare_update_by_id (self, id, column, &_tmp0_);
-#line 249 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 249 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp0_;
-#line 251 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_int (stmt, 1, value);
-#line 252 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (res == SQLITE_OK, "res == Sqlite.OK");
-#line 254 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = database_table_execute_update_by_id (self, stmt);
-#line 254 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 254 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1429 "DatabaseTable.c"
-}
-
-
-void
-database_table_update_int_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint value,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_ = NULL;
- gint res = 0;
- sqlite3_stmt* _tmp1_;
- gint _tmp2_;
- sqlite3_stmt* _tmp3_;
- gint _tmp4_;
- GError * _inner_error_ = NULL;
-#line 257 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (IS_DATABASE_TABLE (self));
-#line 257 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (column != NULL);
-#line 259 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_prepare_update_by_id (self, id, column, &_tmp0_);
-#line 259 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 259 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp0_;
-#line 261 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = stmt;
-#line 261 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_int (_tmp1_, 1, value);
-#line 262 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = res;
-#line 262 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp2_ == SQLITE_OK, "res == Sqlite.OK");
-#line 264 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = stmt;
-#line 264 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp3_);
-#line 265 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = res;
-#line 265 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp4_ != SQLITE_DONE) {
-#line 1474 "DatabaseTable.c"
- const gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gint _tmp8_;
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = self->table_name;
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = g_strdup_printf ("DatabaseTable.update_int_by_id_2 %s.%s", _tmp5_, column);
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = _tmp6_;
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = res;
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_throw_error (_tmp7_, _tmp8_, &_inner_error_);
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp7_);
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 1501 "DatabaseTable.c"
- } else {
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 1511 "DatabaseTable.c"
- }
- }
- }
-#line 257 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1517 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_update_int64_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint64 value)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_ = NULL;
- gint res = 0;
-#line 269 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE);
-#line 269 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (column != NULL, FALSE);
-#line 271 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_prepare_update_by_id (self, id, column, &_tmp0_);
-#line 271 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 271 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp0_;
-#line 273 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_int64 (stmt, 1, value);
-#line 274 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (res == SQLITE_OK, "res == Sqlite.OK");
-#line 276 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = database_table_execute_update_by_id (self, stmt);
-#line 276 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 276 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1551 "DatabaseTable.c"
-}
-
-
-void
-database_table_update_int64_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint64 value,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_ = NULL;
- gint res = 0;
- sqlite3_stmt* _tmp1_;
- gint _tmp2_;
- sqlite3_stmt* _tmp3_;
- gint _tmp4_;
- GError * _inner_error_ = NULL;
-#line 279 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (IS_DATABASE_TABLE (self));
-#line 279 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (column != NULL);
-#line 281 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_prepare_update_by_id (self, id, column, &_tmp0_);
-#line 281 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 281 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp0_;
-#line 283 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = stmt;
-#line 283 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_int64 (_tmp1_, 1, value);
-#line 284 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = res;
-#line 284 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp2_ == SQLITE_OK, "res == Sqlite.OK");
-#line 286 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = stmt;
-#line 286 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp3_);
-#line 287 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = res;
-#line 287 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp4_ != SQLITE_DONE) {
-#line 1596 "DatabaseTable.c"
- const gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gint _tmp8_;
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = self->table_name;
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = g_strdup_printf ("DatabaseTable.update_int64_by_id_2 %s.%s", _tmp5_, column);
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = _tmp6_;
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = res;
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_throw_error (_tmp7_, _tmp8_, &_inner_error_);
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp7_);
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 1623 "DatabaseTable.c"
- } else {
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 1633 "DatabaseTable.c"
- }
- }
- }
-#line 279 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1639 "DatabaseTable.c"
-}
-
-
-void
-database_table_delete_by_id (DatabaseTable* self,
- gint64 id,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- sqlite3_stmt* _tmp4_ = NULL;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- gint _tmp11_;
- GError * _inner_error_ = NULL;
-#line 291 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (IS_DATABASE_TABLE (self));
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = self->table_name;
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = g_strdup_printf ("DELETE FROM %s WHERE id=?", _tmp1_);
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = _tmp2_;
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = sqlite3_prepare_v2 (_tmp0_, _tmp3_, -1, &_tmp4_, NULL);
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp4_;
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = _tmp5_;
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp3_);
-#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp6_;
-#line 294 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = res;
-#line 294 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 296 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = stmt;
-#line 296 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_bind_int64 (_tmp8_, 1, id);
-#line 297 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = res;
-#line 297 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 299 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = stmt;
-#line 299 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp10_);
-#line 300 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = res;
-#line 300 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp11_ != SQLITE_DONE) {
-#line 1705 "DatabaseTable.c"
- const gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gint _tmp15_;
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp12_ = self->table_name;
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp13_ = g_strdup_printf ("%s.remove", _tmp12_);
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp14_ = _tmp13_;
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp15_ = res;
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_throw_error (_tmp14_, _tmp15_, &_inner_error_);
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp14_);
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 1732 "DatabaseTable.c"
- } else {
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 1742 "DatabaseTable.c"
- }
- }
- }
-#line 291 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1748 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_has_column (const gchar* table_name,
- const gchar* column_name)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- sqlite3_stmt* _tmp3_ = NULL;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 304 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (table_name != NULL, FALSE);
-#line 304 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (column_name != NULL, FALSE);
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = g_strdup_printf ("PRAGMA table_info(%s)", table_name);
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = _tmp1_;
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = sqlite3_prepare_v2 (_tmp0_, _tmp2_, -1, &_tmp3_, NULL);
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp3_;
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = _tmp4_;
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp2_);
-#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp5_;
-#line 307 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = res;
-#line 307 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1792 "DatabaseTable.c"
- {
- gboolean _tmp7_ = FALSE;
-#line 309 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = TRUE;
-#line 309 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- while (TRUE) {
-#line 1799 "DatabaseTable.c"
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
-#line 309 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (!_tmp7_) {
-#line 1804 "DatabaseTable.c"
- }
-#line 309 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = FALSE;
-#line 310 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = stmt;
-#line 310 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 311 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = res;
-#line 311 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp9_ == SQLITE_DONE) {
-#line 312 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- break;
-#line 1818 "DatabaseTable.c"
- } else {
- gint _tmp10_;
-#line 313 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = res;
-#line 313 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp10_ != SQLITE_ROW) {
-#line 1825 "DatabaseTable.c"
- gchar* _tmp11_;
- gchar* _tmp12_;
- gint _tmp13_;
-#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = g_strdup_printf ("has_column %s", table_name);
-#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp12_ = _tmp11_;
-#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp13_ = res;
-#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_fatal (_tmp12_, _tmp13_);
-#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp12_);
-#line 316 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- break;
-#line 1841 "DatabaseTable.c"
- } else {
- gchar* column = NULL;
- sqlite3_stmt* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- gboolean _tmp17_ = FALSE;
- const gchar* _tmp18_;
-#line 318 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp14_ = stmt;
-#line 318 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp15_ = sqlite3_column_text (_tmp14_, 1);
-#line 318 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 318 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- column = _tmp16_;
-#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp18_ = column;
-#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp18_ != NULL) {
-#line 1861 "DatabaseTable.c"
- const gchar* _tmp19_;
-#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp19_ = column;
-#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp17_ = g_strcmp0 (_tmp19_, column_name) == 0;
-#line 1867 "DatabaseTable.c"
- } else {
-#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp17_ = FALSE;
-#line 1871 "DatabaseTable.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp17_) {
-#line 320 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = TRUE;
-#line 320 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (column);
-#line 320 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 320 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1883 "DatabaseTable.c"
- }
-#line 313 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (column);
-#line 1887 "DatabaseTable.c"
- }
- }
- }
- }
-#line 324 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = FALSE;
-#line 324 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 324 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1898 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_has_table (const gchar* table_name)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- sqlite3_stmt* _tmp3_ = NULL;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 327 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (table_name != NULL, FALSE);
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = g_strdup_printf ("PRAGMA table_info(%s)", table_name);
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = _tmp1_;
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = sqlite3_prepare_v2 (_tmp0_, _tmp2_, -1, &_tmp3_, NULL);
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp3_;
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = _tmp4_;
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp2_);
-#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp5_;
-#line 330 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = res;
-#line 330 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK");
-#line 332 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (stmt);
-#line 334 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = res;
-#line 334 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = _tmp7_ != SQLITE_DONE;
-#line 334 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 334 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 1950 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_add_column (const gchar* table_name,
- const gchar* column_name,
- const gchar* column_constraints)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- sqlite3_stmt* _tmp3_ = NULL;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- sqlite3_stmt* _tmp7_;
- gint _tmp8_;
-#line 337 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (table_name != NULL, FALSE);
-#line 337 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (column_name != NULL, FALSE);
-#line 337 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (column_constraints != NULL, FALSE);
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = g_strdup_printf ("ALTER TABLE %s ADD COLUMN %s %s", table_name, column_name, column_constraints);
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = _tmp1_;
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = sqlite3_prepare_v2 (_tmp0_, _tmp2_, -1, &_tmp3_, NULL);
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp3_;
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = _tmp4_;
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp2_);
-#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp5_;
-#line 341 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = res;
-#line 341 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK");
-#line 343 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = stmt;
-#line 343 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp7_);
-#line 344 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = res;
-#line 344 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp8_ != SQLITE_DONE) {
-#line 2007 "DatabaseTable.c"
- gint _tmp9_;
- sqlite3* _tmp10_;
- const gchar* _tmp11_;
-#line 345 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = res;
-#line 345 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = database_table_db;
-#line 345 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = sqlite3_errmsg (_tmp10_);
-#line 345 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_critical ("DatabaseTable.vala:345: Unable to add column %s %s %s: (%d) %s", table_name, column_name, column_constraints, _tmp9_, _tmp11_);
-#line 348 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = FALSE;
-#line 348 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 348 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 2025 "DatabaseTable.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = TRUE;
-#line 351 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 351 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 2033 "DatabaseTable.c"
-}
-
-
-gboolean
-database_table_ensure_column (const gchar* table_name,
- const gchar* column_name,
- const gchar* column_constraints,
- const gchar* upgrade_msg)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 357 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (table_name != NULL, FALSE);
-#line 357 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (column_name != NULL, FALSE);
-#line 357 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (column_constraints != NULL, FALSE);
-#line 357 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (upgrade_msg != NULL, FALSE);
-#line 359 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (!database_table_has_table (table_name)) {
-#line 359 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = TRUE;
-#line 2057 "DatabaseTable.c"
- } else {
-#line 359 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_has_column (table_name, column_name);
-#line 2061 "DatabaseTable.c"
- }
-#line 359 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp0_) {
-#line 360 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = TRUE;
-#line 360 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 2069 "DatabaseTable.c"
- }
-#line 362 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_message ("DatabaseTable.vala:362: %s", upgrade_msg);
-#line 364 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = database_table_add_column (table_name, column_name, column_constraints);
-#line 364 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 2077 "DatabaseTable.c"
-}
-
-
-gint
-database_table_get_row_count (DatabaseTable* self)
-{
- gint result = 0;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- sqlite3_stmt* _tmp4_ = NULL;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp14_;
-#line 367 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (IS_DATABASE_TABLE (self), 0);
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_db;
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = self->table_name;
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = g_strdup_printf ("SELECT COUNT(id) AS RowCount FROM %s", _tmp1_);
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = _tmp2_;
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = sqlite3_prepare_v2 (_tmp0_, _tmp3_, -1, &_tmp4_, NULL);
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- stmt = _tmp4_;
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = _tmp5_;
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (_tmp3_);
-#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp6_;
-#line 370 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp7_ = res;
-#line 370 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 372 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp8_ = stmt;
-#line 372 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 373 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp9_ = res;
-#line 373 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp9_ != SQLITE_ROW) {
-#line 2132 "DatabaseTable.c"
- const gchar* _tmp10_;
- gint _tmp11_;
- sqlite3* _tmp12_;
- const gchar* _tmp13_;
-#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp10_ = self->table_name;
-#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp11_ = res;
-#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp12_ = database_table_db;
-#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp13_ = sqlite3_errmsg (_tmp12_);
-#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_critical ("DatabaseTable.vala:374: Unable to retrieve row count on %s: (%d) %s", _tmp10_, _tmp11_, _tmp13_);
-#line 376 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = 0;
-#line 376 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 376 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 2153 "DatabaseTable.c"
- }
-#line 379 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp14_ = stmt;
-#line 379 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- result = sqlite3_column_int (_tmp14_, 0);
-#line 379 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 379 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return result;
-#line 2163 "DatabaseTable.c"
-}
-
-
-void
-database_table_begin_transaction (void)
-{
- gint _tmp0_;
- gint res = 0;
- sqlite3* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 384 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_in_transaction;
-#line 384 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_in_transaction = _tmp0_ + 1;
-#line 384 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp0_ != 0) {
-#line 385 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 2183 "DatabaseTable.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = database_table_db;
-#line 387 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = _sqlite3_exec (_tmp1_, "BEGIN TRANSACTION", NULL, NULL, NULL);
-#line 387 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp2_;
-#line 388 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = res;
-#line 388 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 2195 "DatabaseTable.c"
-}
-
-
-void
-database_table_commit_transaction (GError** error)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint res = 0;
- sqlite3* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- GError * _inner_error_ = NULL;
-#line 393 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp0_ = database_table_in_transaction;
-#line 393 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _vala_assert (_tmp0_ > 0, "in_transaction > 0");
-#line 394 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp1_ = database_table_in_transaction;
-#line 394 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_in_transaction = _tmp1_ - 1;
-#line 394 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp2_ = database_table_in_transaction;
-#line 394 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp2_ != 0) {
-#line 395 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 2224 "DatabaseTable.c"
- }
-#line 397 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp3_ = database_table_db;
-#line 397 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp4_ = _sqlite3_exec (_tmp3_, "COMMIT TRANSACTION", NULL, NULL, NULL);
-#line 397 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- res = _tmp4_;
-#line 398 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp5_ = res;
-#line 398 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 2236 "DatabaseTable.c"
- gint _tmp6_;
-#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _tmp6_ = res;
-#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_throw_error ("commit_transaction", _tmp6_, &_inner_error_);
-#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 2250 "DatabaseTable.c"
- } else {
-#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_clear_error (&_inner_error_);
-#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return;
-#line 2258 "DatabaseTable.c"
- }
- }
- }
-}
-
-
-DatabaseTable*
-database_table_construct (GType object_type)
-{
- DatabaseTable* self = NULL;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- self = (DatabaseTable*) g_type_create_instance (object_type);
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return self;
-#line 2273 "DatabaseTable.c"
-}
-
-
-static void
-value_database_table_init (GValue* value)
-{
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- value->data[0].v_pointer = NULL;
-#line 2282 "DatabaseTable.c"
-}
-
-
-static void
-value_database_table_free_value (GValue* value)
-{
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (value->data[0].v_pointer) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_unref (value->data[0].v_pointer);
-#line 2293 "DatabaseTable.c"
- }
-}
-
-
-static void
-value_database_table_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- dest_value->data[0].v_pointer = database_table_ref (src_value->data[0].v_pointer);
-#line 2306 "DatabaseTable.c"
- } else {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2310 "DatabaseTable.c"
- }
-}
-
-
-static gpointer
-value_database_table_peek_pointer (const GValue* value)
-{
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return value->data[0].v_pointer;
-#line 2320 "DatabaseTable.c"
-}
-
-
-static gchar*
-value_database_table_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (collect_values[0].v_pointer) {
-#line 2332 "DatabaseTable.c"
- DatabaseTable * object;
- object = collect_values[0].v_pointer;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2339 "DatabaseTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.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 2343 "DatabaseTable.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- value->data[0].v_pointer = database_table_ref (object);
-#line 2347 "DatabaseTable.c"
- } else {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- value->data[0].v_pointer = NULL;
-#line 2351 "DatabaseTable.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return NULL;
-#line 2355 "DatabaseTable.c"
-}
-
-
-static gchar*
-value_database_table_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- DatabaseTable ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (!object_p) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2371 "DatabaseTable.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (!value->data[0].v_pointer) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- *object_p = NULL;
-#line 2377 "DatabaseTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 2381 "DatabaseTable.c"
- } else {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- *object_p = database_table_ref (value->data[0].v_pointer);
-#line 2385 "DatabaseTable.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return NULL;
-#line 2389 "DatabaseTable.c"
-}
-
-
-GParamSpec*
-param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecDatabaseTable* spec;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_DATABASE_TABLE), NULL);
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return G_PARAM_SPEC (spec);
-#line 2409 "DatabaseTable.c"
-}
-
-
-gpointer
-value_get_database_table (const GValue* value)
-{
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATABASE_TABLE), NULL);
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return value->data[0].v_pointer;
-#line 2420 "DatabaseTable.c"
-}
-
-
-void
-value_set_database_table (GValue* value,
- gpointer v_object)
-{
- DatabaseTable * old;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATABASE_TABLE));
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- old = value->data[0].v_pointer;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (v_object) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATABASE_TABLE));
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- value->data[0].v_pointer = v_object;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_ref (value->data[0].v_pointer);
-#line 2443 "DatabaseTable.c"
- } else {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- value->data[0].v_pointer = NULL;
-#line 2447 "DatabaseTable.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (old) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_unref (old);
-#line 2453 "DatabaseTable.c"
- }
-}
-
-
-void
-value_take_database_table (GValue* value,
- gpointer v_object)
-{
- DatabaseTable * old;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATABASE_TABLE));
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- old = value->data[0].v_pointer;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (v_object) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATABASE_TABLE));
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- value->data[0].v_pointer = v_object;
-#line 2475 "DatabaseTable.c"
- } else {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- value->data[0].v_pointer = NULL;
-#line 2479 "DatabaseTable.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (old) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_unref (old);
-#line 2485 "DatabaseTable.c"
- }
-}
-
-
-static void
-database_table_class_init (DatabaseTableClass * klass)
-{
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- database_table_parent_class = g_type_class_peek_parent (klass);
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- ((DatabaseTableClass *) klass)->finalize = database_table_finalize;
-#line 2497 "DatabaseTable.c"
-}
-
-
-static void
-database_table_instance_init (DatabaseTable * self)
-{
-#line 30 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- self->table_name = NULL;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- self->ref_count = 1;
-#line 2508 "DatabaseTable.c"
-}
-
-
-static void
-database_table_finalize (DatabaseTable * obj)
-{
- DatabaseTable * self;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATABASE_TABLE, DatabaseTable);
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_signal_handlers_destroy (self);
-#line 30 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- _g_free0 (self->table_name);
-#line 2522 "DatabaseTable.c"
-}
-
-
-GType
-database_table_get_type (void)
-{
- static volatile gsize database_table_type_id__volatile = 0;
- if (g_once_init_enter (&database_table_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_database_table_init, value_database_table_free_value, value_database_table_copy_value, value_database_table_peek_pointer, "p", value_database_table_collect_value, "p", value_database_table_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DatabaseTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) database_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DatabaseTable), 0, (GInstanceInitFunc) database_table_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType database_table_type_id;
- database_table_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DatabaseTable", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&database_table_type_id__volatile, database_table_type_id);
- }
- return database_table_type_id__volatile;
-}
-
-
-gpointer
-database_table_ref (gpointer instance)
-{
- DatabaseTable * self;
- self = instance;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- return instance;
-#line 2551 "DatabaseTable.c"
-}
-
-
-void
-database_table_unref (gpointer instance)
-{
- DatabaseTable * self;
- self = instance;
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- DATABASE_TABLE_GET_CLASS (self)->finalize (self);
-#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2566 "DatabaseTable.c"
- }
-}
-
-
-
diff --git a/src/db/Db.c b/src/db/Db.c
deleted file mode 100644
index cafe2e4..0000000
--- a/src/db/Db.c
+++ /dev/null
@@ -1,742 +0,0 @@
-/* Db.c generated by valac 0.40.4, the Vala compiler
- * generated from Db.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define DB_TYPE_VERIFY_RESULT (db_verify_result_get_type ())
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_VERSION_TABLE (version_table_get_type ())
-#define VERSION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VERSION_TABLE, VersionTable))
-#define VERSION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VERSION_TABLE, VersionTableClass))
-#define IS_VERSION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VERSION_TABLE))
-#define IS_VERSION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VERSION_TABLE))
-#define VERSION_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VERSION_TABLE, VersionTableClass))
-
-typedef struct _VersionTable VersionTable;
-typedef struct _VersionTableClass VersionTableClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- DB_VERIFY_RESULT_OK,
- DB_VERIFY_RESULT_FUTURE_VERSION,
- DB_VERIFY_RESULT_UPGRADE_ERROR,
- DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE
-} DbVerifyResult;
-
-
-extern gchar* db_filename;
-gchar* db_filename = NULL;
-
-#define DB_IN_MEMORY_NAME ":memory:"
-void db_preconfigure (GFile* db_file);
-void db_init (GError** error);
-void database_table_init (const gchar* filename);
-void db_terminate (void);
-void database_table_terminate (void);
-GType db_verify_result_get_type (void) G_GNUC_CONST;
-DbVerifyResult db_verify_database (gchar* * app_version,
- gint* schema_version);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType version_table_get_type (void) G_GNUC_CONST;
-VersionTable* version_table_get_instance (void);
-gint version_table_get_version (VersionTable* self,
- gchar* * app_version);
-#define DATABASE_TABLE_SCHEMA_VERSION 20
-#define RESOURCES_APP_VERSION _VERSION
-void version_table_set_version (VersionTable* self,
- gint version,
- const gchar* app_version,
- const gchar* user_data);
-DbVerifyResult db_upgrade_database (gint input_version);
-gboolean database_table_has_column (const gchar* table_name,
- const gchar* column_name);
-gboolean database_table_add_column (const gchar* table_name,
- const gchar* column_name,
- const gchar* column_constraints);
-gboolean database_table_has_table (const gchar* table_name);
-gboolean database_table_ensure_column (const gchar* table_name,
- const gchar* column_name,
- const gchar* column_constraints,
- const gchar* upgrade_msg);
-void tag_table_upgrade_for_htags (void);
-void gsettings_configuration_engine_run_gsettings_migrator (void);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-void application_set_raw_thumbs_fix_required (Application* self,
- gboolean should_fixup);
-void version_table_update_version (VersionTable* self,
- gint version,
- const gchar* app_version);
-
-
-void
-db_preconfigure (GFile* db_file)
-{
- gchar* _tmp0_ = NULL;
- gchar* _tmp3_;
-#line 14 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_return_if_fail ((db_file == NULL) || G_IS_FILE (db_file));
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (db_file != NULL) {
-#line 144 "Db.c"
- gchar* _tmp1_;
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp1_ = g_file_get_path (db_file);
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (_tmp0_);
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp0_ = _tmp1_;
-#line 152 "Db.c"
- } else {
- gchar* _tmp2_;
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp2_ = g_strdup (DB_IN_MEMORY_NAME);
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (_tmp0_);
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp0_ = _tmp2_;
-#line 161 "Db.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp3_ = g_strdup (_tmp0_);
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (db_filename);
-#line 15 "/home/jens/Source/shotwell/src/db/Db.vala"
- db_filename = _tmp3_;
-#line 14 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (_tmp0_);
-#line 171 "Db.c"
-}
-
-
-void
-db_init (GError** error)
-{
- const gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp0_ = db_filename;
-#line 19 "/home/jens/Source/shotwell/src/db/Db.vala"
- _vala_assert (_tmp0_ != NULL, "filename != null");
-#line 21 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp1_ = db_filename;
-#line 21 "/home/jens/Source/shotwell/src/db/Db.vala"
- database_table_init (_tmp1_);
-#line 188 "Db.c"
-}
-
-
-void
-db_terminate (void)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/Db.vala"
- database_table_terminate ();
-#line 197 "Db.c"
-}
-
-
-GType
-db_verify_result_get_type (void)
-{
- static volatile gsize db_verify_result_type_id__volatile = 0;
- if (g_once_init_enter (&db_verify_result_type_id__volatile)) {
- static const GEnumValue values[] = {{DB_VERIFY_RESULT_OK, "DB_VERIFY_RESULT_OK", "ok"}, {DB_VERIFY_RESULT_FUTURE_VERSION, "DB_VERIFY_RESULT_FUTURE_VERSION", "future-version"}, {DB_VERIFY_RESULT_UPGRADE_ERROR, "DB_VERIFY_RESULT_UPGRADE_ERROR", "upgrade-error"}, {DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE, "DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE", "no-upgrade-available"}, {0, NULL, NULL}};
- GType db_verify_result_type_id;
- db_verify_result_type_id = g_enum_register_static ("DbVerifyResult", values);
- g_once_init_leave (&db_verify_result_type_id__volatile, db_verify_result_type_id);
- }
- return db_verify_result_type_id__volatile;
-}
-
-
-DbVerifyResult
-db_verify_database (gchar* * app_version,
- gint* schema_version)
-{
- gchar* _vala_app_version = NULL;
- gint _vala_schema_version = 0;
- DbVerifyResult result = 0;
- VersionTable* version_table = NULL;
- VersionTable* _tmp0_;
- VersionTable* _tmp1_;
- gchar* _tmp2_ = NULL;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp7_;
-#line 36 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp0_ = version_table_get_instance ();
-#line 36 "/home/jens/Source/shotwell/src/db/Db.vala"
- version_table = _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp1_ = version_table;
-#line 37 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp3_ = version_table_get_version (_tmp1_, &_tmp2_);
-#line 37 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (_vala_app_version);
-#line 37 "/home/jens/Source/shotwell/src/db/Db.vala"
- _vala_app_version = _tmp2_;
-#line 37 "/home/jens/Source/shotwell/src/db/Db.vala"
- _vala_schema_version = _tmp3_;
-#line 39 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp4_ = _vala_schema_version;
-#line 39 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (_tmp4_ >= 0) {
-#line 247 "Db.c"
- gint _tmp5_;
- const gchar* _tmp6_;
-#line 40 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp5_ = _vala_schema_version;
-#line 40 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp6_ = _vala_app_version;
-#line 40 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_debug ("Db.vala:40: Database schema version %d created by app version %s", _tmp5_, _tmp6_);
-#line 256 "Db.c"
- }
-#line 42 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp7_ = _vala_schema_version;
-#line 42 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (_tmp7_ == -1) {
-#line 262 "Db.c"
- VersionTable* _tmp8_;
- gchar* _tmp9_;
-#line 44 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_debug ("Db.vala:44: Creating database schema version %d for app version %s", DATABASE_TABLE_SCHEMA_VERSION, RESOURCES_APP_VERSION);
-#line 46 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp8_ = version_table;
-#line 46 "/home/jens/Source/shotwell/src/db/Db.vala"
- version_table_set_version (_tmp8_, DATABASE_TABLE_SCHEMA_VERSION, RESOURCES_APP_VERSION, NULL);
-#line 47 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp9_ = g_strdup (RESOURCES_APP_VERSION);
-#line 47 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (_vala_app_version);
-#line 47 "/home/jens/Source/shotwell/src/db/Db.vala"
- _vala_app_version = _tmp9_;
-#line 48 "/home/jens/Source/shotwell/src/db/Db.vala"
- _vala_schema_version = DATABASE_TABLE_SCHEMA_VERSION;
-#line 279 "Db.c"
- } else {
- gint _tmp10_;
-#line 49 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp10_ = _vala_schema_version;
-#line 49 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (_tmp10_ > DATABASE_TABLE_SCHEMA_VERSION) {
-#line 51 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_FUTURE_VERSION;
-#line 51 "/home/jens/Source/shotwell/src/db/Db.vala"
- _database_table_unref0 (version_table);
-#line 51 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (app_version) {
-#line 51 "/home/jens/Source/shotwell/src/db/Db.vala"
- *app_version = _vala_app_version;
-#line 294 "Db.c"
- } else {
-#line 51 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (_vala_app_version);
-#line 298 "Db.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (schema_version) {
-#line 51 "/home/jens/Source/shotwell/src/db/Db.vala"
- *schema_version = _vala_schema_version;
-#line 304 "Db.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 308 "Db.c"
- } else {
- gint _tmp11_;
-#line 52 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp11_ = _vala_schema_version;
-#line 52 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (_tmp11_ < DATABASE_TABLE_SCHEMA_VERSION) {
-#line 315 "Db.c"
- DbVerifyResult _result_ = 0;
- gint _tmp12_;
- DbVerifyResult _tmp13_;
-#line 54 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp12_ = _vala_schema_version;
-#line 54 "/home/jens/Source/shotwell/src/db/Db.vala"
- _result_ = db_upgrade_database (_tmp12_);
-#line 55 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp13_ = _result_;
-#line 55 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (_tmp13_ != DB_VERIFY_RESULT_OK) {
-#line 56 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = _result_;
-#line 56 "/home/jens/Source/shotwell/src/db/Db.vala"
- _database_table_unref0 (version_table);
-#line 56 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (app_version) {
-#line 56 "/home/jens/Source/shotwell/src/db/Db.vala"
- *app_version = _vala_app_version;
-#line 335 "Db.c"
- } else {
-#line 56 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (_vala_app_version);
-#line 339 "Db.c"
- }
-#line 56 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (schema_version) {
-#line 56 "/home/jens/Source/shotwell/src/db/Db.vala"
- *schema_version = _vala_schema_version;
-#line 345 "Db.c"
- }
-#line 56 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 349 "Db.c"
- }
- }
- }
- }
-#line 59 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_OK;
-#line 59 "/home/jens/Source/shotwell/src/db/Db.vala"
- _database_table_unref0 (version_table);
-#line 59 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (app_version) {
-#line 59 "/home/jens/Source/shotwell/src/db/Db.vala"
- *app_version = _vala_app_version;
-#line 362 "Db.c"
- } else {
-#line 59 "/home/jens/Source/shotwell/src/db/Db.vala"
- _g_free0 (_vala_app_version);
-#line 366 "Db.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (schema_version) {
-#line 59 "/home/jens/Source/shotwell/src/db/Db.vala"
- *schema_version = _vala_schema_version;
-#line 372 "Db.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 376 "Db.c"
-}
-
-
-DbVerifyResult
-db_upgrade_database (gint input_version)
-{
- DbVerifyResult result = 0;
- gint version = 0;
- gint _tmp0_;
- gint _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp5_;
- VersionTable* _tmp6_;
- VersionTable* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 63 "/home/jens/Source/shotwell/src/db/Db.vala"
- _vala_assert (input_version < DATABASE_TABLE_SCHEMA_VERSION, "input_version < DatabaseTable.SCHEMA_VERSION");
-#line 65 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = input_version;
-#line 68 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp0_ = version;
-#line 68 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (_tmp0_ == 1) {
-#line 69 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE;
-#line 69 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 405 "Db.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp1_ = version;
-#line 71 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:71: Upgrading database from schema version %d to %d", _tmp1_, DATABASE_TABLE_SCHEMA_VERSION);
-#line 83 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "flags")) {
-#line 84 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:84: upgrade_database: adding flags column to PhotoTable");
-#line 85 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "flags", "INTEGER DEFAULT 0")) {
-#line 86 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 86 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 421 "Db.c"
- }
- }
-#line 89 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 3;
-#line 100 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "file_format")) {
-#line 101 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:101: upgrade_database: adding file_format column to PhotoTable");
-#line 102 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "file_format", "INTEGER DEFAULT 0")) {
-#line 103 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 103 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 436 "Db.c"
- }
- }
-#line 106 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 4;
-#line 113 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "title")) {
-#line 114 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:114: upgrade_database: adding title column to PhotoTable");
-#line 115 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "title", "TEXT")) {
-#line 116 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 116 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 451 "Db.c"
- }
- }
-#line 119 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 5;
-#line 126 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "backlinks")) {
-#line 127 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:127: upgrade_database: adding backlinks column to PhotoTable");
-#line 128 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "backlinks", "TEXT")) {
-#line 129 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 129 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 466 "Db.c"
- }
- }
-#line 132 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 6;
-#line 146 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "time_reimported")) {
-#line 147 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:147: upgrade_database: adding time_reimported column to PhotoT" \
-"able");
-#line 148 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "time_reimported", "INTEGER")) {
-#line 149 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 149 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 481 "Db.c"
- }
- }
-#line 152 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "editable_id")) {
-#line 153 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:153: upgrade_database: adding editable_id column to PhotoTable");
-#line 154 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "editable_id", "INTEGER DEFAULT -1")) {
-#line 155 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 155 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 494 "Db.c"
- }
- }
-#line 158 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 7;
-#line 170 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "rating")) {
-#line 171 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:171: upgrade_database: adding rating column to PhotoTable");
-#line 172 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "rating", "INTEGER DEFAULT 0")) {
-#line 173 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 173 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 509 "Db.c"
- }
- }
-#line 182 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "metadata_dirty")) {
-#line 183 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:183: upgrade_database: adding metadata_dirty column to PhotoTa" \
-"ble");
-#line 184 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "metadata_dirty", "INTEGER DEFAULT 1")) {
-#line 185 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 185 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 522 "Db.c"
- }
- }
-#line 188 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 9;
-#line 195 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (database_table_has_table ("VideoTable")) {
-#line 195 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp2_ = !database_table_has_column ("VideoTable", "flags");
-#line 531 "Db.c"
- } else {
-#line 195 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp2_ = FALSE;
-#line 535 "Db.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (_tmp2_) {
-#line 196 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:196: upgrade_database: adding flags column to VideoTable");
-#line 197 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("VideoTable", "flags", "INTEGER DEFAULT 0")) {
-#line 198 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 198 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 547 "Db.c"
- }
- }
-#line 201 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 10;
-#line 208 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("EventTable", "primary_source_id")) {
-#line 209 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:209: upgrade_database: adding primary_source_id column to Even" \
-"tTable");
-#line 210 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("EventTable", "primary_source_id", "TEXT")) {
-#line 211 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 211 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 562 "Db.c"
- }
- }
-#line 214 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 11;
-#line 221 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_ensure_column ("TombstoneTable", "reason", "INTEGER DEFAULT 0", "upgrade_database: adding reason column to TombstoneTable")) {
-#line 223 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 223 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 573 "Db.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 12;
-#line 233 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "developer")) {
-#line 234 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:234: upgrade_database: adding developer column to PhotoTable");
-#line 235 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "developer", "TEXT")) {
-#line 236 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 236 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 587 "Db.c"
- }
- }
-#line 239 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "develop_shotwell_id")) {
-#line 240 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:240: upgrade_database: adding develop_shotwell_id column to Ph" \
-"otoTable");
-#line 241 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "develop_shotwell_id", "INTEGER DEFAULT -1")) {
-#line 242 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 242 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 600 "Db.c"
- }
- }
-#line 245 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "develop_camera_id")) {
-#line 246 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:246: upgrade_database: adding develop_camera_id column to Phot" \
-"oTable");
-#line 247 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "develop_camera_id", "INTEGER DEFAULT -1")) {
-#line 248 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 248 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 613 "Db.c"
- }
- }
-#line 251 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "develop_embedded_id")) {
-#line 252 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:252: upgrade_database: adding develop_embedded_id column to Ph" \
-"otoTable");
-#line 253 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "develop_embedded_id", "INTEGER DEFAULT -1")) {
-#line 254 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 254 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 626 "Db.c"
- }
- }
-#line 257 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 13;
-#line 264 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (input_version < 14) {
-#line 265 "/home/jens/Source/shotwell/src/db/Db.vala"
- tag_table_upgrade_for_htags ();
-#line 635 "Db.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 14;
-#line 279 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 15;
-#line 289 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (input_version < 16) {
-#line 292 "/home/jens/Source/shotwell/src/db/Db.vala"
- gsettings_configuration_engine_run_gsettings_migrator ();
-#line 645 "Db.c"
- }
-#line 295 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 16;
-#line 302 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("PhotoTable", "comment")) {
-#line 303 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:303: upgrade_database: adding comment column to PhotoTable");
-#line 304 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("PhotoTable", "comment", "TEXT")) {
-#line 305 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 305 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 659 "Db.c"
- }
- }
-#line 307 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (database_table_has_table ("VideoTable") & (!database_table_has_column ("VideoTable", "comment"))) {
-#line 308 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:308: upgrade_database: adding comment column to VideoTable");
-#line 309 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("VideoTable", "comment", "TEXT")) {
-#line 310 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 310 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 672 "Db.c"
- }
- }
-#line 313 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 17;
-#line 320 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_has_column ("EventTable", "comment")) {
-#line 321 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:321: upgrade_database: adding comment column to EventTable");
-#line 322 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (!database_table_add_column ("EventTable", "comment", "TEXT")) {
-#line 323 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_UPGRADE_ERROR;
-#line 323 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 687 "Db.c"
- }
- }
-#line 326 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 18;
-#line 337 "/home/jens/Source/shotwell/src/db/Db.vala"
- if (input_version < 19) {
-#line 694 "Db.c"
- Application* _tmp3_;
- Application* _tmp4_;
-#line 338 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp3_ = application_get_instance ();
-#line 338 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp4_ = _tmp3_;
-#line 338 "/home/jens/Source/shotwell/src/db/Db.vala"
- application_set_raw_thumbs_fix_required (_tmp4_, TRUE);
-#line 338 "/home/jens/Source/shotwell/src/db/Db.vala"
- _application_unref0 (_tmp4_);
-#line 705 "Db.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 19;
-#line 351 "/home/jens/Source/shotwell/src/db/Db.vala"
- version = 20;
-#line 357 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp5_ = version;
-#line 357 "/home/jens/Source/shotwell/src/db/Db.vala"
- _vala_assert (_tmp5_ == DATABASE_TABLE_SCHEMA_VERSION, "version == DatabaseTable.SCHEMA_VERSION");
-#line 358 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp6_ = version_table_get_instance ();
-#line 358 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp7_ = _tmp6_;
-#line 358 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp8_ = version;
-#line 358 "/home/jens/Source/shotwell/src/db/Db.vala"
- version_table_update_version (_tmp7_, _tmp8_, RESOURCES_APP_VERSION);
-#line 358 "/home/jens/Source/shotwell/src/db/Db.vala"
- _database_table_unref0 (_tmp7_);
-#line 360 "/home/jens/Source/shotwell/src/db/Db.vala"
- _tmp9_ = version;
-#line 360 "/home/jens/Source/shotwell/src/db/Db.vala"
- g_message ("Db.vala:360: Database upgrade to schema version %d successful", _tmp9_);
-#line 362 "/home/jens/Source/shotwell/src/db/Db.vala"
- result = DB_VERIFY_RESULT_OK;
-#line 362 "/home/jens/Source/shotwell/src/db/Db.vala"
- return result;
-#line 733 "Db.c"
-}
-
-
-
diff --git a/src/db/EventTable.c b/src/db/EventTable.c
deleted file mode 100644
index ce14303..0000000
--- a/src/db/EventTable.c
+++ /dev/null
@@ -1,1901 +0,0 @@
-/* EventTable.c generated by valac 0.40.4, the Vala compiler
- * generated from EventTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <stdlib.h>
-#include <time.h>
-#include <sqlite3.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_EVENT_ROW (event_row_get_type ())
-#define EVENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_ROW, EventRow))
-#define EVENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_ROW, EventRowClass))
-#define IS_EVENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_ROW))
-#define IS_EVENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_ROW))
-#define EVENT_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_ROW, EventRowClass))
-
-typedef struct _EventRow EventRow;
-typedef struct _EventRowClass EventRowClass;
-typedef struct _EventRowPrivate EventRowPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecEventRow ParamSpecEventRow;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-typedef struct _DatabaseTablePrivate DatabaseTablePrivate;
-
-#define TYPE_EVENT_TABLE (event_table_get_type ())
-#define EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_TABLE, EventTable))
-#define EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_TABLE, EventTableClass))
-#define IS_EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_TABLE))
-#define IS_EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_TABLE))
-#define EVENT_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_TABLE, EventTableClass))
-
-typedef struct _EventTable EventTable;
-typedef struct _EventTableClass EventTableClass;
-typedef struct _EventTablePrivate EventTablePrivate;
-#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-#define _event_row_unref0(var) ((var == NULL) ? NULL : (var = (event_row_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _EventID {
- gint64 id;
-};
-
-struct _EventRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EventRowPrivate * priv;
- EventID event_id;
- gchar* name;
- time_t time_created;
- gchar* primary_source_id;
- gchar* comment;
-};
-
-struct _EventRowClass {
- GTypeClass parent_class;
- void (*finalize) (EventRow *self);
-};
-
-struct _ParamSpecEventRow {
- GParamSpec parent_instance;
-};
-
-struct _DatabaseTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DatabaseTablePrivate * priv;
- gchar* table_name;
-};
-
-struct _DatabaseTableClass {
- GTypeClass parent_class;
- void (*finalize) (DatabaseTable *self);
-};
-
-struct _EventTable {
- DatabaseTable parent_instance;
- EventTablePrivate * priv;
-};
-
-struct _EventTableClass {
- DatabaseTableClass parent_class;
-};
-
-struct _PhotoID {
- gint64 id;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-
-static gpointer event_row_parent_class = NULL;
-static gpointer event_table_parent_class = NULL;
-static EventTable* event_table_instance;
-static EventTable* event_table_instance = NULL;
-extern sqlite3* database_table_db;
-
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-#define EVENT_ID_INVALID ((gint64) -1)
-void event_id_init (EventID *self,
- gint64 id);
-gboolean event_id_is_invalid (EventID *self);
-gboolean event_id_is_valid (EventID *self);
-gpointer event_row_ref (gpointer instance);
-void event_row_unref (gpointer instance);
-GParamSpec* param_spec_event_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_event_row (GValue* value,
- gpointer v_object);
-void value_take_event_row (GValue* value,
- gpointer v_object);
-gpointer value_get_event_row (const GValue* value);
-GType event_row_get_type (void) G_GNUC_CONST;
-EventRow* event_row_new (void);
-EventRow* event_row_construct (GType object_type);
-static void event_row_finalize (EventRow * obj);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType event_table_get_type (void) G_GNUC_CONST;
-static EventTable* event_table_new (void);
-static EventTable* event_table_construct (GType object_type);
-DatabaseTable* database_table_construct (GType object_type);
-void database_table_fatal (const gchar* op,
- gint res);
-void database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name);
-EventTable* event_table_get_instance (void);
-static gchar* event_table_source_id_upgrade (EventTable* self,
- gint64 primary_photo_id,
- const gchar* primary_source_id);
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-gboolean media_collection_registry_is_valid_source_id (MediaCollectionRegistry* self,
- const gchar* source_id);
-#define PHOTO_ID_INVALID ((gint64) -1)
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-gchar* photo_id_upgrade_photo_id_to_source_id (PhotoID* photo_id);
-void photo_id_init (PhotoID *self,
- gint64 id);
-GQuark database_error_quark (void);
-EventRow* event_table_create (EventTable* self,
- const gchar* primary_source_id,
- const gchar* comment,
- GError** error);
-gulong now_sec (void);
-void database_table_throw_error (const gchar* method,
- gint res,
- GError** error);
-void event_table_create_from_row (EventTable* self,
- EventRow* row,
- EventID* result);
-EventRow* event_table_get_row (EventTable* self,
- EventID* event_id);
-void event_table_remove (EventTable* self,
- EventID* event_id,
- GError** error);
-void database_table_delete_by_id (DatabaseTable* self,
- gint64 id,
- GError** error);
-GeeArrayList* event_table_get_events (EventTable* self);
-gboolean event_table_rename (EventTable* self,
- EventID* event_id,
- const gchar* name);
-gboolean database_table_update_text_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text);
-gchar* event_table_get_name (EventTable* self,
- EventID* event_id);
-gboolean database_table_select_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* columns,
- sqlite3_stmt* * stmt);
-gchar* event_table_get_primary_source_id (EventTable* self,
- EventID* event_id);
-gboolean event_table_set_primary_source_id (EventTable* self,
- EventID* event_id,
- const gchar* primary_source_id);
-time_t event_table_get_time_created (EventTable* self,
- EventID* event_id);
-gboolean event_table_set_comment (EventTable* self,
- EventID* event_id,
- const gchar* new_comment);
-static void event_table_finalize (DatabaseTable * obj);
-
-
-void
-event_id_init (EventID *self,
- gint64 id)
-{
-#line 12 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- memset (self, 0, sizeof (EventID));
-#line 13 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- (*self).id = id;
-#line 274 "EventTable.c"
-}
-
-
-gboolean
-event_id_is_invalid (EventID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = (*self).id;
-#line 17 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = _tmp0_ == EVENT_ID_INVALID;
-#line 17 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 289 "EventTable.c"
-}
-
-
-gboolean
-event_id_is_valid (EventID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = (*self).id;
-#line 21 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = _tmp0_ != EVENT_ID_INVALID;
-#line 21 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 304 "EventTable.c"
-}
-
-
-EventID*
-event_id_dup (const EventID* self)
-{
- EventID* dup;
-#line 7 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- dup = g_new0 (EventID, 1);
-#line 7 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- memcpy (dup, self, sizeof (EventID));
-#line 7 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return dup;
-#line 318 "EventTable.c"
-}
-
-
-void
-event_id_free (EventID* self)
-{
-#line 7 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_free (self);
-#line 327 "EventTable.c"
-}
-
-
-GType
-event_id_get_type (void)
-{
- static volatile gsize event_id_type_id__volatile = 0;
- if (g_once_init_enter (&event_id_type_id__volatile)) {
- GType event_id_type_id;
- event_id_type_id = g_boxed_type_register_static ("EventID", (GBoxedCopyFunc) event_id_dup, (GBoxedFreeFunc) event_id_free);
- g_once_init_leave (&event_id_type_id__volatile, event_id_type_id);
- }
- return event_id_type_id__volatile;
-}
-
-
-EventRow*
-event_row_construct (GType object_type)
-{
- EventRow* self = NULL;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- self = (EventRow*) g_type_create_instance (object_type);
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return self;
-#line 352 "EventTable.c"
-}
-
-
-EventRow*
-event_row_new (void)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return event_row_construct (TYPE_EVENT_ROW);
-#line 361 "EventTable.c"
-}
-
-
-static void
-value_event_row_init (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- value->data[0].v_pointer = NULL;
-#line 370 "EventTable.c"
-}
-
-
-static void
-value_event_row_free_value (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_row_unref (value->data[0].v_pointer);
-#line 381 "EventTable.c"
- }
-}
-
-
-static void
-value_event_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- dest_value->data[0].v_pointer = event_row_ref (src_value->data[0].v_pointer);
-#line 394 "EventTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 398 "EventTable.c"
- }
-}
-
-
-static gpointer
-value_event_row_peek_pointer (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return value->data[0].v_pointer;
-#line 408 "EventTable.c"
-}
-
-
-static gchar*
-value_event_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (collect_values[0].v_pointer) {
-#line 420 "EventTable.c"
- EventRow * object;
- object = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 427 "EventTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.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 431 "EventTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- value->data[0].v_pointer = event_row_ref (object);
-#line 435 "EventTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- value->data[0].v_pointer = NULL;
-#line 439 "EventTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return NULL;
-#line 443 "EventTable.c"
-}
-
-
-static gchar*
-value_event_row_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- EventRow ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (!object_p) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 459 "EventTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (!value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- *object_p = NULL;
-#line 465 "EventTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 469 "EventTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- *object_p = event_row_ref (value->data[0].v_pointer);
-#line 473 "EventTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return NULL;
-#line 477 "EventTable.c"
-}
-
-
-GParamSpec*
-param_spec_event_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecEventRow* spec;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_EVENT_ROW), NULL);
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return G_PARAM_SPEC (spec);
-#line 497 "EventTable.c"
-}
-
-
-gpointer
-value_get_event_row (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EVENT_ROW), NULL);
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return value->data[0].v_pointer;
-#line 508 "EventTable.c"
-}
-
-
-void
-value_set_event_row (GValue* value,
- gpointer v_object)
-{
- EventRow * old;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EVENT_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_EVENT_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- value->data[0].v_pointer = v_object;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_row_ref (value->data[0].v_pointer);
-#line 531 "EventTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- value->data[0].v_pointer = NULL;
-#line 535 "EventTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_row_unref (old);
-#line 541 "EventTable.c"
- }
-}
-
-
-void
-value_take_event_row (GValue* value,
- gpointer v_object)
-{
- EventRow * old;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EVENT_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_EVENT_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- value->data[0].v_pointer = v_object;
-#line 563 "EventTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- value->data[0].v_pointer = NULL;
-#line 567 "EventTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_row_unref (old);
-#line 573 "EventTable.c"
- }
-}
-
-
-static void
-event_row_class_init (EventRowClass * klass)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_row_parent_class = g_type_class_peek_parent (klass);
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- ((EventRowClass *) klass)->finalize = event_row_finalize;
-#line 585 "EventTable.c"
-}
-
-
-static void
-event_row_instance_init (EventRow * self)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- self->ref_count = 1;
-#line 594 "EventTable.c"
-}
-
-
-static void
-event_row_finalize (EventRow * obj)
-{
- EventRow * self;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_ROW, EventRow);
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_signal_handlers_destroy (self);
-#line 27 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (self->name);
-#line 29 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (self->primary_source_id);
-#line 30 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (self->comment);
-#line 612 "EventTable.c"
-}
-
-
-GType
-event_row_get_type (void)
-{
- static volatile gsize event_row_type_id__volatile = 0;
- if (g_once_init_enter (&event_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_event_row_init, value_event_row_free_value, value_event_row_copy_value, value_event_row_peek_pointer, "p", value_event_row_collect_value, "p", value_event_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (EventRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventRow), 0, (GInstanceInitFunc) event_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType event_row_type_id;
- event_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EventRow", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&event_row_type_id__volatile, event_row_type_id);
- }
- return event_row_type_id__volatile;
-}
-
-
-gpointer
-event_row_ref (gpointer instance)
-{
- EventRow * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return instance;
-#line 641 "EventTable.c"
-}
-
-
-void
-event_row_unref (gpointer instance)
-{
- EventRow * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- EVENT_ROW_GET_CLASS (self)->finalize (self);
-#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 656 "EventTable.c"
- }
-}
-
-
-static EventTable*
-event_table_construct (GType object_type)
-{
- EventTable* self = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
-#line 36 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- self = (EventTable*) database_table_construct (object_type);
-#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = database_table_db;
-#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS EventTable (" "id INTEGER PRIMARY KEY, " "name TEXT, " "primary_photo_id INTEGER, " "time_created INTEGER," "primary_source_id TEXT," "comment TEXT" ")", -1, &_tmp1_, NULL);
-#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- stmt = _tmp1_;
-#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = _tmp2_;
-#line 46 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = res;
-#line 46 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 48 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp4_ = stmt;
-#line 48 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 49 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = res;
-#line 49 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 697 "EventTable.c"
- gint _tmp6_;
-#line 50 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp6_ = res;
-#line 50 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- database_table_fatal ("create photo table", _tmp6_);
-#line 703 "EventTable.c"
- }
-#line 52 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "EventTable");
-#line 36 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 36 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return self;
-#line 711 "EventTable.c"
-}
-
-
-static EventTable*
-event_table_new (void)
-{
-#line 36 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return event_table_construct (TYPE_EVENT_TABLE);
-#line 720 "EventTable.c"
-}
-
-
-static gpointer
-_database_table_ref0 (gpointer self)
-{
-#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return self ? database_table_ref (self) : NULL;
-#line 729 "EventTable.c"
-}
-
-
-EventTable*
-event_table_get_instance (void)
-{
- EventTable* result = NULL;
- EventTable* _tmp0_;
- EventTable* _tmp2_;
- EventTable* _tmp3_;
-#line 56 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = event_table_instance;
-#line 56 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp0_ == NULL) {
-#line 744 "EventTable.c"
- EventTable* _tmp1_;
-#line 57 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = event_table_new ();
-#line 57 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _database_table_unref0 (event_table_instance);
-#line 57 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_table_instance = _tmp1_;
-#line 752 "EventTable.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp2_ = event_table_instance;
-#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = _database_table_ref0 (_tmp2_);
-#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = _tmp3_;
-#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 762 "EventTable.c"
-}
-
-
-static gchar*
-event_table_source_id_upgrade (EventTable* self,
- gint64 primary_photo_id,
- const gchar* primary_source_id)
-{
- gchar* result = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- gboolean _tmp2_;
-#line 63 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), NULL);
-#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp2_ = media_collection_registry_is_valid_source_id (_tmp1_, primary_source_id);
-#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp2_) {
-#line 787 "EventTable.c"
- gchar* _tmp3_;
-#line 65 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = g_strdup (primary_source_id);
-#line 65 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = _tmp3_;
-#line 65 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 795 "EventTable.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (primary_photo_id != PHOTO_ID_INVALID) {
-#line 799 "EventTable.c"
- PhotoID _tmp4_ = {0};
- gchar* _tmp5_;
-#line 69 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- photo_id_init (&_tmp4_, primary_photo_id);
-#line 69 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = photo_id_upgrade_photo_id_to_source_id (&_tmp4_);
-#line 69 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = _tmp5_;
-#line 69 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 810 "EventTable.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = NULL;
-#line 71 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 816 "EventTable.c"
-}
-
-
-EventRow*
-event_table_create (EventTable* self,
- const gchar* primary_source_id,
- const gchar* comment,
- GError** error)
-{
- EventRow* result = NULL;
- gboolean _tmp0_ = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp1_;
- sqlite3_stmt* _tmp2_ = NULL;
- gint _tmp3_;
- gint _tmp4_;
- time_t time_created = 0;
- sqlite3_stmt* _tmp5_;
- gchar* _tmp6_;
- GDestroyNotify _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- time_t _tmp10_;
- gint _tmp11_;
- sqlite3_stmt* _tmp12_;
- gchar* _tmp13_;
- GDestroyNotify _tmp14_;
- gint _tmp15_;
- sqlite3_stmt* _tmp16_;
- gint _tmp17_;
- EventRow* row = NULL;
- EventRow* _tmp19_;
- EventRow* _tmp20_;
- sqlite3* _tmp21_;
- EventRow* _tmp22_;
- EventRow* _tmp23_;
- gchar* _tmp24_;
- EventRow* _tmp25_;
- time_t _tmp26_;
- EventRow* _tmp27_;
- gchar* _tmp28_;
- GError * _inner_error_ = NULL;
-#line 74 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), NULL);
-#line 75 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (primary_source_id != NULL) {
-#line 75 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = g_strcmp0 (primary_source_id, "") != 0;
-#line 866 "EventTable.c"
- } else {
-#line 75 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = FALSE;
-#line 870 "EventTable.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp0_, "primary_source_id != null && primary_source_id != \"\"");
-#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = database_table_db;
-#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = sqlite3_prepare_v2 (_tmp1_, "INSERT INTO EventTable (primary_source_id, time_created, comment) VALU" \
-"ES (?, ?, ?)", -1, &_tmp2_, NULL);
-#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- stmt = _tmp2_;
-#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = _tmp3_;
-#line 81 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp4_ = res;
-#line 81 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp4_ == SQLITE_OK, "res == Sqlite.OK");
-#line 83 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- time_created = (time_t) now_sec ();
-#line 85 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = stmt;
-#line 85 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp6_ = g_strdup (primary_source_id);
-#line 85 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp7_ = g_free;
-#line 85 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_text (_tmp5_, 1, _tmp6_, -1, _tmp7_);
-#line 86 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp8_ = res;
-#line 86 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 87 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp9_ = stmt;
-#line 87 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp10_ = time_created;
-#line 87 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_int64 (_tmp9_, 2, (gint64) _tmp10_);
-#line 88 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp11_ = res;
-#line 88 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK");
-#line 89 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp12_ = stmt;
-#line 89 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp13_ = g_strdup (comment);
-#line 89 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp14_ = g_free;
-#line 89 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_text (_tmp12_, 3, _tmp13_, -1, _tmp14_);
-#line 90 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp15_ = res;
-#line 90 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK");
-#line 92 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp16_ = stmt;
-#line 92 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_step (_tmp16_);
-#line 93 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp17_ = res;
-#line 93 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp17_ != SQLITE_DONE) {
-#line 932 "EventTable.c"
- gint _tmp18_;
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp18_ = res;
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- database_table_throw_error ("EventTable.create", _tmp18_, &_inner_error_);
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return NULL;
-#line 948 "EventTable.c"
- } else {
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.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 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_clear_error (&_inner_error_);
-#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return NULL;
-#line 958 "EventTable.c"
- }
- }
- }
-#line 96 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp19_ = event_row_new ();
-#line 96 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- row = _tmp19_;
-#line 97 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp20_ = row;
-#line 97 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp21_ = database_table_db;
-#line 97 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_id_init (&_tmp20_->event_id, sqlite3_last_insert_rowid (_tmp21_));
-#line 98 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp22_ = row;
-#line 98 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp22_->name);
-#line 98 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp22_->name = NULL;
-#line 99 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp23_ = row;
-#line 99 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp24_ = g_strdup (primary_source_id);
-#line 99 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp23_->primary_source_id);
-#line 99 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp23_->primary_source_id = _tmp24_;
-#line 100 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp25_ = row;
-#line 100 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp26_ = time_created;
-#line 100 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp25_->time_created = _tmp26_;
-#line 101 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp27_ = row;
-#line 101 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp28_ = g_strdup (comment);
-#line 101 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp27_->comment);
-#line 101 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp27_->comment = _tmp28_;
-#line 103 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = row;
-#line 103 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 103 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1006 "EventTable.c"
-}
-
-
-void
-event_table_create_from_row (EventTable* self,
- EventRow* row,
- EventID* result)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- GDestroyNotify _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- gint _tmp10_;
- sqlite3_stmt* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- GDestroyNotify _tmp14_;
- gint _tmp15_;
- sqlite3_stmt* _tmp16_;
- time_t _tmp17_;
- gint _tmp18_;
- sqlite3_stmt* _tmp19_;
- const gchar* _tmp20_;
- gchar* _tmp21_;
- GDestroyNotify _tmp22_;
- gint _tmp23_;
- sqlite3_stmt* _tmp24_;
- gint _tmp25_;
- sqlite3* _tmp28_;
- EventID _tmp29_ = {0};
-#line 109 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (IS_EVENT_TABLE (self));
-#line 109 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (IS_EVENT_ROW (row));
-#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = database_table_db;
-#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO EventTable (name, primary_photo_id, primary_source_id, tim" \
-"e_created, comment) VALUES (?, ?, ?, ?, ?)", -1, &_tmp1_, NULL);
-#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- stmt = _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = _tmp2_;
-#line 113 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = res;
-#line 113 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp4_ = stmt;
-#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = row->name;
-#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp7_ = g_free;
-#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_);
-#line 116 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp8_ = res;
-#line 116 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 117 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp9_ = stmt;
-#line 117 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_int64 (_tmp9_, 2, PHOTO_ID_INVALID);
-#line 118 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp10_ = res;
-#line 118 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp10_ == SQLITE_OK, "res == Sqlite.OK");
-#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp11_ = stmt;
-#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp12_ = row->primary_source_id;
-#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp14_ = g_free;
-#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_text (_tmp11_, 3, _tmp13_, -1, _tmp14_);
-#line 120 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp15_ = res;
-#line 120 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK");
-#line 121 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp16_ = stmt;
-#line 121 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp17_ = row->time_created;
-#line 121 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_int64 (_tmp16_, 4, (gint64) _tmp17_);
-#line 122 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp18_ = res;
-#line 122 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp18_ == SQLITE_OK, "res == Sqlite.OK");
-#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp19_ = stmt;
-#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp20_ = row->comment;
-#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp21_ = g_strdup (_tmp20_);
-#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp22_ = g_free;
-#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_text (_tmp19_, 5, _tmp21_, -1, _tmp22_);
-#line 124 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp23_ = res;
-#line 124 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK");
-#line 126 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp24_ = stmt;
-#line 126 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_step (_tmp24_);
-#line 127 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp25_ = res;
-#line 127 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp25_ != SQLITE_DONE) {
-#line 1131 "EventTable.c"
- gint _tmp26_;
- EventID _tmp27_ = {0};
-#line 128 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp26_ = res;
-#line 128 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- database_table_fatal ("Event create_from_row", _tmp26_);
-#line 130 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_id_init (&_tmp27_, EVENT_ID_INVALID);
-#line 130 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- *result = _tmp27_;
-#line 130 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 130 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return;
-#line 1146 "EventTable.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp28_ = database_table_db;
-#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_id_init (&_tmp29_, sqlite3_last_insert_rowid (_tmp28_));
-#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- *result = _tmp29_;
-#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return;
-#line 1158 "EventTable.c"
-}
-
-
-EventRow*
-event_table_get_row (EventTable* self,
- EventID* event_id)
-{
- EventRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- EventID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- EventRow* row = NULL;
- EventRow* _tmp9_;
- EventRow* _tmp10_;
- EventID _tmp11_;
- EventRow* _tmp12_;
- sqlite3_stmt* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
- gboolean _tmp16_ = FALSE;
- EventRow* _tmp17_;
- const gchar* _tmp18_;
- EventRow* _tmp24_;
- sqlite3_stmt* _tmp25_;
- sqlite3_stmt* _tmp26_;
- const gchar* _tmp27_;
- gchar* _tmp28_;
- EventRow* _tmp29_;
- sqlite3_stmt* _tmp30_;
- EventRow* _tmp31_;
- sqlite3_stmt* _tmp32_;
- const gchar* _tmp33_;
- gchar* _tmp34_;
-#line 136 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), NULL);
-#line 136 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = database_table_db;
-#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT name, primary_photo_id, primary_source_id, time_created, commen" \
-"t FROM EventTable WHERE id=?", -1, &_tmp1_, NULL);
-#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- stmt = _tmp1_;
-#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = _tmp2_;
-#line 140 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = res;
-#line 140 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 142 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp4_ = stmt;
-#line 142 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = *event_id;
-#line 142 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 142 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 143 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp7_ = res;
-#line 143 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 145 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp8_ = stmt;
-#line 145 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (sqlite3_step (_tmp8_) != SQLITE_ROW) {
-#line 146 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = NULL;
-#line 146 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 146 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1240 "EventTable.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp9_ = event_row_new ();
-#line 148 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- row = _tmp9_;
-#line 149 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp10_ = row;
-#line 149 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp11_ = *event_id;
-#line 149 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp10_->event_id = _tmp11_;
-#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp12_ = row;
-#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp13_ = stmt;
-#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp14_ = sqlite3_column_text (_tmp13_, 0);
-#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp15_ = g_strdup (_tmp14_);
-#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp12_->name);
-#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp12_->name = _tmp15_;
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp17_ = row;
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp18_ = _tmp17_->name;
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp18_ != NULL) {
-#line 1270 "EventTable.c"
- EventRow* _tmp19_;
- const gchar* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp19_ = row;
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp20_ = _tmp19_->name;
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp21_ = strlen (_tmp20_);
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp22_ = _tmp21_;
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp16_ = _tmp22_ == 0;
-#line 1285 "EventTable.c"
- } else {
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp16_ = FALSE;
-#line 1289 "EventTable.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp16_) {
-#line 1293 "EventTable.c"
- EventRow* _tmp23_;
-#line 152 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp23_ = row;
-#line 152 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp23_->name);
-#line 152 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp23_->name = NULL;
-#line 1301 "EventTable.c"
- }
-#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp24_ = row;
-#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp25_ = stmt;
-#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp26_ = stmt;
-#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp27_ = sqlite3_column_text (_tmp26_, 2);
-#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp28_ = event_table_source_id_upgrade (self, sqlite3_column_int64 (_tmp25_, 1), _tmp27_);
-#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp24_->primary_source_id);
-#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp24_->primary_source_id = _tmp28_;
-#line 154 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp29_ = row;
-#line 154 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp30_ = stmt;
-#line 154 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp29_->time_created = (time_t) sqlite3_column_int64 (_tmp30_, 3);
-#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp31_ = row;
-#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp32_ = stmt;
-#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp33_ = sqlite3_column_text (_tmp32_, 4);
-#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp34_ = g_strdup (_tmp33_);
-#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp31_->comment);
-#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp31_->comment = _tmp34_;
-#line 157 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = row;
-#line 157 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 157 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1341 "EventTable.c"
-}
-
-
-void
-event_table_remove (EventTable* self,
- EventID* event_id,
- GError** error)
-{
- EventID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 160 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (IS_EVENT_TABLE (self));
-#line 160 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_if_fail (event_id != NULL);
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = *event_id;
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_);
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return;
-#line 1371 "EventTable.c"
- } else {
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.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 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_clear_error (&_inner_error_);
-#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return;
-#line 1379 "EventTable.c"
- }
- }
-}
-
-
-GeeArrayList*
-event_table_get_events (EventTable* self)
-{
- GeeArrayList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- GeeArrayList* event_rows = NULL;
- GeeArrayList* _tmp4_;
-#line 164 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), NULL);
-#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = database_table_db;
-#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, name, primary_photo_id, primary_source_id, time_created, co" \
-"mment FROM EventTable", -1, &_tmp1_, NULL);
-#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- stmt = _tmp1_;
-#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = _tmp2_;
-#line 168 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = res;
-#line 168 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 170 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp4_ = gee_array_list_new (TYPE_EVENT_ROW, (GBoxedCopyFunc) event_row_ref, (GDestroyNotify) event_row_unref, NULL, NULL, NULL);
-#line 170 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_rows = _tmp4_;
-#line 1417 "EventTable.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = TRUE;
-#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- while (TRUE) {
-#line 1424 "EventTable.c"
- sqlite3_stmt* _tmp6_;
- gint _tmp7_;
- EventRow* row = NULL;
- EventRow* _tmp10_;
- EventRow* _tmp11_;
- sqlite3_stmt* _tmp12_;
- EventRow* _tmp13_;
- sqlite3_stmt* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- EventRow* _tmp17_;
- sqlite3_stmt* _tmp18_;
- sqlite3_stmt* _tmp19_;
- const gchar* _tmp20_;
- gchar* _tmp21_;
- EventRow* _tmp22_;
- sqlite3_stmt* _tmp23_;
- EventRow* _tmp24_;
- sqlite3_stmt* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
- GeeArrayList* _tmp28_;
- EventRow* _tmp29_;
-#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (!_tmp5_) {
-#line 1450 "EventTable.c"
- }
-#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = FALSE;
-#line 172 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp6_ = stmt;
-#line 172 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- res = sqlite3_step (_tmp6_);
-#line 173 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp7_ = res;
-#line 173 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp7_ == SQLITE_DONE) {
-#line 174 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- break;
-#line 1464 "EventTable.c"
- } else {
- gint _tmp8_;
-#line 175 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp8_ = res;
-#line 175 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp8_ != SQLITE_ROW) {
-#line 1471 "EventTable.c"
- gint _tmp9_;
-#line 176 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp9_ = res;
-#line 176 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- database_table_fatal ("get_events", _tmp9_);
-#line 178 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- break;
-#line 1479 "EventTable.c"
- }
- }
-#line 181 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp10_ = event_row_new ();
-#line 181 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- row = _tmp10_;
-#line 183 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp11_ = row;
-#line 183 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp12_ = stmt;
-#line 183 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_id_init (&_tmp11_->event_id, sqlite3_column_int64 (_tmp12_, 0));
-#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp13_ = row;
-#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp14_ = stmt;
-#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp15_ = sqlite3_column_text (_tmp14_, 1);
-#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp13_->name);
-#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp13_->name = _tmp16_;
-#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp17_ = row;
-#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp18_ = stmt;
-#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp19_ = stmt;
-#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp20_ = sqlite3_column_text (_tmp19_, 3);
-#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp21_ = event_table_source_id_upgrade (self, sqlite3_column_int64 (_tmp18_, 2), _tmp20_);
-#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp17_->primary_source_id);
-#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp17_->primary_source_id = _tmp21_;
-#line 186 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp22_ = row;
-#line 186 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp23_ = stmt;
-#line 186 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp22_->time_created = (time_t) sqlite3_column_int64 (_tmp23_, 4);
-#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp24_ = row;
-#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp25_ = stmt;
-#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp26_ = sqlite3_column_text (_tmp25_, 5);
-#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp27_ = g_strdup (_tmp26_);
-#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (_tmp24_->comment);
-#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp24_->comment = _tmp27_;
-#line 189 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp28_ = event_rows;
-#line 189 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp29_ = row;
-#line 189 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_);
-#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _event_row_unref0 (row);
-#line 1544 "EventTable.c"
- }
- }
-#line 192 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = event_rows;
-#line 192 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 192 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1553 "EventTable.c"
-}
-
-
-gboolean
-event_table_rename (EventTable* self,
- EventID* event_id,
- const gchar* name)
-{
- gboolean result = FALSE;
- const gchar* _tmp0_ = NULL;
- EventID _tmp1_;
- gint64 _tmp2_;
-#line 195 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), FALSE);
-#line 195 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (name != NULL) {
-#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = name;
-#line 1574 "EventTable.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = "";
-#line 1578 "EventTable.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = *event_id;
-#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "name", _tmp0_);
-#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1588 "EventTable.c"
-}
-
-
-gchar*
-event_table_get_name (EventTable* self,
- EventID* event_id)
-{
- gchar* result = NULL;
- sqlite3_stmt* stmt = NULL;
- EventID _tmp0_;
- gint64 _tmp1_;
- sqlite3_stmt* _tmp2_ = NULL;
- gboolean _tmp3_;
- gchar* name = NULL;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_ = NULL;
- gboolean _tmp8_ = FALSE;
- const gchar* _tmp9_;
- gchar* _tmp14_;
-#line 199 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), NULL);
-#line 199 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = *event_id;
-#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "name", &_tmp2_);
-#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- stmt = _tmp2_;
-#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (!_tmp3_) {
-#line 202 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = NULL;
-#line 202 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 202 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1632 "EventTable.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp4_ = stmt;
-#line 204 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = sqlite3_column_text (_tmp4_, 0);
-#line 204 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 204 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- name = _tmp6_;
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp9_ = name;
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp9_ != NULL) {
-#line 1646 "EventTable.c"
- const gchar* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp10_ = name;
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp11_ = strlen (_tmp10_);
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp12_ = _tmp11_;
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp8_ = _tmp12_ > 0;
-#line 1658 "EventTable.c"
- } else {
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp8_ = FALSE;
-#line 1662 "EventTable.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (_tmp8_) {
-#line 1666 "EventTable.c"
- const gchar* _tmp13_;
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp13_ = name;
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp7_ = _tmp13_;
-#line 1672 "EventTable.c"
- } else {
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp7_ = NULL;
-#line 1676 "EventTable.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp14_ = g_strdup (_tmp7_);
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = _tmp14_;
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _g_free0 (name);
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1688 "EventTable.c"
-}
-
-
-gchar*
-event_table_get_primary_source_id (EventTable* self,
- EventID* event_id)
-{
- gchar* result = NULL;
- sqlite3_stmt* stmt = NULL;
- EventID _tmp0_;
- gint64 _tmp1_;
- sqlite3_stmt* _tmp2_ = NULL;
- gboolean _tmp3_;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 209 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), NULL);
-#line 209 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = *event_id;
-#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "primary_source_id", &_tmp2_);
-#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- stmt = _tmp2_;
-#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (!_tmp3_) {
-#line 212 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = NULL;
-#line 212 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 212 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1727 "EventTable.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp4_ = stmt;
-#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp5_ = sqlite3_column_text (_tmp4_, 0);
-#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = _tmp6_;
-#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1741 "EventTable.c"
-}
-
-
-gboolean
-event_table_set_primary_source_id (EventTable* self,
- EventID* event_id,
- const gchar* primary_source_id)
-{
- gboolean result = FALSE;
- EventID _tmp0_;
- gint64 _tmp1_;
-#line 217 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), FALSE);
-#line 217 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 217 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (primary_source_id != NULL, FALSE);
-#line 218 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = *event_id;
-#line 218 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 218 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "primary_source_id", primary_source_id);
-#line 218 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1767 "EventTable.c"
-}
-
-
-time_t
-event_table_get_time_created (EventTable* self,
- EventID* event_id)
-{
- time_t result = 0;
- sqlite3_stmt* stmt = NULL;
- EventID _tmp0_;
- gint64 _tmp1_;
- sqlite3_stmt* _tmp2_ = NULL;
- gboolean _tmp3_;
- sqlite3_stmt* _tmp4_;
-#line 221 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), 0);
-#line 221 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (event_id != NULL, 0);
-#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = *event_id;
-#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "time_created", &_tmp2_);
-#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- stmt = _tmp2_;
-#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (!_tmp3_) {
-#line 224 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = (time_t) 0;
-#line 224 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 224 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1804 "EventTable.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp4_ = stmt;
-#line 226 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = (time_t) sqlite3_column_int64 (_tmp4_, 0);
-#line 226 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 226 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1814 "EventTable.c"
-}
-
-
-gboolean
-event_table_set_comment (EventTable* self,
- EventID* event_id,
- const gchar* new_comment)
-{
- gboolean result = FALSE;
- const gchar* _tmp0_ = NULL;
- EventID _tmp1_;
- gint64 _tmp2_;
-#line 229 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (IS_EVENT_TABLE (self), FALSE);
-#line 229 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 229 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- g_return_val_if_fail (new_comment != NULL, FALSE);
-#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- if (new_comment != NULL) {
-#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = new_comment;
-#line 1837 "EventTable.c"
- } else {
-#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp0_ = "";
-#line 1841 "EventTable.c"
- }
-#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp1_ = *event_id;
-#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "comment", _tmp0_);
-#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- return result;
-#line 1851 "EventTable.c"
-}
-
-
-static void
-event_table_class_init (EventTableClass * klass)
-{
-#line 33 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- event_table_parent_class = g_type_class_peek_parent (klass);
-#line 33 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- ((DatabaseTableClass *) klass)->finalize = event_table_finalize;
-#line 1862 "EventTable.c"
-}
-
-
-static void
-event_table_instance_init (EventTable * self)
-{
-}
-
-
-static void
-event_table_finalize (DatabaseTable * obj)
-{
- EventTable * self;
-#line 33 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_TABLE, EventTable);
-#line 33 "/home/jens/Source/shotwell/src/db/EventTable.vala"
- DATABASE_TABLE_CLASS (event_table_parent_class)->finalize (obj);
-#line 1880 "EventTable.c"
-}
-
-
-GType
-event_table_get_type (void)
-{
- static volatile gsize event_table_type_id__volatile = 0;
- if (g_once_init_enter (&event_table_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventTable), 0, (GInstanceInitFunc) event_table_instance_init, NULL };
- GType event_table_type_id;
- event_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "EventTable", &g_define_type_info, 0);
- g_once_init_leave (&event_table_type_id__volatile, event_table_type_id);
- }
- return event_table_type_id__volatile;
-}
-
-
-
diff --git a/src/db/FaceLocationTable.vala b/src/db/FaceLocationTable.vala
new file mode 100644
index 0000000..14fef4c
--- /dev/null
+++ b/src/db/FaceLocationTable.vala
@@ -0,0 +1,202 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+
+public struct FaceLocationID {
+ public const int64 INVALID = -1;
+
+ public int64 id;
+
+ public FaceLocationID(int64 id = INVALID) {
+ this.id = id;
+ }
+
+ public bool is_invalid() {
+ return (id == INVALID);
+ }
+
+ public bool is_valid() {
+ return (id != INVALID);
+ }
+}
+
+public class FaceLocationRow {
+ public FaceLocationID face_location_id;
+ public FaceID face_id;
+ public PhotoID photo_id;
+ public string geometry;
+}
+
+public class FaceLocationTable : DatabaseTable {
+ private static FaceLocationTable instance = null;
+
+ private FaceLocationTable() {
+ set_table_name("FaceLocationTable");
+
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2("CREATE TABLE IF NOT EXISTS "
+ + "FaceLocationTable "
+ + "("
+ + "id INTEGER NOT NULL PRIMARY KEY, "
+ + "face_id INTEGER NOT NULL, "
+ + "photo_id INTEGER NOT NULL, "
+ + "geometry TEXT"
+ + ")", -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res != Sqlite.DONE)
+ fatal("create FaceLocationTable", res);
+ }
+
+ public static FaceLocationTable get_instance() {
+ if (instance == null)
+ instance = new FaceLocationTable();
+
+ return instance;
+ }
+
+ public FaceLocationRow add(FaceID face_id, PhotoID photo_id, string geometry) throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2(
+ "INSERT INTO FaceLocationTable (face_id, photo_id, geometry) VALUES (?, ?, ?)",
+ -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.bind_int64(1, face_id.id);
+ assert(res == Sqlite.OK);
+ res = stmt.bind_int64(2, photo_id.id);
+ assert(res == Sqlite.OK);
+ res = stmt.bind_text(3, geometry);
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res != Sqlite.DONE)
+ throw_error("FaceLocationTable.add", res);
+
+ FaceLocationRow row = new FaceLocationRow();
+ row.face_location_id = FaceLocationID(db.last_insert_rowid());
+ row.face_id = face_id;
+ row.photo_id = photo_id;
+ row.geometry = geometry;
+
+ return row;
+ }
+
+ public Gee.List<FaceLocationRow?> get_all_rows() throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2(
+ "SELECT id, face_id, photo_id, geometry FROM FaceLocationTable",
+ -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ Gee.List<FaceLocationRow?> rows = new Gee.ArrayList<FaceLocationRow?>();
+
+ for (;;) {
+ res = stmt.step();
+ if (res == Sqlite.DONE)
+ break;
+ else if (res != Sqlite.ROW)
+ throw_error("FaceLocationTable.get_all_rows", res);
+
+ // res == Sqlite.ROW
+ FaceLocationRow row = new FaceLocationRow();
+ row.face_location_id = FaceLocationID(stmt.column_int64(0));
+ row.face_id = FaceID(stmt.column_int64(1));
+ row.photo_id = PhotoID(stmt.column_int64(2));
+ row.geometry = stmt.column_text(3);
+
+ rows.add(row);
+ }
+
+ return rows;
+ }
+
+ public Gee.ArrayList<string> get_face_source_ids(FaceID face_id) {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2(
+ "SELECT photo_id FROM FaceLocationTable WHERE face_id = ?",
+ -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.bind_int64(1, face_id.id);
+ assert(res == Sqlite.OK);
+
+ Gee.ArrayList<string> result = new Gee.ArrayList<string>();
+ for(;;) {
+ res = stmt.step();
+ if (res == Sqlite.DONE) {
+ break;
+ } else if (res != Sqlite.ROW) {
+ fatal("get_face_source_ids", res);
+
+ break;
+ }
+
+ result.add(PhotoID.upgrade_photo_id_to_source_id(PhotoID(stmt.column_int64(0))));
+ }
+
+ return result;
+ }
+
+ public string? get_face_source_serialized_geometry(Face face, MediaSource source)
+ throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2(
+ "SELECT geometry FROM FaceLocationTable WHERE face_id=? AND photo_id=?",
+ -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.bind_int64(1, face.get_instance_id());
+ assert(res == Sqlite.OK);
+ res = stmt.bind_int64(2, ((Photo) source).get_instance_id());
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res == Sqlite.DONE)
+ return null;
+ else if (res != Sqlite.ROW)
+ throw_error("FaceLocationTable.get_face_source_serialized_geometry", res);
+
+ return stmt.column_text(0);
+ }
+
+ public void remove_face_from_source(FaceID face_id, PhotoID photo_id) throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2(
+ "DELETE FROM FaceLocationTable WHERE face_id=? AND photo_id=?",
+ -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.bind_int64(1, face_id.id);
+ assert(res == Sqlite.OK);
+ res = stmt.bind_int64(2, photo_id.id);
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res != Sqlite.DONE)
+ throw_error("FaceLocationTable.remove_face_from_source", res);
+ }
+
+ public void update_face_location_serialized_geometry(FaceLocation face_location)
+ throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2("UPDATE FaceLocationTable SET geometry=? WHERE id=?", -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.bind_text(1, face_location.get_serialized_geometry());
+ assert(res == Sqlite.OK);
+ res = stmt.bind_int64(2, face_location.get_face_location_id().id);
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res != Sqlite.DONE)
+ throw_error("FaceLocationTable.update_face_location_serialized_geometry", res);
+ }
+}
+
+#endif
diff --git a/src/db/FaceTable.vala b/src/db/FaceTable.vala
new file mode 100644
index 0000000..a6e0bad
--- /dev/null
+++ b/src/db/FaceTable.vala
@@ -0,0 +1,169 @@
+/* Copyright 2018 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+public struct FaceID {
+ public const int64 INVALID = -1;
+
+ public int64 id;
+
+ public FaceID(int64 id = INVALID) {
+ this.id = id;
+ }
+
+ public bool is_invalid() {
+ return (id == INVALID);
+ }
+
+ public bool is_valid() {
+ return (id != INVALID);
+ }
+}
+
+public class FaceRow {
+ public FaceID face_id;
+ public string name;
+ public time_t time_created;
+}
+
+public class FaceTable : DatabaseTable {
+ private static FaceTable instance = null;
+
+ private FaceTable() {
+ set_table_name("FaceTable");
+
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2("CREATE TABLE IF NOT EXISTS "
+ + "FaceTable "
+ + "("
+ + "id INTEGER NOT NULL PRIMARY KEY, "
+ + "name TEXT NOT NULL, "
+ + "time_created TIMESTAMP"
+ + ")", -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res != Sqlite.DONE)
+ fatal("create FaceTable", res);
+ }
+
+ public static FaceTable get_instance() {
+ if (instance == null)
+ instance = new FaceTable();
+
+ return instance;
+ }
+
+ public FaceRow add(string name) throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2("INSERT INTO FaceTable (name, time_created) VALUES (?, ?)", -1,
+ out stmt);
+ assert(res == Sqlite.OK);
+
+ time_t time_created = (time_t) now_sec();
+
+ res = stmt.bind_text(1, name);
+ assert(res == Sqlite.OK);
+ res = stmt.bind_int64(2, time_created);
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res != Sqlite.DONE)
+ throw_error("FaceTable.add", res);
+
+ FaceRow row = new FaceRow();
+ row.face_id = FaceID(db.last_insert_rowid());
+ row.name = name;
+ row.time_created = time_created;
+
+ return row;
+ }
+
+ public FaceID create_from_row(FaceRow row) throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2("INSERT INTO FaceTable (name, time_created) VALUES (?, ?)",
+ -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.bind_text(1, row.name);
+ assert(res == Sqlite.OK);
+ res = stmt.bind_int64(2, row.time_created);
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res != Sqlite.DONE)
+ throw_error("FaceTable.create_from_row", res);
+
+ return FaceID(db.last_insert_rowid());
+ }
+
+ public void remove(FaceID face_id) throws DatabaseError {
+ delete_by_id(face_id.id);
+ }
+
+ public string? get_name(FaceID face_id) throws DatabaseError {
+ Sqlite.Statement stmt;
+ if (!select_by_id(face_id.id, "name", out stmt))
+ return null;
+
+ return stmt.column_text(0);
+ }
+
+ public FaceRow? get_row(FaceID face_id) throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2("SELECT name, time_created FROM FaceTable WHERE id=?",
+ -1, out stmt);
+ assert(res == Sqlite.OK);
+
+ res = stmt.bind_int64(1, face_id.id);
+ assert(res == Sqlite.OK);
+
+ res = stmt.step();
+ if (res == Sqlite.DONE)
+ return null;
+ else if (res != Sqlite.ROW)
+ throw_error("FaceTable.get_row", res);
+
+ FaceRow row = new FaceRow();
+ row.face_id = face_id;
+ row.name = stmt.column_text(0);
+ row.time_created = (time_t) stmt.column_int64(1);
+
+ return row;
+ }
+
+ public Gee.List<FaceRow?> get_all_rows() throws DatabaseError {
+ Sqlite.Statement stmt;
+ int res = db.prepare_v2("SELECT id, name, time_created FROM FaceTable", -1,
+ out stmt);
+ assert(res == Sqlite.OK);
+
+ Gee.List<FaceRow?> rows = new Gee.ArrayList<FaceRow?>();
+
+ for (;;) {
+ res = stmt.step();
+ if (res == Sqlite.DONE)
+ break;
+ else if (res != Sqlite.ROW)
+ throw_error("FaceTable.get_all_rows", res);
+
+ // res == Sqlite.ROW
+ FaceRow row = new FaceRow();
+ row.face_id = FaceID(stmt.column_int64(0));
+ row.name = stmt.column_text(1);
+ row.time_created = (time_t) stmt.column_int64(2);
+
+ rows.add(row);
+ }
+
+ return rows;
+ }
+
+ public void rename(FaceID face_id, string new_name) throws DatabaseError {
+ update_text_by_id_2(face_id.id, "name", new_name);
+ }
+}
+#endif
diff --git a/src/db/PhotoTable.c b/src/db/PhotoTable.c
deleted file mode 100644
index a2832f0..0000000
--- a/src/db/PhotoTable.c
+++ /dev/null
@@ -1,8816 +0,0 @@
-/* PhotoTable.c generated by valac 0.40.4, the Vala compiler
- * generated from PhotoTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <stdlib.h>
-#include <time.h>
-#include <gee.h>
-#include "shotwell-graphics-processor.h"
-#include <sqlite3.h>
-#include <gio/gio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_PHOTO_ROW (photo_row_get_type ())
-#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow))
-#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass))
-#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW))
-#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW))
-#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass))
-
-typedef struct _PhotoRow PhotoRow;
-typedef struct _PhotoRowClass PhotoRowClass;
-typedef struct _PhotoRowPrivate PhotoRowPrivate;
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecPhotoRow ParamSpecPhotoRow;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-typedef struct _DatabaseTablePrivate DatabaseTablePrivate;
-
-#define TYPE_PHOTO_TABLE (photo_table_get_type ())
-#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable))
-#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass))
-#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE))
-#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE))
-#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass))
-
-typedef struct _PhotoTable PhotoTable;
-typedef struct _PhotoTableClass PhotoTableClass;
-typedef struct _PhotoTablePrivate PhotoTablePrivate;
-#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _photo_row_unref0(var) ((var == NULL) ? NULL : (var = (photo_row_unref (var), NULL)))
-#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
-#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _ParamSpecBackingPhotoRow ParamSpecBackingPhotoRow;
-
-#define TYPE_BACKING_PHOTO_TABLE (backing_photo_table_get_type ())
-#define BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTable))
-#define BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass))
-#define IS_BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_TABLE))
-#define IS_BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_TABLE))
-#define BACKING_PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass))
-
-typedef struct _BackingPhotoTable BackingPhotoTable;
-typedef struct _BackingPhotoTableClass BackingPhotoTableClass;
-typedef struct _BackingPhotoTablePrivate BackingPhotoTablePrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _PhotoID {
- gint64 id;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _EventID {
- gint64 id;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _PhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoRowPrivate * priv;
- PhotoID photo_id;
- BackingPhotoRow* master;
- time_t exposure_time;
- ImportID import_id;
- EventID event_id;
- Orientation orientation;
- GeeHashMap* transformations;
- gchar* md5;
- gchar* thumbnail_md5;
- gchar* exif_md5;
- time_t time_created;
- guint64 flags;
- Rating rating;
- gchar* title;
- gchar* comment;
- gchar* backlinks;
- time_t time_reimported;
- BackingPhotoID editable_id;
- gboolean metadata_dirty;
- RawDeveloper developer;
- BackingPhotoID* development_ids;
- gint development_ids_length1;
-};
-
-struct _PhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoRow *self);
-};
-
-struct _ParamSpecPhotoRow {
- GParamSpec parent_instance;
-};
-
-struct _DatabaseTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DatabaseTablePrivate * priv;
- gchar* table_name;
-};
-
-struct _DatabaseTableClass {
- GTypeClass parent_class;
- void (*finalize) (DatabaseTable *self);
-};
-
-struct _PhotoTable {
- DatabaseTable parent_instance;
- PhotoTablePrivate * priv;
-};
-
-struct _PhotoTableClass {
- DatabaseTableClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _ParamSpecBackingPhotoRow {
- GParamSpec parent_instance;
-};
-
-struct _BackingPhotoTable {
- DatabaseTable parent_instance;
- BackingPhotoTablePrivate * priv;
-};
-
-struct _BackingPhotoTableClass {
- DatabaseTableClass parent_class;
-};
-
-
-static gpointer photo_row_parent_class = NULL;
-static gpointer photo_table_parent_class = NULL;
-static PhotoTable* photo_table_instance;
-static PhotoTable* photo_table_instance = NULL;
-extern sqlite3* database_table_db;
-static gpointer backing_photo_row_parent_class = NULL;
-static gpointer backing_photo_table_parent_class = NULL;
-static BackingPhotoTable* backing_photo_table_instance;
-static BackingPhotoTable* backing_photo_table_instance = NULL;
-
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-#define PHOTO_ID_INVALID ((gint64) -1)
-void photo_id_init (PhotoID *self,
- gint64 id);
-gboolean photo_id_is_invalid (PhotoID *self);
-gboolean photo_id_is_valid (PhotoID *self);
-guint photo_id_hash (PhotoID *self);
-guint int64_hash (gint64* n);
-gboolean photo_id_equal (void* a,
- void* b);
-gchar* photo_id_upgrade_photo_id_to_source_id (PhotoID* photo_id);
-#define PHOTO_TYPENAME "thumb"
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-#define IMPORT_ID_INVALID ((gint64) 0)
-void import_id_init (ImportID *self,
- gint64 id);
-void import_id_generate (ImportID* result);
-gboolean import_id_is_invalid (ImportID *self);
-gboolean import_id_is_valid (ImportID *self);
-gint import_id_compare_func (ImportID* a,
- ImportID* b);
-gint64 import_id_comparator (void* a,
- void* b);
-gpointer photo_row_ref (gpointer instance);
-void photo_row_unref (gpointer instance);
-GParamSpec* param_spec_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_row (GValue* value,
- gpointer v_object);
-void value_take_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_row (const GValue* value);
-GType photo_row_get_type (void) G_GNUC_CONST;
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-GType orientation_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-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);
-GType raw_developer_get_type (void) G_GNUC_CONST;
-PhotoRow* photo_row_new (void);
-PhotoRow* photo_row_construct (GType object_type);
-BackingPhotoRow* backing_photo_row_new (void);
-BackingPhotoRow* backing_photo_row_construct (GType object_type);
-#define BACKING_PHOTO_ID_INVALID ((gint64) -1)
-void backing_photo_id_init (BackingPhotoID *self,
- gint64 id);
-RawDeveloper* raw_developer_as_array (int* result_length1);
-static void photo_row_finalize (PhotoRow * obj);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType photo_table_get_type (void) G_GNUC_CONST;
-static PhotoTable* photo_table_new (void);
-static PhotoTable* photo_table_construct (GType object_type);
-DatabaseTable* database_table_construct (GType object_type);
-void database_table_fatal (const gchar* op,
- gint res);
-void database_table_warning (const gchar* op,
- gint res);
-void database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name);
-PhotoTable* photo_table_get_instance (void);
-void photo_table_add (PhotoTable* self,
- PhotoRow* photo_row,
- PhotoID* result);
-gulong now_sec (void);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-#define EVENT_ID_INVALID ((gint64) -1)
-gint photo_file_format_serialize (PhotoFileFormat self);
-gint rating_serialize (Rating self);
-gchar* raw_developer_to_string (RawDeveloper self);
-void event_id_init (EventID *self,
- gint64 id);
-GQuark database_error_quark (void);
-void photo_table_reimport (PhotoTable* self,
- PhotoRow* row,
- GError** error);
-void database_table_throw_error (const gchar* method,
- gint res,
- GError** error);
-gboolean photo_table_master_exif_updated (PhotoTable* self,
- PhotoID* photoID,
- gint64 filesize,
- glong timestamp,
- const gchar* md5,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- PhotoRow* row);
-static void photo_table_validate_orientation (PhotoTable* self,
- PhotoRow* row);
-gboolean photo_table_set_orientation (PhotoTable* self,
- PhotoID* photo_id,
- Orientation orientation);
-PhotoRow* photo_table_get_row (PhotoTable* self,
- PhotoID* photo_id);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-GeeHashMap* photo_table_marshall_all_transformations (const gchar* trans);
-Rating rating_unserialize (gint value);
-PhotoFileFormat photo_file_format_unserialize (gint value);
-RawDeveloper raw_developer_from_string (const gchar* value);
-GeeArrayList* photo_table_get_all (PhotoTable* self);
-void photo_table_duplicate (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_filename,
- BackingPhotoID* editable_id,
- BackingPhotoID* develop_shotwell,
- BackingPhotoID* develop_camera_id,
- BackingPhotoID* develop_embedded_id,
- PhotoID* result);
-gchar* photo_table_unmarshall_all_transformations (GeeHashMap* transformations);
-gboolean photo_table_set_title (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_title);
-gboolean database_table_update_text_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text);
-gboolean photo_table_set_comment (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_comment);
-void photo_table_set_filepath (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* filepath,
- GError** error);
-void database_table_update_text_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text,
- GError** error);
-void photo_table_update_timestamp (PhotoTable* self,
- PhotoID* photo_id,
- time_t timestamp,
- GError** error);
-void database_table_update_int64_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint64 value,
- GError** error);
-gboolean photo_table_set_exposure_time (PhotoTable* self,
- PhotoID* photo_id,
- time_t time);
-gboolean database_table_update_int64_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint64 value);
-void photo_table_set_import_id (PhotoTable* self,
- PhotoID* photo_id,
- ImportID* import_id,
- GError** error);
-gboolean photo_table_remove_by_file (PhotoTable* self,
- GFile* file);
-void photo_table_remove (PhotoTable* self,
- PhotoID* photo_id,
- GError** error);
-void database_table_delete_by_id (DatabaseTable* self,
- gint64 id,
- GError** error);
-GeeArrayList* photo_table_get_photos (PhotoTable* self);
-gboolean database_table_update_int_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint value);
-gboolean photo_table_replace_flags (PhotoTable* self,
- PhotoID* photo_id,
- guint64 flags);
-gboolean photo_table_set_rating (PhotoTable* self,
- PhotoID* photo_id,
- Rating rating);
-gint photo_table_get_event_photo_count (PhotoTable* self,
- EventID* event_id);
-GeeArrayList* photo_table_get_event_source_ids (PhotoTable* self,
- EventID* event_id);
-gboolean photo_table_event_has_photos (PhotoTable* self,
- EventID* event_id);
-gboolean photo_table_drop_event (PhotoTable* self,
- EventID* event_id);
-gboolean photo_table_set_event (PhotoTable* self,
- PhotoID* photo_id,
- EventID* event_id);
-static gchar* photo_table_get_raw_transformations (PhotoTable* self,
- PhotoID* photo_id);
-gboolean database_table_select_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* columns,
- sqlite3_stmt* * stmt);
-static gboolean photo_table_set_raw_transformations (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* trans);
-gboolean photo_table_set_transformation_state (PhotoTable* self,
- PhotoID* photo_id,
- Orientation orientation,
- GeeHashMap* transformations);
-gboolean photo_table_set_transformation (PhotoTable* self,
- PhotoID* photo_id,
- KeyValueMap* map);
-gboolean photo_table_remove_transformation (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* object);
-gboolean photo_table_remove_all_transformations (PhotoTable* self,
- PhotoID* photo_id);
-static sqlite3_stmt* photo_table_get_duplicate_stmt (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format);
-gboolean photo_table_has_duplicate (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format);
-PhotoID* photo_table_get_duplicate_ids (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format,
- int* result_length1);
-static void _vala_array_add2 (PhotoID* * array,
- int* length,
- int* size,
- const PhotoID* value);
-void photo_table_update_backlinks (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* backlinks,
- GError** error);
-void photo_table_attach_editable (PhotoTable* self,
- PhotoRow* row,
- BackingPhotoID* editable_id,
- GError** error);
-void photo_table_detach_editable (PhotoTable* self,
- PhotoRow* row,
- GError** error);
-void photo_table_set_metadata_dirty (PhotoTable* self,
- PhotoID* photo_id,
- gboolean dirty,
- GError** error);
-void database_table_update_int_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint value,
- GError** error);
-void photo_table_update_raw_development (PhotoTable* self,
- PhotoRow* row,
- RawDeveloper rd,
- BackingPhotoID* backing_photo_id,
- GError** error);
-void photo_table_remove_development (PhotoTable* self,
- PhotoRow* row,
- RawDeveloper rd,
- GError** error);
-static void photo_table_finalize (DatabaseTable * obj);
-gboolean backing_photo_id_is_invalid (BackingPhotoID *self);
-gboolean backing_photo_id_is_valid (BackingPhotoID *self);
-gboolean backing_photo_row_matches_file_info (BackingPhotoRow* self,
- GFileInfo* info);
-gboolean backing_photo_row_is_touched (BackingPhotoRow* self,
- GFileInfo* info);
-void backing_photo_row_copy_from (BackingPhotoRow* self,
- BackingPhotoRow* from);
-static void backing_photo_row_finalize (BackingPhotoRow * obj);
-GType backing_photo_table_get_type (void) G_GNUC_CONST;
-static BackingPhotoTable* backing_photo_table_new (void);
-static BackingPhotoTable* backing_photo_table_construct (GType object_type);
-BackingPhotoTable* backing_photo_table_get_instance (void);
-void backing_photo_table_add (BackingPhotoTable* self,
- BackingPhotoRow* state,
- GError** error);
-BackingPhotoRow* backing_photo_table_fetch (BackingPhotoTable* self,
- BackingPhotoID* id,
- GError** error);
-void backing_photo_table_update (BackingPhotoTable* self,
- BackingPhotoRow* row,
- GError** error);
-void backing_photo_table_update_attributes (BackingPhotoTable* self,
- BackingPhotoID* id,
- time_t timestamp,
- gint64 filesize,
- GError** error);
-void backing_photo_table_remove (BackingPhotoTable* self,
- BackingPhotoID* backing_id,
- GError** error);
-void backing_photo_table_set_filepath (BackingPhotoTable* self,
- BackingPhotoID* id,
- const gchar* filepath,
- GError** error);
-void backing_photo_table_update_timestamp (BackingPhotoTable* self,
- BackingPhotoID* id,
- time_t timestamp,
- GError** error);
-static void backing_photo_table_finalize (DatabaseTable * 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);
-
-
-void
-photo_id_init (PhotoID *self,
- gint64 id)
-{
-#line 12 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- memset (self, 0, sizeof (PhotoID));
-#line 13 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- (*self).id = id;
-#line 629 "PhotoTable.c"
-}
-
-
-gboolean
-photo_id_is_invalid (PhotoID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*self).id;
-#line 17 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp0_ == PHOTO_ID_INVALID;
-#line 17 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 644 "PhotoTable.c"
-}
-
-
-gboolean
-photo_id_is_valid (PhotoID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*self).id;
-#line 21 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp0_ != PHOTO_ID_INVALID;
-#line 21 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 659 "PhotoTable.c"
-}
-
-
-guint
-photo_id_hash (PhotoID *self)
-{
- guint result = 0U;
- gint64 _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*self).id;
-#line 25 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = int64_hash (&_tmp0_);
-#line 25 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 674 "PhotoTable.c"
-}
-
-
-gboolean
-photo_id_equal (void* a,
- void* b)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
- gint64 _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*((PhotoID*) a)).id;
-#line 29 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = (*((PhotoID*) b)).id;
-#line 29 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp0_ == _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 693 "PhotoTable.c"
-}
-
-
-gchar*
-photo_id_upgrade_photo_id_to_source_id (PhotoID* photo_id)
-{
- gchar* result = NULL;
- PhotoID _tmp0_;
- gint64 _tmp1_;
- gchar* _tmp2_;
-#line 32 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, NULL);
-#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = g_strdup_printf ("%s%016" G_GINT64_MODIFIER "x", PHOTO_TYPENAME, _tmp1_);
-#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 716 "PhotoTable.c"
-}
-
-
-PhotoID*
-photo_id_dup (const PhotoID* self)
-{
- PhotoID* dup;
-#line 7 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dup = g_new0 (PhotoID, 1);
-#line 7 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- memcpy (dup, self, sizeof (PhotoID));
-#line 7 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return dup;
-#line 730 "PhotoTable.c"
-}
-
-
-void
-photo_id_free (PhotoID* self)
-{
-#line 7 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_free (self);
-#line 739 "PhotoTable.c"
-}
-
-
-GType
-photo_id_get_type (void)
-{
- static volatile gsize photo_id_type_id__volatile = 0;
- if (g_once_init_enter (&photo_id_type_id__volatile)) {
- GType photo_id_type_id;
- photo_id_type_id = g_boxed_type_register_static ("PhotoID", (GBoxedCopyFunc) photo_id_dup, (GBoxedFreeFunc) photo_id_free);
- g_once_init_leave (&photo_id_type_id__volatile, photo_id_type_id);
- }
- return photo_id_type_id__volatile;
-}
-
-
-void
-import_id_init (ImportID *self,
- gint64 id)
-{
-#line 42 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- memset (self, 0, sizeof (ImportID));
-#line 43 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- (*self).id = id;
-#line 764 "PhotoTable.c"
-}
-
-
-void
-import_id_generate (ImportID* result)
-{
- GTimeVal timestamp = {0};
- gint64 id = 0LL;
- GTimeVal _tmp0_;
- glong _tmp1_;
- ImportID _tmp2_ = {0};
-#line 47 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_get_current_time (&timestamp);
-#line 48 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_get_current_time (&timestamp);
-#line 49 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = timestamp;
-#line 49 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.tv_sec;
-#line 49 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- id = (gint64) _tmp1_;
-#line 51 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- import_id_init (&_tmp2_, id);
-#line 51 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *result = _tmp2_;
-#line 51 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 792 "PhotoTable.c"
-}
-
-
-gboolean
-import_id_is_invalid (ImportID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 55 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*self).id;
-#line 55 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp0_ == IMPORT_ID_INVALID;
-#line 55 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 807 "PhotoTable.c"
-}
-
-
-gboolean
-import_id_is_valid (ImportID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 59 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*self).id;
-#line 59 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp0_ != IMPORT_ID_INVALID;
-#line 59 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 822 "PhotoTable.c"
-}
-
-
-gint
-import_id_compare_func (ImportID* a,
- ImportID* b)
-{
- gint result = 0;
- gboolean _tmp0_ = FALSE;
- gint64 _tmp1_;
- gint64 _tmp2_;
-#line 63 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (a != NULL) {
-#line 63 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = b != NULL;
-#line 838 "PhotoTable.c"
- } else {
-#line 63 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = FALSE;
-#line 842 "PhotoTable.c"
- }
-#line 63 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp0_, "a != null && b != null");
-#line 64 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = (*a).id;
-#line 64 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = (*b).id;
-#line 64 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = (gint) (_tmp1_ - _tmp2_);
-#line 64 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 854 "PhotoTable.c"
-}
-
-
-gint64
-import_id_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- gint64 _tmp0_;
- gint64 _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*((ImportID*) a)).id;
-#line 68 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = (*((ImportID*) b)).id;
-#line 68 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp0_ - _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 873 "PhotoTable.c"
-}
-
-
-ImportID*
-import_id_dup (const ImportID* self)
-{
- ImportID* dup;
-#line 37 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dup = g_new0 (ImportID, 1);
-#line 37 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- memcpy (dup, self, sizeof (ImportID));
-#line 37 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return dup;
-#line 887 "PhotoTable.c"
-}
-
-
-void
-import_id_free (ImportID* self)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_free (self);
-#line 896 "PhotoTable.c"
-}
-
-
-GType
-import_id_get_type (void)
-{
- static volatile gsize import_id_type_id__volatile = 0;
- if (g_once_init_enter (&import_id_type_id__volatile)) {
- GType import_id_type_id;
- import_id_type_id = g_boxed_type_register_static ("ImportID", (GBoxedCopyFunc) import_id_dup, (GBoxedFreeFunc) import_id_free);
- g_once_init_leave (&import_id_type_id__volatile, import_id_type_id);
- }
- return import_id_type_id__volatile;
-}
-
-
-PhotoRow*
-photo_row_construct (GType object_type)
-{
- PhotoRow* self = NULL;
- BackingPhotoRow* _tmp0_;
- gint _tmp1_;
- RawDeveloper* _tmp2_;
- RawDeveloper* _tmp3_;
- gint _tmp3__length1;
- BackingPhotoID* _tmp4_;
- gint _tmp5_;
- RawDeveloper* _tmp6_;
-#line 100 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self = (PhotoRow*) g_type_create_instance (object_type);
-#line 101 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = backing_photo_row_new ();
-#line 101 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _backing_photo_row_unref0 (self->master);
-#line 101 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->master = _tmp0_;
-#line 102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&self->editable_id, BACKING_PHOTO_ID_INVALID);
-#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = raw_developer_as_array (&_tmp1_);
-#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _tmp2_;
-#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3__length1 = _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = g_new0 (BackingPhotoID, _tmp1_);
-#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->development_ids = (g_free (self->development_ids), NULL);
-#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->development_ids = _tmp4_;
-#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->development_ids_length1 = _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = (g_free (_tmp3_), NULL);
-#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = raw_developer_as_array (&_tmp5_);
-#line 953 "PhotoTable.c"
- {
- RawDeveloper* d_collection = NULL;
- gint d_collection_length1 = 0;
- gint _d_collection_size_ = 0;
- gint d_it = 0;
-#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- d_collection = _tmp6_;
-#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- d_collection_length1 = _tmp5_;
-#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- for (d_it = 0; d_it < _tmp5_; d_it = d_it + 1) {
-#line 965 "PhotoTable.c"
- RawDeveloper d = 0;
-#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- d = d_collection[d_it];
-#line 969 "PhotoTable.c"
- {
- BackingPhotoID* _tmp7_;
- gint _tmp7__length1;
- RawDeveloper _tmp8_;
- BackingPhotoID _tmp9_ = {0};
- BackingPhotoID _tmp10_;
-#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = self->development_ids;
-#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7__length1 = self->development_ids_length1;
-#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = d;
-#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp9_, BACKING_PHOTO_ID_INVALID);
-#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_[_tmp8_] = _tmp9_;
-#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = _tmp7_[_tmp8_];
-#line 988 "PhotoTable.c"
- }
- }
-#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- d_collection = (g_free (d_collection), NULL);
-#line 993 "PhotoTable.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return self;
-#line 997 "PhotoTable.c"
-}
-
-
-PhotoRow*
-photo_row_new (void)
-{
-#line 100 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return photo_row_construct (TYPE_PHOTO_ROW);
-#line 1006 "PhotoTable.c"
-}
-
-
-static void
-value_photo_row_init (GValue* value)
-{
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 1015 "PhotoTable.c"
-}
-
-
-static void
-value_photo_row_free_value (GValue* value)
-{
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (value->data[0].v_pointer) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_row_unref (value->data[0].v_pointer);
-#line 1026 "PhotoTable.c"
- }
-}
-
-
-static void
-value_photo_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dest_value->data[0].v_pointer = photo_row_ref (src_value->data[0].v_pointer);
-#line 1039 "PhotoTable.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1043 "PhotoTable.c"
- }
-}
-
-
-static gpointer
-value_photo_row_peek_pointer (const GValue* value)
-{
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return value->data[0].v_pointer;
-#line 1053 "PhotoTable.c"
-}
-
-
-static gchar*
-value_photo_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (collect_values[0].v_pointer) {
-#line 1065 "PhotoTable.c"
- PhotoRow * object;
- object = collect_values[0].v_pointer;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 72 "/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 1072 "PhotoTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 72 "/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 1076 "PhotoTable.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = photo_row_ref (object);
-#line 1080 "PhotoTable.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 1084 "PhotoTable.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return NULL;
-#line 1088 "PhotoTable.c"
-}
-
-
-static gchar*
-value_photo_row_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoRow ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!object_p) {
-#line 72 "/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 1104 "PhotoTable.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!value->data[0].v_pointer) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *object_p = NULL;
-#line 1110 "PhotoTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 1114 "PhotoTable.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *object_p = photo_row_ref (value->data[0].v_pointer);
-#line 1118 "PhotoTable.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return NULL;
-#line 1122 "PhotoTable.c"
-}
-
-
-GParamSpec*
-param_spec_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPhotoRow* spec;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_ROW), NULL);
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return G_PARAM_SPEC (spec);
-#line 1142 "PhotoTable.c"
-}
-
-
-gpointer
-value_get_photo_row (const GValue* value)
-{
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_ROW), NULL);
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return value->data[0].v_pointer;
-#line 1153 "PhotoTable.c"
-}
-
-
-void
-value_set_photo_row (GValue* value,
- gpointer v_object)
-{
- PhotoRow * old;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_ROW));
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- old = value->data[0].v_pointer;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (v_object) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_ROW));
-#line 72 "/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 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = v_object;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_row_ref (value->data[0].v_pointer);
-#line 1176 "PhotoTable.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 1180 "PhotoTable.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (old) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_row_unref (old);
-#line 1186 "PhotoTable.c"
- }
-}
-
-
-void
-value_take_photo_row (GValue* value,
- gpointer v_object)
-{
- PhotoRow * old;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_ROW));
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- old = value->data[0].v_pointer;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (v_object) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_ROW));
-#line 72 "/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 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = v_object;
-#line 1208 "PhotoTable.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 1212 "PhotoTable.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (old) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_row_unref (old);
-#line 1218 "PhotoTable.c"
- }
-}
-
-
-static void
-photo_row_class_init (PhotoRowClass * klass)
-{
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_row_parent_class = g_type_class_peek_parent (klass);
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- ((PhotoRowClass *) klass)->finalize = photo_row_finalize;
-#line 1230 "PhotoTable.c"
-}
-
-
-static void
-photo_row_instance_init (PhotoRow * self)
-{
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->ref_count = 1;
-#line 1239 "PhotoTable.c"
-}
-
-
-static void
-photo_row_finalize (PhotoRow * obj)
-{
- PhotoRow * self;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_ROW, PhotoRow);
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_signal_handlers_destroy (self);
-#line 74 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _backing_photo_row_unref0 (self->master);
-#line 79 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (self->transformations);
-#line 80 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (self->md5);
-#line 81 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (self->thumbnail_md5);
-#line 82 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (self->exif_md5);
-#line 86 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (self->title);
-#line 87 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (self->comment);
-#line 88 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (self->backlinks);
-#line 97 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->development_ids = (g_free (self->development_ids), NULL);
-#line 1269 "PhotoTable.c"
-}
-
-
-GType
-photo_row_get_type (void)
-{
- static volatile gsize photo_row_type_id__volatile = 0;
- if (g_once_init_enter (&photo_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_photo_row_init, value_photo_row_free_value, value_photo_row_copy_value, value_photo_row_peek_pointer, "p", value_photo_row_collect_value, "p", value_photo_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoRow), 0, (GInstanceInitFunc) photo_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_row_type_id;
- photo_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoRow", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&photo_row_type_id__volatile, photo_row_type_id);
- }
- return photo_row_type_id__volatile;
-}
-
-
-gpointer
-photo_row_ref (gpointer instance)
-{
- PhotoRow * self;
- self = instance;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return instance;
-#line 1298 "PhotoTable.c"
-}
-
-
-void
-photo_row_unref (gpointer instance)
-{
- PhotoRow * self;
- self = instance;
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- PHOTO_ROW_GET_CLASS (self)->finalize (self);
-#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1313 "PhotoTable.c"
- }
-}
-
-
-static PhotoTable*
-photo_table_construct (GType object_type)
-{
- PhotoTable* self = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* stmt2 = NULL;
- gint res2 = 0;
- sqlite3* _tmp7_;
- sqlite3_stmt* _tmp8_ = NULL;
- gint _tmp9_;
- gint _tmp10_;
- sqlite3_stmt* _tmp11_;
- gint _tmp12_;
- sqlite3* _tmp14_;
- sqlite3_stmt* _tmp15_ = NULL;
- gint _tmp16_;
- gint _tmp17_;
- sqlite3_stmt* _tmp18_;
- gint _tmp19_;
- sqlite3* _tmp21_;
- sqlite3_stmt* _tmp22_ = NULL;
- gint _tmp23_;
- gint _tmp24_;
- sqlite3_stmt* _tmp25_;
- gint _tmp26_;
- sqlite3* _tmp28_;
- sqlite3_stmt* _tmp29_ = NULL;
- gint _tmp30_;
- gint _tmp31_;
- sqlite3_stmt* _tmp32_;
- gint _tmp33_;
- sqlite3* _tmp35_;
- sqlite3_stmt* _tmp36_ = NULL;
- gint _tmp37_;
- gint _tmp38_;
- sqlite3_stmt* _tmp39_;
- gint _tmp40_;
-#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self = (PhotoTable*) database_table_construct (object_type);
-#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS PhotoTable (" "id INTEGER PRIMARY KEY, " "filename TEXT UNIQUE NOT NULL, " "width INTEGER, " "height INTEGER, " "filesize INTEGER, " "timestamp INTEGER, " "exposure_time INTEGER, " "orientation INTEGER, " "original_orientation INTEGER, " "import_id INTEGER, " "event_id INTEGER, " "transformations TEXT, " "md5 TEXT, " "thumbnail_md5 TEXT, " "exif_md5 TEXT, " "time_created INTEGER, " "flags INTEGER DEFAULT 0, " "rating INTEGER DEFAULT 0, " "file_format INTEGER DEFAULT 0, " "title TEXT, " "backlinks TEXT, " "time_reimported INTEGER, " "editable_id INTEGER DEFAULT -1, " "metadata_dirty INTEGER DEFAULT 0, " "developer TEXT, " "develop_shotwell_id INTEGER DEFAULT -1, " "develop_camera_id INTEGER DEFAULT -1, " "develop_embedded_id INTEGER DEFAULT -1, " "comment TEXT" ")", -1, &_tmp1_, NULL);
-#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 147 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 147 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 148 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = res;
-#line 148 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 1386 "PhotoTable.c"
- gint _tmp6_;
-#line 149 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = res;
-#line 149 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("create photo table", _tmp6_);
-#line 1392 "PhotoTable.c"
- }
-#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = database_table_db;
-#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = sqlite3_prepare_v2 (_tmp7_, "CREATE INDEX IF NOT EXISTS PhotoEventIDIndex ON PhotoTable (event_id)", -1, &_tmp8_, NULL);
-#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt2);
-#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt2 = _tmp8_;
-#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res2 = _tmp9_;
-#line 155 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = res2;
-#line 155 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp10_ == SQLITE_OK, "res2 == Sqlite.OK");
-#line 157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = stmt2;
-#line 157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res2 = sqlite3_step (_tmp11_);
-#line 158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = res2;
-#line 158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp12_ != SQLITE_DONE) {
-#line 1416 "PhotoTable.c"
- gint _tmp13_;
-#line 159 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = res2;
-#line 159 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("create photo table", _tmp13_);
-#line 1422 "PhotoTable.c"
- }
-#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = database_table_db;
-#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = sqlite3_prepare_v2 (_tmp14_, "DROP INDEX IF EXISTS PhotoTableMD5Format", -1, &_tmp15_, NULL);
-#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp15_;
-#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp16_;
-#line 166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = res;
-#line 166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK");
-#line 167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = stmt;
-#line 167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp18_);
-#line 168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = res;
-#line 168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp19_ != SQLITE_DONE) {
-#line 1446 "PhotoTable.c"
- gint _tmp20_;
-#line 169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = res;
-#line 169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_warning ("Failed to drop old PhotoTable index", _tmp20_);
-#line 1452 "PhotoTable.c"
- }
-#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = database_table_db;
-#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = sqlite3_prepare_v2 (_tmp21_, "CREATE INDEX IF NOT EXISTS PhotoTableMD5FormatV2 on PhotoTable(md5, fi" \
-"le_format)", -1, &_tmp22_, NULL);
-#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp22_;
-#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp23_;
-#line 173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = res;
-#line 173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp24_ == SQLITE_OK, "res == Sqlite.OK");
-#line 174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = stmt;
-#line 174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp25_);
-#line 175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = res;
-#line 175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp26_ != SQLITE_DONE) {
-#line 1476 "PhotoTable.c"
- gint _tmp27_;
-#line 176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = res;
-#line 176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_warning ("Failed to create index on md5 and file_format", _tmp27_);
-#line 1482 "PhotoTable.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = database_table_db;
-#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = sqlite3_prepare_v2 (_tmp28_, "CREATE INDEX IF NOT EXISTS PhotoTableThumbnailMD5Format on PhotoTable(" \
-"thumbnail_md5, file_format)", -1, &_tmp29_, NULL);
-#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp29_;
-#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp30_;
-#line 181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = res;
-#line 181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp31_ == SQLITE_OK, "res == Sqlite.OK");
-#line 182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = stmt;
-#line 182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp32_);
-#line 183 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = res;
-#line 183 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp33_ != SQLITE_DONE) {
-#line 1506 "PhotoTable.c"
- gint _tmp34_;
-#line 184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = res;
-#line 184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_warning ("Failed to create index on md5 and file_format", _tmp34_);
-#line 1512 "PhotoTable.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = database_table_db;
-#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = sqlite3_prepare_v2 (_tmp35_, "CREATE INDEX IF NOT EXISTS PhotoTableThumbnailMD5MD5 on PhotoTable(thu" \
-"mbnail_md5, md5)", -1, &_tmp36_, NULL);
-#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp36_;
-#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp37_;
-#line 189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = res;
-#line 189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp38_ == SQLITE_OK, "res == Sqlite.OK");
-#line 190 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = stmt;
-#line 190 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp39_);
-#line 191 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_ = res;
-#line 191 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp40_ != SQLITE_DONE) {
-#line 1536 "PhotoTable.c"
- gint _tmp41_;
-#line 192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp41_ = res;
-#line 192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_warning ("Failed to create index on thumbnail_md5 and md5", _tmp41_);
-#line 1542 "PhotoTable.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "PhotoTable");
-#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt2);
-#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return self;
-#line 1552 "PhotoTable.c"
-}
-
-
-static PhotoTable*
-photo_table_new (void)
-{
-#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return photo_table_construct (TYPE_PHOTO_TABLE);
-#line 1561 "PhotoTable.c"
-}
-
-
-static gpointer
-_database_table_ref0 (gpointer self)
-{
-#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return self ? database_table_ref (self) : NULL;
-#line 1570 "PhotoTable.c"
-}
-
-
-PhotoTable*
-photo_table_get_instance (void)
-{
- PhotoTable* result = NULL;
- PhotoTable* _tmp0_;
- PhotoTable* _tmp2_;
- PhotoTable* _tmp3_;
-#line 199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = photo_table_instance;
-#line 199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp0_ == NULL) {
-#line 1585 "PhotoTable.c"
- PhotoTable* _tmp1_;
-#line 200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = photo_table_new ();
-#line 200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _database_table_unref0 (photo_table_instance);
-#line 200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_table_instance = _tmp1_;
-#line 1593 "PhotoTable.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = photo_table_instance;
-#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _database_table_ref0 (_tmp2_);
-#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp3_;
-#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 1603 "PhotoTable.c"
-}
-
-
-void
-photo_table_add (PhotoTable* self,
- PhotoRow* photo_row,
- PhotoID* result)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- gulong time_created = 0UL;
- sqlite3_stmt* _tmp4_;
- BackingPhotoRow* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- GDestroyNotify _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- BackingPhotoRow* _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- sqlite3_stmt* _tmp15_;
- BackingPhotoRow* _tmp16_;
- Dimensions _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- sqlite3_stmt* _tmp20_;
- BackingPhotoRow* _tmp21_;
- gint64 _tmp22_;
- gint _tmp23_;
- sqlite3_stmt* _tmp24_;
- BackingPhotoRow* _tmp25_;
- time_t _tmp26_;
- gint _tmp27_;
- sqlite3_stmt* _tmp28_;
- time_t _tmp29_;
- gint _tmp30_;
- sqlite3_stmt* _tmp31_;
- BackingPhotoRow* _tmp32_;
- Orientation _tmp33_;
- gint _tmp34_;
- sqlite3_stmt* _tmp35_;
- BackingPhotoRow* _tmp36_;
- Orientation _tmp37_;
- gint _tmp38_;
- sqlite3_stmt* _tmp39_;
- ImportID _tmp40_;
- gint64 _tmp41_;
- gint _tmp42_;
- sqlite3_stmt* _tmp43_;
- gint _tmp44_;
- sqlite3_stmt* _tmp45_;
- const gchar* _tmp46_;
- gchar* _tmp47_;
- GDestroyNotify _tmp48_;
- gint _tmp49_;
- sqlite3_stmt* _tmp50_;
- const gchar* _tmp51_;
- gchar* _tmp52_;
- GDestroyNotify _tmp53_;
- gint _tmp54_;
- sqlite3_stmt* _tmp55_;
- const gchar* _tmp56_;
- gchar* _tmp57_;
- GDestroyNotify _tmp58_;
- gint _tmp59_;
- sqlite3_stmt* _tmp60_;
- gulong _tmp61_;
- gint _tmp62_;
- sqlite3_stmt* _tmp63_;
- BackingPhotoRow* _tmp64_;
- PhotoFileFormat _tmp65_;
- gint _tmp66_;
- sqlite3_stmt* _tmp67_;
- const gchar* _tmp68_;
- gchar* _tmp69_;
- GDestroyNotify _tmp70_;
- gint _tmp71_;
- sqlite3_stmt* _tmp72_;
- Rating _tmp73_;
- gint _tmp74_;
- sqlite3_stmt* _tmp75_;
- gint _tmp76_;
- sqlite3_stmt* _tmp77_;
- RawDeveloper _tmp78_;
- gchar* _tmp79_;
- GDestroyNotify _tmp80_;
- gint _tmp81_;
- sqlite3_stmt* _tmp82_;
- const gchar* _tmp83_;
- gchar* _tmp84_;
- GDestroyNotify _tmp85_;
- gint _tmp86_;
- sqlite3_stmt* _tmp87_;
- gint _tmp88_;
- sqlite3* _tmp92_;
- BackingPhotoRow* _tmp93_;
- Orientation _tmp94_;
- gulong _tmp95_;
- PhotoID _tmp96_;
-#line 207 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 207 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_ROW (photo_row));
-#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO PhotoTable (filename, width, height, filesize, timestamp, " \
-"exposure_time, " "orientation, original_orientation, import_id, event_id, md5, thumbnail" \
-"_md5, " "exif_md5, time_created, file_format, title, rating, editable_id, devel" \
-"oper, comment) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", -1, &_tmp1_, NULL);
-#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 217 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- time_created = now_sec ();
-#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = photo_row->master;
-#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = _tmp5_->filepath;
-#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = g_strdup (_tmp6_);
-#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = g_free;
-#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp7_, -1, _tmp8_);
-#line 220 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 220 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = stmt;
-#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = photo_row->master;
-#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = _tmp11_->dim;
-#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = _tmp12_.width;
-#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp10_, 2, _tmp13_);
-#line 222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = res;
-#line 222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp14_ == SQLITE_OK, "res == Sqlite.OK");
-#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = stmt;
-#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = photo_row->master;
-#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = _tmp16_->dim;
-#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = _tmp17_.height;
-#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp15_, 3, _tmp18_);
-#line 224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = res;
-#line 224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK");
-#line 225 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = stmt;
-#line 225 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = photo_row->master;
-#line 225 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = _tmp21_->filesize;
-#line 225 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp20_, 4, _tmp22_);
-#line 226 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = res;
-#line 226 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK");
-#line 227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = stmt;
-#line 227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = photo_row->master;
-#line 227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = _tmp25_->timestamp;
-#line 227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp24_, 5, (gint64) _tmp26_);
-#line 228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = res;
-#line 228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK");
-#line 229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = stmt;
-#line 229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = photo_row->exposure_time;
-#line 229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp28_, 6, (gint64) _tmp29_);
-#line 230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = res;
-#line 230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp30_ == SQLITE_OK, "res == Sqlite.OK");
-#line 231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = stmt;
-#line 231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = photo_row->master;
-#line 231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = _tmp32_->original_orientation;
-#line 231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp31_, 7, (gint) _tmp33_);
-#line 232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = res;
-#line 232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp34_ == SQLITE_OK, "res == Sqlite.OK");
-#line 233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = stmt;
-#line 233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = photo_row->master;
-#line 233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = _tmp36_->original_orientation;
-#line 233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp35_, 8, (gint) _tmp37_);
-#line 234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = res;
-#line 234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp38_ == SQLITE_OK, "res == Sqlite.OK");
-#line 235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = stmt;
-#line 235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_ = photo_row->import_id;
-#line 235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp41_ = _tmp40_.id;
-#line 235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp39_, 9, _tmp41_);
-#line 236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp42_ = res;
-#line 236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp42_ == SQLITE_OK, "res == Sqlite.OK");
-#line 237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp43_ = stmt;
-#line 237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp43_, 10, EVENT_ID_INVALID);
-#line 238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp44_ = res;
-#line 238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp44_ == SQLITE_OK, "res == Sqlite.OK");
-#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp45_ = stmt;
-#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp46_ = photo_row->md5;
-#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp47_ = g_strdup (_tmp46_);
-#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp48_ = g_free;
-#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp45_, 11, _tmp47_, -1, _tmp48_);
-#line 240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp49_ = res;
-#line 240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp49_ == SQLITE_OK, "res == Sqlite.OK");
-#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp50_ = stmt;
-#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp51_ = photo_row->thumbnail_md5;
-#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp52_ = g_strdup (_tmp51_);
-#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp53_ = g_free;
-#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp50_, 12, _tmp52_, -1, _tmp53_);
-#line 242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp54_ = res;
-#line 242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp54_ == SQLITE_OK, "res == Sqlite.OK");
-#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp55_ = stmt;
-#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp56_ = photo_row->exif_md5;
-#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp57_ = g_strdup (_tmp56_);
-#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp58_ = g_free;
-#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp55_, 13, _tmp57_, -1, _tmp58_);
-#line 244 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp59_ = res;
-#line 244 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp59_ == SQLITE_OK, "res == Sqlite.OK");
-#line 245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp60_ = stmt;
-#line 245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp61_ = time_created;
-#line 245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp60_, 14, (gint64) _tmp61_);
-#line 246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp62_ = res;
-#line 246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp62_ == SQLITE_OK, "res == Sqlite.OK");
-#line 247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp63_ = stmt;
-#line 247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp64_ = photo_row->master;
-#line 247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp65_ = _tmp64_->file_format;
-#line 247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp63_, 15, photo_file_format_serialize (_tmp65_));
-#line 248 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp66_ = res;
-#line 248 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp66_ == SQLITE_OK, "res == Sqlite.OK");
-#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp67_ = stmt;
-#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp68_ = photo_row->title;
-#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp69_ = g_strdup (_tmp68_);
-#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp70_ = g_free;
-#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp67_, 16, _tmp69_, -1, _tmp70_);
-#line 250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp71_ = res;
-#line 250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp71_ == SQLITE_OK, "res == Sqlite.OK");
-#line 251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp72_ = stmt;
-#line 251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp73_ = photo_row->rating;
-#line 251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp72_, 17, (gint64) rating_serialize (_tmp73_));
-#line 252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp74_ = res;
-#line 252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp74_ == SQLITE_OK, "res == Sqlite.OK");
-#line 253 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp75_ = stmt;
-#line 253 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp75_, 18, BACKING_PHOTO_ID_INVALID);
-#line 254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp76_ = res;
-#line 254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp76_ == SQLITE_OK, "res == Sqlite.OK");
-#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp77_ = stmt;
-#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp78_ = photo_row->developer;
-#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp79_ = raw_developer_to_string (_tmp78_);
-#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp80_ = g_free;
-#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp77_, 19, _tmp79_, -1, _tmp80_);
-#line 256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp81_ = res;
-#line 256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp81_ == SQLITE_OK, "res == Sqlite.OK");
-#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp82_ = stmt;
-#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp83_ = photo_row->comment;
-#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp84_ = g_strdup (_tmp83_);
-#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp85_ = g_free;
-#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp82_, 20, _tmp84_, -1, _tmp85_);
-#line 258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp86_ = res;
-#line 258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp86_ == SQLITE_OK, "res == Sqlite.OK");
-#line 260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp87_ = stmt;
-#line 260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp87_);
-#line 261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp88_ = res;
-#line 261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp88_ != SQLITE_DONE) {
-#line 1983 "PhotoTable.c"
- gint _tmp89_;
- PhotoID _tmp91_ = {0};
-#line 262 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp89_ = res;
-#line 262 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp89_ != SQLITE_CONSTRAINT) {
-#line 1990 "PhotoTable.c"
- gint _tmp90_;
-#line 263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp90_ = res;
-#line 263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("add_photo", _tmp90_);
-#line 1996 "PhotoTable.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_id_init (&_tmp91_, PHOTO_ID_INVALID);
-#line 265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *result = _tmp91_;
-#line 265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 2006 "PhotoTable.c"
- }
-#line 269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp92_ = database_table_db;
-#line 269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_id_init (&photo_row->photo_id, sqlite3_last_insert_rowid (_tmp92_));
-#line 270 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp93_ = photo_row->master;
-#line 270 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp94_ = _tmp93_->original_orientation;
-#line 270 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_row->orientation = _tmp94_;
-#line 271 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- event_id_init (&photo_row->event_id, EVENT_ID_INVALID);
-#line 272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp95_ = time_created;
-#line 272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_row->time_created = (time_t) _tmp95_;
-#line 273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_row->flags = (guint64) 0;
-#line 275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp96_ = photo_row->photo_id;
-#line 275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *result = _tmp96_;
-#line 275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 2034 "PhotoTable.c"
-}
-
-
-void
-photo_table_reimport (PhotoTable* self,
- PhotoRow* row,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- time_t time_reimported = 0;
- sqlite3_stmt* _tmp4_;
- BackingPhotoRow* _tmp5_;
- Dimensions _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- BackingPhotoRow* _tmp10_;
- Dimensions _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- sqlite3_stmt* _tmp14_;
- BackingPhotoRow* _tmp15_;
- gint64 _tmp16_;
- gint _tmp17_;
- sqlite3_stmt* _tmp18_;
- BackingPhotoRow* _tmp19_;
- time_t _tmp20_;
- gint _tmp21_;
- sqlite3_stmt* _tmp22_;
- time_t _tmp23_;
- gint _tmp24_;
- sqlite3_stmt* _tmp25_;
- BackingPhotoRow* _tmp26_;
- Orientation _tmp27_;
- gint _tmp28_;
- sqlite3_stmt* _tmp29_;
- BackingPhotoRow* _tmp30_;
- Orientation _tmp31_;
- gint _tmp32_;
- sqlite3_stmt* _tmp33_;
- const gchar* _tmp34_;
- gchar* _tmp35_;
- GDestroyNotify _tmp36_;
- gint _tmp37_;
- sqlite3_stmt* _tmp38_;
- const gchar* _tmp39_;
- gchar* _tmp40_;
- GDestroyNotify _tmp41_;
- gint _tmp42_;
- sqlite3_stmt* _tmp43_;
- const gchar* _tmp44_;
- gchar* _tmp45_;
- GDestroyNotify _tmp46_;
- gint _tmp47_;
- sqlite3_stmt* _tmp48_;
- BackingPhotoRow* _tmp49_;
- PhotoFileFormat _tmp50_;
- gint _tmp51_;
- sqlite3_stmt* _tmp52_;
- const gchar* _tmp53_;
- gchar* _tmp54_;
- GDestroyNotify _tmp55_;
- gint _tmp56_;
- sqlite3_stmt* _tmp57_;
- time_t _tmp58_;
- gint _tmp59_;
- sqlite3_stmt* _tmp60_;
- PhotoID _tmp61_;
- gint64 _tmp62_;
- gint _tmp63_;
- sqlite3_stmt* _tmp64_;
- gint _tmp65_;
- time_t _tmp67_;
- BackingPhotoRow* _tmp68_;
- Orientation _tmp69_;
- GError * _inner_error_ = NULL;
-#line 283 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 283 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_ROW (row));
-#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE PhotoTable SET width = ?, height = ?, filesize = ?, timestamp =" \
-" ?, " "exposure_time = ?, orientation = ?, original_orientation = ?, md5 = ?," \
-" " "exif_md5 = ?, thumbnail_md5 = ?, file_format = ?, title = ?, time_reim" \
-"ported = ? " "WHERE id = ?", -1, &_tmp1_, NULL);
-#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 290 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 290 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 292 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- time_reimported = (time_t) now_sec ();
-#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = row->master;
-#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = _tmp5_->dim;
-#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = _tmp6_.width;
-#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp4_, 1, _tmp7_);
-#line 295 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = res;
-#line 295 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = stmt;
-#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = row->master;
-#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = _tmp10_->dim;
-#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = _tmp11_.height;
-#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp9_, 2, _tmp12_);
-#line 297 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = res;
-#line 297 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK");
-#line 298 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = stmt;
-#line 298 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = row->master;
-#line 298 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = _tmp15_->filesize;
-#line 298 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp14_, 3, _tmp16_);
-#line 299 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = res;
-#line 299 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK");
-#line 300 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = stmt;
-#line 300 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = row->master;
-#line 300 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = _tmp19_->timestamp;
-#line 300 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp18_, 4, (gint64) _tmp20_);
-#line 301 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = res;
-#line 301 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp21_ == SQLITE_OK, "res == Sqlite.OK");
-#line 302 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = stmt;
-#line 302 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = row->exposure_time;
-#line 302 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp22_, 5, (gint64) _tmp23_);
-#line 303 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = res;
-#line 303 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp24_ == SQLITE_OK, "res == Sqlite.OK");
-#line 304 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = stmt;
-#line 304 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = row->master;
-#line 304 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = _tmp26_->original_orientation;
-#line 304 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp25_, 6, (gint) _tmp27_);
-#line 305 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = res;
-#line 305 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp28_ == SQLITE_OK, "res == Sqlite.OK");
-#line 306 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = stmt;
-#line 306 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = row->master;
-#line 306 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = _tmp30_->original_orientation;
-#line 306 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp29_, 7, (gint) _tmp31_);
-#line 307 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = res;
-#line 307 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp32_ == SQLITE_OK, "res == Sqlite.OK");
-#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = stmt;
-#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = row->md5;
-#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = g_strdup (_tmp34_);
-#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = g_free;
-#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp33_, 8, _tmp35_, -1, _tmp36_);
-#line 309 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = res;
-#line 309 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp37_ == SQLITE_OK, "res == Sqlite.OK");
-#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = stmt;
-#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = row->exif_md5;
-#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_ = g_strdup (_tmp39_);
-#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp41_ = g_free;
-#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp38_, 9, _tmp40_, -1, _tmp41_);
-#line 311 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp42_ = res;
-#line 311 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp42_ == SQLITE_OK, "res == Sqlite.OK");
-#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp43_ = stmt;
-#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp44_ = row->thumbnail_md5;
-#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp45_ = g_strdup (_tmp44_);
-#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp46_ = g_free;
-#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp43_, 10, _tmp45_, -1, _tmp46_);
-#line 313 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp47_ = res;
-#line 313 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp47_ == SQLITE_OK, "res == Sqlite.OK");
-#line 314 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp48_ = stmt;
-#line 314 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp49_ = row->master;
-#line 314 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp50_ = _tmp49_->file_format;
-#line 314 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp48_, 11, photo_file_format_serialize (_tmp50_));
-#line 315 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp51_ = res;
-#line 315 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp51_ == SQLITE_OK, "res == Sqlite.OK");
-#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp52_ = stmt;
-#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp53_ = row->title;
-#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp54_ = g_strdup (_tmp53_);
-#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp55_ = g_free;
-#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp52_, 12, _tmp54_, -1, _tmp55_);
-#line 317 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp56_ = res;
-#line 317 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp56_ == SQLITE_OK, "res == Sqlite.OK");
-#line 318 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp57_ = stmt;
-#line 318 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp58_ = time_reimported;
-#line 318 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp57_, 13, (gint64) _tmp58_);
-#line 319 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp59_ = res;
-#line 319 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp59_ == SQLITE_OK, "res == Sqlite.OK");
-#line 320 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp60_ = stmt;
-#line 320 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp61_ = row->photo_id;
-#line 320 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp62_ = _tmp61_.id;
-#line 320 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp60_, 14, _tmp62_);
-#line 321 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp63_ = res;
-#line 321 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp63_ == SQLITE_OK, "res == Sqlite.OK");
-#line 323 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp64_ = stmt;
-#line 323 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp64_);
-#line 324 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp65_ = res;
-#line 324 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp65_ != SQLITE_DONE) {
-#line 2320 "PhotoTable.c"
- gint _tmp66_;
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp66_ = res;
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_throw_error ("PhotoTable.reimport_master", _tmp66_, &_inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 2336 "PhotoTable.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 325 "/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 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 2346 "PhotoTable.c"
- }
- }
- }
-#line 327 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp67_ = time_reimported;
-#line 327 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row->time_reimported = _tmp67_;
-#line 328 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp68_ = row->master;
-#line 328 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp69_ = _tmp68_->original_orientation;
-#line 328 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row->orientation = _tmp69_;
-#line 283 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 2362 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_master_exif_updated (PhotoTable* self,
- PhotoID* photoID,
- gint64 filesize,
- glong timestamp,
- const gchar* md5,
- const gchar* exif_md5,
- const gchar* thumbnail_md5,
- PhotoRow* row)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gchar* _tmp9_;
- GDestroyNotify _tmp10_;
- gint _tmp11_;
- sqlite3_stmt* _tmp12_;
- gchar* _tmp13_;
- GDestroyNotify _tmp14_;
- gint _tmp15_;
- sqlite3_stmt* _tmp16_;
- gchar* _tmp17_;
- GDestroyNotify _tmp18_;
- gint _tmp19_;
- sqlite3_stmt* _tmp20_;
- PhotoID _tmp21_;
- gint64 _tmp22_;
- gint _tmp23_;
- sqlite3_stmt* _tmp24_;
- gint _tmp25_;
- BackingPhotoRow* _tmp28_;
- BackingPhotoRow* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
-#line 331 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 331 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photoID != NULL, FALSE);
-#line 331 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (md5 != NULL, FALSE);
-#line 331 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_ROW (row), FALSE);
-#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE PhotoTable SET filesize = ?, timestamp = ?, md5 = ?, exif_md5 =" \
-" ?," "thumbnail_md5 =? WHERE id = ?", -1, &_tmp1_, NULL);
-#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 337 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 337 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 339 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 339 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, filesize);
-#line 340 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = res;
-#line 340 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 341 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = stmt;
-#line 341 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp6_, 2, (gint64) timestamp);
-#line 342 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 342 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 343 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = stmt;
-#line 343 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = g_strdup (md5);
-#line 343 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = g_free;
-#line 343 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp8_, 3, _tmp9_, -1, _tmp10_);
-#line 344 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = res;
-#line 344 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK");
-#line 345 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = stmt;
-#line 345 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = g_strdup (exif_md5);
-#line 345 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = g_free;
-#line 345 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp12_, 4, _tmp13_, -1, _tmp14_);
-#line 346 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = res;
-#line 346 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK");
-#line 347 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = stmt;
-#line 347 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = g_strdup (thumbnail_md5);
-#line 347 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = g_free;
-#line 347 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp16_, 5, _tmp17_, -1, _tmp18_);
-#line 348 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = res;
-#line 348 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK");
-#line 349 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = stmt;
-#line 349 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = *photoID;
-#line 349 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = _tmp21_.id;
-#line 349 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp20_, 6, _tmp22_);
-#line 350 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = res;
-#line 350 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK");
-#line 352 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = stmt;
-#line 352 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp24_);
-#line 353 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = res;
-#line 353 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp25_ != SQLITE_DONE) {
-#line 2504 "PhotoTable.c"
- gint _tmp26_;
-#line 354 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = res;
-#line 354 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp26_ != SQLITE_CONSTRAINT) {
-#line 2510 "PhotoTable.c"
- gint _tmp27_;
-#line 355 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = res;
-#line 355 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("write_update_photo", _tmp27_);
-#line 2516 "PhotoTable.c"
- }
-#line 357 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 357 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 357 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 2524 "PhotoTable.c"
- }
-#line 360 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = row->master;
-#line 360 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_->filesize = filesize;
-#line 361 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = row->master;
-#line 361 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_->timestamp = (time_t) timestamp;
-#line 362 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = g_strdup (md5);
-#line 362 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (row->md5);
-#line 362 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row->md5 = _tmp30_;
-#line 363 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = g_strdup (exif_md5);
-#line 363 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (row->exif_md5);
-#line 363 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row->exif_md5 = _tmp31_;
-#line 364 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = g_strdup (thumbnail_md5);
-#line 364 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (row->thumbnail_md5);
-#line 364 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row->thumbnail_md5 = _tmp32_;
-#line 366 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = TRUE;
-#line 366 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 366 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 2558 "PhotoTable.c"
-}
-
-
-static void
-photo_table_validate_orientation (PhotoTable* self,
- PhotoRow* row)
-{
- gboolean _tmp0_ = FALSE;
- Orientation _tmp1_;
-#line 377 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 377 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_ROW (row));
-#line 378 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = row->orientation;
-#line 378 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp1_ < ORIENTATION_MIN) {
-#line 378 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = TRUE;
-#line 2578 "PhotoTable.c"
- } else {
- Orientation _tmp2_;
-#line 379 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = row->orientation;
-#line 379 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = _tmp2_ > ORIENTATION_MAX;
-#line 2585 "PhotoTable.c"
- }
-#line 378 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp0_) {
-#line 2589 "PhotoTable.c"
- PhotoID _tmp3_;
-#line 381 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = row->photo_id;
-#line 381 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_table_set_orientation (self, &_tmp3_, ORIENTATION_MIN);
-#line 382 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row->orientation = ORIENTATION_MIN;
-#line 2597 "PhotoTable.c"
- }
-}
-
-
-PhotoRow*
-photo_table_get_row (PhotoTable* self,
- PhotoID* photo_id)
-{
- PhotoRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- PhotoID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- PhotoRow* row = NULL;
- PhotoRow* _tmp9_;
- PhotoRow* _tmp10_;
- PhotoID _tmp11_;
- PhotoRow* _tmp12_;
- BackingPhotoRow* _tmp13_;
- sqlite3_stmt* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- PhotoRow* _tmp17_;
- BackingPhotoRow* _tmp18_;
- sqlite3_stmt* _tmp19_;
- sqlite3_stmt* _tmp20_;
- PhotoRow* _tmp21_;
- BackingPhotoRow* _tmp22_;
- sqlite3_stmt* _tmp23_;
- PhotoRow* _tmp24_;
- BackingPhotoRow* _tmp25_;
- sqlite3_stmt* _tmp26_;
- PhotoRow* _tmp27_;
- sqlite3_stmt* _tmp28_;
- PhotoRow* _tmp29_;
- sqlite3_stmt* _tmp30_;
- PhotoRow* _tmp31_;
- BackingPhotoRow* _tmp32_;
- sqlite3_stmt* _tmp33_;
- PhotoRow* _tmp34_;
- sqlite3_stmt* _tmp35_;
- PhotoRow* _tmp36_;
- sqlite3_stmt* _tmp37_;
- PhotoRow* _tmp38_;
- sqlite3_stmt* _tmp39_;
- const gchar* _tmp40_;
- GeeHashMap* _tmp41_;
- PhotoRow* _tmp42_;
- sqlite3_stmt* _tmp43_;
- const gchar* _tmp44_;
- gchar* _tmp45_;
- PhotoRow* _tmp46_;
- sqlite3_stmt* _tmp47_;
- const gchar* _tmp48_;
- gchar* _tmp49_;
- PhotoRow* _tmp50_;
- sqlite3_stmt* _tmp51_;
- const gchar* _tmp52_;
- gchar* _tmp53_;
- PhotoRow* _tmp54_;
- sqlite3_stmt* _tmp55_;
- PhotoRow* _tmp56_;
- sqlite3_stmt* _tmp57_;
- PhotoRow* _tmp58_;
- sqlite3_stmt* _tmp59_;
- PhotoRow* _tmp60_;
- BackingPhotoRow* _tmp61_;
- sqlite3_stmt* _tmp62_;
- PhotoRow* _tmp63_;
- sqlite3_stmt* _tmp64_;
- const gchar* _tmp65_;
- gchar* _tmp66_;
- PhotoRow* _tmp67_;
- sqlite3_stmt* _tmp68_;
- const gchar* _tmp69_;
- gchar* _tmp70_;
- PhotoRow* _tmp71_;
- sqlite3_stmt* _tmp72_;
- PhotoRow* _tmp73_;
- sqlite3_stmt* _tmp74_;
- PhotoRow* _tmp75_;
- sqlite3_stmt* _tmp76_;
- RawDeveloper _tmp77_ = 0;
- sqlite3_stmt* _tmp78_;
- const gchar* _tmp79_;
- PhotoRow* _tmp82_;
- PhotoRow* _tmp83_;
- BackingPhotoID* _tmp84_;
- gint _tmp84__length1;
- sqlite3_stmt* _tmp85_;
- BackingPhotoID _tmp86_ = {0};
- BackingPhotoID _tmp87_;
- PhotoRow* _tmp88_;
- BackingPhotoID* _tmp89_;
- gint _tmp89__length1;
- sqlite3_stmt* _tmp90_;
- BackingPhotoID _tmp91_ = {0};
- BackingPhotoID _tmp92_;
- PhotoRow* _tmp93_;
- BackingPhotoID* _tmp94_;
- gint _tmp94__length1;
- sqlite3_stmt* _tmp95_;
- BackingPhotoID _tmp96_ = {0};
- BackingPhotoID _tmp97_;
- PhotoRow* _tmp98_;
- sqlite3_stmt* _tmp99_;
- const gchar* _tmp100_;
- gchar* _tmp101_;
-#line 386 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL);
-#line 386 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, NULL);
-#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT filename, width, height, filesize, timestamp, exposure_time, or" \
-"ientation, " "original_orientation, import_id, event_id, transformations, md5, thumb" \
-"nail_md5, " "exif_md5, time_created, flags, rating, file_format, title, backlinks, " "time_reimported, editable_id, metadata_dirty, developer, develop_shotw" \
-"ell_id, " "develop_camera_id, develop_embedded_id, comment " "FROM PhotoTable WHERE id=?", -1, &_tmp1_, NULL);
-#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 396 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 396 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 398 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 398 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = *photo_id;
-#line 398 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 398 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 399 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 399 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 401 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = stmt;
-#line 401 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (sqlite3_step (_tmp8_) != SQLITE_ROW) {
-#line 402 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = NULL;
-#line 402 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 402 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 2753 "PhotoTable.c"
- }
-#line 404 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = photo_row_new ();
-#line 404 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row = _tmp9_;
-#line 405 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = row;
-#line 405 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = *photo_id;
-#line 405 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_->photo_id = _tmp11_;
-#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = row;
-#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = _tmp12_->master;
-#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = stmt;
-#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = sqlite3_column_text (_tmp14_, 0);
-#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp13_->filepath);
-#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_->filepath = _tmp16_;
-#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = row;
-#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = _tmp17_->master;
-#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = stmt;
-#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = stmt;
-#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dimensions_init (&_tmp18_->dim, sqlite3_column_int (_tmp19_, 1), sqlite3_column_int (_tmp20_, 2));
-#line 408 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = row;
-#line 408 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = _tmp21_->master;
-#line 408 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = stmt;
-#line 408 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_->filesize = sqlite3_column_int64 (_tmp23_, 3);
-#line 409 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = row;
-#line 409 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = _tmp24_->master;
-#line 409 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = stmt;
-#line 409 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_->timestamp = (time_t) sqlite3_column_int64 (_tmp26_, 4);
-#line 410 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = row;
-#line 410 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = stmt;
-#line 410 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_->exposure_time = (time_t) sqlite3_column_int64 (_tmp28_, 5);
-#line 411 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = row;
-#line 411 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = stmt;
-#line 411 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_->orientation = (Orientation) sqlite3_column_int (_tmp30_, 6);
-#line 412 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = row;
-#line 412 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = _tmp31_->master;
-#line 412 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = stmt;
-#line 412 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_->original_orientation = (Orientation) sqlite3_column_int (_tmp33_, 7);
-#line 413 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = row;
-#line 413 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = stmt;
-#line 413 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_->import_id.id = sqlite3_column_int64 (_tmp35_, 8);
-#line 414 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = row;
-#line 414 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = stmt;
-#line 414 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_->event_id.id = sqlite3_column_int64 (_tmp37_, 9);
-#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = row;
-#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = stmt;
-#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_ = sqlite3_column_text (_tmp39_, 10);
-#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp41_ = photo_table_marshall_all_transformations (_tmp40_);
-#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (_tmp38_->transformations);
-#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_->transformations = _tmp41_;
-#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp42_ = row;
-#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp43_ = stmt;
-#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp44_ = sqlite3_column_text (_tmp43_, 11);
-#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp45_ = g_strdup (_tmp44_);
-#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp42_->md5);
-#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp42_->md5 = _tmp45_;
-#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp46_ = row;
-#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp47_ = stmt;
-#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp48_ = sqlite3_column_text (_tmp47_, 12);
-#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp49_ = g_strdup (_tmp48_);
-#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp46_->thumbnail_md5);
-#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp46_->thumbnail_md5 = _tmp49_;
-#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp50_ = row;
-#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp51_ = stmt;
-#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp52_ = sqlite3_column_text (_tmp51_, 13);
-#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp53_ = g_strdup (_tmp52_);
-#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp50_->exif_md5);
-#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp50_->exif_md5 = _tmp53_;
-#line 419 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp54_ = row;
-#line 419 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp55_ = stmt;
-#line 419 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp54_->time_created = (time_t) sqlite3_column_int64 (_tmp55_, 14);
-#line 420 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp56_ = row;
-#line 420 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp57_ = stmt;
-#line 420 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp56_->flags = (guint64) sqlite3_column_int64 (_tmp57_, 15);
-#line 421 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp58_ = row;
-#line 421 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp59_ = stmt;
-#line 421 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp58_->rating = rating_unserialize (sqlite3_column_int (_tmp59_, 16));
-#line 422 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp60_ = row;
-#line 422 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp61_ = _tmp60_->master;
-#line 422 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp62_ = stmt;
-#line 422 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp61_->file_format = photo_file_format_unserialize (sqlite3_column_int (_tmp62_, 17));
-#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp63_ = row;
-#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp64_ = stmt;
-#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp65_ = sqlite3_column_text (_tmp64_, 18);
-#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp66_ = g_strdup (_tmp65_);
-#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp63_->title);
-#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp63_->title = _tmp66_;
-#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp67_ = row;
-#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp68_ = stmt;
-#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp69_ = sqlite3_column_text (_tmp68_, 19);
-#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp70_ = g_strdup (_tmp69_);
-#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp67_->backlinks);
-#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp67_->backlinks = _tmp70_;
-#line 425 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp71_ = row;
-#line 425 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp72_ = stmt;
-#line 425 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp71_->time_reimported = (time_t) sqlite3_column_int64 (_tmp72_, 20);
-#line 426 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp73_ = row;
-#line 426 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp74_ = stmt;
-#line 426 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp73_->editable_id, sqlite3_column_int64 (_tmp74_, 21));
-#line 427 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp75_ = row;
-#line 427 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp76_ = stmt;
-#line 427 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp75_->metadata_dirty = sqlite3_column_int (_tmp76_, 22) != 0;
-#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp78_ = stmt;
-#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp79_ = sqlite3_column_text (_tmp78_, 23);
-#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp79_ != NULL) {
-#line 2959 "PhotoTable.c"
- sqlite3_stmt* _tmp80_;
- const gchar* _tmp81_;
-#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp80_ = stmt;
-#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp81_ = sqlite3_column_text (_tmp80_, 23);
-#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp77_ = raw_developer_from_string (_tmp81_);
-#line 2968 "PhotoTable.c"
- } else {
-#line 429 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp77_ = RAW_DEVELOPER_CAMERA;
-#line 2972 "PhotoTable.c"
- }
-#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp82_ = row;
-#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp82_->developer = _tmp77_;
-#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp83_ = row;
-#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp84_ = _tmp83_->development_ids;
-#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp84__length1 = _tmp83_->development_ids_length1;
-#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp85_ = stmt;
-#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp86_, sqlite3_column_int64 (_tmp85_, 24));
-#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp84_[RAW_DEVELOPER_SHOTWELL] = _tmp86_;
-#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp87_ = _tmp84_[RAW_DEVELOPER_SHOTWELL];
-#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp88_ = row;
-#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp89_ = _tmp88_->development_ids;
-#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp89__length1 = _tmp88_->development_ids_length1;
-#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp90_ = stmt;
-#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp91_, sqlite3_column_int64 (_tmp90_, 25));
-#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp89_[RAW_DEVELOPER_CAMERA] = _tmp91_;
-#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp92_ = _tmp89_[RAW_DEVELOPER_CAMERA];
-#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp93_ = row;
-#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp94_ = _tmp93_->development_ids;
-#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp94__length1 = _tmp93_->development_ids_length1;
-#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp95_ = stmt;
-#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp96_, sqlite3_column_int64 (_tmp95_, 26));
-#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp94_[RAW_DEVELOPER_EMBEDDED] = _tmp96_;
-#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp97_ = _tmp94_[RAW_DEVELOPER_EMBEDDED];
-#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp98_ = row;
-#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp99_ = stmt;
-#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp100_ = sqlite3_column_text (_tmp99_, 27);
-#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp101_ = g_strdup (_tmp100_);
-#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp98_->comment);
-#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp98_->comment = _tmp101_;
-#line 435 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = row;
-#line 435 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 435 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 3038 "PhotoTable.c"
-}
-
-
-GeeArrayList*
-photo_table_get_all (PhotoTable* self)
-{
- GeeArrayList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- GeeArrayList* all = NULL;
- GeeArrayList* _tmp4_;
-#line 438 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL);
-#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, filename, width, height, filesize, timestamp, exposure_time" \
-", orientation, " "original_orientation, import_id, event_id, transformations, md5, thumb" \
-"nail_md5, " "exif_md5, time_created, flags, rating, file_format, title, backlinks, " \
-"time_reimported, " "editable_id, metadata_dirty, developer, develop_shotwell_id, develop_c" \
-"amera_id, " "develop_embedded_id, comment FROM PhotoTable", -1, &_tmp1_, NULL);
-#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 447 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 447 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 449 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = gee_array_list_new (TYPE_PHOTO_ROW, (GBoxedCopyFunc) photo_row_ref, (GDestroyNotify) photo_row_unref, NULL, NULL, NULL);
-#line 449 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- all = _tmp4_;
-#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 3076 "PhotoTable.c"
- sqlite3_stmt* _tmp5_;
- gint _tmp6_;
- PhotoRow* row = NULL;
- PhotoRow* _tmp7_;
- PhotoRow* _tmp8_;
- sqlite3_stmt* _tmp9_;
- PhotoRow* _tmp10_;
- BackingPhotoRow* _tmp11_;
- sqlite3_stmt* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- PhotoRow* _tmp15_;
- BackingPhotoRow* _tmp16_;
- sqlite3_stmt* _tmp17_;
- sqlite3_stmt* _tmp18_;
- PhotoRow* _tmp19_;
- BackingPhotoRow* _tmp20_;
- sqlite3_stmt* _tmp21_;
- PhotoRow* _tmp22_;
- BackingPhotoRow* _tmp23_;
- sqlite3_stmt* _tmp24_;
- PhotoRow* _tmp25_;
- sqlite3_stmt* _tmp26_;
- PhotoRow* _tmp27_;
- sqlite3_stmt* _tmp28_;
- PhotoRow* _tmp29_;
- BackingPhotoRow* _tmp30_;
- sqlite3_stmt* _tmp31_;
- PhotoRow* _tmp32_;
- sqlite3_stmt* _tmp33_;
- PhotoRow* _tmp34_;
- sqlite3_stmt* _tmp35_;
- PhotoRow* _tmp36_;
- sqlite3_stmt* _tmp37_;
- const gchar* _tmp38_;
- GeeHashMap* _tmp39_;
- PhotoRow* _tmp40_;
- sqlite3_stmt* _tmp41_;
- const gchar* _tmp42_;
- gchar* _tmp43_;
- PhotoRow* _tmp44_;
- sqlite3_stmt* _tmp45_;
- const gchar* _tmp46_;
- gchar* _tmp47_;
- PhotoRow* _tmp48_;
- sqlite3_stmt* _tmp49_;
- const gchar* _tmp50_;
- gchar* _tmp51_;
- PhotoRow* _tmp52_;
- sqlite3_stmt* _tmp53_;
- PhotoRow* _tmp54_;
- sqlite3_stmt* _tmp55_;
- PhotoRow* _tmp56_;
- sqlite3_stmt* _tmp57_;
- PhotoRow* _tmp58_;
- BackingPhotoRow* _tmp59_;
- sqlite3_stmt* _tmp60_;
- PhotoRow* _tmp61_;
- sqlite3_stmt* _tmp62_;
- const gchar* _tmp63_;
- gchar* _tmp64_;
- PhotoRow* _tmp65_;
- sqlite3_stmt* _tmp66_;
- const gchar* _tmp67_;
- gchar* _tmp68_;
- PhotoRow* _tmp69_;
- sqlite3_stmt* _tmp70_;
- PhotoRow* _tmp71_;
- sqlite3_stmt* _tmp72_;
- PhotoRow* _tmp73_;
- sqlite3_stmt* _tmp74_;
- RawDeveloper _tmp75_ = 0;
- sqlite3_stmt* _tmp76_;
- const gchar* _tmp77_;
- PhotoRow* _tmp80_;
- PhotoRow* _tmp81_;
- BackingPhotoID* _tmp82_;
- gint _tmp82__length1;
- sqlite3_stmt* _tmp83_;
- BackingPhotoID _tmp84_ = {0};
- BackingPhotoID _tmp85_;
- PhotoRow* _tmp86_;
- BackingPhotoID* _tmp87_;
- gint _tmp87__length1;
- sqlite3_stmt* _tmp88_;
- BackingPhotoID _tmp89_ = {0};
- BackingPhotoID _tmp90_;
- PhotoRow* _tmp91_;
- BackingPhotoID* _tmp92_;
- gint _tmp92__length1;
- sqlite3_stmt* _tmp93_;
- BackingPhotoID _tmp94_ = {0};
- BackingPhotoID _tmp95_;
- PhotoRow* _tmp96_;
- sqlite3_stmt* _tmp97_;
- const gchar* _tmp98_;
- gchar* _tmp99_;
- PhotoRow* _tmp100_;
- GeeArrayList* _tmp101_;
- PhotoRow* _tmp102_;
-#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = stmt;
-#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp5_);
-#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = res;
-#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!(_tmp6_ == SQLITE_ROW)) {
-#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 3187 "PhotoTable.c"
- }
-#line 452 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = photo_row_new ();
-#line 452 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row = _tmp7_;
-#line 453 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = row;
-#line 453 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = stmt;
-#line 453 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_->photo_id.id = sqlite3_column_int64 (_tmp9_, 0);
-#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = row;
-#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = _tmp10_->master;
-#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = stmt;
-#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = sqlite3_column_text (_tmp12_, 1);
-#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = g_strdup (_tmp13_);
-#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp11_->filepath);
-#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_->filepath = _tmp14_;
-#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = row;
-#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = _tmp15_->master;
-#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = stmt;
-#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = stmt;
-#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dimensions_init (&_tmp16_->dim, sqlite3_column_int (_tmp17_, 2), sqlite3_column_int (_tmp18_, 3));
-#line 456 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = row;
-#line 456 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = _tmp19_->master;
-#line 456 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = stmt;
-#line 456 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_->filesize = sqlite3_column_int64 (_tmp21_, 4);
-#line 457 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = row;
-#line 457 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = _tmp22_->master;
-#line 457 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = stmt;
-#line 457 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_->timestamp = (time_t) sqlite3_column_int64 (_tmp24_, 5);
-#line 458 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = row;
-#line 458 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = stmt;
-#line 458 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_->exposure_time = (time_t) sqlite3_column_int64 (_tmp26_, 6);
-#line 459 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = row;
-#line 459 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = stmt;
-#line 459 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_->orientation = (Orientation) sqlite3_column_int (_tmp28_, 7);
-#line 460 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = row;
-#line 460 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = _tmp29_->master;
-#line 460 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = stmt;
-#line 460 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_->original_orientation = (Orientation) sqlite3_column_int (_tmp31_, 8);
-#line 461 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = row;
-#line 461 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = stmt;
-#line 461 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_->import_id.id = sqlite3_column_int64 (_tmp33_, 9);
-#line 462 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = row;
-#line 462 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = stmt;
-#line 462 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_->event_id.id = sqlite3_column_int64 (_tmp35_, 10);
-#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = row;
-#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = stmt;
-#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = sqlite3_column_text (_tmp37_, 11);
-#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = photo_table_marshall_all_transformations (_tmp38_);
-#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (_tmp36_->transformations);
-#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_->transformations = _tmp39_;
-#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_ = row;
-#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp41_ = stmt;
-#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp42_ = sqlite3_column_text (_tmp41_, 12);
-#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp43_ = g_strdup (_tmp42_);
-#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp40_->md5);
-#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_->md5 = _tmp43_;
-#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp44_ = row;
-#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp45_ = stmt;
-#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp46_ = sqlite3_column_text (_tmp45_, 13);
-#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp47_ = g_strdup (_tmp46_);
-#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp44_->thumbnail_md5);
-#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp44_->thumbnail_md5 = _tmp47_;
-#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp48_ = row;
-#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp49_ = stmt;
-#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp50_ = sqlite3_column_text (_tmp49_, 14);
-#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp51_ = g_strdup (_tmp50_);
-#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp48_->exif_md5);
-#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp48_->exif_md5 = _tmp51_;
-#line 467 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp52_ = row;
-#line 467 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp53_ = stmt;
-#line 467 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp52_->time_created = (time_t) sqlite3_column_int64 (_tmp53_, 15);
-#line 468 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp54_ = row;
-#line 468 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp55_ = stmt;
-#line 468 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp54_->flags = (guint64) sqlite3_column_int64 (_tmp55_, 16);
-#line 469 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp56_ = row;
-#line 469 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp57_ = stmt;
-#line 469 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp56_->rating = rating_unserialize (sqlite3_column_int (_tmp57_, 17));
-#line 470 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp58_ = row;
-#line 470 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp59_ = _tmp58_->master;
-#line 470 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp60_ = stmt;
-#line 470 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp59_->file_format = photo_file_format_unserialize (sqlite3_column_int (_tmp60_, 18));
-#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp61_ = row;
-#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp62_ = stmt;
-#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp63_ = sqlite3_column_text (_tmp62_, 19);
-#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp64_ = g_strdup (_tmp63_);
-#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp61_->title);
-#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp61_->title = _tmp64_;
-#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp65_ = row;
-#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp66_ = stmt;
-#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp67_ = sqlite3_column_text (_tmp66_, 20);
-#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp68_ = g_strdup (_tmp67_);
-#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp65_->backlinks);
-#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp65_->backlinks = _tmp68_;
-#line 473 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp69_ = row;
-#line 473 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp70_ = stmt;
-#line 473 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp69_->time_reimported = (time_t) sqlite3_column_int64 (_tmp70_, 21);
-#line 474 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp71_ = row;
-#line 474 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp72_ = stmt;
-#line 474 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp71_->editable_id, sqlite3_column_int64 (_tmp72_, 22));
-#line 475 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp73_ = row;
-#line 475 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp74_ = stmt;
-#line 475 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp73_->metadata_dirty = sqlite3_column_int (_tmp74_, 23) != 0;
-#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp76_ = stmt;
-#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp77_ = sqlite3_column_text (_tmp76_, 24);
-#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp77_ != NULL) {
-#line 3393 "PhotoTable.c"
- sqlite3_stmt* _tmp78_;
- const gchar* _tmp79_;
-#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp78_ = stmt;
-#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp79_ = sqlite3_column_text (_tmp78_, 24);
-#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp75_ = raw_developer_from_string (_tmp79_);
-#line 3402 "PhotoTable.c"
- } else {
-#line 477 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp75_ = RAW_DEVELOPER_CAMERA;
-#line 3406 "PhotoTable.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp80_ = row;
-#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp80_->developer = _tmp75_;
-#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp81_ = row;
-#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp82_ = _tmp81_->development_ids;
-#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp82__length1 = _tmp81_->development_ids_length1;
-#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp83_ = stmt;
-#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp84_, sqlite3_column_int64 (_tmp83_, 25));
-#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp82_[RAW_DEVELOPER_SHOTWELL] = _tmp84_;
-#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp85_ = _tmp82_[RAW_DEVELOPER_SHOTWELL];
-#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp86_ = row;
-#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp87_ = _tmp86_->development_ids;
-#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp87__length1 = _tmp86_->development_ids_length1;
-#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp88_ = stmt;
-#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp89_, sqlite3_column_int64 (_tmp88_, 26));
-#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp87_[RAW_DEVELOPER_CAMERA] = _tmp89_;
-#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp90_ = _tmp87_[RAW_DEVELOPER_CAMERA];
-#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp91_ = row;
-#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp92_ = _tmp91_->development_ids;
-#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp92__length1 = _tmp91_->development_ids_length1;
-#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp93_ = stmt;
-#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&_tmp94_, sqlite3_column_int64 (_tmp93_, 27));
-#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp92_[RAW_DEVELOPER_EMBEDDED] = _tmp94_;
-#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp95_ = _tmp92_[RAW_DEVELOPER_EMBEDDED];
-#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp96_ = row;
-#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp97_ = stmt;
-#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp98_ = sqlite3_column_text (_tmp97_, 28);
-#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp99_ = g_strdup (_tmp98_);
-#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp96_->comment);
-#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp96_->comment = _tmp99_;
-#line 483 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp100_ = row;
-#line 483 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_table_validate_orientation (self, _tmp100_);
-#line 485 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp101_ = all;
-#line 485 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp102_ = row;
-#line 485 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp102_);
-#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _photo_row_unref0 (row);
-#line 3478 "PhotoTable.c"
- }
-#line 488 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = all;
-#line 488 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 488 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 3486 "PhotoTable.c"
-}
-
-
-void
-photo_table_duplicate (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_filename,
- BackingPhotoID* editable_id,
- BackingPhotoID* develop_shotwell,
- BackingPhotoID* develop_camera_id,
- BackingPhotoID* develop_embedded_id,
- PhotoID* result)
-{
- PhotoRow* original = NULL;
- PhotoID _tmp0_;
- PhotoRow* _tmp1_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp2_;
- sqlite3_stmt* _tmp3_ = NULL;
- gint _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* _tmp6_;
- gchar* _tmp7_;
- GDestroyNotify _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- PhotoRow* _tmp11_;
- BackingPhotoRow* _tmp12_;
- Dimensions _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- sqlite3_stmt* _tmp16_;
- PhotoRow* _tmp17_;
- BackingPhotoRow* _tmp18_;
- Dimensions _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- sqlite3_stmt* _tmp22_;
- PhotoRow* _tmp23_;
- BackingPhotoRow* _tmp24_;
- gint64 _tmp25_;
- gint _tmp26_;
- sqlite3_stmt* _tmp27_;
- PhotoRow* _tmp28_;
- BackingPhotoRow* _tmp29_;
- time_t _tmp30_;
- gint _tmp31_;
- sqlite3_stmt* _tmp32_;
- PhotoRow* _tmp33_;
- time_t _tmp34_;
- gint _tmp35_;
- sqlite3_stmt* _tmp36_;
- PhotoRow* _tmp37_;
- Orientation _tmp38_;
- gint _tmp39_;
- sqlite3_stmt* _tmp40_;
- PhotoRow* _tmp41_;
- BackingPhotoRow* _tmp42_;
- Orientation _tmp43_;
- gint _tmp44_;
- sqlite3_stmt* _tmp45_;
- PhotoRow* _tmp46_;
- ImportID _tmp47_;
- gint64 _tmp48_;
- gint _tmp49_;
- sqlite3_stmt* _tmp50_;
- PhotoRow* _tmp51_;
- EventID _tmp52_;
- gint64 _tmp53_;
- gint _tmp54_;
- sqlite3_stmt* _tmp55_;
- PhotoRow* _tmp56_;
- GeeHashMap* _tmp57_;
- gchar* _tmp58_;
- GDestroyNotify _tmp59_;
- gint _tmp60_;
- sqlite3_stmt* _tmp61_;
- PhotoRow* _tmp62_;
- const gchar* _tmp63_;
- gchar* _tmp64_;
- GDestroyNotify _tmp65_;
- gint _tmp66_;
- sqlite3_stmt* _tmp67_;
- PhotoRow* _tmp68_;
- const gchar* _tmp69_;
- gchar* _tmp70_;
- GDestroyNotify _tmp71_;
- gint _tmp72_;
- sqlite3_stmt* _tmp73_;
- PhotoRow* _tmp74_;
- const gchar* _tmp75_;
- gchar* _tmp76_;
- GDestroyNotify _tmp77_;
- gint _tmp78_;
- sqlite3_stmt* _tmp79_;
- gint _tmp80_;
- sqlite3_stmt* _tmp81_;
- PhotoRow* _tmp82_;
- guint64 _tmp83_;
- gint _tmp84_;
- sqlite3_stmt* _tmp85_;
- PhotoRow* _tmp86_;
- Rating _tmp87_;
- gint _tmp88_;
- sqlite3_stmt* _tmp89_;
- PhotoRow* _tmp90_;
- BackingPhotoRow* _tmp91_;
- PhotoFileFormat _tmp92_;
- gint _tmp93_;
- sqlite3_stmt* _tmp94_;
- PhotoRow* _tmp95_;
- const gchar* _tmp96_;
- gchar* _tmp97_;
- GDestroyNotify _tmp98_;
- gint _tmp99_;
- sqlite3_stmt* _tmp100_;
- BackingPhotoID _tmp101_;
- gint64 _tmp102_;
- gint _tmp103_;
- sqlite3_stmt* _tmp104_;
- PhotoRow* _tmp105_;
- RawDeveloper _tmp106_;
- gchar* _tmp107_;
- GDestroyNotify _tmp108_;
- gint _tmp109_;
- sqlite3_stmt* _tmp110_;
- BackingPhotoID _tmp111_;
- gint64 _tmp112_;
- gint _tmp113_;
- sqlite3_stmt* _tmp114_;
- BackingPhotoID _tmp115_;
- gint64 _tmp116_;
- gint _tmp117_;
- sqlite3_stmt* _tmp118_;
- BackingPhotoID _tmp119_;
- gint64 _tmp120_;
- gint _tmp121_;
- sqlite3_stmt* _tmp122_;
- PhotoRow* _tmp123_;
- const gchar* _tmp124_;
- gchar* _tmp125_;
- GDestroyNotify _tmp126_;
- gint _tmp127_;
- sqlite3_stmt* _tmp128_;
- gint _tmp129_;
- sqlite3* _tmp133_;
- PhotoID _tmp134_ = {0};
-#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (photo_id != NULL);
-#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (new_filename != NULL);
-#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (editable_id != NULL);
-#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (develop_shotwell != NULL);
-#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (develop_camera_id != NULL);
-#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (develop_embedded_id != NULL);
-#line 497 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 497 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = photo_table_get_row (self, &_tmp0_);
-#line 497 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- original = _tmp1_;
-#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = database_table_db;
-#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = sqlite3_prepare_v2 (_tmp2_, "INSERT INTO PhotoTable (filename, width, height, filesize, " "timestamp, exposure_time, orientation, original_orientation, import_id" \
-", event_id, " "transformations, md5, thumbnail_md5, exif_md5, time_created, flags, ra" \
-"ting, " "file_format, title, editable_id, developer, develop_shotwell_id, devel" \
-"op_camera_id, " "develop_embedded_id, comment) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?," \
-" ?, ?, ?, ?)", -1, &_tmp3_, NULL);
-#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp3_;
-#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp4_;
-#line 507 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = res;
-#line 507 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 509 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = stmt;
-#line 509 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = g_strdup (new_filename);
-#line 509 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = g_free;
-#line 509 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp6_, 1, _tmp7_, -1, _tmp8_);
-#line 510 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 510 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = stmt;
-#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = original;
-#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = _tmp11_->master;
-#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = _tmp12_->dim;
-#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = _tmp13_.width;
-#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp10_, 2, _tmp14_);
-#line 512 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = res;
-#line 512 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK");
-#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = stmt;
-#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = original;
-#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = _tmp17_->master;
-#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = _tmp18_->dim;
-#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = _tmp19_.height;
-#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp16_, 3, _tmp20_);
-#line 514 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = res;
-#line 514 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp21_ == SQLITE_OK, "res == Sqlite.OK");
-#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = stmt;
-#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = original;
-#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = _tmp23_->master;
-#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = _tmp24_->filesize;
-#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp22_, 4, _tmp25_);
-#line 516 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = res;
-#line 516 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp26_ == SQLITE_OK, "res == Sqlite.OK");
-#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = stmt;
-#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = original;
-#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = _tmp28_->master;
-#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = _tmp29_->timestamp;
-#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp27_, 5, (gint64) _tmp30_);
-#line 518 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = res;
-#line 518 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp31_ == SQLITE_OK, "res == Sqlite.OK");
-#line 519 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = stmt;
-#line 519 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = original;
-#line 519 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = _tmp33_->exposure_time;
-#line 519 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp32_, 6, (gint64) _tmp34_);
-#line 520 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = res;
-#line 520 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp35_ == SQLITE_OK, "res == Sqlite.OK");
-#line 521 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = stmt;
-#line 521 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = original;
-#line 521 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = _tmp37_->orientation;
-#line 521 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp36_, 7, (gint) _tmp38_);
-#line 522 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = res;
-#line 522 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp39_ == SQLITE_OK, "res == Sqlite.OK");
-#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_ = stmt;
-#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp41_ = original;
-#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp42_ = _tmp41_->master;
-#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp43_ = _tmp42_->original_orientation;
-#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp40_, 8, (gint) _tmp43_);
-#line 524 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp44_ = res;
-#line 524 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp44_ == SQLITE_OK, "res == Sqlite.OK");
-#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp45_ = stmt;
-#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp46_ = original;
-#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp47_ = _tmp46_->import_id;
-#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp48_ = _tmp47_.id;
-#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp45_, 9, _tmp48_);
-#line 526 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp49_ = res;
-#line 526 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp49_ == SQLITE_OK, "res == Sqlite.OK");
-#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp50_ = stmt;
-#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp51_ = original;
-#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp52_ = _tmp51_->event_id;
-#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp53_ = _tmp52_.id;
-#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp50_, 10, _tmp53_);
-#line 528 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp54_ = res;
-#line 528 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp54_ == SQLITE_OK, "res == Sqlite.OK");
-#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp55_ = stmt;
-#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp56_ = original;
-#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp57_ = _tmp56_->transformations;
-#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp58_ = photo_table_unmarshall_all_transformations (_tmp57_);
-#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp59_ = g_free;
-#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp55_, 11, _tmp58_, -1, _tmp59_);
-#line 530 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp60_ = res;
-#line 530 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp60_ == SQLITE_OK, "res == Sqlite.OK");
-#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp61_ = stmt;
-#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp62_ = original;
-#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp63_ = _tmp62_->md5;
-#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp64_ = g_strdup (_tmp63_);
-#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp65_ = g_free;
-#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp61_, 12, _tmp64_, -1, _tmp65_);
-#line 532 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp66_ = res;
-#line 532 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp66_ == SQLITE_OK, "res == Sqlite.OK");
-#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp67_ = stmt;
-#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp68_ = original;
-#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp69_ = _tmp68_->thumbnail_md5;
-#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp70_ = g_strdup (_tmp69_);
-#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp71_ = g_free;
-#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp67_, 13, _tmp70_, -1, _tmp71_);
-#line 534 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp72_ = res;
-#line 534 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp72_ == SQLITE_OK, "res == Sqlite.OK");
-#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp73_ = stmt;
-#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp74_ = original;
-#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp75_ = _tmp74_->exif_md5;
-#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp76_ = g_strdup (_tmp75_);
-#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp77_ = g_free;
-#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp73_, 14, _tmp76_, -1, _tmp77_);
-#line 536 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp78_ = res;
-#line 536 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp78_ == SQLITE_OK, "res == Sqlite.OK");
-#line 537 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp79_ = stmt;
-#line 537 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp79_, 15, (gint64) now_sec ());
-#line 538 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp80_ = res;
-#line 538 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp80_ == SQLITE_OK, "res == Sqlite.OK");
-#line 539 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp81_ = stmt;
-#line 539 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp82_ = original;
-#line 539 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp83_ = _tmp82_->flags;
-#line 539 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp81_, 16, (gint64) _tmp83_);
-#line 540 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp84_ = res;
-#line 540 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp84_ == SQLITE_OK, "res == Sqlite.OK");
-#line 541 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp85_ = stmt;
-#line 541 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp86_ = original;
-#line 541 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp87_ = _tmp86_->rating;
-#line 541 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp85_, 17, (gint64) rating_serialize (_tmp87_));
-#line 542 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp88_ = res;
-#line 542 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp88_ == SQLITE_OK, "res == Sqlite.OK");
-#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp89_ = stmt;
-#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp90_ = original;
-#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp91_ = _tmp90_->master;
-#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp92_ = _tmp91_->file_format;
-#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp89_, 18, photo_file_format_serialize (_tmp92_));
-#line 544 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp93_ = res;
-#line 544 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp93_ == SQLITE_OK, "res == Sqlite.OK");
-#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp94_ = stmt;
-#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp95_ = original;
-#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp96_ = _tmp95_->title;
-#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp97_ = g_strdup (_tmp96_);
-#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp98_ = g_free;
-#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp94_, 19, _tmp97_, -1, _tmp98_);
-#line 546 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp99_ = res;
-#line 546 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp99_ == SQLITE_OK, "res == Sqlite.OK");
-#line 547 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp100_ = stmt;
-#line 547 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp101_ = *editable_id;
-#line 547 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp102_ = _tmp101_.id;
-#line 547 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp100_, 20, _tmp102_);
-#line 548 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp103_ = res;
-#line 548 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp103_ == SQLITE_OK, "res == Sqlite.OK");
-#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp104_ = stmt;
-#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp105_ = original;
-#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp106_ = _tmp105_->developer;
-#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp107_ = raw_developer_to_string (_tmp106_);
-#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp108_ = g_free;
-#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp104_, 21, _tmp107_, -1, _tmp108_);
-#line 551 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp109_ = res;
-#line 551 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp109_ == SQLITE_OK, "res == Sqlite.OK");
-#line 552 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp110_ = stmt;
-#line 552 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp111_ = *develop_shotwell;
-#line 552 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp112_ = _tmp111_.id;
-#line 552 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp110_, 22, _tmp112_);
-#line 553 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp113_ = res;
-#line 553 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp113_ == SQLITE_OK, "res == Sqlite.OK");
-#line 554 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp114_ = stmt;
-#line 554 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp115_ = *develop_camera_id;
-#line 554 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp116_ = _tmp115_.id;
-#line 554 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp114_, 23, _tmp116_);
-#line 555 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp117_ = res;
-#line 555 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp117_ == SQLITE_OK, "res == Sqlite.OK");
-#line 556 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp118_ = stmt;
-#line 556 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp119_ = *develop_embedded_id;
-#line 556 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp120_ = _tmp119_.id;
-#line 556 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp118_, 24, _tmp120_);
-#line 557 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp121_ = res;
-#line 557 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp121_ == SQLITE_OK, "res == Sqlite.OK");
-#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp122_ = stmt;
-#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp123_ = original;
-#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp124_ = _tmp123_->comment;
-#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp125_ = g_strdup (_tmp124_);
-#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp126_ = g_free;
-#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp122_, 25, _tmp125_, -1, _tmp126_);
-#line 559 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp127_ = res;
-#line 559 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp127_ == SQLITE_OK, "res == Sqlite.OK");
-#line 561 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp128_ = stmt;
-#line 561 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp128_);
-#line 562 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp129_ = res;
-#line 562 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp129_ != SQLITE_DONE) {
-#line 4021 "PhotoTable.c"
- gint _tmp130_;
- PhotoID _tmp132_ = {0};
-#line 563 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp130_ = res;
-#line 563 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp130_ != SQLITE_CONSTRAINT) {
-#line 4028 "PhotoTable.c"
- gint _tmp131_;
-#line 564 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp131_ = res;
-#line 564 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("duplicate", _tmp131_);
-#line 4034 "PhotoTable.c"
- }
-#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_id_init (&_tmp132_, PHOTO_ID_INVALID);
-#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *result = _tmp132_;
-#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _photo_row_unref0 (original);
-#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4046 "PhotoTable.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp133_ = database_table_db;
-#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_id_init (&_tmp134_, sqlite3_last_insert_rowid (_tmp133_));
-#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *result = _tmp134_;
-#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _photo_row_unref0 (original);
-#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4060 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_set_title (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_title)
-{
- gboolean result = FALSE;
- const gchar* _tmp0_ = NULL;
- PhotoID _tmp1_;
- gint64 _tmp2_;
-#line 572 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 572 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (new_title != NULL) {
-#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = new_title;
-#line 4081 "PhotoTable.c"
- } else {
-#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = "";
-#line 4085 "PhotoTable.c"
- }
-#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = *photo_id;
-#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "title", _tmp0_);
-#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4095 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_set_comment (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* new_comment)
-{
- gboolean result = FALSE;
- const gchar* _tmp0_ = NULL;
- PhotoID _tmp1_;
- gint64 _tmp2_;
-#line 576 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 576 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (new_comment != NULL) {
-#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = new_comment;
-#line 4116 "PhotoTable.c"
- } else {
-#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = "";
-#line 4120 "PhotoTable.c"
- }
-#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = *photo_id;
-#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "comment", _tmp0_);
-#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4130 "PhotoTable.c"
-}
-
-
-void
-photo_table_set_filepath (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* filepath,
- GError** error)
-{
- PhotoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 580 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 580 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (photo_id != NULL);
-#line 580 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (filepath != NULL);
-#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 581 "/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_, "filename", filepath, &_inner_error_);
-#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4163 "PhotoTable.c"
- } else {
-#line 581 "/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 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4171 "PhotoTable.c"
- }
- }
-}
-
-
-void
-photo_table_update_timestamp (PhotoTable* self,
- PhotoID* photo_id,
- time_t timestamp,
- GError** error)
-{
- PhotoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 584 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 584 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (photo_id != NULL);
-#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 585 "/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) timestamp, &_inner_error_);
-#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4204 "PhotoTable.c"
- } else {
-#line 585 "/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 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4212 "PhotoTable.c"
- }
- }
-}
-
-
-gboolean
-photo_table_set_exposure_time (PhotoTable* self,
- PhotoID* photo_id,
- time_t time)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_;
- gint64 _tmp1_;
-#line 588 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 588 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 589 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 589 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 589 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_int64_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "exposure_time", (gint64) time);
-#line 589 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4238 "PhotoTable.c"
-}
-
-
-void
-photo_table_set_import_id (PhotoTable* self,
- PhotoID* photo_id,
- ImportID* import_id,
- GError** error)
-{
- PhotoID _tmp0_;
- gint64 _tmp1_;
- ImportID _tmp2_;
- gint64 _tmp3_;
- GError * _inner_error_ = NULL;
-#line 592 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 592 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (photo_id != NULL);
-#line 592 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (import_id != NULL);
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = *import_id;
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _tmp2_.id;
-#line 593 "/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_, "import_id", _tmp3_, &_inner_error_);
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4277 "PhotoTable.c"
- } else {
-#line 593 "/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 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4285 "PhotoTable.c"
- }
- }
-}
-
-
-gboolean
-photo_table_remove_by_file (PhotoTable* self,
- GFile* file)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gchar* _tmp5_;
- GDestroyNotify _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
-#line 596 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 596 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "DELETE FROM PhotoTable WHERE filename=?", -1, &_tmp1_, NULL);
-#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 599 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 599 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 601 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 601 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = g_file_get_path (file);
-#line 601 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = g_free;
-#line 601 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_);
-#line 602 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 602 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 604 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = stmt;
-#line 604 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 605 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 605 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp9_ != SQLITE_DONE) {
-#line 4346 "PhotoTable.c"
- gint _tmp10_;
-#line 606 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = res;
-#line 606 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_warning ("remove", _tmp10_);
-#line 608 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 608 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 608 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4358 "PhotoTable.c"
- }
-#line 611 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = TRUE;
-#line 611 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 611 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4366 "PhotoTable.c"
-}
-
-
-void
-photo_table_remove (PhotoTable* self,
- PhotoID* photo_id,
- GError** error)
-{
- PhotoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 614 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 614 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (photo_id != NULL);
-#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 615 "/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 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4396 "PhotoTable.c"
- } else {
-#line 615 "/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 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 4404 "PhotoTable.c"
- }
- }
-}
-
-
-GeeArrayList*
-photo_table_get_photos (PhotoTable* self)
-{
- GeeArrayList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- GeeArrayList* photo_ids = NULL;
- GeeArrayList* _tmp4_;
-#line 618 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL);
-#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM PhotoTable", -1, &_tmp1_, NULL);
-#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 621 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 621 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 623 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = gee_array_list_new (TYPE_PHOTO_ID, (GBoxedCopyFunc) photo_id_dup, (GDestroyNotify) photo_id_free, NULL, NULL, NULL);
-#line 623 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_ids = _tmp4_;
-#line 4442 "PhotoTable.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 624 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = TRUE;
-#line 624 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 4449 "PhotoTable.c"
- sqlite3_stmt* _tmp6_;
- gint _tmp7_;
- GeeArrayList* _tmp10_;
- sqlite3_stmt* _tmp11_;
- PhotoID _tmp12_ = {0};
-#line 624 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!_tmp5_) {
-#line 4457 "PhotoTable.c"
- }
-#line 624 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = FALSE;
-#line 625 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = stmt;
-#line 625 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp6_);
-#line 626 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 626 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp7_ == SQLITE_DONE) {
-#line 627 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 4471 "PhotoTable.c"
- } else {
- gint _tmp8_;
-#line 628 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = res;
-#line 628 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp8_ != SQLITE_ROW) {
-#line 4478 "PhotoTable.c"
- gint _tmp9_;
-#line 629 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 629 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("get_photos", _tmp9_);
-#line 631 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 4486 "PhotoTable.c"
- }
- }
-#line 634 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = photo_ids;
-#line 634 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = stmt;
-#line 634 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_id_init (&_tmp12_, sqlite3_column_int64 (_tmp11_, 0));
-#line 634 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp12_);
-#line 4497 "PhotoTable.c"
- }
- }
-#line 637 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = photo_ids;
-#line 637 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 637 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4506 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_set_orientation (PhotoTable* self,
- PhotoID* photo_id,
- Orientation orientation)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_;
- gint64 _tmp1_;
-#line 640 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 640 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 641 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 641 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 641 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_int_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "orientation", (gint) orientation);
-#line 641 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4530 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_replace_flags (PhotoTable* self,
- PhotoID* photo_id,
- guint64 flags)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_;
- gint64 _tmp1_;
-#line 644 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 644 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 645 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 645 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 645 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_int64_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "flags", (gint64) flags);
-#line 645 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4554 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_set_rating (PhotoTable* self,
- PhotoID* photo_id,
- Rating rating)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_;
- gint64 _tmp1_;
-#line 648 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 648 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 649 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 649 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 649 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_int_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "rating", rating_serialize (rating));
-#line 649 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4578 "PhotoTable.c"
-}
-
-
-gint
-photo_table_get_event_photo_count (PhotoTable* self,
- EventID* event_id)
-{
- gint result = 0;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- EventID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- gint count = 0;
-#line 652 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), 0);
-#line 652 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (event_id != NULL, 0);
-#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM PhotoTable WHERE event_id = ?", -1, &_tmp1_, NULL);
-#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 655 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 655 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 657 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 657 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = *event_id;
-#line 657 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 657 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 658 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 658 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 660 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- count = 0;
-#line 4630 "PhotoTable.c"
- {
- gboolean _tmp8_ = FALSE;
-#line 661 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = TRUE;
-#line 661 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 4637 "PhotoTable.c"
- sqlite3_stmt* _tmp9_;
- gint _tmp10_;
- gint _tmp13_;
-#line 661 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!_tmp8_) {
-#line 4643 "PhotoTable.c"
- }
-#line 661 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = FALSE;
-#line 662 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = stmt;
-#line 662 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp9_);
-#line 663 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = res;
-#line 663 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp10_ == SQLITE_DONE) {
-#line 664 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 4657 "PhotoTable.c"
- } else {
- gint _tmp11_;
-#line 665 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = res;
-#line 665 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp11_ != SQLITE_ROW) {
-#line 4664 "PhotoTable.c"
- gint _tmp12_;
-#line 666 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = res;
-#line 666 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("get_event_photo_count", _tmp12_);
-#line 668 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 4672 "PhotoTable.c"
- }
- }
-#line 671 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = count;
-#line 671 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- count = _tmp13_ + 1;
-#line 4679 "PhotoTable.c"
- }
- }
-#line 674 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = count;
-#line 674 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 674 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4688 "PhotoTable.c"
-}
-
-
-GeeArrayList*
-photo_table_get_event_source_ids (PhotoTable* self,
- EventID* event_id)
-{
- GeeArrayList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- EventID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- GeeArrayList* _result_ = NULL;
- GeeArrayList* _tmp8_;
-#line 677 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL);
-#line 677 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM PhotoTable WHERE event_id = ?", -1, &_tmp1_, NULL);
-#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 680 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 680 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 682 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 682 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = *event_id;
-#line 682 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 682 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 683 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 683 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 685 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 685 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _result_ = _tmp8_;
-#line 4743 "PhotoTable.c"
- {
- gboolean _tmp9_ = FALSE;
-#line 686 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = TRUE;
-#line 686 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 4750 "PhotoTable.c"
- sqlite3_stmt* _tmp10_;
- gint _tmp11_;
- GeeArrayList* _tmp14_;
- sqlite3_stmt* _tmp15_;
- PhotoID _tmp16_ = {0};
- gchar* _tmp17_;
- gchar* _tmp18_;
-#line 686 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!_tmp9_) {
-#line 4760 "PhotoTable.c"
- }
-#line 686 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = FALSE;
-#line 687 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = stmt;
-#line 687 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp10_);
-#line 688 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = res;
-#line 688 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp11_ == SQLITE_DONE) {
-#line 689 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 4774 "PhotoTable.c"
- } else {
- gint _tmp12_;
-#line 690 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = res;
-#line 690 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp12_ != SQLITE_ROW) {
-#line 4781 "PhotoTable.c"
- gint _tmp13_;
-#line 691 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = res;
-#line 691 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("get_event_source_ids", _tmp13_);
-#line 693 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 4789 "PhotoTable.c"
- }
- }
-#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = _result_;
-#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = stmt;
-#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_id_init (&_tmp16_, sqlite3_column_int64 (_tmp15_, 0));
-#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = photo_id_upgrade_photo_id_to_source_id (&_tmp16_);
-#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = _tmp17_;
-#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_);
-#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp18_);
-#line 4806 "PhotoTable.c"
- }
- }
-#line 699 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _result_;
-#line 699 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 699 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4815 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_event_has_photos (PhotoTable* self,
- EventID* event_id)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- EventID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
-#line 702 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 702 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM PhotoTable WHERE event_id = ? LIMIT 1", -1, &_tmp1_, NULL);
-#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 705 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 705 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 707 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 707 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = *event_id;
-#line 707 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 707 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 708 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 708 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 710 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = stmt;
-#line 710 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 711 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 711 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp9_ == SQLITE_DONE) {
-#line 712 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 712 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 712 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4880 "PhotoTable.c"
- } else {
- gint _tmp10_;
-#line 713 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = res;
-#line 713 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp10_ != SQLITE_ROW) {
-#line 4887 "PhotoTable.c"
- gint _tmp11_;
-#line 714 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = res;
-#line 714 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("event_has_photos", _tmp11_);
-#line 716 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 716 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 716 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4899 "PhotoTable.c"
- }
- }
-#line 719 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = TRUE;
-#line 719 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 719 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4908 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_drop_event (PhotoTable* self,
- EventID* event_id)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* _tmp6_;
- EventID _tmp7_;
- gint64 _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- gint _tmp11_;
-#line 722 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 722 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE PhotoTable SET event_id = ? WHERE event_id = ?", -1, &_tmp1_, NULL);
-#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 725 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 725 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 727 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 727 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, EVENT_ID_INVALID);
-#line 728 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = res;
-#line 728 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 729 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = stmt;
-#line 729 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = *event_id;
-#line 729 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = _tmp7_.id;
-#line 729 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp6_, 2, _tmp8_);
-#line 730 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 730 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 732 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = stmt;
-#line 732 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp10_);
-#line 733 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = res;
-#line 733 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp11_ != SQLITE_DONE) {
-#line 4977 "PhotoTable.c"
- gint _tmp12_;
-#line 734 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = res;
-#line 734 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("drop_event", _tmp12_);
-#line 736 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 736 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 736 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4989 "PhotoTable.c"
- }
-#line 739 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = TRUE;
-#line 739 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 739 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 4997 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_set_event (PhotoTable* self,
- PhotoID* photo_id,
- EventID* event_id)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_;
- gint64 _tmp1_;
- EventID _tmp2_;
- gint64 _tmp3_;
-#line 742 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 742 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 742 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = *event_id;
-#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _tmp2_.id;
-#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_int64_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "event_id", _tmp3_);
-#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5029 "PhotoTable.c"
-}
-
-
-static gchar*
-photo_table_get_raw_transformations (PhotoTable* self,
- PhotoID* photo_id)
-{
- gchar* result = NULL;
- sqlite3_stmt* stmt = NULL;
- PhotoID _tmp0_;
- gint64 _tmp1_;
- sqlite3_stmt* _tmp2_ = NULL;
- gboolean _tmp3_;
- gchar* trans = NULL;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- gboolean _tmp7_ = FALSE;
- const gchar* _tmp8_;
-#line 746 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL);
-#line 746 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, NULL);
-#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "transformations", &_tmp2_);
-#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp2_;
-#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!_tmp3_) {
-#line 749 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = NULL;
-#line 749 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 749 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5071 "PhotoTable.c"
- }
-#line 751 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 751 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = sqlite3_column_text (_tmp4_, 0);
-#line 751 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 751 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- trans = _tmp6_;
-#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = trans;
-#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp8_ == NULL) {
-#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = TRUE;
-#line 5087 "PhotoTable.c"
- } else {
- const gchar* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = trans;
-#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = strlen (_tmp9_);
-#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = _tmp10_;
-#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = _tmp11_ == 0;
-#line 5100 "PhotoTable.c"
- }
-#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp7_) {
-#line 753 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = NULL;
-#line 753 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 753 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 753 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5112 "PhotoTable.c"
- }
-#line 755 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = trans;
-#line 755 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 755 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5120 "PhotoTable.c"
-}
-
-
-static gboolean
-photo_table_set_raw_transformations (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* trans)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_;
- gint64 _tmp1_;
-#line 758 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 758 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 758 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (trans != NULL, FALSE);
-#line 759 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 759 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 759 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "transformations", trans);
-#line 759 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5146 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_set_transformation_state (PhotoTable* self,
- PhotoID* photo_id,
- Orientation orientation,
- GeeHashMap* transformations)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* _tmp6_;
- gchar* _tmp7_;
- GDestroyNotify _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- PhotoID _tmp11_;
- gint64 _tmp12_;
- gint _tmp13_;
- sqlite3_stmt* _tmp14_;
- gint _tmp15_;
-#line 762 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 762 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 762 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail ((transformations == NULL) || GEE_IS_HASH_MAP (transformations), FALSE);
-#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE PhotoTable SET orientation = ?, transformations = ? WHERE id = " \
-"?", -1, &_tmp1_, NULL);
-#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 767 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 767 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 769 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 769 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp4_, 1, (gint) orientation);
-#line 770 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = res;
-#line 770 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 771 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = stmt;
-#line 771 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = photo_table_unmarshall_all_transformations (transformations);
-#line 771 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = g_free;
-#line 771 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp6_, 2, _tmp7_, -1, _tmp8_);
-#line 772 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 772 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 773 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = stmt;
-#line 773 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = *photo_id;
-#line 773 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = _tmp11_.id;
-#line 773 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp10_, 3, _tmp12_);
-#line 774 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = res;
-#line 774 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK");
-#line 776 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = stmt;
-#line 776 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp14_);
-#line 777 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = res;
-#line 777 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp15_ != SQLITE_DONE) {
-#line 5235 "PhotoTable.c"
- gint _tmp16_;
-#line 778 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = res;
-#line 778 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("set_transformation_state", _tmp16_);
-#line 780 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 780 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 780 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5247 "PhotoTable.c"
- }
-#line 783 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = TRUE;
-#line 783 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 783 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5255 "PhotoTable.c"
-}
-
-
-GeeHashMap*
-photo_table_marshall_all_transformations (const gchar* trans)
-{
- GeeHashMap* result = NULL;
- gboolean _tmp0_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (trans == NULL) {
-#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = TRUE;
-#line 5269 "PhotoTable.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = strlen (trans);
-#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = _tmp1_;
-#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = _tmp2_ == 0;
-#line 5279 "PhotoTable.c"
- }
-#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp0_) {
-#line 788 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = NULL;
-#line 788 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5287 "PhotoTable.c"
- }
- {
- GKeyFile* keyfile = NULL;
- GKeyFile* _tmp3_;
- gboolean _tmp4_ = FALSE;
- GKeyFile* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- GeeHashMap* map = NULL;
- GeeHashMap* _tmp8_;
- gchar** objects = NULL;
- GKeyFile* _tmp9_;
- gsize _tmp10_;
- gchar** _tmp11_;
- gint objects_length1;
- gint _objects_size_;
- gchar** _tmp12_;
- gint _tmp12__length1;
-#line 791 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = g_key_file_new ();
-#line 791 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keyfile = _tmp3_;
-#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = keyfile;
-#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = strlen (trans);
-#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = _tmp6_;
-#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = g_key_file_load_from_data (_tmp5_, trans, (gsize) _tmp7_, G_KEY_FILE_NONE, &_inner_error_);
-#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 5322 "PhotoTable.c"
- goto __catch17_g_error;
- }
-#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!_tmp4_) {
-#line 793 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = NULL;
-#line 793 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 793 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5333 "PhotoTable.c"
- }
-#line 795 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, (GDestroyNotify) key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 795 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- map = _tmp8_;
-#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = keyfile;
-#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = g_key_file_get_groups (_tmp9_, &_tmp10_);
-#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- objects = _tmp11_;
-#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- objects_length1 = _tmp10_;
-#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _objects_size_ = objects_length1;
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = objects;
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12__length1 = objects_length1;
-#line 5353 "PhotoTable.c"
- {
- gchar** object_collection = NULL;
- gint object_collection_length1 = 0;
- gint _object_collection_size_ = 0;
- gint object_it = 0;
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- object_collection = _tmp12_;
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- object_collection_length1 = _tmp12__length1;
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- for (object_it = 0; object_it < _tmp12__length1; object_it = object_it + 1) {
-#line 5365 "PhotoTable.c"
- gchar* _tmp13_;
- gchar* object = NULL;
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = g_strdup (object_collection[object_it]);
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- object = _tmp13_;
-#line 5372 "PhotoTable.c"
- {
- gchar** keys = NULL;
- GKeyFile* _tmp14_;
- const gchar* _tmp15_;
- gsize _tmp16_;
- gchar** _tmp17_;
- gint keys_length1;
- gint _keys_size_;
- gboolean _tmp18_ = FALSE;
- gchar** _tmp19_;
- gint _tmp19__length1;
- KeyValueMap* key_map = NULL;
- const gchar* _tmp21_;
- KeyValueMap* _tmp22_;
- GeeHashMap* _tmp38_;
- const gchar* _tmp39_;
- KeyValueMap* _tmp40_;
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = keyfile;
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = object;
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = g_key_file_get_keys (_tmp14_, _tmp15_, &_tmp16_, &_inner_error_);
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keys = _tmp17_;
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keys_length1 = _tmp16_;
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _keys_size_ = keys_length1;
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (object);
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL);
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (map);
-#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 5412 "PhotoTable.c"
- goto __catch17_g_error;
- }
-#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = keys;
-#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19__length1 = keys_length1;
-#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp19_ == NULL) {
-#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = TRUE;
-#line 5423 "PhotoTable.c"
- } else {
- gchar** _tmp20_;
- gint _tmp20__length1;
-#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = keys;
-#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20__length1 = keys_length1;
-#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = _tmp20__length1 == 0;
-#line 5433 "PhotoTable.c"
- }
-#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp18_) {
-#line 801 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
-#line 801 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (object);
-#line 801 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- continue;
-#line 5443 "PhotoTable.c"
- }
-#line 803 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = object;
-#line 803 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = key_value_map_new (_tmp21_);
-#line 803 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- key_map = _tmp22_;
-#line 5451 "PhotoTable.c"
- {
- gint ctr = 0;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- ctr = 0;
-#line 5456 "PhotoTable.c"
- {
- gboolean _tmp23_ = FALSE;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = TRUE;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 5463 "PhotoTable.c"
- gint _tmp25_;
- gchar** _tmp26_;
- gint _tmp26__length1;
- gchar* _tmp27_ = NULL;
- GKeyFile* _tmp28_;
- const gchar* _tmp29_;
- gchar** _tmp30_;
- gint _tmp30__length1;
- gint _tmp31_;
- const gchar* _tmp32_;
- gchar* _tmp33_;
- KeyValueMap* _tmp34_;
- gchar** _tmp35_;
- gint _tmp35__length1;
- gint _tmp36_;
- const gchar* _tmp37_;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!_tmp23_) {
-#line 5482 "PhotoTable.c"
- gint _tmp24_;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = ctr;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- ctr = _tmp24_ + 1;
-#line 5488 "PhotoTable.c"
- }
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = FALSE;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = ctr;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = keys;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26__length1 = keys_length1;
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!(_tmp25_ < _tmp26__length1)) {
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 5502 "PhotoTable.c"
- }
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = keyfile;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = object;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = keys;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30__length1 = keys_length1;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = ctr;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = _tmp30_[_tmp31_];
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = g_key_file_get_string (_tmp28_, _tmp29_, _tmp32_, &_inner_error_);
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = _tmp33_;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _key_value_map_unref0 (key_map);
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (object);
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL);
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (map);
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 5534 "PhotoTable.c"
- goto __catch17_g_error;
- }
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = key_map;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = keys;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35__length1 = keys_length1;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = ctr;
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = _tmp35_[_tmp36_];
-#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- key_value_map_set_string (_tmp34_, _tmp37_, _tmp27_);
-#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp27_);
-#line 5551 "PhotoTable.c"
- }
- }
- }
-#line 807 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = map;
-#line 807 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = object;
-#line 807 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_ = key_map;
-#line 807 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp39_, _tmp40_);
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _key_value_map_unref0 (key_map);
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
-#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (object);
-#line 5569 "PhotoTable.c"
- }
- }
- }
-#line 810 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = map;
-#line 810 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL);
-#line 810 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 810 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5581 "PhotoTable.c"
- }
- goto __finally17;
- __catch17_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp41_;
-#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- err = _inner_error_;
-#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _inner_error_ = NULL;
-#line 812 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp41_ = err->message;
-#line 812 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_error ("PhotoTable.vala:812: %s", _tmp41_);
-#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_error_free0 (err);
-#line 5598 "PhotoTable.c"
- }
- __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"
- g_clear_error (&_inner_error_);
-#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return NULL;
-#line 5607 "PhotoTable.c"
-}
-
-
-gchar*
-photo_table_unmarshall_all_transformations (GeeHashMap* transformations)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- GKeyFile* keyfile = NULL;
- GKeyFile* _tmp6_;
- gsize length = 0UL;
- gchar* unmarshalled = NULL;
- GKeyFile* _tmp33_;
- gsize _tmp34_ = 0UL;
- gchar* _tmp35_;
- const gchar* _tmp36_;
- const gchar* _tmp37_;
- gint _tmp38_;
- gint _tmp39_;
-#line 816 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail ((transformations == NULL) || GEE_IS_HASH_MAP (transformations), NULL);
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (transformations == NULL) {
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = TRUE;
-#line 5633 "PhotoTable.c"
- } else {
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (transformations, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = _tmp1_;
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _tmp2_;
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = _tmp4_;
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = _tmp5_ == 0;
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (_tmp3_);
-#line 5654 "PhotoTable.c"
- }
-#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp0_) {
-#line 818 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = NULL;
-#line 818 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5662 "PhotoTable.c"
- }
-#line 820 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = g_key_file_new ();
-#line 820 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keyfile = _tmp6_;
-#line 5668 "PhotoTable.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp7_;
- GeeSet* _tmp8_;
- GeeSet* _tmp9_;
- GeeIterator* _tmp10_;
- GeeIterator* _tmp11_;
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (transformations, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = _tmp7_;
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = _tmp8_;
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = _tmp10_;
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (_tmp9_);
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _object_it = _tmp11_;
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 5692 "PhotoTable.c"
- GeeIterator* _tmp12_;
- gchar* object = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- KeyValueMap* map = NULL;
- const gchar* _tmp15_;
- gpointer _tmp16_;
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = _object_it;
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 5706 "PhotoTable.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = _object_it;
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- object = (gchar*) _tmp14_;
-#line 823 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = object;
-#line 823 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (transformations, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_);
-#line 823 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- map = (KeyValueMap*) _tmp16_;
-#line 5720 "PhotoTable.c"
- {
- GeeIterator* _key_it = NULL;
- KeyValueMap* _tmp17_;
- GeeSet* _tmp18_;
- GeeSet* _tmp19_;
- GeeIterator* _tmp20_;
- GeeIterator* _tmp21_;
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = map;
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = key_value_map_get_keys (_tmp17_);
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = _tmp18_;
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = _tmp20_;
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (_tmp19_);
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _key_it = _tmp21_;
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 5744 "PhotoTable.c"
- GeeIterator* _tmp22_;
- gchar* key = NULL;
- GeeIterator* _tmp23_;
- gpointer _tmp24_;
- gchar* value = NULL;
- KeyValueMap* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
- const gchar* _tmp28_;
- GKeyFile* _tmp29_;
- const gchar* _tmp30_;
- const gchar* _tmp31_;
- const gchar* _tmp32_;
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = _key_it;
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!gee_iterator_next (_tmp22_)) {
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 5764 "PhotoTable.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = _key_it;
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = gee_iterator_get (_tmp23_);
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- key = (gchar*) _tmp24_;
-#line 826 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = map;
-#line 826 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = key;
-#line 826 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = key_value_map_get_string (_tmp25_, _tmp26_, NULL);
-#line 826 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value = _tmp27_;
-#line 827 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = value;
-#line 827 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp28_ != NULL, "value != null");
-#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = keyfile;
-#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = object;
-#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = key;
-#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = value;
-#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_key_file_set_string (_tmp29_, _tmp30_, _tmp31_, _tmp32_);
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (value);
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (key);
-#line 5798 "PhotoTable.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (_key_it);
-#line 5802 "PhotoTable.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _key_value_map_unref0 (map);
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (object);
-#line 5808 "PhotoTable.c"
- }
-#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (_object_it);
-#line 5812 "PhotoTable.c"
- }
-#line 834 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = keyfile;
-#line 834 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = g_key_file_to_data (_tmp33_, &_tmp34_, NULL);
-#line 834 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- length = _tmp34_;
-#line 834 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- unmarshalled = _tmp35_;
-#line 835 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = unmarshalled;
-#line 835 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp36_ != NULL, "unmarshalled != null");
-#line 836 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = unmarshalled;
-#line 836 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = strlen (_tmp37_);
-#line 836 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = _tmp38_;
-#line 836 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp39_ > 0, "unmarshalled.length > 0");
-#line 838 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = unmarshalled;
-#line 838 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 838 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5840 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_set_transformation (PhotoTable* self,
- PhotoID* photo_id,
- KeyValueMap* map)
-{
- gboolean result = FALSE;
- gchar* trans = NULL;
- PhotoID _tmp0_;
- gchar* _tmp1_;
- PhotoID _tmp33_;
- const gchar* _tmp34_;
- GError * _inner_error_ = NULL;
-#line 841 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 841 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 841 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_KEY_VALUE_MAP (map), FALSE);
-#line 842 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 842 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = photo_table_get_raw_transformations (self, &_tmp0_);
-#line 842 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- trans = _tmp1_;
-#line 5868 "PhotoTable.c"
- {
- GKeyFile* keyfile = NULL;
- GKeyFile* _tmp2_;
- const gchar* _tmp3_;
- GeeSet* keys = NULL;
- GeeSet* _tmp10_;
- gsize length = 0UL;
- GKeyFile* _tmp24_;
- gsize _tmp25_ = 0UL;
- gchar* _tmp26_;
- const gchar* _tmp27_;
- const gchar* _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
-#line 845 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = g_key_file_new ();
-#line 845 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keyfile = _tmp2_;
-#line 846 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = trans;
-#line 846 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp3_ != NULL) {
-#line 5891 "PhotoTable.c"
- gboolean _tmp4_ = FALSE;
- GKeyFile* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = keyfile;
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = trans;
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = trans;
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = strlen (_tmp7_);
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = _tmp8_;
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = g_key_file_load_from_data (_tmp5_, _tmp6_, (gsize) _tmp9_, G_KEY_FILE_NONE, &_inner_error_);
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 5914 "PhotoTable.c"
- goto __catch18_g_error;
- }
-#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!_tmp4_) {
-#line 848 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 848 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 848 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 848 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 5927 "PhotoTable.c"
- }
- }
-#line 851 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = key_value_map_get_keys (map);
-#line 851 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keys = _tmp10_;
-#line 5934 "PhotoTable.c"
- {
- GeeIterator* _key_it = NULL;
- GeeSet* _tmp11_;
- GeeIterator* _tmp12_;
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = keys;
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _key_it = _tmp12_;
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 5947 "PhotoTable.c"
- GeeIterator* _tmp13_;
- gchar* key = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
- gchar* value = NULL;
- const gchar* _tmp16_;
- gchar* _tmp17_;
- const gchar* _tmp18_;
- GKeyFile* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- const gchar* _tmp22_;
- const gchar* _tmp23_;
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = _key_it;
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!gee_iterator_next (_tmp13_)) {
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 5967 "PhotoTable.c"
- }
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = _key_it;
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- key = (gchar*) _tmp15_;
-#line 853 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = key;
-#line 853 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = key_value_map_get_string (map, _tmp16_, NULL);
-#line 853 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value = _tmp17_;
-#line 854 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = value;
-#line 854 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp18_ != NULL, "value != null");
-#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = keyfile;
-#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = key_value_map_get_group (map);
-#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = _tmp20_;
-#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = key;
-#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = value;
-#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_key_file_set_string (_tmp19_, _tmp21_, _tmp22_, _tmp23_);
-#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp21_);
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (value);
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (key);
-#line 6003 "PhotoTable.c"
- }
-#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (_key_it);
-#line 6007 "PhotoTable.c"
- }
-#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = keyfile;
-#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = g_key_file_to_data (_tmp24_, &_tmp25_, NULL);
-#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- length = _tmp25_;
-#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- trans = _tmp26_;
-#line 861 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = trans;
-#line 861 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp27_ != NULL, "trans != null");
-#line 862 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = trans;
-#line 862 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = strlen (_tmp28_);
-#line 862 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = _tmp29_;
-#line 862 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp30_ > 0, "trans.length > 0");
-#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_object_unref0 (keys);
-#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 6035 "PhotoTable.c"
- }
- goto __finally18;
- __catch18_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp31_;
-#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- err = _inner_error_;
-#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _inner_error_ = NULL;
-#line 864 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = err->message;
-#line 864 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_error ("PhotoTable.vala:864: %s", _tmp31_);
-#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_error_free0 (err);
-#line 6052 "PhotoTable.c"
- }
- __finally18:
-#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6057 "PhotoTable.c"
- gboolean _tmp32_ = FALSE;
-#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 844 "/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 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return _tmp32_;
-#line 6067 "PhotoTable.c"
- }
-#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = *photo_id;
-#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = trans;
-#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = photo_table_set_raw_transformations (self, &_tmp33_, _tmp34_);
-#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6079 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_remove_transformation (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* object)
-{
- gboolean result = FALSE;
- gchar* trans = NULL;
- PhotoID _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- PhotoID _tmp18_;
- const gchar* _tmp19_;
- GError * _inner_error_ = NULL;
-#line 870 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 870 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 870 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (object != NULL, FALSE);
-#line 871 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 871 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = photo_table_get_raw_transformations (self, &_tmp0_);
-#line 871 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- trans = _tmp1_;
-#line 872 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = trans;
-#line 872 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp2_ == NULL) {
-#line 873 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = TRUE;
-#line 873 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 873 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6118 "PhotoTable.c"
- }
- {
- GKeyFile* keyfile = NULL;
- GKeyFile* _tmp3_;
- gboolean _tmp4_ = FALSE;
- GKeyFile* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- GKeyFile* _tmp10_;
- GKeyFile* _tmp11_;
- gsize length = 0UL;
- GKeyFile* _tmp12_;
- gsize _tmp13_ = 0UL;
- gchar* _tmp14_;
- const gchar* _tmp15_;
-#line 876 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = g_key_file_new ();
-#line 876 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- keyfile = _tmp3_;
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = keyfile;
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = trans;
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = trans;
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = strlen (_tmp7_);
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = _tmp8_;
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = g_key_file_load_from_data (_tmp5_, _tmp6_, (gsize) _tmp9_, G_KEY_FILE_NONE, &_inner_error_);
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 6156 "PhotoTable.c"
- goto __catch19_g_error;
- }
-#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!_tmp4_) {
-#line 878 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 878 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 878 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 878 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6169 "PhotoTable.c"
- }
-#line 880 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = keyfile;
-#line 880 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!g_key_file_has_group (_tmp10_, object)) {
-#line 881 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = TRUE;
-#line 881 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 881 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 881 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6183 "PhotoTable.c"
- }
-#line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = keyfile;
-#line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_key_file_remove_group (_tmp11_, object, &_inner_error_);
-#line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 6193 "PhotoTable.c"
- goto __catch19_g_error;
- }
-#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = keyfile;
-#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = g_key_file_to_data (_tmp12_, &_tmp13_, NULL);
-#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- length = _tmp13_;
-#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- trans = _tmp14_;
-#line 887 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = trans;
-#line 887 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp15_ != NULL, "trans != null");
-#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_key_file_unref0 (keyfile);
-#line 6212 "PhotoTable.c"
- }
- goto __finally19;
- __catch19_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp16_;
-#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- err = _inner_error_;
-#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _inner_error_ = NULL;
-#line 889 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = err->message;
-#line 889 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_error ("PhotoTable.vala:889: %s", _tmp16_);
-#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_error_free0 (err);
-#line 6229 "PhotoTable.c"
- }
- __finally19:
-#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6234 "PhotoTable.c"
- gboolean _tmp17_ = FALSE;
-#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 875 "/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 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return _tmp17_;
-#line 6244 "PhotoTable.c"
- }
-#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = *photo_id;
-#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = trans;
-#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = photo_table_set_raw_transformations (self, &_tmp18_, _tmp19_);
-#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (trans);
-#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6256 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_remove_all_transformations (PhotoTable* self,
- PhotoID* photo_id)
-{
- gboolean result = FALSE;
- PhotoID _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gboolean _tmp3_;
- PhotoID _tmp4_;
- gint64 _tmp5_;
-#line 895 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE);
-#line 895 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (photo_id != NULL, FALSE);
-#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = *photo_id;
-#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = photo_table_get_raw_transformations (self, &_tmp0_);
-#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = _tmp1_;
-#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _tmp2_ == NULL;
-#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp2_);
-#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp3_) {
-#line 897 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 897 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6291 "PhotoTable.c"
- }
-#line 899 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = *photo_id;
-#line 899 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = _tmp4_.id;
-#line 899 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp5_, "transformations", "");
-#line 899 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6301 "PhotoTable.c"
-}
-
-
-static sqlite3_stmt*
-photo_table_get_duplicate_stmt (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format)
-{
- sqlite3_stmt* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gchar* sql = NULL;
- gchar* _tmp2_;
- gboolean first = FALSE;
- gboolean _tmp5_ = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp23_;
- const gchar* _tmp24_;
- sqlite3_stmt* _tmp25_ = NULL;
- gint _tmp26_;
- gint _tmp27_;
- gint col = 0;
- gboolean _tmp43_ = FALSE;
- gboolean _tmp44_ = FALSE;
-#line 904 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL);
-#line 904 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (file != NULL) {
-#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = TRUE;
-#line 6337 "PhotoTable.c"
- } else {
-#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = thumbnail_md5 != NULL;
-#line 6341 "PhotoTable.c"
- }
-#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp1_) {
-#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = TRUE;
-#line 6347 "PhotoTable.c"
- } else {
-#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = md5 != NULL;
-#line 6351 "PhotoTable.c"
- }
-#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp0_, "file != null || thumbnail_md5 != null || md5 != null");
-#line 908 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = g_strdup ("SELECT id FROM PhotoTable WHERE");
-#line 908 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp2_;
-#line 909 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- first = TRUE;
-#line 911 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (file != NULL) {
-#line 6363 "PhotoTable.c"
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 912 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = sql;
-#line 912 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = g_strconcat (_tmp3_, " filename=?", NULL);
-#line 912 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 912 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp4_;
-#line 913 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- first = FALSE;
-#line 6376 "PhotoTable.c"
- }
-#line 916 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (thumbnail_md5 != NULL) {
-#line 916 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = TRUE;
-#line 6382 "PhotoTable.c"
- } else {
-#line 916 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = md5 != NULL;
-#line 6386 "PhotoTable.c"
- }
-#line 916 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp5_) {
-#line 6390 "PhotoTable.c"
- gboolean _tmp6_;
- const gchar* _tmp17_;
- gchar* _tmp18_;
- const gchar* _tmp21_;
- gchar* _tmp22_;
-#line 917 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = first;
-#line 917 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp6_) {
-#line 6400 "PhotoTable.c"
- const gchar* _tmp7_;
- gchar* _tmp8_;
-#line 918 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = sql;
-#line 918 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = g_strconcat (_tmp7_, " ((", NULL);
-#line 918 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 918 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp8_;
-#line 6411 "PhotoTable.c"
- } else {
- const gchar* _tmp9_;
- gchar* _tmp10_;
-#line 920 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = sql;
-#line 920 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = g_strconcat (_tmp9_, " OR ((", NULL);
-#line 920 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 920 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp10_;
-#line 6423 "PhotoTable.c"
- }
-#line 921 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- first = FALSE;
-#line 923 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (md5 != NULL) {
-#line 6429 "PhotoTable.c"
- const gchar* _tmp11_;
- gchar* _tmp12_;
-#line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = sql;
-#line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = g_strconcat (_tmp11_, " 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 = _tmp12_;
-#line 6440 "PhotoTable.c"
- }
-#line 927 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (thumbnail_md5 != NULL) {
-#line 928 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (md5 == NULL) {
-#line 6446 "PhotoTable.c"
- const gchar* _tmp13_;
- gchar* _tmp14_;
-#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = sql;
-#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = g_strconcat (_tmp13_, " thumbnail_md5=?", NULL);
-#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp14_;
-#line 6457 "PhotoTable.c"
- } else {
- const gchar* _tmp15_;
- gchar* _tmp16_;
-#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = sql;
-#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = g_strconcat (_tmp15_, " OR (md5 IS NULL AND thumbnail_md5=?)", NULL);
-#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp16_;
-#line 6469 "PhotoTable.c"
- }
- }
-#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = sql;
-#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = g_strconcat (_tmp17_, ")", NULL);
-#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp18_;
-#line 936 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (file_format != PHOTO_FILE_FORMAT_UNKNOWN) {
-#line 6482 "PhotoTable.c"
- const gchar* _tmp19_;
- gchar* _tmp20_;
-#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = sql;
-#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = g_strconcat (_tmp19_, " AND file_format=?", NULL);
-#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp20_;
-#line 6493 "PhotoTable.c"
- }
-#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = sql;
-#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = g_strconcat (_tmp21_, ")", NULL);
-#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- sql = _tmp22_;
-#line 6503 "PhotoTable.c"
- }
-#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = database_table_db;
-#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = sql;
-#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = sqlite3_prepare_v2 (_tmp23_, _tmp24_, -1, &_tmp25_, NULL);
-#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp25_;
-#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp26_;
-#line 944 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = res;
-#line 944 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK");
-#line 946 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- col = 1;
-#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (file != NULL) {
-#line 6525 "PhotoTable.c"
- sqlite3_stmt* _tmp28_;
- gint _tmp29_;
- gchar* _tmp30_;
- GDestroyNotify _tmp31_;
- gint _tmp32_;
-#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = stmt;
-#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = col;
-#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- col = _tmp29_ + 1;
-#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = g_file_get_path (file);
-#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = g_free;
-#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp28_, _tmp29_, _tmp30_, -1, _tmp31_);
-#line 950 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = res;
-#line 950 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp32_ == SQLITE_OK, "res == Sqlite.OK");
-#line 6547 "PhotoTable.c"
- }
-#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (thumbnail_md5 != NULL) {
-#line 6551 "PhotoTable.c"
- sqlite3_stmt* _tmp33_;
- gint _tmp34_;
- gchar* _tmp35_;
- GDestroyNotify _tmp36_;
- gint _tmp37_;
-#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = stmt;
-#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = col;
-#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- col = _tmp34_ + 1;
-#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = g_strdup (thumbnail_md5);
-#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = g_free;
-#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp33_, _tmp34_, _tmp35_, -1, _tmp36_);
-#line 955 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp37_ = res;
-#line 955 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp37_ == SQLITE_OK, "res == Sqlite.OK");
-#line 6573 "PhotoTable.c"
- }
-#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (md5 != NULL) {
-#line 6577 "PhotoTable.c"
- sqlite3_stmt* _tmp38_;
- gint _tmp39_;
- gchar* _tmp40_;
- GDestroyNotify _tmp41_;
- gint _tmp42_;
-#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp38_ = stmt;
-#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp39_ = col;
-#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- col = _tmp39_ + 1;
-#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp40_ = g_strdup (md5);
-#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp41_ = g_free;
-#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp38_, _tmp39_, _tmp40_, -1, _tmp41_);
-#line 960 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp42_ = res;
-#line 960 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp42_ == SQLITE_OK, "res == Sqlite.OK");
-#line 6599 "PhotoTable.c"
- }
-#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (thumbnail_md5 != NULL) {
-#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp44_ = TRUE;
-#line 6605 "PhotoTable.c"
- } else {
-#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp44_ = md5 != NULL;
-#line 6609 "PhotoTable.c"
- }
-#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp44_) {
-#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp43_ = file_format != PHOTO_FILE_FORMAT_UNKNOWN;
-#line 6615 "PhotoTable.c"
- } else {
-#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp43_ = FALSE;
-#line 6619 "PhotoTable.c"
- }
-#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp43_) {
-#line 6623 "PhotoTable.c"
- sqlite3_stmt* _tmp45_;
- gint _tmp46_;
- gint _tmp47_;
-#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp45_ = stmt;
-#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp46_ = col;
-#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- col = _tmp46_ + 1;
-#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp45_, _tmp46_, photo_file_format_serialize (file_format));
-#line 965 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp47_ = res;
-#line 965 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp47_ == SQLITE_OK, "res == Sqlite.OK");
-#line 6639 "PhotoTable.c"
- }
-#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = stmt;
-#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (sql);
-#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6647 "PhotoTable.c"
-}
-
-
-gboolean
-photo_table_has_duplicate (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_;
- gint res = 0;
- sqlite3_stmt* _tmp1_;
- gint _tmp2_;
-#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), 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_ = photo_table_get_duplicate_stmt (self, file, thumbnail_md5, md5, file_format);
-#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp0_;
-#line 973 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = stmt;
-#line 973 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp1_);
-#line 975 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = res;
-#line 975 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp2_ == SQLITE_DONE) {
-#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6686 "PhotoTable.c"
- } else {
- gint _tmp3_;
-#line 978 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 978 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp3_ == SQLITE_ROW) {
-#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = TRUE;
-#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6699 "PhotoTable.c"
- } else {
- gint _tmp4_;
-#line 982 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = res;
-#line 982 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("has_duplicate", _tmp4_);
-#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6712 "PhotoTable.c"
- }
- }
-#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 6717 "PhotoTable.c"
-}
-
-
-static void
-_vala_array_add2 (PhotoID* * array,
- int* length,
- int* size,
- const PhotoID* value)
-{
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if ((*length) == (*size)) {
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *array = g_renew (PhotoID, *array, *size);
-#line 6733 "PhotoTable.c"
- }
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- (*array)[(*length)++] = *value;
-#line 6737 "PhotoTable.c"
-}
-
-
-PhotoID*
-photo_table_get_duplicate_ids (PhotoTable* self,
- GFile* file,
- const gchar* thumbnail_md5,
- const gchar* md5,
- PhotoFileFormat file_format,
- int* result_length1)
-{
- PhotoID* result = NULL;
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_;
- PhotoID* ids = NULL;
- PhotoID* _tmp1_;
- gint ids_length1;
- gint _ids_size_;
- gint res = 0;
- sqlite3_stmt* _tmp2_;
- PhotoID* _tmp8_;
- gint _tmp8__length1;
-#line 988 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL);
-#line 988 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = photo_table_get_duplicate_stmt (self, file, thumbnail_md5, md5, file_format);
-#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp0_;
-#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = g_new0 (PhotoID, 0);
-#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- ids = _tmp1_;
-#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- ids_length1 = 0;
-#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _ids_size_ = ids_length1;
-#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = stmt;
-#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp2_);
-#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- while (TRUE) {
-#line 6782 "PhotoTable.c"
- gint _tmp3_;
- PhotoID* _tmp4_;
- gint _tmp4__length1;
- sqlite3_stmt* _tmp5_;
- PhotoID _tmp6_ = {0};
- sqlite3_stmt* _tmp7_;
-#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!(_tmp3_ == SQLITE_ROW)) {
-#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 6795 "PhotoTable.c"
- }
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = ids;
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4__length1 = ids_length1;
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = stmt;
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_id_init (&_tmp6_, sqlite3_column_int64 (_tmp5_, 0));
-#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_array_add2 (&ids, &ids_length1, &_ids_size_, &_tmp6_);
-#line 997 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = stmt;
-#line 997 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp7_);
-#line 6811 "PhotoTable.c"
- }
-#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = ids;
-#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8__length1 = ids_length1;
-#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (result_length1) {
-#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *result_length1 = _tmp8__length1;
-#line 6821 "PhotoTable.c"
- }
-#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp8_;
-#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 6829 "PhotoTable.c"
-}
-
-
-void
-photo_table_update_backlinks (PhotoTable* self,
- PhotoID* photo_id,
- const gchar* backlinks,
- GError** error)
-{
- const gchar* _tmp0_ = NULL;
- PhotoID _tmp1_;
- gint64 _tmp2_;
- GError * _inner_error_ = NULL;
-#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#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"
- if (backlinks != NULL) {
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = backlinks;
-#line 6851 "PhotoTable.c"
- } else {
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = "";
-#line 6855 "PhotoTable.c"
- }
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = *photo_id;
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = _tmp1_.id;
-#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), _tmp2_, "backlinks", _tmp0_, &_inner_error_);
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 6871 "PhotoTable.c"
- } else {
-#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 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 6879 "PhotoTable.c"
- }
- }
-}
-
-
-void
-photo_table_attach_editable (PhotoTable* self,
- PhotoRow* row,
- BackingPhotoID* editable_id,
- GError** error)
-{
- PhotoID _tmp0_;
- gint64 _tmp1_;
- BackingPhotoID _tmp2_;
- gint64 _tmp3_;
- BackingPhotoID _tmp4_;
- GError * _inner_error_ = NULL;
-#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_ROW (row));
-#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->photo_id;
-#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = *editable_id;
-#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _tmp2_.id;
-#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), _tmp1_, "editable_id", _tmp3_, &_inner_error_);
-#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 6921 "PhotoTable.c"
- } else {
-#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 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 6929 "PhotoTable.c"
- }
- }
-#line 1010 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = *editable_id;
-#line 1010 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row->editable_id = _tmp4_;
-#line 6936 "PhotoTable.c"
-}
-
-
-void
-photo_table_detach_editable (PhotoTable* self,
- PhotoRow* row,
- GError** error)
-{
- PhotoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#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->photo_id;
-#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#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), _tmp1_, "editable_id", BACKING_PHOTO_ID_INVALID, &_inner_error_);
-#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 6966 "PhotoTable.c"
- } else {
-#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 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 6974 "PhotoTable.c"
- }
- }
-#line 1016 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&row->editable_id, BACKING_PHOTO_ID_INVALID);
-#line 6979 "PhotoTable.c"
-}
-
-
-void
-photo_table_set_metadata_dirty (PhotoTable* self,
- PhotoID* photo_id,
- gboolean dirty,
- GError** error)
-{
- gint _tmp0_ = 0;
- PhotoID _tmp1_;
- gint64 _tmp2_;
- GError * _inner_error_ = NULL;
-#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#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"
- if (dirty) {
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = 1;
-#line 7001 "PhotoTable.c"
- } else {
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = 0;
-#line 7005 "PhotoTable.c"
- }
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = *photo_id;
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = _tmp1_.id;
-#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), _tmp2_, "metadata_dirty", _tmp0_, &_inner_error_);
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 7021 "PhotoTable.c"
- } else {
-#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 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 7029 "PhotoTable.c"
- }
- }
-}
-
-
-void
-photo_table_update_raw_development (PhotoTable* self,
- PhotoRow* row,
- RawDeveloper rd,
- BackingPhotoID* backing_photo_id,
- GError** error)
-{
- gchar* col = NULL;
- BackingPhotoID* _tmp3_;
- gint _tmp3__length1;
- BackingPhotoID _tmp4_;
- BackingPhotoID _tmp5_;
- PhotoID _tmp6_;
- gint64 _tmp7_;
- const gchar* _tmp8_;
- BackingPhotoID _tmp9_;
- gint64 _tmp10_;
- BackingPhotoID _tmp11_;
- gint64 _tmp12_;
- GError * _inner_error_ = NULL;
-#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_ROW (row));
-#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (backing_photo_id != NULL);
-#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- switch (rd) {
-#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- case RAW_DEVELOPER_SHOTWELL:
-#line 7065 "PhotoTable.c"
- {
- gchar* _tmp0_;
-#line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = g_strdup ("develop_shotwell_id");
-#line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (col);
-#line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- col = _tmp0_;
-#line 1030 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 7076 "PhotoTable.c"
- }
-#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- case RAW_DEVELOPER_CAMERA:
-#line 7080 "PhotoTable.c"
- {
- gchar* _tmp1_;
-#line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = g_strdup ("develop_camera_id");
-#line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (col);
-#line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- col = _tmp1_;
-#line 1034 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 7091 "PhotoTable.c"
- }
-#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- case RAW_DEVELOPER_EMBEDDED:
-#line 7095 "PhotoTable.c"
- {
- gchar* _tmp2_;
-#line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = g_strdup ("develop_embedded_id");
-#line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (col);
-#line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- col = _tmp2_;
-#line 1038 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- break;
-#line 7106 "PhotoTable.c"
- }
- default:
- {
-#line 1041 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_assert_not_reached ();
-#line 7112 "PhotoTable.c"
- }
- }
-#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = row->development_ids;
-#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3__length1 = row->development_ids_length1;
-#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = *backing_photo_id;
-#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_[rd] = _tmp4_;
-#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = _tmp3_[rd];
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = row->photo_id;
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = _tmp6_.id;
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = col;
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = *backing_photo_id;
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = _tmp9_.id;
-#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), _tmp7_, _tmp8_, _tmp10_, &_inner_error_);
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (col);
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 7147 "PhotoTable.c"
- } else {
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (col);
-#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 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 7157 "PhotoTable.c"
- }
- }
-#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = *backing_photo_id;
-#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = _tmp11_.id;
-#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp12_ != BACKING_PHOTO_ID_INVALID) {
-#line 7166 "PhotoTable.c"
- PhotoID _tmp13_;
- gint64 _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = row->photo_id;
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = _tmp13_.id;
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = raw_developer_to_string (rd);
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = _tmp15_;
-#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), _tmp14_, "developer", _tmp16_, &_inner_error_);
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp16_);
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (col);
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 7193 "PhotoTable.c"
- } else {
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (col);
-#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 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 7203 "PhotoTable.c"
- }
- }
- }
-#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (col);
-#line 7209 "PhotoTable.c"
-}
-
-
-void
-photo_table_remove_development (PhotoTable* self,
- PhotoRow* row,
- RawDeveloper rd,
- GError** error)
-{
- BackingPhotoID _tmp0_ = {0};
- GError * _inner_error_ = NULL;
-#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_PHOTO_TABLE (self));
-#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"
- backing_photo_id_init (&_tmp0_, BACKING_PHOTO_ID_INVALID);
-#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_table_update_raw_development (self, row, rd, &_tmp0_, &_inner_error_);
-#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 7237 "PhotoTable.c"
- } else {
-#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 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 7245 "PhotoTable.c"
- }
- }
-}
-
-
-static void
-photo_table_class_init (PhotoTableClass * klass)
-{
-#line 109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- photo_table_parent_class = g_type_class_peek_parent (klass);
-#line 109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- ((DatabaseTableClass *) klass)->finalize = photo_table_finalize;
-#line 7258 "PhotoTable.c"
-}
-
-
-static void
-photo_table_instance_init (PhotoTable * self)
-{
-}
-
-
-static void
-photo_table_finalize (DatabaseTable * obj)
-{
- PhotoTable * self;
-#line 109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_TABLE, PhotoTable);
-#line 109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- DATABASE_TABLE_CLASS (photo_table_parent_class)->finalize (obj);
-#line 7276 "PhotoTable.c"
-}
-
-
-GType
-photo_table_get_type (void)
-{
- static volatile gsize photo_table_type_id__volatile = 0;
- if (g_once_init_enter (&photo_table_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoTable), 0, (GInstanceInitFunc) photo_table_instance_init, NULL };
- GType photo_table_type_id;
- photo_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "PhotoTable", &g_define_type_info, 0);
- g_once_init_leave (&photo_table_type_id__volatile, photo_table_type_id);
- }
- return photo_table_type_id__volatile;
-}
-
-
-void
-backing_photo_id_init (BackingPhotoID *self,
- gint64 id)
-{
-#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"
- (*self).id = id;
-#line 7302 "PhotoTable.c"
-}
-
-
-gboolean
-backing_photo_id_is_invalid (BackingPhotoID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*self).id;
-#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp0_ == BACKING_PHOTO_ID_INVALID;
-#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 7317 "PhotoTable.c"
-}
-
-
-gboolean
-backing_photo_id_is_valid (BackingPhotoID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = (*self).id;
-#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp0_ != BACKING_PHOTO_ID_INVALID;
-#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 7332 "PhotoTable.c"
-}
-
-
-BackingPhotoID*
-backing_photo_id_dup (const BackingPhotoID* self)
-{
- BackingPhotoID* dup;
-#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dup = g_new0 (BackingPhotoID, 1);
-#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- memcpy (dup, self, sizeof (BackingPhotoID));
-#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return dup;
-#line 7346 "PhotoTable.c"
-}
-
-
-void
-backing_photo_id_free (BackingPhotoID* self)
-{
-#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_free (self);
-#line 7355 "PhotoTable.c"
-}
-
-
-GType
-backing_photo_id_get_type (void)
-{
- static volatile gsize backing_photo_id_type_id__volatile = 0;
- if (g_once_init_enter (&backing_photo_id_type_id__volatile)) {
- GType backing_photo_id_type_id;
- backing_photo_id_type_id = g_boxed_type_register_static ("BackingPhotoID", (GBoxedCopyFunc) backing_photo_id_dup, (GBoxedFreeFunc) backing_photo_id_free);
- g_once_init_leave (&backing_photo_id_type_id__volatile, backing_photo_id_type_id);
- }
- return backing_photo_id_type_id__volatile;
-}
-
-
-gboolean
-backing_photo_row_matches_file_info (BackingPhotoRow* self,
- GFileInfo* info)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
- time_t _tmp1_;
- GTimeVal _tmp2_ = {0};
- glong _tmp3_;
-#line 1095 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_BACKING_PHOTO_ROW (self), 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 1096 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp0_ != g_file_info_get_size (info)) {
-#line 1097 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 1097 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 7393 "PhotoTable.c"
- }
-#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = self->timestamp;
-#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_file_info_get_modification_time (info, &_tmp2_);
-#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _tmp2_.tv_sec;
-#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp1_ == ((time_t) _tmp3_);
-#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 7405 "PhotoTable.c"
-}
-
-
-gboolean
-backing_photo_row_is_touched (BackingPhotoRow* self,
- GFileInfo* info)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
- time_t _tmp1_;
- GTimeVal _tmp2_ = {0};
- glong _tmp3_;
-#line 1102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_BACKING_PHOTO_ROW (self), 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 1103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp0_ != g_file_info_get_size (info)) {
-#line 1104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = FALSE;
-#line 1104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 7430 "PhotoTable.c"
- }
-#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = self->timestamp;
-#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_file_info_get_modification_time (info, &_tmp2_);
-#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _tmp2_.tv_sec;
-#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp1_ != ((time_t) _tmp3_);
-#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 7442 "PhotoTable.c"
-}
-
-
-void
-backing_photo_row_copy_from (BackingPhotoRow* self,
- BackingPhotoRow* from)
-{
- BackingPhotoID _tmp0_;
- time_t _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gint64 _tmp4_;
- time_t _tmp5_;
- PhotoFileFormat _tmp6_;
- Dimensions _tmp7_;
- Orientation _tmp8_;
-#line 1110 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_ROW (self));
-#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->id;
-#line 1111 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->id = _tmp0_;
-#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = from->time_created;
-#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->time_created = _tmp1_;
-#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = from->filepath;
-#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (self->filepath);
-#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->filepath = _tmp3_;
-#line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = from->filesize;
-#line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->filesize = _tmp4_;
-#line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = from->timestamp;
-#line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->timestamp = _tmp5_;
-#line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = from->file_format;
-#line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->file_format = _tmp6_;
-#line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = from->dim;
-#line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->dim = _tmp7_;
-#line 1118 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = from->original_orientation;
-#line 1118 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->original_orientation = _tmp8_;
-#line 7499 "PhotoTable.c"
-}
-
-
-BackingPhotoRow*
-backing_photo_row_construct (GType object_type)
-{
- BackingPhotoRow* self = NULL;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self = (BackingPhotoRow*) g_type_create_instance (object_type);
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return self;
-#line 7511 "PhotoTable.c"
-}
-
-
-BackingPhotoRow*
-backing_photo_row_new (void)
-{
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return backing_photo_row_construct (TYPE_BACKING_PHOTO_ROW);
-#line 7520 "PhotoTable.c"
-}
-
-
-static void
-value_backing_photo_row_init (GValue* value)
-{
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 7529 "PhotoTable.c"
-}
-
-
-static void
-value_backing_photo_row_free_value (GValue* value)
-{
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (value->data[0].v_pointer) {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_row_unref (value->data[0].v_pointer);
-#line 7540 "PhotoTable.c"
- }
-}
-
-
-static void
-value_backing_photo_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (src_value->data[0].v_pointer) {
-#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 7553 "PhotoTable.c"
- } else {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 7557 "PhotoTable.c"
- }
-}
-
-
-static gpointer
-value_backing_photo_row_peek_pointer (const GValue* value)
-{
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return value->data[0].v_pointer;
-#line 7567 "PhotoTable.c"
-}
-
-
-static gchar*
-value_backing_photo_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (collect_values[0].v_pointer) {
-#line 7579 "PhotoTable.c"
- BackingPhotoRow * object;
- object = collect_values[0].v_pointer;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#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 7586 "PhotoTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#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 7590 "PhotoTable.c"
- }
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = backing_photo_row_ref (object);
-#line 7594 "PhotoTable.c"
- } else {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 7598 "PhotoTable.c"
- }
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return NULL;
-#line 7602 "PhotoTable.c"
-}
-
-
-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 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!object_p) {
-#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 7618 "PhotoTable.c"
- }
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (!value->data[0].v_pointer) {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *object_p = NULL;
-#line 7624 "PhotoTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 7628 "PhotoTable.c"
- } else {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- *object_p = backing_photo_row_ref (value->data[0].v_pointer);
-#line 7632 "PhotoTable.c"
- }
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return NULL;
-#line 7636 "PhotoTable.c"
-}
-
-
-GParamSpec*
-param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecBackingPhotoRow* spec;
-#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 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return G_PARAM_SPEC (spec);
-#line 7656 "PhotoTable.c"
-}
-
-
-gpointer
-value_get_backing_photo_row (const GValue* value)
-{
-#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 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return value->data[0].v_pointer;
-#line 7667 "PhotoTable.c"
-}
-
-
-void
-value_set_backing_photo_row (GValue* value,
- gpointer v_object)
-{
- BackingPhotoRow * old;
-#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 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- old = value->data[0].v_pointer;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (v_object) {
-#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 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 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = v_object;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_row_ref (value->data[0].v_pointer);
-#line 7690 "PhotoTable.c"
- } else {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 7694 "PhotoTable.c"
- }
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (old) {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_row_unref (old);
-#line 7700 "PhotoTable.c"
- }
-}
-
-
-void
-value_take_backing_photo_row (GValue* value,
- gpointer v_object)
-{
- BackingPhotoRow * old;
-#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 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- old = value->data[0].v_pointer;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (v_object) {
-#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 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 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = v_object;
-#line 7722 "PhotoTable.c"
- } else {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 7726 "PhotoTable.c"
- }
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (old) {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_row_unref (old);
-#line 7732 "PhotoTable.c"
- }
-}
-
-
-static void
-backing_photo_row_class_init (BackingPhotoRowClass * klass)
-{
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_row_parent_class = g_type_class_peek_parent (klass);
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- ((BackingPhotoRowClass *) klass)->finalize = backing_photo_row_finalize;
-#line 7744 "PhotoTable.c"
-}
-
-
-static void
-backing_photo_row_instance_init (BackingPhotoRow * self)
-{
-#line 1088 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->filepath = NULL;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self->ref_count = 1;
-#line 7755 "PhotoTable.c"
-}
-
-
-static void
-backing_photo_row_finalize (BackingPhotoRow * obj)
-{
- BackingPhotoRow * self;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKING_PHOTO_ROW, BackingPhotoRow);
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_signal_handlers_destroy (self);
-#line 1088 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (self->filepath);
-#line 7769 "PhotoTable.c"
-}
-
-
-GType
-backing_photo_row_get_type (void)
-{
- static volatile gsize backing_photo_row_type_id__volatile = 0;
- if (g_once_init_enter (&backing_photo_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_backing_photo_row_init, value_backing_photo_row_free_value, value_backing_photo_row_copy_value, value_backing_photo_row_peek_pointer, "p", value_backing_photo_row_collect_value, "p", value_backing_photo_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (BackingPhotoRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) backing_photo_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackingPhotoRow), 0, (GInstanceInitFunc) backing_photo_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType backing_photo_row_type_id;
- backing_photo_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BackingPhotoRow", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&backing_photo_row_type_id__volatile, backing_photo_row_type_id);
- }
- return backing_photo_row_type_id__volatile;
-}
-
-
-gpointer
-backing_photo_row_ref (gpointer instance)
-{
- BackingPhotoRow * self;
- self = instance;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return instance;
-#line 7798 "PhotoTable.c"
-}
-
-
-void
-backing_photo_row_unref (gpointer instance)
-{
- BackingPhotoRow * self;
- self = instance;
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- BACKING_PHOTO_ROW_GET_CLASS (self)->finalize (self);
-#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 7813 "PhotoTable.c"
- }
-}
-
-
-static BackingPhotoTable*
-backing_photo_table_construct (GType object_type)
-{
- BackingPhotoTable* self = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
-#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 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#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 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 1142 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 1142 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1144 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 1144 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 1145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = res;
-#line 1145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 7856 "PhotoTable.c"
- gint _tmp6_;
-#line 1146 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = res;
-#line 1146 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_fatal ("create PhotoBackingTable", _tmp6_);
-#line 7862 "PhotoTable.c"
- }
-#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return self;
-#line 7868 "PhotoTable.c"
-}
-
-
-static BackingPhotoTable*
-backing_photo_table_new (void)
-{
-#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return backing_photo_table_construct (TYPE_BACKING_PHOTO_TABLE);
-#line 7877 "PhotoTable.c"
-}
-
-
-BackingPhotoTable*
-backing_photo_table_get_instance (void)
-{
- BackingPhotoTable* result = NULL;
- BackingPhotoTable* _tmp0_;
- BackingPhotoTable* _tmp2_;
- BackingPhotoTable* _tmp3_;
-#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = backing_photo_table_instance;
-#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp0_ == NULL) {
-#line 7892 "PhotoTable.c"
- BackingPhotoTable* _tmp1_;
-#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = backing_photo_table_new ();
-#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _database_table_unref0 (backing_photo_table_instance);
-#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_table_instance = _tmp1_;
-#line 7900 "PhotoTable.c"
- }
-#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp2_ = backing_photo_table_instance;
-#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = _database_table_ref0 (_tmp2_);
-#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = _tmp3_;
-#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 7910 "PhotoTable.c"
-}
-
-
-void
-backing_photo_table_add (BackingPhotoTable* self,
- BackingPhotoRow* state,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- time_t time_created = 0;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- GDestroyNotify _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- time_t _tmp10_;
- gint _tmp11_;
- sqlite3_stmt* _tmp12_;
- gint64 _tmp13_;
- gint _tmp14_;
- sqlite3_stmt* _tmp15_;
- Dimensions _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- sqlite3_stmt* _tmp19_;
- Dimensions _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- sqlite3_stmt* _tmp23_;
- Orientation _tmp24_;
- gint _tmp25_;
- sqlite3_stmt* _tmp26_;
- PhotoFileFormat _tmp27_;
- gint _tmp28_;
- sqlite3_stmt* _tmp29_;
- time_t _tmp30_;
- gint _tmp31_;
- sqlite3_stmt* _tmp32_;
- gint _tmp33_;
- sqlite3* _tmp35_;
- time_t _tmp36_;
- GError * _inner_error_ = NULL;
-#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_TABLE (self));
-#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_ROW (state));
-#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#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 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 1163 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 1163 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- time_created = (time_t) now_sec ();
-#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = state->filepath;
-#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = g_free;
-#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_);
-#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = res;
-#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = stmt;
-#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = state->timestamp;
-#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp9_, 2, (gint64) _tmp10_);
-#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = res;
-#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = stmt;
-#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = state->filesize;
-#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp12_, 3, _tmp13_);
-#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = res;
-#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp14_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = stmt;
-#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = state->dim;
-#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = _tmp16_.width;
-#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp15_, 4, _tmp17_);
-#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = res;
-#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp18_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = stmt;
-#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = state->dim;
-#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = _tmp20_.height;
-#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp19_, 5, _tmp21_);
-#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = res;
-#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp22_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = stmt;
-#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = state->original_orientation;
-#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp23_, 6, (gint) _tmp24_);
-#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = res;
-#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp25_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = stmt;
-#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = state->file_format;
-#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp26_, 7, photo_file_format_serialize (_tmp27_));
-#line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = res;
-#line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp28_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = stmt;
-#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = time_created;
-#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp29_, 8, (gint64) _tmp30_);
-#line 1182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = res;
-#line 1182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp31_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp32_ = stmt;
-#line 1184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp32_);
-#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp33_ = res;
-#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp33_ != SQLITE_DONE) {
-#line 8075 "PhotoTable.c"
- gint _tmp34_;
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp34_ = res;
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_throw_error ("PhotoBackingTable.add", _tmp34_, &_inner_error_);
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8091 "PhotoTable.c"
- } else {
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#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 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8101 "PhotoTable.c"
- }
- }
- }
-#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp35_ = database_table_db;
-#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_id_init (&state->id, sqlite3_last_insert_rowid (_tmp35_));
-#line 1189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp36_ = time_created;
-#line 1189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- state->time_created = _tmp36_;
-#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 8115 "PhotoTable.c"
-}
-
-
-BackingPhotoRow*
-backing_photo_table_fetch (BackingPhotoTable* self,
- BackingPhotoID* id,
- GError** error)
-{
- BackingPhotoRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- BackingPhotoID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- BackingPhotoRow* row = NULL;
- BackingPhotoRow* _tmp12_;
- BackingPhotoRow* _tmp13_;
- BackingPhotoID _tmp14_;
- BackingPhotoRow* _tmp15_;
- sqlite3_stmt* _tmp16_;
- const gchar* _tmp17_;
- gchar* _tmp18_;
- BackingPhotoRow* _tmp19_;
- sqlite3_stmt* _tmp20_;
- BackingPhotoRow* _tmp21_;
- sqlite3_stmt* _tmp22_;
- BackingPhotoRow* _tmp23_;
- sqlite3_stmt* _tmp24_;
- sqlite3_stmt* _tmp25_;
- BackingPhotoRow* _tmp26_;
- sqlite3_stmt* _tmp27_;
- BackingPhotoRow* _tmp28_;
- sqlite3_stmt* _tmp29_;
- BackingPhotoRow* _tmp30_;
- sqlite3_stmt* _tmp31_;
- GError * _inner_error_ = NULL;
-#line 1192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (IS_BACKING_PHOTO_TABLE (self), NULL);
-#line 1192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#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 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 1197 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 1197 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = *id;
-#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 1200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 1200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = stmt;
-#line 1202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 1203 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 1203 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp9_ == SQLITE_DONE) {
-#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = NULL;
-#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 8203 "PhotoTable.c"
- } else {
- gint _tmp10_;
-#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = res;
-#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp10_ != SQLITE_ROW) {
-#line 8210 "PhotoTable.c"
- gint _tmp11_;
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = res;
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_throw_error ("BackingPhotoTable.fetch_for_photo", _tmp11_, &_inner_error_);
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return NULL;
-#line 8226 "PhotoTable.c"
- } else {
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#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 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return NULL;
-#line 8236 "PhotoTable.c"
- }
- }
- }
- }
-#line 1208 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = backing_photo_row_new ();
-#line 1208 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- row = _tmp12_;
-#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = row;
-#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = *id;
-#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_->id = _tmp14_;
-#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = row;
-#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = stmt;
-#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = sqlite3_column_text (_tmp16_, 0);
-#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = g_strdup (_tmp17_);
-#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _g_free0 (_tmp15_->filepath);
-#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_->filepath = _tmp18_;
-#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = row;
-#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = stmt;
-#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_->timestamp = (time_t) sqlite3_column_int64 (_tmp20_, 1);
-#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = row;
-#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = stmt;
-#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_->filesize = sqlite3_column_int64 (_tmp22_, 2);
-#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = row;
-#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = stmt;
-#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = stmt;
-#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- dimensions_init (&_tmp23_->dim, sqlite3_column_int (_tmp24_, 3), sqlite3_column_int (_tmp25_, 4));
-#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = row;
-#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = stmt;
-#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_->original_orientation = (Orientation) sqlite3_column_int (_tmp27_, 5);
-#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = row;
-#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = stmt;
-#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_->file_format = photo_file_format_unserialize (sqlite3_column_int (_tmp29_, 6));
-#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = row;
-#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp31_ = stmt;
-#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_->time_created = (time_t) sqlite3_column_int64 (_tmp31_, 7);
-#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- result = row;
-#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return result;
-#line 8307 "PhotoTable.c"
-}
-
-
-void
-backing_photo_table_update (BackingPhotoTable* self,
- BackingPhotoRow* row,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- time_t _tmp5_;
- gint _tmp6_;
- sqlite3_stmt* _tmp7_;
- gint64 _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- Dimensions _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- sqlite3_stmt* _tmp14_;
- Dimensions _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- sqlite3_stmt* _tmp18_;
- Orientation _tmp19_;
- gint _tmp20_;
- sqlite3_stmt* _tmp21_;
- PhotoFileFormat _tmp22_;
- gint _tmp23_;
- sqlite3_stmt* _tmp24_;
- BackingPhotoID _tmp25_;
- gint64 _tmp26_;
- gint _tmp27_;
- sqlite3_stmt* _tmp28_;
- gint _tmp29_;
- GError * _inner_error_ = NULL;
-#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_TABLE (self));
-#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_ROW (row));
-#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#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 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 1228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 1228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = row->timestamp;
-#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, (gint64) _tmp5_);
-#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = res;
-#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = stmt;
-#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = row->filesize;
-#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp7_, 2, _tmp8_);
-#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = res;
-#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = stmt;
-#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = row->dim;
-#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = _tmp11_.width;
-#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp10_, 3, _tmp12_);
-#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = res;
-#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = stmt;
-#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp15_ = row->dim;
-#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp16_ = _tmp15_.height;
-#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp14_, 4, _tmp16_);
-#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp17_ = res;
-#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp18_ = stmt;
-#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp19_ = row->original_orientation;
-#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp18_, 5, (gint) _tmp19_);
-#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp20_ = res;
-#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp20_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp21_ = stmt;
-#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp22_ = row->file_format;
-#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int (_tmp21_, 6, photo_file_format_serialize (_tmp22_));
-#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp23_ = res;
-#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp24_ = stmt;
-#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp25_ = row->id;
-#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp26_ = _tmp25_.id;
-#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp24_, 7, _tmp26_);
-#line 1243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp27_ = res;
-#line 1243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp28_ = stmt;
-#line 1245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp28_);
-#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp29_ = res;
-#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp29_ != SQLITE_DONE) {
-#line 8451 "PhotoTable.c"
- gint _tmp30_;
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp30_ = res;
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_throw_error ("BackingPhotoTable.update", _tmp30_, &_inner_error_);
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8467 "PhotoTable.c"
- } else {
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#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 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8477 "PhotoTable.c"
- }
- }
- }
-#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 8483 "PhotoTable.c"
-}
-
-
-void
-backing_photo_table_update_attributes (BackingPhotoTable* self,
- BackingPhotoID* id,
- time_t timestamp,
- gint64 filesize,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- BackingPhotoID _tmp9_;
- gint64 _tmp10_;
- gint _tmp11_;
- sqlite3_stmt* _tmp12_;
- gint _tmp13_;
- GError * _inner_error_ = NULL;
-#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_TABLE (self));
-#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (id != NULL);
-#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp0_ = database_table_db;
-#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 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- stmt = _tmp1_;
-#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = _tmp2_;
-#line 1254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp3_ = res;
-#line 1254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp4_ = stmt;
-#line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, (gint64) timestamp);
-#line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp5_ = res;
-#line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp6_ = stmt;
-#line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp6_, 2, filesize);
-#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp7_ = res;
-#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp8_ = stmt;
-#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp9_ = *id;
-#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp10_ = _tmp9_.id;
-#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_bind_int64 (_tmp8_, 3, _tmp10_);
-#line 1261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp11_ = res;
-#line 1261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK");
-#line 1263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp12_ = stmt;
-#line 1263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- res = sqlite3_step (_tmp12_);
-#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp13_ = res;
-#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_tmp13_ != SQLITE_DONE) {
-#line 8565 "PhotoTable.c"
- gint _tmp14_;
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp14_ = res;
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- database_table_throw_error ("BackingPhotoTable.update_attributes", _tmp14_, &_inner_error_);
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8581 "PhotoTable.c"
- } else {
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#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 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8591 "PhotoTable.c"
- }
- }
- }
-#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 8597 "PhotoTable.c"
-}
-
-
-void
-backing_photo_table_remove (BackingPhotoTable* self,
- BackingPhotoID* backing_id,
- GError** error)
-{
- BackingPhotoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_TABLE (self));
-#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 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#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 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8627 "PhotoTable.c"
- } else {
-#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 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8635 "PhotoTable.c"
- }
- }
-}
-
-
-void
-backing_photo_table_set_filepath (BackingPhotoTable* self,
- BackingPhotoID* id,
- const gchar* filepath,
- GError** error)
-{
- BackingPhotoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_TABLE (self));
-#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (id != 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 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#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", filepath, &_inner_error_);
-#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8670 "PhotoTable.c"
- } else {
-#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 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8678 "PhotoTable.c"
- }
- }
-}
-
-
-void
-backing_photo_table_update_timestamp (BackingPhotoTable* self,
- BackingPhotoID* id,
- time_t timestamp,
- GError** error)
-{
- BackingPhotoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_return_if_fail (IS_BACKING_PHOTO_TABLE (self));
-#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 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- _tmp1_ = _tmp0_.id;
-#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) timestamp, &_inner_error_);
-#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8711 "PhotoTable.c"
- } else {
-#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 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- g_clear_error (&_inner_error_);
-#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- return;
-#line 8719 "PhotoTable.c"
- }
- }
-}
-
-
-static void
-backing_photo_table_class_init (BackingPhotoTableClass * klass)
-{
-#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- backing_photo_table_parent_class = g_type_class_peek_parent (klass);
-#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- ((DatabaseTableClass *) klass)->finalize = backing_photo_table_finalize;
-#line 8732 "PhotoTable.c"
-}
-
-
-static void
-backing_photo_table_instance_init (BackingPhotoTable * self)
-{
-}
-
-
-static void
-backing_photo_table_finalize (DatabaseTable * obj)
-{
- BackingPhotoTable * self;
-#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKING_PHOTO_TABLE, BackingPhotoTable);
-#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala"
- DATABASE_TABLE_CLASS (backing_photo_table_parent_class)->finalize (obj);
-#line 8750 "PhotoTable.c"
-}
-
-
-GType
-backing_photo_table_get_type (void)
-{
- static volatile gsize backing_photo_table_type_id__volatile = 0;
- if (g_once_init_enter (&backing_photo_table_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (BackingPhotoTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) backing_photo_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackingPhotoTable), 0, (GInstanceInitFunc) backing_photo_table_instance_init, NULL };
- GType backing_photo_table_type_id;
- backing_photo_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "BackingPhotoTable", &g_define_type_info, 0);
- g_once_init_leave (&backing_photo_table_type_id__volatile, backing_photo_table_type_id);
- }
- return backing_photo_table_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/db/SavedSearchDBTable.c b/src/db/SavedSearchDBTable.c
deleted file mode 100644
index d2d20d2..0000000
--- a/src/db/SavedSearchDBTable.c
+++ /dev/null
@@ -1,4648 +0,0 @@
-/* SavedSearchDBTable.c generated by valac 0.40.4, the Vala compiler
- * generated from SavedSearchDBTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <stdlib.h>
-#include <gee.h>
-#include <sqlite3.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_SAVED_SEARCH_ID (saved_search_id_get_type ())
-typedef struct _SavedSearchID SavedSearchID;
-
-#define TYPE_SAVED_SEARCH_ROW (saved_search_row_get_type ())
-#define SAVED_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_ROW, SavedSearchRow))
-#define SAVED_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_ROW, SavedSearchRowClass))
-#define IS_SAVED_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_ROW))
-#define IS_SAVED_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_ROW))
-#define SAVED_SEARCH_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_ROW, SavedSearchRowClass))
-
-typedef struct _SavedSearchRow SavedSearchRow;
-typedef struct _SavedSearchRowClass SavedSearchRowClass;
-typedef struct _SavedSearchRowPrivate SavedSearchRowPrivate;
-
-#define TYPE_SEARCH_OPERATOR (search_operator_get_type ())
-
-#define TYPE_SEARCH_CONDITION (search_condition_get_type ())
-#define SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION, SearchCondition))
-#define SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION, SearchConditionClass))
-#define IS_SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION))
-#define IS_SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION))
-#define SEARCH_CONDITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION, SearchConditionClass))
-
-typedef struct _SearchCondition SearchCondition;
-typedef struct _SearchConditionClass SearchConditionClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecSavedSearchRow ParamSpecSavedSearchRow;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-typedef struct _DatabaseTablePrivate DatabaseTablePrivate;
-
-#define TYPE_SAVED_SEARCH_DB_TABLE (saved_search_db_table_get_type ())
-#define SAVED_SEARCH_DB_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTable))
-#define SAVED_SEARCH_DB_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTableClass))
-#define IS_SAVED_SEARCH_DB_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DB_TABLE))
-#define IS_SAVED_SEARCH_DB_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DB_TABLE))
-#define SAVED_SEARCH_DB_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTableClass))
-
-typedef struct _SavedSearchDBTable SavedSearchDBTable;
-typedef struct _SavedSearchDBTableClass SavedSearchDBTableClass;
-typedef struct _SavedSearchDBTablePrivate SavedSearchDBTablePrivate;
-#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _search_condition_unref0(var) ((var == NULL) ? NULL : (var = (search_condition_unref (var), NULL)))
-#define _saved_search_row_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_row_unref (var), NULL)))
-
-#define TYPE_SEARCH_CONDITION_TEXT (search_condition_text_get_type ())
-#define SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionText))
-#define SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass))
-#define IS_SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_TEXT))
-#define IS_SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_TEXT))
-#define SEARCH_CONDITION_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass))
-
-typedef struct _SearchConditionText SearchConditionText;
-typedef struct _SearchConditionTextClass SearchConditionTextClass;
-
-#define SEARCH_CONDITION_TYPE_SEARCH_TYPE (search_condition_search_type_get_type ())
-
-#define SEARCH_CONDITION_TEXT_TYPE_CONTEXT (search_condition_text_context_get_type ())
-
-#define TYPE_SEARCH_CONDITION_MEDIA_TYPE (search_condition_media_type_get_type ())
-#define SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType))
-#define SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass))
-#define IS_SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE))
-#define IS_SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE))
-#define SEARCH_CONDITION_MEDIA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass))
-
-typedef struct _SearchConditionMediaType SearchConditionMediaType;
-typedef struct _SearchConditionMediaTypeClass SearchConditionMediaTypeClass;
-
-#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_CONTEXT (search_condition_media_type_context_get_type ())
-
-#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_MEDIA_TYPE (search_condition_media_type_media_type_get_type ())
-
-#define TYPE_SEARCH_CONDITION_FLAGGED (search_condition_flagged_get_type ())
-#define SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged))
-#define SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass))
-#define IS_SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_FLAGGED))
-#define IS_SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_FLAGGED))
-#define SEARCH_CONDITION_FLAGGED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass))
-
-typedef struct _SearchConditionFlagged SearchConditionFlagged;
-typedef struct _SearchConditionFlaggedClass SearchConditionFlaggedClass;
-
-#define SEARCH_CONDITION_FLAGGED_TYPE_STATE (search_condition_flagged_state_get_type ())
-
-#define TYPE_SEARCH_CONDITION_MODIFIED (search_condition_modified_get_type ())
-#define SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified))
-#define SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass))
-#define IS_SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MODIFIED))
-#define IS_SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MODIFIED))
-#define SEARCH_CONDITION_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass))
-
-typedef struct _SearchConditionModified SearchConditionModified;
-typedef struct _SearchConditionModifiedClass SearchConditionModifiedClass;
-
-#define SEARCH_CONDITION_MODIFIED_TYPE_CONTEXT (search_condition_modified_context_get_type ())
-
-#define SEARCH_CONDITION_MODIFIED_TYPE_STATE (search_condition_modified_state_get_type ())
-
-#define TYPE_SEARCH_CONDITION_RATING (search_condition_rating_get_type ())
-#define SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRating))
-#define SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass))
-#define IS_SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_RATING))
-#define IS_SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_RATING))
-#define SEARCH_CONDITION_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass))
-
-typedef struct _SearchConditionRating SearchConditionRating;
-typedef struct _SearchConditionRatingClass SearchConditionRatingClass;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define SEARCH_CONDITION_RATING_TYPE_CONTEXT (search_condition_rating_context_get_type ())
-
-#define TYPE_SEARCH_CONDITION_DATE (search_condition_date_get_type ())
-#define SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDate))
-#define SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass))
-#define IS_SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_DATE))
-#define IS_SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_DATE))
-#define SEARCH_CONDITION_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass))
-
-typedef struct _SearchConditionDate SearchConditionDate;
-typedef struct _SearchConditionDateClass SearchConditionDateClass;
-
-#define SEARCH_CONDITION_DATE_TYPE_CONTEXT (search_condition_date_context_get_type ())
-#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SavedSearchID {
- gint64 id;
-};
-
-typedef enum {
- SEARCH_OPERATOR_ANY = 0,
- SEARCH_OPERATOR_ALL,
- SEARCH_OPERATOR_NONE
-} SearchOperator;
-
-struct _SavedSearchRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SavedSearchRowPrivate * priv;
- SavedSearchID search_id;
- gchar* name;
- SearchOperator operator;
- GeeList* conditions;
-};
-
-struct _SavedSearchRowClass {
- GTypeClass parent_class;
- void (*finalize) (SavedSearchRow *self);
-};
-
-struct _ParamSpecSavedSearchRow {
- GParamSpec parent_instance;
-};
-
-struct _DatabaseTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DatabaseTablePrivate * priv;
- gchar* table_name;
-};
-
-struct _DatabaseTableClass {
- GTypeClass parent_class;
- void (*finalize) (DatabaseTable *self);
-};
-
-struct _SavedSearchDBTable {
- DatabaseTable parent_instance;
- SavedSearchDBTablePrivate * priv;
-};
-
-struct _SavedSearchDBTableClass {
- DatabaseTableClass parent_class;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-typedef enum {
- SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT = 0,
- SEARCH_CONDITION_SEARCH_TYPE_TITLE,
- SEARCH_CONDITION_SEARCH_TYPE_TAG,
- SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME,
- SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME,
- SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE,
- SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE,
- SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE,
- SEARCH_CONDITION_SEARCH_TYPE_RATING,
- SEARCH_CONDITION_SEARCH_TYPE_COMMENT,
- SEARCH_CONDITION_SEARCH_TYPE_DATE
-} SearchConditionSearchType;
-
-typedef enum {
- SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS = 0,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY,
- SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH,
- SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH,
- SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_SET
-} SearchConditionTextContext;
-
-typedef enum {
- SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS = 0,
- SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT
-} SearchConditionMediaTypeContext;
-
-typedef enum {
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL = 0,
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW,
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO
-} SearchConditionMediaTypeMediaType;
-
-typedef enum {
- SEARCH_CONDITION_FLAGGED_STATE_FLAGGED = 0,
- SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED
-} SearchConditionFlaggedState;
-
-typedef enum {
- SEARCH_CONDITION_MODIFIED_CONTEXT_HAS = 0,
- SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO
-} SearchConditionModifiedContext;
-
-typedef enum {
- SEARCH_CONDITION_MODIFIED_STATE_MODIFIED = 0,
- SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES,
- SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES
-} SearchConditionModifiedState;
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER = 0,
- SEARCH_CONDITION_RATING_CONTEXT_ONLY,
- SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER
-} SearchConditionRatingContext;
-
-typedef enum {
- SEARCH_CONDITION_DATE_CONTEXT_EXACT = 0,
- SEARCH_CONDITION_DATE_CONTEXT_AFTER,
- SEARCH_CONDITION_DATE_CONTEXT_BEFORE,
- SEARCH_CONDITION_DATE_CONTEXT_BETWEEN,
- SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET
-} SearchConditionDateContext;
-
-
-static gpointer saved_search_row_parent_class = NULL;
-static gpointer saved_search_db_table_parent_class = NULL;
-static SavedSearchDBTable* saved_search_db_table_instance;
-static SavedSearchDBTable* saved_search_db_table_instance = NULL;
-extern sqlite3* database_table_db;
-
-GType saved_search_id_get_type (void) G_GNUC_CONST;
-SavedSearchID* saved_search_id_dup (const SavedSearchID* self);
-void saved_search_id_free (SavedSearchID* self);
-#define SAVED_SEARCH_ID_INVALID ((gint64) -1)
-void saved_search_id_init (SavedSearchID *self,
- gint64 id);
-gboolean saved_search_id_is_invalid (SavedSearchID *self);
-gboolean saved_search_id_is_valid (SavedSearchID *self);
-gpointer saved_search_row_ref (gpointer instance);
-void saved_search_row_unref (gpointer instance);
-GParamSpec* param_spec_saved_search_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_saved_search_row (GValue* value,
- gpointer v_object);
-void value_take_saved_search_row (GValue* value,
- gpointer v_object);
-gpointer value_get_saved_search_row (const GValue* value);
-GType saved_search_row_get_type (void) G_GNUC_CONST;
-GType search_operator_get_type (void) G_GNUC_CONST;
-gpointer search_condition_ref (gpointer instance);
-void search_condition_unref (gpointer instance);
-GParamSpec* param_spec_search_condition (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_search_condition (GValue* value,
- gpointer v_object);
-void value_take_search_condition (GValue* value,
- gpointer v_object);
-gpointer value_get_search_condition (const GValue* value);
-GType search_condition_get_type (void) G_GNUC_CONST;
-SavedSearchRow* saved_search_row_new (void);
-SavedSearchRow* saved_search_row_construct (GType object_type);
-static void saved_search_row_finalize (SavedSearchRow * obj);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType saved_search_db_table_get_type (void) G_GNUC_CONST;
-static SavedSearchDBTable* saved_search_db_table_new (void);
-static SavedSearchDBTable* saved_search_db_table_construct (GType object_type);
-DatabaseTable* database_table_construct (GType object_type);
-void database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name);
-void database_table_fatal (const gchar* op,
- gint res);
-SavedSearchDBTable* saved_search_db_table_get_instance (void);
-GQuark database_error_quark (void);
-SavedSearchRow* saved_search_db_table_add (SavedSearchDBTable* self,
- const gchar* name,
- SearchOperator operator,
- GeeArrayList* conditions,
- GError** error);
-gchar* search_operator_to_string (SearchOperator self);
-void database_table_throw_error (const gchar* method,
- gint res,
- GError** error);
-static void saved_search_db_table_add_condition (SavedSearchDBTable* self,
- SavedSearchID* id,
- SearchCondition* condition,
- GError** error);
-GType search_condition_text_get_type (void) G_GNUC_CONST;
-GType search_condition_search_type_get_type (void) G_GNUC_CONST;
-SearchConditionSearchType search_condition_get_search_type (SearchCondition* self);
-gchar* search_condition_search_type_to_string (SearchConditionSearchType self);
-GType search_condition_text_context_get_type (void) G_GNUC_CONST;
-SearchConditionTextContext search_condition_text_get_context (SearchConditionText* self);
-gchar* search_condition_text_context_to_string (SearchConditionTextContext self);
-const gchar* search_condition_text_get_text (SearchConditionText* self);
-GType search_condition_media_type_get_type (void) G_GNUC_CONST;
-GType search_condition_media_type_context_get_type (void) G_GNUC_CONST;
-SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchConditionMediaType* self);
-gchar* search_condition_media_type_context_to_string (SearchConditionMediaTypeContext self);
-GType search_condition_media_type_media_type_get_type (void) G_GNUC_CONST;
-SearchConditionMediaTypeMediaType search_condition_media_type_get_media_type (SearchConditionMediaType* self);
-gchar* search_condition_media_type_media_type_to_string (SearchConditionMediaTypeMediaType self);
-GType search_condition_flagged_get_type (void) G_GNUC_CONST;
-GType search_condition_flagged_state_get_type (void) G_GNUC_CONST;
-SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionFlagged* self);
-gchar* search_condition_flagged_state_to_string (SearchConditionFlaggedState self);
-GType search_condition_modified_get_type (void) G_GNUC_CONST;
-GType search_condition_modified_context_get_type (void) G_GNUC_CONST;
-SearchConditionModifiedContext search_condition_modified_get_context (SearchConditionModified* self);
-gchar* search_condition_modified_context_to_string (SearchConditionModifiedContext self);
-GType search_condition_modified_state_get_type (void) G_GNUC_CONST;
-SearchConditionModifiedState search_condition_modified_get_state (SearchConditionModified* self);
-gchar* search_condition_modified_state_to_string (SearchConditionModifiedState self);
-GType search_condition_rating_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-Rating search_condition_rating_get_rating (SearchConditionRating* self);
-gint rating_serialize (Rating self);
-GType search_condition_rating_context_get_type (void) G_GNUC_CONST;
-SearchConditionRatingContext search_condition_rating_get_context (SearchConditionRating* self);
-gchar* search_condition_rating_context_to_string (SearchConditionRatingContext self);
-GType search_condition_date_get_type (void) G_GNUC_CONST;
-GType search_condition_date_context_get_type (void) G_GNUC_CONST;
-SearchConditionDateContext search_condition_date_get_context (SearchConditionDate* self);
-gchar* search_condition_date_context_to_string (SearchConditionDateContext self);
-GDateTime* search_condition_date_get_date_one (SearchConditionDate* self);
-GDateTime* search_condition_date_get_date_two (SearchConditionDate* self);
-static void saved_search_db_table_remove_conditions_for_search_id (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error);
-static void saved_search_db_table_remove_conditions_for_table (SavedSearchDBTable* self,
- const gchar* table_name,
- SavedSearchID* search_id,
- GError** error);
-static GeeList* saved_search_db_table_get_conditions_for_id (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error);
-SearchConditionSearchType search_condition_search_type_from_string (const gchar* str);
-SearchConditionTextContext search_condition_text_context_from_string (const gchar* str);
-SearchConditionText* search_condition_text_new (SearchConditionSearchType search_type,
- const gchar* text,
- SearchConditionTextContext context);
-SearchConditionText* search_condition_text_construct (GType object_type,
- SearchConditionSearchType search_type,
- const gchar* text,
- SearchConditionTextContext context);
-SearchConditionMediaTypeContext search_condition_media_type_context_from_string (const gchar* str);
-SearchConditionMediaTypeMediaType search_condition_media_type_media_type_from_string (const gchar* str);
-SearchConditionMediaType* search_condition_media_type_new (SearchConditionSearchType search_type,
- SearchConditionMediaTypeContext context,
- SearchConditionMediaTypeMediaType media_type);
-SearchConditionMediaType* search_condition_media_type_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionMediaTypeContext context,
- SearchConditionMediaTypeMediaType media_type);
-SearchConditionFlaggedState search_condition_flagged_state_from_string (const gchar* str);
-SearchConditionFlagged* search_condition_flagged_new (SearchConditionSearchType search_type,
- SearchConditionFlaggedState state);
-SearchConditionFlagged* search_condition_flagged_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionFlaggedState state);
-SearchConditionModifiedContext search_condition_modified_context_from_string (const gchar* str);
-SearchConditionModifiedState search_condition_modified_state_from_string (const gchar* str);
-SearchConditionModified* search_condition_modified_new (SearchConditionSearchType search_type,
- SearchConditionModifiedContext context,
- SearchConditionModifiedState state);
-SearchConditionModified* search_condition_modified_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionModifiedContext context,
- SearchConditionModifiedState state);
-Rating rating_unserialize (gint value);
-SearchConditionRatingContext search_condition_rating_context_from_string (const gchar* str);
-SearchConditionRating* search_condition_rating_new (SearchConditionSearchType search_type,
- Rating rating,
- SearchConditionRatingContext context);
-SearchConditionRating* search_condition_rating_construct (GType object_type,
- SearchConditionSearchType search_type,
- Rating rating,
- SearchConditionRatingContext context);
-SearchConditionDateContext search_condition_date_context_from_string (const gchar* str);
-SearchConditionDate* search_condition_date_new (SearchConditionSearchType search_type,
- SearchConditionDateContext context,
- GDateTime* date_one,
- GDateTime* date_two);
-SearchConditionDate* search_condition_date_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionDateContext context,
- GDateTime* date_one,
- GDateTime* date_two);
-void saved_search_db_table_create_from_row (SavedSearchDBTable* self,
- SavedSearchRow* row,
- SavedSearchID* result,
- GError** error);
-void saved_search_db_table_remove (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error);
-void database_table_delete_by_id (DatabaseTable* self,
- gint64 id,
- GError** error);
-SavedSearchRow* saved_search_db_table_get_row (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error);
-SearchOperator search_operator_from_string (const gchar* str);
-GeeList* saved_search_db_table_get_all_rows (SavedSearchDBTable* self,
- GError** error);
-void saved_search_db_table_rename (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- const gchar* new_name,
- GError** error);
-void database_table_update_text_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text,
- GError** error);
-static void saved_search_db_table_finalize (DatabaseTable * obj);
-
-
-void
-saved_search_id_init (SavedSearchID *self,
- gint64 id)
-{
-#line 12 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- memset (self, 0, sizeof (SavedSearchID));
-#line 13 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- (*self).id = id;
-#line 513 "SavedSearchDBTable.c"
-}
-
-
-gboolean
-saved_search_id_is_invalid (SavedSearchID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = (*self).id;
-#line 17 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- result = _tmp0_ == SAVED_SEARCH_ID_INVALID;
-#line 17 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return result;
-#line 528 "SavedSearchDBTable.c"
-}
-
-
-gboolean
-saved_search_id_is_valid (SavedSearchID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = (*self).id;
-#line 21 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- result = _tmp0_ != SAVED_SEARCH_ID_INVALID;
-#line 21 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return result;
-#line 543 "SavedSearchDBTable.c"
-}
-
-
-SavedSearchID*
-saved_search_id_dup (const SavedSearchID* self)
-{
- SavedSearchID* dup;
-#line 7 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- dup = g_new0 (SavedSearchID, 1);
-#line 7 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- memcpy (dup, self, sizeof (SavedSearchID));
-#line 7 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return dup;
-#line 557 "SavedSearchDBTable.c"
-}
-
-
-void
-saved_search_id_free (SavedSearchID* self)
-{
-#line 7 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_free (self);
-#line 566 "SavedSearchDBTable.c"
-}
-
-
-GType
-saved_search_id_get_type (void)
-{
- static volatile gsize saved_search_id_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_id_type_id__volatile)) {
- GType saved_search_id_type_id;
- saved_search_id_type_id = g_boxed_type_register_static ("SavedSearchID", (GBoxedCopyFunc) saved_search_id_dup, (GBoxedFreeFunc) saved_search_id_free);
- g_once_init_leave (&saved_search_id_type_id__volatile, saved_search_id_type_id);
- }
- return saved_search_id_type_id__volatile;
-}
-
-
-SavedSearchRow*
-saved_search_row_construct (GType object_type)
-{
- SavedSearchRow* self = NULL;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- self = (SavedSearchRow*) g_type_create_instance (object_type);
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return self;
-#line 591 "SavedSearchDBTable.c"
-}
-
-
-SavedSearchRow*
-saved_search_row_new (void)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return saved_search_row_construct (TYPE_SAVED_SEARCH_ROW);
-#line 600 "SavedSearchDBTable.c"
-}
-
-
-static void
-value_saved_search_row_init (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- value->data[0].v_pointer = NULL;
-#line 609 "SavedSearchDBTable.c"
-}
-
-
-static void
-value_saved_search_row_free_value (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_row_unref (value->data[0].v_pointer);
-#line 620 "SavedSearchDBTable.c"
- }
-}
-
-
-static void
-value_saved_search_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- dest_value->data[0].v_pointer = saved_search_row_ref (src_value->data[0].v_pointer);
-#line 633 "SavedSearchDBTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 637 "SavedSearchDBTable.c"
- }
-}
-
-
-static gpointer
-value_saved_search_row_peek_pointer (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return value->data[0].v_pointer;
-#line 647 "SavedSearchDBTable.c"
-}
-
-
-static gchar*
-value_saved_search_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (collect_values[0].v_pointer) {
-#line 659 "SavedSearchDBTable.c"
- SavedSearchRow * object;
- object = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 666 "SavedSearchDBTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 670 "SavedSearchDBTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- value->data[0].v_pointer = saved_search_row_ref (object);
-#line 674 "SavedSearchDBTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- value->data[0].v_pointer = NULL;
-#line 678 "SavedSearchDBTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 682 "SavedSearchDBTable.c"
-}
-
-
-static gchar*
-value_saved_search_row_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SavedSearchRow ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!object_p) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 698 "SavedSearchDBTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- *object_p = NULL;
-#line 704 "SavedSearchDBTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 708 "SavedSearchDBTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- *object_p = saved_search_row_ref (value->data[0].v_pointer);
-#line 712 "SavedSearchDBTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 716 "SavedSearchDBTable.c"
-}
-
-
-GParamSpec*
-param_spec_saved_search_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecSavedSearchRow* spec;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SAVED_SEARCH_ROW), NULL);
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return G_PARAM_SPEC (spec);
-#line 736 "SavedSearchDBTable.c"
-}
-
-
-gpointer
-value_get_saved_search_row (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_ROW), NULL);
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return value->data[0].v_pointer;
-#line 747 "SavedSearchDBTable.c"
-}
-
-
-void
-value_set_saved_search_row (GValue* value,
- gpointer v_object)
-{
- SavedSearchRow * old;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SAVED_SEARCH_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- value->data[0].v_pointer = v_object;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_row_ref (value->data[0].v_pointer);
-#line 770 "SavedSearchDBTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- value->data[0].v_pointer = NULL;
-#line 774 "SavedSearchDBTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_row_unref (old);
-#line 780 "SavedSearchDBTable.c"
- }
-}
-
-
-void
-value_take_saved_search_row (GValue* value,
- gpointer v_object)
-{
- SavedSearchRow * old;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SAVED_SEARCH_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- value->data[0].v_pointer = v_object;
-#line 802 "SavedSearchDBTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- value->data[0].v_pointer = NULL;
-#line 806 "SavedSearchDBTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_row_unref (old);
-#line 812 "SavedSearchDBTable.c"
- }
-}
-
-
-static void
-saved_search_row_class_init (SavedSearchRowClass * klass)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_row_parent_class = g_type_class_peek_parent (klass);
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- ((SavedSearchRowClass *) klass)->finalize = saved_search_row_finalize;
-#line 824 "SavedSearchDBTable.c"
-}
-
-
-static void
-saved_search_row_instance_init (SavedSearchRow * self)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- self->ref_count = 1;
-#line 833 "SavedSearchDBTable.c"
-}
-
-
-static void
-saved_search_row_finalize (SavedSearchRow * obj)
-{
- SavedSearchRow * self;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_ROW, SavedSearchRow);
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_signal_handlers_destroy (self);
-#line 28 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_free0 (self->name);
-#line 30 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (self->conditions);
-#line 849 "SavedSearchDBTable.c"
-}
-
-
-GType
-saved_search_row_get_type (void)
-{
- static volatile gsize saved_search_row_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_saved_search_row_init, value_saved_search_row_free_value, value_saved_search_row_copy_value, value_saved_search_row_peek_pointer, "p", value_saved_search_row_collect_value, "p", value_saved_search_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchRow), 0, (GInstanceInitFunc) saved_search_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType saved_search_row_type_id;
- saved_search_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SavedSearchRow", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&saved_search_row_type_id__volatile, saved_search_row_type_id);
- }
- return saved_search_row_type_id__volatile;
-}
-
-
-gpointer
-saved_search_row_ref (gpointer instance)
-{
- SavedSearchRow * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return instance;
-#line 878 "SavedSearchDBTable.c"
-}
-
-
-void
-saved_search_row_unref (gpointer instance)
-{
- SavedSearchRow * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- SAVED_SEARCH_ROW_GET_CLASS (self)->finalize (self);
-#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 893 "SavedSearchDBTable.c"
- }
-}
-
-
-static SavedSearchDBTable*
-saved_search_db_table_construct (GType object_type)
-{
- SavedSearchDBTable* self = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3* _tmp7_;
- sqlite3_stmt* _tmp8_ = NULL;
- gint _tmp9_;
- gint _tmp10_;
- sqlite3_stmt* _tmp11_;
- gint _tmp12_;
- sqlite3* _tmp14_;
- sqlite3_stmt* _tmp15_ = NULL;
- gint _tmp16_;
- gint _tmp17_;
- sqlite3_stmt* _tmp18_;
- gint _tmp19_;
- sqlite3* _tmp21_;
- sqlite3_stmt* _tmp22_ = NULL;
- gint _tmp23_;
- gint _tmp24_;
- sqlite3_stmt* _tmp25_;
- gint _tmp26_;
- sqlite3* _tmp28_;
- sqlite3_stmt* _tmp29_ = NULL;
- gint _tmp30_;
- gint _tmp31_;
- sqlite3_stmt* _tmp32_;
- gint _tmp33_;
- sqlite3* _tmp35_;
- sqlite3_stmt* _tmp36_ = NULL;
- gint _tmp37_;
- gint _tmp38_;
- sqlite3_stmt* _tmp39_;
- gint _tmp40_;
- sqlite3* _tmp42_;
- sqlite3_stmt* _tmp43_ = NULL;
- gint _tmp44_;
- gint _tmp45_;
- sqlite3_stmt* _tmp46_;
- gint _tmp47_;
- sqlite3* _tmp49_;
- sqlite3_stmt* _tmp50_ = NULL;
- gint _tmp51_;
- gint _tmp52_;
- sqlite3_stmt* _tmp53_;
- gint _tmp54_;
- sqlite3* _tmp56_;
- sqlite3_stmt* _tmp57_ = NULL;
- gint _tmp58_;
- gint _tmp59_;
- sqlite3_stmt* _tmp60_;
- gint _tmp61_;
- sqlite3* _tmp63_;
- sqlite3_stmt* _tmp64_ = NULL;
- gint _tmp65_;
- gint _tmp66_;
- sqlite3_stmt* _tmp67_;
- gint _tmp68_;
- sqlite3* _tmp70_;
- sqlite3_stmt* _tmp71_ = NULL;
- gint _tmp72_;
- gint _tmp73_;
- sqlite3_stmt* _tmp74_;
- gint _tmp75_;
- sqlite3* _tmp77_;
- sqlite3_stmt* _tmp78_ = NULL;
- gint _tmp79_;
- gint _tmp80_;
- sqlite3_stmt* _tmp81_;
- gint _tmp82_;
- sqlite3* _tmp84_;
- sqlite3_stmt* _tmp85_ = NULL;
- gint _tmp86_;
- gint _tmp87_;
- sqlite3_stmt* _tmp88_;
- gint _tmp89_;
-#line 36 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- self = (SavedSearchDBTable*) database_table_construct (object_type);
-#line 37 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "SavedSearchDBTable");
-#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = database_table_db;
-#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable " "(" "id INTEGER PRIMARY KEY, " "name TEXT UNIQUE NOT NULL, " "operator TEXT NOT NULL" ")", -1, &_tmp1_, NULL);
-#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp1_;
-#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp2_;
-#line 48 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = res;
-#line 48 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 50 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = stmt;
-#line 50 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 51 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = res;
-#line 51 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 1008 "SavedSearchDBTable.c"
- gint _tmp6_;
-#line 52 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp6_ = res;
-#line 52 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable", _tmp6_);
-#line 1014 "SavedSearchDBTable.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp7_ = database_table_db;
-#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = sqlite3_prepare_v2 (_tmp7_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Text " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "context TEXT NOT NULL, " "text TEXT" ")", -1, &_tmp8_, NULL);
-#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp8_;
-#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp9_;
-#line 64 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp10_ = res;
-#line 64 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp10_ == SQLITE_OK, "res == Sqlite.OK");
-#line 66 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp11_ = stmt;
-#line 66 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp11_);
-#line 67 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp12_ = res;
-#line 67 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp12_ != SQLITE_DONE) {
-#line 1038 "SavedSearchDBTable.c"
- gint _tmp13_;
-#line 68 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_ = res;
-#line 68 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Text", _tmp13_);
-#line 1044 "SavedSearchDBTable.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp14_ = database_table_db;
-#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp16_ = sqlite3_prepare_v2 (_tmp14_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_MediaType " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "context TEXT NOT NULL, " "type TEXT NOT_NULL" ")", -1, &_tmp15_, NULL);
-#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp15_;
-#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp16_;
-#line 80 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp17_ = res;
-#line 80 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK");
-#line 82 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp18_ = stmt;
-#line 82 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp18_);
-#line 83 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp19_ = res;
-#line 83 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp19_ != SQLITE_DONE) {
-#line 1068 "SavedSearchDBTable.c"
- gint _tmp20_;
-#line 84 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_ = res;
-#line 84 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_MediaType", _tmp20_);
-#line 1074 "SavedSearchDBTable.c"
- }
-#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp21_ = database_table_db;
-#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp23_ = sqlite3_prepare_v2 (_tmp21_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Flagged " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "flag_state TEXT NOT NULL" ")", -1, &_tmp22_, NULL);
-#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp22_;
-#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp23_;
-#line 95 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp24_ = res;
-#line 95 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp24_ == SQLITE_OK, "res == Sqlite.OK");
-#line 97 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp25_ = stmt;
-#line 97 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp25_);
-#line 98 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp26_ = res;
-#line 98 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp26_ != SQLITE_DONE) {
-#line 1098 "SavedSearchDBTable.c"
- gint _tmp27_;
-#line 99 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp27_ = res;
-#line 99 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Flagged", _tmp27_);
-#line 1104 "SavedSearchDBTable.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp28_ = database_table_db;
-#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp30_ = sqlite3_prepare_v2 (_tmp28_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Modified " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "context TEXT NOT NULL, " "modified_state TEXT NOT NULL" ")", -1, &_tmp29_, NULL);
-#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp29_;
-#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp30_;
-#line 111 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp31_ = res;
-#line 111 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp31_ == SQLITE_OK, "res == Sqlite.OK");
-#line 113 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp32_ = stmt;
-#line 113 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp32_);
-#line 114 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp33_ = res;
-#line 114 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp33_ != SQLITE_DONE) {
-#line 1128 "SavedSearchDBTable.c"
- gint _tmp34_;
-#line 115 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp34_ = res;
-#line 115 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Modified", _tmp34_);
-#line 1134 "SavedSearchDBTable.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp35_ = database_table_db;
-#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp37_ = sqlite3_prepare_v2 (_tmp35_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Rating " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "rating INTEGER NOT_NULL, " "context TEXT NOT NULL" ")", -1, &_tmp36_, NULL);
-#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp36_;
-#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp37_;
-#line 127 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp38_ = res;
-#line 127 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp38_ == SQLITE_OK, "res == Sqlite.OK");
-#line 129 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp39_ = stmt;
-#line 129 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp39_);
-#line 130 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp40_ = res;
-#line 130 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp40_ != SQLITE_DONE) {
-#line 1158 "SavedSearchDBTable.c"
- gint _tmp41_;
-#line 131 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp41_ = res;
-#line 131 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Rating", _tmp41_);
-#line 1164 "SavedSearchDBTable.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp42_ = database_table_db;
-#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp44_ = sqlite3_prepare_v2 (_tmp42_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Date " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "context TEXT NOT NULL, " "date_one INTEGER NOT_NULL, " "date_two INTEGER NOT_NULL" ")", -1, &_tmp43_, NULL);
-#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp43_;
-#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp44_;
-#line 144 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp45_ = res;
-#line 144 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp45_ == SQLITE_OK, "res == Sqlite.OK");
-#line 146 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp46_ = stmt;
-#line 146 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp46_);
-#line 147 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp47_ = res;
-#line 147 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp47_ != SQLITE_DONE) {
-#line 1188 "SavedSearchDBTable.c"
- gint _tmp48_;
-#line 148 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp48_ = res;
-#line 148 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Rating", _tmp48_);
-#line 1194 "SavedSearchDBTable.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp49_ = database_table_db;
-#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp51_ = sqlite3_prepare_v2 (_tmp49_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Text_Index " "ON SavedSearchDBTable_Text(search_id)", -1, &_tmp50_, NULL);
-#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp50_;
-#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp51_;
-#line 154 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp52_ = res;
-#line 154 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp52_ == SQLITE_OK, "res == Sqlite.OK");
-#line 155 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp53_ = stmt;
-#line 155 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp53_);
-#line 156 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp54_ = res;
-#line 156 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp54_ != SQLITE_DONE) {
-#line 1218 "SavedSearchDBTable.c"
- gint _tmp55_;
-#line 157 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp55_ = res;
-#line 157 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Text_Index", _tmp55_);
-#line 1224 "SavedSearchDBTable.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp56_ = database_table_db;
-#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp58_ = sqlite3_prepare_v2 (_tmp56_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_MediaType_Index " "ON SavedSearchDBTable_MediaType(search_id)", -1, &_tmp57_, NULL);
-#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp57_;
-#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp58_;
-#line 162 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp59_ = res;
-#line 162 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp59_ == SQLITE_OK, "res == Sqlite.OK");
-#line 163 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp60_ = stmt;
-#line 163 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp60_);
-#line 164 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp61_ = res;
-#line 164 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp61_ != SQLITE_DONE) {
-#line 1248 "SavedSearchDBTable.c"
- gint _tmp62_;
-#line 165 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp62_ = res;
-#line 165 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_MediaType_Index", _tmp62_);
-#line 1254 "SavedSearchDBTable.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp63_ = database_table_db;
-#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp65_ = sqlite3_prepare_v2 (_tmp63_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Flagged_Index " "ON SavedSearchDBTable_Flagged(search_id)", -1, &_tmp64_, NULL);
-#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp64_;
-#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp65_;
-#line 170 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp66_ = res;
-#line 170 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp66_ == SQLITE_OK, "res == Sqlite.OK");
-#line 171 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp67_ = stmt;
-#line 171 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp67_);
-#line 172 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp68_ = res;
-#line 172 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp68_ != SQLITE_DONE) {
-#line 1278 "SavedSearchDBTable.c"
- gint _tmp69_;
-#line 173 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp69_ = res;
-#line 173 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Flagged_Index", _tmp69_);
-#line 1284 "SavedSearchDBTable.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp70_ = database_table_db;
-#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp72_ = sqlite3_prepare_v2 (_tmp70_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Modified_Index " "ON SavedSearchDBTable_Modified(search_id)", -1, &_tmp71_, NULL);
-#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp71_;
-#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp72_;
-#line 178 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp73_ = res;
-#line 178 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp73_ == SQLITE_OK, "res == Sqlite.OK");
-#line 179 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp74_ = stmt;
-#line 179 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp74_);
-#line 180 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp75_ = res;
-#line 180 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp75_ != SQLITE_DONE) {
-#line 1308 "SavedSearchDBTable.c"
- gint _tmp76_;
-#line 181 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp76_ = res;
-#line 181 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Modified_Index", _tmp76_);
-#line 1314 "SavedSearchDBTable.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp77_ = database_table_db;
-#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp79_ = sqlite3_prepare_v2 (_tmp77_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Rating_Index " "ON SavedSearchDBTable_Rating(search_id)", -1, &_tmp78_, NULL);
-#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp78_;
-#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp79_;
-#line 186 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp80_ = res;
-#line 186 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp80_ == SQLITE_OK, "res == Sqlite.OK");
-#line 187 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp81_ = stmt;
-#line 187 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp81_);
-#line 188 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp82_ = res;
-#line 188 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp82_ != SQLITE_DONE) {
-#line 1338 "SavedSearchDBTable.c"
- gint _tmp83_;
-#line 189 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp83_ = res;
-#line 189 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Rating_Index", _tmp83_);
-#line 1344 "SavedSearchDBTable.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp84_ = database_table_db;
-#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp86_ = sqlite3_prepare_v2 (_tmp84_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Date_Index " "ON SavedSearchDBTable_Date(search_id)", -1, &_tmp85_, NULL);
-#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp85_;
-#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp86_;
-#line 194 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp87_ = res;
-#line 194 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp87_ == SQLITE_OK, "res == Sqlite.OK");
-#line 195 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp88_ = stmt;
-#line 195 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp88_);
-#line 196 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp89_ = res;
-#line 196 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp89_ != SQLITE_DONE) {
-#line 1368 "SavedSearchDBTable.c"
- gint _tmp90_;
-#line 197 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp90_ = res;
-#line 197 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_fatal ("create SavedSearchDBTable_Date_Index", _tmp90_);
-#line 1374 "SavedSearchDBTable.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 36 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return self;
-#line 1380 "SavedSearchDBTable.c"
-}
-
-
-static SavedSearchDBTable*
-saved_search_db_table_new (void)
-{
-#line 36 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return saved_search_db_table_construct (TYPE_SAVED_SEARCH_DB_TABLE);
-#line 1389 "SavedSearchDBTable.c"
-}
-
-
-static gpointer
-_database_table_ref0 (gpointer self)
-{
-#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return self ? database_table_ref (self) : NULL;
-#line 1398 "SavedSearchDBTable.c"
-}
-
-
-SavedSearchDBTable*
-saved_search_db_table_get_instance (void)
-{
- SavedSearchDBTable* result = NULL;
- SavedSearchDBTable* _tmp0_;
- SavedSearchDBTable* _tmp2_;
- SavedSearchDBTable* _tmp3_;
-#line 201 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = saved_search_db_table_instance;
-#line 201 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp0_ == NULL) {
-#line 1413 "SavedSearchDBTable.c"
- SavedSearchDBTable* _tmp1_;
-#line 202 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp1_ = saved_search_db_table_new ();
-#line 202 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _database_table_unref0 (saved_search_db_table_instance);
-#line 202 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_instance = _tmp1_;
-#line 1421 "SavedSearchDBTable.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = saved_search_db_table_instance;
-#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = _database_table_ref0 (_tmp2_);
-#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- result = _tmp3_;
-#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return result;
-#line 1431 "SavedSearchDBTable.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1440 "SavedSearchDBTable.c"
-}
-
-
-SavedSearchRow*
-saved_search_db_table_add (SavedSearchDBTable* self,
- const gchar* name,
- SearchOperator operator,
- GeeArrayList* conditions,
- GError** error)
-{
- SavedSearchRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gchar* _tmp5_;
- GDestroyNotify _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gchar* _tmp9_;
- GDestroyNotify _tmp10_;
- gint _tmp11_;
- sqlite3_stmt* _tmp12_;
- gint _tmp13_;
- SavedSearchRow* row = NULL;
- SavedSearchRow* _tmp15_;
- SavedSearchRow* _tmp16_;
- sqlite3* _tmp17_;
- SavedSearchRow* _tmp18_;
- gchar* _tmp19_;
- SavedSearchRow* _tmp20_;
- SavedSearchRow* _tmp21_;
- GeeList* _tmp22_;
- GError * _inner_error_ = NULL;
-#line 207 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_DB_TABLE (self), NULL);
-#line 207 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 207 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (GEE_IS_ARRAY_LIST (conditions), NULL);
-#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = database_table_db;
-#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO SavedSearchDBTable (name, operator) VALUES (?, ?)", -1, &_tmp1_, NULL);
-#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp1_;
-#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp2_;
-#line 212 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = res;
-#line 212 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 214 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = stmt;
-#line 214 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = g_strdup (name);
-#line 214 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp6_ = g_free;
-#line 214 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_);
-#line 215 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp7_ = res;
-#line 215 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 216 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp8_ = stmt;
-#line 216 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = search_operator_to_string (operator);
-#line 216 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp10_ = g_free;
-#line 216 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp8_, 2, _tmp9_, -1, _tmp10_);
-#line 217 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp11_ = res;
-#line 217 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK");
-#line 219 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp12_ = stmt;
-#line 219 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp12_);
-#line 220 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_ = res;
-#line 220 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp13_ != SQLITE_DONE) {
-#line 1530 "SavedSearchDBTable.c"
- gint _tmp14_;
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp14_ = res;
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable.add", _tmp14_, &_inner_error_);
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 1546 "SavedSearchDBTable.c"
- } else {
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 1556 "SavedSearchDBTable.c"
- }
- }
- }
-#line 223 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp15_ = saved_search_row_new ();
-#line 223 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- row = _tmp15_;
-#line 224 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp16_ = row;
-#line 224 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp17_ = database_table_db;
-#line 224 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_id_init (&_tmp16_->search_id, sqlite3_last_insert_rowid (_tmp17_));
-#line 225 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp18_ = row;
-#line 225 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp19_ = g_strdup (name);
-#line 225 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_free0 (_tmp18_->name);
-#line 225 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp18_->name = _tmp19_;
-#line 226 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_ = row;
-#line 226 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_->operator = operator;
-#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp21_ = row;
-#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (conditions, GEE_TYPE_LIST, GeeList));
-#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_tmp21_->conditions);
-#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp21_->conditions = _tmp22_;
-#line 1590 "SavedSearchDBTable.c"
- {
- GeeArrayList* _sc_list = NULL;
- GeeArrayList* _tmp23_;
- gint _sc_size = 0;
- GeeArrayList* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- gint _sc_index = 0;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp23_ = _g_object_ref0 (conditions);
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sc_list = _tmp23_;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp24_ = _sc_list;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp25_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp26_ = _tmp25_;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sc_size = _tmp26_;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sc_index = -1;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 1615 "SavedSearchDBTable.c"
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- SearchCondition* sc = NULL;
- GeeArrayList* _tmp30_;
- gint _tmp31_;
- gpointer _tmp32_;
- SavedSearchRow* _tmp33_;
- SavedSearchID _tmp34_;
- SearchCondition* _tmp35_;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp27_ = _sc_index;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sc_index = _tmp27_ + 1;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp28_ = _sc_index;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp29_ = _sc_size;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!(_tmp28_ < _tmp29_)) {
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 1638 "SavedSearchDBTable.c"
- }
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp30_ = _sc_list;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp31_ = _sc_index;
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp32_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp31_);
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- sc = (SearchCondition*) _tmp32_;
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp33_ = row;
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp34_ = _tmp33_->search_id;
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp35_ = sc;
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_add_condition (self, &_tmp34_, _tmp35_, &_inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (sc);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_sc_list);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _saved_search_row_unref0 (row);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 1672 "SavedSearchDBTable.c"
- } else {
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (sc);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_sc_list);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _saved_search_row_unref0 (row);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 1688 "SavedSearchDBTable.c"
- }
- }
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (sc);
-#line 1693 "SavedSearchDBTable.c"
- }
-#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_sc_list);
-#line 1697 "SavedSearchDBTable.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- result = row;
-#line 233 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 233 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return result;
-#line 1705 "SavedSearchDBTable.c"
-}
-
-
-static gpointer
-_search_condition_ref0 (gpointer self)
-{
-#line 238 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return self ? search_condition_ref (self) : NULL;
-#line 1714 "SavedSearchDBTable.c"
-}
-
-
-static void
-saved_search_db_table_add_condition (SavedSearchDBTable* self,
- SavedSearchID* id,
- SearchCondition* condition,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 236 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self));
-#line 236 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (id != NULL);
-#line 236 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (IS_SEARCH_CONDITION (condition));
-#line 237 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_TEXT)) {
-#line 1733 "SavedSearchDBTable.c"
- SearchConditionText* text = NULL;
- SearchConditionText* _tmp0_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp1_;
- sqlite3_stmt* _tmp2_ = NULL;
- gint _tmp3_;
- gint _tmp4_;
- sqlite3_stmt* _tmp5_;
- SavedSearchID _tmp6_;
- gint64 _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- SearchConditionText* _tmp10_;
- SearchConditionSearchType _tmp11_;
- SearchConditionSearchType _tmp12_;
- gchar* _tmp13_;
- GDestroyNotify _tmp14_;
- gint _tmp15_;
- sqlite3_stmt* _tmp16_;
- SearchConditionText* _tmp17_;
- SearchConditionTextContext _tmp18_;
- SearchConditionTextContext _tmp19_;
- gchar* _tmp20_;
- GDestroyNotify _tmp21_;
- gint _tmp22_;
- sqlite3_stmt* _tmp23_;
- SearchConditionText* _tmp24_;
- const gchar* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
- GDestroyNotify _tmp28_;
- gint _tmp29_;
- sqlite3_stmt* _tmp30_;
- gint _tmp31_;
-#line 238 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_TEXT) ? ((SearchConditionText*) condition) : NULL);
-#line 238 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- text = _tmp0_;
-#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp1_ = database_table_db;
-#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = sqlite3_prepare_v2 (_tmp1_, "INSERT INTO SavedSearchDBTable_Text (search_id, search_type, context, " "text) VALUES (?, ?, ?, ?)", -1, &_tmp2_, NULL);
-#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp2_;
-#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp3_;
-#line 243 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = res;
-#line 243 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp4_ == SQLITE_OK, "res == Sqlite.OK");
-#line 245 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = stmt;
-#line 245 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp6_ = *id;
-#line 245 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp7_ = _tmp6_.id;
-#line 245 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp5_, 1, _tmp7_);
-#line 246 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp8_ = res;
-#line 246 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = stmt;
-#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp10_ = text;
-#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp11_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp12_ = _tmp11_;
-#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_ = search_condition_search_type_to_string (_tmp12_);
-#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp14_ = g_free;
-#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp9_, 2, _tmp13_, -1, _tmp14_);
-#line 249 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp15_ = res;
-#line 249 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK");
-#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp16_ = stmt;
-#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp17_ = text;
-#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp18_ = search_condition_text_get_context (_tmp17_);
-#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp19_ = _tmp18_;
-#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_ = search_condition_text_context_to_string (_tmp19_);
-#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp21_ = g_free;
-#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp16_, 3, _tmp20_, -1, _tmp21_);
-#line 252 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp22_ = res;
-#line 252 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp22_ == SQLITE_OK, "res == Sqlite.OK");
-#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp23_ = stmt;
-#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp24_ = text;
-#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp25_ = search_condition_text_get_text (_tmp24_);
-#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp26_ = _tmp25_;
-#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp27_ = g_strdup (_tmp26_);
-#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp28_ = g_free;
-#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp23_, 4, _tmp27_, -1, _tmp28_);
-#line 255 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp29_ = res;
-#line 255 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp29_ == SQLITE_OK, "res == Sqlite.OK");
-#line 257 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp30_ = stmt;
-#line 257 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp30_);
-#line 258 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp31_ = res;
-#line 258 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp31_ != SQLITE_DONE) {
-#line 1861 "SavedSearchDBTable.c"
- gint _tmp32_;
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp32_ = res;
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Text.add", _tmp32_, &_inner_error_);
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (text);
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 1879 "SavedSearchDBTable.c"
- } else {
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (text);
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 1891 "SavedSearchDBTable.c"
- }
- }
- }
-#line 237 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 237 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (text);
-#line 1899 "SavedSearchDBTable.c"
- } else {
-#line 260 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_MEDIA_TYPE)) {
-#line 1903 "SavedSearchDBTable.c"
- SearchConditionMediaType* media_type = NULL;
- SearchConditionMediaType* _tmp33_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp34_;
- sqlite3_stmt* _tmp35_ = NULL;
- gint _tmp36_;
- gint _tmp37_;
- sqlite3_stmt* _tmp38_;
- SavedSearchID _tmp39_;
- gint64 _tmp40_;
- gint _tmp41_;
- sqlite3_stmt* _tmp42_;
- SearchConditionMediaType* _tmp43_;
- SearchConditionSearchType _tmp44_;
- SearchConditionSearchType _tmp45_;
- gchar* _tmp46_;
- GDestroyNotify _tmp47_;
- gint _tmp48_;
- sqlite3_stmt* _tmp49_;
- SearchConditionMediaType* _tmp50_;
- SearchConditionMediaTypeContext _tmp51_;
- SearchConditionMediaTypeContext _tmp52_;
- gchar* _tmp53_;
- GDestroyNotify _tmp54_;
- gint _tmp55_;
- sqlite3_stmt* _tmp56_;
- SearchConditionMediaType* _tmp57_;
- SearchConditionMediaTypeMediaType _tmp58_;
- SearchConditionMediaTypeMediaType _tmp59_;
- gchar* _tmp60_;
- GDestroyNotify _tmp61_;
- gint _tmp62_;
- sqlite3_stmt* _tmp63_;
- gint _tmp64_;
-#line 261 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp33_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_MEDIA_TYPE) ? ((SearchConditionMediaType*) condition) : NULL);
-#line 261 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- media_type = _tmp33_;
-#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp34_ = database_table_db;
-#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp36_ = sqlite3_prepare_v2 (_tmp34_, "INSERT INTO SavedSearchDBTable_MediaType (search_id, search_type, cont" \
-"ext, " "type) VALUES (?, ?, ?, ?)", -1, &_tmp35_, NULL);
-#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp35_;
-#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp36_;
-#line 266 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp37_ = res;
-#line 266 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp37_ == SQLITE_OK, "res == Sqlite.OK");
-#line 268 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp38_ = stmt;
-#line 268 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp39_ = *id;
-#line 268 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp40_ = _tmp39_.id;
-#line 268 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp38_, 1, _tmp40_);
-#line 269 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp41_ = res;
-#line 269 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp41_ == SQLITE_OK, "res == Sqlite.OK");
-#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp42_ = stmt;
-#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp43_ = media_type;
-#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp44_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp45_ = _tmp44_;
-#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp46_ = search_condition_search_type_to_string (_tmp45_);
-#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp47_ = g_free;
-#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp42_, 2, _tmp46_, -1, _tmp47_);
-#line 272 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp48_ = res;
-#line 272 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp48_ == SQLITE_OK, "res == Sqlite.OK");
-#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp49_ = stmt;
-#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp50_ = media_type;
-#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp51_ = search_condition_media_type_get_context (_tmp50_);
-#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp52_ = _tmp51_;
-#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp53_ = search_condition_media_type_context_to_string (_tmp52_);
-#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp54_ = g_free;
-#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp49_, 3, _tmp53_, -1, _tmp54_);
-#line 275 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp55_ = res;
-#line 275 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp55_ == SQLITE_OK, "res == Sqlite.OK");
-#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp56_ = stmt;
-#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp57_ = media_type;
-#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp58_ = search_condition_media_type_get_media_type (_tmp57_);
-#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp59_ = _tmp58_;
-#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp60_ = search_condition_media_type_media_type_to_string (_tmp59_);
-#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp61_ = g_free;
-#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp56_, 4, _tmp60_, -1, _tmp61_);
-#line 278 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp62_ = res;
-#line 278 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp62_ == SQLITE_OK, "res == Sqlite.OK");
-#line 280 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp63_ = stmt;
-#line 280 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp63_);
-#line 281 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp64_ = res;
-#line 281 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp64_ != SQLITE_DONE) {
-#line 2031 "SavedSearchDBTable.c"
- gint _tmp65_;
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp65_ = res;
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_MediaType.add", _tmp65_, &_inner_error_);
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (media_type);
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2049 "SavedSearchDBTable.c"
- } else {
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (media_type);
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2061 "SavedSearchDBTable.c"
- }
- }
- }
-#line 260 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 260 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (media_type);
-#line 2069 "SavedSearchDBTable.c"
- } else {
-#line 283 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_FLAGGED)) {
-#line 2073 "SavedSearchDBTable.c"
- SearchConditionFlagged* flag_state = NULL;
- SearchConditionFlagged* _tmp66_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp67_;
- sqlite3_stmt* _tmp68_ = NULL;
- gint _tmp69_;
- gint _tmp70_;
- sqlite3_stmt* _tmp71_;
- SavedSearchID _tmp72_;
- gint64 _tmp73_;
- gint _tmp74_;
- sqlite3_stmt* _tmp75_;
- SearchConditionFlagged* _tmp76_;
- SearchConditionSearchType _tmp77_;
- SearchConditionSearchType _tmp78_;
- gchar* _tmp79_;
- GDestroyNotify _tmp80_;
- gint _tmp81_;
- sqlite3_stmt* _tmp82_;
- SearchConditionFlagged* _tmp83_;
- SearchConditionFlaggedState _tmp84_;
- SearchConditionFlaggedState _tmp85_;
- gchar* _tmp86_;
- GDestroyNotify _tmp87_;
- gint _tmp88_;
- sqlite3_stmt* _tmp89_;
- gint _tmp90_;
-#line 284 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp66_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_FLAGGED) ? ((SearchConditionFlagged*) condition) : NULL);
-#line 284 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- flag_state = _tmp66_;
-#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp67_ = database_table_db;
-#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp69_ = sqlite3_prepare_v2 (_tmp67_, "INSERT INTO SavedSearchDBTable_Flagged (search_id, search_type, " "flag_state) VALUES (?, ?, ?)", -1, &_tmp68_, NULL);
-#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp68_;
-#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp69_;
-#line 289 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp70_ = res;
-#line 289 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp70_ == SQLITE_OK, "res == Sqlite.OK");
-#line 291 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp71_ = stmt;
-#line 291 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp72_ = *id;
-#line 291 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp73_ = _tmp72_.id;
-#line 291 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp71_, 1, _tmp73_);
-#line 292 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp74_ = res;
-#line 292 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp74_ == SQLITE_OK, "res == Sqlite.OK");
-#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp75_ = stmt;
-#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp76_ = flag_state;
-#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp77_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp78_ = _tmp77_;
-#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp79_ = search_condition_search_type_to_string (_tmp78_);
-#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp80_ = g_free;
-#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp75_, 2, _tmp79_, -1, _tmp80_);
-#line 295 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp81_ = res;
-#line 295 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp81_ == SQLITE_OK, "res == Sqlite.OK");
-#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp82_ = stmt;
-#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp83_ = flag_state;
-#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp84_ = search_condition_flagged_get_state (_tmp83_);
-#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp85_ = _tmp84_;
-#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp86_ = search_condition_flagged_state_to_string (_tmp85_);
-#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp87_ = g_free;
-#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp82_, 3, _tmp86_, -1, _tmp87_);
-#line 298 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp88_ = res;
-#line 298 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp88_ == SQLITE_OK, "res == Sqlite.OK");
-#line 300 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp89_ = stmt;
-#line 300 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp89_);
-#line 301 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp90_ = res;
-#line 301 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp90_ != SQLITE_DONE) {
-#line 2176 "SavedSearchDBTable.c"
- gint _tmp91_;
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp91_ = res;
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Flagged.add", _tmp91_, &_inner_error_);
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (flag_state);
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2194 "SavedSearchDBTable.c"
- } else {
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (flag_state);
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2206 "SavedSearchDBTable.c"
- }
- }
- }
-#line 283 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 283 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (flag_state);
-#line 2214 "SavedSearchDBTable.c"
- } else {
-#line 303 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_MODIFIED)) {
-#line 2218 "SavedSearchDBTable.c"
- SearchConditionModified* modified_state = NULL;
- SearchConditionModified* _tmp92_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp93_;
- sqlite3_stmt* _tmp94_ = NULL;
- gint _tmp95_;
- gint _tmp96_;
- sqlite3_stmt* _tmp97_;
- SavedSearchID _tmp98_;
- gint64 _tmp99_;
- gint _tmp100_;
- sqlite3_stmt* _tmp101_;
- SearchConditionModified* _tmp102_;
- SearchConditionSearchType _tmp103_;
- SearchConditionSearchType _tmp104_;
- gchar* _tmp105_;
- GDestroyNotify _tmp106_;
- gint _tmp107_;
- sqlite3_stmt* _tmp108_;
- SearchConditionModified* _tmp109_;
- SearchConditionModifiedContext _tmp110_;
- SearchConditionModifiedContext _tmp111_;
- gchar* _tmp112_;
- GDestroyNotify _tmp113_;
- gint _tmp114_;
- sqlite3_stmt* _tmp115_;
- SearchConditionModified* _tmp116_;
- SearchConditionModifiedState _tmp117_;
- SearchConditionModifiedState _tmp118_;
- gchar* _tmp119_;
- GDestroyNotify _tmp120_;
- gint _tmp121_;
- sqlite3_stmt* _tmp122_;
- gint _tmp123_;
-#line 304 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp92_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_MODIFIED) ? ((SearchConditionModified*) condition) : NULL);
-#line 304 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- modified_state = _tmp92_;
-#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp93_ = database_table_db;
-#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp95_ = sqlite3_prepare_v2 (_tmp93_, "INSERT INTO SavedSearchDBTable_Modified (search_id, search_type, conte" \
-"xt, " "modified_state) VALUES (?, ?, ?, ?)", -1, &_tmp94_, NULL);
-#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp94_;
-#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp95_;
-#line 309 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp96_ = res;
-#line 309 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp96_ == SQLITE_OK, "res == Sqlite.OK");
-#line 311 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp97_ = stmt;
-#line 311 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp98_ = *id;
-#line 311 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp99_ = _tmp98_.id;
-#line 311 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp97_, 1, _tmp99_);
-#line 312 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp100_ = res;
-#line 312 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp100_ == SQLITE_OK, "res == Sqlite.OK");
-#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp101_ = stmt;
-#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp102_ = modified_state;
-#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp103_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp104_ = _tmp103_;
-#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp105_ = search_condition_search_type_to_string (_tmp104_);
-#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp106_ = g_free;
-#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp101_, 2, _tmp105_, -1, _tmp106_);
-#line 315 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp107_ = res;
-#line 315 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp107_ == SQLITE_OK, "res == Sqlite.OK");
-#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp108_ = stmt;
-#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp109_ = modified_state;
-#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp110_ = search_condition_modified_get_context (_tmp109_);
-#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp111_ = _tmp110_;
-#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp112_ = search_condition_modified_context_to_string (_tmp111_);
-#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp113_ = g_free;
-#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp108_, 3, _tmp112_, -1, _tmp113_);
-#line 318 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp114_ = res;
-#line 318 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp114_ == SQLITE_OK, "res == Sqlite.OK");
-#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp115_ = stmt;
-#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp116_ = modified_state;
-#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp117_ = search_condition_modified_get_state (_tmp116_);
-#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp118_ = _tmp117_;
-#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp119_ = search_condition_modified_state_to_string (_tmp118_);
-#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp120_ = g_free;
-#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp115_, 4, _tmp119_, -1, _tmp120_);
-#line 321 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp121_ = res;
-#line 321 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp121_ == SQLITE_OK, "res == Sqlite.OK");
-#line 323 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp122_ = stmt;
-#line 323 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp122_);
-#line 324 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp123_ = res;
-#line 324 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp123_ != SQLITE_DONE) {
-#line 2346 "SavedSearchDBTable.c"
- gint _tmp124_;
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp124_ = res;
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Modified.add", _tmp124_, &_inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (modified_state);
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2364 "SavedSearchDBTable.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (modified_state);
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2376 "SavedSearchDBTable.c"
- }
- }
- }
-#line 303 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 303 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (modified_state);
-#line 2384 "SavedSearchDBTable.c"
- } else {
-#line 326 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_RATING)) {
-#line 2388 "SavedSearchDBTable.c"
- SearchConditionRating* rating = NULL;
- SearchConditionRating* _tmp125_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp126_;
- sqlite3_stmt* _tmp127_ = NULL;
- gint _tmp128_;
- gint _tmp129_;
- sqlite3_stmt* _tmp130_;
- SavedSearchID _tmp131_;
- gint64 _tmp132_;
- gint _tmp133_;
- sqlite3_stmt* _tmp134_;
- SearchConditionRating* _tmp135_;
- SearchConditionSearchType _tmp136_;
- SearchConditionSearchType _tmp137_;
- gchar* _tmp138_;
- GDestroyNotify _tmp139_;
- gint _tmp140_;
- sqlite3_stmt* _tmp141_;
- SearchConditionRating* _tmp142_;
- Rating _tmp143_;
- Rating _tmp144_;
- gint _tmp145_;
- sqlite3_stmt* _tmp146_;
- SearchConditionRating* _tmp147_;
- SearchConditionRatingContext _tmp148_;
- SearchConditionRatingContext _tmp149_;
- gchar* _tmp150_;
- GDestroyNotify _tmp151_;
- gint _tmp152_;
- sqlite3_stmt* _tmp153_;
- gint _tmp154_;
-#line 327 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp125_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_RATING) ? ((SearchConditionRating*) condition) : NULL);
-#line 327 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- rating = _tmp125_;
-#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp126_ = database_table_db;
-#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp128_ = sqlite3_prepare_v2 (_tmp126_, "INSERT INTO SavedSearchDBTable_Rating (search_id, search_type, rating," \
-" " "context) VALUES (?, ?, ?, ?)", -1, &_tmp127_, NULL);
-#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp127_;
-#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp128_;
-#line 332 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp129_ = res;
-#line 332 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp129_ == SQLITE_OK, "res == Sqlite.OK");
-#line 334 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp130_ = stmt;
-#line 334 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp131_ = *id;
-#line 334 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp132_ = _tmp131_.id;
-#line 334 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp130_, 1, _tmp132_);
-#line 335 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp133_ = res;
-#line 335 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp133_ == SQLITE_OK, "res == Sqlite.OK");
-#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp134_ = stmt;
-#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp135_ = rating;
-#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp136_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp137_ = _tmp136_;
-#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp138_ = search_condition_search_type_to_string (_tmp137_);
-#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp139_ = g_free;
-#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp134_, 2, _tmp138_, -1, _tmp139_);
-#line 338 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp140_ = res;
-#line 338 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp140_ == SQLITE_OK, "res == Sqlite.OK");
-#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp141_ = stmt;
-#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp142_ = rating;
-#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp143_ = search_condition_rating_get_rating (_tmp142_);
-#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp144_ = _tmp143_;
-#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int (_tmp141_, 3, rating_serialize (_tmp144_));
-#line 341 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp145_ = res;
-#line 341 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp145_ == SQLITE_OK, "res == Sqlite.OK");
-#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp146_ = stmt;
-#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp147_ = rating;
-#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp148_ = search_condition_rating_get_context (_tmp147_);
-#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp149_ = _tmp148_;
-#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp150_ = search_condition_rating_context_to_string (_tmp149_);
-#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp151_ = g_free;
-#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp146_, 4, _tmp150_, -1, _tmp151_);
-#line 344 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp152_ = res;
-#line 344 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp152_ == SQLITE_OK, "res == Sqlite.OK");
-#line 346 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp153_ = stmt;
-#line 346 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp153_);
-#line 347 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp154_ = res;
-#line 347 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp154_ != SQLITE_DONE) {
-#line 2510 "SavedSearchDBTable.c"
- gint _tmp155_;
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp155_ = res;
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Rating.add", _tmp155_, &_inner_error_);
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (rating);
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2528 "SavedSearchDBTable.c"
- } else {
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (rating);
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2540 "SavedSearchDBTable.c"
- }
- }
- }
-#line 326 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 326 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (rating);
-#line 2548 "SavedSearchDBTable.c"
- } else {
-#line 349 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_DATE)) {
-#line 2552 "SavedSearchDBTable.c"
- SearchConditionDate* date = NULL;
- SearchConditionDate* _tmp156_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp157_;
- sqlite3_stmt* _tmp158_ = NULL;
- gint _tmp159_;
- gint _tmp160_;
- sqlite3_stmt* _tmp161_;
- SavedSearchID _tmp162_;
- gint64 _tmp163_;
- gint _tmp164_;
- sqlite3_stmt* _tmp165_;
- SearchConditionDate* _tmp166_;
- SearchConditionSearchType _tmp167_;
- SearchConditionSearchType _tmp168_;
- gchar* _tmp169_;
- GDestroyNotify _tmp170_;
- gint _tmp171_;
- sqlite3_stmt* _tmp172_;
- SearchConditionDate* _tmp173_;
- SearchConditionDateContext _tmp174_;
- SearchConditionDateContext _tmp175_;
- gchar* _tmp176_;
- GDestroyNotify _tmp177_;
- gint _tmp178_;
- sqlite3_stmt* _tmp179_;
- SearchConditionDate* _tmp180_;
- GDateTime* _tmp181_;
- GDateTime* _tmp182_;
- gint _tmp183_;
- sqlite3_stmt* _tmp184_;
- SearchConditionDate* _tmp185_;
- GDateTime* _tmp186_;
- GDateTime* _tmp187_;
- gint _tmp188_;
- sqlite3_stmt* _tmp189_;
- gint _tmp190_;
-#line 350 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp156_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_DATE) ? ((SearchConditionDate*) condition) : NULL);
-#line 350 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- date = _tmp156_;
-#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp157_ = database_table_db;
-#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp159_ = sqlite3_prepare_v2 (_tmp157_, "INSERT INTO SavedSearchDBTable_Date (search_id, search_type, " "context, date_one, date_two) VALUES (?, ?, ?, ?, ?)", -1, &_tmp158_, NULL);
-#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp158_;
-#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp159_;
-#line 355 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp160_ = res;
-#line 355 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp160_ == SQLITE_OK, "res == Sqlite.OK");
-#line 357 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp161_ = stmt;
-#line 357 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp162_ = *id;
-#line 357 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp163_ = _tmp162_.id;
-#line 357 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp161_, 1, _tmp163_);
-#line 358 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp164_ = res;
-#line 358 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp164_ == SQLITE_OK, "res == Sqlite.OK");
-#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp165_ = stmt;
-#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp166_ = date;
-#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp167_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp166_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp168_ = _tmp167_;
-#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp169_ = search_condition_search_type_to_string (_tmp168_);
-#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp170_ = g_free;
-#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp165_, 2, _tmp169_, -1, _tmp170_);
-#line 361 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp171_ = res;
-#line 361 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp171_ == SQLITE_OK, "res == Sqlite.OK");
-#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp172_ = stmt;
-#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp173_ = date;
-#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp174_ = search_condition_date_get_context (_tmp173_);
-#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp175_ = _tmp174_;
-#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp176_ = search_condition_date_context_to_string (_tmp175_);
-#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp177_ = g_free;
-#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp172_, 3, _tmp176_, -1, _tmp177_);
-#line 364 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp178_ = res;
-#line 364 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp178_ == SQLITE_OK, "res == Sqlite.OK");
-#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp179_ = stmt;
-#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp180_ = date;
-#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp181_ = search_condition_date_get_date_one (_tmp180_);
-#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp182_ = _tmp181_;
-#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp179_, 4, g_date_time_to_unix (_tmp182_));
-#line 367 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp183_ = res;
-#line 367 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp183_ == SQLITE_OK, "res == Sqlite.OK");
-#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp184_ = stmt;
-#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp185_ = date;
-#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp186_ = search_condition_date_get_date_two (_tmp185_);
-#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp187_ = _tmp186_;
-#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp184_, 5, g_date_time_to_unix (_tmp187_));
-#line 370 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp188_ = res;
-#line 370 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp188_ == SQLITE_OK, "res == Sqlite.OK");
-#line 372 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp189_ = stmt;
-#line 372 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp189_);
-#line 373 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp190_ = res;
-#line 373 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp190_ != SQLITE_DONE) {
-#line 2693 "SavedSearchDBTable.c"
- gint _tmp191_;
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp191_ = res;
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Date.add", _tmp191_, &_inner_error_);
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (date);
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2711 "SavedSearchDBTable.c"
- } else {
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (date);
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2723 "SavedSearchDBTable.c"
- }
- }
- }
-#line 349 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 349 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (date);
-#line 2731 "SavedSearchDBTable.c"
- } else {
-#line 376 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_assert_not_reached ();
-#line 2735 "SavedSearchDBTable.c"
- }
- }
- }
- }
- }
- }
-}
-
-
-static void
-saved_search_db_table_remove_conditions_for_search_id (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error)
-{
- SavedSearchID _tmp0_;
- SavedSearchID _tmp1_;
- SavedSearchID _tmp2_;
- SavedSearchID _tmp3_;
- SavedSearchID _tmp4_;
- SavedSearchID _tmp5_;
- GError * _inner_error_ = NULL;
-#line 381 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self));
-#line 381 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (search_id != NULL);
-#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = *search_id;
-#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Text", &_tmp0_, &_inner_error_);
-#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2773 "SavedSearchDBTable.c"
- } else {
-#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2781 "SavedSearchDBTable.c"
- }
- }
-#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp1_ = *search_id;
-#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_MediaType", &_tmp1_, &_inner_error_);
-#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2796 "SavedSearchDBTable.c"
- } else {
-#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2804 "SavedSearchDBTable.c"
- }
- }
-#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = *search_id;
-#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Flagged", &_tmp2_, &_inner_error_);
-#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2819 "SavedSearchDBTable.c"
- } else {
-#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2827 "SavedSearchDBTable.c"
- }
- }
-#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = *search_id;
-#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Modified", &_tmp3_, &_inner_error_);
-#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2842 "SavedSearchDBTable.c"
- } else {
-#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2850 "SavedSearchDBTable.c"
- }
- }
-#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = *search_id;
-#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Rating", &_tmp4_, &_inner_error_);
-#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2865 "SavedSearchDBTable.c"
- } else {
-#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2873 "SavedSearchDBTable.c"
- }
- }
-#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = *search_id;
-#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Date", &_tmp5_, &_inner_error_);
-#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2888 "SavedSearchDBTable.c"
- } else {
-#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2896 "SavedSearchDBTable.c"
- }
- }
-}
-
-
-static void
-saved_search_db_table_remove_conditions_for_table (SavedSearchDBTable* self,
- const gchar* table_name,
- SavedSearchID* search_id,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- sqlite3_stmt* _tmp3_ = NULL;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- sqlite3_stmt* _tmp7_;
- SavedSearchID _tmp8_;
- gint64 _tmp9_;
- gint _tmp10_;
- sqlite3_stmt* _tmp11_;
- gint _tmp12_;
- GError * _inner_error_ = NULL;
-#line 390 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self));
-#line 390 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (table_name != NULL);
-#line 390 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (search_id != NULL);
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = database_table_db;
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp1_ = g_strdup_printf ("DELETE FROM %s WHERE search_id=?", table_name);
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = _tmp1_;
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = sqlite3_prepare_v2 (_tmp0_, _tmp2_, -1, &_tmp3_, NULL);
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp3_;
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = _tmp4_;
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_free0 (_tmp2_);
-#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp5_;
-#line 394 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp6_ = res;
-#line 394 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK");
-#line 396 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp7_ = stmt;
-#line 396 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp8_ = *search_id;
-#line 396 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = _tmp8_.id;
-#line 396 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp7_, 1, _tmp9_);
-#line 397 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp10_ = res;
-#line 397 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp10_ == SQLITE_OK, "res == Sqlite.OK");
-#line 399 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp11_ = stmt;
-#line 399 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp11_);
-#line 400 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp12_ = res;
-#line 400 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp12_ != SQLITE_DONE) {
-#line 2972 "SavedSearchDBTable.c"
- gchar* _tmp13_;
- gchar* _tmp14_;
- gint _tmp15_;
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_ = g_strdup_printf ("%s.remove", table_name);
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp14_ = _tmp13_;
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp15_ = res;
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error (_tmp14_, _tmp15_, &_inner_error_);
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_free0 (_tmp14_);
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 2996 "SavedSearchDBTable.c"
- } else {
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 3006 "SavedSearchDBTable.c"
- }
- }
- }
-#line 390 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 3012 "SavedSearchDBTable.c"
-}
-
-
-static GeeList*
-saved_search_db_table_get_conditions_for_id (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error)
-{
- GeeList* result = NULL;
- GeeList* list = NULL;
- GeeArrayList* _tmp0_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp1_;
- sqlite3_stmt* _tmp2_ = NULL;
- gint _tmp3_;
- gint _tmp4_;
- sqlite3_stmt* _tmp5_;
- SavedSearchID _tmp6_;
- gint64 _tmp7_;
- gint _tmp8_;
- sqlite3* _tmp23_;
- sqlite3_stmt* _tmp24_ = NULL;
- gint _tmp25_;
- gint _tmp26_;
- sqlite3_stmt* _tmp27_;
- SavedSearchID _tmp28_;
- gint64 _tmp29_;
- gint _tmp30_;
- sqlite3* _tmp45_;
- sqlite3_stmt* _tmp46_ = NULL;
- gint _tmp47_;
- gint _tmp48_;
- sqlite3_stmt* _tmp49_;
- SavedSearchID _tmp50_;
- gint64 _tmp51_;
- gint _tmp52_;
- sqlite3* _tmp65_;
- sqlite3_stmt* _tmp66_ = NULL;
- gint _tmp67_;
- gint _tmp68_;
- sqlite3_stmt* _tmp69_;
- SavedSearchID _tmp70_;
- gint64 _tmp71_;
- gint _tmp72_;
- sqlite3* _tmp87_;
- sqlite3_stmt* _tmp88_ = NULL;
- gint _tmp89_;
- gint _tmp90_;
- sqlite3_stmt* _tmp91_;
- SavedSearchID _tmp92_;
- gint64 _tmp93_;
- gint _tmp94_;
- sqlite3* _tmp108_;
- sqlite3_stmt* _tmp109_ = NULL;
- gint _tmp110_;
- gint _tmp111_;
- sqlite3_stmt* _tmp112_;
- SavedSearchID _tmp113_;
- gint64 _tmp114_;
- gint _tmp115_;
- GError * _inner_error_ = NULL;
-#line 405 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_DB_TABLE (self), NULL);
-#line 405 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (search_id != NULL, NULL);
-#line 407 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = gee_array_list_new (TYPE_SEARCH_CONDITION, (GBoxedCopyFunc) search_condition_ref, (GDestroyNotify) search_condition_unref, NULL, NULL, NULL);
-#line 407 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- list = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp1_ = database_table_db;
-#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = sqlite3_prepare_v2 (_tmp1_, "SELECT search_type, context, text FROM SavedSearchDBTable_Text " "WHERE search_id=?", -1, &_tmp2_, NULL);
-#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp2_;
-#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp3_;
-#line 415 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = res;
-#line 415 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp4_ == SQLITE_OK, "res == Sqlite.OK");
-#line 417 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = stmt;
-#line 417 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp6_ = *search_id;
-#line 417 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp7_ = _tmp6_.id;
-#line 417 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp5_, 1, _tmp7_);
-#line 418 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp8_ = res;
-#line 418 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 3109 "SavedSearchDBTable.c"
- {
- gboolean _tmp9_ = FALSE;
-#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = TRUE;
-#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 3116 "SavedSearchDBTable.c"
- sqlite3_stmt* _tmp10_;
- gint _tmp11_;
- SearchConditionText* condition = NULL;
- sqlite3_stmt* _tmp14_;
- const gchar* _tmp15_;
- sqlite3_stmt* _tmp16_;
- const gchar* _tmp17_;
- sqlite3_stmt* _tmp18_;
- const gchar* _tmp19_;
- SearchConditionText* _tmp20_;
- GeeList* _tmp21_;
- SearchConditionText* _tmp22_;
-#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!_tmp9_) {
-#line 3131 "SavedSearchDBTable.c"
- }
-#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = FALSE;
-#line 421 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp10_ = stmt;
-#line 421 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp10_);
-#line 422 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp11_ = res;
-#line 422 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp11_ == SQLITE_DONE) {
-#line 423 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 3145 "SavedSearchDBTable.c"
- } else {
- gint _tmp12_;
-#line 424 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp12_ = res;
-#line 424 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp12_ != SQLITE_ROW) {
-#line 3152 "SavedSearchDBTable.c"
- gint _tmp13_;
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_ = res;
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Text.get_all_rows", _tmp13_, &_inner_error_);
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3170 "SavedSearchDBTable.c"
- } else {
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3182 "SavedSearchDBTable.c"
- }
- }
- }
- }
-#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp14_ = stmt;
-#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp15_ = sqlite3_column_text (_tmp14_, 0);
-#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp16_ = stmt;
-#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp17_ = sqlite3_column_text (_tmp16_, 2);
-#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp18_ = stmt;
-#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp19_ = sqlite3_column_text (_tmp18_, 1);
-#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_ = search_condition_text_new (search_condition_search_type_from_string (_tmp15_), _tmp17_, search_condition_text_context_from_string (_tmp19_));
-#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- condition = _tmp20_;
-#line 432 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp21_ = list;
-#line 432 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp22_ = condition;
-#line 432 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (condition);
-#line 3211 "SavedSearchDBTable.c"
- }
- }
-#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp23_ = database_table_db;
-#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp25_ = sqlite3_prepare_v2 (_tmp23_, "SELECT search_type, context, type FROM SavedSearchDBTable_MediaType " "WHERE search_id=?", -1, &_tmp24_, NULL);
-#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp24_;
-#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp25_;
-#line 439 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp26_ = res;
-#line 439 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp26_ == SQLITE_OK, "res == Sqlite.OK");
-#line 441 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp27_ = stmt;
-#line 441 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp28_ = *search_id;
-#line 441 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp29_ = _tmp28_.id;
-#line 441 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp27_, 1, _tmp29_);
-#line 442 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp30_ = res;
-#line 442 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp30_ == SQLITE_OK, "res == Sqlite.OK");
-#line 3240 "SavedSearchDBTable.c"
- {
- gboolean _tmp31_ = FALSE;
-#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp31_ = TRUE;
-#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 3247 "SavedSearchDBTable.c"
- sqlite3_stmt* _tmp32_;
- gint _tmp33_;
- SearchConditionMediaType* condition = NULL;
- sqlite3_stmt* _tmp36_;
- const gchar* _tmp37_;
- sqlite3_stmt* _tmp38_;
- const gchar* _tmp39_;
- sqlite3_stmt* _tmp40_;
- const gchar* _tmp41_;
- SearchConditionMediaType* _tmp42_;
- GeeList* _tmp43_;
- SearchConditionMediaType* _tmp44_;
-#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!_tmp31_) {
-#line 3262 "SavedSearchDBTable.c"
- }
-#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp31_ = FALSE;
-#line 445 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp32_ = stmt;
-#line 445 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp32_);
-#line 446 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp33_ = res;
-#line 446 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp33_ == SQLITE_DONE) {
-#line 447 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 3276 "SavedSearchDBTable.c"
- } else {
- gint _tmp34_;
-#line 448 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp34_ = res;
-#line 448 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp34_ != SQLITE_ROW) {
-#line 3283 "SavedSearchDBTable.c"
- gint _tmp35_;
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp35_ = res;
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_MediaType.get_all_rows", _tmp35_, &_inner_error_);
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3301 "SavedSearchDBTable.c"
- } else {
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3313 "SavedSearchDBTable.c"
- }
- }
- }
- }
-#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp36_ = stmt;
-#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp37_ = sqlite3_column_text (_tmp36_, 0);
-#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp38_ = stmt;
-#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp39_ = sqlite3_column_text (_tmp38_, 1);
-#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp40_ = stmt;
-#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp41_ = sqlite3_column_text (_tmp40_, 2);
-#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp42_ = search_condition_media_type_new (search_condition_search_type_from_string (_tmp37_), search_condition_media_type_context_from_string (_tmp39_), search_condition_media_type_media_type_from_string (_tmp41_));
-#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- condition = _tmp42_;
-#line 456 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp43_ = list;
-#line 456 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp44_ = condition;
-#line 456 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (condition);
-#line 3342 "SavedSearchDBTable.c"
- }
- }
-#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp45_ = database_table_db;
-#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp47_ = sqlite3_prepare_v2 (_tmp45_, "SELECT search_type, flag_state FROM SavedSearchDBTable_Flagged " "WHERE search_id=?", -1, &_tmp46_, NULL);
-#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp46_;
-#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp47_;
-#line 463 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp48_ = res;
-#line 463 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp48_ == SQLITE_OK, "res == Sqlite.OK");
-#line 465 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp49_ = stmt;
-#line 465 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp50_ = *search_id;
-#line 465 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp51_ = _tmp50_.id;
-#line 465 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp49_, 1, _tmp51_);
-#line 466 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp52_ = res;
-#line 466 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp52_ == SQLITE_OK, "res == Sqlite.OK");
-#line 3371 "SavedSearchDBTable.c"
- {
- gboolean _tmp53_ = FALSE;
-#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp53_ = TRUE;
-#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 3378 "SavedSearchDBTable.c"
- sqlite3_stmt* _tmp54_;
- gint _tmp55_;
- SearchConditionFlagged* condition = NULL;
- sqlite3_stmt* _tmp58_;
- const gchar* _tmp59_;
- sqlite3_stmt* _tmp60_;
- const gchar* _tmp61_;
- SearchConditionFlagged* _tmp62_;
- GeeList* _tmp63_;
- SearchConditionFlagged* _tmp64_;
-#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!_tmp53_) {
-#line 3391 "SavedSearchDBTable.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp53_ = FALSE;
-#line 469 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp54_ = stmt;
-#line 469 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp54_);
-#line 470 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp55_ = res;
-#line 470 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp55_ == SQLITE_DONE) {
-#line 471 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 3405 "SavedSearchDBTable.c"
- } else {
- gint _tmp56_;
-#line 472 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp56_ = res;
-#line 472 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp56_ != SQLITE_ROW) {
-#line 3412 "SavedSearchDBTable.c"
- gint _tmp57_;
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp57_ = res;
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Flagged.get_all_rows", _tmp57_, &_inner_error_);
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3430 "SavedSearchDBTable.c"
- } else {
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3442 "SavedSearchDBTable.c"
- }
- }
- }
- }
-#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp58_ = stmt;
-#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp59_ = sqlite3_column_text (_tmp58_, 0);
-#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp60_ = stmt;
-#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp61_ = sqlite3_column_text (_tmp60_, 1);
-#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp62_ = search_condition_flagged_new (search_condition_search_type_from_string (_tmp59_), search_condition_flagged_state_from_string (_tmp61_));
-#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- condition = _tmp62_;
-#line 479 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp63_ = list;
-#line 479 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp64_ = condition;
-#line 479 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (condition);
-#line 3467 "SavedSearchDBTable.c"
- }
- }
-#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp65_ = database_table_db;
-#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp67_ = sqlite3_prepare_v2 (_tmp65_, "SELECT search_type, context, modified_state FROM SavedSearchDBTable_Mo" \
-"dified " "WHERE search_id=?", -1, &_tmp66_, NULL);
-#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp66_;
-#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp67_;
-#line 486 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp68_ = res;
-#line 486 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp68_ == SQLITE_OK, "res == Sqlite.OK");
-#line 488 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp69_ = stmt;
-#line 488 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp70_ = *search_id;
-#line 488 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp71_ = _tmp70_.id;
-#line 488 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp69_, 1, _tmp71_);
-#line 489 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp72_ = res;
-#line 489 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp72_ == SQLITE_OK, "res == Sqlite.OK");
-#line 3496 "SavedSearchDBTable.c"
- {
- gboolean _tmp73_ = FALSE;
-#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp73_ = TRUE;
-#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 3503 "SavedSearchDBTable.c"
- sqlite3_stmt* _tmp74_;
- gint _tmp75_;
- SearchConditionModified* condition = NULL;
- sqlite3_stmt* _tmp78_;
- const gchar* _tmp79_;
- sqlite3_stmt* _tmp80_;
- const gchar* _tmp81_;
- sqlite3_stmt* _tmp82_;
- const gchar* _tmp83_;
- SearchConditionModified* _tmp84_;
- GeeList* _tmp85_;
- SearchConditionModified* _tmp86_;
-#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!_tmp73_) {
-#line 3518 "SavedSearchDBTable.c"
- }
-#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp73_ = FALSE;
-#line 492 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp74_ = stmt;
-#line 492 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp74_);
-#line 493 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp75_ = res;
-#line 493 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp75_ == SQLITE_DONE) {
-#line 494 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 3532 "SavedSearchDBTable.c"
- } else {
- gint _tmp76_;
-#line 495 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp76_ = res;
-#line 495 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp76_ != SQLITE_ROW) {
-#line 3539 "SavedSearchDBTable.c"
- gint _tmp77_;
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp77_ = res;
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Modified.get_all_rows", _tmp77_, &_inner_error_);
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3557 "SavedSearchDBTable.c"
- } else {
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3569 "SavedSearchDBTable.c"
- }
- }
- }
- }
-#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp78_ = stmt;
-#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp79_ = sqlite3_column_text (_tmp78_, 0);
-#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp80_ = stmt;
-#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp81_ = sqlite3_column_text (_tmp80_, 1);
-#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp82_ = stmt;
-#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp83_ = sqlite3_column_text (_tmp82_, 2);
-#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp84_ = search_condition_modified_new (search_condition_search_type_from_string (_tmp79_), search_condition_modified_context_from_string (_tmp81_), search_condition_modified_state_from_string (_tmp83_));
-#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- condition = _tmp84_;
-#line 503 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp85_ = list;
-#line 503 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp86_ = condition;
-#line 503 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (condition);
-#line 3598 "SavedSearchDBTable.c"
- }
- }
-#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp87_ = database_table_db;
-#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp89_ = sqlite3_prepare_v2 (_tmp87_, "SELECT search_type, rating, context FROM SavedSearchDBTable_Rating " "WHERE search_id=?", -1, &_tmp88_, NULL);
-#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp88_;
-#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp89_;
-#line 510 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp90_ = res;
-#line 510 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp90_ == SQLITE_OK, "res == Sqlite.OK");
-#line 512 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp91_ = stmt;
-#line 512 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp92_ = *search_id;
-#line 512 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp93_ = _tmp92_.id;
-#line 512 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp91_, 1, _tmp93_);
-#line 513 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp94_ = res;
-#line 513 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp94_ == SQLITE_OK, "res == Sqlite.OK");
-#line 3627 "SavedSearchDBTable.c"
- {
- gboolean _tmp95_ = FALSE;
-#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp95_ = TRUE;
-#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 3634 "SavedSearchDBTable.c"
- sqlite3_stmt* _tmp96_;
- gint _tmp97_;
- SearchConditionRating* condition = NULL;
- sqlite3_stmt* _tmp100_;
- const gchar* _tmp101_;
- sqlite3_stmt* _tmp102_;
- sqlite3_stmt* _tmp103_;
- const gchar* _tmp104_;
- SearchConditionRating* _tmp105_;
- GeeList* _tmp106_;
- SearchConditionRating* _tmp107_;
-#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!_tmp95_) {
-#line 3648 "SavedSearchDBTable.c"
- }
-#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp95_ = FALSE;
-#line 516 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp96_ = stmt;
-#line 516 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp96_);
-#line 517 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp97_ = res;
-#line 517 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp97_ == SQLITE_DONE) {
-#line 518 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 3662 "SavedSearchDBTable.c"
- } else {
- gint _tmp98_;
-#line 519 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp98_ = res;
-#line 519 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp98_ != SQLITE_ROW) {
-#line 3669 "SavedSearchDBTable.c"
- gint _tmp99_;
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp99_ = res;
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Rating.get_all_rows", _tmp99_, &_inner_error_);
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3687 "SavedSearchDBTable.c"
- } else {
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3699 "SavedSearchDBTable.c"
- }
- }
- }
- }
-#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp100_ = stmt;
-#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp101_ = sqlite3_column_text (_tmp100_, 0);
-#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp102_ = stmt;
-#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp103_ = stmt;
-#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp104_ = sqlite3_column_text (_tmp103_, 2);
-#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp105_ = search_condition_rating_new (search_condition_search_type_from_string (_tmp101_), rating_unserialize (sqlite3_column_int (_tmp102_, 1)), search_condition_rating_context_from_string (_tmp104_));
-#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- condition = _tmp105_;
-#line 527 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp106_ = list;
-#line 527 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp107_ = condition;
-#line 527 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (condition);
-#line 3726 "SavedSearchDBTable.c"
- }
- }
-#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp108_ = database_table_db;
-#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp110_ = sqlite3_prepare_v2 (_tmp108_, "SELECT search_type, context, date_one, date_two FROM SavedSearchDBTabl" \
-"e_Date " "WHERE search_id=?", -1, &_tmp109_, NULL);
-#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp109_;
-#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp110_;
-#line 534 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp111_ = res;
-#line 534 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp111_ == SQLITE_OK, "res == Sqlite.OK");
-#line 536 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp112_ = stmt;
-#line 536 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp113_ = *search_id;
-#line 536 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp114_ = _tmp113_.id;
-#line 536 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp112_, 1, _tmp114_);
-#line 537 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp115_ = res;
-#line 537 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp115_ == SQLITE_OK, "res == Sqlite.OK");
-#line 3755 "SavedSearchDBTable.c"
- {
- gboolean _tmp116_ = FALSE;
-#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp116_ = TRUE;
-#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 3762 "SavedSearchDBTable.c"
- sqlite3_stmt* _tmp117_;
- gint _tmp118_;
- SearchConditionDate* condition = NULL;
- sqlite3_stmt* _tmp121_;
- const gchar* _tmp122_;
- sqlite3_stmt* _tmp123_;
- const gchar* _tmp124_;
- sqlite3_stmt* _tmp125_;
- GDateTime* _tmp126_;
- GDateTime* _tmp127_;
- sqlite3_stmt* _tmp128_;
- GDateTime* _tmp129_;
- GDateTime* _tmp130_;
- SearchConditionDate* _tmp131_;
- SearchConditionDate* _tmp132_;
- GeeList* _tmp133_;
- SearchConditionDate* _tmp134_;
-#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!_tmp116_) {
-#line 3782 "SavedSearchDBTable.c"
- }
-#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp116_ = FALSE;
-#line 540 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp117_ = stmt;
-#line 540 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp117_);
-#line 541 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp118_ = res;
-#line 541 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp118_ == SQLITE_DONE) {
-#line 542 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 3796 "SavedSearchDBTable.c"
- } else {
- gint _tmp119_;
-#line 543 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp119_ = res;
-#line 543 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp119_ != SQLITE_ROW) {
-#line 3803 "SavedSearchDBTable.c"
- gint _tmp120_;
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp120_ = res;
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable_Date.get_all_rows", _tmp120_, &_inner_error_);
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3821 "SavedSearchDBTable.c"
- } else {
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (list);
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 3833 "SavedSearchDBTable.c"
- }
- }
- }
- }
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp121_ = stmt;
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp122_ = sqlite3_column_text (_tmp121_, 0);
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp123_ = stmt;
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp124_ = sqlite3_column_text (_tmp123_, 1);
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp125_ = stmt;
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp126_ = g_date_time_new_from_unix_local (sqlite3_column_int64 (_tmp125_, 2));
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp127_ = _tmp126_;
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp128_ = stmt;
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp129_ = g_date_time_new_from_unix_local (sqlite3_column_int64 (_tmp128_, 3));
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp130_ = _tmp129_;
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp131_ = search_condition_date_new (search_condition_search_type_from_string (_tmp122_), search_condition_date_context_from_string (_tmp124_), _tmp127_, _tmp130_);
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp132_ = _tmp131_;
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_date_time_unref0 (_tmp130_);
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_date_time_unref0 (_tmp127_);
-#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- condition = _tmp132_;
-#line 551 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp133_ = list;
-#line 551 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp134_ = condition;
-#line 551 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp134_, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (condition);
-#line 3876 "SavedSearchDBTable.c"
- }
- }
-#line 554 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- result = list;
-#line 554 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 554 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return result;
-#line 3885 "SavedSearchDBTable.c"
-}
-
-
-void
-saved_search_db_table_create_from_row (SavedSearchDBTable* self,
- SavedSearchRow* row,
- SavedSearchID* result,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- GDestroyNotify _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- SearchOperator _tmp10_;
- gchar* _tmp11_;
- GDestroyNotify _tmp12_;
- gint _tmp13_;
- sqlite3_stmt* _tmp14_;
- gint _tmp15_;
- SavedSearchID search_id = {0};
- sqlite3* _tmp17_;
- GError * _inner_error_ = NULL;
-#line 558 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self));
-#line 558 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (IS_SAVED_SEARCH_ROW (row));
-#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = database_table_db;
-#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO SavedSearchDBTable (name, operator) VALUES (?, ?)", -1, &_tmp1_, NULL);
-#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp1_;
-#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp2_;
-#line 562 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = res;
-#line 562 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = stmt;
-#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = row->name;
-#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp7_ = g_free;
-#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_);
-#line 565 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp8_ = res;
-#line 565 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = stmt;
-#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp10_ = row->operator;
-#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp11_ = search_operator_to_string (_tmp10_);
-#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp12_ = g_free;
-#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_text (_tmp9_, 2, _tmp11_, -1, _tmp12_);
-#line 567 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_ = res;
-#line 567 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK");
-#line 569 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp14_ = stmt;
-#line 569 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp14_);
-#line 570 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp15_ = res;
-#line 570 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp15_ != SQLITE_DONE) {
-#line 3970 "SavedSearchDBTable.c"
- gint _tmp16_;
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp16_ = res;
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable.create_from_row", _tmp16_, &_inner_error_);
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 3986 "SavedSearchDBTable.c"
- } else {
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 3996 "SavedSearchDBTable.c"
- }
- }
- }
-#line 573 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp17_ = database_table_db;
-#line 573 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_id_init (&search_id, sqlite3_last_insert_rowid (_tmp17_));
-#line 4004 "SavedSearchDBTable.c"
- {
- GeeList* _sc_list = NULL;
- GeeList* _tmp18_;
- GeeList* _tmp19_;
- gint _sc_size = 0;
- GeeList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _sc_index = 0;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp18_ = row->conditions;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp19_ = _g_object_ref0 (_tmp18_);
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sc_list = _tmp19_;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_ = _sc_list;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp22_ = _tmp21_;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sc_size = _tmp22_;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sc_index = -1;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 4032 "SavedSearchDBTable.c"
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- SearchCondition* sc = NULL;
- GeeList* _tmp26_;
- gint _tmp27_;
- gpointer _tmp28_;
- SavedSearchID _tmp29_;
- SearchCondition* _tmp30_;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp23_ = _sc_index;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sc_index = _tmp23_ + 1;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp24_ = _sc_index;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp25_ = _sc_size;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!(_tmp24_ < _tmp25_)) {
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 4054 "SavedSearchDBTable.c"
- }
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp26_ = _sc_list;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp27_ = _sc_index;
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp28_ = gee_list_get (_tmp26_, _tmp27_);
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- sc = (SearchCondition*) _tmp28_;
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp29_ = search_id;
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp30_ = sc;
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_add_condition (self, &_tmp29_, _tmp30_, &_inner_error_);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (sc);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_sc_list);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4084 "SavedSearchDBTable.c"
- } else {
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (sc);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_sc_list);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4098 "SavedSearchDBTable.c"
- }
- }
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _search_condition_unref0 (sc);
-#line 4103 "SavedSearchDBTable.c"
- }
-#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_sc_list);
-#line 4107 "SavedSearchDBTable.c"
- }
-#line 579 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- *result = search_id;
-#line 579 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 579 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4115 "SavedSearchDBTable.c"
-}
-
-
-void
-saved_search_db_table_remove (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error)
-{
- SavedSearchID _tmp0_;
- SavedSearchID _tmp1_;
- gint64 _tmp2_;
- GError * _inner_error_ = NULL;
-#line 582 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self));
-#line 582 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (search_id != NULL);
-#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = *search_id;
-#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_remove_conditions_for_search_id (self, &_tmp0_, &_inner_error_);
-#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4144 "SavedSearchDBTable.c"
- } else {
-#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4152 "SavedSearchDBTable.c"
- }
- }
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp1_ = *search_id;
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, &_inner_error_);
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4169 "SavedSearchDBTable.c"
- } else {
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4177 "SavedSearchDBTable.c"
- }
- }
-}
-
-
-SavedSearchRow*
-saved_search_db_table_get_row (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error)
-{
- SavedSearchRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- SavedSearchID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- SavedSearchRow* row = NULL;
- SavedSearchRow* _tmp12_;
- SavedSearchRow* _tmp13_;
- SavedSearchID _tmp14_;
- SavedSearchRow* _tmp15_;
- sqlite3_stmt* _tmp16_;
- const gchar* _tmp17_;
- gchar* _tmp18_;
- SavedSearchRow* _tmp19_;
- sqlite3_stmt* _tmp20_;
- const gchar* _tmp21_;
- GError * _inner_error_ = NULL;
-#line 587 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_DB_TABLE (self), NULL);
-#line 587 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (search_id != NULL, NULL);
-#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = database_table_db;
-#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT name, operator FROM SavedSearchDBTable WHERE id=?", -1, &_tmp1_, NULL);
-#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp1_;
-#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp2_;
-#line 591 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = res;
-#line 591 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 593 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = stmt;
-#line 593 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = *search_id;
-#line 593 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 593 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 594 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp7_ = res;
-#line 594 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 596 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp8_ = stmt;
-#line 596 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 597 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = res;
-#line 597 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp9_ == SQLITE_DONE) {
-#line 598 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- result = NULL;
-#line 598 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 598 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return result;
-#line 4257 "SavedSearchDBTable.c"
- } else {
- gint _tmp10_;
-#line 599 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp10_ = res;
-#line 599 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp10_ != SQLITE_ROW) {
-#line 4264 "SavedSearchDBTable.c"
- gint _tmp11_;
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp11_ = res;
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable.get_row", _tmp11_, &_inner_error_);
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 4280 "SavedSearchDBTable.c"
- } else {
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 4290 "SavedSearchDBTable.c"
- }
- }
- }
- }
-#line 602 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp12_ = saved_search_row_new ();
-#line 602 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- row = _tmp12_;
-#line 603 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_ = row;
-#line 603 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp14_ = *search_id;
-#line 603 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_->search_id = _tmp14_;
-#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp15_ = row;
-#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp16_ = stmt;
-#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp17_ = sqlite3_column_text (_tmp16_, 0);
-#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp18_ = g_strdup (_tmp17_);
-#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_free0 (_tmp15_->name);
-#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp15_->name = _tmp18_;
-#line 605 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp19_ = row;
-#line 605 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_ = stmt;
-#line 605 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp21_ = sqlite3_column_text (_tmp20_, 1);
-#line 605 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp19_->operator = search_operator_from_string (_tmp21_);
-#line 607 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- result = row;
-#line 607 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 607 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return result;
-#line 4331 "SavedSearchDBTable.c"
-}
-
-
-GeeList*
-saved_search_db_table_get_all_rows (SavedSearchDBTable* self,
- GError** error)
-{
- GeeList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- GeeList* rows = NULL;
- GeeArrayList* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 610 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_DB_TABLE (self), NULL);
-#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = database_table_db;
-#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, name, operator FROM SavedSearchDBTable", -1, &_tmp1_, NULL);
-#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- stmt = _tmp1_;
-#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = _tmp2_;
-#line 614 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp3_ = res;
-#line 614 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 616 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp4_ = gee_array_list_new (TYPE_SAVED_SEARCH_ROW, (GBoxedCopyFunc) saved_search_row_ref, (GDestroyNotify) saved_search_row_unref, NULL, NULL, NULL);
-#line 616 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- rows = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList);
-#line 4369 "SavedSearchDBTable.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = TRUE;
-#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- while (TRUE) {
-#line 4376 "SavedSearchDBTable.c"
- sqlite3_stmt* _tmp6_;
- gint _tmp7_;
- SavedSearchRow* row = NULL;
- SavedSearchRow* _tmp10_;
- SavedSearchRow* _tmp11_;
- sqlite3_stmt* _tmp12_;
- SavedSearchRow* _tmp13_;
- sqlite3_stmt* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- SavedSearchRow* _tmp17_;
- sqlite3_stmt* _tmp18_;
- const gchar* _tmp19_;
- GeeList* _tmp20_ = NULL;
- SavedSearchRow* _tmp21_;
- SavedSearchID _tmp22_;
- GeeList* _tmp23_;
- SavedSearchRow* _tmp24_;
- GeeList* _tmp25_;
- GeeList* _tmp26_;
- SavedSearchRow* _tmp27_;
-#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (!_tmp5_) {
-#line 4400 "SavedSearchDBTable.c"
- }
-#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp5_ = FALSE;
-#line 619 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp6_ = stmt;
-#line 619 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- res = sqlite3_step (_tmp6_);
-#line 620 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp7_ = res;
-#line 620 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp7_ == SQLITE_DONE) {
-#line 621 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- break;
-#line 4414 "SavedSearchDBTable.c"
- } else {
- gint _tmp8_;
-#line 622 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp8_ = res;
-#line 622 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_tmp8_ != SQLITE_ROW) {
-#line 4421 "SavedSearchDBTable.c"
- gint _tmp9_;
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp9_ = res;
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_throw_error ("SavedSearchDBTable.get_all_rows", _tmp9_, &_inner_error_);
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (rows);
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 4439 "SavedSearchDBTable.c"
- } else {
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (rows);
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 4451 "SavedSearchDBTable.c"
- }
- }
- }
- }
-#line 625 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp10_ = saved_search_row_new ();
-#line 625 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- row = _tmp10_;
-#line 626 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp11_ = row;
-#line 626 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp12_ = stmt;
-#line 626 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_id_init (&_tmp11_->search_id, sqlite3_column_int64 (_tmp12_, 0));
-#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_ = row;
-#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp14_ = stmt;
-#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp15_ = sqlite3_column_text (_tmp14_, 1);
-#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_free0 (_tmp13_->name);
-#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp13_->name = _tmp16_;
-#line 628 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp17_ = row;
-#line 628 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp18_ = stmt;
-#line 628 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp19_ = sqlite3_column_text (_tmp18_, 2);
-#line 628 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp17_->operator = search_operator_from_string (_tmp19_);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp21_ = row;
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp22_ = _tmp21_->search_id;
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp23_ = saved_search_db_table_get_conditions_for_id (self, &_tmp22_, &_inner_error_);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_ = _tmp23_;
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _saved_search_row_unref0 (row);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (rows);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 4508 "SavedSearchDBTable.c"
- } else {
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _saved_search_row_unref0 (row);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (rows);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return NULL;
-#line 4522 "SavedSearchDBTable.c"
- }
- }
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp24_ = row;
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp25_ = _tmp20_;
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp20_ = NULL;
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_tmp24_->conditions);
-#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp24_->conditions = _tmp25_;
-#line 631 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp26_ = rows;
-#line 631 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp27_ = row;
-#line 631 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_);
-#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _g_object_unref0 (_tmp20_);
-#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _saved_search_row_unref0 (row);
-#line 4545 "SavedSearchDBTable.c"
- }
- }
-#line 634 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- result = rows;
-#line 634 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 634 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return result;
-#line 4554 "SavedSearchDBTable.c"
-}
-
-
-void
-saved_search_db_table_rename (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- const gchar* new_name,
- GError** error)
-{
- SavedSearchID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 637 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self));
-#line 637 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (search_id != NULL);
-#line 637 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_return_if_fail (new_name != NULL);
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp0_ = *search_id;
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "name", new_name, &_inner_error_);
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4587 "SavedSearchDBTable.c"
- } else {
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.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 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- g_clear_error (&_inner_error_);
-#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- return;
-#line 4595 "SavedSearchDBTable.c"
- }
- }
-}
-
-
-static void
-saved_search_db_table_class_init (SavedSearchDBTableClass * klass)
-{
-#line 33 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- saved_search_db_table_parent_class = g_type_class_peek_parent (klass);
-#line 33 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- ((DatabaseTableClass *) klass)->finalize = saved_search_db_table_finalize;
-#line 4608 "SavedSearchDBTable.c"
-}
-
-
-static void
-saved_search_db_table_instance_init (SavedSearchDBTable * self)
-{
-}
-
-
-static void
-saved_search_db_table_finalize (DatabaseTable * obj)
-{
- SavedSearchDBTable * self;
-#line 33 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTable);
-#line 33 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala"
- DATABASE_TABLE_CLASS (saved_search_db_table_parent_class)->finalize (obj);
-#line 4626 "SavedSearchDBTable.c"
-}
-
-
-GType
-saved_search_db_table_get_type (void)
-{
- static volatile gsize saved_search_db_table_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_db_table_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDBTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_db_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDBTable), 0, (GInstanceInitFunc) saved_search_db_table_instance_init, NULL };
- GType saved_search_db_table_type_id;
- saved_search_db_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "SavedSearchDBTable", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_db_table_type_id__volatile, saved_search_db_table_type_id);
- }
- return saved_search_db_table_type_id__volatile;
-}
-
-
-
diff --git a/src/db/TagTable.c b/src/db/TagTable.c
deleted file mode 100644
index b1c77a4..0000000
--- a/src/db/TagTable.c
+++ /dev/null
@@ -1,2341 +0,0 @@
-/* TagTable.c generated by valac 0.40.4, the Vala compiler
- * generated from TagTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <stdlib.h>
-#include <gee.h>
-#include <time.h>
-#include <sqlite3.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_TAG_ID (tag_id_get_type ())
-typedef struct _TagID TagID;
-
-#define TYPE_TAG_ROW (tag_row_get_type ())
-#define TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_ROW, TagRow))
-#define TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_ROW, TagRowClass))
-#define IS_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_ROW))
-#define IS_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_ROW))
-#define TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_ROW, TagRowClass))
-
-typedef struct _TagRow TagRow;
-typedef struct _TagRowClass TagRowClass;
-typedef struct _TagRowPrivate TagRowPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecTagRow ParamSpecTagRow;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-typedef struct _DatabaseTablePrivate DatabaseTablePrivate;
-
-#define TYPE_TAG_TABLE (tag_table_get_type ())
-#define TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_TABLE, TagTable))
-#define TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_TABLE, TagTableClass))
-#define IS_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_TABLE))
-#define IS_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_TABLE))
-#define TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_TABLE, TagTableClass))
-
-typedef struct _TagTable TagTable;
-typedef struct _TagTableClass TagTableClass;
-typedef struct _TagTablePrivate TagTablePrivate;
-#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _tag_row_unref0(var) ((var == NULL) ? NULL : (var = (tag_row_unref (var), NULL)))
-#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
-
-#define TYPE_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _TagID {
- gint64 id;
-};
-
-struct _TagRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TagRowPrivate * priv;
- TagID tag_id;
- gchar* name;
- GeeSet* source_id_list;
- time_t time_created;
-};
-
-struct _TagRowClass {
- GTypeClass parent_class;
- void (*finalize) (TagRow *self);
-};
-
-struct _ParamSpecTagRow {
- GParamSpec parent_instance;
-};
-
-struct _DatabaseTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DatabaseTablePrivate * priv;
- gchar* table_name;
-};
-
-struct _DatabaseTableClass {
- GTypeClass parent_class;
- void (*finalize) (DatabaseTable *self);
-};
-
-struct _TagTable {
- DatabaseTable parent_instance;
- TagTablePrivate * priv;
-};
-
-struct _TagTableClass {
- DatabaseTableClass parent_class;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _PhotoID {
- gint64 id;
-};
-
-
-static gpointer tag_row_parent_class = NULL;
-static gpointer tag_table_parent_class = NULL;
-static TagTable* tag_table_instance;
-static TagTable* tag_table_instance = NULL;
-extern sqlite3* database_table_db;
-
-GType tag_id_get_type (void) G_GNUC_CONST;
-TagID* tag_id_dup (const TagID* self);
-void tag_id_free (TagID* self);
-#define TAG_ID_INVALID ((gint64) -1)
-void tag_id_init (TagID *self,
- gint64 id);
-gboolean tag_id_is_invalid (TagID *self);
-gboolean tag_id_is_valid (TagID *self);
-gpointer tag_row_ref (gpointer instance);
-void tag_row_unref (gpointer instance);
-GParamSpec* param_spec_tag_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_tag_row (GValue* value,
- gpointer v_object);
-void value_take_tag_row (GValue* value,
- gpointer v_object);
-gpointer value_get_tag_row (const GValue* value);
-GType tag_row_get_type (void) G_GNUC_CONST;
-TagRow* tag_row_new (void);
-TagRow* tag_row_construct (GType object_type);
-static void tag_row_finalize (TagRow * obj);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType tag_table_get_type (void) G_GNUC_CONST;
-static TagTable* tag_table_new (void);
-static TagTable* tag_table_construct (GType object_type);
-DatabaseTable* database_table_construct (GType object_type);
-void database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name);
-void database_table_fatal (const gchar* op,
- gint res);
-TagTable* tag_table_get_instance (void);
-void tag_table_upgrade_for_htags (void);
-GQuark database_error_quark (void);
-GeeList* tag_table_get_all_rows (TagTable* self,
- GError** error);
-#define TAG_PATH_SEPARATOR_STRING "/"
-void tag_table_rename (TagTable* self,
- TagID* tag_id,
- const gchar* new_name,
- GError** error);
-TagRow* tag_table_add (TagTable* self,
- const gchar* name,
- GError** error);
-gulong now_sec (void);
-void database_table_throw_error (const gchar* method,
- gint res,
- GError** error);
-void tag_table_create_from_row (TagTable* self,
- TagRow* row,
- TagID* result,
- GError** error);
-static gchar* tag_table_serialize_source_ids (TagTable* self,
- GeeCollection* source_ids);
-void tag_table_remove (TagTable* self,
- TagID* tag_id,
- GError** error);
-void database_table_delete_by_id (DatabaseTable* self,
- gint64 id,
- GError** error);
-gchar* tag_table_get_name (TagTable* self,
- TagID* tag_id,
- GError** error);
-gboolean database_table_select_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* columns,
- sqlite3_stmt* * stmt);
-TagRow* tag_table_get_row (TagTable* self,
- TagID* tag_id,
- GError** error);
-static GeeSet* tag_table_unserialize_source_ids (TagTable* self,
- const gchar* text_list);
-void database_table_update_text_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text,
- GError** error);
-void tag_table_set_tagged_sources (TagTable* self,
- TagID* tag_id,
- GeeCollection* source_ids,
- GError** error);
-gboolean is_string_empty (const gchar* s);
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-gchar* photo_id_upgrade_photo_id_to_source_id (PhotoID* photo_id);
-gint64 parse_int64 (const gchar* str,
- gint num_base);
-void photo_id_init (PhotoID *self,
- gint64 id);
-static void tag_table_finalize (DatabaseTable * 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 gint _vala_array_length (gpointer array);
-
-
-void
-tag_id_init (TagID *self,
- gint64 id)
-{
-#line 12 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- memset (self, 0, sizeof (TagID));
-#line 13 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- (*self).id = id;
-#line 260 "TagTable.c"
-}
-
-
-gboolean
-tag_id_is_invalid (TagID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = (*self).id;
-#line 17 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = _tmp0_ == TAG_ID_INVALID;
-#line 17 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 275 "TagTable.c"
-}
-
-
-gboolean
-tag_id_is_valid (TagID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = (*self).id;
-#line 21 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = _tmp0_ != TAG_ID_INVALID;
-#line 21 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 290 "TagTable.c"
-}
-
-
-TagID*
-tag_id_dup (const TagID* self)
-{
- TagID* dup;
-#line 7 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- dup = g_new0 (TagID, 1);
-#line 7 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- memcpy (dup, self, sizeof (TagID));
-#line 7 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return dup;
-#line 304 "TagTable.c"
-}
-
-
-void
-tag_id_free (TagID* self)
-{
-#line 7 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_free (self);
-#line 313 "TagTable.c"
-}
-
-
-GType
-tag_id_get_type (void)
-{
- static volatile gsize tag_id_type_id__volatile = 0;
- if (g_once_init_enter (&tag_id_type_id__volatile)) {
- GType tag_id_type_id;
- tag_id_type_id = g_boxed_type_register_static ("TagID", (GBoxedCopyFunc) tag_id_dup, (GBoxedFreeFunc) tag_id_free);
- g_once_init_leave (&tag_id_type_id__volatile, tag_id_type_id);
- }
- return tag_id_type_id__volatile;
-}
-
-
-TagRow*
-tag_row_construct (GType object_type)
-{
- TagRow* self = NULL;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- self = (TagRow*) g_type_create_instance (object_type);
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return self;
-#line 338 "TagTable.c"
-}
-
-
-TagRow*
-tag_row_new (void)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return tag_row_construct (TYPE_TAG_ROW);
-#line 347 "TagTable.c"
-}
-
-
-static void
-value_tag_row_init (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- value->data[0].v_pointer = NULL;
-#line 356 "TagTable.c"
-}
-
-
-static void
-value_tag_row_free_value (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_row_unref (value->data[0].v_pointer);
-#line 367 "TagTable.c"
- }
-}
-
-
-static void
-value_tag_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- dest_value->data[0].v_pointer = tag_row_ref (src_value->data[0].v_pointer);
-#line 380 "TagTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 384 "TagTable.c"
- }
-}
-
-
-static gpointer
-value_tag_row_peek_pointer (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return value->data[0].v_pointer;
-#line 394 "TagTable.c"
-}
-
-
-static gchar*
-value_tag_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (collect_values[0].v_pointer) {
-#line 406 "TagTable.c"
- TagRow * object;
- object = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 413 "TagTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.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 417 "TagTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- value->data[0].v_pointer = tag_row_ref (object);
-#line 421 "TagTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- value->data[0].v_pointer = NULL;
-#line 425 "TagTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return NULL;
-#line 429 "TagTable.c"
-}
-
-
-static gchar*
-value_tag_row_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TagRow ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (!object_p) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 445 "TagTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (!value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- *object_p = NULL;
-#line 451 "TagTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 455 "TagTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- *object_p = tag_row_ref (value->data[0].v_pointer);
-#line 459 "TagTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return NULL;
-#line 463 "TagTable.c"
-}
-
-
-GParamSpec*
-param_spec_tag_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTagRow* spec;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TAG_ROW), NULL);
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return G_PARAM_SPEC (spec);
-#line 483 "TagTable.c"
-}
-
-
-gpointer
-value_get_tag_row (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TAG_ROW), NULL);
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return value->data[0].v_pointer;
-#line 494 "TagTable.c"
-}
-
-
-void
-value_set_tag_row (GValue* value,
- gpointer v_object)
-{
- TagRow * old;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TAG_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TAG_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- value->data[0].v_pointer = v_object;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_row_ref (value->data[0].v_pointer);
-#line 517 "TagTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- value->data[0].v_pointer = NULL;
-#line 521 "TagTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_row_unref (old);
-#line 527 "TagTable.c"
- }
-}
-
-
-void
-value_take_tag_row (GValue* value,
- gpointer v_object)
-{
- TagRow * old;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TAG_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TAG_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- value->data[0].v_pointer = v_object;
-#line 549 "TagTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- value->data[0].v_pointer = NULL;
-#line 553 "TagTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_row_unref (old);
-#line 559 "TagTable.c"
- }
-}
-
-
-static void
-tag_row_class_init (TagRowClass * klass)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_row_parent_class = g_type_class_peek_parent (klass);
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- ((TagRowClass *) klass)->finalize = tag_row_finalize;
-#line 571 "TagTable.c"
-}
-
-
-static void
-tag_row_instance_init (TagRow * self)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- self->ref_count = 1;
-#line 580 "TagTable.c"
-}
-
-
-static void
-tag_row_finalize (TagRow * obj)
-{
- TagRow * self;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_ROW, TagRow);
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_signal_handlers_destroy (self);
-#line 27 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (self->name);
-#line 28 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (self->source_id_list);
-#line 596 "TagTable.c"
-}
-
-
-GType
-tag_row_get_type (void)
-{
- static volatile gsize tag_row_type_id__volatile = 0;
- if (g_once_init_enter (&tag_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_tag_row_init, value_tag_row_free_value, value_tag_row_copy_value, value_tag_row_peek_pointer, "p", value_tag_row_collect_value, "p", value_tag_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TagRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagRow), 0, (GInstanceInitFunc) tag_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType tag_row_type_id;
- tag_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TagRow", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&tag_row_type_id__volatile, tag_row_type_id);
- }
- return tag_row_type_id__volatile;
-}
-
-
-gpointer
-tag_row_ref (gpointer instance)
-{
- TagRow * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return instance;
-#line 625 "TagTable.c"
-}
-
-
-void
-tag_row_unref (gpointer instance)
-{
- TagRow * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- TAG_ROW_GET_CLASS (self)->finalize (self);
-#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 640 "TagTable.c"
- }
-}
-
-
-static TagTable*
-tag_table_construct (GType object_type)
-{
- TagTable* self = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
-#line 35 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- self = (TagTable*) database_table_construct (object_type);
-#line 36 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "TagTable");
-#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = database_table_db;
-#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS " "TagTable " "(" "id INTEGER PRIMARY KEY, " "name TEXT UNIQUE NOT NULL, " "photo_id_list TEXT, " "time_created INTEGER" ")", -1, &_tmp1_, NULL);
-#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- stmt = _tmp1_;
-#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = _tmp2_;
-#line 47 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = res;
-#line 47 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 49 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = stmt;
-#line 49 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 50 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = res;
-#line 50 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 683 "TagTable.c"
- gint _tmp6_;
-#line 51 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = res;
-#line 51 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_fatal ("create TagTable", _tmp6_);
-#line 689 "TagTable.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 35 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return self;
-#line 695 "TagTable.c"
-}
-
-
-static TagTable*
-tag_table_new (void)
-{
-#line 35 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return tag_table_construct (TYPE_TAG_TABLE);
-#line 704 "TagTable.c"
-}
-
-
-static gpointer
-_database_table_ref0 (gpointer self)
-{
-#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return self ? database_table_ref (self) : NULL;
-#line 713 "TagTable.c"
-}
-
-
-TagTable*
-tag_table_get_instance (void)
-{
- TagTable* result = NULL;
- TagTable* _tmp0_;
- TagTable* _tmp2_;
- TagTable* _tmp3_;
-#line 55 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = tag_table_instance;
-#line 55 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp0_ == NULL) {
-#line 728 "TagTable.c"
- TagTable* _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp1_ = tag_table_new ();
-#line 56 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _database_table_unref0 (tag_table_instance);
-#line 56 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_table_instance = _tmp1_;
-#line 736 "TagTable.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = tag_table_instance;
-#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = _database_table_ref0 (_tmp2_);
-#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = _tmp3_;
-#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 746 "TagTable.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return self ? g_object_ref (self) : NULL;
-#line 755 "TagTable.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 778 "TagTable.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 782 "TagTable.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 788 "TagTable.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 792 "TagTable.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 796 "TagTable.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 804 "TagTable.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 832 "TagTable.c"
- goto __catch21_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 841 "TagTable.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 855 "TagTable.c"
- goto __catch21_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 866 "TagTable.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 880 "TagTable.c"
- }
- goto __finally21;
- __catch21_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 894 "TagTable.c"
- }
- __finally21:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 905 "TagTable.c"
- }
-}
-
-
-void
-tag_table_upgrade_for_htags (void)
-{
- TagTable* table = NULL;
- TagTable* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 62 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = tag_table_get_instance ();
-#line 62 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- table = _tmp0_;
-#line 920 "TagTable.c"
- {
- GeeList* rows = NULL;
- TagTable* _tmp1_;
- GeeList* _tmp2_;
-#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp1_ = table;
-#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = tag_table_get_all_rows (_tmp1_, &_inner_error_);
-#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- rows = _tmp2_;
-#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 935 "TagTable.c"
- goto __catch20_database_error;
- }
-#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _database_table_unref0 (table);
-#line 65 "/home/jens/Source/shotwell/src/db/TagTable.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 65 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 946 "TagTable.c"
- }
- {
- GeeList* _row_list = NULL;
- GeeList* _tmp3_;
- GeeList* _tmp4_;
- gint _row_size = 0;
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _row_index = 0;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = rows;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _row_list = _tmp4_;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = _row_list;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp7_ = _tmp6_;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _row_size = _tmp7_;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _row_index = -1;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- while (TRUE) {
-#line 975 "TagTable.c"
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- TagRow* row = NULL;
- GeeList* _tmp11_;
- gint _tmp12_;
- gpointer _tmp13_;
- TagRow* _tmp14_;
- TagRow* _tmp15_;
- const gchar* _tmp16_;
- gchar* _tmp17_;
- TagTable* _tmp18_;
- TagRow* _tmp19_;
- TagID _tmp20_;
- TagRow* _tmp21_;
- const gchar* _tmp22_;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = _row_index;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _row_index = _tmp8_ + 1;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp9_ = _row_index;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp10_ = _row_size;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (!(_tmp9_ < _tmp10_)) {
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- break;
-#line 1004 "TagTable.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp11_ = _row_list;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp12_ = _row_index;
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_ = gee_list_get (_tmp11_, _tmp12_);
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- row = (TagRow*) _tmp13_;
-#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp14_ = row;
-#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp15_ = row;
-#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp16_ = _tmp15_->name;
-#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp17_ = string_replace (_tmp16_, TAG_PATH_SEPARATOR_STRING, "-");
-#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (_tmp14_->name);
-#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp14_->name = _tmp17_;
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp18_ = table;
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp19_ = row;
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp20_ = _tmp19_->tag_id;
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp21_ = row;
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp22_ = _tmp21_->name;
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_table_rename (_tmp18_, &_tmp20_, _tmp22_, &_inner_error_);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tag_row_unref0 (row);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (_row_list);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (rows);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 1048 "TagTable.c"
- goto __catch20_database_error;
- }
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tag_row_unref0 (row);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (_row_list);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (rows);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _database_table_unref0 (table);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.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 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1065 "TagTable.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tag_row_unref0 (row);
-#line 1069 "TagTable.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (_row_list);
-#line 1073 "TagTable.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (rows);
-#line 1077 "TagTable.c"
- }
- goto __finally20;
- __catch20_database_error:
- {
- GError* e = NULL;
- const gchar* _tmp23_;
-#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- e = _inner_error_;
-#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _inner_error_ = NULL;
-#line 72 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp23_ = e->message;
-#line 72 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_error ("TagTable.vala:72: TagTable: can't upgrade tag names for hierarchical t" \
-"ag support: %s", _tmp23_);
-#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_error_free0 (e);
-#line 1094 "TagTable.c"
- }
- __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"
- _database_table_unref0 (table);
-#line 64 "/home/jens/Source/shotwell/src/db/TagTable.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 64 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1107 "TagTable.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _database_table_unref0 (table);
-#line 1111 "TagTable.c"
-}
-
-
-TagRow*
-tag_table_add (TagTable* self,
- const gchar* name,
- GError** error)
-{
- TagRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- time_t time_created = 0;
- sqlite3_stmt* _tmp4_;
- gchar* _tmp5_;
- GDestroyNotify _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- time_t _tmp9_;
- gint _tmp10_;
- sqlite3_stmt* _tmp11_;
- gint _tmp12_;
- TagRow* row = NULL;
- TagRow* _tmp14_;
- TagRow* _tmp15_;
- sqlite3* _tmp16_;
- TagRow* _tmp17_;
- gchar* _tmp18_;
- TagRow* _tmp19_;
- TagRow* _tmp20_;
- time_t _tmp21_;
- GError * _inner_error_ = NULL;
-#line 76 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (IS_TAG_TABLE (self), NULL);
-#line 76 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = database_table_db;
-#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO TagTable (name, time_created) VALUES (?, ?)", -1, &_tmp1_, NULL);
-#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- stmt = _tmp1_;
-#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = _tmp2_;
-#line 80 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = res;
-#line 80 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 82 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- time_created = (time_t) now_sec ();
-#line 84 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = stmt;
-#line 84 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = g_strdup (name);
-#line 84 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = g_free;
-#line 84 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_);
-#line 85 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp7_ = res;
-#line 85 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 86 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = stmt;
-#line 86 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp9_ = time_created;
-#line 86 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_bind_int64 (_tmp8_, 2, (gint64) _tmp9_);
-#line 87 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp10_ = res;
-#line 87 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp10_ == SQLITE_OK, "res == Sqlite.OK");
-#line 89 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp11_ = stmt;
-#line 89 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_step (_tmp11_);
-#line 90 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp12_ = res;
-#line 90 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp12_ != SQLITE_DONE) {
-#line 1197 "TagTable.c"
- gint _tmp13_;
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_ = res;
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_throw_error ("TagTable.add", _tmp13_, &_inner_error_);
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return NULL;
-#line 1213 "TagTable.c"
- } else {
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.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 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return NULL;
-#line 1223 "TagTable.c"
- }
- }
- }
-#line 93 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp14_ = tag_row_new ();
-#line 93 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- row = _tmp14_;
-#line 94 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp15_ = row;
-#line 94 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp16_ = database_table_db;
-#line 94 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_id_init (&_tmp15_->tag_id, sqlite3_last_insert_rowid (_tmp16_));
-#line 95 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp17_ = row;
-#line 95 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp18_ = g_strdup (name);
-#line 95 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (_tmp17_->name);
-#line 95 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp17_->name = _tmp18_;
-#line 96 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp19_ = row;
-#line 96 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (_tmp19_->source_id_list);
-#line 96 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp19_->source_id_list = NULL;
-#line 97 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp20_ = row;
-#line 97 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp21_ = time_created;
-#line 97 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp20_->time_created = _tmp21_;
-#line 99 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = row;
-#line 99 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 99 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 1263 "TagTable.c"
-}
-
-
-void
-tag_table_create_from_row (TagTable* self,
- TagRow* row,
- TagID* result,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- GDestroyNotify _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- GeeSet* _tmp10_;
- gchar* _tmp11_;
- GDestroyNotify _tmp12_;
- gint _tmp13_;
- sqlite3_stmt* _tmp14_;
- time_t _tmp15_;
- gint _tmp16_;
- sqlite3_stmt* _tmp17_;
- gint _tmp18_;
- sqlite3* _tmp20_;
- TagID _tmp21_ = {0};
- GError * _inner_error_ = NULL;
-#line 103 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (IS_TAG_TABLE (self));
-#line 103 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (IS_TAG_ROW (row));
-#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = database_table_db;
-#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO TagTable (name, photo_id_list, time_created) VALUES (?, ?," \
-" ?)", -1, &_tmp1_, NULL);
-#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- stmt = _tmp1_;
-#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = _tmp2_;
-#line 107 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = res;
-#line 107 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = stmt;
-#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = row->name;
-#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp7_ = g_free;
-#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_);
-#line 110 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = res;
-#line 110 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp9_ = stmt;
-#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp10_ = row->source_id_list;
-#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp11_ = tag_table_serialize_source_ids (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp12_ = g_free;
-#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_bind_text (_tmp9_, 2, _tmp11_, -1, _tmp12_);
-#line 112 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_ = res;
-#line 112 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK");
-#line 113 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp14_ = stmt;
-#line 113 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp15_ = row->time_created;
-#line 113 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_bind_int64 (_tmp14_, 3, (gint64) _tmp15_);
-#line 114 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp16_ = res;
-#line 114 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp16_ == SQLITE_OK, "res == Sqlite.OK");
-#line 116 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp17_ = stmt;
-#line 116 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_step (_tmp17_);
-#line 117 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp18_ = res;
-#line 117 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp18_ != SQLITE_DONE) {
-#line 1361 "TagTable.c"
- gint _tmp19_;
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp19_ = res;
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_throw_error ("TagTable.create_from_row", _tmp19_, &_inner_error_);
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1377 "TagTable.c"
- } else {
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.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 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1387 "TagTable.c"
- }
- }
- }
-#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp20_ = database_table_db;
-#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_id_init (&_tmp21_, sqlite3_last_insert_rowid (_tmp20_));
-#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- *result = _tmp21_;
-#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1401 "TagTable.c"
-}
-
-
-void
-tag_table_remove (TagTable* self,
- TagID* tag_id,
- GError** error)
-{
- TagID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 123 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (IS_TAG_TABLE (self));
-#line 123 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (tag_id != NULL);
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = *tag_id;
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_);
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1431 "TagTable.c"
- } else {
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.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 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1439 "TagTable.c"
- }
- }
-}
-
-
-gchar*
-tag_table_get_name (TagTable* self,
- TagID* tag_id,
- GError** error)
-{
- gchar* result = NULL;
- sqlite3_stmt* stmt = NULL;
- TagID _tmp0_;
- gint64 _tmp1_;
- sqlite3_stmt* _tmp2_ = NULL;
- gboolean _tmp3_;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 127 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (IS_TAG_TABLE (self), NULL);
-#line 127 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (tag_id != NULL, NULL);
-#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = *tag_id;
-#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "name", &_tmp2_);
-#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- stmt = _tmp2_;
-#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (!_tmp3_) {
-#line 130 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = NULL;
-#line 130 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 130 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 1481 "TagTable.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = stmt;
-#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = sqlite3_column_text (_tmp4_, 0);
-#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = _tmp6_;
-#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 1495 "TagTable.c"
-}
-
-
-TagRow*
-tag_table_get_row (TagTable* self,
- TagID* tag_id,
- GError** error)
-{
- TagRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- TagID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- TagRow* row = NULL;
- TagRow* _tmp12_;
- TagRow* _tmp13_;
- TagID _tmp14_;
- TagRow* _tmp15_;
- sqlite3_stmt* _tmp16_;
- const gchar* _tmp17_;
- gchar* _tmp18_;
- TagRow* _tmp19_;
- sqlite3_stmt* _tmp20_;
- const gchar* _tmp21_;
- GeeSet* _tmp22_;
- TagRow* _tmp23_;
- sqlite3_stmt* _tmp24_;
- GError * _inner_error_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (IS_TAG_TABLE (self), NULL);
-#line 135 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (tag_id != NULL, NULL);
-#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = database_table_db;
-#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT name, photo_id_list, time_created FROM TagTable WHERE id=?", -1, &_tmp1_, NULL);
-#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- stmt = _tmp1_;
-#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = _tmp2_;
-#line 139 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = res;
-#line 139 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 141 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = stmt;
-#line 141 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = *tag_id;
-#line 141 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 141 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 142 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp7_ = res;
-#line 142 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 144 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = stmt;
-#line 144 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 145 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp9_ = res;
-#line 145 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp9_ == SQLITE_DONE) {
-#line 146 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = NULL;
-#line 146 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 146 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 1576 "TagTable.c"
- } else {
- gint _tmp10_;
-#line 147 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp10_ = res;
-#line 147 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp10_ != SQLITE_ROW) {
-#line 1583 "TagTable.c"
- gint _tmp11_;
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp11_ = res;
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_throw_error ("TagTable.get_row", _tmp11_, &_inner_error_);
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return NULL;
-#line 1599 "TagTable.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.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 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return NULL;
-#line 1609 "TagTable.c"
- }
- }
- }
- }
-#line 150 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp12_ = tag_row_new ();
-#line 150 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- row = _tmp12_;
-#line 151 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_ = row;
-#line 151 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp14_ = *tag_id;
-#line 151 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_->tag_id = _tmp14_;
-#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp15_ = row;
-#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp16_ = stmt;
-#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp17_ = sqlite3_column_text (_tmp16_, 0);
-#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp18_ = g_strdup (_tmp17_);
-#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (_tmp15_->name);
-#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp15_->name = _tmp18_;
-#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp19_ = row;
-#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp20_ = stmt;
-#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp21_ = sqlite3_column_text (_tmp20_, 1);
-#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp22_ = tag_table_unserialize_source_ids (self, _tmp21_);
-#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (_tmp19_->source_id_list);
-#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp19_->source_id_list = _tmp22_;
-#line 154 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp23_ = row;
-#line 154 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp24_ = stmt;
-#line 154 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp23_->time_created = (time_t) sqlite3_column_int64 (_tmp24_, 2);
-#line 156 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = row;
-#line 156 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 156 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 1660 "TagTable.c"
-}
-
-
-GeeList*
-tag_table_get_all_rows (TagTable* self,
- GError** error)
-{
- GeeList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- GeeList* rows = NULL;
- GeeArrayList* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 159 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (IS_TAG_TABLE (self), NULL);
-#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = database_table_db;
-#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, name, photo_id_list, time_created FROM TagTable", -1, &_tmp1_, NULL);
-#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- stmt = _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = _tmp2_;
-#line 163 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = res;
-#line 163 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 165 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = gee_array_list_new (TYPE_TAG_ROW, (GBoxedCopyFunc) tag_row_ref, (GDestroyNotify) tag_row_unref, NULL, NULL, NULL);
-#line 165 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- rows = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList);
-#line 1698 "TagTable.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = TRUE;
-#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- while (TRUE) {
-#line 1705 "TagTable.c"
- sqlite3_stmt* _tmp6_;
- gint _tmp7_;
- TagRow* row = NULL;
- TagRow* _tmp10_;
- TagRow* _tmp11_;
- sqlite3_stmt* _tmp12_;
- TagRow* _tmp13_;
- sqlite3_stmt* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- TagRow* _tmp17_;
- sqlite3_stmt* _tmp18_;
- const gchar* _tmp19_;
- GeeSet* _tmp20_;
- TagRow* _tmp21_;
- sqlite3_stmt* _tmp22_;
- GeeList* _tmp23_;
- TagRow* _tmp24_;
-#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (!_tmp5_) {
-#line 1726 "TagTable.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = FALSE;
-#line 168 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = stmt;
-#line 168 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_step (_tmp6_);
-#line 169 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp7_ = res;
-#line 169 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp7_ == SQLITE_DONE) {
-#line 170 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- break;
-#line 1740 "TagTable.c"
- } else {
- gint _tmp8_;
-#line 171 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = res;
-#line 171 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp8_ != SQLITE_ROW) {
-#line 1747 "TagTable.c"
- gint _tmp9_;
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp9_ = res;
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_throw_error ("TagTable.get_all_rows", _tmp9_, &_inner_error_);
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (rows);
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return NULL;
-#line 1765 "TagTable.c"
- } else {
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (rows);
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.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 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return NULL;
-#line 1777 "TagTable.c"
- }
- }
- }
- }
-#line 175 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp10_ = tag_row_new ();
-#line 175 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- row = _tmp10_;
-#line 176 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp11_ = row;
-#line 176 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp12_ = stmt;
-#line 176 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_id_init (&_tmp11_->tag_id, sqlite3_column_int64 (_tmp12_, 0));
-#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_ = row;
-#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp14_ = stmt;
-#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp15_ = sqlite3_column_text (_tmp14_, 1);
-#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (_tmp13_->name);
-#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_->name = _tmp16_;
-#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp17_ = row;
-#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp18_ = stmt;
-#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp19_ = sqlite3_column_text (_tmp18_, 2);
-#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp20_ = tag_table_unserialize_source_ids (self, _tmp19_);
-#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (_tmp17_->source_id_list);
-#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp17_->source_id_list = _tmp20_;
-#line 179 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp21_ = row;
-#line 179 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp22_ = stmt;
-#line 179 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp21_->time_created = (time_t) sqlite3_column_int64 (_tmp22_, 3);
-#line 181 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp23_ = rows;
-#line 181 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp24_ = row;
-#line 181 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection), _tmp24_);
-#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tag_row_unref0 (row);
-#line 1830 "TagTable.c"
- }
- }
-#line 184 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = rows;
-#line 184 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 184 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 1839 "TagTable.c"
-}
-
-
-void
-tag_table_rename (TagTable* self,
- TagID* tag_id,
- const gchar* new_name,
- GError** error)
-{
- TagID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 187 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (IS_TAG_TABLE (self));
-#line 187 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (tag_id != NULL);
-#line 187 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (new_name != NULL);
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = *tag_id;
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "name", new_name, &_inner_error_);
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1872 "TagTable.c"
- } else {
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.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 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1880 "TagTable.c"
- }
- }
-}
-
-
-void
-tag_table_set_tagged_sources (TagTable* self,
- TagID* tag_id,
- GeeCollection* source_ids,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gchar* _tmp5_;
- GDestroyNotify _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- TagID _tmp9_;
- gint64 _tmp10_;
- gint _tmp11_;
- sqlite3_stmt* _tmp12_;
- gint _tmp13_;
- GError * _inner_error_ = NULL;
-#line 191 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (IS_TAG_TABLE (self));
-#line 191 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (tag_id != NULL);
-#line 191 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_if_fail (GEE_IS_COLLECTION (source_ids));
-#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = database_table_db;
-#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE TagTable SET photo_id_list=? WHERE id=?", -1, &_tmp1_, NULL);
-#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- stmt = _tmp1_;
-#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = _tmp2_;
-#line 194 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = res;
-#line 194 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 196 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = stmt;
-#line 196 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = tag_table_serialize_source_ids (self, source_ids);
-#line 196 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = g_free;
-#line 196 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_);
-#line 197 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp7_ = res;
-#line 197 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 198 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = stmt;
-#line 198 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp9_ = *tag_id;
-#line 198 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp10_ = _tmp9_.id;
-#line 198 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_bind_int64 (_tmp8_, 2, _tmp10_);
-#line 199 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp11_ = res;
-#line 199 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK");
-#line 201 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp12_ = stmt;
-#line 201 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- res = sqlite3_step (_tmp12_);
-#line 202 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_ = res;
-#line 202 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp13_ != SQLITE_DONE) {
-#line 1961 "TagTable.c"
- gint _tmp14_;
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp14_ = res;
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- database_table_throw_error ("TagTable.set_tagged_photos", _tmp14_, &_inner_error_);
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1977 "TagTable.c"
- } else {
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.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 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_clear_error (&_inner_error_);
-#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return;
-#line 1987 "TagTable.c"
- }
- }
- }
-#line 191 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 1993 "TagTable.c"
-}
-
-
-static gchar*
-tag_table_serialize_source_ids (TagTable* self,
- GeeCollection* source_ids)
-{
- gchar* result = NULL;
- GString* _result_ = NULL;
- GString* _tmp0_;
- const gchar* _tmp8_ = NULL;
- GString* _tmp9_;
- gssize _tmp10_;
- gchar* _tmp13_;
-#line 206 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (IS_TAG_TABLE (self), NULL);
-#line 206 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail ((source_ids == NULL) || GEE_IS_COLLECTION (source_ids), NULL);
-#line 207 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (source_ids == NULL) {
-#line 208 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = NULL;
-#line 208 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 2018 "TagTable.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = g_string_new ("");
-#line 210 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _result_ = _tmp0_;
-#line 2024 "TagTable.c"
- {
- GeeIterator* _source_id_it = NULL;
- GeeIterator* _tmp1_;
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (source_ids, GEE_TYPE_ITERABLE, GeeIterable));
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _source_id_it = _tmp1_;
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- while (TRUE) {
-#line 2034 "TagTable.c"
- GeeIterator* _tmp2_;
- gchar* source_id = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GString* _tmp5_;
- const gchar* _tmp6_;
- GString* _tmp7_;
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = _source_id_it;
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- break;
-#line 2048 "TagTable.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = _source_id_it;
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- source_id = (gchar*) _tmp4_;
-#line 213 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = _result_;
-#line 213 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = source_id;
-#line 213 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_string_append (_tmp5_, _tmp6_);
-#line 214 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp7_ = _result_;
-#line 214 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_string_append (_tmp7_, ",");
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (source_id);
-#line 2068 "TagTable.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_object_unref0 (_source_id_it);
-#line 2072 "TagTable.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp9_ = _result_;
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp10_ = _tmp9_->len;
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (_tmp10_ != ((gssize) 0)) {
-#line 2080 "TagTable.c"
- GString* _tmp11_;
- const gchar* _tmp12_;
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp11_ = _result_;
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp12_ = _tmp11_->str;
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = _tmp12_;
-#line 2089 "TagTable.c"
- } else {
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = NULL;
-#line 2093 "TagTable.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_ = g_strdup (_tmp8_);
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = _tmp13_;
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_string_free0 (_result_);
-#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 2103 "TagTable.c"
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2121 "TagTable.c"
-}
-
-
-static GeeSet*
-tag_table_unserialize_source_ids (TagTable* self,
- const gchar* text_list)
-{
- GeeSet* result = NULL;
- GeeSet* _result_ = NULL;
- GeeHashSet* _tmp0_;
- gchar** split = NULL;
- gchar** _tmp1_;
- gchar** _tmp2_;
- gint split_length1;
- gint _split_size_;
- gchar** _tmp3_;
- gint _tmp3__length1;
-#line 220 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- g_return_val_if_fail (IS_TAG_TABLE (self), NULL);
-#line 221 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 221 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
-#line 223 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (text_list == NULL) {
-#line 224 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = _result_;
-#line 224 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 2151 "TagTable.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp2_ = _tmp1_ = g_strsplit (text_list, ",", 0);
-#line 226 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- split = _tmp2_;
-#line 226 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- split_length1 = _vala_array_length (_tmp1_);
-#line 226 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _split_size_ = split_length1;
-#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3_ = split;
-#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp3__length1 = split_length1;
-#line 2165 "TagTable.c"
- {
- gchar** token_collection = NULL;
- gint token_collection_length1 = 0;
- gint _token_collection_size_ = 0;
- gint token_it = 0;
-#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- token_collection = _tmp3_;
-#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- token_collection_length1 = _tmp3__length1;
-#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- for (token_it = 0; token_it < _tmp3__length1; token_it = token_it + 1) {
-#line 2177 "TagTable.c"
- gchar* _tmp4_;
- gchar* token = NULL;
-#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp4_ = g_strdup (token_collection[token_it]);
-#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- token = _tmp4_;
-#line 2184 "TagTable.c"
- {
- const gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 228 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp5_ = token;
-#line 228 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (is_string_empty (_tmp5_)) {
-#line 229 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (token);
-#line 229 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- continue;
-#line 2196 "TagTable.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp6_ = token;
-#line 236 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (g_ascii_isdigit (string_get (_tmp6_, (glong) 0))) {
-#line 2202 "TagTable.c"
- GeeSet* _tmp7_;
- const gchar* _tmp8_;
- PhotoID _tmp9_ = {0};
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp7_ = _result_;
-#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp8_ = token;
-#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- photo_id_init (&_tmp9_, parse_int64 (_tmp8_, 10));
-#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp10_ = photo_id_upgrade_photo_id_to_source_id (&_tmp9_);
-#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp11_ = _tmp10_;
-#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp11_);
-#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (_tmp11_);
-#line 2222 "TagTable.c"
- } else {
- const gchar* _tmp12_;
-#line 239 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp12_ = token;
-#line 239 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- if (g_ascii_isalpha (string_get (_tmp12_, (glong) 0))) {
-#line 2229 "TagTable.c"
- GeeSet* _tmp13_;
- const gchar* _tmp14_;
-#line 241 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp13_ = _result_;
-#line 241 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _tmp14_ = token;
-#line 241 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_);
-#line 2238 "TagTable.c"
- }
- }
-#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- _g_free0 (token);
-#line 2243 "TagTable.c"
- }
- }
- }
-#line 245 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- result = _result_;
-#line 245 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL);
-#line 245 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- return result;
-#line 2253 "TagTable.c"
-}
-
-
-static void
-tag_table_class_init (TagTableClass * klass)
-{
-#line 32 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- tag_table_parent_class = g_type_class_peek_parent (klass);
-#line 32 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- ((DatabaseTableClass *) klass)->finalize = tag_table_finalize;
-#line 2264 "TagTable.c"
-}
-
-
-static void
-tag_table_instance_init (TagTable * self)
-{
-}
-
-
-static void
-tag_table_finalize (DatabaseTable * obj)
-{
- TagTable * self;
-#line 32 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_TABLE, TagTable);
-#line 32 "/home/jens/Source/shotwell/src/db/TagTable.vala"
- DATABASE_TABLE_CLASS (tag_table_parent_class)->finalize (obj);
-#line 2282 "TagTable.c"
-}
-
-
-GType
-tag_table_get_type (void)
-{
- static volatile gsize tag_table_type_id__volatile = 0;
- if (g_once_init_enter (&tag_table_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagTable), 0, (GInstanceInitFunc) tag_table_instance_init, NULL };
- GType tag_table_type_id;
- tag_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "TagTable", &g_define_type_info, 0);
- g_once_init_leave (&tag_table_type_id__volatile, tag_table_type_id);
- }
- return tag_table_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/db/TombstoneTable.c b/src/db/TombstoneTable.c
deleted file mode 100644
index b7b9f58..0000000
--- a/src/db/TombstoneTable.c
+++ /dev/null
@@ -1,1356 +0,0 @@
-/* TombstoneTable.c generated by valac 0.40.4, the Vala compiler
- * generated from TombstoneTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <stdlib.h>
-#include <time.h>
-#include <sqlite3.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_TOMBSTONE_ID (tombstone_id_get_type ())
-typedef struct _TombstoneID TombstoneID;
-
-#define TYPE_TOMBSTONE_ROW (tombstone_row_get_type ())
-#define TOMBSTONE_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_ROW, TombstoneRow))
-#define TOMBSTONE_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_ROW, TombstoneRowClass))
-#define IS_TOMBSTONE_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_ROW))
-#define IS_TOMBSTONE_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_ROW))
-#define TOMBSTONE_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_ROW, TombstoneRowClass))
-
-typedef struct _TombstoneRow TombstoneRow;
-typedef struct _TombstoneRowClass TombstoneRowClass;
-typedef struct _TombstoneRowPrivate TombstoneRowPrivate;
-
-#define TOMBSTONE_TYPE_REASON (tombstone_reason_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecTombstoneRow ParamSpecTombstoneRow;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-typedef struct _DatabaseTablePrivate DatabaseTablePrivate;
-
-#define TYPE_TOMBSTONE_TABLE (tombstone_table_get_type ())
-#define TOMBSTONE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_TABLE, TombstoneTable))
-#define TOMBSTONE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_TABLE, TombstoneTableClass))
-#define IS_TOMBSTONE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_TABLE))
-#define IS_TOMBSTONE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_TABLE))
-#define TOMBSTONE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_TABLE, TombstoneTableClass))
-
-typedef struct _TombstoneTable TombstoneTable;
-typedef struct _TombstoneTableClass TombstoneTableClass;
-typedef struct _TombstoneTablePrivate TombstoneTablePrivate;
-#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _tombstone_row_unref0(var) ((var == NULL) ? NULL : (var = (tombstone_row_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _TombstoneID {
- gint64 id;
-};
-
-typedef enum {
- TOMBSTONE_REASON_REMOVED_BY_USER = 0,
- TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE = 1
-} TombstoneReason;
-
-struct _TombstoneRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TombstoneRowPrivate * priv;
- TombstoneID id;
- gchar* filepath;
- gint64 filesize;
- gchar* md5;
- time_t time_created;
- TombstoneReason reason;
-};
-
-struct _TombstoneRowClass {
- GTypeClass parent_class;
- void (*finalize) (TombstoneRow *self);
-};
-
-struct _ParamSpecTombstoneRow {
- GParamSpec parent_instance;
-};
-
-struct _DatabaseTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DatabaseTablePrivate * priv;
- gchar* table_name;
-};
-
-struct _DatabaseTableClass {
- GTypeClass parent_class;
- void (*finalize) (DatabaseTable *self);
-};
-
-struct _TombstoneTable {
- DatabaseTable parent_instance;
- TombstoneTablePrivate * priv;
-};
-
-struct _TombstoneTableClass {
- DatabaseTableClass parent_class;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-
-static gpointer tombstone_row_parent_class = NULL;
-static gpointer tombstone_table_parent_class = NULL;
-static TombstoneTable* tombstone_table_instance;
-static TombstoneTable* tombstone_table_instance = NULL;
-extern sqlite3* database_table_db;
-
-GType tombstone_id_get_type (void) G_GNUC_CONST;
-TombstoneID* tombstone_id_dup (const TombstoneID* self);
-void tombstone_id_free (TombstoneID* self);
-#define TOMBSTONE_ID_INVALID ((gint64) -1)
-void tombstone_id_init (TombstoneID *self,
- gint64 id);
-gboolean tombstone_id_is_invalid (TombstoneID *self);
-gboolean tombstone_id_is_valid (TombstoneID *self);
-gpointer tombstone_row_ref (gpointer instance);
-void tombstone_row_unref (gpointer instance);
-GParamSpec* param_spec_tombstone_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_tombstone_row (GValue* value,
- gpointer v_object);
-void value_take_tombstone_row (GValue* value,
- gpointer v_object);
-gpointer value_get_tombstone_row (const GValue* value);
-GType tombstone_row_get_type (void) G_GNUC_CONST;
-GType tombstone_reason_get_type (void) G_GNUC_CONST;
-TombstoneRow* tombstone_row_new (void);
-TombstoneRow* tombstone_row_construct (GType object_type);
-static void tombstone_row_finalize (TombstoneRow * obj);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType tombstone_table_get_type (void) G_GNUC_CONST;
-static TombstoneTable* tombstone_table_new (void);
-static TombstoneTable* tombstone_table_construct (GType object_type);
-DatabaseTable* database_table_construct (GType object_type);
-void database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name);
-void database_table_fatal (const gchar* op,
- gint res);
-TombstoneTable* tombstone_table_get_instance (void);
-GQuark database_error_quark (void);
-TombstoneRow* tombstone_table_add (TombstoneTable* self,
- const gchar* filepath,
- gint64 filesize,
- const gchar* md5,
- TombstoneReason reason,
- GError** error);
-gulong now_sec (void);
-gint tombstone_reason_serialize (TombstoneReason self);
-void database_table_throw_error (const gchar* method,
- gint res,
- GError** error);
-TombstoneRow** tombstone_table_fetch_all (TombstoneTable* self,
- int* result_length1,
- GError** error);
-gint database_table_get_row_count (DatabaseTable* self);
-TombstoneReason tombstone_reason_unserialize (gint value);
-void tombstone_table_update_file (TombstoneTable* self,
- TombstoneID* tombstone_id,
- const gchar* filepath,
- GError** error);
-void database_table_update_text_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text,
- GError** error);
-void tombstone_table_remove (TombstoneTable* self,
- TombstoneID* tombstone_id,
- GError** error);
-void database_table_delete_by_id (DatabaseTable* self,
- gint64 id,
- GError** error);
-static void tombstone_table_finalize (DatabaseTable * 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);
-
-
-void
-tombstone_id_init (TombstoneID *self,
- gint64 id)
-{
-#line 12 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- memset (self, 0, sizeof (TombstoneID));
-#line 13 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- (*self).id = id;
-#line 231 "TombstoneTable.c"
-}
-
-
-gboolean
-tombstone_id_is_invalid (TombstoneID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp0_ = (*self).id;
-#line 17 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- result = _tmp0_ == TOMBSTONE_ID_INVALID;
-#line 17 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return result;
-#line 246 "TombstoneTable.c"
-}
-
-
-gboolean
-tombstone_id_is_valid (TombstoneID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp0_ = (*self).id;
-#line 21 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- result = _tmp0_ != TOMBSTONE_ID_INVALID;
-#line 21 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return result;
-#line 261 "TombstoneTable.c"
-}
-
-
-TombstoneID*
-tombstone_id_dup (const TombstoneID* self)
-{
- TombstoneID* dup;
-#line 7 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- dup = g_new0 (TombstoneID, 1);
-#line 7 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- memcpy (dup, self, sizeof (TombstoneID));
-#line 7 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return dup;
-#line 275 "TombstoneTable.c"
-}
-
-
-void
-tombstone_id_free (TombstoneID* self)
-{
-#line 7 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_free (self);
-#line 284 "TombstoneTable.c"
-}
-
-
-GType
-tombstone_id_get_type (void)
-{
- static volatile gsize tombstone_id_type_id__volatile = 0;
- if (g_once_init_enter (&tombstone_id_type_id__volatile)) {
- GType tombstone_id_type_id;
- tombstone_id_type_id = g_boxed_type_register_static ("TombstoneID", (GBoxedCopyFunc) tombstone_id_dup, (GBoxedFreeFunc) tombstone_id_free);
- g_once_init_leave (&tombstone_id_type_id__volatile, tombstone_id_type_id);
- }
- return tombstone_id_type_id__volatile;
-}
-
-
-TombstoneRow*
-tombstone_row_construct (GType object_type)
-{
- TombstoneRow* self = NULL;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- self = (TombstoneRow*) g_type_create_instance (object_type);
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return self;
-#line 309 "TombstoneTable.c"
-}
-
-
-TombstoneRow*
-tombstone_row_new (void)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return tombstone_row_construct (TYPE_TOMBSTONE_ROW);
-#line 318 "TombstoneTable.c"
-}
-
-
-static void
-value_tombstone_row_init (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- value->data[0].v_pointer = NULL;
-#line 327 "TombstoneTable.c"
-}
-
-
-static void
-value_tombstone_row_free_value (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_row_unref (value->data[0].v_pointer);
-#line 338 "TombstoneTable.c"
- }
-}
-
-
-static void
-value_tombstone_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- dest_value->data[0].v_pointer = tombstone_row_ref (src_value->data[0].v_pointer);
-#line 351 "TombstoneTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 355 "TombstoneTable.c"
- }
-}
-
-
-static gpointer
-value_tombstone_row_peek_pointer (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return value->data[0].v_pointer;
-#line 365 "TombstoneTable.c"
-}
-
-
-static gchar*
-value_tombstone_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (collect_values[0].v_pointer) {
-#line 377 "TombstoneTable.c"
- TombstoneRow * object;
- object = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 384 "TombstoneTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.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 388 "TombstoneTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- value->data[0].v_pointer = tombstone_row_ref (object);
-#line 392 "TombstoneTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- value->data[0].v_pointer = NULL;
-#line 396 "TombstoneTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return NULL;
-#line 400 "TombstoneTable.c"
-}
-
-
-static gchar*
-value_tombstone_row_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TombstoneRow ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (!object_p) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 416 "TombstoneTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (!value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- *object_p = NULL;
-#line 422 "TombstoneTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 426 "TombstoneTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- *object_p = tombstone_row_ref (value->data[0].v_pointer);
-#line 430 "TombstoneTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return NULL;
-#line 434 "TombstoneTable.c"
-}
-
-
-GParamSpec*
-param_spec_tombstone_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTombstoneRow* spec;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TOMBSTONE_ROW), NULL);
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return G_PARAM_SPEC (spec);
-#line 454 "TombstoneTable.c"
-}
-
-
-gpointer
-value_get_tombstone_row (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONE_ROW), NULL);
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return value->data[0].v_pointer;
-#line 465 "TombstoneTable.c"
-}
-
-
-void
-value_set_tombstone_row (GValue* value,
- gpointer v_object)
-{
- TombstoneRow * old;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONE_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TOMBSTONE_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- value->data[0].v_pointer = v_object;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_row_ref (value->data[0].v_pointer);
-#line 488 "TombstoneTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- value->data[0].v_pointer = NULL;
-#line 492 "TombstoneTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_row_unref (old);
-#line 498 "TombstoneTable.c"
- }
-}
-
-
-void
-value_take_tombstone_row (GValue* value,
- gpointer v_object)
-{
- TombstoneRow * old;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONE_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TOMBSTONE_ROW));
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- value->data[0].v_pointer = v_object;
-#line 520 "TombstoneTable.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- value->data[0].v_pointer = NULL;
-#line 524 "TombstoneTable.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_row_unref (old);
-#line 530 "TombstoneTable.c"
- }
-}
-
-
-static void
-tombstone_row_class_init (TombstoneRowClass * klass)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_row_parent_class = g_type_class_peek_parent (klass);
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- ((TombstoneRowClass *) klass)->finalize = tombstone_row_finalize;
-#line 542 "TombstoneTable.c"
-}
-
-
-static void
-tombstone_row_instance_init (TombstoneRow * self)
-{
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- self->ref_count = 1;
-#line 551 "TombstoneTable.c"
-}
-
-
-static void
-tombstone_row_finalize (TombstoneRow * obj)
-{
- TombstoneRow * self;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONE_ROW, TombstoneRow);
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_signal_handlers_destroy (self);
-#line 27 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _g_free0 (self->filepath);
-#line 29 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _g_free0 (self->md5);
-#line 567 "TombstoneTable.c"
-}
-
-
-GType
-tombstone_row_get_type (void)
-{
- static volatile gsize tombstone_row_type_id__volatile = 0;
- if (g_once_init_enter (&tombstone_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_tombstone_row_init, value_tombstone_row_free_value, value_tombstone_row_copy_value, value_tombstone_row_peek_pointer, "p", value_tombstone_row_collect_value, "p", value_tombstone_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TombstoneRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstone_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TombstoneRow), 0, (GInstanceInitFunc) tombstone_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType tombstone_row_type_id;
- tombstone_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TombstoneRow", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&tombstone_row_type_id__volatile, tombstone_row_type_id);
- }
- return tombstone_row_type_id__volatile;
-}
-
-
-gpointer
-tombstone_row_ref (gpointer instance)
-{
- TombstoneRow * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return instance;
-#line 596 "TombstoneTable.c"
-}
-
-
-void
-tombstone_row_unref (gpointer instance)
-{
- TombstoneRow * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- TOMBSTONE_ROW_GET_CLASS (self)->finalize (self);
-#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 611 "TombstoneTable.c"
- }
-}
-
-
-static TombstoneTable*
-tombstone_table_construct (GType object_type)
-{
- TombstoneTable* self = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
-#line 37 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- self = (TombstoneTable*) database_table_construct (object_type);
-#line 38 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "TombstoneTable");
-#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp0_ = database_table_db;
-#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS " "TombstoneTable " "(" "id INTEGER PRIMARY KEY, " "filepath TEXT NOT NULL, " "filesize INTEGER, " "md5 TEXT, " "time_created INTEGER, " "reason INTEGER DEFAULT 0 " ")", -1, &_tmp1_, NULL);
-#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- stmt = _tmp1_;
-#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = _tmp2_;
-#line 51 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp3_ = res;
-#line 51 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 53 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp4_ = stmt;
-#line 53 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 54 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp5_ = res;
-#line 54 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 654 "TombstoneTable.c"
- gint _tmp6_;
-#line 55 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp6_ = res;
-#line 55 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- database_table_fatal ("create TombstoneTable", _tmp6_);
-#line 660 "TombstoneTable.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 37 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return self;
-#line 666 "TombstoneTable.c"
-}
-
-
-static TombstoneTable*
-tombstone_table_new (void)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return tombstone_table_construct (TYPE_TOMBSTONE_TABLE);
-#line 675 "TombstoneTable.c"
-}
-
-
-static gpointer
-_database_table_ref0 (gpointer self)
-{
-#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return self ? database_table_ref (self) : NULL;
-#line 684 "TombstoneTable.c"
-}
-
-
-TombstoneTable*
-tombstone_table_get_instance (void)
-{
- TombstoneTable* result = NULL;
- TombstoneTable* _tmp0_;
- TombstoneTable* _tmp2_;
- TombstoneTable* _tmp3_;
-#line 59 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp0_ = tombstone_table_instance;
-#line 59 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_tmp0_ == NULL) {
-#line 699 "TombstoneTable.c"
- TombstoneTable* _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp1_ = tombstone_table_new ();
-#line 60 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _database_table_unref0 (tombstone_table_instance);
-#line 60 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_table_instance = _tmp1_;
-#line 707 "TombstoneTable.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp2_ = tombstone_table_instance;
-#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp3_ = _database_table_ref0 (_tmp2_);
-#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- result = _tmp3_;
-#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return result;
-#line 717 "TombstoneTable.c"
-}
-
-
-TombstoneRow*
-tombstone_table_add (TombstoneTable* self,
- const gchar* filepath,
- gint64 filesize,
- const gchar* md5,
- TombstoneReason reason,
- GError** error)
-{
- TombstoneRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- time_t time_created = 0;
- sqlite3_stmt* _tmp4_;
- gchar* _tmp5_;
- GDestroyNotify _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- gchar* _tmp11_;
- GDestroyNotify _tmp12_;
- gint _tmp13_;
- sqlite3_stmt* _tmp14_;
- time_t _tmp15_;
- gint _tmp16_;
- sqlite3_stmt* _tmp17_;
- gint _tmp18_;
- sqlite3_stmt* _tmp19_;
- gint _tmp20_;
- TombstoneRow* row = NULL;
- TombstoneRow* _tmp22_;
- TombstoneRow* _tmp23_;
- sqlite3* _tmp24_;
- TombstoneRow* _tmp25_;
- gchar* _tmp26_;
- TombstoneRow* _tmp27_;
- TombstoneRow* _tmp28_;
- gchar* _tmp29_;
- TombstoneRow* _tmp30_;
- time_t _tmp31_;
- TombstoneRow* _tmp32_;
- GError * _inner_error_ = NULL;
-#line 65 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_val_if_fail (IS_TOMBSTONE_TABLE (self), NULL);
-#line 65 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp0_ = database_table_db;
-#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO TombstoneTable " "(filepath, filesize, md5, time_created, reason) " "VALUES (?, ?, ?, ?, ?)", -1, &_tmp1_, NULL);
-#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- stmt = _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = _tmp2_;
-#line 72 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp3_ = res;
-#line 72 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 74 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- time_created = (time_t) now_sec ();
-#line 76 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp4_ = stmt;
-#line 76 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp5_ = g_strdup (filepath);
-#line 76 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp6_ = g_free;
-#line 76 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_);
-#line 77 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp7_ = res;
-#line 77 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 78 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp8_ = stmt;
-#line 78 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = sqlite3_bind_int64 (_tmp8_, 2, filesize);
-#line 79 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp9_ = res;
-#line 79 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 80 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp10_ = stmt;
-#line 80 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp11_ = g_strdup (md5);
-#line 80 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp12_ = g_free;
-#line 80 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = sqlite3_bind_text (_tmp10_, 3, _tmp11_, -1, _tmp12_);
-#line 81 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp13_ = res;
-#line 81 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK");
-#line 82 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp14_ = stmt;
-#line 82 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp15_ = time_created;
-#line 82 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = sqlite3_bind_int64 (_tmp14_, 4, (gint64) _tmp15_);
-#line 83 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp16_ = res;
-#line 83 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp16_ == SQLITE_OK, "res == Sqlite.OK");
-#line 84 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp17_ = stmt;
-#line 84 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = sqlite3_bind_int (_tmp17_, 5, tombstone_reason_serialize (reason));
-#line 85 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp18_ = res;
-#line 85 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp18_ == SQLITE_OK, "res == Sqlite.OK");
-#line 87 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp19_ = stmt;
-#line 87 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = sqlite3_step (_tmp19_);
-#line 88 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp20_ = res;
-#line 88 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_tmp20_ != SQLITE_DONE) {
-#line 845 "TombstoneTable.c"
- gint _tmp21_;
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp21_ = res;
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- database_table_throw_error ("TombstoneTable.add", _tmp21_, &_inner_error_);
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return NULL;
-#line 861 "TombstoneTable.c"
- } else {
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.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 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_clear_error (&_inner_error_);
-#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return NULL;
-#line 871 "TombstoneTable.c"
- }
- }
- }
-#line 91 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp22_ = tombstone_row_new ();
-#line 91 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- row = _tmp22_;
-#line 92 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp23_ = row;
-#line 92 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp24_ = database_table_db;
-#line 92 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_id_init (&_tmp23_->id, sqlite3_last_insert_rowid (_tmp24_));
-#line 93 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp25_ = row;
-#line 93 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp26_ = g_strdup (filepath);
-#line 93 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _g_free0 (_tmp25_->filepath);
-#line 93 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp25_->filepath = _tmp26_;
-#line 94 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp27_ = row;
-#line 94 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp27_->filesize = filesize;
-#line 95 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp28_ = row;
-#line 95 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp29_ = g_strdup (md5);
-#line 95 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _g_free0 (_tmp28_->md5);
-#line 95 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp28_->md5 = _tmp29_;
-#line 96 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp30_ = row;
-#line 96 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp31_ = time_created;
-#line 96 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp30_->time_created = _tmp31_;
-#line 97 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp32_ = row;
-#line 97 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp32_->reason = reason;
-#line 99 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- result = row;
-#line 99 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 99 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return result;
-#line 921 "TombstoneTable.c"
-}
-
-
-static gpointer
-_tombstone_row_ref0 (gpointer self)
-{
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return self ? tombstone_row_ref (self) : NULL;
-#line 930 "TombstoneTable.c"
-}
-
-
-TombstoneRow**
-tombstone_table_fetch_all (TombstoneTable* self,
- int* result_length1,
- GError** error)
-{
- TombstoneRow** result = NULL;
- gint row_count = 0;
- gint _tmp0_;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp2_;
- sqlite3_stmt* _tmp3_ = NULL;
- gint _tmp4_;
- gint _tmp5_;
- TombstoneRow** rows = NULL;
- gint _tmp6_;
- TombstoneRow** _tmp7_;
- gint rows_length1;
- gint _rows_size_;
- gint index = 0;
- gint _tmp35_;
- gint _tmp36_;
- TombstoneRow** _tmp37_;
- gint _tmp37__length1;
- GError * _inner_error_ = NULL;
-#line 102 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_val_if_fail (IS_TOMBSTONE_TABLE (self), NULL);
-#line 103 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- row_count = database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable));
-#line 104 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp0_ = row_count;
-#line 104 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_tmp0_ == 0) {
-#line 967 "TombstoneTable.c"
- TombstoneRow** _tmp1_;
- gint _tmp1__length1;
-#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp1_ = NULL;
-#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp1__length1 = 0;
-#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (result_length1) {
-#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- *result_length1 = _tmp1__length1;
-#line 978 "TombstoneTable.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- result = _tmp1_;
-#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return result;
-#line 984 "TombstoneTable.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp2_ = database_table_db;
-#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp4_ = sqlite3_prepare_v2 (_tmp2_, "SELECT id, filepath, filesize, md5, time_created, reason " "FROM TombstoneTable", -1, &_tmp3_, NULL);
-#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- stmt = _tmp3_;
-#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = _tmp4_;
-#line 110 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp5_ = res;
-#line 110 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp6_ = row_count;
-#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp7_ = g_new0 (TombstoneRow*, _tmp6_ + 1);
-#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- rows = _tmp7_;
-#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- rows_length1 = _tmp6_;
-#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _rows_size_ = rows_length1;
-#line 114 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- index = 0;
-#line 1012 "TombstoneTable.c"
- {
- gboolean _tmp8_ = FALSE;
-#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp8_ = TRUE;
-#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- while (TRUE) {
-#line 1019 "TombstoneTable.c"
- sqlite3_stmt* _tmp9_;
- gint _tmp10_;
- TombstoneRow* row = NULL;
- TombstoneRow* _tmp13_;
- TombstoneRow* _tmp14_;
- sqlite3_stmt* _tmp15_;
- TombstoneRow* _tmp16_;
- sqlite3_stmt* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
- TombstoneRow* _tmp20_;
- sqlite3_stmt* _tmp21_;
- TombstoneRow* _tmp22_;
- sqlite3_stmt* _tmp23_;
- const gchar* _tmp24_;
- gchar* _tmp25_;
- TombstoneRow* _tmp26_;
- sqlite3_stmt* _tmp27_;
- TombstoneRow* _tmp28_;
- sqlite3_stmt* _tmp29_;
- TombstoneRow** _tmp30_;
- gint _tmp30__length1;
- gint _tmp31_;
- TombstoneRow* _tmp32_;
- TombstoneRow* _tmp33_;
- TombstoneRow* _tmp34_;
-#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (!_tmp8_) {
-#line 1048 "TombstoneTable.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp8_ = FALSE;
-#line 116 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp9_ = stmt;
-#line 116 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- res = sqlite3_step (_tmp9_);
-#line 117 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp10_ = res;
-#line 117 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_tmp10_ == SQLITE_DONE) {
-#line 118 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- break;
-#line 1062 "TombstoneTable.c"
- } else {
- gint _tmp11_;
-#line 119 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp11_ = res;
-#line 119 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_tmp11_ != SQLITE_ROW) {
-#line 1069 "TombstoneTable.c"
- gint _tmp12_;
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp12_ = res;
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- database_table_throw_error ("TombstoneTable.fetch_all", _tmp12_, &_inner_error_);
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL);
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return NULL;
-#line 1087 "TombstoneTable.c"
- } else {
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL);
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.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 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_clear_error (&_inner_error_);
-#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return NULL;
-#line 1099 "TombstoneTable.c"
- }
- }
- }
- }
-#line 122 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp13_ = tombstone_row_new ();
-#line 122 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- row = _tmp13_;
-#line 123 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp14_ = row;
-#line 123 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp15_ = stmt;
-#line 123 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_id_init (&_tmp14_->id, sqlite3_column_int64 (_tmp15_, 0));
-#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp16_ = row;
-#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp17_ = stmt;
-#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp18_ = sqlite3_column_text (_tmp17_, 1);
-#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp19_ = g_strdup (_tmp18_);
-#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _g_free0 (_tmp16_->filepath);
-#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp16_->filepath = _tmp19_;
-#line 125 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp20_ = row;
-#line 125 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp21_ = stmt;
-#line 125 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp20_->filesize = sqlite3_column_int64 (_tmp21_, 2);
-#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp22_ = row;
-#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp23_ = stmt;
-#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp24_ = sqlite3_column_text (_tmp23_, 3);
-#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp25_ = g_strdup (_tmp24_);
-#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _g_free0 (_tmp22_->md5);
-#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp22_->md5 = _tmp25_;
-#line 127 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp26_ = row;
-#line 127 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp27_ = stmt;
-#line 127 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp26_->time_created = (time_t) sqlite3_column_int64 (_tmp27_, 4);
-#line 128 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp28_ = row;
-#line 128 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp29_ = stmt;
-#line 128 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp28_->reason = tombstone_reason_unserialize (sqlite3_column_int (_tmp29_, 5));
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp30_ = rows;
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp30__length1 = rows_length1;
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp31_ = index;
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- index = _tmp31_ + 1;
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp32_ = row;
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp33_ = _tombstone_row_ref0 (_tmp32_);
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tombstone_row_unref0 (_tmp30_[_tmp31_]);
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp30_[_tmp31_] = _tmp33_;
-#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp34_ = _tmp30_[_tmp31_];
-#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tombstone_row_unref0 (row);
-#line 1176 "TombstoneTable.c"
- }
- }
-#line 133 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp35_ = index;
-#line 133 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp36_ = row_count;
-#line 133 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _vala_assert (_tmp35_ == _tmp36_, "index == row_count");
-#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp37_ = rows;
-#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp37__length1 = rows_length1;
-#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (result_length1) {
-#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- *result_length1 = _tmp37__length1;
-#line 1193 "TombstoneTable.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- result = _tmp37_;
-#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return result;
-#line 1201 "TombstoneTable.c"
-}
-
-
-void
-tombstone_table_update_file (TombstoneTable* self,
- TombstoneID* tombstone_id,
- const gchar* filepath,
- GError** error)
-{
- TombstoneID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 138 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (IS_TOMBSTONE_TABLE (self));
-#line 138 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (tombstone_id != NULL);
-#line 138 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (filepath != NULL);
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp0_ = *tombstone_id;
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "filepath", filepath, &_inner_error_);
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return;
-#line 1234 "TombstoneTable.c"
- } else {
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.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 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_clear_error (&_inner_error_);
-#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return;
-#line 1242 "TombstoneTable.c"
- }
- }
-}
-
-
-void
-tombstone_table_remove (TombstoneTable* self,
- TombstoneID* tombstone_id,
- GError** error)
-{
- TombstoneID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 142 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (IS_TOMBSTONE_TABLE (self));
-#line 142 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_return_if_fail (tombstone_id != NULL);
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp0_ = *tombstone_id;
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return;
-#line 1274 "TombstoneTable.c"
- } else {
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.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 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- g_clear_error (&_inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- return;
-#line 1282 "TombstoneTable.c"
- }
- }
-}
-
-
-static void
-tombstone_table_class_init (TombstoneTableClass * klass)
-{
-#line 34 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- tombstone_table_parent_class = g_type_class_peek_parent (klass);
-#line 34 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- ((DatabaseTableClass *) klass)->finalize = tombstone_table_finalize;
-#line 1295 "TombstoneTable.c"
-}
-
-
-static void
-tombstone_table_instance_init (TombstoneTable * self)
-{
-}
-
-
-static void
-tombstone_table_finalize (DatabaseTable * obj)
-{
- TombstoneTable * self;
-#line 34 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONE_TABLE, TombstoneTable);
-#line 34 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala"
- DATABASE_TABLE_CLASS (tombstone_table_parent_class)->finalize (obj);
-#line 1313 "TombstoneTable.c"
-}
-
-
-GType
-tombstone_table_get_type (void)
-{
- static volatile gsize tombstone_table_type_id__volatile = 0;
- if (g_once_init_enter (&tombstone_table_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TombstoneTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstone_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TombstoneTable), 0, (GInstanceInitFunc) tombstone_table_instance_init, NULL };
- GType tombstone_table_type_id;
- tombstone_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "TombstoneTable", &g_define_type_info, 0);
- g_once_init_leave (&tombstone_table_type_id__volatile, tombstone_table_type_id);
- }
- return tombstone_table_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/db/VersionTable.c b/src/db/VersionTable.c
deleted file mode 100644
index a5847d7..0000000
--- a/src/db/VersionTable.c
+++ /dev/null
@@ -1,597 +0,0 @@
-/* VersionTable.c generated by valac 0.40.4, the Vala compiler
- * generated from VersionTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sqlite3.h>
-
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-typedef struct _DatabaseTablePrivate DatabaseTablePrivate;
-
-#define TYPE_VERSION_TABLE (version_table_get_type ())
-#define VERSION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VERSION_TABLE, VersionTable))
-#define VERSION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VERSION_TABLE, VersionTableClass))
-#define IS_VERSION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VERSION_TABLE))
-#define IS_VERSION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VERSION_TABLE))
-#define VERSION_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VERSION_TABLE, VersionTableClass))
-
-typedef struct _VersionTable VersionTable;
-typedef struct _VersionTableClass VersionTableClass;
-typedef struct _VersionTablePrivate VersionTablePrivate;
-#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DatabaseTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DatabaseTablePrivate * priv;
- gchar* table_name;
-};
-
-struct _DatabaseTableClass {
- GTypeClass parent_class;
- void (*finalize) (DatabaseTable *self);
-};
-
-struct _VersionTable {
- DatabaseTable parent_instance;
- VersionTablePrivate * priv;
-};
-
-struct _VersionTableClass {
- DatabaseTableClass parent_class;
-};
-
-
-static gpointer version_table_parent_class = NULL;
-static VersionTable* version_table_instance;
-static VersionTable* version_table_instance = NULL;
-extern sqlite3* database_table_db;
-
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType version_table_get_type (void) G_GNUC_CONST;
-static VersionTable* version_table_new (void);
-static VersionTable* version_table_construct (GType object_type);
-DatabaseTable* database_table_construct (GType object_type);
-void database_table_fatal (const gchar* op,
- gint res);
-void database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name);
-VersionTable* version_table_get_instance (void);
-gint version_table_get_version (VersionTable* self,
- gchar* * app_version);
-void version_table_set_version (VersionTable* self,
- gint version,
- const gchar* app_version,
- const gchar* user_data);
-void version_table_update_version (VersionTable* self,
- gint version,
- const gchar* app_version);
-static void version_table_finalize (DatabaseTable * obj);
-
-
-static VersionTable*
-version_table_construct (GType object_type)
-{
- VersionTable* self = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
-#line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- self = (VersionTable*) database_table_construct (object_type);
-#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp0_ = database_table_db;
-#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS VersionTable (" "id INTEGER PRIMARY KEY, " "schema_version INTEGER, " "app_version TEXT, " "user_data TEXT NULL" ")", -1, &_tmp1_, NULL);
-#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- stmt = _tmp1_;
-#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = _tmp2_;
-#line 18 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp3_ = res;
-#line 18 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 20 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp4_ = stmt;
-#line 20 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 21 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp5_ = res;
-#line 21 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 145 "VersionTable.c"
- gint _tmp6_;
-#line 22 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp6_ = res;
-#line 22 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- database_table_fatal ("create version table", _tmp6_);
-#line 151 "VersionTable.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "VersionTable");
-#line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- return self;
-#line 159 "VersionTable.c"
-}
-
-
-static VersionTable*
-version_table_new (void)
-{
-#line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- return version_table_construct (TYPE_VERSION_TABLE);
-#line 168 "VersionTable.c"
-}
-
-
-static gpointer
-_database_table_ref0 (gpointer self)
-{
-#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- return self ? database_table_ref (self) : NULL;
-#line 177 "VersionTable.c"
-}
-
-
-VersionTable*
-version_table_get_instance (void)
-{
- VersionTable* result = NULL;
- VersionTable* _tmp0_;
- VersionTable* _tmp2_;
- VersionTable* _tmp3_;
-#line 28 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp0_ = version_table_instance;
-#line 28 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (_tmp0_ == NULL) {
-#line 192 "VersionTable.c"
- VersionTable* _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp1_ = version_table_new ();
-#line 29 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _database_table_unref0 (version_table_instance);
-#line 29 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- version_table_instance = _tmp1_;
-#line 200 "VersionTable.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp2_ = version_table_instance;
-#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp3_ = _database_table_ref0 (_tmp2_);
-#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- result = _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- return result;
-#line 210 "VersionTable.c"
-}
-
-
-gint
-version_table_get_version (VersionTable* self,
- gchar* * app_version)
-{
- gchar* _vala_app_version = NULL;
- gint result = 0;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* _tmp8_;
- const gchar* _tmp9_;
- gchar* _tmp10_;
- sqlite3_stmt* _tmp11_;
-#line 34 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- g_return_val_if_fail (IS_VERSION_TABLE (self), 0);
-#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp0_ = database_table_db;
-#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT schema_version, app_version FROM VersionTable ORDER BY schema_v" \
-"ersion DESC LIMIT 1", -1, &_tmp1_, NULL);
-#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- stmt = _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = _tmp2_;
-#line 38 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp3_ = res;
-#line 38 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 40 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp4_ = stmt;
-#line 40 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 41 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp5_ = res;
-#line 41 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (_tmp5_ != SQLITE_ROW) {
-#line 256 "VersionTable.c"
- gint _tmp6_;
-#line 42 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp6_ = res;
-#line 42 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (_tmp6_ != SQLITE_DONE) {
-#line 262 "VersionTable.c"
- gint _tmp7_;
-#line 43 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp7_ = res;
-#line 43 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- database_table_fatal ("get_version", _tmp7_);
-#line 268 "VersionTable.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _g_free0 (_vala_app_version);
-#line 45 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_app_version = NULL;
-#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- result = -1;
-#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (app_version) {
-#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- *app_version = _vala_app_version;
-#line 282 "VersionTable.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _g_free0 (_vala_app_version);
-#line 286 "VersionTable.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- return result;
-#line 290 "VersionTable.c"
- }
-#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp8_ = stmt;
-#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp9_ = sqlite3_column_text (_tmp8_, 1);
-#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp10_ = g_strdup (_tmp9_);
-#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _g_free0 (_vala_app_version);
-#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_app_version = _tmp10_;
-#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp11_ = stmt;
-#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- result = sqlite3_column_int (_tmp11_, 0);
-#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (app_version) {
-#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- *app_version = _vala_app_version;
-#line 312 "VersionTable.c"
- } else {
-#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _g_free0 (_vala_app_version);
-#line 316 "VersionTable.c"
- }
-#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- return result;
-#line 320 "VersionTable.c"
-}
-
-
-void
-version_table_set_version (VersionTable* self,
- gint version,
- const gchar* app_version,
- const gchar* user_data)
-{
- sqlite3_stmt* stmt = NULL;
- gchar* bitbucket = NULL;
- gchar* _tmp0_ = NULL;
- gint _tmp1_;
- gint res = 0;
- sqlite3_stmt* _tmp10_;
- gint _tmp11_;
- sqlite3_stmt* _tmp12_;
- gchar* _tmp13_;
- GDestroyNotify _tmp14_;
- gint _tmp15_;
- sqlite3_stmt* _tmp16_;
- gchar* _tmp17_;
- GDestroyNotify _tmp18_;
- gint _tmp19_;
- sqlite3_stmt* _tmp20_;
- gint _tmp21_;
-#line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- g_return_if_fail (IS_VERSION_TABLE (self));
-#line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- g_return_if_fail (app_version != NULL);
-#line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp1_ = version_table_get_version (self, &_tmp0_);
-#line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _g_free0 (bitbucket);
-#line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- bitbucket = _tmp0_;
-#line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (_tmp1_ != -1) {
-#line 359 "VersionTable.c"
- gint res = 0;
- sqlite3* _tmp2_;
- sqlite3_stmt* _tmp3_ = NULL;
- gint _tmp4_;
- gint _tmp5_;
-#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp2_ = database_table_db;
-#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp4_ = sqlite3_prepare_v2 (_tmp2_, "UPDATE VersionTable SET schema_version=?, app_version=?, user_data=?", -1, &_tmp3_, NULL);
-#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- stmt = _tmp3_;
-#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = _tmp4_;
-#line 63 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp5_ = res;
-#line 63 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 379 "VersionTable.c"
- } else {
- gint res = 0;
- sqlite3* _tmp6_;
- sqlite3_stmt* _tmp7_ = NULL;
- gint _tmp8_;
- gint _tmp9_;
-#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp6_ = database_table_db;
-#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp8_ = sqlite3_prepare_v2 (_tmp6_, "INSERT INTO VersionTable (schema_version, app_version, user_data) VALU" \
-"ES (?,?, ?)", -1, &_tmp7_, NULL);
-#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- stmt = _tmp7_;
-#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = _tmp8_;
-#line 68 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp9_ = res;
-#line 68 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 400 "VersionTable.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp10_ = stmt;
-#line 71 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_bind_int (_tmp10_, 1, version);
-#line 72 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp11_ = res;
-#line 72 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK");
-#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp12_ = stmt;
-#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp13_ = g_strdup (app_version);
-#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp14_ = g_free;
-#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_bind_text (_tmp12_, 2, _tmp13_, -1, _tmp14_);
-#line 74 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp15_ = res;
-#line 74 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK");
-#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp16_ = stmt;
-#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp17_ = g_strdup (user_data);
-#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp18_ = g_free;
-#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_bind_text (_tmp16_, 3, _tmp17_, -1, _tmp18_);
-#line 76 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp19_ = res;
-#line 76 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK");
-#line 78 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp20_ = stmt;
-#line 78 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_step (_tmp20_);
-#line 79 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp21_ = res;
-#line 79 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (_tmp21_ != SQLITE_DONE) {
-#line 442 "VersionTable.c"
- gchar* _tmp22_;
- gchar* _tmp23_;
- gint _tmp24_;
-#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp22_ = g_strdup_printf ("set_version %d %s %s", version, app_version, user_data);
-#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp23_ = _tmp22_;
-#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp24_ = res;
-#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- database_table_fatal (_tmp23_, _tmp24_);
-#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _g_free0 (_tmp23_);
-#line 456 "VersionTable.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _g_free0 (bitbucket);
-#line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 462 "VersionTable.c"
-}
-
-
-void
-version_table_update_version (VersionTable* self,
- gint version,
- const gchar* app_version)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* _tmp6_;
- gchar* _tmp7_;
- GDestroyNotify _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- gint _tmp11_;
-#line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- g_return_if_fail (IS_VERSION_TABLE (self));
-#line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- g_return_if_fail (app_version != NULL);
-#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp0_ = database_table_db;
-#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE VersionTable SET schema_version=?, app_version=?", -1, &_tmp1_, NULL);
-#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- stmt = _tmp1_;
-#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = _tmp2_;
-#line 86 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp3_ = res;
-#line 86 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 88 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp4_ = stmt;
-#line 88 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_bind_int (_tmp4_, 1, version);
-#line 89 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp5_ = res;
-#line 89 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp6_ = stmt;
-#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp7_ = g_strdup (app_version);
-#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp8_ = g_free;
-#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_bind_text (_tmp6_, 2, _tmp7_, -1, _tmp8_);
-#line 91 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp9_ = res;
-#line 91 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 93 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp10_ = stmt;
-#line 93 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- res = sqlite3_step (_tmp10_);
-#line 94 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp11_ = res;
-#line 94 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- if (_tmp11_ != SQLITE_DONE) {
-#line 531 "VersionTable.c"
- gchar* _tmp12_;
- gchar* _tmp13_;
- gint _tmp14_;
-#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp12_ = g_strdup_printf ("update_version %d", version);
-#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp13_ = _tmp12_;
-#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _tmp14_ = res;
-#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- database_table_fatal (_tmp13_, _tmp14_);
-#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _g_free0 (_tmp13_);
-#line 545 "VersionTable.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 549 "VersionTable.c"
-}
-
-
-static void
-version_table_class_init (VersionTableClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- version_table_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- ((DatabaseTableClass *) klass)->finalize = version_table_finalize;
-#line 560 "VersionTable.c"
-}
-
-
-static void
-version_table_instance_init (VersionTable * self)
-{
-}
-
-
-static void
-version_table_finalize (DatabaseTable * obj)
-{
- VersionTable * self;
-#line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VERSION_TABLE, VersionTable);
-#line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala"
- DATABASE_TABLE_CLASS (version_table_parent_class)->finalize (obj);
-#line 578 "VersionTable.c"
-}
-
-
-GType
-version_table_get_type (void)
-{
- static volatile gsize version_table_type_id__volatile = 0;
- if (g_once_init_enter (&version_table_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VersionTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) version_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VersionTable), 0, (GInstanceInitFunc) version_table_instance_init, NULL };
- GType version_table_type_id;
- version_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "VersionTable", &g_define_type_info, 0);
- g_once_init_leave (&version_table_type_id__volatile, version_table_type_id);
- }
- return version_table_type_id__volatile;
-}
-
-
-
diff --git a/src/db/VideoTable.c b/src/db/VideoTable.c
deleted file mode 100644
index 0780862..0000000
--- a/src/db/VideoTable.c
+++ /dev/null
@@ -1,3266 +0,0 @@
-/* VideoTable.c generated by valac 0.40.4, the Vala compiler
- * generated from VideoTable.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <stdlib.h>
-#include <time.h>
-#include <float.h>
-#include <math.h>
-#include <sqlite3.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_VIDEO_ID (video_id_get_type ())
-typedef struct _VideoID VideoID;
-
-#define TYPE_VIDEO_ROW (video_row_get_type ())
-#define VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_ROW, VideoRow))
-#define VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_ROW, VideoRowClass))
-#define IS_VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_ROW))
-#define IS_VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_ROW))
-#define VIDEO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_ROW, VideoRowClass))
-
-typedef struct _VideoRow VideoRow;
-typedef struct _VideoRowClass VideoRowClass;
-typedef struct _VideoRowPrivate VideoRowPrivate;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_RATING (rating_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecVideoRow ParamSpecVideoRow;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-typedef struct _DatabaseTablePrivate DatabaseTablePrivate;
-
-#define TYPE_VIDEO_TABLE (video_table_get_type ())
-#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable))
-#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass))
-#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE))
-#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE))
-#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass))
-
-typedef struct _VideoTable VideoTable;
-typedef struct _VideoTableClass VideoTableClass;
-typedef struct _VideoTablePrivate VideoTablePrivate;
-#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _video_row_unref0(var) ((var == NULL) ? NULL : (var = (video_row_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _VideoID {
- gint64 id;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _EventID {
- gint64 id;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _VideoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- VideoRowPrivate * priv;
- VideoID video_id;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- gint width;
- gint height;
- gdouble clip_duration;
- gboolean is_interpretable;
- time_t exposure_time;
- ImportID import_id;
- EventID event_id;
- gchar* md5;
- time_t time_created;
- Rating rating;
- gchar* title;
- gchar* backlinks;
- time_t time_reimported;
- guint64 flags;
- gchar* comment;
-};
-
-struct _VideoRowClass {
- GTypeClass parent_class;
- void (*finalize) (VideoRow *self);
-};
-
-struct _ParamSpecVideoRow {
- GParamSpec parent_instance;
-};
-
-struct _DatabaseTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DatabaseTablePrivate * priv;
- gchar* table_name;
-};
-
-struct _DatabaseTableClass {
- GTypeClass parent_class;
- void (*finalize) (DatabaseTable *self);
-};
-
-struct _VideoTable {
- DatabaseTable parent_instance;
- VideoTablePrivate * priv;
-};
-
-struct _VideoTableClass {
- DatabaseTableClass parent_class;
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-
-static gpointer video_row_parent_class = NULL;
-static gpointer video_table_parent_class = NULL;
-static VideoTable* video_table_instance;
-static VideoTable* video_table_instance = NULL;
-extern sqlite3* database_table_db;
-
-GType video_id_get_type (void) G_GNUC_CONST;
-VideoID* video_id_dup (const VideoID* self);
-void video_id_free (VideoID* self);
-#define VIDEO_ID_INVALID ((gint64) -1)
-void video_id_init (VideoID *self,
- gint64 id);
-gboolean video_id_is_invalid (VideoID *self);
-gboolean video_id_is_valid (VideoID *self);
-guint video_id_hash (VideoID* a);
-guint int64_hash (gint64* n);
-gboolean video_id_equal (void* a,
- void* b);
-gchar* video_id_upgrade_video_id_to_source_id (VideoID* video_id);
-#define VIDEO_TYPENAME "video"
-gpointer video_row_ref (gpointer instance);
-void video_row_unref (gpointer instance);
-GParamSpec* param_spec_video_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_video_row (GValue* value,
- gpointer v_object);
-void value_take_video_row (GValue* value,
- gpointer v_object);
-gpointer value_get_video_row (const GValue* value);
-GType video_row_get_type (void) G_GNUC_CONST;
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-GType rating_get_type (void) G_GNUC_CONST;
-VideoRow* video_row_new (void);
-VideoRow* video_row_construct (GType object_type);
-static void video_row_finalize (VideoRow * obj);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType video_table_get_type (void) G_GNUC_CONST;
-static VideoTable* video_table_new (void);
-static VideoTable* video_table_construct (GType object_type);
-DatabaseTable* database_table_construct (GType object_type);
-void database_table_fatal (const gchar* op,
- gint res);
-void database_table_set_table_name (DatabaseTable* self,
- const gchar* table_name);
-VideoTable* video_table_get_instance (void);
-GQuark database_error_quark (void);
-void video_table_add (VideoTable* self,
- VideoRow* video_row,
- VideoID* result,
- GError** error);
-gulong now_sec (void);
-#define EVENT_ID_INVALID ((gint64) -1)
-void database_table_throw_error (const gchar* method,
- gint res,
- GError** error);
-void event_id_init (EventID *self,
- gint64 id);
-gboolean video_table_drop_event (VideoTable* self,
- EventID* event_id);
-VideoRow* video_table_get_row (VideoTable* self,
- VideoID* video_id);
-Rating rating_unserialize (gint value);
-GeeArrayList* video_table_get_all (VideoTable* self);
-void video_table_set_filepath (VideoTable* self,
- VideoID* video_id,
- const gchar* filepath,
- GError** error);
-void database_table_update_text_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- const gchar* text,
- GError** error);
-void video_table_set_title (VideoTable* self,
- VideoID* video_id,
- const gchar* new_title,
- GError** error);
-void video_table_set_comment (VideoTable* self,
- VideoID* video_id,
- const gchar* new_comment,
- GError** error);
-void video_table_set_exposure_time (VideoTable* self,
- VideoID* video_id,
- time_t time,
- GError** error);
-void database_table_update_int64_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint64 value,
- GError** error);
-void video_table_set_rating (VideoTable* self,
- VideoID* video_id,
- Rating rating,
- GError** error);
-gint rating_serialize (Rating self);
-void video_table_set_flags (VideoTable* self,
- VideoID* video_id,
- guint64 flags,
- GError** error);
-void video_table_update_backlinks (VideoTable* self,
- VideoID* video_id,
- const gchar* backlinks,
- GError** error);
-void video_table_update_is_interpretable (VideoTable* self,
- VideoID* video_id,
- gboolean is_interpretable,
- GError** error);
-void database_table_update_int_by_id_2 (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint value,
- GError** error);
-gboolean video_table_set_event (VideoTable* self,
- VideoID* video_id,
- EventID* event_id);
-gboolean database_table_update_int64_by_id (DatabaseTable* self,
- gint64 id,
- const gchar* column,
- gint64 value);
-void video_table_remove_by_file (VideoTable* self,
- GFile* file,
- GError** error);
-void video_table_remove (VideoTable* self,
- VideoID* videoID,
- GError** error);
-gboolean video_table_is_video_stored (VideoTable* self,
- GFile* file);
-void video_table_get_id (VideoTable* self,
- GFile* file,
- VideoID* result);
-GeeArrayList* video_table_get_videos (VideoTable* self,
- GError** error);
-static sqlite3_stmt* video_table_get_duplicate_stmt (VideoTable* self,
- GFile* file,
- const gchar* md5);
-gboolean video_table_has_duplicate (VideoTable* self,
- GFile* file,
- const gchar* md5);
-VideoID* video_table_get_duplicate_ids (VideoTable* self,
- GFile* file,
- const gchar* md5,
- int* result_length1);
-static void _vala_array_add3 (VideoID* * array,
- int* length,
- int* size,
- const VideoID* value);
-GeeArrayList* video_table_get_event_source_ids (VideoTable* self,
- EventID* event_id);
-void video_table_set_timestamp (VideoTable* self,
- VideoID* video_id,
- time_t timestamp,
- GError** error);
-static void video_table_finalize (DatabaseTable * obj);
-
-
-void
-video_id_init (VideoID *self,
- gint64 id)
-{
-#line 12 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- memset (self, 0, sizeof (VideoID));
-#line 13 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- (*self).id = id;
-#line 348 "VideoTable.c"
-}
-
-
-gboolean
-video_id_is_invalid (VideoID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = (*self).id;
-#line 17 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = _tmp0_ == VIDEO_ID_INVALID;
-#line 17 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 363 "VideoTable.c"
-}
-
-
-gboolean
-video_id_is_valid (VideoID *self)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = (*self).id;
-#line 21 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = _tmp0_ != VIDEO_ID_INVALID;
-#line 21 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 378 "VideoTable.c"
-}
-
-
-guint
-video_id_hash (VideoID* a)
-{
- guint result = 0U;
- gint64 _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = (*a).id;
-#line 25 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = int64_hash (&_tmp0_);
-#line 25 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 393 "VideoTable.c"
-}
-
-
-gboolean
-video_id_equal (void* a,
- void* b)
-{
- gboolean result = FALSE;
- gint64 _tmp0_;
- gint64 _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = (*((VideoID*) a)).id;
-#line 29 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = (*((VideoID*) b)).id;
-#line 29 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = _tmp0_ == _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 412 "VideoTable.c"
-}
-
-
-gchar*
-video_id_upgrade_video_id_to_source_id (VideoID* video_id)
-{
- gchar* result = NULL;
- VideoID _tmp0_;
- gint64 _tmp1_;
- gchar* _tmp2_;
-#line 32 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (video_id != NULL, NULL);
-#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = *video_id;
-#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = g_strdup_printf ("%s-%016" G_GINT64_MODIFIER "x", VIDEO_TYPENAME, _tmp1_);
-#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 435 "VideoTable.c"
-}
-
-
-VideoID*
-video_id_dup (const VideoID* self)
-{
- VideoID* dup;
-#line 7 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- dup = g_new0 (VideoID, 1);
-#line 7 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- memcpy (dup, self, sizeof (VideoID));
-#line 7 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return dup;
-#line 449 "VideoTable.c"
-}
-
-
-void
-video_id_free (VideoID* self)
-{
-#line 7 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_free (self);
-#line 458 "VideoTable.c"
-}
-
-
-GType
-video_id_get_type (void)
-{
- static volatile gsize video_id_type_id__volatile = 0;
- if (g_once_init_enter (&video_id_type_id__volatile)) {
- GType video_id_type_id;
- video_id_type_id = g_boxed_type_register_static ("VideoID", (GBoxedCopyFunc) video_id_dup, (GBoxedFreeFunc) video_id_free);
- g_once_init_leave (&video_id_type_id__volatile, video_id_type_id);
- }
- return video_id_type_id__volatile;
-}
-
-
-VideoRow*
-video_row_construct (GType object_type)
-{
- VideoRow* self = NULL;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- self = (VideoRow*) g_type_create_instance (object_type);
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return self;
-#line 483 "VideoTable.c"
-}
-
-
-VideoRow*
-video_row_new (void)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return video_row_construct (TYPE_VIDEO_ROW);
-#line 492 "VideoTable.c"
-}
-
-
-static void
-value_video_row_init (GValue* value)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 501 "VideoTable.c"
-}
-
-
-static void
-value_video_row_free_value (GValue* value)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (value->data[0].v_pointer) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_row_unref (value->data[0].v_pointer);
-#line 512 "VideoTable.c"
- }
-}
-
-
-static void
-value_video_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (src_value->data[0].v_pointer) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- dest_value->data[0].v_pointer = video_row_ref (src_value->data[0].v_pointer);
-#line 525 "VideoTable.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 529 "VideoTable.c"
- }
-}
-
-
-static gpointer
-value_video_row_peek_pointer (const GValue* value)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return value->data[0].v_pointer;
-#line 539 "VideoTable.c"
-}
-
-
-static gchar*
-value_video_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (collect_values[0].v_pointer) {
-#line 551 "VideoTable.c"
- VideoRow * object;
- object = collect_values[0].v_pointer;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 558 "VideoTable.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.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 562 "VideoTable.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- value->data[0].v_pointer = video_row_ref (object);
-#line 566 "VideoTable.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 570 "VideoTable.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return NULL;
-#line 574 "VideoTable.c"
-}
-
-
-static gchar*
-value_video_row_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- VideoRow ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (!object_p) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 590 "VideoTable.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (!value->data[0].v_pointer) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- *object_p = NULL;
-#line 596 "VideoTable.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- *object_p = value->data[0].v_pointer;
-#line 600 "VideoTable.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- *object_p = video_row_ref (value->data[0].v_pointer);
-#line 604 "VideoTable.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return NULL;
-#line 608 "VideoTable.c"
-}
-
-
-GParamSpec*
-param_spec_video_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecVideoRow* spec;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIDEO_ROW), NULL);
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return G_PARAM_SPEC (spec);
-#line 628 "VideoTable.c"
-}
-
-
-gpointer
-value_get_video_row (const GValue* value)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_ROW), NULL);
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return value->data[0].v_pointer;
-#line 639 "VideoTable.c"
-}
-
-
-void
-value_set_video_row (GValue* value,
- gpointer v_object)
-{
- VideoRow * old;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_ROW));
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- old = value->data[0].v_pointer;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (v_object) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_ROW));
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- value->data[0].v_pointer = v_object;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_row_ref (value->data[0].v_pointer);
-#line 662 "VideoTable.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 666 "VideoTable.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (old) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_row_unref (old);
-#line 672 "VideoTable.c"
- }
-}
-
-
-void
-value_take_video_row (GValue* value,
- gpointer v_object)
-{
- VideoRow * old;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_ROW));
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- old = value->data[0].v_pointer;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (v_object) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_ROW));
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- value->data[0].v_pointer = v_object;
-#line 694 "VideoTable.c"
- } else {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- value->data[0].v_pointer = NULL;
-#line 698 "VideoTable.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (old) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_row_unref (old);
-#line 704 "VideoTable.c"
- }
-}
-
-
-static void
-video_row_class_init (VideoRowClass * klass)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_row_parent_class = g_type_class_peek_parent (klass);
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- ((VideoRowClass *) klass)->finalize = video_row_finalize;
-#line 716 "VideoTable.c"
-}
-
-
-static void
-video_row_instance_init (VideoRow * self)
-{
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- self->ref_count = 1;
-#line 725 "VideoTable.c"
-}
-
-
-static void
-video_row_finalize (VideoRow * obj)
-{
- VideoRow * self;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_ROW, VideoRow);
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_signal_handlers_destroy (self);
-#line 39 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (self->filepath);
-#line 49 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (self->md5);
-#line 52 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (self->title);
-#line 53 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (self->backlinks);
-#line 56 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (self->comment);
-#line 747 "VideoTable.c"
-}
-
-
-GType
-video_row_get_type (void)
-{
- static volatile gsize video_row_type_id__volatile = 0;
- if (g_once_init_enter (&video_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_video_row_init, value_video_row_free_value, value_video_row_copy_value, value_video_row_peek_pointer, "p", value_video_row_collect_value, "p", value_video_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (VideoRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoRow), 0, (GInstanceInitFunc) video_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType video_row_type_id;
- video_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "VideoRow", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&video_row_type_id__volatile, video_row_type_id);
- }
- return video_row_type_id__volatile;
-}
-
-
-gpointer
-video_row_ref (gpointer instance)
-{
- VideoRow * self;
- self = instance;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return instance;
-#line 776 "VideoTable.c"
-}
-
-
-void
-video_row_unref (gpointer instance)
-{
- VideoRow * self;
- self = instance;
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- VIDEO_ROW_GET_CLASS (self)->finalize (self);
-#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 791 "VideoTable.c"
- }
-}
-
-
-static VideoTable*
-video_table_construct (GType object_type)
-{
- VideoTable* self = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* stmt2 = NULL;
- gint res2 = 0;
- sqlite3* _tmp7_;
- sqlite3_stmt* _tmp8_ = NULL;
- gint _tmp9_;
- gint _tmp10_;
- sqlite3_stmt* _tmp11_;
- gint _tmp12_;
-#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- self = (VideoTable*) database_table_construct (object_type);
-#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS VideoTable (" "id INTEGER PRIMARY KEY, " "filename TEXT UNIQUE NOT NULL, " "width INTEGER, " "height INTEGER, " "clip_duration REAL, " "is_interpretable INTEGER, " "filesize INTEGER, " "timestamp INTEGER, " "exposure_time INTEGER, " "import_id INTEGER, " "event_id INTEGER, " "md5 TEXT, " "time_created INTEGER, " "rating INTEGER DEFAULT 0, " "title TEXT, " "backlinks TEXT, " "time_reimported INTEGER, " "flags INTEGER DEFAULT 0, " "comment TEXT " ")", -1, &_tmp1_, NULL);
-#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 85 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 85 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 87 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = stmt;
-#line 87 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp4_);
-#line 88 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = res;
-#line 88 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp5_ != SQLITE_DONE) {
-#line 840 "VideoTable.c"
- gint _tmp6_;
-#line 89 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = res;
-#line 89 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_fatal ("VideoTable constructor", _tmp6_);
-#line 846 "VideoTable.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = database_table_db;
-#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = sqlite3_prepare_v2 (_tmp7_, "CREATE INDEX IF NOT EXISTS VideoEventIDIndex ON VideoTable (event_id)", -1, &_tmp8_, NULL);
-#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt2);
-#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt2 = _tmp8_;
-#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res2 = _tmp9_;
-#line 95 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = res2;
-#line 95 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp10_ == SQLITE_OK, "res2 == Sqlite.OK");
-#line 97 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp11_ = stmt2;
-#line 97 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res2 = sqlite3_step (_tmp11_);
-#line 98 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp12_ = res2;
-#line 98 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp12_ != SQLITE_DONE) {
-#line 870 "VideoTable.c"
- gint _tmp13_;
-#line 99 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp13_ = res2;
-#line 99 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_fatal ("VideoTable constructor", _tmp13_);
-#line 876 "VideoTable.c"
- }
-#line 101 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "VideoTable");
-#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt2);
-#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return self;
-#line 886 "VideoTable.c"
-}
-
-
-static VideoTable*
-video_table_new (void)
-{
-#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return video_table_construct (TYPE_VIDEO_TABLE);
-#line 895 "VideoTable.c"
-}
-
-
-static gpointer
-_database_table_ref0 (gpointer self)
-{
-#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return self ? database_table_ref (self) : NULL;
-#line 904 "VideoTable.c"
-}
-
-
-VideoTable*
-video_table_get_instance (void)
-{
- VideoTable* result = NULL;
- VideoTable* _tmp0_;
- VideoTable* _tmp2_;
- VideoTable* _tmp3_;
-#line 105 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = video_table_instance;
-#line 105 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp0_ == NULL) {
-#line 919 "VideoTable.c"
- VideoTable* _tmp1_;
-#line 106 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = video_table_new ();
-#line 106 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _database_table_unref0 (video_table_instance);
-#line 106 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_table_instance = _tmp1_;
-#line 927 "VideoTable.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = video_table_instance;
-#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = _database_table_ref0 (_tmp2_);
-#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = _tmp3_;
-#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 937 "VideoTable.c"
-}
-
-
-void
-video_table_add (VideoTable* self,
- VideoRow* video_row,
- VideoID* result,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- gulong time_created = 0UL;
- sqlite3_stmt* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- GDestroyNotify _tmp7_;
- gint _tmp8_;
- sqlite3_stmt* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- sqlite3_stmt* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- sqlite3_stmt* _tmp15_;
- gdouble _tmp16_;
- gint _tmp17_;
- gint _tmp18_ = 0;
- gboolean _tmp19_;
- sqlite3_stmt* _tmp20_;
- gint _tmp21_;
- sqlite3_stmt* _tmp22_;
- gint64 _tmp23_;
- gint _tmp24_;
- sqlite3_stmt* _tmp25_;
- time_t _tmp26_;
- gint _tmp27_;
- sqlite3_stmt* _tmp28_;
- time_t _tmp29_;
- gint _tmp30_;
- sqlite3_stmt* _tmp31_;
- ImportID _tmp32_;
- gint64 _tmp33_;
- gint _tmp34_;
- sqlite3_stmt* _tmp35_;
- gint _tmp36_;
- sqlite3_stmt* _tmp37_;
- const gchar* _tmp38_;
- gchar* _tmp39_;
- GDestroyNotify _tmp40_;
- gint _tmp41_;
- sqlite3_stmt* _tmp42_;
- gulong _tmp43_;
- gint _tmp44_;
- sqlite3_stmt* _tmp45_;
- const gchar* _tmp46_;
- gchar* _tmp47_;
- GDestroyNotify _tmp48_;
- gint _tmp49_;
- sqlite3_stmt* _tmp50_;
- const gchar* _tmp51_;
- gchar* _tmp52_;
- GDestroyNotify _tmp53_;
- gint _tmp54_;
- sqlite3_stmt* _tmp55_;
- gint _tmp56_;
- sqlite3* _tmp59_;
- gulong _tmp60_;
- VideoID _tmp61_;
- GError * _inner_error_ = NULL;
-#line 113 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 113 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_ROW (video_row));
-#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO VideoTable (filename, width, height, clip_duration, is_int" \
-"erpretable, " "filesize, timestamp, exposure_time, import_id, event_id, md5, time_cre" \
-"ated, title, comment) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", -1, &_tmp1_, NULL);
-#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 120 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 120 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 122 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- time_created = now_sec ();
-#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = stmt;
-#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = video_row->filepath;
-#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = g_free;
-#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_);
-#line 125 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = res;
-#line 125 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK");
-#line 126 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = stmt;
-#line 126 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = video_row->width;
-#line 126 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int (_tmp9_, 2, _tmp10_);
-#line 127 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp11_ = res;
-#line 127 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK");
-#line 128 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp12_ = stmt;
-#line 128 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp13_ = video_row->height;
-#line 128 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int (_tmp12_, 3, _tmp13_);
-#line 129 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp14_ = res;
-#line 129 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp14_ == SQLITE_OK, "res == Sqlite.OK");
-#line 130 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp15_ = stmt;
-#line 130 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp16_ = video_row->clip_duration;
-#line 130 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_double (_tmp15_, 4, _tmp16_);
-#line 131 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp17_ = res;
-#line 131 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK");
-#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp19_ = video_row->is_interpretable;
-#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp19_) {
-#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp18_ = 1;
-#line 1081 "VideoTable.c"
- } else {
-#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp18_ = 0;
-#line 1085 "VideoTable.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp20_ = stmt;
-#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int (_tmp20_, 5, _tmp18_);
-#line 133 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp21_ = res;
-#line 133 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp21_ == SQLITE_OK, "res == Sqlite.OK");
-#line 134 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp22_ = stmt;
-#line 134 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp23_ = video_row->filesize;
-#line 134 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp22_, 6, _tmp23_);
-#line 135 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp24_ = res;
-#line 135 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp24_ == SQLITE_OK, "res == Sqlite.OK");
-#line 136 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp25_ = stmt;
-#line 136 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp26_ = video_row->timestamp;
-#line 136 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp25_, 7, (gint64) _tmp26_);
-#line 137 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp27_ = res;
-#line 137 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK");
-#line 138 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp28_ = stmt;
-#line 138 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp29_ = video_row->exposure_time;
-#line 138 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp28_, 8, (gint64) _tmp29_);
-#line 139 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp30_ = res;
-#line 139 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp30_ == SQLITE_OK, "res == Sqlite.OK");
-#line 140 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp31_ = stmt;
-#line 140 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp32_ = video_row->import_id;
-#line 140 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp33_ = _tmp32_.id;
-#line 140 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp31_, 9, _tmp33_);
-#line 141 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp34_ = res;
-#line 141 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp34_ == SQLITE_OK, "res == Sqlite.OK");
-#line 142 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp35_ = stmt;
-#line 142 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp35_, 10, EVENT_ID_INVALID);
-#line 143 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp36_ = res;
-#line 143 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp36_ == SQLITE_OK, "res == Sqlite.OK");
-#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp37_ = stmt;
-#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp38_ = video_row->md5;
-#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp39_ = g_strdup (_tmp38_);
-#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp40_ = g_free;
-#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_text (_tmp37_, 11, _tmp39_, -1, _tmp40_);
-#line 145 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp41_ = res;
-#line 145 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp41_ == SQLITE_OK, "res == Sqlite.OK");
-#line 146 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp42_ = stmt;
-#line 146 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp43_ = time_created;
-#line 146 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp42_, 12, (gint64) _tmp43_);
-#line 147 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp44_ = res;
-#line 147 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp44_ == SQLITE_OK, "res == Sqlite.OK");
-#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp45_ = stmt;
-#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp46_ = video_row->title;
-#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp47_ = g_strdup (_tmp46_);
-#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp48_ = g_free;
-#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_text (_tmp45_, 13, _tmp47_, -1, _tmp48_);
-#line 149 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp49_ = res;
-#line 149 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp49_ == SQLITE_OK, "res == Sqlite.OK");
-#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp50_ = stmt;
-#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp51_ = video_row->comment;
-#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp52_ = g_strdup (_tmp51_);
-#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp53_ = g_free;
-#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_text (_tmp50_, 14, _tmp52_, -1, _tmp53_);
-#line 151 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp54_ = res;
-#line 151 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp54_ == SQLITE_OK, "res == Sqlite.OK");
-#line 153 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp55_ = stmt;
-#line 153 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp55_);
-#line 154 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp56_ = res;
-#line 154 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp56_ != SQLITE_DONE) {
-#line 1205 "VideoTable.c"
- gint _tmp57_;
-#line 155 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp57_ = res;
-#line 155 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp57_ != SQLITE_CONSTRAINT) {
-#line 1211 "VideoTable.c"
- gint _tmp58_;
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp58_ = res;
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_throw_error ("VideoTable.add", _tmp58_, &_inner_error_);
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 1227 "VideoTable.c"
- } else {
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.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 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 1237 "VideoTable.c"
- }
- }
- }
- }
-#line 160 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp59_ = database_table_db;
-#line 160 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_id_init (&video_row->video_id, sqlite3_last_insert_rowid (_tmp59_));
-#line 161 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- event_id_init (&video_row->event_id, EVENT_ID_INVALID);
-#line 162 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp60_ = time_created;
-#line 162 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_row->time_created = (time_t) _tmp60_;
-#line 163 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_row->flags = (guint64) 0;
-#line 165 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp61_ = video_row->video_id;
-#line 165 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- *result = _tmp61_;
-#line 165 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 165 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 1262 "VideoTable.c"
-}
-
-
-gboolean
-video_table_drop_event (VideoTable* self,
- EventID* event_id)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gint _tmp5_;
- sqlite3_stmt* _tmp6_;
- EventID _tmp7_;
- gint64 _tmp8_;
- gint _tmp9_;
- sqlite3_stmt* _tmp10_;
- gint _tmp11_;
-#line 168 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), FALSE);
-#line 168 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE VideoTable SET event_id = ? WHERE event_id = ?", -1, &_tmp1_, NULL);
-#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 171 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 171 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 173 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = stmt;
-#line 173 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, EVENT_ID_INVALID);
-#line 174 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = res;
-#line 174 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK");
-#line 175 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = stmt;
-#line 175 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = *event_id;
-#line 175 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = _tmp7_.id;
-#line 175 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp6_, 2, _tmp8_);
-#line 176 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = res;
-#line 176 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK");
-#line 178 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = stmt;
-#line 178 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp10_);
-#line 179 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp11_ = res;
-#line 179 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp11_ != SQLITE_DONE) {
-#line 1331 "VideoTable.c"
- gint _tmp12_;
-#line 180 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp12_ = res;
-#line 180 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_fatal ("VideoTable.drop_event", _tmp12_);
-#line 182 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = FALSE;
-#line 182 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 182 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 1343 "VideoTable.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = TRUE;
-#line 185 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 185 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 1351 "VideoTable.c"
-}
-
-
-VideoRow*
-video_table_get_row (VideoTable* self,
- VideoID* video_id)
-{
- VideoRow* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- VideoID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- VideoRow* row = NULL;
- VideoRow* _tmp9_;
- VideoRow* _tmp10_;
- VideoID _tmp11_;
- VideoRow* _tmp12_;
- sqlite3_stmt* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
- VideoRow* _tmp16_;
- sqlite3_stmt* _tmp17_;
- VideoRow* _tmp18_;
- sqlite3_stmt* _tmp19_;
- VideoRow* _tmp20_;
- sqlite3_stmt* _tmp21_;
- VideoRow* _tmp22_;
- sqlite3_stmt* _tmp23_;
- VideoRow* _tmp24_;
- sqlite3_stmt* _tmp25_;
- VideoRow* _tmp26_;
- sqlite3_stmt* _tmp27_;
- VideoRow* _tmp28_;
- sqlite3_stmt* _tmp29_;
- VideoRow* _tmp30_;
- sqlite3_stmt* _tmp31_;
- VideoRow* _tmp32_;
- sqlite3_stmt* _tmp33_;
- VideoRow* _tmp34_;
- sqlite3_stmt* _tmp35_;
- const gchar* _tmp36_;
- gchar* _tmp37_;
- VideoRow* _tmp38_;
- sqlite3_stmt* _tmp39_;
- VideoRow* _tmp40_;
- sqlite3_stmt* _tmp41_;
- VideoRow* _tmp42_;
- sqlite3_stmt* _tmp43_;
- const gchar* _tmp44_;
- gchar* _tmp45_;
- VideoRow* _tmp46_;
- sqlite3_stmt* _tmp47_;
- const gchar* _tmp48_;
- gchar* _tmp49_;
- VideoRow* _tmp50_;
- sqlite3_stmt* _tmp51_;
- VideoRow* _tmp52_;
- sqlite3_stmt* _tmp53_;
- VideoRow* _tmp54_;
- sqlite3_stmt* _tmp55_;
- const gchar* _tmp56_;
- gchar* _tmp57_;
-#line 188 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL);
-#line 188 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (video_id != NULL, NULL);
-#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT filename, width, height, clip_duration, is_interpretable, files" \
-"ize, timestamp, " "exposure_time, import_id, event_id, md5, time_created, rating, title, " \
-"backlinks, " "time_reimported, flags, comment FROM VideoTable WHERE id=?", -1, &_tmp1_, NULL);
-#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 195 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 195 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 197 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = stmt;
-#line 197 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = *video_id;
-#line 197 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 197 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 198 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = res;
-#line 198 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 200 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = stmt;
-#line 200 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (sqlite3_step (_tmp8_) != SQLITE_ROW) {
-#line 201 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = NULL;
-#line 201 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 201 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 1461 "VideoTable.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = video_row_new ();
-#line 203 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- row = _tmp9_;
-#line 204 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = row;
-#line 204 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp11_ = *video_id;
-#line 204 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_->video_id = _tmp11_;
-#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp12_ = row;
-#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp13_ = stmt;
-#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp14_ = sqlite3_column_text (_tmp13_, 0);
-#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp15_ = g_strdup (_tmp14_);
-#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp12_->filepath);
-#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp12_->filepath = _tmp15_;
-#line 206 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp16_ = row;
-#line 206 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp17_ = stmt;
-#line 206 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp16_->width = sqlite3_column_int (_tmp17_, 1);
-#line 207 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp18_ = row;
-#line 207 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp19_ = stmt;
-#line 207 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp18_->height = sqlite3_column_int (_tmp19_, 2);
-#line 208 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp20_ = row;
-#line 208 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp21_ = stmt;
-#line 208 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp20_->clip_duration = sqlite3_column_double (_tmp21_, 3);
-#line 209 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp22_ = row;
-#line 209 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp23_ = stmt;
-#line 209 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp22_->is_interpretable = sqlite3_column_int (_tmp23_, 4) == 1;
-#line 210 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp24_ = row;
-#line 210 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp25_ = stmt;
-#line 210 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp24_->filesize = sqlite3_column_int64 (_tmp25_, 5);
-#line 211 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp26_ = row;
-#line 211 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp27_ = stmt;
-#line 211 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp26_->timestamp = (time_t) sqlite3_column_int64 (_tmp27_, 6);
-#line 212 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp28_ = row;
-#line 212 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp29_ = stmt;
-#line 212 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp28_->exposure_time = (time_t) sqlite3_column_int64 (_tmp29_, 7);
-#line 213 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp30_ = row;
-#line 213 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp31_ = stmt;
-#line 213 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp30_->import_id.id = sqlite3_column_int64 (_tmp31_, 8);
-#line 214 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp32_ = row;
-#line 214 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp33_ = stmt;
-#line 214 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp32_->event_id.id = sqlite3_column_int64 (_tmp33_, 9);
-#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp34_ = row;
-#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp35_ = stmt;
-#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp36_ = sqlite3_column_text (_tmp35_, 10);
-#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp37_ = g_strdup (_tmp36_);
-#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp34_->md5);
-#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp34_->md5 = _tmp37_;
-#line 216 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp38_ = row;
-#line 216 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp39_ = stmt;
-#line 216 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp38_->time_created = (time_t) sqlite3_column_int64 (_tmp39_, 11);
-#line 217 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp40_ = row;
-#line 217 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp41_ = stmt;
-#line 217 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp40_->rating = rating_unserialize (sqlite3_column_int (_tmp41_, 12));
-#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp42_ = row;
-#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp43_ = stmt;
-#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp44_ = sqlite3_column_text (_tmp43_, 13);
-#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp45_ = g_strdup (_tmp44_);
-#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp42_->title);
-#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp42_->title = _tmp45_;
-#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp46_ = row;
-#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp47_ = stmt;
-#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp48_ = sqlite3_column_text (_tmp47_, 14);
-#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp49_ = g_strdup (_tmp48_);
-#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp46_->backlinks);
-#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp46_->backlinks = _tmp49_;
-#line 220 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp50_ = row;
-#line 220 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp51_ = stmt;
-#line 220 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp50_->time_reimported = (time_t) sqlite3_column_int64 (_tmp51_, 15);
-#line 221 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp52_ = row;
-#line 221 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp53_ = stmt;
-#line 221 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp52_->flags = (guint64) sqlite3_column_int64 (_tmp53_, 16);
-#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp54_ = row;
-#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp55_ = stmt;
-#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp56_ = sqlite3_column_text (_tmp55_, 17);
-#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp57_ = g_strdup (_tmp56_);
-#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp54_->comment);
-#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp54_->comment = _tmp57_;
-#line 224 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = row;
-#line 224 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 224 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 1617 "VideoTable.c"
-}
-
-
-GeeArrayList*
-video_table_get_all (VideoTable* self)
-{
- GeeArrayList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- GeeArrayList* all = NULL;
- GeeArrayList* _tmp4_;
-#line 227 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL);
-#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, filename, width, height, clip_duration, is_interpretable, f" \
-"ilesize, " "timestamp, exposure_time, import_id, event_id, md5, time_created, rati" \
-"ng, title, " "backlinks, time_reimported, flags, comment FROM VideoTable", -1, &_tmp1_, NULL);
-#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 234 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 234 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 236 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = gee_array_list_new (TYPE_VIDEO_ROW, (GBoxedCopyFunc) video_row_ref, (GDestroyNotify) video_row_unref, NULL, NULL, NULL);
-#line 236 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- all = _tmp4_;
-#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- while (TRUE) {
-#line 1655 "VideoTable.c"
- sqlite3_stmt* _tmp5_;
- gint _tmp6_;
- VideoRow* row = NULL;
- VideoRow* _tmp7_;
- VideoRow* _tmp8_;
- sqlite3_stmt* _tmp9_;
- VideoRow* _tmp10_;
- sqlite3_stmt* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- VideoRow* _tmp14_;
- sqlite3_stmt* _tmp15_;
- VideoRow* _tmp16_;
- sqlite3_stmt* _tmp17_;
- VideoRow* _tmp18_;
- sqlite3_stmt* _tmp19_;
- VideoRow* _tmp20_;
- sqlite3_stmt* _tmp21_;
- VideoRow* _tmp22_;
- sqlite3_stmt* _tmp23_;
- VideoRow* _tmp24_;
- sqlite3_stmt* _tmp25_;
- VideoRow* _tmp26_;
- sqlite3_stmt* _tmp27_;
- VideoRow* _tmp28_;
- sqlite3_stmt* _tmp29_;
- VideoRow* _tmp30_;
- sqlite3_stmt* _tmp31_;
- VideoRow* _tmp32_;
- sqlite3_stmt* _tmp33_;
- const gchar* _tmp34_;
- gchar* _tmp35_;
- VideoRow* _tmp36_;
- sqlite3_stmt* _tmp37_;
- VideoRow* _tmp38_;
- sqlite3_stmt* _tmp39_;
- VideoRow* _tmp40_;
- sqlite3_stmt* _tmp41_;
- const gchar* _tmp42_;
- gchar* _tmp43_;
- VideoRow* _tmp44_;
- sqlite3_stmt* _tmp45_;
- const gchar* _tmp46_;
- gchar* _tmp47_;
- VideoRow* _tmp48_;
- sqlite3_stmt* _tmp49_;
- VideoRow* _tmp50_;
- sqlite3_stmt* _tmp51_;
- VideoRow* _tmp52_;
- sqlite3_stmt* _tmp53_;
- const gchar* _tmp54_;
- gchar* _tmp55_;
- GeeArrayList* _tmp56_;
- VideoRow* _tmp57_;
-#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = stmt;
-#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp5_);
-#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = res;
-#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (!(_tmp6_ == SQLITE_ROW)) {
-#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- break;
-#line 1720 "VideoTable.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = video_row_new ();
-#line 239 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- row = _tmp7_;
-#line 240 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = row;
-#line 240 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = stmt;
-#line 240 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_->video_id.id = sqlite3_column_int64 (_tmp9_, 0);
-#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = row;
-#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp11_ = stmt;
-#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp12_ = sqlite3_column_text (_tmp11_, 1);
-#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp10_->filepath);
-#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_->filepath = _tmp13_;
-#line 242 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp14_ = row;
-#line 242 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp15_ = stmt;
-#line 242 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp14_->width = sqlite3_column_int (_tmp15_, 2);
-#line 243 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp16_ = row;
-#line 243 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp17_ = stmt;
-#line 243 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp16_->height = sqlite3_column_int (_tmp17_, 3);
-#line 244 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp18_ = row;
-#line 244 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp19_ = stmt;
-#line 244 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp18_->clip_duration = sqlite3_column_double (_tmp19_, 4);
-#line 245 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp20_ = row;
-#line 245 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp21_ = stmt;
-#line 245 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp20_->is_interpretable = sqlite3_column_int (_tmp21_, 5) == 1;
-#line 246 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp22_ = row;
-#line 246 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp23_ = stmt;
-#line 246 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp22_->filesize = sqlite3_column_int64 (_tmp23_, 6);
-#line 247 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp24_ = row;
-#line 247 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp25_ = stmt;
-#line 247 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp24_->timestamp = (time_t) sqlite3_column_int64 (_tmp25_, 7);
-#line 248 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp26_ = row;
-#line 248 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp27_ = stmt;
-#line 248 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp26_->exposure_time = (time_t) sqlite3_column_int64 (_tmp27_, 8);
-#line 249 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp28_ = row;
-#line 249 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp29_ = stmt;
-#line 249 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp28_->import_id.id = sqlite3_column_int64 (_tmp29_, 9);
-#line 250 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp30_ = row;
-#line 250 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp31_ = stmt;
-#line 250 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp30_->event_id.id = sqlite3_column_int64 (_tmp31_, 10);
-#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp32_ = row;
-#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp33_ = stmt;
-#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp34_ = sqlite3_column_text (_tmp33_, 11);
-#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp35_ = g_strdup (_tmp34_);
-#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp32_->md5);
-#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp32_->md5 = _tmp35_;
-#line 252 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp36_ = row;
-#line 252 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp37_ = stmt;
-#line 252 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp36_->time_created = (time_t) sqlite3_column_int64 (_tmp37_, 12);
-#line 253 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp38_ = row;
-#line 253 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp39_ = stmt;
-#line 253 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp38_->rating = rating_unserialize (sqlite3_column_int (_tmp39_, 13));
-#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp40_ = row;
-#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp41_ = stmt;
-#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp42_ = sqlite3_column_text (_tmp41_, 14);
-#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp43_ = g_strdup (_tmp42_);
-#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp40_->title);
-#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp40_->title = _tmp43_;
-#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp44_ = row;
-#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp45_ = stmt;
-#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp46_ = sqlite3_column_text (_tmp45_, 15);
-#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp47_ = g_strdup (_tmp46_);
-#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp44_->backlinks);
-#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp44_->backlinks = _tmp47_;
-#line 256 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp48_ = row;
-#line 256 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp49_ = stmt;
-#line 256 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp48_->time_reimported = (time_t) sqlite3_column_int64 (_tmp49_, 16);
-#line 257 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp50_ = row;
-#line 257 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp51_ = stmt;
-#line 257 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp50_->flags = (guint64) sqlite3_column_int64 (_tmp51_, 17);
-#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp52_ = row;
-#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp53_ = stmt;
-#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp54_ = sqlite3_column_text (_tmp53_, 18);
-#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp55_ = g_strdup (_tmp54_);
-#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp52_->comment);
-#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp52_->comment = _tmp55_;
-#line 260 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp56_ = all;
-#line 260 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp57_ = row;
-#line 260 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp57_);
-#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _video_row_unref0 (row);
-#line 1878 "VideoTable.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = all;
-#line 263 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 263 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 1886 "VideoTable.c"
-}
-
-
-void
-video_table_set_filepath (VideoTable* self,
- VideoID* video_id,
- const gchar* filepath,
- GError** error)
-{
- VideoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 266 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 266 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 266 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (filepath != NULL);
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = *video_id;
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "filename", filepath, &_inner_error_);
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 1919 "VideoTable.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.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 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 1927 "VideoTable.c"
- }
- }
-}
-
-
-void
-video_table_set_title (VideoTable* self,
- VideoID* video_id,
- const gchar* new_title,
- GError** error)
-{
- const gchar* _tmp0_ = NULL;
- VideoID _tmp1_;
- gint64 _tmp2_;
- GError * _inner_error_ = NULL;
-#line 270 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 270 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (new_title != NULL) {
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = new_title;
-#line 1951 "VideoTable.c"
- } else {
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = "";
-#line 1955 "VideoTable.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = *video_id;
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "title", _tmp0_, &_inner_error_);
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 1971 "VideoTable.c"
- } else {
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.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 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 1979 "VideoTable.c"
- }
- }
-}
-
-
-void
-video_table_set_comment (VideoTable* self,
- VideoID* video_id,
- const gchar* new_comment,
- GError** error)
-{
- const gchar* _tmp0_ = NULL;
- VideoID _tmp1_;
- gint64 _tmp2_;
- GError * _inner_error_ = NULL;
-#line 274 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 274 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (new_comment != NULL) {
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = new_comment;
-#line 2003 "VideoTable.c"
- } else {
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = "";
-#line 2007 "VideoTable.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = *video_id;
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "comment", _tmp0_, &_inner_error_);
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2023 "VideoTable.c"
- } else {
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.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 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2031 "VideoTable.c"
- }
- }
-}
-
-
-void
-video_table_set_exposure_time (VideoTable* self,
- VideoID* video_id,
- time_t time,
- GError** error)
-{
- VideoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 278 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 278 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = *video_id;
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "exposure_time", (gint64) time, &_inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2064 "VideoTable.c"
- } else {
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.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 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2072 "VideoTable.c"
- }
- }
-}
-
-
-void
-video_table_set_rating (VideoTable* self,
- VideoID* video_id,
- Rating rating,
- GError** error)
-{
- VideoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 282 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 282 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = *video_id;
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "rating", (gint64) rating_serialize (rating), &_inner_error_);
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2105 "VideoTable.c"
- } else {
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.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 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2113 "VideoTable.c"
- }
- }
-}
-
-
-void
-video_table_set_flags (VideoTable* self,
- VideoID* video_id,
- guint64 flags,
- GError** error)
-{
- VideoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 286 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 286 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = *video_id;
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "flags", (gint64) flags, &_inner_error_);
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2146 "VideoTable.c"
- } else {
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.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 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2154 "VideoTable.c"
- }
- }
-}
-
-
-void
-video_table_update_backlinks (VideoTable* self,
- VideoID* video_id,
- const gchar* backlinks,
- GError** error)
-{
- const gchar* _tmp0_ = NULL;
- VideoID _tmp1_;
- gint64 _tmp2_;
- GError * _inner_error_ = NULL;
-#line 290 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 290 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (backlinks != NULL) {
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = backlinks;
-#line 2178 "VideoTable.c"
- } else {
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = "";
-#line 2182 "VideoTable.c"
- }
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = *video_id;
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "backlinks", _tmp0_, &_inner_error_);
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2198 "VideoTable.c"
- } else {
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.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 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2206 "VideoTable.c"
- }
- }
-}
-
-
-void
-video_table_update_is_interpretable (VideoTable* self,
- VideoID* video_id,
- gboolean is_interpretable,
- GError** error)
-{
- gint _tmp0_ = 0;
- VideoID _tmp1_;
- gint64 _tmp2_;
- GError * _inner_error_ = NULL;
-#line 294 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 294 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (is_interpretable) {
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = 1;
-#line 2230 "VideoTable.c"
- } else {
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = 0;
-#line 2234 "VideoTable.c"
- }
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = *video_id;
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = _tmp1_.id;
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_int_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "is_interpretable", _tmp0_, &_inner_error_);
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2250 "VideoTable.c"
- } else {
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.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 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2258 "VideoTable.c"
- }
- }
-}
-
-
-gboolean
-video_table_set_event (VideoTable* self,
- VideoID* video_id,
- EventID* event_id)
-{
- gboolean result = FALSE;
- VideoID _tmp0_;
- gint64 _tmp1_;
- EventID _tmp2_;
- gint64 _tmp3_;
-#line 298 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), FALSE);
-#line 298 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (video_id != NULL, FALSE);
-#line 298 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (event_id != NULL, FALSE);
-#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = *video_id;
-#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = *event_id;
-#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = _tmp2_.id;
-#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = database_table_update_int64_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "event_id", _tmp3_);
-#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 2292 "VideoTable.c"
-}
-
-
-void
-video_table_remove_by_file (VideoTable* self,
- GFile* file,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gchar* _tmp5_;
- GDestroyNotify _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- GError * _inner_error_ = NULL;
-#line 302 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 302 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "DELETE FROM VideoTable WHERE filename=?", -1, &_tmp1_, NULL);
-#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 305 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 305 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 307 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = stmt;
-#line 307 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = g_file_get_path (file);
-#line 307 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = g_free;
-#line 307 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_);
-#line 308 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = res;
-#line 308 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 310 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = stmt;
-#line 310 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 311 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = res;
-#line 311 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp9_ != SQLITE_DONE) {
-#line 2352 "VideoTable.c"
- gint _tmp10_;
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = res;
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_throw_error ("VideoTable.remove_by_file", _tmp10_, &_inner_error_);
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2368 "VideoTable.c"
- } else {
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.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 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2378 "VideoTable.c"
- }
- }
- }
-#line 302 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 2384 "VideoTable.c"
-}
-
-
-void
-video_table_remove (VideoTable* self,
- VideoID* videoID,
- GError** error)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- VideoID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- gint _tmp9_;
- GError * _inner_error_ = NULL;
-#line 315 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 315 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (videoID != NULL);
-#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "DELETE FROM VideoTable WHERE id=?", -1, &_tmp1_, NULL);
-#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 318 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 318 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 320 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = stmt;
-#line 320 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = *videoID;
-#line 320 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 320 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 321 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = res;
-#line 321 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 323 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = stmt;
-#line 323 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 324 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = res;
-#line 324 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp9_ != SQLITE_DONE) {
-#line 2444 "VideoTable.c"
- gint _tmp10_;
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = res;
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_throw_error ("VideoTable.remove", _tmp10_, &_inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2460 "VideoTable.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.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 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2470 "VideoTable.c"
- }
- }
- }
-#line 315 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 2476 "VideoTable.c"
-}
-
-
-gboolean
-video_table_is_video_stored (VideoTable* self,
- GFile* file)
-{
- gboolean result = FALSE;
- VideoID _tmp0_ = {0};
-#line 328 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), FALSE);
-#line 328 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 329 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_table_get_id (self, file, &_tmp0_);
-#line 329 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = video_id_is_valid (&_tmp0_);
-#line 329 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 2496 "VideoTable.c"
-}
-
-
-void
-video_table_get_id (VideoTable* self,
- GFile* file,
- VideoID* result)
-{
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- gchar* _tmp5_;
- GDestroyNotify _tmp6_;
- gint _tmp7_;
- sqlite3_stmt* _tmp8_;
- VideoID _tmp9_ = {0};
- gint _tmp10_;
-#line 332 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 332 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT ID FROM VideoTable WHERE filename=?", -1, &_tmp1_, NULL);
-#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 335 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 335 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 337 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = stmt;
-#line 337 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = g_file_get_path (file);
-#line 337 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = g_free;
-#line 337 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_);
-#line 338 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = res;
-#line 338 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 340 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = stmt;
-#line 340 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp8_);
-#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = res;
-#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp10_ == SQLITE_ROW) {
-#line 2556 "VideoTable.c"
- sqlite3_stmt* _tmp11_;
-#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp11_ = stmt;
-#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_id_init (&_tmp9_, sqlite3_column_int64 (_tmp11_, 0));
-#line 2562 "VideoTable.c"
- } else {
-#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_id_init (&_tmp9_, VIDEO_ID_INVALID);
-#line 2566 "VideoTable.c"
- }
-#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- *result = _tmp9_;
-#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 2574 "VideoTable.c"
-}
-
-
-GeeArrayList*
-video_table_get_videos (VideoTable* self,
- GError** error)
-{
- GeeArrayList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- GeeArrayList* video_ids = NULL;
- GeeArrayList* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 345 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL);
-#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM VideoTable", -1, &_tmp1_, NULL);
-#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 348 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 348 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 350 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = gee_array_list_new (TYPE_VIDEO_ID, (GBoxedCopyFunc) video_id_dup, (GDestroyNotify) video_id_free, NULL, NULL, NULL);
-#line 350 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_ids = _tmp4_;
-#line 2612 "VideoTable.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 351 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = TRUE;
-#line 351 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- while (TRUE) {
-#line 2619 "VideoTable.c"
- sqlite3_stmt* _tmp6_;
- gint _tmp7_;
- GeeArrayList* _tmp10_;
- sqlite3_stmt* _tmp11_;
- VideoID _tmp12_ = {0};
-#line 351 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (!_tmp5_) {
-#line 2627 "VideoTable.c"
- }
-#line 351 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = FALSE;
-#line 352 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = stmt;
-#line 352 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp6_);
-#line 353 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = res;
-#line 353 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp7_ == SQLITE_DONE) {
-#line 354 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- break;
-#line 2641 "VideoTable.c"
- } else {
- gint _tmp8_;
-#line 355 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = res;
-#line 355 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp8_ != SQLITE_ROW) {
-#line 2648 "VideoTable.c"
- gint _tmp9_;
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = res;
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_throw_error ("VideoTable.get_videos", _tmp9_, &_inner_error_);
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_object_unref0 (video_ids);
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return NULL;
-#line 2666 "VideoTable.c"
- } else {
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_object_unref0 (video_ids);
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.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 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return NULL;
-#line 2678 "VideoTable.c"
- }
- }
- }
- }
-#line 359 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = video_ids;
-#line 359 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp11_ = stmt;
-#line 359 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_id_init (&_tmp12_, sqlite3_column_int64 (_tmp11_, 0));
-#line 359 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp12_);
-#line 2691 "VideoTable.c"
- }
- }
-#line 362 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = video_ids;
-#line 362 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 362 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 2700 "VideoTable.c"
-}
-
-
-static sqlite3_stmt*
-video_table_get_duplicate_stmt (VideoTable* self,
- GFile* file,
- const gchar* md5)
-{
- sqlite3_stmt* result = NULL;
- gboolean _tmp0_ = FALSE;
- gchar* sql = NULL;
- gchar* _tmp1_;
- gboolean first = FALSE;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp9_;
- const gchar* _tmp10_;
- sqlite3_stmt* _tmp11_ = NULL;
- gint _tmp12_;
- gint _tmp13_;
- gint col = 0;
-#line 365 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL);
-#line 365 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 366 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (file != NULL) {
-#line 366 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = TRUE;
-#line 2730 "VideoTable.c"
- } else {
-#line 366 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = md5 != NULL;
-#line 2734 "VideoTable.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp0_, "file != null || md5 != null");
-#line 368 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = g_strdup ("SELECT id FROM VideoTable WHERE");
-#line 368 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- sql = _tmp1_;
-#line 369 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- first = TRUE;
-#line 371 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (file != NULL) {
-#line 2746 "VideoTable.c"
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 372 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sql;
-#line 372 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = g_strconcat (_tmp2_, " filename=?", NULL);
-#line 372 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (sql);
-#line 372 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- sql = _tmp3_;
-#line 373 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- first = FALSE;
-#line 2759 "VideoTable.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (md5 != NULL) {
-#line 2763 "VideoTable.c"
- gboolean _tmp4_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
-#line 377 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = first;
-#line 377 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (!_tmp4_) {
-#line 2771 "VideoTable.c"
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 378 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = sql;
-#line 378 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = g_strconcat (_tmp5_, " OR ", NULL);
-#line 378 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (sql);
-#line 378 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- sql = _tmp6_;
-#line 2782 "VideoTable.c"
- }
-#line 380 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = sql;
-#line 380 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = g_strconcat (_tmp7_, " md5=?", NULL);
-#line 380 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (sql);
-#line 380 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- sql = _tmp8_;
-#line 2792 "VideoTable.c"
- }
-#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = database_table_db;
-#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = sql;
-#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp12_ = sqlite3_prepare_v2 (_tmp9_, _tmp10_, -1, &_tmp11_, NULL);
-#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp11_;
-#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp12_;
-#line 385 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp13_ = res;
-#line 385 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK");
-#line 387 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- col = 1;
-#line 389 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (file != NULL) {
-#line 2814 "VideoTable.c"
- sqlite3_stmt* _tmp14_;
- gint _tmp15_;
- gchar* _tmp16_;
- GDestroyNotify _tmp17_;
- gint _tmp18_;
-#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp14_ = stmt;
-#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp15_ = col;
-#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- col = _tmp15_ + 1;
-#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp16_ = g_file_get_path (file);
-#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp17_ = g_free;
-#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_text (_tmp14_, _tmp15_, _tmp16_, -1, _tmp17_);
-#line 391 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp18_ = res;
-#line 391 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp18_ == SQLITE_OK, "res == Sqlite.OK");
-#line 2836 "VideoTable.c"
- }
-#line 394 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (md5 != NULL) {
-#line 2840 "VideoTable.c"
- sqlite3_stmt* _tmp19_;
- gint _tmp20_;
- gchar* _tmp21_;
- GDestroyNotify _tmp22_;
- gint _tmp23_;
-#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp19_ = stmt;
-#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp20_ = col;
-#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- col = _tmp20_ + 1;
-#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp21_ = g_strdup (md5);
-#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp22_ = g_free;
-#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_text (_tmp19_, _tmp20_, _tmp21_, -1, _tmp22_);
-#line 396 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp23_ = res;
-#line 396 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK");
-#line 2862 "VideoTable.c"
- }
-#line 399 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = stmt;
-#line 399 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (sql);
-#line 399 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 2870 "VideoTable.c"
-}
-
-
-gboolean
-video_table_has_duplicate (VideoTable* self,
- GFile* file,
- const gchar* md5)
-{
- gboolean result = FALSE;
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_;
- gint res = 0;
- sqlite3_stmt* _tmp1_;
- gint _tmp2_;
-#line 402 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), FALSE);
-#line 402 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE);
-#line 403 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = video_table_get_duplicate_stmt (self, file, md5);
-#line 403 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp0_;
-#line 404 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = stmt;
-#line 404 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp1_);
-#line 406 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = res;
-#line 406 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp2_ == SQLITE_DONE) {
-#line 408 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = FALSE;
-#line 408 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 408 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 2907 "VideoTable.c"
- } else {
- gint _tmp3_;
-#line 409 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 409 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp3_ == SQLITE_ROW) {
-#line 411 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = TRUE;
-#line 411 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 411 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 2920 "VideoTable.c"
- } else {
- gint _tmp4_;
-#line 413 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = res;
-#line 413 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_fatal ("VideoTable.has_duplicate", _tmp4_);
-#line 2927 "VideoTable.c"
- }
- }
-#line 416 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = FALSE;
-#line 416 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 416 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 2936 "VideoTable.c"
-}
-
-
-static void
-_vala_array_add3 (VideoID* * array,
- int* length,
- int* size,
- const VideoID* value)
-{
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if ((*length) == (*size)) {
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- *array = g_renew (VideoID, *array, *size);
-#line 2952 "VideoTable.c"
- }
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- (*array)[(*length)++] = *value;
-#line 2956 "VideoTable.c"
-}
-
-
-VideoID*
-video_table_get_duplicate_ids (VideoTable* self,
- GFile* file,
- const gchar* md5,
- int* result_length1)
-{
- VideoID* result = NULL;
- sqlite3_stmt* stmt = NULL;
- sqlite3_stmt* _tmp0_;
- VideoID* ids = NULL;
- VideoID* _tmp1_;
- gint ids_length1;
- gint _ids_size_;
- gint res = 0;
- sqlite3_stmt* _tmp2_;
- VideoID* _tmp8_;
- gint _tmp8__length1;
-#line 419 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL);
-#line 419 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 420 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = video_table_get_duplicate_stmt (self, file, md5);
-#line 420 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp0_;
-#line 422 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = g_new0 (VideoID, 0);
-#line 422 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- ids = _tmp1_;
-#line 422 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- ids_length1 = 0;
-#line 422 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _ids_size_ = ids_length1;
-#line 424 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = stmt;
-#line 424 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp2_);
-#line 425 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- while (TRUE) {
-#line 2999 "VideoTable.c"
- gint _tmp3_;
- VideoID* _tmp4_;
- gint _tmp4__length1;
- sqlite3_stmt* _tmp5_;
- VideoID _tmp6_ = {0};
- sqlite3_stmt* _tmp7_;
-#line 425 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 425 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (!(_tmp3_ == SQLITE_ROW)) {
-#line 425 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- break;
-#line 3012 "VideoTable.c"
- }
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = ids;
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4__length1 = ids_length1;
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = stmt;
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_id_init (&_tmp6_, sqlite3_column_int64 (_tmp5_, 0));
-#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_array_add3 (&ids, &ids_length1, &_ids_size_, &_tmp6_);
-#line 427 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = stmt;
-#line 427 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp7_);
-#line 3028 "VideoTable.c"
- }
-#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = ids;
-#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8__length1 = ids_length1;
-#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (result_length1) {
-#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- *result_length1 = _tmp8__length1;
-#line 3038 "VideoTable.c"
- }
-#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = _tmp8_;
-#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 3046 "VideoTable.c"
-}
-
-
-GeeArrayList*
-video_table_get_event_source_ids (VideoTable* self,
- EventID* event_id)
-{
- GeeArrayList* result = NULL;
- sqlite3_stmt* stmt = NULL;
- gint res = 0;
- sqlite3* _tmp0_;
- sqlite3_stmt* _tmp1_ = NULL;
- gint _tmp2_;
- gint _tmp3_;
- sqlite3_stmt* _tmp4_;
- EventID _tmp5_;
- gint64 _tmp6_;
- gint _tmp7_;
- GeeArrayList* _result_ = NULL;
- GeeArrayList* _tmp8_;
-#line 433 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL);
-#line 433 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_val_if_fail (event_id != NULL, NULL);
-#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = database_table_db;
-#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM VideoTable WHERE event_id = ?", -1, &_tmp1_, NULL);
-#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- stmt = _tmp1_;
-#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = _tmp2_;
-#line 436 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp3_ = res;
-#line 436 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK");
-#line 438 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp4_ = stmt;
-#line 438 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp5_ = *event_id;
-#line 438 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp6_ = _tmp5_.id;
-#line 438 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_);
-#line 439 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp7_ = res;
-#line 439 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK");
-#line 441 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp8_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 441 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _result_ = _tmp8_;
-#line 3101 "VideoTable.c"
- {
- gboolean _tmp9_ = FALSE;
-#line 442 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = TRUE;
-#line 442 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- while (TRUE) {
-#line 3108 "VideoTable.c"
- sqlite3_stmt* _tmp10_;
- gint _tmp11_;
- GeeArrayList* _tmp14_;
- sqlite3_stmt* _tmp15_;
- VideoID _tmp16_ = {0};
- gchar* _tmp17_;
- gchar* _tmp18_;
-#line 442 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (!_tmp9_) {
-#line 3118 "VideoTable.c"
- }
-#line 442 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp9_ = FALSE;
-#line 443 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp10_ = stmt;
-#line 443 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- res = sqlite3_step (_tmp10_);
-#line 444 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp11_ = res;
-#line 444 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp11_ == SQLITE_DONE) {
-#line 445 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- break;
-#line 3132 "VideoTable.c"
- } else {
- gint _tmp12_;
-#line 446 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp12_ = res;
-#line 446 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_tmp12_ != SQLITE_ROW) {
-#line 3139 "VideoTable.c"
- gint _tmp13_;
-#line 447 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp13_ = res;
-#line 447 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_fatal ("get_event_source_ids", _tmp13_);
-#line 449 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- break;
-#line 3147 "VideoTable.c"
- }
- }
-#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp14_ = _result_;
-#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp15_ = stmt;
-#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_id_init (&_tmp16_, sqlite3_column_int64 (_tmp15_, 0));
-#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp17_ = video_id_upgrade_video_id_to_source_id (&_tmp16_);
-#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp18_ = _tmp17_;
-#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_);
-#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _g_free0 (_tmp18_);
-#line 3164 "VideoTable.c"
- }
- }
-#line 455 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- result = _result_;
-#line 455 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _sqlite3_finalize0 (stmt);
-#line 455 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return result;
-#line 3173 "VideoTable.c"
-}
-
-
-void
-video_table_set_timestamp (VideoTable* self,
- VideoID* video_id,
- time_t timestamp,
- GError** error)
-{
- VideoID _tmp0_;
- gint64 _tmp1_;
- GError * _inner_error_ = NULL;
-#line 458 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (IS_VIDEO_TABLE (self));
-#line 458 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_return_if_fail (video_id != NULL);
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp0_ = *video_id;
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- _tmp1_ = _tmp0_.id;
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "timestamp", (gint64) timestamp, &_inner_error_);
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- g_propagate_error (error, _inner_error_);
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 3204 "VideoTable.c"
- } else {
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.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/db/VideoTable.vala"
- g_clear_error (&_inner_error_);
-#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- return;
-#line 3212 "VideoTable.c"
- }
- }
-}
-
-
-static void
-video_table_class_init (VideoTableClass * klass)
-{
-#line 59 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- video_table_parent_class = g_type_class_peek_parent (klass);
-#line 59 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- ((DatabaseTableClass *) klass)->finalize = video_table_finalize;
-#line 3225 "VideoTable.c"
-}
-
-
-static void
-video_table_instance_init (VideoTable * self)
-{
-}
-
-
-static void
-video_table_finalize (DatabaseTable * obj)
-{
- VideoTable * self;
-#line 59 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_TABLE, VideoTable);
-#line 59 "/home/jens/Source/shotwell/src/db/VideoTable.vala"
- DATABASE_TABLE_CLASS (video_table_parent_class)->finalize (obj);
-#line 3243 "VideoTable.c"
-}
-
-
-GType
-video_table_get_type (void)
-{
- static volatile gsize video_table_type_id__volatile = 0;
- if (g_once_init_enter (&video_table_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (VideoTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoTable), 0, (GInstanceInitFunc) video_table_instance_init, NULL };
- GType video_table_type_id;
- video_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "VideoTable", &g_define_type_info, 0);
- g_once_init_leave (&video_table_type_id__volatile, video_table_type_id);
- }
- return video_table_type_id__volatile;
-}
-
-
-
diff --git a/src/dialogs/AdjustDateTimeDialog.c b/src/dialogs/AdjustDateTimeDialog.c
deleted file mode 100644
index fe412df..0000000
--- a/src/dialogs/AdjustDateTimeDialog.c
+++ /dev/null
@@ -1,2300 +0,0 @@
-/* AdjustDateTimeDialog.c generated by valac 0.40.4, the Vala compiler
- * generated from AdjustDateTimeDialog.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <time.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_ADJUST_DATE_TIME_DIALOG (adjust_date_time_dialog_get_type ())
-#define ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog))
-#define ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass))
-#define IS_ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_DIALOG))
-#define IS_ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_DIALOG))
-#define ADJUST_DATE_TIME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass))
-
-typedef struct _AdjustDateTimeDialog AdjustDateTimeDialog;
-typedef struct _AdjustDateTimeDialogClass AdjustDateTimeDialogClass;
-typedef struct _AdjustDateTimeDialogPrivate AdjustDateTimeDialogPrivate;
-
-#define ADJUST_DATE_TIME_DIALOG_TYPE_TIME_SYSTEM (adjust_date_time_dialog_time_system_get_type ())
-enum {
- ADJUST_DATE_TIME_DIALOG_0_PROPERTY,
- ADJUST_DATE_TIME_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* adjust_date_time_dialog_properties[ADJUST_DATE_TIME_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _AdjustDateTimeDialog {
- GtkDialog parent_instance;
- AdjustDateTimeDialogPrivate * priv;
-};
-
-struct _AdjustDateTimeDialogClass {
- GtkDialogClass parent_class;
-};
-
-typedef enum {
- ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_AM,
- ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM,
- ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR
-} AdjustDateTimeDialogTimeSystem;
-
-struct _AdjustDateTimeDialogPrivate {
- gboolean no_original_time;
- time_t original_time;
- GtkLabel* original_time_label;
- GtkCalendar* calendar;
- GtkSpinButton* hour;
- GtkSpinButton* minute;
- GtkSpinButton* second;
- GtkComboBoxText* system;
- GtkRadioButton* relativity_radio_button;
- GtkRadioButton* batch_radio_button;
- GtkCheckButton* modify_originals_check_button;
- GtkLabel* notification;
- AdjustDateTimeDialogTimeSystem previous_time_system;
-};
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-
-static gpointer adjust_date_time_dialog_parent_class = NULL;
-
-GType adjust_date_time_dialog_get_type (void) G_GNUC_CONST;
-static GType adjust_date_time_dialog_time_system_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define ADJUST_DATE_TIME_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogPrivate))
-#define ADJUST_DATE_TIME_DIALOG_SECONDS_IN_DAY ((gint64) ((60 * 60) * 24))
-#define ADJUST_DATE_TIME_DIALOG_SECONDS_IN_HOUR ((gint64) (60 * 60))
-#define ADJUST_DATE_TIME_DIALOG_SECONDS_IN_MINUTE ((gint64) 60)
-#define ADJUST_DATE_TIME_DIALOG_YEAR_OFFSET 1900
-#define ADJUST_DATE_TIME_DIALOG_CALENDAR_THUMBNAIL_SCALE 1
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType dateable_get_type (void) G_GNUC_CONST;
-AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source,
- gint photo_count,
- gboolean display_options,
- gboolean contains_video,
- gboolean only_video);
-AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type,
- Dateable* source,
- gint photo_count,
- gboolean display_options,
- gboolean contains_video,
- gboolean only_video);
-gint resources_use_header_bar (void);
-GType page_window_get_type (void) G_GNUC_CONST;
-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")
-#define RESOURCES_ADJUST_DATE_TIME_LABEL _ ("Adjust Date and Time")
-static void adjust_date_time_dialog_on_time_changed (AdjustDateTimeDialog* self);
-static void _adjust_date_time_dialog_on_time_changed_gtk_calendar_day_selected (GtkCalendar* _sender,
- gpointer self);
-static void _adjust_date_time_dialog_on_time_changed_gtk_calendar_month_changed (GtkCalendar* _sender,
- gpointer self);
-static void _adjust_date_time_dialog_on_time_changed_gtk_calendar_next_year (GtkCalendar* _sender,
- gpointer self);
-static void _adjust_date_time_dialog_on_time_changed_gtk_calendar_prev_year (GtkCalendar* _sender,
- gpointer self);
-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_use_24_hour_time (ConfigurationFacade* self);
-static gboolean adjust_date_time_dialog_on_spin_button_output (AdjustDateTimeDialog* self,
- GtkSpinButton* button);
-static gboolean _adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output (GtkSpinButton* _sender,
- gpointer self);
-static void adjust_date_time_dialog_on_time_system_changed (AdjustDateTimeDialog* self);
-static void _adjust_date_time_dialog_on_time_system_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-gboolean configuration_facade_get_keep_relativity (ConfigurationFacade* self);
-static void _adjust_date_time_dialog_on_time_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
-gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self);
-GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-gchar* data_object_to_string (DataObject* self);
-time_t dateable_get_exposure_time (Dateable* self);
-static void adjust_date_time_dialog_set_time (AdjustDateTimeDialog* self,
- struct tm* time);
-static void adjust_date_time_dialog_set_original_time_label (AdjustDateTimeDialog* self,
- gboolean use_24_hr_format);
-static time_t adjust_date_time_dialog_get_time (AdjustDateTimeDialog* self);
-gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self,
- gint64* time_shift,
- gboolean* keep_relativity,
- gboolean* modify_originals);
-void configuration_facade_set_keep_relativity (ConfigurationFacade* self,
- gboolean keep_relativity);
-void configuration_facade_set_modify_originals (ConfigurationFacade* self,
- gboolean modify_originals);
-void configuration_facade_set_use_24_hour_time (ConfigurationFacade* self,
- gboolean use_24_hour_time);
-static void adjust_date_time_dialog_finalize (GObject * obj);
-
-
-static GType
-adjust_date_time_dialog_time_system_get_type (void)
-{
- static volatile gsize adjust_date_time_dialog_time_system_type_id__volatile = 0;
- if (g_once_init_enter (&adjust_date_time_dialog_time_system_type_id__volatile)) {
- static const GEnumValue values[] = {{ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_AM, "ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_AM", "am"}, {ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM, "ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM", "pm"}, {ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR, "ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR", "24hr"}, {0, NULL, NULL}};
- GType adjust_date_time_dialog_time_system_type_id;
- adjust_date_time_dialog_time_system_type_id = g_enum_register_static ("AdjustDateTimeDialogTimeSystem", values);
- g_once_init_leave (&adjust_date_time_dialog_time_system_type_id__volatile, adjust_date_time_dialog_time_system_type_id);
- }
- return adjust_date_time_dialog_time_system_type_id__volatile;
-}
-
-
-static void
-_adjust_date_time_dialog_on_time_changed_gtk_calendar_day_selected (GtkCalendar* _sender,
- gpointer self)
-{
-#line 53 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self);
-#line 276 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-_adjust_date_time_dialog_on_time_changed_gtk_calendar_month_changed (GtkCalendar* _sender,
- gpointer self)
-{
-#line 54 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self);
-#line 286 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-_adjust_date_time_dialog_on_time_changed_gtk_calendar_next_year (GtkCalendar* _sender,
- gpointer self)
-{
-#line 55 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self);
-#line 296 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-_adjust_date_time_dialog_on_time_changed_gtk_calendar_prev_year (GtkCalendar* _sender,
- gpointer self)
-{
-#line 56 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self);
-#line 306 "AdjustDateTimeDialog.c"
-}
-
-
-static gboolean
-_adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output (GtkSpinButton* _sender,
- gpointer self)
-{
- gboolean result;
- result = adjust_date_time_dialog_on_spin_button_output ((AdjustDateTimeDialog*) self, _sender);
-#line 63 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return result;
-#line 318 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-_adjust_date_time_dialog_on_time_system_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 81 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_on_time_system_changed ((AdjustDateTimeDialog*) self);
-#line 328 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-_adjust_date_time_dialog_on_time_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
-{
-#line 103 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self);
-#line 338 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-g_time_gm (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2861 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- gmtime_r (&time, &_tmp0_);
-#line 2861 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2862 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2862 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 356 "AdjustDateTimeDialog.c"
-}
-
-
-static gchar*
-g_time_format (struct tm *self,
- const gchar* format)
-{
- gchar* result = NULL;
- gchar* buffer = NULL;
- gchar* _tmp0_;
- gint buffer_length1;
- gint _buffer_size_;
- gchar* _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gint _tmp2__length1;
- gchar* _tmp3_;
-#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (format != NULL, NULL);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, 64);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = _tmp0_;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer_length1 = 64;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _buffer_size_ = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = buffer;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1__length1 = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- strftime (_tmp1_, _tmp1__length1, format, &(*self));
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = buffer;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2__length1 = buffer_length1;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_strdup ((const gchar*) _tmp2_);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp3_;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = (g_free (buffer), NULL);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 402 "AdjustDateTimeDialog.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return self ? g_object_ref (self) : NULL;
-#line 411 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-g_time_local (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- localtime_r (&time, &_tmp0_);
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 429 "AdjustDateTimeDialog.c"
-}
-
-
-AdjustDateTimeDialog*
-adjust_date_time_dialog_construct (GType object_type,
- Dateable* source,
- gint photo_count,
- gboolean display_options,
- gboolean contains_video,
- gboolean only_video)
-{
- AdjustDateTimeDialog * self = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GtkCalendar* _tmp2_;
- GtkCalendar* _tmp3_;
- GtkCalendar* _tmp4_;
- GtkCalendar* _tmp5_;
- GtkCalendar* _tmp6_;
- GtkCalendar* _tmp7_;
- ConfigFacade* _tmp8_;
- ConfigFacade* _tmp9_;
- gboolean _tmp10_;
- GtkSpinButton* _tmp13_;
- GtkSpinButton* _tmp14_;
- GtkSpinButton* _tmp15_;
- GtkSpinButton* _tmp16_;
- GtkSpinButton* _tmp17_;
- GtkSpinButton* _tmp18_;
- GtkSpinButton* _tmp19_;
- GtkSpinButton* _tmp20_;
- GtkSpinButton* _tmp21_;
- GtkSpinButton* _tmp22_;
- GtkSpinButton* _tmp23_;
- GtkComboBoxText* _tmp24_;
- GtkComboBoxText* _tmp25_;
- GtkComboBoxText* _tmp26_;
- GtkComboBoxText* _tmp27_;
- GtkComboBoxText* _tmp28_;
- GtkBox* clock = NULL;
- GtkBox* _tmp29_;
- GtkBox* _tmp30_;
- GtkSpinButton* _tmp31_;
- GtkBox* _tmp32_;
- GtkLabel* _tmp33_;
- GtkLabel* _tmp34_;
- GtkBox* _tmp35_;
- GtkSpinButton* _tmp36_;
- GtkBox* _tmp37_;
- GtkLabel* _tmp38_;
- GtkLabel* _tmp39_;
- GtkBox* _tmp40_;
- GtkSpinButton* _tmp41_;
- GtkBox* _tmp42_;
- GtkComboBoxText* _tmp43_;
- GtkRadioButton* _tmp44_;
- GtkRadioButton* _tmp45_;
- ConfigFacade* _tmp46_;
- ConfigFacade* _tmp47_;
- gboolean _tmp48_ = FALSE;
- GtkRadioButton* _tmp49_;
- GtkRadioButton* _tmp50_;
- GSList* _tmp51_;
- GtkRadioButton* _tmp52_;
- GtkRadioButton* _tmp53_;
- ConfigFacade* _tmp54_;
- ConfigFacade* _tmp55_;
- gboolean _tmp56_ = FALSE;
- GtkRadioButton* _tmp57_;
- GtkRadioButton* _tmp58_;
- gboolean _tmp65_ = FALSE;
- ConfigFacade* _tmp66_;
- ConfigFacade* _tmp67_;
- gboolean _tmp68_;
- GtkCheckButton* _tmp69_;
- gboolean _tmp70_ = FALSE;
- GtkCheckButton* _tmp75_;
- GtkBox* time_content = NULL;
- GtkBox* _tmp76_;
- GtkBox* picker = NULL;
- GtkBox* _tmp77_;
- GtkComboBoxText* combo = NULL;
- GtkComboBoxText* _tmp78_;
- GtkBox* _tmp87_;
- GtkComboBoxText* _tmp88_;
- GtkSpinButton* spin = NULL;
- GtkSpinButton* _tmp89_;
- GtkBox* _tmp90_;
- GtkSpinButton* _tmp91_;
- GtkSpinButton* _tmp92_;
- GtkCalendar* _tmp93_;
- GtkComboBoxText* _tmp94_;
- GtkCalendar* _tmp95_;
- GtkBox* _tmp96_;
- GtkBox* _tmp97_;
- GtkBox* _tmp98_;
- GtkCalendar* _tmp99_;
- GtkBox* _tmp100_;
- GtkBox* _tmp101_;
- GdkPixbuf* preview = NULL;
- GtkBox* image_content = NULL;
- GtkBox* _tmp113_;
- GtkBox* _tmp114_;
- GtkBox* _tmp115_;
- GtkImage* _tmp116_ = NULL;
- GdkPixbuf* _tmp117_;
- GtkImage* image = NULL;
- GtkImage* _tmp121_;
- GtkLabel* _tmp122_;
- GtkBox* _tmp123_;
- GtkImage* _tmp124_;
- GtkBox* _tmp125_;
- GtkLabel* _tmp126_;
- GtkBox* hbox = NULL;
- GtkBox* _tmp127_;
- GtkBox* _tmp128_;
- GtkBox* _tmp129_;
- GtkBox* _tmp130_;
- GtkBox* _tmp131_;
- GtkBox* _tmp132_;
- GtkBox* _tmp133_;
- GtkBox* _tmp134_;
- GtkBox* _tmp135_;
- GtkBox* _tmp136_;
- GtkBox* _tmp137_;
- GtkBox* _tmp138_;
- GtkLabel* _tmp139_;
- GtkLabel* _tmp140_;
- GtkLabel* _tmp141_;
- GtkBox* _tmp142_;
- GtkLabel* _tmp143_;
- time_t _tmp144_;
- time_t _tmp146_;
- struct tm _tmp147_ = {0};
- ConfigFacade* _tmp148_;
- ConfigFacade* _tmp149_;
- GError * _inner_error_ = NULL;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_val_if_fail (IS_DATEABLE (source), NULL);
-#line 39 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _vala_assert (source != NULL, "source != null");
-#line 41 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self = (AdjustDateTimeDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 43 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 44 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 45 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp0_ = app_window_get_instance ();
-#line 45 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = _tmp0_;
-#line 45 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow));
-#line 45 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp1_);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL);
-#line 49 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), RESOURCES_ADJUST_DATE_TIME_LABEL);
-#line 51 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp2_ = (GtkCalendar*) gtk_calendar_new ();
-#line 51 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp2_);
-#line 51 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->calendar);
-#line 51 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->calendar = _tmp2_;
-#line 52 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp3_ = self->priv->calendar;
-#line 52 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_set (_tmp3_, "show-heading", FALSE, NULL);
-#line 53 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp4_ = self->priv->calendar;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (_tmp4_, "day-selected", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_calendar_day_selected, self, 0);
-#line 54 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp5_ = self->priv->calendar;
-#line 54 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (_tmp5_, "month-changed", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_calendar_month_changed, self, 0);
-#line 55 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp6_ = self->priv->calendar;
-#line 55 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (_tmp6_, "next-year", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_calendar_next_year, self, 0);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp7_ = self->priv->calendar;
-#line 56 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (_tmp7_, "prev-year", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_calendar_prev_year, self, 0);
-#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = config_facade_get_instance ();
-#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp9_ = _tmp8_;
-#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp10_ = configuration_facade_get_use_24_hour_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp9_);
-#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp10_) {
-#line 627 "AdjustDateTimeDialog.c"
- GtkSpinButton* _tmp11_;
-#line 59 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp11_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) 23, (gdouble) 1);
-#line 59 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp11_);
-#line 59 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->hour);
-#line 59 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->hour = _tmp11_;
-#line 637 "AdjustDateTimeDialog.c"
- } else {
- GtkSpinButton* _tmp12_;
-#line 61 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp12_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 1, (gdouble) 12, (gdouble) 1);
-#line 61 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp12_);
-#line 61 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->hour);
-#line 61 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->hour = _tmp12_;
-#line 648 "AdjustDateTimeDialog.c"
- }
-#line 63 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp13_ = self->priv->hour;
-#line 63 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (_tmp13_, "output", (GCallback) _adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output, self, 0);
-#line 64 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp14_ = self->priv->hour;
-#line 64 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_entry_set_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_entry_get_type (), GtkEntry), 2);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp15_ = self->priv->hour;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_entry_set_max_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_entry_get_type (), GtkEntry), 2);
-#line 67 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp16_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) 59, (gdouble) 1);
-#line 67 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp16_);
-#line 67 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->minute);
-#line 67 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->minute = _tmp16_;
-#line 68 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp17_ = self->priv->minute;
-#line 68 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_entry_set_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_entry_get_type (), GtkEntry), 2);
-#line 69 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp18_ = self->priv->minute;
-#line 69 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_entry_set_max_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_entry_get_type (), GtkEntry), 2);
-#line 70 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp19_ = self->priv->minute;
-#line 70 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (_tmp19_, "output", (GCallback) _adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output, self, 0);
-#line 72 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp20_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) 59, (gdouble) 1);
-#line 72 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp20_);
-#line 72 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->second);
-#line 72 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->second = _tmp20_;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp21_ = self->priv->second;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_entry_set_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_entry_get_type (), GtkEntry), 2);
-#line 74 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp22_ = self->priv->second;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_entry_set_max_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_entry_get_type (), GtkEntry), 2);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp23_ = self->priv->second;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (_tmp23_, "output", (GCallback) _adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output, self, 0);
-#line 77 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp24_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 77 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp24_);
-#line 77 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->system);
-#line 77 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->system = _tmp24_;
-#line 78 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp25_ = self->priv->system;
-#line 78 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_combo_box_text_append_text (_tmp25_, _ ("AM"));
-#line 79 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp26_ = self->priv->system;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_combo_box_text_append_text (_tmp26_, _ ("PM"));
-#line 80 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp27_ = self->priv->system;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_combo_box_text_append_text (_tmp27_, _ ("24 Hr"));
-#line 81 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp28_ = self->priv->system;
-#line 81 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _adjust_date_time_dialog_on_time_system_changed_gtk_combo_box_changed, self, 0);
-#line 83 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp29_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
-#line 83 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp29_);
-#line 83 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- clock = _tmp29_;
-#line 85 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp30_ = clock;
-#line 85 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp31_ = self->priv->hour;
-#line 85 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp32_ = clock;
-#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp33_ = (GtkLabel*) gtk_label_new (":");
-#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp33_);
-#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp34_ = _tmp33_;
-#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp34_);
-#line 87 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp35_ = clock;
-#line 87 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp36_ = self->priv->minute;
-#line 87 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp37_ = clock;
-#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp38_ = (GtkLabel*) gtk_label_new (":");
-#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp38_);
-#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp39_ = _tmp38_;
-#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp39_);
-#line 89 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp40_ = clock;
-#line 89 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp41_ = self->priv->second;
-#line 89 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 90 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp42_ = clock;
-#line 90 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp43_ = self->priv->system;
-#line 90 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 92 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp44_ = (GtkRadioButton*) gtk_radio_button_new_with_mnemonic (NULL, _ ("_Shift photos/videos by the same amount"));
-#line 94 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp44_);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->relativity_radio_button);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->relativity_radio_button = _tmp44_;
-#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp45_ = self->priv->relativity_radio_button;
-#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp46_ = config_facade_get_instance ();
-#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp47_ = _tmp46_;
-#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_keep_relativity (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp47_);
-#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (display_options) {
-#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp48_ = photo_count > 1;
-#line 804 "AdjustDateTimeDialog.c"
- } else {
-#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp48_ = FALSE;
-#line 808 "AdjustDateTimeDialog.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp49_ = self->priv->relativity_radio_button;
-#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget), _tmp48_);
-#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp50_ = self->priv->relativity_radio_button;
-#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp51_ = gtk_radio_button_get_group (_tmp50_);
-#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp52_ = (GtkRadioButton*) gtk_radio_button_new_with_mnemonic (_tmp51_, _ ("Set _all photos/videos to this time"));
-#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp52_);
-#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->batch_radio_button);
-#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->batch_radio_button = _tmp52_;
-#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp53_ = self->priv->batch_radio_button;
-#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp54_ = config_facade_get_instance ();
-#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp55_ = _tmp54_;
-#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_toggle_button_get_type (), GtkToggleButton), !configuration_facade_get_keep_relativity (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp55_);
-#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (display_options) {
-#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp56_ = photo_count > 1;
-#line 840 "AdjustDateTimeDialog.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp56_ = FALSE;
-#line 844 "AdjustDateTimeDialog.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp57_ = self->priv->batch_radio_button;
-#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget), _tmp56_);
-#line 103 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp58_ = self->priv->batch_radio_button;
-#line 103 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_toggle_button_toggled, self, 0);
-#line 105 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (contains_video) {
-#line 856 "AdjustDateTimeDialog.c"
- gchar* text = NULL;
- gchar* _tmp59_;
- const gchar* _tmp60_;
- GtkCheckButton* _tmp61_;
-#line 106 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp59_ = g_strdup (ngettext ("_Modify original photo file", "_Modify original photo files", (gulong) photo_count));
-#line 106 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- text = _tmp59_;
-#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp60_ = text;
-#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp61_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_tmp60_);
-#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp61_);
-#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->modify_originals_check_button);
-#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->modify_originals_check_button = _tmp61_;
-#line 105 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (text);
-#line 877 "AdjustDateTimeDialog.c"
- } else {
- gchar* text = NULL;
- gchar* _tmp62_;
- const gchar* _tmp63_;
- GtkCheckButton* _tmp64_;
-#line 110 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp62_ = g_strdup (ngettext ("_Modify original file", "_Modify original files", (gulong) photo_count));
-#line 110 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- text = _tmp62_;
-#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp63_ = text;
-#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp64_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_tmp63_);
-#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp64_);
-#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->modify_originals_check_button);
-#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->modify_originals_check_button = _tmp64_;
-#line 105 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (text);
-#line 899 "AdjustDateTimeDialog.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp66_ = config_facade_get_instance ();
-#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp67_ = _tmp66_;
-#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp68_ = configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp67_);
-#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp68_) {
-#line 115 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp65_ = display_options;
-#line 913 "AdjustDateTimeDialog.c"
- } else {
-#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp65_ = FALSE;
-#line 917 "AdjustDateTimeDialog.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp69_ = self->priv->modify_originals_check_button;
-#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp65_);
-#line 116 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (!only_video) {
-#line 925 "AdjustDateTimeDialog.c"
- gboolean _tmp71_ = FALSE;
- ConfigFacade* _tmp72_;
- ConfigFacade* _tmp73_;
- gboolean _tmp74_;
-#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp72_ = config_facade_get_instance ();
-#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp73_ = _tmp72_;
-#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp74_ = !configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp73_);
-#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp74_) {
-#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp71_ = display_options;
-#line 942 "AdjustDateTimeDialog.c"
- } else {
-#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp71_ = FALSE;
-#line 946 "AdjustDateTimeDialog.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp70_ = _tmp71_;
-#line 950 "AdjustDateTimeDialog.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp70_ = FALSE;
-#line 954 "AdjustDateTimeDialog.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp75_ = self->priv->modify_originals_check_button;
-#line 116 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, gtk_widget_get_type (), GtkWidget), _tmp70_);
-#line 119 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp76_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-#line 119 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp76_);
-#line 119 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time_content = _tmp76_;
-#line 121 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp77_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
-#line 121 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp77_);
-#line 121 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- picker = _tmp77_;
-#line 122 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp78_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 122 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp78_);
-#line 122 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- combo = _tmp78_;
-#line 978 "AdjustDateTimeDialog.c"
- {
- gint i = 0;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- i = 0;
-#line 983 "AdjustDateTimeDialog.c"
- {
- gboolean _tmp79_ = FALSE;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp79_ = TRUE;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- while (TRUE) {
-#line 990 "AdjustDateTimeDialog.c"
- gint _tmp81_;
- GtkComboBoxText* _tmp82_;
- gint _tmp83_;
- struct tm _tmp84_ = {0};
- gchar* _tmp85_;
- gchar* _tmp86_;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (!_tmp79_) {
-#line 999 "AdjustDateTimeDialog.c"
- gint _tmp80_;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp80_ = i;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- i = _tmp80_ + 1;
-#line 1005 "AdjustDateTimeDialog.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp79_ = FALSE;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp81_ = i;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (!(_tmp81_ < 12)) {
-#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- break;
-#line 1015 "AdjustDateTimeDialog.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp82_ = combo;
-#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp83_ = i;
-#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_time_gm ((time_t) (_tmp83_ * 2764800), &_tmp84_);
-#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp85_ = g_time_format (&_tmp84_, "%B");
-#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp86_ = _tmp85_;
-#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_combo_box_text_append_text (_tmp82_, _tmp86_);
-#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (_tmp86_);
-#line 1031 "AdjustDateTimeDialog.c"
- }
- }
- }
-#line 126 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp87_ = picker;
-#line 126 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp88_ = combo;
-#line 126 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp87_, G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 128 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp89_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) (G_MAXINT >> 9), (gdouble) 1);
-#line 128 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp89_);
-#line 128 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- spin = _tmp89_;
-#line 129 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp90_ = picker;
-#line 129 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp91_ = spin;
-#line 129 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_end (_tmp90_, G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 130 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp92_ = spin;
-#line 130 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp93_ = self->priv->calendar;
-#line 130 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_bind_property_with_closures (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, G_TYPE_OBJECT, GObject), "value", G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, G_TYPE_OBJECT, GObject), "year", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
-#line 131 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp94_ = combo;
-#line 131 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp95_ = self->priv->calendar;
-#line 131 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_bind_property_with_closures (G_TYPE_CHECK_INSTANCE_CAST (_tmp94_, G_TYPE_OBJECT, GObject), "active", G_TYPE_CHECK_INSTANCE_CAST (_tmp95_, G_TYPE_OBJECT, GObject), "month", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
-#line 133 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp96_ = time_content;
-#line 133 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp97_ = picker;
-#line 133 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp96_, G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp98_ = time_content;
-#line 134 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp99_ = self->priv->calendar;
-#line 134 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp98_, G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 135 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp100_ = time_content;
-#line 135 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp101_ = clock;
-#line 135 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp100_, G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 137 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (display_options) {
-#line 1085 "AdjustDateTimeDialog.c"
- GtkBox* _tmp102_;
- GtkRadioButton* _tmp103_;
- GtkBox* _tmp104_;
- GtkRadioButton* _tmp105_;
- GtkBox* _tmp106_;
- GtkCheckButton* _tmp107_;
-#line 138 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp102_ = time_content;
-#line 138 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp103_ = self->priv->relativity_radio_button;
-#line 138 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp102_, G_TYPE_CHECK_INSTANCE_CAST (_tmp103_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 139 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp104_ = time_content;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp105_ = self->priv->batch_radio_button;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp104_, G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 140 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp106_ = time_content;
-#line 140 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp107_ = self->priv->modify_originals_check_button;
-#line 140 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp106_, G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 1110 "AdjustDateTimeDialog.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- preview = NULL;
-#line 1114 "AdjustDateTimeDialog.c"
- {
- GdkPixbuf* _tmp108_ = NULL;
- GdkPixbuf* _tmp109_;
- GdkPixbuf* _tmp110_;
-#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp109_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), ADJUST_DATE_TIME_DIALOG_CALENDAR_THUMBNAIL_SCALE, &_inner_error_);
-#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp108_ = _tmp109_;
-#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1125 "AdjustDateTimeDialog.c"
- goto __catch25_g_error;
- }
-#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp110_ = _tmp108_;
-#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp108_ = NULL;
-#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (preview);
-#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- preview = _tmp110_;
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp108_);
-#line 1138 "AdjustDateTimeDialog.c"
- }
- goto __finally25;
- __catch25_g_error:
- {
- GError* err = NULL;
- gchar* _tmp111_;
- gchar* _tmp112_;
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- err = _inner_error_;
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _inner_error_ = NULL;
-#line 149 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp111_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 149 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp112_ = _tmp111_;
-#line 149 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_warning ("AdjustDateTimeDialog.vala:149: Unable to fetch preview for %s", _tmp112_);
-#line 149 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (_tmp112_);
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_error_free0 (err);
-#line 1160 "AdjustDateTimeDialog.c"
- }
- __finally25:
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (preview);
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (spin);
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (combo);
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (picker);
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (time_content);
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (clock);
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.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 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_clear_error (&_inner_error_);
-#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return NULL;
-#line 1183 "AdjustDateTimeDialog.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp113_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 152 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp113_);
-#line 152 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- image_content = _tmp113_;
-#line 153 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp114_ = image_content;
-#line 153 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 154 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp115_ = image_content;
-#line 154 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_set_homogeneous (_tmp115_, TRUE);
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp117_ = preview;
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp117_ != NULL) {
-#line 1203 "AdjustDateTimeDialog.c"
- GdkPixbuf* _tmp118_;
- GtkImage* _tmp119_;
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp118_ = preview;
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp119_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp118_);
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp119_);
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp116_);
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp116_ = _tmp119_;
-#line 1216 "AdjustDateTimeDialog.c"
- } else {
- GtkImage* _tmp120_;
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp120_ = (GtkImage*) gtk_image_new ();
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp120_);
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp116_);
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp116_ = _tmp120_;
-#line 1227 "AdjustDateTimeDialog.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp121_ = _g_object_ref0 (_tmp116_);
-#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- image = _tmp121_;
-#line 156 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp122_ = (GtkLabel*) gtk_label_new (NULL);
-#line 156 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp122_);
-#line 156 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->original_time_label);
-#line 156 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->original_time_label = _tmp122_;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp123_ = image_content;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp124_ = image;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp123_, G_TYPE_CHECK_INSTANCE_CAST (_tmp124_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 158 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp125_ = image_content;
-#line 158 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp126_ = self->priv->original_time_label;
-#line 158 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp125_, G_TYPE_CHECK_INSTANCE_CAST (_tmp126_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 160 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp127_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
-#line 160 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp127_);
-#line 160 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- hbox = _tmp127_;
-#line 161 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp128_ = hbox;
-#line 161 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp128_, gtk_container_get_type (), GtkContainer), (guint) 3);
-#line 162 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp129_ = hbox;
-#line 162 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp130_ = image_content;
-#line 162 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp129_, G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 163 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp131_ = hbox;
-#line 163 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp132_ = time_content;
-#line 163 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (_tmp131_, G_TYPE_CHECK_INSTANCE_CAST (_tmp132_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 164 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp133_ = hbox;
-#line 164 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 165 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp134_ = hbox;
-#line 165 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp134_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 166 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp135_ = hbox;
-#line 166 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 167 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp136_ = hbox;
-#line 167 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp136_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 169 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp137_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 169 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp138_ = hbox;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp137_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp138_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 171 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp139_ = (GtkLabel*) gtk_label_new ("");
-#line 171 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_ref_sink (_tmp139_);
-#line 171 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->notification);
-#line 171 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->notification = _tmp139_;
-#line 172 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp140_ = self->priv->notification;
-#line 172 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_label_set_line_wrap (_tmp140_, TRUE);
-#line 173 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp141_ = self->priv->notification;
-#line 173 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_label_set_justify (_tmp141_, GTK_JUSTIFY_CENTER);
-#line 175 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp142_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 175 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp143_ = self->priv->notification;
-#line 175 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp142_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp143_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 177 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->original_time = dateable_get_exposure_time (source);
-#line 179 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp144_ = self->priv->original_time;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp144_ == ((time_t) 0)) {
-#line 1325 "AdjustDateTimeDialog.c"
- time_t _tmp145_;
-#line 180 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp145_ = time (NULL);
-#line 180 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->original_time = _tmp145_;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->no_original_time = TRUE;
-#line 1333 "AdjustDateTimeDialog.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp146_ = self->priv->original_time;
-#line 184 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_time_local (_tmp146_, &_tmp147_);
-#line 184 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_set_time (self, &_tmp147_);
-#line 185 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp148_ = config_facade_get_instance ();
-#line 185 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp149_ = _tmp148_;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_set_original_time_label (self, configuration_facade_get_use_24_hour_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp149_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 185 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp149_);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (hbox);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (image);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp116_);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (image_content);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (preview);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (spin);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (combo);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (picker);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (time_content);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (clock);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return self;
-#line 1371 "AdjustDateTimeDialog.c"
-}
-
-
-AdjustDateTimeDialog*
-adjust_date_time_dialog_new (Dateable* source,
- gint photo_count,
- gboolean display_options,
- gboolean contains_video,
- gboolean only_video)
-{
-#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return adjust_date_time_dialog_construct (TYPE_ADJUST_DATE_TIME_DIALOG, source, photo_count, display_options, contains_video, only_video);
-#line 1384 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-adjust_date_time_dialog_set_time (AdjustDateTimeDialog* self,
- struct tm* time)
-{
- GtkCalendar* _tmp0_;
- struct tm _tmp1_;
- gint _tmp2_;
- struct tm _tmp3_;
- gint _tmp4_;
- GtkCalendar* _tmp5_;
- struct tm _tmp6_;
- gint _tmp7_;
- GtkCalendar* _tmp8_;
- GtkCalendar* _tmp9_;
- ConfigFacade* _tmp10_;
- ConfigFacade* _tmp11_;
- gboolean _tmp12_;
- GtkSpinButton* _tmp27_;
- struct tm _tmp28_;
- gint _tmp29_;
- GtkSpinButton* _tmp30_;
- struct tm _tmp31_;
- gint _tmp32_;
- GtkComboBoxText* _tmp33_;
-#line 188 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self));
-#line 188 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_if_fail (time != NULL);
-#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp0_ = self->priv->calendar;
-#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = *time;
-#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp2_ = _tmp1_.tm_mon;
-#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp3_ = *time;
-#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp4_ = _tmp3_.tm_year;
-#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_calendar_select_month (_tmp0_, (guint) _tmp2_, (guint) (_tmp4_ + ADJUST_DATE_TIME_DIALOG_YEAR_OFFSET));
-#line 190 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp5_ = self->priv->calendar;
-#line 190 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp6_ = *time;
-#line 190 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp7_ = _tmp6_.tm_mday;
-#line 190 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_calendar_select_day (_tmp5_, (guint) _tmp7_);
-#line 191 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = self->priv->calendar;
-#line 191 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, G_TYPE_OBJECT, GObject), "year");
-#line 192 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp9_ = self->priv->calendar;
-#line 192 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject), "month");
-#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp10_ = config_facade_get_instance ();
-#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp11_ = _tmp10_;
-#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp12_ = configuration_facade_get_use_24_hour_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp11_);
-#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp12_) {
-#line 1454 "AdjustDateTimeDialog.c"
- GtkComboBoxText* _tmp13_;
- GtkSpinButton* _tmp14_;
- struct tm _tmp15_;
- gint _tmp16_;
-#line 195 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp13_ = self->priv->system;
-#line 195 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_combo_box_get_type (), GtkComboBox), (gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR);
-#line 196 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp14_ = self->priv->hour;
-#line 196 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp15_ = *time;
-#line 196 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp16_ = _tmp15_.tm_hour;
-#line 196 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_spin_button_set_value (_tmp14_, (gdouble) _tmp16_);
-#line 1471 "AdjustDateTimeDialog.c"
- } else {
- gint AMPM_hour = 0;
- struct tm _tmp17_;
- gint _tmp18_;
- gint _tmp19_ = 0;
- gint _tmp20_;
- GtkSpinButton* _tmp22_;
- AdjustDateTimeDialogTimeSystem _tmp23_ = 0;
- struct tm _tmp24_;
- gint _tmp25_;
- GtkComboBoxText* _tmp26_;
-#line 198 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp17_ = *time;
-#line 198 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp18_ = _tmp17_.tm_hour;
-#line 198 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- AMPM_hour = _tmp18_ % 12;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp20_ = AMPM_hour;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp20_ == 0) {
-#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp19_ = 12;
-#line 1495 "AdjustDateTimeDialog.c"
- } else {
- gint _tmp21_;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp21_ = AMPM_hour;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp19_ = _tmp21_;
-#line 1502 "AdjustDateTimeDialog.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp22_ = self->priv->hour;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_spin_button_set_value (_tmp22_, (gdouble) _tmp19_);
-#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp24_ = *time;
-#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp25_ = _tmp24_.tm_hour;
-#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp25_ >= 12) {
-#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp23_ = ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM;
-#line 1516 "AdjustDateTimeDialog.c"
- } else {
-#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp23_ = ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_AM;
-#line 1520 "AdjustDateTimeDialog.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp26_ = self->priv->system;
-#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp23_);
-#line 1526 "AdjustDateTimeDialog.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp27_ = self->priv->minute;
-#line 203 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp28_ = *time;
-#line 203 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp29_ = _tmp28_.tm_min;
-#line 203 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_spin_button_set_value (_tmp27_, (gdouble) _tmp29_);
-#line 204 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp30_ = self->priv->second;
-#line 204 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp31_ = *time;
-#line 204 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp32_ = _tmp31_.tm_sec;
-#line 204 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_spin_button_set_value (_tmp30_, (gdouble) _tmp32_);
-#line 206 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp33_ = self->priv->system;
-#line 206 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->previous_time_system = (AdjustDateTimeDialogTimeSystem) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_combo_box_get_type (), GtkComboBox));
-#line 1548 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-adjust_date_time_dialog_set_original_time_label (AdjustDateTimeDialog* self,
- gboolean use_24_hr_format)
-{
- gboolean _tmp0_;
- const gchar* _tmp1_ = NULL;
- GtkLabel* _tmp2_;
- time_t _tmp3_;
- struct tm _tmp4_ = {0};
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 209 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self));
-#line 210 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp0_ = self->priv->no_original_time;
-#line 210 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp0_) {
-#line 211 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return;
-#line 1573 "AdjustDateTimeDialog.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (use_24_hr_format) {
-#line 214 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = _ ("%m/%d/%Y, %H:%M:%S");
-#line 1579 "AdjustDateTimeDialog.c"
- } else {
-#line 215 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = _ ("%m/%d/%Y, %I:%M:%S %p");
-#line 1583 "AdjustDateTimeDialog.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp2_ = self->priv->original_time_label;
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp3_ = self->priv->original_time;
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_time_local (_tmp3_, &_tmp4_);
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp5_ = g_time_format (&_tmp4_, _tmp1_);
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp6_ = _tmp5_;
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp7_ = g_strconcat (_ ("Original: "), _tmp6_, NULL);
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = _tmp7_;
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_label_set_text (_tmp2_, _tmp8_);
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (_tmp8_);
-#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (_tmp6_);
-#line 1605 "AdjustDateTimeDialog.c"
-}
-
-
-static time_t
-adjust_date_time_dialog_get_time (AdjustDateTimeDialog* self)
-{
- time_t result = 0;
- struct tm time = {0};
- GtkSpinButton* _tmp0_;
- GtkSpinButton* _tmp1_;
- gint hour = 0;
- GtkSpinButton* _tmp2_;
- gint _tmp3_ = 0;
- gboolean _tmp4_ = FALSE;
- gint _tmp5_;
- gint _tmp8_ = 0;
- GtkComboBoxText* _tmp9_;
- gint _tmp10_;
- guint year = 0U;
- guint month = 0U;
- guint day = 0U;
- GtkCalendar* _tmp11_;
- guint _tmp12_ = 0U;
- guint _tmp13_ = 0U;
- guint _tmp14_ = 0U;
-#line 218 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_val_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self), 0);
-#line 219 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- memset (&time, 0, sizeof (struct tm));
-#line 221 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp0_ = self->priv->second;
-#line 221 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time.tm_sec = (gint) gtk_spin_button_get_value (_tmp0_);
-#line 222 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = self->priv->minute;
-#line 222 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time.tm_min = (gint) gtk_spin_button_get_value (_tmp1_);
-#line 225 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp2_ = self->priv->hour;
-#line 225 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- hour = (gint) gtk_spin_button_get_value (_tmp2_);
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp5_ = hour;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp5_ == 12) {
-#line 1651 "AdjustDateTimeDialog.c"
- GtkComboBoxText* _tmp6_;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp6_ = self->priv->system;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp4_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox)) != ((gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR);
-#line 1657 "AdjustDateTimeDialog.c"
- } else {
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp4_ = FALSE;
-#line 1661 "AdjustDateTimeDialog.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp4_) {
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp3_ = 0;
-#line 1667 "AdjustDateTimeDialog.c"
- } else {
- gint _tmp7_;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp7_ = hour;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp3_ = _tmp7_;
-#line 1674 "AdjustDateTimeDialog.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time.tm_hour = _tmp3_;
-#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp9_ = self->priv->system;
-#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox)) == ((gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM)) {
-#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = 12;
-#line 1684 "AdjustDateTimeDialog.c"
- } else {
-#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = 0;
-#line 1688 "AdjustDateTimeDialog.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp10_ = time.tm_hour;
-#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time.tm_hour = _tmp10_ + _tmp8_;
-#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp11_ = self->priv->calendar;
-#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_calendar_get_date (_tmp11_, &_tmp12_, &_tmp13_, &_tmp14_);
-#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- year = _tmp12_;
-#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- month = _tmp13_;
-#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- day = _tmp14_;
-#line 231 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time.tm_year = ((gint) year) - ADJUST_DATE_TIME_DIALOG_YEAR_OFFSET;
-#line 232 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time.tm_mon = (gint) month;
-#line 233 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time.tm_mday = (gint) day;
-#line 235 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time.tm_isdst = -1;
-#line 237 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- result = mktime (&time);
-#line 237 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return result;
-#line 1716 "AdjustDateTimeDialog.c"
-}
-
-
-gboolean
-adjust_date_time_dialog_execute (AdjustDateTimeDialog* self,
- gint64* time_shift,
- gboolean* keep_relativity,
- gboolean* modify_originals)
-{
- gint64 _vala_time_shift = 0LL;
- gboolean _vala_keep_relativity = FALSE;
- gboolean _vala_modify_originals = FALSE;
- gboolean result = FALSE;
- gboolean response = FALSE;
-#line 240 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_val_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self), FALSE);
-#line 242 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 244 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- response = FALSE;
-#line 246 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) {
-#line 1739 "AdjustDateTimeDialog.c"
- gboolean _tmp0_;
- GtkRadioButton* _tmp2_;
- GtkRadioButton* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- GtkCheckButton* _tmp9_;
- GtkCheckButton* _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_;
-#line 247 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp0_ = self->priv->no_original_time;
-#line 247 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp0_) {
-#line 248 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _vala_time_shift = (gint64) adjust_date_time_dialog_get_time (self);
-#line 1755 "AdjustDateTimeDialog.c"
- } else {
- time_t _tmp1_;
-#line 250 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = self->priv->original_time;
-#line 250 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _vala_time_shift = (gint64) (adjust_date_time_dialog_get_time (self) - _tmp1_);
-#line 1762 "AdjustDateTimeDialog.c"
- }
-#line 252 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp2_ = self->priv->relativity_radio_button;
-#line 252 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _vala_keep_relativity = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 254 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp3_ = self->priv->relativity_radio_button;
-#line 254 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp4_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 254 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp5_ = _tmp4_;
-#line 254 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp5_) {
-#line 1776 "AdjustDateTimeDialog.c"
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- gboolean _tmp8_;
-#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp6_ = config_facade_get_instance ();
-#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp7_ = _tmp6_;
-#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = _vala_keep_relativity;
-#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- configuration_facade_set_keep_relativity (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp8_);
-#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp7_);
-#line 1790 "AdjustDateTimeDialog.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp9_ = self->priv->modify_originals_check_button;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _vala_modify_originals = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 259 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp10_ = self->priv->modify_originals_check_button;
-#line 259 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp11_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 259 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp12_ = _tmp11_;
-#line 259 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp12_) {
-#line 1804 "AdjustDateTimeDialog.c"
- ConfigFacade* _tmp13_;
- ConfigFacade* _tmp14_;
- gboolean _tmp15_;
-#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp13_ = config_facade_get_instance ();
-#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp14_ = _tmp13_;
-#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp15_ = _vala_modify_originals;
-#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- configuration_facade_set_modify_originals (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp15_);
-#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp14_);
-#line 1818 "AdjustDateTimeDialog.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- response = TRUE;
-#line 1822 "AdjustDateTimeDialog.c"
- } else {
-#line 264 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _vala_time_shift = (gint64) 0;
-#line 265 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _vala_keep_relativity = TRUE;
-#line 266 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _vala_modify_originals = FALSE;
-#line 1830 "AdjustDateTimeDialog.c"
- }
-#line 269 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- result = response;
-#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (time_shift) {
-#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- *time_shift = _vala_time_shift;
-#line 1840 "AdjustDateTimeDialog.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (keep_relativity) {
-#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- *keep_relativity = _vala_keep_relativity;
-#line 1846 "AdjustDateTimeDialog.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (modify_originals) {
-#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- *modify_originals = _vala_modify_originals;
-#line 1852 "AdjustDateTimeDialog.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return result;
-#line 1856 "AdjustDateTimeDialog.c"
-}
-
-
-static gboolean
-adjust_date_time_dialog_on_spin_button_output (AdjustDateTimeDialog* self,
- GtkSpinButton* button)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 274 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_val_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self), FALSE);
-#line 274 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_val_if_fail (GTK_IS_SPIN_BUTTON (button), FALSE);
-#line 275 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp0_ = g_strdup_printf ("%02d", (gint) gtk_spin_button_get_value (button));
-#line 275 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = _tmp0_;
-#line 275 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_entry_set_text (G_TYPE_CHECK_INSTANCE_CAST (button, gtk_entry_get_type (), GtkEntry), _tmp1_);
-#line 275 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (_tmp1_);
-#line 277 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_on_time_changed (self);
-#line 279 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- result = TRUE;
-#line 279 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return result;
-#line 1885 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-adjust_date_time_dialog_on_time_changed (AdjustDateTimeDialog* self)
-{
- gint64 time_shift = 0LL;
- time_t _tmp0_;
- GtkCalendar* _tmp1_;
- GtkCalendar* _tmp2_;
- GtkComboBoxText* _tmp3_;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- gint64 _tmp6_;
-#line 282 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self));
-#line 283 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp0_ = self->priv->original_time;
-#line 283 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time_shift = ((gint64) adjust_date_time_dialog_get_time (self)) - ((gint64) _tmp0_);
-#line 284 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = self->priv->calendar;
-#line 284 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject), "year");
-#line 285 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp2_ = self->priv->calendar;
-#line 285 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_object_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, G_TYPE_OBJECT, GObject), "month");
-#line 287 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp3_ = self->priv->system;
-#line 287 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->previous_time_system = (AdjustDateTimeDialogTimeSystem) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox));
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp6_ = time_shift;
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp6_ == ((gint64) 0)) {
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp5_ = TRUE;
-#line 1924 "AdjustDateTimeDialog.c"
- } else {
- gboolean _tmp7_;
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp7_ = self->priv->no_original_time;
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp5_ = _tmp7_;
-#line 1931 "AdjustDateTimeDialog.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp5_) {
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp4_ = TRUE;
-#line 1937 "AdjustDateTimeDialog.c"
- } else {
- gboolean _tmp8_ = FALSE;
- GtkRadioButton* _tmp9_;
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp9_ = self->priv->batch_radio_button;
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton))) {
-#line 1945 "AdjustDateTimeDialog.c"
- GtkRadioButton* _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_;
-#line 290 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp10_ = self->priv->batch_radio_button;
-#line 290 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp11_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 290 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp12_ = _tmp11_;
-#line 290 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = _tmp12_;
-#line 1957 "AdjustDateTimeDialog.c"
- } else {
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = FALSE;
-#line 1961 "AdjustDateTimeDialog.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp4_ = _tmp8_;
-#line 1965 "AdjustDateTimeDialog.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp4_) {
-#line 1969 "AdjustDateTimeDialog.c"
- GtkLabel* _tmp13_;
-#line 291 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp13_ = self->priv->notification;
-#line 291 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget));
-#line 1975 "AdjustDateTimeDialog.c"
- } else {
- gboolean forward = FALSE;
- gint64 _tmp14_;
- gint days = 0;
- gint hours = 0;
- gint minutes = 0;
- gint seconds = 0;
- gint64 _tmp15_;
- gint64 _tmp16_;
- gint64 _tmp17_;
- gint64 _tmp18_;
- gint64 _tmp19_;
- gint64 _tmp20_;
- gint64 _tmp21_;
- const gchar* _tmp22_ = NULL;
- gboolean _tmp23_;
- gchar* shift_status = NULL;
- gchar* _tmp24_;
- GtkLabel* _tmp25_;
- const gchar* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- GtkLabel* _tmp37_;
-#line 293 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp14_ = time_shift;
-#line 293 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- forward = _tmp14_ > ((gint64) 0);
-#line 296 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp15_ = time_shift;
-#line 296 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time_shift = llabs (_tmp15_);
-#line 298 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp16_ = time_shift;
-#line 298 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- days = (gint) (_tmp16_ / ADJUST_DATE_TIME_DIALOG_SECONDS_IN_DAY);
-#line 299 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp17_ = time_shift;
-#line 299 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time_shift = _tmp17_ % ADJUST_DATE_TIME_DIALOG_SECONDS_IN_DAY;
-#line 300 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp18_ = time_shift;
-#line 300 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- hours = (gint) (_tmp18_ / ADJUST_DATE_TIME_DIALOG_SECONDS_IN_HOUR);
-#line 301 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp19_ = time_shift;
-#line 301 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time_shift = _tmp19_ % ADJUST_DATE_TIME_DIALOG_SECONDS_IN_HOUR;
-#line 302 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp20_ = time_shift;
-#line 302 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- minutes = (gint) (_tmp20_ / ADJUST_DATE_TIME_DIALOG_SECONDS_IN_MINUTE);
-#line 303 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp21_ = time_shift;
-#line 303 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- seconds = (gint) (_tmp21_ % ADJUST_DATE_TIME_DIALOG_SECONDS_IN_MINUTE);
-#line 305 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp23_ = forward;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp23_) {
-#line 306 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp22_ = _ ("Exposure time will be shifted forward by\n" \
-"%d %s, %d %s, %d %s, and %d %s.");
-#line 2045 "AdjustDateTimeDialog.c"
- } else {
-#line 307 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp22_ = _ ("Exposure time will be shifted backward by\n" \
-"%d %s, %d %s, %d %s, and %d %s.");
-#line 2049 "AdjustDateTimeDialog.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp24_ = g_strdup (_tmp22_);
-#line 305 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- shift_status = _tmp24_;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp25_ = self->priv->notification;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp26_ = shift_status;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp27_ = days;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp28_ = days;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp29_ = hours;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp30_ = hours;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp31_ = minutes;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp32_ = minutes;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp33_ = seconds;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp34_ = seconds;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp35_ = g_strdup_printf (_tmp26_, _tmp27_, ngettext ("day", "days", (gulong) _tmp28_), _tmp29_, ngettext ("hour", "hours", (gulong) _tmp30_), _tmp31_, ngettext ("minute", "minutes", (gulong) _tmp32_), _tmp33_, ngettext ("second", "seconds", (gulong) _tmp34_));
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp36_ = _tmp35_;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_label_set_text (_tmp25_, _tmp36_);
-#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (_tmp36_);
-#line 314 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp37_ = self->priv->notification;
-#line 314 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget));
-#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_free0 (shift_status);
-#line 2089 "AdjustDateTimeDialog.c"
- }
-}
-
-
-static void
-adjust_date_time_dialog_on_time_system_changed (AdjustDateTimeDialog* self)
-{
- AdjustDateTimeDialogTimeSystem _tmp0_;
- GtkComboBoxText* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- GtkComboBoxText* _tmp4_;
- GtkComboBoxText* _tmp5_;
-#line 318 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_return_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self));
-#line 319 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp0_ = self->priv->previous_time_system;
-#line 319 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp1_ = self->priv->system;
-#line 319 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp0_ == gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))) {
-#line 320 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- return;
-#line 2113 "AdjustDateTimeDialog.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp3_ = _tmp2_;
-#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp4_ = self->priv->system;
-#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- configuration_facade_set_use_24_hour_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox)) == ((gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR));
-#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (_tmp3_);
-#line 324 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp5_ = self->priv->system;
-#line 324 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_combo_box_get_type (), GtkComboBox)) == ((gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR)) {
-#line 2129 "AdjustDateTimeDialog.c"
- gint _tmp6_ = 0;
- GtkSpinButton* _tmp7_;
- gint time = 0;
- gint _tmp9_ = 0;
- AdjustDateTimeDialogTimeSystem _tmp10_;
- gint _tmp11_;
- GtkSpinButton* _tmp12_;
- GtkSpinButton* _tmp13_;
- gint _tmp14_;
-#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp7_ = self->priv->hour;
-#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (gtk_spin_button_get_value (_tmp7_) == 12.0) {
-#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp6_ = 0;
-#line 2145 "AdjustDateTimeDialog.c"
- } else {
- GtkSpinButton* _tmp8_;
-#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp8_ = self->priv->hour;
-#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp6_ = (gint) gtk_spin_button_get_value (_tmp8_);
-#line 2152 "AdjustDateTimeDialog.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time = _tmp6_;
-#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp10_ = self->priv->previous_time_system;
-#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp10_ == ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM) {
-#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp9_ = 12;
-#line 2162 "AdjustDateTimeDialog.c"
- } else {
-#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp9_ = 0;
-#line 2166 "AdjustDateTimeDialog.c"
- }
-#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp11_ = time;
-#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- time = _tmp11_ + _tmp9_;
-#line 328 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp12_ = self->priv->hour;
-#line 328 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_spin_button_set_range (_tmp12_, (gdouble) 0, (gdouble) 23);
-#line 329 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_set_original_time_label (self, TRUE);
-#line 331 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp13_ = self->priv->hour;
-#line 331 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp14_ = time;
-#line 331 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_spin_button_set_value (_tmp13_, (gdouble) _tmp14_);
-#line 2184 "AdjustDateTimeDialog.c"
- } else {
- gint AMPM_hour = 0;
- GtkSpinButton* _tmp15_;
- GtkSpinButton* _tmp16_;
- gint _tmp17_ = 0;
- gint _tmp18_;
- GtkSpinButton* _tmp20_;
-#line 333 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp15_ = self->priv->hour;
-#line 333 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- AMPM_hour = ((gint) gtk_spin_button_get_value (_tmp15_)) % 12;
-#line 335 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp16_ = self->priv->hour;
-#line 335 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_spin_button_set_range (_tmp16_, (gdouble) 1, (gdouble) 12);
-#line 336 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_set_original_time_label (self, FALSE);
-#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp18_ = AMPM_hour;
-#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- if (_tmp18_ == 0) {
-#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp17_ = 12;
-#line 2208 "AdjustDateTimeDialog.c"
- } else {
- gint _tmp19_;
-#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp19_ = AMPM_hour;
-#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp17_ = _tmp19_;
-#line 2215 "AdjustDateTimeDialog.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _tmp20_ = self->priv->hour;
-#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- gtk_spin_button_set_value (_tmp20_, (gdouble) _tmp17_);
-#line 2221 "AdjustDateTimeDialog.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_on_time_changed (self);
-#line 2225 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-adjust_date_time_dialog_class_init (AdjustDateTimeDialogClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- adjust_date_time_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- g_type_class_add_private (klass, sizeof (AdjustDateTimeDialogPrivate));
-#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- G_OBJECT_CLASS (klass)->finalize = adjust_date_time_dialog_finalize;
-#line 2238 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-adjust_date_time_dialog_instance_init (AdjustDateTimeDialog * self)
-{
-#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv = ADJUST_DATE_TIME_DIALOG_GET_PRIVATE (self);
-#line 13 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self->priv->no_original_time = FALSE;
-#line 2249 "AdjustDateTimeDialog.c"
-}
-
-
-static void
-adjust_date_time_dialog_finalize (GObject * obj)
-{
- AdjustDateTimeDialog * self;
-#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog);
-#line 18 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->original_time_label);
-#line 19 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->calendar);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->hour);
-#line 21 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->minute);
-#line 22 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->second);
-#line 23 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->system);
-#line 24 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->relativity_radio_button);
-#line 25 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->batch_radio_button);
-#line 26 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->modify_originals_check_button);
-#line 27 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- _g_object_unref0 (self->priv->notification);
-#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala"
- G_OBJECT_CLASS (adjust_date_time_dialog_parent_class)->finalize (obj);
-#line 2281 "AdjustDateTimeDialog.c"
-}
-
-
-GType
-adjust_date_time_dialog_get_type (void)
-{
- static volatile gsize adjust_date_time_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&adjust_date_time_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (AdjustDateTimeDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_date_time_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustDateTimeDialog), 0, (GInstanceInitFunc) adjust_date_time_dialog_instance_init, NULL };
- GType adjust_date_time_dialog_type_id;
- adjust_date_time_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "AdjustDateTimeDialog", &g_define_type_info, 0);
- g_once_init_leave (&adjust_date_time_dialog_type_id__volatile, adjust_date_time_dialog_type_id);
- }
- return adjust_date_time_dialog_type_id__volatile;
-}
-
-
-
diff --git a/src/dialogs/EntryMultiCompletion.c b/src/dialogs/EntryMultiCompletion.c
deleted file mode 100644
index 4006725..0000000
--- a/src/dialogs/EntryMultiCompletion.c
+++ /dev/null
@@ -1,1073 +0,0 @@
-/* EntryMultiCompletion.c generated by valac 0.40.4, the Vala compiler
- * generated from EntryMultiCompletion.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* Entry completion for values separated by separators (e.g. comma in the case of tags)*/
-/* Partly inspired by the class of the same name in gtkmm-utils by Marko Anastasov*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-
-
-#define TYPE_ENTRY_MULTI_COMPLETION (entry_multi_completion_get_type ())
-#define ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion))
-#define ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass))
-#define IS_ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENTRY_MULTI_COMPLETION))
-#define IS_ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENTRY_MULTI_COMPLETION))
-#define ENTRY_MULTI_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass))
-
-typedef struct _EntryMultiCompletion EntryMultiCompletion;
-typedef struct _EntryMultiCompletionClass EntryMultiCompletionClass;
-typedef struct _EntryMultiCompletionPrivate EntryMultiCompletionPrivate;
-enum {
- ENTRY_MULTI_COMPLETION_0_PROPERTY,
- ENTRY_MULTI_COMPLETION_NUM_PROPERTIES
-};
-static GParamSpec* entry_multi_completion_properties[ENTRY_MULTI_COMPLETION_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _EntryMultiCompletion {
- GtkEntryCompletion parent_instance;
- EntryMultiCompletionPrivate * priv;
-};
-
-struct _EntryMultiCompletionClass {
- GtkEntryCompletionClass parent_class;
-};
-
-struct _EntryMultiCompletionPrivate {
- gchar* delimiter;
-};
-
-
-static gpointer entry_multi_completion_parent_class = NULL;
-
-GType entry_multi_completion_get_type (void) G_GNUC_CONST;
-#define ENTRY_MULTI_COMPLETION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionPrivate))
-EntryMultiCompletion* entry_multi_completion_new (GeeCollection* completion_list,
- const gchar* delimiter);
-EntryMultiCompletion* entry_multi_completion_construct (GType object_type,
- GeeCollection* completion_list,
- const gchar* delimiter);
-static GtkListStore* entry_multi_completion_create_completion_store (GeeCollection* completion_list);
-static gboolean entry_multi_completion_match_func (EntryMultiCompletion* self,
- GtkEntryCompletion* completion,
- const gchar* key,
- GtkTreeIter* iter);
-static gboolean _entry_multi_completion_match_func_gtk_entry_completion_match_func (GtkEntryCompletion* completion,
- const gchar* key,
- GtkTreeIter* iter,
- gpointer self);
-static gchar* entry_multi_completion_get_last_part (const gchar* s,
- const gchar* delimiter);
-static gboolean entry_multi_completion_real_match_selected (GtkEntryCompletion* base,
- GtkTreeModel* model,
- GtkTreeIter* iter);
-static void entry_multi_completion_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 gint _vala_array_length (gpointer array);
-
-
-static gboolean
-_entry_multi_completion_match_func_gtk_entry_completion_match_func (GtkEntryCompletion* completion,
- const gchar* key,
- GtkTreeIter* iter,
- gpointer self)
-{
- gboolean result;
- result = entry_multi_completion_match_func ((EntryMultiCompletion*) self, completion, key, iter);
-#line 19 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 102 "EntryMultiCompletion.c"
-}
-
-
-EntryMultiCompletion*
-entry_multi_completion_construct (GType object_type,
- GeeCollection* completion_list,
- const gchar* delimiter)
-{
- EntryMultiCompletion * self = NULL;
- gboolean _tmp0_ = FALSE;
- gchar* _tmp3_;
- GtkListStore* _tmp4_;
- GtkListStore* _tmp5_;
-#line 13 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (completion_list), NULL);
-#line 13 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- self = (EntryMultiCompletion*) g_object_new (object_type, NULL);
-#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (delimiter == NULL) {
-#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp0_ = TRUE;
-#line 124 "EntryMultiCompletion.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp1_ = strlen (delimiter);
-#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp2_ = _tmp1_;
-#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp0_ = _tmp2_ == 1;
-#line 134 "EntryMultiCompletion.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _vala_assert (_tmp0_, "delimiter == null || delimiter.length == 1");
-#line 15 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp3_ = g_strdup (delimiter);
-#line 15 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (self->priv->delimiter);
-#line 15 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- self->priv->delimiter = _tmp3_;
-#line 17 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp4_ = entry_multi_completion_create_completion_store (completion_list);
-#line 17 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp5_ = _tmp4_;
-#line 17 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_entry_completion_set_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_tree_model_get_type (), GtkTreeModel));
-#line 17 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_object_unref0 (_tmp5_);
-#line 18 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_entry_completion_set_text_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion), 0);
-#line 19 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_entry_completion_set_match_func (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion), _entry_multi_completion_match_func_gtk_entry_completion_match_func, g_object_ref (self), g_object_unref);
-#line 13 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return self;
-#line 158 "EntryMultiCompletion.c"
-}
-
-
-EntryMultiCompletion*
-entry_multi_completion_new (GeeCollection* completion_list,
- const gchar* delimiter)
-{
-#line 13 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return entry_multi_completion_construct (TYPE_ENTRY_MULTI_COMPLETION, completion_list, delimiter);
-#line 168 "EntryMultiCompletion.c"
-}
-
-
-static GtkListStore*
-entry_multi_completion_create_completion_store (GeeCollection* completion_list)
-{
- GtkListStore* result = NULL;
- GtkListStore* completion_store = NULL;
- GtkListStore* _tmp0_;
- GtkTreeIter store_iter = {0};
- GeeIterator* completion_iter = NULL;
- GeeIterator* _tmp1_;
-#line 22 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (completion_list), NULL);
-#line 23 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp0_ = gtk_list_store_new (1, G_TYPE_STRING, -1);
-#line 23 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- completion_store = _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (completion_list, GEE_TYPE_ITERABLE, GeeIterable));
-#line 25 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- completion_iter = _tmp1_;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- while (TRUE) {
-#line 193 "EntryMultiCompletion.c"
- GeeIterator* _tmp2_;
- GtkListStore* _tmp3_;
- GtkTreeIter _tmp4_ = {0};
- GtkListStore* _tmp5_;
- GtkTreeIter _tmp6_;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- gchar* _tmp9_;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp2_ = completion_iter;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 26 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- break;
-#line 208 "EntryMultiCompletion.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp3_ = completion_store;
-#line 27 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_list_store_append (_tmp3_, &_tmp4_);
-#line 27 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- store_iter = _tmp4_;
-#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp5_ = completion_store;
-#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp6_ = store_iter;
-#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp7_ = completion_iter;
-#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp9_ = (gchar*) _tmp8_;
-#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_list_store_set (_tmp5_, &_tmp6_, 0, _tmp9_, -1, -1);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (_tmp9_);
-#line 230 "EntryMultiCompletion.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- result = completion_store;
-#line 31 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_object_unref0 (completion_iter);
-#line 31 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 238 "EntryMultiCompletion.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 35 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return self ? g_object_ref (self) : NULL;
-#line 247 "EntryMultiCompletion.c"
-}
-
-
-static gchar*
-string_strip (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strstrip (_tmp1_);
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 272 "EntryMultiCompletion.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 292 "EntryMultiCompletion.c"
-}
-
-
-static gint
-string_last_index_of_char (const gchar* self,
- gunichar c,
- gint start_index)
-{
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1055 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_utf8_strrchr (((gchar*) self) + start_index, (gssize) -1, c);
-#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ != NULL) {
-#line 315 "EntryMultiCompletion.c"
- gchar* _tmp2_;
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _result_;
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) (_tmp2_ - ((gchar*) self));
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 323 "EntryMultiCompletion.c"
- } else {
-#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = -1;
-#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 329 "EntryMultiCompletion.c"
- }
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 348 "EntryMultiCompletion.c"
-}
-
-
-static gboolean
-entry_multi_completion_match_func (EntryMultiCompletion* self,
- GtkEntryCompletion* completion,
- const gchar* key,
- GtkTreeIter* iter)
-{
- gboolean result = FALSE;
- GtkTreeModel* model = NULL;
- GtkTreeModel* _tmp0_;
- GtkTreeModel* _tmp1_;
- gchar* possible_match = NULL;
- GtkTreeModel* _tmp2_;
- GtkTreeIter _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* normed_key = NULL;
- gchar* _tmp8_;
- const gchar* _tmp9_;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (IS_ENTRY_MULTI_COMPLETION (self), FALSE);
-#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (GTK_IS_ENTRY_COMPLETION (completion), FALSE);
-#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (key != NULL, FALSE);
-#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (iter != NULL, FALSE);
-#line 35 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp0_ = gtk_entry_completion_get_model (completion);
-#line 35 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 35 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- model = _tmp1_;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp2_ = model;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp3_ = *iter;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_tree_model_get (_tmp2_, &_tmp3_, 0, &possible_match, -1);
-#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp4_ = possible_match;
-#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp5_ = g_utf8_casefold (_tmp4_, (gssize) -1);
-#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp6_ = _tmp5_;
-#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp7_ = g_utf8_normalize (_tmp6_, (gssize) -1, G_NORMALIZE_ALL_COMPOSE);
-#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (possible_match);
-#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- possible_match = _tmp7_;
-#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (_tmp6_);
-#line 44 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp8_ = g_utf8_normalize (key, (gssize) -1, G_NORMALIZE_ALL_COMPOSE);
-#line 44 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- normed_key = _tmp8_;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp9_ = self->priv->delimiter;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (_tmp9_ == NULL) {
-#line 414 "EntryMultiCompletion.c"
- const gchar* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gboolean _tmp14_;
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp10_ = possible_match;
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp11_ = normed_key;
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp12_ = string_strip (_tmp11_);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp13_ = _tmp12_;
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp14_ = g_str_has_prefix (_tmp10_, _tmp13_);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (_tmp13_);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- result = _tmp14_;
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (normed_key);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (possible_match);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_object_unref0 (model);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 442 "EntryMultiCompletion.c"
- } else {
- const gchar* _tmp15_;
- const gchar* _tmp16_;
- gchar* last_part = NULL;
- const gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- const gchar* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- const gchar* _tmp32_;
- const gchar* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- gboolean _tmp36_;
-#line 49 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp15_ = normed_key;
-#line 49 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp16_ = self->priv->delimiter;
-#line 49 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (string_contains (_tmp15_, _tmp16_)) {
-#line 467 "EntryMultiCompletion.c"
- gint offset = 0;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
- const gchar* _tmp19_;
- gint position = 0;
- GtkWidget* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
-#line 51 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp17_ = normed_key;
-#line 51 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp18_ = normed_key;
-#line 51 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp19_ = self->priv->delimiter;
-#line 51 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- offset = g_utf8_strlen (_tmp17_, (gssize) string_last_index_of_char (_tmp18_, (gunichar) string_get (_tmp19_, (glong) 0), 0));
-#line 52 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp20_ = gtk_entry_completion_get_entry (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion));
-#line 52 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- position = gtk_editable_get_position (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_entry_get_type (), GtkEntry), gtk_editable_get_type (), GtkEditable));
-#line 53 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp21_ = position;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp22_ = offset;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (_tmp21_ <= _tmp22_) {
-#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- result = FALSE;
-#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (normed_key);
-#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (possible_match);
-#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_object_unref0 (model);
-#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 504 "EntryMultiCompletion.c"
- }
- }
-#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp23_ = normed_key;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp24_ = string_strip (_tmp23_);
-#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp25_ = _tmp24_;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp26_ = self->priv->delimiter;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp27_ = entry_multi_completion_get_last_part (_tmp25_, _tmp26_);
-#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp28_ = _tmp27_;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (_tmp25_);
-#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- last_part = _tmp28_;
-#line 59 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp29_ = last_part;
-#line 59 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp30_ = strlen (_tmp29_);
-#line 59 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp31_ = _tmp30_;
-#line 59 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (_tmp31_ == 0) {
-#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- result = FALSE;
-#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (last_part);
-#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (normed_key);
-#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (possible_match);
-#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_object_unref0 (model);
-#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 543 "EntryMultiCompletion.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp32_ = possible_match;
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp33_ = last_part;
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp34_ = string_strip (_tmp33_);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp35_ = _tmp34_;
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp36_ = g_str_has_prefix (_tmp32_, _tmp35_);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (_tmp35_);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- result = _tmp36_;
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (last_part);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (normed_key);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (possible_match);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_object_unref0 (model);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 569 "EntryMultiCompletion.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (normed_key);
-#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (possible_match);
-#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_object_unref0 (model);
-#line 577 "EntryMultiCompletion.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 601 "EntryMultiCompletion.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 610 "EntryMultiCompletion.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 631 "EntryMultiCompletion.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 635 "EntryMultiCompletion.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 641 "EntryMultiCompletion.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 651 "EntryMultiCompletion.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 655 "EntryMultiCompletion.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 663 "EntryMultiCompletion.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 670 "EntryMultiCompletion.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 674 "EntryMultiCompletion.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 680 "EntryMultiCompletion.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 692 "EntryMultiCompletion.c"
-}
-
-
-static gboolean
-entry_multi_completion_real_match_selected (GtkEntryCompletion* base,
- GtkTreeModel* model,
- GtkTreeIter* iter)
-{
- EntryMultiCompletion * self;
- gboolean result = FALSE;
- gchar* match = NULL;
- GtkTreeIter _tmp0_;
- GtkEntry* entry = NULL;
- GtkWidget* _tmp1_;
- GtkEntry* _tmp2_;
- gchar* old_text = NULL;
- GtkEntry* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- const gchar* _tmp20_ = NULL;
- const gchar* _tmp21_;
- gchar* new_text = NULL;
- const gchar* _tmp22_;
- const gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- GtkEntry* _tmp31_;
- GtkEntry* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
-#line 66 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion);
-#line 66 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (GTK_IS_TREE_MODEL (model), FALSE);
-#line 66 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (iter != NULL, FALSE);
-#line 68 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp0_ = *iter;
-#line 68 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_tree_model_get (model, &_tmp0_, 0, &match, -1);
-#line 70 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp1_ = gtk_entry_completion_get_entry (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion));
-#line 70 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_entry_get_type (), GtkEntry));
-#line 70 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- entry = _tmp2_;
-#line 72 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp3_ = entry;
-#line 72 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp4_ = gtk_entry_get_text (_tmp3_);
-#line 72 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp5_ = g_utf8_normalize (_tmp4_, (gssize) -1, G_NORMALIZE_ALL_COMPOSE);
-#line 72 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- old_text = _tmp5_;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp6_ = old_text;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp7_ = strlen (_tmp6_);
-#line 73 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp8_ = _tmp7_;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (_tmp8_ > 0) {
-#line 763 "EntryMultiCompletion.c"
- const gchar* _tmp9_;
- const gchar* _tmp10_;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp9_ = old_text;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp10_ = self->priv->delimiter;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (string_contains (_tmp9_, _tmp10_)) {
-#line 772 "EntryMultiCompletion.c"
- const gchar* _tmp11_ = NULL;
- const gchar* _tmp12_;
- const gchar* _tmp13_;
- const gchar* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp12_ = self->priv->delimiter;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (g_strcmp0 (_tmp12_, " ") != 0) {
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp11_ = " ";
-#line 787 "EntryMultiCompletion.c"
- } else {
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp11_ = "";
-#line 791 "EntryMultiCompletion.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp13_ = old_text;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp14_ = old_text;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp15_ = self->priv->delimiter;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp16_ = string_substring (_tmp13_, (glong) 0, (glong) (string_last_index_of_char (_tmp14_, (gunichar) string_get (_tmp15_, (glong) 0), 0) + 1));
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp17_ = _tmp16_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp18_ = g_strconcat (_tmp17_, _tmp11_, NULL);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (old_text);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- old_text = _tmp18_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (_tmp17_);
-#line 811 "EntryMultiCompletion.c"
- } else {
- gchar* _tmp19_;
-#line 77 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp19_ = g_strdup ("");
-#line 77 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (old_text);
-#line 77 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- old_text = _tmp19_;
-#line 820 "EntryMultiCompletion.c"
- }
- }
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp21_ = self->priv->delimiter;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (g_strcmp0 (_tmp21_, " ") != 0) {
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp20_ = " ";
-#line 829 "EntryMultiCompletion.c"
- } else {
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp20_ = "";
-#line 833 "EntryMultiCompletion.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp22_ = old_text;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp23_ = match;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp24_ = g_strconcat (_tmp22_, _tmp23_, NULL);
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp25_ = _tmp24_;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp26_ = self->priv->delimiter;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp27_ = g_strconcat (_tmp25_, _tmp26_, NULL);
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp28_ = _tmp27_;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp29_ = g_strconcat (_tmp28_, _tmp20_, NULL);
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp30_ = _tmp29_;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (_tmp28_);
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (_tmp25_);
-#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- new_text = _tmp30_;
-#line 81 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp31_ = entry;
-#line 81 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_entry_set_text (_tmp31_, new_text);
-#line 82 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp32_ = entry;
-#line 82 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp33_ = strlen (new_text);
-#line 82 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp34_ = _tmp33_;
-#line 82 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- gtk_editable_set_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_editable_get_type (), GtkEditable), (gint) _tmp34_);
-#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- result = TRUE;
-#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (new_text);
-#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (old_text);
-#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_object_unref0 (entry);
-#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (match);
-#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 883 "EntryMultiCompletion.c"
-}
-
-
-static gchar*
-entry_multi_completion_get_last_part (const gchar* s,
- const gchar* delimiter)
-{
- gchar* result = NULL;
- gchar** split = NULL;
- gchar** _tmp0_;
- gchar** _tmp1_;
- gint split_length1;
- gint _split_size_;
- gboolean _tmp2_ = FALSE;
- gchar** _tmp3_;
- gint _tmp3__length1;
-#line 88 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (s != NULL, NULL);
-#line 88 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_return_val_if_fail (delimiter != NULL, NULL);
-#line 89 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp1_ = _tmp0_ = g_strsplit (s, delimiter, 0);
-#line 89 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- split = _tmp1_;
-#line 89 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- split_length1 = _vala_array_length (_tmp0_);
-#line 89 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _split_size_ = split_length1;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp3_ = split;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp3__length1 = split_length1;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (_tmp3_ != NULL) {
-#line 918 "EntryMultiCompletion.c"
- gchar** _tmp4_;
- gint _tmp4__length1;
- const gchar* _tmp5_;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp4_ = split;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp4__length1 = split_length1;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp5_ = _tmp4_[0];
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp2_ = _tmp5_ != NULL;
-#line 930 "EntryMultiCompletion.c"
- } else {
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp2_ = FALSE;
-#line 934 "EntryMultiCompletion.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- if (_tmp2_) {
-#line 938 "EntryMultiCompletion.c"
- gchar** _tmp6_;
- gint _tmp6__length1;
- gchar** _tmp7_;
- gint _tmp7__length1;
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp6_ = split;
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp6__length1 = split_length1;
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp7_ = split;
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp7__length1 = split_length1;
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp8_ = _tmp6_[_tmp7__length1 - 1];
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- result = _tmp9_;
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL);
-#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 963 "EntryMultiCompletion.c"
- } else {
- gchar* _tmp10_;
-#line 94 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _tmp10_ = g_strdup ("");
-#line 94 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- result = _tmp10_;
-#line 94 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- return result;
-#line 974 "EntryMultiCompletion.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL);
-#line 978 "EntryMultiCompletion.c"
-}
-
-
-static void
-entry_multi_completion_class_init (EntryMultiCompletionClass * klass)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- entry_multi_completion_parent_class = g_type_class_peek_parent (klass);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- g_type_class_add_private (klass, sizeof (EntryMultiCompletionPrivate));
-#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- ((GtkEntryCompletionClass *) klass)->match_selected = (gboolean (*) (GtkEntryCompletion *, GtkTreeModel*, GtkTreeIter*)) entry_multi_completion_real_match_selected;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- G_OBJECT_CLASS (klass)->finalize = entry_multi_completion_finalize;
-#line 993 "EntryMultiCompletion.c"
-}
-
-
-static void
-entry_multi_completion_instance_init (EntryMultiCompletion * self)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- self->priv = ENTRY_MULTI_COMPLETION_GET_PRIVATE (self);
-#line 1002 "EntryMultiCompletion.c"
-}
-
-
-static void
-entry_multi_completion_finalize (GObject * obj)
-{
- EntryMultiCompletion * self;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion);
-#line 11 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- _g_free0 (self->priv->delimiter);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala"
- G_OBJECT_CLASS (entry_multi_completion_parent_class)->finalize (obj);
-#line 1016 "EntryMultiCompletion.c"
-}
-
-
-GType
-entry_multi_completion_get_type (void)
-{
- static volatile gsize entry_multi_completion_type_id__volatile = 0;
- if (g_once_init_enter (&entry_multi_completion_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EntryMultiCompletionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) entry_multi_completion_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EntryMultiCompletion), 0, (GInstanceInitFunc) entry_multi_completion_instance_init, NULL };
- GType entry_multi_completion_type_id;
- entry_multi_completion_type_id = g_type_register_static (gtk_entry_completion_get_type (), "EntryMultiCompletion", &g_define_type_info, 0);
- g_once_init_leave (&entry_multi_completion_type_id__volatile, entry_multi_completion_type_id);
- }
- return entry_multi_completion_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/dialogs/ExportDialog.c b/src/dialogs/ExportDialog.c
deleted file mode 100644
index f20dd78..0000000
--- a/src/dialogs/ExportDialog.c
+++ /dev/null
@@ -1,2084 +0,0 @@
-/* ExportDialog.c generated by valac 0.40.4, the Vala compiler
- * generated from ExportDialog.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-
-
-#define TYPE_EXPORT_DIALOG (export_dialog_get_type ())
-#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog))
-#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass))
-#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG))
-#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG))
-#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass))
-
-typedef struct _ExportDialog ExportDialog;
-typedef struct _ExportDialogClass ExportDialogClass;
-typedef struct _ExportDialogPrivate ExportDialogPrivate;
-enum {
- EXPORT_DIALOG_0_PROPERTY,
- EXPORT_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* export_dialog_properties[EXPORT_DIALOG_NUM_PROPERTIES];
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-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 _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _ExportDialog {
- GtkDialog parent_instance;
- ExportDialogPrivate * priv;
-};
-
-struct _ExportDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _ExportDialogPrivate {
- GtkGrid* table;
- GtkComboBoxText* quality_combo;
- GtkComboBoxText* constraint_combo;
- GtkComboBoxText* format_combo;
- GtkSwitch* export_metadata;
- GeeArrayList* format_options;
- GtkEntry* pixels_entry;
- GtkWidget* ok_button;
- gboolean in_insert;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-
-static gpointer export_dialog_parent_class = NULL;
-static ScaleConstraint export_dialog_current_constraint;
-static ScaleConstraint export_dialog_current_constraint = SCALE_CONSTRAINT_ORIGINAL;
-static ExportFormatParameters export_dialog_current_parameters;
-static ExportFormatParameters export_dialog_current_parameters = {0};
-static gint export_dialog_current_scale;
-static gint export_dialog_current_scale = 0;
-
-GType export_dialog_get_type (void) G_GNUC_CONST;
-#define EXPORT_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPORT_DIALOG, ExportDialogPrivate))
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-void export_format_parameters_current (ExportFormatParameters* result);
-#define EXPORT_DIALOG_DEFAULT_SCALE 1200
-#define EXPORT_DIALOG_NUM_SPECIAL_FORMATS 2
-#define EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL _ ("Unmodified")
-#define EXPORT_DIALOG_CURRENT_FORMAT_LABEL _ ("Current")
-ExportDialog* export_dialog_new (const gchar* title);
-ExportDialog* export_dialog_construct (GType object_type,
- const gchar* title);
-gint resources_use_header_bar (void);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-ExportFormatMode configuration_facade_get_export_export_format_mode (ConfigurationFacade* self);
-PhotoFileFormat configuration_facade_get_export_photo_file_format (ConfigurationFacade* self);
-JpegQuality configuration_facade_get_export_quality (ConfigurationFacade* self);
-gboolean configuration_facade_get_export_export_metadata (ConfigurationFacade* self);
-ScaleConstraint configuration_facade_get_export_constraint (ConfigurationFacade* self);
-gint configuration_facade_get_export_scale (ConfigurationFacade* self);
-gchar* jpeg_quality_to_string (JpegQuality self);
-gchar* scale_constraint_to_string (ScaleConstraint self);
-static void export_dialog_format_add_option (ExportDialog* self,
- const gchar* format_name);
-PhotoFileFormat* photo_file_format_get_writeable (int* result_length1);
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-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_user_visible_name (PhotoFileFormatProperties* self);
-static void export_dialog_on_constraint_changed (ExportDialog* self);
-static void _export_dialog_on_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void export_dialog_on_format_changed (ExportDialog* self);
-static void _export_dialog_on_format_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void export_dialog_on_pixels_changed (ExportDialog* self);
-static void _export_dialog_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
-static void export_dialog_on_pixels_insert_text (ExportDialog* self,
- const gchar* text,
- gint length,
- gint* position);
-static void _export_dialog_on_pixels_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self);
-static void export_dialog_on_activate (ExportDialog* self);
-static void _export_dialog_on_activate_gtk_entry_activate (GtkEntry* _sender,
- gpointer self);
-static void export_dialog_add_label (ExportDialog* self,
- const gchar* text,
- gint x,
- gint y,
- GtkWidget* widget);
-static void export_dialog_add_control (ExportDialog* self,
- GtkWidget* widget,
- gint x,
- gint y);
-#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
-#define RESOURCES_OK_LABEL _ ("_OK")
-static void export_dialog_format_set_active_text (ExportDialog* self,
- const gchar* text);
-static PhotoFileFormat export_dialog_get_specified_format (ExportDialog* self);
-static gchar* export_dialog_get_label_for_parameters (ExportDialog* self,
- ExportFormatParameters* params);
-gboolean export_dialog_execute (ExportDialog* self,
- gint* scale,
- ScaleConstraint* constraint,
- ExportFormatParameters* parameters);
-gboolean photo_file_format_can_write (PhotoFileFormat self);
-PhotoFileFormat photo_file_format_get_system_default_format (void);
-void configuration_facade_set_export_export_format_mode (ConfigurationFacade* self,
- ExportFormatMode export_format_mode);
-void configuration_facade_set_export_photo_file_format (ConfigurationFacade* self,
- PhotoFileFormat photo_file_format);
-void configuration_facade_set_export_quality (ConfigurationFacade* self,
- JpegQuality quality);
-void configuration_facade_set_export_export_metadata (ConfigurationFacade* self,
- gboolean export_metadata);
-void configuration_facade_set_export_constraint (ConfigurationFacade* self,
- ScaleConstraint constraint);
-void configuration_facade_set_export_scale (ConfigurationFacade* self,
- gint scale);
-static void export_dialog_finalize (GObject * obj);
-
-const ScaleConstraint EXPORT_DIALOG_CONSTRAINT_ARRAY[4] = {SCALE_CONSTRAINT_ORIGINAL, SCALE_CONSTRAINT_DIMENSIONS, SCALE_CONSTRAINT_WIDTH, SCALE_CONSTRAINT_HEIGHT};
-const JpegQuality EXPORT_DIALOG_QUALITY_ARRAY[4] = {JPEG_QUALITY_LOW, JPEG_QUALITY_MEDIUM, JPEG_QUALITY_HIGH, JPEG_QUALITY_MAXIMUM};
-
-static void
-_export_dialog_on_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_on_constraint_changed ((ExportDialog*) self);
-#line 267 "ExportDialog.c"
-}
-
-
-static void
-_export_dialog_on_format_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_on_format_changed ((ExportDialog*) self);
-#line 277 "ExportDialog.c"
-}
-
-
-static void
-_export_dialog_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
-{
-#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_on_pixels_changed ((ExportDialog*) self);
-#line 287 "ExportDialog.c"
-}
-
-
-static void
-_export_dialog_on_pixels_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self)
-{
-#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_on_pixels_insert_text ((ExportDialog*) self, new_text, new_text_length, position);
-#line 300 "ExportDialog.c"
-}
-
-
-static void
-_export_dialog_on_activate_gtk_entry_activate (GtkEntry* _sender,
- gpointer self)
-{
-#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_on_activate ((ExportDialog*) self);
-#line 310 "ExportDialog.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return self ? g_object_ref (self) : NULL;
-#line 319 "ExportDialog.c"
-}
-
-
-ExportDialog*
-export_dialog_construct (GType object_type,
- const gchar* title)
-{
- ExportDialog * self = NULL;
- ConfigFacade* config = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- GtkComboBoxText* _tmp7_;
- gint ctr = 0;
- GtkComboBoxText* _tmp18_;
- GtkComboBoxText* _tmp28_;
- gint _tmp29_;
- PhotoFileFormat* _tmp30_;
- GtkEntry* _tmp36_;
- GtkEntry* _tmp37_;
- GtkEntry* _tmp38_;
- gint _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
- GtkComboBoxText* _tmp42_;
- GtkComboBoxText* _tmp43_;
- GtkEntry* _tmp44_;
- GtkEntry* _tmp45_;
- GtkEntry* _tmp46_;
- GtkComboBoxText* _tmp47_;
- GtkComboBoxText* _tmp48_;
- GtkComboBoxText* _tmp49_;
- GtkComboBoxText* _tmp50_;
- GtkComboBoxText* _tmp51_;
- GtkComboBoxText* _tmp52_;
- GtkEntry* _tmp53_;
- GtkEntry* _tmp54_;
- GtkSwitch* _tmp55_;
- GtkSwitch* _tmp56_;
- GtkSwitch* _tmp57_;
- GtkSwitch* _tmp58_;
- GtkSwitch* _tmp59_;
- GtkGrid* _tmp60_;
- GtkGrid* _tmp61_;
- GtkGrid* _tmp62_;
- GtkBox* _tmp63_;
- GtkGrid* _tmp64_;
- GtkWidget* _tmp65_;
- GtkWidget* _tmp66_;
- GtkWidget* _tmp67_;
- GtkWidget* _tmp68_;
- GtkWidget* _tmp69_;
- ScaleConstraint _tmp70_;
- GtkWidget* _tmp73_;
-#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_val_if_fail (title != NULL, NULL);
-#line 39 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self = (ExportDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 41 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), title);
-#line 42 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 45 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 45 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- config = _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = config;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.mode = configuration_facade_get_export_export_format_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 47 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = config;
-#line 47 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.specified_format = configuration_facade_get_export_photo_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 48 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = config;
-#line 48 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.quality = configuration_facade_get_export_quality (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 49 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = config;
-#line 49 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.export_metadata = configuration_facade_get_export_export_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 50 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = config;
-#line 50 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_constraint = configuration_facade_get_export_constraint (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 51 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = config;
-#line 51 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_scale = configuration_facade_get_export_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp7_);
-#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->quality_combo);
-#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->quality_combo = _tmp7_;
-#line 54 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = 0;
-#line 424 "ExportDialog.c"
- {
- JpegQuality* quality_collection = NULL;
- gint quality_collection_length1 = 0;
- gint _quality_collection_size_ = 0;
- gint quality_it = 0;
-#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- quality_collection = EXPORT_DIALOG_QUALITY_ARRAY;
-#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- quality_collection_length1 = G_N_ELEMENTS (EXPORT_DIALOG_QUALITY_ARRAY);
-#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- for (quality_it = 0; quality_it < G_N_ELEMENTS (EXPORT_DIALOG_QUALITY_ARRAY); quality_it = quality_it + 1) {
-#line 436 "ExportDialog.c"
- JpegQuality quality = 0;
-#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- quality = quality_collection[quality_it];
-#line 440 "ExportDialog.c"
- {
- GtkComboBoxText* _tmp8_;
- JpegQuality _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- JpegQuality _tmp12_;
- ExportFormatParameters _tmp13_;
- JpegQuality _tmp14_;
- gint _tmp17_;
-#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = self->priv->quality_combo;
-#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = quality;
-#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = jpeg_quality_to_string (_tmp9_);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = _tmp10_;
-#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_text_append_text (_tmp8_, _tmp11_);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp11_);
-#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = quality;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = export_dialog_current_parameters;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = _tmp13_.quality;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp12_ == _tmp14_) {
-#line 470 "ExportDialog.c"
- GtkComboBoxText* _tmp15_;
- gint _tmp16_;
-#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = self->priv->quality_combo;
-#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = ctr;
-#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox), _tmp16_);
-#line 479 "ExportDialog.c"
- }
-#line 59 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = ctr;
-#line 59 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = _tmp17_ + 1;
-#line 485 "ExportDialog.c"
- }
- }
- }
-#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp18_);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->constraint_combo);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->constraint_combo = _tmp18_;
-#line 63 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = 0;
-#line 499 "ExportDialog.c"
- {
- ScaleConstraint* constraint_collection = NULL;
- gint constraint_collection_length1 = 0;
- gint _constraint_collection_size_ = 0;
- gint constraint_it = 0;
-#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- constraint_collection = EXPORT_DIALOG_CONSTRAINT_ARRAY;
-#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- constraint_collection_length1 = G_N_ELEMENTS (EXPORT_DIALOG_CONSTRAINT_ARRAY);
-#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- for (constraint_it = 0; constraint_it < G_N_ELEMENTS (EXPORT_DIALOG_CONSTRAINT_ARRAY); constraint_it = constraint_it + 1) {
-#line 511 "ExportDialog.c"
- ScaleConstraint constraint = 0;
-#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- constraint = constraint_collection[constraint_it];
-#line 515 "ExportDialog.c"
- {
- GtkComboBoxText* _tmp19_;
- ScaleConstraint _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- ScaleConstraint _tmp23_;
- ScaleConstraint _tmp24_;
- gint _tmp27_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp19_ = self->priv->constraint_combo;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp20_ = constraint;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp21_ = scale_constraint_to_string (_tmp20_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp22_ = _tmp21_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_text_append_text (_tmp19_, _tmp22_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp22_);
-#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp23_ = constraint;
-#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp24_ = export_dialog_current_constraint;
-#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp23_ == _tmp24_) {
-#line 542 "ExportDialog.c"
- GtkComboBoxText* _tmp25_;
- gint _tmp26_;
-#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp25_ = self->priv->constraint_combo;
-#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp26_ = ctr;
-#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_combo_box_get_type (), GtkComboBox), _tmp26_);
-#line 551 "ExportDialog.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp27_ = ctr;
-#line 68 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = _tmp27_ + 1;
-#line 557 "ExportDialog.c"
- }
- }
- }
-#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp28_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp28_);
-#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->format_combo);
-#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->format_combo = _tmp28_;
-#line 72 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_format_add_option (self, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL);
-#line 73 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_format_add_option (self, EXPORT_DIALOG_CURRENT_FORMAT_LABEL);
-#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp30_ = photo_file_format_get_writeable (&_tmp29_);
-#line 575 "ExportDialog.c"
- {
- PhotoFileFormat* format_collection = NULL;
- gint format_collection_length1 = 0;
- gint _format_collection_size_ = 0;
- gint format_it = 0;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- format_collection = _tmp30_;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- format_collection_length1 = _tmp29_;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- for (format_it = 0; format_it < _tmp29_; format_it = format_it + 1) {
-#line 587 "ExportDialog.c"
- PhotoFileFormat format = 0;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- format = format_collection[format_it];
-#line 591 "ExportDialog.c"
- {
- PhotoFileFormat _tmp31_;
- PhotoFileFormatProperties* _tmp32_;
- PhotoFileFormatProperties* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp31_ = format;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp32_ = photo_file_format_get_properties (_tmp31_);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp33_ = _tmp32_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp34_ = photo_file_format_properties_get_user_visible_name (_tmp33_);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp35_ = _tmp34_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_format_add_option (self, _tmp35_);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp35_);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _photo_file_format_properties_unref0 (_tmp33_);
-#line 614 "ExportDialog.c"
- }
- }
-#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- format_collection = (g_free (format_collection), NULL);
-#line 619 "ExportDialog.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp36_ = (GtkEntry*) gtk_entry_new ();
-#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp36_);
-#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->pixels_entry);
-#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->pixels_entry = _tmp36_;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp37_ = self->priv->pixels_entry;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_entry_set_max_length (_tmp37_, 6);
-#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp38_ = self->priv->pixels_entry;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp39_ = export_dialog_current_scale;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp40_ = g_strdup_printf ("%d", _tmp39_);
-#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp41_ = _tmp40_;
-#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_entry_set_text (_tmp38_, _tmp41_);
-#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp41_);
-#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp42_ = self->priv->constraint_combo;
-#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _export_dialog_on_constraint_changed_gtk_combo_box_changed, self, 0);
-#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp43_ = self->priv->format_combo;
-#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _export_dialog_on_format_changed_gtk_combo_box_changed, self, 0);
-#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp44_ = self->priv->pixels_entry;
-#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _export_dialog_on_pixels_changed_gtk_editable_changed, self, 0);
-#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp45_ = self->priv->pixels_entry;
-#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _export_dialog_on_pixels_insert_text_gtk_editable_insert_text, self, 0);
-#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp46_ = self->priv->pixels_entry;
-#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (_tmp46_, "activate", (GCallback) _export_dialog_on_activate_gtk_entry_activate, self, 0);
-#line 90 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp47_ = self->priv->format_combo;
-#line 90 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("_Format:"), 0, 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_widget_get_type (), GtkWidget));
-#line 91 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp48_ = self->priv->format_combo;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_widget_get_type (), GtkWidget), 1, 0);
-#line 93 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp49_ = self->priv->quality_combo;
-#line 93 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("_Quality:"), 0, 1, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget));
-#line 94 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp50_ = self->priv->quality_combo;
-#line 94 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget), 1, 1);
-#line 96 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp51_ = self->priv->constraint_combo;
-#line 96 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("_Scaling constraint:"), 0, 2, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_widget_get_type (), GtkWidget));
-#line 97 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp52_ = self->priv->constraint_combo;
-#line 97 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), 1, 2);
-#line 99 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp53_ = self->priv->pixels_entry;
-#line 99 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("_Pixels:"), 0, 3, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_widget_get_type (), GtkWidget));
-#line 100 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp54_ = self->priv->pixels_entry;
-#line 100 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget), 1, 3);
-#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp55_ = (GtkSwitch*) gtk_switch_new ();
-#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp55_);
-#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->export_metadata);
-#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->export_metadata = _tmp55_;
-#line 103 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp56_ = self->priv->export_metadata;
-#line 103 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("Export _metadata:"), 0, 4, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget));
-#line 104 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp57_ = self->priv->export_metadata;
-#line 104 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget), 1, 4);
-#line 105 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp58_ = self->priv->export_metadata;
-#line 105 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_switch_set_active (_tmp58_, TRUE);
-#line 106 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp59_ = self->priv->export_metadata;
-#line 106 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 108 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp60_ = self->priv->table;
-#line 108 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_grid_set_row_spacing (_tmp60_, (guint) 6);
-#line 109 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp61_ = self->priv->table;
-#line 109 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_grid_set_column_spacing (_tmp61_, (guint) 12);
-#line 110 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp62_ = self->priv->table;
-#line 110 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_container_get_type (), GtkContainer), (guint) 18);
-#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp63_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp64_ = self->priv->table;
-#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget));
-#line 115 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_CANCEL_LABEL, (gint) GTK_RESPONSE_CANCEL);
-#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp65_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_OK_LABEL, (gint) GTK_RESPONSE_OK);
-#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp66_ = _g_object_ref0 (_tmp65_);
-#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->ok_button);
-#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->ok_button = _tmp66_;
-#line 117 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK);
-#line 119 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp67_ = self->priv->ok_button;
-#line 119 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_can_default (_tmp67_, TRUE);
-#line 120 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp68_ = self->priv->ok_button;
-#line 120 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_set (_tmp68_, "has-default", TRUE, NULL);
-#line 121 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp69_ = self->priv->ok_button;
-#line 121 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp69_);
-#line 123 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp70_ = export_dialog_current_constraint;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp70_ == SCALE_CONSTRAINT_ORIGINAL) {
-#line 767 "ExportDialog.c"
- GtkEntry* _tmp71_;
- GtkComboBoxText* _tmp72_;
-#line 124 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp71_ = self->priv->pixels_entry;
-#line 124 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 125 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp72_ = self->priv->quality_combo;
-#line 125 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 778 "ExportDialog.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp73_ = self->priv->ok_button;
-#line 128 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_grab_focus (_tmp73_);
-#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (config);
-#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return self;
-#line 788 "ExportDialog.c"
-}
-
-
-ExportDialog*
-export_dialog_new (const gchar* title)
-{
-#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return export_dialog_construct (TYPE_EXPORT_DIALOG, title);
-#line 797 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_format_add_option (ExportDialog* self,
- const gchar* format_name)
-{
- GeeArrayList* _tmp0_;
- GtkComboBoxText* _tmp1_;
-#line 131 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 131 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (format_name != NULL);
-#line 132 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = self->priv->format_options;
-#line 132 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), format_name);
-#line 133 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = self->priv->format_combo;
-#line 133 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_text_append_text (_tmp1_, format_name);
-#line 819 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_format_set_active_text (ExportDialog* self,
- const gchar* text)
-{
- gint selection_ticker = 0;
-#line 136 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 136 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (text != NULL);
-#line 137 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- selection_ticker = 0;
-#line 834 "ExportDialog.c"
- {
- GeeArrayList* _current_text_list = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _current_text_size = 0;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _current_text_index = 0;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = self->priv->format_options;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _current_text_list = _tmp1_;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = _current_text_list;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = _tmp3_;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _current_text_size = _tmp4_;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _current_text_index = -1;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- while (TRUE) {
-#line 862 "ExportDialog.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gchar* current_text = NULL;
- GeeArrayList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- const gchar* _tmp11_;
- gint _tmp14_;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = _current_text_index;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _current_text_index = _tmp5_ + 1;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = _current_text_index;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = _current_text_size;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- break;
-#line 884 "ExportDialog.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = _current_text_list;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = _current_text_index;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- current_text = (gchar*) _tmp10_;
-#line 140 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = current_text;
-#line 140 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (g_strcmp0 (_tmp11_, text) == 0) {
-#line 898 "ExportDialog.c"
- GtkComboBoxText* _tmp12_;
- gint _tmp13_;
-#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = self->priv->format_combo;
-#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = selection_ticker;
-#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_combo_box_get_type (), GtkComboBox), _tmp13_);
-#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (current_text);
-#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (_current_text_list);
-#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return;
-#line 913 "ExportDialog.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = selection_ticker;
-#line 144 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- selection_ticker = _tmp14_ + 1;
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (current_text);
-#line 921 "ExportDialog.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (_current_text_list);
-#line 925 "ExportDialog.c"
- }
-#line 147 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_error ("ExportDialog.vala:147: format_set_active_text: text '%s' isn't in comb" \
-"o box", text);
-#line 929 "ExportDialog.c"
-}
-
-
-static PhotoFileFormat
-export_dialog_get_specified_format (ExportDialog* self)
-{
- PhotoFileFormat result = 0;
- gint index = 0;
- GtkComboBoxText* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- PhotoFileFormat* writeable_formats = NULL;
- gint _tmp3_;
- PhotoFileFormat* _tmp4_;
- gint writeable_formats_length1;
- gint _writeable_formats_size_;
- gint _tmp5_;
- PhotoFileFormat _tmp6_;
-#line 150 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_val_if_fail (IS_EXPORT_DIALOG (self), 0);
-#line 151 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = self->priv->format_combo;
-#line 151 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- index = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
-#line 152 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = index;
-#line 152 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp1_ < EXPORT_DIALOG_NUM_SPECIAL_FORMATS) {
-#line 153 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- index = EXPORT_DIALOG_NUM_SPECIAL_FORMATS;
-#line 960 "ExportDialog.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = index;
-#line 155 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- index = _tmp2_ - EXPORT_DIALOG_NUM_SPECIAL_FORMATS;
-#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = photo_file_format_get_writeable (&_tmp3_);
-#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- writeable_formats = _tmp4_;
-#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- writeable_formats_length1 = _tmp3_;
-#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _writeable_formats_size_ = writeable_formats_length1;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = index;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = writeable_formats[_tmp5_];
-#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- result = _tmp6_;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- writeable_formats = (g_free (writeable_formats), NULL);
-#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return result;
-#line 984 "ExportDialog.c"
-}
-
-
-static gchar*
-export_dialog_get_label_for_parameters (ExportDialog* self,
- ExportFormatParameters* params)
-{
- gchar* result = NULL;
- ExportFormatParameters _tmp0_;
- ExportFormatMode _tmp1_;
-#line 160 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_val_if_fail (IS_EXPORT_DIALOG (self), NULL);
-#line 160 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_val_if_fail (params != NULL, NULL);
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = *params;
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = _tmp0_.mode;
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- switch (_tmp1_) {
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- case EXPORT_FORMAT_MODE_UNMODIFIED:
-#line 1007 "ExportDialog.c"
- {
- gchar* _tmp2_;
-#line 163 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = g_strdup (EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL);
-#line 163 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- result = _tmp2_;
-#line 163 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return result;
-#line 1016 "ExportDialog.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- case EXPORT_FORMAT_MODE_CURRENT:
-#line 1020 "ExportDialog.c"
- {
- gchar* _tmp3_;
-#line 166 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = g_strdup (EXPORT_DIALOG_CURRENT_FORMAT_LABEL);
-#line 166 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- result = _tmp3_;
-#line 166 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return result;
-#line 1029 "ExportDialog.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- case EXPORT_FORMAT_MODE_SPECIFIED:
-#line 1033 "ExportDialog.c"
- {
- ExportFormatParameters _tmp4_;
- PhotoFileFormat _tmp5_;
- PhotoFileFormatProperties* _tmp6_;
- PhotoFileFormatProperties* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = *params;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = _tmp4_.specified_format;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = photo_file_format_get_properties (_tmp5_);
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = _tmp6_;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = photo_file_format_properties_get_user_visible_name (_tmp7_);
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = _tmp8_;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _photo_file_format_properties_unref0 (_tmp7_);
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- result = _tmp9_;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return result;
-#line 1059 "ExportDialog.c"
- }
- default:
- {
-#line 172 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_error ("ExportDialog.vala:172: get_label_for_parameters: unrecognized export f" \
-"ormat mode");
-#line 1065 "ExportDialog.c"
- }
- }
-}
-
-
-gboolean
-export_dialog_execute (ExportDialog* self,
- gint* scale,
- ScaleConstraint* constraint,
- ExportFormatParameters* parameters)
-{
- gint _vala_scale = 0;
- ScaleConstraint _vala_constraint = 0;
- gboolean result = FALSE;
- ExportFormatParameters _tmp0_;
- ExportFormatMode _tmp1_;
- ExportFormatParameters _tmp4_;
- ExportFormatMode _tmp5_;
- ExportFormatParameters _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gboolean ok = FALSE;
- gboolean _tmp15_;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_val_if_fail (IS_EXPORT_DIALOG (self), FALSE);
-#line 179 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_val_if_fail (parameters != NULL, FALSE);
-#line 181 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 185 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = *parameters;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = _tmp0_.mode;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp1_ != EXPORT_FORMAT_MODE_LAST) {
-#line 1101 "ExportDialog.c"
- ScaleConstraint _tmp2_;
- GtkComboBoxText* _tmp3_;
-#line 186 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_constraint = SCALE_CONSTRAINT_ORIGINAL;
-#line 186 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = _vala_constraint;
-#line 186 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_constraint = _tmp2_;
-#line 187 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = self->priv->constraint_combo;
-#line 187 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 1114 "ExportDialog.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = *parameters;
-#line 190 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = _tmp4_.mode;
-#line 190 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp5_ == EXPORT_FORMAT_MODE_LAST) {
-#line 1122 "ExportDialog.c"
- ExportFormatParameters _tmp6_;
-#line 191 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = export_dialog_current_parameters;
-#line 191 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- *parameters = _tmp6_;
-#line 1128 "ExportDialog.c"
- } else {
- gboolean _tmp7_ = FALSE;
- ExportFormatParameters _tmp8_;
- ExportFormatMode _tmp9_;
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = *parameters;
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = _tmp8_.mode;
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp9_ == EXPORT_FORMAT_MODE_SPECIFIED) {
-#line 1139 "ExportDialog.c"
- ExportFormatParameters _tmp10_;
- PhotoFileFormat _tmp11_;
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = *parameters;
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = _tmp10_.specified_format;
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = !photo_file_format_can_write (_tmp11_);
-#line 1148 "ExportDialog.c"
- } else {
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = FALSE;
-#line 1152 "ExportDialog.c"
- }
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp7_) {
-#line 193 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).specified_format = photo_file_format_get_system_default_format ();
-#line 1158 "ExportDialog.c"
- }
- }
-#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = *parameters;
-#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = export_dialog_get_label_for_parameters (self, &_tmp12_);
-#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = _tmp13_;
-#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_format_set_active_text (self, _tmp14_);
-#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp14_);
-#line 196 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_on_format_changed (self);
-#line 198 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ok = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK);
-#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = ok;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp15_) {
-#line 1179 "ExportDialog.c"
- gint index = 0;
- GtkComboBoxText* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- ScaleConstraint _tmp19_;
- ScaleConstraint _tmp20_;
- GtkEntry* _tmp21_;
- const gchar* _tmp22_;
- ScaleConstraint _tmp23_;
- gint _tmp25_;
- gboolean _tmp26_ = FALSE;
- GtkSwitch* _tmp27_;
- gboolean _tmp28_;
- gboolean _tmp29_;
- GtkComboBoxText* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- gboolean _tmp36_;
- ConfigFacade* config = NULL;
- ConfigFacade* _tmp50_;
- ConfigFacade* _tmp51_;
- ExportFormatParameters _tmp52_;
- ExportFormatMode _tmp53_;
- ConfigFacade* _tmp54_;
- ExportFormatParameters _tmp55_;
- PhotoFileFormat _tmp56_;
- ConfigFacade* _tmp57_;
- ExportFormatParameters _tmp58_;
- JpegQuality _tmp59_;
- ConfigFacade* _tmp60_;
- ExportFormatParameters _tmp61_;
- gboolean _tmp62_;
- ConfigFacade* _tmp63_;
- ScaleConstraint _tmp64_;
- ConfigFacade* _tmp65_;
- gint _tmp66_;
-#line 200 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = self->priv->constraint_combo;
-#line 200 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- index = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox));
-#line 201 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = index;
-#line 201 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_assert (_tmp17_ >= 0, "index >= 0");
-#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = index;
-#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp19_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[_tmp18_];
-#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_constraint = _tmp19_;
-#line 203 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp20_ = _vala_constraint;
-#line 203 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_constraint = _tmp20_;
-#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp21_ = self->priv->pixels_entry;
-#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp22_ = gtk_entry_get_text (_tmp21_);
-#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_scale = atoi (_tmp22_);
-#line 206 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp23_ = _vala_constraint;
-#line 206 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp23_ != SCALE_CONSTRAINT_ORIGINAL) {
-#line 1244 "ExportDialog.c"
- gint _tmp24_;
-#line 207 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp24_ = _vala_scale;
-#line 207 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_assert (_tmp24_ > 0, "scale > 0");
-#line 1250 "ExportDialog.c"
- }
-#line 208 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp25_ = _vala_scale;
-#line 208 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_scale = _tmp25_;
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp27_ = self->priv->export_metadata;
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp28_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget));
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp29_ = _tmp28_;
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp29_) {
-#line 1264 "ExportDialog.c"
- GtkSwitch* _tmp30_;
- gboolean _tmp31_;
- gboolean _tmp32_;
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp30_ = self->priv->export_metadata;
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp31_ = gtk_switch_get_active (_tmp30_);
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp32_ = _tmp31_;
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp26_ = _tmp32_;
-#line 1276 "ExportDialog.c"
- } else {
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp26_ = FALSE;
-#line 1280 "ExportDialog.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).export_metadata = _tmp26_;
-#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp33_ = self->priv->format_combo;
-#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp34_ = gtk_combo_box_text_get_active_text (_tmp33_);
-#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp35_ = _tmp34_;
-#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp36_ = g_strcmp0 (_tmp35_, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL) == 0;
-#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp35_);
-#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp36_) {
-#line 1296 "ExportDialog.c"
- ExportFormatMode _tmp37_;
-#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_UNMODIFIED;
-#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp37_ = export_dialog_current_parameters.mode;
-#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).mode = _tmp37_;
-#line 1304 "ExportDialog.c"
- } else {
- GtkComboBoxText* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gboolean _tmp41_;
-#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp38_ = self->priv->format_combo;
-#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp39_ = gtk_combo_box_text_get_active_text (_tmp38_);
-#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp40_ = _tmp39_;
-#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp41_ = g_strcmp0 (_tmp40_, EXPORT_DIALOG_CURRENT_FORMAT_LABEL) == 0;
-#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp40_);
-#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp41_) {
-#line 1322 "ExportDialog.c"
- ExportFormatMode _tmp42_;
-#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_CURRENT;
-#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp42_ = export_dialog_current_parameters.mode;
-#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).mode = _tmp42_;
-#line 1330 "ExportDialog.c"
- } else {
- ExportFormatMode _tmp43_;
- PhotoFileFormat _tmp44_;
- ExportFormatParameters _tmp45_;
- PhotoFileFormat _tmp46_;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_SPECIFIED;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp43_ = export_dialog_current_parameters.mode;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).mode = _tmp43_;
-#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.specified_format = export_dialog_get_specified_format (self);
-#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp44_ = export_dialog_current_parameters.specified_format;
-#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).specified_format = _tmp44_;
-#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp45_ = export_dialog_current_parameters;
-#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp46_ = _tmp45_.specified_format;
-#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp46_ == PHOTO_FILE_FORMAT_JFIF) {
-#line 1354 "ExportDialog.c"
- GtkComboBoxText* _tmp47_;
- JpegQuality _tmp48_;
- JpegQuality _tmp49_;
-#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp47_ = self->priv->quality_combo;
-#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp48_ = EXPORT_DIALOG_QUALITY_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_combo_box_get_type (), GtkComboBox))];
-#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.quality = _tmp48_;
-#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp49_ = export_dialog_current_parameters.quality;
-#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).quality = _tmp49_;
-#line 1368 "ExportDialog.c"
- }
- }
- }
-#line 224 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp50_ = config_facade_get_instance ();
-#line 224 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- config = _tmp50_;
-#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp51_ = config;
-#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp52_ = export_dialog_current_parameters;
-#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp53_ = _tmp52_.mode;
-#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_export_format_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp53_);
-#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp54_ = config;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp55_ = export_dialog_current_parameters;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp56_ = _tmp55_.specified_format;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_photo_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp56_);
-#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp57_ = config;
-#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp58_ = export_dialog_current_parameters;
-#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp59_ = _tmp58_.quality;
-#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_quality (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp59_);
-#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp60_ = config;
-#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp61_ = export_dialog_current_parameters;
-#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp62_ = _tmp61_.export_metadata;
-#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_export_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp62_);
-#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp63_ = config;
-#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp64_ = export_dialog_current_constraint;
-#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_constraint (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp64_);
-#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp65_ = config;
-#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp66_ = export_dialog_current_scale;
-#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp66_);
-#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (config);
-#line 1422 "ExportDialog.c"
- } else {
-#line 232 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_scale = 0;
-#line 233 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_constraint = SCALE_CONSTRAINT_ORIGINAL;
-#line 1428 "ExportDialog.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- result = ok;
-#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (scale) {
-#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- *scale = _vala_scale;
-#line 1438 "ExportDialog.c"
- }
-#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (constraint) {
-#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- *constraint = _vala_constraint;
-#line 1444 "ExportDialog.c"
- }
-#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return result;
-#line 1448 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_add_label (ExportDialog* self,
- const gchar* text,
- gint x,
- gint y,
- GtkWidget* widget)
-{
- GtkLabel* new_label = NULL;
- GtkLabel* _tmp0_;
- GtkLabel* _tmp1_;
- GtkLabel* _tmp2_;
- GtkLabel* _tmp3_;
- GtkGrid* _tmp5_;
- GtkLabel* _tmp6_;
-#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (text != NULL);
-#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail ((widget == NULL) || GTK_IS_WIDGET (widget));
-#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = (GtkLabel*) gtk_label_new_with_mnemonic (text);
-#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp0_);
-#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- new_label = _tmp0_;
-#line 243 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = new_label;
-#line 243 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END);
-#line 244 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = new_label;
-#line 244 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 245 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = new_label;
-#line 245 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_label_set_use_underline (_tmp3_, TRUE);
-#line 247 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (widget != NULL) {
-#line 1492 "ExportDialog.c"
- GtkLabel* _tmp4_;
-#line 248 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = new_label;
-#line 248 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_label_set_mnemonic_widget (_tmp4_, widget);
-#line 1498 "ExportDialog.c"
- }
-#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = self->priv->table;
-#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = new_label;
-#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_grid_attach (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), x, y, 1, 1);
-#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (new_label);
-#line 1508 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_add_control (ExportDialog* self,
- GtkWidget* widget,
- gint x,
- gint y)
-{
- GtkGrid* _tmp0_;
-#line 253 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 253 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (GTK_IS_WIDGET (widget));
-#line 254 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_halign (widget, GTK_ALIGN_FILL);
-#line 255 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
-#line 256 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_hexpand (widget, TRUE);
-#line 257 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_vexpand (widget, TRUE);
-#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = self->priv->table;
-#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_grid_attach (_tmp0_, widget, x, y, 1, 1);
-#line 1535 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_on_constraint_changed (ExportDialog* self)
-{
- gboolean original = FALSE;
- GtkComboBoxText* _tmp0_;
- ScaleConstraint _tmp1_;
- gboolean jpeg = FALSE;
- GtkComboBoxText* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- PhotoFileFormatProperties* _tmp5_;
- PhotoFileFormatProperties* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gboolean _tmp9_;
- GtkEntry* _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_;
- GtkComboBoxText* _tmp15_;
- gboolean _tmp16_;
-#line 262 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = self->priv->constraint_combo;
-#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox))];
-#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- original = _tmp1_ == SCALE_CONSTRAINT_ORIGINAL;
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = self->priv->format_combo;
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = gtk_combo_box_text_get_active_text (_tmp2_);
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = _tmp3_;
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = photo_file_format_get_properties (PHOTO_FILE_FORMAT_JFIF);
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = _tmp5_;
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = photo_file_format_properties_get_user_visible_name (_tmp6_);
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = _tmp7_;
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = g_strcmp0 (_tmp4_, _tmp8_) == 0;
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp8_);
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _photo_file_format_properties_unref0 (_tmp6_);
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp4_);
-#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- jpeg = _tmp9_;
-#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = self->priv->pixels_entry;
-#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = original;
-#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), !_tmp11_);
-#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = original;
-#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!_tmp13_) {
-#line 1602 "ExportDialog.c"
- gboolean _tmp14_;
-#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = jpeg;
-#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = _tmp14_;
-#line 1608 "ExportDialog.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = FALSE;
-#line 1612 "ExportDialog.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = self->priv->quality_combo;
-#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), _tmp12_);
-#line 268 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = original;
-#line 268 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp16_) {
-#line 1622 "ExportDialog.c"
- GtkWidget* _tmp17_;
-#line 269 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = self->priv->ok_button;
-#line 269 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (_tmp17_, TRUE);
-#line 1628 "ExportDialog.c"
- } else {
-#line 271 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_on_pixels_changed (self);
-#line 1632 "ExportDialog.c"
- }
-}
-
-
-static void
-export_dialog_on_format_changed (ExportDialog* self)
-{
- gboolean original = FALSE;
- GtkComboBoxText* _tmp0_;
- ScaleConstraint _tmp1_;
- GtkComboBoxText* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gboolean _tmp5_;
-#line 274 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = self->priv->constraint_combo;
-#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox))];
-#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- original = _tmp1_ == SCALE_CONSTRAINT_ORIGINAL;
-#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = self->priv->format_combo;
-#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = gtk_combo_box_text_get_active_text (_tmp2_);
-#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = _tmp3_;
-#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = g_strcmp0 (_tmp4_, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL) == 0;
-#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp4_);
-#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp5_) {
-#line 1667 "ExportDialog.c"
- GtkComboBoxText* _tmp6_;
- GtkComboBoxText* _tmp7_;
- GtkComboBoxText* _tmp8_;
- GtkEntry* _tmp9_;
- GtkSwitch* _tmp10_;
- GtkSwitch* _tmp11_;
-#line 282 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = self->priv->constraint_combo;
-#line 282 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 283 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = self->priv->constraint_combo;
-#line 283 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 284 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = self->priv->quality_combo;
-#line 284 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 285 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = self->priv->pixels_entry;
-#line 285 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 286 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = self->priv->export_metadata;
-#line 286 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_switch_set_active (_tmp10_, FALSE);
-#line 287 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = self->priv->export_metadata;
-#line 287 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 1698 "ExportDialog.c"
- } else {
- GtkComboBoxText* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gboolean _tmp15_;
-#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = self->priv->format_combo;
-#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = gtk_combo_box_text_get_active_text (_tmp12_);
-#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = _tmp13_;
-#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = g_strcmp0 (_tmp14_, EXPORT_DIALOG_CURRENT_FORMAT_LABEL) == 0;
-#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp14_);
-#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp15_) {
-#line 1716 "ExportDialog.c"
- GtkComboBoxText* _tmp16_;
- GtkComboBoxText* _tmp17_;
- GtkEntry* _tmp18_;
- gboolean _tmp19_;
- GtkSwitch* _tmp20_;
-#line 295 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = self->priv->constraint_combo;
-#line 295 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 296 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = self->priv->quality_combo;
-#line 296 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = self->priv->pixels_entry;
-#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp19_ = original;
-#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), !_tmp19_);
-#line 298 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp20_ = self->priv->export_metadata;
-#line 298 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 1740 "ExportDialog.c"
- } else {
- GtkComboBoxText* _tmp21_;
- gboolean jpeg = FALSE;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_;
- GtkComboBoxText* _tmp25_;
- GtkSwitch* _tmp26_;
-#line 303 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp21_ = self->priv->constraint_combo;
-#line 303 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 304 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- jpeg = export_dialog_get_specified_format (self) == PHOTO_FILE_FORMAT_JFIF;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp23_ = original;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!_tmp23_) {
-#line 1758 "ExportDialog.c"
- gboolean _tmp24_;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp24_ = jpeg;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp22_ = _tmp24_;
-#line 1764 "ExportDialog.c"
- } else {
-#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp22_ = FALSE;
-#line 1768 "ExportDialog.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp25_ = self->priv->quality_combo;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), _tmp22_);
-#line 306 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp26_ = self->priv->export_metadata;
-#line 306 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 1778 "ExportDialog.c"
- }
- }
-}
-
-
-static void
-export_dialog_on_activate (ExportDialog* self)
-{
-#line 310 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 311 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_dialog_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK);
-#line 1791 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_on_pixels_changed (ExportDialog* self)
-{
- gboolean _tmp0_ = FALSE;
- GtkEntry* _tmp1_;
- GtkWidget* _tmp4_;
-#line 314 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = self->priv->pixels_entry;
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (((gint) gtk_entry_get_text_length (_tmp1_)) > 0) {
-#line 1807 "ExportDialog.c"
- GtkEntry* _tmp2_;
- const gchar* _tmp3_;
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = self->priv->pixels_entry;
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = gtk_entry_get_text (_tmp2_);
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = atoi (_tmp3_) > 0;
-#line 1816 "ExportDialog.c"
- } else {
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = FALSE;
-#line 1820 "ExportDialog.c"
- }
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = self->priv->ok_button;
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (_tmp4_, _tmp0_);
-#line 1826 "ExportDialog.c"
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1844 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_on_pixels_insert_text (ExportDialog* self,
- const gchar* text,
- gint length,
- gint* position)
-{
- gboolean _tmp0_;
- gchar* new_text = NULL;
- gchar* _tmp3_;
- const gchar* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- GtkEntry* _tmp21_;
-#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (IS_EXPORT_DIALOG (self));
-#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_return_if_fail (text != NULL);
-#line 320 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = self->priv->in_insert;
-#line 320 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp0_) {
-#line 321 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- return;
-#line 1871 "ExportDialog.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->in_insert = TRUE;
-#line 325 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (length == -1) {
-#line 1877 "ExportDialog.c"
- gint _tmp1_;
- gint _tmp2_;
-#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = strlen (text);
-#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = _tmp1_;
-#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- length = (gint) _tmp2_;
-#line 1886 "ExportDialog.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = g_strdup ("");
-#line 329 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- new_text = _tmp3_;
-#line 1892 "ExportDialog.c"
- {
- gint ctr = 0;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = 0;
-#line 1897 "ExportDialog.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = TRUE;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- while (TRUE) {
-#line 1904 "ExportDialog.c"
- gint _tmp6_;
- gint _tmp7_;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!_tmp4_) {
-#line 1909 "ExportDialog.c"
- gint _tmp5_;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = ctr;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = _tmp5_ + 1;
-#line 1915 "ExportDialog.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = FALSE;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = ctr;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!(_tmp6_ < length)) {
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- break;
-#line 1925 "ExportDialog.c"
- }
-#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = ctr;
-#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (g_ascii_isdigit (string_get (text, (glong) _tmp7_))) {
-#line 1931 "ExportDialog.c"
- const gchar* _tmp8_;
- gint _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = new_text;
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = ctr;
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp9_));
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = _tmp10_;
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = g_strconcat (_tmp8_, _tmp11_, NULL);
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (new_text);
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- new_text = _tmp12_;
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp11_);
-#line 1953 "ExportDialog.c"
- }
- }
- }
- }
-#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = new_text;
-#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = strlen (_tmp13_);
-#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = _tmp14_;
-#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp15_ > 0) {
-#line 1966 "ExportDialog.c"
- GtkEntry* _tmp16_;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = self->priv->pixels_entry;
-#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = new_text;
-#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = new_text;
-#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp19_ = strlen (_tmp18_);
-#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp20_ = _tmp19_;
-#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp17_, (gint) _tmp20_, position);
-#line 1984 "ExportDialog.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp21_ = self->priv->pixels_entry;
-#line 339 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_stop_emission_by_name (_tmp21_, "insert-text");
-#line 341 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->in_insert = FALSE;
-#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (new_text);
-#line 1994 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_class_init (ExportDialogClass * klass)
-{
- ExportFormatParameters _tmp0_ = {0};
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_type_class_add_private (klass, sizeof (ExportDialogPrivate));
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- G_OBJECT_CLASS (klass)->finalize = export_dialog_finalize;
-#line 25 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_format_parameters_current (&_tmp0_);
-#line 25 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters = _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_scale = EXPORT_DIALOG_DEFAULT_SCALE;
-#line 2014 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_instance_init (ExportDialog * self)
-{
- GtkGrid* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv = EXPORT_DIALOG_GET_PRIVATE (self);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = (GtkGrid*) gtk_grid_new ();
-#line 28 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp0_);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->table = _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 33 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->format_options = _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->in_insert = FALSE;
-#line 2037 "ExportDialog.c"
-}
-
-
-static void
-export_dialog_finalize (GObject * obj)
-{
- ExportDialog * self;
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPORT_DIALOG, ExportDialog);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->table);
-#line 29 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->quality_combo);
-#line 30 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->constraint_combo);
-#line 31 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->format_combo);
-#line 32 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->export_metadata);
-#line 33 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->format_options);
-#line 34 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->pixels_entry);
-#line 35 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_object_unref0 (self->priv->ok_button);
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- G_OBJECT_CLASS (export_dialog_parent_class)->finalize (obj);
-#line 2065 "ExportDialog.c"
-}
-
-
-GType
-export_dialog_get_type (void)
-{
- static volatile gsize export_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&export_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ExportDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) export_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExportDialog), 0, (GInstanceInitFunc) export_dialog_instance_init, NULL };
- GType export_dialog_type_id;
- export_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "ExportDialog", &g_define_type_info, 0);
- g_once_init_leave (&export_dialog_type_id__volatile, export_dialog_type_id);
- }
- return export_dialog_type_id__volatile;
-}
-
-
-
diff --git a/src/dialogs/MultiTextEntryDialog.c b/src/dialogs/MultiTextEntryDialog.c
deleted file mode 100644
index e33e415..0000000
--- a/src/dialogs/MultiTextEntryDialog.c
+++ /dev/null
@@ -1,293 +0,0 @@
-/* MultiTextEntryDialog.c generated by valac 0.40.4, the Vala compiler
- * generated from MultiTextEntryDialog.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-#define TYPE_MULTI_TEXT_ENTRY_DIALOG (multi_text_entry_dialog_get_type ())
-#define MULTI_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialog))
-#define MULTI_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogClass))
-#define IS_MULTI_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG))
-#define MULTI_TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogClass))
-
-typedef struct _MultiTextEntryDialog MultiTextEntryDialog;
-typedef struct _MultiTextEntryDialogClass MultiTextEntryDialogClass;
-typedef struct _MultiTextEntryDialogPrivate MultiTextEntryDialogPrivate;
-enum {
- MULTI_TEXT_ENTRY_DIALOG_0_PROPERTY,
- MULTI_TEXT_ENTRY_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* multi_text_entry_dialog_properties[MULTI_TEXT_ENTRY_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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_free0(var) (var = (g_free (var), NULL))
-
-struct _MultiTextEntryDialog {
- GtkDialog parent_instance;
- MultiTextEntryDialogPrivate * priv;
-};
-
-struct _MultiTextEntryDialogClass {
- GtkDialogClass parent_class;
-};
-
-typedef gboolean (*MultiTextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data);
-struct _MultiTextEntryDialogPrivate {
- MultiTextEntryDialogOnModifyValidateType on_modify_validate;
- gpointer on_modify_validate_target;
- GtkTextView* entry;
-};
-
-
-static gpointer multi_text_entry_dialog_parent_class = NULL;
-
-GType multi_text_entry_dialog_get_type (void) G_GNUC_CONST;
-#define MULTI_TEXT_ENTRY_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogPrivate))
-MultiTextEntryDialog* multi_text_entry_dialog_new (void);
-MultiTextEntryDialog* multi_text_entry_dialog_construct (GType object_type);
-gint resources_use_header_bar (void);
-void multi_text_entry_dialog_setup (MultiTextEntryDialog* self,
- MultiTextEntryDialogOnModifyValidateType modify_validate,
- void* modify_validate_target,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-gchar* multi_text_entry_dialog_execute (MultiTextEntryDialog* self);
-static void multi_text_entry_dialog_finalize (GObject * obj);
-
-
-MultiTextEntryDialog*
-multi_text_entry_dialog_construct (GType object_type)
-{
- MultiTextEntryDialog * self = NULL;
-#line 17 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- self = (MultiTextEntryDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 16 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- return self;
-#line 103 "MultiTextEntryDialog.c"
-}
-
-
-MultiTextEntryDialog*
-multi_text_entry_dialog_new (void)
-{
-#line 16 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- return multi_text_entry_dialog_construct (TYPE_MULTI_TEXT_ENTRY_DIALOG);
-#line 112 "MultiTextEntryDialog.c"
-}
-
-
-void
-multi_text_entry_dialog_setup (MultiTextEntryDialog* self,
- MultiTextEntryDialogOnModifyValidateType modify_validate,
- void* modify_validate_target,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text)
-{
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GdkWindow* _tmp2_;
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
- const gchar* _tmp5_ = NULL;
- GtkTextView* _tmp6_;
- GtkTextBuffer* _tmp7_;
- GtkTextBuffer* _tmp8_;
- GtkTextView* _tmp9_;
-#line 20 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- g_return_if_fail (IS_MULTI_TEXT_ENTRY_DIALOG (self));
-#line 20 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- g_return_if_fail (title != NULL);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- g_return_if_fail (label != NULL);
-#line 21 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), title);
-#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp0_ = app_window_get_instance ();
-#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp1_ = _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp2_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp2_);
-#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _g_object_unref0 (_tmp1_);
-#line 23 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp3_ = app_window_get_instance ();
-#line 23 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp4_ = _tmp3_;
-#line 23 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow));
-#line 23 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _g_object_unref0 (_tmp4_);
-#line 24 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- self->priv->on_modify_validate = modify_validate;
-#line 24 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- self->priv->on_modify_validate_target = modify_validate_target;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- if (initial_text != NULL) {
-#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp5_ = initial_text;
-#line 168 "MultiTextEntryDialog.c"
- } else {
-#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp5_ = "";
-#line 172 "MultiTextEntryDialog.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp6_ = self->priv->entry;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp7_ = gtk_text_view_get_buffer (_tmp6_);
-#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp8_ = _tmp7_;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- g_object_set (_tmp8_, "text", _tmp5_, NULL);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp9_ = self->priv->entry;
-#line 28 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 186 "MultiTextEntryDialog.c"
-}
-
-
-gchar*
-multi_text_entry_dialog_execute (MultiTextEntryDialog* self)
-{
- gchar* result = NULL;
- gchar* text = NULL;
-#line 31 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- g_return_val_if_fail (IS_MULTI_TEXT_ENTRY_DIALOG (self), NULL);
-#line 32 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- text = NULL;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 36 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) {
-#line 203 "MultiTextEntryDialog.c"
- GtkTextView* _tmp0_;
- GtkTextBuffer* _tmp1_;
- GtkTextBuffer* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp0_ = self->priv->entry;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp1_ = gtk_text_view_get_buffer (_tmp0_);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp2_ = _tmp1_;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- g_object_get (_tmp2_, "text", &_tmp3_, NULL);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _tmp4_ = _tmp3_;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _g_free0 (text);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- text = _tmp4_;
-#line 223 "MultiTextEntryDialog.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 41 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- result = text;
-#line 41 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- return result;
-#line 231 "MultiTextEntryDialog.c"
-}
-
-
-static void
-multi_text_entry_dialog_class_init (MultiTextEntryDialogClass * klass)
-{
- gint MultiTextEntryDialog_private_offset;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- multi_text_entry_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- g_type_class_add_private (klass, sizeof (MultiTextEntryDialogPrivate));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- G_OBJECT_CLASS (klass)->finalize = multi_text_entry_dialog_finalize;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- MultiTextEntryDialog_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/multitextentrydialog.ui");
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "entry", FALSE, MultiTextEntryDialog_private_offset + G_STRUCT_OFFSET (MultiTextEntryDialogPrivate, entry));
-#line 251 "MultiTextEntryDialog.c"
-}
-
-
-static void
-multi_text_entry_dialog_instance_init (MultiTextEntryDialog * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- self->priv = MULTI_TEXT_ENTRY_DIALOG_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 262 "MultiTextEntryDialog.c"
-}
-
-
-static void
-multi_text_entry_dialog_finalize (GObject * obj)
-{
- MultiTextEntryDialog * self;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialog);
-#line 14 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- _g_object_unref0 (self->priv->entry);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala"
- G_OBJECT_CLASS (multi_text_entry_dialog_parent_class)->finalize (obj);
-#line 276 "MultiTextEntryDialog.c"
-}
-
-
-GType
-multi_text_entry_dialog_get_type (void)
-{
- static volatile gsize multi_text_entry_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&multi_text_entry_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MultiTextEntryDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multi_text_entry_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultiTextEntryDialog), 0, (GInstanceInitFunc) multi_text_entry_dialog_instance_init, NULL };
- GType multi_text_entry_dialog_type_id;
- multi_text_entry_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "MultiTextEntryDialog", &g_define_type_info, 0);
- g_once_init_leave (&multi_text_entry_dialog_type_id__volatile, multi_text_entry_dialog_type_id);
- }
- return multi_text_entry_dialog_type_id__volatile;
-}
-
-
-
diff --git a/src/dialogs/Preferences.c b/src/dialogs/Preferences.c
deleted file mode 100644
index 7a77423..0000000
--- a/src/dialogs/Preferences.c
+++ /dev/null
@@ -1,3328 +0,0 @@
-/* Preferences.c generated by valac 0.40.4, the Vala compiler
- * generated from Preferences.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gdk/gdk.h>
-#include <float.h>
-#include <math.h>
-#include <glib/gi18n-lib.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_PREFERENCES_DIALOG (preferences_dialog_get_type ())
-#define PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREFERENCES_DIALOG, PreferencesDialog))
-#define PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREFERENCES_DIALOG, PreferencesDialogClass))
-#define IS_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREFERENCES_DIALOG))
-#define IS_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREFERENCES_DIALOG))
-#define PREFERENCES_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREFERENCES_DIALOG, PreferencesDialogClass))
-
-typedef struct _PreferencesDialog PreferencesDialog;
-typedef struct _PreferencesDialogClass PreferencesDialogClass;
-typedef struct _PreferencesDialogPrivate PreferencesDialogPrivate;
-
-#define TYPE_SORTED_LIST (sorted_list_get_type ())
-#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
-#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
-#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
-#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
-#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
-
-typedef struct _SortedList SortedList;
-typedef struct _SortedListClass SortedListClass;
-
-#define PREFERENCES_DIALOG_TYPE_PATH_FORMAT (preferences_dialog_path_format_get_type ())
-#define PREFERENCES_DIALOG_PATH_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormat))
-#define PREFERENCES_DIALOG_PATH_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormatClass))
-#define PREFERENCES_DIALOG_IS_PATH_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT))
-#define PREFERENCES_DIALOG_IS_PATH_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PREFERENCES_DIALOG_TYPE_PATH_FORMAT))
-#define PREFERENCES_DIALOG_PATH_FORMAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormatClass))
-
-typedef struct _PreferencesDialogPathFormat PreferencesDialogPathFormat;
-typedef struct _PreferencesDialogPathFormatClass PreferencesDialogPathFormatClass;
-
-#define PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR (plugins_manifest_widget_mediator_get_type ())
-#define PLUGINS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator))
-#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass))
-#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR))
-#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR))
-#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass))
-
-typedef struct _PluginsManifestWidgetMediator PluginsManifestWidgetMediator;
-typedef struct _PluginsManifestWidgetMediatorClass PluginsManifestWidgetMediatorClass;
-enum {
- PREFERENCES_DIALOG_0_PROPERTY,
- PREFERENCES_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* preferences_dialog_properties[PREFERENCES_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _PreferencesDialogPathFormatPrivate PreferencesDialogPathFormatPrivate;
-#define _preferences_dialog_path_format_unref0(var) ((var == NULL) ? NULL : (var = (preferences_dialog_path_format_unref (var), NULL)))
-typedef struct _PreferencesDialogParamSpecPathFormat PreferencesDialogParamSpecPathFormat;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _PreferencesDialog {
- GtkDialog parent_instance;
- PreferencesDialogPrivate * priv;
-};
-
-struct _PreferencesDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _PreferencesDialogPrivate {
- GtkAdjustment* bg_color_adjustment;
- GtkScale* bg_color_slider;
- GtkComboBox* photo_editor_combo;
- GtkComboBox* raw_editor_combo;
- SortedList* external_raw_apps;
- SortedList* external_photo_apps;
- GtkFileChooserButton* library_dir_button;
- GtkComboBoxText* dir_pattern_combo;
- GtkEntry* dir_pattern_entry;
- GtkLabel* dir_pattern_example;
- gboolean allow_closing;
- gchar* lib_dir;
- GeeArrayList* path_formats;
- GDateTime* example_date;
- GtkCheckButton* lowercase;
- PluginsManifestWidgetMediator* plugins_mediator;
- GtkComboBoxText* default_raw_developer_combo;
- GtkCheckButton* autoimport;
- GtkCheckButton* write_metadata;
- GtkLabel* pattern_help;
- GtkNotebook* preferences_notebook;
- GtkRadioButton* transparent_checker_radio;
- GtkRadioButton* transparent_solid_radio;
- GtkColorButton* transparent_solid_color;
- GtkRadioButton* transparent_none_radio;
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _PreferencesDialogPathFormat {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PreferencesDialogPathFormatPrivate * priv;
- gchar* name;
- gchar* pattern;
-};
-
-struct _PreferencesDialogPathFormatClass {
- GTypeClass parent_class;
- void (*finalize) (PreferencesDialogPathFormat *self);
-};
-
-struct _PreferencesDialogParamSpecPathFormat {
- GParamSpec parent_instance;
-};
-
-
-static gpointer preferences_dialog_parent_class = NULL;
-static PreferencesDialog* preferences_dialog_preferences_dialog;
-static PreferencesDialog* preferences_dialog_preferences_dialog = NULL;
-static gpointer preferences_dialog_path_format_parent_class = NULL;
-
-GType preferences_dialog_get_type (void) G_GNUC_CONST;
-GType sorted_list_get_type (void) G_GNUC_CONST;
-static gpointer preferences_dialog_path_format_ref (gpointer instance);
-static void preferences_dialog_path_format_unref (gpointer instance);
-static GParamSpec* preferences_dialog_param_spec_path_format (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void preferences_dialog_value_set_path_format (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void preferences_dialog_value_take_path_format (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer preferences_dialog_value_get_path_format (const GValue* value) G_GNUC_UNUSED;
-static GType preferences_dialog_path_format_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType plugins_manifest_widget_mediator_get_type (void) G_GNUC_CONST;
-#define PREFERENCES_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREFERENCES_DIALOG, PreferencesDialogPrivate))
-PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_new (void);
-PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_construct (GType object_type);
-static PreferencesDialog* preferences_dialog_new (void);
-static PreferencesDialog* preferences_dialog_construct (GType object_type);
-gint resources_use_header_bar (void);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-static gboolean preferences_dialog_on_delete (PreferencesDialog* self);
-static gboolean _preferences_dialog_on_delete_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self);
-static void preferences_dialog_on_close (PreferencesDialog* self);
-static void _preferences_dialog_on_close_gtk_dialog_response (GtkDialog* _sender,
- gint response_id,
- gpointer self);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void config_facade_get_bg_color (ConfigFacade* self,
- GdkRGBA* result);
-static void preferences_dialog_on_value_changed (PreferencesDialog* self);
-static void _preferences_dialog_on_value_changed_gtk_adjustment_value_changed (GtkAdjustment* _sender,
- gpointer self);
-static gboolean preferences_dialog_on_bg_color_reset (PreferencesDialog* self,
- GdkEventButton* event);
-static gboolean _preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-static void preferences_dialog_on_radio_changed (PreferencesDialog* self);
-static void _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
-gchar* configuration_facade_get_transparent_background_color (ConfigurationFacade* self);
-static void preferences_dialog_on_color_changed (PreferencesDialog* self);
-static void _preferences_dialog_on_color_changed_gtk_color_button_color_set (GtkColorButton* _sender,
- gpointer self);
-gchar* configuration_facade_get_transparent_background_type (ConfigurationFacade* self);
-gchar* resources_get_help_path (void);
-#define RESOURCES_DIR_PATTERN_URI_SYSWIDE "help:shotwell/other-files"
-static gboolean preferences_dialog_on_local_pattern_help (PreferencesDialog* self,
- const gchar* ignore);
-static gboolean _preferences_dialog_on_local_pattern_help_gtk_label_activate_link (GtkLabel* _sender,
- const gchar* uri,
- gpointer self);
-static void preferences_dialog_add_to_dir_formats (PreferencesDialog* self,
- const gchar* name,
- const gchar* pattern);
-static void preferences_dialog_on_dir_pattern_combo_changed (PreferencesDialog* self);
-static void _preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void preferences_dialog_on_dir_pattern_entry_changed (PreferencesDialog* self);
-static void _preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
-static void preferences_dialog_on_lowercase_toggled (PreferencesDialog* self);
-static void _preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
-void preferences_dialog_populate_preference_options (PreferencesDialog* self);
-static void preferences_dialog_on_photo_editor_changed (PreferencesDialog* self);
-static void _preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void preferences_dialog_on_raw_editor_changed (PreferencesDialog* self);
-static void _preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-gboolean configuration_facade_get_auto_import_from_library (ConfigurationFacade* self);
-gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self);
-GType raw_developer_get_type (void) G_GNUC_CONST;
-gchar* raw_developer_get_label (RawDeveloper self);
-static void preferences_dialog_set_raw_developer_combo (PreferencesDialog* self,
- RawDeveloper d);
-RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self);
-static void preferences_dialog_on_default_raw_developer_changed (PreferencesDialog* self);
-static void _preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self,
- GtkComboBox* combo_box,
- gchar** mime_types,
- int mime_types_length1,
- const gchar* current_app_executable,
- SortedList* * external_apps);
-gchar** photo_file_format_get_editable_mime_types (int* result_length1);
-gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-gchar** photo_file_format_get_mime_types (PhotoFileFormat self,
- int* result_length1);
-gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self);
-static void preferences_dialog_setup_dir_pattern (PreferencesDialog* self,
- GtkComboBox* combo_box,
- GtkEntry* entry);
-gboolean configuration_facade_get_use_lowercase_filenames (ConfigurationFacade* self);
-void configuration_facade_set_transparent_background_type (ConfigurationFacade* self,
- const gchar* type);
-void configuration_facade_set_transparent_background_color (ConfigurationFacade* self,
- const gchar* color_name);
-void resources_launch_help (GdkScreen* screen,
- const gchar* anchor,
- GError** error);
-SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types,
- int mime_types_length1);
-GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf,
- gint scale,
- GdkInterpType interp,
- gboolean scale_up);
-#define RESOURCES_DEFAULT_ICON_SCALE 24
-gint sorted_list_index_of (SortedList* self,
- gconstpointer search);
-gchar* configuration_facade_get_directory_pattern (ConfigurationFacade* self);
-gchar* configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self);
-gboolean is_string_empty (const gchar* s);
-void preferences_dialog_show_preferences (void);
-GFile* app_dirs_get_import_dir (void);
-static void preferences_dialog_commit_on_close (PreferencesDialog* self);
-void config_facade_commit_bg_color (ConfigFacade* self);
-void configuration_facade_set_auto_import_from_library (ConfigurationFacade* self,
- gboolean auto_import);
-void configuration_facade_set_commit_metadata_to_masters (ConfigurationFacade* self,
- gboolean commit_metadata);
-void app_dirs_set_import_dir (const gchar* path);
-void configuration_facade_set_directory_pattern_custom (ConfigurationFacade* self,
- const gchar* s);
-void configuration_facade_set_directory_pattern (ConfigurationFacade* self,
- const gchar* s);
-static gboolean preferences_dialog_get_allow_closing (PreferencesDialog* self);
-static void preferences_dialog_set_background_color (PreferencesDialog* self,
- gdouble bg_color_value);
-gboolean has_only_key_modifier (GdkModifierType field,
- GdkModifierType mask);
-void parse_color (const gchar* spec,
- GdkRGBA* result);
-#define CONFIG_FACADE_DEFAULT_BG_COLOR "#444"
-static void preferences_dialog_set_allow_closing (PreferencesDialog* self,
- gboolean allow);
-void config_facade_set_bg_color (ConfigFacade* self,
- GdkRGBA* color);
-static void preferences_dialog_to_grayscale (PreferencesDialog* self,
- gdouble color_value,
- GdkRGBA* result);
-gpointer sorted_list_get_at (SortedList* self,
- gint index);
-void configuration_facade_set_external_photo_app (ConfigurationFacade* self,
- const gchar* external_photo_app);
-gchar* desktop_integration_get_app_open_command (GAppInfo* app_info);
-void configuration_facade_set_external_raw_app (ConfigurationFacade* self,
- const gchar* external_raw_app);
-static RawDeveloper preferences_dialog_raw_developer_from_combo (PreferencesDialog* self);
-void configuration_facade_set_default_raw_developer (ConfigurationFacade* self,
- RawDeveloper d);
-static void preferences_dialog_on_current_folder_changed (PreferencesDialog* self);
-static gboolean preferences_dialog_real_map_event (GtkWidget* base,
- GdkEventAny* event);
-static void _preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed (GtkFileChooser* _sender,
- gpointer self);
-static PreferencesDialogPathFormat* preferences_dialog_path_format_new (const gchar* name,
- const gchar* pattern);
-static PreferencesDialogPathFormat* preferences_dialog_path_format_construct (GType object_type,
- const gchar* name,
- const gchar* pattern);
-void configuration_facade_set_use_lowercase_filenames (ConfigurationFacade* self,
- gboolean b);
-static void preferences_dialog_path_format_finalize (PreferencesDialogPathFormat * obj);
-static void preferences_dialog_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 gint _vala_array_length (gpointer array);
-
-
-static gboolean
-_preferences_dialog_on_delete_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self)
-{
- gboolean result;
- result = preferences_dialog_on_delete ((PreferencesDialog*) self);
-#line 72 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 399 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_close_gtk_dialog_response (GtkDialog* _sender,
- gint response_id,
- gpointer self)
-{
-#line 73 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_close ((PreferencesDialog*) self);
-#line 410 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_value_changed_gtk_adjustment_value_changed (GtkAdjustment* _sender,
- gpointer self)
-{
-#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_value_changed ((PreferencesDialog*) self);
-#line 420 "Preferences.c"
-}
-
-
-static gboolean
-_preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- result = preferences_dialog_on_bg_color_reset ((PreferencesDialog*) self, event);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 433 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_radio_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
-{
-#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_radio_changed ((PreferencesDialog*) self);
-#line 443 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_color_changed_gtk_color_button_color_set (GtkColorButton* _sender,
- gpointer self)
-{
-#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_color_changed ((PreferencesDialog*) self);
-#line 453 "Preferences.c"
-}
-
-
-static gboolean
-_preferences_dialog_on_local_pattern_help_gtk_label_activate_link (GtkLabel* _sender,
- const gchar* uri,
- gpointer self)
-{
- gboolean result;
- result = preferences_dialog_on_local_pattern_help ((PreferencesDialog*) self, uri);
-#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 466 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_dir_pattern_combo_changed ((PreferencesDialog*) self);
-#line 476 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
-{
-#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_dir_pattern_entry_changed ((PreferencesDialog*) self);
-#line 486 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
-{
-#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_lowercase_toggled ((PreferencesDialog*) self);
-#line 496 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_photo_editor_changed ((PreferencesDialog*) self);
-#line 506 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_raw_editor_changed ((PreferencesDialog*) self);
-#line 516 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_default_raw_developer_changed ((PreferencesDialog*) self);
-#line 526 "Preferences.c"
-}
-
-
-static PreferencesDialog*
-preferences_dialog_construct (GType object_type)
-{
- PreferencesDialog * self = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GdkWindow* _tmp2_;
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
- GtkAdjustment* _tmp5_;
- GtkAdjustment* _tmp6_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- GdkRGBA _tmp9_ = {0};
- gdouble _tmp10_;
- GtkAdjustment* _tmp11_;
- GtkScale* _tmp12_;
- GtkRadioButton* _tmp13_;
- GtkRadioButton* _tmp14_;
- GtkRadioButton* _tmp15_;
- GtkRadioButton* _tmp16_;
- GtkColorButton* _tmp17_;
- GdkRGBA color = {0};
- ConfigFacade* _tmp18_;
- ConfigFacade* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GtkColorButton* _tmp22_;
- GdkRGBA _tmp23_;
- GtkColorButton* _tmp24_;
- ConfigFacade* _tmp25_;
- ConfigFacade* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- GQuark _tmp31_ = 0U;
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- static GQuark _tmp30_label0 = 0;
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- static GQuark _tmp30_label1 = 0;
-#line 570 "Preferences.c"
- gchar* help_path = NULL;
- gchar* _tmp35_;
- const gchar* _tmp36_;
- gchar* _tmp48_;
- gchar* _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
- GtkComboBoxText* _tmp54_;
- GtkEntry* _tmp55_;
- GtkCheckButton* _tmp56_;
- GtkNotebook* _tmp57_;
- GtkWidget* _tmp58_;
- PluginsManifestWidgetMediator* _tmp59_;
- GtkComboBox* _tmp60_;
- GtkComboBox* _tmp61_;
- GtkCheckButton* _tmp62_;
- ConfigFacade* _tmp63_;
- ConfigFacade* _tmp64_;
- GtkCheckButton* _tmp65_;
- ConfigFacade* _tmp66_;
- ConfigFacade* _tmp67_;
- GtkComboBoxText* _tmp68_;
- gchar* _tmp69_;
- gchar* _tmp70_;
- GtkComboBoxText* _tmp71_;
- gchar* _tmp72_;
- gchar* _tmp73_;
- ConfigFacade* _tmp74_;
- ConfigFacade* _tmp75_;
- GtkComboBoxText* _tmp76_;
-#line 68 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self = (PreferencesDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = app_window_get_instance ();
-#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _tmp0_;
-#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp2_);
-#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp1_);
-#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = app_window_get_instance ();
-#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = _tmp3_;
-#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow));
-#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp4_);
-#line 72 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _preferences_dialog_on_delete_gtk_widget_delete_event, self, 0);
-#line 73 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), "response", (GCallback) _preferences_dialog_on_close_gtk_dialog_response, self, 0);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = self->priv->bg_color_adjustment;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = self->priv->bg_color_adjustment;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = _tmp7_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- config_facade_get_bg_color (_tmp8_, &_tmp9_);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = _tmp9_.red;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_adjustment_set_value (_tmp5_, gtk_adjustment_get_upper (_tmp6_) - (_tmp10_ * 65535.0));
-#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp8_);
-#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = self->priv->bg_color_adjustment;
-#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (_tmp11_, "value-changed", (GCallback) _preferences_dialog_on_value_changed_gtk_adjustment_value_changed, self, 0);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = self->priv->bg_color_slider;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event, self, 0);
-#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = self->priv->transparent_checker_radio;
-#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0);
-#line 82 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = self->priv->transparent_solid_radio;
-#line 82 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0);
-#line 83 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp15_ = self->priv->transparent_none_radio;
-#line 83 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0);
-#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp16_ = self->priv->transparent_solid_radio;
-#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp17_ = self->priv->transparent_solid_color;
-#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_object_bind_property_with_closures (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, G_TYPE_OBJECT, GObject), "active", G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, G_TYPE_OBJECT, GObject), "sensitive", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
-#line 89 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- memset (&color, 0, sizeof (GdkRGBA));
-#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp18_ = config_facade_get_instance ();
-#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp19_ = _tmp18_;
-#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp20_ = configuration_facade_get_transparent_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp21_ = _tmp20_;
-#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gdk_rgba_parse (&color, _tmp21_);
-#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp21_);
-#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp19_);
-#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp22_ = self->priv->transparent_solid_color;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp23_ = color;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_color_chooser_set_rgba (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_color_chooser_get_type ()) ? ((GtkColorChooser*) _tmp22_) : NULL, &_tmp23_);
-#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp24_ = self->priv->transparent_solid_color;
-#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (_tmp24_, "color-set", (GCallback) _preferences_dialog_on_color_changed_gtk_color_button_color_set, self, 0);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp25_ = config_facade_get_instance ();
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp26_ = _tmp25_;
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp27_ = configuration_facade_get_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp28_ = _tmp27_;
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp26_);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp29_ = _tmp28_;
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp31_ = (NULL == _tmp29_) ? 0 : g_quark_from_string (_tmp29_);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_free (_tmp29_);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp31_ == ((0 != _tmp30_label0) ? _tmp30_label0 : (_tmp30_label0 = g_quark_from_static_string ("checkered")))) {
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- switch (0) {
-#line 715 "Preferences.c"
- default:
- {
- GtkRadioButton* _tmp32_;
-#line 96 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp32_ = self->priv->transparent_checker_radio;
-#line 96 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 97 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- break;
-#line 725 "Preferences.c"
- }
- }
- } else if (_tmp31_ == ((0 != _tmp30_label1) ? _tmp30_label1 : (_tmp30_label1 = g_quark_from_static_string ("solid")))) {
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- switch (0) {
-#line 731 "Preferences.c"
- default:
- {
- GtkRadioButton* _tmp33_;
-#line 99 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp33_ = self->priv->transparent_solid_radio;
-#line 99 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 100 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- break;
-#line 741 "Preferences.c"
- }
- }
- } else {
-#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- switch (0) {
-#line 747 "Preferences.c"
- default:
- {
- GtkRadioButton* _tmp34_;
-#line 102 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp34_ = self->priv->transparent_none_radio;
-#line 102 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 103 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- break;
-#line 757 "Preferences.c"
- }
- }
- }
-#line 111 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp35_ = resources_get_help_path ();
-#line 111 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- help_path = _tmp35_;
-#line 113 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp36_ = help_path;
-#line 113 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp36_ == NULL) {
-#line 769 "Preferences.c"
- GtkLabel* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
-#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp37_ = self->priv->pattern_help;
-#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp38_ = g_strconcat ("<a href=\"" RESOURCES_DIR_PATTERN_URI_SYSWIDE "\">", _ ("(Help)"), NULL);
-#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp39_ = _tmp38_;
-#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp40_ = g_strconcat (_tmp39_, "</a>", NULL);
-#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp41_ = _tmp40_;
-#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_label_set_markup (_tmp37_, _tmp41_);
-#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp41_);
-#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp39_);
-#line 791 "Preferences.c"
- } else {
- GtkLabel* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- gchar* _tmp46_;
- GtkLabel* _tmp47_;
-#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp42_ = self->priv->pattern_help;
-#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp43_ = g_strconcat ("<a href=\"dummy:\">", _ ("(Help)"), NULL);
-#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp44_ = _tmp43_;
-#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp45_ = g_strconcat (_tmp44_, "</a>", NULL);
-#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp46_ = _tmp45_;
-#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_label_set_markup (_tmp42_, _tmp46_);
-#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp46_);
-#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp44_);
-#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp47_ = self->priv->pattern_help;
-#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (_tmp47_, "activate-link", (GCallback) _preferences_dialog_on_local_pattern_help_gtk_label_activate_link, self, 0);
-#line 819 "Preferences.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp48_ = g_strdup_printf (_ ("Year%sMonth%sDay"), G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S);
-#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp49_ = _tmp48_;
-#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_add_to_dir_formats (self, _tmp49_, "%Y" G_DIR_SEPARATOR_S "%m" G_DIR_SEPARATOR_S "%d");
-#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp49_);
-#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp50_ = g_strdup_printf (_ ("Year%sMonth"), G_DIR_SEPARATOR_S);
-#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp51_ = _tmp50_;
-#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_add_to_dir_formats (self, _tmp51_, "%Y" G_DIR_SEPARATOR_S "%m");
-#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp51_);
-#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp52_ = g_strdup_printf (_ ("Year%sMonth-Day"), G_DIR_SEPARATOR_S);
-#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp53_ = _tmp52_;
-#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_add_to_dir_formats (self, _tmp53_, "%Y" G_DIR_SEPARATOR_S "%m-%d");
-#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp53_);
-#line 129 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_add_to_dir_formats (self, _ ("Year-Month-Day"), "%Y-%m-%d");
-#line 130 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_add_to_dir_formats (self, _ ("Custom"), NULL);
-#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp54_ = self->priv->dir_pattern_combo;
-#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed, self, 0);
-#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp55_ = self->priv->dir_pattern_entry;
-#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed, self, 0);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp56_ = self->priv->lowercase;
-#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled, self, 0);
-#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp57_ = self->priv->preferences_notebook;
-#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp58_ = gtk_notebook_get_nth_page (_tmp57_, 2);
-#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp59_ = self->priv->plugins_mediator;
-#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_TYPE (_tmp58_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp58_) : NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_widget_get_type (), GtkWidget));
-#line 138 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_populate_preference_options (self);
-#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp60_ = self->priv->photo_editor_combo;
-#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (_tmp60_, "changed", (GCallback) _preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed, self, 0);
-#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp61_ = self->priv->raw_editor_combo;
-#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (_tmp61_, "changed", (GCallback) _preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed, self, 0);
-#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp62_ = self->priv->autoimport;
-#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp63_ = config_facade_get_instance ();
-#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp64_ = _tmp63_;
-#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp64_);
-#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp65_ = self->priv->write_metadata;
-#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp66_ = config_facade_get_instance ();
-#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp67_ = _tmp66_;
-#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp67_);
-#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp68_ = self->priv->default_raw_developer_combo;
-#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp69_ = raw_developer_get_label (RAW_DEVELOPER_CAMERA);
-#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp70_ = _tmp69_;
-#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_text_append_text (_tmp68_, _tmp70_);
-#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp70_);
-#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp71_ = self->priv->default_raw_developer_combo;
-#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp72_ = raw_developer_get_label (RAW_DEVELOPER_SHOTWELL);
-#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp73_ = _tmp72_;
-#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_text_append_text (_tmp71_, _tmp73_);
-#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp73_);
-#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp74_ = config_facade_get_instance ();
-#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp75_ = _tmp74_;
-#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_set_raw_developer_combo (self, configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp75_);
-#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp76_ = self->priv->default_raw_developer_combo;
-#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed, self, 0);
-#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (help_path);
-#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return self;
-#line 935 "Preferences.c"
-}
-
-
-static PreferencesDialog*
-preferences_dialog_new (void)
-{
-#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return preferences_dialog_construct (TYPE_PREFERENCES_DIALOG);
-#line 944 "Preferences.c"
-}
-
-
-void
-preferences_dialog_populate_preference_options (PreferencesDialog* self)
-{
- GtkComboBox* _tmp0_;
- gint _tmp1_;
- gchar** _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- SortedList* _tmp8_ = NULL;
- GtkComboBox* _tmp9_;
- gint _tmp10_;
- gchar** _tmp11_;
- gchar** _tmp12_;
- gint _tmp12__length1;
- ConfigFacade* _tmp13_;
- ConfigFacade* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- SortedList* _tmp17_ = NULL;
- GtkComboBoxText* _tmp18_;
- GtkEntry* _tmp19_;
- GtkCheckButton* _tmp20_;
- ConfigFacade* _tmp21_;
- ConfigFacade* _tmp22_;
-#line 153 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->photo_editor_combo;
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = photo_file_format_get_editable_mime_types (&_tmp1_);
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = _tmp2_;
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3__length1 = _tmp1_;
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = _tmp4_;
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = _tmp6_;
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_populate_app_combo_box (self, _tmp0_, _tmp3_, _tmp1_, _tmp7_, &_tmp8_);
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->external_photo_apps);
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->external_photo_apps = _tmp8_;
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp7_);
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp5_);
-#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = self->priv->raw_editor_combo;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = photo_file_format_get_mime_types (PHOTO_FILE_FORMAT_RAW, &_tmp10_);
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = _tmp11_;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12__length1 = _tmp10_;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = config_facade_get_instance ();
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = _tmp13_;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp15_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp16_ = _tmp15_;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_populate_app_combo_box (self, _tmp9_, _tmp12_, _tmp10_, _tmp16_, &_tmp17_);
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->external_raw_apps);
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->external_raw_apps = _tmp17_;
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp16_);
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp14_);
-#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL);
-#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp18_ = self->priv->dir_pattern_combo;
-#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp19_ = self->priv->dir_pattern_entry;
-#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_setup_dir_pattern (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_combo_box_get_type (), GtkComboBox), _tmp19_);
-#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp20_ = self->priv->lowercase;
-#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp21_ = config_facade_get_instance ();
-#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp22_ = _tmp21_;
-#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp22_);
-#line 1050 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_radio_changed (PreferencesDialog* self)
-{
- ConfigFacade* config = NULL;
- ConfigFacade* _tmp0_;
- GtkRadioButton* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
-#line 165 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 166 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 166 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- config = _tmp0_;
-#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = self->priv->transparent_checker_radio;
-#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = _tmp2_;
-#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp3_) {
-#line 1076 "Preferences.c"
- ConfigFacade* _tmp4_;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = config;
-#line 169 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "checkered");
-#line 1082 "Preferences.c"
- } else {
- GtkRadioButton* _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp7_;
-#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = self->priv->transparent_solid_radio;
-#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = _tmp6_;
-#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp7_) {
-#line 1095 "Preferences.c"
- ConfigFacade* _tmp8_;
-#line 171 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = config;
-#line 171 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "solid");
-#line 1101 "Preferences.c"
- } else {
- ConfigFacade* _tmp9_;
-#line 173 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = config;
-#line 173 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "none");
-#line 1108 "Preferences.c"
- }
- }
-#line 165 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (config);
-#line 1113 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_color_changed (PreferencesDialog* self)
-{
- gchar* color = NULL;
- GtkColorButton* _tmp0_;
- GdkRGBA _tmp1_ = {0};
- GdkRGBA _tmp2_;
- gchar* _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
-#line 177 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->transparent_solid_color;
-#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_color_chooser_get_rgba (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, gtk_color_chooser_get_type ()) ? ((GtkColorChooser*) _tmp0_) : NULL, &_tmp1_);
-#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = _tmp1_;
-#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = gdk_rgba_to_string (&_tmp2_);
-#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- color = _tmp3_;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = _tmp4_;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_transparent_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), color);
-#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp5_);
-#line 177 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (color);
-#line 1149 "Preferences.c"
-}
-
-
-static gboolean
-preferences_dialog_on_local_pattern_help (PreferencesDialog* self,
- const gchar* ignore)
-{
- gboolean result = FALSE;
- GError * _inner_error_ = NULL;
-#line 184 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE);
-#line 184 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (ignore != NULL, FALSE);
-#line 1163 "Preferences.c"
- {
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GdkScreen* _tmp2_;
-#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = app_window_get_instance ();
-#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _tmp0_;
-#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow));
-#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- resources_launch_help (_tmp2_, "other-files.page", &_inner_error_);
-#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp1_);
-#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1180 "Preferences.c"
- goto __catch22_g_error;
- }
- }
- goto __finally22;
- __catch22_g_error:
- {
- GError* e = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- e = _inner_error_;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _inner_error_ = NULL;
-#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = e;
-#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = _tmp3_->message;
-#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_message ("Preferences.vala:188: Unable to launch help: %s", _tmp4_);
-#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_error_free0 (e);
-#line 1202 "Preferences.c"
- }
- __finally22:
-#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1207 "Preferences.c"
- gboolean _tmp5_ = FALSE;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.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 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_clear_error (&_inner_error_);
-#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return _tmp5_;
-#line 1215 "Preferences.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = TRUE;
-#line 190 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 1221 "Preferences.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1230 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_populate_app_combo_box (PreferencesDialog* self,
- GtkComboBox* combo_box,
- gchar** mime_types,
- int mime_types_length1,
- const gchar* current_app_executable,
- SortedList* * external_apps)
-{
- SortedList* _vala_external_apps = NULL;
- SortedList* _tmp0_;
- SortedList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- GtkCellRendererPixbuf* pixbuf_renderer = NULL;
- GtkCellRendererPixbuf* _tmp4_;
- GtkCellRendererText* text_renderer = NULL;
- GtkCellRendererText* _tmp5_;
- GtkCellRendererPixbuf* _tmp6_;
- GtkCellRendererText* _tmp7_;
- GtkCellRendererPixbuf* _tmp8_;
- GtkCellRendererText* _tmp9_;
- GtkListStore* combo_store = NULL;
- GtkListStore* _tmp10_;
- GtkTreeIter iter = {0};
- gint current_app = 0;
- GtkListStore* _tmp57_;
- gint _tmp58_;
- GError * _inner_error_ = NULL;
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (current_app_executable != NULL);
-#line 196 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _vala_assert (mime_types_length1 != 0, "mime_types.length != 0");
-#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = desktop_integration_get_apps_for_mime_types (mime_types, mime_types_length1);
-#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_vala_external_apps);
-#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _vala_external_apps = _tmp0_;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _vala_external_apps;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = _tmp2_;
-#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp3_ == 0) {
-#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (external_apps) {
-#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- *external_apps = _vala_external_apps;
-#line 1288 "Preferences.c"
- } else {
-#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_vala_external_apps);
-#line 1292 "Preferences.c"
- }
-#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return;
-#line 1296 "Preferences.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
-#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_object_ref_sink (_tmp4_);
-#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- pixbuf_renderer = _tmp4_;
-#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
-#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_object_ref_sink (_tmp5_);
-#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- text_renderer = _tmp5_;
-#line 205 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_cell_layout_clear (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout));
-#line 206 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = pixbuf_renderer;
-#line 206 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE);
-#line 207 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = text_renderer;
-#line 207 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE);
-#line 208 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = pixbuf_renderer;
-#line 208 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_cell_renderer_get_type (), GtkCellRenderer), "pixbuf", 0);
-#line 209 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = text_renderer;
-#line 209 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", 1);
-#line 212 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = gtk_list_store_new (2, gdk_pixbuf_get_type (), G_TYPE_STRING, -1);
-#line 212 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- combo_store = _tmp10_;
-#line 215 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- current_app = -1;
-#line 1334 "Preferences.c"
- {
- GeeIterator* _app_it = NULL;
- SortedList* _tmp11_;
- GeeIterator* _tmp12_;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = _vala_external_apps;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _app_it = _tmp12_;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- while (TRUE) {
-#line 1347 "Preferences.c"
- GeeIterator* _tmp13_;
- GAppInfo* app = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
- GtkListStore* _tmp16_;
- GtkTreeIter _tmp17_ = {0};
- GIcon* app_icon = NULL;
- GAppInfo* _tmp18_;
- GIcon* _tmp19_;
- GIcon* _tmp20_;
- GtkListStore* _tmp48_;
- GtkTreeIter _tmp49_;
- GAppInfo* _tmp50_;
- const gchar* _tmp51_;
- GValue _tmp52_ = {0};
- GAppInfo* _tmp53_;
- const gchar* _tmp54_;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = _app_it;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (!gee_iterator_next (_tmp13_)) {
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- break;
-#line 1371 "Preferences.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = _app_it;
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- app = (GAppInfo*) _tmp15_;
-#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp16_ = combo_store;
-#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_list_store_append (_tmp16_, &_tmp17_);
-#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- iter = _tmp17_;
-#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp18_ = app;
-#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp19_ = g_app_info_get_icon (_tmp18_);
-#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp20_ = _g_object_ref0 (_tmp19_);
-#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- app_icon = _tmp20_;
-#line 1393 "Preferences.c"
- {
- GIcon* _tmp21_;
-#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp21_ = app_icon;
-#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, g_file_icon_get_type ())) {
-#line 1400 "Preferences.c"
- GdkPixbuf* _tmp22_ = NULL;
- GIcon* _tmp23_;
- GFile* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- GdkPixbuf* _tmp27_;
- GdkPixbuf* _tmp28_;
- GtkListStore* _tmp29_;
- GtkTreeIter _tmp30_;
- GdkPixbuf* _tmp31_;
- GValue _tmp32_ = {0};
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp23_ = app_icon;
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp24_ = g_file_icon_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, g_file_icon_get_type (), GFileIcon));
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp25_ = g_file_get_path (_tmp24_);
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp26_ = _tmp25_;
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp27_ = gdk_pixbuf_new_from_file (_tmp26_, &_inner_error_);
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp28_ = _tmp27_;
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp26_);
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp22_ = _tmp28_;
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1430 "Preferences.c"
- goto __catch23_g_error;
- }
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp29_ = combo_store;
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp30_ = iter;
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp31_ = scale_pixbuf (_tmp22_, RESOURCES_DEFAULT_ICON_SCALE, GDK_INTERP_BILINEAR, FALSE);
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_value_init (&_tmp32_, gdk_pixbuf_get_type ());
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_value_take_object (&_tmp32_, _tmp31_);
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_list_store_set_value (_tmp29_, &_tmp30_, 0, &_tmp32_);
-#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- G_IS_VALUE (&_tmp32_) ? (g_value_unset (&_tmp32_), NULL) : NULL;
-#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp22_);
-#line 1449 "Preferences.c"
- } else {
- GIcon* _tmp33_;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp33_ = app_icon;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp33_, g_themed_icon_get_type ())) {
-#line 1456 "Preferences.c"
- GdkPixbuf* icon_pixbuf = NULL;
- GtkIconTheme* _tmp34_;
- GIcon* _tmp35_;
- gchar** _tmp36_;
- gchar** _tmp37_;
- const gchar* _tmp38_;
- GdkPixbuf* _tmp39_;
- GtkListStore* _tmp40_;
- GtkTreeIter _tmp41_;
- GdkPixbuf* _tmp42_;
- GValue _tmp43_ = {0};
-#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp34_ = gtk_icon_theme_get_default ();
-#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp35_ = app_icon;
-#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp37_ = _tmp36_ = g_themed_icon_get_names (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, g_themed_icon_get_type (), GThemedIcon));
-#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp38_ = _tmp37_[0];
-#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp39_ = gtk_icon_theme_load_icon (_tmp34_, _tmp38_, RESOURCES_DEFAULT_ICON_SCALE, GTK_ICON_LOOKUP_FORCE_SIZE, &_inner_error_);
-#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- icon_pixbuf = _tmp39_;
-#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1482 "Preferences.c"
- goto __catch23_g_error;
- }
-#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp40_ = combo_store;
-#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp41_ = iter;
-#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp42_ = icon_pixbuf;
-#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_value_init (&_tmp43_, gdk_pixbuf_get_type ());
-#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_value_set_object (&_tmp43_, _tmp42_);
-#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_list_store_set_value (_tmp40_, &_tmp41_, 0, &_tmp43_);
-#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- G_IS_VALUE (&_tmp43_) ? (g_value_unset (&_tmp43_), NULL) : NULL;
-#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (icon_pixbuf);
-#line 1501 "Preferences.c"
- }
- }
- }
- goto __finally23;
- __catch23_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp44_;
- const gchar* _tmp45_;
- gchar* _tmp46_;
- gchar* _tmp47_;
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _error_ = _inner_error_;
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _inner_error_ = NULL;
-#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp44_ = _error_;
-#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp45_ = _tmp44_->message;
-#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp46_ = g_strconcat ("Error loading icon pixbuf: ", _tmp45_, NULL);
-#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp47_ = _tmp46_;
-#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_warning ("Preferences.vala:234: %s", _tmp47_);
-#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp47_);
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_error_free0 (_error_);
-#line 1531 "Preferences.c"
- }
- __finally23:
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (app_icon);
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (app);
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_app_it);
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (combo_store);
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (text_renderer);
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (pixbuf_renderer);
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.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 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_clear_error (&_inner_error_);
-#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return;
-#line 1554 "Preferences.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp48_ = combo_store;
-#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp49_ = iter;
-#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp50_ = app;
-#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp51_ = g_app_info_get_name (_tmp50_);
-#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_value_init (&_tmp52_, G_TYPE_STRING);
-#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_value_set_string (&_tmp52_, _tmp51_);
-#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_list_store_set_value (_tmp48_, &_tmp49_, 1, &_tmp52_);
-#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- G_IS_VALUE (&_tmp52_) ? (g_value_unset (&_tmp52_), NULL) : NULL;
-#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp53_ = app;
-#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp54_ = g_app_info_get_commandline (_tmp53_);
-#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (g_strcmp0 (_tmp54_, current_app_executable) == 0) {
-#line 1578 "Preferences.c"
- SortedList* _tmp55_;
- GAppInfo* _tmp56_;
-#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp55_ = _vala_external_apps;
-#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp56_ = app;
-#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- current_app = sorted_list_index_of (_tmp55_, _tmp56_);
-#line 1587 "Preferences.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (app_icon);
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (app);
-#line 1593 "Preferences.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_app_it);
-#line 1597 "Preferences.c"
- }
-#line 245 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp57_ = combo_store;
-#line 245 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_set_model (combo_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_tree_model_get_type (), GtkTreeModel));
-#line 247 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp58_ = current_app;
-#line 247 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp58_ != -1) {
-#line 1607 "Preferences.c"
- gint _tmp59_;
-#line 248 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp59_ = current_app;
-#line 248 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_set_active (combo_box, _tmp59_);
-#line 1613 "Preferences.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (combo_store);
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (text_renderer);
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (pixbuf_renderer);
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (external_apps) {
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- *external_apps = _vala_external_apps;
-#line 1625 "Preferences.c"
- } else {
-#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_vala_external_apps);
-#line 1629 "Preferences.c"
- }
-}
-
-
-static void
-preferences_dialog_setup_dir_pattern (PreferencesDialog* self,
- GtkComboBox* combo_box,
- GtkEntry* entry)
-{
- gchar* pattern = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean found = FALSE;
- const gchar* _tmp4_;
- gboolean _tmp29_;
-#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
-#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (GTK_IS_ENTRY (entry));
-#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _tmp0_;
-#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = configuration_facade_get_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = _tmp2_;
-#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp1_);
-#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- pattern = _tmp3_;
-#line 253 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- found = FALSE;
-#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = pattern;
-#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (NULL != _tmp4_) {
-#line 1671 "Preferences.c"
- gint i = 0;
-#line 256 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- i = 0;
-#line 1675 "Preferences.c"
- {
- GeeArrayList* _pf_list = NULL;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
- gint _pf_size = 0;
- GeeArrayList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _pf_index = 0;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = self->priv->path_formats;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _pf_list = _tmp6_;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = _pf_list;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = _tmp8_;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _pf_size = _tmp9_;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _pf_index = -1;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- while (TRUE) {
-#line 1703 "Preferences.c"
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- PreferencesDialogPathFormat* pf = NULL;
- GeeArrayList* _tmp13_;
- gint _tmp14_;
- gpointer _tmp15_;
- PreferencesDialogPathFormat* _tmp16_;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
- gint _tmp20_;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = _pf_index;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _pf_index = _tmp10_ + 1;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = _pf_index;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = _pf_size;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (!(_tmp11_ < _tmp12_)) {
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- break;
-#line 1727 "Preferences.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = _pf_list;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = _pf_index;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp15_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp14_);
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- pf = (PreferencesDialogPathFormat*) _tmp15_;
-#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp16_ = pf;
-#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp17_ = _tmp16_->pattern;
-#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp18_ = pattern;
-#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (g_strcmp0 (_tmp17_, _tmp18_) == 0) {
-#line 1745 "Preferences.c"
- gint _tmp19_;
-#line 259 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp19_ = i;
-#line 259 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_set_active (combo_box, _tmp19_);
-#line 260 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- found = TRUE;
-#line 261 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _preferences_dialog_path_format_unref0 (pf);
-#line 261 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- break;
-#line 1757 "Preferences.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp20_ = i;
-#line 263 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- i = _tmp20_ + 1;
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _preferences_dialog_path_format_unref0 (pf);
-#line 1765 "Preferences.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_pf_list);
-#line 1769 "Preferences.c"
- }
- } else {
- gchar* s = NULL;
- ConfigFacade* _tmp21_;
- ConfigFacade* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- const gchar* _tmp25_;
-#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp21_ = config_facade_get_instance ();
-#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp22_ = _tmp21_;
-#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp23_ = configuration_facade_get_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp24_ = _tmp23_;
-#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp22_);
-#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- s = _tmp24_;
-#line 268 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp25_ = s;
-#line 268 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (!is_string_empty (_tmp25_)) {
-#line 1794 "Preferences.c"
- GeeArrayList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
-#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp26_ = self->priv->path_formats;
-#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp27_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp28_ = _tmp27_;
-#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_set_active (combo_box, _tmp28_ - 1);
-#line 270 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- found = TRUE;
-#line 1808 "Preferences.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (s);
-#line 1812 "Preferences.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp29_ = found;
-#line 274 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (!_tmp29_) {
-#line 275 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_set_active (combo_box, 0);
-#line 1820 "Preferences.c"
- }
-#line 278 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_dir_pattern_combo_changed (self);
-#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (pattern);
-#line 1826 "Preferences.c"
-}
-
-
-void
-preferences_dialog_show_preferences (void)
-{
- PreferencesDialog* _tmp0_;
- PreferencesDialog* _tmp2_;
- PreferencesDialog* _tmp3_;
- PreferencesDialog* _tmp4_;
- GtkFileChooserButton* _tmp5_;
- GFile* _tmp6_;
- GFile* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- PreferencesDialog* _tmp10_;
-#line 282 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = preferences_dialog_preferences_dialog;
-#line 282 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp0_ == NULL) {
-#line 1847 "Preferences.c"
- PreferencesDialog* _tmp1_;
-#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = preferences_dialog_new ();
-#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_object_ref_sink (_tmp1_);
-#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (preferences_dialog_preferences_dialog);
-#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_preferences_dialog = _tmp1_;
-#line 1857 "Preferences.c"
- }
-#line 285 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = preferences_dialog_preferences_dialog;
-#line 285 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_populate_preference_options (_tmp2_);
-#line 286 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = preferences_dialog_preferences_dialog;
-#line 286 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = preferences_dialog_preferences_dialog;
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = _tmp4_->priv->library_dir_button;
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = app_dirs_get_import_dir ();
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = _tmp6_;
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = g_file_get_path (_tmp7_);
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = _tmp8_;
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp9_);
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp9_);
-#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp7_);
-#line 291 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = preferences_dialog_preferences_dialog;
-#line 291 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_window_get_type (), GtkWindow));
-#line 1889 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_commit_on_close (PreferencesDialog* self)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- GtkCheckButton* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- GtkCheckButton* _tmp9_;
- gboolean _tmp10_;
- gboolean _tmp11_;
- const gchar* _tmp12_;
- PreferencesDialogPathFormat* pf = NULL;
- GeeArrayList* _tmp14_;
- GtkComboBoxText* _tmp15_;
- gpointer _tmp16_;
- PreferencesDialogPathFormat* _tmp17_;
- const gchar* _tmp18_;
-#line 296 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _tmp0_;
-#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- config_facade_commit_bg_color (_tmp1_);
-#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp1_);
-#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = _tmp2_;
-#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = self->priv->autoimport;
-#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = _tmp5_;
-#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_);
-#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp3_);
-#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = _tmp7_;
-#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = self->priv->write_metadata;
-#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = _tmp10_;
-#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp11_);
-#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp8_);
-#line 301 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = self->priv->lib_dir;
-#line 301 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp12_ != NULL) {
-#line 1957 "Preferences.c"
- const gchar* _tmp13_;
-#line 302 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = self->priv->lib_dir;
-#line 302 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- app_dirs_set_import_dir (_tmp13_);
-#line 1963 "Preferences.c"
- }
-#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = self->priv->path_formats;
-#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp15_ = self->priv->dir_pattern_combo;
-#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox)));
-#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- pf = (PreferencesDialogPathFormat*) _tmp16_;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp17_ = pf;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp18_ = _tmp17_->pattern;
-#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (NULL == _tmp18_) {
-#line 1979 "Preferences.c"
- ConfigFacade* _tmp19_;
- ConfigFacade* _tmp20_;
- GtkEntry* _tmp21_;
- const gchar* _tmp22_;
- const gchar* _tmp23_;
- ConfigFacade* _tmp24_;
- ConfigFacade* _tmp25_;
-#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp19_ = config_facade_get_instance ();
-#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp20_ = _tmp19_;
-#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp21_ = self->priv->dir_pattern_entry;
-#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp22_ = gtk_entry_get_text (_tmp21_);
-#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp23_ = _tmp22_;
-#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp23_);
-#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp20_);
-#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp24_ = config_facade_get_instance ();
-#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp25_ = _tmp24_;
-#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), NULL);
-#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp25_);
-#line 2009 "Preferences.c"
- } else {
- ConfigFacade* _tmp26_;
- ConfigFacade* _tmp27_;
- PreferencesDialogPathFormat* _tmp28_;
- const gchar* _tmp29_;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp26_ = config_facade_get_instance ();
-#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp27_ = _tmp26_;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp28_ = pf;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp29_ = _tmp28_->pattern;
-#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp29_);
-#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp27_);
-#line 2027 "Preferences.c"
- }
-#line 296 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _preferences_dialog_path_format_unref0 (pf);
-#line 2031 "Preferences.c"
-}
-
-
-static gboolean
-preferences_dialog_on_delete (PreferencesDialog* self)
-{
- gboolean result = FALSE;
-#line 313 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE);
-#line 314 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (!preferences_dialog_get_allow_closing (self)) {
-#line 315 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = TRUE;
-#line 315 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 2047 "Preferences.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_commit_on_close (self);
-#line 318 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = gtk_widget_hide_on_delete (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 318 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 2055 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_close (PreferencesDialog* self)
-{
-#line 321 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 322 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (!preferences_dialog_get_allow_closing (self)) {
-#line 323 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return;
-#line 2068 "Preferences.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 326 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_commit_on_close (self);
-#line 2074 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_value_changed (PreferencesDialog* self)
-{
- GtkAdjustment* _tmp0_;
- GtkAdjustment* _tmp1_;
-#line 329 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->bg_color_adjustment;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = self->priv->bg_color_adjustment;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_set_background_color (self, ((gdouble) (gtk_adjustment_get_upper (_tmp0_) - gtk_adjustment_get_value (_tmp1_))) / 65535.0);
-#line 2091 "Preferences.c"
-}
-
-
-static gboolean
-preferences_dialog_on_bg_color_reset (PreferencesDialog* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- guint _tmp2_;
-#line 334 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE);
-#line 334 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = event->button;
-#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp2_ == ((guint) 1)) {
-#line 2111 "Preferences.c"
- GdkEventType _tmp3_;
-#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = event->type;
-#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _tmp3_ == GDK_BUTTON_PRESS;
-#line 2117 "Preferences.c"
- } else {
-#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = FALSE;
-#line 2121 "Preferences.c"
- }
-#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp1_) {
-#line 2125 "Preferences.c"
- GdkModifierType _tmp4_;
-#line 336 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = event->state;
-#line 336 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = has_only_key_modifier (_tmp4_, GDK_CONTROL_MASK);
-#line 2131 "Preferences.c"
- } else {
-#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = FALSE;
-#line 2135 "Preferences.c"
- }
-#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp0_) {
-#line 2139 "Preferences.c"
- GtkScale* _tmp5_;
- GtkAdjustment* _tmp6_;
- GdkRGBA _tmp7_ = {0};
- gdouble _tmp8_;
-#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = self->priv->bg_color_slider;
-#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = self->priv->bg_color_adjustment;
-#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- parse_color (CONFIG_FACADE_DEFAULT_BG_COLOR, &_tmp7_);
-#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = _tmp7_.red;
-#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_range_get_type (), GtkRange), gtk_adjustment_get_upper (_tmp6_) - (_tmp8_ * 65536.0f));
-#line 340 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_value_changed (self);
-#line 342 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = TRUE;
-#line 342 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 2160 "Preferences.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = FALSE;
-#line 345 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 2166 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_dir_pattern_combo_changed (PreferencesDialog* self)
-{
- PreferencesDialogPathFormat* pf = NULL;
- GeeArrayList* _tmp0_;
- GtkComboBoxText* _tmp1_;
- gpointer _tmp2_;
- PreferencesDialogPathFormat* _tmp3_;
- const gchar* _tmp4_;
-#line 348 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->path_formats;
-#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = self->priv->dir_pattern_combo;
-#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)));
-#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- pf = (PreferencesDialogPathFormat*) _tmp2_;
-#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = pf;
-#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = _tmp3_->pattern;
-#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (NULL == _tmp4_) {
-#line 2195 "Preferences.c"
- gchar* dir_pattern = NULL;
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- const gchar* _tmp9_;
- GtkEntry* _tmp11_;
- const gchar* _tmp12_;
- GtkEntry* _tmp13_;
- GtkEntry* _tmp14_;
-#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = config_facade_get_instance ();
-#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = _tmp5_;
-#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = configuration_facade_get_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = _tmp7_;
-#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp6_);
-#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- dir_pattern = _tmp8_;
-#line 353 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = dir_pattern;
-#line 353 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (is_string_empty (_tmp9_)) {
-#line 2222 "Preferences.c"
- gchar* _tmp10_;
-#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = g_strdup ("");
-#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (dir_pattern);
-#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- dir_pattern = _tmp10_;
-#line 2230 "Preferences.c"
- }
-#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = self->priv->dir_pattern_entry;
-#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = dir_pattern;
-#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_entry_set_text (_tmp11_, _tmp12_);
-#line 356 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = self->priv->dir_pattern_entry;
-#line 356 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_object_set (_tmp13_, "editable", TRUE, NULL);
-#line 357 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = self->priv->dir_pattern_entry;
-#line 357 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (dir_pattern);
-#line 2248 "Preferences.c"
- } else {
- GtkEntry* _tmp15_;
- PreferencesDialogPathFormat* _tmp16_;
- const gchar* _tmp17_;
- GtkEntry* _tmp18_;
- GtkEntry* _tmp19_;
-#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp15_ = self->priv->dir_pattern_entry;
-#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp16_ = pf;
-#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp17_ = _tmp16_->pattern;
-#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_entry_set_text (_tmp15_, _tmp17_);
-#line 360 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp18_ = self->priv->dir_pattern_entry;
-#line 360 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_object_set (_tmp18_, "editable", FALSE, NULL);
-#line 361 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp19_ = self->priv->dir_pattern_entry;
-#line 361 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 2271 "Preferences.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _preferences_dialog_path_format_unref0 (pf);
-#line 2275 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_dir_pattern_entry_changed (PreferencesDialog* self)
-{
- gchar* example = NULL;
- GDateTime* _tmp0_;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gboolean _tmp5_ = FALSE;
- const gchar* _tmp6_;
-#line 365 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->example_date;
-#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = self->priv->dir_pattern_entry;
-#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = gtk_entry_get_text (_tmp1_);
-#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = _tmp2_;
-#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = g_date_time_format (_tmp0_, _tmp3_);
-#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- example = _tmp4_;
-#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = example;
-#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (is_string_empty (_tmp6_)) {
-#line 2308 "Preferences.c"
- GtkEntry* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
-#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = self->priv->dir_pattern_entry;
-#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = gtk_entry_get_text (_tmp7_);
-#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = _tmp8_;
-#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = !is_string_empty (_tmp9_);
-#line 2320 "Preferences.c"
- } else {
-#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = FALSE;
-#line 2324 "Preferences.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (_tmp5_) {
-#line 2328 "Preferences.c"
- GtkLabel* _tmp10_;
- GtkEntry* _tmp11_;
- GtkEntry* _tmp12_;
-#line 369 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = self->priv->dir_pattern_example;
-#line 369 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_label_set_text (_tmp10_, _ ("Invalid pattern"));
-#line 370 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = self->priv->dir_pattern_entry;
-#line 370 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_entry_set_icon_from_icon_name (_tmp11_, GTK_ENTRY_ICON_SECONDARY, "dialog-error");
-#line 371 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = self->priv->dir_pattern_entry;
-#line 371 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_entry_set_icon_activatable (_tmp12_, GTK_ENTRY_ICON_SECONDARY, FALSE);
-#line 372 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_set_allow_closing (self, FALSE);
-#line 2346 "Preferences.c"
- } else {
- GtkLabel* _tmp13_;
- const gchar* _tmp14_;
- GtkEntry* _tmp15_;
-#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = self->priv->dir_pattern_example;
-#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = example;
-#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_label_set_text (_tmp13_, _tmp14_);
-#line 376 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp15_ = self->priv->dir_pattern_entry;
-#line 376 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_entry_set_icon_from_icon_name (_tmp15_, GTK_ENTRY_ICON_SECONDARY, NULL);
-#line 377 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_set_allow_closing (self, TRUE);
-#line 2363 "Preferences.c"
- }
-#line 365 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (example);
-#line 2367 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_set_allow_closing (PreferencesDialog* self,
- gboolean allow)
-{
-#line 381 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 382 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_window_set_deletable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), allow);
-#line 383 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->allow_closing = allow;
-#line 2381 "Preferences.c"
-}
-
-
-static gboolean
-preferences_dialog_get_allow_closing (PreferencesDialog* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 386 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE);
-#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->allow_closing;
-#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = _tmp0_;
-#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 2398 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_set_background_color (PreferencesDialog* self,
- gdouble bg_color_value)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- GdkRGBA _tmp2_ = {0};
-#line 390 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _tmp0_;
-#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_to_grayscale (self, bg_color_value, &_tmp2_);
-#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- config_facade_set_bg_color (_tmp1_, &_tmp2_);
-#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp1_);
-#line 2421 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_to_grayscale (PreferencesDialog* self,
- gdouble color_value,
- GdkRGBA* result)
-{
- GdkRGBA color = {0};
-#line 394 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 395 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- memset (&color, 0, sizeof (GdkRGBA));
-#line 397 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- color.red = color_value;
-#line 398 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- color.green = color_value;
-#line 399 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- color.blue = color_value;
-#line 400 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- color.alpha = 1.0;
-#line 402 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- *result = color;
-#line 402 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return;
-#line 2447 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_photo_editor_changed (PreferencesDialog* self)
-{
- gint _tmp0_ = 0;
- GtkComboBox* _tmp1_;
- SortedList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint photo_app_choice_index = 0;
- GAppInfo* app = NULL;
- SortedList* _tmp9_;
- gpointer _tmp10_;
- ConfigFacade* _tmp11_;
- ConfigFacade* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 405 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = self->priv->photo_editor_combo;
-#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = self->priv->external_photo_apps;
-#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = _tmp3_;
-#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (gtk_combo_box_get_active (_tmp1_) < _tmp4_) {
-#line 2481 "Preferences.c"
- GtkComboBox* _tmp5_;
-#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = self->priv->photo_editor_combo;
-#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = gtk_combo_box_get_active (_tmp5_);
-#line 2487 "Preferences.c"
- } else {
- SortedList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = self->priv->external_photo_apps;
-#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = _tmp7_;
-#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = _tmp8_;
-#line 2500 "Preferences.c"
- }
-#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- photo_app_choice_index = _tmp0_;
-#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = self->priv->external_photo_apps;
-#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = sorted_list_get_at (_tmp9_, photo_app_choice_index);
-#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- app = (GAppInfo*) _tmp10_;
-#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = config_facade_get_instance ();
-#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = _tmp11_;
-#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = desktop_integration_get_app_open_command (app);
-#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = _tmp13_;
-#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp14_);
-#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp14_);
-#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp12_);
-#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp15_ = desktop_integration_get_app_open_command (app);
-#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp16_ = _tmp15_;
-#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_debug ("Preferences.vala:413: setting external photo editor to: %s", _tmp16_);
-#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (_tmp16_);
-#line 405 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (app);
-#line 2534 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_raw_editor_changed (PreferencesDialog* self)
-{
- gint _tmp0_ = 0;
- GtkComboBox* _tmp1_;
- SortedList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint raw_app_choice_index = 0;
- GAppInfo* app = NULL;
- SortedList* _tmp9_;
- gpointer _tmp10_;
- ConfigFacade* _tmp11_;
- ConfigFacade* _tmp12_;
- const gchar* _tmp13_;
- const gchar* _tmp14_;
-#line 416 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = self->priv->raw_editor_combo;
-#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = self->priv->external_raw_apps;
-#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp4_ = _tmp3_;
-#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (gtk_combo_box_get_active (_tmp1_) < _tmp4_) {
-#line 2566 "Preferences.c"
- GtkComboBox* _tmp5_;
-#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp5_ = self->priv->raw_editor_combo;
-#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = gtk_combo_box_get_active (_tmp5_);
-#line 2572 "Preferences.c"
- } else {
- SortedList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp6_ = self->priv->external_raw_apps;
-#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp8_ = _tmp7_;
-#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = _tmp8_;
-#line 2585 "Preferences.c"
- }
-#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- raw_app_choice_index = _tmp0_;
-#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp9_ = self->priv->external_raw_apps;
-#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp10_ = sorted_list_get_at (_tmp9_, raw_app_choice_index);
-#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- app = (GAppInfo*) _tmp10_;
-#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp11_ = config_facade_get_instance ();
-#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp12_ = _tmp11_;
-#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp13_ = g_app_info_get_commandline (app);
-#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp13_);
-#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp12_);
-#line 424 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp14_ = g_app_info_get_commandline (app);
-#line 424 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_debug ("Preferences.vala:424: setting external raw editor to: %s", _tmp14_);
-#line 416 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (app);
-#line 2611 "Preferences.c"
-}
-
-
-static RawDeveloper
-preferences_dialog_raw_developer_from_combo (PreferencesDialog* self)
-{
- RawDeveloper result = 0;
- GtkComboBoxText* _tmp0_;
-#line 427 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), 0);
-#line 428 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->default_raw_developer_combo;
-#line 428 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)) == 0) {
-#line 429 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = RAW_DEVELOPER_CAMERA;
-#line 429 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 2630 "Preferences.c"
- }
-#line 430 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = RAW_DEVELOPER_SHOTWELL;
-#line 430 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 2636 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_set_raw_developer_combo (PreferencesDialog* self,
- RawDeveloper d)
-{
-#line 433 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 434 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (d == RAW_DEVELOPER_CAMERA) {
-#line 2648 "Preferences.c"
- GtkComboBoxText* _tmp0_;
-#line 435 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->default_raw_developer_combo;
-#line 435 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 2654 "Preferences.c"
- } else {
- GtkComboBoxText* _tmp1_;
-#line 437 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = self->priv->default_raw_developer_combo;
-#line 437 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), 1);
-#line 2661 "Preferences.c"
- }
-}
-
-
-static void
-preferences_dialog_on_default_raw_developer_changed (PreferencesDialog* self)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 440 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _tmp0_;
-#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), preferences_dialog_raw_developer_from_combo (self));
-#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp1_);
-#line 2681 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_current_folder_changed (PreferencesDialog* self)
-{
- GtkFileChooserButton* _tmp0_;
- gchar* _tmp1_;
-#line 444 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->library_dir_button;
-#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = gtk_file_chooser_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (self->priv->lib_dir);
-#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->lib_dir = _tmp1_;
-#line 2700 "Preferences.c"
-}
-
-
-static void
-_preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed (GtkFileChooser* _sender,
- gpointer self)
-{
-#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_on_current_folder_changed ((PreferencesDialog*) self);
-#line 2710 "Preferences.c"
-}
-
-
-static gboolean
-preferences_dialog_real_map_event (GtkWidget* base,
- GdkEventAny* event)
-{
- PreferencesDialog * self;
- gboolean result = FALSE;
- gboolean _result_ = FALSE;
- GtkFileChooserButton* _tmp0_;
-#line 448 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREFERENCES_DIALOG, PreferencesDialog);
-#line 448 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 449 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _result_ = GTK_WIDGET_CLASS (preferences_dialog_parent_class)->map_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), gtk_widget_get_type (), GtkWidget), event);
-#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = self->priv->library_dir_button;
-#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_file_chooser_get_type (), GtkFileChooser), "current-folder-changed", (GCallback) _preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed, self, 0);
-#line 456 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- result = _result_;
-#line 456 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return result;
-#line 2736 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_add_to_dir_formats (PreferencesDialog* self,
- const gchar* name,
- const gchar* pattern)
-{
- PreferencesDialogPathFormat* pf = NULL;
- PreferencesDialogPathFormat* _tmp0_;
- GeeArrayList* _tmp1_;
- GtkComboBoxText* _tmp2_;
-#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (name != NULL);
-#line 460 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = preferences_dialog_path_format_new (name, pattern);
-#line 460 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- pf = _tmp0_;
-#line 461 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = self->priv->path_formats;
-#line 461 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), pf);
-#line 462 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = self->priv->dir_pattern_combo;
-#line 462 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_combo_box_text_append_text (_tmp2_, name);
-#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _preferences_dialog_path_format_unref0 (pf);
-#line 2767 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_on_lowercase_toggled (PreferencesDialog* self)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- GtkCheckButton* _tmp2_;
-#line 465 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (IS_PREFERENCES_DIALOG (self));
-#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = _tmp0_;
-#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = self->priv->lowercase;
-#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- configuration_facade_set_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton)));
-#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (_tmp1_);
-#line 2789 "Preferences.c"
-}
-
-
-static PreferencesDialogPathFormat*
-preferences_dialog_path_format_construct (GType object_type,
- const gchar* name,
- const gchar* pattern)
-{
- PreferencesDialogPathFormat* self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self = (PreferencesDialogPathFormat*) g_type_create_instance (object_type);
-#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = g_strdup (name);
-#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (self->name);
-#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->name = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = g_strdup (pattern);
-#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (self->pattern);
-#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->pattern = _tmp1_;
-#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return self;
-#line 2819 "Preferences.c"
-}
-
-
-static PreferencesDialogPathFormat*
-preferences_dialog_path_format_new (const gchar* name,
- const gchar* pattern)
-{
-#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return preferences_dialog_path_format_construct (PREFERENCES_DIALOG_TYPE_PATH_FORMAT, name, pattern);
-#line 2829 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_value_path_format_init (GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- value->data[0].v_pointer = NULL;
-#line 2838 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_value_path_format_free_value (GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_path_format_unref (value->data[0].v_pointer);
-#line 2849 "Preferences.c"
- }
-}
-
-
-static void
-preferences_dialog_value_path_format_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (src_value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- dest_value->data[0].v_pointer = preferences_dialog_path_format_ref (src_value->data[0].v_pointer);
-#line 2862 "Preferences.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2866 "Preferences.c"
- }
-}
-
-
-static gpointer
-preferences_dialog_value_path_format_peek_pointer (const GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return value->data[0].v_pointer;
-#line 2876 "Preferences.c"
-}
-
-
-static gchar*
-preferences_dialog_value_path_format_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (collect_values[0].v_pointer) {
-#line 2888 "Preferences.c"
- PreferencesDialogPathFormat * object;
- object = collect_values[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2895 "Preferences.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.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 2899 "Preferences.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- value->data[0].v_pointer = preferences_dialog_path_format_ref (object);
-#line 2903 "Preferences.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- value->data[0].v_pointer = NULL;
-#line 2907 "Preferences.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return NULL;
-#line 2911 "Preferences.c"
-}
-
-
-static gchar*
-preferences_dialog_value_path_format_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PreferencesDialogPathFormat ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (!object_p) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2927 "Preferences.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (!value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- *object_p = NULL;
-#line 2933 "Preferences.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- *object_p = value->data[0].v_pointer;
-#line 2937 "Preferences.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- *object_p = preferences_dialog_path_format_ref (value->data[0].v_pointer);
-#line 2941 "Preferences.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return NULL;
-#line 2945 "Preferences.c"
-}
-
-
-static GParamSpec*
-preferences_dialog_param_spec_path_format (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PreferencesDialogParamSpecPathFormat* spec;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PREFERENCES_DIALOG_TYPE_PATH_FORMAT), NULL);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return G_PARAM_SPEC (spec);
-#line 2965 "Preferences.c"
-}
-
-
-static gpointer
-preferences_dialog_value_get_path_format (const GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT), NULL);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return value->data[0].v_pointer;
-#line 2976 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_value_set_path_format (GValue* value,
- gpointer v_object)
-{
- PreferencesDialogPathFormat * old;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT));
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- old = value->data[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (v_object) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PREFERENCES_DIALOG_TYPE_PATH_FORMAT));
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- value->data[0].v_pointer = v_object;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_path_format_ref (value->data[0].v_pointer);
-#line 2999 "Preferences.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- value->data[0].v_pointer = NULL;
-#line 3003 "Preferences.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (old) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_path_format_unref (old);
-#line 3009 "Preferences.c"
- }
-}
-
-
-static void
-preferences_dialog_value_take_path_format (GValue* value,
- gpointer v_object)
-{
- PreferencesDialogPathFormat * old;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT));
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- old = value->data[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (v_object) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PREFERENCES_DIALOG_TYPE_PATH_FORMAT));
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- value->data[0].v_pointer = v_object;
-#line 3031 "Preferences.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- value->data[0].v_pointer = NULL;
-#line 3035 "Preferences.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (old) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_path_format_unref (old);
-#line 3041 "Preferences.c"
- }
-}
-
-
-static void
-preferences_dialog_path_format_class_init (PreferencesDialogPathFormatClass * klass)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_path_format_parent_class = g_type_class_peek_parent (klass);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- ((PreferencesDialogPathFormatClass *) klass)->finalize = preferences_dialog_path_format_finalize;
-#line 3053 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_path_format_instance_init (PreferencesDialogPathFormat * self)
-{
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->ref_count = 1;
-#line 3062 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_path_format_finalize (PreferencesDialogPathFormat * obj)
-{
- PreferencesDialogPathFormat * self;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormat);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_signal_handlers_destroy (self);
-#line 15 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (self->name);
-#line 16 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (self->pattern);
-#line 3078 "Preferences.c"
-}
-
-
-static GType
-preferences_dialog_path_format_get_type (void)
-{
- static volatile gsize preferences_dialog_path_format_type_id__volatile = 0;
- if (g_once_init_enter (&preferences_dialog_path_format_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { preferences_dialog_value_path_format_init, preferences_dialog_value_path_format_free_value, preferences_dialog_value_path_format_copy_value, preferences_dialog_value_path_format_peek_pointer, "p", preferences_dialog_value_path_format_collect_value, "p", preferences_dialog_value_path_format_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PreferencesDialogPathFormatClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) preferences_dialog_path_format_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreferencesDialogPathFormat), 0, (GInstanceInitFunc) preferences_dialog_path_format_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType preferences_dialog_path_format_type_id;
- preferences_dialog_path_format_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PreferencesDialogPathFormat", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&preferences_dialog_path_format_type_id__volatile, preferences_dialog_path_format_type_id);
- }
- return preferences_dialog_path_format_type_id__volatile;
-}
-
-
-static gpointer
-preferences_dialog_path_format_ref (gpointer instance)
-{
- PreferencesDialogPathFormat * self;
- self = instance;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- return instance;
-#line 3107 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_path_format_unref (gpointer instance)
-{
- PreferencesDialogPathFormat * self;
- self = instance;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- PREFERENCES_DIALOG_PATH_FORMAT_GET_CLASS (self)->finalize (self);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3122 "Preferences.c"
- }
-}
-
-
-static void
-preferences_dialog_class_init (PreferencesDialogClass * klass)
-{
- gint PreferencesDialog_private_offset;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- preferences_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_type_class_add_private (klass, sizeof (PreferencesDialogPrivate));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- ((GtkWidgetClass *) klass)->map_event = (gboolean (*) (GtkWidget *, GdkEventAny*)) preferences_dialog_real_map_event;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- G_OBJECT_CLASS (klass)->finalize = preferences_dialog_finalize;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- PreferencesDialog_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/preferences_dialog.ui");
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "bg_color_adjustment", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, bg_color_adjustment));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "bg_color_slider", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, bg_color_slider));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "photo_editor_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, photo_editor_combo));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "raw_editor_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, raw_editor_combo));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "library_dir_button", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, library_dir_button));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_combo));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_entry", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_entry));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_example", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_example));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "lowercase", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, lowercase));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "default_raw_developer_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, default_raw_developer_combo));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "autoimport", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, autoimport));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "write_metadata", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, write_metadata));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "pattern_help", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, pattern_help));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "preferences_notebook", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, preferences_notebook));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_checker_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_checker_radio));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_solid_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_solid_radio));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_solid_color", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_solid_color));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_none_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_none_radio));
-#line 3179 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_instance_init (PreferencesDialog * self)
-{
- GeeArrayList* _tmp0_;
- GDateTime* _tmp1_;
- PluginsManifestWidgetMediator* _tmp2_;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv = PREFERENCES_DIALOG_GET_PRIVATE (self);
-#line 39 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->allow_closing = FALSE;
-#line 40 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->lib_dir = NULL;
-#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp0_ = gee_array_list_new (PREFERENCES_DIALOG_TYPE_PATH_FORMAT, (GBoxedCopyFunc) preferences_dialog_path_format_ref, (GDestroyNotify) preferences_dialog_path_format_unref, NULL, NULL, NULL);
-#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->path_formats = _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp1_ = g_date_time_new_local (2009, 3, 10, 18, 16, (gdouble) 11);
-#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->example_date = _tmp1_;
-#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _tmp2_ = plugins_manifest_widget_mediator_new ();
-#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- g_object_ref_sink (_tmp2_);
-#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self->priv->plugins_mediator = _tmp2_;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 3211 "Preferences.c"
-}
-
-
-static void
-preferences_dialog_finalize (GObject * obj)
-{
- PreferencesDialog * self;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREFERENCES_DIALOG, PreferencesDialog);
-#line 22 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->bg_color_adjustment);
-#line 24 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->bg_color_slider);
-#line 26 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->photo_editor_combo);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->raw_editor_combo);
-#line 29 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->external_raw_apps);
-#line 30 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->external_photo_apps);
-#line 32 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->library_dir_button);
-#line 34 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->dir_pattern_combo);
-#line 36 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->dir_pattern_entry);
-#line 38 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->dir_pattern_example);
-#line 40 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_free0 (self->priv->lib_dir);
-#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->path_formats);
-#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_date_time_unref0 (self->priv->example_date);
-#line 44 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->lowercase);
-#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->plugins_mediator);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->default_raw_developer_combo);
-#line 50 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->autoimport);
-#line 52 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->write_metadata);
-#line 54 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->pattern_help);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->preferences_notebook);
-#line 59 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->transparent_checker_radio);
-#line 61 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->transparent_solid_radio);
-#line 63 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->transparent_solid_color);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- _g_object_unref0 (self->priv->transparent_none_radio);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
- G_OBJECT_CLASS (preferences_dialog_parent_class)->finalize (obj);
-#line 3271 "Preferences.c"
-}
-
-
-GType
-preferences_dialog_get_type (void)
-{
- static volatile gsize preferences_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&preferences_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PreferencesDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) preferences_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreferencesDialog), 0, (GInstanceInitFunc) preferences_dialog_instance_init, NULL };
- GType preferences_dialog_type_id;
- preferences_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "PreferencesDialog", &g_define_type_info, 0);
- g_once_init_leave (&preferences_dialog_type_id__volatile, preferences_dialog_type_id);
- }
- return preferences_dialog_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/dialogs/Preferences.vala b/src/dialogs/Preferences.vala
index 0a18547..17b16cf 100644
--- a/src/dialogs/Preferences.vala
+++ b/src/dialogs/Preferences.vala
@@ -19,9 +19,8 @@ public class PreferencesDialog : Gtk.Dialog {
private static PreferencesDialog preferences_dialog;
[GtkChild]
- private Gtk.Adjustment bg_color_adjustment;
- [GtkChild]
- private Gtk.Scale bg_color_slider;
+ private Gtk.Switch switch_dark;
+
[GtkChild]
private Gtk.ComboBox photo_editor_combo;
[GtkChild]
@@ -72,12 +71,6 @@ public class PreferencesDialog : Gtk.Dialog {
delete_event.connect(on_delete);
response.connect(on_close);
- bg_color_adjustment.set_value(bg_color_adjustment.get_upper() -
- (Config.Facade.get_instance().get_bg_color().red * 65535.0));
- bg_color_adjustment.value_changed.connect(on_value_changed);
-
- bg_color_slider.button_press_event.connect(on_bg_color_reset);
-
transparent_checker_radio.toggled.connect(on_radio_changed);
transparent_solid_radio.toggled.connect(on_radio_changed);
transparent_none_radio.toggled.connect(on_radio_changed);
@@ -148,6 +141,8 @@ public class PreferencesDialog : Gtk.Dialog {
default_raw_developer_combo.append_text(RawDeveloper.SHOTWELL.get_label());
set_raw_developer_combo(Config.Facade.get_instance().get_default_raw_developer());
default_raw_developer_combo.changed.connect(on_default_raw_developer_changed);
+ switch_dark.active = Gtk.Settings.get_default().gtk_application_prefer_dark_theme;
+ switch_dark.notify["active"].connect(on_theme_variant_changed);
}
public void populate_preference_options() {
@@ -162,6 +157,13 @@ public class PreferencesDialog : Gtk.Dialog {
lowercase.set_active(Config.Facade.get_instance().get_use_lowercase_filenames());
}
+ private void on_theme_variant_changed(GLib.Object o, GLib.ParamSpec ps) {
+ var config = Config.Facade.get_instance();
+ config.set_gtk_theme_variant(switch_dark.active);
+
+ Gtk.Settings.get_default().gtk_application_prefer_dark_theme = switch_dark.active;
+ }
+
private void on_radio_changed() {
var config = Config.Facade.get_instance();
@@ -183,7 +185,7 @@ public class PreferencesDialog : Gtk.Dialog {
// the help viewer and specify the full path to the subsection we want...
private bool on_local_pattern_help(string ignore) {
try {
- Resources.launch_help(AppWindow.get_instance().get_screen(), "other-files.page");
+ Resources.launch_help(AppWindow.get_instance(), "other-files.page");
} catch (Error e) {
message("Unable to launch help: %s", e.message);
}
@@ -294,7 +296,6 @@ public class PreferencesDialog : Gtk.Dialog {
// For items that should only be committed when the dialog is closed, not as soon as the change
// is made.
private void commit_on_close() {
- Config.Facade.get_instance().commit_bg_color();
Config.Facade.get_instance().set_auto_import_from_library(autoimport.active);
Config.Facade.get_instance().set_commit_metadata_to_masters(write_metadata.active);
@@ -326,25 +327,6 @@ public class PreferencesDialog : Gtk.Dialog {
commit_on_close();
}
- private void on_value_changed() {
- set_background_color((double)(bg_color_adjustment.get_upper() -
- bg_color_adjustment.get_value()) / 65535.0);
- }
-
- private bool on_bg_color_reset(Gdk.EventButton event) {
- if (event.button == 1 && event.type == Gdk.EventType.BUTTON_PRESS
- && has_only_key_modifier(event.state, Gdk.ModifierType.CONTROL_MASK)) {
- // Left Mouse Button and CTRL pressed
- bg_color_slider.set_value(bg_color_adjustment.get_upper() -
- (parse_color(Config.Facade.DEFAULT_BG_COLOR).red * 65536.0f));
- on_value_changed();
-
- return true;
- }
-
- return false;
- }
-
private void on_dir_pattern_combo_changed() {
PathFormat pf = path_formats.get(dir_pattern_combo.get_active());
if (null == pf.pattern) {
@@ -387,21 +369,6 @@ public class PreferencesDialog : Gtk.Dialog {
return allow_closing;
}
- private void set_background_color(double bg_color_value) {
- Config.Facade.get_instance().set_bg_color(to_grayscale(bg_color_value));
- }
-
- private Gdk.RGBA to_grayscale(double color_value) {
- Gdk.RGBA color = Gdk.RGBA();
-
- color.red = color_value;
- color.green = color_value;
- color.blue = color_value;
- color.alpha = 1.0;
-
- return color;
- }
-
private void on_photo_editor_changed() {
int photo_app_choice_index = (photo_editor_combo.get_active() < external_photo_apps.size) ?
photo_editor_combo.get_active() : external_photo_apps.size;
diff --git a/src/dialogs/ProgressDialog.c b/src/dialogs/ProgressDialog.c
deleted file mode 100644
index 7098e20..0000000
--- a/src/dialogs/ProgressDialog.c
+++ /dev/null
@@ -1,714 +0,0 @@
-/* ProgressDialog.c generated by valac 0.40.4, the Vala compiler
- * generated from ProgressDialog.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk/gdk.h>
-#include <glib/gi18n-lib.h>
-#include <float.h>
-#include <math.h>
-
-
-#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))
-#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG))
-#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG))
-#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass))
-
-typedef struct _ProgressDialog ProgressDialog;
-typedef struct _ProgressDialogClass ProgressDialogClass;
-typedef struct _ProgressDialogPrivate ProgressDialogPrivate;
-enum {
- PROGRESS_DIALOG_0_PROPERTY,
- PROGRESS_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* progress_dialog_properties[PROGRESS_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _ProgressDialog {
- GtkWindow parent_instance;
- ProgressDialogPrivate * priv;
-};
-
-struct _ProgressDialogClass {
- GtkWindowClass parent_class;
-};
-
-struct _ProgressDialogPrivate {
- GtkProgressBar* progress_bar;
- GtkButton* cancel_button;
- GCancellable* cancellable;
- guint64 last_count;
- gint update_every;
- gint minimum_on_screen_time_msec;
- gulong time_started;
-};
-
-
-static gpointer progress_dialog_parent_class = NULL;
-
-GType progress_dialog_get_type (void) G_GNUC_CONST;
-#define PROGRESS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PROGRESS_DIALOG, ProgressDialogPrivate))
-ProgressDialog* progress_dialog_new (GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-ProgressDialog* progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
-static void progress_dialog_on_cancel (ProgressDialog* self);
-static void _progress_dialog_on_cancel_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static gboolean progress_dialog_on_window_closed (ProgressDialog* self);
-static gboolean _progress_dialog_on_window_closed_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self);
-gulong now_ms (void);
-static void progress_dialog_real_realize (GtkWidget* base);
-void progress_dialog_update_display_every (ProgressDialog* self,
- gint update_every);
-void progress_dialog_set_minimum_on_screen_time_msec (ProgressDialog* self,
- gint minimum_on_screen_time_msec);
-void progress_dialog_set_fraction (ProgressDialog* self,
- gint current,
- gint total);
-void progress_dialog_set_percentage (ProgressDialog* self,
- gdouble pct);
-static void progress_dialog_maybe_show_all (ProgressDialog* self,
- gdouble pct);
-void progress_dialog_set_status (ProgressDialog* self,
- const gchar* text);
-gboolean progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop);
-void spin_event_loop (void);
-void progress_dialog_close (ProgressDialog* self);
-static void progress_dialog_finalize (GObject * obj);
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 21 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- return self ? g_object_ref (self) : NULL;
-#line 115 "ProgressDialog.c"
-}
-
-
-static void
-_progress_dialog_on_cancel_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 38 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- progress_dialog_on_cancel ((ProgressDialog*) self);
-#line 125 "ProgressDialog.c"
-}
-
-
-static gboolean
-_progress_dialog_on_window_closed_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self)
-{
- gboolean result;
- result = progress_dialog_on_window_closed ((ProgressDialog*) self);
-#line 39 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- return result;
-#line 138 "ProgressDialog.c"
-}
-
-
-ProgressDialog*
-progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable)
-{
- ProgressDialog * self = NULL;
- GCancellable* _tmp0_;
- GtkProgressBar* _tmp1_;
- GtkProgressBar* _tmp2_;
- GtkBox* vbox_bar = NULL;
- GtkBox* _tmp3_;
- GtkBox* _tmp4_;
- GtkProgressBar* _tmp5_;
- GtkBox* hbox = NULL;
- GtkBox* _tmp8_;
- GtkBox* _tmp9_;
- GtkBox* _tmp10_;
- GtkButton* _tmp11_;
- GtkLabel* primary_text_label = NULL;
- GtkLabel* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- GtkBox* vbox = NULL;
- GtkBox* _tmp17_;
- GtkBox* _tmp18_;
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_val_if_fail ((owner == NULL) || GTK_IS_WINDOW (owner), NULL);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_val_if_fail (text != NULL, NULL);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self = (ProgressDialog*) g_object_new (object_type, NULL);
-#line 21 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = _g_object_ref0 (cancellable);
-#line 21 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 21 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->cancellable = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), text);
-#line 24 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 25 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (owner != NULL) {
-#line 26 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), owner);
-#line 190 "ProgressDialog.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_window_set_type_hint (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GDK_WINDOW_TYPE_HINT_DIALOG);
-#line 30 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp1_ = self->priv->progress_bar;
-#line 30 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), 300, -1);
-#line 31 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp2_ = self->priv->progress_bar;
-#line 31 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_progress_bar_set_show_text (_tmp2_, TRUE);
-#line 33 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp3_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 33 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_object_ref_sink (_tmp3_);
-#line 33 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- vbox_bar = _tmp3_;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp4_ = vbox_bar;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp5_ = self->priv->progress_bar;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_box_pack_start (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 36 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (cancellable != NULL) {
-#line 218 "ProgressDialog.c"
- GtkButton* _tmp6_;
- GtkButton* _tmp7_;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp6_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_object_ref_sink (_tmp6_);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (self->priv->cancel_button);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->cancel_button = _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp7_ = self->priv->cancel_button;
-#line 38 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_signal_connect_object (_tmp7_, "clicked", (GCallback) _progress_dialog_on_cancel_gtk_button_clicked, self, 0);
-#line 39 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _progress_dialog_on_window_closed_gtk_widget_delete_event, self, 0);
-#line 235 "ProgressDialog.c"
- }
-#line 42 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp8_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
-#line 42 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_object_ref_sink (_tmp8_);
-#line 42 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- hbox = _tmp8_;
-#line 43 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp9_ = hbox;
-#line 43 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp10_ = vbox_bar;
-#line 43 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_box_pack_start (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 44 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp11_ = self->priv->cancel_button;
-#line 44 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (_tmp11_ != NULL) {
-#line 253 "ProgressDialog.c"
- GtkBox* _tmp12_;
- GtkButton* _tmp13_;
-#line 45 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp12_ = hbox;
-#line 45 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp13_ = self->priv->cancel_button;
-#line 45 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_box_pack_end (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 262 "ProgressDialog.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp14_ = (GtkLabel*) gtk_label_new ("");
-#line 47 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_object_ref_sink (_tmp14_);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- primary_text_label = _tmp14_;
-#line 48 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp15_ = g_strdup_printf ("<span weight=\"bold\">%s</span>", text);
-#line 48 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp16_ = _tmp15_;
-#line 48 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_label_set_markup (primary_text_label, _tmp16_);
-#line 48 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_free0 (_tmp16_);
-#line 49 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_label_set_xalign (primary_text_label, 0.0f);
-#line 50 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_label_set_yalign (primary_text_label, 0.5f);
-#line 52 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp17_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
-#line 52 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_object_ref_sink (_tmp17_);
-#line 52 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- vbox = _tmp17_;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_box_pack_start (vbox, G_TYPE_CHECK_INSTANCE_CAST (primary_text_label, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 54 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp18_ = hbox;
-#line 54 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_box_pack_start (vbox, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0);
-#line 55 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 57 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 58 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 59 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), 12);
-#line 60 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), 12);
-#line 61 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), 12);
-#line 62 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), 12);
-#line 64 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget));
-#line 66 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->time_started = now_ms ();
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (vbox);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (primary_text_label);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (hbox);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (vbox_bar);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- return self;
-#line 324 "ProgressDialog.c"
-}
-
-
-ProgressDialog*
-progress_dialog_new (GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable)
-{
-#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- return progress_dialog_construct (TYPE_PROGRESS_DIALOG, owner, text, cancellable);
-#line 335 "ProgressDialog.c"
-}
-
-
-static void
-progress_dialog_real_realize (GtkWidget* base)
-{
- ProgressDialog * self;
- GCancellable* _tmp0_;
-#line 69 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PROGRESS_DIALOG, ProgressDialog);
-#line 70 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- GTK_WIDGET_CLASS (progress_dialog_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_widget_get_type (), GtkWidget));
-#line 73 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = self->priv->cancellable;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (_tmp0_ == NULL) {
-#line 352 "ProgressDialog.c"
- GdkWindow* _tmp1_;
-#line 74 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 74 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gdk_window_set_functions (_tmp1_, GDK_FUNC_MOVE);
-#line 358 "ProgressDialog.c"
- }
-}
-
-
-void
-progress_dialog_update_display_every (ProgressDialog* self,
- gint update_every)
-{
-#line 77 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (IS_PROGRESS_DIALOG (self));
-#line 78 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _vala_assert (update_every >= 1, "update_every >= 1");
-#line 80 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->update_every = update_every;
-#line 373 "ProgressDialog.c"
-}
-
-
-void
-progress_dialog_set_minimum_on_screen_time_msec (ProgressDialog* self,
- gint minimum_on_screen_time_msec)
-{
-#line 83 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (IS_PROGRESS_DIALOG (self));
-#line 84 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->minimum_on_screen_time_msec = minimum_on_screen_time_msec;
-#line 385 "ProgressDialog.c"
-}
-
-
-void
-progress_dialog_set_fraction (ProgressDialog* self,
- gint current,
- gint total)
-{
-#line 87 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (IS_PROGRESS_DIALOG (self));
-#line 88 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- progress_dialog_set_percentage (self, ((gdouble) current) / ((gdouble) total));
-#line 398 "ProgressDialog.c"
-}
-
-
-void
-progress_dialog_set_percentage (ProgressDialog* self,
- gdouble pct)
-{
- GtkProgressBar* _tmp0_;
- GtkProgressBar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 91 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (IS_PROGRESS_DIALOG (self));
-#line 92 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- pct = CLAMP (pct, 0.0, 1.0);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- progress_dialog_maybe_show_all (self, pct);
-#line 96 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = self->priv->progress_bar;
-#line 96 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_progress_bar_set_fraction (_tmp0_, pct);
-#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp1_ = self->priv->progress_bar;
-#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp2_ = g_strdup_printf (_ ("%d%%"), (gint) (pct * 100.0));
-#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp3_ = _tmp2_;
-#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_progress_bar_set_text (_tmp1_, _tmp3_);
-#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_free0 (_tmp3_);
-#line 430 "ProgressDialog.c"
-}
-
-
-void
-progress_dialog_set_status (ProgressDialog* self,
- const gchar* text)
-{
- GtkProgressBar* _tmp0_;
-#line 105 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (IS_PROGRESS_DIALOG (self));
-#line 105 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (text != NULL);
-#line 106 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = self->priv->progress_bar;
-#line 106 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_progress_bar_set_text (_tmp0_, text);
-#line 112 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 449 "ProgressDialog.c"
-}
-
-
-gboolean
-progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- guint64 _tmp1_;
- gboolean _tmp4_ = FALSE;
- GCancellable* _tmp5_;
- gboolean keep_going = FALSE;
-#line 116 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_val_if_fail (IS_PROGRESS_DIALOG (self), FALSE);
-#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp1_ = self->priv->last_count;
-#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (_tmp1_ == G_MAXUINT64) {
-#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = TRUE;
-#line 473 "ProgressDialog.c"
- } else {
- guint64 _tmp2_;
- gint _tmp3_;
-#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp2_ = self->priv->last_count;
-#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp3_ = self->priv->update_every;
-#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = (count - _tmp2_) >= ((guint64) _tmp3_);
-#line 483 "ProgressDialog.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (_tmp0_) {
-#line 118 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- progress_dialog_set_percentage (self, ((gdouble) count) / ((gdouble) total));
-#line 119 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->last_count = count;
-#line 491 "ProgressDialog.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp5_ = self->priv->cancellable;
-#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (_tmp5_ != NULL) {
-#line 497 "ProgressDialog.c"
- GCancellable* _tmp6_;
-#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp6_ = self->priv->cancellable;
-#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp4_ = !g_cancellable_is_cancelled (_tmp6_);
-#line 503 "ProgressDialog.c"
- } else {
-#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp4_ = TRUE;
-#line 507 "ProgressDialog.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- keep_going = _tmp4_;
-#line 130 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (do_event_loop) {
-#line 131 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- spin_event_loop ();
-#line 515 "ProgressDialog.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- result = keep_going;
-#line 133 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- return result;
-#line 521 "ProgressDialog.c"
-}
-
-
-void
-progress_dialog_close (ProgressDialog* self)
-{
-#line 136 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (IS_PROGRESS_DIALOG (self));
-#line 141 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 142 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 534 "ProgressDialog.c"
-}
-
-
-static gboolean
-progress_dialog_on_window_closed (ProgressDialog* self)
-{
- gboolean result = FALSE;
-#line 145 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_val_if_fail (IS_PROGRESS_DIALOG (self), FALSE);
-#line 146 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- progress_dialog_on_cancel (self);
-#line 147 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- result = FALSE;
-#line 147 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- return result;
-#line 550 "ProgressDialog.c"
-}
-
-
-static void
-progress_dialog_on_cancel (ProgressDialog* self)
-{
- GCancellable* _tmp0_;
- GtkButton* _tmp2_;
-#line 151 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (IS_PROGRESS_DIALOG (self));
-#line 152 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = self->priv->cancellable;
-#line 152 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (_tmp0_ != NULL) {
-#line 565 "ProgressDialog.c"
- GCancellable* _tmp1_;
-#line 153 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp1_ = self->priv->cancellable;
-#line 153 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_cancellable_cancel (_tmp1_);
-#line 571 "ProgressDialog.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp2_ = self->priv->cancel_button;
-#line 155 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 577 "ProgressDialog.c"
-}
-
-
-static void
-progress_dialog_maybe_show_all (ProgressDialog* self,
- gdouble pct)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- gboolean _tmp2_;
-#line 158 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_return_if_fail (IS_PROGRESS_DIALOG (self));
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp1_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp2_ = _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (!_tmp2_) {
-#line 596 "ProgressDialog.c"
- gulong _tmp3_;
- gint _tmp4_;
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp3_ = self->priv->time_started;
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp4_ = self->priv->minimum_on_screen_time_msec;
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = (now_ms () - _tmp3_) > ((gulong) _tmp4_);
-#line 605 "ProgressDialog.c"
- } else {
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = FALSE;
-#line 609 "ProgressDialog.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (_tmp0_) {
-#line 613 "ProgressDialog.c"
- gdouble pps = 0.0;
- gint _tmp5_;
- gdouble ttc = 0.0;
- gdouble _tmp6_;
- gdouble _tmp7_;
- gint _tmp8_;
-#line 163 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp5_ = self->priv->minimum_on_screen_time_msec;
-#line 163 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- pps = (pct * 100.0) / _tmp5_;
-#line 165 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp6_ = pps;
-#line 165 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- ttc = 100.0 / _tmp6_;
-#line 168 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp7_ = ttc;
-#line 168 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp8_ = self->priv->minimum_on_screen_time_msec;
-#line 168 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- if (_tmp7_ > ((gdouble) _tmp8_)) {
-#line 173 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 174 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- spin_event_loop ();
-#line 638 "ProgressDialog.c"
- }
- }
-}
-
-
-static void
-progress_dialog_class_init (ProgressDialogClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- progress_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_type_class_add_private (klass, sizeof (ProgressDialogPrivate));
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) progress_dialog_real_realize;
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- G_OBJECT_CLASS (klass)->finalize = progress_dialog_finalize;
-#line 655 "ProgressDialog.c"
-}
-
-
-static void
-progress_dialog_instance_init (ProgressDialog * self)
-{
- GtkProgressBar* _tmp0_;
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv = PROGRESS_DIALOG_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _tmp0_ = (GtkProgressBar*) gtk_progress_bar_new ();
-#line 9 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- g_object_ref_sink (_tmp0_);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->progress_bar = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->cancel_button = NULL;
-#line 12 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->last_count = G_MAXUINT64;
-#line 13 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->update_every = 1;
-#line 14 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self->priv->minimum_on_screen_time_msec = 500;
-#line 679 "ProgressDialog.c"
-}
-
-
-static void
-progress_dialog_finalize (GObject * obj)
-{
- ProgressDialog * self;
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PROGRESS_DIALOG, ProgressDialog);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (self->priv->progress_bar);
-#line 10 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (self->priv->cancel_button);
-#line 11 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala"
- G_OBJECT_CLASS (progress_dialog_parent_class)->finalize (obj);
-#line 697 "ProgressDialog.c"
-}
-
-
-GType
-progress_dialog_get_type (void)
-{
- static volatile gsize progress_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&progress_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ProgressDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) progress_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProgressDialog), 0, (GInstanceInitFunc) progress_dialog_instance_init, NULL };
- GType progress_dialog_type_id;
- progress_dialog_type_id = g_type_register_static (gtk_window_get_type (), "ProgressDialog", &g_define_type_info, 0);
- g_once_init_leave (&progress_dialog_type_id__volatile, progress_dialog_type_id);
- }
- return progress_dialog_type_id__volatile;
-}
-
-
-
diff --git a/src/dialogs/SetBackground.c b/src/dialogs/SetBackground.c
deleted file mode 100644
index 88577ce..0000000
--- a/src/dialogs/SetBackground.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/* SetBackground.c generated by valac 0.40.4, the Vala compiler
- * generated from SetBackground.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-
-
-#define TYPE_SET_BACKGROUND_PHOTO_DIALOG (set_background_photo_dialog_get_type ())
-#define SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog))
-#define SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass))
-#define IS_SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG))
-#define IS_SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG))
-#define SET_BACKGROUND_PHOTO_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass))
-
-typedef struct _SetBackgroundPhotoDialog SetBackgroundPhotoDialog;
-typedef struct _SetBackgroundPhotoDialogClass SetBackgroundPhotoDialogClass;
-typedef struct _SetBackgroundPhotoDialogPrivate SetBackgroundPhotoDialogPrivate;
-enum {
- SET_BACKGROUND_PHOTO_DIALOG_0_PROPERTY,
- SET_BACKGROUND_PHOTO_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* set_background_photo_dialog_properties[SET_BACKGROUND_PHOTO_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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;
-
-struct _SetBackgroundPhotoDialog {
- GtkDialog parent_instance;
- SetBackgroundPhotoDialogPrivate * priv;
-};
-
-struct _SetBackgroundPhotoDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _SetBackgroundPhotoDialogPrivate {
- GtkCheckButton* desktop_background_checkbox;
- GtkCheckButton* screensaver_checkbox;
-};
-
-
-static gpointer set_background_photo_dialog_parent_class = NULL;
-
-GType set_background_photo_dialog_get_type (void) G_GNUC_CONST;
-#define SET_BACKGROUND_PHOTO_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogPrivate))
-SetBackgroundPhotoDialog* set_background_photo_dialog_new (void);
-SetBackgroundPhotoDialog* set_background_photo_dialog_construct (GType object_type);
-gint resources_use_header_bar (void);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-static void set_background_photo_dialog_on_checkbox_clicked (SetBackgroundPhotoDialog* self);
-static void _set_background_photo_dialog_on_checkbox_clicked_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
-gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self,
- gboolean* desktop_background,
- gboolean* screensaver);
-static void set_background_photo_dialog_finalize (GObject * obj);
-
-
-SetBackgroundPhotoDialog*
-set_background_photo_dialog_construct (GType object_type)
-{
- SetBackgroundPhotoDialog * self = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
-#line 16 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- self = (SetBackgroundPhotoDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp0_ = app_window_get_instance ();
-#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp1_ = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow));
-#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _g_object_unref0 (_tmp1_);
-#line 15 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- return self;
-#line 107 "SetBackground.c"
-}
-
-
-SetBackgroundPhotoDialog*
-set_background_photo_dialog_new (void)
-{
-#line 15 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- return set_background_photo_dialog_construct (TYPE_SET_BACKGROUND_PHOTO_DIALOG);
-#line 116 "SetBackground.c"
-}
-
-
-static void
-set_background_photo_dialog_on_checkbox_clicked (SetBackgroundPhotoDialog* self)
-{
- gboolean _tmp0_ = FALSE;
- GtkCheckButton* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
-#line 21 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- g_return_if_fail (IS_SET_BACKGROUND_PHOTO_DIALOG (self));
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp1_ = self->priv->desktop_background_checkbox;
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp3_ = _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- if (_tmp3_) {
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp0_ = TRUE;
-#line 139 "SetBackground.c"
- } else {
- GtkCheckButton* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 24 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp4_ = self->priv->screensaver_checkbox;
-#line 24 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 24 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp6_ = _tmp5_;
-#line 24 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp0_ = _tmp6_;
-#line 152 "SetBackground.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_);
-#line 156 "SetBackground.c"
-}
-
-
-static void
-_set_background_photo_dialog_on_checkbox_clicked_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
-{
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- set_background_photo_dialog_on_checkbox_clicked ((SetBackgroundPhotoDialog*) self);
-#line 166 "SetBackground.c"
-}
-
-
-gboolean
-set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self,
- gboolean* desktop_background,
- gboolean* screensaver)
-{
- gboolean _vala_desktop_background = FALSE;
- gboolean _vala_screensaver = FALSE;
- gboolean result = FALSE;
- gboolean _result_ = FALSE;
- GtkCheckButton* _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
- GtkCheckButton* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
-#line 27 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- g_return_val_if_fail (IS_SET_BACKGROUND_PHOTO_DIALOG (self), FALSE);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 29 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _result_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK);
-#line 30 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp0_ = self->priv->desktop_background_checkbox;
-#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp2_ = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _vala_desktop_background = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp3_ = self->priv->screensaver_checkbox;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp4_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _tmp5_ = _tmp4_;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _vala_screensaver = _tmp5_;
-#line 35 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- result = _result_;
-#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- if (desktop_background) {
-#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- *desktop_background = _vala_desktop_background;
-#line 217 "SetBackground.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- if (screensaver) {
-#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- *screensaver = _vala_screensaver;
-#line 223 "SetBackground.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- return result;
-#line 227 "SetBackground.c"
-}
-
-
-static void
-set_background_photo_dialog_class_init (SetBackgroundPhotoDialogClass * klass)
-{
- gint SetBackgroundPhotoDialog_private_offset;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- set_background_photo_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- g_type_class_add_private (klass, sizeof (SetBackgroundPhotoDialogPrivate));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- G_OBJECT_CLASS (klass)->finalize = set_background_photo_dialog_finalize;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- SetBackgroundPhotoDialog_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/set_background_dialog.ui");
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "desktop_background_checkbox", FALSE, SetBackgroundPhotoDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundPhotoDialogPrivate, desktop_background_checkbox));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "screensaver_checkbox", FALSE, SetBackgroundPhotoDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundPhotoDialogPrivate, screensaver_checkbox));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_checkbox_clicked", G_CALLBACK(_set_background_photo_dialog_on_checkbox_clicked_gtk_toggle_button_toggled));
-#line 251 "SetBackground.c"
-}
-
-
-static void
-set_background_photo_dialog_instance_init (SetBackgroundPhotoDialog * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- self->priv = SET_BACKGROUND_PHOTO_DIALOG_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 262 "SetBackground.c"
-}
-
-
-static void
-set_background_photo_dialog_finalize (GObject * obj)
-{
- SetBackgroundPhotoDialog * self;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog);
-#line 11 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _g_object_unref0 (self->priv->desktop_background_checkbox);
-#line 13 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- _g_object_unref0 (self->priv->screensaver_checkbox);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala"
- G_OBJECT_CLASS (set_background_photo_dialog_parent_class)->finalize (obj);
-#line 278 "SetBackground.c"
-}
-
-
-GType
-set_background_photo_dialog_get_type (void)
-{
- static volatile gsize set_background_photo_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&set_background_photo_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SetBackgroundPhotoDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_background_photo_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetBackgroundPhotoDialog), 0, (GInstanceInitFunc) set_background_photo_dialog_instance_init, NULL };
- GType set_background_photo_dialog_type_id;
- set_background_photo_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SetBackgroundPhotoDialog", &g_define_type_info, 0);
- g_once_init_leave (&set_background_photo_dialog_type_id__volatile, set_background_photo_dialog_type_id);
- }
- return set_background_photo_dialog_type_id__volatile;
-}
-
-
-
diff --git a/src/dialogs/SetBackgroundSlideshow.c b/src/dialogs/SetBackgroundSlideshow.c
deleted file mode 100644
index aa581d4..0000000
--- a/src/dialogs/SetBackgroundSlideshow.c
+++ /dev/null
@@ -1,499 +0,0 @@
-/* SetBackgroundSlideshow.c generated by valac 0.40.4, the Vala compiler
- * generated from SetBackgroundSlideshow.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <float.h>
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-
-
-#define TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG (set_background_slideshow_dialog_get_type ())
-#define SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog))
-#define SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass))
-#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG))
-#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG))
-#define SET_BACKGROUND_SLIDESHOW_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass))
-
-typedef struct _SetBackgroundSlideshowDialog SetBackgroundSlideshowDialog;
-typedef struct _SetBackgroundSlideshowDialogClass SetBackgroundSlideshowDialogClass;
-typedef struct _SetBackgroundSlideshowDialogPrivate SetBackgroundSlideshowDialogPrivate;
-enum {
- SET_BACKGROUND_SLIDESHOW_DIALOG_0_PROPERTY,
- SET_BACKGROUND_SLIDESHOW_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* set_background_slideshow_dialog_properties[SET_BACKGROUND_SLIDESHOW_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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_free0(var) (var = (g_free (var), NULL))
-
-struct _SetBackgroundSlideshowDialog {
- GtkDialog parent_instance;
- SetBackgroundSlideshowDialogPrivate * priv;
-};
-
-struct _SetBackgroundSlideshowDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _SetBackgroundSlideshowDialogPrivate {
- GtkCheckButton* desktop_background_checkbox;
- GtkCheckButton* screensaver_checkbox;
- GtkScale* delay_scale;
- GtkLabel* delay_value_label;
- gint delay_value;
-};
-
-
-static gpointer set_background_slideshow_dialog_parent_class = NULL;
-
-GType set_background_slideshow_dialog_get_type (void) G_GNUC_CONST;
-#define SET_BACKGROUND_SLIDESHOW_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogPrivate))
-SetBackgroundSlideshowDialog* set_background_slideshow_dialog_new (void);
-SetBackgroundSlideshowDialog* set_background_slideshow_dialog_construct (GType object_type);
-gint resources_use_header_bar (void);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-static void set_background_slideshow_dialog_real_constructed (GObject* base);
-static void set_background_slideshow_dialog_on_delay_scale_value_changed (SetBackgroundSlideshowDialog* self);
-static void set_background_slideshow_dialog_on_checkbox_clicked (SetBackgroundSlideshowDialog* self);
-static void _set_background_slideshow_dialog_on_checkbox_clicked_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
-static void _set_background_slideshow_dialog_on_delay_scale_value_changed_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-gboolean set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self,
- gint* delay_value,
- gboolean* desktop_background,
- gboolean* screensaver);
-static void set_background_slideshow_dialog_finalize (GObject * obj);
-
-
-SetBackgroundSlideshowDialog*
-set_background_slideshow_dialog_construct (GType object_type)
-{
- SetBackgroundSlideshowDialog * self = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
-#line 22 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self = (SetBackgroundSlideshowDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp0_ = app_window_get_instance ();
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp1_ = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow));
-#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_object_unref0 (_tmp1_);
-#line 21 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- return self;
-#line 121 "SetBackgroundSlideshow.c"
-}
-
-
-SetBackgroundSlideshowDialog*
-set_background_slideshow_dialog_new (void)
-{
-#line 21 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- return set_background_slideshow_dialog_construct (TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG);
-#line 130 "SetBackgroundSlideshow.c"
-}
-
-
-static void
-set_background_slideshow_dialog_real_constructed (GObject* base)
-{
- SetBackgroundSlideshowDialog * self;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog);
-#line 27 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- set_background_slideshow_dialog_on_delay_scale_value_changed (self);
-#line 142 "SetBackgroundSlideshow.c"
-}
-
-
-static void
-set_background_slideshow_dialog_on_checkbox_clicked (SetBackgroundSlideshowDialog* self)
-{
- gboolean _tmp0_ = FALSE;
- GtkCheckButton* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- g_return_if_fail (IS_SET_BACKGROUND_SLIDESHOW_DIALOG (self));
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp1_ = self->priv->desktop_background_checkbox;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp3_ = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- if (_tmp3_) {
-#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp0_ = TRUE;
-#line 165 "SetBackgroundSlideshow.c"
- } else {
- GtkCheckButton* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp4_ = self->priv->screensaver_checkbox;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 34 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp6_ = _tmp5_;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp0_ = _tmp6_;
-#line 178 "SetBackgroundSlideshow.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_);
-#line 182 "SetBackgroundSlideshow.c"
-}
-
-
-static void
-_set_background_slideshow_dialog_on_checkbox_clicked_gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
-{
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- set_background_slideshow_dialog_on_checkbox_clicked ((SetBackgroundSlideshowDialog*) self);
-#line 192 "SetBackgroundSlideshow.c"
-}
-
-
-static void
-set_background_slideshow_dialog_on_delay_scale_value_changed (SetBackgroundSlideshowDialog* self)
-{
- gdouble value = 0.0;
- GtkScale* _tmp0_;
- GtkAdjustment* _tmp1_;
- GtkAdjustment* _tmp2_;
- gdouble _tmp3_;
- gdouble _tmp4_;
- gdouble _tmp5_;
- gchar* text = NULL;
- gint _tmp6_;
- GtkLabel* _tmp23_;
- const gchar* _tmp24_;
-#line 38 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- g_return_if_fail (IS_SET_BACKGROUND_SLIDESHOW_DIALOG (self));
-#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp0_ = self->priv->delay_scale;
-#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp1_ = gtk_range_get_adjustment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange));
-#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp2_ = _tmp1_;
-#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp3_ = gtk_adjustment_get_value (_tmp2_);
-#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp4_ = _tmp3_;
-#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- value = _tmp4_;
-#line 44 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp5_ = value;
-#line 44 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self->priv->delay_value = (gint) (((((pow (_tmp5_, (gdouble) 5) / pow ((gdouble) 90, (gdouble) 5)) * 60) * 60) * 24) + 5);
-#line 48 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp6_ = self->priv->delay_value;
-#line 48 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- if (_tmp6_ < 60) {
-#line 232 "SetBackgroundSlideshow.c"
- gint _tmp7_;
- gint _tmp8_;
- gchar* _tmp9_;
-#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp7_ = self->priv->delay_value;
-#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp8_ = self->priv->delay_value;
-#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp9_ = g_strdup_printf (ngettext ("%d second", "%d seconds", (gulong) _tmp7_), _tmp8_);
-#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_free0 (text);
-#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- text = _tmp9_;
-#line 246 "SetBackgroundSlideshow.c"
- } else {
- gint _tmp10_;
-#line 50 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp10_ = self->priv->delay_value;
-#line 50 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- if (_tmp10_ < (60 * 60)) {
-#line 253 "SetBackgroundSlideshow.c"
- gint minutes = 0;
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gchar* _tmp14_;
- gint _tmp15_;
-#line 51 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp11_ = self->priv->delay_value;
-#line 51 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- minutes = _tmp11_ / 60;
-#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp12_ = minutes;
-#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp13_ = minutes;
-#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp14_ = g_strdup_printf (ngettext ("%d minute", "%d minutes", (gulong) _tmp12_), _tmp13_);
-#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_free0 (text);
-#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- text = _tmp14_;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp15_ = minutes;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self->priv->delay_value = _tmp15_ * 60;
-#line 278 "SetBackgroundSlideshow.c"
- } else {
- gint _tmp16_;
-#line 54 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp16_ = self->priv->delay_value;
-#line 54 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- if (_tmp16_ < ((60 * 60) * 24)) {
-#line 285 "SetBackgroundSlideshow.c"
- gint hours = 0;
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- gchar* _tmp20_;
- gint _tmp21_;
-#line 55 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp17_ = self->priv->delay_value;
-#line 55 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- hours = _tmp17_ / (60 * 60);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp18_ = hours;
-#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp19_ = hours;
-#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp20_ = g_strdup_printf (ngettext ("%d hour", "%d hours", (gulong) _tmp18_), _tmp19_);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_free0 (text);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- text = _tmp20_;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp21_ = hours;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self->priv->delay_value = _tmp21_ * (60 * 60);
-#line 310 "SetBackgroundSlideshow.c"
- } else {
- gchar* _tmp22_;
-#line 59 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp22_ = g_strdup (_ ("1 day"));
-#line 59 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_free0 (text);
-#line 59 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- text = _tmp22_;
-#line 60 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self->priv->delay_value = (60 * 60) * 24;
-#line 321 "SetBackgroundSlideshow.c"
- }
- }
- }
-#line 63 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp23_ = self->priv->delay_value_label;
-#line 63 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp24_ = text;
-#line 63 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_label_set_label (_tmp23_, _tmp24_);
-#line 38 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_free0 (text);
-#line 333 "SetBackgroundSlideshow.c"
-}
-
-
-static void
-_set_background_slideshow_dialog_on_delay_scale_value_changed_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- set_background_slideshow_dialog_on_delay_scale_value_changed ((SetBackgroundSlideshowDialog*) self);
-#line 343 "SetBackgroundSlideshow.c"
-}
-
-
-gboolean
-set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self,
- gint* delay_value,
- gboolean* desktop_background,
- gboolean* screensaver)
-{
- gint _vala_delay_value = 0;
- gboolean _vala_desktop_background = FALSE;
- gboolean _vala_screensaver = FALSE;
- gboolean result = FALSE;
- gboolean _result_ = FALSE;
- gint _tmp0_;
- GtkCheckButton* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- GtkCheckButton* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 66 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- g_return_val_if_fail (IS_SET_BACKGROUND_SLIDESHOW_DIALOG (self), FALSE);
-#line 67 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 68 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _result_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK);
-#line 69 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 71 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp0_ = self->priv->delay_value;
-#line 71 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _vala_delay_value = _tmp0_;
-#line 72 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp1_ = self->priv->desktop_background_checkbox;
-#line 72 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 72 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp3_ = _tmp2_;
-#line 72 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _vala_desktop_background = _tmp3_;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp4_ = self->priv->screensaver_checkbox;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 73 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _tmp6_ = _tmp5_;
-#line 73 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _vala_screensaver = _tmp6_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- result = _result_;
-#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- if (delay_value) {
-#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- *delay_value = _vala_delay_value;
-#line 401 "SetBackgroundSlideshow.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- if (desktop_background) {
-#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- *desktop_background = _vala_desktop_background;
-#line 407 "SetBackgroundSlideshow.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- if (screensaver) {
-#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- *screensaver = _vala_screensaver;
-#line 413 "SetBackgroundSlideshow.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- return result;
-#line 417 "SetBackgroundSlideshow.c"
-}
-
-
-static void
-set_background_slideshow_dialog_class_init (SetBackgroundSlideshowDialogClass * klass)
-{
- gint SetBackgroundSlideshowDialog_private_offset;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- set_background_slideshow_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- g_type_class_add_private (klass, sizeof (SetBackgroundSlideshowDialogPrivate));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) set_background_slideshow_dialog_real_constructed;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- G_OBJECT_CLASS (klass)->finalize = set_background_slideshow_dialog_finalize;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- SetBackgroundSlideshowDialog_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/set_background_slideshow_dialog.ui");
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "desktop_background_checkbox", FALSE, SetBackgroundSlideshowDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundSlideshowDialogPrivate, desktop_background_checkbox));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "screensaver_checkbox", FALSE, SetBackgroundSlideshowDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundSlideshowDialogPrivate, screensaver_checkbox));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "delay_scale", FALSE, SetBackgroundSlideshowDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundSlideshowDialogPrivate, delay_scale));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "delay_value_label", FALSE, SetBackgroundSlideshowDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundSlideshowDialogPrivate, delay_value_label));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_checkbox_clicked", G_CALLBACK(_set_background_slideshow_dialog_on_checkbox_clicked_gtk_toggle_button_toggled));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_delay_scale_value_changed", G_CALLBACK(_set_background_slideshow_dialog_on_delay_scale_value_changed_gtk_range_value_changed));
-#line 449 "SetBackgroundSlideshow.c"
-}
-
-
-static void
-set_background_slideshow_dialog_instance_init (SetBackgroundSlideshowDialog * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self->priv = SET_BACKGROUND_SLIDESHOW_DIALOG_GET_PRIVATE (self);
-#line 19 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self->priv->delay_value = 0;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 462 "SetBackgroundSlideshow.c"
-}
-
-
-static void
-set_background_slideshow_dialog_finalize (GObject * obj)
-{
- SetBackgroundSlideshowDialog * self;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog);
-#line 11 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_object_unref0 (self->priv->desktop_background_checkbox);
-#line 13 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_object_unref0 (self->priv->screensaver_checkbox);
-#line 15 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_object_unref0 (self->priv->delay_scale);
-#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- _g_object_unref0 (self->priv->delay_value_label);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala"
- G_OBJECT_CLASS (set_background_slideshow_dialog_parent_class)->finalize (obj);
-#line 482 "SetBackgroundSlideshow.c"
-}
-
-
-GType
-set_background_slideshow_dialog_get_type (void)
-{
- static volatile gsize set_background_slideshow_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&set_background_slideshow_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SetBackgroundSlideshowDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_background_slideshow_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetBackgroundSlideshowDialog), 0, (GInstanceInitFunc) set_background_slideshow_dialog_instance_init, NULL };
- GType set_background_slideshow_dialog_type_id;
- set_background_slideshow_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SetBackgroundSlideshowDialog", &g_define_type_info, 0);
- g_once_init_leave (&set_background_slideshow_dialog_type_id__volatile, set_background_slideshow_dialog_type_id);
- }
- return set_background_slideshow_dialog_type_id__volatile;
-}
-
-
-
diff --git a/src/dialogs/TextEntry.c b/src/dialogs/TextEntry.c
deleted file mode 100644
index 97716a3..0000000
--- a/src/dialogs/TextEntry.c
+++ /dev/null
@@ -1,400 +0,0 @@
-/* TextEntry.c generated by valac 0.40.4, the Vala compiler
- * generated from TextEntry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-
-
-#define TYPE_TEXT_ENTRY_DIALOG (text_entry_dialog_get_type ())
-#define TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialog))
-#define TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass))
-#define IS_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG))
-#define IS_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG))
-#define TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass))
-
-typedef struct _TextEntryDialog TextEntryDialog;
-typedef struct _TextEntryDialogClass TextEntryDialogClass;
-typedef struct _TextEntryDialogPrivate TextEntryDialogPrivate;
-enum {
- TEXT_ENTRY_DIALOG_0_PROPERTY,
- TEXT_ENTRY_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* text_entry_dialog_properties[TEXT_ENTRY_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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_ENTRY_MULTI_COMPLETION (entry_multi_completion_get_type ())
-#define ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion))
-#define ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass))
-#define IS_ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENTRY_MULTI_COMPLETION))
-#define IS_ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENTRY_MULTI_COMPLETION))
-#define ENTRY_MULTI_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass))
-
-typedef struct _EntryMultiCompletion EntryMultiCompletion;
-typedef struct _EntryMultiCompletionClass EntryMultiCompletionClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-struct _TextEntryDialog {
- GtkDialog parent_instance;
- TextEntryDialogPrivate * priv;
-};
-
-struct _TextEntryDialogClass {
- GtkDialogClass parent_class;
-};
-
-typedef gboolean (*TextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data);
-struct _TextEntryDialogPrivate {
- TextEntryDialogOnModifyValidateType on_modify_validate;
- gpointer on_modify_validate_target;
- GtkEntry* entry;
- GtkLabel* label;
-};
-
-
-static gpointer text_entry_dialog_parent_class = NULL;
-
-GType text_entry_dialog_get_type (void) G_GNUC_CONST;
-#define TEXT_ENTRY_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogPrivate))
-TextEntryDialog* text_entry_dialog_new (void);
-TextEntryDialog* text_entry_dialog_construct (GType object_type);
-gint resources_use_header_bar (void);
-void text_entry_dialog_setup (TextEntryDialog* self,
- TextEntryDialogOnModifyValidateType modify_validate,
- void* modify_validate_target,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text,
- GeeCollection* completion_list,
- const gchar* completion_delimiter);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-void text_entry_dialog_on_entry_changed (TextEntryDialog* self);
-static void _text_entry_dialog_on_entry_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
-GType entry_multi_completion_get_type (void) G_GNUC_CONST;
-EntryMultiCompletion* entry_multi_completion_new (GeeCollection* completion_list,
- const gchar* delimiter);
-EntryMultiCompletion* entry_multi_completion_construct (GType object_type,
- GeeCollection* completion_list,
- const gchar* delimiter);
-gchar* text_entry_dialog_execute (TextEntryDialog* self);
-static void text_entry_dialog_finalize (GObject * obj);
-
-
-TextEntryDialog*
-text_entry_dialog_construct (GType object_type)
-{
- TextEntryDialog * self = NULL;
-#line 21 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- self = (TextEntryDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- return self;
-#line 126 "TextEntry.c"
-}
-
-
-TextEntryDialog*
-text_entry_dialog_new (void)
-{
-#line 20 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- return text_entry_dialog_construct (TYPE_TEXT_ENTRY_DIALOG);
-#line 135 "TextEntry.c"
-}
-
-
-static void
-_text_entry_dialog_on_entry_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
-{
-#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- text_entry_dialog_on_entry_changed ((TextEntryDialog*) self);
-#line 145 "TextEntry.c"
-}
-
-
-void
-text_entry_dialog_setup (TextEntryDialog* self,
- TextEntryDialogOnModifyValidateType modify_validate,
- void* modify_validate_target,
- const gchar* title,
- const gchar* label,
- const gchar* initial_text,
- GeeCollection* completion_list,
- const gchar* completion_delimiter)
-{
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GdkWindow* _tmp2_;
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
- GtkLabel* _tmp5_;
- const gchar* _tmp6_ = NULL;
- GtkEntry* _tmp7_;
- GtkEntry* _tmp8_;
- GtkEntry* _tmp9_;
-#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_return_if_fail (IS_TEXT_ENTRY_DIALOG (self));
-#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_return_if_fail (title != NULL);
-#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_return_if_fail (label != NULL);
-#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_return_if_fail ((completion_list == NULL) || GEE_IS_COLLECTION (completion_list));
-#line 26 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), title);
-#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp0_ = app_window_get_instance ();
-#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp1_ = _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp2_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp2_);
-#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _g_object_unref0 (_tmp1_);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp3_ = app_window_get_instance ();
-#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp4_ = _tmp3_;
-#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow));
-#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _g_object_unref0 (_tmp4_);
-#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- self->priv->on_modify_validate = modify_validate;
-#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- self->priv->on_modify_validate_target = modify_validate_target;
-#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp5_ = self->priv->label;
-#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_label_set_text (_tmp5_, label);
-#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- if (initial_text != NULL) {
-#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp6_ = initial_text;
-#line 209 "TextEntry.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp6_ = "";
-#line 213 "TextEntry.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp7_ = self->priv->entry;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_entry_set_text (_tmp7_, _tmp6_);
-#line 34 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp8_ = self->priv->entry;
-#line 34 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp9_ = self->priv->entry;
-#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _text_entry_dialog_on_entry_changed_gtk_editable_changed, self, 0);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- if (completion_list != NULL) {
-#line 229 "TextEntry.c"
- EntryMultiCompletion* completion = NULL;
- EntryMultiCompletion* _tmp10_;
- GtkEntry* _tmp11_;
- EntryMultiCompletion* _tmp12_;
-#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp10_ = entry_multi_completion_new (completion_list, completion_delimiter);
-#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- completion = _tmp10_;
-#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp11_ = self->priv->entry;
-#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp12_ = completion;
-#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_entry_set_completion (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_entry_completion_get_type (), GtkEntryCompletion));
-#line 37 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _g_object_unref0 (completion);
-#line 246 "TextEntry.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK);
-#line 250 "TextEntry.c"
-}
-
-
-gchar*
-text_entry_dialog_execute (TextEntryDialog* self)
-{
- gchar* result = NULL;
- gchar* text = NULL;
- TextEntryDialogOnModifyValidateType _tmp0_;
- void* _tmp0__target;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- GtkEntry* _tmp6_;
- guint _tmp7_;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_return_val_if_fail (IS_TEXT_ENTRY_DIALOG (self), NULL);
-#line 47 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- text = NULL;
-#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp0_ = self->priv->on_modify_validate;
-#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp0__target = self->priv->on_modify_validate_target;
-#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp1_ = self->priv->entry;
-#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp2_ = gtk_entry_get_text (_tmp1_);
-#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_ (_tmp2_, _tmp0__target));
-#line 52 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 54 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) {
-#line 283 "TextEntry.c"
- GtkEntry* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
-#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp3_ = self->priv->entry;
-#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp4_ = gtk_entry_get_text (_tmp3_);
-#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _g_free0 (text);
-#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- text = _tmp5_;
-#line 297 "TextEntry.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp6_ = self->priv->entry;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_signal_parse_name ("changed", gtk_editable_get_type (), &_tmp7_, NULL, FALSE);
-#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_editable_get_type (), GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _text_entry_dialog_on_entry_changed_gtk_editable_changed, self);
-#line 58 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 60 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- result = text;
-#line 60 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- return result;
-#line 311 "TextEntry.c"
-}
-
-
-void
-text_entry_dialog_on_entry_changed (TextEntryDialog* self)
-{
- TextEntryDialogOnModifyValidateType _tmp0_;
- void* _tmp0__target;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
-#line 63 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_return_if_fail (IS_TEXT_ENTRY_DIALOG (self));
-#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp0_ = self->priv->on_modify_validate;
-#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp0__target = self->priv->on_modify_validate_target;
-#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp1_ = self->priv->entry;
-#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp2_ = gtk_entry_get_text (_tmp1_);
-#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_ (_tmp2_, _tmp0__target));
-#line 334 "TextEntry.c"
-}
-
-
-static void
-text_entry_dialog_class_init (TextEntryDialogClass * klass)
-{
- gint TextEntryDialog_private_offset;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- text_entry_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_type_class_add_private (klass, sizeof (TextEntryDialogPrivate));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- G_OBJECT_CLASS (klass)->finalize = text_entry_dialog_finalize;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- TextEntryDialog_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/textentrydialog.ui");
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "entry", FALSE, TextEntryDialog_private_offset + G_STRUCT_OFFSET (TextEntryDialogPrivate, entry));
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "label", FALSE, TextEntryDialog_private_offset + G_STRUCT_OFFSET (TextEntryDialogPrivate, label));
-#line 356 "TextEntry.c"
-}
-
-
-static void
-text_entry_dialog_instance_init (TextEntryDialog * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- self->priv = TEXT_ENTRY_DIALOG_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 367 "TextEntry.c"
-}
-
-
-static void
-text_entry_dialog_finalize (GObject * obj)
-{
- TextEntryDialog * self;
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEXT_ENTRY_DIALOG, TextEntryDialog);
-#line 15 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _g_object_unref0 (self->priv->entry);
-#line 18 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _g_object_unref0 (self->priv->label);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- G_OBJECT_CLASS (text_entry_dialog_parent_class)->finalize (obj);
-#line 383 "TextEntry.c"
-}
-
-
-GType
-text_entry_dialog_get_type (void)
-{
- static volatile gsize text_entry_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&text_entry_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TextEntryDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) text_entry_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TextEntryDialog), 0, (GInstanceInitFunc) text_entry_dialog_instance_init, NULL };
- GType text_entry_dialog_type_id;
- text_entry_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "TextEntryDialog", &g_define_type_info, 0);
- g_once_init_leave (&text_entry_dialog_type_id__volatile, text_entry_dialog_type_id);
- }
- return text_entry_dialog_type_id__volatile;
-}
-
-
-
diff --git a/src/dialogs/WelcomeDialog.c b/src/dialogs/WelcomeDialog.c
deleted file mode 100644
index 5cbd541..0000000
--- a/src/dialogs/WelcomeDialog.c
+++ /dev/null
@@ -1,1432 +0,0 @@
-/* WelcomeDialog.c generated by valac 0.40.4, the Vala compiler
- * generated from WelcomeDialog.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- * Copyright 2017 Jens Georg <mail@jensge.org>
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n-lib.h>
-#include <gdk/gdk.h>
-#include <gio/gio.h>
-
-
-#define TYPE_WELCOME_SERVICE_ENTRY (welcome_service_entry_get_type ())
-#define WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry))
-#define IS_WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_SERVICE_ENTRY))
-#define WELCOME_SERVICE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntryIface))
-
-typedef struct _WelcomeServiceEntry WelcomeServiceEntry;
-typedef struct _WelcomeServiceEntryIface WelcomeServiceEntryIface;
-
-#define TYPE_WELCOME_DIALOG (welcome_dialog_get_type ())
-#define WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_DIALOG, WelcomeDialog))
-#define WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WELCOME_DIALOG, WelcomeDialogClass))
-#define IS_WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_DIALOG))
-#define IS_WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WELCOME_DIALOG))
-#define WELCOME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WELCOME_DIALOG, WelcomeDialogClass))
-
-typedef struct _WelcomeDialog WelcomeDialog;
-typedef struct _WelcomeDialogClass WelcomeDialogClass;
-typedef struct _WelcomeDialogPrivate WelcomeDialogPrivate;
-
-#define SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST (spit_data_imports_welcome_import_meta_host_get_type ())
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHost))
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass))
-#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST))
-#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST))
-#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass))
-
-typedef struct _SpitDataImportsWelcomeImportMetaHost SpitDataImportsWelcomeImportMetaHost;
-typedef struct _SpitDataImportsWelcomeImportMetaHostClass SpitDataImportsWelcomeImportMetaHostClass;
-enum {
- WELCOME_DIALOG_0_PROPERTY,
- WELCOME_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* welcome_dialog_properties[WELCOME_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-struct _WelcomeServiceEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_service_name) (WelcomeServiceEntry* self);
- void (*execute) (WelcomeServiceEntry* self);
-};
-
-struct _WelcomeDialog {
- GtkDialog parent_instance;
- WelcomeDialogPrivate * priv;
-};
-
-struct _WelcomeDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _WelcomeDialogPrivate {
- GtkCheckButton* hide_button;
- GtkCheckButton* system_pictures_import_check;
- GtkCheckButton** external_import_checks;
- gint external_import_checks_length1;
- gint _external_import_checks_size_;
- WelcomeServiceEntry** external_import_entries;
- gint external_import_entries_length1;
- gint _external_import_entries_size_;
- GtkLabel* secondary_text;
- GtkLabel* instruction_header;
- GtkBox* import_content;
- GtkBox* import_action_checkbox_packer;
- GtkBox* external_import_action_checkbox_packer;
- SpitDataImportsWelcomeImportMetaHost* import_meta_host;
- gboolean import_content_already_installed;
- gboolean ok_clicked;
-};
-
-
-static gpointer welcome_dialog_parent_class = NULL;
-
-GType welcome_service_entry_get_type (void) G_GNUC_CONST;
-gchar* welcome_service_entry_get_service_name (WelcomeServiceEntry* self);
-void welcome_service_entry_execute (WelcomeServiceEntry* self);
-GType welcome_dialog_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_welcome_import_meta_host_get_type (void) G_GNUC_CONST;
-#define WELCOME_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_WELCOME_DIALOG, WelcomeDialogPrivate))
-WelcomeDialog* welcome_dialog_new (GtkWindow* owner);
-WelcomeDialog* welcome_dialog_construct (GType object_type,
- GtkWindow* owner);
-gint resources_use_header_bar (void);
-SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog);
-SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_construct (GType object_type,
- WelcomeDialog* dialog);
-static gboolean welcome_dialog_is_system_pictures_import_possible (void);
-#define RESOURCES_OK_LABEL _ ("_OK")
-gchar* get_display_pathname (GFile* file);
-GFile* app_dirs_get_import_dir (void);
-static void welcome_dialog_install_import_content (WelcomeDialog* self);
-void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self);
-void welcome_dialog_install_service_entry (WelcomeDialog* self,
- WelcomeServiceEntry* entry);
-static void _vala_array_add4 (WelcomeServiceEntry** * array,
- int* length,
- int* size,
- WelcomeServiceEntry* value);
-static void _vala_array_add5 (GtkCheckButton** * array,
- int* length,
- int* size,
- GtkCheckButton* value);
-static void welcome_dialog_on_dismiss (WelcomeDialog* self,
- gint resp);
-gboolean welcome_dialog_execute (WelcomeDialog* self,
- WelcomeServiceEntry*** selected_import_entries,
- int* selected_import_entries_length1,
- gboolean* do_system_pictures_import);
-static void _welcome_dialog_on_dismiss_gtk_dialog_response (GtkDialog* _sender,
- gint response_id,
- gpointer self);
-static void _vala_array_add6 (WelcomeServiceEntry** * array,
- int* length,
- int* size,
- WelcomeServiceEntry* value);
-static WelcomeServiceEntry** _vala_array_dup1 (WelcomeServiceEntry** self,
- int length);
-static void welcome_dialog_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);
-
-
-gchar*
-welcome_service_entry_get_service_name (WelcomeServiceEntry* self)
-{
-#line 9 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_return_val_if_fail (IS_WELCOME_SERVICE_ENTRY (self), NULL);
-#line 9 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return WELCOME_SERVICE_ENTRY_GET_INTERFACE (self)->get_service_name (self);
-#line 157 "WelcomeDialog.c"
-}
-
-
-void
-welcome_service_entry_execute (WelcomeServiceEntry* self)
-{
-#line 11 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_return_if_fail (IS_WELCOME_SERVICE_ENTRY (self));
-#line 11 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- WELCOME_SERVICE_ENTRY_GET_INTERFACE (self)->execute (self);
-#line 168 "WelcomeDialog.c"
-}
-
-
-static void
-welcome_service_entry_base_init (WelcomeServiceEntryIface * iface)
-{
-#line 8 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- static gboolean initialized = FALSE;
-#line 8 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (!initialized) {
-#line 8 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- initialized = TRUE;
-#line 181 "WelcomeDialog.c"
- }
-}
-
-
-GType
-welcome_service_entry_get_type (void)
-{
- static volatile gsize welcome_service_entry_type_id__volatile = 0;
- if (g_once_init_enter (&welcome_service_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (WelcomeServiceEntryIface), (GBaseInitFunc) welcome_service_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType welcome_service_entry_type_id;
- welcome_service_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "WelcomeServiceEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (welcome_service_entry_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&welcome_service_entry_type_id__volatile, welcome_service_entry_type_id);
- }
- return welcome_service_entry_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 32 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return self ? g_object_ref (self) : NULL;
-#line 206 "WelcomeDialog.c"
-}
-
-
-WelcomeDialog*
-welcome_dialog_construct (GType object_type,
- GtkWindow* owner)
-{
- WelcomeDialog * self = NULL;
- SpitDataImportsWelcomeImportMetaHost* _tmp0_;
- gboolean show_system_pictures_import = FALSE;
- GtkWidget* ok_button = NULL;
- GtkWidget* _tmp1_;
- GtkWidget* _tmp2_;
- GtkLabel* primary_text = NULL;
- GtkLabel* _tmp3_;
- GtkLabel* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GtkLabel* _tmp7_;
- GtkLabel* _tmp8_;
- GtkLabel* _tmp9_;
- GtkLabel* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- GtkLabel* _tmp13_;
- GtkLabel* _tmp14_;
- GtkImage* image = NULL;
- GtkImage* _tmp15_;
- GtkBox* header_text = NULL;
- GtkBox* _tmp16_;
- GtkBox* _tmp17_;
- GtkLabel* _tmp18_;
- GtkBox* _tmp19_;
- GtkLabel* _tmp20_;
- GtkBox* header_content = NULL;
- GtkBox* _tmp21_;
- GtkBox* _tmp22_;
- GtkImage* _tmp23_;
- GtkBox* _tmp24_;
- GtkBox* _tmp25_;
- GtkLabel* instructions = NULL;
- GtkLabel* _tmp26_;
- gchar* indent_prefix = NULL;
- gchar* _tmp27_;
- const gchar* _tmp28_ = NULL;
- gchar* arrow_glyph = NULL;
- gchar* _tmp29_;
- GtkLabel* _tmp30_;
- const gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- const gchar* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- const gchar* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- const gchar* _tmp44_;
- gchar* _tmp45_;
- gchar* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
- GtkLabel* _tmp49_;
- GtkLabel* _tmp50_;
- GtkBox* _tmp51_;
- GtkBox* _tmp52_;
- GtkBox* _tmp53_;
- GtkBox* _tmp54_;
- gboolean _tmp55_;
- GtkLabel* _tmp66_;
- GtkLabel* _tmp67_;
- GtkLabel* _tmp68_;
- GtkLabel* _tmp69_;
- GtkBox* content = NULL;
- GtkBox* _tmp70_;
- GtkBox* _tmp71_;
- GtkBox* _tmp72_;
- GtkBox* _tmp73_;
- GtkLabel* _tmp74_;
- GtkCheckButton* _tmp75_;
- GtkCheckButton* _tmp76_;
- GtkCheckButton* _tmp77_;
- GtkBox* _tmp78_;
- GtkWidget* _tmp79_;
- SpitDataImportsWelcomeImportMetaHost* _tmp80_;
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (owner), NULL);
-#line 29 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self = (WelcomeDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 30 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp0_ = spit_data_imports_welcome_import_meta_host_new (self);
-#line 30 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->import_meta_host);
-#line 30 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->import_meta_host = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- show_system_pictures_import = welcome_dialog_is_system_pictures_import_possible ();
-#line 32 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp1_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_OK_LABEL, (gint) GTK_RESPONSE_CLOSE);
-#line 32 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 32 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- ok_button = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_CLOSE);
-#line 35 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _ ("Welcome!"));
-#line 36 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 37 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_window_set_type_hint (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GDK_WINDOW_TYPE_HINT_DIALOG);
-#line 38 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), owner);
-#line 40 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp3_ = (GtkLabel*) gtk_label_new ("");
-#line 40 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp3_);
-#line 40 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- primary_text = _tmp3_;
-#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp4_ = primary_text;
-#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp5_ = g_strdup_printf ("<span size=\"large\" weight=\"bold\">%s</span>", _ ("Welcome to Shotwell!"));
-#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp6_ = _tmp5_;
-#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_markup (_tmp4_, _tmp6_);
-#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp6_);
-#line 43 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp7_ = primary_text;
-#line 43 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_xalign (_tmp7_, 0.0f);
-#line 44 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp8_ = primary_text;
-#line 44 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_yalign (_tmp8_, 0.5f);
-#line 45 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp9_ = (GtkLabel*) gtk_label_new ("");
-#line 45 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp9_);
-#line 45 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->secondary_text);
-#line 45 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->secondary_text = _tmp9_;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp10_ = self->priv->secondary_text;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp11_ = g_strdup_printf ("<span weight=\"normal\">%s</span>", _ ("To get started, import photos in any of these ways:"));
-#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp12_ = _tmp11_;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_markup (_tmp10_, _tmp12_);
-#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp12_);
-#line 48 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp13_ = self->priv->secondary_text;
-#line 48 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_xalign (_tmp13_, 0.0f);
-#line 49 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp14_ = self->priv->secondary_text;
-#line 49 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_yalign (_tmp14_, 0.5f);
-#line 50 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp15_ = (GtkImage*) gtk_image_new_from_icon_name ("shotwell", (GtkIconSize) GTK_ICON_SIZE_DIALOG);
-#line 50 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp15_);
-#line 50 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- image = _tmp15_;
-#line 52 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp16_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 52 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp16_);
-#line 52 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- header_text = _tmp16_;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp17_ = header_text;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp18_ = primary_text;
-#line 53 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_box_pack_start (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 5);
-#line 54 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp19_ = header_text;
-#line 54 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp20_ = self->priv->secondary_text;
-#line 54 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_box_pack_start (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp21_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp21_);
-#line 56 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- header_content = _tmp21_;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp22_ = header_content;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp23_ = image;
-#line 57 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_box_pack_start (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 58 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp24_ = header_content;
-#line 58 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp25_ = header_text;
-#line 58 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_box_pack_start (_tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 60 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp26_ = (GtkLabel*) gtk_label_new ("");
-#line 60 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp26_);
-#line 60 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- instructions = _tmp26_;
-#line 61 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp27_ = g_strdup (" ");
-#line 61 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- indent_prefix = _tmp27_;
-#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (gtk_widget_get_direction (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)) == GTK_TEXT_DIR_RTL) {
-#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp28_ = "◂";
-#line 430 "WelcomeDialog.c"
- } else {
-#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp28_ = "▸";
-#line 434 "WelcomeDialog.c"
- }
-#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp29_ = g_strdup (_tmp28_);
-#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- arrow_glyph = _tmp29_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp30_ = instructions;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp31_ = indent_prefix;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp32_ = g_strconcat (_tmp31_, "&#8226; %s\n", NULL);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp33_ = _tmp32_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp34_ = indent_prefix;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp35_ = g_strconcat (_tmp34_, "&#8226; %s\n", NULL);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp36_ = _tmp35_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp37_ = g_strconcat (_tmp33_, _tmp36_, NULL);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp38_ = _tmp37_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp39_ = indent_prefix;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp40_ = g_strconcat (_tmp39_, "&#8226; %s", NULL);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp41_ = _tmp40_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp42_ = g_strconcat (_tmp38_, _tmp41_, NULL);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp43_ = _tmp42_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp44_ = arrow_glyph;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp45_ = g_strdup_printf (_ ("Choose <span weight=\"bold\">File %s Import From Folder</span>"), _tmp44_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp46_ = _tmp45_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp47_ = g_strdup_printf (_tmp43_, _tmp46_, _ ("Drag and drop photos onto the Shotwell window"), _ ("Connect a camera to your computer and import"));
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp48_ = _tmp47_;
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_markup (_tmp30_, _tmp48_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp48_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp46_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp43_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp41_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp38_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp36_);
-#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp33_);
-#line 70 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp49_ = instructions;
-#line 70 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_xalign (_tmp49_, 0.0f);
-#line 71 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp50_ = instructions;
-#line 71 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_yalign (_tmp50_, 0.5f);
-#line 73 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp51_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
-#line 73 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp51_);
-#line 73 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->import_action_checkbox_packer);
-#line 73 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->import_action_checkbox_packer = _tmp51_;
-#line 75 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp52_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp52_);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->external_import_action_checkbox_packer);
-#line 75 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->external_import_action_checkbox_packer = _tmp52_;
-#line 76 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp53_ = self->priv->import_action_checkbox_packer;
-#line 76 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp54_ = self->priv->external_import_action_checkbox_packer;
-#line 76 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget));
-#line 78 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp55_ = show_system_pictures_import;
-#line 78 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (_tmp55_) {
-#line 528 "WelcomeDialog.c"
- GFile* _tmp56_;
- GFile* _tmp57_;
- gchar* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
- GtkCheckButton* _tmp62_;
- GtkBox* _tmp63_;
- GtkCheckButton* _tmp64_;
- GtkCheckButton* _tmp65_;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp56_ = app_dirs_get_import_dir ();
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp57_ = _tmp56_;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp58_ = get_display_pathname (_tmp57_);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp59_ = _tmp58_;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp60_ = g_strdup_printf (_ ("_Import photos from your %s folder"), _tmp59_);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp61_ = _tmp60_;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp62_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_tmp61_);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp62_);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->system_pictures_import_check);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->system_pictures_import_check = _tmp62_;
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp61_);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp59_);
-#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (_tmp57_);
-#line 82 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp63_ = self->priv->import_action_checkbox_packer;
-#line 82 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp64_ = self->priv->system_pictures_import_check;
-#line 82 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget));
-#line 83 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp65_ = self->priv->system_pictures_import_check;
-#line 83 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 575 "WelcomeDialog.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp66_ = (GtkLabel*) gtk_label_new (_ ("You can also import photos in any of these ways:"));
-#line 86 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp66_);
-#line 86 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->instruction_header);
-#line 86 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->instruction_header = _tmp66_;
-#line 88 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp67_ = self->priv->instruction_header;
-#line 88 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_xalign (_tmp67_, 0.0f);
-#line 89 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp68_ = self->priv->instruction_header;
-#line 89 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_yalign (_tmp68_, 0.5f);
-#line 90 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp69_ = self->priv->instruction_header;
-#line 90 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_widget_get_type (), GtkWidget), 20);
-#line 92 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp70_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 16);
-#line 92 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp70_);
-#line 92 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- content = _tmp70_;
-#line 93 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp71_ = header_content;
-#line 93 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_box_pack_start (content, G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp72_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp72_);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->import_content);
-#line 94 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->import_content = _tmp72_;
-#line 95 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp73_ = self->priv->import_content;
-#line 95 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_widget_get_type (), GtkWidget));
-#line 96 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp74_ = instructions;
-#line 96 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_box_pack_start (content, G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 98 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp75_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_ ("_Don’t show this message again"));
-#line 98 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp75_);
-#line 98 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->hide_button);
-#line 98 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->hide_button = _tmp75_;
-#line 99 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp76_ = self->priv->hide_button;
-#line 99 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 100 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp77_ = self->priv->hide_button;
-#line 100 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_box_pack_start (content, G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 6);
-#line 101 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL);
-#line 102 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL);
-#line 103 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 104 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 105 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), 12);
-#line 106 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), 0);
-#line 107 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), 12);
-#line 108 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), 12);
-#line 110 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp78_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 110 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 112 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp79_ = ok_button;
-#line 112 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_grab_focus (_tmp79_);
-#line 114 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- welcome_dialog_install_import_content (self);
-#line 116 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp80_ = self->priv->import_meta_host;
-#line 116 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- spit_data_imports_welcome_import_meta_host_start (_tmp80_);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (content);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (arrow_glyph);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (indent_prefix);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (instructions);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (header_content);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (header_text);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (image);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (primary_text);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (ok_button);
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return self;
-#line 689 "WelcomeDialog.c"
-}
-
-
-WelcomeDialog*
-welcome_dialog_new (GtkWindow* owner)
-{
-#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return welcome_dialog_construct (TYPE_WELCOME_DIALOG, owner);
-#line 698 "WelcomeDialog.c"
-}
-
-
-static void
-welcome_dialog_install_import_content (WelcomeDialog* self)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GtkCheckButton** _tmp2_;
- gint _tmp2__length1;
-#line 119 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_return_if_fail (IS_WELCOME_DIALOG (self));
-#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp2_ = self->priv->external_import_checks;
-#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp2__length1 = self->priv->external_import_checks_length1;
-#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (_tmp2__length1 > 0) {
-#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp1_ = TRUE;
-#line 719 "WelcomeDialog.c"
- } else {
- GtkCheckButton* _tmp3_;
-#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp3_ = self->priv->system_pictures_import_check;
-#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp1_ = _tmp3_ != NULL;
-#line 726 "WelcomeDialog.c"
- }
-#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (_tmp1_) {
-#line 730 "WelcomeDialog.c"
- gboolean _tmp4_;
-#line 122 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp4_ = self->priv->import_content_already_installed;
-#line 122 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp0_ = _tmp4_ == FALSE;
-#line 736 "WelcomeDialog.c"
- } else {
-#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp0_ = FALSE;
-#line 740 "WelcomeDialog.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (_tmp0_) {
-#line 744 "WelcomeDialog.c"
- GtkLabel* _tmp5_;
- GtkBox* _tmp6_;
- GtkBox* _tmp7_;
- GtkBox* _tmp8_;
- GtkLabel* _tmp9_;
-#line 124 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp5_ = self->priv->secondary_text;
-#line 124 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_label_set_markup (_tmp5_, "");
-#line 125 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp6_ = self->priv->import_content;
-#line 125 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp7_ = self->priv->import_action_checkbox_packer;
-#line 125 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
-#line 126 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp8_ = self->priv->import_content;
-#line 126 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp9_ = self->priv->instruction_header;
-#line 126 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 127 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->import_content_already_installed = TRUE;
-#line 768 "WelcomeDialog.c"
- }
-}
-
-
-static void
-_vala_array_add4 (WelcomeServiceEntry** * array,
- int* length,
- int* size,
- WelcomeServiceEntry* value)
-{
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if ((*length) == (*size)) {
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *array = g_renew (WelcomeServiceEntry*, *array, (*size) + 1);
-#line 785 "WelcomeDialog.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- (*array)[(*length)++] = value;
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- (*array)[*length] = NULL;
-#line 791 "WelcomeDialog.c"
-}
-
-
-static void
-_vala_array_add5 (GtkCheckButton** * array,
- int* length,
- int* size,
- GtkCheckButton* value)
-{
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if ((*length) == (*size)) {
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *array = g_renew (GtkCheckButton*, *array, (*size) + 1);
-#line 807 "WelcomeDialog.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- (*array)[(*length)++] = value;
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- (*array)[*length] = NULL;
-#line 813 "WelcomeDialog.c"
-}
-
-
-void
-welcome_dialog_install_service_entry (WelcomeDialog* self,
- WelcomeServiceEntry* entry)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- WelcomeServiceEntry** _tmp4_;
- gint _tmp4__length1;
- WelcomeServiceEntry* _tmp5_;
- GtkCheckButton* entry_check = NULL;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GtkCheckButton* _tmp10_;
- GtkCheckButton* _tmp11_;
- GtkCheckButton** _tmp12_;
- gint _tmp12__length1;
- GtkCheckButton* _tmp13_;
- GtkBox* _tmp14_;
-#line 131 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_return_if_fail (IS_WELCOME_DIALOG (self));
-#line 131 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_return_if_fail (IS_WELCOME_SERVICE_ENTRY (entry));
-#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp0_ = welcome_service_entry_get_service_name (entry);
-#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp1_ = _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp2_ = g_strdup_printf ("WelcomeDialog: Installing service entry for %s", _tmp1_);
-#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp3_ = _tmp2_;
-#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_debug ("WelcomeDialog.vala:132: %s", _tmp3_);
-#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp3_);
-#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp1_);
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp4_ = self->priv->external_import_entries;
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp4__length1 = self->priv->external_import_entries_length1;
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp5_ = _g_object_ref0 (entry);
-#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _vala_array_add4 (&self->priv->external_import_entries, &self->priv->external_import_entries_length1, &self->priv->_external_import_entries_size_, _tmp5_);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp6_ = welcome_service_entry_get_service_name (entry);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp7_ = _tmp6_;
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp8_ = g_strdup_printf (_ ("Import photos from your %s library"), _tmp7_);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp9_ = _tmp8_;
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp10_ = (GtkCheckButton*) gtk_check_button_new_with_label (_tmp9_);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_object_ref_sink (_tmp10_);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp11_ = _tmp10_;
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp9_);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_free0 (_tmp7_);
-#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- entry_check = _tmp11_;
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp12_ = self->priv->external_import_checks;
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp12__length1 = self->priv->external_import_checks_length1;
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp13_ = _g_object_ref0 (entry_check);
-#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _vala_array_add5 (&self->priv->external_import_checks, &self->priv->external_import_checks_length1, &self->priv->_external_import_checks_size_, _tmp13_);
-#line 137 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (entry_check, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
-#line 138 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp14_ = self->priv->external_import_action_checkbox_packer;
-#line 138 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (entry_check, gtk_widget_get_type (), GtkWidget));
-#line 139 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- welcome_dialog_install_import_content (self);
-#line 131 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (entry_check);
-#line 903 "WelcomeDialog.c"
-}
-
-
-/**
- * Connected to the 'response' signal. This is part of a workaround
- * for the fact that run()-ning this dialog can interfere with displaying
- * images from a camera; please see #4997 for details.
- */
-static void
-welcome_dialog_on_dismiss (WelcomeDialog* self,
- gint resp)
-{
-#line 147 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_return_if_fail (IS_WELCOME_DIALOG (self));
-#line 148 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (resp == ((gint) GTK_RESPONSE_CLOSE)) {
-#line 149 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->ok_clicked = TRUE;
-#line 922 "WelcomeDialog.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 152 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_main_quit ();
-#line 928 "WelcomeDialog.c"
-}
-
-
-static void
-_welcome_dialog_on_dismiss_gtk_dialog_response (GtkDialog* _sender,
- gint response_id,
- gpointer self)
-{
-#line 158 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- welcome_dialog_on_dismiss ((WelcomeDialog*) self, response_id);
-#line 939 "WelcomeDialog.c"
-}
-
-
-static void
-_vala_array_add6 (WelcomeServiceEntry** * array,
- int* length,
- int* size,
- WelcomeServiceEntry* value)
-{
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if ((*length) == (*size)) {
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *array = g_renew (WelcomeServiceEntry*, *array, (*size) + 1);
-#line 955 "WelcomeDialog.c"
- }
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- (*array)[(*length)++] = value;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- (*array)[*length] = NULL;
-#line 961 "WelcomeDialog.c"
-}
-
-
-static WelcomeServiceEntry**
-_vala_array_dup1 (WelcomeServiceEntry** self,
- int length)
-{
- WelcomeServiceEntry** result;
- int i;
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- result = g_new0 (WelcomeServiceEntry*, length + 1);
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- for (i = 0; i < length; i++) {
-#line 975 "WelcomeDialog.c"
- WelcomeServiceEntry* _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp0_ = _g_object_ref0 (self[i]);
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- result[i] = _tmp0_;
-#line 981 "WelcomeDialog.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return result;
-#line 985 "WelcomeDialog.c"
-}
-
-
-gboolean
-welcome_dialog_execute (WelcomeDialog* self,
- WelcomeServiceEntry*** selected_import_entries,
- int* selected_import_entries_length1,
- gboolean* do_system_pictures_import)
-{
- WelcomeServiceEntry** _vala_selected_import_entries = NULL;
- int _vala_selected_import_entries_length1 = 0;
- gboolean _vala_do_system_pictures_import = FALSE;
- gboolean result = FALSE;
- guint _tmp0_;
- gboolean ok = FALSE;
- gboolean _tmp1_;
- gboolean show_dialog = FALSE;
- gboolean _tmp2_;
- WelcomeServiceEntry** _result_ = NULL;
- WelcomeServiceEntry** _tmp4_;
- gint _result__length1;
- gint __result__size_;
- WelcomeServiceEntry** _tmp17_;
- gint _tmp17__length1;
- WelcomeServiceEntry** _tmp18_;
- gint _tmp18__length1;
- gboolean _tmp19_ = FALSE;
- GtkCheckButton* _tmp20_;
-#line 155 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_return_val_if_fail (IS_WELCOME_DIALOG (self), FALSE);
-#line 158 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), "response", (GCallback) _welcome_dialog_on_dismiss_gtk_dialog_response, self, 0);
-#line 159 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 160 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 165 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_main ();
-#line 169 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_signal_parse_name ("response", gtk_dialog_get_type (), &_tmp0_, NULL, FALSE);
-#line 169 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _welcome_dialog_on_dismiss_gtk_dialog_response, self);
-#line 171 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp1_ = self->priv->ok_clicked;
-#line 171 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- ok = _tmp1_;
-#line 172 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- show_dialog = TRUE;
-#line 174 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp2_ = ok;
-#line 174 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (_tmp2_) {
-#line 1038 "WelcomeDialog.c"
- GtkCheckButton* _tmp3_;
-#line 175 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp3_ = self->priv->hide_button;
-#line 175 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- show_dialog = !gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 1044 "WelcomeDialog.c"
- }
-#line 178 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp4_ = g_new0 (WelcomeServiceEntry*, 0 + 1);
-#line 178 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _result_ = _tmp4_;
-#line 178 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _result__length1 = 0;
-#line 178 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- __result__size_ = _result__length1;
-#line 1054 "WelcomeDialog.c"
- {
- gint i = 0;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- i = 0;
-#line 1059 "WelcomeDialog.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp5_ = TRUE;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- while (TRUE) {
-#line 1066 "WelcomeDialog.c"
- gint _tmp7_;
- WelcomeServiceEntry** _tmp8_;
- gint _tmp8__length1;
- GtkCheckButton** _tmp9_;
- gint _tmp9__length1;
- gint _tmp10_;
- GtkCheckButton* _tmp11_;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (!_tmp5_) {
-#line 1076 "WelcomeDialog.c"
- gint _tmp6_;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp6_ = i;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- i = _tmp6_ + 1;
-#line 1082 "WelcomeDialog.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp5_ = FALSE;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp7_ = i;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp8_ = self->priv->external_import_entries;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp8__length1 = self->priv->external_import_entries_length1;
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (!(_tmp7_ < _tmp8__length1)) {
-#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- break;
-#line 1096 "WelcomeDialog.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp9_ = self->priv->external_import_checks;
-#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp9__length1 = self->priv->external_import_checks_length1;
-#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp10_ = i;
-#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp11_ = _tmp9_[_tmp10_];
-#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_toggle_button_get_type (), GtkToggleButton)) == TRUE) {
-#line 1108 "WelcomeDialog.c"
- WelcomeServiceEntry** _tmp12_;
- gint _tmp12__length1;
- WelcomeServiceEntry** _tmp13_;
- gint _tmp13__length1;
- gint _tmp14_;
- WelcomeServiceEntry* _tmp15_;
- WelcomeServiceEntry* _tmp16_;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp12_ = _result_;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp12__length1 = _result__length1;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp13_ = self->priv->external_import_entries;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp13__length1 = self->priv->external_import_entries_length1;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp14_ = i;
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp15_ = _tmp13_[_tmp14_];
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _vala_array_add6 (&_result_, &_result__length1, &__result__size_, _tmp16_);
-#line 1132 "WelcomeDialog.c"
- }
- }
- }
- }
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp17_ = _result_;
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp17__length1 = _result__length1;
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp18_ = (_tmp17_ != NULL) ? _vala_array_dup1 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_);
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp18__length1 = _tmp17__length1;
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _vala_selected_import_entries = (_vala_array_free (_vala_selected_import_entries, _vala_selected_import_entries_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _vala_selected_import_entries = _tmp18_;
-#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _vala_selected_import_entries_length1 = _tmp18__length1;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp20_ = self->priv->system_pictures_import_check;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (_tmp20_ != NULL) {
-#line 1155 "WelcomeDialog.c"
- GtkCheckButton* _tmp21_;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp21_ = self->priv->system_pictures_import_check;
-#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp19_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 1161 "WelcomeDialog.c"
- } else {
-#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp19_ = FALSE;
-#line 1165 "WelcomeDialog.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _vala_do_system_pictures_import = _tmp19_;
-#line 187 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- result = show_dialog;
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) g_object_unref), NULL);
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (selected_import_entries) {
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *selected_import_entries = _vala_selected_import_entries;
-#line 1179 "WelcomeDialog.c"
- } else {
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _vala_selected_import_entries = (_vala_array_free (_vala_selected_import_entries, _vala_selected_import_entries_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 1183 "WelcomeDialog.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (selected_import_entries_length1) {
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *selected_import_entries_length1 = _vala_selected_import_entries_length1;
-#line 1189 "WelcomeDialog.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (do_system_pictures_import) {
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- *do_system_pictures_import = _vala_do_system_pictures_import;
-#line 1195 "WelcomeDialog.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return result;
-#line 1199 "WelcomeDialog.c"
-}
-
-
-static gboolean
-welcome_dialog_is_system_pictures_import_possible (void)
-{
- gboolean result = FALSE;
- GFile* system_pictures = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gboolean _tmp8_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 193 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp0_ = app_dirs_get_import_dir ();
-#line 193 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- system_pictures = _tmp0_;
-#line 194 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp1_ = system_pictures;
-#line 194 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (!g_file_query_exists (_tmp1_, NULL)) {
-#line 195 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- result = FALSE;
-#line 195 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (system_pictures);
-#line 195 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return result;
-#line 1227 "WelcomeDialog.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp2_ = system_pictures;
-#line 197 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (!(g_file_query_file_type (_tmp2_, G_FILE_QUERY_INFO_NONE, NULL) == G_FILE_TYPE_DIRECTORY)) {
-#line 198 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- result = FALSE;
-#line 198 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (system_pictures);
-#line 198 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return result;
-#line 1239 "WelcomeDialog.c"
- }
- {
- GFileEnumerator* syspics_child_enum = NULL;
- GFile* _tmp3_;
- GFileEnumerator* _tmp4_;
- GFileInfo* _tmp5_ = NULL;
- GFileEnumerator* _tmp6_;
- GFileInfo* _tmp7_;
-#line 201 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp3_ = system_pictures;
-#line 201 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp4_ = g_file_enumerate_children (_tmp3_, "standard::*", G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 201 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- syspics_child_enum = _tmp4_;
-#line 201 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1256 "WelcomeDialog.c"
- goto __catch24_g_error;
- }
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp6_ = syspics_child_enum;
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp7_ = g_file_enumerator_next_file (_tmp6_, NULL, &_inner_error_);
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp5_ = _tmp7_;
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (syspics_child_enum);
-#line 1269 "WelcomeDialog.c"
- goto __catch24_g_error;
- }
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- result = _tmp5_ != NULL;
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (_tmp5_);
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (syspics_child_enum);
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (system_pictures);
-#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return result;
-#line 1282 "WelcomeDialog.c"
- }
- goto __finally24;
- __catch24_g_error:
- {
- GError* e = NULL;
-#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- e = _inner_error_;
-#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _inner_error_ = NULL;
-#line 205 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- result = FALSE;
-#line 205 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_error_free0 (e);
-#line 205 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (system_pictures);
-#line 205 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return result;
-#line 1300 "WelcomeDialog.c"
- }
- __finally24:
-#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (system_pictures);
-#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.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 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_clear_error (&_inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- return _tmp8_;
-#line 1311 "WelcomeDialog.c"
-}
-
-
-static void
-welcome_dialog_class_init (WelcomeDialogClass * klass)
-{
-#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- welcome_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- g_type_class_add_private (klass, sizeof (WelcomeDialogPrivate));
-#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- G_OBJECT_CLASS (klass)->finalize = welcome_dialog_finalize;
-#line 1324 "WelcomeDialog.c"
-}
-
-
-static void
-welcome_dialog_instance_init (WelcomeDialog * self)
-{
- GtkCheckButton** _tmp0_;
- WelcomeServiceEntry** _tmp1_;
-#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv = WELCOME_DIALOG_GET_PRIVATE (self);
-#line 16 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->system_pictures_import_check = NULL;
-#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp0_ = g_new0 (GtkCheckButton*, 0 + 1);
-#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->external_import_checks = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->external_import_checks_length1 = 0;
-#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->_external_import_checks_size_ = self->priv->external_import_checks_length1;
-#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _tmp1_ = g_new0 (WelcomeServiceEntry*, 0 + 1);
-#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->external_import_entries = _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->external_import_entries_length1 = 0;
-#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->_external_import_entries_size_ = self->priv->external_import_entries_length1;
-#line 25 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->import_content_already_installed = FALSE;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->ok_clicked = FALSE;
-#line 1357 "WelcomeDialog.c"
-}
-
-
-static void
-welcome_dialog_finalize (GObject * obj)
-{
- WelcomeDialog * self;
-#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_WELCOME_DIALOG, WelcomeDialog);
-#line 15 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->hide_button);
-#line 16 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->system_pictures_import_check);
-#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->external_import_checks = (_vala_array_free (self->priv->external_import_checks, self->priv->external_import_checks_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- self->priv->external_import_entries = (_vala_array_free (self->priv->external_import_entries, self->priv->external_import_entries_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 19 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->secondary_text);
-#line 20 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->instruction_header);
-#line 21 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->import_content);
-#line 22 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->import_action_checkbox_packer);
-#line 23 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->external_import_action_checkbox_packer);
-#line 24 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- _g_object_unref0 (self->priv->import_meta_host);
-#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala"
- G_OBJECT_CLASS (welcome_dialog_parent_class)->finalize (obj);
-#line 1389 "WelcomeDialog.c"
-}
-
-
-GType
-welcome_dialog_get_type (void)
-{
- static volatile gsize welcome_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&welcome_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (WelcomeDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) welcome_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (WelcomeDialog), 0, (GInstanceInitFunc) welcome_dialog_instance_init, NULL };
- GType welcome_dialog_type_id;
- welcome_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "WelcomeDialog", &g_define_type_info, 0);
- g_once_init_leave (&welcome_dialog_type_id__volatile, welcome_dialog_type_id);
- }
- return welcome_dialog_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/direct/Direct.c b/src/direct/Direct.c
deleted file mode 100644
index 48e5fab..0000000
--- a/src/direct/Direct.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/* Direct.c generated by valac 0.40.4, the Vala compiler
- * generated from Direct.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* This file is the master unit file for the Direct unit. It should be edited to include
- * whatever code is deemed necessary.
- *
- * The init() and terminate() methods are mandatory.
- *
- * If the unit needs to be configured prior to initialization, add the proper parameters to
- * the preconfigure() method, implement it, and ensure in init() that it's been called.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-
-extern GFile* direct_initial_file;
-GFile* direct_initial_file = NULL;
-
-void direct_preconfigure (GFile* initial_file);
-void direct_init (GError** error);
-void direct_photo_init (GFile* initial_file);
-void direct_terminate (void);
-void direct_photo_terminate (void);
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 21 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- return self ? g_object_ref (self) : NULL;
-#line 46 "Direct.c"
-}
-
-
-void
-direct_preconfigure (GFile* initial_file)
-{
- GFile* _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- g_return_if_fail (G_IS_FILE (initial_file));
-#line 21 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- _tmp0_ = _g_object_ref0 (initial_file);
-#line 21 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- _g_object_unref0 (direct_initial_file);
-#line 21 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- direct_initial_file = _tmp0_;
-#line 62 "Direct.c"
-}
-
-
-void
-direct_init (GError** error)
-{
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- _tmp0_ = direct_initial_file;
-#line 25 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- _vala_assert (_tmp0_ != NULL, "initial_file != null");
-#line 27 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- _tmp1_ = direct_initial_file;
-#line 27 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- direct_photo_init (_tmp1_);
-#line 79 "Direct.c"
-}
-
-
-void
-direct_terminate (void)
-{
-#line 31 "/home/jens/Source/shotwell/src/direct/Direct.vala"
- direct_photo_terminate ();
-#line 88 "Direct.c"
-}
-
-
-
diff --git a/src/direct/DirectPhoto.c b/src/direct/DirectPhoto.c
deleted file mode 100644
index 42b8670..0000000
--- a/src/direct/DirectPhoto.c
+++ /dev/null
@@ -1,2997 +0,0 @@
-/* DirectPhoto.c generated by valac 0.40.4, the Vala compiler
- * generated from DirectPhoto.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <time.h>
-#include <gee.h>
-#include "shotwell-graphics-processor.h"
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-
-#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;
-typedef struct _MediaSourcePrivate MediaSourcePrivate;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ())
-#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState))
-#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE))
-#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE))
-#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
-
-typedef struct _BackingFileState BackingFileState;
-typedef struct _BackingFileStateClass BackingFileStateClass;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#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;
-typedef struct _PhotoSourcePrivate PhotoSourcePrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-
-#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 _PhotoPrivate PhotoPrivate;
-
-#define TYPE_ROTATION (rotation_get_type ())
-
-#define TYPE_PHOTO_ROW (photo_row_get_type ())
-#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow))
-#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass))
-#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW))
-#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW))
-#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass))
-
-typedef struct _PhotoRow PhotoRow;
-typedef struct _PhotoRowClass PhotoRowClass;
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-
-#define TYPE_DIRECT_PHOTO (direct_photo_get_type ())
-#define DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO, DirectPhoto))
-#define DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO, DirectPhotoClass))
-#define IS_DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO))
-#define IS_DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO))
-#define DIRECT_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO, DirectPhotoClass))
-
-typedef struct _DirectPhoto DirectPhoto;
-typedef struct _DirectPhotoClass DirectPhotoClass;
-typedef struct _DirectPhotoPrivate DirectPhotoPrivate;
-enum {
- DIRECT_PHOTO_0_PROPERTY,
- DIRECT_PHOTO_NUM_PROPERTIES
-};
-static GParamSpec* direct_photo_properties[DIRECT_PHOTO_NUM_PROPERTIES];
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_DIRECT_PHOTO_SOURCE_COLLECTION (direct_photo_source_collection_get_type ())
-#define DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection))
-#define DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass))
-#define IS_DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION))
-#define IS_DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION))
-#define DIRECT_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass))
-
-typedef struct _DirectPhotoSourceCollection DirectPhotoSourceCollection;
-typedef struct _DirectPhotoSourceCollectionClass DirectPhotoSourceCollectionClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-typedef struct _PhotoRowPrivate PhotoRowPrivate;
-
-#define TYPE_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_IMPORT_RESULT (import_result_get_type ())
-
-#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ())
-#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState))
-#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
-#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE))
-#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE))
-#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
-
-typedef struct _PhotoReimportMasterState PhotoReimportMasterState;
-typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass;
-#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL)))
-
-#define TYPE_PHOTO_IMPORT_PARAMS (photo_import_params_get_type ())
-#define PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams))
-#define PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass))
-#define IS_PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_PARAMS))
-#define IS_PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_PARAMS))
-#define PHOTO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass))
-
-typedef struct _PhotoImportParams PhotoImportParams;
-typedef struct _PhotoImportParamsClass PhotoImportParamsClass;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_PHOTO_TABLE (photo_table_get_type ())
-#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable))
-#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass))
-#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE))
-#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE))
-#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass))
-
-typedef struct _PhotoTable PhotoTable;
-typedef struct _PhotoTableClass PhotoTableClass;
-typedef struct _PhotoImportParamsPrivate PhotoImportParamsPrivate;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_THUMBNAILS (thumbnails_get_type ())
-#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails))
-#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass))
-#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS))
-#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS))
-#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass))
-
-typedef struct _Thumbnails Thumbnails;
-typedef struct _ThumbnailsClass ThumbnailsClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _photo_import_params_unref0(var) ((var == NULL) ? NULL : (var = (photo_import_params_unref (var), NULL)))
-
-#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ())
-#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview))
-#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
-#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW))
-#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW))
-#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
-
-typedef struct _PhotoPreview PhotoPreview;
-typedef struct _PhotoPreviewClass PhotoPreviewClass;
-#define _photo_preview_unref0(var) ((var == NULL) ? NULL : (var = (photo_preview_unref (var), NULL)))
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-enum {
- DIRECT_PHOTO_CAN_ROTATE_CHANGED_SIGNAL,
- DIRECT_PHOTO_NUM_SIGNALS
-};
-static guint direct_photo_signals[DIRECT_PHOTO_NUM_SIGNALS] = {0};
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
-
-#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
-#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
-#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
-#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
-#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
-
-typedef struct _SourceBacklink SourceBacklink;
-typedef struct _SourceBacklinkClass SourceBacklinkClass;
-typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
-typedef struct _DirectPhotoSourceCollectionPrivate DirectPhotoSourceCollectionPrivate;
-
-#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ())
-#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor))
-#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR))
-#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR))
-#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-
-typedef struct _DirectoryMonitor DirectoryMonitor;
-typedef struct _DirectoryMonitorClass DirectoryMonitorClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _ThumbnailSource {
- DataSource parent_instance;
- ThumbnailSourcePrivate * priv;
-};
-
-struct _ThumbnailSourceClass {
- DataSourceClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailSource* self);
- GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
- gchar* (*get_representative_id) (ThumbnailSource* self);
- PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self);
- void (*thumbnail_altered) (ThumbnailSource* self);
-};
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _EventID {
- gint64 id;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _MediaSource {
- ThumbnailSource parent_instance;
- MediaSourcePrivate * priv;
-};
-
-struct _MediaSourceClass {
- ThumbnailSourceClass parent_class;
- void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
- gboolean (*set_event_id) (MediaSource* self, EventID* id);
- gchar* (*get_basename) (MediaSource* self);
- GFile* (*get_file) (MediaSource* self);
- GFile* (*get_master_file) (MediaSource* self);
- guint64 (*get_master_filesize) (MediaSource* self);
- guint64 (*get_filesize) (MediaSource* self);
- time_t (*get_timestamp) (MediaSource* self);
- BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1);
- gchar* (*get_title) (MediaSource* self);
- gchar* (*get_comment) (MediaSource* self);
- void (*set_title) (MediaSource* self, const gchar* title);
- gboolean (*set_comment) (MediaSource* self, const gchar* comment);
- Rating (*get_rating) (MediaSource* self);
- void (*set_rating) (MediaSource* self, Rating rating);
- void (*increase_rating) (MediaSource* self);
- void (*decrease_rating) (MediaSource* self);
- void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result);
- GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error);
- gboolean (*is_trashed) (MediaSource* self);
- void (*trash) (MediaSource* self);
- void (*untrash) (MediaSource* self);
- gboolean (*is_offline) (MediaSource* self);
- void (*mark_offline) (MediaSource* self);
- void (*mark_online) (MediaSource* self);
- gchar* (*get_master_md5) (MediaSource* self);
- void (*get_event_id) (MediaSource* self, EventID* result);
- time_t (*get_exposure_time) (MediaSource* self);
- void (*get_import_id) (MediaSource* self, ImportID* result);
- void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
-};
-
-struct _PhotoSource {
- MediaSource parent_instance;
- PhotoSourcePrivate * priv;
-};
-
-struct _PhotoSourceClass {
- MediaSourceClass parent_class;
- PhotoMetadata* (*get_metadata) (PhotoSource* self);
- GdkPixbuf* (*get_pixbuf) (PhotoSource* self, Scaling* scaling, GError** error);
-};
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-typedef enum {
- ROTATION_CLOCKWISE,
- ROTATION_COUNTERCLOCKWISE,
- ROTATION_MIRROR,
- ROTATION_UPSIDE_DOWN
-} Rotation;
-
-struct _Photo {
- PhotoSource parent_instance;
- PhotoPrivate * priv;
- PhotoRow* row;
- gboolean can_rotate_now;
- BackingPhotoRow* backing_photo_row;
-};
-
-struct _PhotoClass {
- PhotoSourceClass parent_class;
- void (*notify_editable_replaced) (Photo* self, GFile* old_file, GFile* new_file);
- void (*notify_raw_development_modified) (Photo* self);
- void (*notify_baseline_replaced) (Photo* self);
- void (*notify_master_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*notify_editable_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*notify_source_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*notify_baseline_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*apply_user_metadata_for_reimport) (Photo* self, PhotoMetadata* metadata);
- void (*rotate) (Photo* self, Rotation rotation);
- gboolean (*has_user_generated_metadata) (Photo* self);
- void (*set_user_metadata_for_export) (Photo* self, PhotoMetadata* metadata);
- void (*editable_replaced) (Photo* self, GFile* old_file, GFile* new_file);
- void (*raw_development_modified) (Photo* self);
- void (*baseline_replaced) (Photo* self);
- void (*master_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*editable_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*baseline_reimported) (Photo* self, PhotoMetadata* metadata);
- void (*source_reimported) (Photo* self, PhotoMetadata* metadata);
-};
-
-struct _DirectPhoto {
- Photo parent_instance;
- DirectPhotoPrivate * priv;
-};
-
-struct _DirectPhotoClass {
- PhotoClass parent_class;
-};
-
-struct _DirectPhotoPrivate {
- GdkPixbuf* preview;
- gboolean loaded;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-struct _PhotoID {
- gint64 id;
-};
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _PhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoRowPrivate * priv;
- PhotoID photo_id;
- BackingPhotoRow* master;
- time_t exposure_time;
- ImportID import_id;
- EventID event_id;
- Orientation orientation;
- GeeHashMap* transformations;
- gchar* md5;
- gchar* thumbnail_md5;
- gchar* exif_md5;
- time_t time_created;
- guint64 flags;
- Rating rating;
- gchar* title;
- gchar* comment;
- gchar* backlinks;
- time_t time_reimported;
- BackingPhotoID editable_id;
- gboolean metadata_dirty;
- RawDeveloper developer;
- BackingPhotoID* development_ids;
- gint development_ids_length1;
-};
-
-struct _PhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoRow *self);
-};
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-typedef enum {
- BACKING_FETCH_MODE_SOURCE,
- BACKING_FETCH_MODE_BASELINE,
- BACKING_FETCH_MODE_MASTER,
- BACKING_FETCH_MODE_UNMODIFIED
-} BackingFetchMode;
-
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoImportParams {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoImportParamsPrivate * priv;
- GFile* file;
- GFile* final_associated_file;
- ImportID import_id;
- PhotoFileSnifferOptions sniffer_options;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* full_md5;
- Thumbnails* thumbnails;
- PhotoRow* row;
- GeeCollection* keywords;
-};
-
-struct _PhotoImportParamsClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoImportParams *self);
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _SourceCollection {
- DataCollection parent_instance;
- SourceCollectionPrivate * priv;
-};
-
-struct _SourceCollectionClass {
- DataCollectionClass parent_class;
- gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
- void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
- void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
- void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
- gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
- void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
- void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
- void (*item_destroyed) (SourceCollection* self, DataSource* source);
- void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
- void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
- void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-};
-
-struct _DatabaseSourceCollection {
- SourceCollection parent_instance;
- DatabaseSourceCollectionPrivate * priv;
-};
-
-struct _DatabaseSourceCollectionClass {
- SourceCollectionClass parent_class;
-};
-
-struct _DirectPhotoSourceCollection {
- DatabaseSourceCollection parent_instance;
- DirectPhotoSourceCollectionPrivate * priv;
-};
-
-struct _DirectPhotoSourceCollectionClass {
- DatabaseSourceCollectionClass parent_class;
-};
-
-struct _DirectPhotoSourceCollectionPrivate {
- GeeCollection* prepared_photos;
- GeeHashMap* file_map;
- DirectoryMonitor* monitor;
-};
-
-typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
-
-static gpointer direct_photo_parent_class = NULL;
-extern DirectPhotoSourceCollection* direct_photo_global;
-DirectPhotoSourceCollection* direct_photo_global = NULL;
-static gpointer direct_photo_source_collection_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType indexable_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-gpointer backing_file_state_ref (gpointer instance);
-void backing_file_state_unref (gpointer instance);
-GParamSpec* param_spec_backing_file_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_file_state (GValue* value,
- gpointer v_object);
-void value_take_backing_file_state (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_file_state (const GValue* value);
-GType backing_file_state_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType photo_exception_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-GType photo_source_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType dateable_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-GType rotation_get_type (void) G_GNUC_CONST;
-gpointer photo_row_ref (gpointer instance);
-void photo_row_unref (gpointer instance);
-GParamSpec* param_spec_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_row (GValue* value,
- gpointer v_object);
-void value_take_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_row (const GValue* value);
-GType photo_row_get_type (void) G_GNUC_CONST;
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-GType direct_photo_get_type (void) G_GNUC_CONST;
-#define DIRECT_PHOTO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_PHOTO, DirectPhotoPrivate))
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType direct_photo_source_collection_get_type (void) G_GNUC_CONST;
-#define DIRECT_PHOTO_PREVIEW_BEST_FIT 360
-static DirectPhoto* direct_photo_new (PhotoRow* row);
-static DirectPhoto* direct_photo_construct (GType object_type,
- PhotoRow* row);
-Photo* photo_construct (GType object_type,
- PhotoRow* row);
-GType orientation_get_type (void) G_GNUC_CONST;
-void direct_photo_fixup_orientation_after_reimport (DirectPhoto* self,
- Orientation dest);
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-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);
-GType raw_developer_get_type (void) G_GNUC_CONST;
-void direct_photo_init (GFile* initial_file);
-void photo_init_photo (void);
-DirectPhotoSourceCollection* direct_photo_source_collection_new (GFile* initial_file);
-DirectPhotoSourceCollection* direct_photo_source_collection_construct (GType object_type,
- GFile* initial_file);
-gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self,
- GFile* file,
- DirectPhoto* * photo,
- gboolean reimport);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-void direct_photo_terminate (void);
-void photo_terminate_photo (void);
-static void direct_photo_save_dims (DirectPhoto* self);
-GType backing_fetch_mode_get_type (void) G_GNUC_CONST;
-GdkPixbuf* photo_get_pixbuf_with_options (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- BackingFetchMode fetch_mode,
- GError** error);
-void scaling_for_original (Scaling* result);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-gchar* data_object_to_string (DataObject* self);
-GType import_result_get_type (void) G_GNUC_CONST;
-ImportResult direct_photo_demand_load (DirectPhoto* self);
-gpointer photo_reimport_master_state_ref (gpointer instance);
-void photo_reimport_master_state_unref (gpointer instance);
-GParamSpec* photo_param_spec_reimport_master_state (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void photo_value_set_reimport_master_state (GValue* value,
- gpointer v_object);
-void photo_value_take_reimport_master_state (GValue* value,
- gpointer v_object);
-gpointer photo_value_get_reimport_master_state (const GValue* value);
-GType photo_reimport_master_state_get_type (void) G_GNUC_CONST;
-gboolean photo_prepare_for_reimport_master (Photo* self,
- PhotoReimportMasterState* * reimport_state,
- GError** error);
-GQuark database_error_quark (void);
-void photo_finish_reimport_master (Photo* self,
- PhotoReimportMasterState* state,
- GError** error);
-ImportResult direct_photo_internal_import (GFile* file,
- DirectPhoto* * photo);
-gpointer photo_import_params_ref (gpointer instance);
-void photo_import_params_unref (gpointer instance);
-GParamSpec* param_spec_photo_import_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_import_params (GValue* value,
- gpointer v_object);
-void value_take_photo_import_params (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_import_params (const GValue* value);
-GType photo_import_params_get_type (void) G_GNUC_CONST;
-void import_id_generate (ImportID* result);
-PhotoImportParams* photo_import_params_new_create_placeholder (GFile* file,
- ImportID* import_id);
-PhotoImportParams* photo_import_params_construct_create_placeholder (GType object_type,
- GFile* file,
- ImportID* import_id);
-void photo_create_pre_import (PhotoImportParams* params);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType photo_table_get_type (void) G_GNUC_CONST;
-PhotoTable* photo_table_get_instance (void);
-void photo_table_add (PhotoTable* self,
- PhotoRow* photo_row,
- PhotoID* result);
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-gpointer thumbnails_ref (gpointer instance);
-void thumbnails_unref (gpointer instance);
-GParamSpec* param_spec_thumbnails (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_thumbnails (GValue* value,
- gpointer v_object);
-void value_take_thumbnails (GValue* value,
- gpointer v_object);
-gpointer value_get_thumbnails (const GValue* value);
-GType thumbnails_get_type (void) G_GNUC_CONST;
-static GdkPixbuf* direct_photo_real_get_preview_pixbuf (MediaSource* base,
- Scaling* scaling,
- GError** error);
-GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self,
- gint scale,
- GError** error);
-GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self,
- GdkPixbuf* pixbuf,
- GdkInterpType interp,
- gboolean scale_up);
-static void direct_photo_real_rotate (Photo* base,
- Rotation rotation);
-void photo_rotate (Photo* self,
- Rotation rotation);
-static GdkPixbuf* direct_photo_real_get_pixbuf (PhotoSource* base,
- Scaling* scaling,
- GError** error);
-static GdkPixbuf* direct_photo_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error);
-PhotoMetadata* photo_source_get_metadata (PhotoSource* self);
-guint photo_metadata_get_preview_count (PhotoMetadata* self);
-gpointer photo_preview_ref (gpointer instance);
-void photo_preview_unref (gpointer instance);
-GParamSpec* param_spec_photo_preview (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_preview (GValue* value,
- gpointer v_object);
-void value_take_photo_preview (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_preview (const GValue* value);
-GType photo_preview_get_type (void) G_GNUC_CONST;
-PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self,
- guint number);
-GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self,
- GError** error);
-Orientation photo_get_orientation (Photo* self);
-GdkPixbuf* orientation_rotate_pixbuf (Orientation self,
- GdkPixbuf* pixbuf);
-static void direct_photo_real_notify_altered (DataObject* base,
- Alteration* alteration);
-void data_object_notify_altered (DataObject* self,
- Alteration* alteration);
-static gboolean direct_photo_real_has_user_generated_metadata (Photo* base);
-static void direct_photo_real_set_user_metadata_for_export (Photo* base,
- PhotoMetadata* metadata);
-static void direct_photo_real_apply_user_metadata_for_reimport (Photo* base,
- PhotoMetadata* metadata);
-static gboolean direct_photo_real_is_trashed (MediaSource* base);
-static gboolean direct_photo_real_is_offline (MediaSource* base);
-static void direct_photo_real_trash (MediaSource* base);
-static void direct_photo_real_untrash (MediaSource* base);
-static void direct_photo_real_mark_offline (MediaSource* base);
-static void direct_photo_real_mark_online (MediaSource* base);
-static void direct_photo_finalize (GObject * obj);
-GType marker_get_type (void) G_GNUC_CONST;
-gpointer source_backlink_ref (gpointer instance);
-void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_backlink (GValue* value,
- gpointer v_object);
-void value_take_source_backlink (GValue* value,
- gpointer v_object);
-gpointer value_get_source_backlink (const GValue* value);
-GType source_backlink_get_type (void) G_GNUC_CONST;
-GType directory_monitor_get_type (void) G_GNUC_CONST;
-#define DIRECT_PHOTO_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionPrivate))
-guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean file_equal (GFile* a,
- GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-#define DIRECT_PHOTO_SOURCE_COLLECTION_DISCOVERED_FILES_BATCH_ADD 500
-static gint64 direct_photo_source_collection_get_direct_key (DataSource* source);
-static gint64 _direct_photo_source_collection_get_direct_key_get_source_database_key (DataSource* source,
- gpointer self);
-DatabaseSourceCollection* database_source_collection_construct (GType object_type,
- const gchar* name,
- GetSourceDatabaseKey source_key_func,
- void* source_key_func_target);
-DirectoryMonitor* directory_monitor_new (GFile* root,
- gboolean recurse,
- gboolean monitoring);
-DirectoryMonitor* directory_monitor_construct (GType object_type,
- GFile* root,
- gboolean recurse,
- gboolean monitoring);
-static void direct_photo_source_collection_on_file_discovered (DirectPhotoSourceCollection* self,
- GFile* file,
- GFileInfo* info);
-static void _direct_photo_source_collection_on_file_discovered_directory_monitor_file_discovered (DirectoryMonitor* _sender,
- GFile* file,
- GFileInfo* info,
- gpointer self);
-static void direct_photo_source_collection_on_discovery_completed (DirectPhotoSourceCollection* self);
-static void _direct_photo_source_collection_on_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender,
- gpointer self);
-void directory_monitor_start_discovery (DirectoryMonitor* self);
-static gboolean direct_photo_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source);
-void photo_get_photo_id (Photo* self,
- PhotoID* result);
-static void direct_photo_source_collection_real_notify_items_added (DataCollection* base,
- GeeIterable* added);
-GFile* media_source_get_file (MediaSource* self);
-void data_collection_notify_items_added (DataCollection* self,
- GeeIterable* added);
-static void direct_photo_source_collection_real_notify_items_removed (DataCollection* base,
- GeeIterable* removed);
-void data_collection_notify_items_removed (DataCollection* self,
- GeeIterable* removed);
-gboolean direct_photo_source_collection_has_source_for_file (DirectPhotoSourceCollection* self,
- GFile* file);
-gboolean photo_file_format_is_file_supported (GFile* file);
-static void direct_photo_source_collection_flush_prepared_photos (DirectPhotoSourceCollection* self);
-GeeCollection* data_collection_add_many (DataCollection* self,
- GeeCollection* objects,
- ProgressMonitor monitor,
- void* monitor_target);
-gboolean direct_photo_source_collection_has_file (DirectPhotoSourceCollection* self,
- GFile* file);
-void direct_photo_source_collection_reimport_photo (DirectPhotoSourceCollection* self,
- DirectPhoto* photo);
-void photo_discard_prefetched (Photo* self);
-gboolean photo_only_metadata_changed (Photo* self);
-PhotoFileFormat photo_get_file_format (Photo* self);
-gchar* import_result_to_string (ImportResult self);
-gboolean direct_photo_source_collection_has_file_source (DirectPhotoSourceCollection* self,
- GFile* file);
-DirectPhoto* direct_photo_source_collection_get_file_source (DirectPhotoSourceCollection* self,
- GFile* file);
-static void direct_photo_source_collection_finalize (DataCollection * obj);
-
-
-static DirectPhoto*
-direct_photo_construct (GType object_type,
- PhotoRow* row)
-{
- DirectPhoto * self = NULL;
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_PHOTO_ROW (row), NULL);
-#line 18 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = (DirectPhoto*) photo_construct (object_type, row);
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return self;
-#line 1276 "DirectPhoto.c"
-}
-
-
-static DirectPhoto*
-direct_photo_new (PhotoRow* row)
-{
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return direct_photo_construct (TYPE_DIRECT_PHOTO, row);
-#line 1285 "DirectPhoto.c"
-}
-
-
-/**
- * @brief Because all transformations are discarded on reimport by design, including
- * Orientation, a JFIF file that is only rotated or flipped, then saved, has the orientation
- * change the user made before saving removed (recall that fetch() remembers which images it
- * has seen before and will only add a file to the file map once; every time it sees it
- * again after this is considered a reimport). This will set the orientation to the
- * specified value, fixing up both the row and the backing row.
- *
- * @warning Only reimported JFIF files should need this; non-lossy image types have their
- * actual pixels physically rotated in the file when they're exported.
- *
- * @param dest The orientation to set the photo to; usually, this should be a value
- * obtained by calling get_orientation() prior to export()ing a DirectPhoto.
- */
-void
-direct_photo_fixup_orientation_after_reimport (DirectPhoto* self,
- Orientation dest)
-{
- PhotoRow* _tmp0_;
- BackingPhotoRow* _tmp1_;
-#line 35 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_DIRECT_PHOTO (self));
-#line 36 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->row;
-#line 36 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_->orientation = dest;
-#line 37 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->backing_photo_row;
-#line 37 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_->original_orientation = dest;
-#line 1319 "DirectPhoto.c"
-}
-
-
-void
-direct_photo_init (GFile* initial_file)
-{
- DirectPhotoSourceCollection* _tmp0_;
- DirectPhoto* photo = NULL;
- gchar* reason = NULL;
- DirectPhotoSourceCollection* _tmp1_;
- DirectPhoto* _tmp2_ = NULL;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- DirectPhotoSourceCollection* _tmp6_;
- DirectPhoto* _tmp7_;
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (G_IS_FILE (initial_file));
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_init_photo ();
-#line 43 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = direct_photo_source_collection_new (initial_file);
-#line 43 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _data_collection_unref0 (direct_photo_global);
-#line 43 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_global = _tmp0_;
-#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = direct_photo_global;
-#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = direct_photo_source_collection_fetch (_tmp1_, initial_file, &_tmp2_, FALSE);
-#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (photo);
-#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo = _tmp2_;
-#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- reason = _tmp3_;
-#line 46 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = reason;
-#line 46 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp4_ != NULL) {
-#line 1359 "DirectPhoto.c"
- const gchar* _tmp5_;
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = reason;
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_warning ("DirectPhoto.vala:47: fetch error: %s", _tmp5_);
-#line 1365 "DirectPhoto.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = direct_photo_global;
-#line 48 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp7_ = photo;
-#line 48 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject));
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_free0 (reason);
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (photo);
-#line 1377 "DirectPhoto.c"
-}
-
-
-void
-direct_photo_terminate (void)
-{
-#line 52 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_terminate_photo ();
-#line 1386 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_save_dims (DirectPhoto* self)
-{
- GError * _inner_error_ = NULL;
-#line 57 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_DIRECT_PHOTO (self));
-#line 1396 "DirectPhoto.c"
- {
- GdkPixbuf* _tmp0_ = NULL;
- Scaling _tmp1_ = {0};
- GdkPixbuf* _tmp2_;
- BackingPhotoRow* _tmp3_;
- Dimensions _tmp4_ = {0};
-#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- scaling_for_original (&_tmp1_);
-#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = photo_get_pixbuf_with_options (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp1_, (PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_STRAIGHTEN) | PHOTO_EXCEPTION_ORIENTATION, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
-#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = _tmp2_;
-#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1411 "DirectPhoto.c"
- goto __catch49_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;
-#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- dimensions_for_pixbuf (_tmp0_, &_tmp4_);
-#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_->dim = _tmp4_;
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp0_);
-#line 1422 "DirectPhoto.c"
- }
- goto __finally49;
- __catch49_g_error:
- {
- GError* e = NULL;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- e = _inner_error_;
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _inner_error_ = NULL;
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = _tmp5_;
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_warning ("DirectPhoto.vala:62: Dimensions for image %s could not be gotten.", _tmp6_);
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_free0 (_tmp6_);
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_error_free0 (e);
-#line 1444 "DirectPhoto.c"
- }
- __finally49:
-#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"
- 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 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_clear_error (&_inner_error_);
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return;
-#line 1455 "DirectPhoto.c"
- }
-}
-
-
-ImportResult
-direct_photo_demand_load (DirectPhoto* self)
-{
- ImportResult result = 0;
- gboolean _tmp0_;
- PhotoReimportMasterState* reimport_state = NULL;
- GError * _inner_error_ = NULL;
-#line 67 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO (self), 0);
-#line 68 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = self->priv->loaded;
-#line 68 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp0_) {
-#line 69 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_save_dims (self);
-#line 70 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = IMPORT_RESULT_SUCCESS;
-#line 70 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1479 "DirectPhoto.c"
- }
- {
- PhotoReimportMasterState* _tmp1_ = NULL;
- PhotoReimportMasterState* _tmp2_;
-#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_prepare_for_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp1_, &_inner_error_);
-#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- reimport_state = _tmp1_;
-#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1492 "DirectPhoto.c"
- goto __catch50_g_error;
- }
-#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = reimport_state;
-#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_finish_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp2_, &_inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1501 "DirectPhoto.c"
- goto __catch50_g_error;
- }
- }
- goto __finally50;
- __catch50_g_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
- const gchar* _tmp4_;
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- err = _inner_error_;
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _inner_error_ = NULL;
-#line 78 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = err;
-#line 78 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = _tmp3_->message;
-#line 78 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_warning ("DirectPhoto.vala:78: Database error on re-importing image: %s", _tmp4_);
-#line 79 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = IMPORT_RESULT_DATABASE_ERROR;
-#line 79 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_error_free0 (err);
-#line 79 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 79 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1529 "DirectPhoto.c"
- }
- __finally50:
-#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"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.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 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_clear_error (&_inner_error_);
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return 0;
-#line 1542 "DirectPhoto.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv->loaded = TRUE;
-#line 83 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_save_dims (self);
-#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = IMPORT_RESULT_SUCCESS;
-#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1554 "DirectPhoto.c"
-}
-
-
-ImportResult
-direct_photo_internal_import (GFile* file,
- DirectPhoto* * photo)
-{
- DirectPhoto* _vala_photo = NULL;
- ImportResult result = 0;
- PhotoImportParams* params = NULL;
- ImportID _tmp0_ = {0};
- PhotoImportParams* _tmp1_;
- PhotoTable* _tmp2_;
- PhotoTable* _tmp3_;
- PhotoRow* _tmp4_;
- PhotoID _tmp5_ = {0};
- PhotoRow* _tmp6_;
- DirectPhoto* _tmp7_;
-#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (G_IS_FILE (file), 0);
-#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- import_id_generate (&_tmp0_);
-#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = photo_import_params_new_create_placeholder (file, &_tmp0_);
-#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- params = _tmp1_;
-#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_create_pre_import (params);
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = photo_table_get_instance ();
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = _tmp2_;
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = params->row;
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_table_add (_tmp3_, _tmp4_, &_tmp5_);
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _database_table_unref0 (_tmp3_);
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = params->row;
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp7_ = direct_photo_new (_tmp6_);
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_vala_photo);
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _vala_photo = _tmp7_;
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = IMPORT_RESULT_SUCCESS;
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_import_params_unref0 (params);
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (photo) {
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- *photo = _vala_photo;
-#line 1609 "DirectPhoto.c"
- } else {
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_vala_photo);
-#line 1613 "DirectPhoto.c"
- }
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1617 "DirectPhoto.c"
-}
-
-
-static GdkPixbuf*
-direct_photo_real_get_preview_pixbuf (MediaSource* base,
- Scaling* scaling,
- GError** error)
-{
- DirectPhoto * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
- GError * _inner_error_ = NULL;
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = self->priv->preview;
-#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp0_ == NULL) {
-#line 1640 "DirectPhoto.c"
- GdkPixbuf* _tmp1_ = NULL;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), DIRECT_PHOTO_PREVIEW_BEST_FIT, &_inner_error_);
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = _tmp2_;
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return NULL;
-#line 1655 "DirectPhoto.c"
- }
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = _tmp1_;
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = NULL;
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (self->priv->preview);
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv->preview = _tmp3_;
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = self->priv->preview;
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp4_ == NULL) {
-#line 1669 "DirectPhoto.c"
- GdkPixbuf* _tmp5_ = NULL;
- Scaling _tmp6_;
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp8_;
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = *scaling;
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp7_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp6_, &_inner_error_);
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = _tmp7_;
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp1_);
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return NULL;
-#line 1688 "DirectPhoto.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp8_ = _tmp5_;
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = NULL;
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (self->priv->preview);
-#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv->preview = _tmp8_;
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp5_);
-#line 1700 "DirectPhoto.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp1_);
-#line 1704 "DirectPhoto.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp9_ = self->priv->preview;
-#line 107 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp10_ = scaling_perform_on_pixbuf (scaling, _tmp9_, GDK_INTERP_BILINEAR, TRUE);
-#line 107 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = _tmp10_;
-#line 107 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1714 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_real_rotate (Photo* base,
- Rotation rotation)
-{
- DirectPhoto * self;
-#line 110 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->can_rotate_now = FALSE;
-#line 112 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_signal_emit (self, direct_photo_signals[DIRECT_PHOTO_CAN_ROTATE_CHANGED_SIGNAL], 0, FALSE);
-#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- PHOTO_CLASS (direct_photo_parent_class)->rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), rotation);
-#line 1731 "DirectPhoto.c"
-}
-
-
-static GdkPixbuf*
-direct_photo_real_get_pixbuf (PhotoSource* base,
- Scaling* scaling,
- GError** error)
-{
- DirectPhoto * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* ret = NULL;
- Scaling _tmp0_;
- GdkPixbuf* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 116 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 116 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = *scaling;
-#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = PHOTO_SOURCE_CLASS (direct_photo_parent_class)->get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_PHOTO_SOURCE, PhotoSource), &_tmp0_, &_inner_error_);
-#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ret = _tmp1_;
-#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return NULL;
-#line 1762 "DirectPhoto.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_signal_emit (self, direct_photo_signals[DIRECT_PHOTO_CAN_ROTATE_CHANGED_SIGNAL], 0, TRUE);
-#line 119 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->can_rotate_now = TRUE;
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = ret;
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1772 "DirectPhoto.c"
-}
-
-
-static GdkPixbuf*
-direct_photo_real_get_thumbnail (ThumbnailSource* base,
- gint scale,
- GError** error)
-{
- DirectPhoto * self;
- GdkPixbuf* result = NULL;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp0_;
- GdkPixbuf* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- PhotoMetadata* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 124 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 124 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- metadata = _tmp0_;
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = metadata;
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp3_ == NULL) {
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = TRUE;
-#line 1801 "DirectPhoto.c"
- } else {
- PhotoMetadata* _tmp4_;
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = metadata;
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = photo_metadata_get_preview_count (_tmp4_) == ((guint) 0);
-#line 1808 "DirectPhoto.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp2_) {
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp1_);
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = NULL;
-#line 1816 "DirectPhoto.c"
- } else {
- GdkPixbuf* _tmp5_ = NULL;
- PhotoMetadata* _tmp6_;
- PhotoPreview* _tmp7_;
- PhotoPreview* _tmp8_;
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
- GdkPixbuf* _tmp11_;
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = metadata;
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp7_ = photo_metadata_get_preview (_tmp6_, (guint) 0);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp8_ = _tmp7_;
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp9_ = photo_preview_get_pixbuf (_tmp8_, &_inner_error_);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp10_ = _tmp9_;
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_preview_unref0 (_tmp8_);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = _tmp10_;
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_propagate_error (error, _inner_error_);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp1_);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return NULL;
-#line 1849 "DirectPhoto.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp11_ = orientation_rotate_pixbuf (photo_get_orientation (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)), _tmp5_);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp1_);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = _tmp11_;
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp5_);
-#line 1859 "DirectPhoto.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = _tmp1_;
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _media_metadata_unref0 (metadata);
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1867 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_real_notify_altered (DataObject* base,
- Alteration* alteration)
-{
- DirectPhoto * self;
-#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_ALTERATION (alteration));
-#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (self->priv->preview);
-#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv->preview = NULL;
-#line 133 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- DATA_OBJECT_CLASS (direct_photo_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_OBJECT, DataObject), alteration);
-#line 1886 "DirectPhoto.c"
-}
-
-
-static gboolean
-direct_photo_real_has_user_generated_metadata (Photo* base)
-{
- DirectPhoto * self;
- gboolean result = FALSE;
-#line 136 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = FALSE;
-#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1901 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_real_set_user_metadata_for_export (Photo* base,
- PhotoMetadata* metadata)
-{
- DirectPhoto * self;
-#line 141 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 141 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_PHOTO_METADATA (metadata));
-#line 1914 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_real_apply_user_metadata_for_reimport (Photo* base,
- PhotoMetadata* metadata)
-{
- DirectPhoto * self;
-#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_PHOTO_METADATA (metadata));
-#line 1927 "DirectPhoto.c"
-}
-
-
-static gboolean
-direct_photo_real_is_trashed (MediaSource* base)
-{
- DirectPhoto * self;
- gboolean result = FALSE;
-#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = FALSE;
-#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1942 "DirectPhoto.c"
-}
-
-
-static gboolean
-direct_photo_real_is_offline (MediaSource* base)
-{
- DirectPhoto * self;
- gboolean result = FALSE;
-#line 153 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 155 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = FALSE;
-#line 155 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 1957 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_real_trash (MediaSource* base)
-{
- DirectPhoto * self;
-#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 1967 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_real_untrash (MediaSource* base)
-{
- DirectPhoto * self;
-#line 162 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 1977 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_real_mark_offline (MediaSource* base)
-{
- DirectPhoto * self;
-#line 166 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 1987 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_real_mark_online (MediaSource* base)
-{
- DirectPhoto * self;
-#line 170 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 1997 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_class_init (DirectPhotoClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_type_class_add_private (klass, sizeof (DirectPhotoPrivate));
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*) (MediaSource *, Scaling*, GError**)) direct_photo_real_get_preview_pixbuf;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((PhotoClass *) klass)->rotate = (void (*) (Photo *, Rotation)) direct_photo_real_rotate;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((PhotoSourceClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoSource *, Scaling*, GError**)) direct_photo_real_get_pixbuf;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) direct_photo_real_get_thumbnail;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) direct_photo_real_notify_altered;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((PhotoClass *) klass)->has_user_generated_metadata = (gboolean (*) (Photo *)) direct_photo_real_has_user_generated_metadata;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((PhotoClass *) klass)->set_user_metadata_for_export = (void (*) (Photo *, PhotoMetadata*)) direct_photo_real_set_user_metadata_for_export;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((PhotoClass *) klass)->apply_user_metadata_for_reimport = (void (*) (Photo *, PhotoMetadata*)) direct_photo_real_apply_user_metadata_for_reimport;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((MediaSourceClass *) klass)->is_trashed = (gboolean (*) (MediaSource *)) direct_photo_real_is_trashed;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((MediaSourceClass *) klass)->is_offline = (gboolean (*) (MediaSource *)) direct_photo_real_is_offline;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((MediaSourceClass *) klass)->trash = (void (*) (MediaSource *)) direct_photo_real_trash;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((MediaSourceClass *) klass)->untrash = (void (*) (MediaSource *)) direct_photo_real_untrash;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((MediaSourceClass *) klass)->mark_offline = (void (*) (MediaSource *)) direct_photo_real_mark_offline;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((MediaSourceClass *) klass)->mark_online = (void (*) (MediaSource *)) direct_photo_real_mark_online;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- G_OBJECT_CLASS (klass)->finalize = direct_photo_finalize;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_signals[DIRECT_PHOTO_CAN_ROTATE_CHANGED_SIGNAL] = g_signal_new ("can-rotate-changed", TYPE_DIRECT_PHOTO, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 2040 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_instance_init (DirectPhoto * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv = DIRECT_PHOTO_GET_PRIVATE (self);
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv->preview = NULL;
-#line 15 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv->loaded = FALSE;
-#line 2053 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_finalize (GObject * obj)
-{
- DirectPhoto * self;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_PHOTO, DirectPhoto);
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (self->priv->preview);
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- G_OBJECT_CLASS (direct_photo_parent_class)->finalize (obj);
-#line 2067 "DirectPhoto.c"
-}
-
-
-GType
-direct_photo_get_type (void)
-{
- static volatile gsize direct_photo_type_id__volatile = 0;
- if (g_once_init_enter (&direct_photo_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectPhotoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_photo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectPhoto), 0, (GInstanceInitFunc) direct_photo_instance_init, NULL };
- GType direct_photo_type_id;
- direct_photo_type_id = g_type_register_static (TYPE_PHOTO, "DirectPhoto", &g_define_type_info, 0);
- g_once_init_leave (&direct_photo_type_id__volatile, direct_photo_type_id);
- }
- return direct_photo_type_id__volatile;
-}
-
-
-static guint
-_file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = file_hash ((GFile*) v);
-#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2093 "DirectPhoto.c"
-}
-
-
-static gboolean
-_file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = file_equal ((GFile*) a, (GFile*) b);
-#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2106 "DirectPhoto.c"
-}
-
-
-static gint64
-_direct_photo_source_collection_get_direct_key_get_source_database_key (DataSource* source,
- gpointer self)
-{
- gint64 result;
- result = direct_photo_source_collection_get_direct_key (source);
-#line 183 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2118 "DirectPhoto.c"
-}
-
-
-static void
-_direct_photo_source_collection_on_file_discovered_directory_monitor_file_discovered (DirectoryMonitor* _sender,
- GFile* file,
- GFileInfo* info,
- gpointer self)
-{
-#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_source_collection_on_file_discovered ((DirectPhotoSourceCollection*) self, file, info);
-#line 2130 "DirectPhoto.c"
-}
-
-
-static void
-_direct_photo_source_collection_on_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender,
- gpointer self)
-{
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_source_collection_on_discovery_completed ((DirectPhotoSourceCollection*) self);
-#line 2140 "DirectPhoto.c"
-}
-
-
-DirectPhotoSourceCollection*
-direct_photo_source_collection_construct (GType object_type,
- GFile* initial_file)
-{
- DirectPhotoSourceCollection* self = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- DirectoryMonitor* _tmp2_;
- DirectoryMonitor* _tmp3_;
- DirectoryMonitor* _tmp4_;
- DirectoryMonitor* _tmp5_;
-#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (G_IS_FILE (initial_file), NULL);
-#line 183 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = (DirectPhotoSourceCollection*) database_source_collection_construct (object_type, "DirectPhotoSourceCollection", _direct_photo_source_collection_get_direct_key_get_source_database_key, NULL);
-#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = g_file_get_parent (initial_file);
-#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = _tmp0_;
-#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = directory_monitor_new (_tmp1_, FALSE, FALSE);
-#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (self->priv->monitor);
-#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv->monitor = _tmp2_;
-#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp1_);
-#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = self->priv->monitor;
-#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_signal_connect (_tmp3_, "file-discovered", (GCallback) _direct_photo_source_collection_on_file_discovered_directory_monitor_file_discovered, self);
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = self->priv->monitor;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_signal_connect (_tmp4_, "discovery-completed", (GCallback) _direct_photo_source_collection_on_discovery_completed_directory_monitor_discovery_completed, self);
-#line 190 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = self->priv->monitor;
-#line 190 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- directory_monitor_start_discovery (_tmp5_);
-#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return self;
-#line 2185 "DirectPhoto.c"
-}
-
-
-DirectPhotoSourceCollection*
-direct_photo_source_collection_new (GFile* initial_file)
-{
-#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return direct_photo_source_collection_construct (TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, initial_file);
-#line 2194 "DirectPhoto.c"
-}
-
-
-static gboolean
-direct_photo_source_collection_real_holds_type_of_source (SourceCollection* base,
- DataSource* source)
-{
- DirectPhotoSourceCollection * self;
- gboolean result = FALSE;
-#line 193 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection);
-#line 193 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 194 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_DIRECT_PHOTO);
-#line 194 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2212 "DirectPhoto.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return self ? g_object_ref (self) : NULL;
-#line 2221 "DirectPhoto.c"
-}
-
-
-static gint64
-direct_photo_source_collection_get_direct_key (DataSource* source)
-{
- gint64 result = 0LL;
- DirectPhoto* photo = NULL;
- DirectPhoto* _tmp0_;
- PhotoID photo_id = {0};
- PhotoID _tmp1_ = {0};
- PhotoID _tmp2_;
- gint64 _tmp3_;
-#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL);
-#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DIRECT_PHOTO, DirectPhoto));
-#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo = _tmp0_;
-#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), &_tmp1_);
-#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_id = _tmp1_;
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = photo_id;
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = _tmp2_.id;
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = _tmp3_;
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (photo);
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2255 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_source_collection_real_notify_items_added (DataCollection* base,
- GeeIterable* added)
-{
- DirectPhotoSourceCollection * self;
-#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection);
-#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (GEE_IS_ITERABLE (added));
-#line 2268 "DirectPhoto.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _object_it = _tmp0_;
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- while (TRUE) {
-#line 2278 "DirectPhoto.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DirectPhoto* photo = NULL;
- DataObject* _tmp4_;
- DirectPhoto* _tmp5_;
- GFile* file = NULL;
- DirectPhoto* _tmp6_;
- GFile* _tmp7_;
- GeeHashMap* _tmp8_;
- GFile* _tmp9_;
- GeeHashMap* _tmp10_;
- GFile* _tmp11_;
- DirectPhoto* _tmp12_;
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = _object_it;
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- break;
-#line 2300 "DirectPhoto.c"
- }
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = _object_it;
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- object = (DataObject*) _tmp3_;
-#line 206 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = object;
-#line 206 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DIRECT_PHOTO, DirectPhoto));
-#line 206 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo = _tmp5_;
-#line 207 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = photo;
-#line 207 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp7_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 207 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- file = _tmp7_;
-#line 209 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp8_ = self->priv->file_map;
-#line 209 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp9_ = file;
-#line 209 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_), "!file_map.has_key(file)");
-#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp10_ = self->priv->file_map;
-#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp11_ = file;
-#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp12_ = photo;
-#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, _tmp12_);
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (file);
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (photo);
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (object);
-#line 2340 "DirectPhoto.c"
- }
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_object_it);
-#line 2344 "DirectPhoto.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- DATA_COLLECTION_CLASS (direct_photo_source_collection_parent_class)->notify_items_added (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added);
-#line 2348 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_source_collection_real_notify_items_removed (DataCollection* base,
- GeeIterable* removed)
-{
- DirectPhotoSourceCollection * self;
-#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection);
-#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (GEE_IS_ITERABLE (removed));
-#line 2361 "DirectPhoto.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = gee_iterable_iterator (removed);
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _object_it = _tmp0_;
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- while (TRUE) {
-#line 2371 "DirectPhoto.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DirectPhoto* photo = NULL;
- DataObject* _tmp4_;
- DirectPhoto* _tmp5_;
- GFile* file = NULL;
- DirectPhoto* _tmp6_;
- GFile* _tmp7_;
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp8_;
- GFile* _tmp9_;
- gboolean _tmp10_;
- gboolean _tmp11_;
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = _object_it;
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- break;
-#line 2393 "DirectPhoto.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = _object_it;
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- object = (DataObject*) _tmp3_;
-#line 219 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = object;
-#line 219 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DIRECT_PHOTO, DirectPhoto));
-#line 219 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo = _tmp5_;
-#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = photo;
-#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp7_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- file = _tmp7_;
-#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp8_ = self->priv->file_map;
-#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp9_ = file;
-#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp10_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL);
-#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- is_removed = _tmp10_;
-#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp11_ = is_removed;
-#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _vala_assert (_tmp11_, "is_removed");
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (file);
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (photo);
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (object);
-#line 2431 "DirectPhoto.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_object_it);
-#line 2435 "DirectPhoto.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- DATA_COLLECTION_CLASS (direct_photo_source_collection_parent_class)->notify_items_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), removed);
-#line 2439 "DirectPhoto.c"
-}
-
-
-gboolean
-direct_photo_source_collection_has_source_for_file (DirectPhotoSourceCollection* self,
- GFile* file)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
-#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), FALSE);
-#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = self->priv->file_map;
-#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2459 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_source_collection_on_file_discovered (DirectPhotoSourceCollection* self,
- GFile* file,
- GFileInfo* info)
-{
- DirectPhoto* photo = NULL;
- gchar* reason = NULL;
- DirectPhoto* _tmp0_ = NULL;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- GeeCollection* _tmp4_;
- DirectPhoto* _tmp5_;
- GeeCollection* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self));
-#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (G_IS_FILE_INFO (info));
-#line 235 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (direct_photo_source_collection_has_source_for_file (self, file)) {
-#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return;
-#line 2488 "DirectPhoto.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (!photo_file_format_is_file_supported (file)) {
-#line 240 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return;
-#line 2494 "DirectPhoto.c"
- }
-#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = direct_photo_source_collection_fetch (self, file, &_tmp0_, FALSE);
-#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (photo);
-#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo = _tmp0_;
-#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- reason = _tmp1_;
-#line 244 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = reason;
-#line 244 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp2_ != NULL) {
-#line 2508 "DirectPhoto.c"
- const gchar* _tmp3_;
-#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = reason;
-#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_warning ("DirectPhoto.vala:245: Error fetching file: %s", _tmp3_);
-#line 2514 "DirectPhoto.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = self->priv->prepared_photos;
-#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = photo;
-#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- gee_collection_add (_tmp4_, _tmp5_);
-#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = self->priv->prepared_photos;
-#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp7_ = gee_collection_get_size (_tmp6_);
-#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp8_ = _tmp7_;
-#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp8_ >= DIRECT_PHOTO_SOURCE_COLLECTION_DISCOVERED_FILES_BATCH_ADD) {
-#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_source_collection_flush_prepared_photos (self);
-#line 2532 "DirectPhoto.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_free0 (reason);
-#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (photo);
-#line 2538 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_source_collection_on_discovery_completed (DirectPhotoSourceCollection* self)
-{
-#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self));
-#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_source_collection_flush_prepared_photos (self);
-#line 2549 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_source_collection_flush_prepared_photos (DirectPhotoSourceCollection* self)
-{
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
-#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self));
-#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = self->priv->prepared_photos;
-#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp0_, NULL, NULL);
-#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = _tmp1_;
-#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp2_);
-#line 257 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = self->priv->prepared_photos;
-#line 257 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- gee_collection_clear (_tmp3_);
-#line 2574 "DirectPhoto.c"
-}
-
-
-gboolean
-direct_photo_source_collection_has_file (DirectPhotoSourceCollection* self,
- GFile* file)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
-#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), FALSE);
-#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 261 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = self->priv->file_map;
-#line 261 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 261 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2594 "DirectPhoto.c"
-}
-
-
-void
-direct_photo_source_collection_reimport_photo (DirectPhotoSourceCollection* self,
- DirectPhoto* photo)
-{
- DirectPhoto* reimported_photo = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- DirectPhoto* _tmp2_ = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self));
-#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_if_fail (IS_DIRECT_PHOTO (photo));
-#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_discard_prefetched (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo));
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource));
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = _tmp0_;
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = direct_photo_source_collection_fetch (self, _tmp1_, &_tmp2_, TRUE);
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (reimported_photo);
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- reimported_photo = _tmp2_;
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = _tmp3_;
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_free0 (_tmp4_);
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_tmp1_);
-#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (reimported_photo);
-#line 2632 "DirectPhoto.c"
-}
-
-
-gchar*
-direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self,
- GFile* file,
- DirectPhoto* * photo,
- gboolean reimport)
-{
- DirectPhoto* _vala_photo = NULL;
- gchar* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- DirectPhoto* _tmp2_;
- ImportResult _result_ = 0;
- DirectPhoto* _tmp20_ = NULL;
- ImportResult _tmp21_;
- gchar* _tmp22_ = NULL;
- ImportResult _tmp23_;
- GError * _inner_error_ = NULL;
-#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = self->priv->file_map;
-#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_vala_photo);
-#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _vala_photo = (DirectPhoto*) _tmp1_;
-#line 274 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp2_ = _vala_photo;
-#line 274 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp2_ != NULL) {
-#line 2669 "DirectPhoto.c"
- gchar* reason = NULL;
-#line 275 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- reason = NULL;
-#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (reimport) {
-#line 2675 "DirectPhoto.c"
- {
- Orientation ori_tmp = 0;
- gboolean should_restore_ori = FALSE;
- gboolean _tmp3_ = FALSE;
- DirectPhoto* _tmp4_;
- PhotoReimportMasterState* reimport_state = NULL;
- gboolean _tmp7_ = FALSE;
- DirectPhoto* _tmp8_;
- PhotoReimportMasterState* _tmp9_ = NULL;
- gboolean _tmp10_;
-#line 279 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ori_tmp = ORIENTATION_TOP_LEFT;
-#line 280 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- should_restore_ori = FALSE;
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp4_ = _vala_photo;
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (photo_only_metadata_changed (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO, Photo))) {
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = TRUE;
-#line 2696 "DirectPhoto.c"
- } else {
- DirectPhoto* _tmp5_;
-#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp5_ = _vala_photo;
-#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp3_ = photo_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO, Photo)) == PHOTO_FILE_FORMAT_JFIF;
-#line 2703 "DirectPhoto.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp3_) {
-#line 2707 "DirectPhoto.c"
- DirectPhoto* _tmp6_;
-#line 284 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp6_ = _vala_photo;
-#line 284 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ori_tmp = photo_get_orientation (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo));
-#line 285 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- should_restore_ori = TRUE;
-#line 2715 "DirectPhoto.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp8_ = _vala_photo;
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp10_ = photo_prepare_for_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo), &_tmp9_, &_inner_error_);
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- reimport_state = _tmp9_;
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp7_ = _tmp10_;
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 2731 "DirectPhoto.c"
- goto __catch51_g_error;
- }
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp7_) {
-#line 2736 "DirectPhoto.c"
- DirectPhoto* _tmp11_;
- PhotoReimportMasterState* _tmp12_;
- gboolean _tmp13_;
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp11_ = _vala_photo;
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp12_ = reimport_state;
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- photo_finish_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO, Photo), _tmp12_, &_inner_error_);
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 2750 "DirectPhoto.c"
- goto __catch51_g_error;
- }
-#line 291 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp13_ = should_restore_ori;
-#line 291 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp13_) {
-#line 2757 "DirectPhoto.c"
- DirectPhoto* _tmp14_;
- Orientation _tmp15_;
-#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp14_ = _vala_photo;
-#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp15_ = ori_tmp;
-#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_fixup_orientation_after_reimport (_tmp14_, _tmp15_);
-#line 2766 "DirectPhoto.c"
- }
- } else {
- gchar* _tmp16_;
-#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp16_ = import_result_to_string (IMPORT_RESULT_FILE_ERROR);
-#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_free0 (reason);
-#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- reason = _tmp16_;
-#line 2776 "DirectPhoto.c"
- }
-#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _photo_reimport_master_state_unref0 (reimport_state);
-#line 2780 "DirectPhoto.c"
- }
- goto __finally51;
- __catch51_g_error:
- {
- GError* err = NULL;
- GError* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
-#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- err = _inner_error_;
-#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _inner_error_ = NULL;
-#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp17_ = err;
-#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp18_ = _tmp17_->message;
-#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp19_ = g_strdup (_tmp18_);
-#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_free0 (reason);
-#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- reason = _tmp19_;
-#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_error_free0 (err);
-#line 2805 "DirectPhoto.c"
- }
- __finally51:
-#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"
- _g_free0 (reason);
-#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.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 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_clear_error (&_inner_error_);
-#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return NULL;
-#line 2818 "DirectPhoto.c"
- }
- }
-#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = reason;
-#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (photo) {
-#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- *photo = _vala_photo;
-#line 2827 "DirectPhoto.c"
- } else {
-#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_vala_photo);
-#line 2831 "DirectPhoto.c"
- }
-#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2835 "DirectPhoto.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp21_ = direct_photo_internal_import (file, &_tmp20_);
-#line 308 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_vala_photo);
-#line 308 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _vala_photo = _tmp20_;
-#line 308 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _result_ = _tmp21_;
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp23_ = _result_;
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (_tmp23_ == IMPORT_RESULT_SUCCESS) {
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_free0 (_tmp22_);
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp22_ = NULL;
-#line 2853 "DirectPhoto.c"
- } else {
- ImportResult _tmp24_;
- gchar* _tmp25_;
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp24_ = _result_;
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp25_ = import_result_to_string (_tmp24_);
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_free0 (_tmp22_);
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp22_ = _tmp25_;
-#line 2865 "DirectPhoto.c"
- }
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = _tmp22_;
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- if (photo) {
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- *photo = _vala_photo;
-#line 2873 "DirectPhoto.c"
- } else {
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (_vala_photo);
-#line 2877 "DirectPhoto.c"
- }
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2881 "DirectPhoto.c"
-}
-
-
-gboolean
-direct_photo_source_collection_has_file_source (DirectPhotoSourceCollection* self,
- GFile* file)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
-#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), FALSE);
-#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = self->priv->file_map;
-#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2901 "DirectPhoto.c"
-}
-
-
-DirectPhoto*
-direct_photo_source_collection_get_file_source (DirectPhotoSourceCollection* self,
- GFile* file)
-{
- DirectPhoto* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 317 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), NULL);
-#line 317 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = self->priv->file_map;
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file);
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- result = (DirectPhoto*) _tmp1_;
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- return result;
-#line 2924 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_source_collection_class_init (DirectPhotoSourceCollectionClass * klass)
-{
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- direct_photo_source_collection_parent_class = g_type_class_peek_parent (klass);
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((DataCollectionClass *) klass)->finalize = direct_photo_source_collection_finalize;
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- g_type_class_add_private (klass, sizeof (DirectPhotoSourceCollectionPrivate));
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) direct_photo_source_collection_real_holds_type_of_source;
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) direct_photo_source_collection_real_notify_items_added;
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) direct_photo_source_collection_real_notify_items_removed;
-#line 2943 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_source_collection_instance_init (DirectPhotoSourceCollection * self)
-{
- GeeArrayList* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self->priv = DIRECT_PHOTO_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 177 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _tmp0_ = gee_array_list_new (TYPE_DIRECT_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#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_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DIRECT_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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 2962 "DirectPhoto.c"
-}
-
-
-static void
-direct_photo_source_collection_finalize (DataCollection * obj)
-{
- DirectPhotoSourceCollection * self;
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection);
-#line 177 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (self->priv->prepared_photos);
-#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (self->priv->file_map);
-#line 180 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- _g_object_unref0 (self->priv->monitor);
-#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala"
- DATA_COLLECTION_CLASS (direct_photo_source_collection_parent_class)->finalize (obj);
-#line 2980 "DirectPhoto.c"
-}
-
-
-GType
-direct_photo_source_collection_get_type (void)
-{
- static volatile gsize direct_photo_source_collection_type_id__volatile = 0;
- if (g_once_init_enter (&direct_photo_source_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectPhotoSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_photo_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectPhotoSourceCollection), 0, (GInstanceInitFunc) direct_photo_source_collection_instance_init, NULL };
- GType direct_photo_source_collection_type_id;
- direct_photo_source_collection_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_COLLECTION, "DirectPhotoSourceCollection", &g_define_type_info, 0);
- g_once_init_leave (&direct_photo_source_collection_type_id__volatile, direct_photo_source_collection_type_id);
- }
- return direct_photo_source_collection_type_id__volatile;
-}
-
-
-
diff --git a/src/direct/DirectPhotoPage.c b/src/direct/DirectPhotoPage.c
deleted file mode 100644
index 62620fb..0000000
--- a/src/direct/DirectPhotoPage.c
+++ /dev/null
@@ -1,4047 +0,0 @@
-/* DirectPhotoPage.c generated by valac 0.40.4, the Vala compiler
- * generated from DirectPhotoPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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 <glib/gstdio.h>
-#include <float.h>
-#include <math.h>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate;
-
-#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ())
-#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer))
-#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER))
-#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER))
-#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-
-typedef struct _ZoomBuffer ZoomBuffer;
-typedef struct _ZoomBufferClass ZoomBufferClass;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ())
-
-#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ())
-#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage))
-#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE))
-#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE))
-#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-
-typedef struct _EditingHostPage EditingHostPage;
-typedef struct _EditingHostPageClass EditingHostPageClass;
-typedef struct _EditingHostPagePrivate EditingHostPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_DIRECT_PHOTO_PAGE (direct_photo_page_get_type ())
-#define DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage))
-#define DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass))
-#define IS_DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_PAGE))
-#define IS_DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_PAGE))
-#define DIRECT_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass))
-
-typedef struct _DirectPhotoPage DirectPhotoPage;
-typedef struct _DirectPhotoPageClass DirectPhotoPageClass;
-typedef struct _DirectPhotoPagePrivate DirectPhotoPagePrivate;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_DIRECT_VIEW_COLLECTION (direct_view_collection_get_type ())
-#define DIRECT_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollection))
-#define DIRECT_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollectionClass))
-#define IS_DIRECT_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_VIEW_COLLECTION))
-#define IS_DIRECT_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_VIEW_COLLECTION))
-#define DIRECT_VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollectionClass))
-
-typedef struct _DirectViewCollection DirectViewCollection;
-typedef struct _DirectViewCollectionClass DirectViewCollectionClass;
-enum {
- DIRECT_PHOTO_PAGE_0_PROPERTY,
- DIRECT_PHOTO_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* direct_photo_page_properties[DIRECT_PHOTO_PAGE_NUM_PROPERTIES];
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_DIRECT_PHOTO_SOURCE_COLLECTION (direct_photo_source_collection_get_type ())
-#define DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection))
-#define DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass))
-#define IS_DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION))
-#define IS_DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION))
-#define DIRECT_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass))
-
-typedef struct _DirectPhotoSourceCollection DirectPhotoSourceCollection;
-typedef struct _DirectPhotoSourceCollectionClass DirectPhotoSourceCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-#define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL)))
-
-#define TYPE_DIRECT_PHOTO (direct_photo_get_type ())
-#define DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO, DirectPhoto))
-#define DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO, DirectPhotoClass))
-#define IS_DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO))
-#define IS_DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO))
-#define DIRECT_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO, DirectPhotoClass))
-
-typedef struct _DirectPhoto DirectPhoto;
-typedef struct _DirectPhotoClass DirectPhotoClass;
-
-#define TYPE_IMPORT_RESULT (import_result_get_type ())
-
-#define TYPE_ZOOM_STATE (zoom_state_get_type ())
-typedef struct _ZoomState ZoomState;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_DIRECT_VIEW (direct_view_get_type ())
-#define DIRECT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_VIEW, DirectView))
-#define DIRECT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_VIEW, DirectViewClass))
-#define IS_DIRECT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_VIEW))
-#define IS_DIRECT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_VIEW))
-#define DIRECT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_VIEW, DirectViewClass))
-
-typedef struct _DirectView DirectView;
-typedef struct _DirectViewClass DirectViewClass;
-
-#define TYPE_EXPORT_DIALOG (export_dialog_get_type ())
-#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog))
-#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass))
-#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG))
-#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG))
-#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass))
-
-typedef struct _ExportDialog ExportDialog;
-typedef struct _ExportDialogClass ExportDialogClass;
-
-#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
-
-#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
-typedef struct _ExportFormatParameters ExportFormatParameters;
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-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))
-#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER))
-#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER))
-#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass))
-
-typedef struct _PrintManager PrintManager;
-typedef struct _PrintManagerClass PrintManagerClass;
-#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL)))
-typedef struct _Block7Data Block7Data;
-
-#define TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE (direct_fullscreen_photo_page_get_type ())
-#define DIRECT_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPage))
-#define DIRECT_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPageClass))
-#define IS_DIRECT_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE))
-#define IS_DIRECT_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE))
-#define DIRECT_FULLSCREEN_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPageClass))
-
-typedef struct _DirectFullscreenPhotoPage DirectFullscreenPhotoPage;
-typedef struct _DirectFullscreenPhotoPageClass DirectFullscreenPhotoPageClass;
-typedef struct _DirectFullscreenPhotoPagePrivate DirectFullscreenPhotoPagePrivate;
-enum {
- DIRECT_FULLSCREEN_PHOTO_PAGE_0_PROPERTY,
- DIRECT_FULLSCREEN_PHOTO_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* direct_fullscreen_photo_page_properties[DIRECT_FULLSCREEN_PHOTO_PAGE_NUM_PROPERTIES];
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS
-} SinglePhotoPageUpdateReason;
-
-struct _SinglePhotoPage {
- Page parent_instance;
- SinglePhotoPagePrivate * priv;
- GtkDrawingArea* canvas;
- GtkViewport* viewport;
-};
-
-struct _SinglePhotoPageClass {
- PageClass parent_class;
- gboolean (*is_zoom_supported) (SinglePhotoPage* self);
- void (*cancel_zoom) (SinglePhotoPage* self);
- void (*save_zoom_state) (SinglePhotoPage* self);
- void (*restore_zoom_state) (SinglePhotoPage* self);
- ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self);
- void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim);
- void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*on_previous_photo) (SinglePhotoPage* self);
- void (*on_next_photo) (SinglePhotoPage* self);
-};
-
-struct _EditingHostPage {
- SinglePhotoPage parent_instance;
- EditingHostPagePrivate * priv;
-};
-
-struct _EditingHostPageClass {
- SinglePhotoPageClass parent_class;
- gboolean (*on_zoom_slider_key_press) (EditingHostPage* self, GdkEventKey* event);
- void (*on_increase_size) (EditingHostPage* self);
- void (*on_decrease_size) (EditingHostPage* self);
- void (*photo_changing) (EditingHostPage* self, Photo* new_photo);
- DataView* (*create_photo_view) (EditingHostPage* self, DataSource* source);
- void (*update_ui) (EditingHostPage* self, gboolean missing);
- void (*notify_photo_backing_missing) (EditingHostPage* self, Photo* photo, gboolean missing);
- gboolean (*confirm_replace_photo) (EditingHostPage* self, Photo* old_photo, Photo* new_photo);
- gboolean (*on_double_click) (EditingHostPage* self, GdkEventButton* event);
- GdkPixbuf* (*get_bottom_left_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_top_left_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (EditingHostPage* self, gint scale);
-};
-
-struct _DirectPhotoPage {
- EditingHostPage parent_instance;
- DirectPhotoPagePrivate * priv;
-};
-
-struct _DirectPhotoPageClass {
- EditingHostPageClass parent_class;
-};
-
-struct _DirectPhotoPagePrivate {
- GFile* initial_file;
- DirectViewCollection* view_controller;
- GFile* current_save_dir;
- gboolean drop_if_dirty;
- GtkMenu* context_menu;
-};
-
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-struct _ZoomState {
- Dimensions content_dimensions;
- Dimensions viewport_dimensions;
- gdouble zoom_factor;
- gdouble interpolation_factor;
- gdouble min_factor;
- gdouble max_factor;
- GdkPoint viewport_center;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-typedef enum {
- EXPORT_FORMAT_MODE_UNMODIFIED,
- EXPORT_FORMAT_MODE_CURRENT,
- EXPORT_FORMAT_MODE_SPECIFIED,
- EXPORT_FORMAT_MODE_LAST
-} ExportFormatMode;
-
-struct _ExportFormatParameters {
- ExportFormatMode mode;
- PhotoFileFormat specified_format;
- JpegQuality quality;
- gboolean export_metadata;
-};
-
-struct _Block7Data {
- int _ref_count_;
- DirectPhotoPage* self;
- gboolean should_allow_rotation;
-};
-
-struct _DirectFullscreenPhotoPage {
- DirectPhotoPage parent_instance;
- DirectFullscreenPhotoPagePrivate * priv;
-};
-
-struct _DirectFullscreenPhotoPageClass {
- DirectPhotoPageClass parent_class;
-};
-
-
-static gpointer direct_photo_page_parent_class = NULL;
-extern DirectPhotoSourceCollection* direct_photo_global;
-static gpointer direct_fullscreen_photo_page_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType zoom_buffer_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST;
-GType editing_host_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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 data_view_get_type (void) G_GNUC_CONST;
-GType direct_photo_page_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-GType direct_view_collection_get_type (void) G_GNUC_CONST;
-#define DIRECT_PHOTO_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPagePrivate))
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType direct_photo_source_collection_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void direct_photo_page_on_photos_altered (DirectPhotoPage* self,
- GeeMap* map);
-static void _direct_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void direct_photo_page_on_save (DirectPhotoPage* self);
-static void _direct_photo_page_on_save_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void direct_photo_page_on_save_as (DirectPhotoPage* self);
-static void _direct_photo_page_on_save_as_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void direct_photo_page_on_send_to (DirectPhotoPage* self);
-static void _direct_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void direct_photo_page_on_print (DirectPhotoPage* self);
-static void _direct_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void single_photo_page_on_previous_photo (SinglePhotoPage* self);
-static void _single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void single_photo_page_on_next_photo (SinglePhotoPage* self);
-static void _single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_rotate_clockwise (EditingHostPage* self);
-static void _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_rotate_counterclockwise (EditingHostPage* self);
-static void _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_flip_horizontally (EditingHostPage* self);
-static void _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_flip_vertically (EditingHostPage* self);
-static void _editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_enhance (EditingHostPage* self);
-static void _editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_toggle_crop (EditingHostPage* self);
-static void _editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_toggle_straighten (EditingHostPage* self);
-static void _editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_toggle_redeye (EditingHostPage* self);
-static void _editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_toggle_adjust (EditingHostPage* self);
-static void _editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_revert (EditingHostPage* self);
-static void _editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_adjust_date_time (EditingHostPage* self);
-static void _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_set_background (EditingHostPage* self);
-static void _editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_increase_size (EditingHostPage* self);
-static void _editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_on_decrease_size (EditingHostPage* self);
-static void _editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_snap_zoom_to_min (EditingHostPage* self);
-static void _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_snap_zoom_to_isomorphic (EditingHostPage* self);
-static void _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void editing_host_page_snap_zoom_to_max (EditingHostPage* self);
-static void _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-DirectPhotoPage* direct_photo_page_new (GFile* file);
-DirectPhotoPage* direct_photo_page_construct (GType object_type,
- GFile* file);
-EditingHostPage* editing_host_page_construct (GType object_type,
- SourceCollection* sources,
- const gchar* name);
-static gboolean direct_photo_page_check_editable_file (GFile* file);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-void application_panic (Application* self);
-DirectViewCollection* direct_view_collection_new (void);
-DirectViewCollection* direct_view_collection_construct (GType object_type);
-ViewCollection* page_get_view (Page* self);
-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,
- 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);
-InjectionGroup* injection_group_construct (GType object_type,
- const gchar* path);
-void injection_group_add_menu_item (InjectionGroup* self,
- const gchar* name,
- const gchar* action,
- const gchar* accellerator);
-static void _vala_array_add64 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-static void _vala_array_add65 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-gboolean photo_file_format_is_file_supported (GFile* file);
-#define RESOURCES_APP_TITLE "Shotwell"
-static void direct_photo_page_real_realize (GtkWidget* base);
-GType direct_photo_get_type (void) G_GNUC_CONST;
-DirectPhoto* direct_photo_source_collection_get_file_source (DirectPhotoSourceCollection* self,
- GFile* file);
-void editing_host_page_display_mirror_of (EditingHostPage* self,
- ViewCollection* controller,
- Photo* starting_photo);
-void app_window_panic (const gchar* msg);
-static void direct_photo_page_real_photo_changing (EditingHostPage* base,
- Photo* new_photo);
-Photo* editing_host_page_get_photo (EditingHostPage* self);
-static void direct_photo_page_on_dphoto_can_rotate_changed (DirectPhotoPage* self,
- gboolean should_allow_rotation);
-static void _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed (DirectPhoto* _sender,
- gboolean b,
- gpointer self);
-GType import_result_get_type (void) G_GNUC_CONST;
-ImportResult direct_photo_demand_load (DirectPhoto* self);
-GFile* direct_photo_page_get_current_file (DirectPhotoPage* self);
-GFile* media_source_get_file (MediaSource* self);
-static gboolean direct_photo_page_real_on_context_buttonpress (Page* base,
- GdkEventButton* event);
-gboolean page_popup_context_menu (Page* self,
- GtkMenu* context_menu,
- GdkEventButton* event);
-static GtkMenu* direct_photo_page_get_context_menu (DirectPhotoPage* self);
-static void direct_photo_page_update_zoom_menu_item_sensitivity (DirectPhotoPage* self);
-GType zoom_state_get_type (void) G_GNUC_CONST;
-ZoomState* zoom_state_dup (const ZoomState* self);
-void zoom_state_free (ZoomState* self);
-void single_photo_page_get_zoom_state (SinglePhotoPage* self,
- ZoomState* result);
-gboolean zoom_state_is_max (ZoomState *self);
-gboolean editing_host_page_get_photo_missing (EditingHostPage* self);
-void page_set_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive);
-gboolean zoom_state_is_default (ZoomState *self);
-static void direct_photo_page_real_on_increase_size (EditingHostPage* base);
-static void direct_photo_page_real_on_decrease_size (EditingHostPage* base);
-gboolean editing_host_page_has_photo (EditingHostPage* self);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_file_format (Photo* self);
-gboolean photo_file_format_can_write (PhotoFileFormat self);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* page_get_command_manager (Page* self);
-void command_manager_reset (CommandManager* self);
-static gboolean direct_photo_page_real_on_double_click (EditingHostPage* base,
- GdkEventButton* event);
-GtkWindow* page_get_container (Page* self);
-void fullscreen_window_close (FullscreenWindow* self);
-gboolean editing_host_page_on_double_click (EditingHostPage* self,
- GdkEventButton* event);
-static void direct_photo_page_real_update_ui (EditingHostPage* base,
- gboolean missing);
-void editing_host_page_update_ui (EditingHostPage* self,
- gboolean missing);
-static void direct_photo_page_real_update_actions (Page* base,
- gint selected_count,
- gint count);
-gint data_collection_get_count (DataCollection* self);
-gboolean photo_has_transformations (Photo* self);
-gboolean editing_host_page_is_rotate_available (EditingHostPage* self,
- Photo* photo);
-gboolean editing_host_page_is_enhance_available (EditingHostPage* self,
- Photo* photo);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-gboolean editing_tools_crop_tool_is_available (Photo* photo,
- Scaling* scaling);
-void scaling_for_original (Scaling* result);
-gboolean editing_tools_redeye_tool_is_available (Photo* photo,
- Scaling* scaling);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self,
- Photo* photo);
-gboolean photo_has_alterations (Photo* self);
-void photo_remove_all_transformations (Photo* self);
-GtkResponseType app_window_negate_affirm_cancel_question (const gchar* message,
- const gchar* negative,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent);
-gchar* media_source_get_basename (MediaSource* self);
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-static void direct_photo_page_save (DirectPhotoPage* self,
- GFile* dest,
- gint scale,
- ScaleConstraint constraint,
- JpegQuality quality,
- PhotoFileFormat format,
- gboolean copy_unmodified,
- gboolean save_metadata);
-gboolean direct_photo_page_check_quit (DirectPhotoPage* self);
-static gboolean direct_photo_page_real_confirm_replace_photo (EditingHostPage* base,
- Photo* old_photo,
- Photo* new_photo);
-void scaling_for_constraint (ScaleConstraint constraint,
- gint scale,
- gboolean scale_up,
- Scaling* result);
-void photo_export (Photo* self,
- GFile* dest_file,
- Scaling* scaling,
- JpegQuality quality,
- PhotoFileFormat export_format,
- gboolean direct_copy_unmodified,
- gboolean export_metadata,
- GError** error);
-gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self,
- GFile* file,
- DirectPhoto* * photo,
- gboolean reimport);
-gboolean data_source_equals (DataSource* self,
- DataSource* source);
-GType direct_view_get_type (void) G_GNUC_CONST;
-DirectView* direct_view_new (DirectPhoto* source);
-DirectView* direct_view_construct (GType object_type,
- DirectPhoto* source);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-void direct_photo_source_collection_reimport_photo (DirectPhotoSourceCollection* self,
- DirectPhoto* photo);
-GType export_dialog_get_type (void) G_GNUC_CONST;
-ExportDialog* export_dialog_new (const gchar* title);
-ExportDialog* export_dialog_construct (GType object_type,
- const gchar* title);
-GType export_format_parameters_get_type (void) G_GNUC_CONST;
-GType export_format_mode_get_type (void) G_GNUC_CONST;
-ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
-void export_format_parameters_free (ExportFormatParameters* self);
-void export_format_parameters_last (ExportFormatParameters* result);
-gboolean export_dialog_execute (ExportDialog* self,
- gint* scale,
- ScaleConstraint* constraint,
- ExportFormatParameters* parameters);
-gchar* photo_get_export_basename_for_parameters (Photo* self,
- ExportFormatParameters* params);
-PhotoFileFormat photo_get_export_format_for_parameters (Photo* self,
- ExportFormatParameters* params);
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-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);
-GeeList* view_collection_get_selected_sources (ViewCollection* self);
-static gboolean direct_photo_page_real_on_app_key_pressed (Page* base,
- GdkEventKey* event);
-void page_activate_action (Page* self,
- const gchar* name);
-gboolean page_on_app_key_pressed (Page* self,
- GdkEventKey* event);
-gint view_collection_get_selected_count (ViewCollection* self);
-gpointer print_manager_ref (gpointer instance);
-void print_manager_unref (gpointer instance);
-GParamSpec* param_spec_print_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_print_manager (GValue* value,
- gpointer v_object);
-void value_take_print_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_print_manager (const GValue* value);
-GType print_manager_get_type (void) G_GNUC_CONST;
-PrintManager* print_manager_get_instance (void);
-void print_manager_spool_photo (PrintManager* self,
- GeeCollection* to_print);
-GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self,
- GType t);
-static Block7Data* block7_data_ref (Block7Data* _data7_);
-static void block7_data_unref (void * _userdata_);
-static gboolean __lambda17_ (Block7Data* _data7_);
-void editing_host_page_enable_rotate (EditingHostPage* self,
- gboolean should_enable);
-static gboolean ___lambda17__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;
-DirectFullscreenPhotoPage* direct_fullscreen_photo_page_new (GFile* file);
-DirectFullscreenPhotoPage* direct_fullscreen_photo_page_construct (GType object_type,
- GFile* file);
-static void direct_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames);
-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 DIRECT_PHOTO_PAGE_entries[23] = {{"Save", _direct_photo_page_on_save_gsimple_action_activate_callback}, {"SaveAs", _direct_photo_page_on_save_as_gsimple_action_activate_callback}, {"SendTo", _direct_photo_page_on_send_to_gsimple_action_activate_callback}, {"Print", _direct_photo_page_on_print_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}, {"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}, {"AdjustDateTime", _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback}, {"SetBackground", _editing_host_page_on_set_background_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}};
-
-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 1069 "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 1080 "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 1091 "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 1102 "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 1113 "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 1124 "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 1135 "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 1146 "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 1157 "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 1168 "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 1179 "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 1190 "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 1201 "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 1212 "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 1223 "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 1234 "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 1245 "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 1256 "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 1267 "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 1278 "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 1289 "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 1300 "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 1311 "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 1322 "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 1331 "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 1341 "DirectPhotoPage.c"
-}
-
-
-DirectPhotoPage*
-direct_photo_page_construct (GType object_type,
- GFile* file)
-{
- DirectPhotoPage * self = NULL;
- DirectPhotoSourceCollection* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GFile* _tmp5_;
- DirectViewCollection* _tmp6_;
- GFile* _tmp7_;
- DirectPhotoSourceCollection* _tmp8_;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
-#line 13 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = direct_photo_global;
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = g_file_get_basename (file);
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = (DirectPhotoPage*) editing_host_page_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp2_);
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp2_);
-#line 16 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!direct_photo_page_check_editable_file (file)) {
-#line 1373 "DirectPhotoPage.c"
- Application* _tmp3_;
- Application* _tmp4_;
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = application_get_instance ();
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- application_panic (_tmp4_);
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _application_unref0 (_tmp4_);
-#line 19 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return self;
-#line 1386 "DirectPhotoPage.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = _g_object_ref0 (file);
-#line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self->priv->initial_file);
-#line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->initial_file = _tmp5_;
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = direct_view_collection_new ();
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data_collection_unref0 (self->priv->view_controller);
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->view_controller = _tmp6_;
-#line 24 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = g_file_get_parent (file);
-#line 24 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self->priv->current_save_dir);
-#line 24 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->current_save_dir = _tmp7_;
-#line 26 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = direct_photo_global;
-#line 26 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _direct_photo_page_on_photos_altered_data_collection_items_altered, self, 0);
-#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_signal_connect_object (_tmp10_, "selection-group-altered", (GCallback) _direct_photo_page_on_selection_group_altered_view_collection_selection_group_altered, self, 0);
-#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 13 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return self;
-#line 1420 "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 1429 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- DirectPhotoPage * self;
-#line 35 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 35 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 36 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- PAGE_CLASS (direct_photo_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), ui_filenames);
-#line 38 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "direct_context.ui");
-#line 39 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "direct.ui");
-#line 1448 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- DirectPhotoPage * self;
-#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), map);
-#line 71 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_action_map_add_action_entries (map, DIRECT_PHOTO_PAGE_entries, G_N_ELEMENTS (DIRECT_PHOTO_PAGE_entries), self);
-#line 1465 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- DirectPhotoPage * self;
-#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"
- 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), map);
-#line 1480 "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 1492 "DirectPhotoPage.c"
- GActionEntry entry = {0};
-#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- entry = entry_collection[entry_it];
-#line 1496 "DirectPhotoPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = entry;
-#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 1506 "DirectPhotoPage.c"
- }
- }
- }
-}
-
-
-static gpointer
-_injection_group_ref0 (gpointer self)
-{
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return self ? injection_group_ref (self) : NULL;
-#line 1518 "DirectPhotoPage.c"
-}
-
-
-static void
-_vala_array_add64 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if ((*length) == (*size)) {
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 1534 "DirectPhotoPage.c"
- }
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- (*array)[(*length)++] = value;
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- (*array)[*length] = NULL;
-#line 1540 "DirectPhotoPage.c"
-}
-
-
-static void
-_vala_array_add65 (InjectionGroup** * array,
- int* length,
- int* size,
- InjectionGroup* value)
-{
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if ((*length) == (*size)) {
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- *array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 1556 "DirectPhotoPage.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- (*array)[(*length)++] = value;
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- (*array)[*length] = NULL;
-#line 1562 "DirectPhotoPage.c"
-}
-
-
-static InjectionGroup**
-direct_photo_page_real_init_collect_injection_groups (Page* base,
- int* result_length1)
-{
- DirectPhotoPage * self;
- InjectionGroup** result = NULL;
- InjectionGroup** groups = NULL;
- gint _tmp0_;
- InjectionGroup** _tmp1_;
- gint groups_length1;
- gint _groups_size_;
- InjectionGroup* print_group = NULL;
- InjectionGroup* _tmp2_;
- InjectionGroup** _tmp3_;
- gint _tmp3__length1;
- InjectionGroup* _tmp4_;
- InjectionGroup* bg_group = NULL;
- InjectionGroup* _tmp5_;
- InjectionGroup** _tmp6_;
- gint _tmp6__length1;
- InjectionGroup* _tmp7_;
- InjectionGroup** _tmp8_;
- gint _tmp8__length1;
-#line 81 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _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 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- groups = _tmp1_;
-#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- groups_length1 = _tmp0_;
-#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _groups_size_ = groups_length1;
-#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = injection_group_new ("PrintPlaceholder");
-#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- print_group = _tmp2_;
-#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- injection_group_add_menu_item (print_group, _ ("_Print"), "Print", "<Primary>p");
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = groups;
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3__length1 = groups_length1;
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = _injection_group_ref0 (print_group);
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _vala_array_add64 (&groups, &groups_length1, &_groups_size_, _tmp4_);
-#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = injection_group_new ("SetBackgroundPlaceholder");
-#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- bg_group = _tmp5_;
-#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- injection_group_add_menu_item (bg_group, _ ("Set as _Desktop Background"), "SetBackground", "<Primary>b");
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = groups;
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6__length1 = groups_length1;
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = _injection_group_ref0 (bg_group);
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _vala_array_add65 (&groups, &groups_length1, &_groups_size_, _tmp7_);
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = groups;
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8__length1 = groups_length1;
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (result_length1) {
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- *result_length1 = _tmp8__length1;
-#line 1635 "DirectPhotoPage.c"
- }
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = _tmp8_;
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _injection_group_unref0 (bg_group);
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _injection_group_unref0 (print_group);
-#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 1645 "DirectPhotoPage.c"
-}
-
-
-static gboolean
-direct_photo_page_check_editable_file (GFile* file)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
-#line 97 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = g_file_get_path (file);
-#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = !g_file_test (_tmp1_, G_FILE_TEST_EXISTS);
-#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp1_);
-#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp2_) {
-#line 1668 "DirectPhotoPage.c"
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = g_file_get_path (file);
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = g_strdup_printf (_ ("%s does not exist."), _tmp4_);
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_error_message (_tmp6_, NULL);
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp6_);
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp4_);
-#line 1687 "DirectPhotoPage.c"
- } else {
- gchar* _tmp7_;
- gchar* _tmp8_;
- gboolean _tmp9_;
-#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = g_file_get_path (file);
-#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = !g_file_test (_tmp8_, G_FILE_TEST_IS_REGULAR);
-#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp8_);
-#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp9_) {
-#line 1702 "DirectPhotoPage.c"
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = g_file_get_path (file);
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = _tmp10_;
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = g_strdup_printf (_ ("%s is not a file."), _tmp11_);
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_error_message (_tmp13_, NULL);
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp13_);
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp11_);
-#line 1721 "DirectPhotoPage.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!photo_file_format_is_file_supported (file)) {
-#line 1725 "DirectPhotoPage.c"
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = g_file_get_path (file);
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = g_strdup_printf (_ ("%s does not support the file format of\n%s."), RESOURCES_APP_TITLE, _tmp15_);
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_error_message (_tmp17_, NULL);
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp17_);
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp15_);
-#line 1744 "DirectPhotoPage.c"
- } else {
-#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = TRUE;
-#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 1750 "DirectPhotoPage.c"
- }
- }
- }
-#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = FALSE;
-#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 1758 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_realize (GtkWidget* base)
-{
- DirectPhotoPage * self;
- DirectPhoto* photo = NULL;
- DirectPhotoSourceCollection* _tmp0_;
- GFile* _tmp1_;
- DirectPhoto* _tmp2_;
- DirectPhoto* _tmp3_;
-#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 112 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (GTK_WIDGET_CLASS (direct_photo_page_parent_class)->realize != NULL) {
-#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- GTK_WIDGET_CLASS (direct_photo_page_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), gtk_widget_get_type (), GtkWidget));
-#line 1777 "DirectPhotoPage.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = direct_photo_global;
-#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = self->priv->initial_file;
-#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = direct_photo_source_collection_get_file_source (_tmp0_, _tmp1_);
-#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- photo = _tmp2_;
-#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = photo;
-#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp3_ != NULL) {
-#line 1791 "DirectPhotoPage.c"
- DirectViewCollection* _tmp4_;
- DirectPhoto* _tmp5_;
-#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = self->priv->view_controller;
-#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = photo;
-#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- editing_host_page_display_mirror_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO, Photo));
-#line 1800 "DirectPhotoPage.c"
- } else {
- GFile* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = self->priv->initial_file;
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = g_file_get_path (_tmp6_);
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = g_strdup_printf (_ ("Unable open photo %s. Sorry."), _tmp8_);
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_panic (_tmp10_);
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp10_);
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp8_);
-#line 1823 "DirectPhotoPage.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self->priv->initial_file);
-#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->initial_file = NULL;
-#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (photo);
-#line 1831 "DirectPhotoPage.c"
-}
-
-
-static void
-_direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed (DirectPhoto* _sender,
- gboolean b,
- gpointer self)
-{
-#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_on_dphoto_can_rotate_changed ((DirectPhotoPage*) self, b);
-#line 1842 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_photo_changing (EditingHostPage* base,
- Photo* new_photo)
-{
- DirectPhotoPage * self;
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean _tmp2_;
- DirectPhoto* tmp = NULL;
- DirectPhoto* _tmp8_;
- DirectPhoto* _tmp9_;
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_PHOTO (new_photo));
-#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 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = _tmp1_ != NULL;
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp2_) {
-#line 1871 "DirectPhotoPage.c"
- DirectPhoto* tmp = NULL;
- Photo* _tmp3_;
- DirectPhoto* _tmp4_;
- DirectPhoto* _tmp5_;
-#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_DIRECT_PHOTO) ? ((DirectPhoto*) _tmp3_) : NULL;
-#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp4_ == NULL) {
-#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 1884 "DirectPhotoPage.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- tmp = _tmp4_;
-#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = tmp;
-#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp5_ != NULL) {
-#line 1892 "DirectPhotoPage.c"
- DirectPhoto* _tmp6_;
- guint _tmp7_;
-#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = tmp;
-#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_signal_parse_name ("can-rotate-changed", TYPE_DIRECT_PHOTO, &_tmp7_, NULL, FALSE);
-#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed, self);
-#line 1901 "DirectPhotoPage.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (tmp);
-#line 1905 "DirectPhotoPage.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_demand_load (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DIRECT_PHOTO, DirectPhoto));
-#line 137 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (new_photo, TYPE_DIRECT_PHOTO) ? ((DirectPhoto*) new_photo) : NULL);
-#line 137 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- tmp = _tmp8_;
-#line 139 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = tmp;
-#line 139 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp9_ != NULL) {
-#line 1917 "DirectPhotoPage.c"
- DirectPhoto* _tmp10_;
-#line 140 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = tmp;
-#line 140 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_signal_connect_object (_tmp10_, "can-rotate-changed", (GCallback) _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed, self, 0);
-#line 1923 "DirectPhotoPage.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (tmp);
-#line 1927 "DirectPhotoPage.c"
-}
-
-
-GFile*
-direct_photo_page_get_current_file (DirectPhotoPage* self)
-{
- GFile* result = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
-#line 144 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), NULL);
-#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#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 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = _tmp3_;
-#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 1955 "DirectPhotoPage.c"
-}
-
-
-static gboolean
-direct_photo_page_real_on_context_buttonpress (Page* base,
- GdkEventButton* event)
-{
- DirectPhotoPage * self;
- gboolean result = FALSE;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp1_;
-#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = direct_photo_page_get_context_menu (self);
-#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, event);
-#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 151 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = TRUE;
-#line 151 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 1983 "DirectPhotoPage.c"
-}
-
-
-static GtkMenu*
-direct_photo_page_get_context_menu (DirectPhotoPage* self)
-{
- GtkMenu* result = NULL;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp7_;
- GtkMenu* _tmp8_;
-#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), NULL);
-#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = self->priv->context_menu;
-#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp0_ == NULL) {
-#line 2000 "DirectPhotoPage.c"
- GMenuModel* model = NULL;
- GtkBuilder* _tmp1_;
- GObject* _tmp2_;
- GMenuModel* _tmp3_;
- GMenuModel* _tmp4_;
- GtkMenu* _tmp5_;
- GtkMenu* _tmp6_;
-#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = gtk_builder_get_object (_tmp1_, "DirectContextMenu");
-#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp2_) : NULL);
-#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- model = _tmp3_;
-#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = model;
-#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = (GtkMenu*) gtk_menu_new_from_model (_tmp4_);
-#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_object_ref_sink (_tmp5_);
-#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self->priv->context_menu);
-#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->context_menu = _tmp5_;
-#line 161 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = self->priv->context_menu;
-#line 161 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_menu_attach_to_widget (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL);
-#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (model);
-#line 2032 "DirectPhotoPage.c"
- }
-#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = self->priv->context_menu;
-#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = _tmp8_;
-#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2042 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_update_zoom_menu_item_sensitivity (DirectPhotoPage* self)
-{
- gboolean _tmp0_ = FALSE;
- ZoomState _tmp1_ = {0};
- gboolean _tmp2_ = FALSE;
- ZoomState _tmp3_ = {0};
-#line 167 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_);
-#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!zoom_state_is_max (&_tmp1_)) {
-#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 2061 "DirectPhotoPage.c"
- } else {
-#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = FALSE;
-#line 2065 "DirectPhotoPage.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp0_);
-#line 169 "/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), &_tmp3_);
-#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!zoom_state_is_default (&_tmp3_)) {
-#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 2075 "DirectPhotoPage.c"
- } else {
-#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = FALSE;
-#line 2079 "DirectPhotoPage.c"
- }
-#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp2_);
-#line 2083 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_on_increase_size (EditingHostPage* base)
-{
- DirectPhotoPage * self;
-#line 172 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 173 "/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 175 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_update_zoom_menu_item_sensitivity (self);
-#line 2097 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_on_decrease_size (EditingHostPage* base)
-{
- DirectPhotoPage * self;
-#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 179 "/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 181 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_update_zoom_menu_item_sensitivity (self);
-#line 2111 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_on_photos_altered (DirectPhotoPage* self,
- GeeMap* map)
-{
- gboolean contains = FALSE;
- gboolean _tmp11_ = FALSE;
- gboolean sensitive = FALSE;
- gboolean _tmp12_;
- gboolean _tmp14_ = FALSE;
- gboolean _tmp15_;
- gboolean _tmp18_;
-#line 184 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 184 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 185 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- contains = FALSE;
-#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2134 "DirectPhotoPage.c"
- Photo* photo = NULL;
- Photo* _tmp0_;
-#line 187 "/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 187 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- photo = _tmp0_;
-#line 2141 "DirectPhotoPage.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeSet* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = gee_map_get_keys (map);
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _object_it = _tmp5_;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- while (TRUE) {
-#line 2165 "DirectPhotoPage.c"
- GeeIterator* _tmp6_;
- DataObject* object = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- DataObject* _tmp9_;
- Photo* _tmp10_;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = _object_it;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- break;
-#line 2178 "DirectPhotoPage.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = _object_it;
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- object = (DataObject*) _tmp8_;
-#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = object;
-#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = photo;
-#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo) == _tmp10_) {
-#line 190 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- contains = TRUE;
-#line 192 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (object);
-#line 192 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- break;
-#line 2198 "DirectPhotoPage.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (object);
-#line 2202 "DirectPhotoPage.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_object_it);
-#line 2206 "DirectPhotoPage.c"
- }
-#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (photo);
-#line 2210 "DirectPhotoPage.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 2216 "DirectPhotoPage.c"
- } else {
-#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = FALSE;
-#line 2220 "DirectPhotoPage.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- sensitive = _tmp11_;
-#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = sensitive;
-#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp12_) {
-#line 2228 "DirectPhotoPage.c"
- gboolean _tmp13_;
-#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = contains;
-#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- sensitive = _tmp13_;
-#line 2234 "DirectPhotoPage.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = sensitive;
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp15_) {
-#line 2240 "DirectPhotoPage.c"
- Photo* _tmp16_;
- Photo* _tmp17_;
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = photo_file_format_can_write (photo_get_file_format (_tmp17_));
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp17_);
-#line 2251 "DirectPhotoPage.c"
- } else {
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = FALSE;
-#line 2255 "DirectPhotoPage.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Save", _tmp14_);
-#line 202 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = sensitive;
-#line 202 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp18_);
-#line 2263 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_on_selection_group_altered (DirectPhotoPage* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- command_manager_reset (_tmp1_);
-#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _command_manager_unref0 (_tmp1_);
-#line 2282 "DirectPhotoPage.c"
-}
-
-
-static gboolean
-direct_photo_page_real_on_double_click (EditingHostPage* base,
- GdkEventButton* event)
-{
- DirectPhotoPage * self;
- gboolean result = FALSE;
- FullscreenWindow* fs = NULL;
- GtkWindow* _tmp0_;
- FullscreenWindow* _tmp1_;
- FullscreenWindow* _tmp2_;
-#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW) ? ((FullscreenWindow*) _tmp0_) : NULL;
-#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp1_ == NULL) {
-#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 2308 "DirectPhotoPage.c"
- }
-#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- fs = _tmp1_;
-#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = fs;
-#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp2_ != NULL) {
-#line 2316 "DirectPhotoPage.c"
- FullscreenWindow* _tmp3_;
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = fs;
-#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- fullscreen_window_close (_tmp3_);
-#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = TRUE;
-#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (fs);
-#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2328 "DirectPhotoPage.c"
- }
-#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_double_click (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), event);
-#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (fs);
-#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2336 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_update_ui (EditingHostPage* base,
- gboolean missing)
-{
- DirectPhotoPage * self;
- gboolean sensitivity = FALSE;
- gboolean _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp7_;
- gboolean _tmp8_;
- gboolean _tmp9_;
- gboolean _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_;
- gboolean _tmp13_;
- gboolean _tmp14_;
- gboolean _tmp15_;
- gboolean _tmp16_;
- gboolean _tmp17_;
- gboolean _tmp18_;
- gboolean _tmp19_;
- gboolean _tmp20_;
- gboolean _tmp21_;
- gboolean _tmp22_;
- gboolean _tmp23_;
- gboolean _tmp24_;
- gboolean _tmp25_ = FALSE;
-#line 226 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 227 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- sensitivity = !missing;
-#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = sensitivity;
-#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Save", _tmp0_);
-#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = sensitivity;
-#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SaveAs", _tmp1_);
-#line 231 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = sensitivity;
-#line 231 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", _tmp2_);
-#line 232 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = sensitivity;
-#line 232 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp3_);
-#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = sensitivity;
-#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp4_);
-#line 234 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = sensitivity;
-#line 234 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToFile", _tmp5_);
-#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = sensitivity;
-#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonUndo", _tmp6_);
-#line 237 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = sensitivity;
-#line 237 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonRedo", _tmp7_);
-#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = sensitivity;
-#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp8_);
-#line 240 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = sensitivity;
-#line 240 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp9_);
-#line 241 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = sensitivity;
-#line 241 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ZoomFit", _tmp10_);
-#line 242 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = sensitivity;
-#line 242 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom100", _tmp11_);
-#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = sensitivity;
-#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom200", _tmp12_);
-#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = sensitivity;
-#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp13_);
-#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = sensitivity;
-#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp14_);
-#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = sensitivity;
-#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp15_);
-#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = sensitivity;
-#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp16_);
-#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = sensitivity;
-#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp17_);
-#line 250 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = sensitivity;
-#line 250 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", _tmp18_);
-#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = sensitivity;
-#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Straighten", _tmp19_);
-#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = sensitivity;
-#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", _tmp20_);
-#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = sensitivity;
-#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Adjust", _tmp21_);
-#line 254 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = sensitivity;
-#line 254 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp22_);
-#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = sensitivity;
-#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp23_);
-#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24_ = sensitivity;
-#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Fullscreen", _tmp24_);
-#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 2480 "DirectPhotoPage.c"
- } else {
-#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = FALSE;
-#line 2484 "DirectPhotoPage.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp25_);
-#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->update_ui (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), missing);
-#line 2490 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- DirectPhotoPage * self;
- gboolean multiple = FALSE;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_ = FALSE;
- gboolean revert_possible = FALSE;
- gboolean _tmp8_ = FALSE;
- gboolean rotate_possible = FALSE;
- gboolean _tmp11_ = FALSE;
- gboolean enhance_possible = FALSE;
- gboolean _tmp14_;
- gboolean _tmp15_;
- gboolean _tmp16_;
- gboolean _tmp17_;
- gboolean _tmp18_;
- gboolean _tmp19_;
- gboolean _tmp20_;
- gboolean _tmp21_;
- Photo* _tmp28_;
- Photo* _tmp29_;
- gboolean _tmp30_;
-#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) > 1;
-#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- multiple = _tmp2_;
-#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2535 "DirectPhotoPage.c"
- gboolean _tmp4_ = FALSE;
- Photo* _tmp5_;
- Photo* _tmp6_;
- gboolean _tmp7_;
-#line 265 "/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 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = photo_has_transformations (_tmp6_);
-#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp7_) {
-#line 266 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 2552 "DirectPhotoPage.c"
- } else {
-#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = FALSE;
-#line 2556 "DirectPhotoPage.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = _tmp4_;
-#line 2560 "DirectPhotoPage.c"
- } else {
-#line 266 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = FALSE;
-#line 2564 "DirectPhotoPage.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- revert_possible = _tmp3_;
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2570 "DirectPhotoPage.c"
- Photo* _tmp9_;
- Photo* _tmp10_;
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = editing_host_page_is_rotate_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp10_);
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 2581 "DirectPhotoPage.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = FALSE;
-#line 2585 "DirectPhotoPage.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- rotate_possible = _tmp8_;
-#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2591 "DirectPhotoPage.c"
- Photo* _tmp12_;
- Photo* _tmp13_;
-#line 268 "/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 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = editing_host_page_is_enhance_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp13_);
-#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 2602 "DirectPhotoPage.c"
- } else {
-#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = FALSE;
-#line 2606 "DirectPhotoPage.c"
- }
-#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- enhance_possible = _tmp11_;
-#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = multiple;
-#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PrevPhoto", _tmp14_);
-#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = multiple;
-#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NextPhoto", _tmp15_);
-#line 272 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = rotate_possible;
-#line 272 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp16_);
-#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = rotate_possible;
-#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp17_);
-#line 274 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = rotate_possible;
-#line 274 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp18_);
-#line 275 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = rotate_possible;
-#line 275 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp19_);
-#line 276 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = revert_possible;
-#line 276 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp20_);
-#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = enhance_possible;
-#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp21_);
-#line 279 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)));
-#line 281 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 2646 "DirectPhotoPage.c"
- Photo* _tmp22_;
- Photo* _tmp23_;
- Scaling _tmp24_ = {0};
- Photo* _tmp25_;
- Photo* _tmp26_;
- Scaling _tmp27_ = {0};
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = _tmp22_;
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- scaling_for_original (&_tmp24_);
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", editing_tools_crop_tool_is_available (_tmp23_, &_tmp24_));
-#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp23_);
-#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp26_ = _tmp25_;
-#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- scaling_for_original (&_tmp27_);
-#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", editing_tools_redeye_tool_is_available (_tmp26_, &_tmp27_));
-#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp26_);
-#line 2673 "DirectPhotoPage.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp28_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp29_ = _tmp28_;
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp30_ = _tmp29_ != NULL;
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp29_);
-#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp30_) {
-#line 2685 "DirectPhotoPage.c"
- Photo* _tmp31_;
- Photo* _tmp32_;
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp31_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp32_ = _tmp31_;
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", photo_get_file_format (_tmp32_) != PHOTO_FILE_FORMAT_RAW);
-#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp32_);
-#line 2696 "DirectPhotoPage.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", FALSE);
-#line 2700 "DirectPhotoPage.c"
- }
-#line 295 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- PAGE_CLASS (direct_photo_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), selected_count, count);
-#line 2704 "DirectPhotoPage.c"
-}
-
-
-static gboolean
-direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self,
- Photo* photo)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- gboolean is_writeable = FALSE;
- Photo* _tmp1_;
- Photo* _tmp2_;
- gboolean _tmp3_;
- const gchar* _tmp4_ = NULL;
- gboolean _tmp5_;
- gchar* save_option = NULL;
- gchar* _tmp6_;
- GtkResponseType response = 0;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- const gchar* _tmp11_;
- GtkResponseType _tmp12_;
- GtkResponseType _tmp13_;
-#line 298 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), FALSE);
-#line 298 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail ((photo == NULL) || IS_PHOTO (photo), FALSE);
-#line 301 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (photo == NULL) {
-#line 302 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = TRUE;
-#line 302 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2740 "DirectPhotoPage.c"
- }
-#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!photo_has_alterations (photo)) {
-#line 305 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = TRUE;
-#line 305 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2748 "DirectPhotoPage.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = self->priv->drop_if_dirty;
-#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp0_) {
-#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- photo_remove_all_transformations (photo);
-#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = TRUE;
-#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2760 "DirectPhotoPage.c"
- }
-#line 315 "/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 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = photo_file_format_can_write (photo_get_file_format (_tmp2_));
-#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- is_writeable = _tmp3_;
-#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = is_writeable;
-#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp5_) {
-#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = _ ("_Save");
-#line 2778 "DirectPhotoPage.c"
- } else {
-#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = _ ("_Save a Copy");
-#line 2782 "DirectPhotoPage.c"
- }
-#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = g_strdup (_tmp4_);
-#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- save_option = _tmp6_;
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource));
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = g_strdup_printf (_ ("Lose changes to %s?"), _tmp8_);
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = save_option;
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = app_window_negate_affirm_cancel_question (_tmp10_, _tmp11_, _ ("Close _without Saving"), NULL, NULL);
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp10_);
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp8_);
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- response = _tmp12_;
-#line 322 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = response;
-#line 322 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp13_ == GTK_RESPONSE_YES) {
-#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- photo_remove_all_transformations (photo);
-#line 2812 "DirectPhotoPage.c"
- } else {
- GtkResponseType _tmp14_;
-#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = response;
-#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp14_ == GTK_RESPONSE_NO) {
-#line 2819 "DirectPhotoPage.c"
- gboolean _tmp15_;
-#line 325 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = is_writeable;
-#line 325 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp15_) {
-#line 2825 "DirectPhotoPage.c"
- GFile* _tmp16_;
- GFile* _tmp17_;
- Photo* _tmp18_;
- Photo* _tmp19_;
-#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource));
-#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = _tmp18_;
-#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_save (self, _tmp17_, 0, SCALE_CONSTRAINT_ORIGINAL, JPEG_QUALITY_HIGH, photo_get_file_format (_tmp19_), FALSE, TRUE);
-#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp19_);
-#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp17_);
-#line 2844 "DirectPhotoPage.c"
- } else {
-#line 329 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_on_save_as (self);
-#line 2848 "DirectPhotoPage.c"
- }
- } else {
- gboolean _tmp20_ = FALSE;
- gboolean _tmp21_ = FALSE;
- GtkResponseType _tmp22_;
-#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = response;
-#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp22_ == GTK_RESPONSE_CANCEL) {
-#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = TRUE;
-#line 2860 "DirectPhotoPage.c"
- } else {
- GtkResponseType _tmp23_;
-#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = response;
-#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = _tmp23_ == GTK_RESPONSE_DELETE_EVENT;
-#line 2867 "DirectPhotoPage.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp21_) {
-#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = TRUE;
-#line 2873 "DirectPhotoPage.c"
- } else {
- GtkResponseType _tmp24_;
-#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24_ = response;
-#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = _tmp24_ == GTK_RESPONSE_CLOSE;
-#line 2880 "DirectPhotoPage.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp20_) {
-#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = FALSE;
-#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (save_option);
-#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2890 "DirectPhotoPage.c"
- }
- }
- }
-#line 335 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = TRUE;
-#line 335 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (save_option);
-#line 335 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2900 "DirectPhotoPage.c"
-}
-
-
-gboolean
-direct_photo_page_check_quit (DirectPhotoPage* self)
-{
- gboolean result = FALSE;
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean _tmp2_;
-#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), FALSE);
-#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = direct_photo_page_check_ok_to_close_photo (self, _tmp1_);
-#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = _tmp2_;
-#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2925 "DirectPhotoPage.c"
-}
-
-
-static gboolean
-direct_photo_page_real_confirm_replace_photo (EditingHostPage* base,
- Photo* old_photo,
- Photo* new_photo)
-{
- DirectPhotoPage * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail ((old_photo == NULL) || IS_PHOTO (old_photo), FALSE);
-#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (IS_PHOTO (new_photo), FALSE);
-#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (old_photo != NULL) {
-#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = direct_photo_page_check_ok_to_close_photo (self, old_photo);
-#line 2947 "DirectPhotoPage.c"
- } else {
-#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = TRUE;
-#line 2951 "DirectPhotoPage.c"
- }
-#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = _tmp0_;
-#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 2957 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_save (DirectPhotoPage* self,
- GFile* dest,
- gint scale,
- ScaleConstraint constraint,
- JpegQuality quality,
- PhotoFileFormat format,
- gboolean copy_unmodified,
- gboolean save_metadata)
-{
- Scaling scaling = {0};
- Scaling _tmp0_ = {0};
- DirectPhoto* photo = NULL;
- DirectPhotoSourceCollection* _tmp10_;
- DirectPhoto* _tmp11_ = NULL;
- gchar* _tmp12_;
- gchar* _tmp13_;
- Photo* _tmp14_;
- Photo* _tmp15_;
- DirectPhoto* _tmp16_;
- gboolean _tmp17_;
- DirectPhotoSourceCollection* _tmp22_;
- DirectPhoto* _tmp23_;
- DirectViewCollection* _tmp24_;
- DirectPhoto* _tmp25_;
- GError * _inner_error_ = NULL;
-#line 346 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 346 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (G_IS_FILE (dest));
-#line 348 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- scaling_for_constraint (constraint, scale, FALSE, &_tmp0_);
-#line 348 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- scaling = _tmp0_;
-#line 2995 "DirectPhotoPage.c"
- {
- Photo* _tmp1_;
- Photo* _tmp2_;
- Scaling _tmp3_;
-#line 351 "/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 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = scaling;
-#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- photo_export (_tmp2_, dest, &_tmp3_, quality, format, copy_unmodified, save_metadata, &_inner_error_);
-#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3012 "DirectPhotoPage.c"
- goto __catch52_g_error;
- }
- }
- goto __finally52;
- __catch52_g_error:
- {
- GError* err = NULL;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GError* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- err = _inner_error_;
-#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _inner_error_ = NULL;
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = g_file_get_path (dest);
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = _tmp4_;
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = err;
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = _tmp6_->message;
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = g_strdup_printf (_ ("Error while saving to %s: %s"), _tmp5_, _tmp7_);
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = _tmp8_;
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_error_message (_tmp9_, NULL);
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp9_);
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp5_);
-#line 356 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_error_free0 (err);
-#line 356 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return;
-#line 3052 "DirectPhotoPage.c"
- }
- __finally52:
-#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 350 "/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 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_clear_error (&_inner_error_);
-#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return;
-#line 3063 "DirectPhotoPage.c"
- }
-#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = direct_photo_global;
-#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = direct_photo_source_collection_fetch (_tmp10_, dest, &_tmp11_, TRUE);
-#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (photo);
-#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- photo = _tmp11_;
-#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = _tmp12_;
-#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp13_);
-#line 363 "/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 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = _tmp14_;
-#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = photo;
-#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_SOURCE, DataSource));
-#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp17_) {
-#line 3089 "DirectPhotoPage.c"
- DirectView* tmp_view = NULL;
- DirectPhoto* _tmp18_;
- DirectView* _tmp19_;
- DirectViewCollection* _tmp20_;
- DirectView* _tmp21_;
-#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = photo;
-#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = direct_view_new (_tmp18_);
-#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- tmp_view = _tmp19_;
-#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = self->priv->view_controller;
-#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = tmp_view;
-#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject));
-#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (tmp_view);
-#line 3109 "DirectPhotoPage.c"
- }
-#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = direct_photo_global;
-#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = photo;
-#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_source_collection_reimport_photo (_tmp22_, _tmp23_);
-#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24_ = self->priv->view_controller;
-#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = photo;
-#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- editing_host_page_display_mirror_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo));
-#line 346 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (photo);
-#line 3125 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_on_save (DirectPhotoPage* self)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- Photo* _tmp2_;
- Photo* _tmp3_;
- gboolean _tmp4_;
- Photo* _tmp7_;
- Photo* _tmp8_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- Photo* _tmp11_;
- Photo* _tmp12_;
-#line 372 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = _tmp2_;
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = !photo_has_alterations (_tmp3_);
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp4_) {
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = TRUE;
-#line 3157 "DirectPhotoPage.c"
- } else {
- Photo* _tmp5_;
- Photo* _tmp6_;
-#line 373 "/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 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = !photo_file_format_can_write (photo_get_file_format (_tmp6_));
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 3169 "DirectPhotoPage.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp1_) {
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = TRUE;
-#line 3175 "DirectPhotoPage.c"
- } else {
-#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 3179 "DirectPhotoPage.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp0_) {
-#line 375 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return;
-#line 3185 "DirectPhotoPage.c"
- }
-#line 378 "/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 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = _tmp7_;
-#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_save (self, _tmp10_, 0, SCALE_CONSTRAINT_ORIGINAL, JPEG_QUALITY_HIGH, photo_get_file_format (_tmp12_), FALSE, TRUE);
-#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 3207 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_on_save_as (DirectPhotoPage* self)
-{
- ExportDialog* export_dialog = NULL;
- ExportDialog* _tmp0_;
- gint scale = 0;
- ScaleConstraint constraint = 0;
- ExportFormatParameters export_params = {0};
- ExportFormatParameters _tmp1_ = {0};
- ExportDialog* _tmp2_;
- gint _tmp3_ = 0;
- ScaleConstraint _tmp4_ = 0;
- gboolean _tmp5_;
- gchar* filename = NULL;
- Photo* _tmp6_;
- Photo* _tmp7_;
- ExportFormatParameters _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- PhotoFileFormat effective_export_format = 0;
- Photo* _tmp11_;
- Photo* _tmp12_;
- ExportFormatParameters _tmp13_;
- PhotoFileFormat _tmp14_;
- gchar** output_format_extensions = NULL;
- PhotoFileFormat _tmp15_;
- PhotoFileFormatProperties* _tmp16_;
- PhotoFileFormatProperties* _tmp17_;
- gint _tmp18_;
- gchar** _tmp19_;
- gchar** _tmp20_;
- gint _tmp20__length1;
- gint output_format_extensions_length1;
- gint _output_format_extensions_size_;
- GtkFileFilter* output_format_filter = NULL;
- GtkFileFilter* _tmp21_;
- gchar** _tmp22_;
- gint _tmp22__length1;
- GtkFileChooserDialog* save_as_dialog = NULL;
- AppWindow* _tmp34_;
- AppWindow* _tmp35_;
- GtkFileChooserDialog* _tmp36_;
- GtkFileChooserDialog* _tmp37_;
- GtkFileChooserDialog* _tmp38_;
- GtkFileChooserDialog* _tmp39_;
- const gchar* _tmp40_;
- GtkFileChooserDialog* _tmp41_;
- GFile* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- GtkFileChooserDialog* _tmp45_;
- GtkFileFilter* _tmp46_;
- GtkFileFilter* _tmp47_;
- GtkFileChooserDialog* _tmp48_;
- GtkFileChooserDialog* _tmp49_;
- gint response = 0;
- GtkFileChooserDialog* _tmp50_;
- gint _tmp51_;
- GtkFileChooserDialog* _tmp70_;
-#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = export_dialog_new (_ ("Save As"));
-#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_object_ref_sink (_tmp0_);
-#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- export_dialog = _tmp0_;
-#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- export_format_parameters_last (&_tmp1_);
-#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- export_params = _tmp1_;
-#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = export_dialog;
-#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = export_dialog_execute (_tmp2_, &_tmp3_, &_tmp4_, &export_params);
-#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- scale = _tmp3_;
-#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- constraint = _tmp4_;
-#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!_tmp5_) {
-#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (export_dialog);
-#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return;
-#line 3296 "DirectPhotoPage.c"
- }
-#line 391 "/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 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = _tmp6_;
-#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = export_params;
-#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = photo_get_export_basename_for_parameters (_tmp7_, &_tmp8_);
-#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp9_;
-#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- filename = _tmp10_;
-#line 392 "/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 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = _tmp11_;
-#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = export_params;
-#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = photo_get_export_format_for_parameters (_tmp12_, &_tmp13_);
-#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp12_);
-#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- effective_export_format = _tmp14_;
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = effective_export_format;
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = photo_file_format_get_properties (_tmp15_);
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = _tmp16_;
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = photo_file_format_properties_get_known_extensions (_tmp17_, &_tmp18_);
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = _tmp19_;
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20__length1 = _tmp18_;
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _photo_file_format_properties_unref0 (_tmp17_);
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- output_format_extensions = _tmp20_;
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- output_format_extensions_length1 = _tmp20__length1;
-#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _output_format_extensions_size_ = output_format_extensions_length1;
-#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = gtk_file_filter_new ();
-#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_object_ref_sink (_tmp21_);
-#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- output_format_filter = _tmp21_;
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = output_format_extensions;
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22__length1 = output_format_extensions_length1;
-#line 3354 "DirectPhotoPage.c"
- {
- gchar** extension_collection = NULL;
- gint extension_collection_length1 = 0;
- gint _extension_collection_size_ = 0;
- gint extension_it = 0;
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- extension_collection = _tmp22_;
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- extension_collection_length1 = _tmp22__length1;
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- for (extension_it = 0; extension_it < _tmp22__length1; extension_it = extension_it + 1) {
-#line 3366 "DirectPhotoPage.c"
- gchar* _tmp23_;
- gchar* extension = NULL;
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = g_strdup (extension_collection[extension_it]);
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- extension = _tmp23_;
-#line 3373 "DirectPhotoPage.c"
- {
- gchar* uppercase_extension = NULL;
- const gchar* _tmp24_;
- gchar* _tmp25_;
- GtkFileFilter* _tmp26_;
- const gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- GtkFileFilter* _tmp30_;
- const gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
-#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24_ = extension;
-#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = g_utf8_strup (_tmp24_, (gssize) -1);
-#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- uppercase_extension = _tmp25_;
-#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp26_ = output_format_filter;
-#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp27_ = extension;
-#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp28_ = g_strconcat ("*.", _tmp27_, NULL);
-#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp29_ = _tmp28_;
-#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_filter_add_pattern (_tmp26_, _tmp29_);
-#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp29_);
-#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp30_ = output_format_filter;
-#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp31_ = uppercase_extension;
-#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp32_ = g_strconcat ("*.", _tmp31_, NULL);
-#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp33_ = _tmp32_;
-#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_filter_add_pattern (_tmp30_, _tmp33_);
-#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp33_);
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (uppercase_extension);
-#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (extension);
-#line 3420 "DirectPhotoPage.c"
- }
- }
- }
-#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp34_ = app_window_get_instance ();
-#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp35_ = _tmp34_;
-#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp36_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_ ("Save As"), G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_window_get_type (), GtkWindow), GTK_FILE_CHOOSER_ACTION_SAVE, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL);
-#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_object_ref_sink (_tmp36_);
-#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp37_ = _tmp36_;
-#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp35_);
-#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- save_as_dialog = _tmp37_;
-#line 407 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp38_ = save_as_dialog;
-#line 407 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_select_multiple (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE);
-#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp39_ = save_as_dialog;
-#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp40_ = filename;
-#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_current_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp40_);
-#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp41_ = save_as_dialog;
-#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp42_ = self->priv->current_save_dir;
-#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp43_ = g_file_get_path (_tmp42_);
-#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp44_ = _tmp43_;
-#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp44_);
-#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp44_);
-#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp45_ = save_as_dialog;
-#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp46_ = output_format_filter;
-#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp47_ = _g_object_ref0 (_tmp46_);
-#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_add_filter (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp47_);
-#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp48_ = save_as_dialog;
-#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_do_overwrite_confirmation (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_file_chooser_get_type (), GtkFileChooser), TRUE);
-#line 412 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp49_ = save_as_dialog;
-#line 412 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE);
-#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp50_ = save_as_dialog;
-#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_dialog_get_type (), GtkDialog));
-#line 415 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp51_ = response;
-#line 415 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp51_ == ((gint) GTK_RESPONSE_OK)) {
-#line 3484 "DirectPhotoPage.c"
- GtkFileChooserDialog* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
- GFile* _tmp55_;
- GFile* _tmp56_;
- gint _tmp57_;
- ScaleConstraint _tmp58_;
- ExportFormatParameters _tmp59_;
- JpegQuality _tmp60_;
- PhotoFileFormat _tmp61_;
- ExportFormatParameters _tmp62_;
- ExportFormatMode _tmp63_;
- ExportFormatParameters _tmp64_;
- gboolean _tmp65_;
- GtkFileChooserDialog* _tmp66_;
- gchar* _tmp67_;
- gchar* _tmp68_;
- GFile* _tmp69_;
-#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->drop_if_dirty = TRUE;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp52_ = save_as_dialog;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp53_ = gtk_file_chooser_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp54_ = _tmp53_;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp55_ = g_file_new_for_uri (_tmp54_);
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp56_ = _tmp55_;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp57_ = scale;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp58_ = constraint;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp59_ = export_params;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp60_ = _tmp59_.quality;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp61_ = effective_export_format;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp62_ = export_params;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp63_ = _tmp62_.mode;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp64_ = export_params;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp65_ = _tmp64_.export_metadata;
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_save (self, _tmp56_, _tmp57_, _tmp58_, _tmp60_, _tmp61_, _tmp63_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp65_);
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp56_);
-#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp54_);
-#line 422 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->drop_if_dirty = FALSE;
-#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp66_ = save_as_dialog;
-#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp67_ = gtk_file_chooser_get_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp68_ = _tmp67_;
-#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp69_ = g_file_new_for_path (_tmp68_);
-#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self->priv->current_save_dir);
-#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->current_save_dir = _tmp69_;
-#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp68_);
-#line 3555 "DirectPhotoPage.c"
- }
-#line 427 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp70_ = save_as_dialog;
-#line 427 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, gtk_widget_get_type (), GtkWidget));
-#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (save_as_dialog);
-#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (output_format_filter);
-#line 382 "/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 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (filename);
-#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (export_dialog);
-#line 3571 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_on_send_to (DirectPhotoPage* self)
-{
-#line 430 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 3582 "DirectPhotoPage.c"
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeCollection* _tmp3_;
-#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- desktop_integration_send_to (_tmp3_);
-#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 3601 "DirectPhotoPage.c"
- }
-}
-
-
-static gboolean
-direct_photo_page_real_on_app_key_pressed (Page* base,
- GdkEventKey* event)
-{
- DirectPhotoPage * self;
- gboolean result = FALSE;
- gboolean handled = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- GQuark _tmp4_ = 0U;
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- static GQuark _tmp3_label0 = 0;
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- static GQuark _tmp3_label1 = 0;
-#line 3621 "DirectPhotoPage.c"
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_;
-#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- handled = TRUE;
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = event->keyval;
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = _tmp1_;
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("bracketright")))) {
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- switch (0) {
-#line 3642 "DirectPhotoPage.c"
- default:
- {
-#line 440 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise");
-#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- break;
-#line 3649 "DirectPhotoPage.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("bracketleft")))) {
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- switch (0) {
-#line 3655 "DirectPhotoPage.c"
- default:
- {
-#line 444 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise");
-#line 445 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- break;
-#line 3662 "DirectPhotoPage.c"
- }
- }
- } else {
-#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- switch (0) {
-#line 3668 "DirectPhotoPage.c"
- default:
- {
-#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- handled = FALSE;
-#line 449 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- break;
-#line 3675 "DirectPhotoPage.c"
- }
- }
- }
-#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = handled;
-#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp6_) {
-#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = TRUE;
-#line 3685 "DirectPhotoPage.c"
- } else {
-#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = 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), event);
-#line 3689 "DirectPhotoPage.c"
- }
-#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = _tmp5_;
-#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 3695 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_on_print (DirectPhotoPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
-#line 455 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = _tmp0_;
-#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
-#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp2_) {
-#line 3717 "DirectPhotoPage.c"
- PrintManager* _tmp3_;
- PrintManager* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- GeeList* _tmp7_;
- GeeCollection* _tmp8_;
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = print_manager_get_instance ();
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = _tmp3_;
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = _tmp5_;
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = view_collection_get_selected_sources_of_type (_tmp6_, TYPE_PHOTO);
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- print_manager_spool_photo (_tmp4_, _tmp8_);
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _print_manager_unref0 (_tmp4_);
-#line 3744 "DirectPhotoPage.c"
- }
-}
-
-
-static Block7Data*
-block7_data_ref (Block7Data* _data7_)
-{
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_atomic_int_inc (&_data7_->_ref_count_);
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return _data7_;
-#line 3756 "DirectPhotoPage.c"
-}
-
-
-static void
-block7_data_unref (void * _userdata_)
-{
- Block7Data* _data7_;
- _data7_ = (Block7Data*) _userdata_;
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
-#line 3767 "DirectPhotoPage.c"
- DirectPhotoPage* self;
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = _data7_->self;
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self);
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_slice_free (Block7Data, _data7_);
-#line 3775 "DirectPhotoPage.c"
- }
-}
-
-
-static gboolean
-__lambda17_ (Block7Data* _data7_)
-{
- DirectPhotoPage* self;
- gboolean result = FALSE;
-#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = _data7_->self;
-#line 467 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- editing_host_page_enable_rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _data7_->should_allow_rotation);
-#line 469 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = FALSE;
-#line 469 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 3793 "DirectPhotoPage.c"
-}
-
-
-static gboolean
-___lambda17__gsource_func (gpointer self)
-{
- gboolean result;
- result = __lambda17_ (self);
-#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 3804 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_on_dphoto_can_rotate_changed (DirectPhotoPage* self,
- gboolean should_allow_rotation)
-{
- Block7Data* _data7_;
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data7_ = g_slice_new0 (Block7Data);
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data7_->_ref_count_ = 1;
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data7_->self = g_object_ref (self);
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data7_->should_allow_rotation = should_allow_rotation;
-#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda17__gsource_func, block7_data_ref (_data7_), block7_data_unref);
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- block7_data_unref (_data7_);
-#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data7_ = NULL;
-#line 3829 "DirectPhotoPage.c"
-}
-
-
-static DataView*
-direct_photo_page_real_create_photo_view (EditingHostPage* base,
- DataSource* source)
-{
- DirectPhotoPage * self;
- DataView* result = NULL;
- DirectView* _tmp0_;
-#line 473 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 473 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 474 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = direct_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DIRECT_PHOTO, DirectPhoto));
-#line 474 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView);
-#line 474 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return result;
-#line 3850 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_class_init (DirectPhotoPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_type_class_add_private (klass, sizeof (DirectPhotoPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) direct_photo_page_real_init_collect_ui_filenames;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) direct_photo_page_real_add_actions;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) direct_photo_page_real_remove_actions;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) direct_photo_page_real_init_collect_injection_groups;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) direct_photo_page_real_realize;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->photo_changing = (void (*) (EditingHostPage *, Photo*)) direct_photo_page_real_photo_changing;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->on_context_buttonpress = (gboolean (*) (Page *, GdkEventButton*)) direct_photo_page_real_on_context_buttonpress;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_increase_size = (void (*) (EditingHostPage *)) direct_photo_page_real_on_increase_size;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_decrease_size = (void (*) (EditingHostPage *)) direct_photo_page_real_on_decrease_size;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_double_click = (gboolean (*) (EditingHostPage *, GdkEventButton*)) direct_photo_page_real_on_double_click;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->update_ui = (void (*) (EditingHostPage *, gboolean)) direct_photo_page_real_update_ui;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) direct_photo_page_real_update_actions;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->confirm_replace_photo = (gboolean (*) (EditingHostPage *, Photo*, Photo*)) direct_photo_page_real_confirm_replace_photo;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) direct_photo_page_real_on_app_key_pressed;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->create_photo_view = (DataView* (*) (EditingHostPage *, DataSource*)) direct_photo_page_real_create_photo_view;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- G_OBJECT_CLASS (klass)->finalize = direct_photo_page_finalize;
-#line 3893 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_instance_init (DirectPhotoPage * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv = DIRECT_PHOTO_PAGE_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->view_controller = NULL;
-#line 11 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->drop_if_dirty = FALSE;
-#line 3906 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_photo_page_finalize (GObject * obj)
-{
- DirectPhotoPage * self;
- DirectPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = direct_photo_global;
-#line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.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) _direct_photo_page_on_photos_altered_data_collection_items_altered, self);
-#line 8 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self->priv->initial_file);
-#line 9 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _data_collection_unref0 (self->priv->view_controller);
-#line 10 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self->priv->current_save_dir);
-#line 154 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (self->priv->context_menu);
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- G_OBJECT_CLASS (direct_photo_page_parent_class)->finalize (obj);
-#line 3934 "DirectPhotoPage.c"
-}
-
-
-GType
-direct_photo_page_get_type (void)
-{
- static volatile gsize direct_photo_page_type_id__volatile = 0;
- if (g_once_init_enter (&direct_photo_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectPhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectPhotoPage), 0, (GInstanceInitFunc) direct_photo_page_instance_init, NULL };
- GType direct_photo_page_type_id;
- direct_photo_page_type_id = g_type_register_static (TYPE_EDITING_HOST_PAGE, "DirectPhotoPage", &g_define_type_info, 0);
- g_once_init_leave (&direct_photo_page_type_id__volatile, direct_photo_page_type_id);
- }
- return direct_photo_page_type_id__volatile;
-}
-
-
-DirectFullscreenPhotoPage*
-direct_fullscreen_photo_page_construct (GType object_type,
- GFile* file)
-{
- DirectFullscreenPhotoPage * self = NULL;
-#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 480 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = (DirectFullscreenPhotoPage*) direct_photo_page_construct (object_type, file);
-#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return self;
-#line 3963 "DirectPhotoPage.c"
-}
-
-
-DirectFullscreenPhotoPage*
-direct_fullscreen_photo_page_new (GFile* file)
-{
-#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- return direct_fullscreen_photo_page_construct (TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, file);
-#line 3972 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- DirectFullscreenPhotoPage * self;
-#line 483 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPage);
-#line 483 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 486 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "direct_context.ui");
-#line 3987 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_fullscreen_photo_page_class_init (DirectFullscreenPhotoPageClass * klass)
-{
-#line 478 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_fullscreen_photo_page_parent_class = g_type_class_peek_parent (klass);
-#line 478 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) direct_fullscreen_photo_page_real_init_collect_ui_filenames;
-#line 3998 "DirectPhotoPage.c"
-}
-
-
-static void
-direct_fullscreen_photo_page_instance_init (DirectFullscreenPhotoPage * self)
-{
-}
-
-
-GType
-direct_fullscreen_photo_page_get_type (void)
-{
- static volatile gsize direct_fullscreen_photo_page_type_id__volatile = 0;
- if (g_once_init_enter (&direct_fullscreen_photo_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectFullscreenPhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_fullscreen_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectFullscreenPhotoPage), 0, (GInstanceInitFunc) direct_fullscreen_photo_page_instance_init, NULL };
- GType direct_fullscreen_photo_page_type_id;
- direct_fullscreen_photo_page_type_id = g_type_register_static (TYPE_DIRECT_PHOTO_PAGE, "DirectFullscreenPhotoPage", &g_define_type_info, 0);
- g_once_init_leave (&direct_fullscreen_photo_page_type_id__volatile, direct_fullscreen_photo_page_type_id);
- }
- return direct_fullscreen_photo_page_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/direct/DirectView.c b/src/direct/DirectView.c
deleted file mode 100644
index 407d555..0000000
--- a/src/direct/DirectView.c
+++ /dev/null
@@ -1,902 +0,0 @@
-/* DirectView.c generated by valac 0.40.4, the Vala compiler
- * generated from DirectView.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <gee.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_DIRECT_VIEW (direct_view_get_type ())
-#define DIRECT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_VIEW, DirectView))
-#define DIRECT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_VIEW, DirectViewClass))
-#define IS_DIRECT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_VIEW))
-#define IS_DIRECT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_VIEW))
-#define DIRECT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_VIEW, DirectViewClass))
-
-typedef struct _DirectView DirectView;
-typedef struct _DirectViewClass DirectViewClass;
-typedef struct _DirectViewPrivate DirectViewPrivate;
-enum {
- DIRECT_VIEW_0_PROPERTY,
- DIRECT_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* direct_view_properties[DIRECT_VIEW_NUM_PROPERTIES];
-#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_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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_DIRECT_PHOTO (direct_photo_get_type ())
-#define DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO, DirectPhoto))
-#define DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO, DirectPhotoClass))
-#define IS_DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO))
-#define IS_DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO))
-#define DIRECT_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO, DirectPhotoClass))
-
-typedef struct _DirectPhoto DirectPhoto;
-typedef struct _DirectPhotoClass DirectPhotoClass;
-typedef struct _DataCollectionPrivate DataCollectionPrivate;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-typedef struct _ViewCollectionPrivate ViewCollectionPrivate;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_DIRECT_VIEW_COLLECTION (direct_view_collection_get_type ())
-#define DIRECT_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollection))
-#define DIRECT_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollectionClass))
-#define IS_DIRECT_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_VIEW_COLLECTION))
-#define IS_DIRECT_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_VIEW_COLLECTION))
-#define DIRECT_VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollectionClass))
-
-typedef struct _DirectViewCollection DirectViewCollection;
-typedef struct _DirectViewCollectionClass DirectViewCollectionClass;
-typedef struct _DirectViewCollectionPrivate DirectViewCollectionPrivate;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_DIRECT_PHOTO_SOURCE_COLLECTION (direct_photo_source_collection_get_type ())
-#define DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection))
-#define DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass))
-#define IS_DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION))
-#define IS_DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION))
-#define DIRECT_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass))
-
-typedef struct _DirectPhotoSourceCollection DirectPhotoSourceCollection;
-typedef struct _DirectPhotoSourceCollectionClass DirectPhotoSourceCollectionClass;
-
-#define DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER (direct_view_collection_direct_view_manager_get_type ())
-#define DIRECT_VIEW_COLLECTION_DIRECT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER, DirectViewCollectionDirectViewManager))
-#define DIRECT_VIEW_COLLECTION_DIRECT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER, DirectViewCollectionDirectViewManagerClass))
-#define DIRECT_VIEW_COLLECTION_IS_DIRECT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER))
-#define DIRECT_VIEW_COLLECTION_IS_DIRECT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER))
-#define DIRECT_VIEW_COLLECTION_DIRECT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER, DirectViewCollectionDirectViewManagerClass))
-
-typedef struct _DirectViewCollectionDirectViewManager DirectViewCollectionDirectViewManager;
-typedef struct _DirectViewCollectionDirectViewManagerClass DirectViewCollectionDirectViewManagerClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-typedef struct _DirectViewCollectionDirectViewManagerPrivate DirectViewCollectionDirectViewManagerPrivate;
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _DirectView {
- DataView parent_instance;
- DirectViewPrivate * priv;
-};
-
-struct _DirectViewClass {
- DataViewClass parent_class;
-};
-
-struct _DirectViewPrivate {
- GFile* file;
- gchar* collate_key;
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataCollection {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DataCollectionPrivate * priv;
-};
-
-struct _DataCollectionClass {
- GTypeClass parent_class;
- void (*finalize) (DataCollection *self);
- gchar* (*to_string) (DataCollection* self);
- void (*notify_items_added) (DataCollection* self, GeeIterable* added);
- void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
- void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*notify_items_altered) (DataCollection* self, GeeMap* items);
- void (*notify_ordering_changed) (DataCollection* self);
- void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_property_cleared) (DataCollection* self, const gchar* name);
- gboolean (*valid_type) (DataCollection* self, DataObject* object);
- void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
- void (*reset_comparator) (DataCollection* self);
- GeeCollection* (*get_all) (DataCollection* self);
- gint (*get_count) (DataCollection* self);
- DataObject* (*get_at) (DataCollection* self, gint index);
- gint (*index_of) (DataCollection* self, DataObject* object);
- gboolean (*contains) (DataCollection* self, DataObject* object);
- gboolean (*add) (DataCollection* self, DataObject* object);
- GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
- void (*remove_marked) (DataCollection* self, Marker* m);
- void (*clear) (DataCollection* self);
- void (*close) (DataCollection* self);
- void (*notify_frozen) (DataCollection* self);
- void (*notify_thawed) (DataCollection* self);
- void (*items_added) (DataCollection* self, GeeIterable* added);
- void (*items_removed) (DataCollection* self, GeeIterable* removed);
- void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
- void (*items_altered) (DataCollection* self, GeeMap* items);
- void (*ordering_changed) (DataCollection* self);
- void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
- void (*property_cleared) (DataCollection* self, const gchar* name);
- void (*frozen) (DataCollection* self);
- void (*thawed) (DataCollection* self);
-};
-
-struct _ViewCollection {
- DataCollection parent_instance;
- ViewCollectionPrivate * priv;
-};
-
-struct _ViewCollectionClass {
- DataCollectionClass parent_class;
- void (*notify_items_selected_unselected) (ViewCollection* self, GeeCollection* selected, GeeCollection* unselected);
- void (*notify_selection_group_altered) (ViewCollection* self);
- void (*notify_item_view_altered) (ViewCollection* self, DataView* view);
- void (*notify_views_altered) (ViewCollection* self, GeeCollection* views);
- void (*notify_item_geometry_altered) (ViewCollection* self, DataView* view);
- void (*notify_geometries_altered) (ViewCollection* self, GeeCollection* views);
- void (*notify_items_shown) (ViewCollection* self, GeeCollection* shown);
- void (*notify_items_hidden) (ViewCollection* self, GeeCollection* hidden);
- void (*notify_items_visibility_changed) (ViewCollection* self, GeeCollection* changed);
- void (*notify_view_filter_installed) (ViewCollection* self, ViewFilter* filter);
- void (*notify_view_filter_removed) (ViewCollection* self, ViewFilter* filter);
- DataView* (*get_first) (ViewCollection* self);
- DataView* (*get_first_unrejected) (ViewCollection* self);
- DataView* (*get_last) (ViewCollection* self);
- DataView* (*get_next) (ViewCollection* self, DataView* view);
- DataView* (*get_previous) (ViewCollection* self, DataView* view);
- void (*items_selected) (ViewCollection* self, GeeIterable* selected);
- void (*items_unselected) (ViewCollection* self, GeeIterable* unselected);
- void (*items_state_changed) (ViewCollection* self, GeeIterable* changed);
- void (*selection_group_altered) (ViewCollection* self);
- void (*items_shown) (ViewCollection* self, GeeCollection* visible);
- void (*items_hidden) (ViewCollection* self, GeeCollection* hidden);
- void (*items_visibility_changed) (ViewCollection* self, GeeCollection* changed);
- void (*item_view_altered) (ViewCollection* self, DataView* view);
- void (*item_geometry_altered) (ViewCollection* self, DataView* view);
- void (*views_altered) (ViewCollection* self, GeeCollection* views);
- void (*geometries_altered) (ViewCollection* self, GeeCollection* views);
- void (*view_filter_installed) (ViewCollection* self, ViewFilter* filer);
- void (*view_filter_removed) (ViewCollection* self, ViewFilter* filer);
-};
-
-struct _DirectViewCollection {
- ViewCollection parent_instance;
- DirectViewCollectionPrivate * priv;
-};
-
-struct _DirectViewCollectionClass {
- ViewCollectionClass parent_class;
-};
-
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _DirectViewCollectionDirectViewManager {
- ViewManager parent_instance;
- DirectViewCollectionDirectViewManagerPrivate * priv;
-};
-
-struct _DirectViewCollectionDirectViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-
-static gpointer direct_view_parent_class = NULL;
-static gpointer direct_view_collection_parent_class = NULL;
-extern DirectPhotoSourceCollection* direct_photo_global;
-static gpointer direct_view_collection_direct_view_manager_parent_class = NULL;
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType direct_view_get_type (void) G_GNUC_CONST;
-#define DIRECT_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_VIEW, DirectViewPrivate))
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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 direct_photo_get_type (void) G_GNUC_CONST;
-DirectView* direct_view_new (DirectPhoto* source);
-DirectView* direct_view_construct (GType object_type,
- DirectPhoto* source);
-DataView* data_view_new (DataSource* source);
-DataView* data_view_construct (GType object_type,
- DataSource* source);
-GFile* media_source_get_file (MediaSource* self);
-GFile* direct_view_get_file (DirectView* self);
-gchar* direct_view_get_collate_key (DirectView* self);
-static void direct_view_finalize (GObject * obj);
-GType marker_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType direct_view_collection_get_type (void) G_GNUC_CONST;
-DirectViewCollection* direct_view_collection_new (void);
-DirectViewCollection* direct_view_collection_construct (GType object_type);
-ViewCollection* view_collection_new (const gchar* name);
-ViewCollection* view_collection_construct (GType object_type,
- const gchar* name);
-void data_collection_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-static gint64 direct_view_collection_filename_comparator (void* a,
- void* b);
-static gint64 _direct_view_collection_filename_comparator_comparator (void* a,
- void* b,
- gpointer self);
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType direct_photo_source_collection_get_type (void) G_GNUC_CONST;
-static DirectViewCollectionDirectViewManager* direct_view_collection_direct_view_manager_new (void);
-static DirectViewCollectionDirectViewManager* direct_view_collection_direct_view_manager_construct (GType object_type);
-static GType direct_view_collection_direct_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static DataView* direct_view_collection_direct_view_manager_real_create_view (ViewManager* base,
- DataSource* source);
-ViewManager* view_manager_construct (GType object_type);
-
-
-DirectView*
-direct_view_construct (GType object_type,
- DirectPhoto* source)
-{
- DirectView * self = NULL;
- GFile* _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- g_return_val_if_fail (IS_DIRECT_PHOTO (source), NULL);
-#line 12 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self = (DirectView*) data_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), TYPE_MEDIA_SOURCE, MediaSource));
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _g_object_unref0 (self->priv->file);
-#line 14 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self->priv->file = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return self;
-#line 563 "DirectView.c"
-}
-
-
-DirectView*
-direct_view_new (DirectPhoto* source)
-{
-#line 11 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return direct_view_construct (TYPE_DIRECT_VIEW, source);
-#line 572 "DirectView.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return self ? g_object_ref (self) : NULL;
-#line 581 "DirectView.c"
-}
-
-
-GFile*
-direct_view_get_file (DirectView* self)
-{
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- g_return_val_if_fail (IS_DIRECT_VIEW (self), NULL);
-#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp0_ = self->priv->file;
-#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- result = _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return result;
-#line 601 "DirectView.c"
-}
-
-
-gchar*
-direct_view_get_collate_key (DirectView* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 21 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- g_return_val_if_fail (IS_DIRECT_VIEW (self), NULL);
-#line 22 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp0_ = self->priv->collate_key;
-#line 22 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- if (_tmp0_ == NULL) {
-#line 618 "DirectView.c"
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp1_ = self->priv->file;
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp2_ = g_file_get_basename (_tmp1_);
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp3_ = _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp4_ = g_utf8_collate_key_for_filename (_tmp3_, (gssize) -1);
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _g_free0 (self->priv->collate_key);
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self->priv->collate_key = _tmp4_;
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _g_free0 (_tmp3_);
-#line 637 "DirectView.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp5_ = self->priv->collate_key;
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- result = _tmp6_;
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return result;
-#line 647 "DirectView.c"
-}
-
-
-static void
-direct_view_class_init (DirectViewClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- direct_view_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- g_type_class_add_private (klass, sizeof (DirectViewPrivate));
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- G_OBJECT_CLASS (klass)->finalize = direct_view_finalize;
-#line 660 "DirectView.c"
-}
-
-
-static void
-direct_view_instance_init (DirectView * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self->priv = DIRECT_VIEW_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self->priv->collate_key = NULL;
-#line 671 "DirectView.c"
-}
-
-
-static void
-direct_view_finalize (GObject * obj)
-{
- DirectView * self;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_VIEW, DirectView);
-#line 8 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _g_object_unref0 (self->priv->file);
-#line 9 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _g_free0 (self->priv->collate_key);
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- G_OBJECT_CLASS (direct_view_parent_class)->finalize (obj);
-#line 687 "DirectView.c"
-}
-
-
-GType
-direct_view_get_type (void)
-{
- static volatile gsize direct_view_type_id__volatile = 0;
- if (g_once_init_enter (&direct_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectView), 0, (GInstanceInitFunc) direct_view_instance_init, NULL };
- GType direct_view_type_id;
- direct_view_type_id = g_type_register_static (TYPE_DATA_VIEW, "DirectView", &g_define_type_info, 0);
- g_once_init_leave (&direct_view_type_id__volatile, direct_view_type_id);
- }
- return direct_view_type_id__volatile;
-}
-
-
-static gint64
-_direct_view_collection_filename_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = direct_view_collection_filename_comparator (a, b);
-#line 39 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return result;
-#line 714 "DirectView.c"
-}
-
-
-DirectViewCollection*
-direct_view_collection_construct (GType object_type)
-{
- DirectViewCollection* self = NULL;
- DirectPhotoSourceCollection* _tmp0_;
- DirectViewCollectionDirectViewManager* _tmp1_;
- DirectViewCollectionDirectViewManager* _tmp2_;
- ViewCollectionMonitor* _tmp3_;
- ViewCollectionMonitor* _tmp4_;
-#line 37 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self = (DirectViewCollection*) view_collection_construct (object_type, "DirectViewCollection");
-#line 39 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _direct_view_collection_filename_comparator_comparator, NULL, NULL, NULL);
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp0_ = direct_photo_global;
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp1_ = direct_view_collection_direct_view_manager_new ();
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp2_ = _tmp1_;
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp3_ = view_collection_monitor_source_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL);
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp4_ = _tmp3_;
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _view_collection_monitor_unref0 (_tmp4_);
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _view_manager_unref0 (_tmp2_);
-#line 36 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return self;
-#line 747 "DirectView.c"
-}
-
-
-DirectViewCollection*
-direct_view_collection_new (void)
-{
-#line 36 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return direct_view_collection_construct (TYPE_DIRECT_VIEW_COLLECTION);
-#line 756 "DirectView.c"
-}
-
-
-static gint64
-direct_view_collection_filename_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- DirectView* aview = NULL;
- DirectView* bview = NULL;
- GCompareFunc _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gint64 _tmp5_;
-#line 44 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- aview = (DirectView*) a;
-#line 45 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- bview = (DirectView*) b;
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp0_ = g_strcmp0;
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp1_ = direct_view_get_collate_key (G_TYPE_CHECK_INSTANCE_CAST (aview, TYPE_DIRECT_VIEW, DirectView));
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp2_ = _tmp1_;
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp3_ = direct_view_get_collate_key (G_TYPE_CHECK_INSTANCE_CAST (bview, TYPE_DIRECT_VIEW, DirectView));
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp4_ = _tmp3_;
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp5_ = (gint64) _tmp0_ (_tmp2_, _tmp4_);
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _g_free0 (_tmp4_);
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _g_free0 (_tmp2_);
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- result = _tmp5_;
-#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return result;
-#line 797 "DirectView.c"
-}
-
-
-static DataView*
-direct_view_collection_direct_view_manager_real_create_view (ViewManager* base,
- DataSource* source)
-{
- DirectViewCollectionDirectViewManager * self;
- DataView* result = NULL;
- DirectView* _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER, DirectViewCollectionDirectViewManager);
-#line 31 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 32 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- _tmp0_ = direct_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DIRECT_PHOTO, DirectPhoto));
-#line 32 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView);
-#line 32 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return result;
-#line 818 "DirectView.c"
-}
-
-
-static DirectViewCollectionDirectViewManager*
-direct_view_collection_direct_view_manager_construct (GType object_type)
-{
- DirectViewCollectionDirectViewManager* self = NULL;
-#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- self = (DirectViewCollectionDirectViewManager*) view_manager_construct (object_type);
-#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return self;
-#line 830 "DirectView.c"
-}
-
-
-static DirectViewCollectionDirectViewManager*
-direct_view_collection_direct_view_manager_new (void)
-{
-#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- return direct_view_collection_direct_view_manager_construct (DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER);
-#line 839 "DirectView.c"
-}
-
-
-static void
-direct_view_collection_direct_view_manager_class_init (DirectViewCollectionDirectViewManagerClass * klass)
-{
-#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- direct_view_collection_direct_view_manager_parent_class = g_type_class_peek_parent (klass);
-#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) direct_view_collection_direct_view_manager_real_create_view;
-#line 850 "DirectView.c"
-}
-
-
-static void
-direct_view_collection_direct_view_manager_instance_init (DirectViewCollectionDirectViewManager * self)
-{
-}
-
-
-static GType
-direct_view_collection_direct_view_manager_get_type (void)
-{
- static volatile gsize direct_view_collection_direct_view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&direct_view_collection_direct_view_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectViewCollectionDirectViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_view_collection_direct_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectViewCollectionDirectViewManager), 0, (GInstanceInitFunc) direct_view_collection_direct_view_manager_instance_init, NULL };
- GType direct_view_collection_direct_view_manager_type_id;
- direct_view_collection_direct_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "DirectViewCollectionDirectViewManager", &g_define_type_info, 0);
- g_once_init_leave (&direct_view_collection_direct_view_manager_type_id__volatile, direct_view_collection_direct_view_manager_type_id);
- }
- return direct_view_collection_direct_view_manager_type_id__volatile;
-}
-
-
-static void
-direct_view_collection_class_init (DirectViewCollectionClass * klass)
-{
-#line 29 "/home/jens/Source/shotwell/src/direct/DirectView.vala"
- direct_view_collection_parent_class = g_type_class_peek_parent (klass);
-#line 879 "DirectView.c"
-}
-
-
-static void
-direct_view_collection_instance_init (DirectViewCollection * self)
-{
-}
-
-
-GType
-direct_view_collection_get_type (void)
-{
- static volatile gsize direct_view_collection_type_id__volatile = 0;
- if (g_once_init_enter (&direct_view_collection_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectViewCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_view_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectViewCollection), 0, (GInstanceInitFunc) direct_view_collection_instance_init, NULL };
- GType direct_view_collection_type_id;
- direct_view_collection_type_id = g_type_register_static (TYPE_VIEW_COLLECTION, "DirectViewCollection", &g_define_type_info, 0);
- g_once_init_leave (&direct_view_collection_type_id__volatile, direct_view_collection_type_id);
- }
- return direct_view_collection_type_id__volatile;
-}
-
-
-
diff --git a/src/direct/DirectWindow.c b/src/direct/DirectWindow.c
deleted file mode 100644
index 74d510c..0000000
--- a/src/direct/DirectWindow.c
+++ /dev/null
@@ -1,967 +0,0 @@
-/* DirectWindow.c generated by valac 0.40.4, the Vala compiler
- * generated from DirectWindow.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk/gdk.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-typedef struct _PageWindowPrivate PageWindowPrivate;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#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;
-typedef struct _AppWindowPrivate AppWindowPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_DIRECT_WINDOW (direct_window_get_type ())
-#define DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_WINDOW, DirectWindow))
-#define DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_WINDOW, DirectWindowClass))
-#define IS_DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_WINDOW))
-#define IS_DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_WINDOW))
-#define DIRECT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_WINDOW, DirectWindowClass))
-
-typedef struct _DirectWindow DirectWindow;
-typedef struct _DirectWindowClass DirectWindowClass;
-typedef struct _DirectWindowPrivate DirectWindowPrivate;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-
-#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ())
-#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage))
-#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE))
-#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE))
-#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-
-typedef struct _EditingHostPage EditingHostPage;
-typedef struct _EditingHostPageClass EditingHostPageClass;
-
-#define TYPE_DIRECT_PHOTO_PAGE (direct_photo_page_get_type ())
-#define DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage))
-#define DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass))
-#define IS_DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_PAGE))
-#define IS_DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_PAGE))
-#define DIRECT_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass))
-
-typedef struct _DirectPhotoPage DirectPhotoPage;
-typedef struct _DirectPhotoPageClass DirectPhotoPageClass;
-enum {
- DIRECT_WINDOW_0_PROPERTY,
- DIRECT_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* direct_window_properties[DIRECT_WINDOW_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE (direct_fullscreen_photo_page_get_type ())
-#define DIRECT_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPage))
-#define DIRECT_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPageClass))
-#define IS_DIRECT_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE))
-#define IS_DIRECT_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE))
-#define DIRECT_FULLSCREEN_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPageClass))
-
-typedef struct _DirectFullscreenPhotoPage DirectFullscreenPhotoPage;
-typedef struct _DirectFullscreenPhotoPageClass DirectFullscreenPhotoPageClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-struct _PageWindow {
- GtkApplicationWindow parent_instance;
- PageWindowPrivate * priv;
-};
-
-struct _PageWindowClass {
- GtkApplicationWindowClass parent_class;
- void (*switched_pages) (PageWindow* self, Page* old_page, Page* new_page);
- void (*set_current_page) (PageWindow* self, Page* page);
- void (*clear_current_page) (PageWindow* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _AppWindow {
- PageWindow parent_instance;
- AppWindowPrivate * priv;
- gboolean maximized;
- Dimensions dimensions;
- gint pos_x;
- gint pos_y;
-};
-
-struct _AppWindowClass {
- PageWindowClass parent_class;
- void (*on_fullscreen) (AppWindow* self);
- gchar* (*get_app_role) (AppWindow* self);
- void (*on_quit) (AppWindow* self);
- void (*add_actions) (AppWindow* self);
- void (*update_common_action_availability) (AppWindow* self, Page* old_page, Page* new_page);
- void (*update_common_actions) (AppWindow* self, Page* page, gint selected_count, gint count);
-};
-
-struct _DirectWindow {
- AppWindow parent_instance;
- DirectWindowPrivate * priv;
-};
-
-struct _DirectWindowClass {
- AppWindowClass parent_class;
-};
-
-struct _DirectWindowPrivate {
- DirectPhotoPage* direct_photo_page;
-};
-
-
-static gpointer direct_window_parent_class = NULL;
-extern AppWindow* app_window_instance;
-
-GType page_window_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType direct_window_get_type (void) G_GNUC_CONST;
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType editing_host_page_get_type (void) G_GNUC_CONST;
-GType direct_photo_page_get_type (void) G_GNUC_CONST;
-#define DIRECT_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_WINDOW, DirectWindowPrivate))
-DirectWindow* direct_window_new (GFile* file);
-DirectWindow* direct_window_construct (GType object_type,
- GFile* file);
-AppWindow* app_window_construct (GType object_type);
-DirectPhotoPage* direct_photo_page_new (GFile* file);
-DirectPhotoPage* direct_photo_page_construct (GType object_type,
- GFile* file);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-static void direct_window_on_photo_changed (DirectWindow* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void _direct_window_on_photo_changed_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-GType data_view_get_type (void) G_GNUC_CONST;
-static void _direct_window_on_photo_changed_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self);
-void page_window_set_current_page (PageWindow* self,
- Page* page);
-void direct_window_update_title (DirectWindow* self,
- GFile* file,
- gboolean modified);
-void page_switched_to (Page* self);
-GtkToolbar* page_get_toolbar (Page* self);
-void application_set_menubar (GMenuModel* model);
-GMenuModel* page_get_menubar (Page* self);
-DirectWindow* direct_window_get_app (void);
-DirectPhotoPage* direct_window_get_direct_page (DirectWindow* self);
-Page* page_window_get_current_page (PageWindow* self);
-gchar* get_display_pathname (GFile* file);
-#define RESOURCES_APP_TITLE "Shotwell"
-static void direct_window_real_on_fullscreen (AppWindow* base);
-GFile* direct_photo_page_get_current_file (DirectPhotoPage* self);
-void app_window_go_fullscreen (AppWindow* self,
- Page* page);
-DirectFullscreenPhotoPage* direct_fullscreen_photo_page_new (GFile* file);
-DirectFullscreenPhotoPage* direct_fullscreen_photo_page_construct (GType object_type,
- GFile* file);
-GType direct_fullscreen_photo_page_get_type (void) G_GNUC_CONST;
-static gchar* direct_window_real_get_app_role (AppWindow* base);
-#define RESOURCES_APP_DIRECT_ROLE _ ("Photo Viewer")
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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;
-Photo* editing_host_page_get_photo (EditingHostPage* self);
-GFile* media_source_get_file (MediaSource* self);
-gboolean photo_has_alterations (Photo* self);
-static void direct_window_real_on_quit (AppWindow* base);
-gboolean direct_photo_page_check_quit (DirectPhotoPage* self);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_set_direct_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions);
-void app_window_on_quit (AppWindow* self);
-static gboolean direct_window_real_delete_event (GtkWidget* base,
- GdkEventAny* event);
-static gboolean direct_window_real_button_press_event (GtkWidget* base,
- GdkEventButton* event);
-void app_window_on_fullscreen (AppWindow* self);
-static gboolean direct_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-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 403 "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 414 "DirectWindow.c"
-}
-
-
-DirectWindow*
-direct_window_construct (GType object_type,
- GFile* file)
-{
- DirectWindow * self = NULL;
- DirectPhotoPage* _tmp0_;
- DirectPhotoPage* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- DirectPhotoPage* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- DirectPhotoPage* _tmp7_;
- DirectPhotoPage* _tmp8_;
- GtkBox* layout = NULL;
- GtkBox* _tmp9_;
- DirectPhotoPage* _tmp10_;
- DirectPhotoPage* _tmp11_;
- GtkToolbar* _tmp12_;
- GtkToolbar* _tmp13_;
- DirectPhotoPage* _tmp14_;
- GMenuModel* _tmp15_;
- GMenuModel* _tmp16_;
-#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"
- self = (DirectWindow*) app_window_construct (object_type);
-#line 11 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = direct_photo_page_new (file);
-#line 11 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_object_ref_sink (_tmp0_);
-#line 11 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (self->priv->direct_photo_page);
-#line 11 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- self->priv->direct_photo_page = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp1_ = self->priv->direct_photo_page;
-#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page));
-#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp3_ = _tmp2_;
-#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _direct_window_on_photo_changed_data_collection_items_altered, self, 0);
-#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _data_collection_unref0 (_tmp3_);
-#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp4_ = self->priv->direct_photo_page;
-#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE, Page));
-#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp6_ = _tmp5_;
-#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_signal_connect_object (_tmp6_, "items-state-changed", (GCallback) _direct_window_on_photo_changed_view_collection_items_state_changed, self, 0);
-#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _data_collection_unref0 (_tmp6_);
-#line 15 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp7_ = self->priv->direct_photo_page;
-#line 15 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE, Page));
-#line 17 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- direct_window_update_title (self, file, FALSE);
-#line 19 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp8_ = self->priv->direct_photo_page;
-#line 19 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- page_switched_to (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE, Page));
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp9_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_object_ref_sink (_tmp9_);
-#line 23 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- layout = _tmp9_;
-#line 24 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp10_ = self->priv->direct_photo_page;
-#line 24 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- gtk_box_pack_start (layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp11_ = self->priv->direct_photo_page;
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp12_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE, Page));
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp13_ = _tmp12_;
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- gtk_box_pack_end (layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp13_);
-#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp14_ = self->priv->direct_photo_page;
-#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp15_ = page_get_menubar (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE, Page));
-#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp16_ = _tmp15_;
-#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- application_set_menubar (_tmp16_);
-#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp16_);
-#line 29 "/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 (layout);
-#line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return self;
-#line 519 "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 528 "DirectWindow.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return self ? g_object_ref (self) : NULL;
-#line 537 "DirectWindow.c"
-}
-
-
-DirectWindow*
-direct_window_get_app (void)
-{
- DirectWindow* result = NULL;
- AppWindow* _tmp0_;
- DirectWindow* _tmp1_;
-#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = app_window_instance;
-#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 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = _tmp1_;
-#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 555 "DirectWindow.c"
-}
-
-
-DirectPhotoPage*
-direct_window_get_direct_page (DirectWindow* self)
-{
- DirectPhotoPage* result = NULL;
- Page* _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_return_val_if_fail (IS_DIRECT_WINDOW (self), NULL);
-#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 37 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
-#line 37 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 572 "DirectWindow.c"
-}
-
-
-void
-direct_window_update_title (DirectWindow* self,
- GFile* file,
- gboolean modified)
-{
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_return_if_fail (IS_DIRECT_WINDOW (self));
-#line 40 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- if (modified) {
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = "*";
-#line 598 "DirectWindow.c"
- } else {
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = "";
-#line 602 "DirectWindow.c"
- }
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp1_ = g_file_get_basename (file);
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp2_ = _tmp1_;
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp3_ = g_file_get_parent (file);
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp4_ = _tmp3_;
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp5_ = get_display_pathname (_tmp4_);
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp6_ = _tmp5_;
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp7_ = g_strdup_printf ("%s%s (%s) - %s", _tmp0_, _tmp2_, _tmp6_, RESOURCES_APP_TITLE);
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp8_ = _tmp7_;
-#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), _tmp8_);
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_free0 (_tmp8_);
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_free0 (_tmp6_);
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_free0 (_tmp2_);
-#line 630 "DirectWindow.c"
-}
-
-
-static void
-direct_window_real_on_fullscreen (AppWindow* base)
-{
- DirectWindow * self;
- GFile* file = NULL;
- DirectPhotoPage* _tmp0_;
- DirectPhotoPage* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- DirectFullscreenPhotoPage* _tmp4_;
- DirectFullscreenPhotoPage* _tmp5_;
-#line 45 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow);
-#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = direct_window_get_direct_page (self);
-#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp1_ = _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp2_ = direct_photo_page_get_current_file (_tmp1_);
-#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp3_ = _tmp2_;
-#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- file = _tmp3_;
-#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp4_ = direct_fullscreen_photo_page_new (file);
-#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_object_ref_sink (_tmp4_);
-#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp5_ = _tmp4_;
-#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 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 45 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (file);
-#line 671 "DirectWindow.c"
-}
-
-
-static gchar*
-direct_window_real_get_app_role (AppWindow* base)
-{
- DirectWindow * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 51 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow);
-#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = g_strdup (RESOURCES_APP_DIRECT_ROLE);
-#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 689 "DirectWindow.c"
-}
-
-
-static void
-direct_window_on_photo_changed (DirectWindow* self)
-{
- Photo* photo = NULL;
- DirectPhotoPage* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
-#line 55 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_return_if_fail (IS_DIRECT_WINDOW (self));
-#line 56 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = self->priv->direct_photo_page;
-#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 56 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- photo = _tmp1_;
-#line 57 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp2_ = photo;
-#line 57 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- if (_tmp2_ != NULL) {
-#line 712 "DirectWindow.c"
- Photo* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- Photo* _tmp6_;
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp3_ = photo;
-#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 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp5_ = _tmp4_;
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp6_ = photo;
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- direct_window_update_title (self, _tmp5_, photo_has_alterations (_tmp6_));
-#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 729 "DirectWindow.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (photo);
-#line 733 "DirectWindow.c"
-}
-
-
-static void
-direct_window_real_on_quit (AppWindow* base)
-{
- DirectWindow * self;
- DirectPhotoPage* _tmp0_;
- DirectPhotoPage* _tmp1_;
- gboolean _tmp2_;
- ConfigFacade* _tmp3_;
- ConfigFacade* _tmp4_;
- gboolean _tmp5_;
- Dimensions _tmp6_;
-#line 61 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow);
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = direct_window_get_direct_page (self);
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp1_ = _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp2_ = !direct_photo_page_check_quit (_tmp1_);
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- if (_tmp2_) {
-#line 63 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return;
-#line 762 "DirectWindow.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp3_ = config_facade_get_instance ();
-#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp4_ = _tmp3_;
-#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->maximized;
-#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->dimensions;
-#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- configuration_facade_set_direct_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp5_, &_tmp6_);
-#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp4_);
-#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 778 "DirectWindow.c"
-}
-
-
-static gboolean
-direct_window_real_delete_event (GtkWidget* base,
- GdkEventAny* event)
-{
- DirectWindow * self;
- gboolean result = FALSE;
- DirectPhotoPage* _tmp0_;
- DirectPhotoPage* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_ = FALSE;
-#line 70 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow);
-#line 70 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = direct_window_get_direct_page (self);
-#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp1_ = _tmp0_;
-#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp2_ = !direct_photo_page_check_quit (_tmp1_);
-#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- if (_tmp2_) {
-#line 72 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = TRUE;
-#line 72 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 810 "DirectWindow.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- if (GTK_WIDGET_CLASS (direct_window_parent_class)->delete_event != NULL) {
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp3_ = 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), event);
-#line 816 "DirectWindow.c"
- } else {
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp3_ = FALSE;
-#line 820 "DirectWindow.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = _tmp3_;
-#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 826 "DirectWindow.c"
-}
-
-
-static gboolean
-direct_window_real_button_press_event (GtkWidget* base,
- GdkEventButton* event)
-{
- DirectWindow * self;
- gboolean result = FALSE;
- GdkEventType _tmp0_;
-#line 77 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow);
-#line 77 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 78 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = event->type;
-#line 78 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- if (_tmp0_ == GDK_2BUTTON_PRESS) {
-#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 81 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = TRUE;
-#line 81 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 851 "DirectWindow.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = FALSE;
-#line 84 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 857 "DirectWindow.c"
-}
-
-
-static gboolean
-direct_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- DirectWindow * self;
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- gboolean _tmp2_ = FALSE;
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow);
-#line 87 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp0_ = event->keyval;
-#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- if (g_strcmp0 (_tmp1_, "Escape") == 0) {
-#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 92 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = TRUE;
-#line 92 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 886 "DirectWindow.c"
- }
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- if (GTK_WIDGET_CLASS (direct_window_parent_class)->key_press_event != NULL) {
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp2_ = 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), event);
-#line 892 "DirectWindow.c"
- } else {
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _tmp2_ = FALSE;
-#line 896 "DirectWindow.c"
- }
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- result = _tmp2_;
-#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- return result;
-#line 902 "DirectWindow.c"
-}
-
-
-static void
-direct_window_class_init (DirectWindowClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- direct_window_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- g_type_class_add_private (klass, sizeof (DirectWindowPrivate));
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- ((AppWindowClass *) klass)->on_fullscreen = (void (*) (AppWindow *)) direct_window_real_on_fullscreen;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- ((AppWindowClass *) klass)->get_app_role = (gchar* (*) (AppWindow *)) direct_window_real_get_app_role;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- ((AppWindowClass *) klass)->on_quit = (void (*) (AppWindow *)) direct_window_real_on_quit;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- ((GtkWidgetClass *) klass)->delete_event = (gboolean (*) (GtkWidget *, GdkEventAny*)) direct_window_real_delete_event;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) direct_window_real_button_press_event;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) 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 927 "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 936 "DirectWindow.c"
-}
-
-
-static void
-direct_window_finalize (GObject * obj)
-{
- DirectWindow * self;
-#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_WINDOW, DirectWindow);
-#line 8 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala"
- _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 950 "DirectWindow.c"
-}
-
-
-GType
-direct_window_get_type (void)
-{
- static volatile gsize direct_window_type_id__volatile = 0;
- if (g_once_init_enter (&direct_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (DirectWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectWindow), 0, (GInstanceInitFunc) direct_window_instance_init, NULL };
- GType direct_window_type_id;
- direct_window_type_id = g_type_register_static (TYPE_APP_WINDOW, "DirectWindow", &g_define_type_info, 0);
- g_once_init_leave (&direct_window_type_id__volatile, direct_window_type_id);
- }
- return direct_window_type_id__volatile;
-}
-
-
-
diff --git a/src/editing_tools/EditingTools.c b/src/editing_tools/EditingTools.c
deleted file mode 100644
index 629c926..0000000
--- a/src/editing_tools/EditingTools.c
+++ /dev/null
@@ -1,19536 +0,0 @@
-/* EditingTools.c generated by valac 0.40.4, the Vala compiler
- * generated from EditingTools.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* This file is the master unit file for the EditingTools unit. It should be edited to include
- * whatever code is deemed necessary.
- *
- * The init() and terminate() methods are mandatory.
- *
- * If the unit needs to be configured prior to initialization, add the proper parameters to
- * the preconfigure() method, implement it, and ensure in init() that it's been called.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <cairo.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <glib/gi18n-lib.h>
-#include <gee.h>
-#include "shotwell-graphics-processor.h"
-#include <gobject/gvaluecollector.h>
-
-
-#define EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW (editing_tools_editing_tool_window_get_type ())
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow))
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass))
-#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW))
-#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW))
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass))
-
-typedef struct _EditingToolsEditingToolWindow EditingToolsEditingToolWindow;
-typedef struct _EditingToolsEditingToolWindowClass EditingToolsEditingToolWindowClass;
-typedef struct _EditingToolsEditingToolWindowPrivate EditingToolsEditingToolWindowPrivate;
-enum {
- EDITING_TOOLS_EDITING_TOOL_WINDOW_0_PROPERTY,
- EDITING_TOOLS_EDITING_TOOL_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_editing_tool_window_properties[EDITING_TOOLS_EDITING_TOOL_WINDOW_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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 EDITING_TOOLS_TYPE_PHOTO_CANVAS (editing_tools_photo_canvas_get_type ())
-#define EDITING_TOOLS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas))
-#define EDITING_TOOLS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass))
-#define EDITING_TOOLS_IS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS))
-#define EDITING_TOOLS_IS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS))
-#define EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass))
-
-typedef struct _EditingToolsPhotoCanvas EditingToolsPhotoCanvas;
-typedef struct _EditingToolsPhotoCanvasClass EditingToolsPhotoCanvasClass;
-typedef struct _EditingToolsPhotoCanvasPrivate EditingToolsPhotoCanvasPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
-#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-
-#define TYPE_BOX (box_get_type ())
-typedef struct _Box Box;
-typedef struct _EditingToolsParamSpecPhotoCanvas EditingToolsParamSpecPhotoCanvas;
-enum {
- EDITING_TOOLS_PHOTO_CANVAS_NEW_SURFACE_SIGNAL,
- EDITING_TOOLS_PHOTO_CANVAS_RESIZED_SCALED_PIXBUF_SIGNAL,
- EDITING_TOOLS_PHOTO_CANVAS_NUM_SIGNALS
-};
-static guint editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_NUM_SIGNALS] = {0};
-
-#define EDITING_TOOLS_TYPE_EDITING_TOOL (editing_tools_editing_tool_get_type ())
-#define EDITING_TOOLS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool))
-#define EDITING_TOOLS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass))
-#define EDITING_TOOLS_IS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL))
-#define EDITING_TOOLS_IS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL))
-#define EDITING_TOOLS_EDITING_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass))
-
-typedef struct _EditingToolsEditingTool EditingToolsEditingTool;
-typedef struct _EditingToolsEditingToolClass EditingToolsEditingToolClass;
-typedef struct _EditingToolsEditingToolPrivate EditingToolsEditingToolPrivate;
-#define _editing_tools_photo_canvas_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_photo_canvas_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-typedef struct _EditingToolsParamSpecEditingTool EditingToolsParamSpecEditingTool;
-enum {
- EDITING_TOOLS_EDITING_TOOL_ACTIVATED_SIGNAL,
- EDITING_TOOLS_EDITING_TOOL_DEACTIVATED_SIGNAL,
- EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL,
- EDITING_TOOLS_EDITING_TOOL_CANCELLED_SIGNAL,
- EDITING_TOOLS_EDITING_TOOL_ABORTED_SIGNAL,
- EDITING_TOOLS_EDITING_TOOL_NUM_SIGNALS
-};
-static guint editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_NUM_SIGNALS] = {0};
-
-#define EDITING_TOOLS_TYPE_CROP_TOOL (editing_tools_crop_tool_get_type ())
-#define EDITING_TOOLS_CROP_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool))
-#define EDITING_TOOLS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolClass))
-#define EDITING_TOOLS_IS_CROP_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_CROP_TOOL))
-#define EDITING_TOOLS_IS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_CROP_TOOL))
-#define EDITING_TOOLS_CROP_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolClass))
-
-typedef struct _EditingToolsCropTool EditingToolsCropTool;
-typedef struct _EditingToolsCropToolClass EditingToolsCropToolClass;
-typedef struct _EditingToolsCropToolPrivate EditingToolsCropToolPrivate;
-
-#define EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW (editing_tools_crop_tool_crop_tool_window_get_type ())
-#define EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, EditingToolsCropToolCropToolWindow))
-#define EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, EditingToolsCropToolCropToolWindowClass))
-#define EDITING_TOOLS_CROP_TOOL_IS_CROP_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW))
-#define EDITING_TOOLS_CROP_TOOL_IS_CROP_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW))
-#define EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, EditingToolsCropToolCropToolWindowClass))
-
-typedef struct _EditingToolsCropToolCropToolWindow EditingToolsCropToolCropToolWindow;
-typedef struct _EditingToolsCropToolCropToolWindowClass EditingToolsCropToolCropToolWindowClass;
-
-#define TYPE_BOX_LOCATION (box_location_get_type ())
-
-#define EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION (editing_tools_crop_tool_constraint_description_get_type ())
-#define EDITING_TOOLS_CROP_TOOL_CONSTRAINT_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, EditingToolsCropToolConstraintDescription))
-#define EDITING_TOOLS_CROP_TOOL_CONSTRAINT_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, EditingToolsCropToolConstraintDescriptionClass))
-#define EDITING_TOOLS_CROP_TOOL_IS_CONSTRAINT_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION))
-#define EDITING_TOOLS_CROP_TOOL_IS_CONSTRAINT_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION))
-#define EDITING_TOOLS_CROP_TOOL_CONSTRAINT_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, EditingToolsCropToolConstraintDescriptionClass))
-
-typedef struct _EditingToolsCropToolConstraintDescription EditingToolsCropToolConstraintDescription;
-typedef struct _EditingToolsCropToolConstraintDescriptionClass EditingToolsCropToolConstraintDescriptionClass;
-
-#define EDITING_TOOLS_CROP_TOOL_TYPE_RETICLE_ORIENTATION (editing_tools_crop_tool_reticle_orientation_get_type ())
-
-#define EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_MODE (editing_tools_crop_tool_constraint_mode_get_type ())
-typedef struct _EditingToolsCropToolConstraintDescriptionPrivate EditingToolsCropToolConstraintDescriptionPrivate;
-#define _editing_tools_crop_tool_constraint_description_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_crop_tool_constraint_description_unref (var), NULL)))
-typedef struct _EditingToolsCropToolCropToolWindowPrivate EditingToolsCropToolCropToolWindowPrivate;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ())
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ())
-#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand))
-#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-
-typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
-typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
-
-#define TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ())
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand))
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass))
-#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND))
-#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND))
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass))
-
-typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand;
-typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass;
-
-#define TYPE_CROP_COMMAND (crop_command_get_type ())
-#define CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CROP_COMMAND, CropCommand))
-#define CROP_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CROP_COMMAND, CropCommandClass))
-#define IS_CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CROP_COMMAND))
-#define IS_CROP_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CROP_COMMAND))
-#define CROP_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CROP_COMMAND, CropCommandClass))
-
-typedef struct _CropCommand CropCommand;
-typedef struct _CropCommandClass CropCommandClass;
-
-#define TYPE_BOX_COMPLEMENTS (box_complements_get_type ())
-typedef struct _EditingToolsCropToolParamSpecConstraintDescription EditingToolsCropToolParamSpecConstraintDescription;
-enum {
- EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_0_PROPERTY,
- EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_crop_tool_crop_tool_window_properties[EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_NUM_PROPERTIES];
-
-#define EDITING_TOOLS_TYPE_REDEYE_INSTANCE (editing_tools_redeye_instance_get_type ())
-typedef struct _EditingToolsRedeyeInstance EditingToolsRedeyeInstance;
-
-#define EDITING_TOOLS_TYPE_REDEYE_TOOL (editing_tools_redeye_tool_get_type ())
-#define EDITING_TOOLS_REDEYE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool))
-#define EDITING_TOOLS_REDEYE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolClass))
-#define EDITING_TOOLS_IS_REDEYE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL))
-#define EDITING_TOOLS_IS_REDEYE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_REDEYE_TOOL))
-#define EDITING_TOOLS_REDEYE_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolClass))
-
-typedef struct _EditingToolsRedeyeTool EditingToolsRedeyeTool;
-typedef struct _EditingToolsRedeyeToolClass EditingToolsRedeyeToolClass;
-typedef struct _EditingToolsRedeyeToolPrivate EditingToolsRedeyeToolPrivate;
-
-#define EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW (editing_tools_redeye_tool_redeye_tool_window_get_type ())
-#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindow))
-#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindowClass))
-#define EDITING_TOOLS_REDEYE_TOOL_IS_REDEYE_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW))
-#define EDITING_TOOLS_REDEYE_TOOL_IS_REDEYE_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW))
-#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindowClass))
-
-typedef struct _EditingToolsRedeyeToolRedeyeToolWindow EditingToolsRedeyeToolRedeyeToolWindow;
-typedef struct _EditingToolsRedeyeToolRedeyeToolWindowClass EditingToolsRedeyeToolRedeyeToolWindowClass;
-typedef struct _EditingToolsRedeyeToolRedeyeToolWindowPrivate EditingToolsRedeyeToolRedeyeToolWindowPrivate;
-
-#define TYPE_REDEYE_COMMAND (redeye_command_get_type ())
-#define REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REDEYE_COMMAND, RedeyeCommand))
-#define REDEYE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REDEYE_COMMAND, RedeyeCommandClass))
-#define IS_REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REDEYE_COMMAND))
-#define IS_REDEYE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REDEYE_COMMAND))
-#define REDEYE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REDEYE_COMMAND, RedeyeCommandClass))
-
-typedef struct _RedeyeCommand RedeyeCommand;
-typedef struct _RedeyeCommandClass RedeyeCommandClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-enum {
- EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_0_PROPERTY,
- EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_redeye_tool_redeye_tool_window_properties[EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_NUM_PROPERTIES];
-
-#define EDITING_TOOLS_TYPE_ADJUST_TOOL (editing_tools_adjust_tool_get_type ())
-#define EDITING_TOOLS_ADJUST_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool))
-#define EDITING_TOOLS_ADJUST_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolClass))
-#define EDITING_TOOLS_IS_ADJUST_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL))
-#define EDITING_TOOLS_IS_ADJUST_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_ADJUST_TOOL))
-#define EDITING_TOOLS_ADJUST_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolClass))
-
-typedef struct _EditingToolsAdjustTool EditingToolsAdjustTool;
-typedef struct _EditingToolsAdjustToolClass EditingToolsAdjustToolClass;
-typedef struct _EditingToolsAdjustToolPrivate EditingToolsAdjustToolPrivate;
-
-#define EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW (editing_tools_adjust_tool_adjust_tool_window_get_type ())
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, EditingToolsAdjustToolAdjustToolWindow))
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, EditingToolsAdjustToolAdjustToolWindowClass))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW))
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, EditingToolsAdjustToolAdjustToolWindowClass))
-
-typedef struct _EditingToolsAdjustToolAdjustToolWindow EditingToolsAdjustToolAdjustToolWindow;
-typedef struct _EditingToolsAdjustToolAdjustToolWindowClass EditingToolsAdjustToolAdjustToolWindowClass;
-
-#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
-#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
-#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
-#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
-#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-
-typedef struct _OneShotScheduler OneShotScheduler;
-typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
-#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL)))
-#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
-#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL)))
-typedef struct _EditingToolsAdjustToolAdjustToolWindowPrivate EditingToolsAdjustToolAdjustToolWindowPrivate;
-
-#define TYPE_RGB_HISTOGRAM_MANIPULATOR (rgb_histogram_manipulator_get_type ())
-#define RGB_HISTOGRAM_MANIPULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator))
-#define RGB_HISTOGRAM_MANIPULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorClass))
-#define IS_RGB_HISTOGRAM_MANIPULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR))
-#define IS_RGB_HISTOGRAM_MANIPULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_HISTOGRAM_MANIPULATOR))
-#define RGB_HISTOGRAM_MANIPULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorClass))
-
-typedef struct _RGBHistogramManipulator RGBHistogramManipulator;
-typedef struct _RGBHistogramManipulatorClass RGBHistogramManipulatorClass;
-#define _pixel_transformation_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_unref (var), NULL)))
-
-#define EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND (editing_tools_adjust_tool_adjust_tool_command_get_type ())
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand))
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommandClass))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND))
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommandClass))
-
-typedef struct _EditingToolsAdjustToolAdjustToolCommand EditingToolsAdjustToolAdjustToolCommand;
-typedef struct _EditingToolsAdjustToolAdjustToolCommandClass EditingToolsAdjustToolAdjustToolCommandClass;
-
-#define EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND (editing_tools_adjust_tool_adjust_reset_command_get_type ())
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand))
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommandClass))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_RESET_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_RESET_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND))
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommandClass))
-
-typedef struct _EditingToolsAdjustToolAdjustResetCommand EditingToolsAdjustToolAdjustResetCommand;
-typedef struct _EditingToolsAdjustToolAdjustResetCommandClass EditingToolsAdjustToolAdjustResetCommandClass;
-
-#define TYPE_ADJUST_COLORS_SINGLE_COMMAND (adjust_colors_single_command_get_type ())
-#define ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand))
-#define ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass))
-#define IS_ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND))
-#define IS_ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND))
-#define ADJUST_COLORS_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass))
-
-typedef struct _AdjustColorsSingleCommand AdjustColorsSingleCommand;
-typedef struct _AdjustColorsSingleCommandClass AdjustColorsSingleCommandClass;
-
-#define EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND (editing_tools_adjust_tool_slider_adjustment_command_get_type ())
-#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand))
-#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommandClass))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_SLIDER_ADJUSTMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_SLIDER_ADJUSTMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND))
-#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommandClass))
-
-typedef struct _EditingToolsAdjustToolSliderAdjustmentCommand EditingToolsAdjustToolSliderAdjustmentCommand;
-typedef struct _EditingToolsAdjustToolSliderAdjustmentCommandClass EditingToolsAdjustToolSliderAdjustmentCommandClass;
-
-#define EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND (editing_tools_adjust_tool_adjust_enhance_command_get_type ())
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand))
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommandClass))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_ENHANCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND))
-#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_ENHANCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND))
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommandClass))
-
-typedef struct _EditingToolsAdjustToolAdjustEnhanceCommand EditingToolsAdjustToolAdjustEnhanceCommand;
-typedef struct _EditingToolsAdjustToolAdjustEnhanceCommandClass EditingToolsAdjustToolAdjustEnhanceCommandClass;
-enum {
- EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_0_PROPERTY,
- EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_adjust_tool_adjust_tool_window_properties[EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_NUM_PROPERTIES];
-
-#define TYPE_COMMAND_DESCRIPTION (command_description_get_type ())
-#define COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescription))
-#define IS_COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_DESCRIPTION))
-#define COMMAND_DESCRIPTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescriptionIface))
-
-typedef struct _CommandDescription CommandDescription;
-typedef struct _CommandDescriptionIface CommandDescriptionIface;
-typedef struct _CommandPrivate CommandPrivate;
-typedef struct _EditingToolsAdjustToolAdjustToolCommandPrivate EditingToolsAdjustToolAdjustToolCommandPrivate;
-enum {
- EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_0_PROPERTY,
- EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_adjust_tool_adjust_tool_command_properties[EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_NUM_PROPERTIES];
-typedef struct _EditingToolsAdjustToolAdjustResetCommandPrivate EditingToolsAdjustToolAdjustResetCommandPrivate;
-enum {
- EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_0_PROPERTY,
- EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_adjust_tool_adjust_reset_command_properties[EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_NUM_PROPERTIES];
-typedef struct _EditingToolsAdjustToolSliderAdjustmentCommandPrivate EditingToolsAdjustToolSliderAdjustmentCommandPrivate;
-enum {
- EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_0_PROPERTY,
- EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_adjust_tool_slider_adjustment_command_properties[EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_NUM_PROPERTIES];
-typedef struct _EditingToolsAdjustToolAdjustEnhanceCommandPrivate EditingToolsAdjustToolAdjustEnhanceCommandPrivate;
-enum {
- EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_0_PROPERTY,
- EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_adjust_tool_adjust_enhance_command_properties[EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_NUM_PROPERTIES];
-
-#define TYPE_ENHANCE_SINGLE_COMMAND (enhance_single_command_get_type ())
-#define ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand))
-#define ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass))
-#define IS_ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_SINGLE_COMMAND))
-#define IS_ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_SINGLE_COMMAND))
-#define ENHANCE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass))
-
-typedef struct _EnhanceSingleCommand EnhanceSingleCommand;
-typedef struct _EnhanceSingleCommandClass EnhanceSingleCommandClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _EditingToolsEditingToolWindow {
- GtkWindow parent_instance;
- EditingToolsEditingToolWindowPrivate * priv;
-};
-
-struct _EditingToolsEditingToolWindowClass {
- GtkWindowClass parent_class;
-};
-
-struct _EditingToolsEditingToolWindowPrivate {
- GtkFrame* layout_frame;
- gboolean user_moved;
-};
-
-struct _EditingToolsPhotoCanvas {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EditingToolsPhotoCanvasPrivate * priv;
-};
-
-struct _EditingToolsPhotoCanvasClass {
- GTypeClass parent_class;
- void (*finalize) (EditingToolsPhotoCanvas *self);
- void (*repaint) (EditingToolsPhotoCanvas* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _EditingToolsPhotoCanvasPrivate {
- GtkWindow* container;
- GdkWindow* drawing_window;
- Photo* photo;
- cairo_t* default_ctx;
- Dimensions surface_dim;
- cairo_surface_t* scaled;
- GdkPixbuf* scaled_pixbuf;
- GdkRectangle scaled_position;
-};
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _Box {
- gint left;
- gint top;
- gint right;
- gint bottom;
-};
-
-struct _EditingToolsParamSpecPhotoCanvas {
- GParamSpec parent_instance;
-};
-
-struct _EditingToolsEditingTool {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EditingToolsEditingToolPrivate * priv;
- EditingToolsPhotoCanvas* canvas;
- cairo_surface_t* surface;
- gchar* name;
-};
-
-struct _EditingToolsEditingToolClass {
- GTypeClass parent_class;
- void (*finalize) (EditingToolsEditingTool *self);
- void (*activate) (EditingToolsEditingTool* self, EditingToolsPhotoCanvas* canvas);
- void (*deactivate) (EditingToolsEditingTool* self);
- EditingToolsEditingToolWindow* (*get_tool_window) (EditingToolsEditingTool* self);
- GdkPixbuf* (*get_display_pixbuf) (EditingToolsEditingTool* self, Scaling* scaling, Photo* photo, Dimensions* max_dim, GError** error);
- void (*on_left_click) (EditingToolsEditingTool* self, gint x, gint y);
- void (*on_left_released) (EditingToolsEditingTool* self, gint x, gint y);
- void (*on_motion) (EditingToolsEditingTool* self, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (EditingToolsEditingTool* self);
- gboolean (*on_keypress) (EditingToolsEditingTool* self, GdkEventKey* event);
- void (*paint) (EditingToolsEditingTool* self, cairo_t* ctx);
-};
-
-struct _EditingToolsEditingToolPrivate {
- EditingToolsEditingToolWindow* tool_window;
-};
-
-typedef EditingToolsEditingTool* (*EditingToolsEditingToolFactory) ();
-struct _EditingToolsParamSpecEditingTool {
- GParamSpec parent_instance;
-};
-
-struct _EditingToolsCropTool {
- EditingToolsEditingTool parent_instance;
- EditingToolsCropToolPrivate * priv;
-};
-
-struct _EditingToolsCropToolClass {
- EditingToolsEditingToolClass parent_class;
-};
-
-typedef enum {
- BOX_LOCATION_OUTSIDE,
- BOX_LOCATION_INSIDE,
- BOX_LOCATION_TOP_SIDE,
- BOX_LOCATION_LEFT_SIDE,
- BOX_LOCATION_RIGHT_SIDE,
- BOX_LOCATION_BOTTOM_SIDE,
- BOX_LOCATION_TOP_LEFT,
- BOX_LOCATION_BOTTOM_LEFT,
- BOX_LOCATION_TOP_RIGHT,
- BOX_LOCATION_BOTTOM_RIGHT
-} BoxLocation;
-
-typedef enum {
- EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE,
- EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT
-} EditingToolsCropToolReticleOrientation;
-
-typedef enum {
- EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL,
- EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM
-} EditingToolsCropToolConstraintMode;
-
-struct _EditingToolsCropToolPrivate {
- EditingToolsCropToolCropToolWindow* crop_tool_window;
- GdkCursorType current_cursor_type;
- BoxLocation in_manipulation;
- cairo_t* wide_black_ctx;
- cairo_t* wide_white_ctx;
- cairo_t* thin_white_ctx;
- cairo_t* text_ctx;
- cairo_surface_t* crop_surface;
- Box scaled_crop;
- gint last_grab_x;
- gint last_grab_y;
- EditingToolsCropToolConstraintDescription** constraints;
- gint constraints_length1;
- gint _constraints_size_;
- GtkListStore* constraint_list;
- EditingToolsCropToolReticleOrientation reticle_orientation;
- EditingToolsCropToolConstraintMode constraint_mode;
- gboolean entry_insert_in_progress;
- gfloat custom_aspect_ratio;
- gint custom_width;
- gint custom_height;
- gint custom_init_width;
- gint custom_init_height;
- gfloat pre_aspect_ratio;
-};
-
-struct _EditingToolsCropToolConstraintDescription {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EditingToolsCropToolConstraintDescriptionPrivate * priv;
- gchar* name;
- gint basis_width;
- gint basis_height;
- gboolean is_pivotable;
- gfloat aspect_ratio;
-};
-
-struct _EditingToolsCropToolConstraintDescriptionClass {
- GTypeClass parent_class;
- void (*finalize) (EditingToolsCropToolConstraintDescription *self);
-};
-
-struct _EditingToolsCropToolCropToolWindow {
- EditingToolsEditingToolWindow parent_instance;
- EditingToolsCropToolCropToolWindowPrivate * priv;
- GtkButton* ok_button;
- GtkButton* cancel_button;
- GtkComboBox* constraint_combo;
- GtkButton* pivot_reticle_button;
- GtkEntry* custom_width_entry;
- GtkEntry* custom_height_entry;
- GtkLabel* custom_mulsign_label;
- GtkEntry* most_recently_edited;
- GtkBox* response_layout;
- GtkBox* layout;
- gint normal_width;
- gint normal_height;
-};
-
-struct _EditingToolsCropToolCropToolWindowClass {
- EditingToolsEditingToolWindowClass parent_class;
-};
-
-typedef enum {
- BACKING_FETCH_MODE_SOURCE,
- BACKING_FETCH_MODE_BASELINE,
- BACKING_FETCH_MODE_MASTER,
- BACKING_FETCH_MODE_UNMODIFIED
-} BackingFetchMode;
-
-typedef enum {
- BOX_COMPLEMENTS_NONE,
- BOX_COMPLEMENTS_VERTICAL,
- BOX_COMPLEMENTS_HORIZONTAL,
- BOX_COMPLEMENTS_BOTH
-} BoxComplements;
-
-struct _EditingToolsCropToolParamSpecConstraintDescription {
- GParamSpec parent_instance;
-};
-
-struct _EditingToolsRedeyeInstance {
- GdkPoint center;
- gint radius;
-};
-
-struct _EditingToolsRedeyeTool {
- EditingToolsEditingTool parent_instance;
- EditingToolsRedeyeToolPrivate * priv;
-};
-
-struct _EditingToolsRedeyeToolClass {
- EditingToolsEditingToolClass parent_class;
-};
-
-struct _EditingToolsRedeyeToolPrivate {
- cairo_t* thin_white_ctx;
- cairo_t* wider_gray_ctx;
- EditingToolsRedeyeToolRedeyeToolWindow* redeye_tool_window;
- EditingToolsRedeyeInstance user_interaction_instance;
- gboolean is_reticle_move_in_progress;
- GdkPoint reticle_move_mouse_start_point;
- GdkPoint reticle_move_anchor;
- GdkCursor* cached_arrow_cursor;
- GdkCursor* cached_grab_cursor;
- GdkRectangle old_scaled_pixbuf_position;
- GdkPixbuf* current_pixbuf;
-};
-
-struct _EditingToolsRedeyeToolRedeyeToolWindow {
- EditingToolsEditingToolWindow parent_instance;
- EditingToolsRedeyeToolRedeyeToolWindowPrivate * priv;
- GtkButton* apply_button;
- GtkButton* close_button;
- GtkScale* slider;
-};
-
-struct _EditingToolsRedeyeToolRedeyeToolWindowClass {
- EditingToolsEditingToolWindowClass parent_class;
-};
-
-struct _EditingToolsRedeyeToolRedeyeToolWindowPrivate {
- GtkLabel* slider_label;
-};
-
-struct _EditingToolsAdjustTool {
- EditingToolsEditingTool parent_instance;
- EditingToolsAdjustToolPrivate * priv;
-};
-
-struct _EditingToolsAdjustToolClass {
- EditingToolsEditingToolClass parent_class;
-};
-
-struct _EditingToolsAdjustToolPrivate {
- EditingToolsAdjustToolAdjustToolWindow* adjust_tool_window;
- gboolean suppress_effect_redraw;
- GdkPixbuf* draw_to_pixbuf;
- GdkPixbuf* histogram_pixbuf;
- GdkPixbuf* virgin_histogram_pixbuf;
- PixelTransformer* transformer;
- PixelTransformer* histogram_transformer;
- PixelTransformationBundle* transformations;
- gfloat* fp_pixel_cache;
- gint fp_pixel_cache_length1;
- gint _fp_pixel_cache_size_;
- gboolean disable_histogram_refresh;
- OneShotScheduler* temperature_scheduler;
- OneShotScheduler* tint_scheduler;
- OneShotScheduler* contrast_scheduler;
- OneShotScheduler* saturation_scheduler;
- OneShotScheduler* exposure_scheduler;
- OneShotScheduler* shadows_scheduler;
- OneShotScheduler* highlights_scheduler;
-};
-
-struct _EditingToolsAdjustToolAdjustToolWindow {
- EditingToolsEditingToolWindow parent_instance;
- EditingToolsAdjustToolAdjustToolWindowPrivate * priv;
- GtkScale* exposure_slider;
- GtkScale* contrast_slider;
- GtkScale* saturation_slider;
- GtkScale* tint_slider;
- GtkScale* temperature_slider;
- GtkScale* shadows_slider;
- GtkScale* highlights_slider;
- GtkButton* ok_button;
- GtkButton* reset_button;
- GtkButton* cancel_button;
- RGBHistogramManipulator* histogram_manipulator;
-};
-
-struct _EditingToolsAdjustToolAdjustToolWindowClass {
- EditingToolsEditingToolWindowClass parent_class;
-};
-
-typedef void (*OneShotCallback) (void* user_data);
-struct _CommandDescriptionIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (CommandDescription* self);
- gchar* (*get_explanation) (CommandDescription* self);
-};
-
-struct _Command {
- GObject parent_instance;
- CommandPrivate * priv;
-};
-
-struct _CommandClass {
- GObjectClass parent_class;
- void (*prepare) (Command* self);
- void (*execute) (Command* self);
- void (*undo) (Command* self);
- void (*redo) (Command* self);
- gboolean (*compress) (Command* self, Command* command);
- gchar* (*get_name) (Command* self);
- gchar* (*get_explanation) (Command* self);
-};
-
-struct _EditingToolsAdjustToolAdjustToolCommand {
- Command parent_instance;
- EditingToolsAdjustToolAdjustToolCommandPrivate * priv;
- EditingToolsAdjustTool* owner;
-};
-
-struct _EditingToolsAdjustToolAdjustToolCommandClass {
- CommandClass parent_class;
-};
-
-struct _EditingToolsAdjustToolAdjustResetCommand {
- EditingToolsAdjustToolAdjustToolCommand parent_instance;
- EditingToolsAdjustToolAdjustResetCommandPrivate * priv;
-};
-
-struct _EditingToolsAdjustToolAdjustResetCommandClass {
- EditingToolsAdjustToolAdjustToolCommandClass parent_class;
-};
-
-struct _EditingToolsAdjustToolAdjustResetCommandPrivate {
- PixelTransformationBundle* original;
- PixelTransformationBundle* reset;
-};
-
-struct _EditingToolsAdjustToolSliderAdjustmentCommand {
- EditingToolsAdjustToolAdjustToolCommand parent_instance;
- EditingToolsAdjustToolSliderAdjustmentCommandPrivate * priv;
-};
-
-struct _EditingToolsAdjustToolSliderAdjustmentCommandClass {
- EditingToolsAdjustToolAdjustToolCommandClass parent_class;
-};
-
-struct _EditingToolsAdjustToolSliderAdjustmentCommandPrivate {
- PixelTransformationType transformation_type;
- PixelTransformation* new_transformation;
- PixelTransformation* old_transformation;
-};
-
-struct _EditingToolsAdjustToolAdjustEnhanceCommand {
- EditingToolsAdjustToolAdjustToolCommand parent_instance;
- EditingToolsAdjustToolAdjustEnhanceCommandPrivate * priv;
-};
-
-struct _EditingToolsAdjustToolAdjustEnhanceCommandClass {
- EditingToolsAdjustToolAdjustToolCommandClass parent_class;
-};
-
-struct _EditingToolsAdjustToolAdjustEnhanceCommandPrivate {
- Photo* photo;
- PixelTransformationBundle* original;
- PixelTransformationBundle* enhanced;
-};
-
-
-static gpointer editing_tools_editing_tool_window_parent_class = NULL;
-static gpointer editing_tools_photo_canvas_parent_class = NULL;
-static gpointer editing_tools_editing_tool_parent_class = NULL;
-static gpointer editing_tools_crop_tool_parent_class = NULL;
-static gpointer editing_tools_crop_tool_constraint_description_parent_class = NULL;
-static gpointer editing_tools_crop_tool_crop_tool_window_parent_class = NULL;
-static gpointer editing_tools_redeye_tool_parent_class = NULL;
-static gpointer editing_tools_redeye_tool_redeye_tool_window_parent_class = NULL;
-static gpointer editing_tools_adjust_tool_parent_class = NULL;
-static gpointer editing_tools_adjust_tool_adjust_tool_window_parent_class = NULL;
-static gpointer editing_tools_adjust_tool_adjust_tool_command_parent_class = NULL;
-static gpointer editing_tools_adjust_tool_adjust_reset_command_parent_class = NULL;
-static gpointer editing_tools_adjust_tool_slider_adjustment_command_parent_class = NULL;
-static gpointer editing_tools_adjust_tool_adjust_enhance_command_parent_class = NULL;
-
-void editing_tools_preconfigure (void);
-void editing_tools_init (GError** error);
-void editing_tools_terminate (void);
-GType editing_tools_editing_tool_window_get_type (void) G_GNUC_CONST;
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowPrivate))
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW_FRAME_BORDER 6
-EditingToolsEditingToolWindow* editing_tools_editing_tool_window_construct (GType object_type,
- GtkWindow* container);
-static void editing_tools_editing_tool_window_suppress_warnings (EditingToolsEditingToolWindow* self,
- const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message);
-static void _editing_tools_editing_tool_window_suppress_warnings_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self);
-static void editing_tools_editing_tool_window_real_add (GtkContainer* base,
- GtkWidget* widget);
-gboolean editing_tools_editing_tool_window_has_user_moved (EditingToolsEditingToolWindow* self);
-static gboolean editing_tools_editing_tool_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-static gboolean editing_tools_editing_tool_window_real_button_press_event (GtkWidget* base,
- GdkEventButton* event);
-static void editing_tools_editing_tool_window_real_realize (GtkWidget* base);
-#define RESOURCES_TRANSIENT_WINDOW_OPACITY 0.90
-static void editing_tools_editing_tool_window_finalize (GObject * obj);
-gpointer editing_tools_photo_canvas_ref (gpointer instance);
-void editing_tools_photo_canvas_unref (gpointer instance);
-GParamSpec* editing_tools_param_spec_photo_canvas (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void editing_tools_value_set_photo_canvas (GValue* value,
- gpointer v_object);
-void editing_tools_value_take_photo_canvas (GValue* value,
- gpointer v_object);
-gpointer editing_tools_value_get_photo_canvas (const GValue* value);
-GType editing_tools_photo_canvas_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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 dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-#define EDITING_TOOLS_PHOTO_CANVAS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasPrivate))
-EditingToolsPhotoCanvas* editing_tools_photo_canvas_construct (GType object_type,
- GtkWindow* container,
- GdkWindow* drawing_window,
- Photo* photo,
- cairo_t* default_ctx,
- Dimensions* surface_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position);
-static cairo_surface_t* editing_tools_photo_canvas_pixbuf_to_surface (EditingToolsPhotoCanvas* self,
- cairo_t* default_ctx,
- GdkPixbuf* pixbuf,
- GdkRectangle* pos);
-void editing_tools_photo_canvas_unscaled_to_raw_rect (EditingToolsPhotoCanvas* self,
- GdkRectangle* rectangle,
- GdkRectangle* result);
-void photo_unscaled_to_raw_rect (Photo* self,
- GdkRectangle* unscaled_rect,
- GdkRectangle* result);
-void editing_tools_photo_canvas_active_to_unscaled_point (EditingToolsPhotoCanvas* self,
- GdkPoint* active_point,
- GdkPoint* result);
-void editing_tools_photo_canvas_get_scaled_pixbuf_position (EditingToolsPhotoCanvas* self,
- GdkRectangle* result);
-GType photo_exception_get_type (void) G_GNUC_CONST;
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-void editing_tools_photo_canvas_active_to_unscaled_rect (EditingToolsPhotoCanvas* self,
- GdkRectangle* active_rect,
- GdkRectangle* result);
-void editing_tools_photo_canvas_user_to_active_point (EditingToolsPhotoCanvas* self,
- GdkPoint* user_point,
- GdkPoint* result);
-void editing_tools_photo_canvas_user_to_active_rect (EditingToolsPhotoCanvas* self,
- GdkRectangle* user_rect,
- GdkRectangle* result);
-Photo* editing_tools_photo_canvas_get_photo (EditingToolsPhotoCanvas* self);
-GtkWindow* editing_tools_photo_canvas_get_container (EditingToolsPhotoCanvas* self);
-GdkWindow* editing_tools_photo_canvas_get_drawing_window (EditingToolsPhotoCanvas* self);
-cairo_t* editing_tools_photo_canvas_get_default_ctx (EditingToolsPhotoCanvas* self);
-void editing_tools_photo_canvas_get_surface_dim (EditingToolsPhotoCanvas* self,
- Dimensions* result);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void editing_tools_photo_canvas_get_scaling (EditingToolsPhotoCanvas* self,
- Scaling* result);
-void scaling_for_viewport (Dimensions* viewport,
- gboolean scale_up,
- Scaling* result);
-void editing_tools_photo_canvas_set_surface (EditingToolsPhotoCanvas* self,
- cairo_t* default_ctx,
- Dimensions* surface_dim);
-cairo_surface_t* editing_tools_photo_canvas_get_scaled_surface (EditingToolsPhotoCanvas* self);
-GdkPixbuf* editing_tools_photo_canvas_get_scaled_pixbuf (EditingToolsPhotoCanvas* self);
-void editing_tools_photo_canvas_resized_pixbuf (EditingToolsPhotoCanvas* self,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position);
-void editing_tools_photo_canvas_repaint (EditingToolsPhotoCanvas* self);
-static void editing_tools_photo_canvas_real_repaint (EditingToolsPhotoCanvas* self);
-void editing_tools_photo_canvas_paint_pixbuf (EditingToolsPhotoCanvas* self,
- GdkPixbuf* pixbuf);
-void set_source_color_from_string (cairo_t* ctx,
- const gchar* spec);
-void paint_pixmap_with_background (cairo_t* ctx,
- GdkPixbuf* pixbuf,
- gint x,
- gint y);
-void editing_tools_photo_canvas_paint_surface (EditingToolsPhotoCanvas* self,
- cairo_surface_t* surface,
- gboolean over);
-GType box_get_type (void) G_GNUC_CONST;
-Box* box_dup (const Box* self);
-void box_free (Box* self);
-void editing_tools_photo_canvas_paint_surface_area (EditingToolsPhotoCanvas* self,
- cairo_surface_t* surface,
- Box* source_area,
- gboolean over);
-gint box_get_width (Box *self);
-gint box_get_height (Box *self);
-void editing_tools_photo_canvas_draw_box (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- Box* box);
-void box_get_rectangle (Box *self,
- GdkRectangle* result);
-void editing_tools_photo_canvas_draw_text (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- const gchar* text,
- gint x,
- gint y,
- gboolean use_scaled_pos);
-#define RESOURCES_ONIMAGE_FONT_BACKGROUND "rgba(255,255,255,0.5)"
-#define RESOURCES_ONIMAGE_FONT_COLOR "#000000"
-void editing_tools_photo_canvas_draw_horizontal_line (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- gint x,
- gint y,
- gint width,
- gboolean use_scaled_pos);
-void editing_tools_photo_canvas_draw_vertical_line (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- gint x,
- gint y,
- gint height,
- gboolean use_scaled_pos);
-void editing_tools_photo_canvas_erase_horizontal_line (EditingToolsPhotoCanvas* self,
- gint x,
- gint y,
- gint width);
-void editing_tools_photo_canvas_draw_circle (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- gint active_center_x,
- gint active_center_y,
- gint radius);
-void editing_tools_photo_canvas_erase_vertical_line (EditingToolsPhotoCanvas* self,
- gint x,
- gint y,
- gint height);
-void editing_tools_photo_canvas_erase_box (EditingToolsPhotoCanvas* self,
- Box* box);
-void editing_tools_photo_canvas_invalidate_area (EditingToolsPhotoCanvas* self,
- Box* area);
-static void g_cclosure_user_marshal_VOID__POINTER_BOXED (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__BOXED_OBJECT_BOXED (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void editing_tools_photo_canvas_finalize (EditingToolsPhotoCanvas * obj);
-gpointer editing_tools_editing_tool_ref (gpointer instance);
-void editing_tools_editing_tool_unref (gpointer instance);
-GParamSpec* editing_tools_param_spec_editing_tool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void editing_tools_value_set_editing_tool (GValue* value,
- gpointer v_object);
-void editing_tools_value_take_editing_tool (GValue* value,
- gpointer v_object);
-gpointer editing_tools_value_get_editing_tool (const GValue* value);
-GType editing_tools_editing_tool_get_type (void) G_GNUC_CONST;
-#define EDITING_TOOLS_EDITING_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolPrivate))
-EditingToolsEditingTool* editing_tools_editing_tool_construct (GType object_type,
- const gchar* name);
-void editing_tools_editing_tool_activate (EditingToolsEditingTool* self,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_editing_tool_real_activate (EditingToolsEditingTool* self,
- EditingToolsPhotoCanvas* canvas);
-EditingToolsEditingToolWindow* editing_tools_editing_tool_get_tool_window (EditingToolsEditingTool* self);
-gboolean editing_tools_editing_tool_on_keypress (EditingToolsEditingTool* self,
- GdkEventKey* event);
-static gboolean _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event (GtkWidget* _sender,
- GdkEventKey* event,
- gpointer self);
-void editing_tools_editing_tool_deactivate (EditingToolsEditingTool* self);
-static void editing_tools_editing_tool_real_deactivate (EditingToolsEditingTool* self);
-gboolean editing_tools_editing_tool_is_activated (EditingToolsEditingTool* self);
-static EditingToolsEditingToolWindow* editing_tools_editing_tool_real_get_tool_window (EditingToolsEditingTool* self);
-GdkPixbuf* editing_tools_editing_tool_get_display_pixbuf (EditingToolsEditingTool* self,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error);
-static GdkPixbuf* editing_tools_editing_tool_real_get_display_pixbuf (EditingToolsEditingTool* self,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-void editing_tools_editing_tool_on_left_click (EditingToolsEditingTool* self,
- gint x,
- gint y);
-static void editing_tools_editing_tool_real_on_left_click (EditingToolsEditingTool* self,
- gint x,
- gint y);
-void editing_tools_editing_tool_on_left_released (EditingToolsEditingTool* self,
- gint x,
- gint y);
-static void editing_tools_editing_tool_real_on_left_released (EditingToolsEditingTool* self,
- gint x,
- gint y);
-void editing_tools_editing_tool_on_motion (EditingToolsEditingTool* self,
- gint x,
- gint y,
- GdkModifierType mask);
-static void editing_tools_editing_tool_real_on_motion (EditingToolsEditingTool* self,
- gint x,
- gint y,
- GdkModifierType mask);
-gboolean editing_tools_editing_tool_on_leave_notify_event (EditingToolsEditingTool* self);
-static gboolean editing_tools_editing_tool_real_on_leave_notify_event (EditingToolsEditingTool* self);
-static gboolean editing_tools_editing_tool_real_on_keypress (EditingToolsEditingTool* self,
- GdkEventKey* event);
-void editing_tools_editing_tool_notify_cancel (EditingToolsEditingTool* self);
-void editing_tools_editing_tool_paint (EditingToolsEditingTool* self,
- cairo_t* ctx);
-static void editing_tools_editing_tool_real_paint (EditingToolsEditingTool* self,
- cairo_t* ctx);
-GType command_get_type (void) G_GNUC_CONST;
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOXED_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void editing_tools_editing_tool_finalize (EditingToolsEditingTool * obj);
-GType editing_tools_crop_tool_get_type (void) G_GNUC_CONST;
-static GType editing_tools_crop_tool_crop_tool_window_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType box_location_get_type (void) G_GNUC_CONST;
-static gpointer editing_tools_crop_tool_constraint_description_ref (gpointer instance);
-static void editing_tools_crop_tool_constraint_description_unref (gpointer instance);
-static GParamSpec* editing_tools_crop_tool_param_spec_constraint_description (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void editing_tools_crop_tool_value_set_constraint_description (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void editing_tools_crop_tool_value_take_constraint_description (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer editing_tools_crop_tool_value_get_constraint_description (const GValue* value) G_GNUC_UNUSED;
-static GType editing_tools_crop_tool_constraint_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static GType editing_tools_crop_tool_reticle_orientation_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static GType editing_tools_crop_tool_constraint_mode_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define EDITING_TOOLS_CROP_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolPrivate))
-static EditingToolsCropToolReticleOrientation editing_tools_crop_tool_reticle_orientation_toggle (EditingToolsCropToolReticleOrientation self);
-static EditingToolsCropToolConstraintDescription** editing_tools_crop_tool_create_constraints (int* result_length1);
-static GtkListStore* editing_tools_crop_tool_create_constraint_list (EditingToolsCropToolConstraintDescription** constraint_data,
- int constraint_data_length1);
-#define EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO (-1.0f)
-#define EDITING_TOOLS_CROP_TOOL_CROP_INIT_X_PCT 0.15
-#define EDITING_TOOLS_CROP_TOOL_CROP_INIT_Y_PCT 0.15
-#define EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE 8
-#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_SATURATION 0.00f
-#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_RED_SHIFT -32
-#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_GREEN_SHIFT -32
-#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_BLUE_SHIFT -32
-#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_ALPHA_SHIFT 0
-#define EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO (-2.0f)
-#define EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO (-3.0f)
-#define EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO (-4.0f)
-#define EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS (-5.0f)
-#define EDITING_TOOLS_CROP_TOOL_SEPARATOR (-6.0f)
-#define EDITING_TOOLS_CROP_TOOL_MIN_ASPECT_RATIO (1.0f / 64.0f)
-#define EDITING_TOOLS_CROP_TOOL_MAX_ASPECT_RATIO 64.0f
-static EditingToolsCropTool* editing_tools_crop_tool_new (void);
-static EditingToolsCropTool* editing_tools_crop_tool_construct (GType object_type);
-EditingToolsCropTool* editing_tools_crop_tool_factory (void);
-gboolean editing_tools_crop_tool_is_available (Photo* photo,
- Scaling* scaling);
-void scaling_get_scaled_dimensions (Scaling *self,
- Dimensions* original,
- Dimensions* result);
-void photo_get_original_dimensions (Photo* self,
- Dimensions* result);
-static EditingToolsCropToolConstraintDescription* editing_tools_crop_tool_constraint_description_new (const gchar* new_name,
- gint new_basis_width,
- gint new_basis_height,
- gboolean new_pivotable,
- gfloat new_aspect_ratio);
-static EditingToolsCropToolConstraintDescription* editing_tools_crop_tool_constraint_description_construct (GType object_type,
- const gchar* new_name,
- gint new_basis_width,
- gint new_basis_height,
- gboolean new_pivotable,
- gfloat new_aspect_ratio);
-static void _vala_array_add7 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add8 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add9 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add10 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add11 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add12 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add13 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add14 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add15 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add16 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add17 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add18 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add19 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add20 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add21 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add22 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add23 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add24 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add25 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add26 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add27 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add28 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add29 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add30 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add31 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add32 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add33 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add34 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void _vala_array_add35 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value);
-static void editing_tools_crop_tool_update_pivot_button_state (EditingToolsCropTool* self);
-static EditingToolsCropToolConstraintDescription* editing_tools_crop_tool_get_selected_constraint (EditingToolsCropTool* self);
-static gboolean editing_tools_crop_tool_on_width_entry_focus_out (EditingToolsCropTool* self,
- GdkEventFocus* event);
-static gboolean editing_tools_crop_tool_on_custom_entry_focus_out (EditingToolsCropTool* self,
- GdkEventFocus* event);
-static gboolean editing_tools_crop_tool_on_height_entry_focus_out (EditingToolsCropTool* self,
- GdkEventFocus* event);
-static void editing_tools_crop_tool_constrain_crop (EditingToolsCropTool* self,
- Box* crop,
- Box* result);
-static void editing_tools_crop_tool_crop_resized (EditingToolsCropTool* self,
- Box* new_crop);
-static void editing_tools_crop_tool_on_width_insert_text (EditingToolsCropTool* self,
- const gchar* text,
- gint length,
- gint* position);
-static void editing_tools_crop_tool_on_entry_insert_text (EditingToolsCropTool* self,
- GtkEntry* sender,
- const gchar* text,
- gint length,
- gint* position);
-static void editing_tools_crop_tool_on_height_insert_text (EditingToolsCropTool* self,
- const gchar* text,
- gint length,
- gint* position);
-static gfloat editing_tools_crop_tool_get_constraint_aspect_ratio (EditingToolsCropTool* self);
-static gfloat editing_tools_crop_tool_get_constraint_aspect_ratio_for_constraint (EditingToolsCropTool* self,
- EditingToolsCropToolConstraintDescription* constraint,
- Photo* photo);
-static void editing_tools_crop_tool_constraint_changed (EditingToolsCropTool* self);
-static void editing_tools_crop_tool_set_custom_constraint_mode (EditingToolsCropTool* self);
-static void editing_tools_crop_tool_set_normal_constraint_mode (EditingToolsCropTool* self);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gint configuration_facade_get_last_crop_width (ConfigurationFacade* self);
-gint configuration_facade_get_last_crop_height (ConfigurationFacade* self);
-void box_adjust_height (Box *self,
- gint height);
-void box_adjust_width (Box *self,
- gint width);
-static void editing_tools_crop_tool_get_photo_dimensions (EditingToolsCropTool* self,
- Dimensions* result);
-gboolean photo_get_straighten (Photo* self,
- gdouble* theta);
-void clamp_inside_rotated_image (Box* src,
- gint img_w,
- gint img_h,
- gdouble angle_deg,
- gboolean preserve_geom,
- Box* result);
-static EditingToolsCropToolConstraintDescription* editing_tools_crop_tool_get_last_constraint (EditingToolsCropTool* self,
- gint* index);
-gint configuration_facade_get_last_crop_menu_choice (ConfigurationFacade* self);
-static void editing_tools_crop_tool_real_activate (EditingToolsEditingTool* base,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_crop_tool_bind_canvas_handlers (EditingToolsCropTool* self,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_crop_tool_prepare_ctx (EditingToolsCropTool* self,
- cairo_t* ctx,
- Dimensions* dim);
-static EditingToolsCropToolCropToolWindow* editing_tools_crop_tool_crop_tool_window_new (GtkWindow* container);
-static EditingToolsCropToolCropToolWindow* editing_tools_crop_tool_crop_tool_window_construct (GType object_type,
- GtkWindow* container);
-gboolean photo_has_crop (Photo* self);
-static gboolean editing_tools_crop_tool_constraint_description_is_separator (EditingToolsCropToolConstraintDescription* self);
-static void editing_tools_crop_tool_bind_window_handlers (EditingToolsCropTool* self);
-gboolean photo_get_crop (Photo* self,
- Box* crop,
- PhotoException exceptions);
-void box_init (Box *self,
- gint left,
- gint top,
- gint right,
- gint bottom);
-void box_get_scaled_similar (Box *self,
- Dimensions* original,
- Dimensions* scaled,
- Box* result);
-void dimensions_for_rectangle (GdkRectangle* rect,
- Dimensions* result);
-static void _editing_tools_crop_tool_prepare_ctx_editing_tools_photo_canvas_new_surface (EditingToolsPhotoCanvas* _sender,
- cairo_t* ctx,
- Dimensions* dim,
- gpointer self);
-static void editing_tools_crop_tool_on_resized_pixbuf (EditingToolsCropTool* self,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position);
-static void _editing_tools_crop_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position,
- gpointer self);
-static void editing_tools_crop_tool_unbind_canvas_handlers (EditingToolsCropTool* self,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_crop_tool_on_crop_ok (EditingToolsCropTool* self);
-static void _editing_tools_crop_tool_on_crop_ok_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void _editing_tools_editing_tool_notify_cancel_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void _editing_tools_crop_tool_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void editing_tools_crop_tool_on_pivot_button_clicked (EditingToolsCropTool* self);
-static void _editing_tools_crop_tool_on_pivot_button_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static gboolean _editing_tools_crop_tool_on_width_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self);
-static gboolean _editing_tools_crop_tool_on_height_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self);
-static void _editing_tools_crop_tool_on_width_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self);
-static void _editing_tools_crop_tool_on_height_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self);
-static void editing_tools_crop_tool_unbind_window_handlers (EditingToolsCropTool* self);
-static gboolean editing_tools_crop_tool_real_on_keypress (EditingToolsEditingTool* base,
- GdkEventKey* event);
-static void editing_tools_crop_tool_real_deactivate (EditingToolsEditingTool* base);
-static EditingToolsEditingToolWindow* editing_tools_crop_tool_real_get_tool_window (EditingToolsEditingTool* base);
-static GdkPixbuf* editing_tools_crop_tool_real_get_display_pixbuf (EditingToolsEditingTool* base,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error);
-GType backing_fetch_mode_get_type (void) G_GNUC_CONST;
-GdkPixbuf* photo_get_pixbuf_with_options (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- BackingFetchMode fetch_mode,
- GError** error);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-static void editing_tools_crop_tool_real_on_left_click (EditingToolsEditingTool* base,
- gint x,
- gint y);
-void box_get_offset (Box *self,
- gint xofs,
- gint yofs,
- Box* result);
-BoxLocation box_approx_location (Box *self,
- gint x,
- gint y);
-static void editing_tools_crop_tool_real_on_left_released (EditingToolsEditingTool* base,
- gint x,
- gint y);
-static void editing_tools_crop_tool_update_cursor (EditingToolsCropTool* self,
- gint x,
- gint y);
-static void editing_tools_crop_tool_real_on_motion (EditingToolsEditingTool* base,
- gint x,
- gint y,
- GdkModifierType mask);
-static gboolean editing_tools_crop_tool_on_canvas_manipulation (EditingToolsCropTool* self,
- gint x,
- gint y);
-static void editing_tools_crop_tool_real_paint (EditingToolsEditingTool* base,
- cairo_t* default_ctx);
-static void editing_tools_crop_tool_paint_crop_tool (EditingToolsCropTool* self,
- Box* crop);
-void configuration_facade_set_last_crop_menu_choice (ConfigurationFacade* self,
- gint choice);
-void configuration_facade_set_last_crop_width (ConfigurationFacade* self,
- gint choice);
-void configuration_facade_set_last_crop_height (ConfigurationFacade* self,
- gint choice);
-#define RESOURCES_CROP_LABEL _ ("Crop")
-#define RESOURCES_CROP_TOOLTIP _ ("Crop the photo’s size")
-CropCommand* crop_command_new (Photo* photo,
- Box* crop,
- const gchar* name,
- const gchar* explanation);
-CropCommand* crop_command_construct (GType object_type,
- Photo* photo,
- Box* crop,
- const gchar* name,
- const gchar* explanation);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType single_data_source_command_get_type (void) G_GNUC_CONST;
-GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST;
-GType crop_command_get_type (void) G_GNUC_CONST;
-void box_get_dimensions (Box *self,
- Dimensions* result);
-static gint editing_tools_crop_tool_eval_radial_line (EditingToolsCropTool* self,
- gdouble center_x,
- gdouble center_y,
- gdouble bounds_x,
- gdouble bounds_y,
- gdouble user_x);
-static gboolean _box_equal (const Box * s1,
- const Box * s2);
-static void editing_tools_crop_tool_crop_moved (EditingToolsCropTool* self,
- Box* new_crop);
-gboolean box_equals (Box *self,
- Box* box);
-GType box_complements_get_type (void) G_GNUC_CONST;
-BoxComplements box_resized_complements (Box *self,
- Box* resized,
- Box* horizontal,
- gboolean* horizontal_enlarged,
- Box* vertical,
- gboolean* vertical_enlarged);
-static void editing_tools_crop_tool_set_area_alpha (EditingToolsCropTool* self,
- Box* area,
- gdouble alpha);
-void box_get_reduced (Box *self,
- gint amount,
- Box* result);
-static void editing_tools_crop_tool_constraint_description_finalize (EditingToolsCropToolConstraintDescription * obj);
-#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
-#define EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_CONTROL_SPACING 8
-static gboolean editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func (GtkTreeModel* model,
- GtkTreeIter* iter);
-static gboolean _editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func_gtk_tree_view_row_separator_func (GtkTreeModel* model,
- GtkTreeIter* iter,
- gpointer self);
-static void editing_tools_crop_tool_crop_tool_window_finalize (GObject * obj);
-static void editing_tools_crop_tool_finalize (EditingToolsEditingTool * obj);
-GType editing_tools_redeye_instance_get_type (void) G_GNUC_CONST;
-EditingToolsRedeyeInstance* editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self);
-void editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self);
-#define EDITING_TOOLS_REDEYE_INSTANCE_MIN_RADIUS 4
-#define EDITING_TOOLS_REDEYE_INSTANCE_MAX_RADIUS 32
-#define EDITING_TOOLS_REDEYE_INSTANCE_DEFAULT_RADIUS 10
-static void editing_tools_redeye_instance_init (EditingToolsRedeyeInstance *self);
-void editing_tools_redeye_instance_to_bounds_rect (EditingToolsRedeyeInstance* inst,
- GdkRectangle* result);
-void editing_tools_redeye_instance_from_bounds_rect (GdkRectangle* rect,
- EditingToolsRedeyeInstance* result);
-GType editing_tools_redeye_tool_get_type (void) G_GNUC_CONST;
-static GType editing_tools_redeye_tool_redeye_tool_window_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define EDITING_TOOLS_REDEYE_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolPrivate))
-static EditingToolsRedeyeTool* editing_tools_redeye_tool_new (void);
-static EditingToolsRedeyeTool* editing_tools_redeye_tool_construct (GType object_type);
-EditingToolsRedeyeTool* editing_tools_redeye_tool_factory (void);
-gboolean editing_tools_redeye_tool_is_available (Photo* photo,
- Scaling* scaling);
-static void editing_tools_redeye_tool_new_interaction_instance (EditingToolsRedeyeTool* self,
- EditingToolsPhotoCanvas* canvas,
- EditingToolsRedeyeInstance* result);
-static void editing_tools_redeye_tool_prepare_ctx (EditingToolsRedeyeTool* self,
- cairo_t* ctx,
- Dimensions* dim);
-static void editing_tools_redeye_tool_draw_redeye_instance (EditingToolsRedeyeTool* self,
- EditingToolsRedeyeInstance* inst);
-static gboolean editing_tools_redeye_tool_on_size_slider_adjust (EditingToolsRedeyeTool* self,
- GtkScrollType type);
-static void editing_tools_redeye_tool_on_apply (EditingToolsRedeyeTool* self);
-void derotate_point_arb (GdkPoint* source_point,
- gint img_w,
- gint img_h,
- gdouble angle,
- GdkPoint* result);
-GType redeye_command_get_type (void) G_GNUC_CONST;
-#define RESOURCES_RED_EYE_LABEL _ ("Red-eye")
-#define RESOURCES_RED_EYE_TOOLTIP _ ("Reduce or eliminate any red-eye effects in the photo")
-RedeyeCommand* redeye_command_new (Photo* photo,
- EditingToolsRedeyeInstance* redeye_instance,
- const gchar* name,
- const gchar* explanation);
-RedeyeCommand* redeye_command_construct (GType object_type,
- Photo* photo,
- EditingToolsRedeyeInstance* redeye_instance,
- const gchar* name,
- const gchar* explanation);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-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);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void editing_tools_redeye_tool_on_photos_altered (EditingToolsRedeyeTool* self,
- GeeMap* map);
-GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-static void editing_tools_redeye_tool_on_close (EditingToolsRedeyeTool* self);
-static void editing_tools_redeye_tool_on_canvas_resize (EditingToolsRedeyeTool* self);
-static void editing_tools_redeye_tool_real_activate (EditingToolsEditingTool* base,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_redeye_tool_bind_canvas_handlers (EditingToolsRedeyeTool* self,
- EditingToolsPhotoCanvas* canvas);
-static EditingToolsRedeyeToolRedeyeToolWindow* editing_tools_redeye_tool_redeye_tool_window_new (GtkWindow* container);
-static EditingToolsRedeyeToolRedeyeToolWindow* editing_tools_redeye_tool_redeye_tool_window_construct (GType object_type,
- GtkWindow* container);
-static void editing_tools_redeye_tool_bind_window_handlers (EditingToolsRedeyeTool* self);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-DataCollection* data_object_get_membership (DataObject* self);
-static void _editing_tools_redeye_tool_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void editing_tools_redeye_tool_real_deactivate (EditingToolsEditingTool* base);
-static void editing_tools_redeye_tool_unbind_canvas_handlers (EditingToolsRedeyeTool* self,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_redeye_tool_unbind_window_handlers (EditingToolsRedeyeTool* self);
-static void _editing_tools_redeye_tool_prepare_ctx_editing_tools_photo_canvas_new_surface (EditingToolsPhotoCanvas* _sender,
- cairo_t* ctx,
- Dimensions* dim,
- gpointer self);
-static void _editing_tools_redeye_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position,
- gpointer self);
-static void _editing_tools_redeye_tool_on_apply_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void _editing_tools_redeye_tool_on_close_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static gboolean _editing_tools_redeye_tool_on_size_slider_adjust_gtk_range_change_value (GtkRange* _sender,
- GtkScrollType scroll,
- gdouble new_value,
- gpointer self);
-static EditingToolsEditingToolWindow* editing_tools_redeye_tool_real_get_tool_window (EditingToolsEditingTool* base);
-static void editing_tools_redeye_tool_real_paint (EditingToolsEditingTool* base,
- cairo_t* ctx);
-static void editing_tools_redeye_tool_real_on_left_click (EditingToolsEditingTool* base,
- gint x,
- gint y);
-gboolean coord_in_rectangle (gint x,
- gint y,
- GdkRectangle* rect);
-static void editing_tools_redeye_tool_real_on_left_released (EditingToolsEditingTool* base,
- gint x,
- gint y);
-static void editing_tools_redeye_tool_real_on_motion (EditingToolsEditingTool* base,
- gint x,
- gint y,
- GdkModifierType mask);
-static gboolean editing_tools_redeye_tool_real_on_keypress (EditingToolsEditingTool* base,
- GdkEventKey* event);
-#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindowPrivate))
-#define RESOURCES_APPLY_LABEL _ ("_Apply")
-#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_CONTROL_SPACING 8
-static void editing_tools_redeye_tool_redeye_tool_window_finalize (GObject * obj);
-static void editing_tools_redeye_tool_finalize (EditingToolsEditingTool * obj);
-GType editing_tools_adjust_tool_get_type (void) G_GNUC_CONST;
-static GType editing_tools_adjust_tool_adjust_tool_window_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-gpointer one_shot_scheduler_ref (gpointer instance);
-void one_shot_scheduler_unref (gpointer instance);
-GParamSpec* param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_one_shot_scheduler (GValue* value,
- gpointer v_object);
-void value_take_one_shot_scheduler (GValue* value,
- gpointer v_object);
-gpointer value_get_one_shot_scheduler (const GValue* value);
-GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
-#define EDITING_TOOLS_ADJUST_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolPrivate))
-#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH 200
-#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC ((guint) 100)
-static EditingToolsAdjustTool* editing_tools_adjust_tool_new (void);
-static EditingToolsAdjustTool* editing_tools_adjust_tool_construct (GType object_type);
-EditingToolsAdjustTool* editing_tools_adjust_tool_factory (void);
-gboolean editing_tools_adjust_tool_is_available (Photo* photo,
- Scaling* scaling);
-static void editing_tools_adjust_tool_real_activate (EditingToolsEditingTool* base,
- EditingToolsPhotoCanvas* canvas);
-static EditingToolsAdjustToolAdjustToolWindow* editing_tools_adjust_tool_adjust_tool_window_new (GtkWindow* container);
-static EditingToolsAdjustToolAdjustToolWindow* editing_tools_adjust_tool_adjust_tool_window_construct (GType object_type,
- GtkWindow* container);
-PixelTransformationBundle* photo_get_color_adjustments (Photo* self);
-GType rgb_histogram_manipulator_get_type (void) G_GNUC_CONST;
-void rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* self,
- gint user_nub_pos);
-void rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator* self,
- gint user_nub_pos);
-static void editing_tools_adjust_tool_bind_canvas_handlers (EditingToolsAdjustTool* self,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_adjust_tool_bind_window_handlers (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_init_fp_pixel_cache (EditingToolsAdjustTool* self,
- GdkPixbuf* source);
-static void editing_tools_adjust_tool_on_photos_altered (EditingToolsAdjustTool* self,
- GeeMap* map);
-static void _editing_tools_adjust_tool_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static EditingToolsEditingToolWindow* editing_tools_adjust_tool_real_get_tool_window (EditingToolsEditingTool* base);
-static void editing_tools_adjust_tool_real_deactivate (EditingToolsEditingTool* base);
-static void editing_tools_adjust_tool_unbind_canvas_handlers (EditingToolsAdjustTool* self,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_adjust_tool_unbind_window_handlers (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_real_paint (EditingToolsEditingTool* base,
- cairo_t* ctx);
-void rgb_histogram_manipulator_update_histogram (RGBHistogramManipulator* self,
- GdkPixbuf* source_pixbuf);
-static GdkPixbuf* editing_tools_adjust_tool_real_get_display_pixbuf (EditingToolsEditingTool* base,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error);
-gboolean photo_has_color_adjustments (Photo* self);
-static void editing_tools_adjust_tool_on_reset (EditingToolsAdjustTool* self);
-static GType editing_tools_adjust_tool_adjust_tool_command_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static GType editing_tools_adjust_tool_adjust_reset_command_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static EditingToolsAdjustToolAdjustResetCommand* editing_tools_adjust_tool_adjust_reset_command_new (EditingToolsAdjustTool* owner,
- PixelTransformationBundle* current);
-static EditingToolsAdjustToolAdjustResetCommand* editing_tools_adjust_tool_adjust_reset_command_construct (GType object_type,
- EditingToolsAdjustTool* owner,
- PixelTransformationBundle* current);
-static void editing_tools_adjust_tool_on_ok (EditingToolsAdjustTool* self);
-#define RESOURCES_ADJUST_LABEL _ ("Adjust")
-#define RESOURCES_ADJUST_TOOLTIP _ ("Adjust the photo’s color and tone")
-AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type,
- Photo* photo,
- PixelTransformationBundle* transformations,
- const gchar* name,
- const gchar* explanation);
-GType adjust_colors_single_command_get_type (void) G_GNUC_CONST;
-static void editing_tools_adjust_tool_update_transformations (EditingToolsAdjustTool* self,
- PixelTransformationBundle* new_transformations);
-static void editing_tools_adjust_tool_update_transformation (EditingToolsAdjustTool* self,
- PixelTransformation* new_transformation);
-static void editing_tools_adjust_tool_slider_updated (EditingToolsAdjustTool* self,
- PixelTransformation* new_transformation,
- const gchar* name);
-static GType editing_tools_adjust_tool_slider_adjustment_command_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static EditingToolsAdjustToolSliderAdjustmentCommand* editing_tools_adjust_tool_slider_adjustment_command_new (EditingToolsAdjustTool* owner,
- PixelTransformation* old_transformation,
- PixelTransformation* new_transformation,
- const gchar* name);
-static EditingToolsAdjustToolSliderAdjustmentCommand* editing_tools_adjust_tool_slider_adjustment_command_construct (GType object_type,
- EditingToolsAdjustTool* owner,
- PixelTransformation* old_transformation,
- PixelTransformation* new_transformation,
- const gchar* name);
-static void editing_tools_adjust_tool_on_temperature_adjustment (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_on_delayed_temperature_adjustment (EditingToolsAdjustTool* self);
-static void _editing_tools_adjust_tool_on_delayed_temperature_adjustment_one_shot_callback (gpointer self);
-OneShotScheduler* one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-OneShotScheduler* one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-void one_shot_scheduler_after_timeout (OneShotScheduler* self,
- guint msec,
- gboolean reschedule);
-static void editing_tools_adjust_tool_on_tint_adjustment (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_on_delayed_tint_adjustment (EditingToolsAdjustTool* self);
-static void _editing_tools_adjust_tool_on_delayed_tint_adjustment_one_shot_callback (gpointer self);
-static void editing_tools_adjust_tool_on_contrast_adjustment (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_on_delayed_contrast_adjustment (EditingToolsAdjustTool* self);
-static void _editing_tools_adjust_tool_on_delayed_contrast_adjustment_one_shot_callback (gpointer self);
-static void editing_tools_adjust_tool_on_saturation_adjustment (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_on_delayed_saturation_adjustment (EditingToolsAdjustTool* self);
-static void _editing_tools_adjust_tool_on_delayed_saturation_adjustment_one_shot_callback (gpointer self);
-static void editing_tools_adjust_tool_on_exposure_adjustment (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_on_delayed_exposure_adjustment (EditingToolsAdjustTool* self);
-static void _editing_tools_adjust_tool_on_delayed_exposure_adjustment_one_shot_callback (gpointer self);
-static void editing_tools_adjust_tool_on_shadows_adjustment (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_on_delayed_shadows_adjustment (EditingToolsAdjustTool* self);
-static void _editing_tools_adjust_tool_on_delayed_shadows_adjustment_one_shot_callback (gpointer self);
-static void editing_tools_adjust_tool_on_highlights_adjustment (EditingToolsAdjustTool* self);
-static void editing_tools_adjust_tool_on_delayed_highlights_adjustment (EditingToolsAdjustTool* self);
-static void _editing_tools_adjust_tool_on_delayed_highlights_adjustment_one_shot_callback (gpointer self);
-static void editing_tools_adjust_tool_on_histogram_constraint (EditingToolsAdjustTool* self);
-gint rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* self);
-gint rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator* self);
-static void editing_tools_adjust_tool_on_canvas_resize (EditingToolsAdjustTool* self);
-static gboolean editing_tools_adjust_tool_on_hscale_reset (EditingToolsAdjustTool* self,
- GtkWidget* widget,
- GdkEventButton* event);
-gboolean has_only_key_modifier (GdkModifierType field,
- GdkModifierType mask);
-static void _editing_tools_adjust_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position,
- gpointer self);
-static void _editing_tools_adjust_tool_on_ok_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_reset_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_exposure_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_contrast_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_saturation_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_tint_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_temperature_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_shadows_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_highlights_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static void _editing_tools_adjust_tool_on_histogram_constraint_rgb_histogram_manipulator_nub_position_changed (RGBHistogramManipulator* _sender,
- gpointer self);
-static gboolean _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-gboolean editing_tools_adjust_tool_enhance (EditingToolsAdjustTool* self);
-static GType editing_tools_adjust_tool_adjust_enhance_command_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static EditingToolsAdjustToolAdjustEnhanceCommand* editing_tools_adjust_tool_adjust_enhance_command_new (EditingToolsAdjustTool* owner,
- Photo* photo);
-static EditingToolsAdjustToolAdjustEnhanceCommand* editing_tools_adjust_tool_adjust_enhance_command_construct (GType object_type,
- EditingToolsAdjustTool* owner,
- Photo* photo);
-static void editing_tools_adjust_tool_set_adjustments (EditingToolsAdjustTool* self,
- PixelTransformationBundle* new_adjustments);
-static void editing_tools_adjust_tool_update_slider (EditingToolsAdjustTool* self,
- PixelTransformation* transformation);
-static gboolean editing_tools_adjust_tool_real_on_keypress (EditingToolsEditingTool* base,
- GdkEventKey* event);
-#define RESOURCES_OK_LABEL _ ("_OK")
-RGBHistogramManipulator* rgb_histogram_manipulator_new (void);
-RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type);
-static void editing_tools_adjust_tool_adjust_tool_window_finalize (GObject * obj);
-GType command_description_get_type (void) G_GNUC_CONST;
-static void editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated (EditingToolsAdjustToolAdjustToolCommand* self);
-static void _editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender,
- gpointer self);
-static EditingToolsAdjustToolAdjustToolCommand* editing_tools_adjust_tool_adjust_tool_command_construct (GType object_type,
- EditingToolsAdjustTool* owner,
- const gchar* name,
- const gchar* explanation);
-Command* command_construct (GType object_type,
- const gchar* name,
- const gchar* explanation);
-void command_manager_reset (CommandManager* self);
-static void editing_tools_adjust_tool_adjust_tool_command_finalize (GObject * obj);
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommandPrivate))
-static void editing_tools_adjust_tool_adjust_reset_command_real_execute (Command* base);
-static void editing_tools_adjust_tool_adjust_reset_command_real_undo (Command* base);
-static gboolean editing_tools_adjust_tool_adjust_reset_command_real_compress (Command* base,
- Command* command);
-static void editing_tools_adjust_tool_adjust_reset_command_finalize (GObject * obj);
-#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommandPrivate))
-static void editing_tools_adjust_tool_slider_adjustment_command_real_execute (Command* base);
-static void editing_tools_adjust_tool_slider_adjustment_command_real_undo (Command* base);
-static void editing_tools_adjust_tool_slider_adjustment_command_real_redo (Command* base);
-static gboolean editing_tools_adjust_tool_slider_adjustment_command_real_compress (Command* base,
- Command* command);
-void command_execute (Command* self);
-static void editing_tools_adjust_tool_slider_adjustment_command_finalize (GObject * obj);
-#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommandPrivate))
-#define RESOURCES_ENHANCE_LABEL _ ("Enhance")
-#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance")
-static void editing_tools_adjust_tool_adjust_enhance_command_real_execute (Command* base);
-PixelTransformationBundle* photo_get_enhance_transformations (Photo* self);
-static void editing_tools_adjust_tool_adjust_enhance_command_real_undo (Command* base);
-static gboolean editing_tools_adjust_tool_adjust_enhance_command_real_compress (Command* base,
- Command* command);
-GType enhance_single_command_get_type (void) G_GNUC_CONST;
-DataSource* single_data_source_command_get_source (SingleDataSourceCommand* self);
-gboolean data_source_equals (DataSource* self,
- DataSource* source);
-static void editing_tools_adjust_tool_adjust_enhance_command_finalize (GObject * obj);
-static void editing_tools_adjust_tool_finalize (EditingToolsEditingTool * 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);
-
-
-void
-editing_tools_preconfigure (void)
-{
-}
-
-
-void
-editing_tools_init (GError** error)
-{
-}
-
-
-void
-editing_tools_terminate (void)
-{
-}
-
-
-static void
-_editing_tools_editing_tool_window_suppress_warnings_glog_func (const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message,
- gpointer self)
-{
-#line 56 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_window_suppress_warnings ((EditingToolsEditingToolWindow*) self, log_domain, log_levels, message);
-#line 2023 "EditingTools.c"
-}
-
-
-EditingToolsEditingToolWindow*
-editing_tools_editing_tool_window_construct (GType object_type,
- GtkWindow* container)
-{
- EditingToolsEditingToolWindow * self = NULL;
- GtkFrame* outer_frame = NULL;
- GtkFrame* _tmp0_;
- GtkFrame* _tmp1_;
- GtkFrame* _tmp2_;
- GtkFrame* _tmp3_;
-#line 34 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (container), NULL);
-#line 34 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsEditingToolWindow*) g_object_new (object_type, NULL);
-#line 35 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_window_set_decorated (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 36 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), container);
-#line 38 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = (GtkFrame*) gtk_frame_new (NULL);
-#line 38 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp0_);
-#line 38 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- outer_frame = _tmp0_;
-#line 39 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (outer_frame, gtk_container_get_type (), GtkContainer), (guint) 0);
-#line 40 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_frame_set_shadow_type (outer_frame, GTK_SHADOW_OUT);
-#line 42 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->layout_frame;
-#line 42 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_container_get_type (), GtkContainer), (guint) EDITING_TOOLS_EDITING_TOOL_WINDOW_FRAME_BORDER);
-#line 43 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->layout_frame;
-#line 43 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_frame_set_shadow_type (_tmp2_, GTK_SHADOW_NONE);
-#line 45 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->layout_frame;
-#line 45 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (outer_frame, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 46 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- GTK_CONTAINER_CLASS (editing_tools_editing_tool_window_parent_class)->add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (outer_frame, gtk_widget_get_type (), GtkWidget));
-#line 48 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) (GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK));
-#line 49 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_window_set_focus_on_map (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 50 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_window_set_accept_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 51 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 56 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_log_set_handler ("Gdk", G_LOG_LEVEL_WARNING, _editing_tools_editing_tool_window_suppress_warnings_glog_func, self);
-#line 34 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (outer_frame);
-#line 34 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 2083 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_window_real_add (GtkContainer* base,
- GtkWidget* widget)
-{
- EditingToolsEditingToolWindow * self;
- GtkFrame* _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow);
-#line 63 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (GTK_IS_WIDGET (widget));
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->layout_frame;
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), widget);
-#line 2101 "EditingTools.c"
-}
-
-
-gboolean
-editing_tools_editing_tool_window_has_user_moved (EditingToolsEditingToolWindow* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL_WINDOW (self), FALSE);
-#line 68 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->user_moved;
-#line 68 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp0_;
-#line 68 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2118 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_editing_tool_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- EditingToolsEditingToolWindow * self;
- gboolean result = FALSE;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow);
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (GTK_WIDGET_CLASS (editing_tools_editing_tool_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_widget_get_type (), GtkWidget), event)) {
-#line 73 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 73 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2142 "EditingTools.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = app_window_get_instance ();
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp2_);
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp3_;
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2158 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_editing_tool_window_real_button_press_event (GtkWidget* base,
- GdkEventButton* event)
-{
- EditingToolsEditingToolWindow * self;
- gboolean result = FALSE;
- guint _tmp0_;
- guint _tmp2_;
- gdouble _tmp3_;
- gdouble _tmp4_;
- guint32 _tmp5_;
-#line 78 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow);
-#line 78 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 80 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = event->button;
-#line 80 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ != ((guint) 1)) {
-#line 2181 "EditingTools.c"
- gboolean _tmp1_ = FALSE;
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (GTK_WIDGET_CLASS (editing_tools_editing_tool_window_parent_class)->button_press_event != NULL) {
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = GTK_WIDGET_CLASS (editing_tools_editing_tool_window_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_widget_get_type (), GtkWidget), event);
-#line 2187 "EditingTools.c"
- } else {
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = TRUE;
-#line 2191 "EditingTools.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2197 "EditingTools.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = event->button;
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = event->x_root;
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = event->y_root;
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = event->time;
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_window_begin_move_drag (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), (gint) _tmp2_, (gint) _tmp3_, (gint) _tmp4_, _tmp5_);
-#line 84 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_moved = TRUE;
-#line 86 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 86 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2215 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_window_real_realize (GtkWidget* base)
-{
- EditingToolsEditingToolWindow * self;
-#line 89 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow);
-#line 90 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_opacity (G_TYPE_CHECK_INSTANCE_TYPE (self, gtk_widget_get_type ()) ? ((GtkWidget*) self) : NULL, RESOURCES_TRANSIENT_WINDOW_OPACITY);
-#line 92 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- GTK_WIDGET_CLASS (editing_tools_editing_tool_window_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_widget_get_type (), GtkWidget));
-#line 2229 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_window_suppress_warnings (EditingToolsEditingToolWindow* self,
- const gchar* log_domain,
- GLogLevelFlags log_levels,
- const gchar* message)
-{
-#line 95 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL_WINDOW (self));
-#line 95 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (message != NULL);
-#line 2243 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_window_class_init (EditingToolsEditingToolWindowClass * klass)
-{
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_window_parent_class = g_type_class_peek_parent (klass);
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsEditingToolWindowPrivate));
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((GtkContainerClass *) klass)->add = (void (*) (GtkContainer *, GtkWidget*)) editing_tools_editing_tool_window_real_add;
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) editing_tools_editing_tool_window_real_key_press_event;
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) editing_tools_editing_tool_window_real_button_press_event;
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) editing_tools_editing_tool_window_real_realize;
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_editing_tool_window_finalize;
-#line 2264 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_window_instance_init (EditingToolsEditingToolWindow * self)
-{
- GtkFrame* _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_PRIVATE (self);
-#line 31 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = (GtkFrame*) gtk_frame_new (NULL);
-#line 31 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp0_);
-#line 31 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->layout_frame = _tmp0_;
-#line 32 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_moved = FALSE;
-#line 2282 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_window_finalize (GObject * obj)
-{
- EditingToolsEditingToolWindow * self;
- GLogFunc _tmp0_;
- void* _tmp0__target;
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow);
-#line 60 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = g_log_default_handler;
-#line 60 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0__target = NULL;
-#line 60 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_log_set_handler ("Gdk", G_LOG_LEVEL_WARNING, _tmp0_, _tmp0__target);
-#line 31 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->layout_frame);
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (editing_tools_editing_tool_window_parent_class)->finalize (obj);
-#line 2304 "EditingTools.c"
-}
-
-
-GType
-editing_tools_editing_tool_window_get_type (void)
-{
- static volatile gsize editing_tools_editing_tool_window_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_editing_tool_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsEditingToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_editing_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsEditingToolWindow), 0, (GInstanceInitFunc) editing_tools_editing_tool_window_instance_init, NULL };
- GType editing_tools_editing_tool_window_type_id;
- editing_tools_editing_tool_window_type_id = g_type_register_static (gtk_window_get_type (), "EditingToolsEditingToolWindow", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&editing_tools_editing_tool_window_type_id__volatile, editing_tools_editing_tool_window_type_id);
- }
- return editing_tools_editing_tool_window_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self ? g_object_ref (self) : NULL;
-#line 2327 "EditingTools.c"
-}
-
-
-static gpointer
-_cairo_reference0 (gpointer self)
-{
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self ? cairo_reference (self) : NULL;
-#line 2336 "EditingTools.c"
-}
-
-
-EditingToolsPhotoCanvas*
-editing_tools_photo_canvas_construct (GType object_type,
- GtkWindow* container,
- GdkWindow* drawing_window,
- Photo* photo,
- cairo_t* default_ctx,
- Dimensions* surface_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position)
-{
- EditingToolsPhotoCanvas* self = NULL;
- GtkWindow* _tmp0_;
- GdkWindow* _tmp1_;
- Photo* _tmp2_;
- cairo_t* _tmp3_;
- Dimensions _tmp4_;
- GdkRectangle _tmp5_;
- GdkPixbuf* _tmp6_;
- GdkRectangle _tmp7_;
- cairo_surface_t* _tmp8_;
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (container), NULL);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GDK_IS_WINDOW (drawing_window), NULL);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (default_ctx != NULL, NULL);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (surface_dim != NULL, NULL);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (scaled), NULL);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (scaled_position != NULL, NULL);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsPhotoCanvas*) g_type_create_instance (object_type);
-#line 115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _g_object_ref0 (container);
-#line 115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->container);
-#line 115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->container = _tmp0_;
-#line 116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _g_object_ref0 (drawing_window);
-#line 116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->drawing_window);
-#line 116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->drawing_window = _tmp1_;
-#line 117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _g_object_ref0 (photo);
-#line 117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->photo);
-#line 117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->photo = _tmp2_;
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _cairo_reference0 (default_ctx);
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->default_ctx);
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->default_ctx = _tmp3_;
-#line 119 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = *surface_dim;
-#line 119 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->surface_dim = _tmp4_;
-#line 120 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = *scaled_position;
-#line 120 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_position = _tmp5_;
-#line 121 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _g_object_ref0 (scaled);
-#line 121 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->scaled_pixbuf);
-#line 121 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_pixbuf = _tmp6_;
-#line 122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = *scaled_position;
-#line 122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = editing_tools_photo_canvas_pixbuf_to_surface (self, default_ctx, scaled, &_tmp7_);
-#line 122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->scaled);
-#line 122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled = _tmp8_;
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 2424 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_unscaled_to_raw_rect (EditingToolsPhotoCanvas* self,
- GdkRectangle* rectangle,
- GdkRectangle* result)
-{
- Photo* _tmp0_;
- GdkRectangle _tmp1_;
- GdkRectangle _tmp2_ = {0};
-#line 130 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 130 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (rectangle != NULL);
-#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->photo;
-#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = *rectangle;
-#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_unscaled_to_raw_rect (_tmp0_, &_tmp1_, &_tmp2_);
-#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _tmp2_;
-#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 2450 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_active_to_unscaled_point (EditingToolsPhotoCanvas* self,
- GdkPoint* active_point,
- GdkPoint* result)
-{
- GdkRectangle scaled_position = {0};
- GdkRectangle _tmp0_ = {0};
- Dimensions unscaled_dims = {0};
- Photo* _tmp1_;
- Dimensions _tmp2_ = {0};
- gdouble scale_factor_x = 0.0;
- Dimensions _tmp3_;
- gint _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- gdouble scale_factor_y = 0.0;
- Dimensions _tmp7_;
- gint _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- GdkPoint _result_ = {0};
- GdkPoint _tmp11_ = {0};
- GdkPoint _tmp12_;
- gint _tmp13_;
- GdkPoint _tmp14_;
- gint _tmp15_;
-#line 134 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 134 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (active_point != NULL);
-#line 135 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (self, &_tmp0_);
-#line 135 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scaled_position = _tmp0_;
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->photo;
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp2_);
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- unscaled_dims = _tmp2_;
-#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = unscaled_dims;
-#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.width;
-#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = scaled_position;
-#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.width;
-#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scale_factor_x = ((gdouble) _tmp4_) / ((gdouble) _tmp6_);
-#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = unscaled_dims;
-#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.height;
-#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = scaled_position;
-#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.height;
-#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scale_factor_y = ((gdouble) _tmp8_) / ((gdouble) _tmp10_);
-#line 143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_.x = 0;
-#line 143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp11_;
-#line 144 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = *active_point;
-#line 144 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.x;
-#line 144 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.x = (gint) ((((gdouble) _tmp13_) * scale_factor_x) + 0.5);
-#line 145 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = *active_point;
-#line 145 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_.y;
-#line 145 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.y = (gint) ((((gdouble) _tmp15_) * scale_factor_y) + 0.5);
-#line 147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _result_;
-#line 147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 2534 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_active_to_unscaled_rect (EditingToolsPhotoCanvas* self,
- GdkRectangle* active_rect,
- GdkRectangle* result)
-{
- GdkPoint upper_left = {0};
- GdkPoint _tmp0_ = {0};
- GdkPoint lower_right = {0};
- GdkPoint _tmp1_ = {0};
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_;
- gint _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
- GdkPoint _tmp14_;
- GdkPoint _tmp15_ = {0};
- GdkPoint _tmp16_;
- GdkPoint _tmp17_ = {0};
- GdkRectangle unscaled_rect = {0};
- GdkPoint _tmp18_;
- gint _tmp19_;
- GdkPoint _tmp20_;
- gint _tmp21_;
- GdkPoint _tmp22_;
- gint _tmp23_;
- GdkPoint _tmp24_;
- gint _tmp25_;
- GdkPoint _tmp26_;
- gint _tmp27_;
- GdkPoint _tmp28_;
- gint _tmp29_;
-#line 150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (active_rect != NULL);
-#line 151 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_.x = 0;
-#line 151 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- upper_left = _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_.x = 0;
-#line 152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- lower_right = _tmp1_;
-#line 153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *active_rect;
-#line 153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- upper_left.x = _tmp3_;
-#line 154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = *active_rect;
-#line 154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.y;
-#line 154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- upper_left.y = _tmp5_;
-#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = upper_left;
-#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.x;
-#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = *active_rect;
-#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.width;
-#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- lower_right.x = _tmp7_ + _tmp9_;
-#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = upper_left;
-#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.y;
-#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = *active_rect;
-#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.height;
-#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- lower_right.y = _tmp11_ + _tmp13_;
-#line 158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = upper_left;
-#line 158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_active_to_unscaled_point (self, &_tmp14_, &_tmp15_);
-#line 158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- upper_left = _tmp15_;
-#line 159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = lower_right;
-#line 159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_active_to_unscaled_point (self, &_tmp16_, &_tmp17_);
-#line 159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- lower_right = _tmp17_;
-#line 161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- memset (&unscaled_rect, 0, sizeof (GdkRectangle));
-#line 162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = upper_left;
-#line 162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_.x;
-#line 162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- unscaled_rect.x = _tmp19_;
-#line 163 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = upper_left;
-#line 163 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_.y;
-#line 163 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- unscaled_rect.y = _tmp21_;
-#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = lower_right;
-#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp22_.x;
-#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = upper_left;
-#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp24_.x;
-#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- unscaled_rect.width = _tmp23_ - _tmp25_;
-#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = lower_right;
-#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = _tmp26_.y;
-#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = upper_left;
-#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = _tmp28_.y;
-#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- unscaled_rect.height = _tmp27_ - _tmp29_;
-#line 167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = unscaled_rect;
-#line 167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 2670 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_user_to_active_point (EditingToolsPhotoCanvas* self,
- GdkPoint* user_point,
- GdkPoint* result)
-{
- GdkRectangle active_offsets = {0};
- GdkRectangle _tmp0_ = {0};
- GdkPoint _result_ = {0};
- GdkPoint _tmp1_ = {0};
- GdkPoint _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
-#line 170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (user_point != NULL);
-#line 171 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (self, &_tmp0_);
-#line 171 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- active_offsets = _tmp0_;
-#line 173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_.x = 0;
-#line 173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp1_;
-#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *user_point;
-#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = active_offsets;
-#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.x;
-#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.x = _tmp3_ - _tmp5_;
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = *user_point;
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.y;
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = active_offsets;
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.y;
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.y = _tmp7_ - _tmp9_;
-#line 177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _result_;
-#line 177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 2727 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_user_to_active_rect (EditingToolsPhotoCanvas* self,
- GdkRectangle* user_rect,
- GdkRectangle* result)
-{
- GdkPoint upper_left = {0};
- GdkPoint _tmp0_ = {0};
- GdkPoint lower_right = {0};
- GdkPoint _tmp1_ = {0};
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_;
- gint _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
- GdkPoint _tmp14_;
- GdkPoint _tmp15_ = {0};
- GdkPoint _tmp16_;
- GdkPoint _tmp17_ = {0};
- GdkRectangle active_rect = {0};
- GdkPoint _tmp18_;
- gint _tmp19_;
- GdkPoint _tmp20_;
- gint _tmp21_;
- GdkPoint _tmp22_;
- gint _tmp23_;
- GdkPoint _tmp24_;
- gint _tmp25_;
- GdkPoint _tmp26_;
- gint _tmp27_;
- GdkPoint _tmp28_;
- gint _tmp29_;
-#line 180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (user_rect != NULL);
-#line 181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_.x = 0;
-#line 181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- upper_left = _tmp0_;
-#line 182 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_.x = 0;
-#line 182 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- lower_right = _tmp1_;
-#line 183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *user_rect;
-#line 183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- upper_left.x = _tmp3_;
-#line 184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = *user_rect;
-#line 184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.y;
-#line 184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- upper_left.y = _tmp5_;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = upper_left;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.x;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = *user_rect;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.width;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- lower_right.x = _tmp7_ + _tmp9_;
-#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = upper_left;
-#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.y;
-#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = *user_rect;
-#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.height;
-#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- lower_right.y = _tmp11_ + _tmp13_;
-#line 188 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = upper_left;
-#line 188 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_user_to_active_point (self, &_tmp14_, &_tmp15_);
-#line 188 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- upper_left = _tmp15_;
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = lower_right;
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_user_to_active_point (self, &_tmp16_, &_tmp17_);
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- lower_right = _tmp17_;
-#line 191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- memset (&active_rect, 0, sizeof (GdkRectangle));
-#line 192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = upper_left;
-#line 192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_.x;
-#line 192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- active_rect.x = _tmp19_;
-#line 193 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = upper_left;
-#line 193 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_.y;
-#line 193 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- active_rect.y = _tmp21_;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = lower_right;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp22_.x;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = upper_left;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp24_.x;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- active_rect.width = _tmp23_ - _tmp25_;
-#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = lower_right;
-#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = _tmp26_.y;
-#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = upper_left;
-#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = _tmp28_.y;
-#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- active_rect.height = _tmp27_ - _tmp29_;
-#line 197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = active_rect;
-#line 197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 2863 "EditingTools.c"
-}
-
-
-Photo*
-editing_tools_photo_canvas_get_photo (EditingToolsPhotoCanvas* self)
-{
- Photo* result = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
-#line 200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL);
-#line 201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->photo;
-#line 201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2883 "EditingTools.c"
-}
-
-
-GtkWindow*
-editing_tools_photo_canvas_get_container (EditingToolsPhotoCanvas* self)
-{
- GtkWindow* result = NULL;
- GtkWindow* _tmp0_;
- GtkWindow* _tmp1_;
-#line 204 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL);
-#line 205 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->container;
-#line 205 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 205 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 205 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2903 "EditingTools.c"
-}
-
-
-GdkWindow*
-editing_tools_photo_canvas_get_drawing_window (EditingToolsPhotoCanvas* self)
-{
- GdkWindow* result = NULL;
- GdkWindow* _tmp0_;
- GdkWindow* _tmp1_;
-#line 208 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL);
-#line 209 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->drawing_window;
-#line 209 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 209 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 209 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2923 "EditingTools.c"
-}
-
-
-cairo_t*
-editing_tools_photo_canvas_get_default_ctx (EditingToolsPhotoCanvas* self)
-{
- cairo_t* result = NULL;
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
-#line 212 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL);
-#line 213 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->default_ctx;
-#line 213 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _cairo_reference0 (_tmp0_);
-#line 213 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 213 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 2943 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_get_surface_dim (EditingToolsPhotoCanvas* self,
- Dimensions* result)
-{
- Dimensions _tmp0_;
-#line 216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->surface_dim;
-#line 217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _tmp0_;
-#line 217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 2960 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_get_scaling (EditingToolsPhotoCanvas* self,
- Scaling* result)
-{
- Dimensions _tmp0_;
- Scaling _tmp1_ = {0};
-#line 220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->surface_dim;
-#line 221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scaling_for_viewport (&_tmp0_, FALSE, &_tmp1_);
-#line 221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _tmp1_;
-#line 221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 2980 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_set_surface (EditingToolsPhotoCanvas* self,
- cairo_t* default_ctx,
- Dimensions* surface_dim)
-{
- cairo_t* _tmp0_;
- Dimensions _tmp1_;
- Dimensions _tmp2_;
-#line 224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (default_ctx != NULL);
-#line 224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (surface_dim != NULL);
-#line 225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _cairo_reference0 (default_ctx);
-#line 225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->default_ctx);
-#line 225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->default_ctx = _tmp0_;
-#line 226 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = *surface_dim;
-#line 226 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->surface_dim = _tmp1_;
-#line 228 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *surface_dim;
-#line 228 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (self, editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_NEW_SURFACE_SIGNAL], 0, default_ctx, &_tmp2_);
-#line 3012 "EditingTools.c"
-}
-
-
-static gpointer
-_cairo_surface_reference0 (gpointer self)
-{
-#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self ? cairo_surface_reference (self) : NULL;
-#line 3021 "EditingTools.c"
-}
-
-
-cairo_surface_t*
-editing_tools_photo_canvas_get_scaled_surface (EditingToolsPhotoCanvas* self)
-{
- cairo_surface_t* result = NULL;
- cairo_surface_t* _tmp0_;
- cairo_surface_t* _tmp1_;
-#line 231 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL);
-#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->scaled;
-#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _cairo_surface_reference0 (_tmp0_);
-#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 3041 "EditingTools.c"
-}
-
-
-GdkPixbuf*
-editing_tools_photo_canvas_get_scaled_pixbuf (EditingToolsPhotoCanvas* self)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 235 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL);
-#line 236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->scaled_pixbuf;
-#line 236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 3061 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_get_scaled_pixbuf_position (EditingToolsPhotoCanvas* self,
- GdkRectangle* result)
-{
- GdkRectangle _tmp0_;
-#line 239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 240 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->scaled_position;
-#line 240 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _tmp0_;
-#line 240 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 3078 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_resized_pixbuf (EditingToolsPhotoCanvas* self,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position)
-{
- cairo_t* _tmp0_;
- GdkRectangle _tmp1_;
- cairo_surface_t* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkRectangle _tmp4_;
- Dimensions _tmp5_;
- GdkRectangle _tmp6_;
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (old_dim != NULL);
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (GDK_IS_PIXBUF (scaled));
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (scaled_position != NULL);
-#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->default_ctx;
-#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = *scaled_position;
-#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_photo_canvas_pixbuf_to_surface (self, _tmp0_, scaled, &_tmp1_);
-#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->scaled);
-#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled = _tmp2_;
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _g_object_ref0 (scaled);
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->scaled_pixbuf);
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_pixbuf = _tmp3_;
-#line 246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = *scaled_position;
-#line 246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_position = _tmp4_;
-#line 248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = *old_dim;
-#line 248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = *scaled_position;
-#line 248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (self, editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_RESIZED_SCALED_PIXBUF_SIGNAL], 0, &_tmp5_, scaled, &_tmp6_);
-#line 3129 "EditingTools.c"
-}
-
-
-static void
-editing_tools_photo_canvas_real_repaint (EditingToolsPhotoCanvas* self)
-{
-#line 251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_critical ("Type `%s' does not implement abstract method `editing_tools_photo_canvas_repaint'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 3140 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_repaint (EditingToolsPhotoCanvas* self)
-{
-#line 251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS (self)->repaint (self);
-#line 3151 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_paint_pixbuf (EditingToolsPhotoCanvas* self,
- GdkPixbuf* pixbuf)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- cairo_t* _tmp2_;
- Dimensions _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
- cairo_t* _tmp7_;
- cairo_t* _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- cairo_t* _tmp13_;
-#line 259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->default_ctx;
-#line 260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_save (_tmp0_);
-#line 263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->default_ctx;
-#line 263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- set_source_color_from_string (_tmp1_, "#000");
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->default_ctx;
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->surface_dim;
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.width;
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->surface_dim;
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.height;
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (_tmp2_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp4_, (gdouble) _tmp6_);
-#line 265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->default_ctx;
-#line 265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (_tmp7_);
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->default_ctx;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->scaled_position;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.x;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->scaled_position;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.y;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- paint_pixmap_with_background (_tmp8_, pixbuf, _tmp10_, _tmp12_);
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->priv->default_ctx;
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_restore (_tmp13_);
-#line 3217 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_paint_surface (EditingToolsPhotoCanvas* self,
- cairo_surface_t* surface,
- gboolean over)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp3_;
- cairo_surface_t* _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- GdkRectangle _tmp7_;
- gint _tmp8_;
- cairo_t* _tmp9_;
- cairo_t* _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
- cairo_t* _tmp15_;
- cairo_t* _tmp16_;
-#line 273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (surface != NULL);
-#line 274 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->default_ctx;
-#line 274 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_save (_tmp0_);
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (over == FALSE) {
-#line 3251 "EditingTools.c"
- cairo_t* _tmp1_;
-#line 276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->default_ctx;
-#line 276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_operator (_tmp1_, CAIRO_OPERATOR_SOURCE);
-#line 3257 "EditingTools.c"
- } else {
- cairo_t* _tmp2_;
-#line 278 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->default_ctx;
-#line 278 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_operator (_tmp2_, CAIRO_OPERATOR_OVER);
-#line 3264 "EditingTools.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->default_ctx;
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->scaled;
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->scaled_position;
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.x;
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->scaled_position;
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.y;
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_surface (_tmp3_, _tmp4_, (gdouble) _tmp6_, (gdouble) _tmp8_);
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->default_ctx;
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_paint (_tmp9_);
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->default_ctx;
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->scaled_position;
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.x;
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->priv->scaled_position;
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_.y;
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_surface (_tmp10_, surface, (gdouble) _tmp12_, (gdouble) _tmp14_);
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->default_ctx;
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_paint (_tmp15_);
-#line 284 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->priv->default_ctx;
-#line 284 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_restore (_tmp16_);
-#line 3304 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_paint_surface_area (EditingToolsPhotoCanvas* self,
- cairo_surface_t* surface,
- Box* source_area,
- gboolean over)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp3_;
- cairo_surface_t* _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- GdkRectangle _tmp7_;
- gint _tmp8_;
- cairo_t* _tmp9_;
- GdkRectangle _tmp10_;
- gint _tmp11_;
- Box _tmp12_;
- gint _tmp13_;
- GdkRectangle _tmp14_;
- gint _tmp15_;
- Box _tmp16_;
- gint _tmp17_;
- cairo_t* _tmp18_;
- cairo_t* _tmp19_;
- GdkRectangle _tmp20_;
- gint _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
- cairo_t* _tmp24_;
- GdkRectangle _tmp25_;
- gint _tmp26_;
- Box _tmp27_;
- gint _tmp28_;
- GdkRectangle _tmp29_;
- gint _tmp30_;
- Box _tmp31_;
- gint _tmp32_;
- cairo_t* _tmp33_;
- cairo_t* _tmp34_;
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (surface != NULL);
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (source_area != NULL);
-#line 288 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->default_ctx;
-#line 288 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_save (_tmp0_);
-#line 289 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (over == FALSE) {
-#line 3359 "EditingTools.c"
- cairo_t* _tmp1_;
-#line 290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->default_ctx;
-#line 290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_operator (_tmp1_, CAIRO_OPERATOR_SOURCE);
-#line 3365 "EditingTools.c"
- } else {
- cairo_t* _tmp2_;
-#line 292 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->default_ctx;
-#line 292 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_operator (_tmp2_, CAIRO_OPERATOR_OVER);
-#line 3372 "EditingTools.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->default_ctx;
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->scaled;
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->scaled_position;
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.x;
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->scaled_position;
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.y;
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_surface (_tmp3_, _tmp4_, (gdouble) _tmp6_, (gdouble) _tmp8_);
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->default_ctx;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->scaled_position;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.x;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = *source_area;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.left;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->scaled_position;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_.y;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = *source_area;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_.top;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (_tmp9_, (gdouble) (_tmp11_ + _tmp13_), (gdouble) (_tmp15_ + _tmp17_), (gdouble) box_get_width (source_area), (gdouble) box_get_height (source_area));
-#line 298 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->default_ctx;
-#line 298 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (_tmp18_);
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = self->priv->default_ctx;
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = self->priv->scaled_position;
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_.x;
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = self->priv->scaled_position;
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp22_.y;
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_surface (_tmp19_, surface, (gdouble) _tmp21_, (gdouble) _tmp23_);
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = self->priv->default_ctx;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = self->priv->scaled_position;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = _tmp25_.x;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = *source_area;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = _tmp27_.left;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = self->priv->scaled_position;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = _tmp29_.y;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = *source_area;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = _tmp31_.top;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (_tmp24_, (gdouble) (_tmp26_ + _tmp28_), (gdouble) (_tmp30_ + _tmp32_), (gdouble) box_get_width (source_area), (gdouble) box_get_height (source_area));
-#line 304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->priv->default_ctx;
-#line 304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (_tmp33_);
-#line 305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = self->priv->default_ctx;
-#line 305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_restore (_tmp34_);
-#line 3452 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_draw_box (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- Box* box)
-{
- GdkRectangle rect = {0};
- GdkRectangle _tmp0_ = {0};
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- GdkRectangle _tmp7_;
- gint _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (box != NULL);
-#line 309 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_rectangle (box, &_tmp0_);
-#line 309 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rect = _tmp0_;
-#line 310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = rect.x;
-#line 310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->scaled_position;
-#line 310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rect.x = _tmp1_ + _tmp3_;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = rect.y;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->scaled_position;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.y;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rect.y = _tmp4_ + _tmp6_;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = rect;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.x;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = rect;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.y;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = rect;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.width;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = rect;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_.height;
-#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (ctx, _tmp8_ + 0.5, _tmp10_ + 0.5, (gdouble) (_tmp12_ - 1), (gdouble) (_tmp14_ - 1));
-#line 314 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_stroke (ctx);
-#line 3523 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_draw_text (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- const gchar* text,
- gint x,
- gint y,
- gboolean use_scaled_pos)
-{
- cairo_text_extents_t extents = {0};
- cairo_text_extents_t _tmp4_ = {0};
- cairo_text_extents_t _tmp5_;
- gdouble _tmp6_;
- gint pane_border = 0;
- cairo_text_extents_t _tmp7_;
- gdouble _tmp8_;
- cairo_text_extents_t _tmp9_;
- gdouble _tmp10_;
- cairo_text_extents_t _tmp11_;
- gdouble _tmp12_;
-#line 317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (text != NULL);
-#line 318 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (use_scaled_pos) {
-#line 3554 "EditingTools.c"
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
-#line 319 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->scaled_position;
-#line 319 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_.x;
-#line 319 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = x + _tmp1_;
-#line 320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->scaled_position;
-#line 320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.y;
-#line 320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y = y + _tmp3_;
-#line 3571 "EditingTools.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_text_extents (ctx, text, &_tmp4_);
-#line 323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- extents = _tmp4_;
-#line 324 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = extents;
-#line 324 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.width;
-#line 324 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = x - (((gint) _tmp6_) / 2);
-#line 326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- set_source_color_from_string (ctx, RESOURCES_ONIMAGE_FONT_BACKGROUND);
-#line 328 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pane_border = 5;
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = extents;
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.height;
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = extents;
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.width;
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = extents;
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.height;
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (ctx, (gdouble) (x - pane_border), (y - pane_border) - _tmp8_, _tmp10_ + (2 * pane_border), _tmp12_ + (2 * pane_border));
-#line 332 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (ctx);
-#line 334 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_move_to (ctx, (gdouble) x, (gdouble) y);
-#line 335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- set_source_color_from_string (ctx, RESOURCES_ONIMAGE_FONT_COLOR);
-#line 336 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_show_text (ctx, text);
-#line 3609 "EditingTools.c"
-}
-
-
-/**
- * Draw a horizontal line into the specified Cairo context at the specified position, taking
- * into account the scaled position of the image unless directed otherwise.
- *
- * @param ctx The drawing context of the surface we're drawing to.
- * @param x The horizontal position to place the line at.
- * @param y The vertical position to place the line at.
- * @param width The length of the line.
- * @param use_scaled_pos Whether to use absolute window positioning or take into account the
- * position of the scaled image.
- */
-void
-editing_tools_photo_canvas_draw_horizontal_line (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- gint x,
- gint y,
- gint width,
- gboolean use_scaled_pos)
-{
-#line 350 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 350 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 351 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (use_scaled_pos) {
-#line 3638 "EditingTools.c"
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->scaled_position;
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_.x;
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = x + _tmp1_;
-#line 353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->scaled_position;
-#line 353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.y;
-#line 353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y = y + _tmp3_;
-#line 3655 "EditingTools.c"
- }
-#line 356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_move_to (ctx, x + 0.5, y + 0.5);
-#line 357 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_line_to (ctx, (gdouble) ((x + width) - 1), y + 0.5);
-#line 358 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_stroke (ctx);
-#line 3663 "EditingTools.c"
-}
-
-
-/**
- * Draw a vertical line into the specified Cairo context at the specified position, taking
- * into account the scaled position of the image unless directed otherwise.
- *
- * @param ctx The drawing context of the surface we're drawing to.
- * @param x The horizontal position to place the line at.
- * @param y The vertical position to place the line at.
- * @param width The length of the line.
- * @param use_scaled_pos Whether to use absolute window positioning or take into account the
- * position of the scaled image.
- */
-void
-editing_tools_photo_canvas_draw_vertical_line (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- gint x,
- gint y,
- gint height,
- gboolean use_scaled_pos)
-{
-#line 372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 373 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (use_scaled_pos) {
-#line 3692 "EditingTools.c"
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
-#line 374 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->scaled_position;
-#line 374 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_.x;
-#line 374 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = x + _tmp1_;
-#line 375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->scaled_position;
-#line 375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.y;
-#line 375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y = y + _tmp3_;
-#line 3709 "EditingTools.c"
- }
-#line 378 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_move_to (ctx, x + 0.5, y + 0.5);
-#line 379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_line_to (ctx, x + 0.5, (gdouble) ((y + height) - 1));
-#line 380 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_stroke (ctx);
-#line 3717 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_erase_horizontal_line (EditingToolsPhotoCanvas* self,
- gint x,
- gint y,
- gint width)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- cairo_t* _tmp2_;
- cairo_surface_t* _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- cairo_t* _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- cairo_t* _tmp13_;
- cairo_t* _tmp14_;
-#line 383 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 384 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->default_ctx;
-#line 384 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_save (_tmp0_);
-#line 386 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->default_ctx;
-#line 386 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_operator (_tmp1_, CAIRO_OPERATOR_SOURCE);
-#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->default_ctx;
-#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->scaled;
-#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->scaled_position;
-#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.x;
-#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->scaled_position;
-#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.y;
-#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_surface (_tmp2_, _tmp3_, (gdouble) _tmp5_, (gdouble) _tmp7_);
-#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->default_ctx;
-#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->scaled_position;
-#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.x;
-#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->scaled_position;
-#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.y;
-#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (_tmp8_, (gdouble) (_tmp10_ + x), (gdouble) (_tmp12_ + y), (gdouble) (width - 1), (gdouble) 1);
-#line 390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->priv->default_ctx;
-#line 390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (_tmp13_);
-#line 392 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->default_ctx;
-#line 392 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_restore (_tmp14_);
-#line 3786 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_draw_circle (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- gint active_center_x,
- gint active_center_y,
- gint radius)
-{
- gint center_x = 0;
- GdkRectangle _tmp0_;
- gint _tmp1_;
- gint center_y = 0;
- GdkRectangle _tmp2_;
- gint _tmp3_;
-#line 395 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 395 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->scaled_position;
-#line 397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_.x;
-#line 397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- center_x = active_center_x + _tmp1_;
-#line 398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->scaled_position;
-#line 398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.y;
-#line 398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- center_y = active_center_y + _tmp3_;
-#line 400 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_arc (ctx, (gdouble) center_x, (gdouble) center_y, (gdouble) radius, (gdouble) 0, 2 * G_PI);
-#line 401 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_stroke (ctx);
-#line 3823 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_erase_vertical_line (EditingToolsPhotoCanvas* self,
- gint x,
- gint y,
- gint height)
-{
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- cairo_t* _tmp2_;
- cairo_surface_t* _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- cairo_t* _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- cairo_t* _tmp13_;
- cairo_t* _tmp14_;
-#line 404 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 405 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->default_ctx;
-#line 405 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_save (_tmp0_);
-#line 411 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->default_ctx;
-#line 411 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_operator (_tmp1_, CAIRO_OPERATOR_SOURCE);
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->default_ctx;
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->scaled;
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->scaled_position;
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.x;
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->scaled_position;
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.y;
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_surface (_tmp2_, _tmp3_, (gdouble) _tmp5_, (gdouble) _tmp7_);
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->default_ctx;
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->scaled_position;
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.x;
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->scaled_position;
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.y;
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (_tmp8_, (gdouble) (_tmp10_ + x), (gdouble) (_tmp12_ + y), (gdouble) 1, (gdouble) height);
-#line 415 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->priv->default_ctx;
-#line 415 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (_tmp13_);
-#line 417 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->default_ctx;
-#line 417 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_restore (_tmp14_);
-#line 3892 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_erase_box (EditingToolsPhotoCanvas* self,
- Box* box)
-{
- Box _tmp0_;
- gint _tmp1_;
- Box _tmp2_;
- gint _tmp3_;
- Box _tmp4_;
- gint _tmp5_;
- Box _tmp6_;
- gint _tmp7_;
- Box _tmp8_;
- gint _tmp9_;
- Box _tmp10_;
- gint _tmp11_;
- Box _tmp12_;
- gint _tmp13_;
- Box _tmp14_;
- gint _tmp15_;
-#line 420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (box != NULL);
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = *box;
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_.left;
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *box;
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.top;
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_erase_horizontal_line (self, _tmp1_, _tmp3_, box_get_width (box));
-#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = *box;
-#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.left;
-#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = *box;
-#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.bottom;
-#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_erase_horizontal_line (self, _tmp5_, _tmp7_, box_get_width (box));
-#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = *box;
-#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.left;
-#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = *box;
-#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.top;
-#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_erase_vertical_line (self, _tmp9_, _tmp11_, box_get_height (box));
-#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = *box;
-#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.right;
-#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = *box;
-#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_.top;
-#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_erase_vertical_line (self, _tmp13_, _tmp15_, box_get_height (box));
-#line 3960 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_invalidate_area (EditingToolsPhotoCanvas* self,
- Box* area)
-{
- GdkRectangle rect = {0};
- GdkRectangle _tmp0_ = {0};
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- GdkWindow* _tmp7_;
- GdkRectangle _tmp8_;
-#line 428 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self));
-#line 428 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (area != NULL);
-#line 429 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_rectangle (area, &_tmp0_);
-#line 429 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rect = _tmp0_;
-#line 430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = rect.x;
-#line 430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->scaled_position;
-#line 430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rect.x = _tmp1_ + _tmp3_;
-#line 431 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = rect.y;
-#line 431 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->scaled_position;
-#line 431 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.y;
-#line 431 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rect.y = _tmp4_ + _tmp6_;
-#line 433 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->drawing_window;
-#line 433 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = rect;
-#line 433 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gdk_window_invalidate_rect (_tmp7_, &_tmp8_, FALSE);
-#line 4008 "EditingTools.c"
-}
-
-
-static cairo_surface_t*
-editing_tools_photo_canvas_pixbuf_to_surface (EditingToolsPhotoCanvas* self,
- cairo_t* default_ctx,
- GdkPixbuf* pixbuf,
- GdkRectangle* pos)
-{
- cairo_surface_t* result = NULL;
- cairo_surface_t* surface = NULL;
- cairo_surface_t* _tmp0_;
- GdkRectangle _tmp1_;
- gint _tmp2_;
- GdkRectangle _tmp3_;
- gint _tmp4_;
- cairo_surface_t* _tmp5_;
- cairo_t* ctx = NULL;
- cairo_t* _tmp6_;
-#line 436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL);
-#line 436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (default_ctx != NULL, NULL);
-#line 436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (pos != NULL, NULL);
-#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = cairo_get_target (default_ctx);
-#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = *pos;
-#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_.width;
-#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = *pos;
-#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.height;
-#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = cairo_surface_create_similar (_tmp0_, CAIRO_CONTENT_COLOR_ALPHA, _tmp2_, _tmp4_);
-#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- surface = _tmp5_;
-#line 440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = cairo_create (surface);
-#line 440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ctx = _tmp6_;
-#line 441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- paint_pixmap_with_background (ctx, pixbuf, 0, 0);
-#line 442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_paint (ctx);
-#line 443 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = surface;
-#line 443 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (ctx);
-#line 443 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 4064 "EditingTools.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__POINTER_BOXED (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__POINTER_BOXED) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__POINTER_BOXED callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (n_param_values == 3);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data1 = closure->data;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data2 = param_values->data[0].v_pointer;
-#line 4090 "EditingTools.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data1 = param_values->data[0].v_pointer;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data2 = closure->data;
-#line 4096 "EditingTools.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- callback = (GMarshalFunc_VOID__POINTER_BOXED) (marshal_data ? marshal_data : cc->callback);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- callback (data1, g_value_get_pointer (param_values + 1), g_value_get_boxed (param_values + 2), data2);
-#line 4102 "EditingTools.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__BOXED_OBJECT_BOXED (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__BOXED_OBJECT_BOXED) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2);
- register GMarshalFunc_VOID__BOXED_OBJECT_BOXED callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (n_param_values == 4);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data1 = closure->data;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data2 = param_values->data[0].v_pointer;
-#line 4128 "EditingTools.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data1 = param_values->data[0].v_pointer;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data2 = closure->data;
-#line 4134 "EditingTools.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- callback = (GMarshalFunc_VOID__BOXED_OBJECT_BOXED) (marshal_data ? marshal_data : cc->callback);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- callback (data1, g_value_get_boxed (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boxed (param_values + 3), data2);
-#line 4140 "EditingTools.c"
-}
-
-
-static void
-editing_tools_value_photo_canvas_init (GValue* value)
-{
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 4149 "EditingTools.c"
-}
-
-
-static void
-editing_tools_value_photo_canvas_free_value (GValue* value)
-{
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (value->data[0].v_pointer) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_unref (value->data[0].v_pointer);
-#line 4160 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_value_photo_canvas_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (src_value->data[0].v_pointer) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dest_value->data[0].v_pointer = editing_tools_photo_canvas_ref (src_value->data[0].v_pointer);
-#line 4173 "EditingTools.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4177 "EditingTools.c"
- }
-}
-
-
-static gpointer
-editing_tools_value_photo_canvas_peek_pointer (const GValue* value)
-{
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return value->data[0].v_pointer;
-#line 4187 "EditingTools.c"
-}
-
-
-static gchar*
-editing_tools_value_photo_canvas_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (collect_values[0].v_pointer) {
-#line 4199 "EditingTools.c"
- EditingToolsPhotoCanvas * object;
- object = collect_values[0].v_pointer;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4206 "EditingTools.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.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 4210 "EditingTools.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = editing_tools_photo_canvas_ref (object);
-#line 4214 "EditingTools.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 4218 "EditingTools.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return NULL;
-#line 4222 "EditingTools.c"
-}
-
-
-static gchar*
-editing_tools_value_photo_canvas_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- EditingToolsPhotoCanvas ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!object_p) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4238 "EditingTools.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!value->data[0].v_pointer) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = NULL;
-#line 4244 "EditingTools.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = value->data[0].v_pointer;
-#line 4248 "EditingTools.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = editing_tools_photo_canvas_ref (value->data[0].v_pointer);
-#line 4252 "EditingTools.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return NULL;
-#line 4256 "EditingTools.c"
-}
-
-
-GParamSpec*
-editing_tools_param_spec_photo_canvas (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- EditingToolsParamSpecPhotoCanvas* spec;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (g_type_is_a (object_type, EDITING_TOOLS_TYPE_PHOTO_CANVAS), NULL);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return G_PARAM_SPEC (spec);
-#line 4276 "EditingTools.c"
-}
-
-
-gpointer
-editing_tools_value_get_photo_canvas (const GValue* value)
-{
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_PHOTO_CANVAS), NULL);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return value->data[0].v_pointer;
-#line 4287 "EditingTools.c"
-}
-
-
-void
-editing_tools_value_set_photo_canvas (GValue* value,
- gpointer v_object)
-{
- EditingToolsPhotoCanvas * old;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_PHOTO_CANVAS));
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old = value->data[0].v_pointer;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (v_object) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_TYPE_PHOTO_CANVAS));
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = v_object;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_ref (value->data[0].v_pointer);
-#line 4310 "EditingTools.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 4314 "EditingTools.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (old) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_unref (old);
-#line 4320 "EditingTools.c"
- }
-}
-
-
-void
-editing_tools_value_take_photo_canvas (GValue* value,
- gpointer v_object)
-{
- EditingToolsPhotoCanvas * old;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_PHOTO_CANVAS));
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old = value->data[0].v_pointer;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (v_object) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_TYPE_PHOTO_CANVAS));
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = v_object;
-#line 4342 "EditingTools.c"
- } else {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 4346 "EditingTools.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (old) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_unref (old);
-#line 4352 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_photo_canvas_class_init (EditingToolsPhotoCanvasClass * klass)
-{
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_parent_class = g_type_class_peek_parent (klass);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsPhotoCanvasClass *) klass)->finalize = editing_tools_photo_canvas_finalize;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsPhotoCanvasPrivate));
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsPhotoCanvasClass *) klass)->repaint = (void (*) (EditingToolsPhotoCanvas *)) editing_tools_photo_canvas_real_repaint;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_NEW_SURFACE_SIGNAL] = 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"
- editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_RESIZED_SCALED_PIXBUF_SIGNAL] = 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 4372 "EditingTools.c"
-}
-
-
-static void
-editing_tools_photo_canvas_instance_init (EditingToolsPhotoCanvas * self)
-{
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_PHOTO_CANVAS_GET_PRIVATE (self);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->ref_count = 1;
-#line 4383 "EditingTools.c"
-}
-
-
-static void
-editing_tools_photo_canvas_finalize (EditingToolsPhotoCanvas * obj)
-{
- EditingToolsPhotoCanvas * self;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_destroy (self);
-#line 104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->container);
-#line 105 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->drawing_window);
-#line 106 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->photo);
-#line 107 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->default_ctx);
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->scaled);
-#line 110 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->scaled_pixbuf);
-#line 4407 "EditingTools.c"
-}
-
-
-GType
-editing_tools_photo_canvas_get_type (void)
-{
- static volatile gsize editing_tools_photo_canvas_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_photo_canvas_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { editing_tools_value_photo_canvas_init, editing_tools_value_photo_canvas_free_value, editing_tools_value_photo_canvas_copy_value, editing_tools_value_photo_canvas_peek_pointer, "p", editing_tools_value_photo_canvas_collect_value, "p", editing_tools_value_photo_canvas_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsPhotoCanvasClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_photo_canvas_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsPhotoCanvas), 0, (GInstanceInitFunc) editing_tools_photo_canvas_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType editing_tools_photo_canvas_type_id;
- editing_tools_photo_canvas_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EditingToolsPhotoCanvas", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&editing_tools_photo_canvas_type_id__volatile, editing_tools_photo_canvas_type_id);
- }
- return editing_tools_photo_canvas_type_id__volatile;
-}
-
-
-gpointer
-editing_tools_photo_canvas_ref (gpointer instance)
-{
- EditingToolsPhotoCanvas * self;
- self = instance;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return instance;
-#line 4436 "EditingTools.c"
-}
-
-
-void
-editing_tools_photo_canvas_unref (gpointer instance)
-{
- EditingToolsPhotoCanvas * self;
- self = instance;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS (self)->finalize (self);
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 4451 "EditingTools.c"
- }
-}
-
-
-EditingToolsEditingTool*
-editing_tools_editing_tool_construct (GType object_type,
- const gchar* name)
-{
- EditingToolsEditingTool* self = NULL;
- gchar* _tmp0_;
-#line 468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsEditingTool*) g_type_create_instance (object_type);
-#line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = g_strdup (name);
-#line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (self->name);
-#line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->name = _tmp0_;
-#line 468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 4474 "EditingTools.c"
-}
-
-
-static gpointer
-_editing_tools_photo_canvas_ref0 (gpointer self)
-{
-#line 481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self ? editing_tools_photo_canvas_ref (self) : NULL;
-#line 4483 "EditingTools.c"
-}
-
-
-static gboolean
-_editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event (GtkWidget* _sender,
- GdkEventKey* event,
- gpointer self)
-{
- gboolean result;
- result = editing_tools_editing_tool_on_keypress ((EditingToolsEditingTool*) self, event);
-#line 485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 4496 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_real_activate (EditingToolsEditingTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
- EditingToolsPhotoCanvas* _tmp0_;
- EditingToolsEditingToolWindow* _tmp1_;
- EditingToolsPhotoCanvas* _tmp2_;
- EditingToolsEditingToolWindow* _tmp3_;
- EditingToolsEditingToolWindow* _tmp4_;
-#line 476 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->canvas;
-#line 478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_assert (_tmp0_ == NULL, "this.canvas == null");
-#line 479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->tool_window;
-#line 479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_assert (_tmp1_ == NULL, "tool_window == null");
-#line 481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _editing_tools_photo_canvas_ref0 (canvas);
-#line 481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_photo_canvas_unref0 (self->canvas);
-#line 481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->canvas = _tmp2_;
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = editing_tools_editing_tool_get_tool_window (self);
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->tool_window);
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->tool_window = _tmp3_;
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->tool_window;
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp4_ != NULL) {
-#line 4535 "EditingTools.c"
- EditingToolsEditingToolWindow* _tmp5_;
-#line 485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->tool_window;
-#line 485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, self);
-#line 4541 "EditingTools.c"
- }
-#line 487 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (self, editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_ACTIVATED_SIGNAL], 0);
-#line 4545 "EditingTools.c"
-}
-
-
-void
-editing_tools_editing_tool_activate (EditingToolsEditingTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
-#line 476 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self));
-#line 476 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->activate (self, canvas);
-#line 4557 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_real_deactivate (EditingToolsEditingTool* self)
-{
- gboolean _tmp0_ = FALSE;
- EditingToolsPhotoCanvas* _tmp1_;
- EditingToolsEditingToolWindow* _tmp3_;
-#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->canvas;
-#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_ == NULL) {
-#line 4571 "EditingTools.c"
- EditingToolsEditingToolWindow* _tmp2_;
-#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->tool_window;
-#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _tmp2_ == NULL;
-#line 4577 "EditingTools.c"
- } else {
-#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = FALSE;
-#line 4581 "EditingTools.c"
- }
-#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_) {
-#line 494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 4587 "EditingTools.c"
- }
-#line 496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_photo_canvas_unref0 (self->canvas);
-#line 496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->canvas = NULL;
-#line 498 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->tool_window;
-#line 498 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_ != NULL) {
-#line 4597 "EditingTools.c"
- EditingToolsEditingToolWindow* _tmp4_;
- guint _tmp5_;
-#line 499 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->tool_window;
-#line 499 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("key-press-event", gtk_widget_get_type (), &_tmp5_, NULL, FALSE);
-#line 499 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, self);
-#line 500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->tool_window);
-#line 500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->tool_window = NULL;
-#line 4610 "EditingTools.c"
- }
-#line 503 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (self, editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_DEACTIVATED_SIGNAL], 0);
-#line 4614 "EditingTools.c"
-}
-
-
-void
-editing_tools_editing_tool_deactivate (EditingToolsEditingTool* self)
-{
-#line 491 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self));
-#line 491 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->deactivate (self);
-#line 4625 "EditingTools.c"
-}
-
-
-gboolean
-editing_tools_editing_tool_is_activated (EditingToolsEditingTool* self)
-{
- gboolean result = FALSE;
- EditingToolsPhotoCanvas* _tmp0_;
-#line 506 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), FALSE);
-#line 507 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->canvas;
-#line 507 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp0_ != NULL;
-#line 507 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 4642 "EditingTools.c"
-}
-
-
-static EditingToolsEditingToolWindow*
-editing_tools_editing_tool_real_get_tool_window (EditingToolsEditingTool* self)
-{
- EditingToolsEditingToolWindow* result = NULL;
-#line 511 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = NULL;
-#line 511 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 4654 "EditingTools.c"
-}
-
-
-EditingToolsEditingToolWindow*
-editing_tools_editing_tool_get_tool_window (EditingToolsEditingTool* self)
-{
-#line 510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), NULL);
-#line 510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->get_tool_window (self);
-#line 4665 "EditingTools.c"
-}
-
-
-static GdkPixbuf*
-editing_tools_editing_tool_real_get_display_pixbuf (EditingToolsEditingTool* self,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error)
-{
- Dimensions _vala_max_dim = {0};
- GdkPixbuf* result = NULL;
-#line 525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dimensions_init (&_vala_max_dim, 0, 0);
-#line 529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = NULL;
-#line 529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (max_dim) {
-#line 529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *max_dim = _vala_max_dim;
-#line 4690 "EditingTools.c"
- }
-#line 529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 4694 "EditingTools.c"
-}
-
-
-GdkPixbuf*
-editing_tools_editing_tool_get_display_pixbuf (EditingToolsEditingTool* self,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error)
-{
-#line 525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), NULL);
-#line 525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->get_display_pixbuf (self, scaling, photo, max_dim, error);
-#line 4709 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_real_on_left_click (EditingToolsEditingTool* self,
- gint x,
- gint y)
-{
-}
-
-
-void
-editing_tools_editing_tool_on_left_click (EditingToolsEditingTool* self,
- gint x,
- gint y)
-{
-#line 532 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self));
-#line 532 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_left_click (self, x, y);
-#line 4730 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_real_on_left_released (EditingToolsEditingTool* self,
- gint x,
- gint y)
-{
-}
-
-
-void
-editing_tools_editing_tool_on_left_released (EditingToolsEditingTool* self,
- gint x,
- gint y)
-{
-#line 535 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self));
-#line 535 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_left_released (self, x, y);
-#line 4751 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_real_on_motion (EditingToolsEditingTool* self,
- gint x,
- gint y,
- GdkModifierType mask)
-{
-}
-
-
-void
-editing_tools_editing_tool_on_motion (EditingToolsEditingTool* self,
- gint x,
- gint y,
- GdkModifierType mask)
-{
-#line 538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self));
-#line 538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_motion (self, x, y, mask);
-#line 4774 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_editing_tool_real_on_leave_notify_event (EditingToolsEditingTool* self)
-{
- gboolean result = FALSE;
-#line 542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 4786 "EditingTools.c"
-}
-
-
-gboolean
-editing_tools_editing_tool_on_leave_notify_event (EditingToolsEditingTool* self)
-{
-#line 541 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), FALSE);
-#line 541 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_leave_notify_event (self);
-#line 4797 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_editing_tool_real_on_keypress (EditingToolsEditingTool* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
-#line 545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 547 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = event->keyval;
-#line 547 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 547 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (g_strcmp0 (_tmp1_, "Escape") == 0) {
-#line 548 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_notify_cancel (self);
-#line 550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 4822 "EditingTools.c"
- }
-#line 553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 4828 "EditingTools.c"
-}
-
-
-gboolean
-editing_tools_editing_tool_on_keypress (EditingToolsEditingTool* self,
- GdkEventKey* event)
-{
-#line 545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), FALSE);
-#line 545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_keypress (self, event);
-#line 4840 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_real_paint (EditingToolsEditingTool* self,
- cairo_t* ctx)
-{
-#line 556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 4850 "EditingTools.c"
-}
-
-
-void
-editing_tools_editing_tool_paint (EditingToolsEditingTool* self,
- cairo_t* ctx)
-{
-#line 556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self));
-#line 556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->paint (self, ctx);
-#line 4862 "EditingTools.c"
-}
-
-
-void
-editing_tools_editing_tool_notify_cancel (EditingToolsEditingTool* self)
-{
-#line 560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self));
-#line 561 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (self, editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_CANCELLED_SIGNAL], 0);
-#line 4873 "EditingTools.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOXED_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_BOXED_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gboolean arg_4, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT_BOXED_BOOLEAN callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (n_param_values == 5);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data1 = closure->data;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data2 = param_values->data[0].v_pointer;
-#line 4899 "EditingTools.c"
- } else {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data1 = param_values->data[0].v_pointer;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- data2 = closure->data;
-#line 4905 "EditingTools.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT_BOXED_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boxed (param_values + 3), g_value_get_boolean (param_values + 4), data2);
-#line 4911 "EditingTools.c"
-}
-
-
-static void
-editing_tools_value_editing_tool_init (GValue* value)
-{
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 4920 "EditingTools.c"
-}
-
-
-static void
-editing_tools_value_editing_tool_free_value (GValue* value)
-{
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (value->data[0].v_pointer) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_unref (value->data[0].v_pointer);
-#line 4931 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_value_editing_tool_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (src_value->data[0].v_pointer) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dest_value->data[0].v_pointer = editing_tools_editing_tool_ref (src_value->data[0].v_pointer);
-#line 4944 "EditingTools.c"
- } else {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 4948 "EditingTools.c"
- }
-}
-
-
-static gpointer
-editing_tools_value_editing_tool_peek_pointer (const GValue* value)
-{
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return value->data[0].v_pointer;
-#line 4958 "EditingTools.c"
-}
-
-
-static gchar*
-editing_tools_value_editing_tool_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (collect_values[0].v_pointer) {
-#line 4970 "EditingTools.c"
- EditingToolsEditingTool * object;
- object = collect_values[0].v_pointer;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4977 "EditingTools.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.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 4981 "EditingTools.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = editing_tools_editing_tool_ref (object);
-#line 4985 "EditingTools.c"
- } else {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 4989 "EditingTools.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return NULL;
-#line 4993 "EditingTools.c"
-}
-
-
-static gchar*
-editing_tools_value_editing_tool_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- EditingToolsEditingTool ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!object_p) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5009 "EditingTools.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!value->data[0].v_pointer) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = NULL;
-#line 5015 "EditingTools.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = value->data[0].v_pointer;
-#line 5019 "EditingTools.c"
- } else {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = editing_tools_editing_tool_ref (value->data[0].v_pointer);
-#line 5023 "EditingTools.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return NULL;
-#line 5027 "EditingTools.c"
-}
-
-
-GParamSpec*
-editing_tools_param_spec_editing_tool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- EditingToolsParamSpecEditingTool* spec;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (g_type_is_a (object_type, EDITING_TOOLS_TYPE_EDITING_TOOL), NULL);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return G_PARAM_SPEC (spec);
-#line 5047 "EditingTools.c"
-}
-
-
-gpointer
-editing_tools_value_get_editing_tool (const GValue* value)
-{
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_EDITING_TOOL), NULL);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return value->data[0].v_pointer;
-#line 5058 "EditingTools.c"
-}
-
-
-void
-editing_tools_value_set_editing_tool (GValue* value,
- gpointer v_object)
-{
- EditingToolsEditingTool * old;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_EDITING_TOOL));
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old = value->data[0].v_pointer;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (v_object) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_TYPE_EDITING_TOOL));
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = v_object;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_ref (value->data[0].v_pointer);
-#line 5081 "EditingTools.c"
- } else {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 5085 "EditingTools.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (old) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_unref (old);
-#line 5091 "EditingTools.c"
- }
-}
-
-
-void
-editing_tools_value_take_editing_tool (GValue* value,
- gpointer v_object)
-{
- EditingToolsEditingTool * old;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_EDITING_TOOL));
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old = value->data[0].v_pointer;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (v_object) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_TYPE_EDITING_TOOL));
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = v_object;
-#line 5113 "EditingTools.c"
- } else {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 5117 "EditingTools.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (old) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_unref (old);
-#line 5123 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_editing_tool_class_init (EditingToolsEditingToolClass * klass)
-{
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_parent_class = g_type_class_peek_parent (klass);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_editing_tool_finalize;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsEditingToolPrivate));
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_editing_tool_real_activate;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_editing_tool_real_deactivate;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_editing_tool_real_get_tool_window;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->get_display_pixbuf = (GdkPixbuf* (*) (EditingToolsEditingTool *, Scaling*, Photo*, Dimensions*, GError**)) editing_tools_editing_tool_real_get_display_pixbuf;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_left_click = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_editing_tool_real_on_left_click;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_left_released = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_editing_tool_real_on_left_released;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_motion = (void (*) (EditingToolsEditingTool *, gint, gint, GdkModifierType)) editing_tools_editing_tool_real_on_motion;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_leave_notify_event = (gboolean (*) (EditingToolsEditingTool *)) editing_tools_editing_tool_real_on_leave_notify_event;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_editing_tool_real_on_keypress;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_editing_tool_real_paint;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_ACTIVATED_SIGNAL] = g_signal_new ("activated", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_DEACTIVATED_SIGNAL] = 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 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL] = 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 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_CANCELLED_SIGNAL] = 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 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_ABORTED_SIGNAL] = g_signal_new ("aborted", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 5167 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_instance_init (EditingToolsEditingTool * self)
-{
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_EDITING_TOOL_GET_PRIVATE (self);
-#line 448 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->canvas = NULL;
-#line 450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->tool_window = NULL;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->ref_count = 1;
-#line 5182 "EditingTools.c"
-}
-
-
-static void
-editing_tools_editing_tool_finalize (EditingToolsEditingTool * obj)
-{
- EditingToolsEditingTool * self;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_destroy (self);
-#line 448 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_photo_canvas_unref0 (self->canvas);
-#line 450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->tool_window);
-#line 451 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->surface);
-#line 452 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (self->name);
-#line 5202 "EditingTools.c"
-}
-
-
-GType
-editing_tools_editing_tool_get_type (void)
-{
- static volatile gsize editing_tools_editing_tool_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_editing_tool_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { editing_tools_value_editing_tool_init, editing_tools_value_editing_tool_free_value, editing_tools_value_editing_tool_copy_value, editing_tools_value_editing_tool_peek_pointer, "p", editing_tools_value_editing_tool_collect_value, "p", editing_tools_value_editing_tool_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsEditingToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_editing_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsEditingTool), 0, (GInstanceInitFunc) editing_tools_editing_tool_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType editing_tools_editing_tool_type_id;
- editing_tools_editing_tool_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EditingToolsEditingTool", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&editing_tools_editing_tool_type_id__volatile, editing_tools_editing_tool_type_id);
- }
- return editing_tools_editing_tool_type_id__volatile;
-}
-
-
-gpointer
-editing_tools_editing_tool_ref (gpointer instance)
-{
- EditingToolsEditingTool * self;
- self = instance;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return instance;
-#line 5231 "EditingTools.c"
-}
-
-
-void
-editing_tools_editing_tool_unref (gpointer instance)
-{
- EditingToolsEditingTool * self;
- self = instance;
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->finalize (self);
-#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 5246 "EditingTools.c"
- }
-}
-
-
-static EditingToolsCropToolReticleOrientation
-editing_tools_crop_tool_reticle_orientation_toggle (EditingToolsCropToolReticleOrientation self)
-{
- EditingToolsCropToolReticleOrientation result = 0;
- EditingToolsCropToolReticleOrientation _tmp0_ = 0;
-#line 615 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (self == EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE) {
-#line 615 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT;
-#line 5260 "EditingTools.c"
- } else {
-#line 616 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE;
-#line 5264 "EditingTools.c"
- }
-#line 615 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp0_;
-#line 615 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 5270 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_crop_tool_reticle_orientation_get_type (void)
-{
- static volatile gsize editing_tools_crop_tool_reticle_orientation_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_crop_tool_reticle_orientation_type_id__volatile)) {
- static const GEnumValue values[] = {{EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE, "EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE", "landscape"}, {EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT, "EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT", "portrait"}, {0, NULL, NULL}};
- GType editing_tools_crop_tool_reticle_orientation_type_id;
- editing_tools_crop_tool_reticle_orientation_type_id = g_enum_register_static ("EditingToolsCropToolReticleOrientation", values);
- g_once_init_leave (&editing_tools_crop_tool_reticle_orientation_type_id__volatile, editing_tools_crop_tool_reticle_orientation_type_id);
- }
- return editing_tools_crop_tool_reticle_orientation_type_id__volatile;
-}
-
-
-static GType
-editing_tools_crop_tool_constraint_mode_get_type (void)
-{
- static volatile gsize editing_tools_crop_tool_constraint_mode_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_crop_tool_constraint_mode_type_id__volatile)) {
- static const GEnumValue values[] = {{EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL, "EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL", "normal"}, {EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM, "EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM", "custom"}, {0, NULL, NULL}};
- GType editing_tools_crop_tool_constraint_mode_type_id;
- editing_tools_crop_tool_constraint_mode_type_id = g_enum_register_static ("EditingToolsCropToolConstraintMode", values);
- g_once_init_leave (&editing_tools_crop_tool_constraint_mode_type_id__volatile, editing_tools_crop_tool_constraint_mode_type_id);
- }
- return editing_tools_crop_tool_constraint_mode_type_id__volatile;
-}
-
-
-static EditingToolsCropTool*
-editing_tools_crop_tool_construct (GType object_type)
-{
- EditingToolsCropTool* self = NULL;
-#line 716 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsCropTool*) editing_tools_editing_tool_construct (object_type, "CropTool");
-#line 715 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 5310 "EditingTools.c"
-}
-
-
-static EditingToolsCropTool*
-editing_tools_crop_tool_new (void)
-{
-#line 715 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_crop_tool_construct (EDITING_TOOLS_TYPE_CROP_TOOL);
-#line 5319 "EditingTools.c"
-}
-
-
-EditingToolsCropTool*
-editing_tools_crop_tool_factory (void)
-{
- EditingToolsCropTool* result = NULL;
- EditingToolsCropTool* _tmp0_;
-#line 720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_crop_tool_new ();
-#line 720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp0_;
-#line 720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 5334 "EditingTools.c"
-}
-
-
-gboolean
-editing_tools_crop_tool_is_available (Photo* photo,
- Scaling* scaling)
-{
- gboolean result = FALSE;
- Dimensions dim = {0};
- Dimensions _tmp0_ = {0};
- Dimensions _tmp1_ = {0};
- gboolean _tmp2_ = FALSE;
- Dimensions _tmp3_;
- gint _tmp4_;
-#line 723 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), FALSE);
-#line 723 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (scaling != NULL, FALSE);
-#line 724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_get_original_dimensions (photo, &_tmp0_);
-#line 724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scaling_get_scaled_dimensions (scaling, &_tmp0_, &_tmp1_);
-#line 724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dim = _tmp1_;
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = dim;
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.width;
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp4_ > EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) {
-#line 5365 "EditingTools.c"
- Dimensions _tmp5_;
- gint _tmp6_;
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = dim;
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.height;
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp6_ > EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE;
-#line 5374 "EditingTools.c"
- } else {
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = FALSE;
-#line 5378 "EditingTools.c"
- }
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp2_;
-#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 5384 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add7 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5400 "EditingTools.c"
- }
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5406 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add8 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5422 "EditingTools.c"
- }
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5428 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add9 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5444 "EditingTools.c"
- }
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5450 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add10 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5466 "EditingTools.c"
- }
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5472 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add11 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5488 "EditingTools.c"
- }
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5494 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add12 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5510 "EditingTools.c"
- }
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5516 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add13 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5532 "EditingTools.c"
- }
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5538 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add14 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5554 "EditingTools.c"
- }
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5560 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add15 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5576 "EditingTools.c"
- }
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5582 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add16 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5598 "EditingTools.c"
- }
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5604 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add17 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5620 "EditingTools.c"
- }
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5626 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add18 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5642 "EditingTools.c"
- }
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5648 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add19 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5664 "EditingTools.c"
- }
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5670 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add20 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5686 "EditingTools.c"
- }
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5692 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add21 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5708 "EditingTools.c"
- }
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5714 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add22 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5730 "EditingTools.c"
- }
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5736 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add23 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5752 "EditingTools.c"
- }
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5758 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add24 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5774 "EditingTools.c"
- }
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5780 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add25 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5796 "EditingTools.c"
- }
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5802 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add26 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5818 "EditingTools.c"
- }
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5824 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add27 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5840 "EditingTools.c"
- }
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5846 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add28 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5862 "EditingTools.c"
- }
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5868 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add29 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5884 "EditingTools.c"
- }
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5890 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add30 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5906 "EditingTools.c"
- }
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5912 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add31 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5928 "EditingTools.c"
- }
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5934 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add32 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5950 "EditingTools.c"
- }
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5956 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add33 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5972 "EditingTools.c"
- }
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 5978 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add34 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 5994 "EditingTools.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 6000 "EditingTools.c"
-}
-
-
-static void
-_vala_array_add35 (EditingToolsCropToolConstraintDescription** * array,
- int* length,
- int* size,
- EditingToolsCropToolConstraintDescription* value)
-{
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((*length) == (*size)) {
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1);
-#line 6016 "EditingTools.c"
- }
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[(*length)++] = value;
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*array)[*length] = NULL;
-#line 6022 "EditingTools.c"
-}
-
-
-static EditingToolsCropToolConstraintDescription**
-editing_tools_crop_tool_create_constraints (int* result_length1)
-{
- EditingToolsCropToolConstraintDescription** result = NULL;
- EditingToolsCropToolConstraintDescription** _result_ = NULL;
- EditingToolsCropToolConstraintDescription** _tmp0_;
- gint _result__length1;
- gint __result__size_;
- EditingToolsCropToolConstraintDescription** _tmp1_;
- gint _tmp1__length1;
- EditingToolsCropToolConstraintDescription* _tmp2_;
- EditingToolsCropToolConstraintDescription** _tmp3_;
- gint _tmp3__length1;
- EditingToolsCropToolConstraintDescription* _tmp4_;
- EditingToolsCropToolConstraintDescription** _tmp5_;
- gint _tmp5__length1;
- EditingToolsCropToolConstraintDescription* _tmp6_;
- EditingToolsCropToolConstraintDescription** _tmp7_;
- gint _tmp7__length1;
- EditingToolsCropToolConstraintDescription* _tmp8_;
- EditingToolsCropToolConstraintDescription** _tmp9_;
- gint _tmp9__length1;
- EditingToolsCropToolConstraintDescription* _tmp10_;
- EditingToolsCropToolConstraintDescription** _tmp11_;
- gint _tmp11__length1;
- EditingToolsCropToolConstraintDescription* _tmp12_;
- EditingToolsCropToolConstraintDescription** _tmp13_;
- gint _tmp13__length1;
- EditingToolsCropToolConstraintDescription* _tmp14_;
- EditingToolsCropToolConstraintDescription** _tmp15_;
- gint _tmp15__length1;
- EditingToolsCropToolConstraintDescription* _tmp16_;
- EditingToolsCropToolConstraintDescription** _tmp17_;
- gint _tmp17__length1;
- EditingToolsCropToolConstraintDescription* _tmp18_;
- EditingToolsCropToolConstraintDescription** _tmp19_;
- gint _tmp19__length1;
- EditingToolsCropToolConstraintDescription* _tmp20_;
- EditingToolsCropToolConstraintDescription** _tmp21_;
- gint _tmp21__length1;
- EditingToolsCropToolConstraintDescription* _tmp22_;
- EditingToolsCropToolConstraintDescription** _tmp23_;
- gint _tmp23__length1;
- EditingToolsCropToolConstraintDescription* _tmp24_;
- EditingToolsCropToolConstraintDescription** _tmp25_;
- gint _tmp25__length1;
- EditingToolsCropToolConstraintDescription* _tmp26_;
- EditingToolsCropToolConstraintDescription** _tmp27_;
- gint _tmp27__length1;
- EditingToolsCropToolConstraintDescription* _tmp28_;
- EditingToolsCropToolConstraintDescription** _tmp29_;
- gint _tmp29__length1;
- EditingToolsCropToolConstraintDescription* _tmp30_;
- EditingToolsCropToolConstraintDescription** _tmp31_;
- gint _tmp31__length1;
- EditingToolsCropToolConstraintDescription* _tmp32_;
- EditingToolsCropToolConstraintDescription** _tmp33_;
- gint _tmp33__length1;
- EditingToolsCropToolConstraintDescription* _tmp34_;
- EditingToolsCropToolConstraintDescription** _tmp35_;
- gint _tmp35__length1;
- EditingToolsCropToolConstraintDescription* _tmp36_;
- EditingToolsCropToolConstraintDescription** _tmp37_;
- gint _tmp37__length1;
- EditingToolsCropToolConstraintDescription* _tmp38_;
- EditingToolsCropToolConstraintDescription** _tmp39_;
- gint _tmp39__length1;
- EditingToolsCropToolConstraintDescription* _tmp40_;
- EditingToolsCropToolConstraintDescription** _tmp41_;
- gint _tmp41__length1;
- EditingToolsCropToolConstraintDescription* _tmp42_;
- EditingToolsCropToolConstraintDescription** _tmp43_;
- gint _tmp43__length1;
- EditingToolsCropToolConstraintDescription* _tmp44_;
- EditingToolsCropToolConstraintDescription** _tmp45_;
- gint _tmp45__length1;
- EditingToolsCropToolConstraintDescription* _tmp46_;
- EditingToolsCropToolConstraintDescription** _tmp47_;
- gint _tmp47__length1;
- EditingToolsCropToolConstraintDescription* _tmp48_;
- EditingToolsCropToolConstraintDescription** _tmp49_;
- gint _tmp49__length1;
- EditingToolsCropToolConstraintDescription* _tmp50_;
- EditingToolsCropToolConstraintDescription** _tmp51_;
- gint _tmp51__length1;
- EditingToolsCropToolConstraintDescription* _tmp52_;
- EditingToolsCropToolConstraintDescription** _tmp53_;
- gint _tmp53__length1;
- EditingToolsCropToolConstraintDescription* _tmp54_;
- EditingToolsCropToolConstraintDescription** _tmp55_;
- gint _tmp55__length1;
- EditingToolsCropToolConstraintDescription* _tmp56_;
- EditingToolsCropToolConstraintDescription** _tmp57_;
- gint _tmp57__length1;
- EditingToolsCropToolConstraintDescription* _tmp58_;
- EditingToolsCropToolConstraintDescription** _tmp59_;
- gint _tmp59__length1;
-#line 730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = g_new0 (EditingToolsCropToolConstraintDescription*, 0 + 1);
-#line 730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp0_;
-#line 730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result__length1 = 0;
-#line 730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- __result__size_ = _result__length1;
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _result_;
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1__length1 = _result__length1;
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_crop_tool_constraint_description_new (_ ("Unconstrained"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO);
-#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add7 (&_result_, &_result__length1, &__result__size_, _tmp2_);
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _result_;
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3__length1 = _result__length1;
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = editing_tools_crop_tool_constraint_description_new (_ ("Square"), 1, 1, FALSE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add8 (&_result_, &_result__length1, &__result__size_, _tmp4_);
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _result_;
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5__length1 = _result__length1;
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = editing_tools_crop_tool_constraint_description_new (_ ("Screen"), 0, 0, TRUE, EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO);
-#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add9 (&_result_, &_result__length1, &__result__size_, _tmp6_);
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _result_;
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7__length1 = _result__length1;
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = editing_tools_crop_tool_constraint_description_new (_ ("Original Size"), 0, 0, TRUE, EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO);
-#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add10 (&_result_, &_result__length1, &__result__size_, _tmp8_);
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _result_;
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9__length1 = _result__length1;
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = editing_tools_crop_tool_constraint_description_new (_ ("-"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_SEPARATOR);
-#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add11 (&_result_, &_result__length1, &__result__size_, _tmp10_);
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _result_;
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11__length1 = _result__length1;
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = editing_tools_crop_tool_constraint_description_new (_ ("SD Video (4 ∶ 3)"), 4, 3, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add12 (&_result_, &_result__length1, &__result__size_, _tmp12_);
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _result_;
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13__length1 = _result__length1;
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = editing_tools_crop_tool_constraint_description_new (_ ("HD Video (16 ∶ 9)"), 16, 9, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add13 (&_result_, &_result__length1, &__result__size_, _tmp14_);
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _result_;
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15__length1 = _result__length1;
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = editing_tools_crop_tool_constraint_description_new (_ ("-"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_SEPARATOR);
-#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add14 (&_result_, &_result__length1, &__result__size_, _tmp16_);
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _result_;
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17__length1 = _result__length1;
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = editing_tools_crop_tool_constraint_description_new (_ ("Wallet (2 × 3 in.)"), 3, 2, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add15 (&_result_, &_result__length1, &__result__size_, _tmp18_);
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _result_;
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19__length1 = _result__length1;
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = editing_tools_crop_tool_constraint_description_new (_ ("Notecard (3 × 5 in.)"), 5, 3, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add16 (&_result_, &_result__length1, &__result__size_, _tmp20_);
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _result_;
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21__length1 = _result__length1;
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = editing_tools_crop_tool_constraint_description_new (_ ("4 × 6 in."), 6, 4, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add17 (&_result_, &_result__length1, &__result__size_, _tmp22_);
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _result_;
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23__length1 = _result__length1;
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = editing_tools_crop_tool_constraint_description_new (_ ("5 × 7 in."), 7, 5, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add18 (&_result_, &_result__length1, &__result__size_, _tmp24_);
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _result_;
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25__length1 = _result__length1;
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = editing_tools_crop_tool_constraint_description_new (_ ("8 × 10 in."), 10, 8, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add19 (&_result_, &_result__length1, &__result__size_, _tmp26_);
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = _result_;
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27__length1 = _result__length1;
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = editing_tools_crop_tool_constraint_description_new (_ ("Letter (8.5 × 11 in.)"), 85, 110, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add20 (&_result_, &_result__length1, &__result__size_, _tmp28_);
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = _result_;
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29__length1 = _result__length1;
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = editing_tools_crop_tool_constraint_description_new (_ ("11 × 14 in."), 14, 11, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add21 (&_result_, &_result__length1, &__result__size_, _tmp30_);
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = _result_;
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31__length1 = _result__length1;
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = editing_tools_crop_tool_constraint_description_new (_ ("Tabloid (11 × 17 in.)"), 17, 11, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add22 (&_result_, &_result__length1, &__result__size_, _tmp32_);
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = _result_;
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33__length1 = _result__length1;
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = editing_tools_crop_tool_constraint_description_new (_ ("16 × 20 in."), 20, 16, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add23 (&_result_, &_result__length1, &__result__size_, _tmp34_);
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = _result_;
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35__length1 = _result__length1;
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = editing_tools_crop_tool_constraint_description_new (_ ("-"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_SEPARATOR);
-#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add24 (&_result_, &_result__length1, &__result__size_, _tmp36_);
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = _result_;
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37__length1 = _result__length1;
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = editing_tools_crop_tool_constraint_description_new (_ ("Metric Wallet (9 × 13 cm)"), 13, 9, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add25 (&_result_, &_result__length1, &__result__size_, _tmp38_);
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = _result_;
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39__length1 = _result__length1;
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = editing_tools_crop_tool_constraint_description_new (_ ("Postcard (10 × 15 cm)"), 15, 10, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add26 (&_result_, &_result__length1, &__result__size_, _tmp40_);
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = _result_;
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41__length1 = _result__length1;
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = editing_tools_crop_tool_constraint_description_new (_ ("13 × 18 cm"), 18, 13, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add27 (&_result_, &_result__length1, &__result__size_, _tmp42_);
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = _result_;
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43__length1 = _result__length1;
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = editing_tools_crop_tool_constraint_description_new (_ ("18 × 24 cm"), 24, 18, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add28 (&_result_, &_result__length1, &__result__size_, _tmp44_);
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = _result_;
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45__length1 = _result__length1;
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = editing_tools_crop_tool_constraint_description_new (_ ("A4 (210 × 297 mm)"), 210, 297, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add29 (&_result_, &_result__length1, &__result__size_, _tmp46_);
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47_ = _result_;
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47__length1 = _result__length1;
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = editing_tools_crop_tool_constraint_description_new (_ ("20 × 30 cm"), 30, 20, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add30 (&_result_, &_result__length1, &__result__size_, _tmp48_);
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = _result_;
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49__length1 = _result__length1;
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp50_ = editing_tools_crop_tool_constraint_description_new (_ ("24 × 40 cm"), 40, 24, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add31 (&_result_, &_result__length1, &__result__size_, _tmp50_);
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51_ = _result_;
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51__length1 = _result__length1;
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = editing_tools_crop_tool_constraint_description_new (_ ("30 × 40 cm"), 40, 30, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add32 (&_result_, &_result__length1, &__result__size_, _tmp52_);
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53_ = _result_;
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53__length1 = _result__length1;
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp54_ = editing_tools_crop_tool_constraint_description_new (_ ("A3 (297 × 420 mm)"), 420, 297, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS);
-#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add33 (&_result_, &_result__length1, &__result__size_, _tmp54_);
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp55_ = _result_;
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp55__length1 = _result__length1;
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp56_ = editing_tools_crop_tool_constraint_description_new (_ ("-"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_SEPARATOR);
-#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add34 (&_result_, &_result__length1, &__result__size_, _tmp56_);
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp57_ = _result_;
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp57__length1 = _result__length1;
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp58_ = editing_tools_crop_tool_constraint_description_new (_ ("Custom"), 0, 0, TRUE, EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO);
-#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_array_add35 (&_result_, &_result__length1, &__result__size_, _tmp58_);
-#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp59_ = _result_;
-#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp59__length1 = _result__length1;
-#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (result_length1) {
-#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result_length1 = _tmp59__length1;
-#line 6371 "EditingTools.c"
- }
-#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp59_;
-#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 6377 "EditingTools.c"
-}
-
-
-static gpointer
-_editing_tools_crop_tool_constraint_description_ref0 (gpointer self)
-{
-#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self ? editing_tools_crop_tool_constraint_description_ref (self) : NULL;
-#line 6386 "EditingTools.c"
-}
-
-
-static GtkListStore*
-editing_tools_crop_tool_create_constraint_list (EditingToolsCropToolConstraintDescription** constraint_data,
- int constraint_data_length1)
-{
- GtkListStore* result = NULL;
- GtkListStore* _result_ = NULL;
- GtkListStore* _tmp0_;
- GtkTreeIter iter = {0};
-#line 766 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = gtk_list_store_new (1, G_TYPE_STRING, G_TYPE_STRING, -1);
-#line 766 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp0_;
-#line 6402 "EditingTools.c"
- {
- EditingToolsCropToolConstraintDescription** constraint_collection = NULL;
- gint constraint_collection_length1 = 0;
- gint _constraint_collection_size_ = 0;
- gint constraint_it = 0;
-#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- constraint_collection = constraint_data;
-#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- constraint_collection_length1 = constraint_data_length1;
-#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- for (constraint_it = 0; constraint_it < constraint_data_length1; constraint_it = constraint_it + 1) {
-#line 6414 "EditingTools.c"
- EditingToolsCropToolConstraintDescription* _tmp1_;
- EditingToolsCropToolConstraintDescription* constraint = NULL;
-#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _editing_tools_crop_tool_constraint_description_ref0 (constraint_collection[constraint_it]);
-#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- constraint = _tmp1_;
-#line 6421 "EditingTools.c"
- {
- GtkListStore* _tmp2_;
- GtkTreeIter _tmp3_ = {0};
- GtkListStore* _tmp4_;
- GtkTreeIter _tmp5_;
- EditingToolsCropToolConstraintDescription* _tmp6_;
- const gchar* _tmp7_;
- GValue _tmp8_ = {0};
-#line 770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _result_;
-#line 770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_list_store_append (_tmp2_, &_tmp3_);
-#line 770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- iter = _tmp3_;
-#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _result_;
-#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = iter;
-#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = constraint;
-#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_->name;
-#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_value_init (&_tmp8_, G_TYPE_STRING);
-#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_value_set_string (&_tmp8_, _tmp7_);
-#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_list_store_set_value (_tmp4_, &_tmp5_, 0, &_tmp8_);
-#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_IS_VALUE (&_tmp8_) ? (g_value_unset (&_tmp8_), NULL) : NULL;
-#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_crop_tool_constraint_description_unref0 (constraint);
-#line 6454 "EditingTools.c"
- }
- }
- }
-#line 774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _result_;
-#line 774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 6462 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_update_pivot_button_state (EditingToolsCropTool* self)
-{
- EditingToolsCropToolCropToolWindow* _tmp0_;
- GtkButton* _tmp1_;
- EditingToolsCropToolConstraintDescription* _tmp2_;
- EditingToolsCropToolConstraintDescription* _tmp3_;
- gboolean _tmp4_;
-#line 777 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->pivot_reticle_button;
-#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_crop_tool_get_selected_constraint (self);
-#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_->is_pivotable;
-#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), _tmp4_);
-#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_crop_tool_constraint_description_unref0 (_tmp3_);
-#line 6490 "EditingTools.c"
-}
-
-
-static EditingToolsCropToolConstraintDescription*
-editing_tools_crop_tool_get_selected_constraint (EditingToolsCropTool* self)
-{
- EditingToolsCropToolConstraintDescription* result = NULL;
- EditingToolsCropToolConstraintDescription* _result_ = NULL;
- EditingToolsCropToolConstraintDescription** _tmp0_;
- gint _tmp0__length1;
- EditingToolsCropToolCropToolWindow* _tmp1_;
- GtkComboBox* _tmp2_;
- EditingToolsCropToolConstraintDescription* _tmp3_;
- EditingToolsCropToolConstraintDescription* _tmp4_;
- EditingToolsCropToolConstraintDescription* _tmp5_;
- gfloat _tmp6_;
-#line 782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), NULL);
-#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->constraints;
-#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0__length1 = self->priv->constraints_length1;
-#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->crop_tool_window;
-#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_->constraint_combo;
-#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp0_[gtk_combo_box_get_active (_tmp2_)];
-#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _editing_tools_crop_tool_constraint_description_ref0 (_tmp3_);
-#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp4_;
-#line 785 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _result_;
-#line 785 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_->aspect_ratio;
-#line 785 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp6_ == EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO) {
-#line 6529 "EditingTools.c"
- EditingToolsCropToolConstraintDescription* _tmp7_;
- EditingToolsPhotoCanvas* _tmp8_;
- GdkRectangle _tmp9_ = {0};
- gint _tmp10_;
- EditingToolsCropToolConstraintDescription* _tmp11_;
- EditingToolsPhotoCanvas* _tmp12_;
- GdkRectangle _tmp13_ = {0};
- gint _tmp14_;
-#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _result_;
-#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp8_, &_tmp9_);
-#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.width;
-#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_->basis_width = _tmp10_;
-#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _result_;
-#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp12_, &_tmp13_);
-#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_.height;
-#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_->basis_height = _tmp14_;
-#line 6558 "EditingTools.c"
- } else {
- EditingToolsCropToolConstraintDescription* _tmp15_;
- gfloat _tmp16_;
-#line 788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _result_;
-#line 788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_->aspect_ratio;
-#line 788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp16_ == EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO) {
-#line 6568 "EditingTools.c"
- GdkScreen* screen = NULL;
- GdkScreen* _tmp17_;
- GdkScreen* _tmp18_;
- EditingToolsCropToolConstraintDescription* _tmp19_;
- GdkScreen* _tmp20_;
- EditingToolsCropToolConstraintDescription* _tmp21_;
- GdkScreen* _tmp22_;
-#line 789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = gdk_screen_get_default ();
-#line 789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- screen = _tmp18_;
-#line 790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _result_;
-#line 790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = screen;
-#line 790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_->basis_width = gdk_screen_get_width (_tmp20_);
-#line 791 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _result_;
-#line 791 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = screen;
-#line 791 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_->basis_height = gdk_screen_get_height (_tmp22_);
-#line 788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (screen);
-#line 6596 "EditingTools.c"
- }
- }
-#line 794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _result_;
-#line 794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 6603 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_crop_tool_on_width_entry_focus_out (EditingToolsCropTool* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
- EditingToolsCropToolCropToolWindow* _tmp0_;
- EditingToolsCropToolCropToolWindow* _tmp1_;
- GtkEntry* _tmp2_;
- GtkEntry* _tmp3_;
-#line 797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), FALSE);
-#line 797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->crop_tool_window;
-#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_->custom_width_entry;
-#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp0_->most_recently_edited);
-#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_->most_recently_edited = _tmp3_;
-#line 799 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = editing_tools_crop_tool_on_custom_entry_focus_out (self, event);
-#line 799 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 6636 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_crop_tool_on_height_entry_focus_out (EditingToolsCropTool* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
- EditingToolsCropToolCropToolWindow* _tmp0_;
- EditingToolsCropToolCropToolWindow* _tmp1_;
- GtkEntry* _tmp2_;
- GtkEntry* _tmp3_;
-#line 802 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), FALSE);
-#line 802 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->crop_tool_window;
-#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_->custom_height_entry;
-#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp0_->most_recently_edited);
-#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_->most_recently_edited = _tmp3_;
-#line 804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = editing_tools_crop_tool_on_custom_entry_focus_out (self, event);
-#line 804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 6669 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_crop_tool_on_custom_entry_focus_out (EditingToolsCropTool* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
- gint width = 0;
- EditingToolsCropToolCropToolWindow* _tmp0_;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gint height = 0;
- EditingToolsCropToolCropToolWindow* _tmp4_;
- GtkEntry* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- gint _tmp8_;
- gint _tmp14_;
- gboolean _tmp20_ = FALSE;
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp25_;
- gint _tmp26_;
- gfloat _tmp27_;
- gint _tmp61_;
- gint _tmp62_;
- Box new_crop = {0};
- Box _tmp63_;
- Box _tmp64_ = {0};
- Box _tmp65_;
- Box _tmp66_;
- EditingToolsPhotoCanvas* _tmp67_;
- Box _tmp68_;
- EditingToolsPhotoCanvas* _tmp69_;
- gint _tmp70_;
- gint _tmp71_;
-#line 807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), FALSE);
-#line 807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->custom_width_entry;
-#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = gtk_entry_get_text (_tmp1_);
-#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- width = atoi (_tmp3_);
-#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->crop_tool_window;
-#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_->custom_height_entry;
-#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = gtk_entry_get_text (_tmp5_);
-#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_;
-#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- height = atoi (_tmp7_);
-#line 811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = width;
-#line 811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp8_ < 1) {
-#line 6736 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp9_;
- GtkEntry* _tmp10_;
- gint _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- width = 1;
-#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->crop_tool_window;
-#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_->custom_width_entry;
-#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = width;
-#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = g_strdup_printf ("%d", _tmp11_);
-#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_;
-#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp10_, _tmp13_);
-#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp13_);
-#line 6758 "EditingTools.c"
- }
-#line 816 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = height;
-#line 816 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp14_ < 1) {
-#line 6764 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp15_;
- GtkEntry* _tmp16_;
- gint _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
-#line 817 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- height = 1;
-#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->crop_tool_window;
-#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_->custom_height_entry;
-#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = height;
-#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = g_strdup_printf ("%d", _tmp17_);
-#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_;
-#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp16_, _tmp19_);
-#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp19_);
-#line 6786 "EditingTools.c"
- }
-#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = width;
-#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = self->priv->custom_width;
-#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp21_ == _tmp22_) {
-#line 6794 "EditingTools.c"
- gint _tmp23_;
- gint _tmp24_;
-#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = height;
-#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = self->priv->custom_height;
-#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = _tmp23_ == _tmp24_;
-#line 6803 "EditingTools.c"
- } else {
-#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = FALSE;
-#line 6807 "EditingTools.c"
- }
-#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp20_) {
-#line 822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 6815 "EditingTools.c"
- }
-#line 824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = width;
-#line 824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = height;
-#line 824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_aspect_ratio = ((gfloat) _tmp25_) / ((gfloat) _tmp26_);
-#line 826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = self->priv->custom_aspect_ratio;
-#line 826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp27_ < EDITING_TOOLS_CROP_TOOL_MIN_ASPECT_RATIO) {
-#line 6827 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp28_;
- GtkEntry* _tmp29_;
- EditingToolsCropToolCropToolWindow* _tmp30_;
- GtkEntry* _tmp31_;
-#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = self->priv->crop_tool_window;
-#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = _tmp28_->most_recently_edited;
-#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = self->priv->crop_tool_window;
-#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = _tmp30_->custom_height_entry;
-#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp29_ == _tmp31_) {
-#line 6842 "EditingTools.c"
- gint _tmp32_;
- EditingToolsCropToolCropToolWindow* _tmp33_;
- GtkEntry* _tmp34_;
- gint _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
-#line 828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = width;
-#line 828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- height = (gint) (_tmp32_ / EDITING_TOOLS_CROP_TOOL_MIN_ASPECT_RATIO);
-#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->priv->crop_tool_window;
-#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = _tmp33_->custom_height_entry;
-#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = height;
-#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = g_strdup_printf ("%d", _tmp35_);
-#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = _tmp36_;
-#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp34_, _tmp37_);
-#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp37_);
-#line 6867 "EditingTools.c"
- } else {
- gint _tmp38_;
- EditingToolsCropToolCropToolWindow* _tmp39_;
- GtkEntry* _tmp40_;
- gint _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
-#line 831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = height;
-#line 831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- width = (gint) (_tmp38_ * EDITING_TOOLS_CROP_TOOL_MIN_ASPECT_RATIO);
-#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = self->priv->crop_tool_window;
-#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = _tmp39_->custom_width_entry;
-#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = width;
-#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = g_strdup_printf ("%d", _tmp41_);
-#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = _tmp42_;
-#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp40_, _tmp43_);
-#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp43_);
-#line 6893 "EditingTools.c"
- }
- } else {
- gfloat _tmp44_;
-#line 834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = self->priv->custom_aspect_ratio;
-#line 834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp44_ > EDITING_TOOLS_CROP_TOOL_MAX_ASPECT_RATIO) {
-#line 6901 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp45_;
- GtkEntry* _tmp46_;
- EditingToolsCropToolCropToolWindow* _tmp47_;
- GtkEntry* _tmp48_;
-#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = self->priv->crop_tool_window;
-#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = _tmp45_->most_recently_edited;
-#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47_ = self->priv->crop_tool_window;
-#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = _tmp47_->custom_height_entry;
-#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp46_ == _tmp48_) {
-#line 6916 "EditingTools.c"
- gint _tmp49_;
- EditingToolsCropToolCropToolWindow* _tmp50_;
- GtkEntry* _tmp51_;
- gint _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
-#line 836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = width;
-#line 836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- height = (gint) (_tmp49_ / EDITING_TOOLS_CROP_TOOL_MAX_ASPECT_RATIO);
-#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp50_ = self->priv->crop_tool_window;
-#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51_ = _tmp50_->custom_height_entry;
-#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = height;
-#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53_ = g_strdup_printf ("%d", _tmp52_);
-#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp54_ = _tmp53_;
-#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp51_, _tmp54_);
-#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp54_);
-#line 6941 "EditingTools.c"
- } else {
- gint _tmp55_;
- EditingToolsCropToolCropToolWindow* _tmp56_;
- GtkEntry* _tmp57_;
- gint _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
-#line 839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp55_ = height;
-#line 839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- width = (gint) (_tmp55_ * EDITING_TOOLS_CROP_TOOL_MAX_ASPECT_RATIO);
-#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp56_ = self->priv->crop_tool_window;
-#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp57_ = _tmp56_->custom_width_entry;
-#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp58_ = width;
-#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp59_ = g_strdup_printf ("%d", _tmp58_);
-#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp60_ = _tmp59_;
-#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp57_, _tmp60_);
-#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp60_);
-#line 6967 "EditingTools.c"
- }
- }
- }
-#line 844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp61_ = width;
-#line 844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp62_ = height;
-#line 844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_aspect_ratio = ((gfloat) _tmp61_) / ((gfloat) _tmp62_);
-#line 846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp63_ = self->priv->scaled_crop;
-#line 846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constrain_crop (self, &_tmp63_, &_tmp64_);
-#line 846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_crop = _tmp64_;
-#line 848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp65_ = new_crop;
-#line 848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_crop_resized (self, &_tmp65_);
-#line 849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp66_ = new_crop;
-#line 849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_crop = _tmp66_;
-#line 850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp67_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp68_ = new_crop;
-#line 850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_invalidate_area (_tmp67_, &_tmp68_);
-#line 851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp69_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp69_);
-#line 853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp70_ = width;
-#line 853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_width = _tmp70_;
-#line 854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp71_ = height;
-#line 854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_height = _tmp71_;
-#line 856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 7013 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_on_width_insert_text (EditingToolsCropTool* self,
- const gchar* text,
- gint length,
- gint* position)
-{
- EditingToolsCropToolCropToolWindow* _tmp0_;
- GtkEntry* _tmp1_;
-#line 859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (text != NULL);
-#line 860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->custom_width_entry;
-#line 860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_entry_insert_text (self, _tmp1_, text, length, position);
-#line 7035 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_on_height_insert_text (EditingToolsCropTool* self,
- const gchar* text,
- gint length,
- gint* position)
-{
- EditingToolsCropToolCropToolWindow* _tmp0_;
- GtkEntry* _tmp1_;
-#line 863 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 863 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (text != NULL);
-#line 864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->custom_height_entry;
-#line 864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_entry_insert_text (self, _tmp1_, text, length, position);
-#line 7057 "EditingTools.c"
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7075 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_on_entry_insert_text (EditingToolsCropTool* self,
- GtkEntry* sender,
- const gchar* text,
- gint length,
- gint* position)
-{
- gboolean _tmp0_;
- gchar* new_text = NULL;
- gchar* _tmp3_;
- const gchar* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
-#line 867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (GTK_IS_ENTRY (sender));
-#line 867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (text != NULL);
-#line 868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->entry_insert_in_progress;
-#line 868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_) {
-#line 869 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 7104 "EditingTools.c"
- }
-#line 871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->entry_insert_in_progress = TRUE;
-#line 873 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (length == -1) {
-#line 7110 "EditingTools.c"
- gint _tmp1_;
- gint _tmp2_;
-#line 874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = strlen (text);
-#line 874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_;
-#line 874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- length = (gint) _tmp2_;
-#line 7119 "EditingTools.c"
- }
-#line 877 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = g_strdup ("");
-#line 877 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_text = _tmp3_;
-#line 7125 "EditingTools.c"
- {
- gint ctr = 0;
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ctr = 0;
-#line 7130 "EditingTools.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = TRUE;
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- while (TRUE) {
-#line 7137 "EditingTools.c"
- gint _tmp6_;
- gint _tmp7_;
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!_tmp4_) {
-#line 7142 "EditingTools.c"
- gint _tmp5_;
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = ctr;
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ctr = _tmp5_ + 1;
-#line 7148 "EditingTools.c"
- }
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = FALSE;
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = ctr;
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!(_tmp6_ < length)) {
-#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 7158 "EditingTools.c"
- }
-#line 879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = ctr;
-#line 879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (g_ascii_isdigit (string_get (text, (glong) _tmp7_))) {
-#line 7164 "EditingTools.c"
- const gchar* _tmp8_;
- gint _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = new_text;
-#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = ctr;
-#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp9_));
-#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_;
-#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = g_strconcat (_tmp8_, _tmp11_, NULL);
-#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (new_text);
-#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_text = _tmp12_;
-#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp11_);
-#line 7186 "EditingTools.c"
- }
- }
- }
- }
-#line 884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = new_text;
-#line 884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = strlen (_tmp13_);
-#line 884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_;
-#line 884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp15_ > 0) {
-#line 7199 "EditingTools.c"
- const gchar* _tmp16_;
- const gchar* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
-#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = new_text;
-#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = new_text;
-#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = strlen (_tmp17_);
-#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_;
-#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (sender, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp16_, (gint) _tmp19_, position);
-#line 7214 "EditingTools.c"
- }
-#line 887 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_stop_emission_by_name (sender, "insert-text");
-#line 889 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->entry_insert_in_progress = FALSE;
-#line 867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (new_text);
-#line 7222 "EditingTools.c"
-}
-
-
-static gfloat
-editing_tools_crop_tool_get_constraint_aspect_ratio (EditingToolsCropTool* self)
-{
- gfloat result = 0.0F;
- gfloat _result_ = 0.0F;
- EditingToolsCropToolConstraintDescription* _tmp0_;
- EditingToolsCropToolConstraintDescription* _tmp1_;
- gfloat _tmp2_;
- gfloat _tmp3_;
- gfloat _tmp4_;
- EditingToolsCropToolReticleOrientation _tmp18_;
-#line 892 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), 0.0F);
-#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_crop_tool_get_selected_constraint (self);
-#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_->aspect_ratio;
-#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_crop_tool_constraint_description_unref0 (_tmp1_);
-#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp3_;
-#line 895 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _result_;
-#line 895 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp4_ == EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO) {
-#line 7255 "EditingTools.c"
- EditingToolsPhotoCanvas* _tmp5_;
- GdkRectangle _tmp6_ = {0};
- gint _tmp7_;
- EditingToolsPhotoCanvas* _tmp8_;
- GdkRectangle _tmp9_ = {0};
- gint _tmp10_;
-#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp5_, &_tmp6_);
-#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.width;
-#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp8_, &_tmp9_);
-#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.height;
-#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = ((gfloat) _tmp7_) / ((gfloat) _tmp10_);
-#line 7276 "EditingTools.c"
- } else {
- gfloat _tmp11_;
-#line 898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _result_;
-#line 898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp11_ == EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO) {
-#line 7283 "EditingTools.c"
- GdkScreen* screen = NULL;
- GdkScreen* _tmp12_;
- GdkScreen* _tmp13_;
- GdkScreen* _tmp14_;
- GdkScreen* _tmp15_;
-#line 899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = gdk_screen_get_default ();
-#line 899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _g_object_ref0 (_tmp12_);
-#line 899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- screen = _tmp13_;
-#line 900 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = screen;
-#line 900 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = screen;
-#line 900 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = ((gfloat) gdk_screen_get_width (_tmp14_)) / ((gfloat) gdk_screen_get_height (_tmp15_));
-#line 898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (screen);
-#line 7303 "EditingTools.c"
- } else {
- gfloat _tmp16_;
-#line 901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _result_;
-#line 901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp16_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO) {
-#line 7310 "EditingTools.c"
- gfloat _tmp17_;
-#line 902 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = self->priv->custom_aspect_ratio;
-#line 902 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp17_;
-#line 7316 "EditingTools.c"
- }
- }
- }
-#line 904 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->reticle_orientation;
-#line 904 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp18_ == EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT) {
-#line 7324 "EditingTools.c"
- gfloat _tmp19_;
-#line 905 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _result_;
-#line 905 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = 1.0f / _tmp19_;
-#line 7330 "EditingTools.c"
- }
-#line 907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _result_;
-#line 907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 7336 "EditingTools.c"
-}
-
-
-static gfloat
-editing_tools_crop_tool_get_constraint_aspect_ratio_for_constraint (EditingToolsCropTool* self,
- EditingToolsCropToolConstraintDescription* constraint,
- Photo* photo)
-{
- gfloat result = 0.0F;
- gfloat _result_ = 0.0F;
- gfloat _tmp0_;
- gfloat _tmp1_;
- EditingToolsCropToolReticleOrientation _tmp14_;
-#line 910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), 0.0F);
-#line 910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_CROP_TOOL_IS_CONSTRAINT_DESCRIPTION (constraint), 0.0F);
-#line 910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), 0.0F);
-#line 911 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = constraint->aspect_ratio;
-#line 911 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp0_;
-#line 913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _result_;
-#line 913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_ == EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO) {
-#line 7364 "EditingTools.c"
- Dimensions orig_dim = {0};
- Dimensions _tmp2_ = {0};
- Dimensions _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
-#line 914 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_get_original_dimensions (photo, &_tmp2_);
-#line 914 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- orig_dim = _tmp2_;
-#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = orig_dim;
-#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.width;
-#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = orig_dim;
-#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.height;
-#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = ((gfloat) _tmp4_) / ((gfloat) _tmp6_);
-#line 7385 "EditingTools.c"
- } else {
- gfloat _tmp7_;
-#line 916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _result_;
-#line 916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp7_ == EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO) {
-#line 7392 "EditingTools.c"
- GdkScreen* screen = NULL;
- GdkScreen* _tmp8_;
- GdkScreen* _tmp9_;
- GdkScreen* _tmp10_;
- GdkScreen* _tmp11_;
-#line 917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = gdk_screen_get_default ();
-#line 917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
-#line 917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- screen = _tmp9_;
-#line 918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = screen;
-#line 918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = screen;
-#line 918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = ((gfloat) gdk_screen_get_width (_tmp10_)) / ((gfloat) gdk_screen_get_height (_tmp11_));
-#line 916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (screen);
-#line 7412 "EditingTools.c"
- } else {
- gfloat _tmp12_;
-#line 919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _result_;
-#line 919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp12_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO) {
-#line 7419 "EditingTools.c"
- gfloat _tmp13_;
-#line 920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->priv->custom_aspect_ratio;
-#line 920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = _tmp13_;
-#line 7425 "EditingTools.c"
- }
- }
- }
-#line 922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->reticle_orientation;
-#line 922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp14_ == EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT) {
-#line 7433 "EditingTools.c"
- gfloat _tmp15_;
-#line 923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _result_;
-#line 923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_ = 1.0f / _tmp15_;
-#line 7439 "EditingTools.c"
- }
-#line 925 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _result_;
-#line 925 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 7445 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_constraint_changed (EditingToolsCropTool* self)
-{
- EditingToolsCropToolConstraintDescription* selected_constraint = NULL;
- EditingToolsCropToolConstraintDescription* _tmp0_;
- EditingToolsCropToolConstraintDescription* _tmp1_;
- gfloat _tmp2_;
- EditingToolsCropToolConstraintDescription* _tmp11_;
- EditingToolsCropToolConstraintDescription* _tmp12_;
- gboolean _tmp13_;
- gboolean _tmp14_;
- gfloat _tmp15_;
-#line 929 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_crop_tool_get_selected_constraint (self);
-#line 930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- selected_constraint = _tmp0_;
-#line 931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = selected_constraint;
-#line 931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_->aspect_ratio;
-#line 931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp2_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO) {
-#line 932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_set_custom_constraint_mode (self);
-#line 7475 "EditingTools.c"
- } else {
- EditingToolsCropToolConstraintDescription* _tmp3_;
- gfloat _tmp4_;
-#line 934 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_set_normal_constraint_mode (self);
-#line 936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = selected_constraint;
-#line 936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_->aspect_ratio;
-#line 936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp4_ != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 7487 "EditingTools.c"
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
-#line 940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = config_facade_get_instance ();
-#line 940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_;
-#line 940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_init_width = configuration_facade_get_last_crop_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp6_);
-#line 941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_;
-#line 941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_init_height = configuration_facade_get_last_crop_height (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp8_);
-#line 942 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->custom_init_width;
-#line 942 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->custom_init_height;
-#line 942 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_aspect_ratio = ((gfloat) _tmp9_) / ((gfloat) _tmp10_);
-#line 7516 "EditingTools.c"
- }
- }
-#line 946 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_update_pivot_button_state (self);
-#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = editing_tools_crop_tool_get_selected_constraint (self);
-#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_;
-#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_->is_pivotable;
-#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = !_tmp13_;
-#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_crop_tool_constraint_description_unref0 (_tmp12_);
-#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp14_) {
-#line 949 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->reticle_orientation = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE;
-#line 7535 "EditingTools.c"
- }
-#line 951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->pre_aspect_ratio;
-#line 951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != _tmp15_) {
-#line 7541 "EditingTools.c"
- Box new_crop = {0};
- Box _tmp16_;
- Box _tmp17_ = {0};
- Box _tmp18_;
- Box _tmp19_;
- EditingToolsPhotoCanvas* _tmp20_;
- Box _tmp21_;
- EditingToolsPhotoCanvas* _tmp22_;
-#line 952 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->priv->scaled_crop;
-#line 952 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constrain_crop (self, &_tmp16_, &_tmp17_);
-#line 952 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_crop = _tmp17_;
-#line 954 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = new_crop;
-#line 954 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_crop_resized (self, &_tmp18_);
-#line 955 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = new_crop;
-#line 955 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_crop = _tmp19_;
-#line 956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = new_crop;
-#line 956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_invalidate_area (_tmp20_, &_tmp21_);
-#line 957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp22_);
-#line 959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->pre_aspect_ratio = editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 7576 "EditingTools.c"
- }
-#line 929 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_crop_tool_constraint_description_unref0 (selected_constraint);
-#line 7580 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_set_custom_constraint_mode (EditingToolsCropTool* self)
-{
- EditingToolsCropToolConstraintMode _tmp0_;
- gboolean _tmp1_ = FALSE;
- EditingToolsCropToolCropToolWindow* _tmp2_;
- gint _tmp3_;
- EditingToolsCropToolCropToolWindow* _tmp11_;
- GtkBox* _tmp12_;
- EditingToolsCropToolCropToolWindow* _tmp13_;
- GtkComboBox* _tmp14_;
- EditingToolsCropToolCropToolWindow* _tmp15_;
- GtkBox* _tmp16_;
- EditingToolsCropToolCropToolWindow* _tmp17_;
- GtkButton* _tmp18_;
- EditingToolsCropToolCropToolWindow* _tmp19_;
- GtkBox* _tmp20_;
- EditingToolsCropToolCropToolWindow* _tmp21_;
- GtkBox* _tmp22_;
- EditingToolsCropToolCropToolWindow* _tmp23_;
- GtkBox* _tmp24_;
- EditingToolsCropToolCropToolWindow* _tmp25_;
- GtkComboBox* _tmp26_;
- EditingToolsCropToolCropToolWindow* _tmp27_;
- GtkBox* _tmp28_;
- EditingToolsCropToolCropToolWindow* _tmp29_;
- GtkEntry* _tmp30_;
- EditingToolsCropToolCropToolWindow* _tmp31_;
- GtkBox* _tmp32_;
- EditingToolsCropToolCropToolWindow* _tmp33_;
- GtkLabel* _tmp34_;
- EditingToolsCropToolCropToolWindow* _tmp35_;
- GtkBox* _tmp36_;
- EditingToolsCropToolCropToolWindow* _tmp37_;
- GtkEntry* _tmp38_;
- EditingToolsCropToolCropToolWindow* _tmp39_;
- GtkBox* _tmp40_;
- EditingToolsCropToolCropToolWindow* _tmp41_;
- GtkButton* _tmp42_;
- EditingToolsCropToolCropToolWindow* _tmp43_;
- GtkBox* _tmp44_;
- EditingToolsCropToolCropToolWindow* _tmp45_;
- GtkBox* _tmp46_;
- EditingToolsCropToolReticleOrientation _tmp47_;
- gint _tmp68_;
- gint _tmp69_;
- EditingToolsCropToolCropToolWindow* _tmp70_;
-#line 963 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->constraint_mode;
-#line 964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM) {
-#line 965 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 7639 "EditingTools.c"
- }
-#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->crop_tool_window;
-#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_->normal_width;
-#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_ == -1) {
-#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = TRUE;
-#line 7649 "EditingTools.c"
- } else {
- EditingToolsCropToolCropToolWindow* _tmp4_;
- gint _tmp5_;
-#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->crop_tool_window;
-#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_->normal_height;
-#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp5_ == -1;
-#line 7659 "EditingTools.c"
- }
-#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_) {
-#line 7663 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp6_;
- EditingToolsCropToolCropToolWindow* _tmp7_;
- EditingToolsCropToolCropToolWindow* _tmp8_;
- gint _tmp9_ = 0;
- gint _tmp10_ = 0;
-#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->crop_tool_window;
-#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->crop_tool_window;
-#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->crop_tool_window;
-#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_window_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), &_tmp9_, &_tmp10_);
-#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_->normal_width = _tmp9_;
-#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_->normal_height = _tmp10_;
-#line 7681 "EditingTools.c"
- }
-#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->crop_tool_window;
-#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_->layout;
-#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->priv->crop_tool_window;
-#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_->constraint_combo;
-#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget));
-#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->crop_tool_window;
-#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_->layout;
-#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = self->priv->crop_tool_window;
-#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = _tmp17_->pivot_reticle_button;
-#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget));
-#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = self->priv->crop_tool_window;
-#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = _tmp19_->layout;
-#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = self->priv->crop_tool_window;
-#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = _tmp21_->response_layout;
-#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget));
-#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = self->priv->crop_tool_window;
-#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = _tmp23_->layout;
-#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = self->priv->crop_tool_window;
-#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = _tmp25_->constraint_combo;
-#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget));
-#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = self->priv->crop_tool_window;
-#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = _tmp27_->layout;
-#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = self->priv->crop_tool_window;
-#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = _tmp29_->custom_width_entry;
-#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget));
-#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = self->priv->crop_tool_window;
-#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = _tmp31_->layout;
-#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->priv->crop_tool_window;
-#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = _tmp33_->custom_mulsign_label;
-#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget));
-#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = self->priv->crop_tool_window;
-#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = _tmp35_->layout;
-#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = self->priv->crop_tool_window;
-#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = _tmp37_->custom_height_entry;
-#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget));
-#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = self->priv->crop_tool_window;
-#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = _tmp39_->layout;
-#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = self->priv->crop_tool_window;
-#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = _tmp41_->pivot_reticle_button;
-#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget));
-#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = self->priv->crop_tool_window;
-#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = _tmp43_->layout;
-#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = self->priv->crop_tool_window;
-#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = _tmp45_->response_layout;
-#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget));
-#line 982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47_ = self->priv->reticle_orientation;
-#line 982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp47_ == EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE) {
-#line 7777 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp48_;
- GtkEntry* _tmp49_;
- gint _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- EditingToolsCropToolCropToolWindow* _tmp53_;
- GtkEntry* _tmp54_;
- gint _tmp55_;
- gchar* _tmp56_;
- gchar* _tmp57_;
-#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = self->priv->crop_tool_window;
-#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = _tmp48_->custom_width_entry;
-#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp50_ = self->priv->custom_init_width;
-#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51_ = g_strdup_printf ("%d", _tmp50_);
-#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = _tmp51_;
-#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp49_, _tmp52_);
-#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp52_);
-#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53_ = self->priv->crop_tool_window;
-#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp54_ = _tmp53_->custom_height_entry;
-#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp55_ = self->priv->custom_init_height;
-#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp56_ = g_strdup_printf ("%d", _tmp55_);
-#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp57_ = _tmp56_;
-#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp54_, _tmp57_);
-#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp57_);
-#line 7816 "EditingTools.c"
- } else {
- EditingToolsCropToolCropToolWindow* _tmp58_;
- GtkEntry* _tmp59_;
- gint _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- EditingToolsCropToolCropToolWindow* _tmp63_;
- GtkEntry* _tmp64_;
- gint _tmp65_;
- gchar* _tmp66_;
- gchar* _tmp67_;
-#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp58_ = self->priv->crop_tool_window;
-#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp59_ = _tmp58_->custom_width_entry;
-#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp60_ = self->priv->custom_init_height;
-#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp61_ = g_strdup_printf ("%d", _tmp60_);
-#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp62_ = _tmp61_;
-#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp59_, _tmp62_);
-#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp62_);
-#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp63_ = self->priv->crop_tool_window;
-#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp64_ = _tmp63_->custom_height_entry;
-#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp65_ = self->priv->custom_init_width;
-#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp66_ = g_strdup_printf ("%d", _tmp65_);
-#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp67_ = _tmp66_;
-#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp64_, _tmp67_);
-#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp67_);
-#line 7856 "EditingTools.c"
- }
-#line 989 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp68_ = self->priv->custom_init_width;
-#line 989 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp69_ = self->priv->custom_init_height;
-#line 989 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_aspect_ratio = ((gfloat) _tmp68_) / ((gfloat) _tmp69_);
-#line 991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp70_ = self->priv->crop_tool_window;
-#line 991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, gtk_widget_get_type (), GtkWidget));
-#line 993 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->constraint_mode = EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM;
-#line 7870 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_set_normal_constraint_mode (EditingToolsCropTool* self)
-{
- EditingToolsCropToolConstraintMode _tmp0_;
- EditingToolsCropToolCropToolWindow* _tmp1_;
- GtkBox* _tmp2_;
- EditingToolsCropToolCropToolWindow* _tmp3_;
- GtkComboBox* _tmp4_;
- EditingToolsCropToolCropToolWindow* _tmp5_;
- GtkBox* _tmp6_;
- EditingToolsCropToolCropToolWindow* _tmp7_;
- GtkEntry* _tmp8_;
- EditingToolsCropToolCropToolWindow* _tmp9_;
- GtkBox* _tmp10_;
- EditingToolsCropToolCropToolWindow* _tmp11_;
- GtkLabel* _tmp12_;
- EditingToolsCropToolCropToolWindow* _tmp13_;
- GtkBox* _tmp14_;
- EditingToolsCropToolCropToolWindow* _tmp15_;
- GtkEntry* _tmp16_;
- EditingToolsCropToolCropToolWindow* _tmp17_;
- GtkBox* _tmp18_;
- EditingToolsCropToolCropToolWindow* _tmp19_;
- GtkButton* _tmp20_;
- EditingToolsCropToolCropToolWindow* _tmp21_;
- GtkBox* _tmp22_;
- EditingToolsCropToolCropToolWindow* _tmp23_;
- GtkBox* _tmp24_;
- EditingToolsCropToolCropToolWindow* _tmp25_;
- GtkBox* _tmp26_;
- EditingToolsCropToolCropToolWindow* _tmp27_;
- GtkComboBox* _tmp28_;
- EditingToolsCropToolCropToolWindow* _tmp29_;
- GtkBox* _tmp30_;
- EditingToolsCropToolCropToolWindow* _tmp31_;
- GtkButton* _tmp32_;
- EditingToolsCropToolCropToolWindow* _tmp33_;
- GtkBox* _tmp34_;
- EditingToolsCropToolCropToolWindow* _tmp35_;
- GtkBox* _tmp36_;
- EditingToolsCropToolCropToolWindow* _tmp37_;
- EditingToolsCropToolCropToolWindow* _tmp38_;
- gint _tmp39_;
- EditingToolsCropToolCropToolWindow* _tmp40_;
- gint _tmp41_;
- EditingToolsCropToolCropToolWindow* _tmp42_;
-#line 996 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 997 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->constraint_mode;
-#line 997 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL) {
-#line 998 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 7928 "EditingTools.c"
- }
-#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->crop_tool_window;
-#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_->layout;
-#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->crop_tool_window;
-#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_->constraint_combo;
-#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->crop_tool_window;
-#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_->layout;
-#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->crop_tool_window;
-#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_->custom_width_entry;
-#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->crop_tool_window;
-#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_->layout;
-#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->crop_tool_window;
-#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_->custom_mulsign_label;
-#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
-#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->priv->crop_tool_window;
-#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_->layout;
-#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->crop_tool_window;
-#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_->custom_height_entry;
-#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget));
-#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = self->priv->crop_tool_window;
-#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = _tmp17_->layout;
-#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = self->priv->crop_tool_window;
-#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = _tmp19_->pivot_reticle_button;
-#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget));
-#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = self->priv->crop_tool_window;
-#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = _tmp21_->layout;
-#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = self->priv->crop_tool_window;
-#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = _tmp23_->response_layout;
-#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget));
-#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = self->priv->crop_tool_window;
-#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = _tmp25_->layout;
-#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = self->priv->crop_tool_window;
-#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = _tmp27_->constraint_combo;
-#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget));
-#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = self->priv->crop_tool_window;
-#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = _tmp29_->layout;
-#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = self->priv->crop_tool_window;
-#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = _tmp31_->pivot_reticle_button;
-#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget));
-#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->priv->crop_tool_window;
-#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = _tmp33_->layout;
-#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = self->priv->crop_tool_window;
-#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = _tmp35_->response_layout;
-#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget));
-#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = self->priv->crop_tool_window;
-#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = self->priv->crop_tool_window;
-#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = _tmp38_->normal_width;
-#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = self->priv->crop_tool_window;
-#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = _tmp40_->normal_height;
-#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_window_resize (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_window_get_type (), GtkWindow), _tmp39_, _tmp41_);
-#line 1014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = self->priv->crop_tool_window;
-#line 1014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget));
-#line 1016 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->constraint_mode = EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL;
-#line 8038 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_constrain_crop (EditingToolsCropTool* self,
- Box* crop,
- Box* result)
-{
- gfloat user_aspect_ratio = 0.0F;
- gfloat _tmp0_;
- gfloat old_area = 0.0F;
- gfloat _tmp2_;
- gfloat _tmp3_;
- gfloat _tmp4_;
- gfloat _tmp5_;
- Dimensions image_size = {0};
- Dimensions _tmp6_ = {0};
- gdouble angle = 0.0;
- EditingToolsPhotoCanvas* _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
- gdouble _tmp10_ = 0.0;
- Box _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- Dimensions _tmp14_;
- gint _tmp15_;
- gdouble _tmp16_;
- Box _tmp17_ = {0};
- gfloat _tmp18_;
- Box _tmp21_;
-#line 1019 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1019 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (crop != NULL);
-#line 1020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- user_aspect_ratio = editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1021 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = user_aspect_ratio;
-#line 1021 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 8080 "EditingTools.c"
- Box _tmp1_;
-#line 1022 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = *crop;
-#line 1022 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _tmp1_;
-#line 1022 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 8088 "EditingTools.c"
- }
-#line 1025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old_area = (gfloat) (box_get_width (crop) * box_get_height (crop));
-#line 1026 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = old_area;
-#line 1026 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = user_aspect_ratio;
-#line 1026 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_adjust_height (crop, (gint) sqrt ((gdouble) (_tmp2_ / _tmp3_)));
-#line 1027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = old_area;
-#line 1027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = user_aspect_ratio;
-#line 1027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_adjust_width (crop, (gint) sqrt ((gdouble) (_tmp4_ * _tmp5_)));
-#line 1030 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_get_photo_dimensions (self, &_tmp6_);
-#line 1030 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- image_size = _tmp6_;
-#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = editing_tools_photo_canvas_get_photo (_tmp7_);
-#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_;
-#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_get_straighten (_tmp9_, &_tmp10_);
-#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- angle = _tmp10_;
-#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp9_);
-#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = *crop;
-#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = image_size;
-#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.width;
-#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = image_size;
-#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_.height;
-#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = angle;
-#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- clamp_inside_rotated_image (&_tmp11_, _tmp13_, _tmp15_, _tmp16_, FALSE, &_tmp17_);
-#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *crop = _tmp17_;
-#line 1036 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = user_aspect_ratio;
-#line 1036 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (((gfloat) box_get_width (crop)) >= (box_get_height (crop) * _tmp18_)) {
-#line 8140 "EditingTools.c"
- gfloat _tmp19_;
-#line 1037 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = user_aspect_ratio;
-#line 1037 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_adjust_width (crop, (gint) (box_get_height (crop) * _tmp19_));
-#line 8146 "EditingTools.c"
- } else {
- gfloat _tmp20_;
-#line 1039 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = user_aspect_ratio;
-#line 1039 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_adjust_height (crop, (gint) (box_get_width (crop) / _tmp20_));
-#line 8153 "EditingTools.c"
- }
-#line 1041 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = *crop;
-#line 1041 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _tmp21_;
-#line 1041 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 8161 "EditingTools.c"
-}
-
-
-static EditingToolsCropToolConstraintDescription*
-editing_tools_crop_tool_get_last_constraint (EditingToolsCropTool* self,
- gint* index)
-{
- gint _vala_index = 0;
- EditingToolsCropToolConstraintDescription* result = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- EditingToolsCropToolConstraintDescription* _tmp2_ = NULL;
- gint _tmp3_;
- EditingToolsCropToolConstraintDescription** _tmp4_;
- gint _tmp4__length1;
- EditingToolsCropToolConstraintDescription* _tmp8_;
-#line 1044 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), NULL);
-#line 1045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 1045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 1045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_index = configuration_facade_get_last_crop_menu_choice (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 1045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _vala_index;
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->constraints;
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4__length1 = self->priv->constraints_length1;
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_ < _tmp4__length1) {
-#line 8196 "EditingTools.c"
- EditingToolsCropToolConstraintDescription** _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- EditingToolsCropToolConstraintDescription* _tmp7_;
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->constraints;
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5__length1 = self->priv->constraints_length1;
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _vala_index;
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp5_[_tmp6_];
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp7_;
-#line 8211 "EditingTools.c"
- } else {
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = NULL;
-#line 8215 "EditingTools.c"
- }
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _editing_tools_crop_tool_constraint_description_ref0 (_tmp2_);
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp8_;
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (index) {
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *index = _vala_index;
-#line 8225 "EditingTools.c"
- }
-#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 8229 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_real_activate (EditingToolsEditingTool* base,
- EditingToolsPhotoCanvas* canvas)
-{
- EditingToolsCropTool * self;
- cairo_t* _tmp0_;
- cairo_t* _tmp1_;
- Dimensions _tmp2_ = {0};
- cairo_surface_t* _tmp3_;
- GdkRectangle _tmp4_ = {0};
- gint _tmp5_;
- GdkRectangle _tmp6_ = {0};
- gint _tmp7_;
- cairo_surface_t* _tmp8_;
- cairo_t* ctx = NULL;
- cairo_surface_t* _tmp9_;
- cairo_t* _tmp10_;
- cairo_t* _tmp11_;
- cairo_t* _tmp12_;
- GtkWindow* _tmp13_;
- GtkWindow* _tmp14_;
- EditingToolsCropToolCropToolWindow* _tmp15_;
- EditingToolsCropToolCropToolWindow* _tmp16_;
- GtkComboBox* _tmp17_;
- GtkListStore* _tmp18_;
- Photo* _tmp19_;
- Photo* _tmp20_;
- gboolean _tmp21_;
- Dimensions uncropped_dim = {0};
- Photo* _tmp49_;
- Photo* _tmp50_;
- Dimensions _tmp51_ = {0};
- Dimensions _tmp52_;
- Box crop = {0};
- Photo* _tmp53_;
- Photo* _tmp54_;
- Box _tmp55_ = {0};
- gboolean _tmp56_;
- gboolean _tmp57_;
- Dimensions _tmp70_;
- GdkRectangle _tmp71_ = {0};
- Dimensions _tmp72_ = {0};
- Box _tmp73_ = {0};
- ConfigFacade* _tmp74_;
- ConfigFacade* _tmp75_;
- ConfigFacade* _tmp76_;
- ConfigFacade* _tmp77_;
- gint _tmp78_;
- gint _tmp79_;
- gint _tmp80_;
- gint _tmp81_;
- EditingToolsCropToolCropToolWindow* _tmp82_;
- Photo* _tmp83_;
- Photo* _tmp84_;
- gboolean _tmp85_;
- Box new_crop = {0};
- Box _tmp93_;
- Box _tmp94_ = {0};
- Box _tmp95_;
- Box _tmp96_;
- Box _tmp97_;
-#line 1050 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1050 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 1051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_bind_canvas_handlers (self, canvas);
-#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_photo_canvas_get_default_ctx (canvas);
-#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_surface_dim (canvas, &_tmp2_);
-#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_prepare_ctx (self, _tmp1_, &_tmp2_);
-#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (_tmp1_);
-#line 1055 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->crop_surface;
-#line 1055 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_ != NULL) {
-#line 1056 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->crop_surface);
-#line 1056 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_surface = NULL;
-#line 8318 "EditingTools.c"
- }
-#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp4_);
-#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.width;
-#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp6_);
-#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.height;
-#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp5_, _tmp7_);
-#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->crop_surface);
-#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_surface = _tmp8_;
-#line 1062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->crop_surface;
-#line 1062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = cairo_create (_tmp9_);
-#line 1062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ctx = _tmp10_;
-#line 1063 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = ctx;
-#line 1063 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_rgba (_tmp11_, 0.0, 0.0, 0.0, 1.0);
-#line 1064 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = ctx;
-#line 1064 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_paint (_tmp12_);
-#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = editing_tools_photo_canvas_get_container (canvas);
-#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_;
-#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = editing_tools_crop_tool_crop_tool_window_new (_tmp14_);
-#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp15_);
-#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->crop_tool_window);
-#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_tool_window = _tmp15_;
-#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp14_);
-#line 1070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->priv->crop_tool_window;
-#line 1070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_->constraint_combo;
-#line 1070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->constraint_list;
-#line 1070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_combo_box_set_model (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_tree_model_get_type (), GtkTreeModel));
-#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = _tmp19_;
-#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = !photo_has_crop (_tmp20_);
-#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp20_);
-#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp21_) {
-#line 8380 "EditingTools.c"
- gint index = 0;
- EditingToolsCropToolConstraintDescription* desc = NULL;
- gint _tmp22_ = 0;
- EditingToolsCropToolConstraintDescription* _tmp23_;
- gboolean _tmp24_ = FALSE;
- EditingToolsCropToolConstraintDescription* _tmp25_;
-#line 1073 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = editing_tools_crop_tool_get_last_constraint (self, &_tmp22_);
-#line 1073 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- index = _tmp22_;
-#line 1073 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- desc = _tmp23_;
-#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = desc;
-#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp25_ != NULL) {
-#line 8397 "EditingTools.c"
- EditingToolsCropToolConstraintDescription* _tmp26_;
-#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = desc;
-#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = !editing_tools_crop_tool_constraint_description_is_separator (_tmp26_);
-#line 8403 "EditingTools.c"
- } else {
-#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = FALSE;
-#line 8407 "EditingTools.c"
- }
-#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp24_) {
-#line 8411 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp27_;
- GtkComboBox* _tmp28_;
- gint _tmp29_;
-#line 1075 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = self->priv->crop_tool_window;
-#line 1075 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = _tmp27_->constraint_combo;
-#line 1075 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = index;
-#line 1075 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_combo_box_set_active (_tmp28_, _tmp29_);
-#line 8423 "EditingTools.c"
- }
-#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_crop_tool_constraint_description_unref0 (desc);
-#line 8427 "EditingTools.c"
- } else {
- Photo* photo = NULL;
- Photo* _tmp30_;
- Dimensions cropped_dim = {0};
- Photo* _tmp31_;
- Dimensions _tmp32_ = {0};
- gfloat ratio = 0.0F;
- Dimensions _tmp33_;
- gint _tmp34_;
- Dimensions _tmp35_;
- gint _tmp36_;
-#line 1079 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 1079 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo = _tmp30_;
-#line 1080 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = photo;
-#line 1080 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp32_);
-#line 1080 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cropped_dim = _tmp32_;
-#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = cropped_dim;
-#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = _tmp33_.width;
-#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = cropped_dim;
-#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = _tmp35_.height;
-#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ratio = ((gfloat) _tmp34_) / ((gfloat) _tmp36_);
-#line 8459 "EditingTools.c"
- {
- gint index = 0;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- index = 1;
-#line 8464 "EditingTools.c"
- {
- gboolean _tmp37_ = FALSE;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = TRUE;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- while (TRUE) {
-#line 8471 "EditingTools.c"
- gint _tmp39_;
- EditingToolsCropToolConstraintDescription** _tmp40_;
- gint _tmp40__length1;
- gfloat _tmp41_;
- EditingToolsCropToolConstraintDescription** _tmp42_;
- gint _tmp42__length1;
- gint _tmp43_;
- EditingToolsCropToolConstraintDescription* _tmp44_;
- Photo* _tmp45_;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!_tmp37_) {
-#line 8483 "EditingTools.c"
- gint _tmp38_;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = index;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- index = _tmp38_ + 1;
-#line 8489 "EditingTools.c"
- }
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = FALSE;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = index;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = self->priv->constraints;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40__length1 = self->priv->constraints_length1;
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!(_tmp39_ < _tmp40__length1)) {
-#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 8503 "EditingTools.c"
- }
-#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = ratio;
-#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = self->priv->constraints;
-#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42__length1 = self->priv->constraints_length1;
-#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = index;
-#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = _tmp42_[_tmp43_];
-#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = photo;
-#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (fabs ((gdouble) (_tmp41_ - editing_tools_crop_tool_get_constraint_aspect_ratio_for_constraint (self, _tmp44_, _tmp45_))) < 0.005) {
-#line 8519 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp46_;
- GtkComboBox* _tmp47_;
- gint _tmp48_;
-#line 1084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = self->priv->crop_tool_window;
-#line 1084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47_ = _tmp46_->constraint_combo;
-#line 1084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = index;
-#line 1084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_combo_box_set_active (_tmp47_, _tmp48_);
-#line 8531 "EditingTools.c"
- }
- }
- }
- }
-#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (photo);
-#line 8538 "EditingTools.c"
- }
-#line 1089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_update_pivot_button_state (self);
-#line 1090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->reticle_orientation = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE;
-#line 1092 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_bind_window_handlers (self);
-#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp50_ = _tmp49_;
-#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp51_);
-#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = _tmp51_;
-#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp50_);
-#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- uncropped_dim = _tmp52_;
-#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp54_ = _tmp53_;
-#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp56_ = photo_get_crop (_tmp54_, &_tmp55_, PHOTO_EXCEPTION_NONE);
-#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- crop = _tmp55_;
-#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp57_ = !_tmp56_;
-#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp54_);
-#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp57_) {
-#line 8572 "EditingTools.c"
- gint xofs = 0;
- Dimensions _tmp58_;
- gint _tmp59_;
- gint yofs = 0;
- Dimensions _tmp60_;
- gint _tmp61_;
- gint _tmp62_;
- gint _tmp63_;
- Dimensions _tmp64_;
- gint _tmp65_;
- gint _tmp66_;
- Dimensions _tmp67_;
- gint _tmp68_;
- gint _tmp69_;
-#line 1099 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp58_ = uncropped_dim;
-#line 1099 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp59_ = _tmp58_.width;
-#line 1099 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- xofs = (gint) (_tmp59_ * EDITING_TOOLS_CROP_TOOL_CROP_INIT_X_PCT);
-#line 1100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp60_ = uncropped_dim;
-#line 1100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp61_ = _tmp60_.height;
-#line 1100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- yofs = (gint) (_tmp61_ * EDITING_TOOLS_CROP_TOOL_CROP_INIT_Y_PCT);
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp62_ = xofs;
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp63_ = yofs;
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp64_ = uncropped_dim;
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp65_ = _tmp64_.width;
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp66_ = xofs;
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp67_ = uncropped_dim;
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp68_ = _tmp67_.height;
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp69_ = yofs;
-#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_init (&crop, _tmp62_, _tmp63_, _tmp65_ - _tmp66_, _tmp68_ - _tmp69_);
-#line 8617 "EditingTools.c"
- }
-#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp70_ = uncropped_dim;
-#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp71_);
-#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dimensions_for_rectangle (&_tmp71_, &_tmp72_);
-#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_scaled_similar (&crop, &_tmp70_, &_tmp72_, &_tmp73_);
-#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_crop = _tmp73_;
-#line 1114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp74_ = config_facade_get_instance ();
-#line 1114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp75_ = _tmp74_;
-#line 1114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_width = configuration_facade_get_last_crop_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 1114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp75_);
-#line 1115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp76_ = config_facade_get_instance ();
-#line 1115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp77_ = _tmp76_;
-#line 1115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_height = configuration_facade_get_last_crop_height (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 1115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp77_);
-#line 1116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp78_ = self->priv->custom_width;
-#line 1116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_init_width = _tmp78_;
-#line 1117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp79_ = self->priv->custom_height;
-#line 1117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_init_height = _tmp79_;
-#line 1118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp80_ = self->priv->custom_init_width;
-#line 1118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp81_ = self->priv->custom_init_height;
-#line 1118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->pre_aspect_ratio = ((gfloat) _tmp80_) / ((gfloat) _tmp81_);
-#line 1120 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->constraint_mode = EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL;
-#line 1122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_crop_tool_parent_class)->activate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), canvas);
-#line 1124 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp82_ = self->priv->crop_tool_window;
-#line 1124 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, gtk_widget_get_type (), GtkWidget));
-#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp83_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp84_ = _tmp83_;
-#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp85_ = !photo_has_crop (_tmp84_);
-#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp84_);
-#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp85_) {
-#line 8677 "EditingTools.c"
- EditingToolsCropToolConstraintDescription* desc = NULL;
- EditingToolsCropToolConstraintDescription* _tmp86_;
- gboolean _tmp87_ = FALSE;
- gboolean _tmp88_ = FALSE;
- EditingToolsCropToolConstraintDescription* _tmp89_;
-#line 1128 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp86_ = editing_tools_crop_tool_get_last_constraint (self, NULL);
-#line 1128 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- desc = _tmp86_;
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp89_ = desc;
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp89_ != NULL) {
-#line 8691 "EditingTools.c"
- EditingToolsCropToolConstraintDescription* _tmp90_;
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp90_ = desc;
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp88_ = !editing_tools_crop_tool_constraint_description_is_separator (_tmp90_);
-#line 8697 "EditingTools.c"
- } else {
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp88_ = FALSE;
-#line 8701 "EditingTools.c"
- }
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp88_) {
-#line 8705 "EditingTools.c"
- EditingToolsCropToolConstraintDescription* _tmp91_;
- gfloat _tmp92_;
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp91_ = desc;
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp92_ = _tmp91_->aspect_ratio;
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp87_ = _tmp92_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO;
-#line 8714 "EditingTools.c"
- } else {
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp87_ = FALSE;
-#line 8718 "EditingTools.c"
- }
-#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp87_) {
-#line 1130 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_set_custom_constraint_mode (self);
-#line 8724 "EditingTools.c"
- }
-#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_crop_tool_constraint_description_unref0 (desc);
-#line 8728 "EditingTools.c"
- }
-#line 1137 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp93_ = self->priv->scaled_crop;
-#line 1137 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constrain_crop (self, &_tmp93_, &_tmp94_);
-#line 1137 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_crop = _tmp94_;
-#line 1139 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp95_ = new_crop;
-#line 1139 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_crop_resized (self, &_tmp95_);
-#line 1140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp96_ = new_crop;
-#line 1140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_crop = _tmp96_;
-#line 1141 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp97_ = new_crop;
-#line 1141 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_invalidate_area (canvas, &_tmp97_);
-#line 1142 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (canvas);
-#line 1144 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->pre_aspect_ratio = editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1050 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (ctx);
-#line 8754 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_crop_tool_prepare_ctx_editing_tools_photo_canvas_new_surface (EditingToolsPhotoCanvas* _sender,
- cairo_t* ctx,
- Dimensions* dim,
- gpointer self)
-{
-#line 1148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_prepare_ctx ((EditingToolsCropTool*) self, ctx, dim);
-#line 8766 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_crop_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position,
- gpointer self)
-{
-#line 1149 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_resized_pixbuf ((EditingToolsCropTool*) self, old_dim, scaled, scaled_position);
-#line 8779 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_bind_canvas_handlers (EditingToolsCropTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
-#line 1147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 1148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (canvas, "new-surface", (GCallback) _editing_tools_crop_tool_prepare_ctx_editing_tools_photo_canvas_new_surface, self);
-#line 1149 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (canvas, "resized-scaled-pixbuf", (GCallback) _editing_tools_crop_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf, self);
-#line 8795 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_unbind_canvas_handlers (EditingToolsCropTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
- guint _tmp0_;
- guint _tmp1_;
-#line 1152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 1153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("new-surface", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp0_, NULL, FALSE);
-#line 1153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _editing_tools_crop_tool_prepare_ctx_editing_tools_photo_canvas_new_surface, self);
-#line 1154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp1_, NULL, FALSE);
-#line 1154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf, self);
-#line 8817 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_crop_tool_on_crop_ok_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 1159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_crop_ok ((EditingToolsCropTool*) self);
-#line 8827 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_editing_tool_notify_cancel_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 1160 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_editing_tool_notify_cancel ((EditingToolsEditingTool*) self);
-#line 8837 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_crop_tool_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 1161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constraint_changed ((EditingToolsCropTool*) self);
-#line 8847 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_crop_tool_on_pivot_button_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 1162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_pivot_button_clicked ((EditingToolsCropTool*) self);
-#line 8857 "EditingTools.c"
-}
-
-
-static gboolean
-_editing_tools_crop_tool_on_width_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self)
-{
- gboolean result;
- result = editing_tools_crop_tool_on_width_entry_focus_out ((EditingToolsCropTool*) self, event);
-#line 1165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 8870 "EditingTools.c"
-}
-
-
-static gboolean
-_editing_tools_crop_tool_on_height_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self)
-{
- gboolean result;
- result = editing_tools_crop_tool_on_height_entry_focus_out ((EditingToolsCropTool*) self, event);
-#line 1166 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 8883 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_crop_tool_on_width_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self)
-{
-#line 1167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_width_insert_text ((EditingToolsCropTool*) self, new_text, new_text_length, position);
-#line 8896 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_crop_tool_on_height_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
- const gchar* new_text,
- gint new_text_length,
- gint* position,
- gpointer self)
-{
-#line 1168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_height_insert_text ((EditingToolsCropTool*) self, new_text, new_text_length, position);
-#line 8909 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_bind_window_handlers (EditingToolsCropTool* self)
-{
- EditingToolsCropToolCropToolWindow* _tmp0_;
- EditingToolsCropToolCropToolWindow* _tmp1_;
- GtkButton* _tmp2_;
- EditingToolsCropToolCropToolWindow* _tmp3_;
- GtkButton* _tmp4_;
- EditingToolsCropToolCropToolWindow* _tmp5_;
- GtkComboBox* _tmp6_;
- EditingToolsCropToolCropToolWindow* _tmp7_;
- GtkButton* _tmp8_;
- EditingToolsCropToolCropToolWindow* _tmp9_;
- GtkEntry* _tmp10_;
- EditingToolsCropToolCropToolWindow* _tmp11_;
- GtkEntry* _tmp12_;
- EditingToolsCropToolCropToolWindow* _tmp13_;
- GtkEntry* _tmp14_;
- EditingToolsCropToolCropToolWindow* _tmp15_;
- GtkEntry* _tmp16_;
-#line 1157 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 1158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 1159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->crop_tool_window;
-#line 1159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_->ok_button;
-#line 1159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp2_, "clicked", (GCallback) _editing_tools_crop_tool_on_crop_ok_gtk_button_clicked, self);
-#line 1160 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->crop_tool_window;
-#line 1160 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_->cancel_button;
-#line 1160 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp4_, "clicked", (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 1161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->crop_tool_window;
-#line 1161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_->constraint_combo;
-#line 1161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp6_, "changed", (GCallback) _editing_tools_crop_tool_constraint_changed_gtk_combo_box_changed, self);
-#line 1162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->crop_tool_window;
-#line 1162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_->pivot_reticle_button;
-#line 1162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp8_, "clicked", (GCallback) _editing_tools_crop_tool_on_pivot_button_clicked_gtk_button_clicked, self);
-#line 1165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->crop_tool_window;
-#line 1165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_->custom_width_entry;
-#line 1165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _editing_tools_crop_tool_on_width_entry_focus_out_gtk_widget_focus_out_event, self);
-#line 1166 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->crop_tool_window;
-#line 1166 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_->custom_height_entry;
-#line 1166 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _editing_tools_crop_tool_on_height_entry_focus_out_gtk_widget_focus_out_event, self);
-#line 1167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->priv->crop_tool_window;
-#line 1167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_->custom_width_entry;
-#line 1167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _editing_tools_crop_tool_on_width_insert_text_gtk_editable_insert_text, self);
-#line 1168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->crop_tool_window;
-#line 1168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_->custom_height_entry;
-#line 1168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _editing_tools_crop_tool_on_height_insert_text_gtk_editable_insert_text, self);
-#line 8987 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_unbind_window_handlers (EditingToolsCropTool* self)
-{
- EditingToolsCropToolCropToolWindow* _tmp0_;
- guint _tmp1_;
- EditingToolsCropToolCropToolWindow* _tmp2_;
- GtkButton* _tmp3_;
- guint _tmp4_;
- EditingToolsCropToolCropToolWindow* _tmp5_;
- GtkButton* _tmp6_;
- guint _tmp7_;
- EditingToolsCropToolCropToolWindow* _tmp8_;
- GtkComboBox* _tmp9_;
- guint _tmp10_;
- EditingToolsCropToolCropToolWindow* _tmp11_;
- GtkButton* _tmp12_;
- guint _tmp13_;
- EditingToolsCropToolCropToolWindow* _tmp14_;
- GtkEntry* _tmp15_;
- guint _tmp16_;
- EditingToolsCropToolCropToolWindow* _tmp17_;
- GtkEntry* _tmp18_;
- guint _tmp19_;
- EditingToolsCropToolCropToolWindow* _tmp20_;
- GtkEntry* _tmp21_;
- guint _tmp22_;
-#line 1171 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1172 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 1172 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("key-press-event", gtk_widget_get_type (), &_tmp1_, NULL, FALSE);
-#line 1172 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 1173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->crop_tool_window;
-#line 1173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_->ok_button;
-#line 1173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp4_, NULL, FALSE);
-#line 1173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_crop_ok_gtk_button_clicked, self);
-#line 1174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->crop_tool_window;
-#line 1174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_->cancel_button;
-#line 1174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp7_, NULL, FALSE);
-#line 1174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 1175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->crop_tool_window;
-#line 1175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_->constraint_combo;
-#line 1175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp10_, NULL, FALSE);
-#line 1175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _editing_tools_crop_tool_constraint_changed_gtk_combo_box_changed, self);
-#line 1176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->crop_tool_window;
-#line 1176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_->pivot_reticle_button;
-#line 1176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp13_, NULL, FALSE);
-#line 1176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_pivot_button_clicked_gtk_button_clicked, self);
-#line 1179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->crop_tool_window;
-#line 1179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_->custom_width_entry;
-#line 1179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp16_, NULL, FALSE);
-#line 1179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.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) _editing_tools_crop_tool_on_width_entry_focus_out_gtk_widget_focus_out_event, self);
-#line 1180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = self->priv->crop_tool_window;
-#line 1180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = _tmp17_->custom_height_entry;
-#line 1180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp19_, NULL, FALSE);
-#line 1180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp19_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_height_entry_focus_out_gtk_widget_focus_out_event, self);
-#line 1181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = self->priv->crop_tool_window;
-#line 1181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_->custom_width_entry;
-#line 1181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("insert-text", gtk_editable_get_type (), &_tmp22_, NULL, FALSE);
-#line 1181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_editable_get_type (), GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp22_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_width_insert_text_gtk_editable_insert_text, self);
-#line 9081 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_crop_tool_real_on_keypress (EditingToolsEditingTool* base,
- GdkEventKey* event)
-{
- EditingToolsCropTool * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- guint _tmp2_;
- const gchar* _tmp3_;
-#line 1184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = event->keyval;
-#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = gdk_keyval_name (_tmp2_);
-#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (g_strcmp0 (_tmp3_, "KP_Enter") == 0) {
-#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = TRUE;
-#line 9107 "EditingTools.c"
- } else {
- guint _tmp4_;
- const gchar* _tmp5_;
-#line 1186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = event->keyval;
-#line 1186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = gdk_keyval_name (_tmp4_);
-#line 1186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = g_strcmp0 (_tmp5_, "Enter") == 0;
-#line 9117 "EditingTools.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_) {
-#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = TRUE;
-#line 9123 "EditingTools.c"
- } else {
- guint _tmp6_;
- const gchar* _tmp7_;
-#line 1187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = event->keyval;
-#line 1187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = gdk_keyval_name (_tmp6_);
-#line 1187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = g_strcmp0 (_tmp7_, "Return") == 0;
-#line 9133 "EditingTools.c"
- }
-#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_) {
-#line 1188 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_crop_ok (self);
-#line 1189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 1189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 9143 "EditingTools.c"
- }
-#line 1192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_crop_tool_parent_class)->on_keypress (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), event);
-#line 1192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 9149 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_on_pivot_button_clicked (EditingToolsCropTool* self)
-{
- EditingToolsCropToolConstraintDescription* _tmp0_;
- EditingToolsCropToolConstraintDescription* _tmp1_;
- gfloat _tmp2_;
- gboolean _tmp3_;
- EditingToolsCropToolReticleOrientation _tmp21_;
-#line 1195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_crop_tool_get_selected_constraint (self);
-#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_->aspect_ratio;
-#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO;
-#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _editing_tools_crop_tool_constraint_description_unref0 (_tmp1_);
-#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_) {
-#line 9175 "EditingTools.c"
- gchar* width_text = NULL;
- EditingToolsCropToolCropToolWindow* _tmp4_;
- GtkEntry* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* height_text = NULL;
- EditingToolsCropToolCropToolWindow* _tmp8_;
- GtkEntry* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- EditingToolsCropToolCropToolWindow* _tmp12_;
- GtkEntry* _tmp13_;
- const gchar* _tmp14_;
- EditingToolsCropToolCropToolWindow* _tmp15_;
- GtkEntry* _tmp16_;
- const gchar* _tmp17_;
- gint temp = 0;
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->crop_tool_window;
-#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_->custom_width_entry;
-#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = gtk_entry_get_text (_tmp5_);
-#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = g_strdup (_tmp6_);
-#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- width_text = _tmp7_;
-#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->crop_tool_window;
-#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_->custom_height_entry;
-#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = gtk_entry_get_text (_tmp9_);
-#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- height_text = _tmp11_;
-#line 1199 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->crop_tool_window;
-#line 1199 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_->custom_width_entry;
-#line 1199 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = height_text;
-#line 1199 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp13_, _tmp14_);
-#line 1200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->crop_tool_window;
-#line 1200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_->custom_height_entry;
-#line 1200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = width_text;
-#line 1200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_text (_tmp16_, _tmp17_);
-#line 1202 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->custom_width;
-#line 1202 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- temp = _tmp18_;
-#line 1203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = self->priv->custom_height;
-#line 1203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_width = _tmp19_;
-#line 1204 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = temp;
-#line 1204 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_height = _tmp20_;
-#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (height_text);
-#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (width_text);
-#line 9248 "EditingTools.c"
- }
-#line 1206 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = self->priv->reticle_orientation;
-#line 1206 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->reticle_orientation = editing_tools_crop_tool_reticle_orientation_toggle (_tmp21_);
-#line 1207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constraint_changed (self);
-#line 9256 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_real_deactivate (EditingToolsEditingTool* base)
-{
- EditingToolsCropTool * self;
- EditingToolsPhotoCanvas* _tmp0_;
- EditingToolsCropToolCropToolWindow* _tmp2_;
- EditingToolsPhotoCanvas* _tmp5_;
-#line 1210 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ != NULL) {
-#line 9273 "EditingTools.c"
- EditingToolsPhotoCanvas* _tmp1_;
-#line 1212 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1212 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_unbind_canvas_handlers (self, _tmp1_);
-#line 9279 "EditingTools.c"
- }
-#line 1214 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->crop_tool_window;
-#line 1214 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp2_ != NULL) {
-#line 9285 "EditingTools.c"
- EditingToolsCropToolCropToolWindow* _tmp3_;
- EditingToolsCropToolCropToolWindow* _tmp4_;
-#line 1215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_unbind_window_handlers (self);
-#line 1216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->crop_tool_window;
-#line 1216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 1217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->crop_tool_window;
-#line 1217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 1218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->crop_tool_window);
-#line 1218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_tool_window = NULL;
-#line 9302 "EditingTools.c"
- }
-#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp5_ != NULL) {
-#line 9308 "EditingTools.c"
- GdkWindow* drawing_window = NULL;
- EditingToolsPhotoCanvas* _tmp6_;
- GdkWindow* _tmp7_;
- GdkDisplay* display = NULL;
- GdkWindow* _tmp8_;
- GdkDisplay* _tmp9_;
- GdkDisplay* _tmp10_;
- GdkCursor* cursor = NULL;
- GdkDisplay* _tmp11_;
- GdkCursor* _tmp12_;
- GdkWindow* _tmp13_;
- GdkCursor* _tmp14_;
-#line 1223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = editing_tools_photo_canvas_get_drawing_window (_tmp6_);
-#line 1223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- drawing_window = _tmp7_;
-#line 1224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = drawing_window;
-#line 1224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = gdk_window_get_display (_tmp8_);
-#line 1224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 1224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- display = _tmp10_;
-#line 1225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = display;
-#line 1225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = gdk_cursor_new_for_display (_tmp11_, GDK_LEFT_PTR);
-#line 1225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor = _tmp12_;
-#line 1227 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = drawing_window;
-#line 1227 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = cursor;
-#line 1227 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gdk_window_set_cursor (_tmp13_, _tmp14_);
-#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (cursor);
-#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (display);
-#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (drawing_window);
-#line 9353 "EditingTools.c"
- }
-#line 1230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->crop_surface);
-#line 1230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_surface = NULL;
-#line 1232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_crop_tool_parent_class)->deactivate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 9361 "EditingTools.c"
-}
-
-
-static EditingToolsEditingToolWindow*
-editing_tools_crop_tool_real_get_tool_window (EditingToolsEditingTool* base)
-{
- EditingToolsCropTool * self;
- EditingToolsEditingToolWindow* result = NULL;
- EditingToolsCropToolCropToolWindow* _tmp0_;
- EditingToolsEditingToolWindow* _tmp1_;
-#line 1235 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_tool_window;
-#line 1236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow));
-#line 1236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 1236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 9382 "EditingTools.c"
-}
-
-
-static GdkPixbuf*
-editing_tools_crop_tool_real_get_display_pixbuf (EditingToolsEditingTool* base,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error)
-{
- EditingToolsCropTool * self;
- Dimensions _vala_max_dim = {0};
- GdkPixbuf* result = NULL;
- Dimensions _tmp0_ = {0};
- GdkPixbuf* _tmp1_ = NULL;
- Scaling _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 1239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 1239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 1241 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp0_);
-#line 1241 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_max_dim = _tmp0_;
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *scaling;
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = photo_get_pixbuf_with_options (photo, &_tmp2_, PHOTO_EXCEPTION_CROP, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp3_;
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_propagate_error (error, _inner_error_);
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return NULL;
-#line 9424 "EditingTools.c"
- }
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp1_;
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = NULL;
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp4_;
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (max_dim) {
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *max_dim = _vala_max_dim;
-#line 9438 "EditingTools.c"
- }
-#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 9442 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_prepare_ctx (EditingToolsCropTool* self,
- cairo_t* ctx,
- Dimensions* dim)
-{
- cairo_surface_t* _tmp0_;
- cairo_t* _tmp1_;
- cairo_t* _tmp2_;
- cairo_t* _tmp3_;
- cairo_surface_t* _tmp4_;
- cairo_t* _tmp5_;
- cairo_t* _tmp6_;
- cairo_t* _tmp7_;
- cairo_surface_t* _tmp8_;
- cairo_t* _tmp9_;
- cairo_t* _tmp10_;
- cairo_t* _tmp11_;
- cairo_surface_t* _tmp12_;
- cairo_t* _tmp13_;
- cairo_t* _tmp14_;
-#line 1246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 1246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (dim != NULL);
-#line 1247 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = cairo_get_target (ctx);
-#line 1247 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = cairo_create (_tmp0_);
-#line 1247 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->wide_black_ctx);
-#line 1247 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->wide_black_ctx = _tmp1_;
-#line 1248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->wide_black_ctx;
-#line 1248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- set_source_color_from_string (_tmp2_, "#000");
-#line 1249 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->wide_black_ctx;
-#line 1249 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_line_width (_tmp3_, (gdouble) 1);
-#line 1251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = cairo_get_target (ctx);
-#line 1251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = cairo_create (_tmp4_);
-#line 1251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->wide_white_ctx);
-#line 1251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->wide_white_ctx = _tmp5_;
-#line 1252 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->wide_white_ctx;
-#line 1252 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- set_source_color_from_string (_tmp6_, "#FFF");
-#line 1253 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->wide_white_ctx;
-#line 1253 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_line_width (_tmp7_, (gdouble) 1);
-#line 1255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = cairo_get_target (ctx);
-#line 1255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = cairo_create (_tmp8_);
-#line 1255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->thin_white_ctx);
-#line 1255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->thin_white_ctx = _tmp9_;
-#line 1256 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->thin_white_ctx;
-#line 1256 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- set_source_color_from_string (_tmp10_, "#FFF");
-#line 1257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->thin_white_ctx;
-#line 1257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_line_width (_tmp11_, 0.5);
-#line 1259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = cairo_get_target (ctx);
-#line 1259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = cairo_create (_tmp12_);
-#line 1259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->text_ctx);
-#line 1259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->text_ctx = _tmp13_;
-#line 1260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->text_ctx;
-#line 1260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_select_font_face (_tmp14_, "Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
-#line 9532 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_on_resized_pixbuf (EditingToolsCropTool* self,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position)
-{
- Dimensions new_dim = {0};
- Dimensions _tmp0_ = {0};
- Dimensions uncropped_dim = {0};
- EditingToolsPhotoCanvas* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- Dimensions _tmp4_ = {0};
- Dimensions _tmp5_;
- Box crop = {0};
- Dimensions _tmp6_;
- Dimensions _tmp7_;
- Box _tmp8_ = {0};
- Dimensions _tmp9_;
- Dimensions _tmp10_;
- Box _tmp11_ = {0};
- cairo_surface_t* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- cairo_surface_t* _tmp17_;
- cairo_t* ctx = NULL;
- cairo_surface_t* _tmp18_;
- cairo_t* _tmp19_;
-#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (old_dim != NULL);
-#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (GDK_IS_PIXBUF (scaled));
-#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (scaled_position != NULL);
-#line 1264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dimensions_for_pixbuf (scaled, &_tmp0_);
-#line 1264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_dim = _tmp0_;
-#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_photo_canvas_get_photo (_tmp1_);
-#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp4_);
-#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_;
-#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp3_);
-#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- uncropped_dim = _tmp5_;
-#line 1268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = *old_dim;
-#line 1268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = uncropped_dim;
-#line 1268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_scaled_similar (&self->priv->scaled_crop, &_tmp6_, &_tmp7_, &_tmp8_);
-#line 1268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- crop = _tmp8_;
-#line 1271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = uncropped_dim;
-#line 1271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = new_dim;
-#line 1271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_scaled_similar (&crop, &_tmp9_, &_tmp10_, &_tmp11_);
-#line 1271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_crop = _tmp11_;
-#line 1272 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->crop_surface;
-#line 1272 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp12_ != NULL) {
-#line 1273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->crop_surface);
-#line 1273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_surface = NULL;
-#line 9616 "EditingTools.c"
- }
-#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = gdk_pixbuf_get_width (scaled);
-#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_;
-#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = gdk_pixbuf_get_height (scaled);
-#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_;
-#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp14_, _tmp16_);
-#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->crop_surface);
-#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_surface = _tmp17_;
-#line 1276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->crop_surface;
-#line 1276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = cairo_create (_tmp18_);
-#line 1276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ctx = _tmp19_;
-#line 1277 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 1.0);
-#line 1278 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_paint (ctx);
-#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (ctx);
-#line 9644 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_real_on_left_click (EditingToolsEditingTool* base,
- gint x,
- gint y)
-{
- EditingToolsCropTool * self;
- GdkRectangle scaled_pixbuf_pos = {0};
- EditingToolsPhotoCanvas* _tmp0_;
- GdkRectangle _tmp1_ = {0};
- Box offset_scaled_crop = {0};
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- Box _tmp6_ = {0};
- GdkRectangle _tmp7_;
- gint _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- EditingToolsPhotoCanvas* _tmp11_;
-#line 1282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp0_, &_tmp1_);
-#line 1283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scaled_pixbuf_pos = _tmp1_;
-#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = scaled_pixbuf_pos;
-#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = scaled_pixbuf_pos;
-#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.y;
-#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_offset (&self->priv->scaled_crop, _tmp3_, _tmp5_, &_tmp6_);
-#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- offset_scaled_crop = _tmp6_;
-#line 1289 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->in_manipulation = box_approx_location (&offset_scaled_crop, x, y);
-#line 1290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = scaled_pixbuf_pos;
-#line 1290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.x;
-#line 1290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = x - _tmp8_;
-#line 1290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->last_grab_x = x;
-#line 1291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = scaled_pixbuf_pos;
-#line 1291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.y;
-#line 1291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y = y - _tmp10_;
-#line 1291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->last_grab_y = y;
-#line 1294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp11_);
-#line 9710 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_real_on_left_released (EditingToolsEditingTool* base,
- gint x,
- gint y)
-{
- EditingToolsCropTool * self;
- BoxLocation _tmp0_;
- EditingToolsPhotoCanvas* _tmp1_;
-#line 1297 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1299 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->in_manipulation;
-#line 1299 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == BOX_LOCATION_OUTSIDE) {
-#line 1300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 9730 "EditingTools.c"
- }
-#line 1303 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->in_manipulation = BOX_LOCATION_OUTSIDE;
-#line 1304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->last_grab_x = -1;
-#line 1305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->last_grab_y = -1;
-#line 1307 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_update_cursor (self, x, y);
-#line 1310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp1_);
-#line 9744 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_real_on_motion (EditingToolsEditingTool* base,
- gint x,
- gint y,
- GdkModifierType mask)
-{
- EditingToolsCropTool * self;
- BoxLocation _tmp0_;
- EditingToolsPhotoCanvas* _tmp1_;
-#line 1313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1316 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->in_manipulation;
-#line 1316 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ != BOX_LOCATION_OUTSIDE) {
-#line 1317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_on_canvas_manipulation (self, x, y);
-#line 9765 "EditingTools.c"
- }
-#line 1319 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_update_cursor (self, x, y);
-#line 1320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp1_);
-#line 9773 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_real_paint (EditingToolsEditingTool* base,
- cairo_t* default_ctx)
-{
- EditingToolsCropTool * self;
- gint w = 0;
- EditingToolsPhotoCanvas* _tmp0_;
- GdkWindow* _tmp1_;
- GdkWindow* _tmp2_;
- gint _tmp3_;
- gint h = 0;
- EditingToolsPhotoCanvas* _tmp4_;
- GdkWindow* _tmp5_;
- GdkWindow* _tmp6_;
- gint _tmp7_;
- cairo_t* ctx = NULL;
- cairo_surface_t* _tmp8_;
- cairo_t* _tmp9_;
- Box _tmp10_;
- gint _tmp11_;
- Box _tmp12_;
- gint _tmp13_;
- EditingToolsPhotoCanvas* _tmp14_;
- cairo_surface_t* _tmp15_;
- Box _tmp16_;
-#line 1323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 1323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (default_ctx != NULL);
-#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_photo_canvas_get_drawing_window (_tmp0_);
-#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_;
-#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = gdk_window_get_width (_tmp2_);
-#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp2_);
-#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- w = _tmp3_;
-#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = editing_tools_photo_canvas_get_drawing_window (_tmp4_);
-#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_;
-#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = gdk_window_get_height (_tmp6_);
-#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp6_);
-#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- h = _tmp7_;
-#line 1328 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_rgba (default_ctx, 0.0, 0.0, 0.0, 1.0);
-#line 1329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (default_ctx, (gdouble) 0, (gdouble) 0, (gdouble) w, (gdouble) h);
-#line 1330 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (default_ctx);
-#line 1331 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_paint (default_ctx);
-#line 1333 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->crop_surface;
-#line 1333 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = cairo_create (_tmp8_);
-#line 1333 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ctx = _tmp9_;
-#line 1334 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_operator (ctx, CAIRO_OPERATOR_SOURCE);
-#line 1335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 0.5);
-#line 1336 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_paint (ctx);
-#line 1339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 0.0);
-#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->scaled_crop;
-#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.left;
-#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->scaled_crop;
-#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.top;
-#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (ctx, (gdouble) _tmp11_, (gdouble) _tmp13_, (gdouble) box_get_width (&self->priv->scaled_crop), (gdouble) box_get_height (&self->priv->scaled_crop));
-#line 1342 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (ctx);
-#line 1343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->crop_surface;
-#line 1343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_paint_surface (_tmp14_, _tmp15_, TRUE);
-#line 1346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->priv->scaled_crop;
-#line 1346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_paint_crop_tool (self, &_tmp16_);
-#line 1323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (ctx);
-#line 9876 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_on_crop_ok (EditingToolsCropTool* self)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- EditingToolsCropToolCropToolWindow* _tmp2_;
- GtkComboBox* _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- gint _tmp6_;
- ConfigFacade* _tmp7_;
- ConfigFacade* _tmp8_;
- gint _tmp9_;
- Box crop = {0};
- EditingToolsPhotoCanvas* _tmp10_;
- GdkRectangle _tmp11_ = {0};
- Dimensions _tmp12_ = {0};
- EditingToolsPhotoCanvas* _tmp13_;
- Photo* _tmp14_;
- Photo* _tmp15_;
- Dimensions _tmp16_ = {0};
- Box _tmp17_ = {0};
- Box _tmp18_;
- GdkPixbuf* cropped = NULL;
- EditingToolsPhotoCanvas* _tmp19_;
- GdkPixbuf* _tmp20_;
- GdkPixbuf* _tmp21_;
- Box _tmp22_;
- gint _tmp23_;
- Box _tmp24_;
- gint _tmp25_;
- GdkPixbuf* _tmp26_;
- GdkPixbuf* _tmp27_;
- EditingToolsPhotoCanvas* _tmp28_;
- Photo* _tmp29_;
- Photo* _tmp30_;
- Box _tmp31_;
- CropCommand* _tmp32_;
- CropCommand* _tmp33_;
- Dimensions _tmp34_ = {0};
-#line 1349 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->crop_tool_window;
-#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_->constraint_combo;
-#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- configuration_facade_set_last_crop_menu_choice (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), gtk_combo_box_get_active (_tmp3_));
-#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_;
-#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->custom_width;
-#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- configuration_facade_set_last_crop_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_);
-#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp5_);
-#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = config_facade_get_instance ();
-#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_;
-#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->custom_height;
-#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- configuration_facade_set_last_crop_height (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp9_);
-#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp8_);
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp10_, &_tmp11_);
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dimensions_for_rectangle (&_tmp11_, &_tmp12_);
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = editing_tools_photo_canvas_get_photo (_tmp13_);
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_;
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp16_);
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_scaled_similar (&self->priv->scaled_crop, &_tmp12_, &_tmp16_, &_tmp17_);
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = _tmp17_;
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp15_);
-#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- crop = _tmp18_;
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = editing_tools_photo_canvas_get_scaled_pixbuf (_tmp19_);
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_;
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = self->priv->scaled_crop;
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp22_.left;
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = self->priv->scaled_crop;
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp24_.top;
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = gdk_pixbuf_new_subpixbuf (_tmp21_, _tmp23_, _tmp25_, box_get_width (&self->priv->scaled_crop), box_get_height (&self->priv->scaled_crop));
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = _tmp26_;
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp21_);
-#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cropped = _tmp27_;
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = editing_tools_photo_canvas_get_photo (_tmp28_);
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = _tmp29_;
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = crop;
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = crop_command_new (_tmp30_, &_tmp31_, RESOURCES_CROP_LABEL, RESOURCES_CROP_TOOLTIP);
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = _tmp32_;
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_dimensions (&crop, &_tmp34_);
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_COMMAND, Command), cropped, &_tmp34_, TRUE);
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp33_);
-#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp30_);
-#line 1349 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (cropped);
-#line 10020 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_update_cursor (EditingToolsCropTool* self,
- gint x,
- gint y)
-{
- GdkRectangle scaled_pos = {0};
- EditingToolsPhotoCanvas* _tmp0_;
- GdkRectangle _tmp1_ = {0};
- Box offset_scaled_crop = {0};
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- Box _tmp6_ = {0};
- GdkCursorType cursor_type = 0;
- GdkCursorType _tmp7_;
- GdkCursorType _tmp8_;
-#line 1373 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp0_, &_tmp1_);
-#line 1375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scaled_pos = _tmp1_;
-#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = scaled_pos;
-#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = scaled_pos;
-#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.y;
-#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_offset (&self->priv->scaled_crop, _tmp3_, _tmp5_, &_tmp6_);
-#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- offset_scaled_crop = _tmp6_;
-#line 1378 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_LEFT_PTR;
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- switch (box_approx_location (&offset_scaled_crop, x, y)) {
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_LEFT_SIDE:
-#line 10067 "EditingTools.c"
- {
-#line 1381 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_LEFT_SIDE;
-#line 1382 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10073 "EditingTools.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_SIDE:
-#line 10077 "EditingTools.c"
- {
-#line 1385 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_TOP_SIDE;
-#line 1386 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10083 "EditingTools.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_RIGHT_SIDE:
-#line 10087 "EditingTools.c"
- {
-#line 1389 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_RIGHT_SIDE;
-#line 1390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10093 "EditingTools.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_SIDE:
-#line 10097 "EditingTools.c"
- {
-#line 1393 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_BOTTOM_SIDE;
-#line 1394 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10103 "EditingTools.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_LEFT:
-#line 10107 "EditingTools.c"
- {
-#line 1397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_TOP_LEFT_CORNER;
-#line 1398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10113 "EditingTools.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_LEFT:
-#line 10117 "EditingTools.c"
- {
-#line 1401 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_BOTTOM_LEFT_CORNER;
-#line 1402 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10123 "EditingTools.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_RIGHT:
-#line 10127 "EditingTools.c"
- {
-#line 1405 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_TOP_RIGHT_CORNER;
-#line 1406 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10133 "EditingTools.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_RIGHT:
-#line 10137 "EditingTools.c"
- {
-#line 1409 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_BOTTOM_RIGHT_CORNER;
-#line 1410 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10143 "EditingTools.c"
- }
-#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_INSIDE:
-#line 10147 "EditingTools.c"
- {
-#line 1413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor_type = GDK_FLEUR;
-#line 1414 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10153 "EditingTools.c"
- }
- default:
- {
-#line 1418 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10159 "EditingTools.c"
- }
- }
-#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = cursor_type;
-#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->current_cursor_type;
-#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp7_ != _tmp8_) {
-#line 10168 "EditingTools.c"
- GdkWindow* drawing_window = NULL;
- EditingToolsPhotoCanvas* _tmp9_;
- GdkWindow* _tmp10_;
- GdkDisplay* display = NULL;
- GdkWindow* _tmp11_;
- GdkDisplay* _tmp12_;
- GdkDisplay* _tmp13_;
- GdkCursor* cursor = NULL;
- GdkDisplay* _tmp14_;
- GdkCursorType _tmp15_;
- GdkCursor* _tmp16_;
- GdkWindow* _tmp17_;
- GdkCursor* _tmp18_;
- GdkCursorType _tmp19_;
-#line 1422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = editing_tools_photo_canvas_get_drawing_window (_tmp9_);
-#line 1422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- drawing_window = _tmp10_;
-#line 1423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = drawing_window;
-#line 1423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = gdk_window_get_display (_tmp11_);
-#line 1423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _g_object_ref0 (_tmp12_);
-#line 1423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- display = _tmp13_;
-#line 1424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = display;
-#line 1424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = cursor_type;
-#line 1424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = gdk_cursor_new_for_display (_tmp14_, _tmp15_);
-#line 1424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cursor = _tmp16_;
-#line 1425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = drawing_window;
-#line 1425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = cursor;
-#line 1425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gdk_window_set_cursor (_tmp17_, _tmp18_);
-#line 1426 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = cursor_type;
-#line 1426 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->current_cursor_type = _tmp19_;
-#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (cursor);
-#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (display);
-#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (drawing_window);
-#line 10221 "EditingTools.c"
- }
-}
-
-
-static gint
-editing_tools_crop_tool_eval_radial_line (EditingToolsCropTool* self,
- gdouble center_x,
- gdouble center_y,
- gdouble bounds_x,
- gdouble bounds_y,
- gdouble user_x)
-{
- gint result = 0;
- gdouble decision_slope = 0.0;
- gdouble decision_intercept = 0.0;
-#line 1430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), 0);
-#line 1432 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- decision_slope = (bounds_y - center_y) / (bounds_x - center_x);
-#line 1433 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- decision_intercept = bounds_y - (decision_slope * bounds_x);
-#line 1435 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = (gint) ((decision_slope * user_x) + decision_intercept);
-#line 1435 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 10247 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_get_photo_dimensions (EditingToolsCropTool* self,
- Dimensions* result)
-{
- Dimensions photo_dims = {0};
- EditingToolsPhotoCanvas* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- Dimensions _tmp3_ = {0};
- Dimensions _tmp4_;
- Dimensions surface_dims = {0};
- EditingToolsPhotoCanvas* _tmp5_;
- Dimensions _tmp6_ = {0};
- gdouble scale_factor = 0.0;
- Dimensions _tmp7_;
- gint _tmp8_;
- Dimensions _tmp9_;
- gint _tmp10_;
- Dimensions _tmp11_;
- gint _tmp12_;
- Dimensions _tmp13_;
- gint _tmp14_;
- gdouble _tmp15_;
- EditingToolsPhotoCanvas* _tmp16_;
- Photo* _tmp17_;
- Photo* _tmp18_;
- Dimensions _tmp19_ = {0};
- Dimensions _tmp20_;
- gint _tmp21_;
- gdouble _tmp22_;
- Dimensions _tmp23_;
- gint _tmp24_;
- gdouble _tmp25_;
- Dimensions _tmp26_ = {0};
-#line 1439 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_);
-#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_;
-#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp3_);
-#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_;
-#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp2_);
-#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_dims = _tmp4_;
-#line 1441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_surface_dim (_tmp5_, &_tmp6_);
-#line 1441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- surface_dims = _tmp6_;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = surface_dims;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.width;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = photo_dims;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.width;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = surface_dims;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.height;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = photo_dims;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_.height;
-#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scale_factor = MIN (((gdouble) _tmp8_) / _tmp10_, ((gdouble) _tmp12_) / _tmp14_);
-#line 1444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = scale_factor;
-#line 1444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scale_factor = MIN (_tmp15_, 1.0);
-#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = editing_tools_photo_canvas_get_photo (_tmp16_);
-#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = _tmp17_;
-#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_STRAIGHTEN, &_tmp19_);
-#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_dims = _tmp19_;
-#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp18_);
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = photo_dims;
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_.width;
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = scale_factor;
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = photo_dims;
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = _tmp23_.height;
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = scale_factor;
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_.width = (gint) (_tmp21_ * _tmp22_);
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_.height = (gint) (_tmp24_ * _tmp25_);
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _tmp26_;
-#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 10361 "EditingTools.c"
-}
-
-
-static gboolean
-_box_equal (const Box * s1,
- const Box * s2)
-{
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (s1 == s2) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return TRUE;
-#line 10373 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (s1 == NULL) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return FALSE;
-#line 10379 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (s2 == NULL) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return FALSE;
-#line 10385 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (s1->left != s2->left) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return FALSE;
-#line 10391 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (s1->top != s2->top) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return FALSE;
-#line 10397 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (s1->right != s2->right) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return FALSE;
-#line 10403 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (s1->bottom != s2->bottom) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return FALSE;
-#line 10409 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return TRUE;
-#line 10413 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_crop_tool_on_canvas_manipulation (EditingToolsCropTool* self,
- gint x,
- gint y)
-{
- gboolean result = FALSE;
- GdkRectangle scaled_pos = {0};
- EditingToolsPhotoCanvas* _tmp0_;
- GdkRectangle _tmp1_ = {0};
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- gint left = 0;
- Box _tmp14_;
- gint _tmp15_;
- gint top = 0;
- Box _tmp16_;
- gint _tmp17_;
- gint right = 0;
- Box _tmp18_;
- gint _tmp19_;
- gint bottom = 0;
- Box _tmp20_;
- gint _tmp21_;
- gint center_x = 0;
- gint _tmp22_;
- gint _tmp23_;
- gint center_y = 0;
- gint _tmp24_;
- gint _tmp25_;
- BoxLocation _tmp26_;
- gint width = 0;
- gint _tmp137_;
- gint _tmp138_;
- gint height = 0;
- gint _tmp139_;
- gint _tmp140_;
- Dimensions photo_dims = {0};
- Dimensions _tmp141_ = {0};
- gdouble angle = 0.0;
- EditingToolsPhotoCanvas* _tmp142_;
- Photo* _tmp143_;
- Photo* _tmp144_;
- gdouble _tmp145_ = 0.0;
- Box new_crop = {0};
- BoxLocation _tmp191_;
- Box _tmp194_;
-#line 1453 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), FALSE);
-#line 1454 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1454 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp0_, &_tmp1_);
-#line 1454 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scaled_pos = _tmp1_;
-#line 1458 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = scaled_pos;
-#line 1458 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 1458 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = x - _tmp3_;
-#line 1459 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (x < 0) {
-#line 1460 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = 0;
-#line 10483 "EditingTools.c"
- } else {
- GdkRectangle _tmp4_;
- gint _tmp5_;
-#line 1461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = scaled_pos;
-#line 1461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.width;
-#line 1461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (x >= _tmp5_) {
-#line 10493 "EditingTools.c"
- GdkRectangle _tmp6_;
- gint _tmp7_;
-#line 1462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = scaled_pos;
-#line 1462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.width;
-#line 1462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = _tmp7_ - 1;
-#line 10502 "EditingTools.c"
- }
- }
-#line 1464 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = scaled_pos;
-#line 1464 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.y;
-#line 1464 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y = y - _tmp9_;
-#line 1465 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (y < 0) {
-#line 1466 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y = 0;
-#line 10515 "EditingTools.c"
- } else {
- GdkRectangle _tmp10_;
- gint _tmp11_;
-#line 1467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = scaled_pos;
-#line 1467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.height;
-#line 1467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (y >= _tmp11_) {
-#line 10525 "EditingTools.c"
- GdkRectangle _tmp12_;
- gint _tmp13_;
-#line 1468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = scaled_pos;
-#line 1468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.height;
-#line 1468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y = _tmp13_ - 1;
-#line 10534 "EditingTools.c"
- }
- }
-#line 1472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->scaled_crop;
-#line 1472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_.left;
-#line 1472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = _tmp15_;
-#line 1473 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->priv->scaled_crop;
-#line 1473 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_.top;
-#line 1473 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = _tmp17_;
-#line 1474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->scaled_crop;
-#line 1474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_.right;
-#line 1474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = _tmp19_;
-#line 1475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = self->priv->scaled_crop;
-#line 1475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_.bottom;
-#line 1475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = _tmp21_;
-#line 1478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = left;
-#line 1478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = right;
-#line 1478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- center_x = (_tmp22_ + _tmp23_) / 2;
-#line 1479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = top;
-#line 1479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = bottom;
-#line 1479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- center_y = (_tmp24_ + _tmp25_) / 2;
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = self->priv->in_manipulation;
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- switch (_tmp26_) {
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_LEFT_SIDE:
-#line 10579 "EditingTools.c"
- {
-#line 1483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = x;
-#line 1484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 10585 "EditingTools.c"
- gfloat new_height = 0.0F;
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- gfloat _tmp30_;
-#line 1485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = right;
-#line 1485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = left;
-#line 1485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_height = ((gfloat) (_tmp27_ - _tmp28_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = top;
-#line 1486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = new_height;
-#line 1486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = _tmp29_ + ((gint) _tmp30_);
-#line 10603 "EditingTools.c"
- }
-#line 1488 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10607 "EditingTools.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_SIDE:
-#line 10611 "EditingTools.c"
- {
-#line 1491 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = y;
-#line 1492 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 10617 "EditingTools.c"
- gfloat new_width = 0.0F;
- gint _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- gfloat _tmp34_;
-#line 1493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = bottom;
-#line 1493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = top;
-#line 1493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_width = ((gfloat) (_tmp31_ - _tmp32_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = left;
-#line 1494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = new_width;
-#line 1494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = _tmp33_ + ((gint) _tmp34_);
-#line 10635 "EditingTools.c"
- }
-#line 1496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10639 "EditingTools.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_RIGHT_SIDE:
-#line 10643 "EditingTools.c"
- {
-#line 1499 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = x;
-#line 1500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 10649 "EditingTools.c"
- gfloat new_height = 0.0F;
- gint _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- gfloat _tmp38_;
-#line 1501 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = right;
-#line 1501 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = left;
-#line 1501 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_height = ((gfloat) (_tmp35_ - _tmp36_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1502 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = top;
-#line 1502 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = new_height;
-#line 1502 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = _tmp37_ + ((gint) _tmp38_);
-#line 10667 "EditingTools.c"
- }
-#line 1504 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10671 "EditingTools.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_SIDE:
-#line 10675 "EditingTools.c"
- {
-#line 1507 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = y;
-#line 1508 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 10681 "EditingTools.c"
- gfloat new_width = 0.0F;
- gint _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- gfloat _tmp42_;
-#line 1509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = bottom;
-#line 1509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = top;
-#line 1509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_width = ((gfloat) (_tmp39_ - _tmp40_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = left;
-#line 1510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = new_width;
-#line 1510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = _tmp41_ + ((gint) _tmp42_);
-#line 10699 "EditingTools.c"
- }
-#line 1512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10703 "EditingTools.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_LEFT:
-#line 10707 "EditingTools.c"
- {
-#line 1515 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 1516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = y;
-#line 1517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = x;
-#line 10715 "EditingTools.c"
- } else {
- gint _tmp43_;
- gint _tmp44_;
- gint _tmp45_;
- gint _tmp46_;
-#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = center_x;
-#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = center_y;
-#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = left;
-#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = top;
-#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (y < editing_tools_crop_tool_eval_radial_line (self, (gdouble) _tmp43_, (gdouble) _tmp44_, (gdouble) _tmp45_, (gdouble) _tmp46_, (gdouble) x)) {
-#line 10731 "EditingTools.c"
- gfloat new_width = 0.0F;
- gint _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
- gfloat _tmp50_;
-#line 1520 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = y;
-#line 1521 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47_ = bottom;
-#line 1521 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = top;
-#line 1521 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_width = ((gfloat) (_tmp47_ - _tmp48_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1522 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = right;
-#line 1522 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp50_ = new_width;
-#line 1522 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = _tmp49_ - ((gint) _tmp50_);
-#line 10751 "EditingTools.c"
- } else {
- gfloat new_height = 0.0F;
- gint _tmp51_;
- gint _tmp52_;
- gint _tmp53_;
- gfloat _tmp54_;
-#line 1524 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = x;
-#line 1525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51_ = right;
-#line 1525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = left;
-#line 1525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_height = ((gfloat) (_tmp51_ - _tmp52_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1526 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53_ = bottom;
-#line 1526 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp54_ = new_height;
-#line 1526 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = _tmp53_ - ((gint) _tmp54_);
-#line 10772 "EditingTools.c"
- }
- }
-#line 1529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10777 "EditingTools.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_LEFT:
-#line 10781 "EditingTools.c"
- {
-#line 1532 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 1533 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = y;
-#line 1534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = x;
-#line 10789 "EditingTools.c"
- } else {
- gint _tmp55_;
- gint _tmp56_;
- gint _tmp57_;
- gint _tmp58_;
-#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp55_ = center_x;
-#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp56_ = center_y;
-#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp57_ = left;
-#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp58_ = bottom;
-#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (y < editing_tools_crop_tool_eval_radial_line (self, (gdouble) _tmp55_, (gdouble) _tmp56_, (gdouble) _tmp57_, (gdouble) _tmp58_, (gdouble) x)) {
-#line 10805 "EditingTools.c"
- gfloat new_height = 0.0F;
- gint _tmp59_;
- gint _tmp60_;
- gint _tmp61_;
- gfloat _tmp62_;
-#line 1537 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = x;
-#line 1538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp59_ = right;
-#line 1538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp60_ = left;
-#line 1538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_height = ((gfloat) (_tmp59_ - _tmp60_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp61_ = top;
-#line 1539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp62_ = new_height;
-#line 1539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = _tmp61_ + ((gint) _tmp62_);
-#line 10825 "EditingTools.c"
- } else {
- gfloat new_width = 0.0F;
- gint _tmp63_;
- gint _tmp64_;
- gint _tmp65_;
- gfloat _tmp66_;
-#line 1541 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = y;
-#line 1542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp63_ = bottom;
-#line 1542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp64_ = top;
-#line 1542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_width = ((gfloat) (_tmp63_ - _tmp64_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp65_ = right;
-#line 1543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp66_ = new_width;
-#line 1543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = _tmp65_ - ((gint) _tmp66_);
-#line 10846 "EditingTools.c"
- }
- }
-#line 1546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10851 "EditingTools.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_RIGHT:
-#line 10855 "EditingTools.c"
- {
-#line 1549 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 1550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = y;
-#line 1551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = x;
-#line 10863 "EditingTools.c"
- } else {
- gint _tmp67_;
- gint _tmp68_;
- gint _tmp69_;
- gint _tmp70_;
-#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp67_ = center_x;
-#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp68_ = center_y;
-#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp69_ = right;
-#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp70_ = top;
-#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (y < editing_tools_crop_tool_eval_radial_line (self, (gdouble) _tmp67_, (gdouble) _tmp68_, (gdouble) _tmp69_, (gdouble) _tmp70_, (gdouble) x)) {
-#line 10879 "EditingTools.c"
- gfloat new_width = 0.0F;
- gint _tmp71_;
- gint _tmp72_;
- gint _tmp73_;
- gfloat _tmp74_;
-#line 1554 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = y;
-#line 1555 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp71_ = bottom;
-#line 1555 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp72_ = top;
-#line 1555 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_width = ((gfloat) (_tmp71_ - _tmp72_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp73_ = left;
-#line 1556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp74_ = new_width;
-#line 1556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = _tmp73_ + ((gint) _tmp74_);
-#line 10899 "EditingTools.c"
- } else {
- gfloat new_height = 0.0F;
- gint _tmp75_;
- gint _tmp76_;
- gint _tmp77_;
- gfloat _tmp78_;
-#line 1558 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = x;
-#line 1559 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp75_ = right;
-#line 1559 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp76_ = left;
-#line 1559 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_height = ((gfloat) (_tmp75_ - _tmp76_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp77_ = bottom;
-#line 1560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp78_ = new_height;
-#line 1560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = _tmp77_ - ((gint) _tmp78_);
-#line 10920 "EditingTools.c"
- }
- }
-#line 1563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10925 "EditingTools.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_RIGHT:
-#line 10929 "EditingTools.c"
- {
-#line 1566 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 1567 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = y;
-#line 1568 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = x;
-#line 10937 "EditingTools.c"
- } else {
- gint _tmp79_;
- gint _tmp80_;
- gint _tmp81_;
- gint _tmp82_;
-#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp79_ = center_x;
-#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp80_ = center_y;
-#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp81_ = right;
-#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp82_ = bottom;
-#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (y < editing_tools_crop_tool_eval_radial_line (self, (gdouble) _tmp79_, (gdouble) _tmp80_, (gdouble) _tmp81_, (gdouble) _tmp82_, (gdouble) x)) {
-#line 10953 "EditingTools.c"
- gfloat new_height = 0.0F;
- gint _tmp83_;
- gint _tmp84_;
- gint _tmp85_;
- gfloat _tmp86_;
-#line 1571 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = x;
-#line 1572 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp83_ = right;
-#line 1572 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp84_ = left;
-#line 1572 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_height = ((gfloat) (_tmp83_ - _tmp84_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1573 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp85_ = top;
-#line 1573 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp86_ = new_height;
-#line 1573 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = _tmp85_ + ((gint) _tmp86_);
-#line 10973 "EditingTools.c"
- } else {
- gfloat new_width = 0.0F;
- gint _tmp87_;
- gint _tmp88_;
- gint _tmp89_;
- gfloat _tmp90_;
-#line 1575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = y;
-#line 1576 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp87_ = bottom;
-#line 1576 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp88_ = top;
-#line 1576 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_width = ((gfloat) (_tmp87_ - _tmp88_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self);
-#line 1577 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp89_ = left;
-#line 1577 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp90_ = new_width;
-#line 1577 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = _tmp89_ + ((gint) _tmp90_);
-#line 10994 "EditingTools.c"
- }
- }
-#line 1580 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 10999 "EditingTools.c"
- }
-#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_INSIDE:
-#line 11003 "EditingTools.c"
- {
- gint _tmp91_;
- gint _tmp92_;
- gint delta_x = 0;
- gint _tmp93_;
- gint delta_y = 0;
- gint _tmp94_;
- gint width = 0;
- gint _tmp95_;
- gint _tmp96_;
- gint height = 0;
- gint _tmp97_;
- gint _tmp98_;
- gint _tmp99_;
- gint _tmp100_;
- gint _tmp101_;
- gint _tmp102_;
- gint _tmp103_;
- gint _tmp104_;
- gint _tmp105_;
- gint _tmp106_;
- gint _tmp107_;
- gint _tmp108_;
- gint _tmp109_;
- GdkRectangle _tmp110_;
- gint _tmp111_;
- gint _tmp114_;
- GdkRectangle _tmp115_;
- gint _tmp116_;
- gint adj_width = 0;
- gint _tmp119_;
- gint _tmp120_;
- gint adj_height = 0;
- gint _tmp121_;
- gint _tmp122_;
- gint _tmp123_;
- gint _tmp124_;
- gint _tmp130_;
- gint _tmp131_;
-#line 1583 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp91_ = self->priv->last_grab_x;
-#line 1583 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_assert (_tmp91_ >= 0, "last_grab_x >= 0");
-#line 1584 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp92_ = self->priv->last_grab_y;
-#line 1584 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_assert (_tmp92_ >= 0, "last_grab_y >= 0");
-#line 1586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp93_ = self->priv->last_grab_x;
-#line 1586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- delta_x = x - _tmp93_;
-#line 1587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp94_ = self->priv->last_grab_y;
-#line 1587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- delta_y = y - _tmp94_;
-#line 1589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->last_grab_x = x;
-#line 1590 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->last_grab_y = y;
-#line 1592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp95_ = right;
-#line 1592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp96_ = left;
-#line 1592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- width = (_tmp95_ - _tmp96_) + 1;
-#line 1593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp97_ = bottom;
-#line 1593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp98_ = top;
-#line 1593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- height = (_tmp97_ - _tmp98_) + 1;
-#line 1595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp99_ = left;
-#line 1595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp100_ = delta_x;
-#line 1595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = _tmp99_ + _tmp100_;
-#line 1596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp101_ = top;
-#line 1596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp102_ = delta_y;
-#line 1596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = _tmp101_ + _tmp102_;
-#line 1597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp103_ = right;
-#line 1597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp104_ = delta_x;
-#line 1597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = _tmp103_ + _tmp104_;
-#line 1598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp105_ = bottom;
-#line 1598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp106_ = delta_y;
-#line 1598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = _tmp105_ + _tmp106_;
-#line 1601 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp107_ = left;
-#line 1601 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp107_ < 0) {
-#line 1602 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = 0;
-#line 11105 "EditingTools.c"
- }
-#line 1604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp108_ = top;
-#line 1604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp108_ < 0) {
-#line 1605 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = 0;
-#line 11113 "EditingTools.c"
- }
-#line 1607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp109_ = right;
-#line 1607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp110_ = scaled_pos;
-#line 1607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp111_ = _tmp110_.width;
-#line 1607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp109_ >= _tmp111_) {
-#line 11123 "EditingTools.c"
- GdkRectangle _tmp112_;
- gint _tmp113_;
-#line 1608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp112_ = scaled_pos;
-#line 1608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp113_ = _tmp112_.width;
-#line 1608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = _tmp113_ - 1;
-#line 11132 "EditingTools.c"
- }
-#line 1610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp114_ = bottom;
-#line 1610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp115_ = scaled_pos;
-#line 1610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp116_ = _tmp115_.height;
-#line 1610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp114_ >= _tmp116_) {
-#line 11142 "EditingTools.c"
- GdkRectangle _tmp117_;
- gint _tmp118_;
-#line 1611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp117_ = scaled_pos;
-#line 1611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp118_ = _tmp117_.height;
-#line 1611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = _tmp118_ - 1;
-#line 11151 "EditingTools.c"
- }
-#line 1613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp119_ = right;
-#line 1613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp120_ = left;
-#line 1613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- adj_width = (_tmp119_ - _tmp120_) + 1;
-#line 1614 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp121_ = bottom;
-#line 1614 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp122_ = top;
-#line 1614 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- adj_height = (_tmp121_ - _tmp122_) + 1;
-#line 1617 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp123_ = adj_width;
-#line 1617 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp124_ = width;
-#line 1617 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp123_ != _tmp124_) {
-#line 11171 "EditingTools.c"
- gint _tmp125_;
-#line 1618 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp125_ = delta_x;
-#line 1618 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp125_ < 0) {
-#line 11177 "EditingTools.c"
- gint _tmp126_;
- gint _tmp127_;
-#line 1619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp126_ = left;
-#line 1619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp127_ = width;
-#line 1619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = (_tmp126_ + _tmp127_) - 1;
-#line 11186 "EditingTools.c"
- } else {
- gint _tmp128_;
- gint _tmp129_;
-#line 1621 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp128_ = right;
-#line 1621 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp129_ = width;
-#line 1621 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = (_tmp128_ - _tmp129_) + 1;
-#line 11196 "EditingTools.c"
- }
- }
-#line 1624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp130_ = adj_height;
-#line 1624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp131_ = height;
-#line 1624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp130_ != _tmp131_) {
-#line 11205 "EditingTools.c"
- gint _tmp132_;
-#line 1625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp132_ = delta_y;
-#line 1625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp132_ < 0) {
-#line 11211 "EditingTools.c"
- gint _tmp133_;
- gint _tmp134_;
-#line 1626 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp133_ = top;
-#line 1626 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp134_ = height;
-#line 1626 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = (_tmp133_ + _tmp134_) - 1;
-#line 11220 "EditingTools.c"
- } else {
- gint _tmp135_;
- gint _tmp136_;
-#line 1628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp135_ = bottom;
-#line 1628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp136_ = height;
-#line 1628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = (_tmp135_ - _tmp136_) + 1;
-#line 11230 "EditingTools.c"
- }
- }
-#line 1630 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 11235 "EditingTools.c"
- }
- default:
- {
-#line 1634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 1634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 11243 "EditingTools.c"
- }
- }
-#line 1644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp137_ = right;
-#line 1644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp138_ = left;
-#line 1644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- width = (_tmp137_ - _tmp138_) + 1;
-#line 1645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp139_ = bottom;
-#line 1645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp140_ = top;
-#line 1645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- height = (_tmp139_ - _tmp140_) + 1;
-#line 1647 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_get_photo_dimensions (self, &_tmp141_);
-#line 1647 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_dims = _tmp141_;
-#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp142_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp143_ = editing_tools_photo_canvas_get_photo (_tmp142_);
-#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp144_ = _tmp143_;
-#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_get_straighten (_tmp144_, &_tmp145_);
-#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- angle = _tmp145_;
-#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp144_);
-#line 1652 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 11276 "EditingTools.c"
- gint _tmp146_;
- gint _tmp147_;
- gint _tmp148_;
- gint _tmp149_;
- BoxLocation _tmp150_;
- BoxLocation _tmp155_;
- gint _tmp160_;
- gint _tmp161_;
- gint _tmp162_;
- gint _tmp163_;
- Box _tmp164_ = {0};
- Dimensions _tmp165_;
- gint _tmp166_;
- Dimensions _tmp167_;
- gint _tmp168_;
- gdouble _tmp169_;
- BoxLocation _tmp170_;
- Box _tmp171_ = {0};
-#line 1653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp146_ = right;
-#line 1653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp147_ = left;
-#line 1653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- width = (_tmp146_ - _tmp147_) + 1;
-#line 1654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp148_ = bottom;
-#line 1654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp149_ = top;
-#line 1654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- height = (_tmp148_ - _tmp149_) + 1;
-#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp150_ = self->priv->in_manipulation;
-#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- switch (_tmp150_) {
-#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_LEFT_SIDE:
-#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_LEFT:
-#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_LEFT:
-#line 11317 "EditingTools.c"
- {
- gint _tmp151_;
-#line 1660 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp151_ = width;
-#line 1660 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp151_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) {
-#line 11324 "EditingTools.c"
- gint _tmp152_;
-#line 1661 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp152_ = right;
-#line 1661 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- left = _tmp152_ - EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE;
-#line 11330 "EditingTools.c"
- }
-#line 1662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 11334 "EditingTools.c"
- }
-#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_RIGHT_SIDE:
-#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_RIGHT:
-#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_RIGHT:
-#line 11342 "EditingTools.c"
- {
- gint _tmp153_;
-#line 1667 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp153_ = width;
-#line 1667 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp153_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) {
-#line 11349 "EditingTools.c"
- gint _tmp154_;
-#line 1668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp154_ = left;
-#line 1668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- right = _tmp154_ + EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE;
-#line 11355 "EditingTools.c"
- }
-#line 1669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 11359 "EditingTools.c"
- }
- default:
- {
-#line 1672 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 11365 "EditingTools.c"
- }
- }
-#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp155_ = self->priv->in_manipulation;
-#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- switch (_tmp155_) {
-#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_SIDE:
-#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_LEFT:
-#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_TOP_RIGHT:
-#line 11378 "EditingTools.c"
- {
- gint _tmp156_;
-#line 1679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp156_ = height;
-#line 1679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp156_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) {
-#line 11385 "EditingTools.c"
- gint _tmp157_;
-#line 1680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp157_ = bottom;
-#line 1680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- top = _tmp157_ - EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE;
-#line 11391 "EditingTools.c"
- }
-#line 1681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 11395 "EditingTools.c"
- }
-#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_SIDE:
-#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_LEFT:
-#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case BOX_LOCATION_BOTTOM_RIGHT:
-#line 11403 "EditingTools.c"
- {
- gint _tmp158_;
-#line 1686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp158_ = height;
-#line 1686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp158_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) {
-#line 11410 "EditingTools.c"
- gint _tmp159_;
-#line 1687 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp159_ = top;
-#line 1687 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bottom = _tmp159_ + EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE;
-#line 11416 "EditingTools.c"
- }
-#line 1688 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 11420 "EditingTools.c"
- }
- default:
- {
-#line 1691 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 11426 "EditingTools.c"
- }
- }
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp160_ = left;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp161_ = top;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp162_ = right;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp163_ = bottom;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_init (&_tmp164_, _tmp160_, _tmp161_, _tmp162_, _tmp163_);
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp165_ = photo_dims;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp166_ = _tmp165_.width;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp167_ = photo_dims;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp168_ = _tmp167_.height;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp169_ = angle;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp170_ = self->priv->in_manipulation;
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- clamp_inside_rotated_image (&_tmp164_, _tmp166_, _tmp168_, _tmp169_, _tmp170_ == BOX_LOCATION_INSIDE, &_tmp171_);
-#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_crop = _tmp171_;
-#line 11455 "EditingTools.c"
- } else {
- gint _tmp172_;
- gint _tmp173_;
- gint _tmp174_;
- gint _tmp175_;
- Box adjusted = {0};
- Box _tmp176_;
- Dimensions _tmp177_;
- gint _tmp178_;
- Dimensions _tmp179_;
- gint _tmp180_;
- gdouble _tmp181_;
- BoxLocation _tmp182_;
- Box _tmp183_ = {0};
- gboolean _tmp184_ = FALSE;
- gboolean _tmp185_ = FALSE;
- Box _tmp186_;
- Box _tmp187_;
-#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp172_ = left;
-#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp173_ = top;
-#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp174_ = right;
-#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp175_ = bottom;
-#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_init (&new_crop, _tmp172_, _tmp173_, _tmp174_, _tmp175_);
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp176_ = new_crop;
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp177_ = photo_dims;
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp178_ = _tmp177_.width;
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp179_ = photo_dims;
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp180_ = _tmp179_.height;
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp181_ = angle;
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp182_ = self->priv->in_manipulation;
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- clamp_inside_rotated_image (&_tmp176_, _tmp178_, _tmp180_, _tmp181_, _tmp182_ == BOX_LOCATION_INSIDE, &_tmp183_);
-#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- adjusted = _tmp183_;
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp186_ = adjusted;
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp187_ = new_crop;
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_box_equal (&_tmp186_, &_tmp187_) != TRUE) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp185_ = TRUE;
-#line 11510 "EditingTools.c"
- } else {
- gint _tmp188_;
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp188_ = width;
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp185_ = _tmp188_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE;
-#line 11517 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp185_) {
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp184_ = TRUE;
-#line 11523 "EditingTools.c"
- } else {
- gint _tmp189_;
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp189_ = height;
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp184_ = _tmp189_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE;
-#line 11530 "EditingTools.c"
- }
-#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp184_) {
-#line 11534 "EditingTools.c"
- Box _tmp190_;
-#line 1712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp190_ = self->priv->scaled_crop;
-#line 1712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_crop = _tmp190_;
-#line 11540 "EditingTools.c"
- }
- }
-#line 1716 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp191_ = self->priv->in_manipulation;
-#line 1716 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp191_ != BOX_LOCATION_INSIDE) {
-#line 11547 "EditingTools.c"
- Box _tmp192_;
-#line 1717 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp192_ = new_crop;
-#line 1717 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_crop_resized (self, &_tmp192_);
-#line 11553 "EditingTools.c"
- } else {
- Box _tmp193_;
-#line 1719 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp193_ = new_crop;
-#line 1719 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_crop_moved (self, &_tmp193_);
-#line 11560 "EditingTools.c"
- }
-#line 1722 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp194_ = new_crop;
-#line 1722 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->scaled_crop = _tmp194_;
-#line 1724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) {
-#line 11568 "EditingTools.c"
- gint _tmp195_;
- gint _tmp196_;
-#line 1725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_init_width = box_get_width (&self->priv->scaled_crop);
-#line 1726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_init_height = box_get_height (&self->priv->scaled_crop);
-#line 1727 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp195_ = self->priv->custom_init_width;
-#line 1727 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp196_ = self->priv->custom_init_height;
-#line 1727 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_aspect_ratio = ((gfloat) _tmp195_) / ((gfloat) _tmp196_);
-#line 11581 "EditingTools.c"
- }
-#line 1730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 1730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 11587 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_crop_resized (EditingToolsCropTool* self,
- Box* new_crop)
-{
- Box _tmp0_;
- EditingToolsPhotoCanvas* _tmp1_;
- Box _tmp2_;
- Box horizontal = {0};
- gboolean horizontal_enlarged = FALSE;
- Box vertical = {0};
- gboolean vertical_enlarged = FALSE;
- BoxComplements complements = 0;
- Box _tmp3_;
- Box _tmp4_ = {0};
- gboolean _tmp5_ = FALSE;
- Box _tmp6_ = {0};
- gboolean _tmp7_ = FALSE;
- BoxComplements _tmp8_;
- BoxComplements _tmp9_;
- gboolean _tmp10_ = FALSE;
- BoxComplements _tmp11_;
- gboolean _tmp16_ = FALSE;
- BoxComplements _tmp17_;
- Box _tmp22_;
- EditingToolsPhotoCanvas* _tmp23_;
- Box _tmp24_;
-#line 1733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (new_crop != NULL);
-#line 1734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = *new_crop;
-#line 1734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (box_equals (&self->priv->scaled_crop, &_tmp0_)) {
-#line 1736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 11627 "EditingTools.c"
- }
-#line 1739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->scaled_crop;
-#line 1739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_invalidate_area (_tmp1_, &_tmp2_);
-#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = *new_crop;
-#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = box_resized_complements (&self->priv->scaled_crop, &_tmp3_, &_tmp4_, &_tmp5_, &_tmp6_, &_tmp7_);
-#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- horizontal = _tmp4_;
-#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- horizontal_enlarged = _tmp5_;
-#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- vertical = _tmp6_;
-#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- vertical_enlarged = _tmp7_;
-#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- complements = _tmp8_;
-#line 1749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = complements;
-#line 1749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_assert (_tmp9_ != BOX_COMPLEMENTS_NONE, "complements != BoxComplements.NONE");
-#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = complements;
-#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp11_ == BOX_COMPLEMENTS_HORIZONTAL) {
-#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = TRUE;
-#line 11659 "EditingTools.c"
- } else {
- BoxComplements _tmp12_;
-#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = complements;
-#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp12_ == BOX_COMPLEMENTS_BOTH;
-#line 11666 "EditingTools.c"
- }
-#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp10_) {
-#line 11670 "EditingTools.c"
- gdouble _tmp13_ = 0.0;
- gboolean _tmp14_;
- Box _tmp15_;
-#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = horizontal_enlarged;
-#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp14_) {
-#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = 0.0;
-#line 11680 "EditingTools.c"
- } else {
-#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = 0.5;
-#line 11684 "EditingTools.c"
- }
-#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = horizontal;
-#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_set_area_alpha (self, &_tmp15_, _tmp13_);
-#line 11690 "EditingTools.c"
- }
-#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = complements;
-#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp17_ == BOX_COMPLEMENTS_VERTICAL) {
-#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = TRUE;
-#line 11698 "EditingTools.c"
- } else {
- BoxComplements _tmp18_;
-#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = complements;
-#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp18_ == BOX_COMPLEMENTS_BOTH;
-#line 11705 "EditingTools.c"
- }
-#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp16_) {
-#line 11709 "EditingTools.c"
- gdouble _tmp19_ = 0.0;
- gboolean _tmp20_;
- Box _tmp21_;
-#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = vertical_enlarged;
-#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp20_) {
-#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = 0.0;
-#line 11719 "EditingTools.c"
- } else {
-#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = 0.5;
-#line 11723 "EditingTools.c"
- }
-#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = vertical;
-#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_set_area_alpha (self, &_tmp21_, _tmp19_);
-#line 11729 "EditingTools.c"
- }
-#line 1757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = *new_crop;
-#line 1757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_paint_crop_tool (self, &_tmp22_);
-#line 1758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = *new_crop;
-#line 1758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_invalidate_area (_tmp23_, &_tmp24_);
-#line 11741 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_crop_moved (EditingToolsCropTool* self,
- Box* new_crop)
-{
- Box _tmp0_;
- EditingToolsPhotoCanvas* _tmp1_;
- Box _tmp2_;
- Box _tmp3_;
- Box _tmp4_;
- Box _tmp5_;
- EditingToolsPhotoCanvas* _tmp6_;
- Box _tmp7_;
-#line 1761 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1761 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (new_crop != NULL);
-#line 1762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = *new_crop;
-#line 1762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (box_equals (&self->priv->scaled_crop, &_tmp0_)) {
-#line 1764 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 11767 "EditingTools.c"
- }
-#line 1767 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1767 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->scaled_crop;
-#line 1767 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_invalidate_area (_tmp1_, &_tmp2_);
-#line 1769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->scaled_crop;
-#line 1769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_set_area_alpha (self, &_tmp3_, 0.5);
-#line 1770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = *new_crop;
-#line 1770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_set_area_alpha (self, &_tmp4_, 0.0);
-#line 1774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = *new_crop;
-#line 1774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_paint_crop_tool (self, &_tmp5_);
-#line 1775 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1775 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = *new_crop;
-#line 1775 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_invalidate_area (_tmp6_, &_tmp7_);
-#line 11793 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_set_area_alpha (EditingToolsCropTool* self,
- Box* area,
- gdouble alpha)
-{
- cairo_t* ctx = NULL;
- cairo_surface_t* _tmp0_;
- cairo_t* _tmp1_;
- Box _tmp2_;
- gint _tmp3_;
- Box _tmp4_;
- gint _tmp5_;
- EditingToolsPhotoCanvas* _tmp6_;
- cairo_surface_t* _tmp7_;
- Box _tmp8_;
-#line 1778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (area != NULL);
-#line 1779 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->crop_surface;
-#line 1779 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = cairo_create (_tmp0_);
-#line 1779 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ctx = _tmp1_;
-#line 1780 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_operator (ctx, CAIRO_OPERATOR_SOURCE);
-#line 1781 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, alpha);
-#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *area;
-#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.left;
-#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = *area;
-#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.top;
-#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_rectangle (ctx, (gdouble) _tmp3_, (gdouble) _tmp5_, (gdouble) box_get_width (area), (gdouble) box_get_height (area));
-#line 1783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_fill (ctx);
-#line 1784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->crop_surface;
-#line 1784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = *area;
-#line 1784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_paint_surface_area (_tmp6_, _tmp7_, &_tmp8_, TRUE);
-#line 1778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (ctx);
-#line 11848 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_paint_crop_tool (EditingToolsCropTool* self,
- Box* crop)
-{
- BoxLocation _tmp0_;
- EditingToolsPhotoCanvas* _tmp55_;
- cairo_t* _tmp56_;
- Box _tmp57_;
- EditingToolsPhotoCanvas* _tmp58_;
- cairo_t* _tmp59_;
- Box _tmp60_ = {0};
- EditingToolsPhotoCanvas* _tmp61_;
- cairo_t* _tmp62_;
- Box _tmp63_ = {0};
-#line 1787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self));
-#line 1787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (crop != NULL);
-#line 1789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->in_manipulation;
-#line 1789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ != BOX_LOCATION_OUTSIDE) {
-#line 11874 "EditingTools.c"
- gint one_third_x = 0;
- gint one_third_y = 0;
- EditingToolsPhotoCanvas* _tmp1_;
- cairo_t* _tmp2_;
- Box _tmp3_;
- gint _tmp4_;
- Box _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- EditingToolsPhotoCanvas* _tmp8_;
- cairo_t* _tmp9_;
- Box _tmp10_;
- gint _tmp11_;
- Box _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- EditingToolsPhotoCanvas* _tmp15_;
- cairo_t* _tmp16_;
- Box _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- Box _tmp20_;
- gint _tmp21_;
- EditingToolsPhotoCanvas* _tmp22_;
- cairo_t* _tmp23_;
- Box _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- Box _tmp27_;
- gint _tmp28_;
- Box adj_crop = {0};
- EditingToolsPhotoCanvas* _tmp29_;
- GdkRectangle _tmp30_ = {0};
- Dimensions _tmp31_ = {0};
- EditingToolsPhotoCanvas* _tmp32_;
- Photo* _tmp33_;
- Photo* _tmp34_;
- Dimensions _tmp35_ = {0};
- Box _tmp36_ = {0};
- Box _tmp37_;
- gchar* text = NULL;
- gchar* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- gint x = 0;
- Box _tmp46_;
- gint _tmp47_;
- gint y = 0;
- Box _tmp48_;
- gint _tmp49_;
- EditingToolsPhotoCanvas* _tmp50_;
- cairo_t* _tmp51_;
- const gchar* _tmp52_;
- gint _tmp53_;
- gint _tmp54_;
-#line 1790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_third_x = box_get_width (crop) / 3;
-#line 1791 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_third_y = box_get_height (crop) / 3;
-#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->thin_white_ctx;
-#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = *crop;
-#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.left;
-#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = *crop;
-#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.top;
-#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = one_third_y;
-#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_horizontal_line (_tmp1_, _tmp2_, _tmp4_, _tmp6_ + _tmp7_, box_get_width (crop), TRUE);
-#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->thin_white_ctx;
-#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = *crop;
-#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.left;
-#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = *crop;
-#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.top;
-#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = one_third_y;
-#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_horizontal_line (_tmp8_, _tmp9_, _tmp11_, _tmp13_ + (_tmp14_ * 2), box_get_width (crop), TRUE);
-#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->priv->thin_white_ctx;
-#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = *crop;
-#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = _tmp17_.left;
-#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = one_third_x;
-#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = *crop;
-#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_.top;
-#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_vertical_line (_tmp15_, _tmp16_, _tmp18_ + _tmp19_, _tmp21_, box_get_height (crop), TRUE);
-#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = self->priv->thin_white_ctx;
-#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = *crop;
-#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp24_.left;
-#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = one_third_x;
-#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = *crop;
-#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = _tmp27_.top;
-#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_vertical_line (_tmp22_, _tmp23_, _tmp25_ + (_tmp26_ * 2), _tmp28_, box_get_height (crop), TRUE);
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp29_, &_tmp30_);
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dimensions_for_rectangle (&_tmp30_, &_tmp31_);
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = editing_tools_photo_canvas_get_photo (_tmp32_);
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = _tmp33_;
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp35_);
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_scaled_similar (&self->priv->scaled_crop, &_tmp31_, &_tmp35_, &_tmp36_);
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = _tmp36_;
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp34_);
-#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- adj_crop = _tmp37_;
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = g_strdup_printf ("%i", box_get_width (&adj_crop));
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = _tmp38_;
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = g_strconcat (_tmp39_, "x", NULL);
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = _tmp40_;
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = g_strdup_printf ("%i", box_get_height (&adj_crop));
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = _tmp42_;
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = g_strconcat (_tmp41_, _tmp43_, NULL);
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = _tmp44_;
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp43_);
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp41_);
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp39_);
-#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- text = _tmp45_;
-#line 1805 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = *crop;
-#line 1805 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47_ = _tmp46_.left;
-#line 1805 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x = _tmp47_ + (box_get_width (crop) / 2);
-#line 1806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = *crop;
-#line 1806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = _tmp48_.top;
-#line 1806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y = _tmp49_ + (box_get_height (crop) / 2);
-#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp50_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51_ = self->priv->text_ctx;
-#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = text;
-#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53_ = x;
-#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp54_ = y;
-#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_text (_tmp50_, _tmp51_, _tmp52_, _tmp53_, _tmp54_, TRUE);
-#line 1789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (text);
-#line 12075 "EditingTools.c"
- }
-#line 1811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp55_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp56_ = self->priv->wide_black_ctx;
-#line 1811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp57_ = *crop;
-#line 1811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_box (_tmp55_, _tmp56_, &_tmp57_);
-#line 1812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp58_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp59_ = self->priv->wide_white_ctx;
-#line 1812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_reduced (crop, 1, &_tmp60_);
-#line 1812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_box (_tmp58_, _tmp59_, &_tmp60_);
-#line 1813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp61_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp62_ = self->priv->wide_white_ctx;
-#line 1813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- box_get_reduced (crop, 2, &_tmp63_);
-#line 1813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_box (_tmp61_, _tmp62_, &_tmp63_);
-#line 12101 "EditingTools.c"
-}
-
-
-static EditingToolsCropToolConstraintDescription*
-editing_tools_crop_tool_constraint_description_construct (GType object_type,
- const gchar* new_name,
- gint new_basis_width,
- gint new_basis_height,
- gboolean new_pivotable,
- gfloat new_aspect_ratio)
-{
- EditingToolsCropToolConstraintDescription* self = NULL;
- gchar* _tmp0_;
-#line 593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (new_name != NULL, NULL);
-#line 593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsCropToolConstraintDescription*) g_type_create_instance (object_type);
-#line 595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = g_strdup (new_name);
-#line 595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (self->name);
-#line 595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->name = _tmp0_;
-#line 596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->basis_width = new_basis_width;
-#line 597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->basis_height = new_basis_height;
-#line 598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (new_aspect_ratio == EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS) {
-#line 12131 "EditingTools.c"
- gint _tmp1_;
- gint _tmp2_;
-#line 599 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->basis_width;
-#line 599 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->basis_height;
-#line 599 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->aspect_ratio = ((gfloat) _tmp1_) / ((gfloat) _tmp2_);
-#line 12140 "EditingTools.c"
- } else {
-#line 601 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->aspect_ratio = new_aspect_ratio;
-#line 12144 "EditingTools.c"
- }
-#line 602 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->is_pivotable = new_pivotable;
-#line 593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 12150 "EditingTools.c"
-}
-
-
-static EditingToolsCropToolConstraintDescription*
-editing_tools_crop_tool_constraint_description_new (const gchar* new_name,
- gint new_basis_width,
- gint new_basis_height,
- gboolean new_pivotable,
- gfloat new_aspect_ratio)
-{
-#line 593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_crop_tool_constraint_description_construct (EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, new_name, new_basis_width, new_basis_height, new_pivotable, new_aspect_ratio);
-#line 12163 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_crop_tool_constraint_description_is_separator (EditingToolsCropToolConstraintDescription* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 605 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_CROP_TOOL_IS_CONSTRAINT_DESCRIPTION (self), FALSE);
-#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->is_pivotable;
-#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!_tmp1_) {
-#line 12179 "EditingTools.c"
- gfloat _tmp2_;
-#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->aspect_ratio;
-#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _tmp2_ == EDITING_TOOLS_CROP_TOOL_SEPARATOR;
-#line 12185 "EditingTools.c"
- } else {
-#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = FALSE;
-#line 12189 "EditingTools.c"
- }
-#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp0_;
-#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 12195 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_value_constraint_description_init (GValue* value)
-{
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 12204 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_value_constraint_description_free_value (GValue* value)
-{
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (value->data[0].v_pointer) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constraint_description_unref (value->data[0].v_pointer);
-#line 12215 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_crop_tool_value_constraint_description_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (src_value->data[0].v_pointer) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dest_value->data[0].v_pointer = editing_tools_crop_tool_constraint_description_ref (src_value->data[0].v_pointer);
-#line 12228 "EditingTools.c"
- } else {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 12232 "EditingTools.c"
- }
-}
-
-
-static gpointer
-editing_tools_crop_tool_value_constraint_description_peek_pointer (const GValue* value)
-{
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return value->data[0].v_pointer;
-#line 12242 "EditingTools.c"
-}
-
-
-static gchar*
-editing_tools_crop_tool_value_constraint_description_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (collect_values[0].v_pointer) {
-#line 12254 "EditingTools.c"
- EditingToolsCropToolConstraintDescription * object;
- object = collect_values[0].v_pointer;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 12261 "EditingTools.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.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 12265 "EditingTools.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = editing_tools_crop_tool_constraint_description_ref (object);
-#line 12269 "EditingTools.c"
- } else {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 12273 "EditingTools.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return NULL;
-#line 12277 "EditingTools.c"
-}
-
-
-static gchar*
-editing_tools_crop_tool_value_constraint_description_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- EditingToolsCropToolConstraintDescription ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!object_p) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 12293 "EditingTools.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!value->data[0].v_pointer) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = NULL;
-#line 12299 "EditingTools.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = value->data[0].v_pointer;
-#line 12303 "EditingTools.c"
- } else {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *object_p = editing_tools_crop_tool_constraint_description_ref (value->data[0].v_pointer);
-#line 12307 "EditingTools.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return NULL;
-#line 12311 "EditingTools.c"
-}
-
-
-static GParamSpec*
-editing_tools_crop_tool_param_spec_constraint_description (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- EditingToolsCropToolParamSpecConstraintDescription* spec;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (g_type_is_a (object_type, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION), NULL);
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return G_PARAM_SPEC (spec);
-#line 12331 "EditingTools.c"
-}
-
-
-static gpointer
-editing_tools_crop_tool_value_get_constraint_description (const GValue* value)
-{
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION), NULL);
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return value->data[0].v_pointer;
-#line 12342 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_value_set_constraint_description (GValue* value,
- gpointer v_object)
-{
- EditingToolsCropToolConstraintDescription * old;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION));
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old = value->data[0].v_pointer;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (v_object) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION));
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = v_object;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constraint_description_ref (value->data[0].v_pointer);
-#line 12365 "EditingTools.c"
- } else {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 12369 "EditingTools.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (old) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constraint_description_unref (old);
-#line 12375 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_crop_tool_value_take_constraint_description (GValue* value,
- gpointer v_object)
-{
- EditingToolsCropToolConstraintDescription * old;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION));
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old = value->data[0].v_pointer;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (v_object) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION));
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = v_object;
-#line 12397 "EditingTools.c"
- } else {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- value->data[0].v_pointer = NULL;
-#line 12401 "EditingTools.c"
- }
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (old) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constraint_description_unref (old);
-#line 12407 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_crop_tool_constraint_description_class_init (EditingToolsCropToolConstraintDescriptionClass * klass)
-{
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_constraint_description_parent_class = g_type_class_peek_parent (klass);
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsCropToolConstraintDescriptionClass *) klass)->finalize = editing_tools_crop_tool_constraint_description_finalize;
-#line 12419 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_constraint_description_instance_init (EditingToolsCropToolConstraintDescription * self)
-{
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->ref_count = 1;
-#line 12428 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_constraint_description_finalize (EditingToolsCropToolConstraintDescription * obj)
-{
- EditingToolsCropToolConstraintDescription * self;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, EditingToolsCropToolConstraintDescription);
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_destroy (self);
-#line 587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (self->name);
-#line 12442 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_crop_tool_constraint_description_get_type (void)
-{
- static volatile gsize editing_tools_crop_tool_constraint_description_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_crop_tool_constraint_description_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { editing_tools_crop_tool_value_constraint_description_init, editing_tools_crop_tool_value_constraint_description_free_value, editing_tools_crop_tool_value_constraint_description_copy_value, editing_tools_crop_tool_value_constraint_description_peek_pointer, "p", editing_tools_crop_tool_value_constraint_description_collect_value, "p", editing_tools_crop_tool_value_constraint_description_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsCropToolConstraintDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_crop_tool_constraint_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsCropToolConstraintDescription), 0, (GInstanceInitFunc) editing_tools_crop_tool_constraint_description_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType editing_tools_crop_tool_constraint_description_type_id;
- editing_tools_crop_tool_constraint_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EditingToolsCropToolConstraintDescription", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&editing_tools_crop_tool_constraint_description_type_id__volatile, editing_tools_crop_tool_constraint_description_type_id);
- }
- return editing_tools_crop_tool_constraint_description_type_id__volatile;
-}
-
-
-static gpointer
-editing_tools_crop_tool_constraint_description_ref (gpointer instance)
-{
- EditingToolsCropToolConstraintDescription * self;
- self = instance;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return instance;
-#line 12471 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_constraint_description_unref (gpointer instance)
-{
- EditingToolsCropToolConstraintDescription * self;
- self = instance;
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_CROP_TOOL_CONSTRAINT_DESCRIPTION_GET_CLASS (self)->finalize (self);
-#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 12486 "EditingTools.c"
- }
-}
-
-
-static gboolean
-_editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func_gtk_tree_view_row_separator_func (GtkTreeModel* model,
- GtkTreeIter* iter,
- gpointer self)
-{
- gboolean result;
- result = editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func (model, iter);
-#line 654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 12500 "EditingTools.c"
-}
-
-
-static EditingToolsCropToolCropToolWindow*
-editing_tools_crop_tool_crop_tool_window_construct (GType object_type,
- GtkWindow* container)
-{
- EditingToolsCropToolCropToolWindow * self = NULL;
- GtkButton* _tmp0_;
- GtkButton* _tmp1_;
- GtkButton* _tmp2_;
- GtkButton* _tmp3_;
- GtkComboBox* _tmp4_;
- GtkCellRendererText* combo_text_renderer = NULL;
- GtkCellRendererText* _tmp5_;
- GtkComboBox* _tmp6_;
- GtkComboBox* _tmp7_;
- GtkComboBox* _tmp8_;
- GtkComboBox* _tmp9_;
- GtkImage* image = NULL;
- GtkImage* _tmp10_;
- GtkButton* _tmp11_;
- GtkButton* _tmp12_;
- GtkEntry* _tmp13_;
- GtkEntry* _tmp14_;
- GtkEntry* _tmp15_;
- GtkEntry* _tmp16_;
- GtkBox* _tmp17_;
- GtkBox* _tmp18_;
- GtkBox* _tmp19_;
- GtkButton* _tmp20_;
- GtkBox* _tmp21_;
- GtkButton* _tmp22_;
- GtkBox* _tmp23_;
- GtkBox* _tmp24_;
- GtkComboBox* _tmp25_;
- GtkBox* _tmp26_;
- GtkButton* _tmp27_;
- GtkBox* _tmp28_;
- GtkBox* _tmp29_;
- GtkBox* _tmp30_;
-#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (container), NULL);
-#line 642 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsCropToolCropToolWindow*) editing_tools_editing_tool_window_construct (object_type, container);
-#line 644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->cancel_button;
-#line 644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), _ ("Return to current photo dimensions"));
-#line 645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->cancel_button;
-#line 645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_button_set_image_position (_tmp1_, GTK_POS_LEFT);
-#line 647 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->ok_button;
-#line 647 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), _ ("Set the crop for this photo"));
-#line 648 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->ok_button;
-#line 648 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_button_set_image_position (_tmp3_, GTK_POS_LEFT);
-#line 650 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = (GtkComboBox*) gtk_combo_box_new ();
-#line 650 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp4_);
-#line 650 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->constraint_combo);
-#line 650 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->constraint_combo = _tmp4_;
-#line 651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
-#line 651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp5_);
-#line 651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- combo_text_renderer = _tmp5_;
-#line 652 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->constraint_combo;
-#line 652 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (combo_text_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE);
-#line 653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->constraint_combo;
-#line 653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (combo_text_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", 0);
-#line 654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->constraint_combo;
-#line 654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_combo_box_set_row_separator_func (_tmp8_, _editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func_gtk_tree_view_row_separator_func, NULL, NULL);
-#line 655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->constraint_combo;
-#line 655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_combo_box_set_active (_tmp9_, 0);
-#line 657 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = (GtkImage*) gtk_image_new_from_icon_name ("crop-pivot-reticle", (GtkIconSize) GTK_ICON_SIZE_LARGE_TOOLBAR);
-#line 657 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp10_);
-#line 657 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- image = _tmp10_;
-#line 658 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->pivot_reticle_button;
-#line 658 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_button_set_image (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget));
-#line 659 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->pivot_reticle_button;
-#line 659 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), _ ("Pivot the crop rectangle between portrait and landscape orientations"));
-#line 661 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->custom_width_entry;
-#line 661 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_width_chars (_tmp13_, 4);
-#line 662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->custom_width_entry;
-#line 662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_set (_tmp14_, "editable", TRUE, NULL);
-#line 663 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->custom_height_entry;
-#line 663 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_entry_set_width_chars (_tmp15_, 4);
-#line 664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->custom_height_entry;
-#line 664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_set (_tmp16_, "editable", TRUE, NULL);
-#line 666 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_CONTROL_SPACING);
-#line 666 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp17_);
-#line 666 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->response_layout);
-#line 666 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->response_layout = _tmp17_;
-#line 667 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->response_layout;
-#line 667 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_box_set_homogeneous (_tmp18_, TRUE);
-#line 668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = self->response_layout;
-#line 668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = self->cancel_button;
-#line 668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget));
-#line 669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = self->response_layout;
-#line 669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = self->ok_button;
-#line 669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget));
-#line 671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_CONTROL_SPACING);
-#line 671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp23_);
-#line 671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->layout);
-#line 671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->layout = _tmp23_;
-#line 672 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = self->layout;
-#line 672 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = self->constraint_combo;
-#line 672 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget));
-#line 673 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = self->layout;
-#line 673 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = self->pivot_reticle_button;
-#line 673 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget));
-#line 674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = self->layout;
-#line 674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = self->response_layout;
-#line 674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget));
-#line 676 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = self->layout;
-#line 676 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget));
-#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (image);
-#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (combo_text_renderer);
-#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 12682 "EditingTools.c"
-}
-
-
-static EditingToolsCropToolCropToolWindow*
-editing_tools_crop_tool_crop_tool_window_new (GtkWindow* container)
-{
-#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_crop_tool_crop_tool_window_construct (EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, container);
-#line 12691 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func (GtkTreeModel* model,
- GtkTreeIter* iter)
-{
- gboolean result = FALSE;
- GValue val = {0};
- GtkTreeIter _tmp0_;
- GValue _tmp1_ = {0};
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
-#line 679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GTK_IS_TREE_MODEL (model), FALSE);
-#line 679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (iter != NULL, FALSE);
-#line 681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = *iter;
-#line 681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_tree_model_get_value (model, &_tmp0_, 0, &_tmp1_);
-#line 681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
-#line 681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- val = _tmp1_;
-#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = g_value_dup_string (&val);
-#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = g_strcmp0 (_tmp3_, "-") == 0;
-#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_free0 (_tmp3_);
-#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp4_;
-#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
-#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 12732 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_crop_tool_window_class_init (EditingToolsCropToolCropToolWindowClass * klass)
-{
-#line 625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_crop_tool_window_parent_class = g_type_class_peek_parent (klass);
-#line 625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_crop_tool_crop_tool_window_finalize;
-#line 12743 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_crop_tool_window_instance_init (EditingToolsCropToolCropToolWindow * self)
-{
- GtkButton* _tmp0_;
- GtkButton* _tmp1_;
- GtkButton* _tmp2_;
- GtkEntry* _tmp3_;
- GtkEntry* _tmp4_;
- GtkLabel* _tmp5_;
-#line 628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = (GtkButton*) gtk_button_new_with_label (RESOURCES_CROP_LABEL);
-#line 628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp0_);
-#line 628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->ok_button = _tmp0_;
-#line 629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL);
-#line 629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp1_);
-#line 629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->cancel_button = _tmp1_;
-#line 631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = (GtkButton*) gtk_button_new ();
-#line 631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp2_);
-#line 631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->pivot_reticle_button = _tmp2_;
-#line 632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = (GtkEntry*) gtk_entry_new ();
-#line 632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp3_);
-#line 632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->custom_width_entry = _tmp3_;
-#line 633 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = (GtkEntry*) gtk_entry_new ();
-#line 633 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp4_);
-#line 633 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->custom_height_entry = _tmp4_;
-#line 634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = (GtkLabel*) gtk_label_new_with_mnemonic ("x");
-#line 634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp5_);
-#line 634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->custom_mulsign_label = _tmp5_;
-#line 635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->most_recently_edited = NULL;
-#line 636 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->response_layout = NULL;
-#line 637 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->layout = NULL;
-#line 638 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->normal_width = -1;
-#line 639 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->normal_height = -1;
-#line 12802 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_crop_tool_window_finalize (GObject * obj)
-{
- EditingToolsCropToolCropToolWindow * self;
-#line 625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, EditingToolsCropToolCropToolWindow);
-#line 628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->ok_button);
-#line 629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->cancel_button);
-#line 630 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->constraint_combo);
-#line 631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->pivot_reticle_button);
-#line 632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->custom_width_entry);
-#line 633 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->custom_height_entry);
-#line 634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->custom_mulsign_label);
-#line 635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->most_recently_edited);
-#line 636 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->response_layout);
-#line 637 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->layout);
-#line 625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (editing_tools_crop_tool_crop_tool_window_parent_class)->finalize (obj);
-#line 12834 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_crop_tool_crop_tool_window_get_type (void)
-{
- static volatile gsize editing_tools_crop_tool_crop_tool_window_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_crop_tool_crop_tool_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsCropToolCropToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_crop_tool_crop_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsCropToolCropToolWindow), 0, (GInstanceInitFunc) editing_tools_crop_tool_crop_tool_window_instance_init, NULL };
- GType editing_tools_crop_tool_crop_tool_window_type_id;
- editing_tools_crop_tool_crop_tool_window_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, "EditingToolsCropToolCropToolWindow", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_crop_tool_crop_tool_window_type_id__volatile, editing_tools_crop_tool_crop_tool_window_type_id);
- }
- return editing_tools_crop_tool_crop_tool_window_type_id__volatile;
-}
-
-
-static void
-editing_tools_crop_tool_class_init (EditingToolsCropToolClass * klass)
-{
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_crop_tool_parent_class = g_type_class_peek_parent (klass);
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_crop_tool_finalize;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsCropToolPrivate));
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_crop_tool_real_activate;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_crop_tool_real_on_keypress;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_crop_tool_real_deactivate;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_crop_tool_real_get_tool_window;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->get_display_pixbuf = (GdkPixbuf* (*) (EditingToolsEditingTool *, Scaling*, Photo*, Dimensions*, GError**)) editing_tools_crop_tool_real_get_display_pixbuf;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_left_click = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_crop_tool_real_on_left_click;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_left_released = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_crop_tool_real_on_left_released;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_motion = (void (*) (EditingToolsEditingTool *, gint, gint, GdkModifierType)) editing_tools_crop_tool_real_on_motion;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_crop_tool_real_paint;
-#line 12879 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_instance_init (EditingToolsCropTool * self)
-{
- gint _tmp0_;
- EditingToolsCropToolConstraintDescription** _tmp1_;
- gint _tmp2_;
- EditingToolsCropToolConstraintDescription** _tmp3_;
- EditingToolsCropToolConstraintDescription** _tmp4_;
- gint _tmp4__length1;
- GtkListStore* _tmp5_;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_CROP_TOOL_GET_PRIVATE (self);
-#line 687 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_tool_window = NULL;
-#line 688 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->current_cursor_type = GDK_LEFT_PTR;
-#line 689 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->in_manipulation = BOX_LOCATION_OUTSIDE;
-#line 690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->wide_black_ctx = NULL;
-#line 691 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->wide_white_ctx = NULL;
-#line 692 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->thin_white_ctx = NULL;
-#line 693 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->text_ctx = NULL;
-#line 696 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->crop_surface = NULL;
-#line 700 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->last_grab_x = -1;
-#line 701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->last_grab_y = -1;
-#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_crop_tool_create_constraints (&_tmp0_);
-#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->constraints = _tmp1_;
-#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->constraints_length1 = _tmp0_;
-#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->_constraints_size_ = self->priv->constraints_length1;
-#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = editing_tools_crop_tool_create_constraints (&_tmp2_);
-#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_;
-#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4__length1 = _tmp2_;
-#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = editing_tools_crop_tool_create_constraint_list (_tmp4_, _tmp2_);
-#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->constraint_list = _tmp5_;
-#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = (_vala_array_free (_tmp4_, _tmp4__length1, (GDestroyNotify) editing_tools_crop_tool_constraint_description_unref), NULL);
-#line 705 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->reticle_orientation = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE;
-#line 706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->constraint_mode = EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL;
-#line 707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->entry_insert_in_progress = FALSE;
-#line 708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_aspect_ratio = 1.0f;
-#line 709 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_width = -1;
-#line 710 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_height = -1;
-#line 711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_init_width = -1;
-#line 712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->custom_init_height = -1;
-#line 713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->pre_aspect_ratio = EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO;
-#line 12953 "EditingTools.c"
-}
-
-
-static void
-editing_tools_crop_tool_finalize (EditingToolsEditingTool * obj)
-{
- EditingToolsCropTool * self;
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool);
-#line 687 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->crop_tool_window);
-#line 690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->wide_black_ctx);
-#line 691 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->wide_white_ctx);
-#line 692 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->thin_white_ctx);
-#line 693 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->text_ctx);
-#line 696 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_surface_destroy0 (self->priv->crop_surface);
-#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->constraints = (_vala_array_free (self->priv->constraints, self->priv->constraints_length1, (GDestroyNotify) editing_tools_crop_tool_constraint_description_unref), NULL);
-#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->constraint_list);
-#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_crop_tool_parent_class)->finalize (obj);
-#line 12981 "EditingTools.c"
-}
-
-
-GType
-editing_tools_crop_tool_get_type (void)
-{
- static volatile gsize editing_tools_crop_tool_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_crop_tool_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsCropToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_crop_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsCropTool), 0, (GInstanceInitFunc) editing_tools_crop_tool_instance_init, NULL };
- GType editing_tools_crop_tool_type_id;
- editing_tools_crop_tool_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL, "EditingToolsCropTool", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_crop_tool_type_id__volatile, editing_tools_crop_tool_type_id);
- }
- return editing_tools_crop_tool_type_id__volatile;
-}
-
-
-static void
-editing_tools_redeye_instance_init (EditingToolsRedeyeInstance *self)
-{
- GdkPoint default_center = {0};
- GdkPoint _tmp0_;
-#line 1826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- memset (self, 0, sizeof (EditingToolsRedeyeInstance));
-#line 1827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- memset (&default_center, 0, sizeof (GdkPoint));
-#line 1828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = default_center;
-#line 1828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*self).center = _tmp0_;
-#line 1829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- (*self).radius = EDITING_TOOLS_REDEYE_INSTANCE_DEFAULT_RADIUS;
-#line 13014 "EditingTools.c"
-}
-
-
-void
-editing_tools_redeye_instance_to_bounds_rect (EditingToolsRedeyeInstance* inst,
- GdkRectangle* result)
-{
- GdkRectangle _result_ = {0};
- EditingToolsRedeyeInstance _tmp0_;
- GdkPoint _tmp1_;
- gint _tmp2_;
- EditingToolsRedeyeInstance _tmp3_;
- gint _tmp4_;
- EditingToolsRedeyeInstance _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- EditingToolsRedeyeInstance _tmp8_;
- gint _tmp9_;
- EditingToolsRedeyeInstance _tmp10_;
- gint _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
-#line 1832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (inst != NULL);
-#line 1833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- memset (&_result_, 0, sizeof (GdkRectangle));
-#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = *inst;
-#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_.center;
-#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_.x;
-#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = *inst;
-#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.radius;
-#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.x = _tmp2_ - _tmp4_;
-#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = *inst;
-#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.center;
-#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.y;
-#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = *inst;
-#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.radius;
-#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.y = _tmp7_ - _tmp9_;
-#line 1836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = *inst;
-#line 1836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.radius;
-#line 1836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.width = 2 * _tmp11_;
-#line 1837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _result_;
-#line 1837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.width;
-#line 1837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.height = _tmp13_;
-#line 1839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _result_;
-#line 1839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 13081 "EditingTools.c"
-}
-
-
-void
-editing_tools_redeye_instance_from_bounds_rect (GdkRectangle* rect,
- EditingToolsRedeyeInstance* result)
-{
- GdkRectangle in_rect = {0};
- GdkRectangle _tmp0_;
- EditingToolsRedeyeInstance _result_ = {0};
- GdkRectangle _tmp1_;
- gint _tmp2_;
- GdkRectangle _tmp3_;
- gint _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
- EditingToolsRedeyeInstance _tmp7_;
- gint _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
- EditingToolsRedeyeInstance _tmp11_;
- gint _tmp12_;
-#line 1842 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (rect != NULL);
-#line 1843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = *rect;
-#line 1843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- in_rect = _tmp0_;
-#line 1845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_instance_init (&_result_);
-#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = in_rect;
-#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_.width;
-#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = in_rect;
-#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.height;
-#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.radius = (_tmp2_ + _tmp4_) / 4;
-#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = in_rect;
-#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.x;
-#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _result_;
-#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.radius;
-#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.center.x = _tmp6_ + _tmp8_;
-#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = in_rect;
-#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.y;
-#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _result_;
-#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.radius;
-#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.center.y = _tmp10_ + _tmp12_;
-#line 1850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _result_;
-#line 1850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 13146 "EditingTools.c"
-}
-
-
-EditingToolsRedeyeInstance*
-editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self)
-{
- EditingToolsRedeyeInstance* dup;
-#line 1818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dup = g_new0 (EditingToolsRedeyeInstance, 1);
-#line 1818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- memcpy (dup, self, sizeof (EditingToolsRedeyeInstance));
-#line 1818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return dup;
-#line 13160 "EditingTools.c"
-}
-
-
-void
-editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self)
-{
-#line 1818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_free (self);
-#line 13169 "EditingTools.c"
-}
-
-
-GType
-editing_tools_redeye_instance_get_type (void)
-{
- static volatile gsize editing_tools_redeye_instance_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_redeye_instance_type_id__volatile)) {
- GType editing_tools_redeye_instance_type_id;
- editing_tools_redeye_instance_type_id = g_boxed_type_register_static ("EditingToolsRedeyeInstance", (GBoxedCopyFunc) editing_tools_redeye_instance_dup, (GBoxedFreeFunc) editing_tools_redeye_instance_free);
- g_once_init_leave (&editing_tools_redeye_instance_type_id__volatile, editing_tools_redeye_instance_type_id);
- }
- return editing_tools_redeye_instance_type_id__volatile;
-}
-
-
-static EditingToolsRedeyeTool*
-editing_tools_redeye_tool_construct (GType object_type)
-{
- EditingToolsRedeyeTool* self = NULL;
-#line 1902 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsRedeyeTool*) editing_tools_editing_tool_construct (object_type, "RedeyeTool");
-#line 1901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 13194 "EditingTools.c"
-}
-
-
-static EditingToolsRedeyeTool*
-editing_tools_redeye_tool_new (void)
-{
-#line 1901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_redeye_tool_construct (EDITING_TOOLS_TYPE_REDEYE_TOOL);
-#line 13203 "EditingTools.c"
-}
-
-
-EditingToolsRedeyeTool*
-editing_tools_redeye_tool_factory (void)
-{
- EditingToolsRedeyeTool* result = NULL;
- EditingToolsRedeyeTool* _tmp0_;
-#line 1906 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_redeye_tool_new ();
-#line 1906 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp0_;
-#line 1906 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 13218 "EditingTools.c"
-}
-
-
-gboolean
-editing_tools_redeye_tool_is_available (Photo* photo,
- Scaling* scaling)
-{
- gboolean result = FALSE;
- Dimensions dim = {0};
- Dimensions _tmp0_ = {0};
- Dimensions _tmp1_ = {0};
- gboolean _tmp2_ = FALSE;
- Dimensions _tmp3_;
- gint _tmp4_;
-#line 1909 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), FALSE);
-#line 1909 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (scaling != NULL, FALSE);
-#line 1910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp0_);
-#line 1910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scaling_get_scaled_dimensions (scaling, &_tmp0_, &_tmp1_);
-#line 1910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dim = _tmp1_;
-#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = dim;
-#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.width;
-#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp4_ >= (EDITING_TOOLS_REDEYE_INSTANCE_MAX_RADIUS * 2)) {
-#line 13249 "EditingTools.c"
- Dimensions _tmp5_;
- gint _tmp6_;
-#line 1913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = dim;
-#line 1913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.height;
-#line 1913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp6_ >= (EDITING_TOOLS_REDEYE_INSTANCE_MAX_RADIUS * 2);
-#line 13258 "EditingTools.c"
- } else {
-#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = FALSE;
-#line 13262 "EditingTools.c"
- }
-#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp2_;
-#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 13268 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_new_interaction_instance (EditingToolsRedeyeTool* self,
- EditingToolsPhotoCanvas* canvas,
- EditingToolsRedeyeInstance* result)
-{
- GdkRectangle photo_bounds = {0};
- GdkRectangle _tmp0_ = {0};
- GdkPoint photo_center = {0};
- GdkPoint _tmp1_ = {0};
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- EditingToolsRedeyeInstance _result_ = {0};
- GdkPoint _tmp10_;
- gint _tmp11_;
- GdkPoint _tmp12_;
- gint _tmp13_;
-#line 1916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 1916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 1917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp0_);
-#line 1917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_bounds = _tmp0_;
-#line 1918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_.x = 0;
-#line 1918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_center = _tmp1_;
-#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = photo_bounds;
-#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.x;
-#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = photo_bounds;
-#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_.width;
-#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_center.x = _tmp3_ + (_tmp5_ / 2);
-#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = photo_bounds;
-#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.y;
-#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = photo_bounds;
-#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.height;
-#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_center.y = _tmp7_ + (_tmp9_ / 2);
-#line 1922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_instance_init (&_result_);
-#line 1923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = photo_center;
-#line 1923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.x;
-#line 1923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.center.x = _tmp11_;
-#line 1924 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = photo_center;
-#line 1924 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.y;
-#line 1924 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.center.y = _tmp13_;
-#line 1925 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _result_.radius = EDITING_TOOLS_REDEYE_INSTANCE_DEFAULT_RADIUS;
-#line 1927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *result = _result_;
-#line 1927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 13346 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_prepare_ctx (EditingToolsRedeyeTool* self,
- cairo_t* ctx,
- Dimensions* dim)
-{
- cairo_surface_t* _tmp0_;
- cairo_t* _tmp1_;
- cairo_t* _tmp2_;
- cairo_t* _tmp3_;
- cairo_surface_t* _tmp4_;
- cairo_t* _tmp5_;
- cairo_t* _tmp6_;
- cairo_t* _tmp7_;
-#line 1930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 1930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 1930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (dim != NULL);
-#line 1931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = cairo_get_target (ctx);
-#line 1931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = cairo_create (_tmp0_);
-#line 1931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->wider_gray_ctx);
-#line 1931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->wider_gray_ctx = _tmp1_;
-#line 1932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->wider_gray_ctx;
-#line 1932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- set_source_color_from_string (_tmp2_, "#111");
-#line 1933 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->wider_gray_ctx;
-#line 1933 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_line_width (_tmp3_, (gdouble) 3);
-#line 1935 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = cairo_get_target (ctx);
-#line 1935 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = cairo_create (_tmp4_);
-#line 1935 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->thin_white_ctx);
-#line 1935 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->thin_white_ctx = _tmp5_;
-#line 1936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->thin_white_ctx;
-#line 1936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- set_source_color_from_string (_tmp6_, "#FFF");
-#line 1937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->thin_white_ctx;
-#line 1937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cairo_set_line_width (_tmp7_, (gdouble) 1);
-#line 13401 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_draw_redeye_instance (EditingToolsRedeyeTool* self,
- EditingToolsRedeyeInstance* inst)
-{
- EditingToolsPhotoCanvas* _tmp0_;
- cairo_t* _tmp1_;
- EditingToolsRedeyeInstance _tmp2_;
- GdkPoint _tmp3_;
- gint _tmp4_;
- EditingToolsRedeyeInstance _tmp5_;
- GdkPoint _tmp6_;
- gint _tmp7_;
- EditingToolsRedeyeInstance _tmp8_;
- gint _tmp9_;
- EditingToolsPhotoCanvas* _tmp10_;
- cairo_t* _tmp11_;
- EditingToolsRedeyeInstance _tmp12_;
- GdkPoint _tmp13_;
- gint _tmp14_;
- EditingToolsRedeyeInstance _tmp15_;
- GdkPoint _tmp16_;
- gint _tmp17_;
- EditingToolsRedeyeInstance _tmp18_;
- gint _tmp19_;
-#line 1940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 1940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (inst != NULL);
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->wider_gray_ctx;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *inst;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_.center;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.x;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = *inst;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.center;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.y;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = *inst;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.radius;
-#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_circle (_tmp0_, _tmp1_, _tmp4_, _tmp7_, _tmp9_);
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->thin_white_ctx;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = *inst;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.center;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_.x;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = *inst;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_.center;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_.y;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = *inst;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_.radius;
-#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_draw_circle (_tmp10_, _tmp11_, _tmp14_, _tmp17_, _tmp19_);
-#line 13477 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_redeye_tool_on_size_slider_adjust (EditingToolsRedeyeTool* self,
- GtkScrollType type)
-{
- gboolean result = FALSE;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- EditingToolsPhotoCanvas* _tmp2_;
-#line 1947 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self), FALSE);
-#line 1948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->redeye_tool_window;
-#line 1948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->slider;
-#line 1948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.radius = (gint) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange));
-#line 1951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp2_);
-#line 1953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 1953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 13505 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_on_apply (EditingToolsRedeyeTool* self)
-{
- GdkRectangle bounds_rect_user = {0};
- EditingToolsRedeyeInstance _tmp0_;
- GdkRectangle _tmp1_ = {0};
- GdkRectangle bounds_rect_active = {0};
- EditingToolsPhotoCanvas* _tmp2_;
- GdkRectangle _tmp3_;
- GdkRectangle _tmp4_ = {0};
- GdkRectangle bounds_rect_unscaled = {0};
- EditingToolsPhotoCanvas* _tmp5_;
- GdkRectangle _tmp6_;
- GdkRectangle _tmp7_ = {0};
- GdkRectangle bounds_rect_raw = {0};
- EditingToolsPhotoCanvas* _tmp8_;
- GdkRectangle _tmp9_;
- GdkRectangle _tmp10_ = {0};
- EditingToolsRedeyeInstance instance_raw = {0};
- GdkRectangle _tmp11_;
- EditingToolsRedeyeInstance _tmp12_ = {0};
- Dimensions dimensions = {0};
- EditingToolsPhotoCanvas* _tmp13_;
- Photo* _tmp14_;
- Photo* _tmp15_;
- Dimensions _tmp16_ = {0};
- Dimensions _tmp17_;
- gdouble theta = 0.0;
- EditingToolsPhotoCanvas* _tmp18_;
- Photo* _tmp19_;
- Photo* _tmp20_;
- gdouble _tmp21_ = 0.0;
- EditingToolsRedeyeInstance _tmp22_;
- GdkPoint _tmp23_;
- Dimensions _tmp24_;
- gint _tmp25_;
- Dimensions _tmp26_;
- gint _tmp27_;
- gdouble _tmp28_;
- GdkPoint _tmp29_ = {0};
- RedeyeCommand* command = NULL;
- EditingToolsPhotoCanvas* _tmp30_;
- Photo* _tmp31_;
- Photo* _tmp32_;
- EditingToolsRedeyeInstance _tmp33_;
- RedeyeCommand* _tmp34_;
- RedeyeCommand* _tmp35_;
- CommandManager* _tmp36_;
- CommandManager* _tmp37_;
-#line 1956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 1957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->user_interaction_instance;
-#line 1957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_instance_to_bounds_rect (&_tmp0_, &_tmp1_);
-#line 1957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bounds_rect_user = _tmp1_;
-#line 1960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = bounds_rect_user;
-#line 1960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_user_to_active_rect (_tmp2_, &_tmp3_, &_tmp4_);
-#line 1960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bounds_rect_active = _tmp4_;
-#line 1962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = bounds_rect_active;
-#line 1962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_active_to_unscaled_rect (_tmp5_, &_tmp6_, &_tmp7_);
-#line 1962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bounds_rect_unscaled = _tmp7_;
-#line 1964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = bounds_rect_unscaled;
-#line 1964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_unscaled_to_raw_rect (_tmp8_, &_tmp9_, &_tmp10_);
-#line 1964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bounds_rect_raw = _tmp10_;
-#line 1967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = bounds_rect_raw;
-#line 1967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_instance_from_bounds_rect (&_tmp11_, &_tmp12_);
-#line 1967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- instance_raw = _tmp12_;
-#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = editing_tools_photo_canvas_get_photo (_tmp13_);
-#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_;
-#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_STRAIGHTEN | PHOTO_EXCEPTION_CROP, &_tmp16_);
-#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_;
-#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp15_);
-#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dimensions = _tmp17_;
-#line 1975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- theta = 0.0;
-#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = editing_tools_photo_canvas_get_photo (_tmp18_);
-#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = _tmp19_;
-#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo_get_straighten (_tmp20_, &_tmp21_);
-#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- theta = _tmp21_;
-#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp20_);
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = instance_raw;
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp22_.center;
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = dimensions;
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp24_.width;
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = dimensions;
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = _tmp26_.height;
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = theta;
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- derotate_point_arb (&_tmp23_, _tmp25_, _tmp27_, _tmp28_, &_tmp29_);
-#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- instance_raw.center = _tmp29_;
-#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = editing_tools_photo_canvas_get_photo (_tmp30_);
-#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = _tmp31_;
-#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = instance_raw;
-#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = redeye_command_new (_tmp32_, &_tmp33_, RESOURCES_RED_EYE_LABEL, RESOURCES_RED_EYE_TOOLTIP);
-#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = _tmp34_;
-#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp32_);
-#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command = _tmp35_;
-#line 1984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = app_window_get_command_manager ();
-#line 1984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = _tmp36_;
-#line 1984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command_manager_execute (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command));
-#line 1984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _command_manager_unref0 (_tmp37_);
-#line 1956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (command);
-#line 13668 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_on_photos_altered (EditingToolsRedeyeTool* self,
- GeeMap* map)
-{
- EditingToolsPhotoCanvas* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- gboolean _tmp3_;
- EditingToolsPhotoCanvas* _tmp15_;
- GError * _inner_error_ = NULL;
-#line 1987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 1987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_);
-#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_;
-#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = !gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject));
-#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp2_);
-#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_) {
-#line 1989 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 13700 "EditingTools.c"
- }
- {
- GdkPixbuf* _tmp4_ = NULL;
- EditingToolsPhotoCanvas* _tmp5_;
- Photo* _tmp6_;
- Photo* _tmp7_;
- EditingToolsPhotoCanvas* _tmp8_;
- Scaling _tmp9_ = {0};
- GdkPixbuf* _tmp10_;
- GdkPixbuf* _tmp11_;
- GdkPixbuf* _tmp12_;
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = editing_tools_photo_canvas_get_photo (_tmp5_);
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_;
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaling (_tmp8_, &_tmp9_);
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp9_, &_inner_error_);
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_;
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp7_);
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp11_;
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 13732 "EditingTools.c"
- goto __catch26_g_error;
- }
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp4_;
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = NULL;
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->current_pixbuf);
-#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->current_pixbuf = _tmp12_;
-#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp4_);
-#line 13745 "EditingTools.c"
- }
- goto __finally26;
- __catch26_g_error:
- {
- GError* err = NULL;
- GError* _tmp13_;
- const gchar* _tmp14_;
-#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- err = _inner_error_;
-#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _inner_error_ = NULL;
-#line 1994 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = err;
-#line 1994 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_->message;
-#line 1994 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_warning ("EditingTools.vala:1994: %s", _tmp14_);
-#line 1995 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_ABORTED_SIGNAL], 0);
-#line 1997 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_error_free0 (err);
-#line 1997 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 13769 "EditingTools.c"
- }
- __finally26:
-#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.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 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_clear_error (&_inner_error_);
-#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 13780 "EditingTools.c"
- }
-#line 2000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp15_);
-#line 13786 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_on_close (EditingToolsRedeyeTool* self)
-{
- GdkPixbuf* _tmp0_;
- EditingToolsPhotoCanvas* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- Dimensions _tmp4_ = {0};
-#line 2003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->current_pixbuf;
-#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_photo_canvas_get_photo (_tmp1_);
-#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp4_);
-#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL], 0, NULL, _tmp0_, &_tmp4_, FALSE);
-#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp3_);
-#line 13814 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_on_canvas_resize (EditingToolsRedeyeTool* self)
-{
- GdkRectangle scaled_pixbuf_position = {0};
- EditingToolsPhotoCanvas* _tmp0_;
- GdkRectangle _tmp1_ = {0};
- gint _tmp2_;
- GdkRectangle _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- gdouble scale_factor = 0.0;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkRectangle _tmp10_;
- gint _tmp11_;
- EditingToolsRedeyeInstance _tmp12_;
- GdkPoint _tmp13_;
- gint _tmp14_;
- EditingToolsRedeyeInstance _tmp15_;
- GdkPoint _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- GdkRectangle _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
- GdkRectangle _tmp24_;
-#line 2007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 2008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp0_, &_tmp1_);
-#line 2008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scaled_pixbuf_position = _tmp1_;
-#line 2011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->user_interaction_instance.center.x;
-#line 2011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->old_scaled_pixbuf_position;
-#line 2011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.x;
-#line 2011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.x = _tmp2_ - _tmp4_;
-#line 2012 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->user_interaction_instance.center.y;
-#line 2012 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->old_scaled_pixbuf_position;
-#line 2012 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_.y;
-#line 2012 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.y = _tmp5_ - _tmp7_;
-#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = scaled_pixbuf_position;
-#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_.width;
-#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->old_scaled_pixbuf_position;
-#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_.width;
-#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- scale_factor = ((gdouble) _tmp9_) / ((gdouble) _tmp11_);
-#line 2017 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->user_interaction_instance;
-#line 2017 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_.center;
-#line 2017 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_.x;
-#line 2017 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.x = (gint) ((((gdouble) _tmp14_) * scale_factor) + 0.5);
-#line 2020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->user_interaction_instance;
-#line 2020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_.center;
-#line 2020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_.y;
-#line 2020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.y = (gint) ((((gdouble) _tmp17_) * scale_factor) + 0.5);
-#line 2024 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->user_interaction_instance.center.x;
-#line 2024 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = scaled_pixbuf_position;
-#line 2024 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = _tmp19_.x;
-#line 2024 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.x = _tmp18_ + _tmp20_;
-#line 2025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = self->priv->user_interaction_instance.center.y;
-#line 2025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = scaled_pixbuf_position;
-#line 2025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp22_.y;
-#line 2025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.y = _tmp21_ + _tmp23_;
-#line 2027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = scaled_pixbuf_position;
-#line 2027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->old_scaled_pixbuf_position = _tmp24_;
-#line 2029 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->current_pixbuf);
-#line 2029 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->current_pixbuf = NULL;
-#line 13922 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_redeye_tool_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 2053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_on_photos_altered ((EditingToolsRedeyeTool*) self, items);
-#line 13933 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_real_activate (EditingToolsEditingTool* base,
- EditingToolsPhotoCanvas* canvas)
-{
- EditingToolsRedeyeTool * self;
- EditingToolsRedeyeInstance _tmp0_ = {0};
- cairo_t* _tmp1_;
- cairo_t* _tmp2_;
- Dimensions _tmp3_ = {0};
- GdkRectangle _tmp4_ = {0};
- GdkPixbuf* _tmp5_;
- GtkWindow* _tmp6_;
- GtkWindow* _tmp7_;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp8_;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp9_;
- GtkScale* _tmp10_;
- EditingToolsRedeyeInstance _tmp11_;
- gint _tmp12_;
- GdkDisplay* display = NULL;
- GdkWindow* _tmp13_;
- GdkWindow* _tmp14_;
- GdkDisplay* _tmp15_;
- GdkDisplay* _tmp16_;
- GdkDisplay* _tmp17_;
- GdkDisplay* _tmp18_;
- GdkCursor* _tmp19_;
- GdkDisplay* _tmp20_;
- GdkCursor* _tmp21_;
- DataCollection* owner = NULL;
- Photo* _tmp22_;
- Photo* _tmp23_;
- DataCollection* _tmp24_;
- DataCollection* _tmp25_;
- DataCollection* _tmp26_;
-#line 2032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 2032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 2033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_new_interaction_instance (self, canvas, &_tmp0_);
-#line 2033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance = _tmp0_;
-#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_photo_canvas_get_default_ctx (canvas);
-#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_;
-#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_surface_dim (canvas, &_tmp3_);
-#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_prepare_ctx (self, _tmp2_, &_tmp3_);
-#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (_tmp2_);
-#line 2037 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_bind_canvas_handlers (self, canvas);
-#line 2039 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp4_);
-#line 2039 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->old_scaled_pixbuf_position = _tmp4_;
-#line 2040 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = editing_tools_photo_canvas_get_scaled_pixbuf (canvas);
-#line 2040 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->current_pixbuf);
-#line 2040 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->current_pixbuf = _tmp5_;
-#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = editing_tools_photo_canvas_get_container (canvas);
-#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_;
-#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = editing_tools_redeye_tool_redeye_tool_window_new (_tmp7_);
-#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp8_);
-#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->redeye_tool_window);
-#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->redeye_tool_window = _tmp8_;
-#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp7_);
-#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->redeye_tool_window;
-#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_->slider;
-#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->user_interaction_instance;
-#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.radius;
-#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_range_get_type (), GtkRange), (gdouble) _tmp12_);
-#line 2045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_bind_window_handlers (self);
-#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = editing_tools_photo_canvas_get_drawing_window (canvas);
-#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_;
-#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = gdk_window_get_display (_tmp14_);
-#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_;
-#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp14_);
-#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- display = _tmp17_;
-#line 2048 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = display;
-#line 2048 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = gdk_cursor_new_for_display (_tmp18_, GDK_LEFT_PTR);
-#line 2048 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->cached_arrow_cursor);
-#line 2048 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->cached_arrow_cursor = _tmp19_;
-#line 2049 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = display;
-#line 2049 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = gdk_cursor_new_for_display (_tmp20_, GDK_FLEUR);
-#line 2049 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->cached_grab_cursor);
-#line 2049 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->cached_grab_cursor = _tmp21_;
-#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp22_;
-#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_OBJECT, DataObject));
-#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp24_;
-#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp23_);
-#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- owner = _tmp25_;
-#line 2052 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = owner;
-#line 2052 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp26_ != NULL) {
-#line 14073 "EditingTools.c"
- DataCollection* _tmp27_;
-#line 2053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = owner;
-#line 2053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp27_, "items-altered", (GCallback) _editing_tools_redeye_tool_on_photos_altered_data_collection_items_altered, self);
-#line 14079 "EditingTools.c"
- }
-#line 2055 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_redeye_tool_parent_class)->activate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), canvas);
-#line 2032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _data_collection_unref0 (owner);
-#line 2032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (display);
-#line 14087 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_real_deactivate (EditingToolsEditingTool* base)
-{
- EditingToolsRedeyeTool * self;
- EditingToolsPhotoCanvas* _tmp0_;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp10_;
-#line 2058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 2059 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2059 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ != NULL) {
-#line 14103 "EditingTools.c"
- DataCollection* owner = NULL;
- EditingToolsPhotoCanvas* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- DataCollection* _tmp4_;
- DataCollection* _tmp5_;
- DataCollection* _tmp6_;
- EditingToolsPhotoCanvas* _tmp9_;
-#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_photo_canvas_get_photo (_tmp1_);
-#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject));
-#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_;
-#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp3_);
-#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- owner = _tmp5_;
-#line 2061 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = owner;
-#line 2061 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp6_ != NULL) {
-#line 14130 "EditingTools.c"
- DataCollection* _tmp7_;
- guint _tmp8_;
-#line 2062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = owner;
-#line 2062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE);
-#line 2062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_photos_altered_data_collection_items_altered, self);
-#line 14139 "EditingTools.c"
- }
-#line 2064 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2064 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_unbind_canvas_handlers (self, _tmp9_);
-#line 2059 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _data_collection_unref0 (owner);
-#line 14147 "EditingTools.c"
- }
-#line 2067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->redeye_tool_window;
-#line 2067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp10_ != NULL) {
-#line 14153 "EditingTools.c"
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp11_;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp12_;
-#line 2068 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_unbind_window_handlers (self);
-#line 2069 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->redeye_tool_window;
-#line 2069 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget));
-#line 2070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->redeye_tool_window;
-#line 2070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
-#line 2071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->redeye_tool_window);
-#line 2071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->redeye_tool_window = NULL;
-#line 14170 "EditingTools.c"
- }
-#line 2074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_redeye_tool_parent_class)->deactivate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 14174 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_redeye_tool_prepare_ctx_editing_tools_photo_canvas_new_surface (EditingToolsPhotoCanvas* _sender,
- cairo_t* ctx,
- Dimensions* dim,
- gpointer self)
-{
-#line 2078 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_prepare_ctx ((EditingToolsRedeyeTool*) self, ctx, dim);
-#line 14186 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_redeye_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position,
- gpointer self)
-{
-#line 2079 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_on_canvas_resize ((EditingToolsRedeyeTool*) self);
-#line 14199 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_bind_canvas_handlers (EditingToolsRedeyeTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
-#line 2077 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 2077 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 2078 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (canvas, "new-surface", (GCallback) _editing_tools_redeye_tool_prepare_ctx_editing_tools_photo_canvas_new_surface, self);
-#line 2079 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (canvas, "resized-scaled-pixbuf", (GCallback) _editing_tools_redeye_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf, self);
-#line 14215 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_unbind_canvas_handlers (EditingToolsRedeyeTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
- guint _tmp0_;
- guint _tmp1_;
-#line 2082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 2082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 2083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("new-surface", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp0_, NULL, FALSE);
-#line 2083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _editing_tools_redeye_tool_prepare_ctx_editing_tools_photo_canvas_new_surface, self);
-#line 2084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp1_, NULL, FALSE);
-#line 2084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf, self);
-#line 14237 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_redeye_tool_on_apply_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 2088 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_on_apply ((EditingToolsRedeyeTool*) self);
-#line 14247 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_redeye_tool_on_close_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 2089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_on_close ((EditingToolsRedeyeTool*) self);
-#line 14257 "EditingTools.c"
-}
-
-
-static gboolean
-_editing_tools_redeye_tool_on_size_slider_adjust_gtk_range_change_value (GtkRange* _sender,
- GtkScrollType scroll,
- gdouble new_value,
- gpointer self)
-{
- gboolean result;
- result = editing_tools_redeye_tool_on_size_slider_adjust ((EditingToolsRedeyeTool*) self, scroll);
-#line 2090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 14271 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_bind_window_handlers (EditingToolsRedeyeTool* self)
-{
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp0_;
- GtkButton* _tmp1_;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp2_;
- GtkButton* _tmp3_;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp4_;
- GtkScale* _tmp5_;
-#line 2087 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 2088 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->redeye_tool_window;
-#line 2088 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->apply_button;
-#line 2088 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp1_, "clicked", (GCallback) _editing_tools_redeye_tool_on_apply_gtk_button_clicked, self);
-#line 2089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->redeye_tool_window;
-#line 2089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_->close_button;
-#line 2089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp3_, "clicked", (GCallback) _editing_tools_redeye_tool_on_close_gtk_button_clicked, self);
-#line 2090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->redeye_tool_window;
-#line 2090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_->slider;
-#line 2090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_range_get_type (), GtkRange), "change-value", (GCallback) _editing_tools_redeye_tool_on_size_slider_adjust_gtk_range_change_value, self);
-#line 14304 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_unbind_window_handlers (EditingToolsRedeyeTool* self)
-{
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp0_;
- GtkButton* _tmp1_;
- guint _tmp2_;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp3_;
- GtkButton* _tmp4_;
- guint _tmp5_;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp6_;
- GtkScale* _tmp7_;
- guint _tmp8_;
-#line 2093 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self));
-#line 2094 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->redeye_tool_window;
-#line 2094 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->apply_button;
-#line 2094 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp2_, NULL, FALSE);
-#line 2094 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_apply_gtk_button_clicked, self);
-#line 2095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->redeye_tool_window;
-#line 2095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_->close_button;
-#line 2095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp5_, NULL, FALSE);
-#line 2095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_close_gtk_button_clicked, self);
-#line 2096 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->redeye_tool_window;
-#line 2096 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_->slider;
-#line 2096 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("change-value", gtk_range_get_type (), &_tmp8_, NULL, FALSE);
-#line 2096 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_size_slider_adjust_gtk_range_change_value, self);
-#line 14346 "EditingTools.c"
-}
-
-
-static EditingToolsEditingToolWindow*
-editing_tools_redeye_tool_real_get_tool_window (EditingToolsEditingTool* base)
-{
- EditingToolsRedeyeTool * self;
- EditingToolsEditingToolWindow* result = NULL;
- EditingToolsRedeyeToolRedeyeToolWindow* _tmp0_;
- EditingToolsEditingToolWindow* _tmp1_;
-#line 2099 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 2100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->redeye_tool_window;
-#line 2100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow));
-#line 2100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 2100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 14367 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_real_paint (EditingToolsEditingTool* base,
- cairo_t* ctx)
-{
- EditingToolsRedeyeTool * self;
- GdkPixbuf* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_;
- EditingToolsPhotoCanvas* _tmp6_;
- EditingToolsRedeyeInstance active_inst = {0};
- EditingToolsRedeyeInstance _tmp7_;
- EditingToolsPhotoCanvas* _tmp8_;
- EditingToolsRedeyeInstance _tmp9_;
- GdkPoint _tmp10_;
- GdkPoint _tmp11_ = {0};
- EditingToolsRedeyeInstance _tmp12_;
-#line 2103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 2103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->current_pixbuf;
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_ != NULL) {
-#line 14394 "EditingTools.c"
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->current_pixbuf;
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp0_);
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _tmp3_;
-#line 14405 "EditingTools.c"
- } else {
- EditingToolsPhotoCanvas* _tmp4_;
- GdkPixbuf* _tmp5_;
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = editing_tools_photo_canvas_get_scaled_pixbuf (_tmp4_);
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp0_);
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _tmp5_;
-#line 14417 "EditingTools.c"
- }
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_paint_pixbuf (_tmp6_, _tmp0_);
-#line 2108 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->user_interaction_instance;
-#line 2108 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- active_inst = _tmp7_;
-#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->user_interaction_instance;
-#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.center;
-#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_user_to_active_point (_tmp8_, &_tmp10_, &_tmp11_);
-#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- active_inst.center = _tmp11_;
-#line 2111 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = active_inst;
-#line 2111 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_draw_redeye_instance (self, &_tmp12_);
-#line 2103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp0_);
-#line 14443 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_real_on_left_click (EditingToolsEditingTool* base,
- gint x,
- gint y)
-{
- EditingToolsRedeyeTool * self;
- GdkRectangle bounds_rect = {0};
- EditingToolsRedeyeInstance _tmp0_;
- GdkRectangle _tmp1_ = {0};
- GdkRectangle _tmp2_;
-#line 2114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 2115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->user_interaction_instance;
-#line 2115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_instance_to_bounds_rect (&_tmp0_, &_tmp1_);
-#line 2115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bounds_rect = _tmp1_;
-#line 2118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = bounds_rect;
-#line 2118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (coord_in_rectangle (x, y, &_tmp2_)) {
-#line 14469 "EditingTools.c"
- EditingToolsRedeyeInstance _tmp3_;
- GdkPoint _tmp4_;
-#line 2119 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->is_reticle_move_in_progress = TRUE;
-#line 2120 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->reticle_move_mouse_start_point.x = x;
-#line 2121 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->reticle_move_mouse_start_point.y = y;
-#line 2122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->user_interaction_instance;
-#line 2122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.center;
-#line 2122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->reticle_move_anchor = _tmp4_;
-#line 14484 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_redeye_tool_real_on_left_released (EditingToolsEditingTool* base,
- gint x,
- gint y)
-{
- EditingToolsRedeyeTool * self;
-#line 2126 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 2127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->is_reticle_move_in_progress = FALSE;
-#line 14499 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_real_on_motion (EditingToolsEditingTool* base,
- gint x,
- gint y,
- GdkModifierType mask)
-{
- EditingToolsRedeyeTool * self;
- gboolean _tmp0_;
-#line 2130 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 2131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->is_reticle_move_in_progress;
-#line 2131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_) {
-#line 14517 "EditingTools.c"
- GdkRectangle active_region_rect = {0};
- EditingToolsPhotoCanvas* _tmp1_;
- GdkRectangle _tmp2_ = {0};
- gint x_clamp_low = 0;
- GdkRectangle _tmp3_;
- gint _tmp4_;
- EditingToolsRedeyeInstance _tmp5_;
- gint _tmp6_;
- gint y_clamp_low = 0;
- GdkRectangle _tmp7_;
- gint _tmp8_;
- EditingToolsRedeyeInstance _tmp9_;
- gint _tmp10_;
- gint x_clamp_high = 0;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
- EditingToolsRedeyeInstance _tmp15_;
- gint _tmp16_;
- gint y_clamp_high = 0;
- GdkRectangle _tmp17_;
- gint _tmp18_;
- GdkRectangle _tmp19_;
- gint _tmp20_;
- EditingToolsRedeyeInstance _tmp21_;
- gint _tmp22_;
- gint delta_x = 0;
- GdkPoint _tmp23_;
- gint _tmp24_;
- gint delta_y = 0;
- GdkPoint _tmp25_;
- gint _tmp26_;
- GdkPoint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- GdkPoint _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- GdkPoint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- GdkPoint _tmp38_;
- gint _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- EditingToolsPhotoCanvas* _tmp43_;
-#line 2133 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2133 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp1_, &_tmp2_);
-#line 2133 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- active_region_rect = _tmp2_;
-#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = active_region_rect;
-#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_.x;
-#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->user_interaction_instance;
-#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_.radius;
-#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x_clamp_low = (_tmp4_ + _tmp6_) + 1;
-#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = active_region_rect;
-#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_.y;
-#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->user_interaction_instance;
-#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_.radius;
-#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y_clamp_low = (_tmp8_ + _tmp10_) + 1;
-#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = active_region_rect;
-#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_.x;
-#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = active_region_rect;
-#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = _tmp13_.width;
-#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->user_interaction_instance;
-#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_.radius;
-#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- x_clamp_high = ((_tmp12_ + _tmp14_) - _tmp16_) - 1;
-#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = active_region_rect;
-#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = _tmp17_.y;
-#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = active_region_rect;
-#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = _tmp19_.height;
-#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = self->priv->user_interaction_instance;
-#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = _tmp21_.radius;
-#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- y_clamp_high = ((_tmp18_ + _tmp20_) - _tmp22_) - 1;
-#line 2147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = self->priv->reticle_move_mouse_start_point;
-#line 2147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = _tmp23_.x;
-#line 2147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- delta_x = x - _tmp24_;
-#line 2148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = self->priv->reticle_move_mouse_start_point;
-#line 2148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = _tmp25_.y;
-#line 2148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- delta_y = y - _tmp26_;
-#line 2150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = self->priv->reticle_move_anchor;
-#line 2150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = _tmp27_.x;
-#line 2150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = delta_x;
-#line 2150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.x = _tmp28_ + _tmp29_;
-#line 2152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = self->priv->reticle_move_anchor;
-#line 2152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = _tmp30_.y;
-#line 2152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = delta_y;
-#line 2152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.y = _tmp31_ + _tmp32_;
-#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->priv->reticle_move_anchor;
-#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = _tmp33_.x;
-#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = delta_x;
-#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = x_clamp_low;
-#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = x_clamp_high;
-#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.x = CLAMP (_tmp34_ + _tmp35_, _tmp36_, _tmp37_);
-#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = self->priv->reticle_move_anchor;
-#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = _tmp38_.y;
-#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = delta_y;
-#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = y_clamp_low;
-#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = y_clamp_high;
-#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->user_interaction_instance.center.y = CLAMP (_tmp39_ + _tmp40_, _tmp41_, _tmp42_);
-#line 2162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp43_);
-#line 14678 "EditingTools.c"
- } else {
- GdkRectangle bounds = {0};
- EditingToolsRedeyeInstance _tmp44_;
- GdkRectangle _tmp45_ = {0};
- GdkRectangle _tmp46_;
-#line 2164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = self->priv->user_interaction_instance;
-#line 2164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_instance_to_bounds_rect (&_tmp44_, &_tmp45_);
-#line 2164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- bounds = _tmp45_;
-#line 2167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = bounds;
-#line 2167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (coord_in_rectangle (x, y, &_tmp46_)) {
-#line 14694 "EditingTools.c"
- EditingToolsPhotoCanvas* _tmp47_;
- GdkWindow* _tmp48_;
- GdkWindow* _tmp49_;
- GdkCursor* _tmp50_;
-#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = editing_tools_photo_canvas_get_drawing_window (_tmp47_);
-#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = _tmp48_;
-#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp50_ = self->priv->cached_grab_cursor;
-#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gdk_window_set_cursor (_tmp49_, _tmp50_);
-#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp49_);
-#line 14711 "EditingTools.c"
- } else {
- EditingToolsPhotoCanvas* _tmp51_;
- GdkWindow* _tmp52_;
- GdkWindow* _tmp53_;
- GdkCursor* _tmp54_;
-#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = editing_tools_photo_canvas_get_drawing_window (_tmp51_);
-#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53_ = _tmp52_;
-#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp54_ = self->priv->cached_arrow_cursor;
-#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gdk_window_set_cursor (_tmp53_, _tmp54_);
-#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp53_);
-#line 14729 "EditingTools.c"
- }
- }
-}
-
-
-static gboolean
-editing_tools_redeye_tool_real_on_keypress (EditingToolsEditingTool* base,
- GdkEventKey* event)
-{
- EditingToolsRedeyeTool * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- guint _tmp2_;
- const gchar* _tmp3_;
-#line 2175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 2175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = event->keyval;
-#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = gdk_keyval_name (_tmp2_);
-#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (g_strcmp0 (_tmp3_, "KP_Enter") == 0) {
-#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = TRUE;
-#line 14757 "EditingTools.c"
- } else {
- guint _tmp4_;
- const gchar* _tmp5_;
-#line 2177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = event->keyval;
-#line 2177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = gdk_keyval_name (_tmp4_);
-#line 2177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = g_strcmp0 (_tmp5_, "Enter") == 0;
-#line 14767 "EditingTools.c"
- }
-#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_) {
-#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = TRUE;
-#line 14773 "EditingTools.c"
- } else {
- guint _tmp6_;
- const gchar* _tmp7_;
-#line 2178 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = event->keyval;
-#line 2178 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = gdk_keyval_name (_tmp6_);
-#line 2178 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = g_strcmp0 (_tmp7_, "Return") == 0;
-#line 14783 "EditingTools.c"
- }
-#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_) {
-#line 2179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_on_close (self);
-#line 2180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 2180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 14793 "EditingTools.c"
- }
-#line 2183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_redeye_tool_parent_class)->on_keypress (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), event);
-#line 2183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 14799 "EditingTools.c"
-}
-
-
-static EditingToolsRedeyeToolRedeyeToolWindow*
-editing_tools_redeye_tool_redeye_tool_window_construct (GType object_type,
- GtkWindow* container)
-{
- EditingToolsRedeyeToolRedeyeToolWindow * self = NULL;
- GtkScale* _tmp0_;
- GtkScale* _tmp1_;
- GtkButton* _tmp2_;
- GtkButton* _tmp3_;
- GtkButton* _tmp4_;
- GtkButton* _tmp5_;
- GtkBox* layout = NULL;
- GtkBox* _tmp6_;
- GtkLabel* _tmp7_;
- GtkScale* _tmp8_;
- GtkButton* _tmp9_;
- GtkButton* _tmp10_;
-#line 1867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (container), NULL);
-#line 1868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsRedeyeToolRedeyeToolWindow*) editing_tools_editing_tool_window_construct (object_type, container);
-#line 1870 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->slider;
-#line 1870 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), 80, -1);
-#line 1871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->slider;
-#line 1871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_scale_set_draw_value (_tmp1_, FALSE);
-#line 1873 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->close_button;
-#line 1873 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), _ ("Close the red-eye tool"));
-#line 1874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->close_button;
-#line 1874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_button_set_image_position (_tmp3_, GTK_POS_LEFT);
-#line 1876 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->apply_button;
-#line 1876 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), _ ("Remove any red-eye effects in the selected region"));
-#line 1877 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->apply_button;
-#line 1877 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_button_set_image_position (_tmp5_, GTK_POS_LEFT);
-#line 1879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_CONTROL_SPACING);
-#line 1879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp6_);
-#line 1879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- layout = _tmp6_;
-#line 1880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->slider_label;
-#line 1880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
-#line 1881 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->slider;
-#line 1881 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 1882 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->close_button;
-#line 1882 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 1883 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->apply_button;
-#line 1883 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 1885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.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 1867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (layout);
-#line 1867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 14876 "EditingTools.c"
-}
-
-
-static EditingToolsRedeyeToolRedeyeToolWindow*
-editing_tools_redeye_tool_redeye_tool_window_new (GtkWindow* container)
-{
-#line 1867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_redeye_tool_redeye_tool_window_construct (EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, container);
-#line 14885 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_redeye_tool_window_class_init (EditingToolsRedeyeToolRedeyeToolWindowClass * klass)
-{
-#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_redeye_tool_window_parent_class = g_type_class_peek_parent (klass);
-#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsRedeyeToolRedeyeToolWindowPrivate));
-#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_redeye_tool_redeye_tool_window_finalize;
-#line 14898 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_redeye_tool_window_instance_init (EditingToolsRedeyeToolRedeyeToolWindow * self)
-{
- GtkLabel* _tmp0_;
- GtkButton* _tmp1_;
- GtkButton* _tmp2_;
- GtkScale* _tmp3_;
-#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_GET_PRIVATE (self);
-#line 1858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Size:"));
-#line 1858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp0_);
-#line 1858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->slider_label = _tmp0_;
-#line 1860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_APPLY_LABEL);
-#line 1860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp1_);
-#line 1860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->apply_button = _tmp1_;
-#line 1862 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL);
-#line 1862 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp2_);
-#line 1862 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->close_button = _tmp2_;
-#line 1864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) EDITING_TOOLS_REDEYE_INSTANCE_MIN_RADIUS, (gdouble) EDITING_TOOLS_REDEYE_INSTANCE_MAX_RADIUS, 1.0);
-#line 1864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp3_);
-#line 1864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->slider = _tmp3_;
-#line 14935 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_redeye_tool_window_finalize (GObject * obj)
-{
- EditingToolsRedeyeToolRedeyeToolWindow * self;
-#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindow);
-#line 1858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->slider_label);
-#line 1860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->apply_button);
-#line 1862 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->close_button);
-#line 1864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->slider);
-#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (editing_tools_redeye_tool_redeye_tool_window_parent_class)->finalize (obj);
-#line 14955 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_redeye_tool_redeye_tool_window_get_type (void)
-{
- static volatile gsize editing_tools_redeye_tool_redeye_tool_window_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_redeye_tool_redeye_tool_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsRedeyeToolRedeyeToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_redeye_tool_redeye_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsRedeyeToolRedeyeToolWindow), 0, (GInstanceInitFunc) editing_tools_redeye_tool_redeye_tool_window_instance_init, NULL };
- GType editing_tools_redeye_tool_redeye_tool_window_type_id;
- editing_tools_redeye_tool_redeye_tool_window_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, "EditingToolsRedeyeToolRedeyeToolWindow", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_redeye_tool_redeye_tool_window_type_id__volatile, editing_tools_redeye_tool_redeye_tool_window_type_id);
- }
- return editing_tools_redeye_tool_redeye_tool_window_type_id__volatile;
-}
-
-
-static void
-editing_tools_redeye_tool_class_init (EditingToolsRedeyeToolClass * klass)
-{
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_redeye_tool_parent_class = g_type_class_peek_parent (klass);
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_redeye_tool_finalize;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsRedeyeToolPrivate));
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_redeye_tool_real_activate;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_redeye_tool_real_deactivate;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_redeye_tool_real_get_tool_window;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_redeye_tool_real_paint;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_left_click = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_redeye_tool_real_on_left_click;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_left_released = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_redeye_tool_real_on_left_released;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_motion = (void (*) (EditingToolsEditingTool *, gint, gint, GdkModifierType)) editing_tools_redeye_tool_real_on_motion;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_redeye_tool_real_on_keypress;
-#line 14998 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_instance_init (EditingToolsRedeyeTool * self)
-{
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_REDEYE_TOOL_GET_PRIVATE (self);
-#line 1889 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->thin_white_ctx = NULL;
-#line 1890 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->wider_gray_ctx = NULL;
-#line 1891 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->redeye_tool_window = NULL;
-#line 1893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->is_reticle_move_in_progress = FALSE;
-#line 1899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->current_pixbuf = NULL;
-#line 15017 "EditingTools.c"
-}
-
-
-static void
-editing_tools_redeye_tool_finalize (EditingToolsEditingTool * obj)
-{
- EditingToolsRedeyeTool * self;
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool);
-#line 1889 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->thin_white_ctx);
-#line 1890 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _cairo_destroy0 (self->priv->wider_gray_ctx);
-#line 1891 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->redeye_tool_window);
-#line 1896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->cached_arrow_cursor);
-#line 1897 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->cached_grab_cursor);
-#line 1899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->current_pixbuf);
-#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_redeye_tool_parent_class)->finalize (obj);
-#line 15041 "EditingTools.c"
-}
-
-
-GType
-editing_tools_redeye_tool_get_type (void)
-{
- static volatile gsize editing_tools_redeye_tool_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_redeye_tool_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsRedeyeToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_redeye_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsRedeyeTool), 0, (GInstanceInitFunc) editing_tools_redeye_tool_instance_init, NULL };
- GType editing_tools_redeye_tool_type_id;
- editing_tools_redeye_tool_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL, "EditingToolsRedeyeTool", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_redeye_tool_type_id__volatile, editing_tools_redeye_tool_type_id);
- }
- return editing_tools_redeye_tool_type_id__volatile;
-}
-
-
-static EditingToolsAdjustTool*
-editing_tools_adjust_tool_construct (GType object_type)
-{
- EditingToolsAdjustTool* self = NULL;
-#line 2501 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsAdjustTool*) editing_tools_editing_tool_construct (object_type, "AdjustTool");
-#line 2500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 15067 "EditingTools.c"
-}
-
-
-static EditingToolsAdjustTool*
-editing_tools_adjust_tool_new (void)
-{
-#line 2500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_adjust_tool_construct (EDITING_TOOLS_TYPE_ADJUST_TOOL);
-#line 15076 "EditingTools.c"
-}
-
-
-EditingToolsAdjustTool*
-editing_tools_adjust_tool_factory (void)
-{
- EditingToolsAdjustTool* result = NULL;
- EditingToolsAdjustTool* _tmp0_;
-#line 2505 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_adjust_tool_new ();
-#line 2505 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp0_;
-#line 2505 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 15091 "EditingTools.c"
-}
-
-
-gboolean
-editing_tools_adjust_tool_is_available (Photo* photo,
- Scaling* scaling)
-{
- gboolean result = FALSE;
-#line 2508 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), FALSE);
-#line 2508 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (scaling != NULL, FALSE);
-#line 2509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 2509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 15108 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 2598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_photos_altered ((EditingToolsAdjustTool*) self, items);
-#line 15119 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_real_activate (EditingToolsEditingTool* base,
- EditingToolsPhotoCanvas* canvas)
-{
- EditingToolsAdjustTool * self;
- GtkWindow* _tmp0_;
- GtkWindow* _tmp1_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp2_;
- Photo* photo = NULL;
- Photo* _tmp3_;
- Photo* _tmp4_;
- PixelTransformationBundle* _tmp5_;
- PixelTransformationBundle* _tmp6_;
- PixelTransformer* _tmp7_;
- PixelTransformer* _tmp8_;
- ExpansionTransformation* expansion_trans = NULL;
- PixelTransformationBundle* _tmp9_;
- PixelTransformation* _tmp10_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp11_;
- RGBHistogramManipulator* _tmp12_;
- ExpansionTransformation* _tmp13_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp14_;
- RGBHistogramManipulator* _tmp15_;
- ExpansionTransformation* _tmp16_;
- ShadowDetailTransformation* shadows_trans = NULL;
- PixelTransformationBundle* _tmp17_;
- PixelTransformation* _tmp18_;
- PixelTransformer* _tmp19_;
- ShadowDetailTransformation* _tmp20_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp21_;
- GtkScale* _tmp22_;
- ShadowDetailTransformation* _tmp23_;
- HighlightDetailTransformation* highlights_trans = NULL;
- PixelTransformationBundle* _tmp24_;
- PixelTransformation* _tmp25_;
- PixelTransformer* _tmp26_;
- HighlightDetailTransformation* _tmp27_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp28_;
- GtkScale* _tmp29_;
- HighlightDetailTransformation* _tmp30_;
- TemperatureTransformation* temp_trans = NULL;
- PixelTransformationBundle* _tmp31_;
- PixelTransformation* _tmp32_;
- PixelTransformer* _tmp33_;
- TemperatureTransformation* _tmp34_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp35_;
- GtkScale* _tmp36_;
- TemperatureTransformation* _tmp37_;
- TintTransformation* tint_trans = NULL;
- PixelTransformationBundle* _tmp38_;
- PixelTransformation* _tmp39_;
- PixelTransformer* _tmp40_;
- TintTransformation* _tmp41_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp42_;
- GtkScale* _tmp43_;
- TintTransformation* _tmp44_;
- SaturationTransformation* sat_trans = NULL;
- PixelTransformationBundle* _tmp45_;
- PixelTransformation* _tmp46_;
- PixelTransformer* _tmp47_;
- SaturationTransformation* _tmp48_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp49_;
- GtkScale* _tmp50_;
- SaturationTransformation* _tmp51_;
- ExposureTransformation* exposure_trans = NULL;
- PixelTransformationBundle* _tmp52_;
- PixelTransformation* _tmp53_;
- PixelTransformer* _tmp54_;
- ExposureTransformation* _tmp55_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp56_;
- GtkScale* _tmp57_;
- ExposureTransformation* _tmp58_;
- ContrastTransformation* contrast_trans = NULL;
- PixelTransformationBundle* _tmp59_;
- PixelTransformation* _tmp60_;
- PixelTransformer* _tmp61_;
- ContrastTransformation* _tmp62_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp63_;
- GtkScale* _tmp64_;
- ContrastTransformation* _tmp65_;
- GdkPixbuf* _tmp66_;
- GdkPixbuf* _tmp67_;
- GdkPixbuf* _tmp68_;
- GdkPixbuf* _tmp69_;
- GdkPixbuf* _tmp70_;
- gboolean _tmp71_ = FALSE;
- GdkPixbuf* _tmp72_;
- gint _tmp73_;
- gint _tmp74_;
- gboolean _tmp78_ = FALSE;
- gboolean _tmp79_ = FALSE;
- GdkPixbuf* _tmp80_;
- gint _tmp81_;
- gint _tmp82_;
- GdkPixbuf* _tmp83_;
- gint _tmp84_;
- gint _tmp85_;
- GdkPixbuf* _tmp102_;
- GdkPixbuf* _tmp103_;
- DataCollection* owner = NULL;
- Photo* _tmp104_;
- Photo* _tmp105_;
- DataCollection* _tmp106_;
- DataCollection* _tmp107_;
- DataCollection* _tmp108_;
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_photo_canvas_get_container (canvas);
-#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_adjust_tool_adjust_tool_window_new (_tmp1_);
-#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp2_);
-#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->adjust_tool_window);
-#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->adjust_tool_window = _tmp2_;
-#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 2515 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 2515 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo = _tmp3_;
-#line 2516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = photo;
-#line 2516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = photo_get_color_adjustments (_tmp4_);
-#line 2516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->transformations);
-#line 2516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->transformations = _tmp5_;
-#line 2517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->transformations;
-#line 2517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = pixel_transformation_bundle_generate_transformer (_tmp6_);
-#line 2517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 2517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->transformer = _tmp7_;
-#line 2520 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = pixel_transformer_new ();
-#line 2520 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformer_unref0 (self->priv->histogram_transformer);
-#line 2520 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->histogram_transformer = _tmp8_;
-#line 2523 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->transformations;
-#line 2523 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = pixel_transformation_bundle_get_transformation (_tmp9_, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION);
-#line 2523 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- expansion_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation);
-#line 2525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->adjust_tool_window;
-#line 2525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = _tmp11_->histogram_manipulator;
-#line 2525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = expansion_trans;
-#line 2525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rgb_histogram_manipulator_set_left_nub_position (_tmp12_, expansion_transformation_get_black_point (_tmp13_));
-#line 2527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->adjust_tool_window;
-#line 2527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_->histogram_manipulator;
-#line 2527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = expansion_trans;
-#line 2527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rgb_histogram_manipulator_set_right_nub_position (_tmp15_, expansion_transformation_get_white_point (_tmp16_));
-#line 2531 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = self->priv->transformations;
-#line 2531 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = pixel_transformation_bundle_get_transformation (_tmp17_, PIXEL_TRANSFORMATION_TYPE_SHADOWS);
-#line 2531 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- shadows_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation);
-#line 2533 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = self->priv->histogram_transformer;
-#line 2533 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = shadows_trans;
-#line 2533 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_attach_transformation (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 2534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = self->priv->adjust_tool_window;
-#line 2534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = _tmp21_->shadows_slider;
-#line 2534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = shadows_trans;
-#line 2534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_range_get_type (), GtkRange), (gdouble) shadow_detail_transformation_get_parameter (_tmp23_));
-#line 2537 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = self->priv->transformations;
-#line 2537 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = pixel_transformation_bundle_get_transformation (_tmp24_, PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS);
-#line 2537 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- highlights_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation);
-#line 2539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = self->priv->histogram_transformer;
-#line 2539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = highlights_trans;
-#line 2539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_attach_transformation (_tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 2540 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = self->priv->adjust_tool_window;
-#line 2540 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = _tmp28_->highlights_slider;
-#line 2540 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = highlights_trans;
-#line 2540 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_range_get_type (), GtkRange), (gdouble) highlight_detail_transformation_get_parameter (_tmp30_));
-#line 2543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = self->priv->transformations;
-#line 2543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = pixel_transformation_bundle_get_transformation (_tmp31_, PIXEL_TRANSFORMATION_TYPE_TEMPERATURE);
-#line 2543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- temp_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation);
-#line 2545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->priv->histogram_transformer;
-#line 2545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = temp_trans;
-#line 2545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_attach_transformation (_tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 2546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = self->priv->adjust_tool_window;
-#line 2546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = _tmp35_->temperature_slider;
-#line 2546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = temp_trans;
-#line 2546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_range_get_type (), GtkRange), (gdouble) temperature_transformation_get_parameter (_tmp37_));
-#line 2548 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = self->priv->transformations;
-#line 2548 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = pixel_transformation_bundle_get_transformation (_tmp38_, PIXEL_TRANSFORMATION_TYPE_TINT);
-#line 2548 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- tint_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_TINT_TRANSFORMATION, TintTransformation);
-#line 2550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = self->priv->histogram_transformer;
-#line 2550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = tint_trans;
-#line 2550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_attach_transformation (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 2551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = self->priv->adjust_tool_window;
-#line 2551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = _tmp42_->tint_slider;
-#line 2551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = tint_trans;
-#line 2551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_range_get_type (), GtkRange), (gdouble) tint_transformation_get_parameter (_tmp44_));
-#line 2554 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = self->priv->transformations;
-#line 2554 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = pixel_transformation_bundle_get_transformation (_tmp45_, PIXEL_TRANSFORMATION_TYPE_SATURATION);
-#line 2554 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- sat_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_SATURATION_TRANSFORMATION, SaturationTransformation);
-#line 2556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp47_ = self->priv->histogram_transformer;
-#line 2556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = sat_trans;
-#line 2556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_attach_transformation (_tmp47_, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 2557 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = self->priv->adjust_tool_window;
-#line 2557 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp50_ = _tmp49_->saturation_slider;
-#line 2557 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51_ = sat_trans;
-#line 2557 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_range_get_type (), GtkRange), (gdouble) saturation_transformation_get_parameter (_tmp51_));
-#line 2560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = self->priv->transformations;
-#line 2560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp53_ = pixel_transformation_bundle_get_transformation (_tmp52_, PIXEL_TRANSFORMATION_TYPE_EXPOSURE);
-#line 2560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- exposure_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation);
-#line 2562 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp54_ = self->priv->histogram_transformer;
-#line 2562 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp55_ = exposure_trans;
-#line 2562 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_attach_transformation (_tmp54_, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 2563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp56_ = self->priv->adjust_tool_window;
-#line 2563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp57_ = _tmp56_->exposure_slider;
-#line 2563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp58_ = exposure_trans;
-#line 2563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_range_get_type (), GtkRange), (gdouble) exposure_transformation_get_parameter (_tmp58_));
-#line 2566 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp59_ = self->priv->transformations;
-#line 2566 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp60_ = pixel_transformation_bundle_get_transformation (_tmp59_, PIXEL_TRANSFORMATION_TYPE_CONTRAST);
-#line 2566 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- contrast_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation);
-#line 2568 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp61_ = self->priv->histogram_transformer;
-#line 2568 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp62_ = contrast_trans;
-#line 2568 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_attach_transformation (_tmp61_, G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 2569 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp63_ = self->priv->adjust_tool_window;
-#line 2569 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp64_ = _tmp63_->contrast_slider;
-#line 2569 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp65_ = contrast_trans;
-#line 2569 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_range_get_type (), GtkRange), (gdouble) contrast_transformation_get_parameter (_tmp65_));
-#line 2571 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_bind_canvas_handlers (self, canvas);
-#line 2572 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_bind_window_handlers (self);
-#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp66_ = editing_tools_photo_canvas_get_scaled_pixbuf (canvas);
-#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp67_ = _tmp66_;
-#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp68_ = gdk_pixbuf_copy (_tmp67_);
-#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->draw_to_pixbuf);
-#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->draw_to_pixbuf = _tmp68_;
-#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp67_);
-#line 2575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp69_ = editing_tools_photo_canvas_get_scaled_pixbuf (canvas);
-#line 2575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp70_ = _tmp69_;
-#line 2575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_init_fp_pixel_cache (self, _tmp70_);
-#line 2575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp70_);
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp72_ = self->priv->draw_to_pixbuf;
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp73_ = gdk_pixbuf_get_width (_tmp72_);
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp74_ = _tmp73_;
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp74_ == 1) {
-#line 15466 "EditingTools.c"
- GdkPixbuf* _tmp75_;
- gint _tmp76_;
- gint _tmp77_;
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp75_ = self->priv->draw_to_pixbuf;
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp76_ = gdk_pixbuf_get_height (_tmp75_);
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp77_ = _tmp76_;
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp71_ = _tmp77_ == 1;
-#line 15478 "EditingTools.c"
- } else {
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp71_ = FALSE;
-#line 15482 "EditingTools.c"
- }
-#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp71_) {
-#line 2582 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->disable_histogram_refresh = TRUE;
-#line 15488 "EditingTools.c"
- }
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp80_ = self->priv->draw_to_pixbuf;
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp81_ = gdk_pixbuf_get_width (_tmp80_);
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp82_ = _tmp81_;
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp83_ = self->priv->draw_to_pixbuf;
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp84_ = gdk_pixbuf_get_height (_tmp83_);
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp85_ = _tmp84_;
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if ((_tmp82_ * _tmp85_) > 8192) {
-#line 15504 "EditingTools.c"
- GdkPixbuf* _tmp86_;
- gint _tmp87_;
- gint _tmp88_;
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp86_ = self->priv->draw_to_pixbuf;
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp87_ = gdk_pixbuf_get_width (_tmp86_);
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp88_ = _tmp87_;
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp79_ = _tmp88_ > 1;
-#line 15516 "EditingTools.c"
- } else {
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp79_ = FALSE;
-#line 15520 "EditingTools.c"
- }
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp79_) {
-#line 15524 "EditingTools.c"
- GdkPixbuf* _tmp89_;
- gint _tmp90_;
- gint _tmp91_;
-#line 2588 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp89_ = self->priv->draw_to_pixbuf;
-#line 2588 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp90_ = gdk_pixbuf_get_height (_tmp89_);
-#line 2588 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp91_ = _tmp90_;
-#line 2588 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp78_ = _tmp91_ > 1;
-#line 15536 "EditingTools.c"
- } else {
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp78_ = FALSE;
-#line 15540 "EditingTools.c"
- }
-#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp78_) {
-#line 15544 "EditingTools.c"
- GdkPixbuf* _tmp92_;
- GdkPixbuf* _tmp93_;
- gint _tmp94_;
- gint _tmp95_;
- GdkPixbuf* _tmp96_;
- gint _tmp97_;
- gint _tmp98_;
- GdkPixbuf* _tmp99_;
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp92_ = self->priv->draw_to_pixbuf;
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp93_ = self->priv->draw_to_pixbuf;
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp94_ = gdk_pixbuf_get_width (_tmp93_);
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp95_ = _tmp94_;
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp96_ = self->priv->draw_to_pixbuf;
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp97_ = gdk_pixbuf_get_height (_tmp96_);
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp98_ = _tmp97_;
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp99_ = gdk_pixbuf_scale_simple (_tmp92_, _tmp95_ / 2, _tmp98_ / 2, GDK_INTERP_HYPER);
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->histogram_pixbuf);
-#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->histogram_pixbuf = _tmp99_;
-#line 15573 "EditingTools.c"
- } else {
- GdkPixbuf* _tmp100_;
- GdkPixbuf* _tmp101_;
-#line 2592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp100_ = self->priv->draw_to_pixbuf;
-#line 2592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp101_ = gdk_pixbuf_copy (_tmp100_);
-#line 2592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->histogram_pixbuf);
-#line 2592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->histogram_pixbuf = _tmp101_;
-#line 15585 "EditingTools.c"
- }
-#line 2594 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp102_ = self->priv->histogram_pixbuf;
-#line 2594 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp103_ = gdk_pixbuf_copy (_tmp102_);
-#line 2594 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->virgin_histogram_pixbuf);
-#line 2594 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->virgin_histogram_pixbuf = _tmp103_;
-#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp104_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp105_ = _tmp104_;
-#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp106_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, TYPE_DATA_OBJECT, DataObject));
-#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp107_ = _tmp106_;
-#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp105_);
-#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- owner = _tmp107_;
-#line 2597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp108_ = owner;
-#line 2597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp108_ != NULL) {
-#line 15611 "EditingTools.c"
- DataCollection* _tmp109_;
-#line 2598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp109_ = owner;
-#line 2598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp109_, "items-altered", (GCallback) _editing_tools_adjust_tool_on_photos_altered_data_collection_items_altered, self);
-#line 15617 "EditingTools.c"
- }
-#line 2600 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_adjust_tool_parent_class)->activate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), canvas);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _data_collection_unref0 (owner);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (contrast_trans);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (exposure_trans);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (sat_trans);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (tint_trans);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (temp_trans);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (highlights_trans);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (shadows_trans);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (expansion_trans);
-#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (photo);
-#line 15641 "EditingTools.c"
-}
-
-
-static EditingToolsEditingToolWindow*
-editing_tools_adjust_tool_real_get_tool_window (EditingToolsEditingTool* base)
-{
- EditingToolsAdjustTool * self;
- EditingToolsEditingToolWindow* result = NULL;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- EditingToolsEditingToolWindow* _tmp1_;
-#line 2603 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool);
-#line 2604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow));
-#line 2604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp1_;
-#line 2604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 15662 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_real_deactivate (EditingToolsEditingTool* base)
-{
- EditingToolsAdjustTool * self;
- EditingToolsPhotoCanvas* _tmp0_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp10_;
-#line 2607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool);
-#line 2608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ != NULL) {
-#line 15678 "EditingTools.c"
- DataCollection* owner = NULL;
- EditingToolsPhotoCanvas* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- DataCollection* _tmp4_;
- DataCollection* _tmp5_;
- DataCollection* _tmp6_;
- EditingToolsPhotoCanvas* _tmp9_;
-#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_photo_canvas_get_photo (_tmp1_);
-#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject));
-#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_;
-#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp3_);
-#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- owner = _tmp5_;
-#line 2610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = owner;
-#line 2610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp6_ != NULL) {
-#line 15705 "EditingTools.c"
- DataCollection* _tmp7_;
- guint _tmp8_;
-#line 2611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = owner;
-#line 2611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE);
-#line 2611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_photos_altered_data_collection_items_altered, self);
-#line 15714 "EditingTools.c"
- }
-#line 2613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_unbind_canvas_handlers (self, _tmp9_);
-#line 2608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _data_collection_unref0 (owner);
-#line 15722 "EditingTools.c"
- }
-#line 2616 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->adjust_tool_window;
-#line 2616 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp10_ != NULL) {
-#line 15728 "EditingTools.c"
- EditingToolsAdjustToolAdjustToolWindow* _tmp11_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp12_;
-#line 2617 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_unbind_window_handlers (self);
-#line 2618 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->adjust_tool_window;
-#line 2618 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget));
-#line 2619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->adjust_tool_window;
-#line 2619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
-#line 2620 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->adjust_tool_window);
-#line 2620 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->adjust_tool_window = NULL;
-#line 15745 "EditingTools.c"
- }
-#line 2623 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->draw_to_pixbuf);
-#line 2623 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->draw_to_pixbuf = NULL;
-#line 2624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache = (g_free (self->priv->fp_pixel_cache), NULL);
-#line 2624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache = NULL;
-#line 2624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache_length1 = 0;
-#line 2624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->_fp_pixel_cache_size_ = self->priv->fp_pixel_cache_length1;
-#line 2626 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_adjust_tool_parent_class)->deactivate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 15761 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_real_paint (EditingToolsEditingTool* base,
- cairo_t* ctx)
-{
- EditingToolsAdjustTool * self;
- gboolean _tmp0_;
- EditingToolsPhotoCanvas* _tmp10_;
- GdkPixbuf* _tmp11_;
-#line 2629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool);
-#line 2629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (ctx != NULL);
-#line 2630 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->suppress_effect_redraw;
-#line 2630 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!_tmp0_) {
-#line 15781 "EditingTools.c"
- PixelTransformer* _tmp1_;
- GdkPixbuf* _tmp2_;
- PixelTransformer* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- gboolean _tmp6_;
-#line 2631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->transformer;
-#line 2631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->draw_to_pixbuf;
-#line 2631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_transform_from_fp (_tmp1_, &self->priv->fp_pixel_cache, &self->priv->fp_pixel_cache_length1, _tmp2_);
-#line 2632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->histogram_transformer;
-#line 2632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->virgin_histogram_pixbuf;
-#line 2632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->histogram_pixbuf;
-#line 2632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_transform_to_other_pixbuf (_tmp3_, _tmp4_, _tmp5_, NULL, -1);
-#line 2634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->disable_histogram_refresh;
-#line 2634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!_tmp6_) {
-#line 15806 "EditingTools.c"
- EditingToolsAdjustToolAdjustToolWindow* _tmp7_;
- RGBHistogramManipulator* _tmp8_;
- GdkPixbuf* _tmp9_;
-#line 2635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->adjust_tool_window;
-#line 2635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_->histogram_manipulator;
-#line 2635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->histogram_pixbuf;
-#line 2635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rgb_histogram_manipulator_update_histogram (_tmp8_, _tmp9_);
-#line 15818 "EditingTools.c"
- }
- }
-#line 2638 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2638 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = self->priv->draw_to_pixbuf;
-#line 2638 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_paint_pixbuf (_tmp10_, _tmp11_);
-#line 15827 "EditingTools.c"
-}
-
-
-static GdkPixbuf*
-editing_tools_adjust_tool_real_get_display_pixbuf (EditingToolsEditingTool* base,
- Scaling* scaling,
- Photo* photo,
- Dimensions* max_dim,
- GError** error)
-{
- EditingToolsAdjustTool * self;
- Dimensions _vala_max_dim = {0};
- GdkPixbuf* result = NULL;
- Dimensions _tmp0_ = {0};
- GdkPixbuf* _tmp1_ = NULL;
- Scaling _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 2641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool);
-#line 2641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (scaling != NULL, NULL);
-#line 2641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 2643 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!photo_has_color_adjustments (photo)) {
-#line 2644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- dimensions_init (&_vala_max_dim, 0, 0);
-#line 2646 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = NULL;
-#line 2646 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (max_dim) {
-#line 2646 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *max_dim = _vala_max_dim;
-#line 15863 "EditingTools.c"
- }
-#line 2646 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 15867 "EditingTools.c"
- }
-#line 2649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp0_);
-#line 2649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_max_dim = _tmp0_;
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = *scaling;
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = photo_get_pixbuf_with_options (photo, &_tmp2_, PHOTO_EXCEPTION_ADJUST, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp3_;
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_propagate_error (error, _inner_error_);
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return NULL;
-#line 15885 "EditingTools.c"
- }
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp1_;
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = NULL;
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp4_;
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (max_dim) {
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- *max_dim = _vala_max_dim;
-#line 15899 "EditingTools.c"
- }
-#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 15903 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_reset (EditingToolsAdjustTool* self)
-{
- EditingToolsAdjustToolAdjustResetCommand* command = NULL;
- PixelTransformationBundle* _tmp0_;
- EditingToolsAdjustToolAdjustResetCommand* _tmp1_;
- CommandManager* _tmp2_;
- CommandManager* _tmp3_;
-#line 2654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->transformations;
-#line 2655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_adjust_tool_adjust_reset_command_new (self, _tmp0_);
-#line 2655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command = _tmp1_;
-#line 2656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = app_window_get_command_manager ();
-#line 2656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 2656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command));
-#line 2656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _command_manager_unref0 (_tmp3_);
-#line 2654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (command);
-#line 15933 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_ok (EditingToolsAdjustTool* self)
-{
- EditingToolsEditingToolWindow* _tmp0_;
- EditingToolsEditingToolWindow* _tmp1_;
- EditingToolsPhotoCanvas* _tmp2_;
- Photo* _tmp3_;
- Photo* _tmp4_;
- PixelTransformationBundle* _tmp5_;
- AdjustColorsSingleCommand* _tmp6_;
- AdjustColorsSingleCommand* _tmp7_;
- GdkPixbuf* _tmp8_;
- EditingToolsPhotoCanvas* _tmp9_;
- Photo* _tmp10_;
- Photo* _tmp11_;
- Dimensions _tmp12_ = {0};
-#line 2659 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2660 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->suppress_effect_redraw = TRUE;
-#line 2662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = editing_tools_editing_tool_get_tool_window (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 2662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 2662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 2662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = editing_tools_photo_canvas_get_photo (_tmp2_);
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_;
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->transformations;
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = adjust_colors_single_command_new (_tmp4_, _tmp5_, RESOURCES_ADJUST_LABEL, RESOURCES_ADJUST_TOOLTIP);
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_;
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->draw_to_pixbuf;
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = editing_tools_photo_canvas_get_photo (_tmp9_);
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_;
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp12_);
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command), _tmp8_, &_tmp12_, FALSE);
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp11_);
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp7_);
-#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp4_);
-#line 15995 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_update_transformations (EditingToolsAdjustTool* self,
- PixelTransformationBundle* new_transformations)
-{
-#line 2669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (new_transformations));
-#line 16007 "EditingTools.c"
- {
- GeeIterator* _transformation_it = NULL;
- GeeIterable* _tmp0_;
- GeeIterable* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = pixel_transformation_bundle_get_transformations (new_transformations);
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = gee_iterable_iterator (_tmp1_);
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _transformation_it = _tmp3_;
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- while (TRUE) {
-#line 16028 "EditingTools.c"
- GeeIterator* _tmp4_;
- PixelTransformation* transformation = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- PixelTransformation* _tmp7_;
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _transformation_it;
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 16040 "EditingTools.c"
- }
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _transformation_it;
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- transformation = (PixelTransformation*) _tmp6_;
-#line 2671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = transformation;
-#line 2671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_update_transformation (self, _tmp7_);
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (transformation);
-#line 16054 "EditingTools.c"
- }
-#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_transformation_it);
-#line 16058 "EditingTools.c"
- }
-}
-
-
-static void
-editing_tools_adjust_tool_update_transformation (EditingToolsAdjustTool* self,
- PixelTransformation* new_transformation)
-{
- PixelTransformation* old_transformation = NULL;
- PixelTransformationBundle* _tmp0_;
- PixelTransformation* _tmp1_;
- PixelTransformer* _tmp2_;
- PixelTransformation* _tmp3_;
- PixelTransformationBundle* _tmp6_;
-#line 2674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (IS_PIXEL_TRANSFORMATION (new_transformation));
-#line 2675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->transformations;
-#line 2675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = pixel_transformation_bundle_get_transformation (_tmp0_, pixel_transformation_get_transformation_type (new_transformation));
-#line 2675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old_transformation = _tmp1_;
-#line 2678 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->transformer;
-#line 2678 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = old_transformation;
-#line 2678 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_replace_transformation (_tmp2_, _tmp3_, new_transformation);
-#line 2679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (pixel_transformation_get_transformation_type (new_transformation) != PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION) {
-#line 16091 "EditingTools.c"
- PixelTransformer* _tmp4_;
- PixelTransformation* _tmp5_;
-#line 2680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->histogram_transformer;
-#line 2680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = old_transformation;
-#line 2680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformer_replace_transformation (_tmp4_, _tmp5_, new_transformation);
-#line 16100 "EditingTools.c"
- }
-#line 2682 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->transformations;
-#line 2682 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformation_bundle_set (_tmp6_, new_transformation);
-#line 2674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (old_transformation);
-#line 16108 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_slider_updated (EditingToolsAdjustTool* self,
- PixelTransformation* new_transformation,
- const gchar* name)
-{
- PixelTransformation* old_transformation = NULL;
- PixelTransformationBundle* _tmp0_;
- PixelTransformation* _tmp1_;
- EditingToolsAdjustToolSliderAdjustmentCommand* command = NULL;
- EditingToolsAdjustToolSliderAdjustmentCommand* _tmp2_;
- CommandManager* _tmp3_;
- CommandManager* _tmp4_;
-#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (IS_PIXEL_TRANSFORMATION (new_transformation));
-#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (name != NULL);
-#line 2686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->transformations;
-#line 2686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = pixel_transformation_bundle_get_transformation (_tmp0_, pixel_transformation_get_transformation_type (new_transformation));
-#line 2686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- old_transformation = _tmp1_;
-#line 2688 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = editing_tools_adjust_tool_slider_adjustment_command_new (self, old_transformation, new_transformation, name);
-#line 2688 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command = _tmp2_;
-#line 2690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = app_window_get_command_manager ();
-#line 2690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_;
-#line 2690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command));
-#line 2690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _command_manager_unref0 (_tmp4_);
-#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (command);
-#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (old_transformation);
-#line 16152 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_delayed_temperature_adjustment_one_shot_callback (gpointer self)
-{
-#line 2695 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_delayed_temperature_adjustment ((EditingToolsAdjustTool*) self);
-#line 16161 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_temperature_adjustment (EditingToolsAdjustTool* self)
-{
- OneShotScheduler* _tmp0_;
- OneShotScheduler* _tmp2_;
-#line 2693 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2694 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->temperature_scheduler;
-#line 2694 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == NULL) {
-#line 16176 "EditingTools.c"
- OneShotScheduler* _tmp1_;
-#line 2695 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = one_shot_scheduler_new ("temperature", _editing_tools_adjust_tool_on_delayed_temperature_adjustment_one_shot_callback, self);
-#line 2695 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->temperature_scheduler);
-#line 2695 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->temperature_scheduler = _tmp1_;
-#line 16184 "EditingTools.c"
- }
-#line 2697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->temperature_scheduler;
-#line 2697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE);
-#line 16190 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_delayed_temperature_adjustment (EditingToolsAdjustTool* self)
-{
- TemperatureTransformation* new_temp_trans = NULL;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- TemperatureTransformation* _tmp2_;
-#line 2700 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->temperature_slider;
-#line 2701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = temperature_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)));
-#line 2701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_temp_trans = _tmp2_;
-#line 2703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_temp_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Temperature"));
-#line 2700 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (new_temp_trans);
-#line 16215 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_delayed_tint_adjustment_one_shot_callback (gpointer self)
-{
-#line 2708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_delayed_tint_adjustment ((EditingToolsAdjustTool*) self);
-#line 16224 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_tint_adjustment (EditingToolsAdjustTool* self)
-{
- OneShotScheduler* _tmp0_;
- OneShotScheduler* _tmp2_;
-#line 2706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->tint_scheduler;
-#line 2707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == NULL) {
-#line 16239 "EditingTools.c"
- OneShotScheduler* _tmp1_;
-#line 2708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = one_shot_scheduler_new ("tint", _editing_tools_adjust_tool_on_delayed_tint_adjustment_one_shot_callback, self);
-#line 2708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->tint_scheduler);
-#line 2708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->tint_scheduler = _tmp1_;
-#line 16247 "EditingTools.c"
- }
-#line 2709 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->tint_scheduler;
-#line 2709 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE);
-#line 16253 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_delayed_tint_adjustment (EditingToolsAdjustTool* self)
-{
- TintTransformation* new_tint_trans = NULL;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- TintTransformation* _tmp2_;
-#line 2712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->tint_slider;
-#line 2713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = tint_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)));
-#line 2713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_tint_trans = _tmp2_;
-#line 2715 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_tint_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Tint"));
-#line 2712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (new_tint_trans);
-#line 16278 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_delayed_contrast_adjustment_one_shot_callback (gpointer self)
-{
-#line 2720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_delayed_contrast_adjustment ((EditingToolsAdjustTool*) self);
-#line 16287 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_contrast_adjustment (EditingToolsAdjustTool* self)
-{
- OneShotScheduler* _tmp0_;
- OneShotScheduler* _tmp2_;
-#line 2718 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2719 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->contrast_scheduler;
-#line 2719 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == NULL) {
-#line 16302 "EditingTools.c"
- OneShotScheduler* _tmp1_;
-#line 2720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = one_shot_scheduler_new ("contrast", _editing_tools_adjust_tool_on_delayed_contrast_adjustment_one_shot_callback, self);
-#line 2720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->contrast_scheduler);
-#line 2720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->contrast_scheduler = _tmp1_;
-#line 16310 "EditingTools.c"
- }
-#line 2721 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->contrast_scheduler;
-#line 2721 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE);
-#line 16316 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_delayed_contrast_adjustment (EditingToolsAdjustTool* self)
-{
- ContrastTransformation* new_exp_trans = NULL;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- ContrastTransformation* _tmp2_;
-#line 2724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->contrast_slider;
-#line 2725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = contrast_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)));
-#line 2725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_exp_trans = _tmp2_;
-#line 2727 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_exp_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Contrast"));
-#line 2724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (new_exp_trans);
-#line 16341 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_delayed_saturation_adjustment_one_shot_callback (gpointer self)
-{
-#line 2733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_delayed_saturation_adjustment ((EditingToolsAdjustTool*) self);
-#line 16350 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_saturation_adjustment (EditingToolsAdjustTool* self)
-{
- OneShotScheduler* _tmp0_;
- OneShotScheduler* _tmp2_;
-#line 2731 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->saturation_scheduler;
-#line 2732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == NULL) {
-#line 16365 "EditingTools.c"
- OneShotScheduler* _tmp1_;
-#line 2733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = one_shot_scheduler_new ("saturation", _editing_tools_adjust_tool_on_delayed_saturation_adjustment_one_shot_callback, self);
-#line 2733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->saturation_scheduler);
-#line 2733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->saturation_scheduler = _tmp1_;
-#line 16373 "EditingTools.c"
- }
-#line 2735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->saturation_scheduler;
-#line 2735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE);
-#line 16379 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_delayed_saturation_adjustment (EditingToolsAdjustTool* self)
-{
- SaturationTransformation* new_sat_trans = NULL;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- SaturationTransformation* _tmp2_;
-#line 2738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->saturation_slider;
-#line 2739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = saturation_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)));
-#line 2739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_sat_trans = _tmp2_;
-#line 2741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_sat_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Saturation"));
-#line 2738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (new_sat_trans);
-#line 16404 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_delayed_exposure_adjustment_one_shot_callback (gpointer self)
-{
-#line 2746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_delayed_exposure_adjustment ((EditingToolsAdjustTool*) self);
-#line 16413 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_exposure_adjustment (EditingToolsAdjustTool* self)
-{
- OneShotScheduler* _tmp0_;
- OneShotScheduler* _tmp2_;
-#line 2744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->exposure_scheduler;
-#line 2745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == NULL) {
-#line 16428 "EditingTools.c"
- OneShotScheduler* _tmp1_;
-#line 2746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = one_shot_scheduler_new ("exposure", _editing_tools_adjust_tool_on_delayed_exposure_adjustment_one_shot_callback, self);
-#line 2746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->exposure_scheduler);
-#line 2746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->exposure_scheduler = _tmp1_;
-#line 16436 "EditingTools.c"
- }
-#line 2748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->exposure_scheduler;
-#line 2748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE);
-#line 16442 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_delayed_exposure_adjustment (EditingToolsAdjustTool* self)
-{
- ExposureTransformation* new_exp_trans = NULL;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- ExposureTransformation* _tmp2_;
-#line 2751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->exposure_slider;
-#line 2752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = exposure_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)));
-#line 2752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_exp_trans = _tmp2_;
-#line 2754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_exp_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Exposure"));
-#line 2751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (new_exp_trans);
-#line 16467 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_delayed_shadows_adjustment_one_shot_callback (gpointer self)
-{
-#line 2759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_delayed_shadows_adjustment ((EditingToolsAdjustTool*) self);
-#line 16476 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_shadows_adjustment (EditingToolsAdjustTool* self)
-{
- OneShotScheduler* _tmp0_;
- OneShotScheduler* _tmp2_;
-#line 2757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->shadows_scheduler;
-#line 2758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == NULL) {
-#line 16491 "EditingTools.c"
- OneShotScheduler* _tmp1_;
-#line 2759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = one_shot_scheduler_new ("shadows", _editing_tools_adjust_tool_on_delayed_shadows_adjustment_one_shot_callback, self);
-#line 2759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->shadows_scheduler);
-#line 2759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->shadows_scheduler = _tmp1_;
-#line 16499 "EditingTools.c"
- }
-#line 2761 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->shadows_scheduler;
-#line 2761 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE);
-#line 16505 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_delayed_shadows_adjustment (EditingToolsAdjustTool* self)
-{
- ShadowDetailTransformation* new_shadows_trans = NULL;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- ShadowDetailTransformation* _tmp2_;
-#line 2764 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2765 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2765 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->shadows_slider;
-#line 2765 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = shadow_detail_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)));
-#line 2765 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_shadows_trans = _tmp2_;
-#line 2767 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_shadows_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Shadows"));
-#line 2764 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (new_shadows_trans);
-#line 16530 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_delayed_highlights_adjustment_one_shot_callback (gpointer self)
-{
-#line 2772 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_delayed_highlights_adjustment ((EditingToolsAdjustTool*) self);
-#line 16539 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_highlights_adjustment (EditingToolsAdjustTool* self)
-{
- OneShotScheduler* _tmp0_;
- OneShotScheduler* _tmp2_;
-#line 2770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->highlights_scheduler;
-#line 2771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == NULL) {
-#line 16554 "EditingTools.c"
- OneShotScheduler* _tmp1_;
-#line 2772 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = one_shot_scheduler_new ("highlights", _editing_tools_adjust_tool_on_delayed_highlights_adjustment_one_shot_callback, self);
-#line 2772 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->highlights_scheduler);
-#line 2772 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->highlights_scheduler = _tmp1_;
-#line 16562 "EditingTools.c"
- }
-#line 2774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->highlights_scheduler;
-#line 2774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE);
-#line 16568 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_delayed_highlights_adjustment (EditingToolsAdjustTool* self)
-{
- HighlightDetailTransformation* new_highlights_trans = NULL;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- HighlightDetailTransformation* _tmp2_;
-#line 2777 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->highlights_slider;
-#line 2778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = highlight_detail_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)));
-#line 2778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_highlights_trans = _tmp2_;
-#line 2780 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_highlights_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Highlights"));
-#line 2777 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (new_highlights_trans);
-#line 16593 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_histogram_constraint (EditingToolsAdjustTool* self)
-{
- gint expansion_black_point = 0;
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- RGBHistogramManipulator* _tmp1_;
- gint expansion_white_point = 0;
- EditingToolsAdjustToolAdjustToolWindow* _tmp2_;
- RGBHistogramManipulator* _tmp3_;
- ExpansionTransformation* new_exp_trans = NULL;
- ExpansionTransformation* _tmp4_;
-#line 2783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->histogram_manipulator;
-#line 2784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- expansion_black_point = rgb_histogram_manipulator_get_left_nub_position (_tmp1_);
-#line 2786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->adjust_tool_window;
-#line 2786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_->histogram_manipulator;
-#line 2786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- expansion_white_point = rgb_histogram_manipulator_get_right_nub_position (_tmp3_);
-#line 2788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = expansion_transformation_new_from_extrema (expansion_black_point, expansion_white_point);
-#line 2788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- new_exp_trans = _tmp4_;
-#line 2790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_exp_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Contrast Expansion"));
-#line 2783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (new_exp_trans);
-#line 16630 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_canvas_resize (EditingToolsAdjustTool* self)
-{
- EditingToolsPhotoCanvas* _tmp0_;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- EditingToolsPhotoCanvas* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 2793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_photo_canvas_get_scaled_pixbuf (_tmp0_);
-#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_;
-#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = gdk_pixbuf_copy (_tmp2_);
-#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->draw_to_pixbuf);
-#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->draw_to_pixbuf = _tmp3_;
-#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp2_);
-#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = editing_tools_photo_canvas_get_scaled_pixbuf (_tmp4_);
-#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_;
-#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_init_fp_pixel_cache (self, _tmp6_);
-#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp6_);
-#line 16670 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_adjust_tool_on_hscale_reset (EditingToolsAdjustTool* self,
- GtkWidget* widget,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- GtkScale* source = NULL;
- GtkScale* _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- guint _tmp3_;
-#line 2798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self), FALSE);
-#line 2798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
-#line 2798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2799 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (widget, gtk_scale_get_type (), GtkScale));
-#line 2799 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- source = _tmp0_;
-#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = event->button;
-#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_ == ((guint) 1)) {
-#line 16699 "EditingTools.c"
- GdkEventType _tmp4_;
-#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = event->type;
-#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp4_ == GDK_BUTTON_PRESS;
-#line 16705 "EditingTools.c"
- } else {
-#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = FALSE;
-#line 16709 "EditingTools.c"
- }
-#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp2_) {
-#line 16713 "EditingTools.c"
- GdkModifierType _tmp5_;
-#line 2802 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = event->state;
-#line 2802 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = has_only_key_modifier (_tmp5_, GDK_CONTROL_MASK);
-#line 16719 "EditingTools.c"
- } else {
-#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = FALSE;
-#line 16723 "EditingTools.c"
- }
-#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_) {
-#line 16727 "EditingTools.c"
- GtkScale* _tmp6_;
-#line 2804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = source;
-#line 2804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_range_get_type (), GtkRange), (gdouble) 0);
-#line 2806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 2806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (source);
-#line 2806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 16739 "EditingTools.c"
- }
-#line 2809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 2809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (source);
-#line 2809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 16747 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position,
- gpointer self)
-{
-#line 2813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_canvas_resize ((EditingToolsAdjustTool*) self);
-#line 16760 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_bind_canvas_handlers (EditingToolsAdjustTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
-#line 2812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 2813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (canvas, "resized-scaled-pixbuf", (GCallback) _editing_tools_adjust_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf, self);
-#line 16774 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_unbind_canvas_handlers (EditingToolsAdjustTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
- guint _tmp0_;
-#line 2816 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2816 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 2817 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp0_, NULL, FALSE);
-#line 2817 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf, self);
-#line 16791 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_ok_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 2821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_ok ((EditingToolsAdjustTool*) self);
-#line 16801 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_reset_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 2822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_reset ((EditingToolsAdjustTool*) self);
-#line 16811 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_exposure_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 2824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_exposure_adjustment ((EditingToolsAdjustTool*) self);
-#line 16821 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_contrast_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 2825 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_contrast_adjustment ((EditingToolsAdjustTool*) self);
-#line 16831 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_saturation_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 2826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_saturation_adjustment ((EditingToolsAdjustTool*) self);
-#line 16841 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_tint_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 2827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_tint_adjustment ((EditingToolsAdjustTool*) self);
-#line 16851 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_temperature_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 2828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_temperature_adjustment ((EditingToolsAdjustTool*) self);
-#line 16861 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_shadows_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 2829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_shadows_adjustment ((EditingToolsAdjustTool*) self);
-#line 16871 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_highlights_adjustment_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 2830 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_highlights_adjustment ((EditingToolsAdjustTool*) self);
-#line 16881 "EditingTools.c"
-}
-
-
-static void
-_editing_tools_adjust_tool_on_histogram_constraint_rgb_histogram_manipulator_nub_position_changed (RGBHistogramManipulator* _sender,
- gpointer self)
-{
-#line 2831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_histogram_constraint ((EditingToolsAdjustTool*) self);
-#line 16891 "EditingTools.c"
-}
-
-
-static gboolean
-_editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- result = editing_tools_adjust_tool_on_hscale_reset ((EditingToolsAdjustTool*) self, _sender, event);
-#line 2833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 16904 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_bind_window_handlers (EditingToolsAdjustTool* self)
-{
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkButton* _tmp1_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp2_;
- GtkButton* _tmp3_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp4_;
- GtkButton* _tmp5_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp6_;
- GtkScale* _tmp7_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp8_;
- GtkScale* _tmp9_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp10_;
- GtkScale* _tmp11_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp12_;
- GtkScale* _tmp13_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp14_;
- GtkScale* _tmp15_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp16_;
- GtkScale* _tmp17_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp18_;
- GtkScale* _tmp19_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp20_;
- RGBHistogramManipulator* _tmp21_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp22_;
- GtkScale* _tmp23_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp24_;
- GtkScale* _tmp25_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp26_;
- GtkScale* _tmp27_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp28_;
- GtkScale* _tmp29_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp30_;
- GtkScale* _tmp31_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp32_;
- GtkScale* _tmp33_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp34_;
- GtkScale* _tmp35_;
-#line 2820 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->ok_button;
-#line 2821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp1_, "clicked", (GCallback) _editing_tools_adjust_tool_on_ok_gtk_button_clicked, self);
-#line 2822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->adjust_tool_window;
-#line 2822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_->reset_button;
-#line 2822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp3_, "clicked", (GCallback) _editing_tools_adjust_tool_on_reset_gtk_button_clicked, self);
-#line 2823 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->adjust_tool_window;
-#line 2823 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _tmp4_->cancel_button;
-#line 2823 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp5_, "clicked", (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 2824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->adjust_tool_window;
-#line 2824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_->exposure_slider;
-#line 2824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_exposure_adjustment_gtk_range_value_changed, self);
-#line 2825 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->adjust_tool_window;
-#line 2825 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_->contrast_slider;
-#line 2825 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_contrast_adjustment_gtk_range_value_changed, self);
-#line 2826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->adjust_tool_window;
-#line 2826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_->saturation_slider;
-#line 2826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_saturation_adjustment_gtk_range_value_changed, self);
-#line 2827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->adjust_tool_window;
-#line 2827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_->tint_slider;
-#line 2827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_tint_adjustment_gtk_range_value_changed, self);
-#line 2828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->adjust_tool_window;
-#line 2828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_->temperature_slider;
-#line 2828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_temperature_adjustment_gtk_range_value_changed, self);
-#line 2829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->priv->adjust_tool_window;
-#line 2829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_->shadows_slider;
-#line 2829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_shadows_adjustment_gtk_range_value_changed, self);
-#line 2830 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->adjust_tool_window;
-#line 2830 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_->highlights_slider;
-#line 2830 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_highlights_adjustment_gtk_range_value_changed, self);
-#line 2831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = self->priv->adjust_tool_window;
-#line 2831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_->histogram_manipulator;
-#line 2831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (_tmp21_, "nub-position-changed", (GCallback) _editing_tools_adjust_tool_on_histogram_constraint_rgb_histogram_manipulator_nub_position_changed, self);
-#line 2833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = self->priv->adjust_tool_window;
-#line 2833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp22_->saturation_slider;
-#line 2833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = self->priv->adjust_tool_window;
-#line 2834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp24_->exposure_slider;
-#line 2834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = self->priv->adjust_tool_window;
-#line 2835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = _tmp26_->contrast_slider;
-#line 2835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = self->priv->adjust_tool_window;
-#line 2836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = _tmp28_->tint_slider;
-#line 2836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = self->priv->adjust_tool_window;
-#line 2837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = _tmp30_->temperature_slider;
-#line 2837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2838 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = self->priv->adjust_tool_window;
-#line 2838 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = _tmp32_->shadows_slider;
-#line 2838 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = self->priv->adjust_tool_window;
-#line 2839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = _tmp34_->highlights_slider;
-#line 2839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 17057 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_unbind_window_handlers (EditingToolsAdjustTool* self)
-{
- EditingToolsAdjustToolAdjustToolWindow* _tmp0_;
- GtkButton* _tmp1_;
- guint _tmp2_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp3_;
- GtkButton* _tmp4_;
- guint _tmp5_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp6_;
- GtkButton* _tmp7_;
- guint _tmp8_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp9_;
- GtkScale* _tmp10_;
- guint _tmp11_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp12_;
- GtkScale* _tmp13_;
- guint _tmp14_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp15_;
- GtkScale* _tmp16_;
- guint _tmp17_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp18_;
- GtkScale* _tmp19_;
- guint _tmp20_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp21_;
- GtkScale* _tmp22_;
- guint _tmp23_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp24_;
- GtkScale* _tmp25_;
- guint _tmp26_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp27_;
- GtkScale* _tmp28_;
- guint _tmp29_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp30_;
- RGBHistogramManipulator* _tmp31_;
- guint _tmp32_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp33_;
- GtkScale* _tmp34_;
- guint _tmp35_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp36_;
- GtkScale* _tmp37_;
- guint _tmp38_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp39_;
- GtkScale* _tmp40_;
- guint _tmp41_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp42_;
- GtkScale* _tmp43_;
- guint _tmp44_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp45_;
- GtkScale* _tmp46_;
- guint _tmp47_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp48_;
- GtkScale* _tmp49_;
- guint _tmp50_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp51_;
- GtkScale* _tmp52_;
- guint _tmp53_;
-#line 2842 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->adjust_tool_window;
-#line 2843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_->ok_button;
-#line 2843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp2_, NULL, FALSE);
-#line 2843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_ok_gtk_button_clicked, self);
-#line 2844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->priv->adjust_tool_window;
-#line 2844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_->reset_button;
-#line 2844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp5_, NULL, FALSE);
-#line 2844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_reset_gtk_button_clicked, self);
-#line 2845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = self->priv->adjust_tool_window;
-#line 2845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = _tmp6_->cancel_button;
-#line 2845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp8_, NULL, FALSE);
-#line 2845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 2846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->priv->adjust_tool_window;
-#line 2846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_->exposure_slider;
-#line 2846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp11_, NULL, FALSE);
-#line 2846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_exposure_adjustment_gtk_range_value_changed, self);
-#line 2847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->adjust_tool_window;
-#line 2847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_->contrast_slider;
-#line 2847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp14_, NULL, FALSE);
-#line 2847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_contrast_adjustment_gtk_range_value_changed, self);
-#line 2848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->priv->adjust_tool_window;
-#line 2848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = _tmp15_->saturation_slider;
-#line 2848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp17_, NULL, FALSE);
-#line 2848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_saturation_adjustment_gtk_range_value_changed, self);
-#line 2849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->adjust_tool_window;
-#line 2849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_->tint_slider;
-#line 2849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp20_, NULL, FALSE);
-#line 2849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_tint_adjustment_gtk_range_value_changed, self);
-#line 2850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = self->priv->adjust_tool_window;
-#line 2850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = _tmp21_->temperature_slider;
-#line 2850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp23_, NULL, FALSE);
-#line 2850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp23_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_temperature_adjustment_gtk_range_value_changed, self);
-#line 2851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = self->priv->adjust_tool_window;
-#line 2851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp24_->shadows_slider;
-#line 2851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp26_, NULL, FALSE);
-#line 2851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_shadows_adjustment_gtk_range_value_changed, self);
-#line 2852 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = self->priv->adjust_tool_window;
-#line 2852 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = _tmp27_->highlights_slider;
-#line 2852 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp29_, NULL, FALSE);
-#line 2852 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_highlights_adjustment_gtk_range_value_changed, self);
-#line 2853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = self->priv->adjust_tool_window;
-#line 2853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = _tmp30_->histogram_manipulator;
-#line 2853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("nub-position-changed", TYPE_RGB_HISTOGRAM_MANIPULATOR, &_tmp32_, NULL, FALSE);
-#line 2853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (_tmp31_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp32_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_histogram_constraint_rgb_histogram_manipulator_nub_position_changed, self);
-#line 2855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->priv->adjust_tool_window;
-#line 2855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = _tmp33_->saturation_slider;
-#line 2855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp35_, NULL, FALSE);
-#line 2855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp35_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = self->priv->adjust_tool_window;
-#line 2856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = _tmp36_->exposure_slider;
-#line 2856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp38_, NULL, FALSE);
-#line 2856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp38_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2857 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = self->priv->adjust_tool_window;
-#line 2857 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = _tmp39_->contrast_slider;
-#line 2857 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp41_, NULL, FALSE);
-#line 2857 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp41_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = self->priv->adjust_tool_window;
-#line 2858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = _tmp42_->tint_slider;
-#line 2858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp44_, NULL, FALSE);
-#line 2858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp44_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = self->priv->adjust_tool_window;
-#line 2859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = _tmp45_->temperature_slider;
-#line 2859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp47_, NULL, FALSE);
-#line 2859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp47_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp48_ = self->priv->adjust_tool_window;
-#line 2860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp49_ = _tmp48_->shadows_slider;
-#line 2860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp50_, NULL, FALSE);
-#line 2860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp50_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 2861 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp51_ = self->priv->adjust_tool_window;
-#line 2861 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp52_ = _tmp51_->highlights_slider;
-#line 2861 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp53_, NULL, FALSE);
-#line 2861 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp53_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self);
-#line 17264 "EditingTools.c"
-}
-
-
-gboolean
-editing_tools_adjust_tool_enhance (EditingToolsAdjustTool* self)
-{
- gboolean result = FALSE;
- EditingToolsAdjustToolAdjustEnhanceCommand* command = NULL;
- EditingToolsPhotoCanvas* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- EditingToolsAdjustToolAdjustEnhanceCommand* _tmp3_;
- EditingToolsAdjustToolAdjustEnhanceCommand* _tmp4_;
- CommandManager* _tmp5_;
- CommandManager* _tmp6_;
-#line 2864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self), FALSE);
-#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_);
-#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_;
-#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = editing_tools_adjust_tool_adjust_enhance_command_new (self, _tmp2_);
-#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _tmp3_;
-#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp2_);
-#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command = _tmp4_;
-#line 2866 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = app_window_get_command_manager ();
-#line 2866 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_;
-#line 2866 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command));
-#line 2866 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _command_manager_unref0 (_tmp6_);
-#line 2868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 2868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (command);
-#line 2868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 17310 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_on_photos_altered (EditingToolsAdjustTool* self,
- GeeMap* map)
-{
- EditingToolsPhotoCanvas* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- gboolean _tmp3_;
- PixelTransformationBundle* adjustments = NULL;
- EditingToolsPhotoCanvas* _tmp4_;
- Photo* _tmp5_;
- Photo* _tmp6_;
- PixelTransformationBundle* _tmp7_;
- PixelTransformationBundle* _tmp8_;
- PixelTransformationBundle* _tmp9_;
-#line 2871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_);
-#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = _tmp1_;
-#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = !gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject));
-#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp2_);
-#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_) {
-#line 2873 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return;
-#line 17347 "EditingTools.c"
- }
-#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = editing_tools_photo_canvas_get_photo (_tmp4_);
-#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_;
-#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = photo_get_color_adjustments (_tmp6_);
-#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_;
-#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp6_);
-#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- adjustments = _tmp8_;
-#line 2876 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = adjustments;
-#line 2876 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_set_adjustments (self, _tmp9_);
-#line 2871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (adjustments);
-#line 17369 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_set_adjustments (EditingToolsAdjustTool* self,
- PixelTransformationBundle* new_adjustments)
-{
- EditingToolsPhotoCanvas* _tmp8_;
-#line 2879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (new_adjustments));
-#line 2880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_unbind_window_handlers (self);
-#line 2882 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_update_transformations (self, new_adjustments);
-#line 17386 "EditingTools.c"
- {
- GeeIterator* _adjustment_it = NULL;
- GeeIterable* _tmp0_;
- GeeIterable* _tmp1_;
- GeeIterator* _tmp2_;
- GeeIterator* _tmp3_;
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = pixel_transformation_bundle_get_transformations (new_adjustments);
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = gee_iterable_iterator (_tmp1_);
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_;
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp1_);
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _adjustment_it = _tmp3_;
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- while (TRUE) {
-#line 17407 "EditingTools.c"
- GeeIterator* _tmp4_;
- PixelTransformation* adjustment = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- PixelTransformation* _tmp7_;
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = _adjustment_it;
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17419 "EditingTools.c"
- }
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = _adjustment_it;
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- adjustment = (PixelTransformation*) _tmp6_;
-#line 2885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = adjustment;
-#line 2885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_update_slider (self, _tmp7_);
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (adjustment);
-#line 17433 "EditingTools.c"
- }
-#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_adjustment_it);
-#line 17437 "EditingTools.c"
- }
-#line 2887 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_bind_window_handlers (self);
-#line 2888 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2888 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp8_);
-#line 17445 "EditingTools.c"
-}
-
-
-static gpointer
-_pixel_transformation_ref0 (gpointer self)
-{
-#line 2896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self ? pixel_transformation_ref (self) : NULL;
-#line 17454 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_update_slider (EditingToolsAdjustTool* self,
- PixelTransformation* transformation)
-{
-#line 2893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (IS_PIXEL_TRANSFORMATION (transformation));
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- switch (pixel_transformation_get_transformation_type (transformation)) {
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION:
-#line 17470 "EditingTools.c"
- {
- ExpansionTransformation* expansion = NULL;
- ExpansionTransformation* _tmp0_;
- gboolean _tmp1_;
-#line 2896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _pixel_transformation_ref0 (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation));
-#line 2896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- expansion = _tmp0_;
-#line 2898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->disable_histogram_refresh;
-#line 2898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!_tmp1_) {
-#line 17483 "EditingTools.c"
- EditingToolsAdjustToolAdjustToolWindow* _tmp2_;
- RGBHistogramManipulator* _tmp3_;
- ExpansionTransformation* _tmp4_;
- EditingToolsAdjustToolAdjustToolWindow* _tmp5_;
- RGBHistogramManipulator* _tmp6_;
- ExpansionTransformation* _tmp7_;
-#line 2899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->adjust_tool_window;
-#line 2899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = _tmp2_->histogram_manipulator;
-#line 2899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = expansion;
-#line 2899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rgb_histogram_manipulator_set_left_nub_position (_tmp3_, expansion_transformation_get_black_point (_tmp4_));
-#line 2901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->priv->adjust_tool_window;
-#line 2901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_->histogram_manipulator;
-#line 2901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = expansion;
-#line 2901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- rgb_histogram_manipulator_set_right_nub_position (_tmp6_, expansion_transformation_get_white_point (_tmp7_));
-#line 17506 "EditingTools.c"
- }
-#line 2904 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (expansion);
-#line 2904 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17512 "EditingTools.c"
- }
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case PIXEL_TRANSFORMATION_TYPE_SHADOWS:
-#line 17516 "EditingTools.c"
- {
- EditingToolsAdjustToolAdjustToolWindow* _tmp8_;
- GtkScale* _tmp9_;
-#line 2907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->priv->adjust_tool_window;
-#line 2907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = _tmp8_->shadows_slider;
-#line 2907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange), (gdouble) shadow_detail_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation)));
-#line 2909 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17528 "EditingTools.c"
- }
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case PIXEL_TRANSFORMATION_TYPE_CONTRAST:
-#line 17532 "EditingTools.c"
- {
- EditingToolsAdjustToolAdjustToolWindow* _tmp10_;
- GtkScale* _tmp11_;
-#line 2912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->priv->adjust_tool_window;
-#line 2912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _tmp10_->contrast_slider;
-#line 2912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_range_get_type (), GtkRange), (gdouble) contrast_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation)));
-#line 2914 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17544 "EditingTools.c"
- }
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS:
-#line 17548 "EditingTools.c"
- {
- EditingToolsAdjustToolAdjustToolWindow* _tmp12_;
- GtkScale* _tmp13_;
-#line 2917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->priv->adjust_tool_window;
-#line 2917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = _tmp12_->highlights_slider;
-#line 2917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_range_get_type (), GtkRange), (gdouble) highlight_detail_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation)));
-#line 2919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17560 "EditingTools.c"
- }
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case PIXEL_TRANSFORMATION_TYPE_EXPOSURE:
-#line 17564 "EditingTools.c"
- {
- EditingToolsAdjustToolAdjustToolWindow* _tmp14_;
- GtkScale* _tmp15_;
-#line 2922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->priv->adjust_tool_window;
-#line 2922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = _tmp14_->exposure_slider;
-#line 2922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_range_get_type (), GtkRange), (gdouble) exposure_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation)));
-#line 2924 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17576 "EditingTools.c"
- }
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case PIXEL_TRANSFORMATION_TYPE_SATURATION:
-#line 17580 "EditingTools.c"
- {
- EditingToolsAdjustToolAdjustToolWindow* _tmp16_;
- GtkScale* _tmp17_;
-#line 2927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = self->priv->adjust_tool_window;
-#line 2927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = _tmp16_->saturation_slider;
-#line 2927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_range_get_type (), GtkRange), (gdouble) saturation_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_SATURATION_TRANSFORMATION, SaturationTransformation)));
-#line 2929 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17592 "EditingTools.c"
- }
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case PIXEL_TRANSFORMATION_TYPE_TINT:
-#line 17596 "EditingTools.c"
- {
- EditingToolsAdjustToolAdjustToolWindow* _tmp18_;
- GtkScale* _tmp19_;
-#line 2932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->priv->adjust_tool_window;
-#line 2932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = _tmp18_->tint_slider;
-#line 2932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_range_get_type (), GtkRange), (gdouble) tint_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_TINT_TRANSFORMATION, TintTransformation)));
-#line 2934 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17608 "EditingTools.c"
- }
-#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- case PIXEL_TRANSFORMATION_TYPE_TEMPERATURE:
-#line 17612 "EditingTools.c"
- {
- EditingToolsAdjustToolAdjustToolWindow* _tmp20_;
- GtkScale* _tmp21_;
-#line 2937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = self->priv->adjust_tool_window;
-#line 2937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = _tmp20_->temperature_slider;
-#line 2937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_range_get_type (), GtkRange), (gdouble) temperature_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation)));
-#line 2939 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17624 "EditingTools.c"
- }
- default:
- {
-#line 2942 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_error ("EditingTools.vala:2942: Unknown adjustment: %d", (gint) pixel_transformation_get_transformation_type (transformation));
-#line 17630 "EditingTools.c"
- }
- }
-}
-
-
-static void
-editing_tools_adjust_tool_init_fp_pixel_cache (EditingToolsAdjustTool* self,
- GdkPixbuf* source)
-{
- gint source_width = 0;
- gint source_height = 0;
- gint source_num_channels = 0;
- gint source_rowstride = 0;
- guchar* source_pixels = NULL;
- guint8* _tmp0_;
- gint source_pixels_length1;
- gint _source_pixels_size_;
- gint _tmp1_;
- gint _tmp2_;
- gfloat* _tmp3_;
- gint cache_pixel_index = 0;
-#line 2946 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self));
-#line 2946 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (GDK_IS_PIXBUF (source));
-#line 2947 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- source_width = gdk_pixbuf_get_width (source);
-#line 2948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- source_height = gdk_pixbuf_get_height (source);
-#line 2949 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- source_num_channels = gdk_pixbuf_get_n_channels (source);
-#line 2950 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- source_rowstride = gdk_pixbuf_get_rowstride (source);
-#line 2951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = gdk_pixbuf_get_pixels (source);
-#line 2951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- source_pixels = _tmp0_;
-#line 2951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- source_pixels_length1 = -1;
-#line 2951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _source_pixels_size_ = source_pixels_length1;
-#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = source_width;
-#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = source_height;
-#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = g_new0 (gfloat, (3 * _tmp1_) * _tmp2_);
-#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache = (g_free (self->priv->fp_pixel_cache), NULL);
-#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache = _tmp3_;
-#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache_length1 = (3 * _tmp1_) * _tmp2_;
-#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->_fp_pixel_cache_size_ = self->priv->fp_pixel_cache_length1;
-#line 2954 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cache_pixel_index = 0;
-#line 17688 "EditingTools.c"
- {
- gint j = 0;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- j = 0;
-#line 17693 "EditingTools.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = TRUE;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- while (TRUE) {
-#line 17700 "EditingTools.c"
- gint _tmp6_;
- gint _tmp7_;
- gint row_start_index = 0;
- gint _tmp8_;
- gint _tmp9_;
- gint row_end_index = 0;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!_tmp4_) {
-#line 17712 "EditingTools.c"
- gint _tmp5_;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = j;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- j = _tmp5_ + 1;
-#line 17718 "EditingTools.c"
- }
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = FALSE;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = j;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = source_height;
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17730 "EditingTools.c"
- }
-#line 2957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = j;
-#line 2957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = source_rowstride;
-#line 2957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- row_start_index = _tmp8_ * _tmp9_;
-#line 2958 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = row_start_index;
-#line 2958 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = source_width;
-#line 2958 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = source_num_channels;
-#line 2958 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- row_end_index = _tmp10_ + (_tmp11_ * _tmp12_);
-#line 17746 "EditingTools.c"
- {
- gint i = 0;
- gint _tmp13_;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = row_start_index;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- i = _tmp13_;
-#line 17754 "EditingTools.c"
- {
- gboolean _tmp14_ = FALSE;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = TRUE;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- while (TRUE) {
-#line 17761 "EditingTools.c"
- gint _tmp17_;
- gint _tmp18_;
- gfloat* _tmp19_;
- gint _tmp19__length1;
- gint _tmp20_;
- guchar* _tmp21_;
- gint _tmp21__length1;
- gint _tmp22_;
- guchar _tmp23_;
- gfloat _tmp24_;
- gfloat _tmp25_;
- gfloat* _tmp26_;
- gint _tmp26__length1;
- gint _tmp27_;
- guchar* _tmp28_;
- gint _tmp28__length1;
- gint _tmp29_;
- guchar _tmp30_;
- gfloat _tmp31_;
- gfloat _tmp32_;
- gfloat* _tmp33_;
- gint _tmp33__length1;
- gint _tmp34_;
- guchar* _tmp35_;
- gint _tmp35__length1;
- gint _tmp36_;
- guchar _tmp37_;
- gfloat _tmp38_;
- gfloat _tmp39_;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!_tmp14_) {
-#line 17793 "EditingTools.c"
- gint _tmp15_;
- gint _tmp16_;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = i;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = source_num_channels;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- i = _tmp15_ + _tmp16_;
-#line 17802 "EditingTools.c"
- }
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = FALSE;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = i;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = row_end_index;
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (!(_tmp17_ < _tmp18_)) {
-#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- break;
-#line 17814 "EditingTools.c"
- }
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = self->priv->fp_pixel_cache;
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19__length1 = self->priv->fp_pixel_cache_length1;
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = cache_pixel_index;
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cache_pixel_index = _tmp20_ + 1;
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = source_pixels;
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21__length1 = source_pixels_length1;
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = i;
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = _tmp21_[_tmp22_];
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = rgb_lookup_table[_tmp23_];
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_[_tmp20_] = _tmp24_;
-#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = _tmp19_[_tmp20_];
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = self->priv->fp_pixel_cache;
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26__length1 = self->priv->fp_pixel_cache_length1;
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = cache_pixel_index;
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cache_pixel_index = _tmp27_ + 1;
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = source_pixels;
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28__length1 = source_pixels_length1;
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = i;
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = _tmp28_[_tmp29_ + 1];
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = rgb_lookup_table[_tmp30_];
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_[_tmp27_] = _tmp31_;
-#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = _tmp26_[_tmp27_];
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->priv->fp_pixel_cache;
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33__length1 = self->priv->fp_pixel_cache_length1;
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = cache_pixel_index;
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- cache_pixel_index = _tmp34_ + 1;
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = source_pixels;
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35__length1 = source_pixels_length1;
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = i;
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = _tmp35_[_tmp36_ + 2];
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = rgb_lookup_table[_tmp37_];
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_[_tmp34_] = _tmp38_;
-#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = _tmp33_[_tmp34_];
-#line 17882 "EditingTools.c"
- }
- }
- }
- }
- }
- }
-}
-
-
-static gboolean
-editing_tools_adjust_tool_real_on_keypress (EditingToolsEditingTool* base,
- GdkEventKey* event)
-{
- EditingToolsAdjustTool * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- guint _tmp2_;
- const gchar* _tmp3_;
-#line 2967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool);
-#line 2967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = event->keyval;
-#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = gdk_keyval_name (_tmp2_);
-#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (g_strcmp0 (_tmp3_, "KP_Enter") == 0) {
-#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = TRUE;
-#line 17914 "EditingTools.c"
- } else {
- guint _tmp4_;
- const gchar* _tmp5_;
-#line 2969 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = event->keyval;
-#line 2969 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = gdk_keyval_name (_tmp4_);
-#line 2969 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = g_strcmp0 (_tmp5_, "Enter") == 0;
-#line 17924 "EditingTools.c"
- }
-#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_) {
-#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = TRUE;
-#line 17930 "EditingTools.c"
- } else {
- guint _tmp6_;
- const gchar* _tmp7_;
-#line 2970 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = event->keyval;
-#line 2970 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = gdk_keyval_name (_tmp6_);
-#line 2970 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = g_strcmp0 (_tmp7_, "Return") == 0;
-#line 17940 "EditingTools.c"
- }
-#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_) {
-#line 2971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_on_ok (self);
-#line 2972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 2972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 17950 "EditingTools.c"
- }
-#line 2975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_adjust_tool_parent_class)->on_keypress (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), event);
-#line 2975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 17956 "EditingTools.c"
-}
-
-
-static EditingToolsAdjustToolAdjustToolWindow*
-editing_tools_adjust_tool_adjust_tool_window_construct (GType object_type,
- GtkWindow* container)
-{
- EditingToolsAdjustToolAdjustToolWindow * self = NULL;
- GtkGrid* slider_organizer = NULL;
- GtkGrid* _tmp0_;
- GtkLabel* exposure_label = NULL;
- GtkLabel* _tmp1_;
- GtkScale* _tmp2_;
- GtkScale* _tmp3_;
- GtkScale* _tmp4_;
- GtkScale* _tmp5_;
- GtkLabel* contrast_label = NULL;
- GtkLabel* _tmp6_;
- GtkScale* _tmp7_;
- GtkScale* _tmp8_;
- GtkScale* _tmp9_;
- GtkScale* _tmp10_;
- GtkLabel* saturation_label = NULL;
- GtkLabel* _tmp11_;
- GtkScale* _tmp12_;
- GtkScale* _tmp13_;
- GtkScale* _tmp14_;
- GtkScale* _tmp15_;
- GtkLabel* tint_label = NULL;
- GtkLabel* _tmp16_;
- GtkScale* _tmp17_;
- GtkScale* _tmp18_;
- GtkScale* _tmp19_;
- GtkScale* _tmp20_;
- GtkLabel* temperature_label = NULL;
- GtkLabel* _tmp21_;
- GtkScale* _tmp22_;
- GtkScale* _tmp23_;
- GtkScale* _tmp24_;
- GtkScale* _tmp25_;
- GtkLabel* shadows_label = NULL;
- GtkLabel* _tmp26_;
- GtkScale* _tmp27_;
- GtkScale* _tmp28_;
- GtkScale* _tmp29_;
- GtkScale* _tmp30_;
- GtkLabel* highlights_label = NULL;
- GtkLabel* _tmp31_;
- GtkScale* _tmp32_;
- GtkScale* _tmp33_;
- GtkScale* _tmp34_;
- GtkScale* _tmp35_;
- GtkBox* button_layouter = NULL;
- GtkBox* _tmp36_;
- GtkButton* _tmp37_;
- GtkButton* _tmp38_;
- GtkButton* _tmp39_;
- RGBHistogramManipulator* _tmp40_;
- RGBHistogramManipulator* _tmp41_;
- RGBHistogramManipulator* _tmp42_;
- RGBHistogramManipulator* _tmp43_;
- GtkBox* pane_layouter = NULL;
- GtkBox* _tmp44_;
- RGBHistogramManipulator* _tmp45_;
- RGBHistogramManipulator* _tmp46_;
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (container), NULL);
-#line 2221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsAdjustToolAdjustToolWindow*) editing_tools_editing_tool_window_construct (object_type, container);
-#line 2223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = (GtkGrid*) gtk_grid_new ();
-#line 2223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp0_);
-#line 2223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- slider_organizer = _tmp0_;
-#line 2224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_set_column_homogeneous (slider_organizer, FALSE);
-#line 2225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_set_row_spacing (slider_organizer, (guint) 12);
-#line 2226 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_set_column_spacing (slider_organizer, (guint) 12);
-#line 2227 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (slider_organizer, gtk_widget_get_type (), GtkWidget), 12);
-#line 2228 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (slider_organizer, gtk_widget_get_type (), GtkWidget), 12);
-#line 2230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Exposure:"));
-#line 2230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp1_);
-#line 2230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- exposure_label = _tmp1_;
-#line 2231 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (exposure_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 2232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (exposure_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 2233 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (exposure_label, gtk_widget_get_type (), GtkWidget), 0, 0, 1, 1);
-#line 2234 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->exposure_slider;
-#line 2234 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), 1, 0, 1, 1);
-#line 2235 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = self->exposure_slider;
-#line 2235 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1);
-#line 2236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->exposure_slider;
-#line 2236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_scale_set_value_pos (_tmp4_, GTK_POS_RIGHT);
-#line 2237 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = self->exposure_slider;
-#line 2237 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), 0);
-#line 2239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Contrast:"));
-#line 2239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp6_);
-#line 2239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- contrast_label = _tmp6_;
-#line 2240 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (contrast_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 2241 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (contrast_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 2242 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (contrast_label, gtk_widget_get_type (), GtkWidget), 0, 1, 1, 1);
-#line 2243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->contrast_slider;
-#line 2243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), 1, 1, 1, 1);
-#line 2244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = self->contrast_slider;
-#line 2244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1);
-#line 2245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = self->contrast_slider;
-#line 2245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_scale_set_value_pos (_tmp9_, GTK_POS_RIGHT);
-#line 2246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = self->contrast_slider;
-#line 2246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), 0);
-#line 2248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Saturation:"));
-#line 2248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp11_);
-#line 2248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- saturation_label = _tmp11_;
-#line 2249 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (saturation_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 2250 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (saturation_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 2251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (saturation_label, gtk_widget_get_type (), GtkWidget), 0, 2, 1, 1);
-#line 2252 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = self->saturation_slider;
-#line 2252 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), 1, 2, 1, 1);
-#line 2253 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = self->saturation_slider;
-#line 2253 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1);
-#line 2254 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = self->saturation_slider;
-#line 2254 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_scale_set_value_pos (_tmp14_, GTK_POS_RIGHT);
-#line 2255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp15_ = self->saturation_slider;
-#line 2255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), 0);
-#line 2257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp16_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Tint:"));
-#line 2257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp16_);
-#line 2257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- tint_label = _tmp16_;
-#line 2258 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (tint_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 2259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (tint_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 2260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (tint_label, gtk_widget_get_type (), GtkWidget), 0, 3, 1, 1);
-#line 2261 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp17_ = self->tint_slider;
-#line 2261 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), 1, 3, 1, 1);
-#line 2262 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp18_ = self->tint_slider;
-#line 2262 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1);
-#line 2263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp19_ = self->tint_slider;
-#line 2263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_scale_set_value_pos (_tmp19_, GTK_POS_RIGHT);
-#line 2264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp20_ = self->tint_slider;
-#line 2264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), 0);
-#line 2266 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp21_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Temperature:"));
-#line 2266 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp21_);
-#line 2266 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- temperature_label = _tmp21_;
-#line 2268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (temperature_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 2269 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (temperature_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 2270 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (temperature_label, gtk_widget_get_type (), GtkWidget), 0, 4, 1, 1);
-#line 2271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp22_ = self->temperature_slider;
-#line 2271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), 1, 4, 1, 1);
-#line 2272 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp23_ = self->temperature_slider;
-#line 2272 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1);
-#line 2273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp24_ = self->temperature_slider;
-#line 2273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_scale_set_value_pos (_tmp24_, GTK_POS_RIGHT);
-#line 2274 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp25_ = self->temperature_slider;
-#line 2274 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), 0);
-#line 2276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp26_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Shadows:"));
-#line 2276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp26_);
-#line 2276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- shadows_label = _tmp26_;
-#line 2277 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (shadows_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 2278 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (shadows_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 2279 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (shadows_label, gtk_widget_get_type (), GtkWidget), 0, 5, 1, 1);
-#line 2280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp27_ = self->shadows_slider;
-#line 2280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), 1, 5, 1, 1);
-#line 2281 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp28_ = self->shadows_slider;
-#line 2281 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1);
-#line 2282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp29_ = self->shadows_slider;
-#line 2282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_scale_set_value_pos (_tmp29_, GTK_POS_RIGHT);
-#line 2285 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp30_ = self->shadows_slider;
-#line 2285 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), 5);
-#line 2287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp31_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Highlights:"));
-#line 2287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp31_);
-#line 2287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- highlights_label = _tmp31_;
-#line 2288 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (highlights_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 2289 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (highlights_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 2290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (highlights_label, gtk_widget_get_type (), GtkWidget), 0, 6, 1, 1);
-#line 2291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp32_ = self->highlights_slider;
-#line 2291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget), 1, 6, 1, 1);
-#line 2292 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp33_ = self->highlights_slider;
-#line 2292 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1);
-#line 2293 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp34_ = self->highlights_slider;
-#line 2293 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_scale_set_value_pos (_tmp34_, GTK_POS_RIGHT);
-#line 2294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp35_ = self->highlights_slider;
-#line 2294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), 0);
-#line 2296 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp36_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
-#line 2296 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp36_);
-#line 2296 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- button_layouter = _tmp36_;
-#line 2297 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_box_set_homogeneous (button_layouter, TRUE);
-#line 2298 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp37_ = self->cancel_button;
-#line 2298 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_box_pack_start (button_layouter, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 1);
-#line 2299 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp38_ = self->reset_button;
-#line 2299 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_box_pack_start (button_layouter, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 1);
-#line 2300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp39_ = self->ok_button;
-#line 2300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_box_pack_start (button_layouter, G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 1);
-#line 2302 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp40_ = self->histogram_manipulator;
-#line 2302 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget), 12);
-#line 2303 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp41_ = self->histogram_manipulator;
-#line 2303 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), 12);
-#line 2304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp42_ = self->histogram_manipulator;
-#line 2304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget), 12);
-#line 2305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp43_ = self->histogram_manipulator;
-#line 2305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), 8);
-#line 2307 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp44_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-#line 2307 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp44_);
-#line 2307 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pane_layouter = _tmp44_;
-#line 2308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp45_ = self->histogram_manipulator;
-#line 2308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (pane_layouter, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget));
-#line 2309 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (pane_layouter, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (slider_organizer, gtk_widget_get_type (), GtkWidget));
-#line 2310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (pane_layouter, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (button_layouter, gtk_widget_get_type (), GtkWidget));
-#line 2311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp46_ = self->histogram_manipulator;
-#line 2311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_box_set_child_packing (pane_layouter, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), FALSE, TRUE, (guint) 0, GTK_PACK_START);
-#line 2313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (pane_layouter, gtk_widget_get_type (), GtkWidget));
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (pane_layouter);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (button_layouter);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (highlights_label);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (shadows_label);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (temperature_label);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (tint_label);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (saturation_label);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (contrast_label);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (exposure_label);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (slider_organizer);
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 18316 "EditingTools.c"
-}
-
-
-static EditingToolsAdjustToolAdjustToolWindow*
-editing_tools_adjust_tool_adjust_tool_window_new (GtkWindow* container)
-{
-#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_adjust_tool_adjust_tool_window_construct (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, container);
-#line 18325 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_tool_window_class_init (EditingToolsAdjustToolAdjustToolWindowClass * klass)
-{
-#line 2191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_adjust_tool_window_parent_class = g_type_class_peek_parent (klass);
-#line 2191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_adjust_tool_window_finalize;
-#line 18336 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_tool_window_instance_init (EditingToolsAdjustToolAdjustToolWindow * self)
-{
- GtkScale* _tmp0_;
- GtkScale* _tmp1_;
- GtkScale* _tmp2_;
- GtkScale* _tmp3_;
- GtkScale* _tmp4_;
- GtkScale* _tmp5_;
- GtkScale* _tmp6_;
- GtkButton* _tmp7_;
- GtkButton* _tmp8_;
- GtkButton* _tmp9_;
- RGBHistogramManipulator* _tmp10_;
-#line 2192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) EXPOSURE_TRANSFORMATION_MIN_PARAMETER, (gdouble) EXPOSURE_TRANSFORMATION_MAX_PARAMETER, 1.0);
-#line 2192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp0_);
-#line 2192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->exposure_slider = _tmp0_;
-#line 2195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) CONTRAST_TRANSFORMATION_MIN_PARAMETER, (gdouble) CONTRAST_TRANSFORMATION_MAX_PARAMETER, 1.0);
-#line 2195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp1_);
-#line 2195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->contrast_slider = _tmp1_;
-#line 2198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) SATURATION_TRANSFORMATION_MIN_PARAMETER, (gdouble) SATURATION_TRANSFORMATION_MAX_PARAMETER, 1.0);
-#line 2198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp2_);
-#line 2198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->saturation_slider = _tmp2_;
-#line 2201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) TINT_TRANSFORMATION_MIN_PARAMETER, (gdouble) TINT_TRANSFORMATION_MAX_PARAMETER, 1.0);
-#line 2201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp3_);
-#line 2201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->tint_slider = _tmp3_;
-#line 2203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) TEMPERATURE_TRANSFORMATION_MIN_PARAMETER, (gdouble) TEMPERATURE_TRANSFORMATION_MAX_PARAMETER, 1.0);
-#line 2203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp4_);
-#line 2203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->temperature_slider = _tmp4_;
-#line 2207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) SHADOW_DETAIL_TRANSFORMATION_MIN_PARAMETER, (gdouble) SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER, 1.0);
-#line 2207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp5_);
-#line 2207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->shadows_slider = _tmp5_;
-#line 2211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_PARAMETER, (gdouble) HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_PARAMETER, 1.0);
-#line 2211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp6_);
-#line 2211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->highlights_slider = _tmp6_;
-#line 2215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_OK_LABEL);
-#line 2215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp7_);
-#line 2215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->ok_button = _tmp7_;
-#line 2216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("_Reset"));
-#line 2216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp8_);
-#line 2216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->reset_button = _tmp8_;
-#line 2217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL);
-#line 2217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp9_);
-#line 2217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->cancel_button = _tmp9_;
-#line 2218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = rgb_histogram_manipulator_new ();
-#line 2218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_object_ref_sink (_tmp10_);
-#line 2218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->histogram_manipulator = _tmp10_;
-#line 18420 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_tool_window_finalize (GObject * obj)
-{
- EditingToolsAdjustToolAdjustToolWindow * self;
-#line 2191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, EditingToolsAdjustToolAdjustToolWindow);
-#line 2192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->exposure_slider);
-#line 2195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->contrast_slider);
-#line 2198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->saturation_slider);
-#line 2201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->tint_slider);
-#line 2203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->temperature_slider);
-#line 2207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->shadows_slider);
-#line 2211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->highlights_slider);
-#line 2215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->ok_button);
-#line 2216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->reset_button);
-#line 2217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->cancel_button);
-#line 2218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->histogram_manipulator);
-#line 2191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (editing_tools_adjust_tool_adjust_tool_window_parent_class)->finalize (obj);
-#line 18454 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_adjust_tool_adjust_tool_window_get_type (void)
-{
- static volatile gsize editing_tools_adjust_tool_adjust_tool_window_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_adjust_tool_adjust_tool_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolAdjustToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_adjust_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolAdjustToolWindow), 0, (GInstanceInitFunc) editing_tools_adjust_tool_adjust_tool_window_instance_init, NULL };
- GType editing_tools_adjust_tool_adjust_tool_window_type_id;
- editing_tools_adjust_tool_adjust_tool_window_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, "EditingToolsAdjustToolAdjustToolWindow", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_adjust_tool_adjust_tool_window_type_id__volatile, editing_tools_adjust_tool_adjust_tool_window_type_id);
- }
- return editing_tools_adjust_tool_adjust_tool_window_type_id__volatile;
-}
-
-
-static void
-_editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender,
- gpointer self)
-{
-#line 2329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated ((EditingToolsAdjustToolAdjustToolCommand*) self);
-#line 18478 "EditingTools.c"
-}
-
-
-static EditingToolsAdjustToolAdjustToolCommand*
-editing_tools_adjust_tool_adjust_tool_command_construct (GType object_type,
- EditingToolsAdjustTool* owner,
- const gchar* name,
- const gchar* explanation)
-{
- EditingToolsAdjustToolAdjustToolCommand * self = NULL;
-#line 2320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (owner), NULL);
-#line 2320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 2320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (explanation != NULL, NULL);
-#line 2321 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsAdjustToolAdjustToolCommand*) command_construct (object_type, name, explanation);
-#line 2323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->owner = owner;
-#line 2324 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (owner, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), "deactivated", (GCallback) _editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated_editing_tools_editing_tool_deactivated, self, 0);
-#line 2320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 18503 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated (EditingToolsAdjustToolAdjustToolCommand* self)
-{
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
-#line 2332 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_if_fail (EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_COMMAND (self));
-#line 2335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = app_window_get_command_manager ();
-#line 2335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _tmp0_;
-#line 2335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command_manager_reset (_tmp1_);
-#line 2335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _command_manager_unref0 (_tmp1_);
-#line 18522 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_tool_command_class_init (EditingToolsAdjustToolAdjustToolCommandClass * klass)
-{
-#line 2317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_adjust_tool_command_parent_class = g_type_class_peek_parent (klass);
-#line 2317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_adjust_tool_command_finalize;
-#line 18533 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_tool_command_instance_init (EditingToolsAdjustToolAdjustToolCommand * self)
-{
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_tool_command_finalize (GObject * obj)
-{
- EditingToolsAdjustToolAdjustToolCommand * self;
- EditingToolsAdjustTool* _tmp0_;
-#line 2317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand);
-#line 2328 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->owner;
-#line 2328 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ != NULL) {
-#line 18554 "EditingTools.c"
- EditingToolsAdjustTool* _tmp1_;
- guint _tmp2_;
-#line 2329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->owner;
-#line 2329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_parse_name ("deactivated", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp2_, NULL, FALSE);
-#line 2329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated_editing_tools_editing_tool_deactivated, self);
-#line 18563 "EditingTools.c"
- }
-#line 2317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (editing_tools_adjust_tool_adjust_tool_command_parent_class)->finalize (obj);
-#line 18567 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_adjust_tool_adjust_tool_command_get_type (void)
-{
- static volatile gsize editing_tools_adjust_tool_adjust_tool_command_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_adjust_tool_adjust_tool_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolAdjustToolCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_adjust_tool_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolAdjustToolCommand), 0, (GInstanceInitFunc) editing_tools_adjust_tool_adjust_tool_command_instance_init, NULL };
- GType editing_tools_adjust_tool_adjust_tool_command_type_id;
- editing_tools_adjust_tool_adjust_tool_command_type_id = g_type_register_static (TYPE_COMMAND, "EditingToolsAdjustToolAdjustToolCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&editing_tools_adjust_tool_adjust_tool_command_type_id__volatile, editing_tools_adjust_tool_adjust_tool_command_type_id);
- }
- return editing_tools_adjust_tool_adjust_tool_command_type_id__volatile;
-}
-
-
-static EditingToolsAdjustToolAdjustResetCommand*
-editing_tools_adjust_tool_adjust_reset_command_construct (GType object_type,
- EditingToolsAdjustTool* owner,
- PixelTransformationBundle* current)
-{
- EditingToolsAdjustToolAdjustResetCommand * self = NULL;
- PixelTransformationBundle* _tmp0_;
- PixelTransformationBundle* _tmp1_;
- PixelTransformationBundle* _tmp2_;
-#line 2343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (owner), NULL);
-#line 2343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (current), NULL);
-#line 2344 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsAdjustToolAdjustResetCommand*) editing_tools_adjust_tool_adjust_tool_command_construct (object_type, owner, _ ("Reset Colors"), _ ("Reset all color adjustments to original"));
-#line 2346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = pixel_transformation_bundle_copy (current);
-#line 2346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->original);
-#line 2346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->original = _tmp0_;
-#line 2347 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = pixel_transformation_bundle_new ();
-#line 2347 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->reset);
-#line 2347 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->reset = _tmp1_;
-#line 2348 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->reset;
-#line 2348 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- pixel_transformation_bundle_set_to_identity (_tmp2_);
-#line 2343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 18618 "EditingTools.c"
-}
-
-
-static EditingToolsAdjustToolAdjustResetCommand*
-editing_tools_adjust_tool_adjust_reset_command_new (EditingToolsAdjustTool* owner,
- PixelTransformationBundle* current)
-{
-#line 2343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_adjust_tool_adjust_reset_command_construct (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, owner, current);
-#line 18628 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_reset_command_real_execute (Command* base)
-{
- EditingToolsAdjustToolAdjustResetCommand * self;
- EditingToolsAdjustTool* _tmp0_;
- PixelTransformationBundle* _tmp1_;
-#line 2351 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand);
-#line 2352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->reset;
-#line 2352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_set_adjustments (_tmp0_, _tmp1_);
-#line 18646 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_reset_command_real_undo (Command* base)
-{
- EditingToolsAdjustToolAdjustResetCommand * self;
- EditingToolsAdjustTool* _tmp0_;
- PixelTransformationBundle* _tmp1_;
-#line 2355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand);
-#line 2356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->original;
-#line 2356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_set_adjustments (_tmp0_, _tmp1_);
-#line 18664 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_adjust_tool_adjust_reset_command_real_compress (Command* base,
- Command* command)
-{
- EditingToolsAdjustToolAdjustResetCommand * self;
- gboolean result = FALSE;
- EditingToolsAdjustToolAdjustResetCommand* reset_command = NULL;
- EditingToolsAdjustToolAdjustResetCommand* _tmp0_;
- EditingToolsAdjustToolAdjustResetCommand* _tmp1_;
- EditingToolsAdjustToolAdjustResetCommand* _tmp2_;
- EditingToolsAdjustTool* _tmp3_;
- EditingToolsAdjustTool* _tmp4_;
-#line 2359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand);
-#line 2359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 2360 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND) ? ((EditingToolsAdjustToolAdjustResetCommand*) command) : NULL);
-#line 2360 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- reset_command = _tmp0_;
-#line 2361 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = reset_command;
-#line 2361 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_ == NULL) {
-#line 2362 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 2362 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (reset_command);
-#line 2362 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 18698 "EditingTools.c"
- }
-#line 2364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = reset_command;
-#line 2364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_ != _tmp4_) {
-#line 2365 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 2365 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (reset_command);
-#line 2365 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 18714 "EditingTools.c"
- }
-#line 2368 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 2368 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (reset_command);
-#line 2368 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 18722 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_reset_command_class_init (EditingToolsAdjustToolAdjustResetCommandClass * klass)
-{
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_adjust_reset_command_parent_class = g_type_class_peek_parent (klass);
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsAdjustToolAdjustResetCommandPrivate));
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) editing_tools_adjust_tool_adjust_reset_command_real_execute;
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) editing_tools_adjust_tool_adjust_reset_command_real_undo;
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) editing_tools_adjust_tool_adjust_reset_command_real_compress;
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_adjust_reset_command_finalize;
-#line 18741 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_reset_command_instance_init (EditingToolsAdjustToolAdjustResetCommand * self)
-{
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_GET_PRIVATE (self);
-#line 18750 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_reset_command_finalize (GObject * obj)
-{
- EditingToolsAdjustToolAdjustResetCommand * self;
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand);
-#line 2340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->original);
-#line 2341 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->reset);
-#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (editing_tools_adjust_tool_adjust_reset_command_parent_class)->finalize (obj);
-#line 18766 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_adjust_tool_adjust_reset_command_get_type (void)
-{
- static volatile gsize editing_tools_adjust_tool_adjust_reset_command_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_adjust_tool_adjust_reset_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolAdjustResetCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_adjust_reset_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolAdjustResetCommand), 0, (GInstanceInitFunc) editing_tools_adjust_tool_adjust_reset_command_instance_init, NULL };
- GType editing_tools_adjust_tool_adjust_reset_command_type_id;
- editing_tools_adjust_tool_adjust_reset_command_type_id = g_type_register_static (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, "EditingToolsAdjustToolAdjustResetCommand", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_adjust_tool_adjust_reset_command_type_id__volatile, editing_tools_adjust_tool_adjust_reset_command_type_id);
- }
- return editing_tools_adjust_tool_adjust_reset_command_type_id__volatile;
-}
-
-
-static EditingToolsAdjustToolSliderAdjustmentCommand*
-editing_tools_adjust_tool_slider_adjustment_command_construct (GType object_type,
- EditingToolsAdjustTool* owner,
- PixelTransformation* old_transformation,
- PixelTransformation* new_transformation,
- const gchar* name)
-{
- EditingToolsAdjustToolSliderAdjustmentCommand * self = NULL;
- PixelTransformation* _tmp0_;
- PixelTransformation* _tmp1_;
- PixelTransformationType _tmp2_;
-#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (owner), NULL);
-#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PIXEL_TRANSFORMATION (old_transformation), NULL);
-#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PIXEL_TRANSFORMATION (new_transformation), NULL);
-#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 2379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsAdjustToolSliderAdjustmentCommand*) editing_tools_adjust_tool_adjust_tool_command_construct (object_type, owner, name, name);
-#line 2381 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _pixel_transformation_ref0 (old_transformation);
-#line 2381 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (self->priv->old_transformation);
-#line 2381 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->old_transformation = _tmp0_;
-#line 2382 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = _pixel_transformation_ref0 (new_transformation);
-#line 2382 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (self->priv->new_transformation);
-#line 2382 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->new_transformation = _tmp1_;
-#line 2383 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->transformation_type = pixel_transformation_get_transformation_type (old_transformation);
-#line 2384 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = self->priv->transformation_type;
-#line 2384 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _vala_assert (pixel_transformation_get_transformation_type (new_transformation) == _tmp2_, "new_transformation.get_transformation_type() == transformation_type");
-#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 18825 "EditingTools.c"
-}
-
-
-static EditingToolsAdjustToolSliderAdjustmentCommand*
-editing_tools_adjust_tool_slider_adjustment_command_new (EditingToolsAdjustTool* owner,
- PixelTransformation* old_transformation,
- PixelTransformation* new_transformation,
- const gchar* name)
-{
-#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_adjust_tool_slider_adjustment_command_construct (EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, owner, old_transformation, new_transformation, name);
-#line 18837 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_slider_adjustment_command_real_execute (Command* base)
-{
- EditingToolsAdjustToolSliderAdjustmentCommand * self;
- EditingToolsAdjustTool* _tmp0_;
- PixelTransformation* _tmp1_;
- EditingToolsAdjustTool* _tmp2_;
- EditingToolsPhotoCanvas* _tmp3_;
-#line 2387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand);
-#line 2389 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2389 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->new_transformation;
-#line 2389 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_update_transformation (_tmp0_, _tmp1_);
-#line 2390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp3_);
-#line 18863 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_slider_adjustment_command_real_undo (Command* base)
-{
- EditingToolsAdjustToolSliderAdjustmentCommand * self;
- EditingToolsAdjustTool* _tmp0_;
- PixelTransformation* _tmp1_;
- EditingToolsAdjustTool* _tmp2_;
- EditingToolsAdjustTool* _tmp3_;
- PixelTransformation* _tmp4_;
- EditingToolsAdjustTool* _tmp5_;
- EditingToolsAdjustTool* _tmp6_;
- EditingToolsPhotoCanvas* _tmp7_;
-#line 2393 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand);
-#line 2394 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2394 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->old_transformation;
-#line 2394 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_update_transformation (_tmp0_, _tmp1_);
-#line 2396 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2396 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_unbind_window_handlers (_tmp2_);
-#line 2397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->old_transformation;
-#line 2397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_update_slider (_tmp3_, _tmp4_);
-#line 2398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_bind_window_handlers (_tmp5_);
-#line 2400 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2400 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2400 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp7_);
-#line 18907 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_slider_adjustment_command_real_redo (Command* base)
-{
- EditingToolsAdjustToolSliderAdjustmentCommand * self;
- EditingToolsAdjustTool* _tmp0_;
- PixelTransformation* _tmp1_;
- EditingToolsAdjustTool* _tmp2_;
- EditingToolsAdjustTool* _tmp3_;
- PixelTransformation* _tmp4_;
- EditingToolsAdjustTool* _tmp5_;
- EditingToolsAdjustTool* _tmp6_;
- EditingToolsPhotoCanvas* _tmp7_;
-#line 2403 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand);
-#line 2404 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2404 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->new_transformation;
-#line 2404 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_update_transformation (_tmp0_, _tmp1_);
-#line 2406 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2406 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_unbind_window_handlers (_tmp2_);
-#line 2407 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2407 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->new_transformation;
-#line 2407 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_update_slider (_tmp3_, _tmp4_);
-#line 2408 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2408 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_bind_window_handlers (_tmp5_);
-#line 2410 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2410 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2410 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_photo_canvas_repaint (_tmp7_);
-#line 18951 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_adjust_tool_slider_adjustment_command_real_compress (Command* base,
- Command* command)
-{
- EditingToolsAdjustToolSliderAdjustmentCommand * self;
- gboolean result = FALSE;
- EditingToolsAdjustToolSliderAdjustmentCommand* slider_adjustment = NULL;
- EditingToolsAdjustToolSliderAdjustmentCommand* _tmp0_;
- EditingToolsAdjustToolSliderAdjustmentCommand* _tmp1_;
- EditingToolsAdjustToolSliderAdjustmentCommand* _tmp2_;
- EditingToolsAdjustTool* _tmp3_;
- EditingToolsAdjustTool* _tmp4_;
- EditingToolsAdjustToolSliderAdjustmentCommand* _tmp5_;
- PixelTransformationType _tmp6_;
- PixelTransformationType _tmp7_;
- EditingToolsAdjustToolSliderAdjustmentCommand* _tmp8_;
- EditingToolsAdjustToolSliderAdjustmentCommand* _tmp9_;
- PixelTransformation* _tmp10_;
- PixelTransformation* _tmp11_;
-#line 2413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand);
-#line 2413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 2414 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND) ? ((EditingToolsAdjustToolSliderAdjustmentCommand*) command) : NULL);
-#line 2414 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- slider_adjustment = _tmp0_;
-#line 2415 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = slider_adjustment;
-#line 2415 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_ == NULL) {
-#line 2416 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 2416 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (slider_adjustment);
-#line 2416 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 18992 "EditingTools.c"
- }
-#line 2419 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = slider_adjustment;
-#line 2419 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2419 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2419 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp3_ != _tmp4_) {
-#line 2420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 2420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (slider_adjustment);
-#line 2420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 19008 "EditingTools.c"
- }
-#line 2423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = slider_adjustment;
-#line 2423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = _tmp5_->priv->transformation_type;
-#line 2423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = self->priv->transformation_type;
-#line 2423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp6_ != _tmp7_) {
-#line 2424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 2424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (slider_adjustment);
-#line 2424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 19024 "EditingTools.c"
- }
-#line 2427 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = slider_adjustment;
-#line 2427 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_COMMAND, Command));
-#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = slider_adjustment;
-#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _tmp9_->priv->new_transformation;
-#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = _pixel_transformation_ref0 (_tmp10_);
-#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (self->priv->new_transformation);
-#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->new_transformation = _tmp11_;
-#line 2432 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 2432 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (slider_adjustment);
-#line 2432 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 19046 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_slider_adjustment_command_class_init (EditingToolsAdjustToolSliderAdjustmentCommandClass * klass)
-{
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_slider_adjustment_command_parent_class = g_type_class_peek_parent (klass);
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsAdjustToolSliderAdjustmentCommandPrivate));
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) editing_tools_adjust_tool_slider_adjustment_command_real_execute;
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) editing_tools_adjust_tool_slider_adjustment_command_real_undo;
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->redo = (void (*) (Command *)) editing_tools_adjust_tool_slider_adjustment_command_real_redo;
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) editing_tools_adjust_tool_slider_adjustment_command_real_compress;
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_slider_adjustment_command_finalize;
-#line 19067 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_slider_adjustment_command_instance_init (EditingToolsAdjustToolSliderAdjustmentCommand * self)
-{
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_GET_PRIVATE (self);
-#line 19076 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_slider_adjustment_command_finalize (GObject * obj)
-{
- EditingToolsAdjustToolSliderAdjustmentCommand * self;
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand);
-#line 2374 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (self->priv->new_transformation);
-#line 2375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_unref0 (self->priv->old_transformation);
-#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (editing_tools_adjust_tool_slider_adjustment_command_parent_class)->finalize (obj);
-#line 19092 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_adjust_tool_slider_adjustment_command_get_type (void)
-{
- static volatile gsize editing_tools_adjust_tool_slider_adjustment_command_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_adjust_tool_slider_adjustment_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolSliderAdjustmentCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_slider_adjustment_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolSliderAdjustmentCommand), 0, (GInstanceInitFunc) editing_tools_adjust_tool_slider_adjustment_command_instance_init, NULL };
- GType editing_tools_adjust_tool_slider_adjustment_command_type_id;
- editing_tools_adjust_tool_slider_adjustment_command_type_id = g_type_register_static (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, "EditingToolsAdjustToolSliderAdjustmentCommand", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_adjust_tool_slider_adjustment_command_type_id__volatile, editing_tools_adjust_tool_slider_adjustment_command_type_id);
- }
- return editing_tools_adjust_tool_slider_adjustment_command_type_id__volatile;
-}
-
-
-static EditingToolsAdjustToolAdjustEnhanceCommand*
-editing_tools_adjust_tool_adjust_enhance_command_construct (GType object_type,
- EditingToolsAdjustTool* owner,
- Photo* photo)
-{
- EditingToolsAdjustToolAdjustEnhanceCommand * self = NULL;
- Photo* _tmp0_;
- PixelTransformationBundle* _tmp1_;
-#line 2441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (owner), NULL);
-#line 2441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_PHOTO (photo), NULL);
-#line 2442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = (EditingToolsAdjustToolAdjustEnhanceCommand*) editing_tools_adjust_tool_adjust_tool_command_construct (object_type, owner, RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP);
-#line 2444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _g_object_ref0 (photo);
-#line 2444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->photo);
-#line 2444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->photo = _tmp0_;
-#line 2445 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = photo_get_color_adjustments (photo);
-#line 2445 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->original);
-#line 2445 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->original = _tmp1_;
-#line 2441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return self;
-#line 19138 "EditingTools.c"
-}
-
-
-static EditingToolsAdjustToolAdjustEnhanceCommand*
-editing_tools_adjust_tool_adjust_enhance_command_new (EditingToolsAdjustTool* owner,
- Photo* photo)
-{
-#line 2441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return editing_tools_adjust_tool_adjust_enhance_command_construct (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, owner, photo);
-#line 19148 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_enhance_command_real_execute (Command* base)
-{
- EditingToolsAdjustToolAdjustEnhanceCommand * self;
- PixelTransformationBundle* _tmp0_;
- EditingToolsAdjustTool* _tmp3_;
- PixelTransformationBundle* _tmp4_;
-#line 2448 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand);
-#line 2449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = self->priv->enhanced;
-#line 2449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp0_ == NULL) {
-#line 19165 "EditingTools.c"
- Photo* _tmp1_;
- PixelTransformationBundle* _tmp2_;
-#line 2450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->photo;
-#line 2450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = photo_get_enhance_transformations (_tmp1_);
-#line 2450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->enhanced);
-#line 2450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->enhanced = _tmp2_;
-#line 19176 "EditingTools.c"
- }
-#line 2452 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2452 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = self->priv->enhanced;
-#line 2452 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_set_adjustments (_tmp3_, _tmp4_);
-#line 19184 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_enhance_command_real_undo (Command* base)
-{
- EditingToolsAdjustToolAdjustEnhanceCommand * self;
- EditingToolsAdjustTool* _tmp0_;
- PixelTransformationBundle* _tmp1_;
-#line 2455 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand);
-#line 2456 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2456 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = self->priv->original;
-#line 2456 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_set_adjustments (_tmp0_, _tmp1_);
-#line 19202 "EditingTools.c"
-}
-
-
-static gboolean
-editing_tools_adjust_tool_adjust_enhance_command_real_compress (Command* base,
- Command* command)
-{
- EditingToolsAdjustToolAdjustEnhanceCommand * self;
- gboolean result = FALSE;
- EnhanceSingleCommand* enhance_single = NULL;
- EnhanceSingleCommand* _tmp0_;
- EnhanceSingleCommand* _tmp1_;
- EditingToolsAdjustToolAdjustEnhanceCommand* enhance_command = NULL;
- EditingToolsAdjustToolAdjustEnhanceCommand* _tmp10_;
- EditingToolsAdjustToolAdjustEnhanceCommand* _tmp11_;
- EditingToolsAdjustToolAdjustEnhanceCommand* _tmp12_;
- EditingToolsAdjustTool* _tmp13_;
- EditingToolsAdjustTool* _tmp14_;
-#line 2459 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand);
-#line 2459 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_return_val_if_fail (IS_COMMAND (command), FALSE);
-#line 2461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_ENHANCE_SINGLE_COMMAND) ? ((EnhanceSingleCommand*) command) : NULL);
-#line 2461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- enhance_single = _tmp0_;
-#line 2462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp1_ = enhance_single;
-#line 2462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp1_ != NULL) {
-#line 19233 "EditingTools.c"
- Photo* photo = NULL;
- EnhanceSingleCommand* _tmp2_;
- DataSource* _tmp3_;
- Photo* _tmp4_;
- EditingToolsAdjustTool* _tmp5_;
- EditingToolsPhotoCanvas* _tmp6_;
- Photo* _tmp7_;
- Photo* _tmp8_;
- gboolean _tmp9_;
-#line 2463 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp2_ = enhance_single;
-#line 2463 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp3_ = single_data_source_command_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand));
-#line 2463 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO, Photo);
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp4_ = photo;
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp7_ = editing_tools_photo_canvas_get_photo (_tmp6_);
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp8_ = _tmp7_;
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp9_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_SOURCE, DataSource));
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (_tmp8_);
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = _tmp9_;
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (photo);
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (enhance_single);
-#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 19271 "EditingTools.c"
- }
-#line 2470 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND) ? ((EditingToolsAdjustToolAdjustEnhanceCommand*) command) : NULL);
-#line 2470 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- enhance_command = _tmp10_;
-#line 2471 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp11_ = enhance_command;
-#line 2471 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp11_ == NULL) {
-#line 2472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 2472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (enhance_command);
-#line 2472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (enhance_single);
-#line 2472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 19289 "EditingTools.c"
- }
-#line 2474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp12_ = enhance_command;
-#line 2474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner;
-#line 2474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- if (_tmp13_ != _tmp14_) {
-#line 2475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = FALSE;
-#line 2475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (enhance_command);
-#line 2475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (enhance_single);
-#line 2475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 19307 "EditingTools.c"
- }
-#line 2478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- result = TRUE;
-#line 2478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (enhance_command);
-#line 2478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (enhance_single);
-#line 2478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- return result;
-#line 19317 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_enhance_command_class_init (EditingToolsAdjustToolAdjustEnhanceCommandClass * klass)
-{
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_adjust_enhance_command_parent_class = g_type_class_peek_parent (klass);
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsAdjustToolAdjustEnhanceCommandPrivate));
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->execute = (void (*) (Command *)) editing_tools_adjust_tool_adjust_enhance_command_real_execute;
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->undo = (void (*) (Command *)) editing_tools_adjust_tool_adjust_enhance_command_real_undo;
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) editing_tools_adjust_tool_adjust_enhance_command_real_compress;
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_adjust_enhance_command_finalize;
-#line 19336 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_enhance_command_instance_init (EditingToolsAdjustToolAdjustEnhanceCommand * self)
-{
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_GET_PRIVATE (self);
-#line 2439 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->enhanced = NULL;
-#line 19347 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_adjust_enhance_command_finalize (GObject * obj)
-{
- EditingToolsAdjustToolAdjustEnhanceCommand * self;
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand);
-#line 2437 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->photo);
-#line 2438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->original);
-#line 2439 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->enhanced);
-#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- G_OBJECT_CLASS (editing_tools_adjust_tool_adjust_enhance_command_parent_class)->finalize (obj);
-#line 19365 "EditingTools.c"
-}
-
-
-static GType
-editing_tools_adjust_tool_adjust_enhance_command_get_type (void)
-{
- static volatile gsize editing_tools_adjust_tool_adjust_enhance_command_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_adjust_tool_adjust_enhance_command_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolAdjustEnhanceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_adjust_enhance_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolAdjustEnhanceCommand), 0, (GInstanceInitFunc) editing_tools_adjust_tool_adjust_enhance_command_instance_init, NULL };
- GType editing_tools_adjust_tool_adjust_enhance_command_type_id;
- editing_tools_adjust_tool_adjust_enhance_command_type_id = g_type_register_static (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, "EditingToolsAdjustToolAdjustEnhanceCommand", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_adjust_tool_adjust_enhance_command_type_id__volatile, editing_tools_adjust_tool_adjust_enhance_command_type_id);
- }
- return editing_tools_adjust_tool_adjust_enhance_command_type_id__volatile;
-}
-
-
-static void
-editing_tools_adjust_tool_class_init (EditingToolsAdjustToolClass * klass)
-{
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- editing_tools_adjust_tool_parent_class = g_type_class_peek_parent (klass);
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_adjust_tool_finalize;
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsAdjustToolPrivate));
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_adjust_tool_real_activate;
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_adjust_tool_real_get_tool_window;
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_adjust_tool_real_deactivate;
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_adjust_tool_real_paint;
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->get_display_pixbuf = (GdkPixbuf* (*) (EditingToolsEditingTool *, Scaling*, Photo*, Dimensions*, GError**)) editing_tools_adjust_tool_real_get_display_pixbuf;
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_adjust_tool_real_on_keypress;
-#line 19404 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_instance_init (EditingToolsAdjustTool * self)
-{
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv = EDITING_TOOLS_ADJUST_TOOL_GET_PRIVATE (self);
-#line 2482 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->adjust_tool_window = NULL;
-#line 2483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->suppress_effect_redraw = FALSE;
-#line 2484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->draw_to_pixbuf = NULL;
-#line 2485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->histogram_pixbuf = NULL;
-#line 2486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->virgin_histogram_pixbuf = NULL;
-#line 2487 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->transformer = NULL;
-#line 2488 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->histogram_transformer = NULL;
-#line 2489 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->transformations = NULL;
-#line 2490 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache = NULL;
-#line 2490 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache_length1 = 0;
-#line 2490 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->_fp_pixel_cache_size_ = self->priv->fp_pixel_cache_length1;
-#line 2491 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->disable_histogram_refresh = FALSE;
-#line 2492 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->temperature_scheduler = NULL;
-#line 2493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->tint_scheduler = NULL;
-#line 2494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->contrast_scheduler = NULL;
-#line 2495 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->saturation_scheduler = NULL;
-#line 2496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->exposure_scheduler = NULL;
-#line 2497 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->shadows_scheduler = NULL;
-#line 2498 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->highlights_scheduler = NULL;
-#line 19451 "EditingTools.c"
-}
-
-
-static void
-editing_tools_adjust_tool_finalize (EditingToolsEditingTool * obj)
-{
- EditingToolsAdjustTool * self;
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool);
-#line 2482 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->adjust_tool_window);
-#line 2484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->draw_to_pixbuf);
-#line 2485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->histogram_pixbuf);
-#line 2486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _g_object_unref0 (self->priv->virgin_histogram_pixbuf);
-#line 2487 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformer_unref0 (self->priv->transformer);
-#line 2488 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformer_unref0 (self->priv->histogram_transformer);
-#line 2489 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _pixel_transformation_bundle_unref0 (self->priv->transformations);
-#line 2490 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- self->priv->fp_pixel_cache = (g_free (self->priv->fp_pixel_cache), NULL);
-#line 2492 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->temperature_scheduler);
-#line 2493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->tint_scheduler);
-#line 2494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->contrast_scheduler);
-#line 2495 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->saturation_scheduler);
-#line 2496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->exposure_scheduler);
-#line 2497 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->shadows_scheduler);
-#line 2498 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- _one_shot_scheduler_unref0 (self->priv->highlights_scheduler);
-#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_adjust_tool_parent_class)->finalize (obj);
-#line 19493 "EditingTools.c"
-}
-
-
-GType
-editing_tools_adjust_tool_get_type (void)
-{
- static volatile gsize editing_tools_adjust_tool_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_adjust_tool_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustTool), 0, (GInstanceInitFunc) editing_tools_adjust_tool_instance_init, NULL };
- GType editing_tools_adjust_tool_type_id;
- editing_tools_adjust_tool_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL, "EditingToolsAdjustTool", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_adjust_tool_type_id__volatile, editing_tools_adjust_tool_type_id);
- }
- return editing_tools_adjust_tool_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/editing_tools/EditingTools.vala b/src/editing_tools/EditingTools.vala
index ee08f84..f92b4a2 100644
--- a/src/editing_tools/EditingTools.vala
+++ b/src/editing_tools/EditingTools.vala
@@ -654,7 +654,7 @@ public class CropTool : EditingTool {
constraint_combo.set_row_separator_func(constraint_combo_separator_func);
constraint_combo.set_active(0);
- var image = new Gtk.Image.from_icon_name("crop-pivot-reticle", Gtk.IconSize.LARGE_TOOLBAR);
+ var image = new Gtk.Image.from_icon_name("crop-pivot-reticle-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
pivot_reticle_button.set_image (image);
pivot_reticle_button.set_tooltip_text(_("Pivot the crop rectangle between portrait and landscape orientations"));
@@ -786,9 +786,9 @@ public class CropTool : EditingTool {
result.basis_width = canvas.get_scaled_pixbuf_position().width;
result.basis_height = canvas.get_scaled_pixbuf_position().height;
} else if (result.aspect_ratio == SCREEN_ASPECT_RATIO) {
- Gdk.Screen screen = Gdk.Screen.get_default();
- result.basis_width = screen.get_width();
- result.basis_height = screen.get_height();
+ var dim = Scaling.get_screen_dimensions(AppWindow.get_instance());
+ result.basis_width = dim.width;
+ result.basis_height = dim.height;
}
return result;
@@ -890,14 +890,14 @@ public class CropTool : EditingTool {
}
private float get_constraint_aspect_ratio() {
- float result = get_selected_constraint().aspect_ratio;
+ var result = get_selected_constraint().aspect_ratio;
if (result == ORIGINAL_ASPECT_RATIO) {
result = ((float) canvas.get_scaled_pixbuf_position().width) /
((float) canvas.get_scaled_pixbuf_position().height);
} else if (result == SCREEN_ASPECT_RATIO) {
- Gdk.Screen screen = Gdk.Screen.get_default();
- result = ((float) screen.get_width()) / ((float) screen.get_height());
+ var dim = Scaling.get_screen_dimensions(AppWindow.get_instance());
+ result = ((float) dim.width) / ((float) dim.height);
} else if (result == CUSTOM_ASPECT_RATIO) {
result = custom_aspect_ratio;
}
@@ -914,8 +914,8 @@ public class CropTool : EditingTool {
Dimensions orig_dim = photo.get_original_dimensions();
result = ((float) orig_dim.width) / ((float) orig_dim.height);
} else if (result == SCREEN_ASPECT_RATIO) {
- Gdk.Screen screen = Gdk.Screen.get_default();
- result = ((float) screen.get_width()) / ((float) screen.get_height());
+ var dim = Scaling.get_screen_dimensions(AppWindow.get_instance());
+ result = ((float) dim.width) / ((float) dim.height);
} else if (result == CUSTOM_ASPECT_RATIO) {
result = custom_aspect_ratio;
}
@@ -2251,7 +2251,7 @@ public class AdjustTool : EditingTool {
slider_organizer.attach(saturation_label, 0, 2, 1, 1);
slider_organizer.attach(saturation_slider, 1, 2, 1, 1);
saturation_slider.set_size_request(SLIDER_WIDTH, -1);
- saturation_slider.set_value_pos(Gtk.PositionType.RIGHT);
+ saturation_slider.set_draw_value(false);
saturation_slider.set_margin_end(0);
Gtk.Label tint_label = new Gtk.Label.with_mnemonic(_("Tint:"));
diff --git a/src/editing_tools/RGBHistogramManipulator.c b/src/editing_tools/RGBHistogramManipulator.c
deleted file mode 100644
index bb9a9b0..0000000
--- a/src/editing_tools/RGBHistogramManipulator.c
+++ /dev/null
@@ -1,1484 +0,0 @@
-/* RGBHistogramManipulator.c generated by valac 0.40.4, the Vala compiler
- * generated from RGBHistogramManipulator.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include "shotwell-graphics-processor.h"
-#include <gdk/gdk.h>
-#include <cairo.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_RGB_HISTOGRAM_MANIPULATOR (rgb_histogram_manipulator_get_type ())
-#define RGB_HISTOGRAM_MANIPULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator))
-#define RGB_HISTOGRAM_MANIPULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorClass))
-#define IS_RGB_HISTOGRAM_MANIPULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR))
-#define IS_RGB_HISTOGRAM_MANIPULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_HISTOGRAM_MANIPULATOR))
-#define RGB_HISTOGRAM_MANIPULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorClass))
-
-typedef struct _RGBHistogramManipulator RGBHistogramManipulator;
-typedef struct _RGBHistogramManipulatorClass RGBHistogramManipulatorClass;
-typedef struct _RGBHistogramManipulatorPrivate RGBHistogramManipulatorPrivate;
-enum {
- RGB_HISTOGRAM_MANIPULATOR_0_PROPERTY,
- RGB_HISTOGRAM_MANIPULATOR_NUM_PROPERTIES
-};
-static GParamSpec* rgb_histogram_manipulator_properties[RGB_HISTOGRAM_MANIPULATOR_NUM_PROPERTIES];
-
-#define RGB_HISTOGRAM_MANIPULATOR_TYPE_LOCATION_CODE (rgb_histogram_manipulator_location_code_get_type ())
-#define _rgb_histogram_unref0(var) ((var == NULL) ? NULL : (var = (rgb_histogram_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-enum {
- RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL,
- RGB_HISTOGRAM_MANIPULATOR_NUM_SIGNALS
-};
-static guint rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _RGBHistogramManipulator {
- GtkDrawingArea parent_instance;
- RGBHistogramManipulatorPrivate * priv;
-};
-
-struct _RGBHistogramManipulatorClass {
- GtkDrawingAreaClass parent_class;
-};
-
-struct _RGBHistogramManipulatorPrivate {
- gint left_nub_max;
- gint right_nub_min;
- RGBHistogram* histogram;
- gint left_nub_position;
- gint right_nub_position;
- gboolean is_left_nub_tracking;
- gboolean is_right_nub_tracking;
- gint track_start_x;
- gint track_nub_start_position;
- gint offset;
-};
-
-typedef enum {
- RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB,
- RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB,
- RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH,
- RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH,
- RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA
-} RGBHistogramManipulatorLocationCode;
-
-
-static gpointer rgb_histogram_manipulator_parent_class = NULL;
-static GtkWidgetPath* rgb_histogram_manipulator_slider_draw_path;
-static GtkWidgetPath* rgb_histogram_manipulator_slider_draw_path = NULL;
-static GtkWidgetPath* rgb_histogram_manipulator_frame_draw_path;
-static GtkWidgetPath* rgb_histogram_manipulator_frame_draw_path = NULL;
-static gboolean rgb_histogram_manipulator_paths_setup;
-static gboolean rgb_histogram_manipulator_paths_setup = FALSE;
-
-GType rgb_histogram_manipulator_get_type (void) G_GNUC_CONST;
-#define RGB_HISTOGRAM_MANIPULATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorPrivate))
-static GType rgb_histogram_manipulator_location_code_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE 13
-#define RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH (RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE / 2)
-#define RGB_HISTOGRAM_MANIPULATOR_NUB_V_NUDGE 4
-#define RGB_HISTOGRAM_MANIPULATOR_TROUGH_WIDTH (256 + (2 * RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH))
-#define RGB_HISTOGRAM_MANIPULATOR_TROUGH_HEIGHT 4
-#define RGB_HISTOGRAM_MANIPULATOR_TROUGH_BOTTOM_OFFSET 1
-#define RGB_HISTOGRAM_MANIPULATOR_CONTROL_WIDTH (RGB_HISTOGRAM_MANIPULATOR_TROUGH_WIDTH + 2)
-#define RGB_HISTOGRAM_MANIPULATOR_CONTROL_HEIGHT 118
-#define RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION (((((RGB_HISTOGRAM_MANIPULATOR_CONTROL_HEIGHT - RGB_HISTOGRAM_MANIPULATOR_TROUGH_HEIGHT) - RGB_HISTOGRAM_MANIPULATOR_TROUGH_BOTTOM_OFFSET) - ((RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE - RGB_HISTOGRAM_MANIPULATOR_TROUGH_HEIGHT) / 2)) - RGB_HISTOGRAM_MANIPULATOR_NUB_V_NUDGE) - 2)
-RGBHistogramManipulator* rgb_histogram_manipulator_new (void);
-RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type);
-static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulator* self,
- GdkEventButton* event_record);
-static gboolean _rgb_histogram_manipulator_on_button_press_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-static gboolean rgb_histogram_manipulator_on_button_release (RGBHistogramManipulator* self,
- GdkEventButton* event_record);
-static gboolean _rgb_histogram_manipulator_on_button_release_gtk_widget_button_release_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
-static gboolean rgb_histogram_manipulator_on_button_motion (RGBHistogramManipulator* self,
- GdkEventMotion* event_record);
-static gboolean _rgb_histogram_manipulator_on_button_motion_gtk_widget_motion_notify_event (GtkWidget* _sender,
- GdkEventMotion* event,
- gpointer self);
-static void rgb_histogram_manipulator_on_size_allocate (RGBHistogramManipulator* self,
- GtkAllocation* region);
-static void _rgb_histogram_manipulator_on_size_allocate_gtk_widget_size_allocate (GtkWidget* _sender,
- GtkAllocation* allocation,
- gpointer self);
-static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_point (RGBHistogramManipulator* self,
- gint x,
- gint y);
-static void rgb_histogram_manipulator_force_update (RGBHistogramManipulator* self);
-static void rgb_histogram_manipulator_update_nub_extrema (RGBHistogramManipulator* self);
-static gboolean rgb_histogram_manipulator_real_focus_out_event (GtkWidget* base,
- GdkEventFocus* event);
-static gboolean rgb_histogram_manipulator_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-static gboolean rgb_histogram_manipulator_real_draw (GtkWidget* base,
- cairo_t* ctx);
-static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* self,
- cairo_t* ctx,
- GdkRectangle* area);
-static void rgb_histogram_manipulator_draw_nub (RGBHistogramManipulator* self,
- cairo_t* ctx,
- GdkRectangle* area,
- gint position);
-void rgb_histogram_manipulator_update_histogram (RGBHistogramManipulator* self,
- GdkPixbuf* source_pixbuf);
-gint rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* self);
-gint rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator* self);
-void rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* self,
- gint user_nub_pos);
-void rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator* self,
- gint user_nub_pos);
-static void rgb_histogram_manipulator_finalize (GObject * obj);
-
-
-static GType
-rgb_histogram_manipulator_location_code_get_type (void)
-{
- static volatile gsize rgb_histogram_manipulator_location_code_type_id__volatile = 0;
- if (g_once_init_enter (&rgb_histogram_manipulator_location_code_type_id__volatile)) {
- static const GEnumValue values[] = {{RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB", "left-nub"}, {RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB", "right-nub"}, {RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH", "left-trough"}, {RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH", "right-trough"}, {RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA", "insensitive-area"}, {0, NULL, NULL}};
- GType rgb_histogram_manipulator_location_code_type_id;
- rgb_histogram_manipulator_location_code_type_id = g_enum_register_static ("RGBHistogramManipulatorLocationCode", values);
- g_once_init_leave (&rgb_histogram_manipulator_location_code_type_id__volatile, rgb_histogram_manipulator_location_code_type_id);
- }
- return rgb_histogram_manipulator_location_code_type_id__volatile;
-}
-
-
-static gboolean
-_rgb_histogram_manipulator_on_button_press_gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- result = rgb_histogram_manipulator_on_button_press ((RGBHistogramManipulator*) self, event);
-#line 57 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 178 "RGBHistogramManipulator.c"
-}
-
-
-static gboolean
-_rgb_histogram_manipulator_on_button_release_gtk_widget_button_release_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
-{
- gboolean result;
- result = rgb_histogram_manipulator_on_button_release ((RGBHistogramManipulator*) self, event);
-#line 58 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 191 "RGBHistogramManipulator.c"
-}
-
-
-static gboolean
-_rgb_histogram_manipulator_on_button_motion_gtk_widget_motion_notify_event (GtkWidget* _sender,
- GdkEventMotion* event,
- gpointer self)
-{
- gboolean result;
- result = rgb_histogram_manipulator_on_button_motion ((RGBHistogramManipulator*) self, event);
-#line 59 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 204 "RGBHistogramManipulator.c"
-}
-
-
-static void
-_rgb_histogram_manipulator_on_size_allocate_gtk_widget_size_allocate (GtkWidget* _sender,
- GtkAllocation* allocation,
- gpointer self)
-{
-#line 61 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_on_size_allocate ((RGBHistogramManipulator*) self, allocation);
-#line 215 "RGBHistogramManipulator.c"
-}
-
-
-RGBHistogramManipulator*
-rgb_histogram_manipulator_construct (GType object_type)
-{
- RGBHistogramManipulator * self = NULL;
- gboolean _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self = (RGBHistogramManipulator*) g_object_new (object_type, NULL);
-#line 37 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), RGB_HISTOGRAM_MANIPULATOR_CONTROL_WIDTH, RGB_HISTOGRAM_MANIPULATOR_CONTROL_HEIGHT);
-#line 38 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 40 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = rgb_histogram_manipulator_paths_setup;
-#line 40 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (!_tmp0_) {
-#line 234 "RGBHistogramManipulator.c"
- GtkWidgetPath* _tmp1_;
- GtkWidgetPath* _tmp2_;
- GtkWidgetPath* _tmp3_;
- GtkWidgetPath* _tmp4_;
- GtkWidgetPath* _tmp5_;
-#line 41 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = rgb_histogram_manipulator_slider_draw_path;
-#line 41 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_path_append_type (_tmp1_, gtk_scale_get_type ());
-#line 42 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = rgb_histogram_manipulator_slider_draw_path;
-#line 42 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_path_iter_add_class (_tmp2_, 0, "scale");
-#line 43 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = rgb_histogram_manipulator_slider_draw_path;
-#line 43 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_path_iter_add_class (_tmp3_, 0, "range");
-#line 45 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp4_ = rgb_histogram_manipulator_frame_draw_path;
-#line 45 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_path_append_type (_tmp4_, gtk_frame_get_type ());
-#line 46 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp5_ = rgb_histogram_manipulator_frame_draw_path;
-#line 46 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_path_iter_add_class (_tmp5_, 0, "default");
-#line 48 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_paths_setup = TRUE;
-#line 262 "RGBHistogramManipulator.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_BUTTON_PRESS_MASK);
-#line 52 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_BUTTON_RELEASE_MASK);
-#line 53 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_BUTTON_MOTION_MASK);
-#line 54 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_FOCUS_CHANGE_MASK);
-#line 55 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_KEY_PRESS_MASK);
-#line 57 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _rgb_histogram_manipulator_on_button_press_gtk_widget_button_press_event, self, 0);
-#line 58 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "button-release-event", (GCallback) _rgb_histogram_manipulator_on_button_release_gtk_widget_button_release_event, self, 0);
-#line 59 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "motion-notify-event", (GCallback) _rgb_histogram_manipulator_on_button_motion_gtk_widget_motion_notify_event, self, 0);
-#line 61 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _rgb_histogram_manipulator_on_size_allocate_gtk_widget_size_allocate, self, 0);
-#line 36 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return self;
-#line 284 "RGBHistogramManipulator.c"
-}
-
-
-RGBHistogramManipulator*
-rgb_histogram_manipulator_new (void)
-{
-#line 36 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return rgb_histogram_manipulator_construct (TYPE_RGB_HISTOGRAM_MANIPULATOR);
-#line 293 "RGBHistogramManipulator.c"
-}
-
-
-static void
-rgb_histogram_manipulator_on_size_allocate (RGBHistogramManipulator* self,
- GtkAllocation* region)
-{
- GtkAllocation _tmp0_;
- gint _tmp1_;
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (region != NULL);
-#line 65 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = *region;
-#line 65 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = _tmp0_.width;
-#line 65 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->offset = ((_tmp1_ - RGB_HISTOGRAM_GRAPHIC_WIDTH) - RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) / 2;
-#line 313 "RGBHistogramManipulator.c"
-}
-
-
-static RGBHistogramManipulatorLocationCode
-rgb_histogram_manipulator_hit_test_point (RGBHistogramManipulator* self,
- gint x,
- gint y)
-{
- RGBHistogramManipulatorLocationCode result = 0;
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
- gboolean _tmp3_ = FALSE;
- gint _tmp4_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 68 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0);
-#line 69 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (y < RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION) {
-#line 70 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA;
-#line 70 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 339 "RGBHistogramManipulator.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = self->priv->left_nub_position;
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (x > _tmp1_) {
-#line 345 "RGBHistogramManipulator.c"
- gint _tmp2_;
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = self->priv->left_nub_position;
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = x < (_tmp2_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE);
-#line 351 "RGBHistogramManipulator.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = FALSE;
-#line 355 "RGBHistogramManipulator.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp0_) {
-#line 73 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB;
-#line 73 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 363 "RGBHistogramManipulator.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp4_ = self->priv->right_nub_position;
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (x > _tmp4_) {
-#line 369 "RGBHistogramManipulator.c"
- gint _tmp5_;
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp5_ = self->priv->right_nub_position;
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = x < (_tmp5_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE);
-#line 375 "RGBHistogramManipulator.c"
- } else {
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = FALSE;
-#line 379 "RGBHistogramManipulator.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp3_) {
-#line 76 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB;
-#line 76 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 387 "RGBHistogramManipulator.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (y < ((RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION + RGB_HISTOGRAM_MANIPULATOR_NUB_V_NUDGE) + 1)) {
-#line 79 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA;
-#line 79 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 395 "RGBHistogramManipulator.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp6_ = self->priv->left_nub_position;
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp7_ = self->priv->left_nub_position;
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp8_ = self->priv->right_nub_position;
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp9_ = self->priv->right_nub_position;
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (((x - _tmp6_) * (x - _tmp7_)) < ((x - _tmp8_) * (x - _tmp9_))) {
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH;
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 411 "RGBHistogramManipulator.c"
- } else {
-#line 85 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH;
-#line 85 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 417 "RGBHistogramManipulator.c"
- }
-}
-
-
-static gboolean
-rgb_histogram_manipulator_on_button_press (RGBHistogramManipulator* self,
- GdkEventButton* event_record)
-{
- gboolean result = FALSE;
- gdouble _tmp0_;
- gint _tmp1_;
- RGBHistogramManipulatorLocationCode loc = 0;
- gdouble _tmp2_;
- gdouble _tmp3_;
- gboolean retval = FALSE;
- RGBHistogramManipulatorLocationCode _tmp4_;
- gdouble _tmp15_;
- gint _tmp16_;
-#line 88 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE);
-#line 88 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (event_record != NULL, FALSE);
-#line 91 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = event_record->x;
-#line 91 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = self->priv->offset;
-#line 91 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- event_record->x = _tmp0_ - _tmp1_;
-#line 92 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = event_record->x;
-#line 92 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = event_record->y;
-#line 92 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- loc = rgb_histogram_manipulator_hit_test_point (self, (gint) _tmp2_, (gint) _tmp3_);
-#line 93 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- retval = TRUE;
-#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp4_ = loc;
-#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- switch (_tmp4_) {
-#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB:
-#line 460 "RGBHistogramManipulator.c"
- {
- gdouble _tmp5_;
- gint _tmp6_;
-#line 97 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp5_ = event_record->x;
-#line 97 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->track_start_x = (gint) _tmp5_;
-#line 98 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp6_ = self->priv->left_nub_position;
-#line 98 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->track_nub_start_position = _tmp6_;
-#line 99 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->is_left_nub_tracking = TRUE;
-#line 100 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- break;
-#line 476 "RGBHistogramManipulator.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB:
-#line 480 "RGBHistogramManipulator.c"
- {
- gdouble _tmp7_;
- gint _tmp8_;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp7_ = event_record->x;
-#line 103 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->track_start_x = (gint) _tmp7_;
-#line 104 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp8_ = self->priv->right_nub_position;
-#line 104 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->track_nub_start_position = _tmp8_;
-#line 105 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->is_right_nub_tracking = TRUE;
-#line 106 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- break;
-#line 496 "RGBHistogramManipulator.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH:
-#line 500 "RGBHistogramManipulator.c"
- {
- gdouble _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp9_ = event_record->x;
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_position = ((gint) _tmp9_) - RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH;
-#line 110 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp10_ = self->priv->left_nub_position;
-#line 110 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp11_ = self->priv->left_nub_max;
-#line 110 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_position = CLAMP (_tmp10_, 0, _tmp11_);
-#line 111 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_force_update (self);
-#line 112 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_update_nub_extrema (self);
-#line 114 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- break;
-#line 523 "RGBHistogramManipulator.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH:
-#line 527 "RGBHistogramManipulator.c"
- {
- gdouble _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
-#line 117 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp12_ = event_record->x;
-#line 117 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_position = ((gint) _tmp12_) - RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH;
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp13_ = self->priv->right_nub_position;
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp14_ = self->priv->right_nub_min;
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_position = CLAMP (_tmp13_, _tmp14_, 255);
-#line 119 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_force_update (self);
-#line 120 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0);
-#line 121 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_update_nub_extrema (self);
-#line 122 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- break;
-#line 550 "RGBHistogramManipulator.c"
- }
- default:
- {
-#line 125 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- retval = FALSE;
-#line 126 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- break;
-#line 558 "RGBHistogramManipulator.c"
- }
- }
-#line 130 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp15_ = event_record->x;
-#line 130 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp16_ = self->priv->offset;
-#line 130 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- event_record->x = _tmp15_ + _tmp16_;
-#line 132 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = retval;
-#line 132 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 571 "RGBHistogramManipulator.c"
-}
-
-
-static gboolean
-rgb_histogram_manipulator_on_button_release (RGBHistogramManipulator* self,
- GdkEventButton* event_record)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 135 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE);
-#line 135 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (event_record != NULL, FALSE);
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = self->priv->is_left_nub_tracking;
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp1_) {
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = TRUE;
-#line 592 "RGBHistogramManipulator.c"
- } else {
- gboolean _tmp2_;
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = self->priv->is_right_nub_tracking;
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = _tmp2_;
-#line 599 "RGBHistogramManipulator.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp0_) {
-#line 137 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0);
-#line 138 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_update_nub_extrema (self);
-#line 607 "RGBHistogramManipulator.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->is_left_nub_tracking = FALSE;
-#line 142 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->is_right_nub_tracking = FALSE;
-#line 144 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = FALSE;
-#line 144 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 617 "RGBHistogramManipulator.c"
-}
-
-
-static gboolean
-rgb_histogram_manipulator_on_button_motion (RGBHistogramManipulator* self,
- GdkEventMotion* event_record)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
- gdouble _tmp3_;
- gint _tmp4_;
- gboolean _tmp5_;
- gdouble _tmp18_;
- gint _tmp19_;
-#line 147 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE);
-#line 147 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (event_record != NULL, FALSE);
-#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = self->priv->is_left_nub_tracking;
-#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (!_tmp1_) {
-#line 641 "RGBHistogramManipulator.c"
- gboolean _tmp2_;
-#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = self->priv->is_right_nub_tracking;
-#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = !_tmp2_;
-#line 647 "RGBHistogramManipulator.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = FALSE;
-#line 651 "RGBHistogramManipulator.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp0_) {
-#line 149 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = FALSE;
-#line 149 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 659 "RGBHistogramManipulator.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = event_record->x;
-#line 151 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp4_ = self->priv->offset;
-#line 151 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- event_record->x = _tmp3_ - _tmp4_;
-#line 152 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp5_ = self->priv->is_left_nub_tracking;
-#line 152 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp5_) {
-#line 671 "RGBHistogramManipulator.c"
- gint track_x_delta = 0;
- gdouble _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 153 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp6_ = event_record->x;
-#line 153 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp7_ = self->priv->track_start_x;
-#line 153 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- track_x_delta = ((gint) _tmp6_) - _tmp7_;
-#line 154 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp8_ = self->priv->track_nub_start_position;
-#line 154 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp9_ = track_x_delta;
-#line 154 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_position = _tmp8_ + _tmp9_;
-#line 155 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp10_ = self->priv->left_nub_position;
-#line 155 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp11_ = self->priv->left_nub_max;
-#line 155 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_position = CLAMP (_tmp10_, 0, _tmp11_);
-#line 697 "RGBHistogramManipulator.c"
- } else {
- gint track_x_delta = 0;
- gdouble _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 157 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp12_ = event_record->x;
-#line 157 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp13_ = self->priv->track_start_x;
-#line 157 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- track_x_delta = ((gint) _tmp12_) - _tmp13_;
-#line 158 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp14_ = self->priv->track_nub_start_position;
-#line 158 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp15_ = track_x_delta;
-#line 158 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_position = _tmp14_ + _tmp15_;
-#line 159 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp16_ = self->priv->right_nub_position;
-#line 159 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp17_ = self->priv->right_nub_min;
-#line 159 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_position = CLAMP (_tmp16_, _tmp17_, 255);
-#line 724 "RGBHistogramManipulator.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_force_update (self);
-#line 163 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp18_ = event_record->x;
-#line 163 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp19_ = self->priv->offset;
-#line 163 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- event_record->x = _tmp18_ + _tmp19_;
-#line 165 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = TRUE;
-#line 165 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 738 "RGBHistogramManipulator.c"
-}
-
-
-static gboolean
-rgb_histogram_manipulator_real_focus_out_event (GtkWidget* base,
- GdkEventFocus* event)
-{
- RGBHistogramManipulator * self;
- gboolean result = FALSE;
-#line 168 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator);
-#line 168 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 169 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (GTK_WIDGET_CLASS (rgb_histogram_manipulator_parent_class)->focus_out_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), event)) {
-#line 170 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = TRUE;
-#line 170 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 758 "RGBHistogramManipulator.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = FALSE;
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 766 "RGBHistogramManipulator.c"
-}
-
-
-static gboolean
-rgb_histogram_manipulator_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- RGBHistogramManipulator * self;
- gboolean result = FALSE;
- gint delta = 0;
- gboolean _tmp0_ = FALSE;
- guint _tmp1_;
- gboolean _tmp3_ = FALSE;
- guint _tmp4_;
- GdkModifierType _tmp6_;
- gint _tmp8_;
- GdkModifierType _tmp9_;
-#line 178 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator);
-#line 178 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 179 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (GTK_WIDGET_CLASS (rgb_histogram_manipulator_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), event)) {
-#line 180 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = TRUE;
-#line 180 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 794 "RGBHistogramManipulator.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- delta = 0;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = event->keyval;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp1_ == ((guint) GDK_KEY_Left)) {
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = TRUE;
-#line 804 "RGBHistogramManipulator.c"
- } else {
- guint _tmp2_;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = event->keyval;
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = _tmp2_ == ((guint) GDK_KEY_Up);
-#line 811 "RGBHistogramManipulator.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp0_) {
-#line 186 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- delta = -1;
-#line 817 "RGBHistogramManipulator.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp4_ = event->keyval;
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp4_ == ((guint) GDK_KEY_Right)) {
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = TRUE;
-#line 825 "RGBHistogramManipulator.c"
- } else {
- guint _tmp5_;
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp5_ = event->keyval;
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = _tmp5_ == ((guint) GDK_KEY_Down);
-#line 832 "RGBHistogramManipulator.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp3_) {
-#line 190 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- delta = 1;
-#line 838 "RGBHistogramManipulator.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp6_ = event->state;
-#line 193 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (!((_tmp6_ & GDK_CONTROL_MASK) == GDK_CONTROL_MASK)) {
-#line 844 "RGBHistogramManipulator.c"
- gint _tmp7_;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp7_ = delta;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- delta = _tmp7_ * 5;
-#line 850 "RGBHistogramManipulator.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp8_ = delta;
-#line 197 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp8_ == 0) {
-#line 198 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = FALSE;
-#line 198 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 860 "RGBHistogramManipulator.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp9_ = event->state;
-#line 201 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if ((_tmp9_ & GDK_SHIFT_MASK) == GDK_SHIFT_MASK) {
-#line 866 "RGBHistogramManipulator.c"
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
-#line 202 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp10_ = self->priv->right_nub_position;
-#line 202 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp11_ = delta;
-#line 202 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_position = _tmp10_ + _tmp11_;
-#line 203 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp12_ = self->priv->right_nub_position;
-#line 203 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp13_ = self->priv->right_nub_min;
-#line 203 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_position = CLAMP (_tmp12_, _tmp13_, 255);
-#line 883 "RGBHistogramManipulator.c"
- } else {
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 205 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp14_ = self->priv->left_nub_position;
-#line 205 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp15_ = delta;
-#line 205 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_position = _tmp14_ + _tmp15_;
-#line 206 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp16_ = self->priv->left_nub_position;
-#line 206 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp17_ = self->priv->left_nub_max;
-#line 206 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_position = CLAMP (_tmp16_, 0, _tmp17_);
-#line 901 "RGBHistogramManipulator.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0);
-#line 211 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_update_nub_extrema (self);
-#line 212 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_force_update (self);
-#line 214 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = TRUE;
-#line 214 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 913 "RGBHistogramManipulator.c"
-}
-
-
-static gboolean
-rgb_histogram_manipulator_real_draw (GtkWidget* base,
- cairo_t* ctx)
-{
- RGBHistogramManipulator * self;
- gboolean result = FALSE;
- GtkBorder padding = {0};
- GtkStyleContext* _tmp0_;
- GtkBorder _tmp1_ = {0};
- GdkRectangle area = {0};
- GtkBorder _tmp2_;
- gint16 _tmp3_;
- gint _tmp4_;
- GtkBorder _tmp5_;
- gint16 _tmp6_;
- GtkBorder _tmp7_;
- gint16 _tmp8_;
- GtkBorder _tmp9_;
- gint16 _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_;
- GdkRectangle _tmp22_;
- GdkRectangle _tmp23_;
- gint _tmp24_;
- GdkRectangle _tmp25_;
- gint _tmp26_;
-#line 217 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator);
-#line 217 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (ctx != NULL, FALSE);
-#line 218 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 218 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_style_context_get_padding (_tmp0_, GTK_STATE_FLAG_NORMAL, &_tmp1_);
-#line 218 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- padding = _tmp1_;
-#line 220 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- memset (&area, 0, sizeof (GdkRectangle));
-#line 221 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = padding;
-#line 221 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = _tmp2_.left;
-#line 221 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp4_ = self->priv->offset;
-#line 221 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- area.x = _tmp3_ + _tmp4_;
-#line 222 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp5_ = padding;
-#line 222 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp6_ = _tmp5_.top;
-#line 222 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- area.y = (gint) _tmp6_;
-#line 223 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp7_ = padding;
-#line 223 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp8_ = _tmp7_.right;
-#line 223 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- area.width = RGB_HISTOGRAM_GRAPHIC_WIDTH + _tmp8_;
-#line 224 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp9_ = padding;
-#line 224 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp10_ = _tmp9_.bottom;
-#line 224 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- area.height = RGB_HISTOGRAM_GRAPHIC_HEIGHT + _tmp10_;
-#line 226 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_object_get (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "has-focus", &_tmp11_, NULL);
-#line 226 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp12_ = _tmp11_;
-#line 226 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp12_) {
-#line 987 "RGBHistogramManipulator.c"
- GtkStyleContext* _tmp13_;
- GdkRectangle _tmp14_;
- gint _tmp15_;
- GdkRectangle _tmp16_;
- gint _tmp17_;
- GdkRectangle _tmp18_;
- gint _tmp19_;
- GdkRectangle _tmp20_;
- gint _tmp21_;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp13_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp14_ = area;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp15_ = _tmp14_.x;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp16_ = area;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp17_ = _tmp16_.y;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp18_ = area;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp19_ = _tmp18_.width;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp20_ = area;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp21_ = _tmp20_.height;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gtk_render_focus (_tmp13_, ctx, (gdouble) _tmp15_, (gdouble) _tmp17_, (gdouble) (_tmp19_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE), (gdouble) ((_tmp21_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH));
-#line 1017 "RGBHistogramManipulator.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp22_ = area;
-#line 232 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_draw_histogram (self, ctx, &_tmp22_);
-#line 233 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp23_ = area;
-#line 233 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp24_ = self->priv->left_nub_position;
-#line 233 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_draw_nub (self, ctx, &_tmp23_, _tmp24_);
-#line 234 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp25_ = area;
-#line 234 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp26_ = self->priv->right_nub_position;
-#line 234 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_draw_nub (self, ctx, &_tmp25_, _tmp26_);
-#line 236 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = TRUE;
-#line 236 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 1039 "RGBHistogramManipulator.c"
-}
-
-
-static void
-rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* self,
- cairo_t* ctx,
- GdkRectangle* area)
-{
- RGBHistogram* _tmp0_;
- GdkPixbuf* histogram_graphic = NULL;
- RGBHistogram* _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp17_;
-#line 239 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
-#line 239 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (ctx != NULL);
-#line 239 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (area != NULL);
-#line 240 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = self->priv->histogram;
-#line 240 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp0_ == NULL) {
-#line 241 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return;
-#line 1071 "RGBHistogramManipulator.c"
- }
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = self->priv->histogram;
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = rgb_histogram_get_graphic (_tmp1_);
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- histogram_graphic = _tmp2_;
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = histogram_graphic;
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp4_ = *area;
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp5_ = _tmp4_.x;
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp6_ = *area;
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp7_ = _tmp6_.y;
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) (_tmp5_ + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH), (gdouble) (_tmp7_ + 2));
-#line 246 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_paint (ctx);
-#line 248 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp8_ = self->priv->left_nub_position;
-#line 248 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp8_ > 0) {
-#line 1097 "RGBHistogramManipulator.c"
- GdkRectangle _tmp9_;
- gint _tmp10_;
- GdkRectangle _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- GdkPixbuf* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp9_ = *area;
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp10_ = _tmp9_.x;
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp11_ = *area;
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp12_ = _tmp11_.y;
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp13_ = self->priv->left_nub_position;
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp14_ = histogram_graphic;
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp15_ = gdk_pixbuf_get_height (_tmp14_);
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp16_ = _tmp15_;
-#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_rectangle (ctx, (gdouble) (_tmp10_ + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH), (gdouble) (_tmp12_ + 2), (gdouble) _tmp13_, (gdouble) _tmp16_);
-#line 252 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 0.45);
-#line 253 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_fill (ctx);
-#line 1128 "RGBHistogramManipulator.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp17_ = self->priv->right_nub_position;
-#line 256 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (_tmp17_ < 255) {
-#line 1134 "RGBHistogramManipulator.c"
- GdkRectangle _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- GdkRectangle _tmp21_;
- gint _tmp22_;
- GdkPixbuf* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- GdkPixbuf* _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp18_ = *area;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp19_ = _tmp18_.x;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp20_ = self->priv->right_nub_position;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp21_ = *area;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp22_ = _tmp21_.y;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp23_ = histogram_graphic;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp24_ = gdk_pixbuf_get_width (_tmp23_);
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp25_ = _tmp24_;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp26_ = self->priv->right_nub_position;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp27_ = histogram_graphic;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp28_ = gdk_pixbuf_get_height (_tmp27_);
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp29_ = _tmp28_;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_rectangle (ctx, (gdouble) ((_tmp19_ + _tmp20_) + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH), (gdouble) (_tmp22_ + 2), (gdouble) (_tmp25_ - _tmp26_), (gdouble) _tmp29_);
-#line 261 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_set_source_rgba (ctx, 1.0, 1.0, 1.0, 0.45);
-#line 262 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_fill (ctx);
-#line 1177 "RGBHistogramManipulator.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _g_object_unref0 (histogram_graphic);
-#line 1181 "RGBHistogramManipulator.c"
-}
-
-
-static void
-rgb_histogram_manipulator_draw_nub (RGBHistogramManipulator* self,
- cairo_t* ctx,
- GdkRectangle* area,
- gint position)
-{
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- GdkRectangle _tmp10_;
- gint _tmp11_;
-#line 266 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
-#line 266 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (ctx != NULL);
-#line 266 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (area != NULL);
-#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = *area;
-#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = _tmp0_.x;
-#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp2_ = *area;
-#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp3_ = _tmp2_.y;
-#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_move_to (ctx, (gdouble) (_tmp1_ + position), (gdouble) ((_tmp3_ + RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION) + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE));
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp4_ = *area;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp5_ = _tmp4_.x;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp6_ = *area;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp7_ = _tmp6_.y;
-#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_line_to (ctx, (gdouble) ((_tmp5_ + position) + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH), (gdouble) (_tmp7_ + RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION));
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp8_ = *area;
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp9_ = _tmp8_.x;
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp10_ = *area;
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp11_ = _tmp10_.y;
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_line_to (ctx, (gdouble) ((_tmp9_ + position) + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE), (gdouble) ((_tmp11_ + RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION) + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE));
-#line 270 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_close_path (ctx);
-#line 271 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_set_source_rgb (ctx, 0.333, 0.333, 0.333);
-#line 272 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- cairo_fill (ctx);
-#line 1245 "RGBHistogramManipulator.c"
-}
-
-
-static void
-rgb_histogram_manipulator_force_update (RGBHistogramManipulator* self)
-{
- GdkWindow* _tmp0_;
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
-#line 276 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 276 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- gdk_window_invalidate_rect (_tmp0_, NULL, TRUE);
-#line 1259 "RGBHistogramManipulator.c"
-}
-
-
-static void
-rgb_histogram_manipulator_update_nub_extrema (RGBHistogramManipulator* self)
-{
- gint _tmp0_;
- gint _tmp1_;
-#line 279 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = self->priv->left_nub_position;
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_min = (_tmp0_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) + 1;
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = self->priv->right_nub_position;
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_max = (_tmp1_ - RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) - 1;
-#line 1278 "RGBHistogramManipulator.c"
-}
-
-
-void
-rgb_histogram_manipulator_update_histogram (RGBHistogramManipulator* self,
- GdkPixbuf* source_pixbuf)
-{
- RGBHistogram* _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (GDK_IS_PIXBUF (source_pixbuf));
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = rgb_histogram_new (source_pixbuf);
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _rgb_histogram_unref0 (self->priv->histogram);
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->histogram = _tmp0_;
-#line 288 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_force_update (self);
-#line 1299 "RGBHistogramManipulator.c"
-}
-
-
-gint
-rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 291 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0);
-#line 292 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = self->priv->left_nub_position;
-#line 292 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = _tmp0_;
-#line 292 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 1316 "RGBHistogramManipulator.c"
-}
-
-
-gint
-rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0);
-#line 296 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = self->priv->right_nub_position;
-#line 296 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- result = _tmp0_;
-#line 296 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- return result;
-#line 1333 "RGBHistogramManipulator.c"
-}
-
-
-void
-rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* self,
- gint user_nub_pos)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 299 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (user_nub_pos >= 0) {
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = user_nub_pos <= 255;
-#line 1349 "RGBHistogramManipulator.c"
- } else {
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = FALSE;
-#line 1353 "RGBHistogramManipulator.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _vala_assert (_tmp0_, "(user_nub_pos >= 0) && (user_nub_pos <= 255)");
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = self->priv->left_nub_max;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_position = CLAMP (user_nub_pos, 0, _tmp1_);
-#line 302 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_update_nub_extrema (self);
-#line 1363 "RGBHistogramManipulator.c"
-}
-
-
-void
-rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator* self,
- gint user_nub_pos)
-{
- gboolean _tmp0_ = FALSE;
- gint _tmp1_;
-#line 305 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
-#line 306 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- if (user_nub_pos >= 0) {
-#line 306 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = user_nub_pos <= 255;
-#line 1379 "RGBHistogramManipulator.c"
- } else {
-#line 306 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = FALSE;
-#line 1383 "RGBHistogramManipulator.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _vala_assert (_tmp0_, "(user_nub_pos >= 0) && (user_nub_pos <= 255)");
-#line 307 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = self->priv->right_nub_min;
-#line 307 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_position = CLAMP (user_nub_pos, _tmp1_, 255);
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_update_nub_extrema (self);
-#line 1393 "RGBHistogramManipulator.c"
-}
-
-
-static void
-rgb_histogram_manipulator_class_init (RGBHistogramManipulatorClass * klass)
-{
- GtkWidgetPath* _tmp0_;
- GtkWidgetPath* _tmp1_;
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- g_type_class_add_private (klass, sizeof (RGBHistogramManipulatorPrivate));
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- ((GtkWidgetClass *) klass)->focus_out_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) rgb_histogram_manipulator_real_focus_out_event;
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) rgb_histogram_manipulator_real_key_press_event;
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- ((GtkWidgetClass *) klass)->draw = (gboolean (*) (GtkWidget *, cairo_t*)) rgb_histogram_manipulator_real_draw;
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- G_OBJECT_CLASS (klass)->finalize = rgb_histogram_manipulator_finalize;
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL] = g_signal_new ("nub-position-changed", TYPE_RGB_HISTOGRAM_MANIPULATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 23 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp0_ = gtk_widget_path_new ();
-#line 23 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_slider_draw_path = _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _tmp1_ = gtk_widget_path_new ();
-#line 24 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- rgb_histogram_manipulator_frame_draw_path = _tmp1_;
-#line 1424 "RGBHistogramManipulator.c"
-}
-
-
-static void
-rgb_histogram_manipulator_instance_init (RGBHistogramManipulator * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv = RGB_HISTOGRAM_MANIPULATOR_GET_PRIVATE (self);
-#line 20 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_max = (255 - RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) - 1;
-#line 21 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_min = RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE + 1;
-#line 27 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->histogram = NULL;
-#line 28 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->left_nub_position = 0;
-#line 29 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->right_nub_position = 255;
-#line 30 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->is_left_nub_tracking = FALSE;
-#line 31 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->is_right_nub_tracking = FALSE;
-#line 32 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->track_start_x = 0;
-#line 33 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->track_nub_start_position = 0;
-#line 34 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self->priv->offset = 0;
-#line 1453 "RGBHistogramManipulator.c"
-}
-
-
-static void
-rgb_histogram_manipulator_finalize (GObject * obj)
-{
- RGBHistogramManipulator * self;
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator);
-#line 27 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- _rgb_histogram_unref0 (self->priv->histogram);
-#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala"
- G_OBJECT_CLASS (rgb_histogram_manipulator_parent_class)->finalize (obj);
-#line 1467 "RGBHistogramManipulator.c"
-}
-
-
-GType
-rgb_histogram_manipulator_get_type (void)
-{
- static volatile gsize rgb_histogram_manipulator_type_id__volatile = 0;
- if (g_once_init_enter (&rgb_histogram_manipulator_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RGBHistogramManipulatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rgb_histogram_manipulator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RGBHistogramManipulator), 0, (GInstanceInitFunc) rgb_histogram_manipulator_instance_init, NULL };
- GType rgb_histogram_manipulator_type_id;
- rgb_histogram_manipulator_type_id = g_type_register_static (gtk_drawing_area_get_type (), "RGBHistogramManipulator", &g_define_type_info, 0);
- g_once_init_leave (&rgb_histogram_manipulator_type_id__volatile, rgb_histogram_manipulator_type_id);
- }
- return rgb_histogram_manipulator_type_id__volatile;
-}
-
-
-
diff --git a/src/editing_tools/StraightenTool.c b/src/editing_tools/StraightenTool.c
deleted file mode 100644
index 9d00c58..0000000
--- a/src/editing_tools/StraightenTool.c
+++ /dev/null
@@ -1,3568 +0,0 @@
-/* StraightenTool.c generated by valac 0.40.4, the Vala compiler
- * generated from StraightenTool.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gdk/gdk.h>
-#include <cairo.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <glib/gi18n-lib.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define EDITING_TOOLS_TYPE_EDITING_TOOL (editing_tools_editing_tool_get_type ())
-#define EDITING_TOOLS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool))
-#define EDITING_TOOLS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass))
-#define EDITING_TOOLS_IS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL))
-#define EDITING_TOOLS_IS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL))
-#define EDITING_TOOLS_EDITING_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass))
-
-typedef struct _EditingToolsEditingTool EditingToolsEditingTool;
-typedef struct _EditingToolsEditingToolClass EditingToolsEditingToolClass;
-typedef struct _EditingToolsEditingToolPrivate EditingToolsEditingToolPrivate;
-
-#define EDITING_TOOLS_TYPE_PHOTO_CANVAS (editing_tools_photo_canvas_get_type ())
-#define EDITING_TOOLS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas))
-#define EDITING_TOOLS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass))
-#define EDITING_TOOLS_IS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS))
-#define EDITING_TOOLS_IS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS))
-#define EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass))
-
-typedef struct _EditingToolsPhotoCanvas EditingToolsPhotoCanvas;
-typedef struct _EditingToolsPhotoCanvasClass EditingToolsPhotoCanvasClass;
-
-#define EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW (editing_tools_editing_tool_window_get_type ())
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow))
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass))
-#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW))
-#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW))
-#define EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass))
-
-typedef struct _EditingToolsEditingToolWindow EditingToolsEditingToolWindow;
-typedef struct _EditingToolsEditingToolWindowClass EditingToolsEditingToolWindowClass;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _Scaling Scaling;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL (editing_tools_straighten_tool_get_type ())
-#define EDITING_TOOLS_STRAIGHTEN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolClass))
-#define EDITING_TOOLS_IS_STRAIGHTEN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL))
-#define EDITING_TOOLS_IS_STRAIGHTEN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolClass))
-
-typedef struct _EditingToolsStraightenTool EditingToolsStraightenTool;
-typedef struct _EditingToolsStraightenToolClass EditingToolsStraightenToolClass;
-typedef struct _EditingToolsStraightenToolPrivate EditingToolsStraightenToolPrivate;
-
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW (editing_tools_straighten_tool_straighten_tool_window_get_type ())
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, EditingToolsStraightenToolStraightenToolWindow))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, EditingToolsStraightenToolStraightenToolWindowClass))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, EditingToolsStraightenToolStraightenToolWindowClass))
-
-typedef struct _EditingToolsStraightenToolStraightenToolWindow EditingToolsStraightenToolStraightenToolWindow;
-typedef struct _EditingToolsStraightenToolStraightenToolWindowClass EditingToolsStraightenToolStraightenToolWindowClass;
-
-#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
-#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
-#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
-#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
-#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-
-typedef struct _OneShotScheduler OneShotScheduler;
-typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
-
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE (editing_tools_straighten_tool_straighten_guide_get_type ())
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuide))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuideClass))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE))
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuideClass))
-
-typedef struct _EditingToolsStraightenToolStraightenGuide EditingToolsStraightenToolStraightenGuide;
-typedef struct _EditingToolsStraightenToolStraightenGuideClass EditingToolsStraightenToolStraightenGuideClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
-#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
-#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL)))
-#define _editing_tools_straighten_tool_straighten_guide_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_straighten_tool_straighten_guide_unref (var), NULL)))
-typedef struct _EditingToolsEditingToolWindowPrivate EditingToolsEditingToolWindowPrivate;
-typedef struct _EditingToolsStraightenToolStraightenToolWindowPrivate EditingToolsStraightenToolStraightenToolWindowPrivate;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ())
-#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand))
-#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-
-typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
-typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
-
-#define TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ())
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand))
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass))
-#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND))
-#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND))
-#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass))
-
-typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand;
-typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass;
-
-#define TYPE_STRAIGHTEN_COMMAND (straighten_command_get_type ())
-#define STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommand))
-#define STRAIGHTEN_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRAIGHTEN_COMMAND, StraightenCommandClass))
-#define IS_STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRAIGHTEN_COMMAND))
-#define IS_STRAIGHTEN_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRAIGHTEN_COMMAND))
-#define STRAIGHTEN_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommandClass))
-
-typedef struct _StraightenCommand StraightenCommand;
-typedef struct _StraightenCommandClass StraightenCommandClass;
-
-#define TYPE_BOX (box_get_type ())
-typedef struct _Box Box;
-#define _g_free0(var) ((var == NULL) ? NULL : (var = (g_free (var), NULL)))
-
-#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ())
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _editing_tools_photo_canvas_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_photo_canvas_unref (var), NULL)))
-typedef struct _EditingToolsStraightenToolStraightenGuidePrivate EditingToolsStraightenToolStraightenGuidePrivate;
-typedef struct _EditingToolsStraightenToolParamSpecStraightenGuide EditingToolsStraightenToolParamSpecStraightenGuide;
-enum {
- EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_0_PROPERTY,
- EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* editing_tools_straighten_tool_straighten_tool_window_properties[EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_NUM_PROPERTIES];
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-struct _EditingToolsEditingTool {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EditingToolsEditingToolPrivate * priv;
- EditingToolsPhotoCanvas* canvas;
- cairo_surface_t* surface;
- gchar* name;
-};
-
-struct _EditingToolsEditingToolClass {
- GTypeClass parent_class;
- void (*finalize) (EditingToolsEditingTool *self);
- void (*activate) (EditingToolsEditingTool* self, EditingToolsPhotoCanvas* canvas);
- void (*deactivate) (EditingToolsEditingTool* self);
- EditingToolsEditingToolWindow* (*get_tool_window) (EditingToolsEditingTool* self);
- GdkPixbuf* (*get_display_pixbuf) (EditingToolsEditingTool* self, Scaling* scaling, Photo* photo, Dimensions* max_dim, GError** error);
- void (*on_left_click) (EditingToolsEditingTool* self, gint x, gint y);
- void (*on_left_released) (EditingToolsEditingTool* self, gint x, gint y);
- void (*on_motion) (EditingToolsEditingTool* self, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (EditingToolsEditingTool* self);
- gboolean (*on_keypress) (EditingToolsEditingTool* self, GdkEventKey* event);
- void (*paint) (EditingToolsEditingTool* self, cairo_t* ctx);
-};
-
-struct _EditingToolsStraightenTool {
- EditingToolsEditingTool parent_instance;
- EditingToolsStraightenToolPrivate * priv;
-};
-
-struct _EditingToolsStraightenToolClass {
- EditingToolsEditingToolClass parent_class;
-};
-
-struct _EditingToolsStraightenToolPrivate {
- EditingToolsStraightenToolStraightenToolWindow* window;
- cairo_surface_t* photo_surf;
- Dimensions image_dims;
- cairo_surface_t* rotate_surf;
- cairo_t* rotate_ctx;
- Dimensions last_viewport;
- gint view_width;
- gint view_height;
- gdouble photo_angle;
- gboolean use_high_qual;
- OneShotScheduler* slider_sched;
- GdkPoint crop_center;
- gint crop_width;
- gint crop_height;
- EditingToolsStraightenToolStraightenGuide* guide;
- GdkPoint rotated_center;
- gdouble rotate_scale;
- gdouble preview_scale;
-};
-
-struct _EditingToolsEditingToolWindow {
- GtkWindow parent_instance;
- EditingToolsEditingToolWindowPrivate * priv;
-};
-
-struct _EditingToolsEditingToolWindowClass {
- GtkWindowClass parent_class;
-};
-
-struct _EditingToolsStraightenToolStraightenToolWindow {
- EditingToolsEditingToolWindow parent_instance;
- EditingToolsStraightenToolStraightenToolWindowPrivate * priv;
- GtkScale* angle_slider;
- GtkLabel* angle_label;
- GtkLabel* description_label;
- GtkButton* ok_button;
- GtkButton* cancel_button;
- GtkButton* reset_button;
-};
-
-struct _EditingToolsStraightenToolStraightenToolWindowClass {
- EditingToolsEditingToolWindowClass parent_class;
-};
-
-struct _Box {
- gint left;
- gint top;
- gint right;
- gint bottom;
-};
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-typedef enum {
- BACKING_FETCH_MODE_SOURCE,
- BACKING_FETCH_MODE_BASELINE,
- BACKING_FETCH_MODE_MASTER,
- BACKING_FETCH_MODE_UNMODIFIED
-} BackingFetchMode;
-
-typedef void (*OneShotCallback) (void* user_data);
-struct _EditingToolsStraightenToolStraightenGuide {
- GTypeInstance parent_instance;
- volatile int ref_count;
- EditingToolsStraightenToolStraightenGuidePrivate * priv;
-};
-
-struct _EditingToolsStraightenToolStraightenGuideClass {
- GTypeClass parent_class;
- void (*finalize) (EditingToolsStraightenToolStraightenGuide *self);
-};
-
-struct _EditingToolsStraightenToolStraightenGuidePrivate {
- gboolean is_active;
- gint x[2];
- gint y[2];
- gdouble angle0;
-};
-
-struct _EditingToolsStraightenToolParamSpecStraightenGuide {
- GParamSpec parent_instance;
-};
-
-
-static gpointer editing_tools_straighten_tool_parent_class = NULL;
-static gpointer editing_tools_straighten_tool_straighten_guide_parent_class = NULL;
-static gpointer editing_tools_straighten_tool_straighten_tool_window_parent_class = NULL;
-
-gpointer editing_tools_editing_tool_ref (gpointer instance);
-void editing_tools_editing_tool_unref (gpointer instance);
-GParamSpec* editing_tools_param_spec_editing_tool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void editing_tools_value_set_editing_tool (GValue* value,
- gpointer v_object);
-void editing_tools_value_take_editing_tool (GValue* value,
- gpointer v_object);
-gpointer editing_tools_value_get_editing_tool (const GValue* value);
-GType editing_tools_editing_tool_get_type (void) G_GNUC_CONST;
-gpointer editing_tools_photo_canvas_ref (gpointer instance);
-void editing_tools_photo_canvas_unref (gpointer instance);
-GParamSpec* editing_tools_param_spec_photo_canvas (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void editing_tools_value_set_photo_canvas (GValue* value,
- gpointer v_object);
-void editing_tools_value_take_photo_canvas (GValue* value,
- gpointer v_object);
-gpointer editing_tools_value_get_photo_canvas (const GValue* value);
-GType editing_tools_photo_canvas_get_type (void) G_GNUC_CONST;
-GType editing_tools_editing_tool_window_get_type (void) G_GNUC_CONST;
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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 editing_tools_straighten_tool_get_type (void) G_GNUC_CONST;
-static GType editing_tools_straighten_tool_straighten_tool_window_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-gpointer one_shot_scheduler_ref (gpointer instance);
-void one_shot_scheduler_unref (gpointer instance);
-GParamSpec* param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_one_shot_scheduler (GValue* value,
- gpointer v_object);
-void value_take_one_shot_scheduler (GValue* value,
- gpointer v_object);
-gpointer value_get_one_shot_scheduler (const GValue* value);
-GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
-static gpointer editing_tools_straighten_tool_straighten_guide_ref (gpointer instance);
-static void editing_tools_straighten_tool_straighten_guide_unref (gpointer instance);
-static GParamSpec* editing_tools_straighten_tool_param_spec_straighten_guide (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void editing_tools_straighten_tool_value_set_straighten_guide (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void editing_tools_straighten_tool_value_take_straighten_guide (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer editing_tools_straighten_tool_value_get_straighten_guide (const GValue* value) G_GNUC_UNUSED;
-static GType editing_tools_straighten_tool_straighten_guide_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolPrivate))
-static EditingToolsStraightenToolStraightenGuide* editing_tools_straighten_tool_straighten_guide_new (void);
-static EditingToolsStraightenToolStraightenGuide* editing_tools_straighten_tool_straighten_guide_construct (GType object_type);
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_ANGLE (-15.0)
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_MAX_ANGLE 15.0
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_INCREMENT 0.1
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_SLIDER_SIZE 160
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_LABEL_SIZE 100
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_BUTTON_SIZE 84
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_TEMP_PIXBUF_SIZE 768
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_REPAINT_ON_STOP_DELAY_MSEC 100
-static EditingToolsStraightenTool* editing_tools_straighten_tool_new (void);
-static EditingToolsStraightenTool* editing_tools_straighten_tool_construct (GType object_type);
-EditingToolsEditingTool* editing_tools_editing_tool_construct (GType object_type,
- const gchar* name);
-EditingToolsStraightenTool* editing_tools_straighten_tool_factory (void);
-gboolean editing_tools_straighten_tool_is_available (Photo* photo,
- Scaling* scaling);
-static void editing_tools_straighten_tool_on_ok_clicked (EditingToolsStraightenTool* self);
-Photo* editing_tools_photo_canvas_get_photo (EditingToolsPhotoCanvas* self);
-void rotate_point_arb (GdkPoint* source_point,
- gint img_w,
- gint img_h,
- gdouble angle,
- gboolean invert,
- GdkPoint* result);
-GType command_get_type (void) G_GNUC_CONST;
-GType page_command_get_type (void) G_GNUC_CONST;
-GType single_data_source_command_get_type (void) G_GNUC_CONST;
-GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST;
-GType straighten_command_get_type (void) G_GNUC_CONST;
-GType box_get_type (void) G_GNUC_CONST;
-Box* box_dup (const Box* self);
-void box_free (Box* self);
-void box_from_center (GdkPoint* center,
- gint width,
- gint height,
- Box* result);
-#define RESOURCES_STRAIGHTEN_LABEL _ ("Straighten")
-#define RESOURCES_STRAIGHTEN_TOOLTIP _ ("Straighten the photo")
-StraightenCommand* straighten_command_new (Photo* photo,
- gdouble theta,
- Box* crop,
- const gchar* name,
- const gchar* explanation);
-StraightenCommand* straighten_command_construct (GType object_type,
- Photo* photo,
- gdouble theta,
- Box* crop,
- const gchar* name,
- const gchar* explanation);
-static void editing_tools_straighten_tool_high_qual_repaint (EditingToolsStraightenTool* self);
-static void editing_tools_straighten_tool_update_rotated_surface (EditingToolsStraightenTool* self);
-void editing_tools_photo_canvas_repaint (EditingToolsPhotoCanvas* self);
-static void editing_tools_straighten_tool_on_slider_stopped_delayed (EditingToolsStraightenTool* self);
-static void editing_tools_straighten_tool_real_on_left_click (EditingToolsEditingTool* base,
- gint x,
- gint y);
-static void editing_tools_straighten_tool_straighten_guide_reset (EditingToolsStraightenToolStraightenGuide* self,
- gint x,
- gint y,
- gdouble angle);
-static void editing_tools_straighten_tool_real_on_left_released (EditingToolsEditingTool* base,
- gint x,
- gint y);
-static gboolean editing_tools_straighten_tool_straighten_guide_update (EditingToolsStraightenToolStraightenGuide* self,
- gint x,
- gint y);
-static gdouble* editing_tools_straighten_tool_straighten_guide_get_angle (EditingToolsStraightenToolStraightenGuide* self);
-static void editing_tools_straighten_tool_straighten_guide_clear (EditingToolsStraightenToolStraightenGuide* self);
-static void editing_tools_straighten_tool_real_on_motion (EditingToolsEditingTool* base,
- gint x,
- gint y,
- GdkModifierType mask);
-static gboolean editing_tools_straighten_tool_real_on_keypress (EditingToolsEditingTool* base,
- GdkEventKey* event);
-void editing_tools_editing_tool_notify_cancel (EditingToolsEditingTool* self);
-gboolean editing_tools_editing_tool_on_keypress (EditingToolsEditingTool* self,
- GdkEventKey* event);
-static void editing_tools_straighten_tool_prepare_image (EditingToolsStraightenTool* self);
-void editing_tools_photo_canvas_get_surface_dim (EditingToolsPhotoCanvas* self,
- Dimensions* result);
-void dimensions_with_max (Dimensions *self,
- gint max_width,
- gint max_height,
- Dimensions* result);
-static gboolean _dimensions_equal (const Dimensions * s1,
- const Dimensions * s2);
-GType photo_exception_get_type (void) G_GNUC_CONST;
-GType backing_fetch_mode_get_type (void) G_GNUC_CONST;
-GdkPixbuf* photo_get_pixbuf_with_options (Photo* self,
- Scaling* scaling,
- PhotoException exceptions,
- BackingFetchMode fetch_mode,
- GError** error);
-void scaling_for_viewport (Dimensions* viewport,
- gboolean scale_up,
- Scaling* result);
-gchar* data_object_to_string (DataObject* self);
-void paint_pixmap_with_background (cairo_t* ctx,
- GdkPixbuf* pixbuf,
- gint x,
- gint y);
-static void editing_tools_straighten_tool_adjust_for_rotation (EditingToolsStraightenTool* self);
-void compute_arb_rotated_size (gdouble src_width,
- gdouble src_height,
- gdouble angle,
- gdouble* dest_width,
- gdouble* dest_height);
-static void editing_tools_straighten_tool_real_activate (EditingToolsEditingTool* base,
- EditingToolsPhotoCanvas* canvas);
-void editing_tools_editing_tool_activate (EditingToolsEditingTool* self,
- EditingToolsPhotoCanvas* canvas);
-static void editing_tools_straighten_tool_bind_canvas_handlers (EditingToolsStraightenTool* self,
- EditingToolsPhotoCanvas* canvas);
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-gboolean photo_get_crop (Photo* self,
- Box* crop,
- PhotoException exceptions);
-gboolean photo_get_straighten (Photo* self,
- gdouble* theta);
-void derotate_point_arb (GdkPoint* source_point,
- gint img_w,
- gint img_h,
- gdouble angle,
- GdkPoint* result);
-void box_get_center (Box *self,
- GdkPoint* result);
-gint box_get_width (Box *self);
-gint box_get_height (Box *self);
-GdkWindow* editing_tools_photo_canvas_get_drawing_window (EditingToolsPhotoCanvas* self);
-GtkWindow* editing_tools_photo_canvas_get_container (EditingToolsPhotoCanvas* self);
-static EditingToolsStraightenToolStraightenToolWindow* editing_tools_straighten_tool_straighten_tool_window_new (GtkWindow* container);
-static EditingToolsStraightenToolStraightenToolWindow* editing_tools_straighten_tool_straighten_tool_window_construct (GType object_type,
- GtkWindow* container);
-static void editing_tools_straighten_tool_bind_window_handlers (EditingToolsStraightenTool* self);
-static void editing_tools_straighten_tool_real_deactivate (EditingToolsEditingTool* base);
-static void editing_tools_straighten_tool_unbind_window_handlers (EditingToolsStraightenTool* self);
-static void editing_tools_straighten_tool_unbind_canvas_handlers (EditingToolsStraightenTool* self,
- EditingToolsPhotoCanvas* canvas);
-void editing_tools_editing_tool_deactivate (EditingToolsEditingTool* self);
-static void editing_tools_straighten_tool_on_resized_pixbuf (EditingToolsStraightenTool* self,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position);
-static void _editing_tools_straighten_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position,
- gpointer self);
-static gboolean _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event (GtkWidget* _sender,
- GdkEventKey* event,
- gpointer self);
-static void _editing_tools_straighten_tool_on_ok_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void _editing_tools_editing_tool_notify_cancel_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void editing_tools_straighten_tool_on_angle_changed (EditingToolsStraightenTool* self);
-static void _editing_tools_straighten_tool_on_angle_changed_gtk_range_value_changed (GtkRange* _sender,
- gpointer self);
-static void _editing_tools_straighten_tool_on_slider_stopped_delayed_one_shot_callback (gpointer self);
-OneShotScheduler* one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-OneShotScheduler* one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-void one_shot_scheduler_after_timeout (OneShotScheduler* self,
- guint msec,
- gboolean reschedule);
-static EditingToolsEditingToolWindow* editing_tools_straighten_tool_real_get_tool_window (EditingToolsEditingTool* base);
-static void editing_tools_straighten_tool_draw_rotated_source (EditingToolsStraightenTool* self,
- cairo_surface_t* src_surf,
- cairo_t* dest_ctx,
- gint src_width,
- gint src_height,
- gdouble angle);
-static void editing_tools_straighten_tool_draw_superimposed_grid (EditingToolsStraightenTool* self,
- cairo_t* dest_ctx,
- gint width,
- gint height);
-static void editing_tools_straighten_tool_real_paint (EditingToolsEditingTool* base,
- cairo_t* ctx);
-cairo_t* editing_tools_photo_canvas_get_default_ctx (EditingToolsPhotoCanvas* self);
-static void editing_tools_straighten_tool_straighten_guide_draw (EditingToolsStraightenToolStraightenGuide* self,
- cairo_t* ctx);
-gdouble degrees_to_radians (gdouble theta);
-void editing_tools_photo_canvas_draw_horizontal_line (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- gint x,
- gint y,
- gint width,
- gboolean use_scaled_pos);
-void editing_tools_photo_canvas_draw_vertical_line (EditingToolsPhotoCanvas* self,
- cairo_t* ctx,
- gint x,
- gint y,
- gint height,
- gboolean use_scaled_pos);
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuidePrivate))
-static gdouble* _double_dup (gdouble* self);
-static void editing_tools_straighten_tool_straighten_guide_finalize (EditingToolsStraightenToolStraightenGuide * obj);
-#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
-#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING 8
-EditingToolsEditingToolWindow* editing_tools_editing_tool_window_construct (GType object_type,
- GtkWindow* container);
-static void editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked (EditingToolsStraightenToolStraightenToolWindow* self);
-static void _editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void editing_tools_straighten_tool_straighten_tool_window_finalize (GObject * obj);
-static void editing_tools_straighten_tool_finalize (EditingToolsEditingTool * obj);
-
-static const gdouble EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH[2] = {(gdouble) 10, (gdouble) 10};
-
-static EditingToolsStraightenTool*
-editing_tools_straighten_tool_construct (GType object_type)
-{
- EditingToolsStraightenTool* self = NULL;
-#line 190 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = (EditingToolsStraightenTool*) editing_tools_editing_tool_construct (object_type, "StraightenTool");
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return self;
-#line 687 "StraightenTool.c"
-}
-
-
-static EditingToolsStraightenTool*
-editing_tools_straighten_tool_new (void)
-{
-#line 189 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return editing_tools_straighten_tool_construct (EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL);
-#line 696 "StraightenTool.c"
-}
-
-
-EditingToolsStraightenTool*
-editing_tools_straighten_tool_factory (void)
-{
- EditingToolsStraightenTool* result = NULL;
- EditingToolsStraightenTool* _tmp0_;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = editing_tools_straighten_tool_new ();
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = _tmp0_;
-#line 194 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 711 "StraightenTool.c"
-}
-
-
-gboolean
-editing_tools_straighten_tool_is_available (Photo* photo,
- Scaling* scaling)
-{
- gboolean result = FALSE;
-#line 197 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_val_if_fail (IS_PHOTO (photo), FALSE);
-#line 197 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_val_if_fail (scaling != NULL, FALSE);
-#line 198 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = TRUE;
-#line 198 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 728 "StraightenTool.c"
-}
-
-
-/**
- * @brief Signal handler for when the 'OK' button has been clicked. Computes where a previously-
- * set crop region should have rotated to (to match the Photo's straightening angle).
- *
- * @note After this has been called against a Photo, it will always have a crop region; in the
- * case of a previously-uncropped Photo, the crop region will be set to the original dimensions
- * of the photo and centered at the Photo's center.
- */
-static void
-editing_tools_straighten_tool_on_ok_clicked (EditingToolsStraightenTool* self)
-{
- EditingToolsPhotoCanvas* _tmp0_;
- Photo* _tmp1_;
- Photo* _tmp2_;
- gdouble slider_val = 0.0;
- EditingToolsStraightenToolStraightenToolWindow* _tmp3_;
- GtkScale* _tmp4_;
- GdkPoint new_crop_center = {0};
- GdkPoint _tmp5_;
- Dimensions _tmp6_;
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_ = {0};
- StraightenCommand* command = NULL;
- EditingToolsPhotoCanvas* _tmp11_;
- Photo* _tmp12_;
- Photo* _tmp13_;
- GdkPoint _tmp14_;
- gdouble _tmp15_;
- gint _tmp16_;
- gdouble _tmp17_;
- gint _tmp18_;
- Box _tmp19_ = {0};
- StraightenCommand* _tmp20_;
- StraightenCommand* _tmp21_;
- Dimensions _tmp22_;
-#line 209 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_);
-#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = _tmp1_;
-#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _vala_assert (_tmp2_ != NULL, "canvas.get_photo() != null");
-#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp2_);
-#line 214 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = self->priv->window;
-#line 214 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = _tmp3_->angle_slider;
-#line 214 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- slider_val = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_range_get_type (), GtkRange));
-#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->priv->rotated_center;
-#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = self->priv->image_dims;
-#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = _tmp6_.width;
-#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = self->priv->image_dims;
-#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = _tmp8_.height;
-#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- rotate_point_arb (&_tmp5_, _tmp7_, _tmp9_, slider_val, FALSE, &_tmp10_);
-#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- new_crop_center = _tmp10_;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = editing_tools_photo_canvas_get_photo (_tmp11_);
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = _tmp12_;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = new_crop_center;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = self->priv->rotate_scale;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp16_ = self->priv->crop_width;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp17_ = self->priv->rotate_scale;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp18_ = self->priv->crop_height;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- box_from_center (&_tmp14_, (gint) (_tmp15_ * _tmp16_), (gint) (_tmp17_ * _tmp18_), &_tmp19_);
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp20_ = straighten_command_new (_tmp13_, slider_val, &_tmp19_, RESOURCES_STRAIGHTEN_LABEL, RESOURCES_STRAIGHTEN_TOOLTIP);
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp21_ = _tmp20_;
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp13_);
-#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- command = _tmp21_;
-#line 224 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp22_ = self->priv->image_dims;
-#line 224 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), "applied", G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command), NULL, &_tmp22_, TRUE);
-#line 209 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (command);
-#line 833 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_high_qual_repaint (EditingToolsStraightenTool* self)
-{
- EditingToolsPhotoCanvas* _tmp0_;
-#line 227 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 228 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->use_high_qual = TRUE;
-#line 229 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_update_rotated_surface (self);
-#line 230 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 230 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_repaint (_tmp0_);
-#line 851 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_on_slider_stopped_delayed (EditingToolsStraightenTool* self)
-{
-#line 233 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 234 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_high_qual_repaint (self);
-#line 862 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_real_on_left_click (EditingToolsEditingTool* base,
- gint x,
- gint y)
-{
- EditingToolsStraightenTool * self;
- EditingToolsStraightenToolStraightenGuide* _tmp0_;
- gdouble _tmp1_;
-#line 237 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 238 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->guide;
-#line 238 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->photo_angle;
-#line 238 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_reset (_tmp0_, x, y, _tmp1_);
-#line 882 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_real_on_left_released (EditingToolsEditingTool* base,
- gint x,
- gint y)
-{
- EditingToolsStraightenTool * self;
- EditingToolsStraightenToolStraightenGuide* _tmp0_;
- gdouble* a = NULL;
- EditingToolsStraightenToolStraightenGuide* _tmp1_;
- gdouble* _tmp2_;
- EditingToolsStraightenToolStraightenGuide* _tmp3_;
- gdouble* _tmp4_;
-#line 241 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 242 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->guide;
-#line 242 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_update (_tmp0_, x, y);
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->guide;
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = editing_tools_straighten_tool_straighten_guide_get_angle (_tmp1_);
-#line 243 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- a = _tmp2_;
-#line 244 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = self->priv->guide;
-#line 244 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_clear (_tmp3_);
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = a;
-#line 245 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp4_ != NULL) {
-#line 918 "StraightenTool.c"
- EditingToolsStraightenToolStraightenToolWindow* _tmp5_;
- GtkScale* _tmp6_;
- gdouble* _tmp7_;
-#line 246 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->priv->window;
-#line 246 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_->angle_slider;
-#line 246 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = a;
-#line 246 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_range_get_type (), GtkRange), *_tmp7_);
-#line 247 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_high_qual_repaint (self);
-#line 932 "StraightenTool.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_free0 (a);
-#line 936 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_real_on_motion (EditingToolsEditingTool* base,
- gint x,
- gint y,
- GdkModifierType mask)
-{
- EditingToolsStraightenTool * self;
- EditingToolsStraightenToolStraightenGuide* _tmp0_;
-#line 251 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 252 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->guide;
-#line 252 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (editing_tools_straighten_tool_straighten_guide_update (_tmp0_, x, y)) {
-#line 954 "StraightenTool.c"
- EditingToolsPhotoCanvas* _tmp1_;
-#line 253 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 253 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_repaint (_tmp1_);
-#line 960 "StraightenTool.c"
- }
-}
-
-
-static gboolean
-editing_tools_straighten_tool_real_on_keypress (EditingToolsEditingTool* base,
- GdkEventKey* event)
-{
- EditingToolsStraightenTool * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- guint _tmp2_;
- const gchar* _tmp3_;
- guint _tmp8_;
- const gchar* _tmp9_;
-#line 256 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 256 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = event->keyval;
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = gdk_keyval_name (_tmp2_);
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (g_strcmp0 (_tmp3_, "KP_Enter") == 0) {
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = TRUE;
-#line 989 "StraightenTool.c"
- } else {
- guint _tmp4_;
- const gchar* _tmp5_;
-#line 258 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = event->keyval;
-#line 258 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = gdk_keyval_name (_tmp4_);
-#line 258 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = g_strcmp0 (_tmp5_, "Enter") == 0;
-#line 999 "StraightenTool.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp1_) {
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = TRUE;
-#line 1005 "StraightenTool.c"
- } else {
- guint _tmp6_;
- const gchar* _tmp7_;
-#line 259 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = event->keyval;
-#line 259 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = gdk_keyval_name (_tmp6_);
-#line 259 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = g_strcmp0 (_tmp7_, "Return") == 0;
-#line 1015 "StraightenTool.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp0_) {
-#line 260 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_on_ok_clicked (self);
-#line 261 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = TRUE;
-#line 261 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 1025 "StraightenTool.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = event->keyval;
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = gdk_keyval_name (_tmp8_);
-#line 264 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (g_strcmp0 (_tmp9_, "Escape") == 0) {
-#line 265 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_editing_tool_notify_cancel (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 266 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = TRUE;
-#line 266 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 1039 "StraightenTool.c"
- }
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_straighten_tool_parent_class)->on_keypress (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), event);
-#line 269 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 1045 "StraightenTool.c"
-}
-
-
-static gboolean
-_dimensions_equal (const Dimensions * s1,
- const Dimensions * s2)
-{
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (s1 == s2) {
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return TRUE;
-#line 1057 "StraightenTool.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (s1 == NULL) {
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return FALSE;
-#line 1063 "StraightenTool.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (s2 == NULL) {
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return FALSE;
-#line 1069 "StraightenTool.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (s1->width != s2->width) {
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return FALSE;
-#line 1075 "StraightenTool.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (s1->height != s2->height) {
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return FALSE;
-#line 1081 "StraightenTool.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return TRUE;
-#line 1085 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_prepare_image (EditingToolsStraightenTool* self)
-{
- Dimensions canvas_dims = {0};
- EditingToolsPhotoCanvas* _tmp0_;
- Dimensions _tmp1_ = {0};
- Dimensions viewport = {0};
- Dimensions _tmp2_ = {0};
- Dimensions _tmp3_;
- Dimensions _tmp4_;
- Dimensions _tmp5_;
- GdkPixbuf* low_res_tmp = NULL;
- GdkPixbuf* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- Dimensions _tmp24_;
- gint _tmp25_;
- GdkPixbuf* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- GdkPixbuf* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- cairo_surface_t* _tmp32_;
- cairo_t* ctx = NULL;
- cairo_surface_t* _tmp33_;
- cairo_t* _tmp34_;
- cairo_t* _tmp35_;
- GdkPixbuf* _tmp36_;
- gint _tmp37_;
- gdouble _tmp38_;
- gint _tmp39_;
- gdouble _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- cairo_surface_t* _tmp43_;
- cairo_surface_t* _tmp44_;
- cairo_t* _tmp45_;
- GError * _inner_error_ = NULL;
-#line 272 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 273 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 273 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_get_surface_dim (_tmp0_, &_tmp1_);
-#line 273 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- canvas_dims = _tmp1_;
-#line 274 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- dimensions_with_max (&canvas_dims, EDITING_TOOLS_STRAIGHTEN_TOOL_TEMP_PIXBUF_SIZE, EDITING_TOOLS_STRAIGHTEN_TOOL_TEMP_PIXBUF_SIZE, &_tmp2_);
-#line 274 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- viewport = _tmp2_;
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = viewport;
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = self->priv->last_viewport;
-#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_dimensions_equal (&_tmp3_, &_tmp4_) == TRUE) {
-#line 276 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return;
-#line 1148 "StraightenTool.c"
- }
-#line 278 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = viewport;
-#line 278 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->last_viewport = _tmp5_;
-#line 280 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- low_res_tmp = NULL;
-#line 1156 "StraightenTool.c"
- {
- GdkPixbuf* _tmp6_ = NULL;
- EditingToolsPhotoCanvas* _tmp7_;
- Photo* _tmp8_;
- Photo* _tmp9_;
- Dimensions _tmp10_;
- Scaling _tmp11_ = {0};
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
- GdkPixbuf* _tmp14_;
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = editing_tools_photo_canvas_get_photo (_tmp7_);
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = _tmp8_;
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = viewport;
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- scaling_for_viewport (&_tmp10_, FALSE, &_tmp11_);
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = photo_get_pixbuf_with_options (_tmp9_, &_tmp11_, PHOTO_EXCEPTION_STRAIGHTEN | PHOTO_EXCEPTION_CROP, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = _tmp12_;
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp9_);
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp13_;
-#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1187 "StraightenTool.c"
- goto __catch27_g_error;
- }
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = _tmp6_;
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = NULL;
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (low_res_tmp);
-#line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- low_res_tmp = _tmp14_;
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp6_);
-#line 1200 "StraightenTool.c"
- }
- goto __finally27;
- __catch27_g_error:
- {
- GError* e = NULL;
- EditingToolsPhotoCanvas* _tmp15_;
- Photo* _tmp16_;
- Photo* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- GdkPixbuf* _tmp20_;
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- e = _inner_error_;
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _inner_error_ = NULL;
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp16_ = editing_tools_photo_canvas_get_photo (_tmp15_);
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp17_ = _tmp16_;
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp18_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_OBJECT, DataObject));
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp19_ = _tmp18_;
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_warning ("StraightenTool.vala:286: A pixbuf for %s couldn't be fetched.", _tmp19_);
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_free0 (_tmp19_);
-#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp17_);
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp20_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 1, 1);
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (low_res_tmp);
-#line 287 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- low_res_tmp = _tmp20_;
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_error_free0 (e);
-#line 1240 "StraightenTool.c"
- }
- __finally27:
-#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"
- _g_object_unref0 (low_res_tmp);
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.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 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_clear_error (&_inner_error_);
-#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return;
-#line 1253 "StraightenTool.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp21_ = low_res_tmp;
-#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp22_ = gdk_pixbuf_get_width (_tmp21_);
-#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp23_ = _tmp22_;
-#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp24_ = self->priv->image_dims;
-#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp25_ = _tmp24_.width;
-#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->preview_scale = _tmp23_ / ((gdouble) _tmp25_);
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp26_ = low_res_tmp;
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp27_ = gdk_pixbuf_get_width (_tmp26_);
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp28_ = _tmp27_;
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp29_ = low_res_tmp;
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp30_ = gdk_pixbuf_get_height (_tmp29_);
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp31_ = _tmp30_;
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp32_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp28_, _tmp31_);
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_surface_destroy0 (self->priv->photo_surf);
-#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->photo_surf = _tmp32_;
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp33_ = self->priv->photo_surf;
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp34_ = cairo_create (_tmp33_);
-#line 294 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ctx = _tmp34_;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp35_ = ctx;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp36_ = low_res_tmp;
-#line 295 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- paint_pixmap_with_background (_tmp35_, _tmp36_, 0, 0);
-#line 299 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp37_ = self->priv->crop_width;
-#line 299 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp38_ = self->priv->preview_scale;
-#line 299 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->view_width = (gint) (_tmp37_ * _tmp38_);
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp39_ = self->priv->crop_height;
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp40_ = self->priv->preview_scale;
-#line 300 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->view_height = (gint) (_tmp39_ * _tmp40_);
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp41_ = self->priv->view_width;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp42_ = self->priv->view_height;
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp43_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp41_, _tmp42_);
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_surface_destroy0 (self->priv->rotate_surf);
-#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->rotate_surf = _tmp43_;
-#line 302 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp44_ = self->priv->rotate_surf;
-#line 302 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp45_ = cairo_create (_tmp44_);
-#line 302 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (self->priv->rotate_ctx);
-#line 302 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->rotate_ctx = _tmp45_;
-#line 272 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (ctx);
-#line 272 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (low_res_tmp);
-#line 1331 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_adjust_for_rotation (EditingToolsStraightenTool* self)
-{
- gdouble width = 0.0;
- gdouble height = 0.0;
- gint _tmp0_;
- gint _tmp1_;
- gdouble _tmp2_;
- gdouble _tmp3_ = 0.0;
- gdouble _tmp4_ = 0.0;
- Dimensions _tmp5_;
- gint _tmp6_;
- Dimensions _tmp7_;
- gint _tmp8_;
- gdouble _tmp9_;
- GdkPoint _tmp10_;
- gint radius_x = 0;
- gdouble _tmp11_;
- gint radius_y = 0;
- gdouble _tmp12_;
- GdkPoint _tmp13_;
- gint _tmp14_;
- Dimensions _tmp15_;
- gint _tmp16_;
- GdkPoint _tmp17_;
- gint _tmp18_;
- Dimensions _tmp19_;
- gint _tmp20_;
-#line 306 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->crop_width;
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->crop_height;
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = self->priv->photo_angle;
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- compute_arb_rotated_size ((gdouble) _tmp0_, (gdouble) _tmp1_, _tmp2_, &_tmp3_, &_tmp4_);
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- width = _tmp3_;
-#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- height = _tmp4_;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->priv->image_dims;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_.width;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = self->priv->image_dims;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = _tmp7_.height;
-#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->rotate_scale = MIN (_tmp6_ / width, _tmp8_ / height);
-#line 312 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = self->priv->rotate_scale;
-#line 312 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->rotate_scale = MIN (_tmp9_, 1.0);
-#line 315 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = self->priv->crop_center;
-#line 315 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->rotated_center = _tmp10_;
-#line 316 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = self->priv->rotate_scale;
-#line 316 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- radius_x = (gint) ((_tmp11_ * width) / 2);
-#line 317 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = self->priv->rotate_scale;
-#line 317 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- radius_y = (gint) ((_tmp12_ * height) / 2);
-#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = self->priv->rotated_center;
-#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = _tmp13_.x;
-#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = self->priv->image_dims;
-#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp16_ = _tmp15_.width;
-#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->rotated_center.x = CLAMP (_tmp14_, radius_x, _tmp16_ - radius_x);
-#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp17_ = self->priv->rotated_center;
-#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp18_ = _tmp17_.y;
-#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp19_ = self->priv->image_dims;
-#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp20_ = _tmp19_.height;
-#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->rotated_center.y = CLAMP (_tmp18_, radius_y, _tmp20_ - radius_y);
-#line 1423 "StraightenTool.c"
-}
-
-
-/**
- * @brief Spawn the tool window, set up the scratch surfaces and prepare the straightening
- * tool for use. If a valid pixbuf of the incoming Photo can't be loaded for any
- * reason, the tool will use a 1x1 temporary image instead to avoid crashing.
- *
- * @param canvas The PhotoCanvas the tool's output should be painted to.
- */
-static gpointer
-_editing_tools_photo_canvas_ref0 (gpointer self)
-{
-#line 331 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return self ? editing_tools_photo_canvas_ref (self) : NULL;
-#line 1439 "StraightenTool.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 363 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1448 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_real_activate (EditingToolsEditingTool* base,
- EditingToolsPhotoCanvas* canvas)
-{
- EditingToolsStraightenTool * self;
- EditingToolsPhotoCanvas* _tmp0_;
- EditingToolsPhotoCanvas* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- Dimensions _tmp4_ = {0};
- Box crop_region = {0};
- Photo* _tmp5_;
- Photo* _tmp6_;
- Box _tmp7_ = {0};
- gboolean _tmp8_;
- gboolean _tmp9_;
- gdouble incoming_angle = 0.0;
- Photo* _tmp14_;
- Photo* _tmp15_;
- gdouble _tmp16_ = 0.0;
- GdkPoint _tmp17_ = {0};
- Dimensions _tmp18_;
- gint _tmp19_;
- Dimensions _tmp20_;
- gint _tmp21_;
- gdouble _tmp22_;
- GdkPoint _tmp23_ = {0};
- GdkWindow* drawing_window = NULL;
- GdkWindow* _tmp24_;
- GdkDisplay* display = NULL;
- GdkDisplay* _tmp25_;
- GdkDisplay* _tmp26_;
- GdkCursor* cursor = NULL;
- GdkCursor* _tmp27_;
- GtkWindow* _tmp28_;
- GtkWindow* _tmp29_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp30_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp31_;
- GtkScale* _tmp32_;
- gdouble _tmp33_;
- gdouble _tmp34_;
- gchar* tmp = NULL;
- gdouble _tmp35_;
- gchar* _tmp36_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp37_;
- GtkLabel* _tmp38_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp39_;
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 330 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_straighten_tool_parent_class)->activate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), canvas);
-#line 331 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = _editing_tools_photo_canvas_ref0 (canvas);
-#line 331 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _editing_tools_photo_canvas_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas);
-#line 331 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas = _tmp0_;
-#line 332 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 332 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_bind_canvas_handlers (self, _tmp1_);
-#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = _tmp2_;
-#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_STRAIGHTEN | PHOTO_EXCEPTION_CROP, &_tmp4_);
-#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->image_dims = _tmp4_;
-#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp3_);
-#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_;
-#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = photo_get_crop (_tmp6_, &_tmp7_, PHOTO_EXCEPTION_NONE);
-#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- crop_region = _tmp7_;
-#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = !_tmp8_;
-#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp6_);
-#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp9_) {
-#line 1539 "StraightenTool.c"
- Dimensions _tmp10_;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
-#line 339 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- crop_region.left = 0;
-#line 340 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = self->priv->image_dims;
-#line 340 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = _tmp10_.width;
-#line 340 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- crop_region.right = _tmp11_;
-#line 342 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- crop_region.top = 0;
-#line 343 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = self->priv->image_dims;
-#line 343 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = _tmp12_.height;
-#line 343 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- crop_region.bottom = _tmp13_;
-#line 1560 "StraightenTool.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- incoming_angle = 0.0;
-#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = editing_tools_photo_canvas_get_photo (canvas);
-#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = _tmp14_;
-#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- photo_get_straighten (_tmp15_, &_tmp16_);
-#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- incoming_angle = _tmp16_;
-#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp15_);
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- box_get_center (&crop_region, &_tmp17_);
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp18_ = self->priv->image_dims;
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp19_ = _tmp18_.width;
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp20_ = self->priv->image_dims;
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp21_ = _tmp20_.height;
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp22_ = incoming_angle;
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- derotate_point_arb (&_tmp17_, _tmp19_, _tmp21_, _tmp22_, &_tmp23_);
-#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->crop_center = _tmp23_;
-#line 354 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->crop_width = box_get_width (&crop_region);
-#line 355 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->crop_height = box_get_height (&crop_region);
-#line 357 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_adjust_for_rotation (self);
-#line 359 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_prepare_image (self);
-#line 362 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp24_ = editing_tools_photo_canvas_get_drawing_window (canvas);
-#line 362 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- drawing_window = _tmp24_;
-#line 363 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp25_ = gdk_window_get_display (drawing_window);
-#line 363 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp26_ = _g_object_ref0 (_tmp25_);
-#line 363 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- display = _tmp26_;
-#line 364 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp27_ = gdk_cursor_new_for_display (display, GDK_CROSSHAIR);
-#line 364 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cursor = _tmp27_;
-#line 366 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gdk_window_set_cursor (drawing_window, cursor);
-#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp28_ = editing_tools_photo_canvas_get_container (canvas);
-#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp29_ = _tmp28_;
-#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp30_ = editing_tools_straighten_tool_straighten_tool_window_new (_tmp29_);
-#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp30_);
-#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->priv->window);
-#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->window = _tmp30_;
-#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp29_);
-#line 369 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_bind_window_handlers (self);
-#line 372 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp31_ = self->priv->window;
-#line 372 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp32_ = _tmp31_->angle_slider;
-#line 372 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp33_ = incoming_angle;
-#line 372 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_range_get_type (), GtkRange), _tmp33_);
-#line 373 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp34_ = incoming_angle;
-#line 373 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->photo_angle = _tmp34_;
-#line 375 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp35_ = incoming_angle;
-#line 375 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp36_ = g_strdup_printf ("%2.1f°", _tmp35_);
-#line 375 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- tmp = _tmp36_;
-#line 376 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp37_ = self->priv->window;
-#line 376 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp38_ = _tmp37_->angle_label;
-#line 376 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_label_set_text (_tmp38_, tmp);
-#line 378 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_high_qual_repaint (self);
-#line 379 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp39_ = self->priv->window;
-#line 379 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget));
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_free0 (tmp);
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (cursor);
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (display);
-#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (drawing_window);
-#line 1668 "StraightenTool.c"
-}
-
-
-/**
- * Tears down the tool window and frees resources.
- */
-static void
-editing_tools_straighten_tool_real_deactivate (EditingToolsEditingTool* base)
-{
- EditingToolsStraightenTool * self;
- EditingToolsStraightenToolStraightenToolWindow* _tmp0_;
- EditingToolsPhotoCanvas* _tmp2_;
-#line 385 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 386 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->window;
-#line 386 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp0_ != NULL) {
-#line 1687 "StraightenTool.c"
- EditingToolsStraightenToolStraightenToolWindow* _tmp1_;
-#line 388 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_unbind_window_handlers (self);
-#line 390 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->window;
-#line 390 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 391 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->priv->window);
-#line 391 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->window = NULL;
-#line 1699 "StraightenTool.c"
- }
-#line 394 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 394 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp2_ != NULL) {
-#line 1705 "StraightenTool.c"
- EditingToolsPhotoCanvas* _tmp3_;
- EditingToolsPhotoCanvas* _tmp4_;
- GdkWindow* _tmp5_;
- GdkWindow* _tmp6_;
-#line 395 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 395 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_unbind_canvas_handlers (self, _tmp3_);
-#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = editing_tools_photo_canvas_get_drawing_window (_tmp4_);
-#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_;
-#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gdk_window_set_cursor (_tmp6_, NULL);
-#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp6_);
-#line 1724 "StraightenTool.c"
- }
-#line 399 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_straighten_tool_parent_class)->deactivate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 1728 "StraightenTool.c"
-}
-
-
-static void
-_editing_tools_straighten_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position,
- gpointer self)
-{
-#line 403 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_on_resized_pixbuf ((EditingToolsStraightenTool*) self, old_dim, scaled, scaled_position);
-#line 1741 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_bind_canvas_handlers (EditingToolsStraightenTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
-#line 402 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 402 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 403 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_connect (canvas, "resized-scaled-pixbuf", (GCallback) _editing_tools_straighten_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf, self);
-#line 1755 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_unbind_canvas_handlers (EditingToolsStraightenTool* self,
- EditingToolsPhotoCanvas* canvas)
-{
- guint _tmp0_;
-#line 406 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 406 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas));
-#line 407 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_parse_name ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp0_, NULL, FALSE);
-#line 407 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _editing_tools_straighten_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf, self);
-#line 1772 "StraightenTool.c"
-}
-
-
-static gboolean
-_editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event (GtkWidget* _sender,
- GdkEventKey* event,
- gpointer self)
-{
- gboolean result;
- result = editing_tools_editing_tool_on_keypress ((EditingToolsEditingTool*) self, event);
-#line 411 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 1785 "StraightenTool.c"
-}
-
-
-static void
-_editing_tools_straighten_tool_on_ok_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_on_ok_clicked ((EditingToolsStraightenTool*) self);
-#line 1795 "StraightenTool.c"
-}
-
-
-static void
-_editing_tools_editing_tool_notify_cancel_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_editing_tool_notify_cancel ((EditingToolsEditingTool*) self);
-#line 1805 "StraightenTool.c"
-}
-
-
-static void
-_editing_tools_straighten_tool_on_angle_changed_gtk_range_value_changed (GtkRange* _sender,
- gpointer self)
-{
-#line 414 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_on_angle_changed ((EditingToolsStraightenTool*) self);
-#line 1815 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_bind_window_handlers (EditingToolsStraightenTool* self)
-{
- EditingToolsStraightenToolStraightenToolWindow* _tmp0_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp1_;
- GtkButton* _tmp2_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp3_;
- GtkButton* _tmp4_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp5_;
- GtkScale* _tmp6_;
-#line 410 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 411 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->window;
-#line 411 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->window;
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = _tmp1_->ok_button;
-#line 412 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_connect (_tmp2_, "clicked", (GCallback) _editing_tools_straighten_tool_on_ok_clicked_gtk_button_clicked, self);
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = self->priv->window;
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = _tmp3_->cancel_button;
-#line 413 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_connect (_tmp4_, "clicked", (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 414 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->priv->window;
-#line 414 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_->angle_slider;
-#line 414 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_straighten_tool_on_angle_changed_gtk_range_value_changed, self);
-#line 1853 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_unbind_window_handlers (EditingToolsStraightenTool* self)
-{
- EditingToolsStraightenToolStraightenToolWindow* _tmp0_;
- guint _tmp1_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp2_;
- GtkButton* _tmp3_;
- guint _tmp4_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp5_;
- GtkButton* _tmp6_;
- guint _tmp7_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp8_;
- GtkScale* _tmp9_;
- guint _tmp10_;
-#line 417 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 418 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->window;
-#line 418 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_parse_name ("key-press-event", gtk_widget_get_type (), &_tmp1_, NULL, FALSE);
-#line 418 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 419 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = self->priv->window;
-#line 419 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = _tmp2_->ok_button;
-#line 419 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp4_, NULL, FALSE);
-#line 419 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_tools_straighten_tool_on_ok_clicked_gtk_button_clicked, self);
-#line 420 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->priv->window;
-#line 420 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_->cancel_button;
-#line 420 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp7_, NULL, FALSE);
-#line 420 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool));
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = self->priv->window;
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = _tmp8_->angle_slider;
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp10_, NULL, FALSE);
-#line 421 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _editing_tools_straighten_tool_on_angle_changed_gtk_range_value_changed, self);
-#line 1903 "StraightenTool.c"
-}
-
-
-static void
-_editing_tools_straighten_tool_on_slider_stopped_delayed_one_shot_callback (gpointer self)
-{
-#line 430 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_on_slider_stopped_delayed ((EditingToolsStraightenTool*) self);
-#line 1912 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_on_angle_changed (EditingToolsStraightenTool* self)
-{
- EditingToolsStraightenToolStraightenToolWindow* _tmp0_;
- GtkScale* _tmp1_;
- gchar* tmp = NULL;
- EditingToolsStraightenToolStraightenToolWindow* _tmp2_;
- GtkScale* _tmp3_;
- gchar* _tmp4_;
- EditingToolsStraightenToolStraightenToolWindow* _tmp5_;
- GtkLabel* _tmp6_;
- const gchar* _tmp7_;
- OneShotScheduler* _tmp8_;
- OneShotScheduler* _tmp10_;
- EditingToolsPhotoCanvas* _tmp11_;
-#line 424 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 425 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->window;
-#line 425 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = _tmp0_->angle_slider;
-#line 425 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->photo_angle = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange));
-#line 426 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = self->priv->window;
-#line 426 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = _tmp2_->angle_slider;
-#line 426 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = g_strdup_printf ("%2.1f°", gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_range_get_type (), GtkRange)));
-#line 426 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- tmp = _tmp4_;
-#line 427 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->priv->window;
-#line 427 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_->angle_label;
-#line 427 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = tmp;
-#line 427 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_label_set_text (_tmp6_, _tmp7_);
-#line 429 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = self->priv->slider_sched;
-#line 429 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp8_ == NULL) {
-#line 1959 "StraightenTool.c"
- OneShotScheduler* _tmp9_;
-#line 430 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = one_shot_scheduler_new ("straighten", _editing_tools_straighten_tool_on_slider_stopped_delayed_one_shot_callback, self);
-#line 430 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _one_shot_scheduler_unref0 (self->priv->slider_sched);
-#line 430 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->slider_sched = _tmp9_;
-#line 1967 "StraightenTool.c"
- }
-#line 431 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = self->priv->slider_sched;
-#line 431 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- one_shot_scheduler_after_timeout (_tmp10_, (guint) EDITING_TOOLS_STRAIGHTEN_TOOL_REPAINT_ON_STOP_DELAY_MSEC, TRUE);
-#line 433 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->use_high_qual = FALSE;
-#line 435 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_adjust_for_rotation (self);
-#line 436 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_update_rotated_surface (self);
-#line 437 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 437 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_repaint (_tmp11_);
-#line 424 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_free0 (tmp);
-#line 1985 "StraightenTool.c"
-}
-
-
-/**
- * @brief Called by the EditingHostPage when a resize event occurs.
- */
-static void
-editing_tools_straighten_tool_on_resized_pixbuf (EditingToolsStraightenTool* self,
- Dimensions* old_dim,
- GdkPixbuf* scaled,
- GdkRectangle* scaled_position)
-{
-#line 443 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 443 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (old_dim != NULL);
-#line 443 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (GDK_IS_PIXBUF (scaled));
-#line 443 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (scaled_position != NULL);
-#line 444 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_prepare_image (self);
-#line 2008 "StraightenTool.c"
-}
-
-
-/**
- * Returns a reference to the current StraightenTool instance's tool window;
- * the PhotoPage uses this to control the tool window's positioning, etc.
- */
-static EditingToolsEditingToolWindow*
-editing_tools_straighten_tool_real_get_tool_window (EditingToolsEditingTool* base)
-{
- EditingToolsStraightenTool * self;
- EditingToolsEditingToolWindow* result = NULL;
- EditingToolsStraightenToolStraightenToolWindow* _tmp0_;
- EditingToolsEditingToolWindow* _tmp1_;
-#line 451 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 452 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->window;
-#line 452 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow));
-#line 452 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = _tmp1_;
-#line 452 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 2033 "StraightenTool.c"
-}
-
-
-/**
- * Draw the rotated photo and grid.
- */
-static void
-editing_tools_straighten_tool_update_rotated_surface (EditingToolsStraightenTool* self)
-{
- cairo_surface_t* _tmp0_;
- cairo_t* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gdouble _tmp4_;
- cairo_t* _tmp5_;
- cairo_t* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 458 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->photo_surf;
-#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->rotate_ctx;
-#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = self->priv->view_width;
-#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = self->priv->view_height;
-#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = self->priv->photo_angle;
-#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_draw_rotated_source (self, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
-#line 460 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->priv->rotate_ctx;
-#line 460 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_line_width (_tmp5_, 1.0);
-#line 461 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = self->priv->rotate_ctx;
-#line 461 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = self->priv->view_width;
-#line 461 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = self->priv->view_height;
-#line 461 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_draw_superimposed_grid (self, _tmp6_, _tmp7_, _tmp8_);
-#line 2078 "StraightenTool.c"
-}
-
-
-/**
- * Render a smaller, rotated version of the image, with a grid superimposed over it.
- *
- * @param ctx The rendering context of a 'scratch' Cairo surface. The tool makes its own
- * surfaces and contexts so it can have things set up exactly like it wants them, so
- * it's not used.
- */
-static void
-editing_tools_straighten_tool_real_paint (EditingToolsEditingTool* base,
- cairo_t* ctx)
-{
- EditingToolsStraightenTool * self;
- gint w = 0;
- EditingToolsPhotoCanvas* _tmp0_;
- GdkWindow* _tmp1_;
- GdkWindow* _tmp2_;
- gint _tmp3_;
- gint h = 0;
- EditingToolsPhotoCanvas* _tmp4_;
- GdkWindow* _tmp5_;
- GdkWindow* _tmp6_;
- gint _tmp7_;
- EditingToolsPhotoCanvas* _tmp8_;
- cairo_t* _tmp9_;
- cairo_t* _tmp10_;
- EditingToolsPhotoCanvas* _tmp11_;
- cairo_t* _tmp12_;
- cairo_t* _tmp13_;
- EditingToolsPhotoCanvas* _tmp14_;
- cairo_t* _tmp15_;
- cairo_t* _tmp16_;
- EditingToolsPhotoCanvas* _tmp17_;
- cairo_t* _tmp18_;
- cairo_t* _tmp19_;
- EditingToolsPhotoCanvas* _tmp20_;
- cairo_t* _tmp21_;
- cairo_t* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- EditingToolsPhotoCanvas* _tmp25_;
- cairo_t* _tmp26_;
- cairo_t* _tmp27_;
- cairo_surface_t* _tmp28_;
- EditingToolsPhotoCanvas* _tmp29_;
- cairo_t* _tmp30_;
- cairo_t* _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- EditingToolsPhotoCanvas* _tmp34_;
- cairo_t* _tmp35_;
- cairo_t* _tmp36_;
- EditingToolsPhotoCanvas* _tmp37_;
- cairo_t* _tmp38_;
- cairo_t* _tmp39_;
- EditingToolsPhotoCanvas* _tmp40_;
- cairo_t* _tmp41_;
- cairo_t* _tmp42_;
- EditingToolsStraightenToolStraightenGuide* _tmp43_;
- EditingToolsPhotoCanvas* _tmp44_;
- cairo_t* _tmp45_;
- cairo_t* _tmp46_;
-#line 471 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 471 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (ctx != NULL);
-#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = editing_tools_photo_canvas_get_drawing_window (_tmp0_);
-#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = _tmp1_;
-#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = gdk_window_get_width (_tmp2_);
-#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp2_);
-#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- w = _tmp3_;
-#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = editing_tools_photo_canvas_get_drawing_window (_tmp4_);
-#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_;
-#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = gdk_window_get_height (_tmp6_);
-#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (_tmp6_);
-#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- h = _tmp7_;
-#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = editing_tools_photo_canvas_get_default_ctx (_tmp8_);
-#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = _tmp9_;
-#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_identity_matrix (_tmp10_);
-#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp10_);
-#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = editing_tools_photo_canvas_get_default_ctx (_tmp11_);
-#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = _tmp12_;
-#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_source_rgba (_tmp13_, 0.0, 0.0, 0.0, 1.0);
-#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp13_);
-#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = editing_tools_photo_canvas_get_default_ctx (_tmp14_);
-#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp16_ = _tmp15_;
-#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_rectangle (_tmp16_, (gdouble) 0, (gdouble) 0, (gdouble) w, (gdouble) h);
-#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp16_);
-#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp18_ = editing_tools_photo_canvas_get_default_ctx (_tmp17_);
-#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp19_ = _tmp18_;
-#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_fill (_tmp19_);
-#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp19_);
-#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp21_ = editing_tools_photo_canvas_get_default_ctx (_tmp20_);
-#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp22_ = _tmp21_;
-#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp23_ = self->priv->view_width;
-#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp24_ = self->priv->view_height;
-#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_translate (_tmp22_, (w - _tmp23_) / 2.0, (h - _tmp24_) / 2.0);
-#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp22_);
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp26_ = editing_tools_photo_canvas_get_default_ctx (_tmp25_);
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp27_ = _tmp26_;
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp28_ = self->priv->rotate_surf;
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_source_surface (_tmp27_, _tmp28_, (gdouble) 0, (gdouble) 0);
-#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp27_);
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp30_ = editing_tools_photo_canvas_get_default_ctx (_tmp29_);
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp31_ = _tmp30_;
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp32_ = self->priv->view_width;
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp33_ = self->priv->view_height;
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_rectangle (_tmp31_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp32_, (gdouble) _tmp33_);
-#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp31_);
-#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp34_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp35_ = editing_tools_photo_canvas_get_default_ctx (_tmp34_);
-#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp36_ = _tmp35_;
-#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_fill (_tmp36_);
-#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp36_);
-#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp38_ = editing_tools_photo_canvas_get_default_ctx (_tmp37_);
-#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp39_ = _tmp38_;
-#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_paint (_tmp39_);
-#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp39_);
-#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp40_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp41_ = editing_tools_photo_canvas_get_default_ctx (_tmp40_);
-#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp42_ = _tmp41_;
-#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_identity_matrix (_tmp42_);
-#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp42_);
-#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp43_ = self->priv->guide;
-#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp44_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp45_ = editing_tools_photo_canvas_get_default_ctx (_tmp44_);
-#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp46_ = _tmp45_;
-#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_draw (_tmp43_, _tmp46_);
-#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (_tmp46_);
-#line 2293 "StraightenTool.c"
-}
-
-
-/**
- * Copy a rotated version of the source image onto the destination
- * context.
- *
- * @param src_surf A Cairo surface containing the source image.
- * @param dest_ctx The rendering context of the destination image.
- * @param src_width The width of the image data in src_surf in pixels.
- * @param src_height The height of the image data in src_surf in pixels.
- * @param angle The angle the source image should be rotated by, in degrees.
- */
-static void
-editing_tools_straighten_tool_draw_rotated_source (EditingToolsStraightenTool* self,
- cairo_surface_t* src_surf,
- cairo_t* dest_ctx,
- gint src_width,
- gint src_height,
- gdouble angle)
-{
- gdouble angle_internal = 0.0;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gdouble _tmp4_;
- gdouble _tmp5_;
- gdouble _tmp6_;
- GdkPoint _tmp7_;
- gint _tmp8_;
- gdouble _tmp9_;
- GdkPoint _tmp10_;
- gint _tmp11_;
- gdouble _tmp12_;
- cairo_filter_t _tmp13_ = 0;
- gboolean _tmp14_;
- cairo_pattern_t* _tmp15_;
-#line 505 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 505 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (src_surf != NULL);
-#line 505 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (dest_ctx != NULL);
-#line 507 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- angle_internal = degrees_to_radians (angle);
-#line 511 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_identity_matrix (dest_ctx);
-#line 512 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_source_rgba (dest_ctx, 0.0, 0.0, 0.0, 1.0);
-#line 513 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->view_width;
-#line 513 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->view_height;
-#line 513 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_rectangle (dest_ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp0_, (gdouble) _tmp1_);
-#line 514 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_fill (dest_ctx);
-#line 519 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_identity_matrix (dest_ctx);
-#line 521 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = self->priv->view_width;
-#line 521 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = self->priv->view_height;
-#line 521 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_translate (dest_ctx, (gdouble) (_tmp2_ / 2), (gdouble) (_tmp3_ / 2));
-#line 522 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = self->priv->rotate_scale;
-#line 522 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->priv->rotate_scale;
-#line 522 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_scale (dest_ctx, 1.0 / _tmp4_, 1.0 / _tmp5_);
-#line 523 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = angle_internal;
-#line 523 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_rotate (dest_ctx, _tmp6_);
-#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = self->priv->rotated_center;
-#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = _tmp7_.x;
-#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = self->priv->preview_scale;
-#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = self->priv->rotated_center;
-#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = _tmp10_.y;
-#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = self->priv->preview_scale;
-#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_translate (dest_ctx, (-_tmp8_) * _tmp9_, (-_tmp11_) * _tmp12_);
-#line 526 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_source_surface (dest_ctx, src_surf, (gdouble) 0, (gdouble) 0);
-#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = self->priv->use_high_qual;
-#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp14_) {
-#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = CAIRO_FILTER_BEST;
-#line 2392 "StraightenTool.c"
- } else {
-#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = CAIRO_FILTER_NEAREST;
-#line 2396 "StraightenTool.c"
- }
-#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = cairo_get_source (dest_ctx);
-#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_pattern_set_filter (_tmp15_, _tmp13_);
-#line 528 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_rectangle (dest_ctx, (gdouble) 0, (gdouble) 0, (gdouble) src_width, (gdouble) src_height);
-#line 529 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_fill (dest_ctx);
-#line 530 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_paint (dest_ctx);
-#line 2408 "StraightenTool.c"
-}
-
-
-/**
- * Superimpose a faint grid over the supplied image.
- *
- * @param width The total width the grid should be drawn to.
- * @param height The total height the grid should be drawn to.
- * @param dest_ctx The rendering context of the destination image.
- */
-static void
-editing_tools_straighten_tool_draw_superimposed_grid (EditingToolsStraightenTool* self,
- cairo_t* dest_ctx,
- gint width,
- gint height)
-{
- gint half_width = 0;
- gint quarter_width = 0;
- gint half_height = 0;
- gint quarter_height = 0;
- EditingToolsPhotoCanvas* _tmp0_;
- EditingToolsPhotoCanvas* _tmp1_;
- EditingToolsPhotoCanvas* _tmp2_;
- gint _tmp3_;
- EditingToolsPhotoCanvas* _tmp4_;
- EditingToolsPhotoCanvas* _tmp5_;
- EditingToolsPhotoCanvas* _tmp6_;
- EditingToolsPhotoCanvas* _tmp7_;
- EditingToolsPhotoCanvas* _tmp8_;
- EditingToolsPhotoCanvas* _tmp9_;
- EditingToolsPhotoCanvas* _tmp10_;
-#line 540 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self));
-#line 540 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (dest_ctx != NULL);
-#line 541 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- half_width = width / 2;
-#line 542 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- quarter_width = width / 4;
-#line 544 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- half_height = height / 2;
-#line 545 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- quarter_height = height / 4;
-#line 547 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_identity_matrix (dest_ctx);
-#line 548 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_source_rgba (dest_ctx, 1.0, 1.0, 1.0, 1.0);
-#line 550 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 550 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_horizontal_line (_tmp0_, dest_ctx, 0, 0, width, FALSE);
-#line 551 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 551 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_horizontal_line (_tmp1_, dest_ctx, 0, half_height, width, FALSE);
-#line 552 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 552 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = self->priv->view_height;
-#line 552 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_horizontal_line (_tmp2_, dest_ctx, 0, _tmp3_ - 1, width, FALSE);
-#line 554 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 554 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_vertical_line (_tmp4_, dest_ctx, 0, 0, height + 1, FALSE);
-#line 555 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 555 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_vertical_line (_tmp5_, dest_ctx, half_width, 0, height + 1, FALSE);
-#line 556 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 556 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_vertical_line (_tmp6_, dest_ctx, width - 1, 0, height + 1, FALSE);
-#line 558 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_source_rgba (dest_ctx, 1.0, 1.0, 1.0, 0.33);
-#line 560 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 560 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_horizontal_line (_tmp7_, dest_ctx, 0, quarter_height, width, FALSE);
-#line 561 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 561 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_horizontal_line (_tmp8_, dest_ctx, 0, half_height + quarter_height, width, FALSE);
-#line 562 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 562 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_vertical_line (_tmp9_, dest_ctx, quarter_width, 0, height, FALSE);
-#line 563 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas;
-#line 563 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_photo_canvas_draw_vertical_line (_tmp10_, dest_ctx, half_width + quarter_width, 0, height, FALSE);
-#line 2500 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_guide_reset (EditingToolsStraightenToolStraightenGuide* self,
- gint x,
- gint y,
- gdouble angle)
-{
- gint _tmp0_[2] = {0};
- gint _tmp1_[2] = {0};
-#line 31 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self));
-#line 32 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_[0] = x;
-#line 32 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_[1] = x;
-#line 32 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- memcpy (self->priv->x, _tmp0_, 2 * sizeof (gint));
-#line 33 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_[0] = y;
-#line 33 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_[1] = y;
-#line 33 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- memcpy (self->priv->y, _tmp1_, 2 * sizeof (gint));
-#line 34 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->is_active = TRUE;
-#line 35 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->angle0 = angle;
-#line 2530 "StraightenTool.c"
-}
-
-
-static gboolean
-editing_tools_straighten_tool_straighten_guide_update (EditingToolsStraightenToolStraightenGuide* self,
- gint x,
- gint y)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_val_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self), FALSE);
-#line 39 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->is_active;
-#line 39 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp0_) {
-#line 2547 "StraightenTool.c"
- gint _tmp1_;
- gint _tmp2_;
-#line 40 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->x[1] = x;
-#line 40 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->x[1];
-#line 41 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->y[1] = y;
-#line 41 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = self->priv->y[1];
-#line 42 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = TRUE;
-#line 42 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 2562 "StraightenTool.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = FALSE;
-#line 45 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 2568 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_guide_clear (EditingToolsStraightenToolStraightenGuide* self)
-{
-#line 48 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self));
-#line 49 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->is_active = FALSE;
-#line 2579 "StraightenTool.c"
-}
-
-
-static gdouble*
-_double_dup (gdouble* self)
-{
- gdouble* dup;
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- dup = g_new0 (gdouble, 1);
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- memcpy (dup, self, sizeof (gdouble));
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return dup;
-#line 2593 "StraightenTool.c"
-}
-
-
-static gpointer
-__double_dup0 (gpointer self)
-{
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return self ? _double_dup (self) : NULL;
-#line 2602 "StraightenTool.c"
-}
-
-
-static gdouble*
-editing_tools_straighten_tool_straighten_guide_get_angle (EditingToolsStraightenToolStraightenGuide* self)
-{
- gdouble* result = NULL;
- gdouble dx = 0.0;
- gint _tmp0_;
- gint _tmp1_;
- gdouble dy = 0.0;
- gint _tmp2_;
- gint _tmp3_;
- gdouble _tmp4_;
- gdouble _tmp5_;
- gdouble _tmp6_;
- gdouble _tmp7_;
- gdouble _tmp8_;
- gdouble _tmp9_;
-#line 52 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_val_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self), NULL);
-#line 53 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->x[1];
-#line 53 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->priv->x[0];
-#line 53 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- dx = (gdouble) (_tmp0_ - _tmp1_);
-#line 54 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = self->priv->y[1];
-#line 54 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = self->priv->y[0];
-#line 54 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- dy = (gdouble) (_tmp2_ - _tmp3_);
-#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = dy;
-#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = dy;
-#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = dx;
-#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = dx;
-#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (((_tmp4_ * _tmp5_) + (_tmp6_ * _tmp7_)) < ((gdouble) 40)) {
-#line 58 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = NULL;
-#line 58 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 2650 "StraightenTool.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = dy;
-#line 61 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = dx;
-#line 61 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (fabs (_tmp8_) > fabs (_tmp9_)) {
-#line 2658 "StraightenTool.c"
- gdouble _tmp10_;
- gdouble _tmp11_;
- gdouble _tmp12_;
- gdouble _tmp13_;
- gdouble* _tmp14_;
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = self->priv->angle0;
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = dx;
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = dy;
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = _tmp10_ + ((atan (_tmp11_ / _tmp12_) / G_PI) * 180);
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = __double_dup0 (&_tmp13_);
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = _tmp14_;
-#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 2678 "StraightenTool.c"
- } else {
- gdouble _tmp15_;
- gdouble _tmp16_;
- gdouble _tmp17_;
- gdouble _tmp18_;
- gdouble* _tmp19_;
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = self->priv->angle0;
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp16_ = dy;
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp17_ = dx;
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp18_ = _tmp15_ - ((atan (_tmp16_ / _tmp17_) / G_PI) * 180);
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp19_ = __double_dup0 (&_tmp18_);
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- result = _tmp19_;
-#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return result;
-#line 2699 "StraightenTool.c"
- }
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_guide_draw (EditingToolsStraightenToolStraightenGuide* self,
- cairo_t* ctx)
-{
- gboolean _tmp0_;
- gdouble* _tmp1_ = NULL;
- gdouble* _tmp2_;
- gdouble angle = 0.0;
- gdouble* _tmp5_;
- gdouble* _tmp6_;
- gdouble _tmp7_;
- gdouble _tmp8_;
- gdouble alpha = 0.0;
- gboolean _tmp9_ = FALSE;
- gdouble _tmp10_;
- gdouble _tmp12_;
- gdouble _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gdouble _tmp18_;
- gdouble _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
-#line 67 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self));
-#line 67 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (ctx != NULL);
-#line 68 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->priv->is_active;
-#line 68 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (!_tmp0_) {
-#line 69 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return;
-#line 2741 "StraightenTool.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = editing_tools_straighten_tool_straighten_guide_get_angle (self);
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = _tmp2_;
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp1_ == NULL) {
-#line 2749 "StraightenTool.c"
- gdouble _tmp3_;
- gdouble* _tmp4_;
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = 0.0;
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = __double_dup0 (&_tmp3_);
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_free0 (_tmp1_);
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = _tmp4_;
-#line 2760 "StraightenTool.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = _tmp1_;
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = NULL;
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = _tmp5_;
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = *_tmp6_;
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_free0 (_tmp6_);
-#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- angle = _tmp7_;
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = angle;
-#line 72 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp8_ == 0.0) {
-#line 73 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_free0 (_tmp1_);
-#line 73 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return;
-#line 2782 "StraightenTool.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- alpha = 1.0;
-#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = angle;
-#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp10_ < EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_ANGLE) {
-#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = TRUE;
-#line 2792 "StraightenTool.c"
- } else {
- gdouble _tmp11_;
-#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = angle;
-#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = _tmp11_ > EDITING_TOOLS_STRAIGHTEN_TOOL_MAX_ANGLE;
-#line 2799 "StraightenTool.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (_tmp9_) {
-#line 77 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- alpha = 0.35;
-#line 2805 "StraightenTool.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = alpha;
-#line 81 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, _tmp12_);
-#line 82 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH[0];
-#line 82 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_dash (ctx, EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH, G_N_ELEMENTS (EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH), _tmp13_ / 2);
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = self->priv->x[0];
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = self->priv->y[0];
-#line 83 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_move_to (ctx, _tmp14_ + 0.5, _tmp15_ + 0.5);
-#line 84 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp16_ = self->priv->x[1];
-#line 84 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp17_ = self->priv->y[1];
-#line 84 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_line_to (ctx, _tmp16_ + 0.5, _tmp17_ + 0.5);
-#line 85 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_stroke (ctx);
-#line 86 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp18_ = EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH[0];
-#line 86 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_dash (ctx, EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH, G_N_ELEMENTS (EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH), (-_tmp18_) / 2);
-#line 87 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp19_ = alpha;
-#line 87 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_set_source_rgba (ctx, 1.0, 1.0, 1.0, _tmp19_);
-#line 88 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp20_ = self->priv->x[0];
-#line 88 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp21_ = self->priv->y[0];
-#line 88 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_move_to (ctx, _tmp20_ + 0.5, _tmp21_ + 0.5);
-#line 89 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp22_ = self->priv->x[1];
-#line 89 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp23_ = self->priv->y[1];
-#line 89 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_line_to (ctx, _tmp22_ + 0.5, _tmp23_ + 0.5);
-#line 90 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- cairo_stroke (ctx);
-#line 67 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_free0 (_tmp1_);
-#line 2853 "StraightenTool.c"
-}
-
-
-static EditingToolsStraightenToolStraightenGuide*
-editing_tools_straighten_tool_straighten_guide_construct (GType object_type)
-{
- EditingToolsStraightenToolStraightenGuide* self = NULL;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = (EditingToolsStraightenToolStraightenGuide*) g_type_create_instance (object_type);
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return self;
-#line 2865 "StraightenTool.c"
-}
-
-
-static EditingToolsStraightenToolStraightenGuide*
-editing_tools_straighten_tool_straighten_guide_new (void)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return editing_tools_straighten_tool_straighten_guide_construct (EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE);
-#line 2874 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_value_straighten_guide_init (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- value->data[0].v_pointer = NULL;
-#line 2883 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_value_straighten_guide_free_value (GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_unref (value->data[0].v_pointer);
-#line 2894 "StraightenTool.c"
- }
-}
-
-
-static void
-editing_tools_straighten_tool_value_straighten_guide_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (src_value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- dest_value->data[0].v_pointer = editing_tools_straighten_tool_straighten_guide_ref (src_value->data[0].v_pointer);
-#line 2907 "StraightenTool.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2911 "StraightenTool.c"
- }
-}
-
-
-static gpointer
-editing_tools_straighten_tool_value_straighten_guide_peek_pointer (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return value->data[0].v_pointer;
-#line 2921 "StraightenTool.c"
-}
-
-
-static gchar*
-editing_tools_straighten_tool_value_straighten_guide_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (collect_values[0].v_pointer) {
-#line 2933 "StraightenTool.c"
- EditingToolsStraightenToolStraightenGuide * object;
- object = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2940 "StraightenTool.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.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 2944 "StraightenTool.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- value->data[0].v_pointer = editing_tools_straighten_tool_straighten_guide_ref (object);
-#line 2948 "StraightenTool.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- value->data[0].v_pointer = NULL;
-#line 2952 "StraightenTool.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return NULL;
-#line 2956 "StraightenTool.c"
-}
-
-
-static gchar*
-editing_tools_straighten_tool_value_straighten_guide_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- EditingToolsStraightenToolStraightenGuide ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (!object_p) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2972 "StraightenTool.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (!value->data[0].v_pointer) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- *object_p = NULL;
-#line 2978 "StraightenTool.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- *object_p = value->data[0].v_pointer;
-#line 2982 "StraightenTool.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- *object_p = editing_tools_straighten_tool_straighten_guide_ref (value->data[0].v_pointer);
-#line 2986 "StraightenTool.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return NULL;
-#line 2990 "StraightenTool.c"
-}
-
-
-static GParamSpec*
-editing_tools_straighten_tool_param_spec_straighten_guide (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- EditingToolsStraightenToolParamSpecStraightenGuide* spec;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_val_if_fail (g_type_is_a (object_type, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE), NULL);
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return G_PARAM_SPEC (spec);
-#line 3010 "StraightenTool.c"
-}
-
-
-static gpointer
-editing_tools_straighten_tool_value_get_straighten_guide (const GValue* value)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE), NULL);
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return value->data[0].v_pointer;
-#line 3021 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_value_set_straighten_guide (GValue* value,
- gpointer v_object)
-{
- EditingToolsStraightenToolStraightenGuide * old;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE));
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE));
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- value->data[0].v_pointer = v_object;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_ref (value->data[0].v_pointer);
-#line 3044 "StraightenTool.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- value->data[0].v_pointer = NULL;
-#line 3048 "StraightenTool.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_unref (old);
-#line 3054 "StraightenTool.c"
- }
-}
-
-
-static void
-editing_tools_straighten_tool_value_take_straighten_guide (GValue* value,
- gpointer v_object)
-{
- EditingToolsStraightenToolStraightenGuide * old;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE));
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- old = value->data[0].v_pointer;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (v_object) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE));
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- value->data[0].v_pointer = v_object;
-#line 3076 "StraightenTool.c"
- } else {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- value->data[0].v_pointer = NULL;
-#line 3080 "StraightenTool.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (old) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_unref (old);
-#line 3086 "StraightenTool.c"
- }
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_guide_class_init (EditingToolsStraightenToolStraightenGuideClass * klass)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_guide_parent_class = g_type_class_peek_parent (klass);
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsStraightenToolStraightenGuideClass *) klass)->finalize = editing_tools_straighten_tool_straighten_guide_finalize;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsStraightenToolStraightenGuidePrivate));
-#line 3100 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_guide_instance_init (EditingToolsStraightenToolStraightenGuide * self)
-{
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv = EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_GET_PRIVATE (self);
-#line 26 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->is_active = FALSE;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->ref_count = 1;
-#line 3113 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_guide_finalize (EditingToolsStraightenToolStraightenGuide * obj)
-{
- EditingToolsStraightenToolStraightenGuide * self;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuide);
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_handlers_destroy (self);
-#line 3125 "StraightenTool.c"
-}
-
-
-static GType
-editing_tools_straighten_tool_straighten_guide_get_type (void)
-{
- static volatile gsize editing_tools_straighten_tool_straighten_guide_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_straighten_tool_straighten_guide_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { editing_tools_straighten_tool_value_straighten_guide_init, editing_tools_straighten_tool_value_straighten_guide_free_value, editing_tools_straighten_tool_value_straighten_guide_copy_value, editing_tools_straighten_tool_value_straighten_guide_peek_pointer, "p", editing_tools_straighten_tool_value_straighten_guide_collect_value, "p", editing_tools_straighten_tool_value_straighten_guide_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsStraightenToolStraightenGuideClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_straighten_tool_straighten_guide_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsStraightenToolStraightenGuide), 0, (GInstanceInitFunc) editing_tools_straighten_tool_straighten_guide_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType editing_tools_straighten_tool_straighten_guide_type_id;
- editing_tools_straighten_tool_straighten_guide_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EditingToolsStraightenToolStraightenGuide", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&editing_tools_straighten_tool_straighten_guide_type_id__volatile, editing_tools_straighten_tool_straighten_guide_type_id);
- }
- return editing_tools_straighten_tool_straighten_guide_type_id__volatile;
-}
-
-
-static gpointer
-editing_tools_straighten_tool_straighten_guide_ref (gpointer instance)
-{
- EditingToolsStraightenToolStraightenGuide * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return instance;
-#line 3154 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_guide_unref (gpointer instance)
-{
- EditingToolsStraightenToolStraightenGuide * self;
- self = instance;
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_GET_CLASS (self)->finalize (self);
-#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3169 "StraightenTool.c"
- }
-}
-
-
-/**
- * Prepare straighten tool's window for use and initialize all its controls.
- *
- * @param container The application's main window.
- */
-static void
-_editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 147 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked ((EditingToolsStraightenToolStraightenToolWindow*) self);
-#line 3185 "StraightenTool.c"
-}
-
-
-static EditingToolsStraightenToolStraightenToolWindow*
-editing_tools_straighten_tool_straighten_tool_window_construct (GType object_type,
- GtkWindow* container)
-{
- EditingToolsStraightenToolStraightenToolWindow * self = NULL;
- GtkScale* _tmp0_;
- GtkScale* _tmp1_;
- GtkScale* _tmp2_;
- GtkScale* _tmp3_;
- GtkLabel* _tmp4_;
- GtkLabel* _tmp5_;
- GtkLabel* _tmp6_;
- GtkLabel* _tmp7_;
- GtkLabel* _tmp8_;
- GtkLabel* _tmp9_;
- GtkLabel* _tmp10_;
- GtkLabel* _tmp11_;
- GtkLabel* _tmp12_;
- GtkBox* slider_layout = NULL;
- GtkBox* _tmp13_;
- GtkScale* _tmp14_;
- GtkBox* button_layout = NULL;
- GtkBox* _tmp15_;
- GtkButton* _tmp16_;
- GtkButton* _tmp17_;
- GtkButton* _tmp18_;
- GtkButton* _tmp19_;
- GtkButton* _tmp20_;
- GtkButton* _tmp21_;
- GtkBox* main_layout = NULL;
- GtkBox* _tmp22_;
- GtkLabel* _tmp23_;
- GtkLabel* _tmp24_;
- GtkButton* _tmp25_;
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_val_if_fail (GTK_IS_WINDOW (container), NULL);
-#line 110 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = (EditingToolsStraightenToolStraightenToolWindow*) editing_tools_editing_tool_window_construct (object_type, container);
-#line 112 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->angle_slider;
-#line 112 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_range_set_min_slider_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_SLIDER_SIZE);
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = self->angle_slider;
-#line 113 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_SLIDER_SIZE, -1);
-#line 114 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = self->angle_slider;
-#line 114 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), 0.0);
-#line 115 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = self->angle_slider;
-#line 115 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_scale_set_draw_value (_tmp3_, FALSE);
-#line 117 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = self->description_label;
-#line 117 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING);
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = self->description_label;
-#line 118 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING);
-#line 119 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp6_ = self->description_label;
-#line 119 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), 0);
-#line 120 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp7_ = self->description_label;
-#line 120 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), 0);
-#line 122 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp8_ = self->angle_label;
-#line 122 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), 0);
-#line 123 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp9_ = self->angle_label;
-#line 123 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), 0);
-#line 124 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp10_ = self->angle_label;
-#line 124 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), 0);
-#line 125 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp11_ = self->angle_label;
-#line 125 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), 0);
-#line 126 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp12_ = self->angle_label;
-#line 126 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_LABEL_SIZE, -1);
-#line 128 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp13_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING);
-#line 128 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp13_);
-#line 128 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- slider_layout = _tmp13_;
-#line 129 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp14_ = self->angle_slider;
-#line 129 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_box_pack_start (slider_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 131 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp15_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING);
-#line 131 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp15_);
-#line 131 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- button_layout = _tmp15_;
-#line 132 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp16_ = self->cancel_button;
-#line 132 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_BUTTON_SIZE, -1);
-#line 133 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp17_ = self->reset_button;
-#line 133 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_BUTTON_SIZE, -1);
-#line 134 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp18_ = self->ok_button;
-#line 134 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_BUTTON_SIZE, -1);
-#line 135 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp19_ = self->cancel_button;
-#line 135 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_box_pack_start (button_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp20_ = self->reset_button;
-#line 136 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_box_pack_start (button_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 137 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp21_ = self->ok_button;
-#line 137 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_box_pack_start (button_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 139 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp22_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-#line 139 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp22_);
-#line 139 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- main_layout = _tmp22_;
-#line 140 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp23_ = self->description_label;
-#line 140 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_box_pack_start (main_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 141 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_box_pack_start (main_layout, G_TYPE_CHECK_INSTANCE_CAST (slider_layout, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 142 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp24_ = self->angle_label;
-#line 142 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_box_pack_start (main_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 143 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_box_pack_start (main_layout, G_TYPE_CHECK_INSTANCE_CAST (button_layout, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 145 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (main_layout, gtk_widget_get_type (), GtkWidget));
-#line 147 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp25_ = self->reset_button;
-#line 147 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_signal_connect_object (_tmp25_, "clicked", (GCallback) _editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked_gtk_button_clicked, self, 0);
-#line 149 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_window_set_position (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GTK_WIN_POS_CENTER_ON_PARENT);
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (main_layout);
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (button_layout);
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (slider_layout);
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return self;
-#line 3353 "StraightenTool.c"
-}
-
-
-static EditingToolsStraightenToolStraightenToolWindow*
-editing_tools_straighten_tool_straighten_tool_window_new (GtkWindow* container)
-{
-#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- return editing_tools_straighten_tool_straighten_tool_window_construct (EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, container);
-#line 3362 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked (EditingToolsStraightenToolStraightenToolWindow* self)
-{
- GtkScale* _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_return_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_TOOL_WINDOW (self));
-#line 153 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = self->angle_slider;
-#line 153 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), 0.0);
-#line 3376 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_tool_window_class_init (EditingToolsStraightenToolStraightenToolWindowClass * klass)
-{
-#line 94 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_straighten_tool_window_parent_class = g_type_class_peek_parent (klass);
-#line 94 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- G_OBJECT_CLASS (klass)->finalize = editing_tools_straighten_tool_straighten_tool_window_finalize;
-#line 3387 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_tool_window_instance_init (EditingToolsStraightenToolStraightenToolWindow * self)
-{
- GtkScale* _tmp0_;
- GtkLabel* _tmp1_;
- GtkLabel* _tmp2_;
- GtkButton* _tmp3_;
- GtkButton* _tmp4_;
- GtkButton* _tmp5_;
-#line 97 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_ANGLE, EDITING_TOOLS_STRAIGHTEN_TOOL_MAX_ANGLE, EDITING_TOOLS_STRAIGHTEN_TOOL_INCREMENT);
-#line 97 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp0_);
-#line 97 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->angle_slider = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp1_ = (GtkLabel*) gtk_label_new ("");
-#line 98 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp1_);
-#line 98 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->angle_label = _tmp1_;
-#line 99 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp2_ = (GtkLabel*) gtk_label_new (_ ("Angle:"));
-#line 99 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp2_);
-#line 99 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->description_label = _tmp2_;
-#line 100 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp3_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("_Straighten"));
-#line 100 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp3_);
-#line 100 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->ok_button = _tmp3_;
-#line 101 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp4_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL);
-#line 101 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp4_);
-#line 101 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->cancel_button = _tmp4_;
-#line 102 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp5_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("_Reset"));
-#line 102 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_object_ref_sink (_tmp5_);
-#line 102 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->reset_button = _tmp5_;
-#line 3436 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_straighten_tool_window_finalize (GObject * obj)
-{
- EditingToolsStraightenToolStraightenToolWindow * self;
-#line 94 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, EditingToolsStraightenToolStraightenToolWindow);
-#line 97 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->angle_slider);
-#line 98 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->angle_label);
-#line 99 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->description_label);
-#line 100 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->ok_button);
-#line 101 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->cancel_button);
-#line 102 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->reset_button);
-#line 94 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- G_OBJECT_CLASS (editing_tools_straighten_tool_straighten_tool_window_parent_class)->finalize (obj);
-#line 3460 "StraightenTool.c"
-}
-
-
-static GType
-editing_tools_straighten_tool_straighten_tool_window_get_type (void)
-{
- static volatile gsize editing_tools_straighten_tool_straighten_tool_window_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_straighten_tool_straighten_tool_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsStraightenToolStraightenToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_straighten_tool_straighten_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsStraightenToolStraightenToolWindow), 0, (GInstanceInitFunc) editing_tools_straighten_tool_straighten_tool_window_instance_init, NULL };
- GType editing_tools_straighten_tool_straighten_tool_window_type_id;
- editing_tools_straighten_tool_straighten_tool_window_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, "EditingToolsStraightenToolStraightenToolWindow", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_straighten_tool_straighten_tool_window_type_id__volatile, editing_tools_straighten_tool_straighten_tool_window_type_id);
- }
- return editing_tools_straighten_tool_straighten_tool_window_type_id__volatile;
-}
-
-
-static void
-editing_tools_straighten_tool_class_init (EditingToolsStraightenToolClass * klass)
-{
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- editing_tools_straighten_tool_parent_class = g_type_class_peek_parent (klass);
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_straighten_tool_finalize;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- g_type_class_add_private (klass, sizeof (EditingToolsStraightenToolPrivate));
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->on_left_click = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_straighten_tool_real_on_left_click;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->on_left_released = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_straighten_tool_real_on_left_released;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->on_motion = (void (*) (EditingToolsEditingTool *, gint, gint, GdkModifierType)) editing_tools_straighten_tool_real_on_motion;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_straighten_tool_real_on_keypress;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_straighten_tool_real_activate;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_straighten_tool_real_deactivate;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_straighten_tool_real_get_tool_window;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_straighten_tool_real_paint;
-#line 3503 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_instance_init (EditingToolsStraightenTool * self)
-{
- EditingToolsStraightenToolStraightenGuide* _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv = EDITING_TOOLS_STRAIGHTEN_TOOL_GET_PRIVATE (self);
-#line 170 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->photo_angle = 0.0;
-#line 174 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->use_high_qual = TRUE;
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->slider_sched = NULL;
-#line 181 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _tmp0_ = editing_tools_straighten_tool_straighten_guide_new ();
-#line 181 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self->priv->guide = _tmp0_;
-#line 3523 "StraightenTool.c"
-}
-
-
-static void
-editing_tools_straighten_tool_finalize (EditingToolsEditingTool * obj)
-{
- EditingToolsStraightenTool * self;
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool);
-#line 157 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _g_object_unref0 (self->priv->window);
-#line 160 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_surface_destroy0 (self->priv->photo_surf);
-#line 164 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_surface_destroy0 (self->priv->rotate_surf);
-#line 165 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _cairo_destroy0 (self->priv->rotate_ctx);
-#line 175 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _one_shot_scheduler_unref0 (self->priv->slider_sched);
-#line 181 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- _editing_tools_straighten_tool_straighten_guide_unref0 (self->priv->guide);
-#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala"
- EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_straighten_tool_parent_class)->finalize (obj);
-#line 3547 "StraightenTool.c"
-}
-
-
-/**
- * An editing tool that allows one to introduce or remove a Dutch angle from
- * a photograph.
- */
-GType
-editing_tools_straighten_tool_get_type (void)
-{
- static volatile gsize editing_tools_straighten_tool_type_id__volatile = 0;
- if (g_once_init_enter (&editing_tools_straighten_tool_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EditingToolsStraightenToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_straighten_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsStraightenTool), 0, (GInstanceInitFunc) editing_tools_straighten_tool_instance_init, NULL };
- GType editing_tools_straighten_tool_type_id;
- editing_tools_straighten_tool_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL, "EditingToolsStraightenTool", &g_define_type_info, 0);
- g_once_init_leave (&editing_tools_straighten_tool_type_id__volatile, editing_tools_straighten_tool_type_id);
- }
- return editing_tools_straighten_tool_type_id__volatile;
-}
-
-
-
diff --git a/src/editing_tools/StraightenTool.vala b/src/editing_tools/StraightenTool.vala
index 023b636..f427b99 100644
--- a/src/editing_tools/StraightenTool.vala
+++ b/src/editing_tools/StraightenTool.vala
@@ -109,7 +109,6 @@ public class StraightenTool : EditingTool {
public StraightenToolWindow(Gtk.Window container) {
base(container);
- angle_slider.set_min_slider_size(MIN_SLIDER_SIZE);
angle_slider.set_size_request(MIN_SLIDER_SIZE, -1);
angle_slider.set_value(0.0);
angle_slider.set_draw_value(false);
diff --git a/src/events/EventDirectoryItem.c b/src/events/EventDirectoryItem.c
deleted file mode 100644
index 9862c4b..0000000
--- a/src/events/EventDirectoryItem.c
+++ /dev/null
@@ -1,1897 +0,0 @@
-/* EventDirectoryItem.c generated by valac 0.40.4, the Vala compiler
- * generated from EventDirectoryItem.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <cairo.h>
-#include <gdk/gdk.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gee.h>
-#include <pango/pango.h>
-#include <gio/gio.h>
-#include <glib/gi18n-lib.h>
-
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_EVENT_DIRECTORY_ITEM (event_directory_item_get_type ())
-#define EVENT_DIRECTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem))
-#define EVENT_DIRECTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemClass))
-#define IS_EVENT_DIRECTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_DIRECTORY_ITEM))
-#define IS_EVENT_DIRECTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_DIRECTORY_ITEM))
-#define EVENT_DIRECTORY_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemClass))
-
-typedef struct _EventDirectoryItem EventDirectoryItem;
-typedef struct _EventDirectoryItemClass EventDirectoryItemClass;
-typedef struct _EventDirectoryItemPrivate EventDirectoryItemPrivate;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-enum {
- EVENT_DIRECTORY_ITEM_0_PROPERTY,
- EVENT_DIRECTORY_ITEM_NUM_PROPERTIES
-};
-static GParamSpec* event_directory_item_properties[EVENT_DIRECTORY_ITEM_NUM_PROPERTIES];
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ())
-#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection))
-#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION))
-#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION))
-#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-
-typedef struct _EventSourceCollection EventSourceCollection;
-typedef struct _EventSourceCollectionClass EventSourceCollectionClass;
-
-#define TYPE_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-typedef struct _Scaling Scaling;
-#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_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 PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
-
-#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ())
-
-#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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-struct _EventDirectoryItem {
- CheckerboardItem parent_instance;
- EventDirectoryItemPrivate * priv;
- Event* event;
-};
-
-struct _EventDirectoryItemClass {
- CheckerboardItemClass parent_class;
-};
-
-struct _EventDirectoryItemPrivate {
- GdkRectangle paul_lynde;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef enum {
- PHOTO_EXCEPTION_NONE = 0,
- PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
- PHOTO_EXCEPTION_CROP = 1 << 1,
- PHOTO_EXCEPTION_REDEYE = 1 << 2,
- PHOTO_EXCEPTION_ADJUST = 1 << 3,
- PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
- PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
-} PhotoException;
-
-typedef void (*ThumbnailCacheAsyncFetchCallback) (GdkPixbuf* pixbuf, GdkPixbuf* unscaled, Dimensions* dim, GdkInterpType interp, GError* err, void* user_data);
-typedef enum {
- THUMBNAIL_CACHE_SIZE_LARGEST = 360,
- THUMBNAIL_CACHE_SIZE_BIG = 360,
- THUMBNAIL_CACHE_SIZE_MEDIUM = 128,
- THUMBNAIL_CACHE_SIZE_SMALLEST = 128
-} ThumbnailCacheSize;
-
-
-static gpointer event_directory_item_parent_class = NULL;
-extern EventSourceCollection* event_global;
-extern Scaling event_directory_item_squared_scaling;
-Scaling event_directory_item_squared_scaling = {0};
-
-GType data_object_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType event_directory_item_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-#define EVENT_DIRECTORY_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemPrivate))
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType event_source_collection_get_type (void) G_GNUC_CONST;
-static void event_directory_item_on_events_altered (EventDirectoryItem* self,
- GeeMap* map);
-static void _event_directory_item_on_events_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void scaling_to_fill_viewport (Dimensions* viewport,
- Scaling* result);
-static gint event_directory_item_get_CROPPED_SCALE (void);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-EventDirectoryItem* event_directory_item_new (Event* event);
-EventDirectoryItem* event_directory_item_construct (GType object_type,
- Event* event);
-static gchar* event_directory_item_get_formatted_title (Event* event);
-gchar* event_source_get_comment (EventSource* self);
-CheckerboardItem* checkerboard_item_construct (GType object_type,
- ThumbnailSource* source,
- Dimensions* initial_pixbuf_dim,
- const gchar* title,
- const gchar* comment,
- gboolean marked_up,
- PangoAlignment alignment);
-GType media_source_get_type (void) G_GNUC_CONST;
-static void event_directory_item_get_paul_lynde_rect (MediaSource* source,
- GdkRectangle* result);
-MediaSource* event_get_primary_source (Event* self);
-void checkerboard_item_clear_image (CheckerboardItem* self,
- Dimensions* dim);
-void dimensions_for_rectangle (GdkRectangle* rect,
- Dimensions* result);
-void scaling_get_scaled_dimensions (Scaling *self,
- Dimensions* original,
- Dimensions* result);
-GType photo_exception_get_type (void) G_GNUC_CONST;
-void media_source_get_dimensions (MediaSource* self,
- PhotoException disallowed_steps,
- Dimensions* result);
-static GdkPixbuf* event_directory_item_get_paul_lynde (MediaSource* media,
- GdkRectangle* paul_lynde,
- GError** error);
-GdkPixbuf* media_source_get_preview_pixbuf (MediaSource* self,
- Scaling* scaling,
- GError** error);
-void thumbnail_cache_fetch_async_scaled (ThumbnailSource* source,
- gint scale,
- Dimensions* dim,
- GdkInterpType interp,
- ThumbnailCacheAsyncFetchCallback callback,
- void* callback_target,
- GCancellable* cancellable);
-GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
-#define THUMBNAIL_CACHE_DEFAULT_INTERP GDK_INTERP_HYPER
-static void ___lambda19_ (void);
-static void ____lambda19__thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err,
- gpointer self);
-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;
-GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self,
- Scaling* scaling,
- GError** error);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-void clamp_rectangle (GdkRectangle* original,
- Dimensions* max,
- GdkRectangle* result);
-gboolean media_source_collection_has_photo (GeeCollection* media);
-GeeCollection* event_source_get_media (EventSource* self);
-gboolean media_source_collection_has_video (GeeCollection* media);
-gint event_source_get_media_count (EventSource* self);
-gchar* event_get_formatted_daterange (Event* self);
-gchar* data_object_get_name (DataObject* self);
-gchar* guarded_markup_escape_text (const gchar* plain);
-static void event_directory_item_real_exposed (CheckerboardItem* base);
-gboolean checkerboard_item_is_exposed (CheckerboardItem* self);
-void checkerboard_item_set_image (CheckerboardItem* self,
- GdkPixbuf* pixbuf);
-gchar* data_object_to_string (DataObject* self);
-static void event_directory_item_update_comment (EventDirectoryItem* self,
- gboolean init);
-void checkerboard_item_exposed (CheckerboardItem* self);
-static void event_directory_item_real_unexposed (CheckerboardItem* base);
-void checkerboard_item_unexposed (CheckerboardItem* self);
-void checkerboard_item_set_title (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-static void event_directory_item_real_thumbnail_altered (ThumbnailView* base);
-static void event_directory_item_real_paint_shadow (CheckerboardItem* base,
- cairo_t* ctx,
- Dimensions* dimensions,
- GdkPoint* origin,
- gint radius,
- gfloat initial_alpha);
-void checkerboard_item_paint_shadow (CheckerboardItem* self,
- cairo_t* ctx,
- Dimensions* dimensions,
- GdkPoint* origin,
- gint radius,
- gfloat initial_alpha);
-static void event_directory_item_real_paint_border (CheckerboardItem* base,
- cairo_t* ctx,
- Dimensions* object_dimensions,
- GdkPoint* object_origin,
- gint border_width);
-void checkerboard_item_get_border_dimensions (Dimensions* object_dim,
- gint border_width,
- Dimensions* result);
-void checkerboard_item_get_border_origin (GdkPoint* object_origin,
- gint border_width,
- GdkPoint* result);
-void draw_rounded_corners_filled (cairo_t* ctx,
- Dimensions* dim,
- GdkPoint* origin,
- gdouble radius_proportion);
-static void event_directory_item_real_paint_image (CheckerboardItem* base,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin);
-void context_rounded_corners (cairo_t* cx,
- Dimensions* dim,
- GdkPoint* origin,
- gdouble radius_proportion);
-gboolean is_string_empty (const gchar* s);
-void checkerboard_item_clear_comment (CheckerboardItem* self);
-void checkerboard_item_set_comment (CheckerboardItem* self,
- const gchar* text,
- gboolean marked_up,
- PangoAlignment alignment);
-gint thumbnail_cache_size_get_scale (ThumbnailCacheSize self);
-static void event_directory_item_finalize (GObject * obj);
-static void _vala_event_directory_item_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-
-
-static void
-_event_directory_item_on_events_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 39 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- event_directory_item_on_events_altered ((EventDirectoryItem*) self, items);
-#line 560 "EventDirectoryItem.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 26 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return self ? g_object_ref (self) : NULL;
-#line 569 "EventDirectoryItem.c"
-}
-
-
-EventDirectoryItem*
-event_directory_item_construct (GType object_type,
- Event* event)
-{
- EventDirectoryItem * self = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_ = {0};
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- Event* _tmp9_;
- MediaSource* _tmp10_;
- MediaSource* _tmp11_;
- GdkRectangle _tmp12_ = {0};
- GdkRectangle _tmp13_;
- Dimensions _tmp14_ = {0};
- EventSourceCollection* _tmp15_;
-#line 22 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = event_directory_item_get_CROPPED_SCALE ();
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = event_directory_item_get_CROPPED_SCALE ();
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = _tmp2_;
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_init (&_tmp4_, _tmp1_, _tmp3_);
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = event_directory_item_get_formatted_title (event);
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp6_ = _tmp5_;
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp7_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp8_ = _tmp7_;
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self = (EventDirectoryItem*) checkerboard_item_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), &_tmp4_, _tmp6_, _tmp8_, TRUE, PANGO_ALIGN_CENTER);
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp8_);
-#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp6_);
-#line 26 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp9_ = _g_object_ref0 (event);
-#line 26 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (self->event);
-#line 26 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self->event = _tmp9_;
-#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp10_ = event_get_primary_source (event);
-#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp11_ = _tmp10_;
-#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- event_directory_item_get_paul_lynde_rect (_tmp11_, &_tmp12_);
-#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self->priv->paul_lynde = _tmp12_;
-#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp11_);
-#line 32 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp13_ = self->priv->paul_lynde;
-#line 32 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_for_rectangle (&_tmp13_, &_tmp14_);
-#line 32 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp14_);
-#line 35 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp15_ = event_global;
-#line 35 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _event_directory_item_on_events_altered_data_collection_items_altered, self, 0);
-#line 22 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return self;
-#line 648 "EventDirectoryItem.c"
-}
-
-
-EventDirectoryItem*
-event_directory_item_new (Event* event)
-{
-#line 22 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return event_directory_item_construct (TYPE_EVENT_DIRECTORY_ITEM, event);
-#line 657 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_get_paul_lynde_rect (MediaSource* source,
- GdkRectangle* result)
-{
- Dimensions scaled = {0};
- Dimensions _tmp0_ = {0};
- Dimensions _tmp1_ = {0};
- GdkRectangle paul_lynde = {0};
- Dimensions _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- Dimensions _tmp6_;
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- Dimensions _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 43 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (source));
-#line 44 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- media_source_get_dimensions (source, PHOTO_EXCEPTION_NONE, &_tmp0_);
-#line 44 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- scaling_get_scaled_dimensions (&event_directory_item_squared_scaling, &_tmp0_, &_tmp1_);
-#line 44 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- scaled = _tmp1_;
-#line 46 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- memset (&paul_lynde, 0, sizeof (GdkRectangle));
-#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = scaled;
-#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = _tmp2_.width;
-#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp4_ = event_directory_item_get_CROPPED_SCALE ();
-#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = _tmp4_;
-#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp6_ = scaled;
-#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp7_ = _tmp6_.width;
-#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- paul_lynde.x = CLAMP (_tmp3_ - _tmp5_, 0, _tmp7_) / 2;
-#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp8_ = scaled;
-#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp9_ = _tmp8_.height;
-#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp10_ = event_directory_item_get_CROPPED_SCALE ();
-#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp11_ = _tmp10_;
-#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp12_ = scaled;
-#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp13_ = _tmp12_.height;
-#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- paul_lynde.y = CLAMP (_tmp9_ - _tmp11_, 0, _tmp13_) / 2;
-#line 49 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp14_ = event_directory_item_get_CROPPED_SCALE ();
-#line 49 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp15_ = _tmp14_;
-#line 49 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- paul_lynde.width = _tmp15_;
-#line 50 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp16_ = event_directory_item_get_CROPPED_SCALE ();
-#line 50 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp17_ = _tmp16_;
-#line 50 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- paul_lynde.height = _tmp17_;
-#line 52 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- *result = paul_lynde;
-#line 52 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return;
-#line 739 "EventDirectoryItem.c"
-}
-
-
-static void
-___lambda19_ (void)
-{
-}
-
-
-static void
-____lambda19__thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf,
- GdkPixbuf* unscaled,
- Dimensions* dim,
- GdkInterpType interp,
- GError* err,
- gpointer self)
-{
-#line 62 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- ___lambda19_ ();
-#line 759 "EventDirectoryItem.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return self ? g_error_copy (self) : NULL;
-#line 768 "EventDirectoryItem.c"
-}
-
-
-static GdkPixbuf*
-event_directory_item_get_paul_lynde (MediaSource* media,
- GdkRectangle* paul_lynde,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- Dimensions thumbnail_dimensions = {0};
- GdkPixbuf* _tmp13_;
- Dimensions _tmp14_ = {0};
- gboolean _tmp15_ = FALSE;
- Dimensions _tmp16_;
- gint _tmp17_;
- GdkRectangle _tmp18_;
- gint _tmp19_;
- GdkRectangle _tmp32_;
- Dimensions _tmp33_;
- GdkRectangle _tmp34_ = {0};
- GdkPixbuf* _tmp35_;
- GdkRectangle _tmp36_;
- gint _tmp37_;
- GdkRectangle _tmp38_;
- gint _tmp39_;
- GdkRectangle _tmp40_;
- gint _tmp41_;
- GdkRectangle _tmp42_;
- gint _tmp43_;
- GdkPixbuf* _tmp44_;
- GError * _inner_error_ = NULL;
-#line 56 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL);
-#line 56 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_val_if_fail (paul_lynde != NULL, NULL);
-#line 805 "EventDirectoryItem.c"
- {
- GdkPixbuf* _tmp0_ = NULL;
- Scaling _tmp1_;
- GdkPixbuf* _tmp2_;
- GdkPixbuf* _tmp3_;
-#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = event_directory_item_squared_scaling;
-#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = media_source_get_preview_pixbuf (media, &_tmp1_, &_inner_error_);
-#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = _tmp2_;
-#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 819 "EventDirectoryItem.c"
- goto __catch58_g_error;
- }
-#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = NULL;
-#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (pixbuf);
-#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- pixbuf = _tmp3_;
-#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp0_);
-#line 832 "EventDirectoryItem.c"
- }
- goto __finally58;
- __catch58_g_error:
- {
- GError* _error_ = NULL;
- Dimensions _tmp4_ = {0};
-#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _error_ = _inner_error_;
-#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _inner_error_ = NULL;
-#line 62 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_init (&_tmp4_, (gint) THUMBNAIL_CACHE_SIZE_BIG, (gint) THUMBNAIL_CACHE_SIZE_BIG);
-#line 62 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- thumbnail_cache_fetch_async_scaled (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_BIG, &_tmp4_, THUMBNAIL_CACHE_DEFAULT_INTERP, ____lambda19__thumbnail_cache_async_fetch_callback, NULL, NULL);
-#line 65 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_LIBRARY_PHOTO)) {
-#line 849 "EventDirectoryItem.c"
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp5_;
- GdkPixbuf* _tmp6_ = NULL;
- LibraryPhoto* _tmp7_;
- Scaling _tmp8_;
- GdkPixbuf* _tmp9_;
- GdkPixbuf* _tmp10_;
-#line 66 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 66 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- photo = _tmp5_;
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp7_ = photo;
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp8_ = event_directory_item_squared_scaling;
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp9_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp8_, &_inner_error_);
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp6_ = _tmp9_;
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (photo);
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_error_free0 (_error_);
-#line 875 "EventDirectoryItem.c"
- goto __finally58;
- }
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp10_ = _tmp6_;
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp6_ = NULL;
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (pixbuf);
-#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- pixbuf = _tmp10_;
-#line 65 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp6_);
-#line 65 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (photo);
-#line 890 "EventDirectoryItem.c"
- } else {
- GError* _tmp11_;
- GError* _tmp12_;
-#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp11_ = _error_;
-#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp12_ = _g_error_copy0 (_tmp11_);
-#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _inner_error_ = _tmp12_;
-#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_error_free0 (_error_);
-#line 902 "EventDirectoryItem.c"
- goto __finally58;
- }
-#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_error_free0 (_error_);
-#line 907 "EventDirectoryItem.c"
- }
- __finally58:
-#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_propagate_error (error, _inner_error_);
-#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (pixbuf);
-#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return NULL;
-#line 918 "EventDirectoryItem.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp13_ = pixbuf;
-#line 73 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_for_pixbuf (_tmp13_, &_tmp14_);
-#line 73 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- thumbnail_dimensions = _tmp14_;
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp16_ = thumbnail_dimensions;
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp17_ = _tmp16_.width;
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp18_ = *paul_lynde;
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp19_ = _tmp18_.width;
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (_tmp17_ > (2 * _tmp19_)) {
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp15_ = TRUE;
-#line 938 "EventDirectoryItem.c"
- } else {
- Dimensions _tmp20_;
- gint _tmp21_;
- GdkRectangle _tmp22_;
- gint _tmp23_;
-#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp20_ = thumbnail_dimensions;
-#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp21_ = _tmp20_.height;
-#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp22_ = *paul_lynde;
-#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp23_ = _tmp22_.height;
-#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp15_ = _tmp21_ > (_tmp23_ * 2);
-#line 954 "EventDirectoryItem.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (_tmp15_) {
-#line 958 "EventDirectoryItem.c"
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp24_;
- GdkPixbuf* _tmp25_ = NULL;
- LibraryPhoto* _tmp26_;
- Scaling _tmp27_;
- GdkPixbuf* _tmp28_;
- GdkPixbuf* _tmp29_;
- GdkPixbuf* _tmp30_;
- Dimensions _tmp31_ = {0};
-#line 77 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 77 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- photo = _tmp24_;
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp26_ = photo;
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp27_ = event_directory_item_squared_scaling;
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp28_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp27_, &_inner_error_);
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp25_ = _tmp28_;
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_propagate_error (error, _inner_error_);
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (photo);
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (pixbuf);
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return NULL;
-#line 990 "EventDirectoryItem.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp29_ = _tmp25_;
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp25_ = NULL;
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (pixbuf);
-#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- pixbuf = _tmp29_;
-#line 79 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp30_ = pixbuf;
-#line 79 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_for_pixbuf (_tmp30_, &_tmp31_);
-#line 79 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- thumbnail_dimensions = _tmp31_;
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp25_);
-#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (photo);
-#line 1010 "EventDirectoryItem.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp32_ = *paul_lynde;
-#line 83 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp33_ = thumbnail_dimensions;
-#line 83 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- clamp_rectangle (&_tmp32_, &_tmp33_, &_tmp34_);
-#line 83 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- *paul_lynde = _tmp34_;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp35_ = pixbuf;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp36_ = *paul_lynde;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp37_ = _tmp36_.x;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp38_ = *paul_lynde;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp39_ = _tmp38_.y;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp40_ = *paul_lynde;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp41_ = _tmp40_.width;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp42_ = *paul_lynde;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp43_ = _tmp42_.height;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp44_ = gdk_pixbuf_new_subpixbuf (_tmp35_, _tmp37_, _tmp39_, _tmp41_, _tmp43_);
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- result = _tmp44_;
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (pixbuf);
-#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return result;
-#line 1046 "EventDirectoryItem.c"
-}
-
-
-static gchar*
-event_directory_item_get_formatted_title (Event* event)
-{
- gchar* result = NULL;
- gboolean has_photos = FALSE;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- gboolean _tmp2_;
- gboolean has_videos = FALSE;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- gboolean _tmp5_;
- gint count = 0;
- gchar* count_text = NULL;
- gchar* _tmp6_;
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_;
- gchar* daterange = NULL;
- gchar* _tmp20_;
- gchar* name = NULL;
- gchar* _tmp21_;
- gboolean _tmp22_ = FALSE;
- const gchar* _tmp23_;
-#line 90 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
-#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = _tmp0_;
-#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = media_source_collection_has_photo (_tmp1_);
-#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp1_);
-#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- has_photos = _tmp2_;
-#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
-#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp4_ = _tmp3_;
-#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = media_source_collection_has_video (_tmp4_);
-#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp4_);
-#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- has_videos = _tmp5_;
-#line 94 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
-#line 95 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp6_ = g_strdup ("");
-#line 95 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- count_text = _tmp6_;
-#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp8_ = has_photos;
-#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (_tmp8_) {
-#line 1105 "EventDirectoryItem.c"
- gboolean _tmp9_;
-#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp9_ = has_videos;
-#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp7_ = _tmp9_;
-#line 1111 "EventDirectoryItem.c"
- } else {
-#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp7_ = FALSE;
-#line 1115 "EventDirectoryItem.c"
- }
-#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (_tmp7_) {
-#line 1119 "EventDirectoryItem.c"
- gint _tmp10_;
- gint _tmp11_;
- gchar* _tmp12_;
-#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp10_ = count;
-#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp11_ = count;
-#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp12_ = g_strdup_printf (ngettext ("%d Photo/Video", "%d Photos/Videos", (gulong) _tmp10_), _tmp11_);
-#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (count_text);
-#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- count_text = _tmp12_;
-#line 1133 "EventDirectoryItem.c"
- } else {
- gboolean _tmp13_;
-#line 98 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp13_ = has_videos;
-#line 98 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (_tmp13_) {
-#line 1140 "EventDirectoryItem.c"
- gint _tmp14_;
- gint _tmp15_;
- gchar* _tmp16_;
-#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp14_ = count;
-#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp15_ = count;
-#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp16_ = g_strdup_printf (ngettext ("%d Video", "%d Videos", (gulong) _tmp14_), _tmp15_);
-#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (count_text);
-#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- count_text = _tmp16_;
-#line 1154 "EventDirectoryItem.c"
- } else {
- gint _tmp17_;
- gint _tmp18_;
- gchar* _tmp19_;
-#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp17_ = count;
-#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp18_ = count;
-#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp19_ = g_strdup_printf (ngettext ("%d Photo", "%d Photos", (gulong) _tmp17_), _tmp18_);
-#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (count_text);
-#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- count_text = _tmp19_;
-#line 1169 "EventDirectoryItem.c"
- }
- }
-#line 103 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp20_ = event_get_formatted_daterange (event);
-#line 103 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- daterange = _tmp20_;
-#line 104 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp21_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_OBJECT, DataObject));
-#line 104 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- name = _tmp21_;
-#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp23_ = daterange;
-#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (_tmp23_ == NULL) {
-#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp22_ = TRUE;
-#line 1186 "EventDirectoryItem.c"
- } else {
- const gchar* _tmp24_;
- const gchar* _tmp25_;
-#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp24_ = daterange;
-#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp25_ = name;
-#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp22_ = g_strcmp0 (_tmp24_, _tmp25_) == 0;
-#line 1196 "EventDirectoryItem.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (_tmp22_) {
-#line 1200 "EventDirectoryItem.c"
- const gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- const gchar* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp26_ = name;
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp27_ = guarded_markup_escape_text (_tmp26_);
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp28_ = _tmp27_;
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp29_ = count_text;
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp30_ = guarded_markup_escape_text (_tmp29_);
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp31_ = _tmp30_;
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp32_ = g_strdup_printf ("<b>%s</b>\n%s", _tmp28_, _tmp31_);
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp33_ = _tmp32_;
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp31_);
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp28_);
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- result = _tmp33_;
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (name);
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (daterange);
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (count_text);
-#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return result;
-#line 1239 "EventDirectoryItem.c"
- } else {
- const gchar* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- const gchar* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- const gchar* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp34_ = name;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp35_ = guarded_markup_escape_text (_tmp34_);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp36_ = _tmp35_;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp37_ = count_text;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp38_ = guarded_markup_escape_text (_tmp37_);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp39_ = _tmp38_;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp40_ = daterange;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp41_ = guarded_markup_escape_text (_tmp40_);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp42_ = _tmp41_;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp43_ = g_strdup_printf ("<b>%s</b>\n%s\n%s", _tmp36_, _tmp39_, _tmp42_);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp44_ = _tmp43_;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp42_);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp39_);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp36_);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- result = _tmp44_;
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (name);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (daterange);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (count_text);
-#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return result;
-#line 1290 "EventDirectoryItem.c"
- }
-#line 90 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (name);
-#line 90 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (daterange);
-#line 90 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (count_text);
-#line 1298 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_real_exposed (CheckerboardItem* base)
-{
- EventDirectoryItem * self;
- GError * _inner_error_ = NULL;
-#line 116 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 117 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (checkerboard_item_is_exposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) {
-#line 118 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return;
-#line 1313 "EventDirectoryItem.c"
- }
- {
- GdkPixbuf* _tmp0_ = NULL;
- Event* _tmp1_;
- MediaSource* _tmp2_;
- MediaSource* _tmp3_;
- GdkRectangle _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = self->event;
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = event_get_primary_source (_tmp1_);
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = _tmp2_;
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp4_ = self->priv->paul_lynde;
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = event_directory_item_get_paul_lynde (_tmp3_, &_tmp4_, &_inner_error_);
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp6_ = _tmp5_;
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp3_);
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = _tmp6_;
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1341 "EventDirectoryItem.c"
- goto __catch59_g_error;
- }
-#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp0_);
-#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp0_);
-#line 1348 "EventDirectoryItem.c"
- }
- goto __finally59;
- __catch59_g_error:
- {
- GError* err = NULL;
- Event* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- GError* _tmp10_;
- const gchar* _tmp11_;
-#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- err = _inner_error_;
-#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _inner_error_ = NULL;
-#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp7_ = self->event;
-#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp8_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject));
-#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp9_ = _tmp8_;
-#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp10_ = err;
-#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp11_ = _tmp10_->message;
-#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_critical ("EventDirectoryItem.vala:123: Unable to fetch preview for %s: %s", _tmp9_, _tmp11_);
-#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp9_);
-#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_error_free0 (err);
-#line 1379 "EventDirectoryItem.c"
- }
- __finally59:
-#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.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 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_clear_error (&_inner_error_);
-#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return;
-#line 1390 "EventDirectoryItem.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- event_directory_item_update_comment (self, FALSE);
-#line 128 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- CHECKERBOARD_ITEM_CLASS (event_directory_item_parent_class)->exposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1396 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_real_unexposed (CheckerboardItem* base)
-{
- EventDirectoryItem * self;
- GdkRectangle _tmp0_;
- Dimensions _tmp1_ = {0};
-#line 131 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 132 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (!checkerboard_item_is_exposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) {
-#line 133 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return;
-#line 1412 "EventDirectoryItem.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = self->priv->paul_lynde;
-#line 135 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_for_rectangle (&_tmp0_, &_tmp1_);
-#line 135 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp1_);
-#line 137 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- CHECKERBOARD_ITEM_CLASS (event_directory_item_parent_class)->unexposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1422 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_on_events_altered (EventDirectoryItem* self,
- GeeMap* map)
-{
- Event* _tmp0_;
-#line 140 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (IS_EVENT_DIRECTORY_ITEM (self));
-#line 140 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 141 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- event_directory_item_update_comment (self, FALSE);
-#line 142 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = self->event;
-#line 142 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject))) {
-#line 1441 "EventDirectoryItem.c"
- Event* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = self->event;
-#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = event_directory_item_get_formatted_title (_tmp1_);
-#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = _tmp2_;
-#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp3_, TRUE, PANGO_ALIGN_CENTER);
-#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp3_);
-#line 1455 "EventDirectoryItem.c"
- }
-}
-
-
-static void
-event_directory_item_real_thumbnail_altered (ThumbnailView* base)
-{
- EventDirectoryItem * self;
- MediaSource* media = NULL;
- Event* _tmp0_;
- MediaSource* _tmp1_;
- MediaSource* _tmp2_;
- GdkRectangle _tmp3_ = {0};
- GError * _inner_error_ = NULL;
-#line 146 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 147 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = self->event;
-#line 147 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = event_get_primary_source (_tmp0_);
-#line 147 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- media = _tmp1_;
-#line 150 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = media;
-#line 150 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- event_directory_item_get_paul_lynde_rect (_tmp2_, &_tmp3_);
-#line 150 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self->priv->paul_lynde = _tmp3_;
-#line 152 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (checkerboard_item_is_exposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) {
-#line 1486 "EventDirectoryItem.c"
- {
- GdkPixbuf* _tmp4_ = NULL;
- MediaSource* _tmp5_;
- GdkRectangle _tmp6_;
- GdkPixbuf* _tmp7_;
-#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = media;
-#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp6_ = self->priv->paul_lynde;
-#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp7_ = event_directory_item_get_paul_lynde (_tmp5_, &_tmp6_, &_inner_error_);
-#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp4_ = _tmp7_;
-#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1502 "EventDirectoryItem.c"
- goto __catch60_g_error;
- }
-#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp4_);
-#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (_tmp4_);
-#line 1509 "EventDirectoryItem.c"
- }
- goto __finally60;
- __catch60_g_error:
- {
- GError* err = NULL;
- Event* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GError* _tmp11_;
- const gchar* _tmp12_;
-#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- err = _inner_error_;
-#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _inner_error_ = NULL;
-#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp8_ = self->event;
-#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp10_ = _tmp9_;
-#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp11_ = err;
-#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp12_ = _tmp11_->message;
-#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_critical ("EventDirectoryItem.vala:156: Unable to fetch preview for %s: %s", _tmp10_, _tmp12_);
-#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (_tmp10_);
-#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_error_free0 (err);
-#line 1540 "EventDirectoryItem.c"
- }
- __finally60:
-#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (media);
-#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.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 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_clear_error (&_inner_error_);
-#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return;
-#line 1553 "EventDirectoryItem.c"
- }
- } else {
- GdkRectangle _tmp13_;
- Dimensions _tmp14_ = {0};
-#line 159 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp13_ = self->priv->paul_lynde;
-#line 159 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_for_rectangle (&_tmp13_, &_tmp14_);
-#line 159 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp14_);
-#line 1564 "EventDirectoryItem.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- THUMBNAIL_VIEW_CLASS (event_directory_item_parent_class)->thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), TYPE_THUMBNAIL_VIEW, ThumbnailView));
-#line 146 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (media);
-#line 1570 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_real_paint_shadow (CheckerboardItem* base,
- cairo_t* ctx,
- Dimensions* dimensions,
- GdkPoint* origin,
- gint radius,
- gfloat initial_alpha)
-{
- EventDirectoryItem * self;
- Dimensions altered = {0};
- Dimensions _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_;
- GdkPoint _tmp5_;
-#line 165 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 165 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (ctx != NULL);
-#line 165 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (dimensions != NULL);
-#line 165 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (origin != NULL);
-#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = *dimensions;
-#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = _tmp0_.width;
-#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = *dimensions;
-#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = _tmp2_.height;
-#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_init (&altered, _tmp1_ - 25, _tmp3_ - 25);
-#line 168 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp4_ = altered;
-#line 168 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = *origin;
-#line 168 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- CHECKERBOARD_ITEM_CLASS (event_directory_item_parent_class)->paint_shadow (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), ctx, &_tmp4_, &_tmp5_, 36, initial_alpha);
-#line 1614 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_real_paint_border (CheckerboardItem* base,
- cairo_t* ctx,
- Dimensions* object_dimensions,
- GdkPoint* object_origin,
- gint border_width)
-{
- EventDirectoryItem * self;
- Dimensions dimensions = {0};
- Dimensions _tmp0_;
- Dimensions _tmp1_ = {0};
- GdkPoint origin = {0};
- GdkPoint _tmp2_;
- GdkPoint _tmp3_ = {0};
- Dimensions _tmp4_;
- GdkPoint _tmp5_;
-#line 171 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 171 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (ctx != NULL);
-#line 171 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (object_dimensions != NULL);
-#line 171 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (object_origin != NULL);
-#line 173 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = *object_dimensions;
-#line 173 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_get_border_dimensions (&_tmp0_, border_width, &_tmp1_);
-#line 173 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions = _tmp1_;
-#line 174 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = *object_origin;
-#line 174 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_get_border_origin (&_tmp2_, border_width, &_tmp3_);
-#line 174 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- origin = _tmp3_;
-#line 176 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp4_ = dimensions;
-#line 176 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = origin;
-#line 176 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- draw_rounded_corners_filled (ctx, &_tmp4_, &_tmp5_, 6.0);
-#line 1660 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_real_paint_image (CheckerboardItem* base,
- cairo_t* ctx,
- GdkPixbuf* pixbuf,
- GdkPoint* origin)
-{
- EventDirectoryItem * self;
- Dimensions dimensions = {0};
- Dimensions _tmp0_ = {0};
- Dimensions _tmp3_;
- GdkPoint _tmp4_;
- GdkPoint _tmp5_;
- gint _tmp6_;
- GdkPoint _tmp7_;
- gint _tmp8_;
-#line 179 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 179 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (ctx != NULL);
-#line 179 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 179 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (origin != NULL);
-#line 181 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_for_pixbuf (pixbuf, &_tmp0_);
-#line 181 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions = _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (gdk_pixbuf_get_has_alpha (pixbuf)) {
-#line 1693 "EventDirectoryItem.c"
- Dimensions _tmp1_;
- GdkPoint _tmp2_;
-#line 184 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = dimensions;
-#line 184 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = *origin;
-#line 184 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- draw_rounded_corners_filled (ctx, &_tmp1_, &_tmp2_, 6.0);
-#line 1702 "EventDirectoryItem.c"
- }
-#line 187 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = dimensions;
-#line 187 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp4_ = *origin;
-#line 187 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- context_rounded_corners (ctx, &_tmp3_, &_tmp4_, 6.0);
-#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp5_ = *origin;
-#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp6_ = _tmp5_.x;
-#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp7_ = *origin;
-#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp8_ = _tmp7_.y;
-#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- gdk_cairo_set_source_pixbuf (ctx, pixbuf, (gdouble) _tmp6_, (gdouble) _tmp8_);
-#line 189 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- cairo_paint (ctx);
-#line 1722 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_update_comment (EventDirectoryItem* self,
- gboolean init)
-{
- gchar* comment = NULL;
- Event* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
-#line 192 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_return_if_fail (IS_EVENT_DIRECTORY_ITEM (self));
-#line 193 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = self->event;
-#line 193 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT_SOURCE, EventSource));
-#line 193 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- comment = _tmp1_;
-#line 194 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = comment;
-#line 194 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (is_string_empty (_tmp2_)) {
-#line 195 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_clear_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem));
-#line 1748 "EventDirectoryItem.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- if (!init) {
-#line 1752 "EventDirectoryItem.c"
- const gchar* _tmp3_;
-#line 197 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = comment;
-#line 197 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp3_, FALSE, PANGO_ALIGN_LEFT);
-#line 1758 "EventDirectoryItem.c"
- } else {
-#line 199 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- checkerboard_item_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), "", FALSE, PANGO_ALIGN_LEFT);
-#line 1762 "EventDirectoryItem.c"
- }
- }
-#line 192 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_free0 (comment);
-#line 1767 "EventDirectoryItem.c"
-}
-
-
-static gint
-event_directory_item_get_CROPPED_SCALE (void)
-{
- gint result;
-#line 10 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- result = thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_MEDIUM) + ((thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_BIG) - thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_MEDIUM)) / 2);
-#line 10 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- return result;
-#line 1779 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_class_init (EventDirectoryItemClass * klass)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_ = {0};
- Scaling _tmp5_ = {0};
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- event_directory_item_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_type_class_add_private (klass, sizeof (EventDirectoryItemPrivate));
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- ((CheckerboardItemClass *) klass)->exposed = (void (*) (CheckerboardItem *)) event_directory_item_real_exposed;
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- ((CheckerboardItemClass *) klass)->unexposed = (void (*) (CheckerboardItem *)) event_directory_item_real_unexposed;
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- ((ThumbnailViewClass *) klass)->thumbnail_altered = (void (*) (ThumbnailView *)) event_directory_item_real_thumbnail_altered;
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- ((CheckerboardItemClass *) klass)->paint_shadow = (void (*) (CheckerboardItem *, cairo_t*, Dimensions*, GdkPoint*, gint, gfloat)) event_directory_item_real_paint_shadow;
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- ((CheckerboardItemClass *) klass)->paint_border = (void (*) (CheckerboardItem *, cairo_t*, Dimensions*, GdkPoint*, gint)) event_directory_item_real_paint_border;
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- ((CheckerboardItemClass *) klass)->paint_image = (void (*) (CheckerboardItem *, cairo_t*, GdkPixbuf*, GdkPoint*)) event_directory_item_real_paint_image;
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_event_directory_item_get_property;
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- G_OBJECT_CLASS (klass)->finalize = event_directory_item_finalize;
-#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = event_directory_item_get_CROPPED_SCALE ();
-#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp1_ = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp2_ = event_directory_item_get_CROPPED_SCALE ();
-#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp3_ = _tmp2_;
-#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- dimensions_init (&_tmp4_, _tmp1_, _tmp3_);
-#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- scaling_to_fill_viewport (&_tmp4_, &_tmp5_);
-#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- event_directory_item_squared_scaling = _tmp5_;
-#line 1826 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_instance_init (EventDirectoryItem * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self->priv = EVENT_DIRECTORY_ITEM_GET_PRIVATE (self);
-#line 20 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- memset (&self->priv->paul_lynde, 0, sizeof (GdkRectangle));
-#line 1837 "EventDirectoryItem.c"
-}
-
-
-static void
-event_directory_item_finalize (GObject * obj)
-{
- EventDirectoryItem * self;
- EventSourceCollection* _tmp0_;
- guint _tmp1_;
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 39 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _tmp0_ = event_global;
-#line 39 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 39 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.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) _event_directory_item_on_events_altered_data_collection_items_altered, self);
-#line 18 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- _g_object_unref0 (self->event);
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- G_OBJECT_CLASS (event_directory_item_parent_class)->finalize (obj);
-#line 1859 "EventDirectoryItem.c"
-}
-
-
-GType
-event_directory_item_get_type (void)
-{
- static volatile gsize event_directory_item_type_id__volatile = 0;
- if (g_once_init_enter (&event_directory_item_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventDirectoryItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_directory_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventDirectoryItem), 0, (GInstanceInitFunc) event_directory_item_instance_init, NULL };
- GType event_directory_item_type_id;
- event_directory_item_type_id = g_type_register_static (TYPE_CHECKERBOARD_ITEM, "EventDirectoryItem", &g_define_type_info, 0);
- g_once_init_leave (&event_directory_item_type_id__volatile, event_directory_item_type_id);
- }
- return event_directory_item_type_id__volatile;
-}
-
-
-static void
-_vala_event_directory_item_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- EventDirectoryItem * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- switch (property_id) {
-#line 1887 "EventDirectoryItem.c"
- default:
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala"
- break;
-#line 1893 "EventDirectoryItem.c"
- }
-}
-
-
-
diff --git a/src/events/EventDirectoryItem.vala b/src/events/EventDirectoryItem.vala
index f75a8e0..5b177fb 100644
--- a/src/events/EventDirectoryItem.vala
+++ b/src/events/EventDirectoryItem.vala
@@ -146,6 +146,10 @@ class EventDirectoryItem : CheckerboardItem {
protected override void thumbnail_altered() {
MediaSource media = event.get_primary_source();
+ set_paul_lynde(media);
+ }
+
+ private void set_paul_lynde(MediaSource media) {
// get new center square
paul_lynde = get_paul_lynde_rect(media);
@@ -158,11 +162,23 @@ class EventDirectoryItem : CheckerboardItem {
} else {
clear_image(Dimensions.for_rectangle(paul_lynde));
}
-
+
base.thumbnail_altered();
}
- protected override void paint_shadow(Cairo.Context ctx, Dimensions dimensions, Gdk.Point origin,
+ public override void handle_mouse_leave() {
+ base.handle_mouse_leave();
+ set_paul_lynde(event.get_primary_source());
+ }
+
+ public override void handle_mouse_motion(int x, int y, int height, int width) {
+ int steppedX = x - (x % 15);
+ int element_index = (int) Math.round( (double) steppedX / width * (event.get_media_count() - 1) );
+ unowned MediaSource media = event.get_media().to_array()[element_index];
+ set_paul_lynde(media);
+ }
+
+ protected override void paint_shadow(Cairo.Context ctx, Dimensions dimensions, Gdk.Point origin,
int radius, float initial_alpha) {
Dimensions altered = Dimensions(dimensions.width - 25, dimensions.height - 25);
base.paint_shadow(ctx, altered, origin, 36, initial_alpha);
diff --git a/src/events/EventPage.c b/src/events/EventPage.c
deleted file mode 100644
index d7da2f4..0000000
--- a/src/events/EventPage.c
+++ /dev/null
@@ -1,2003 +0,0 @@
-/* EventPage.c generated by valac 0.40.4, the Vala compiler
- * generated from EventPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-typedef struct _CollectionPagePrivate CollectionPagePrivate;
-
-#define TYPE_EVENT_PAGE (event_page_get_type ())
-#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage))
-#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass))
-#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE))
-#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE))
-#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass))
-
-typedef struct _EventPage EventPage;
-typedef struct _EventPageClass EventPageClass;
-typedef struct _EventPagePrivate EventPagePrivate;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-enum {
- EVENT_PAGE_0_PROPERTY,
- EVENT_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* event_page_properties[EVENT_PAGE_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ())
-#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection))
-#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION))
-#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION))
-#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-
-typedef struct _EventSourceCollection EventSourceCollection;
-typedef struct _EventSourceCollectionClass EventSourceCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-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 _g_free0(var) (var = (g_free (var), NULL))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ())
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-
-typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator;
-typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass;
-
-#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ())
-#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog))
-#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG))
-#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG))
-#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-
-typedef struct _EditCommentDialog EditCommentDialog;
-typedef struct _EditCommentDialogClass EditCommentDialogClass;
-#define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL)))
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ())
-#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand))
-#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-
-typedef struct _SimpleProxyableCommand SimpleProxyableCommand;
-typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass;
-
-#define TYPE_EDIT_EVENT_COMMENT_COMMAND (edit_event_comment_command_get_type ())
-#define EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand))
-#define EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass))
-#define IS_EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND))
-#define IS_EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND))
-#define EDIT_EVENT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass))
-
-typedef struct _EditEventCommentCommand EditEventCommentCommand;
-typedef struct _EditEventCommentCommandClass EditEventCommentCommandClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_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 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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_NO_EVENT_PAGE (no_event_page_get_type ())
-#define NO_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NO_EVENT_PAGE, NoEventPage))
-#define NO_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NO_EVENT_PAGE, NoEventPageClass))
-#define IS_NO_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NO_EVENT_PAGE))
-#define IS_NO_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NO_EVENT_PAGE))
-#define NO_EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NO_EVENT_PAGE, NoEventPageClass))
-
-typedef struct _NoEventPage NoEventPage;
-typedef struct _NoEventPageClass NoEventPageClass;
-typedef struct _NoEventPagePrivate NoEventPagePrivate;
-enum {
- NO_EVENT_PAGE_0_PROPERTY,
- NO_EVENT_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* no_event_page_properties[NO_EVENT_PAGE_NUM_PROPERTIES];
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ())
-#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager))
-#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER))
-#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER))
-#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-
-typedef struct _CollectionViewManager CollectionViewManager;
-typedef struct _CollectionViewManagerClass CollectionViewManagerClass;
-
-#define NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER (no_event_page_no_event_view_manager_get_type ())
-#define NO_EVENT_PAGE_NO_EVENT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, NoEventPageNoEventViewManager))
-#define NO_EVENT_PAGE_NO_EVENT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, NoEventPageNoEventViewManagerClass))
-#define NO_EVENT_PAGE_IS_NO_EVENT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER))
-#define NO_EVENT_PAGE_IS_NO_EVENT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER))
-#define NO_EVENT_PAGE_NO_EVENT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, NoEventPageNoEventViewManagerClass))
-
-typedef struct _NoEventPageNoEventViewManager NoEventPageNoEventViewManager;
-typedef struct _NoEventPageNoEventViewManagerClass NoEventPageNoEventViewManagerClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate;
-typedef struct _NoEventPageNoEventViewManagerPrivate NoEventPageNoEventViewManagerPrivate;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _CollectionPage {
- MediaPage parent_instance;
- CollectionPagePrivate * priv;
-};
-
-struct _CollectionPageClass {
- MediaPageClass parent_class;
-};
-
-struct _EventPage {
- CollectionPage parent_instance;
- EventPagePrivate * priv;
-};
-
-struct _EventPageClass {
- CollectionPageClass parent_class;
-};
-
-struct _EventPagePrivate {
- Event* page_event;
-};
-
-typedef DataView* (*CreateView) (DataSource* source, void* user_data);
-struct _NoEventPage {
- CollectionPage parent_instance;
- NoEventPagePrivate * priv;
-};
-
-struct _NoEventPageClass {
- CollectionPageClass parent_class;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _CollectionViewManager {
- ViewManager parent_instance;
- CollectionViewManagerPrivate * priv;
-};
-
-struct _CollectionViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _NoEventPageNoEventViewManager {
- CollectionViewManager parent_instance;
- NoEventPageNoEventViewManagerPrivate * priv;
-};
-
-struct _NoEventPageNoEventViewManagerClass {
- CollectionViewManagerClass parent_class;
-};
-
-struct _EventID {
- gint64 id;
-};
-
-
-static gpointer event_page_parent_class = NULL;
-extern EventSourceCollection* event_global;
-static gpointer no_event_page_parent_class = NULL;
-static Alteration* no_event_page_no_event_page_alteration;
-static Alteration* no_event_page_no_event_page_alteration = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-static gpointer no_event_page_no_event_view_manager_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType event_page_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-#define EVENT_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT_PAGE, EventPagePrivate))
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType event_source_collection_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void event_page_on_events_altered (EventPage* self,
- GeeMap* map);
-static void _event_page_on_events_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-void view_collection_halt_mirroring (ViewCollection* self);
-static void event_page_on_make_primary (EventPage* self);
-static void _event_page_on_make_primary_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void event_page_on_rename (EventPage* self);
-static void _event_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void media_page_on_edit_comment (MediaPage* self);
-static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-EventPage* event_page_new (Event* page_event);
-EventPage* event_page_construct (GType object_type,
- Event* page_event);
-gchar* data_object_get_name (DataObject* self);
-CollectionPage* collection_page_construct (GType object_type,
- const gchar* page_name);
-void event_mirror_photos (Event* self,
- ViewCollection* view,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target);
-DataView* media_page_create_thumbnail (MediaPage* self,
- DataSource* source);
-static DataView* _media_page_create_thumbnail_create_view (DataSource* source,
- gpointer self);
-void checkerboard_page_init_page_context_menu (CheckerboardPage* self,
- const gchar* path);
-Event* event_page_get_event (EventPage* self);
-static gboolean event_page_real_on_app_key_pressed (Page* base,
- GdkEventKey* event);
-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,
- 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);
-void page_set_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-static void event_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_get_event_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void event_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);
-void page_set_page_name (Page* self,
- const gchar* page_name);
-static void event_page_real_on_edit_comment (MediaPage* base);
-gpointer multi_text_entry_dialog_mediator_ref (gpointer instance);
-void multi_text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value);
-GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType edit_comment_dialog_get_type (void) G_GNUC_CONST;
-gchar* event_source_get_comment (EventSource* self);
-EditCommentDialog* edit_comment_dialog_new (const gchar* comment,
- gboolean is_event);
-EditCommentDialog* edit_comment_dialog_construct (GType object_type,
- const gchar* comment,
- gboolean is_event);
-gchar* edit_comment_dialog_execute (EditCommentDialog* self);
-GType command_get_type (void) G_GNUC_CONST;
-GType page_command_get_type (void) G_GNUC_CONST;
-GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
-GType edit_event_comment_command_get_type (void) G_GNUC_CONST;
-EditEventCommentCommand* edit_event_comment_command_new (Event* event,
- const gchar* new_comment);
-EditEventCommentCommand* edit_event_comment_command_construct (GType object_type,
- Event* event,
- const gchar* new_comment);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* page_get_command_manager (Page* self);
-void command_manager_execute (CommandManager* self,
- Command* command);
-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);
-static void event_page_finalize (GObject * obj);
-GType no_event_page_get_type (void) G_GNUC_CONST;
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-#define NO_EVENT_PAGE_NAME _ ("No Event")
-NoEventPage* no_event_page_new (void);
-NoEventPage* no_event_page_construct (GType object_type);
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-static NoEventPageNoEventViewManager* no_event_page_no_event_view_manager_new (NoEventPage* page);
-static NoEventPageNoEventViewManager* no_event_page_no_event_view_manager_construct (GType object_type,
- NoEventPage* page);
-GType collection_view_manager_get_type (void) G_GNUC_CONST;
-static GType no_event_page_no_event_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-static void no_event_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by);
-static void no_event_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by);
-CollectionViewManager* collection_view_manager_new (CollectionPage* page);
-CollectionViewManager* collection_view_manager_construct (GType object_type,
- CollectionPage* page);
-static gboolean no_event_page_no_event_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source);
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-void media_source_get_event_id (MediaSource* self,
- EventID* result);
-#define EVENT_ID_INVALID ((gint64) -1)
-gboolean view_manager_include_in_view (ViewManager* self,
- DataSource* source);
-static void no_event_page_finalize (GObject * obj);
-
-static const GActionEntry EVENT_PAGE_entries[3] = {{"MakePrimary", _event_page_on_make_primary_gsimple_action_activate_callback}, {"Rename", _event_page_on_rename_gsimple_action_activate_callback}, {"EditEventComment", _media_page_on_edit_comment_gsimple_action_activate_callback}};
-
-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 1072 "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 1083 "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 1094 "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 1105 "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 1114 "EventPage.c"
-}
-
-
-static DataView*
-_media_page_create_thumbnail_create_view (DataSource* source,
- gpointer self)
-{
- DataView* result;
- result = media_page_create_thumbnail ((MediaPage*) self, source);
-#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return result;
-#line 1126 "EventPage.c"
-}
-
-
-EventPage*
-event_page_construct (GType object_type,
- Event* page_event)
-{
- EventPage * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- Event* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- EventSourceCollection* _tmp5_;
-#line 10 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_val_if_fail (IS_EVENT (page_event), NULL);
-#line 11 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (page_event, TYPE_DATA_OBJECT, DataObject));
-#line 11 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = (EventPage*) collection_page_construct (object_type, _tmp1_);
-#line 11 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_free0 (_tmp1_);
-#line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = _g_object_ref0 (page_event);
-#line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (self->priv->page_event);
-#line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self->priv->page_event = _tmp2_;
-#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp4_ = _tmp3_;
-#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- event_mirror_photos (page_event, _tmp4_, _media_page_create_thumbnail_create_view, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
-#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _data_collection_unref0 (_tmp4_);
-#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");
-#line 18 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp5_ = event_global;
-#line 18 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, 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 1173 "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 1182 "EventPage.c"
-}
-
-
-Event*
-event_page_get_event (EventPage* self)
-{
- Event* result = NULL;
- Event* _tmp0_;
- Event* _tmp1_;
-#line 21 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_val_if_fail (IS_EVENT_PAGE (self), NULL);
-#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = self->priv->page_event;
-#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- result = _tmp1_;
-#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return result;
-#line 1202 "EventPage.c"
-}
-
-
-static gboolean
-event_page_real_on_app_key_pressed (Page* base,
- GdkEventKey* event)
-{
- EventPage * self;
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage);
-#line 25 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 30 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = event->keyval;
-#line 30 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 30 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (g_strcmp0 (_tmp1_, "F2") == 0) {
-#line 1224 "EventPage.c"
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- gboolean _tmp4_;
-#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp3_ = _tmp2_;
-#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp4_ = view_collection_get_selected_count (_tmp3_) != 1;
-#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _data_collection_unref0 (_tmp3_);
-#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (_tmp4_) {
-#line 32 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- result = TRUE;
-#line 32 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return result;
-#line 1242 "EventPage.c"
- }
- }
-#line 36 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- result = PAGE_CLASS (event_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), event);
-#line 36 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return result;
-#line 1249 "EventPage.c"
-}
-
-
-static void
-event_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- EventPage * self;
-#line 44 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage);
-#line 44 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 45 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- PAGE_CLASS (event_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), ui_filenames);
-#line 47 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "event.ui");
-#line 1266 "EventPage.c"
-}
-
-
-static void
-event_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- EventPage * self;
-#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), map);
-#line 59 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_action_map_add_action_entries (map, EVENT_PAGE_entries, G_N_ELEMENTS (EVENT_PAGE_entries), self);
-#line 1283 "EventPage.c"
-}
-
-
-static void
-event_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- EventPage * self;
-#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"
- 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), map);
-#line 1298 "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 1310 "EventPage.c"
- GActionEntry entry = {0};
-#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- entry = entry_collection[entry_it];
-#line 1314 "EventPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = entry;
-#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 1324 "EventPage.c"
- }
- }
- }
-}
-
-
-static void
-event_page_real_init_actions (Page* base,
- gint selected_count,
- gint count)
-{
- EventPage * self;
-#line 69 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage);
-#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), selected_count, count);
-#line 1341 "EventPage.c"
-}
-
-
-static void
-event_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- EventPage * self;
-#line 73 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage);
-#line 74 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MakePrimary", selected_count == 1);
-#line 77 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToEvent", FALSE);
-#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), selected_count, count);
-#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 1361 "EventPage.c"
-}
-
-
-static void
-event_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by)
-{
- EventPage * self;
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_ = 0;
-#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage);
-#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_;
-#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 87 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _vala_sort_order = _tmp2_;
-#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _vala_sort_by = _tmp3_;
-#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (sort_order) {
-#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- *sort_order = _vala_sort_order;
-#line 1395 "EventPage.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (sort_by) {
-#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- *sort_by = _vala_sort_by;
-#line 1401 "EventPage.c"
- }
-}
-
-
-static void
-event_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by)
-{
- EventPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage);
-#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_;
-#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), sort_order, sort_by);
-#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1424 "EventPage.c"
-}
-
-
-static void
-event_page_on_events_altered (EventPage* self,
- GeeMap* map)
-{
- Event* _tmp0_;
-#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_if_fail (IS_EVENT_PAGE (self));
-#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = self->priv->page_event;
-#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject))) {
-#line 1441 "EventPage.c"
- Event* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = self->priv->page_event;
-#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
-#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp3_ = _tmp2_;
-#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp3_);
-#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_free0 (_tmp3_);
-#line 1455 "EventPage.c"
- }
-}
-
-
-static void
-event_page_real_on_edit_comment (MediaPage* base)
-{
- EventPage * self;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
-#line 99 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage);
-#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_;
-#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (_tmp2_) {
-#line 1479 "EventPage.c"
- EditCommentDialog* edit_comment_dialog = NULL;
- Event* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- EditCommentDialog* _tmp6_;
- EditCommentDialog* _tmp7_;
- gchar* new_comment = NULL;
- EditCommentDialog* _tmp8_;
- gchar* _tmp9_;
- const gchar* _tmp10_;
- EditEventCommentCommand* command = NULL;
- Event* _tmp11_;
- const gchar* _tmp12_;
- EditEventCommentCommand* _tmp13_;
- CommandManager* _tmp14_;
- CommandManager* _tmp15_;
- EditEventCommentCommand* _tmp16_;
-#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp3_ = self->priv->page_event;
-#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp4_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_EVENT_SOURCE, EventSource));
-#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp5_ = _tmp4_;
-#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp6_ = edit_comment_dialog_new (_tmp5_, TRUE);
-#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp7_ = _tmp6_;
-#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_free0 (_tmp5_);
-#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- edit_comment_dialog = _tmp7_;
-#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp8_ = edit_comment_dialog;
-#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp9_ = edit_comment_dialog_execute (_tmp8_);
-#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- new_comment = _tmp9_;
-#line 104 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp10_ = new_comment;
-#line 104 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (_tmp10_ == NULL) {
-#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_free0 (new_comment);
-#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
-#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return;
-#line 1527 "EventPage.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp11_ = self->priv->page_event;
-#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp12_ = new_comment;
-#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp13_ = edit_event_comment_command_new (_tmp11_, _tmp12_);
-#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- command = _tmp13_;
-#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp14_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp15_ = _tmp14_;
-#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp16_ = command;
-#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- command_manager_execute (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command));
-#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _command_manager_unref0 (_tmp15_);
-#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (command);
-#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_free0 (new_comment);
-#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
-#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return;
-#line 1555 "EventPage.c"
- }
-#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 1559 "EventPage.c"
-}
-
-
-static void
-event_page_on_make_primary (EventPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- Event* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- DataView* _tmp6_;
- DataView* _tmp7_;
- DataSource* _tmp8_;
- MediaSource* _tmp9_;
-#line 115 "/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"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_;
-#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (_tmp2_) {
-#line 117 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return;
-#line 1590 "EventPage.c"
- }
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp3_ = self->priv->page_event;
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp5_ = _tmp4_;
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp6_ = view_collection_get_selected_at (_tmp5_, 0);
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp7_ = _tmp6_;
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- event_set_primary_source (_tmp3_, _tmp9_);
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 1614 "EventPage.c"
-}
-
-
-static void
-event_page_on_rename (EventPage* self)
-{
- LibraryWindow* _tmp0_;
- LibraryWindow* _tmp1_;
- Event* _tmp2_;
-#line 122 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_if_fail (IS_EVENT_PAGE (self));
-#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = library_window_get_app ();
-#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_;
-#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = self->priv->page_event;
-#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- library_window_rename_event_in_sidebar (_tmp1_, _tmp2_);
-#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1636 "EventPage.c"
-}
-
-
-static void
-event_page_class_init (EventPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- event_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_type_class_add_private (klass, sizeof (EventPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) event_page_real_on_app_key_pressed;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) event_page_real_init_collect_ui_filenames;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) event_page_real_add_actions;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) event_page_real_remove_actions;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) event_page_real_init_actions;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) event_page_real_update_actions;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) event_page_real_get_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) event_page_real_set_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((MediaPageClass *) klass)->on_edit_comment = (void (*) (MediaPage *)) 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 1667 "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 1676 "EventPage.c"
-}
-
-
-static void
-event_page_finalize (GObject * obj)
-{
- EventPage * self;
- EventSourceCollection* _tmp0_;
- guint _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_PAGE, EventPage);
-#line 40 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = event_global;
-#line 40 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 40 "/home/jens/Source/shotwell/src/events/EventPage.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) _event_page_on_events_altered_data_collection_items_altered, self);
-#line 41 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 41 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp3_ = _tmp2_;
-#line 41 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- view_collection_halt_mirroring (_tmp3_);
-#line 41 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _data_collection_unref0 (_tmp3_);
-#line 8 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _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 1708 "EventPage.c"
-}
-
-
-GType
-event_page_get_type (void)
-{
- static volatile gsize event_page_type_id__volatile = 0;
- if (g_once_init_enter (&event_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventPage), 0, (GInstanceInitFunc) event_page_instance_init, NULL };
- GType event_page_type_id;
- event_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "EventPage", &g_define_type_info, 0);
- g_once_init_leave (&event_page_type_id__volatile, event_page_type_id);
- }
- return event_page_type_id__volatile;
-}
-
-
-NoEventPage*
-no_event_page_construct (GType object_type)
-{
- NoEventPage * self = NULL;
- ViewManager* filter = NULL;
- NoEventPageNoEventViewManager* _tmp0_;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- Alteration* _tmp4_;
- ViewCollectionMonitor* _tmp5_;
- ViewCollectionMonitor* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- VideoSourceCollection* _tmp9_;
- Alteration* _tmp10_;
- ViewCollectionMonitor* _tmp11_;
- ViewCollectionMonitor* _tmp12_;
-#line 146 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = (NoEventPage*) collection_page_construct (object_type, NO_EVENT_PAGE_NAME);
-#line 148 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = no_event_page_no_event_view_manager_new (self);
-#line 148 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- filter = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_MANAGER, ViewManager);
-#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = _tmp1_;
-#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp3_ = library_photo_global;
-#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp4_ = no_event_page_no_event_page_alteration;
-#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 149 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp6_ = _tmp5_;
-#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _view_collection_monitor_unref0 (_tmp6_);
-#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _data_collection_unref0 (_tmp2_);
-#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp8_ = _tmp7_;
-#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp9_ = video_global;
-#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp10_ = no_event_page_no_event_page_alteration;
-#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 150 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp12_ = _tmp11_;
-#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _view_collection_monitor_unref0 (_tmp12_);
-#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _view_manager_unref0 (filter);
-#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return self;
-#line 1786 "EventPage.c"
-}
-
-
-NoEventPage*
-no_event_page_new (void)
-{
-#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return no_event_page_construct (TYPE_NO_EVENT_PAGE);
-#line 1795 "EventPage.c"
-}
-
-
-static void
-no_event_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by)
-{
- NoEventPage * self;
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_ = 0;
-#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NO_EVENT_PAGE, NoEventPage);
-#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_;
-#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 154 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _vala_sort_order = _tmp2_;
-#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _vala_sort_by = _tmp3_;
-#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (sort_order) {
-#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- *sort_order = _vala_sort_order;
-#line 1829 "EventPage.c"
- }
-#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (sort_by) {
-#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- *sort_by = _vala_sort_by;
-#line 1835 "EventPage.c"
- }
-}
-
-
-static void
-no_event_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by)
-{
- NoEventPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 157 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NO_EVENT_PAGE, NoEventPage);
-#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp1_ = _tmp0_;
-#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), sort_order, sort_by);
-#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1858 "EventPage.c"
-}
-
-
-static NoEventPageNoEventViewManager*
-no_event_page_no_event_view_manager_construct (GType object_type,
- NoEventPage* page)
-{
- NoEventPageNoEventViewManager* self = NULL;
-#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_val_if_fail (IS_NO_EVENT_PAGE (page), NULL);
-#line 133 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = (NoEventPageNoEventViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_COLLECTION_PAGE, CollectionPage));
-#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return self;
-#line 1873 "EventPage.c"
-}
-
-
-static NoEventPageNoEventViewManager*
-no_event_page_no_event_view_manager_new (NoEventPage* page)
-{
-#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 1882 "EventPage.c"
-}
-
-
-static gboolean
-no_event_page_no_event_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source)
-{
- NoEventPageNoEventViewManager * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- EventID _tmp1_ = {0};
- gint64 _tmp2_;
-#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 137 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- media_source_get_event_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), &_tmp1_);
-#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp2_ = _tmp1_.id;
-#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- if (_tmp2_ != EVENT_ID_INVALID) {
-#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = FALSE;
-#line 1907 "EventPage.c"
- } else {
-#line 139 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = 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), source);
-#line 1911 "EventPage.c"
- }
-#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- result = _tmp0_;
-#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- return result;
-#line 1917 "EventPage.c"
-}
-
-
-static void
-no_event_page_no_event_view_manager_class_init (NoEventPageNoEventViewManagerClass * klass)
-{
-#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 131 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) no_event_page_no_event_view_manager_real_include_in_view;
-#line 1928 "EventPage.c"
-}
-
-
-static void
-no_event_page_no_event_view_manager_instance_init (NoEventPageNoEventViewManager * self)
-{
-}
-
-
-static GType
-no_event_page_no_event_view_manager_get_type (void)
-{
- static volatile gsize no_event_page_no_event_view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&no_event_page_no_event_view_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (NoEventPageNoEventViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) no_event_page_no_event_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NoEventPageNoEventViewManager), 0, (GInstanceInitFunc) no_event_page_no_event_view_manager_instance_init, NULL };
- GType no_event_page_no_event_view_manager_type_id;
- no_event_page_no_event_view_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "NoEventPageNoEventViewManager", &g_define_type_info, 0);
- g_once_init_leave (&no_event_page_no_event_view_manager_type_id__volatile, no_event_page_no_event_view_manager_type_id);
- }
- return no_event_page_no_event_view_manager_type_id__volatile;
-}
-
-
-static void
-no_event_page_class_init (NoEventPageClass * klass)
-{
- Alteration* _tmp0_;
-#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- no_event_page_parent_class = g_type_class_peek_parent (klass);
-#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) no_event_page_real_get_config_photos_sort;
-#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) no_event_page_real_set_config_photos_sort;
-#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- G_OBJECT_CLASS (klass)->finalize = no_event_page_finalize;
-#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- _tmp0_ = alteration_new ("metadata", "event");
-#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- no_event_page_no_event_page_alteration = _tmp0_;
-#line 1968 "EventPage.c"
-}
-
-
-static void
-no_event_page_instance_init (NoEventPage * self)
-{
-}
-
-
-static void
-no_event_page_finalize (GObject * obj)
-{
- NoEventPage * self;
-#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NO_EVENT_PAGE, NoEventPage);
-#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- G_OBJECT_CLASS (no_event_page_parent_class)->finalize (obj);
-#line 1986 "EventPage.c"
-}
-
-
-GType
-no_event_page_get_type (void)
-{
- static volatile gsize no_event_page_type_id__volatile = 0;
- if (g_once_init_enter (&no_event_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (NoEventPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) no_event_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NoEventPage), 0, (GInstanceInitFunc) no_event_page_instance_init, NULL };
- GType no_event_page_type_id;
- no_event_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "NoEventPage", &g_define_type_info, 0);
- g_once_init_leave (&no_event_page_type_id__volatile, no_event_page_type_id);
- }
- return no_event_page_type_id__volatile;
-}
-
-
-
diff --git a/src/events/Events.c b/src/events/Events.c
deleted file mode 100644
index 055b112..0000000
--- a/src/events/Events.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Events.c generated by valac 0.40.4, the Vala compiler
- * generated from Events.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void events_init (GError** error);
-void events_branch_init (void);
-void events_terminate (void);
-void events_branch_terminate (void);
-
-
-void
-events_init (GError** error)
-{
-#line 10 "/home/jens/Source/shotwell/src/events/Events.vala"
- events_branch_init ();
-#line 29 "Events.c"
-}
-
-
-void
-events_terminate (void)
-{
-#line 14 "/home/jens/Source/shotwell/src/events/Events.vala"
- events_branch_terminate ();
-#line 38 "Events.c"
-}
-
-
-
diff --git a/src/events/EventsBranch.c b/src/events/EventsBranch.c
deleted file mode 100644
index e50da5b..0000000
--- a/src/events/EventsBranch.c
+++ /dev/null
@@ -1,4533 +0,0 @@
-/* EventsBranch.c generated by valac 0.40.4, the Vala compiler
- * generated from EventsBranch.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gtk/gtk.h>
-#include <time.h>
-#include <gdk/gdk.h>
-
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
-
-#define EVENTS_TYPE_BRANCH (events_branch_get_type ())
-#define EVENTS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_BRANCH, EventsBranch))
-#define EVENTS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_BRANCH, EventsBranchClass))
-#define EVENTS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_BRANCH))
-#define EVENTS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_BRANCH))
-#define EVENTS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_BRANCH, EventsBranchClass))
-
-typedef struct _EventsBranch EventsBranch;
-typedef struct _EventsBranchClass EventsBranchClass;
-typedef struct _EventsBranchPrivate EventsBranchPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-
-#define EVENTS_TYPE_EVENT_ENTRY (events_event_entry_get_type ())
-#define EVENTS_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry))
-#define EVENTS_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryClass))
-#define EVENTS_IS_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_EVENT_ENTRY))
-#define EVENTS_IS_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_EVENT_ENTRY))
-#define EVENTS_EVENT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryClass))
-
-typedef struct _EventsEventEntry EventsEventEntry;
-typedef struct _EventsEventEntryClass EventsEventEntryClass;
-
-#define EVENTS_TYPE_DIRECTORY_ENTRY (events_directory_entry_get_type ())
-#define EVENTS_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntry))
-#define EVENTS_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntryClass))
-#define EVENTS_IS_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_DIRECTORY_ENTRY))
-#define EVENTS_IS_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_DIRECTORY_ENTRY))
-#define EVENTS_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntryClass))
-
-typedef struct _EventsDirectoryEntry EventsDirectoryEntry;
-typedef struct _EventsDirectoryEntryClass EventsDirectoryEntryClass;
-
-#define EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY (events_undated_directory_entry_get_type ())
-#define EVENTS_UNDATED_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntry))
-#define EVENTS_UNDATED_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntryClass))
-#define EVENTS_IS_UNDATED_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY))
-#define EVENTS_IS_UNDATED_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY))
-#define EVENTS_UNDATED_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntryClass))
-
-typedef struct _EventsUndatedDirectoryEntry EventsUndatedDirectoryEntry;
-typedef struct _EventsUndatedDirectoryEntryClass EventsUndatedDirectoryEntryClass;
-
-#define EVENTS_TYPE_NO_EVENT_ENTRY (events_no_event_entry_get_type ())
-#define EVENTS_NO_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntry))
-#define EVENTS_NO_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntryClass))
-#define EVENTS_IS_NO_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_NO_EVENT_ENTRY))
-#define EVENTS_IS_NO_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_NO_EVENT_ENTRY))
-#define EVENTS_NO_EVENT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntryClass))
-
-typedef struct _EventsNoEventEntry EventsNoEventEntry;
-typedef struct _EventsNoEventEntryClass EventsNoEventEntryClass;
-
-#define EVENTS_TYPE_MASTER_DIRECTORY_ENTRY (events_master_directory_entry_get_type ())
-#define EVENTS_MASTER_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry))
-#define EVENTS_MASTER_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntryClass))
-#define EVENTS_IS_MASTER_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY))
-#define EVENTS_IS_MASTER_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY))
-#define EVENTS_MASTER_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntryClass))
-
-typedef struct _EventsMasterDirectoryEntry EventsMasterDirectoryEntry;
-typedef struct _EventsMasterDirectoryEntryClass EventsMasterDirectoryEntryClass;
-enum {
- EVENTS_BRANCH_0_PROPERTY,
- EVENTS_BRANCH_NUM_PROPERTIES
-};
-static GParamSpec* events_branch_properties[EVENTS_BRANCH_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ())
-#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection))
-#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION))
-#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION))
-#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-
-typedef struct _EventSourceCollection EventSourceCollection;
-typedef struct _EventSourceCollectionClass EventSourceCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
-#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
-#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-
-typedef struct _SidebarGrouping SidebarGrouping;
-typedef struct _SidebarGroupingClass SidebarGroupingClass;
-
-#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
-#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
-#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-
-typedef struct _SidebarHeader SidebarHeader;
-typedef struct _SidebarHeaderClass SidebarHeaderClass;
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
-
-#define EVENTS_TYPE_YEAR_DIRECTORY_ENTRY (events_year_directory_entry_get_type ())
-#define EVENTS_YEAR_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry))
-#define EVENTS_YEAR_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntryClass))
-#define EVENTS_IS_YEAR_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY))
-#define EVENTS_IS_YEAR_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY))
-#define EVENTS_YEAR_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntryClass))
-
-typedef struct _EventsYearDirectoryEntry EventsYearDirectoryEntry;
-typedef struct _EventsYearDirectoryEntryClass EventsYearDirectoryEntryClass;
-
-#define EVENTS_TYPE_MONTH_DIRECTORY_ENTRY (events_month_directory_entry_get_type ())
-#define EVENTS_MONTH_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry))
-#define EVENTS_MONTH_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntryClass))
-#define EVENTS_IS_MONTH_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY))
-#define EVENTS_IS_MONTH_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY))
-#define EVENTS_MONTH_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntryClass))
-
-typedef struct _EventsMonthDirectoryEntry EventsMonthDirectoryEntry;
-typedef struct _EventsMonthDirectoryEntryClass EventsMonthDirectoryEntryClass;
-
-#define TYPE_EVENT_ID (event_id_get_type ())
-typedef struct _EventID EventID;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
-#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
-#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
-#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
-
-typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
-typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-typedef struct _Block8Data Block8Data;
-typedef struct _Block9Data Block9Data;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-
-#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-typedef struct _EventsDirectoryEntryPrivate EventsDirectoryEntryPrivate;
-enum {
- EVENTS_DIRECTORY_ENTRY_0_PROPERTY,
- EVENTS_DIRECTORY_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* events_directory_entry_properties[EVENTS_DIRECTORY_ENTRY_NUM_PROPERTIES];
-typedef struct _EventsMasterDirectoryEntryPrivate EventsMasterDirectoryEntryPrivate;
-enum {
- EVENTS_MASTER_DIRECTORY_ENTRY_0_PROPERTY,
- EVENTS_MASTER_DIRECTORY_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* events_master_directory_entry_properties[EVENTS_MASTER_DIRECTORY_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_EVENTS_DIRECTORY_PAGE (events_directory_page_get_type ())
-#define EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage))
-#define EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass))
-#define IS_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENTS_DIRECTORY_PAGE))
-#define IS_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENTS_DIRECTORY_PAGE))
-#define EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass))
-
-typedef struct _EventsDirectoryPage EventsDirectoryPage;
-typedef struct _EventsDirectoryPageClass EventsDirectoryPageClass;
-
-#define TYPE_MASTER_EVENTS_DIRECTORY_PAGE (master_events_directory_page_get_type ())
-#define MASTER_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPage))
-#define MASTER_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPageClass))
-#define IS_MASTER_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE))
-#define IS_MASTER_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MASTER_EVENTS_DIRECTORY_PAGE))
-#define MASTER_EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPageClass))
-
-typedef struct _MasterEventsDirectoryPage MasterEventsDirectoryPage;
-typedef struct _MasterEventsDirectoryPageClass MasterEventsDirectoryPageClass;
-typedef struct _EventsYearDirectoryEntryPrivate EventsYearDirectoryEntryPrivate;
-enum {
- EVENTS_YEAR_DIRECTORY_ENTRY_0_PROPERTY,
- EVENTS_YEAR_DIRECTORY_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* events_year_directory_entry_properties[EVENTS_YEAR_DIRECTORY_ENTRY_NUM_PROPERTIES];
-
-#define SUB_EVENTS_DIRECTORY_PAGE_TYPE_DIRECTORY_TYPE (sub_events_directory_page_directory_type_get_type ())
-
-#define TYPE_SUB_EVENTS_DIRECTORY_PAGE (sub_events_directory_page_get_type ())
-#define SUB_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPage))
-#define SUB_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPageClass))
-#define IS_SUB_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE))
-#define IS_SUB_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SUB_EVENTS_DIRECTORY_PAGE))
-#define SUB_EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPageClass))
-
-typedef struct _SubEventsDirectoryPage SubEventsDirectoryPage;
-typedef struct _SubEventsDirectoryPageClass SubEventsDirectoryPageClass;
-typedef struct _EventsMonthDirectoryEntryPrivate EventsMonthDirectoryEntryPrivate;
-enum {
- EVENTS_MONTH_DIRECTORY_ENTRY_0_PROPERTY,
- EVENTS_MONTH_DIRECTORY_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* events_month_directory_entry_properties[EVENTS_MONTH_DIRECTORY_ENTRY_NUM_PROPERTIES];
-typedef struct _EventsUndatedDirectoryEntryPrivate EventsUndatedDirectoryEntryPrivate;
-enum {
- EVENTS_UNDATED_DIRECTORY_ENTRY_0_PROPERTY,
- EVENTS_UNDATED_DIRECTORY_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* events_undated_directory_entry_properties[EVENTS_UNDATED_DIRECTORY_ENTRY_NUM_PROPERTIES];
-
-#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ())
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry))
-#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY))
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface))
-
-typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry;
-typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface;
-
-#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;
-typedef struct _EventsEventEntryPrivate EventsEventEntryPrivate;
-enum {
- EVENTS_EVENT_ENTRY_0_PROPERTY,
- EVENTS_EVENT_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* events_event_entry_properties[EVENTS_EVENT_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define TYPE_EVENT_PAGE (event_page_get_type ())
-#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage))
-#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass))
-#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE))
-#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE))
-#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass))
-
-typedef struct _EventPage EventPage;
-typedef struct _EventPageClass EventPageClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ())
-#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand))
-#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-
-typedef struct _SimpleProxyableCommand SimpleProxyableCommand;
-typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass;
-
-#define TYPE_RENAME_EVENT_COMMAND (rename_event_command_get_type ())
-#define RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommand))
-#define RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass))
-#define IS_RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_EVENT_COMMAND))
-#define IS_RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_EVENT_COMMAND))
-#define RENAME_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass))
-
-typedef struct _RenameEventCommand RenameEventCommand;
-typedef struct _RenameEventCommandClass RenameEventCommandClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ())
-#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand))
-#define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass))
-#define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND))
-#define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND))
-#define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass))
-
-typedef struct _MovePhotosCommand MovePhotosCommand;
-typedef struct _MovePhotosCommandClass MovePhotosCommandClass;
-
-#define TYPE_SET_EVENT_COMMAND (set_event_command_get_type ())
-#define SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommand))
-#define SET_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_EVENT_COMMAND, SetEventCommandClass))
-#define IS_SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_EVENT_COMMAND))
-#define IS_SET_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_EVENT_COMMAND))
-#define SET_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommandClass))
-
-typedef struct _SetEventCommand SetEventCommand;
-typedef struct _SetEventCommandClass SetEventCommandClass;
-typedef struct _EventsNoEventEntryPrivate EventsNoEventEntryPrivate;
-enum {
- EVENTS_NO_EVENT_ENTRY_0_PROPERTY,
- EVENTS_NO_EVENT_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* events_no_event_entry_properties[EVENTS_NO_EVENT_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_NO_EVENT_PAGE (no_event_page_get_type ())
-#define NO_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NO_EVENT_PAGE, NoEventPage))
-#define NO_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NO_EVENT_PAGE, NoEventPageClass))
-#define IS_NO_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NO_EVENT_PAGE))
-#define IS_NO_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NO_EVENT_PAGE))
-#define NO_EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NO_EVENT_PAGE, NoEventPageClass))
-
-typedef struct _NoEventPage NoEventPage;
-typedef struct _NoEventPageClass NoEventPageClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SidebarBranch {
- GObject parent_instance;
- SidebarBranchPrivate * priv;
-};
-
-struct _SidebarBranchClass {
- GObjectClass parent_class;
-};
-
-struct _EventsBranch {
- SidebarBranch parent_instance;
- EventsBranchPrivate * priv;
-};
-
-struct _EventsBranchClass {
- SidebarBranchClass parent_class;
-};
-
-struct _EventsBranchPrivate {
- GeeHashMap* entry_map;
- EventsUndatedDirectoryEntry* undated_entry;
- EventsNoEventEntry* no_event_entry;
- EventsMasterDirectoryEntry* all_events_entry;
-};
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-typedef enum {
- SIDEBAR_BRANCH_OPTIONS_NONE = 0,
- SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
- SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
-} SidebarBranchOptions;
-
-struct _EventID {
- gint64 id;
-};
-
-struct _SidebarRenameableEntryIface {
- GTypeInterface parent_iface;
- void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
- gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
-};
-
-struct _Block8Data {
- int _ref_count_;
- EventsBranch* self;
- gint event_month;
-};
-
-typedef gboolean (*Locator) (gconstpointer item, void* user_data);
-struct _Block9Data {
- int _ref_count_;
- EventsBranch* self;
- gint event_year;
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _EventsDirectoryEntry {
- SidebarSimplePageEntry parent_instance;
- EventsDirectoryEntryPrivate * priv;
-};
-
-struct _EventsDirectoryEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _EventsMasterDirectoryEntry {
- EventsDirectoryEntry parent_instance;
- EventsMasterDirectoryEntryPrivate * priv;
-};
-
-struct _EventsMasterDirectoryEntryClass {
- EventsDirectoryEntryClass parent_class;
-};
-
-struct _EventsYearDirectoryEntry {
- EventsDirectoryEntry parent_instance;
- EventsYearDirectoryEntryPrivate * priv;
-};
-
-struct _EventsYearDirectoryEntryClass {
- EventsDirectoryEntryClass parent_class;
-};
-
-struct _EventsYearDirectoryEntryPrivate {
- gchar* name;
- struct tm tm;
-};
-
-typedef enum {
- SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR,
- SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH,
- SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED
-} SubEventsDirectoryPageDirectoryType;
-
-struct _EventsMonthDirectoryEntry {
- EventsDirectoryEntry parent_instance;
- EventsMonthDirectoryEntryPrivate * priv;
-};
-
-struct _EventsMonthDirectoryEntryClass {
- EventsDirectoryEntryClass parent_class;
-};
-
-struct _EventsMonthDirectoryEntryPrivate {
- gchar* name;
- struct tm tm;
-};
-
-struct _EventsUndatedDirectoryEntry {
- EventsDirectoryEntry parent_instance;
- EventsUndatedDirectoryEntryPrivate * priv;
-};
-
-struct _EventsUndatedDirectoryEntryClass {
- EventsDirectoryEntryClass parent_class;
-};
-
-struct _SidebarInternalDropTargetEntryIface {
- GTypeInterface parent_iface;
- gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources);
- gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data);
-};
-
-struct _EventsEventEntry {
- SidebarSimplePageEntry parent_instance;
- EventsEventEntryPrivate * priv;
-};
-
-struct _EventsEventEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _EventsEventEntryPrivate {
- Event* event;
-};
-
-struct _EventsNoEventEntry {
- SidebarSimplePageEntry parent_instance;
- EventsNoEventEntryPrivate * priv;
-};
-
-struct _EventsNoEventEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-
-static gpointer events_branch_parent_class = NULL;
-extern EventSourceCollection* event_global;
-extern gchar* events_branch_icon;
-gchar* events_branch_icon = NULL;
-extern gchar* events_branch_events_icon;
-gchar* events_branch_events_icon = NULL;
-extern gchar* events_branch_single_event_icon;
-gchar* events_branch_single_event_icon = NULL;
-extern gchar* events_branch_no_event_icon;
-gchar* events_branch_no_event_icon = NULL;
-static gboolean events_branch_sort_ascending;
-static gboolean events_branch_sort_ascending = FALSE;
-static gpointer events_directory_entry_parent_class = NULL;
-static SidebarExpandableEntryIface * events_directory_entry_sidebar_expandable_entry_parent_iface = NULL;
-static gpointer events_master_directory_entry_parent_class = NULL;
-static gpointer events_year_directory_entry_parent_class = NULL;
-static gpointer events_month_directory_entry_parent_class = NULL;
-static gpointer events_undated_directory_entry_parent_class = NULL;
-static gpointer events_event_entry_parent_class = NULL;
-static SidebarRenameableEntryIface * events_event_entry_sidebar_renameable_entry_parent_iface = NULL;
-static SidebarInternalDropTargetEntryIface * events_event_entry_sidebar_internal_drop_target_entry_parent_iface = NULL;
-static gpointer events_no_event_entry_parent_class = NULL;
-
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-GType events_branch_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType events_event_entry_get_type (void) G_GNUC_CONST;
-GType events_directory_entry_get_type (void) G_GNUC_CONST;
-GType events_undated_directory_entry_get_type (void) G_GNUC_CONST;
-GType events_no_event_entry_get_type (void) G_GNUC_CONST;
-GType events_master_directory_entry_get_type (void) G_GNUC_CONST;
-#define EVENTS_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENTS_TYPE_BRANCH, EventsBranchPrivate))
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType event_source_collection_get_type (void) G_GNUC_CONST;
-static void events_branch_on_events_added_removed (EventsBranch* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void _events_branch_on_events_added_removed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void events_branch_on_events_altered (EventsBranch* self,
- GeeMap* altered);
-static void _events_branch_on_events_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void events_branch_on_no_event_collection_altered (EventsBranch* self);
-static void _events_branch_on_no_event_collection_altered_event_source_collection_no_event_collection_altered (EventSourceCollection* _sender,
- gpointer self);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-static void events_branch_on_config_changed (EventsBranch* self);
-static void _events_branch_on_config_changed_configuration_facade_events_sort_ascending_changed (ConfigurationFacade* _sender,
- gpointer self);
-#define RESOURCES_ICON_FOLDER "folder"
-#define RESOURCES_ICON_EVENTS "multiple-events"
-#define RESOURCES_ICON_ONE_EVENT "one-event"
-#define RESOURCES_ICON_NO_EVENT "no-event"
-EventsUndatedDirectoryEntry* events_undated_directory_entry_new (void);
-EventsUndatedDirectoryEntry* events_undated_directory_entry_construct (GType object_type);
-EventsNoEventEntry* events_no_event_entry_new (void);
-EventsNoEventEntry* events_no_event_entry_construct (GType object_type);
-EventsMasterDirectoryEntry* events_master_directory_entry_new (void);
-EventsMasterDirectoryEntry* events_master_directory_entry_construct (GType object_type);
-EventsBranch* events_branch_new (void);
-EventsBranch* events_branch_construct (GType object_type);
-SidebarHeader* sidebar_header_new (const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type,
- const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-GType sidebar_grouping_get_type (void) G_GNUC_CONST;
-GType sidebar_header_get_type (void) G_GNUC_CONST;
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-static gint events_branch_event_year_comparator (SidebarEntry* a,
- SidebarEntry* b);
-static gint _events_branch_event_year_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-void sidebar_branch_graft (SidebarBranch* self,
- SidebarEntry* parent,
- SidebarEntry* entry,
- GCompareFunc comparator);
-SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-GeeCollection* data_collection_get_all (DataCollection* self);
-static void events_branch_add_event (EventsBranch* self,
- Event* event);
-static void events_branch_show_no_events (EventsBranch* self,
- gboolean show);
-GeeCollection* event_source_collection_get_no_event_objects (EventSourceCollection* self);
-void events_branch_init (void);
-gboolean configuration_facade_get_events_sort_ascending (ConfigurationFacade* self);
-void events_branch_terminate (void);
-gboolean events_branch_is_user_renameable (EventsBranch* self);
-EventsMasterDirectoryEntry* events_branch_get_master_entry (EventsBranch* self);
-GType events_year_directory_entry_get_type (void) G_GNUC_CONST;
-gint events_year_directory_entry_get_year (EventsYearDirectoryEntry* self);
-static gint events_branch_event_month_comparator (SidebarEntry* a,
- SidebarEntry* b);
-GType events_month_directory_entry_get_type (void) G_GNUC_CONST;
-gint events_month_directory_entry_get_month (EventsMonthDirectoryEntry* self);
-static gint events_branch_event_comparator (SidebarEntry* a,
- SidebarEntry* b);
-Event* events_event_entry_get_event (EventsEventEntry* self);
-time_t event_source_get_start_time (EventSource* self);
-GType event_id_get_type (void) G_GNUC_CONST;
-EventID* event_id_dup (const EventID* self);
-void event_id_free (EventID* self);
-void event_get_event_id (Event* self,
- EventID* result);
-static gint events_branch_undated_event_comparator (SidebarEntry* a,
- SidebarEntry* b);
-gchar* data_object_get_name (DataObject* self);
-gint64 data_source_get_instance_id (DataSource* self);
-EventsEventEntry* events_branch_get_entry_for_event (EventsBranch* self,
- Event* event);
-void sidebar_branch_reorder_all (SidebarBranch* self);
-static void events_branch_remove_event (EventsBranch* self,
- Event* event);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-static void events_branch_move_event (EventsBranch* self,
- Event* event);
-GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
-static void events_branch_add_undated_event (EventsBranch* self,
- Event* event);
-static SidebarEntry* events_branch_find_event_month (EventsBranch* self,
- Event* event,
- struct tm* event_tm,
- SidebarEntry* * found_year);
-static void events_branch_graft_event (EventsBranch* self,
- SidebarEntry* parent,
- Event* event,
- GCompareFunc comparator);
-static gint _events_branch_event_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-#define SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT _ ("%Y")
-EventsYearDirectoryEntry* events_year_directory_entry_new (const gchar* name,
- struct tm* tm);
-EventsYearDirectoryEntry* events_year_directory_entry_construct (GType object_type,
- const gchar* name,
- struct tm* tm);
-static gint _events_branch_event_month_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-#define SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT _ ("%B")
-EventsMonthDirectoryEntry* events_month_directory_entry_new (const gchar* name,
- struct tm* tm);
-EventsMonthDirectoryEntry* events_month_directory_entry_construct (GType object_type,
- const gchar* name,
- struct tm* tm);
-static void events_branch_move_to_undated_event (EventsBranch* self,
- Event* event);
-static void events_branch_reparent_event (EventsBranch* self,
- Event* event,
- SidebarEntry* new_parent);
-SidebarEntry* sidebar_branch_get_parent (SidebarBranch* self,
- SidebarEntry* entry);
-void sidebar_branch_prune (SidebarBranch* self,
- SidebarEntry* entry);
-gint sidebar_branch_get_child_count (SidebarBranch* self,
- SidebarEntry* parent);
-static Block8Data* block8_data_ref (Block8Data* _data8_);
-static void block8_data_unref (void * _userdata_);
-static SidebarEntry* events_branch_find_event_year (EventsBranch* self,
- Event* event,
- struct tm* event_tm);
-SidebarEntry* sidebar_branch_find_first_child (SidebarBranch* self,
- SidebarEntry* parent,
- Locator locator,
- void* locator_target);
-static gboolean __lambda21_ (Block8Data* _data8_,
- SidebarEntry* entry);
-static gboolean ___lambda21__locator (gconstpointer item,
- gpointer self);
-static Block9Data* block9_data_ref (Block9Data* _data9_);
-static void block9_data_unref (void * _userdata_);
-static gboolean __lambda20_ (Block9Data* _data9_,
- SidebarEntry* entry);
-static gboolean ___lambda20__locator (gconstpointer item,
- gpointer self);
-gboolean sidebar_branch_has_entry (SidebarBranch* self,
- SidebarEntry* entry);
-static gint _events_branch_undated_event_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-EventsEventEntry* events_event_entry_new (Event* event);
-EventsEventEntry* events_event_entry_construct (GType object_type,
- Event* event);
-void sidebar_branch_reparent (SidebarBranch* self,
- SidebarEntry* new_parent,
- SidebarEntry* entry);
-static void events_branch_finalize (GObject * obj);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-EventsDirectoryEntry* events_directory_entry_construct (GType object_type);
-SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
-static gchar* events_directory_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static gboolean events_directory_entry_real_expand_on_select (SidebarExpandableEntry* base);
-static gchar* events_master_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-#define MASTER_EVENTS_DIRECTORY_PAGE_NAME _ ("All Events")
-static gchar* events_master_directory_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static Page* events_master_directory_entry_real_create_page (SidebarSimplePageEntry* base);
-MasterEventsDirectoryPage* master_events_directory_page_new (void);
-MasterEventsDirectoryPage* master_events_directory_page_construct (GType object_type);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType events_directory_page_get_type (void) G_GNUC_CONST;
-GType master_events_directory_page_get_type (void) G_GNUC_CONST;
-#define EVENTS_YEAR_DIRECTORY_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntryPrivate))
-static gchar* events_year_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-static Page* events_year_directory_entry_real_create_page (SidebarSimplePageEntry* base);
-GType sub_events_directory_page_directory_type_get_type (void) G_GNUC_CONST;
-SubEventsDirectoryPage* sub_events_directory_page_new (SubEventsDirectoryPageDirectoryType type,
- struct tm* time);
-SubEventsDirectoryPage* sub_events_directory_page_construct (GType object_type,
- SubEventsDirectoryPageDirectoryType type,
- struct tm* time);
-GType sub_events_directory_page_get_type (void) G_GNUC_CONST;
-static void events_year_directory_entry_finalize (GObject * obj);
-#define EVENTS_MONTH_DIRECTORY_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntryPrivate))
-static gchar* events_month_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-gint events_month_directory_entry_get_year (EventsMonthDirectoryEntry* self);
-static Page* events_month_directory_entry_real_create_page (SidebarSimplePageEntry* base);
-static void events_month_directory_entry_finalize (GObject * obj);
-static gchar* events_undated_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-#define SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME _ ("Undated")
-static Page* events_undated_directory_entry_real_create_page (SidebarSimplePageEntry* base);
-GType media_source_get_type (void) G_GNUC_CONST;
-GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST;
-#define EVENTS_EVENT_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryPrivate))
-static gchar* events_event_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-static gchar* events_event_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static Page* events_event_entry_real_create_page (SidebarSimplePageEntry* base);
-EventPage* event_page_new (Event* page_event);
-EventPage* event_page_construct (GType object_type,
- Event* page_event);
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType event_page_get_type (void) G_GNUC_CONST;
-static gboolean events_event_entry_real_is_user_renameable (SidebarRenameableEntry* base);
-static void events_event_entry_real_rename (SidebarRenameableEntry* base,
- const gchar* new_name);
-gchar* event_prep_event_name (const gchar* name);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* app_window_get_command_manager (void);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-RenameEventCommand* rename_event_command_new (Event* event,
- const gchar* new_name);
-RenameEventCommand* rename_event_command_construct (GType object_type,
- Event* event,
- const gchar* new_name);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
-GType rename_event_command_get_type (void) G_GNUC_CONST;
-static gboolean events_event_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media);
-GType data_view_get_type (void) G_GNUC_CONST;
-DataView* data_view_new (DataSource* source);
-DataView* data_view_construct (GType object_type,
- DataSource* source);
-SetEventCommand* set_event_command_new (GeeIterable* iter,
- Event* new_event);
-SetEventCommand* set_event_command_construct (GType object_type,
- GeeIterable* iter,
- Event* new_event);
-GType move_photos_command_get_type (void) G_GNUC_CONST;
-GType set_event_command_get_type (void) G_GNUC_CONST;
-static gboolean events_event_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data);
-static void events_event_entry_finalize (GObject * obj);
-static gchar* events_no_event_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-#define NO_EVENT_PAGE_NAME _ ("No Event")
-static gchar* events_no_event_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static Page* events_no_event_entry_real_create_page (SidebarSimplePageEntry* base);
-NoEventPage* no_event_page_new (void);
-NoEventPage* no_event_page_construct (GType object_type);
-GType no_event_page_get_type (void) G_GNUC_CONST;
-
-
-static void
-_events_branch_on_events_added_removed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 47 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_on_events_added_removed ((EventsBranch*) self, added, removed);
-#line 1125 "EventsBranch.c"
-}
-
-
-static void
-_events_branch_on_events_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 48 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_on_events_altered ((EventsBranch*) self, items);
-#line 1136 "EventsBranch.c"
-}
-
-
-static void
-_events_branch_on_no_event_collection_altered_event_source_collection_no_event_collection_altered (EventSourceCollection* _sender,
- gpointer self)
-{
-#line 49 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_on_no_event_collection_altered ((EventsBranch*) self);
-#line 1146 "EventsBranch.c"
-}
-
-
-static void
-_events_branch_on_config_changed_configuration_facade_events_sort_ascending_changed (ConfigurationFacade* _sender,
- gpointer self)
-{
-#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_on_config_changed ((EventsBranch*) self);
-#line 1156 "EventsBranch.c"
-}
-
-
-static gint
-_events_branch_event_year_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = events_branch_event_year_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1168 "EventsBranch.c"
-}
-
-
-EventsBranch*
-events_branch_construct (GType object_type)
-{
- EventsBranch * self = NULL;
- SidebarHeader* _tmp0_;
- SidebarHeader* _tmp1_;
- SidebarEntry* _tmp2_;
- SidebarEntry* _tmp3_;
- EventsMasterDirectoryEntry* _tmp4_;
- EventSourceCollection* _tmp14_;
- GeeCollection* _tmp15_;
- GeeCollection* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- EventSourceCollection* _tmp19_;
- EventSourceCollection* _tmp20_;
- EventSourceCollection* _tmp21_;
- ConfigFacade* _tmp22_;
- ConfigFacade* _tmp23_;
-#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = sidebar_header_new (_ ("Events"), _ ("Browse through your events"), TRUE);
-#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = (EventsBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD, _events_branch_event_year_comparator_gcompare_func, NULL);
-#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = _tmp2_;
-#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = self->priv->all_events_entry;
-#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
-#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 1209 "EventsBranch.c"
- {
- GeeIterator* _object_it = NULL;
- EventSourceCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- GeeIterator* _tmp8_;
- GeeIterator* _tmp9_;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = event_global;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = _tmp6_;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = _tmp8_;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp7_);
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _object_it = _tmp9_;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- while (TRUE) {
-#line 1233 "EventsBranch.c"
- GeeIterator* _tmp10_;
- DataObject* object = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- DataObject* _tmp13_;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = _object_it;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- break;
-#line 1245 "EventsBranch.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp11_ = _object_it;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- object = (DataObject*) _tmp12_;
-#line 33 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = object;
-#line 33 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_add_event (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_EVENT, Event));
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (object);
-#line 1259 "EventsBranch.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_object_it);
-#line 1263 "EventsBranch.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = event_global;
-#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp15_ = event_source_collection_get_no_event_objects (_tmp14_);
-#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = _tmp15_;
-#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp17_ = gee_collection_get_size (_tmp16_);
-#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp18_ = _tmp17_;
-#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_show_no_events (self, _tmp18_ > 0);
-#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp16_);
-#line 38 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp19_ = event_global;
-#line 38 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _events_branch_on_events_added_removed_data_collection_contents_altered, self, 0);
-#line 39 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp20_ = event_global;
-#line 39 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _events_branch_on_events_altered_data_collection_items_altered, self, 0);
-#line 40 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp21_ = event_global;
-#line 40 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_connect_object (_tmp21_, "no-event-collection-altered", (GCallback) _events_branch_on_no_event_collection_altered_event_source_collection_no_event_collection_altered, self, 0);
-#line 43 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp22_ = config_facade_get_instance ();
-#line 43 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp23_ = _tmp22_;
-#line 43 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "events-sort-ascending-changed", (GCallback) _events_branch_on_config_changed_configuration_facade_events_sort_ascending_changed, self, 0);
-#line 43 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp23_);
-#line 24 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self;
-#line 1301 "EventsBranch.c"
-}
-
-
-EventsBranch*
-events_branch_new (void)
-{
-#line 24 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return events_branch_construct (EVENTS_TYPE_BRANCH);
-#line 1310 "EventsBranch.c"
-}
-
-
-void
-events_branch_init (void)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 55 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 55 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_sort_ascending = configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 55 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 1327 "EventsBranch.c"
-}
-
-
-void
-events_branch_terminate (void)
-{
-}
-
-
-gboolean
-events_branch_is_user_renameable (EventsBranch* self)
-{
- gboolean result = FALSE;
-#line 61 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_BRANCH (self), FALSE);
-#line 62 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = TRUE;
-#line 62 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1347 "EventsBranch.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1356 "EventsBranch.c"
-}
-
-
-EventsMasterDirectoryEntry*
-events_branch_get_master_entry (EventsBranch* self)
-{
- EventsMasterDirectoryEntry* result = NULL;
- EventsMasterDirectoryEntry* _tmp0_;
- EventsMasterDirectoryEntry* _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_BRANCH (self), NULL);
-#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->all_events_entry;
-#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1376 "EventsBranch.c"
-}
-
-
-static gint
-events_branch_event_year_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- gboolean _tmp0_;
- gint _result_ = 0;
- gint _tmp3_;
-#line 69 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 69 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 70 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (a == b) {
-#line 71 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = 0;
-#line 71 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1398 "EventsBranch.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (a, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY)) {
-#line 76 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (b, EVENTS_TYPE_NO_EVENT_ENTRY)) {
-#line 77 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = -1;
-#line 77 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1408 "EventsBranch.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = 1;
-#line 78 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1414 "EventsBranch.c"
- } else {
-#line 79 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (b, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY)) {
-#line 80 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (a, EVENTS_TYPE_NO_EVENT_ENTRY)) {
-#line 81 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = 1;
-#line 81 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1424 "EventsBranch.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = -1;
-#line 82 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1430 "EventsBranch.c"
- }
- }
-#line 85 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (a, EVENTS_TYPE_NO_EVENT_ENTRY)) {
-#line 86 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = 1;
-#line 86 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1439 "EventsBranch.c"
- } else {
-#line 87 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (b, EVENTS_TYPE_NO_EVENT_ENTRY)) {
-#line 88 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = -1;
-#line 88 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1447 "EventsBranch.c"
- }
- }
-#line 91 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (a, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY)) {
-#line 92 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = -1;
-#line 92 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1456 "EventsBranch.c"
- } else {
-#line 93 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (b, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY)) {
-#line 94 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = 1;
-#line 94 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1464 "EventsBranch.c"
- }
- }
-#line 96 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_branch_sort_ascending;
-#line 96 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!_tmp0_) {
-#line 1471 "EventsBranch.c"
- SidebarEntry* swap = NULL;
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
-#line 97 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _g_object_ref0 (a);
-#line 97 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- swap = _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- a = b;
-#line 99 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = swap;
-#line 99 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- b = _tmp2_;
-#line 96 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (swap);
-#line 1487 "EventsBranch.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _result_ = events_year_directory_entry_get_year (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry)) - events_year_directory_entry_get_year (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry));
-#line 104 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = _result_;
-#line 104 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp3_ != 0, "result != 0");
-#line 106 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _result_;
-#line 106 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1499 "EventsBranch.c"
-}
-
-
-static gint
-events_branch_event_month_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- gboolean _tmp0_;
- gint _result_ = 0;
- gint _tmp3_;
-#line 109 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 109 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 110 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (a == b) {
-#line 111 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = 0;
-#line 111 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1521 "EventsBranch.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_branch_sort_ascending;
-#line 113 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!_tmp0_) {
-#line 1527 "EventsBranch.c"
- SidebarEntry* swap = NULL;
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
-#line 114 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _g_object_ref0 (a);
-#line 114 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- swap = _tmp1_;
-#line 115 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- a = b;
-#line 116 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = swap;
-#line 116 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- b = _tmp2_;
-#line 113 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (swap);
-#line 1543 "EventsBranch.c"
- }
-#line 119 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _result_ = events_month_directory_entry_get_month (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry)) - events_month_directory_entry_get_month (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry));
-#line 121 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = _result_;
-#line 121 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp3_ != 0, "result != 0");
-#line 123 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _result_;
-#line 123 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1555 "EventsBranch.c"
-}
-
-
-static gint
-events_branch_event_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- gboolean _tmp0_;
- gint64 _result_ = 0LL;
- Event* _tmp3_;
- Event* _tmp4_;
- Event* _tmp5_;
- Event* _tmp6_;
- gint64 _tmp7_;
- gint64 _tmp8_;
- gint64 _tmp17_;
- gint _tmp18_ = 0;
- gint64 _tmp19_;
-#line 126 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 126 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 127 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (a == b) {
-#line 128 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = 0;
-#line 128 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1585 "EventsBranch.c"
- }
-#line 130 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_branch_sort_ascending;
-#line 130 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!_tmp0_) {
-#line 1591 "EventsBranch.c"
- SidebarEntry* swap = NULL;
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
-#line 131 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _g_object_ref0 (a);
-#line 131 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- swap = _tmp1_;
-#line 132 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- a = b;
-#line 133 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = swap;
-#line 133 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- b = _tmp2_;
-#line 130 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (swap);
-#line 1607 "EventsBranch.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry));
-#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry));
-#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = _tmp5_;
-#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = (gint64) (event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_EVENT_SOURCE, EventSource)) - event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_EVENT_SOURCE, EventSource)));
-#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp6_);
-#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp4_);
-#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _result_ = _tmp7_;
-#line 140 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = _result_;
-#line 140 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp8_ == ((gint64) 0)) {
-#line 1629 "EventsBranch.c"
- Event* _tmp9_;
- Event* _tmp10_;
- EventID _tmp11_ = {0};
- gint64 _tmp12_;
- Event* _tmp13_;
- Event* _tmp14_;
- EventID _tmp15_ = {0};
- gint64 _tmp16_;
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry));
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = _tmp9_;
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- event_get_event_id (_tmp10_, &_tmp11_);
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = _tmp11_.id;
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry));
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = _tmp13_;
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- event_get_event_id (_tmp14_, &_tmp15_);
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = _tmp15_.id;
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _result_ = _tmp12_ - _tmp16_;
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp14_);
-#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp10_);
-#line 1660 "EventsBranch.c"
- }
-#line 145 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp17_ = _result_;
-#line 145 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp17_ != ((gint64) 0), "result != 0");
-#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp19_ = _result_;
-#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp19_ < ((gint64) 0)) {
-#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp18_ = -1;
-#line 1672 "EventsBranch.c"
- } else {
-#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp18_ = 1;
-#line 1676 "EventsBranch.c"
- }
-#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp18_;
-#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1682 "EventsBranch.c"
-}
-
-
-static gint
-events_branch_undated_event_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- gboolean _tmp0_;
- gint ret = 0;
- Event* _tmp3_;
- Event* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- Event* _tmp7_;
- Event* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 150 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 150 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 151 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (a == b) {
-#line 152 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = 0;
-#line 152 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1713 "EventsBranch.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_branch_sort_ascending;
-#line 154 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!_tmp0_) {
-#line 1719 "EventsBranch.c"
- SidebarEntry* swap = NULL;
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
-#line 155 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _g_object_ref0 (a);
-#line 155 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- swap = _tmp1_;
-#line 156 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- a = b;
-#line 157 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = swap;
-#line 157 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- b = _tmp2_;
-#line 154 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (swap);
-#line 1735 "EventsBranch.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry));
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = _tmp5_;
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry));
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = _tmp7_;
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = _tmp9_;
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp11_ = g_utf8_collate (_tmp6_, _tmp10_);
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (_tmp10_);
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp8_);
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (_tmp6_);
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp4_);
-#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ret = _tmp11_;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = ret;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp12_ == 0) {
-#line 1769 "EventsBranch.c"
- Event* _tmp13_;
- Event* _tmp14_;
- Event* _tmp15_;
- Event* _tmp16_;
-#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry));
-#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = _tmp13_;
-#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp15_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry));
-#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = _tmp15_;
-#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ret = (gint) (data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_SOURCE, DataSource)) - data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_SOURCE, DataSource)));
-#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp16_);
-#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp14_);
-#line 1788 "EventsBranch.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = ret;
-#line 167 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1794 "EventsBranch.c"
-}
-
-
-EventsEventEntry*
-events_branch_get_entry_for_event (EventsBranch* self,
- Event* event)
-{
- EventsEventEntry* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 170 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_BRANCH (self), NULL);
-#line 170 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 171 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->entry_map;
-#line 171 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), event);
-#line 171 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = (EventsEventEntry*) _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 1817 "EventsBranch.c"
-}
-
-
-static void
-events_branch_on_config_changed (EventsBranch* self)
-{
- gboolean value = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
-#line 174 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- value = _tmp2_;
-#line 177 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_sort_ascending = value;
-#line 178 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_reorder_all (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 1844 "EventsBranch.c"
-}
-
-
-static void
-events_branch_on_events_added_removed (EventsBranch* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
-#line 181 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 181 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 181 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 183 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (added != NULL) {
-#line 1861 "EventsBranch.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _object_it = _tmp0_;
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- while (TRUE) {
-#line 1871 "EventsBranch.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataObject* _tmp4_;
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _object_it;
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- break;
-#line 1883 "EventsBranch.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = _object_it;
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- object = (DataObject*) _tmp3_;
-#line 185 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = object;
-#line 185 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_add_event (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_EVENT, Event));
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (object);
-#line 1897 "EventsBranch.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_object_it);
-#line 1901 "EventsBranch.c"
- }
- }
-#line 188 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (removed != NULL) {
-#line 1906 "EventsBranch.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp5_;
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = gee_iterable_iterator (removed);
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _object_it = _tmp5_;
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- while (TRUE) {
-#line 1916 "EventsBranch.c"
- GeeIterator* _tmp6_;
- DataObject* object = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- DataObject* _tmp9_;
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = _object_it;
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- break;
-#line 1928 "EventsBranch.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = _object_it;
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- object = (DataObject*) _tmp8_;
-#line 190 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = object;
-#line 190 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_remove_event (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_EVENT, Event));
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (object);
-#line 1942 "EventsBranch.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_object_it);
-#line 1946 "EventsBranch.c"
- }
- }
-}
-
-
-static void
-events_branch_on_events_altered (EventsBranch* self,
- GeeMap* altered)
-{
-#line 194 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 194 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (GEE_IS_MAP (altered));
-#line 1960 "EventsBranch.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = gee_map_get_keys (altered);
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = _tmp1_;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp2_);
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _object_it = _tmp4_;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- while (TRUE) {
-#line 1984 "EventsBranch.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- Event* event = NULL;
- DataObject* _tmp8_;
- Event* _tmp9_;
- Alteration* alteration = NULL;
- DataObject* _tmp10_;
- gpointer _tmp11_;
- Alteration* _tmp12_;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = _object_it;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- break;
-#line 2002 "EventsBranch.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = _object_it;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- object = (DataObject*) _tmp7_;
-#line 196 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = object;
-#line 196 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EVENT, Event));
-#line 196 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- event = _tmp9_;
-#line 197 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = object;
-#line 197 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp11_ = gee_map_get (altered, _tmp10_);
-#line 197 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- alteration = (Alteration*) _tmp11_;
-#line 199 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = alteration;
-#line 199 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (alteration_has_detail (_tmp12_, "metadata", "time")) {
-#line 2026 "EventsBranch.c"
- Event* _tmp13_;
-#line 202 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = event;
-#line 202 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_move_event (self, _tmp13_);
-#line 2032 "EventsBranch.c"
- } else {
- Alteration* _tmp14_;
-#line 203 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = alteration;
-#line 203 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (alteration_has_detail (_tmp14_, "metadata", "name")) {
-#line 2039 "EventsBranch.c"
- EventsEventEntry* entry = NULL;
- GeeHashMap* _tmp15_;
- Event* _tmp16_;
- gpointer _tmp17_;
- EventsEventEntry* _tmp18_;
- EventsEventEntry* _tmp19_;
- Event* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- EventsEventEntry* _tmp23_;
- Event* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
-#line 204 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp15_ = self->priv->entry_map;
-#line 204 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = event;
-#line 204 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp17_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp16_);
-#line 204 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- entry = (EventsEventEntry*) _tmp17_;
-#line 205 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp18_ = entry;
-#line 205 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp18_ != NULL, "entry != null");
-#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp19_ = entry;
-#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp20_ = event;
-#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp21_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject));
-#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp22_ = _tmp21_;
-#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry), "sidebar-name-changed", _tmp22_);
-#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (_tmp22_);
-#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp23_ = entry;
-#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp24_ = event;
-#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp25_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_OBJECT, DataObject));
-#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp26_ = _tmp25_;
-#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-tooltip-changed", _tmp26_);
-#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (_tmp26_);
-#line 203 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (entry);
-#line 2091 "EventsBranch.c"
- }
- }
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _alteration_unref0 (alteration);
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (event);
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (object);
-#line 2100 "EventsBranch.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_object_it);
-#line 2104 "EventsBranch.c"
- }
-}
-
-
-static void
-events_branch_on_no_event_collection_altered (EventsBranch* self)
-{
- EventSourceCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 213 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = event_global;
-#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = event_source_collection_get_no_event_objects (_tmp0_);
-#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = _tmp1_;
-#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = gee_collection_get_size (_tmp2_);
-#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_show_no_events (self, _tmp4_ > 0);
-#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp2_);
-#line 2133 "EventsBranch.c"
-}
-
-
-static void
-g_time_local (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- localtime_r (&time, &_tmp0_);
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 2151 "EventsBranch.c"
-}
-
-
-static gint
-_events_branch_event_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = events_branch_event_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 230 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2163 "EventsBranch.c"
-}
-
-
-static gchar*
-g_time_format (struct tm *self,
- const gchar* format)
-{
- gchar* result = NULL;
- gchar* buffer = NULL;
- gchar* _tmp0_;
- gint buffer_length1;
- gint _buffer_size_;
- gchar* _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gint _tmp2__length1;
- gchar* _tmp3_;
-#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (format != NULL, NULL);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, 64);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = _tmp0_;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer_length1 = 64;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _buffer_size_ = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = buffer;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1__length1 = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- strftime (_tmp1_, _tmp1__length1, format, &(*self));
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = buffer;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2__length1 = buffer_length1;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_strdup ((const gchar*) _tmp2_);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp3_;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = (g_free (buffer), NULL);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2209 "EventsBranch.c"
-}
-
-
-static gint
-_events_branch_event_month_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = events_branch_event_month_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2221 "EventsBranch.c"
-}
-
-
-static void
-events_branch_add_event (EventsBranch* self,
- Event* event)
-{
- time_t event_time = 0;
- time_t _tmp0_;
- struct tm event_tm = {0};
- time_t _tmp1_;
- struct tm _tmp2_ = {0};
- SidebarEntry* year = NULL;
- SidebarEntry* month = NULL;
- struct tm _tmp3_;
- SidebarEntry* _tmp4_ = NULL;
- SidebarEntry* _tmp5_;
- SidebarEntry* _tmp6_;
- SidebarEntry* _tmp8_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- struct tm _tmp18_;
- EventsMonthDirectoryEntry* _tmp19_;
- SidebarEntry* _tmp20_;
- SidebarEntry* _tmp21_;
- SidebarEntry* _tmp22_;
-#line 217 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 217 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (IS_EVENT (event));
-#line 218 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- event_time = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
-#line 219 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = event_time;
-#line 219 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp0_ == ((time_t) 0)) {
-#line 220 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_add_undated_event (self, event);
-#line 222 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return;
-#line 2262 "EventsBranch.c"
- }
-#line 225 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = event_time;
-#line 225 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_time_local (_tmp1_, &_tmp2_);
-#line 225 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- event_tm = _tmp2_;
-#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = event_tm;
-#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = events_branch_find_event_month (self, event, &_tmp3_, &_tmp4_);
-#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (year);
-#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- year = _tmp4_;
-#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- month = _tmp5_;
-#line 229 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = month;
-#line 229 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp6_ != NULL) {
-#line 2284 "EventsBranch.c"
- SidebarEntry* _tmp7_;
-#line 230 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = month;
-#line 230 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_graft_event (self, _tmp7_, event, _events_branch_event_comparator_gcompare_func);
-#line 232 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (month);
-#line 232 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (year);
-#line 232 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return;
-#line 2296 "EventsBranch.c"
- }
-#line 235 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = year;
-#line 235 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp8_ == NULL) {
-#line 2302 "EventsBranch.c"
- gchar* _tmp9_;
- gchar* _tmp10_;
- struct tm _tmp11_;
- EventsYearDirectoryEntry* _tmp12_;
- SidebarEntry* _tmp13_;
- SidebarEntry* _tmp14_;
- SidebarEntry* _tmp15_;
-#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = g_time_format (&event_tm, SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT);
-#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = _tmp9_;
-#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp11_ = event_tm;
-#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = events_year_directory_entry_new (_tmp10_, &_tmp11_);
-#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (year);
-#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- year = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SIDEBAR_TYPE_ENTRY, SidebarEntry);
-#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (_tmp10_);
-#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = _tmp13_;
-#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp15_ = year;
-#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp14_, _tmp15_, _events_branch_event_month_comparator_gcompare_func);
-#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp14_);
-#line 2334 "EventsBranch.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = g_time_format (&event_tm, SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT);
-#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp17_ = _tmp16_;
-#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp18_ = event_tm;
-#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp19_ = events_month_directory_entry_new (_tmp17_, &_tmp18_);
-#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (month);
-#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- month = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SIDEBAR_TYPE_ENTRY, SidebarEntry);
-#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (_tmp17_);
-#line 243 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp20_ = year;
-#line 243 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp21_ = month;
-#line 243 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp20_, _tmp21_, _events_branch_event_comparator_gcompare_func);
-#line 245 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp22_ = month;
-#line 245 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_graft_event (self, _tmp22_, event, _events_branch_event_comparator_gcompare_func);
-#line 217 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (month);
-#line 217 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (year);
-#line 2364 "EventsBranch.c"
-}
-
-
-static void
-events_branch_move_event (EventsBranch* self,
- Event* event)
-{
- time_t event_time = 0;
- time_t _tmp0_;
- struct tm event_tm = {0};
- time_t _tmp1_;
- struct tm _tmp2_ = {0};
- SidebarEntry* year = NULL;
- SidebarEntry* month = NULL;
- struct tm _tmp3_;
- SidebarEntry* _tmp4_ = NULL;
- SidebarEntry* _tmp5_;
- SidebarEntry* _tmp6_;
- SidebarEntry* _tmp14_;
- SidebarEntry* _tmp21_;
-#line 248 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 248 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (IS_EVENT (event));
-#line 249 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- event_time = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
-#line 250 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = event_time;
-#line 250 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp0_ == ((time_t) 0)) {
-#line 251 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_move_to_undated_event (self, event);
-#line 253 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return;
-#line 2399 "EventsBranch.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = event_time;
-#line 256 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_time_local (_tmp1_, &_tmp2_);
-#line 256 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- event_tm = _tmp2_;
-#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = event_tm;
-#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = events_branch_find_event_month (self, event, &_tmp3_, &_tmp4_);
-#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (year);
-#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- year = _tmp4_;
-#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- month = _tmp5_;
-#line 261 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = year;
-#line 261 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp6_ == NULL) {
-#line 2421 "EventsBranch.c"
- gchar* _tmp7_;
- gchar* _tmp8_;
- struct tm _tmp9_;
- EventsYearDirectoryEntry* _tmp10_;
- SidebarEntry* _tmp11_;
- SidebarEntry* _tmp12_;
- SidebarEntry* _tmp13_;
-#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = g_time_format (&event_tm, SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT);
-#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = _tmp7_;
-#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = event_tm;
-#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = events_year_directory_entry_new (_tmp8_, &_tmp9_);
-#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (year);
-#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- year = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SIDEBAR_TYPE_ENTRY, SidebarEntry);
-#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (_tmp8_);
-#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp11_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = _tmp11_;
-#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = year;
-#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp12_, _tmp13_, _events_branch_event_month_comparator_gcompare_func);
-#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp12_);
-#line 2453 "EventsBranch.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = month;
-#line 267 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp14_ == NULL) {
-#line 2459 "EventsBranch.c"
- gchar* _tmp15_;
- gchar* _tmp16_;
- struct tm _tmp17_;
- EventsMonthDirectoryEntry* _tmp18_;
- SidebarEntry* _tmp19_;
- SidebarEntry* _tmp20_;
-#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp15_ = g_time_format (&event_tm, SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT);
-#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = _tmp15_;
-#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp17_ = event_tm;
-#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp18_ = events_month_directory_entry_new (_tmp16_, &_tmp17_);
-#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (month);
-#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- month = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SIDEBAR_TYPE_ENTRY, SidebarEntry);
-#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (_tmp16_);
-#line 270 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp19_ = year;
-#line 270 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp20_ = month;
-#line 270 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp19_, _tmp20_, _events_branch_event_comparator_gcompare_func);
-#line 2486 "EventsBranch.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp21_ = month;
-#line 273 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_reparent_event (self, event, _tmp21_);
-#line 248 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (month);
-#line 248 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (year);
-#line 2496 "EventsBranch.c"
-}
-
-
-static void
-events_branch_remove_event (EventsBranch* self,
- Event* event)
-{
- SidebarEntry* entry = NULL;
- gboolean removed = FALSE;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_ = NULL;
- gboolean _tmp2_;
- gboolean _tmp3_;
- SidebarEntry* parent = NULL;
- SidebarEntry* _tmp4_;
- SidebarEntry* _tmp5_;
- SidebarEntry* _tmp6_;
- SidebarEntry* _tmp7_;
-#line 276 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 276 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (IS_EVENT (event));
-#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->entry_map;
-#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), event, &_tmp1_);
-#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (entry);
-#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- entry = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry);
-#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- removed = _tmp2_;
-#line 281 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = removed;
-#line 281 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp3_, "removed");
-#line 283 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = entry;
-#line 283 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp4_);
-#line 283 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- parent = _tmp5_;
-#line 284 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = parent;
-#line 284 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp6_ != NULL, "parent != null");
-#line 286 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = entry;
-#line 286 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp7_);
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- while (TRUE) {
-#line 2549 "EventsBranch.c"
- gboolean _tmp8_ = FALSE;
- SidebarEntry* _tmp9_;
- SidebarEntry* grandparent = NULL;
- SidebarEntry* _tmp13_;
- SidebarEntry* _tmp14_;
- SidebarEntry* _tmp15_;
- SidebarEntry* _tmp16_;
- SidebarEntry* _tmp17_;
- SidebarEntry* _tmp18_;
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = parent;
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (sidebar_branch_get_child_count (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp9_) == 0) {
-#line 2563 "EventsBranch.c"
- SidebarEntry* _tmp10_;
- SidebarEntry* _tmp11_;
- SidebarEntry* _tmp12_;
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = parent;
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp11_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = _tmp11_;
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = _tmp10_ != _tmp12_;
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp12_);
-#line 2577 "EventsBranch.c"
- } else {
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = FALSE;
-#line 2581 "EventsBranch.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!_tmp8_) {
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- break;
-#line 2587 "EventsBranch.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = parent;
-#line 290 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp13_);
-#line 290 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- grandparent = _tmp14_;
-#line 291 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp15_ = grandparent;
-#line 291 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp15_ != NULL, "grandparent != null");
-#line 293 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = parent;
-#line 293 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp16_);
-#line 295 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp17_ = grandparent;
-#line 295 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 295 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (parent);
-#line 295 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- parent = _tmp18_;
-#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (grandparent);
-#line 2613 "EventsBranch.c"
- }
-#line 276 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (parent);
-#line 276 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (entry);
-#line 2619 "EventsBranch.c"
-}
-
-
-static Block8Data*
-block8_data_ref (Block8Data* _data8_)
-{
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_atomic_int_inc (&_data8_->_ref_count_);
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return _data8_;
-#line 2630 "EventsBranch.c"
-}
-
-
-static void
-block8_data_unref (void * _userdata_)
-{
- Block8Data* _data8_;
- _data8_ = (Block8Data*) _userdata_;
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
-#line 2641 "EventsBranch.c"
- EventsBranch* self;
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = _data8_->self;
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (self);
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_slice_free (Block8Data, _data8_);
-#line 2649 "EventsBranch.c"
- }
-}
-
-
-static gboolean
-__lambda21_ (Block8Data* _data8_,
- SidebarEntry* entry)
-{
- EventsBranch* self;
- gboolean result = FALSE;
- gint _tmp0_;
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = _data8_->self;
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 309 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = _data8_->event_month;
-#line 309 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = events_month_directory_entry_get_month (G_TYPE_CHECK_INSTANCE_CAST (entry, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry)) == _tmp0_;
-#line 309 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2671 "EventsBranch.c"
-}
-
-
-static gboolean
-___lambda21__locator (gconstpointer item,
- gpointer self)
-{
- gboolean result;
- result = __lambda21_ (self, (SidebarEntry*) item);
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2683 "EventsBranch.c"
-}
-
-
-static SidebarEntry*
-events_branch_find_event_month (EventsBranch* self,
- Event* event,
- struct tm* event_tm,
- SidebarEntry* * found_year)
-{
- SidebarEntry* _vala_found_year = NULL;
- SidebarEntry* result = NULL;
- Block8Data* _data8_;
- struct tm _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
- struct tm _tmp3_;
- gint _tmp4_;
- SidebarEntry* _tmp5_;
- SidebarEntry* _tmp6_;
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_BRANCH (self), NULL);
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (event_tm != NULL, NULL);
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data8_ = g_slice_new0 (Block8Data);
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data8_->_ref_count_ = 1;
-#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data8_->self = g_object_ref (self);
-#line 301 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = *event_tm;
-#line 301 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = events_branch_find_event_year (self, event, &_tmp0_);
-#line 301 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_vala_found_year);
-#line 301 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_found_year = _tmp1_;
-#line 302 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = _vala_found_year;
-#line 302 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp2_ == NULL) {
-#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = NULL;
-#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- block8_data_unref (_data8_);
-#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data8_ = NULL;
-#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (found_year) {
-#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- *found_year = _vala_found_year;
-#line 2737 "EventsBranch.c"
- } else {
-#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_vala_found_year);
-#line 2741 "EventsBranch.c"
- }
-#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2745 "EventsBranch.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = *event_tm;
-#line 305 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = _tmp3_.tm_mon;
-#line 305 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data8_->event_month = _tmp4_ + 1;
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = _vala_found_year;
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = sidebar_branch_find_first_child (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp5_, ___lambda21__locator, _data8_);
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp6_;
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- block8_data_unref (_data8_);
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data8_ = NULL;
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (found_year) {
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- *found_year = _vala_found_year;
-#line 2767 "EventsBranch.c"
- } else {
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_vala_found_year);
-#line 2771 "EventsBranch.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2775 "EventsBranch.c"
-}
-
-
-static Block9Data*
-block9_data_ref (Block9Data* _data9_)
-{
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_atomic_int_inc (&_data9_->_ref_count_);
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return _data9_;
-#line 2786 "EventsBranch.c"
-}
-
-
-static void
-block9_data_unref (void * _userdata_)
-{
- Block9Data* _data9_;
- _data9_ = (Block9Data*) _userdata_;
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
-#line 2797 "EventsBranch.c"
- EventsBranch* self;
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = _data9_->self;
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (self);
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_slice_free (Block9Data, _data9_);
-#line 2805 "EventsBranch.c"
- }
-}
-
-
-static gboolean
-__lambda20_ (Block9Data* _data9_,
- SidebarEntry* entry)
-{
- EventsBranch* self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = _data9_->self;
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (entry, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY)) {
-#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = TRUE;
-#line 2826 "EventsBranch.c"
- } else {
-#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (entry, EVENTS_TYPE_NO_EVENT_ENTRY);
-#line 2830 "EventsBranch.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp1_) {
-#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = TRUE;
-#line 2836 "EventsBranch.c"
- } else {
-#line 318 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (entry, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY);
-#line 2840 "EventsBranch.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp0_) {
-#line 319 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = FALSE;
-#line 319 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2848 "EventsBranch.c"
- } else {
-#line 321 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = events_year_directory_entry_get_year (G_TYPE_CHECK_INSTANCE_CAST (entry, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry)) == _data9_->event_year;
-#line 321 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2854 "EventsBranch.c"
- }
-}
-
-
-static gboolean
-___lambda20__locator (gconstpointer item,
- gpointer self)
-{
- gboolean result;
- result = __lambda20_ (self, (SidebarEntry*) item);
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2867 "EventsBranch.c"
-}
-
-
-static SidebarEntry*
-events_branch_find_event_year (EventsBranch* self,
- Event* event,
- struct tm* event_tm)
-{
- SidebarEntry* result = NULL;
- Block9Data* _data9_;
- struct tm _tmp0_;
- gint _tmp1_;
- SidebarEntry* _tmp2_;
- SidebarEntry* _tmp3_;
- SidebarEntry* _tmp4_;
- SidebarEntry* _tmp5_;
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_BRANCH (self), NULL);
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (event_tm != NULL, NULL);
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data9_ = g_slice_new0 (Block9Data);
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data9_->_ref_count_ = 1;
-#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data9_->self = g_object_ref (self);
-#line 314 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = *event_tm;
-#line 314 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _tmp0_.tm_year;
-#line 314 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data9_->event_year = _tmp1_ + 1900;
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = _tmp2_;
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = sidebar_branch_find_first_child (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, ___lambda20__locator, _data9_);
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = _tmp4_;
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp5_;
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- block9_data_unref (_data9_);
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _data9_ = NULL;
-#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2920 "EventsBranch.c"
-}
-
-
-static gint
-_events_branch_undated_event_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = events_branch_undated_event_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 2932 "EventsBranch.c"
-}
-
-
-static void
-events_branch_add_undated_event (EventsBranch* self,
- Event* event)
-{
- EventsUndatedDirectoryEntry* _tmp0_;
- EventsUndatedDirectoryEntry* _tmp4_;
-#line 325 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 325 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (IS_EVENT (event));
-#line 326 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->undated_entry;
-#line 326 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SIDEBAR_TYPE_ENTRY, SidebarEntry))) {
-#line 2950 "EventsBranch.c"
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
- EventsUndatedDirectoryEntry* _tmp3_;
-#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = _tmp1_;
-#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = self->priv->undated_entry;
-#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_ENTRY, SidebarEntry), _events_branch_undated_event_comparator_gcompare_func);
-#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp2_);
-#line 2964 "EventsBranch.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = self->priv->undated_entry;
-#line 329 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_graft_event (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry), event, NULL);
-#line 2970 "EventsBranch.c"
-}
-
-
-static void
-events_branch_move_to_undated_event (EventsBranch* self,
- Event* event)
-{
- EventsUndatedDirectoryEntry* _tmp0_;
- EventsUndatedDirectoryEntry* _tmp4_;
-#line 332 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 332 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (IS_EVENT (event));
-#line 333 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->undated_entry;
-#line 333 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SIDEBAR_TYPE_ENTRY, SidebarEntry))) {
-#line 2988 "EventsBranch.c"
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
- EventsUndatedDirectoryEntry* _tmp3_;
-#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = _tmp1_;
-#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = self->priv->undated_entry;
-#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
-#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp2_);
-#line 3002 "EventsBranch.c"
- }
-#line 336 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = self->priv->undated_entry;
-#line 336 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_reparent_event (self, event, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 3008 "EventsBranch.c"
-}
-
-
-static void
-events_branch_graft_event (EventsBranch* self,
- SidebarEntry* parent,
- Event* event,
- GCompareFunc comparator)
-{
- EventsEventEntry* entry = NULL;
- EventsEventEntry* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 339 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 339 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (parent));
-#line 339 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (IS_EVENT (event));
-#line 341 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_event_entry_new (event);
-#line 341 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- entry = _tmp0_;
-#line 342 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = self->priv->entry_map;
-#line 342 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), event, entry);
-#line 344 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), parent, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), comparator);
-#line 339 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (entry);
-#line 3039 "EventsBranch.c"
-}
-
-
-static void
-events_branch_reparent_event (EventsBranch* self,
- Event* event,
- SidebarEntry* new_parent)
-{
- EventsEventEntry* entry = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- EventsEventEntry* _tmp2_;
- SidebarEntry* old_parent = NULL;
- EventsEventEntry* _tmp3_;
- SidebarEntry* _tmp4_;
- SidebarEntry* _tmp5_;
- EventsEventEntry* _tmp6_;
-#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (IS_EVENT (event));
-#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (new_parent));
-#line 348 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->entry_map;
-#line 348 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), event);
-#line 348 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- entry = (EventsEventEntry*) _tmp1_;
-#line 349 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = entry;
-#line 349 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp2_ != NULL, "entry != null");
-#line 351 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = entry;
-#line 351 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 351 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- old_parent = _tmp4_;
-#line 352 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = old_parent;
-#line 352 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp5_ != NULL, "old_parent != null");
-#line 354 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = entry;
-#line 354 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_reparent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), new_parent, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- while (TRUE) {
-#line 3089 "EventsBranch.c"
- gboolean _tmp7_ = FALSE;
- SidebarEntry* _tmp8_;
- SidebarEntry* grandparent = NULL;
- SidebarEntry* _tmp12_;
- SidebarEntry* _tmp13_;
- SidebarEntry* _tmp14_;
- SidebarEntry* _tmp15_;
- SidebarEntry* _tmp16_;
- SidebarEntry* _tmp17_;
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = old_parent;
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (sidebar_branch_get_child_count (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp8_) == 0) {
-#line 3103 "EventsBranch.c"
- SidebarEntry* _tmp9_;
- SidebarEntry* _tmp10_;
- SidebarEntry* _tmp11_;
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = old_parent;
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp11_ = _tmp10_;
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = _tmp9_ != _tmp11_;
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp11_);
-#line 3117 "EventsBranch.c"
- } else {
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = FALSE;
-#line 3121 "EventsBranch.c"
- }
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!_tmp7_) {
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- break;
-#line 3127 "EventsBranch.c"
- }
-#line 357 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = old_parent;
-#line 357 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp12_);
-#line 357 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- grandparent = _tmp13_;
-#line 358 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = grandparent;
-#line 358 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _vala_assert (_tmp14_ != NULL, "grandparent != null");
-#line 360 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp15_ = old_parent;
-#line 360 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp15_);
-#line 362 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = grandparent;
-#line 362 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp17_ = _g_object_ref0 (_tmp16_);
-#line 362 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (old_parent);
-#line 362 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- old_parent = _tmp17_;
-#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (grandparent);
-#line 3153 "EventsBranch.c"
- }
-#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (old_parent);
-#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (entry);
-#line 3159 "EventsBranch.c"
-}
-
-
-static void
-events_branch_show_no_events (EventsBranch* self,
- gboolean show)
-{
- gboolean _tmp0_ = FALSE;
-#line 366 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (EVENTS_IS_BRANCH (self));
-#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (show) {
-#line 3172 "EventsBranch.c"
- EventsNoEventEntry* _tmp1_;
-#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = self->priv->no_event_entry;
-#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = !sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 3178 "EventsBranch.c"
- } else {
-#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = FALSE;
-#line 3182 "EventsBranch.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp0_) {
-#line 3186 "EventsBranch.c"
- SidebarEntry* _tmp2_;
- SidebarEntry* _tmp3_;
- EventsNoEventEntry* _tmp4_;
-#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = _tmp2_;
-#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = self->priv->no_event_entry;
-#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
-#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 3200 "EventsBranch.c"
- } else {
- gboolean _tmp5_ = FALSE;
-#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!show) {
-#line 3205 "EventsBranch.c"
- EventsNoEventEntry* _tmp6_;
-#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = self->priv->no_event_entry;
-#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 3211 "EventsBranch.c"
- } else {
-#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = FALSE;
-#line 3215 "EventsBranch.c"
- }
-#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp5_) {
-#line 3219 "EventsBranch.c"
- EventsNoEventEntry* _tmp7_;
-#line 370 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = self->priv->no_event_entry;
-#line 370 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 3225 "EventsBranch.c"
- }
- }
-}
-
-
-static void
-events_branch_class_init (EventsBranchClass * klass)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_type_class_add_private (klass, sizeof (EventsBranchPrivate));
-#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = events_branch_finalize;
-#line 8 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_FOLDER);
-#line 8 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_icon = _tmp0_;
-#line 9 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = g_strdup (RESOURCES_ICON_EVENTS);
-#line 9 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_events_icon = _tmp1_;
-#line 10 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = g_strdup (RESOURCES_ICON_ONE_EVENT);
-#line 10 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_single_event_icon = _tmp2_;
-#line 11 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = g_strdup (RESOURCES_ICON_NO_EVENT);
-#line 11 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_branch_no_event_icon = _tmp3_;
-#line 3260 "EventsBranch.c"
-}
-
-
-static void
-events_branch_instance_init (EventsBranch * self)
-{
- GeeHashMap* _tmp0_;
- EventsUndatedDirectoryEntry* _tmp1_;
- EventsNoEventEntry* _tmp2_;
- EventsMasterDirectoryEntry* _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv = EVENTS_BRANCH_GET_PRIVATE (self);
-#line 18 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = gee_hash_map_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, EVENTS_TYPE_EVENT_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 18 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->entry_map = _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = events_undated_directory_entry_new ();
-#line 20 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->undated_entry = _tmp1_;
-#line 21 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = events_no_event_entry_new ();
-#line 21 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->no_event_entry = _tmp2_;
-#line 22 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = events_master_directory_entry_new ();
-#line 22 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->all_events_entry = _tmp3_;
-#line 3289 "EventsBranch.c"
-}
-
-
-static void
-events_branch_finalize (GObject * obj)
-{
- EventsBranch * self;
- EventSourceCollection* _tmp0_;
- guint _tmp1_;
- EventSourceCollection* _tmp2_;
- guint _tmp3_;
- EventSourceCollection* _tmp4_;
- guint _tmp5_;
- ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
- guint _tmp8_;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENTS_TYPE_BRANCH, EventsBranch);
-#line 47 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = event_global;
-#line 47 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 47 "/home/jens/Source/shotwell/src/events/EventsBranch.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) _events_branch_on_events_added_removed_data_collection_contents_altered, self);
-#line 48 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = event_global;
-#line 48 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 48 "/home/jens/Source/shotwell/src/events/EventsBranch.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) _events_branch_on_events_altered_data_collection_items_altered, self);
-#line 49 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = event_global;
-#line 49 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_parse_name ("no-event-collection-altered", TYPE_EVENT_SOURCE_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 49 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _events_branch_on_no_event_collection_altered_event_source_collection_no_event_collection_altered, self);
-#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = config_facade_get_instance ();
-#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = _tmp6_;
-#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_parse_name ("events-sort-ascending-changed", TYPE_CONFIGURATION_FACADE, &_tmp8_, NULL, FALSE);
-#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _events_branch_on_config_changed_configuration_facade_events_sort_ascending_changed, self);
-#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp7_);
-#line 18 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (self->priv->entry_map);
-#line 20 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (self->priv->undated_entry);
-#line 21 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (self->priv->no_event_entry);
-#line 22 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (self->priv->all_events_entry);
-#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- G_OBJECT_CLASS (events_branch_parent_class)->finalize (obj);
-#line 3346 "EventsBranch.c"
-}
-
-
-GType
-events_branch_get_type (void)
-{
- static volatile gsize events_branch_type_id__volatile = 0;
- if (g_once_init_enter (&events_branch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsBranch), 0, (GInstanceInitFunc) events_branch_instance_init, NULL };
- GType events_branch_type_id;
- events_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "EventsBranch", &g_define_type_info, 0);
- g_once_init_leave (&events_branch_type_id__volatile, events_branch_type_id);
- }
- return events_branch_type_id__volatile;
-}
-
-
-EventsDirectoryEntry*
-events_directory_entry_construct (GType object_type)
-{
- EventsDirectoryEntry * self = NULL;
-#line 375 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = (EventsDirectoryEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 375 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self;
-#line 3372 "EventsBranch.c"
-}
-
-
-static gchar*
-events_directory_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- EventsDirectoryEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 378 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntry);
-#line 379 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_branch_icon;
-#line 379 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 379 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 379 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3393 "EventsBranch.c"
-}
-
-
-static gboolean
-events_directory_entry_real_expand_on_select (SidebarExpandableEntry* base)
-{
- EventsDirectoryEntry * self;
- gboolean result = FALSE;
-#line 382 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntry);
-#line 383 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = TRUE;
-#line 383 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3408 "EventsBranch.c"
-}
-
-
-static void
-events_directory_entry_class_init (EventsDirectoryEntryClass * klass)
-{
-#line 374 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_directory_entry_parent_class = g_type_class_peek_parent (klass);
-#line 374 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) events_directory_entry_real_get_sidebar_icon;
-#line 3419 "EventsBranch.c"
-}
-
-
-static void
-events_directory_entry_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface)
-{
-#line 374 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_directory_entry_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 374 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- iface->expand_on_select = (gboolean (*) (SidebarExpandableEntry *)) events_directory_entry_real_expand_on_select;
-#line 3430 "EventsBranch.c"
-}
-
-
-static void
-events_directory_entry_instance_init (EventsDirectoryEntry * self)
-{
-}
-
-
-GType
-events_directory_entry_get_type (void)
-{
- static volatile gsize events_directory_entry_type_id__volatile = 0;
- if (g_once_init_enter (&events_directory_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsDirectoryEntry), 0, (GInstanceInitFunc) events_directory_entry_instance_init, NULL };
- static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) events_directory_entry_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType events_directory_entry_type_id;
- events_directory_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "EventsDirectoryEntry", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_type_add_interface_static (events_directory_entry_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info);
- g_once_init_leave (&events_directory_entry_type_id__volatile, events_directory_entry_type_id);
- }
- return events_directory_entry_type_id__volatile;
-}
-
-
-EventsMasterDirectoryEntry*
-events_master_directory_entry_construct (GType object_type)
-{
- EventsMasterDirectoryEntry * self = NULL;
-#line 388 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = (EventsMasterDirectoryEntry*) events_directory_entry_construct (object_type);
-#line 388 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self;
-#line 3464 "EventsBranch.c"
-}
-
-
-EventsMasterDirectoryEntry*
-events_master_directory_entry_new (void)
-{
-#line 388 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return events_master_directory_entry_construct (EVENTS_TYPE_MASTER_DIRECTORY_ENTRY);
-#line 3473 "EventsBranch.c"
-}
-
-
-static gchar*
-events_master_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- EventsMasterDirectoryEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 391 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry);
-#line 392 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = g_strdup (MASTER_EVENTS_DIRECTORY_PAGE_NAME);
-#line 392 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp0_;
-#line 392 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3491 "EventsBranch.c"
-}
-
-
-static gchar*
-events_master_directory_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- EventsMasterDirectoryEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 395 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry);
-#line 396 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_branch_events_icon;
-#line 396 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 396 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 396 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3512 "EventsBranch.c"
-}
-
-
-static Page*
-events_master_directory_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- EventsMasterDirectoryEntry * self;
- Page* result = NULL;
- MasterEventsDirectoryPage* _tmp0_;
-#line 399 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry);
-#line 400 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = master_events_directory_page_new ();
-#line 400 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_object_ref_sink (_tmp0_);
-#line 400 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
-#line 400 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3532 "EventsBranch.c"
-}
-
-
-static void
-events_master_directory_entry_class_init (EventsMasterDirectoryEntryClass * klass)
-{
-#line 387 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_master_directory_entry_parent_class = g_type_class_peek_parent (klass);
-#line 387 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_master_directory_entry_real_get_sidebar_name;
-#line 387 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) events_master_directory_entry_real_get_sidebar_icon;
-#line 387 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_master_directory_entry_real_create_page;
-#line 3547 "EventsBranch.c"
-}
-
-
-static void
-events_master_directory_entry_instance_init (EventsMasterDirectoryEntry * self)
-{
-}
-
-
-GType
-events_master_directory_entry_get_type (void)
-{
- static volatile gsize events_master_directory_entry_type_id__volatile = 0;
- if (g_once_init_enter (&events_master_directory_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsMasterDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_master_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsMasterDirectoryEntry), 0, (GInstanceInitFunc) events_master_directory_entry_instance_init, NULL };
- GType events_master_directory_entry_type_id;
- events_master_directory_entry_type_id = g_type_register_static (EVENTS_TYPE_DIRECTORY_ENTRY, "EventsMasterDirectoryEntry", &g_define_type_info, 0);
- g_once_init_leave (&events_master_directory_entry_type_id__volatile, events_master_directory_entry_type_id);
- }
- return events_master_directory_entry_type_id__volatile;
-}
-
-
-EventsYearDirectoryEntry*
-events_year_directory_entry_construct (GType object_type,
- const gchar* name,
- struct tm* tm)
-{
- EventsYearDirectoryEntry * self = NULL;
- gchar* _tmp0_;
- struct tm _tmp1_;
-#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (tm != NULL, NULL);
-#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = (EventsYearDirectoryEntry*) events_directory_entry_construct (object_type);
-#line 409 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = g_strdup (name);
-#line 409 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (self->priv->name);
-#line 409 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->name = _tmp0_;
-#line 410 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = *tm;
-#line 410 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->tm = _tmp1_;
-#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self;
-#line 3597 "EventsBranch.c"
-}
-
-
-EventsYearDirectoryEntry*
-events_year_directory_entry_new (const gchar* name,
- struct tm* tm)
-{
-#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return events_year_directory_entry_construct (EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, name, tm);
-#line 3607 "EventsBranch.c"
-}
-
-
-static gchar*
-events_year_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- EventsYearDirectoryEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 413 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry);
-#line 414 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->name;
-#line 414 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 414 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 414 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3628 "EventsBranch.c"
-}
-
-
-gint
-events_year_directory_entry_get_year (EventsYearDirectoryEntry* self)
-{
- gint result = 0;
- struct tm _tmp0_;
- gint _tmp1_;
-#line 417 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_YEAR_DIRECTORY_ENTRY (self), 0);
-#line 418 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->tm;
-#line 418 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _tmp0_.tm_year;
-#line 418 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_ + 1900;
-#line 418 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3648 "EventsBranch.c"
-}
-
-
-static Page*
-events_year_directory_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- EventsYearDirectoryEntry * self;
- Page* result = NULL;
- struct tm _tmp0_;
- SubEventsDirectoryPage* _tmp1_;
-#line 421 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry);
-#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->tm;
-#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = sub_events_directory_page_new (SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR, &_tmp0_);
-#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_object_ref_sink (_tmp1_);
-#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3671 "EventsBranch.c"
-}
-
-
-static void
-events_year_directory_entry_class_init (EventsYearDirectoryEntryClass * klass)
-{
-#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_year_directory_entry_parent_class = g_type_class_peek_parent (klass);
-#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_type_class_add_private (klass, sizeof (EventsYearDirectoryEntryPrivate));
-#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_year_directory_entry_real_get_sidebar_name;
-#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_year_directory_entry_real_create_page;
-#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = events_year_directory_entry_finalize;
-#line 3688 "EventsBranch.c"
-}
-
-
-static void
-events_year_directory_entry_instance_init (EventsYearDirectoryEntry * self)
-{
-#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv = EVENTS_YEAR_DIRECTORY_ENTRY_GET_PRIVATE (self);
-#line 3697 "EventsBranch.c"
-}
-
-
-static void
-events_year_directory_entry_finalize (GObject * obj)
-{
- EventsYearDirectoryEntry * self;
-#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry);
-#line 405 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (self->priv->name);
-#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- G_OBJECT_CLASS (events_year_directory_entry_parent_class)->finalize (obj);
-#line 3711 "EventsBranch.c"
-}
-
-
-GType
-events_year_directory_entry_get_type (void)
-{
- static volatile gsize events_year_directory_entry_type_id__volatile = 0;
- if (g_once_init_enter (&events_year_directory_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsYearDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_year_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsYearDirectoryEntry), 0, (GInstanceInitFunc) events_year_directory_entry_instance_init, NULL };
- GType events_year_directory_entry_type_id;
- events_year_directory_entry_type_id = g_type_register_static (EVENTS_TYPE_DIRECTORY_ENTRY, "EventsYearDirectoryEntry", &g_define_type_info, 0);
- g_once_init_leave (&events_year_directory_entry_type_id__volatile, events_year_directory_entry_type_id);
- }
- return events_year_directory_entry_type_id__volatile;
-}
-
-
-EventsMonthDirectoryEntry*
-events_month_directory_entry_construct (GType object_type,
- const gchar* name,
- struct tm* tm)
-{
- EventsMonthDirectoryEntry * self = NULL;
- gchar* _tmp0_;
- struct tm _tmp1_;
-#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (tm != NULL, NULL);
-#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = (EventsMonthDirectoryEntry*) events_directory_entry_construct (object_type);
-#line 431 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = g_strdup (name);
-#line 431 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (self->priv->name);
-#line 431 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->name = _tmp0_;
-#line 432 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = *tm;
-#line 432 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->tm = _tmp1_;
-#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self;
-#line 3755 "EventsBranch.c"
-}
-
-
-EventsMonthDirectoryEntry*
-events_month_directory_entry_new (const gchar* name,
- struct tm* tm)
-{
-#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return events_month_directory_entry_construct (EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, name, tm);
-#line 3765 "EventsBranch.c"
-}
-
-
-static gchar*
-events_month_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- EventsMonthDirectoryEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 435 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry);
-#line 436 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->name;
-#line 436 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 436 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 436 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3786 "EventsBranch.c"
-}
-
-
-gint
-events_month_directory_entry_get_year (EventsMonthDirectoryEntry* self)
-{
- gint result = 0;
- struct tm _tmp0_;
- gint _tmp1_;
-#line 439 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_MONTH_DIRECTORY_ENTRY (self), 0);
-#line 440 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->tm;
-#line 440 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _tmp0_.tm_year;
-#line 440 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_ + 1900;
-#line 440 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3806 "EventsBranch.c"
-}
-
-
-gint
-events_month_directory_entry_get_month (EventsMonthDirectoryEntry* self)
-{
- gint result = 0;
- struct tm _tmp0_;
- gint _tmp1_;
-#line 443 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_MONTH_DIRECTORY_ENTRY (self), 0);
-#line 444 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->tm;
-#line 444 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _tmp0_.tm_mon;
-#line 444 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_ + 1;
-#line 444 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3826 "EventsBranch.c"
-}
-
-
-static Page*
-events_month_directory_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- EventsMonthDirectoryEntry * self;
- Page* result = NULL;
- struct tm _tmp0_;
- SubEventsDirectoryPage* _tmp1_;
-#line 447 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry);
-#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->tm;
-#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = sub_events_directory_page_new (SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH, &_tmp0_);
-#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_object_ref_sink (_tmp1_);
-#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3849 "EventsBranch.c"
-}
-
-
-static void
-events_month_directory_entry_class_init (EventsMonthDirectoryEntryClass * klass)
-{
-#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_month_directory_entry_parent_class = g_type_class_peek_parent (klass);
-#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_type_class_add_private (klass, sizeof (EventsMonthDirectoryEntryPrivate));
-#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_month_directory_entry_real_get_sidebar_name;
-#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_month_directory_entry_real_create_page;
-#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = events_month_directory_entry_finalize;
-#line 3866 "EventsBranch.c"
-}
-
-
-static void
-events_month_directory_entry_instance_init (EventsMonthDirectoryEntry * self)
-{
-#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv = EVENTS_MONTH_DIRECTORY_ENTRY_GET_PRIVATE (self);
-#line 3875 "EventsBranch.c"
-}
-
-
-static void
-events_month_directory_entry_finalize (GObject * obj)
-{
- EventsMonthDirectoryEntry * self;
-#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry);
-#line 427 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (self->priv->name);
-#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- G_OBJECT_CLASS (events_month_directory_entry_parent_class)->finalize (obj);
-#line 3889 "EventsBranch.c"
-}
-
-
-GType
-events_month_directory_entry_get_type (void)
-{
- static volatile gsize events_month_directory_entry_type_id__volatile = 0;
- if (g_once_init_enter (&events_month_directory_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsMonthDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_month_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsMonthDirectoryEntry), 0, (GInstanceInitFunc) events_month_directory_entry_instance_init, NULL };
- GType events_month_directory_entry_type_id;
- events_month_directory_entry_type_id = g_type_register_static (EVENTS_TYPE_DIRECTORY_ENTRY, "EventsMonthDirectoryEntry", &g_define_type_info, 0);
- g_once_init_leave (&events_month_directory_entry_type_id__volatile, events_month_directory_entry_type_id);
- }
- return events_month_directory_entry_type_id__volatile;
-}
-
-
-EventsUndatedDirectoryEntry*
-events_undated_directory_entry_construct (GType object_type)
-{
- EventsUndatedDirectoryEntry * self = NULL;
-#line 453 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = (EventsUndatedDirectoryEntry*) events_directory_entry_construct (object_type);
-#line 453 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self;
-#line 3915 "EventsBranch.c"
-}
-
-
-EventsUndatedDirectoryEntry*
-events_undated_directory_entry_new (void)
-{
-#line 453 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return events_undated_directory_entry_construct (EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY);
-#line 3924 "EventsBranch.c"
-}
-
-
-static gchar*
-events_undated_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- EventsUndatedDirectoryEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 456 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntry);
-#line 457 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = g_strdup (SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME);
-#line 457 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp0_;
-#line 457 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3942 "EventsBranch.c"
-}
-
-
-static Page*
-events_undated_directory_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- EventsUndatedDirectoryEntry * self;
- Page* result = NULL;
- struct tm _tmp0_ = {0};
- SubEventsDirectoryPage* _tmp1_;
-#line 460 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntry);
-#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_time_local ((time_t) 0, &_tmp0_);
-#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = sub_events_directory_page_new (SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED, &_tmp0_);
-#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_object_ref_sink (_tmp1_);
-#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 3965 "EventsBranch.c"
-}
-
-
-static void
-events_undated_directory_entry_class_init (EventsUndatedDirectoryEntryClass * klass)
-{
-#line 452 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_undated_directory_entry_parent_class = g_type_class_peek_parent (klass);
-#line 452 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_undated_directory_entry_real_get_sidebar_name;
-#line 452 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_undated_directory_entry_real_create_page;
-#line 3978 "EventsBranch.c"
-}
-
-
-static void
-events_undated_directory_entry_instance_init (EventsUndatedDirectoryEntry * self)
-{
-}
-
-
-GType
-events_undated_directory_entry_get_type (void)
-{
- static volatile gsize events_undated_directory_entry_type_id__volatile = 0;
- if (g_once_init_enter (&events_undated_directory_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsUndatedDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_undated_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsUndatedDirectoryEntry), 0, (GInstanceInitFunc) events_undated_directory_entry_instance_init, NULL };
- GType events_undated_directory_entry_type_id;
- events_undated_directory_entry_type_id = g_type_register_static (EVENTS_TYPE_DIRECTORY_ENTRY, "EventsUndatedDirectoryEntry", &g_define_type_info, 0);
- g_once_init_leave (&events_undated_directory_entry_type_id__volatile, events_undated_directory_entry_type_id);
- }
- return events_undated_directory_entry_type_id__volatile;
-}
-
-
-EventsEventEntry*
-events_event_entry_construct (GType object_type,
- Event* event)
-{
- EventsEventEntry * self = NULL;
- Event* _tmp0_;
-#line 470 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (IS_EVENT (event), NULL);
-#line 470 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = (EventsEventEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 471 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = _g_object_ref0 (event);
-#line 471 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (self->priv->event);
-#line 471 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv->event = _tmp0_;
-#line 470 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self;
-#line 4020 "EventsBranch.c"
-}
-
-
-EventsEventEntry*
-events_event_entry_new (Event* event)
-{
-#line 470 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return events_event_entry_construct (EVENTS_TYPE_EVENT_ENTRY, event);
-#line 4029 "EventsBranch.c"
-}
-
-
-Event*
-events_event_entry_get_event (EventsEventEntry* self)
-{
- Event* result = NULL;
- Event* _tmp0_;
- Event* _tmp1_;
-#line 474 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (EVENTS_IS_EVENT_ENTRY (self), NULL);
-#line 475 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->event;
-#line 475 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 475 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 475 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4049 "EventsBranch.c"
-}
-
-
-static gchar*
-events_event_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- EventsEventEntry * self;
- gchar* result = NULL;
- Event* _tmp0_;
- gchar* _tmp1_;
-#line 478 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry);
-#line 479 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->event;
-#line 479 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject));
-#line 479 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 479 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4070 "EventsBranch.c"
-}
-
-
-static gchar*
-events_event_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- EventsEventEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 482 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry);
-#line 483 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_branch_single_event_icon;
-#line 483 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 483 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 483 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4091 "EventsBranch.c"
-}
-
-
-static Page*
-events_event_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- EventsEventEntry * self;
- Page* result = NULL;
- Event* _tmp0_;
- EventPage* _tmp1_;
-#line 486 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry);
-#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = self->priv->event;
-#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = event_page_new (_tmp0_);
-#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_object_ref_sink (_tmp1_);
-#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4114 "EventsBranch.c"
-}
-
-
-static gboolean
-events_event_entry_real_is_user_renameable (SidebarRenameableEntry* base)
-{
- EventsEventEntry * self;
- gboolean result = FALSE;
-#line 490 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry);
-#line 491 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = TRUE;
-#line 491 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4129 "EventsBranch.c"
-}
-
-
-static void
-events_event_entry_real_rename (SidebarRenameableEntry* base,
- const gchar* new_name)
-{
- EventsEventEntry * self;
- gchar* prepped = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 494 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry);
-#line 494 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_if_fail (new_name != NULL);
-#line 495 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = event_prep_event_name (new_name);
-#line 495 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- prepped = _tmp0_;
-#line 496 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = prepped;
-#line 496 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (_tmp1_ != NULL) {
-#line 4153 "EventsBranch.c"
- CommandManager* _tmp2_;
- CommandManager* _tmp3_;
- Event* _tmp4_;
- const gchar* _tmp5_;
- RenameEventCommand* _tmp6_;
- RenameEventCommand* _tmp7_;
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = app_window_get_command_manager ();
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = _tmp2_;
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = self->priv->event;
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = prepped;
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = rename_event_command_new (_tmp4_, _tmp5_);
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = _tmp6_;
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command));
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp7_);
-#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _command_manager_unref0 (_tmp3_);
-#line 4178 "EventsBranch.c"
- }
-#line 494 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_free0 (prepped);
-#line 4182 "EventsBranch.c"
-}
-
-
-static gboolean
-events_event_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media)
-{
- EventsEventEntry * self;
- gboolean result = FALSE;
- GeeArrayList* views = NULL;
- GeeArrayList* _tmp0_;
- CommandManager* _tmp15_;
- CommandManager* _tmp16_;
- GeeArrayList* _tmp17_;
- Event* _tmp18_;
- SetEventCommand* _tmp19_;
- SetEventCommand* _tmp20_;
-#line 500 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry);
-#line 500 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (GEE_IS_LIST (media), FALSE);
-#line 503 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 503 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- views = _tmp0_;
-#line 4208 "EventsBranch.c"
- {
- GeeList* _media_source_list = NULL;
- GeeList* _tmp1_;
- gint _media_source_size = 0;
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _media_source_index = 0;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = _g_object_ref0 (media);
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _media_source_list = _tmp1_;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp2_ = _media_source_list;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _media_source_size = _tmp4_;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _media_source_index = -1;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- while (TRUE) {
-#line 4233 "EventsBranch.c"
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- MediaSource* media_source = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
- GeeArrayList* _tmp11_;
- MediaSource* _tmp12_;
- DataView* _tmp13_;
- DataView* _tmp14_;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp5_ = _media_source_index;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _media_source_index = _tmp5_ + 1;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp6_ = _media_source_index;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp7_ = _media_source_size;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- if (!(_tmp6_ < _tmp7_)) {
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- break;
-#line 4257 "EventsBranch.c"
- }
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp8_ = _media_source_list;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp9_ = _media_source_index;
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- media_source = (MediaSource*) _tmp10_;
-#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp11_ = views;
-#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp12_ = media_source;
-#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp13_ = data_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_SOURCE, DataSource));
-#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp14_ = _tmp13_;
-#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
-#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp14_);
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (media_source);
-#line 4281 "EventsBranch.c"
- }
-#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_media_source_list);
-#line 4285 "EventsBranch.c"
- }
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp15_ = app_window_get_command_manager ();
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp16_ = _tmp15_;
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp17_ = views;
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp18_ = self->priv->event;
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp19_ = set_event_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable), _tmp18_);
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp20_ = _tmp19_;
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- command_manager_execute (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_COMMAND, Command));
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (_tmp20_);
-#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _command_manager_unref0 (_tmp16_);
-#line 509 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = TRUE;
-#line 509 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (views);
-#line 509 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4311 "EventsBranch.c"
-}
-
-
-static gboolean
-events_event_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data)
-{
- EventsEventEntry * self;
- gboolean result = FALSE;
-#line 512 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry);
-#line 512 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_return_val_if_fail (data != NULL, FALSE);
-#line 513 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = FALSE;
-#line 513 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4329 "EventsBranch.c"
-}
-
-
-static void
-events_event_entry_class_init (EventsEventEntryClass * klass)
-{
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_event_entry_parent_class = g_type_class_peek_parent (klass);
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_type_class_add_private (klass, sizeof (EventsEventEntryPrivate));
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_event_entry_real_get_sidebar_name;
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) events_event_entry_real_get_sidebar_icon;
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_event_entry_real_create_page;
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = events_event_entry_finalize;
-#line 4348 "EventsBranch.c"
-}
-
-
-static void
-events_event_entry_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface)
-{
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_event_entry_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- iface->is_user_renameable = (gboolean (*) (SidebarRenameableEntry *)) events_event_entry_real_is_user_renameable;
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- iface->rename = (void (*) (SidebarRenameableEntry *, const gchar*)) events_event_entry_real_rename;
-#line 4361 "EventsBranch.c"
-}
-
-
-static void
-events_event_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface)
-{
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_event_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) events_event_entry_real_internal_drop_received;
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) events_event_entry_real_internal_drop_received_arbitrary;
-#line 4374 "EventsBranch.c"
-}
-
-
-static void
-events_event_entry_instance_init (EventsEventEntry * self)
-{
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self->priv = EVENTS_EVENT_ENTRY_GET_PRIVATE (self);
-#line 4383 "EventsBranch.c"
-}
-
-
-static void
-events_event_entry_finalize (GObject * obj)
-{
- EventsEventEntry * self;
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry);
-#line 468 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _g_object_unref0 (self->priv->event);
-#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- G_OBJECT_CLASS (events_event_entry_parent_class)->finalize (obj);
-#line 4397 "EventsBranch.c"
-}
-
-
-GType
-events_event_entry_get_type (void)
-{
- static volatile gsize events_event_entry_type_id__volatile = 0;
- if (g_once_init_enter (&events_event_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsEventEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_event_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsEventEntry), 0, (GInstanceInitFunc) events_event_entry_instance_init, NULL };
- static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) events_event_entry_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) events_event_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType events_event_entry_type_id;
- events_event_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "EventsEventEntry", &g_define_type_info, 0);
- g_type_add_interface_static (events_event_entry_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info);
- g_type_add_interface_static (events_event_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info);
- g_once_init_leave (&events_event_entry_type_id__volatile, events_event_entry_type_id);
- }
- return events_event_entry_type_id__volatile;
-}
-
-
-EventsNoEventEntry*
-events_no_event_entry_construct (GType object_type)
-{
- EventsNoEventEntry * self = NULL;
-#line 519 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = (EventsNoEventEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 519 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return self;
-#line 4427 "EventsBranch.c"
-}
-
-
-EventsNoEventEntry*
-events_no_event_entry_new (void)
-{
-#line 519 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return events_no_event_entry_construct (EVENTS_TYPE_NO_EVENT_ENTRY);
-#line 4436 "EventsBranch.c"
-}
-
-
-static gchar*
-events_no_event_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- EventsNoEventEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 522 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntry);
-#line 523 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = g_strdup (NO_EVENT_PAGE_NAME);
-#line 523 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp0_;
-#line 523 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4454 "EventsBranch.c"
-}
-
-
-static gchar*
-events_no_event_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- EventsNoEventEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 526 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntry);
-#line 527 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = events_branch_no_event_icon;
-#line 527 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 527 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = _tmp1_;
-#line 527 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4475 "EventsBranch.c"
-}
-
-
-static Page*
-events_no_event_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- EventsNoEventEntry * self;
- Page* result = NULL;
- NoEventPage* _tmp0_;
-#line 530 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntry);
-#line 531 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- _tmp0_ = no_event_page_new ();
-#line 531 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- g_object_ref_sink (_tmp0_);
-#line 531 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
-#line 531 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- return result;
-#line 4495 "EventsBranch.c"
-}
-
-
-static void
-events_no_event_entry_class_init (EventsNoEventEntryClass * klass)
-{
-#line 518 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- events_no_event_entry_parent_class = g_type_class_peek_parent (klass);
-#line 518 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_no_event_entry_real_get_sidebar_name;
-#line 518 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) events_no_event_entry_real_get_sidebar_icon;
-#line 518 "/home/jens/Source/shotwell/src/events/EventsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_no_event_entry_real_create_page;
-#line 4510 "EventsBranch.c"
-}
-
-
-static void
-events_no_event_entry_instance_init (EventsNoEventEntry * self)
-{
-}
-
-
-GType
-events_no_event_entry_get_type (void)
-{
- static volatile gsize events_no_event_entry_type_id__volatile = 0;
- if (g_once_init_enter (&events_no_event_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsNoEventEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_no_event_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsNoEventEntry), 0, (GInstanceInitFunc) events_no_event_entry_instance_init, NULL };
- GType events_no_event_entry_type_id;
- events_no_event_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "EventsNoEventEntry", &g_define_type_info, 0);
- g_once_init_leave (&events_no_event_entry_type_id__volatile, events_no_event_entry_type_id);
- }
- return events_no_event_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/events/EventsDirectoryPage.c b/src/events/EventsDirectoryPage.c
deleted file mode 100644
index 0eb6a88..0000000
--- a/src/events/EventsDirectoryPage.c
+++ /dev/null
@@ -1,3249 +0,0 @@
-/* EventsDirectoryPage.c generated by valac 0.40.4, the Vala compiler
- * generated from EventsDirectoryPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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 <time.h>
-#include <cairo.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_EVENTS_DIRECTORY_PAGE (events_directory_page_get_type ())
-#define EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage))
-#define EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass))
-#define IS_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENTS_DIRECTORY_PAGE))
-#define IS_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENTS_DIRECTORY_PAGE))
-#define EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass))
-
-typedef struct _EventsDirectoryPage EventsDirectoryPage;
-typedef struct _EventsDirectoryPageClass EventsDirectoryPageClass;
-typedef struct _EventsDirectoryPagePrivate EventsDirectoryPagePrivate;
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER (events_directory_page_events_directory_search_view_filter_get_type ())
-#define EVENTS_DIRECTORY_PAGE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilter))
-#define EVENTS_DIRECTORY_PAGE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilterClass))
-#define EVENTS_DIRECTORY_PAGE_IS_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER))
-#define EVENTS_DIRECTORY_PAGE_IS_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER))
-#define EVENTS_DIRECTORY_PAGE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilterClass))
-
-typedef struct _EventsDirectoryPageEventsDirectorySearchViewFilter EventsDirectoryPageEventsDirectorySearchViewFilter;
-typedef struct _EventsDirectoryPageEventsDirectorySearchViewFilterClass EventsDirectoryPageEventsDirectorySearchViewFilterClass;
-enum {
- EVENTS_DIRECTORY_PAGE_0_PROPERTY,
- EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* events_directory_page_properties[EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ())
-#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection))
-#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION))
-#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION))
-#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass))
-
-typedef struct _EventSourceCollection EventSourceCollection;
-typedef struct _EventSourceCollectionClass EventSourceCollectionClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-
-#define TYPE_EVENT_DIRECTORY_ITEM (event_directory_item_get_type ())
-#define EVENT_DIRECTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem))
-#define EVENT_DIRECTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemClass))
-#define IS_EVENT_DIRECTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_DIRECTORY_ITEM))
-#define IS_EVENT_DIRECTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_DIRECTORY_ITEM))
-#define EVENT_DIRECTORY_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemClass))
-
-typedef struct _EventDirectoryItem EventDirectoryItem;
-typedef struct _EventDirectoryItemClass EventDirectoryItemClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-typedef struct _DataViewPrivate DataViewPrivate;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-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))
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ())
-#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-
-typedef struct _TextEntryDialogMediator TextEntryDialogMediator;
-typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass;
-
-#define TYPE_EVENT_RENAME_DIALOG (event_rename_dialog_get_type ())
-#define EVENT_RENAME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_RENAME_DIALOG, EventRenameDialog))
-#define EVENT_RENAME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_RENAME_DIALOG, EventRenameDialogClass))
-#define IS_EVENT_RENAME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_RENAME_DIALOG))
-#define IS_EVENT_RENAME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_RENAME_DIALOG))
-#define EVENT_RENAME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_RENAME_DIALOG, EventRenameDialogClass))
-
-typedef struct _EventRenameDialog EventRenameDialog;
-typedef struct _EventRenameDialogClass EventRenameDialogClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL)))
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ())
-#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand))
-#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-
-typedef struct _SimpleProxyableCommand SimpleProxyableCommand;
-typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass;
-
-#define TYPE_RENAME_EVENT_COMMAND (rename_event_command_get_type ())
-#define RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommand))
-#define RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass))
-#define IS_RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_EVENT_COMMAND))
-#define IS_RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_EVENT_COMMAND))
-#define RENAME_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass))
-
-typedef struct _RenameEventCommand RenameEventCommand;
-typedef struct _RenameEventCommandClass RenameEventCommandClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ())
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass))
-
-typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator;
-typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass;
-
-#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ())
-#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog))
-#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG))
-#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG))
-#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass))
-
-typedef struct _EditCommentDialog EditCommentDialog;
-typedef struct _EditCommentDialogClass EditCommentDialogClass;
-#define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL)))
-
-#define TYPE_EDIT_EVENT_COMMENT_COMMAND (edit_event_comment_command_get_type ())
-#define EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand))
-#define EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass))
-#define IS_EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND))
-#define IS_EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND))
-#define EDIT_EVENT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass))
-
-typedef struct _EditEventCommentCommand EditEventCommentCommand;
-typedef struct _EditEventCommentCommandClass EditEventCommentCommandClass;
-
-#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ())
-#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand))
-#define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass))
-#define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND))
-#define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND))
-#define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass))
-
-typedef struct _MovePhotosCommand MovePhotosCommand;
-typedef struct _MovePhotosCommandClass MovePhotosCommandClass;
-
-#define TYPE_MERGE_EVENTS_COMMAND (merge_events_command_get_type ())
-#define MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommand))
-#define MERGE_EVENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommandClass))
-#define IS_MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MERGE_EVENTS_COMMAND))
-#define IS_MERGE_EVENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MERGE_EVENTS_COMMAND))
-#define MERGE_EVENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommandClass))
-
-typedef struct _MergeEventsCommand MergeEventsCommand;
-typedef struct _MergeEventsCommandClass MergeEventsCommandClass;
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-
-#define EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER (events_directory_page_event_directory_manager_get_type ())
-#define EVENTS_DIRECTORY_PAGE_EVENT_DIRECTORY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManager))
-#define EVENTS_DIRECTORY_PAGE_EVENT_DIRECTORY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManagerClass))
-#define EVENTS_DIRECTORY_PAGE_IS_EVENT_DIRECTORY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER))
-#define EVENTS_DIRECTORY_PAGE_IS_EVENT_DIRECTORY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER))
-#define EVENTS_DIRECTORY_PAGE_EVENT_DIRECTORY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManagerClass))
-
-typedef struct _EventsDirectoryPageEventDirectoryManager EventsDirectoryPageEventDirectoryManager;
-typedef struct _EventsDirectoryPageEventDirectoryManagerClass EventsDirectoryPageEventDirectoryManagerClass;
-typedef struct _EventsDirectoryPageEventDirectoryManagerPrivate EventsDirectoryPageEventDirectoryManagerPrivate;
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate;
-typedef struct _EventsDirectoryPageEventsDirectorySearchViewFilterPrivate EventsDirectoryPageEventsDirectorySearchViewFilterPrivate;
-
-#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ())
-
-#define TYPE_INDEXABLE (indexable_get_type ())
-#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
-#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
-#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
-
-typedef struct _Indexable Indexable;
-typedef struct _IndexableIface IndexableIface;
-
-#define TYPE_MASTER_EVENTS_DIRECTORY_PAGE (master_events_directory_page_get_type ())
-#define MASTER_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPage))
-#define MASTER_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPageClass))
-#define IS_MASTER_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE))
-#define IS_MASTER_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MASTER_EVENTS_DIRECTORY_PAGE))
-#define MASTER_EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPageClass))
-
-typedef struct _MasterEventsDirectoryPage MasterEventsDirectoryPage;
-typedef struct _MasterEventsDirectoryPageClass MasterEventsDirectoryPageClass;
-typedef struct _MasterEventsDirectoryPagePrivate MasterEventsDirectoryPagePrivate;
-enum {
- MASTER_EVENTS_DIRECTORY_PAGE_0_PROPERTY,
- MASTER_EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* master_events_directory_page_properties[MASTER_EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES];
-
-#define TYPE_SUB_EVENTS_DIRECTORY_PAGE (sub_events_directory_page_get_type ())
-#define SUB_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPage))
-#define SUB_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPageClass))
-#define IS_SUB_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE))
-#define IS_SUB_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SUB_EVENTS_DIRECTORY_PAGE))
-#define SUB_EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPageClass))
-
-typedef struct _SubEventsDirectoryPage SubEventsDirectoryPage;
-typedef struct _SubEventsDirectoryPageClass SubEventsDirectoryPageClass;
-typedef struct _SubEventsDirectoryPagePrivate SubEventsDirectoryPagePrivate;
-enum {
- SUB_EVENTS_DIRECTORY_PAGE_0_PROPERTY,
- SUB_EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* sub_events_directory_page_properties[SUB_EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES];
-
-#define SUB_EVENTS_DIRECTORY_PAGE_TYPE_DIRECTORY_TYPE (sub_events_directory_page_directory_type_get_type ())
-
-#define SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER (sub_events_directory_page_sub_event_directory_manager_get_type ())
-#define SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager))
-#define SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManagerClass))
-#define SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER))
-#define SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER))
-#define SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManagerClass))
-
-typedef struct _SubEventsDirectoryPageSubEventDirectoryManager SubEventsDirectoryPageSubEventDirectoryManager;
-typedef struct _SubEventsDirectoryPageSubEventDirectoryManagerClass SubEventsDirectoryPageSubEventDirectoryManagerClass;
-typedef struct _SubEventsDirectoryPageSubEventDirectoryManagerPrivate SubEventsDirectoryPageSubEventDirectoryManagerPrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-struct _EventsDirectoryPage {
- CheckerboardPage parent_instance;
- EventsDirectoryPagePrivate * priv;
- ViewManager* view_manager;
-};
-
-struct _EventsDirectoryPageClass {
- CheckerboardPageClass parent_class;
-};
-
-struct _EventsDirectoryPagePrivate {
- EventsDirectoryPageEventsDirectorySearchViewFilter* search_filter;
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data);
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-struct _EventDirectoryItem {
- CheckerboardItem parent_instance;
- EventDirectoryItemPrivate * priv;
- Event* event;
-};
-
-struct _EventDirectoryItemClass {
- CheckerboardItemClass parent_class;
-};
-
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _EventsDirectoryPageEventDirectoryManager {
- ViewManager parent_instance;
- EventsDirectoryPageEventDirectoryManagerPrivate * priv;
-};
-
-struct _EventsDirectoryPageEventDirectoryManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _SearchViewFilter {
- ViewFilter parent_instance;
- SearchViewFilterPrivate * priv;
-};
-
-struct _SearchViewFilterClass {
- ViewFilterClass parent_class;
- guint (*get_criteria) (SearchViewFilter* self);
-};
-
-struct _EventsDirectoryPageEventsDirectorySearchViewFilter {
- SearchViewFilter parent_instance;
- EventsDirectoryPageEventsDirectorySearchViewFilterPrivate * priv;
-};
-
-struct _EventsDirectoryPageEventsDirectorySearchViewFilterClass {
- SearchViewFilterClass parent_class;
-};
-
-typedef enum {
- SEARCH_FILTER_CRITERIA_NONE = 0,
- SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0,
- SEARCH_FILTER_CRITERIA_TEXT = 1 << 1,
- SEARCH_FILTER_CRITERIA_FLAG = 1 << 2,
- SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3,
- SEARCH_FILTER_CRITERIA_RATING = 1 << 4,
- SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5,
- SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL
-} SearchFilterCriteria;
-
-struct _IndexableIface {
- GTypeInterface parent_iface;
- const gchar* (*get_indexable_keywords) (Indexable* self);
-};
-
-struct _MasterEventsDirectoryPage {
- EventsDirectoryPage parent_instance;
- MasterEventsDirectoryPagePrivate * priv;
-};
-
-struct _MasterEventsDirectoryPageClass {
- EventsDirectoryPageClass parent_class;
-};
-
-struct _SubEventsDirectoryPage {
- EventsDirectoryPage parent_instance;
- SubEventsDirectoryPagePrivate * priv;
-};
-
-struct _SubEventsDirectoryPageClass {
- EventsDirectoryPageClass parent_class;
-};
-
-typedef enum {
- SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR,
- SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH,
- SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED
-} SubEventsDirectoryPageDirectoryType;
-
-struct _SubEventsDirectoryPageSubEventDirectoryManager {
- EventsDirectoryPageEventDirectoryManager parent_instance;
- SubEventsDirectoryPageSubEventDirectoryManagerPrivate * priv;
-};
-
-struct _SubEventsDirectoryPageSubEventDirectoryManagerClass {
- EventsDirectoryPageEventDirectoryManagerClass parent_class;
-};
-
-struct _SubEventsDirectoryPageSubEventDirectoryManagerPrivate {
- gint month;
- gint year;
- SubEventsDirectoryPageDirectoryType type;
-};
-
-
-static gpointer events_directory_page_parent_class = NULL;
-extern EventSourceCollection* event_global;
-static gpointer events_directory_page_event_directory_manager_parent_class = NULL;
-static gpointer events_directory_page_events_directory_search_view_filter_parent_class = NULL;
-static gpointer master_events_directory_page_parent_class = NULL;
-static gpointer sub_events_directory_page_parent_class = NULL;
-static gpointer sub_events_directory_page_sub_event_directory_manager_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType events_directory_page_get_type (void) G_GNUC_CONST;
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-static GType events_directory_page_events_directory_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define EVENTS_DIRECTORY_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPagePrivate))
-GAction* page_get_action (Page* self,
- const gchar* name);
-static void events_directory_page_on_sort_changed (EventsDirectoryPage* self,
- GSimpleAction* action,
- GVariant* value);
-static void _events_directory_page_on_sort_changed_g_simple_action_change_state (GSimpleAction* _sender,
- GVariant* value,
- gpointer self);
-static EventsDirectoryPageEventsDirectorySearchViewFilter* events_directory_page_events_directory_search_view_filter_new (void);
-static EventsDirectoryPageEventsDirectorySearchViewFilter* events_directory_page_events_directory_search_view_filter_construct (GType object_type);
-#define EVENTS_DIRECTORY_PAGE_MIN_PHOTOS_FOR_PROGRESS_WINDOW 50
-static void events_directory_page_on_rename (EventsDirectoryPage* self);
-static void _events_directory_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void events_directory_page_on_merge (EventsDirectoryPage* self);
-static void _events_directory_page_on_merge_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-void events_directory_page_on_edit_comment (EventsDirectoryPage* self);
-static void _events_directory_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-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 events_directory_page_on_display_comments (EventsDirectoryPage* self,
- GSimpleAction* action,
- GVariant* value);
-static void _events_directory_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-EventsDirectoryPage* events_directory_page_construct (GType object_type,
- const gchar* page_name,
- ViewManager* view_manager,
- GeeCollection* initial_events);
-CheckerboardPage* checkerboard_page_construct (GType object_type,
- const gchar* page_name);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-void data_collection_set_comparator (DataCollection* self,
- Comparator comparator,
- void* comparator_target,
- ComparatorPredicate predicate,
- void* predicate_target);
-static Comparator events_directory_page_get_event_comparator (gboolean ascending,
- void** result_target,
- GDestroyNotify* result_target_destroy_notify);
-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_events_sort_ascending (ConfigurationFacade* self);
-gboolean events_directory_page_event_comparator_predicate (DataObject* object,
- Alteration* alteration);
-static gboolean _events_directory_page_event_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self);
-GType source_collection_get_type (void) G_GNUC_CONST;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType event_source_collection_get_type (void) G_GNUC_CONST;
-void data_collection_set_property (DataCollection* self,
- const gchar* name,
- GValue* val,
- ValueEqualFunc value_equals,
- void* value_equals_target);
-#define EVENT_PROP_SHOW_COMMENTS "show-comments"
-gboolean configuration_facade_get_display_event_comments (ConfigurationFacade* self);
-void checkerboard_page_init_item_context_menu (CheckerboardPage* self,
- const gchar* path);
-GtkToolbar* page_get_toolbar (Page* self);
-#define RESOURCES_MERGE_LABEL _ ("Merge")
-#define RESOURCES_MERGE_TOOLTIP _ ("Combine events into a single event")
-static void events_directory_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames);
-void page_init_collect_ui_filenames (Page* self,
- GeeList* ui_filenames);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-static gint64 events_directory_page_event_ascending_comparator (void* a,
- void* b);
-GType event_directory_item_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-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,
- 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);
-void page_set_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive);
-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);
-#define LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING "ascending"
-gint view_collection_get_selected_count (ViewCollection* self);
-DataView* view_collection_get_selected_at (ViewCollection* self,
- gint index);
-gpointer text_entry_dialog_mediator_ref (gpointer instance);
-void text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_text_entry_dialog_mediator (const GValue* value);
-GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType event_rename_dialog_get_type (void) G_GNUC_CONST;
-gchar* event_get_raw_name (Event* self);
-EventRenameDialog* event_rename_dialog_new (const gchar* event_name);
-EventRenameDialog* event_rename_dialog_construct (GType object_type,
- const gchar* event_name);
-gchar* event_rename_dialog_execute (EventRenameDialog* self);
-GType command_get_type (void) G_GNUC_CONST;
-GType page_command_get_type (void) G_GNUC_CONST;
-GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
-GType rename_event_command_get_type (void) G_GNUC_CONST;
-RenameEventCommand* rename_event_command_new (Event* event,
- const gchar* new_name);
-RenameEventCommand* rename_event_command_construct (GType object_type,
- Event* event,
- const gchar* new_name);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* page_get_command_manager (Page* self);
-void command_manager_execute (CommandManager* self,
- Command* command);
-gpointer multi_text_entry_dialog_mediator_ref (gpointer instance);
-void multi_text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_multi_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value);
-GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType edit_comment_dialog_get_type (void) G_GNUC_CONST;
-gchar* event_source_get_comment (EventSource* self);
-EditCommentDialog* edit_comment_dialog_new (const gchar* comment,
- gboolean is_event);
-EditCommentDialog* edit_comment_dialog_construct (GType object_type,
- const gchar* comment,
- gboolean is_event);
-gchar* edit_comment_dialog_execute (EditCommentDialog* self);
-GType edit_event_comment_command_get_type (void) G_GNUC_CONST;
-EditEventCommentCommand* edit_event_comment_command_new (Event* event,
- const gchar* new_comment);
-EditEventCommentCommand* edit_event_comment_command_construct (GType object_type,
- Event* event,
- const gchar* new_comment);
-GType move_photos_command_get_type (void) G_GNUC_CONST;
-GType merge_events_command_get_type (void) G_GNUC_CONST;
-GeeList* view_collection_get_selected (ViewCollection* self);
-MergeEventsCommand* merge_events_command_new (GeeIterable* iter);
-MergeEventsCommand* merge_events_command_construct (GType object_type,
- GeeIterable* iter);
-void checkerboard_page_set_display_comments (CheckerboardPage* self,
- gboolean display);
-void configuration_facade_set_display_event_comments (ConfigurationFacade* self,
- gboolean display);
-static SearchViewFilter* events_directory_page_real_get_search_view_filter (CheckerboardPage* base);
-GType events_directory_page_event_directory_manager_get_type (void) G_GNUC_CONST;
-static DataView* events_directory_page_event_directory_manager_real_create_view (ViewManager* base,
- DataSource* source);
-EventDirectoryItem* event_directory_item_new (Event* event);
-EventDirectoryItem* event_directory_item_construct (GType object_type,
- Event* event);
-EventsDirectoryPageEventDirectoryManager* events_directory_page_event_directory_manager_new (void);
-EventsDirectoryPageEventDirectoryManager* events_directory_page_event_directory_manager_construct (GType object_type);
-ViewManager* view_manager_construct (GType object_type);
-static guint events_directory_page_events_directory_search_view_filter_real_get_criteria (SearchViewFilter* base);
-GType search_filter_criteria_get_type (void) G_GNUC_CONST;
-static gboolean events_directory_page_events_directory_search_view_filter_real_predicate (ViewFilter* base,
- DataView* view);
-DataSource* data_view_get_source (DataView* self);
-gboolean is_string_empty (const gchar* s);
-const gchar* search_view_filter_get_search_filter (SearchViewFilter* self);
-GType indexable_get_type (void) G_GNUC_CONST;
-const gchar* indexable_get_indexable_keywords (Indexable* self);
-gchar** search_view_filter_get_search_filter_words (SearchViewFilter* self,
- int* result_length1);
-SearchViewFilter* search_view_filter_construct (GType object_type);
-static void events_directory_page_finalize (GObject * obj);
-GType master_events_directory_page_get_type (void) G_GNUC_CONST;
-#define MASTER_EVENTS_DIRECTORY_PAGE_NAME _ ("All Events")
-MasterEventsDirectoryPage* master_events_directory_page_new (void);
-MasterEventsDirectoryPage* master_events_directory_page_construct (GType object_type);
-GeeCollection* data_collection_get_all (DataCollection* self);
-GType sub_events_directory_page_get_type (void) G_GNUC_CONST;
-GType sub_events_directory_page_directory_type_get_type (void) G_GNUC_CONST;
-#define SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME _ ("Undated")
-#define SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT _ ("%Y")
-#define SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT _ ("%B")
-SubEventsDirectoryPage* sub_events_directory_page_new (SubEventsDirectoryPageDirectoryType type,
- struct tm* time);
-SubEventsDirectoryPage* sub_events_directory_page_construct (GType object_type,
- SubEventsDirectoryPageDirectoryType type,
- struct tm* time);
-static SubEventsDirectoryPageSubEventDirectoryManager* sub_events_directory_page_sub_event_directory_manager_new (SubEventsDirectoryPageDirectoryType type,
- struct tm* time);
-static SubEventsDirectoryPageSubEventDirectoryManager* sub_events_directory_page_sub_event_directory_manager_construct (GType object_type,
- SubEventsDirectoryPageDirectoryType type,
- struct tm* time);
-static GType sub_events_directory_page_sub_event_directory_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-gint sub_events_directory_page_get_month (SubEventsDirectoryPage* self);
-static gint sub_events_directory_page_sub_event_directory_manager_get_month (SubEventsDirectoryPageSubEventDirectoryManager* self);
-gint sub_events_directory_page_get_year (SubEventsDirectoryPage* self);
-static gint sub_events_directory_page_sub_event_directory_manager_get_year (SubEventsDirectoryPageSubEventDirectoryManager* self);
-SubEventsDirectoryPageDirectoryType sub_events_directory_page_get_event_directory_type (SubEventsDirectoryPage* self);
-static SubEventsDirectoryPageDirectoryType sub_events_directory_page_sub_event_directory_manager_get_event_directory_type (SubEventsDirectoryPageSubEventDirectoryManager* self);
-#define SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManagerPrivate))
-static gboolean sub_events_directory_page_sub_event_directory_manager_real_include_in_view (ViewManager* base,
- DataSource* source);
-gboolean view_manager_include_in_view (ViewManager* self,
- DataSource* source);
-static void sub_events_directory_page_sub_event_directory_manager_finalize (ViewManager * obj);
-
-static const GActionEntry EVENTS_DIRECTORY_PAGE_entries[4] = {{"Rename", _events_directory_page_on_rename_gsimple_action_activate_callback}, {"Merge", _events_directory_page_on_merge_gsimple_action_activate_callback}, {"EditComment", _events_directory_page_on_edit_comment_gsimple_action_activate_callback}, {"ViewComment", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _events_directory_page_on_display_comments_gsimple_action_change_state_callback}};
-
-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 1295 "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 1306 "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 1317 "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 1328 "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 1339 "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 1350 "EventsDirectoryPage.c"
-}
-
-
-static gboolean
-_events_directory_page_event_comparator_predicate_comparator_predicate (DataObject* object,
- Alteration* alteration,
- gpointer self)
-{
- gboolean result;
- result = events_directory_page_event_comparator_predicate (object, alteration);
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1363 "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 1372 "EventsDirectoryPage.c"
-}
-
-
-EventsDirectoryPage*
-events_directory_page_construct (GType object_type,
- const gchar* page_name,
- ViewManager* view_manager,
- GeeCollection* initial_events)
-{
- EventsDirectoryPage * self = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- ConfigFacade* _tmp2_;
- ConfigFacade* _tmp3_;
- void* _tmp4_;
- GDestroyNotify _tmp5_;
- Comparator _tmp6_;
- Comparator _tmp7_;
- void* _tmp7__target;
- GDestroyNotify _tmp7__target_destroy_notify;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
- EventSourceCollection* _tmp10_;
- ViewCollectionMonitor* _tmp11_;
- ViewCollectionMonitor* _tmp12_;
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- ConfigFacade* _tmp15_;
- ConfigFacade* _tmp16_;
- GValue _tmp17_ = {0};
- ViewManager* _tmp18_;
- GtkToolbar* toolbar = NULL;
- GtkToolbar* _tmp19_;
- GtkToolButton* merge_button = NULL;
- GtkToolButton* _tmp20_;
-#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (page_name != NULL, NULL);
-#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_VIEW_MANAGER (view_manager), NULL);
-#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail ((initial_events == NULL) || GEE_IS_COLLECTION (initial_events), NULL);
-#line 47 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = (EventsDirectoryPage*) checkerboard_page_construct (object_type, page_name);
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = config_facade_get_instance ();
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = _tmp2_;
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = events_directory_page_get_event_comparator (configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)), &_tmp4_, &_tmp5_);
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7_ = _tmp6_;
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7__target = _tmp4_;
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7__target_destroy_notify = _tmp5_;
-#line 50 "/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 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- (_tmp7__target_destroy_notify == NULL) ? NULL : (_tmp7__target_destroy_notify (_tmp7__target), NULL);
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7_ = NULL;
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7__target = NULL;
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7__target_destroy_notify = NULL;
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp9_ = _tmp8_;
-#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp10_ = event_global;
-#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp11_ = view_collection_monitor_source_collection (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SOURCE_COLLECTION, SourceCollection), view_manager, NULL, initial_events, NULL, NULL);
-#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp12_ = _tmp11_;
-#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _view_collection_monitor_unref0 (_tmp12_);
-#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp9_);
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp14_ = _tmp13_;
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp15_ = config_facade_get_instance ();
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp16_ = _tmp15_;
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_value_init (&_tmp17_, G_TYPE_BOOLEAN);
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_value_set_boolean (&_tmp17_, configuration_facade_get_display_event_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection), EVENT_PROP_SHOW_COMMENTS, &_tmp17_, NULL, NULL);
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- G_IS_VALUE (&_tmp17_) ? (g_value_unset (&_tmp17_), NULL) : NULL;
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp14_);
-#line 57 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "EventsDirectoryContextMenu");
-#line 59 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp18_ = _view_manager_ref0 (view_manager);
-#line 59 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _view_manager_unref0 (self->view_manager);
-#line 59 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self->view_manager = _tmp18_;
-#line 62 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp19_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 62 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- toolbar = _tmp19_;
-#line 65 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp20_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_MERGE_LABEL);
-#line 65 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_object_ref_sink (_tmp20_);
-#line 65 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- merge_button = _tmp20_;
-#line 66 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (merge_button, gtk_actionable_get_type (), GtkActionable), "win.Merge");
-#line 67 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (merge_button, gtk_tool_item_get_type (), GtkToolItem), TRUE);
-#line 68 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (merge_button, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_MERGE_TOOLTIP);
-#line 69 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- gtk_tool_button_set_icon_name (merge_button, "merge");
-#line 71 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (merge_button, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (merge_button);
-#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (toolbar);
-#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return self;
-#line 1514 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- EventsDirectoryPage * self;
-#line 80 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage);
-#line 80 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 81 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "events_directory.ui");
-#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), ui_filenames);
-#line 1531 "EventsDirectoryPage.c"
-}
-
-
-gboolean
-events_directory_page_event_comparator_predicate (DataObject* object,
- Alteration* alteration)
-{
- gboolean result = FALSE;
-#line 86 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
-#line 86 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
-#line 87 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = alteration_has_detail (alteration, "metadata", "time");
-#line 87 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1548 "EventsDirectoryPage.c"
-}
-
-
-static gint64
-events_directory_page_event_ascending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
- time_t start_a = 0;
- Event* _tmp0_;
- time_t start_b = 0;
- Event* _tmp1_;
-#line 91 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((EventDirectoryItem*) a, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem)->event;
-#line 91 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- start_a = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT_SOURCE, EventSource));
-#line 92 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((EventDirectoryItem*) b, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem)->event;
-#line 92 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- start_b = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_EVENT_SOURCE, EventSource));
-#line 94 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = (gint64) (start_a - start_b);
-#line 94 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1573 "EventsDirectoryPage.c"
-}
-
-
-static gint64
-events_directory_page_event_descending_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
-#line 98 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = events_directory_page_event_ascending_comparator (b, a);
-#line 98 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1586 "EventsDirectoryPage.c"
-}
-
-
-static gint64
-_events_directory_page_event_ascending_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = events_directory_page_event_ascending_comparator (a, b);
-#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1599 "EventsDirectoryPage.c"
-}
-
-
-static gint64
-_events_directory_page_event_descending_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = events_directory_page_event_descending_comparator (a, b);
-#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1612 "EventsDirectoryPage.c"
-}
-
-
-static Comparator
-events_directory_page_get_event_comparator (gboolean ascending,
- void** result_target,
- GDestroyNotify* result_target_destroy_notify)
-{
- Comparator result = NULL;
-#line 102 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (ascending) {
-#line 1624 "EventsDirectoryPage.c"
- Comparator _tmp0_;
- void* _tmp0__target;
- GDestroyNotify _tmp0__target_destroy_notify;
-#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = _events_directory_page_event_ascending_comparator_comparator;
-#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0__target = NULL;
-#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0__target_destroy_notify = NULL;
-#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- *result_target = _tmp0__target;
-#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- *result_target_destroy_notify = _tmp0__target_destroy_notify;
-#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp0_;
-#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1642 "EventsDirectoryPage.c"
- } else {
- Comparator _tmp1_;
- void* _tmp1__target;
- GDestroyNotify _tmp1__target_destroy_notify;
-#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _events_directory_page_event_descending_comparator_comparator;
-#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1__target = NULL;
-#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1__target_destroy_notify = NULL;
-#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- *result_target = _tmp1__target;
-#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- *result_target_destroy_notify = _tmp1__target_destroy_notify;
-#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp1_;
-#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1661 "EventsDirectoryPage.c"
- }
-}
-
-
-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 1671 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- EventsDirectoryPage * self;
- gboolean display_comments = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
- GAction* _tmp3_;
- GAction* _tmp4_;
- GVariant* _tmp5_;
-#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), map);
-#line 119 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_action_map_add_action_entries (map, EVENTS_DIRECTORY_PAGE_entries, G_N_ELEMENTS (EVENTS_DIRECTORY_PAGE_entries), self);
-#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = configuration_facade_get_display_event_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- display_comments = _tmp2_;
-#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment");
-#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp4_ = _tmp3_;
-#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp5_ = _variant_new14 (display_comments);
-#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_action_change_state (_tmp4_, _tmp5_);
-#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_variant_unref0 (_tmp5_);
-#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 1717 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- EventsDirectoryPage * self;
-#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"
- 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), map);
-#line 1732 "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 1744 "EventsDirectoryPage.c"
- GActionEntry entry = {0};
-#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- entry = entry_collection[entry_it];
-#line 1748 "EventsDirectoryPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = entry;
-#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 1758 "EventsDirectoryPage.c"
- }
- }
- }
-}
-
-
-static void
-events_directory_page_real_init_actions (Page* base,
- gint selected_count,
- gint count)
-{
- EventsDirectoryPage * self;
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
-#line 132 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage);
-#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), selected_count, count);
-#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonSortEvents");
-#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp1_ == NULL) {
-#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 1786 "EventsDirectoryPage.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- action = _tmp1_;
-#line 136 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _vala_assert (action != NULL, "action != null");
-#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 132 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (action);
-#line 1796 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- EventsDirectoryPage * self;
-#line 140 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage);
-#line 141 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Merge", selected_count > 1);
-#line 142 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rename", selected_count == 1);
-#line 143 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditComment", selected_count == 1);
-#line 145 "/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), selected_count, count);
-#line 1816 "EventsDirectoryPage.c"
-}
-
-
-static gchar*
-events_directory_page_real_get_view_empty_message (CheckerboardPage* base)
-{
- EventsDirectoryPage * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 148 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage);
-#line 149 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = g_strdup (_ ("No events"));
-#line 149 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1834 "EventsDirectoryPage.c"
-}
-
-
-static gchar*
-events_directory_page_real_get_filter_no_match_message (CheckerboardPage* base)
-{
- EventsDirectoryPage * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage);
-#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = g_strdup (_ ("No events found"));
-#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp0_;
-#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 1852 "EventsDirectoryPage.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 158 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1861 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_real_on_item_activated (CheckerboardPage* base,
- CheckerboardItem* item,
- CheckerboardPageActivator activator,
- CheckerboardPageKeyboardModifiers* modifiers)
-{
- EventsDirectoryPage * self;
- EventDirectoryItem* event = NULL;
- EventDirectoryItem* _tmp0_;
- LibraryWindow* _tmp1_;
- LibraryWindow* _tmp2_;
- Event* _tmp3_;
-#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage);
-#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (IS_CHECKERBOARD_ITEM (item));
-#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (modifiers != NULL);
-#line 158 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem));
-#line 158 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- event = _tmp0_;
-#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = library_window_get_app ();
-#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = _tmp1_;
-#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = event->event;
-#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- library_window_switch_to_event (_tmp2_, _tmp3_);
-#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp2_);
-#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (event);
-#line 1899 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_on_sort_changed (EventsDirectoryPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- const gchar* _tmp2_;
- void* _tmp3_;
- GDestroyNotify _tmp4_;
- Comparator _tmp5_;
- Comparator _tmp6_;
- void* _tmp6__target;
- GDestroyNotify _tmp6__target_destroy_notify;
-#line 162 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self));
-#line 162 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = g_variant_get_string (value, NULL);
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp5_ = events_directory_page_get_event_comparator (g_strcmp0 (_tmp2_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0, &_tmp3_, &_tmp4_);
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = _tmp5_;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6__target = _tmp3_;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6__target_destroy_notify = _tmp4_;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), _tmp6_, _tmp3_, _events_directory_page_event_comparator_predicate_comparator_predicate, NULL);
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- (_tmp6__target_destroy_notify == NULL) ? NULL : (_tmp6__target_destroy_notify (_tmp6__target), NULL);
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = NULL;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6__target = NULL;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6__target_destroy_notify = NULL;
-#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 167 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_simple_action_set_state (action, value);
-#line 1949 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_on_rename (EventsDirectoryPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- EventDirectoryItem* item = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- DataView* _tmp5_;
- EventDirectoryItem* _tmp6_;
- EventRenameDialog* rename_dialog = NULL;
- EventDirectoryItem* _tmp7_;
- Event* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- EventRenameDialog* _tmp11_;
- EventRenameDialog* _tmp12_;
- gchar* new_name = NULL;
- EventRenameDialog* _tmp13_;
- gchar* _tmp14_;
- const gchar* _tmp15_;
- RenameEventCommand* command = NULL;
- EventDirectoryItem* _tmp16_;
- Event* _tmp17_;
- const gchar* _tmp18_;
- RenameEventCommand* _tmp19_;
- CommandManager* _tmp20_;
- CommandManager* _tmp21_;
- RenameEventCommand* _tmp22_;
-#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self));
-#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp2_) {
-#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return;
-#line 1997 "EventsDirectoryPage.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp4_ = _tmp3_;
-#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
-#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- item = _tmp6_;
-#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7_ = item;
-#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp8_ = _tmp7_->event;
-#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp9_ = event_get_raw_name (_tmp8_);
-#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp10_ = _tmp9_;
-#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp11_ = event_rename_dialog_new (_tmp10_);
-#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp12_ = _tmp11_;
-#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (_tmp10_);
-#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- rename_dialog = _tmp12_;
-#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp13_ = rename_dialog;
-#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp14_ = event_rename_dialog_execute (_tmp13_);
-#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- new_name = _tmp14_;
-#line 179 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp15_ = new_name;
-#line 179 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp15_ == NULL) {
-#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (new_name);
-#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _text_entry_dialog_mediator_unref0 (rename_dialog);
-#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (item);
-#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return;
-#line 2045 "EventsDirectoryPage.c"
- }
-#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp16_ = item;
-#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp17_ = _tmp16_->event;
-#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp18_ = new_name;
-#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp19_ = rename_event_command_new (_tmp17_, _tmp18_);
-#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- command = _tmp19_;
-#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp20_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp21_ = _tmp20_;
-#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp22_ = command;
-#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- command_manager_execute (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command));
-#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _command_manager_unref0 (_tmp21_);
-#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (command);
-#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (new_name);
-#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _text_entry_dialog_mediator_unref0 (rename_dialog);
-#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (item);
-#line 2075 "EventsDirectoryPage.c"
-}
-
-
-void
-events_directory_page_on_edit_comment (EventsDirectoryPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- EventDirectoryItem* item = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- DataView* _tmp5_;
- EventDirectoryItem* _tmp6_;
- EditCommentDialog* edit_comment_dialog = NULL;
- EventDirectoryItem* _tmp7_;
- Event* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- EditCommentDialog* _tmp11_;
- EditCommentDialog* _tmp12_;
- gchar* new_comment = NULL;
- EditCommentDialog* _tmp13_;
- gchar* _tmp14_;
- const gchar* _tmp15_;
- EditEventCommentCommand* command = NULL;
- EventDirectoryItem* _tmp16_;
- Event* _tmp17_;
- const gchar* _tmp18_;
- EditEventCommentCommand* _tmp19_;
- CommandManager* _tmp20_;
- CommandManager* _tmp21_;
- EditEventCommentCommand* _tmp22_;
-#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self));
-#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
-#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp2_) {
-#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return;
-#line 2123 "EventsDirectoryPage.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp4_ = _tmp3_;
-#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
-#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem);
-#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- item = _tmp6_;
-#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7_ = item;
-#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp8_ = _tmp7_->event;
-#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp9_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EVENT_SOURCE, EventSource));
-#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp10_ = _tmp9_;
-#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp11_ = edit_comment_dialog_new (_tmp10_, FALSE);
-#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp12_ = _tmp11_;
-#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (_tmp10_);
-#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- edit_comment_dialog = _tmp12_;
-#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp13_ = edit_comment_dialog;
-#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp14_ = edit_comment_dialog_execute (_tmp13_);
-#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- new_comment = _tmp14_;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp15_ = new_comment;
-#line 195 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp15_ == NULL) {
-#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (new_comment);
-#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
-#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (item);
-#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return;
-#line 2171 "EventsDirectoryPage.c"
- }
-#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp16_ = item;
-#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp17_ = _tmp16_->event;
-#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp18_ = new_comment;
-#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp19_ = edit_event_comment_command_new (_tmp17_, _tmp18_);
-#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- command = _tmp19_;
-#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp20_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp21_ = _tmp20_;
-#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp22_ = command;
-#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- command_manager_execute (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command));
-#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _command_manager_unref0 (_tmp21_);
-#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (command);
-#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (new_comment);
-#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
-#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (item);
-#line 2201 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_on_merge (EventsDirectoryPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- MergeEventsCommand* command = NULL;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
- MergeEventsCommand* _tmp7_;
- MergeEventsCommand* _tmp8_;
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
- MergeEventsCommand* _tmp11_;
-#line 202 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self));
-#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) <= 1;
-#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp2_) {
-#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return;
-#line 2235 "EventsDirectoryPage.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp4_ = _tmp3_;
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp5_ = view_collection_get_selected (_tmp4_);
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = _tmp5_;
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7_ = merge_events_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp8_ = _tmp7_;
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _data_collection_unref0 (_tmp4_);
-#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- command = _tmp8_;
-#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp10_ = _tmp9_;
-#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp11_ = command;
-#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _command_manager_unref0 (_tmp10_);
-#line 202 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (command);
-#line 2267 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_on_display_comments (EventsDirectoryPage* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 210 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self));
-#line 210 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 211 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- display = g_variant_get_boolean (value);
-#line 213 "/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 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- configuration_facade_set_display_event_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display);
-#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 217 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_simple_action_set_state (action, value);
-#line 2297 "EventsDirectoryPage.c"
-}
-
-
-static gpointer
-_view_filter_ref0 (gpointer self)
-{
-#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return self ? view_filter_ref (self) : NULL;
-#line 2306 "EventsDirectoryPage.c"
-}
-
-
-static SearchViewFilter*
-events_directory_page_real_get_search_view_filter (CheckerboardPage* base)
-{
- EventsDirectoryPage * self;
- SearchViewFilter* result = NULL;
- EventsDirectoryPageEventsDirectorySearchViewFilter* _tmp0_;
- SearchViewFilter* _tmp1_;
-#line 220 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage);
-#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = self->priv->search_filter;
-#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp1_;
-#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2327 "EventsDirectoryPage.c"
-}
-
-
-static DataView*
-events_directory_page_event_directory_manager_real_create_view (ViewManager* base,
- DataSource* source)
-{
- EventsDirectoryPageEventDirectoryManager * self;
- DataView* result = NULL;
- EventDirectoryItem* _tmp0_;
-#line 9 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManager);
-#line 9 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
-#line 10 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = event_directory_item_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event));
-#line 10 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView);
-#line 10 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2348 "EventsDirectoryPage.c"
-}
-
-
-EventsDirectoryPageEventDirectoryManager*
-events_directory_page_event_directory_manager_construct (GType object_type)
-{
- EventsDirectoryPageEventDirectoryManager* self = NULL;
-#line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = (EventsDirectoryPageEventDirectoryManager*) view_manager_construct (object_type);
-#line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return self;
-#line 2360 "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 2369 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_event_directory_manager_class_init (EventsDirectoryPageEventDirectoryManagerClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- 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 = (DataView* (*) (ViewManager *, DataSource*)) events_directory_page_event_directory_manager_real_create_view;
-#line 2380 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_event_directory_manager_instance_init (EventsDirectoryPageEventDirectoryManager * self)
-{
-}
-
-
-GType
-events_directory_page_event_directory_manager_get_type (void)
-{
- static volatile gsize events_directory_page_event_directory_manager_type_id__volatile = 0;
- if (g_once_init_enter (&events_directory_page_event_directory_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsDirectoryPageEventDirectoryManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_directory_page_event_directory_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsDirectoryPageEventDirectoryManager), 0, (GInstanceInitFunc) events_directory_page_event_directory_manager_instance_init, NULL };
- GType events_directory_page_event_directory_manager_type_id;
- events_directory_page_event_directory_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "EventsDirectoryPageEventDirectoryManager", &g_define_type_info, 0);
- g_once_init_leave (&events_directory_page_event_directory_manager_type_id__volatile, events_directory_page_event_directory_manager_type_id);
- }
- return events_directory_page_event_directory_manager_type_id__volatile;
-}
-
-
-static guint
-events_directory_page_events_directory_search_view_filter_real_get_criteria (SearchViewFilter* base)
-{
- EventsDirectoryPageEventsDirectorySearchViewFilter * self;
- guint result = 0U;
-#line 15 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilter);
-#line 16 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = (guint) SEARCH_FILTER_CRITERIA_TEXT;
-#line 16 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2415 "EventsDirectoryPage.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2435 "EventsDirectoryPage.c"
-}
-
-
-static gboolean
-events_directory_page_events_directory_search_view_filter_real_predicate (ViewFilter* base,
- DataView* view)
-{
- EventsDirectoryPageEventsDirectorySearchViewFilter * self;
- gboolean result = FALSE;
- DataSource* _tmp0_;
- DataSource* _tmp1_;
- const gchar* _tmp2_;
- Event* source = NULL;
- DataSource* _tmp3_;
- const gchar* event_keywords = NULL;
- Event* _tmp4_;
- const gchar* _tmp5_;
- const gchar* _tmp6_;
- gint _tmp7_;
- gchar** _tmp8_;
-#line 19 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilter);
-#line 19 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_DATA_VIEW (view), FALSE);
-#line 20 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = data_view_get_source (view);
-#line 20 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_EVENT), "view.get_source() is Event");
-#line 20 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 21 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = search_view_filter_get_search_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 21 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (is_string_empty (_tmp2_)) {
-#line 22 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = TRUE;
-#line 22 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2476 "EventsDirectoryPage.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = data_view_get_source (view);
-#line 24 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_EVENT, Event);
-#line 25 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp4_ = source;
-#line 25 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp5_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_INDEXABLE, Indexable));
-#line 25 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- event_keywords = _tmp5_;
-#line 26 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = event_keywords;
-#line 26 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (is_string_empty (_tmp6_)) {
-#line 27 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = FALSE;
-#line 27 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (source);
-#line 27 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2498 "EventsDirectoryPage.c"
- }
-#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp8_ = search_view_filter_get_search_filter_words (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter), &_tmp7_);
-#line 2502 "EventsDirectoryPage.c"
- {
- gchar** word_collection = NULL;
- gint word_collection_length1 = 0;
- gint _word_collection_size_ = 0;
- gint word_it = 0;
-#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- word_collection = _tmp8_;
-#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- word_collection_length1 = _tmp7_;
-#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- for (word_it = 0; word_it < _tmp7_; word_it = word_it + 1) {
-#line 2514 "EventsDirectoryPage.c"
- const gchar* word = NULL;
-#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- word = word_collection[word_it];
-#line 2518 "EventsDirectoryPage.c"
- {
- const gchar* _tmp9_;
- const gchar* _tmp10_;
-#line 31 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp9_ = event_keywords;
-#line 31 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp10_ = word;
-#line 31 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (!string_contains (_tmp9_, _tmp10_)) {
-#line 32 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = FALSE;
-#line 32 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (source);
-#line 32 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2534 "EventsDirectoryPage.c"
- }
- }
- }
- }
-#line 35 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = TRUE;
-#line 35 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (source);
-#line 35 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2545 "EventsDirectoryPage.c"
-}
-
-
-static EventsDirectoryPageEventsDirectorySearchViewFilter*
-events_directory_page_events_directory_search_view_filter_construct (GType object_type)
-{
- EventsDirectoryPageEventsDirectorySearchViewFilter* self = NULL;
-#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = (EventsDirectoryPageEventsDirectorySearchViewFilter*) search_view_filter_construct (object_type);
-#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return self;
-#line 2557 "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 2566 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_events_directory_search_view_filter_class_init (EventsDirectoryPageEventsDirectorySearchViewFilterClass * klass)
-{
-#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- events_directory_page_events_directory_search_view_filter_parent_class = g_type_class_peek_parent (klass);
-#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) events_directory_page_events_directory_search_view_filter_real_get_criteria;
-#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) events_directory_page_events_directory_search_view_filter_real_predicate;
-#line 2579 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_events_directory_search_view_filter_instance_init (EventsDirectoryPageEventsDirectorySearchViewFilter * self)
-{
-}
-
-
-static GType
-events_directory_page_events_directory_search_view_filter_get_type (void)
-{
- static volatile gsize events_directory_page_events_directory_search_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&events_directory_page_events_directory_search_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsDirectoryPageEventsDirectorySearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_directory_page_events_directory_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsDirectoryPageEventsDirectorySearchViewFilter), 0, (GInstanceInitFunc) events_directory_page_events_directory_search_view_filter_instance_init, NULL };
- GType events_directory_page_events_directory_search_view_filter_type_id;
- events_directory_page_events_directory_search_view_filter_type_id = g_type_register_static (TYPE_SEARCH_VIEW_FILTER, "EventsDirectoryPageEventsDirectorySearchViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&events_directory_page_events_directory_search_view_filter_type_id__volatile, events_directory_page_events_directory_search_view_filter_type_id);
- }
- return events_directory_page_events_directory_search_view_filter_type_id__volatile;
-}
-
-
-static void
-events_directory_page_class_init (EventsDirectoryPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- events_directory_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_type_class_add_private (klass, sizeof (EventsDirectoryPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) events_directory_page_real_init_collect_ui_filenames;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) events_directory_page_real_add_actions;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) events_directory_page_real_remove_actions;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) events_directory_page_real_init_actions;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) events_directory_page_real_update_actions;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((CheckerboardPageClass *) klass)->get_view_empty_message = (gchar* (*) (CheckerboardPage *)) events_directory_page_real_get_view_empty_message;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((CheckerboardPageClass *) klass)->get_filter_no_match_message = (gchar* (*) (CheckerboardPage *)) events_directory_page_real_get_filter_no_match_message;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((CheckerboardPageClass *) klass)->on_item_activated = (void (*) (CheckerboardPage *, CheckerboardItem*, CheckerboardPageActivator, CheckerboardPageKeyboardModifiers*)) events_directory_page_real_on_item_activated;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) 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 2630 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_instance_init (EventsDirectoryPage * self)
-{
- EventsDirectoryPageEventsDirectorySearchViewFilter* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self->priv = EVENTS_DIRECTORY_PAGE_GET_PRIVATE (self);
-#line 43 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _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 2644 "EventsDirectoryPage.c"
-}
-
-
-static void
-events_directory_page_finalize (GObject * obj)
-{
- EventsDirectoryPage * self;
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- GSimpleAction* _tmp2_;
- GSimpleAction* _tmp3_;
- guint _tmp4_;
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage);
-#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonSortEvents");
-#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL;
-#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp1_ == NULL) {
-#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp0_);
-#line 2668 "EventsDirectoryPage.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- action = _tmp1_;
-#line 76 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = action;
-#line 76 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _vala_assert (_tmp2_ != NULL, "action != null");
-#line 77 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = action;
-#line 77 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_signal_parse_name ("change-state", g_simple_action_get_type (), &_tmp4_, NULL, FALSE);
-#line 77 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _events_directory_page_on_sort_changed_g_simple_action_change_state, self);
-#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (action);
-#line 41 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _view_manager_unref0 (self->view_manager);
-#line 43 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _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 2690 "EventsDirectoryPage.c"
-}
-
-
-GType
-events_directory_page_get_type (void)
-{
- static volatile gsize events_directory_page_type_id__volatile = 0;
- if (g_once_init_enter (&events_directory_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventsDirectoryPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_directory_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsDirectoryPage), 0, (GInstanceInitFunc) events_directory_page_instance_init, NULL };
- GType events_directory_page_type_id;
- events_directory_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "EventsDirectoryPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&events_directory_page_type_id__volatile, events_directory_page_type_id);
- }
- return events_directory_page_type_id__volatile;
-}
-
-
-MasterEventsDirectoryPage*
-master_events_directory_page_construct (GType object_type)
-{
- MasterEventsDirectoryPage * self = NULL;
- EventsDirectoryPageEventDirectoryManager* _tmp0_;
- EventsDirectoryPageEventDirectoryManager* _tmp1_;
- EventSourceCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
-#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = events_directory_page_event_directory_manager_new ();
-#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_;
-#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = event_global;
-#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection));
-#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 229 "/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 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _view_manager_unref0 (_tmp1_);
-#line 228 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return self;
-#line 2735 "EventsDirectoryPage.c"
-}
-
-
-MasterEventsDirectoryPage*
-master_events_directory_page_new (void)
-{
-#line 228 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return master_events_directory_page_construct (TYPE_MASTER_EVENTS_DIRECTORY_PAGE);
-#line 2744 "EventsDirectoryPage.c"
-}
-
-
-static void
-master_events_directory_page_class_init (MasterEventsDirectoryPageClass * klass)
-{
-#line 225 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- master_events_directory_page_parent_class = g_type_class_peek_parent (klass);
-#line 2753 "EventsDirectoryPage.c"
-}
-
-
-static void
-master_events_directory_page_instance_init (MasterEventsDirectoryPage * self)
-{
-}
-
-
-GType
-master_events_directory_page_get_type (void)
-{
- static volatile gsize master_events_directory_page_type_id__volatile = 0;
- if (g_once_init_enter (&master_events_directory_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (MasterEventsDirectoryPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) master_events_directory_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MasterEventsDirectoryPage), 0, (GInstanceInitFunc) master_events_directory_page_instance_init, NULL };
- GType master_events_directory_page_type_id;
- master_events_directory_page_type_id = g_type_register_static (TYPE_EVENTS_DIRECTORY_PAGE, "MasterEventsDirectoryPage", &g_define_type_info, 0);
- g_once_init_leave (&master_events_directory_page_type_id__volatile, master_events_directory_page_type_id);
- }
- return master_events_directory_page_type_id__volatile;
-}
-
-
-GType
-sub_events_directory_page_directory_type_get_type (void)
-{
- static volatile gsize sub_events_directory_page_directory_type_type_id__volatile = 0;
- if (g_once_init_enter (&sub_events_directory_page_directory_type_type_id__volatile)) {
- static const GEnumValue values[] = {{SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR, "SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR", "year"}, {SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH, "SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH", "month"}, {SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED, "SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED", "undated"}, {0, NULL, NULL}};
- GType sub_events_directory_page_directory_type_type_id;
- sub_events_directory_page_directory_type_type_id = g_enum_register_static ("SubEventsDirectoryPageDirectoryType", values);
- g_once_init_leave (&sub_events_directory_page_directory_type_type_id__volatile, sub_events_directory_page_directory_type_type_id);
- }
- return sub_events_directory_page_directory_type_type_id__volatile;
-}
-
-
-static gchar*
-g_time_format (struct tm *self,
- const gchar* format)
-{
- gchar* result = NULL;
- gchar* buffer = NULL;
- gchar* _tmp0_;
- gint buffer_length1;
- gint _buffer_size_;
- gchar* _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gint _tmp2__length1;
- gchar* _tmp3_;
-#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (format != NULL, NULL);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, 64);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = _tmp0_;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer_length1 = 64;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _buffer_size_ = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = buffer;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1__length1 = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- strftime (_tmp1_, _tmp1__length1, format, &(*self));
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = buffer;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2__length1 = buffer_length1;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_strdup ((const gchar*) _tmp2_);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp3_;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = (g_free (buffer), NULL);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2833 "EventsDirectoryPage.c"
-}
-
-
-SubEventsDirectoryPage*
-sub_events_directory_page_construct (GType object_type,
- SubEventsDirectoryPageDirectoryType type,
- struct tm* time)
-{
- SubEventsDirectoryPage * self = NULL;
- gchar* page_name = NULL;
- const gchar* _tmp3_;
- struct tm _tmp4_;
- SubEventsDirectoryPageSubEventDirectoryManager* _tmp5_;
- SubEventsDirectoryPageSubEventDirectoryManager* _tmp6_;
-#line 286 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (time != NULL, NULL);
-#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (type == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED) {
-#line 2852 "EventsDirectoryPage.c"
- gchar* _tmp0_;
-#line 289 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = g_strdup (SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME);
-#line 289 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (page_name);
-#line 289 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- page_name = _tmp0_;
-#line 2860 "EventsDirectoryPage.c"
- } else {
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_;
-#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (type == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR) {
-#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT;
-#line 2868 "EventsDirectoryPage.c"
- } else {
-#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT;
-#line 2872 "EventsDirectoryPage.c"
- }
-#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = g_time_format (time, _tmp1_);
-#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (page_name);
-#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- page_name = _tmp2_;
-#line 2880 "EventsDirectoryPage.c"
- }
-#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = page_name;
-#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp4_ = *time;
-#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp5_ = sub_events_directory_page_sub_event_directory_manager_new (type, &_tmp4_);
-#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = _tmp5_;
-#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = (SubEventsDirectoryPage*) events_directory_page_construct (object_type, _tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_VIEW_MANAGER, ViewManager), NULL);
-#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _view_manager_unref0 (_tmp6_);
-#line 286 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_free0 (page_name);
-#line 286 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return self;
-#line 2898 "EventsDirectoryPage.c"
-}
-
-
-SubEventsDirectoryPage*
-sub_events_directory_page_new (SubEventsDirectoryPageDirectoryType type,
- struct tm* time)
-{
-#line 286 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return sub_events_directory_page_construct (TYPE_SUB_EVENTS_DIRECTORY_PAGE, type, time);
-#line 2908 "EventsDirectoryPage.c"
-}
-
-
-gint
-sub_events_directory_page_get_month (SubEventsDirectoryPage* self)
-{
- gint result = 0;
- ViewManager* _tmp0_;
-#line 297 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0);
-#line 298 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager;
-#line 298 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = 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 298 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2925 "EventsDirectoryPage.c"
-}
-
-
-gint
-sub_events_directory_page_get_year (SubEventsDirectoryPage* self)
-{
- gint result = 0;
- ViewManager* _tmp0_;
-#line 301 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0);
-#line 302 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager;
-#line 302 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = 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 302 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2942 "EventsDirectoryPage.c"
-}
-
-
-SubEventsDirectoryPageDirectoryType
-sub_events_directory_page_get_event_directory_type (SubEventsDirectoryPage* self)
-{
- SubEventsDirectoryPageDirectoryType result = 0;
- ViewManager* _tmp0_;
-#line 305 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0);
-#line 306 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager;
-#line 306 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = 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 306 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 2959 "EventsDirectoryPage.c"
-}
-
-
-static SubEventsDirectoryPageSubEventDirectoryManager*
-sub_events_directory_page_sub_event_directory_manager_construct (GType object_type,
- SubEventsDirectoryPageDirectoryType type,
- struct tm* time)
-{
- SubEventsDirectoryPageSubEventDirectoryManager* self = NULL;
- struct tm _tmp2_;
- gint _tmp3_;
-#line 249 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (time != NULL, NULL);
-#line 250 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self = (SubEventsDirectoryPageSubEventDirectoryManager*) events_directory_page_event_directory_manager_construct (object_type);
-#line 252 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (type == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH) {
-#line 2977 "EventsDirectoryPage.c"
- struct tm _tmp0_;
- gint _tmp1_;
-#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = *time;
-#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = _tmp0_.tm_mon;
-#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self->priv->month = _tmp1_;
-#line 2986 "EventsDirectoryPage.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self->priv->type = type;
-#line 255 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp2_ = *time;
-#line 255 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = _tmp2_.tm_year;
-#line 255 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self->priv->year = _tmp3_;
-#line 249 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return self;
-#line 2998 "EventsDirectoryPage.c"
-}
-
-
-static SubEventsDirectoryPageSubEventDirectoryManager*
-sub_events_directory_page_sub_event_directory_manager_new (SubEventsDirectoryPageDirectoryType type,
- struct tm* time)
-{
-#line 249 "/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 3008 "EventsDirectoryPage.c"
-}
-
-
-static void
-g_time_local (time_t time,
- struct tm* result)
-{
- struct tm _result_ = {0};
- struct tm _tmp0_ = {0};
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- localtime_r (&time, &_tmp0_);
-#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result = _result_;
-#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return;
-#line 3026 "EventsDirectoryPage.c"
-}
-
-
-static gboolean
-sub_events_directory_page_sub_event_directory_manager_real_include_in_view (ViewManager* base,
- DataSource* source)
-{
- SubEventsDirectoryPageSubEventDirectoryManager * self;
- gboolean result = FALSE;
- EventSource* event = NULL;
- EventSource* _tmp0_;
- struct tm event_time = {0};
- EventSource* _tmp1_;
- struct tm _tmp2_ = {0};
- struct tm _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 258 "/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 258 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 259 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (!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), source)) {
-#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = FALSE;
-#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 3054 "EventsDirectoryPage.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT_SOURCE, EventSource));
-#line 262 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- event = _tmp0_;
-#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp1_ = event;
-#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_time_local (event_source_get_start_time (_tmp1_), &_tmp2_);
-#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- event_time = _tmp2_;
-#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp3_ = event_time;
-#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp4_ = _tmp3_.tm_year;
-#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp5_ = self->priv->year;
-#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp4_ == _tmp5_) {
-#line 3074 "EventsDirectoryPage.c"
- SubEventsDirectoryPageDirectoryType _tmp6_;
-#line 265 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp6_ = self->priv->type;
-#line 265 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- if (_tmp6_ == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH) {
-#line 3080 "EventsDirectoryPage.c"
- struct tm _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp7_ = event_time;
-#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp8_ = _tmp7_.tm_mon;
-#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp9_ = self->priv->month;
-#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp8_ == _tmp9_;
-#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (event);
-#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 3096 "EventsDirectoryPage.c"
- }
-#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = TRUE;
-#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (event);
-#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 3104 "EventsDirectoryPage.c"
- }
-#line 270 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = FALSE;
-#line 270 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _g_object_unref0 (event);
-#line 270 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 3112 "EventsDirectoryPage.c"
-}
-
-
-static gint
-sub_events_directory_page_sub_event_directory_manager_get_month (SubEventsDirectoryPageSubEventDirectoryManager* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 273 "/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 274 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = self->priv->month;
-#line 274 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp0_;
-#line 274 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 3129 "EventsDirectoryPage.c"
-}
-
-
-static gint
-sub_events_directory_page_sub_event_directory_manager_get_year (SubEventsDirectoryPageSubEventDirectoryManager* self)
-{
- gint result = 0;
- gint _tmp0_;
-#line 277 "/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 278 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = self->priv->year;
-#line 278 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp0_;
-#line 278 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 3146 "EventsDirectoryPage.c"
-}
-
-
-static SubEventsDirectoryPageDirectoryType
-sub_events_directory_page_sub_event_directory_manager_get_event_directory_type (SubEventsDirectoryPageSubEventDirectoryManager* self)
-{
- SubEventsDirectoryPageDirectoryType result = 0;
- SubEventsDirectoryPageDirectoryType _tmp0_;
-#line 281 "/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 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- _tmp0_ = self->priv->type;
-#line 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- result = _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- return result;
-#line 3163 "EventsDirectoryPage.c"
-}
-
-
-static void
-sub_events_directory_page_sub_event_directory_manager_class_init (SubEventsDirectoryPageSubEventDirectoryManagerClass * klass)
-{
-#line 244 "/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 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((ViewManagerClass *) klass)->finalize = sub_events_directory_page_sub_event_directory_manager_finalize;
-#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- g_type_class_add_private (klass, sizeof (SubEventsDirectoryPageSubEventDirectoryManagerPrivate));
-#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) sub_events_directory_page_sub_event_directory_manager_real_include_in_view;
-#line 3178 "EventsDirectoryPage.c"
-}
-
-
-static void
-sub_events_directory_page_sub_event_directory_manager_instance_init (SubEventsDirectoryPageSubEventDirectoryManager * self)
-{
-#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self->priv = SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_GET_PRIVATE (self);
-#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self->priv->month = 0;
-#line 246 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- self->priv->year = 0;
-#line 3191 "EventsDirectoryPage.c"
-}
-
-
-static void
-sub_events_directory_page_sub_event_directory_manager_finalize (ViewManager * obj)
-{
- SubEventsDirectoryPageSubEventDirectoryManager * self;
-#line 244 "/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 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- VIEW_MANAGER_CLASS (sub_events_directory_page_sub_event_directory_manager_parent_class)->finalize (obj);
-#line 3203 "EventsDirectoryPage.c"
-}
-
-
-static GType
-sub_events_directory_page_sub_event_directory_manager_get_type (void)
-{
- static volatile gsize sub_events_directory_page_sub_event_directory_manager_type_id__volatile = 0;
- if (g_once_init_enter (&sub_events_directory_page_sub_event_directory_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SubEventsDirectoryPageSubEventDirectoryManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sub_events_directory_page_sub_event_directory_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SubEventsDirectoryPageSubEventDirectoryManager), 0, (GInstanceInitFunc) sub_events_directory_page_sub_event_directory_manager_instance_init, NULL };
- GType sub_events_directory_page_sub_event_directory_manager_type_id;
- sub_events_directory_page_sub_event_directory_manager_type_id = g_type_register_static (EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, "SubEventsDirectoryPageSubEventDirectoryManager", &g_define_type_info, 0);
- g_once_init_leave (&sub_events_directory_page_sub_event_directory_manager_type_id__volatile, sub_events_directory_page_sub_event_directory_manager_type_id);
- }
- return sub_events_directory_page_sub_event_directory_manager_type_id__volatile;
-}
-
-
-static void
-sub_events_directory_page_class_init (SubEventsDirectoryPageClass * klass)
-{
-#line 233 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala"
- sub_events_directory_page_parent_class = g_type_class_peek_parent (klass);
-#line 3226 "EventsDirectoryPage.c"
-}
-
-
-static void
-sub_events_directory_page_instance_init (SubEventsDirectoryPage * self)
-{
-}
-
-
-GType
-sub_events_directory_page_get_type (void)
-{
- static volatile gsize sub_events_directory_page_type_id__volatile = 0;
- if (g_once_init_enter (&sub_events_directory_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SubEventsDirectoryPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sub_events_directory_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SubEventsDirectoryPage), 0, (GInstanceInitFunc) sub_events_directory_page_instance_init, NULL };
- GType sub_events_directory_page_type_id;
- sub_events_directory_page_type_id = g_type_register_static (TYPE_EVENTS_DIRECTORY_PAGE, "SubEventsDirectoryPage", &g_define_type_info, 0);
- g_once_init_leave (&sub_events_directory_page_type_id__volatile, sub_events_directory_page_type_id);
- }
- return sub_events_directory_page_type_id__volatile;
-}
-
-
-
diff --git a/src/events/EventsDirectoryPage.vala b/src/events/EventsDirectoryPage.vala
index 241abfe..2384a2b 100644
--- a/src/events/EventsDirectoryPage.vala
+++ b/src/events/EventsDirectoryPage.vala
@@ -66,7 +66,7 @@ public abstract class EventsDirectoryPage : CheckerboardPage {
merge_button.set_action_name("win.Merge");
merge_button.is_important = true;
merge_button.set_tooltip_text (Resources.MERGE_TOOLTIP);
- merge_button.set_icon_name ("merge");
+ merge_button.set_icon_name ("events-merge-symbolic");
toolbar.insert(merge_button, -1);
}
diff --git a/src/faces/Face.vala b/src/faces/Face.vala
new file mode 100644
index 0000000..9be33c9
--- /dev/null
+++ b/src/faces/Face.vala
@@ -0,0 +1,681 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+public class FaceSourceCollection : ContainerSourceCollection {
+ private Gee.HashMap<string, Face> name_map = new Gee.HashMap<string, Face>
+ ((Gee.HashDataFunc)Face.hash_name_string, (Gee.EqualDataFunc)Face.equal_name_strings);
+ private Gee.HashMap<MediaSource, Gee.List<Face>> source_map =
+ new Gee.HashMap<MediaSource, Gee.List<Face>>();
+
+ public FaceSourceCollection() {
+ base (Face.TYPENAME, "FaceSourceCollection", get_face_key);
+
+ attach_collection(LibraryPhoto.global);
+ }
+
+ public override bool holds_type_of_source(DataSource source) {
+ return source is Face;
+ }
+
+ private static int64 get_face_key(DataSource source) {
+ return ((Face) source).get_instance_id();
+ }
+
+ protected override Gee.Collection<ContainerSource>? get_containers_holding_source(DataSource source) {
+ return fetch_for_source((MediaSource) source);
+ }
+
+ public override ContainerSource? convert_backlink_to_container(SourceBacklink backlink) {
+ FaceID face_id = FaceID(backlink.instance_id);
+
+ Face? face = fetch(face_id);
+ if (face != null)
+ return face;
+
+ foreach (ContainerSource container in get_holding_tank()) {
+ face = (Face) container;
+ if (face.get_face_id().id == face_id.id)
+ return face;
+ }
+
+ return null;
+ }
+
+ public Face? fetch(FaceID face_id) {
+ return (Face) fetch_by_key(face_id.id);
+ }
+
+ public bool exists(string name) {
+ return name_map.has_key(name);
+ }
+
+ public Gee.Collection<string> get_all_names() {
+ return name_map.keys;
+ }
+
+ // Returns a list of all Faces associated with the media source in no particular order.
+ //
+ // NOTE: As a search optimization, this returns the list that is maintained by Faces.global.
+ // Do NOT modify this list.
+ public Gee.List<Face>? fetch_for_source(MediaSource source) {
+ return source_map.get(source);
+ }
+
+ // Returns null if not Face with name exists.
+ public Face? fetch_by_name(string name) {
+ return name_map.get(name);
+ }
+
+ public Face? restore_face_from_holding_tank(string name) {
+ Face? found = null;
+ foreach (ContainerSource container in get_holding_tank()) {
+ Face face = (Face) container;
+ if (face.get_name() == name) {
+ found = face;
+
+ break;
+ }
+ }
+
+ if (found != null) {
+ bool relinked = relink_from_holding_tank(found);
+ assert(relinked);
+ }
+
+ return found;
+ }
+
+ protected override void notify_items_added(Gee.Iterable<DataObject> added) {
+ foreach (DataObject object in added) {
+ Face face = (Face) object;
+
+ assert(!name_map.has_key(face.get_name()));
+ name_map.set(face.get_name(), face);
+ }
+
+ base.notify_items_added(added);
+ }
+
+ protected override void notify_items_removed(Gee.Iterable<DataObject> removed) {
+ foreach (DataObject object in removed) {
+ Face face = (Face) object;
+
+ bool unset = name_map.unset(face.get_name());
+ assert(unset);
+ }
+
+ base.notify_items_removed(removed);
+ }
+
+ protected override void notify_items_altered(Gee.Map<DataObject, Alteration> map) {
+ foreach (DataObject object in map.keys) {
+ Face face = (Face) object;
+
+ string? old_name = null;
+
+ // look for this face being renamed
+ Gee.MapIterator<string, Face> iter = name_map.map_iterator();
+ while (iter.next()) {
+ if (!iter.get_value().equals(face))
+ continue;
+
+ old_name = iter.get_key();
+
+ break;
+ }
+
+ assert(old_name != null);
+
+ if (face.get_name() != old_name) {
+ name_map.unset(old_name);
+ name_map.set(face.get_name(), face);
+ }
+ }
+
+ base.notify_items_altered(map);
+ }
+
+ protected override void notify_container_contents_added(ContainerSource container,
+ Gee.Collection<DataObject> added, bool relinking) {
+ Face face = (Face) container;
+ Gee.Collection<MediaSource> sources = (Gee.Collection<MediaSource>) added;
+
+ foreach (MediaSource source in sources) {
+ Gee.List<Face>? faces = source_map.get(source);
+ if (faces == null) {
+ faces = new Gee.ArrayList<Face>();
+ source_map.set(source, faces);
+ }
+
+ bool is_added = faces.add(face);
+ assert(is_added);
+ }
+
+ base.notify_container_contents_added(container, added, relinking);
+ }
+
+ protected override void notify_container_contents_removed(ContainerSource container,
+ Gee.Collection<DataObject> removed, bool unlinking) {
+ Face face = (Face) container;
+ Gee.Collection<MediaSource> sources = (Gee.Collection<MediaSource>) removed;
+
+ foreach (MediaSource source in sources) {
+ Gee.List<Face>? faces = source_map.get(source);
+ assert(faces != null);
+
+ bool is_removed = faces.remove(face);
+ assert(is_removed);
+
+ if (faces.size == 0)
+ source_map.unset(source);
+ }
+
+ base.notify_container_contents_removed(container, removed, unlinking);
+ }
+}
+
+public class Face : DataSource, ContainerSource, Proxyable, Indexable {
+ public const string TYPENAME = "face";
+
+ private class FaceSnapshot : SourceSnapshot {
+ private FaceRow row;
+ private Gee.HashSet<MediaSource> sources = new Gee.HashSet<MediaSource>();
+
+ public FaceSnapshot(Face face) {
+ // stash current state of Face
+ row = face.row;
+
+ // stash photos attached to this face ... if any are destroyed, the face
+ // cannot be reconstituted
+ foreach (MediaSource source in face.get_sources())
+ sources.add(source);
+
+ LibraryPhoto.global.item_destroyed.connect(on_source_destroyed);
+ }
+
+ ~FaceSnapshot() {
+ LibraryPhoto.global.item_destroyed.disconnect(on_source_destroyed);
+ }
+
+ public FaceRow get_row() {
+ return row;
+ }
+
+ public override void notify_broken() {
+ row = new FaceRow();
+ sources.clear();
+
+ base.notify_broken();
+ }
+
+ private void on_source_destroyed(DataSource source) {
+ if (sources.contains((MediaSource) source))
+ notify_broken();
+ }
+ }
+
+ private class FaceProxy : SourceProxy {
+ public FaceProxy(Face face) {
+ base (face);
+ }
+
+ public override DataSource reconstitute(int64 object_id, SourceSnapshot snapshot) {
+ return Face.reconstitute(object_id, ((FaceSnapshot) snapshot).get_row());
+ }
+ }
+
+ public static FaceSourceCollection global = null;
+
+ private FaceRow row;
+ private ViewCollection media_views;
+ private string? name_collation_key = null;
+ private bool unlinking = false;
+ private bool relinking = false;
+ private string? indexable_keywords = null;
+
+ private Face(FaceRow row, int64 object_id = INVALID_OBJECT_ID) {
+ base (object_id);
+
+ this.row = row;
+
+ // normalize user text
+ this.row.name = prep_face_name(this.row.name);
+
+ Gee.Set<PhotoID?> photo_id_list = FaceLocation.get_photo_ids_by_face(this);
+ Gee.ArrayList<Photo> photo_list = new Gee.ArrayList<Photo>();
+ Gee.ArrayList<ThumbnailView> thumbnail_views = new Gee.ArrayList<ThumbnailView>();
+ if (photo_id_list != null) {
+ foreach (PhotoID photo_id in photo_id_list) {
+ MediaSource? current_source =
+ LibraryPhoto.global.fetch_by_source_id(PhotoID.upgrade_photo_id_to_source_id(photo_id));
+ if (current_source == null)
+ continue;
+
+ photo_list.add((Photo) current_source);
+ thumbnail_views.add(new ThumbnailView(current_source));
+ }
+ }
+
+ // add to internal ViewCollection, which maintains media sources associated with this face
+ media_views = new ViewCollection("ViewCollection for face %s".printf(row.face_id.id.to_string()));
+ media_views.add_many(thumbnail_views);
+
+ // need to do this manually here because only want to monitor photo_contents_altered
+ // after add_many() here; but need to keep the FaceSourceCollection apprised
+ if (photo_list.size > 0) {
+ global.notify_container_contents_added(this, photo_list, false);
+ global.notify_container_contents_altered(this, photo_list, false, null, false);
+ }
+
+ // monitor ViewCollection to (a) keep the in-memory list of source ids up-to-date, and
+ // (b) update the database whenever there's a change;
+ media_views.contents_altered.connect(on_media_views_contents_altered);
+
+ // monitor the global collections to trap when photos are destroyed, then
+ // automatically remove from the face
+ LibraryPhoto.global.items_destroyed.connect(on_sources_destroyed);
+
+ update_indexable_keywords();
+ }
+
+ ~Face() {
+ media_views.contents_altered.disconnect(on_media_views_contents_altered);
+ LibraryPhoto.global.items_destroyed.disconnect(on_sources_destroyed);
+ }
+
+ public static void init(ProgressMonitor? monitor) {
+ global = new FaceSourceCollection();
+
+ // scoop up all the rows at once
+ Gee.List<FaceRow?> rows = null;
+ try {
+ rows = FaceTable.get_instance().get_all_rows();
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ }
+
+ // turn them into Face objects
+ Gee.ArrayList<Face> faces = new Gee.ArrayList<Face>();
+ Gee.ArrayList<Face> unlinked = new Gee.ArrayList<Face>();
+ int count = rows.size;
+ for (int ctr = 0; ctr < count; ctr++) {
+ FaceRow row = rows.get(ctr);
+
+ // make sure the face name is valid
+ string? name = prep_face_name(row.name);
+ if (name == null) {
+ // TODO: More graceful handling of this situation would be to rename the face or
+ // alert the user.
+ warning("Invalid face name \"%s\": removing from database", row.name);
+ try {
+ FaceTable.get_instance().remove(row.face_id);
+ } catch (DatabaseError err) {
+ warning("Unable to delete face \"%s\": %s", row.name, err.message);
+ }
+
+ continue;
+ }
+
+ row.name = name;
+
+ Face face = new Face(row);
+ if (monitor != null)
+ monitor(ctr, count);
+
+ if (face.get_sources_count() != 0) {
+ faces.add(face);
+
+ continue;
+ }
+
+ if (face.has_links()) {
+ face.rehydrate_backlinks(global, null);
+ unlinked.add(face);
+
+ continue;
+ }
+
+ warning("Empty face %s found with no backlinks, destroying", face.to_string());
+ face.destroy_orphan(true);
+ }
+
+ // add them all at once to the SourceCollection
+ global.add_many(faces);
+ global.init_add_many_unlinked(unlinked);
+ }
+
+ public static void terminate() {
+ }
+
+ public static int compare_names(void *a, void *b) {
+ Face *aface = (Face *) a;
+ Face *bface = (Face *) b;
+
+ return String.precollated_compare(aface->get_name(), aface->get_name_collation_key(),
+ bface->get_name(), bface->get_name_collation_key());
+ }
+
+ public static uint hash_name_string(void *a) {
+ return String.collated_hash(a);
+ }
+
+ public static bool equal_name_strings(void *a, void *b) {
+ return String.collated_equals(a, b);
+ }
+
+ // Returns a Face for the name, creating a new empty one if it does not already exist.
+ // name should have already been prepared by prep_face_name.
+ public static Face for_name(string name) {
+ Face? face = global.fetch_by_name(name);
+ if (face == null)
+ face = global.restore_face_from_holding_tank(name);
+
+ if (face != null)
+ return face;
+
+ // create a new Face for this name
+ try {
+ face = new Face(FaceTable.get_instance().add(name));
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ }
+
+ global.add(face);
+
+ return face;
+ }
+
+ // Utility function to cleanup a face name that comes from user input and prepare it for use
+ // in the system and storage in the database. Returns null if the name is unacceptable.
+ public static string? prep_face_name(string name) {
+ return prepare_input_text(name, PrepareInputTextOptions.DEFAULT, DEFAULT_USER_TEXT_INPUT_LENGTH);
+ }
+
+ public override string get_typename() {
+ return TYPENAME;
+ }
+
+ public override int64 get_instance_id() {
+ return get_face_id().id;
+ }
+
+ public override string get_name() {
+ return row.name;
+ }
+
+ public string get_name_collation_key() {
+ if (name_collation_key == null)
+ name_collation_key = row.name.collate_key();
+
+ return name_collation_key;
+ }
+
+ public override string to_string() {
+ return "Face %s (%d sources)".printf(row.name, media_views.get_count());
+ }
+
+ public override bool equals(DataSource? source) {
+ // Validate uniqueness of primary key
+ Face? face = source as Face;
+ if (face != null) {
+ if (face != this) {
+ assert(face.row.face_id.id != row.face_id.id);
+ }
+ }
+
+ return base.equals(source);
+ }
+
+ public FaceID get_face_id() {
+ return row.face_id;
+ }
+
+ public override SourceSnapshot? save_snapshot() {
+ return new FaceSnapshot(this);
+ }
+
+ public SourceProxy get_proxy() {
+ return new FaceProxy(this);
+ }
+
+ private static Face reconstitute(int64 object_id, FaceRow row) {
+ // fill in the row with the new FaceID for this reconstituted face
+ try {
+ row.face_id = FaceTable.get_instance().create_from_row(row);
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ }
+
+ Face face = new Face(row, object_id);
+ global.add(face);
+
+ debug("Reconstituted %s", face.to_string());
+
+ return face;
+ }
+
+ public bool has_links() {
+ return LibraryPhoto.global.has_backlink(get_backlink());
+ }
+
+ public SourceBacklink get_backlink() {
+ return new SourceBacklink.from_source(this);
+ }
+
+ public void break_link(DataSource source) {
+ unlinking = true;
+
+ detach((LibraryPhoto) source);
+
+ unlinking = false;
+ }
+
+ public void break_link_many(Gee.Collection<DataSource> sources) {
+ unlinking = true;
+
+ detach_many((Gee.Collection<LibraryPhoto>) sources);
+
+ unlinking = false;
+ }
+
+ public void establish_link(DataSource source) {
+ relinking = true;
+
+ attach((LibraryPhoto) source);
+
+ relinking = false;
+ }
+
+ public void establish_link_many(Gee.Collection<DataSource> sources) {
+ relinking = true;
+
+ attach_many((Gee.Collection<LibraryPhoto>) sources);
+
+ relinking = false;
+ }
+
+ private void update_indexable_keywords() {
+ indexable_keywords = prepare_indexable_string(get_name());
+ }
+
+ public unowned string? get_indexable_keywords() {
+ return indexable_keywords;
+ }
+
+ public void attach(MediaSource source) {
+ if (!media_views.has_view_for_source(source))
+ media_views.add(new ThumbnailView(source));
+ }
+
+ public void attach_many(Gee.Collection<MediaSource> sources) {
+ Gee.ArrayList<ThumbnailView> view_list = new Gee.ArrayList<ThumbnailView>();
+ foreach (MediaSource source in sources) {
+ if (!media_views.has_view_for_source(source))
+ view_list.add(new ThumbnailView(source));
+ }
+
+ if (view_list.size > 0)
+ media_views.add_many(view_list);
+ }
+
+ public bool detach(MediaSource source) {
+ DataView? view = media_views.get_view_for_source(source);
+ if (view == null)
+ return false;
+
+ media_views.remove_marked(media_views.mark(view));
+
+ return true;
+ }
+
+ public int detach_many(Gee.Collection<MediaSource> sources) {
+ int count = 0;
+
+ Marker marker = media_views.start_marking();
+ foreach (MediaSource source in sources) {
+ DataView? view = media_views.get_view_for_source(source);
+ if (view == null)
+ continue;
+
+ marker.mark(view);
+ count++;
+ }
+
+ media_views.remove_marked(marker);
+
+ return count;
+ }
+
+ // Returns false if the name already exists or a bad name.
+ public bool rename(string name) {
+ string? new_name = prep_face_name(name);
+ if (new_name == null)
+ return false;
+
+ if (Face.global.exists(new_name))
+ return false;
+
+ try {
+ FaceTable.get_instance().rename(row.face_id, new_name);
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ return false;
+ }
+
+ row.name = new_name;
+ name_collation_key = null;
+
+ update_indexable_keywords();
+
+ notify_altered(new Alteration.from_list("metadata:name, indexable:keywords"));
+
+ return true;
+ }
+
+ public bool contains(MediaSource source) {
+ return media_views.has_view_for_source(source);
+ }
+
+ public int get_sources_count() {
+ return media_views.get_count();
+ }
+
+ public Gee.Collection<MediaSource> get_sources() {
+ return (Gee.Collection<MediaSource>) media_views.get_sources();
+ }
+
+ public void mirror_sources(ViewCollection view, CreateView mirroring_ctor) {
+ view.mirror(media_views, mirroring_ctor, null);
+ }
+
+ private void on_media_views_contents_altered(Gee.Iterable<DataView>? added,
+ Gee.Iterable<DataView>? removed) {
+ Gee.Set<PhotoID?>? photo_id_list = FaceLocation.get_photo_ids_by_face(this);
+
+ Gee.Collection<Photo> added_photos = null;
+ if (added != null) {
+ added_photos = new Gee.ArrayList<Photo>();
+ foreach (DataView view in added) {
+ Photo photo = (Photo) view.get_source();
+
+ if (photo_id_list != null)
+ assert(!photo_id_list.contains(photo.get_photo_id()));
+
+ bool is_added = added_photos.add(photo);
+ assert(is_added);
+ }
+ }
+
+ Gee.Collection<Photo> removed_photos = null;
+ if (removed != null) {
+ assert(photo_id_list != null);
+
+ removed_photos = new Gee.ArrayList<Photo>();
+ foreach (DataView view in removed) {
+ Photo photo = (Photo) view.get_source();
+
+ assert(photo_id_list.contains(photo.get_photo_id()));
+
+ bool is_added = removed_photos.add(photo);
+ assert(is_added);
+ }
+ }
+
+ if (removed_photos != null)
+ foreach (Photo photo in removed_photos)
+ FaceLocation.destroy(get_face_id(), photo.get_photo_id());
+
+ // notify of changes to this face
+ if (added_photos != null)
+ global.notify_container_contents_added(this, added_photos, relinking);
+
+ if (removed_photos != null)
+ global.notify_container_contents_removed(this, removed_photos, unlinking);
+
+ if (added_photos != null || removed_photos != null) {
+ global.notify_container_contents_altered(this, added_photos, relinking, removed_photos,
+ unlinking);
+ }
+
+ // if no more sources, face evaporates; do not touch "this" afterwards
+ if (media_views.get_count() == 0)
+ global.evaporate(this);
+ }
+
+ private void on_sources_destroyed(Gee.Collection<DataSource> sources) {
+ detach_many((Gee.Collection<MediaSource>) sources);
+ }
+
+ public override void destroy() {
+ // detach all remaining sources from the face, so observers are informed ... need to detach
+ // the contents_altered handler because it will destroy this object when sources is empty,
+ // which is bad reentrancy mojo (but hook it back up for the dtor's sake)
+ if (media_views.get_count() > 0) {
+ media_views.contents_altered.disconnect(on_media_views_contents_altered);
+
+ Gee.ArrayList<MediaSource> removed = new Gee.ArrayList<MediaSource>();
+ removed.add_all((Gee.Collection<MediaSource>) media_views.get_sources());
+
+ media_views.clear();
+
+ global.notify_container_contents_removed(this, removed, false);
+ global.notify_container_contents_altered(this, null, false, removed, false);
+
+ media_views.contents_altered.connect(on_media_views_contents_altered);
+ }
+
+ try {
+ FaceTable.get_instance().remove(row.face_id);
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ }
+
+ base.destroy();
+ }
+}
+
+#endif
diff --git a/src/faces/FaceLocation.vala b/src/faces/FaceLocation.vala
new file mode 100644
index 0000000..cc5c4cf
--- /dev/null
+++ b/src/faces/FaceLocation.vala
@@ -0,0 +1,209 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+
+public class FaceLocation : Object {
+
+ private static Gee.Map<FaceID?, Gee.Map<PhotoID?, FaceLocation>> face_photos_map;
+ private static Gee.Map<PhotoID?, Gee.Map<FaceID?, FaceLocation>> photo_faces_map;
+
+ private FaceLocationID face_location_id;
+ private FaceID face_id;
+ private PhotoID photo_id;
+ private string geometry;
+
+ private FaceLocation(FaceLocationID face_location_id, FaceID face_id, PhotoID photo_id,
+ string geometry) {
+ this.face_location_id = face_location_id;
+ this.face_id = face_id;
+ this.photo_id = photo_id;
+ this.geometry = geometry;
+ }
+
+ public static FaceLocation create(FaceID face_id, PhotoID photo_id, string geometry) {
+ FaceLocation face_location = null;
+
+ // Test if that FaceLocation already exists (that face in that photo) ...
+ Gee.Map<PhotoID?, FaceLocation> photos_map = face_photos_map.get(face_id);
+ Gee.Map<FaceID?, FaceLocation> faces_map = photo_faces_map.get(photo_id);
+
+ if (photos_map != null && faces_map != null && faces_map.has_key(face_id)) {
+
+ face_location = faces_map.get(face_id);
+
+ if (face_location.get_serialized_geometry() != geometry) {
+ face_location.set_serialized_geometry(geometry);
+
+ try {
+ FaceLocationTable.get_instance().update_face_location_serialized_geometry(
+ face_location);
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ }
+ }
+
+ return face_location;
+ }
+
+ // ... or create a new FaceLocation.
+ try {
+ face_location =
+ FaceLocation.add_from_row(
+ FaceLocationTable.get_instance().add(face_id, photo_id, geometry));
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ }
+
+ return face_location;
+ }
+
+ public static void destroy(FaceID face_id, PhotoID photo_id) {
+ Gee.Map<PhotoID?, FaceLocation> photos_map = face_photos_map.get(face_id);
+ Gee.Map<FaceID?, FaceLocation> faces_map = photo_faces_map.get(photo_id);
+
+ assert(photos_map != null);
+ assert(faces_map != null);
+
+ faces_map.unset(face_id);
+ if (faces_map.size == 0)
+ photo_faces_map.unset(photo_id);
+
+ photos_map.unset(photo_id);
+ if (photos_map.size == 0)
+ face_photos_map.unset(face_id);
+
+ try {
+ FaceLocationTable.get_instance().remove_face_from_source(face_id, photo_id);
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ }
+ }
+
+ public static FaceLocation add_from_row(FaceLocationRow row) {
+
+ FaceLocation face_location =
+ new FaceLocation(row.face_location_id, row.face_id, row.photo_id, row.geometry);
+
+ Gee.Map<PhotoID?, FaceLocation> photos_map = face_photos_map.get(row.face_id);
+ if (photos_map == null) {photos_map = new Gee.HashMap<PhotoID?, FaceLocation>
+ ((Gee.HashDataFunc)FaceLocation.photo_id_hash, (Gee.EqualDataFunc)FaceLocation.photo_ids_equal);
+ face_photos_map.set(row.face_id, photos_map);
+ }
+ photos_map.set(row.photo_id, face_location);
+
+ Gee.Map<FaceID?, FaceLocation> faces_map = photo_faces_map.get(row.photo_id);
+ if (faces_map == null) {faces_map = new Gee.HashMap<FaceID?, FaceLocation>
+ ((Gee.HashDataFunc)FaceLocation.face_id_hash, (Gee.EqualDataFunc)FaceLocation.face_ids_equal);
+
+ photo_faces_map.set(row.photo_id, faces_map);
+ }
+ faces_map.set(row.face_id, face_location);
+
+ return face_location;
+ }
+
+ public static Gee.Map<FaceID?, FaceLocation>? get_locations_by_photo(Photo photo) {
+ return photo_faces_map.get(photo.get_photo_id());
+ }
+
+ public static Gee.Map<PhotoID?, FaceLocation>? get_locations_by_face(Face face) {
+ return face_photos_map.get(face.get_face_id());
+ }
+
+ public static Gee.Set<PhotoID?>? get_photo_ids_by_face(Face face) {
+ Gee.Map<PhotoID?, FaceLocation>? photos_map = face_photos_map.get(face.get_face_id());
+ if (photos_map == null)
+ return null;
+
+ return photos_map.keys;
+ }
+
+ public static FaceLocation? get_face_location(FaceID face_id, PhotoID photo_id) {
+ Gee.Map<FaceID?, FaceLocation>? faces_map = photo_faces_map.get(photo_id);
+ if (faces_map == null)
+ return null;
+
+ return faces_map.get(face_id);
+ }
+
+ public static bool photo_ids_equal(void *a, void *b) {
+ PhotoID *aid = (PhotoID *) a;
+ PhotoID *bid = (PhotoID *) b;
+
+ return aid->id == bid->id;
+ }
+
+ public static bool face_ids_equal(void *a, void *b) {
+ FaceID *aid = (FaceID *) a;
+ FaceID *bid = (FaceID *) b;
+
+ return aid->id == bid->id;
+ }
+
+ public static uint photo_id_hash(void *p) {
+ // Rotating XOR hash
+ uint8 u8 = (uint8) ((PhotoID *) p)->id;
+ uint hash = 0;
+ for (int ctr = 0; ctr < (sizeof(int64) / sizeof(uint8)); ctr++) {
+ hash = (hash << 4) ^ (hash >> 28) ^ (u8++);
+ }
+
+ return hash;
+ }
+
+ public static uint face_id_hash(void *p) {
+ // Rotating XOR hash
+ uint8 u8 = (uint8) ((FaceID *) p)->id;
+ uint hash = 0;
+ for (int ctr = 0; ctr < (sizeof(int64) / sizeof(uint8)); ctr++) {
+ hash = (hash << 4) ^ (hash >> 28) ^ (u8++);
+ }
+
+ return hash;
+ }
+
+ public static void init(ProgressMonitor? monitor) {
+ face_photos_map = new Gee.HashMap<FaceID?, Gee.HashMap<PhotoID?, FaceLocation>>
+ ((Gee.HashDataFunc)face_id_hash, (Gee.EqualDataFunc)face_ids_equal);
+ photo_faces_map = new Gee.HashMap<PhotoID?, Gee.HashMap<FaceID?, FaceLocation>>
+ ((Gee.HashDataFunc)photo_id_hash, (Gee.EqualDataFunc)photo_ids_equal);
+
+ // scoop up all the rows at once
+ Gee.List<FaceLocationRow?> rows = null;
+ try {
+ rows = FaceLocationTable.get_instance().get_all_rows();
+ } catch (DatabaseError err) {
+ AppWindow.database_error(err);
+ }
+
+ // turn them into FaceLocation objects
+ int count = rows.size;
+ for (int ctr = 0; ctr < count; ctr++) {
+ FaceLocation.add_from_row(rows.get(ctr));
+
+ if (monitor != null)
+ monitor(ctr, count);
+ }
+ }
+
+ public static void terminate() {
+ }
+
+ public FaceLocationID get_face_location_id() {
+ return face_location_id;
+ }
+
+ public string get_serialized_geometry() {
+ return geometry;
+ }
+
+ private void set_serialized_geometry(string geometry) {
+ this.geometry = geometry;
+ }
+}
+
+#endif
diff --git a/src/faces/FacePage.vala b/src/faces/FacePage.vala
new file mode 100644
index 0000000..41d1cef
--- /dev/null
+++ b/src/faces/FacePage.vala
@@ -0,0 +1,127 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+
+public class FacePage : CollectionPage {
+ private Face face;
+
+ public FacePage(Face face) {
+ base (face.get_name());
+
+ this.face = face;
+
+ Face.global.items_altered.connect(on_faces_altered);
+ face.mirror_sources(get_view(), create_thumbnail);
+
+ init_page_context_menu("FacesContextMenu");
+ }
+
+ ~FacePage() {
+ get_view().halt_mirroring();
+ Face.global.items_altered.disconnect(on_faces_altered);
+ }
+
+ protected override void init_collect_ui_filenames(Gee.List<string> ui_filenames) {
+ base.init_collect_ui_filenames(ui_filenames);
+ ui_filenames.add("faces.ui");
+ }
+
+ public Face get_face() {
+ return face;
+ }
+
+ protected override void get_config_photos_sort(out bool sort_order, out int sort_by) {
+ Config.Facade.get_instance().get_event_photos_sort(out sort_order, out sort_by);
+ }
+
+ protected override void set_config_photos_sort(bool sort_order, int sort_by) {
+ Config.Facade.get_instance().set_event_photos_sort(sort_order, sort_by);
+ }
+
+ private const GLib.ActionEntry[] entries = {
+ { "DeleteFace", on_delete_face },
+ { "RenameFace", on_rename_face },
+ { "RemoveFaceFromPhotos", on_remove_face_from_photos },
+ { "DeleteFaceSidebar", on_delete_face },
+ { "RenameFaceSidebar", on_rename_face }
+ };
+
+ protected override void init_actions(int selected_count, int count) {
+ base.init_actions(selected_count, count);
+
+ set_action_sensitive("DeleteFace", true);
+ set_action_sensitive("RenameFace", true);
+ set_action_sensitive("RemoveFaceFromPhotos", true);
+ }
+
+
+ protected override void add_actions (GLib.ActionMap map) {
+ base.add_actions (map);
+
+ map.add_action_entries (entries, this);
+ }
+
+ protected override InjectionGroup[] init_collect_injection_groups() {
+ InjectionGroup[] groups = base.init_collect_injection_groups();
+ groups += create_faces_menu_injectables();
+ return groups;
+ }
+
+ private InjectionGroup create_faces_menu_injectables(){
+ InjectionGroup menuFaces = new InjectionGroup("FacesMenuPlaceholder");
+
+ menuFaces.add_menu_item(Resources.remove_face_from_photos_menu(this.face.get_name(), get_view().get_count()), "RemoveFaceFromPhotos", "<Primary>r");
+ menuFaces.add_menu_item(Resources.rename_face_menu(this.face.get_name()), "RenameFace", "<Primary>e");
+ menuFaces.add_menu_item(Resources.delete_face_menu(this.face.get_name()), "DeleteFace", "<Primary>t");
+
+ return menuFaces;
+ }
+
+ private void on_faces_altered(Gee.Map<DataObject, Alteration> map) {
+ if (map.has_key(face)) {
+ set_page_name(face.get_name());
+ update_actions(get_view().get_selected_count(), get_view().get_count());
+ }
+ }
+
+ protected override void update_actions(int selected_count, int count) {
+ set_action_details("DeleteFace",
+ Resources.delete_face_menu(face.get_name()),
+ null,
+ true);
+
+ set_action_details("RenameFace",
+ Resources.rename_face_menu(face.get_name()),
+ null,
+ true);
+
+ set_action_details("RemoveFaceFromPhotos",
+ Resources.remove_face_from_photos_menu(face.get_name(), get_view().get_count()),
+ null,
+ selected_count > 0);
+
+ base.update_actions(selected_count, count);
+ }
+
+ private void on_rename_face() {
+ LibraryWindow.get_app().rename_face_in_sidebar(face);
+ }
+
+ private void on_delete_face() {
+ if (Dialogs.confirm_delete_face(face))
+ AppWindow.get_command_manager().execute(new DeleteFaceCommand(face));
+ }
+
+ private void on_remove_face_from_photos() {
+ if (get_view().get_selected_count() > 0) {
+ get_command_manager().execute(new RemoveFacesFromPhotosCommand(face,
+ (Gee.Collection<MediaSource>) get_view().get_selected_sources()));
+ }
+ }
+}
+
+#endif
diff --git a/src/faces/FaceShape.vala b/src/faces/FaceShape.vala
new file mode 100644
index 0000000..c14b43b
--- /dev/null
+++ b/src/faces/FaceShape.vala
@@ -0,0 +1,783 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+
+public abstract class FaceShape : Object {
+ public const string SHAPE_TYPE = null;
+
+ protected const int FACE_WINDOW_MARGIN = 5;
+ protected const int LABEL_MARGIN = 12;
+ protected const int LABEL_PADDING = 9;
+
+ public signal void add_me_requested(FaceShape face_shape);
+ public signal void delete_me_requested();
+
+ protected FacesTool.EditingFaceToolWindow face_window;
+ protected Gdk.CursorType current_cursor_type = Gdk.CursorType.BOTTOM_RIGHT_CORNER;
+ protected EditingTools.PhotoCanvas canvas;
+ protected string serialized = null;
+
+ private bool editable = true;
+ private bool visible = true;
+ private bool known = true;
+
+ private weak FacesTool.FaceWidget face_widget = null;
+
+ public FaceShape(EditingTools.PhotoCanvas canvas) {
+ this.canvas = canvas;
+ this.canvas.new_surface.connect(prepare_ctx);
+
+ prepare_ctx(this.canvas.get_default_ctx(), this.canvas.get_surface_dim());
+
+ face_window = new FacesTool.EditingFaceToolWindow(this.canvas.get_container());
+ face_window.key_pressed.connect(key_press_event);
+
+ face_window.show_all();
+ face_window.hide();
+
+ this.canvas.get_drawing_window().set_cursor(new Gdk.Cursor(current_cursor_type));
+ }
+
+ ~FaceShape() {
+ if (visible)
+ erase();
+
+ face_window.destroy();
+
+ canvas.new_surface.disconnect(prepare_ctx);
+
+ // make sure the cursor isn't set to a modify indicator
+ canvas.get_drawing_window().set_cursor(new Gdk.Cursor(Gdk.CursorType.LEFT_PTR));
+ }
+
+ public static FaceShape from_serialized(EditingTools.PhotoCanvas canvas, string serialized)
+ throws FaceShapeError {
+ FaceShape face_shape;
+
+ string[] args = serialized.split(";");
+ switch (args[0]) {
+ case "Rectangle":
+ face_shape = FaceRectangle.from_serialized(canvas, args);
+
+ break;
+ default:
+ assert_not_reached();
+ }
+
+ face_shape.serialized = serialized;
+
+ return face_shape;
+ }
+
+ public void set_name(string face_name) {
+ face_window.entry.set_text(face_name);
+ }
+
+ public string? get_name() {
+ string face_name = face_window.entry.get_text();
+
+ return face_name == "" ? null : face_name;
+ }
+
+ public void set_known(bool known) {
+ this.known = known;
+ }
+
+ public bool get_known() {
+ return known;
+ }
+
+ public void set_widget(FacesTool.FaceWidget face_widget) {
+ this.face_widget = face_widget;
+ }
+
+ public FacesTool.FaceWidget get_widget() {
+ assert(face_widget != null);
+
+ return face_widget;
+ }
+
+ public void hide() {
+ visible = false;
+ erase();
+
+ if (editable)
+ face_window.hide();
+
+ // make sure the cursor isn't set to a modify indicator
+ canvas.get_drawing_window().set_cursor(new Gdk.Cursor(Gdk.CursorType.LEFT_PTR));
+ }
+
+ public void show() {
+ visible = true;
+ paint();
+
+ if (editable) {
+ update_face_window_position();
+ face_window.show();
+ face_window.present();
+
+ if (!known)
+ face_window.entry.select_region(0, -1);
+ }
+ }
+
+ public bool is_visible() {
+ return visible;
+ }
+
+ public bool is_editable() {
+ return editable;
+ }
+
+ public void set_editable(bool editable) {
+ if (visible && editable != is_editable()) {
+ hide();
+ this.editable = editable;
+ show();
+
+ return;
+ }
+
+ this.editable = editable;
+ }
+
+ public bool key_press_event(Gdk.EventKey event) {
+ switch (Gdk.keyval_name(event.keyval)) {
+ case "Escape":
+ delete_me_requested();
+ break;
+ case "Return":
+ case "KP_Enter":
+ add_me_requested(this);
+ break;
+ default:
+ return false;
+ }
+
+ return true;
+ }
+
+ public abstract string serialize();
+ public abstract void update_face_window_position();
+ public abstract void prepare_ctx(Cairo.Context ctx, Dimensions dim);
+ public abstract void on_resized_pixbuf(Dimensions old_dim, Gdk.Pixbuf scaled);
+ public abstract void on_motion(int x, int y, Gdk.ModifierType mask);
+ public abstract void on_left_released(int x, int y);
+ public abstract bool on_left_click(int x, int y);
+ public abstract bool cursor_is_over(int x, int y);
+ public abstract bool equals(FaceShape face_shape);
+ public abstract double get_distance(int x, int y);
+
+ protected abstract void paint();
+ protected abstract void erase();
+}
+
+public class FaceRectangle : FaceShape {
+ public new const string SHAPE_TYPE = "Rectangle";
+
+ private const int FACE_MIN_SIZE = 8;
+ public const int NULL_SIZE = 0;
+
+ private Box box;
+ private Box? label_box;
+ private BoxLocation in_manipulation = BoxLocation.OUTSIDE;
+ private Cairo.Context wide_black_ctx = null;
+ private Cairo.Context wide_white_ctx = null;
+ private Cairo.Context thin_white_ctx = null;
+ private int last_grab_x = -1;
+ private int last_grab_y = -1;
+
+ public FaceRectangle(EditingTools.PhotoCanvas canvas, int x, int y,
+ int half_width = NULL_SIZE, int half_height = NULL_SIZE) {
+ base(canvas);
+
+ Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position();
+ x -= scaled_pixbuf_pos.x;
+ y -= scaled_pixbuf_pos.y;
+
+ // If half_width is NULL_SIZE we are creating a new FaceShape,
+ // otherwise we are only showing a previously created one.
+ if (half_width == NULL_SIZE) {
+ box = Box(x, y, x, y);
+
+ in_manipulation = BoxLocation.BOTTOM_RIGHT;
+ last_grab_x = x;
+ last_grab_y = y;
+ } else {
+ Dimensions pixbuf_dimensions = Dimensions.for_pixbuf(canvas.get_scaled_pixbuf());
+ int right = (x + half_width).clamp(x, pixbuf_dimensions.width);
+ int bottom = (y + half_height).clamp(y, pixbuf_dimensions.height);
+
+ box = Box(x - half_width, y - half_height, right, bottom);
+ }
+ }
+
+ ~FaceRectangle() {
+ if (!is_editable())
+ erase_label();
+ }
+
+ public static new FaceRectangle from_serialized(EditingTools.PhotoCanvas canvas, string[] args)
+ throws FaceShapeError {
+ assert(args[0] == SHAPE_TYPE);
+
+ Photo photo = canvas.get_photo();
+ Dimensions raw_dim = photo.get_raw_dimensions();
+
+ int x = (int) (raw_dim.width * double.parse(args[1]));
+ int y = (int) (raw_dim.height * double.parse(args[2]));
+ int half_width = (int) (raw_dim.width * double.parse(args[3]));
+ int half_height = (int) (raw_dim.height * double.parse(args[4]));
+
+ Box box = Box(x - half_width, y - half_height, x + half_width, y + half_height);
+
+ Dimensions current_dim = Dimensions.for_pixbuf(canvas.get_scaled_pixbuf());
+ Box raw_cropped;
+
+ if (photo.get_raw_crop(out raw_cropped)) {
+ box.left = box.left.clamp(raw_cropped.left, box.left) - raw_cropped.left;
+ box.right = box.right.clamp(box.right, raw_cropped.right) - raw_cropped.left;
+ box.top = box.top.clamp(raw_cropped.top, box.top) - raw_cropped.top;
+ box.bottom = box.bottom.clamp(box.bottom, raw_cropped.bottom) - raw_cropped.top;
+
+ box = photo.get_orientation().rotate_box(raw_cropped.get_dimensions(), box);
+
+ Box cropped;
+ photo.get_crop(out cropped);
+ box = box.get_scaled_similar(cropped.get_dimensions(), current_dim);
+ } else {
+ box = photo.get_orientation().rotate_box(raw_dim, box);
+
+ box = box.get_scaled_similar(photo.get_dimensions(), current_dim);
+ }
+
+ Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position();
+ box.left += scaled_pixbuf_pos.x;
+ box.right += scaled_pixbuf_pos.x;
+ box.top += scaled_pixbuf_pos.y;
+ box.bottom += scaled_pixbuf_pos.y;
+
+ half_width = box.get_width() / 2;
+ half_height = box.get_height() / 2;
+
+ if (half_width < FACE_MIN_SIZE || half_height < FACE_MIN_SIZE)
+ throw new FaceShapeError.CANT_CREATE("FaceShape is out of cropped photo area");
+
+ return new FaceRectangle(canvas, box.left + half_width, box.top + half_height,
+ half_width, half_height);
+ }
+
+ public override void update_face_window_position() {
+ AppWindow appWindow = AppWindow.get_instance();
+ Gtk.Allocation face_window_alloc;
+ Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position();
+ int x = 0;
+ int y = 0;
+
+ if (canvas.get_container() == appWindow) {
+ appWindow.get_current_page().get_window().get_origin(out x, out y);
+ } else assert(canvas.get_container() is FullscreenWindow);
+
+ face_window.get_allocation(out face_window_alloc);
+
+ x += scaled_pixbuf_pos.x + box.left + ((box.get_width() - face_window_alloc.width) >> 1);
+ y += scaled_pixbuf_pos.y + box.bottom + FACE_WINDOW_MARGIN;
+
+ face_window.move(x, y);
+ }
+
+ protected override void paint() {
+ canvas.draw_box(wide_black_ctx, box);
+ canvas.draw_box(wide_white_ctx, box.get_reduced(1));
+ canvas.draw_box(wide_white_ctx, box.get_reduced(2));
+
+ canvas.invalidate_area(box);
+
+ if (!is_editable())
+ paint_label();
+ }
+
+ protected override void erase() {
+ canvas.erase_box(box);
+ canvas.erase_box(box.get_reduced(1));
+ canvas.erase_box(box.get_reduced(2));
+
+ canvas.invalidate_area(box);
+
+ if (!is_editable())
+ erase_label();
+ }
+
+ private void paint_label() {
+ Cairo.Context ctx = canvas.get_default_ctx();
+ Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position();
+
+ ctx.save();
+
+ Cairo.TextExtents text_extents = Cairo.TextExtents();
+ ctx.text_extents(get_name(), out text_extents);
+
+ int width = (int) text_extents.width + LABEL_PADDING;
+ int height = (int) text_extents.height;
+ int x = box.left + (box.get_width() - width) / 2;
+ int y = box.bottom + LABEL_MARGIN;
+
+ label_box = Box(x, y, x + width, y + height + LABEL_PADDING);
+
+ x += scaled_pixbuf_pos.x;
+ y += scaled_pixbuf_pos.y;
+
+ ctx.rectangle(x, y, width, height + LABEL_PADDING);
+ ctx.set_source_rgba(0, 0, 0, 0.6);
+ ctx.fill();
+
+ ctx.set_source_rgb(1, 1, 1);
+ ctx.move_to(x + LABEL_PADDING / 2, y + height + LABEL_PADDING / 2);
+ ctx.show_text(get_name());
+
+ ctx.restore();
+ }
+
+ private void erase_label() {
+ if (label_box == null)
+ return;
+
+ Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position();
+ int x = scaled_pixbuf_pos.x + label_box.left;
+ int y = scaled_pixbuf_pos.y + label_box.top;
+
+ Cairo.Context ctx = canvas.get_default_ctx();
+ ctx.save();
+
+ ctx.set_operator(Cairo.Operator.OVER);
+ ctx.rectangle(x, y, label_box.get_width(), label_box.get_height());
+
+ ctx.set_source_rgb(0.0, 0.0, 0.0);
+ ctx.fill_preserve();
+
+ ctx.set_source_surface(canvas.get_scaled_surface(),
+ scaled_pixbuf_pos.x, scaled_pixbuf_pos.y);
+ ctx.fill();
+
+ canvas.invalidate_area(label_box);
+ label_box = null;
+
+ ctx.restore();
+ }
+
+ public override string serialize() {
+ if (serialized != null)
+ return serialized;
+
+ double x;
+ double y;
+ double half_width;
+ double half_height;
+
+ get_geometry(out x, out y, out half_width, out half_height);
+
+ serialized = "%s;%s;%s;%s;%s".printf(SHAPE_TYPE, x.to_string(),
+ y.to_string(), half_width.to_string(), half_height.to_string());
+
+ return serialized;
+ }
+
+ public void get_geometry(out double x, out double y,
+ out double half_width, out double half_height) {
+ Photo photo = canvas.get_photo();
+ Dimensions raw_dim = photo.get_raw_dimensions();
+
+ Box temp_box = box;
+
+ Dimensions current_dim = Dimensions.for_pixbuf(canvas.get_scaled_pixbuf());
+ Box cropped;
+
+ if (photo.get_crop(out cropped)) {
+ temp_box = temp_box.get_scaled_similar(current_dim, cropped.get_dimensions());
+
+ Box raw_cropped;
+ photo.get_raw_crop(out raw_cropped);
+
+ temp_box =
+ photo.get_orientation().derotate_box(raw_cropped.get_dimensions(), temp_box);
+
+ temp_box.left += raw_cropped.left;
+ temp_box.right += raw_cropped.left;
+ temp_box.top += raw_cropped.top;
+ temp_box.bottom += raw_cropped.top;
+ } else {
+ temp_box = temp_box.get_scaled_similar(current_dim, photo.get_dimensions());
+
+ temp_box = photo.get_orientation().derotate_box(raw_dim, temp_box);
+ }
+
+ x = (temp_box.left + (temp_box.get_width() / 2)) / (double) raw_dim.width;
+ y = (temp_box.top + (temp_box.get_height() / 2)) / (double) raw_dim.height;
+
+ double width_left_end = temp_box.left / (double) raw_dim.width;
+ double width_right_end = temp_box.right / (double) raw_dim.width;
+ double height_top_end = temp_box.top / (double) raw_dim.height;
+ double height_bottom_end = temp_box.bottom / (double) raw_dim.height;
+
+ half_width = (width_right_end - width_left_end) / 2;
+ half_height = (height_bottom_end - height_top_end) / 2;
+ }
+
+ public override bool equals(FaceShape face_shape) {
+ return serialize() == face_shape.serialize();
+ }
+
+ public override void prepare_ctx(Cairo.Context ctx, Dimensions dim) {
+ wide_black_ctx = new Cairo.Context(ctx.get_target());
+ set_source_color_from_string(wide_black_ctx, "#000");
+ wide_black_ctx.set_line_width(1);
+
+ wide_white_ctx = new Cairo.Context(ctx.get_target());
+ set_source_color_from_string(wide_black_ctx, "#FFF");
+ wide_white_ctx.set_line_width(1);
+
+ thin_white_ctx = new Cairo.Context(ctx.get_target());
+ set_source_color_from_string(wide_black_ctx, "#FFF");
+ thin_white_ctx.set_line_width(0.5);
+ }
+
+ private bool on_canvas_manipulation(int x, int y) {
+ Gdk.Rectangle scaled_pos = canvas.get_scaled_pixbuf_position();
+
+ // box is maintained in coordinates non-relative to photo's position on canvas ...
+ // but bound tool to photo itself
+ x -= scaled_pos.x;
+ if (x < 0)
+ x = 0;
+ else if (x >= scaled_pos.width)
+ x = scaled_pos.width - 1;
+
+ y -= scaled_pos.y;
+ if (y < 0)
+ y = 0;
+ else if (y >= scaled_pos.height)
+ y = scaled_pos.height - 1;
+
+ // need to make manipulations outside of box structure, because its methods do sanity
+ // checking
+ int left = box.left;
+ int top = box.top;
+ int right = box.right;
+ int bottom = box.bottom;
+
+ // get extra geometric information needed to enforce constraints
+ int photo_right_edge = canvas.get_scaled_pixbuf().width - 1;
+ int photo_bottom_edge = canvas.get_scaled_pixbuf().height - 1;
+
+ switch (in_manipulation) {
+ case BoxLocation.LEFT_SIDE:
+ left = x;
+ break;
+
+ case BoxLocation.TOP_SIDE:
+ top = y;
+ break;
+
+ case BoxLocation.RIGHT_SIDE:
+ right = x;
+ break;
+
+ case BoxLocation.BOTTOM_SIDE:
+ bottom = y;
+ break;
+
+ case BoxLocation.TOP_LEFT:
+ top = y;
+ left = x;
+ break;
+
+ case BoxLocation.BOTTOM_LEFT:
+ bottom = y;
+ left = x;
+ break;
+
+ case BoxLocation.TOP_RIGHT:
+ top = y;
+ right = x;
+ break;
+
+ case BoxLocation.BOTTOM_RIGHT:
+ bottom = y;
+ right = x;
+ break;
+
+ case BoxLocation.INSIDE:
+ assert(last_grab_x >= 0);
+ assert(last_grab_y >= 0);
+
+ int delta_x = (x - last_grab_x);
+ int delta_y = (y - last_grab_y);
+
+ last_grab_x = x;
+ last_grab_y = y;
+
+ int width = right - left + 1;
+ int height = bottom - top + 1;
+
+ left += delta_x;
+ top += delta_y;
+ right += delta_x;
+ bottom += delta_y;
+
+ // bound box inside of photo
+ if (left < 0)
+ left = 0;
+
+ if (top < 0)
+ top = 0;
+
+ if (right >= scaled_pos.width)
+ right = scaled_pos.width - 1;
+
+ if (bottom >= scaled_pos.height)
+ bottom = scaled_pos.height - 1;
+
+ int adj_width = right - left + 1;
+ int adj_height = bottom - top + 1;
+
+ // don't let adjustments affect the size of the box
+ if (adj_width != width) {
+ if (delta_x < 0)
+ right = left + width - 1;
+ else left = right - width + 1;
+ }
+
+ if (adj_height != height) {
+ if (delta_y < 0)
+ bottom = top + height - 1;
+ else top = bottom - height + 1;
+ }
+ break;
+
+ default:
+ // do nothing, not even a repaint
+ return false;
+ }
+
+ // Check if the mouse has gone out of bounds, and if it has, make sure that the
+ // face shape edges stay within the photo bounds.
+ int width = right - left + 1;
+ int height = bottom - top + 1;
+
+ if (left < 0)
+ left = 0;
+ if (top < 0)
+ top = 0;
+ if (right > photo_right_edge)
+ right = photo_right_edge;
+ if (bottom > photo_bottom_edge)
+ bottom = photo_bottom_edge;
+
+ width = right - left + 1;
+ height = bottom - top + 1;
+
+ switch (in_manipulation) {
+ case BoxLocation.LEFT_SIDE:
+ case BoxLocation.TOP_LEFT:
+ case BoxLocation.BOTTOM_LEFT:
+ if (width < FACE_MIN_SIZE)
+ left = right - FACE_MIN_SIZE;
+ break;
+
+ case BoxLocation.RIGHT_SIDE:
+ case BoxLocation.TOP_RIGHT:
+ case BoxLocation.BOTTOM_RIGHT:
+ if (width < FACE_MIN_SIZE)
+ right = left + FACE_MIN_SIZE;
+ break;
+
+ default:
+ break;
+ }
+
+ switch (in_manipulation) {
+ case BoxLocation.TOP_SIDE:
+ case BoxLocation.TOP_LEFT:
+ case BoxLocation.TOP_RIGHT:
+ if (height < FACE_MIN_SIZE)
+ top = bottom - FACE_MIN_SIZE;
+ break;
+
+ case BoxLocation.BOTTOM_SIDE:
+ case BoxLocation.BOTTOM_LEFT:
+ case BoxLocation.BOTTOM_RIGHT:
+ if (height < FACE_MIN_SIZE)
+ bottom = top + FACE_MIN_SIZE;
+ break;
+
+ default:
+ break;
+ }
+
+ Box new_box = Box(left, top, right, bottom);
+
+ if (!box.equals(new_box)) {
+ erase();
+
+ if (in_manipulation != BoxLocation.INSIDE)
+ check_resized_box(new_box);
+
+ box = new_box;
+ paint();
+ }
+
+ if (is_editable())
+ update_face_window_position();
+
+ serialized = null;
+
+ return false;
+ }
+
+ private void check_resized_box(Box new_box) {
+ Box horizontal;
+ bool horizontal_enlarged;
+ Box vertical;
+ bool vertical_enlarged;
+ BoxComplements complements = box.resized_complements(new_box, out horizontal,
+ out horizontal_enlarged, out vertical, out vertical_enlarged);
+
+ // this should never happen ... this means that the operation wasn't a resize
+ assert(complements != BoxComplements.NONE);
+ }
+
+ private void update_cursor(int x, int y) {
+ // box is not maintained relative to photo's position on canvas
+ Gdk.Rectangle scaled_pos = canvas.get_scaled_pixbuf_position();
+ Box offset_scaled_box = box.get_offset(scaled_pos.x, scaled_pos.y);
+
+ Gdk.CursorType cursor_type = Gdk.CursorType.LEFT_PTR;
+ switch (offset_scaled_box.approx_location(x, y)) {
+ case BoxLocation.LEFT_SIDE:
+ cursor_type = Gdk.CursorType.LEFT_SIDE;
+ break;
+
+ case BoxLocation.TOP_SIDE:
+ cursor_type = Gdk.CursorType.TOP_SIDE;
+ break;
+
+ case BoxLocation.RIGHT_SIDE:
+ cursor_type = Gdk.CursorType.RIGHT_SIDE;
+ break;
+
+ case BoxLocation.BOTTOM_SIDE:
+ cursor_type = Gdk.CursorType.BOTTOM_SIDE;
+ break;
+
+ case BoxLocation.TOP_LEFT:
+ cursor_type = Gdk.CursorType.TOP_LEFT_CORNER;
+ break;
+
+ case BoxLocation.BOTTOM_LEFT:
+ cursor_type = Gdk.CursorType.BOTTOM_LEFT_CORNER;
+ break;
+
+ case BoxLocation.TOP_RIGHT:
+ cursor_type = Gdk.CursorType.TOP_RIGHT_CORNER;
+ break;
+
+ case BoxLocation.BOTTOM_RIGHT:
+ cursor_type = Gdk.CursorType.BOTTOM_RIGHT_CORNER;
+ break;
+
+ case BoxLocation.INSIDE:
+ cursor_type = Gdk.CursorType.FLEUR;
+ break;
+
+ default:
+ // use Gdk.CursorType.LEFT_PTR
+ break;
+ }
+
+ if (cursor_type != current_cursor_type) {
+ Gdk.Cursor cursor = new Gdk.Cursor(cursor_type);
+ canvas.get_drawing_window().set_cursor(cursor);
+ current_cursor_type = cursor_type;
+ }
+ }
+
+ public override void on_motion(int x, int y, Gdk.ModifierType mask) {
+ // only deal with manipulating the box when click-and-dragging one of the edges
+ // or the interior
+ if (in_manipulation != BoxLocation.OUTSIDE)
+ on_canvas_manipulation(x, y);
+
+ update_cursor(x, y);
+ }
+
+ public override bool on_left_click(int x, int y) {
+ Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position();
+
+ // box is not maintained relative to photo's position on canvas
+ Box offset_scaled_box = box.get_offset(scaled_pixbuf_pos.x, scaled_pixbuf_pos.y);
+
+ // determine where the mouse down landed and store for future events
+ in_manipulation = offset_scaled_box.approx_location(x, y);
+ last_grab_x = x -= scaled_pixbuf_pos.x;
+ last_grab_y = y -= scaled_pixbuf_pos.y;
+
+ return box.approx_location(x, y) != BoxLocation.OUTSIDE;
+ }
+
+ public override void on_left_released(int x, int y) {
+ if (box.get_width() < FACE_MIN_SIZE) {
+ delete_me_requested();
+
+ return;
+ }
+
+ if (is_editable()) {
+ face_window.show();
+ face_window.present();
+ }
+
+ // nothing to do if released outside of the face box
+ if (in_manipulation == BoxLocation.OUTSIDE)
+ return;
+
+ // end manipulation
+ in_manipulation = BoxLocation.OUTSIDE;
+ last_grab_x = -1;
+ last_grab_y = -1;
+
+ update_cursor(x, y);
+ }
+
+ public override void on_resized_pixbuf(Dimensions old_dim, Gdk.Pixbuf scaled) {
+ Dimensions new_dim = Dimensions.for_pixbuf(scaled);
+ Dimensions uncropped_dim = canvas.get_photo().get_original_dimensions();
+
+ Box new_box = box.get_scaled_similar(old_dim, uncropped_dim);
+
+ // rescale back to new size
+ box = new_box.get_scaled_similar(uncropped_dim, new_dim);
+ update_face_window_position();
+ }
+
+ public override bool cursor_is_over(int x, int y) {
+ // box is not maintained relative to photo's position on canvas
+ Gdk.Rectangle scaled_pos = canvas.get_scaled_pixbuf_position();
+ Box offset_scaled_box = box.get_offset(scaled_pos.x, scaled_pos.y);
+
+ return offset_scaled_box.approx_location(x, y) != BoxLocation.OUTSIDE;
+ }
+
+ public override double get_distance(int x, int y) {
+ double center_x = box.left + box.get_width() / 2.0;
+ double center_y = box.top + box.get_height() / 2.0;
+
+ return Math.sqrt((center_x - x) * (center_x - x) + (center_y - y) * (center_y - y));
+ }
+}
+
+#endif
diff --git a/src/faces/Faces.vala b/src/faces/Faces.vala
new file mode 100644
index 0000000..3f0623a
--- /dev/null
+++ b/src/faces/Faces.vala
@@ -0,0 +1,37 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+
+namespace Faces {
+
+public void init() throws Error {
+ Faces.SidebarEntry.init();
+}
+
+public void terminate() {
+ Faces.SidebarEntry.terminate();
+}
+
+}
+
+#else
+
+namespace Faces {
+
+public void init() throws Error {
+ // do nothing; this method is here only
+ // to make the unitizing mechanism happy
+}
+
+public void terminate() {
+ // do nothing; this method is here only
+ // to make the unitizing mechanism happy
+}
+
+}
+
+#endif
diff --git a/src/faces/FacesBranch.vala b/src/faces/FacesBranch.vala
new file mode 100644
index 0000000..1eb25cf
--- /dev/null
+++ b/src/faces/FacesBranch.vala
@@ -0,0 +1,146 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+
+public class Faces.Branch : Sidebar.Branch {
+ private Gee.HashMap<Face, Faces.SidebarEntry> entry_map = new Gee.HashMap<Face, Faces.SidebarEntry>();
+
+ public Branch() {
+ base (new Faces.Grouping(),
+ Sidebar.Branch.Options.HIDE_IF_EMPTY
+ | Sidebar.Branch.Options.AUTO_OPEN_ON_NEW_CHILD
+ | Sidebar.Branch.Options.STARTUP_EXPAND_TO_FIRST_CHILD,
+ comparator);
+
+ // seed the branch with existing faces
+ on_faces_added_removed(Face.global.get_all(), null);
+
+ // monitor collection for future events
+ Face.global.contents_altered.connect(on_faces_added_removed);
+ Face.global.items_altered.connect(on_faces_altered);
+ }
+
+ ~Branch() {
+ Face.global.contents_altered.disconnect(on_faces_added_removed);
+ Face.global.items_altered.disconnect(on_faces_altered);
+ }
+
+ public Faces.SidebarEntry? get_entry_for_face(Face face) {
+ return entry_map.get(face);
+ }
+
+ private static int comparator(Sidebar.Entry a, Sidebar.Entry b) {
+ if (a == b)
+ return 0;
+
+ return Face.compare_names(((Faces.SidebarEntry) a).for_face(),
+ ((Faces.SidebarEntry) b).for_face());
+ }
+
+ private void on_faces_added_removed(Gee.Iterable<DataObject>? added, Gee.Iterable<DataObject>? removed) {
+ if (added != null) {
+ foreach (DataObject object in added) {
+ Face face = (Face) object;
+
+ Faces.SidebarEntry entry = new Faces.SidebarEntry(face);
+ entry_map.set(face, entry);
+
+ graft(get_root(), entry);
+ }
+ }
+
+ if (removed != null) {
+ foreach (DataObject object in removed) {
+ Face face = (Face) object;
+
+ Faces.SidebarEntry? entry = entry_map.get(face);
+ assert(entry != null);
+
+ bool is_removed = entry_map.unset(face);
+ assert(is_removed);
+
+ prune(entry);
+ }
+ }
+ }
+
+ private void on_faces_altered(Gee.Map<DataObject, Alteration> altered) {
+ foreach (DataObject object in altered.keys) {
+ if (!altered.get(object).has_detail("metadata", "name"))
+ continue;
+
+ Face face = (Face) object;
+ Faces.SidebarEntry? entry = entry_map.get(face);
+ assert(entry != null);
+
+ entry.sidebar_name_changed(face.get_name());
+ entry.sidebar_tooltip_changed(face.get_name());
+ reorder(entry);
+ }
+ }
+}
+
+public class Faces.Grouping : Sidebar.Header {
+ public Grouping() {
+ base (_("Faces"));
+ }
+}
+
+public class Faces.SidebarEntry : Sidebar.SimplePageEntry, Sidebar.RenameableEntry,
+ Sidebar.DestroyableEntry {
+ private static string single_face_icon = Resources.ICON_ONE_FACE;
+
+ private Face face;
+
+ public SidebarEntry(Face face) {
+ this.face = face;
+ }
+
+ internal static void init() {
+ }
+
+ internal static void terminate() {
+ }
+
+ public Face for_face() {
+ return face;
+ }
+
+ public bool is_user_renameable() {
+ return true;
+ }
+
+ public override string get_sidebar_name() {
+ return face.get_name();
+ }
+
+ public override string? get_sidebar_icon() {
+ return single_face_icon;
+ }
+
+ protected override Page create_page() {
+ return new FacePage(face);
+ }
+
+ public void rename(string new_name) {
+ string? prepped = Face.prep_face_name(new_name);
+ if (prepped == null)
+ return;
+
+ if (!Face.global.exists(prepped))
+ AppWindow.get_command_manager().execute(new RenameFaceCommand(face, prepped));
+ else if (prepped != face.get_name())
+ AppWindow.error_message(Resources.rename_face_exists_message(prepped));
+ }
+
+ public void destroy_source() {
+ if (Dialogs.confirm_delete_face(face))
+ AppWindow.get_command_manager().execute(new DeleteFaceCommand(face));
+ }
+}
+
+#endif
diff --git a/src/faces/FacesTool.vala b/src/faces/FacesTool.vala
new file mode 100644
index 0000000..cf53736
--- /dev/null
+++ b/src/faces/FacesTool.vala
@@ -0,0 +1,977 @@
+/* Copyright 2018 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#if ENABLE_FACES
+public errordomain FaceShapeError {
+ CANT_CREATE
+}
+
+public class FacesTool : EditingTools.EditingTool {
+ protected const int CONTROL_SPACING = 8;
+ protected const int FACE_LABEL_MAX_CHARS = 15;
+
+ private enum EditingPhase {
+ CLICK_TO_EDIT,
+ NOT_EDITING,
+ CREATING_DRAGGING,
+ CREATING_EDITING,
+ EDITING,
+ DETECTING_FACES,
+ DETECTING_FACES_FINISHED
+ }
+
+ public class FaceWidget : Gtk.Box {
+ private static Pango.AttrList attrs_bold;
+ private static Pango.AttrList attrs_normal;
+
+ public signal void face_hidden();
+
+ public Gtk.Button edit_button;
+ public Gtk.Button delete_button;
+ public Gtk.Label label;
+
+ public weak FaceShape face_shape;
+
+ static construct {
+ attrs_bold = new Pango.AttrList();
+ attrs_bold.insert(Pango.attr_weight_new(Pango.Weight.BOLD));
+ attrs_normal = new Pango.AttrList();
+ attrs_normal.insert(Pango.attr_weight_new(Pango.Weight.NORMAL));
+ }
+
+ public FaceWidget (FaceShape face_shape) {
+ spacing = CONTROL_SPACING;
+
+ edit_button = new Gtk.Button.with_label(Resources.EDIT_LABEL);
+ edit_button.set_use_underline(true);
+ delete_button = new Gtk.Button.with_label(Resources.DELETE_LABEL);
+ delete_button.set_use_underline(true);
+
+ label = new Gtk.Label(face_shape.get_name());
+ label.halign = Gtk.Align.START;
+ label.valign = Gtk.Align.CENTER;
+ label.ellipsize = Pango.EllipsizeMode.END;
+ label.width_chars = FACE_LABEL_MAX_CHARS;
+
+ pack_start(label, true);
+ pack_start(edit_button, false);
+ pack_start(delete_button, false);
+
+ this.face_shape = face_shape;
+ face_shape.set_widget(this);
+ }
+
+ public bool on_enter_notify_event() {
+ activate_label();
+
+ if (face_shape.is_editable())
+ return false;
+
+ // This check is necessary to avoid painting the face twice --see
+ // note in on_leave_notify_event.
+ if (!face_shape.is_visible())
+ face_shape.show();
+
+ return true;
+ }
+
+ public bool on_leave_notify_event() {
+ // This check is necessary because GTK+ will throw enter/leave_notify
+ // events when the pointer passes though windows, even if one window
+ // belongs to a widget that is a child of the widget that throws this
+ // signal. So, this check is necessary to avoid "deactivation" of
+ // the label if the pointer enters one of the buttons in this FaceWidget.
+ if (!is_pointer_over(get_window())) {
+ deactivate_label();
+
+ if (face_shape.is_editable())
+ return false;
+
+ face_shape.hide();
+ face_hidden();
+ }
+
+ return true;
+ }
+
+ public void activate_label() {
+ label.set_attributes(attrs_bold);
+ }
+
+ public void deactivate_label() {
+ label.set_attributes(attrs_normal);
+ }
+ }
+
+ private class FacesToolWindow : EditingTools.EditingToolWindow {
+ public signal void face_hidden();
+ public signal void face_edit_requested(string face_name);
+ public signal void face_delete_requested(string face_name);
+ public signal void detection_canceled();
+
+ public Gtk.Button detection_button = new Gtk.Button.with_label(_("Detect faces…"));
+ public Gtk.Button ok_button;
+ public Gtk.Button cancel_button;
+ public Gtk.Button cancel_detection_button;
+
+ private EditingPhase editing_phase = EditingPhase.NOT_EDITING;
+ private Gtk.Box help_layout = null;
+ private Gtk.Box response_layout = null;
+ private Gtk.HSeparator buttons_text_separator = null;
+ private Gtk.Label help_text = null;
+ private Gtk.Box face_widgets_layout = null;
+ private Gtk.Box layout = null;
+
+ public FacesToolWindow(Gtk.Window container) {
+ base(container);
+
+ ok_button = new Gtk.Button.with_label(Resources.OK_LABEL);
+ ok_button.set_use_underline(true);
+
+ cancel_button = new Gtk.Button.with_label(Resources.CANCEL_LABEL);
+ cancel_button.set_use_underline(true);
+
+ cancel_detection_button = new Gtk.Button.with_label(Resources.CANCEL_LABEL);
+ cancel_detection_button.set_use_underline(true);
+
+ detection_button.set_tooltip_text(_("Detect faces on this photo"));
+
+ cancel_detection_button.set_tooltip_text(_("Cancel face detection"));
+ cancel_detection_button.set_image_position(Gtk.PositionType.LEFT);
+ cancel_detection_button.clicked.connect(on_cancel_detection);
+
+ cancel_button.set_tooltip_text(_("Close the Faces tool without saving changes"));
+ cancel_button.set_image_position(Gtk.PositionType.LEFT);
+
+ ok_button.set_image_position(Gtk.PositionType.LEFT);
+
+ face_widgets_layout = new Gtk.Box(Gtk.Orientation.VERTICAL, CONTROL_SPACING);
+
+ help_text = new Gtk.Label(_("Click and drag to tag a face"));
+ help_layout = new Gtk.Box(Gtk.Orientation.HORIZONTAL, CONTROL_SPACING);
+ help_layout.pack_start(help_text, true);
+
+ response_layout = new Gtk.Box(Gtk.Orientation.HORIZONTAL, CONTROL_SPACING);
+ response_layout.add(detection_button);
+ response_layout.add(cancel_button);
+ response_layout.add(ok_button);
+
+ layout = new Gtk.Box(Gtk.Orientation.VERTICAL, CONTROL_SPACING);
+ layout.pack_start(face_widgets_layout, false);
+ layout.pack_start(help_layout, false);
+ layout.pack_start(new Gtk.HSeparator(), false);
+ layout.pack_start(response_layout, false);
+
+ add(layout);
+ }
+
+ public void set_editing_phase(EditingPhase phase, FaceShape? face_shape = null) {
+ if (editing_phase == EditingPhase.DETECTING_FACES &&
+ phase != EditingPhase.DETECTING_FACES_FINISHED)
+ return;
+
+ switch (phase) {
+ case EditingPhase.CLICK_TO_EDIT:
+ assert(face_shape != null);
+
+ help_text.set_markup(Markup.printf_escaped(_("Click to edit face <i>%s</i>"),
+ face_shape.get_name()));
+
+ break;
+ case EditingPhase.NOT_EDITING:
+ help_text.set_text(_("Click and drag to tag a face"));
+
+ break;
+ case EditingPhase.CREATING_DRAGGING:
+ help_text.set_text(_("Stop dragging to add your face and name it."));
+
+ break;
+ case EditingPhase.CREATING_EDITING:
+ help_text.set_text(_("Type a name for this face, then press Enter"));
+
+ break;
+ case EditingPhase.EDITING:
+ help_text.set_text(_("Move or modify the face shape or name and press Enter"));
+
+ break;
+ case EditingPhase.DETECTING_FACES:
+ help_text.set_text(_("Detecting faces"));
+
+ if (cancel_detection_button.get_parent() == null)
+ help_layout.pack_start(cancel_detection_button, false);
+
+ detection_button.set_sensitive(false);
+ cancel_detection_button.set_sensitive(true);
+ cancel_detection_button.show();
+
+ break;
+ case EditingPhase.DETECTING_FACES_FINISHED:
+ help_text.set_text(_("If you don’t set the name of unknown faces they won’t be saved."));
+
+ break;
+ default:
+ assert_not_reached();
+ }
+
+ if (editing_phase == EditingPhase.DETECTING_FACES && editing_phase != phase) {
+ cancel_detection_button.hide();
+ detection_button.set_sensitive(true);
+ }
+
+ editing_phase = phase;
+ }
+
+ public EditingPhase get_editing_phase() {
+ return editing_phase;
+ }
+
+ public void ok_button_set_sensitive(bool sensitive) {
+ if (sensitive)
+ ok_button.set_tooltip_text(_("Save changes and close the Faces tool"));
+ else
+ ok_button.set_tooltip_text(_("No changes to save"));
+
+ ok_button.set_sensitive(sensitive);
+ }
+
+ public void add_face(FaceShape face_shape) {
+ FaceWidget face_widget = new FaceWidget(face_shape);
+
+ face_widget.face_hidden.connect(on_face_hidden);
+ face_widget.edit_button.clicked.connect(edit_face);
+ face_widget.delete_button.clicked.connect(delete_face);
+
+ Gtk.EventBox event_box = new Gtk.EventBox();
+ event_box.add(face_widget);
+ event_box.add_events(Gdk.EventMask.ENTER_NOTIFY_MASK | Gdk.EventMask.LEAVE_NOTIFY_MASK);
+ event_box.enter_notify_event.connect(face_widget.on_enter_notify_event);
+ event_box.leave_notify_event.connect(face_widget.on_leave_notify_event);
+
+ face_widgets_layout.pack_start(event_box, false);
+
+ if (buttons_text_separator == null) {
+ buttons_text_separator = new Gtk.HSeparator();
+ face_widgets_layout.pack_end(buttons_text_separator, false);
+ }
+
+ face_widgets_layout.show_all();
+ }
+
+ private void edit_face(Gtk.Button button) {
+ FaceWidget widget = (FaceWidget) button.get_parent();
+
+ face_edit_requested(widget.label.get_text());
+ }
+
+ private void delete_face(Gtk.Button button) {
+ FaceWidget widget = (FaceWidget) button.get_parent();
+
+ face_delete_requested(widget.label.get_text());
+
+ widget.get_parent().destroy();
+
+ if (face_widgets_layout.get_children().length() == 1) {
+ buttons_text_separator.destroy();
+ buttons_text_separator = null;
+ }
+ }
+
+ private void on_face_hidden() {
+ face_hidden();
+ }
+
+ private void on_cancel_detection() {
+ detection_canceled();
+ }
+ }
+
+ public class EditingFaceToolWindow : EditingTools.EditingToolWindow {
+ public signal bool key_pressed(Gdk.EventKey event);
+
+ public Gtk.Entry entry;
+
+ private Gtk.Box layout = null;
+
+ public EditingFaceToolWindow(Gtk.Window container) {
+ base(container);
+
+ entry = new Gtk.Entry();
+
+ layout = new Gtk.Box(Gtk.Orientation.HORIZONTAL, CONTROL_SPACING);
+ layout.add(entry);
+
+ add(layout);
+ }
+
+ public override bool key_press_event(Gdk.EventKey event) {
+ return key_pressed(event) || base.key_press_event(event);
+ }
+ }
+
+ private class FaceDetectionJob : BackgroundJob {
+ private Gee.Queue<string> faces = null;
+ private string image_path;
+ private string output;
+ public SpawnError? spawnError;
+
+ public FaceDetectionJob(FacesToolWindow owner, string image_path,
+ CompletionCallback completion_callback, Cancellable cancellable,
+ CancellationCallback cancellation_callback) {
+ base(owner, completion_callback, cancellable, cancellation_callback);
+
+ this.image_path = image_path;
+ }
+
+ public override void execute() {
+ try {
+ string[] argv = {
+ AppDirs.get_facedetect_bin().get_path(),
+ "--cascade=" + AppDirs.get_haarcascade_file().get_path(),
+ "--scale=1.2",
+ image_path
+ };
+ Process.spawn_sync(null, argv, null, SpawnFlags.STDERR_TO_DEV_NULL, null, out output);
+
+ } catch (SpawnError e) {
+ spawnError = e;
+ critical(e.message);
+
+ return;
+ }
+
+ faces = new Gee.PriorityQueue<string>();
+ string[] lines = output.split("\n");
+ foreach (string line in lines) {
+ if (line.length == 0)
+ continue;
+
+ string[] type_and_serialized = line.split(";");
+ if (type_and_serialized.length != 2) {
+ critical("Wrong serialized line in face detection program output.");
+ assert_not_reached();
+ }
+
+ switch (type_and_serialized[0]) {
+ case "face":
+ StringBuilder serialized_geometry = new StringBuilder();
+ serialized_geometry.append(FaceRectangle.SHAPE_TYPE);
+ serialized_geometry.append(";");
+ serialized_geometry.append(parse_serialized_geometry(type_and_serialized[1]));
+
+ faces.add(serialized_geometry.str);
+ break;
+
+ case "warning":
+ warning("%s\n", type_and_serialized[1]);
+ break;
+
+ case "error":
+ critical("%s\n", type_and_serialized[1]);
+ assert_not_reached();
+
+ default:
+ assert_not_reached();
+ }
+ }
+ }
+
+ private string parse_serialized_geometry(string serialized_geometry) {
+ string[] serialized_geometry_pieces = serialized_geometry.split("&");
+ if (serialized_geometry_pieces.length != 4) {
+ critical("Wrong serialized line in face detection program output.");
+ assert_not_reached();
+ }
+
+ double x = 0;
+ double y = 0;
+ double width = 0;
+ double height = 0;
+ foreach (string piece in serialized_geometry_pieces) {
+
+ string[] name_and_value = piece.split("=");
+ if (name_and_value.length != 2) {
+ critical("Wrong serialized line in face detection program output.");
+ assert_not_reached();
+ }
+
+ switch (name_and_value[0]) {
+ case "x":
+ x = name_and_value[1].to_double();
+ break;
+
+ case "y":
+ y = name_and_value[1].to_double();
+ break;
+
+ case "width":
+ width = name_and_value[1].to_double();
+ break;
+
+ case "height":
+ height = name_and_value[1].to_double();
+ break;
+
+ default:
+ critical("Wrong serialized line in face detection program output.");
+ assert_not_reached();
+ }
+ }
+
+ double half_width = width / 2;
+ double half_height = height / 2;
+
+ return "%s;%s;%s;%s".printf((x + half_width).to_string(), (y + half_height).to_string(),
+ half_width.to_string(), half_height.to_string());
+ }
+
+ public string? get_next() {
+ if (faces == null)
+ return null;
+
+ return faces.poll();
+ }
+
+ public void reset() {
+ faces = null;
+ }
+ }
+
+ private Cairo.Surface image_surface = null;
+ private Gee.HashMap<string, FaceShape> face_shapes;
+ private Gee.HashMap<string, string> original_face_locations;
+ private Cancellable face_detection_cancellable;
+ private FaceDetectionJob face_detection;
+ private Workers workers;
+ private FaceShape editing_face_shape = null;
+ private FacesToolWindow faces_tool_window = null;
+
+ private FacesTool() {
+ base("FacesTool");
+ }
+
+ public static FacesTool factory() {
+ return new FacesTool();
+ }
+
+ public override void activate(EditingTools.PhotoCanvas canvas) {
+ face_shapes = new Gee.HashMap<string, FaceShape>();
+ original_face_locations = new Gee.HashMap<string, string>();
+
+ bind_canvas_handlers(canvas);
+
+ if (image_surface != null)
+ image_surface = null;
+
+ Gdk.Rectangle scaled_pixbuf_position = canvas.get_scaled_pixbuf_position();
+ image_surface = new Cairo.ImageSurface(Cairo.Format.ARGB32,
+ scaled_pixbuf_position.width,
+ scaled_pixbuf_position.height);
+
+ faces_tool_window = new FacesToolWindow(canvas.get_container());
+
+ Gee.Map<FaceID?, FaceLocation>? face_locations =
+ FaceLocation.get_locations_by_photo(canvas.get_photo());
+ if (face_locations != null)
+ foreach (Gee.Map.Entry<FaceID?, FaceLocation> entry in face_locations.entries) {
+ FaceShape new_face_shape;
+ string serialized_geometry = entry.value.get_serialized_geometry();
+ try {
+ new_face_shape = FaceShape.from_serialized(canvas, serialized_geometry);
+ } catch (FaceShapeError e) {
+ if (e is FaceShapeError.CANT_CREATE)
+ continue;
+
+ assert_not_reached();
+ }
+ Face? face = Face.global.fetch(entry.key);
+ assert(face != null);
+ string face_name = face.get_name();
+ new_face_shape.set_name(face_name);
+
+ add_face(new_face_shape);
+ original_face_locations.set(face_name, serialized_geometry);
+ }
+
+ set_ok_button_sensitivity();
+
+ face_detection_cancellable = new Cancellable();
+ workers = new Workers(1, false);
+ face_detection = new FaceDetectionJob(faces_tool_window,
+ canvas.get_photo().get_file().get_path(), on_faces_detected,
+ face_detection_cancellable, on_detection_cancelled);
+
+ bind_window_handlers();
+
+ base.activate(canvas);
+ }
+
+ public override void deactivate() {
+ if (canvas != null)
+ unbind_canvas_handlers(canvas);
+
+ if (faces_tool_window != null) {
+ unbind_window_handlers();
+ faces_tool_window.hide();
+ faces_tool_window.destroy();
+ faces_tool_window = null;
+ }
+
+ base.deactivate();
+ }
+
+ private void bind_canvas_handlers(EditingTools.PhotoCanvas canvas) {
+ canvas.new_surface.connect(prepare_ctx);
+ canvas.resized_scaled_pixbuf.connect(on_resized_pixbuf);
+ }
+
+ private void unbind_canvas_handlers(EditingTools.PhotoCanvas canvas) {
+ canvas.new_surface.disconnect(prepare_ctx);
+ canvas.resized_scaled_pixbuf.disconnect(on_resized_pixbuf);
+ }
+
+ private void bind_window_handlers() {
+ faces_tool_window.key_press_event.connect(on_keypress);
+ faces_tool_window.ok_button.clicked.connect(on_faces_ok);
+ faces_tool_window.cancel_button.clicked.connect(notify_cancel);
+ faces_tool_window.detection_button.clicked.connect(detect_faces);
+ faces_tool_window.face_hidden.connect(on_face_hidden);
+ faces_tool_window.face_edit_requested.connect(edit_face);
+ faces_tool_window.face_delete_requested.connect(delete_face);
+ faces_tool_window.detection_canceled.connect(cancel_face_detection);
+ }
+
+ private void unbind_window_handlers() {
+ faces_tool_window.key_press_event.disconnect(on_keypress);
+ faces_tool_window.ok_button.clicked.disconnect(on_faces_ok);
+ faces_tool_window.cancel_button.clicked.disconnect(notify_cancel);
+ faces_tool_window.detection_button.clicked.disconnect(detect_faces);
+ faces_tool_window.face_hidden.disconnect(on_face_hidden);
+ faces_tool_window.face_edit_requested.disconnect(edit_face);
+ faces_tool_window.face_delete_requested.disconnect(delete_face);
+ faces_tool_window.detection_canceled.disconnect(cancel_face_detection);
+ }
+
+ private void prepare_ctx(Cairo.Context ctx, Dimensions dim) {
+ if (editing_face_shape != null)
+ editing_face_shape.prepare_ctx(ctx, dim);
+ }
+
+ private void on_resized_pixbuf(Dimensions old_dim, Gdk.Pixbuf scaled, Gdk.Rectangle scaled_position) {
+ if (image_surface != null)
+ image_surface = null;
+
+ image_surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, scaled.width, scaled.height);
+ Cairo.Context ctx = new Cairo.Context(image_surface);
+ ctx.set_source_rgba(255.0, 255.0, 255.0, 0.0);
+ ctx.paint();
+
+ if (editing_face_shape != null)
+ editing_face_shape.on_resized_pixbuf(old_dim, scaled);
+
+ if (face_shapes != null)
+ foreach (FaceShape face_shape in face_shapes.values)
+ face_shape.on_resized_pixbuf(old_dim, scaled);
+ }
+
+ public override bool on_keypress(Gdk.EventKey event) {
+ string event_keyval = Gdk.keyval_name(event.keyval);
+
+ if (event_keyval == "Return" || event_keyval == "KP_Enter") {
+ on_faces_ok();
+ return true;
+ }
+
+ return base.on_keypress(event);
+ }
+
+ public override void on_left_click(int x, int y) {
+ if (editing_face_shape != null && editing_face_shape.on_left_click(x, y))
+ return;
+
+ foreach (FaceShape face_shape in face_shapes.values) {
+ if (face_shape.is_visible() && face_shape.cursor_is_over(x, y)) {
+ edit_face_shape(face_shape);
+ face_shape.set_editable(true);
+
+ return;
+ }
+ }
+
+ new_face_shape(x, y);
+ }
+
+ public override void on_left_released(int x, int y) {
+ if (editing_face_shape != null) {
+ editing_face_shape.on_left_released(x, y);
+
+ if (faces_tool_window.get_editing_phase() == EditingPhase.CREATING_DRAGGING)
+ faces_tool_window.set_editing_phase(EditingPhase.CREATING_EDITING);
+ }
+ }
+
+ public override void on_motion(int x, int y, Gdk.ModifierType mask) {
+ if (editing_face_shape == null) {
+ FaceShape to_show = null;
+ double distance = 0;
+ double new_distance;
+
+ foreach (FaceShape face_shape in face_shapes.values) {
+ bool cursor_is_over = face_shape.cursor_is_over(x, y);
+
+ // The FaceShape that will be shown needs to be repainted
+ // even if it is already visible, since it could be erased by
+ // another hiding FaceShape -and for the same
+ // reason it needs to be painted after all
+ // hiding faces are already erased.
+ // Also, we paint the FaceShape whose center is closer
+ // to the pointer.
+ if (cursor_is_over) {
+ face_shape.hide();
+ face_shape.get_widget().deactivate_label();
+
+ if (to_show == null) {
+ to_show = face_shape;
+ distance = face_shape.get_distance(x, y);
+ } else {
+ new_distance = face_shape.get_distance(x, y);
+
+ if (new_distance < distance) {
+ to_show = face_shape;
+ distance = new_distance;
+ }
+ }
+ } else if (!cursor_is_over && face_shape.is_visible()) {
+ face_shape.hide();
+ face_shape.get_widget().deactivate_label();
+ }
+ }
+
+ if (to_show == null) {
+ faces_tool_window.set_editing_phase(EditingPhase.NOT_EDITING);
+ } else {
+ faces_tool_window.set_editing_phase(EditingPhase.CLICK_TO_EDIT, to_show);
+
+ to_show.show();
+ to_show.get_widget().activate_label();
+ }
+ } else editing_face_shape.on_motion(x, y, mask);
+ }
+
+ public override bool on_leave_notify_event() {
+ // This check is a workaround for bug #3896.
+ if (is_pointer_over(canvas.get_drawing_window()) &&
+ !is_pointer_over(faces_tool_window.get_window()))
+ return false;
+
+ if (editing_face_shape != null)
+ return base.on_leave_notify_event();
+
+ foreach (FaceShape face_shape in face_shapes.values) {
+ if (face_shape.is_editable())
+ return base.on_leave_notify_event();
+
+ if (face_shape.is_visible()) {
+ face_shape.hide();
+ face_shape.get_widget().deactivate_label();
+
+ break;
+ }
+ }
+
+ faces_tool_window.set_editing_phase(EditingPhase.NOT_EDITING);
+
+ return base.on_leave_notify_event();
+ }
+
+ public override EditingTools.EditingToolWindow? get_tool_window() {
+ return faces_tool_window;
+ }
+
+ public override void paint(Cairo.Context default_ctx) {
+ // fill region behind the image surface with neutral color
+ int w = canvas.get_drawing_window().get_width();
+ int h = canvas.get_drawing_window().get_height();
+
+ default_ctx.set_source_rgba(0.0, 0.0, 0.0, 1.0);
+ default_ctx.rectangle(0, 0, w, h);
+ default_ctx.fill();
+ default_ctx.paint();
+
+ Cairo.Context ctx = new Cairo.Context(image_surface);
+ ctx.set_operator(Cairo.Operator.SOURCE);
+ ctx.set_source_rgba(0.0, 0.0, 0.0, 0.0);
+ ctx.paint();
+
+ canvas.paint_surface(image_surface, true);
+
+ // paint face shape last
+ if (editing_face_shape != null)
+ editing_face_shape.show();
+ }
+
+ private void new_face_shape(int x, int y) {
+ edit_face_shape(new FaceRectangle(canvas, x, y), true);
+ }
+
+ private void edit_face_shape(FaceShape face_shape, bool creating = false) {
+ hide_visible_face();
+
+ if (editing_face_shape != null) {
+ // We need to do this because it could be one of the already
+ // created faces being edited, and if that is the case it
+ // will not be destroyed.
+ editing_face_shape.hide();
+ editing_face_shape.set_editable(false);
+
+ // This is to allow the user to edit a FaceShape's shape
+ // without pressing the Enter button.
+ if (face_shapes.values.contains(editing_face_shape))
+ set_ok_button_sensitivity();
+
+ editing_face_shape = null;
+ }
+
+ if (creating) {
+ faces_tool_window.set_editing_phase(EditingPhase.CREATING_DRAGGING);
+ } else {
+ face_shape.show();
+
+ faces_tool_window.set_editing_phase(EditingPhase.EDITING);
+ }
+
+ editing_face_shape = face_shape;
+ editing_face_shape.add_me_requested.connect(add_face);
+ editing_face_shape.delete_me_requested.connect(release_face_shape);
+ }
+
+ private void release_face_shape() {
+ if (editing_face_shape == null)
+ return;
+
+ // We need to do this because it could be one of the already
+ // created faces being edited, and if that is the case it
+ // will not be destroyed.
+ if (editing_face_shape in face_shapes.values) {
+ editing_face_shape.hide();
+ editing_face_shape.set_editable(false);
+
+ editing_face_shape.get_widget().deactivate_label();
+ }
+
+ editing_face_shape = null;
+
+ faces_tool_window.set_editing_phase(EditingPhase.NOT_EDITING);
+ faces_tool_window.present();
+ }
+
+ private void hide_visible_face() {
+ foreach (FaceShape face_shape in face_shapes.values) {
+ if (face_shape.is_visible()) {
+ face_shape.hide();
+
+ break;
+ }
+ }
+ }
+
+ private void on_faces_ok() {
+ if (face_shapes == null)
+ return;
+
+ Gee.Map<Face, string> new_faces = new Gee.HashMap<Face, string>();
+ foreach (FaceShape face_shape in face_shapes.values) {
+ if (!face_shape.get_known())
+ continue;
+
+ Face new_face = Face.for_name(face_shape.get_name());
+
+ new_faces.set(new_face, face_shape.serialize());
+ }
+
+ ModifyFacesCommand command = new ModifyFacesCommand(canvas.get_photo(), new_faces);
+ applied(command, null, canvas.get_photo().get_dimensions(), false);
+ }
+
+ private void on_face_hidden() {
+ if (editing_face_shape != null)
+ editing_face_shape.show();
+ }
+
+ private void add_face(FaceShape face_shape) {
+ string? prepared_face_name = Face.prep_face_name(face_shape.get_name());
+
+ if (prepared_face_name != null) {
+ face_shape.set_name(prepared_face_name);
+
+ if (face_shapes.values.contains(face_shape)) {
+ foreach (Gee.Map.Entry<string, FaceShape> entry in face_shapes.entries) {
+ if (entry.value == face_shape) {
+ if (entry.key == prepared_face_name)
+ break;
+
+ face_shapes.unset(entry.key);
+ face_shapes.set(prepared_face_name, face_shape);
+
+ face_shape.set_known(true);
+ face_shape.get_widget().label.set_text(face_shape.get_name());
+
+ break;
+ }
+ }
+ } else if (!face_shapes.has_key(prepared_face_name)) {
+ faces_tool_window.add_face(face_shape);
+ face_shapes.set(prepared_face_name, face_shape);
+ } else return;
+
+ face_shape.hide();
+ face_shape.set_editable(false);
+
+ set_ok_button_sensitivity();
+ release_face_shape();
+ }
+ }
+
+ private void edit_face(string face_name) {
+ FaceShape face_shape = face_shapes.get(face_name);
+ assert(face_shape != null);
+
+ face_shape.set_editable(true);
+ edit_face_shape(face_shape);
+ }
+
+ private void delete_face(string face_name) {
+ face_shapes.unset(face_name);
+
+ // It is posible to have two visible faces at the same time, this happens
+ // if you are editing one face and you move the pointer around the
+ // FaceWidgets area in FacesToolWindow. And you can delete one of that
+ // faces, so the other visible face must be repainted.
+ foreach (FaceShape face_shape in face_shapes.values) {
+ if (face_shape.is_visible()) {
+ face_shape.hide();
+ face_shape.show();
+
+ break;
+ }
+ }
+
+ set_ok_button_sensitivity();
+ }
+
+ private void set_ok_button_sensitivity() {
+ Gee.Map<string, FaceShape> known_face_shapes = new Gee.HashMap<string, FaceShape>();
+ foreach (Gee.Map.Entry<string, FaceShape> face_shape in face_shapes.entries) {
+ if (face_shape.value.get_known()) {
+ known_face_shapes.set(face_shape.key, face_shape.value);
+ }
+ }
+
+ if (original_face_locations.size != known_face_shapes.size) {
+ faces_tool_window.ok_button_set_sensitive(true);
+
+ return;
+ }
+
+ foreach (Gee.Map.Entry<string, FaceShape> face_shape in known_face_shapes.entries) {
+ bool found = false;
+
+ foreach (Gee.Map.Entry<string, string> face_location in original_face_locations.entries) {
+ if (face_location.key == face_shape.key) {
+ if (face_location.value == face_shape.value.serialize()) {
+ found = true;
+
+ break;
+ } else {
+ faces_tool_window.ok_button_set_sensitive(true);
+
+ return;
+ }
+ }
+ }
+
+ if (!found) {
+ faces_tool_window.ok_button_set_sensitive(true);
+
+ return;
+ }
+ }
+
+ faces_tool_window.ok_button_set_sensitive(false);
+ }
+
+ private void detect_faces() {
+ faces_tool_window.detection_button.set_sensitive(false);
+ faces_tool_window.set_editing_phase(EditingPhase.DETECTING_FACES);
+
+ workers.enqueue(face_detection);
+ }
+
+ private void pick_faces_from_autodetected() {
+ int c = 0;
+ while (true) {
+ string? serialized_geometry = face_detection.get_next();
+ if (serialized_geometry == null) {
+ faces_tool_window.set_editing_phase(EditingPhase.DETECTING_FACES_FINISHED);
+
+ return;
+ }
+
+ FaceShape face_shape;
+ try {
+ face_shape = FaceShape.from_serialized(canvas, serialized_geometry);
+ } catch (FaceShapeError e) {
+ if (e is FaceShapeError.CANT_CREATE)
+ continue;
+
+ assert_not_reached();
+ }
+
+ bool found = false;
+ foreach (FaceShape existing_face_shape in face_shapes.values) {
+ if (existing_face_shape.equals(face_shape)) {
+ found = true;
+
+ break;
+ }
+ }
+
+ if (found)
+ continue;
+
+ c++;
+
+ face_shape.set_name("Unknown face #%d".printf(c));
+ face_shape.set_known(false);
+ add_face(face_shape);
+ }
+ }
+
+ private void on_faces_detected() {
+ face_detection_cancellable.reset();
+
+ if (face_detection.spawnError != null){
+ string spawnErrorMessage = _("Error trying to spawn face detection program:\n");
+ AppWindow.error_message(spawnErrorMessage + face_detection.spawnError.message + "\n");
+ faces_tool_window.set_editing_phase(EditingPhase.DETECTING_FACES_FINISHED);
+ } else
+ pick_faces_from_autodetected();
+ }
+
+ private void on_detection_cancelled(BackgroundJob job) {
+ ((FaceDetectionJob) job).reset();
+ face_detection_cancellable.reset();
+
+ faces_tool_window.set_editing_phase(EditingPhase.DETECTING_FACES_FINISHED);
+ }
+
+ private void cancel_face_detection() {
+ faces_tool_window.cancel_detection_button.set_sensitive(false);
+
+ face_detection.cancel();
+ }
+}
+
+#endif
diff --git a/src/folders/Folders.c b/src/folders/Folders.c
deleted file mode 100644
index 3ff8458..0000000
--- a/src/folders/Folders.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Folders.c generated by valac 0.40.4, the Vala compiler
- * generated from Folders.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* This file is the master unit file for the Folders unit. It should be edited to include
- * whatever code is deemed necessary.
- *
- * The init() and terminate() methods are mandatory.
- *
- * If the unit needs to be configured prior to initialization, add the proper parameters to
- * the preconfigure() method, implement it, and ensure in init() that it's been called.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-
-extern gchar* folders_icon;
-gchar* folders_icon = NULL;
-extern gchar* folders_have_photos_icon;
-gchar* folders_have_photos_icon = NULL;
-
-void folders_init (GError** error);
-#define RESOURCES_ICON_FOLDER "folder"
-#define RESOURCES_ICON_FOLDER_DOCUMENTS "folder-documents"
-void folders_terminate (void);
-
-
-void
-folders_init (GError** error)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 22 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_FOLDER);
-#line 22 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- _g_free0 (folders_icon);
-#line 22 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- folders_icon = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- _tmp1_ = g_strdup (RESOURCES_ICON_FOLDER_DOCUMENTS);
-#line 23 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- _g_free0 (folders_have_photos_icon);
-#line 23 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- folders_have_photos_icon = _tmp1_;
-#line 56 "Folders.c"
-}
-
-
-void
-folders_terminate (void)
-{
-#line 27 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- _g_free0 (folders_icon);
-#line 27 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- folders_icon = NULL;
-#line 28 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- _g_free0 (folders_have_photos_icon);
-#line 28 "/home/jens/Source/shotwell/src/folders/Folders.vala"
- folders_have_photos_icon = NULL;
-#line 71 "Folders.c"
-}
-
-
-
diff --git a/src/folders/FoldersBranch.c b/src/folders/FoldersBranch.c
deleted file mode 100644
index 9b2f84f..0000000
--- a/src/folders/FoldersBranch.c
+++ /dev/null
@@ -1,2230 +0,0 @@
-/* FoldersBranch.c generated by valac 0.40.4, the Vala compiler
- * generated from FoldersBranch.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n-lib.h>
-#include <gdk/gdk.h>
-
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
-
-#define FOLDERS_TYPE_BRANCH (folders_branch_get_type ())
-#define FOLDERS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_BRANCH, FoldersBranch))
-#define FOLDERS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_BRANCH, FoldersBranchClass))
-#define FOLDERS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_BRANCH))
-#define FOLDERS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_BRANCH))
-#define FOLDERS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_BRANCH, FoldersBranchClass))
-
-typedef struct _FoldersBranch FoldersBranch;
-typedef struct _FoldersBranchClass FoldersBranchClass;
-typedef struct _FoldersBranchPrivate FoldersBranchPrivate;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-
-#define FOLDERS_TYPE_SIDEBAR_ENTRY (folders_sidebar_entry_get_type ())
-#define FOLDERS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry))
-#define FOLDERS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntryClass))
-#define FOLDERS_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_SIDEBAR_ENTRY))
-#define FOLDERS_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_SIDEBAR_ENTRY))
-#define FOLDERS_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntryClass))
-
-typedef struct _FoldersSidebarEntry FoldersSidebarEntry;
-typedef struct _FoldersSidebarEntryClass FoldersSidebarEntryClass;
-enum {
- FOLDERS_BRANCH_0_PROPERTY,
- FOLDERS_BRANCH_NUM_PROPERTIES
-};
-static GParamSpec* folders_branch_properties[FOLDERS_BRANCH_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
-#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
-#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-
-typedef struct _SidebarGrouping SidebarGrouping;
-typedef struct _SidebarGroupingClass SidebarGroupingClass;
-
-#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
-#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
-#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-
-typedef struct _SidebarHeader SidebarHeader;
-typedef struct _SidebarHeaderClass SidebarHeaderClass;
-
-#define FOLDERS_TYPE_ROOT (folders_root_get_type ())
-#define FOLDERS_ROOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_ROOT, FoldersRoot))
-#define FOLDERS_ROOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_ROOT, FoldersRootClass))
-#define FOLDERS_IS_ROOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_ROOT))
-#define FOLDERS_IS_ROOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_ROOT))
-#define FOLDERS_ROOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_ROOT, FoldersRootClass))
-
-typedef struct _FoldersRoot FoldersRoot;
-typedef struct _FoldersRootClass FoldersRootClass;
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-
-#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
-#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
-#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
-#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
-
-typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
-typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
-typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate;
-
-#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ())
-#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry))
-#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY))
-#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface))
-
-typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry;
-typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface;
-typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate;
-typedef struct _FoldersRootPrivate FoldersRootPrivate;
-enum {
- FOLDERS_ROOT_0_PROPERTY,
- FOLDERS_ROOT_NUM_PROPERTIES
-};
-static GParamSpec* folders_root_properties[FOLDERS_ROOT_NUM_PROPERTIES];
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-typedef struct _FoldersSidebarEntryPrivate FoldersSidebarEntryPrivate;
-enum {
- FOLDERS_SIDEBAR_ENTRY_0_PROPERTY,
- FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY,
- FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY,
- FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY,
- FOLDERS_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define FOLDERS_TYPE_PAGE (folders_page_get_type ())
-#define FOLDERS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_PAGE, FoldersPage))
-#define FOLDERS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_PAGE, FoldersPageClass))
-#define FOLDERS_IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_PAGE))
-#define FOLDERS_IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_PAGE))
-#define FOLDERS_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_PAGE, FoldersPageClass))
-
-typedef struct _FoldersPage FoldersPage;
-typedef struct _FoldersPageClass FoldersPageClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SidebarBranch {
- GObject parent_instance;
- SidebarBranchPrivate * priv;
-};
-
-struct _SidebarBranchClass {
- GObjectClass parent_class;
-};
-
-struct _FoldersBranch {
- SidebarBranch parent_instance;
- FoldersBranchPrivate * priv;
-};
-
-struct _FoldersBranchClass {
- SidebarBranchClass parent_class;
-};
-
-struct _FoldersBranchPrivate {
- GeeHashMap* entries;
- GFile* home_dir;
-};
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-typedef enum {
- SIDEBAR_BRANCH_OPTIONS_NONE = 0,
- SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
- SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
-} SidebarBranchOptions;
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _SidebarRenameableEntryIface {
- GTypeInterface parent_iface;
- void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
- gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
-};
-
-struct _SidebarGrouping {
- GObject parent_instance;
- SidebarGroupingPrivate * priv;
-};
-
-struct _SidebarGroupingClass {
- GObjectClass parent_class;
-};
-
-struct _SidebarEmphasizableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*is_emphasized) (SidebarEmphasizableEntry* self);
-};
-
-struct _SidebarHeader {
- SidebarGrouping parent_instance;
- SidebarHeaderPrivate * priv;
-};
-
-struct _SidebarHeaderClass {
- SidebarGroupingClass parent_class;
-};
-
-struct _FoldersRoot {
- SidebarHeader parent_instance;
- FoldersRootPrivate * priv;
-};
-
-struct _FoldersRootClass {
- SidebarHeaderClass parent_class;
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _FoldersSidebarEntry {
- SidebarSimplePageEntry parent_instance;
- FoldersSidebarEntryPrivate * priv;
-};
-
-struct _FoldersSidebarEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _FoldersSidebarEntryPrivate {
- GFile* _dir;
- gchar* _collation;
- gint _count;
-};
-
-
-static gpointer folders_branch_parent_class = NULL;
-static gpointer folders_root_parent_class = NULL;
-static gpointer folders_sidebar_entry_parent_class = NULL;
-extern gchar* folders_icon;
-extern gchar* folders_have_photos_icon;
-static SidebarExpandableEntryIface * folders_sidebar_entry_sidebar_expandable_entry_parent_iface = NULL;
-
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-GType folders_branch_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType folders_sidebar_entry_get_type (void) G_GNUC_CONST;
-#define FOLDERS_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FOLDERS_TYPE_BRANCH, FoldersBranchPrivate))
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-static void folders_branch_on_media_contents_altered (FoldersBranch* self,
- GeeIterable* added,
- GeeIterable* removed);
-static void _folders_branch_on_media_contents_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self);
-gboolean file_equal (GFile* a,
- GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-FoldersBranch* folders_branch_new (void);
-FoldersBranch* folders_branch_construct (GType object_type);
-FoldersRoot* folders_root_new (void);
-FoldersRoot* folders_root_construct (GType object_type);
-GType sidebar_grouping_get_type (void) G_GNUC_CONST;
-GType sidebar_header_get_type (void) G_GNUC_CONST;
-GType folders_root_get_type (void) G_GNUC_CONST;
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-static gint folders_branch_comparator (SidebarEntry* a,
- SidebarEntry* b);
-static gint _folders_branch_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-GeeCollection* data_collection_get_all (DataCollection* self);
-const gchar* folders_sidebar_entry_get_collation (FoldersSidebarEntry* self);
-gchar* sidebar_simple_page_entry_get_sidebar_name (SidebarSimplePageEntry* self);
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-static void folders_branch_on_master_source_replaced (FoldersBranch* self,
- MediaSource* media_source,
- GFile* old_file,
- GFile* new_file);
-static void folders_branch_remove_entry (FoldersBranch* self,
- GFile* file);
-static void folders_branch_add_entry (FoldersBranch* self,
- MediaSource* media);
-static void _folders_branch_on_master_source_replaced_media_source_master_replaced (MediaSource* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self);
-GFile* media_source_get_file (MediaSource* self);
-FoldersSidebarEntry* folders_sidebar_entry_new (GFile* dir);
-FoldersSidebarEntry* folders_sidebar_entry_construct (GType object_type,
- GFile* dir);
-SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-void sidebar_branch_graft (SidebarBranch* self,
- SidebarEntry* parent,
- SidebarEntry* entry,
- GCompareFunc comparator);
-gint folders_sidebar_entry_get_count (FoldersSidebarEntry* self);
-void folders_sidebar_entry_set_count (FoldersSidebarEntry* self,
- gint value);
-gint sidebar_branch_get_child_count (SidebarBranch* self,
- SidebarEntry* parent);
-GFile* folders_sidebar_entry_get_dir (FoldersSidebarEntry* self);
-SidebarEntry* sidebar_branch_get_parent (SidebarBranch* self,
- SidebarEntry* entry);
-void sidebar_branch_prune (SidebarBranch* self,
- SidebarEntry* entry);
-static void folders_branch_finalize (GObject * obj);
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST;
-SidebarHeader* sidebar_header_new (const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type,
- const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-#define FOLDERS_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntryPrivate))
-SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
-static void folders_sidebar_entry_set_dir (FoldersSidebarEntry* self,
- GFile* value);
-static void folders_sidebar_entry_set_collation (FoldersSidebarEntry* self,
- const gchar* value);
-static gchar* folders_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-static gchar* folders_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static gchar* folders_sidebar_entry_real_to_string (SidebarSimplePageEntry* base);
-static gboolean folders_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base);
-static Page* folders_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-FoldersPage* folders_page_new (GFile* dir);
-FoldersPage* folders_page_construct (GType object_type,
- GFile* dir);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType folders_page_get_type (void) G_GNUC_CONST;
-gchar* sidebar_simple_page_entry_get_sidebar_icon (SidebarSimplePageEntry* self);
-static void folders_sidebar_entry_finalize (GObject * obj);
-static void _vala_folders_sidebar_entry_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_folders_sidebar_entry_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-
-
-static void
-_folders_branch_on_media_contents_altered_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 31 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_branch_on_media_contents_altered ((FoldersBranch*) self, added, removed);
-#line 635 "FoldersBranch.c"
-}
-
-
-static guint
-_file_hash_gee_hash_data_func (gconstpointer v,
- gpointer self)
-{
- guint result;
- result = file_hash ((GFile*) v);
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 647 "FoldersBranch.c"
-}
-
-
-static gboolean
-_file_equal_gee_equal_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gboolean result;
- result = file_equal ((GFile*) a, (GFile*) b);
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 660 "FoldersBranch.c"
-}
-
-
-static gint
-_folders_branch_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = folders_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 672 "FoldersBranch.c"
-}
-
-
-FoldersBranch*
-folders_branch_construct (GType object_type)
-{
- FoldersBranch * self = NULL;
- FoldersRoot* _tmp0_;
- FoldersRoot* _tmp1_;
- const gchar* _tmp2_;
- GFile* _tmp3_;
-#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = folders_root_new ();
-#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = (FoldersBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING | SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY, _folders_branch_comparator_gcompare_func, NULL);
-#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = g_get_home_dir ();
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (self->priv->home_dir);
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self->priv->home_dir = _tmp3_;
-#line 700 "FoldersBranch.c"
- {
- GeeIterator* _sources_it = NULL;
- MediaCollectionRegistry* _tmp4_;
- MediaCollectionRegistry* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- GeeIterator* _tmp8_;
- GeeIterator* _tmp9_;
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = media_collection_registry_get_instance ();
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = _tmp4_;
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp6_ = media_collection_registry_get_all (_tmp5_);
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp7_ = _tmp6_;
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp9_ = _tmp8_;
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp7_);
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _media_collection_registry_unref0 (_tmp5_);
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _sources_it = _tmp9_;
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- while (TRUE) {
-#line 729 "FoldersBranch.c"
- GeeIterator* _tmp10_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp11_;
- gpointer _tmp12_;
- MediaSourceCollection* _tmp13_;
- GeeCollection* _tmp14_;
- GeeCollection* _tmp15_;
- MediaSourceCollection* _tmp16_;
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp10_ = _sources_it;
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (!gee_iterator_next (_tmp10_)) {
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 744 "FoldersBranch.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp11_ = _sources_it;
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp12_ = gee_iterator_get (_tmp11_);
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- sources = (MediaSourceCollection*) _tmp12_;
-#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp13_ = sources;
-#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp14_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection));
-#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp15_ = _tmp14_;
-#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_branch_on_media_contents_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ITERABLE, GeeIterable), NULL);
-#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp15_);
-#line 25 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp16_ = sources;
-#line 25 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _folders_branch_on_media_contents_altered_data_collection_contents_altered, self, 0);
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _data_collection_unref0 (sources);
-#line 768 "FoldersBranch.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_sources_it);
-#line 772 "FoldersBranch.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return self;
-#line 776 "FoldersBranch.c"
-}
-
-
-FoldersBranch*
-folders_branch_new (void)
-{
-#line 12 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return folders_branch_construct (FOLDERS_TYPE_BRANCH);
-#line 785 "FoldersBranch.c"
-}
-
-
-static gint
-folders_branch_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- gint coll_key_equality = 0;
- GCompareFunc _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- gint _tmp5_;
-#line 34 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 34 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 35 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (a == b) {
-#line 36 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = 0;
-#line 36 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 811 "FoldersBranch.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = g_strcmp0;
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = folders_sidebar_entry_get_collation (G_TYPE_CHECK_INSTANCE_CAST (a, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry));
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = _tmp1_;
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = folders_sidebar_entry_get_collation (G_TYPE_CHECK_INSTANCE_CAST (b, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry));
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = _tmp3_;
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- coll_key_equality = _tmp0_ (_tmp2_, _tmp4_);
-#line 41 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = coll_key_equality;
-#line 41 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp5_ == 0) {
-#line 829 "FoldersBranch.c"
- GCompareFunc _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gint _tmp11_;
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp6_ = g_strcmp0;
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp7_ = sidebar_simple_page_entry_get_sidebar_name (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (a, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry));
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp8_ = _tmp7_;
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp9_ = sidebar_simple_page_entry_get_sidebar_name (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (b, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry));
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp10_ = _tmp9_;
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp11_ = _tmp6_ (_tmp8_, _tmp10_);
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_free0 (_tmp10_);
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_free0 (_tmp8_);
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = _tmp11_;
-#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 856 "FoldersBranch.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = coll_key_equality;
-#line 48 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 862 "FoldersBranch.c"
-}
-
-
-static void
-folders_branch_on_master_source_replaced (FoldersBranch* self,
- MediaSource* media_source,
- GFile* old_file,
- GFile* new_file)
-{
-#line 51 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (FOLDERS_IS_BRANCH (self));
-#line 51 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (media_source));
-#line 51 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (G_IS_FILE (old_file));
-#line 51 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (G_IS_FILE (new_file));
-#line 52 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_branch_remove_entry (self, old_file);
-#line 53 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_branch_add_entry (self, media_source);
-#line 884 "FoldersBranch.c"
-}
-
-
-static void
-_folders_branch_on_master_source_replaced_media_source_master_replaced (MediaSource* _sender,
- GFile* old_file,
- GFile* new_file,
- gpointer self)
-{
-#line 60 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_branch_on_master_source_replaced ((FoldersBranch*) self, _sender, old_file, new_file);
-#line 896 "FoldersBranch.c"
-}
-
-
-static void
-folders_branch_on_media_contents_altered (FoldersBranch* self,
- GeeIterable* added,
- GeeIterable* removed)
-{
-#line 56 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (FOLDERS_IS_BRANCH (self));
-#line 56 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
-#line 56 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 57 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (added != NULL) {
-#line 913 "FoldersBranch.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = gee_iterable_iterator (added);
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _object_it = _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- while (TRUE) {
-#line 923 "FoldersBranch.c"
- GeeIterator* _tmp1_;
- DataObject* object = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- DataObject* _tmp4_;
- DataObject* _tmp5_;
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = _object_it;
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 936 "FoldersBranch.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = _object_it;
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- object = (DataObject*) _tmp3_;
-#line 59 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = object;
-#line 59 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_branch_add_entry (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 60 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = object;
-#line 60 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource), "master-replaced", (GCallback) _folders_branch_on_master_source_replaced_media_source_master_replaced, self, 0);
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (object);
-#line 954 "FoldersBranch.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_object_it);
-#line 958 "FoldersBranch.c"
- }
- }
-#line 64 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (removed != NULL) {
-#line 963 "FoldersBranch.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp6_;
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp6_ = gee_iterable_iterator (removed);
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _object_it = _tmp6_;
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- while (TRUE) {
-#line 973 "FoldersBranch.c"
- GeeIterator* _tmp7_;
- DataObject* object = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- DataObject* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- DataObject* _tmp13_;
- guint _tmp14_;
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp7_ = _object_it;
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 989 "FoldersBranch.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp8_ = _object_it;
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- object = (DataObject*) _tmp9_;
-#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp10_ = object;
-#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp11_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp12_ = _tmp11_;
-#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_branch_remove_entry (self, _tmp12_);
-#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp12_);
-#line 67 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp13_ = object;
-#line 67 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_signal_parse_name ("master-replaced", TYPE_MEDIA_SOURCE, &_tmp14_, NULL, FALSE);
-#line 67 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _folders_branch_on_master_source_replaced_media_source_master_replaced, self);
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (object);
-#line 1015 "FoldersBranch.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_object_it);
-#line 1019 "FoldersBranch.c"
- }
- }
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 96 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1030 "FoldersBranch.c"
-}
-
-
-static void
-folders_branch_add_entry (FoldersBranch* self,
- MediaSource* media)
-{
- GFile* file = NULL;
- GFile* _tmp0_;
- GeeArrayList* elements = NULL;
- GeeArrayList* _tmp1_;
- GFile* parent = NULL;
- GFile* _tmp2_;
- GFile* _tmp3_;
- FoldersSidebarEntry* parent_entry = NULL;
-#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (FOLDERS_IS_BRANCH (self));
-#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (IS_MEDIA_SOURCE (media));
-#line 73 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = media_source_get_file (media);
-#line 73 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- file = _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 75 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- elements = _tmp1_;
-#line 78 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = file;
-#line 78 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = g_file_get_parent (_tmp2_);
-#line 78 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- parent = _tmp3_;
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- while (TRUE) {
-#line 1066 "FoldersBranch.c"
- gboolean _tmp4_ = FALSE;
- GFile* _tmp5_;
- GFile* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
- gboolean _tmp13_;
- GeeArrayList* _tmp14_;
- GFile* _tmp15_;
- GFile* _tmp16_;
- GFile* _tmp17_;
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = parent;
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp5_ != NULL) {
-#line 1082 "FoldersBranch.c"
- GFile* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp6_ = parent;
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp7_ = g_file_get_path (_tmp6_);
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp8_ = _tmp7_;
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = _tmp8_ != NULL;
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_free0 (_tmp8_);
-#line 1096 "FoldersBranch.c"
- } else {
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = FALSE;
-#line 1100 "FoldersBranch.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (!_tmp4_) {
-#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 1106 "FoldersBranch.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp9_ = parent;
-#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp10_ = self->priv->home_dir;
-#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp11_ = g_file_get_parent (_tmp10_);
-#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp12_ = _tmp11_;
-#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp13_ = g_file_equal (_tmp9_, _tmp12_);
-#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp12_);
-#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp13_) {
-#line 82 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 1124 "FoldersBranch.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp14_ = elements;
-#line 84 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp15_ = parent;
-#line 84 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 86 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp16_ = parent;
-#line 86 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp17_ = g_file_get_parent (_tmp16_);
-#line 86 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (parent);
-#line 86 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- parent = _tmp17_;
-#line 1140 "FoldersBranch.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- parent_entry = NULL;
-#line 1144 "FoldersBranch.c"
- {
- gint ctr = 0;
- GeeArrayList* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp18_ = elements;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp19_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp20_ = _tmp19_;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- ctr = _tmp20_ - 1;
-#line 1158 "FoldersBranch.c"
- {
- gboolean _tmp21_ = FALSE;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp21_ = TRUE;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- while (TRUE) {
-#line 1165 "FoldersBranch.c"
- gint _tmp23_;
- GFile* parent_dir = NULL;
- GeeArrayList* _tmp24_;
- gint _tmp25_;
- gpointer _tmp26_;
- FoldersSidebarEntry* old_parent_entry = NULL;
- FoldersSidebarEntry* _tmp27_;
- FoldersSidebarEntry* _tmp28_;
- GeeHashMap* _tmp29_;
- GFile* _tmp30_;
- gpointer _tmp31_;
- FoldersSidebarEntry* _tmp32_;
- gint _tmp44_;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (!_tmp21_) {
-#line 1181 "FoldersBranch.c"
- gint _tmp22_;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp22_ = ctr;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- ctr = _tmp22_ - 1;
-#line 1187 "FoldersBranch.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp21_ = FALSE;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp23_ = ctr;
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (!(_tmp23_ >= 0)) {
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 1197 "FoldersBranch.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp24_ = elements;
-#line 93 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp25_ = ctr;
-#line 93 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp26_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp25_);
-#line 93 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- parent_dir = (GFile*) _tmp26_;
-#line 96 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp27_ = parent_entry;
-#line 96 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp28_ = _g_object_ref0 (_tmp27_);
-#line 96 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- old_parent_entry = _tmp28_;
-#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp29_ = self->priv->entries;
-#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp30_ = parent_dir;
-#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp31_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_);
-#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (parent_entry);
-#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- parent_entry = (FoldersSidebarEntry*) _tmp31_;
-#line 99 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp32_ = parent_entry;
-#line 99 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp32_ == NULL) {
-#line 1227 "FoldersBranch.c"
- GFile* _tmp33_;
- FoldersSidebarEntry* _tmp34_;
- GeeHashMap* _tmp35_;
- GFile* _tmp36_;
- FoldersSidebarEntry* _tmp37_;
- SidebarEntry* _tmp38_ = NULL;
- FoldersSidebarEntry* _tmp39_;
- FoldersSidebarEntry* _tmp43_;
-#line 100 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp33_ = parent_dir;
-#line 100 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp34_ = folders_sidebar_entry_new (_tmp33_);
-#line 100 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (parent_entry);
-#line 100 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- parent_entry = _tmp34_;
-#line 101 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp35_ = self->priv->entries;
-#line 101 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp36_ = parent_dir;
-#line 101 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp37_ = parent_entry;
-#line 101 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp36_, _tmp37_);
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp39_ = old_parent_entry;
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp39_ == NULL) {
-#line 1256 "FoldersBranch.c"
- SidebarEntry* _tmp40_;
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp40_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp38_);
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp38_ = _tmp40_;
-#line 1264 "FoldersBranch.c"
- } else {
- FoldersSidebarEntry* _tmp41_;
- SidebarEntry* _tmp42_;
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp41_ = old_parent_entry;
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp38_);
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp38_ = _tmp42_;
-#line 1276 "FoldersBranch.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp43_ = parent_entry;
-#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp38_, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
-#line 99 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp38_);
-#line 1284 "FoldersBranch.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp44_ = ctr;
-#line 107 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp44_ == 0) {
-#line 1290 "FoldersBranch.c"
- FoldersSidebarEntry* _tmp45_;
- gint _tmp46_;
- gint _tmp47_;
-#line 108 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp45_ = parent_entry;
-#line 108 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp46_ = folders_sidebar_entry_get_count (_tmp45_);
-#line 108 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp47_ = _tmp46_;
-#line 108 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_set_count (_tmp45_, _tmp47_ + 1);
-#line 1302 "FoldersBranch.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (old_parent_entry);
-#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (parent_dir);
-#line 1308 "FoldersBranch.c"
- }
- }
- }
-#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (parent_entry);
-#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (parent);
-#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (elements);
-#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (file);
-#line 1320 "FoldersBranch.c"
-}
-
-
-static void
-folders_branch_remove_entry (FoldersBranch* self,
- GFile* file)
-{
- FoldersSidebarEntry* folder_entry = NULL;
- GeeHashMap* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gpointer _tmp3_;
- FoldersSidebarEntry* _tmp4_;
- FoldersSidebarEntry* _tmp5_;
- FoldersSidebarEntry* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gboolean _tmp9_ = FALSE;
- FoldersSidebarEntry* _tmp10_;
- FoldersSidebarEntry* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- FoldersSidebarEntry* prune_point = NULL;
- FoldersSidebarEntry* _tmp15_;
- FoldersSidebarEntry* _tmp16_;
- FoldersSidebarEntry* _tmp17_;
- FoldersSidebarEntry* _tmp37_;
-#line 112 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (FOLDERS_IS_BRANCH (self));
-#line 112 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = self->priv->entries;
-#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = g_file_get_parent (file);
-#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = _tmp1_;
-#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_);
-#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = (FoldersSidebarEntry*) _tmp3_;
-#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp2_);
-#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folder_entry = _tmp4_;
-#line 114 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = folder_entry;
-#line 114 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp5_ == NULL) {
-#line 115 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (folder_entry);
-#line 115 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return;
-#line 1374 "FoldersBranch.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp6_ = folder_entry;
-#line 117 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp7_ = folders_sidebar_entry_get_count (_tmp6_);
-#line 117 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp8_ = _tmp7_;
-#line 117 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _vala_assert (_tmp8_ > 0, "folder_entry.count > 0");
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp10_ = folder_entry;
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp11_ = folder_entry;
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp12_ = folders_sidebar_entry_get_count (_tmp11_);
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp13_ = _tmp12_;
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_set_count (_tmp11_, _tmp13_ - 1);
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if ((_tmp13_ - 1) > 0) {
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp9_ = TRUE;
-#line 1398 "FoldersBranch.c"
- } else {
- FoldersSidebarEntry* _tmp14_;
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp14_ = folder_entry;
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp9_ = sidebar_branch_get_child_count (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SIDEBAR_TYPE_ENTRY, SidebarEntry)) > 0;
-#line 1405 "FoldersBranch.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp9_) {
-#line 121 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (folder_entry);
-#line 121 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return;
-#line 1413 "FoldersBranch.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp15_ = folder_entry;
-#line 124 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
-#line 124 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- prune_point = _tmp16_;
-#line 125 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp17_ = prune_point;
-#line 125 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _vala_assert (_tmp17_ != NULL, "prune_point != null");
-#line 1425 "FoldersBranch.c"
- {
- gboolean _tmp18_ = FALSE;
-#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp18_ = TRUE;
-#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- while (TRUE) {
-#line 1432 "FoldersBranch.c"
- gboolean removed = FALSE;
- GeeHashMap* _tmp19_;
- FoldersSidebarEntry* _tmp20_;
- GFile* _tmp21_;
- GFile* _tmp22_;
- gboolean _tmp23_;
- gboolean _tmp24_;
- FoldersSidebarEntry* parent = NULL;
- FoldersSidebarEntry* _tmp25_;
- SidebarEntry* _tmp26_;
- FoldersSidebarEntry* _tmp27_;
- gboolean _tmp28_ = FALSE;
- gboolean _tmp29_ = FALSE;
- FoldersSidebarEntry* _tmp30_;
- FoldersSidebarEntry* _tmp35_;
- FoldersSidebarEntry* _tmp36_;
-#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (!_tmp18_) {
-#line 1451 "FoldersBranch.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp18_ = FALSE;
-#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp19_ = self->priv->entries;
-#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp20_ = prune_point;
-#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp21_ = folders_sidebar_entry_get_dir (_tmp20_);
-#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp22_ = _tmp21_;
-#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp23_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, NULL);
-#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- removed = _tmp23_;
-#line 129 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp24_ = removed;
-#line 129 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _vala_assert (_tmp24_, "removed");
-#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp25_ = prune_point;
-#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp26_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp27_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, FOLDERS_TYPE_SIDEBAR_ENTRY) ? ((FoldersSidebarEntry*) _tmp26_) : NULL;
-#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp27_ == NULL) {
-#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp26_);
-#line 1481 "FoldersBranch.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- parent = _tmp27_;
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp30_ = parent;
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp30_ == NULL) {
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp29_ = TRUE;
-#line 1491 "FoldersBranch.c"
- } else {
- FoldersSidebarEntry* _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp31_ = parent;
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp32_ = folders_sidebar_entry_get_count (_tmp31_);
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp33_ = _tmp32_;
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp29_ = _tmp33_ != 0;
-#line 1504 "FoldersBranch.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp29_) {
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp28_ = TRUE;
-#line 1510 "FoldersBranch.c"
- } else {
- FoldersSidebarEntry* _tmp34_;
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp34_ = parent;
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp28_ = sidebar_branch_get_child_count (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, SIDEBAR_TYPE_ENTRY, SidebarEntry)) > 1;
-#line 1517 "FoldersBranch.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp28_) {
-#line 133 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (parent);
-#line 133 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 1525 "FoldersBranch.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp35_ = parent;
-#line 135 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp36_ = _g_object_ref0 (_tmp35_);
-#line 135 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (prune_point);
-#line 135 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- prune_point = _tmp36_;
-#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (parent);
-#line 1537 "FoldersBranch.c"
- }
- }
-#line 138 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp37_ = prune_point;
-#line 138 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 112 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (prune_point);
-#line 112 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (folder_entry);
-#line 1548 "FoldersBranch.c"
-}
-
-
-static void
-folders_branch_class_init (FoldersBranchClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_branch_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_type_class_add_private (klass, sizeof (FoldersBranchPrivate));
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = folders_branch_finalize;
-#line 1561 "FoldersBranch.c"
-}
-
-
-static void
-folders_branch_instance_init (FoldersBranch * self)
-{
- GeeHashMap* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self->priv = FOLDERS_BRANCH_GET_PRIVATE (self);
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, FOLDERS_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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/FoldersBranch.vala"
- self->priv->entries = _tmp0_;
-#line 1575 "FoldersBranch.c"
-}
-
-
-static void
-folders_branch_finalize (GObject * obj)
-{
- FoldersBranch * self;
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLDERS_TYPE_BRANCH, FoldersBranch);
-#line 1585 "FoldersBranch.c"
- {
- GeeIterator* _sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = _tmp2_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = _tmp4_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _sources_it = _tmp5_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- while (TRUE) {
-#line 1614 "FoldersBranch.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
- guint _tmp10_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp6_ = _sources_it;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 1627 "FoldersBranch.c"
- }
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp7_ = _sources_it;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- sources = (MediaSourceCollection*) _tmp8_;
-#line 31 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp9_ = sources;
-#line 31 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 31 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _folders_branch_on_media_contents_altered_data_collection_contents_altered, self);
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _data_collection_unref0 (sources);
-#line 1643 "FoldersBranch.c"
- }
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (_sources_it);
-#line 1647 "FoldersBranch.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (self->priv->entries);
-#line 10 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (self->priv->home_dir);
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- G_OBJECT_CLASS (folders_branch_parent_class)->finalize (obj);
-#line 1655 "FoldersBranch.c"
-}
-
-
-GType
-folders_branch_get_type (void)
-{
- static volatile gsize folders_branch_type_id__volatile = 0;
- if (g_once_init_enter (&folders_branch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FoldersBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersBranch), 0, (GInstanceInitFunc) folders_branch_instance_init, NULL };
- GType folders_branch_type_id;
- folders_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "FoldersBranch", &g_define_type_info, 0);
- g_once_init_leave (&folders_branch_type_id__volatile, folders_branch_type_id);
- }
- return folders_branch_type_id__volatile;
-}
-
-
-FoldersRoot*
-folders_root_construct (GType object_type)
-{
- FoldersRoot * self = NULL;
-#line 144 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = (FoldersRoot*) sidebar_header_construct (object_type, _ ("Folders"), _ ("Browse the library’s folder structure"), TRUE);
-#line 143 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return self;
-#line 1681 "FoldersBranch.c"
-}
-
-
-FoldersRoot*
-folders_root_new (void)
-{
-#line 143 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return folders_root_construct (FOLDERS_TYPE_ROOT);
-#line 1690 "FoldersBranch.c"
-}
-
-
-static void
-folders_root_class_init (FoldersRootClass * klass)
-{
-#line 142 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_root_parent_class = g_type_class_peek_parent (klass);
-#line 1699 "FoldersBranch.c"
-}
-
-
-static void
-folders_root_instance_init (FoldersRoot * self)
-{
-}
-
-
-GType
-folders_root_get_type (void)
-{
- static volatile gsize folders_root_type_id__volatile = 0;
- if (g_once_init_enter (&folders_root_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FoldersRootClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_root_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersRoot), 0, (GInstanceInitFunc) folders_root_instance_init, NULL };
- GType folders_root_type_id;
- folders_root_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "FoldersRoot", &g_define_type_info, 0);
- g_once_init_leave (&folders_root_type_id__volatile, folders_root_type_id);
- }
- return folders_root_type_id__volatile;
-}
-
-
-FoldersSidebarEntry*
-folders_sidebar_entry_construct (GType object_type,
- GFile* dir)
-{
- FoldersSidebarEntry * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 169 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_val_if_fail (G_IS_FILE (dir), NULL);
-#line 169 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = (FoldersSidebarEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 170 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_set_dir (self, dir);
-#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = _tmp0_;
-#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = g_utf8_collate_key_for_filename (_tmp1_, (gssize) -1);
-#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = _tmp2_;
-#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_set_collation (self, _tmp3_);
-#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_free0 (_tmp3_);
-#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_free0 (_tmp1_);
-#line 169 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return self;
-#line 1754 "FoldersBranch.c"
-}
-
-
-FoldersSidebarEntry*
-folders_sidebar_entry_new (GFile* dir)
-{
-#line 169 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return folders_sidebar_entry_construct (FOLDERS_TYPE_SIDEBAR_ENTRY, dir);
-#line 1763 "FoldersBranch.c"
-}
-
-
-static gchar*
-folders_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- FoldersSidebarEntry * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
-#line 174 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry);
-#line 175 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = self->priv->_dir;
-#line 175 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = g_file_get_basename (_tmp0_);
-#line 175 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = _tmp1_;
-#line 175 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 1784 "FoldersBranch.c"
-}
-
-
-static gchar*
-folders_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- FoldersSidebarEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gint _tmp1_;
- gint _tmp2_;
- gchar* _tmp5_;
-#line 178 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry);
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = folders_sidebar_entry_get_count (self);
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = _tmp1_;
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp2_ == 0) {
-#line 1805 "FoldersBranch.c"
- const gchar* _tmp3_;
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = folders_icon;
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = _tmp3_;
-#line 1811 "FoldersBranch.c"
- } else {
- const gchar* _tmp4_;
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = folders_have_photos_icon;
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = _tmp4_;
-#line 1818 "FoldersBranch.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = g_strdup (_tmp0_);
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = _tmp5_;
-#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 1826 "FoldersBranch.c"
-}
-
-
-static gchar*
-folders_sidebar_entry_real_to_string (SidebarSimplePageEntry* base)
-{
- FoldersSidebarEntry * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
-#line 182 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry);
-#line 183 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = self->priv->_dir;
-#line 183 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = g_file_get_path (_tmp0_);
-#line 183 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = _tmp1_;
-#line 183 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 1847 "FoldersBranch.c"
-}
-
-
-static gboolean
-folders_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base)
-{
- FoldersSidebarEntry * self;
- gboolean result = FALSE;
-#line 186 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry);
-#line 187 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = TRUE;
-#line 187 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 1862 "FoldersBranch.c"
-}
-
-
-static Page*
-folders_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- FoldersSidebarEntry * self;
- Page* result = NULL;
- GFile* _tmp0_;
- FoldersPage* _tmp1_;
-#line 190 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry);
-#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = self->priv->_dir;
-#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = folders_page_new (_tmp0_);
-#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_object_ref_sink (_tmp1_);
-#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 1885 "FoldersBranch.c"
-}
-
-
-GFile*
-folders_sidebar_entry_get_dir (FoldersSidebarEntry* self)
-{
- GFile* result;
- GFile* _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_val_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self), NULL);
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = self->priv->_dir;
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 1902 "FoldersBranch.c"
-}
-
-
-static void
-folders_sidebar_entry_set_dir (FoldersSidebarEntry* self,
- GFile* value)
-{
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self));
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (folders_sidebar_entry_get_dir (self) != value) {
-#line 1914 "FoldersBranch.c"
- GFile* _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (self->priv->_dir);
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self->priv->_dir = _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY]);
-#line 1924 "FoldersBranch.c"
- }
-}
-
-
-const gchar*
-folders_sidebar_entry_get_collation (FoldersSidebarEntry* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_val_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self), NULL);
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = self->priv->_collation;
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 1942 "FoldersBranch.c"
-}
-
-
-static void
-folders_sidebar_entry_set_collation (FoldersSidebarEntry* self,
- const gchar* value)
-{
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self));
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (g_strcmp0 (value, folders_sidebar_entry_get_collation (self)) != 0) {
-#line 1954 "FoldersBranch.c"
- gchar* _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = g_strdup (value);
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_free0 (self->priv->_collation);
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self->priv->_collation = _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY]);
-#line 1964 "FoldersBranch.c"
- }
-}
-
-
-gint
-folders_sidebar_entry_get_count (FoldersSidebarEntry* self)
-{
- gint result;
- gint _tmp0_;
-#line 154 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_val_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self), 0);
-#line 155 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = self->priv->_count;
-#line 155 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- result = _tmp0_;
-#line 155 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- return result;
-#line 1982 "FoldersBranch.c"
-}
-
-
-void
-folders_sidebar_entry_set_count (FoldersSidebarEntry* self,
- gint value)
-{
- gint prev_count = 0;
- gint _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_;
-#line 158 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_return_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self));
-#line 159 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp0_ = self->priv->_count;
-#line 159 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- prev_count = _tmp0_;
-#line 160 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self->priv->_count = value;
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp3_ = prev_count;
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp3_ == 0) {
-#line 2007 "FoldersBranch.c"
- gint _tmp4_;
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp4_ = self->priv->_count;
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = _tmp4_ == 1;
-#line 2013 "FoldersBranch.c"
- } else {
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp2_ = FALSE;
-#line 2017 "FoldersBranch.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp2_) {
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = TRUE;
-#line 2023 "FoldersBranch.c"
- } else {
- gboolean _tmp5_ = FALSE;
- gint _tmp6_;
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp6_ = prev_count;
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp6_ == 1) {
-#line 2031 "FoldersBranch.c"
- gint _tmp7_;
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp7_ = self->priv->_count;
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = _tmp7_ == 0;
-#line 2037 "FoldersBranch.c"
- } else {
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp5_ = FALSE;
-#line 2041 "FoldersBranch.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp1_ = _tmp5_;
-#line 2045 "FoldersBranch.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- if (_tmp1_) {
-#line 2049 "FoldersBranch.c"
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 164 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp8_ = sidebar_simple_page_entry_get_sidebar_icon (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry));
-#line 164 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _tmp9_ = _tmp8_;
-#line 164 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-icon-changed", _tmp9_);
-#line 164 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_free0 (_tmp9_);
-#line 2060 "FoldersBranch.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY]);
-#line 2064 "FoldersBranch.c"
-}
-
-
-static void
-folders_sidebar_entry_class_init (FoldersSidebarEntryClass * klass)
-{
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_type_class_add_private (klass, sizeof (FoldersSidebarEntryPrivate));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) folders_sidebar_entry_real_get_sidebar_name;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) folders_sidebar_entry_real_get_sidebar_icon;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->to_string = (gchar* (*) (SidebarSimplePageEntry *)) folders_sidebar_entry_real_to_string;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) folders_sidebar_entry_real_create_page;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_folders_sidebar_entry_get_property;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_folders_sidebar_entry_set_property;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = folders_sidebar_entry_finalize;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY] = g_param_spec_object ("dir", "dir", "dir", g_file_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY] = g_param_spec_string ("collation", "collation", "collation", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY] = g_param_spec_int ("count", "count", "count", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
-#line 2095 "FoldersBranch.c"
-}
-
-
-static void
-folders_sidebar_entry_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface)
-{
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- iface->expand_on_select = (gboolean (*) (SidebarExpandableEntry *)) folders_sidebar_entry_real_expand_on_select;
-#line 2106 "FoldersBranch.c"
-}
-
-
-static void
-folders_sidebar_entry_instance_init (FoldersSidebarEntry * self)
-{
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self->priv = FOLDERS_SIDEBAR_ENTRY_GET_PRIVATE (self);
-#line 152 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self->priv->_count = 0;
-#line 2117 "FoldersBranch.c"
-}
-
-
-static void
-folders_sidebar_entry_finalize (GObject * obj)
-{
- FoldersSidebarEntry * self;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry);
-#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_object_unref0 (self->priv->_dir);
-#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- _g_free0 (self->priv->_collation);
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- G_OBJECT_CLASS (folders_sidebar_entry_parent_class)->finalize (obj);
-#line 2133 "FoldersBranch.c"
-}
-
-
-GType
-folders_sidebar_entry_get_type (void)
-{
- static volatile gsize folders_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&folders_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FoldersSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersSidebarEntry), 0, (GInstanceInitFunc) folders_sidebar_entry_instance_init, NULL };
- static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) folders_sidebar_entry_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType folders_sidebar_entry_type_id;
- folders_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "FoldersSidebarEntry", &g_define_type_info, 0);
- g_type_add_interface_static (folders_sidebar_entry_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info);
- g_once_init_leave (&folders_sidebar_entry_type_id__volatile, folders_sidebar_entry_type_id);
- }
- return folders_sidebar_entry_type_id__volatile;
-}
-
-
-static void
-_vala_folders_sidebar_entry_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- FoldersSidebarEntry * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry);
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- switch (property_id) {
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- case FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY:
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_value_set_object (value, folders_sidebar_entry_get_dir (self));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- case FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY:
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_value_set_string (value, folders_sidebar_entry_get_collation (self));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- case FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY:
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- g_value_set_int (value, folders_sidebar_entry_get_count (self));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 2181 "FoldersBranch.c"
- default:
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 2187 "FoldersBranch.c"
- }
-}
-
-
-static void
-_vala_folders_sidebar_entry_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- FoldersSidebarEntry * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry);
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- switch (property_id) {
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- case FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY:
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_set_dir (self, g_value_get_object (value));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- case FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY:
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_set_collation (self, g_value_get_string (value));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- case FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY:
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- folders_sidebar_entry_set_count (self, g_value_get_int (value));
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 2220 "FoldersBranch.c"
- default:
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala"
- break;
-#line 2226 "FoldersBranch.c"
- }
-}
-
-
-
diff --git a/src/folders/FoldersPage.c b/src/folders/FoldersPage.c
deleted file mode 100644
index 095b114..0000000
--- a/src/folders/FoldersPage.c
+++ /dev/null
@@ -1,1108 +0,0 @@
-/* FoldersPage.c generated by valac 0.40.4, the Vala compiler
- * generated from FoldersPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <gdk/gdk.h>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-typedef struct _CollectionPagePrivate CollectionPagePrivate;
-
-#define FOLDERS_TYPE_PAGE (folders_page_get_type ())
-#define FOLDERS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_PAGE, FoldersPage))
-#define FOLDERS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_PAGE, FoldersPageClass))
-#define FOLDERS_IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_PAGE))
-#define FOLDERS_IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_PAGE))
-#define FOLDERS_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_PAGE, FoldersPageClass))
-
-typedef struct _FoldersPage FoldersPage;
-typedef struct _FoldersPageClass FoldersPageClass;
-typedef struct _FoldersPagePrivate FoldersPagePrivate;
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ())
-#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager))
-#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER))
-#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER))
-#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-
-typedef struct _CollectionViewManager CollectionViewManager;
-typedef struct _CollectionViewManagerClass CollectionViewManagerClass;
-
-#define FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER (folders_page_folder_view_manager_get_type ())
-#define FOLDERS_PAGE_FOLDER_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManager))
-#define FOLDERS_PAGE_FOLDER_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManagerClass))
-#define FOLDERS_PAGE_IS_FOLDER_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER))
-#define FOLDERS_PAGE_IS_FOLDER_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER))
-#define FOLDERS_PAGE_FOLDER_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManagerClass))
-
-typedef struct _FoldersPageFolderViewManager FoldersPageFolderViewManager;
-typedef struct _FoldersPageFolderViewManagerClass FoldersPageFolderViewManagerClass;
-enum {
- FOLDERS_PAGE_0_PROPERTY,
- FOLDERS_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* folders_page_properties[FOLDERS_PAGE_NUM_PROPERTIES];
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate;
-typedef struct _FoldersPageFolderViewManagerPrivate FoldersPageFolderViewManagerPrivate;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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;
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _CollectionPage {
- MediaPage parent_instance;
- CollectionPagePrivate * priv;
-};
-
-struct _CollectionPageClass {
- MediaPageClass parent_class;
-};
-
-struct _FoldersPage {
- CollectionPage parent_instance;
- FoldersPagePrivate * priv;
-};
-
-struct _FoldersPageClass {
- CollectionPageClass parent_class;
-};
-
-struct _FoldersPagePrivate {
- FoldersPageFolderViewManager* view_manager;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _CollectionViewManager {
- ViewManager parent_instance;
- CollectionViewManagerPrivate * priv;
-};
-
-struct _CollectionViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _FoldersPageFolderViewManager {
- CollectionViewManager parent_instance;
- FoldersPageFolderViewManagerPrivate * priv;
- GFile* dir;
-};
-
-struct _FoldersPageFolderViewManagerClass {
- CollectionViewManagerClass parent_class;
-};
-
-
-static gpointer folders_page_parent_class = NULL;
-static gpointer folders_page_folder_view_manager_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType folders_page_get_type (void) G_GNUC_CONST;
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-GType collection_view_manager_get_type (void) G_GNUC_CONST;
-static GType folders_page_folder_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define FOLDERS_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FOLDERS_TYPE_PAGE, FoldersPagePrivate))
-FoldersPage* folders_page_new (GFile* dir);
-FoldersPage* folders_page_construct (GType object_type,
- GFile* dir);
-CollectionPage* collection_page_construct (GType object_type,
- const gchar* page_name);
-static FoldersPageFolderViewManager* folders_page_folder_view_manager_new (FoldersPage* owner,
- GFile* dir);
-static FoldersPageFolderViewManager* folders_page_folder_view_manager_construct (GType object_type,
- FoldersPage* owner,
- GFile* dir);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-static void folders_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void folders_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by);
-void configuration_facade_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-CollectionViewManager* collection_view_manager_new (CollectionPage* page);
-CollectionViewManager* collection_view_manager_construct (GType object_type,
- CollectionPage* page);
-static gboolean folders_page_folder_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GFile* media_source_get_file (MediaSource* self);
-static void folders_page_folder_view_manager_finalize (ViewManager * obj);
-static void folders_page_finalize (GObject * obj);
-
-
-FoldersPage*
-folders_page_construct (GType object_type,
- GFile* dir)
-{
- FoldersPage * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- FoldersPageFolderViewManager* _tmp2_;
-#line 24 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- g_return_val_if_fail (G_IS_FILE (dir), NULL);
-#line 25 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 25 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp1_ = _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self = (FoldersPage*) collection_page_construct (object_type, _tmp1_);
-#line 25 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _g_free0 (_tmp1_);
-#line 27 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp2_ = folders_page_folder_view_manager_new (self, dir);
-#line 27 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _view_manager_unref0 (self->priv->view_manager);
-#line 27 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self->priv->view_manager = _tmp2_;
-#line 776 "FoldersPage.c"
- {
- GeeIterator* _sources_it = NULL;
- MediaCollectionRegistry* _tmp3_;
- MediaCollectionRegistry* _tmp4_;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
- GeeIterator* _tmp8_;
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp3_ = media_collection_registry_get_instance ();
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp4_ = _tmp3_;
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp5_ = media_collection_registry_get_all (_tmp4_);
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp6_ = _tmp5_;
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp8_ = _tmp7_;
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _media_collection_registry_unref0 (_tmp4_);
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _sources_it = _tmp8_;
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- while (TRUE) {
-#line 805 "FoldersPage.c"
- GeeIterator* _tmp9_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- MediaSourceCollection* _tmp14_;
- FoldersPageFolderViewManager* _tmp15_;
- ViewCollectionMonitor* _tmp16_;
- ViewCollectionMonitor* _tmp17_;
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp9_ = _sources_it;
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- break;
-#line 822 "FoldersPage.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp10_ = _sources_it;
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- sources = (MediaSourceCollection*) _tmp11_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp13_ = _tmp12_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp14_ = sources;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp15_ = self->priv->view_manager;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp16_ = view_collection_monitor_source_collection (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL);
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp17_ = _tmp16_;
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _view_collection_monitor_unref0 (_tmp17_);
-#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _data_collection_unref0 (sources);
-#line 848 "FoldersPage.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _g_object_unref0 (_sources_it);
-#line 852 "FoldersPage.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- return self;
-#line 856 "FoldersPage.c"
-}
-
-
-FoldersPage*
-folders_page_new (GFile* dir)
-{
-#line 24 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- return folders_page_construct (FOLDERS_TYPE_PAGE, dir);
-#line 865 "FoldersPage.c"
-}
-
-
-static void
-folders_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by)
-{
- FoldersPage * self;
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_ = 0;
-#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_PAGE, FoldersPage);
-#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp1_ = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_);
-#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _vala_sort_order = _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _vala_sort_by = _tmp3_;
-#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- if (sort_order) {
-#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- *sort_order = _vala_sort_order;
-#line 899 "FoldersPage.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- if (sort_by) {
-#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- *sort_by = _vala_sort_by;
-#line 905 "FoldersPage.c"
- }
-}
-
-
-static void
-folders_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by)
-{
- FoldersPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 37 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_PAGE, FoldersPage);
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp1_ = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by);
-#line 38 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 928 "FoldersPage.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 14 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- return self ? g_object_ref (self) : NULL;
-#line 937 "FoldersPage.c"
-}
-
-
-static FoldersPageFolderViewManager*
-folders_page_folder_view_manager_construct (GType object_type,
- FoldersPage* owner,
- GFile* dir)
-{
- FoldersPageFolderViewManager* self = NULL;
- GFile* _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- g_return_val_if_fail (FOLDERS_IS_PAGE (owner), NULL);
-#line 11 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- g_return_val_if_fail (G_IS_FILE (dir), NULL);
-#line 12 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self = (FoldersPageFolderViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, TYPE_COLLECTION_PAGE, CollectionPage));
-#line 14 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp0_ = _g_object_ref0 (dir);
-#line 14 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _g_object_unref0 (self->dir);
-#line 14 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self->dir = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- return self;
-#line 962 "FoldersPage.c"
-}
-
-
-static FoldersPageFolderViewManager*
-folders_page_folder_view_manager_new (FoldersPage* owner,
- GFile* dir)
-{
-#line 11 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- return folders_page_folder_view_manager_construct (FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, owner, dir);
-#line 972 "FoldersPage.c"
-}
-
-
-static gboolean
-folders_page_folder_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source)
-{
- FoldersPageFolderViewManager * self;
- gboolean result = FALSE;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gboolean _tmp3_;
-#line 17 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManager);
-#line 17 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp1_ = _tmp0_;
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp2_ = self->dir;
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _tmp3_ = g_file_has_prefix (_tmp1_, _tmp2_);
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- result = _tmp3_;
-#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- return result;
-#line 1004 "FoldersPage.c"
-}
-
-
-static void
-folders_page_folder_view_manager_class_init (FoldersPageFolderViewManagerClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- folders_page_folder_view_manager_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- ((ViewManagerClass *) klass)->finalize = folders_page_folder_view_manager_finalize;
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) folders_page_folder_view_manager_real_include_in_view;
-#line 1017 "FoldersPage.c"
-}
-
-
-static void
-folders_page_folder_view_manager_instance_init (FoldersPageFolderViewManager * self)
-{
-}
-
-
-static void
-folders_page_folder_view_manager_finalize (ViewManager * obj)
-{
- FoldersPageFolderViewManager * self;
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManager);
-#line 9 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _g_object_unref0 (self->dir);
-#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- VIEW_MANAGER_CLASS (folders_page_folder_view_manager_parent_class)->finalize (obj);
-#line 1037 "FoldersPage.c"
-}
-
-
-static GType
-folders_page_folder_view_manager_get_type (void)
-{
- static volatile gsize folders_page_folder_view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&folders_page_folder_view_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FoldersPageFolderViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_page_folder_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersPageFolderViewManager), 0, (GInstanceInitFunc) folders_page_folder_view_manager_instance_init, NULL };
- GType folders_page_folder_view_manager_type_id;
- folders_page_folder_view_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "FoldersPageFolderViewManager", &g_define_type_info, 0);
- g_once_init_leave (&folders_page_folder_view_manager_type_id__volatile, folders_page_folder_view_manager_type_id);
- }
- return folders_page_folder_view_manager_type_id__volatile;
-}
-
-
-static void
-folders_page_class_init (FoldersPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- folders_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- g_type_class_add_private (klass, sizeof (FoldersPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) folders_page_real_get_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) folders_page_real_set_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- G_OBJECT_CLASS (klass)->finalize = folders_page_finalize;
-#line 1068 "FoldersPage.c"
-}
-
-
-static void
-folders_page_instance_init (FoldersPage * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self->priv = FOLDERS_PAGE_GET_PRIVATE (self);
-#line 1077 "FoldersPage.c"
-}
-
-
-static void
-folders_page_finalize (GObject * obj)
-{
- FoldersPage * self;
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLDERS_TYPE_PAGE, FoldersPage);
-#line 22 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- _view_manager_unref0 (self->priv->view_manager);
-#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala"
- G_OBJECT_CLASS (folders_page_parent_class)->finalize (obj);
-#line 1091 "FoldersPage.c"
-}
-
-
-GType
-folders_page_get_type (void)
-{
- static volatile gsize folders_page_type_id__volatile = 0;
- if (g_once_init_enter (&folders_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FoldersPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersPage), 0, (GInstanceInitFunc) folders_page_instance_init, NULL };
- GType folders_page_type_id;
- folders_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "FoldersPage", &g_define_type_info, 0);
- g_once_init_leave (&folders_page_type_id__volatile, folders_page_type_id);
- }
- return folders_page_type_id__volatile;
-}
-
-
-
diff --git a/src/graphics-processor.c b/src/graphics-processor.c
deleted file mode 100644
index da3b2d1..0000000
--- a/src/graphics-processor.c
+++ /dev/null
@@ -1,1180 +0,0 @@
-/* graphics-processor.c generated by valac 0.40.4, the Vala compiler
- * generated from graphics-processor.vala, do not modify */
-
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include "shotwell-graphics-processor.h"
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <float.h>
-#include <math.h>
-#include <gio/gio.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL)))
-#define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
-#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
-#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
-#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL)))
-
-
-extern gchar* input_file;
-gchar* input_file = NULL;
-extern gchar* output_file;
-gchar* output_file = NULL;
-extern gchar* pipeline;
-gchar* pipeline = NULL;
-extern gboolean auto_enhance;
-gboolean auto_enhance = FALSE;
-extern gchar* format;
-gchar* format = NULL;
-extern gint jobs;
-gint jobs = -1;
-
-GeeHashMap* marshall_all_transformations (const gchar* filename);
-gint _vala_main (gchar** args,
- int args_length1);
-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);
-
-const GOptionEntry options[7] = {{"input", 'i', 0, G_OPTION_ARG_FILENAME, &input_file, "FILE to process", "FILE"}, {"output", 'o', 0, G_OPTION_ARG_FILENAME, &output_file, "destination FILE", "FILE"}, {"pipeline", 'p', 0, G_OPTION_ARG_FILENAME, &pipeline, "graphics PIPELINE to run", "PIPELINE"}, {"auto-enance", 'a', 0, G_OPTION_ARG_NONE, &auto_enhance, "run auto-enhance on input file", NULL}, {"format", 'f', 0, G_OPTION_ARG_STRING, &format, "Save output file in specific format [png, jpeg (default)]", NULL}, {"jobs", 'j', 0, G_OPTION_ARG_INT, &jobs, "Number of parallel jobs to run on an image", NULL}, {NULL, (gchar) 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}};
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 75 "graphics-processor.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 84 "graphics-processor.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 105 "graphics-processor.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 109 "graphics-processor.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 115 "graphics-processor.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 125 "graphics-processor.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 129 "graphics-processor.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 137 "graphics-processor.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 144 "graphics-processor.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 148 "graphics-processor.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 154 "graphics-processor.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 166 "graphics-processor.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 189 "graphics-processor.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 193 "graphics-processor.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 199 "graphics-processor.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 203 "graphics-processor.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 207 "graphics-processor.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 215 "graphics-processor.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 243 "graphics-processor.c"
- goto __catch1_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 252 "graphics-processor.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 266 "graphics-processor.c"
- goto __catch1_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 277 "graphics-processor.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 291 "graphics-processor.c"
- }
- goto __finally1;
- __catch1_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 305 "graphics-processor.c"
- }
- __finally1:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 316 "graphics-processor.c"
- }
-}
-
-
-GeeHashMap*
-marshall_all_transformations (const gchar* filename)
-{
- GeeHashMap* result = NULL;
- GError * _inner_error_ = NULL;
-#line 18 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_return_val_if_fail (filename != NULL, NULL);
-#line 328 "graphics-processor.c"
- {
- GKeyFile* keyfile = NULL;
- GKeyFile* _tmp0_;
- GeeHashMap* map = NULL;
- GeeHashMap* _tmp13_;
- gchar** objects = NULL;
- GKeyFile* _tmp14_;
- gsize _tmp15_;
- gchar** _tmp16_;
- gint objects_length1;
- gint _objects_size_;
- gchar** _tmp17_;
- gint _tmp17__length1;
-#line 20 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp0_ = g_key_file_new ();
-#line 20 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- keyfile = _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (g_str_has_prefix (filename, "string:")) {
-#line 348 "graphics-processor.c"
- gchar* data = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GKeyFile* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp1_ = string_substring (filename, (glong) 7, (glong) -1);
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp2_ = _tmp1_;
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp3_ = string_replace (_tmp2_, "&", "\n");
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp4_ = _tmp3_;
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp5_ = g_strconcat ("[adjustments]\n", _tmp4_, NULL);
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp6_ = _tmp5_;
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (_tmp4_);
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (_tmp2_);
-#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- data = _tmp6_;
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp7_ = keyfile;
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp8_ = data;
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp9_ = data;
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp10_ = strlen (_tmp9_);
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp11_ = _tmp10_;
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_key_file_load_from_data (_tmp7_, _tmp8_, (gsize) _tmp11_, G_KEY_FILE_NONE, &_inner_error_);
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (data);
-#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_key_file_unref0 (keyfile);
-#line 397 "graphics-processor.c"
- goto __catch0_g_error;
- }
-#line 21 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (data);
-#line 402 "graphics-processor.c"
- } else {
- GKeyFile* _tmp12_;
-#line 25 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp12_ = keyfile;
-#line 25 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_key_file_load_from_file (_tmp12_, filename, G_KEY_FILE_NONE, &_inner_error_);
-#line 25 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 25 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_key_file_unref0 (keyfile);
-#line 413 "graphics-processor.c"
- goto __catch0_g_error;
- }
- }
-#line 28 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp13_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, (GDestroyNotify) key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 28 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- map = _tmp13_;
-#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp14_ = keyfile;
-#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp16_ = g_key_file_get_groups (_tmp14_, &_tmp15_);
-#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- objects = _tmp16_;
-#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- objects_length1 = _tmp15_;
-#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _objects_size_ = objects_length1;
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp17_ = objects;
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp17__length1 = objects_length1;
-#line 435 "graphics-processor.c"
- {
- gchar** object_collection = NULL;
- gint object_collection_length1 = 0;
- gint _object_collection_size_ = 0;
- gint object_it = 0;
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- object_collection = _tmp17_;
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- object_collection_length1 = _tmp17__length1;
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- for (object_it = 0; object_it < _tmp17__length1; object_it = object_it + 1) {
-#line 447 "graphics-processor.c"
- gchar* _tmp18_;
- gchar* object = NULL;
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp18_ = g_strdup (object_collection[object_it]);
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- object = _tmp18_;
-#line 454 "graphics-processor.c"
- {
- gchar** keys = NULL;
- GKeyFile* _tmp19_;
- const gchar* _tmp20_;
- gsize _tmp21_;
- gchar** _tmp22_;
- gint keys_length1;
- gint _keys_size_;
- gboolean _tmp23_ = FALSE;
- gchar** _tmp24_;
- gint _tmp24__length1;
- KeyValueMap* key_map = NULL;
- const gchar* _tmp26_;
- KeyValueMap* _tmp27_;
- gchar** _tmp28_;
- gint _tmp28__length1;
- GeeHashMap* _tmp37_;
- const gchar* _tmp38_;
- KeyValueMap* _tmp39_;
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp19_ = keyfile;
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp20_ = object;
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp22_ = g_key_file_get_keys (_tmp19_, _tmp20_, &_tmp21_, &_inner_error_);
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- keys = _tmp22_;
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- keys_length1 = _tmp21_;
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _keys_size_ = keys_length1;
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (object);
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL);
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (map);
-#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_key_file_unref0 (keyfile);
-#line 496 "graphics-processor.c"
- goto __catch0_g_error;
- }
-#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp24_ = keys;
-#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp24__length1 = keys_length1;
-#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp24_ == NULL) {
-#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp23_ = TRUE;
-#line 507 "graphics-processor.c"
- } else {
- gchar** _tmp25_;
- gint _tmp25__length1;
-#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp25_ = keys;
-#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp25__length1 = keys_length1;
-#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp23_ = _tmp25__length1 == 0;
-#line 517 "graphics-processor.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp23_) {
-#line 34 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
-#line 34 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (object);
-#line 34 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- continue;
-#line 527 "graphics-processor.c"
- }
-#line 37 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp26_ = object;
-#line 37 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp27_ = key_value_map_new (_tmp26_);
-#line 37 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- key_map = _tmp27_;
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp28_ = keys;
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp28__length1 = keys_length1;
-#line 539 "graphics-processor.c"
- {
- gchar** key_collection = NULL;
- gint key_collection_length1 = 0;
- gint _key_collection_size_ = 0;
- gint key_it = 0;
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- key_collection = _tmp28_;
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- key_collection_length1 = _tmp28__length1;
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- for (key_it = 0; key_it < _tmp28__length1; key_it = key_it + 1) {
-#line 551 "graphics-processor.c"
- gchar* _tmp29_;
- gchar* key = NULL;
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp29_ = g_strdup (key_collection[key_it]);
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- key = _tmp29_;
-#line 558 "graphics-processor.c"
- {
- gchar* _tmp30_ = NULL;
- GKeyFile* _tmp31_;
- const gchar* _tmp32_;
- const gchar* _tmp33_;
- gchar* _tmp34_;
- KeyValueMap* _tmp35_;
- const gchar* _tmp36_;
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp31_ = keyfile;
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp32_ = object;
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp33_ = key;
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp34_ = g_key_file_get_string (_tmp31_, _tmp32_, _tmp33_, &_inner_error_);
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp30_ = _tmp34_;
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (key);
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _key_value_map_unref0 (key_map);
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (object);
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL);
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (map);
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_key_file_unref0 (keyfile);
-#line 593 "graphics-processor.c"
- goto __catch0_g_error;
- }
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp35_ = key_map;
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp36_ = key;
-#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- key_value_map_set_string (_tmp35_, _tmp36_, _tmp30_);
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (_tmp30_);
-#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (key);
-#line 606 "graphics-processor.c"
- }
- }
- }
-#line 41 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp37_ = map;
-#line 41 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp38_ = object;
-#line 41 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp39_ = key_map;
-#line 41 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp38_, _tmp39_);
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _key_value_map_unref0 (key_map);
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
-#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (object);
-#line 624 "graphics-processor.c"
- }
- }
- }
-#line 44 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- result = map;
-#line 44 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL);
-#line 44 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_key_file_unref0 (keyfile);
-#line 44 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return result;
-#line 636 "graphics-processor.c"
- }
- goto __finally0;
- __catch0_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp40_;
-#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- err = _inner_error_;
-#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _inner_error_ = NULL;
-#line 46 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp40_ = err->message;
-#line 46 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_error ("graphics-processor.vala:46: %s", _tmp40_);
-#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_error_free0 (err);
-#line 653 "graphics-processor.c"
- }
- __finally0:
-#line 19 "/home/jens/Source/shotwell/src/graphics-processor.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 19 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_clear_error (&_inner_error_);
-#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return NULL;
-#line 662 "graphics-processor.c"
-}
-
-
-gint
-_vala_main (gchar** args,
- int args_length1)
-{
- gint result = 0;
- GOptionContext* ctx = NULL;
- GOptionContext* _tmp0_;
- GOptionContext* _tmp1_;
- GOptionContext* _tmp2_;
- GOptionContext* _tmp3_;
- gboolean _tmp9_ = FALSE;
- const gchar* _tmp10_;
- gboolean _tmp15_ = FALSE;
- gboolean _tmp16_;
- GdkPixbuf* src = NULL;
- GdkPixbuf* output = NULL;
- GdkPixbuf* _tmp24_;
- GdkPixbuf* _tmp25_;
- PixelTransformationBundle* adjustments = NULL;
- const gchar* _tmp26_;
- gboolean _tmp36_;
- PixelTransformer* transformer = NULL;
- PixelTransformationBundle* _tmp39_;
- PixelTransformer* _tmp40_;
- GTimer* timer = NULL;
- GTimer* _tmp41_;
- PixelTransformer* _tmp42_;
- GdkPixbuf* _tmp43_;
- GdkPixbuf* _tmp44_;
- gint _tmp45_;
- gdouble elapsed = 0.0;
- GTimer* _tmp46_;
- gdouble _tmp47_;
- gdouble _tmp48_;
- const gchar* _tmp49_;
- GError * _inner_error_ = NULL;
-#line 51 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp0_ = g_option_context_new ("- Apply shotwell transformations on commandline");
-#line 51 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- ctx = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp1_ = ctx;
-#line 52 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_option_context_set_help_enabled (_tmp1_, TRUE);
-#line 53 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp2_ = ctx;
-#line 53 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_option_context_set_ignore_unknown_options (_tmp2_, TRUE);
-#line 54 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp3_ = ctx;
-#line 54 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_option_context_add_main_entries (_tmp3_, options, NULL);
-#line 718 "graphics-processor.c"
- {
- GOptionContext* _tmp4_;
-#line 57 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp4_ = ctx;
-#line 57 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_option_context_parse (_tmp4_, &args_length1, &args, &_inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 727 "graphics-processor.c"
- goto __catch2_g_error;
- }
- }
- goto __finally2;
- __catch2_g_error:
- {
- GError* _error_ = NULL;
- GOptionContext* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _error_ = _inner_error_;
-#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _inner_error_ = NULL;
-#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp5_ = ctx;
-#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp6_ = g_option_context_get_help (_tmp5_, TRUE, NULL);
-#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp7_ = _tmp6_;
-#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_print ("%s", _tmp7_);
-#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (_tmp7_);
-#line 61 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- result = 1;
-#line 61 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_error_free0 (_error_);
-#line 61 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_option_context_free0 (ctx);
-#line 61 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return result;
-#line 760 "graphics-processor.c"
- }
- __finally2:
-#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 765 "graphics-processor.c"
- gint _tmp8_ = 0;
-#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_option_context_free0 (ctx);
-#line 56 "/home/jens/Source/shotwell/src/graphics-processor.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 56 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_clear_error (&_inner_error_);
-#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return _tmp8_;
-#line 775 "graphics-processor.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp10_ = input_file;
-#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp10_ == NULL) {
-#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp9_ = TRUE;
-#line 783 "graphics-processor.c"
- } else {
- const gchar* _tmp11_;
-#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp11_ = output_file;
-#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp9_ = _tmp11_ == NULL;
-#line 790 "graphics-processor.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp9_) {
-#line 794 "graphics-processor.c"
- GOptionContext* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 65 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_print ("You need to provide and input and output file\n");
-#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp12_ = ctx;
-#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp13_ = g_option_context_get_help (_tmp12_, TRUE, NULL);
-#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp14_ = _tmp13_;
-#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_print ("%s", _tmp14_);
-#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (_tmp14_);
-#line 68 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- result = 1;
-#line 68 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_option_context_free0 (ctx);
-#line 68 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return result;
-#line 816 "graphics-processor.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp16_ = auto_enhance;
-#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp16_ == FALSE) {
-#line 822 "graphics-processor.c"
- const gchar* _tmp17_;
-#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp17_ = pipeline;
-#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp15_ = _tmp17_ == NULL;
-#line 828 "graphics-processor.c"
- } else {
-#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp15_ = FALSE;
-#line 832 "graphics-processor.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp15_) {
-#line 72 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_print ("No operation provided. Nothing to do.\n");
-#line 74 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- result = 0;
-#line 74 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_option_context_free0 (ctx);
-#line 74 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return result;
-#line 844 "graphics-processor.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- src = NULL;
-#line 848 "graphics-processor.c"
- {
- GdkPixbuf* _tmp18_ = NULL;
- const gchar* _tmp19_;
- GdkPixbuf* _tmp20_;
- GdkPixbuf* _tmp21_;
-#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp19_ = input_file;
-#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp20_ = gdk_pixbuf_new_from_file (_tmp19_, &_inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp18_ = _tmp20_;
-#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 862 "graphics-processor.c"
- goto __catch3_g_error;
- }
-#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp21_ = _tmp18_;
-#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp18_ = NULL;
-#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (src);
-#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- src = _tmp21_;
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (_tmp18_);
-#line 875 "graphics-processor.c"
- }
- goto __finally3;
- __catch3_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp22_;
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- err = _inner_error_;
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _inner_error_ = NULL;
-#line 81 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp22_ = err->message;
-#line 81 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_error ("graphics-processor.vala:81: %s", _tmp22_);
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_error_free0 (err);
-#line 892 "graphics-processor.c"
- }
- __finally3:
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 897 "graphics-processor.c"
- gint _tmp23_ = 0;
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (src);
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_option_context_free0 (ctx);
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.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 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_clear_error (&_inner_error_);
-#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return _tmp23_;
-#line 909 "graphics-processor.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp24_ = src;
-#line 84 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp25_ = gdk_pixbuf_copy (_tmp24_);
-#line 84 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- output = _tmp25_;
-#line 85 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- adjustments = NULL;
-#line 87 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp26_ = pipeline;
-#line 87 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp26_ != NULL) {
-#line 923 "graphics-processor.c"
- GeeHashMap* transformations = NULL;
- const gchar* _tmp27_;
- GeeHashMap* _tmp28_;
- PixelTransformationBundle* _tmp29_;
- KeyValueMap* map = NULL;
- GeeHashMap* _tmp30_;
- gpointer _tmp31_;
- KeyValueMap* _tmp32_;
-#line 88 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp27_ = pipeline;
-#line 88 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp28_ = marshall_all_transformations (_tmp27_);
-#line 88 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- transformations = _tmp28_;
-#line 90 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp29_ = pixel_transformation_bundle_new ();
-#line 90 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _pixel_transformation_bundle_unref0 (adjustments);
-#line 90 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- adjustments = _tmp29_;
-#line 91 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp30_ = transformations;
-#line 91 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp31_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), "adjustments");
-#line 91 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- map = (KeyValueMap*) _tmp31_;
-#line 92 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp32_ = map;
-#line 92 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp32_ == NULL) {
-#line 954 "graphics-processor.c"
- PixelTransformationBundle* _tmp33_;
-#line 93 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp33_ = adjustments;
-#line 93 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- pixel_transformation_bundle_set_to_identity (_tmp33_);
-#line 960 "graphics-processor.c"
- } else {
- PixelTransformationBundle* _tmp34_;
- KeyValueMap* _tmp35_;
-#line 95 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp34_ = adjustments;
-#line 95 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp35_ = map;
-#line 95 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- pixel_transformation_bundle_load (_tmp34_, _tmp35_);
-#line 970 "graphics-processor.c"
- }
-#line 87 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _key_value_map_unref0 (map);
-#line 87 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (transformations);
-#line 976 "graphics-processor.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp36_ = auto_enhance;
-#line 99 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp36_) {
-#line 982 "graphics-processor.c"
- GdkPixbuf* _tmp37_;
- PixelTransformationBundle* _tmp38_;
-#line 100 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp37_ = src;
-#line 100 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp38_ = auto_enhance_create_auto_enhance_adjustments (_tmp37_);
-#line 100 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _pixel_transformation_bundle_unref0 (adjustments);
-#line 100 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- adjustments = _tmp38_;
-#line 993 "graphics-processor.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp39_ = adjustments;
-#line 103 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp40_ = pixel_transformation_bundle_generate_transformer (_tmp39_);
-#line 103 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- transformer = _tmp40_;
-#line 104 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp41_ = g_timer_new ();
-#line 104 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- timer = _tmp41_;
-#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp42_ = transformer;
-#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp43_ = src;
-#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp44_ = output;
-#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp45_ = jobs;
-#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- pixel_transformer_transform_to_other_pixbuf (_tmp42_, _tmp43_, _tmp44_, NULL, _tmp45_);
-#line 106 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp46_ = timer;
-#line 106 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp47_ = g_timer_elapsed (_tmp46_, NULL);
-#line 106 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- elapsed = _tmp47_;
-#line 108 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp48_ = elapsed;
-#line 108 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_print ("Transformation took %f\n", _tmp48_);
-#line 111 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp49_ = format;
-#line 111 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (_tmp49_ == NULL) {
-#line 1029 "graphics-processor.c"
- gchar* content_type = NULL;
- const gchar* _tmp50_;
- gchar* _tmp51_;
- const gchar* _tmp52_;
- gchar* _tmp54_;
-#line 112 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp50_ = output_file;
-#line 112 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp51_ = g_content_type_guess (_tmp50_, NULL, (gsize) 0, NULL);
-#line 112 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- content_type = _tmp51_;
-#line 113 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp52_ = content_type;
-#line 113 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (g_strcmp0 (_tmp52_, "image/png") == 0) {
-#line 1045 "graphics-processor.c"
- gchar* _tmp53_;
-#line 114 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp53_ = g_strdup ("png");
-#line 114 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (format);
-#line 114 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- format = _tmp53_;
-#line 1053 "graphics-processor.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp54_ = g_strdup ("jpeg");
-#line 117 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (format);
-#line 117 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- format = _tmp54_;
-#line 111 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_free0 (content_type);
-#line 1063 "graphics-processor.c"
- }
- {
- GdkPixbuf* _tmp55_;
- const gchar* _tmp56_;
- const gchar* _tmp57_;
-#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp55_ = output;
-#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp56_ = output_file;
-#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp57_ = format;
-#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- gdk_pixbuf_save (_tmp55_, _tmp56_, _tmp57_, &_inner_error_, NULL, NULL);
-#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1079 "graphics-processor.c"
- goto __catch4_g_error;
- }
- }
- goto __finally4;
- __catch4_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp58_;
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- err = _inner_error_;
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _inner_error_ = NULL;
-#line 123 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _tmp58_ = err->message;
-#line 123 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_error ("graphics-processor.vala:123: %s", _tmp58_);
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_error_free0 (err);
-#line 1098 "graphics-processor.c"
- }
- __finally4:
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1103 "graphics-processor.c"
- gint _tmp59_ = 0;
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_timer_destroy0 (timer);
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _pixel_transformer_unref0 (transformer);
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _pixel_transformation_bundle_unref0 (adjustments);
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (output);
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (src);
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_option_context_free0 (ctx);
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.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 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- g_clear_error (&_inner_error_);
-#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return _tmp59_;
-#line 1123 "graphics-processor.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- result = 0;
-#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_timer_destroy0 (timer);
-#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _pixel_transformer_unref0 (transformer);
-#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _pixel_transformation_bundle_unref0 (adjustments);
-#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (output);
-#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_object_unref0 (src);
-#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- _g_option_context_free0 (ctx);
-#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return result;
-#line 1141 "graphics-processor.c"
-}
-
-
-int
-main (int argc,
- char ** argv)
-{
-#line 50 "/home/jens/Source/shotwell/src/graphics-processor.vala"
- return _vala_main (argv, argc);
-#line 1151 "graphics-processor.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/import-roll/ImportRollBranch.vala b/src/import-roll/ImportRollBranch.vala
new file mode 100644
index 0000000..32337cc
--- /dev/null
+++ b/src/import-roll/ImportRollBranch.vala
@@ -0,0 +1,45 @@
+public class ImportRoll.Branch : Sidebar.Branch {
+ private Gee.HashMap<int64?, ImportRoll.SidebarEntry> entries;
+
+ public class Branch() {
+ base (new ImportRoll.Root(),
+ Sidebar.Branch.Options.HIDE_IF_EMPTY,
+ ImportRoll.Branch.comparator);
+
+ this.entries = new Gee.HashMap<int64?, ImportRoll.SidebarEntry>((Gee.HashDataFunc<int64?>)GLib.int64_hash,
+ (Gee.EqualDataFunc<int64?>)GLib.int64_equal);
+
+ foreach (var source in MediaCollectionRegistry.get_instance().get_all()) {
+ on_import_rolls_altered(source);
+ source.import_roll_altered.connect(on_import_rolls_altered);
+ }
+
+ }
+
+ private static int comparator(Sidebar.Entry a, Sidebar.Entry b) {
+ if (a == b)
+ return 0;
+
+ var entry_a = (ImportRoll.SidebarEntry) a;
+ var entry_b = (ImportRoll.SidebarEntry) b;
+
+ return -ImportID.compare_func(entry_a.get_id(), entry_b.get_id());
+ }
+
+ private void on_import_rolls_altered(MediaSourceCollection source) {
+ var ids = source.get_import_roll_ids();
+ foreach (var id in ids) {
+ if (!this.entries.has_key (id.id)) {
+ var entry = new ImportRoll.SidebarEntry(id);
+ entries.set(id.id, entry);
+ graft(get_root(), entry);
+ }
+ }
+ }
+}
+
+private class ImportRoll.Root : Sidebar.Header {
+ public Root() {
+ base (_("Imports"), _("Browse the library’s import history"));
+ }
+}
diff --git a/src/import-roll/ImportRollEntry.vala b/src/import-roll/ImportRollEntry.vala
new file mode 100644
index 0000000..cbc56ae
--- /dev/null
+++ b/src/import-roll/ImportRollEntry.vala
@@ -0,0 +1,34 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+public class ImportRoll.SidebarEntry : Library.HideablePageEntry {
+ private ImportID id;
+ private string name;
+
+ public SidebarEntry(ImportID id) {
+ base();
+
+ this.id = id;
+ this.name = new DateTime.from_unix_local(id.id).format("%c");
+ }
+
+ public ImportID get_id() {
+ return id;
+ }
+
+ public override string get_sidebar_name() {
+ return this.name;
+ }
+
+ public override string? get_sidebar_icon() {
+ return Resources.ICON_LAST_IMPORT;
+ }
+
+ protected override Page create_page() {
+ return new LastImportPage.for_id(this.id);
+ }
+}
+
diff --git a/src/library/FlaggedPage.c b/src/library/FlaggedPage.c
deleted file mode 100644
index 199e911..0000000
--- a/src/library/FlaggedPage.c
+++ /dev/null
@@ -1,1328 +0,0 @@
-/* FlaggedPage.c generated by valac 0.40.4, the Vala compiler
- * generated from FlaggedPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-typedef struct _CollectionPagePrivate CollectionPagePrivate;
-
-#define TYPE_FLAGGED_PAGE (flagged_page_get_type ())
-#define FLAGGED_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGED_PAGE, FlaggedPage))
-#define FLAGGED_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAGGED_PAGE, FlaggedPageClass))
-#define IS_FLAGGED_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGED_PAGE))
-#define IS_FLAGGED_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAGGED_PAGE))
-#define FLAGGED_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAGGED_PAGE, FlaggedPageClass))
-
-typedef struct _FlaggedPage FlaggedPage;
-typedef struct _FlaggedPageClass FlaggedPageClass;
-typedef struct _FlaggedPagePrivate FlaggedPagePrivate;
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ())
-#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter))
-#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-
-typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter;
-typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass;
-
-#define COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER (collection_page_collection_search_view_filter_get_type ())
-#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilter))
-#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass))
-#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER))
-#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER))
-#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass))
-
-typedef struct _CollectionPageCollectionSearchViewFilter CollectionPageCollectionSearchViewFilter;
-typedef struct _CollectionPageCollectionSearchViewFilterClass CollectionPageCollectionSearchViewFilterClass;
-
-#define FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER (flagged_page_flagged_search_view_filter_get_type ())
-#define FLAGGED_PAGE_FLAGGED_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER, FlaggedPageFlaggedSearchViewFilter))
-#define FLAGGED_PAGE_FLAGGED_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER, FlaggedPageFlaggedSearchViewFilterClass))
-#define FLAGGED_PAGE_IS_FLAGGED_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER))
-#define FLAGGED_PAGE_IS_FLAGGED_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER))
-#define FLAGGED_PAGE_FLAGGED_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER, FlaggedPageFlaggedSearchViewFilterClass))
-
-typedef struct _FlaggedPageFlaggedSearchViewFilter FlaggedPageFlaggedSearchViewFilter;
-typedef struct _FlaggedPageFlaggedSearchViewFilterClass FlaggedPageFlaggedSearchViewFilterClass;
-enum {
- FLAGGED_PAGE_0_PROPERTY,
- FLAGGED_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* flagged_page_properties[FLAGGED_PAGE_NUM_PROPERTIES];
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-
-#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ())
-#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager))
-#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER))
-#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER))
-#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-
-typedef struct _CollectionViewManager CollectionViewManager;
-typedef struct _CollectionViewManagerClass CollectionViewManagerClass;
-
-#define FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER (flagged_page_flagged_view_manager_get_type ())
-#define FLAGGED_PAGE_FLAGGED_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, FlaggedPageFlaggedViewManager))
-#define FLAGGED_PAGE_FLAGGED_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, FlaggedPageFlaggedViewManagerClass))
-#define FLAGGED_PAGE_IS_FLAGGED_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER))
-#define FLAGGED_PAGE_IS_FLAGGED_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER))
-#define FLAGGED_PAGE_FLAGGED_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, FlaggedPageFlaggedViewManagerClass))
-
-typedef struct _FlaggedPageFlaggedViewManager FlaggedPageFlaggedViewManager;
-typedef struct _FlaggedPageFlaggedViewManagerClass FlaggedPageFlaggedViewManagerClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate;
-typedef struct _FlaggedPageFlaggedViewManagerPrivate FlaggedPageFlaggedViewManagerPrivate;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate;
-typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate;
-typedef struct _CollectionPageCollectionSearchViewFilterPrivate CollectionPageCollectionSearchViewFilterPrivate;
-typedef struct _FlaggedPageFlaggedSearchViewFilterPrivate FlaggedPageFlaggedSearchViewFilterPrivate;
-
-#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ())
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _CollectionPage {
- MediaPage parent_instance;
- CollectionPagePrivate * priv;
-};
-
-struct _CollectionPageClass {
- MediaPageClass parent_class;
-};
-
-struct _FlaggedPage {
- CollectionPage parent_instance;
- FlaggedPagePrivate * priv;
-};
-
-struct _FlaggedPageClass {
- CollectionPageClass parent_class;
-};
-
-struct _FlaggedPagePrivate {
- ViewManager* view_manager;
- Alteration* prereq;
- FlaggedPageFlaggedSearchViewFilter* search_filter;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _CollectionViewManager {
- ViewManager parent_instance;
- CollectionViewManagerPrivate * priv;
-};
-
-struct _CollectionViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _FlaggedPageFlaggedViewManager {
- CollectionViewManager parent_instance;
- FlaggedPageFlaggedViewManagerPrivate * priv;
-};
-
-struct _FlaggedPageFlaggedViewManagerClass {
- CollectionViewManagerClass parent_class;
-};
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _SearchViewFilter {
- ViewFilter parent_instance;
- SearchViewFilterPrivate * priv;
-};
-
-struct _SearchViewFilterClass {
- ViewFilterClass parent_class;
- guint (*get_criteria) (SearchViewFilter* self);
-};
-
-struct _DefaultSearchViewFilter {
- SearchViewFilter parent_instance;
- DefaultSearchViewFilterPrivate * priv;
-};
-
-struct _DefaultSearchViewFilterClass {
- SearchViewFilterClass parent_class;
-};
-
-struct _CollectionPageCollectionSearchViewFilter {
- DefaultSearchViewFilter parent_instance;
- CollectionPageCollectionSearchViewFilterPrivate * priv;
-};
-
-struct _CollectionPageCollectionSearchViewFilterClass {
- DefaultSearchViewFilterClass parent_class;
-};
-
-struct _FlaggedPageFlaggedSearchViewFilter {
- CollectionPageCollectionSearchViewFilter parent_instance;
- FlaggedPageFlaggedSearchViewFilterPrivate * priv;
-};
-
-struct _FlaggedPageFlaggedSearchViewFilterClass {
- CollectionPageCollectionSearchViewFilterClass parent_class;
-};
-
-typedef enum {
- SEARCH_FILTER_CRITERIA_NONE = 0,
- SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0,
- SEARCH_FILTER_CRITERIA_TEXT = 1 << 1,
- SEARCH_FILTER_CRITERIA_FLAG = 1 << 2,
- SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3,
- SEARCH_FILTER_CRITERIA_RATING = 1 << 4,
- SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5,
- SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL
-} SearchFilterCriteria;
-
-
-static gpointer flagged_page_parent_class = NULL;
-static gpointer flagged_page_flagged_view_manager_parent_class = NULL;
-static gpointer flagged_page_flagged_search_view_filter_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType flagged_page_get_type (void) G_GNUC_CONST;
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType default_search_view_filter_get_type (void) G_GNUC_CONST;
-GType collection_page_collection_search_view_filter_get_type (void) G_GNUC_CONST;
-static GType flagged_page_flagged_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define FLAGGED_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FLAGGED_PAGE, FlaggedPagePrivate))
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-static FlaggedPageFlaggedSearchViewFilter* flagged_page_flagged_search_view_filter_new (void);
-static FlaggedPageFlaggedSearchViewFilter* flagged_page_flagged_search_view_filter_construct (GType object_type);
-#define FLAGGED_PAGE_NAME _ ("Flagged")
-FlaggedPage* flagged_page_new (void);
-FlaggedPage* flagged_page_construct (GType object_type);
-CollectionPage* collection_page_construct (GType object_type,
- const gchar* page_name);
-static FlaggedPageFlaggedViewManager* flagged_page_flagged_view_manager_new (FlaggedPage* owner);
-static FlaggedPageFlaggedViewManager* flagged_page_flagged_view_manager_construct (GType object_type,
- FlaggedPage* owner);
-GType collection_view_manager_get_type (void) G_GNUC_CONST;
-static GType flagged_page_flagged_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-static void flagged_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void flagged_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by);
-void configuration_facade_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-static SearchViewFilter* flagged_page_real_get_search_view_filter (CheckerboardPage* base);
-CollectionViewManager* collection_view_manager_new (CollectionPage* page);
-CollectionViewManager* collection_view_manager_construct (GType object_type,
- CollectionPage* page);
-static gboolean flagged_page_flagged_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-static guint flagged_page_flagged_search_view_filter_real_get_criteria (SearchViewFilter* base);
-GType search_filter_criteria_get_type (void) G_GNUC_CONST;
-CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void);
-CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_construct (GType object_type);
-static void flagged_page_finalize (GObject * obj);
-
-
-FlaggedPage*
-flagged_page_construct (GType object_type)
-{
- FlaggedPage * self = NULL;
- FlaggedPageFlaggedViewManager* _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = (FlaggedPage*) collection_page_construct (object_type, FLAGGED_PAGE_NAME);
-#line 36 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp0_ = flagged_page_flagged_view_manager_new (self);
-#line 36 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _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 895 "FlaggedPage.c"
- {
- GeeIterator* _sources_it = NULL;
- MediaCollectionRegistry* _tmp1_;
- MediaCollectionRegistry* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeIterator* _tmp5_;
- GeeIterator* _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp1_ = media_collection_registry_get_instance ();
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp2_ = _tmp1_;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp3_ = media_collection_registry_get_all (_tmp2_);
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp4_ = _tmp3_;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp6_ = _tmp5_;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _media_collection_registry_unref0 (_tmp2_);
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _sources_it = _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- while (TRUE) {
-#line 924 "FlaggedPage.c"
- GeeIterator* _tmp7_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- MediaSourceCollection* _tmp12_;
- ViewManager* _tmp13_;
- Alteration* _tmp14_;
- ViewCollectionMonitor* _tmp15_;
- ViewCollectionMonitor* _tmp16_;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp7_ = _sources_it;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- break;
-#line 942 "FlaggedPage.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp8_ = _sources_it;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- sources = (MediaSourceCollection*) _tmp9_;
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp11_ = _tmp10_;
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp12_ = sources;
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp13_ = self->priv->view_manager;
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp14_ = self->priv->prereq;
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp15_ = view_collection_monitor_source_collection (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp13_, _tmp14_, NULL, NULL, NULL);
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp16_ = _tmp15_;
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _view_collection_monitor_unref0 (_tmp16_);
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _data_collection_unref0 (_tmp11_);
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _data_collection_unref0 (sources);
-#line 970 "FlaggedPage.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _g_object_unref0 (_sources_it);
-#line 974 "FlaggedPage.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- return self;
-#line 978 "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 987 "FlaggedPage.c"
-}
-
-
-static void
-flagged_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by)
-{
- FlaggedPage * self;
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_ = 0;
-#line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAGGED_PAGE, FlaggedPage);
-#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp1_ = _tmp0_;
-#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_);
-#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _vala_sort_order = _tmp2_;
-#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _vala_sort_by = _tmp3_;
-#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- if (sort_order) {
-#line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- *sort_order = _vala_sort_order;
-#line 1021 "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 1027 "FlaggedPage.c"
- }
-}
-
-
-static void
-flagged_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by)
-{
- FlaggedPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 46 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAGGED_PAGE, FlaggedPage);
-#line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp1_ = _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by);
-#line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1050 "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 1059 "FlaggedPage.c"
-}
-
-
-static SearchViewFilter*
-flagged_page_real_get_search_view_filter (CheckerboardPage* base)
-{
- FlaggedPage * self;
- SearchViewFilter* result = NULL;
- FlaggedPageFlaggedSearchViewFilter* _tmp0_;
- SearchViewFilter* _tmp1_;
-#line 50 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAGGED_PAGE, FlaggedPage);
-#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp0_ = self->priv->search_filter;
-#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- result = _tmp1_;
-#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- return result;
-#line 1080 "FlaggedPage.c"
-}
-
-
-static FlaggedPageFlaggedViewManager*
-flagged_page_flagged_view_manager_construct (GType object_type,
- FlaggedPage* owner)
-{
- FlaggedPageFlaggedViewManager* self = NULL;
-#line 11 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- g_return_val_if_fail (IS_FLAGGED_PAGE (owner), NULL);
-#line 12 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = (FlaggedPageFlaggedViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, TYPE_COLLECTION_PAGE, CollectionPage));
-#line 11 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- return self;
-#line 1095 "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 1104 "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 1113 "FlaggedPage.c"
-}
-
-
-static gboolean
-flagged_page_flagged_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source)
-{
- FlaggedPageFlaggedViewManager * self;
- gboolean result = FALSE;
- Flaggable* flaggable = NULL;
- Flaggable* _tmp0_;
- gboolean _tmp1_ = FALSE;
- Flaggable* _tmp2_;
-#line 15 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, FlaggedPageFlaggedViewManager);
-#line 15 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_FLAGGABLE) ? ((Flaggable*) source) : NULL);
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- flaggable = _tmp0_;
-#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp2_ = flaggable;
-#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- if (_tmp2_ != NULL) {
-#line 1139 "FlaggedPage.c"
- Flaggable* _tmp3_;
-#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp3_ = flaggable;
-#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp1_ = flaggable_is_flagged (_tmp3_);
-#line 1145 "FlaggedPage.c"
- } else {
-#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp1_ = FALSE;
-#line 1149 "FlaggedPage.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- result = _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _g_object_unref0 (flaggable);
-#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- return result;
-#line 1157 "FlaggedPage.c"
-}
-
-
-static void
-flagged_page_flagged_view_manager_class_init (FlaggedPageFlaggedViewManagerClass * klass)
-{
-#line 10 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- 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 = (gboolean (*) (ViewManager *, DataSource*)) flagged_page_flagged_view_manager_real_include_in_view;
-#line 1168 "FlaggedPage.c"
-}
-
-
-static void
-flagged_page_flagged_view_manager_instance_init (FlaggedPageFlaggedViewManager * self)
-{
-}
-
-
-static GType
-flagged_page_flagged_view_manager_get_type (void)
-{
- static volatile gsize flagged_page_flagged_view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&flagged_page_flagged_view_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FlaggedPageFlaggedViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flagged_page_flagged_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlaggedPageFlaggedViewManager), 0, (GInstanceInitFunc) flagged_page_flagged_view_manager_instance_init, NULL };
- GType flagged_page_flagged_view_manager_type_id;
- flagged_page_flagged_view_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "FlaggedPageFlaggedViewManager", &g_define_type_info, 0);
- g_once_init_leave (&flagged_page_flagged_view_manager_type_id__volatile, flagged_page_flagged_view_manager_type_id);
- }
- return flagged_page_flagged_view_manager_type_id__volatile;
-}
-
-
-static guint
-flagged_page_flagged_search_view_filter_real_get_criteria (SearchViewFilter* base)
-{
- FlaggedPageFlaggedSearchViewFilter * self;
- guint result = 0U;
-#line 23 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER, FlaggedPageFlaggedSearchViewFilter);
-#line 24 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- 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 1203 "FlaggedPage.c"
-}
-
-
-static FlaggedPageFlaggedSearchViewFilter*
-flagged_page_flagged_search_view_filter_construct (GType object_type)
-{
- FlaggedPageFlaggedSearchViewFilter* self = NULL;
-#line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = (FlaggedPageFlaggedSearchViewFilter*) collection_page_collection_search_view_filter_construct (object_type);
-#line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- return self;
-#line 1215 "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 1224 "FlaggedPage.c"
-}
-
-
-static void
-flagged_page_flagged_search_view_filter_class_init (FlaggedPageFlaggedSearchViewFilterClass * klass)
-{
-#line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- 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 = (guint (*) (SearchViewFilter *)) flagged_page_flagged_search_view_filter_real_get_criteria;
-#line 1235 "FlaggedPage.c"
-}
-
-
-static void
-flagged_page_flagged_search_view_filter_instance_init (FlaggedPageFlaggedSearchViewFilter * self)
-{
-}
-
-
-static GType
-flagged_page_flagged_search_view_filter_get_type (void)
-{
- static volatile gsize flagged_page_flagged_search_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&flagged_page_flagged_search_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FlaggedPageFlaggedSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flagged_page_flagged_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlaggedPageFlaggedSearchViewFilter), 0, (GInstanceInitFunc) flagged_page_flagged_search_view_filter_instance_init, NULL };
- GType flagged_page_flagged_search_view_filter_type_id;
- flagged_page_flagged_search_view_filter_type_id = g_type_register_static (COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, "FlaggedPageFlaggedSearchViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&flagged_page_flagged_search_view_filter_type_id__volatile, flagged_page_flagged_search_view_filter_type_id);
- }
- return flagged_page_flagged_search_view_filter_type_id__volatile;
-}
-
-
-static void
-flagged_page_class_init (FlaggedPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- flagged_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- g_type_class_add_private (klass, sizeof (FlaggedPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) flagged_page_real_get_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) flagged_page_real_set_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) 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 1274 "FlaggedPage.c"
-}
-
-
-static void
-flagged_page_instance_init (FlaggedPage * self)
-{
- Alteration* _tmp0_;
- FlaggedPageFlaggedSearchViewFilter* _tmp1_;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self->priv = FLAGGED_PAGE_GET_PRIVATE (self);
-#line 30 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp0_ = alteration_new ("metadata", "flagged");
-#line 30 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self->priv->prereq = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _tmp1_ = flagged_page_flagged_search_view_filter_new ();
-#line 31 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self->priv->search_filter = _tmp1_;
-#line 1293 "FlaggedPage.c"
-}
-
-
-static void
-flagged_page_finalize (GObject * obj)
-{
- FlaggedPage * self;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FLAGGED_PAGE, FlaggedPage);
-#line 29 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _view_manager_unref0 (self->priv->view_manager);
-#line 30 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _alteration_unref0 (self->priv->prereq);
-#line 31 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala"
- _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 1311 "FlaggedPage.c"
-}
-
-
-GType
-flagged_page_get_type (void)
-{
- static volatile gsize flagged_page_type_id__volatile = 0;
- if (g_once_init_enter (&flagged_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (FlaggedPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flagged_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlaggedPage), 0, (GInstanceInitFunc) flagged_page_instance_init, NULL };
- GType flagged_page_type_id;
- flagged_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "FlaggedPage", &g_define_type_info, 0);
- g_once_init_leave (&flagged_page_type_id__volatile, flagged_page_type_id);
- }
- return flagged_page_type_id__volatile;
-}
-
-
-
diff --git a/src/library/FlaggedSidebarEntry.c b/src/library/FlaggedSidebarEntry.c
deleted file mode 100644
index b42df00..0000000
--- a/src/library/FlaggedSidebarEntry.c
+++ /dev/null
@@ -1,906 +0,0 @@
-/* FlaggedSidebarEntry.c generated by valac 0.40.4, the Vala compiler
- * generated from FlaggedSidebarEntry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-
-#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ())
-#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-
-typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry;
-typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass;
-typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate;
-
-#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ())
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry))
-#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY))
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface))
-
-typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry;
-typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY (library_flagged_sidebar_entry_get_type ())
-#define LIBRARY_FLAGGED_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry))
-#define LIBRARY_FLAGGED_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntryClass))
-#define LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY))
-#define LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY))
-#define LIBRARY_FLAGGED_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntryClass))
-
-typedef struct _LibraryFlaggedSidebarEntry LibraryFlaggedSidebarEntry;
-typedef struct _LibraryFlaggedSidebarEntryClass LibraryFlaggedSidebarEntryClass;
-typedef struct _LibraryFlaggedSidebarEntryPrivate LibraryFlaggedSidebarEntryPrivate;
-enum {
- LIBRARY_FLAGGED_SIDEBAR_ENTRY_0_PROPERTY,
- LIBRARY_FLAGGED_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* library_flagged_sidebar_entry_properties[LIBRARY_FLAGGED_SIDEBAR_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define TYPE_FLAGGED_PAGE (flagged_page_get_type ())
-#define FLAGGED_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGED_PAGE, FlaggedPage))
-#define FLAGGED_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAGGED_PAGE, FlaggedPageClass))
-#define IS_FLAGGED_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGED_PAGE))
-#define IS_FLAGGED_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAGGED_PAGE))
-#define FLAGGED_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAGGED_PAGE, FlaggedPageClass))
-
-typedef struct _FlaggedPage FlaggedPage;
-typedef struct _FlaggedPageClass FlaggedPageClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ())
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand))
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass))
-#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND))
-#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND))
-#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass))
-
-typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand;
-typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass;
-
-#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ())
-#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand))
-#define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass))
-#define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND))
-#define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND))
-#define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass))
-
-typedef struct _FlagUnflagCommand FlagUnflagCommand;
-typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _LibraryHideablePageEntry {
- SidebarSimplePageEntry parent_instance;
- LibraryHideablePageEntryPrivate * priv;
-};
-
-struct _LibraryHideablePageEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _SidebarInternalDropTargetEntryIface {
- GTypeInterface parent_iface;
- gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources);
- gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data);
-};
-
-struct _LibraryFlaggedSidebarEntry {
- LibraryHideablePageEntry parent_instance;
- LibraryFlaggedSidebarEntryPrivate * priv;
-};
-
-struct _LibraryFlaggedSidebarEntryClass {
- LibraryHideablePageEntryClass parent_class;
-};
-
-
-static gpointer library_flagged_sidebar_entry_parent_class = NULL;
-static SidebarInternalDropTargetEntryIface * library_flagged_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = NULL;
-
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType library_hideable_page_entry_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST;
-GType library_flagged_sidebar_entry_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-static void library_flagged_sidebar_entry_on_flagged_contents_altered (LibraryFlaggedSidebarEntry* self);
-static void _library_flagged_sidebar_entry_on_flagged_contents_altered_media_source_collection_flagged_contents_altered (MediaSourceCollection* _sender,
- gpointer self);
-LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_new (void);
-LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_construct (GType object_type);
-LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type);
-static gint library_flagged_sidebar_entry_get_total_flagged (LibraryFlaggedSidebarEntry* self);
-void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self,
- gboolean value);
-static gchar* library_flagged_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-#define FLAGGED_PAGE_NAME _ ("Flagged")
-static gchar* library_flagged_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-#define RESOURCES_ICON_FLAGGED_PAGE "flag-page"
-static Page* library_flagged_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-FlaggedPage* flagged_page_new (void);
-FlaggedPage* flagged_page_construct (GType object_type);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType flagged_page_get_type (void) G_GNUC_CONST;
-static gboolean library_flagged_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* app_window_get_command_manager (void);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources,
- gboolean flag);
-FlagUnflagCommand* flag_unflag_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean flag);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST;
-GType flag_unflag_command_get_type (void) G_GNUC_CONST;
-static gboolean library_flagged_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data);
-GeeCollection* media_source_collection_get_flagged (MediaSourceCollection* self);
-static void library_flagged_sidebar_entry_finalize (GObject * obj);
-
-
-static void
-_library_flagged_sidebar_entry_on_flagged_contents_altered_media_source_collection_flagged_contents_altered (MediaSourceCollection* _sender,
- gpointer self)
-{
-#line 17 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- library_flagged_sidebar_entry_on_flagged_contents_altered ((LibraryFlaggedSidebarEntry*) self);
-#line 475 "FlaggedSidebarEntry.c"
-}
-
-
-LibraryFlaggedSidebarEntry*
-library_flagged_sidebar_entry_construct (GType object_type)
-{
- LibraryFlaggedSidebarEntry * self = NULL;
-#line 8 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- self = (LibraryFlaggedSidebarEntry*) library_hideable_page_entry_construct (object_type);
-#line 485 "FlaggedSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- while (TRUE) {
-#line 514 "FlaggedSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- break;
-#line 526 "FlaggedSidebarEntry.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 10 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 10 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- g_signal_connect_object (_tmp9_, "flagged-contents-altered", (GCallback) _library_flagged_sidebar_entry_on_flagged_contents_altered_media_source_collection_flagged_contents_altered, self, 0);
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 540 "FlaggedSidebarEntry.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 544 "FlaggedSidebarEntry.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), library_flagged_sidebar_entry_get_total_flagged (self) != 0);
-#line 8 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- return self;
-#line 550 "FlaggedSidebarEntry.c"
-}
-
-
-LibraryFlaggedSidebarEntry*
-library_flagged_sidebar_entry_new (void)
-{
-#line 8 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- return library_flagged_sidebar_entry_construct (LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY);
-#line 559 "FlaggedSidebarEntry.c"
-}
-
-
-static gchar*
-library_flagged_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- LibraryFlaggedSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry);
-#line 21 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp0_ = g_strdup (FLAGGED_PAGE_NAME);
-#line 21 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- result = _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- return result;
-#line 577 "FlaggedSidebarEntry.c"
-}
-
-
-static gchar*
-library_flagged_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- LibraryFlaggedSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry);
-#line 25 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_FLAGGED_PAGE);
-#line 25 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- result = _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- return result;
-#line 595 "FlaggedSidebarEntry.c"
-}
-
-
-static Page*
-library_flagged_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- LibraryFlaggedSidebarEntry * self;
- Page* result = NULL;
- FlaggedPage* _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry);
-#line 29 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp0_ = flagged_page_new ();
-#line 29 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- g_object_ref_sink (_tmp0_);
-#line 29 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
-#line 29 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- return result;
-#line 615 "FlaggedSidebarEntry.c"
-}
-
-
-static gboolean
-library_flagged_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media)
-{
- LibraryFlaggedSidebarEntry * self;
- gboolean result = FALSE;
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
- FlagUnflagCommand* _tmp2_;
- FlagUnflagCommand* _tmp3_;
-#line 32 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry);
-#line 32 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- g_return_val_if_fail (GEE_IS_LIST (media), FALSE);
-#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp0_ = app_window_get_command_manager ();
-#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp2_ = flag_unflag_command_new (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), TRUE);
-#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_COMMAND, Command));
-#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _command_manager_unref0 (_tmp1_);
-#line 35 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- result = TRUE;
-#line 35 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- return result;
-#line 651 "FlaggedSidebarEntry.c"
-}
-
-
-static gboolean
-library_flagged_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data)
-{
- LibraryFlaggedSidebarEntry * self;
- gboolean result = FALSE;
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry);
-#line 38 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- g_return_val_if_fail (data != NULL, FALSE);
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- result = FALSE;
-#line 39 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- return result;
-#line 669 "FlaggedSidebarEntry.c"
-}
-
-
-static void
-library_flagged_sidebar_entry_on_flagged_contents_altered (LibraryFlaggedSidebarEntry* self)
-{
-#line 42 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- g_return_if_fail (LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY (self));
-#line 43 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), library_flagged_sidebar_entry_get_total_flagged (self) != 0);
-#line 680 "FlaggedSidebarEntry.c"
-}
-
-
-static gint
-library_flagged_sidebar_entry_get_total_flagged (LibraryFlaggedSidebarEntry* self)
-{
- gint result = 0;
- gint total = 0;
-#line 46 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- g_return_val_if_fail (LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY (self), 0);
-#line 47 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- total = 0;
-#line 693 "FlaggedSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- while (TRUE) {
-#line 722 "FlaggedSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- gint _tmp9_;
- MediaSourceCollection* _tmp10_;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- break;
-#line 739 "FlaggedSidebarEntry.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp9_ = total;
-#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp10_ = media_sources;
-#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp11_ = media_source_collection_get_flagged (_tmp10_);
-#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp12_ = _tmp11_;
-#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp13_ = gee_collection_get_size (_tmp12_);
-#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp14_ = _tmp13_;
-#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- total = _tmp9_ + _tmp14_;
-#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _g_object_unref0 (_tmp12_);
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 765 "FlaggedSidebarEntry.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 769 "FlaggedSidebarEntry.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- result = total;
-#line 51 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- return result;
-#line 775 "FlaggedSidebarEntry.c"
-}
-
-
-static void
-library_flagged_sidebar_entry_class_init (LibraryFlaggedSidebarEntryClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- library_flagged_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_flagged_sidebar_entry_real_get_sidebar_name;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_flagged_sidebar_entry_real_get_sidebar_icon;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_flagged_sidebar_entry_real_create_page;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- G_OBJECT_CLASS (klass)->finalize = library_flagged_sidebar_entry_finalize;
-#line 792 "FlaggedSidebarEntry.c"
-}
-
-
-static void
-library_flagged_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- library_flagged_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) library_flagged_sidebar_entry_real_internal_drop_received;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) library_flagged_sidebar_entry_real_internal_drop_received_arbitrary;
-#line 805 "FlaggedSidebarEntry.c"
-}
-
-
-static void
-library_flagged_sidebar_entry_instance_init (LibraryFlaggedSidebarEntry * self)
-{
-}
-
-
-static void
-library_flagged_sidebar_entry_finalize (GObject * obj)
-{
- LibraryFlaggedSidebarEntry * self;
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry);
-#line 821 "FlaggedSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- while (TRUE) {
-#line 850 "FlaggedSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
- guint _tmp10_;
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- break;
-#line 863 "FlaggedSidebarEntry.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 17 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 17 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- g_signal_parse_name ("flagged-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 17 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_flagged_sidebar_entry_on_flagged_contents_altered_media_source_collection_flagged_contents_altered, self);
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 879 "FlaggedSidebarEntry.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 883 "FlaggedSidebarEntry.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala"
- G_OBJECT_CLASS (library_flagged_sidebar_entry_parent_class)->finalize (obj);
-#line 887 "FlaggedSidebarEntry.c"
-}
-
-
-GType
-library_flagged_sidebar_entry_get_type (void)
-{
- static volatile gsize library_flagged_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&library_flagged_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryFlaggedSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_flagged_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryFlaggedSidebarEntry), 0, (GInstanceInitFunc) library_flagged_sidebar_entry_instance_init, NULL };
- static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) library_flagged_sidebar_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType library_flagged_sidebar_entry_type_id;
- library_flagged_sidebar_entry_type_id = g_type_register_static (LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, "LibraryFlaggedSidebarEntry", &g_define_type_info, 0);
- g_type_add_interface_static (library_flagged_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info);
- g_once_init_leave (&library_flagged_sidebar_entry_type_id__volatile, library_flagged_sidebar_entry_type_id);
- }
- return library_flagged_sidebar_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/library/FlaggedSidebarEntry.vala b/src/library/FlaggedSidebarEntry.vala
index e94e695..11b4f3e 100644
--- a/src/library/FlaggedSidebarEntry.vala
+++ b/src/library/FlaggedSidebarEntry.vala
@@ -22,7 +22,7 @@ public class Library.FlaggedSidebarEntry : Library.HideablePageEntry, Sidebar.In
}
public override string? get_sidebar_icon() {
- return Resources.ICON_FLAGGED_PAGE;
+ return "filter-flagged-symbolic";
}
protected override Page create_page() {
diff --git a/src/library/ImportQueuePage.c b/src/library/ImportQueuePage.c
deleted file mode 100644
index df6b6a0..0000000
--- a/src/library/ImportQueuePage.c
+++ /dev/null
@@ -1,1573 +0,0 @@
-/* ImportQueuePage.c generated by valac 0.40.4, the Vala compiler
- * generated from ImportQueuePage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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 <float.h>
-#include <math.h>
-#include <pango/pango.h>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate;
-
-#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ())
-#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer))
-#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER))
-#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER))
-#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-
-typedef struct _ZoomBuffer ZoomBuffer;
-typedef struct _ZoomBufferClass ZoomBufferClass;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ())
-
-#define TYPE_IMPORT_QUEUE_PAGE (import_queue_page_get_type ())
-#define IMPORT_QUEUE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage))
-#define IMPORT_QUEUE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePageClass))
-#define IS_IMPORT_QUEUE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_QUEUE_PAGE))
-#define IS_IMPORT_QUEUE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_QUEUE_PAGE))
-#define IMPORT_QUEUE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePageClass))
-
-typedef struct _ImportQueuePage ImportQueuePage;
-typedef struct _ImportQueuePageClass ImportQueuePageClass;
-typedef struct _ImportQueuePagePrivate ImportQueuePagePrivate;
-
-#define TYPE_BATCH_IMPORT (batch_import_get_type ())
-#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
-#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
-#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
-#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
-#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
-
-typedef struct _BatchImport BatchImport;
-typedef struct _BatchImportClass BatchImportClass;
-enum {
- IMPORT_QUEUE_PAGE_0_PROPERTY,
- IMPORT_QUEUE_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* import_queue_page_properties[IMPORT_QUEUE_PAGE_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_IMPORT_MANIFEST (import_manifest_get_type ())
-#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
-#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
-#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
-#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-
-typedef struct _ImportManifest ImportManifest;
-typedef struct _ImportManifestClass ImportManifestClass;
-
-#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-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 ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_PHOTO_VIEW (photo_view_get_type ())
-#define PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_VIEW, PhotoView))
-#define PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_VIEW, PhotoViewClass))
-#define IS_PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_VIEW))
-#define IS_PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_VIEW))
-#define PHOTO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_VIEW, PhotoViewClass))
-
-typedef struct _PhotoView PhotoView;
-typedef struct _PhotoViewClass PhotoViewClass;
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#define TYPE_VIDEO_VIEW (video_view_get_type ())
-#define VIDEO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_VIEW, VideoView))
-#define VIDEO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_VIEW, VideoViewClass))
-#define IS_VIDEO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_VIEW))
-#define IS_VIDEO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_VIEW))
-#define VIDEO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_VIEW, VideoViewClass))
-
-typedef struct _VideoView VideoView;
-typedef struct _VideoViewClass VideoViewClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-enum {
- IMPORT_QUEUE_PAGE_BATCH_ADDED_SIGNAL,
- IMPORT_QUEUE_PAGE_BATCH_REMOVED_SIGNAL,
- IMPORT_QUEUE_PAGE_NUM_SIGNALS
-};
-static guint import_queue_page_signals[IMPORT_QUEUE_PAGE_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-typedef enum {
- SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS
-} SinglePhotoPageUpdateReason;
-
-struct _SinglePhotoPage {
- Page parent_instance;
- SinglePhotoPagePrivate * priv;
- GtkDrawingArea* canvas;
- GtkViewport* viewport;
-};
-
-struct _SinglePhotoPageClass {
- PageClass parent_class;
- gboolean (*is_zoom_supported) (SinglePhotoPage* self);
- void (*cancel_zoom) (SinglePhotoPage* self);
- void (*save_zoom_state) (SinglePhotoPage* self);
- void (*restore_zoom_state) (SinglePhotoPage* self);
- ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self);
- void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim);
- void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*on_previous_photo) (SinglePhotoPage* self);
- void (*on_next_photo) (SinglePhotoPage* self);
-};
-
-struct _ImportQueuePage {
- SinglePhotoPage parent_instance;
- ImportQueuePagePrivate * priv;
-};
-
-struct _ImportQueuePageClass {
- SinglePhotoPageClass parent_class;
-};
-
-struct _ImportQueuePagePrivate {
- GeeArrayList* queue;
- GeeHashSet* cancel_unallowed;
- BatchImport* current_batch;
- GtkProgressBar* progress_bar;
- gboolean stopped;
-};
-
-typedef enum {
- IMPORT_RESULT_SUCCESS,
- IMPORT_RESULT_FILE_ERROR,
- IMPORT_RESULT_DECODE_ERROR,
- IMPORT_RESULT_DATABASE_ERROR,
- IMPORT_RESULT_USER_ABORT,
- IMPORT_RESULT_NOT_A_FILE,
- IMPORT_RESULT_PHOTO_EXISTS,
- IMPORT_RESULT_UNSUPPORTED_FORMAT,
- IMPORT_RESULT_NOT_AN_IMAGE,
- IMPORT_RESULT_DISK_FAILURE,
- IMPORT_RESULT_DISK_FULL,
- IMPORT_RESULT_CAMERA_ERROR,
- IMPORT_RESULT_FILE_WRITE_ERROR,
- IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
-} ImportResult;
-
-typedef enum {
- DIRECTION_FORWARD,
- DIRECTION_BACKWARD
-} Direction;
-
-
-static gpointer import_queue_page_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType zoom_buffer_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST;
-GType import_queue_page_get_type (void) G_GNUC_CONST;
-GType batch_import_get_type (void) G_GNUC_CONST;
-#define IMPORT_QUEUE_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePagePrivate))
-#define IMPORT_QUEUE_PAGE_NAME _ ("Importing…")
-static void import_queue_page_on_stop (ImportQueuePage* self);
-static void _import_queue_page_on_stop_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-ImportQueuePage* import_queue_page_new (void);
-ImportQueuePage* import_queue_page_construct (GType object_type);
-SinglePhotoPage* single_photo_page_construct (GType object_type,
- const gchar* page_name,
- gboolean scale_up_to_viewport);
-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,
- 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);
-static void import_queue_page_on_preparing (ImportQueuePage* self);
-static void _import_queue_page_on_preparing_batch_import_preparing (BatchImport* _sender,
- gpointer self);
-static void import_queue_page_on_progress (ImportQueuePage* self,
- guint64 completed_bytes,
- guint64 total_bytes);
-static void _import_queue_page_on_progress_batch_import_progress (BatchImport* _sender,
- guint64 completed_bytes,
- guint64 total_bytes,
- gpointer self);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-static void import_queue_page_on_imported (ImportQueuePage* self,
- ThumbnailSource* source,
- GdkPixbuf* pixbuf,
- gint to_follow);
-GType media_source_get_type (void) G_GNUC_CONST;
-static void _import_queue_page_on_imported_batch_import_imported (BatchImport* _sender,
- MediaSource* source,
- GdkPixbuf* pixbuf,
- gint to_follow,
- gpointer self);
-gpointer import_manifest_ref (gpointer instance);
-void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_import_manifest (GValue* value,
- gpointer v_object);
-void value_take_import_manifest (GValue* value,
- gpointer v_object);
-gpointer value_get_import_manifest (const GValue* value);
-GType import_manifest_get_type (void) G_GNUC_CONST;
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-static void import_queue_page_on_import_complete (ImportQueuePage* self,
- BatchImport* batch_import,
- ImportManifest* manifest,
- BatchImportRoll* import_roll);
-static void _import_queue_page_on_import_complete_batch_import_import_complete (BatchImport* _sender,
- ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self);
-GType import_result_get_type (void) G_GNUC_CONST;
-static void import_queue_page_on_fatal_error (ImportQueuePage* self,
- ImportResult _result_,
- const gchar* message);
-static void _import_queue_page_on_fatal_error_batch_import_fatal_error (BatchImport* _sender,
- ImportResult _result_,
- const gchar* message,
- gpointer self);
-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);
-GType direction_get_type (void) G_GNUC_CONST;
-void single_photo_page_set_pixbuf (SinglePhotoPage* self,
- GdkPixbuf* unscaled,
- Dimensions* max_dim,
- Direction* direction);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-void data_collection_clear (DataCollection* self);
-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;
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-PhotoView* photo_view_new (PhotoSource* source);
-PhotoView* photo_view_construct (GType object_type,
- PhotoSource* source);
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType photo_view_get_type (void) G_GNUC_CONST;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-VideoView* video_view_new (VideoSource* source);
-VideoView* video_view_construct (GType object_type,
- VideoSource* source);
-GType video_view_get_type (void) G_GNUC_CONST;
-gchar* data_object_get_name (DataObject* self);
-void single_photo_page_blank_display (SinglePhotoPage* self);
-void page_window_set_normal_cursor (PageWindow* self);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-static void import_queue_page_finalize (GObject * obj);
-
-static const GActionEntry IMPORT_QUEUE_PAGE_entries[1] = {{"Stop", _import_queue_page_on_stop_gsimple_action_activate_callback}};
-
-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 641 "ImportQueuePage.c"
-}
-
-
-ImportQueuePage*
-import_queue_page_construct (GType object_type)
-{
- ImportQueuePage * self = NULL;
- GtkToolbar* toolbar = NULL;
- GtkToolbar* _tmp0_;
- GtkToolButton* stop_button = NULL;
- GtkToolButton* _tmp1_;
- GtkSeparatorToolItem* separator = NULL;
- GtkSeparatorToolItem* _tmp2_;
- GtkToolItem* progress_item = NULL;
- GtkToolItem* _tmp3_;
- GtkProgressBar* _tmp4_;
- GtkProgressBar* _tmp5_;
-#line 25 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self = (ImportQueuePage*) single_photo_page_construct (object_type, IMPORT_QUEUE_PAGE_NAME, FALSE);
-#line 28 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 28 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- toolbar = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL);
-#line 31 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_object_ref_sink (_tmp1_);
-#line 31 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- stop_button = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_tool_button_set_icon_name (stop_button, "stop");
-#line 33 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (stop_button, gtk_actionable_get_type (), GtkActionable), "win.Stop");
-#line 35 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (stop_button, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 38 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp2_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
-#line 38 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_object_ref_sink (_tmp2_);
-#line 38 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- separator = _tmp2_;
-#line 39 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_separator_tool_item_set_draw (separator, FALSE);
-#line 41 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (separator, gtk_tool_item_get_type (), GtkToolItem), -1);
-#line 44 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp3_ = gtk_tool_item_new ();
-#line 44 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_object_ref_sink (_tmp3_);
-#line 44 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- progress_item = _tmp3_;
-#line 45 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_tool_item_set_expand (progress_item, TRUE);
-#line 46 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp4_ = self->priv->progress_bar;
-#line 46 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (progress_item, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 47 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp5_ = self->priv->progress_bar;
-#line 47 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_set_show_text (_tmp5_, TRUE);
-#line 49 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_toolbar_insert (toolbar, progress_item, -1);
-#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (progress_item);
-#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (separator);
-#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (stop_button);
-#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (toolbar);
-#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- return self;
-#line 715 "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 724 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- ImportQueuePage * self;
-#line 56 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage);
-#line 56 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 57 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "import_queue.ui");
-#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), ui_filenames);
-#line 741 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- ImportQueuePage * self;
-#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), map);
-#line 69 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_action_map_add_action_entries (map, IMPORT_QUEUE_PAGE_entries, G_N_ELEMENTS (IMPORT_QUEUE_PAGE_entries), self);
-#line 758 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- ImportQueuePage * self;
-#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"
- 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), map);
-#line 773 "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 785 "ImportQueuePage.c"
- GActionEntry entry = {0};
-#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- entry = entry_collection[entry_it];
-#line 789 "ImportQueuePage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = entry;
-#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = _tmp0_.name;
-#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 799 "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 812 "ImportQueuePage.c"
-}
-
-
-static void
-_import_queue_page_on_preparing_batch_import_preparing (BatchImport* _sender,
- gpointer self)
-{
-#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_on_preparing ((ImportQueuePage*) self);
-#line 822 "ImportQueuePage.c"
-}
-
-
-static void
-_import_queue_page_on_progress_batch_import_progress (BatchImport* _sender,
- guint64 completed_bytes,
- guint64 total_bytes,
- gpointer self)
-{
-#line 84 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_on_progress ((ImportQueuePage*) self, completed_bytes, total_bytes);
-#line 834 "ImportQueuePage.c"
-}
-
-
-static void
-_import_queue_page_on_imported_batch_import_imported (BatchImport* _sender,
- MediaSource* source,
- GdkPixbuf* pixbuf,
- gint to_follow,
- gpointer self)
-{
-#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_on_imported ((ImportQueuePage*) self, source, pixbuf, to_follow);
-#line 847 "ImportQueuePage.c"
-}
-
-
-static void
-_import_queue_page_on_import_complete_batch_import_import_complete (BatchImport* _sender,
- ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self)
-{
-#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_on_import_complete ((ImportQueuePage*) self, _sender, manifest, import_roll);
-#line 859 "ImportQueuePage.c"
-}
-
-
-static void
-_import_queue_page_on_fatal_error_batch_import_fatal_error (BatchImport* _sender,
- ImportResult _result_,
- const gchar* message,
- gpointer self)
-{
-#line 87 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_on_fatal_error ((ImportQueuePage*) self, _result_, message);
-#line 871 "ImportQueuePage.c"
-}
-
-
-void
-import_queue_page_enqueue_and_schedule (ImportQueuePage* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel)
-{
- GeeArrayList* _tmp0_;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_BATCH_IMPORT (batch_import));
-#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = self->priv->queue;
-#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _vala_assert (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import), "!queue.contains(batch_import)");
-#line 82 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_connect_object (batch_import, "starting", (GCallback) _import_queue_page_on_starting_batch_import_starting, self, 0);
-#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_connect_object (batch_import, "preparing", (GCallback) _import_queue_page_on_preparing_batch_import_preparing, self, 0);
-#line 84 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_connect_object (batch_import, "progress", (GCallback) _import_queue_page_on_progress_batch_import_progress, self, 0);
-#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_connect_object (batch_import, "imported", (GCallback) _import_queue_page_on_imported_batch_import_imported, self, 0);
-#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_connect_object (batch_import, "import-complete", (GCallback) _import_queue_page_on_import_complete_batch_import_import_complete, self, 0);
-#line 87 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_connect_object (batch_import, "fatal-error", (GCallback) _import_queue_page_on_fatal_error_batch_import_fatal_error, self, 0);
-#line 89 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (!allow_user_cancel) {
-#line 907 "ImportQueuePage.c"
- GeeHashSet* _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = self->priv->cancel_unallowed;
-#line 90 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import);
-#line 913 "ImportQueuePage.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp2_ = self->priv->queue;
-#line 92 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import);
-#line 93 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_emit (self, import_queue_page_signals[IMPORT_QUEUE_PAGE_BATCH_ADDED_SIGNAL], 0, batch_import);
-#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp3_ = self->priv->queue;
-#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp5_ = _tmp4_;
-#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (_tmp5_ == 1) {
-#line 96 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- batch_import_schedule (batch_import);
-#line 931 "ImportQueuePage.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_update_stop_action (self);
-#line 935 "ImportQueuePage.c"
-}
-
-
-gint
-import_queue_page_get_batch_count (ImportQueuePage* self)
-{
- gint result = 0;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 101 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_val_if_fail (IS_IMPORT_QUEUE_PAGE (self), 0);
-#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = self->priv->queue;
-#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp2_ = _tmp1_;
-#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- result = _tmp2_;
-#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- return result;
-#line 958 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_update_stop_action (ImportQueuePage* self)
-{
- gboolean _tmp0_ = FALSE;
- GeeHashSet* _tmp1_;
- BatchImport* _tmp2_;
-#line 105 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = self->priv->cancel_unallowed;
-#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp2_ = self->priv->current_batch;
-#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_)) {
-#line 976 "ImportQueuePage.c"
- GeeArrayList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp3_ = self->priv->queue;
-#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp5_ = _tmp4_;
-#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = _tmp5_ > 0;
-#line 988 "ImportQueuePage.c"
- } else {
-#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = FALSE;
-#line 992 "ImportQueuePage.c"
- }
-#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 996 "ImportQueuePage.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1005 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_on_stop (ImportQueuePage* self)
-{
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- AppWindow* _tmp3_;
- AppWindow* _tmp4_;
-#line 109 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 110 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_update_stop_action (self);
-#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = self->priv->queue;
-#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp2_ = _tmp1_;
-#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (_tmp2_ == 0) {
-#line 113 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- return;
-#line 1031 "ImportQueuePage.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp3_ = app_window_get_instance ();
-#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp4_ = _tmp3_;
-#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 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (_tmp4_);
-#line 116 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->stopped = TRUE;
-#line 1043 "ImportQueuePage.c"
- {
- GeeArrayList* _batch_import_list = NULL;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
- gint _batch_import_size = 0;
- GeeArrayList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _batch_import_index = 0;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp5_ = self->priv->queue;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _batch_import_list = _tmp6_;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp7_ = _batch_import_list;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp9_ = _tmp8_;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _batch_import_size = _tmp9_;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _batch_import_index = -1;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- while (TRUE) {
-#line 1071 "ImportQueuePage.c"
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- BatchImport* batch_import = NULL;
- GeeArrayList* _tmp13_;
- gint _tmp14_;
- gpointer _tmp15_;
- BatchImport* _tmp16_;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp10_ = _batch_import_index;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _batch_import_index = _tmp10_ + 1;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp11_ = _batch_import_index;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp12_ = _batch_import_size;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (!(_tmp11_ < _tmp12_)) {
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- break;
-#line 1092 "ImportQueuePage.c"
- }
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp13_ = _batch_import_list;
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp14_ = _batch_import_index;
-#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 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- batch_import = (BatchImport*) _tmp15_;
-#line 120 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp16_ = batch_import;
-#line 120 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- batch_import_user_halt (_tmp16_);
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (batch_import);
-#line 1108 "ImportQueuePage.c"
- }
-#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (_batch_import_list);
-#line 1112 "ImportQueuePage.c"
- }
-}
-
-
-static void
-import_queue_page_on_starting (ImportQueuePage* self,
- BatchImport* batch_import)
-{
- BatchImport* _tmp0_;
-#line 123 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 123 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_BATCH_IMPORT (batch_import));
-#line 124 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_update_stop_action (self);
-#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = _g_object_ref0 (batch_import);
-#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (self->priv->current_batch);
-#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->current_batch = _tmp0_;
-#line 1134 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_on_preparing (ImportQueuePage* self)
-{
- GtkProgressBar* _tmp0_;
- GtkProgressBar* _tmp1_;
-#line 128 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = self->priv->progress_bar;
-#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_set_text (_tmp0_, _ ("Preparing to import…"));
-#line 130 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = self->priv->progress_bar;
-#line 130 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_pulse (_tmp1_);
-#line 1153 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_on_progress (ImportQueuePage* self,
- guint64 completed_bytes,
- guint64 total_bytes)
-{
- gdouble _tmp0_ = 0.0;
- gdouble pct = 0.0;
- GtkProgressBar* _tmp1_;
-#line 133 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (completed_bytes <= total_bytes) {
-#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = ((gdouble) completed_bytes) / ((gdouble) total_bytes);
-#line 1171 "ImportQueuePage.c"
- } else {
-#line 135 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = 0.0;
-#line 1175 "ImportQueuePage.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- pct = _tmp0_;
-#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = self->priv->progress_bar;
-#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_set_fraction (_tmp1_, pct);
-#line 1183 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_on_imported (ImportQueuePage* self,
- ThumbnailSource* source,
- GdkPixbuf* pixbuf,
- gint to_follow)
-{
- gboolean _tmp0_ = FALSE;
- Dimensions _tmp1_ = {0};
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- gboolean _tmp4_ = FALSE;
- GtkProgressBar* _tmp13_;
- GtkProgressBar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
-#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_THUMBNAIL_SOURCE (source));
-#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (to_follow > 0) {
-#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = TRUE;
-#line 1214 "ImportQueuePage.c"
- } else {
-#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = !page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 1218 "ImportQueuePage.c"
- }
-#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (_tmp0_) {
-#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- return;
-#line 1224 "ImportQueuePage.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- dimensions_for_pixbuf (pixbuf, &_tmp1_);
-#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), pixbuf, &_tmp1_, NULL);
-#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp3_ = _tmp2_;
-#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection));
-#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _data_collection_unref0 (_tmp3_);
-#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO)) {
-#line 1240 "ImportQueuePage.c"
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- PhotoView* _tmp7_;
- PhotoView* _tmp8_;
-#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp6_ = _tmp5_;
-#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp7_ = photo_view_new (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) source) : NULL, TYPE_PHOTO_SOURCE, PhotoSource));
-#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp8_ = _tmp7_;
-#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp4_ = data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (_tmp8_);
-#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 1259 "ImportQueuePage.c"
- } else {
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- VideoView* _tmp11_;
- VideoView* _tmp12_;
-#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp10_ = _tmp9_;
-#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp11_ = video_view_new (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_VIDEO) ? ((Video*) source) : NULL, TYPE_VIDEO_SOURCE, VideoSource));
-#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp12_ = _tmp11_;
-#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp4_ = data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
-#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (_tmp12_);
-#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 1279 "ImportQueuePage.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp13_ = self->priv->progress_bar;
-#line 155 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_set_ellipsize (_tmp13_, PANGO_ELLIPSIZE_MIDDLE);
-#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp14_ = self->priv->progress_bar;
-#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp15_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
-#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp16_ = _tmp15_;
-#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp17_ = g_strdup_printf (_ ("Imported %s"), _tmp16_);
-#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp18_ = _tmp17_;
-#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_set_text (_tmp14_, _tmp18_);
-#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_free0 (_tmp18_);
-#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_free0 (_tmp16_);
-#line 1301 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_on_import_complete (ImportQueuePage* self,
- BatchImport* batch_import,
- ImportManifest* manifest,
- BatchImportRoll* import_roll)
-{
- BatchImport* _tmp0_;
- GeeArrayList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- GeeArrayList* _tmp4_;
- gpointer _tmp5_;
- BatchImport* _tmp6_;
- gboolean removed = FALSE;
- GeeArrayList* _tmp7_;
- gboolean _tmp8_;
- GeeHashSet* _tmp9_;
- guint _tmp10_;
- guint _tmp11_;
- guint _tmp12_;
- guint _tmp13_;
- guint _tmp14_;
- guint _tmp15_;
- GeeArrayList* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
-#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_BATCH_IMPORT (batch_import));
-#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_MANIFEST (manifest));
-#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll));
-#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = self->priv->current_batch;
-#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _vala_assert (batch_import == _tmp0_, "batch_import == current_batch");
-#line 162 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (self->priv->current_batch);
-#line 162 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->current_batch = NULL;
-#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = self->priv->queue;
-#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp3_ = _tmp2_;
-#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _vala_assert (_tmp3_ > 0, "queue.size > 0");
-#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp4_ = self->priv->queue;
-#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp5_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp6_ = (BatchImport*) _tmp5_;
-#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _vala_assert (_tmp6_ == batch_import, "queue.get(0) == batch_import");
-#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (_tmp6_);
-#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp7_ = self->priv->queue;
-#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import);
-#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp8_ = removed;
-#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _vala_assert (_tmp8_, "removed");
-#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp9_ = self->priv->cancel_unallowed;
-#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import);
-#line 174 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_parse_name ("starting", TYPE_BATCH_IMPORT, &_tmp10_, NULL, FALSE);
-#line 174 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _import_queue_page_on_starting_batch_import_starting, self);
-#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_parse_name ("preparing", TYPE_BATCH_IMPORT, &_tmp11_, NULL, FALSE);
-#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _import_queue_page_on_preparing_batch_import_preparing, self);
-#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_parse_name ("progress", TYPE_BATCH_IMPORT, &_tmp12_, NULL, FALSE);
-#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _import_queue_page_on_progress_batch_import_progress, self);
-#line 177 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_parse_name ("imported", TYPE_BATCH_IMPORT, &_tmp13_, NULL, FALSE);
-#line 177 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _import_queue_page_on_imported_batch_import_imported, self);
-#line 178 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_parse_name ("import-complete", TYPE_BATCH_IMPORT, &_tmp14_, NULL, FALSE);
-#line 178 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _import_queue_page_on_import_complete_batch_import_import_complete, self);
-#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_parse_name ("fatal-error", TYPE_BATCH_IMPORT, &_tmp15_, NULL, FALSE);
-#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _import_queue_page_on_fatal_error_batch_import_fatal_error, self);
-#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp16_ = self->priv->queue;
-#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp18_ = _tmp17_;
-#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (_tmp18_ > 0) {
-#line 1409 "ImportQueuePage.c"
- GeeArrayList* _tmp19_;
- gpointer _tmp20_;
- BatchImport* _tmp21_;
-#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp19_ = self->priv->queue;
-#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp20_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp21_ = (BatchImport*) _tmp20_;
-#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- batch_import_schedule (_tmp21_);
-#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (_tmp21_);
-#line 1423 "ImportQueuePage.c"
- } else {
- GtkProgressBar* _tmp22_;
- GtkProgressBar* _tmp23_;
- GtkProgressBar* _tmp24_;
- gboolean _tmp25_;
-#line 186 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp22_ = self->priv->progress_bar;
-#line 186 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_set_ellipsize (_tmp22_, PANGO_ELLIPSIZE_NONE);
-#line 187 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp23_ = self->priv->progress_bar;
-#line 187 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_set_text (_tmp23_, "");
-#line 188 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp24_ = self->priv->progress_bar;
-#line 188 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- gtk_progress_bar_set_fraction (_tmp24_, 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 198 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp25_ = self->priv->stopped;
-#line 198 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- if (_tmp25_) {
-#line 1447 "ImportQueuePage.c"
- AppWindow* _tmp26_;
- AppWindow* _tmp27_;
-#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp26_ = app_window_get_instance ();
-#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp27_ = _tmp26_;
-#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_PAGE_WINDOW, PageWindow));
-#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (_tmp27_);
-#line 1458 "ImportQueuePage.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->stopped = FALSE;
-#line 1462 "ImportQueuePage.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_update_stop_action (self);
-#line 207 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_signal_emit (self, import_queue_page_signals[IMPORT_QUEUE_PAGE_BATCH_REMOVED_SIGNAL], 0, batch_import);
-#line 1468 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_on_fatal_error (ImportQueuePage* self,
- ImportResult _result_,
- const gchar* message)
-{
-#line 210 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self));
-#line 210 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_return_if_fail (message != NULL);
-#line 211 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- app_window_error_message (message, NULL);
-#line 1483 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_class_init (ImportQueuePageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- import_queue_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_type_class_add_private (klass, sizeof (ImportQueuePagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) import_queue_page_real_init_collect_ui_filenames;
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) import_queue_page_real_add_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) 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"
- import_queue_page_signals[IMPORT_QUEUE_PAGE_BATCH_ADDED_SIGNAL] = 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"
- import_queue_page_signals[IMPORT_QUEUE_PAGE_BATCH_REMOVED_SIGNAL] = 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 1506 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_instance_init (ImportQueuePage * self)
-{
- GeeArrayList* _tmp0_;
- GeeHashSet* _tmp1_;
- GtkProgressBar* _tmp2_;
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv = IMPORT_QUEUE_PAGE_GET_PRIVATE (self);
-#line 10 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp0_ = gee_array_list_new (TYPE_BATCH_IMPORT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 10 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->queue = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp1_ = gee_hash_set_new (TYPE_BATCH_IMPORT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 11 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->cancel_unallowed = _tmp1_;
-#line 12 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->current_batch = NULL;
-#line 13 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _tmp2_ = (GtkProgressBar*) gtk_progress_bar_new ();
-#line 13 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- g_object_ref_sink (_tmp2_);
-#line 13 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->progress_bar = _tmp2_;
-#line 14 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self->priv->stopped = FALSE;
-#line 1536 "ImportQueuePage.c"
-}
-
-
-static void
-import_queue_page_finalize (GObject * obj)
-{
- ImportQueuePage * self;
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage);
-#line 10 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (self->priv->queue);
-#line 11 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (self->priv->cancel_unallowed);
-#line 12 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _g_object_unref0 (self->priv->current_batch);
-#line 13 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala"
- _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 1556 "ImportQueuePage.c"
-}
-
-
-GType
-import_queue_page_get_type (void)
-{
- static volatile gsize import_queue_page_type_id__volatile = 0;
- if (g_once_init_enter (&import_queue_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ImportQueuePageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_queue_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportQueuePage), 0, (GInstanceInitFunc) import_queue_page_instance_init, NULL };
- GType import_queue_page_type_id;
- import_queue_page_type_id = g_type_register_static (TYPE_SINGLE_PHOTO_PAGE, "ImportQueuePage", &g_define_type_info, 0);
- g_once_init_leave (&import_queue_page_type_id__volatile, import_queue_page_type_id);
- }
- return import_queue_page_type_id__volatile;
-}
-
-
-
diff --git a/src/library/ImportQueuePage.vala b/src/library/ImportQueuePage.vala
index feb525d..1a14472 100644
--- a/src/library/ImportQueuePage.vala
+++ b/src/library/ImportQueuePage.vala
@@ -29,7 +29,7 @@ public class ImportQueuePage : SinglePhotoPage {
// Stop button
Gtk.ToolButton stop_button = new Gtk.ToolButton(null, null);
- stop_button.set_icon_name("stop");
+ stop_button.set_icon_name("process-stop-symbolic");
stop_button.set_action_name ("win.Stop");
toolbar.insert(stop_button, -1);
diff --git a/src/library/ImportQueueSidebarEntry.c b/src/library/ImportQueueSidebarEntry.c
deleted file mode 100644
index b878989..0000000
--- a/src/library/ImportQueueSidebarEntry.c
+++ /dev/null
@@ -1,547 +0,0 @@
-/* ImportQueueSidebarEntry.c generated by valac 0.40.4, the Vala compiler
- * generated from ImportQueueSidebarEntry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <glib/gi18n-lib.h>
-
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-
-#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ())
-#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-
-typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry;
-typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass;
-typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate;
-
-#define LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY (library_import_queue_sidebar_entry_get_type ())
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry))
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass))
-#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY))
-#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY))
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass))
-
-typedef struct _LibraryImportQueueSidebarEntry LibraryImportQueueSidebarEntry;
-typedef struct _LibraryImportQueueSidebarEntryClass LibraryImportQueueSidebarEntryClass;
-typedef struct _LibraryImportQueueSidebarEntryPrivate LibraryImportQueueSidebarEntryPrivate;
-enum {
- LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_0_PROPERTY,
- LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* library_import_queue_sidebar_entry_properties[LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-
-#define TYPE_IMPORT_QUEUE_PAGE (import_queue_page_get_type ())
-#define IMPORT_QUEUE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage))
-#define IMPORT_QUEUE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePageClass))
-#define IS_IMPORT_QUEUE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_QUEUE_PAGE))
-#define IS_IMPORT_QUEUE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_QUEUE_PAGE))
-#define IMPORT_QUEUE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePageClass))
-
-typedef struct _ImportQueuePage ImportQueuePage;
-typedef struct _ImportQueuePageClass ImportQueuePageClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_BATCH_IMPORT (batch_import_get_type ())
-#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
-#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
-#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
-#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
-#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
-
-typedef struct _BatchImport BatchImport;
-typedef struct _BatchImportClass BatchImportClass;
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _LibraryHideablePageEntry {
- SidebarSimplePageEntry parent_instance;
- LibraryHideablePageEntryPrivate * priv;
-};
-
-struct _LibraryHideablePageEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _LibraryImportQueueSidebarEntry {
- LibraryHideablePageEntry parent_instance;
- LibraryImportQueueSidebarEntryPrivate * priv;
-};
-
-struct _LibraryImportQueueSidebarEntryClass {
- LibraryHideablePageEntryClass parent_class;
-};
-
-
-static gpointer library_import_queue_sidebar_entry_parent_class = NULL;
-
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType library_hideable_page_entry_get_type (void) G_GNUC_CONST;
-GType library_import_queue_sidebar_entry_get_type (void) G_GNUC_CONST;
-LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_new (void);
-LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_construct (GType object_type);
-LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type);
-static void library_import_queue_sidebar_entry_on_page_created (LibraryImportQueueSidebarEntry* self);
-static void _library_import_queue_sidebar_entry_on_page_created_sidebar_page_representative_page_created (SidebarPageRepresentative* _sender,
- Page* page,
- gpointer self);
-static void library_import_queue_sidebar_entry_on_destroying_page (LibraryImportQueueSidebarEntry* self);
-static void _library_import_queue_sidebar_entry_on_destroying_page_sidebar_page_representative_destroying_page (SidebarPageRepresentative* _sender,
- Page* page,
- gpointer self);
-void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self,
- gboolean value);
-static gchar* library_import_queue_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-#define IMPORT_QUEUE_PAGE_NAME _ ("Importing…")
-static gchar* library_import_queue_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-#define RESOURCES_ICON_IMPORTING "go-down"
-static Page* library_import_queue_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-ImportQueuePage* import_queue_page_new (void);
-ImportQueuePage* import_queue_page_construct (GType object_type);
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType import_queue_page_get_type (void) G_GNUC_CONST;
-static ImportQueuePage* library_import_queue_sidebar_entry_get_queue_page (LibraryImportQueueSidebarEntry* self);
-Page* sidebar_page_representative_get_page (SidebarPageRepresentative* self);
-static void library_import_queue_sidebar_entry_on_batch_added_or_removed (LibraryImportQueueSidebarEntry* self);
-GType batch_import_get_type (void) G_GNUC_CONST;
-static void _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_added (ImportQueuePage* _sender,
- BatchImport* batch_import,
- gpointer self);
-static void _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_removed (ImportQueuePage* _sender,
- BatchImport* batch_import,
- gpointer self);
-gint import_queue_page_get_batch_count (ImportQueuePage* self);
-void library_import_queue_sidebar_entry_enqueue_and_schedule (LibraryImportQueueSidebarEntry* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel);
-void import_queue_page_enqueue_and_schedule (ImportQueuePage* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel);
-
-
-static void
-_library_import_queue_sidebar_entry_on_page_created_sidebar_page_representative_page_created (SidebarPageRepresentative* _sender,
- Page* page,
- gpointer self)
-{
-#line 10 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- library_import_queue_sidebar_entry_on_page_created ((LibraryImportQueueSidebarEntry*) self);
-#line 259 "ImportQueueSidebarEntry.c"
-}
-
-
-static void
-_library_import_queue_sidebar_entry_on_destroying_page_sidebar_page_representative_destroying_page (SidebarPageRepresentative* _sender,
- Page* page,
- gpointer self)
-{
-#line 11 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- library_import_queue_sidebar_entry_on_destroying_page ((LibraryImportQueueSidebarEntry*) self);
-#line 270 "ImportQueueSidebarEntry.c"
-}
-
-
-LibraryImportQueueSidebarEntry*
-library_import_queue_sidebar_entry_construct (GType object_type)
-{
- LibraryImportQueueSidebarEntry * self = NULL;
-#line 8 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- self = (LibraryImportQueueSidebarEntry*) library_hideable_page_entry_construct (object_type);
-#line 10 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative), "page-created", (GCallback) _library_import_queue_sidebar_entry_on_page_created_sidebar_page_representative_page_created, self, 0);
-#line 11 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative), "destroying-page", (GCallback) _library_import_queue_sidebar_entry_on_destroying_page_sidebar_page_representative_destroying_page, self, 0);
-#line 16 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), FALSE);
-#line 8 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- return self;
-#line 288 "ImportQueueSidebarEntry.c"
-}
-
-
-LibraryImportQueueSidebarEntry*
-library_import_queue_sidebar_entry_new (void)
-{
-#line 8 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- return library_import_queue_sidebar_entry_construct (LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY);
-#line 297 "ImportQueueSidebarEntry.c"
-}
-
-
-static gchar*
-library_import_queue_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- LibraryImportQueueSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry);
-#line 20 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp0_ = g_strdup (IMPORT_QUEUE_PAGE_NAME);
-#line 20 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- result = _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- return result;
-#line 315 "ImportQueueSidebarEntry.c"
-}
-
-
-static gchar*
-library_import_queue_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- LibraryImportQueueSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry);
-#line 24 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_IMPORTING);
-#line 24 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- result = _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- return result;
-#line 333 "ImportQueueSidebarEntry.c"
-}
-
-
-static Page*
-library_import_queue_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- LibraryImportQueueSidebarEntry * self;
- Page* result = NULL;
- ImportQueuePage* _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry);
-#line 28 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp0_ = import_queue_page_new ();
-#line 28 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_object_ref_sink (_tmp0_);
-#line 28 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
-#line 28 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- return result;
-#line 353 "ImportQueueSidebarEntry.c"
-}
-
-
-static ImportQueuePage*
-library_import_queue_sidebar_entry_get_queue_page (LibraryImportQueueSidebarEntry* self)
-{
- ImportQueuePage* result = NULL;
- Page* _tmp0_;
- ImportQueuePage* _tmp1_;
-#line 31 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_return_val_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self), NULL);
-#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp0_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_IMPORT_QUEUE_PAGE) ? ((ImportQueuePage*) _tmp0_) : NULL;
-#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- if (_tmp1_ == NULL) {
-#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _g_object_unref0 (_tmp0_);
-#line 373 "ImportQueueSidebarEntry.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- result = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- return result;
-#line 379 "ImportQueueSidebarEntry.c"
-}
-
-
-static void
-_library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_added (ImportQueuePage* _sender,
- BatchImport* batch_import,
- gpointer self)
-{
-#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- library_import_queue_sidebar_entry_on_batch_added_or_removed ((LibraryImportQueueSidebarEntry*) self);
-#line 390 "ImportQueueSidebarEntry.c"
-}
-
-
-static void
-_library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_removed (ImportQueuePage* _sender,
- BatchImport* batch_import,
- gpointer self)
-{
-#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- library_import_queue_sidebar_entry_on_batch_added_or_removed ((LibraryImportQueueSidebarEntry*) self);
-#line 401 "ImportQueueSidebarEntry.c"
-}
-
-
-static void
-library_import_queue_sidebar_entry_on_page_created (LibraryImportQueueSidebarEntry* self)
-{
- ImportQueuePage* _tmp0_;
- ImportQueuePage* _tmp1_;
- ImportQueuePage* _tmp2_;
- ImportQueuePage* _tmp3_;
-#line 35 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_return_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self));
-#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp0_ = library_import_queue_sidebar_entry_get_queue_page (self);
-#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_signal_connect_object (_tmp1_, "batch-added", (GCallback) _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_added, self, 0);
-#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _g_object_unref0 (_tmp1_);
-#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp2_ = library_import_queue_sidebar_entry_get_queue_page (self);
-#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_signal_connect_object (_tmp3_, "batch-removed", (GCallback) _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_removed, self, 0);
-#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 430 "ImportQueueSidebarEntry.c"
-}
-
-
-static void
-library_import_queue_sidebar_entry_on_destroying_page (LibraryImportQueueSidebarEntry* self)
-{
- ImportQueuePage* _tmp0_;
- ImportQueuePage* _tmp1_;
- guint _tmp2_;
- ImportQueuePage* _tmp3_;
- ImportQueuePage* _tmp4_;
- guint _tmp5_;
-#line 40 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_return_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self));
-#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp0_ = library_import_queue_sidebar_entry_get_queue_page (self);
-#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_signal_parse_name ("batch-added", TYPE_IMPORT_QUEUE_PAGE, &_tmp2_, NULL, FALSE);
-#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_added, self);
-#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _g_object_unref0 (_tmp1_);
-#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp3_ = library_import_queue_sidebar_entry_get_queue_page (self);
-#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp4_ = _tmp3_;
-#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_signal_parse_name ("batch-removed", TYPE_IMPORT_QUEUE_PAGE, &_tmp5_, NULL, FALSE);
-#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_removed, self);
-#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _g_object_unref0 (_tmp4_);
-#line 465 "ImportQueueSidebarEntry.c"
-}
-
-
-static void
-library_import_queue_sidebar_entry_on_batch_added_or_removed (LibraryImportQueueSidebarEntry* self)
-{
- ImportQueuePage* _tmp0_;
- ImportQueuePage* _tmp1_;
-#line 45 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_return_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self));
-#line 46 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp0_ = library_import_queue_sidebar_entry_get_queue_page (self);
-#line 46 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), import_queue_page_get_batch_count (_tmp1_) > 0);
-#line 46 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _g_object_unref0 (_tmp1_);
-#line 484 "ImportQueueSidebarEntry.c"
-}
-
-
-void
-library_import_queue_sidebar_entry_enqueue_and_schedule (LibraryImportQueueSidebarEntry* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel)
-{
- ImportQueuePage* _tmp0_;
- ImportQueuePage* _tmp1_;
-#line 49 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_return_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self));
-#line 49 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- g_return_if_fail (IS_BATCH_IMPORT (batch_import));
-#line 52 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), TRUE);
-#line 53 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp0_ = library_import_queue_sidebar_entry_get_queue_page (self);
-#line 53 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- import_queue_page_enqueue_and_schedule (_tmp1_, batch_import, allow_user_cancel);
-#line 53 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- _g_object_unref0 (_tmp1_);
-#line 509 "ImportQueueSidebarEntry.c"
-}
-
-
-static void
-library_import_queue_sidebar_entry_class_init (LibraryImportQueueSidebarEntryClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- library_import_queue_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_import_queue_sidebar_entry_real_get_sidebar_name;
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_import_queue_sidebar_entry_real_get_sidebar_icon;
-#line 7 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_import_queue_sidebar_entry_real_create_page;
-#line 524 "ImportQueueSidebarEntry.c"
-}
-
-
-static void
-library_import_queue_sidebar_entry_instance_init (LibraryImportQueueSidebarEntry * self)
-{
-}
-
-
-GType
-library_import_queue_sidebar_entry_get_type (void)
-{
- static volatile gsize library_import_queue_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&library_import_queue_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryImportQueueSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_import_queue_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryImportQueueSidebarEntry), 0, (GInstanceInitFunc) library_import_queue_sidebar_entry_instance_init, NULL };
- GType library_import_queue_sidebar_entry_type_id;
- library_import_queue_sidebar_entry_type_id = g_type_register_static (LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, "LibraryImportQueueSidebarEntry", &g_define_type_info, 0);
- g_once_init_leave (&library_import_queue_sidebar_entry_type_id__volatile, library_import_queue_sidebar_entry_type_id);
- }
- return library_import_queue_sidebar_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/library/LastImportPage.c b/src/library/LastImportPage.c
deleted file mode 100644
index 6fdba61..0000000
--- a/src/library/LastImportPage.c
+++ /dev/null
@@ -1,1372 +0,0 @@
-/* LastImportPage.c generated by valac 0.40.4, the Vala compiler
- * generated from LastImportPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-typedef struct _CollectionPagePrivate CollectionPagePrivate;
-
-#define TYPE_LAST_IMPORT_PAGE (last_import_page_get_type ())
-#define LAST_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LAST_IMPORT_PAGE, LastImportPage))
-#define LAST_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LAST_IMPORT_PAGE, LastImportPageClass))
-#define IS_LAST_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LAST_IMPORT_PAGE))
-#define IS_LAST_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LAST_IMPORT_PAGE))
-#define LAST_IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LAST_IMPORT_PAGE, LastImportPageClass))
-
-typedef struct _LastImportPage LastImportPage;
-typedef struct _LastImportPageClass LastImportPageClass;
-typedef struct _LastImportPagePrivate LastImportPagePrivate;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-enum {
- LAST_IMPORT_PAGE_0_PROPERTY,
- LAST_IMPORT_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* last_import_page_properties[LAST_IMPORT_PAGE_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _import_id_free0(var) ((var == NULL) ? NULL : (var = (import_id_free (var), NULL)))
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-
-#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ())
-#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager))
-#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER))
-#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER))
-#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-
-typedef struct _CollectionViewManager CollectionViewManager;
-typedef struct _CollectionViewManagerClass CollectionViewManagerClass;
-
-#define LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER (last_import_page_last_import_view_manager_get_type ())
-#define LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManager))
-#define LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManagerClass))
-#define LAST_IMPORT_PAGE_IS_LAST_IMPORT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER))
-#define LAST_IMPORT_PAGE_IS_LAST_IMPORT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER))
-#define LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManagerClass))
-
-typedef struct _LastImportPageLastImportViewManager LastImportPageLastImportViewManager;
-typedef struct _LastImportPageLastImportViewManagerClass LastImportPageLastImportViewManagerClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate;
-typedef struct _LastImportPageLastImportViewManagerPrivate LastImportPageLastImportViewManagerPrivate;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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;
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _CollectionPage {
- MediaPage parent_instance;
- CollectionPagePrivate * priv;
-};
-
-struct _CollectionPageClass {
- MediaPageClass parent_class;
-};
-
-struct _LastImportPage {
- CollectionPage parent_instance;
- LastImportPagePrivate * priv;
-};
-
-struct _LastImportPageClass {
- CollectionPageClass parent_class;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _LastImportPagePrivate {
- ImportID last_import_id;
- Alteration* last_import_alteration;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _CollectionViewManager {
- ViewManager parent_instance;
- CollectionViewManagerPrivate * priv;
-};
-
-struct _CollectionViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _LastImportPageLastImportViewManager {
- CollectionViewManager parent_instance;
- LastImportPageLastImportViewManagerPrivate * priv;
-};
-
-struct _LastImportPageLastImportViewManagerClass {
- CollectionViewManagerClass parent_class;
-};
-
-struct _LastImportPageLastImportViewManagerPrivate {
- ImportID import_id;
-};
-
-
-static gpointer last_import_page_parent_class = NULL;
-static gpointer last_import_page_last_import_view_manager_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType last_import_page_get_type (void) G_GNUC_CONST;
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-#define LAST_IMPORT_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LAST_IMPORT_PAGE, LastImportPagePrivate))
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-static void last_import_page_on_import_rolls_altered (LastImportPage* self);
-static void _last_import_page_on_import_rolls_altered_media_source_collection_import_roll_altered (MediaSourceCollection* _sender,
- gpointer self);
-#define IMPORT_ID_INVALID ((gint64) 0)
-void import_id_init (ImportID *self,
- gint64 id);
-Alteration* alteration_new (const gchar* subject,
- const gchar* detail);
-Alteration* alteration_construct (GType object_type,
- const gchar* subject,
- const gchar* detail);
-#define LAST_IMPORT_PAGE_NAME _ ("Last Import")
-LastImportPage* last_import_page_new (void);
-LastImportPage* last_import_page_construct (GType object_type);
-CollectionPage* collection_page_construct (GType object_type,
- const gchar* page_name);
-ImportID* media_collection_registry_get_last_import_id (MediaCollectionRegistry* self);
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-void view_collection_halt_all_monitoring (ViewCollection* self);
-void data_collection_clear (DataCollection* self);
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-static LastImportPageLastImportViewManager* last_import_page_last_import_view_manager_new (LastImportPage* owner,
- ImportID* import_id);
-static LastImportPageLastImportViewManager* last_import_page_last_import_view_manager_construct (GType object_type,
- LastImportPage* owner,
- ImportID* import_id);
-GType collection_view_manager_get_type (void) G_GNUC_CONST;
-static GType last_import_page_last_import_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static void last_import_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void last_import_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by);
-void configuration_facade_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-#define LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManagerPrivate))
-CollectionViewManager* collection_view_manager_new (CollectionPage* page);
-CollectionViewManager* collection_view_manager_construct (GType object_type,
- CollectionPage* page);
-static gboolean last_import_page_last_import_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-void media_source_get_import_id (MediaSource* self,
- ImportID* result);
-static void last_import_page_last_import_view_manager_finalize (ViewManager * obj);
-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 790 "LastImportPage.c"
-}
-
-
-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 800 "LastImportPage.c"
- {
- GeeIterator* _col_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _col_it = _tmp5_;
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- while (TRUE) {
-#line 829 "LastImportPage.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* col = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp6_ = _col_it;
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- break;
-#line 841 "LastImportPage.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp7_ = _col_it;
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- col = (MediaSourceCollection*) _tmp8_;
-#line 32 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp9_ = col;
-#line 32 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_signal_connect_object (_tmp9_, "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 855 "LastImportPage.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _g_object_unref0 (_col_it);
-#line 859 "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 865 "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 874 "LastImportPage.c"
-}
-
-
-static void
-last_import_page_on_import_rolls_altered (LastImportPage* self)
-{
- ImportID* current_last_import_id = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- ImportID* _tmp2_;
- ImportID* _tmp3_;
- ImportID* _tmp4_;
- ImportID* _tmp9_;
- gint64 _tmp10_;
- ImportID _tmp11_;
- gint64 _tmp12_;
- ImportID* _tmp13_;
- ViewCollection* _tmp14_;
- ViewCollection* _tmp15_;
- ViewCollection* _tmp16_;
- ViewCollection* _tmp17_;
-#line 45 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_return_if_fail (IS_LAST_IMPORT_PAGE (self));
-#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp2_ = media_collection_registry_get_last_import_id (_tmp1_);
-#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- current_last_import_id = _tmp3_;
-#line 50 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp4_ = current_last_import_id;
-#line 50 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- if (_tmp4_ == NULL) {
-#line 914 "LastImportPage.c"
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
-#line 51 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 51 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp6_ = _tmp5_;
-#line 51 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- view_collection_halt_all_monitoring (_tmp6_);
-#line 51 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 52 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 52 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp8_ = _tmp7_;
-#line 52 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
-#line 52 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 54 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _import_id_free0 (current_last_import_id);
-#line 54 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- return;
-#line 939 "LastImportPage.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp9_ = current_last_import_id;
-#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp10_ = (*_tmp9_).id;
-#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp11_ = self->priv->last_import_id;
-#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp12_ = _tmp11_.id;
-#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- if (_tmp10_ == _tmp12_) {
-#line 58 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _import_id_free0 (current_last_import_id);
-#line 58 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- return;
-#line 955 "LastImportPage.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp13_ = current_last_import_id;
-#line 60 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- self->priv->last_import_id = *_tmp13_;
-#line 62 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 62 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp15_ = _tmp14_;
-#line 62 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- view_collection_halt_all_monitoring (_tmp15_);
-#line 62 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _data_collection_unref0 (_tmp15_);
-#line 63 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 63 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp17_ = _tmp16_;
-#line 63 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- 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 977 "LastImportPage.c"
- {
- GeeIterator* _col_it = NULL;
- MediaCollectionRegistry* _tmp18_;
- MediaCollectionRegistry* _tmp19_;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
- GeeIterator* _tmp22_;
- GeeIterator* _tmp23_;
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp18_ = media_collection_registry_get_instance ();
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp19_ = _tmp18_;
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp20_ = media_collection_registry_get_all (_tmp19_);
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp21_ = _tmp20_;
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp23_ = _tmp22_;
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _g_object_unref0 (_tmp21_);
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _media_collection_registry_unref0 (_tmp19_);
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _col_it = _tmp23_;
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- while (TRUE) {
-#line 1006 "LastImportPage.c"
- GeeIterator* _tmp24_;
- MediaSourceCollection* col = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- ViewCollection* _tmp27_;
- ViewCollection* _tmp28_;
- MediaSourceCollection* _tmp29_;
- ImportID _tmp30_;
- LastImportPageLastImportViewManager* _tmp31_;
- LastImportPageLastImportViewManager* _tmp32_;
- Alteration* _tmp33_;
- ViewCollectionMonitor* _tmp34_;
- ViewCollectionMonitor* _tmp35_;
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp24_ = _col_it;
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- if (!gee_iterator_next (_tmp24_)) {
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- break;
-#line 1026 "LastImportPage.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp25_ = _col_it;
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- col = (MediaSourceCollection*) _tmp26_;
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp28_ = _tmp27_;
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp29_ = col;
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp30_ = self->priv->last_import_id;
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp31_ = last_import_page_last_import_view_manager_new (self, &_tmp30_);
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp32_ = _tmp31_;
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp33_ = self->priv->last_import_alteration;
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp34_ = view_collection_monitor_source_collection (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_VIEW_MANAGER, ViewManager), _tmp33_, NULL, NULL, NULL);
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp35_ = _tmp34_;
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _view_collection_monitor_unref0 (_tmp35_);
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _view_manager_unref0 (_tmp32_);
-#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _data_collection_unref0 (_tmp28_);
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _data_collection_unref0 (col);
-#line 1060 "LastImportPage.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _g_object_unref0 (_col_it);
-#line 1064 "LastImportPage.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _import_id_free0 (current_last_import_id);
-#line 1068 "LastImportPage.c"
-}
-
-
-static void
-last_import_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by)
-{
- LastImportPage * self;
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_ = 0;
-#line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LAST_IMPORT_PAGE, LastImportPage);
-#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_);
-#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _vala_sort_order = _tmp2_;
-#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _vala_sort_by = _tmp3_;
-#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- if (sort_order) {
-#line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- *sort_order = _vala_sort_order;
-#line 1102 "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 1108 "LastImportPage.c"
- }
-}
-
-
-static void
-last_import_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by)
-{
- LastImportPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 75 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LAST_IMPORT_PAGE, LastImportPage);
-#line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by);
-#line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1131 "LastImportPage.c"
-}
-
-
-static LastImportPageLastImportViewManager*
-last_import_page_last_import_view_manager_construct (GType object_type,
- LastImportPage* owner,
- ImportID* import_id)
-{
- LastImportPageLastImportViewManager* self = NULL;
- ImportID _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_return_val_if_fail (IS_LAST_IMPORT_PAGE (owner), NULL);
-#line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_return_val_if_fail (import_id != NULL, NULL);
-#line 14 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- self = (LastImportPageLastImportViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, TYPE_COLLECTION_PAGE, CollectionPage));
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp0_ = *import_id;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- self->priv->import_id = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- return self;
-#line 1154 "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 1164 "LastImportPage.c"
-}
-
-
-static gboolean
-last_import_page_last_import_view_manager_real_include_in_view (ViewManager* base,
- DataSource* source)
-{
- LastImportPageLastImportViewManager * self;
- gboolean result = FALSE;
- ImportID _tmp0_ = {0};
- gint64 _tmp1_;
- ImportID _tmp2_;
- gint64 _tmp3_;
-#line 19 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManager);
-#line 19 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- media_source_get_import_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), &_tmp0_);
-#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp1_ = _tmp0_.id;
-#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp2_ = self->priv->import_id;
-#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp3_ = _tmp2_.id;
-#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- result = _tmp1_ == _tmp3_;
-#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- return result;
-#line 1194 "LastImportPage.c"
-}
-
-
-static void
-last_import_page_last_import_view_manager_class_init (LastImportPageLastImportViewManagerClass * klass)
-{
-#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- last_import_page_last_import_view_manager_parent_class = g_type_class_peek_parent (klass);
-#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- ((ViewManagerClass *) klass)->finalize = last_import_page_last_import_view_manager_finalize;
-#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_type_class_add_private (klass, sizeof (LastImportPageLastImportViewManagerPrivate));
-#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) last_import_page_last_import_view_manager_real_include_in_view;
-#line 1209 "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 1218 "LastImportPage.c"
-}
-
-
-static void
-last_import_page_last_import_view_manager_finalize (ViewManager * obj)
-{
- LastImportPageLastImportViewManager * self;
-#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- 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 1230 "LastImportPage.c"
-}
-
-
-static GType
-last_import_page_last_import_view_manager_get_type (void)
-{
- static volatile gsize last_import_page_last_import_view_manager_type_id__volatile = 0;
- if (g_once_init_enter (&last_import_page_last_import_view_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LastImportPageLastImportViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) last_import_page_last_import_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LastImportPageLastImportViewManager), 0, (GInstanceInitFunc) last_import_page_last_import_view_manager_instance_init, NULL };
- GType last_import_page_last_import_view_manager_type_id;
- last_import_page_last_import_view_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "LastImportPageLastImportViewManager", &g_define_type_info, 0);
- g_once_init_leave (&last_import_page_last_import_view_manager_type_id__volatile, last_import_page_last_import_view_manager_type_id);
- }
- return last_import_page_last_import_view_manager_type_id__volatile;
-}
-
-
-static void
-last_import_page_class_init (LastImportPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- last_import_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_type_class_add_private (klass, sizeof (LastImportPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) last_import_page_real_get_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) 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 1261 "LastImportPage.c"
-}
-
-
-static void
-last_import_page_instance_init (LastImportPage * self)
-{
- Alteration* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- self->priv = LAST_IMPORT_PAGE_GET_PRIVATE (self);
-#line 24 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- import_id_init (&self->priv->last_import_id, IMPORT_ID_INVALID);
-#line 25 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp0_ = alteration_new ("metadata", "import-id");
-#line 25 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- self->priv->last_import_alteration = _tmp0_;
-#line 1277 "LastImportPage.c"
-}
-
-
-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 1287 "LastImportPage.c"
- {
- GeeIterator* _col_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp1_ = _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp3_ = _tmp2_;
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp5_ = _tmp4_;
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _col_it = _tmp5_;
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- while (TRUE) {
-#line 1316 "LastImportPage.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* col = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
- guint _tmp10_;
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp6_ = _col_it;
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- break;
-#line 1329 "LastImportPage.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp7_ = _col_it;
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- col = (MediaSourceCollection*) _tmp8_;
-#line 41 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _tmp9_ = col;
-#line 41 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_signal_parse_name ("import-roll-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 41 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 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 1345 "LastImportPage.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala"
- _g_object_unref0 (_col_it);
-#line 1349 "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 1355 "LastImportPage.c"
-}
-
-
-GType
-last_import_page_get_type (void)
-{
- static volatile gsize last_import_page_type_id__volatile = 0;
- if (g_once_init_enter (&last_import_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LastImportPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) last_import_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LastImportPage), 0, (GInstanceInitFunc) last_import_page_instance_init, NULL };
- GType last_import_page_type_id;
- last_import_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "LastImportPage", &g_define_type_info, 0);
- g_once_init_leave (&last_import_page_type_id__volatile, last_import_page_type_id);
- }
- return last_import_page_type_id__volatile;
-}
-
-
-
diff --git a/src/library/LastImportPage.vala b/src/library/LastImportPage.vala
index be30989..84f582e 100644
--- a/src/library/LastImportPage.vala
+++ b/src/library/LastImportPage.vala
@@ -35,6 +35,20 @@ public class LastImportPage : CollectionPage {
// set up view manager for the last import roll
on_import_rolls_altered();
}
+
+ public LastImportPage.for_id(ImportID id) {
+ base(NAME);
+
+ this.last_import_id = id;
+
+ get_view().halt_all_monitoring();
+ get_view().clear();
+
+ foreach (MediaSourceCollection col in MediaCollectionRegistry.get_instance().get_all()) {
+ get_view().monitor_source_collection(col, new LastImportViewManager(this,
+ last_import_id), last_import_alteration);
+ }
+ }
~LastImportPage() {
foreach (MediaSourceCollection col in MediaCollectionRegistry.get_instance().get_all()) {
diff --git a/src/library/LastImportSidebarEntry.c b/src/library/LastImportSidebarEntry.c
deleted file mode 100644
index 8640578..0000000
--- a/src/library/LastImportSidebarEntry.c
+++ /dev/null
@@ -1,644 +0,0 @@
-/* LastImportSidebarEntry.c generated by valac 0.40.4, the Vala compiler
- * generated from LastImportSidebarEntry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-
-#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ())
-#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-
-typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry;
-typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass;
-typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate;
-
-#define LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY (library_last_import_sidebar_entry_get_type ())
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry))
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass))
-#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY))
-#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY))
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass))
-
-typedef struct _LibraryLastImportSidebarEntry LibraryLastImportSidebarEntry;
-typedef struct _LibraryLastImportSidebarEntryClass LibraryLastImportSidebarEntryClass;
-typedef struct _LibraryLastImportSidebarEntryPrivate LibraryLastImportSidebarEntryPrivate;
-enum {
- LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_0_PROPERTY,
- LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* library_last_import_sidebar_entry_properties[LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-#define _import_id_free0(var) ((var == NULL) ? NULL : (var = (import_id_free (var), NULL)))
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define TYPE_LAST_IMPORT_PAGE (last_import_page_get_type ())
-#define LAST_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LAST_IMPORT_PAGE, LastImportPage))
-#define LAST_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LAST_IMPORT_PAGE, LastImportPageClass))
-#define IS_LAST_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LAST_IMPORT_PAGE))
-#define IS_LAST_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LAST_IMPORT_PAGE))
-#define LAST_IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LAST_IMPORT_PAGE, LastImportPageClass))
-
-typedef struct _LastImportPage LastImportPage;
-typedef struct _LastImportPageClass LastImportPageClass;
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _LibraryHideablePageEntry {
- SidebarSimplePageEntry parent_instance;
- LibraryHideablePageEntryPrivate * priv;
-};
-
-struct _LibraryHideablePageEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _LibraryLastImportSidebarEntry {
- LibraryHideablePageEntry parent_instance;
- LibraryLastImportSidebarEntryPrivate * priv;
-};
-
-struct _LibraryLastImportSidebarEntryClass {
- LibraryHideablePageEntryClass parent_class;
-};
-
-struct _ImportID {
- gint64 id;
-};
-
-
-static gpointer library_last_import_sidebar_entry_parent_class = NULL;
-
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType library_hideable_page_entry_get_type (void) G_GNUC_CONST;
-GType library_last_import_sidebar_entry_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-static void library_last_import_sidebar_entry_on_import_rolls_altered (LibraryLastImportSidebarEntry* self);
-static void _library_last_import_sidebar_entry_on_import_rolls_altered_media_source_collection_import_roll_altered (MediaSourceCollection* _sender,
- gpointer self);
-LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_new (void);
-LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_construct (GType object_type);
-LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type);
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-ImportID* media_collection_registry_get_last_import_id (MediaCollectionRegistry* self);
-void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self,
- gboolean value);
-static gchar* library_last_import_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-#define LAST_IMPORT_PAGE_NAME _ ("Last Import")
-static gchar* library_last_import_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-#define RESOURCES_ICON_LAST_IMPORT "document-open-recent"
-static Page* library_last_import_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-LastImportPage* last_import_page_new (void);
-LastImportPage* last_import_page_construct (GType object_type);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType last_import_page_get_type (void) G_GNUC_CONST;
-static void library_last_import_sidebar_entry_finalize (GObject * obj);
-
-
-static void
-_library_last_import_sidebar_entry_on_import_rolls_altered_media_source_collection_import_roll_altered (MediaSourceCollection* _sender,
- gpointer self)
-{
-#line 17 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- library_last_import_sidebar_entry_on_import_rolls_altered ((LibraryLastImportSidebarEntry*) self);
-#line 345 "LastImportSidebarEntry.c"
-}
-
-
-LibraryLastImportSidebarEntry*
-library_last_import_sidebar_entry_construct (GType object_type)
-{
- LibraryLastImportSidebarEntry * self = NULL;
- MediaCollectionRegistry* _tmp10_;
- MediaCollectionRegistry* _tmp11_;
- ImportID* _tmp12_;
- ImportID* _tmp13_;
-#line 8 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- self = (LibraryLastImportSidebarEntry*) library_hideable_page_entry_construct (object_type);
-#line 359 "LastImportSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- while (TRUE) {
-#line 388 "LastImportSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- break;
-#line 400 "LastImportSidebarEntry.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 10 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 10 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- g_signal_connect_object (_tmp9_, "import-roll-altered", (GCallback) _library_last_import_sidebar_entry_on_import_rolls_altered_media_source_collection_import_roll_altered, self, 0);
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 414 "LastImportSidebarEntry.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 418 "LastImportSidebarEntry.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp10_ = media_collection_registry_get_instance ();
-#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp11_ = _tmp10_;
-#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp12_ = media_collection_registry_get_last_import_id (_tmp11_);
-#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp13_ = _tmp12_;
-#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), _tmp13_ != NULL);
-#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _import_id_free0 (_tmp13_);
-#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp11_);
-#line 8 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- return self;
-#line 436 "LastImportSidebarEntry.c"
-}
-
-
-LibraryLastImportSidebarEntry*
-library_last_import_sidebar_entry_new (void)
-{
-#line 8 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- return library_last_import_sidebar_entry_construct (LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY);
-#line 445 "LastImportSidebarEntry.c"
-}
-
-
-static gchar*
-library_last_import_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- LibraryLastImportSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry);
-#line 21 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp0_ = g_strdup (LAST_IMPORT_PAGE_NAME);
-#line 21 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- result = _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- return result;
-#line 463 "LastImportSidebarEntry.c"
-}
-
-
-static gchar*
-library_last_import_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- LibraryLastImportSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry);
-#line 25 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_LAST_IMPORT);
-#line 25 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- result = _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- return result;
-#line 481 "LastImportSidebarEntry.c"
-}
-
-
-static Page*
-library_last_import_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- LibraryLastImportSidebarEntry * self;
- Page* result = NULL;
- LastImportPage* _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry);
-#line 29 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp0_ = last_import_page_new ();
-#line 29 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- g_object_ref_sink (_tmp0_);
-#line 29 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
-#line 29 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- return result;
-#line 501 "LastImportSidebarEntry.c"
-}
-
-
-static void
-library_last_import_sidebar_entry_on_import_rolls_altered (LibraryLastImportSidebarEntry* self)
-{
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- ImportID* _tmp2_;
- ImportID* _tmp3_;
-#line 32 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- g_return_if_fail (LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY (self));
-#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_last_import_id (_tmp1_);
-#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), _tmp3_ != NULL);
-#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _import_id_free0 (_tmp3_);
-#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 528 "LastImportSidebarEntry.c"
-}
-
-
-static void
-library_last_import_sidebar_entry_class_init (LibraryLastImportSidebarEntryClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- library_last_import_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_last_import_sidebar_entry_real_get_sidebar_name;
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_last_import_sidebar_entry_real_get_sidebar_icon;
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_last_import_sidebar_entry_real_create_page;
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- G_OBJECT_CLASS (klass)->finalize = library_last_import_sidebar_entry_finalize;
-#line 545 "LastImportSidebarEntry.c"
-}
-
-
-static void
-library_last_import_sidebar_entry_instance_init (LibraryLastImportSidebarEntry * self)
-{
-}
-
-
-static void
-library_last_import_sidebar_entry_finalize (GObject * obj)
-{
- LibraryLastImportSidebarEntry * self;
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry);
-#line 561 "LastImportSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- while (TRUE) {
-#line 590 "LastImportSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
- guint _tmp10_;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- break;
-#line 603 "LastImportSidebarEntry.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 17 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 17 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- g_signal_parse_name ("import-roll-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 17 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_last_import_sidebar_entry_on_import_rolls_altered_media_source_collection_import_roll_altered, self);
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 619 "LastImportSidebarEntry.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 623 "LastImportSidebarEntry.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala"
- G_OBJECT_CLASS (library_last_import_sidebar_entry_parent_class)->finalize (obj);
-#line 627 "LastImportSidebarEntry.c"
-}
-
-
-GType
-library_last_import_sidebar_entry_get_type (void)
-{
- static volatile gsize library_last_import_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&library_last_import_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryLastImportSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_last_import_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryLastImportSidebarEntry), 0, (GInstanceInitFunc) library_last_import_sidebar_entry_instance_init, NULL };
- GType library_last_import_sidebar_entry_type_id;
- library_last_import_sidebar_entry_type_id = g_type_register_static (LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, "LibraryLastImportSidebarEntry", &g_define_type_info, 0);
- g_once_init_leave (&library_last_import_sidebar_entry_type_id__volatile, library_last_import_sidebar_entry_type_id);
- }
- return library_last_import_sidebar_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/library/Library.c b/src/library/Library.c
deleted file mode 100644
index e81e681..0000000
--- a/src/library/Library.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Library.c generated by valac 0.40.4, the Vala compiler
- * generated from Library.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void library_init (GError** error);
-void library_trash_sidebar_entry_init (void);
-gboolean photo_get_develop_raw_photos_to_files (void);
-void photo_set_develop_raw_photos_to_files (gboolean value);
-void library_terminate (void);
-void library_trash_sidebar_entry_terminate (void);
-
-
-void
-library_init (GError** error)
-{
- gboolean _tmp0_;
- gboolean _tmp1_;
-#line 10 "/home/jens/Source/shotwell/src/library/Library.vala"
- library_trash_sidebar_entry_init ();
-#line 11 "/home/jens/Source/shotwell/src/library/Library.vala"
- _tmp0_ = photo_get_develop_raw_photos_to_files ();
-#line 11 "/home/jens/Source/shotwell/src/library/Library.vala"
- _tmp1_ = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/library/Library.vala"
- photo_set_develop_raw_photos_to_files (TRUE);
-#line 39 "Library.c"
-}
-
-
-void
-library_terminate (void)
-{
-#line 15 "/home/jens/Source/shotwell/src/library/Library.vala"
- library_trash_sidebar_entry_terminate ();
-#line 48 "Library.c"
-}
-
-
-
diff --git a/src/library/LibraryBranch.c b/src/library/LibraryBranch.c
deleted file mode 100644
index d46cc91..0000000
--- a/src/library/LibraryBranch.c
+++ /dev/null
@@ -1,2363 +0,0 @@
-/* LibraryBranch.c generated by valac 0.40.4, the Vala compiler
- * generated from LibraryBranch.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <gio/gio.h>
-#include <gee.h>
-
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
-
-#define LIBRARY_TYPE_BRANCH (library_branch_get_type ())
-#define LIBRARY_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_BRANCH, LibraryBranch))
-#define LIBRARY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_BRANCH, LibraryBranchClass))
-#define LIBRARY_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_BRANCH))
-#define LIBRARY_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_BRANCH))
-#define LIBRARY_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_BRANCH, LibraryBranchClass))
-
-typedef struct _LibraryBranch LibraryBranch;
-typedef struct _LibraryBranchClass LibraryBranchClass;
-typedef struct _LibraryBranchPrivate LibraryBranchPrivate;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-
-#define LIBRARY_TYPE_PHOTOS_ENTRY (library_photos_entry_get_type ())
-#define LIBRARY_PHOTOS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry))
-#define LIBRARY_PHOTOS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntryClass))
-#define LIBRARY_IS_PHOTOS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_PHOTOS_ENTRY))
-#define LIBRARY_IS_PHOTOS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_PHOTOS_ENTRY))
-#define LIBRARY_PHOTOS_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntryClass))
-
-typedef struct _LibraryPhotosEntry LibraryPhotosEntry;
-typedef struct _LibraryPhotosEntryClass LibraryPhotosEntryClass;
-
-#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ())
-#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-
-typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry;
-typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass;
-
-#define LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY (library_flagged_sidebar_entry_get_type ())
-#define LIBRARY_FLAGGED_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry))
-#define LIBRARY_FLAGGED_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntryClass))
-#define LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY))
-#define LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY))
-#define LIBRARY_FLAGGED_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntryClass))
-
-typedef struct _LibraryFlaggedSidebarEntry LibraryFlaggedSidebarEntry;
-typedef struct _LibraryFlaggedSidebarEntryClass LibraryFlaggedSidebarEntryClass;
-
-#define LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY (library_last_import_sidebar_entry_get_type ())
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry))
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass))
-#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY))
-#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY))
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass))
-
-typedef struct _LibraryLastImportSidebarEntry LibraryLastImportSidebarEntry;
-typedef struct _LibraryLastImportSidebarEntryClass LibraryLastImportSidebarEntryClass;
-
-#define LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY (library_import_queue_sidebar_entry_get_type ())
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry))
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass))
-#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY))
-#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY))
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass))
-
-typedef struct _LibraryImportQueueSidebarEntry LibraryImportQueueSidebarEntry;
-typedef struct _LibraryImportQueueSidebarEntryClass LibraryImportQueueSidebarEntryClass;
-
-#define LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY (library_offline_sidebar_entry_get_type ())
-#define LIBRARY_OFFLINE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry))
-#define LIBRARY_OFFLINE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntryClass))
-#define LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY))
-#define LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY))
-#define LIBRARY_OFFLINE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntryClass))
-
-typedef struct _LibraryOfflineSidebarEntry LibraryOfflineSidebarEntry;
-typedef struct _LibraryOfflineSidebarEntryClass LibraryOfflineSidebarEntryClass;
-
-#define LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY (library_trash_sidebar_entry_get_type ())
-#define LIBRARY_TRASH_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry))
-#define LIBRARY_TRASH_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntryClass))
-#define LIBRARY_IS_TRASH_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY))
-#define LIBRARY_IS_TRASH_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY))
-#define LIBRARY_TRASH_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntryClass))
-
-typedef struct _LibraryTrashSidebarEntry LibraryTrashSidebarEntry;
-typedef struct _LibraryTrashSidebarEntryClass LibraryTrashSidebarEntryClass;
-enum {
- LIBRARY_BRANCH_0_PROPERTY,
- LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY,
- LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY,
- LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY,
- LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY,
- LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY,
- LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY,
- LIBRARY_BRANCH_NUM_PROPERTIES
-};
-static GParamSpec* library_branch_properties[LIBRARY_BRANCH_NUM_PROPERTIES];
-
-#define LIBRARY_BRANCH_TYPE_ENTRY_POSITION (library_branch_entry_position_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
-#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
-#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-
-typedef struct _SidebarGrouping SidebarGrouping;
-typedef struct _SidebarGroupingClass SidebarGroupingClass;
-
-#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
-#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
-#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-
-typedef struct _SidebarHeader SidebarHeader;
-typedef struct _SidebarHeaderClass SidebarHeaderClass;
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-typedef struct _LibraryPhotosEntryPrivate LibraryPhotosEntryPrivate;
-enum {
- LIBRARY_PHOTOS_ENTRY_0_PROPERTY,
- LIBRARY_PHOTOS_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* library_photos_entry_properties[LIBRARY_PHOTOS_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define LIBRARY_TYPE_MAIN_PAGE (library_main_page_get_type ())
-#define LIBRARY_MAIN_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_MAIN_PAGE, LibraryMainPage))
-#define LIBRARY_MAIN_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_MAIN_PAGE, LibraryMainPageClass))
-#define LIBRARY_IS_MAIN_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_MAIN_PAGE))
-#define LIBRARY_IS_MAIN_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_MAIN_PAGE))
-#define LIBRARY_MAIN_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_MAIN_PAGE, LibraryMainPageClass))
-
-typedef struct _LibraryMainPage LibraryMainPage;
-typedef struct _LibraryMainPageClass LibraryMainPageClass;
-typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate;
-enum {
- LIBRARY_HIDEABLE_PAGE_ENTRY_0_PROPERTY,
- LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY,
- LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_PROPERTIES];
-enum {
- LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL,
- LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_SIGNALS
-};
-static guint library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_SIGNALS] = {0};
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-typedef struct _CollectionPagePrivate CollectionPagePrivate;
-typedef struct _LibraryMainPagePrivate LibraryMainPagePrivate;
-enum {
- LIBRARY_MAIN_PAGE_0_PROPERTY,
- LIBRARY_MAIN_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* library_main_page_properties[LIBRARY_MAIN_PAGE_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-
-#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ())
-#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager))
-#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER))
-#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER))
-#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-
-typedef struct _CollectionViewManager CollectionViewManager;
-typedef struct _CollectionViewManagerClass CollectionViewManagerClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-struct _SidebarBranch {
- GObject parent_instance;
- SidebarBranchPrivate * priv;
-};
-
-struct _SidebarBranchClass {
- GObjectClass parent_class;
-};
-
-struct _LibraryBranch {
- SidebarBranch parent_instance;
- LibraryBranchPrivate * priv;
-};
-
-struct _LibraryBranchClass {
- SidebarBranchClass parent_class;
-};
-
-struct _LibraryBranchPrivate {
- LibraryPhotosEntry* _photos_entry;
- LibraryFlaggedSidebarEntry* _flagged_entry;
- LibraryLastImportSidebarEntry* _last_imported_entry;
- LibraryImportQueueSidebarEntry* _import_queue_entry;
- LibraryOfflineSidebarEntry* _offline_entry;
- LibraryTrashSidebarEntry* _trash_entry;
-};
-
-typedef enum {
- LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS,
- LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED,
- LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED,
- LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE,
- LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE,
- LIBRARY_BRANCH_ENTRY_POSITION_TRASH
-} LibraryBranchEntryPosition;
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-typedef enum {
- SIDEBAR_BRANCH_OPTIONS_NONE = 0,
- SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
- SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
-} SidebarBranchOptions;
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _LibraryPhotosEntry {
- SidebarSimplePageEntry parent_instance;
- LibraryPhotosEntryPrivate * priv;
-};
-
-struct _LibraryPhotosEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _LibraryHideablePageEntry {
- SidebarSimplePageEntry parent_instance;
- LibraryHideablePageEntryPrivate * priv;
-};
-
-struct _LibraryHideablePageEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _LibraryHideablePageEntryPrivate {
- gboolean show_entry;
-};
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _CollectionPage {
- MediaPage parent_instance;
- CollectionPagePrivate * priv;
-};
-
-struct _CollectionPageClass {
- MediaPageClass parent_class;
-};
-
-struct _LibraryMainPage {
- CollectionPage parent_instance;
- LibraryMainPagePrivate * priv;
-};
-
-struct _LibraryMainPageClass {
- CollectionPageClass parent_class;
-};
-
-
-static gpointer library_branch_parent_class = NULL;
-static gpointer library_photos_entry_parent_class = NULL;
-static gpointer library_hideable_page_entry_parent_class = NULL;
-static gpointer library_main_page_parent_class = NULL;
-
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-GType library_branch_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType library_photos_entry_get_type (void) G_GNUC_CONST;
-GType library_hideable_page_entry_get_type (void) G_GNUC_CONST;
-GType library_flagged_sidebar_entry_get_type (void) G_GNUC_CONST;
-GType library_last_import_sidebar_entry_get_type (void) G_GNUC_CONST;
-GType library_import_queue_sidebar_entry_get_type (void) G_GNUC_CONST;
-GType library_offline_sidebar_entry_get_type (void) G_GNUC_CONST;
-GType library_trash_sidebar_entry_get_type (void) G_GNUC_CONST;
-#define LIBRARY_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBRARY_TYPE_BRANCH, LibraryBranchPrivate))
-static GType library_branch_entry_position_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define LIBRARY_BRANCH_POSITION_DATA "x-photos-entry-position"
-LibraryBranch* library_branch_new (void);
-LibraryBranch* library_branch_construct (GType object_type);
-SidebarHeader* sidebar_header_new (const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type,
- const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-GType sidebar_grouping_get_type (void) G_GNUC_CONST;
-GType sidebar_header_get_type (void) G_GNUC_CONST;
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-static gint library_branch_comparator (SidebarEntry* a,
- SidebarEntry* b);
-static gint _library_branch_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-LibraryPhotosEntry* library_photos_entry_new (void);
-LibraryPhotosEntry* library_photos_entry_construct (GType object_type);
-static void library_branch_set_photos_entry (LibraryBranch* self,
- LibraryPhotosEntry* value);
-LibraryTrashSidebarEntry* library_trash_sidebar_entry_new (void);
-LibraryTrashSidebarEntry* library_trash_sidebar_entry_construct (GType object_type);
-static void library_branch_set_trash_entry (LibraryBranch* self,
- LibraryTrashSidebarEntry* value);
-LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_new (void);
-LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_construct (GType object_type);
-static void library_branch_set_last_imported_entry (LibraryBranch* self,
- LibraryLastImportSidebarEntry* value);
-LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_new (void);
-LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_construct (GType object_type);
-static void library_branch_set_flagged_entry (LibraryBranch* self,
- LibraryFlaggedSidebarEntry* value);
-LibraryOfflineSidebarEntry* library_offline_sidebar_entry_new (void);
-LibraryOfflineSidebarEntry* library_offline_sidebar_entry_construct (GType object_type);
-static void library_branch_set_offline_entry (LibraryBranch* self,
- LibraryOfflineSidebarEntry* value);
-LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_new (void);
-LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_construct (GType object_type);
-static void library_branch_set_import_queue_entry (LibraryBranch* self,
- LibraryImportQueueSidebarEntry* value);
-static void library_branch_insert (LibraryBranch* self,
- SidebarEntry* entry,
- gint position);
-LibraryPhotosEntry* library_branch_get_photos_entry (LibraryBranch* self);
-LibraryTrashSidebarEntry* library_branch_get_trash_entry (LibraryBranch* self);
-LibraryFlaggedSidebarEntry* library_branch_get_flagged_entry (LibraryBranch* self);
-static void library_branch_on_flagged_visibility_changed (LibraryBranch* self);
-static void _library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
- gboolean visible,
- gpointer self);
-LibraryLastImportSidebarEntry* library_branch_get_last_imported_entry (LibraryBranch* self);
-static void library_branch_on_last_imported_visibility_changed (LibraryBranch* self);
-static void _library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
- gboolean visible,
- gpointer self);
-LibraryImportQueueSidebarEntry* library_branch_get_import_queue_entry (LibraryBranch* self);
-static void library_branch_on_import_queue_visibility_changed (LibraryBranch* self);
-static void _library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
- gboolean visible,
- gpointer self);
-LibraryOfflineSidebarEntry* library_branch_get_offline_entry (LibraryBranch* self);
-static void library_branch_on_offline_visibility_changed (LibraryBranch* self);
-static void _library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
- gboolean visible,
- gpointer self);
-void sidebar_branch_graft (SidebarBranch* self,
- SidebarEntry* parent,
- SidebarEntry* entry,
- GCompareFunc comparator);
-SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-static void library_branch_update_entry_visibility (LibraryBranch* self,
- LibraryHideablePageEntry* entry,
- gint position);
-gboolean library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self);
-gboolean sidebar_branch_has_entry (SidebarBranch* self,
- SidebarEntry* entry);
-void sidebar_branch_prune (SidebarBranch* self,
- SidebarEntry* entry);
-static void library_branch_finalize (GObject * obj);
-static void _vala_library_branch_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_library_branch_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
-static gchar* library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-static gchar* library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-#define RESOURCES_ICON_PHOTOS "shotwell"
-static Page* library_photos_entry_real_create_page (SidebarSimplePageEntry* base);
-LibraryMainPage* library_main_page_new (ProgressMonitor monitor,
- void* monitor_target);
-LibraryMainPage* library_main_page_construct (GType object_type,
- ProgressMonitor monitor,
- void* monitor_target);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType library_main_page_get_type (void) G_GNUC_CONST;
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryPrivate))
-LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type);
-void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self,
- gboolean value);
-static void library_hideable_page_entry_finalize (GObject * obj);
-static void _vala_library_hideable_page_entry_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_library_hideable_page_entry_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-#define LIBRARY_MAIN_PAGE_NAME _ ("Library")
-CollectionPage* collection_page_construct (GType object_type,
- const gchar* page_name);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-CollectionViewManager* collection_view_manager_new (CollectionPage* page);
-CollectionViewManager* collection_view_manager_construct (GType object_type,
- CollectionPage* page);
-GType collection_view_manager_get_type (void) G_GNUC_CONST;
-static void library_main_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void library_main_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by);
-void configuration_facade_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-
-
-static GType
-library_branch_entry_position_get_type (void)
-{
- static volatile gsize library_branch_entry_position_type_id__volatile = 0;
- if (g_once_init_enter (&library_branch_entry_position_type_id__volatile)) {
- static const GEnumValue values[] = {{LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS, "LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS", "photos"}, {LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED, "LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED", "flagged"}, {LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED, "LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED", "last-imported"}, {LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE, "LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE", "import-queue"}, {LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE, "LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE", "offline"}, {LIBRARY_BRANCH_ENTRY_POSITION_TRASH, "LIBRARY_BRANCH_ENTRY_POSITION_TRASH", "trash"}, {0, NULL, NULL}};
- GType library_branch_entry_position_type_id;
- library_branch_entry_position_type_id = g_enum_register_static ("LibraryBranchEntryPosition", values);
- g_once_init_leave (&library_branch_entry_position_type_id__volatile, library_branch_entry_position_type_id);
- }
- return library_branch_entry_position_type_id__volatile;
-}
-
-
-static gint
-_library_branch_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = library_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1131 "LibraryBranch.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/LibraryBranch.vala"
- library_branch_on_flagged_visibility_changed ((LibraryBranch*) self);
-#line 1142 "LibraryBranch.c"
-}
-
-
-static void
-_library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
- gboolean visible,
- gpointer self)
-{
-#line 46 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_on_last_imported_visibility_changed ((LibraryBranch*) self);
-#line 1153 "LibraryBranch.c"
-}
-
-
-static void
-_library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
- gboolean visible,
- gpointer self)
-{
-#line 49 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_on_import_queue_visibility_changed ((LibraryBranch*) self);
-#line 1164 "LibraryBranch.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/LibraryBranch.vala"
- library_branch_on_offline_visibility_changed ((LibraryBranch*) self);
-#line 1175 "LibraryBranch.c"
-}
-
-
-LibraryBranch*
-library_branch_construct (GType object_type)
-{
- LibraryBranch * self = NULL;
- SidebarHeader* _tmp0_;
- SidebarHeader* _tmp1_;
- LibraryPhotosEntry* _tmp2_;
- LibraryPhotosEntry* _tmp3_;
- LibraryTrashSidebarEntry* _tmp4_;
- LibraryTrashSidebarEntry* _tmp5_;
- LibraryLastImportSidebarEntry* _tmp6_;
- LibraryLastImportSidebarEntry* _tmp7_;
- LibraryFlaggedSidebarEntry* _tmp8_;
- LibraryFlaggedSidebarEntry* _tmp9_;
- LibraryOfflineSidebarEntry* _tmp10_;
- LibraryOfflineSidebarEntry* _tmp11_;
- LibraryImportQueueSidebarEntry* _tmp12_;
- LibraryImportQueueSidebarEntry* _tmp13_;
- LibraryPhotosEntry* _tmp14_;
- LibraryTrashSidebarEntry* _tmp15_;
- LibraryFlaggedSidebarEntry* _tmp16_;
- LibraryLastImportSidebarEntry* _tmp17_;
- LibraryImportQueueSidebarEntry* _tmp18_;
- LibraryOfflineSidebarEntry* _tmp19_;
-#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = sidebar_header_new (_ ("Library"), _ ("Organize and browse your photos"), TRUE);
-#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = (LibraryBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING, _library_branch_comparator_gcompare_func, NULL);
-#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 33 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp2_ = library_photos_entry_new ();
-#line 33 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp3_ = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_photos_entry (self, _tmp3_);
-#line 33 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 34 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp4_ = library_trash_sidebar_entry_new ();
-#line 34 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp5_ = _tmp4_;
-#line 34 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_trash_entry (self, _tmp5_);
-#line 34 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp5_);
-#line 35 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp6_ = library_last_import_sidebar_entry_new ();
-#line 35 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp7_ = _tmp6_;
-#line 35 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_last_imported_entry (self, _tmp7_);
-#line 35 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp7_);
-#line 36 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp8_ = library_flagged_sidebar_entry_new ();
-#line 36 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp9_ = _tmp8_;
-#line 36 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_flagged_entry (self, _tmp9_);
-#line 36 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp9_);
-#line 37 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp10_ = library_offline_sidebar_entry_new ();
-#line 37 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp11_ = _tmp10_;
-#line 37 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_offline_entry (self, _tmp11_);
-#line 37 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp11_);
-#line 38 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp12_ = library_import_queue_sidebar_entry_new ();
-#line 38 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp13_ = _tmp12_;
-#line 38 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_import_queue_entry (self, _tmp13_);
-#line 38 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp13_);
-#line 40 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp14_ = self->priv->_photos_entry;
-#line 40 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS);
-#line 41 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp15_ = self->priv->_trash_entry;
-#line 41 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_TRASH);
-#line 43 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp16_ = self->priv->_flagged_entry;
-#line 43 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), "visibility-changed", (GCallback) _library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed, self, 0);
-#line 44 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_on_flagged_visibility_changed (self);
-#line 46 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp17_ = self->priv->_last_imported_entry;
-#line 46 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), "visibility-changed", (GCallback) _library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed, self, 0);
-#line 47 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_on_last_imported_visibility_changed (self);
-#line 49 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp18_ = self->priv->_import_queue_entry;
-#line 49 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), "visibility-changed", (GCallback) _library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed, self, 0);
-#line 50 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_on_import_queue_visibility_changed (self);
-#line 52 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp19_ = self->priv->_offline_entry;
-#line 52 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), "visibility-changed", (GCallback) _library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed, self, 0);
-#line 53 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_on_offline_visibility_changed (self);
-#line 29 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return self;
-#line 1293 "LibraryBranch.c"
-}
-
-
-LibraryBranch*
-library_branch_new (void)
-{
-#line 29 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return library_branch_construct (LIBRARY_TYPE_BRANCH);
-#line 1302 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_insert (LibraryBranch* self,
- SidebarEntry* entry,
- gint position)
-{
- SidebarEntry* _tmp0_;
- SidebarEntry* _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 56 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 57 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_set_data_full (G_TYPE_CHECK_INSTANCE_CAST (entry, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA, (gpointer) ((gintptr) position), NULL);
-#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp1_, entry, NULL);
-#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 1327 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_on_flagged_visibility_changed (LibraryBranch* self)
-{
- LibraryFlaggedSidebarEntry* _tmp0_;
-#line 61 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 62 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_flagged_entry;
-#line 62 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED);
-#line 1341 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_on_last_imported_visibility_changed (LibraryBranch* self)
-{
- LibraryLastImportSidebarEntry* _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 66 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_last_imported_entry;
-#line 66 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED);
-#line 1355 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_on_import_queue_visibility_changed (LibraryBranch* self)
-{
- LibraryImportQueueSidebarEntry* _tmp0_;
-#line 69 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 70 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_import_queue_entry;
-#line 70 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE);
-#line 1369 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_on_offline_visibility_changed (LibraryBranch* self)
-{
- LibraryOfflineSidebarEntry* _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 74 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_offline_entry;
-#line 74 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE);
-#line 1383 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_update_entry_visibility (LibraryBranch* self,
- LibraryHideablePageEntry* entry,
- gint position)
-{
- gboolean _tmp0_;
- gboolean _tmp1_;
-#line 77 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 77 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_HIDEABLE_PAGE_ENTRY (entry));
-#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = library_hideable_page_entry_get_visible (entry);
-#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _tmp0_;
-#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (_tmp1_) {
-#line 79 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (!sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry))) {
-#line 80 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), position);
-#line 1408 "LibraryBranch.c"
- }
- } else {
-#line 81 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry))) {
-#line 82 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 1415 "LibraryBranch.c"
- }
- }
-}
-
-
-static gint
-library_branch_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- gconstpointer _tmp0_;
- gconstpointer _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 86 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = g_object_get_data (G_TYPE_CHECK_INSTANCE_CAST (a, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA);
-#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = g_object_get_data (G_TYPE_CHECK_INSTANCE_CAST (b, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA);
-#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = ((gint) ((gintptr) _tmp0_)) - ((gint) ((gintptr) _tmp1_));
-#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1440 "LibraryBranch.c"
-}
-
-
-LibraryPhotosEntry*
-library_branch_get_photos_entry (LibraryBranch* self)
-{
- LibraryPhotosEntry* result;
- LibraryPhotosEntry* _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL);
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_photos_entry;
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1457 "LibraryBranch.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1466 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_set_photos_entry (LibraryBranch* self,
- LibraryPhotosEntry* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (library_branch_get_photos_entry (self) != value) {
-#line 1478 "LibraryBranch.c"
- LibraryPhotosEntry* _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_photos_entry);
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_photos_entry = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY]);
-#line 1488 "LibraryBranch.c"
- }
-}
-
-
-LibraryFlaggedSidebarEntry*
-library_branch_get_flagged_entry (LibraryBranch* self)
-{
- LibraryFlaggedSidebarEntry* result;
- LibraryFlaggedSidebarEntry* _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL);
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_flagged_entry;
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1506 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_set_flagged_entry (LibraryBranch* self,
- LibraryFlaggedSidebarEntry* value)
-{
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (library_branch_get_flagged_entry (self) != value) {
-#line 1518 "LibraryBranch.c"
- LibraryFlaggedSidebarEntry* _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_flagged_entry);
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_flagged_entry = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY]);
-#line 1528 "LibraryBranch.c"
- }
-}
-
-
-LibraryLastImportSidebarEntry*
-library_branch_get_last_imported_entry (LibraryBranch* self)
-{
- LibraryLastImportSidebarEntry* result;
- LibraryLastImportSidebarEntry* _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL);
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_last_imported_entry;
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1546 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_set_last_imported_entry (LibraryBranch* self,
- LibraryLastImportSidebarEntry* value)
-{
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (library_branch_get_last_imported_entry (self) != value) {
-#line 1558 "LibraryBranch.c"
- LibraryLastImportSidebarEntry* _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_last_imported_entry);
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_last_imported_entry = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY]);
-#line 1568 "LibraryBranch.c"
- }
-}
-
-
-LibraryImportQueueSidebarEntry*
-library_branch_get_import_queue_entry (LibraryBranch* self)
-{
- LibraryImportQueueSidebarEntry* result;
- LibraryImportQueueSidebarEntry* _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL);
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_import_queue_entry;
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1586 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_set_import_queue_entry (LibraryBranch* self,
- LibraryImportQueueSidebarEntry* value)
-{
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (library_branch_get_import_queue_entry (self) != value) {
-#line 1598 "LibraryBranch.c"
- LibraryImportQueueSidebarEntry* _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_import_queue_entry);
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_import_queue_entry = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY]);
-#line 1608 "LibraryBranch.c"
- }
-}
-
-
-LibraryOfflineSidebarEntry*
-library_branch_get_offline_entry (LibraryBranch* self)
-{
- LibraryOfflineSidebarEntry* result;
- LibraryOfflineSidebarEntry* _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL);
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_offline_entry;
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1626 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_set_offline_entry (LibraryBranch* self,
- LibraryOfflineSidebarEntry* value)
-{
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (library_branch_get_offline_entry (self) != value) {
-#line 1638 "LibraryBranch.c"
- LibraryOfflineSidebarEntry* _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_offline_entry);
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_offline_entry = _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY]);
-#line 1648 "LibraryBranch.c"
- }
-}
-
-
-LibraryTrashSidebarEntry*
-library_branch_get_trash_entry (LibraryBranch* self)
-{
- LibraryTrashSidebarEntry* result;
- LibraryTrashSidebarEntry* _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL);
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->_trash_entry;
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1666 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_set_trash_entry (LibraryBranch* self,
- LibraryTrashSidebarEntry* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_BRANCH (self));
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (library_branch_get_trash_entry (self) != value) {
-#line 1678 "LibraryBranch.c"
- LibraryTrashSidebarEntry* _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_trash_entry);
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_trash_entry = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY]);
-#line 1688 "LibraryBranch.c"
- }
-}
-
-
-static void
-library_branch_class_init (LibraryBranchClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_type_class_add_private (klass, sizeof (LibraryBranchPrivate));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_library_branch_get_property;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_library_branch_set_property;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = library_branch_finalize;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY] = g_param_spec_object ("photos-entry", "photos-entry", "photos-entry", LIBRARY_TYPE_PHOTOS_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY] = g_param_spec_object ("flagged-entry", "flagged-entry", "flagged-entry", LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY] = g_param_spec_object ("last-imported-entry", "last-imported-entry", "last-imported-entry", LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY] = g_param_spec_object ("import-queue-entry", "import-queue-entry", "import-queue-entry", LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY] = g_param_spec_object ("offline-entry", "offline-entry", "offline-entry", LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY] = g_param_spec_object ("trash-entry", "trash-entry", "trash-entry", LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1718 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_instance_init (LibraryBranch * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv = LIBRARY_BRANCH_GET_PRIVATE (self);
-#line 1727 "LibraryBranch.c"
-}
-
-
-static void
-library_branch_finalize (GObject * obj)
-{
- LibraryBranch * self;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_BRANCH, LibraryBranch);
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_photos_entry);
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_flagged_entry);
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_last_imported_entry);
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_import_queue_entry);
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_offline_entry);
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (self->priv->_trash_entry);
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_CLASS (library_branch_parent_class)->finalize (obj);
-#line 1751 "LibraryBranch.c"
-}
-
-
-GType
-library_branch_get_type (void)
-{
- static volatile gsize library_branch_type_id__volatile = 0;
- if (g_once_init_enter (&library_branch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryBranch), 0, (GInstanceInitFunc) library_branch_instance_init, NULL };
- GType library_branch_type_id;
- library_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "LibraryBranch", &g_define_type_info, 0);
- g_once_init_leave (&library_branch_type_id__volatile, library_branch_type_id);
- }
- return library_branch_type_id__volatile;
-}
-
-
-static void
-_vala_library_branch_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- LibraryBranch * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_BRANCH, LibraryBranch);
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- switch (property_id) {
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_value_set_object (value, library_branch_get_photos_entry (self));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_value_set_object (value, library_branch_get_flagged_entry (self));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_value_set_object (value, library_branch_get_last_imported_entry (self));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_value_set_object (value, library_branch_get_import_queue_entry (self));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_value_set_object (value, library_branch_get_offline_entry (self));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_value_set_object (value, library_branch_get_trash_entry (self));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 1815 "LibraryBranch.c"
- default:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 1821 "LibraryBranch.c"
- }
-}
-
-
-static void
-_vala_library_branch_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- LibraryBranch * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_BRANCH, LibraryBranch);
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- switch (property_id) {
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_photos_entry (self, g_value_get_object (value));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_flagged_entry (self, g_value_get_object (value));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_last_imported_entry (self, g_value_get_object (value));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_import_queue_entry (self, g_value_get_object (value));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_offline_entry (self, g_value_get_object (value));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_set_trash_entry (self, g_value_get_object (value));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 1872 "LibraryBranch.c"
- default:
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 1878 "LibraryBranch.c"
- }
-}
-
-
-LibraryPhotosEntry*
-library_photos_entry_construct (GType object_type)
-{
- LibraryPhotosEntry * self = NULL;
-#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = (LibraryPhotosEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return self;
-#line 1891 "LibraryBranch.c"
-}
-
-
-LibraryPhotosEntry*
-library_photos_entry_new (void)
-{
-#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return library_photos_entry_construct (LIBRARY_TYPE_PHOTOS_ENTRY);
-#line 1900 "LibraryBranch.c"
-}
-
-
-static gchar*
-library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- LibraryPhotosEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry);
-#line 97 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = g_strdup (_ ("Photos"));
-#line 97 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1918 "LibraryBranch.c"
-}
-
-
-static gchar*
-library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- LibraryPhotosEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 100 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry);
-#line 101 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_PHOTOS);
-#line 101 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1936 "LibraryBranch.c"
-}
-
-
-static Page*
-library_photos_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- LibraryPhotosEntry * self;
- Page* result = NULL;
- LibraryMainPage* _tmp0_;
-#line 104 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry);
-#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = library_main_page_new (NULL, NULL);
-#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_ref_sink (_tmp0_);
-#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
-#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 1956 "LibraryBranch.c"
-}
-
-
-static void
-library_photos_entry_class_init (LibraryPhotosEntryClass * klass)
-{
-#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_photos_entry_parent_class = g_type_class_peek_parent (klass);
-#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_photos_entry_real_get_sidebar_name;
-#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_photos_entry_real_get_sidebar_icon;
-#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_photos_entry_real_create_page;
-#line 1971 "LibraryBranch.c"
-}
-
-
-static void
-library_photos_entry_instance_init (LibraryPhotosEntry * self)
-{
-}
-
-
-GType
-library_photos_entry_get_type (void)
-{
- static volatile gsize library_photos_entry_type_id__volatile = 0;
- if (g_once_init_enter (&library_photos_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotosEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photos_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotosEntry), 0, (GInstanceInitFunc) library_photos_entry_instance_init, NULL };
- GType library_photos_entry_type_id;
- library_photos_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "LibraryPhotosEntry", &g_define_type_info, 0);
- g_once_init_leave (&library_photos_entry_type_id__volatile, library_photos_entry_type_id);
- }
- return library_photos_entry_type_id__volatile;
-}
-
-
-LibraryHideablePageEntry*
-library_hideable_page_entry_construct (GType object_type)
-{
- LibraryHideablePageEntry * self = NULL;
-#line 125 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = (LibraryHideablePageEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 125 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return self;
-#line 2003 "LibraryBranch.c"
-}
-
-
-gboolean
-library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_val_if_fail (LIBRARY_IS_HIDEABLE_PAGE_ENTRY (self), FALSE);
-#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->show_entry;
-#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = _tmp0_;
-#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return result;
-#line 2020 "LibraryBranch.c"
-}
-
-
-void
-library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self,
- gboolean value)
-{
- gboolean _tmp0_;
-#line 116 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_return_if_fail (LIBRARY_IS_HIDEABLE_PAGE_ENTRY (self));
-#line 117 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = self->priv->show_entry;
-#line 117 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (value == _tmp0_) {
-#line 118 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return;
-#line 2037 "LibraryBranch.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->show_entry = value;
-#line 121 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_signal_emit (self, library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL], 0, value);
-#line 116 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify_by_pspec ((GObject *) self, library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY]);
-#line 2045 "LibraryBranch.c"
-}
-
-
-static void
-library_hideable_page_entry_class_init (LibraryHideablePageEntryClass * klass)
-{
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_hideable_page_entry_parent_class = g_type_class_peek_parent (klass);
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_type_class_add_private (klass, sizeof (LibraryHideablePageEntryPrivate));
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_library_hideable_page_entry_get_property;
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_library_hideable_page_entry_set_property;
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = library_hideable_page_entry_finalize;
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY, library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY] = g_param_spec_boolean ("visible", "visible", "visible", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("visibility-changed", LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 2066 "LibraryBranch.c"
-}
-
-
-static void
-library_hideable_page_entry_instance_init (LibraryHideablePageEntry * self)
-{
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv = LIBRARY_HIDEABLE_PAGE_ENTRY_GET_PRIVATE (self);
-#line 113 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->show_entry = FALSE;
-#line 2077 "LibraryBranch.c"
-}
-
-
-static void
-library_hideable_page_entry_finalize (GObject * obj)
-{
- LibraryHideablePageEntry * self;
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry);
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_CLASS (library_hideable_page_entry_parent_class)->finalize (obj);
-#line 2089 "LibraryBranch.c"
-}
-
-
-GType
-library_hideable_page_entry_get_type (void)
-{
- static volatile gsize library_hideable_page_entry_type_id__volatile = 0;
- if (g_once_init_enter (&library_hideable_page_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryHideablePageEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_hideable_page_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryHideablePageEntry), 0, (GInstanceInitFunc) library_hideable_page_entry_instance_init, NULL };
- GType library_hideable_page_entry_type_id;
- library_hideable_page_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "LibraryHideablePageEntry", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&library_hideable_page_entry_type_id__volatile, library_hideable_page_entry_type_id);
- }
- return library_hideable_page_entry_type_id__volatile;
-}
-
-
-static void
-_vala_library_hideable_page_entry_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- LibraryHideablePageEntry * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry);
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- switch (property_id) {
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY:
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_value_set_boolean (value, library_hideable_page_entry_get_visible (self));
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 2123 "LibraryBranch.c"
- default:
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 2129 "LibraryBranch.c"
- }
-}
-
-
-static void
-_vala_library_hideable_page_entry_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- LibraryHideablePageEntry * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry);
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- switch (property_id) {
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- case LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY:
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_hideable_page_entry_set_visible (self, g_value_get_boolean (value));
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 2150 "LibraryBranch.c"
- default:
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 2156 "LibraryBranch.c"
- }
-}
-
-
-LibraryMainPage*
-library_main_page_construct (GType object_type,
- ProgressMonitor monitor,
- void* monitor_target)
-{
- LibraryMainPage * self = NULL;
-#line 133 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = (LibraryMainPage*) collection_page_construct (object_type, LIBRARY_MAIN_PAGE_NAME);
-#line 2169 "LibraryBranch.c"
- {
- GeeIterator* _sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _tmp0_;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp3_ = _tmp2_;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp5_ = _tmp4_;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _sources_it = _tmp5_;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- while (TRUE) {
-#line 2198 "LibraryBranch.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- MediaSourceCollection* _tmp11_;
- CollectionViewManager* _tmp12_;
- CollectionViewManager* _tmp13_;
- ViewCollectionMonitor* _tmp14_;
- ViewCollectionMonitor* _tmp15_;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp6_ = _sources_it;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- break;
-#line 2216 "LibraryBranch.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp7_ = _sources_it;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- sources = (MediaSourceCollection*) _tmp8_;
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp10_ = _tmp9_;
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp11_ = sources;
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp12_ = collection_view_manager_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage));
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp13_ = _tmp12_;
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp14_ = view_collection_monitor_source_collection (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, monitor, monitor_target);
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp15_ = _tmp14_;
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _view_collection_monitor_unref0 (_tmp15_);
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _view_manager_unref0 (_tmp13_);
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _data_collection_unref0 (_tmp10_);
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _data_collection_unref0 (sources);
-#line 2246 "LibraryBranch.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_sources_it);
-#line 2250 "LibraryBranch.c"
- }
-#line 132 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return self;
-#line 2254 "LibraryBranch.c"
-}
-
-
-LibraryMainPage*
-library_main_page_new (ProgressMonitor monitor,
- void* monitor_target)
-{
-#line 132 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- return library_main_page_construct (LIBRARY_TYPE_MAIN_PAGE, monitor, monitor_target);
-#line 2264 "LibraryBranch.c"
-}
-
-
-static void
-library_main_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by)
-{
- LibraryMainPage * self;
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_ = 0;
-#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_MAIN_PAGE, LibraryMainPage);
-#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _tmp0_;
-#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_);
-#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _vala_sort_order = _tmp2_;
-#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _vala_sort_by = _tmp3_;
-#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (sort_order) {
-#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- *sort_order = _vala_sort_order;
-#line 2298 "LibraryBranch.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (sort_by) {
-#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- *sort_by = _vala_sort_by;
-#line 2304 "LibraryBranch.c"
- }
-}
-
-
-static void
-library_main_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by)
-{
- LibraryMainPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 143 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_MAIN_PAGE, LibraryMainPage);
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _tmp0_;
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by);
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 2327 "LibraryBranch.c"
-}
-
-
-static void
-library_main_page_class_init (LibraryMainPageClass * klass)
-{
-#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_main_page_parent_class = g_type_class_peek_parent (klass);
-#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) library_main_page_real_get_config_photos_sort;
-#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) library_main_page_real_set_config_photos_sort;
-#line 2340 "LibraryBranch.c"
-}
-
-
-static void
-library_main_page_instance_init (LibraryMainPage * self)
-{
-}
-
-
-GType
-library_main_page_get_type (void)
-{
- static volatile gsize library_main_page_type_id__volatile = 0;
- if (g_once_init_enter (&library_main_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryMainPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_main_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMainPage), 0, (GInstanceInitFunc) library_main_page_instance_init, NULL };
- GType library_main_page_type_id;
- library_main_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "LibraryMainPage", &g_define_type_info, 0);
- g_once_init_leave (&library_main_page_type_id__volatile, library_main_page_type_id);
- }
- return library_main_page_type_id__volatile;
-}
-
-
-
diff --git a/src/library/LibraryWindow.c b/src/library/LibraryWindow.c
deleted file mode 100644
index 929209d..0000000
--- a/src/library/LibraryWindow.c
+++ /dev/null
@@ -1,10044 +0,0 @@
-/* LibraryWindow.c generated by valac 0.40.4, the Vala compiler
- * generated from LibraryWindow.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gdk/gdk.h>
-#include <gio/gio.h>
-#include <glib/gi18n-lib.h>
-#include <gphoto2/gphoto2-camera.h>
-#include <gphoto.h>
-#include <float.h>
-#include <math.h>
-#include <cairo.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-typedef struct _PageWindowPrivate PageWindowPrivate;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#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;
-typedef struct _AppWindowPrivate AppWindowPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-typedef struct _LibraryWindowPrivate LibraryWindowPrivate;
-
-#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
-#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
-#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
-#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
-#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-
-typedef struct _OneShotScheduler OneShotScheduler;
-typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-
-#define LIBRARY_TYPE_BRANCH (library_branch_get_type ())
-#define LIBRARY_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_BRANCH, LibraryBranch))
-#define LIBRARY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_BRANCH, LibraryBranchClass))
-#define LIBRARY_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_BRANCH))
-#define LIBRARY_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_BRANCH))
-#define LIBRARY_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_BRANCH, LibraryBranchClass))
-
-typedef struct _LibraryBranch LibraryBranch;
-typedef struct _LibraryBranchClass LibraryBranchClass;
-
-#define TAGS_TYPE_BRANCH (tags_branch_get_type ())
-#define TAGS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_BRANCH, TagsBranch))
-#define TAGS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_BRANCH, TagsBranchClass))
-#define TAGS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_BRANCH))
-#define TAGS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_BRANCH))
-#define TAGS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_BRANCH, TagsBranchClass))
-
-typedef struct _TagsBranch TagsBranch;
-typedef struct _TagsBranchClass TagsBranchClass;
-
-#define FOLDERS_TYPE_BRANCH (folders_branch_get_type ())
-#define FOLDERS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_BRANCH, FoldersBranch))
-#define FOLDERS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_BRANCH, FoldersBranchClass))
-#define FOLDERS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_BRANCH))
-#define FOLDERS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_BRANCH))
-#define FOLDERS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_BRANCH, FoldersBranchClass))
-
-typedef struct _FoldersBranch FoldersBranch;
-typedef struct _FoldersBranchClass FoldersBranchClass;
-
-#define EVENTS_TYPE_BRANCH (events_branch_get_type ())
-#define EVENTS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_BRANCH, EventsBranch))
-#define EVENTS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_BRANCH, EventsBranchClass))
-#define EVENTS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_BRANCH))
-#define EVENTS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_BRANCH))
-#define EVENTS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_BRANCH, EventsBranchClass))
-
-typedef struct _EventsBranch EventsBranch;
-typedef struct _EventsBranchClass EventsBranchClass;
-
-#define CAMERA_TYPE_BRANCH (camera_branch_get_type ())
-#define CAMERA_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_BRANCH, CameraBranch))
-#define CAMERA_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_BRANCH, CameraBranchClass))
-#define CAMERA_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_BRANCH))
-#define CAMERA_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_BRANCH))
-#define CAMERA_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_BRANCH, CameraBranchClass))
-
-typedef struct _CameraBranch CameraBranch;
-typedef struct _CameraBranchClass CameraBranchClass;
-
-#define SEARCHES_TYPE_BRANCH (searches_branch_get_type ())
-#define SEARCHES_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_BRANCH, SearchesBranch))
-#define SEARCHES_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_BRANCH, SearchesBranchClass))
-#define SEARCHES_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_BRANCH))
-#define SEARCHES_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_BRANCH))
-#define SEARCHES_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_BRANCH, SearchesBranchClass))
-
-typedef struct _SearchesBranch SearchesBranch;
-typedef struct _SearchesBranchClass SearchesBranchClass;
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
-#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
-#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
-#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
-#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
-
-typedef struct _SinglePhotoPage SinglePhotoPage;
-typedef struct _SinglePhotoPageClass SinglePhotoPageClass;
-
-#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ())
-#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage))
-#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE))
-#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE))
-#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass))
-
-typedef struct _EditingHostPage EditingHostPage;
-typedef struct _EditingHostPageClass EditingHostPageClass;
-
-#define TYPE_LIBRARY_PHOTO_PAGE (library_photo_page_get_type ())
-#define LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage))
-#define LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass))
-#define IS_LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_PAGE))
-#define IS_LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_PAGE))
-#define LIBRARY_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass))
-
-typedef struct _LibraryPhotoPage LibraryPhotoPage;
-typedef struct _LibraryPhotoPageClass LibraryPhotoPageClass;
-
-#define TYPE_SEARCH_FILTER_ACTIONS (search_filter_actions_get_type ())
-#define SEARCH_FILTER_ACTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActions))
-#define SEARCH_FILTER_ACTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsClass))
-#define IS_SEARCH_FILTER_ACTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_FILTER_ACTIONS))
-#define IS_SEARCH_FILTER_ACTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_FILTER_ACTIONS))
-#define SEARCH_FILTER_ACTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsClass))
-
-typedef struct _SearchFilterActions SearchFilterActions;
-typedef struct _SearchFilterActionsClass SearchFilterActionsClass;
-
-#define TYPE_SEARCH_FILTER_TOOLBAR (search_filter_toolbar_get_type ())
-#define SEARCH_FILTER_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbar))
-#define SEARCH_FILTER_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarClass))
-#define IS_SEARCH_FILTER_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_FILTER_TOOLBAR))
-#define IS_SEARCH_FILTER_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_FILTER_TOOLBAR))
-#define SEARCH_FILTER_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarClass))
-
-typedef struct _SearchFilterToolbar SearchFilterToolbar;
-typedef struct _SearchFilterToolbarClass SearchFilterToolbarClass;
-
-#define TYPE_PROPERTIES (properties_get_type ())
-#define PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROPERTIES, Properties))
-#define PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROPERTIES, PropertiesClass))
-#define IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROPERTIES))
-#define IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROPERTIES))
-#define PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROPERTIES, PropertiesClass))
-
-typedef struct _Properties Properties;
-typedef struct _PropertiesClass PropertiesClass;
-
-#define TYPE_BASIC_PROPERTIES (basic_properties_get_type ())
-#define BASIC_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BASIC_PROPERTIES, BasicProperties))
-#define BASIC_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BASIC_PROPERTIES, BasicPropertiesClass))
-#define IS_BASIC_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BASIC_PROPERTIES))
-#define IS_BASIC_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BASIC_PROPERTIES))
-#define BASIC_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BASIC_PROPERTIES, BasicPropertiesClass))
-
-typedef struct _BasicProperties BasicProperties;
-typedef struct _BasicPropertiesClass BasicPropertiesClass;
-
-#define TYPE_EXTENDED_PROPERTIES_WINDOW (extended_properties_window_get_type ())
-#define EXTENDED_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow))
-#define EXTENDED_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowClass))
-#define IS_EXTENDED_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW))
-#define IS_EXTENDED_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXTENDED_PROPERTIES_WINDOW))
-#define EXTENDED_PROPERTIES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowClass))
-
-typedef struct _ExtendedPropertiesWindow ExtendedPropertiesWindow;
-typedef struct _ExtendedPropertiesWindowClass ExtendedPropertiesWindowClass;
-enum {
- LIBRARY_WINDOW_0_PROPERTY,
- LIBRARY_WINDOW_NUM_PROPERTIES
-};
-static GParamSpec* library_window_properties[LIBRARY_WINDOW_NUM_PROPERTIES];
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_METADATA_WRITER (metadata_writer_get_type ())
-#define METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_WRITER, MetadataWriter))
-#define METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_WRITER, MetadataWriterClass))
-#define IS_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_WRITER))
-#define IS_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_WRITER))
-#define METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_WRITER, MetadataWriterClass))
-
-typedef struct _MetadataWriter MetadataWriter;
-typedef struct _MetadataWriterClass MetadataWriterClass;
-
-#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ())
-#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor))
-#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR))
-#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR))
-#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass))
-
-typedef struct _DirectoryMonitor DirectoryMonitor;
-typedef struct _DirectoryMonitorClass DirectoryMonitorClass;
-
-#define TYPE_LIBRARY_MONITOR (library_monitor_get_type ())
-#define LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitor))
-#define LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR, LibraryMonitorClass))
-#define IS_LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR))
-#define IS_LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR))
-#define LIBRARY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitorClass))
-
-typedef struct _LibraryMonitor LibraryMonitor;
-typedef struct _LibraryMonitorClass LibraryMonitorClass;
-
-#define TYPE_LIBRARY_MONITOR_POOL (library_monitor_pool_get_type ())
-#define LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool))
-#define LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass))
-#define IS_LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR_POOL))
-#define IS_LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR_POOL))
-#define LIBRARY_MONITOR_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass))
-
-typedef struct _LibraryMonitorPool LibraryMonitorPool;
-typedef struct _LibraryMonitorPoolClass LibraryMonitorPoolClass;
-#define _library_monitor_pool_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_pool_unref (var), NULL)))
-
-#define TYPE_CAMERA_TABLE (camera_table_get_type ())
-#define CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_TABLE, CameraTable))
-#define CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_TABLE, CameraTableClass))
-#define IS_CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_TABLE))
-#define IS_CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_TABLE))
-#define CAMERA_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_TABLE, CameraTableClass))
-
-typedef struct _CameraTable CameraTable;
-typedef struct _CameraTableClass CameraTableClass;
-
-#define TYPE_DISCOVERED_CAMERA (discovered_camera_get_type ())
-#define DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCamera))
-#define DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass))
-#define IS_DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISCOVERED_CAMERA))
-#define IS_DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISCOVERED_CAMERA))
-#define DISCOVERED_CAMERA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass))
-
-typedef struct _DiscoveredCamera DiscoveredCamera;
-typedef struct _DiscoveredCameraClass DiscoveredCameraClass;
-#define _camera_table_unref0(var) ((var == NULL) ? NULL : (var = (camera_table_unref (var), NULL)))
-
-#define LIBRARY_WINDOW_TYPE_SIDEBAR_ROOT_POSITION (library_window_sidebar_root_position_get_type ())
-
-#define LIBRARY_WINDOW_TYPE_TARGET_TYPE (library_window_target_type_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL)))
-#define _search_filter_actions_unref0(var) ((var == NULL) ? NULL : (var = (search_filter_actions_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-
-#define LIBRARY_TYPE_PHOTOS_ENTRY (library_photos_entry_get_type ())
-#define LIBRARY_PHOTOS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry))
-#define LIBRARY_PHOTOS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntryClass))
-#define LIBRARY_IS_PHOTOS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_PHOTOS_ENTRY))
-#define LIBRARY_IS_PHOTOS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_PHOTOS_ENTRY))
-#define LIBRARY_PHOTOS_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntryClass))
-
-typedef struct _LibraryPhotosEntry LibraryPhotosEntry;
-typedef struct _LibraryPhotosEntryClass LibraryPhotosEntryClass;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TAGS_TYPE_SIDEBAR_ENTRY (tags_sidebar_entry_get_type ())
-#define TAGS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry))
-#define TAGS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass))
-#define TAGS_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_SIDEBAR_ENTRY))
-#define TAGS_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_SIDEBAR_ENTRY))
-#define TAGS_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass))
-
-typedef struct _TagsSidebarEntry TagsSidebarEntry;
-typedef struct _TagsSidebarEntryClass TagsSidebarEntryClass;
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define EVENTS_TYPE_EVENT_ENTRY (events_event_entry_get_type ())
-#define EVENTS_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry))
-#define EVENTS_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryClass))
-#define EVENTS_IS_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_EVENT_ENTRY))
-#define EVENTS_IS_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_EVENT_ENTRY))
-#define EVENTS_EVENT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryClass))
-
-typedef struct _EventsEventEntry EventsEventEntry;
-typedef struct _EventsEventEntryClass EventsEventEntryClass;
-
-#define TYPE_SAVED_SEARCH (saved_search_get_type ())
-#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch))
-#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass))
-#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH))
-#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH))
-#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass))
-
-typedef struct _SavedSearch SavedSearch;
-typedef struct _SavedSearchClass SavedSearchClass;
-
-#define SEARCHES_TYPE_SIDEBAR_ENTRY (searches_sidebar_entry_get_type ())
-#define SEARCHES_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry))
-#define SEARCHES_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryClass))
-#define SEARCHES_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY))
-#define SEARCHES_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_SIDEBAR_ENTRY))
-#define SEARCHES_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryClass))
-
-typedef struct _SearchesSidebarEntry SearchesSidebarEntry;
-typedef struct _SearchesSidebarEntryClass SearchesSidebarEntryClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#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_EVENTS_DIRECTORY_PAGE (events_directory_page_get_type ())
-#define EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage))
-#define EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass))
-#define IS_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENTS_DIRECTORY_PAGE))
-#define IS_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENTS_DIRECTORY_PAGE))
-#define EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass))
-
-typedef struct _EventsDirectoryPage EventsDirectoryPage;
-typedef struct _EventsDirectoryPageClass EventsDirectoryPageClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_EVENT_PAGE (event_page_get_type ())
-#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage))
-#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass))
-#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE))
-#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE))
-#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass))
-
-typedef struct _EventPage EventPage;
-typedef struct _EventPageClass EventPageClass;
-
-#define LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE (library_window_fullscreen_photo_page_get_type ())
-#define LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage))
-#define LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPageClass))
-#define LIBRARY_WINDOW_IS_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE))
-#define LIBRARY_WINDOW_IS_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE))
-#define LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPageClass))
-
-typedef struct _LibraryWindowFullscreenPhotoPage LibraryWindowFullscreenPhotoPage;
-typedef struct _LibraryWindowFullscreenPhotoPageClass LibraryWindowFullscreenPhotoPageClass;
-#define __g_slist_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free__g_free0_ (var), NULL)))
-
-#define DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG (data_imports_ui_data_imports_dialog_get_type ())
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog))
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
-#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
-#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
-#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
-
-typedef struct _DataImportsUIDataImportsDialog DataImportsUIDataImportsDialog;
-typedef struct _DataImportsUIDataImportsDialogClass DataImportsUIDataImportsDialogClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ())
-#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog))
-#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG))
-#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG))
-#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-
-typedef struct _SavedSearchDialog SavedSearchDialog;
-typedef struct _SavedSearchDialogClass SavedSearchDialogClass;
-
-#define TYPE_BATCH_IMPORT (batch_import_get_type ())
-#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
-#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
-#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
-#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
-#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
-
-typedef struct _BatchImport BatchImport;
-typedef struct _BatchImportClass BatchImportClass;
-
-#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ())
-#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-
-typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry;
-typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass;
-
-#define LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY (library_import_queue_sidebar_entry_get_type ())
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry))
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass))
-#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY))
-#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY))
-#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass))
-
-typedef struct _LibraryImportQueueSidebarEntry LibraryImportQueueSidebarEntry;
-typedef struct _LibraryImportQueueSidebarEntryClass LibraryImportQueueSidebarEntryClass;
-
-#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ())
-#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
-#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
-#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
-#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-
-typedef struct _ImportManifest ImportManifest;
-typedef struct _ImportManifestClass ImportManifestClass;
-
-#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ())
-#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams))
-#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-
-typedef struct _ImportUIQuestionParams ImportUIQuestionParams;
-typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass;
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-
-#define TYPE_FILE_IMPORT_JOB (file_import_job_get_type ())
-#define FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_IMPORT_JOB, FileImportJob))
-#define FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_IMPORT_JOB, FileImportJobClass))
-#define IS_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_IMPORT_JOB))
-#define IS_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_IMPORT_JOB))
-#define FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_IMPORT_JOB, FileImportJobClass))
-
-typedef struct _FileImportJob FileImportJob;
-typedef struct _FileImportJobClass FileImportJobClass;
-#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
-
-#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-typedef struct _BatchImportRollClass BatchImportRollClass;
-
-#define CAMERA_TYPE_SIDEBAR_ENTRY (camera_sidebar_entry_get_type ())
-#define CAMERA_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry))
-#define CAMERA_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryClass))
-#define CAMERA_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_SIDEBAR_ENTRY))
-#define CAMERA_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_SIDEBAR_ENTRY))
-#define CAMERA_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryClass))
-
-typedef struct _CameraSidebarEntry CameraSidebarEntry;
-typedef struct _CameraSidebarEntryClass CameraSidebarEntryClass;
-
-#define TYPE_IMPORT_PAGE (import_page_get_type ())
-#define IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_PAGE, ImportPage))
-#define IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_PAGE, ImportPageClass))
-#define IS_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_PAGE))
-#define IS_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_PAGE))
-#define IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_PAGE, ImportPageClass))
-
-typedef struct _ImportPage ImportPage;
-typedef struct _ImportPageClass ImportPageClass;
-typedef struct _DiscoveredCameraPrivate DiscoveredCameraPrivate;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-
-#define TYPE_DISABLED_VIEW_FILTER (disabled_view_filter_get_type ())
-#define DISABLED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilter))
-#define DISABLED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilterClass))
-#define IS_DISABLED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISABLED_VIEW_FILTER))
-#define IS_DISABLED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISABLED_VIEW_FILTER))
-#define DISABLED_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilterClass))
-
-typedef struct _DisabledViewFilter DisabledViewFilter;
-typedef struct _DisabledViewFilterClass DisabledViewFilterClass;
-
-#define LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY (library_last_import_sidebar_entry_get_type ())
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry))
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass))
-#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY))
-#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY))
-#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass))
-
-typedef struct _LibraryLastImportSidebarEntry LibraryLastImportSidebarEntry;
-typedef struct _LibraryLastImportSidebarEntryClass LibraryLastImportSidebarEntryClass;
-
-#define EVENTS_TYPE_DIRECTORY_ENTRY (events_directory_entry_get_type ())
-#define EVENTS_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntry))
-#define EVENTS_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntryClass))
-#define EVENTS_IS_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_DIRECTORY_ENTRY))
-#define EVENTS_IS_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_DIRECTORY_ENTRY))
-#define EVENTS_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntryClass))
-
-typedef struct _EventsDirectoryEntry EventsDirectoryEntry;
-typedef struct _EventsDirectoryEntryClass EventsDirectoryEntryClass;
-
-#define EVENTS_TYPE_MASTER_DIRECTORY_ENTRY (events_master_directory_entry_get_type ())
-#define EVENTS_MASTER_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry))
-#define EVENTS_MASTER_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntryClass))
-#define EVENTS_IS_MASTER_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY))
-#define EVENTS_IS_MASTER_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY))
-#define EVENTS_MASTER_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntryClass))
-
-typedef struct _EventsMasterDirectoryEntry EventsMasterDirectoryEntry;
-typedef struct _EventsMasterDirectoryEntryClass EventsMasterDirectoryEntryClass;
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate;
-
-#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ())
-#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer))
-#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER))
-#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER))
-#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass))
-
-typedef struct _ZoomBuffer ZoomBuffer;
-typedef struct _ZoomBufferClass ZoomBufferClass;
-
-#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ())
-typedef struct _EditingHostPagePrivate EditingHostPagePrivate;
-typedef struct _LibraryPhotoPagePrivate LibraryPhotoPagePrivate;
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-typedef struct _LibraryWindowFullscreenPhotoPagePrivate LibraryWindowFullscreenPhotoPagePrivate;
-enum {
- LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_0_PROPERTY,
- LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* library_window_fullscreen_photo_page_properties[LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_NUM_PROPERTIES];
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _PageWindow {
- GtkApplicationWindow parent_instance;
- PageWindowPrivate * priv;
-};
-
-struct _PageWindowClass {
- GtkApplicationWindowClass parent_class;
- void (*switched_pages) (PageWindow* self, Page* old_page, Page* new_page);
- void (*set_current_page) (PageWindow* self, Page* page);
- void (*clear_current_page) (PageWindow* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _AppWindow {
- PageWindow parent_instance;
- AppWindowPrivate * priv;
- gboolean maximized;
- Dimensions dimensions;
- gint pos_x;
- gint pos_y;
-};
-
-struct _AppWindowClass {
- PageWindowClass parent_class;
- void (*on_fullscreen) (AppWindow* self);
- gchar* (*get_app_role) (AppWindow* self);
- void (*on_quit) (AppWindow* self);
- void (*add_actions) (AppWindow* self);
- void (*update_common_action_availability) (AppWindow* self, Page* old_page, Page* new_page);
- void (*update_common_actions) (AppWindow* self, Page* page, gint selected_count, gint count);
-};
-
-struct _LibraryWindow {
- AppWindow parent_instance;
- LibraryWindowPrivate * priv;
-};
-
-struct _LibraryWindowClass {
- AppWindowClass parent_class;
-};
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _LibraryWindowPrivate {
- gchar* import_dir;
- gboolean import_recursive;
- GtkPaned* sidebar_paned;
- GtkPaned* client_paned;
- GtkFrame* bottom_frame;
- OneShotScheduler* properties_scheduler;
- gboolean notify_library_is_home_dir;
- SidebarTree* sidebar_tree;
- LibraryBranch* library_branch;
- TagsBranch* tags_branch;
- FoldersBranch* folders_branch;
- EventsBranch* events_branch;
- CameraBranch* camera_branch;
- SearchesBranch* saved_search_branch;
- gboolean page_switching_enabled;
- GeeHashMap* page_map;
- LibraryPhotoPage* photo_page;
- gboolean is_search_toolbar_visible;
- SearchFilterActions* search_actions;
- SearchFilterToolbar* search_toolbar;
- GtkBox* top_section;
- GtkFrame* background_progress_frame;
- GtkProgressBar* background_progress_bar;
- gboolean background_progress_displayed;
- BasicProperties* basic_properties;
- ExtendedPropertiesWindow* extended_properties;
- GtkStack* stack;
- GtkBox* layout;
- GtkBox* right_vbox;
- GtkRevealer* toolbar_revealer;
- gint current_progress_priority;
- guint background_progress_pulse_id;
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-typedef enum {
- LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_LIBRARY,
- LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_CAMERAS,
- LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_SAVED_SEARCH,
- LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_EVENTS,
- LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_FOLDERS,
- LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_TAGS
-} LibraryWindowSidebarRootPosition;
-
-typedef enum {
- LIBRARY_WINDOW_TARGET_TYPE_URI_LIST,
- LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST,
- LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH
-} LibraryWindowTargetType;
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-typedef void (*SidebarTreeExternalDropHandler) (GdkDragContext* context, SidebarEntry* entry, GtkSelectionData* data, guint info, guint time, void* user_data);
-typedef void (*OneShotCallback) (void* user_data);
-typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data);
-struct _DiscoveredCamera {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DiscoveredCameraPrivate * priv;
- Camera* gcamera;
- gchar* uri;
- gchar* display_name;
- gchar* icon;
-};
-
-struct _DiscoveredCameraClass {
- GTypeClass parent_class;
- void (*finalize) (DiscoveredCamera *self);
-};
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT,
- SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS
-} SinglePhotoPageUpdateReason;
-
-struct _SinglePhotoPage {
- Page parent_instance;
- SinglePhotoPagePrivate * priv;
- GtkDrawingArea* canvas;
- GtkViewport* viewport;
-};
-
-struct _SinglePhotoPageClass {
- PageClass parent_class;
- gboolean (*is_zoom_supported) (SinglePhotoPage* self);
- void (*cancel_zoom) (SinglePhotoPage* self);
- void (*save_zoom_state) (SinglePhotoPage* self);
- void (*restore_zoom_state) (SinglePhotoPage* self);
- ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self);
- void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim);
- void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
- void (*on_previous_photo) (SinglePhotoPage* self);
- void (*on_next_photo) (SinglePhotoPage* self);
-};
-
-struct _EditingHostPage {
- SinglePhotoPage parent_instance;
- EditingHostPagePrivate * priv;
-};
-
-struct _EditingHostPageClass {
- SinglePhotoPageClass parent_class;
- gboolean (*on_zoom_slider_key_press) (EditingHostPage* self, GdkEventKey* event);
- void (*on_increase_size) (EditingHostPage* self);
- void (*on_decrease_size) (EditingHostPage* self);
- void (*photo_changing) (EditingHostPage* self, Photo* new_photo);
- DataView* (*create_photo_view) (EditingHostPage* self, DataSource* source);
- void (*update_ui) (EditingHostPage* self, gboolean missing);
- void (*notify_photo_backing_missing) (EditingHostPage* self, Photo* photo, gboolean missing);
- gboolean (*confirm_replace_photo) (EditingHostPage* self, Photo* old_photo, Photo* new_photo);
- gboolean (*on_double_click) (EditingHostPage* self, GdkEventButton* event);
- GdkPixbuf* (*get_bottom_left_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_top_left_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (EditingHostPage* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (EditingHostPage* self, gint scale);
-};
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _LibraryPhotoPage {
- EditingHostPage parent_instance;
- LibraryPhotoPagePrivate * priv;
-};
-
-struct _LibraryPhotoPageClass {
- EditingHostPageClass parent_class;
- void (*developer_changed) (LibraryPhotoPage* self, RawDeveloper rd);
-};
-
-struct _LibraryWindowFullscreenPhotoPage {
- LibraryPhotoPage parent_instance;
- LibraryWindowFullscreenPhotoPagePrivate * priv;
-};
-
-struct _LibraryWindowFullscreenPhotoPageClass {
- LibraryPhotoPageClass parent_class;
-};
-
-struct _LibraryWindowFullscreenPhotoPagePrivate {
- CollectionPage* collection;
- Photo* start;
- ViewCollection* view;
-};
-
-
-static gpointer library_window_parent_class = NULL;
-static GeeHashSet* library_window_initial_camera_uris;
-static GeeHashSet* library_window_initial_camera_uris = NULL;
-extern AppWindow* app_window_instance;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-static gpointer library_window_fullscreen_photo_page_parent_class = NULL;
-
-GType page_window_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType library_window_get_type (void) G_GNUC_CONST;
-gpointer one_shot_scheduler_ref (gpointer instance);
-void one_shot_scheduler_unref (gpointer instance);
-GParamSpec* param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_one_shot_scheduler (GValue* value,
- gpointer v_object);
-void value_take_one_shot_scheduler (GValue* value,
- gpointer v_object);
-gpointer value_get_one_shot_scheduler (const GValue* value);
-GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-GType library_branch_get_type (void) G_GNUC_CONST;
-GType tags_branch_get_type (void) G_GNUC_CONST;
-GType folders_branch_get_type (void) G_GNUC_CONST;
-GType events_branch_get_type (void) G_GNUC_CONST;
-GType camera_branch_get_type (void) G_GNUC_CONST;
-GType searches_branch_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType single_photo_page_get_type (void) G_GNUC_CONST;
-GType editing_host_page_get_type (void) G_GNUC_CONST;
-GType library_photo_page_get_type (void) G_GNUC_CONST;
-gpointer search_filter_actions_ref (gpointer instance);
-void search_filter_actions_unref (gpointer instance);
-GParamSpec* param_spec_search_filter_actions (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_search_filter_actions (GValue* value,
- gpointer v_object);
-void value_take_search_filter_actions (GValue* value,
- gpointer v_object);
-gpointer value_get_search_filter_actions (const GValue* value);
-GType search_filter_actions_get_type (void) G_GNUC_CONST;
-GType search_filter_toolbar_get_type (void) G_GNUC_CONST;
-GType properties_get_type (void) G_GNUC_CONST;
-GType basic_properties_get_type (void) G_GNUC_CONST;
-GType extended_properties_window_get_type (void) G_GNUC_CONST;
-#define LIBRARY_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_WINDOW, LibraryWindowPrivate))
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-static void library_window_on_page_created (LibraryWindow* self,
- SidebarPageRepresentative* entry,
- Page* page);
-static void _library_window_on_page_created_sidebar_tree_page_created (SidebarTree* _sender,
- SidebarPageRepresentative* entry,
- Page* page,
- gpointer self);
-static void library_window_on_destroying_page (LibraryWindow* self,
- SidebarPageRepresentative* entry,
- Page* page);
-static void _library_window_on_destroying_page_sidebar_tree_destroying_page (SidebarTree* _sender,
- SidebarPageRepresentative* entry,
- Page* page,
- gpointer self);
-static void library_window_on_sidebar_entry_selected (LibraryWindow* self,
- SidebarSelectableEntry* selectable);
-static void _library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected (SidebarTree* _sender,
- SidebarSelectableEntry* selectable,
- gpointer self);
-static void library_window_on_sidebar_selected_entry_removed (LibraryWindow* self,
- SidebarSelectableEntry* selectable);
-static void _library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed (SidebarTree* _sender,
- SidebarSelectableEntry* removed,
- gpointer self);
-static void library_window_unsubscribe_from_basic_information (LibraryWindow* self,
- Page* page);
-Page* page_window_get_current_page (PageWindow* self);
-static void library_window_hide_extended_properties (LibraryWindow* self);
-static void _library_window_hide_extended_properties_gtk_widget_hide (GtkWidget* _sender,
- gpointer self);
-static void library_window_show_extended_properties (LibraryWindow* self);
-static void _library_window_show_extended_properties_gtk_widget_show (GtkWidget* _sender,
- gpointer self);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-static void library_window_on_trashcan_contents_altered (LibraryWindow* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-static void _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-static void library_window_on_media_altered (LibraryWindow* self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void _library_window_on_media_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-GType metadata_writer_get_type (void) G_GNUC_CONST;
-MetadataWriter* metadata_writer_get_instance (void);
-static void library_window_on_metadata_writer_progress (LibraryWindow* self,
- guint completed,
- guint total);
-static void _library_window_on_metadata_writer_progress_metadata_writer_progress (MetadataWriter* _sender,
- guint completed,
- guint total,
- gpointer self);
-GType directory_monitor_get_type (void) G_GNUC_CONST;
-GType library_monitor_get_type (void) G_GNUC_CONST;
-gpointer library_monitor_pool_ref (gpointer instance);
-void library_monitor_pool_unref (gpointer instance);
-GParamSpec* param_spec_library_monitor_pool (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_library_monitor_pool (GValue* value,
- gpointer v_object);
-void value_take_library_monitor_pool (GValue* value,
- gpointer v_object);
-gpointer value_get_library_monitor_pool (const GValue* value);
-GType library_monitor_pool_get_type (void) G_GNUC_CONST;
-LibraryMonitorPool* library_monitor_pool_get_instance (void);
-LibraryMonitor* library_monitor_pool_get_monitor (LibraryMonitorPool* self);
-static void library_window_on_library_monitor_destroyed (LibraryWindow* self,
- LibraryMonitor* monitor);
-static void library_window_on_library_monitor_installed (LibraryWindow* self,
- LibraryMonitor* monitor);
-static void _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender,
- LibraryMonitor* monitor,
- gpointer self);
-static void _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender,
- LibraryMonitor* monitor,
- gpointer self);
-gpointer camera_table_ref (gpointer instance);
-void camera_table_unref (gpointer instance);
-GParamSpec* param_spec_camera_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_camera_table (GValue* value,
- gpointer v_object);
-void value_take_camera_table (GValue* value,
- gpointer v_object);
-gpointer value_get_camera_table (const GValue* value);
-GType camera_table_get_type (void) G_GNUC_CONST;
-CameraTable* camera_table_get_instance (void);
-gpointer discovered_camera_ref (gpointer instance);
-void discovered_camera_unref (gpointer instance);
-GParamSpec* param_spec_discovered_camera (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_discovered_camera (GValue* value,
- gpointer v_object);
-void value_take_discovered_camera (GValue* value,
- gpointer v_object);
-gpointer value_get_discovered_camera (const GValue* value);
-GType discovered_camera_get_type (void) G_GNUC_CONST;
-static void library_window_on_camera_added (LibraryWindow* self,
- DiscoveredCamera* camera);
-static void _library_window_on_camera_added_camera_table_camera_added (CameraTable* _sender,
- DiscoveredCamera* camera,
- gpointer self);
-static GType library_window_sidebar_root_position_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType library_window_target_type_get_type (void) G_GNUC_CONST;
-LibraryBranch* library_branch_new (void);
-LibraryBranch* library_branch_construct (GType object_type);
-TagsBranch* tags_branch_new (void);
-TagsBranch* tags_branch_construct (GType object_type);
-FoldersBranch* folders_branch_new (void);
-FoldersBranch* folders_branch_construct (GType object_type);
-EventsBranch* events_branch_new (void);
-EventsBranch* events_branch_construct (GType object_type);
-CameraBranch* camera_branch_new (void);
-CameraBranch* camera_branch_construct (GType object_type);
-SearchesBranch* searches_branch_new (void);
-SearchesBranch* searches_branch_construct (GType object_type);
-SearchFilterActions* search_filter_actions_new (void);
-SearchFilterActions* search_filter_actions_construct (GType object_type);
-BasicProperties* basic_properties_new (void);
-BasicProperties* basic_properties_construct (GType object_type);
-#define LIBRARY_WINDOW_SIDEBAR_MIN_WIDTH 120
-#define LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING "ascending"
-#define LIBRARY_WINDOW_SORT_EVENTS_ORDER_DESCENDING "descending"
-#define LIBRARY_WINDOW_BACKGROUND_PROGRESS_PULSE_MSEC 250
-#define LIBRARY_WINDOW_MIN_PROGRESS_BAR_FILES 20
-#define LIBRARY_WINDOW_STARTUP_SCAN_PROGRESS_PRIORITY 35
-#define LIBRARY_WINDOW_REALTIME_UPDATE_PROGRESS_PRIORITY 40
-#define LIBRARY_WINDOW_REALTIME_IMPORT_PROGRESS_PRIORITY 50
-#define LIBRARY_WINDOW_METADATA_WRITER_PROGRESS_PRIORITY 30
-#define LIBRARY_WINDOW_TAG_PATH_MIME_TYPE "shotwell/tag-path"
-#define LIBRARY_WINDOW_MEDIA_LIST_MIME_TYPE "shotwell/media-id-atom"
-static void library_window_on_file_import (LibraryWindow* self);
-static void _library_window_on_file_import_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_external_library_import (LibraryWindow* self);
-static void _library_window_on_external_library_import_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_preferences (LibraryWindow* self);
-static void _library_window_on_preferences_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_empty_trash (LibraryWindow* self);
-static void _library_window_on_empty_trash_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_jump_to_event (LibraryWindow* self);
-static void _library_window_on_jump_to_event_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_find (LibraryWindow* self);
-static void _library_window_on_find_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_new_search (LibraryWindow* self);
-static void _library_window_on_new_search_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_action_toggle (LibraryWindow* self,
- GAction* action,
- GVariant* value);
-static void _library_window_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_display_basic_properties (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* value);
-static void _library_window_on_display_basic_properties_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void library_window_on_display_extended_properties (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* value);
-static void _library_window_on_display_extended_properties_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void library_window_on_display_searchbar (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* value);
-static void _library_window_on_display_searchbar_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void library_window_on_display_sidebar (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* variant);
-static void _library_window_on_display_sidebar_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void library_window_on_display_toolbar (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* variant);
-static void _library_window_on_display_toolbar_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-static void library_window_on_action_radio (LibraryWindow* self,
- GAction* action,
- GVariant* value);
-static void _library_window_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void library_window_on_events_sort_changed (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* value);
-static void _library_window_on_events_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self);
-LibraryWindow* library_window_new (ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-LibraryWindow* library_window_construct (GType object_type,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-AppWindow* app_window_construct (GType object_type);
-static void library_window_external_drop_handler (LibraryWindow* self,
- GdkDragContext* context,
- SidebarEntry* entry,
- GtkSelectionData* data,
- guint info,
- guint time);
-static void _library_window_external_drop_handler_sidebar_tree_external_drop_handler (GdkDragContext* context,
- SidebarEntry* entry,
- GtkSelectionData* data,
- guint info,
- guint time,
- gpointer self);
-SidebarTree* sidebar_tree_new (GtkTargetEntry* target_entries,
- int target_entries_length1,
- GdkDragAction actions,
- SidebarTreeExternalDropHandler drop_handler,
- void* drop_handler_target);
-SidebarTree* sidebar_tree_construct (GType object_type,
- GtkTargetEntry* target_entries,
- int target_entries_length1,
- GdkDragAction actions,
- SidebarTreeExternalDropHandler drop_handler,
- void* drop_handler_target);
-void sidebar_tree_graft (SidebarTree* self,
- SidebarBranch* branch,
- gint position);
-ExtendedPropertiesWindow* extended_properties_window_new (GtkWindow* owner);
-ExtendedPropertiesWindow* extended_properties_window_construct (GType object_type,
- GtkWindow* owner);
-static void library_window_on_update_properties_now (LibraryWindow* self);
-static void _library_window_on_update_properties_now_one_shot_callback (gpointer self);
-OneShotScheduler* one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-OneShotScheduler* one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-SearchFilterToolbar* search_filter_toolbar_new (SearchFilterActions* actions);
-SearchFilterToolbar* search_filter_toolbar_construct (GType object_type,
- SearchFilterActions* actions);
-static void library_window_create_layout (LibraryWindow* self,
- Page* start_page);
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-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);
-static void library_window_on_library_monitor_discovery_completed (LibraryWindow* self);
-static void _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender,
- gpointer self);
-static void _library_window_on_library_monitor_discovery_completed_directory_monitor_closed (DirectoryMonitor* _sender,
- gpointer self);
-static void library_window_on_library_monitor_auto_update_progress (LibraryWindow* self,
- gint completed_files,
- gint total_files);
-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);
-static void library_window_on_library_monitor_auto_import_preparing (LibraryWindow* self);
-static void _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing (LibraryMonitor* _sender,
- gpointer self);
-static void library_window_on_library_monitor_auto_import_progress (LibraryWindow* self,
- guint64 completed_bytes,
- guint64 total_bytes);
-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);
-static void library_window_real_add_actions (AppWindow* base);
-void app_window_add_actions (AppWindow* self);
-GActionEntry* search_filter_actions_get_actions (SearchFilterActions* self,
- int* result_length1);
-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_display_search_bar (ConfigurationFacade* self);
-static GVariant* _variant_new1 (gboolean value);
-static gboolean library_window_is_sidebar_visible (LibraryWindow* self);
-static GVariant* _variant_new2 (gboolean value);
-static gboolean library_window_is_toolbar_visible (LibraryWindow* self);
-static GVariant* _variant_new3 (gboolean value);
-static void library_window_real_switched_pages (PageWindow* base,
- Page* old_page,
- Page* new_page);
-void page_window_switched_pages (PageWindow* self,
- Page* old_page,
- Page* new_page);
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-static void library_window_on_view_filter_installed (LibraryWindow* self,
- ViewFilter* filter);
-static void _library_window_on_view_filter_installed_view_collection_view_filter_installed (ViewCollection* _sender,
- ViewFilter* filer,
- gpointer self);
-static void library_window_on_view_filter_removed (LibraryWindow* self,
- ViewFilter* filter);
-static void _library_window_on_view_filter_removed_view_collection_view_filter_removed (ViewCollection* _sender,
- ViewFilter* filer,
- gpointer self);
-void search_filter_actions_monitor_page_contents (SearchFilterActions* self,
- Page* old_page,
- Page* new_page);
-static void library_window_on_view_filter_refreshed (LibraryWindow* self);
-static void _library_window_on_view_filter_refreshed_view_filter_refresh (ViewFilter* _sender,
- gpointer self);
-gboolean view_collection_are_items_filtered_out (ViewCollection* self);
-static GVariant* _variant_new4 (gboolean value);
-static void library_window_real_show_all (GtkWidget* base);
-GAction* page_get_common_action (Page* self,
- const gchar* name,
- gboolean log_warning);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-static void library_window_init_view_filter (LibraryWindow* self,
- CheckerboardPage* page);
-static void library_window_toggle_search_bar (LibraryWindow* self,
- gboolean show,
- CheckerboardPage* page);
-static gboolean library_window_should_show_search_bar (LibraryWindow* self);
-static void library_window_set_sidebar_visible (LibraryWindow* self,
- gboolean visible);
-LibraryWindow* library_window_get_app (void);
-gboolean library_window_is_mount_uri_supported (const gchar* uri);
-static gchar* library_window_real_get_app_role (AppWindow* base);
-#define RESOURCES_APP_LIBRARY_ROLE _ ("Photo Manager")
-GType tag_get_type (void) G_GNUC_CONST;
-void library_window_rename_tag_in_sidebar (LibraryWindow* self,
- Tag* tag);
-GType tags_sidebar_entry_get_type (void) G_GNUC_CONST;
-TagsSidebarEntry* tags_branch_get_entry_for_tag (TagsBranch* self,
- Tag* tag);
-gboolean sidebar_tree_rename_entry_in_place (SidebarTree* self,
- SidebarEntry* entry);
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-void library_window_rename_event_in_sidebar (LibraryWindow* self,
- Event* event);
-GType events_event_entry_get_type (void) G_GNUC_CONST;
-EventsEventEntry* events_branch_get_entry_for_event (EventsBranch* self,
- Event* event);
-GType saved_search_get_type (void) G_GNUC_CONST;
-void library_window_rename_search_in_sidebar (LibraryWindow* self,
- SavedSearch* search);
-GType searches_sidebar_entry_get_type (void) G_GNUC_CONST;
-SearchesSidebarEntry* searches_branch_get_entry_for_saved_search (SearchesBranch* self,
- SavedSearch* search);
-static void library_window_real_on_quit (AppWindow* base);
-void configuration_facade_set_library_window_state (ConfigurationFacade* self,
- gboolean maximize,
- Dimensions* dimensions);
-void configuration_facade_set_sidebar_position (ConfigurationFacade* self,
- gint position);
-void app_window_on_quit (AppWindow* self);
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-static Photo* library_window_get_start_fullscreen_photo (LibraryWindow* self,
- CollectionPage* page);
-gint view_collection_get_selected_count (ViewCollection* self);
-GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self,
- GType t);
-GType library_photo_get_type (void) G_GNUC_CONST;
-GeeList* view_collection_get_sources_of_type (ViewCollection* self,
- GType t);
-static gboolean library_window_get_fullscreen_photo (LibraryWindow* self,
- Page* page,
- CollectionPage* * collection,
- Photo* * start,
- ViewCollection* * view_collection);
-GType events_directory_page_get_type (void) G_GNUC_CONST;
-gint data_collection_get_count (DataCollection* self);
-DataObject* data_collection_get_at (DataCollection* self,
- gint index);
-GType data_view_get_type (void) G_GNUC_CONST;
-DataSource* data_view_get_source (DataView* self);
-GType event_page_get_type (void) G_GNUC_CONST;
-CollectionPage* library_photo_page_get_controller_page (LibraryPhotoPage* self);
-gboolean editing_host_page_has_photo (EditingHostPage* self);
-Photo* editing_host_page_get_photo (EditingHostPage* self);
-static void library_window_real_on_fullscreen (AppWindow* base);
-static GType library_window_fullscreen_photo_page_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static LibraryWindowFullscreenPhotoPage* library_window_fullscreen_photo_page_new (CollectionPage* collection,
- Photo* start,
- ViewCollection* view);
-static LibraryWindowFullscreenPhotoPage* library_window_fullscreen_photo_page_construct (GType object_type,
- CollectionPage* collection,
- Photo* start,
- ViewCollection* view);
-void app_window_go_fullscreen (AppWindow* self,
- Page* page);
-#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
-#define RESOURCES_OK_LABEL _ ("_OK")
-gboolean app_dirs_is_in_import_dir (GFile* file);
-GtkResponseType copy_files_dialog (void);
-static void library_window_dispatch_import_jobs (LibraryWindow* self,
- GSList* uris,
- const gchar* job_name,
- gboolean copy_to_library,
- gboolean recurse);
-static void _g_free0_ (gpointer var);
-static inline void _g_slist_free__g_free0_ (GSList* self);
-GType data_imports_ui_data_imports_dialog_get_type (void) G_GNUC_CONST;
-DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_get_or_create_instance (void);
-static void library_window_real_update_common_action_availability (AppWindow* base,
- Page* old_page,
- Page* new_page);
-void app_window_update_common_action_availability (AppWindow* self,
- Page* old_page,
- Page* new_page);
-void app_window_set_common_action_sensitive (AppWindow* self,
- const gchar* name,
- gboolean sensitive);
-static void library_window_real_update_common_actions (AppWindow* base,
- Page* page,
- gint selected_count,
- gint count);
-static gboolean library_window_can_empty_trash (LibraryWindow* self);
-void app_window_set_common_action_visible (AppWindow* self,
- const gchar* name,
- gboolean visible);
-static gboolean library_window_can_jump_to_event (LibraryWindow* self);
-void app_window_update_common_actions (AppWindow* self,
- Page* page,
- gint selected_count,
- gint count);
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-gint media_source_collection_get_trashcan_count (MediaSourceCollection* self);
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-GeeCollection* media_source_collection_get_trashcan_contents (MediaSourceCollection* self);
-void remove_from_app (GeeCollection* sources,
- const gchar* dialog_title,
- const gchar* progress_dialog_text);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-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_reset (CommandManager* self);
-SavedSearchDialog* saved_search_dialog_new (void);
-SavedSearchDialog* saved_search_dialog_construct (GType object_type);
-GType saved_search_dialog_get_type (void) G_GNUC_CONST;
-void saved_search_dialog_show (SavedSearchDialog* self);
-DataSource* view_collection_get_selected_source_at (ViewCollection* self,
- gint index);
-Event* media_source_get_event (MediaSource* self);
-void library_window_switch_to_event (LibraryWindow* self,
- Event* event);
-static GVariant* _variant_new5 (gboolean value);
-void search_filter_toolbar_take_focus (SearchFilterToolbar* self);
-static void library_window_on_clear_search (LibraryWindow* self);
-void search_filter_actions_reset (SearchFilterActions* self);
-gint library_window_get_events_sort (LibraryWindow* self);
-void configuration_facade_set_events_sort_ascending (ConfigurationFacade* self,
- gboolean sort);
-void preferences_dialog_show_preferences (void);
-void properties_update_properties (Properties* self,
- Page* page);
-void configuration_facade_set_display_basic_properties (ConfigurationFacade* self,
- gboolean display);
-static gboolean _variant_get6 (GVariant* value);
-static GVariant* _variant_new7 (gboolean value);
-void extended_properties_window_update_properties (ExtendedPropertiesWindow* self,
- Page* page);
-void configuration_facade_set_display_search_bar (ConfigurationFacade* self,
- gboolean display);
-void library_window_show_search_bar (LibraryWindow* self,
- gboolean display);
-static GVariant* _variant_new8 (gboolean value);
-void configuration_facade_set_display_sidebar (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_sidebar (ConfigurationFacade* self);
-static void library_window_set_toolbar_visible (LibraryWindow* self,
- gboolean visible);
-GtkToolbar* page_get_toolbar (Page* self);
-void configuration_facade_set_display_toolbar (ConfigurationFacade* self,
- gboolean display);
-gboolean configuration_facade_get_display_toolbar (ConfigurationFacade* self);
-static void library_window_sync_extended_properties (LibraryWindow* self,
- gboolean show);
-static GVariant* _variant_new9 (gboolean value);
-void configuration_facade_set_display_extended_properties (ConfigurationFacade* self,
- gboolean display);
-GType batch_import_get_type (void) G_GNUC_CONST;
-void library_window_enqueue_batch_import (LibraryWindow* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel);
-GType library_hideable_page_entry_get_type (void) G_GNUC_CONST;
-GType library_import_queue_sidebar_entry_get_type (void) G_GNUC_CONST;
-LibraryImportQueueSidebarEntry* library_branch_get_import_queue_entry (LibraryBranch* self);
-void library_import_queue_sidebar_entry_enqueue_and_schedule (LibraryImportQueueSidebarEntry* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel);
-gpointer import_manifest_ref (gpointer instance);
-void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_import_manifest (GValue* value,
- gpointer v_object);
-void value_take_import_manifest (GValue* value,
- gpointer v_object);
-gpointer value_get_import_manifest (const GValue* value);
-GType import_manifest_get_type (void) G_GNUC_CONST;
-static void library_window_import_reporter (LibraryWindow* self,
- ImportManifest* manifest);
-gpointer import_ui_question_params_ref (gpointer instance);
-void import_ui_question_params_unref (gpointer instance);
-GParamSpec* import_ui_param_spec_question_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void import_ui_value_set_question_params (GValue* value,
- gpointer v_object);
-void import_ui_value_take_question_params (GValue* value,
- gpointer v_object);
-gpointer import_ui_value_get_question_params (const GValue* value);
-GType import_ui_question_params_get_type (void) G_GNUC_CONST;
-gboolean import_ui_report_manifest (ImportManifest* manifest,
- gboolean show_dest_id,
- ImportUIQuestionParams* question);
-GFile* app_dirs_get_import_dir (void);
-GtkResponseType app_window_affirm_cancel_question (const gchar* message,
- const gchar* affirmative,
- const gchar* title,
- GtkWindow* parent);
-AppWindow* app_window_get_instance (void);
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-GType file_import_job_get_type (void) G_GNUC_CONST;
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-FileImportJob* file_import_job_new (GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse);
-FileImportJob* file_import_job_construct (GType object_type,
- GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse);
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-static void _library_window_import_reporter_batch_import_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self);
-BatchImport* batch_import_new (GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-BatchImport* batch_import_construct (GType object_type,
- GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-void library_window_switch_to_import_queue_page (LibraryWindow* self);
-static GdkDragAction library_window_get_drag_action (LibraryWindow* self);
-static gboolean library_window_real_drag_motion (GtkWidget* base,
- GdkDragContext* context,
- gint x,
- gint y,
- guint time);
-static void library_window_real_drag_data_received (GtkWidget* base,
- GdkDragContext* context,
- gint x,
- gint y,
- GtkSelectionData* selection_data,
- guint info,
- guint time);
-void library_window_switch_to_library_page (LibraryWindow* self);
-void library_window_switch_to_page (LibraryWindow* self,
- Page* page);
-void library_window_switch_to_tag (LibraryWindow* self,
- Tag* tag);
-void library_window_switch_to_saved_search (LibraryWindow* self,
- SavedSearch* search);
-void library_window_switch_to_photo_page (LibraryWindow* self,
- CollectionPage* controller,
- Photo* current);
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-LibraryPhotoPage* library_photo_page_new (void);
-LibraryPhotoPage* library_photo_page_construct (GType object_type);
-void library_window_add_to_stack (LibraryWindow* self,
- Page* page);
-void spin_event_loop (void);
-void library_photo_page_display_for_collection (LibraryPhotoPage* self,
- CollectionPage* return_page,
- Photo* photo,
- ViewCollection* view);
-GType camera_sidebar_entry_get_type (void) G_GNUC_CONST;
-CameraSidebarEntry* camera_branch_get_entry_for_camera (CameraBranch* self,
- DiscoveredCamera* camera);
-GType import_page_get_type (void) G_GNUC_CONST;
-gboolean import_page_unmount_camera (ImportPage* self,
- GMount* mount);
-static void library_window_remove_from_stack (LibraryWindow* self,
- Page* page);
-gboolean configuration_facade_get_display_basic_properties (ConfigurationFacade* self);
-static GVariant* _variant_new10 (gboolean value);
-gboolean configuration_facade_get_display_extended_properties (ConfigurationFacade* self);
-static GVariant* _variant_new11 (gboolean value);
-static GVariant* _variant_new12 (gboolean value);
-gboolean configuration_facade_get_events_sort_ascending (ConfigurationFacade* self);
-static GVariant* _variant_new13 (const gchar* value);
-static void library_window_start_pulse_background_progress_bar (LibraryWindow* self,
- const gchar* label,
- gint priority);
-static void library_window_stop_pulse_background_progress_bar (LibraryWindow* self,
- gint priority,
- gboolean clear);
-static void library_window_show_background_progress_bar (LibraryWindow* self);
-static gboolean library_window_on_pulse_background_progress_bar (LibraryWindow* self);
-static gboolean _library_window_on_pulse_background_progress_bar_gsource_func (gpointer self);
-static void library_window_clear_background_progress_bar (LibraryWindow* self,
- gint priority);
-static void library_window_update_background_progress_bar (LibraryWindow* self,
- const gchar* label,
- gint priority,
- gdouble count,
- gdouble total);
-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);
-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);
-void page_switching_from (Page* self);
-void sidebar_tree_enable_editing (SidebarTree* self);
-void page_window_set_current_page (PageWindow* self,
- Page* page);
-void sidebar_tree_disable_editing (SidebarTree* self);
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-gboolean sidebar_expandable_entry_expand_on_select (SidebarExpandableEntry* self);
-gboolean sidebar_tree_expand_to_entry (SidebarTree* self,
- SidebarEntry* entry);
-gboolean sidebar_tree_place_cursor (SidebarTree* self,
- SidebarEntry* entry,
- gboolean mask_signal);
-static void library_window_on_update_properties (LibraryWindow* self);
-static void library_window_subscribe_for_basic_information (LibraryWindow* self,
- Page* page);
-void page_switched_to (Page* self);
-GMenuModel* page_get_menubar (Page* self);
-void page_ready (Page* self);
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-void search_filter_toolbar_set_view_filter (SearchFilterToolbar* self,
- SearchViewFilter* search_filter);
-SearchViewFilter* checkerboard_page_get_search_view_filter (CheckerboardPage* self);
-void view_collection_install_view_filter (ViewCollection* self,
- ViewFilter* f);
-DisabledViewFilter* disabled_view_filter_new (void);
-DisabledViewFilter* disabled_view_filter_construct (GType object_type);
-GType disabled_view_filter_get_type (void) G_GNUC_CONST;
-GType library_last_import_sidebar_entry_get_type (void) G_GNUC_CONST;
-LibraryLastImportSidebarEntry* library_branch_get_last_imported_entry (LibraryBranch* self);
-gboolean library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self);
-gboolean sidebar_branch_get_show_branch (SidebarBranch* self);
-GType events_directory_entry_get_type (void) G_GNUC_CONST;
-GType events_master_directory_entry_get_type (void) G_GNUC_CONST;
-EventsMasterDirectoryEntry* events_branch_get_master_entry (EventsBranch* self);
-static void _library_window_on_update_properties_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self);
-static void _library_window_on_update_properties_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void _library_window_on_update_properties_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-static void _library_window_on_update_properties_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self);
-void one_shot_scheduler_at_idle (OneShotScheduler* self);
-void library_window_mounted_camera_shell_notification (LibraryWindow* self,
- const gchar* uri,
- gboolean at_startup);
-gchar* camera_table_get_port_uri (const gchar* port);
-gboolean is_string_empty (const gchar* s);
-static gboolean library_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-gboolean sidebar_tree_is_keypress_interpreted (SidebarTree* self,
- GdkEventKey* event);
-gint thumbnail_get_MAX_SCALE (void);
-#define CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING 24
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType zoom_buffer_get_type (void) G_GNUC_CONST;
-GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-#define LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPagePrivate))
-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);
-static void _vala_library_window_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-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 gint _vala_array_length (gpointer array);
-
-static const gchar* LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES[4] = {"gphoto2:", "disk:", "file:", "mtp:"};
-const GtkTargetEntry LIBRARY_WINDOW_DND_TARGET_ENTRIES[3] = {{"text/uri-list", (guint) GTK_TARGET_OTHER_APP, (guint) LIBRARY_WINDOW_TARGET_TYPE_URI_LIST}, {LIBRARY_WINDOW_MEDIA_LIST_MIME_TYPE, (guint) GTK_TARGET_SAME_APP, (guint) LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST}, {LIBRARY_WINDOW_TAG_PATH_MIME_TYPE, (guint) GTK_TARGET_SAME_WIDGET, (guint) LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH}};
-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 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_page_created ((LibraryWindow*) self, entry, page);
-#line 2150 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_destroying_page_sidebar_tree_destroying_page (SidebarTree* _sender,
- SidebarPageRepresentative* entry,
- Page* page,
- gpointer self)
-{
-#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_destroying_page ((LibraryWindow*) self, entry, page);
-#line 2162 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected (SidebarTree* _sender,
- SidebarSelectableEntry* selectable,
- gpointer self)
-{
-#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_sidebar_entry_selected ((LibraryWindow*) self, selectable);
-#line 2173 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed (SidebarTree* _sender,
- SidebarSelectableEntry* removed,
- gpointer self)
-{
-#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_sidebar_selected_entry_removed ((LibraryWindow*) self, removed);
-#line 2184 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_hide_extended_properties_gtk_widget_hide (GtkWidget* _sender,
- gpointer self)
-{
-#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_hide_extended_properties ((LibraryWindow*) self);
-#line 2194 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_show_extended_properties_gtk_widget_show (GtkWidget* _sender,
- gpointer self)
-{
-#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_show_extended_properties ((LibraryWindow*) self);
-#line 2204 "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 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_trashcan_contents_altered ((LibraryWindow*) self);
-#line 2216 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_media_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_media_altered ((LibraryWindow*) self);
-#line 2227 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_metadata_writer_progress_metadata_writer_progress (MetadataWriter* _sender,
- guint completed,
- guint total,
- gpointer self)
-{
-#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_metadata_writer_progress ((LibraryWindow*) self, completed, total);
-#line 2239 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender,
- LibraryMonitor* monitor,
- gpointer self)
-{
-#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_installed ((LibraryWindow*) self, monitor);
-#line 2250 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender,
- LibraryMonitor* monitor,
- gpointer self)
-{
-#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_destroyed ((LibraryWindow*) self, monitor);
-#line 2261 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_camera_added_camera_table_camera_added (CameraTable* _sender,
- DiscoveredCamera* camera,
- gpointer self)
-{
-#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_camera_added ((LibraryWindow*) self, camera);
-#line 2272 "LibraryWindow.c"
-}
-
-
-static GType
-library_window_sidebar_root_position_get_type (void)
-{
- static volatile gsize library_window_sidebar_root_position_type_id__volatile = 0;
- if (g_once_init_enter (&library_window_sidebar_root_position_type_id__volatile)) {
- static const GEnumValue values[] = {{LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_LIBRARY, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_LIBRARY", "library"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_CAMERAS, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_CAMERAS", "cameras"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_SAVED_SEARCH, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_SAVED_SEARCH", "saved-search"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_EVENTS, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_EVENTS", "events"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_FOLDERS, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_FOLDERS", "folders"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_TAGS, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_TAGS", "tags"}, {0, NULL, NULL}};
- GType library_window_sidebar_root_position_type_id;
- library_window_sidebar_root_position_type_id = g_enum_register_static ("LibraryWindowSidebarRootPosition", values);
- g_once_init_leave (&library_window_sidebar_root_position_type_id__volatile, library_window_sidebar_root_position_type_id);
- }
- return library_window_sidebar_root_position_type_id__volatile;
-}
-
-
-GType
-library_window_target_type_get_type (void)
-{
- static volatile gsize library_window_target_type_type_id__volatile = 0;
- if (g_once_init_enter (&library_window_target_type_type_id__volatile)) {
- static const GEnumValue values[] = {{LIBRARY_WINDOW_TARGET_TYPE_URI_LIST, "LIBRARY_WINDOW_TARGET_TYPE_URI_LIST", "uri-list"}, {LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST, "LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST", "media-list"}, {LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH, "LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH", "tag-path"}, {0, NULL, NULL}};
- GType library_window_target_type_type_id;
- library_window_target_type_type_id = g_enum_register_static ("LibraryWindowTargetType", values);
- g_once_init_leave (&library_window_target_type_type_id__volatile, library_window_target_type_type_id);
- }
- return library_window_target_type_type_id__volatile;
-}
-
-
-static void
-_library_window_on_file_import_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_file_import ((LibraryWindow*) self);
-#line 2311 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_external_library_import_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_external_library_import ((LibraryWindow*) self);
-#line 2322 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_preferences_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_preferences ((LibraryWindow*) self);
-#line 2333 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_empty_trash_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_empty_trash ((LibraryWindow*) self);
-#line 2344 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_jump_to_event_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_jump_to_event ((LibraryWindow*) self);
-#line 2355 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_find_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_find ((LibraryWindow*) self);
-#line 2366 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_new_search_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_new_search ((LibraryWindow*) self);
-#line 2377 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_action_toggle ((LibraryWindow*) self, action, parameter);
-#line 2388 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_display_basic_properties_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_display_basic_properties ((LibraryWindow*) self, action, value);
-#line 2399 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_display_extended_properties_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_display_extended_properties ((LibraryWindow*) self, action, value);
-#line 2410 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_display_searchbar_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_display_searchbar ((LibraryWindow*) self, action, value);
-#line 2421 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_display_sidebar_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_display_sidebar ((LibraryWindow*) self, action, value);
-#line 2432 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_display_toolbar_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_display_toolbar ((LibraryWindow*) self, action, value);
-#line 2443 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_action_radio ((LibraryWindow*) self, action, parameter);
-#line 2454 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_events_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action,
- GVariant* value,
- gpointer self)
-{
-#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_events_sort_changed ((LibraryWindow*) self, action, value);
-#line 2465 "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 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_external_drop_handler ((LibraryWindow*) self, context, entry, data, info, time);
-#line 2479 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_update_properties_now_one_shot_callback (gpointer self)
-{
-#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_update_properties_now ((LibraryWindow*) self);
-#line 2488 "LibraryWindow.c"
-}
-
-
-LibraryWindow*
-library_window_construct (GType object_type,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target)
-{
- LibraryWindow * self = NULL;
- SidebarTree* _tmp0_;
- SidebarTree* _tmp1_;
- SidebarTree* _tmp2_;
- SidebarTree* _tmp3_;
- SidebarTree* _tmp4_;
- SidebarTree* _tmp5_;
- LibraryBranch* _tmp6_;
- SidebarTree* _tmp7_;
- TagsBranch* _tmp8_;
- SidebarTree* _tmp9_;
- FoldersBranch* _tmp10_;
- SidebarTree* _tmp11_;
- EventsBranch* _tmp12_;
- SidebarTree* _tmp13_;
- CameraBranch* _tmp14_;
- SidebarTree* _tmp15_;
- SearchesBranch* _tmp16_;
- ExtendedPropertiesWindow* _tmp17_;
- ExtendedPropertiesWindow* _tmp18_;
- ExtendedPropertiesWindow* _tmp19_;
- OneShotScheduler* _tmp20_;
- SearchFilterActions* _tmp21_;
- SearchFilterToolbar* _tmp22_;
- LibraryBranch* _tmp23_;
- LibraryPhotosEntry* _tmp24_;
- LibraryPhotosEntry* _tmp25_;
- Page* _tmp26_;
- Page* _tmp27_;
- GtkTargetEntry* main_window_dnd_targets = NULL;
- GtkTargetEntry _tmp39_;
- GtkTargetEntry _tmp40_;
- GtkTargetEntry* _tmp41_;
- gint main_window_dnd_targets_length1;
- gint _main_window_dnd_targets_size_;
- GtkTargetEntry* _tmp42_;
- gint _tmp42__length1;
- MetadataWriter* _tmp43_;
- MetadataWriter* _tmp44_;
- LibraryMonitor* monitor = NULL;
- LibraryMonitorPool* _tmp45_;
- LibraryMonitorPool* _tmp46_;
- LibraryMonitor* _tmp47_;
- LibraryMonitor* _tmp48_;
- LibraryMonitor* _tmp49_;
- LibraryMonitorPool* _tmp51_;
- LibraryMonitorPool* _tmp52_;
- LibraryMonitorPool* _tmp53_;
- LibraryMonitorPool* _tmp54_;
- CameraTable* _tmp55_;
- CameraTable* _tmp56_;
- GtkProgressBar* _tmp57_;
-#line 219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- static const gchar* accels[3] = {"<Primary>f", "F8", NULL};
-#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = (LibraryWindow*) app_window_construct (object_type);
-#line 156 "/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 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp0_);
-#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->sidebar_tree);
-#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->sidebar_tree = _tmp0_;
-#line 159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->sidebar_tree;
-#line 159 "/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 160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->sidebar_tree;
-#line 160 "/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 161 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->sidebar_tree;
-#line 161 "/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 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = self->priv->sidebar_tree;
-#line 162 "/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 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = self->priv->sidebar_tree;
-#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = self->priv->library_branch;
-#line 164 "/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 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = self->priv->sidebar_tree;
-#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = self->priv->tags_branch;
-#line 165 "/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 166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = self->priv->sidebar_tree;
-#line 166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = self->priv->folders_branch;
-#line 166 "/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 167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = self->priv->sidebar_tree;
-#line 167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = self->priv->events_branch;
-#line 167 "/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 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = self->priv->sidebar_tree;
-#line 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = self->priv->camera_branch;
-#line 168 "/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 169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = self->priv->sidebar_tree;
-#line 169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = self->priv->saved_search_branch;
-#line 169 "/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 172 "/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 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp17_);
-#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->extended_properties);
-#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->extended_properties = _tmp17_;
-#line 173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = self->priv->extended_properties;
-#line 173 "/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 174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = self->priv->extended_properties;
-#line 174 "/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 176 "/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 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _one_shot_scheduler_unref0 (self->priv->properties_scheduler);
-#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->properties_scheduler = _tmp20_;
-#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = self->priv->search_actions;
-#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = search_filter_toolbar_new (_tmp21_);
-#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp22_);
-#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->search_toolbar);
-#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->search_toolbar = _tmp22_;
-#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = self->priv->library_branch;
-#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = library_branch_get_photos_entry (_tmp23_);
-#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = _tmp24_;
-#line 183 "/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 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = _tmp26_;
-#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_create_layout (self, _tmp27_);
-#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp27_);
-#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_load_configuration (self);
-#line 2661 "LibraryWindow.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp28_;
- MediaCollectionRegistry* _tmp29_;
- GeeCollection* _tmp30_;
- GeeCollection* _tmp31_;
- GeeIterator* _tmp32_;
- GeeIterator* _tmp33_;
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp28_ = media_collection_registry_get_instance ();
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp29_ = _tmp28_;
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp30_ = media_collection_registry_get_all (_tmp29_);
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp31_ = _tmp30_;
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp32_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp33_ = _tmp32_;
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp31_);
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _media_collection_registry_unref0 (_tmp29_);
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _media_sources_it = _tmp33_;
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- while (TRUE) {
-#line 2690 "LibraryWindow.c"
- GeeIterator* _tmp34_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp35_;
- gpointer _tmp36_;
- MediaSourceCollection* _tmp37_;
- MediaSourceCollection* _tmp38_;
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp34_ = _media_sources_it;
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!gee_iterator_next (_tmp34_)) {
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- break;
-#line 2703 "LibraryWindow.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp35_ = _media_sources_it;
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp36_ = gee_iterator_get (_tmp35_);
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- media_sources = (MediaSourceCollection*) _tmp36_;
-#line 189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp37_ = media_sources;
-#line 189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (_tmp37_, "trashcan-contents-altered", (GCallback) _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0);
-#line 190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp38_ = media_sources;
-#line 190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_window_on_media_altered_data_collection_items_altered, self, 0);
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (media_sources);
-#line 2721 "LibraryWindow.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_media_sources_it);
-#line 2725 "LibraryWindow.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp39_ = LIBRARY_WINDOW_DND_TARGET_ENTRIES[LIBRARY_WINDOW_TARGET_TYPE_URI_LIST];
-#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp40_ = LIBRARY_WINDOW_DND_TARGET_ENTRIES[LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST];
-#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp41_ = g_new0 (GtkTargetEntry, 2);
-#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp41_[0] = _tmp39_;
-#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp41_[1] = _tmp40_;
-#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- main_window_dnd_targets = _tmp41_;
-#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- main_window_dnd_targets_length1 = 2;
-#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _main_window_dnd_targets_size_ = main_window_dnd_targets_length1;
-#line 201 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp42_ = main_window_dnd_targets;
-#line 201 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp42__length1 = main_window_dnd_targets_length1;
-#line 201 "/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, _tmp42_, _tmp42__length1, (GDK_ACTION_COPY | GDK_ACTION_LINK) | GDK_ACTION_ASK);
-#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp43_ = metadata_writer_get_instance ();
-#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp44_ = _tmp43_;
-#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (_tmp44_, "progress", (GCallback) _library_window_on_metadata_writer_progress_metadata_writer_progress, self, 0);
-#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp44_);
-#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp45_ = library_monitor_pool_get_instance ();
-#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp46_ = _tmp45_;
-#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp47_ = library_monitor_pool_get_monitor (_tmp46_);
-#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp48_ = _tmp47_;
-#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _library_monitor_pool_unref0 (_tmp46_);
-#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- monitor = _tmp48_;
-#line 207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp49_ = monitor;
-#line 207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp49_ != NULL) {
-#line 2773 "LibraryWindow.c"
- LibraryMonitor* _tmp50_;
-#line 208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp50_ = monitor;
-#line 208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_installed (self, _tmp50_);
-#line 2779 "LibraryWindow.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp51_ = library_monitor_pool_get_instance ();
-#line 210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp52_ = _tmp51_;
-#line 210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (_tmp52_, "monitor-installed", (GCallback) _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed, self, 0);
-#line 210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _library_monitor_pool_unref0 (_tmp52_);
-#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp53_ = library_monitor_pool_get_instance ();
-#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp54_ = _tmp53_;
-#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (_tmp54_, "monitor-destroyed", (GCallback) _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed, self, 0);
-#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _library_monitor_pool_unref0 (_tmp54_);
-#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp55_ = camera_table_get_instance ();
-#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp56_ = _tmp55_;
-#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (_tmp56_, "camera-added", (GCallback) _library_window_on_camera_added_camera_table_camera_added, self, 0);
-#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _camera_table_unref0 (_tmp56_);
-#line 215 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp57_ = self->priv->background_progress_bar;
-#line 215 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_progress_bar_set_show_text (_tmp57_, TRUE);
-#line 220 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- application_set_accels_for_action ("win.CommonDisplaySearchbar", accels, G_N_ELEMENTS (accels));
-#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (monitor);
-#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- main_window_dnd_targets = (g_free (main_window_dnd_targets), NULL);
-#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return self;
-#line 2817 "LibraryWindow.c"
-}
-
-
-LibraryWindow*
-library_window_new (ProgressMonitor progress_monitor,
- void* progress_monitor_target)
-{
-#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return library_window_construct (TYPE_LIBRARY_WINDOW, progress_monitor, progress_monitor_target);
-#line 2827 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started (DirectoryMonitor* _sender,
- gpointer self)
-{
-#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_discovery_started ((LibraryWindow*) self);
-#line 2837 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender,
- gpointer self)
-{
-#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_discovery_completed ((LibraryWindow*) self);
-#line 2847 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_library_monitor_discovery_completed_directory_monitor_closed (DirectoryMonitor* _sender,
- gpointer self)
-{
-#line 256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_discovery_completed ((LibraryWindow*) self);
-#line 2857 "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 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_auto_update_progress ((LibraryWindow*) self, completed_files, total_files);
-#line 2869 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing (LibraryMonitor* _sender,
- gpointer self)
-{
-#line 258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_auto_import_preparing ((LibraryWindow*) self);
-#line 2879 "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 259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_auto_import_progress ((LibraryWindow*) self, completed_bytes, total_bytes);
-#line 2891 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_library_monitor_installed (LibraryWindow* self,
- LibraryMonitor* monitor)
-{
- GFile* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (monitor));
-#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = directory_monitor_get_root (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:252: on_library_monitor_installed: %s", _tmp3_);
-#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (_tmp3_);
-#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "discovery-started", (GCallback) _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started, self, 0);
-#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "discovery-completed", (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed, self, 0);
-#line 256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "closed", (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_closed, self, 0);
-#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (monitor, "auto-update-progress", (GCallback) _library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress, self, 0);
-#line 258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (monitor, "auto-import-preparing", (GCallback) _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing, self, 0);
-#line 259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (monitor, "auto-import-progress", (GCallback) _library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress, self, 0);
-#line 2933 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_library_monitor_destroyed (LibraryWindow* self,
- LibraryMonitor* monitor)
-{
- GFile* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- guint _tmp4_;
- guint _tmp5_;
- guint _tmp6_;
- guint _tmp7_;
- guint _tmp8_;
- guint _tmp9_;
-#line 262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_MONITOR (monitor));
-#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = directory_monitor_get_root (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor));
-#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:263: on_library_monitor_destroyed: %s", _tmp3_);
-#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (_tmp3_);
-#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("discovery-started", TYPE_DIRECTORY_MONITOR, &_tmp4_, NULL, FALSE);
-#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started, self);
-#line 266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("discovery-completed", TYPE_DIRECTORY_MONITOR, &_tmp5_, NULL, FALSE);
-#line 266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed, self);
-#line 267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("closed", TYPE_DIRECTORY_MONITOR, &_tmp6_, NULL, FALSE);
-#line 267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (monitor, 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_completed_directory_monitor_closed, self);
-#line 268 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("auto-update-progress", TYPE_LIBRARY_MONITOR, &_tmp7_, NULL, FALSE);
-#line 268 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (monitor, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress, self);
-#line 269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("auto-import-preparing", TYPE_LIBRARY_MONITOR, &_tmp8_, NULL, FALSE);
-#line 269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (monitor, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing, self);
-#line 270 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("auto-import-progress", TYPE_LIBRARY_MONITOR, &_tmp9_, NULL, FALSE);
-#line 270 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (monitor, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress, self);
-#line 2993 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new1 (gboolean value)
-{
-#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 3002 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new2 (gboolean value)
-{
-#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 3011 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new3 (gboolean value)
-{
-#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 3020 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_add_actions (AppWindow* base)
-{
- LibraryWindow * self;
- SearchFilterActions* _tmp0_;
- gint _tmp1_;
- GActionEntry* _tmp2_;
- SearchFilterActions* _tmp3_;
- GAction* _tmp4_;
- ConfigFacade* _tmp5_;
- ConfigFacade* _tmp6_;
- GVariant* _tmp7_;
- GAction* _tmp8_;
- GVariant* _tmp9_;
- GAction* _tmp10_;
- GVariant* _tmp11_;
-#line 294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 295 "/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 296 "/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 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->search_actions;
-#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = search_filter_actions_get_actions (_tmp0_, &_tmp1_);
-#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->search_actions;
-#line 297 "/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 299 "/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 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = config_facade_get_instance ();
-#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = _tmp5_;
-#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _variant_new1 (configuration_facade_get_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (_tmp4_, _tmp7_);
-#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp7_);
-#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp6_);
-#line 300 "/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), "CommonDisplaySidebar");
-#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = _variant_new2 (library_window_is_sidebar_visible (self));
-#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (_tmp8_, _tmp9_);
-#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp9_);
-#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayToolbar");
-#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = _variant_new3 (library_window_is_toolbar_visible (self));
-#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (_tmp10_, _tmp11_);
-#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp11_);
-#line 3084 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_view_filter_installed_view_collection_view_filter_installed (ViewCollection* _sender,
- ViewFilter* filer,
- gpointer self)
-{
-#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_view_filter_installed ((LibraryWindow*) self, filer);
-#line 3095 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_view_filter_removed_view_collection_view_filter_removed (ViewCollection* _sender,
- ViewFilter* filer,
- gpointer self)
-{
-#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_view_filter_removed ((LibraryWindow*) self, filer);
-#line 3106 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_switched_pages (PageWindow* base,
- Page* old_page,
- Page* new_page)
-{
- LibraryWindow * self;
- SearchFilterActions* _tmp10_;
-#line 304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page));
-#line 304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page));
-#line 305 "/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), old_page, new_page);
-#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (old_page != NULL) {
-#line 3127 "LibraryWindow.c"
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- guint _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- guint _tmp5_;
-#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = page_get_view (old_page);
-#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("view-filter-installed", TYPE_VIEW_COLLECTION, &_tmp2_, NULL, FALSE);
-#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _library_window_on_view_filter_installed_view_collection_view_filter_installed, self);
-#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp1_);
-#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = page_get_view (old_page);
-#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("view-filter-removed", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE);
-#line 310 "/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_view_filter_removed_view_collection_view_filter_removed, self);
-#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp4_);
-#line 3154 "LibraryWindow.c"
- }
-#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (new_page != NULL) {
-#line 3158 "LibraryWindow.c"
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
-#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = page_get_view (new_page);
-#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _tmp6_;
-#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (_tmp7_, "view-filter-installed", (GCallback) _library_window_on_view_filter_installed_view_collection_view_filter_installed, self, 0);
-#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp7_);
-#line 315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = page_get_view (new_page);
-#line 315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = _tmp8_;
-#line 315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (_tmp9_, "view-filter-removed", (GCallback) _library_window_on_view_filter_removed_view_collection_view_filter_removed, self, 0);
-#line 315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp9_);
-#line 3179 "LibraryWindow.c"
- }
-#line 318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = self->priv->search_actions;
-#line 318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- search_filter_actions_monitor_page_contents (_tmp10_, old_page, new_page);
-#line 3185 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_view_filter_refreshed_view_filter_refresh (ViewFilter* _sender,
- gpointer self)
-{
-#line 322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_view_filter_refreshed ((LibraryWindow*) self);
-#line 3195 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_view_filter_installed (LibraryWindow* self,
- ViewFilter* filter)
-{
-#line 321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_VIEW_FILTER (filter));
-#line 322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_connect_object (filter, "refresh", (GCallback) _library_window_on_view_filter_refreshed_view_filter_refresh, self, 0);
-#line 3209 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_view_filter_removed (LibraryWindow* self,
- ViewFilter* filter)
-{
- guint _tmp0_;
-#line 325 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 325 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_VIEW_FILTER (filter));
-#line 326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp0_, NULL, FALSE);
-#line 326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (filter, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _library_window_on_view_filter_refreshed_view_filter_refresh, self);
-#line 3226 "LibraryWindow.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return self ? g_object_ref (self) : NULL;
-#line 3235 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new4 (gboolean value)
-{
-#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 3244 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_view_filter_refreshed (LibraryWindow* self)
-{
- Page* _tmp0_;
- Page* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- gboolean _tmp4_;
- GAction* action = NULL;
- GAction* _tmp5_;
- GAction* _tmp6_;
- GAction* _tmp7_;
-#line 329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 332 "/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 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = page_get_view (_tmp1_);
-#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = !view_collection_are_items_filtered_out (_tmp3_);
-#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp3_);
-#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp4_) {
-#line 333 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 3280 "LibraryWindow.c"
- }
-#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar");
-#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
-#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- action = _tmp6_;
-#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = action;
-#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp7_ != NULL) {
-#line 3292 "LibraryWindow.c"
- GAction* _tmp8_;
- GVariant* _tmp9_;
-#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = action;
-#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = _variant_new4 (TRUE);
-#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (_tmp8_, _tmp9_);
-#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp9_);
-#line 3303 "LibraryWindow.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (action);
-#line 3307 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_show_all (GtkWidget* base)
-{
- LibraryWindow * self;
- GAction* basic_properties_action = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
- GAction* _tmp2_;
- GAction* _tmp3_;
- GAction* _tmp4_;
- GAction* _tmp5_;
- GVariant* _tmp6_;
- GVariant* _tmp7_;
- gboolean _tmp8_;
- CheckerboardPage* current_page = NULL;
- Page* _tmp10_;
- CheckerboardPage* _tmp11_;
- CheckerboardPage* _tmp12_;
- CheckerboardPage* _tmp14_;
-#line 343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 344 "/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 346 "/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 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = page_get_common_action (_tmp1_, "CommonDisplayBasicProperties", TRUE);
-#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- basic_properties_action = _tmp3_;
-#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = basic_properties_action;
-#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (_tmp4_ != NULL, "basic_properties_action != null");
-#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = basic_properties_action;
-#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = g_action_get_state (_tmp5_);
-#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _tmp6_;
-#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = !g_variant_get_boolean (_tmp7_);
-#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp7_);
-#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp8_) {
-#line 3362 "LibraryWindow.c"
- GtkFrame* _tmp9_;
-#line 351 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = self->priv->bottom_frame;
-#line 351 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 3368 "LibraryWindow.c"
- }
-#line 354 "/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 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp10_) : NULL;
-#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp11_ == NULL) {
-#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp10_);
-#line 3378 "LibraryWindow.c"
- }
-#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- current_page = _tmp11_;
-#line 355 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = current_page;
-#line 355 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp12_ != NULL) {
-#line 3386 "LibraryWindow.c"
- CheckerboardPage* _tmp13_;
-#line 356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = current_page;
-#line 356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_init_view_filter (self, _tmp13_);
-#line 3392 "LibraryWindow.c"
- }
-#line 358 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = current_page;
-#line 358 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_toggle_search_bar (self, library_window_should_show_search_bar (self), _tmp14_);
-#line 361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_set_sidebar_visible (self, library_window_is_sidebar_visible (self));
-#line 343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (current_page);
-#line 343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (basic_properties_action);
-#line 3404 "LibraryWindow.c"
-}
-
-
-LibraryWindow*
-library_window_get_app (void)
-{
- LibraryWindow* result = NULL;
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- LibraryWindow* _tmp2_;
-#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = app_window_instance;
-#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_WINDOW), "instance is LibraryWindow");
-#line 367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = app_window_instance;
-#line 367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_WINDOW, LibraryWindow));
-#line 367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp2_;
-#line 367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 3427 "LibraryWindow.c"
-}
-
-
-gboolean
-library_window_is_mount_uri_supported (const gchar* uri)
-{
- gboolean result = FALSE;
-#line 371 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (uri != NULL, FALSE);
-#line 3437 "LibraryWindow.c"
- {
- const gchar** scheme_collection = NULL;
- gint scheme_collection_length1 = 0;
- gint _scheme_collection_size_ = 0;
- gint scheme_it = 0;
-#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- scheme_collection = LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES;
-#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- scheme_collection_length1 = G_N_ELEMENTS (LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES);
-#line 372 "/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 3449 "LibraryWindow.c"
- gchar* _tmp0_;
- gchar* scheme = NULL;
-#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = g_strdup (scheme_collection[scheme_it]);
-#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- scheme = _tmp0_;
-#line 3456 "LibraryWindow.c"
- {
- const gchar* _tmp1_;
-#line 373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = scheme;
-#line 373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (g_str_has_prefix (uri, _tmp1_)) {
-#line 374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (scheme);
-#line 374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 3469 "LibraryWindow.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (scheme);
-#line 3473 "LibraryWindow.c"
- }
- }
- }
-#line 377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 3481 "LibraryWindow.c"
-}
-
-
-static gchar*
-library_window_real_get_app_role (AppWindow* base)
-{
- LibraryWindow * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 380 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = g_strdup (RESOURCES_APP_LIBRARY_ROLE);
-#line 381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp0_;
-#line 381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 3499 "LibraryWindow.c"
-}
-
-
-void
-library_window_rename_tag_in_sidebar (LibraryWindow* self,
- Tag* tag)
-{
- TagsSidebarEntry* entry = NULL;
- TagsBranch* _tmp0_;
- TagsSidebarEntry* _tmp1_;
- TagsSidebarEntry* _tmp2_;
-#line 384 "/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"
- g_return_if_fail (IS_TAG (tag));
-#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->tags_branch;
-#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = tags_branch_get_entry_for_tag (_tmp0_, tag);
-#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = _tmp1_;
-#line 386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = entry;
-#line 386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_ != NULL) {
-#line 3525 "LibraryWindow.c"
- SidebarTree* _tmp3_;
- TagsSidebarEntry* _tmp4_;
-#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->sidebar_tree;
-#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = entry;
-#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sidebar_tree_rename_entry_in_place (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 3534 "LibraryWindow.c"
- } else {
-#line 389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:389: No tag entry found for rename");
-#line 3538 "LibraryWindow.c"
- }
-#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 3542 "LibraryWindow.c"
-}
-
-
-void
-library_window_rename_event_in_sidebar (LibraryWindow* self,
- Event* event)
-{
- EventsEventEntry* entry = NULL;
- EventsBranch* _tmp0_;
- EventsEventEntry* _tmp1_;
- EventsEventEntry* _tmp2_;
-#line 392 "/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"
- g_return_if_fail (IS_EVENT (event));
-#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->events_branch;
-#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = events_branch_get_entry_for_event (_tmp0_, event);
-#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = _tmp1_;
-#line 394 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = entry;
-#line 394 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_ != NULL) {
-#line 3568 "LibraryWindow.c"
- SidebarTree* _tmp3_;
- EventsEventEntry* _tmp4_;
-#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->sidebar_tree;
-#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = entry;
-#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sidebar_tree_rename_entry_in_place (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 3577 "LibraryWindow.c"
- } else {
-#line 397 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:397: No event entry found for rename");
-#line 3581 "LibraryWindow.c"
- }
-#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 3585 "LibraryWindow.c"
-}
-
-
-void
-library_window_rename_search_in_sidebar (LibraryWindow* self,
- SavedSearch* search)
-{
- SearchesSidebarEntry* entry = NULL;
- SearchesBranch* _tmp0_;
- SearchesSidebarEntry* _tmp1_;
- SearchesSidebarEntry* _tmp2_;
-#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->saved_search_branch;
-#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = searches_branch_get_entry_for_saved_search (_tmp0_, search);
-#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = _tmp1_;
-#line 402 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = entry;
-#line 402 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_ != NULL) {
-#line 3611 "LibraryWindow.c"
- SidebarTree* _tmp3_;
- SearchesSidebarEntry* _tmp4_;
-#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->sidebar_tree;
-#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = entry;
-#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sidebar_tree_rename_entry_in_place (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 3620 "LibraryWindow.c"
- } else {
-#line 405 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:405: No search entry found for rename");
-#line 3624 "LibraryWindow.c"
- }
-#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 3628 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_on_quit (AppWindow* base)
-{
- LibraryWindow * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
- Dimensions _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- GtkPaned* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->maximized;
-#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->dimensions;
-#line 409 "/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 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = self->priv->client_paned;
-#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = gtk_paned_get_position (_tmp6_);
-#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = _tmp7_;
-#line 411 "/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 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 413 "/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 3675 "LibraryWindow.c"
-}
-
-
-static Photo*
-library_window_get_start_fullscreen_photo (LibraryWindow* self,
- CollectionPage* page)
-{
- Photo* result = NULL;
- ViewCollection* view = NULL;
- ViewCollection* _tmp0_;
- GeeList* _tmp1_ = NULL;
- ViewCollection* _tmp2_;
- GeeList* sources = NULL;
- GeeList* _tmp7_;
- Photo* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
- GeeList* _tmp10_;
-#line 416 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), NULL);
-#line 416 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_COLLECTION_PAGE (page), NULL);
-#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_PAGE, Page));
-#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view = _tmp0_;
-#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = view;
-#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection_get_selected_count (_tmp2_) > 0) {
-#line 3705 "LibraryWindow.c"
- ViewCollection* _tmp3_;
- GeeList* _tmp4_;
-#line 422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = view;
-#line 422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = view_collection_get_selected_sources_of_type (_tmp3_, TYPE_LIBRARY_PHOTO);
-#line 422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp4_;
-#line 3716 "LibraryWindow.c"
- } else {
- ViewCollection* _tmp5_;
- GeeList* _tmp6_;
-#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = view;
-#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = view_collection_get_sources_of_type (_tmp5_, TYPE_LIBRARY_PHOTO);
-#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp6_;
-#line 3728 "LibraryWindow.c"
- }
-#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _g_object_ref0 (_tmp1_);
-#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sources = _tmp7_;
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = sources;
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp10_ != NULL) {
-#line 3738 "LibraryWindow.c"
- GeeList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = sources;
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = _tmp12_;
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = _tmp13_ != 0;
-#line 3750 "LibraryWindow.c"
- } else {
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = FALSE;
-#line 3754 "LibraryWindow.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp9_) {
-#line 3758 "LibraryWindow.c"
- GeeList* _tmp14_;
- gpointer _tmp15_;
-#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = sources;
-#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = gee_list_get (_tmp14_, 0);
-#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp8_);
-#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp15_, TYPE_PHOTO, Photo);
-#line 3769 "LibraryWindow.c"
- } else {
-#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp8_);
-#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = NULL;
-#line 3775 "LibraryWindow.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp8_;
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (sources);
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 3787 "LibraryWindow.c"
-}
-
-
-static gboolean
-library_window_get_fullscreen_photo (LibraryWindow* self,
- Page* page,
- CollectionPage* * collection,
- Photo* * start,
- ViewCollection* * view_collection)
-{
- CollectionPage* _vala_collection = NULL;
- Photo* _vala_start = NULL;
- ViewCollection* _vala_view_collection = NULL;
- gboolean result = FALSE;
-#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE);
-#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_PAGE (page), FALSE);
-#line 431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_collection = NULL;
-#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_start = NULL;
-#line 433 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 433 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_view_collection = NULL;
-#line 436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_COLLECTION_PAGE)) {
-#line 3820 "LibraryWindow.c"
- CollectionPage* _tmp0_;
- Photo* photo = NULL;
- CollectionPage* _tmp1_;
- Photo* _tmp2_;
- Photo* _tmp3_;
- Photo* _tmp4_;
- Photo* _tmp5_;
-#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_COLLECTION_PAGE, CollectionPage));
-#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_collection = _tmp0_;
-#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _vala_collection;
-#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = library_window_get_start_fullscreen_photo (self, _tmp1_);
-#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- photo = _tmp2_;
-#line 439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = photo;
-#line 439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp3_ == NULL) {
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (photo);
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 3852 "LibraryWindow.c"
- } else {
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 3856 "LibraryWindow.c"
- }
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 3862 "LibraryWindow.c"
- } else {
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 3866 "LibraryWindow.c"
- }
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 3872 "LibraryWindow.c"
- } else {
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 3876 "LibraryWindow.c"
- }
-#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 3880 "LibraryWindow.c"
- }
-#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = photo;
-#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_start = _tmp5_;
-#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_view_collection = NULL;
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (photo);
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 3902 "LibraryWindow.c"
- } else {
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 3906 "LibraryWindow.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 3912 "LibraryWindow.c"
- } else {
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 3916 "LibraryWindow.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 3922 "LibraryWindow.c"
- } else {
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 3926 "LibraryWindow.c"
- }
-#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 3930 "LibraryWindow.c"
- }
-#line 448 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_EVENTS_DIRECTORY_PAGE)) {
-#line 3934 "LibraryWindow.c"
- ViewCollection* view = NULL;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- Event* event = NULL;
- ViewCollection* _tmp8_;
- DataObject* _tmp9_;
- DataView* _tmp10_;
- DataSource* _tmp11_;
- Event* _tmp12_;
- Event* _tmp13_;
- EventsEventEntry* entry = NULL;
- EventsBranch* _tmp14_;
- Event* _tmp15_;
- EventsEventEntry* _tmp16_;
- EventsEventEntry* _tmp17_;
- EventsEventEntry* _tmp18_;
- Page* _tmp19_;
- Photo* photo = NULL;
- CollectionPage* _tmp20_;
- Photo* _tmp21_;
- Photo* _tmp22_;
- Photo* _tmp23_;
- Photo* _tmp24_;
-#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = page_get_view (page);
-#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view = _tmp6_;
-#line 450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = view;
-#line 450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)) == 0) {
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 3974 "LibraryWindow.c"
- } else {
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 3978 "LibraryWindow.c"
- }
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 3984 "LibraryWindow.c"
- } else {
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 3988 "LibraryWindow.c"
- }
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 3994 "LibraryWindow.c"
- } else {
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 3998 "LibraryWindow.c"
- }
-#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4002 "LibraryWindow.c"
- }
-#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = view;
-#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), 0);
-#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_VIEW, DataView);
-#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = data_view_get_source (_tmp10_);
-#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_EVENT, Event);
-#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp10_);
-#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- event = _tmp12_;
-#line 454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = event;
-#line 454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp13_ == NULL) {
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (event);
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 4032 "LibraryWindow.c"
- } else {
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 4036 "LibraryWindow.c"
- }
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 4042 "LibraryWindow.c"
- } else {
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 4046 "LibraryWindow.c"
- }
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 4052 "LibraryWindow.c"
- } else {
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 4056 "LibraryWindow.c"
- }
-#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4060 "LibraryWindow.c"
- }
-#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = self->priv->events_branch;
-#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = event;
-#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = events_branch_get_entry_for_event (_tmp14_, _tmp15_);
-#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = _tmp16_;
-#line 458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = entry;
-#line 458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp17_ == NULL) {
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (event);
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 4086 "LibraryWindow.c"
- } else {
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 4090 "LibraryWindow.c"
- }
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 4096 "LibraryWindow.c"
- } else {
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 4100 "LibraryWindow.c"
- }
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 4106 "LibraryWindow.c"
- } else {
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 4110 "LibraryWindow.c"
- }
-#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4114 "LibraryWindow.c"
- }
-#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = entry;
-#line 461 "/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 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_collection = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_EVENT_PAGE, EventPage), TYPE_COLLECTION_PAGE, CollectionPage);
-#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = _vala_collection;
-#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = library_window_get_start_fullscreen_photo (self, _tmp20_);
-#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- photo = _tmp21_;
-#line 463 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = photo;
-#line 463 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp22_ == NULL) {
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (photo);
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (event);
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 4148 "LibraryWindow.c"
- } else {
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 4152 "LibraryWindow.c"
- }
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 4158 "LibraryWindow.c"
- } else {
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 4162 "LibraryWindow.c"
- }
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 4168 "LibraryWindow.c"
- } else {
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 4172 "LibraryWindow.c"
- }
-#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4176 "LibraryWindow.c"
- }
-#line 466 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = photo;
-#line 466 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = _g_object_ref0 (_tmp23_);
-#line 466 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 466 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_start = _tmp24_;
-#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_view_collection = NULL;
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (photo);
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (event);
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 4204 "LibraryWindow.c"
- } else {
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 4208 "LibraryWindow.c"
- }
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 4214 "LibraryWindow.c"
- } else {
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 4218 "LibraryWindow.c"
- }
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 4224 "LibraryWindow.c"
- } else {
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 4228 "LibraryWindow.c"
- }
-#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4232 "LibraryWindow.c"
- }
-#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_LIBRARY_PHOTO_PAGE)) {
-#line 4236 "LibraryWindow.c"
- LibraryPhotoPage* photo_page = NULL;
- LibraryPhotoPage* _tmp25_;
- CollectionPage* controller = NULL;
- LibraryPhotoPage* _tmp26_;
- CollectionPage* _tmp27_;
- CollectionPage* _tmp28_;
- LibraryPhotoPage* _tmp29_;
- CollectionPage* _tmp30_;
- CollectionPage* _tmp31_;
- LibraryPhotoPage* _tmp32_;
- Photo* _tmp33_;
- LibraryPhotoPage* _tmp34_;
- ViewCollection* _tmp35_;
-#line 473 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage));
-#line 473 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- photo_page = _tmp25_;
-#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp26_ = photo_page;
-#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = library_photo_page_get_controller_page (_tmp26_);
-#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- controller = _tmp27_;
-#line 476 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp28_ = controller;
-#line 476 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp28_ == NULL) {
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (controller);
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (photo_page);
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 4274 "LibraryWindow.c"
- } else {
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 4278 "LibraryWindow.c"
- }
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 4284 "LibraryWindow.c"
- } else {
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 4288 "LibraryWindow.c"
- }
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 4294 "LibraryWindow.c"
- } else {
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 4298 "LibraryWindow.c"
- }
-#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4302 "LibraryWindow.c"
- }
-#line 479 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp29_ = photo_page;
-#line 479 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_EDITING_HOST_PAGE, EditingHostPage))) {
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (controller);
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (photo_page);
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 4318 "LibraryWindow.c"
- } else {
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 4322 "LibraryWindow.c"
- }
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 4328 "LibraryWindow.c"
- } else {
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 4332 "LibraryWindow.c"
- }
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 4338 "LibraryWindow.c"
- } else {
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 4342 "LibraryWindow.c"
- }
-#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4346 "LibraryWindow.c"
- }
-#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp30_ = controller;
-#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp31_ = _g_object_ref0 (_tmp30_);
-#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_collection = _tmp31_;
-#line 483 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp32_ = photo_page;
-#line 483 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp33_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_EDITING_HOST_PAGE, EditingHostPage));
-#line 483 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 483 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_start = _tmp33_;
-#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp34_ = photo_page;
-#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp35_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_PAGE, Page));
-#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_view_collection = _tmp35_;
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (controller);
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (photo_page);
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 4382 "LibraryWindow.c"
- } else {
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 4386 "LibraryWindow.c"
- }
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 4392 "LibraryWindow.c"
- } else {
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 4396 "LibraryWindow.c"
- }
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 4402 "LibraryWindow.c"
- } else {
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 4406 "LibraryWindow.c"
- }
-#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4410 "LibraryWindow.c"
- }
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (collection) {
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *collection = _vala_collection;
-#line 4418 "LibraryWindow.c"
- } else {
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_collection);
-#line 4422 "LibraryWindow.c"
- }
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (start) {
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *start = _vala_start;
-#line 4428 "LibraryWindow.c"
- } else {
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_vala_start);
-#line 4432 "LibraryWindow.c"
- }
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection) {
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- *view_collection = _vala_view_collection;
-#line 4438 "LibraryWindow.c"
- } else {
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_vala_view_collection);
-#line 4442 "LibraryWindow.c"
- }
-#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4446 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_on_fullscreen (AppWindow* base)
-{
- LibraryWindow * self;
- Page* current_page = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
- CollectionPage* collection = NULL;
- Photo* start = NULL;
- ViewCollection* view = NULL;
- Page* _tmp2_;
- CollectionPage* _tmp3_ = NULL;
- Photo* _tmp4_ = NULL;
- ViewCollection* _tmp5_ = NULL;
- gboolean _tmp6_;
- LibraryWindowFullscreenPhotoPage* fs_photo = NULL;
- CollectionPage* _tmp7_;
- Photo* _tmp8_;
- ViewCollection* _tmp9_;
- LibraryWindowFullscreenPhotoPage* _tmp10_;
- LibraryWindowFullscreenPhotoPage* _tmp11_;
-#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 493 "/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 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- current_page = _tmp0_;
-#line 494 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = current_page;
-#line 494 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp1_ == NULL) {
-#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (current_page);
-#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 4485 "LibraryWindow.c"
- }
-#line 499 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view = NULL;
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = current_page;
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = library_window_get_fullscreen_photo (self, _tmp2_, &_tmp3_, &_tmp4_, &_tmp5_);
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (collection);
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- collection = _tmp3_;
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (start);
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- start = _tmp4_;
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view = _tmp5_;
-#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!_tmp6_) {
-#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (start);
-#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (collection);
-#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (current_page);
-#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 4517 "LibraryWindow.c"
- }
-#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = collection;
-#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = start;
-#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = view;
-#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = library_window_fullscreen_photo_page_new (_tmp7_, _tmp8_, _tmp9_);
-#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp10_);
-#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- fs_photo = _tmp10_;
-#line 505 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = fs_photo;
-#line 505 "/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 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (fs_photo);
-#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (start);
-#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (collection);
-#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (current_page);
-#line 4545 "LibraryWindow.c"
-}
-
-
-static void
-_g_free0_ (gpointer var)
-{
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- var = (g_free (var), NULL);
-#line 4554 "LibraryWindow.c"
-}
-
-
-static inline void
-_g_slist_free__g_free0_ (GSList* self)
-{
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_slist_free_full (self, (GDestroyNotify) _g_free0_);
-#line 4563 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_file_import (LibraryWindow* self)
-{
- GtkFileChooserDialog* import_dialog = NULL;
- GtkFileChooserDialog* _tmp0_;
- GtkFileChooserDialog* _tmp1_;
- GtkFileChooserDialog* _tmp2_;
- GtkFileChooserDialog* _tmp3_;
- const gchar* _tmp4_;
- GtkCheckButton* recursive = NULL;
- GtkCheckButton* _tmp5_;
- GtkCheckButton* _tmp6_;
- gboolean _tmp7_;
- GtkFileChooserDialog* _tmp8_;
- GtkCheckButton* _tmp9_;
- gint response = 0;
- GtkFileChooserDialog* _tmp10_;
- gint _tmp11_;
- GtkFileChooserDialog* _tmp28_;
- gchar* _tmp29_;
- GtkCheckButton* _tmp30_;
- gboolean _tmp31_;
- gboolean _tmp32_;
- GtkFileChooserDialog* _tmp33_;
-#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 509 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_ ("Import From Folder"), NULL, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL);
-#line 509 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp0_);
-#line 509 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- import_dialog = _tmp0_;
-#line 512 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = import_dialog;
-#line 512 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE);
-#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = import_dialog;
-#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_file_chooser_set_select_multiple (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_file_chooser_get_type (), GtkFileChooser), TRUE);
-#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = import_dialog;
-#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = self->priv->import_dir;
-#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp4_);
-#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = (GtkCheckButton*) gtk_check_button_new_with_label (_ ("Recurse Into Subfolders"));
-#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp5_);
-#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- recursive = _tmp5_;
-#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = recursive;
-#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = self->priv->import_recursive;
-#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp7_);
-#line 518 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = import_dialog;
-#line 518 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = recursive;
-#line 518 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_file_chooser_set_extra_widget (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_file_chooser_get_type (), GtkFileChooser), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 520 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = import_dialog;
-#line 520 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_dialog_get_type (), GtkDialog));
-#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = response;
-#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp11_ == ((gint) GTK_RESPONSE_OK)) {
-#line 4639 "LibraryWindow.c"
- GtkFileChooserDialog* _tmp12_;
- GtkResponseType _tmp13_ = 0;
- GtkFileChooserDialog* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- GFile* _tmp17_;
- GFile* _tmp18_;
- gboolean _tmp19_;
- GtkResponseType copy_files_response = 0;
- GtkResponseType _tmp20_;
-#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = import_dialog;
-#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = import_dialog;
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = gtk_file_chooser_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = _tmp15_;
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = g_file_new_for_uri (_tmp16_);
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = _tmp17_;
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = app_dirs_is_in_import_dir (_tmp18_);
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp18_);
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (_tmp16_);
-#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp19_) {
-#line 527 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = GTK_RESPONSE_REJECT;
-#line 4674 "LibraryWindow.c"
- } else {
-#line 527 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = copy_files_dialog ();
-#line 4678 "LibraryWindow.c"
- }
-#line 525 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- copy_files_response = _tmp13_;
-#line 529 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = copy_files_response;
-#line 529 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp20_ != GTK_RESPONSE_CANCEL) {
-#line 4686 "LibraryWindow.c"
- GtkFileChooserDialog* _tmp21_;
- GSList* _tmp22_;
- GSList* _tmp23_;
- GtkResponseType _tmp24_;
- GtkCheckButton* _tmp25_;
- gboolean _tmp26_;
- gboolean _tmp27_;
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = import_dialog;
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = gtk_file_chooser_get_uris (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = _tmp22_;
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = copy_files_response;
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = recursive;
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp26_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = _tmp26_;
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_dispatch_import_jobs (self, _tmp23_, "folders", _tmp24_ == GTK_RESPONSE_ACCEPT, _tmp27_);
-#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- __g_slist_free__g_free0_0 (_tmp23_);
-#line 4712 "LibraryWindow.c"
- }
- }
-#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp28_ = import_dialog;
-#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp29_ = gtk_file_chooser_get_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_file_chooser_get_type (), GtkFileChooser));
-#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (self->priv->import_dir);
-#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->import_dir = _tmp29_;
-#line 536 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp30_ = recursive;
-#line 536 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp31_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton));
-#line 536 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp32_ = _tmp31_;
-#line 536 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->import_recursive = _tmp32_;
-#line 537 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp33_ = import_dialog;
-#line 537 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget));
-#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (recursive);
-#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (import_dialog);
-#line 4739 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_external_library_import (LibraryWindow* self)
-{
- GtkDialog* import_dialog = NULL;
- DataImportsUIDataImportsDialog* _tmp0_;
-#line 540 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = data_imports_ui_data_imports_dialog_get_or_create_instance ();
-#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- import_dialog = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_dialog_get_type (), GtkDialog);
-#line 543 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_dialog_run (import_dialog);
-#line 540 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (import_dialog);
-#line 4758 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_update_common_action_availability (AppWindow* base,
- Page* old_page,
- Page* new_page)
-{
- LibraryWindow * self;
- gboolean is_checkerboard = FALSE;
-#line 546 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 546 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page));
-#line 546 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page));
-#line 547 "/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), old_page, new_page);
-#line 549 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- is_checkerboard = G_TYPE_CHECK_INSTANCE_TYPE (new_page, TYPE_CHECKERBOARD_PAGE);
-#line 551 "/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 552 "/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 4783 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_update_common_actions (AppWindow* base,
- Page* page,
- gint selected_count,
- gint count)
-{
- LibraryWindow * self;
- CollectionPage* collection = NULL;
- Photo* start = NULL;
- gboolean can_fullscreen = FALSE;
- CollectionPage* _tmp0_ = NULL;
- Photo* _tmp1_ = NULL;
- gboolean _tmp2_;
-#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = library_window_get_fullscreen_photo (self, page, &_tmp0_, &_tmp1_, NULL);
-#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (collection);
-#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- collection = _tmp0_;
-#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (start);
-#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- start = _tmp1_;
-#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- can_fullscreen = _tmp2_;
-#line 563 "/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", library_window_can_empty_trash (self));
-#line 564 "/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 565 "/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", library_window_can_jump_to_event (self));
-#line 566 "/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 568 "/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), page, selected_count, count);
-#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (start);
-#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (collection);
-#line 4830 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_trashcan_contents_altered (LibraryWindow* self)
-{
-#line 571 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 572 "/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", library_window_can_empty_trash (self));
-#line 4841 "LibraryWindow.c"
-}
-
-
-static gboolean
-library_window_can_empty_trash (LibraryWindow* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- LibraryPhotoSourceCollection* _tmp1_;
-#line 575 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE);
-#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = library_photo_global;
-#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (media_source_collection_get_trashcan_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) > 0) {
-#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = TRUE;
-#line 4859 "LibraryWindow.c"
- } else {
- VideoSourceCollection* _tmp2_;
-#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = video_global;
-#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = media_source_collection_get_trashcan_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) > 0;
-#line 4866 "LibraryWindow.c"
- }
-#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp0_;
-#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 4872 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_empty_trash (LibraryWindow* self)
-{
- GeeArrayList* to_remove = NULL;
- GeeArrayList* _tmp0_;
- LibraryPhotoSourceCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- VideoSourceCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
- CommandManager* _tmp7_;
- CommandManager* _tmp8_;
-#line 579 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- to_remove = _tmp0_;
-#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = library_photo_global;
-#line 581 "/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 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gee_array_list_add_all (to_remove, _tmp3_);
-#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = video_global;
-#line 582 "/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 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = _tmp5_;
-#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gee_array_list_add_all (to_remove, _tmp6_);
-#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp6_);
-#line 584 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (to_remove, GEE_TYPE_COLLECTION, GeeCollection), _ ("Empty Trash"), _ ("Emptying Trash…"));
-#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = app_window_get_command_manager ();
-#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = _tmp7_;
-#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- command_manager_reset (_tmp8_);
-#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _command_manager_unref0 (_tmp8_);
-#line 579 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (to_remove);
-#line 4927 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_new_search (LibraryWindow* self)
-{
- SavedSearchDialog* _tmp0_;
- SavedSearchDialog* _tmp1_;
-#line 589 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = saved_search_dialog_new ();
-#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp0_);
-#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- saved_search_dialog_show (_tmp1_);
-#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 4948 "LibraryWindow.c"
-}
-
-
-static gboolean
-library_window_can_jump_to_event (LibraryWindow* self)
-{
- gboolean result = FALSE;
- ViewCollection* view = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
-#line 593 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE);
-#line 594 "/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 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = page_get_view (_tmp1_);
-#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view = _tmp3_;
-#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = view;
-#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection_get_selected_count (_tmp4_) == 1) {
-#line 4980 "LibraryWindow.c"
- DataSource* selected_source = NULL;
- ViewCollection* _tmp5_;
- DataSource* _tmp6_;
- DataSource* _tmp7_;
-#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = view;
-#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = view_collection_get_selected_source_at (_tmp5_, 0);
-#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- selected_source = _tmp6_;
-#line 597 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = selected_source;
-#line 597 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_EVENT)) {
-#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (selected_source);
-#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 5003 "LibraryWindow.c"
- } else {
- DataSource* _tmp8_;
-#line 599 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = selected_source;
-#line 599 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_MEDIA_SOURCE)) {
-#line 5010 "LibraryWindow.c"
- ViewCollection* _tmp9_;
- DataSource* _tmp10_;
- MediaSource* _tmp11_;
- Event* _tmp12_;
- Event* _tmp13_;
- gboolean _tmp14_;
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = view;
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = view_collection_get_selected_source_at (_tmp9_, 0);
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = media_source_get_event (_tmp11_);
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = _tmp12_;
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = _tmp13_ != NULL;
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp13_);
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp11_);
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp14_;
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (selected_source);
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 5041 "LibraryWindow.c"
- } else {
-#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (selected_source);
-#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 5051 "LibraryWindow.c"
- }
- }
-#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (selected_source);
-#line 5056 "LibraryWindow.c"
- } else {
-#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 5064 "LibraryWindow.c"
- }
-#line 593 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 5068 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_jump_to_event (LibraryWindow* self)
-{
- ViewCollection* view = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
- ViewCollection* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- MediaSource* media = NULL;
- ViewCollection* _tmp5_;
- DataSource* _tmp6_;
- MediaSource* _tmp7_;
- MediaSource* _tmp8_;
- MediaSource* _tmp9_;
- Event* _tmp10_;
- Event* _tmp11_;
- gboolean _tmp12_;
-#line 608 "/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"
- _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = page_get_view (_tmp1_);
-#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view = _tmp3_;
-#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = view;
-#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (view_collection_get_selected_count (_tmp4_) != 1) {
-#line 612 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 612 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 5112 "LibraryWindow.c"
- }
-#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = view;
-#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = view_collection_get_selected_source_at (_tmp5_, 0);
-#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp6_) : NULL;
-#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp7_ == NULL) {
-#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp6_);
-#line 5124 "LibraryWindow.c"
- }
-#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- media = _tmp7_;
-#line 615 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = media;
-#line 615 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp8_ == NULL) {
-#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (media);
-#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 5138 "LibraryWindow.c"
- }
-#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = media;
-#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = media_source_get_event (_tmp9_);
-#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = _tmp10_;
-#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = _tmp11_ != NULL;
-#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp11_);
-#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp12_) {
-#line 5152 "LibraryWindow.c"
- MediaSource* _tmp13_;
- Event* _tmp14_;
- Event* _tmp15_;
-#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = media;
-#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = media_source_get_event (_tmp13_);
-#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = _tmp14_;
-#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_event (self, _tmp15_);
-#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp15_);
-#line 5166 "LibraryWindow.c"
- }
-#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (media);
-#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 5172 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new5 (gboolean value)
-{
-#line 624 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 5181 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_find (LibraryWindow* self)
-{
- GAction* action = NULL;
- GAction* _tmp0_;
- GAction* _tmp1_;
- GVariant* _tmp2_;
- SearchFilterToolbar* _tmp3_;
-#line 622 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 623 "/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 623 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 623 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- action = _tmp1_;
-#line 624 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _variant_new5 (TRUE);
-#line 624 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (action, _tmp2_);
-#line 624 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp2_);
-#line 627 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->search_toolbar;
-#line 627 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- search_filter_toolbar_take_focus (_tmp3_);
-#line 622 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (action);
-#line 5213 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_media_altered (LibraryWindow* self)
-{
-#line 630 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 631 "/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", library_window_can_jump_to_event (self));
-#line 5224 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_clear_search (LibraryWindow* self)
-{
- gboolean _tmp0_;
-#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->is_search_toolbar_visible;
-#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp0_) {
-#line 5238 "LibraryWindow.c"
- SearchFilterActions* _tmp1_;
-#line 636 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->search_actions;
-#line 636 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- search_filter_actions_reset (_tmp1_);
-#line 5244 "LibraryWindow.c"
- }
-}
-
-
-gint
-library_window_get_events_sort (LibraryWindow* self)
-{
- gint result = 0;
- GSimpleAction* action = NULL;
- GAction* _tmp0_;
- GSimpleAction* _tmp1_;
- gint _tmp2_ = 0;
- GSimpleAction* _tmp3_;
-#line 639 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), 0);
-#line 640 "/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 640 "/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 640 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- action = _tmp1_;
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = action;
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp3_ != NULL) {
-#line 5270 "LibraryWindow.c"
- gint _tmp4_ = 0;
- GSimpleAction* _tmp5_;
- GVariant* _tmp6_;
- GVariant* _tmp7_;
- GVariant* _tmp8_;
- const gchar* _tmp9_;
- gboolean _tmp10_;
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = action;
-#line 642 "/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 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _tmp6_;
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = _tmp7_;
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = g_variant_get_string (_tmp8_, NULL);
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = g_strcmp0 (_tmp9_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0;
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp8_);
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp10_) {
-#line 643 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = 0;
-#line 5296 "LibraryWindow.c"
- } else {
-#line 643 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = 1;
-#line 5300 "LibraryWindow.c"
- }
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp4_;
-#line 5304 "LibraryWindow.c"
- } else {
-#line 644 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = 1;
-#line 5308 "LibraryWindow.c"
- }
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp2_;
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (action);
-#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 5316 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_events_sort_changed (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* value)
-{
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
-#line 647 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 647 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = g_variant_get_string (value, NULL);
-#line 649 "/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 (_tmp2_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0);
-#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 652 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_simple_action_set_state (action, value);
-#line 5344 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_preferences (LibraryWindow* self)
-{
-#line 655 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 656 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- preferences_dialog_show_preferences ();
-#line 5355 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_display_basic_properties (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- gboolean _tmp0_;
- ConfigFacade* _tmp8_;
- ConfigFacade* _tmp9_;
- gboolean _tmp10_;
-#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 660 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- display = g_variant_get_boolean (value);
-#line 662 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = display;
-#line 662 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp0_) {
-#line 5379 "LibraryWindow.c"
- BasicProperties* _tmp1_;
- Page* _tmp2_;
- Page* _tmp3_;
- GtkFrame* _tmp4_;
-#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->basic_properties;
-#line 663 "/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 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- properties_update_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PROPERTIES, Properties), _tmp3_);
-#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = self->priv->bottom_frame;
-#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 5398 "LibraryWindow.c"
- } else {
- GtkPaned* _tmp5_;
- GtkWidget* _tmp6_;
-#line 666 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = self->priv->sidebar_paned;
-#line 666 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = gtk_paned_get_child2 (_tmp5_);
-#line 666 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp6_ != NULL) {
-#line 5408 "LibraryWindow.c"
- GtkFrame* _tmp7_;
-#line 667 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = self->priv->bottom_frame;
-#line 667 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
-#line 5414 "LibraryWindow.c"
- }
- }
-#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = config_facade_get_instance ();
-#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = _tmp8_;
-#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = display;
-#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- configuration_facade_set_display_basic_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp10_);
-#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp9_);
-#line 673 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_simple_action_set_state (action, value);
-#line 5429 "LibraryWindow.c"
-}
-
-
-static gboolean
-_variant_get6 (GVariant* value)
-{
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_get_boolean (value);
-#line 5438 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new7 (gboolean value)
-{
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 5447 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_action_toggle (LibraryWindow* self,
- GAction* action,
- GVariant* value)
-{
- GVariant* new_state = NULL;
- GVariant* _tmp0_;
- GVariant* _tmp1_;
- gboolean _tmp2_;
- GVariant* _tmp3_;
- GVariant* _tmp4_;
-#line 676 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 676 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (G_IS_ACTION (action));
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = g_action_get_state (action);
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _variant_get6 (_tmp1_);
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _variant_new7 (!_tmp2_);
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp1_);
-#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- new_state = _tmp4_;
-#line 678 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (action, new_state);
-#line 676 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (new_state);
-#line 5484 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_action_radio (LibraryWindow* self,
- GAction* action,
- GVariant* value)
-{
-#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (G_IS_ACTION (action));
-#line 682 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (action, value);
-#line 5499 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_display_extended_properties (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean display = FALSE;
- gboolean _tmp0_;
-#line 685 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 685 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 686 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- display = g_variant_get_boolean (value);
-#line 688 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = display;
-#line 688 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp0_) {
-#line 5520 "LibraryWindow.c"
- ExtendedPropertiesWindow* _tmp1_;
- Page* _tmp2_;
- Page* _tmp3_;
- ExtendedPropertiesWindow* _tmp4_;
-#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->extended_properties;
-#line 689 "/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 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- extended_properties_window_update_properties (_tmp1_, _tmp3_);
-#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 690 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = self->priv->extended_properties;
-#line 690 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 5539 "LibraryWindow.c"
- } else {
- ExtendedPropertiesWindow* _tmp5_;
-#line 692 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = self->priv->extended_properties;
-#line 692 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget));
-#line 5546 "LibraryWindow.c"
- }
-#line 695 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_simple_action_set_state (action, value);
-#line 5550 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new8 (gboolean value)
-{
-#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 5559 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_display_searchbar (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* value)
-{
- gboolean is_shown = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- GVariant* _tmp2_;
-#line 698 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 698 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- is_shown = g_variant_get_boolean (value);
-#line 701 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 701 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 701 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- configuration_facade_set_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), is_shown);
-#line 701 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 702 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_show_search_bar (self, is_shown);
-#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _variant_new8 (is_shown);
-#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_simple_action_set_state (action, _tmp2_);
-#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp2_);
-#line 5594 "LibraryWindow.c"
-}
-
-
-void
-library_window_show_search_bar (LibraryWindow* self,
- gboolean display)
-{
- Page* _tmp0_;
- Page* _tmp1_;
- gboolean _tmp2_;
- Page* _tmp3_;
- CheckerboardPage* _tmp4_;
- CheckerboardPage* _tmp5_;
-#line 706 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 707 "/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 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_CHECKERBOARD_PAGE);
-#line 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_) {
-#line 708 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 5622 "LibraryWindow.c"
- }
-#line 710 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->is_search_toolbar_visible = display;
-#line 711 "/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 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp3_) : NULL;
-#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp4_ == NULL) {
-#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 5634 "LibraryWindow.c"
- }
-#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_toggle_search_bar (self, library_window_should_show_search_bar (self), _tmp5_);
-#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 712 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!display) {
-#line 5644 "LibraryWindow.c"
- SearchFilterActions* _tmp6_;
-#line 713 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = self->priv->search_actions;
-#line 713 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- search_filter_actions_reset (_tmp6_);
-#line 5650 "LibraryWindow.c"
- }
-}
-
-
-static void
-library_window_on_display_sidebar (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* variant)
-{
-#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 717 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_set_sidebar_visible (self, g_variant_get_boolean (variant));
-#line 719 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_simple_action_set_state (action, variant);
-#line 5668 "LibraryWindow.c"
-}
-
-
-static void
-library_window_set_sidebar_visible (LibraryWindow* self,
- gboolean visible)
-{
- GtkPaned* _tmp0_;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
-#line 722 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 723 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->sidebar_paned;
-#line 723 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), visible);
-#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- configuration_facade_set_display_sidebar (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), visible);
-#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp2_);
-#line 5693 "LibraryWindow.c"
-}
-
-
-static gboolean
-library_window_is_sidebar_visible (LibraryWindow* self)
-{
- gboolean result = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
-#line 727 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE);
-#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 728 "/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 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp2_;
-#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 5718 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_display_toolbar (LibraryWindow* self,
- GSimpleAction* action,
- GVariant* variant)
-{
-#line 731 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 731 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (G_IS_SIMPLE_ACTION (action));
-#line 732 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_set_toolbar_visible (self, g_variant_get_boolean (variant));
-#line 734 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_simple_action_set_state (action, variant);
-#line 5735 "LibraryWindow.c"
-}
-
-
-static void
-library_window_set_toolbar_visible (LibraryWindow* self,
- gboolean visible)
-{
- Page* _tmp0_;
- Page* _tmp1_;
- gboolean _tmp2_;
- GtkToolbar* toolbar = NULL;
- Page* _tmp3_;
- Page* _tmp4_;
- GtkToolbar* _tmp5_;
- GtkToolbar* _tmp6_;
- GtkToolbar* _tmp7_;
- ConfigFacade* _tmp9_;
- ConfigFacade* _tmp10_;
-#line 737 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 738 "/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 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_ == NULL;
-#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_) {
-#line 739 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 5768 "LibraryWindow.c"
- }
-#line 742 "/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 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = page_get_toolbar (_tmp4_);
-#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = _tmp5_;
-#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- toolbar = _tmp6_;
-#line 743 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = toolbar;
-#line 743 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp7_ != NULL) {
-#line 5786 "LibraryWindow.c"
- GtkRevealer* _tmp8_;
-#line 744 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = self->priv->toolbar_revealer;
-#line 744 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_revealer_set_reveal_child (_tmp8_, visible);
-#line 5792 "LibraryWindow.c"
- }
-#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = config_facade_get_instance ();
-#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = _tmp9_;
-#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- configuration_facade_set_display_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), visible);
-#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp10_);
-#line 737 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (toolbar);
-#line 5804 "LibraryWindow.c"
-}
-
-
-static gboolean
-library_window_is_toolbar_visible (LibraryWindow* self)
-{
- gboolean result = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_;
-#line 749 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE);
-#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 750 "/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 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp2_;
-#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 5829 "LibraryWindow.c"
-}
-
-
-static void
-library_window_show_extended_properties (LibraryWindow* self)
-{
-#line 753 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 754 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_sync_extended_properties (self, TRUE);
-#line 5840 "LibraryWindow.c"
-}
-
-
-static void
-library_window_hide_extended_properties (LibraryWindow* self)
-{
-#line 757 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 758 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_sync_extended_properties (self, FALSE);
-#line 5851 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new9 (gboolean value)
-{
-#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 5860 "LibraryWindow.c"
-}
-
-
-static void
-library_window_sync_extended_properties (LibraryWindow* self,
- gboolean show)
-{
- GAction* action = NULL;
- GAction* _tmp0_;
- GAction* _tmp1_;
- GVariant* _tmp2_;
- ConfigFacade* _tmp3_;
- ConfigFacade* _tmp4_;
-#line 761 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 762 "/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 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- action = _tmp1_;
-#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _variant_new9 (show);
-#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (action, _tmp2_);
-#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp2_);
-#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = config_facade_get_instance ();
-#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- configuration_facade_set_display_extended_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), show);
-#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 761 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (action);
-#line 5898 "LibraryWindow.c"
-}
-
-
-void
-library_window_enqueue_batch_import (LibraryWindow* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel)
-{
- LibraryBranch* _tmp0_;
- LibraryImportQueueSidebarEntry* _tmp1_;
- LibraryImportQueueSidebarEntry* _tmp2_;
-#line 769 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 769 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_BATCH_IMPORT (batch_import));
-#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->library_branch;
-#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = library_branch_get_import_queue_entry (_tmp0_);
-#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_import_queue_sidebar_entry_enqueue_and_schedule (_tmp2_, batch_import, allow_user_cancel);
-#line 5922 "LibraryWindow.c"
-}
-
-
-static void
-library_window_import_reporter (LibraryWindow* self,
- ImportManifest* manifest)
-{
-#line 773 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 773 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_IMPORT_MANIFEST (manifest));
-#line 774 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- import_ui_report_manifest (manifest, TRUE, NULL);
-#line 5936 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_import_reporter_batch_import_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self)
-{
-#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_import_reporter ((LibraryWindow*) self, manifest);
-#line 5947 "LibraryWindow.c"
-}
-
-
-static void
-library_window_dispatch_import_jobs (LibraryWindow* self,
- GSList* uris,
- const gchar* job_name,
- gboolean copy_to_library,
- gboolean recurse)
-{
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- gboolean _tmp6_;
- GeeArrayList* jobs = NULL;
- GeeArrayList* _tmp14_;
- GeeArrayList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
-#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (job_name != NULL);
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = app_dirs_get_import_dir ();
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = g_file_get_path (_tmp2_);
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = g_get_home_dir ();
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = g_strcmp0 (_tmp4_, _tmp5_) == 0;
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (_tmp4_);
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp2_);
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp6_) {
-#line 5992 "LibraryWindow.c"
- gboolean _tmp7_;
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = self->priv->notify_library_is_home_dir;
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = _tmp7_;
-#line 5998 "LibraryWindow.c"
- } else {
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = FALSE;
-#line 6002 "LibraryWindow.c"
- }
-#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp0_) {
-#line 6006 "LibraryWindow.c"
- GtkResponseType response = 0;
- gchar* _tmp8_;
- gchar* _tmp9_;
- AppWindow* _tmp10_;
- AppWindow* _tmp11_;
- GtkResponseType _tmp12_;
- GtkResponseType _tmp13_;
-#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = g_strdup_printf (_ ("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 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = _tmp8_;
-#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = app_window_get_instance ();
-#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = _tmp10_;
-#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = app_window_affirm_cancel_question (_tmp9_, _ ("_Import"), _ ("Library Location"), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_window_get_type (), GtkWindow));
-#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp11_);
-#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (_tmp9_);
-#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- response = _tmp12_;
-#line 785 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = response;
-#line 785 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp13_ == GTK_RESPONSE_CANCEL) {
-#line 786 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 6036 "LibraryWindow.c"
- }
-#line 788 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->notify_library_is_home_dir = FALSE;
-#line 6040 "LibraryWindow.c"
- }
-#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = gee_array_list_new (TYPE_FILE_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
-#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- jobs = _tmp14_;
-#line 6046 "LibraryWindow.c"
- {
- GSList* uri_collection = NULL;
- GSList* uri_it = NULL;
-#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri_collection = uris;
-#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- for (uri_it = uri_collection; uri_it != NULL; uri_it = uri_it->next) {
-#line 6054 "LibraryWindow.c"
- gchar* _tmp15_;
- gchar* uri = NULL;
-#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = g_strdup ((const gchar*) uri_it->data);
-#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri = _tmp15_;
-#line 6061 "LibraryWindow.c"
- {
- GFile* file_or_dir = NULL;
- const gchar* _tmp16_;
- GFile* _tmp17_;
- GFile* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gboolean _tmp21_;
- GeeArrayList* _tmp22_;
- GFile* _tmp23_;
- FileImportJob* _tmp24_;
- FileImportJob* _tmp25_;
-#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = uri;
-#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = g_file_new_for_uri (_tmp16_);
-#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- file_or_dir = _tmp17_;
-#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = file_or_dir;
-#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = g_file_get_path (_tmp18_);
-#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = _tmp19_;
-#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = _tmp20_ == NULL;
-#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (_tmp20_);
-#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp21_) {
-#line 796 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- app_window_error_message (_ ("Photos cannot be imported from this directory."), NULL);
-#line 798 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (file_or_dir);
-#line 798 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (uri);
-#line 798 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- continue;
-#line 6100 "LibraryWindow.c"
- }
-#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = jobs;
-#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = file_or_dir;
-#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = file_import_job_new (_tmp23_, copy_to_library, recurse);
-#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = _tmp24_;
-#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp25_);
-#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _batch_import_job_unref0 (_tmp25_);
-#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (file_or_dir);
-#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (uri);
-#line 6118 "LibraryWindow.c"
- }
- }
- }
-#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp26_ = jobs;
-#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp28_ = _tmp27_;
-#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp28_ > 0) {
-#line 6130 "LibraryWindow.c"
- BatchImport* batch_import = NULL;
- GeeArrayList* _tmp29_;
- BatchImport* _tmp30_;
- BatchImport* _tmp31_;
-#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp29_ = jobs;
-#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp30_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable), job_name, _library_window_import_reporter_batch_import_import_reporter, self, NULL, NULL, NULL, NULL, NULL);
-#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- batch_import = _tmp30_;
-#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp31_ = batch_import;
-#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_enqueue_batch_import (self, _tmp31_, TRUE);
-#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_import_queue_page (self);
-#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (batch_import);
-#line 6149 "LibraryWindow.c"
- }
-#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (jobs);
-#line 6153 "LibraryWindow.c"
-}
-
-
-static GdkDragAction
-library_window_get_drag_action (LibraryWindow* self)
-{
- GdkDragAction result = 0;
- GdkModifierType mask = 0;
- GdkWindow* _tmp0_;
- GdkDisplay* _tmp1_;
- GdkDeviceManager* _tmp2_;
- GdkDevice* _tmp3_;
- GdkModifierType _tmp4_ = 0;
- gboolean ctrl = FALSE;
- GdkModifierType _tmp5_;
- gboolean alt = FALSE;
- GdkModifierType _tmp6_;
- gboolean shift = FALSE;
- GdkModifierType _tmp7_;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_;
-#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), 0);
-#line 814 "/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 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = gdk_display_get_default ();
-#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = gdk_display_get_device_manager (_tmp1_);
-#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = gdk_device_manager_get_client_pointer (_tmp2_);
-#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gdk_window_get_device_position (_tmp0_, _tmp3_, NULL, NULL, &_tmp4_);
-#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- mask = _tmp4_;
-#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = mask;
-#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ctrl = (_tmp5_ & GDK_CONTROL_MASK) != 0;
-#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = mask;
-#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- alt = (_tmp6_ & GDK_MOD1_MASK) != 0;
-#line 819 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = mask;
-#line 819 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- shift = (_tmp7_ & GDK_SHIFT_MASK) != 0;
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = ctrl;
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp10_) {
-#line 6206 "LibraryWindow.c"
- gboolean _tmp11_;
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = alt;
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = !_tmp11_;
-#line 6212 "LibraryWindow.c"
- } else {
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = FALSE;
-#line 6216 "LibraryWindow.c"
- }
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp9_) {
-#line 6220 "LibraryWindow.c"
- gboolean _tmp12_;
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = shift;
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = !_tmp12_;
-#line 6226 "LibraryWindow.c"
- } else {
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = FALSE;
-#line 6230 "LibraryWindow.c"
- }
-#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp8_) {
-#line 822 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = GDK_ACTION_COPY;
-#line 822 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 6238 "LibraryWindow.c"
- } else {
- gboolean _tmp13_ = FALSE;
- gboolean _tmp14_ = FALSE;
- gboolean _tmp15_;
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = ctrl;
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!_tmp15_) {
-#line 6247 "LibraryWindow.c"
- gboolean _tmp16_;
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = alt;
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = _tmp16_;
-#line 6253 "LibraryWindow.c"
- } else {
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = FALSE;
-#line 6257 "LibraryWindow.c"
- }
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp14_) {
-#line 6261 "LibraryWindow.c"
- gboolean _tmp17_;
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = shift;
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = !_tmp17_;
-#line 6267 "LibraryWindow.c"
- } else {
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = FALSE;
-#line 6271 "LibraryWindow.c"
- }
-#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp13_) {
-#line 824 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = GDK_ACTION_ASK;
-#line 824 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 6279 "LibraryWindow.c"
- } else {
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_ = FALSE;
- gboolean _tmp20_;
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = ctrl;
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp20_) {
-#line 6288 "LibraryWindow.c"
- gboolean _tmp21_;
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = alt;
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = !_tmp21_;
-#line 6294 "LibraryWindow.c"
- } else {
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = FALSE;
-#line 6298 "LibraryWindow.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp19_) {
-#line 6302 "LibraryWindow.c"
- gboolean _tmp22_;
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = shift;
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = _tmp22_;
-#line 6308 "LibraryWindow.c"
- } else {
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = FALSE;
-#line 6312 "LibraryWindow.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp18_) {
-#line 826 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = GDK_ACTION_LINK;
-#line 826 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 6320 "LibraryWindow.c"
- } else {
-#line 828 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = GDK_ACTION_DEFAULT;
-#line 828 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 6326 "LibraryWindow.c"
- }
- }
- }
-}
-
-
-static gboolean
-library_window_real_drag_motion (GtkWidget* base,
- GdkDragContext* context,
- gint x,
- gint y,
- guint time)
-{
- LibraryWindow * self;
- gboolean result = FALSE;
- GdkAtom target = 0U;
- GtkTargetList* _tmp0_;
- GdkAtom _tmp1_;
- GdkAtom _tmp2_;
- GtkWidget* _tmp3_;
- GdkDragAction drag_action = 0;
- GdkDragAction _tmp4_;
- GdkDragAction _tmp5_;
-#line 831 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 831 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE);
-#line 832 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = gtk_drag_dest_get_target_list (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 832 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- target = gtk_drag_dest_find_target (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), context, _tmp0_);
-#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = target;
-#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = GDK_NONE;
-#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp1_ == _tmp2_) {
-#line 834 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:834: drag target is GDK_NONE");
-#line 835 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gdk_drag_status (context, 0, (guint32) time);
-#line 837 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 837 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 6372 "LibraryWindow.c"
- }
-#line 841 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = gtk_drag_get_source_widget (context);
-#line 841 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp3_ != NULL) {
-#line 842 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gdk_drag_status (context, GDK_ACTION_PRIVATE, (guint32) time);
-#line 844 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 844 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 6384 "LibraryWindow.c"
- }
-#line 848 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- drag_action = library_window_get_drag_action (self);
-#line 850 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = drag_action;
-#line 850 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp4_ == GDK_ACTION_DEFAULT) {
-#line 851 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- drag_action = GDK_ACTION_ASK;
-#line 6394 "LibraryWindow.c"
- }
-#line 853 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = drag_action;
-#line 853 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gdk_drag_status (context, _tmp5_, (guint32) time);
-#line 855 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 855 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 6404 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_drag_data_received (GtkWidget* base,
- GdkDragContext* context,
- gint x,
- gint y,
- GtkSelectionData* selection_data,
- guint info,
- guint time)
-{
- LibraryWindow * self;
- guint8* _tmp0_;
- GtkWidget* _tmp1_;
-#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (selection_data != NULL);
-#line 860 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = gtk_selection_data_get_data (selection_data);
-#line 860 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (-1 < 0) {
-#line 861 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:861: failed to retrieve SelectionData");
-#line 6432 "LibraryWindow.c"
- }
-#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = gtk_drag_get_source_widget (context);
-#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp1_ == NULL) {
-#line 866 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_external_drop_handler (self, context, NULL, selection_data, info, time);
-#line 6440 "LibraryWindow.c"
- } else {
-#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_drag_finish (context, FALSE, FALSE, (guint32) time);
-#line 6444 "LibraryWindow.c"
- }
-}
-
-
-static void
-library_window_external_drop_handler (LibraryWindow* self,
- GdkDragContext* context,
- SidebarEntry* entry,
- GtkSelectionData* data,
- guint info,
- guint time)
-{
- gchar** uris_array = NULL;
- gchar** _tmp0_;
- gchar** _tmp1_;
- gint uris_array_length1;
- gint _uris_array_size_;
- GSList* uris = NULL;
- gchar** _tmp2_;
- gint _tmp2__length1;
- GdkDragAction selected_action = 0;
- GdkDragAction _tmp6_;
- GSList* _tmp14_;
- GdkDragAction _tmp15_;
-#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail ((entry == NULL) || SIDEBAR_IS_ENTRY (entry));
-#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (data != NULL);
-#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_ = gtk_selection_data_get_uris (data);
-#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uris_array = _tmp1_;
-#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uris_array_length1 = _vala_array_length (_tmp0_);
-#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _uris_array_size_ = uris_array_length1;
-#line 875 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uris = NULL;
-#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = uris_array;
-#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2__length1 = uris_array_length1;
-#line 6491 "LibraryWindow.c"
- {
- gchar** uri_collection = NULL;
- gint uri_collection_length1 = 0;
- gint _uri_collection_size_ = 0;
- gint uri_it = 0;
-#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri_collection = _tmp2_;
-#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri_collection_length1 = _tmp2__length1;
-#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- for (uri_it = 0; uri_it < _tmp2__length1; uri_it = uri_it + 1) {
-#line 6503 "LibraryWindow.c"
- gchar* _tmp3_;
- gchar* uri = NULL;
-#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = g_strdup (uri_collection[uri_it]);
-#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri = _tmp3_;
-#line 6510 "LibraryWindow.c"
- {
- const gchar* _tmp4_;
- gchar* _tmp5_;
-#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = uri;
-#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uris = g_slist_append (uris, _tmp5_);
-#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (uri);
-#line 6522 "LibraryWindow.c"
- }
- }
- }
-#line 879 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- selected_action = gdk_drag_context_get_selected_action (context);
-#line 880 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = selected_action;
-#line 880 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp6_ == GDK_ACTION_ASK) {
-#line 6532 "LibraryWindow.c"
- GtkResponseType _result_ = 0;
- GSList* _tmp7_;
- GtkResponseType _tmp13_;
-#line 882 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _result_ = GTK_RESPONSE_REJECT;
-#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = uris;
-#line 6540 "LibraryWindow.c"
- {
- GSList* uri_collection = NULL;
- GSList* uri_it = NULL;
-#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri_collection = _tmp7_;
-#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- for (uri_it = uri_collection; uri_it != NULL; uri_it = uri_it->next) {
-#line 6548 "LibraryWindow.c"
- gchar* _tmp8_;
- gchar* uri = NULL;
-#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = g_strdup ((const gchar*) uri_it->data);
-#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri = _tmp8_;
-#line 6555 "LibraryWindow.c"
- {
- const gchar* _tmp9_;
- GFile* _tmp10_;
- GFile* _tmp11_;
- gboolean _tmp12_;
-#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = uri;
-#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = g_file_new_for_uri (_tmp9_);
-#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = _tmp10_;
-#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = !app_dirs_is_in_import_dir (_tmp11_);
-#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp11_);
-#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp12_) {
-#line 885 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _result_ = copy_files_dialog ();
-#line 887 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (uri);
-#line 887 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- break;
-#line 6579 "LibraryWindow.c"
- }
-#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (uri);
-#line 6583 "LibraryWindow.c"
- }
- }
- }
-#line 891 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = _result_;
-#line 891 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- switch (_tmp13_) {
-#line 891 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- case GTK_RESPONSE_ACCEPT:
-#line 6593 "LibraryWindow.c"
- {
-#line 893 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- selected_action = GDK_ACTION_COPY;
-#line 894 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- break;
-#line 6599 "LibraryWindow.c"
- }
-#line 891 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- case GTK_RESPONSE_REJECT:
-#line 6603 "LibraryWindow.c"
- {
-#line 897 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- selected_action = GDK_ACTION_LINK;
-#line 898 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- break;
-#line 6609 "LibraryWindow.c"
- }
- default:
- {
-#line 902 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_drag_finish (context, FALSE, FALSE, (guint32) time);
-#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- __g_slist_free__g_free0_0 (uris);
-#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uris_array = (_vala_array_free (uris_array, uris_array_length1, (GDestroyNotify) g_free), NULL);
-#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 6621 "LibraryWindow.c"
- }
- }
- }
-#line 908 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = uris;
-#line 908 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = selected_action;
-#line 908 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_dispatch_import_jobs (self, _tmp14_, "drag-and-drop", _tmp15_ == GDK_ACTION_COPY, TRUE);
-#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_drag_finish (context, TRUE, FALSE, (guint32) time);
-#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- __g_slist_free__g_free0_0 (uris);
-#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uris_array = (_vala_array_free (uris_array, uris_array_length1, (GDestroyNotify) g_free), NULL);
-#line 6637 "LibraryWindow.c"
-}
-
-
-void
-library_window_switch_to_library_page (LibraryWindow* self)
-{
- LibraryBranch* _tmp0_;
- LibraryPhotosEntry* _tmp1_;
- LibraryPhotosEntry* _tmp2_;
- Page* _tmp3_;
- Page* _tmp4_;
-#line 913 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->library_branch;
-#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = library_branch_get_photos_entry (_tmp0_);
-#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 914 "/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 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp4_);
-#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 6665 "LibraryWindow.c"
-}
-
-
-void
-library_window_switch_to_event (LibraryWindow* self,
- Event* event)
-{
- EventsEventEntry* entry = NULL;
- EventsBranch* _tmp0_;
- EventsEventEntry* _tmp1_;
- EventsEventEntry* _tmp2_;
-#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_EVENT (event));
-#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->events_branch;
-#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = events_branch_get_entry_for_event (_tmp0_, event);
-#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = _tmp1_;
-#line 919 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = entry;
-#line 919 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_ != NULL) {
-#line 6691 "LibraryWindow.c"
- EventsEventEntry* _tmp3_;
- Page* _tmp4_;
- Page* _tmp5_;
-#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = entry;
-#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp5_);
-#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 6705 "LibraryWindow.c"
- }
-#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 6709 "LibraryWindow.c"
-}
-
-
-void
-library_window_switch_to_tag (LibraryWindow* self,
- Tag* tag)
-{
- TagsSidebarEntry* entry = NULL;
- TagsBranch* _tmp0_;
- TagsSidebarEntry* _tmp1_;
- TagsSidebarEntry* _tmp2_;
-#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_TAG (tag));
-#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->tags_branch;
-#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = tags_branch_get_entry_for_tag (_tmp0_, tag);
-#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = _tmp1_;
-#line 925 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = entry;
-#line 925 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_ != NULL) {
-#line 6735 "LibraryWindow.c"
- TagsSidebarEntry* _tmp3_;
- Page* _tmp4_;
- Page* _tmp5_;
-#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = entry;
-#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp5_);
-#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 6749 "LibraryWindow.c"
- }
-#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 6753 "LibraryWindow.c"
-}
-
-
-void
-library_window_switch_to_saved_search (LibraryWindow* self,
- SavedSearch* search)
-{
- SearchesSidebarEntry* entry = NULL;
- SearchesBranch* _tmp0_;
- SearchesSidebarEntry* _tmp1_;
- SearchesSidebarEntry* _tmp2_;
-#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->saved_search_branch;
-#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = searches_branch_get_entry_for_saved_search (_tmp0_, search);
-#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = _tmp1_;
-#line 931 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = entry;
-#line 931 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_ != NULL) {
-#line 6779 "LibraryWindow.c"
- SearchesSidebarEntry* _tmp3_;
- Page* _tmp4_;
- Page* _tmp5_;
-#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = entry;
-#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp5_);
-#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 6793 "LibraryWindow.c"
- }
-#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 6797 "LibraryWindow.c"
-}
-
-
-void
-library_window_switch_to_photo_page (LibraryWindow* self,
- CollectionPage* controller,
- Photo* current)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- DataView* _tmp2_;
- DataView* _tmp3_;
- LibraryPhotoPage* _tmp4_;
- LibraryPhotoPage* _tmp7_;
- LibraryPhotoPage* _tmp8_;
-#line 935 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 935 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_COLLECTION_PAGE (controller));
-#line 935 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PHOTO (current));
-#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (controller, TYPE_PAGE, Page));
-#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = view_collection_get_view_for_source (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (current, TYPE_DATA_SOURCE, DataSource));
-#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (_tmp3_ != NULL, "controller.get_view().get_view_for_source(current) != null");
-#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp3_);
-#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp1_);
-#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = self->priv->photo_page;
-#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp4_ == NULL) {
-#line 6837 "LibraryWindow.c"
- LibraryPhotoPage* _tmp5_;
- LibraryPhotoPage* _tmp6_;
-#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = library_photo_page_new ();
-#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp5_);
-#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->photo_page);
-#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->photo_page = _tmp5_;
-#line 939 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = self->priv->photo_page;
-#line 939 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_add_to_stack (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE, Page));
-#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- spin_event_loop ();
-#line 6854 "LibraryWindow.c"
- }
-#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = self->priv->photo_page;
-#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_photo_page_display_for_collection (_tmp7_, controller, current, NULL);
-#line 947 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = self->priv->photo_page;
-#line 947 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE, Page));
-#line 6864 "LibraryWindow.c"
-}
-
-
-void
-library_window_switch_to_import_queue_page (LibraryWindow* self)
-{
- LibraryBranch* _tmp0_;
- LibraryImportQueueSidebarEntry* _tmp1_;
- LibraryImportQueueSidebarEntry* _tmp2_;
- Page* _tmp3_;
- Page* _tmp4_;
-#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->library_branch;
-#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = library_branch_get_import_queue_entry (_tmp0_);
-#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 951 "/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 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp4_);
-#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 6892 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_camera_added (LibraryWindow* self,
- DiscoveredCamera* camera)
-{
- CameraSidebarEntry* entry = NULL;
- CameraBranch* _tmp0_;
- CameraSidebarEntry* _tmp1_;
- CameraSidebarEntry* _tmp2_;
- ImportPage* page = NULL;
- CameraSidebarEntry* _tmp3_;
- Page* _tmp4_;
- GFile* uri_file = NULL;
- const gchar* _tmp5_;
- GFile* _tmp6_;
- GMount* mount = NULL;
- gboolean _tmp11_ = FALSE;
- GMount* _tmp12_;
- GError * _inner_error_ = NULL;
-#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_DISCOVERED_CAMERA (camera));
-#line 955 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->camera_branch;
-#line 955 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = camera_branch_get_entry_for_camera (_tmp0_, camera);
-#line 955 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = _tmp1_;
-#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = entry;
-#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_ == NULL) {
-#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 6932 "LibraryWindow.c"
- }
-#line 959 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = entry;
-#line 959 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 959 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- page = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_IMPORT_PAGE, ImportPage);
-#line 960 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = camera->uri;
-#line 960 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = g_file_new_for_uri (_tmp5_);
-#line 960 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri_file = _tmp6_;
-#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- mount = NULL;
-#line 6948 "LibraryWindow.c"
- {
- GMount* _tmp7_ = NULL;
- GFile* _tmp8_;
- GMount* _tmp9_;
- GMount* _tmp10_;
-#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = uri_file;
-#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = g_file_find_enclosing_mount (_tmp8_, NULL, &_inner_error_);
-#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _tmp9_;
-#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6962 "LibraryWindow.c"
- goto __catch46_g_error;
- }
-#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = _tmp7_;
-#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = NULL;
-#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (mount);
-#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- mount = _tmp10_;
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp7_);
-#line 6975 "LibraryWindow.c"
- }
- goto __finally46;
- __catch46_g_error:
- {
- GError* err = NULL;
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- err = _inner_error_;
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _inner_error_ = NULL;
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_error_free0 (err);
-#line 6987 "LibraryWindow.c"
- }
- __finally46:
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (mount);
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (uri_file);
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (page);
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 964 "/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 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_clear_error (&_inner_error_);
-#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 7006 "LibraryWindow.c"
- }
-#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = mount;
-#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp12_ != NULL) {
-#line 7012 "LibraryWindow.c"
- const gchar* _tmp13_;
-#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = camera->uri;
-#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = !g_str_has_prefix (_tmp13_, "file://");
-#line 7018 "LibraryWindow.c"
- } else {
-#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = FALSE;
-#line 7022 "LibraryWindow.c"
- }
-#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp11_) {
-#line 7026 "LibraryWindow.c"
- ImportPage* _tmp14_;
- GMount* _tmp15_;
-#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = page;
-#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = mount;
-#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (import_page_unmount_camera (_tmp14_, _tmp15_)) {
-#line 7035 "LibraryWindow.c"
- ImportPage* _tmp16_;
-#line 973 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = page;
-#line 973 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE, Page));
-#line 7041 "LibraryWindow.c"
- } else {
-#line 975 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- app_window_error_message ("Unable to unmount the camera at this time.", NULL);
-#line 7045 "LibraryWindow.c"
- }
- } else {
- ImportPage* _tmp17_;
-#line 977 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = page;
-#line 977 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PAGE, Page));
-#line 7053 "LibraryWindow.c"
- }
-#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (mount);
-#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (uri_file);
-#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (page);
-#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 7063 "LibraryWindow.c"
-}
-
-
-void
-library_window_add_to_stack (LibraryWindow* self,
- Page* page)
-{
- GtkStack* _tmp0_;
- GtkStack* _tmp1_;
-#line 982 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 982 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 984 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget));
-#line 986 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->stack;
-#line 986 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget));
-#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->stack;
-#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 7087 "LibraryWindow.c"
-}
-
-
-static void
-library_window_remove_from_stack (LibraryWindow* self,
- Page* page)
-{
- GtkStack* _tmp0_;
- GtkStack* _tmp1_;
-#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->stack;
-#line 992 "/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 (page, gtk_widget_get_type (), GtkWidget));
-#line 995 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->stack;
-#line 995 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 7109 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new10 (gboolean value)
-{
-#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 7118 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new11 (gboolean value)
-{
-#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 7127 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new12 (gboolean value)
-{
-#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_boolean (value));
-#line 7136 "LibraryWindow.c"
-}
-
-
-static GVariant*
-_variant_new13 (const gchar* value)
-{
-#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return g_variant_ref_sink (g_variant_new_string (value));
-#line 7145 "LibraryWindow.c"
-}
-
-
-static void
-library_window_load_configuration (LibraryWindow* self)
-{
- GAction* basic_display_action = NULL;
- GAction* _tmp0_;
- GAction* _tmp1_;
- GAction* _tmp2_;
- GAction* _tmp3_;
- ConfigFacade* _tmp4_;
- ConfigFacade* _tmp5_;
- GVariant* _tmp6_;
- GAction* extended_display_action = NULL;
- GAction* _tmp7_;
- GAction* _tmp8_;
- GAction* _tmp9_;
- GAction* _tmp10_;
- ConfigFacade* _tmp11_;
- ConfigFacade* _tmp12_;
- GVariant* _tmp13_;
- GAction* search_bar_display_action = NULL;
- GAction* _tmp14_;
- GAction* _tmp15_;
- GAction* _tmp16_;
- GAction* _tmp17_;
- ConfigFacade* _tmp18_;
- ConfigFacade* _tmp19_;
- GVariant* _tmp20_;
- GAction* sort_events_action = NULL;
- GAction* _tmp21_;
- GAction* _tmp22_;
- GAction* _tmp23_;
- const gchar* _tmp24_ = NULL;
- ConfigFacade* _tmp25_;
- ConfigFacade* _tmp26_;
- gboolean _tmp27_;
- gchar* event_sort_val = NULL;
- gchar* _tmp28_;
- GAction* _tmp29_;
- GVariant* _tmp30_;
-#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1000 "/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 1000 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 1000 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- basic_display_action = _tmp1_;
-#line 1001 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = basic_display_action;
-#line 1001 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (_tmp2_ != NULL, "basic_display_action != null");
-#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = basic_display_action;
-#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = config_facade_get_instance ();
-#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = _variant_new10 (configuration_facade_get_display_basic_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (_tmp3_, _tmp6_);
-#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp6_);
-#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayExtendedProperties");
-#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- extended_display_action = _tmp8_;
-#line 1005 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = extended_display_action;
-#line 1005 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (_tmp9_ != NULL, "extended_display_action != null");
-#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = extended_display_action;
-#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = config_facade_get_instance ();
-#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = _tmp11_;
-#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = _variant_new11 (configuration_facade_get_display_extended_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (_tmp10_, _tmp13_);
-#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp13_);
-#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp12_);
-#line 1008 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar");
-#line 1008 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = _g_object_ref0 (_tmp14_);
-#line 1008 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- search_bar_display_action = _tmp15_;
-#line 1009 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = search_bar_display_action;
-#line 1009 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (_tmp16_ != NULL, "search_bar_display_action != null");
-#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = search_bar_display_action;
-#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = config_facade_get_instance ();
-#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = _tmp18_;
-#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = _variant_new12 (configuration_facade_get_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (_tmp17_, _tmp20_);
-#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp20_);
-#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp19_);
-#line 1012 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonSortEvents");
-#line 1012 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = _g_object_ref0 (_tmp21_);
-#line 1012 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sort_events_action = _tmp22_;
-#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = sort_events_action;
-#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (_tmp23_ != NULL, "sort_events_action != null");
-#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = config_facade_get_instance ();
-#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp26_ = _tmp25_;
-#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp26_);
-#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp27_) {
-#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING;
-#line 7284 "LibraryWindow.c"
- } else {
-#line 1019 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = LIBRARY_WINDOW_SORT_EVENTS_ORDER_DESCENDING;
-#line 7288 "LibraryWindow.c"
- }
-#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp28_ = g_strdup (_tmp24_);
-#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- event_sort_val = _tmp28_;
-#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp29_ = sort_events_action;
-#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp30_ = _variant_new13 (event_sort_val);
-#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_action_change_state (_tmp29_, _tmp30_);
-#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_variant_unref0 (_tmp30_);
-#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (event_sort_val);
-#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (sort_events_action);
-#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (search_bar_display_action);
-#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (extended_display_action);
-#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (basic_display_action);
-#line 7312 "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 1036 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 7323 "LibraryWindow.c"
-}
-
-
-static void
-library_window_start_pulse_background_progress_bar (LibraryWindow* self,
- const gchar* label,
- gint priority)
-{
- gint _tmp0_;
- GtkProgressBar* _tmp1_;
- GtkProgressBar* _tmp2_;
-#line 1024 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1024 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (label != NULL);
-#line 1025 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->current_progress_priority;
-#line 1025 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (priority < _tmp0_) {
-#line 1026 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 7345 "LibraryWindow.c"
- }
-#line 1028 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_stop_pulse_background_progress_bar (self, priority, FALSE);
-#line 1030 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->current_progress_priority = priority;
-#line 1032 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->background_progress_bar;
-#line 1032 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_progress_bar_set_text (_tmp1_, label);
-#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->background_progress_bar;
-#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_progress_bar_pulse (_tmp2_);
-#line 1034 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_show_background_progress_bar (self);
-#line 1036 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->background_progress_pulse_id = 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 7363 "LibraryWindow.c"
-}
-
-
-static gboolean
-library_window_on_pulse_background_progress_bar (LibraryWindow* self)
-{
- gboolean result = FALSE;
- GtkProgressBar* _tmp0_;
-#line 1040 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE);
-#line 1041 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->background_progress_bar;
-#line 1041 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_progress_bar_pulse (_tmp0_);
-#line 1043 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 1043 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 7382 "LibraryWindow.c"
-}
-
-
-static void
-library_window_stop_pulse_background_progress_bar (LibraryWindow* self,
- gint priority,
- gboolean clear)
-{
- gint _tmp0_;
- guint _tmp1_;
-#line 1046 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->current_progress_priority;
-#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (priority < _tmp0_) {
-#line 1048 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 7401 "LibraryWindow.c"
- }
-#line 1050 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->background_progress_pulse_id;
-#line 1050 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp1_ != ((guint) 0)) {
-#line 7407 "LibraryWindow.c"
- guint _tmp2_;
-#line 1051 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->background_progress_pulse_id;
-#line 1051 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_source_remove (_tmp2_);
-#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->background_progress_pulse_id = (guint) 0;
-#line 7415 "LibraryWindow.c"
- }
-#line 1055 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (clear) {
-#line 1056 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_clear_background_progress_bar (self, priority);
-#line 7421 "LibraryWindow.c"
- }
-}
-
-
-static void
-library_window_update_background_progress_bar (LibraryWindow* self,
- const gchar* label,
- gint priority,
- gdouble count,
- gdouble total)
-{
- gint _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gdouble fraction = 0.0;
- GtkProgressBar* _tmp3_;
- gdouble _tmp4_;
- GtkProgressBar* _tmp5_;
- gdouble _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
-#line 1059 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1059 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (label != NULL);
-#line 1061 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->current_progress_priority;
-#line 1061 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (priority < _tmp0_) {
-#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 7453 "LibraryWindow.c"
- }
-#line 1064 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_stop_pulse_background_progress_bar (self, priority, FALSE);
-#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (count <= 0.0) {
-#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = TRUE;
-#line 7461 "LibraryWindow.c"
- } else {
-#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = total <= 0.0;
-#line 7465 "LibraryWindow.c"
- }
-#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_) {
-#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = TRUE;
-#line 7471 "LibraryWindow.c"
- } else {
-#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = count >= total;
-#line 7475 "LibraryWindow.c"
- }
-#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp1_) {
-#line 1067 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_clear_background_progress_bar (self, priority);
-#line 1069 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 7483 "LibraryWindow.c"
- }
-#line 1072 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->current_progress_priority = priority;
-#line 1074 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- fraction = count / total;
-#line 1075 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->background_progress_bar;
-#line 1075 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = fraction;
-#line 1075 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_progress_bar_set_fraction (_tmp3_, _tmp4_);
-#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = self->priv->background_progress_bar;
-#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = fraction;
-#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = g_strdup_printf (_ ("%s (%d%%)"), label, (gint) (_tmp6_ * 100.0));
-#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = _tmp7_;
-#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_progress_bar_set_text (_tmp5_, _tmp8_);
-#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (_tmp8_);
-#line 1077 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_show_background_progress_bar (self);
-#line 7509 "LibraryWindow.c"
-}
-
-
-static void
-library_window_clear_background_progress_bar (LibraryWindow* self,
- gint priority)
-{
- gint _tmp0_;
- GtkProgressBar* _tmp1_;
- GtkProgressBar* _tmp2_;
-#line 1086 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1087 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->current_progress_priority;
-#line 1087 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (priority < _tmp0_) {
-#line 1088 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 7528 "LibraryWindow.c"
- }
-#line 1090 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_stop_pulse_background_progress_bar (self, priority, FALSE);
-#line 1092 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->current_progress_priority = 0;
-#line 1094 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->background_progress_bar;
-#line 1094 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_progress_bar_set_fraction (_tmp1_, 0.0);
-#line 1095 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->background_progress_bar;
-#line 1095 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_progress_bar_set_text (_tmp2_, "");
-#line 1096 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_hide_background_progress_bar (self);
-#line 7544 "LibraryWindow.c"
-}
-
-
-static void
-library_window_show_background_progress_bar (LibraryWindow* self)
-{
- gboolean _tmp0_;
-#line 1104 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->background_progress_displayed;
-#line 1105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!_tmp0_) {
-#line 7558 "LibraryWindow.c"
- GtkBox* _tmp1_;
- GtkFrame* _tmp2_;
- GtkFrame* _tmp3_;
-#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->top_section;
-#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->background_progress_frame;
-#line 1106 "/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 1107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->background_progress_frame;
-#line 1107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 1108 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->background_progress_displayed = TRUE;
-#line 7574 "LibraryWindow.c"
- }
-}
-
-
-static void
-library_window_hide_background_progress_bar (LibraryWindow* self)
-{
- gboolean _tmp0_;
-#line 1112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->background_progress_displayed;
-#line 1113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp0_) {
-#line 7589 "LibraryWindow.c"
- GtkBox* _tmp1_;
- GtkFrame* _tmp2_;
-#line 1114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->top_section;
-#line 1114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->background_progress_frame;
-#line 1114 "/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 1115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->background_progress_displayed = FALSE;
-#line 7600 "LibraryWindow.c"
- }
-}
-
-
-static void
-library_window_on_library_monitor_discovery_started (LibraryWindow* self)
-{
-#line 1119 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1120 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_start_pulse_background_progress_bar (self, _ ("Updating library…"), LIBRARY_WINDOW_STARTUP_SCAN_PROGRESS_PRIORITY);
-#line 7612 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_library_monitor_discovery_completed (LibraryWindow* self)
-{
-#line 1123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1124 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_stop_pulse_background_progress_bar (self, LIBRARY_WINDOW_STARTUP_SCAN_PROGRESS_PRIORITY, TRUE);
-#line 7623 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_library_monitor_auto_update_progress (LibraryWindow* self,
- gint completed_files,
- gint total_files)
-{
-#line 1127 "/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"
- if (total_files < LIBRARY_WINDOW_MIN_PROGRESS_BAR_FILES) {
-#line 1129 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_clear_background_progress_bar (self, LIBRARY_WINDOW_REALTIME_UPDATE_PROGRESS_PRIORITY);
-#line 7638 "LibraryWindow.c"
- } else {
-#line 1131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_update_background_progress_bar (self, _ ("Updating library…"), LIBRARY_WINDOW_REALTIME_UPDATE_PROGRESS_PRIORITY, (gdouble) completed_files, (gdouble) total_files);
-#line 7642 "LibraryWindow.c"
- }
-}
-
-
-static void
-library_window_on_library_monitor_auto_import_preparing (LibraryWindow* self)
-{
-#line 1136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1137 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_start_pulse_background_progress_bar (self, _ ("Preparing to auto-import photos…"), LIBRARY_WINDOW_REALTIME_IMPORT_PROGRESS_PRIORITY);
-#line 7654 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_library_monitor_auto_import_progress (LibraryWindow* self,
- guint64 completed_bytes,
- guint64 total_bytes)
-{
-#line 1141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_update_background_progress_bar (self, _ ("Auto-importing photos…"), LIBRARY_WINDOW_REALTIME_IMPORT_PROGRESS_PRIORITY, (gdouble) completed_bytes, (gdouble) total_bytes);
-#line 7667 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_metadata_writer_progress (LibraryWindow* self,
- guint completed,
- guint total)
-{
-#line 1146 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1147 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (total < ((guint) LIBRARY_WINDOW_MIN_PROGRESS_BAR_FILES)) {
-#line 1148 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_clear_background_progress_bar (self, LIBRARY_WINDOW_METADATA_WRITER_PROGRESS_PRIORITY);
-#line 7682 "LibraryWindow.c"
- } else {
-#line 1150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_update_background_progress_bar (self, _ ("Writing metadata to files…"), LIBRARY_WINDOW_METADATA_WRITER_PROGRESS_PRIORITY, (gdouble) completed, (gdouble) total);
-#line 7686 "LibraryWindow.c"
- }
-}
-
-
-static void
-library_window_create_layout (LibraryWindow* self,
- Page* start_page)
-{
- GtkScrolledWindow* scrolled_sidebar = NULL;
- GtkScrolledWindow* _tmp0_;
- SidebarTree* _tmp1_;
- GtkFrame* _tmp2_;
- GtkFrame* _tmp3_;
- GtkProgressBar* _tmp4_;
- GtkFrame* _tmp5_;
- GtkStyleContext* _tmp6_;
- BasicProperties* _tmp7_;
- BasicProperties* _tmp8_;
- BasicProperties* _tmp9_;
- BasicProperties* _tmp10_;
- BasicProperties* _tmp11_;
- BasicProperties* _tmp12_;
- BasicProperties* _tmp13_;
- BasicProperties* _tmp14_;
- GtkFrame* _tmp15_;
- BasicProperties* _tmp16_;
- GtkFrame* _tmp17_;
- GtkStyleContext* _tmp18_;
- GtkBox* _tmp19_;
- GtkPaned* _tmp20_;
- GtkBox* _tmp21_;
- GtkPaned* _tmp22_;
- GtkFrame* _tmp23_;
- GtkPaned* _tmp24_;
- GtkBox* _tmp25_;
- GtkBox* _tmp26_;
- SearchFilterToolbar* _tmp27_;
- GtkBox* _tmp28_;
- GtkStack* _tmp29_;
- GtkBox* _tmp30_;
- GtkRevealer* _tmp31_;
- GtkPaned* _tmp32_;
- GtkPaned* _tmp33_;
- GtkPaned* _tmp34_;
- SidebarTree* _tmp35_;
- GtkPaned* _tmp36_;
- GtkBox* _tmp37_;
- GtkPaned* _tmp38_;
- ConfigFacade* _tmp39_;
- ConfigFacade* _tmp40_;
- GtkStack* _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- GtkBox* _tmp44_;
- GtkPaned* _tmp45_;
- GtkBox* _tmp46_;
-#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (start_page));
-#line 1158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
-#line 1158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp0_);
-#line 1158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- scrolled_sidebar = _tmp0_;
-#line 1159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_scrolled_window_set_policy (scrolled_sidebar, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
-#line 1160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->sidebar_tree;
-#line 1160 "/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 1162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->background_progress_frame;
-#line 1162 "/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 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->background_progress_frame;
-#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = self->priv->background_progress_bar;
-#line 1163 "/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 1164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = self->priv->background_progress_frame;
-#line 1164 "/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 1164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_style_context_remove_class (_tmp6_, "frame");
-#line 1167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = self->priv->basic_properties;
-#line 1167 "/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 1168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = self->priv->basic_properties;
-#line 1168 "/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 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = self->priv->basic_properties;
-#line 1169 "/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 1170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = self->priv->basic_properties;
-#line 1170 "/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 1171 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = self->priv->basic_properties;
-#line 1171 "/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 1172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = self->priv->basic_properties;
-#line 1172 "/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 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = self->priv->basic_properties;
-#line 1173 "/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 1174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = self->priv->basic_properties;
-#line 1174 "/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 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = self->priv->bottom_frame;
-#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = self->priv->basic_properties;
-#line 1176 "/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 1177 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = self->priv->bottom_frame;
-#line 1177 "/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 1177 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_style_context_remove_class (_tmp18_, "frame");
-#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = self->priv->top_section;
-#line 1181 "/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 1183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = self->priv->sidebar_paned;
-#line 1183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = self->priv->top_section;
-#line 1183 "/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 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = self->priv->sidebar_paned;
-#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = self->priv->bottom_frame;
-#line 1184 "/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 1185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = self->priv->sidebar_paned;
-#line 1185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_paned_set_position (_tmp24_, 1000);
-#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp25_);
-#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->right_vbox);
-#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->right_vbox = _tmp25_;
-#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp26_ = self->priv->right_vbox;
-#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = self->priv->search_toolbar;
-#line 1188 "/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 1189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp28_ = self->priv->right_vbox;
-#line 1189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp29_ = self->priv->stack;
-#line 1189 "/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 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp30_ = self->priv->right_vbox;
-#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp31_ = self->priv->toolbar_revealer;
-#line 1190 "/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 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp32_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
-#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp32_);
-#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->client_paned);
-#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->client_paned = _tmp32_;
-#line 1193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp33_ = self->priv->client_paned;
-#line 1193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp34_ = self->priv->sidebar_paned;
-#line 1193 "/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 1194 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp35_ = self->priv->sidebar_tree;
-#line 1194 "/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 1195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp36_ = self->priv->client_paned;
-#line 1195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp37_ = self->priv->right_vbox;
-#line 1195 "/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 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp38_ = self->priv->client_paned;
-#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp39_ = config_facade_get_instance ();
-#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp40_ = _tmp39_;
-#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_paned_set_position (_tmp38_, configuration_facade_get_sidebar_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)));
-#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp40_);
-#line 1198 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp41_ = self->priv->stack;
-#line 1198 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp42_ = library_window_get_PAGE_MIN_WIDTH ();
-#line 1198 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp43_ = _tmp42_;
-#line 1198 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), _tmp43_, -1);
-#line 1200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp44_ = self->priv->layout;
-#line 1200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp45_ = self->priv->client_paned;
-#line 1200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_box_pack_end (_tmp44_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 1202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp46_ = self->priv->layout;
-#line 1202 "/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 (_tmp46_, gtk_widget_get_type (), GtkWidget));
-#line 1204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, start_page);
-#line 1205 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (start_page, gtk_widget_get_type (), GtkWidget));
-#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (scrolled_sidebar);
-#line 7923 "LibraryWindow.c"
-}
-
-
-static void
-library_window_real_set_current_page (PageWindow* base,
- Page* page)
-{
- LibraryWindow * self;
-#line 1208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 1208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, page);
-#line 7938 "LibraryWindow.c"
-}
-
-
-void
-library_window_set_page_switching_enabled (LibraryWindow* self,
- gboolean should_enable)
-{
-#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1214 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->page_switching_enabled = should_enable;
-#line 7950 "LibraryWindow.c"
-}
-
-
-void
-library_window_switch_to_page (LibraryWindow* self,
- Page* page)
-{
- gboolean _tmp0_;
- Page* _tmp1_;
- Page* _tmp2_;
- gboolean _tmp3_;
- Page* current_page = NULL;
- Page* _tmp4_;
- Page* _tmp5_;
- GtkStack* _tmp15_;
- SidebarEntry* entry = NULL;
- GeeHashMap* _tmp17_;
- gpointer _tmp18_;
- SidebarEntry* _tmp19_;
- Page* _tmp29_;
- Page* _tmp30_;
- GMenuModel* _tmp31_;
- GMenuModel* _tmp32_;
- gboolean old = FALSE;
- GtkSettings* _tmp33_;
- gboolean _tmp34_;
- gboolean _tmp35_;
- GtkSettings* _tmp36_;
- gboolean _tmp37_;
- GtkSettings* _tmp38_;
- gboolean _tmp39_;
- GtkToolbar* toolbar = NULL;
- GtkToolbar* _tmp40_;
- GtkToolbar* _tmp41_;
-#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 1218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->page_switching_enabled;
-#line 1218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!_tmp0_) {
-#line 1219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 7995 "LibraryWindow.c"
- }
-#line 1221 "/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 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = page == _tmp2_;
-#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp2_);
-#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp3_) {
-#line 1222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 8009 "LibraryWindow.c"
- }
-#line 1224 "/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 1224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- current_page = _tmp4_;
-#line 1225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = current_page;
-#line 1225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp5_ != NULL) {
-#line 8019 "LibraryWindow.c"
- GtkToolbar* toolbar = NULL;
- Page* _tmp6_;
- GtkToolbar* _tmp7_;
- GtkToolbar* _tmp8_;
- Page* _tmp11_;
- Page* _tmp12_;
- Page* _tmp14_;
-#line 1226 "/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 1227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- application_set_menubar (NULL);
-#line 1229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = current_page;
-#line 1229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = page_get_toolbar (_tmp6_);
-#line 1229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- toolbar = _tmp7_;
-#line 1230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = toolbar;
-#line 1230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp8_ != NULL) {
-#line 8041 "LibraryWindow.c"
- GtkRevealer* _tmp9_;
- GtkToolbar* _tmp10_;
-#line 1231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = self->priv->toolbar_revealer;
-#line 1231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = toolbar;
-#line 1231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 8050 "LibraryWindow.c"
- }
-#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = current_page;
-#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- page_switching_from (_tmp11_);
-#line 1237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = current_page;
-#line 1237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_LIBRARY_PHOTO_PAGE)) {
-#line 8060 "LibraryWindow.c"
- SidebarTree* _tmp13_;
-#line 1238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = self->priv->sidebar_tree;
-#line 1238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sidebar_tree_enable_editing (_tmp13_);
-#line 8066 "LibraryWindow.c"
- }
-#line 1241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = current_page;
-#line 1241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_unsubscribe_from_basic_information (self, _tmp14_);
-#line 1225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (toolbar);
-#line 8074 "LibraryWindow.c"
- }
-#line 1244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = self->priv->stack;
-#line 1244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_stack_set_visible_child (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget));
-#line 1248 "/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), page);
-#line 1254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_LIBRARY_PHOTO_PAGE)) {
-#line 8084 "LibraryWindow.c"
- SidebarTree* _tmp16_;
-#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = self->priv->sidebar_tree;
-#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sidebar_tree_disable_editing (_tmp16_);
-#line 8090 "LibraryWindow.c"
- }
-#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_toggle_search_bar (self, library_window_should_show_search_bar (self), G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) page) : NULL);
-#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = self->priv->page_map;
-#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), page);
-#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- entry = (SidebarEntry*) _tmp18_;
-#line 1262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = entry;
-#line 1262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp19_ != NULL) {
-#line 8104 "LibraryWindow.c"
- SidebarExpandableEntry* expandable_entry = NULL;
- SidebarEntry* _tmp20_;
- SidebarExpandableEntry* _tmp21_;
- gboolean _tmp22_ = FALSE;
- SidebarExpandableEntry* _tmp23_;
- SidebarTree* _tmp27_;
- SidebarEntry* _tmp28_;
-#line 1265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = entry;
-#line 1265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, SIDEBAR_TYPE_EXPANDABLE_ENTRY) ? ((SidebarExpandableEntry*) _tmp20_) : NULL);
-#line 1265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- expandable_entry = _tmp21_;
-#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = expandable_entry;
-#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp23_ != NULL) {
-#line 8122 "LibraryWindow.c"
- SidebarExpandableEntry* _tmp24_;
-#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = expandable_entry;
-#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = sidebar_expandable_entry_expand_on_select (_tmp24_);
-#line 8128 "LibraryWindow.c"
- } else {
-#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = FALSE;
-#line 8132 "LibraryWindow.c"
- }
-#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp22_) {
-#line 8136 "LibraryWindow.c"
- SidebarTree* _tmp25_;
- SidebarEntry* _tmp26_;
-#line 1267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = self->priv->sidebar_tree;
-#line 1267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp26_ = entry;
-#line 1267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sidebar_tree_expand_to_entry (_tmp25_, _tmp26_);
-#line 8145 "LibraryWindow.c"
- }
-#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = self->priv->sidebar_tree;
-#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp28_ = entry;
-#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- sidebar_tree_place_cursor (_tmp27_, _tmp28_, TRUE);
-#line 1262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (expandable_entry);
-#line 8155 "LibraryWindow.c"
- }
-#line 1272 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_update_properties (self);
-#line 1274 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_CHECKERBOARD_PAGE)) {
-#line 1275 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_init_view_filter (self, G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_CHECKERBOARD_PAGE, CheckerboardPage));
-#line 8163 "LibraryWindow.c"
- }
-#line 1277 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget));
-#line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp29_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow));
-#line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp30_ = _tmp29_;
-#line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_subscribe_for_basic_information (self, _tmp30_);
-#line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp30_);
-#line 1282 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- page_switched_to (page);
-#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp31_ = page_get_menubar (page);
-#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp32_ = _tmp31_;
-#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- application_set_menubar (_tmp32_);
-#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp32_);
-#line 1285 "/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 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp33_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_get (_tmp33_, "gtk-shell-shows-menubar", &_tmp34_, NULL);
-#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp35_ = _tmp34_;
-#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- old = _tmp35_;
-#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp36_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp37_ = old;
-#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_set (_tmp36_, "gtk-shell-shows-menubar", !_tmp37_, NULL);
-#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp38_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp39_ = old;
-#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_set (_tmp38_, "gtk-shell-shows-menubar", _tmp39_, NULL);
-#line 1290 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp40_ = page_get_toolbar (page);
-#line 1290 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- toolbar = _tmp40_;
-#line 1291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp41_ = toolbar;
-#line 1291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp41_ != NULL) {
-#line 8215 "LibraryWindow.c"
- GtkRevealer* _tmp42_;
- GtkToolbar* _tmp43_;
- GtkToolbar* _tmp44_;
- GtkRevealer* _tmp45_;
-#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp42_ = self->priv->toolbar_revealer;
-#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp43_ = toolbar;
-#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.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));
-#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp44_ = toolbar;
-#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget));
-#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp45_ = self->priv->toolbar_revealer;
-#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_revealer_set_reveal_child (_tmp45_, library_window_is_toolbar_visible (self));
-#line 8234 "LibraryWindow.c"
- }
-#line 1297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- page_ready (page);
-#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (toolbar);
-#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (entry);
-#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (current_page);
-#line 8244 "LibraryWindow.c"
-}
-
-
-static void
-library_window_init_view_filter (LibraryWindow* self,
- CheckerboardPage* page)
-{
- SearchFilterToolbar* _tmp0_;
- SearchViewFilter* _tmp1_;
- SearchViewFilter* _tmp2_;
- ViewCollection* _tmp3_;
- ViewCollection* _tmp4_;
- SearchViewFilter* _tmp5_;
- SearchViewFilter* _tmp6_;
-#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_CHECKERBOARD_PAGE (page));
-#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->search_toolbar;
-#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = checkerboard_page_get_search_view_filter (page);
-#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- search_filter_toolbar_set_view_filter (_tmp0_, _tmp2_);
-#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _view_filter_unref0 (_tmp2_);
-#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_PAGE, Page));
-#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = checkerboard_page_get_search_view_filter (page);
-#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = _tmp5_;
-#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view_collection_install_view_filter (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_VIEW_FILTER, ViewFilter));
-#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _view_filter_unref0 (_tmp6_);
-#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp4_);
-#line 8287 "LibraryWindow.c"
-}
-
-
-static gboolean
-library_window_should_show_search_bar (LibraryWindow* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- Page* _tmp1_;
- Page* _tmp2_;
- gboolean _tmp3_;
-#line 1305 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE);
-#line 1306 "/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 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_CHECKERBOARD_PAGE);
-#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp2_);
-#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp3_) {
-#line 8311 "LibraryWindow.c"
- gboolean _tmp4_;
-#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = self->priv->is_search_toolbar_visible;
-#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = _tmp4_;
-#line 8317 "LibraryWindow.c"
- } else {
-#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = FALSE;
-#line 8321 "LibraryWindow.c"
- }
-#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp0_;
-#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 8327 "LibraryWindow.c"
-}
-
-
-static void
-library_window_toggle_search_bar (LibraryWindow* self,
- gboolean show,
- CheckerboardPage* page)
-{
- SearchFilterToolbar* _tmp0_;
-#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail ((page == NULL) || IS_CHECKERBOARD_PAGE (page));
-#line 1311 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->search_toolbar;
-#line 1311 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gtk_revealer_set_reveal_child (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_revealer_get_type (), GtkRevealer), show);
-#line 1312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (show) {
-#line 8347 "LibraryWindow.c"
- SearchFilterToolbar* _tmp1_;
- SearchViewFilter* _tmp2_;
- SearchViewFilter* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- SearchViewFilter* _tmp6_;
- SearchViewFilter* _tmp7_;
-#line 1313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (NULL != page, "null != page");
-#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->search_toolbar;
-#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = checkerboard_page_get_search_view_filter (page);
-#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _tmp2_;
-#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- search_filter_toolbar_set_view_filter (_tmp1_, _tmp3_);
-#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _view_filter_unref0 (_tmp3_);
-#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_PAGE, Page));
-#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = checkerboard_page_get_search_view_filter (page);
-#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _tmp6_;
-#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view_collection_install_view_filter (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIEW_FILTER, ViewFilter));
-#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _view_filter_unref0 (_tmp7_);
-#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp5_);
-#line 8381 "LibraryWindow.c"
- } else {
-#line 1317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (page != NULL) {
-#line 8385 "LibraryWindow.c"
- ViewCollection* _tmp8_;
- ViewCollection* _tmp9_;
- DisabledViewFilter* _tmp10_;
- DisabledViewFilter* _tmp11_;
-#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_PAGE, Page));
-#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = _tmp8_;
-#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = disabled_view_filter_new ();
-#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = _tmp10_;
-#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view_collection_install_view_filter (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_VIEW_FILTER, ViewFilter));
-#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _view_filter_unref0 (_tmp11_);
-#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (_tmp9_);
-#line 8404 "LibraryWindow.c"
- }
- }
-}
-
-
-static void
-library_window_on_page_created (LibraryWindow* self,
- SidebarPageRepresentative* entry,
- Page* page)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry));
-#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->page_map;
-#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), page), "!page_map.has_key(page)");
-#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->page_map;
-#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), page, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 1326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_add_to_stack (self, page);
-#line 8433 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_destroying_page (LibraryWindow* self,
- SidebarPageRepresentative* entry,
- Page* page)
-{
- Page* _tmp0_;
- Page* _tmp1_;
- gboolean _tmp2_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp8_;
- gboolean _tmp9_;
-#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry));
-#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 1331 "/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 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = page == _tmp1_;
-#line 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_) {
-#line 8464 "LibraryWindow.c"
- LibraryBranch* _tmp3_;
- LibraryPhotosEntry* _tmp4_;
- LibraryPhotosEntry* _tmp5_;
- Page* _tmp6_;
- Page* _tmp7_;
-#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->library_branch;
-#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = library_branch_get_photos_entry (_tmp3_);
-#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _tmp6_;
-#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp7_);
-#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp7_);
-#line 8484 "LibraryWindow.c"
- }
-#line 1334 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_remove_from_stack (self, page);
-#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = self->priv->page_map;
-#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), page, NULL);
-#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- removed = _tmp9_;
-#line 1337 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _vala_assert (removed, "removed");
-#line 8496 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_sidebar_entry_selected (LibraryWindow* self,
- SidebarSelectableEntry* selectable)
-{
- SidebarPageRepresentative* page_rep = NULL;
- SidebarPageRepresentative* _tmp0_;
- SidebarPageRepresentative* _tmp1_;
-#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (SIDEBAR_IS_SELECTABLE_ENTRY (selectable));
-#line 1341 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (selectable, SIDEBAR_TYPE_PAGE_REPRESENTATIVE) ? ((SidebarPageRepresentative*) selectable) : NULL);
-#line 1341 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- page_rep = _tmp0_;
-#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = page_rep;
-#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp1_ != NULL) {
-#line 8519 "LibraryWindow.c"
- SidebarPageRepresentative* _tmp2_;
- Page* _tmp3_;
- Page* _tmp4_;
-#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = page_rep;
-#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = sidebar_page_representative_get_page (_tmp2_);
-#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp4_);
-#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp4_);
-#line 8533 "LibraryWindow.c"
- }
-#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (page_rep);
-#line 8537 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_sidebar_selected_entry_removed (LibraryWindow* self,
- SidebarSelectableEntry* selectable)
-{
- LibraryLastImportSidebarEntry* last_import_entry = NULL;
- LibraryBranch* _tmp0_;
- LibraryLastImportSidebarEntry* _tmp1_;
- LibraryLastImportSidebarEntry* _tmp2_;
- LibraryLastImportSidebarEntry* _tmp3_;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp11_ = FALSE;
- gboolean _tmp18_ = FALSE;
- LibraryBranch* _tmp25_;
- LibraryPhotosEntry* _tmp26_;
- LibraryPhotosEntry* _tmp27_;
- Page* _tmp28_;
- Page* _tmp29_;
-#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (SIDEBAR_IS_SELECTABLE_ENTRY (selectable));
-#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->library_branch;
-#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = library_branch_get_last_imported_entry (_tmp0_);
-#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- last_import_entry = _tmp3_;
-#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (selectable, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) {
-#line 8574 "LibraryWindow.c"
- LibraryLastImportSidebarEntry* _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp7_;
-#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = last_import_entry;
-#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = library_hideable_page_entry_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry));
-#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = _tmp6_;
-#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp7_;
-#line 8586 "LibraryWindow.c"
- } else {
-#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = FALSE;
-#line 8590 "LibraryWindow.c"
- }
-#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp4_) {
-#line 8594 "LibraryWindow.c"
- LibraryLastImportSidebarEntry* _tmp8_;
- Page* _tmp9_;
- Page* _tmp10_;
-#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = last_import_entry;
-#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = _tmp9_;
-#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp10_);
-#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp10_);
-#line 1356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (last_import_entry);
-#line 1356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 8612 "LibraryWindow.c"
- }
-#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (selectable, EVENTS_TYPE_EVENT_ENTRY)) {
-#line 8616 "LibraryWindow.c"
- EventsBranch* _tmp12_;
-#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = self->priv->events_branch;
-#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = sidebar_branch_get_show_branch (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 8622 "LibraryWindow.c"
- } else {
-#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = FALSE;
-#line 8626 "LibraryWindow.c"
- }
-#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp11_) {
-#line 8630 "LibraryWindow.c"
- EventsBranch* _tmp13_;
- EventsMasterDirectoryEntry* _tmp14_;
- EventsMasterDirectoryEntry* _tmp15_;
- Page* _tmp16_;
- Page* _tmp17_;
-#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = self->priv->events_branch;
-#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = events_branch_get_master_entry (_tmp13_);
-#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = _tmp14_;
-#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = _tmp16_;
-#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp17_);
-#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp17_);
-#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp15_);
-#line 1363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (last_import_entry);
-#line 1363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 8656 "LibraryWindow.c"
- }
-#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (selectable, EVENTS_TYPE_DIRECTORY_ENTRY)) {
-#line 8660 "LibraryWindow.c"
- EventsBranch* _tmp19_;
-#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = self->priv->events_branch;
-#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = sidebar_branch_get_show_branch (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 8666 "LibraryWindow.c"
- } else {
-#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = FALSE;
-#line 8670 "LibraryWindow.c"
- }
-#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp18_) {
-#line 8674 "LibraryWindow.c"
- EventsBranch* _tmp20_;
- EventsMasterDirectoryEntry* _tmp21_;
- EventsMasterDirectoryEntry* _tmp22_;
- Page* _tmp23_;
- Page* _tmp24_;
-#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = self->priv->events_branch;
-#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = events_branch_get_master_entry (_tmp20_);
-#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = _tmp21_;
-#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp24_ = _tmp23_;
-#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp24_);
-#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp24_);
-#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp22_);
-#line 1370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (last_import_entry);
-#line 1370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 8700 "LibraryWindow.c"
- }
-#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = self->priv->library_branch;
-#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp26_ = library_branch_get_photos_entry (_tmp25_);
-#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = _tmp26_;
-#line 1374 "/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 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp29_ = _tmp28_;
-#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_switch_to_page (self, _tmp29_);
-#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp29_);
-#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (last_import_entry);
-#line 8718 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_update_properties_view_collection_items_state_changed (ViewCollection* _sender,
- GeeIterable* changed,
- gpointer self)
-{
-#line 1380 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_update_properties ((LibraryWindow*) self);
-#line 8729 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_update_properties_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 1381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_update_properties ((LibraryWindow*) self);
-#line 8740 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_update_properties_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 1382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_update_properties ((LibraryWindow*) self);
-#line 8752 "LibraryWindow.c"
-}
-
-
-static void
-_library_window_on_update_properties_view_collection_items_visibility_changed (ViewCollection* _sender,
- GeeCollection* changed,
- gpointer self)
-{
-#line 1383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_update_properties ((LibraryWindow*) self);
-#line 8763 "LibraryWindow.c"
-}
-
-
-static void
-library_window_subscribe_for_basic_information (LibraryWindow* self,
- Page* page)
-{
- ViewCollection* view = NULL;
- ViewCollection* _tmp0_;
-#line 1377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = page_get_view (page);
-#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view = _tmp0_;
-#line 1380 "/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 1381 "/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 1382 "/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 1383 "/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 1377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 8791 "LibraryWindow.c"
-}
-
-
-static void
-library_window_unsubscribe_from_basic_information (LibraryWindow* self,
- Page* page)
-{
- ViewCollection* view = NULL;
- ViewCollection* _tmp0_;
- guint _tmp1_;
- guint _tmp2_;
- guint _tmp3_;
- guint _tmp4_;
-#line 1386 "/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"
- g_return_if_fail (IS_PAGE (page));
-#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = page_get_view (page);
-#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- view = _tmp0_;
-#line 1389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 1389 "/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, _tmp1_, 0, NULL, (GCallback) _library_window_on_update_properties_view_collection_items_state_changed, self);
-#line 1390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE);
-#line 1390 "/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, _tmp2_, 0, NULL, (GCallback) _library_window_on_update_properties_data_collection_items_altered, self);
-#line 1391 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 1391 "/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_contents_altered, self);
-#line 1392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("items-visibility-changed", TYPE_VIEW_COLLECTION, &_tmp4_, NULL, FALSE);
-#line 1392 "/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, _tmp4_, 0, NULL, (GCallback) _library_window_on_update_properties_view_collection_items_visibility_changed, self);
-#line 1386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (view);
-#line 8831 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_update_properties (LibraryWindow* self)
-{
- OneShotScheduler* _tmp0_;
-#line 1395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->properties_scheduler;
-#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- one_shot_scheduler_at_idle (_tmp0_);
-#line 8845 "LibraryWindow.c"
-}
-
-
-static void
-library_window_on_update_properties_now (LibraryWindow* self)
-{
- GtkFrame* _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
- ExtendedPropertiesWindow* _tmp6_;
- gboolean _tmp7_;
- gboolean _tmp8_;
-#line 1399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->bottom_frame;
-#line 1400 "/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 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _tmp1_;
-#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp2_) {
-#line 8868 "LibraryWindow.c"
- BasicProperties* _tmp3_;
- Page* _tmp4_;
- Page* _tmp5_;
-#line 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = self->priv->basic_properties;
-#line 1401 "/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 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = _tmp4_;
-#line 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- properties_update_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PROPERTIES, Properties), _tmp5_);
-#line 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp5_);
-#line 8882 "LibraryWindow.c"
- }
-#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = self->priv->extended_properties;
-#line 1403 "/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 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = _tmp7_;
-#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp8_) {
-#line 8892 "LibraryWindow.c"
- ExtendedPropertiesWindow* _tmp9_;
- Page* _tmp10_;
- Page* _tmp11_;
-#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = self->priv->extended_properties;
-#line 1404 "/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 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = _tmp10_;
-#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- extended_properties_window_update_properties (_tmp9_, _tmp11_);
-#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp11_);
-#line 8906 "LibraryWindow.c"
- }
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 8930 "LibraryWindow.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 8934 "LibraryWindow.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 8940 "LibraryWindow.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 8944 "LibraryWindow.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 8948 "LibraryWindow.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 8956 "LibraryWindow.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 8984 "LibraryWindow.c"
- goto __catch48_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 8993 "LibraryWindow.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 9007 "LibraryWindow.c"
- goto __catch48_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 9018 "LibraryWindow.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 9032 "LibraryWindow.c"
- }
- goto __finally48;
- __catch48_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 9046 "LibraryWindow.c"
- }
- __finally48:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 9057 "LibraryWindow.c"
- }
-}
-
-
-void
-library_window_mounted_camera_shell_notification (LibraryWindow* self,
- const gchar* uri,
- gboolean at_startup)
-{
- GFile* uri_file = NULL;
- GFile* _tmp0_;
- GMount* mount = NULL;
- gchar* alt_uri = NULL;
- GError * _inner_error_ = NULL;
-#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (IS_LIBRARY_WINDOW (self));
-#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (uri != NULL);
-#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:1408: mount point reported: %s", uri);
-#line 1411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!library_window_is_mount_uri_supported (uri)) {
-#line 1412 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:1412: Unsupported mount scheme: %s", uri);
-#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 9084 "LibraryWindow.c"
- }
-#line 1417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = g_file_new_for_uri (uri);
-#line 1417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- uri_file = _tmp0_;
-#line 1420 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- mount = NULL;
-#line 9092 "LibraryWindow.c"
- {
- GMount* _tmp1_ = NULL;
- GFile* _tmp2_;
- GMount* _tmp3_;
- GMount* _tmp4_;
-#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = uri_file;
-#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = g_file_find_enclosing_mount (_tmp2_, NULL, &_inner_error_);
-#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp3_;
-#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9106 "LibraryWindow.c"
- goto __catch47_g_error;
- }
-#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp1_;
-#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = NULL;
-#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (mount);
-#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- mount = _tmp4_;
-#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp1_);
-#line 9119 "LibraryWindow.c"
- }
- goto __finally47;
- __catch47_g_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- const gchar* _tmp6_;
-#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- err = _inner_error_;
-#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _inner_error_ = NULL;
-#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = err;
-#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = _tmp5_->message;
-#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_debug ("LibraryWindow.vala:1424: %s", _tmp6_);
-#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_error_free0 (err);
-#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (mount);
-#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (uri_file);
-#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 9145 "LibraryWindow.c"
- }
- __finally47:
-#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (mount);
-#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (uri_file);
-#line 1421 "/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 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_clear_error (&_inner_error_);
-#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return;
-#line 9160 "LibraryWindow.c"
- }
-#line 1430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- alt_uri = NULL;
-#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (g_str_has_prefix (uri, "file://")) {
-#line 9166 "LibraryWindow.c"
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = string_replace (uri, "file://", "disk:");
-#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = _tmp7_;
-#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = camera_table_get_port_uri (_tmp8_);
-#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (alt_uri);
-#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- alt_uri = _tmp9_;
-#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (_tmp8_);
-#line 9182 "LibraryWindow.c"
- }
-#line 1435 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (at_startup) {
-#line 9186 "LibraryWindow.c"
- const gchar* _tmp11_;
-#line 1436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!is_string_empty (uri)) {
-#line 9190 "LibraryWindow.c"
- GeeHashSet* _tmp10_;
-#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = library_window_initial_camera_uris;
-#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), uri);
-#line 9196 "LibraryWindow.c"
- }
-#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = alt_uri;
-#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!is_string_empty (_tmp11_)) {
-#line 9202 "LibraryWindow.c"
- GeeHashSet* _tmp12_;
- const gchar* _tmp13_;
-#line 1440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = library_window_initial_camera_uris;
-#line 1440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = alt_uri;
-#line 1440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_);
-#line 9211 "LibraryWindow.c"
- }
- }
-#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (alt_uri);
-#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (mount);
-#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (uri_file);
-#line 9220 "LibraryWindow.c"
-}
-
-
-static gboolean
-library_window_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- LibraryWindow * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- SidebarTree* _tmp2_;
- gboolean _tmp3_;
- gboolean _tmp4_;
- guint _tmp8_;
- const gchar* _tmp9_;
-#line 1444 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 1444 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->sidebar_tree;
-#line 1445 "/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 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = _tmp3_;
-#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp4_) {
-#line 9249 "LibraryWindow.c"
- SidebarTree* _tmp5_;
-#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = self->priv->sidebar_tree;
-#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = sidebar_tree_is_keypress_interpreted (_tmp5_, event);
-#line 9255 "LibraryWindow.c"
- } else {
-#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = FALSE;
-#line 9259 "LibraryWindow.c"
- }
-#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp1_) {
-#line 9263 "LibraryWindow.c"
- SidebarTree* _tmp6_;
- gboolean _tmp7_ = FALSE;
-#line 1446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = self->priv->sidebar_tree;
-#line 1446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp7_);
-#line 1446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = _tmp7_;
-#line 9272 "LibraryWindow.c"
- } else {
-#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = FALSE;
-#line 9276 "LibraryWindow.c"
- }
-#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp0_) {
-#line 1447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 1447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 9284 "LibraryWindow.c"
- }
-#line 1450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (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), event)) {
-#line 1451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 1451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 9292 "LibraryWindow.c"
- }
-#line 1453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = event->keyval;
-#line 1453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = gdk_keyval_name (_tmp8_);
-#line 1453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (g_strcmp0 (_tmp9_, "Escape") == 0) {
-#line 1454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_clear_search (self);
-#line 1455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = TRUE;
-#line 1455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 9306 "LibraryWindow.c"
- }
-#line 1458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = FALSE;
-#line 1458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 9312 "LibraryWindow.c"
-}
-
-
-gint
-library_window_get_PAGE_MIN_WIDTH (void)
-{
- gint result;
- gint _tmp0_;
- gint _tmp1_;
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = thumbnail_get_MAX_SCALE ();
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- result = _tmp1_ + (CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING * 2);
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return result;
-#line 9330 "LibraryWindow.c"
-}
-
-
-static gpointer
-_data_collection_ref0 (gpointer self)
-{
-#line 79 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return self ? data_collection_ref (self) : NULL;
-#line 9339 "LibraryWindow.c"
-}
-
-
-static LibraryWindowFullscreenPhotoPage*
-library_window_fullscreen_photo_page_construct (GType object_type,
- CollectionPage* collection,
- Photo* start,
- ViewCollection* view)
-{
- LibraryWindowFullscreenPhotoPage * self = NULL;
- CollectionPage* _tmp0_;
- Photo* _tmp1_;
- ViewCollection* _tmp2_;
-#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_COLLECTION_PAGE (collection), NULL);
-#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail (IS_PHOTO (start), NULL);
-#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_val_if_fail ((view == NULL) || IS_VIEW_COLLECTION (view), NULL);
-#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = (LibraryWindowFullscreenPhotoPage*) library_photo_page_construct (object_type);
-#line 77 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = _g_object_ref0 (collection);
-#line 77 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->collection);
-#line 77 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->collection = _tmp0_;
-#line 78 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = _g_object_ref0 (start);
-#line 78 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->start);
-#line 78 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->start = _tmp1_;
-#line 79 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = _data_collection_ref0 (view);
-#line 79 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (self->priv->view);
-#line 79 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->view = _tmp2_;
-#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- return self;
-#line 9381 "LibraryWindow.c"
-}
-
-
-static LibraryWindowFullscreenPhotoPage*
-library_window_fullscreen_photo_page_new (CollectionPage* collection,
- Photo* start,
- ViewCollection* view)
-{
-#line 76 "/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 9392 "LibraryWindow.c"
-}
-
-
-static void
-library_window_fullscreen_photo_page_real_switched_to (Page* base)
-{
- LibraryWindowFullscreenPhotoPage * self;
- CollectionPage* _tmp0_;
- Photo* _tmp1_;
- ViewCollection* _tmp2_;
-#line 82 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage);
-#line 83 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->collection;
-#line 83 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = self->priv->start;
-#line 83 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->view;
-#line 83 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_photo_page_display_for_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage), _tmp0_, _tmp1_, _tmp2_);
-#line 85 "/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 9415 "LibraryWindow.c"
-}
-
-
-static void
-library_window_fullscreen_photo_page_real_switching_from (Page* base)
-{
- LibraryWindowFullscreenPhotoPage * self;
-#line 88 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage);
-#line 9425 "LibraryWindow.c"
-}
-
-
-static void
-library_window_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- LibraryWindowFullscreenPhotoPage * self;
-#line 91 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage);
-#line 91 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 94 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "photo_context.ui");
-#line 9440 "LibraryWindow.c"
-}
-
-
-static void
-library_window_fullscreen_photo_page_class_init (LibraryWindowFullscreenPhotoPageClass * klass)
-{
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_fullscreen_photo_page_parent_class = g_type_class_peek_parent (klass);
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_type_class_add_private (klass, sizeof (LibraryWindowFullscreenPhotoPagePrivate));
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) library_window_fullscreen_photo_page_real_switched_to;
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((PageClass *) klass)->switching_from = (void (*) (Page *)) library_window_fullscreen_photo_page_real_switching_from;
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) library_window_fullscreen_photo_page_real_init_collect_ui_filenames;
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- G_OBJECT_CLASS (klass)->finalize = library_window_fullscreen_photo_page_finalize;
-#line 9459 "LibraryWindow.c"
-}
-
-
-static void
-library_window_fullscreen_photo_page_instance_init (LibraryWindowFullscreenPhotoPage * self)
-{
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv = LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_GET_PRIVATE (self);
-#line 9468 "LibraryWindow.c"
-}
-
-
-static void
-library_window_fullscreen_photo_page_finalize (GObject * obj)
-{
- LibraryWindowFullscreenPhotoPage * self;
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage);
-#line 72 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->collection);
-#line 73 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->start);
-#line 74 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (self->priv->view);
-#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- G_OBJECT_CLASS (library_window_fullscreen_photo_page_parent_class)->finalize (obj);
-#line 9486 "LibraryWindow.c"
-}
-
-
-static GType
-library_window_fullscreen_photo_page_get_type (void)
-{
- static volatile gsize library_window_fullscreen_photo_page_type_id__volatile = 0;
- if (g_once_init_enter (&library_window_fullscreen_photo_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryWindowFullscreenPhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_window_fullscreen_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryWindowFullscreenPhotoPage), 0, (GInstanceInitFunc) library_window_fullscreen_photo_page_instance_init, NULL };
- GType library_window_fullscreen_photo_page_type_id;
- library_window_fullscreen_photo_page_type_id = g_type_register_static (TYPE_LIBRARY_PHOTO_PAGE, "LibraryWindowFullscreenPhotoPage", &g_define_type_info, 0);
- g_once_init_leave (&library_window_fullscreen_photo_page_type_id__volatile, library_window_fullscreen_photo_page_type_id);
- }
- return library_window_fullscreen_photo_page_type_id__volatile;
-}
-
-
-static void
-library_window_class_init (LibraryWindowClass * klass)
-{
- GeeHashSet* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_type_class_add_private (klass, sizeof (LibraryWindowPrivate));
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((AppWindowClass *) klass)->add_actions = (void (*) (AppWindow *)) library_window_real_add_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((PageWindowClass *) klass)->switched_pages = (void (*) (PageWindow *, Page*, Page*)) library_window_real_switched_pages;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((GtkWidgetClass *) klass)->show_all = (void (*) (GtkWidget *)) library_window_real_show_all;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((AppWindowClass *) klass)->get_app_role = (gchar* (*) (AppWindow *)) library_window_real_get_app_role;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((AppWindowClass *) klass)->on_quit = (void (*) (AppWindow *)) library_window_real_on_quit;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((AppWindowClass *) klass)->on_fullscreen = (void (*) (AppWindow *)) library_window_real_on_fullscreen;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((AppWindowClass *) klass)->update_common_action_availability = (void (*) (AppWindow *, Page*, Page*)) library_window_real_update_common_action_availability;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((AppWindowClass *) klass)->update_common_actions = (void (*) (AppWindow *, Page*, gint, gint)) library_window_real_update_common_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((GtkWidgetClass *) klass)->drag_motion = (gboolean (*) (GtkWidget *, GdkDragContext*, gint, gint, guint)) library_window_real_drag_motion;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((GtkWidgetClass *) klass)->drag_data_received = (void (*) (GtkWidget *, GdkDragContext*, gint, gint, GtkSelectionData*, guint, guint)) library_window_real_drag_data_received;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((PageWindowClass *) klass)->set_current_page = (void (*) (PageWindow *, Page*)) library_window_real_set_current_page;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) library_window_real_key_press_event;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- 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 123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_initial_camera_uris = _tmp0_;
-#line 9544 "LibraryWindow.c"
-}
-
-
-static void
-library_window_instance_init (LibraryWindow * self)
-{
- const gchar* _tmp0_;
- gchar* _tmp1_;
- GtkPaned* _tmp2_;
- GtkPaned* _tmp3_;
- GtkFrame* _tmp4_;
- LibraryBranch* _tmp5_;
- TagsBranch* _tmp6_;
- FoldersBranch* _tmp7_;
- EventsBranch* _tmp8_;
- CameraBranch* _tmp9_;
- SearchesBranch* _tmp10_;
- GeeHashMap* _tmp11_;
- SearchFilterActions* _tmp12_;
- GtkBox* _tmp13_;
- GtkFrame* _tmp14_;
- GtkProgressBar* _tmp15_;
- BasicProperties* _tmp16_;
- GtkStack* _tmp17_;
- GtkBox* _tmp18_;
- GtkRevealer* _tmp19_;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv = LIBRARY_WINDOW_GET_PRIVATE (self);
-#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = g_get_home_dir ();
-#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->import_dir = _tmp1_;
-#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->import_recursive = TRUE;
-#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_VERTICAL);
-#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp2_);
-#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->sidebar_paned = _tmp2_;
-#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp3_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
-#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp3_);
-#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->client_paned = _tmp3_;
-#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = (GtkFrame*) gtk_frame_new (NULL);
-#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp4_);
-#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->bottom_frame = _tmp4_;
-#line 105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->properties_scheduler = NULL;
-#line 106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->notify_library_is_home_dir = TRUE;
-#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp5_ = library_branch_new ();
-#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->library_branch = _tmp5_;
-#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = tags_branch_new ();
-#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->tags_branch = _tmp6_;
-#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp7_ = folders_branch_new ();
-#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->folders_branch = _tmp7_;
-#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp8_ = events_branch_new ();
-#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->events_branch = _tmp8_;
-#line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = camera_branch_new ();
-#line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->camera_branch = _tmp9_;
-#line 115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = searches_branch_new ();
-#line 115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->saved_search_branch = _tmp10_;
-#line 116 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->page_switching_enabled = TRUE;
-#line 118 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp11_ = gee_hash_map_new (TYPE_PAGE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 118 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->page_map = _tmp11_;
-#line 120 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->photo_page = NULL;
-#line 125 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->is_search_toolbar_visible = FALSE;
-#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = search_filter_actions_new ();
-#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->search_actions = _tmp12_;
-#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp13_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp13_);
-#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->top_section = _tmp13_;
-#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = (GtkFrame*) gtk_frame_new (NULL);
-#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp14_);
-#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->background_progress_frame = _tmp14_;
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = (GtkProgressBar*) gtk_progress_bar_new ();
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp15_);
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->background_progress_bar = _tmp15_;
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->background_progress_displayed = FALSE;
-#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = basic_properties_new ();
-#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp16_);
-#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->basic_properties = _tmp16_;
-#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = (GtkStack*) gtk_stack_new ();
-#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp17_);
-#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->stack = _tmp17_;
-#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp18_);
-#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->layout = _tmp18_;
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = (GtkRevealer*) gtk_revealer_new ();
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_object_ref_sink (_tmp19_);
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->toolbar_revealer = _tmp19_;
-#line 146 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->current_progress_priority = 0;
-#line 147 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self->priv->background_progress_pulse_id = (guint) 0;
-#line 9689 "LibraryWindow.c"
-}
-
-
-static void
-library_window_finalize (GObject * obj)
-{
- LibraryWindow * self;
- SidebarTree* _tmp0_;
- guint _tmp1_;
- SidebarTree* _tmp2_;
- guint _tmp3_;
- SidebarTree* _tmp4_;
- guint _tmp5_;
- SidebarTree* _tmp6_;
- guint _tmp7_;
- Page* _tmp8_;
- Page* _tmp9_;
- ExtendedPropertiesWindow* _tmp10_;
- guint _tmp11_;
- ExtendedPropertiesWindow* _tmp12_;
- guint _tmp13_;
- MetadataWriter* _tmp27_;
- MetadataWriter* _tmp28_;
- guint _tmp29_;
- LibraryMonitor* monitor = NULL;
- LibraryMonitorPool* _tmp30_;
- LibraryMonitorPool* _tmp31_;
- LibraryMonitor* _tmp32_;
- LibraryMonitor* _tmp33_;
- LibraryMonitor* _tmp34_;
- LibraryMonitorPool* _tmp36_;
- LibraryMonitorPool* _tmp37_;
- guint _tmp38_;
- LibraryMonitorPool* _tmp39_;
- LibraryMonitorPool* _tmp40_;
- guint _tmp41_;
- CameraTable* _tmp42_;
- CameraTable* _tmp43_;
- guint _tmp44_;
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp0_ = self->priv->sidebar_tree;
-#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("page-created", SIDEBAR_TYPE_TREE, &_tmp1_, NULL, FALSE);
-#line 224 "/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 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp2_ = self->priv->sidebar_tree;
-#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("destroying-page", SIDEBAR_TYPE_TREE, &_tmp3_, NULL, FALSE);
-#line 225 "/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 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp4_ = self->priv->sidebar_tree;
-#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("entry-selected", SIDEBAR_TYPE_TREE, &_tmp5_, NULL, FALSE);
-#line 226 "/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 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp6_ = self->priv->sidebar_tree;
-#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("selected-entry-removed", SIDEBAR_TYPE_TREE, &_tmp7_, NULL, FALSE);
-#line 227 "/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 229 "/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 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp9_ = _tmp8_;
-#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_unsubscribe_from_basic_information (self, _tmp9_);
-#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp9_);
-#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp10_ = self->priv->extended_properties;
-#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("hide", gtk_widget_get_type (), &_tmp11_, NULL, FALSE);
-#line 231 "/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 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp12_ = self->priv->extended_properties;
-#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("show", gtk_widget_get_type (), &_tmp13_, NULL, FALSE);
-#line 232 "/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 9775 "LibraryWindow.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp14_;
- MediaCollectionRegistry* _tmp15_;
- GeeCollection* _tmp16_;
- GeeCollection* _tmp17_;
- GeeIterator* _tmp18_;
- GeeIterator* _tmp19_;
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp14_ = media_collection_registry_get_instance ();
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp15_ = _tmp14_;
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp16_ = media_collection_registry_get_all (_tmp15_);
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp17_ = _tmp16_;
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp19_ = _tmp18_;
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp17_);
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _media_collection_registry_unref0 (_tmp15_);
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _media_sources_it = _tmp19_;
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- while (TRUE) {
-#line 9804 "LibraryWindow.c"
- GeeIterator* _tmp20_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp21_;
- gpointer _tmp22_;
- MediaSourceCollection* _tmp23_;
- guint _tmp24_;
- MediaSourceCollection* _tmp25_;
- guint _tmp26_;
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp20_ = _media_sources_it;
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (!gee_iterator_next (_tmp20_)) {
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- break;
-#line 9819 "LibraryWindow.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp21_ = _media_sources_it;
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp22_ = gee_iterator_get (_tmp21_);
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- media_sources = (MediaSourceCollection*) _tmp22_;
-#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp23_ = media_sources;
-#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp24_, NULL, FALSE);
-#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (_tmp23_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp24_, 0, NULL, (GCallback) _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self);
-#line 236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp25_ = media_sources;
-#line 236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp26_, NULL, FALSE);
-#line 236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _library_window_on_media_altered_data_collection_items_altered, self);
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _data_collection_unref0 (media_sources);
-#line 9841 "LibraryWindow.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_media_sources_it);
-#line 9845 "LibraryWindow.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp27_ = metadata_writer_get_instance ();
-#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp28_ = _tmp27_;
-#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("progress", TYPE_METADATA_WRITER, &_tmp29_, NULL, FALSE);
-#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (_tmp28_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, 0, NULL, (GCallback) _library_window_on_metadata_writer_progress_metadata_writer_progress, self);
-#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (_tmp28_);
-#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp30_ = library_monitor_pool_get_instance ();
-#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp31_ = _tmp30_;
-#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp32_ = library_monitor_pool_get_monitor (_tmp31_);
-#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp33_ = _tmp32_;
-#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _library_monitor_pool_unref0 (_tmp31_);
-#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- monitor = _tmp33_;
-#line 242 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp34_ = monitor;
-#line 242 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- if (_tmp34_ != NULL) {
-#line 9873 "LibraryWindow.c"
- LibraryMonitor* _tmp35_;
-#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp35_ = monitor;
-#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- library_window_on_library_monitor_destroyed (self, _tmp35_);
-#line 9879 "LibraryWindow.c"
- }
-#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp36_ = library_monitor_pool_get_instance ();
-#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp37_ = _tmp36_;
-#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("monitor-installed", TYPE_LIBRARY_MONITOR_POOL, &_tmp38_, NULL, FALSE);
-#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (_tmp37_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp38_, 0, NULL, (GCallback) _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed, self);
-#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _library_monitor_pool_unref0 (_tmp37_);
-#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp39_ = library_monitor_pool_get_instance ();
-#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp40_ = _tmp39_;
-#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("monitor-destroyed", TYPE_LIBRARY_MONITOR_POOL, &_tmp41_, NULL, FALSE);
-#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (_tmp40_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp41_, 0, NULL, (GCallback) _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed, self);
-#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _library_monitor_pool_unref0 (_tmp40_);
-#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp42_ = camera_table_get_instance ();
-#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _tmp43_ = _tmp42_;
-#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_parse_name ("camera-added", TYPE_CAMERA_TABLE, &_tmp44_, NULL, FALSE);
-#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- g_signal_handlers_disconnect_matched (_tmp43_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp44_, 0, NULL, (GCallback) _library_window_on_camera_added_camera_table_camera_added, self);
-#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _camera_table_unref0 (_tmp43_);
-#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (monitor);
-#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_free0 (self->priv->import_dir);
-#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->sidebar_paned);
-#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->client_paned);
-#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->bottom_frame);
-#line 105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _one_shot_scheduler_unref0 (self->priv->properties_scheduler);
-#line 109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->sidebar_tree);
-#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->library_branch);
-#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->tags_branch);
-#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->folders_branch);
-#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->events_branch);
-#line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->camera_branch);
-#line 115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->saved_search_branch);
-#line 118 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->page_map);
-#line 120 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->photo_page);
-#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _search_filter_actions_unref0 (self->priv->search_actions);
-#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->search_toolbar);
-#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->top_section);
-#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->background_progress_frame);
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->background_progress_bar);
-#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->basic_properties);
-#line 139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->extended_properties);
-#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->stack);
-#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->layout);
-#line 143 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala"
- _g_object_unref0 (self->priv->right_vbox);
-#line 144 "/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 9965 "LibraryWindow.c"
-}
-
-
-GType
-library_window_get_type (void)
-{
- static volatile gsize library_window_type_id__volatile = 0;
- if (g_once_init_enter (&library_window_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryWindow), 0, (GInstanceInitFunc) library_window_instance_init, NULL };
- GType library_window_type_id;
- library_window_type_id = g_type_register_static (TYPE_APP_WINDOW, "LibraryWindow", &g_define_type_info, 0);
- g_once_init_leave (&library_window_type_id__volatile, library_window_type_id);
- }
- return library_window_type_id__volatile;
-}
-
-
-static void
-_vala_library_window_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- LibraryWindow * self;
- 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 9993 "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 9999 "LibraryWindow.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala
index 7f5100a..b9acb22 100644
--- a/src/library/LibraryWindow.vala
+++ b/src/library/LibraryWindow.vala
@@ -6,6 +6,7 @@
public class LibraryWindow : AppWindow {
public const int SIDEBAR_MIN_WIDTH = 120;
+ public const int EXTENDED_INFO_MIN_WIDTH = 360;
public static int PAGE_MIN_WIDTH {
get {
@@ -45,7 +46,11 @@ public class LibraryWindow : AppWindow {
CAMERAS,
SAVED_SEARCH,
EVENTS,
+ IMPORT_ROLL,
FOLDERS,
+#if ENABLE_FACES
+ FACES,
+#endif
TAGS
}
@@ -110,9 +115,13 @@ public class LibraryWindow : AppWindow {
private Library.Branch library_branch = new Library.Branch();
private Tags.Branch tags_branch = new Tags.Branch();
private Folders.Branch folders_branch = new Folders.Branch();
+#if ENABLE_FACES
+ private Faces.Branch faces_branch = new Faces.Branch();
+#endif
private Events.Branch events_branch = new Events.Branch();
private Camera.Branch camera_branch = new Camera.Branch();
private Searches.Branch saved_search_branch = new Searches.Branch();
+ private ImportRoll.Branch import_roll_branch = new ImportRoll.Branch();
private bool page_switching_enabled = true;
private Gee.HashMap<Page, Sidebar.Entry> page_map = new Gee.HashMap<Page, Sidebar.Entry>();
@@ -136,7 +145,8 @@ public class LibraryWindow : AppWindow {
private bool background_progress_displayed = false;
private BasicProperties basic_properties = new BasicProperties();
- private ExtendedPropertiesWindow extended_properties;
+ private ExtendedProperties extended_properties = new ExtendedProperties();
+ private Gtk.Revealer extended_properties_revealer = new Gtk.Revealer();
private Gtk.Stack stack = new Gtk.Stack();
private Gtk.Box layout = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
@@ -164,14 +174,14 @@ public class LibraryWindow : AppWindow {
sidebar_tree.graft(library_branch, SidebarRootPosition.LIBRARY);
sidebar_tree.graft(tags_branch, SidebarRootPosition.TAGS);
sidebar_tree.graft(folders_branch, SidebarRootPosition.FOLDERS);
+#if ENABLE_FACES
+ sidebar_tree.graft(faces_branch, SidebarRootPosition.FACES);
+#endif
+
sidebar_tree.graft(events_branch, SidebarRootPosition.EVENTS);
sidebar_tree.graft(camera_branch, SidebarRootPosition.CAMERAS);
sidebar_tree.graft(saved_search_branch, SidebarRootPosition.SAVED_SEARCH);
-
- // create and connect extended properties window
- extended_properties = new ExtendedPropertiesWindow(this);
- extended_properties.hide.connect(hide_extended_properties);
- extended_properties.show.connect(show_extended_properties);
+ sidebar_tree.graft(import_roll_branch, SidebarRootPosition.IMPORT_ROLL);
properties_scheduler = new OneShotScheduler("LibraryWindow properties",
on_update_properties_now);
@@ -228,9 +238,6 @@ public class LibraryWindow : AppWindow {
unsubscribe_from_basic_information(get_current_page());
- extended_properties.hide.disconnect(hide_extended_properties);
- extended_properties.show.disconnect(show_extended_properties);
-
foreach (MediaSourceCollection media_sources in MediaCollectionRegistry.get_instance().get_all()) {
media_sources.trashcan_contents_altered.disconnect(on_trashcan_contents_altered);
media_sources.items_altered.disconnect(on_media_altered);
@@ -404,7 +411,17 @@ public class LibraryWindow : AppWindow {
else
debug("No search entry found for rename");
}
-
+
+#if ENABLE_FACES
+ public void rename_face_in_sidebar(Face face) {
+ Faces.SidebarEntry? entry = faces_branch.get_entry_for_face(face);
+ if (entry != null)
+ sidebar_tree.rename_entry_in_place(entry);
+ else
+ assert_not_reached();
+ }
+#endif
+
protected override void on_quit() {
Config.Facade.get_instance().set_library_window_state(maximized, dimensions);
@@ -687,12 +704,11 @@ public class LibraryWindow : AppWindow {
if (display) {
extended_properties.update_properties(get_current_page());
- extended_properties.show_all();
- } else {
- extended_properties.hide();
}
+ extended_properties_revealer.set_reveal_child(display);
action.set_state (value);
+ Config.Facade.get_instance().set_display_extended_properties(display);
}
private void on_display_searchbar(GLib.SimpleAction action, Variant? value) {
@@ -750,22 +766,6 @@ public class LibraryWindow : AppWindow {
return Config.Facade.get_instance ().get_display_toolbar ();
}
- private void show_extended_properties() {
- sync_extended_properties(true);
- }
-
- private void hide_extended_properties() {
- sync_extended_properties(false);
- }
-
- private void sync_extended_properties(bool show) {
- var action = this.lookup_action ("CommonDisplayExtendedProperties");
- action.change_state (show);
-
- // sync the setting so it will persist
- Config.Facade.get_instance().set_display_extended_properties(show);
- }
-
public void enqueue_batch_import(BatchImport batch_import, bool allow_user_cancel) {
library_branch.import_queue_entry.enqueue_and_schedule(batch_import, allow_user_cancel);
}
@@ -810,9 +810,9 @@ public class LibraryWindow : AppWindow {
private Gdk.DragAction get_drag_action() {
Gdk.ModifierType mask;
-
- get_window().get_device_position(Gdk.Display.get_default().get_device_manager()
- .get_client_pointer(), null, null, out mask);
+
+ var seat = Gdk.Display.get_default().get_default_seat();
+ get_window().get_device_position(seat.get_pointer(), null, null, out mask);
bool ctrl = (mask & Gdk.ModifierType.CONTROL_MASK) != 0;
bool alt = (mask & Gdk.ModifierType.MOD1_MASK) != 0;
@@ -1186,7 +1186,9 @@ public class LibraryWindow : AppWindow {
right_vbox = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
right_vbox.pack_start(search_toolbar, false, false, 0);
- right_vbox.pack_start(stack, true, true, 0);
+ var stack_box = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
+ stack_box.pack_start(stack, true, true, 0);
+ right_vbox.pack_start(stack_box, true, true, 0);
right_vbox.add (toolbar_revealer);
client_paned = new Gtk.Paned(Gtk.Orientation.HORIZONTAL);
@@ -1196,6 +1198,29 @@ public class LibraryWindow : AppWindow {
client_paned.set_position(Config.Facade.get_instance().get_sidebar_position());
// TODO: Calc according to layout's size, to give sidebar a maximum width
stack.set_size_request(PAGE_MIN_WIDTH, -1);
+ var scrolled = new Gtk.ScrolledWindow(null, null);
+ scrolled.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
+ scrolled.add(extended_properties);
+ extended_properties_revealer.add(scrolled);
+ extended_properties_revealer.set_transition_type(Gtk.RevealerTransitionType.SLIDE_LEFT);
+ extended_properties_revealer.halign = Gtk.Align.END;
+ extended_properties_revealer.valign = Gtk.Align.FILL;
+
+ extended_properties.vexpand = true;
+ extended_properties.set_margin_top (9);
+ extended_properties.set_margin_bottom (9);
+ extended_properties.set_margin_start (9);
+ extended_properties.set_margin_end (9);
+ scrolled.set_size_request(EXTENDED_INFO_MIN_WIDTH, -1);
+
+ stack_box.pack_end(extended_properties_revealer, false, false, 0);
+ extended_properties_revealer.halign = Gtk.Align.END;
+ extended_properties_revealer.hexpand = false;
+ if (Config.Facade.get_instance().get_display_extended_properties()) {
+ extended_properties_revealer.set_reveal_child(true);
+ } else {
+ extended_properties_revealer.set_reveal_child(false);
+ }
layout.pack_end(client_paned, true, true, 0);
diff --git a/src/library/OfflinePage.c b/src/library/OfflinePage.c
deleted file mode 100644
index 3d18c3f..0000000
--- a/src/library/OfflinePage.c
+++ /dev/null
@@ -1,1816 +0,0 @@
-/* OfflinePage.c generated by valac 0.40.4, the Vala compiler
- * generated from OfflinePage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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 <cairo.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_OFFLINE_PAGE (offline_page_get_type ())
-#define OFFLINE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OFFLINE_PAGE, OfflinePage))
-#define OFFLINE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OFFLINE_PAGE, OfflinePageClass))
-#define IS_OFFLINE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OFFLINE_PAGE))
-#define IS_OFFLINE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OFFLINE_PAGE))
-#define OFFLINE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OFFLINE_PAGE, OfflinePageClass))
-
-typedef struct _OfflinePage OfflinePage;
-typedef struct _OfflinePageClass OfflinePageClass;
-typedef struct _OfflinePagePrivate OfflinePagePrivate;
-
-#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ())
-#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter))
-#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-
-typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter;
-typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass;
-
-#define OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER (offline_page_offline_search_view_filter_get_type ())
-#define OFFLINE_PAGE_OFFLINE_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER, OfflinePageOfflineSearchViewFilter))
-#define OFFLINE_PAGE_OFFLINE_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER, OfflinePageOfflineSearchViewFilterClass))
-#define OFFLINE_PAGE_IS_OFFLINE_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER))
-#define OFFLINE_PAGE_IS_OFFLINE_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER))
-#define OFFLINE_PAGE_OFFLINE_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER, OfflinePageOfflineSearchViewFilterClass))
-
-typedef struct _OfflinePageOfflineSearchViewFilter OfflinePageOfflineSearchViewFilter;
-typedef struct _OfflinePageOfflineSearchViewFilterClass OfflinePageOfflineSearchViewFilterClass;
-
-#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ())
-#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker))
-#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER))
-#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER))
-#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-
-typedef struct _MediaViewTracker MediaViewTracker;
-typedef struct _MediaViewTrackerClass MediaViewTrackerClass;
-enum {
- OFFLINE_PAGE_0_PROPERTY,
- OFFLINE_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* offline_page_properties[OFFLINE_PAGE_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL)))
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-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_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))
-#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
-#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
-#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
-
-typedef struct _MediaSourceItem MediaSourceItem;
-typedef struct _MediaSourceItemClass MediaSourceItemClass;
-
-#define TYPE_THUMBNAIL (thumbnail_get_type ())
-#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail))
-#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass))
-#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL))
-#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL))
-#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass))
-
-typedef struct _Thumbnail Thumbnail;
-typedef struct _ThumbnailClass ThumbnailClass;
-
-#define OFFLINE_PAGE_TYPE_OFFLINE_VIEW (offline_page_offline_view_get_type ())
-#define OFFLINE_PAGE_OFFLINE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OFFLINE_PAGE_TYPE_OFFLINE_VIEW, OfflinePageOfflineView))
-#define OFFLINE_PAGE_OFFLINE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OFFLINE_PAGE_TYPE_OFFLINE_VIEW, OfflinePageOfflineViewClass))
-#define OFFLINE_PAGE_IS_OFFLINE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OFFLINE_PAGE_TYPE_OFFLINE_VIEW))
-#define OFFLINE_PAGE_IS_OFFLINE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OFFLINE_PAGE_TYPE_OFFLINE_VIEW))
-#define OFFLINE_PAGE_OFFLINE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), OFFLINE_PAGE_TYPE_OFFLINE_VIEW, OfflinePageOfflineViewClass))
-
-typedef struct _OfflinePageOfflineView OfflinePageOfflineView;
-typedef struct _OfflinePageOfflineViewClass OfflinePageOfflineViewClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-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))
-#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG))
-#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG))
-#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass))
-
-typedef struct _ProgressDialog ProgressDialog;
-typedef struct _ProgressDialogClass ProgressDialogClass;
-
-#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 (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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate;
-typedef struct _ThumbnailPrivate ThumbnailPrivate;
-typedef struct _OfflinePageOfflineViewPrivate OfflinePageOfflineViewPrivate;
-enum {
- OFFLINE_PAGE_OFFLINE_VIEW_0_PROPERTY,
- OFFLINE_PAGE_OFFLINE_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* offline_page_offline_view_properties[OFFLINE_PAGE_OFFLINE_VIEW_NUM_PROPERTIES];
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate;
-typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate;
-typedef struct _OfflinePageOfflineSearchViewFilterPrivate OfflinePageOfflineSearchViewFilterPrivate;
-
-#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ())
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-struct _OfflinePage {
- CheckerboardPage parent_instance;
- OfflinePagePrivate * priv;
-};
-
-struct _OfflinePageClass {
- CheckerboardPageClass parent_class;
-};
-
-struct _OfflinePagePrivate {
- OfflinePageOfflineSearchViewFilter* search_filter;
- MediaViewTracker* tracker;
-};
-
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-struct _MediaSourceItem {
- CheckerboardItem parent_instance;
- MediaSourceItemPrivate * priv;
-};
-
-struct _MediaSourceItemClass {
- CheckerboardItemClass parent_class;
-};
-
-struct _Thumbnail {
- MediaSourceItem parent_instance;
- ThumbnailPrivate * priv;
-};
-
-struct _ThumbnailClass {
- MediaSourceItemClass parent_class;
-};
-
-struct _OfflinePageOfflineView {
- Thumbnail parent_instance;
- OfflinePageOfflineViewPrivate * priv;
-};
-
-struct _OfflinePageOfflineViewClass {
- ThumbnailClass parent_class;
-};
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _SearchViewFilter {
- ViewFilter parent_instance;
- SearchViewFilterPrivate * priv;
-};
-
-struct _SearchViewFilterClass {
- ViewFilterClass parent_class;
- guint (*get_criteria) (SearchViewFilter* self);
-};
-
-struct _DefaultSearchViewFilter {
- SearchViewFilter parent_instance;
- DefaultSearchViewFilterPrivate * priv;
-};
-
-struct _DefaultSearchViewFilterClass {
- SearchViewFilterClass parent_class;
-};
-
-struct _OfflinePageOfflineSearchViewFilter {
- DefaultSearchViewFilter parent_instance;
- OfflinePageOfflineSearchViewFilterPrivate * priv;
-};
-
-struct _OfflinePageOfflineSearchViewFilterClass {
- DefaultSearchViewFilterClass parent_class;
-};
-
-typedef enum {
- SEARCH_FILTER_CRITERIA_NONE = 0,
- SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0,
- SEARCH_FILTER_CRITERIA_TEXT = 1 << 1,
- SEARCH_FILTER_CRITERIA_FLAG = 1 << 2,
- SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3,
- SEARCH_FILTER_CRITERIA_RATING = 1 << 4,
- SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5,
- SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL
-} SearchFilterCriteria;
-
-
-static gpointer offline_page_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-static gpointer offline_page_offline_view_parent_class = NULL;
-static gpointer offline_page_offline_search_view_filter_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType offline_page_get_type (void) G_GNUC_CONST;
-GType default_search_view_filter_get_type (void) G_GNUC_CONST;
-static GType offline_page_offline_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType media_view_tracker_get_type (void) G_GNUC_CONST;
-#define OFFLINE_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_OFFLINE_PAGE, OfflinePagePrivate))
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-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;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-static void offline_page_on_offline_contents_altered (OfflinePage* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-static OfflinePageOfflineSearchViewFilter* offline_page_offline_search_view_filter_new (void);
-static OfflinePageOfflineSearchViewFilter* offline_page_offline_search_view_filter_construct (GType object_type);
-#define OFFLINE_PAGE_NAME _ ("Missing Files")
-static void offline_page_on_remove_from_library (OfflinePage* self);
-static void _offline_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-OfflinePage* offline_page_new (void);
-OfflinePage* offline_page_construct (GType object_type);
-CheckerboardPage* checkerboard_page_construct (GType object_type,
- const gchar* page_name);
-void checkerboard_page_init_item_context_menu (CheckerboardPage* self,
- const gchar* path);
-void page_init_toolbar (Page* self,
- const gchar* path);
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-MediaViewTracker* media_view_tracker_new (ViewCollection* collection);
-MediaViewTracker* media_view_tracker_construct (GType object_type,
- ViewCollection* collection);
-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,
- 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);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-static OfflinePageOfflineView* offline_page_offline_view_new (MediaSource* source);
-static OfflinePageOfflineView* offline_page_offline_view_construct (GType object_type,
- MediaSource* source);
-GType media_source_item_get_type (void) G_GNUC_CONST;
-GType thumbnail_get_type (void) G_GNUC_CONST;
-static GType offline_page_offline_view_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType marker_get_type (void) G_GNUC_CONST;
-Marker* data_collection_start_marking (DataCollection* self);
-void marker_mark (Marker* self,
- DataObject* object);
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-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);
-ProgressDialog* progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-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;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-void media_source_collection_filter_media (GeeCollection* media,
- GeeCollection* photos,
- GeeCollection* videos);
-void media_source_collection_remove_from_app (MediaSourceCollection* self,
- GeeCollection* sources,
- gboolean delete_backing,
- ProgressMonitor monitor,
- void* monitor_target,
- GeeList* not_removed);
-gboolean progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop);
-static gboolean _progress_dialog_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self);
-void progress_dialog_close (ProgressDialog* self);
-void page_window_set_normal_cursor (PageWindow* self);
-static SearchViewFilter* offline_page_real_get_search_view_filter (CheckerboardPage* base);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-gint thumbnail_get_DEFAULT_SCALE (void);
-Thumbnail* thumbnail_new (MediaSource* media,
- gint scale);
-Thumbnail* thumbnail_construct (GType object_type,
- MediaSource* media,
- gint scale);
-gboolean media_source_is_offline (MediaSource* self);
-static guint offline_page_offline_search_view_filter_real_get_criteria (SearchViewFilter* base);
-GType search_filter_criteria_get_type (void) G_GNUC_CONST;
-DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type);
-static void offline_page_finalize (GObject * obj);
-
-static const GActionEntry OFFLINE_PAGE_entries[1] = {{"RemoveFromLibrary", _offline_page_on_remove_from_library_gsimple_action_activate_callback}};
-
-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 955 "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 966 "OfflinePage.c"
-}
-
-
-OfflinePage*
-offline_page_construct (GType object_type)
-{
- OfflinePage * self = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- MediaViewTracker* _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- VideoSourceCollection* _tmp4_;
- LibraryPhotoSourceCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- VideoSourceCollection* _tmp8_;
- GeeCollection* _tmp9_;
- GeeCollection* _tmp10_;
-#line 29 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = (OfflinePage*) checkerboard_page_construct (object_type, OFFLINE_PAGE_NAME);
-#line 31 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "OfflineContextMenu");
-#line 32 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- page_init_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "OfflineToolbar");
-#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp1_ = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp2_ = media_view_tracker_new (_tmp1_);
-#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _core_tracker_unref0 (self->priv->tracker);
-#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self->priv->tracker = _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 37 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp3_ = library_photo_global;
-#line 37 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", (GCallback) _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered, self, 0);
-#line 38 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp4_ = video_global;
-#line 38 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", (GCallback) _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered, self, 0);
-#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp5_ = library_photo_global;
-#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp6_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp7_ = _tmp6_;
-#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- offline_page_on_offline_contents_altered (self, _tmp7_, NULL);
-#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_tmp7_);
-#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp8_ = video_global;
-#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp9_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp10_ = _tmp9_;
-#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- offline_page_on_offline_contents_altered (self, _tmp10_, NULL);
-#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_tmp10_);
-#line 28 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return self;
-#line 1033 "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 1042 "OfflinePage.c"
-}
-
-
-static void
-offline_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- OfflinePage * self;
-#line 49 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage);
-#line 49 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 50 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- PAGE_CLASS (offline_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), ui_filenames);
-#line 52 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "offline.ui");
-#line 1059 "OfflinePage.c"
-}
-
-
-static void
-offline_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- OfflinePage * self;
-#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), map);
-#line 62 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_action_map_add_action_entries (map, OFFLINE_PAGE_entries, G_N_ELEMENTS (OFFLINE_PAGE_entries), self);
-#line 1076 "OfflinePage.c"
-}
-
-
-static void
-offline_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- OfflinePage * self;
-#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"
- 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), map);
-#line 1091 "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 1103 "OfflinePage.c"
- GActionEntry entry = {0};
-#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- entry = entry_collection[entry_it];
-#line 1107 "OfflinePage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = entry;
-#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp1_ = _tmp0_.name;
-#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 1117 "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 1129 "OfflinePage.c"
-}
-
-
-static CoreViewTracker*
-offline_page_real_get_view_tracker (CheckerboardPage* base)
-{
- OfflinePage * self;
- CoreViewTracker* result = NULL;
- MediaViewTracker* _tmp0_;
- CoreViewTracker* _tmp1_;
-#line 72 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage);
-#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = self->priv->tracker;
-#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 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- result = _tmp1_;
-#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return result;
-#line 1150 "OfflinePage.c"
-}
-
-
-static void
-offline_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- OfflinePage * self;
-#line 76 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage);
-#line 77 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveFromLibrary", selected_count > 0);
-#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), selected_count, count);
-#line 1166 "OfflinePage.c"
-}
-
-
-static void
-offline_page_on_offline_contents_altered (OfflinePage* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_return_if_fail (IS_OFFLINE_PAGE (self));
-#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (added != NULL) {
-#line 1183 "OfflinePage.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable));
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _source_it = _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- while (TRUE) {
-#line 1193 "OfflinePage.c"
- GeeIterator* _tmp1_;
- MediaSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- MediaSource* _tmp6_;
- OfflinePageOfflineView* _tmp7_;
- OfflinePageOfflineView* _tmp8_;
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp1_ = _source_it;
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- break;
-#line 1209 "OfflinePage.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp2_ = _source_it;
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- source = (MediaSource*) _tmp3_;
-#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp5_ = _tmp4_;
-#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp6_ = source;
-#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp7_ = offline_page_offline_view_new (_tmp6_);
-#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp8_ = _tmp7_;
-#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_tmp8_);
-#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (source);
-#line 1235 "OfflinePage.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_source_it);
-#line 1239 "OfflinePage.c"
- }
- }
-#line 89 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (removed != NULL) {
-#line 1244 "OfflinePage.c"
- Marker* marker = NULL;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- Marker* _tmp11_;
- Marker* _tmp12_;
- ViewCollection* _tmp23_;
- ViewCollection* _tmp24_;
- Marker* _tmp25_;
-#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp10_ = _tmp9_;
-#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp11_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection));
-#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp12_ = _tmp11_;
-#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- marker = _tmp12_;
-#line 1265 "OfflinePage.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp13_;
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _source_it = _tmp13_;
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- while (TRUE) {
-#line 1275 "OfflinePage.c"
- GeeIterator* _tmp14_;
- MediaSource* source = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- Marker* _tmp17_;
- ViewCollection* _tmp18_;
- ViewCollection* _tmp19_;
- MediaSource* _tmp20_;
- DataView* _tmp21_;
- DataView* _tmp22_;
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp14_ = _source_it;
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- break;
-#line 1292 "OfflinePage.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp15_ = _source_it;
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- source = (MediaSource*) _tmp16_;
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp17_ = marker;
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp18_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp19_ = _tmp18_;
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp20_ = source;
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp21_ = view_collection_get_view_for_source (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_SOURCE, DataSource));
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp22_ = _tmp21_;
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- marker_mark (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject));
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_tmp22_);
-#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _data_collection_unref0 (_tmp19_);
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (source);
-#line 1320 "OfflinePage.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_source_it);
-#line 1324 "OfflinePage.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp23_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp24_ = _tmp23_;
-#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp25_ = marker;
-#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), _tmp25_);
-#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _data_collection_unref0 (_tmp24_);
-#line 89 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (marker);
-#line 1338 "OfflinePage.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 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return result;
-#line 1353 "OfflinePage.c"
-}
-
-
-static void
-offline_page_on_remove_from_library (OfflinePage* self)
-{
- GeeCollection* sources = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- GeeList* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- AppWindow* _tmp7_;
- AppWindow* _tmp8_;
- GeeCollection* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gboolean _tmp12_;
- AppWindow* _tmp13_;
- AppWindow* _tmp14_;
- ProgressDialog* progress = NULL;
- GeeCollection* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp21_;
- GeeArrayList* videos = NULL;
- GeeArrayList* _tmp22_;
- GeeCollection* _tmp23_;
- GeeArrayList* _tmp24_;
- GeeArrayList* _tmp25_;
- ProgressDialog* _tmp26_;
- ProgressDialog* _tmp37_;
- AppWindow* _tmp39_;
- AppWindow* _tmp40_;
-#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_return_if_fail (IS_OFFLINE_PAGE (self));
-#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp1_ = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- sources = _tmp3_;
-#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp4_ = sources;
-#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp5_ = gee_collection_get_size (_tmp4_);
-#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp6_ = _tmp5_;
-#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (_tmp6_ == 0) {
-#line 101 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (sources);
-#line 101 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return;
-#line 1417 "OfflinePage.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp7_ = app_window_get_instance ();
-#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp8_ = _tmp7_;
-#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp9_ = sources;
-#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp10_ = gee_collection_get_size (_tmp9_);
-#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp11_ = _tmp10_;
-#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 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_tmp8_);
-#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (_tmp12_) {
-#line 104 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (sources);
-#line 104 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return;
-#line 1439 "OfflinePage.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp13_ = app_window_get_instance ();
-#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp14_ = _tmp13_;
-#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow));
-#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_tmp14_);
-#line 108 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- progress = NULL;
-#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp15_ = sources;
-#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp16_ = gee_collection_get_size (_tmp15_);
-#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp17_ = _tmp16_;
-#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (_tmp17_ >= 20) {
-#line 1459 "OfflinePage.c"
- AppWindow* _tmp18_;
- AppWindow* _tmp19_;
- ProgressDialog* _tmp20_;
-#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp18_ = app_window_get_instance ();
-#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp19_ = _tmp18_;
-#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp20_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_window_get_type (), GtkWindow), _ ("Deleting…"), NULL);
-#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_object_ref_sink (_tmp20_);
-#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (progress);
-#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- progress = _tmp20_;
-#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_tmp19_);
-#line 1477 "OfflinePage.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp21_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 112 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- photos = _tmp21_;
-#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp22_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- videos = _tmp22_;
-#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp23_ = sources;
-#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp24_ = photos;
-#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp25_ = videos;
-#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- media_source_collection_filter_media (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 116 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp26_ = progress;
-#line 116 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (_tmp26_ != NULL) {
-#line 1499 "OfflinePage.c"
- LibraryPhotoSourceCollection* _tmp27_;
- GeeArrayList* _tmp28_;
- ProgressDialog* _tmp29_;
- VideoSourceCollection* _tmp30_;
- GeeArrayList* _tmp31_;
- ProgressDialog* _tmp32_;
-#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp27_ = library_photo_global;
-#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp28_ = photos;
-#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp29_ = progress;
-#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, _progress_dialog_monitor_progress_monitor, _tmp29_, NULL);
-#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp30_ = video_global;
-#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp31_ = videos;
-#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp32_ = progress;
-#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, _progress_dialog_monitor_progress_monitor, _tmp32_, NULL);
-#line 1522 "OfflinePage.c"
- } else {
- LibraryPhotoSourceCollection* _tmp33_;
- GeeArrayList* _tmp34_;
- VideoSourceCollection* _tmp35_;
- GeeArrayList* _tmp36_;
-#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp33_ = library_photo_global;
-#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp34_ = photos;
-#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, NULL, NULL);
-#line 121 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp35_ = video_global;
-#line 121 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp36_ = videos;
-#line 121 "/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 1540 "OfflinePage.c"
- }
-#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp37_ = progress;
-#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- if (_tmp37_ != NULL) {
-#line 1546 "OfflinePage.c"
- ProgressDialog* _tmp38_;
-#line 125 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp38_ = progress;
-#line 125 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- progress_dialog_close (_tmp38_);
-#line 1552 "OfflinePage.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp39_ = app_window_get_instance ();
-#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp40_ = _tmp39_;
-#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_PAGE_WINDOW, PageWindow));
-#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (_tmp40_);
-#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (videos);
-#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (photos);
-#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (progress);
-#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _g_object_unref0 (sources);
-#line 1570 "OfflinePage.c"
-}
-
-
-static gpointer
-_view_filter_ref0 (gpointer self)
-{
-#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return self ? view_filter_ref (self) : NULL;
-#line 1579 "OfflinePage.c"
-}
-
-
-static SearchViewFilter*
-offline_page_real_get_search_view_filter (CheckerboardPage* base)
-{
- OfflinePage * self;
- SearchViewFilter* result = NULL;
- OfflinePageOfflineSearchViewFilter* _tmp0_;
- SearchViewFilter* _tmp1_;
-#line 130 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage);
-#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = self->priv->search_filter;
-#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 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- result = _tmp1_;
-#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return result;
-#line 1600 "OfflinePage.c"
-}
-
-
-static OfflinePageOfflineView*
-offline_page_offline_view_construct (GType object_type,
- MediaSource* source)
-{
- OfflinePageOfflineView * self = NULL;
- gint _tmp0_;
- gint _tmp1_;
-#line 11 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 12 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = thumbnail_get_DEFAULT_SCALE ();
-#line 12 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp1_ = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = (OfflinePageOfflineView*) thumbnail_construct (object_type, source, _tmp1_);
-#line 14 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _vala_assert (media_source_is_offline (source), "source.is_offline()");
-#line 11 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return self;
-#line 1623 "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 1632 "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 1641 "OfflinePage.c"
-}
-
-
-static void
-offline_page_offline_view_instance_init (OfflinePageOfflineView * self)
-{
-}
-
-
-static GType
-offline_page_offline_view_get_type (void)
-{
- static volatile gsize offline_page_offline_view_type_id__volatile = 0;
- if (g_once_init_enter (&offline_page_offline_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (OfflinePageOfflineViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) offline_page_offline_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OfflinePageOfflineView), 0, (GInstanceInitFunc) offline_page_offline_view_instance_init, NULL };
- GType offline_page_offline_view_type_id;
- offline_page_offline_view_type_id = g_type_register_static (TYPE_THUMBNAIL, "OfflinePageOfflineView", &g_define_type_info, 0);
- g_once_init_leave (&offline_page_offline_view_type_id__volatile, offline_page_offline_view_type_id);
- }
- return offline_page_offline_view_type_id__volatile;
-}
-
-
-static guint
-offline_page_offline_search_view_filter_real_get_criteria (SearchViewFilter* base)
-{
- OfflinePageOfflineSearchViewFilter * self;
- guint result = 0U;
-#line 19 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER, OfflinePageOfflineSearchViewFilter);
-#line 20 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- 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 1676 "OfflinePage.c"
-}
-
-
-static OfflinePageOfflineSearchViewFilter*
-offline_page_offline_search_view_filter_construct (GType object_type)
-{
- OfflinePageOfflineSearchViewFilter* self = NULL;
-#line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = (OfflinePageOfflineSearchViewFilter*) default_search_view_filter_construct (object_type);
-#line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- return self;
-#line 1688 "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 1697 "OfflinePage.c"
-}
-
-
-static void
-offline_page_offline_search_view_filter_class_init (OfflinePageOfflineSearchViewFilterClass * klass)
-{
-#line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- 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 = (guint (*) (SearchViewFilter *)) offline_page_offline_search_view_filter_real_get_criteria;
-#line 1708 "OfflinePage.c"
-}
-
-
-static void
-offline_page_offline_search_view_filter_instance_init (OfflinePageOfflineSearchViewFilter * self)
-{
-}
-
-
-static GType
-offline_page_offline_search_view_filter_get_type (void)
-{
- static volatile gsize offline_page_offline_search_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&offline_page_offline_search_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (OfflinePageOfflineSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) offline_page_offline_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OfflinePageOfflineSearchViewFilter), 0, (GInstanceInitFunc) offline_page_offline_search_view_filter_instance_init, NULL };
- GType offline_page_offline_search_view_filter_type_id;
- offline_page_offline_search_view_filter_type_id = g_type_register_static (TYPE_DEFAULT_SEARCH_VIEW_FILTER, "OfflinePageOfflineSearchViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&offline_page_offline_search_view_filter_type_id__volatile, offline_page_offline_search_view_filter_type_id);
- }
- return offline_page_offline_search_view_filter_type_id__volatile;
-}
-
-
-static void
-offline_page_class_init (OfflinePageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- offline_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_type_class_add_private (klass, sizeof (OfflinePagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) offline_page_real_init_collect_ui_filenames;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) offline_page_real_add_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) offline_page_real_remove_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) offline_page_real_get_view_tracker;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) offline_page_real_update_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) 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 1753 "OfflinePage.c"
-}
-
-
-static void
-offline_page_instance_init (OfflinePage * self)
-{
- OfflinePageOfflineSearchViewFilter* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self->priv = OFFLINE_PAGE_GET_PRIVATE (self);
-#line 25 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = offline_page_offline_search_view_filter_new ();
-#line 25 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self->priv->search_filter = _tmp0_;
-#line 1767 "OfflinePage.c"
-}
-
-
-static void
-offline_page_finalize (GObject * obj)
-{
- OfflinePage * self;
- LibraryPhotoSourceCollection* _tmp0_;
- guint _tmp1_;
- VideoSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_OFFLINE_PAGE, OfflinePage);
-#line 45 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp0_ = library_photo_global;
-#line 45 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_signal_parse_name ("offline-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 45 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered, self);
-#line 46 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _tmp2_ = video_global;
-#line 46 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_signal_parse_name ("offline-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 46 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered, self);
-#line 25 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _view_filter_unref0 (self->priv->search_filter);
-#line 26 "/home/jens/Source/shotwell/src/library/OfflinePage.vala"
- _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 1799 "OfflinePage.c"
-}
-
-
-GType
-offline_page_get_type (void)
-{
- static volatile gsize offline_page_type_id__volatile = 0;
- if (g_once_init_enter (&offline_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (OfflinePageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) offline_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OfflinePage), 0, (GInstanceInitFunc) offline_page_instance_init, NULL };
- GType offline_page_type_id;
- offline_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "OfflinePage", &g_define_type_info, 0);
- g_once_init_leave (&offline_page_type_id__volatile, offline_page_type_id);
- }
- return offline_page_type_id__volatile;
-}
-
-
-
diff --git a/src/library/OfflineSidebarEntry.c b/src/library/OfflineSidebarEntry.c
deleted file mode 100644
index 712a354..0000000
--- a/src/library/OfflineSidebarEntry.c
+++ /dev/null
@@ -1,739 +0,0 @@
-/* OfflineSidebarEntry.c generated by valac 0.40.4, the Vala compiler
- * generated from OfflineSidebarEntry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-
-#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ())
-#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY))
-#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass))
-
-typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry;
-typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass;
-typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate;
-
-#define LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY (library_offline_sidebar_entry_get_type ())
-#define LIBRARY_OFFLINE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry))
-#define LIBRARY_OFFLINE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntryClass))
-#define LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY))
-#define LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY))
-#define LIBRARY_OFFLINE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntryClass))
-
-typedef struct _LibraryOfflineSidebarEntry LibraryOfflineSidebarEntry;
-typedef struct _LibraryOfflineSidebarEntryClass LibraryOfflineSidebarEntryClass;
-typedef struct _LibraryOfflineSidebarEntryPrivate LibraryOfflineSidebarEntryPrivate;
-enum {
- LIBRARY_OFFLINE_SIDEBAR_ENTRY_0_PROPERTY,
- LIBRARY_OFFLINE_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* library_offline_sidebar_entry_properties[LIBRARY_OFFLINE_SIDEBAR_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_OFFLINE_PAGE (offline_page_get_type ())
-#define OFFLINE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OFFLINE_PAGE, OfflinePage))
-#define OFFLINE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OFFLINE_PAGE, OfflinePageClass))
-#define IS_OFFLINE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OFFLINE_PAGE))
-#define IS_OFFLINE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OFFLINE_PAGE))
-#define OFFLINE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OFFLINE_PAGE, OfflinePageClass))
-
-typedef struct _OfflinePage OfflinePage;
-typedef struct _OfflinePageClass OfflinePageClass;
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _LibraryHideablePageEntry {
- SidebarSimplePageEntry parent_instance;
- LibraryHideablePageEntryPrivate * priv;
-};
-
-struct _LibraryHideablePageEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _LibraryOfflineSidebarEntry {
- LibraryHideablePageEntry parent_instance;
- LibraryOfflineSidebarEntryPrivate * priv;
-};
-
-struct _LibraryOfflineSidebarEntryClass {
- LibraryHideablePageEntryClass parent_class;
-};
-
-
-static gpointer library_offline_sidebar_entry_parent_class = NULL;
-
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType library_hideable_page_entry_get_type (void) G_GNUC_CONST;
-GType library_offline_sidebar_entry_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-static void library_offline_sidebar_entry_on_offline_contents_altered (LibraryOfflineSidebarEntry* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-static void _library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-LibraryOfflineSidebarEntry* library_offline_sidebar_entry_new (void);
-LibraryOfflineSidebarEntry* library_offline_sidebar_entry_construct (GType object_type);
-LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type);
-static void _library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_offline_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-static gint library_offline_sidebar_entry_get_total_offline (LibraryOfflineSidebarEntry* self);
-void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self,
- gboolean value);
-GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self);
-static gchar* library_offline_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-#define OFFLINE_PAGE_NAME _ ("Missing Files")
-static gchar* library_offline_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-#define RESOURCES_ICON_MISSING_FILES "process-stop"
-static Page* library_offline_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-OfflinePage* offline_page_new (void);
-OfflinePage* offline_page_construct (GType object_type);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType offline_page_get_type (void) G_GNUC_CONST;
-static void library_offline_sidebar_entry_finalize (GObject * obj);
-
-
-static void
-_library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self)
-{
-#line 18 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- library_offline_sidebar_entry_on_offline_contents_altered ((LibraryOfflineSidebarEntry*) self);
-#line 365 "OfflineSidebarEntry.c"
-}
-
-
-static void
-_library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_offline_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self)
-{
-#line 11 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- library_offline_sidebar_entry_on_offline_contents_altered ((LibraryOfflineSidebarEntry*) self);
-#line 377 "OfflineSidebarEntry.c"
-}
-
-
-LibraryOfflineSidebarEntry*
-library_offline_sidebar_entry_construct (GType object_type)
-{
- LibraryOfflineSidebarEntry * self = NULL;
-#line 8 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- self = (LibraryOfflineSidebarEntry*) library_hideable_page_entry_construct (object_type);
-#line 387 "OfflineSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- while (TRUE) {
-#line 416 "OfflineSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- break;
-#line 428 "OfflineSidebarEntry.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 11 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 11 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- g_signal_connect_object (_tmp9_, "offline-contents-altered", (GCallback) _library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_offline_contents_altered, self, 0);
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 442 "OfflineSidebarEntry.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 446 "OfflineSidebarEntry.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), library_offline_sidebar_entry_get_total_offline (self) != 0);
-#line 8 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- return self;
-#line 452 "OfflineSidebarEntry.c"
-}
-
-
-LibraryOfflineSidebarEntry*
-library_offline_sidebar_entry_new (void)
-{
-#line 8 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- return library_offline_sidebar_entry_construct (LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY);
-#line 461 "OfflineSidebarEntry.c"
-}
-
-
-static void
-library_offline_sidebar_entry_on_offline_contents_altered (LibraryOfflineSidebarEntry* self)
-{
-#line 21 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- g_return_if_fail (LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY (self));
-#line 22 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), library_offline_sidebar_entry_get_total_offline (self) != 0);
-#line 472 "OfflineSidebarEntry.c"
-}
-
-
-static gint
-library_offline_sidebar_entry_get_total_offline (LibraryOfflineSidebarEntry* self)
-{
- gint result = 0;
- gint total = 0;
-#line 25 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- g_return_val_if_fail (LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY (self), 0);
-#line 26 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- total = 0;
-#line 485 "OfflineSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- while (TRUE) {
-#line 514 "OfflineSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- gint _tmp9_;
- MediaSourceCollection* _tmp10_;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- break;
-#line 531 "OfflineSidebarEntry.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp9_ = total;
-#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp10_ = media_sources;
-#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp11_ = media_source_collection_get_offline_bin_contents (_tmp10_);
-#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp12_ = _tmp11_;
-#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp13_ = gee_collection_get_size (_tmp12_);
-#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp14_ = _tmp13_;
-#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- total = _tmp9_ + _tmp14_;
-#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _g_object_unref0 (_tmp12_);
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 557 "OfflineSidebarEntry.c"
- }
-#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 561 "OfflineSidebarEntry.c"
- }
-#line 30 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- result = total;
-#line 30 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- return result;
-#line 567 "OfflineSidebarEntry.c"
-}
-
-
-static gchar*
-library_offline_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- LibraryOfflineSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry);
-#line 34 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp0_ = g_strdup (OFFLINE_PAGE_NAME);
-#line 34 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- result = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- return result;
-#line 585 "OfflineSidebarEntry.c"
-}
-
-
-static gchar*
-library_offline_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- LibraryOfflineSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry);
-#line 38 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_MISSING_FILES);
-#line 38 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- result = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- return result;
-#line 603 "OfflineSidebarEntry.c"
-}
-
-
-static Page*
-library_offline_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- LibraryOfflineSidebarEntry * self;
- Page* result = NULL;
- OfflinePage* _tmp0_;
-#line 41 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry);
-#line 42 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp0_ = offline_page_new ();
-#line 42 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- g_object_ref_sink (_tmp0_);
-#line 42 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
-#line 42 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- return result;
-#line 623 "OfflineSidebarEntry.c"
-}
-
-
-static void
-library_offline_sidebar_entry_class_init (LibraryOfflineSidebarEntryClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- library_offline_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_offline_sidebar_entry_real_get_sidebar_name;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_offline_sidebar_entry_real_get_sidebar_icon;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_offline_sidebar_entry_real_create_page;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- G_OBJECT_CLASS (klass)->finalize = library_offline_sidebar_entry_finalize;
-#line 640 "OfflineSidebarEntry.c"
-}
-
-
-static void
-library_offline_sidebar_entry_instance_init (LibraryOfflineSidebarEntry * self)
-{
-}
-
-
-static void
-library_offline_sidebar_entry_finalize (GObject * obj)
-{
- LibraryOfflineSidebarEntry * self;
-#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry);
-#line 656 "OfflineSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- while (TRUE) {
-#line 685 "OfflineSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
- guint _tmp10_;
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- break;
-#line 698 "OfflineSidebarEntry.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 18 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 18 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 18 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_trashcan_contents_altered, self);
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 714 "OfflineSidebarEntry.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 718 "OfflineSidebarEntry.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala"
- G_OBJECT_CLASS (library_offline_sidebar_entry_parent_class)->finalize (obj);
-#line 722 "OfflineSidebarEntry.c"
-}
-
-
-GType
-library_offline_sidebar_entry_get_type (void)
-{
- static volatile gsize library_offline_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&library_offline_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryOfflineSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_offline_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryOfflineSidebarEntry), 0, (GInstanceInitFunc) library_offline_sidebar_entry_instance_init, NULL };
- GType library_offline_sidebar_entry_type_id;
- library_offline_sidebar_entry_type_id = g_type_register_static (LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, "LibraryOfflineSidebarEntry", &g_define_type_info, 0);
- g_once_init_leave (&library_offline_sidebar_entry_type_id__volatile, library_offline_sidebar_entry_type_id);
- }
- return library_offline_sidebar_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/library/TrashPage.c b/src/library/TrashPage.c
deleted file mode 100644
index 9d1f7a9..0000000
--- a/src/library/TrashPage.c
+++ /dev/null
@@ -1,1722 +0,0 @@
-/* TrashPage.c generated by valac 0.40.4, the Vala compiler
- * generated from TrashPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#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 <cairo.h>
-#include <float.h>
-#include <math.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_TRASH_PAGE (trash_page_get_type ())
-#define TRASH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_PAGE, TrashPage))
-#define TRASH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_PAGE, TrashPageClass))
-#define IS_TRASH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_PAGE))
-#define IS_TRASH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_PAGE))
-#define TRASH_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_PAGE, TrashPageClass))
-
-typedef struct _TrashPage TrashPage;
-typedef struct _TrashPageClass TrashPageClass;
-typedef struct _TrashPagePrivate TrashPagePrivate;
-
-#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ())
-#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter))
-#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
-#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
-
-typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter;
-typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass;
-
-#define TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER (trash_page_trash_search_view_filter_get_type ())
-#define TRASH_PAGE_TRASH_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER, TrashPageTrashSearchViewFilter))
-#define TRASH_PAGE_TRASH_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER, TrashPageTrashSearchViewFilterClass))
-#define TRASH_PAGE_IS_TRASH_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER))
-#define TRASH_PAGE_IS_TRASH_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER))
-#define TRASH_PAGE_TRASH_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER, TrashPageTrashSearchViewFilterClass))
-
-typedef struct _TrashPageTrashSearchViewFilter TrashPageTrashSearchViewFilter;
-typedef struct _TrashPageTrashSearchViewFilterClass TrashPageTrashSearchViewFilterClass;
-
-#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ())
-#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker))
-#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER))
-#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER))
-#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass))
-
-typedef struct _MediaViewTracker MediaViewTracker;
-typedef struct _MediaViewTrackerClass MediaViewTrackerClass;
-enum {
- TRASH_PAGE_0_PROPERTY,
- TRASH_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* trash_page_properties[TRASH_PAGE_NUM_PROPERTIES];
-#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
-#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
-#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
-#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
-
-typedef struct _MediaSourceItem MediaSourceItem;
-typedef struct _MediaSourceItemClass MediaSourceItemClass;
-
-#define TYPE_THUMBNAIL (thumbnail_get_type ())
-#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail))
-#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass))
-#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL))
-#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL))
-#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass))
-
-typedef struct _Thumbnail Thumbnail;
-typedef struct _ThumbnailClass ThumbnailClass;
-
-#define TRASH_PAGE_TYPE_TRASH_VIEW (trash_page_trash_view_get_type ())
-#define TRASH_PAGE_TRASH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRASH_PAGE_TYPE_TRASH_VIEW, TrashPageTrashView))
-#define TRASH_PAGE_TRASH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRASH_PAGE_TYPE_TRASH_VIEW, TrashPageTrashViewClass))
-#define TRASH_PAGE_IS_TRASH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRASH_PAGE_TYPE_TRASH_VIEW))
-#define TRASH_PAGE_IS_TRASH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRASH_PAGE_TYPE_TRASH_VIEW))
-#define TRASH_PAGE_TRASH_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRASH_PAGE_TYPE_TRASH_VIEW, TrashPageTrashViewClass))
-
-typedef struct _TrashPageTrashView TrashPageTrashView;
-typedef struct _TrashPageTrashViewClass TrashPageTrashViewClass;
-
-#define TYPE_MARKER (marker_get_type ())
-#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
-#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
-#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
-
-typedef struct _Marker Marker;
-typedef struct _MarkerIface MarkerIface;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#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_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ())
-#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-
-typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand;
-typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-typedef struct _DataViewPrivate DataViewPrivate;
-typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate;
-typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate;
-typedef struct _ThumbnailPrivate ThumbnailPrivate;
-typedef struct _TrashPageTrashViewPrivate TrashPageTrashViewPrivate;
-enum {
- TRASH_PAGE_TRASH_VIEW_0_PROPERTY,
- TRASH_PAGE_TRASH_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* trash_page_trash_view_properties[TRASH_PAGE_TRASH_VIEW_NUM_PROPERTIES];
-typedef struct _ViewFilterPrivate ViewFilterPrivate;
-typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate;
-typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate;
-typedef struct _TrashPageTrashSearchViewFilterPrivate TrashPageTrashSearchViewFilterPrivate;
-
-#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ())
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-struct _TrashPage {
- CheckerboardPage parent_instance;
- TrashPagePrivate * priv;
-};
-
-struct _TrashPageClass {
- CheckerboardPageClass parent_class;
-};
-
-struct _TrashPagePrivate {
- TrashPageTrashSearchViewFilter* search_filter;
- MediaViewTracker* tracker;
-};
-
-struct _MarkerIface {
- GTypeInterface parent_iface;
- void (*mark) (Marker* self, DataObject* object);
- void (*unmark) (Marker* self, DataObject* object);
- gboolean (*toggle) (Marker* self, DataObject* object);
- void (*mark_many) (Marker* self, GeeCollection* list);
- void (*unmark_many) (Marker* self, GeeCollection* list);
- void (*mark_all) (Marker* self);
- gint (*get_count) (Marker* self);
- GeeCollection* (*get_all) (Marker* self);
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataView {
- DataObject parent_instance;
- DataViewPrivate * priv;
-};
-
-struct _DataViewClass {
- DataObjectClass parent_class;
- void (*notify_view_altered) (DataView* self);
- void (*notify_geometry_altered) (DataView* self);
- void (*notify_unsubscribed) (DataView* self, DataSource* source);
- void (*state_changed) (DataView* self, gboolean selected);
- void (*visibility_changed) (DataView* self, gboolean visible);
- void (*view_altered) (DataView* self);
- void (*geometry_altered) (DataView* self);
- void (*unsubscribed) (DataView* self, DataSource* source);
-};
-
-struct _ThumbnailView {
- DataView parent_instance;
- ThumbnailViewPrivate * priv;
-};
-
-struct _ThumbnailViewClass {
- DataViewClass parent_class;
- void (*notify_thumbnail_altered) (ThumbnailView* self);
- void (*thumbnail_altered) (ThumbnailView* self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _CheckerboardItem {
- ThumbnailView parent_instance;
- CheckerboardItemPrivate * priv;
- Dimensions requisition;
- GdkRectangle allocation;
-};
-
-struct _CheckerboardItemClass {
- ThumbnailViewClass parent_class;
- void (*exposed) (CheckerboardItem* self);
- void (*unexposed) (CheckerboardItem* self);
- gboolean (*is_exposed) (CheckerboardItem* self);
- void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha);
- void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width);
- void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin);
- GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale);
- GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale);
-};
-
-struct _MediaSourceItem {
- CheckerboardItem parent_instance;
- MediaSourceItemPrivate * priv;
-};
-
-struct _MediaSourceItemClass {
- CheckerboardItemClass parent_class;
-};
-
-struct _Thumbnail {
- MediaSourceItem parent_instance;
- ThumbnailPrivate * priv;
-};
-
-struct _ThumbnailClass {
- MediaSourceItemClass parent_class;
-};
-
-struct _TrashPageTrashView {
- Thumbnail parent_instance;
- TrashPageTrashViewPrivate * priv;
-};
-
-struct _TrashPageTrashViewClass {
- ThumbnailClass parent_class;
-};
-
-struct _ViewFilter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewFilterPrivate * priv;
-};
-
-struct _ViewFilterClass {
- GTypeClass parent_class;
- void (*finalize) (ViewFilter *self);
- gboolean (*predicate) (ViewFilter* self, DataView* view);
- void (*refresh) (ViewFilter* self);
-};
-
-struct _SearchViewFilter {
- ViewFilter parent_instance;
- SearchViewFilterPrivate * priv;
-};
-
-struct _SearchViewFilterClass {
- ViewFilterClass parent_class;
- guint (*get_criteria) (SearchViewFilter* self);
-};
-
-struct _DefaultSearchViewFilter {
- SearchViewFilter parent_instance;
- DefaultSearchViewFilterPrivate * priv;
-};
-
-struct _DefaultSearchViewFilterClass {
- SearchViewFilterClass parent_class;
-};
-
-struct _TrashPageTrashSearchViewFilter {
- DefaultSearchViewFilter parent_instance;
- TrashPageTrashSearchViewFilterPrivate * priv;
-};
-
-struct _TrashPageTrashSearchViewFilterClass {
- DefaultSearchViewFilterClass parent_class;
-};
-
-typedef enum {
- SEARCH_FILTER_CRITERIA_NONE = 0,
- SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0,
- SEARCH_FILTER_CRITERIA_TEXT = 1 << 1,
- SEARCH_FILTER_CRITERIA_FLAG = 1 << 2,
- SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3,
- SEARCH_FILTER_CRITERIA_RATING = 1 << 4,
- SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5,
- SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL
-} SearchFilterCriteria;
-
-
-static gpointer trash_page_parent_class = NULL;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-static gpointer trash_page_trash_view_parent_class = NULL;
-static gpointer trash_page_trash_search_view_filter_parent_class = NULL;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType trash_page_get_type (void) G_GNUC_CONST;
-GType default_search_view_filter_get_type (void) G_GNUC_CONST;
-static GType trash_page_trash_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType media_view_tracker_get_type (void) G_GNUC_CONST;
-#define TRASH_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRASH_PAGE, TrashPagePrivate))
-static TrashPageTrashSearchViewFilter* trash_page_trash_search_view_filter_new (void);
-static TrashPageTrashSearchViewFilter* trash_page_trash_search_view_filter_construct (GType object_type);
-#define TRASH_PAGE_NAME _ ("Trash")
-static void trash_page_on_delete (TrashPage* self);
-static void _trash_page_on_delete_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void trash_page_on_restore (TrashPage* self);
-static void _trash_page_on_restore_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-TrashPage* trash_page_new (void);
-TrashPage* trash_page_construct (GType object_type);
-CheckerboardPage* checkerboard_page_construct (GType object_type,
- const gchar* page_name);
-void checkerboard_page_init_item_context_menu (CheckerboardPage* self,
- const gchar* path);
-void checkerboard_page_init_page_context_menu (CheckerboardPage* self,
- const gchar* path);
-void page_init_toolbar (Page* self,
- const gchar* path);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-MediaViewTracker* media_view_tracker_new (ViewCollection* collection);
-MediaViewTracker* media_view_tracker_construct (GType object_type,
- ViewCollection* collection);
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-static void trash_page_on_trashcan_contents_altered (TrashPage* self,
- GeeCollection* added,
- GeeCollection* removed);
-static void _trash_page_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-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,
- 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);
-void page_set_common_action_important (Page* self,
- const gchar* name,
- gboolean important);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-gboolean data_collection_add (DataCollection* self,
- DataObject* object);
-static TrashPageTrashView* trash_page_trash_view_new (MediaSource* source);
-static TrashPageTrashView* trash_page_trash_view_construct (GType object_type,
- MediaSource* source);
-GType media_source_item_get_type (void) G_GNUC_CONST;
-GType thumbnail_get_type (void) G_GNUC_CONST;
-static GType trash_page_trash_view_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType marker_get_type (void) G_GNUC_CONST;
-Marker* data_collection_start_marking (DataCollection* self);
-void marker_mark (Marker* self,
- DataObject* object);
-DataView* view_collection_get_view_for_source (ViewCollection* self,
- DataSource* source);
-void data_collection_remove_marked (DataCollection* self,
- Marker* m);
-gint view_collection_get_selected_count (ViewCollection* self);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* page_get_command_manager (Page* self);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-GeeList* view_collection_get_selected_sources (ViewCollection* self);
-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;
-TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources,
- gboolean to_trash);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean to_trash);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST;
-static gchar* trash_page_real_get_view_empty_message (CheckerboardPage* base);
-void remove_from_app (GeeCollection* sources,
- const gchar* dialog_title,
- const gchar* progress_dialog_text);
-static SearchViewFilter* trash_page_real_get_search_view_filter (CheckerboardPage* base);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-gint thumbnail_get_DEFAULT_SCALE (void);
-Thumbnail* thumbnail_new (MediaSource* media,
- gint scale);
-Thumbnail* thumbnail_construct (GType object_type,
- MediaSource* media,
- gint scale);
-gboolean media_source_is_trashed (MediaSource* self);
-static guint trash_page_trash_search_view_filter_real_get_criteria (SearchViewFilter* base);
-GType search_filter_criteria_get_type (void) G_GNUC_CONST;
-DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type);
-static void trash_page_finalize (GObject * obj);
-
-static const GActionEntry TRASH_PAGE_entries[2] = {{"Delete", _trash_page_on_delete_gsimple_action_activate_callback}, {"Restore", _trash_page_on_restore_gsimple_action_activate_callback}};
-
-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 958 "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 969 "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 981 "TrashPage.c"
-}
-
-
-TrashPage*
-trash_page_construct (GType object_type)
-{
- TrashPage * self = NULL;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- MediaViewTracker* _tmp2_;
- LibraryPhotoSourceCollection* _tmp3_;
- VideoSourceCollection* _tmp4_;
- LibraryPhotoSourceCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeCollection* _tmp7_;
- VideoSourceCollection* _tmp8_;
- GeeCollection* _tmp9_;
- GeeCollection* _tmp10_;
-#line 29 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = (TrashPage*) checkerboard_page_construct (object_type, TRASH_PAGE_NAME);
-#line 31 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "TrashContextMenu");
-#line 32 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "TrashPageMenu");
-#line 33 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- page_init_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "TrashToolbar");
-#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp1_ = _tmp0_;
-#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp2_ = media_view_tracker_new (_tmp1_);
-#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _core_tracker_unref0 (self->priv->tracker);
-#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self->priv->tracker = _tmp2_;
-#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 38 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp3_ = library_photo_global;
-#line 38 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", (GCallback) _trash_page_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0);
-#line 39 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp4_ = video_global;
-#line 39 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", (GCallback) _trash_page_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0);
-#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp5_ = library_photo_global;
-#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp6_ = media_source_collection_get_trashcan_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp7_ = _tmp6_;
-#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- trash_page_on_trashcan_contents_altered (self, _tmp7_, NULL);
-#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp8_ = video_global;
-#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp9_ = media_source_collection_get_trashcan_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp10_ = _tmp9_;
-#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- trash_page_on_trashcan_contents_altered (self, _tmp10_, NULL);
-#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 28 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- return self;
-#line 1050 "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 1059 "TrashPage.c"
-}
-
-
-static void
-trash_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- TrashPage * self;
-#line 44 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage);
-#line 44 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 45 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- PAGE_CLASS (trash_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), ui_filenames);
-#line 47 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "trash.ui");
-#line 1076 "TrashPage.c"
-}
-
-
-static void
-trash_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- TrashPage * self;
-#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), map);
-#line 58 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_action_map_add_action_entries (map, TRASH_PAGE_entries, G_N_ELEMENTS (TRASH_PAGE_entries), self);
-#line 1093 "TrashPage.c"
-}
-
-
-static void
-trash_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- TrashPage * self;
-#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"
- 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), map);
-#line 1108 "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 1120 "TrashPage.c"
- GActionEntry entry = {0};
-#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- entry = entry_collection[entry_it];
-#line 1124 "TrashPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = entry;
-#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 1134 "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 1146 "TrashPage.c"
-}
-
-
-static CoreViewTracker*
-trash_page_real_get_view_tracker (CheckerboardPage* base)
-{
- TrashPage * self;
- CoreViewTracker* result = NULL;
- MediaViewTracker* _tmp0_;
- CoreViewTracker* _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage);
-#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = self->priv->tracker;
-#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 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- result = _tmp1_;
-#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- return result;
-#line 1167 "TrashPage.c"
-}
-
-
-static void
-trash_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- TrashPage * self;
- gboolean has_selected = FALSE;
-#line 72 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage);
-#line 73 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- has_selected = selected_count > 0;
-#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 76 "/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 77 "/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 79 "/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), selected_count, count);
-#line 1190 "TrashPage.c"
-}
-
-
-static void
-trash_page_on_trashcan_contents_altered (TrashPage* self,
- GeeCollection* added,
- GeeCollection* removed)
-{
-#line 82 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_return_if_fail (IS_TRASH_PAGE (self));
-#line 82 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
-#line 82 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 84 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- if (added != NULL) {
-#line 1207 "TrashPage.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable));
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _source_it = _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- while (TRUE) {
-#line 1217 "TrashPage.c"
- GeeIterator* _tmp1_;
- MediaSource* source = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- MediaSource* _tmp6_;
- TrashPageTrashView* _tmp7_;
- TrashPageTrashView* _tmp8_;
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp1_ = _source_it;
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- break;
-#line 1233 "TrashPage.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp2_ = _source_it;
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- source = (MediaSource*) _tmp3_;
-#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp5_ = _tmp4_;
-#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp6_ = source;
-#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp7_ = trash_page_trash_view_new (_tmp6_);
-#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp8_ = _tmp7_;
-#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (source);
-#line 1259 "TrashPage.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_source_it);
-#line 1263 "TrashPage.c"
- }
- }
-#line 89 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- if (removed != NULL) {
-#line 1268 "TrashPage.c"
- Marker* marker = NULL;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- Marker* _tmp11_;
- Marker* _tmp12_;
- ViewCollection* _tmp23_;
- ViewCollection* _tmp24_;
- Marker* _tmp25_;
-#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp10_ = _tmp9_;
-#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp11_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection));
-#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp12_ = _tmp11_;
-#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- marker = _tmp12_;
-#line 1289 "TrashPage.c"
- {
- GeeIterator* _source_it = NULL;
- GeeIterator* _tmp13_;
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable));
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _source_it = _tmp13_;
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- while (TRUE) {
-#line 1299 "TrashPage.c"
- GeeIterator* _tmp14_;
- MediaSource* source = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- Marker* _tmp17_;
- ViewCollection* _tmp18_;
- ViewCollection* _tmp19_;
- MediaSource* _tmp20_;
- DataView* _tmp21_;
- DataView* _tmp22_;
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp14_ = _source_it;
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- break;
-#line 1316 "TrashPage.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp15_ = _source_it;
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- source = (MediaSource*) _tmp16_;
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp17_ = marker;
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp18_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp19_ = _tmp18_;
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp20_ = source;
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp21_ = view_collection_get_view_for_source (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_SOURCE, DataSource));
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp22_ = _tmp21_;
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- marker_mark (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject));
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_tmp22_);
-#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp19_);
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (source);
-#line 1344 "TrashPage.c"
- }
-#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_source_it);
-#line 1348 "TrashPage.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp23_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp24_ = _tmp23_;
-#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp25_ = marker;
-#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), _tmp25_);
-#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp24_);
-#line 89 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (marker);
-#line 1362 "TrashPage.c"
- }
-}
-
-
-static void
-trash_page_on_restore (TrashPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
- CommandManager* _tmp3_;
- CommandManager* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- GeeList* _tmp7_;
- GeeCollection* _tmp8_;
- TrashUntrashPhotosCommand* _tmp9_;
- TrashUntrashPhotosCommand* _tmp10_;
-#line 97 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_return_if_fail (IS_TRASH_PAGE (self));
-#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp1_ = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
-#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- if (_tmp2_) {
-#line 99 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- return;
-#line 1395 "TrashPage.c"
- }
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp3_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp4_ = _tmp3_;
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp6_ = _tmp5_;
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp7_ = view_collection_get_selected_sources (_tmp6_);
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp9_ = trash_untrash_photos_command_new (_tmp8_, FALSE);
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp10_ = _tmp9_;
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command));
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_tmp8_);
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _command_manager_unref0 (_tmp4_);
-#line 1423 "TrashPage.c"
-}
-
-
-static gchar*
-trash_page_real_get_view_empty_message (CheckerboardPage* base)
-{
- TrashPage * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage);
-#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = g_strdup (_ ("Trash is empty"));
-#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- result = _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- return result;
-#line 1441 "TrashPage.c"
-}
-
-
-static void
-trash_page_on_delete (TrashPage* self)
-{
- const gchar* _tmp0_ = NULL;
- ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
- gboolean _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- GeeList* _tmp6_;
- GeeCollection* _tmp7_;
-#line 109 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_return_if_fail (IS_TRASH_PAGE (self));
-#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp2_ = _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp3_ = view_collection_get_selected_count (_tmp2_) == 1;
-#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp2_);
-#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- if (_tmp3_) {
-#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = "Deleting a Photo";
-#line 1470 "TrashPage.c"
- } else {
-#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = _ ("Deleting Photos");
-#line 1474 "TrashPage.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp5_ = _tmp4_;
-#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp6_ = view_collection_get_selected_sources (_tmp5_);
-#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- remove_from_app (_tmp7_, _ ("Delete"), _tmp0_);
-#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 1490 "TrashPage.c"
-}
-
-
-static gpointer
-_view_filter_ref0 (gpointer self)
-{
-#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- return self ? view_filter_ref (self) : NULL;
-#line 1499 "TrashPage.c"
-}
-
-
-static SearchViewFilter*
-trash_page_real_get_search_view_filter (CheckerboardPage* base)
-{
- TrashPage * self;
- SearchViewFilter* result = NULL;
- TrashPageTrashSearchViewFilter* _tmp0_;
- SearchViewFilter* _tmp1_;
-#line 114 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage);
-#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = self->priv->search_filter;
-#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- result = _tmp1_;
-#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- return result;
-#line 1520 "TrashPage.c"
-}
-
-
-static TrashPageTrashView*
-trash_page_trash_view_construct (GType object_type,
- MediaSource* source)
-{
- TrashPageTrashView * self = NULL;
- gint _tmp0_;
- gint _tmp1_;
-#line 11 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 12 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = thumbnail_get_DEFAULT_SCALE ();
-#line 12 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp1_ = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = (TrashPageTrashView*) thumbnail_construct (object_type, source, _tmp1_);
-#line 14 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _vala_assert (media_source_is_trashed (source), "source.is_trashed()");
-#line 11 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- return self;
-#line 1543 "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 1552 "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 1561 "TrashPage.c"
-}
-
-
-static void
-trash_page_trash_view_instance_init (TrashPageTrashView * self)
-{
-}
-
-
-static GType
-trash_page_trash_view_get_type (void)
-{
- static volatile gsize trash_page_trash_view_type_id__volatile = 0;
- if (g_once_init_enter (&trash_page_trash_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TrashPageTrashViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_page_trash_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashPageTrashView), 0, (GInstanceInitFunc) trash_page_trash_view_instance_init, NULL };
- GType trash_page_trash_view_type_id;
- trash_page_trash_view_type_id = g_type_register_static (TYPE_THUMBNAIL, "TrashPageTrashView", &g_define_type_info, 0);
- g_once_init_leave (&trash_page_trash_view_type_id__volatile, trash_page_trash_view_type_id);
- }
- return trash_page_trash_view_type_id__volatile;
-}
-
-
-static guint
-trash_page_trash_search_view_filter_real_get_criteria (SearchViewFilter* base)
-{
- TrashPageTrashSearchViewFilter * self;
- guint result = 0U;
-#line 19 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER, TrashPageTrashSearchViewFilter);
-#line 20 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- 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 1596 "TrashPage.c"
-}
-
-
-static TrashPageTrashSearchViewFilter*
-trash_page_trash_search_view_filter_construct (GType object_type)
-{
- TrashPageTrashSearchViewFilter* self = NULL;
-#line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = (TrashPageTrashSearchViewFilter*) default_search_view_filter_construct (object_type);
-#line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- return self;
-#line 1608 "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 1617 "TrashPage.c"
-}
-
-
-static void
-trash_page_trash_search_view_filter_class_init (TrashPageTrashSearchViewFilterClass * klass)
-{
-#line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- 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 = (guint (*) (SearchViewFilter *)) trash_page_trash_search_view_filter_real_get_criteria;
-#line 1628 "TrashPage.c"
-}
-
-
-static void
-trash_page_trash_search_view_filter_instance_init (TrashPageTrashSearchViewFilter * self)
-{
-}
-
-
-static GType
-trash_page_trash_search_view_filter_get_type (void)
-{
- static volatile gsize trash_page_trash_search_view_filter_type_id__volatile = 0;
- if (g_once_init_enter (&trash_page_trash_search_view_filter_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TrashPageTrashSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_page_trash_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashPageTrashSearchViewFilter), 0, (GInstanceInitFunc) trash_page_trash_search_view_filter_instance_init, NULL };
- GType trash_page_trash_search_view_filter_type_id;
- trash_page_trash_search_view_filter_type_id = g_type_register_static (TYPE_DEFAULT_SEARCH_VIEW_FILTER, "TrashPageTrashSearchViewFilter", &g_define_type_info, 0);
- g_once_init_leave (&trash_page_trash_search_view_filter_type_id__volatile, trash_page_trash_search_view_filter_type_id);
- }
- return trash_page_trash_search_view_filter_type_id__volatile;
-}
-
-
-static void
-trash_page_class_init (TrashPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- trash_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- g_type_class_add_private (klass, sizeof (TrashPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) trash_page_real_init_collect_ui_filenames;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) trash_page_real_add_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) trash_page_real_remove_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) trash_page_real_get_view_tracker;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) trash_page_real_update_actions;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- ((CheckerboardPageClass *) klass)->get_view_empty_message = (gchar* (*) (CheckerboardPage *)) trash_page_real_get_view_empty_message;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) 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 1675 "TrashPage.c"
-}
-
-
-static void
-trash_page_instance_init (TrashPage * self)
-{
- TrashPageTrashSearchViewFilter* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self->priv = TRASH_PAGE_GET_PRIVATE (self);
-#line 25 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _tmp0_ = trash_page_trash_search_view_filter_new ();
-#line 25 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self->priv->search_filter = _tmp0_;
-#line 1689 "TrashPage.c"
-}
-
-
-static void
-trash_page_finalize (GObject * obj)
-{
- TrashPage * self;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRASH_PAGE, TrashPage);
-#line 25 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _view_filter_unref0 (self->priv->search_filter);
-#line 26 "/home/jens/Source/shotwell/src/library/TrashPage.vala"
- _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 1705 "TrashPage.c"
-}
-
-
-GType
-trash_page_get_type (void)
-{
- static volatile gsize trash_page_type_id__volatile = 0;
- if (g_once_init_enter (&trash_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TrashPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashPage), 0, (GInstanceInitFunc) trash_page_instance_init, NULL };
- GType trash_page_type_id;
- trash_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "TrashPage", &g_define_type_info, 0);
- g_once_init_leave (&trash_page_type_id__volatile, trash_page_type_id);
- }
- return trash_page_type_id__volatile;
-}
-
-
-
diff --git a/src/library/TrashSidebarEntry.c b/src/library/TrashSidebarEntry.c
deleted file mode 100644
index 796281b..0000000
--- a/src/library/TrashSidebarEntry.c
+++ /dev/null
@@ -1,870 +0,0 @@
-/* TrashSidebarEntry.c generated by valac 0.40.4, the Vala compiler
- * generated from TrashSidebarEntry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <gee.h>
-#include <glib/gi18n-lib.h>
-
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-
-#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ())
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry))
-#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY))
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface))
-
-typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry;
-typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY (library_trash_sidebar_entry_get_type ())
-#define LIBRARY_TRASH_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry))
-#define LIBRARY_TRASH_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntryClass))
-#define LIBRARY_IS_TRASH_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY))
-#define LIBRARY_IS_TRASH_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY))
-#define LIBRARY_TRASH_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntryClass))
-
-typedef struct _LibraryTrashSidebarEntry LibraryTrashSidebarEntry;
-typedef struct _LibraryTrashSidebarEntryClass LibraryTrashSidebarEntryClass;
-typedef struct _LibraryTrashSidebarEntryPrivate LibraryTrashSidebarEntryPrivate;
-enum {
- LIBRARY_TRASH_SIDEBAR_ENTRY_0_PROPERTY,
- LIBRARY_TRASH_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* library_trash_sidebar_entry_properties[LIBRARY_TRASH_SIDEBAR_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ())
-#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND))
-#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass))
-
-typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand;
-typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_TRASH_PAGE (trash_page_get_type ())
-#define TRASH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_PAGE, TrashPage))
-#define TRASH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_PAGE, TrashPageClass))
-#define IS_TRASH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_PAGE))
-#define IS_TRASH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_PAGE))
-#define TRASH_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_PAGE, TrashPageClass))
-
-typedef struct _TrashPage TrashPage;
-typedef struct _TrashPageClass TrashPageClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _SidebarInternalDropTargetEntryIface {
- GTypeInterface parent_iface;
- gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources);
- gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data);
-};
-
-struct _LibraryTrashSidebarEntry {
- SidebarSimplePageEntry parent_instance;
- LibraryTrashSidebarEntryPrivate * priv;
-};
-
-struct _LibraryTrashSidebarEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-
-static gpointer library_trash_sidebar_entry_parent_class = NULL;
-static SidebarInternalDropTargetEntryIface * library_trash_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = NULL;
-
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST;
-GType library_trash_sidebar_entry_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-static void library_trash_sidebar_entry_on_trashcan_contents_altered (LibraryTrashSidebarEntry* self);
-static void _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self);
-LibraryTrashSidebarEntry* library_trash_sidebar_entry_new (void);
-LibraryTrashSidebarEntry* library_trash_sidebar_entry_construct (GType object_type);
-SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
-void library_trash_sidebar_entry_init (void);
-void library_trash_sidebar_entry_terminate (void);
-static gchar* library_trash_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-#define TRASH_PAGE_NAME _ ("Trash")
-static gchar* library_trash_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static gchar* library_trash_sidebar_entry_get_current_icon (void);
-gint media_source_collection_get_trashcan_count (MediaSourceCollection* self);
-#define RESOURCES_ICON_TRASH_FULL "user-trash-full"
-#define RESOURCES_ICON_TRASH_EMPTY "user-trash"
-static gboolean library_trash_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* app_window_get_command_manager (void);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources,
- gboolean to_trash);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type,
- GeeCollection* sources,
- gboolean to_trash);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST;
-static gboolean library_trash_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data);
-static Page* library_trash_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-TrashPage* trash_page_new (void);
-TrashPage* trash_page_construct (GType object_type);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType trash_page_get_type (void) G_GNUC_CONST;
-static void library_trash_sidebar_entry_finalize (GObject * obj);
-
-
-static void
-_library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender,
- GeeCollection* added,
- GeeCollection* removed,
- gpointer self)
-{
-#line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- library_trash_sidebar_entry_on_trashcan_contents_altered ((LibraryTrashSidebarEntry*) self);
-#line 427 "TrashSidebarEntry.c"
-}
-
-
-LibraryTrashSidebarEntry*
-library_trash_sidebar_entry_construct (GType object_type)
-{
- LibraryTrashSidebarEntry * self = NULL;
-#line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- self = (LibraryTrashSidebarEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 437 "TrashSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- while (TRUE) {
-#line 466 "TrashSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- break;
-#line 478 "TrashSidebarEntry.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 11 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 11 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- g_signal_connect_object (_tmp9_, "trashcan-contents-altered", (GCallback) _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0);
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 492 "TrashSidebarEntry.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 496 "TrashSidebarEntry.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return self;
-#line 500 "TrashSidebarEntry.c"
-}
-
-
-LibraryTrashSidebarEntry*
-library_trash_sidebar_entry_new (void)
-{
-#line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return library_trash_sidebar_entry_construct (LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY);
-#line 509 "TrashSidebarEntry.c"
-}
-
-
-void
-library_trash_sidebar_entry_init (void)
-{
-}
-
-
-void
-library_trash_sidebar_entry_terminate (void)
-{
-}
-
-
-static gchar*
-library_trash_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- LibraryTrashSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry);
-#line 26 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp0_ = g_strdup (TRASH_PAGE_NAME);
-#line 26 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- result = _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return result;
-#line 539 "TrashSidebarEntry.c"
-}
-
-
-static gchar*
-library_trash_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- LibraryTrashSidebarEntry * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry);
-#line 30 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp0_ = library_trash_sidebar_entry_get_current_icon ();
-#line 30 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- result = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return result;
-#line 557 "TrashSidebarEntry.c"
-}
-
-
-static gchar*
-library_trash_sidebar_entry_get_current_icon (void)
-{
- gchar* result = NULL;
- gchar* _tmp11_;
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- while (TRUE) {
-#line 594 "TrashSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- break;
-#line 606 "TrashSidebarEntry.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 35 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 35 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- if (media_source_collection_get_trashcan_count (_tmp9_) > 0) {
-#line 618 "TrashSidebarEntry.c"
- gchar* _tmp10_;
-#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp10_ = g_strdup (RESOURCES_ICON_TRASH_FULL);
-#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- result = _tmp10_;
-#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return result;
-#line 630 "TrashSidebarEntry.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 634 "TrashSidebarEntry.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 638 "TrashSidebarEntry.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp11_ = g_strdup (RESOURCES_ICON_TRASH_EMPTY);
-#line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- result = _tmp11_;
-#line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return result;
-#line 646 "TrashSidebarEntry.c"
-}
-
-
-static gboolean
-library_trash_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media)
-{
- LibraryTrashSidebarEntry * self;
- gboolean result = FALSE;
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
- TrashUntrashPhotosCommand* _tmp2_;
- TrashUntrashPhotosCommand* _tmp3_;
-#line 42 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry);
-#line 42 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- g_return_val_if_fail (GEE_IS_LIST (media), FALSE);
-#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp0_ = app_window_get_command_manager ();
-#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp2_ = trash_untrash_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), TRUE);
-#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_COMMAND, Command));
-#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _command_manager_unref0 (_tmp1_);
-#line 45 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- result = TRUE;
-#line 45 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return result;
-#line 682 "TrashSidebarEntry.c"
-}
-
-
-static gboolean
-library_trash_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data)
-{
- LibraryTrashSidebarEntry * self;
- gboolean result = FALSE;
-#line 48 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry);
-#line 48 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- g_return_val_if_fail (data != NULL, FALSE);
-#line 49 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- result = FALSE;
-#line 49 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return result;
-#line 700 "TrashSidebarEntry.c"
-}
-
-
-static Page*
-library_trash_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- LibraryTrashSidebarEntry * self;
- Page* result = NULL;
- TrashPage* _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry);
-#line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp0_ = trash_page_new ();
-#line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- g_object_ref_sink (_tmp0_);
-#line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
-#line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- return result;
-#line 720 "TrashSidebarEntry.c"
-}
-
-
-static void
-library_trash_sidebar_entry_on_trashcan_contents_altered (LibraryTrashSidebarEntry* self)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- g_return_if_fail (LIBRARY_IS_TRASH_SIDEBAR_ENTRY (self));
-#line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp0_ = library_trash_sidebar_entry_get_current_icon ();
-#line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-icon-changed", _tmp1_);
-#line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_free0 (_tmp1_);
-#line 739 "TrashSidebarEntry.c"
-}
-
-
-static void
-library_trash_sidebar_entry_class_init (LibraryTrashSidebarEntryClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- library_trash_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_trash_sidebar_entry_real_get_sidebar_name;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_trash_sidebar_entry_real_get_sidebar_icon;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_trash_sidebar_entry_real_create_page;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- G_OBJECT_CLASS (klass)->finalize = library_trash_sidebar_entry_finalize;
-#line 756 "TrashSidebarEntry.c"
-}
-
-
-static void
-library_trash_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface)
-{
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- library_trash_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) library_trash_sidebar_entry_real_internal_drop_received;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) library_trash_sidebar_entry_real_internal_drop_received_arbitrary;
-#line 769 "TrashSidebarEntry.c"
-}
-
-
-static void
-library_trash_sidebar_entry_instance_init (LibraryTrashSidebarEntry * self)
-{
-}
-
-
-static void
-library_trash_sidebar_entry_finalize (GObject * obj)
-{
- LibraryTrashSidebarEntry * self;
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry);
-#line 785 "TrashSidebarEntry.c"
- {
- GeeIterator* _media_sources_it = NULL;
- MediaCollectionRegistry* _tmp0_;
- MediaCollectionRegistry* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp0_ = media_collection_registry_get_instance ();
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp1_ = _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp2_ = media_collection_registry_get_all (_tmp1_);
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp3_ = _tmp2_;
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp5_ = _tmp4_;
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_object_unref0 (_tmp3_);
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _media_collection_registry_unref0 (_tmp1_);
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _media_sources_it = _tmp5_;
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- while (TRUE) {
-#line 814 "TrashSidebarEntry.c"
- GeeIterator* _tmp6_;
- MediaSourceCollection* media_sources = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- MediaSourceCollection* _tmp9_;
- guint _tmp10_;
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp6_ = _media_sources_it;
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- break;
-#line 827 "TrashSidebarEntry.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp7_ = _media_sources_it;
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- media_sources = (MediaSourceCollection*) _tmp8_;
-#line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _tmp9_ = media_sources;
-#line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE);
-#line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self);
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _data_collection_unref0 (media_sources);
-#line 843 "TrashSidebarEntry.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- _g_object_unref0 (_media_sources_it);
-#line 847 "TrashSidebarEntry.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala"
- G_OBJECT_CLASS (library_trash_sidebar_entry_parent_class)->finalize (obj);
-#line 851 "TrashSidebarEntry.c"
-}
-
-
-GType
-library_trash_sidebar_entry_get_type (void)
-{
- static volatile gsize library_trash_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&library_trash_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (LibraryTrashSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_trash_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryTrashSidebarEntry), 0, (GInstanceInitFunc) library_trash_sidebar_entry_instance_init, NULL };
- static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) library_trash_sidebar_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType library_trash_sidebar_entry_type_id;
- library_trash_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "LibraryTrashSidebarEntry", &g_define_type_info, 0);
- g_type_add_interface_static (library_trash_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info);
- g_once_init_leave (&library_trash_sidebar_entry_type_id__volatile, library_trash_sidebar_entry_type_id);
- }
- return library_trash_sidebar_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/libshotwell.deps b/src/libshotwell.deps
new file mode 100644
index 0000000..62f5abe
--- /dev/null
+++ b/src/libshotwell.deps
@@ -0,0 +1,20 @@
+atk
+gdk-3.0
+gee-0.8
+gexiv2
+gio-unix-2.0
+glib-2.0
+gmodule-2.0
+gnome-vfs-2.0
+gstreamer-0.10
+gstreamer-base-0.10
+gtk+-3.0
+gudev-1.0
+libexif
+libraw
+libgphoto2
+libsoup-2.4
+libxml-2.0
+sqlite3
+unique-1.0
+webkit-1.0
diff --git a/src/main.c b/src/main.c
deleted file mode 100644
index 589461d..0000000
--- a/src/main.c
+++ /dev/null
@@ -1,3187 +0,0 @@
-/* main.c generated by valac 0.40.4, the Vala compiler
- * generated from main.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <glib/gi18n-lib.h>
-#include <gtk/gtk.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gee.h>
-#include <gexiv2/gexiv2.h>
-#include <unistd.h>
-
-
-#define TYPE_SHOTWELL_COMMAND (shotwell_command_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define DB_TYPE_VERIFY_RESULT (db_verify_result_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#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))
-#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG))
-#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG))
-#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass))
-
-typedef struct _ProgressDialog ProgressDialog;
-typedef struct _ProgressDialogClass ProgressDialogClass;
-
-#define TYPE_AGGREGATE_PROGRESS_MONITOR (aggregate_progress_monitor_get_type ())
-#define AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitor))
-#define AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass))
-#define IS_AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR))
-#define IS_AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR))
-#define AGGREGATE_PROGRESS_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass))
-
-typedef struct _AggregateProgressMonitor AggregateProgressMonitor;
-typedef struct _AggregateProgressMonitorClass AggregateProgressMonitorClass;
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_PHOTO_TABLE (photo_table_get_type ())
-#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable))
-#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass))
-#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE))
-#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE))
-#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass))
-
-typedef struct _PhotoTable PhotoTable;
-typedef struct _PhotoTableClass PhotoTableClass;
-
-#define TYPE_EVENT_TABLE (event_table_get_type ())
-#define EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_TABLE, EventTable))
-#define EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_TABLE, EventTableClass))
-#define IS_EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_TABLE))
-#define IS_EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_TABLE))
-#define EVENT_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_TABLE, EventTableClass))
-
-typedef struct _EventTable EventTable;
-typedef struct _EventTableClass EventTableClass;
-
-#define TYPE_TAG_TABLE (tag_table_get_type ())
-#define TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_TABLE, TagTable))
-#define TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_TABLE, TagTableClass))
-#define IS_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_TABLE))
-#define IS_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_TABLE))
-#define TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_TABLE, TagTableClass))
-
-typedef struct _TagTable TagTable;
-typedef struct _TagTableClass TagTableClass;
-
-#define TYPE_VIDEO_TABLE (video_table_get_type ())
-#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable))
-#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass))
-#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE))
-#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE))
-#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass))
-
-typedef struct _VideoTable VideoTable;
-typedef struct _VideoTableClass VideoTableClass;
-
-#define TYPE_UPGRADES (upgrades_get_type ())
-#define UPGRADES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UPGRADES, Upgrades))
-#define UPGRADES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_UPGRADES, UpgradesClass))
-#define IS_UPGRADES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UPGRADES))
-#define IS_UPGRADES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_UPGRADES))
-#define UPGRADES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_UPGRADES, UpgradesClass))
-
-typedef struct _Upgrades Upgrades;
-typedef struct _UpgradesClass UpgradesClass;
-#define _upgrades_unref0(var) ((var == NULL) ? NULL : (var = (upgrades_unref (var), NULL)))
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _aggregate_progress_monitor_unref0(var) ((var == NULL) ? NULL : (var = (aggregate_progress_monitor_unref (var), NULL)))
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
-#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
-#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
-
-typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
-typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
-
-#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))
-#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION))
-#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION))
-#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass))
-
-typedef struct _VideoSourceCollection VideoSourceCollection;
-typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass;
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_WELCOME_SERVICE_ENTRY (welcome_service_entry_get_type ())
-#define WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry))
-#define IS_WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_SERVICE_ENTRY))
-#define WELCOME_SERVICE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntryIface))
-
-typedef struct _WelcomeServiceEntry WelcomeServiceEntry;
-typedef struct _WelcomeServiceEntryIface WelcomeServiceEntryIface;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#define TYPE_WELCOME_DIALOG (welcome_dialog_get_type ())
-#define WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_DIALOG, WelcomeDialog))
-#define WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WELCOME_DIALOG, WelcomeDialogClass))
-#define IS_WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_DIALOG))
-#define IS_WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WELCOME_DIALOG))
-#define WELCOME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WELCOME_DIALOG, WelcomeDialogClass))
-
-typedef struct _WelcomeDialog WelcomeDialog;
-typedef struct _WelcomeDialogClass WelcomeDialogClass;
-
-#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ())
-#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
-#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
-#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
-#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
-
-typedef struct _ImportManifest ImportManifest;
-typedef struct _ImportManifestClass ImportManifestClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-
-#define TYPE_FILE_IMPORT_JOB (file_import_job_get_type ())
-#define FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_IMPORT_JOB, FileImportJob))
-#define FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_IMPORT_JOB, FileImportJobClass))
-#define IS_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_IMPORT_JOB))
-#define IS_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_IMPORT_JOB))
-#define FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_IMPORT_JOB, FileImportJobClass))
-
-typedef struct _FileImportJob FileImportJob;
-typedef struct _FileImportJobClass FileImportJobClass;
-#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
-
-#define TYPE_BATCH_IMPORT (batch_import_get_type ())
-#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
-#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
-#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
-#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
-#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
-
-typedef struct _BatchImport BatchImport;
-typedef struct _BatchImportClass BatchImportClass;
-
-#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-typedef struct _BatchImportRollClass BatchImportRollClass;
-typedef struct _ImportManifestPrivate ImportManifestPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_BATCH_IMPORT_RESULT (batch_import_result_get_type ())
-#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult))
-#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT))
-#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT))
-#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
-
-typedef struct _BatchImportResult BatchImportResult;
-typedef struct _BatchImportResultClass BatchImportResultClass;
-
-#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ())
-#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams))
-#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS))
-#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
-
-typedef struct _ImportUIQuestionParams ImportUIQuestionParams;
-typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass;
-
-#define TYPE_DIRECT_WINDOW (direct_window_get_type ())
-#define DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_WINDOW, DirectWindow))
-#define DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_WINDOW, DirectWindowClass))
-#define IS_DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_WINDOW))
-#define IS_DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_WINDOW))
-#define DIRECT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_WINDOW, DirectWindowClass))
-
-typedef struct _DirectWindow DirectWindow;
-typedef struct _DirectWindowClass DirectWindowClass;
-#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
-#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
-
-typedef enum {
- SHOTWELL_COMMAND_MOUNTED_CAMERA = 1
-} ShotwellCommand;
-
-typedef enum {
- DB_VERIFY_RESULT_OK,
- DB_VERIFY_RESULT_FUTURE_VERSION,
- DB_VERIFY_RESULT_UPGRADE_ERROR,
- DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE
-} DbVerifyResult;
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-struct _WelcomeServiceEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_service_name) (WelcomeServiceEntry* self);
- void (*execute) (WelcomeServiceEntry* self);
-};
-
-typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data);
-struct _ImportManifest {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ImportManifestPrivate * priv;
- GeeList* imported;
- GeeList* success;
- GeeList* camera_failed;
- GeeList* failed;
- GeeList* write_failed;
- GeeList* skipped_photos;
- GeeList* skipped_files;
- GeeList* aborted;
- GeeList* already_imported;
- GeeList* corrupt_files;
- GeeList* all;
- GTimer* timer;
-};
-
-struct _ImportManifestClass {
- GTypeClass parent_class;
- void (*finalize) (ImportManifest *self);
-};
-
-
-extern GTimer* startup_timer;
-GTimer* startup_timer = NULL;
-extern gboolean was_already_running;
-gboolean was_already_running = FALSE;
-extern gboolean commandline_options_no_startup_progress;
-extern LibraryPhotoSourceCollection* library_photo_global;
-extern VideoSourceCollection* video_global;
-extern gboolean do_system_pictures_import;
-extern gboolean do_external_import;
-gboolean do_system_pictures_import = FALSE;
-gboolean do_external_import = FALSE;
-gboolean commandline_options_no_startup_progress = FALSE;
-extern gchar* commandline_options_data_dir;
-gchar* commandline_options_data_dir = NULL;
-extern gboolean commandline_options_show_version;
-gboolean commandline_options_show_version = FALSE;
-extern gboolean commandline_options_no_runtime_monitoring;
-gboolean commandline_options_no_runtime_monitoring = FALSE;
-extern gboolean commandline_options_fullscreen;
-gboolean commandline_options_fullscreen = FALSE;
-extern GOptionEntry* commandline_options_entries;
-extern gint commandline_options_entries_length1;
-GOptionEntry* commandline_options_entries = NULL;
-gint commandline_options_entries_length1 = 0;
-static gint _commandline_options_entries_size_ = 0;
-
-GType shotwell_command_get_type (void) G_GNUC_CONST;
-void library_exec (gchar** mounts,
- int mounts_length1);
-gboolean application_get_is_remote (void);
-void application_present_primary_instance (void);
-void application_send_to_primary_instance (gchar** argv,
- int argv_length1);
-void db_preconfigure (GFile* db_file);
-GFile* app_dirs_get_data_subdir (const gchar* name,
- const gchar* subname);
-void library_app_init (GError** error);
-void app_window_panic (const gchar* msg);
-GType db_verify_result_get_type (void) G_GNUC_CONST;
-DbVerifyResult db_verify_database (gchar* * app_version,
- gint* schema_version);
-#define RESOURCES_APP_VERSION _VERSION
-#define DATABASE_TABLE_SCHEMA_VERSION 20
-#define RESOURCES_HOME_URL "https://wiki.gnome.org/Apps/Shotwell"
-GFile* app_dirs_get_data_dir (void);
-const gchar* db_verify_result_to_string (DbVerifyResult self);
-#define RESOURCES_APP_TITLE "Shotwell"
-void database_table_terminate (void);
-void upgrades_init (void);
-GType progress_dialog_get_type (void) G_GNUC_CONST;
-gpointer aggregate_progress_monitor_ref (gpointer instance);
-void aggregate_progress_monitor_unref (gpointer instance);
-GParamSpec* param_spec_aggregate_progress_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_aggregate_progress_monitor (GValue* value,
- gpointer v_object);
-void value_take_aggregate_progress_monitor (GValue* value,
- gpointer v_object);
-gpointer value_get_aggregate_progress_monitor (const GValue* value);
-GType aggregate_progress_monitor_get_type (void) G_GNUC_CONST;
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType photo_table_get_type (void) G_GNUC_CONST;
-PhotoTable* photo_table_get_instance (void);
-gint database_table_get_row_count (DatabaseTable* self);
-GType event_table_get_type (void) G_GNUC_CONST;
-EventTable* event_table_get_instance (void);
-GType tag_table_get_type (void) G_GNUC_CONST;
-TagTable* tag_table_get_instance (void);
-GType video_table_get_type (void) G_GNUC_CONST;
-VideoTable* video_table_get_instance (void);
-gpointer upgrades_ref (gpointer instance);
-void upgrades_unref (gpointer instance);
-GParamSpec* param_spec_upgrades (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_upgrades (GValue* value,
- gpointer v_object);
-void value_take_upgrades (GValue* value,
- gpointer v_object);
-gpointer value_get_upgrades (const GValue* value);
-GType upgrades_get_type (void) G_GNUC_CONST;
-Upgrades* upgrades_get_instance (void);
-guint64 upgrades_get_step_count (Upgrades* self);
-ProgressDialog* progress_dialog_new (GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-ProgressDialog* progress_dialog_construct (GType object_type,
- GtkWindow* owner,
- const gchar* text,
- GCancellable* cancellable);
-void progress_dialog_update_display_every (ProgressDialog* self,
- gint update_every);
-void progress_dialog_set_minimum_on_screen_time_msec (ProgressDialog* self,
- gint minimum_on_screen_time_msec);
-gboolean progress_dialog_monitor (ProgressDialog* self,
- guint64 count,
- guint64 total,
- gboolean do_event_loop);
-static gboolean _progress_dialog_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self);
-AggregateProgressMonitor* aggregate_progress_monitor_new (guint64 grand_total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target);
-AggregateProgressMonitor* aggregate_progress_monitor_construct (GType object_type,
- guint64 grand_total,
- ProgressMonitor wrapped_monitor,
- void* wrapped_monitor_target);
-gboolean aggregate_progress_monitor_monitor (AggregateProgressMonitor* self,
- guint64 count,
- guint64 total);
-static gboolean _aggregate_progress_monitor_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self);
-void thumbnail_cache_init (void);
-void tombstone_init (void);
-void library_files_select_copy_function (void);
-void aggregate_progress_monitor_next_step (AggregateProgressMonitor* self,
- const gchar* name);
-void library_photo_init (ProgressMonitor monitor,
- void* monitor_target);
-void video_init (ProgressMonitor monitor,
- void* monitor_target);
-void upgrades_execute (Upgrades* self,
- ProgressMonitor monitor,
- void* monitor_target);
-void library_monitor_pool_init (void);
-void media_collection_registry_init (void);
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-void media_collection_registry_register_collection (MediaCollectionRegistry* self,
- MediaSourceCollection* collection);
-GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-GType video_source_collection_get_type (void) G_GNUC_CONST;
-void event_init (ProgressMonitor monitor,
- void* monitor_target);
-void tag_init (ProgressMonitor monitor,
- void* monitor_target);
-void metadata_writer_init (void);
-void desktop_integration_init (void);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-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;
-LibraryWindow* library_window_new (ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-LibraryWindow* library_window_construct (GType object_type,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-void library_window_mounted_camera_shell_notification (LibraryWindow* self,
- const gchar* uri,
- gboolean at_startup);
-GType welcome_service_entry_get_type (void) G_GNUC_CONST;
-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_show_welcome_dialog (ConfigurationFacade* self);
-gint data_collection_get_count (DataCollection* self);
-GType welcome_dialog_get_type (void) G_GNUC_CONST;
-WelcomeDialog* welcome_dialog_new (GtkWindow* owner);
-WelcomeDialog* welcome_dialog_construct (GType object_type,
- GtkWindow* owner);
-void configuration_facade_set_show_welcome_dialog (ConfigurationFacade* self,
- gboolean show);
-gboolean welcome_dialog_execute (WelcomeDialog* self,
- WelcomeServiceEntry*** selected_import_entries,
- int* selected_import_entries_length1,
- gboolean* do_system_pictures_import);
-void welcome_service_entry_execute (WelcomeServiceEntry* self);
-gpointer import_manifest_ref (gpointer instance);
-void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_import_manifest (GValue* value,
- gpointer v_object);
-void value_take_import_manifest (GValue* value,
- gpointer v_object);
-gpointer value_get_import_manifest (const GValue* value);
-GType import_manifest_get_type (void) G_GNUC_CONST;
-void run_system_pictures_import (ImportManifest* external_exclusion_manifest);
-void application_start (Application* self,
- gchar** argv,
- int argv_length1);
-void desktop_integration_terminate (void);
-void metadata_writer_terminate (void);
-void tag_terminate (void);
-void event_terminate (void);
-void library_photo_terminate (void);
-void media_collection_registry_terminate (void);
-void library_monitor_pool_terminate (void);
-void tombstone_terminate (void);
-void thumbnail_cache_terminate (void);
-void video_terminate (void);
-void library_app_terminate (void);
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-GType file_import_job_get_type (void) G_GNUC_CONST;
-GFile* app_dirs_get_import_dir (void);
-FileImportJob* file_import_job_new (GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse);
-FileImportJob* file_import_job_construct (GType object_type,
- GFile* file_or_dir,
- gboolean copy_to_library,
- gboolean recurse);
-AppWindow* app_window_get_instance (void);
-GType batch_import_get_type (void) G_GNUC_CONST;
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-void report_system_pictures_import (ImportManifest* manifest,
- BatchImportRoll* import_roll);
-static void _report_system_pictures_import_batch_import_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self);
-BatchImport* batch_import_new (GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-BatchImport* batch_import_construct (GType object_type,
- GeeIterable* jobs,
- const gchar* name,
- BatchImportImportReporter reporter,
- void* reporter_target,
- GeeArrayList* prefailed,
- GeeArrayList* pre_already_imported,
- GCancellable* cancellable,
- BatchImportRoll* import_roll,
- ImportManifest* skip_manifest);
-void library_window_enqueue_batch_import (LibraryWindow* self,
- BatchImport* batch_import,
- gboolean allow_user_cancel);
-void library_window_switch_to_import_queue_page (LibraryWindow* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-gpointer batch_import_result_ref (gpointer instance);
-void batch_import_result_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_result (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_result (GValue* value,
- gpointer v_object);
-void value_take_batch_import_result (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_result (const GValue* value);
-GType batch_import_result_get_type (void) G_GNUC_CONST;
-gpointer import_ui_question_params_ref (gpointer instance);
-void import_ui_question_params_unref (gpointer instance);
-GParamSpec* import_ui_param_spec_question_params (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void import_ui_value_set_question_params (GValue* value,
- gpointer v_object);
-void import_ui_value_take_question_params (GValue* value,
- gpointer v_object);
-gpointer import_ui_value_get_question_params (const GValue* value);
-GType import_ui_question_params_get_type (void) G_GNUC_CONST;
-gboolean import_ui_report_manifest (ImportManifest* manifest,
- gboolean show_dest_id,
- ImportUIQuestionParams* question);
-void editing_exec (const gchar* filename,
- gboolean fullscreen);
-void direct_preconfigure (GFile* initial_file);
-void direct_app_init (GError** error);
-GType direct_window_get_type (void) G_GNUC_CONST;
-DirectWindow* direct_window_new (GFile* file);
-DirectWindow* direct_window_construct (GType object_type,
- GFile* file);
-GAction* app_window_get_common_action (AppWindow* self,
- const gchar* name);
-void direct_app_terminate (void);
-GOptionEntry* commandline_options_get_options (int* result_length1);
-static GOptionEntry* _vala_array_dup22 (GOptionEntry* self,
- int length);
-static void _vala_array_add72 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value);
-static void _vala_array_add73 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value);
-static void _vala_array_add74 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value);
-static void _vala_array_add75 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value);
-static void _vala_array_add76 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value);
-static void _vala_array_add77 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value);
-static GOptionEntry* _vala_array_dup23 (GOptionEntry* self,
- int length);
-void _vala_main (gchar** args,
- int args_length1);
-void app_dirs_init (const gchar* arg0);
-GFile* app_dirs_get_install_dir (void);
-GFile* app_dirs_get_lib_dir (void);
-#define RESOURCES_APP_GETTEXT_PACKAGE GETTEXT_PACKAGE
-void app_dirs_terminate (void);
-#define RESOURCES_GIT_VERSION _GIT_VERSION
-gboolean library_window_is_mount_uri_supported (const gchar* uri);
-static void _vala_array_add78 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-gboolean is_string_empty (const gchar* s);
-#define DEBUG_LIBRARY_PREFIX "L"
-#define DEBUG_VIEWER_PREFIX "V"
-void debug_init (const gchar* app_version_prefix);
-#define RESOURCES_APP_LIBRARY_ROLE _ ("Photo Manager")
-#define RESOURCES_APP_DIRECT_ROLE _ ("Photo Viewer")
-void application_init (gboolean is_direct);
-void app_dirs_set_data_dir (const gchar* user_data_dir);
-void app_dirs_try_migrate_data (void);
-void app_dirs_verify_data_dir (void);
-void app_dirs_verify_cache_dir (void);
-void international_support_init (const gchar* package_name,
- gchar** args,
- int args_length1,
- const gchar* locale);
-#define INTERNATIONAL_SUPPORT_SYSTEM_LOCALE ""
-void resources_init (void);
-void resources_terminate (void);
-void application_terminate (void);
-void debug_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);
-
-
-GType
-shotwell_command_get_type (void)
-{
- static volatile gsize shotwell_command_type_id__volatile = 0;
- if (g_once_init_enter (&shotwell_command_type_id__volatile)) {
- static const GEnumValue values[] = {{SHOTWELL_COMMAND_MOUNTED_CAMERA, "SHOTWELL_COMMAND_MOUNTED_CAMERA", "mounted-camera"}, {0, NULL, NULL}};
- GType shotwell_command_type_id;
- shotwell_command_type_id = g_enum_register_static ("ShotwellCommand", values);
- g_once_init_leave (&shotwell_command_type_id__volatile, shotwell_command_type_id);
- }
- return shotwell_command_type_id__volatile;
-}
-
-
-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 113 "/home/jens/Source/shotwell/src/main.vala"
- return result;
-#line 892 "main.c"
-}
-
-
-static gboolean
-_aggregate_progress_monitor_monitor_progress_monitor (guint64 current,
- guint64 total,
- gboolean do_event_loop,
- gpointer self)
-{
- gboolean result;
- result = aggregate_progress_monitor_monitor ((AggregateProgressMonitor*) self, current, total);
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- return result;
-#line 906 "main.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- return self ? g_object_ref (self) : NULL;
-#line 915 "main.c"
-}
-
-
-void
-library_exec (gchar** mounts,
- int mounts_length1)
-{
- gboolean _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- gchar* errormsg = NULL;
- gchar* app_version = NULL;
- gint schema_version = 0;
- DbVerifyResult _result_ = 0;
- gchar* _tmp7_ = NULL;
- gint _tmp8_ = 0;
- DbVerifyResult _tmp9_;
- DbVerifyResult _tmp10_;
- const gchar* _tmp27_;
- ProgressDialog* progress_dialog = NULL;
- AggregateProgressMonitor* aggregate_monitor = NULL;
- ProgressMonitor monitor = NULL;
- void* monitor_target;
- GDestroyNotify monitor_target_destroy_notify;
- gboolean _tmp33_;
- AggregateProgressMonitor* _tmp58_;
- ProgressMonitor _tmp60_;
- void* _tmp60__target;
- AggregateProgressMonitor* _tmp61_;
- ProgressMonitor _tmp63_;
- void* _tmp63__target;
- AggregateProgressMonitor* _tmp64_;
- Upgrades* _tmp66_;
- Upgrades* _tmp67_;
- MediaCollectionRegistry* registry = NULL;
- MediaCollectionRegistry* _tmp68_;
- MediaCollectionRegistry* _tmp69_;
- LibraryPhotoSourceCollection* _tmp70_;
- MediaCollectionRegistry* _tmp71_;
- VideoSourceCollection* _tmp72_;
- AggregateProgressMonitor* _tmp73_;
- ProgressMonitor _tmp75_;
- void* _tmp75__target;
- AggregateProgressMonitor* _tmp76_;
- ProgressMonitor _tmp78_;
- void* _tmp78__target;
- Application* _tmp79_;
- Application* _tmp80_;
- AggregateProgressMonitor* _tmp81_;
- LibraryWindow* library_window = NULL;
- ProgressMonitor _tmp83_;
- void* _tmp83__target;
- LibraryWindow* _tmp84_;
- AggregateProgressMonitor* _tmp85_;
- ProgressDialog* _tmp87_;
- LibraryWindow* _tmp92_;
- WelcomeServiceEntry** selected_import_entries = NULL;
- WelcomeServiceEntry** _tmp93_;
- gint selected_import_entries_length1;
- gint _selected_import_entries_size_;
- gboolean _tmp94_ = FALSE;
- ConfigFacade* _tmp95_;
- ConfigFacade* _tmp96_;
- gboolean _tmp97_;
- WelcomeServiceEntry** _tmp110_;
- gint _tmp110__length1;
- gboolean _tmp114_;
- GTimer* _tmp115_;
- gdouble _tmp116_;
- Application* _tmp117_;
- Application* _tmp118_;
- GError * _inner_error_ = NULL;
-#line 16 "/home/jens/Source/shotwell/src/main.vala"
- was_already_running = application_get_is_remote ();
-#line 18 "/home/jens/Source/shotwell/src/main.vala"
- _tmp0_ = was_already_running;
-#line 18 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp0_) {
-#line 25 "/home/jens/Source/shotwell/src/main.vala"
- application_present_primary_instance ();
-#line 26 "/home/jens/Source/shotwell/src/main.vala"
- application_send_to_primary_instance (mounts, mounts_length1);
-#line 27 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 1002 "main.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/main.vala"
- _tmp1_ = app_dirs_get_data_subdir ("data", NULL);
-#line 31 "/home/jens/Source/shotwell/src/main.vala"
- _tmp2_ = _tmp1_;
-#line 31 "/home/jens/Source/shotwell/src/main.vala"
- _tmp3_ = g_file_get_child (_tmp2_, "photo.db");
-#line 31 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_ = _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/main.vala"
- db_preconfigure (_tmp4_);
-#line 31 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp4_);
-#line 31 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp2_);
-#line 1018 "main.c"
- {
-#line 35 "/home/jens/Source/shotwell/src/main.vala"
- library_app_init (&_inner_error_);
-#line 35 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1024 "main.c"
- goto __catch233_g_error;
- }
- }
- goto __finally233;
- __catch233_g_error:
- {
- GError* err = NULL;
- GError* _tmp5_;
- const gchar* _tmp6_;
-#line 34 "/home/jens/Source/shotwell/src/main.vala"
- err = _inner_error_;
-#line 34 "/home/jens/Source/shotwell/src/main.vala"
- _inner_error_ = NULL;
-#line 37 "/home/jens/Source/shotwell/src/main.vala"
- _tmp5_ = err;
-#line 37 "/home/jens/Source/shotwell/src/main.vala"
- _tmp6_ = _tmp5_->message;
-#line 37 "/home/jens/Source/shotwell/src/main.vala"
- app_window_panic (_tmp6_);
-#line 39 "/home/jens/Source/shotwell/src/main.vala"
- _g_error_free0 (err);
-#line 39 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 1048 "main.c"
- }
- __finally233:
-#line 34 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 34 "/home/jens/Source/shotwell/src/main.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 34 "/home/jens/Source/shotwell/src/main.vala"
- g_clear_error (&_inner_error_);
-#line 34 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 1059 "main.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/main.vala"
- g_message ("main.vala:43: Verifying database…");
-#line 44 "/home/jens/Source/shotwell/src/main.vala"
- errormsg = NULL;
-#line 47 "/home/jens/Source/shotwell/src/main.vala"
- _tmp9_ = db_verify_database (&_tmp7_, &_tmp8_);
-#line 47 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (app_version);
-#line 47 "/home/jens/Source/shotwell/src/main.vala"
- app_version = _tmp7_;
-#line 47 "/home/jens/Source/shotwell/src/main.vala"
- schema_version = _tmp8_;
-#line 47 "/home/jens/Source/shotwell/src/main.vala"
- _result_ = _tmp9_;
-#line 48 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_ = _result_;
-#line 48 "/home/jens/Source/shotwell/src/main.vala"
- switch (_tmp10_) {
-#line 48 "/home/jens/Source/shotwell/src/main.vala"
- case DB_VERIFY_RESULT_OK:
-#line 1081 "main.c"
- {
-#line 51 "/home/jens/Source/shotwell/src/main.vala"
- break;
-#line 1085 "main.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/main.vala"
- case DB_VERIFY_RESULT_FUTURE_VERSION:
-#line 1089 "main.c"
- {
- const gchar* _tmp11_;
- gint _tmp12_;
- gchar* _tmp13_;
-#line 54 "/home/jens/Source/shotwell/src/main.vala"
- _tmp11_ = app_version;
-#line 54 "/home/jens/Source/shotwell/src/main.vala"
- _tmp12_ = schema_version;
-#line 54 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_ = g_strdup_printf (_ ("Your photo library is not compatible with this version of Shotwell. It" \
-" appears it was created by Shotwell %s (schema %d). This version is %s" \
-" (schema %d). Please use the latest version of Shotwell."), _tmp11_, _tmp12_, RESOURCES_APP_VERSION, DATABASE_TABLE_SCHEMA_VERSION);
-#line 54 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (errormsg);
-#line 54 "/home/jens/Source/shotwell/src/main.vala"
- errormsg = _tmp13_;
-#line 56 "/home/jens/Source/shotwell/src/main.vala"
- break;
-#line 1106 "main.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/main.vala"
- case DB_VERIFY_RESULT_UPGRADE_ERROR:
-#line 1110 "main.c"
- {
- const gchar* _tmp14_;
- gint _tmp15_;
- gchar* _tmp16_;
-#line 59 "/home/jens/Source/shotwell/src/main.vala"
- _tmp14_ = app_version;
-#line 59 "/home/jens/Source/shotwell/src/main.vala"
- _tmp15_ = schema_version;
-#line 59 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_ = g_strdup_printf (_ ("Shotwell was unable to upgrade your photo library from version %s (sch" \
-"ema %d) to %s (schema %d). For more information please check the Shotw" \
-"ell Wiki at %s"), _tmp14_, _tmp15_, RESOURCES_APP_VERSION, DATABASE_TABLE_SCHEMA_VERSION, RESOURCES_HOME_URL);
-#line 59 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (errormsg);
-#line 59 "/home/jens/Source/shotwell/src/main.vala"
- errormsg = _tmp16_;
-#line 62 "/home/jens/Source/shotwell/src/main.vala"
- break;
-#line 1127 "main.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/main.vala"
- case DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE:
-#line 1131 "main.c"
- {
- const gchar* _tmp17_;
- gint _tmp18_;
- GFile* _tmp19_;
- GFile* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _tmp17_ = app_version;
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _tmp18_ = schema_version;
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_ = app_dirs_get_data_dir ();
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _tmp20_ = _tmp19_;
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _tmp21_ = g_file_get_path (_tmp20_);
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _tmp22_ = _tmp21_;
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _tmp23_ = g_strdup_printf (_ ("Your photo library is not compatible with this version of Shotwell. It" \
-" appears it was created by Shotwell %s (schema %d). This version is %s" \
-" (schema %d). Please clear your library by deleting %s and re-import y" \
-"our photos."), _tmp17_, _tmp18_, RESOURCES_APP_VERSION, DATABASE_TABLE_SCHEMA_VERSION, _tmp22_);
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (errormsg);
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- errormsg = _tmp23_;
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (_tmp22_);
-#line 65 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp20_);
-#line 68 "/home/jens/Source/shotwell/src/main.vala"
- break;
-#line 1164 "main.c"
- }
- default:
- {
- DbVerifyResult _tmp24_;
- GEnumValue* _tmp25_;
- gchar* _tmp26_;
-#line 71 "/home/jens/Source/shotwell/src/main.vala"
- _tmp24_ = _result_;
-#line 72 "/home/jens/Source/shotwell/src/main.vala"
- _tmp25_ = g_enum_get_value (g_type_class_ref (DB_TYPE_VERIFY_RESULT), _tmp24_);
-#line 71 "/home/jens/Source/shotwell/src/main.vala"
- _tmp26_ = g_strdup_printf (_ ("Unknown error attempting to verify Shotwell’s database: %s"), (_tmp25_ != NULL) ? _tmp25_->value_name : NULL);
-#line 71 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (errormsg);
-#line 71 "/home/jens/Source/shotwell/src/main.vala"
- errormsg = _tmp26_;
-#line 73 "/home/jens/Source/shotwell/src/main.vala"
- break;
-#line 1183 "main.c"
- }
- }
-#line 76 "/home/jens/Source/shotwell/src/main.vala"
- _tmp27_ = errormsg;
-#line 76 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp27_ != NULL) {
-#line 1190 "main.c"
- GtkMessageDialog* dialog = NULL;
- const gchar* _tmp28_;
- GtkMessageDialog* _tmp29_;
- GtkMessageDialog* _tmp30_;
- GtkMessageDialog* _tmp31_;
- GtkMessageDialog* _tmp32_;
-#line 77 "/home/jens/Source/shotwell/src/main.vala"
- _tmp28_ = errormsg;
-#line 77 "/home/jens/Source/shotwell/src/main.vala"
- _tmp29_ = (GtkMessageDialog*) gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", _tmp28_);
-#line 77 "/home/jens/Source/shotwell/src/main.vala"
- g_object_ref_sink (_tmp29_);
-#line 77 "/home/jens/Source/shotwell/src/main.vala"
- dialog = _tmp29_;
-#line 79 "/home/jens/Source/shotwell/src/main.vala"
- _tmp30_ = dialog;
-#line 79 "/home/jens/Source/shotwell/src/main.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE);
-#line 80 "/home/jens/Source/shotwell/src/main.vala"
- _tmp31_ = dialog;
-#line 80 "/home/jens/Source/shotwell/src/main.vala"
- gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_dialog_get_type (), GtkDialog));
-#line 81 "/home/jens/Source/shotwell/src/main.vala"
- _tmp32_ = dialog;
-#line 81 "/home/jens/Source/shotwell/src/main.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget));
-#line 83 "/home/jens/Source/shotwell/src/main.vala"
- database_table_terminate ();
-#line 85 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (dialog);
-#line 85 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (app_version);
-#line 85 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (errormsg);
-#line 85 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 1227 "main.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/main.vala"
- upgrades_init ();
-#line 90 "/home/jens/Source/shotwell/src/main.vala"
- progress_dialog = NULL;
-#line 91 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_monitor = NULL;
-#line 92 "/home/jens/Source/shotwell/src/main.vala"
- monitor = NULL;
-#line 92 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target = NULL;
-#line 92 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target_destroy_notify = NULL;
-#line 94 "/home/jens/Source/shotwell/src/main.vala"
- _tmp33_ = commandline_options_no_startup_progress;
-#line 94 "/home/jens/Source/shotwell/src/main.vala"
- if (!_tmp33_) {
-#line 1245 "main.c"
- guint64 grand_total = 0ULL;
- PhotoTable* _tmp34_;
- PhotoTable* _tmp35_;
- EventTable* _tmp36_;
- EventTable* _tmp37_;
- TagTable* _tmp38_;
- TagTable* _tmp39_;
- VideoTable* _tmp40_;
- VideoTable* _tmp41_;
- Upgrades* _tmp42_;
- Upgrades* _tmp43_;
- guint64 _tmp44_;
- guint64 _tmp45_;
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp34_ = photo_table_get_instance ();
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp35_ = _tmp34_;
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp36_ = event_table_get_instance ();
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp37_ = _tmp36_;
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp38_ = tag_table_get_instance ();
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp39_ = _tmp38_;
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp40_ = video_table_get_instance ();
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp41_ = _tmp40_;
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp42_ = upgrades_get_instance ();
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp43_ = _tmp42_;
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _tmp44_ = (((database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_DATABASE_TABLE, DatabaseTable)) + database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATABASE_TABLE, DatabaseTable))) + database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_DATABASE_TABLE, DatabaseTable))) + database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATABASE_TABLE, DatabaseTable))) + upgrades_get_step_count (_tmp43_);
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _upgrades_unref0 (_tmp43_);
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _database_table_unref0 (_tmp41_);
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _database_table_unref0 (_tmp39_);
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _database_table_unref0 (_tmp37_);
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- _database_table_unref0 (_tmp35_);
-#line 98 "/home/jens/Source/shotwell/src/main.vala"
- grand_total = _tmp44_;
-#line 103 "/home/jens/Source/shotwell/src/main.vala"
- _tmp45_ = grand_total;
-#line 103 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp45_ > ((guint64) 5000)) {
-#line 1297 "main.c"
- ProgressDialog* _tmp46_;
- ProgressDialog* _tmp47_;
- ProgressDialog* _tmp48_;
- guint64 _tmp54_;
- ProgressDialog* _tmp55_;
- AggregateProgressMonitor* _tmp56_;
- AggregateProgressMonitor* _tmp57_;
-#line 104 "/home/jens/Source/shotwell/src/main.vala"
- _tmp46_ = progress_dialog_new (NULL, _ ("Loading Shotwell"), NULL);
-#line 104 "/home/jens/Source/shotwell/src/main.vala"
- g_object_ref_sink (_tmp46_);
-#line 104 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (progress_dialog);
-#line 104 "/home/jens/Source/shotwell/src/main.vala"
- progress_dialog = _tmp46_;
-#line 105 "/home/jens/Source/shotwell/src/main.vala"
- _tmp47_ = progress_dialog;
-#line 105 "/home/jens/Source/shotwell/src/main.vala"
- progress_dialog_update_display_every (_tmp47_, 100);
-#line 106 "/home/jens/Source/shotwell/src/main.vala"
- _tmp48_ = progress_dialog;
-#line 106 "/home/jens/Source/shotwell/src/main.vala"
- progress_dialog_set_minimum_on_screen_time_msec (_tmp48_, 250);
-#line 1321 "main.c"
- {
- GdkPixbuf* _tmp49_ = NULL;
- GdkPixbuf* _tmp50_;
- ProgressDialog* _tmp51_;
-#line 108 "/home/jens/Source/shotwell/src/main.vala"
- _tmp50_ = gdk_pixbuf_new_from_resource ("/org/gnome/Shotwell/icons/shotwell.svg", &_inner_error_);
-#line 108 "/home/jens/Source/shotwell/src/main.vala"
- _tmp49_ = _tmp50_;
-#line 108 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1332 "main.c"
- goto __catch234_g_error;
- }
-#line 108 "/home/jens/Source/shotwell/src/main.vala"
- _tmp51_ = progress_dialog;
-#line 108 "/home/jens/Source/shotwell/src/main.vala"
- gtk_window_set_icon (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_window_get_type (), GtkWindow), _tmp49_);
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp49_);
-#line 1341 "main.c"
- }
- goto __finally234;
- __catch234_g_error:
- {
- GError* err = NULL;
- GError* _tmp52_;
- const gchar* _tmp53_;
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- err = _inner_error_;
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- _inner_error_ = NULL;
-#line 110 "/home/jens/Source/shotwell/src/main.vala"
- _tmp52_ = err;
-#line 110 "/home/jens/Source/shotwell/src/main.vala"
- _tmp53_ = _tmp52_->message;
-#line 110 "/home/jens/Source/shotwell/src/main.vala"
- g_debug ("main.vala:110: Warning - could not load application icon for loading w" \
-"indow: %s", _tmp53_);
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- _g_error_free0 (err);
-#line 1361 "main.c"
- }
- __finally234:
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- monitor = NULL;
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target = NULL;
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target_destroy_notify = NULL;
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- _aggregate_progress_monitor_unref0 (aggregate_monitor);
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (progress_dialog);
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (app_version);
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (errormsg);
-#line 107 "/home/jens/Source/shotwell/src/main.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 107 "/home/jens/Source/shotwell/src/main.vala"
- g_clear_error (&_inner_error_);
-#line 107 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 1388 "main.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/main.vala"
- _tmp54_ = grand_total;
-#line 113 "/home/jens/Source/shotwell/src/main.vala"
- _tmp55_ = progress_dialog;
-#line 113 "/home/jens/Source/shotwell/src/main.vala"
- _tmp56_ = aggregate_progress_monitor_new (_tmp54_, _progress_dialog_monitor_progress_monitor, _tmp55_);
-#line 113 "/home/jens/Source/shotwell/src/main.vala"
- _aggregate_progress_monitor_unref0 (aggregate_monitor);
-#line 113 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_monitor = _tmp56_;
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- _tmp57_ = aggregate_monitor;
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- monitor = NULL;
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target = NULL;
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target_destroy_notify = NULL;
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- monitor = _aggregate_progress_monitor_monitor_progress_monitor;
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target = aggregate_progress_monitor_ref (_tmp57_);
-#line 114 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target_destroy_notify = aggregate_progress_monitor_unref;
-#line 1416 "main.c"
- }
- }
-#line 118 "/home/jens/Source/shotwell/src/main.vala"
- thumbnail_cache_init ();
-#line 119 "/home/jens/Source/shotwell/src/main.vala"
- tombstone_init ();
-#line 121 "/home/jens/Source/shotwell/src/main.vala"
- library_files_select_copy_function ();
-#line 123 "/home/jens/Source/shotwell/src/main.vala"
- _tmp58_ = aggregate_monitor;
-#line 123 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp58_ != NULL) {
-#line 1429 "main.c"
- AggregateProgressMonitor* _tmp59_;
-#line 124 "/home/jens/Source/shotwell/src/main.vala"
- _tmp59_ = aggregate_monitor;
-#line 124 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_progress_monitor_next_step (_tmp59_, "LibraryPhoto.init");
-#line 1435 "main.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/main.vala"
- _tmp60_ = monitor;
-#line 125 "/home/jens/Source/shotwell/src/main.vala"
- _tmp60__target = monitor_target;
-#line 125 "/home/jens/Source/shotwell/src/main.vala"
- library_photo_init (_tmp60_, _tmp60__target);
-#line 126 "/home/jens/Source/shotwell/src/main.vala"
- _tmp61_ = aggregate_monitor;
-#line 126 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp61_ != NULL) {
-#line 1447 "main.c"
- AggregateProgressMonitor* _tmp62_;
-#line 127 "/home/jens/Source/shotwell/src/main.vala"
- _tmp62_ = aggregate_monitor;
-#line 127 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_progress_monitor_next_step (_tmp62_, "Video.init");
-#line 1453 "main.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/main.vala"
- _tmp63_ = monitor;
-#line 128 "/home/jens/Source/shotwell/src/main.vala"
- _tmp63__target = monitor_target;
-#line 128 "/home/jens/Source/shotwell/src/main.vala"
- video_init (_tmp63_, _tmp63__target);
-#line 129 "/home/jens/Source/shotwell/src/main.vala"
- _tmp64_ = aggregate_monitor;
-#line 129 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp64_ != NULL) {
-#line 1465 "main.c"
- AggregateProgressMonitor* _tmp65_;
-#line 130 "/home/jens/Source/shotwell/src/main.vala"
- _tmp65_ = aggregate_monitor;
-#line 130 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_progress_monitor_next_step (_tmp65_, "Upgrades.execute");
-#line 1471 "main.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/main.vala"
- _tmp66_ = upgrades_get_instance ();
-#line 131 "/home/jens/Source/shotwell/src/main.vala"
- _tmp67_ = _tmp66_;
-#line 131 "/home/jens/Source/shotwell/src/main.vala"
- upgrades_execute (_tmp67_, NULL, NULL);
-#line 131 "/home/jens/Source/shotwell/src/main.vala"
- _upgrades_unref0 (_tmp67_);
-#line 133 "/home/jens/Source/shotwell/src/main.vala"
- library_monitor_pool_init ();
-#line 134 "/home/jens/Source/shotwell/src/main.vala"
- media_collection_registry_init ();
-#line 135 "/home/jens/Source/shotwell/src/main.vala"
- _tmp68_ = media_collection_registry_get_instance ();
-#line 135 "/home/jens/Source/shotwell/src/main.vala"
- registry = _tmp68_;
-#line 136 "/home/jens/Source/shotwell/src/main.vala"
- _tmp69_ = registry;
-#line 136 "/home/jens/Source/shotwell/src/main.vala"
- _tmp70_ = library_photo_global;
-#line 136 "/home/jens/Source/shotwell/src/main.vala"
- media_collection_registry_register_collection (_tmp69_, G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 137 "/home/jens/Source/shotwell/src/main.vala"
- _tmp71_ = registry;
-#line 137 "/home/jens/Source/shotwell/src/main.vala"
- _tmp72_ = video_global;
-#line 137 "/home/jens/Source/shotwell/src/main.vala"
- media_collection_registry_register_collection (_tmp71_, G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 139 "/home/jens/Source/shotwell/src/main.vala"
- _tmp73_ = aggregate_monitor;
-#line 139 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp73_ != NULL) {
-#line 1505 "main.c"
- AggregateProgressMonitor* _tmp74_;
-#line 140 "/home/jens/Source/shotwell/src/main.vala"
- _tmp74_ = aggregate_monitor;
-#line 140 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_progress_monitor_next_step (_tmp74_, "Event.init");
-#line 1511 "main.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/main.vala"
- _tmp75_ = monitor;
-#line 141 "/home/jens/Source/shotwell/src/main.vala"
- _tmp75__target = monitor_target;
-#line 141 "/home/jens/Source/shotwell/src/main.vala"
- event_init (_tmp75_, _tmp75__target);
-#line 142 "/home/jens/Source/shotwell/src/main.vala"
- _tmp76_ = aggregate_monitor;
-#line 142 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp76_ != NULL) {
-#line 1523 "main.c"
- AggregateProgressMonitor* _tmp77_;
-#line 143 "/home/jens/Source/shotwell/src/main.vala"
- _tmp77_ = aggregate_monitor;
-#line 143 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_progress_monitor_next_step (_tmp77_, "Tag.init");
-#line 1529 "main.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/main.vala"
- _tmp78_ = monitor;
-#line 144 "/home/jens/Source/shotwell/src/main.vala"
- _tmp78__target = monitor_target;
-#line 144 "/home/jens/Source/shotwell/src/main.vala"
- tag_init (_tmp78_, _tmp78__target);
-#line 146 "/home/jens/Source/shotwell/src/main.vala"
- metadata_writer_init ();
-#line 147 "/home/jens/Source/shotwell/src/main.vala"
- desktop_integration_init ();
-#line 149 "/home/jens/Source/shotwell/src/main.vala"
- _tmp79_ = application_get_instance ();
-#line 149 "/home/jens/Source/shotwell/src/main.vala"
- _tmp80_ = _tmp79_;
-#line 149 "/home/jens/Source/shotwell/src/main.vala"
- g_signal_emit_by_name (_tmp80_, "init-done");
-#line 149 "/home/jens/Source/shotwell/src/main.vala"
- _application_unref0 (_tmp80_);
-#line 152 "/home/jens/Source/shotwell/src/main.vala"
- _tmp81_ = aggregate_monitor;
-#line 152 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp81_ != NULL) {
-#line 1553 "main.c"
- AggregateProgressMonitor* _tmp82_;
-#line 153 "/home/jens/Source/shotwell/src/main.vala"
- _tmp82_ = aggregate_monitor;
-#line 153 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_progress_monitor_next_step (_tmp82_, "LibraryWindow");
-#line 1559 "main.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/main.vala"
- _tmp83_ = monitor;
-#line 154 "/home/jens/Source/shotwell/src/main.vala"
- _tmp83__target = monitor_target;
-#line 154 "/home/jens/Source/shotwell/src/main.vala"
- _tmp84_ = library_window_new (_tmp83_, _tmp83__target);
-#line 154 "/home/jens/Source/shotwell/src/main.vala"
- g_object_ref_sink (_tmp84_);
-#line 154 "/home/jens/Source/shotwell/src/main.vala"
- library_window = _tmp84_;
-#line 156 "/home/jens/Source/shotwell/src/main.vala"
- _tmp85_ = aggregate_monitor;
-#line 156 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp85_ != NULL) {
-#line 1575 "main.c"
- AggregateProgressMonitor* _tmp86_;
-#line 157 "/home/jens/Source/shotwell/src/main.vala"
- _tmp86_ = aggregate_monitor;
-#line 157 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_progress_monitor_next_step (_tmp86_, "done");
-#line 1581 "main.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/main.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 162 "/home/jens/Source/shotwell/src/main.vala"
- monitor = NULL;
-#line 162 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target = NULL;
-#line 162 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target_destroy_notify = NULL;
-#line 162 "/home/jens/Source/shotwell/src/main.vala"
- monitor = NULL;
-#line 162 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target = NULL;
-#line 162 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target_destroy_notify = NULL;
-#line 163 "/home/jens/Source/shotwell/src/main.vala"
- _aggregate_progress_monitor_unref0 (aggregate_monitor);
-#line 163 "/home/jens/Source/shotwell/src/main.vala"
- aggregate_monitor = NULL;
-#line 164 "/home/jens/Source/shotwell/src/main.vala"
- _tmp87_ = progress_dialog;
-#line 164 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp87_ != NULL) {
-#line 1605 "main.c"
- ProgressDialog* _tmp88_;
-#line 165 "/home/jens/Source/shotwell/src/main.vala"
- _tmp88_ = progress_dialog;
-#line 165 "/home/jens/Source/shotwell/src/main.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, gtk_widget_get_type (), GtkWidget));
-#line 1611 "main.c"
- }
-#line 166 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (progress_dialog);
-#line 166 "/home/jens/Source/shotwell/src/main.vala"
- progress_dialog = NULL;
-#line 1617 "main.c"
- {
- gchar** mount_collection = NULL;
- gint mount_collection_length1 = 0;
- gint _mount_collection_size_ = 0;
- gint mount_it = 0;
-#line 169 "/home/jens/Source/shotwell/src/main.vala"
- mount_collection = mounts;
-#line 169 "/home/jens/Source/shotwell/src/main.vala"
- mount_collection_length1 = mounts_length1;
-#line 169 "/home/jens/Source/shotwell/src/main.vala"
- for (mount_it = 0; mount_it < mounts_length1; mount_it = mount_it + 1) {
-#line 1629 "main.c"
- gchar* _tmp89_;
- gchar* mount = NULL;
-#line 169 "/home/jens/Source/shotwell/src/main.vala"
- _tmp89_ = g_strdup (mount_collection[mount_it]);
-#line 169 "/home/jens/Source/shotwell/src/main.vala"
- mount = _tmp89_;
-#line 1636 "main.c"
- {
- LibraryWindow* _tmp90_;
- const gchar* _tmp91_;
-#line 170 "/home/jens/Source/shotwell/src/main.vala"
- _tmp90_ = library_window;
-#line 170 "/home/jens/Source/shotwell/src/main.vala"
- _tmp91_ = mount;
-#line 170 "/home/jens/Source/shotwell/src/main.vala"
- library_window_mounted_camera_shell_notification (_tmp90_, _tmp91_, TRUE);
-#line 169 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (mount);
-#line 1648 "main.c"
- }
- }
- }
-#line 172 "/home/jens/Source/shotwell/src/main.vala"
- _tmp92_ = library_window;
-#line 172 "/home/jens/Source/shotwell/src/main.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, gtk_widget_get_type (), GtkWidget));
-#line 174 "/home/jens/Source/shotwell/src/main.vala"
- _tmp93_ = g_new0 (WelcomeServiceEntry*, 0 + 1);
-#line 174 "/home/jens/Source/shotwell/src/main.vala"
- selected_import_entries = _tmp93_;
-#line 174 "/home/jens/Source/shotwell/src/main.vala"
- selected_import_entries_length1 = 0;
-#line 174 "/home/jens/Source/shotwell/src/main.vala"
- _selected_import_entries_size_ = selected_import_entries_length1;
-#line 175 "/home/jens/Source/shotwell/src/main.vala"
- _tmp95_ = config_facade_get_instance ();
-#line 175 "/home/jens/Source/shotwell/src/main.vala"
- _tmp96_ = _tmp95_;
-#line 175 "/home/jens/Source/shotwell/src/main.vala"
- _tmp97_ = configuration_facade_get_show_welcome_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 175 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp96_);
-#line 175 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp97_) {
-#line 1674 "main.c"
- LibraryPhotoSourceCollection* _tmp98_;
-#line 176 "/home/jens/Source/shotwell/src/main.vala"
- _tmp98_ = library_photo_global;
-#line 176 "/home/jens/Source/shotwell/src/main.vala"
- _tmp94_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, TYPE_DATA_COLLECTION, DataCollection)) == 0;
-#line 1680 "main.c"
- } else {
-#line 175 "/home/jens/Source/shotwell/src/main.vala"
- _tmp94_ = FALSE;
-#line 1684 "main.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp94_) {
-#line 1688 "main.c"
- WelcomeDialog* welcome = NULL;
- LibraryWindow* _tmp99_;
- WelcomeDialog* _tmp100_;
- ConfigFacade* _tmp101_;
- ConfigFacade* _tmp102_;
- WelcomeDialog* _tmp103_;
- WelcomeServiceEntry** _tmp104_ = NULL;
- gint _tmp105_;
- gboolean _tmp106_ = FALSE;
- gboolean _tmp107_;
-#line 177 "/home/jens/Source/shotwell/src/main.vala"
- _tmp99_ = library_window;
-#line 177 "/home/jens/Source/shotwell/src/main.vala"
- _tmp100_ = welcome_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, gtk_window_get_type (), GtkWindow));
-#line 177 "/home/jens/Source/shotwell/src/main.vala"
- g_object_ref_sink (_tmp100_);
-#line 177 "/home/jens/Source/shotwell/src/main.vala"
- welcome = _tmp100_;
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- _tmp101_ = config_facade_get_instance ();
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- _tmp102_ = _tmp101_;
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- _tmp103_ = welcome;
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- _tmp107_ = welcome_dialog_execute (_tmp103_, &_tmp104_, &_tmp105_, &_tmp106_);
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- selected_import_entries = (_vala_array_free (selected_import_entries, selected_import_entries_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- selected_import_entries = _tmp104_;
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- selected_import_entries_length1 = _tmp105_;
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- _selected_import_entries_size_ = selected_import_entries_length1;
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- do_system_pictures_import = _tmp106_;
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- configuration_facade_set_show_welcome_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp107_);
-#line 178 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp102_);
-#line 175 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (welcome);
-#line 1731 "main.c"
- } else {
- ConfigFacade* _tmp108_;
- ConfigFacade* _tmp109_;
-#line 181 "/home/jens/Source/shotwell/src/main.vala"
- _tmp108_ = config_facade_get_instance ();
-#line 181 "/home/jens/Source/shotwell/src/main.vala"
- _tmp109_ = _tmp108_;
-#line 181 "/home/jens/Source/shotwell/src/main.vala"
- configuration_facade_set_show_welcome_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp109_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), FALSE);
-#line 181 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp109_);
-#line 1743 "main.c"
- }
-#line 184 "/home/jens/Source/shotwell/src/main.vala"
- _tmp110_ = selected_import_entries;
-#line 184 "/home/jens/Source/shotwell/src/main.vala"
- _tmp110__length1 = selected_import_entries_length1;
-#line 184 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp110__length1 > 0) {
-#line 1751 "main.c"
- WelcomeServiceEntry** _tmp111_;
- gint _tmp111__length1;
-#line 185 "/home/jens/Source/shotwell/src/main.vala"
- do_external_import = TRUE;
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- _tmp111_ = selected_import_entries;
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- _tmp111__length1 = selected_import_entries_length1;
-#line 1760 "main.c"
- {
- WelcomeServiceEntry** entry_collection = NULL;
- gint entry_collection_length1 = 0;
- gint _entry_collection_size_ = 0;
- gint entry_it = 0;
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- entry_collection = _tmp111_;
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- entry_collection_length1 = _tmp111__length1;
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- for (entry_it = 0; entry_it < _tmp111__length1; entry_it = entry_it + 1) {
-#line 1772 "main.c"
- WelcomeServiceEntry* _tmp112_;
- WelcomeServiceEntry* entry = NULL;
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- _tmp112_ = _g_object_ref0 (entry_collection[entry_it]);
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- entry = _tmp112_;
-#line 1779 "main.c"
- {
- WelcomeServiceEntry* _tmp113_;
-#line 187 "/home/jens/Source/shotwell/src/main.vala"
- _tmp113_ = entry;
-#line 187 "/home/jens/Source/shotwell/src/main.vala"
- welcome_service_entry_execute (_tmp113_);
-#line 186 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (entry);
-#line 1788 "main.c"
- }
- }
- }
- }
-#line 189 "/home/jens/Source/shotwell/src/main.vala"
- _tmp114_ = do_system_pictures_import;
-#line 189 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp114_) {
-#line 193 "/home/jens/Source/shotwell/src/main.vala"
- run_system_pictures_import (NULL);
-#line 1799 "main.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/main.vala"
- _tmp115_ = startup_timer;
-#line 196 "/home/jens/Source/shotwell/src/main.vala"
- _tmp116_ = g_timer_elapsed (_tmp115_, NULL);
-#line 196 "/home/jens/Source/shotwell/src/main.vala"
- g_debug ("main.vala:196: %lf seconds to Gtk.main()", _tmp116_);
-#line 198 "/home/jens/Source/shotwell/src/main.vala"
- _tmp117_ = application_get_instance ();
-#line 198 "/home/jens/Source/shotwell/src/main.vala"
- _tmp118_ = _tmp117_;
-#line 198 "/home/jens/Source/shotwell/src/main.vala"
- application_start (_tmp118_, NULL, 0);
-#line 198 "/home/jens/Source/shotwell/src/main.vala"
- _application_unref0 (_tmp118_);
-#line 200 "/home/jens/Source/shotwell/src/main.vala"
- desktop_integration_terminate ();
-#line 201 "/home/jens/Source/shotwell/src/main.vala"
- metadata_writer_terminate ();
-#line 202 "/home/jens/Source/shotwell/src/main.vala"
- tag_terminate ();
-#line 203 "/home/jens/Source/shotwell/src/main.vala"
- event_terminate ();
-#line 204 "/home/jens/Source/shotwell/src/main.vala"
- library_photo_terminate ();
-#line 205 "/home/jens/Source/shotwell/src/main.vala"
- media_collection_registry_terminate ();
-#line 206 "/home/jens/Source/shotwell/src/main.vala"
- library_monitor_pool_terminate ();
-#line 207 "/home/jens/Source/shotwell/src/main.vala"
- tombstone_terminate ();
-#line 208 "/home/jens/Source/shotwell/src/main.vala"
- thumbnail_cache_terminate ();
-#line 209 "/home/jens/Source/shotwell/src/main.vala"
- video_terminate ();
-#line 210 "/home/jens/Source/shotwell/src/main.vala"
- library_app_terminate ();
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- selected_import_entries = (_vala_array_free (selected_import_entries, selected_import_entries_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (library_window);
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- _media_collection_registry_unref0 (registry);
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- monitor = NULL;
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target = NULL;
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- monitor_target_destroy_notify = NULL;
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- _aggregate_progress_monitor_unref0 (aggregate_monitor);
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (progress_dialog);
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (app_version);
-#line 15 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (errormsg);
-#line 1859 "main.c"
-}
-
-
-static void
-_report_system_pictures_import_batch_import_import_reporter (ImportManifest* manifest,
- BatchImportRoll* import_roll,
- gpointer self)
-{
-#line 225 "/home/jens/Source/shotwell/src/main.vala"
- report_system_pictures_import (manifest, import_roll);
-#line 1870 "main.c"
-}
-
-
-void
-run_system_pictures_import (ImportManifest* external_exclusion_manifest)
-{
- gboolean _tmp0_;
- GeeArrayList* jobs = NULL;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- FileImportJob* _tmp5_;
- FileImportJob* _tmp6_;
- LibraryWindow* library_window = NULL;
- AppWindow* _tmp7_;
- BatchImport* batch_import = NULL;
- GeeArrayList* _tmp8_;
- BatchImport* _tmp9_;
- LibraryWindow* _tmp10_;
- BatchImport* _tmp11_;
- LibraryWindow* _tmp12_;
-#line 216 "/home/jens/Source/shotwell/src/main.vala"
- g_return_if_fail ((external_exclusion_manifest == NULL) || IS_IMPORT_MANIFEST (external_exclusion_manifest));
-#line 217 "/home/jens/Source/shotwell/src/main.vala"
- _tmp0_ = do_system_pictures_import;
-#line 217 "/home/jens/Source/shotwell/src/main.vala"
- if (!_tmp0_) {
-#line 218 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 1901 "main.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/main.vala"
- _tmp1_ = gee_array_list_new (TYPE_FILE_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
-#line 220 "/home/jens/Source/shotwell/src/main.vala"
- jobs = _tmp1_;
-#line 221 "/home/jens/Source/shotwell/src/main.vala"
- _tmp2_ = jobs;
-#line 221 "/home/jens/Source/shotwell/src/main.vala"
- _tmp3_ = app_dirs_get_import_dir ();
-#line 221 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_ = _tmp3_;
-#line 221 "/home/jens/Source/shotwell/src/main.vala"
- _tmp5_ = file_import_job_new (_tmp4_, FALSE, TRUE);
-#line 221 "/home/jens/Source/shotwell/src/main.vala"
- _tmp6_ = _tmp5_;
-#line 221 "/home/jens/Source/shotwell/src/main.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_);
-#line 221 "/home/jens/Source/shotwell/src/main.vala"
- _batch_import_job_unref0 (_tmp6_);
-#line 221 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp4_);
-#line 223 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_ = app_window_get_instance ();
-#line 223 "/home/jens/Source/shotwell/src/main.vala"
- library_window = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_WINDOW, LibraryWindow);
-#line 225 "/home/jens/Source/shotwell/src/main.vala"
- _tmp8_ = jobs;
-#line 225 "/home/jens/Source/shotwell/src/main.vala"
- _tmp9_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable), "startup_import", _report_system_pictures_import_batch_import_import_reporter, NULL, NULL, NULL, NULL, NULL, external_exclusion_manifest);
-#line 225 "/home/jens/Source/shotwell/src/main.vala"
- batch_import = _tmp9_;
-#line 227 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_ = library_window;
-#line 227 "/home/jens/Source/shotwell/src/main.vala"
- _tmp11_ = batch_import;
-#line 227 "/home/jens/Source/shotwell/src/main.vala"
- library_window_enqueue_batch_import (_tmp10_, _tmp11_, TRUE);
-#line 229 "/home/jens/Source/shotwell/src/main.vala"
- _tmp12_ = library_window;
-#line 229 "/home/jens/Source/shotwell/src/main.vala"
- library_window_switch_to_import_queue_page (_tmp12_);
-#line 216 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (batch_import);
-#line 216 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (library_window);
-#line 216 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (jobs);
-#line 1949 "main.c"
-}
-
-
-void
-report_system_pictures_import (ImportManifest* manifest,
- BatchImportRoll* import_roll)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 232 "/home/jens/Source/shotwell/src/main.vala"
- g_return_if_fail (IS_IMPORT_MANIFEST (manifest));
-#line 232 "/home/jens/Source/shotwell/src/main.vala"
- g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll));
-#line 239 "/home/jens/Source/shotwell/src/main.vala"
- _tmp1_ = do_external_import;
-#line 239 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp1_) {
-#line 1967 "main.c"
- GeeList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 239 "/home/jens/Source/shotwell/src/main.vala"
- _tmp2_ = manifest->all;
-#line 239 "/home/jens/Source/shotwell/src/main.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 239 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_ = _tmp3_;
-#line 239 "/home/jens/Source/shotwell/src/main.vala"
- _tmp0_ = _tmp4_ == 0;
-#line 1979 "main.c"
- } else {
-#line 239 "/home/jens/Source/shotwell/src/main.vala"
- _tmp0_ = FALSE;
-#line 1983 "main.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp0_) {
-#line 240 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 1989 "main.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/main.vala"
- import_ui_report_manifest (manifest, TRUE, NULL);
-#line 1993 "main.c"
-}
-
-
-void
-editing_exec (const gchar* filename,
- gboolean fullscreen)
-{
- GFile* initial_file = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- DirectWindow* direct_window = NULL;
- GFile* _tmp4_;
- DirectWindow* _tmp5_;
- DirectWindow* _tmp6_;
- GTimer* _tmp7_;
- gdouble _tmp8_;
- Application* _tmp13_;
- Application* _tmp14_;
- GError * _inner_error_ = NULL;
-#line 245 "/home/jens/Source/shotwell/src/main.vala"
- g_return_if_fail (filename != NULL);
-#line 246 "/home/jens/Source/shotwell/src/main.vala"
- _tmp0_ = g_file_new_for_commandline_arg (filename);
-#line 246 "/home/jens/Source/shotwell/src/main.vala"
- initial_file = _tmp0_;
-#line 249 "/home/jens/Source/shotwell/src/main.vala"
- _tmp1_ = initial_file;
-#line 249 "/home/jens/Source/shotwell/src/main.vala"
- direct_preconfigure (_tmp1_);
-#line 250 "/home/jens/Source/shotwell/src/main.vala"
- db_preconfigure (NULL);
-#line 2025 "main.c"
- {
-#line 254 "/home/jens/Source/shotwell/src/main.vala"
- direct_app_init (&_inner_error_);
-#line 254 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2031 "main.c"
- goto __catch235_g_error;
- }
- }
- goto __finally235;
- __catch235_g_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
- const gchar* _tmp3_;
-#line 253 "/home/jens/Source/shotwell/src/main.vala"
- err = _inner_error_;
-#line 253 "/home/jens/Source/shotwell/src/main.vala"
- _inner_error_ = NULL;
-#line 256 "/home/jens/Source/shotwell/src/main.vala"
- _tmp2_ = err;
-#line 256 "/home/jens/Source/shotwell/src/main.vala"
- _tmp3_ = _tmp2_->message;
-#line 256 "/home/jens/Source/shotwell/src/main.vala"
- app_window_panic (_tmp3_);
-#line 258 "/home/jens/Source/shotwell/src/main.vala"
- _g_error_free0 (err);
-#line 258 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (initial_file);
-#line 258 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 2057 "main.c"
- }
- __finally235:
-#line 253 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 253 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (initial_file);
-#line 253 "/home/jens/Source/shotwell/src/main.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 253 "/home/jens/Source/shotwell/src/main.vala"
- g_clear_error (&_inner_error_);
-#line 253 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 2070 "main.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/main.vala"
- desktop_integration_init ();
-#line 268 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_ = initial_file;
-#line 268 "/home/jens/Source/shotwell/src/main.vala"
- _tmp5_ = direct_window_new (_tmp4_);
-#line 268 "/home/jens/Source/shotwell/src/main.vala"
- g_object_ref_sink (_tmp5_);
-#line 268 "/home/jens/Source/shotwell/src/main.vala"
- direct_window = _tmp5_;
-#line 269 "/home/jens/Source/shotwell/src/main.vala"
- _tmp6_ = direct_window;
-#line 269 "/home/jens/Source/shotwell/src/main.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget));
-#line 271 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_ = startup_timer;
-#line 271 "/home/jens/Source/shotwell/src/main.vala"
- _tmp8_ = g_timer_elapsed (_tmp7_, NULL);
-#line 271 "/home/jens/Source/shotwell/src/main.vala"
- g_debug ("main.vala:271: %lf seconds to Gtk.main()", _tmp8_);
-#line 273 "/home/jens/Source/shotwell/src/main.vala"
- if (fullscreen) {
-#line 2094 "main.c"
- GAction* action = NULL;
- DirectWindow* _tmp9_;
- GAction* _tmp10_;
- GAction* _tmp11_;
-#line 274 "/home/jens/Source/shotwell/src/main.vala"
- _tmp9_ = direct_window;
-#line 274 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_ = app_window_get_common_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_APP_WINDOW, AppWindow), "CommonFullscreen");
-#line 274 "/home/jens/Source/shotwell/src/main.vala"
- action = _tmp10_;
-#line 275 "/home/jens/Source/shotwell/src/main.vala"
- _tmp11_ = action;
-#line 275 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp11_ != NULL) {
-#line 2109 "main.c"
- GAction* _tmp12_;
-#line 276 "/home/jens/Source/shotwell/src/main.vala"
- _tmp12_ = action;
-#line 276 "/home/jens/Source/shotwell/src/main.vala"
- g_action_activate (_tmp12_, NULL);
-#line 2115 "main.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (action);
-#line 2119 "main.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_ = application_get_instance ();
-#line 280 "/home/jens/Source/shotwell/src/main.vala"
- _tmp14_ = _tmp13_;
-#line 280 "/home/jens/Source/shotwell/src/main.vala"
- application_start (_tmp14_, NULL, 0);
-#line 280 "/home/jens/Source/shotwell/src/main.vala"
- _application_unref0 (_tmp14_);
-#line 282 "/home/jens/Source/shotwell/src/main.vala"
- desktop_integration_terminate ();
-#line 285 "/home/jens/Source/shotwell/src/main.vala"
- direct_app_terminate ();
-#line 245 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (direct_window);
-#line 245 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (initial_file);
-#line 2137 "main.c"
-}
-
-
-static GOptionEntry*
-_vala_array_dup22 (GOptionEntry* self,
- int length)
-{
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- return g_memdup (self, length * sizeof (GOptionEntry));
-#line 2147 "main.c"
-}
-
-
-static void
-_vala_array_add72 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value)
-{
-#line 304 "/home/jens/Source/shotwell/src/main.vala"
- if ((*length) == (*size)) {
-#line 304 "/home/jens/Source/shotwell/src/main.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 304 "/home/jens/Source/shotwell/src/main.vala"
- *array = g_renew (GOptionEntry, *array, *size);
-#line 2163 "main.c"
- }
-#line 304 "/home/jens/Source/shotwell/src/main.vala"
- (*array)[(*length)++] = *value;
-#line 2167 "main.c"
-}
-
-
-static void
-_vala_array_add73 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value)
-{
-#line 308 "/home/jens/Source/shotwell/src/main.vala"
- if ((*length) == (*size)) {
-#line 308 "/home/jens/Source/shotwell/src/main.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 308 "/home/jens/Source/shotwell/src/main.vala"
- *array = g_renew (GOptionEntry, *array, *size);
-#line 2183 "main.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/main.vala"
- (*array)[(*length)++] = *value;
-#line 2187 "main.c"
-}
-
-
-static void
-_vala_array_add74 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value)
-{
-#line 312 "/home/jens/Source/shotwell/src/main.vala"
- if ((*length) == (*size)) {
-#line 312 "/home/jens/Source/shotwell/src/main.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 312 "/home/jens/Source/shotwell/src/main.vala"
- *array = g_renew (GOptionEntry, *array, *size);
-#line 2203 "main.c"
- }
-#line 312 "/home/jens/Source/shotwell/src/main.vala"
- (*array)[(*length)++] = *value;
-#line 2207 "main.c"
-}
-
-
-static void
-_vala_array_add75 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value)
-{
-#line 316 "/home/jens/Source/shotwell/src/main.vala"
- if ((*length) == (*size)) {
-#line 316 "/home/jens/Source/shotwell/src/main.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 316 "/home/jens/Source/shotwell/src/main.vala"
- *array = g_renew (GOptionEntry, *array, *size);
-#line 2223 "main.c"
- }
-#line 316 "/home/jens/Source/shotwell/src/main.vala"
- (*array)[(*length)++] = *value;
-#line 2227 "main.c"
-}
-
-
-static void
-_vala_array_add76 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value)
-{
-#line 320 "/home/jens/Source/shotwell/src/main.vala"
- if ((*length) == (*size)) {
-#line 320 "/home/jens/Source/shotwell/src/main.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 320 "/home/jens/Source/shotwell/src/main.vala"
- *array = g_renew (GOptionEntry, *array, *size);
-#line 2243 "main.c"
- }
-#line 320 "/home/jens/Source/shotwell/src/main.vala"
- (*array)[(*length)++] = *value;
-#line 2247 "main.c"
-}
-
-
-static void
-_vala_array_add77 (GOptionEntry* * array,
- int* length,
- int* size,
- const GOptionEntry* value)
-{
-#line 323 "/home/jens/Source/shotwell/src/main.vala"
- if ((*length) == (*size)) {
-#line 323 "/home/jens/Source/shotwell/src/main.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 323 "/home/jens/Source/shotwell/src/main.vala"
- *array = g_renew (GOptionEntry, *array, *size);
-#line 2263 "main.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/main.vala"
- (*array)[(*length)++] = *value;
-#line 2267 "main.c"
-}
-
-
-static GOptionEntry*
-_vala_array_dup23 (GOptionEntry* self,
- int length)
-{
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- return g_memdup (self, length * sizeof (GOptionEntry));
-#line 2277 "main.c"
-}
-
-
-GOptionEntry*
-commandline_options_get_options (int* result_length1)
-{
- GOptionEntry* result = NULL;
- GOptionEntry* _tmp0_;
- gint _tmp0__length1;
- GOptionEntry datadir = {0};
- GOptionEntry _tmp4_ = {0};
- GOptionEntry* _tmp5_;
- gint _tmp5__length1;
- GOptionEntry _tmp6_;
- GOptionEntry no_monitoring = {0};
- GOptionEntry _tmp7_ = {0};
- GOptionEntry* _tmp8_;
- gint _tmp8__length1;
- GOptionEntry _tmp9_;
- GOptionEntry no_startup = {0};
- GOptionEntry _tmp10_ = {0};
- GOptionEntry* _tmp11_;
- gint _tmp11__length1;
- GOptionEntry _tmp12_;
- GOptionEntry version = {0};
- GOptionEntry _tmp13_ = {0};
- GOptionEntry* _tmp14_;
- gint _tmp14__length1;
- GOptionEntry _tmp15_;
- GOptionEntry fullscreen = {0};
- GOptionEntry _tmp16_ = {0};
- GOptionEntry* _tmp17_;
- gint _tmp17__length1;
- GOptionEntry _tmp18_;
- GOptionEntry terminator = {0};
- GOptionEntry _tmp19_ = {0};
- GOptionEntry* _tmp20_;
- gint _tmp20__length1;
- GOptionEntry _tmp21_;
- GOptionEntry* _tmp22_;
- gint _tmp22__length1;
- GOptionEntry* _tmp23_;
- gint _tmp23__length1;
- GOptionEntry* _tmp24_;
- gint _tmp24__length1;
-#line 299 "/home/jens/Source/shotwell/src/main.vala"
- _tmp0_ = commandline_options_entries;
-#line 299 "/home/jens/Source/shotwell/src/main.vala"
- _tmp0__length1 = commandline_options_entries_length1;
-#line 299 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp0_ != NULL) {
-#line 2329 "main.c"
- GOptionEntry* _tmp1_;
- gint _tmp1__length1;
- GOptionEntry* _tmp2_;
- gint _tmp2__length1;
- GOptionEntry* _tmp3_;
- gint _tmp3__length1;
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- _tmp1_ = commandline_options_entries;
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- _tmp1__length1 = commandline_options_entries_length1;
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- _tmp2_ = (_tmp1_ != NULL) ? _vala_array_dup22 (_tmp1_, _tmp1__length1) : ((gpointer) _tmp1_);
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- _tmp3_ = _tmp2_;
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- _tmp3__length1 = _tmp2__length1;
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- if (result_length1) {
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- *result_length1 = _tmp3__length1;
-#line 2352 "main.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- result = _tmp3_;
-#line 300 "/home/jens/Source/shotwell/src/main.vala"
- return result;
-#line 2358 "main.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_.long_name = "datadir";
-#line 302 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_.short_name = 'd';
-#line 302 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_.flags = 0;
-#line 302 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_.arg = G_OPTION_ARG_FILENAME;
-#line 302 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_.arg_data = &commandline_options_data_dir;
-#line 302 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_.description = _ ("Path to Shotwell’s private data");
-#line 302 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_.arg_description = _ ("DIRECTORY");
-#line 302 "/home/jens/Source/shotwell/src/main.vala"
- datadir = _tmp4_;
-#line 304 "/home/jens/Source/shotwell/src/main.vala"
- _tmp5_ = commandline_options_entries;
-#line 304 "/home/jens/Source/shotwell/src/main.vala"
- _tmp5__length1 = commandline_options_entries_length1;
-#line 304 "/home/jens/Source/shotwell/src/main.vala"
- _tmp6_ = datadir;
-#line 304 "/home/jens/Source/shotwell/src/main.vala"
- _vala_array_add72 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp6_);
-#line 306 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_.long_name = "no-runtime-monitoring";
-#line 306 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_.short_name = (gchar) 0;
-#line 306 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_.flags = 0;
-#line 306 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_.arg = G_OPTION_ARG_NONE;
-#line 306 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_.arg_data = &commandline_options_no_runtime_monitoring;
-#line 306 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_.description = _ ("Do not monitor library directory at runtime for changes");
-#line 306 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_.arg_description = NULL;
-#line 306 "/home/jens/Source/shotwell/src/main.vala"
- no_monitoring = _tmp7_;
-#line 308 "/home/jens/Source/shotwell/src/main.vala"
- _tmp8_ = commandline_options_entries;
-#line 308 "/home/jens/Source/shotwell/src/main.vala"
- _tmp8__length1 = commandline_options_entries_length1;
-#line 308 "/home/jens/Source/shotwell/src/main.vala"
- _tmp9_ = no_monitoring;
-#line 308 "/home/jens/Source/shotwell/src/main.vala"
- _vala_array_add73 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp9_);
-#line 310 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_.long_name = "no-startup-progress";
-#line 310 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_.short_name = (gchar) 0;
-#line 310 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_.flags = 0;
-#line 310 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_.arg = G_OPTION_ARG_NONE;
-#line 310 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_.arg_data = &commandline_options_no_startup_progress;
-#line 310 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_.description = _ ("Don’t display startup progress meter");
-#line 310 "/home/jens/Source/shotwell/src/main.vala"
- _tmp10_.arg_description = NULL;
-#line 310 "/home/jens/Source/shotwell/src/main.vala"
- no_startup = _tmp10_;
-#line 312 "/home/jens/Source/shotwell/src/main.vala"
- _tmp11_ = commandline_options_entries;
-#line 312 "/home/jens/Source/shotwell/src/main.vala"
- _tmp11__length1 = commandline_options_entries_length1;
-#line 312 "/home/jens/Source/shotwell/src/main.vala"
- _tmp12_ = no_startup;
-#line 312 "/home/jens/Source/shotwell/src/main.vala"
- _vala_array_add74 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp12_);
-#line 314 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_.long_name = "version";
-#line 314 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_.short_name = 'V';
-#line 314 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_.flags = 0;
-#line 314 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_.arg = G_OPTION_ARG_NONE;
-#line 314 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_.arg_data = &commandline_options_show_version;
-#line 314 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_.description = _ ("Show the application’s version");
-#line 314 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_.arg_description = NULL;
-#line 314 "/home/jens/Source/shotwell/src/main.vala"
- version = _tmp13_;
-#line 316 "/home/jens/Source/shotwell/src/main.vala"
- _tmp14_ = commandline_options_entries;
-#line 316 "/home/jens/Source/shotwell/src/main.vala"
- _tmp14__length1 = commandline_options_entries_length1;
-#line 316 "/home/jens/Source/shotwell/src/main.vala"
- _tmp15_ = version;
-#line 316 "/home/jens/Source/shotwell/src/main.vala"
- _vala_array_add75 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp15_);
-#line 318 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_.long_name = "fullscreen";
-#line 318 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_.short_name = 'f';
-#line 318 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_.flags = 0;
-#line 318 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_.arg = G_OPTION_ARG_NONE;
-#line 318 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_.arg_data = &commandline_options_fullscreen;
-#line 318 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_.description = _ ("Start the application in fullscreen mode");
-#line 318 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_.arg_description = NULL;
-#line 318 "/home/jens/Source/shotwell/src/main.vala"
- fullscreen = _tmp16_;
-#line 320 "/home/jens/Source/shotwell/src/main.vala"
- _tmp17_ = commandline_options_entries;
-#line 320 "/home/jens/Source/shotwell/src/main.vala"
- _tmp17__length1 = commandline_options_entries_length1;
-#line 320 "/home/jens/Source/shotwell/src/main.vala"
- _tmp18_ = fullscreen;
-#line 320 "/home/jens/Source/shotwell/src/main.vala"
- _vala_array_add76 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp18_);
-#line 322 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_.long_name = NULL;
-#line 322 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_.short_name = (gchar) 0;
-#line 322 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_.flags = 0;
-#line 322 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_.arg = 0;
-#line 322 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_.arg_data = NULL;
-#line 322 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_.description = NULL;
-#line 322 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_.arg_description = NULL;
-#line 322 "/home/jens/Source/shotwell/src/main.vala"
- terminator = _tmp19_;
-#line 323 "/home/jens/Source/shotwell/src/main.vala"
- _tmp20_ = commandline_options_entries;
-#line 323 "/home/jens/Source/shotwell/src/main.vala"
- _tmp20__length1 = commandline_options_entries_length1;
-#line 323 "/home/jens/Source/shotwell/src/main.vala"
- _tmp21_ = terminator;
-#line 323 "/home/jens/Source/shotwell/src/main.vala"
- _vala_array_add77 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp21_);
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- _tmp22_ = commandline_options_entries;
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- _tmp22__length1 = commandline_options_entries_length1;
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- _tmp23_ = (_tmp22_ != NULL) ? _vala_array_dup23 (_tmp22_, _tmp22__length1) : ((gpointer) _tmp22_);
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- _tmp23__length1 = _tmp22__length1;
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- _tmp24_ = _tmp23_;
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- _tmp24__length1 = _tmp23__length1;
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- if (result_length1) {
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- *result_length1 = _tmp24__length1;
-#line 2520 "main.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- result = _tmp24_;
-#line 325 "/home/jens/Source/shotwell/src/main.vala"
- return result;
-#line 2526 "main.c"
-}
-
-
-static void
-_vala_array_add78 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- if ((*length) == (*size)) {
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 2542 "main.c"
- }
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- (*array)[(*length)++] = value;
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- (*array)[*length] = NULL;
-#line 2548 "main.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2568 "main.c"
-}
-
-
-void
-_vala_main (gchar** args,
- int args_length1)
-{
- const gchar* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gboolean _tmp3_;
- gboolean _tmp18_;
- gchar** mounts = NULL;
- gchar** _tmp19_;
- gint mounts_length1;
- gint _mounts_size_;
- gchar* filename = NULL;
- const gchar* _tmp35_ = NULL;
- const gchar* _tmp36_;
- GDateTime* _tmp41_;
- GDateTime* _tmp42_;
- const gchar* _tmp43_;
- const gchar* _tmp44_;
- const gchar* _tmp45_;
- GTimer* _tmp47_;
- GTimer* _tmp48_;
- const gchar* _tmp49_;
- gboolean _tmp53_ = FALSE;
- const gchar* _tmp54_;
- GError * _inner_error_ = NULL;
-#line 333 "/home/jens/Source/shotwell/src/main.vala"
- _tmp0_ = args[0];
-#line 333 "/home/jens/Source/shotwell/src/main.vala"
- app_dirs_init (_tmp0_);
-#line 338 "/home/jens/Source/shotwell/src/main.vala"
- gexiv2_initialize ();
-#line 339 "/home/jens/Source/shotwell/src/main.vala"
- gexiv2_log_use_glib_logging ();
-#line 343 "/home/jens/Source/shotwell/src/main.vala"
- gexiv2_log_set_level (GEXIV2_LOG_LEVEL_DEBUG);
-#line 349 "/home/jens/Source/shotwell/src/main.vala"
- _tmp1_ = app_dirs_get_install_dir ();
-#line 349 "/home/jens/Source/shotwell/src/main.vala"
- _tmp2_ = _tmp1_;
-#line 349 "/home/jens/Source/shotwell/src/main.vala"
- _tmp3_ = _tmp2_ == NULL;
-#line 349 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp2_);
-#line 349 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp3_) {
-#line 2619 "main.c"
- GFile* _tmp4_;
- GFile* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _tmp4_ = app_dirs_get_lib_dir ();
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _tmp5_ = _tmp4_;
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _tmp6_ = g_file_get_path (_tmp5_);
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _tmp7_ = _tmp6_;
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _tmp8_ = g_strconcat (_tmp7_, "/misc", NULL);
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _tmp9_ = _tmp8_;
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- g_setenv ("GSETTINGS_SCHEMA_DIR", _tmp9_, TRUE);
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (_tmp9_);
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (_tmp7_);
-#line 350 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp5_);
-#line 2646 "main.c"
- }
- {
- gint _tmp10_;
- GOptionEntry* _tmp11_;
- GOptionEntry* _tmp12_;
- gint _tmp12__length1;
-#line 356 "/home/jens/Source/shotwell/src/main.vala"
- _tmp11_ = commandline_options_get_options (&_tmp10_);
-#line 356 "/home/jens/Source/shotwell/src/main.vala"
- _tmp12_ = _tmp11_;
-#line 356 "/home/jens/Source/shotwell/src/main.vala"
- _tmp12__length1 = _tmp10_;
-#line 356 "/home/jens/Source/shotwell/src/main.vala"
- gtk_init_with_args (&args_length1, &args, _ ("[FILE]"), _tmp12_, RESOURCES_APP_GETTEXT_PACKAGE, &_inner_error_);
-#line 356 "/home/jens/Source/shotwell/src/main.vala"
- _tmp12_ = (g_free (_tmp12_), NULL);
-#line 356 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2665 "main.c"
- goto __catch236_g_error;
- }
- }
- goto __finally236;
- __catch236_g_error:
- {
- GError* e = NULL;
- GError* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- const gchar* _tmp17_;
-#line 355 "/home/jens/Source/shotwell/src/main.vala"
- e = _inner_error_;
-#line 355 "/home/jens/Source/shotwell/src/main.vala"
- _inner_error_ = NULL;
-#line 359 "/home/jens/Source/shotwell/src/main.vala"
- _tmp13_ = e;
-#line 359 "/home/jens/Source/shotwell/src/main.vala"
- _tmp14_ = _tmp13_->message;
-#line 359 "/home/jens/Source/shotwell/src/main.vala"
- _tmp15_ = g_strconcat (_tmp14_, "\n", NULL);
-#line 359 "/home/jens/Source/shotwell/src/main.vala"
- _tmp16_ = _tmp15_;
-#line 359 "/home/jens/Source/shotwell/src/main.vala"
- g_print ("%s", _tmp16_);
-#line 359 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (_tmp16_);
-#line 360 "/home/jens/Source/shotwell/src/main.vala"
- _tmp17_ = args[0];
-#line 360 "/home/jens/Source/shotwell/src/main.vala"
- g_print (_ ("Run “%s --help” to see a full list of available command line options.\n"), _tmp17_);
-#line 361 "/home/jens/Source/shotwell/src/main.vala"
- app_dirs_terminate ();
-#line 362 "/home/jens/Source/shotwell/src/main.vala"
- _g_error_free0 (e);
-#line 362 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 2704 "main.c"
- }
- __finally236:
-#line 355 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 355 "/home/jens/Source/shotwell/src/main.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 355 "/home/jens/Source/shotwell/src/main.vala"
- g_clear_error (&_inner_error_);
-#line 355 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 2715 "main.c"
- }
-#line 365 "/home/jens/Source/shotwell/src/main.vala"
- _tmp18_ = commandline_options_show_version;
-#line 365 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp18_) {
-#line 366 "/home/jens/Source/shotwell/src/main.vala"
- if (RESOURCES_GIT_VERSION != NULL) {
-#line 367 "/home/jens/Source/shotwell/src/main.vala"
- g_print ("%s %s (%s)\n", RESOURCES_APP_TITLE, RESOURCES_APP_VERSION, RESOURCES_GIT_VERSION);
-#line 2725 "main.c"
- } else {
-#line 369 "/home/jens/Source/shotwell/src/main.vala"
- g_print ("%s %s\n", RESOURCES_APP_TITLE, RESOURCES_APP_VERSION);
-#line 2729 "main.c"
- }
-#line 371 "/home/jens/Source/shotwell/src/main.vala"
- app_dirs_terminate ();
-#line 373 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 2735 "main.c"
- }
-#line 383 "/home/jens/Source/shotwell/src/main.vala"
- _tmp19_ = g_new0 (gchar*, 0 + 1);
-#line 383 "/home/jens/Source/shotwell/src/main.vala"
- mounts = _tmp19_;
-#line 383 "/home/jens/Source/shotwell/src/main.vala"
- mounts_length1 = 0;
-#line 383 "/home/jens/Source/shotwell/src/main.vala"
- _mounts_size_ = mounts_length1;
-#line 384 "/home/jens/Source/shotwell/src/main.vala"
- filename = NULL;
-#line 2747 "main.c"
- {
- gint ctr = 0;
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- ctr = 1;
-#line 2752 "main.c"
- {
- gboolean _tmp20_ = FALSE;
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- _tmp20_ = TRUE;
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- while (TRUE) {
-#line 2759 "main.c"
- gint _tmp22_;
- gchar* arg = NULL;
- gint _tmp23_;
- const gchar* _tmp24_;
- gchar* _tmp25_;
- const gchar* _tmp26_;
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- if (!_tmp20_) {
-#line 2768 "main.c"
- gint _tmp21_;
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- _tmp21_ = ctr;
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- ctr = _tmp21_ + 1;
-#line 2774 "main.c"
- }
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- _tmp20_ = FALSE;
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- _tmp22_ = ctr;
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- if (!(_tmp22_ < args_length1)) {
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- break;
-#line 2784 "main.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/main.vala"
- _tmp23_ = ctr;
-#line 387 "/home/jens/Source/shotwell/src/main.vala"
- _tmp24_ = args[_tmp23_];
-#line 387 "/home/jens/Source/shotwell/src/main.vala"
- _tmp25_ = g_strdup (_tmp24_);
-#line 387 "/home/jens/Source/shotwell/src/main.vala"
- arg = _tmp25_;
-#line 389 "/home/jens/Source/shotwell/src/main.vala"
- _tmp26_ = arg;
-#line 389 "/home/jens/Source/shotwell/src/main.vala"
- if (library_window_is_mount_uri_supported (_tmp26_)) {
-#line 2798 "main.c"
- gchar** _tmp27_;
- gint _tmp27__length1;
- const gchar* _tmp28_;
- gchar* _tmp29_;
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- _tmp27_ = mounts;
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- _tmp27__length1 = mounts_length1;
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- _tmp28_ = arg;
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- _tmp29_ = g_strdup (_tmp28_);
-#line 390 "/home/jens/Source/shotwell/src/main.vala"
- _vala_array_add78 (&mounts, &mounts_length1, &_mounts_size_, _tmp29_);
-#line 2813 "main.c"
- } else {
- gboolean _tmp30_ = FALSE;
- const gchar* _tmp31_;
-#line 391 "/home/jens/Source/shotwell/src/main.vala"
- _tmp31_ = filename;
-#line 391 "/home/jens/Source/shotwell/src/main.vala"
- if (is_string_empty (_tmp31_)) {
-#line 2821 "main.c"
- const gchar* _tmp32_;
-#line 391 "/home/jens/Source/shotwell/src/main.vala"
- _tmp32_ = arg;
-#line 391 "/home/jens/Source/shotwell/src/main.vala"
- _tmp30_ = !string_contains (_tmp32_, "://");
-#line 2827 "main.c"
- } else {
-#line 391 "/home/jens/Source/shotwell/src/main.vala"
- _tmp30_ = FALSE;
-#line 2831 "main.c"
- }
-#line 391 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp30_) {
-#line 2835 "main.c"
- const gchar* _tmp33_;
- gchar* _tmp34_;
-#line 392 "/home/jens/Source/shotwell/src/main.vala"
- _tmp33_ = arg;
-#line 392 "/home/jens/Source/shotwell/src/main.vala"
- _tmp34_ = g_strdup (_tmp33_);
-#line 392 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (filename);
-#line 392 "/home/jens/Source/shotwell/src/main.vala"
- filename = _tmp34_;
-#line 2846 "main.c"
- }
- }
-#line 386 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (arg);
-#line 2851 "main.c"
- }
- }
- }
-#line 396 "/home/jens/Source/shotwell/src/main.vala"
- _tmp36_ = filename;
-#line 396 "/home/jens/Source/shotwell/src/main.vala"
- if (is_string_empty (_tmp36_)) {
-#line 396 "/home/jens/Source/shotwell/src/main.vala"
- _tmp35_ = DEBUG_LIBRARY_PREFIX;
-#line 2861 "main.c"
- } else {
-#line 396 "/home/jens/Source/shotwell/src/main.vala"
- _tmp35_ = DEBUG_VIEWER_PREFIX;
-#line 2865 "main.c"
- }
-#line 396 "/home/jens/Source/shotwell/src/main.vala"
- debug_init (_tmp35_);
-#line 398 "/home/jens/Source/shotwell/src/main.vala"
- if (RESOURCES_GIT_VERSION != NULL) {
-#line 2871 "main.c"
- const gchar* _tmp37_ = NULL;
- const gchar* _tmp38_;
-#line 400 "/home/jens/Source/shotwell/src/main.vala"
- _tmp38_ = filename;
-#line 400 "/home/jens/Source/shotwell/src/main.vala"
- if (is_string_empty (_tmp38_)) {
-#line 400 "/home/jens/Source/shotwell/src/main.vala"
- _tmp37_ = RESOURCES_APP_LIBRARY_ROLE;
-#line 2880 "main.c"
- } else {
-#line 400 "/home/jens/Source/shotwell/src/main.vala"
- _tmp37_ = RESOURCES_APP_DIRECT_ROLE;
-#line 2884 "main.c"
- }
-#line 399 "/home/jens/Source/shotwell/src/main.vala"
- g_message ("main.vala:399: Shotwell %s %s (%s)", _tmp37_, RESOURCES_APP_VERSION, RESOURCES_GIT_VERSION);
-#line 2888 "main.c"
- } else {
- const gchar* _tmp39_ = NULL;
- const gchar* _tmp40_;
-#line 404 "/home/jens/Source/shotwell/src/main.vala"
- _tmp40_ = filename;
-#line 404 "/home/jens/Source/shotwell/src/main.vala"
- if (is_string_empty (_tmp40_)) {
-#line 404 "/home/jens/Source/shotwell/src/main.vala"
- _tmp39_ = RESOURCES_APP_LIBRARY_ROLE;
-#line 2898 "main.c"
- } else {
-#line 404 "/home/jens/Source/shotwell/src/main.vala"
- _tmp39_ = RESOURCES_APP_DIRECT_ROLE;
-#line 2902 "main.c"
- }
-#line 403 "/home/jens/Source/shotwell/src/main.vala"
- g_message ("main.vala:403: Shotwell %s %s", _tmp39_, RESOURCES_APP_VERSION);
-#line 2906 "main.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/main.vala"
- _tmp41_ = g_date_time_new_now_local ();
-#line 407 "/home/jens/Source/shotwell/src/main.vala"
- _tmp42_ = _tmp41_;
-#line 407 "/home/jens/Source/shotwell/src/main.vala"
- _tmp43_ = g_date_time_get_timezone_abbreviation (_tmp42_);
-#line 407 "/home/jens/Source/shotwell/src/main.vala"
- g_debug ("main.vala:407: Shotwell is running in timezone %s", _tmp43_);
-#line 407 "/home/jens/Source/shotwell/src/main.vala"
- _g_date_time_unref0 (_tmp42_);
-#line 412 "/home/jens/Source/shotwell/src/main.vala"
- _tmp44_ = filename;
-#line 412 "/home/jens/Source/shotwell/src/main.vala"
- application_init (!is_string_empty (_tmp44_));
-#line 415 "/home/jens/Source/shotwell/src/main.vala"
- _tmp45_ = commandline_options_data_dir;
-#line 415 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp45_ != NULL) {
-#line 2926 "main.c"
- const gchar* _tmp46_;
-#line 416 "/home/jens/Source/shotwell/src/main.vala"
- _tmp46_ = commandline_options_data_dir;
-#line 416 "/home/jens/Source/shotwell/src/main.vala"
- app_dirs_set_data_dir (_tmp46_);
-#line 2932 "main.c"
- } else {
-#line 418 "/home/jens/Source/shotwell/src/main.vala"
- app_dirs_try_migrate_data ();
-#line 2936 "main.c"
- }
-#line 421 "/home/jens/Source/shotwell/src/main.vala"
- app_dirs_verify_data_dir ();
-#line 422 "/home/jens/Source/shotwell/src/main.vala"
- app_dirs_verify_cache_dir ();
-#line 425 "/home/jens/Source/shotwell/src/main.vala"
- international_support_init (RESOURCES_APP_GETTEXT_PACKAGE, args, args_length1, INTERNATIONAL_SUPPORT_SYSTEM_LOCALE);
-#line 427 "/home/jens/Source/shotwell/src/main.vala"
- _tmp47_ = g_timer_new ();
-#line 427 "/home/jens/Source/shotwell/src/main.vala"
- _g_timer_destroy0 (startup_timer);
-#line 427 "/home/jens/Source/shotwell/src/main.vala"
- startup_timer = _tmp47_;
-#line 428 "/home/jens/Source/shotwell/src/main.vala"
- _tmp48_ = startup_timer;
-#line 428 "/home/jens/Source/shotwell/src/main.vala"
- g_timer_start (_tmp48_);
-#line 431 "/home/jens/Source/shotwell/src/main.vala"
- g_set_application_name (RESOURCES_APP_TITLE);
-#line 435 "/home/jens/Source/shotwell/src/main.vala"
- resources_init ();
-#line 440 "/home/jens/Source/shotwell/src/main.vala"
- _tmp49_ = filename;
-#line 440 "/home/jens/Source/shotwell/src/main.vala"
- if (is_string_empty (_tmp49_)) {
-#line 2962 "main.c"
- gchar** _tmp50_;
- gint _tmp50__length1;
-#line 441 "/home/jens/Source/shotwell/src/main.vala"
- _tmp50_ = mounts;
-#line 441 "/home/jens/Source/shotwell/src/main.vala"
- _tmp50__length1 = mounts_length1;
-#line 441 "/home/jens/Source/shotwell/src/main.vala"
- library_exec (_tmp50_, _tmp50__length1);
-#line 2971 "main.c"
- } else {
- const gchar* _tmp51_;
- gboolean _tmp52_;
-#line 443 "/home/jens/Source/shotwell/src/main.vala"
- _tmp51_ = filename;
-#line 443 "/home/jens/Source/shotwell/src/main.vala"
- _tmp52_ = commandline_options_fullscreen;
-#line 443 "/home/jens/Source/shotwell/src/main.vala"
- editing_exec (_tmp51_, _tmp52_);
-#line 2981 "main.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/main.vala"
- resources_terminate ();
-#line 447 "/home/jens/Source/shotwell/src/main.vala"
- application_terminate ();
-#line 448 "/home/jens/Source/shotwell/src/main.vala"
- debug_terminate ();
-#line 449 "/home/jens/Source/shotwell/src/main.vala"
- app_dirs_terminate ();
-#line 454 "/home/jens/Source/shotwell/src/main.vala"
- _tmp54_ = filename;
-#line 454 "/home/jens/Source/shotwell/src/main.vala"
- if (is_string_empty (_tmp54_)) {
-#line 2995 "main.c"
- gboolean _tmp55_;
-#line 454 "/home/jens/Source/shotwell/src/main.vala"
- _tmp55_ = was_already_running;
-#line 454 "/home/jens/Source/shotwell/src/main.vala"
- _tmp53_ = !_tmp55_;
-#line 3001 "main.c"
- } else {
-#line 454 "/home/jens/Source/shotwell/src/main.vala"
- _tmp53_ = FALSE;
-#line 3005 "main.c"
- }
-#line 454 "/home/jens/Source/shotwell/src/main.vala"
- if (_tmp53_) {
-#line 3009 "main.c"
- gchar* orig_path = NULL;
- GFile* _tmp56_;
- GFile* _tmp57_;
- GFile* _tmp58_;
- GFile* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
- gchar* backup_path = NULL;
- const gchar* _tmp62_;
- gchar* _tmp63_;
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- _tmp56_ = app_dirs_get_data_subdir ("data", NULL);
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- _tmp57_ = _tmp56_;
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- _tmp58_ = g_file_get_child (_tmp57_, "photo.db");
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- _tmp59_ = _tmp58_;
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- _tmp60_ = g_file_get_path (_tmp59_);
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- _tmp61_ = _tmp60_;
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp59_);
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (_tmp57_);
-#line 455 "/home/jens/Source/shotwell/src/main.vala"
- orig_path = _tmp61_;
-#line 456 "/home/jens/Source/shotwell/src/main.vala"
- _tmp62_ = orig_path;
-#line 456 "/home/jens/Source/shotwell/src/main.vala"
- _tmp63_ = g_strconcat (_tmp62_, ".bak", NULL);
-#line 456 "/home/jens/Source/shotwell/src/main.vala"
- backup_path = _tmp63_;
-#line 3044 "main.c"
- {
- GFile* src = NULL;
- const gchar* _tmp64_;
- GFile* _tmp65_;
- GFile* dest = NULL;
- const gchar* _tmp66_;
- GFile* _tmp67_;
- GFile* _tmp68_;
- GFile* _tmp69_;
-#line 458 "/home/jens/Source/shotwell/src/main.vala"
- _tmp64_ = orig_path;
-#line 458 "/home/jens/Source/shotwell/src/main.vala"
- _tmp65_ = g_file_new_for_commandline_arg (_tmp64_);
-#line 458 "/home/jens/Source/shotwell/src/main.vala"
- src = _tmp65_;
-#line 459 "/home/jens/Source/shotwell/src/main.vala"
- _tmp66_ = backup_path;
-#line 459 "/home/jens/Source/shotwell/src/main.vala"
- _tmp67_ = g_file_new_for_commandline_arg (_tmp66_);
-#line 459 "/home/jens/Source/shotwell/src/main.vala"
- dest = _tmp67_;
-#line 460 "/home/jens/Source/shotwell/src/main.vala"
- _tmp68_ = src;
-#line 460 "/home/jens/Source/shotwell/src/main.vala"
- _tmp69_ = dest;
-#line 460 "/home/jens/Source/shotwell/src/main.vala"
- g_file_copy (_tmp68_, _tmp69_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_ALL_METADATA, NULL, NULL, NULL, &_inner_error_);
-#line 460 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 460 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (dest);
-#line 460 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (src);
-#line 3078 "main.c"
- goto __catch237_g_error;
- }
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (dest);
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- _g_object_unref0 (src);
-#line 3085 "main.c"
- }
- goto __finally237;
- __catch237_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp70_;
- const gchar* _tmp71_;
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- _error_ = _inner_error_;
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- _inner_error_ = NULL;
-#line 464 "/home/jens/Source/shotwell/src/main.vala"
- _tmp70_ = _error_;
-#line 464 "/home/jens/Source/shotwell/src/main.vala"
- _tmp71_ = _tmp70_->message;
-#line 464 "/home/jens/Source/shotwell/src/main.vala"
- g_warning ("main.vala:464: Failed to create backup file of database: %s", _tmp71_);
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- _g_error_free0 (_error_);
-#line 3105 "main.c"
- }
- __finally237:
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (backup_path);
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (orig_path);
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (filename);
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- mounts = (_vala_array_free (mounts, mounts_length1, (GDestroyNotify) g_free), NULL);
-#line 457 "/home/jens/Source/shotwell/src/main.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 457 "/home/jens/Source/shotwell/src/main.vala"
- g_clear_error (&_inner_error_);
-#line 457 "/home/jens/Source/shotwell/src/main.vala"
- return;
-#line 3124 "main.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/main.vala"
- sync ();
-#line 454 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (backup_path);
-#line 454 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (orig_path);
-#line 3132 "main.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/main.vala"
- _g_free0 (filename);
-#line 330 "/home/jens/Source/shotwell/src/main.vala"
- mounts = (_vala_array_free (mounts, mounts_length1, (GDestroyNotify) g_free), NULL);
-#line 3138 "main.c"
-}
-
-
-int
-main (int argc,
- char ** argv)
-{
-#line 330 "/home/jens/Source/shotwell/src/main.vala"
- _vala_main (argv, argc);
-#line 330 "/home/jens/Source/shotwell/src/main.vala"
- return 0;
-#line 3150 "main.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/main.vala b/src/main.vala
index d09c827..8313ba1 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -99,6 +99,10 @@ void library_exec(string[] mounts) {
+ EventTable.get_instance().get_row_count()
+ TagTable.get_instance().get_row_count()
+ VideoTable.get_instance().get_row_count()
+#if ENABLE_FACES
+ + FaceTable.get_instance().get_row_count()
+ + FaceLocationTable.get_instance().get_row_count()
+#endif
+ Upgrades.get_instance().get_step_count();
if (grand_total > 5000) {
progress_dialog = new ProgressDialog(null, _("Loading Shotwell"));
@@ -142,6 +146,14 @@ void library_exec(string[] mounts) {
if (aggregate_monitor != null)
aggregate_monitor.next_step("Tag.init");
Tag.init(monitor);
+#if ENABLE_FACES
+ if (aggregate_monitor != null)
+ aggregate_monitor.next_step("FaceLocation.init");
+ FaceLocation.init(monitor);
+ if (aggregate_monitor != null)
+ aggregate_monitor.next_step("Face.init");
+ Face.init(monitor);
+#endif
MetadataWriter.init();
DesktopIntegration.init();
@@ -207,6 +219,11 @@ void library_exec(string[] mounts) {
Tombstone.terminate();
ThumbnailCache.terminate();
Video.terminate();
+#if ENABLE_FACES
+ Face.terminate();
+ FaceLocation.terminate();
+#endif
+
Library.app_terminate();
}
@@ -355,13 +372,16 @@ void main(string[] args) {
try {
Gtk.init_with_args(ref args, _("[FILE]"), CommandlineOptions.get_options(),
Resources.APP_GETTEXT_PACKAGE);
+
+ var use_dark = Config.Facade.get_instance().get_gtk_theme_variant();
+ Gtk.Settings.get_default().gtk_application_prefer_dark_theme = use_dark;
} catch (Error e) {
print(e.message + "\n");
print(_("Run “%s --help” to see a full list of available command line options.\n"), args[0]);
AppDirs.terminate();
return;
}
-
+
if (CommandlineOptions.show_version) {
if (Resources.GIT_VERSION != null)
print("%s %s (%s)\n", Resources.APP_TITLE, Resources.APP_VERSION, Resources.GIT_VERSION);
@@ -403,7 +423,6 @@ void main(string[] args) {
message("Shotwell %s %s",
is_string_empty(filename) ? Resources.APP_LIBRARY_ROLE : Resources.APP_DIRECT_ROLE,
Resources.APP_VERSION);
-
debug ("Shotwell is running in timezone %s", new
DateTime.now_local().get_timezone_abbreviation ());
diff --git a/src/meson.build b/src/meson.build
index ba260e7..c452a98 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -17,13 +17,25 @@ processor = executable('shotwell-graphics-processor',
dependencies: [gio, gdk, gee],
link_with: sw_graphics_processor)
+face_sources = []
+if get_option('face-detection')
+ face_sources = (['faces/FacesBranch.vala',
+ 'faces/FaceLocation.vala',
+ 'faces/FacePage.vala',
+ 'faces/FaceShape.vala',
+ 'faces/Faces.vala',
+ 'faces/Face.vala',
+ 'db/FaceLocationTable.vala',
+ 'db/FaceTable.vala',
+ 'faces/FacesTool.vala'])
+endif
+
shotwell_deps = [gio, gee, sqlite, gtk, sqlite, posix, gphoto2,
gstreamer_pbu, gio_unix, gudev, gexiv2, gmodule,
libraw, libexif, sw_plugin]
if unity_available
shotwell_deps += [unity]
endif
-
executable('shotwell',
['unit/Unit.vala',
'util/Util.vala',
@@ -58,6 +70,7 @@ executable('shotwell',
'photos/PhotoMetadata.vala',
'photos/GRaw.vala',
'photos/GdkSupport.vala',
+ 'photos/GifSupport.vala',
'photos/JfifSupport.vala',
'photos/BmpSupport.vala',
'photos/RawSupport.vala',
@@ -141,6 +154,8 @@ executable('shotwell',
'folders/Folders.vala',
'folders/FoldersBranch.vala',
'folders/FoldersPage.vala',
+ 'import-roll/ImportRollBranch.vala',
+ 'import-roll/ImportRollEntry.vala',
'main.vala',
'AppWindow.vala',
'CollectionPage.vala',
@@ -223,7 +238,7 @@ executable('shotwell',
'.unitize/_DataImportsInternals.vala',
'.unitize/_FoldersInternals.vala',
'.unitize/_Library_unitize_entry.vala',
- '.unitize/_Direct_unitize_entry.vala'] + shotwell_resources,
+ '.unitize/_Direct_unitize_entry.vala'] + shotwell_resources + face_sources,
include_directories : vapi_incdir,
dependencies : shotwell_deps,
vala_args : ['--pkg', 'libgphoto2',
diff --git a/src/photos/BmpSupport.c b/src/photos/BmpSupport.c
deleted file mode 100644
index b56b3ed..0000000
--- a/src/photos/BmpSupport.c
+++ /dev/null
@@ -1,2080 +0,0 @@
-/* BmpSupport.c generated by valac 0.40.4, the Vala compiler
- * generated from BmpSupport.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gphoto2/gphoto2-file.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties;
-typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass;
-typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ())
-
-#define PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES (photos_bmp_file_format_properties_get_type ())
-#define PHOTOS_BMP_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties))
-#define PHOTOS_BMP_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatPropertiesClass))
-#define PHOTOS_IS_BMP_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES))
-#define PHOTOS_IS_BMP_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES))
-#define PHOTOS_BMP_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatPropertiesClass))
-
-typedef struct _PhotosBmpFileFormatProperties PhotosBmpFileFormatProperties;
-typedef struct _PhotosBmpFileFormatPropertiesClass PhotosBmpFileFormatPropertiesClass;
-typedef struct _PhotosBmpFileFormatPropertiesPrivate PhotosBmpFileFormatPropertiesPrivate;
-#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
-#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
-#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
-#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
-#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-
-typedef struct _PhotoFileSniffer PhotoFileSniffer;
-typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
-typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate;
-
-#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
-#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
-#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
-#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
-#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-
-typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
-typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ())
-#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer))
-#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass))
-#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER))
-#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER))
-#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass))
-
-typedef struct _GdkSniffer GdkSniffer;
-typedef struct _GdkSnifferClass GdkSnifferClass;
-typedef struct _GdkSnifferPrivate GdkSnifferPrivate;
-
-#define PHOTOS_TYPE_BMP_SNIFFER (photos_bmp_sniffer_get_type ())
-#define PHOTOS_BMP_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_SNIFFER, PhotosBmpSniffer))
-#define PHOTOS_BMP_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_SNIFFER, PhotosBmpSnifferClass))
-#define PHOTOS_IS_BMP_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_SNIFFER))
-#define PHOTOS_IS_BMP_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_SNIFFER))
-#define PHOTOS_BMP_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_SNIFFER, PhotosBmpSnifferClass))
-
-typedef struct _PhotosBmpSniffer PhotosBmpSniffer;
-typedef struct _PhotosBmpSnifferClass PhotosBmpSnifferClass;
-typedef struct _PhotosBmpSnifferPrivate PhotosBmpSnifferPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
-typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate;
-
-#define TYPE_GDK_READER (gdk_reader_get_type ())
-#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader))
-#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass))
-#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER))
-#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER))
-#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass))
-
-typedef struct _GdkReader GdkReader;
-typedef struct _GdkReaderClass GdkReaderClass;
-typedef struct _GdkReaderPrivate GdkReaderPrivate;
-
-#define PHOTOS_TYPE_BMP_READER (photos_bmp_reader_get_type ())
-#define PHOTOS_BMP_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_READER, PhotosBmpReader))
-#define PHOTOS_BMP_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_READER, PhotosBmpReaderClass))
-#define PHOTOS_IS_BMP_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_READER))
-#define PHOTOS_IS_BMP_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_READER))
-#define PHOTOS_BMP_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_READER, PhotosBmpReaderClass))
-
-typedef struct _PhotosBmpReader PhotosBmpReader;
-typedef struct _PhotosBmpReaderClass PhotosBmpReaderClass;
-typedef struct _PhotosBmpReaderPrivate PhotosBmpReaderPrivate;
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-
-#define PHOTOS_TYPE_BMP_WRITER (photos_bmp_writer_get_type ())
-#define PHOTOS_BMP_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_WRITER, PhotosBmpWriter))
-#define PHOTOS_BMP_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_WRITER, PhotosBmpWriterClass))
-#define PHOTOS_IS_BMP_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_WRITER))
-#define PHOTOS_IS_BMP_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_WRITER))
-#define PHOTOS_BMP_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_WRITER, PhotosBmpWriterClass))
-
-typedef struct _PhotosBmpWriter PhotosBmpWriter;
-typedef struct _PhotosBmpWriterClass PhotosBmpWriterClass;
-typedef struct _PhotosBmpWriterPrivate PhotosBmpWriterPrivate;
-
-#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
-#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
-#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-
-typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
-typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
-typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate;
-
-#define PHOTOS_TYPE_BMP_METADATA_WRITER (photos_bmp_metadata_writer_get_type ())
-#define PHOTOS_BMP_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_METADATA_WRITER, PhotosBmpMetadataWriter))
-#define PHOTOS_BMP_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_METADATA_WRITER, PhotosBmpMetadataWriterClass))
-#define PHOTOS_IS_BMP_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_METADATA_WRITER))
-#define PHOTOS_IS_BMP_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_METADATA_WRITER))
-#define PHOTOS_BMP_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_METADATA_WRITER, PhotosBmpMetadataWriterClass))
-
-typedef struct _PhotosBmpMetadataWriter PhotosBmpMetadataWriter;
-typedef struct _PhotosBmpMetadataWriterClass PhotosBmpMetadataWriterClass;
-typedef struct _PhotosBmpMetadataWriterPrivate PhotosBmpMetadataWriterPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ())
-#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver))
-#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-
-typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver;
-typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass;
-typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate;
-
-#define PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER (photos_bmp_file_format_driver_get_type ())
-#define PHOTOS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver))
-#define PHOTOS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass))
-#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER))
-#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER))
-#define PHOTOS_BMP_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass))
-
-typedef struct _PhotosBmpFileFormatDriver PhotosBmpFileFormatDriver;
-typedef struct _PhotosBmpFileFormatDriverClass PhotosBmpFileFormatDriverClass;
-typedef struct _PhotosBmpFileFormatDriverPrivate PhotosBmpFileFormatDriverPrivate;
-#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL)))
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000
-} PhotoFileFormatFlags;
-
-struct _PhotoFileFormatProperties {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatPropertiesPrivate * priv;
-};
-
-struct _PhotoFileFormatPropertiesClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatProperties *self);
- PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self);
- PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self);
- gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext);
- gchar* (*get_default_extension) (PhotoFileFormatProperties* self);
- gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self);
- gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self);
-};
-
-struct _PhotosBmpFileFormatProperties {
- PhotoFileFormatProperties parent_instance;
- PhotosBmpFileFormatPropertiesPrivate * priv;
-};
-
-struct _PhotosBmpFileFormatPropertiesClass {
- PhotoFileFormatPropertiesClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoFileSniffer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileSnifferPrivate * priv;
- GFile* file;
- PhotoFileSnifferOptions options;
- gboolean calc_md5;
-};
-
-struct _PhotoFileSnifferClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileSniffer *self);
- DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error);
-};
-
-struct _GdkSniffer {
- PhotoFileSniffer parent_instance;
- GdkSnifferPrivate * priv;
-};
-
-struct _GdkSnifferClass {
- PhotoFileSnifferClass parent_class;
-};
-
-struct _PhotosBmpSniffer {
- GdkSniffer parent_instance;
- PhotosBmpSnifferPrivate * priv;
-};
-
-struct _PhotosBmpSnifferClass {
- GdkSnifferClass parent_class;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _DetectedPhotoInformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DetectedPhotoInformationPrivate * priv;
- PhotoFileFormat file_format;
- PhotoMetadata* metadata;
- gchar* md5;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* format_name;
- Dimensions image_dim;
- GdkColorspace colorspace;
- gint channels;
- gint bits_per_channel;
-};
-
-struct _DetectedPhotoInformationClass {
- GTypeClass parent_class;
- void (*finalize) (DetectedPhotoInformation *self);
-};
-
-struct _PhotoFileAdapter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileAdapterPrivate * priv;
-};
-
-struct _PhotoFileAdapterClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileAdapter *self);
-};
-
-struct _PhotoFileReader {
- PhotoFileAdapter parent_instance;
- PhotoFileReaderPrivate * priv;
-};
-
-struct _PhotoFileReaderClass {
- PhotoFileAdapterClass parent_class;
- PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error);
-};
-
-struct _GdkReader {
- PhotoFileReader parent_instance;
- GdkReaderPrivate * priv;
-};
-
-struct _GdkReaderClass {
- PhotoFileReaderClass parent_class;
-};
-
-struct _PhotosBmpReader {
- GdkReader parent_instance;
- PhotosBmpReaderPrivate * priv;
-};
-
-struct _PhotosBmpReaderClass {
- GdkReaderClass parent_class;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _PhotoFileWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileWriterPrivate * priv;
-};
-
-struct _PhotoFileWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error);
-};
-
-struct _PhotosBmpWriter {
- PhotoFileWriter parent_instance;
- PhotosBmpWriterPrivate * priv;
-};
-
-struct _PhotosBmpWriterClass {
- PhotoFileWriterClass parent_class;
-};
-
-struct _PhotoFileMetadataWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileMetadataWriterPrivate * priv;
-};
-
-struct _PhotoFileMetadataWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error);
-};
-
-struct _PhotosBmpMetadataWriter {
- PhotoFileMetadataWriter parent_instance;
- PhotosBmpMetadataWriterPrivate * priv;
-};
-
-struct _PhotosBmpMetadataWriterClass {
- PhotoFileMetadataWriterClass parent_class;
-};
-
-struct _PhotoFileFormatDriver {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatDriverPrivate * priv;
-};
-
-struct _PhotoFileFormatDriverClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatDriver *self);
- PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self);
- PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self);
- gboolean (*can_write_image) (PhotoFileFormatDriver* self);
- gboolean (*can_write_metadata) (PhotoFileFormatDriver* self);
- PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
-};
-
-struct _PhotosBmpFileFormatDriver {
- PhotoFileFormatDriver parent_instance;
- PhotosBmpFileFormatDriverPrivate * priv;
-};
-
-struct _PhotosBmpFileFormatDriverClass {
- PhotoFileFormatDriverClass parent_class;
-};
-
-
-static gpointer photos_bmp_file_format_properties_parent_class = NULL;
-static gchar** photos_bmp_file_format_properties_KNOWN_EXTENSIONS;
-static gint photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1;
-static gchar** photos_bmp_file_format_properties_KNOWN_EXTENSIONS = NULL;
-static gint photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1 = 0;
-static gint _photos_bmp_file_format_properties_KNOWN_EXTENSIONS_size_ = 0;
-static gchar** photos_bmp_file_format_properties_KNOWN_MIME_TYPES;
-static gint photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1;
-static gchar** photos_bmp_file_format_properties_KNOWN_MIME_TYPES = NULL;
-static gint photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1 = 0;
-static gint _photos_bmp_file_format_properties_KNOWN_MIME_TYPES_size_ = 0;
-static PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_instance;
-static PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_instance = NULL;
-static gpointer photos_bmp_sniffer_parent_class = NULL;
-static gpointer photos_bmp_reader_parent_class = NULL;
-static gpointer photos_bmp_writer_parent_class = NULL;
-static gpointer photos_bmp_metadata_writer_parent_class = NULL;
-static gpointer photos_bmp_file_format_driver_parent_class = NULL;
-static PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_instance;
-static PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_instance = NULL;
-
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_properties (const GValue* value);
-GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType photo_file_format_flags_get_type (void) G_GNUC_CONST;
-GType photos_bmp_file_format_properties_get_type (void) G_GNUC_CONST;
-void photos_bmp_file_format_properties_init (void);
-PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_new (void);
-PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_construct (GType object_type);
-PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_get_instance (void);
-static PhotoFileFormat photos_bmp_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base);
-static PhotoFileFormatFlags photos_bmp_file_format_properties_real_get_flags (PhotoFileFormatProperties* base);
-static gchar* photos_bmp_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base);
-static gchar* photos_bmp_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base);
-static gchar** photos_bmp_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup8 (gchar** self,
- int length);
-static gchar* photos_bmp_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base);
-static gchar** photos_bmp_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup9 (gchar** self,
- int length);
-PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type);
-static void photos_bmp_file_format_properties_finalize (PhotoFileFormatProperties * obj);
-gpointer photo_file_sniffer_ref (gpointer instance);
-void photo_file_sniffer_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_sniffer (GValue* value,
- gpointer v_object);
-void value_take_photo_file_sniffer (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_sniffer (const GValue* value);
-GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
-gpointer detected_photo_information_ref (gpointer instance);
-void detected_photo_information_unref (gpointer instance);
-GParamSpec* param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_detected_photo_information (GValue* value,
- gpointer v_object);
-void value_take_detected_photo_information (GValue* value,
- gpointer v_object);
-gpointer value_get_detected_photo_information (const GValue* value);
-GType detected_photo_information_get_type (void) G_GNUC_CONST;
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-GType gdk_sniffer_get_type (void) G_GNUC_CONST;
-GType photos_bmp_sniffer_get_type (void) G_GNUC_CONST;
-PhotosBmpSniffer* photos_bmp_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options);
-PhotosBmpSniffer* photos_bmp_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-GdkSniffer* gdk_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-static gboolean photos_bmp_sniffer_is_bmp_file (GFile* file,
- GError** error);
-static DetectedPhotoInformation* photos_bmp_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error);
-DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self,
- gboolean* is_corrupted,
- GError** error);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-GType gdk_reader_get_type (void) G_GNUC_CONST;
-GType photos_bmp_reader_get_type (void) G_GNUC_CONST;
-PhotosBmpReader* photos_bmp_reader_new (const gchar* filepath);
-PhotosBmpReader* photos_bmp_reader_construct (GType object_type,
- const gchar* filepath);
-GdkReader* gdk_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static GdkPixbuf* photos_bmp_reader_real_scaled_read (PhotoFileReader* base,
- Dimensions* full,
- Dimensions* scaled,
- GError** error);
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-void dimensions_get_scaled_by_constraint (Dimensions *self,
- gint scale,
- ScaleConstraint constraint,
- Dimensions* result);
-gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-GType photos_bmp_writer_get_type (void) G_GNUC_CONST;
-PhotosBmpWriter* photos_bmp_writer_new (const gchar* filepath);
-PhotosBmpWriter* photos_bmp_writer_construct (GType object_type,
- const gchar* filepath);
-PhotoFileWriter* photo_file_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static void photos_bmp_writer_real_write (PhotoFileWriter* base,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error);
-GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
-GType photos_bmp_metadata_writer_get_type (void) G_GNUC_CONST;
-PhotosBmpMetadataWriter* photos_bmp_metadata_writer_new (const gchar* filepath);
-PhotosBmpMetadataWriter* photos_bmp_metadata_writer_construct (GType object_type,
- const gchar* filepath);
-PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static void photos_bmp_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base,
- PhotoMetadata* metadata,
- GError** error);
-gpointer photo_file_format_driver_ref (gpointer instance);
-void photo_file_format_driver_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_driver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_driver (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_driver (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_driver (const GValue* value);
-GType photo_file_format_driver_get_type (void) G_GNUC_CONST;
-GType photos_bmp_file_format_driver_get_type (void) G_GNUC_CONST;
-void photos_bmp_file_format_driver_init (void);
-PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_new (void);
-PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_construct (GType object_type);
-PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_get_instance (void);
-static PhotoFileFormatProperties* photos_bmp_file_format_driver_real_get_properties (PhotoFileFormatDriver* base);
-static PhotoFileReader* photos_bmp_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath);
-static gboolean photos_bmp_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base);
-static gboolean photos_bmp_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base);
-static PhotoFileWriter* photos_bmp_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-static PhotoFileMetadataWriter* photos_bmp_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-static PhotoFileSniffer* photos_bmp_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options);
-static PhotoMetadata* photos_bmp_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base);
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type);
-static void photos_bmp_file_format_driver_finalize (PhotoFileFormatDriver * obj);
-
-static const guint8 PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE[2] = {(guint8) 0x42, (guint8) 0x4D};
-
-void
-photos_bmp_file_format_properties_init (void)
-{
- PhotosBmpFileFormatProperties* _tmp0_;
-#line 16 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_properties_new ();
-#line 16 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _photo_file_format_properties_unref0 (photos_bmp_file_format_properties_instance);
-#line 16 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_properties_instance = _tmp0_;
-#line 686 "BmpSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_properties_ref0 (gpointer self)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self ? photo_file_format_properties_ref (self) : NULL;
-#line 695 "BmpSupport.c"
-}
-
-
-PhotosBmpFileFormatProperties*
-photos_bmp_file_format_properties_get_instance (void)
-{
- PhotosBmpFileFormatProperties* result = NULL;
- PhotosBmpFileFormatProperties* _tmp0_;
- PhotosBmpFileFormatProperties* _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_properties_instance;
-#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_);
-#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 713 "BmpSupport.c"
-}
-
-
-static PhotoFileFormat
-photos_bmp_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base)
-{
- PhotosBmpFileFormatProperties * self;
- PhotoFileFormat result = 0;
-#line 23 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties);
-#line 24 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = PHOTO_FILE_FORMAT_BMP;
-#line 24 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 728 "BmpSupport.c"
-}
-
-
-static PhotoFileFormatFlags
-photos_bmp_file_format_properties_real_get_flags (PhotoFileFormatProperties* base)
-{
- PhotosBmpFileFormatProperties * self;
- PhotoFileFormatFlags result = 0;
-#line 27 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties);
-#line 28 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = PHOTO_FILE_FORMAT_FLAGS_NONE;
-#line 28 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 743 "BmpSupport.c"
-}
-
-
-static gchar*
-photos_bmp_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base)
-{
- PhotosBmpFileFormatProperties * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties);
-#line 32 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = g_strdup (_ ("BMP"));
-#line 32 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp0_;
-#line 32 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 761 "BmpSupport.c"
-}
-
-
-static gchar*
-photos_bmp_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base)
-{
- PhotosBmpFileFormatProperties * self;
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 35 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties);
-#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_properties_KNOWN_EXTENSIONS;
-#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0__length1 = photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1;
-#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = _tmp0_[0];
-#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp2_;
-#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 788 "BmpSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup8 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- for (i = 0; i < length; i++) {
-#line 802 "BmpSupport.c"
- gchar* _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result[i] = _tmp0_;
-#line 808 "BmpSupport.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 812 "BmpSupport.c"
-}
-
-
-static gchar**
-photos_bmp_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- PhotosBmpFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 39 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties);
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_properties_KNOWN_EXTENSIONS;
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0__length1 = photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1;
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup8 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_ = _tmp1_;
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (result_length1) {
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 846 "BmpSupport.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp2_;
-#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 852 "BmpSupport.c"
-}
-
-
-static gchar*
-photos_bmp_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base)
-{
- PhotosBmpFileFormatProperties * self;
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 43 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties);
-#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_properties_KNOWN_MIME_TYPES;
-#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0__length1 = photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = _tmp0_[0];
-#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp2_;
-#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 879 "BmpSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup9 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- for (i = 0; i < length; i++) {
-#line 893 "BmpSupport.c"
- gchar* _tmp0_;
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result[i] = _tmp0_;
-#line 899 "BmpSupport.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 903 "BmpSupport.c"
-}
-
-
-static gchar**
-photos_bmp_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- PhotosBmpFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 47 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties);
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_properties_KNOWN_MIME_TYPES;
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0__length1 = photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup9 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_ = _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (result_length1) {
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 937 "BmpSupport.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp2_;
-#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 943 "BmpSupport.c"
-}
-
-
-PhotosBmpFileFormatProperties*
-photos_bmp_file_format_properties_construct (GType object_type)
-{
- PhotosBmpFileFormatProperties* self = NULL;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = (PhotosBmpFileFormatProperties*) photo_file_format_properties_construct (object_type);
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self;
-#line 955 "BmpSupport.c"
-}
-
-
-PhotosBmpFileFormatProperties*
-photos_bmp_file_format_properties_new (void)
-{
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return photos_bmp_file_format_properties_construct (PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES);
-#line 964 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_file_format_properties_class_init (PhotosBmpFileFormatPropertiesClass * klass)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar** _tmp2_;
- gchar* _tmp3_;
- gchar** _tmp4_;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_properties_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->finalize = photos_bmp_file_format_properties_finalize;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_file_format;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_flags;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_user_visible_name;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_default_extension;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) photos_bmp_file_format_properties_real_get_known_extensions;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_default_mime_type;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) photos_bmp_file_format_properties_real_get_mime_types;
-#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = g_strdup ("bmp");
-#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = g_strdup ("dib");
-#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_ = g_new0 (gchar*, 2 + 1);
-#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_[0] = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_[1] = _tmp1_;
-#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_properties_KNOWN_EXTENSIONS = _tmp2_;
-#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1 = 2;
-#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp3_ = g_strdup (GP_MIME_BMP);
-#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp4_ = g_new0 (gchar*, 1 + 1);
-#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp4_[0] = _tmp3_;
-#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_properties_KNOWN_MIME_TYPES = _tmp4_;
-#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1 = 1;
-#line 1018 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_file_format_properties_instance_init (PhotosBmpFileFormatProperties * self)
-{
-}
-
-
-static void
-photos_bmp_file_format_properties_finalize (PhotoFileFormatProperties * obj)
-{
- PhotosBmpFileFormatProperties * self;
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties);
-#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- PHOTO_FILE_FORMAT_PROPERTIES_CLASS (photos_bmp_file_format_properties_parent_class)->finalize (obj);
-#line 1036 "BmpSupport.c"
-}
-
-
-GType
-photos_bmp_file_format_properties_get_type (void)
-{
- static volatile gsize photos_bmp_file_format_properties_type_id__volatile = 0;
- if (g_once_init_enter (&photos_bmp_file_format_properties_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpFileFormatProperties), 0, (GInstanceInitFunc) photos_bmp_file_format_properties_instance_init, NULL };
- GType photos_bmp_file_format_properties_type_id;
- photos_bmp_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "PhotosBmpFileFormatProperties", &g_define_type_info, 0);
- g_once_init_leave (&photos_bmp_file_format_properties_type_id__volatile, photos_bmp_file_format_properties_type_id);
- }
- return photos_bmp_file_format_properties_type_id__volatile;
-}
-
-
-PhotosBmpSniffer*
-photos_bmp_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PhotosBmpSniffer* self = NULL;
-#line 55 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 56 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = (PhotosBmpSniffer*) gdk_sniffer_construct (object_type, file, options);
-#line 55 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self;
-#line 1066 "BmpSupport.c"
-}
-
-
-PhotosBmpSniffer*
-photos_bmp_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options)
-{
-#line 55 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return photos_bmp_sniffer_construct (PHOTOS_TYPE_BMP_SNIFFER, file, options);
-#line 1076 "BmpSupport.c"
-}
-
-
-static gboolean
-photos_bmp_sniffer_is_bmp_file (GFile* file,
- GError** error)
-{
- gboolean result = FALSE;
- GFileInputStream* instream = NULL;
- GFileInputStream* _tmp0_;
- guint8* file_lead_sequence = NULL;
- guint8* _tmp2_;
- gint file_lead_sequence_length1;
- gint _file_lead_sequence_size_;
- GFileInputStream* _tmp3_;
- guint8* _tmp4_;
- gint _tmp4__length1;
- GError * _inner_error_ = NULL;
-#line 59 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = g_file_read (file, NULL, &_inner_error_);
-#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- instream = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1103 "BmpSupport.c"
- gboolean _tmp1_ = FALSE;
-#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return _tmp1_;
-#line 1109 "BmpSupport.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_ = g_new0 (guint8, G_N_ELEMENTS (PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE));
-#line 62 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- file_lead_sequence = _tmp2_;
-#line 62 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- file_lead_sequence_length1 = G_N_ELEMENTS (PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE);
-#line 62 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _file_lead_sequence_size_ = file_lead_sequence_length1;
-#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp3_ = instream;
-#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp4_ = file_lead_sequence;
-#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_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 1129 "BmpSupport.c"
- gboolean _tmp5_ = FALSE;
-#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- file_lead_sequence = (g_free (file_lead_sequence), NULL);
-#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (instream);
-#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return _tmp5_;
-#line 1139 "BmpSupport.c"
- }
- {
- gint i = 0;
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- i = 0;
-#line 1145 "BmpSupport.c"
- {
- gboolean _tmp6_ = FALSE;
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp6_ = TRUE;
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- while (TRUE) {
-#line 1152 "BmpSupport.c"
- gint _tmp8_;
- guint8* _tmp9_;
- gint _tmp9__length1;
- gint _tmp10_;
- guint8 _tmp11_;
- gint _tmp12_;
- guint8 _tmp13_;
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (!_tmp6_) {
-#line 1162 "BmpSupport.c"
- gint _tmp7_;
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp7_ = i;
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- i = _tmp7_ + 1;
-#line 1168 "BmpSupport.c"
- }
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp6_ = FALSE;
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp8_ = i;
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (!(_tmp8_ < G_N_ELEMENTS (PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE))) {
-#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- break;
-#line 1178 "BmpSupport.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp9_ = file_lead_sequence;
-#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp9__length1 = file_lead_sequence_length1;
-#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp10_ = i;
-#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp11_ = _tmp9_[_tmp10_];
-#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp12_ = i;
-#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp13_ = PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE[_tmp12_];
-#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (_tmp11_ != _tmp13_) {
-#line 68 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = FALSE;
-#line 68 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- file_lead_sequence = (g_free (file_lead_sequence), NULL);
-#line 68 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (instream);
-#line 68 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1202 "BmpSupport.c"
- }
- }
- }
- }
-#line 71 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = TRUE;
-#line 71 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- file_lead_sequence = (g_free (file_lead_sequence), NULL);
-#line 71 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (instream);
-#line 71 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1215 "BmpSupport.c"
-}
-
-
-static gpointer
-_detected_photo_information_ref0 (gpointer self)
-{
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self ? detected_photo_information_ref (self) : NULL;
-#line 1224 "BmpSupport.c"
-}
-
-
-static DetectedPhotoInformation*
-photos_bmp_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error)
-{
- PhotosBmpSniffer * self;
- gboolean _vala_is_corrupted = FALSE;
- DetectedPhotoInformation* result = NULL;
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_;
- DetectedPhotoInformation* detected = NULL;
- gboolean _tmp2_ = FALSE;
- DetectedPhotoInformation* _tmp3_;
- DetectedPhotoInformation* _tmp4_;
- DetectedPhotoInformation* _tmp5_ = NULL;
- DetectedPhotoInformation* _tmp6_;
- PhotoFileFormat _tmp7_;
- DetectedPhotoInformation* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 74 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_SNIFFER, PhotosBmpSniffer);
-#line 76 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _vala_is_corrupted = FALSE;
-#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_sniffer_is_bmp_file (_tmp1_, &_inner_error_);
-#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return NULL;
-#line 1261 "BmpSupport.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (!_tmp0_) {
-#line 79 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = NULL;
-#line 79 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (is_corrupted) {
-#line 79 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1271 "BmpSupport.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1275 "BmpSupport.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp3_ = PHOTO_FILE_SNIFFER_CLASS (photos_bmp_sniffer_parent_class)->sniff (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_GDK_SNIFFER, GdkSniffer), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer), &_tmp2_, &_inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _vala_is_corrupted = _tmp2_;
-#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- detected = _tmp3_;
-#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return NULL;
-#line 1289 "BmpSupport.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp4_ = detected;
-#line 82 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (_tmp4_ == NULL) {
-#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = NULL;
-#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (is_corrupted) {
-#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1303 "BmpSupport.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1307 "BmpSupport.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp6_ = detected;
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp7_ = _tmp6_->file_format;
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (_tmp7_ == PHOTO_FILE_FORMAT_BMP) {
-#line 1315 "BmpSupport.c"
- DetectedPhotoInformation* _tmp8_;
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp8_ = detected;
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp5_ = _tmp8_;
-#line 1321 "BmpSupport.c"
- } else {
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp5_ = NULL;
-#line 1325 "BmpSupport.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp9_ = _detected_photo_information_ref0 (_tmp5_);
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp9_;
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (is_corrupted) {
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1337 "BmpSupport.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1341 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_sniffer_class_init (PhotosBmpSnifferClass * klass)
-{
-#line 52 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 52 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) photos_bmp_sniffer_real_sniff;
-#line 1352 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_sniffer_instance_init (PhotosBmpSniffer * self)
-{
-}
-
-
-GType
-photos_bmp_sniffer_get_type (void)
-{
- static volatile gsize photos_bmp_sniffer_type_id__volatile = 0;
- if (g_once_init_enter (&photos_bmp_sniffer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpSniffer), 0, (GInstanceInitFunc) photos_bmp_sniffer_instance_init, NULL };
- GType photos_bmp_sniffer_type_id;
- photos_bmp_sniffer_type_id = g_type_register_static (TYPE_GDK_SNIFFER, "PhotosBmpSniffer", &g_define_type_info, 0);
- g_once_init_leave (&photos_bmp_sniffer_type_id__volatile, photos_bmp_sniffer_type_id);
- }
- return photos_bmp_sniffer_type_id__volatile;
-}
-
-
-PhotosBmpReader*
-photos_bmp_reader_construct (GType object_type,
- const gchar* filepath)
-{
- PhotosBmpReader* self = NULL;
-#line 90 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 91 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = (PhotosBmpReader*) gdk_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_BMP);
-#line 90 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self;
-#line 1387 "BmpSupport.c"
-}
-
-
-PhotosBmpReader*
-photos_bmp_reader_new (const gchar* filepath)
-{
-#line 90 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return photos_bmp_reader_construct (PHOTOS_TYPE_BMP_READER, filepath);
-#line 1396 "BmpSupport.c"
-}
-
-
-static GdkPixbuf*
-photos_bmp_reader_real_scaled_read (PhotoFileReader* base,
- Dimensions* full,
- Dimensions* scaled,
- GError** error)
-{
- PhotosBmpReader * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _result_ = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- Dimensions _tmp2_;
- gint _tmp3_;
- GError * _inner_error_ = NULL;
-#line 94 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_READER, PhotosBmpReader);
-#line 94 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (full != NULL, NULL);
-#line 94 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (scaled != NULL, NULL);
-#line 95 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _result_ = NULL;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp2_ = *full;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp3_ = _tmp2_.width;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (_tmp3_ > 9999) {
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = TRUE;
-#line 1430 "BmpSupport.c"
- } else {
- Dimensions _tmp4_;
- gint _tmp5_;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp4_ = *full;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp5_ = _tmp4_.height;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = _tmp5_ > 9999;
-#line 1440 "BmpSupport.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (_tmp1_) {
-#line 1444 "BmpSupport.c"
- gboolean _tmp6_ = FALSE;
- Dimensions _tmp7_;
- gint _tmp8_;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp7_ = *scaled;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp8_ = _tmp7_.width;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (_tmp8_ < 100) {
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp6_ = TRUE;
-#line 1456 "BmpSupport.c"
- } else {
- Dimensions _tmp9_;
- gint _tmp10_;
-#line 105 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp9_ = *scaled;
-#line 105 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp10_ = _tmp9_.height;
-#line 105 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp6_ = _tmp10_ < 100;
-#line 1466 "BmpSupport.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = _tmp6_;
-#line 1470 "BmpSupport.c"
- } else {
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = FALSE;
-#line 1474 "BmpSupport.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (_tmp0_) {
-#line 1478 "BmpSupport.c"
- Dimensions prefetch_dimensions = {0};
- Dimensions _tmp11_ = {0};
- GdkPixbuf* _tmp12_ = NULL;
- gchar* _tmp13_;
- gchar* _tmp14_;
- Dimensions _tmp15_;
- gint _tmp16_;
- Dimensions _tmp17_;
- gint _tmp18_;
- GdkPixbuf* _tmp19_;
- GdkPixbuf* _tmp20_;
- GdkPixbuf* _tmp21_;
- GdkPixbuf* _tmp22_;
- Dimensions _tmp23_;
- gint _tmp24_;
- Dimensions _tmp25_;
- gint _tmp26_;
- GdkPixbuf* _tmp27_;
-#line 106 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- dimensions_get_scaled_by_constraint (full, 1000, SCALE_CONSTRAINT_DIMENSIONS, &_tmp11_);
-#line 106 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- prefetch_dimensions = _tmp11_;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp13_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp14_ = _tmp13_;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp15_ = prefetch_dimensions;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp16_ = _tmp15_.width;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp17_ = prefetch_dimensions;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp18_ = _tmp17_.height;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp19_ = gdk_pixbuf_new_from_file_at_scale (_tmp14_, _tmp16_, _tmp18_, FALSE, &_inner_error_);
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp20_ = _tmp19_;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_free0 (_tmp14_);
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp12_ = _tmp20_;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (_result_);
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return NULL;
-#line 1529 "BmpSupport.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp21_ = _tmp12_;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp12_ = NULL;
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (_result_);
-#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _result_ = _tmp21_;
-#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp22_ = _result_;
-#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp23_ = *scaled;
-#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp24_ = _tmp23_.width;
-#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp25_ = *scaled;
-#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp26_ = _tmp25_.height;
-#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp27_ = gdk_pixbuf_scale_simple (_tmp22_, _tmp24_, _tmp26_, GDK_INTERP_HYPER);
-#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (_result_);
-#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _result_ = _tmp27_;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (_tmp12_);
-#line 1557 "BmpSupport.c"
- } else {
- GdkPixbuf* _tmp28_ = NULL;
- gchar* _tmp29_;
- gchar* _tmp30_;
- Dimensions _tmp31_;
- gint _tmp32_;
- Dimensions _tmp33_;
- gint _tmp34_;
- GdkPixbuf* _tmp35_;
- GdkPixbuf* _tmp36_;
- GdkPixbuf* _tmp37_;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp29_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp30_ = _tmp29_;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp31_ = *scaled;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp32_ = _tmp31_.width;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp33_ = *scaled;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp34_ = _tmp33_.height;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp35_ = gdk_pixbuf_new_from_file_at_scale (_tmp30_, _tmp32_, _tmp34_, FALSE, &_inner_error_);
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp36_ = _tmp35_;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_free0 (_tmp30_);
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp28_ = _tmp36_;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (_result_);
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return NULL;
-#line 1597 "BmpSupport.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp37_ = _tmp28_;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp28_ = NULL;
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (_result_);
-#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _result_ = _tmp37_;
-#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_object_unref0 (_tmp28_);
-#line 1609 "BmpSupport.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _result_;
-#line 118 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1615 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_reader_class_init (PhotosBmpReaderClass * klass)
-{
-#line 89 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_reader_parent_class = g_type_class_peek_parent (klass);
-#line 89 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) photos_bmp_reader_real_scaled_read;
-#line 1626 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_reader_instance_init (PhotosBmpReader * self)
-{
-}
-
-
-GType
-photos_bmp_reader_get_type (void)
-{
- static volatile gsize photos_bmp_reader_type_id__volatile = 0;
- if (g_once_init_enter (&photos_bmp_reader_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpReader), 0, (GInstanceInitFunc) photos_bmp_reader_instance_init, NULL };
- GType photos_bmp_reader_type_id;
- photos_bmp_reader_type_id = g_type_register_static (TYPE_GDK_READER, "PhotosBmpReader", &g_define_type_info, 0);
- g_once_init_leave (&photos_bmp_reader_type_id__volatile, photos_bmp_reader_type_id);
- }
- return photos_bmp_reader_type_id__volatile;
-}
-
-
-PhotosBmpWriter*
-photos_bmp_writer_construct (GType object_type,
- const gchar* filepath)
-{
- PhotosBmpWriter* self = NULL;
-#line 123 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 124 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = (PhotosBmpWriter*) photo_file_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_BMP);
-#line 123 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self;
-#line 1661 "BmpSupport.c"
-}
-
-
-PhotosBmpWriter*
-photos_bmp_writer_new (const gchar* filepath)
-{
-#line 123 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return photos_bmp_writer_construct (PHOTOS_TYPE_BMP_WRITER, filepath);
-#line 1670 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_writer_real_write (PhotoFileWriter* base,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error)
-{
- PhotosBmpWriter * self;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 127 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_WRITER, PhotosBmpWriter);
-#line 127 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = _tmp0_;
-#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- gdk_pixbuf_save (pixbuf, _tmp1_, "bmp", &_inner_error_, NULL, NULL);
-#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _g_free0 (_tmp1_);
-#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return;
-#line 1702 "BmpSupport.c"
- }
-}
-
-
-static void
-photos_bmp_writer_class_init (PhotosBmpWriterClass * klass)
-{
-#line 122 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_writer_parent_class = g_type_class_peek_parent (klass);
-#line 122 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) photos_bmp_writer_real_write;
-#line 1714 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_writer_instance_init (PhotosBmpWriter * self)
-{
-}
-
-
-GType
-photos_bmp_writer_get_type (void)
-{
- static volatile gsize photos_bmp_writer_type_id__volatile = 0;
- if (g_once_init_enter (&photos_bmp_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpWriter), 0, (GInstanceInitFunc) photos_bmp_writer_instance_init, NULL };
- GType photos_bmp_writer_type_id;
- photos_bmp_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_WRITER, "PhotosBmpWriter", &g_define_type_info, 0);
- g_once_init_leave (&photos_bmp_writer_type_id__volatile, photos_bmp_writer_type_id);
- }
- return photos_bmp_writer_type_id__volatile;
-}
-
-
-PhotosBmpMetadataWriter*
-photos_bmp_metadata_writer_construct (GType object_type,
- const gchar* filepath)
-{
- PhotosBmpMetadataWriter* self = NULL;
-#line 133 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 134 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = (PhotosBmpMetadataWriter*) photo_file_metadata_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_BMP);
-#line 133 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self;
-#line 1749 "BmpSupport.c"
-}
-
-
-PhotosBmpMetadataWriter*
-photos_bmp_metadata_writer_new (const gchar* filepath)
-{
-#line 133 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return photos_bmp_metadata_writer_construct (PHOTOS_TYPE_BMP_METADATA_WRITER, filepath);
-#line 1758 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base,
- PhotoMetadata* metadata,
- GError** error)
-{
- PhotosBmpMetadataWriter * self;
-#line 137 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_METADATA_WRITER, PhotosBmpMetadataWriter);
-#line 137 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_if_fail (IS_PHOTO_METADATA (metadata));
-#line 1772 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_metadata_writer_class_init (PhotosBmpMetadataWriterClass * klass)
-{
-#line 132 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_metadata_writer_parent_class = g_type_class_peek_parent (klass);
-#line 132 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) photos_bmp_metadata_writer_real_write_metadata;
-#line 1783 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_metadata_writer_instance_init (PhotosBmpMetadataWriter * self)
-{
-}
-
-
-GType
-photos_bmp_metadata_writer_get_type (void)
-{
- static volatile gsize photos_bmp_metadata_writer_type_id__volatile = 0;
- if (g_once_init_enter (&photos_bmp_metadata_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpMetadataWriter), 0, (GInstanceInitFunc) photos_bmp_metadata_writer_instance_init, NULL };
- GType photos_bmp_metadata_writer_type_id;
- photos_bmp_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_METADATA_WRITER, "PhotosBmpMetadataWriter", &g_define_type_info, 0);
- g_once_init_leave (&photos_bmp_metadata_writer_type_id__volatile, photos_bmp_metadata_writer_type_id);
- }
- return photos_bmp_metadata_writer_type_id__volatile;
-}
-
-
-void
-photos_bmp_file_format_driver_init (void)
-{
- PhotosBmpFileFormatDriver* _tmp0_;
-#line 146 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_driver_new ();
-#line 146 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _photo_file_format_driver_unref0 (photos_bmp_file_format_driver_instance);
-#line 146 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_driver_instance = _tmp0_;
-#line 147 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_properties_init ();
-#line 1819 "BmpSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_driver_ref0 (gpointer self)
-{
-#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self ? photo_file_format_driver_ref (self) : NULL;
-#line 1828 "BmpSupport.c"
-}
-
-
-PhotosBmpFileFormatDriver*
-photos_bmp_file_format_driver_get_instance (void)
-{
- PhotosBmpFileFormatDriver* result = NULL;
- PhotosBmpFileFormatDriver* _tmp0_;
- PhotosBmpFileFormatDriver* _tmp1_;
-#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_driver_instance;
-#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_);
-#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp1_;
-#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1846 "BmpSupport.c"
-}
-
-
-static PhotoFileFormatProperties*
-photos_bmp_file_format_driver_real_get_properties (PhotoFileFormatDriver* base)
-{
- PhotosBmpFileFormatDriver * self;
- PhotoFileFormatProperties* result = NULL;
- PhotosBmpFileFormatProperties* _tmp0_;
-#line 154 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 155 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_file_format_properties_get_instance ();
-#line 155 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties);
-#line 155 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1864 "BmpSupport.c"
-}
-
-
-static PhotoFileReader*
-photos_bmp_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PhotosBmpFileFormatDriver * self;
- PhotoFileReader* result = NULL;
- PhotosBmpReader* _tmp0_;
-#line 158 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 158 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 159 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_reader_new (filepath);
-#line 159 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader);
-#line 159 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1885 "BmpSupport.c"
-}
-
-
-static gboolean
-photos_bmp_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base)
-{
- PhotosBmpFileFormatDriver * self;
- gboolean result = FALSE;
-#line 162 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 163 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = TRUE;
-#line 163 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1900 "BmpSupport.c"
-}
-
-
-static gboolean
-photos_bmp_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base)
-{
- PhotosBmpFileFormatDriver * self;
- gboolean result = FALSE;
-#line 166 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 167 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = FALSE;
-#line 167 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1915 "BmpSupport.c"
-}
-
-
-static PhotoFileWriter*
-photos_bmp_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PhotosBmpFileFormatDriver * self;
- PhotoFileWriter* result = NULL;
- PhotosBmpWriter* _tmp0_;
-#line 170 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 170 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 171 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_writer_new (filepath);
-#line 171 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_WRITER, PhotoFileWriter);
-#line 171 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1936 "BmpSupport.c"
-}
-
-
-static PhotoFileMetadataWriter*
-photos_bmp_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PhotosBmpFileFormatDriver * self;
- PhotoFileMetadataWriter* result = NULL;
- PhotosBmpMetadataWriter* _tmp0_;
-#line 174 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 174 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 175 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_metadata_writer_new (filepath);
-#line 175 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter);
-#line 175 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1957 "BmpSupport.c"
-}
-
-
-static PhotoFileSniffer*
-photos_bmp_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PhotosBmpFileFormatDriver * self;
- PhotoFileSniffer* result = NULL;
- PhotosBmpSniffer* _tmp0_;
-#line 178 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 178 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 179 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photos_bmp_sniffer_new (file, options);
-#line 179 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer);
-#line 179 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1979 "BmpSupport.c"
-}
-
-
-static PhotoMetadata*
-photos_bmp_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base)
-{
- PhotosBmpFileFormatDriver * self;
- PhotoMetadata* result = NULL;
- PhotoMetadata* _tmp0_;
-#line 182 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 183 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- _tmp0_ = photo_metadata_new ();
-#line 183 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- result = _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return result;
-#line 1997 "BmpSupport.c"
-}
-
-
-PhotosBmpFileFormatDriver*
-photos_bmp_file_format_driver_construct (GType object_type)
-{
- PhotosBmpFileFormatDriver* self = NULL;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = (PhotosBmpFileFormatDriver*) photo_file_format_driver_construct (object_type);
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return self;
-#line 2009 "BmpSupport.c"
-}
-
-
-PhotosBmpFileFormatDriver*
-photos_bmp_file_format_driver_new (void)
-{
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- return photos_bmp_file_format_driver_construct (PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER);
-#line 2018 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_file_format_driver_class_init (PhotosBmpFileFormatDriverClass * klass)
-{
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- photos_bmp_file_format_driver_parent_class = g_type_class_peek_parent (klass);
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->finalize = photos_bmp_file_format_driver_finalize;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) photos_bmp_file_format_driver_real_get_properties;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) photos_bmp_file_format_driver_real_create_reader;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) photos_bmp_file_format_driver_real_can_write_image;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) photos_bmp_file_format_driver_real_can_write_metadata;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photos_bmp_file_format_driver_real_create_writer;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photos_bmp_file_format_driver_real_create_metadata_writer;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) photos_bmp_file_format_driver_real_create_sniffer;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) photos_bmp_file_format_driver_real_create_metadata;
-#line 2045 "BmpSupport.c"
-}
-
-
-static void
-photos_bmp_file_format_driver_instance_init (PhotosBmpFileFormatDriver * self)
-{
-}
-
-
-static void
-photos_bmp_file_format_driver_finalize (PhotoFileFormatDriver * obj)
-{
- PhotosBmpFileFormatDriver * self;
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver);
-#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala"
- PHOTO_FILE_FORMAT_DRIVER_CLASS (photos_bmp_file_format_driver_parent_class)->finalize (obj);
-#line 2063 "BmpSupport.c"
-}
-
-
-GType
-photos_bmp_file_format_driver_get_type (void)
-{
- static volatile gsize photos_bmp_file_format_driver_type_id__volatile = 0;
- if (g_once_init_enter (&photos_bmp_file_format_driver_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpFileFormatDriver), 0, (GInstanceInitFunc) photos_bmp_file_format_driver_instance_init, NULL };
- GType photos_bmp_file_format_driver_type_id;
- photos_bmp_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "PhotosBmpFileFormatDriver", &g_define_type_info, 0);
- g_once_init_leave (&photos_bmp_file_format_driver_type_id__volatile, photos_bmp_file_format_driver_type_id);
- }
- return photos_bmp_file_format_driver_type_id__volatile;
-}
-
-
-
diff --git a/src/photos/GRaw.c b/src/photos/GRaw.c
deleted file mode 100644
index 25539cc..0000000
--- a/src/photos/GRaw.c
+++ /dev/null
@@ -1,2607 +0,0 @@
-/* GRaw.c generated by valac 0.40.4, the Vala compiler
- * generated from GRaw.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <float.h>
-#include <math.h>
-#include <libraw/libraw.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define GRAW_TYPE_COLORSPACE (graw_colorspace_get_type ())
-
-#define GRAW_TYPE_FLIP (graw_flip_get_type ())
-
-#define GRAW_TYPE_FUJI_ROTATE (graw_fuji_rotate_get_type ())
-
-#define GRAW_TYPE_HIGHLIGHT_MODE (graw_highlight_mode_get_type ())
-
-#define GRAW_TYPE_INTERPOLATION_QUALITY (graw_interpolation_quality_get_type ())
-
-#define GRAW_TYPE_USE_CAMERA_MATRIX (graw_use_camera_matrix_get_type ())
-
-#define GRAW_TYPE_PROCESSED_IMAGE (graw_processed_image_get_type ())
-#define GRAW_PROCESSED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImage))
-#define GRAW_PROCESSED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImageClass))
-#define GRAW_IS_PROCESSED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAW_TYPE_PROCESSED_IMAGE))
-#define GRAW_IS_PROCESSED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRAW_TYPE_PROCESSED_IMAGE))
-#define GRAW_PROCESSED_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImageClass))
-
-typedef struct _GRawProcessedImage GRawProcessedImage;
-typedef struct _GRawProcessedImageClass GRawProcessedImageClass;
-typedef struct _GRawProcessedImagePrivate GRawProcessedImagePrivate;
-#define _free0(var) ((var == NULL) ? NULL : (var = (free (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _graw_processed_image_unref0(var) ((var == NULL) ? NULL : (var = (graw_processed_image_unref (var), NULL)))
-#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _GRawParamSpecProcessedImage GRawParamSpecProcessedImage;
-
-#define GRAW_TYPE_PROCESSOR (graw_processor_get_type ())
-#define GRAW_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAW_TYPE_PROCESSOR, GRawProcessor))
-#define GRAW_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRAW_TYPE_PROCESSOR, GRawProcessorClass))
-#define GRAW_IS_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAW_TYPE_PROCESSOR))
-#define GRAW_IS_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRAW_TYPE_PROCESSOR))
-#define GRAW_PROCESSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAW_TYPE_PROCESSOR, GRawProcessorClass))
-
-typedef struct _GRawProcessor GRawProcessor;
-typedef struct _GRawProcessorClass GRawProcessorClass;
-typedef struct _GRawProcessorPrivate GRawProcessorPrivate;
-#define _libraw_close0(var) ((var == NULL) ? NULL : (var = (libraw_close (var), NULL)))
-typedef struct _GRawParamSpecProcessor GRawParamSpecProcessor;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- GRAW_COLORSPACE_RAW = 0,
- GRAW_COLORSPACE_SRGB = 1,
- GRAW_COLORSPACE_ADOBE = 2,
- GRAW_COLORSPACE_WIDE = 3,
- GRAW_COLORSPACE_PROPHOTO = 4,
- GRAW_COLORSPACE_XYZ = 5
-} GRawColorspace;
-
-typedef enum {
- GRAW_EXCEPTION_UNSPECIFIED,
- GRAW_EXCEPTION_UNSUPPORTED_FILE,
- GRAW_EXCEPTION_NONEXISTANT_IMAGE,
- GRAW_EXCEPTION_OUT_OF_ORDER_CALL,
- GRAW_EXCEPTION_NO_THUMBNAIL,
- GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL,
- GRAW_EXCEPTION_OUT_OF_MEMORY,
- GRAW_EXCEPTION_DATA_ERROR,
- GRAW_EXCEPTION_IO_ERROR,
- GRAW_EXCEPTION_CANCELLED_BY_CALLBACK,
- GRAW_EXCEPTION_BAD_CROP,
- GRAW_EXCEPTION_SYSTEM_ERROR
-} GRawException;
-#define GRAW_EXCEPTION graw_exception_quark ()
-typedef enum {
- GRAW_FLIP_FROM_SOURCE = -1,
- GRAW_FLIP_NONE = 0,
- GRAW_FLIP_UPSIDE_DOWN = 3,
- GRAW_FLIP_COUNTERCLOCKWISE = 5,
- GRAW_FLIP_CLOCKWISE = 6
-} GRawFlip;
-
-typedef enum {
- GRAW_FUJI_ROTATE_USE = -1,
- GRAW_FUJI_ROTATE_DONT_USE = 0
-} GRawFujiRotate;
-
-typedef enum {
- GRAW_HIGHLIGHT_MODE_CLIP = 0,
- GRAW_HIGHLIGHT_MODE_UNCLIP = 1,
- GRAW_HIGHLIGHT_MODE_BLEND = 2,
- GRAW_HIGHLIGHT_MODE_REBUILD = 3
-} GRawHighlightMode;
-
-typedef enum {
- GRAW_INTERPOLATION_QUALITY_LINEAR = 0,
- GRAW_INTERPOLATION_QUALITY_VNG = 1,
- GRAW_INTERPOLATION_QUALITY_PPG = 2,
- GRAW_INTERPOLATION_QUALITY_AHD = 3
-} GRawInterpolationQuality;
-
-typedef enum {
- GRAW_USE_CAMERA_MATRIX_IGNORE = 0,
- GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE = 1,
- GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_DATA = 3
-} GRawUseCameraMatrix;
-
-struct _GRawProcessedImage {
- GTypeInstance parent_instance;
- volatile int ref_count;
- GRawProcessedImagePrivate * priv;
-};
-
-struct _GRawProcessedImageClass {
- GTypeClass parent_class;
- void (*finalize) (GRawProcessedImage *self);
-};
-
-struct _GRawProcessedImagePrivate {
- libraw_processed_image_t* image;
- GdkPixbuf* pixbuf;
-};
-
-struct _GRawParamSpecProcessedImage {
- GParamSpec parent_instance;
-};
-
-struct _GRawProcessor {
- GTypeInstance parent_instance;
- volatile int ref_count;
- GRawProcessorPrivate * priv;
-};
-
-struct _GRawProcessorClass {
- GTypeClass parent_class;
- void (*finalize) (GRawProcessor *self);
-};
-
-struct _GRawProcessorPrivate {
- libraw_data_t* proc;
-};
-
-struct _GRawParamSpecProcessor {
- GParamSpec parent_instance;
-};
-
-
-static gpointer graw_processed_image_parent_class = NULL;
-static gpointer graw_processor_parent_class = NULL;
-
-#define GRAW_HD_POWER 2.222
-#define GRAW_HD_SLOPE 4.5
-#define GRAW_SRGB_POWER 2.4
-#define GRAW_SRGB_SLOPE 12.92
-GType graw_colorspace_get_type (void) G_GNUC_CONST;
-GQuark graw_exception_quark (void);
-GType graw_flip_get_type (void) G_GNUC_CONST;
-GType graw_fuji_rotate_get_type (void) G_GNUC_CONST;
-GType graw_highlight_mode_get_type (void) G_GNUC_CONST;
-GType graw_interpolation_quality_get_type (void) G_GNUC_CONST;
-GType graw_use_camera_matrix_get_type (void) G_GNUC_CONST;
-gpointer graw_processed_image_ref (gpointer instance);
-void graw_processed_image_unref (gpointer instance);
-GParamSpec* graw_param_spec_processed_image (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void graw_value_set_processed_image (GValue* value,
- gpointer v_object);
-void graw_value_take_processed_image (GValue* value,
- gpointer v_object);
-gpointer graw_value_get_processed_image (const GValue* value);
-GType graw_processed_image_get_type (void) G_GNUC_CONST;
-#define GRAW_PROCESSED_IMAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImagePrivate))
-GRawProcessedImage* graw_processed_image_new (libraw_data_t* proc,
- GError** error);
-GRawProcessedImage* graw_processed_image_construct (GType object_type,
- libraw_data_t* proc,
- GError** error);
-void graw_throw_exception (const gchar* caller,
- enum LibRaw_errors _result_,
- GError** error);
-GRawProcessedImage* graw_processed_image_new_from_thumb (libraw_data_t* proc,
- GError** error);
-GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type,
- libraw_data_t* proc,
- GError** error);
-GdkPixbuf* graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self);
-gushort graw_processed_image_get_width (GRawProcessedImage* self);
-gushort graw_processed_image_get_height (GRawProcessedImage* self);
-gushort graw_processed_image_get_colors (GRawProcessedImage* self);
-gushort graw_processed_image_get_bits (GRawProcessedImage* self);
-guint8* graw_processed_image_get_data (GRawProcessedImage* self);
-guint graw_processed_image_get_data_size (GRawProcessedImage* self);
-static void graw_processed_image_finalize (GRawProcessedImage * obj);
-gpointer graw_processor_ref (gpointer instance);
-void graw_processor_unref (gpointer instance);
-GParamSpec* graw_param_spec_processor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void graw_value_set_processor (GValue* value,
- gpointer v_object);
-void graw_value_take_processor (GValue* value,
- gpointer v_object);
-gpointer graw_value_get_processor (const GValue* value);
-GType graw_processor_get_type (void) G_GNUC_CONST;
-#define GRAW_PROCESSOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GRAW_TYPE_PROCESSOR, GRawProcessorPrivate))
-GRawProcessor* graw_processor_new (enum LibRaw_constructor_flags options);
-GRawProcessor* graw_processor_construct (GType object_type,
- enum LibRaw_constructor_flags options);
-void graw_processor_adjust_sizes_info_only (GRawProcessor* self,
- GError** error);
-libraw_imgother_t graw_processor_get_image_other (GRawProcessor* self);
-libraw_iparams_t graw_processor_get_image_params (GRawProcessor* self);
-libraw_image_sizes_t graw_processor_get_sizes (GRawProcessor* self);
-libraw_thumbnail_t graw_processor_get_thumbnail (GRawProcessor* self);
-GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self,
- GError** error);
-GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self,
- GError** error);
-void graw_processor_open_buffer (GRawProcessor* self,
- guint8* buffer,
- int buffer_length1,
- GError** error);
-void graw_processor_open_file (GRawProcessor* self,
- const gchar* filename,
- GError** error);
-void graw_processor_process (GRawProcessor* self,
- GError** error);
-void graw_processor_ppm_tiff_writer (GRawProcessor* self,
- const gchar* filename,
- GError** error);
-void graw_processor_thumb_writer (GRawProcessor* self,
- const gchar* filename,
- GError** error);
-void graw_processor_recycle (GRawProcessor* self);
-void graw_processor_unpack (GRawProcessor* self,
- GError** error);
-void graw_processor_unpack_thumb (GRawProcessor* self,
- GError** error);
-void graw_processor_configure_for_rgb_display (GRawProcessor* self,
- gboolean half_size);
-libraw_output_params_t* graw_processor_get_output_params (GRawProcessor* self);
-static void graw_processor_finalize (GRawProcessor * obj);
-
-
-GType
-graw_colorspace_get_type (void)
-{
- static volatile gsize graw_colorspace_type_id__volatile = 0;
- if (g_once_init_enter (&graw_colorspace_type_id__volatile)) {
- static const GEnumValue values[] = {{GRAW_COLORSPACE_RAW, "GRAW_COLORSPACE_RAW", "raw"}, {GRAW_COLORSPACE_SRGB, "GRAW_COLORSPACE_SRGB", "srgb"}, {GRAW_COLORSPACE_ADOBE, "GRAW_COLORSPACE_ADOBE", "adobe"}, {GRAW_COLORSPACE_WIDE, "GRAW_COLORSPACE_WIDE", "wide"}, {GRAW_COLORSPACE_PROPHOTO, "GRAW_COLORSPACE_PROPHOTO", "prophoto"}, {GRAW_COLORSPACE_XYZ, "GRAW_COLORSPACE_XYZ", "xyz"}, {0, NULL, NULL}};
- GType graw_colorspace_type_id;
- graw_colorspace_type_id = g_enum_register_static ("GRawColorspace", values);
- g_once_init_leave (&graw_colorspace_type_id__volatile, graw_colorspace_type_id);
- }
- return graw_colorspace_type_id__volatile;
-}
-
-
-GQuark
-graw_exception_quark (void)
-{
- return g_quark_from_static_string ("graw_exception-quark");
-}
-
-
-GType
-graw_flip_get_type (void)
-{
- static volatile gsize graw_flip_type_id__volatile = 0;
- if (g_once_init_enter (&graw_flip_type_id__volatile)) {
- static const GEnumValue values[] = {{GRAW_FLIP_FROM_SOURCE, "GRAW_FLIP_FROM_SOURCE", "from-source"}, {GRAW_FLIP_NONE, "GRAW_FLIP_NONE", "none"}, {GRAW_FLIP_UPSIDE_DOWN, "GRAW_FLIP_UPSIDE_DOWN", "upside-down"}, {GRAW_FLIP_COUNTERCLOCKWISE, "GRAW_FLIP_COUNTERCLOCKWISE", "counterclockwise"}, {GRAW_FLIP_CLOCKWISE, "GRAW_FLIP_CLOCKWISE", "clockwise"}, {0, NULL, NULL}};
- GType graw_flip_type_id;
- graw_flip_type_id = g_enum_register_static ("GRawFlip", values);
- g_once_init_leave (&graw_flip_type_id__volatile, graw_flip_type_id);
- }
- return graw_flip_type_id__volatile;
-}
-
-
-GType
-graw_fuji_rotate_get_type (void)
-{
- static volatile gsize graw_fuji_rotate_type_id__volatile = 0;
- if (g_once_init_enter (&graw_fuji_rotate_type_id__volatile)) {
- static const GEnumValue values[] = {{GRAW_FUJI_ROTATE_USE, "GRAW_FUJI_ROTATE_USE", "use"}, {GRAW_FUJI_ROTATE_DONT_USE, "GRAW_FUJI_ROTATE_DONT_USE", "dont-use"}, {0, NULL, NULL}};
- GType graw_fuji_rotate_type_id;
- graw_fuji_rotate_type_id = g_enum_register_static ("GRawFujiRotate", values);
- g_once_init_leave (&graw_fuji_rotate_type_id__volatile, graw_fuji_rotate_type_id);
- }
- return graw_fuji_rotate_type_id__volatile;
-}
-
-
-GType
-graw_highlight_mode_get_type (void)
-{
- static volatile gsize graw_highlight_mode_type_id__volatile = 0;
- if (g_once_init_enter (&graw_highlight_mode_type_id__volatile)) {
- static const GEnumValue values[] = {{GRAW_HIGHLIGHT_MODE_CLIP, "GRAW_HIGHLIGHT_MODE_CLIP", "clip"}, {GRAW_HIGHLIGHT_MODE_UNCLIP, "GRAW_HIGHLIGHT_MODE_UNCLIP", "unclip"}, {GRAW_HIGHLIGHT_MODE_BLEND, "GRAW_HIGHLIGHT_MODE_BLEND", "blend"}, {GRAW_HIGHLIGHT_MODE_REBUILD, "GRAW_HIGHLIGHT_MODE_REBUILD", "rebuild"}, {0, NULL, NULL}};
- GType graw_highlight_mode_type_id;
- graw_highlight_mode_type_id = g_enum_register_static ("GRawHighlightMode", values);
- g_once_init_leave (&graw_highlight_mode_type_id__volatile, graw_highlight_mode_type_id);
- }
- return graw_highlight_mode_type_id__volatile;
-}
-
-
-GType
-graw_interpolation_quality_get_type (void)
-{
- static volatile gsize graw_interpolation_quality_type_id__volatile = 0;
- if (g_once_init_enter (&graw_interpolation_quality_type_id__volatile)) {
- static const GEnumValue values[] = {{GRAW_INTERPOLATION_QUALITY_LINEAR, "GRAW_INTERPOLATION_QUALITY_LINEAR", "linear"}, {GRAW_INTERPOLATION_QUALITY_VNG, "GRAW_INTERPOLATION_QUALITY_VNG", "vng"}, {GRAW_INTERPOLATION_QUALITY_PPG, "GRAW_INTERPOLATION_QUALITY_PPG", "ppg"}, {GRAW_INTERPOLATION_QUALITY_AHD, "GRAW_INTERPOLATION_QUALITY_AHD", "ahd"}, {0, NULL, NULL}};
- GType graw_interpolation_quality_type_id;
- graw_interpolation_quality_type_id = g_enum_register_static ("GRawInterpolationQuality", values);
- g_once_init_leave (&graw_interpolation_quality_type_id__volatile, graw_interpolation_quality_type_id);
- }
- return graw_interpolation_quality_type_id__volatile;
-}
-
-
-GType
-graw_use_camera_matrix_get_type (void)
-{
- static volatile gsize graw_use_camera_matrix_type_id__volatile = 0;
- if (g_once_init_enter (&graw_use_camera_matrix_type_id__volatile)) {
- static const GEnumValue values[] = {{GRAW_USE_CAMERA_MATRIX_IGNORE, "GRAW_USE_CAMERA_MATRIX_IGNORE", "ignore"}, {GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE, "GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE", "embedded-color-profile"}, {GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_DATA, "GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_DATA", "embedded-color-data"}, {0, NULL, NULL}};
- GType graw_use_camera_matrix_type_id;
- graw_use_camera_matrix_type_id = g_enum_register_static ("GRawUseCameraMatrix", values);
- g_once_init_leave (&graw_use_camera_matrix_type_id__volatile, graw_use_camera_matrix_type_id);
- }
- return graw_use_camera_matrix_type_id__volatile;
-}
-
-
-GRawProcessedImage*
-graw_processed_image_construct (GType object_type,
- libraw_data_t* proc,
- GError** error)
-{
- GRawProcessedImage* self = NULL;
- enum LibRaw_errors _result_ = 0;
- libraw_processed_image_t* _tmp0_;
- enum LibRaw_errors _tmp1_;
- libraw_processed_image_t* _tmp2_;
- libraw_processed_image_t* _tmp3_;
- guint8* _tmp4_;
- gint _tmp4__length1;
- libraw_processed_image_t* _tmp5_;
- gushort _tmp6_;
- libraw_processed_image_t* _tmp7_;
- gushort _tmp8_;
- libraw_processed_image_t* _tmp9_;
- gushort _tmp10_;
- libraw_processed_image_t* _tmp11_;
- gushort _tmp12_;
- libraw_processed_image_t* _tmp13_;
- gushort _tmp14_;
- GdkPixbuf* _tmp15_;
- GError * _inner_error_ = NULL;
-#line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (proc != NULL, NULL);
-#line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self = (GRawProcessedImage*) g_type_create_instance (object_type);
-#line 113 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _result_ = LIBRAW_SUCCESS;
-#line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = libraw_dcraw_make_mem_image (proc, &_result_);
-#line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _free0 (self->priv->image);
-#line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->priv->image = _tmp0_;
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _result_;
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("ProcessedImage", _tmp1_, &_inner_error_);
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _graw_processed_image_unref0 (self);
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 412 "GRaw.c"
- } else {
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.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 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 420 "GRaw.c"
- }
- }
-#line 116 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp2_ = self->priv->image;
-#line 116 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _vala_assert (_tmp2_ != NULL, "image != null");
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp3_ = self->priv->image;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp4_ = _tmp3_->data;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp4__length1 = _tmp3_->data_size;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp5_ = self->priv->image;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp6_ = _tmp5_->bits;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp7_ = self->priv->image;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp8_ = _tmp7_->width;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp9_ = self->priv->image;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp10_ = _tmp9_->height;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp11_ = self->priv->image;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp12_ = _tmp11_->width;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp13_ = self->priv->image;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp14_ = _tmp13_->colors;
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp15_ = gdk_pixbuf_new_from_data (_tmp4_, GDK_COLORSPACE_RGB, FALSE, (gint) _tmp6_, (gint) _tmp8_, (gint) _tmp10_, (gint) (_tmp12_ * _tmp14_), (GdkPixbufDestroyNotify) NULL, NULL);
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_object_unref0 (self->priv->pixbuf);
-#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->priv->pixbuf = _tmp15_;
-#line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return self;
-#line 461 "GRaw.c"
-}
-
-
-GRawProcessedImage*
-graw_processed_image_new (libraw_data_t* proc,
- GError** error)
-{
-#line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return graw_processed_image_construct (GRAW_TYPE_PROCESSED_IMAGE, proc, error);
-#line 471 "GRaw.c"
-}
-
-
-GRawProcessedImage*
-graw_processed_image_construct_from_thumb (GType object_type,
- libraw_data_t* proc,
- GError** error)
-{
- GRawProcessedImage* self = NULL;
- enum LibRaw_errors _result_ = 0;
- libraw_processed_image_t* _tmp0_;
- enum LibRaw_errors _tmp1_;
- libraw_processed_image_t* _tmp2_;
- libraw_processed_image_t* _tmp16_;
- GdkPixbuf* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- libraw_processed_image_t* _tmp20_;
- GdkPixbuf* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- libraw_processed_image_t* _tmp24_;
- GdkPixbuf* _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
- libraw_processed_image_t* _tmp28_;
- GdkPixbuf* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- GError * _inner_error_ = NULL;
-#line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (proc != NULL, NULL);
-#line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self = (GRawProcessedImage*) g_type_create_instance (object_type);
-#line 125 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _result_ = LIBRAW_SUCCESS;
-#line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = libraw_dcraw_make_mem_thumb (proc, &_result_);
-#line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _free0 (self->priv->image);
-#line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->priv->image = _tmp0_;
-#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _result_;
-#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("ProcessedImage.from_thumb", _tmp1_, &_inner_error_);
-#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"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _graw_processed_image_unref0 (self);
-#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 528 "GRaw.c"
- } else {
-#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.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 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 536 "GRaw.c"
- }
- }
-#line 128 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp2_ = self->priv->image;
-#line 128 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _vala_assert (_tmp2_ != NULL, "image != null");
-#line 543 "GRaw.c"
- {
- GBytes* bytes = NULL;
- libraw_processed_image_t* _tmp3_;
- guint8* _tmp4_;
- gint _tmp4__length1;
- GBytes* _tmp5_;
- GdkPixbuf* _tmp6_ = NULL;
- GBytes* _tmp7_;
- GMemoryInputStream* _tmp8_;
- GMemoryInputStream* _tmp9_;
- GdkPixbuf* _tmp10_;
- GdkPixbuf* _tmp11_;
- GdkPixbuf* _tmp12_;
-#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp3_ = self->priv->image;
-#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp4_ = _tmp3_->data;
-#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp4__length1 = _tmp3_->data_size;
-#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp5_ = g_bytes_new_static (_tmp4_, _tmp4__length1);
-#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- bytes = _tmp5_;
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp7_ = bytes;
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp8_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp7_);
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp9_ = _tmp8_;
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp10_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_);
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp11_ = _tmp10_;
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_object_unref0 (_tmp9_);
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp6_ = _tmp11_;
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_bytes_unref0 (bytes);
-#line 585 "GRaw.c"
- goto __catch33_g_error;
- }
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp12_ = _tmp6_;
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp6_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_object_unref0 (self->priv->pixbuf);
-#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->priv->pixbuf = _tmp12_;
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_object_unref0 (_tmp6_);
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_bytes_unref0 (bytes);
-#line 600 "GRaw.c"
- }
- goto __finally33;
- __catch33_g_error:
- {
- GError* err = NULL;
- GError* _tmp13_;
- const gchar* _tmp14_;
- GError* _tmp15_;
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- err = _inner_error_;
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = NULL;
-#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp13_ = err;
-#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp14_ = _tmp13_->message;
-#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp15_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, _tmp14_);
-#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp15_;
-#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_error_free0 (err);
-#line 623 "GRaw.c"
- goto __finally33;
- }
- __finally33:
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _graw_processed_image_unref0 (self);
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 637 "GRaw.c"
- } else {
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.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 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 645 "GRaw.c"
- }
- }
-#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp16_ = self->priv->image;
-#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp17_ = self->priv->pixbuf;
-#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp18_ = gdk_pixbuf_get_width (_tmp17_);
-#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp19_ = _tmp18_;
-#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp16_->width = (gushort) _tmp19_;
-#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp20_ = self->priv->image;
-#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp21_ = self->priv->pixbuf;
-#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp22_ = gdk_pixbuf_get_height (_tmp21_);
-#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp23_ = _tmp22_;
-#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp20_->height = (gushort) _tmp23_;
-#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp24_ = self->priv->image;
-#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp25_ = self->priv->pixbuf;
-#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp26_ = gdk_pixbuf_get_n_channels (_tmp25_);
-#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp27_ = _tmp26_;
-#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp24_->colors = (gushort) _tmp27_;
-#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp28_ = self->priv->image;
-#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp29_ = self->priv->pixbuf;
-#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp30_ = gdk_pixbuf_get_bits_per_sample (_tmp29_);
-#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp31_ = _tmp30_;
-#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp28_->bits = (gushort) _tmp31_;
-#line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return self;
-#line 690 "GRaw.c"
-}
-
-
-GRawProcessedImage*
-graw_processed_image_new_from_thumb (libraw_data_t* proc,
- GError** error)
-{
-#line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return graw_processed_image_construct_from_thumb (GRAW_TYPE_PROCESSED_IMAGE, proc, error);
-#line 700 "GRaw.c"
-}
-
-
-GdkPixbuf*
-graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
-#line 149 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), NULL);
-#line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->pixbuf;
-#line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = gdk_pixbuf_copy (_tmp0_);
-#line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp1_;
-#line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 720 "GRaw.c"
-}
-
-
-gushort
-graw_processed_image_get_width (GRawProcessedImage* self)
-{
- gushort result;
- libraw_processed_image_t* _tmp0_;
- gushort _tmp1_;
-#line 77 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U);
-#line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->image;
-#line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _tmp0_->width;
-#line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp1_;
-#line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 740 "GRaw.c"
-}
-
-
-gushort
-graw_processed_image_get_height (GRawProcessedImage* self)
-{
- gushort result;
- libraw_processed_image_t* _tmp0_;
- gushort _tmp1_;
-#line 83 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U);
-#line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->image;
-#line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _tmp0_->height;
-#line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp1_;
-#line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 760 "GRaw.c"
-}
-
-
-gushort
-graw_processed_image_get_colors (GRawProcessedImage* self)
-{
- gushort result;
- libraw_processed_image_t* _tmp0_;
- gushort _tmp1_;
-#line 89 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U);
-#line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->image;
-#line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _tmp0_->colors;
-#line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 780 "GRaw.c"
-}
-
-
-gushort
-graw_processed_image_get_bits (GRawProcessedImage* self)
-{
- gushort result;
- libraw_processed_image_t* _tmp0_;
- gushort _tmp1_;
-#line 95 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U);
-#line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->image;
-#line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _tmp0_->bits;
-#line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp1_;
-#line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 800 "GRaw.c"
-}
-
-
-guint8*
-graw_processed_image_get_data (GRawProcessedImage* self)
-{
- guint8* result;
- libraw_processed_image_t* _tmp0_;
- guint8* _tmp1_;
- gint _tmp1__length1;
-#line 101 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), NULL);
-#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->image;
-#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _tmp0_->data;
-#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1__length1 = _tmp0_->data_size;
-#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp1_;
-#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 823 "GRaw.c"
-}
-
-
-guint
-graw_processed_image_get_data_size (GRawProcessedImage* self)
-{
- guint result;
- libraw_processed_image_t* _tmp0_;
- guint _tmp1_;
-#line 107 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U);
-#line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->image;
-#line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _tmp0_->data_size;
-#line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp1_;
-#line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 843 "GRaw.c"
-}
-
-
-static void
-graw_value_processed_image_init (GValue* value)
-{
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = NULL;
-#line 852 "GRaw.c"
-}
-
-
-static void
-graw_value_processed_image_free_value (GValue* value)
-{
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (value->data[0].v_pointer) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processed_image_unref (value->data[0].v_pointer);
-#line 863 "GRaw.c"
- }
-}
-
-
-static void
-graw_value_processed_image_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (src_value->data[0].v_pointer) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- dest_value->data[0].v_pointer = graw_processed_image_ref (src_value->data[0].v_pointer);
-#line 876 "GRaw.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 880 "GRaw.c"
- }
-}
-
-
-static gpointer
-graw_value_processed_image_peek_pointer (const GValue* value)
-{
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return value->data[0].v_pointer;
-#line 890 "GRaw.c"
-}
-
-
-static gchar*
-graw_value_processed_image_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (collect_values[0].v_pointer) {
-#line 902 "GRaw.c"
- GRawProcessedImage * object;
- object = collect_values[0].v_pointer;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 909 "GRaw.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.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 913 "GRaw.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = graw_processed_image_ref (object);
-#line 917 "GRaw.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = NULL;
-#line 921 "GRaw.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 925 "GRaw.c"
-}
-
-
-static gchar*
-graw_value_processed_image_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- GRawProcessedImage ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (!object_p) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 941 "GRaw.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (!value->data[0].v_pointer) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- *object_p = NULL;
-#line 947 "GRaw.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- *object_p = value->data[0].v_pointer;
-#line 951 "GRaw.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- *object_p = graw_processed_image_ref (value->data[0].v_pointer);
-#line 955 "GRaw.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 959 "GRaw.c"
-}
-
-
-GParamSpec*
-graw_param_spec_processed_image (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- GRawParamSpecProcessedImage* spec;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (g_type_is_a (object_type, GRAW_TYPE_PROCESSED_IMAGE), NULL);
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return G_PARAM_SPEC (spec);
-#line 979 "GRaw.c"
-}
-
-
-gpointer
-graw_value_get_processed_image (const GValue* value)
-{
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE), NULL);
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return value->data[0].v_pointer;
-#line 990 "GRaw.c"
-}
-
-
-void
-graw_value_set_processed_image (GValue* value,
- gpointer v_object)
-{
- GRawProcessedImage * old;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE));
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- old = value->data[0].v_pointer;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (v_object) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAW_TYPE_PROCESSED_IMAGE));
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = v_object;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processed_image_ref (value->data[0].v_pointer);
-#line 1013 "GRaw.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = NULL;
-#line 1017 "GRaw.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (old) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processed_image_unref (old);
-#line 1023 "GRaw.c"
- }
-}
-
-
-void
-graw_value_take_processed_image (GValue* value,
- gpointer v_object)
-{
- GRawProcessedImage * old;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE));
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- old = value->data[0].v_pointer;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (v_object) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAW_TYPE_PROCESSED_IMAGE));
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = v_object;
-#line 1045 "GRaw.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = NULL;
-#line 1049 "GRaw.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (old) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processed_image_unref (old);
-#line 1055 "GRaw.c"
- }
-}
-
-
-static void
-graw_processed_image_class_init (GRawProcessedImageClass * klass)
-{
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processed_image_parent_class = g_type_class_peek_parent (klass);
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- ((GRawProcessedImageClass *) klass)->finalize = graw_processed_image_finalize;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_type_class_add_private (klass, sizeof (GRawProcessedImagePrivate));
-#line 1069 "GRaw.c"
-}
-
-
-static void
-graw_processed_image_instance_init (GRawProcessedImage * self)
-{
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->priv = GRAW_PROCESSED_IMAGE_GET_PRIVATE (self);
-#line 74 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->priv->pixbuf = NULL;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->ref_count = 1;
-#line 1082 "GRaw.c"
-}
-
-
-static void
-graw_processed_image_finalize (GRawProcessedImage * obj)
-{
- GRawProcessedImage * self;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImage);
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_signal_handlers_destroy (self);
-#line 73 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _free0 (self->priv->image);
-#line 74 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_object_unref0 (self->priv->pixbuf);
-#line 1098 "GRaw.c"
-}
-
-
-GType
-graw_processed_image_get_type (void)
-{
- static volatile gsize graw_processed_image_type_id__volatile = 0;
- if (g_once_init_enter (&graw_processed_image_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { graw_value_processed_image_init, graw_value_processed_image_free_value, graw_value_processed_image_copy_value, graw_value_processed_image_peek_pointer, "p", graw_value_processed_image_collect_value, "p", graw_value_processed_image_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (GRawProcessedImageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) graw_processed_image_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GRawProcessedImage), 0, (GInstanceInitFunc) graw_processed_image_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType graw_processed_image_type_id;
- graw_processed_image_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GRawProcessedImage", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&graw_processed_image_type_id__volatile, graw_processed_image_type_id);
- }
- return graw_processed_image_type_id__volatile;
-}
-
-
-gpointer
-graw_processed_image_ref (gpointer instance)
-{
- GRawProcessedImage * self;
- self = instance;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return instance;
-#line 1127 "GRaw.c"
-}
-
-
-void
-graw_processed_image_unref (gpointer instance)
-{
- GRawProcessedImage * self;
- self = instance;
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- GRAW_PROCESSED_IMAGE_GET_CLASS (self)->finalize (self);
-#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1142 "GRaw.c"
- }
-}
-
-
-GRawProcessor*
-graw_processor_construct (GType object_type,
- enum LibRaw_constructor_flags options)
-{
- GRawProcessor* self = NULL;
- libraw_data_t* _tmp0_;
-#line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self = (GRawProcessor*) g_type_create_instance (object_type);
-#line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = libraw_init (options);
-#line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _libraw_close0 (self->priv->proc);
-#line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->priv->proc = _tmp0_;
-#line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return self;
-#line 1163 "GRaw.c"
-}
-
-
-GRawProcessor*
-graw_processor_new (enum LibRaw_constructor_flags options)
-{
-#line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return graw_processor_construct (GRAW_TYPE_PROCESSOR, options);
-#line 1172 "GRaw.c"
-}
-
-
-void
-graw_processor_adjust_sizes_info_only (GRawProcessor* self,
- GError** error)
-{
- libraw_data_t* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 167 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("adjust_sizes_info_only", libraw_adjust_sizes_info_only (_tmp0_), &_inner_error_);
-#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1196 "GRaw.c"
- } else {
-#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.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 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1204 "GRaw.c"
- }
- }
-}
-
-
-static libraw_imgother_t
-libraw_get_image_other (libraw_data_t* self)
-{
- libraw_imgother_t result = {0};
- libraw_imgother_t _tmp0_;
-#line 188 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- _tmp0_ = self->other;
-#line 188 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- result = _tmp0_;
-#line 188 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- return result;
-#line 1221 "GRaw.c"
-}
-
-
-libraw_imgother_t
-graw_processor_get_image_other (GRawProcessor* self)
-{
- libraw_imgother_t result = {0};
- libraw_data_t* _tmp0_;
-#line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = libraw_get_image_other (_tmp0_);
-#line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 1236 "GRaw.c"
-}
-
-
-static libraw_iparams_t
-libraw_get_image_params (libraw_data_t* self)
-{
- libraw_iparams_t result = {0};
- libraw_iparams_t _tmp0_;
-#line 189 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- _tmp0_ = self->idata;
-#line 189 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- result = _tmp0_;
-#line 189 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- return result;
-#line 1251 "GRaw.c"
-}
-
-
-libraw_iparams_t
-graw_processor_get_image_params (GRawProcessor* self)
-{
- libraw_iparams_t result = {0};
- libraw_data_t* _tmp0_;
-#line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = libraw_get_image_params (_tmp0_);
-#line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 1266 "GRaw.c"
-}
-
-
-static libraw_image_sizes_t
-libraw_get_sizes (libraw_data_t* self)
-{
- libraw_image_sizes_t result = {0};
- libraw_image_sizes_t _tmp0_;
-#line 192 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- _tmp0_ = self->sizes;
-#line 192 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- result = _tmp0_;
-#line 192 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- return result;
-#line 1281 "GRaw.c"
-}
-
-
-libraw_image_sizes_t
-graw_processor_get_sizes (GRawProcessor* self)
-{
- libraw_image_sizes_t result = {0};
- libraw_data_t* _tmp0_;
-#line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = libraw_get_sizes (_tmp0_);
-#line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 1296 "GRaw.c"
-}
-
-
-static libraw_thumbnail_t
-libraw_get_thumbnail (libraw_data_t* self)
-{
- libraw_thumbnail_t result = {0};
- libraw_thumbnail_t _tmp0_;
-#line 193 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- _tmp0_ = self->thumbnail;
-#line 193 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- result = _tmp0_;
-#line 193 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- return result;
-#line 1311 "GRaw.c"
-}
-
-
-libraw_thumbnail_t
-graw_processor_get_thumbnail (GRawProcessor* self)
-{
- libraw_thumbnail_t result = {0};
- libraw_data_t* _tmp0_;
-#line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = libraw_get_thumbnail (_tmp0_);
-#line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 1326 "GRaw.c"
-}
-
-
-GRawProcessedImage*
-graw_processor_make_mem_image (GRawProcessor* self,
- GError** error)
-{
- GRawProcessedImage* result = NULL;
- GRawProcessedImage* _tmp0_ = NULL;
- libraw_data_t* _tmp1_;
- GRawProcessedImage* _tmp2_;
- GRawProcessedImage* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 187 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSOR (self), NULL);
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = self->priv->proc;
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp2_ = graw_processed_image_new (_tmp1_, &_inner_error_);
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = _tmp2_;
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 1356 "GRaw.c"
- } else {
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.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 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 1364 "GRaw.c"
- }
- }
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp3_ = _tmp0_;
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = NULL;
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp3_;
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _graw_processed_image_unref0 (_tmp0_);
-#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 1377 "GRaw.c"
-}
-
-
-GRawProcessedImage*
-graw_processor_make_thumb_image (GRawProcessor* self,
- GError** error)
-{
- GRawProcessedImage* result = NULL;
- GRawProcessedImage* _tmp0_ = NULL;
- libraw_data_t* _tmp1_;
- GRawProcessedImage* _tmp2_;
- GRawProcessedImage* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 191 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSOR (self), NULL);
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = self->priv->proc;
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp2_ = graw_processed_image_new_from_thumb (_tmp1_, &_inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = _tmp2_;
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 1407 "GRaw.c"
- } else {
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.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 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 1415 "GRaw.c"
- }
- }
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp3_ = _tmp0_;
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = NULL;
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = _tmp3_;
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _graw_processed_image_unref0 (_tmp0_);
-#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 1428 "GRaw.c"
-}
-
-
-void
-graw_processor_open_buffer (GRawProcessor* self,
- guint8* buffer,
- int buffer_length1,
- GError** error)
-{
- libraw_data_t* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 195 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("open_buffer", libraw_open_buffer (_tmp0_, buffer, buffer_length1), &_inner_error_);
-#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1454 "GRaw.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.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 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1462 "GRaw.c"
- }
- }
-}
-
-
-void
-graw_processor_open_file (GRawProcessor* self,
- const gchar* filename,
- GError** error)
-{
- libraw_data_t* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 199 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 199 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (filename != NULL);
-#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("open_file", libraw_open_file (_tmp0_, filename), &_inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1491 "GRaw.c"
- } else {
-#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.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 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1499 "GRaw.c"
- }
- }
-}
-
-
-void
-graw_processor_process (GRawProcessor* self,
- GError** error)
-{
- libraw_data_t* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 203 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("process", libraw_dcraw_process (_tmp0_), &_inner_error_);
-#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1525 "GRaw.c"
- } else {
-#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.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 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1533 "GRaw.c"
- }
- }
-}
-
-
-void
-graw_processor_ppm_tiff_writer (GRawProcessor* self,
- const gchar* filename,
- GError** error)
-{
- libraw_data_t* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 207 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 207 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (filename != NULL);
-#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("ppm_tiff_writer", libraw_dcraw_ppm_tiff_writer (_tmp0_, filename), &_inner_error_);
-#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1562 "GRaw.c"
- } else {
-#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.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 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1570 "GRaw.c"
- }
- }
-}
-
-
-void
-graw_processor_thumb_writer (GRawProcessor* self,
- const gchar* filename,
- GError** error)
-{
- libraw_data_t* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 211 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 211 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (filename != NULL);
-#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("thumb_writer", libraw_dcraw_thumb_writer (_tmp0_, filename), &_inner_error_);
-#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1599 "GRaw.c"
- } else {
-#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.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 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1607 "GRaw.c"
- }
- }
-}
-
-
-void
-graw_processor_recycle (GRawProcessor* self)
-{
- libraw_data_t* _tmp0_;
-#line 215 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 216 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 216 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- libraw_recycle (_tmp0_);
-#line 1623 "GRaw.c"
-}
-
-
-void
-graw_processor_unpack (GRawProcessor* self,
- GError** error)
-{
- libraw_data_t* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 219 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("unpack", libraw_unpack (_tmp0_), &_inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1647 "GRaw.c"
- } else {
-#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.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 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1655 "GRaw.c"
- }
- }
-}
-
-
-void
-graw_processor_unpack_thumb (GRawProcessor* self,
- GError** error)
-{
- libraw_data_t* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 223 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_throw_exception ("unpack_thumb", libraw_unpack_thumb (_tmp0_), &_inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1681 "GRaw.c"
- } else {
-#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.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 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 1689 "GRaw.c"
- }
- }
-}
-
-
-static void
-lib_raw_output_params_set_chromatic_aberrations (libraw_output_params_t* params,
- gdouble red_multiplier,
- gdouble green_multiplier)
-{
- gdouble _tmp0_;
- gdouble _tmp1_;
-#line 148 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- (*params).aber[0] = red_multiplier;
-#line 148 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- _tmp0_ = (*params).aber[0];
-#line 149 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- (*params).aber[2] = green_multiplier;
-#line 149 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- _tmp1_ = (*params).aber[2];
-#line 1710 "GRaw.c"
-}
-
-
-static void
-lib_raw_output_params_set_gamma_curve (libraw_output_params_t* params,
- gdouble power,
- gdouble slope)
-{
- gdouble _tmp0_;
- gdouble _tmp1_;
-#line 153 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- (*params).gamm[0] = 1.0 / power;
-#line 153 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- _tmp0_ = (*params).gamm[0];
-#line 154 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- (*params).gamm[1] = slope;
-#line 154 "/home/jens/Source/shotwell/vapi/libraw.vapi"
- _tmp1_ = (*params).gamm[1];
-#line 1729 "GRaw.c"
-}
-
-
-void
-graw_processor_configure_for_rgb_display (GRawProcessor* self,
- gboolean half_size)
-{
- libraw_output_params_t* _tmp0_;
- libraw_output_params_t* _tmp1_;
- libraw_output_params_t* _tmp2_;
- libraw_output_params_t* _tmp3_;
- libraw_output_params_t* _tmp4_;
- libraw_output_params_t* _tmp5_;
- libraw_output_params_t* _tmp6_;
- libraw_output_params_t* _tmp7_;
- libraw_output_params_t* _tmp8_;
- libraw_output_params_t* _tmp9_;
- libraw_output_params_t* _tmp10_;
- libraw_output_params_t* _tmp11_;
- libraw_output_params_t* _tmp12_;
- libraw_output_params_t* _tmp13_;
- libraw_output_params_t* _tmp14_;
- libraw_output_params_t* _tmp15_;
- libraw_output_params_t* _tmp16_;
- libraw_output_params_t* _tmp17_;
- libraw_output_params_t* _tmp18_;
- libraw_output_params_t* _tmp19_;
- libraw_output_params_t* _tmp20_;
- libraw_output_params_t* _tmp21_;
- libraw_output_params_t* _tmp22_;
- libraw_output_params_t* _tmp23_;
- libraw_output_params_t* _tmp24_;
- libraw_output_params_t* _tmp25_;
- libraw_output_params_t* _tmp26_;
- libraw_output_params_t* _tmp27_;
- libraw_output_params_t* _tmp28_;
- libraw_output_params_t* _tmp29_;
-#line 230 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (GRAW_IS_PROCESSOR (self));
-#line 235 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = graw_processor_get_output_params (self);
-#line 235 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = _tmp0_;
-#line 235 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- lib_raw_output_params_set_chromatic_aberrations (_tmp1_, 1.0, 1.0);
-#line 236 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp2_ = graw_processor_get_output_params (self);
-#line 236 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp3_ = _tmp2_;
-#line 236 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- lib_raw_output_params_set_gamma_curve (_tmp3_, GRAW_SRGB_POWER, GRAW_SRGB_SLOPE);
-#line 240 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp4_ = graw_processor_get_output_params (self);
-#line 240 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp5_ = _tmp4_;
-#line 240 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp5_).bright = 1.0f;
-#line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp6_ = graw_processor_get_output_params (self);
-#line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp7_ = _tmp6_;
-#line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp7_).half_size = half_size;
-#line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp8_ = graw_processor_get_output_params (self);
-#line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp9_ = _tmp8_;
-#line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp9_).highlight = (gint) GRAW_HIGHLIGHT_MODE_CLIP;
-#line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp10_ = graw_processor_get_output_params (self);
-#line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp11_ = _tmp10_;
-#line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp11_).use_auto_wb = TRUE;
-#line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp12_ = graw_processor_get_output_params (self);
-#line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp13_ = _tmp12_;
-#line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp13_).use_camera_wb = TRUE;
-#line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp14_ = graw_processor_get_output_params (self);
-#line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp15_ = _tmp14_;
-#line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp15_).use_camera_matrix = (gint) GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE;
-#line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp16_ = graw_processor_get_output_params (self);
-#line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp17_ = _tmp16_;
-#line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp17_).output_color = (gint) GRAW_COLORSPACE_SRGB;
-#line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp18_ = graw_processor_get_output_params (self);
-#line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp19_ = _tmp18_;
-#line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp19_).output_bps = 8;
-#line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp20_ = graw_processor_get_output_params (self);
-#line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp21_ = _tmp20_;
-#line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp21_).user_flip = (gint) GRAW_FLIP_FROM_SOURCE;
-#line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp22_ = graw_processor_get_output_params (self);
-#line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp23_ = _tmp22_;
-#line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp23_).user_qual = (gint) GRAW_INTERPOLATION_QUALITY_PPG;
-#line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp24_ = graw_processor_get_output_params (self);
-#line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp25_ = _tmp24_;
-#line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp25_).no_auto_bright = TRUE;
-#line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp26_ = graw_processor_get_output_params (self);
-#line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp27_ = _tmp26_;
-#line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp27_).auto_bright_thr = 0.01f;
-#line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp28_ = graw_processor_get_output_params (self);
-#line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp29_ = _tmp28_;
-#line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- (*_tmp29_).use_fuji_rotate = (gint) GRAW_FUJI_ROTATE_USE;
-#line 1859 "GRaw.c"
-}
-
-
-libraw_output_params_t*
-graw_processor_get_output_params (GRawProcessor* self)
-{
- libraw_output_params_t* result;
- libraw_data_t* _tmp0_;
-#line 156 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (GRAW_IS_PROCESSOR (self), NULL);
-#line 157 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = self->priv->proc;
-#line 157 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- result = &_tmp0_->params;
-#line 157 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return result;
-#line 1876 "GRaw.c"
-}
-
-
-static void
-graw_value_processor_init (GValue* value)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = NULL;
-#line 1885 "GRaw.c"
-}
-
-
-static void
-graw_value_processor_free_value (GValue* value)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (value->data[0].v_pointer) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processor_unref (value->data[0].v_pointer);
-#line 1896 "GRaw.c"
- }
-}
-
-
-static void
-graw_value_processor_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (src_value->data[0].v_pointer) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- dest_value->data[0].v_pointer = graw_processor_ref (src_value->data[0].v_pointer);
-#line 1909 "GRaw.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1913 "GRaw.c"
- }
-}
-
-
-static gpointer
-graw_value_processor_peek_pointer (const GValue* value)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return value->data[0].v_pointer;
-#line 1923 "GRaw.c"
-}
-
-
-static gchar*
-graw_value_processor_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (collect_values[0].v_pointer) {
-#line 1935 "GRaw.c"
- GRawProcessor * object;
- object = collect_values[0].v_pointer;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1942 "GRaw.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.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 1946 "GRaw.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = graw_processor_ref (object);
-#line 1950 "GRaw.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = NULL;
-#line 1954 "GRaw.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 1958 "GRaw.c"
-}
-
-
-static gchar*
-graw_value_processor_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- GRawProcessor ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (!object_p) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1974 "GRaw.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (!value->data[0].v_pointer) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- *object_p = NULL;
-#line 1980 "GRaw.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- *object_p = value->data[0].v_pointer;
-#line 1984 "GRaw.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- *object_p = graw_processor_ref (value->data[0].v_pointer);
-#line 1988 "GRaw.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return NULL;
-#line 1992 "GRaw.c"
-}
-
-
-GParamSpec*
-graw_param_spec_processor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- GRawParamSpecProcessor* spec;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (g_type_is_a (object_type, GRAW_TYPE_PROCESSOR), NULL);
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return G_PARAM_SPEC (spec);
-#line 2012 "GRaw.c"
-}
-
-
-gpointer
-graw_value_get_processor (const GValue* value)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR), NULL);
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return value->data[0].v_pointer;
-#line 2023 "GRaw.c"
-}
-
-
-void
-graw_value_set_processor (GValue* value,
- gpointer v_object)
-{
- GRawProcessor * old;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR));
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- old = value->data[0].v_pointer;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (v_object) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAW_TYPE_PROCESSOR));
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = v_object;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processor_ref (value->data[0].v_pointer);
-#line 2046 "GRaw.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = NULL;
-#line 2050 "GRaw.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (old) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processor_unref (old);
-#line 2056 "GRaw.c"
- }
-}
-
-
-void
-graw_value_take_processor (GValue* value,
- gpointer v_object)
-{
- GRawProcessor * old;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR));
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- old = value->data[0].v_pointer;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (v_object) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAW_TYPE_PROCESSOR));
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = v_object;
-#line 2078 "GRaw.c"
- } else {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- value->data[0].v_pointer = NULL;
-#line 2082 "GRaw.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (old) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processor_unref (old);
-#line 2088 "GRaw.c"
- }
-}
-
-
-static void
-graw_processor_class_init (GRawProcessorClass * klass)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- graw_processor_parent_class = g_type_class_peek_parent (klass);
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- ((GRawProcessorClass *) klass)->finalize = graw_processor_finalize;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_type_class_add_private (klass, sizeof (GRawProcessorPrivate));
-#line 2102 "GRaw.c"
-}
-
-
-static void
-graw_processor_instance_init (GRawProcessor * self)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->priv = GRAW_PROCESSOR_GET_PRIVATE (self);
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self->ref_count = 1;
-#line 2113 "GRaw.c"
-}
-
-
-static void
-graw_processor_finalize (GRawProcessor * obj)
-{
- GRawProcessor * self;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, GRAW_TYPE_PROCESSOR, GRawProcessor);
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_signal_handlers_destroy (self);
-#line 161 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _libraw_close0 (self->priv->proc);
-#line 2127 "GRaw.c"
-}
-
-
-GType
-graw_processor_get_type (void)
-{
- static volatile gsize graw_processor_type_id__volatile = 0;
- if (g_once_init_enter (&graw_processor_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { graw_value_processor_init, graw_value_processor_free_value, graw_value_processor_copy_value, graw_value_processor_peek_pointer, "p", graw_value_processor_collect_value, "p", graw_value_processor_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (GRawProcessorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) graw_processor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GRawProcessor), 0, (GInstanceInitFunc) graw_processor_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType graw_processor_type_id;
- graw_processor_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GRawProcessor", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&graw_processor_type_id__volatile, graw_processor_type_id);
- }
- return graw_processor_type_id__volatile;
-}
-
-
-gpointer
-graw_processor_ref (gpointer instance)
-{
- GRawProcessor * self;
- self = instance;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return instance;
-#line 2156 "GRaw.c"
-}
-
-
-void
-graw_processor_unref (gpointer instance)
-{
- GRawProcessor * self;
- self = instance;
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- GRAW_PROCESSOR_GET_CLASS (self)->finalize (self);
-#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2171 "GRaw.c"
- }
-}
-
-
-void
-graw_throw_exception (const gchar* caller,
- enum LibRaw_errors _result_,
- GError** error)
-{
- gchar* msg = NULL;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 266 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_return_if_fail (caller != NULL);
-#line 267 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_result_ == LIBRAW_SUCCESS) {
-#line 268 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2191 "GRaw.c"
- } else {
-#line 269 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_result_ > 0) {
-#line 2195 "GRaw.c"
- const gchar* _tmp0_;
- GError* _tmp1_;
-#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp0_ = g_strerror ((gint) _result_);
-#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp1_ = g_error_new (GRAW_EXCEPTION, GRAW_EXCEPTION_SYSTEM_ERROR, "%s: System error %d: %s", caller, (gint) _result_, _tmp0_);
-#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp1_;
-#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2210 "GRaw.c"
- } else {
-#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.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 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2218 "GRaw.c"
- }
- }
- }
-#line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp2_ = libraw_strerror (_result_);
-#line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp3_ = g_strdup_printf ("%s: %s", caller, _tmp2_);
-#line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- msg = _tmp3_;
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- switch (_result_) {
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_UNSPECIFIED_ERROR:
-#line 2232 "GRaw.c"
- {
- const gchar* _tmp4_;
- GError* _tmp5_;
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp4_ = msg;
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp5_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSPECIFIED, _tmp4_);
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp5_;
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2250 "GRaw.c"
- } else {
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.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 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2260 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_FILE_UNSUPPORTED:
-#line 2265 "GRaw.c"
- {
- const gchar* _tmp6_;
- GError* _tmp7_;
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp6_ = msg;
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp7_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_FILE, _tmp6_);
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp7_;
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2283 "GRaw.c"
- } else {
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.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 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2293 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_REQUEST_FOR_NONEXISTENT_IMAGE:
-#line 2298 "GRaw.c"
- {
- const gchar* _tmp8_;
- GError* _tmp9_;
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp8_ = msg;
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp9_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_NONEXISTANT_IMAGE, _tmp8_);
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp9_;
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2316 "GRaw.c"
- } else {
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.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 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2326 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_OUT_OF_ORDER_CALL:
-#line 2331 "GRaw.c"
- {
- const gchar* _tmp10_;
- GError* _tmp11_;
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp10_ = msg;
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp11_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_OUT_OF_ORDER_CALL, _tmp10_);
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp11_;
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2349 "GRaw.c"
- } else {
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.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 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2359 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_NO_THUMBNAIL:
-#line 2364 "GRaw.c"
- {
- const gchar* _tmp12_;
- GError* _tmp13_;
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp12_ = msg;
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp13_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_NO_THUMBNAIL, _tmp12_);
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp13_;
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2382 "GRaw.c"
- } else {
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.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 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2392 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_UNSUPPORTED_THUMBNAIL:
-#line 2397 "GRaw.c"
- {
- const gchar* _tmp14_;
- GError* _tmp15_;
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp14_ = msg;
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp15_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, _tmp14_);
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp15_;
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2415 "GRaw.c"
- } else {
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.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 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2425 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_UNSUFFICIENT_MEMORY:
-#line 2430 "GRaw.c"
- {
- const gchar* _tmp16_;
- GError* _tmp17_;
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp16_ = msg;
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp17_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_OUT_OF_MEMORY, _tmp16_);
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp17_;
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2448 "GRaw.c"
- } else {
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.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 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2458 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_DATA_ERROR:
-#line 2463 "GRaw.c"
- {
- const gchar* _tmp18_;
- GError* _tmp19_;
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp18_ = msg;
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp19_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_DATA_ERROR, _tmp18_);
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp19_;
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2481 "GRaw.c"
- } else {
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.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 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2491 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_IO_ERROR:
-#line 2496 "GRaw.c"
- {
- const gchar* _tmp20_;
- GError* _tmp21_;
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp20_ = msg;
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp21_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_IO_ERROR, _tmp20_);
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp21_;
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2514 "GRaw.c"
- } else {
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.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 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2524 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_CANCELLED_BY_CALLBACK:
-#line 2529 "GRaw.c"
- {
- const gchar* _tmp22_;
- GError* _tmp23_;
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp22_ = msg;
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp23_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_CANCELLED_BY_CALLBACK, _tmp22_);
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp23_;
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2547 "GRaw.c"
- } else {
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.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 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2557 "GRaw.c"
- }
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- case LIBRAW_BAD_CROP:
-#line 2562 "GRaw.c"
- {
- const gchar* _tmp24_;
- GError* _tmp25_;
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp24_ = msg;
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _tmp25_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_BAD_CROP, _tmp24_);
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _inner_error_ = _tmp25_;
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_propagate_error (error, _inner_error_);
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2580 "GRaw.c"
- } else {
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.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 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- g_clear_error (&_inner_error_);
-#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2590 "GRaw.c"
- }
- }
- default:
- {
-#line 309 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 309 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- return;
-#line 2599 "GRaw.c"
- }
- }
-#line 266 "/home/jens/Source/shotwell/src/photos/GRaw.vala"
- _g_free0 (msg);
-#line 2604 "GRaw.c"
-}
-
-
-
diff --git a/src/photos/GdkSupport.c b/src/photos/GdkSupport.c
deleted file mode 100644
index c0b4e05..0000000
--- a/src/photos/GdkSupport.c
+++ /dev/null
@@ -1,1357 +0,0 @@
-/* GdkSupport.c generated by valac 0.40.4, the Vala compiler
- * generated from GdkSupport.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_GDK_READER (gdk_reader_get_type ())
-#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader))
-#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass))
-#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER))
-#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER))
-#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass))
-
-typedef struct _GdkReader GdkReader;
-typedef struct _GdkReaderClass GdkReaderClass;
-typedef struct _GdkReaderPrivate GdkReaderPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
-#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
-#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
-#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
-#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-
-typedef struct _PhotoFileSniffer PhotoFileSniffer;
-typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
-typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate;
-
-#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
-#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
-#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
-#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
-#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-
-typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
-typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ())
-#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer))
-#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass))
-#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER))
-#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER))
-#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass))
-
-typedef struct _GdkSniffer GdkSniffer;
-typedef struct _GdkSnifferClass GdkSnifferClass;
-typedef struct _GdkSnifferPrivate GdkSnifferPrivate;
-#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
-#define _g_checksum_free0(var) ((var == NULL) ? NULL : (var = (g_checksum_free (var), NULL)))
-typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-struct _PhotoFileAdapter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileAdapterPrivate * priv;
-};
-
-struct _PhotoFileAdapterClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileAdapter *self);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _PhotoFileReader {
- PhotoFileAdapter parent_instance;
- PhotoFileReaderPrivate * priv;
-};
-
-struct _PhotoFileReaderClass {
- PhotoFileAdapterClass parent_class;
- PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error);
-};
-
-struct _GdkReader {
- PhotoFileReader parent_instance;
- GdkReaderPrivate * priv;
-};
-
-struct _GdkReaderClass {
- PhotoFileReaderClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoFileSniffer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileSnifferPrivate * priv;
- GFile* file;
- PhotoFileSnifferOptions options;
- gboolean calc_md5;
-};
-
-struct _PhotoFileSnifferClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileSniffer *self);
- DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error);
-};
-
-struct _GdkSniffer {
- PhotoFileSniffer parent_instance;
- GdkSnifferPrivate * priv;
-};
-
-struct _GdkSnifferClass {
- PhotoFileSnifferClass parent_class;
-};
-
-struct _GdkSnifferPrivate {
- DetectedPhotoInformation* detected;
- gboolean size_ready;
- gboolean area_prepared;
-};
-
-struct _DetectedPhotoInformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DetectedPhotoInformationPrivate * priv;
- PhotoFileFormat file_format;
- PhotoMetadata* metadata;
- gchar* md5;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* format_name;
- Dimensions image_dim;
- GdkColorspace colorspace;
- gint channels;
- gint bits_per_channel;
-};
-
-struct _DetectedPhotoInformationClass {
- GTypeClass parent_class;
- void (*finalize) (DetectedPhotoInformation *self);
-};
-
-
-static gpointer gdk_reader_parent_class = NULL;
-static gpointer gdk_sniffer_parent_class = NULL;
-
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType gdk_reader_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GdkReader* gdk_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-PhotoFileReader* photo_file_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static PhotoMetadata* gdk_reader_real_read_metadata (PhotoFileReader* base,
- GError** error);
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-void media_metadata_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error);
-GFile* photo_file_adapter_get_file (PhotoFileAdapter* self);
-static GdkPixbuf* gdk_reader_real_unscaled_read (PhotoFileReader* base,
- GError** error);
-gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
-static GdkPixbuf* gdk_reader_real_scaled_read (PhotoFileReader* base,
- Dimensions* full,
- Dimensions* scaled,
- GError** error);
-gpointer photo_file_sniffer_ref (gpointer instance);
-void photo_file_sniffer_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_sniffer (GValue* value,
- gpointer v_object);
-void value_take_photo_file_sniffer (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_sniffer (const GValue* value);
-GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
-gpointer detected_photo_information_ref (gpointer instance);
-void detected_photo_information_unref (gpointer instance);
-GParamSpec* param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_detected_photo_information (GValue* value,
- gpointer v_object);
-void value_take_detected_photo_information (GValue* value,
- gpointer v_object);
-gpointer value_get_detected_photo_information (const GValue* value);
-GType detected_photo_information_get_type (void) G_GNUC_CONST;
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-GType gdk_sniffer_get_type (void) G_GNUC_CONST;
-#define GDK_SNIFFER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_GDK_SNIFFER, GdkSnifferPrivate))
-GdkSniffer* gdk_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-PhotoFileSniffer* photo_file_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-static DetectedPhotoInformation* gdk_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error);
-DetectedPhotoInformation* detected_photo_information_new (void);
-DetectedPhotoInformation* detected_photo_information_construct (GType object_type);
-static void gdk_sniffer_on_size_prepared (GdkSniffer* self,
- GdkPixbufLoader* loader,
- gint width,
- gint height);
-static void _gdk_sniffer_on_size_prepared_gdk_pixbuf_loader_size_prepared (GdkPixbufLoader* _sender,
- gint width,
- gint height,
- gpointer self);
-static void gdk_sniffer_on_area_prepared (GdkSniffer* self,
- GdkPixbufLoader* pixbuf_loader);
-static void _gdk_sniffer_on_area_prepared_gdk_pixbuf_loader_area_prepared (GdkPixbufLoader* _sender,
- gpointer self);
-gchar* photo_metadata_exif_hash (PhotoMetadata* self);
-gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self);
-static guint8* _vala_array_dup5 (guint8* self,
- int length);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-PhotoFileFormat photo_file_format_from_pixbuf_name (const gchar* name);
-static void gdk_sniffer_finalize (PhotoFileSniffer * obj);
-
-
-GdkReader*
-gdk_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format)
-{
- GdkReader* self = NULL;
-#line 8 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 9 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self = (GdkReader*) photo_file_reader_construct (object_type, filepath, file_format);
-#line 8 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return self;
-#line 354 "GdkSupport.c"
-}
-
-
-static PhotoMetadata*
-gdk_reader_real_read_metadata (PhotoFileReader* base,
- GError** error)
-{
- GdkReader * self;
- PhotoMetadata* result = NULL;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 12 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GDK_READER, GdkReader);
-#line 13 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp0_ = photo_metadata_new ();
-#line 13 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- metadata = _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp1_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp2_ = _tmp1_;
-#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata), _tmp2_, &_inner_error_);
-#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (_tmp2_);
-#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _media_metadata_unref0 (metadata);
-#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 391 "GdkSupport.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- result = metadata;
-#line 16 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return result;
-#line 397 "GdkSupport.c"
-}
-
-
-static GdkPixbuf*
-gdk_reader_real_unscaled_read (PhotoFileReader* base,
- GError** error)
-{
- GdkReader * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 19 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GDK_READER, GdkReader);
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp1_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp2_ = _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp3_ = gdk_pixbuf_new_from_file (_tmp2_, &_inner_error_);
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp4_ = _tmp3_;
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_free0 (_tmp2_);
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp0_ = _tmp4_;
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 434 "GdkSupport.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp5_ = _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp0_ = NULL;
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- result = _tmp5_;
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (_tmp0_);
-#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return result;
-#line 446 "GdkSupport.c"
-}
-
-
-static GdkPixbuf*
-gdk_reader_real_scaled_read (PhotoFileReader* base,
- Dimensions* full,
- Dimensions* scaled,
- GError** error)
-{
- GdkReader * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- Dimensions _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
- GdkPixbuf* _tmp7_;
- GdkPixbuf* _tmp8_;
- GdkPixbuf* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 23 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GDK_READER, GdkReader);
-#line 23 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_return_val_if_fail (full != NULL, NULL);
-#line 23 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_return_val_if_fail (scaled != NULL, NULL);
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp1_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp2_ = _tmp1_;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp3_ = *scaled;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp4_ = _tmp3_.width;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp5_ = *scaled;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp6_ = _tmp5_.height;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp7_ = gdk_pixbuf_new_from_file_at_scale (_tmp2_, _tmp4_, _tmp6_, FALSE, &_inner_error_);
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp8_ = _tmp7_;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_free0 (_tmp2_);
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp0_ = _tmp8_;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 501 "GdkSupport.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp9_ = _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp0_ = NULL;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- result = _tmp9_;
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (_tmp0_);
-#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return result;
-#line 513 "GdkSupport.c"
-}
-
-
-static void
-gdk_reader_class_init (GdkReaderClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- gdk_reader_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- ((PhotoFileReaderClass *) klass)->read_metadata = (PhotoMetadata* (*) (PhotoFileReader *, GError**)) gdk_reader_real_read_metadata;
-#line 7 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- ((PhotoFileReaderClass *) klass)->unscaled_read = (GdkPixbuf* (*) (PhotoFileReader *, GError**)) gdk_reader_real_unscaled_read;
-#line 7 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) gdk_reader_real_scaled_read;
-#line 528 "GdkSupport.c"
-}
-
-
-static void
-gdk_reader_instance_init (GdkReader * self)
-{
-}
-
-
-GType
-gdk_reader_get_type (void)
-{
- static volatile gsize gdk_reader_type_id__volatile = 0;
- if (g_once_init_enter (&gdk_reader_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (GdkReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gdk_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GdkReader), 0, (GInstanceInitFunc) gdk_reader_instance_init, NULL };
- GType gdk_reader_type_id;
- gdk_reader_type_id = g_type_register_static (TYPE_PHOTO_FILE_READER, "GdkReader", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&gdk_reader_type_id__volatile, gdk_reader_type_id);
- }
- return gdk_reader_type_id__volatile;
-}
-
-
-GdkSniffer*
-gdk_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- GdkSniffer* self = NULL;
-#line 33 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 34 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self = (GdkSniffer*) photo_file_sniffer_construct (object_type, file, options);
-#line 33 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return self;
-#line 564 "GdkSupport.c"
-}
-
-
-static void
-_gdk_sniffer_on_size_prepared_gdk_pixbuf_loader_size_prepared (GdkPixbufLoader* _sender,
- gint width,
- gint height,
- gpointer self)
-{
-#line 41 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- gdk_sniffer_on_size_prepared ((GdkSniffer*) self, _sender, width, height);
-#line 576 "GdkSupport.c"
-}
-
-
-static void
-_gdk_sniffer_on_area_prepared_gdk_pixbuf_loader_area_prepared (GdkPixbufLoader* _sender,
- gpointer self)
-{
-#line 42 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- gdk_sniffer_on_area_prepared ((GdkSniffer*) self, _sender);
-#line 586 "GdkSupport.c"
-}
-
-
-static guint8*
-_vala_array_dup5 (guint8* self,
- int length)
-{
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return g_memdup (self, length * sizeof (guint8));
-#line 596 "GdkSupport.c"
-}
-
-
-static gpointer
-_detected_photo_information_ref0 (gpointer self)
-{
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return self ? detected_photo_information_ref (self) : NULL;
-#line 605 "GdkSupport.c"
-}
-
-
-static DetectedPhotoInformation*
-gdk_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error)
-{
- GdkSniffer * self;
- gboolean _vala_is_corrupted = FALSE;
- DetectedPhotoInformation* result = NULL;
- DetectedPhotoInformation* _tmp0_;
- GdkPixbufLoader* pixbuf_loader = NULL;
- GdkPixbufLoader* _tmp1_;
- GdkPixbufLoader* _tmp2_;
- GdkPixbufLoader* _tmp3_;
- GChecksum* md5_checksum = NULL;
- gboolean _tmp4_;
- DetectedPhotoInformation* _tmp6_;
- PhotoMetadata* _tmp7_;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_;
- guint8* _tmp24_ = NULL;
- gint _tmp24__length1 = 0;
- gint __tmp24__size_ = 0;
- gboolean _tmp25_;
- guint8* buffer = NULL;
- guint8* _tmp28_;
- gint _tmp28__length1;
- gint buffer_length1;
- gint _buffer_size_;
- gsize count = 0UL;
- GFileInputStream* fins = NULL;
- GFile* _tmp29_;
- GFileInputStream* _tmp30_;
- GFileInputStream* _tmp53_;
- gboolean _tmp55_;
- gboolean _tmp60_ = FALSE;
- gboolean _tmp61_;
- DetectedPhotoInformation* _tmp63_;
- DetectedPhotoInformation* _tmp64_;
- GError * _inner_error_ = NULL;
-#line 37 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GDK_SNIFFER, GdkSniffer);
-#line 38 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp0_ = detected_photo_information_new ();
-#line 38 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _detected_photo_information_unref0 (self->priv->detected);
-#line 38 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self->priv->detected = _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp1_ = gdk_pixbuf_loader_new ();
-#line 40 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- pixbuf_loader = _tmp1_;
-#line 41 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp2_ = pixbuf_loader;
-#line 41 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_signal_connect (_tmp2_, "size-prepared", (GCallback) _gdk_sniffer_on_size_prepared_gdk_pixbuf_loader_size_prepared, self);
-#line 42 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp3_ = pixbuf_loader;
-#line 42 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_signal_connect (_tmp3_, "area-prepared", (GCallback) _gdk_sniffer_on_area_prepared_gdk_pixbuf_loader_area_prepared, self);
-#line 45 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- md5_checksum = NULL;
-#line 46 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5;
-#line 46 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp4_) {
-#line 674 "GdkSupport.c"
- GChecksum* _tmp5_;
-#line 47 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp5_ = g_checksum_new (G_CHECKSUM_MD5);
-#line 47 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_checksum_free0 (md5_checksum);
-#line 47 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- md5_checksum = _tmp5_;
-#line 682 "GdkSupport.c"
- }
-#line 49 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp6_ = self->priv->detected;
-#line 49 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp7_ = photo_metadata_new ();
-#line 49 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _media_metadata_unref0 (_tmp6_->metadata);
-#line 49 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp6_->metadata = _tmp7_;
-#line 692 "GdkSupport.c"
- {
- DetectedPhotoInformation* _tmp8_;
- PhotoMetadata* _tmp9_;
- GFile* _tmp10_;
-#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp8_ = self->priv->detected;
-#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp9_ = _tmp8_->metadata;
-#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp10_, &_inner_error_);
-#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 707 "GdkSupport.c"
- goto __catch34_g_error;
- }
- }
- goto __finally34;
- __catch34_g_error:
- {
- GError* err = NULL;
- DetectedPhotoInformation* _tmp11_;
-#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- err = _inner_error_;
-#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _inner_error_ = NULL;
-#line 54 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp11_ = self->priv->detected;
-#line 54 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _media_metadata_unref0 (_tmp11_->metadata);
-#line 54 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp11_->metadata = NULL;
-#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_error_free0 (err);
-#line 728 "GdkSupport.c"
- }
- __finally34:
-#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"
- g_propagate_error (error, _inner_error_);
-#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_checksum_free0 (md5_checksum);
-#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf_loader);
-#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 741 "GdkSupport.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5;
-#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp13_) {
-#line 747 "GdkSupport.c"
- DetectedPhotoInformation* _tmp14_;
- PhotoMetadata* _tmp15_;
-#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp14_ = self->priv->detected;
-#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp15_ = _tmp14_->metadata;
-#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp12_ = _tmp15_ != NULL;
-#line 756 "GdkSupport.c"
- } else {
-#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp12_ = FALSE;
-#line 760 "GdkSupport.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp12_) {
-#line 764 "GdkSupport.c"
- DetectedPhotoInformation* _tmp16_;
- DetectedPhotoInformation* _tmp17_;
- PhotoMetadata* _tmp18_;
- gchar* _tmp19_;
- DetectedPhotoInformation* _tmp20_;
- DetectedPhotoInformation* _tmp21_;
- PhotoMetadata* _tmp22_;
- gchar* _tmp23_;
-#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp16_ = self->priv->detected;
-#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp17_ = self->priv->detected;
-#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp18_ = _tmp17_->metadata;
-#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp19_ = photo_metadata_exif_hash (_tmp18_);
-#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_free0 (_tmp16_->exif_md5);
-#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp16_->exif_md5 = _tmp19_;
-#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp20_ = self->priv->detected;
-#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp21_ = self->priv->detected;
-#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp22_ = _tmp21_->metadata;
-#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp23_ = photo_metadata_thumbnail_hash (_tmp22_);
-#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_free0 (_tmp20_->thumbnail_md5);
-#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp20_->thumbnail_md5 = _tmp23_;
-#line 797 "GdkSupport.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp25_) {
-#line 803 "GdkSupport.c"
- guint8* _tmp26_;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp26_ = g_new0 (guint8, 64 * 1024);
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = (g_free (_tmp24_), NULL);
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = _tmp26_;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24__length1 = 64 * 1024;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- __tmp24__size_ = _tmp24__length1;
-#line 815 "GdkSupport.c"
- } else {
- guint8* _tmp27_;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp27_ = g_new0 (guint8, 8 * 1024);
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = (g_free (_tmp24_), NULL);
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = _tmp27_;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24__length1 = 8 * 1024;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- __tmp24__size_ = _tmp24__length1;
-#line 828 "GdkSupport.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp28_ = (_tmp24_ != NULL) ? _vala_array_dup5 (_tmp24_, _tmp24__length1) : ((gpointer) _tmp24_);
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp28__length1 = _tmp24__length1;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- buffer = _tmp28_;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- buffer_length1 = _tmp28__length1;
-#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _buffer_size_ = buffer_length1;
-#line 65 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- count = (gsize) 0;
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp30_ = g_file_read (_tmp29_, NULL, &_inner_error_);
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- fins = _tmp30_;
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- buffer = (g_free (buffer), NULL);
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = (g_free (_tmp24_), NULL);
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_checksum_free0 (md5_checksum);
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf_loader);
-#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 862 "GdkSupport.c"
- }
- {
- gboolean _tmp31_ = FALSE;
-#line 69 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp31_ = TRUE;
-#line 69 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- while (TRUE) {
-#line 870 "GdkSupport.c"
- gsize bytes_read = 0UL;
- GFileInputStream* _tmp32_;
- guint8* _tmp33_;
- gint _tmp33__length1;
- gsize _tmp34_;
- gsize _tmp35_;
- gsize _tmp36_;
- gboolean _tmp37_;
- gboolean _tmp41_ = FALSE;
- gboolean _tmp42_;
- gboolean _tmp47_ = FALSE;
- gboolean _tmp48_ = FALSE;
- gboolean _tmp49_;
-#line 69 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (!_tmp31_) {
-#line 886 "GdkSupport.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp31_ = FALSE;
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp32_ = fins;
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp33_ = buffer;
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp33__length1 = buffer_length1;
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- bytes_read = (gsize) g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, g_input_stream_get_type (), GInputStream), _tmp33_, (gsize) _tmp33__length1, NULL, &_inner_error_);
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (fins);
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- buffer = (g_free (buffer), NULL);
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = (g_free (_tmp24_), NULL);
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_checksum_free0 (md5_checksum);
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf_loader);
-#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 914 "GdkSupport.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp34_ = bytes_read;
-#line 71 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp34_ <= ((gsize) 0)) {
-#line 72 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- break;
-#line 922 "GdkSupport.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp35_ = count;
-#line 74 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp36_ = bytes_read;
-#line 74 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- count = _tmp35_ + _tmp36_;
-#line 76 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5;
-#line 76 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp37_) {
-#line 934 "GdkSupport.c"
- GChecksum* _tmp38_;
- guint8* _tmp39_;
- gint _tmp39__length1;
- gsize _tmp40_;
-#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp38_ = md5_checksum;
-#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp39_ = buffer;
-#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp39__length1 = buffer_length1;
-#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp40_ = bytes_read;
-#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_checksum_update (_tmp38_, _tmp39_, _tmp40_);
-#line 949 "GdkSupport.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp42_ = self->priv->size_ready;
-#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (!_tmp42_) {
-#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp41_ = TRUE;
-#line 957 "GdkSupport.c"
- } else {
- gboolean _tmp43_;
-#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp43_ = self->priv->area_prepared;
-#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp41_ = !_tmp43_;
-#line 964 "GdkSupport.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp41_) {
-#line 968 "GdkSupport.c"
- GdkPixbufLoader* _tmp44_;
- guint8* _tmp45_;
- gint _tmp45__length1;
- gsize _tmp46_;
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp44_ = pixbuf_loader;
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp45_ = buffer;
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp45__length1 = buffer_length1;
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp46_ = bytes_read;
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- gdk_pixbuf_loader_write (_tmp44_, _tmp45_ + 0, (gsize) (((gint) _tmp46_) - 0), &_inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (fins);
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- buffer = (g_free (buffer), NULL);
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = (g_free (_tmp24_), NULL);
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_checksum_free0 (md5_checksum);
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf_loader);
-#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 999 "GdkSupport.c"
- }
- }
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp49_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5;
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (!_tmp49_) {
-#line 1006 "GdkSupport.c"
- gboolean _tmp50_;
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp50_ = self->priv->size_ready;
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp48_ = _tmp50_;
-#line 1012 "GdkSupport.c"
- } else {
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp48_ = FALSE;
-#line 1016 "GdkSupport.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp48_) {
-#line 1020 "GdkSupport.c"
- gboolean _tmp51_;
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp51_ = self->priv->area_prepared;
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp47_ = _tmp51_;
-#line 1026 "GdkSupport.c"
- } else {
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp47_ = FALSE;
-#line 1030 "GdkSupport.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp47_) {
-#line 85 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- break;
-#line 1036 "GdkSupport.c"
- }
- }
- }
- {
- GdkPixbufLoader* _tmp52_;
-#line 90 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp52_ = pixbuf_loader;
-#line 90 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- gdk_pixbuf_loader_close (_tmp52_, &_inner_error_);
-#line 90 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1048 "GdkSupport.c"
- goto __catch35_g_error;
- }
- }
- goto __finally35;
- __catch35_g_error:
- {
- GError* err = NULL;
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- err = _inner_error_;
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _inner_error_ = NULL;
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_error_free0 (err);
-#line 1062 "GdkSupport.c"
- }
- __finally35:
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (fins);
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- buffer = (g_free (buffer), NULL);
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = (g_free (_tmp24_), NULL);
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_checksum_free0 (md5_checksum);
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf_loader);
-#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 1081 "GdkSupport.c"
- }
-#line 94 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp53_ = fins;
-#line 94 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp53_ != NULL) {
-#line 1087 "GdkSupport.c"
- GFileInputStream* _tmp54_;
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp54_ = fins;
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_);
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (fins);
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- buffer = (g_free (buffer), NULL);
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = (g_free (_tmp24_), NULL);
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_checksum_free0 (md5_checksum);
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf_loader);
-#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return NULL;
-#line 1109 "GdkSupport.c"
- }
- }
-#line 97 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp55_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5;
-#line 97 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp55_) {
-#line 1116 "GdkSupport.c"
- DetectedPhotoInformation* _tmp56_;
- GChecksum* _tmp57_;
- const gchar* _tmp58_;
- gchar* _tmp59_;
-#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp56_ = self->priv->detected;
-#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp57_ = md5_checksum;
-#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp58_ = g_checksum_get_string (_tmp57_);
-#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp59_ = g_strdup (_tmp58_);
-#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_free0 (_tmp56_->md5);
-#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp56_->md5 = _tmp59_;
-#line 1133 "GdkSupport.c"
- }
-#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp61_ = self->priv->size_ready;
-#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (!_tmp61_) {
-#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp60_ = TRUE;
-#line 1141 "GdkSupport.c"
- } else {
- gboolean _tmp62_;
-#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp62_ = self->priv->area_prepared;
-#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp60_ = !_tmp62_;
-#line 1148 "GdkSupport.c"
- }
-#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _vala_is_corrupted = _tmp60_;
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp63_ = self->priv->detected;
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp64_ = _detected_photo_information_ref0 (_tmp63_);
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- result = _tmp64_;
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (fins);
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- buffer = (g_free (buffer), NULL);
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp24_ = (g_free (_tmp24_), NULL);
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_checksum_free0 (md5_checksum);
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf_loader);
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (is_corrupted) {
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1172 "GdkSupport.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return result;
-#line 1176 "GdkSupport.c"
-}
-
-
-static void
-gdk_sniffer_on_size_prepared (GdkSniffer* self,
- GdkPixbufLoader* loader,
- gint width,
- gint height)
-{
- DetectedPhotoInformation* _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_return_if_fail (IS_GDK_SNIFFER (self));
-#line 106 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_return_if_fail (GDK_IS_PIXBUF_LOADER (loader));
-#line 107 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp0_ = self->priv->detected;
-#line 107 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- dimensions_init (&_tmp0_->image_dim, width, height);
-#line 108 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self->priv->size_ready = TRUE;
-#line 1197 "GdkSupport.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 112 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1206 "GdkSupport.c"
-}
-
-
-static void
-gdk_sniffer_on_area_prepared (GdkSniffer* self,
- GdkPixbufLoader* pixbuf_loader)
-{
- GdkPixbuf* pixbuf = NULL;
- GdkPixbuf* _tmp0_;
- GdkPixbuf* _tmp1_;
- GdkPixbuf* _tmp2_;
- DetectedPhotoInformation* _tmp3_;
- GdkPixbuf* _tmp4_;
- DetectedPhotoInformation* _tmp5_;
- GdkPixbuf* _tmp6_;
- DetectedPhotoInformation* _tmp7_;
- GdkPixbuf* _tmp8_;
- GdkPixbufFormat* format = NULL;
- GdkPixbufFormat* _tmp9_;
- DetectedPhotoInformation* _tmp10_;
- GdkPixbufFormat* _tmp11_;
- gchar* _tmp12_;
- DetectedPhotoInformation* _tmp13_;
- DetectedPhotoInformation* _tmp14_;
- const gchar* _tmp15_;
-#line 111 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_return_if_fail (IS_GDK_SNIFFER (self));
-#line 111 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_return_if_fail (GDK_IS_PIXBUF_LOADER (pixbuf_loader));
-#line 112 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp0_ = gdk_pixbuf_loader_get_pixbuf (pixbuf_loader);
-#line 112 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 112 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- pixbuf = _tmp1_;
-#line 113 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp2_ = pixbuf;
-#line 113 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- if (_tmp2_ == NULL) {
-#line 114 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf);
-#line 114 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- return;
-#line 1250 "GdkSupport.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp3_ = self->priv->detected;
-#line 116 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp4_ = pixbuf;
-#line 116 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp3_->colorspace = gdk_pixbuf_get_colorspace (_tmp4_);
-#line 117 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp5_ = self->priv->detected;
-#line 117 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp6_ = pixbuf;
-#line 117 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp5_->channels = gdk_pixbuf_get_n_channels (_tmp6_);
-#line 118 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp7_ = self->priv->detected;
-#line 118 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp8_ = pixbuf;
-#line 118 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp7_->bits_per_channel = gdk_pixbuf_get_bits_per_sample (_tmp8_);
-#line 120 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp9_ = gdk_pixbuf_loader_get_format (pixbuf_loader);
-#line 120 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- format = _tmp9_;
-#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp10_ = self->priv->detected;
-#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp11_ = format;
-#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp12_ = gdk_pixbuf_format_get_name (_tmp11_);
-#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_free0 (_tmp10_->format_name);
-#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp10_->format_name = _tmp12_;
-#line 122 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp13_ = self->priv->detected;
-#line 122 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp14_ = self->priv->detected;
-#line 122 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp15_ = _tmp14_->format_name;
-#line 122 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _tmp13_->file_format = photo_file_format_from_pixbuf_name (_tmp15_);
-#line 124 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self->priv->area_prepared = TRUE;
-#line 111 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _g_object_unref0 (pixbuf);
-#line 1296 "GdkSupport.c"
-}
-
-
-static void
-gdk_sniffer_class_init (GdkSnifferClass * klass)
-{
-#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- gdk_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- ((PhotoFileSnifferClass *) klass)->finalize = gdk_sniffer_finalize;
-#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- g_type_class_add_private (klass, sizeof (GdkSnifferPrivate));
-#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) gdk_sniffer_real_sniff;
-#line 1311 "GdkSupport.c"
-}
-
-
-static void
-gdk_sniffer_instance_init (GdkSniffer * self)
-{
-#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self->priv = GDK_SNIFFER_GET_PRIVATE (self);
-#line 29 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self->priv->detected = NULL;
-#line 30 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self->priv->size_ready = FALSE;
-#line 31 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self->priv->area_prepared = FALSE;
-#line 1326 "GdkSupport.c"
-}
-
-
-static void
-gdk_sniffer_finalize (PhotoFileSniffer * obj)
-{
- GdkSniffer * self;
-#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GDK_SNIFFER, GdkSniffer);
-#line 29 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- _detected_photo_information_unref0 (self->priv->detected);
-#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala"
- PHOTO_FILE_SNIFFER_CLASS (gdk_sniffer_parent_class)->finalize (obj);
-#line 1340 "GdkSupport.c"
-}
-
-
-GType
-gdk_sniffer_get_type (void)
-{
- static volatile gsize gdk_sniffer_type_id__volatile = 0;
- if (g_once_init_enter (&gdk_sniffer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (GdkSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gdk_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GdkSniffer), 0, (GInstanceInitFunc) gdk_sniffer_instance_init, NULL };
- GType gdk_sniffer_type_id;
- gdk_sniffer_type_id = g_type_register_static (TYPE_PHOTO_FILE_SNIFFER, "GdkSniffer", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&gdk_sniffer_type_id__volatile, gdk_sniffer_type_id);
- }
- return gdk_sniffer_type_id__volatile;
-}
-
-
-
diff --git a/src/photos/GifSupport.vala b/src/photos/GifSupport.vala
new file mode 100644
index 0000000..bd6ef6a
--- /dev/null
+++ b/src/photos/GifSupport.vala
@@ -0,0 +1,173 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+namespace Photos {
+
+class GifFileFormatProperties : PhotoFileFormatProperties {
+ private static string[] KNOWN_EXTENSIONS = { "gif" };
+ private static string[] KNOWN_MIME_TYPES = { "image/gif" };
+
+ private static GifFileFormatProperties instance = null;
+
+ public static void init() {
+ instance = new GifFileFormatProperties();
+ }
+
+ public static GifFileFormatProperties get_instance() {
+ return instance;
+ }
+
+ public override PhotoFileFormat get_file_format() {
+ return PhotoFileFormat.PNG;
+ }
+
+ public override PhotoFileFormatFlags get_flags() {
+ return PhotoFileFormatFlags.NONE;
+ }
+
+ public override string get_user_visible_name() {
+ return _("GIF");
+ }
+
+ public override string get_default_extension() {
+ return KNOWN_EXTENSIONS[0];
+ }
+
+ public override string[] get_known_extensions() {
+ return KNOWN_EXTENSIONS;
+ }
+
+ public override string get_default_mime_type() {
+ return KNOWN_MIME_TYPES[0];
+ }
+
+ public override string[] get_mime_types() {
+ return KNOWN_MIME_TYPES;
+ }
+}
+
+public class GifSniffer : GdkSniffer {
+ private const uint8[] MAGIC_SEQUENCE = { (uint8)'G', (uint8)'I', (uint8)'F', (uint8)'8' };
+
+ public GifSniffer(File file, PhotoFileSniffer.Options options) {
+ base (file, options);
+ }
+
+ private static bool is_gif_file(File file) throws Error {
+ FileInputStream instream = file.read(null);
+
+ uint8[] file_lead_sequence = new uint8[MAGIC_SEQUENCE.length];
+
+ instream.read(file_lead_sequence, null);
+
+ return Posix.memcmp (file_lead_sequence, MAGIC_SEQUENCE, MAGIC_SEQUENCE.length) == 0;
+ }
+
+ public override DetectedPhotoInformation? sniff(out bool is_corrupted) throws Error {
+ // Rely on GdkSniffer to detect corruption
+ is_corrupted = false;
+
+ if (!is_gif_file(file))
+ return null;
+
+ DetectedPhotoInformation? detected = base.sniff(out is_corrupted);
+
+ if (detected == null)
+ return null;
+
+ return (detected.file_format == PhotoFileFormat.GIF) ? detected : null;
+ }
+}
+
+public class GifReader : GdkReader {
+ public GifReader(string filepath) {
+ base (filepath, PhotoFileFormat.PNG);
+ }
+
+ public override Gdk.Pixbuf scaled_read(Dimensions full, Dimensions scaled) throws Error {
+ Gdk.Pixbuf result = null;
+ /* if we encounter a situation where there are two orders of magnitude or more of
+ difference between the full image size and the scaled size, and if the full image
+ size has five or more decimal digits of precision, Gdk.Pixbuf.from_file_at_scale( ) can
+ fail due to what appear to be floating-point round-off issues. This isn't surprising,
+ since 32-bit floats only have 6-7 decimal digits of precision in their mantissa. In
+ this case, we prefetch the image at a larger scale and then downsample it to the
+ desired scale as a post-process step. This short-circuits Gdk.Pixbuf's buggy
+ scaling code. */
+ if (((full.width > 9999) || (full.height > 9999)) && ((scaled.width < 100) ||
+ (scaled.height < 100))) {
+ Dimensions prefetch_dimensions = full.get_scaled_by_constraint(1000,
+ ScaleConstraint.DIMENSIONS);
+
+ result = new Gdk.Pixbuf.from_file_at_scale(get_filepath(), prefetch_dimensions.width,
+ prefetch_dimensions.height, false);
+
+ result = result.scale_simple(scaled.width, scaled.height, Gdk.InterpType.HYPER);
+ } else {
+ result = new Gdk.Pixbuf.from_file_at_scale(get_filepath(), scaled.width,
+ scaled.height, false);
+ }
+
+ return result;
+ }
+}
+
+public class GifMetadataWriter : PhotoFileMetadataWriter {
+ public GifMetadataWriter(string filepath) {
+ base (filepath, PhotoFileFormat.GIF);
+ }
+
+ public override void write_metadata(PhotoMetadata metadata) throws Error {
+ metadata.write_to_file(get_file());
+ }
+}
+
+public class GifFileFormatDriver : PhotoFileFormatDriver {
+ private static GifFileFormatDriver instance = null;
+
+ public static void init() {
+ instance = new GifFileFormatDriver();
+ GifFileFormatProperties.init();
+ }
+
+ public static GifFileFormatDriver get_instance() {
+ return instance;
+ }
+
+ public override PhotoFileFormatProperties get_properties() {
+ return GifFileFormatProperties.get_instance();
+ }
+
+ public override PhotoFileReader create_reader(string filepath) {
+ return new GifReader(filepath);
+ }
+
+ public override bool can_write_image() {
+ return false;
+ }
+
+ public override bool can_write_metadata() {
+ return true;
+ }
+
+ public override PhotoFileWriter? create_writer(string filepath) {
+ return null;
+ }
+
+ public override PhotoFileMetadataWriter? create_metadata_writer(string filepath) {
+ return new GifMetadataWriter(filepath);
+ }
+
+ public override PhotoFileSniffer create_sniffer(File file, PhotoFileSniffer.Options options) {
+ return new GifSniffer(file, options);
+ }
+
+ public override PhotoMetadata create_metadata() {
+ return new PhotoMetadata();
+ }
+}
+
+}
diff --git a/src/photos/JfifSupport.c b/src/photos/JfifSupport.c
deleted file mode 100644
index e4e9217..0000000
--- a/src/photos/JfifSupport.c
+++ /dev/null
@@ -1,2250 +0,0 @@
-/* JfifSupport.c generated by valac 0.40.4, the Vala compiler
- * generated from JfifSupport.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <glib/gi18n-lib.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ())
-#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver))
-#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-
-typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver;
-typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass;
-typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties;
-typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass;
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-
-#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
-#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
-#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-
-typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
-typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
-#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
-#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
-#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
-#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-
-typedef struct _PhotoFileSniffer PhotoFileSniffer;
-typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
-
-#define TYPE_JFIF_FILE_FORMAT_DRIVER (jfif_file_format_driver_get_type ())
-#define JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver))
-#define JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass))
-#define IS_JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER))
-#define IS_JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER))
-#define JFIF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass))
-
-typedef struct _JfifFileFormatDriver JfifFileFormatDriver;
-typedef struct _JfifFileFormatDriverClass JfifFileFormatDriverClass;
-typedef struct _JfifFileFormatDriverPrivate JfifFileFormatDriverPrivate;
-#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL)))
-
-#define TYPE_JFIF_FILE_FORMAT_PROPERTIES (jfif_file_format_properties_get_type ())
-#define JFIF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties))
-#define JFIF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatPropertiesClass))
-#define IS_JFIF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES))
-#define IS_JFIF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_PROPERTIES))
-#define JFIF_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatPropertiesClass))
-
-typedef struct _JfifFileFormatProperties JfifFileFormatProperties;
-typedef struct _JfifFileFormatPropertiesClass JfifFileFormatPropertiesClass;
-
-#define TYPE_GDK_READER (gdk_reader_get_type ())
-#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader))
-#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass))
-#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER))
-#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER))
-#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass))
-
-typedef struct _GdkReader GdkReader;
-typedef struct _GdkReaderClass GdkReaderClass;
-
-#define TYPE_JFIF_READER (jfif_reader_get_type ())
-#define JFIF_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_READER, JfifReader))
-#define JFIF_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_READER, JfifReaderClass))
-#define IS_JFIF_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_READER))
-#define IS_JFIF_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_READER))
-#define JFIF_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_READER, JfifReaderClass))
-
-typedef struct _JfifReader JfifReader;
-typedef struct _JfifReaderClass JfifReaderClass;
-
-#define TYPE_JFIF_WRITER (jfif_writer_get_type ())
-#define JFIF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_WRITER, JfifWriter))
-#define JFIF_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_WRITER, JfifWriterClass))
-#define IS_JFIF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_WRITER))
-#define IS_JFIF_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_WRITER))
-#define JFIF_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_WRITER, JfifWriterClass))
-
-typedef struct _JfifWriter JfifWriter;
-typedef struct _JfifWriterClass JfifWriterClass;
-
-#define TYPE_JFIF_METADATA_WRITER (jfif_metadata_writer_get_type ())
-#define JFIF_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_METADATA_WRITER, JfifMetadataWriter))
-#define JFIF_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_METADATA_WRITER, JfifMetadataWriterClass))
-#define IS_JFIF_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_METADATA_WRITER))
-#define IS_JFIF_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_METADATA_WRITER))
-#define JFIF_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_METADATA_WRITER, JfifMetadataWriterClass))
-
-typedef struct _JfifMetadataWriter JfifMetadataWriter;
-typedef struct _JfifMetadataWriterClass JfifMetadataWriterClass;
-
-#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ())
-#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer))
-#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass))
-#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER))
-#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER))
-#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass))
-
-typedef struct _GdkSniffer GdkSniffer;
-typedef struct _GdkSnifferClass GdkSnifferClass;
-
-#define TYPE_JFIF_SNIFFER (jfif_sniffer_get_type ())
-#define JFIF_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_SNIFFER, JfifSniffer))
-#define JFIF_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_SNIFFER, JfifSnifferClass))
-#define IS_JFIF_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_SNIFFER))
-#define IS_JFIF_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_SNIFFER))
-#define JFIF_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_SNIFFER, JfifSnifferClass))
-
-typedef struct _JfifSniffer JfifSniffer;
-typedef struct _JfifSnifferClass JfifSnifferClass;
-typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ())
-typedef struct _JfifFileFormatPropertiesPrivate JfifFileFormatPropertiesPrivate;
-#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL)))
-typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate;
-
-#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
-#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
-#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
-#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
-#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-
-typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
-typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
-typedef struct _GdkSnifferPrivate GdkSnifferPrivate;
-typedef struct _JfifSnifferPrivate JfifSnifferPrivate;
-#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
-typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate;
-typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate;
-typedef struct _GdkReaderPrivate GdkReaderPrivate;
-typedef struct _JfifReaderPrivate JfifReaderPrivate;
-typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _JfifWriterPrivate JfifWriterPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate;
-typedef struct _JfifMetadataWriterPrivate JfifMetadataWriterPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define JPEG_TYPE_MARKER (jpeg_marker_get_type ())
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoFileFormatDriver {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatDriverPrivate * priv;
-};
-
-struct _PhotoFileFormatDriverClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatDriver *self);
- PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self);
- PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self);
- gboolean (*can_write_image) (PhotoFileFormatDriver* self);
- gboolean (*can_write_metadata) (PhotoFileFormatDriver* self);
- PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
-};
-
-struct _JfifFileFormatDriver {
- PhotoFileFormatDriver parent_instance;
- JfifFileFormatDriverPrivate * priv;
-};
-
-struct _JfifFileFormatDriverClass {
- PhotoFileFormatDriverClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000
-} PhotoFileFormatFlags;
-
-struct _PhotoFileFormatProperties {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatPropertiesPrivate * priv;
-};
-
-struct _PhotoFileFormatPropertiesClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatProperties *self);
- PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self);
- PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self);
- gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext);
- gchar* (*get_default_extension) (PhotoFileFormatProperties* self);
- gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self);
- gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self);
-};
-
-struct _JfifFileFormatProperties {
- PhotoFileFormatProperties parent_instance;
- JfifFileFormatPropertiesPrivate * priv;
-};
-
-struct _JfifFileFormatPropertiesClass {
- PhotoFileFormatPropertiesClass parent_class;
-};
-
-struct _PhotoFileSniffer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileSnifferPrivate * priv;
- GFile* file;
- PhotoFileSnifferOptions options;
- gboolean calc_md5;
-};
-
-struct _PhotoFileSnifferClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileSniffer *self);
- DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error);
-};
-
-struct _GdkSniffer {
- PhotoFileSniffer parent_instance;
- GdkSnifferPrivate * priv;
-};
-
-struct _GdkSnifferClass {
- PhotoFileSnifferClass parent_class;
-};
-
-struct _JfifSniffer {
- GdkSniffer parent_instance;
- JfifSnifferPrivate * priv;
-};
-
-struct _JfifSnifferClass {
- GdkSnifferClass parent_class;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _DetectedPhotoInformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DetectedPhotoInformationPrivate * priv;
- PhotoFileFormat file_format;
- PhotoMetadata* metadata;
- gchar* md5;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* format_name;
- Dimensions image_dim;
- GdkColorspace colorspace;
- gint channels;
- gint bits_per_channel;
-};
-
-struct _DetectedPhotoInformationClass {
- GTypeClass parent_class;
- void (*finalize) (DetectedPhotoInformation *self);
-};
-
-struct _PhotoFileAdapter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileAdapterPrivate * priv;
-};
-
-struct _PhotoFileAdapterClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileAdapter *self);
-};
-
-struct _PhotoFileReader {
- PhotoFileAdapter parent_instance;
- PhotoFileReaderPrivate * priv;
-};
-
-struct _PhotoFileReaderClass {
- PhotoFileAdapterClass parent_class;
- PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error);
-};
-
-struct _GdkReader {
- PhotoFileReader parent_instance;
- GdkReaderPrivate * priv;
-};
-
-struct _GdkReaderClass {
- PhotoFileReaderClass parent_class;
-};
-
-struct _JfifReader {
- GdkReader parent_instance;
- JfifReaderPrivate * priv;
-};
-
-struct _JfifReaderClass {
- GdkReaderClass parent_class;
-};
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _PhotoFileWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileWriterPrivate * priv;
-};
-
-struct _PhotoFileWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error);
-};
-
-struct _JfifWriter {
- PhotoFileWriter parent_instance;
- JfifWriterPrivate * priv;
-};
-
-struct _JfifWriterClass {
- PhotoFileWriterClass parent_class;
-};
-
-struct _PhotoFileMetadataWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileMetadataWriterPrivate * priv;
-};
-
-struct _PhotoFileMetadataWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error);
-};
-
-struct _JfifMetadataWriter {
- PhotoFileMetadataWriter parent_instance;
- JfifMetadataWriterPrivate * priv;
-};
-
-struct _JfifMetadataWriterClass {
- PhotoFileMetadataWriterClass parent_class;
-};
-
-typedef enum {
- JPEG_MARKER_INVALID = 0x00,
- JPEG_MARKER_SOI = 0xD8,
- JPEG_MARKER_EOI = 0xD9,
- JPEG_MARKER_APP0 = 0xE0,
- JPEG_MARKER_APP1 = 0xE1
-} JpegMarker;
-
-
-static gpointer jfif_file_format_driver_parent_class = NULL;
-static JfifFileFormatDriver* jfif_file_format_driver_instance;
-static JfifFileFormatDriver* jfif_file_format_driver_instance = NULL;
-static gpointer jfif_file_format_properties_parent_class = NULL;
-static gchar** jfif_file_format_properties_KNOWN_EXTENSIONS;
-static gint jfif_file_format_properties_KNOWN_EXTENSIONS_length1;
-static gchar** jfif_file_format_properties_KNOWN_EXTENSIONS = NULL;
-static gint jfif_file_format_properties_KNOWN_EXTENSIONS_length1 = 0;
-static gint _jfif_file_format_properties_KNOWN_EXTENSIONS_size_ = 0;
-static gchar** jfif_file_format_properties_KNOWN_MIME_TYPES;
-static gint jfif_file_format_properties_KNOWN_MIME_TYPES_length1;
-static gchar** jfif_file_format_properties_KNOWN_MIME_TYPES = NULL;
-static gint jfif_file_format_properties_KNOWN_MIME_TYPES_length1 = 0;
-static gint _jfif_file_format_properties_KNOWN_MIME_TYPES_size_ = 0;
-static JfifFileFormatProperties* jfif_file_format_properties_instance;
-static JfifFileFormatProperties* jfif_file_format_properties_instance = NULL;
-static gpointer jfif_sniffer_parent_class = NULL;
-static gpointer jfif_reader_parent_class = NULL;
-static gpointer jfif_writer_parent_class = NULL;
-static gpointer jfif_metadata_writer_parent_class = NULL;
-
-gpointer photo_file_format_driver_ref (gpointer instance);
-void photo_file_format_driver_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_driver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_driver (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_driver (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_driver (const GValue* value);
-GType photo_file_format_driver_get_type (void) G_GNUC_CONST;
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_properties (const GValue* value);
-GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-gpointer photo_file_sniffer_ref (gpointer instance);
-void photo_file_sniffer_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_sniffer (GValue* value,
- gpointer v_object);
-void value_take_photo_file_sniffer (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_sniffer (const GValue* value);
-GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
-GType jfif_file_format_driver_get_type (void) G_GNUC_CONST;
-void jfif_file_format_driver_init (void);
-JfifFileFormatDriver* jfif_file_format_driver_new (void);
-JfifFileFormatDriver* jfif_file_format_driver_construct (GType object_type);
-void jfif_file_format_properties_init (void);
-JfifFileFormatDriver* jfif_file_format_driver_get_instance (void);
-static PhotoFileFormatProperties* jfif_file_format_driver_real_get_properties (PhotoFileFormatDriver* base);
-GType jfif_file_format_properties_get_type (void) G_GNUC_CONST;
-JfifFileFormatProperties* jfif_file_format_properties_get_instance (void);
-static PhotoFileReader* jfif_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath);
-JfifReader* jfif_reader_new (const gchar* filepath);
-JfifReader* jfif_reader_construct (GType object_type,
- const gchar* filepath);
-GType gdk_reader_get_type (void) G_GNUC_CONST;
-GType jfif_reader_get_type (void) G_GNUC_CONST;
-static PhotoMetadata* jfif_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base);
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-static gboolean jfif_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base);
-static gboolean jfif_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base);
-static PhotoFileWriter* jfif_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-JfifWriter* jfif_writer_new (const gchar* filepath);
-JfifWriter* jfif_writer_construct (GType object_type,
- const gchar* filepath);
-GType jfif_writer_get_type (void) G_GNUC_CONST;
-static PhotoFileMetadataWriter* jfif_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-JfifMetadataWriter* jfif_metadata_writer_new (const gchar* filepath);
-JfifMetadataWriter* jfif_metadata_writer_construct (GType object_type,
- const gchar* filepath);
-GType jfif_metadata_writer_get_type (void) G_GNUC_CONST;
-static PhotoFileSniffer* jfif_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options);
-JfifSniffer* jfif_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options);
-JfifSniffer* jfif_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-GType gdk_sniffer_get_type (void) G_GNUC_CONST;
-GType jfif_sniffer_get_type (void) G_GNUC_CONST;
-PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type);
-static void jfif_file_format_driver_finalize (PhotoFileFormatDriver * obj);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType photo_file_format_flags_get_type (void) G_GNUC_CONST;
-JfifFileFormatProperties* jfif_file_format_properties_new (void);
-JfifFileFormatProperties* jfif_file_format_properties_construct (GType object_type);
-static PhotoFileFormat jfif_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base);
-static PhotoFileFormatFlags jfif_file_format_properties_real_get_flags (PhotoFileFormatProperties* base);
-static gchar* jfif_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base);
-static gchar* jfif_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base);
-static gchar** jfif_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup6 (gchar** self,
- int length);
-static gchar* jfif_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base);
-static gchar** jfif_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup7 (gchar** self,
- int length);
-PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type);
-static void jfif_file_format_properties_finalize (PhotoFileFormatProperties * obj);
-gpointer detected_photo_information_ref (gpointer instance);
-void detected_photo_information_unref (gpointer instance);
-GParamSpec* param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_detected_photo_information (GValue* value,
- gpointer v_object);
-void value_take_detected_photo_information (GValue* value,
- gpointer v_object);
-gpointer value_get_detected_photo_information (const GValue* value);
-GType detected_photo_information_get_type (void) G_GNUC_CONST;
-GdkSniffer* gdk_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-static DetectedPhotoInformation* jfif_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error);
-gboolean jpeg_is_jpeg (GFile* file,
- GError** error);
-DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self,
- gboolean* is_corrupted,
- GError** error);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GdkReader* gdk_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-PhotoFileWriter* photo_file_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static void jfif_writer_real_write (PhotoFileWriter* base,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error);
-gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
-gchar* jpeg_quality_get_pct_text (JpegQuality self);
-PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static void jfif_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base,
- PhotoMetadata* metadata,
- GError** error);
-void photo_metadata_write_to_file (PhotoMetadata* self,
- GFile* file,
- GError** error);
-GFile* photo_file_adapter_get_file (PhotoFileAdapter* self);
-#define JPEG_MARKER_PREFIX ((guint8) 0xFF)
-GType jpeg_marker_get_type (void) G_GNUC_CONST;
-guint8 jpeg_marker_get_byte (JpegMarker self);
-gint jpeg_quality_get_pct (JpegQuality self);
-JpegQuality* jpeg_quality_get_all (int* result_length1);
-gchar* jpeg_quality_to_string (JpegQuality self);
-gboolean jpeg_is_jpeg_stream (GInputStream* ins,
- GError** error);
-gint jpeg_read_marker (GInputStream* fins,
- JpegMarker* marker,
- GError** error);
-gboolean jpeg_is_jpeg_bytes (GBytes* bytes,
- GError** error);
-
-
-void
-jfif_file_format_driver_init (void)
-{
- JfifFileFormatDriver* _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_file_format_driver_new ();
-#line 11 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _photo_file_format_driver_unref0 (jfif_file_format_driver_instance);
-#line 11 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_driver_instance = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_properties_init ();
-#line 695 "JfifSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_driver_ref0 (gpointer self)
-{
-#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self ? photo_file_format_driver_ref (self) : NULL;
-#line 704 "JfifSupport.c"
-}
-
-
-JfifFileFormatDriver*
-jfif_file_format_driver_get_instance (void)
-{
- JfifFileFormatDriver* result = NULL;
- JfifFileFormatDriver* _tmp0_;
- JfifFileFormatDriver* _tmp1_;
-#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_file_format_driver_instance;
-#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_);
-#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp1_;
-#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 722 "JfifSupport.c"
-}
-
-
-static PhotoFileFormatProperties*
-jfif_file_format_driver_real_get_properties (PhotoFileFormatDriver* base)
-{
- JfifFileFormatDriver * self;
- PhotoFileFormatProperties* result = NULL;
- JfifFileFormatProperties* _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 20 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_file_format_properties_get_instance ();
-#line 20 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties);
-#line 20 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 740 "JfifSupport.c"
-}
-
-
-static PhotoFileReader*
-jfif_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- JfifFileFormatDriver * self;
- PhotoFileReader* result = NULL;
- JfifReader* _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 23 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 24 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_reader_new (filepath);
-#line 24 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader);
-#line 24 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 761 "JfifSupport.c"
-}
-
-
-static PhotoMetadata*
-jfif_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base)
-{
- JfifFileFormatDriver * self;
- PhotoMetadata* result = NULL;
- PhotoMetadata* _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 28 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = photo_metadata_new ();
-#line 28 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 779 "JfifSupport.c"
-}
-
-
-static gboolean
-jfif_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base)
-{
- JfifFileFormatDriver * self;
- gboolean result = FALSE;
-#line 31 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 32 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = TRUE;
-#line 32 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 794 "JfifSupport.c"
-}
-
-
-static gboolean
-jfif_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base)
-{
- JfifFileFormatDriver * self;
- gboolean result = FALSE;
-#line 35 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 36 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = TRUE;
-#line 36 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 809 "JfifSupport.c"
-}
-
-
-static PhotoFileWriter*
-jfif_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- JfifFileFormatDriver * self;
- PhotoFileWriter* result = NULL;
- JfifWriter* _tmp0_;
-#line 39 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 39 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 40 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_writer_new (filepath);
-#line 40 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_WRITER, PhotoFileWriter);
-#line 40 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 830 "JfifSupport.c"
-}
-
-
-static PhotoFileMetadataWriter*
-jfif_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- JfifFileFormatDriver * self;
- PhotoFileMetadataWriter* result = NULL;
- JfifMetadataWriter* _tmp0_;
-#line 43 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 43 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 44 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_metadata_writer_new (filepath);
-#line 44 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter);
-#line 44 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 851 "JfifSupport.c"
-}
-
-
-static PhotoFileSniffer*
-jfif_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- JfifFileFormatDriver * self;
- PhotoFileSniffer* result = NULL;
- JfifSniffer* _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 47 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 48 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_sniffer_new (file, options);
-#line 48 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer);
-#line 48 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 873 "JfifSupport.c"
-}
-
-
-JfifFileFormatDriver*
-jfif_file_format_driver_construct (GType object_type)
-{
- JfifFileFormatDriver* self = NULL;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = (JfifFileFormatDriver*) photo_file_format_driver_construct (object_type);
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self;
-#line 885 "JfifSupport.c"
-}
-
-
-JfifFileFormatDriver*
-jfif_file_format_driver_new (void)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return jfif_file_format_driver_construct (TYPE_JFIF_FILE_FORMAT_DRIVER);
-#line 894 "JfifSupport.c"
-}
-
-
-static void
-jfif_file_format_driver_class_init (JfifFileFormatDriverClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_driver_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->finalize = jfif_file_format_driver_finalize;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) jfif_file_format_driver_real_get_properties;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) jfif_file_format_driver_real_create_reader;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) jfif_file_format_driver_real_create_metadata;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) jfif_file_format_driver_real_can_write_image;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) jfif_file_format_driver_real_can_write_metadata;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) jfif_file_format_driver_real_create_writer;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) jfif_file_format_driver_real_create_metadata_writer;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) jfif_file_format_driver_real_create_sniffer;
-#line 921 "JfifSupport.c"
-}
-
-
-static void
-jfif_file_format_driver_instance_init (JfifFileFormatDriver * self)
-{
-}
-
-
-static void
-jfif_file_format_driver_finalize (PhotoFileFormatDriver * obj)
-{
- JfifFileFormatDriver * self;
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver);
-#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- PHOTO_FILE_FORMAT_DRIVER_CLASS (jfif_file_format_driver_parent_class)->finalize (obj);
-#line 939 "JfifSupport.c"
-}
-
-
-GType
-jfif_file_format_driver_get_type (void)
-{
- static volatile gsize jfif_file_format_driver_type_id__volatile = 0;
- if (g_once_init_enter (&jfif_file_format_driver_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (JfifFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifFileFormatDriver), 0, (GInstanceInitFunc) jfif_file_format_driver_instance_init, NULL };
- GType jfif_file_format_driver_type_id;
- jfif_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "JfifFileFormatDriver", &g_define_type_info, 0);
- g_once_init_leave (&jfif_file_format_driver_type_id__volatile, jfif_file_format_driver_type_id);
- }
- return jfif_file_format_driver_type_id__volatile;
-}
-
-
-void
-jfif_file_format_properties_init (void)
-{
- JfifFileFormatProperties* _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_file_format_properties_new ();
-#line 64 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _photo_file_format_properties_unref0 (jfif_file_format_properties_instance);
-#line 64 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_properties_instance = _tmp0_;
-#line 967 "JfifSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_properties_ref0 (gpointer self)
-{
-#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self ? photo_file_format_properties_ref (self) : NULL;
-#line 976 "JfifSupport.c"
-}
-
-
-JfifFileFormatProperties*
-jfif_file_format_properties_get_instance (void)
-{
- JfifFileFormatProperties* result = NULL;
- JfifFileFormatProperties* _tmp0_;
- JfifFileFormatProperties* _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_file_format_properties_instance;
-#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_);
-#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 994 "JfifSupport.c"
-}
-
-
-static PhotoFileFormat
-jfif_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base)
-{
- JfifFileFormatProperties * self;
- PhotoFileFormat result = 0;
-#line 71 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties);
-#line 72 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = PHOTO_FILE_FORMAT_JFIF;
-#line 72 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1009 "JfifSupport.c"
-}
-
-
-static PhotoFileFormatFlags
-jfif_file_format_properties_real_get_flags (PhotoFileFormatProperties* base)
-{
- JfifFileFormatProperties * self;
- PhotoFileFormatFlags result = 0;
-#line 75 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties);
-#line 76 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = PHOTO_FILE_FORMAT_FLAGS_NONE;
-#line 76 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1024 "JfifSupport.c"
-}
-
-
-static gchar*
-jfif_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base)
-{
- JfifFileFormatProperties * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 79 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties);
-#line 80 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_strdup ("jpg");
-#line 80 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1042 "JfifSupport.c"
-}
-
-
-static gchar*
-jfif_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base)
-{
- JfifFileFormatProperties * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 83 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties);
-#line 84 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_strdup (_ ("JPEG"));
-#line 84 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp0_;
-#line 84 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1060 "JfifSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup6 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- for (i = 0; i < length; i++) {
-#line 1074 "JfifSupport.c"
- gchar* _tmp0_;
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result[i] = _tmp0_;
-#line 1080 "JfifSupport.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1084 "JfifSupport.c"
-}
-
-
-static gchar**
-jfif_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- JfifFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 87 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties);
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_file_format_properties_KNOWN_EXTENSIONS;
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0__length1 = jfif_file_format_properties_KNOWN_EXTENSIONS_length1;
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup6 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2_ = _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (result_length1) {
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 1118 "JfifSupport.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp2_;
-#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1124 "JfifSupport.c"
-}
-
-
-static gchar*
-jfif_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base)
-{
- JfifFileFormatProperties * self;
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 91 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties);
-#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_file_format_properties_KNOWN_MIME_TYPES;
-#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0__length1 = jfif_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = _tmp0_[0];
-#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp2_;
-#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1151 "JfifSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup7 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- for (i = 0; i < length; i++) {
-#line 1165 "JfifSupport.c"
- gchar* _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result[i] = _tmp0_;
-#line 1171 "JfifSupport.c"
- }
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1175 "JfifSupport.c"
-}
-
-
-static gchar**
-jfif_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- JfifFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 95 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties);
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jfif_file_format_properties_KNOWN_MIME_TYPES;
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0__length1 = jfif_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup7 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2_ = _tmp1_;
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (result_length1) {
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 1209 "JfifSupport.c"
- }
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp2_;
-#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1215 "JfifSupport.c"
-}
-
-
-JfifFileFormatProperties*
-jfif_file_format_properties_construct (GType object_type)
-{
- JfifFileFormatProperties* self = NULL;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = (JfifFileFormatProperties*) photo_file_format_properties_construct (object_type);
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self;
-#line 1227 "JfifSupport.c"
-}
-
-
-JfifFileFormatProperties*
-jfif_file_format_properties_new (void)
-{
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return jfif_file_format_properties_construct (TYPE_JFIF_FILE_FORMAT_PROPERTIES);
-#line 1236 "JfifSupport.c"
-}
-
-
-static void
-jfif_file_format_properties_class_init (JfifFileFormatPropertiesClass * klass)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar** _tmp4_;
- gchar* _tmp5_;
- gchar** _tmp6_;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_properties_parent_class = g_type_class_peek_parent (klass);
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->finalize = jfif_file_format_properties_finalize;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_file_format;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_flags;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_default_extension;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_user_visible_name;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) jfif_file_format_properties_real_get_known_extensions;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_default_mime_type;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) jfif_file_format_properties_real_get_mime_types;
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_strdup ("jpg");
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = g_strdup ("jpeg");
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2_ = g_strdup ("jpe");
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp3_ = g_strdup ("thm");
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp4_ = g_new0 (gchar*, 4 + 1);
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp4_[0] = _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp4_[1] = _tmp1_;
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp4_[2] = _tmp2_;
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp4_[3] = _tmp3_;
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_properties_KNOWN_EXTENSIONS = _tmp4_;
-#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_properties_KNOWN_EXTENSIONS_length1 = 4;
-#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp5_ = g_strdup ("image/jpeg");
-#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp6_ = g_new0 (gchar*, 1 + 1);
-#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp6_[0] = _tmp5_;
-#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_properties_KNOWN_MIME_TYPES = _tmp6_;
-#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_file_format_properties_KNOWN_MIME_TYPES_length1 = 1;
-#line 1300 "JfifSupport.c"
-}
-
-
-static void
-jfif_file_format_properties_instance_init (JfifFileFormatProperties * self)
-{
-}
-
-
-static void
-jfif_file_format_properties_finalize (PhotoFileFormatProperties * obj)
-{
- JfifFileFormatProperties * self;
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties);
-#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- PHOTO_FILE_FORMAT_PROPERTIES_CLASS (jfif_file_format_properties_parent_class)->finalize (obj);
-#line 1318 "JfifSupport.c"
-}
-
-
-GType
-jfif_file_format_properties_get_type (void)
-{
- static volatile gsize jfif_file_format_properties_type_id__volatile = 0;
- if (g_once_init_enter (&jfif_file_format_properties_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (JfifFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifFileFormatProperties), 0, (GInstanceInitFunc) jfif_file_format_properties_instance_init, NULL };
- GType jfif_file_format_properties_type_id;
- jfif_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "JfifFileFormatProperties", &g_define_type_info, 0);
- g_once_init_leave (&jfif_file_format_properties_type_id__volatile, jfif_file_format_properties_type_id);
- }
- return jfif_file_format_properties_type_id__volatile;
-}
-
-
-JfifSniffer*
-jfif_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- JfifSniffer* self = NULL;
-#line 101 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 102 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = (JfifSniffer*) gdk_sniffer_construct (object_type, file, options);
-#line 101 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self;
-#line 1348 "JfifSupport.c"
-}
-
-
-JfifSniffer*
-jfif_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options)
-{
-#line 101 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return jfif_sniffer_construct (TYPE_JFIF_SNIFFER, file, options);
-#line 1358 "JfifSupport.c"
-}
-
-
-static gpointer
-_detected_photo_information_ref0 (gpointer self)
-{
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self ? detected_photo_information_ref (self) : NULL;
-#line 1367 "JfifSupport.c"
-}
-
-
-static DetectedPhotoInformation*
-jfif_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error)
-{
- JfifSniffer * self;
- gboolean _vala_is_corrupted = FALSE;
- DetectedPhotoInformation* result = NULL;
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_;
- DetectedPhotoInformation* detected = NULL;
- gboolean _tmp2_ = FALSE;
- DetectedPhotoInformation* _tmp3_;
- DetectedPhotoInformation* _tmp4_;
- DetectedPhotoInformation* _tmp5_ = NULL;
- DetectedPhotoInformation* _tmp6_;
- PhotoFileFormat _tmp7_;
- DetectedPhotoInformation* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 105 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_SNIFFER, JfifSniffer);
-#line 107 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _vala_is_corrupted = FALSE;
-#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = jpeg_is_jpeg (_tmp1_, &_inner_error_);
-#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return NULL;
-#line 1404 "JfifSupport.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (!_tmp0_) {
-#line 110 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = NULL;
-#line 110 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (is_corrupted) {
-#line 110 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1414 "JfifSupport.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1418 "JfifSupport.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp3_ = PHOTO_FILE_SNIFFER_CLASS (jfif_sniffer_parent_class)->sniff (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_GDK_SNIFFER, GdkSniffer), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer), &_tmp2_, &_inner_error_);
-#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _vala_is_corrupted = _tmp2_;
-#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- detected = _tmp3_;
-#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return NULL;
-#line 1432 "JfifSupport.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp4_ = detected;
-#line 113 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (_tmp4_ == NULL) {
-#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = NULL;
-#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (is_corrupted) {
-#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1446 "JfifSupport.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1450 "JfifSupport.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp6_ = detected;
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp7_ = _tmp6_->file_format;
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (_tmp7_ == PHOTO_FILE_FORMAT_JFIF) {
-#line 1458 "JfifSupport.c"
- DetectedPhotoInformation* _tmp8_;
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp8_ = detected;
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp5_ = _tmp8_;
-#line 1464 "JfifSupport.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp5_ = NULL;
-#line 1468 "JfifSupport.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp9_ = _detected_photo_information_ref0 (_tmp5_);
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp9_;
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (is_corrupted) {
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1480 "JfifSupport.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1484 "JfifSupport.c"
-}
-
-
-static void
-jfif_sniffer_class_init (JfifSnifferClass * klass)
-{
-#line 100 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 100 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) jfif_sniffer_real_sniff;
-#line 1495 "JfifSupport.c"
-}
-
-
-static void
-jfif_sniffer_instance_init (JfifSniffer * self)
-{
-}
-
-
-GType
-jfif_sniffer_get_type (void)
-{
- static volatile gsize jfif_sniffer_type_id__volatile = 0;
- if (g_once_init_enter (&jfif_sniffer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (JfifSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifSniffer), 0, (GInstanceInitFunc) jfif_sniffer_instance_init, NULL };
- GType jfif_sniffer_type_id;
- jfif_sniffer_type_id = g_type_register_static (TYPE_GDK_SNIFFER, "JfifSniffer", &g_define_type_info, 0);
- g_once_init_leave (&jfif_sniffer_type_id__volatile, jfif_sniffer_type_id);
- }
- return jfif_sniffer_type_id__volatile;
-}
-
-
-JfifReader*
-jfif_reader_construct (GType object_type,
- const gchar* filepath)
-{
- JfifReader* self = NULL;
-#line 121 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 122 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = (JfifReader*) gdk_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_JFIF);
-#line 121 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self;
-#line 1530 "JfifSupport.c"
-}
-
-
-JfifReader*
-jfif_reader_new (const gchar* filepath)
-{
-#line 121 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return jfif_reader_construct (TYPE_JFIF_READER, filepath);
-#line 1539 "JfifSupport.c"
-}
-
-
-static void
-jfif_reader_class_init (JfifReaderClass * klass)
-{
-#line 120 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_reader_parent_class = g_type_class_peek_parent (klass);
-#line 1548 "JfifSupport.c"
-}
-
-
-static void
-jfif_reader_instance_init (JfifReader * self)
-{
-}
-
-
-GType
-jfif_reader_get_type (void)
-{
- static volatile gsize jfif_reader_type_id__volatile = 0;
- if (g_once_init_enter (&jfif_reader_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (JfifReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifReader), 0, (GInstanceInitFunc) jfif_reader_instance_init, NULL };
- GType jfif_reader_type_id;
- jfif_reader_type_id = g_type_register_static (TYPE_GDK_READER, "JfifReader", &g_define_type_info, 0);
- g_once_init_leave (&jfif_reader_type_id__volatile, jfif_reader_type_id);
- }
- return jfif_reader_type_id__volatile;
-}
-
-
-JfifWriter*
-jfif_writer_construct (GType object_type,
- const gchar* filepath)
-{
- JfifWriter* self = NULL;
-#line 127 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 128 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = (JfifWriter*) photo_file_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_JFIF);
-#line 127 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self;
-#line 1583 "JfifSupport.c"
-}
-
-
-JfifWriter*
-jfif_writer_new (const gchar* filepath)
-{
-#line 127 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return jfif_writer_construct (TYPE_JFIF_WRITER, filepath);
-#line 1592 "JfifSupport.c"
-}
-
-
-static void
-jfif_writer_real_write (PhotoFileWriter* base,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error)
-{
- JfifWriter * self;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 131 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_WRITER, JfifWriter);
-#line 131 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = _tmp0_;
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2_ = jpeg_quality_get_pct_text (quality);
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp3_ = _tmp2_;
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- gdk_pixbuf_save (pixbuf, _tmp1_, "jpeg", &_inner_error_, "quality", _tmp3_, NULL);
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_free0 (_tmp3_);
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_free0 (_tmp1_);
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return;
-#line 1632 "JfifSupport.c"
- }
-}
-
-
-static void
-jfif_writer_class_init (JfifWriterClass * klass)
-{
-#line 126 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_writer_parent_class = g_type_class_peek_parent (klass);
-#line 126 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) jfif_writer_real_write;
-#line 1644 "JfifSupport.c"
-}
-
-
-static void
-jfif_writer_instance_init (JfifWriter * self)
-{
-}
-
-
-GType
-jfif_writer_get_type (void)
-{
- static volatile gsize jfif_writer_type_id__volatile = 0;
- if (g_once_init_enter (&jfif_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (JfifWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifWriter), 0, (GInstanceInitFunc) jfif_writer_instance_init, NULL };
- GType jfif_writer_type_id;
- jfif_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_WRITER, "JfifWriter", &g_define_type_info, 0);
- g_once_init_leave (&jfif_writer_type_id__volatile, jfif_writer_type_id);
- }
- return jfif_writer_type_id__volatile;
-}
-
-
-JfifMetadataWriter*
-jfif_metadata_writer_construct (GType object_type,
- const gchar* filepath)
-{
- JfifMetadataWriter* self = NULL;
-#line 137 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 138 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = (JfifMetadataWriter*) photo_file_metadata_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_JFIF);
-#line 137 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return self;
-#line 1679 "JfifSupport.c"
-}
-
-
-JfifMetadataWriter*
-jfif_metadata_writer_new (const gchar* filepath)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return jfif_metadata_writer_construct (TYPE_JFIF_METADATA_WRITER, filepath);
-#line 1688 "JfifSupport.c"
-}
-
-
-static void
-jfif_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base,
- PhotoMetadata* metadata,
- GError** error)
-{
- JfifMetadataWriter * self;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 141 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_METADATA_WRITER, JfifMetadataWriter);
-#line 141 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_if_fail (IS_PHOTO_METADATA (metadata));
-#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = _tmp0_;
-#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- photo_metadata_write_to_file (metadata, _tmp1_, &_inner_error_);
-#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (_tmp1_);
-#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return;
-#line 1719 "JfifSupport.c"
- }
-}
-
-
-static void
-jfif_metadata_writer_class_init (JfifMetadataWriterClass * klass)
-{
-#line 136 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- jfif_metadata_writer_parent_class = g_type_class_peek_parent (klass);
-#line 136 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) jfif_metadata_writer_real_write_metadata;
-#line 1731 "JfifSupport.c"
-}
-
-
-static void
-jfif_metadata_writer_instance_init (JfifMetadataWriter * self)
-{
-}
-
-
-GType
-jfif_metadata_writer_get_type (void)
-{
- static volatile gsize jfif_metadata_writer_type_id__volatile = 0;
- if (g_once_init_enter (&jfif_metadata_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (JfifMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifMetadataWriter), 0, (GInstanceInitFunc) jfif_metadata_writer_instance_init, NULL };
- GType jfif_metadata_writer_type_id;
- jfif_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_METADATA_WRITER, "JfifMetadataWriter", &g_define_type_info, 0);
- g_once_init_leave (&jfif_metadata_writer_type_id__volatile, jfif_metadata_writer_type_id);
- }
- return jfif_metadata_writer_type_id__volatile;
-}
-
-
-guint8
-jpeg_marker_get_byte (JpegMarker self)
-{
- guint8 result = 0U;
-#line 160 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = (guint8) self;
-#line 160 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1763 "JfifSupport.c"
-}
-
-
-GType
-jpeg_marker_get_type (void)
-{
- static volatile gsize jpeg_marker_type_id__volatile = 0;
- if (g_once_init_enter (&jpeg_marker_type_id__volatile)) {
- static const GEnumValue values[] = {{JPEG_MARKER_INVALID, "JPEG_MARKER_INVALID", "invalid"}, {JPEG_MARKER_SOI, "JPEG_MARKER_SOI", "soi"}, {JPEG_MARKER_EOI, "JPEG_MARKER_EOI", "eoi"}, {JPEG_MARKER_APP0, "JPEG_MARKER_APP0", "app0"}, {JPEG_MARKER_APP1, "JPEG_MARKER_APP1", "app1"}, {0, NULL, NULL}};
- GType jpeg_marker_type_id;
- jpeg_marker_type_id = g_enum_register_static ("JpegMarker", values);
- g_once_init_leave (&jpeg_marker_type_id__volatile, jpeg_marker_type_id);
- }
- return jpeg_marker_type_id__volatile;
-}
-
-
-gint
-jpeg_quality_get_pct (JpegQuality self)
-{
- gint result = 0;
-#line 171 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = (gint) self;
-#line 171 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1789 "JfifSupport.c"
-}
-
-
-gchar*
-jpeg_quality_get_pct_text (JpegQuality self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 175 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_strdup_printf ("%d", (gint) self);
-#line 175 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp0_;
-#line 175 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1804 "JfifSupport.c"
-}
-
-
-JpegQuality*
-jpeg_quality_get_all (int* result_length1)
-{
- JpegQuality* result = NULL;
- JpegQuality* _tmp0_;
- JpegQuality* _tmp1_;
- gint _tmp1__length1;
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_new0 (JpegQuality, 4);
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_[0] = JPEG_QUALITY_LOW;
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_[1] = JPEG_QUALITY_MEDIUM;
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_[2] = JPEG_QUALITY_HIGH;
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_[3] = JPEG_QUALITY_MAXIMUM;
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = _tmp0_;
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1__length1 = 4;
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (result_length1) {
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *result_length1 = _tmp1__length1;
-#line 1833 "JfifSupport.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp1_;
-#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1839 "JfifSupport.c"
-}
-
-
-gchar*
-jpeg_quality_to_string (JpegQuality self)
-{
- gchar* result = NULL;
-#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- switch (self) {
-#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- case JPEG_QUALITY_LOW:
-#line 1851 "JfifSupport.c"
- {
- gchar* _tmp0_;
-#line 185 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_strdup_printf (_ ("Low (%d%%)"), (gint) self);
-#line 185 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp0_;
-#line 185 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1860 "JfifSupport.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- case JPEG_QUALITY_MEDIUM:
-#line 1864 "JfifSupport.c"
- {
- gchar* _tmp1_;
-#line 188 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = g_strdup_printf (_ ("Medium (%d%%)"), (gint) self);
-#line 188 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp1_;
-#line 188 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1873 "JfifSupport.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- case JPEG_QUALITY_HIGH:
-#line 1877 "JfifSupport.c"
- {
- gchar* _tmp2_;
-#line 191 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2_ = g_strdup_printf (_ ("High (%d%%)"), (gint) self);
-#line 191 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp2_;
-#line 191 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1886 "JfifSupport.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- case JPEG_QUALITY_MAXIMUM:
-#line 1890 "JfifSupport.c"
- {
- gchar* _tmp3_;
-#line 194 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp3_ = g_strdup_printf (_ ("Maximum (%d%%)"), (gint) self);
-#line 194 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp3_;
-#line 194 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1899 "JfifSupport.c"
- }
- default:
-#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- break;
-#line 1904 "JfifSupport.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_warn_if_reached ();
-#line 199 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = NULL;
-#line 199 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1912 "JfifSupport.c"
-}
-
-
-GType
-jpeg_quality_get_type (void)
-{
- static volatile gsize jpeg_quality_type_id__volatile = 0;
- if (g_once_init_enter (&jpeg_quality_type_id__volatile)) {
- static const GEnumValue values[] = {{JPEG_QUALITY_LOW, "JPEG_QUALITY_LOW", "low"}, {JPEG_QUALITY_MEDIUM, "JPEG_QUALITY_MEDIUM", "medium"}, {JPEG_QUALITY_HIGH, "JPEG_QUALITY_HIGH", "high"}, {JPEG_QUALITY_MAXIMUM, "JPEG_QUALITY_MAXIMUM", "maximum"}, {0, NULL, NULL}};
- GType jpeg_quality_type_id;
- jpeg_quality_type_id = g_enum_register_static ("JpegQuality", values);
- g_once_init_leave (&jpeg_quality_type_id__volatile, jpeg_quality_type_id);
- }
- return jpeg_quality_type_id__volatile;
-}
-
-
-gboolean
-jpeg_is_jpeg (GFile* file,
- GError** error)
-{
- gboolean result = FALSE;
- GFileInputStream* fins = NULL;
- GFileInputStream* _tmp0_;
- gboolean _tmp2_ = FALSE;
- GFileInputStream* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 203 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_file_read (file, NULL, &_inner_error_);
-#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- fins = _tmp0_;
-#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1948 "JfifSupport.c"
- gboolean _tmp1_ = FALSE;
-#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return _tmp1_;
-#line 1954 "JfifSupport.c"
- }
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp3_ = fins;
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2_ = jpeg_is_jpeg_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_input_stream_get_type (), GInputStream), &_inner_error_);
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1962 "JfifSupport.c"
- gboolean _tmp4_ = FALSE;
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (fins);
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return _tmp4_;
-#line 1970 "JfifSupport.c"
- }
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp2_;
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (fins);
-#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 1978 "JfifSupport.c"
-}
-
-
-gboolean
-jpeg_is_jpeg_stream (GInputStream* ins,
- GError** error)
-{
- gboolean result = FALSE;
- JpegMarker marker = 0;
- gint segment_length = 0;
- JpegMarker _tmp0_ = 0;
- gint _tmp1_;
- gboolean _tmp3_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 208 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (G_IS_INPUT_STREAM (ins), FALSE);
-#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = jpeg_read_marker (ins, &_tmp0_, &_inner_error_);
-#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- marker = _tmp0_;
-#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- segment_length = _tmp1_;
-#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2003 "JfifSupport.c"
- gboolean _tmp2_ = FALSE;
-#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return _tmp2_;
-#line 2009 "JfifSupport.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (marker == JPEG_MARKER_SOI) {
-#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp3_ = segment_length == 0;
-#line 2015 "JfifSupport.c"
- } else {
-#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp3_ = FALSE;
-#line 2019 "JfifSupport.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp3_;
-#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 2025 "JfifSupport.c"
-}
-
-
-gboolean
-jpeg_is_jpeg_bytes (GBytes* bytes,
- GError** error)
-{
- gboolean result = FALSE;
- GMemoryInputStream* mins = NULL;
- GMemoryInputStream* _tmp0_;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 216 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (bytes != NULL, FALSE);
-#line 217 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (bytes);
-#line 217 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- mins = _tmp0_;
-#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = jpeg_is_jpeg_stream (G_TYPE_CHECK_INSTANCE_CAST (mins, g_input_stream_get_type (), GInputStream), &_inner_error_);
-#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2048 "JfifSupport.c"
- gboolean _tmp2_ = FALSE;
-#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (mins);
-#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return _tmp2_;
-#line 2056 "JfifSupport.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp1_;
-#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (mins);
-#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 2064 "JfifSupport.c"
-}
-
-
-gint
-jpeg_read_marker (GInputStream* fins,
- JpegMarker* marker,
- GError** error)
-{
- JpegMarker _vala_marker = 0;
- gint result = 0;
- GDataInputStream* dins = NULL;
- GDataInputStream* _tmp0_;
- GDataInputStream* _tmp1_;
- guint8 _tmp2_ = 0U;
- GDataInputStream* _tmp3_;
- guint8 _tmp5_ = 0U;
- GDataInputStream* _tmp6_;
- gboolean _tmp8_ = FALSE;
- JpegMarker _tmp9_;
- guint16 length = 0U;
- GDataInputStream* _tmp11_;
- gboolean _tmp13_ = FALSE;
- guint16 _tmp14_;
- guint16 _tmp16_;
- GError * _inner_error_ = NULL;
-#line 222 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_return_val_if_fail (G_IS_INPUT_STREAM (fins), 0);
-#line 223 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _vala_marker = JPEG_MARKER_INVALID;
-#line 225 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp0_ = g_data_input_stream_new (fins);
-#line 225 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- dins = _tmp0_;
-#line 226 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp1_ = dins;
-#line 226 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_data_input_stream_set_byte_order (_tmp1_, G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN);
-#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp3_ = dins;
-#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp2_ = g_data_input_stream_read_byte (_tmp3_, NULL, &_inner_error_);
-#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2108 "JfifSupport.c"
- gint _tmp4_ = 0;
-#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (dins);
-#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return _tmp4_;
-#line 2116 "JfifSupport.c"
- }
-#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (_tmp2_ != JPEG_MARKER_PREFIX) {
-#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = -1;
-#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (dins);
-#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (marker) {
-#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *marker = _vala_marker;
-#line 2128 "JfifSupport.c"
- }
-#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 2132 "JfifSupport.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp6_ = dins;
-#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp5_ = g_data_input_stream_read_byte (_tmp6_, NULL, &_inner_error_);
-#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2140 "JfifSupport.c"
- gint _tmp7_ = 0;
-#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (dins);
-#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return _tmp7_;
-#line 2148 "JfifSupport.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _vala_marker = (JpegMarker) _tmp5_;
-#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp9_ = _vala_marker;
-#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (_tmp9_ == JPEG_MARKER_SOI) {
-#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp8_ = TRUE;
-#line 2158 "JfifSupport.c"
- } else {
- JpegMarker _tmp10_;
-#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp10_ = _vala_marker;
-#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp8_ = _tmp10_ == JPEG_MARKER_EOI;
-#line 2165 "JfifSupport.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (_tmp8_) {
-#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = 0;
-#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (dins);
-#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (marker) {
-#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *marker = _vala_marker;
-#line 2177 "JfifSupport.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 2181 "JfifSupport.c"
- }
-#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp11_ = dins;
-#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- length = g_data_input_stream_read_uint16 (_tmp11_, NULL, &_inner_error_);
-#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2189 "JfifSupport.c"
- gint _tmp12_ = 0;
-#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (dins);
-#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return _tmp12_;
-#line 2197 "JfifSupport.c"
- }
-#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp14_ = length;
-#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (((gint) _tmp14_) < 2) {
-#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_TYPE (fins, g_seekable_get_type ());
-#line 2205 "JfifSupport.c"
- } else {
-#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp13_ = FALSE;
-#line 2209 "JfifSupport.c"
- }
-#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (_tmp13_) {
-#line 2213 "JfifSupport.c"
- guint16 _tmp15_;
-#line 239 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp15_ = length;
-#line 239 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- g_debug ("Invalid length %Xh at ofs %" G_GINT64_FORMAT "Xh", _tmp15_, g_seekable_tell (G_TYPE_CHECK_INSTANCE_TYPE (fins, g_seekable_get_type ()) ? ((GSeekable*) fins) : NULL) - 2);
-#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = -1;
-#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (dins);
-#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (marker) {
-#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *marker = _vala_marker;
-#line 2227 "JfifSupport.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 2231 "JfifSupport.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _tmp16_ = length;
-#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- result = _tmp16_ - 2;
-#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- _g_object_unref0 (dins);
-#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- if (marker) {
-#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- *marker = _vala_marker;
-#line 2243 "JfifSupport.c"
- }
-#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala"
- return result;
-#line 2247 "JfifSupport.c"
-}
-
-
-
diff --git a/src/photos/PhotoFileAdapter.c b/src/photos/PhotoFileAdapter.c
deleted file mode 100644
index 72dcc4f..0000000
--- a/src/photos/PhotoFileAdapter.c
+++ /dev/null
@@ -1,1323 +0,0 @@
-/* PhotoFileAdapter.c generated by valac 0.40.4, the Vala compiler
- * generated from PhotoFileAdapter.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/**/
-/* PhotoFileAdapter*/
-/**/
-/* PhotoFileAdapter (and its immediate children, PhotoFileReader and PhotoFileWriter) are drivers*/
-/* hiding details of reading and writing image files and their metadata. They should keep*/
-/* minimal state beyond the filename, if any stat at all. In particular, they should avoid caching*/
-/* values, especially the readers, as writers may be created at any time and invalidate that*/
-/* information, unless the readers monitor the file for these changes.*/
-/**/
-/* PhotoFileAdapters should be entirely thread-safe. They are not, however, responsible for*/
-/* atomicity on the filesystem.*/
-/**/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <glib/gstdio.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecPhotoFileAdapter ParamSpecPhotoFileAdapter;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define PHOTO_FILE_READER_TYPE_ROLE (photo_file_reader_role_get_type ())
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
-#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
-#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-
-typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
-typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
-typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate;
-
-struct _PhotoFileAdapter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileAdapterPrivate * priv;
-};
-
-struct _PhotoFileAdapterClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileAdapter *self);
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _PhotoFileAdapterPrivate {
- gchar* filepath;
- PhotoFileFormat file_format;
- GFile* file;
- GRecMutex __lock_file;
-};
-
-struct _ParamSpecPhotoFileAdapter {
- GParamSpec parent_instance;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _PhotoFileReader {
- PhotoFileAdapter parent_instance;
- PhotoFileReaderPrivate * priv;
-};
-
-struct _PhotoFileReaderClass {
- PhotoFileAdapterClass parent_class;
- PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error);
-};
-
-typedef enum {
- PHOTO_FILE_READER_ROLE_DEFAULT,
- PHOTO_FILE_READER_ROLE_THUMBNAIL
-} PhotoFileReaderRole;
-
-struct _PhotoFileReaderPrivate {
- PhotoFileReaderRole role;
-};
-
-typedef enum {
- PHOTO_FORMAT_ERROR_READ_ONLY
-} PhotoFormatError;
-#define PHOTO_FORMAT_ERROR photo_format_error_quark ()
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _PhotoFileWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileWriterPrivate * priv;
-};
-
-struct _PhotoFileWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error);
-};
-
-struct _PhotoFileMetadataWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileMetadataWriterPrivate * priv;
-};
-
-struct _PhotoFileMetadataWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error);
-};
-
-
-static gpointer photo_file_adapter_parent_class = NULL;
-static gpointer photo_file_reader_parent_class = NULL;
-static gpointer photo_file_writer_parent_class = NULL;
-static gpointer photo_file_metadata_writer_parent_class = NULL;
-
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-#define PHOTO_FILE_ADAPTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterPrivate))
-PhotoFileAdapter* photo_file_adapter_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-gboolean photo_file_adapter_file_exists (PhotoFileAdapter* self);
-gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
-GFile* photo_file_adapter_get_file (PhotoFileAdapter* self);
-PhotoFileFormat photo_file_adapter_get_file_format (PhotoFileAdapter* self);
-static void photo_file_adapter_finalize (PhotoFileAdapter * obj);
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GType photo_file_reader_role_get_type (void) G_GNUC_CONST;
-#define PHOTO_FILE_READER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_FILE_READER, PhotoFileReaderPrivate))
-PhotoFileReader* photo_file_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-GQuark photo_format_error_quark (void);
-PhotoFileWriter* photo_file_reader_create_writer (PhotoFileReader* self,
- GError** error);
-PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error);
-GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
-PhotoFileMetadataWriter* photo_file_reader_create_metadata_writer (PhotoFileReader* self,
- GError** error);
-PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error);
-PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self,
- GError** error);
-static PhotoMetadata* photo_file_reader_real_read_metadata (PhotoFileReader* self,
- GError** error);
-GdkPixbuf* photo_file_reader_unscaled_read (PhotoFileReader* self,
- GError** error);
-static GdkPixbuf* photo_file_reader_real_unscaled_read (PhotoFileReader* self,
- GError** error);
-GdkPixbuf* photo_file_reader_scaled_read (PhotoFileReader* self,
- Dimensions* full,
- Dimensions* scaled,
- GError** error);
-static GdkPixbuf* photo_file_reader_real_scaled_read (PhotoFileReader* self,
- Dimensions* full,
- Dimensions* scaled,
- GError** error);
-GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* resized,
- GdkInterpType interp);
-void photo_file_reader_set_role (PhotoFileReader* self,
- PhotoFileReaderRole role);
-PhotoFileReaderRole photo_file_reader_get_role (PhotoFileReader* self);
-static void photo_file_reader_finalize (PhotoFileAdapter * obj);
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-PhotoFileWriter* photo_file_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-PhotoFileReader* photo_file_writer_create_reader (PhotoFileWriter* self);
-PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self,
- const gchar* filepath);
-void photo_file_writer_write (PhotoFileWriter* self,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error);
-static void photo_file_writer_real_write (PhotoFileWriter* self,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error);
-PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-PhotoFileReader* photo_file_metadata_writer_create_reader (PhotoFileMetadataWriter* self);
-void photo_file_metadata_writer_write_metadata (PhotoFileMetadataWriter* self,
- PhotoMetadata* metadata,
- GError** error);
-static void photo_file_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* self,
- PhotoMetadata* metadata,
- GError** error);
-
-
-PhotoFileAdapter*
-photo_file_adapter_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format)
-{
- PhotoFileAdapter* self = NULL;
- gchar* _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self = (PhotoFileAdapter*) g_type_create_instance (object_type);
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = g_strdup (filepath);
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_free0 (self->priv->filepath);
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->priv->filepath = _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->priv->file_format = file_format;
-#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return self;
-#line 335 "PhotoFileAdapter.c"
-}
-
-
-gboolean
-photo_file_adapter_file_exists (PhotoFileAdapter* self)
-{
- gboolean result = FALSE;
- const gchar* _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_ADAPTER (self), FALSE);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = self->priv->filepath;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = g_file_test (_tmp0_, G_FILE_TEST_IS_REGULAR);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 352 "PhotoFileAdapter.c"
-}
-
-
-gchar*
-photo_file_adapter_get_filepath (PhotoFileAdapter* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_ADAPTER (self), NULL);
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = self->priv->filepath;
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _tmp1_;
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 372 "PhotoFileAdapter.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return self ? g_object_ref (self) : NULL;
-#line 381 "PhotoFileAdapter.c"
-}
-
-
-GFile*
-photo_file_adapter_get_file (PhotoFileAdapter* self)
-{
- GFile* result = NULL;
- GFile* _result_ = NULL;
- GError * _inner_error_ = NULL;
-#line 38 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_ADAPTER (self), NULL);
-#line 393 "PhotoFileAdapter.c"
- {
- GFile* _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = self->priv->file;
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_rec_mutex_lock (&self->priv->__lock_file);
-#line 400 "PhotoFileAdapter.c"
- {
- GFile* _tmp1_;
- GFile* _tmp4_;
- GFile* _tmp5_;
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp1_ = self->priv->file;
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (_tmp1_ == NULL) {
-#line 409 "PhotoFileAdapter.c"
- const gchar* _tmp2_;
- GFile* _tmp3_;
-#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp2_ = self->priv->filepath;
-#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp3_ = g_file_new_for_path (_tmp2_);
-#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_object_unref0 (self->priv->file);
-#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->priv->file = _tmp3_;
-#line 420 "PhotoFileAdapter.c"
- }
-#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp4_ = self->priv->file;
-#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_object_unref0 (_result_);
-#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _result_ = _tmp5_;
-#line 430 "PhotoFileAdapter.c"
- }
- __finally28:
- {
- GFile* _tmp6_;
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp6_ = self->priv->file;
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_rec_mutex_unlock (&self->priv->__lock_file);
-#line 439 "PhotoFileAdapter.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_object_unref0 (_result_);
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.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 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_clear_error (&_inner_error_);
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 451 "PhotoFileAdapter.c"
- }
- }
-#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _result_;
-#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 458 "PhotoFileAdapter.c"
-}
-
-
-PhotoFileFormat
-photo_file_adapter_get_file_format (PhotoFileAdapter* self)
-{
- PhotoFileFormat result = 0;
- PhotoFileFormat _tmp0_;
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_ADAPTER (self), 0);
-#line 51 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = self->priv->file_format;
-#line 51 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _tmp0_;
-#line 51 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 475 "PhotoFileAdapter.c"
-}
-
-
-static void
-value_photo_file_adapter_init (GValue* value)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- value->data[0].v_pointer = NULL;
-#line 484 "PhotoFileAdapter.c"
-}
-
-
-static void
-value_photo_file_adapter_free_value (GValue* value)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (value->data[0].v_pointer) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- photo_file_adapter_unref (value->data[0].v_pointer);
-#line 495 "PhotoFileAdapter.c"
- }
-}
-
-
-static void
-value_photo_file_adapter_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (src_value->data[0].v_pointer) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- dest_value->data[0].v_pointer = photo_file_adapter_ref (src_value->data[0].v_pointer);
-#line 508 "PhotoFileAdapter.c"
- } else {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 512 "PhotoFileAdapter.c"
- }
-}
-
-
-static gpointer
-value_photo_file_adapter_peek_pointer (const GValue* value)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return value->data[0].v_pointer;
-#line 522 "PhotoFileAdapter.c"
-}
-
-
-static gchar*
-value_photo_file_adapter_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (collect_values[0].v_pointer) {
-#line 534 "PhotoFileAdapter.c"
- PhotoFileAdapter * object;
- object = collect_values[0].v_pointer;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 541 "PhotoFileAdapter.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.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 545 "PhotoFileAdapter.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- value->data[0].v_pointer = photo_file_adapter_ref (object);
-#line 549 "PhotoFileAdapter.c"
- } else {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- value->data[0].v_pointer = NULL;
-#line 553 "PhotoFileAdapter.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 557 "PhotoFileAdapter.c"
-}
-
-
-static gchar*
-value_photo_file_adapter_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoFileAdapter ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (!object_p) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 573 "PhotoFileAdapter.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (!value->data[0].v_pointer) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- *object_p = NULL;
-#line 579 "PhotoFileAdapter.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- *object_p = value->data[0].v_pointer;
-#line 583 "PhotoFileAdapter.c"
- } else {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- *object_p = photo_file_adapter_ref (value->data[0].v_pointer);
-#line 587 "PhotoFileAdapter.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 591 "PhotoFileAdapter.c"
-}
-
-
-GParamSpec*
-param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPhotoFileAdapter* spec;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_ADAPTER), NULL);
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return G_PARAM_SPEC (spec);
-#line 611 "PhotoFileAdapter.c"
-}
-
-
-gpointer
-value_get_photo_file_adapter (const GValue* value)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_ADAPTER), NULL);
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return value->data[0].v_pointer;
-#line 622 "PhotoFileAdapter.c"
-}
-
-
-void
-value_set_photo_file_adapter (GValue* value,
- gpointer v_object)
-{
- PhotoFileAdapter * old;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_ADAPTER));
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- old = value->data[0].v_pointer;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (v_object) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_ADAPTER));
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- value->data[0].v_pointer = v_object;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- photo_file_adapter_ref (value->data[0].v_pointer);
-#line 645 "PhotoFileAdapter.c"
- } else {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- value->data[0].v_pointer = NULL;
-#line 649 "PhotoFileAdapter.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (old) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- photo_file_adapter_unref (old);
-#line 655 "PhotoFileAdapter.c"
- }
-}
-
-
-void
-value_take_photo_file_adapter (GValue* value,
- gpointer v_object)
-{
- PhotoFileAdapter * old;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_ADAPTER));
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- old = value->data[0].v_pointer;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (v_object) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_ADAPTER));
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- value->data[0].v_pointer = v_object;
-#line 677 "PhotoFileAdapter.c"
- } else {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- value->data[0].v_pointer = NULL;
-#line 681 "PhotoFileAdapter.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (old) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- photo_file_adapter_unref (old);
-#line 687 "PhotoFileAdapter.c"
- }
-}
-
-
-static void
-photo_file_adapter_class_init (PhotoFileAdapterClass * klass)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- photo_file_adapter_parent_class = g_type_class_peek_parent (klass);
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- ((PhotoFileAdapterClass *) klass)->finalize = photo_file_adapter_finalize;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_type_class_add_private (klass, sizeof (PhotoFileAdapterPrivate));
-#line 701 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_adapter_instance_init (PhotoFileAdapter * self)
-{
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->priv = PHOTO_FILE_ADAPTER_GET_PRIVATE (self);
-#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_rec_mutex_init (&self->priv->__lock_file);
-#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->priv->file = NULL;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->ref_count = 1;
-#line 716 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_adapter_finalize (PhotoFileAdapter * obj)
-{
- PhotoFileAdapter * self;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter);
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_signal_handlers_destroy (self);
-#line 21 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_free0 (self->priv->filepath);
-#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_rec_mutex_clear (&self->priv->__lock_file);
-#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_object_unref0 (self->priv->file);
-#line 734 "PhotoFileAdapter.c"
-}
-
-
-GType
-photo_file_adapter_get_type (void)
-{
- static volatile gsize photo_file_adapter_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_adapter_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_photo_file_adapter_init, value_photo_file_adapter_free_value, value_photo_file_adapter_copy_value, value_photo_file_adapter_peek_pointer, "p", value_photo_file_adapter_collect_value, "p", value_photo_file_adapter_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoFileAdapterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_adapter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileAdapter), 0, (GInstanceInitFunc) photo_file_adapter_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_file_adapter_type_id;
- photo_file_adapter_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileAdapter", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_file_adapter_type_id__volatile, photo_file_adapter_type_id);
- }
- return photo_file_adapter_type_id__volatile;
-}
-
-
-gpointer
-photo_file_adapter_ref (gpointer instance)
-{
- PhotoFileAdapter * self;
- self = instance;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return instance;
-#line 763 "PhotoFileAdapter.c"
-}
-
-
-void
-photo_file_adapter_unref (gpointer instance)
-{
- PhotoFileAdapter * self;
- self = instance;
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- PHOTO_FILE_ADAPTER_GET_CLASS (self)->finalize (self);
-#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 778 "PhotoFileAdapter.c"
- }
-}
-
-
-GType
-photo_file_reader_role_get_type (void)
-{
- static volatile gsize photo_file_reader_role_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_reader_role_type_id__volatile)) {
- static const GEnumValue values[] = {{PHOTO_FILE_READER_ROLE_DEFAULT, "PHOTO_FILE_READER_ROLE_DEFAULT", "default"}, {PHOTO_FILE_READER_ROLE_THUMBNAIL, "PHOTO_FILE_READER_ROLE_THUMBNAIL", "thumbnail"}, {0, NULL, NULL}};
- GType photo_file_reader_role_type_id;
- photo_file_reader_role_type_id = g_enum_register_static ("PhotoFileReaderRole", values);
- g_once_init_leave (&photo_file_reader_role_type_id__volatile, photo_file_reader_role_type_id);
- }
- return photo_file_reader_role_type_id__volatile;
-}
-
-
-PhotoFileReader*
-photo_file_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format)
-{
- PhotoFileReader* self = NULL;
-#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 68 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self = (PhotoFileReader*) photo_file_adapter_construct (object_type, filepath, file_format);
-#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return self;
-#line 809 "PhotoFileAdapter.c"
-}
-
-
-PhotoFileWriter*
-photo_file_reader_create_writer (PhotoFileReader* self,
- GError** error)
-{
- PhotoFileWriter* result = NULL;
- PhotoFileWriter* _tmp0_ = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- PhotoFileWriter* _tmp3_;
- PhotoFileWriter* _tmp4_;
- PhotoFileWriter* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 71 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL);
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp1_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp2_ = _tmp1_;
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp3_ = photo_file_format_create_writer (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp2_, &_inner_error_);
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp4_ = _tmp3_;
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_free0 (_tmp2_);
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = _tmp4_;
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (_inner_error_->domain == PHOTO_FORMAT_ERROR) {
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_propagate_error (error, _inner_error_);
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 847 "PhotoFileAdapter.c"
- } else {
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.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 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_clear_error (&_inner_error_);
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 855 "PhotoFileAdapter.c"
- }
- }
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp5_ = _tmp0_;
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = NULL;
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _tmp5_;
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _photo_file_adapter_unref0 (_tmp0_);
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 868 "PhotoFileAdapter.c"
-}
-
-
-PhotoFileMetadataWriter*
-photo_file_reader_create_metadata_writer (PhotoFileReader* self,
- GError** error)
-{
- PhotoFileMetadataWriter* result = NULL;
- PhotoFileMetadataWriter* _tmp0_ = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- PhotoFileMetadataWriter* _tmp3_;
- PhotoFileMetadataWriter* _tmp4_;
- PhotoFileMetadataWriter* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL);
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp1_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp2_ = _tmp1_;
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp3_ = photo_file_format_create_metadata_writer (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp2_, &_inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp4_ = _tmp3_;
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_free0 (_tmp2_);
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = _tmp4_;
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (_inner_error_->domain == PHOTO_FORMAT_ERROR) {
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_propagate_error (error, _inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 906 "PhotoFileAdapter.c"
- } else {
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.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 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_clear_error (&_inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 914 "PhotoFileAdapter.c"
- }
- }
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp5_ = _tmp0_;
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = NULL;
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _tmp5_;
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _photo_file_adapter_unref0 (_tmp0_);
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 927 "PhotoFileAdapter.c"
-}
-
-
-static PhotoMetadata*
-photo_file_reader_real_read_metadata (PhotoFileReader* self,
- GError** error)
-{
-#line 79 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_reader_read_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 79 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 939 "PhotoFileAdapter.c"
-}
-
-
-PhotoMetadata*
-photo_file_reader_read_metadata (PhotoFileReader* self,
- GError** error)
-{
-#line 79 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL);
-#line 79 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return PHOTO_FILE_READER_GET_CLASS (self)->read_metadata (self, error);
-#line 951 "PhotoFileAdapter.c"
-}
-
-
-static GdkPixbuf*
-photo_file_reader_real_unscaled_read (PhotoFileReader* self,
- GError** error)
-{
-#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_reader_unscaled_read'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 963 "PhotoFileAdapter.c"
-}
-
-
-GdkPixbuf*
-photo_file_reader_unscaled_read (PhotoFileReader* self,
- GError** error)
-{
-#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL);
-#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return PHOTO_FILE_READER_GET_CLASS (self)->unscaled_read (self, error);
-#line 975 "PhotoFileAdapter.c"
-}
-
-
-static GdkPixbuf*
-photo_file_reader_real_scaled_read (PhotoFileReader* self,
- Dimensions* full,
- Dimensions* scaled,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_;
- Dimensions _tmp2_;
- GdkPixbuf* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 83 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (full != NULL, NULL);
-#line 83 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (scaled != NULL, NULL);
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp1_ = photo_file_reader_unscaled_read (self, &_inner_error_);
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = _tmp1_;
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_propagate_error (error, _inner_error_);
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return NULL;
-#line 1005 "PhotoFileAdapter.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp2_ = *scaled;
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp3_ = resize_pixbuf (_tmp0_, &_tmp2_, GDK_INTERP_BILINEAR);
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _tmp3_;
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_object_unref0 (_tmp0_);
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 1017 "PhotoFileAdapter.c"
-}
-
-
-GdkPixbuf*
-photo_file_reader_scaled_read (PhotoFileReader* self,
- Dimensions* full,
- Dimensions* scaled,
- GError** error)
-{
-#line 83 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL);
-#line 83 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return PHOTO_FILE_READER_GET_CLASS (self)->scaled_read (self, full, scaled, error);
-#line 1031 "PhotoFileAdapter.c"
-}
-
-
-void
-photo_file_reader_set_role (PhotoFileReader* self,
- PhotoFileReaderRole role)
-{
-#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (IS_PHOTO_FILE_READER (self));
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->priv->role = role;
-#line 1043 "PhotoFileAdapter.c"
-}
-
-
-PhotoFileReaderRole
-photo_file_reader_get_role (PhotoFileReader* self)
-{
- PhotoFileReaderRole result = 0;
- PhotoFileReaderRole _tmp0_;
-#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_READER (self), 0);
-#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = self->priv->role;
-#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 1060 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_reader_class_init (PhotoFileReaderClass * klass)
-{
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- photo_file_reader_parent_class = g_type_class_peek_parent (klass);
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- ((PhotoFileAdapterClass *) klass)->finalize = photo_file_reader_finalize;
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_type_class_add_private (klass, sizeof (PhotoFileReaderPrivate));
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- ((PhotoFileReaderClass *) klass)->read_metadata = (PhotoMetadata* (*) (PhotoFileReader *, GError**)) photo_file_reader_real_read_metadata;
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- ((PhotoFileReaderClass *) klass)->unscaled_read = (GdkPixbuf* (*) (PhotoFileReader *, GError**)) photo_file_reader_real_unscaled_read;
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) photo_file_reader_real_scaled_read;
-#line 1079 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_reader_instance_init (PhotoFileReader * self)
-{
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->priv = PHOTO_FILE_READER_GET_PRIVATE (self);
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self->priv->role = PHOTO_FILE_READER_ROLE_DEFAULT;
-#line 1090 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_reader_finalize (PhotoFileAdapter * obj)
-{
- PhotoFileReader * self;
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_READER, PhotoFileReader);
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- PHOTO_FILE_ADAPTER_CLASS (photo_file_reader_parent_class)->finalize (obj);
-#line 1102 "PhotoFileAdapter.c"
-}
-
-
-GType
-photo_file_reader_get_type (void)
-{
- static volatile gsize photo_file_reader_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_reader_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoFileReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileReader), 0, (GInstanceInitFunc) photo_file_reader_instance_init, NULL };
- GType photo_file_reader_type_id;
- photo_file_reader_type_id = g_type_register_static (TYPE_PHOTO_FILE_ADAPTER, "PhotoFileReader", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_file_reader_type_id__volatile, photo_file_reader_type_id);
- }
- return photo_file_reader_type_id__volatile;
-}
-
-
-PhotoFileWriter*
-photo_file_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format)
-{
- PhotoFileWriter* self = NULL;
-#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 102 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self = (PhotoFileWriter*) photo_file_adapter_construct (object_type, filepath, file_format);
-#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return self;
-#line 1132 "PhotoFileAdapter.c"
-}
-
-
-PhotoFileReader*
-photo_file_writer_create_reader (PhotoFileWriter* self)
-{
- PhotoFileReader* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileReader* _tmp3_;
-#line 105 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_WRITER (self), NULL);
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp1_ = _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp2_ = photo_file_format_create_reader (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp1_);
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp3_ = _tmp2_;
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_free0 (_tmp1_);
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _tmp3_;
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 1160 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_writer_real_write (PhotoFileWriter* self,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error)
-{
-#line 109 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_writer_write'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 109 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return;
-#line 1174 "PhotoFileAdapter.c"
-}
-
-
-void
-photo_file_writer_write (PhotoFileWriter* self,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error)
-{
-#line 109 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (IS_PHOTO_FILE_WRITER (self));
-#line 109 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- PHOTO_FILE_WRITER_GET_CLASS (self)->write (self, pixbuf, quality, error);
-#line 1188 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_writer_class_init (PhotoFileWriterClass * klass)
-{
-#line 100 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- photo_file_writer_parent_class = g_type_class_peek_parent (klass);
-#line 100 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) photo_file_writer_real_write;
-#line 1199 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_writer_instance_init (PhotoFileWriter * self)
-{
-}
-
-
-GType
-photo_file_writer_get_type (void)
-{
- static volatile gsize photo_file_writer_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoFileWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileWriter), 0, (GInstanceInitFunc) photo_file_writer_instance_init, NULL };
- GType photo_file_writer_type_id;
- photo_file_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_ADAPTER, "PhotoFileWriter", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_file_writer_type_id__volatile, photo_file_writer_type_id);
- }
- return photo_file_writer_type_id__volatile;
-}
-
-
-PhotoFileMetadataWriter*
-photo_file_metadata_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format)
-{
- PhotoFileMetadataWriter* self = NULL;
-#line 117 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 118 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- self = (PhotoFileMetadataWriter*) photo_file_adapter_construct (object_type, filepath, file_format);
-#line 117 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return self;
-#line 1235 "PhotoFileAdapter.c"
-}
-
-
-PhotoFileReader*
-photo_file_metadata_writer_create_reader (PhotoFileMetadataWriter* self)
-{
- PhotoFileReader* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileReader* _tmp3_;
-#line 121 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_METADATA_WRITER (self), NULL);
-#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp1_ = _tmp0_;
-#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp2_ = photo_file_format_create_reader (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp1_);
-#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _tmp3_ = _tmp2_;
-#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- _g_free0 (_tmp1_);
-#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- result = _tmp3_;
-#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return result;
-#line 1263 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* self,
- PhotoMetadata* metadata,
- GError** error)
-{
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_metadata_writer_write_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- return;
-#line 1276 "PhotoFileAdapter.c"
-}
-
-
-void
-photo_file_metadata_writer_write_metadata (PhotoFileMetadataWriter* self,
- PhotoMetadata* metadata,
- GError** error)
-{
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- g_return_if_fail (IS_PHOTO_FILE_METADATA_WRITER (self));
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- PHOTO_FILE_METADATA_WRITER_GET_CLASS (self)->write_metadata (self, metadata, error);
-#line 1289 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_metadata_writer_class_init (PhotoFileMetadataWriterClass * klass)
-{
-#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- photo_file_metadata_writer_parent_class = g_type_class_peek_parent (klass);
-#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala"
- ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) photo_file_metadata_writer_real_write_metadata;
-#line 1300 "PhotoFileAdapter.c"
-}
-
-
-static void
-photo_file_metadata_writer_instance_init (PhotoFileMetadataWriter * self)
-{
-}
-
-
-GType
-photo_file_metadata_writer_get_type (void)
-{
- static volatile gsize photo_file_metadata_writer_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_metadata_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoFileMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileMetadataWriter), 0, (GInstanceInitFunc) photo_file_metadata_writer_instance_init, NULL };
- GType photo_file_metadata_writer_type_id;
- photo_file_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_ADAPTER, "PhotoFileMetadataWriter", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_file_metadata_writer_type_id__volatile, photo_file_metadata_writer_type_id);
- }
- return photo_file_metadata_writer_type_id__volatile;
-}
-
-
-
diff --git a/src/photos/PhotoFileFormat.c b/src/photos/PhotoFileFormat.c
deleted file mode 100644
index 3b3520c..0000000
--- a/src/photos/PhotoFileFormat.c
+++ /dev/null
@@ -1,3539 +0,0 @@
-/* PhotoFileFormat.c generated by valac 0.40.4, the Vala compiler
- * generated from PhotoFileFormat.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <gphoto2/gphoto2-file.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ())
-#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver))
-#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-
-typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver;
-typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass;
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-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 _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL)))
-
-#define TYPE_JFIF_FILE_FORMAT_DRIVER (jfif_file_format_driver_get_type ())
-#define JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver))
-#define JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass))
-#define IS_JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER))
-#define IS_JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER))
-#define JFIF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass))
-
-typedef struct _JfifFileFormatDriver JfifFileFormatDriver;
-typedef struct _JfifFileFormatDriverClass JfifFileFormatDriverClass;
-
-#define TYPE_RAW_FILE_FORMAT_DRIVER (raw_file_format_driver_get_type ())
-#define RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver))
-#define RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass))
-#define IS_RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_DRIVER))
-#define IS_RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_DRIVER))
-#define RAW_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass))
-
-typedef struct _RawFileFormatDriver RawFileFormatDriver;
-typedef struct _RawFileFormatDriverClass RawFileFormatDriverClass;
-
-#define TYPE_PNG_FILE_FORMAT_DRIVER (png_file_format_driver_get_type ())
-#define PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver))
-#define PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass))
-#define IS_PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_FILE_FORMAT_DRIVER))
-#define IS_PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_FILE_FORMAT_DRIVER))
-#define PNG_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass))
-
-typedef struct _PngFileFormatDriver PngFileFormatDriver;
-typedef struct _PngFileFormatDriverClass PngFileFormatDriverClass;
-
-#define PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER (photos_tiff_file_format_driver_get_type ())
-#define PHOTOS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver))
-#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass))
-#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER))
-#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER))
-#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass))
-
-typedef struct _PhotosTiffFileFormatDriver PhotosTiffFileFormatDriver;
-typedef struct _PhotosTiffFileFormatDriverClass PhotosTiffFileFormatDriverClass;
-
-#define PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER (photos_bmp_file_format_driver_get_type ())
-#define PHOTOS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver))
-#define PHOTOS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass))
-#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER))
-#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER))
-#define PHOTOS_BMP_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass))
-
-typedef struct _PhotosBmpFileFormatDriver PhotosBmpFileFormatDriver;
-typedef struct _PhotosBmpFileFormatDriverClass PhotosBmpFileFormatDriverClass;
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
-#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
-#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-
-typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
-typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
-#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
-#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
-#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
-#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-
-typedef struct _PhotoFileSniffer PhotoFileSniffer;
-typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate;
-typedef struct _ParamSpecPhotoFileFormatDriver ParamSpecPhotoFileFormatDriver;
-
-#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ())
-typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecPhotoFileFormatProperties ParamSpecPhotoFileFormatProperties;
-
-typedef enum {
- PHOTO_FORMAT_ERROR_READ_ONLY
-} PhotoFormatError;
-#define PHOTO_FORMAT_ERROR photo_format_error_quark ()
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef gboolean (*PhotoFileFormatDataApplicableTest) (PhotoFileFormat format, void* user_data);
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoFileFormatDriver {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatDriverPrivate * priv;
-};
-
-struct _PhotoFileFormatDriverClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatDriver *self);
- PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self);
- PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self);
- gboolean (*can_write_image) (PhotoFileFormatDriver* self);
- gboolean (*can_write_metadata) (PhotoFileFormatDriver* self);
- PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
-};
-
-struct _ParamSpecPhotoFileFormatDriver {
- GParamSpec parent_instance;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000
-} PhotoFileFormatFlags;
-
-struct _PhotoFileFormatProperties {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatPropertiesPrivate * priv;
-};
-
-struct _PhotoFileFormatPropertiesClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatProperties *self);
- PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self);
- PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self);
- gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext);
- gchar* (*get_default_extension) (PhotoFileFormatProperties* self);
- gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self);
- gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self);
-};
-
-struct _ParamSpecPhotoFileFormatProperties {
- GParamSpec parent_instance;
-};
-
-
-extern PhotoFileFormat* photo_file_format_data_writeable;
-extern gint photo_file_format_data_writeable_length1;
-PhotoFileFormat* photo_file_format_data_writeable = NULL;
-gint photo_file_format_data_writeable_length1 = 0;
-static gint _photo_file_format_data_writeable_size_ = 0;
-extern PhotoFileFormat* photo_file_format_data_image_writeable;
-extern gint photo_file_format_data_image_writeable_length1;
-PhotoFileFormat* photo_file_format_data_image_writeable = NULL;
-gint photo_file_format_data_image_writeable_length1 = 0;
-static gint _photo_file_format_data_image_writeable_size_ = 0;
-extern PhotoFileFormat* photo_file_format_data_metadata_writeable;
-extern gint photo_file_format_data_metadata_writeable_length1;
-PhotoFileFormat* photo_file_format_data_metadata_writeable = NULL;
-gint photo_file_format_data_metadata_writeable_length1 = 0;
-static gint _photo_file_format_data_metadata_writeable_size_ = 0;
-static gpointer photo_file_format_driver_parent_class = NULL;
-static gpointer photo_file_format_properties_parent_class = NULL;
-
-GQuark photo_format_error_quark (void);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test,
- void* test_target,
- int* result_length1);
-PhotoFileFormat* photo_file_format_get_supported (int* result_length1);
-static void _vala_array_add46 (PhotoFileFormat* * array,
- int* length,
- int* size,
- PhotoFileFormat value);
-PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1);
-static gboolean ___lambda4_ (PhotoFileFormat format);
-gboolean photo_file_format_can_write (PhotoFileFormat self);
-static gboolean ____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format,
- gpointer self);
-static PhotoFileFormat* _vala_array_dup2 (PhotoFileFormat* self,
- int length);
-PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1);
-static gboolean ___lambda26_ (PhotoFileFormat format);
-gboolean photo_file_format_can_write_image (PhotoFileFormat self);
-static gboolean ____lambda26__photo_file_format_data_applicable_test (PhotoFileFormat format,
- gpointer self);
-static PhotoFileFormat* _vala_array_dup3 (PhotoFileFormat* self,
- int length);
-PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_length1);
-static gboolean ___lambda27_ (PhotoFileFormat format);
-gboolean photo_file_format_can_write_metadata (PhotoFileFormat self);
-static gboolean ____lambda27__photo_file_format_data_applicable_test (PhotoFileFormat format,
- gpointer self);
-static PhotoFileFormat* _vala_array_dup4 (PhotoFileFormat* self,
- int length);
-PhotoFileFormat* photo_file_format_get_writeable (int* result_length1);
-PhotoFileFormat* photo_file_format_get_image_writeable (int* result_length1);
-PhotoFileFormat* photo_file_format_get_metadata_writeable (int* result_length1);
-PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename);
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-gboolean is_string_empty (const gchar* s);
-gpointer photo_file_format_driver_ref (gpointer instance);
-void photo_file_format_driver_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_driver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_driver (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_driver (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_driver (const GValue* value);
-GType photo_file_format_driver_get_type (void) G_GNUC_CONST;
-static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self);
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-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_driver_get_properties (PhotoFileFormatDriver* self);
-gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self,
- const gchar* ext);
-gboolean photo_file_format_is_file_supported (GFile* file);
-gboolean photo_file_format_is_basename_supported (const gchar* basename);
-PhotoFileFormat photo_file_format_get_system_default_format (void);
-PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file);
-gint photo_file_format_serialize (PhotoFileFormat self);
-PhotoFileFormat photo_file_format_unserialize (gint value);
-PhotoFileFormat photo_file_format_from_gphoto_type (const gchar* type);
-PhotoFileFormat photo_file_format_from_pixbuf_name (const gchar* name);
-void photo_file_format_init (PhotoFileFormat self);
-void jfif_file_format_driver_init (void);
-void raw_file_format_driver_init (void);
-void png_file_format_driver_init (void);
-void photos_tiff_file_format_driver_init (void);
-void photos_bmp_file_format_driver_init (void);
-const gchar* photo_file_format_to_string (PhotoFileFormat self);
-GType jfif_file_format_driver_get_type (void) G_GNUC_CONST;
-JfifFileFormatDriver* jfif_file_format_driver_get_instance (void);
-GType raw_file_format_driver_get_type (void) G_GNUC_CONST;
-RawFileFormatDriver* raw_file_format_driver_get_instance (void);
-GType png_file_format_driver_get_type (void) G_GNUC_CONST;
-PngFileFormatDriver* png_file_format_driver_get_instance (void);
-GType photos_tiff_file_format_driver_get_type (void) G_GNUC_CONST;
-PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_get_instance (void);
-GType photos_bmp_file_format_driver_get_type (void) G_GNUC_CONST;
-PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_get_instance (void);
-PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self);
-gchar* photo_file_format_get_default_basename (PhotoFileFormat self,
- const gchar* name);
-gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self);
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self,
- const gchar* filepath);
-PhotoFileReader* photo_file_format_driver_create_reader (PhotoFileFormatDriver* self,
- const gchar* filepath);
-gboolean photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self);
-gboolean photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self);
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error);
-PhotoFileWriter* photo_file_format_driver_create_writer (PhotoFileFormatDriver* self,
- const gchar* filepath);
-GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
-PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error);
-PhotoFileMetadataWriter* photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self,
- const gchar* filepath);
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-gpointer photo_file_sniffer_ref (gpointer instance);
-void photo_file_sniffer_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_sniffer (GValue* value,
- gpointer v_object);
-void value_take_photo_file_sniffer (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_sniffer (const GValue* value);
-GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
-PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self,
- GFile* file,
- PhotoFileSnifferOptions options);
-PhotoFileSniffer* photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self,
- GFile* file,
- PhotoFileSnifferOptions options);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self);
-PhotoMetadata* photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self);
-gchar* photo_file_format_get_default_mime_type (PhotoFileFormat self);
-gchar* photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self);
-gchar** photo_file_format_get_mime_types (PhotoFileFormat self,
- int* result_length1);
-gchar** photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self,
- int* result_length1);
-gchar** photo_file_format_get_editable_mime_types (int* result_length1);
-static void _vala_array_add47 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static PhotoFileFormatProperties* photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self);
-static PhotoFileReader* photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self,
- const gchar* filepath);
-static PhotoMetadata* photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self);
-static gboolean photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self);
-static gboolean photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self);
-static PhotoFileWriter* photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self,
- const gchar* filepath);
-static PhotoFileMetadataWriter* photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self,
- const gchar* filepath);
-static PhotoFileSniffer* photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self,
- GFile* file,
- PhotoFileSnifferOptions options);
-PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type);
-static void photo_file_format_driver_finalize (PhotoFileFormatDriver * obj);
-GType photo_file_format_flags_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self);
-static PhotoFileFormat photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self);
-PhotoFileFormatFlags photo_file_format_properties_get_flags (PhotoFileFormatProperties* self);
-static PhotoFileFormatFlags photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self);
-static gboolean photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self,
- const gchar* ext);
-gboolean is_in_ci_array (const gchar* str,
- gchar** strings,
- int strings_length1);
-gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self,
- int* result_length1);
-static gchar* photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self);
-static gchar** photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self,
- int* result_length1);
-static gchar* photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self);
-static gchar** photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self,
- int* result_length1);
-gchar* photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self);
-static gchar* photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self);
-GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self,
- GFile* file);
-PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type);
-static void photo_file_format_properties_finalize (PhotoFileFormatProperties * 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);
-
-
-GQuark
-photo_format_error_quark (void)
-{
- return g_quark_from_static_string ("photo_format_error-quark");
-}
-
-
-static void
-_vala_array_add46 (PhotoFileFormat* * array,
- int* length,
- int* size,
- PhotoFileFormat value)
-{
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if ((*length) == (*size)) {
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *array = g_renew (PhotoFileFormat, *array, *size);
-#line 507 "PhotoFileFormat.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- (*array)[(*length)++] = value;
-#line 511 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat*
-photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test,
- void* test_target,
- int* result_length1)
-{
- PhotoFileFormat* result = NULL;
- PhotoFileFormat* applicable = NULL;
- PhotoFileFormat* _tmp0_;
- gint applicable_length1;
- gint _applicable_size_;
- gint _tmp1_;
- PhotoFileFormat* _tmp2_;
- PhotoFileFormat* _tmp6_;
- gint _tmp6__length1;
-#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = g_new0 (PhotoFileFormat, 0);
-#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- applicable = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- applicable_length1 = 0;
-#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _applicable_size_ = applicable_length1;
-#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_get_supported (&_tmp1_);
-#line 539 "PhotoFileFormat.c"
- {
- PhotoFileFormat* format_collection = NULL;
- gint format_collection_length1 = 0;
- gint _format_collection_size_ = 0;
- gint format_it = 0;
-#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format_collection = _tmp2_;
-#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format_collection_length1 = _tmp1_;
-#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- for (format_it = 0; format_it < _tmp1_; format_it = format_it + 1) {
-#line 551 "PhotoFileFormat.c"
- PhotoFileFormat format = 0;
-#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format = format_collection[format_it];
-#line 555 "PhotoFileFormat.c"
- {
- PhotoFileFormat _tmp3_;
-#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = format;
-#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (test (_tmp3_, test_target)) {
-#line 562 "PhotoFileFormat.c"
- PhotoFileFormat* _tmp4_;
- gint _tmp4__length1;
- PhotoFileFormat _tmp5_;
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = applicable;
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4__length1 = applicable_length1;
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = format;
-#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _vala_array_add46 (&applicable, &applicable_length1, &_applicable_size_, _tmp5_);
-#line 574 "PhotoFileFormat.c"
- }
- }
- }
-#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format_collection = (g_free (format_collection), NULL);
-#line 580 "PhotoFileFormat.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6_ = applicable;
-#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6__length1 = applicable_length1;
-#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp6__length1;
-#line 590 "PhotoFileFormat.c"
- }
-#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp6_;
-#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 596 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-___lambda4_ (PhotoFileFormat format)
-{
- gboolean result = FALSE;
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = photo_file_format_can_write (format);
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 608 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format,
- gpointer self)
-{
- gboolean result;
- result = ___lambda4_ (format);
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 620 "PhotoFileFormat.c"
-}
-
-
-static PhotoFileFormat*
-_vala_array_dup2 (PhotoFileFormat* self,
- int length)
-{
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return g_memdup (self, length * sizeof (PhotoFileFormat));
-#line 630 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat*
-photo_file_format_data_get_writeable (int* result_length1)
-{
- PhotoFileFormat* result = NULL;
- PhotoFileFormat* _tmp0_;
- gint _tmp0__length1;
- PhotoFileFormat* _tmp3_;
- gint _tmp3__length1;
- PhotoFileFormat* _tmp4_;
- gint _tmp4__length1;
- PhotoFileFormat* _tmp5_;
- gint _tmp5__length1;
-#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_data_writeable;
-#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0__length1 = photo_file_format_data_writeable_length1;
-#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp0_ == NULL) {
-#line 652 "PhotoFileFormat.c"
- gint _tmp1_;
- PhotoFileFormat* _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_data_find_applicable (____lambda4__photo_file_format_data_applicable_test, NULL, &_tmp1_);
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_writeable = (g_free (photo_file_format_data_writeable), NULL);
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_writeable = _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_writeable_length1 = _tmp1_;
-#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_data_writeable_size_ = photo_file_format_data_writeable_length1;
-#line 665 "PhotoFileFormat.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = photo_file_format_data_writeable;
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3__length1 = photo_file_format_data_writeable_length1;
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup2 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_);
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4__length1 = _tmp3__length1;
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = _tmp4_;
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5__length1 = _tmp4__length1;
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp5__length1;
-#line 683 "PhotoFileFormat.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp5_;
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 689 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-___lambda26_ (PhotoFileFormat format)
-{
- gboolean result = FALSE;
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = photo_file_format_can_write_image (format);
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 701 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-____lambda26__photo_file_format_data_applicable_test (PhotoFileFormat format,
- gpointer self)
-{
- gboolean result;
- result = ___lambda26_ (format);
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 713 "PhotoFileFormat.c"
-}
-
-
-static PhotoFileFormat*
-_vala_array_dup3 (PhotoFileFormat* self,
- int length)
-{
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return g_memdup (self, length * sizeof (PhotoFileFormat));
-#line 723 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat*
-photo_file_format_data_get_image_writeable (int* result_length1)
-{
- PhotoFileFormat* result = NULL;
- PhotoFileFormat* _tmp0_;
- gint _tmp0__length1;
- PhotoFileFormat* _tmp3_;
- gint _tmp3__length1;
- PhotoFileFormat* _tmp4_;
- gint _tmp4__length1;
- PhotoFileFormat* _tmp5_;
- gint _tmp5__length1;
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_data_image_writeable;
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0__length1 = photo_file_format_data_image_writeable_length1;
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp0_ == NULL) {
-#line 745 "PhotoFileFormat.c"
- gint _tmp1_;
- PhotoFileFormat* _tmp2_;
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_data_find_applicable (____lambda26__photo_file_format_data_applicable_test, NULL, &_tmp1_);
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_image_writeable = (g_free (photo_file_format_data_image_writeable), NULL);
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_image_writeable = _tmp2_;
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_image_writeable_length1 = _tmp1_;
-#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_data_image_writeable_size_ = photo_file_format_data_image_writeable_length1;
-#line 758 "PhotoFileFormat.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = photo_file_format_data_image_writeable;
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3__length1 = photo_file_format_data_image_writeable_length1;
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup3 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_);
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4__length1 = _tmp3__length1;
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = _tmp4_;
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5__length1 = _tmp4__length1;
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp5__length1;
-#line 776 "PhotoFileFormat.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp5_;
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 782 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-___lambda27_ (PhotoFileFormat format)
-{
- gboolean result = FALSE;
-#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = photo_file_format_can_write_metadata (format);
-#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 794 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-____lambda27__photo_file_format_data_applicable_test (PhotoFileFormat format,
- gpointer self)
-{
- gboolean result;
- result = ___lambda27_ (format);
-#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 806 "PhotoFileFormat.c"
-}
-
-
-static PhotoFileFormat*
-_vala_array_dup4 (PhotoFileFormat* self,
- int length)
-{
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return g_memdup (self, length * sizeof (PhotoFileFormat));
-#line 816 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat*
-photo_file_format_data_get_metadata_writeable (int* result_length1)
-{
- PhotoFileFormat* result = NULL;
- PhotoFileFormat* _tmp0_;
- gint _tmp0__length1;
- PhotoFileFormat* _tmp3_;
- gint _tmp3__length1;
- PhotoFileFormat* _tmp4_;
- gint _tmp4__length1;
- PhotoFileFormat* _tmp5_;
- gint _tmp5__length1;
-#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_data_metadata_writeable;
-#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0__length1 = photo_file_format_data_metadata_writeable_length1;
-#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp0_ == NULL) {
-#line 838 "PhotoFileFormat.c"
- gint _tmp1_;
- PhotoFileFormat* _tmp2_;
-#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_data_find_applicable (____lambda27__photo_file_format_data_applicable_test, NULL, &_tmp1_);
-#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_metadata_writeable = (g_free (photo_file_format_data_metadata_writeable), NULL);
-#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_metadata_writeable = _tmp2_;
-#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_data_metadata_writeable_length1 = _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_data_metadata_writeable_size_ = photo_file_format_data_metadata_writeable_length1;
-#line 851 "PhotoFileFormat.c"
- }
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = photo_file_format_data_metadata_writeable;
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3__length1 = photo_file_format_data_metadata_writeable_length1;
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup4 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_);
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4__length1 = _tmp3__length1;
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = _tmp4_;
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5__length1 = _tmp4__length1;
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp5__length1;
-#line 869 "PhotoFileFormat.c"
- }
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp5_;
-#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 875 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat*
-photo_file_format_get_supported (int* result_length1)
-{
- PhotoFileFormat* result = NULL;
- PhotoFileFormat* _tmp0_;
- PhotoFileFormat* _tmp1_;
- gint _tmp1__length1;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = g_new0 (PhotoFileFormat, 5);
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_[0] = PHOTO_FILE_FORMAT_JFIF;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_[1] = PHOTO_FILE_FORMAT_RAW;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_[2] = PHOTO_FILE_FORMAT_PNG;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_[3] = PHOTO_FILE_FORMAT_TIFF;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_[4] = PHOTO_FILE_FORMAT_BMP;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1__length1 = 5;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp1__length1;
-#line 906 "PhotoFileFormat.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 912 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat*
-photo_file_format_get_writeable (int* result_length1)
-{
- PhotoFileFormat* result = NULL;
- gint _tmp0_;
- PhotoFileFormat* _tmp1_;
- PhotoFileFormat* _tmp2_;
- gint _tmp2__length1;
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = photo_file_format_data_get_writeable (&_tmp0_);
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = _tmp1_;
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2__length1 = _tmp0_;
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp2__length1;
-#line 934 "PhotoFileFormat.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp2_;
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 940 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat*
-photo_file_format_get_image_writeable (int* result_length1)
-{
- PhotoFileFormat* result = NULL;
- gint _tmp0_;
- PhotoFileFormat* _tmp1_;
- PhotoFileFormat* _tmp2_;
- gint _tmp2__length1;
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = photo_file_format_data_get_image_writeable (&_tmp0_);
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = _tmp1_;
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2__length1 = _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp2__length1;
-#line 962 "PhotoFileFormat.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp2_;
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 968 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat*
-photo_file_format_get_metadata_writeable (int* result_length1)
-{
- PhotoFileFormat* result = NULL;
- gint _tmp0_;
- PhotoFileFormat* _tmp1_;
- PhotoFileFormat* _tmp2_;
- gint _tmp2__length1;
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = photo_file_format_data_get_metadata_writeable (&_tmp0_);
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = _tmp1_;
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2__length1 = _tmp0_;
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp2__length1;
-#line 990 "PhotoFileFormat.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp2_;
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 996 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat
-photo_file_format_get_by_basename_extension (const gchar* basename)
-{
- PhotoFileFormat result = 0;
- gchar* name = NULL;
- gchar* ext = NULL;
- gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
- gint _tmp3_;
- PhotoFileFormat* _tmp4_;
-#line 80 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (basename != NULL, 0);
-#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- disassemble_filename (basename, &_tmp0_, &_tmp1_);
-#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- name = _tmp0_;
-#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ext = _tmp1_;
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = ext;
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (is_string_empty (_tmp2_)) {
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_UNKNOWN;
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1035 "PhotoFileFormat.c"
- }
-#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = photo_file_format_get_supported (&_tmp3_);
-#line 1039 "PhotoFileFormat.c"
- {
- PhotoFileFormat* file_format_collection = NULL;
- gint file_format_collection_length1 = 0;
- gint _file_format_collection_size_ = 0;
- gint file_format_it = 0;
-#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format_collection = _tmp4_;
-#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format_collection_length1 = _tmp3_;
-#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- for (file_format_it = 0; file_format_it < _tmp3_; file_format_it = file_format_it + 1) {
-#line 1051 "PhotoFileFormat.c"
- PhotoFileFormat file_format = 0;
-#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format = file_format_collection[file_format_it];
-#line 1055 "PhotoFileFormat.c"
- {
- PhotoFileFormat _tmp5_;
- PhotoFileFormatDriver* _tmp6_;
- PhotoFileFormatDriver* _tmp7_;
- PhotoFileFormatProperties* _tmp8_;
- PhotoFileFormatProperties* _tmp9_;
- const gchar* _tmp10_;
- gboolean _tmp11_;
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = file_format;
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6_ = photo_file_format_get_driver (_tmp5_);
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp7_ = _tmp6_;
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp8_ = photo_file_format_driver_get_properties (_tmp7_);
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp9_ = _tmp8_;
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp10_ = ext;
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp11_ = photo_file_format_properties_is_recognized_extension (_tmp9_, _tmp10_);
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_properties_unref0 (_tmp9_);
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp7_);
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp11_) {
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = file_format;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format_collection = (g_free (file_format_collection), NULL);
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1094 "PhotoFileFormat.c"
- }
- }
- }
-#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format_collection = (g_free (file_format_collection), NULL);
-#line 1100 "PhotoFileFormat.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_UNKNOWN;
-#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1110 "PhotoFileFormat.c"
-}
-
-
-gboolean
-photo_file_format_is_file_supported (GFile* file)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
-#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = g_file_get_basename (file);
-#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_is_basename_supported (_tmp1_);
-#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (_tmp1_);
-#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp2_;
-#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1135 "PhotoFileFormat.c"
-}
-
-
-gboolean
-photo_file_format_is_basename_supported (const gchar* basename)
-{
- gboolean result = FALSE;
- gchar* name = NULL;
- gchar* ext = NULL;
- gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_;
- gint _tmp3_;
- PhotoFileFormat* _tmp4_;
-#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (basename != NULL, FALSE);
-#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- disassemble_filename (basename, &_tmp0_, &_tmp1_);
-#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- name = _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ext = _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = ext;
-#line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (is_string_empty (_tmp2_)) {
-#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = FALSE;
-#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1174 "PhotoFileFormat.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = photo_file_format_get_supported (&_tmp3_);
-#line 1178 "PhotoFileFormat.c"
- {
- PhotoFileFormat* format_collection = NULL;
- gint format_collection_length1 = 0;
- gint _format_collection_size_ = 0;
- gint format_it = 0;
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format_collection = _tmp4_;
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format_collection_length1 = _tmp3_;
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- for (format_it = 0; format_it < _tmp3_; format_it = format_it + 1) {
-#line 1190 "PhotoFileFormat.c"
- PhotoFileFormat format = 0;
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format = format_collection[format_it];
-#line 1194 "PhotoFileFormat.c"
- {
- PhotoFileFormat _tmp5_;
- PhotoFileFormatDriver* _tmp6_;
- PhotoFileFormatDriver* _tmp7_;
- PhotoFileFormatProperties* _tmp8_;
- PhotoFileFormatProperties* _tmp9_;
- const gchar* _tmp10_;
- gboolean _tmp11_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = format;
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6_ = photo_file_format_get_driver (_tmp5_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp7_ = _tmp6_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp8_ = photo_file_format_driver_get_properties (_tmp7_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp9_ = _tmp8_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp10_ = ext;
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp11_ = photo_file_format_properties_is_recognized_extension (_tmp9_, _tmp10_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_properties_unref0 (_tmp9_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp7_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp11_) {
-#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = TRUE;
-#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format_collection = (g_free (format_collection), NULL);
-#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1233 "PhotoFileFormat.c"
- }
- }
- }
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- format_collection = (g_free (format_collection), NULL);
-#line 1239 "PhotoFileFormat.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = FALSE;
-#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1249 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat
-photo_file_format_get_system_default_format (void)
-{
- PhotoFileFormat result = 0;
-#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_JFIF;
-#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1261 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat
-photo_file_format_get_by_file_extension (GFile* file)
-{
- PhotoFileFormat result = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
- PhotoFileFormat _tmp2_;
-#line 119 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (G_IS_FILE (file), 0);
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = g_file_get_basename (file);
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_get_by_basename_extension (_tmp1_);
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (_tmp1_);
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp2_;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1286 "PhotoFileFormat.c"
-}
-
-
-gint
-photo_file_format_serialize (PhotoFileFormat self)
-{
- gint result = 0;
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (self) {
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_JFIF:
-#line 1298 "PhotoFileFormat.c"
- {
-#line 127 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = 0;
-#line 127 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1304 "PhotoFileFormat.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_RAW:
-#line 1308 "PhotoFileFormat.c"
- {
-#line 130 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = 1;
-#line 130 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1314 "PhotoFileFormat.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_PNG:
-#line 1318 "PhotoFileFormat.c"
- {
-#line 133 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = 2;
-#line 133 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1324 "PhotoFileFormat.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_TIFF:
-#line 1328 "PhotoFileFormat.c"
- {
-#line 136 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = 3;
-#line 136 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1334 "PhotoFileFormat.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_BMP:
-#line 1338 "PhotoFileFormat.c"
- {
-#line 139 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = 4;
-#line 139 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1344 "PhotoFileFormat.c"
- }
- default:
-#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_UNKNOWN:
-#line 1349 "PhotoFileFormat.c"
- {
-#line 143 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = -1;
-#line 143 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1355 "PhotoFileFormat.c"
- }
- }
-}
-
-
-PhotoFileFormat
-photo_file_format_unserialize (gint value)
-{
- PhotoFileFormat result = 0;
-#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (value) {
-#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case 0:
-#line 1369 "PhotoFileFormat.c"
- {
-#line 151 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_JFIF;
-#line 151 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1375 "PhotoFileFormat.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case 1:
-#line 1379 "PhotoFileFormat.c"
- {
-#line 154 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_RAW;
-#line 154 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1385 "PhotoFileFormat.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case 2:
-#line 1389 "PhotoFileFormat.c"
- {
-#line 157 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_PNG;
-#line 157 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1395 "PhotoFileFormat.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case 3:
-#line 1399 "PhotoFileFormat.c"
- {
-#line 160 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_TIFF;
-#line 160 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1405 "PhotoFileFormat.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case 4:
-#line 1409 "PhotoFileFormat.c"
- {
-#line 163 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_BMP;
-#line 163 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1415 "PhotoFileFormat.c"
- }
- default:
- {
-#line 166 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_UNKNOWN;
-#line 166 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1423 "PhotoFileFormat.c"
- }
- }
-}
-
-
-PhotoFileFormat
-photo_file_format_from_gphoto_type (const gchar* type)
-{
- PhotoFileFormat result = 0;
- const gchar* _tmp0_;
- GQuark _tmp2_ = 0U;
-#line 170 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (type != NULL, 0);
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = type;
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_);
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp2_ == g_quark_from_string (GP_MIME_JPEG)) {
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1445 "PhotoFileFormat.c"
- default:
- {
-#line 173 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_JFIF;
-#line 173 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1452 "PhotoFileFormat.c"
- }
- }
- } else if ((_tmp2_ == g_quark_from_string (GP_MIME_RAW)) || (_tmp2_ == g_quark_from_string (GP_MIME_CRW))) {
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1458 "PhotoFileFormat.c"
- default:
- {
-#line 177 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_RAW;
-#line 177 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1465 "PhotoFileFormat.c"
- }
- }
- } else if (_tmp2_ == g_quark_from_string (GP_MIME_PNG)) {
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1471 "PhotoFileFormat.c"
- default:
- {
-#line 180 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_PNG;
-#line 180 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1478 "PhotoFileFormat.c"
- }
- }
- } else if (_tmp2_ == g_quark_from_string (GP_MIME_TIFF)) {
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1484 "PhotoFileFormat.c"
- default:
- {
-#line 183 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_TIFF;
-#line 183 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1491 "PhotoFileFormat.c"
- }
- }
- } else if (_tmp2_ == g_quark_from_string (GP_MIME_BMP)) {
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1497 "PhotoFileFormat.c"
- default:
- {
-#line 186 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_BMP;
-#line 186 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1504 "PhotoFileFormat.c"
- }
- }
- } else {
-#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1510 "PhotoFileFormat.c"
- default:
- {
-#line 190 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_UNKNOWN;
-#line 190 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1517 "PhotoFileFormat.c"
- }
- }
- }
-}
-
-
-PhotoFileFormat
-photo_file_format_from_pixbuf_name (const gchar* name)
-{
- PhotoFileFormat result = 0;
- const gchar* _tmp0_;
- GQuark _tmp2_ = 0U;
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- static GQuark _tmp1_label0 = 0;
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- static GQuark _tmp1_label1 = 0;
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- static GQuark _tmp1_label2 = 0;
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- static GQuark _tmp1_label3 = 0;
-#line 195 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (name != NULL, 0);
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = name;
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_);
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("jpeg")))) {
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1548 "PhotoFileFormat.c"
- default:
- {
-#line 198 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_JFIF;
-#line 198 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1555 "PhotoFileFormat.c"
- }
- }
- } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("png")))) {
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1561 "PhotoFileFormat.c"
- default:
- {
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_PNG;
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1568 "PhotoFileFormat.c"
- }
- }
- } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("tiff")))) {
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1574 "PhotoFileFormat.c"
- default:
- {
-#line 204 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_TIFF;
-#line 204 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1581 "PhotoFileFormat.c"
- }
- }
- } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("bmp")))) {
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1587 "PhotoFileFormat.c"
- default:
- {
-#line 207 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_BMP;
-#line 207 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1594 "PhotoFileFormat.c"
- }
- }
- } else {
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (0) {
-#line 1600 "PhotoFileFormat.c"
- default:
- {
-#line 210 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = PHOTO_FILE_FORMAT_UNKNOWN;
-#line 210 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1607 "PhotoFileFormat.c"
- }
- }
- }
-}
-
-
-void
-photo_file_format_init (PhotoFileFormat self)
-{
-#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (self) {
-#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_JFIF:
-#line 1621 "PhotoFileFormat.c"
- {
-#line 217 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- jfif_file_format_driver_init ();
-#line 218 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- break;
-#line 1627 "PhotoFileFormat.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_RAW:
-#line 1631 "PhotoFileFormat.c"
- {
-#line 221 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- raw_file_format_driver_init ();
-#line 222 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- break;
-#line 1637 "PhotoFileFormat.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_PNG:
-#line 1641 "PhotoFileFormat.c"
- {
-#line 225 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- png_file_format_driver_init ();
-#line 226 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- break;
-#line 1647 "PhotoFileFormat.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_TIFF:
-#line 1651 "PhotoFileFormat.c"
- {
-#line 229 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photos_tiff_file_format_driver_init ();
-#line 230 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- break;
-#line 1657 "PhotoFileFormat.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_BMP:
-#line 1661 "PhotoFileFormat.c"
- {
-#line 233 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photos_bmp_file_format_driver_init ();
-#line 234 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- break;
-#line 1667 "PhotoFileFormat.c"
- }
- default:
- {
- GEnumValue* _tmp0_;
-#line 237 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self);
-#line 237 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_error ("PhotoFileFormat.vala:237: Unsupported file format %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL);
-#line 1676 "PhotoFileFormat.c"
- }
- }
-}
-
-
-static PhotoFileFormatDriver*
-photo_file_format_get_driver (PhotoFileFormat self)
-{
- PhotoFileFormatDriver* result = NULL;
-#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- switch (self) {
-#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_JFIF:
-#line 1690 "PhotoFileFormat.c"
- {
- JfifFileFormatDriver* _tmp0_;
-#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = jfif_file_format_driver_get_instance ();
-#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
-#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1699 "PhotoFileFormat.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_RAW:
-#line 1703 "PhotoFileFormat.c"
- {
- RawFileFormatDriver* _tmp1_;
-#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = raw_file_format_driver_get_instance ();
-#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
-#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1712 "PhotoFileFormat.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_PNG:
-#line 1716 "PhotoFileFormat.c"
- {
- PngFileFormatDriver* _tmp2_;
-#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = png_file_format_driver_get_instance ();
-#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
-#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1725 "PhotoFileFormat.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_TIFF:
-#line 1729 "PhotoFileFormat.c"
- {
- PhotosTiffFileFormatDriver* _tmp3_;
-#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = photos_tiff_file_format_driver_get_instance ();
-#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
-#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1738 "PhotoFileFormat.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- case PHOTO_FILE_FORMAT_BMP:
-#line 1742 "PhotoFileFormat.c"
- {
- PhotosBmpFileFormatDriver* _tmp4_;
-#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = photos_bmp_file_format_driver_get_instance ();
-#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
-#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1751 "PhotoFileFormat.c"
- }
- default:
- {
- GEnumValue* _tmp5_;
-#line 259 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self);
-#line 259 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_error ("PhotoFileFormat.vala:259: Unsupported file format %s", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
-#line 1760 "PhotoFileFormat.c"
- }
- }
-}
-
-
-PhotoFileFormatProperties*
-photo_file_format_get_properties (PhotoFileFormat self)
-{
- PhotoFileFormatProperties* result = NULL;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- PhotoFileFormatProperties* _tmp2_;
- PhotoFileFormatProperties* _tmp3_;
-#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_get_properties (_tmp1_);
-#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp3_;
-#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1788 "PhotoFileFormat.c"
-}
-
-
-gchar*
-photo_file_format_get_default_basename (PhotoFileFormat self,
- const gchar* name)
-{
- gchar* result = NULL;
- PhotoFileFormatProperties* _tmp0_;
- PhotoFileFormatProperties* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 268 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_properties (self);
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_properties_get_default_extension (_tmp1_);
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = g_strdup_printf ("%s.%s", name, _tmp3_);
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = _tmp4_;
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (_tmp3_);
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_properties_unref0 (_tmp1_);
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp5_;
-#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1825 "PhotoFileFormat.c"
-}
-
-
-PhotoFileReader*
-photo_file_format_create_reader (PhotoFileFormat self,
- const gchar* filepath)
-{
- PhotoFileReader* result = NULL;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- PhotoFileReader* _tmp2_;
- PhotoFileReader* _tmp3_;
-#line 272 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_create_reader (_tmp1_, filepath);
-#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp3_;
-#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1854 "PhotoFileFormat.c"
-}
-
-
-gboolean
-photo_file_format_can_write (PhotoFileFormat self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (photo_file_format_can_write_image (self)) {
-#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_can_write_metadata (self);
-#line 1867 "PhotoFileFormat.c"
- } else {
-#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = FALSE;
-#line 1871 "PhotoFileFormat.c"
- }
-#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp0_;
-#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1877 "PhotoFileFormat.c"
-}
-
-
-gboolean
-photo_file_format_can_write_image (PhotoFileFormat self)
-{
- gboolean result = FALSE;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- gboolean _tmp2_;
-#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_can_write_image (_tmp1_);
-#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp2_;
-#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1900 "PhotoFileFormat.c"
-}
-
-
-gboolean
-photo_file_format_can_write_metadata (PhotoFileFormat self)
-{
- gboolean result = FALSE;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- gboolean _tmp2_;
-#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_can_write_metadata (_tmp1_);
-#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp2_;
-#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1923 "PhotoFileFormat.c"
-}
-
-
-PhotoFileWriter*
-photo_file_format_create_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error)
-{
- PhotoFileWriter* result = NULL;
- PhotoFileWriter* writer = NULL;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- PhotoFileWriter* _tmp2_;
- PhotoFileWriter* _tmp3_;
- PhotoFileWriter* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 289 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_create_writer (_tmp1_, filepath);
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- writer = _tmp3_;
-#line 291 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = writer;
-#line 291 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp4_ == NULL) {
-#line 1958 "PhotoFileFormat.c"
- GEnumValue* _tmp5_;
- GError* _tmp6_;
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self);
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s is read-only", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _inner_error_ = _tmp6_;
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_inner_error_->domain == PHOTO_FORMAT_ERROR) {
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_propagate_error (error, _inner_error_);
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_adapter_unref0 (writer);
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 1975 "PhotoFileFormat.c"
- } else {
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_adapter_unref0 (writer);
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.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 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_clear_error (&_inner_error_);
-#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 1985 "PhotoFileFormat.c"
- }
- }
-#line 294 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = writer;
-#line 294 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 1992 "PhotoFileFormat.c"
-}
-
-
-PhotoFileMetadataWriter*
-photo_file_format_create_metadata_writer (PhotoFileFormat self,
- const gchar* filepath,
- GError** error)
-{
- PhotoFileMetadataWriter* result = NULL;
- PhotoFileMetadataWriter* writer = NULL;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- PhotoFileMetadataWriter* _tmp2_;
- PhotoFileMetadataWriter* _tmp3_;
- PhotoFileMetadataWriter* _tmp4_;
- GError * _inner_error_ = NULL;
-#line 297 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_create_metadata_writer (_tmp1_, filepath);
-#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- writer = _tmp3_;
-#line 299 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = writer;
-#line 299 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp4_ == NULL) {
-#line 2027 "PhotoFileFormat.c"
- GEnumValue* _tmp5_;
- GError* _tmp6_;
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self);
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s metadata is read-only", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _inner_error_ = _tmp6_;
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_inner_error_->domain == PHOTO_FORMAT_ERROR) {
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_propagate_error (error, _inner_error_);
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_adapter_unref0 (writer);
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2044 "PhotoFileFormat.c"
- } else {
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_adapter_unref0 (writer);
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.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 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_clear_error (&_inner_error_);
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2054 "PhotoFileFormat.c"
- }
- }
-#line 302 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = writer;
-#line 302 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 2061 "PhotoFileFormat.c"
-}
-
-
-PhotoFileSniffer*
-photo_file_format_create_sniffer (PhotoFileFormat self,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PhotoFileSniffer* result = NULL;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- PhotoFileSniffer* _tmp2_;
- PhotoFileSniffer* _tmp3_;
-#line 305 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_create_sniffer (_tmp1_, file, options);
-#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp3_;
-#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 2091 "PhotoFileFormat.c"
-}
-
-
-PhotoMetadata*
-photo_file_format_create_metadata (PhotoFileFormat self)
-{
- PhotoMetadata* result = NULL;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- PhotoMetadata* _tmp2_;
- PhotoMetadata* _tmp3_;
-#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_create_metadata (_tmp1_);
-#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp3_;
-#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 2117 "PhotoFileFormat.c"
-}
-
-
-gchar*
-photo_file_format_get_default_mime_type (PhotoFileFormat self)
-{
- gchar* result = NULL;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- PhotoFileFormatProperties* _tmp2_;
- PhotoFileFormatProperties* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_get_properties (_tmp1_);
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = photo_file_format_properties_get_default_mime_type (_tmp3_);
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = _tmp4_;
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_properties_unref0 (_tmp3_);
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp5_;
-#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 2151 "PhotoFileFormat.c"
-}
-
-
-gchar**
-photo_file_format_get_mime_types (PhotoFileFormat self,
- int* result_length1)
-{
- gchar** result = NULL;
- PhotoFileFormatDriver* _tmp0_;
- PhotoFileFormatDriver* _tmp1_;
- PhotoFileFormatProperties* _tmp2_;
- PhotoFileFormatProperties* _tmp3_;
- gint _tmp4_;
- gchar** _tmp5_;
- gchar** _tmp6_;
- gint _tmp6__length1;
- gchar** _tmp7_;
- gint _tmp7__length1;
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = photo_file_format_get_driver (self);
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_driver_get_properties (_tmp1_);
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = _tmp2_;
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = photo_file_format_properties_get_mime_types (_tmp3_, &_tmp4_);
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6_ = _tmp5_;
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6__length1 = _tmp4_;
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_properties_unref0 (_tmp3_);
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _photo_file_format_driver_unref0 (_tmp1_);
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp7_ = _tmp6_;
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp7__length1 = _tmp6__length1;
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp7__length1;
-#line 2196 "PhotoFileFormat.c"
- }
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp7_;
-#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 2202 "PhotoFileFormat.c"
-}
-
-
-static void
-_vala_array_add47 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if ((*length) == (*size)) {
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 2218 "PhotoFileFormat.c"
- }
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- (*array)[(*length)++] = value;
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- (*array)[*length] = NULL;
-#line 2224 "PhotoFileFormat.c"
-}
-
-
-gchar**
-photo_file_format_get_editable_mime_types (int* result_length1)
-{
- gchar** result = NULL;
- gchar** mime_types = NULL;
- gchar** _tmp0_;
- gint mime_types_length1;
- gint _mime_types_size_;
- gint _tmp1_;
- PhotoFileFormat* _tmp2_;
- gchar** _tmp10_;
- gint _tmp10__length1;
-#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- mime_types = _tmp0_;
-#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- mime_types_length1 = 0;
-#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _mime_types_size_ = mime_types_length1;
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = photo_file_format_get_supported (&_tmp1_);
-#line 2250 "PhotoFileFormat.c"
- {
- PhotoFileFormat* file_format_collection = NULL;
- gint file_format_collection_length1 = 0;
- gint _file_format_collection_size_ = 0;
- gint file_format_it = 0;
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format_collection = _tmp2_;
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format_collection_length1 = _tmp1_;
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- for (file_format_it = 0; file_format_it < _tmp1_; file_format_it = file_format_it + 1) {
-#line 2262 "PhotoFileFormat.c"
- PhotoFileFormat file_format = 0;
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format = file_format_collection[file_format_it];
-#line 2266 "PhotoFileFormat.c"
- {
- PhotoFileFormat _tmp3_;
- gint _tmp4_;
- gchar** _tmp5_;
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = file_format;
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = photo_file_format_get_mime_types (_tmp3_, &_tmp4_);
-#line 2275 "PhotoFileFormat.c"
- {
- gchar** mime_type_collection = NULL;
- gint mime_type_collection_length1 = 0;
- gint _mime_type_collection_size_ = 0;
- gint mime_type_it = 0;
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- mime_type_collection = _tmp5_;
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- mime_type_collection_length1 = _tmp4_;
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- for (mime_type_it = 0; mime_type_it < _tmp4_; mime_type_it = mime_type_it + 1) {
-#line 2287 "PhotoFileFormat.c"
- gchar* _tmp6_;
- gchar* mime_type = NULL;
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6_ = g_strdup (mime_type_collection[mime_type_it]);
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- mime_type = _tmp6_;
-#line 2294 "PhotoFileFormat.c"
- {
- gchar** _tmp7_;
- gint _tmp7__length1;
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp7_ = mime_types;
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp7__length1 = mime_types_length1;
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp8_ = mime_type;
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _vala_array_add47 (&mime_types, &mime_types_length1, &_mime_types_size_, _tmp9_);
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (mime_type);
-#line 2312 "PhotoFileFormat.c"
- }
- }
-#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- mime_type_collection = (_vala_array_free (mime_type_collection, mime_type_collection_length1, (GDestroyNotify) g_free), NULL);
-#line 2317 "PhotoFileFormat.c"
- }
- }
- }
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- file_format_collection = (g_free (file_format_collection), NULL);
-#line 2323 "PhotoFileFormat.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp10_ = mime_types;
-#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp10__length1 = mime_types_length1;
-#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (result_length1) {
-#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *result_length1 = _tmp10__length1;
-#line 2333 "PhotoFileFormat.c"
- }
-#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp10_;
-#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 2339 "PhotoFileFormat.c"
-}
-
-
-GType
-photo_file_format_get_type (void)
-{
- static volatile gsize photo_file_format_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_format_type_id__volatile)) {
- static const GEnumValue values[] = {{PHOTO_FILE_FORMAT_JFIF, "PHOTO_FILE_FORMAT_JFIF", "jfif"}, {PHOTO_FILE_FORMAT_RAW, "PHOTO_FILE_FORMAT_RAW", "raw"}, {PHOTO_FILE_FORMAT_PNG, "PHOTO_FILE_FORMAT_PNG", "png"}, {PHOTO_FILE_FORMAT_TIFF, "PHOTO_FILE_FORMAT_TIFF", "tiff"}, {PHOTO_FILE_FORMAT_BMP, "PHOTO_FILE_FORMAT_BMP", "bmp"}, {PHOTO_FILE_FORMAT_UNKNOWN, "PHOTO_FILE_FORMAT_UNKNOWN", "unknown"}, {0, NULL, NULL}};
- GType photo_file_format_type_id;
- photo_file_format_type_id = g_enum_register_static ("PhotoFileFormat", values);
- g_once_init_leave (&photo_file_format_type_id__volatile, photo_file_format_type_id);
- }
- return photo_file_format_type_id__volatile;
-}
-
-
-static PhotoFileFormatProperties*
-photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self)
-{
-#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_get_properties'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2364 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormatProperties*
-photo_file_format_driver_get_properties (PhotoFileFormatDriver* self)
-{
-#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
-#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->get_properties (self);
-#line 2375 "PhotoFileFormat.c"
-}
-
-
-static PhotoFileReader*
-photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self,
- const gchar* filepath)
-{
-#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_reader'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2387 "PhotoFileFormat.c"
-}
-
-
-PhotoFileReader*
-photo_file_format_driver_create_reader (PhotoFileFormatDriver* self,
- const gchar* filepath)
-{
-#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
-#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_reader (self, filepath);
-#line 2399 "PhotoFileFormat.c"
-}
-
-
-static PhotoMetadata*
-photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self)
-{
-#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2410 "PhotoFileFormat.c"
-}
-
-
-PhotoMetadata*
-photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self)
-{
-#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
-#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_metadata (self);
-#line 2421 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_can_write_image'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return _tmp0_;
-#line 2433 "PhotoFileFormat.c"
-}
-
-
-gboolean
-photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self)
-{
-#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), FALSE);
-#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->can_write_image (self);
-#line 2444 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_can_write_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return _tmp0_;
-#line 2456 "PhotoFileFormat.c"
-}
-
-
-gboolean
-photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self)
-{
-#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), FALSE);
-#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->can_write_metadata (self);
-#line 2467 "PhotoFileFormat.c"
-}
-
-
-static PhotoFileWriter*
-photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self,
- const gchar* filepath)
-{
-#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_writer'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2479 "PhotoFileFormat.c"
-}
-
-
-PhotoFileWriter*
-photo_file_format_driver_create_writer (PhotoFileFormatDriver* self,
- const gchar* filepath)
-{
-#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
-#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_writer (self, filepath);
-#line 2491 "PhotoFileFormat.c"
-}
-
-
-static PhotoFileMetadataWriter*
-photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self,
- const gchar* filepath)
-{
-#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_metadata_writer'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2503 "PhotoFileFormat.c"
-}
-
-
-PhotoFileMetadataWriter*
-photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self,
- const gchar* filepath)
-{
-#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
-#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_metadata_writer (self, filepath);
-#line 2515 "PhotoFileFormat.c"
-}
-
-
-static PhotoFileSniffer*
-photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
-#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_sniffer'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2528 "PhotoFileFormat.c"
-}
-
-
-PhotoFileSniffer*
-photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
-#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL);
-#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_sniffer (self, file, options);
-#line 2541 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormatDriver*
-photo_file_format_driver_construct (GType object_type)
-{
- PhotoFileFormatDriver* self = NULL;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- self = (PhotoFileFormatDriver*) g_type_create_instance (object_type);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return self;
-#line 2553 "PhotoFileFormat.c"
-}
-
-
-static void
-value_photo_file_format_driver_init (GValue* value)
-{
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = NULL;
-#line 2562 "PhotoFileFormat.c"
-}
-
-
-static void
-value_photo_file_format_driver_free_value (GValue* value)
-{
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (value->data[0].v_pointer) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_driver_unref (value->data[0].v_pointer);
-#line 2573 "PhotoFileFormat.c"
- }
-}
-
-
-static void
-value_photo_file_format_driver_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (src_value->data[0].v_pointer) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- dest_value->data[0].v_pointer = photo_file_format_driver_ref (src_value->data[0].v_pointer);
-#line 2586 "PhotoFileFormat.c"
- } else {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2590 "PhotoFileFormat.c"
- }
-}
-
-
-static gpointer
-value_photo_file_format_driver_peek_pointer (const GValue* value)
-{
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return value->data[0].v_pointer;
-#line 2600 "PhotoFileFormat.c"
-}
-
-
-static gchar*
-value_photo_file_format_driver_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (collect_values[0].v_pointer) {
-#line 2612 "PhotoFileFormat.c"
- PhotoFileFormatDriver * object;
- object = collect_values[0].v_pointer;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2619 "PhotoFileFormat.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.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 2623 "PhotoFileFormat.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = photo_file_format_driver_ref (object);
-#line 2627 "PhotoFileFormat.c"
- } else {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = NULL;
-#line 2631 "PhotoFileFormat.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2635 "PhotoFileFormat.c"
-}
-
-
-static gchar*
-value_photo_file_format_driver_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoFileFormatDriver ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (!object_p) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2651 "PhotoFileFormat.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (!value->data[0].v_pointer) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *object_p = NULL;
-#line 2657 "PhotoFileFormat.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *object_p = value->data[0].v_pointer;
-#line 2661 "PhotoFileFormat.c"
- } else {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *object_p = photo_file_format_driver_ref (value->data[0].v_pointer);
-#line 2665 "PhotoFileFormat.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2669 "PhotoFileFormat.c"
-}
-
-
-GParamSpec*
-param_spec_photo_file_format_driver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPhotoFileFormatDriver* spec;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_FORMAT_DRIVER), NULL);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return G_PARAM_SPEC (spec);
-#line 2689 "PhotoFileFormat.c"
-}
-
-
-gpointer
-value_get_photo_file_format_driver (const GValue* value)
-{
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER), NULL);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return value->data[0].v_pointer;
-#line 2700 "PhotoFileFormat.c"
-}
-
-
-void
-value_set_photo_file_format_driver (GValue* value,
- gpointer v_object)
-{
- PhotoFileFormatDriver * old;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER));
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- old = value->data[0].v_pointer;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (v_object) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_DRIVER));
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = v_object;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_driver_ref (value->data[0].v_pointer);
-#line 2723 "PhotoFileFormat.c"
- } else {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = NULL;
-#line 2727 "PhotoFileFormat.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (old) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_driver_unref (old);
-#line 2733 "PhotoFileFormat.c"
- }
-}
-
-
-void
-value_take_photo_file_format_driver (GValue* value,
- gpointer v_object)
-{
- PhotoFileFormatDriver * old;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER));
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- old = value->data[0].v_pointer;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (v_object) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_DRIVER));
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = v_object;
-#line 2755 "PhotoFileFormat.c"
- } else {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = NULL;
-#line 2759 "PhotoFileFormat.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (old) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_driver_unref (old);
-#line 2765 "PhotoFileFormat.c"
- }
-}
-
-
-static void
-photo_file_format_driver_class_init (PhotoFileFormatDriverClass * klass)
-{
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_driver_parent_class = g_type_class_peek_parent (klass);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->finalize = photo_file_format_driver_finalize;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) photo_file_format_driver_real_get_properties;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) photo_file_format_driver_real_create_reader;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) photo_file_format_driver_real_create_metadata;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) photo_file_format_driver_real_can_write_image;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) photo_file_format_driver_real_can_write_metadata;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photo_file_format_driver_real_create_writer;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photo_file_format_driver_real_create_metadata_writer;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) photo_file_format_driver_real_create_sniffer;
-#line 2793 "PhotoFileFormat.c"
-}
-
-
-static void
-photo_file_format_driver_instance_init (PhotoFileFormatDriver * self)
-{
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- self->ref_count = 1;
-#line 2802 "PhotoFileFormat.c"
-}
-
-
-static void
-photo_file_format_driver_finalize (PhotoFileFormatDriver * obj)
-{
- PhotoFileFormatDriver * self;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_signal_handlers_destroy (self);
-#line 2814 "PhotoFileFormat.c"
-}
-
-
-GType
-photo_file_format_driver_get_type (void)
-{
- static volatile gsize photo_file_format_driver_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_format_driver_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_photo_file_format_driver_init, value_photo_file_format_driver_free_value, value_photo_file_format_driver_copy_value, value_photo_file_format_driver_peek_pointer, "p", value_photo_file_format_driver_collect_value, "p", value_photo_file_format_driver_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileFormatDriver), 0, (GInstanceInitFunc) photo_file_format_driver_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_file_format_driver_type_id;
- photo_file_format_driver_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileFormatDriver", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_file_format_driver_type_id__volatile, photo_file_format_driver_type_id);
- }
- return photo_file_format_driver_type_id__volatile;
-}
-
-
-gpointer
-photo_file_format_driver_ref (gpointer instance)
-{
- PhotoFileFormatDriver * self;
- self = instance;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return instance;
-#line 2843 "PhotoFileFormat.c"
-}
-
-
-void
-photo_file_format_driver_unref (gpointer instance)
-{
- PhotoFileFormatDriver * self;
- self = instance;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->finalize (self);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2858 "PhotoFileFormat.c"
- }
-}
-
-
-GType
-photo_file_format_flags_get_type (void)
-{
- static volatile gsize photo_file_format_flags_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_format_flags_type_id__volatile)) {
- static const GEnumValue values[] = {{PHOTO_FILE_FORMAT_FLAGS_NONE, "PHOTO_FILE_FORMAT_FLAGS_NONE", "none"}, {0, NULL, NULL}};
- GType photo_file_format_flags_type_id;
- photo_file_format_flags_type_id = g_enum_register_static ("PhotoFileFormatFlags", values);
- g_once_init_leave (&photo_file_format_flags_type_id__volatile, photo_file_format_flags_type_id);
- }
- return photo_file_format_flags_type_id__volatile;
-}
-
-
-static PhotoFileFormat
-photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self)
-{
-#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_file_format'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return 0;
-#line 2884 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormat
-photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self)
-{
-#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), 0);
-#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_file_format (self);
-#line 2895 "PhotoFileFormat.c"
-}
-
-
-static PhotoFileFormatFlags
-photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self)
-{
-#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_flags'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return 0;
-#line 2906 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormatFlags
-photo_file_format_properties_get_flags (PhotoFileFormatProperties* self)
-{
-#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), 0);
-#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_flags (self);
-#line 2917 "PhotoFileFormat.c"
-}
-
-
-static gboolean
-photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self,
- const gchar* ext)
-{
- gboolean result = FALSE;
- gint _tmp0_;
- gchar** _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- gboolean _tmp3_;
-#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (ext != NULL, FALSE);
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = photo_file_format_properties_get_known_extensions (self, &_tmp0_);
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = _tmp1_;
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2__length1 = _tmp0_;
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp3_ = is_in_ci_array (ext, _tmp2_, _tmp0_);
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL);
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp3_;
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 2947 "PhotoFileFormat.c"
-}
-
-
-gboolean
-photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self,
- const gchar* ext)
-{
-#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), FALSE);
-#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->is_recognized_extension (self, ext);
-#line 2959 "PhotoFileFormat.c"
-}
-
-
-static gchar*
-photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self)
-{
-#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_default_extension'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2970 "PhotoFileFormat.c"
-}
-
-
-gchar*
-photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self)
-{
-#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
-#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_default_extension (self);
-#line 2981 "PhotoFileFormat.c"
-}
-
-
-static gchar**
-photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self,
- int* result_length1)
-{
-#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_known_extensions'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 2993 "PhotoFileFormat.c"
-}
-
-
-gchar**
-photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self,
- int* result_length1)
-{
-#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
-#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_known_extensions (self, result_length1);
-#line 3005 "PhotoFileFormat.c"
-}
-
-
-static gchar*
-photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self)
-{
-#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_default_mime_type'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 3016 "PhotoFileFormat.c"
-}
-
-
-gchar*
-photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self)
-{
-#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
-#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_default_mime_type (self);
-#line 3027 "PhotoFileFormat.c"
-}
-
-
-static gchar**
-photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self,
- int* result_length1)
-{
-#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_mime_types'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 3039 "PhotoFileFormat.c"
-}
-
-
-gchar**
-photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self,
- int* result_length1)
-{
-#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
-#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_mime_types (self, result_length1);
-#line 3051 "PhotoFileFormat.c"
-}
-
-
-static gchar*
-photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self)
-{
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_user_visible_name'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 3062 "PhotoFileFormat.c"
-}
-
-
-gchar*
-photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self)
-{
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_user_visible_name (self);
-#line 3073 "PhotoFileFormat.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return self ? g_object_ref (self) : NULL;
-#line 3082 "PhotoFileFormat.c"
-}
-
-
-GFile*
-photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self,
- GFile* file)
-{
- GFile* result = NULL;
- gchar* name = NULL;
- gchar* ext = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
- const gchar* _tmp5_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- GFile* _tmp15_;
- GFile* _tmp16_;
-#line 401 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL);
-#line 401 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp0_ = g_file_get_basename (file);
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp1_ = _tmp0_;
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- disassemble_filename (_tmp1_, &_tmp2_, &_tmp3_);
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- name = _tmp2_;
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ext = _tmp3_;
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (_tmp1_);
-#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp5_ = ext;
-#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp5_ != NULL) {
-#line 3132 "PhotoFileFormat.c"
- const gchar* _tmp6_;
-#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp6_ = ext;
-#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = photo_file_format_properties_is_recognized_extension (self, _tmp6_);
-#line 3138 "PhotoFileFormat.c"
- } else {
-#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp4_ = FALSE;
-#line 3142 "PhotoFileFormat.c"
- }
-#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (_tmp4_) {
-#line 3146 "PhotoFileFormat.c"
- GFile* _tmp7_;
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp7_ = _g_object_ref0 (file);
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp7_;
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 3158 "PhotoFileFormat.c"
- }
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp8_ = g_file_get_parent (file);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp9_ = _tmp8_;
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp10_ = name;
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp11_ = photo_file_format_properties_get_default_extension (self);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp12_ = _tmp11_;
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp13_ = g_strdup_printf ("%s.%s", _tmp10_, _tmp12_);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp14_ = _tmp13_;
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp15_ = g_file_get_child (_tmp9_, _tmp14_);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _tmp16_ = _tmp15_;
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (_tmp14_);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (_tmp12_);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_object_unref0 (_tmp9_);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- result = _tmp16_;
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (ext);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- _g_free0 (name);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return result;
-#line 3192 "PhotoFileFormat.c"
-}
-
-
-PhotoFileFormatProperties*
-photo_file_format_properties_construct (GType object_type)
-{
- PhotoFileFormatProperties* self = NULL;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- self = (PhotoFileFormatProperties*) g_type_create_instance (object_type);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return self;
-#line 3204 "PhotoFileFormat.c"
-}
-
-
-static void
-value_photo_file_format_properties_init (GValue* value)
-{
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = NULL;
-#line 3213 "PhotoFileFormat.c"
-}
-
-
-static void
-value_photo_file_format_properties_free_value (GValue* value)
-{
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (value->data[0].v_pointer) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_properties_unref (value->data[0].v_pointer);
-#line 3224 "PhotoFileFormat.c"
- }
-}
-
-
-static void
-value_photo_file_format_properties_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (src_value->data[0].v_pointer) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- dest_value->data[0].v_pointer = photo_file_format_properties_ref (src_value->data[0].v_pointer);
-#line 3237 "PhotoFileFormat.c"
- } else {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3241 "PhotoFileFormat.c"
- }
-}
-
-
-static gpointer
-value_photo_file_format_properties_peek_pointer (const GValue* value)
-{
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return value->data[0].v_pointer;
-#line 3251 "PhotoFileFormat.c"
-}
-
-
-static gchar*
-value_photo_file_format_properties_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (collect_values[0].v_pointer) {
-#line 3263 "PhotoFileFormat.c"
- PhotoFileFormatProperties * object;
- object = collect_values[0].v_pointer;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3270 "PhotoFileFormat.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.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 3274 "PhotoFileFormat.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = photo_file_format_properties_ref (object);
-#line 3278 "PhotoFileFormat.c"
- } else {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = NULL;
-#line 3282 "PhotoFileFormat.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 3286 "PhotoFileFormat.c"
-}
-
-
-static gchar*
-value_photo_file_format_properties_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoFileFormatProperties ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (!object_p) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3302 "PhotoFileFormat.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (!value->data[0].v_pointer) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *object_p = NULL;
-#line 3308 "PhotoFileFormat.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *object_p = value->data[0].v_pointer;
-#line 3312 "PhotoFileFormat.c"
- } else {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- *object_p = photo_file_format_properties_ref (value->data[0].v_pointer);
-#line 3316 "PhotoFileFormat.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return NULL;
-#line 3320 "PhotoFileFormat.c"
-}
-
-
-GParamSpec*
-param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPhotoFileFormatProperties* spec;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_FORMAT_PROPERTIES), NULL);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return G_PARAM_SPEC (spec);
-#line 3340 "PhotoFileFormat.c"
-}
-
-
-gpointer
-value_get_photo_file_format_properties (const GValue* value)
-{
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES), NULL);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return value->data[0].v_pointer;
-#line 3351 "PhotoFileFormat.c"
-}
-
-
-void
-value_set_photo_file_format_properties (GValue* value,
- gpointer v_object)
-{
- PhotoFileFormatProperties * old;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES));
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- old = value->data[0].v_pointer;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (v_object) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_PROPERTIES));
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = v_object;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_properties_ref (value->data[0].v_pointer);
-#line 3374 "PhotoFileFormat.c"
- } else {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = NULL;
-#line 3378 "PhotoFileFormat.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (old) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_properties_unref (old);
-#line 3384 "PhotoFileFormat.c"
- }
-}
-
-
-void
-value_take_photo_file_format_properties (GValue* value,
- gpointer v_object)
-{
- PhotoFileFormatProperties * old;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES));
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- old = value->data[0].v_pointer;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (v_object) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_PROPERTIES));
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = v_object;
-#line 3406 "PhotoFileFormat.c"
- } else {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- value->data[0].v_pointer = NULL;
-#line 3410 "PhotoFileFormat.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (old) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_properties_unref (old);
-#line 3416 "PhotoFileFormat.c"
- }
-}
-
-
-static void
-photo_file_format_properties_class_init (PhotoFileFormatPropertiesClass * klass)
-{
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- photo_file_format_properties_parent_class = g_type_class_peek_parent (klass);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->finalize = photo_file_format_properties_finalize;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_file_format;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_flags;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->is_recognized_extension = (gboolean (*) (PhotoFileFormatProperties *, const gchar*)) photo_file_format_properties_real_is_recognized_extension;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_default_extension;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) photo_file_format_properties_real_get_known_extensions;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_default_mime_type;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) photo_file_format_properties_real_get_mime_types;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_user_visible_name;
-#line 3444 "PhotoFileFormat.c"
-}
-
-
-static void
-photo_file_format_properties_instance_init (PhotoFileFormatProperties * self)
-{
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- self->ref_count = 1;
-#line 3453 "PhotoFileFormat.c"
-}
-
-
-static void
-photo_file_format_properties_finalize (PhotoFileFormatProperties * obj)
-{
- PhotoFileFormatProperties * self;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_signal_handlers_destroy (self);
-#line 3465 "PhotoFileFormat.c"
-}
-
-
-GType
-photo_file_format_properties_get_type (void)
-{
- static volatile gsize photo_file_format_properties_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_format_properties_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_photo_file_format_properties_init, value_photo_file_format_properties_free_value, value_photo_file_format_properties_copy_value, value_photo_file_format_properties_peek_pointer, "p", value_photo_file_format_properties_collect_value, "p", value_photo_file_format_properties_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileFormatProperties), 0, (GInstanceInitFunc) photo_file_format_properties_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_file_format_properties_type_id;
- photo_file_format_properties_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileFormatProperties", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_file_format_properties_type_id__volatile, photo_file_format_properties_type_id);
- }
- return photo_file_format_properties_type_id__volatile;
-}
-
-
-gpointer
-photo_file_format_properties_ref (gpointer instance)
-{
- PhotoFileFormatProperties * self;
- self = instance;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- return instance;
-#line 3494 "PhotoFileFormat.c"
-}
-
-
-void
-photo_file_format_properties_unref (gpointer instance)
-{
- PhotoFileFormatProperties * self;
- self = instance;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->finalize (self);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3509 "PhotoFileFormat.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/photos/PhotoFileFormat.vala b/src/photos/PhotoFileFormat.vala
index 725bd1d..e642008 100644
--- a/src/photos/PhotoFileFormat.vala
+++ b/src/photos/PhotoFileFormat.vala
@@ -57,12 +57,13 @@ public enum PhotoFileFormat {
PNG,
TIFF,
BMP,
+ GIF,
UNKNOWN;
// This is currently listed in the order of detection, that is, the file is examined from
// left to right. (See PhotoFileInterrogator.)
public static PhotoFileFormat[] get_supported() {
- return { JFIF, RAW, PNG, TIFF, BMP };
+ return { JFIF, RAW, PNG, TIFF, BMP, GIF };
}
public static PhotoFileFormat[] get_writeable() {
@@ -137,6 +138,9 @@ public enum PhotoFileFormat {
case BMP:
return 4;
+
+ case GIF:
+ return 5;
case UNKNOWN:
default:
@@ -161,6 +165,9 @@ public enum PhotoFileFormat {
case 4:
return BMP;
+
+ case 5:
+ return GIF;
default:
return UNKNOWN;
@@ -184,7 +191,9 @@ public enum PhotoFileFormat {
case GPhoto.MIME.BMP:
return PhotoFileFormat.BMP;
-
+
+ // GPhoto does not have GIF
+
default:
// check file extension against those we support
return PhotoFileFormat.UNKNOWN;
@@ -205,6 +214,9 @@ public enum PhotoFileFormat {
case "bmp":
return PhotoFileFormat.BMP;
+
+ case "gif":
+ return PhotoFileFormat.GIF;
default:
return PhotoFileFormat.UNKNOWN;
@@ -233,6 +245,10 @@ public enum PhotoFileFormat {
Photos.BmpFileFormatDriver.init();
break;
+ case GIF:
+ Photos.GifFileFormatDriver.init();
+ break;
+
default:
error("Unsupported file format %s", this.to_string());
}
@@ -255,6 +271,9 @@ public enum PhotoFileFormat {
case BMP:
return Photos.BmpFileFormatDriver.get_instance();
+ case GIF:
+ return Photos.GifFileFormatDriver.get_instance();
+
default:
error("Unsupported file format %s", this.to_string());
}
diff --git a/src/photos/PhotoFileSniffer.c b/src/photos/PhotoFileSniffer.c
deleted file mode 100644
index 04d5d07..0000000
--- a/src/photos/PhotoFileSniffer.c
+++ /dev/null
@@ -1,1534 +0,0 @@
-/* PhotoFileSniffer.c generated by valac 0.40.4, the Vala compiler
- * generated from PhotoFileSniffer.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
-#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
-#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
-#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
-#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-
-typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
-typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
-typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _ParamSpecDetectedPhotoInformation ParamSpecDetectedPhotoInformation;
-
-#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
-#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
-#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
-#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
-#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-
-typedef struct _PhotoFileSniffer PhotoFileSniffer;
-typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
-typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecPhotoFileSniffer ParamSpecPhotoFileSniffer;
-
-#define TYPE_PHOTO_FILE_INTERROGATOR (photo_file_interrogator_get_type ())
-#define PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogator))
-#define PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass))
-#define IS_PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_INTERROGATOR))
-#define IS_PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_INTERROGATOR))
-#define PHOTO_FILE_INTERROGATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass))
-
-typedef struct _PhotoFileInterrogator PhotoFileInterrogator;
-typedef struct _PhotoFileInterrogatorClass PhotoFileInterrogatorClass;
-typedef struct _PhotoFileInterrogatorPrivate PhotoFileInterrogatorPrivate;
-#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
-#define _photo_file_sniffer_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_sniffer_unref (var), NULL)))
-typedef struct _ParamSpecPhotoFileInterrogator ParamSpecPhotoFileInterrogator;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _DetectedPhotoInformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DetectedPhotoInformationPrivate * priv;
- PhotoFileFormat file_format;
- PhotoMetadata* metadata;
- gchar* md5;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* format_name;
- Dimensions image_dim;
- GdkColorspace colorspace;
- gint channels;
- gint bits_per_channel;
-};
-
-struct _DetectedPhotoInformationClass {
- GTypeClass parent_class;
- void (*finalize) (DetectedPhotoInformation *self);
-};
-
-struct _ParamSpecDetectedPhotoInformation {
- GParamSpec parent_instance;
-};
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoFileSniffer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileSnifferPrivate * priv;
- GFile* file;
- PhotoFileSnifferOptions options;
- gboolean calc_md5;
-};
-
-struct _PhotoFileSnifferClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileSniffer *self);
- DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error);
-};
-
-struct _ParamSpecPhotoFileSniffer {
- GParamSpec parent_instance;
-};
-
-struct _PhotoFileInterrogator {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileInterrogatorPrivate * priv;
-};
-
-struct _PhotoFileInterrogatorClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileInterrogator *self);
-};
-
-struct _PhotoFileInterrogatorPrivate {
- GFile* file;
- PhotoFileSnifferOptions options;
- DetectedPhotoInformation* detected;
- gboolean is_photo_corrupted;
-};
-
-struct _ParamSpecPhotoFileInterrogator {
- GParamSpec parent_instance;
-};
-
-
-static gpointer detected_photo_information_parent_class = NULL;
-static gpointer photo_file_sniffer_parent_class = NULL;
-static gpointer photo_file_interrogator_parent_class = NULL;
-
-gpointer detected_photo_information_ref (gpointer instance);
-void detected_photo_information_unref (gpointer instance);
-GParamSpec* param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_detected_photo_information (GValue* value,
- gpointer v_object);
-void value_take_detected_photo_information (GValue* value,
- gpointer v_object);
-gpointer value_get_detected_photo_information (const GValue* value);
-GType detected_photo_information_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-DetectedPhotoInformation* detected_photo_information_new (void);
-DetectedPhotoInformation* detected_photo_information_construct (GType object_type);
-static void detected_photo_information_finalize (DetectedPhotoInformation * obj);
-gpointer photo_file_sniffer_ref (gpointer instance);
-void photo_file_sniffer_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_sniffer (GValue* value,
- gpointer v_object);
-void value_take_photo_file_sniffer (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_sniffer (const GValue* value);
-GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-PhotoFileSniffer* photo_file_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self,
- gboolean* is_corrupted,
- GError** error);
-static DetectedPhotoInformation* photo_file_sniffer_real_sniff (PhotoFileSniffer* self,
- gboolean* is_corrupted,
- GError** error);
-static void photo_file_sniffer_finalize (PhotoFileSniffer * obj);
-gpointer photo_file_interrogator_ref (gpointer instance);
-void photo_file_interrogator_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_interrogator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_interrogator (GValue* value,
- gpointer v_object);
-void value_take_photo_file_interrogator (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_interrogator (const GValue* value);
-GType photo_file_interrogator_get_type (void) G_GNUC_CONST;
-#define PHOTO_FILE_INTERROGATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorPrivate))
-PhotoFileInterrogator* photo_file_interrogator_new (GFile* file,
- PhotoFileSnifferOptions options);
-PhotoFileInterrogator* photo_file_interrogator_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-DetectedPhotoInformation* photo_file_interrogator_get_detected_photo_information (PhotoFileInterrogator* self);
-gboolean photo_file_interrogator_get_is_photo_corrupted (PhotoFileInterrogator* self);
-void photo_file_interrogator_interrogate (PhotoFileInterrogator* self,
- GError** error);
-PhotoFileFormat* photo_file_format_get_supported (int* result_length1);
-PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self,
- GFile* file,
- PhotoFileSnifferOptions options);
-static void photo_file_interrogator_finalize (PhotoFileInterrogator * obj);
-
-
-DetectedPhotoInformation*
-detected_photo_information_construct (GType object_type)
-{
- DetectedPhotoInformation* self = NULL;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self = (DetectedPhotoInformation*) g_type_create_instance (object_type);
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return self;
-#line 282 "PhotoFileSniffer.c"
-}
-
-
-DetectedPhotoInformation*
-detected_photo_information_new (void)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return detected_photo_information_construct (TYPE_DETECTED_PHOTO_INFORMATION);
-#line 291 "PhotoFileSniffer.c"
-}
-
-
-static void
-value_detected_photo_information_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 300 "PhotoFileSniffer.c"
-}
-
-
-static void
-value_detected_photo_information_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- detected_photo_information_unref (value->data[0].v_pointer);
-#line 311 "PhotoFileSniffer.c"
- }
-}
-
-
-static void
-value_detected_photo_information_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- dest_value->data[0].v_pointer = detected_photo_information_ref (src_value->data[0].v_pointer);
-#line 324 "PhotoFileSniffer.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 328 "PhotoFileSniffer.c"
- }
-}
-
-
-static gpointer
-value_detected_photo_information_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return value->data[0].v_pointer;
-#line 338 "PhotoFileSniffer.c"
-}
-
-
-static gchar*
-value_detected_photo_information_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (collect_values[0].v_pointer) {
-#line 350 "PhotoFileSniffer.c"
- DetectedPhotoInformation * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 357 "PhotoFileSniffer.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.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 361 "PhotoFileSniffer.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = detected_photo_information_ref (object);
-#line 365 "PhotoFileSniffer.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 369 "PhotoFileSniffer.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return NULL;
-#line 373 "PhotoFileSniffer.c"
-}
-
-
-static gchar*
-value_detected_photo_information_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- DetectedPhotoInformation ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 389 "PhotoFileSniffer.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = NULL;
-#line 395 "PhotoFileSniffer.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = value->data[0].v_pointer;
-#line 399 "PhotoFileSniffer.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = detected_photo_information_ref (value->data[0].v_pointer);
-#line 403 "PhotoFileSniffer.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return NULL;
-#line 407 "PhotoFileSniffer.c"
-}
-
-
-GParamSpec*
-param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecDetectedPhotoInformation* spec;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_DETECTED_PHOTO_INFORMATION), NULL);
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return G_PARAM_SPEC (spec);
-#line 427 "PhotoFileSniffer.c"
-}
-
-
-gpointer
-value_get_detected_photo_information (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DETECTED_PHOTO_INFORMATION), NULL);
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return value->data[0].v_pointer;
-#line 438 "PhotoFileSniffer.c"
-}
-
-
-void
-value_set_detected_photo_information (GValue* value,
- gpointer v_object)
-{
- DetectedPhotoInformation * old;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DETECTED_PHOTO_INFORMATION));
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DETECTED_PHOTO_INFORMATION));
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- 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/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- detected_photo_information_ref (value->data[0].v_pointer);
-#line 461 "PhotoFileSniffer.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 465 "PhotoFileSniffer.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- detected_photo_information_unref (old);
-#line 471 "PhotoFileSniffer.c"
- }
-}
-
-
-void
-value_take_detected_photo_information (GValue* value,
- gpointer v_object)
-{
- DetectedPhotoInformation * old;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DETECTED_PHOTO_INFORMATION));
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DETECTED_PHOTO_INFORMATION));
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- 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/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = v_object;
-#line 493 "PhotoFileSniffer.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 497 "PhotoFileSniffer.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- detected_photo_information_unref (old);
-#line 503 "PhotoFileSniffer.c"
- }
-}
-
-
-static void
-detected_photo_information_class_init (DetectedPhotoInformationClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- detected_photo_information_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- ((DetectedPhotoInformationClass *) klass)->finalize = detected_photo_information_finalize;
-#line 515 "PhotoFileSniffer.c"
-}
-
-
-static void
-detected_photo_information_instance_init (DetectedPhotoInformation * self)
-{
-#line 8 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->file_format = PHOTO_FILE_FORMAT_UNKNOWN;
-#line 9 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->metadata = NULL;
-#line 10 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->md5 = NULL;
-#line 11 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->exif_md5 = NULL;
-#line 12 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->thumbnail_md5 = NULL;
-#line 13 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->format_name = NULL;
-#line 14 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- dimensions_init (&self->image_dim, 0, 0);
-#line 15 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->colorspace = GDK_COLORSPACE_RGB;
-#line 16 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->channels = 0;
-#line 17 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->bits_per_channel = 0;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->ref_count = 1;
-#line 544 "PhotoFileSniffer.c"
-}
-
-
-static void
-detected_photo_information_finalize (DetectedPhotoInformation * obj)
-{
- DetectedPhotoInformation * self;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation);
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_signal_handlers_destroy (self);
-#line 9 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _media_metadata_unref0 (self->metadata);
-#line 10 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_free0 (self->md5);
-#line 11 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_free0 (self->exif_md5);
-#line 12 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_free0 (self->thumbnail_md5);
-#line 13 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_free0 (self->format_name);
-#line 566 "PhotoFileSniffer.c"
-}
-
-
-GType
-detected_photo_information_get_type (void)
-{
- static volatile gsize detected_photo_information_type_id__volatile = 0;
- if (g_once_init_enter (&detected_photo_information_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_detected_photo_information_init, value_detected_photo_information_free_value, value_detected_photo_information_copy_value, value_detected_photo_information_peek_pointer, "p", value_detected_photo_information_collect_value, "p", value_detected_photo_information_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (DetectedPhotoInformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) detected_photo_information_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DetectedPhotoInformation), 0, (GInstanceInitFunc) detected_photo_information_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType detected_photo_information_type_id;
- detected_photo_information_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DetectedPhotoInformation", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&detected_photo_information_type_id__volatile, detected_photo_information_type_id);
- }
- return detected_photo_information_type_id__volatile;
-}
-
-
-gpointer
-detected_photo_information_ref (gpointer instance)
-{
- DetectedPhotoInformation * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return instance;
-#line 595 "PhotoFileSniffer.c"
-}
-
-
-void
-detected_photo_information_unref (gpointer instance)
-{
- DetectedPhotoInformation * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- DETECTED_PHOTO_INFORMATION_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 610 "PhotoFileSniffer.c"
- }
-}
-
-
-GType
-photo_file_sniffer_options_get_type (void)
-{
- static volatile gsize photo_file_sniffer_options_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_sniffer_options_type_id__volatile)) {
- static const GEnumValue values[] = {{PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, "PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL", "get-all"}, {PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, "PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5", "no-md5"}, {0, NULL, NULL}};
- GType photo_file_sniffer_options_type_id;
- photo_file_sniffer_options_type_id = g_enum_register_static ("PhotoFileSnifferOptions", values);
- g_once_init_leave (&photo_file_sniffer_options_type_id__volatile, photo_file_sniffer_options_type_id);
- }
- return photo_file_sniffer_options_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return self ? g_object_ref (self) : NULL;
-#line 634 "PhotoFileSniffer.c"
-}
-
-
-PhotoFileSniffer*
-photo_file_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PhotoFileSniffer* self = NULL;
- GFile* _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self = (PhotoFileSniffer*) g_type_create_instance (object_type);
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_object_unref0 (self->file);
-#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->file = _tmp0_;
-#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->options = options;
-#line 46 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->calc_md5 = (options & PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5) == 0;
-#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return self;
-#line 661 "PhotoFileSniffer.c"
-}
-
-
-static DetectedPhotoInformation*
-photo_file_sniffer_real_sniff (PhotoFileSniffer* self,
- gboolean* is_corrupted,
- GError** error)
-{
-#line 49 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_file_sniffer_sniff'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 49 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return NULL;
-#line 674 "PhotoFileSniffer.c"
-}
-
-
-DetectedPhotoInformation*
-photo_file_sniffer_sniff (PhotoFileSniffer* self,
- gboolean* is_corrupted,
- GError** error)
-{
-#line 49 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_SNIFFER (self), NULL);
-#line 49 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return PHOTO_FILE_SNIFFER_GET_CLASS (self)->sniff (self, is_corrupted, error);
-#line 687 "PhotoFileSniffer.c"
-}
-
-
-static void
-value_photo_file_sniffer_init (GValue* value)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 696 "PhotoFileSniffer.c"
-}
-
-
-static void
-value_photo_file_sniffer_free_value (GValue* value)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (value->data[0].v_pointer) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_sniffer_unref (value->data[0].v_pointer);
-#line 707 "PhotoFileSniffer.c"
- }
-}
-
-
-static void
-value_photo_file_sniffer_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (src_value->data[0].v_pointer) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- dest_value->data[0].v_pointer = photo_file_sniffer_ref (src_value->data[0].v_pointer);
-#line 720 "PhotoFileSniffer.c"
- } else {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 724 "PhotoFileSniffer.c"
- }
-}
-
-
-static gpointer
-value_photo_file_sniffer_peek_pointer (const GValue* value)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return value->data[0].v_pointer;
-#line 734 "PhotoFileSniffer.c"
-}
-
-
-static gchar*
-value_photo_file_sniffer_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (collect_values[0].v_pointer) {
-#line 746 "PhotoFileSniffer.c"
- PhotoFileSniffer * object;
- object = collect_values[0].v_pointer;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 753 "PhotoFileSniffer.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.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 757 "PhotoFileSniffer.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = photo_file_sniffer_ref (object);
-#line 761 "PhotoFileSniffer.c"
- } else {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 765 "PhotoFileSniffer.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return NULL;
-#line 769 "PhotoFileSniffer.c"
-}
-
-
-static gchar*
-value_photo_file_sniffer_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoFileSniffer ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (!object_p) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 785 "PhotoFileSniffer.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (!value->data[0].v_pointer) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = NULL;
-#line 791 "PhotoFileSniffer.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = value->data[0].v_pointer;
-#line 795 "PhotoFileSniffer.c"
- } else {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = photo_file_sniffer_ref (value->data[0].v_pointer);
-#line 799 "PhotoFileSniffer.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return NULL;
-#line 803 "PhotoFileSniffer.c"
-}
-
-
-GParamSpec*
-param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPhotoFileSniffer* spec;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_SNIFFER), NULL);
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return G_PARAM_SPEC (spec);
-#line 823 "PhotoFileSniffer.c"
-}
-
-
-gpointer
-value_get_photo_file_sniffer (const GValue* value)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_SNIFFER), NULL);
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return value->data[0].v_pointer;
-#line 834 "PhotoFileSniffer.c"
-}
-
-
-void
-value_set_photo_file_sniffer (GValue* value,
- gpointer v_object)
-{
- PhotoFileSniffer * old;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_SNIFFER));
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- old = value->data[0].v_pointer;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (v_object) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_SNIFFER));
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = v_object;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_sniffer_ref (value->data[0].v_pointer);
-#line 857 "PhotoFileSniffer.c"
- } else {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 861 "PhotoFileSniffer.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (old) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_sniffer_unref (old);
-#line 867 "PhotoFileSniffer.c"
- }
-}
-
-
-void
-value_take_photo_file_sniffer (GValue* value,
- gpointer v_object)
-{
- PhotoFileSniffer * old;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_SNIFFER));
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- old = value->data[0].v_pointer;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (v_object) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_SNIFFER));
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = v_object;
-#line 889 "PhotoFileSniffer.c"
- } else {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 893 "PhotoFileSniffer.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (old) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_sniffer_unref (old);
-#line 899 "PhotoFileSniffer.c"
- }
-}
-
-
-static void
-photo_file_sniffer_class_init (PhotoFileSnifferClass * klass)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- ((PhotoFileSnifferClass *) klass)->finalize = photo_file_sniffer_finalize;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) photo_file_sniffer_real_sniff;
-#line 913 "PhotoFileSniffer.c"
-}
-
-
-static void
-photo_file_sniffer_instance_init (PhotoFileSniffer * self)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->ref_count = 1;
-#line 922 "PhotoFileSniffer.c"
-}
-
-
-static void
-photo_file_sniffer_finalize (PhotoFileSniffer * obj)
-{
- PhotoFileSniffer * self;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer);
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_signal_handlers_destroy (self);
-#line 38 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_object_unref0 (self->file);
-#line 936 "PhotoFileSniffer.c"
-}
-
-
-GType
-photo_file_sniffer_get_type (void)
-{
- static volatile gsize photo_file_sniffer_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_sniffer_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_photo_file_sniffer_init, value_photo_file_sniffer_free_value, value_photo_file_sniffer_copy_value, value_photo_file_sniffer_peek_pointer, "p", value_photo_file_sniffer_collect_value, "p", value_photo_file_sniffer_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoFileSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileSniffer), 0, (GInstanceInitFunc) photo_file_sniffer_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_file_sniffer_type_id;
- photo_file_sniffer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileSniffer", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_file_sniffer_type_id__volatile, photo_file_sniffer_type_id);
- }
- return photo_file_sniffer_type_id__volatile;
-}
-
-
-gpointer
-photo_file_sniffer_ref (gpointer instance)
-{
- PhotoFileSniffer * self;
- self = instance;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return instance;
-#line 965 "PhotoFileSniffer.c"
-}
-
-
-void
-photo_file_sniffer_unref (gpointer instance)
-{
- PhotoFileSniffer * self;
- self = instance;
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- PHOTO_FILE_SNIFFER_GET_CLASS (self)->finalize (self);
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 980 "PhotoFileSniffer.c"
- }
-}
-
-
-PhotoFileInterrogator*
-photo_file_interrogator_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PhotoFileInterrogator* self = NULL;
- GFile* _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self = (PhotoFileInterrogator*) g_type_create_instance (object_type);
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_object_unref0 (self->priv->file);
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->priv->file = _tmp0_;
-#line 70 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->priv->options = options;
-#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return self;
-#line 1006 "PhotoFileSniffer.c"
-}
-
-
-PhotoFileInterrogator*
-photo_file_interrogator_new (GFile* file,
- PhotoFileSnifferOptions options)
-{
-#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return photo_file_interrogator_construct (TYPE_PHOTO_FILE_INTERROGATOR, file, options);
-#line 1016 "PhotoFileSniffer.c"
-}
-
-
-static gpointer
-_detected_photo_information_ref0 (gpointer self)
-{
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return self ? detected_photo_information_ref (self) : NULL;
-#line 1025 "PhotoFileSniffer.c"
-}
-
-
-DetectedPhotoInformation*
-photo_file_interrogator_get_detected_photo_information (PhotoFileInterrogator* self)
-{
- DetectedPhotoInformation* result = NULL;
- DetectedPhotoInformation* _tmp0_;
- DetectedPhotoInformation* _tmp1_;
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_INTERROGATOR (self), NULL);
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp0_ = self->priv->detected;
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp1_ = _detected_photo_information_ref0 (_tmp0_);
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- result = _tmp1_;
-#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return result;
-#line 1045 "PhotoFileSniffer.c"
-}
-
-
-gboolean
-photo_file_interrogator_get_is_photo_corrupted (PhotoFileInterrogator* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (IS_PHOTO_FILE_INTERROGATOR (self), FALSE);
-#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp0_ = self->priv->is_photo_corrupted;
-#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- result = _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return result;
-#line 1062 "PhotoFileSniffer.c"
-}
-
-
-void
-photo_file_interrogator_interrogate (PhotoFileInterrogator* self,
- GError** error)
-{
- gint _tmp0_;
- PhotoFileFormat* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (IS_PHOTO_FILE_INTERROGATOR (self));
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp1_ = photo_file_format_get_supported (&_tmp0_);
-#line 1077 "PhotoFileSniffer.c"
- {
- PhotoFileFormat* file_format_collection = NULL;
- gint file_format_collection_length1 = 0;
- gint _file_format_collection_size_ = 0;
- gint file_format_it = 0;
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- file_format_collection = _tmp1_;
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- file_format_collection_length1 = _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- for (file_format_it = 0; file_format_it < _tmp0_; file_format_it = file_format_it + 1) {
-#line 1089 "PhotoFileSniffer.c"
- PhotoFileFormat file_format = 0;
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- file_format = file_format_collection[file_format_it];
-#line 1093 "PhotoFileSniffer.c"
- {
- PhotoFileSniffer* sniffer = NULL;
- PhotoFileFormat _tmp2_;
- GFile* _tmp3_;
- PhotoFileSnifferOptions _tmp4_;
- PhotoFileSniffer* _tmp5_;
- gboolean is_corrupted = FALSE;
- DetectedPhotoInformation* _tmp6_ = NULL;
- PhotoFileSniffer* _tmp7_;
- gboolean _tmp8_ = FALSE;
- DetectedPhotoInformation* _tmp9_;
- DetectedPhotoInformation* _tmp10_;
- gboolean _tmp11_ = FALSE;
- DetectedPhotoInformation* _tmp12_;
-#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp2_ = file_format;
-#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp3_ = self->priv->file;
-#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp4_ = self->priv->options;
-#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp5_ = photo_file_format_create_sniffer (_tmp2_, _tmp3_, _tmp4_);
-#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- sniffer = _tmp5_;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp7_ = sniffer;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp9_ = photo_file_sniffer_sniff (_tmp7_, &_tmp8_, &_inner_error_);
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- is_corrupted = _tmp8_;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp6_ = _tmp9_;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_propagate_error (error, _inner_error_);
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _photo_file_sniffer_unref0 (sniffer);
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- file_format_collection = (g_free (file_format_collection), NULL);
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return;
-#line 1136 "PhotoFileSniffer.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp10_ = _tmp6_;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp6_ = NULL;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _detected_photo_information_unref0 (self->priv->detected);
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->priv->detected = _tmp10_;
-#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp12_ = self->priv->detected;
-#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (_tmp12_ != NULL) {
-#line 1150 "PhotoFileSniffer.c"
- gboolean _tmp13_;
-#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp13_ = is_corrupted;
-#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp11_ = !_tmp13_;
-#line 1156 "PhotoFileSniffer.c"
- } else {
-#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp11_ = FALSE;
-#line 1160 "PhotoFileSniffer.c"
- }
-#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (_tmp11_) {
-#line 1164 "PhotoFileSniffer.c"
- DetectedPhotoInformation* _tmp14_;
- PhotoFileFormat _tmp15_;
- PhotoFileFormat _tmp16_;
-#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp14_ = self->priv->detected;
-#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp15_ = _tmp14_->file_format;
-#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp16_ = file_format;
-#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _vala_assert (_tmp15_ == _tmp16_, "detected.file_format == file_format");
-#line 93 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _detected_photo_information_unref0 (_tmp6_);
-#line 93 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _photo_file_sniffer_unref0 (sniffer);
-#line 93 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- break;
-#line 1182 "PhotoFileSniffer.c"
- } else {
- gboolean _tmp17_;
-#line 94 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp17_ = is_corrupted;
-#line 94 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (_tmp17_) {
-#line 1189 "PhotoFileSniffer.c"
- GFile* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
-#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp18_ = self->priv->file;
-#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp19_ = g_file_get_path (_tmp18_);
-#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _tmp20_ = _tmp19_;
-#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_message ("PhotoFileSniffer.vala:95: Sniffing halted for %s: potentially corrupte" \
-"d image file", _tmp20_);
-#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_free0 (_tmp20_);
-#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->priv->is_photo_corrupted = TRUE;
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _detected_photo_information_unref0 (self->priv->detected);
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->priv->detected = NULL;
-#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _detected_photo_information_unref0 (_tmp6_);
-#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _photo_file_sniffer_unref0 (sniffer);
-#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- break;
-#line 1215 "PhotoFileSniffer.c"
- }
- }
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _detected_photo_information_unref0 (_tmp6_);
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _photo_file_sniffer_unref0 (sniffer);
-#line 1222 "PhotoFileSniffer.c"
- }
- }
-#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- file_format_collection = (g_free (file_format_collection), NULL);
-#line 1227 "PhotoFileSniffer.c"
- }
-}
-
-
-static void
-value_photo_file_interrogator_init (GValue* value)
-{
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 1237 "PhotoFileSniffer.c"
-}
-
-
-static void
-value_photo_file_interrogator_free_value (GValue* value)
-{
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (value->data[0].v_pointer) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_interrogator_unref (value->data[0].v_pointer);
-#line 1248 "PhotoFileSniffer.c"
- }
-}
-
-
-static void
-value_photo_file_interrogator_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (src_value->data[0].v_pointer) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- dest_value->data[0].v_pointer = photo_file_interrogator_ref (src_value->data[0].v_pointer);
-#line 1261 "PhotoFileSniffer.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1265 "PhotoFileSniffer.c"
- }
-}
-
-
-static gpointer
-value_photo_file_interrogator_peek_pointer (const GValue* value)
-{
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return value->data[0].v_pointer;
-#line 1275 "PhotoFileSniffer.c"
-}
-
-
-static gchar*
-value_photo_file_interrogator_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (collect_values[0].v_pointer) {
-#line 1287 "PhotoFileSniffer.c"
- PhotoFileInterrogator * object;
- object = collect_values[0].v_pointer;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1294 "PhotoFileSniffer.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.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 1298 "PhotoFileSniffer.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = photo_file_interrogator_ref (object);
-#line 1302 "PhotoFileSniffer.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 1306 "PhotoFileSniffer.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return NULL;
-#line 1310 "PhotoFileSniffer.c"
-}
-
-
-static gchar*
-value_photo_file_interrogator_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoFileInterrogator ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (!object_p) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1326 "PhotoFileSniffer.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (!value->data[0].v_pointer) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = NULL;
-#line 1332 "PhotoFileSniffer.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = value->data[0].v_pointer;
-#line 1336 "PhotoFileSniffer.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- *object_p = photo_file_interrogator_ref (value->data[0].v_pointer);
-#line 1340 "PhotoFileSniffer.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return NULL;
-#line 1344 "PhotoFileSniffer.c"
-}
-
-
-GParamSpec*
-param_spec_photo_file_interrogator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPhotoFileInterrogator* spec;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_INTERROGATOR), NULL);
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return G_PARAM_SPEC (spec);
-#line 1364 "PhotoFileSniffer.c"
-}
-
-
-gpointer
-value_get_photo_file_interrogator (const GValue* value)
-{
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_INTERROGATOR), NULL);
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return value->data[0].v_pointer;
-#line 1375 "PhotoFileSniffer.c"
-}
-
-
-void
-value_set_photo_file_interrogator (GValue* value,
- gpointer v_object)
-{
- PhotoFileInterrogator * old;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_INTERROGATOR));
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- old = value->data[0].v_pointer;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (v_object) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_INTERROGATOR));
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = v_object;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_interrogator_ref (value->data[0].v_pointer);
-#line 1398 "PhotoFileSniffer.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 1402 "PhotoFileSniffer.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (old) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_interrogator_unref (old);
-#line 1408 "PhotoFileSniffer.c"
- }
-}
-
-
-void
-value_take_photo_file_interrogator (GValue* value,
- gpointer v_object)
-{
- PhotoFileInterrogator * old;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_INTERROGATOR));
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- old = value->data[0].v_pointer;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (v_object) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_INTERROGATOR));
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = v_object;
-#line 1430 "PhotoFileSniffer.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- value->data[0].v_pointer = NULL;
-#line 1434 "PhotoFileSniffer.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (old) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_interrogator_unref (old);
-#line 1440 "PhotoFileSniffer.c"
- }
-}
-
-
-static void
-photo_file_interrogator_class_init (PhotoFileInterrogatorClass * klass)
-{
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- photo_file_interrogator_parent_class = g_type_class_peek_parent (klass);
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- ((PhotoFileInterrogatorClass *) klass)->finalize = photo_file_interrogator_finalize;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_type_class_add_private (klass, sizeof (PhotoFileInterrogatorPrivate));
-#line 1454 "PhotoFileSniffer.c"
-}
-
-
-static void
-photo_file_interrogator_instance_init (PhotoFileInterrogator * self)
-{
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->priv = PHOTO_FILE_INTERROGATOR_GET_PRIVATE (self);
-#line 64 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->priv->detected = NULL;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->priv->is_photo_corrupted = FALSE;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self->ref_count = 1;
-#line 1469 "PhotoFileSniffer.c"
-}
-
-
-static void
-photo_file_interrogator_finalize (PhotoFileInterrogator * obj)
-{
- PhotoFileInterrogator * self;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogator);
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_signal_handlers_destroy (self);
-#line 62 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _g_object_unref0 (self->priv->file);
-#line 64 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- _detected_photo_information_unref0 (self->priv->detected);
-#line 1485 "PhotoFileSniffer.c"
-}
-
-
-GType
-photo_file_interrogator_get_type (void)
-{
- static volatile gsize photo_file_interrogator_type_id__volatile = 0;
- if (g_once_init_enter (&photo_file_interrogator_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_photo_file_interrogator_init, value_photo_file_interrogator_free_value, value_photo_file_interrogator_copy_value, value_photo_file_interrogator_peek_pointer, "p", value_photo_file_interrogator_collect_value, "p", value_photo_file_interrogator_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoFileInterrogatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_interrogator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileInterrogator), 0, (GInstanceInitFunc) photo_file_interrogator_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_file_interrogator_type_id;
- photo_file_interrogator_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileInterrogator", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&photo_file_interrogator_type_id__volatile, photo_file_interrogator_type_id);
- }
- return photo_file_interrogator_type_id__volatile;
-}
-
-
-gpointer
-photo_file_interrogator_ref (gpointer instance)
-{
- PhotoFileInterrogator * self;
- self = instance;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- return instance;
-#line 1514 "PhotoFileSniffer.c"
-}
-
-
-void
-photo_file_interrogator_unref (gpointer instance)
-{
- PhotoFileInterrogator * self;
- self = instance;
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- PHOTO_FILE_INTERROGATOR_GET_CLASS (self)->finalize (self);
-#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1529 "PhotoFileSniffer.c"
- }
-}
-
-
-
diff --git a/src/photos/PhotoMetadata.c b/src/photos/PhotoMetadata.c
deleted file mode 100644
index a04ad12..0000000
--- a/src/photos/PhotoMetadata.c
+++ /dev/null
@@ -1,10262 +0,0 @@
-/* PhotoMetadata.c generated by valac 0.40.4, the Vala compiler
- * generated from PhotoMetadata.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/**/
-/* PhotoMetadata*/
-/**/
-/* 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.*/
-/**/
-/* Although it's perceived that Exiv2 will remain Shotwell's metadata library of choice, this*/
-/* may change in the future, and so this wrapper helps with that as well.*/
-/**/
-/* There is no expectation of thread-safety in this class (yet).*/
-/**/
-/* Tags come from Exiv2's naming scheme:*/
-/* http://www.exiv2.org/metadata.html*/
-/**/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <gexiv2/gexiv2.h>
-#include <libexif/exif-data.h>
-#include <libexif/exif-mem.h>
-#include <float.h>
-#include <math.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_METADATA_DOMAIN (metadata_domain_get_type ())
-
-#define TYPE_KEYWORD_TRANSFORMER (keyword_transformer_get_type ())
-#define KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEYWORD_TRANSFORMER, KeywordTransformer))
-#define KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEYWORD_TRANSFORMER, KeywordTransformerClass))
-#define IS_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEYWORD_TRANSFORMER))
-#define IS_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEYWORD_TRANSFORMER))
-#define KEYWORD_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEYWORD_TRANSFORMER, KeywordTransformerClass))
-
-typedef struct _KeywordTransformer KeywordTransformer;
-typedef struct _KeywordTransformerClass KeywordTransformerClass;
-typedef struct _KeywordTransformerPrivate KeywordTransformerPrivate;
-typedef struct _ParamSpecKeywordTransformer ParamSpecKeywordTransformer;
-
-#define TYPE_NULL_KEYWORD_TRANSFORMER (null_keyword_transformer_get_type ())
-#define NULL_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformer))
-#define NULL_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformerClass))
-#define IS_NULL_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NULL_KEYWORD_TRANSFORMER))
-#define IS_NULL_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NULL_KEYWORD_TRANSFORMER))
-#define NULL_KEYWORD_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformerClass))
-
-typedef struct _NullKeywordTransformer NullKeywordTransformer;
-typedef struct _NullKeywordTransformerClass NullKeywordTransformerClass;
-typedef struct _NullKeywordTransformerPrivate NullKeywordTransformerPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_ACD_SEE_KEYWORD_TRANSFORMER (acd_see_keyword_transformer_get_type ())
-#define ACD_SEE_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformer))
-#define ACD_SEE_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformerClass))
-#define IS_ACD_SEE_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ACD_SEE_KEYWORD_TRANSFORMER))
-#define IS_ACD_SEE_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ACD_SEE_KEYWORD_TRANSFORMER))
-#define ACD_SEE_KEYWORD_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformerClass))
-
-typedef struct _ACDSeeKeywordTransformer ACDSeeKeywordTransformer;
-typedef struct _ACDSeeKeywordTransformerClass ACDSeeKeywordTransformerClass;
-typedef struct _ACDSeeKeywordTransformerPrivate ACDSeeKeywordTransformerPrivate;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _g_markup_parse_context_unref0(var) ((var == NULL) ? NULL : (var = (g_markup_parse_context_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
-
-#define TYPE_HIERARCHICAL_KEYWORD_FIELD (hierarchical_keyword_field_get_type ())
-#define HIERARCHICAL_KEYWORD_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordField))
-#define HIERARCHICAL_KEYWORD_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordFieldClass))
-#define IS_HIERARCHICAL_KEYWORD_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_KEYWORD_FIELD))
-#define IS_HIERARCHICAL_KEYWORD_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_KEYWORD_FIELD))
-#define HIERARCHICAL_KEYWORD_FIELD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordFieldClass))
-
-typedef struct _HierarchicalKeywordField HierarchicalKeywordField;
-typedef struct _HierarchicalKeywordFieldClass HierarchicalKeywordFieldClass;
-typedef struct _HierarchicalKeywordFieldPrivate HierarchicalKeywordFieldPrivate;
-#define _keyword_transformer_unref0(var) ((var == NULL) ? NULL : (var = (keyword_transformer_unref (var), NULL)))
-typedef struct _ParamSpecHierarchicalKeywordField ParamSpecHierarchicalKeywordField;
-
-#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ())
-#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview))
-#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
-#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW))
-#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW))
-#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
-
-typedef struct _PhotoPreview PhotoPreview;
-typedef struct _PhotoPreviewClass PhotoPreviewClass;
-typedef struct _PhotoPreviewPrivate PhotoPreviewPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL)))
-typedef struct _ParamSpecPhotoPreview ParamSpecPhotoPreview;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-typedef struct _MediaMetadataPrivate MediaMetadataPrivate;
-
-#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
-#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
-#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
-#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
-#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
-
-typedef struct _MetadataDateTime MetadataDateTime;
-typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-typedef struct _PhotoMetadataPrivate PhotoMetadataPrivate;
-
-#define PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ())
-#define _exif_data_unref0(var) ((var == NULL) ? NULL : (var = (exif_data_unref (var), NULL)))
-
-#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ())
-typedef struct _Block1Data Block1Data;
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-typedef struct _Block2Data Block2Data;
-typedef struct _Block3Data Block3Data;
-
-#define TYPE_METADATA_RATIONAL (metadata_rational_get_type ())
-typedef struct _MetadataRational MetadataRational;
-typedef struct _Block4Data Block4Data;
-#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-typedef struct _Block5Data Block5Data;
-#define _exif_mem_unref0(var) ((var == NULL) ? NULL : (var = (exif_mem_unref (var), NULL)))
-#define _g_checksum_free0(var) ((var == NULL) ? NULL : (var = (g_checksum_free (var), NULL)))
-
-#define PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW (photo_metadata_internal_photo_preview_get_type ())
-#define PHOTO_METADATA_INTERNAL_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreview))
-#define PHOTO_METADATA_INTERNAL_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreviewClass))
-#define PHOTO_METADATA_IS_INTERNAL_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW))
-#define PHOTO_METADATA_IS_INTERNAL_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW))
-#define PHOTO_METADATA_INTERNAL_PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreviewClass))
-
-typedef struct _PhotoMetadataInternalPhotoPreview PhotoMetadataInternalPhotoPreview;
-typedef struct _PhotoMetadataInternalPhotoPreviewClass PhotoMetadataInternalPhotoPreviewClass;
-typedef struct _Block6Data Block6Data;
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-#define _hierarchical_keyword_field_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_keyword_field_unref (var), NULL)))
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-#define TYPE_RATING (rating_get_type ())
-typedef struct _PhotoMetadataInternalPhotoPreviewPrivate PhotoMetadataInternalPhotoPreviewPrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- METADATA_DOMAIN_UNKNOWN,
- METADATA_DOMAIN_EXIF,
- METADATA_DOMAIN_XMP,
- METADATA_DOMAIN_IPTC
-} MetadataDomain;
-
-struct _KeywordTransformer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- KeywordTransformerPrivate * priv;
-};
-
-struct _KeywordTransformerClass {
- GTypeClass parent_class;
- void (*finalize) (KeywordTransformer *self);
- GeeList* (*transform) (KeywordTransformer* self, const gchar* input, GError** error);
-};
-
-struct _ParamSpecKeywordTransformer {
- GParamSpec parent_instance;
-};
-
-struct _NullKeywordTransformer {
- KeywordTransformer parent_instance;
- NullKeywordTransformerPrivate * priv;
-};
-
-struct _NullKeywordTransformerClass {
- KeywordTransformerClass parent_class;
-};
-
-struct _ACDSeeKeywordTransformer {
- KeywordTransformer parent_instance;
- ACDSeeKeywordTransformerPrivate * priv;
-};
-
-struct _ACDSeeKeywordTransformerClass {
- KeywordTransformerClass parent_class;
-};
-
-struct _ACDSeeKeywordTransformerPrivate {
- GMarkupParser parser;
- GError* error;
- GeeArrayQueue* stack;
- GeeArrayList* result;
- gboolean assigned;
-};
-
-struct _HierarchicalKeywordField {
- GTypeInstance parent_instance;
- volatile int ref_count;
- HierarchicalKeywordFieldPrivate * priv;
- gchar* field_name;
- gchar* path_separator;
- gboolean wants_leading_separator;
- gboolean is_writeable;
- KeywordTransformer* transformer;
-};
-
-struct _HierarchicalKeywordFieldClass {
- GTypeClass parent_class;
- void (*finalize) (HierarchicalKeywordField *self);
-};
-
-struct _ParamSpecHierarchicalKeywordField {
- GParamSpec parent_instance;
-};
-
-struct _PhotoPreview {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoPreviewPrivate * priv;
-};
-
-struct _PhotoPreviewClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoPreview *self);
- GBytes* (*flatten) (PhotoPreview* self, GError** error);
- GdkPixbuf* (*get_pixbuf) (PhotoPreview* self, GError** error);
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _PhotoPreviewPrivate {
- gchar* name;
- Dimensions dimensions;
- guint32 size;
- gchar* mime_type;
- gchar* extension;
-};
-
-struct _ParamSpecPhotoPreview {
- GParamSpec parent_instance;
-};
-
-struct _MediaMetadata {
- GTypeInstance parent_instance;
- volatile int ref_count;
- MediaMetadataPrivate * priv;
-};
-
-struct _MediaMetadataClass {
- GTypeClass parent_class;
- void (*finalize) (MediaMetadata *self);
- void (*read_from_file) (MediaMetadata* self, GFile* file, GError** error);
- MetadataDateTime* (*get_creation_date_time) (MediaMetadata* self);
- gchar* (*get_title) (MediaMetadata* self);
- gchar* (*get_comment) (MediaMetadata* self);
-};
-
-struct _PhotoMetadata {
- MediaMetadata parent_instance;
- PhotoMetadataPrivate * priv;
-};
-
-struct _PhotoMetadataClass {
- MediaMetadataClass parent_class;
-};
-
-struct _PhotoMetadataPrivate {
- GExiv2Metadata* exiv2;
- ExifData* exif;
- gchar* source_name;
- gchar* metadata_hash;
- gchar* thumbnail_md5;
-};
-
-typedef enum {
- PHOTO_METADATA_SET_OPTION_ALL_DOMAINS,
- PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT,
- PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN
-} PhotoMetadataSetOption;
-
-typedef enum {
- PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0,
- PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
- PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
- PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
- PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
-} PrepareInputTextOptions;
-
-typedef void (*PhotoMetadataSetGenericValue) (const gchar* tag, void* user_data);
-struct _Block1Data {
- int _ref_count_;
- PhotoMetadata* self;
- gchar* value;
-};
-
-struct _Block2Data {
- int _ref_count_;
- PhotoMetadata* self;
- GeeCollection* values;
-};
-
-struct _Block3Data {
- int _ref_count_;
- PhotoMetadata* self;
- glong value;
-};
-
-struct _MetadataRational {
- gint numerator;
- gint denominator;
-};
-
-struct _Block4Data {
- int _ref_count_;
- PhotoMetadata* self;
- MetadataRational rational;
-};
-
-typedef enum {
- METADATA_DATE_TIME_ERROR_INVALID_FORMAT,
- METADATA_DATE_TIME_ERROR_UNSUPPORTED_FORMAT
-} MetadataDateTimeError;
-#define METADATA_DATE_TIME_ERROR metadata_date_time_error_quark ()
-struct _Block5Data {
- int _ref_count_;
- PhotoMetadata* self;
- MetadataDateTime* date_time;
-};
-
-struct _Block6Data {
- int _ref_count_;
- PhotoMetadata* self;
- gchar* comment;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _PhotoMetadataInternalPhotoPreview {
- PhotoPreview parent_instance;
- PhotoMetadataInternalPhotoPreviewPrivate * priv;
- PhotoMetadata* owner;
- guint number;
-};
-
-struct _PhotoMetadataInternalPhotoPreviewClass {
- PhotoPreviewClass parent_class;
-};
-
-
-static gpointer keyword_transformer_parent_class = NULL;
-static gpointer null_keyword_transformer_parent_class = NULL;
-static gpointer acd_see_keyword_transformer_parent_class = NULL;
-static gpointer hierarchical_keyword_field_parent_class = NULL;
-static gpointer photo_preview_parent_class = NULL;
-static gpointer photo_metadata_parent_class = NULL;
-static gchar** photo_metadata_DATE_TIME_TAGS;
-static gint photo_metadata_DATE_TIME_TAGS_length1;
-static gchar** photo_metadata_DATE_TIME_TAGS = NULL;
-static gint photo_metadata_DATE_TIME_TAGS_length1 = 0;
-static gint _photo_metadata_DATE_TIME_TAGS_size_ = 0;
-static gchar** photo_metadata_EXPOSURE_DATE_TIME_TAGS;
-static gint photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1;
-static gchar** photo_metadata_EXPOSURE_DATE_TIME_TAGS = NULL;
-static gint photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1 = 0;
-static gint _photo_metadata_EXPOSURE_DATE_TIME_TAGS_size_ = 0;
-static gchar** photo_metadata_DIGITIZED_DATE_TIME_TAGS;
-static gint photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1;
-static gchar** photo_metadata_DIGITIZED_DATE_TIME_TAGS = NULL;
-static gint photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1 = 0;
-static gint _photo_metadata_DIGITIZED_DATE_TIME_TAGS_size_ = 0;
-static gchar** photo_metadata_WIDTH_TAGS;
-static gint photo_metadata_WIDTH_TAGS_length1;
-static gchar** photo_metadata_WIDTH_TAGS = NULL;
-static gint photo_metadata_WIDTH_TAGS_length1 = 0;
-static gint _photo_metadata_WIDTH_TAGS_size_ = 0;
-extern gchar** photo_metadata_HEIGHT_TAGS;
-extern gint photo_metadata_HEIGHT_TAGS_length1;
-gchar** photo_metadata_HEIGHT_TAGS = NULL;
-gint photo_metadata_HEIGHT_TAGS_length1 = 0;
-static gchar** photo_metadata_STANDARD_TITLE_TAGS;
-static gint photo_metadata_STANDARD_TITLE_TAGS_length1;
-static gchar** photo_metadata_STANDARD_TITLE_TAGS = NULL;
-static gint photo_metadata_STANDARD_TITLE_TAGS_length1 = 0;
-static gint _photo_metadata_STANDARD_TITLE_TAGS_size_ = 0;
-static gchar** photo_metadata_COMMENT_TAGS;
-static gint photo_metadata_COMMENT_TAGS_length1;
-static gchar** photo_metadata_COMMENT_TAGS = NULL;
-static gint photo_metadata_COMMENT_TAGS_length1 = 0;
-static gint _photo_metadata_COMMENT_TAGS_size_ = 0;
-static gchar** photo_metadata_KEYWORD_TAGS;
-static gint photo_metadata_KEYWORD_TAGS_length1;
-static gchar** photo_metadata_KEYWORD_TAGS = NULL;
-static gint photo_metadata_KEYWORD_TAGS_length1 = 0;
-static gint _photo_metadata_KEYWORD_TAGS_size_ = 0;
-static HierarchicalKeywordField** photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
-static gint photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-static HierarchicalKeywordField** photo_metadata_HIERARCHICAL_KEYWORD_TAGS = NULL;
-static gint photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1 = 0;
-static gint _photo_metadata_HIERARCHICAL_KEYWORD_TAGS_size_ = 0;
-static gchar** photo_metadata_ARTIST_TAGS;
-static gint photo_metadata_ARTIST_TAGS_length1;
-static gchar** photo_metadata_ARTIST_TAGS = NULL;
-static gint photo_metadata_ARTIST_TAGS_length1 = 0;
-static gint _photo_metadata_ARTIST_TAGS_size_ = 0;
-static gchar** photo_metadata_RATING_TAGS;
-static gint photo_metadata_RATING_TAGS_length1;
-static gchar** photo_metadata_RATING_TAGS = NULL;
-static gint photo_metadata_RATING_TAGS_length1 = 0;
-static gint _photo_metadata_RATING_TAGS_size_ = 0;
-static gpointer photo_metadata_internal_photo_preview_parent_class = NULL;
-
-GType metadata_domain_get_type (void) G_GNUC_CONST;
-gpointer keyword_transformer_ref (gpointer instance);
-void keyword_transformer_unref (gpointer instance);
-GParamSpec* param_spec_keyword_transformer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_keyword_transformer (GValue* value,
- gpointer v_object);
-void value_take_keyword_transformer (GValue* value,
- gpointer v_object);
-gpointer value_get_keyword_transformer (const GValue* value);
-GType keyword_transformer_get_type (void) G_GNUC_CONST;
-GeeList* keyword_transformer_transform (KeywordTransformer* self,
- const gchar* input,
- GError** error);
-static GeeList* keyword_transformer_real_transform (KeywordTransformer* self,
- const gchar* input,
- GError** error);
-KeywordTransformer* keyword_transformer_construct (GType object_type);
-static void keyword_transformer_finalize (KeywordTransformer * obj);
-GType null_keyword_transformer_get_type (void) G_GNUC_CONST;
-static GeeList* null_keyword_transformer_real_transform (KeywordTransformer* base,
- const gchar* input,
- GError** error);
-NullKeywordTransformer* null_keyword_transformer_new (void);
-NullKeywordTransformer* null_keyword_transformer_construct (GType object_type);
-GType acd_see_keyword_transformer_get_type (void) G_GNUC_CONST;
-#define ACD_SEE_KEYWORD_TRANSFORMER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformerPrivate))
-ACDSeeKeywordTransformer* acd_see_keyword_transformer_new (void);
-ACDSeeKeywordTransformer* acd_see_keyword_transformer_construct (GType object_type);
-static void acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self,
- GMarkupParseContext* ctx,
- const gchar* name,
- gchar** attribute_names,
- gchar** attribute_values,
- GError** error);
-static void _acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func (GMarkupParseContext* context,
- const gchar* element_name,
- gchar** attribute_names,
- gchar** attribute_values,
- gpointer self,
- GError** error);
-static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self,
- GMarkupParseContext* ctx,
- const gchar* name,
- GError** error);
-static void _acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func (GMarkupParseContext* context,
- const gchar* element_name,
- gpointer self,
- GError** error);
-static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
- GMarkupParseContext* ctx,
- const gchar* text,
- GError** error);
-static void _acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMarkupParseContext* context,
- const gchar* text,
- gsize text_len,
- gpointer self,
- GError** error);
-static void acd_see_keyword_transformer_on_error (ACDSeeKeywordTransformer* self,
- GMarkupParseContext* ctx,
- GError* _error_);
-static void _acd_see_keyword_transformer_on_error_gmarkup_parser_error_func (GMarkupParseContext* context,
- GError* _error_,
- gpointer self);
-static GeeList* acd_see_keyword_transformer_real_transform (KeywordTransformer* base,
- const gchar* input,
- GError** error);
-static void acd_see_keyword_transformer_finalize (KeywordTransformer * obj);
-gpointer hierarchical_keyword_field_ref (gpointer instance);
-void hierarchical_keyword_field_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_keyword_field (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_keyword_field (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_keyword_field (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_keyword_field (const GValue* value);
-GType hierarchical_keyword_field_get_type (void) G_GNUC_CONST;
-HierarchicalKeywordField* hierarchical_keyword_field_new (const gchar* field_name,
- const gchar* path_separator,
- gboolean wants_leading_separator,
- gboolean is_writeable,
- KeywordTransformer* transformer);
-HierarchicalKeywordField* hierarchical_keyword_field_construct (GType object_type,
- const gchar* field_name,
- const gchar* path_separator,
- gboolean wants_leading_separator,
- gboolean is_writeable,
- KeywordTransformer* transformer);
-static void hierarchical_keyword_field_finalize (HierarchicalKeywordField * obj);
-gpointer photo_preview_ref (gpointer instance);
-void photo_preview_unref (gpointer instance);
-GParamSpec* param_spec_photo_preview (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_preview (GValue* value,
- gpointer v_object);
-void value_take_photo_preview (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_preview (const GValue* value);
-GType photo_preview_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-#define PHOTO_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_PREVIEW, PhotoPreviewPrivate))
-PhotoPreview* photo_preview_construct (GType object_type,
- const gchar* name,
- Dimensions* dimensions,
- guint32 size,
- const gchar* mime_type,
- const gchar* extension);
-gchar* photo_preview_get_name (PhotoPreview* self);
-void photo_preview_get_pixel_dimensions (PhotoPreview* self,
- Dimensions* result);
-guint32 photo_preview_get_size (PhotoPreview* self);
-gchar* photo_preview_get_mime_type (PhotoPreview* self);
-gchar* photo_preview_get_extension (PhotoPreview* self);
-GBytes* photo_preview_flatten (PhotoPreview* self,
- GError** error);
-static GBytes* photo_preview_real_flatten (PhotoPreview* self,
- GError** error);
-GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self,
- GError** error);
-static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self,
- GError** error);
-static void photo_preview_finalize (PhotoPreview * obj);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-gpointer metadata_date_time_ref (gpointer instance);
-void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_metadata_date_time (GValue* value,
- gpointer v_object);
-void value_take_metadata_date_time (GValue* value,
- gpointer v_object);
-gpointer value_get_metadata_date_time (const GValue* value);
-GType metadata_date_time_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-#define PHOTO_METADATA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_METADATA, PhotoMetadataPrivate))
-GType photo_metadata_set_option_get_type (void) G_GNUC_CONST;
-GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
-#define PHOTO_METADATA_PREPARE_STRING_OPTIONS (((((PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE) | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE)
-#define PHOTO_METADATA_IPHOTO_TITLE_TAG "Iptc.Application2.ObjectName"
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-MediaMetadata* media_metadata_construct (GType object_type);
-static void photo_metadata_real_read_from_file (MediaMetadata* base,
- GFile* file,
- GError** error);
-void photo_metadata_write_to_file (PhotoMetadata* self,
- GFile* file,
- GError** error);
-void photo_metadata_read_from_buffer (PhotoMetadata* self,
- guint8* buffer,
- int buffer_length1,
- gint length,
- GError** error);
-void photo_metadata_read_from_app1_segment (PhotoMetadata* self,
- GBytes* buffer,
- GError** error);
-MetadataDomain photo_metadata_get_tag_domain (const gchar* tag);
-gboolean photo_metadata_has_domain (PhotoMetadata* self,
- MetadataDomain domain);
-gboolean photo_metadata_has_exif (PhotoMetadata* self);
-gboolean photo_metadata_has_xmp (PhotoMetadata* self);
-gboolean photo_metadata_has_iptc (PhotoMetadata* self);
-gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self,
- MetadataDomain domain);
-gboolean photo_metadata_can_write_exif (PhotoMetadata* self);
-gboolean photo_metadata_can_write_xmp (PhotoMetadata* self);
-gboolean photo_metadata_can_write_iptc (PhotoMetadata* self);
-gboolean photo_metadata_has_tag (PhotoMetadata* self,
- const gchar* tag);
-static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify);
-GeeCollection* photo_metadata_get_tags (PhotoMetadata* self,
- MetadataDomain domain,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify);
-GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify);
-gchar* photo_metadata_get_tag_label (PhotoMetadata* self,
- const gchar* tag);
-gchar* photo_metadata_get_tag_description (PhotoMetadata* self,
- const gchar* tag);
-gchar* photo_metadata_get_string (PhotoMetadata* self,
- const gchar* tag,
- PrepareInputTextOptions options);
-gchar* prepare_input_text (const gchar* text,
- PrepareInputTextOptions options,
- gint dest_length);
-#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024
-gchar* photo_metadata_get_string_interpreted (PhotoMetadata* self,
- const gchar* tag,
- PrepareInputTextOptions options);
-gchar* photo_metadata_get_first_string (PhotoMetadata* self,
- gchar** tags,
- int tags_length1);
-gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self,
- gchar** tags,
- int tags_length1);
-GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self,
- const gchar* tag);
-GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self,
- gchar** tags,
- int tags_length1);
-void photo_metadata_set_string (PhotoMetadata* self,
- const gchar* tag,
- const gchar* value,
- PrepareInputTextOptions options);
-static void photo_metadata_set_all_generic (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- PhotoMetadataSetOption option,
- PhotoMetadataSetGenericValue setter,
- void* setter_target);
-void photo_metadata_set_all_string (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- const gchar* value,
- PhotoMetadataSetOption option);
-static Block1Data* block1_data_ref (Block1Data* _data1_);
-static void block1_data_unref (void * _userdata_);
-static void __lambda5_ (Block1Data* _data1_,
- const gchar* tag);
-static void ___lambda5__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self);
-void photo_metadata_set_string_multiple (PhotoMetadata* self,
- const gchar* tag,
- GeeCollection* collection);
-static void _vala_array_add48 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add49 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-void photo_metadata_set_all_string_multiple (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- GeeCollection* values,
- PhotoMetadataSetOption option);
-static Block2Data* block2_data_ref (Block2Data* _data2_);
-static void block2_data_unref (void * _userdata_);
-static void __lambda6_ (Block2Data* _data2_,
- const gchar* tag);
-static void ___lambda6__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self);
-gboolean photo_metadata_get_long (PhotoMetadata* self,
- const gchar* tag,
- glong* value);
-gboolean photo_metadata_get_first_long (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- glong* value);
-void photo_metadata_set_long (PhotoMetadata* self,
- const gchar* tag,
- glong value);
-void photo_metadata_set_all_long (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- glong value,
- PhotoMetadataSetOption option);
-static Block3Data* block3_data_ref (Block3Data* _data3_);
-static void block3_data_unref (void * _userdata_);
-static void __lambda7_ (Block3Data* _data3_,
- const gchar* tag);
-static void ___lambda7__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self);
-GType metadata_rational_get_type (void) G_GNUC_CONST;
-MetadataRational* metadata_rational_dup (const MetadataRational* self);
-void metadata_rational_free (MetadataRational* self);
-gboolean photo_metadata_get_rational (PhotoMetadata* self,
- const gchar* tag,
- MetadataRational* rational);
-void metadata_rational_init (MetadataRational *self,
- gint numerator,
- gint denominator);
-gboolean photo_metadata_get_first_rational (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- MetadataRational* rational);
-void photo_metadata_set_rational (PhotoMetadata* self,
- const gchar* tag,
- MetadataRational* rational);
-gchar* metadata_rational_to_string (MetadataRational *self);
-void photo_metadata_set_all_rational (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- MetadataRational* rational,
- PhotoMetadataSetOption option);
-static Block4Data* block4_data_ref (Block4Data* _data4_);
-static void block4_data_unref (void * _userdata_);
-static void __lambda8_ (Block4Data* _data4_,
- const gchar* tag);
-static void ___lambda8__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self);
-MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self,
- const gchar* tag);
-GQuark metadata_date_time_error_quark (void);
-MetadataDateTime* metadata_date_time_new_from_xmp (const gchar* label,
- GError** error);
-MetadataDateTime* metadata_date_time_construct_from_xmp (GType object_type,
- const gchar* label,
- GError** error);
-MetadataDateTime* metadata_date_time_new_from_exif (const gchar* label,
- GError** error);
-MetadataDateTime* metadata_date_time_construct_from_exif (GType object_type,
- const gchar* label,
- GError** error);
-MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self,
- gchar** tags,
- int tags_length1);
-void photo_metadata_set_date_time (PhotoMetadata* self,
- const gchar* tag,
- MetadataDateTime* date_time);
-gchar* metadata_date_time_get_exif_label (MetadataDateTime* self);
-gchar* metadata_date_time_get_xmp_label (MetadataDateTime* self);
-const gchar* metadata_domain_to_string (MetadataDomain self);
-void photo_metadata_set_all_date_time (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option);
-static Block5Data* block5_data_ref (Block5Data* _data5_);
-static void block5_data_unref (void * _userdata_);
-static void __lambda9_ (Block5Data* _data5_,
- const gchar* tag);
-static void ___lambda9__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self);
-gchar* photo_metadata_exif_hash (PhotoMetadata* self);
-gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self);
-guint photo_metadata_get_preview_count (PhotoMetadata* self);
-PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self,
- guint number);
-static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_new (PhotoMetadata* owner,
- const gchar* name,
- guint number,
- GExiv2PreviewProperties* props);
-static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_construct (GType object_type,
- PhotoMetadata* owner,
- const gchar* name,
- guint number,
- GExiv2PreviewProperties* props);
-static GType photo_metadata_internal_photo_preview_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self);
-void photo_metadata_remove_tag (PhotoMetadata* self,
- const gchar* tag);
-void photo_metadata_remove_tags (PhotoMetadata* self,
- gchar** tags,
- int tags_length1);
-void photo_metadata_clear_domain (PhotoMetadata* self,
- MetadataDomain domain);
-void photo_metadata_clear (PhotoMetadata* self);
-MetadataDateTime* photo_metadata_get_modification_date_time (PhotoMetadata* self);
-void photo_metadata_set_modification_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option);
-MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
-void photo_metadata_set_exposure_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option);
-MetadataDateTime* photo_metadata_get_digitized_date_time (PhotoMetadata* self);
-void photo_metadata_set_digitized_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option);
-static MetadataDateTime* photo_metadata_real_get_creation_date_time (MediaMetadata* base);
-Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-void photo_metadata_set_pixel_dimensions (PhotoMetadata* self,
- Dimensions* dim,
- PhotoMetadataSetOption option);
-static gchar* photo_metadata_real_get_title (MediaMetadata* base);
-gboolean is_string_empty (const gchar* s);
-void photo_metadata_set_title (PhotoMetadata* self,
- const gchar* title,
- PhotoMetadataSetOption option);
-static gchar* photo_metadata_real_get_comment (MediaMetadata* base);
-void photo_metadata_set_comment (PhotoMetadata* self,
- const gchar* comment,
- PhotoMetadataSetOption option);
-static Block6Data* block6_data_ref (Block6Data* _data6_);
-static void block6_data_unref (void * _userdata_);
-static void ___lambda10_ (Block6Data* _data6_,
- const gchar* tag);
-static void ____lambda10__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self);
-GeeSet* photo_metadata_get_keywords (PhotoMetadata* self,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify);
-gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self,
- HierarchicalTagIndex* index);
-GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
-#define TAG_PATH_SEPARATOR_STRING "/"
-void photo_metadata_set_keywords (PhotoMetadata* self,
- GeeCollection* keywords,
- PhotoMetadataSetOption option);
-HierarchicalTagIndex* hierarchical_tag_index_new (void);
-HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type);
-GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
-void hierarchical_tag_index_add_path (HierarchicalTagIndex* self,
- const gchar* tag,
- const gchar* path);
-GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self);
-gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self);
-GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self);
-gchar* hierarchical_tag_utilities_canonicalize (const gchar* in_tag,
- const gchar* foreign_separator);
-gboolean photo_metadata_has_orientation (PhotoMetadata* self);
-GType orientation_get_type (void) G_GNUC_CONST;
-Orientation photo_metadata_get_orientation (PhotoMetadata* self);
-void photo_metadata_set_orientation (PhotoMetadata* self,
- Orientation orientation);
-gboolean photo_metadata_get_gps (PhotoMetadata* self,
- gdouble* longitude,
- gchar* * long_ref,
- gdouble* latitude,
- gchar* * lat_ref,
- gdouble* altitude);
-gboolean photo_metadata_get_exposure (PhotoMetadata* self,
- MetadataRational* exposure);
-gchar* photo_metadata_get_exposure_string (PhotoMetadata* self);
-gboolean metadata_rational_is_valid (MetadataRational *self);
-gboolean photo_metadata_get_iso (PhotoMetadata* self,
- glong* iso);
-gchar* photo_metadata_get_iso_string (PhotoMetadata* self);
-gboolean photo_metadata_get_aperture (PhotoMetadata* self,
- MetadataRational* aperture);
-gchar* photo_metadata_get_aperture_string (PhotoMetadata* self,
- gboolean pango_formatted);
-gchar* photo_metadata_get_camera_make (PhotoMetadata* self);
-gchar* photo_metadata_get_camera_model (PhotoMetadata* self);
-gboolean photo_metadata_get_flash (PhotoMetadata* self,
- glong* flash);
-gchar* photo_metadata_get_flash_string (PhotoMetadata* self);
-gboolean photo_metadata_get_focal_length (PhotoMetadata* self,
- MetadataRational* focal_length);
-gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self);
-gchar* photo_metadata_get_artist (PhotoMetadata* self);
-gchar* photo_metadata_get_copyright (PhotoMetadata* self);
-gchar* photo_metadata_get_software (PhotoMetadata* self);
-void photo_metadata_set_software (PhotoMetadata* self,
- const gchar* software,
- const gchar* version);
-void photo_metadata_remove_software (PhotoMetadata* self);
-gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self);
-GType rating_get_type (void) G_GNUC_CONST;
-Rating photo_metadata_get_rating (PhotoMetadata* self);
-Rating rating_unserialize (gint value);
-void photo_metadata_set_rating (PhotoMetadata* self,
- Rating rating);
-gint rating_serialize (Rating self);
-static GBytes* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base,
- GError** error);
-static void photo_metadata_internal_photo_preview_finalize (PhotoPreview * obj);
-static void photo_metadata_finalize (MediaMetadata * 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 gint _vala_array_length (gpointer array);
-
-extern const gint RESOURCES_rating_thresholds[6];
-
-GType
-metadata_domain_get_type (void)
-{
- static volatile gsize metadata_domain_type_id__volatile = 0;
- if (g_once_init_enter (&metadata_domain_type_id__volatile)) {
- static const GEnumValue values[] = {{METADATA_DOMAIN_UNKNOWN, "METADATA_DOMAIN_UNKNOWN", "unknown"}, {METADATA_DOMAIN_EXIF, "METADATA_DOMAIN_EXIF", "exif"}, {METADATA_DOMAIN_XMP, "METADATA_DOMAIN_XMP", "xmp"}, {METADATA_DOMAIN_IPTC, "METADATA_DOMAIN_IPTC", "iptc"}, {0, NULL, NULL}};
- GType metadata_domain_type_id;
- metadata_domain_type_id = g_enum_register_static ("MetadataDomain", values);
- g_once_init_leave (&metadata_domain_type_id__volatile, metadata_domain_type_id);
- }
- return metadata_domain_type_id__volatile;
-}
-
-
-static GeeList*
-keyword_transformer_real_transform (KeywordTransformer* self,
- const gchar* input,
- GError** error)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_critical ("Type `%s' does not implement abstract method `keyword_transformer_transform'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 1021 "PhotoMetadata.c"
-}
-
-
-GeeList*
-keyword_transformer_transform (KeywordTransformer* self,
- const gchar* input,
- GError** error)
-{
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_KEYWORD_TRANSFORMER (self), NULL);
-#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return KEYWORD_TRANSFORMER_GET_CLASS (self)->transform (self, input, error);
-#line 1034 "PhotoMetadata.c"
-}
-
-
-KeywordTransformer*
-keyword_transformer_construct (GType object_type)
-{
- KeywordTransformer* self = NULL;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = (KeywordTransformer*) g_type_create_instance (object_type);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self;
-#line 1046 "PhotoMetadata.c"
-}
-
-
-static void
-value_keyword_transformer_init (GValue* value)
-{
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1055 "PhotoMetadata.c"
-}
-
-
-static void
-value_keyword_transformer_free_value (GValue* value)
-{
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keyword_transformer_unref (value->data[0].v_pointer);
-#line 1066 "PhotoMetadata.c"
- }
-}
-
-
-static void
-value_keyword_transformer_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dest_value->data[0].v_pointer = keyword_transformer_ref (src_value->data[0].v_pointer);
-#line 1079 "PhotoMetadata.c"
- } else {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1083 "PhotoMetadata.c"
- }
-}
-
-
-static gpointer
-value_keyword_transformer_peek_pointer (const GValue* value)
-{
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return value->data[0].v_pointer;
-#line 1093 "PhotoMetadata.c"
-}
-
-
-static gchar*
-value_keyword_transformer_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 1105 "PhotoMetadata.c"
- KeywordTransformer * object;
- object = collect_values[0].v_pointer;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1112 "PhotoMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.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 1116 "PhotoMetadata.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = keyword_transformer_ref (object);
-#line 1120 "PhotoMetadata.c"
- } else {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1124 "PhotoMetadata.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 1128 "PhotoMetadata.c"
-}
-
-
-static gchar*
-value_keyword_transformer_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- KeywordTransformer ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!object_p) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1144 "PhotoMetadata.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = NULL;
-#line 1150 "PhotoMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 1154 "PhotoMetadata.c"
- } else {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = keyword_transformer_ref (value->data[0].v_pointer);
-#line 1158 "PhotoMetadata.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 1162 "PhotoMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_keyword_transformer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecKeywordTransformer* spec;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_KEYWORD_TRANSFORMER), NULL);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 1182 "PhotoMetadata.c"
-}
-
-
-gpointer
-value_get_keyword_transformer (const GValue* value)
-{
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER), NULL);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return value->data[0].v_pointer;
-#line 1193 "PhotoMetadata.c"
-}
-
-
-void
-value_set_keyword_transformer (GValue* value,
- gpointer v_object)
-{
- KeywordTransformer * old;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER));
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (v_object) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_KEYWORD_TRANSFORMER));
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keyword_transformer_ref (value->data[0].v_pointer);
-#line 1216 "PhotoMetadata.c"
- } else {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1220 "PhotoMetadata.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (old) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keyword_transformer_unref (old);
-#line 1226 "PhotoMetadata.c"
- }
-}
-
-
-void
-value_take_keyword_transformer (GValue* value,
- gpointer v_object)
-{
- KeywordTransformer * old;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER));
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (v_object) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_KEYWORD_TRANSFORMER));
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 1248 "PhotoMetadata.c"
- } else {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1252 "PhotoMetadata.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (old) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keyword_transformer_unref (old);
-#line 1258 "PhotoMetadata.c"
- }
-}
-
-
-static void
-keyword_transformer_class_init (KeywordTransformerClass * klass)
-{
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keyword_transformer_parent_class = g_type_class_peek_parent (klass);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((KeywordTransformerClass *) klass)->finalize = keyword_transformer_finalize;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) keyword_transformer_real_transform;
-#line 1272 "PhotoMetadata.c"
-}
-
-
-static void
-keyword_transformer_instance_init (KeywordTransformer * self)
-{
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->ref_count = 1;
-#line 1281 "PhotoMetadata.c"
-}
-
-
-static void
-keyword_transformer_finalize (KeywordTransformer * obj)
-{
- KeywordTransformer * self;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 1293 "PhotoMetadata.c"
-}
-
-
-GType
-keyword_transformer_get_type (void)
-{
- static volatile gsize keyword_transformer_type_id__volatile = 0;
- if (g_once_init_enter (&keyword_transformer_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_keyword_transformer_init, value_keyword_transformer_free_value, value_keyword_transformer_copy_value, value_keyword_transformer_peek_pointer, "p", value_keyword_transformer_collect_value, "p", value_keyword_transformer_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (KeywordTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) keyword_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (KeywordTransformer), 0, (GInstanceInitFunc) keyword_transformer_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType keyword_transformer_type_id;
- keyword_transformer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "KeywordTransformer", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&keyword_transformer_type_id__volatile, keyword_transformer_type_id);
- }
- return keyword_transformer_type_id__volatile;
-}
-
-
-gpointer
-keyword_transformer_ref (gpointer instance)
-{
- KeywordTransformer * self;
- self = instance;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return instance;
-#line 1322 "PhotoMetadata.c"
-}
-
-
-void
-keyword_transformer_unref (gpointer instance)
-{
- KeywordTransformer * self;
- self = instance;
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- KEYWORD_TRANSFORMER_GET_CLASS (self)->finalize (self);
-#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1337 "PhotoMetadata.c"
- }
-}
-
-
-static GeeList*
-null_keyword_transformer_real_transform (KeywordTransformer* base,
- const gchar* input,
- GError** error)
-{
- NullKeywordTransformer * self;
- GeeList* result = NULL;
- GeeArrayList* _result_ = NULL;
- GeeArrayList* _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformer);
-#line 36 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (input != NULL, NULL);
-#line 37 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 37 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _result_ = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), input);
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_LIST, GeeList);
-#line 40 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 1365 "PhotoMetadata.c"
-}
-
-
-NullKeywordTransformer*
-null_keyword_transformer_construct (GType object_type)
-{
- NullKeywordTransformer* self = NULL;
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = (NullKeywordTransformer*) keyword_transformer_construct (object_type);
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self;
-#line 1377 "PhotoMetadata.c"
-}
-
-
-NullKeywordTransformer*
-null_keyword_transformer_new (void)
-{
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return null_keyword_transformer_construct (TYPE_NULL_KEYWORD_TRANSFORMER);
-#line 1386 "PhotoMetadata.c"
-}
-
-
-static void
-null_keyword_transformer_class_init (NullKeywordTransformerClass * klass)
-{
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- null_keyword_transformer_parent_class = g_type_class_peek_parent (klass);
-#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) null_keyword_transformer_real_transform;
-#line 1397 "PhotoMetadata.c"
-}
-
-
-static void
-null_keyword_transformer_instance_init (NullKeywordTransformer * self)
-{
-}
-
-
-GType
-null_keyword_transformer_get_type (void)
-{
- static volatile gsize null_keyword_transformer_type_id__volatile = 0;
- if (g_once_init_enter (&null_keyword_transformer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (NullKeywordTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_keyword_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullKeywordTransformer), 0, (GInstanceInitFunc) null_keyword_transformer_instance_init, NULL };
- GType null_keyword_transformer_type_id;
- null_keyword_transformer_type_id = g_type_register_static (TYPE_KEYWORD_TRANSFORMER, "NullKeywordTransformer", &g_define_type_info, 0);
- g_once_init_leave (&null_keyword_transformer_type_id__volatile, null_keyword_transformer_type_id);
- }
- return null_keyword_transformer_type_id__volatile;
-}
-
-
-static void
-_acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func (GMarkupParseContext* context,
- const gchar* element_name,
- gchar** attribute_names,
- gchar** attribute_values,
- gpointer self,
- GError** error)
-{
-#line 64 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- acd_see_keyword_transformer_on_start ((ACDSeeKeywordTransformer*) self, context, element_name, attribute_names, attribute_values, error);
-#line 1431 "PhotoMetadata.c"
-}
-
-
-static void
-_acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func (GMarkupParseContext* context,
- const gchar* element_name,
- gpointer self,
- GError** error)
-{
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- acd_see_keyword_transformer_on_end ((ACDSeeKeywordTransformer*) self, context, element_name, error);
-#line 1443 "PhotoMetadata.c"
-}
-
-
-static void
-_acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMarkupParseContext* context,
- const gchar* text,
- gsize text_len,
- gpointer self,
- GError** error)
-{
-#line 66 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- acd_see_keyword_transformer_on_text ((ACDSeeKeywordTransformer*) self, context, text, error);
-#line 1456 "PhotoMetadata.c"
-}
-
-
-static void
-_acd_see_keyword_transformer_on_error_gmarkup_parser_error_func (GMarkupParseContext* context,
- GError* _error_,
- gpointer self)
-{
-#line 67 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- acd_see_keyword_transformer_on_error ((ACDSeeKeywordTransformer*) self, context, _error_);
-#line 1467 "PhotoMetadata.c"
-}
-
-
-ACDSeeKeywordTransformer*
-acd_see_keyword_transformer_construct (GType object_type)
-{
- ACDSeeKeywordTransformer* self = NULL;
- GeeArrayList* _tmp0_;
- GeeArrayQueue* _tmp1_;
-#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = (ACDSeeKeywordTransformer*) keyword_transformer_construct (object_type);
-#line 63 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- memset (&self->priv->parser, 0, sizeof (GMarkupParser));
-#line 64 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->parser.start_element = _acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func;
-#line 65 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->parser.end_element = _acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func;
-#line 66 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->parser.text = _acd_see_keyword_transformer_on_text_gmarkup_parser_text_func;
-#line 67 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->parser.error = _acd_see_keyword_transformer_on_error_gmarkup_parser_error_func;
-#line 68 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 68 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (self->priv->result);
-#line 68 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->result = _tmp0_;
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gee_array_queue_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (self->priv->stack);
-#line 69 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->stack = _tmp1_;
-#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self;
-#line 1503 "PhotoMetadata.c"
-}
-
-
-ACDSeeKeywordTransformer*
-acd_see_keyword_transformer_new (void)
-{
-#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return acd_see_keyword_transformer_construct (TYPE_ACD_SEE_KEYWORD_TRANSFORMER);
-#line 1512 "PhotoMetadata.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1521 "PhotoMetadata.c"
-}
-
-
-static GeeList*
-acd_see_keyword_transformer_real_transform (KeywordTransformer* base,
- const gchar* input,
- GError** error)
-{
- ACDSeeKeywordTransformer * self;
- GeeList* result = NULL;
- GMarkupParseContext* ctx = NULL;
- GMarkupParser _tmp0_;
- GMarkupParseContext* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- GeeArrayList* _tmp4_;
- GeeList* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformer);
-#line 72 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (input != NULL, NULL);
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->parser;
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_markup_parse_context_new (&_tmp0_, 0, self, NULL);
-#line 73 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ctx = _tmp1_;
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = strlen (input);
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_markup_parse_context_parse (ctx, input, (gssize) _tmp3_, &_inner_error_);
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_markup_parse_context_unref0 (ctx);
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 1564 "PhotoMetadata.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = self->priv->result;
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList));
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp5_;
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_markup_parse_context_unref0 (ctx);
-#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 1576 "PhotoMetadata.c"
-}
-
-
-static void
-acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self,
- GMarkupParseContext* ctx,
- const gchar* name,
- gchar** attribute_names,
- gchar** attribute_values,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 80 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
-#line 80 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (ctx != NULL);
-#line 80 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (name != NULL);
-#line 88 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->assigned = FALSE;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_strcmp0 (name, "Categories") == 0) {
-#line 90 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 1601 "PhotoMetadata.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_strcmp0 (name, "Category") != 0) {
-#line 94 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 1607 "PhotoMetadata.c"
- }
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_markup_collect_attributes (name, attribute_names, attribute_values, &_inner_error_, G_MARKUP_COLLECT_BOOLEAN, "Assigned", &self->priv->assigned, G_MARKUP_COLLECT_INVALID);
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_inner_error_->domain == G_MARKUP_ERROR) {
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 1619 "PhotoMetadata.c"
- } else {
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.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 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 1627 "PhotoMetadata.c"
- }
- }
-}
-
-
-static void
-acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self,
- GMarkupParseContext* ctx,
- const gchar* name,
- GError** error)
-{
-#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
-#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (ctx != NULL);
-#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (name != NULL);
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_strcmp0 (name, "Category") == 0) {
-#line 1647 "PhotoMetadata.c"
- GeeArrayQueue* _tmp0_;
- gpointer _tmp1_;
- gchar* _tmp2_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->stack;
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gee_deque_poll_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_DEQUE, GeeDeque));
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = (gchar*) _tmp1_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp2_);
-#line 1659 "PhotoMetadata.c"
- }
-}
-
-
-static void
-acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
- GMarkupParseContext* ctx,
- const gchar* text,
- GError** error)
-{
- GeeArrayQueue* _tmp0_;
- gboolean _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
-#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (ctx != NULL);
-#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (text != NULL);
-#line 113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_strcmp0 (text, "") == 0) {
-#line 114 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 1682 "PhotoMetadata.c"
- }
-#line 117 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->stack;
-#line 117 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_deque_offer_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_DEQUE, GeeDeque), text);
-#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->assigned;
-#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_) {
-#line 1692 "PhotoMetadata.c"
- GString* builder = NULL;
- GString* _tmp2_;
- GString* _tmp10_;
- gssize _tmp11_;
- GeeArrayList* _tmp15_;
- GString* _tmp16_;
- const gchar* _tmp17_;
-#line 119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_string_new ("");
-#line 119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- builder = _tmp2_;
-#line 1704 "PhotoMetadata.c"
- {
- GeeIterator* _f_it = NULL;
- GeeArrayQueue* _tmp3_;
- GeeIterator* _tmp4_;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = self->priv->stack;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _f_it = _tmp4_;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 1717 "PhotoMetadata.c"
- GeeIterator* _tmp5_;
- gchar* f = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- GString* _tmp8_;
- const gchar* _tmp9_;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _f_it;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 1730 "PhotoMetadata.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _f_it;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- f = (gchar*) _tmp7_;
-#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = builder;
-#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = f;
-#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_string_append_printf (_tmp8_, "%s|", _tmp9_);
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (f);
-#line 1746 "PhotoMetadata.c"
- }
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_f_it);
-#line 1750 "PhotoMetadata.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = builder;
-#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = _tmp10_->len;
-#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp11_ > ((gssize) 0)) {
-#line 1758 "PhotoMetadata.c"
- GString* _tmp12_;
- GString* _tmp13_;
- gssize _tmp14_;
-#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = builder;
-#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = builder;
-#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = _tmp13_->len;
-#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_string_truncate (_tmp12_, (gsize) (_tmp14_ - 1));
-#line 1770 "PhotoMetadata.c"
- }
-#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = self->priv->result;
-#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = builder;
-#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = _tmp16_->str;
-#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
-#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_string_free0 (builder);
-#line 1782 "PhotoMetadata.c"
- }
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self ? g_error_copy (self) : NULL;
-#line 1792 "PhotoMetadata.c"
-}
-
-
-static void
-acd_see_keyword_transformer_on_error (ACDSeeKeywordTransformer* self,
- GMarkupParseContext* ctx,
- GError* _error_)
-{
- GError* _tmp0_;
-#line 130 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
-#line 130 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (ctx != NULL);
-#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _g_error_copy0 (_error_);
-#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_error_free0 (self->priv->error);
-#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->error = _tmp0_;
-#line 1812 "PhotoMetadata.c"
-}
-
-
-static void
-acd_see_keyword_transformer_class_init (ACDSeeKeywordTransformerClass * klass)
-{
-#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- acd_see_keyword_transformer_parent_class = g_type_class_peek_parent (klass);
-#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((KeywordTransformerClass *) klass)->finalize = acd_see_keyword_transformer_finalize;
-#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_type_class_add_private (klass, sizeof (ACDSeeKeywordTransformerPrivate));
-#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) acd_see_keyword_transformer_real_transform;
-#line 1827 "PhotoMetadata.c"
-}
-
-
-static void
-acd_see_keyword_transformer_instance_init (ACDSeeKeywordTransformer * self)
-{
-#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv = ACD_SEE_KEYWORD_TRANSFORMER_GET_PRIVATE (self);
-#line 1836 "PhotoMetadata.c"
-}
-
-
-static void
-acd_see_keyword_transformer_finalize (KeywordTransformer * obj)
-{
- ACDSeeKeywordTransformer * self;
-#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformer);
-#line 57 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_error_free0 (self->priv->error);
-#line 58 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (self->priv->stack);
-#line 59 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (self->priv->result);
-#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- KEYWORD_TRANSFORMER_CLASS (acd_see_keyword_transformer_parent_class)->finalize (obj);
-#line 1854 "PhotoMetadata.c"
-}
-
-
-GType
-acd_see_keyword_transformer_get_type (void)
-{
- static volatile gsize acd_see_keyword_transformer_type_id__volatile = 0;
- if (g_once_init_enter (&acd_see_keyword_transformer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (ACDSeeKeywordTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) acd_see_keyword_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ACDSeeKeywordTransformer), 0, (GInstanceInitFunc) acd_see_keyword_transformer_instance_init, NULL };
- GType acd_see_keyword_transformer_type_id;
- acd_see_keyword_transformer_type_id = g_type_register_static (TYPE_KEYWORD_TRANSFORMER, "ACDSeeKeywordTransformer", &g_define_type_info, 0);
- g_once_init_leave (&acd_see_keyword_transformer_type_id__volatile, acd_see_keyword_transformer_type_id);
- }
- return acd_see_keyword_transformer_type_id__volatile;
-}
-
-
-static gpointer
-_keyword_transformer_ref0 (gpointer self)
-{
-#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self ? keyword_transformer_ref (self) : NULL;
-#line 1877 "PhotoMetadata.c"
-}
-
-
-HierarchicalKeywordField*
-hierarchical_keyword_field_construct (GType object_type,
- const gchar* field_name,
- const gchar* path_separator,
- gboolean wants_leading_separator,
- gboolean is_writeable,
- KeywordTransformer* transformer)
-{
- HierarchicalKeywordField* self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- KeywordTransformer* _tmp2_;
-#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (field_name != NULL, NULL);
-#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (path_separator != NULL, NULL);
-#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_KEYWORD_TRANSFORMER (transformer), NULL);
-#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = (HierarchicalKeywordField*) g_type_create_instance (object_type);
-#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (field_name);
-#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->field_name);
-#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->field_name = _tmp0_;
-#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (path_separator);
-#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->path_separator);
-#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->path_separator = _tmp1_;
-#line 152 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->wants_leading_separator = wants_leading_separator;
-#line 153 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->is_writeable = is_writeable;
-#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _keyword_transformer_ref0 (transformer);
-#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _keyword_transformer_unref0 (self->transformer);
-#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->transformer = _tmp2_;
-#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self;
-#line 1925 "PhotoMetadata.c"
-}
-
-
-HierarchicalKeywordField*
-hierarchical_keyword_field_new (const gchar* field_name,
- const gchar* path_separator,
- gboolean wants_leading_separator,
- gboolean is_writeable,
- KeywordTransformer* transformer)
-{
-#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return hierarchical_keyword_field_construct (TYPE_HIERARCHICAL_KEYWORD_FIELD, field_name, path_separator, wants_leading_separator, is_writeable, transformer);
-#line 1938 "PhotoMetadata.c"
-}
-
-
-static void
-value_hierarchical_keyword_field_init (GValue* value)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 1947 "PhotoMetadata.c"
-}
-
-
-static void
-value_hierarchical_keyword_field_free_value (GValue* value)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- hierarchical_keyword_field_unref (value->data[0].v_pointer);
-#line 1958 "PhotoMetadata.c"
- }
-}
-
-
-static void
-value_hierarchical_keyword_field_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dest_value->data[0].v_pointer = hierarchical_keyword_field_ref (src_value->data[0].v_pointer);
-#line 1971 "PhotoMetadata.c"
- } else {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1975 "PhotoMetadata.c"
- }
-}
-
-
-static gpointer
-value_hierarchical_keyword_field_peek_pointer (const GValue* value)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return value->data[0].v_pointer;
-#line 1985 "PhotoMetadata.c"
-}
-
-
-static gchar*
-value_hierarchical_keyword_field_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 1997 "PhotoMetadata.c"
- HierarchicalKeywordField * object;
- object = collect_values[0].v_pointer;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2004 "PhotoMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.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 2008 "PhotoMetadata.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = hierarchical_keyword_field_ref (object);
-#line 2012 "PhotoMetadata.c"
- } else {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2016 "PhotoMetadata.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 2020 "PhotoMetadata.c"
-}
-
-
-static gchar*
-value_hierarchical_keyword_field_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- HierarchicalKeywordField ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!object_p) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2036 "PhotoMetadata.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = NULL;
-#line 2042 "PhotoMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 2046 "PhotoMetadata.c"
- } else {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = hierarchical_keyword_field_ref (value->data[0].v_pointer);
-#line 2050 "PhotoMetadata.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 2054 "PhotoMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_hierarchical_keyword_field (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecHierarchicalKeywordField* spec;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_KEYWORD_FIELD), NULL);
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 2074 "PhotoMetadata.c"
-}
-
-
-gpointer
-value_get_hierarchical_keyword_field (const GValue* value)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD), NULL);
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return value->data[0].v_pointer;
-#line 2085 "PhotoMetadata.c"
-}
-
-
-void
-value_set_hierarchical_keyword_field (GValue* value,
- gpointer v_object)
-{
- HierarchicalKeywordField * old;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD));
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (v_object) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_KEYWORD_FIELD));
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- hierarchical_keyword_field_ref (value->data[0].v_pointer);
-#line 2108 "PhotoMetadata.c"
- } else {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2112 "PhotoMetadata.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (old) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- hierarchical_keyword_field_unref (old);
-#line 2118 "PhotoMetadata.c"
- }
-}
-
-
-void
-value_take_hierarchical_keyword_field (GValue* value,
- gpointer v_object)
-{
- HierarchicalKeywordField * old;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD));
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (v_object) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_KEYWORD_FIELD));
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 2140 "PhotoMetadata.c"
- } else {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2144 "PhotoMetadata.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (old) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- hierarchical_keyword_field_unref (old);
-#line 2150 "PhotoMetadata.c"
- }
-}
-
-
-static void
-hierarchical_keyword_field_class_init (HierarchicalKeywordFieldClass * klass)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- hierarchical_keyword_field_parent_class = g_type_class_peek_parent (klass);
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((HierarchicalKeywordFieldClass *) klass)->finalize = hierarchical_keyword_field_finalize;
-#line 2162 "PhotoMetadata.c"
-}
-
-
-static void
-hierarchical_keyword_field_instance_init (HierarchicalKeywordField * self)
-{
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->ref_count = 1;
-#line 2171 "PhotoMetadata.c"
-}
-
-
-static void
-hierarchical_keyword_field_finalize (HierarchicalKeywordField * obj)
-{
- HierarchicalKeywordField * self;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordField);
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 138 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->field_name);
-#line 139 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->path_separator);
-#line 142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _keyword_transformer_unref0 (self->transformer);
-#line 2189 "PhotoMetadata.c"
-}
-
-
-GType
-hierarchical_keyword_field_get_type (void)
-{
- static volatile gsize hierarchical_keyword_field_type_id__volatile = 0;
- if (g_once_init_enter (&hierarchical_keyword_field_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_hierarchical_keyword_field_init, value_hierarchical_keyword_field_free_value, value_hierarchical_keyword_field_copy_value, value_hierarchical_keyword_field_peek_pointer, "p", value_hierarchical_keyword_field_collect_value, "p", value_hierarchical_keyword_field_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (HierarchicalKeywordFieldClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hierarchical_keyword_field_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HierarchicalKeywordField), 0, (GInstanceInitFunc) hierarchical_keyword_field_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType hierarchical_keyword_field_type_id;
- hierarchical_keyword_field_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HierarchicalKeywordField", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&hierarchical_keyword_field_type_id__volatile, hierarchical_keyword_field_type_id);
- }
- return hierarchical_keyword_field_type_id__volatile;
-}
-
-
-gpointer
-hierarchical_keyword_field_ref (gpointer instance)
-{
- HierarchicalKeywordField * self;
- self = instance;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return instance;
-#line 2218 "PhotoMetadata.c"
-}
-
-
-void
-hierarchical_keyword_field_unref (gpointer instance)
-{
- HierarchicalKeywordField * self;
- self = instance;
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- HIERARCHICAL_KEYWORD_FIELD_GET_CLASS (self)->finalize (self);
-#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2233 "PhotoMetadata.c"
- }
-}
-
-
-PhotoPreview*
-photo_preview_construct (GType object_type,
- const gchar* name,
- Dimensions* dimensions,
- guint32 size,
- const gchar* mime_type,
- const gchar* extension)
-{
- PhotoPreview* self = NULL;
- gchar* _tmp0_;
- Dimensions _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (dimensions != NULL, NULL);
-#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (mime_type != NULL, NULL);
-#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (extension != NULL, NULL);
-#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = (PhotoPreview*) g_type_create_instance (object_type);
-#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (name);
-#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->name);
-#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->name = _tmp0_;
-#line 167 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = *dimensions;
-#line 167 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->dimensions = _tmp1_;
-#line 168 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->size = size;
-#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_strdup (mime_type);
-#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->mime_type);
-#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->mime_type = _tmp2_;
-#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = g_strdup (extension);
-#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->extension);
-#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->extension = _tmp3_;
-#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self;
-#line 2287 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_preview_get_name (PhotoPreview* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 173 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
-#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->name;
-#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 2307 "PhotoMetadata.c"
-}
-
-
-void
-photo_preview_get_pixel_dimensions (PhotoPreview* self,
- Dimensions* result)
-{
- Dimensions _tmp0_;
-#line 177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_PREVIEW (self));
-#line 178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->dimensions;
-#line 178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *result = _tmp0_;
-#line 178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 2324 "PhotoMetadata.c"
-}
-
-
-guint32
-photo_preview_get_size (PhotoPreview* self)
-{
- guint32 result = 0U;
- guint32 _tmp0_;
-#line 181 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_PREVIEW (self), 0U);
-#line 182 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->size;
-#line 182 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
-#line 182 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 2341 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_preview_get_mime_type (PhotoPreview* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 185 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
-#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->mime_type;
-#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 2361 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_preview_get_extension (PhotoPreview* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 189 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
-#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->extension;
-#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 2381 "PhotoMetadata.c"
-}
-
-
-static GBytes*
-photo_preview_real_flatten (PhotoPreview* self,
- GError** error)
-{
-#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_critical ("Type `%s' does not implement abstract method `photo_preview_flatten'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 2393 "PhotoMetadata.c"
-}
-
-
-GBytes*
-photo_preview_flatten (PhotoPreview* self,
- GError** error)
-{
-#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
-#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return PHOTO_PREVIEW_GET_CLASS (self)->flatten (self, error);
-#line 2405 "PhotoMetadata.c"
-}
-
-
-static GdkPixbuf*
-photo_preview_real_get_pixbuf (PhotoPreview* self,
- GError** error)
-{
- GdkPixbuf* result = NULL;
- GBytes* flattened = NULL;
- GBytes* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_preview_flatten (self, &_inner_error_);
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- flattened = _tmp0_;
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 2427 "PhotoMetadata.c"
- }
- {
- GdkPixbuf* _tmp1_ = NULL;
- GMemoryInputStream* _tmp2_;
- GMemoryInputStream* _tmp3_;
- GdkPixbuf* _tmp4_;
- GdkPixbuf* _tmp5_;
- GdkPixbuf* _tmp6_;
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (flattened);
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_);
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_;
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp3_);
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _tmp5_;
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2450 "PhotoMetadata.c"
- goto __catch29_g_error;
- }
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _tmp1_;
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = NULL;
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp6_;
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp1_);
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_bytes_unref0 (flattened);
-#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 2465 "PhotoMetadata.c"
- }
- goto __finally29;
- __catch29_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp7_;
- GError* _tmp8_;
- const gchar* _tmp9_;
-#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- err = _inner_error_;
-#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _inner_error_ = NULL;
-#line 204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = self->priv->name;
-#line 204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = err;
-#line 204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp8_->message;
-#line 204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:204: Unable to decode thumbnail for %s: %s", _tmp7_, _tmp9_);
-#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_error_free0 (err);
-#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_bytes_unref0 (flattened);
-#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 2494 "PhotoMetadata.c"
- }
- __finally29:
-#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"
- _g_bytes_unref0 (flattened);
-#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 2503 "PhotoMetadata.c"
-}
-
-
-GdkPixbuf*
-photo_preview_get_pixbuf (PhotoPreview* self,
- GError** error)
-{
-#line 195 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
-#line 195 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return PHOTO_PREVIEW_GET_CLASS (self)->get_pixbuf (self, error);
-#line 2515 "PhotoMetadata.c"
-}
-
-
-static void
-value_photo_preview_init (GValue* value)
-{
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2524 "PhotoMetadata.c"
-}
-
-
-static void
-value_photo_preview_free_value (GValue* value)
-{
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (value->data[0].v_pointer) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_preview_unref (value->data[0].v_pointer);
-#line 2535 "PhotoMetadata.c"
- }
-}
-
-
-static void
-value_photo_preview_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (src_value->data[0].v_pointer) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dest_value->data[0].v_pointer = photo_preview_ref (src_value->data[0].v_pointer);
-#line 2548 "PhotoMetadata.c"
- } else {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2552 "PhotoMetadata.c"
- }
-}
-
-
-static gpointer
-value_photo_preview_peek_pointer (const GValue* value)
-{
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return value->data[0].v_pointer;
-#line 2562 "PhotoMetadata.c"
-}
-
-
-static gchar*
-value_photo_preview_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (collect_values[0].v_pointer) {
-#line 2574 "PhotoMetadata.c"
- PhotoPreview * object;
- object = collect_values[0].v_pointer;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2581 "PhotoMetadata.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.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 2585 "PhotoMetadata.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = photo_preview_ref (object);
-#line 2589 "PhotoMetadata.c"
- } else {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2593 "PhotoMetadata.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 2597 "PhotoMetadata.c"
-}
-
-
-static gchar*
-value_photo_preview_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PhotoPreview ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!object_p) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2613 "PhotoMetadata.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!value->data[0].v_pointer) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = NULL;
-#line 2619 "PhotoMetadata.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = value->data[0].v_pointer;
-#line 2623 "PhotoMetadata.c"
- } else {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *object_p = photo_preview_ref (value->data[0].v_pointer);
-#line 2627 "PhotoMetadata.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 2631 "PhotoMetadata.c"
-}
-
-
-GParamSpec*
-param_spec_photo_preview (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecPhotoPreview* spec;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_PREVIEW), NULL);
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return G_PARAM_SPEC (spec);
-#line 2651 "PhotoMetadata.c"
-}
-
-
-gpointer
-value_get_photo_preview (const GValue* value)
-{
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW), NULL);
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return value->data[0].v_pointer;
-#line 2662 "PhotoMetadata.c"
-}
-
-
-void
-value_set_photo_preview (GValue* value,
- gpointer v_object)
-{
- PhotoPreview * old;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW));
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (v_object) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_PREVIEW));
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_preview_ref (value->data[0].v_pointer);
-#line 2685 "PhotoMetadata.c"
- } else {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2689 "PhotoMetadata.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (old) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_preview_unref (old);
-#line 2695 "PhotoMetadata.c"
- }
-}
-
-
-void
-value_take_photo_preview (GValue* value,
- gpointer v_object)
-{
- PhotoPreview * old;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW));
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- old = value->data[0].v_pointer;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (v_object) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_PREVIEW));
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = v_object;
-#line 2717 "PhotoMetadata.c"
- } else {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value->data[0].v_pointer = NULL;
-#line 2721 "PhotoMetadata.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (old) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_preview_unref (old);
-#line 2727 "PhotoMetadata.c"
- }
-}
-
-
-static void
-photo_preview_class_init (PhotoPreviewClass * klass)
-{
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_preview_parent_class = g_type_class_peek_parent (klass);
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((PhotoPreviewClass *) klass)->finalize = photo_preview_finalize;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_type_class_add_private (klass, sizeof (PhotoPreviewPrivate));
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((PhotoPreviewClass *) klass)->flatten = (GBytes* (*) (PhotoPreview *, GError**)) photo_preview_real_flatten;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((PhotoPreviewClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoPreview *, GError**)) photo_preview_real_get_pixbuf;
-#line 2745 "PhotoMetadata.c"
-}
-
-
-static void
-photo_preview_instance_init (PhotoPreview * self)
-{
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv = PHOTO_PREVIEW_GET_PRIVATE (self);
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->ref_count = 1;
-#line 2756 "PhotoMetadata.c"
-}
-
-
-static void
-photo_preview_finalize (PhotoPreview * obj)
-{
- PhotoPreview * self;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_PREVIEW, PhotoPreview);
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_signal_handlers_destroy (self);
-#line 159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->name);
-#line 162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->mime_type);
-#line 163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->extension);
-#line 2774 "PhotoMetadata.c"
-}
-
-
-GType
-photo_preview_get_type (void)
-{
- static volatile gsize photo_preview_type_id__volatile = 0;
- if (g_once_init_enter (&photo_preview_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_photo_preview_init, value_photo_preview_free_value, value_photo_preview_copy_value, value_photo_preview_peek_pointer, "p", value_photo_preview_collect_value, "p", value_photo_preview_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PhotoPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoPreview), 0, (GInstanceInitFunc) photo_preview_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType photo_preview_type_id;
- photo_preview_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoPreview", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&photo_preview_type_id__volatile, photo_preview_type_id);
- }
- return photo_preview_type_id__volatile;
-}
-
-
-gpointer
-photo_preview_ref (gpointer instance)
-{
- PhotoPreview * self;
- self = instance;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return instance;
-#line 2803 "PhotoMetadata.c"
-}
-
-
-void
-photo_preview_unref (gpointer instance)
-{
- PhotoPreview * self;
- self = instance;
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- PHOTO_PREVIEW_GET_CLASS (self)->finalize (self);
-#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2818 "PhotoMetadata.c"
- }
-}
-
-
-GType
-photo_metadata_set_option_get_type (void)
-{
- static volatile gsize photo_metadata_set_option_type_id__volatile = 0;
- if (g_once_init_enter (&photo_metadata_set_option_type_id__volatile)) {
- static const GEnumValue values[] = {{PHOTO_METADATA_SET_OPTION_ALL_DOMAINS, "PHOTO_METADATA_SET_OPTION_ALL_DOMAINS", "all-domains"}, {PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT, "PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT", "only-if-domain-present"}, {PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN, "PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN", "at-least-default-domain"}, {0, NULL, NULL}};
- GType photo_metadata_set_option_type_id;
- photo_metadata_set_option_type_id = g_enum_register_static ("PhotoMetadataSetOption", values);
- g_once_init_leave (&photo_metadata_set_option_type_id__volatile, photo_metadata_set_option_type_id);
- }
- return photo_metadata_set_option_type_id__volatile;
-}
-
-
-PhotoMetadata*
-photo_metadata_construct (GType object_type)
-{
- PhotoMetadata* self = NULL;
-#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = (PhotoMetadata*) media_metadata_construct (object_type);
-#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self;
-#line 2845 "PhotoMetadata.c"
-}
-
-
-PhotoMetadata*
-photo_metadata_new (void)
-{
-#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return photo_metadata_construct (TYPE_PHOTO_METADATA);
-#line 2854 "PhotoMetadata.c"
-}
-
-
-static void
-photo_metadata_real_read_from_file (MediaMetadata* base,
- GFile* file,
- GError** error)
-{
- PhotoMetadata * self;
- GExiv2Metadata* _tmp0_;
- GExiv2Metadata* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- ExifData* _tmp6_;
- gchar* _tmp7_;
- GError * _inner_error_ = NULL;
-#line 257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
-#line 257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gexiv2_metadata_new ();
-#line 258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (self->priv->exiv2);
-#line 258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exiv2 = _tmp0_;
-#line 259 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_data_unref0 (self->priv->exif);
-#line 259 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = NULL;
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_file_get_path (file);
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_open_path (_tmp1_, _tmp3_, &_inner_error_);
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp3_);
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 2903 "PhotoMetadata.c"
- }
-#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = g_file_get_path (file);
-#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_;
-#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = exif_data_new_from_file (_tmp5_);
-#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_data_unref0 (self->priv->exif);
-#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = _tmp6_;
-#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp5_);
-#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = g_file_get_basename (file);
-#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->source_name);
-#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->source_name = _tmp7_;
-#line 2923 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_write_to_file (PhotoMetadata* self,
- GFile* file,
- GError** error)
-{
- GExiv2Metadata* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 266 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 266 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_file_get_path (file);
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_;
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_save_file (_tmp0_, _tmp2_, &_inner_error_);
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp2_);
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 2956 "PhotoMetadata.c"
- }
-}
-
-
-void
-photo_metadata_read_from_buffer (PhotoMetadata* self,
- guint8* buffer,
- int buffer_length1,
- gint length,
- GError** error)
-{
- GExiv2Metadata* _tmp0_;
- GExiv2Metadata* _tmp1_;
- ExifData* _tmp2_;
- gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 270 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (length <= 0) {
-#line 272 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- length = buffer_length1;
-#line 2979 "PhotoMetadata.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_assert (buffer_length1 >= length, "buffer.length >= length");
-#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gexiv2_metadata_new ();
-#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (self->priv->exiv2);
-#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exiv2 = _tmp0_;
-#line 277 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_data_unref0 (self->priv->exif);
-#line 277 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = NULL;
-#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
-#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_open_buf (_tmp1_, buffer, (glong) length, &_inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 3003 "PhotoMetadata.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = exif_data_new_from_data (buffer, (gsize) length);
-#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_data_unref0 (self->priv->exif);
-#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = _tmp2_;
-#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = g_strdup_printf ("<memory buffer %d bytes>", length);
-#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->source_name);
-#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->source_name = _tmp3_;
-#line 3017 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_read_from_app1_segment (PhotoMetadata* self,
- GBytes* buffer,
- GError** error)
-{
- GExiv2Metadata* _tmp0_;
- GExiv2Metadata* _tmp1_;
- gsize _tmp2_;
- guint8* _tmp3_;
- gsize _tmp4_;
- guint8* _tmp5_;
- ExifData* _tmp6_;
- gchar* _tmp7_;
- GError * _inner_error_ = NULL;
-#line 284 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 284 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (buffer != NULL);
-#line 285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gexiv2_metadata_new ();
-#line 285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (self->priv->exiv2);
-#line 285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exiv2 = _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_data_unref0 (self->priv->exif);
-#line 286 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = NULL;
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = g_bytes_get_data (buffer, &_tmp2_);
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_from_app1_segment (_tmp1_, _tmp3_, (glong) g_bytes_get_size (buffer), &_inner_error_);
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_propagate_error (error, _inner_error_);
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 3061 "PhotoMetadata.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = g_bytes_get_data (buffer, &_tmp4_);
-#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = exif_data_new_from_data (_tmp5_, g_bytes_get_size (buffer));
-#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_data_unref0 (self->priv->exif);
-#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = _tmp6_;
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = g_strdup_printf ("<app1 segment %zu bytes>", g_bytes_get_size (buffer));
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->source_name);
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->source_name = _tmp7_;
-#line 3077 "PhotoMetadata.c"
-}
-
-
-MetadataDomain
-photo_metadata_get_tag_domain (const gchar* tag)
-{
- MetadataDomain result = 0;
-#line 293 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, 0);
-#line 294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (gexiv2_metadata_is_exif_tag (tag)) {
-#line 295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = METADATA_DOMAIN_EXIF;
-#line 295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3093 "PhotoMetadata.c"
- }
-#line 297 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (gexiv2_metadata_is_xmp_tag (tag)) {
-#line 298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = METADATA_DOMAIN_XMP;
-#line 298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3101 "PhotoMetadata.c"
- }
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (gexiv2_metadata_is_iptc_tag (tag)) {
-#line 301 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = METADATA_DOMAIN_IPTC;
-#line 301 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3109 "PhotoMetadata.c"
- }
-#line 303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = METADATA_DOMAIN_UNKNOWN;
-#line 303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3115 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_has_domain (PhotoMetadata* self,
- MetadataDomain domain)
-{
- gboolean result = FALSE;
-#line 306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (domain) {
-#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_EXIF:
-#line 3130 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp0_;
-#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = gexiv2_metadata_has_exif (_tmp0_);
-#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3139 "PhotoMetadata.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_XMP:
-#line 3143 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp1_;
-#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
-#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = gexiv2_metadata_has_xmp (_tmp1_);
-#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3152 "PhotoMetadata.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_IPTC:
-#line 3156 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp2_;
-#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = self->priv->exiv2;
-#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = gexiv2_metadata_has_iptc (_tmp2_);
-#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3165 "PhotoMetadata.c"
- }
- default:
-#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_UNKNOWN:
-#line 3170 "PhotoMetadata.c"
- {
-#line 319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3176 "PhotoMetadata.c"
- }
- }
-}
-
-
-gboolean
-photo_metadata_has_exif (PhotoMetadata* self)
-{
- gboolean result = FALSE;
-#line 323 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = photo_metadata_has_domain (self, METADATA_DOMAIN_EXIF);
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3192 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_has_xmp (PhotoMetadata* self)
-{
- gboolean result = FALSE;
-#line 327 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 328 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = photo_metadata_has_domain (self, METADATA_DOMAIN_XMP);
-#line 328 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3206 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_has_iptc (PhotoMetadata* self)
-{
- gboolean result = FALSE;
-#line 331 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 332 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = photo_metadata_has_domain (self, METADATA_DOMAIN_IPTC);
-#line 332 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3220 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_can_write_to_domain (PhotoMetadata* self,
- MetadataDomain domain)
-{
- gboolean result = FALSE;
-#line 335 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (domain) {
-#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_EXIF:
-#line 3235 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp0_;
-#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = gexiv2_metadata_get_supports_exif (_tmp0_);
-#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3244 "PhotoMetadata.c"
- }
-#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_XMP:
-#line 3248 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp1_;
-#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
-#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = gexiv2_metadata_get_supports_xmp (_tmp1_);
-#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3257 "PhotoMetadata.c"
- }
-#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_IPTC:
-#line 3261 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp2_;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = self->priv->exiv2;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = gexiv2_metadata_get_supports_iptc (_tmp2_);
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3270 "PhotoMetadata.c"
- }
- default:
-#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_UNKNOWN:
-#line 3275 "PhotoMetadata.c"
- {
-#line 348 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 348 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3281 "PhotoMetadata.c"
- }
- }
-}
-
-
-gboolean
-photo_metadata_can_write_exif (PhotoMetadata* self)
-{
- gboolean result = FALSE;
-#line 352 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 353 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_EXIF);
-#line 353 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3297 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_can_write_xmp (PhotoMetadata* self)
-{
- gboolean result = FALSE;
-#line 356 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 357 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_XMP);
-#line 357 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3311 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_can_write_iptc (PhotoMetadata* self)
-{
- gboolean result = FALSE;
-#line 360 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 361 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_IPTC);
-#line 361 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3325 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_has_tag (PhotoMetadata* self,
- const gchar* tag)
-{
- gboolean result = FALSE;
- GExiv2Metadata* _tmp0_;
-#line 364 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 364 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, FALSE);
-#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = gexiv2_metadata_has_tag (_tmp0_, tag);
-#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3345 "PhotoMetadata.c"
-}
-
-
-static GeeSet*
-photo_metadata_create_string_set (PhotoMetadata* self,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify)
-{
- GeeSet* result = NULL;
-#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 370 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (compare_func == NULL) {
-#line 3360 "PhotoMetadata.c"
- GeeHashSet* _tmp0_;
-#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
-#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3376 "PhotoMetadata.c"
- } else {
- GCompareDataFunc _tmp1_;
- void* _tmp1__target;
- GDestroyNotify _tmp1__target_destroy_notify;
- GeeTreeSet* _tmp2_;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = compare_func;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__target = compare_func_target;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__target_destroy_notify = compare_func_target_destroy_notify;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_SET, GeeSet);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3408 "PhotoMetadata.c"
- }
-#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 3418 "PhotoMetadata.c"
-}
-
-
-GeeCollection*
-photo_metadata_get_tags (PhotoMetadata* self,
- MetadataDomain domain,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify)
-{
- GeeCollection* result = NULL;
- gchar** tags = NULL;
- gint tags_length1;
- gint _tags_size_;
- gboolean _tmp9_ = FALSE;
- gchar** _tmp10_;
- gint _tmp10__length1;
- GeeCollection* collection = NULL;
- GCompareDataFunc _tmp12_;
- void* _tmp12__target;
- GDestroyNotify _tmp12__target_destroy_notify;
- GeeSet* _tmp13_;
- gchar** _tmp14_;
- gint _tmp14__length1;
-#line 376 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = NULL;
-#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags_length1 = 0;
-#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tags_size_ = tags_length1;
-#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (domain) {
-#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_EXIF:
-#line 3455 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp0_;
- gchar** _tmp1_;
- gchar** _tmp2_;
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_ = gexiv2_metadata_get_exif_tags (_tmp0_);
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL);
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = _tmp2_;
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags_length1 = _vala_array_length (_tmp1_);
-#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tags_size_ = tags_length1;
-#line 382 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 3474 "PhotoMetadata.c"
- }
-#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_XMP:
-#line 3478 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp3_;
- gchar** _tmp4_;
- gchar** _tmp5_;
-#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = self->priv->exiv2;
-#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_ = gexiv2_metadata_get_xmp_tags (_tmp3_);
-#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL);
-#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = _tmp5_;
-#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags_length1 = _vala_array_length (_tmp4_);
-#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tags_size_ = tags_length1;
-#line 386 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 3497 "PhotoMetadata.c"
- }
-#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_IPTC:
-#line 3501 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp6_;
- gchar** _tmp7_;
- gchar** _tmp8_;
-#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = self->priv->exiv2;
-#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = _tmp7_ = gexiv2_metadata_get_iptc_tags (_tmp6_);
-#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL);
-#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = _tmp8_;
-#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags_length1 = _vala_array_length (_tmp7_);
-#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tags_size_ = tags_length1;
-#line 390 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 3520 "PhotoMetadata.c"
- }
- default:
-#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 3525 "PhotoMetadata.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = tags;
-#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10__length1 = tags_length1;
-#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp10_ == NULL) {
-#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = TRUE;
-#line 3535 "PhotoMetadata.c"
- } else {
- gchar** _tmp11_;
- gint _tmp11__length1;
-#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = tags;
-#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11__length1 = tags_length1;
-#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp11__length1 == 0;
-#line 3545 "PhotoMetadata.c"
- }
-#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp9_) {
-#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL);
-#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3563 "PhotoMetadata.c"
- }
-#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = compare_func;
-#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12__target = compare_func_target;
-#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12__target_destroy_notify = compare_func_target_destroy_notify;
-#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = photo_metadata_create_string_set (self, _tmp12_, _tmp12__target, _tmp12__target_destroy_notify);
-#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- collection = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = tags;
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14__length1 = tags_length1;
-#line 3585 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp14_;
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp14__length1;
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp14__length1; tag_it = tag_it + 1) {
-#line 3597 "PhotoMetadata.c"
- gchar* _tmp15_;
- gchar* tag = NULL;
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = g_strdup (tag_collection[tag_it]);
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp15_;
-#line 3604 "PhotoMetadata.c"
- {
- GeeCollection* _tmp16_;
- const gchar* _tmp17_;
-#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = collection;
-#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = tag;
-#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (_tmp16_, _tmp17_);
-#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 3616 "PhotoMetadata.c"
- }
- }
- }
-#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = collection;
-#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL);
-#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3634 "PhotoMetadata.c"
-}
-
-
-GeeCollection*
-photo_metadata_get_all_tags (PhotoMetadata* self,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify)
-{
- GeeCollection* result = NULL;
- GeeCollection* all_tags = NULL;
- GCompareDataFunc _tmp0_;
- void* _tmp0__target;
- GDestroyNotify _tmp0__target_destroy_notify;
- GeeSet* _tmp1_;
- GeeCollection* exif_tags = NULL;
- GeeCollection* _tmp2_;
- gboolean _tmp3_ = FALSE;
- GeeCollection* _tmp4_;
- GeeCollection* xmp_tags = NULL;
- GeeCollection* _tmp10_;
- gboolean _tmp11_ = FALSE;
- GeeCollection* _tmp12_;
- GeeCollection* iptc_tags = NULL;
- GeeCollection* _tmp18_;
- gboolean _tmp19_ = FALSE;
- GeeCollection* _tmp20_;
- GeeCollection* _tmp26_ = NULL;
- GeeCollection* _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- GeeCollection* _tmp31_;
-#line 403 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = compare_func;
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__target = compare_func_target;
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__target_destroy_notify = compare_func_target_destroy_notify;
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_create_string_set (self, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify);
-#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- all_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_tags (self, METADATA_DOMAIN_EXIF, NULL, NULL, NULL);
-#line 407 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- exif_tags = _tmp2_;
-#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = exif_tags;
-#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ != NULL) {
-#line 3693 "PhotoMetadata.c"
- GeeCollection* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = exif_tags;
-#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gee_collection_get_size (_tmp5_);
-#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _tmp6_;
-#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp7_ > 0;
-#line 3705 "PhotoMetadata.c"
- } else {
-#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = FALSE;
-#line 3709 "PhotoMetadata.c"
- }
-#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
-#line 3713 "PhotoMetadata.c"
- GeeCollection* _tmp8_;
- GeeCollection* _tmp9_;
-#line 409 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = all_tags;
-#line 409 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = exif_tags;
-#line 409 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add_all (_tmp8_, _tmp9_);
-#line 3722 "PhotoMetadata.c"
- }
-#line 411 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = photo_metadata_get_tags (self, METADATA_DOMAIN_XMP, NULL, NULL, NULL);
-#line 411 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- xmp_tags = _tmp10_;
-#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = xmp_tags;
-#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp12_ != NULL) {
-#line 3732 "PhotoMetadata.c"
- GeeCollection* _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
-#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = xmp_tags;
-#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = gee_collection_get_size (_tmp13_);
-#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _tmp14_;
-#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = _tmp15_ > 0;
-#line 3744 "PhotoMetadata.c"
- } else {
-#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = FALSE;
-#line 3748 "PhotoMetadata.c"
- }
-#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp11_) {
-#line 3752 "PhotoMetadata.c"
- GeeCollection* _tmp16_;
- GeeCollection* _tmp17_;
-#line 413 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = all_tags;
-#line 413 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = xmp_tags;
-#line 413 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add_all (_tmp16_, _tmp17_);
-#line 3761 "PhotoMetadata.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = photo_metadata_get_tags (self, METADATA_DOMAIN_IPTC, NULL, NULL, NULL);
-#line 415 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- iptc_tags = _tmp18_;
-#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = iptc_tags;
-#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp20_ != NULL) {
-#line 3771 "PhotoMetadata.c"
- GeeCollection* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
-#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = iptc_tags;
-#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = gee_collection_get_size (_tmp21_);
-#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = _tmp22_;
-#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = _tmp23_ > 0;
-#line 3783 "PhotoMetadata.c"
- } else {
-#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = FALSE;
-#line 3787 "PhotoMetadata.c"
- }
-#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp19_) {
-#line 3791 "PhotoMetadata.c"
- GeeCollection* _tmp24_;
- GeeCollection* _tmp25_;
-#line 417 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = all_tags;
-#line 417 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = iptc_tags;
-#line 417 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add_all (_tmp24_, _tmp25_);
-#line 3800 "PhotoMetadata.c"
- }
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = all_tags;
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = gee_collection_get_size (_tmp27_);
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ = _tmp28_;
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp29_ > 0) {
-#line 3810 "PhotoMetadata.c"
- GeeCollection* _tmp30_;
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_ = all_tags;
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = _tmp30_;
-#line 3816 "PhotoMetadata.c"
- } else {
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = NULL;
-#line 3820 "PhotoMetadata.c"
- }
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp31_ = _g_object_ref0 (_tmp26_);
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp31_;
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (iptc_tags);
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (xmp_tags);
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (exif_tags);
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (all_tags);
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3844 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_tag_label (PhotoMetadata* self,
- const gchar* tag)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 422 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 422 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, NULL);
-#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gexiv2_metadata_get_tag_label (tag);
-#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3867 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_tag_description (PhotoMetadata* self,
- const gchar* tag)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 426 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 426 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, NULL);
-#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gexiv2_metadata_get_tag_description (tag);
-#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3890 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_string (PhotoMetadata* self,
- const gchar* tag,
- PrepareInputTextOptions options)
-{
- gchar* result = NULL;
- GExiv2Metadata* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 430 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 430 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, NULL);
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gexiv2_metadata_get_tag_string (_tmp0_, tag);
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_;
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = prepare_input_text (_tmp2_, options, DEFAULT_USER_TEXT_INPUT_LENGTH);
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp3_;
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp2_);
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp4_;
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3925 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_string_interpreted (PhotoMetadata* self,
- const gchar* tag,
- PrepareInputTextOptions options)
-{
- gchar* result = NULL;
- GExiv2Metadata* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 434 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 434 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, NULL);
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gexiv2_metadata_get_tag_interpreted_string (_tmp0_, tag);
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_;
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = prepare_input_text (_tmp2_, options, DEFAULT_USER_TEXT_INPUT_LENGTH);
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp3_;
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp2_);
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp4_;
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 3960 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_first_string (PhotoMetadata* self,
- gchar** tags,
- int tags_length1)
-{
- gchar* result = NULL;
-#line 438 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 3972 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = tags;
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = tags_length1;
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
-#line 3984 "PhotoMetadata.c"
- gchar* _tmp0_;
- gchar* tag = NULL;
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (tag_collection[tag_it]);
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp0_;
-#line 3991 "PhotoMetadata.c"
- {
- gchar* value = NULL;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_string (self, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = _tmp2_;
-#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = value;
-#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_ != NULL) {
-#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = value;
-#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 4013 "PhotoMetadata.c"
- }
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 4019 "PhotoMetadata.c"
- }
- }
- }
-#line 445 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 445 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 4027 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_first_string_interpreted (PhotoMetadata* self,
- gchar** tags,
- int tags_length1)
-{
- gchar* result = NULL;
-#line 448 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 4039 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = tags;
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = tags_length1;
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
-#line 4051 "PhotoMetadata.c"
- gchar* _tmp0_;
- gchar* tag = NULL;
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (tag_collection[tag_it]);
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp0_;
-#line 4058 "PhotoMetadata.c"
- {
- gchar* value = NULL;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_string_interpreted (self, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = _tmp2_;
-#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = value;
-#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_ != NULL) {
-#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = value;
-#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 4080 "PhotoMetadata.c"
- }
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 4086 "PhotoMetadata.c"
- }
- }
- }
-#line 455 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 455 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 4094 "PhotoMetadata.c"
-}
-
-
-GeeList*
-photo_metadata_get_string_multiple (PhotoMetadata* self,
- const gchar* tag)
-{
- GeeList* result = NULL;
- gchar** values = NULL;
- GExiv2Metadata* _tmp0_;
- gchar** _tmp1_;
- gchar** _tmp2_;
- gint values_length1;
- gint _values_size_;
- gboolean _tmp3_ = FALSE;
- gchar** _tmp4_;
- gint _tmp4__length1;
- GeeList* list = NULL;
- GeeArrayList* _tmp6_;
- GeeHashSet* collection = NULL;
- GeeHashSet* _tmp7_;
- gchar** _tmp8_;
- gint _tmp8__length1;
- GeeList* _tmp20_ = NULL;
- GeeList* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- GeeList* _tmp25_;
-#line 464 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 464 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, NULL);
-#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_ = gexiv2_metadata_get_tag_multiple (_tmp0_, tag);
-#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = _tmp2_;
-#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values_length1 = _vala_array_length (_tmp1_);
-#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _values_size_ = values_length1;
-#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = values;
-#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = values_length1;
-#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ == NULL) {
-#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = TRUE;
-#line 4145 "PhotoMetadata.c"
- } else {
- gchar** _tmp5_;
- gint _tmp5__length1;
-#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = values;
-#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = values_length1;
-#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp5__length1 == 0;
-#line 4155 "PhotoMetadata.c"
- }
-#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
-#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
-#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 4165 "PhotoMetadata.c"
- }
-#line 469 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 469 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- list = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList);
-#line 471 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 471 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- collection = _tmp7_;
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = values;
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8__length1 = values_length1;
-#line 4179 "PhotoMetadata.c"
- {
- gchar** value_collection = NULL;
- gint value_collection_length1 = 0;
- gint _value_collection_size_ = 0;
- gint value_it = 0;
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value_collection = _tmp8_;
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value_collection_length1 = _tmp8__length1;
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (value_it = 0; value_it < _tmp8__length1; value_it = value_it + 1) {
-#line 4191 "PhotoMetadata.c"
- gchar* _tmp9_;
- gchar* value = NULL;
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = g_strdup (value_collection[value_it]);
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = _tmp9_;
-#line 4198 "PhotoMetadata.c"
- {
- gchar* prepped = NULL;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_ = FALSE;
- const gchar* _tmp13_;
-#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = value;
-#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = prepare_input_text (_tmp10_, PHOTO_METADATA_PREPARE_STRING_OPTIONS, DEFAULT_USER_TEXT_INPUT_LENGTH);
-#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- prepped = _tmp11_;
-#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = prepped;
-#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp13_ != NULL) {
-#line 4215 "PhotoMetadata.c"
- GeeHashSet* _tmp14_;
- const gchar* _tmp15_;
-#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = collection;
-#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = prepped;
-#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = !gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 4224 "PhotoMetadata.c"
- } else {
-#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = FALSE;
-#line 4228 "PhotoMetadata.c"
- }
-#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp12_) {
-#line 4232 "PhotoMetadata.c"
- GeeList* _tmp16_;
- const gchar* _tmp17_;
- GeeHashSet* _tmp18_;
- const gchar* _tmp19_;
-#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = list;
-#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = prepped;
-#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_);
-#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = collection;
-#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = prepped;
-#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp19_);
-#line 4249 "PhotoMetadata.c"
- }
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (prepped);
-#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 4255 "PhotoMetadata.c"
- }
- }
- }
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = list;
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = _tmp22_;
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp23_ > 0) {
-#line 4267 "PhotoMetadata.c"
- GeeList* _tmp24_;
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = list;
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = _tmp24_;
-#line 4273 "PhotoMetadata.c"
- } else {
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = NULL;
-#line 4277 "PhotoMetadata.c"
- }
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = _g_object_ref0 (_tmp20_);
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp25_;
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (collection);
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (list);
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
-#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 4291 "PhotoMetadata.c"
-}
-
-
-GeeList*
-photo_metadata_get_first_string_multiple (PhotoMetadata* self,
- gchar** tags,
- int tags_length1)
-{
- GeeList* result = NULL;
-#line 491 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 4303 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = tags;
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = tags_length1;
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
-#line 4315 "PhotoMetadata.c"
- gchar* _tmp0_;
- gchar* tag = NULL;
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (tag_collection[tag_it]);
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp0_;
-#line 4322 "PhotoMetadata.c"
- {
- GeeList* values = NULL;
- const gchar* _tmp1_;
- GeeList* _tmp2_;
- gboolean _tmp3_ = FALSE;
- GeeList* _tmp4_;
-#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_string_multiple (self, _tmp1_);
-#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = _tmp2_;
-#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = values;
-#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ != NULL) {
-#line 4339 "PhotoMetadata.c"
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = values;
-#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _tmp6_;
-#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp7_ > 0;
-#line 4351 "PhotoMetadata.c"
- } else {
-#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = FALSE;
-#line 4355 "PhotoMetadata.c"
- }
-#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
-#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = values;
-#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 4365 "PhotoMetadata.c"
- }
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (values);
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 4371 "PhotoMetadata.c"
- }
- }
- }
-#line 498 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 498 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 4379 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_string (PhotoMetadata* self,
- const gchar* tag,
- const gchar* value,
- PrepareInputTextOptions options)
-{
- gchar* prepped = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- GExiv2Metadata* _tmp2_;
- const gchar* _tmp3_;
-#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (value != NULL);
-#line 502 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = prepare_input_text (value, options, DEFAULT_USER_TEXT_INPUT_LENGTH);
-#line 502 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- prepped = _tmp0_;
-#line 503 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = prepped;
-#line 503 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_ == NULL) {
-#line 504 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:504: Not setting tag %s to string %s: invalid UTF-8", tag, value);
-#line 506 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (prepped);
-#line 506 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 4414 "PhotoMetadata.c"
- }
-#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = self->priv->exiv2;
-#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = prepped;
-#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gexiv2_metadata_set_tag_string (_tmp2_, tag, _tmp3_)) {
-#line 4422 "PhotoMetadata.c"
- const gchar* _tmp4_;
-#line 510 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = self->priv->source_name;
-#line 510 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:510: Unable to set tag %s to string %s from source " \
-"%s", tag, value, _tmp4_);
-#line 4428 "PhotoMetadata.c"
- }
-#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (prepped);
-#line 4432 "PhotoMetadata.c"
-}
-
-
-static void
-photo_metadata_set_all_generic (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- PhotoMetadataSetOption option,
- PhotoMetadataSetGenericValue setter,
- void* setter_target)
-{
- gboolean written = FALSE;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
-#line 515 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 516 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- written = FALSE;
-#line 4451 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = tags;
-#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = tags_length1;
-#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
-#line 4463 "PhotoMetadata.c"
- gchar* _tmp0_;
- gchar* tag = NULL;
-#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (tag_collection[tag_it]);
-#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp0_;
-#line 4470 "PhotoMetadata.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (option == PHOTO_METADATA_SET_OPTION_ALL_DOMAINS) {
-#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = TRUE;
-#line 4477 "PhotoMetadata.c"
- } else {
- const gchar* _tmp2_;
-#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
-#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_has_domain (self, photo_metadata_get_tag_domain (_tmp2_));
-#line 4484 "PhotoMetadata.c"
- }
-#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_) {
-#line 4488 "PhotoMetadata.c"
- const gchar* _tmp3_;
-#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = tag;
-#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- setter (_tmp3_, setter_target);
-#line 520 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- written = TRUE;
-#line 4496 "PhotoMetadata.c"
- }
-#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 4500 "PhotoMetadata.c"
- }
- }
- }
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (option == PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN) {
-#line 4506 "PhotoMetadata.c"
- gboolean _tmp6_;
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = written;
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = !_tmp6_;
-#line 4512 "PhotoMetadata.c"
- } else {
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = FALSE;
-#line 4516 "PhotoMetadata.c"
- }
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp5_) {
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = tags_length1 > 0;
-#line 4522 "PhotoMetadata.c"
- } else {
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = FALSE;
-#line 4526 "PhotoMetadata.c"
- }
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_) {
-#line 4530 "PhotoMetadata.c"
- MetadataDomain default_domain = 0;
- const gchar* _tmp7_;
- const gchar* _tmp8_;
-#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = tags[0];
-#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- default_domain = photo_metadata_get_tag_domain (_tmp7_);
-#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = tags[0];
-#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- setter (_tmp8_, setter_target);
-#line 4542 "PhotoMetadata.c"
- {
- gint ctr = 0;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ctr = 1;
-#line 4547 "PhotoMetadata.c"
- {
- gboolean _tmp9_ = FALSE;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = TRUE;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 4554 "PhotoMetadata.c"
- gint _tmp11_;
- gint _tmp12_;
- const gchar* _tmp13_;
- MetadataDomain _tmp14_;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp9_) {
-#line 4561 "PhotoMetadata.c"
- gint _tmp10_;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = ctr;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ctr = _tmp10_ + 1;
-#line 4567 "PhotoMetadata.c"
- }
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = FALSE;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = ctr;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!(_tmp11_ < tags_length1)) {
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 4577 "PhotoMetadata.c"
- }
-#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = ctr;
-#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = tags[_tmp12_];
-#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = default_domain;
-#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (photo_metadata_get_tag_domain (_tmp13_) == _tmp14_) {
-#line 4587 "PhotoMetadata.c"
- gint _tmp15_;
- const gchar* _tmp16_;
-#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = ctr;
-#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = tags[_tmp15_];
-#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- setter (_tmp16_, setter_target);
-#line 4596 "PhotoMetadata.c"
- }
- }
- }
- }
- }
-}
-
-
-static Block1Data*
-block1_data_ref (Block1Data* _data1_)
-{
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&_data1_->_ref_count_);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return _data1_;
-#line 4612 "PhotoMetadata.c"
-}
-
-
-static void
-block1_data_unref (void * _userdata_)
-{
- Block1Data* _data1_;
- _data1_ = (Block1Data*) _userdata_;
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
-#line 4623 "PhotoMetadata.c"
- PhotoMetadata* self;
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data1_->self;
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_data1_->value);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _media_metadata_unref0 (self);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_slice_free (Block1Data, _data1_);
-#line 4633 "PhotoMetadata.c"
- }
-}
-
-
-static void
-__lambda5_ (Block1Data* _data1_,
- const gchar* tag)
-{
- PhotoMetadata* self;
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data1_->self;
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, tag, _data1_->value, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 4649 "PhotoMetadata.c"
-}
-
-
-static void
-___lambda5__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self)
-{
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- __lambda5_ (self, tag);
-#line 4659 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_all_string (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- const gchar* value,
- PhotoMetadataSetOption option)
-{
- Block1Data* _data1_;
- gchar* _tmp0_;
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (value != NULL);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data1_ = g_slice_new0 (Block1Data);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data1_->_ref_count_ = 1;
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data1_->self = media_metadata_ref (self);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (value);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_data1_->value);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data1_->value = _tmp0_;
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda5__photo_metadata_set_generic_value, _data1_);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- block1_data_unref (_data1_);
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data1_ = NULL;
-#line 4694 "PhotoMetadata.c"
-}
-
-
-static void
-_vala_array_add48 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if ((*length) == (*size)) {
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 4710 "PhotoMetadata.c"
- }
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (*array)[(*length)++] = value;
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (*array)[*length] = NULL;
-#line 4716 "PhotoMetadata.c"
-}
-
-
-static void
-_vala_array_add49 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if ((*length) == (*size)) {
-#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 4732 "PhotoMetadata.c"
- }
-#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (*array)[(*length)++] = value;
-#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (*array)[*length] = NULL;
-#line 4738 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_string_multiple (PhotoMetadata* self,
- const gchar* tag,
- GeeCollection* collection)
-{
- gchar** values = NULL;
- gchar** _tmp0_;
- gint values_length1;
- gint _values_size_;
- gchar** _tmp12_;
- gint _tmp12__length1;
- gchar** _tmp13_;
- gint _tmp13__length1;
- GExiv2Metadata* _tmp14_;
- gchar** _tmp15_;
- gint _tmp15__length1;
-#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (GEE_IS_COLLECTION (collection));
-#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = _tmp0_;
-#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values_length1 = 0;
-#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _values_size_ = values_length1;
-#line 4772 "PhotoMetadata.c"
- {
- GeeIterator* _value_it = NULL;
- GeeIterator* _tmp1_;
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (collection, GEE_TYPE_ITERABLE, GeeIterable));
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _value_it = _tmp1_;
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 4782 "PhotoMetadata.c"
- GeeIterator* _tmp2_;
- gchar* value = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- gchar* prepped = NULL;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _value_it;
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 4797 "PhotoMetadata.c"
- }
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _value_it;
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = (gchar*) _tmp4_;
-#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = value;
-#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = prepare_input_text (_tmp5_, PHOTO_METADATA_PREPARE_STRING_OPTIONS, -1);
-#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- prepped = _tmp6_;
-#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = prepped;
-#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp7_ != NULL) {
-#line 4815 "PhotoMetadata.c"
- gchar** _tmp8_;
- gint _tmp8__length1;
- const gchar* _tmp9_;
- gchar* _tmp10_;
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = values;
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8__length1 = values_length1;
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = prepped;
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = g_strdup (_tmp9_);
-#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_array_add48 (&values, &values_length1, &_values_size_, _tmp10_);
-#line 4830 "PhotoMetadata.c"
- } else {
- const gchar* _tmp11_;
-#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = value;
-#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:549: Unable to set string %s to %s: invalid UTF-8", _tmp11_, tag);
-#line 4837 "PhotoMetadata.c"
- }
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (prepped);
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 4843 "PhotoMetadata.c"
- }
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_value_it);
-#line 4847 "PhotoMetadata.c"
- }
-#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = values;
-#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12__length1 = values_length1;
-#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp12__length1 == 0) {
-#line 553 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
-#line 553 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 4859 "PhotoMetadata.c"
- }
-#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = values;
-#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13__length1 = values_length1;
-#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_array_add49 (&values, &values_length1, &_values_size_, NULL);
-#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = self->priv->exiv2;
-#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = values;
-#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15__length1 = values_length1;
-#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gexiv2_metadata_set_tag_multiple (_tmp14_, tag, _tmp15_)) {
-#line 4875 "PhotoMetadata.c"
- gchar** _tmp16_;
- gint _tmp16__length1;
- const gchar* _tmp17_;
-#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = values;
-#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16__length1 = values_length1;
-#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = self->priv->source_name;
-#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:562: Unable to set %d strings to tag %s from source" \
-" %s", _tmp16__length1, tag, _tmp17_);
-#line 4887 "PhotoMetadata.c"
- }
-#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
-#line 4891 "PhotoMetadata.c"
-}
-
-
-static Block2Data*
-block2_data_ref (Block2Data* _data2_)
-{
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&_data2_->_ref_count_);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return _data2_;
-#line 4902 "PhotoMetadata.c"
-}
-
-
-static void
-block2_data_unref (void * _userdata_)
-{
- Block2Data* _data2_;
- _data2_ = (Block2Data*) _userdata_;
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
-#line 4913 "PhotoMetadata.c"
- PhotoMetadata* self;
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data2_->self;
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_data2_->values);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _media_metadata_unref0 (self);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_slice_free (Block2Data, _data2_);
-#line 4923 "PhotoMetadata.c"
- }
-}
-
-
-static void
-__lambda6_ (Block2Data* _data2_,
- const gchar* tag)
-{
- PhotoMetadata* self;
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data2_->self;
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string_multiple (self, tag, _data2_->values);
-#line 4939 "PhotoMetadata.c"
-}
-
-
-static void
-___lambda6__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self)
-{
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- __lambda6_ (self, tag);
-#line 4949 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_all_string_multiple (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- GeeCollection* values,
- PhotoMetadataSetOption option)
-{
- Block2Data* _data2_;
- GeeCollection* _tmp0_;
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (GEE_IS_COLLECTION (values));
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data2_ = g_slice_new0 (Block2Data);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data2_->_ref_count_ = 1;
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data2_->self = media_metadata_ref (self);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _g_object_ref0 (values);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_data2_->values);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data2_->values = _tmp0_;
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda6__photo_metadata_set_generic_value, _data2_);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- block2_data_unref (_data2_);
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data2_ = NULL;
-#line 4984 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_long (PhotoMetadata* self,
- const gchar* tag,
- glong* value)
-{
- glong _vala_value = 0L;
- gboolean result = FALSE;
- GExiv2Metadata* _tmp0_;
-#line 569 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 569 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, FALSE);
-#line 570 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!photo_metadata_has_tag (self, tag)) {
-#line 571 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_value = (glong) 0;
-#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (value) {
-#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *value = _vala_value;
-#line 5010 "PhotoMetadata.c"
- }
-#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5014 "PhotoMetadata.c"
- }
-#line 576 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 576 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_value = gexiv2_metadata_get_tag_long (_tmp0_, tag);
-#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = TRUE;
-#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (value) {
-#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *value = _vala_value;
-#line 5026 "PhotoMetadata.c"
- }
-#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5030 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_first_long (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- glong* value)
-{
- glong _vala_value = 0L;
- gboolean result = FALSE;
-#line 581 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 5044 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = tags;
-#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = tags_length1;
-#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
-#line 5056 "PhotoMetadata.c"
- gchar* _tmp0_;
- gchar* tag = NULL;
-#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (tag_collection[tag_it]);
-#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp0_;
-#line 5063 "PhotoMetadata.c"
- {
- const gchar* _tmp1_;
- glong _tmp2_ = 0L;
- gboolean _tmp3_;
-#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_long (self, _tmp1_, &_tmp2_);
-#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_value = _tmp2_;
-#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
-#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = TRUE;
-#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (value) {
-#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *value = _vala_value;
-#line 5084 "PhotoMetadata.c"
- }
-#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5088 "PhotoMetadata.c"
- }
-#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 5092 "PhotoMetadata.c"
- }
- }
- }
-#line 587 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_value = (glong) 0;
-#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (value) {
-#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *value = _vala_value;
-#line 5104 "PhotoMetadata.c"
- }
-#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5108 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_long (PhotoMetadata* self,
- const gchar* tag,
- glong value)
-{
- GExiv2Metadata* _tmp0_;
-#line 592 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 592 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gexiv2_metadata_set_tag_long (_tmp0_, tag, value)) {
-#line 5126 "PhotoMetadata.c"
- const gchar* _tmp1_;
-#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->source_name;
-#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:594: Unable to set tag %s to long %ld from source %" \
-"s", tag, value, _tmp1_);
-#line 5132 "PhotoMetadata.c"
- }
-}
-
-
-static Block3Data*
-block3_data_ref (Block3Data* _data3_)
-{
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&_data3_->_ref_count_);
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return _data3_;
-#line 5144 "PhotoMetadata.c"
-}
-
-
-static void
-block3_data_unref (void * _userdata_)
-{
- Block3Data* _data3_;
- _data3_ = (Block3Data*) _userdata_;
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
-#line 5155 "PhotoMetadata.c"
- PhotoMetadata* self;
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data3_->self;
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _media_metadata_unref0 (self);
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_slice_free (Block3Data, _data3_);
-#line 5163 "PhotoMetadata.c"
- }
-}
-
-
-static void
-__lambda7_ (Block3Data* _data3_,
- const gchar* tag)
-{
- PhotoMetadata* self;
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data3_->self;
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_long (self, tag, _data3_->value);
-#line 5179 "PhotoMetadata.c"
-}
-
-
-static void
-___lambda7__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self)
-{
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- __lambda7_ (self, tag);
-#line 5189 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_all_long (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- glong value,
- PhotoMetadataSetOption option)
-{
- Block3Data* _data3_;
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data3_ = g_slice_new0 (Block3Data);
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data3_->_ref_count_ = 1;
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data3_->self = media_metadata_ref (self);
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data3_->value = value;
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda7__photo_metadata_set_generic_value, _data3_);
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- block3_data_unref (_data3_);
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data3_ = NULL;
-#line 5217 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_rational (PhotoMetadata* self,
- const gchar* tag,
- MetadataRational* rational)
-{
- MetadataRational _vala_rational = {0};
- gboolean result = FALSE;
- gint numerator = 0;
- gint denominator = 0;
- gboolean _result_ = FALSE;
- GExiv2Metadata* _tmp0_;
- gint _tmp1_ = 0;
- gint _tmp2_ = 0;
- gboolean _tmp3_;
-#line 601 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 601 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, FALSE);
-#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = gexiv2_metadata_get_exif_tag_rational (_tmp0_, tag, &_tmp1_, &_tmp2_);
-#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- numerator = _tmp1_;
-#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- denominator = _tmp2_;
-#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _result_ = _tmp3_;
-#line 605 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- metadata_rational_init (&_vala_rational, numerator, denominator);
-#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _result_;
-#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (rational) {
-#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *rational = _vala_rational;
-#line 5257 "PhotoMetadata.c"
- }
-#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5261 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_first_rational (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- MetadataRational* rational)
-{
- MetadataRational _vala_rational = {0};
- gboolean result = FALSE;
-#line 610 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 5275 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = tags;
-#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = tags_length1;
-#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
-#line 5287 "PhotoMetadata.c"
- gchar* _tmp0_;
- gchar* tag = NULL;
-#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (tag_collection[tag_it]);
-#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp0_;
-#line 5294 "PhotoMetadata.c"
- {
- const gchar* _tmp1_;
- MetadataRational _tmp2_ = {0};
- gboolean _tmp3_;
-#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_rational (self, _tmp1_, &_tmp2_);
-#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_rational = _tmp2_;
-#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
-#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = TRUE;
-#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (rational) {
-#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *rational = _vala_rational;
-#line 5315 "PhotoMetadata.c"
- }
-#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5319 "PhotoMetadata.c"
- }
-#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 5323 "PhotoMetadata.c"
- }
- }
- }
-#line 616 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- metadata_rational_init (&_vala_rational, 0, 0);
-#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (rational) {
-#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *rational = _vala_rational;
-#line 5335 "PhotoMetadata.c"
- }
-#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5339 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_rational (PhotoMetadata* self,
- const gchar* tag,
- MetadataRational* rational)
-{
- GExiv2Metadata* _tmp0_;
- MetadataRational _tmp1_;
- gint _tmp2_;
- MetadataRational _tmp3_;
- gint _tmp4_;
-#line 621 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 621 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 621 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (rational != NULL);
-#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = *rational;
-#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_.numerator;
-#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = *rational;
-#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp3_.denominator;
-#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gexiv2_metadata_set_exif_tag_rational (_tmp0_, tag, _tmp2_, _tmp4_)) {
-#line 5371 "PhotoMetadata.c"
- gchar* _tmp5_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = metadata_rational_to_string (rational);
-#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _tmp5_;
-#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = self->priv->source_name;
-#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:623: Unable to set tag %s to rational %s from sourc" \
-"e %s", tag, _tmp6_, _tmp7_);
-#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp6_);
-#line 5385 "PhotoMetadata.c"
- }
-}
-
-
-static Block4Data*
-block4_data_ref (Block4Data* _data4_)
-{
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&_data4_->_ref_count_);
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return _data4_;
-#line 5397 "PhotoMetadata.c"
-}
-
-
-static void
-block4_data_unref (void * _userdata_)
-{
- Block4Data* _data4_;
- _data4_ = (Block4Data*) _userdata_;
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
-#line 5408 "PhotoMetadata.c"
- PhotoMetadata* self;
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data4_->self;
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _media_metadata_unref0 (self);
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_slice_free (Block4Data, _data4_);
-#line 5416 "PhotoMetadata.c"
- }
-}
-
-
-static void
-__lambda8_ (Block4Data* _data4_,
- const gchar* tag)
-{
- PhotoMetadata* self;
- MetadataRational _tmp0_;
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data4_->self;
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _data4_->rational;
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_rational (self, tag, &_tmp0_);
-#line 5435 "PhotoMetadata.c"
-}
-
-
-static void
-___lambda8__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self)
-{
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- __lambda8_ (self, tag);
-#line 5445 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_all_rational (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- MetadataRational* rational,
- PhotoMetadataSetOption option)
-{
- Block4Data* _data4_;
- MetadataRational _tmp0_;
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (rational != NULL);
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data4_ = g_slice_new0 (Block4Data);
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data4_->_ref_count_ = 1;
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data4_->self = media_metadata_ref (self);
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = *rational;
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data4_->rational = _tmp0_;
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda8__photo_metadata_set_generic_value, _data4_);
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- block4_data_unref (_data4_);
-#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data4_ = NULL;
-#line 5478 "PhotoMetadata.c"
-}
-
-
-MetadataDateTime*
-photo_metadata_get_date_time (PhotoMetadata* self,
- const gchar* tag)
-{
- MetadataDateTime* result = NULL;
- gchar* value = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 632 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 632 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (tag != NULL, NULL);
-#line 633 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_string (self, tag, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 633 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = _tmp0_;
-#line 634 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = value;
-#line 634 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_ == NULL) {
-#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5509 "PhotoMetadata.c"
- }
- {
-#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (photo_metadata_get_tag_domain (tag)) {
-#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_XMP:
-#line 5516 "PhotoMetadata.c"
- {
- MetadataDateTime* _tmp2_ = NULL;
- const gchar* _tmp3_;
- MetadataDateTime* _tmp4_;
- MetadataDateTime* _tmp5_;
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = value;
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = metadata_date_time_new_from_xmp (_tmp3_, &_inner_error_);
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp4_;
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5530 "PhotoMetadata.c"
- goto __catch30_g_error;
- }
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp2_;
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = NULL;
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp5_;
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _metadata_date_time_unref0 (_tmp2_);
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5545 "PhotoMetadata.c"
- }
-#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_IPTC:
-#line 5549 "PhotoMetadata.c"
- {
-#line 645 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 645 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 645 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5557 "PhotoMetadata.c"
- }
- default:
-#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_EXIF:
-#line 5562 "PhotoMetadata.c"
- {
- MetadataDateTime* _tmp6_ = NULL;
- const gchar* _tmp7_;
- MetadataDateTime* _tmp8_;
- MetadataDateTime* _tmp9_;
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = value;
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = metadata_date_time_new_from_exif (_tmp7_, &_inner_error_);
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _tmp8_;
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5576 "PhotoMetadata.c"
- goto __catch30_g_error;
- }
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp6_;
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = NULL;
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp9_;
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _metadata_date_time_unref0 (_tmp6_);
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5591 "PhotoMetadata.c"
- }
- }
- }
- goto __finally30;
- __catch30_g_error:
- {
- GError* err = NULL;
- const gchar* _tmp10_;
- GError* _tmp11_;
- const gchar* _tmp12_;
-#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- err = _inner_error_;
-#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _inner_error_ = NULL;
-#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = self->priv->source_name;
-#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = err;
-#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = _tmp11_->message;
-#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:652: Unable to read date/time %s from source %s: %s", tag, _tmp10_, _tmp12_);
-#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_error_free0 (err);
-#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5622 "PhotoMetadata.c"
- }
- __finally30:
-#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (value);
-#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.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 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 5633 "PhotoMetadata.c"
-}
-
-
-MetadataDateTime*
-photo_metadata_get_first_date_time (PhotoMetadata* self,
- gchar** tags,
- int tags_length1)
-{
- MetadataDateTime* result = NULL;
-#line 658 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 5645 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = tags;
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = tags_length1;
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
-#line 5657 "PhotoMetadata.c"
- gchar* _tmp0_;
- gchar* tag = NULL;
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (tag_collection[tag_it]);
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp0_;
-#line 5664 "PhotoMetadata.c"
- {
- MetadataDateTime* date_time = NULL;
- const gchar* _tmp1_;
- MetadataDateTime* _tmp2_;
- MetadataDateTime* _tmp3_;
-#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_date_time (self, _tmp1_);
-#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- date_time = _tmp2_;
-#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = date_time;
-#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_ != NULL) {
-#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = date_time;
-#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5686 "PhotoMetadata.c"
- }
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _metadata_date_time_unref0 (date_time);
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 5692 "PhotoMetadata.c"
- }
- }
- }
-#line 665 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 665 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5700 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_date_time (PhotoMetadata* self,
- const gchar* tag,
- MetadataDateTime* date_time)
-{
-#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_METADATA_DATE_TIME (date_time));
-#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (photo_metadata_get_tag_domain (tag)) {
-#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_EXIF:
-#line 5719 "PhotoMetadata.c"
- {
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = metadata_date_time_get_exif_label (date_time);
-#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _tmp0_;
-#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, tag, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp1_);
-#line 672 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 5733 "PhotoMetadata.c"
- }
-#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_XMP:
-#line 5737 "PhotoMetadata.c"
- {
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = metadata_date_time_get_xmp_label (date_time);
-#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
-#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, tag, _tmp3_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp3_);
-#line 676 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 5751 "PhotoMetadata.c"
- }
- default:
-#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_IPTC:
-#line 5756 "PhotoMetadata.c"
- {
- const gchar* _tmp4_;
- GEnumValue* _tmp5_;
-#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = self->priv->source_name;
-#line 682 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_METADATA_DOMAIN), photo_metadata_get_tag_domain (tag));
-#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:681: Cannot set date/time for %s from source %s: un" \
-"supported metadata domain %s", tag, _tmp4_, (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
-#line 683 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 5768 "PhotoMetadata.c"
- }
- }
-}
-
-
-static gpointer
-_metadata_date_time_ref0 (gpointer self)
-{
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self ? metadata_date_time_ref (self) : NULL;
-#line 5779 "PhotoMetadata.c"
-}
-
-
-static Block5Data*
-block5_data_ref (Block5Data* _data5_)
-{
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&_data5_->_ref_count_);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return _data5_;
-#line 5790 "PhotoMetadata.c"
-}
-
-
-static void
-block5_data_unref (void * _userdata_)
-{
- Block5Data* _data5_;
- _data5_ = (Block5Data*) _userdata_;
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
-#line 5801 "PhotoMetadata.c"
- PhotoMetadata* self;
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data5_->self;
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _metadata_date_time_unref0 (_data5_->date_time);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _media_metadata_unref0 (self);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_slice_free (Block5Data, _data5_);
-#line 5811 "PhotoMetadata.c"
- }
-}
-
-
-static void
-__lambda9_ (Block5Data* _data5_,
- const gchar* tag)
-{
- PhotoMetadata* self;
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data5_->self;
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_date_time (self, tag, _data5_->date_time);
-#line 5827 "PhotoMetadata.c"
-}
-
-
-static void
-___lambda9__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self)
-{
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- __lambda9_ (self, tag);
-#line 5837 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_all_date_time (PhotoMetadata* self,
- gchar** tags,
- int tags_length1,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option)
-{
- Block5Data* _data5_;
- MetadataDateTime* _tmp0_;
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_METADATA_DATE_TIME (date_time));
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data5_ = g_slice_new0 (Block5Data);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data5_->_ref_count_ = 1;
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data5_->self = media_metadata_ref (self);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _metadata_date_time_ref0 (date_time);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _metadata_date_time_unref0 (_data5_->date_time);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data5_->date_time = _tmp0_;
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda9__photo_metadata_set_generic_value, _data5_);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- block5_data_unref (_data5_);
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data5_ = NULL;
-#line 5872 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_exif_hash (PhotoMetadata* self)
-{
- gchar* result = NULL;
- ExifData* _tmp0_;
- const gchar* _tmp1_;
- gchar* hash = NULL;
- guchar* thumb = NULL;
- ExifData* _tmp4_;
- guchar* _tmp5_;
- guint thumb_size = 0U;
- ExifData* _tmp6_;
- guint _tmp7_;
- ExifData* _tmp8_;
- ExifData* _tmp9_;
- guchar* saved_data = NULL;
- guint saved_size = 0U;
- ExifData* _tmp10_;
- ExifData* _tmp11_;
- guchar* _tmp12_;
- ExifData* _tmp13_;
- guint _tmp14_;
- gboolean _tmp15_ = FALSE;
- guint _tmp16_;
-#line 692 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 693 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exif;
-#line 693 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp0_ == NULL) {
-#line 694 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 694 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5910 "PhotoMetadata.c"
- }
-#line 696 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->metadata_hash;
-#line 696 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_ != NULL) {
-#line 5916 "PhotoMetadata.c"
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = self->priv->metadata_hash;
-#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp3_;
-#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 5927 "PhotoMetadata.c"
- }
-#line 700 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- hash = NULL;
-#line 702 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = self->priv->exif;
-#line 702 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_->data;
-#line 702 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- thumb = _tmp5_;
-#line 703 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = self->priv->exif;
-#line 703 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _tmp6_->size;
-#line 703 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- thumb_size = _tmp7_;
-#line 706 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = self->priv->exif;
-#line 706 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_->data = NULL;
-#line 707 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = self->priv->exif;
-#line 707 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_->size = (guint) 0;
-#line 709 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- saved_data = NULL;
-#line 710 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- saved_size = (guint) 0;
-#line 712 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = self->priv->exif;
-#line 712 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- exif_data_save_data (_tmp10_, &saved_data, &saved_size);
-#line 714 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = self->priv->exif;
-#line 714 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = thumb;
-#line 714 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_->data = _tmp12_;
-#line 715 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = self->priv->exif;
-#line 715 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = thumb_size;
-#line 715 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_->size = _tmp14_;
-#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = saved_size;
-#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp16_ > ((guint) 0)) {
-#line 5975 "PhotoMetadata.c"
- guchar* _tmp17_;
-#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = saved_data;
-#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _tmp17_ != NULL;
-#line 5981 "PhotoMetadata.c"
- } else {
-#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = FALSE;
-#line 5985 "PhotoMetadata.c"
- }
-#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp15_) {
-#line 5989 "PhotoMetadata.c"
- GChecksum* md5 = NULL;
- GChecksum* _tmp18_;
- GChecksum* _tmp19_;
- guchar* _tmp20_;
- guint _tmp21_;
- ExifMem* _tmp22_;
- ExifMem* _tmp23_;
- guchar* _tmp24_;
- GChecksum* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
-#line 718 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = g_checksum_new (G_CHECKSUM_MD5);
-#line 718 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- md5 = _tmp18_;
-#line 719 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = md5;
-#line 719 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = saved_data;
-#line 719 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = saved_size;
-#line 719 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_checksum_update (_tmp19_, (guchar*) _tmp20_, (gsize) _tmp21_);
-#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = exif_mem_new_default ();
-#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = _tmp22_;
-#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = saved_data;
-#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- exif_mem_free (_tmp23_, _tmp24_);
-#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_mem_unref0 (_tmp23_);
-#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = md5;
-#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = g_checksum_get_string (_tmp25_);
-#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = g_strdup (_tmp26_);
-#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->metadata_hash);
-#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->metadata_hash = _tmp27_;
-#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_checksum_free0 (md5);
-#line 6035 "PhotoMetadata.c"
- }
-#line 725 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = hash;
-#line 725 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6041 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_thumbnail_hash (PhotoMetadata* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- guchar* buffer = NULL;
- gint buffer_length1 = 0;
- gint _buffer_size_ = 0;
- GExiv2Metadata* _tmp3_;
- guint8* _tmp4_ = NULL;
- gint _tmp5_;
- gboolean _tmp6_;
-#line 729 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->thumbnail_md5;
-#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp0_ != NULL) {
-#line 6063 "PhotoMetadata.c"
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->thumbnail_md5;
-#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp2_;
-#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6074 "PhotoMetadata.c"
- }
-#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = self->priv->exiv2;
-#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gexiv2_metadata_get_exif_thumbnail (_tmp3_, &_tmp4_, &_tmp5_);
-#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- buffer = (g_free (buffer), NULL);
-#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- buffer = _tmp4_;
-#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- buffer_length1 = _tmp5_;
-#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _buffer_size_ = buffer_length1;
-#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp6_) {
-#line 6090 "PhotoMetadata.c"
- GChecksum* md5 = NULL;
- GChecksum* _tmp7_;
- GChecksum* _tmp8_;
- guchar* _tmp9_;
- gint _tmp9__length1;
- guchar* _tmp10_;
- gint _tmp10__length1;
- GChecksum* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
-#line 736 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = g_checksum_new (G_CHECKSUM_MD5);
-#line 736 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- md5 = _tmp7_;
-#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = md5;
-#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = buffer;
-#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9__length1 = buffer_length1;
-#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = buffer;
-#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10__length1 = buffer_length1;
-#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_checksum_update (_tmp8_, _tmp9_, (gsize) _tmp10__length1);
-#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = md5;
-#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = g_checksum_get_string (_tmp11_);
-#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->thumbnail_md5);
-#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->thumbnail_md5 = _tmp13_;
-#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = self->priv->thumbnail_md5;
-#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = g_strdup (_tmp14_);
-#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp15_;
-#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_checksum_free0 (md5);
-#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- buffer = (g_free (buffer), NULL);
-#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6141 "PhotoMetadata.c"
- }
-#line 744 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 744 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- buffer = (g_free (buffer), NULL);
-#line 744 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6149 "PhotoMetadata.c"
-}
-
-
-guint
-photo_metadata_get_preview_count (PhotoMetadata* self)
-{
- guint result = 0U;
- GExiv2PreviewProperties** props = NULL;
- GExiv2Metadata* _tmp0_;
- GExiv2PreviewProperties** _tmp1_;
- GExiv2PreviewProperties** _tmp2_;
- gint props_length1;
- gint _props_size_;
- gint _tmp3_ = 0;
- GExiv2PreviewProperties** _tmp4_;
- gint _tmp4__length1;
-#line 747 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), 0U);
-#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_ = gexiv2_metadata_get_preview_properties (_tmp0_);
-#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- props = _tmp2_;
-#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- props_length1 = _vala_array_length (_tmp1_);
-#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _props_size_ = props_length1;
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = props;
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = props_length1;
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ != NULL) {
-#line 6184 "PhotoMetadata.c"
- GExiv2PreviewProperties** _tmp5_;
- gint _tmp5__length1;
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = props;
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = props_length1;
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp5__length1;
-#line 6193 "PhotoMetadata.c"
- } else {
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = 0;
-#line 6197 "PhotoMetadata.c"
- }
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = (guint) _tmp3_;
-#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6203 "PhotoMetadata.c"
-}
-
-
-PhotoPreview*
-photo_metadata_get_preview (PhotoMetadata* self,
- guint number)
-{
- PhotoPreview* result = NULL;
- GExiv2PreviewProperties** props = NULL;
- GExiv2Metadata* _tmp0_;
- GExiv2PreviewProperties** _tmp1_;
- GExiv2PreviewProperties** _tmp2_;
- gint props_length1;
- gint _props_size_;
- gboolean _tmp3_ = FALSE;
- GExiv2PreviewProperties** _tmp4_;
- gint _tmp4__length1;
- const gchar* _tmp6_;
- GExiv2PreviewProperties** _tmp7_;
- gint _tmp7__length1;
- GExiv2PreviewProperties* _tmp8_;
- PhotoMetadataInternalPhotoPreview* _tmp9_;
-#line 754 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_ = gexiv2_metadata_get_preview_properties (_tmp0_);
-#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- props = _tmp2_;
-#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- props_length1 = _vala_array_length (_tmp1_);
-#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _props_size_ = props_length1;
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = props;
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = props_length1;
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ == NULL) {
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = TRUE;
-#line 6246 "PhotoMetadata.c"
- } else {
- GExiv2PreviewProperties** _tmp5_;
- gint _tmp5__length1;
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = props;
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = props_length1;
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = ((guint) _tmp5__length1) <= number;
-#line 6256 "PhotoMetadata.c"
- }
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
-#line 757 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 757 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6264 "PhotoMetadata.c"
- }
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = self->priv->source_name;
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = props;
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7__length1 = props_length1;
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = _tmp7_[number];
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = photo_metadata_internal_photo_preview_new (self, _tmp6_, number, _tmp8_);
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO_PREVIEW, PhotoPreview);
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6280 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_remove_exif_thumbnail (PhotoMetadata* self)
-{
- GExiv2Metadata* _tmp0_;
- ExifData* _tmp1_;
-#line 762 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 763 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 763 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_erase_exif_thumbnail (_tmp0_);
-#line 764 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exif;
-#line 764 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_ != NULL) {
-#line 6299 "PhotoMetadata.c"
- ExifMem* _tmp2_;
- ExifMem* _tmp3_;
- ExifData* _tmp4_;
- guchar* _tmp5_;
- ExifData* _tmp6_;
- ExifData* _tmp7_;
-#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = exif_mem_new_default ();
-#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
-#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = self->priv->exif;
-#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_->data;
-#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- exif_mem_free (_tmp3_, _tmp5_);
-#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_mem_unref0 (_tmp3_);
-#line 766 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = self->priv->exif;
-#line 766 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_->data = NULL;
-#line 767 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = self->priv->exif;
-#line 767 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_->size = (guint) 0;
-#line 6326 "PhotoMetadata.c"
- }
-}
-
-
-void
-photo_metadata_remove_tag (PhotoMetadata* self,
- const gchar* tag)
-{
- GExiv2Metadata* _tmp0_;
-#line 771 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 771 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 772 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 772 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear_tag (_tmp0_, tag);
-#line 6344 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_remove_tags (PhotoMetadata* self,
- gchar** tags,
- int tags_length1)
-{
-#line 775 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 6355 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = tags;
-#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = tags_length1;
-#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
-#line 6367 "PhotoMetadata.c"
- gchar* _tmp0_;
- gchar* tag = NULL;
-#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (tag_collection[tag_it]);
-#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp0_;
-#line 6374 "PhotoMetadata.c"
- {
- const gchar* _tmp1_;
-#line 777 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 777 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tag (self, _tmp1_);
-#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 6383 "PhotoMetadata.c"
- }
- }
- }
-}
-
-
-void
-photo_metadata_clear_domain (PhotoMetadata* self,
- MetadataDomain domain)
-{
-#line 780 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (domain) {
-#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_EXIF:
-#line 6400 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp0_;
-#line 783 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 783 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear_exif (_tmp0_);
-#line 784 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 6409 "PhotoMetadata.c"
- }
-#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_XMP:
-#line 6413 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp1_;
-#line 787 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
-#line 787 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear_xmp (_tmp1_);
-#line 788 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 6422 "PhotoMetadata.c"
- }
-#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- case METADATA_DOMAIN_IPTC:
-#line 6426 "PhotoMetadata.c"
- {
- GExiv2Metadata* _tmp2_;
-#line 791 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = self->priv->exiv2;
-#line 791 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear_iptc (_tmp2_);
-#line 792 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 6435 "PhotoMetadata.c"
- }
- default:
-#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 6440 "PhotoMetadata.c"
- }
-}
-
-
-void
-photo_metadata_clear (PhotoMetadata* self)
-{
- GExiv2Metadata* _tmp0_;
-#line 796 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 797 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 797 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear (_tmp0_);
-#line 6455 "PhotoMetadata.c"
-}
-
-
-MetadataDateTime*
-photo_metadata_get_modification_date_time (PhotoMetadata* self)
-{
- MetadataDateTime* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- MetadataDateTime* _tmp1_;
-#line 807 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_DATE_TIME_TAGS;
-#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_DATE_TIME_TAGS_length1;
-#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_first_date_time (self, _tmp0_, _tmp0__length1);
-#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6478 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_modification_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option)
-{
-#line 811 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 811 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time));
-#line 813 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (date_time != NULL) {
-#line 6493 "PhotoMetadata.c"
- gchar** _tmp0_;
- gint _tmp0__length1;
-#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_DATE_TIME_TAGS;
-#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_DATE_TIME_TAGS_length1;
-#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option);
-#line 6502 "PhotoMetadata.c"
- } else {
- gchar** _tmp1_;
- gint _tmp1__length1;
-#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_DATE_TIME_TAGS;
-#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_DATE_TIME_TAGS_length1;
-#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1);
-#line 6512 "PhotoMetadata.c"
- }
-}
-
-
-MetadataDateTime*
-photo_metadata_get_exposure_date_time (PhotoMetadata* self)
-{
- MetadataDateTime* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- MetadataDateTime* _tmp1_;
-#line 828 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
-#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1;
-#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_first_date_time (self, _tmp0_, _tmp0__length1);
-#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6536 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_exposure_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option)
-{
-#line 832 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 832 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time));
-#line 834 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (date_time != NULL) {
-#line 6551 "PhotoMetadata.c"
- gchar** _tmp0_;
- gint _tmp0__length1;
-#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
-#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1;
-#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option);
-#line 6560 "PhotoMetadata.c"
- } else {
- gchar** _tmp1_;
- gint _tmp1__length1;
-#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
-#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1;
-#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1);
-#line 6570 "PhotoMetadata.c"
- }
-}
-
-
-MetadataDateTime*
-photo_metadata_get_digitized_date_time (PhotoMetadata* self)
-{
- MetadataDateTime* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- MetadataDateTime* _tmp1_;
-#line 845 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
-#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1;
-#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_first_date_time (self, _tmp0_, _tmp0__length1);
-#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6594 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_digitized_date_time (PhotoMetadata* self,
- MetadataDateTime* date_time,
- PhotoMetadataSetOption option)
-{
-#line 849 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 849 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time));
-#line 851 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (date_time != NULL) {
-#line 6609 "PhotoMetadata.c"
- gchar** _tmp0_;
- gint _tmp0__length1;
-#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
-#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1;
-#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option);
-#line 6618 "PhotoMetadata.c"
- } else {
- gchar** _tmp1_;
- gint _tmp1__length1;
-#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
-#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1;
-#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1);
-#line 6628 "PhotoMetadata.c"
- }
-}
-
-
-static MetadataDateTime*
-photo_metadata_real_get_creation_date_time (MediaMetadata* base)
-{
- PhotoMetadata * self;
- MetadataDateTime* result = NULL;
- MetadataDateTime* creation = NULL;
- MetadataDateTime* _tmp0_;
- MetadataDateTime* _tmp1_;
-#line 857 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
-#line 858 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_exposure_date_time (self);
-#line 858 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- creation = _tmp0_;
-#line 859 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = creation;
-#line 859 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_ == NULL) {
-#line 6651 "PhotoMetadata.c"
- MetadataDateTime* _tmp2_;
-#line 860 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_digitized_date_time (self);
-#line 860 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _metadata_date_time_unref0 (creation);
-#line 860 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- creation = _tmp2_;
-#line 6659 "PhotoMetadata.c"
- }
-#line 862 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = creation;
-#line 862 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6665 "PhotoMetadata.c"
-}
-
-
-static gpointer
-_dimensions_dup0 (gpointer self)
-{
-#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self ? dimensions_dup (self) : NULL;
-#line 6674 "PhotoMetadata.c"
-}
-
-
-Dimensions*
-photo_metadata_get_pixel_dimensions (PhotoMetadata* self)
-{
- Dimensions* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
-#line 879 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_WIDTH_TAGS;
-#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_WIDTH_TAGS_length1;
-#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_HEIGHT_TAGS;
-#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_HEIGHT_TAGS_length1;
-#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_assert (_tmp0__length1 == _tmp1__length1, "WIDTH_TAGS.length == HEIGHT_TAGS.length");
-#line 6698 "PhotoMetadata.c"
- {
- gint ctr = 0;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ctr = 0;
-#line 6703 "PhotoMetadata.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = TRUE;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 6710 "PhotoMetadata.c"
- gint _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- glong width = 0L;
- gchar** _tmp6_;
- gint _tmp6__length1;
- gint _tmp7_;
- const gchar* _tmp8_;
- glong _tmp9_ = 0L;
- gboolean _tmp10_;
- glong height = 0L;
- gchar** _tmp11_;
- gint _tmp11__length1;
- gint _tmp12_;
- const gchar* _tmp13_;
- glong _tmp14_ = 0L;
- gboolean _tmp15_;
- glong _tmp16_;
- glong _tmp17_;
- Dimensions _tmp18_ = {0};
- Dimensions* _tmp19_;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp2_) {
-#line 6734 "PhotoMetadata.c"
- gint _tmp3_;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = ctr;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ctr = _tmp3_ + 1;
-#line 6740 "PhotoMetadata.c"
- }
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = FALSE;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = ctr;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = photo_metadata_WIDTH_TAGS;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = photo_metadata_WIDTH_TAGS_length1;
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!(_tmp4_ < _tmp5__length1)) {
-#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 6754 "PhotoMetadata.c"
- }
-#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = photo_metadata_WIDTH_TAGS;
-#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6__length1 = photo_metadata_WIDTH_TAGS_length1;
-#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = ctr;
-#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = _tmp6_[_tmp7_];
-#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = photo_metadata_get_long (self, _tmp8_, &_tmp9_);
-#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- width = _tmp9_;
-#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp10_) {
-#line 887 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- continue;
-#line 6772 "PhotoMetadata.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = photo_metadata_HEIGHT_TAGS;
-#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11__length1 = photo_metadata_HEIGHT_TAGS_length1;
-#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = ctr;
-#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = _tmp11_[_tmp12_];
-#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = photo_metadata_get_long (self, _tmp13_, &_tmp14_);
-#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- height = _tmp14_;
-#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp15_) {
-#line 891 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- continue;
-#line 6790 "PhotoMetadata.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = width;
-#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = height;
-#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dimensions_init (&_tmp18_, (gint) _tmp16_, (gint) _tmp17_);
-#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = _dimensions_dup0 (&_tmp18_);
-#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp19_;
-#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6804 "PhotoMetadata.c"
- }
- }
- }
-#line 896 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 896 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 6812 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_pixel_dimensions (PhotoMetadata* self,
- Dimensions* dim,
- PhotoMetadataSetOption option)
-{
-#line 899 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 900 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (dim != NULL) {
-#line 6825 "PhotoMetadata.c"
- gchar** _tmp0_;
- gint _tmp0__length1;
- gint _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- gint _tmp3_;
-#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_WIDTH_TAGS;
-#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_WIDTH_TAGS_length1;
-#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = (*dim).width;
-#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_long (self, _tmp0_, _tmp0__length1, (glong) _tmp1_, option);
-#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_HEIGHT_TAGS;
-#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__length1 = photo_metadata_HEIGHT_TAGS_length1;
-#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = (*dim).height;
-#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_long (self, _tmp2_, _tmp2__length1, (glong) _tmp3_, option);
-#line 6848 "PhotoMetadata.c"
- } else {
- gchar** _tmp4_;
- gint _tmp4__length1;
- gchar** _tmp5_;
- gint _tmp5__length1;
-#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_WIDTH_TAGS;
-#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = photo_metadata_WIDTH_TAGS_length1;
-#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp4_, _tmp4__length1);
-#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = photo_metadata_HEIGHT_TAGS;
-#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = photo_metadata_HEIGHT_TAGS_length1;
-#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp5_, _tmp5__length1);
-#line 6866 "PhotoMetadata.c"
- }
-}
-
-
-static gchar*
-string_strip (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strstrip (_tmp1_);
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 6892 "PhotoMetadata.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 6912 "PhotoMetadata.c"
-}
-
-
-static gchar*
-photo_metadata_real_get_title (MediaMetadata* base)
-{
- PhotoMetadata * self;
- gchar* result = NULL;
- GeeList* _tmp0_ = NULL;
- GeeList* titles = NULL;
- GeeList* _tmp4_;
- gchar* _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
- GeeList* _tmp7_;
- gchar* title = NULL;
- gchar* _tmp13_;
- const gchar* _tmp14_;
- const gchar* _tmp17_ = NULL;
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_ = FALSE;
- const gchar* _tmp20_;
- gchar* _tmp24_;
-#line 939 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
-#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG)) {
-#line 6939 "PhotoMetadata.c"
- GeeList* _tmp1_;
-#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_string_multiple (self, PHOTO_METADATA_IPHOTO_TITLE_TAG);
-#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp0_);
-#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _tmp1_;
-#line 6947 "PhotoMetadata.c"
- } else {
- gchar** _tmp2_;
- gint _tmp2__length1;
- GeeList* _tmp3_;
-#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_STANDARD_TITLE_TAGS;
-#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
-#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_first_string_multiple (self, _tmp2_, _tmp2__length1);
-#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp0_);
-#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _tmp3_;
-#line 6962 "PhotoMetadata.c"
- }
-#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _g_object_ref0 (_tmp0_);
-#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- titles = _tmp4_;
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = titles;
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp7_ != NULL) {
-#line 6972 "PhotoMetadata.c"
- GeeList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = titles;
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = _tmp9_;
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _tmp10_ > 0;
-#line 6984 "PhotoMetadata.c"
- } else {
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = FALSE;
-#line 6988 "PhotoMetadata.c"
- }
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp6_) {
-#line 6992 "PhotoMetadata.c"
- GeeList* _tmp11_;
- gpointer _tmp12_;
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = titles;
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = gee_list_get (_tmp11_, 0);
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp5_);
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = (gchar*) _tmp12_;
-#line 7003 "PhotoMetadata.c"
- } else {
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp5_);
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = NULL;
-#line 7009 "PhotoMetadata.c"
- }
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = g_strdup (_tmp5_);
-#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- title = _tmp13_;
-#line 957 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = title;
-#line 957 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp14_ != NULL) {
-#line 7019 "PhotoMetadata.c"
- const gchar* _tmp15_;
- gchar* _tmp16_;
-#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = title;
-#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = string_strip (_tmp15_);
-#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (title);
-#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- title = _tmp16_;
-#line 7030 "PhotoMetadata.c"
- }
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = title;
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!is_string_empty (_tmp20_)) {
-#line 7036 "PhotoMetadata.c"
- const gchar* _tmp21_;
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = title;
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = !string_contains (_tmp21_, "\n");
-#line 7042 "PhotoMetadata.c"
- } else {
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = FALSE;
-#line 7046 "PhotoMetadata.c"
- }
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp19_) {
-#line 7050 "PhotoMetadata.c"
- const gchar* _tmp22_;
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = title;
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = !string_contains (_tmp22_, "\r");
-#line 7056 "PhotoMetadata.c"
- } else {
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = FALSE;
-#line 7060 "PhotoMetadata.c"
- }
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp18_) {
-#line 7064 "PhotoMetadata.c"
- const gchar* _tmp23_;
-#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = title;
-#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = _tmp23_;
-#line 7070 "PhotoMetadata.c"
- } else {
-#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = NULL;
-#line 7074 "PhotoMetadata.c"
- }
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = g_strdup (_tmp17_);
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp24_;
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (title);
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp5_);
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (titles);
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp0_);
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 7090 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_title (PhotoMetadata* self,
- const gchar* title,
- PhotoMetadataSetOption option)
-{
-#line 965 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 966 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!is_string_empty (title)) {
-#line 967 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG)) {
-#line 968 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, PHOTO_METADATA_IPHOTO_TITLE_TAG, title, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 7107 "PhotoMetadata.c"
- } else {
- gchar** _tmp0_;
- gint _tmp0__length1;
-#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_STANDARD_TITLE_TAGS;
-#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
-#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_string (self, _tmp0_, _tmp0__length1, title, option);
-#line 7117 "PhotoMetadata.c"
- }
- } else {
- gchar** _tmp1_;
- gint _tmp1__length1;
-#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_STANDARD_TITLE_TAGS;
-#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
-#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1);
-#line 7128 "PhotoMetadata.c"
- }
-}
-
-
-static gchar*
-photo_metadata_real_get_comment (MediaMetadata* base)
-{
- PhotoMetadata * self;
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar* _tmp1_;
-#line 981 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
-#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_COMMENT_TAGS;
-#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_COMMENT_TAGS_length1;
-#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_first_string_interpreted (self, _tmp0_, _tmp0__length1);
-#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 7153 "PhotoMetadata.c"
-}
-
-
-static Block6Data*
-block6_data_ref (Block6Data* _data6_)
-{
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_atomic_int_inc (&_data6_->_ref_count_);
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return _data6_;
-#line 7164 "PhotoMetadata.c"
-}
-
-
-static void
-block6_data_unref (void * _userdata_)
-{
- Block6Data* _data6_;
- _data6_ = (Block6Data*) _userdata_;
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
-#line 7175 "PhotoMetadata.c"
- PhotoMetadata* self;
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data6_->self;
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_data6_->comment);
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _media_metadata_unref0 (self);
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_slice_free (Block6Data, _data6_);
-#line 7185 "PhotoMetadata.c"
- }
-}
-
-
-static void
-___lambda10_ (Block6Data* _data6_,
- const gchar* tag)
-{
- PhotoMetadata* self;
-#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = _data6_->self;
-#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (tag != NULL);
-#line 991 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, tag, _data6_->comment, PHOTO_METADATA_PREPARE_STRING_OPTIONS & (~PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF));
-#line 7201 "PhotoMetadata.c"
-}
-
-
-static void
-____lambda10__photo_metadata_set_generic_value (const gchar* tag,
- gpointer self)
-{
-#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ___lambda10_ (self, tag);
-#line 7211 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_comment (PhotoMetadata* self,
- const gchar* comment,
- PhotoMetadataSetOption option)
-{
- Block6Data* _data6_;
- gchar* _tmp0_;
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data6_ = g_slice_new0 (Block6Data);
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data6_->_ref_count_ = 1;
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data6_->self = media_metadata_ref (self);
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup (comment);
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_data6_->comment);
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data6_->comment = _tmp0_;
-#line 989 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!is_string_empty (_data6_->comment)) {
-#line 7238 "PhotoMetadata.c"
- gchar** _tmp1_;
- gint _tmp1__length1;
-#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_COMMENT_TAGS;
-#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_COMMENT_TAGS_length1;
-#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, _tmp1_, _tmp1__length1, option, ____lambda10__photo_metadata_set_generic_value, _data6_);
-#line 7247 "PhotoMetadata.c"
- } else {
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_COMMENT_TAGS;
-#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__length1 = photo_metadata_COMMENT_TAGS_length1;
-#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp2_, _tmp2__length1);
-#line 7257 "PhotoMetadata.c"
- }
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- block6_data_unref (_data6_);
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data6_ = NULL;
-#line 7263 "PhotoMetadata.c"
-}
-
-
-GeeSet*
-photo_metadata_get_keywords (PhotoMetadata* self,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify)
-{
- GeeSet* result = NULL;
- GeeSet* keywords = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- GeeSet* _tmp21_ = NULL;
- gboolean _tmp22_ = FALSE;
- GeeSet* _tmp23_;
- GeeSet* _tmp28_;
-#line 1015 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1016 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keywords = NULL;
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_KEYWORD_TAGS;
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_KEYWORD_TAGS_length1;
-#line 7289 "PhotoMetadata.c"
- {
- gchar** tag_collection = NULL;
- gint tag_collection_length1 = 0;
- gint _tag_collection_size_ = 0;
- gint tag_it = 0;
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 7301 "PhotoMetadata.c"
- gchar* _tmp1_;
- gchar* tag = NULL;
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 7308 "PhotoMetadata.c"
- {
- GeeCollection* values = NULL;
- const gchar* _tmp2_;
- GeeList* _tmp3_;
- gboolean _tmp4_ = FALSE;
- GeeCollection* _tmp5_;
-#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
-#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_string_multiple (self, _tmp2_);
-#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = values;
-#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp5_ != NULL) {
-#line 7325 "PhotoMetadata.c"
- GeeCollection* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = values;
-#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = gee_collection_get_size (_tmp6_);
-#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = _tmp7_;
-#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp8_ > 0;
-#line 7337 "PhotoMetadata.c"
- } else {
-#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = FALSE;
-#line 7341 "PhotoMetadata.c"
- }
-#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_) {
-#line 7345 "PhotoMetadata.c"
- GeeSet* _tmp9_;
-#line 1020 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = keywords;
-#line 1020 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp9_ == NULL) {
-#line 7351 "PhotoMetadata.c"
- GCompareDataFunc _tmp10_;
- void* _tmp10__target;
- GDestroyNotify _tmp10__target_destroy_notify;
- GeeSet* _tmp11_;
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = compare_func;
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10__target = compare_func_target;
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10__target_destroy_notify = compare_func_target_destroy_notify;
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = photo_metadata_create_string_set (self, _tmp10_, _tmp10__target, _tmp10__target_destroy_notify);
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (keywords);
-#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keywords = _tmp11_;
-#line 7374 "PhotoMetadata.c"
- }
- {
- GeeIterator* _current_value_it = NULL;
- GeeCollection* _tmp12_;
- GeeIterator* _tmp13_;
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = values;
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_it = _tmp13_;
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 7388 "PhotoMetadata.c"
- GeeIterator* _tmp14_;
- gchar* current_value = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
- GeeSet* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = _current_value_it;
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 7403 "PhotoMetadata.c"
- }
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _current_value_it;
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_value = (gchar*) _tmp16_;
-#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = keywords;
-#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = current_value;
-#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp18_);
-#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = _tmp19_;
-#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_);
-#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp20_);
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (current_value);
-#line 7425 "PhotoMetadata.c"
- }
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_current_value_it);
-#line 7429 "PhotoMetadata.c"
- }
- }
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (values);
-#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (tag);
-#line 7436 "PhotoMetadata.c"
- }
- }
- }
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = keywords;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp23_ != NULL) {
-#line 7444 "PhotoMetadata.c"
- GeeSet* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = keywords;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = _tmp25_;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = _tmp26_ > 0;
-#line 7456 "PhotoMetadata.c"
- } else {
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = FALSE;
-#line 7460 "PhotoMetadata.c"
- }
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp22_) {
-#line 7464 "PhotoMetadata.c"
- GeeSet* _tmp27_;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = keywords;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = _tmp27_;
-#line 7470 "PhotoMetadata.c"
- } else {
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = NULL;
-#line 7474 "PhotoMetadata.c"
- }
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = _g_object_ref0 (_tmp21_);
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp28_;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (keywords);
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func = NULL;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target = NULL;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- compare_func_target_destroy_notify = NULL;
-#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 7492 "PhotoMetadata.c"
-}
-
-
-static gpointer
-_hierarchical_keyword_field_ref0 (gpointer self)
-{
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self ? hierarchical_keyword_field_ref (self) : NULL;
-#line 7501 "PhotoMetadata.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 7524 "PhotoMetadata.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 7528 "PhotoMetadata.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 7534 "PhotoMetadata.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 7538 "PhotoMetadata.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 7542 "PhotoMetadata.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7550 "PhotoMetadata.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 7578 "PhotoMetadata.c"
- goto __catch31_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 7587 "PhotoMetadata.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 7601 "PhotoMetadata.c"
- goto __catch31_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 7612 "PhotoMetadata.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7626 "PhotoMetadata.c"
- }
- goto __finally31;
- __catch31_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 7640 "PhotoMetadata.c"
- }
- __finally31:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 7651 "PhotoMetadata.c"
- }
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7676 "PhotoMetadata.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7685 "PhotoMetadata.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 7706 "PhotoMetadata.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 7710 "PhotoMetadata.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 7716 "PhotoMetadata.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 7726 "PhotoMetadata.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 7730 "PhotoMetadata.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 7738 "PhotoMetadata.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 7745 "PhotoMetadata.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 7749 "PhotoMetadata.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 7755 "PhotoMetadata.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 7767 "PhotoMetadata.c"
-}
-
-
-static void
-photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self,
- HierarchicalTagIndex* index)
-{
- HierarchicalKeywordField** _tmp0_;
- gint _tmp0__length1;
- HierarchicalKeywordField** _tmp4_;
- gint _tmp4__length1;
-#line 1031 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 1031 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail ((index == NULL) || IS_HIERARCHICAL_TAG_INDEX (index));
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 7787 "PhotoMetadata.c"
- {
- HierarchicalKeywordField** current_field_collection = NULL;
- gint current_field_collection_length1 = 0;
- gint _current_field_collection_size_ = 0;
- gint current_field_it = 0;
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field_collection = _tmp0_;
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field_collection_length1 = _tmp0__length1;
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (current_field_it = 0; current_field_it < _tmp0__length1; current_field_it = current_field_it + 1) {
-#line 7799 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp1_;
- HierarchicalKeywordField* current_field = NULL;
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]);
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field = _tmp1_;
-#line 7806 "PhotoMetadata.c"
- {
- HierarchicalKeywordField* _tmp2_;
- const gchar* _tmp3_;
-#line 1033 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = current_field;
-#line 1033 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_->field_name;
-#line 1033 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tag (self, _tmp3_);
-#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_keyword_field_unref0 (current_field);
-#line 7818 "PhotoMetadata.c"
- }
- }
- }
-#line 1035 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (index == NULL) {
-#line 1036 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return;
-#line 7826 "PhotoMetadata.c"
- }
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 7832 "PhotoMetadata.c"
- {
- HierarchicalKeywordField** current_field_collection = NULL;
- gint current_field_collection_length1 = 0;
- gint _current_field_collection_size_ = 0;
- gint current_field_it = 0;
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field_collection = _tmp4_;
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field_collection_length1 = _tmp4__length1;
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (current_field_it = 0; current_field_it < _tmp4__length1; current_field_it = current_field_it + 1) {
-#line 7844 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp5_;
- HierarchicalKeywordField* current_field = NULL;
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]);
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field = _tmp5_;
-#line 7851 "PhotoMetadata.c"
- {
- HierarchicalKeywordField* _tmp6_;
- gboolean _tmp7_;
- GeeSet* writeable_set = NULL;
- GeeTreeSet* _tmp8_;
- HierarchicalKeywordField* _tmp26_;
- const gchar* _tmp27_;
- GeeSet* _tmp28_;
-#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = current_field;
-#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _tmp6_->is_writeable;
-#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp7_) {
-#line 1040 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_keyword_field_unref0 (current_field);
-#line 1040 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- continue;
-#line 7870 "PhotoMetadata.c"
- }
-#line 1042 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 1042 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- writeable_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_SET, GeeSet);
-#line 7876 "PhotoMetadata.c"
- {
- GeeIterator* _current_path_it = NULL;
- GeeCollection* _tmp9_;
- GeeCollection* _tmp10_;
- GeeIterator* _tmp11_;
- GeeIterator* _tmp12_;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = hierarchical_tag_index_get_all_paths (index);
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = _tmp9_;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = _tmp11_;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp10_);
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_path_it = _tmp12_;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 7897 "PhotoMetadata.c"
- GeeIterator* _tmp13_;
- gchar* current_path = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
- gchar* writeable_path = NULL;
- const gchar* _tmp16_;
- HierarchicalKeywordField* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
- HierarchicalKeywordField* _tmp20_;
- gboolean _tmp21_;
- GeeSet* _tmp24_;
- const gchar* _tmp25_;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = _current_path_it;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gee_iterator_next (_tmp13_)) {
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 7917 "PhotoMetadata.c"
- }
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = _current_path_it;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_path = (gchar*) _tmp15_;
-#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = current_path;
-#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = current_field;
-#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = _tmp17_->path_separator;
-#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = string_replace (_tmp16_, TAG_PATH_SEPARATOR_STRING, _tmp18_);
-#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- writeable_path = _tmp19_;
-#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = current_field;
-#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = _tmp20_->wants_leading_separator;
-#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp21_) {
-#line 7941 "PhotoMetadata.c"
- const gchar* _tmp22_;
- gchar* _tmp23_;
-#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = writeable_path;
-#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = string_substring (_tmp22_, (glong) 1, (glong) -1);
-#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (writeable_path);
-#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- writeable_path = _tmp23_;
-#line 7952 "PhotoMetadata.c"
- }
-#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = writeable_set;
-#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = writeable_path;
-#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_);
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (writeable_path);
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (current_path);
-#line 7964 "PhotoMetadata.c"
- }
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_current_path_it);
-#line 7968 "PhotoMetadata.c"
- }
-#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = current_field;
-#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = _tmp26_->field_name;
-#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = writeable_set;
-#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string_multiple (self, _tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (writeable_set);
-#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_keyword_field_unref0 (current_field);
-#line 7982 "PhotoMetadata.c"
- }
- }
- }
-}
-
-
-void
-photo_metadata_set_keywords (PhotoMetadata* self,
- GeeCollection* keywords,
- PhotoMetadataSetOption option)
-{
- HierarchicalTagIndex* htag_index = NULL;
- HierarchicalTagIndex* _tmp0_;
- GeeSet* flat_keywords = NULL;
- GeeTreeSet* _tmp1_;
-#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail ((keywords == NULL) || GEE_IS_COLLECTION (keywords));
-#line 1058 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = hierarchical_tag_index_new ();
-#line 1058 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- htag_index = _tmp0_;
-#line 1059 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 1059 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- flat_keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SET, GeeSet);
-#line 1061 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (keywords != NULL) {
-#line 8012 "PhotoMetadata.c"
- GeeSet* _tmp19_;
- HierarchicalTagIndex* _tmp20_;
- GeeCollection* _tmp21_;
- GeeCollection* _tmp22_;
- {
- GeeIterator* _keyword_it = NULL;
- GeeIterator* _tmp2_;
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (keywords, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _keyword_it = _tmp2_;
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 8026 "PhotoMetadata.c"
- GeeIterator* _tmp3_;
- gchar* keyword = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- const gchar* _tmp6_;
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _keyword_it;
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 8038 "PhotoMetadata.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _keyword_it;
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keyword = (gchar*) _tmp5_;
-#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = keyword;
-#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_str_has_prefix (_tmp6_, TAG_PATH_SEPARATOR_STRING)) {
-#line 8050 "PhotoMetadata.c"
- GeeCollection* path_components = NULL;
- const gchar* _tmp7_;
- GeeList* _tmp8_;
-#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = keyword;
-#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = hierarchical_tag_utilities_enumerate_path_components (_tmp7_);
-#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- path_components = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 8060 "PhotoMetadata.c"
- {
- GeeIterator* _component_it = NULL;
- GeeCollection* _tmp9_;
- GeeIterator* _tmp10_;
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = path_components;
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _component_it = _tmp10_;
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 8073 "PhotoMetadata.c"
- GeeIterator* _tmp11_;
- gchar* component = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- HierarchicalTagIndex* _tmp14_;
- const gchar* _tmp15_;
- const gchar* _tmp16_;
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = _component_it;
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 8087 "PhotoMetadata.c"
- }
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = _component_it;
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- component = (gchar*) _tmp13_;
-#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = htag_index;
-#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = component;
-#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = keyword;
-#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- hierarchical_tag_index_add_path (_tmp14_, _tmp15_, _tmp16_);
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (component);
-#line 8105 "PhotoMetadata.c"
- }
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_component_it);
-#line 8109 "PhotoMetadata.c"
- }
-#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (path_components);
-#line 8113 "PhotoMetadata.c"
- } else {
- GeeSet* _tmp17_;
- const gchar* _tmp18_;
-#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = flat_keywords;
-#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = keyword;
-#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), _tmp18_);
-#line 8123 "PhotoMetadata.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (keyword);
-#line 8127 "PhotoMetadata.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_keyword_it);
-#line 8131 "PhotoMetadata.c"
- }
-#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = flat_keywords;
-#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = htag_index;
-#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = hierarchical_tag_index_get_all_tags (_tmp20_);
-#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = _tmp21_;
-#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_);
-#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp22_);
-#line 8145 "PhotoMetadata.c"
- }
-#line 1076 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (keywords != NULL) {
-#line 8149 "PhotoMetadata.c"
- gchar** _tmp23_;
- gint _tmp23__length1;
- GeeSet* _tmp24_;
- HierarchicalTagIndex* _tmp25_;
-#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = photo_metadata_KEYWORD_TAGS;
-#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23__length1 = photo_metadata_KEYWORD_TAGS_length1;
-#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = flat_keywords;
-#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_string_multiple (self, _tmp23_, _tmp23__length1, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), option);
-#line 1078 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = htag_index;
-#line 1078 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_internal_set_hierarchical_keywords (self, _tmp25_);
-#line 8166 "PhotoMetadata.c"
- } else {
- gchar** _tmp26_;
- gint _tmp26__length1;
-#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = photo_metadata_KEYWORD_TAGS;
-#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26__length1 = photo_metadata_KEYWORD_TAGS_length1;
-#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp26_, _tmp26__length1);
-#line 1081 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_internal_set_hierarchical_keywords (self, NULL);
-#line 8178 "PhotoMetadata.c"
- }
-#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (flat_keywords);
-#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_tag_index_unref0 (htag_index);
-#line 8184 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_has_hierarchical_keywords (PhotoMetadata* self)
-{
- gboolean result = FALSE;
- HierarchicalKeywordField** _tmp0_;
- gint _tmp0__length1;
-#line 1085 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 8200 "PhotoMetadata.c"
- {
- HierarchicalKeywordField** field_collection = NULL;
- gint field_collection_length1 = 0;
- gint _field_collection_size_ = 0;
- gint field_it = 0;
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field_collection = _tmp0_;
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field_collection_length1 = _tmp0__length1;
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (field_it = 0; field_it < _tmp0__length1; field_it = field_it + 1) {
-#line 8212 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp1_;
- HierarchicalKeywordField* field = NULL;
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]);
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field = _tmp1_;
-#line 8219 "PhotoMetadata.c"
- {
- GeeCollection* values = NULL;
- HierarchicalKeywordField* _tmp2_;
- const gchar* _tmp3_;
- GeeList* _tmp4_;
- gboolean _tmp5_ = FALSE;
- GeeCollection* _tmp6_;
-#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = field;
-#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_->field_name;
-#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_get_string_multiple (self, _tmp3_);
-#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = values;
-#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp6_ != NULL) {
-#line 8239 "PhotoMetadata.c"
- GeeCollection* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = values;
-#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = gee_collection_get_size (_tmp7_);
-#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp8_;
-#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp9_ > 0;
-#line 8251 "PhotoMetadata.c"
- } else {
-#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = FALSE;
-#line 8255 "PhotoMetadata.c"
- }
-#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp5_) {
-#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = TRUE;
-#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (values);
-#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_keyword_field_unref0 (field);
-#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8267 "PhotoMetadata.c"
- }
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (values);
-#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_keyword_field_unref0 (field);
-#line 8273 "PhotoMetadata.c"
- }
- }
- }
-#line 1093 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 1093 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8281 "PhotoMetadata.c"
-}
-
-
-GeeSet*
-photo_metadata_get_hierarchical_keywords (PhotoMetadata* self)
-{
- GeeSet* result = NULL;
- GeeSet* h_keywords = NULL;
- GeeSet* _tmp0_;
- HierarchicalKeywordField** _tmp1_;
- gint _tmp1__length1;
- GError * _inner_error_ = NULL;
-#line 1096 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1097 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_assert (photo_metadata_has_hierarchical_keywords (self), "has_hierarchical_keywords()");
-#line 1099 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_create_string_set (self, NULL, NULL, NULL);
-#line 1099 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- h_keywords = _tmp0_;
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 8306 "PhotoMetadata.c"
- {
- HierarchicalKeywordField** field_collection = NULL;
- gint field_collection_length1 = 0;
- gint _field_collection_size_ = 0;
- gint field_it = 0;
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field_collection = _tmp1_;
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field_collection_length1 = _tmp1__length1;
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (field_it = 0; field_it < _tmp1__length1; field_it = field_it + 1) {
-#line 8318 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp2_;
- HierarchicalKeywordField* field = NULL;
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]);
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field = _tmp2_;
-#line 8325 "PhotoMetadata.c"
- {
- GeeCollection* values = NULL;
- HierarchicalKeywordField* _tmp3_;
- const gchar* _tmp4_;
- GeeList* _tmp5_;
- gboolean _tmp6_ = FALSE;
- GeeCollection* _tmp7_;
- GeeArrayList* transformed_values = NULL;
- GeeArrayList* _tmp11_;
-#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = field;
-#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp3_->field_name;
-#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = photo_metadata_get_string_multiple (self, _tmp4_);
-#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = values;
-#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp7_ == NULL) {
-#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = TRUE;
-#line 8349 "PhotoMetadata.c"
- } else {
- GeeCollection* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
-#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = values;
-#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = gee_collection_get_size (_tmp8_);
-#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = _tmp9_;
-#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _tmp10_ < 1;
-#line 8362 "PhotoMetadata.c"
- }
-#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp6_) {
-#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (values);
-#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_keyword_field_unref0 (field);
-#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- continue;
-#line 8372 "PhotoMetadata.c"
- }
-#line 1107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 1107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- transformed_values = _tmp11_;
-#line 8378 "PhotoMetadata.c"
- {
- GeeIterator* _current_value_it = NULL;
- GeeCollection* _tmp12_;
- GeeIterator* _tmp13_;
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = values;
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_it = _tmp13_;
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 8391 "PhotoMetadata.c"
- GeeIterator* _tmp14_;
- gchar* current_value = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = _current_value_it;
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!gee_iterator_next (_tmp14_)) {
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 8402 "PhotoMetadata.c"
- }
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _current_value_it;
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_value = (gchar*) _tmp16_;
-#line 8410 "PhotoMetadata.c"
- {
- GeeList* transformed = NULL;
- HierarchicalKeywordField* _tmp17_;
- KeywordTransformer* _tmp18_;
- const gchar* _tmp19_;
- GeeList* _tmp20_;
- GeeArrayList* _tmp21_;
- GeeList* _tmp22_;
-#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = field;
-#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = _tmp17_->transformer;
-#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = current_value;
-#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = keyword_transformer_transform (_tmp18_, _tmp19_, &_inner_error_);
-#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- transformed = _tmp20_;
-#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8431 "PhotoMetadata.c"
- goto __catch32_g_error;
- }
-#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = transformed_values;
-#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = transformed;
-#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_array_list_add_all (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (transformed);
-#line 8442 "PhotoMetadata.c"
- }
- goto __finally32;
- __catch32_g_error:
- {
- GError* _error_ = NULL;
- const gchar* _tmp23_;
- GError* _tmp24_;
- const gchar* _tmp25_;
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _error_ = _inner_error_;
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _inner_error_ = NULL;
-#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = current_value;
-#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = _error_;
-#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = _tmp24_->message;
-#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_critical ("PhotoMetadata.vala:1113: Failed to transform tag value %s: %s", _tmp23_, _tmp25_);
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_error_free0 (_error_);
-#line 8465 "PhotoMetadata.c"
- }
- __finally32:
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (current_value);
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_current_value_it);
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (transformed_values);
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (values);
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_keyword_field_unref0 (field);
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (h_keywords);
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.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 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_clear_error (&_inner_error_);
-#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return NULL;
-#line 8488 "PhotoMetadata.c"
- }
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (current_value);
-#line 8492 "PhotoMetadata.c"
- }
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_current_value_it);
-#line 8496 "PhotoMetadata.c"
- }
- {
- GeeArrayList* _current_value_list = NULL;
- GeeArrayList* _tmp26_;
- GeeArrayList* _tmp27_;
- gint _current_value_size = 0;
- GeeArrayList* _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
- gint _current_value_index = 0;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = transformed_values;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = _g_object_ref0 (_tmp26_);
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_list = _tmp27_;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = _current_value_list;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_ = _tmp29_;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_size = _tmp30_;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_index = -1;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 8525 "PhotoMetadata.c"
- gint _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- gchar* current_value = NULL;
- GeeArrayList* _tmp34_;
- gint _tmp35_;
- gpointer _tmp36_;
- gchar* canonicalized = NULL;
- const gchar* _tmp37_;
- HierarchicalKeywordField* _tmp38_;
- const gchar* _tmp39_;
- gchar* _tmp40_;
- const gchar* _tmp41_;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp31_ = _current_value_index;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_index = _tmp31_ + 1;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp32_ = _current_value_index;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp33_ = _current_value_size;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!(_tmp32_ < _tmp33_)) {
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 8551 "PhotoMetadata.c"
- }
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp34_ = _current_value_list;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp35_ = _current_value_index;
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp36_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp35_);
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_value = (gchar*) _tmp36_;
-#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp37_ = current_value;
-#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp38_ = field;
-#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp39_ = _tmp38_->path_separator;
-#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp40_ = hierarchical_tag_utilities_canonicalize (_tmp37_, _tmp39_);
-#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- canonicalized = _tmp40_;
-#line 1124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp41_ = canonicalized;
-#line 1124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp41_ != NULL) {
-#line 8575 "PhotoMetadata.c"
- GeeSet* _tmp42_;
- const gchar* _tmp43_;
-#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp42_ = h_keywords;
-#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp43_ = canonicalized;
-#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection), _tmp43_);
-#line 8584 "PhotoMetadata.c"
- }
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (canonicalized);
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (current_value);
-#line 8590 "PhotoMetadata.c"
- }
-#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_current_value_list);
-#line 8594 "PhotoMetadata.c"
- }
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (transformed_values);
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (values);
-#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _hierarchical_keyword_field_unref0 (field);
-#line 8602 "PhotoMetadata.c"
- }
- }
- }
-#line 1129 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = h_keywords;
-#line 1129 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8610 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_has_orientation (PhotoMetadata* self)
-{
- gboolean result = FALSE;
- GExiv2Metadata* _tmp0_;
-#line 1132 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = gexiv2_metadata_get_orientation (_tmp0_) == GEXIV2_ORIENTATION_UNSPECIFIED;
-#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8627 "PhotoMetadata.c"
-}
-
-
-Orientation
-photo_metadata_get_orientation (PhotoMetadata* self)
-{
- Orientation result = 0;
- GExiv2Orientation orientation = 0;
- GExiv2Metadata* _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- GExiv2Orientation _tmp3_;
-#line 1137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), 0);
-#line 1140 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 1140 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- orientation = gexiv2_metadata_get_orientation (_tmp0_);
-#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = orientation;
-#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_ == GEXIV2_ORIENTATION_UNSPECIFIED) {
-#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = TRUE;
-#line 8652 "PhotoMetadata.c"
- } else {
- GExiv2Orientation _tmp4_;
-#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = orientation;
-#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp4_ < ORIENTATION_MIN;
-#line 8659 "PhotoMetadata.c"
- }
-#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp2_) {
-#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = TRUE;
-#line 8665 "PhotoMetadata.c"
- } else {
- GExiv2Orientation _tmp5_;
-#line 1142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = orientation;
-#line 1142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _tmp5_ > ORIENTATION_MAX;
-#line 8672 "PhotoMetadata.c"
- }
-#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_) {
-#line 1143 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = ORIENTATION_TOP_LEFT;
-#line 1143 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8680 "PhotoMetadata.c"
- } else {
- GExiv2Orientation _tmp6_;
-#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = orientation;
-#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = (Orientation) _tmp6_;
-#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8689 "PhotoMetadata.c"
- }
-}
-
-
-void
-photo_metadata_set_orientation (PhotoMetadata* self,
- Orientation orientation)
-{
- GExiv2Metadata* _tmp0_;
-#line 1148 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 1150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 1150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_set_orientation (_tmp0_, (GExiv2Orientation) orientation);
-#line 8705 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_gps (PhotoMetadata* self,
- gdouble* longitude,
- gchar* * long_ref,
- gdouble* latitude,
- gchar* * lat_ref,
- gdouble* altitude)
-{
- gdouble _vala_longitude = 0.0;
- gchar* _vala_long_ref = NULL;
- gdouble _vala_latitude = 0.0;
- gchar* _vala_lat_ref = NULL;
- gdouble _vala_altitude = 0.0;
- gboolean result = FALSE;
- GExiv2Metadata* _tmp0_;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- gdouble _tmp3_ = 0.0;
- gboolean _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 1153 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->priv->exiv2;
-#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gexiv2_metadata_get_gps_info (_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_);
-#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_longitude = _tmp1_;
-#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_latitude = _tmp2_;
-#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_altitude = _tmp3_;
-#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp4_) {
-#line 1156 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_vala_long_ref);
-#line 1156 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_long_ref = NULL;
-#line 1157 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_vala_lat_ref);
-#line 1157 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_lat_ref = NULL;
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (longitude) {
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *longitude = _vala_longitude;
-#line 8758 "PhotoMetadata.c"
- }
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (long_ref) {
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *long_ref = _vala_long_ref;
-#line 8764 "PhotoMetadata.c"
- } else {
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_vala_long_ref);
-#line 8768 "PhotoMetadata.c"
- }
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (latitude) {
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *latitude = _vala_latitude;
-#line 8774 "PhotoMetadata.c"
- }
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (lat_ref) {
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *lat_ref = _vala_lat_ref;
-#line 8780 "PhotoMetadata.c"
- } else {
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_vala_lat_ref);
-#line 8784 "PhotoMetadata.c"
- }
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (altitude) {
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *altitude = _vala_altitude;
-#line 8790 "PhotoMetadata.c"
- }
-#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8794 "PhotoMetadata.c"
- }
-#line 1162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = photo_metadata_get_string (self, "Exif.GPSInfo.GPSLongitudeRef", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_vala_long_ref);
-#line 1162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_long_ref = _tmp5_;
-#line 1163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = photo_metadata_get_string (self, "Exif.GPSInfo.GPSLatitudeRef", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_vala_lat_ref);
-#line 1163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_lat_ref = _tmp6_;
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = TRUE;
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (longitude) {
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *longitude = _vala_longitude;
-#line 8814 "PhotoMetadata.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (long_ref) {
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *long_ref = _vala_long_ref;
-#line 8820 "PhotoMetadata.c"
- } else {
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_vala_long_ref);
-#line 8824 "PhotoMetadata.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (latitude) {
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *latitude = _vala_latitude;
-#line 8830 "PhotoMetadata.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (lat_ref) {
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *lat_ref = _vala_lat_ref;
-#line 8836 "PhotoMetadata.c"
- } else {
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_vala_lat_ref);
-#line 8840 "PhotoMetadata.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (altitude) {
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *altitude = _vala_altitude;
-#line 8846 "PhotoMetadata.c"
- }
-#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8850 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_exposure (PhotoMetadata* self,
- MetadataRational* exposure)
-{
- MetadataRational _vala_exposure = {0};
- gboolean result = FALSE;
- MetadataRational _tmp0_ = {0};
- gboolean _tmp1_;
-#line 1168 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_rational (self, "Exif.Photo.ExposureTime", &_tmp0_);
-#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_exposure = _tmp0_;
-#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (exposure) {
-#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *exposure = _vala_exposure;
-#line 8874 "PhotoMetadata.c"
- }
-#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8878 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_exposure_string (PhotoMetadata* self)
-{
- gchar* result = NULL;
- MetadataRational exposure_time = {0};
- MetadataRational _tmp0_ = {0};
- gboolean _tmp1_;
- gchar* _tmp2_;
-#line 1172 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_rational (self, "Exif.Photo.ExposureTime", &_tmp0_);
-#line 1174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- exposure_time = _tmp0_;
-#line 1174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp1_) {
-#line 1175 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 1175 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8902 "PhotoMetadata.c"
- }
-#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!metadata_rational_is_valid (&exposure_time)) {
-#line 1178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 1178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8910 "PhotoMetadata.c"
- }
-#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ExposureTime", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp2_;
-#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8918 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_iso (PhotoMetadata* self,
- glong* iso)
-{
- glong _vala_iso = 0L;
- gboolean result = FALSE;
- gboolean fetched_ok = FALSE;
- glong _tmp0_ = 0L;
- gboolean _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_ = FALSE;
- glong _tmp4_;
-#line 1183 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 1184 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_long (self, "Exif.Photo.ISOSpeedRatings", &_tmp0_);
-#line 1184 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_iso = _tmp0_;
-#line 1184 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- fetched_ok = _tmp1_;
-#line 1186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = fetched_ok;
-#line 1186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp2_ == FALSE) {
-#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (iso) {
-#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *iso = _vala_iso;
-#line 8952 "PhotoMetadata.c"
- }
-#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8956 "PhotoMetadata.c"
- }
-#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _vala_iso;
-#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ < ((glong) 6)) {
-#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = TRUE;
-#line 8964 "PhotoMetadata.c"
- } else {
- glong _tmp5_;
-#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _vala_iso;
-#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp5_ > ((glong) 409600);
-#line 8971 "PhotoMetadata.c"
- }
-#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
-#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = FALSE;
-#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (iso) {
-#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *iso = _vala_iso;
-#line 8981 "PhotoMetadata.c"
- }
-#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8985 "PhotoMetadata.c"
- }
-#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = TRUE;
-#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (iso) {
-#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *iso = _vala_iso;
-#line 8993 "PhotoMetadata.c"
- }
-#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 8997 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_iso_string (PhotoMetadata* self)
-{
- gchar* result = NULL;
- glong iso = 0L;
- glong _tmp0_ = 0L;
- gboolean _tmp1_;
- gchar* _tmp2_;
-#line 1197 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1199 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_iso (self, &_tmp0_);
-#line 1199 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- iso = _tmp0_;
-#line 1199 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp1_) {
-#line 1200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 1200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9021 "PhotoMetadata.c"
- }
-#line 1202 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ISOSpeedRatings", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1202 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp2_;
-#line 1202 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9029 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_aperture (PhotoMetadata* self,
- MetadataRational* aperture)
-{
- MetadataRational _vala_aperture = {0};
- gboolean result = FALSE;
- MetadataRational _tmp0_ = {0};
- gboolean _tmp1_;
-#line 1205 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_rational (self, "Exif.Photo.FNumber", &_tmp0_);
-#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_aperture = _tmp0_;
-#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (aperture) {
-#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *aperture = _vala_aperture;
-#line 9053 "PhotoMetadata.c"
- }
-#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9057 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_aperture_string (PhotoMetadata* self,
- gboolean pango_formatted)
-{
- gchar* result = NULL;
- MetadataRational aperture = {0};
- MetadataRational _tmp0_ = {0};
- gboolean _tmp1_;
- gdouble aperture_value = 0.0;
- MetadataRational _tmp2_;
- gint _tmp3_;
- MetadataRational _tmp4_;
- gint _tmp5_;
- gdouble _tmp6_;
- const gchar* _tmp7_ = NULL;
- const gchar* _tmp8_ = NULL;
- gdouble _tmp9_;
- gdouble _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 1209 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_aperture (self, &_tmp0_);
-#line 1211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- aperture = _tmp0_;
-#line 1211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp1_) {
-#line 1212 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = NULL;
-#line 1212 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9095 "PhotoMetadata.c"
- }
-#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = aperture;
-#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_.numerator;
-#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = aperture;
-#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_.denominator;
-#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- aperture_value = ((gdouble) _tmp3_) / ((gdouble) _tmp5_);
-#line 1215 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = aperture_value;
-#line 1215 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- aperture_value = ((gint) (_tmp6_ * 10.0)) / 10.0;
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (pango_formatted) {
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = "<i>f</i>/";
-#line 9115 "PhotoMetadata.c"
- } else {
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = "f/";
-#line 9119 "PhotoMetadata.c"
- }
-#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = aperture_value;
-#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (fmod (_tmp9_, 1) == ((gdouble) 0)) {
-#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = "%.0f";
-#line 9127 "PhotoMetadata.c"
- } else {
-#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = "%.1f";
-#line 9131 "PhotoMetadata.c"
- }
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = aperture_value;
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = g_strdup_printf (_tmp8_, _tmp10_);
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = _tmp11_;
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = g_strconcat (_tmp7_, _tmp12_, NULL);
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = _tmp13_;
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp12_);
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp14_;
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9149 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_camera_make (PhotoMetadata* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1221 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Image.Make", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
-#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9166 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_camera_model (PhotoMetadata* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1225 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Image.Model", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
-#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9183 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_flash (PhotoMetadata* self,
- glong* flash)
-{
- glong _vala_flash = 0L;
- gboolean result = FALSE;
- glong _tmp0_ = 0L;
- gboolean _tmp1_;
-#line 1229 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_long (self, "Exif.Photo.Flash", &_tmp0_);
-#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_flash = _tmp0_;
-#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (flash) {
-#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *flash = _vala_flash;
-#line 9207 "PhotoMetadata.c"
- }
-#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9211 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_flash_string (PhotoMetadata* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1234 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.Flash", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
-#line 1236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9228 "PhotoMetadata.c"
-}
-
-
-gboolean
-photo_metadata_get_focal_length (PhotoMetadata* self,
- MetadataRational* focal_length)
-{
- MetadataRational _vala_focal_length = {0};
- gboolean result = FALSE;
- MetadataRational _tmp0_ = {0};
- gboolean _tmp1_;
-#line 1239 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_rational (self, "Exif.Photo.FocalLength", &_tmp0_);
-#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_focal_length = _tmp0_;
-#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (focal_length) {
-#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- *focal_length = _vala_focal_length;
-#line 9252 "PhotoMetadata.c"
- }
-#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9256 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_focal_length_string (PhotoMetadata* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.FocalLength", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
-#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9273 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_artist (PhotoMetadata* self)
-{
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar* _tmp1_;
-#line 1253 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_ARTIST_TAGS;
-#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_ARTIST_TAGS_length1;
-#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_first_string_interpreted (self, _tmp0_, _tmp0__length1);
-#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_;
-#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9296 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_copyright (PhotoMetadata* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Image.Copyright", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
-#line 1258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9313 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_software (PhotoMetadata* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Image.Software", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
-#line 1262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9330 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_software (PhotoMetadata* self,
- const gchar* software,
- const gchar* version)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (software != NULL);
-#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (version != NULL);
-#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup_printf ("%s %s", software, version);
-#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _tmp0_;
-#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Exif.Image.Software", _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp1_);
-#line 1269 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (photo_metadata_has_iptc (self)) {
-#line 1270 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Iptc.Application2.Program", software, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Iptc.Application2.ProgramVersion", version, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 9361 "PhotoMetadata.c"
- }
-}
-
-
-void
-photo_metadata_remove_software (PhotoMetadata* self)
-{
-#line 1275 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 1276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tag (self, "Exif.Image.Software");
-#line 1277 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tag (self, "Iptc.Application2.Program");
-#line 1278 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tag (self, "Iptc.Application2.ProgramVersion");
-#line 9377 "PhotoMetadata.c"
-}
-
-
-gchar*
-photo_metadata_get_exposure_bias (PhotoMetadata* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 1281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ExposureBiasValue", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
-#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9394 "PhotoMetadata.c"
-}
-
-
-Rating
-photo_metadata_get_rating (PhotoMetadata* self)
-{
- Rating result = 0;
- gchar* rating_string = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- gint int_percent_rating = 0;
- const gchar* _tmp6_;
-#line 1293 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (self), 0);
-#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_RATING_TAGS;
-#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = photo_metadata_RATING_TAGS_length1;
-#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_first_string (self, _tmp0_, _tmp0__length1);
-#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- rating_string = _tmp1_;
-#line 1295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = rating_string;
-#line 1295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp2_ != NULL) {
-#line 9425 "PhotoMetadata.c"
- const gchar* _tmp3_;
-#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = rating_string;
-#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = rating_unserialize (atoi (_tmp3_));
-#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (rating_string);
-#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9435 "PhotoMetadata.c"
- }
-#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_get_string (self, "Exif.Image.RatingPercent", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (rating_string);
-#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- rating_string = _tmp4_;
-#line 1299 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = rating_string;
-#line 1299 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp5_ == NULL) {
-#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = RATING_UNRATED;
-#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (rating_string);
-#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9453 "PhotoMetadata.c"
- }
-#line 1303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = rating_string;
-#line 1303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- int_percent_rating = atoi (_tmp6_);
-#line 9459 "PhotoMetadata.c"
- {
- gint i = 0;
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- i = 5;
-#line 9464 "PhotoMetadata.c"
- {
- gboolean _tmp7_ = FALSE;
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = TRUE;
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- while (TRUE) {
-#line 9471 "PhotoMetadata.c"
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp7_) {
-#line 9478 "PhotoMetadata.c"
- gint _tmp8_;
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = i;
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- i = _tmp8_ - 1;
-#line 9484 "PhotoMetadata.c"
- }
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = FALSE;
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = i;
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!(_tmp9_ >= 0)) {
-#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- break;
-#line 9494 "PhotoMetadata.c"
- }
-#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = int_percent_rating;
-#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = i;
-#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = RESOURCES_rating_thresholds[_tmp11_];
-#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp10_ >= _tmp12_) {
-#line 9504 "PhotoMetadata.c"
- gint _tmp13_;
-#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = i;
-#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = rating_unserialize (_tmp13_);
-#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (rating_string);
-#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9514 "PhotoMetadata.c"
- }
- }
- }
- }
-#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = rating_unserialize (-1);
-#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (rating_string);
-#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9525 "PhotoMetadata.c"
-}
-
-
-void
-photo_metadata_set_rating (PhotoMetadata* self,
- Rating rating)
-{
- gint int_rating = 0;
- gint _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gint _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gint _tmp6_;
-#line 1316 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 1317 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- int_rating = rating_serialize (rating);
-#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = int_rating;
-#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup_printf ("%i", _tmp0_);
-#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp1_;
-#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Xmp.xmp.Rating", _tmp2_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp2_);
-#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = int_rating;
-#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = g_strdup_printf ("%i", _tmp3_);
-#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_;
-#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Exif.Image.Rating", _tmp5_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp5_);
-#line 1321 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = int_rating;
-#line 1321 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (0 <= _tmp6_) {
-#line 9569 "PhotoMetadata.c"
- gint _tmp7_;
- gint _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = int_rating;
-#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = RESOURCES_rating_thresholds[_tmp7_];
-#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = g_strdup_printf ("%i", _tmp8_);
-#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = _tmp9_;
-#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp10_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp10_);
-#line 9586 "PhotoMetadata.c"
- } else {
- gint _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = int_rating;
-#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = g_strdup_printf ("%i", _tmp11_);
-#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = _tmp12_;
-#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp13_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp13_);
-#line 9601 "PhotoMetadata.c"
- }
-}
-
-
-static gpointer
-_media_metadata_ref0 (gpointer self)
-{
-#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self ? media_metadata_ref (self) : NULL;
-#line 9611 "PhotoMetadata.c"
-}
-
-
-static PhotoMetadataInternalPhotoPreview*
-photo_metadata_internal_photo_preview_construct (GType object_type,
- PhotoMetadata* owner,
- const gchar* name,
- guint number,
- GExiv2PreviewProperties* props)
-{
- PhotoMetadataInternalPhotoPreview* self = NULL;
- Dimensions _tmp0_ = {0};
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- PhotoMetadata* _tmp3_;
-#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (IS_PHOTO_METADATA (owner), NULL);
-#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_return_val_if_fail (GEXIV2_IS_PREVIEW_PROPERTIES (props), NULL);
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dimensions_init (&_tmp0_, (gint) gexiv2_preview_properties_get_width (props), (gint) gexiv2_preview_properties_get_height (props));
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gexiv2_preview_properties_get_mime_type (props);
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gexiv2_preview_properties_get_extension (props);
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = (PhotoMetadataInternalPhotoPreview*) photo_preview_construct (object_type, name, &_tmp0_, gexiv2_preview_properties_get_size (props), _tmp1_, _tmp2_);
-#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _media_metadata_ref0 (owner);
-#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _media_metadata_unref0 (self->owner);
-#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->owner = _tmp3_;
-#line 236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->number = number;
-#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return self;
-#line 9651 "PhotoMetadata.c"
-}
-
-
-static PhotoMetadataInternalPhotoPreview*
-photo_metadata_internal_photo_preview_new (PhotoMetadata* owner,
- const gchar* name,
- guint number,
- GExiv2PreviewProperties* props)
-{
-#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return photo_metadata_internal_photo_preview_construct (PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, owner, name, number, props);
-#line 9663 "PhotoMetadata.c"
-}
-
-
-static GBytes*
-photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base,
- GError** error)
-{
- PhotoMetadataInternalPhotoPreview * self;
- GBytes* result = NULL;
- GExiv2PreviewProperties** props = NULL;
- PhotoMetadata* _tmp0_;
- GExiv2Metadata* _tmp1_;
- GExiv2PreviewProperties** _tmp2_;
- GExiv2PreviewProperties** _tmp3_;
- gint props_length1;
- gint _props_size_;
- gboolean _tmp4_ = FALSE;
- GExiv2PreviewProperties** _tmp5_;
- gint _tmp5__length1;
- PhotoMetadata* _tmp8_;
- GExiv2Metadata* _tmp9_;
- GExiv2PreviewProperties** _tmp10_;
- gint _tmp10__length1;
- guint _tmp11_;
- GExiv2PreviewProperties* _tmp12_;
- GExiv2PreviewImage* _tmp13_;
- GExiv2PreviewImage* _tmp14_;
- guint32 _tmp15_;
- guint8* _tmp16_;
- GBytes* _tmp17_;
- GBytes* _tmp18_;
-#line 239 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreview);
-#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = self->owner;
-#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _tmp0_->priv->exiv2;
-#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_ = gexiv2_metadata_get_preview_properties (_tmp1_);
-#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- props = _tmp3_;
-#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- props_length1 = _vala_array_length (_tmp2_);
-#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _props_size_ = props_length1;
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = props;
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = props_length1;
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp5_ != NULL) {
-#line 9715 "PhotoMetadata.c"
- GExiv2PreviewProperties** _tmp6_;
- gint _tmp6__length1;
- guint _tmp7_;
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = props;
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6__length1 = props_length1;
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = self->number;
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = ((guint) _tmp6__length1) > _tmp7_;
-#line 9727 "PhotoMetadata.c"
- } else {
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = FALSE;
-#line 9731 "PhotoMetadata.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_assert (_tmp4_, "props != null && props.length > number");
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = self->owner;
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp8_->priv->exiv2;
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = props;
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10__length1 = props_length1;
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = self->number;
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = _tmp10_[_tmp11_];
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = gexiv2_metadata_get_preview_image (_tmp9_, _tmp12_);
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = _tmp13_;
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = gexiv2_preview_image_get_data (_tmp14_, &_tmp15_);
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = g_bytes_new (_tmp16_, _tmp15_);
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = _tmp17_;
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp14_);
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp18_;
-#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- return result;
-#line 9763 "PhotoMetadata.c"
-}
-
-
-static void
-photo_metadata_internal_photo_preview_class_init (PhotoMetadataInternalPhotoPreviewClass * klass)
-{
-#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_internal_photo_preview_parent_class = g_type_class_peek_parent (klass);
-#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((PhotoPreviewClass *) klass)->finalize = photo_metadata_internal_photo_preview_finalize;
-#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((PhotoPreviewClass *) klass)->flatten = (GBytes* (*) (PhotoPreview *, GError**)) photo_metadata_internal_photo_preview_real_flatten;
-#line 9776 "PhotoMetadata.c"
-}
-
-
-static void
-photo_metadata_internal_photo_preview_instance_init (PhotoMetadataInternalPhotoPreview * self)
-{
-}
-
-
-static void
-photo_metadata_internal_photo_preview_finalize (PhotoPreview * obj)
-{
- PhotoMetadataInternalPhotoPreview * self;
-#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreview);
-#line 227 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _media_metadata_unref0 (self->owner);
-#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- PHOTO_PREVIEW_CLASS (photo_metadata_internal_photo_preview_parent_class)->finalize (obj);
-#line 9796 "PhotoMetadata.c"
-}
-
-
-static GType
-photo_metadata_internal_photo_preview_get_type (void)
-{
- static volatile gsize photo_metadata_internal_photo_preview_type_id__volatile = 0;
- if (g_once_init_enter (&photo_metadata_internal_photo_preview_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoMetadataInternalPhotoPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_metadata_internal_photo_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMetadataInternalPhotoPreview), 0, (GInstanceInitFunc) photo_metadata_internal_photo_preview_instance_init, NULL };
- GType photo_metadata_internal_photo_preview_type_id;
- photo_metadata_internal_photo_preview_type_id = g_type_register_static (TYPE_PHOTO_PREVIEW, "PhotoMetadataInternalPhotoPreview", &g_define_type_info, 0);
- g_once_init_leave (&photo_metadata_internal_photo_preview_type_id__volatile, photo_metadata_internal_photo_preview_type_id);
- }
- return photo_metadata_internal_photo_preview_type_id__volatile;
-}
-
-
-static void
-photo_metadata_class_init (PhotoMetadataClass * klass)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar** _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar** _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar** _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar** _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- gchar** _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar** _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar** _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- gchar** _tmp37_;
- NullKeywordTransformer* _tmp38_;
- NullKeywordTransformer* _tmp39_;
- HierarchicalKeywordField* _tmp40_;
- NullKeywordTransformer* _tmp41_;
- NullKeywordTransformer* _tmp42_;
- HierarchicalKeywordField* _tmp43_;
- ACDSeeKeywordTransformer* _tmp44_;
- ACDSeeKeywordTransformer* _tmp45_;
- HierarchicalKeywordField* _tmp46_;
- NullKeywordTransformer* _tmp47_;
- NullKeywordTransformer* _tmp48_;
- HierarchicalKeywordField* _tmp49_;
- NullKeywordTransformer* _tmp50_;
- NullKeywordTransformer* _tmp51_;
- HierarchicalKeywordField* _tmp52_;
- HierarchicalKeywordField** _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_;
- gchar* _tmp56_;
- gchar** _tmp57_;
- gchar* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- gchar** _tmp63_;
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_parent_class = g_type_class_peek_parent (klass);
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->finalize = photo_metadata_finalize;
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_type_class_add_private (klass, sizeof (PhotoMetadataPrivate));
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->read_from_file = (void (*) (MediaMetadata *, GFile*, GError**)) photo_metadata_real_read_from_file;
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_creation_date_time = (MetadataDateTime* (*) (MediaMetadata *)) photo_metadata_real_get_creation_date_time;
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_title = (gchar* (*) (MediaMetadata *)) photo_metadata_real_get_title;
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_comment = (gchar* (*) (MediaMetadata *)) photo_metadata_real_get_comment;
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = g_strdup ("Exif.Image.DateTime");
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup ("Xmp.tiff.DateTime");
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_strdup ("Xmp.xmp.ModifyDate");
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = g_strdup ("Xmp.acdsee.datetime");
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = g_new0 (gchar*, 4 + 1);
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_[0] = _tmp0_;
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_[1] = _tmp1_;
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_[2] = _tmp2_;
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_[3] = _tmp3_;
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_DATE_TIME_TAGS = _tmp4_;
-#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_DATE_TIME_TAGS_length1 = 4;
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = g_strdup ("Exif.Photo.DateTimeOriginal");
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = g_strdup ("Xmp.exif.DateTimeOriginal");
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = g_strdup ("Xmp.xmp.CreateDate");
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = g_strdup ("Exif.Photo.DateTimeDigitized");
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = g_strdup ("Xmp.exif.DateTimeDigitized");
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = g_strdup ("Exif.Image.DateTime");
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = g_new0 (gchar*, 6 + 1);
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_[0] = _tmp5_;
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_[1] = _tmp6_;
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_[2] = _tmp7_;
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_[3] = _tmp8_;
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_[4] = _tmp9_;
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_[5] = _tmp10_;
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_EXPOSURE_DATE_TIME_TAGS = _tmp11_;
-#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1 = 6;
-#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = g_strdup ("Exif.Photo.DateTimeDigitized");
-#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = g_strdup ("Xmp.exif.DateTimeDigitized");
-#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = g_new0 (gchar*, 2 + 1);
-#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_[0] = _tmp12_;
-#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_[1] = _tmp13_;
-#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_DIGITIZED_DATE_TIME_TAGS = _tmp14_;
-#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1 = 2;
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = g_strdup ("Exif.Photo.PixelXDimension");
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = g_strdup ("Xmp.exif.PixelXDimension");
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = g_strdup ("Xmp.tiff.ImageWidth");
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = g_strdup ("Xmp.exif.PixelXDimension");
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = g_new0 (gchar*, 4 + 1);
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_[0] = _tmp15_;
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_[1] = _tmp16_;
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_[2] = _tmp17_;
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_[3] = _tmp18_;
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_WIDTH_TAGS = _tmp19_;
-#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_WIDTH_TAGS_length1 = 4;
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = g_strdup ("Exif.Photo.PixelYDimension");
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = g_strdup ("Xmp.exif.PixelYDimension");
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = g_strdup ("Xmp.tiff.ImageHeight");
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = g_strdup ("Xmp.exif.PixelYDimension");
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = g_new0 (gchar*, 4 + 1);
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_[0] = _tmp20_;
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_[1] = _tmp21_;
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_[2] = _tmp22_;
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_[3] = _tmp23_;
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_HEIGHT_TAGS = _tmp24_;
-#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_HEIGHT_TAGS_length1 = 4;
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = g_strdup ("Iptc.Application2.Caption");
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = g_strdup ("Xmp.dc.title");
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = g_strdup ("Iptc.Application2.Headline");
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = g_strdup ("Xmp.photoshop.Headline");
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ = g_strdup ("Xmp.acdsee.caption");
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_ = g_new0 (gchar*, 5 + 1);
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_[0] = _tmp25_;
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_[1] = _tmp26_;
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_[2] = _tmp27_;
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_[3] = _tmp28_;
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_[4] = _tmp29_;
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_STANDARD_TITLE_TAGS = _tmp30_;
-#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_STANDARD_TITLE_TAGS_length1 = 5;
-#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp31_ = g_strdup ("Exif.Photo.UserComment");
-#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp32_ = g_strdup ("Xmp.acdsee.notes");
-#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp33_ = g_new0 (gchar*, 2 + 1);
-#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp33_[0] = _tmp31_;
-#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp33_[1] = _tmp32_;
-#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_COMMENT_TAGS = _tmp33_;
-#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_COMMENT_TAGS_length1 = 2;
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp34_ = g_strdup ("Xmp.dc.subject");
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp35_ = g_strdup ("Iptc.Application2.Keywords");
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp36_ = g_strdup ("Xmp.xmp.Label");
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp37_ = g_new0 (gchar*, 3 + 1);
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp37_[0] = _tmp34_;
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp37_[1] = _tmp35_;
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp37_[2] = _tmp36_;
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_KEYWORD_TAGS = _tmp37_;
-#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_KEYWORD_TAGS_length1 = 3;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp38_ = null_keyword_transformer_new ();
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp39_ = _tmp38_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp40_ = hierarchical_keyword_field_new ("Xmp.lr.hierarchicalSubject", "|", FALSE, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer));
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp41_ = null_keyword_transformer_new ();
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp42_ = _tmp41_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp43_ = hierarchical_keyword_field_new ("Xmp.acdsee.keywords", "|", FALSE, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer));
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp44_ = acd_see_keyword_transformer_new ();
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp45_ = _tmp44_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp46_ = hierarchical_keyword_field_new ("Xmp.acdsee.categories", "|", FALSE, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer));
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp47_ = null_keyword_transformer_new ();
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp48_ = _tmp47_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp49_ = hierarchical_keyword_field_new ("Xmp.digiKam.TagsList", "/", FALSE, TRUE, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer));
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp50_ = null_keyword_transformer_new ();
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp51_ = _tmp50_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp52_ = hierarchical_keyword_field_new ("Xmp.MicrosoftPhoto.LastKeywordXMP", "/", FALSE, TRUE, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer));
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp53_ = g_new0 (HierarchicalKeywordField*, 5 + 1);
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp53_[0] = _tmp40_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp53_[1] = _tmp43_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp53_[2] = _tmp46_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp53_[3] = _tmp49_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp53_[4] = _tmp52_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_HIERARCHICAL_KEYWORD_TAGS = _tmp53_;
-#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1 = 5;
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp54_ = g_strdup ("Exif.Image.Artist");
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp55_ = g_strdup ("Exif.Canon.OwnerName");
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp56_ = g_strdup ("Xmp.acdsee.author");
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp57_ = g_new0 (gchar*, 3 + 1);
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp57_[0] = _tmp54_;
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp57_[1] = _tmp55_;
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp57_[2] = _tmp56_;
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_ARTIST_TAGS = _tmp57_;
-#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_ARTIST_TAGS_length1 = 3;
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp58_ = g_strdup ("Xmp.xmp.Rating");
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp59_ = g_strdup ("Iptc.Application2.Urgency");
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp60_ = g_strdup ("Xmp.photoshop.Urgency");
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp61_ = g_strdup ("Exif.Image.Rating");
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp62_ = g_strdup ("Xmp.acdsee.rating");
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp63_ = g_new0 (gchar*, 5 + 1);
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp63_[0] = _tmp58_;
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp63_[1] = _tmp59_;
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp63_[2] = _tmp60_;
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp63_[3] = _tmp61_;
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp63_[4] = _tmp62_;
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_RATING_TAGS = _tmp63_;
-#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_RATING_TAGS_length1 = 5;
-#line 10153 "PhotoMetadata.c"
-}
-
-
-static void
-photo_metadata_instance_init (PhotoMetadata * self)
-{
- GExiv2Metadata* _tmp0_;
- gchar* _tmp1_;
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv = PHOTO_METADATA_GET_PRIVATE (self);
-#line 248 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = gexiv2_metadata_new ();
-#line 248 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exiv2 = _tmp0_;
-#line 249 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = NULL;
-#line 250 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup ("<uninitialized>");
-#line 250 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->source_name = _tmp1_;
-#line 251 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->metadata_hash = NULL;
-#line 252 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->thumbnail_md5 = NULL;
-#line 10178 "PhotoMetadata.c"
-}
-
-
-static void
-photo_metadata_finalize (MediaMetadata * obj)
-{
- PhotoMetadata * self;
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_METADATA, PhotoMetadata);
-#line 248 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (self->priv->exiv2);
-#line 249 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _exif_data_unref0 (self->priv->exif);
-#line 250 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->source_name);
-#line 251 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->metadata_hash);
-#line 252 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (self->priv->thumbnail_md5);
-#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- MEDIA_METADATA_CLASS (photo_metadata_parent_class)->finalize (obj);
-#line 10200 "PhotoMetadata.c"
-}
-
-
-GType
-photo_metadata_get_type (void)
-{
- static volatile gsize photo_metadata_type_id__volatile = 0;
- if (g_once_init_enter (&photo_metadata_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotoMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMetadata), 0, (GInstanceInitFunc) photo_metadata_instance_init, NULL };
- GType photo_metadata_type_id;
- photo_metadata_type_id = g_type_register_static (TYPE_MEDIA_METADATA, "PhotoMetadata", &g_define_type_info, 0);
- g_once_init_leave (&photo_metadata_type_id__volatile, photo_metadata_type_id);
- }
- return photo_metadata_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/photos/Photos.c b/src/photos/Photos.c
deleted file mode 100644
index 4b69412..0000000
--- a/src/photos/Photos.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/* Photos.c generated by valac 0.40.4, the Vala compiler
- * generated from Photos.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* This file is the master unit file for the Photo unit. It should be edited to include
- * whatever code is deemed necessary.
- *
- * The init() and terminate() methods are mandatory.
- *
- * If the unit needs to be configured prior to initialization, add the proper parameters to
- * the preconfigure() method, implement it, and ensure in init() that it's been called.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-
-
-void photos_preconfigure (void);
-void photos_init (GError** error);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat* photo_file_format_get_supported (int* result_length1);
-void photo_file_format_init (PhotoFileFormat self);
-void photos_terminate (void);
-
-
-void
-photos_preconfigure (void)
-{
-}
-
-
-void
-photos_init (GError** error)
-{
- gint _tmp0_;
- PhotoFileFormat* _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala"
- _tmp1_ = photo_file_format_get_supported (&_tmp0_);
-#line 58 "Photos.c"
- {
- PhotoFileFormat* format_collection = NULL;
- gint format_collection_length1 = 0;
- gint _format_collection_size_ = 0;
- gint format_it = 0;
-#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala"
- format_collection = _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala"
- format_collection_length1 = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala"
- for (format_it = 0; format_it < _tmp0_; format_it = format_it + 1) {
-#line 70 "Photos.c"
- PhotoFileFormat format = 0;
-#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala"
- format = format_collection[format_it];
-#line 74 "Photos.c"
- {
- PhotoFileFormat _tmp2_;
-#line 24 "/home/jens/Source/shotwell/src/photos/Photos.vala"
- _tmp2_ = format;
-#line 24 "/home/jens/Source/shotwell/src/photos/Photos.vala"
- photo_file_format_init (_tmp2_);
-#line 81 "Photos.c"
- }
- }
-#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala"
- format_collection = (g_free (format_collection), NULL);
-#line 86 "Photos.c"
- }
-}
-
-
-void
-photos_terminate (void)
-{
-}
-
-
-
diff --git a/src/photos/PngSupport.c b/src/photos/PngSupport.c
deleted file mode 100644
index 41e90da..0000000
--- a/src/photos/PngSupport.c
+++ /dev/null
@@ -1,2096 +0,0 @@
-/* PngSupport.c generated by valac 0.40.4, the Vala compiler
- * generated from PngSupport.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties;
-typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass;
-typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ())
-
-#define TYPE_PNG_FILE_FORMAT_PROPERTIES (png_file_format_properties_get_type ())
-#define PNG_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties))
-#define PNG_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatPropertiesClass))
-#define IS_PNG_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_FILE_FORMAT_PROPERTIES))
-#define IS_PNG_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_FILE_FORMAT_PROPERTIES))
-#define PNG_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatPropertiesClass))
-
-typedef struct _PngFileFormatProperties PngFileFormatProperties;
-typedef struct _PngFileFormatPropertiesClass PngFileFormatPropertiesClass;
-typedef struct _PngFileFormatPropertiesPrivate PngFileFormatPropertiesPrivate;
-#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL)))
-
-#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
-#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
-#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
-#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
-#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-
-typedef struct _PhotoFileSniffer PhotoFileSniffer;
-typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
-typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate;
-
-#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
-#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
-#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
-#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
-#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-
-typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
-typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ())
-#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer))
-#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass))
-#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER))
-#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER))
-#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass))
-
-typedef struct _GdkSniffer GdkSniffer;
-typedef struct _GdkSnifferClass GdkSnifferClass;
-typedef struct _GdkSnifferPrivate GdkSnifferPrivate;
-
-#define TYPE_PNG_SNIFFER (png_sniffer_get_type ())
-#define PNG_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_SNIFFER, PngSniffer))
-#define PNG_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_SNIFFER, PngSnifferClass))
-#define IS_PNG_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_SNIFFER))
-#define IS_PNG_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_SNIFFER))
-#define PNG_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_SNIFFER, PngSnifferClass))
-
-typedef struct _PngSniffer PngSniffer;
-typedef struct _PngSnifferClass PngSnifferClass;
-typedef struct _PngSnifferPrivate PngSnifferPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
-typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate;
-
-#define TYPE_GDK_READER (gdk_reader_get_type ())
-#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader))
-#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass))
-#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER))
-#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER))
-#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass))
-
-typedef struct _GdkReader GdkReader;
-typedef struct _GdkReaderClass GdkReaderClass;
-typedef struct _GdkReaderPrivate GdkReaderPrivate;
-
-#define TYPE_PNG_READER (png_reader_get_type ())
-#define PNG_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_READER, PngReader))
-#define PNG_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_READER, PngReaderClass))
-#define IS_PNG_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_READER))
-#define IS_PNG_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_READER))
-#define PNG_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_READER, PngReaderClass))
-
-typedef struct _PngReader PngReader;
-typedef struct _PngReaderClass PngReaderClass;
-typedef struct _PngReaderPrivate PngReaderPrivate;
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-
-#define TYPE_PNG_WRITER (png_writer_get_type ())
-#define PNG_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_WRITER, PngWriter))
-#define PNG_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_WRITER, PngWriterClass))
-#define IS_PNG_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_WRITER))
-#define IS_PNG_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_WRITER))
-#define PNG_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_WRITER, PngWriterClass))
-
-typedef struct _PngWriter PngWriter;
-typedef struct _PngWriterClass PngWriterClass;
-typedef struct _PngWriterPrivate PngWriterPrivate;
-
-#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
-#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
-#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-
-typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
-typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
-typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate;
-
-#define TYPE_PNG_METADATA_WRITER (png_metadata_writer_get_type ())
-#define PNG_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_METADATA_WRITER, PngMetadataWriter))
-#define PNG_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_METADATA_WRITER, PngMetadataWriterClass))
-#define IS_PNG_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_METADATA_WRITER))
-#define IS_PNG_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_METADATA_WRITER))
-#define PNG_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_METADATA_WRITER, PngMetadataWriterClass))
-
-typedef struct _PngMetadataWriter PngMetadataWriter;
-typedef struct _PngMetadataWriterClass PngMetadataWriterClass;
-typedef struct _PngMetadataWriterPrivate PngMetadataWriterPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ())
-#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver))
-#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-
-typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver;
-typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass;
-typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate;
-
-#define TYPE_PNG_FILE_FORMAT_DRIVER (png_file_format_driver_get_type ())
-#define PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver))
-#define PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass))
-#define IS_PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_FILE_FORMAT_DRIVER))
-#define IS_PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_FILE_FORMAT_DRIVER))
-#define PNG_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass))
-
-typedef struct _PngFileFormatDriver PngFileFormatDriver;
-typedef struct _PngFileFormatDriverClass PngFileFormatDriverClass;
-typedef struct _PngFileFormatDriverPrivate PngFileFormatDriverPrivate;
-#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL)))
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000
-} PhotoFileFormatFlags;
-
-struct _PhotoFileFormatProperties {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatPropertiesPrivate * priv;
-};
-
-struct _PhotoFileFormatPropertiesClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatProperties *self);
- PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self);
- PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self);
- gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext);
- gchar* (*get_default_extension) (PhotoFileFormatProperties* self);
- gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self);
- gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self);
-};
-
-struct _PngFileFormatProperties {
- PhotoFileFormatProperties parent_instance;
- PngFileFormatPropertiesPrivate * priv;
-};
-
-struct _PngFileFormatPropertiesClass {
- PhotoFileFormatPropertiesClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoFileSniffer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileSnifferPrivate * priv;
- GFile* file;
- PhotoFileSnifferOptions options;
- gboolean calc_md5;
-};
-
-struct _PhotoFileSnifferClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileSniffer *self);
- DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error);
-};
-
-struct _GdkSniffer {
- PhotoFileSniffer parent_instance;
- GdkSnifferPrivate * priv;
-};
-
-struct _GdkSnifferClass {
- PhotoFileSnifferClass parent_class;
-};
-
-struct _PngSniffer {
- GdkSniffer parent_instance;
- PngSnifferPrivate * priv;
-};
-
-struct _PngSnifferClass {
- GdkSnifferClass parent_class;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _DetectedPhotoInformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DetectedPhotoInformationPrivate * priv;
- PhotoFileFormat file_format;
- PhotoMetadata* metadata;
- gchar* md5;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* format_name;
- Dimensions image_dim;
- GdkColorspace colorspace;
- gint channels;
- gint bits_per_channel;
-};
-
-struct _DetectedPhotoInformationClass {
- GTypeClass parent_class;
- void (*finalize) (DetectedPhotoInformation *self);
-};
-
-struct _PhotoFileAdapter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileAdapterPrivate * priv;
-};
-
-struct _PhotoFileAdapterClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileAdapter *self);
-};
-
-struct _PhotoFileReader {
- PhotoFileAdapter parent_instance;
- PhotoFileReaderPrivate * priv;
-};
-
-struct _PhotoFileReaderClass {
- PhotoFileAdapterClass parent_class;
- PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error);
-};
-
-struct _GdkReader {
- PhotoFileReader parent_instance;
- GdkReaderPrivate * priv;
-};
-
-struct _GdkReaderClass {
- PhotoFileReaderClass parent_class;
-};
-
-struct _PngReader {
- GdkReader parent_instance;
- PngReaderPrivate * priv;
-};
-
-struct _PngReaderClass {
- GdkReaderClass parent_class;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _PhotoFileWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileWriterPrivate * priv;
-};
-
-struct _PhotoFileWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error);
-};
-
-struct _PngWriter {
- PhotoFileWriter parent_instance;
- PngWriterPrivate * priv;
-};
-
-struct _PngWriterClass {
- PhotoFileWriterClass parent_class;
-};
-
-struct _PhotoFileMetadataWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileMetadataWriterPrivate * priv;
-};
-
-struct _PhotoFileMetadataWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error);
-};
-
-struct _PngMetadataWriter {
- PhotoFileMetadataWriter parent_instance;
- PngMetadataWriterPrivate * priv;
-};
-
-struct _PngMetadataWriterClass {
- PhotoFileMetadataWriterClass parent_class;
-};
-
-struct _PhotoFileFormatDriver {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatDriverPrivate * priv;
-};
-
-struct _PhotoFileFormatDriverClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatDriver *self);
- PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self);
- PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self);
- gboolean (*can_write_image) (PhotoFileFormatDriver* self);
- gboolean (*can_write_metadata) (PhotoFileFormatDriver* self);
- PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
-};
-
-struct _PngFileFormatDriver {
- PhotoFileFormatDriver parent_instance;
- PngFileFormatDriverPrivate * priv;
-};
-
-struct _PngFileFormatDriverClass {
- PhotoFileFormatDriverClass parent_class;
-};
-
-
-static gpointer png_file_format_properties_parent_class = NULL;
-static gchar** png_file_format_properties_KNOWN_EXTENSIONS;
-static gint png_file_format_properties_KNOWN_EXTENSIONS_length1;
-static gchar** png_file_format_properties_KNOWN_EXTENSIONS = NULL;
-static gint png_file_format_properties_KNOWN_EXTENSIONS_length1 = 0;
-static gint _png_file_format_properties_KNOWN_EXTENSIONS_size_ = 0;
-static gchar** png_file_format_properties_KNOWN_MIME_TYPES;
-static gint png_file_format_properties_KNOWN_MIME_TYPES_length1;
-static gchar** png_file_format_properties_KNOWN_MIME_TYPES = NULL;
-static gint png_file_format_properties_KNOWN_MIME_TYPES_length1 = 0;
-static gint _png_file_format_properties_KNOWN_MIME_TYPES_size_ = 0;
-static PngFileFormatProperties* png_file_format_properties_instance;
-static PngFileFormatProperties* png_file_format_properties_instance = NULL;
-static gpointer png_sniffer_parent_class = NULL;
-static gpointer png_reader_parent_class = NULL;
-static gpointer png_writer_parent_class = NULL;
-static gpointer png_metadata_writer_parent_class = NULL;
-static gpointer png_file_format_driver_parent_class = NULL;
-static PngFileFormatDriver* png_file_format_driver_instance;
-static PngFileFormatDriver* png_file_format_driver_instance = NULL;
-
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_properties (const GValue* value);
-GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType photo_file_format_flags_get_type (void) G_GNUC_CONST;
-GType png_file_format_properties_get_type (void) G_GNUC_CONST;
-void png_file_format_properties_init (void);
-PngFileFormatProperties* png_file_format_properties_new (void);
-PngFileFormatProperties* png_file_format_properties_construct (GType object_type);
-PngFileFormatProperties* png_file_format_properties_get_instance (void);
-static PhotoFileFormat png_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base);
-static PhotoFileFormatFlags png_file_format_properties_real_get_flags (PhotoFileFormatProperties* base);
-static gchar* png_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base);
-static gchar* png_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base);
-static gchar** png_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup12 (gchar** self,
- int length);
-static gchar* png_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base);
-static gchar** png_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup13 (gchar** self,
- int length);
-PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type);
-static void png_file_format_properties_finalize (PhotoFileFormatProperties * obj);
-gpointer photo_file_sniffer_ref (gpointer instance);
-void photo_file_sniffer_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_sniffer (GValue* value,
- gpointer v_object);
-void value_take_photo_file_sniffer (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_sniffer (const GValue* value);
-GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
-gpointer detected_photo_information_ref (gpointer instance);
-void detected_photo_information_unref (gpointer instance);
-GParamSpec* param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_detected_photo_information (GValue* value,
- gpointer v_object);
-void value_take_detected_photo_information (GValue* value,
- gpointer v_object);
-gpointer value_get_detected_photo_information (const GValue* value);
-GType detected_photo_information_get_type (void) G_GNUC_CONST;
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-GType gdk_sniffer_get_type (void) G_GNUC_CONST;
-GType png_sniffer_get_type (void) G_GNUC_CONST;
-PngSniffer* png_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options);
-PngSniffer* png_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-GdkSniffer* gdk_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-static gboolean png_sniffer_is_png_file (GFile* file,
- GError** error);
-static DetectedPhotoInformation* png_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error);
-DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self,
- gboolean* is_corrupted,
- GError** error);
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-GType gdk_reader_get_type (void) G_GNUC_CONST;
-GType png_reader_get_type (void) G_GNUC_CONST;
-PngReader* png_reader_new (const gchar* filepath);
-PngReader* png_reader_construct (GType object_type,
- const gchar* filepath);
-GdkReader* gdk_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static GdkPixbuf* png_reader_real_scaled_read (PhotoFileReader* base,
- Dimensions* full,
- Dimensions* scaled,
- GError** error);
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-void dimensions_get_scaled_by_constraint (Dimensions *self,
- gint scale,
- ScaleConstraint constraint,
- Dimensions* result);
-gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-GType png_writer_get_type (void) G_GNUC_CONST;
-PngWriter* png_writer_new (const gchar* filepath);
-PngWriter* png_writer_construct (GType object_type,
- const gchar* filepath);
-PhotoFileWriter* photo_file_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static void png_writer_real_write (PhotoFileWriter* base,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error);
-GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
-GType png_metadata_writer_get_type (void) G_GNUC_CONST;
-PngMetadataWriter* png_metadata_writer_new (const gchar* filepath);
-PngMetadataWriter* png_metadata_writer_construct (GType object_type,
- const gchar* filepath);
-PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static void png_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base,
- PhotoMetadata* metadata,
- GError** error);
-void photo_metadata_write_to_file (PhotoMetadata* self,
- GFile* file,
- GError** error);
-GFile* photo_file_adapter_get_file (PhotoFileAdapter* self);
-gpointer photo_file_format_driver_ref (gpointer instance);
-void photo_file_format_driver_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_driver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_driver (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_driver (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_driver (const GValue* value);
-GType photo_file_format_driver_get_type (void) G_GNUC_CONST;
-GType png_file_format_driver_get_type (void) G_GNUC_CONST;
-void png_file_format_driver_init (void);
-PngFileFormatDriver* png_file_format_driver_new (void);
-PngFileFormatDriver* png_file_format_driver_construct (GType object_type);
-PngFileFormatDriver* png_file_format_driver_get_instance (void);
-static PhotoFileFormatProperties* png_file_format_driver_real_get_properties (PhotoFileFormatDriver* base);
-static PhotoFileReader* png_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath);
-static gboolean png_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base);
-static gboolean png_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base);
-static PhotoFileWriter* png_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-static PhotoFileMetadataWriter* png_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-static PhotoFileSniffer* png_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options);
-static PhotoMetadata* png_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base);
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type);
-static void png_file_format_driver_finalize (PhotoFileFormatDriver * obj);
-
-static const guint8 PNG_SNIFFER_MAGIC_SEQUENCE[8] = {(guint8) 137, (guint8) 80, (guint8) 78, (guint8) 71, (guint8) 13, (guint8) 10, (guint8) 26, (guint8) 10};
-
-void
-png_file_format_properties_init (void)
-{
- PngFileFormatProperties* _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_properties_new ();
-#line 14 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _photo_file_format_properties_unref0 (png_file_format_properties_instance);
-#line 14 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_properties_instance = _tmp0_;
-#line 689 "PngSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_properties_ref0 (gpointer self)
-{
-#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self ? photo_file_format_properties_ref (self) : NULL;
-#line 698 "PngSupport.c"
-}
-
-
-PngFileFormatProperties*
-png_file_format_properties_get_instance (void)
-{
- PngFileFormatProperties* result = NULL;
- PngFileFormatProperties* _tmp0_;
- PngFileFormatProperties* _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_properties_instance;
-#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_);
-#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 716 "PngSupport.c"
-}
-
-
-static PhotoFileFormat
-png_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base)
-{
- PngFileFormatProperties * self;
- PhotoFileFormat result = 0;
-#line 21 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties);
-#line 22 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = PHOTO_FILE_FORMAT_PNG;
-#line 22 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 731 "PngSupport.c"
-}
-
-
-static PhotoFileFormatFlags
-png_file_format_properties_real_get_flags (PhotoFileFormatProperties* base)
-{
- PngFileFormatProperties * self;
- PhotoFileFormatFlags result = 0;
-#line 25 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties);
-#line 26 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = PHOTO_FILE_FORMAT_FLAGS_NONE;
-#line 26 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 746 "PngSupport.c"
-}
-
-
-static gchar*
-png_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base)
-{
- PngFileFormatProperties * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties);
-#line 30 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = g_strdup (_ ("PNG"));
-#line 30 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 764 "PngSupport.c"
-}
-
-
-static gchar*
-png_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base)
-{
- PngFileFormatProperties * self;
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties);
-#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_properties_KNOWN_EXTENSIONS;
-#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0__length1 = png_file_format_properties_KNOWN_EXTENSIONS_length1;
-#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = _tmp0_[0];
-#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp2_;
-#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 791 "PngSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup12 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- for (i = 0; i < length; i++) {
-#line 805 "PngSupport.c"
- gchar* _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result[i] = _tmp0_;
-#line 811 "PngSupport.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 815 "PngSupport.c"
-}
-
-
-static gchar**
-png_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- PngFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 37 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties);
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_properties_KNOWN_EXTENSIONS;
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0__length1 = png_file_format_properties_KNOWN_EXTENSIONS_length1;
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup12 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2_ = _tmp1_;
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (result_length1) {
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 849 "PngSupport.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp2_;
-#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 855 "PngSupport.c"
-}
-
-
-static gchar*
-png_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base)
-{
- PngFileFormatProperties * self;
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 41 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties);
-#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_properties_KNOWN_MIME_TYPES;
-#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0__length1 = png_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = _tmp0_[0];
-#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp2_;
-#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 882 "PngSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup13 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- for (i = 0; i < length; i++) {
-#line 896 "PngSupport.c"
- gchar* _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result[i] = _tmp0_;
-#line 902 "PngSupport.c"
- }
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 906 "PngSupport.c"
-}
-
-
-static gchar**
-png_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- PngFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 45 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties);
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_properties_KNOWN_MIME_TYPES;
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0__length1 = png_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup13 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2_ = _tmp1_;
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (result_length1) {
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 940 "PngSupport.c"
- }
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp2_;
-#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 946 "PngSupport.c"
-}
-
-
-PngFileFormatProperties*
-png_file_format_properties_construct (GType object_type)
-{
- PngFileFormatProperties* self = NULL;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = (PngFileFormatProperties*) photo_file_format_properties_construct (object_type);
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self;
-#line 958 "PngSupport.c"
-}
-
-
-PngFileFormatProperties*
-png_file_format_properties_new (void)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return png_file_format_properties_construct (TYPE_PNG_FILE_FORMAT_PROPERTIES);
-#line 967 "PngSupport.c"
-}
-
-
-static void
-png_file_format_properties_class_init (PngFileFormatPropertiesClass * klass)
-{
- gchar* _tmp0_;
- gchar** _tmp1_;
- gchar* _tmp2_;
- gchar** _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_properties_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->finalize = png_file_format_properties_finalize;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_file_format;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_flags;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_user_visible_name;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_default_extension;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) png_file_format_properties_real_get_known_extensions;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_default_mime_type;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) png_file_format_properties_real_get_mime_types;
-#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = g_strdup ("png");
-#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = g_new0 (gchar*, 1 + 1);
-#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_[0] = _tmp0_;
-#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_properties_KNOWN_EXTENSIONS = _tmp1_;
-#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_properties_KNOWN_EXTENSIONS_length1 = 1;
-#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2_ = g_strdup ("image/png");
-#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp3_ = g_new0 (gchar*, 1 + 1);
-#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp3_[0] = _tmp2_;
-#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_properties_KNOWN_MIME_TYPES = _tmp3_;
-#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_properties_KNOWN_MIME_TYPES_length1 = 1;
-#line 1016 "PngSupport.c"
-}
-
-
-static void
-png_file_format_properties_instance_init (PngFileFormatProperties * self)
-{
-}
-
-
-static void
-png_file_format_properties_finalize (PhotoFileFormatProperties * obj)
-{
- PngFileFormatProperties * self;
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties);
-#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- PHOTO_FILE_FORMAT_PROPERTIES_CLASS (png_file_format_properties_parent_class)->finalize (obj);
-#line 1034 "PngSupport.c"
-}
-
-
-GType
-png_file_format_properties_get_type (void)
-{
- static volatile gsize png_file_format_properties_type_id__volatile = 0;
- if (g_once_init_enter (&png_file_format_properties_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PngFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngFileFormatProperties), 0, (GInstanceInitFunc) png_file_format_properties_instance_init, NULL };
- GType png_file_format_properties_type_id;
- png_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "PngFileFormatProperties", &g_define_type_info, 0);
- g_once_init_leave (&png_file_format_properties_type_id__volatile, png_file_format_properties_type_id);
- }
- return png_file_format_properties_type_id__volatile;
-}
-
-
-PngSniffer*
-png_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PngSniffer* self = NULL;
-#line 53 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 54 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = (PngSniffer*) gdk_sniffer_construct (object_type, file, options);
-#line 53 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self;
-#line 1064 "PngSupport.c"
-}
-
-
-PngSniffer*
-png_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options)
-{
-#line 53 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return png_sniffer_construct (TYPE_PNG_SNIFFER, file, options);
-#line 1074 "PngSupport.c"
-}
-
-
-static gboolean
-png_sniffer_is_png_file (GFile* file,
- GError** error)
-{
- gboolean result = FALSE;
- GFileInputStream* instream = NULL;
- GFileInputStream* _tmp0_;
- guint8* file_lead_sequence = NULL;
- guint8* _tmp2_;
- gint file_lead_sequence_length1;
- gint _file_lead_sequence_size_;
- GFileInputStream* _tmp3_;
- guint8* _tmp4_;
- gint _tmp4__length1;
- GError * _inner_error_ = NULL;
-#line 57 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = g_file_read (file, NULL, &_inner_error_);
-#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- instream = _tmp0_;
-#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1101 "PngSupport.c"
- gboolean _tmp1_ = FALSE;
-#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return _tmp1_;
-#line 1107 "PngSupport.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2_ = g_new0 (guint8, G_N_ELEMENTS (PNG_SNIFFER_MAGIC_SEQUENCE));
-#line 60 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- file_lead_sequence = _tmp2_;
-#line 60 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- file_lead_sequence_length1 = G_N_ELEMENTS (PNG_SNIFFER_MAGIC_SEQUENCE);
-#line 60 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _file_lead_sequence_size_ = file_lead_sequence_length1;
-#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp3_ = instream;
-#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp4_ = file_lead_sequence;
-#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_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 1127 "PngSupport.c"
- gboolean _tmp5_ = FALSE;
-#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- file_lead_sequence = (g_free (file_lead_sequence), NULL);
-#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (instream);
-#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return _tmp5_;
-#line 1137 "PngSupport.c"
- }
- {
- gint i = 0;
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- i = 0;
-#line 1143 "PngSupport.c"
- {
- gboolean _tmp6_ = FALSE;
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp6_ = TRUE;
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- while (TRUE) {
-#line 1150 "PngSupport.c"
- gint _tmp8_;
- guint8* _tmp9_;
- gint _tmp9__length1;
- gint _tmp10_;
- guint8 _tmp11_;
- gint _tmp12_;
- guint8 _tmp13_;
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (!_tmp6_) {
-#line 1160 "PngSupport.c"
- gint _tmp7_;
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp7_ = i;
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- i = _tmp7_ + 1;
-#line 1166 "PngSupport.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp6_ = FALSE;
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp8_ = i;
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (!(_tmp8_ < G_N_ELEMENTS (PNG_SNIFFER_MAGIC_SEQUENCE))) {
-#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- break;
-#line 1176 "PngSupport.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp9_ = file_lead_sequence;
-#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp9__length1 = file_lead_sequence_length1;
-#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp10_ = i;
-#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp11_ = _tmp9_[_tmp10_];
-#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp12_ = i;
-#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp13_ = PNG_SNIFFER_MAGIC_SEQUENCE[_tmp12_];
-#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (_tmp11_ != _tmp13_) {
-#line 66 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = FALSE;
-#line 66 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- file_lead_sequence = (g_free (file_lead_sequence), NULL);
-#line 66 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (instream);
-#line 66 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1200 "PngSupport.c"
- }
- }
- }
- }
-#line 69 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = TRUE;
-#line 69 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- file_lead_sequence = (g_free (file_lead_sequence), NULL);
-#line 69 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (instream);
-#line 69 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1213 "PngSupport.c"
-}
-
-
-static gpointer
-_detected_photo_information_ref0 (gpointer self)
-{
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self ? detected_photo_information_ref (self) : NULL;
-#line 1222 "PngSupport.c"
-}
-
-
-static DetectedPhotoInformation*
-png_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error)
-{
- PngSniffer * self;
- gboolean _vala_is_corrupted = FALSE;
- DetectedPhotoInformation* result = NULL;
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_;
- DetectedPhotoInformation* detected = NULL;
- gboolean _tmp2_ = FALSE;
- DetectedPhotoInformation* _tmp3_;
- DetectedPhotoInformation* _tmp4_;
- DetectedPhotoInformation* _tmp5_ = NULL;
- DetectedPhotoInformation* _tmp6_;
- PhotoFileFormat _tmp7_;
- DetectedPhotoInformation* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 72 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_SNIFFER, PngSniffer);
-#line 74 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _vala_is_corrupted = FALSE;
-#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_sniffer_is_png_file (_tmp1_, &_inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return NULL;
-#line 1259 "PngSupport.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (!_tmp0_) {
-#line 77 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = NULL;
-#line 77 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (is_corrupted) {
-#line 77 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1269 "PngSupport.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1273 "PngSupport.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp3_ = PHOTO_FILE_SNIFFER_CLASS (png_sniffer_parent_class)->sniff (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_GDK_SNIFFER, GdkSniffer), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer), &_tmp2_, &_inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _vala_is_corrupted = _tmp2_;
-#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- detected = _tmp3_;
-#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return NULL;
-#line 1287 "PngSupport.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp4_ = detected;
-#line 80 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (_tmp4_ == NULL) {
-#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = NULL;
-#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (is_corrupted) {
-#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1301 "PngSupport.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1305 "PngSupport.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp6_ = detected;
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp7_ = _tmp6_->file_format;
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (_tmp7_ == PHOTO_FILE_FORMAT_PNG) {
-#line 1313 "PngSupport.c"
- DetectedPhotoInformation* _tmp8_;
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp8_ = detected;
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp5_ = _tmp8_;
-#line 1319 "PngSupport.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp5_ = NULL;
-#line 1323 "PngSupport.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp9_ = _detected_photo_information_ref0 (_tmp5_);
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp9_;
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (is_corrupted) {
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1335 "PngSupport.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1339 "PngSupport.c"
-}
-
-
-static void
-png_sniffer_class_init (PngSnifferClass * klass)
-{
-#line 50 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 50 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) png_sniffer_real_sniff;
-#line 1350 "PngSupport.c"
-}
-
-
-static void
-png_sniffer_instance_init (PngSniffer * self)
-{
-}
-
-
-GType
-png_sniffer_get_type (void)
-{
- static volatile gsize png_sniffer_type_id__volatile = 0;
- if (g_once_init_enter (&png_sniffer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PngSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngSniffer), 0, (GInstanceInitFunc) png_sniffer_instance_init, NULL };
- GType png_sniffer_type_id;
- png_sniffer_type_id = g_type_register_static (TYPE_GDK_SNIFFER, "PngSniffer", &g_define_type_info, 0);
- g_once_init_leave (&png_sniffer_type_id__volatile, png_sniffer_type_id);
- }
- return png_sniffer_type_id__volatile;
-}
-
-
-PngReader*
-png_reader_construct (GType object_type,
- const gchar* filepath)
-{
- PngReader* self = NULL;
-#line 88 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 89 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = (PngReader*) gdk_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_PNG);
-#line 88 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self;
-#line 1385 "PngSupport.c"
-}
-
-
-PngReader*
-png_reader_new (const gchar* filepath)
-{
-#line 88 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return png_reader_construct (TYPE_PNG_READER, filepath);
-#line 1394 "PngSupport.c"
-}
-
-
-static GdkPixbuf*
-png_reader_real_scaled_read (PhotoFileReader* base,
- Dimensions* full,
- Dimensions* scaled,
- GError** error)
-{
- PngReader * self;
- GdkPixbuf* result = NULL;
- GdkPixbuf* _result_ = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- Dimensions _tmp2_;
- gint _tmp3_;
- GError * _inner_error_ = NULL;
-#line 92 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_READER, PngReader);
-#line 92 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (full != NULL, NULL);
-#line 92 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (scaled != NULL, NULL);
-#line 93 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _result_ = NULL;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp2_ = *full;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp3_ = _tmp2_.width;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (_tmp3_ > 9999) {
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = TRUE;
-#line 1428 "PngSupport.c"
- } else {
- Dimensions _tmp4_;
- gint _tmp5_;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp4_ = *full;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp5_ = _tmp4_.height;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = _tmp5_ > 9999;
-#line 1438 "PngSupport.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (_tmp1_) {
-#line 1442 "PngSupport.c"
- gboolean _tmp6_ = FALSE;
- Dimensions _tmp7_;
- gint _tmp8_;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp7_ = *scaled;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp8_ = _tmp7_.width;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (_tmp8_ < 100) {
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp6_ = TRUE;
-#line 1454 "PngSupport.c"
- } else {
- Dimensions _tmp9_;
- gint _tmp10_;
-#line 103 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp9_ = *scaled;
-#line 103 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp10_ = _tmp9_.height;
-#line 103 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp6_ = _tmp10_ < 100;
-#line 1464 "PngSupport.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = _tmp6_;
-#line 1468 "PngSupport.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = FALSE;
-#line 1472 "PngSupport.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (_tmp0_) {
-#line 1476 "PngSupport.c"
- Dimensions prefetch_dimensions = {0};
- Dimensions _tmp11_ = {0};
- GdkPixbuf* _tmp12_ = NULL;
- gchar* _tmp13_;
- gchar* _tmp14_;
- Dimensions _tmp15_;
- gint _tmp16_;
- Dimensions _tmp17_;
- gint _tmp18_;
- GdkPixbuf* _tmp19_;
- GdkPixbuf* _tmp20_;
- GdkPixbuf* _tmp21_;
- GdkPixbuf* _tmp22_;
- Dimensions _tmp23_;
- gint _tmp24_;
- Dimensions _tmp25_;
- gint _tmp26_;
- GdkPixbuf* _tmp27_;
-#line 104 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- dimensions_get_scaled_by_constraint (full, 1000, SCALE_CONSTRAINT_DIMENSIONS, &_tmp11_);
-#line 104 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- prefetch_dimensions = _tmp11_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp13_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp14_ = _tmp13_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp15_ = prefetch_dimensions;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp16_ = _tmp15_.width;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp17_ = prefetch_dimensions;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp18_ = _tmp17_.height;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp19_ = gdk_pixbuf_new_from_file_at_scale (_tmp14_, _tmp16_, _tmp18_, FALSE, &_inner_error_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp20_ = _tmp19_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_free0 (_tmp14_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp12_ = _tmp20_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (_result_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return NULL;
-#line 1527 "PngSupport.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp21_ = _tmp12_;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp12_ = NULL;
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (_result_);
-#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _result_ = _tmp21_;
-#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp22_ = _result_;
-#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp23_ = *scaled;
-#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp24_ = _tmp23_.width;
-#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp25_ = *scaled;
-#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp26_ = _tmp25_.height;
-#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp27_ = gdk_pixbuf_scale_simple (_tmp22_, _tmp24_, _tmp26_, GDK_INTERP_HYPER);
-#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (_result_);
-#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _result_ = _tmp27_;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (_tmp12_);
-#line 1555 "PngSupport.c"
- } else {
- GdkPixbuf* _tmp28_ = NULL;
- gchar* _tmp29_;
- gchar* _tmp30_;
- Dimensions _tmp31_;
- gint _tmp32_;
- Dimensions _tmp33_;
- gint _tmp34_;
- GdkPixbuf* _tmp35_;
- GdkPixbuf* _tmp36_;
- GdkPixbuf* _tmp37_;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp29_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp30_ = _tmp29_;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp31_ = *scaled;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp32_ = _tmp31_.width;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp33_ = *scaled;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp34_ = _tmp33_.height;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp35_ = gdk_pixbuf_new_from_file_at_scale (_tmp30_, _tmp32_, _tmp34_, FALSE, &_inner_error_);
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp36_ = _tmp35_;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_free0 (_tmp30_);
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp28_ = _tmp36_;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (_result_);
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return NULL;
-#line 1595 "PngSupport.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp37_ = _tmp28_;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp28_ = NULL;
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (_result_);
-#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _result_ = _tmp37_;
-#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (_tmp28_);
-#line 1607 "PngSupport.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _result_;
-#line 116 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1613 "PngSupport.c"
-}
-
-
-static void
-png_reader_class_init (PngReaderClass * klass)
-{
-#line 87 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_reader_parent_class = g_type_class_peek_parent (klass);
-#line 87 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) png_reader_real_scaled_read;
-#line 1624 "PngSupport.c"
-}
-
-
-static void
-png_reader_instance_init (PngReader * self)
-{
-}
-
-
-GType
-png_reader_get_type (void)
-{
- static volatile gsize png_reader_type_id__volatile = 0;
- if (g_once_init_enter (&png_reader_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PngReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngReader), 0, (GInstanceInitFunc) png_reader_instance_init, NULL };
- GType png_reader_type_id;
- png_reader_type_id = g_type_register_static (TYPE_GDK_READER, "PngReader", &g_define_type_info, 0);
- g_once_init_leave (&png_reader_type_id__volatile, png_reader_type_id);
- }
- return png_reader_type_id__volatile;
-}
-
-
-PngWriter*
-png_writer_construct (GType object_type,
- const gchar* filepath)
-{
- PngWriter* self = NULL;
-#line 121 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 122 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = (PngWriter*) photo_file_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_PNG);
-#line 121 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self;
-#line 1659 "PngSupport.c"
-}
-
-
-PngWriter*
-png_writer_new (const gchar* filepath)
-{
-#line 121 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return png_writer_construct (TYPE_PNG_WRITER, filepath);
-#line 1668 "PngSupport.c"
-}
-
-
-static void
-png_writer_real_write (PhotoFileWriter* base,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error)
-{
- PngWriter * self;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 125 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_WRITER, PngWriter);
-#line 125 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = _tmp0_;
-#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- gdk_pixbuf_save (pixbuf, _tmp1_, "png", &_inner_error_, "compression", "9", NULL, NULL);
-#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_free0 (_tmp1_);
-#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return;
-#line 1700 "PngSupport.c"
- }
-}
-
-
-static void
-png_writer_class_init (PngWriterClass * klass)
-{
-#line 120 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_writer_parent_class = g_type_class_peek_parent (klass);
-#line 120 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) png_writer_real_write;
-#line 1712 "PngSupport.c"
-}
-
-
-static void
-png_writer_instance_init (PngWriter * self)
-{
-}
-
-
-GType
-png_writer_get_type (void)
-{
- static volatile gsize png_writer_type_id__volatile = 0;
- if (g_once_init_enter (&png_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PngWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngWriter), 0, (GInstanceInitFunc) png_writer_instance_init, NULL };
- GType png_writer_type_id;
- png_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_WRITER, "PngWriter", &g_define_type_info, 0);
- g_once_init_leave (&png_writer_type_id__volatile, png_writer_type_id);
- }
- return png_writer_type_id__volatile;
-}
-
-
-PngMetadataWriter*
-png_metadata_writer_construct (GType object_type,
- const gchar* filepath)
-{
- PngMetadataWriter* self = NULL;
-#line 131 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 132 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = (PngMetadataWriter*) photo_file_metadata_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_PNG);
-#line 131 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self;
-#line 1747 "PngSupport.c"
-}
-
-
-PngMetadataWriter*
-png_metadata_writer_new (const gchar* filepath)
-{
-#line 131 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return png_metadata_writer_construct (TYPE_PNG_METADATA_WRITER, filepath);
-#line 1756 "PngSupport.c"
-}
-
-
-static void
-png_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base,
- PhotoMetadata* metadata,
- GError** error)
-{
- PngMetadataWriter * self;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_METADATA_WRITER, PngMetadataWriter);
-#line 135 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_if_fail (IS_PHOTO_METADATA (metadata));
-#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = _tmp0_;
-#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- photo_metadata_write_to_file (metadata, _tmp1_, &_inner_error_);
-#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _g_object_unref0 (_tmp1_);
-#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return;
-#line 1787 "PngSupport.c"
- }
-}
-
-
-static void
-png_metadata_writer_class_init (PngMetadataWriterClass * klass)
-{
-#line 130 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_metadata_writer_parent_class = g_type_class_peek_parent (klass);
-#line 130 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) png_metadata_writer_real_write_metadata;
-#line 1799 "PngSupport.c"
-}
-
-
-static void
-png_metadata_writer_instance_init (PngMetadataWriter * self)
-{
-}
-
-
-GType
-png_metadata_writer_get_type (void)
-{
- static volatile gsize png_metadata_writer_type_id__volatile = 0;
- if (g_once_init_enter (&png_metadata_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PngMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngMetadataWriter), 0, (GInstanceInitFunc) png_metadata_writer_instance_init, NULL };
- GType png_metadata_writer_type_id;
- png_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_METADATA_WRITER, "PngMetadataWriter", &g_define_type_info, 0);
- g_once_init_leave (&png_metadata_writer_type_id__volatile, png_metadata_writer_type_id);
- }
- return png_metadata_writer_type_id__volatile;
-}
-
-
-void
-png_file_format_driver_init (void)
-{
- PngFileFormatDriver* _tmp0_;
-#line 144 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_driver_new ();
-#line 144 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _photo_file_format_driver_unref0 (png_file_format_driver_instance);
-#line 144 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_driver_instance = _tmp0_;
-#line 145 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_properties_init ();
-#line 1835 "PngSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_driver_ref0 (gpointer self)
-{
-#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self ? photo_file_format_driver_ref (self) : NULL;
-#line 1844 "PngSupport.c"
-}
-
-
-PngFileFormatDriver*
-png_file_format_driver_get_instance (void)
-{
- PngFileFormatDriver* result = NULL;
- PngFileFormatDriver* _tmp0_;
- PngFileFormatDriver* _tmp1_;
-#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_driver_instance;
-#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_);
-#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp1_;
-#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1862 "PngSupport.c"
-}
-
-
-static PhotoFileFormatProperties*
-png_file_format_driver_real_get_properties (PhotoFileFormatDriver* base)
-{
- PngFileFormatDriver * self;
- PhotoFileFormatProperties* result = NULL;
- PngFileFormatProperties* _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 153 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_file_format_properties_get_instance ();
-#line 153 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties);
-#line 153 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1880 "PngSupport.c"
-}
-
-
-static PhotoFileReader*
-png_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PngFileFormatDriver * self;
- PhotoFileReader* result = NULL;
- PngReader* _tmp0_;
-#line 156 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 156 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 157 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_reader_new (filepath);
-#line 157 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader);
-#line 157 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1901 "PngSupport.c"
-}
-
-
-static gboolean
-png_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base)
-{
- PngFileFormatDriver * self;
- gboolean result = FALSE;
-#line 160 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 161 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = TRUE;
-#line 161 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1916 "PngSupport.c"
-}
-
-
-static gboolean
-png_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base)
-{
- PngFileFormatDriver * self;
- gboolean result = FALSE;
-#line 164 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 165 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = TRUE;
-#line 165 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1931 "PngSupport.c"
-}
-
-
-static PhotoFileWriter*
-png_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PngFileFormatDriver * self;
- PhotoFileWriter* result = NULL;
- PngWriter* _tmp0_;
-#line 168 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 168 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 169 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_writer_new (filepath);
-#line 169 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_WRITER, PhotoFileWriter);
-#line 169 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1952 "PngSupport.c"
-}
-
-
-static PhotoFileMetadataWriter*
-png_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PngFileFormatDriver * self;
- PhotoFileMetadataWriter* result = NULL;
- PngMetadataWriter* _tmp0_;
-#line 172 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 172 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 173 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_metadata_writer_new (filepath);
-#line 173 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter);
-#line 173 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1973 "PngSupport.c"
-}
-
-
-static PhotoFileSniffer*
-png_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PngFileFormatDriver * self;
- PhotoFileSniffer* result = NULL;
- PngSniffer* _tmp0_;
-#line 176 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 176 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 177 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = png_sniffer_new (file, options);
-#line 177 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer);
-#line 177 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 1995 "PngSupport.c"
-}
-
-
-static PhotoMetadata*
-png_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base)
-{
- PngFileFormatDriver * self;
- PhotoMetadata* result = NULL;
- PhotoMetadata* _tmp0_;
-#line 180 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 181 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- _tmp0_ = photo_metadata_new ();
-#line 181 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- result = _tmp0_;
-#line 181 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return result;
-#line 2013 "PngSupport.c"
-}
-
-
-PngFileFormatDriver*
-png_file_format_driver_construct (GType object_type)
-{
- PngFileFormatDriver* self = NULL;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = (PngFileFormatDriver*) photo_file_format_driver_construct (object_type);
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return self;
-#line 2025 "PngSupport.c"
-}
-
-
-PngFileFormatDriver*
-png_file_format_driver_new (void)
-{
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- return png_file_format_driver_construct (TYPE_PNG_FILE_FORMAT_DRIVER);
-#line 2034 "PngSupport.c"
-}
-
-
-static void
-png_file_format_driver_class_init (PngFileFormatDriverClass * klass)
-{
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- png_file_format_driver_parent_class = g_type_class_peek_parent (klass);
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->finalize = png_file_format_driver_finalize;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) png_file_format_driver_real_get_properties;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) png_file_format_driver_real_create_reader;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) png_file_format_driver_real_can_write_image;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) png_file_format_driver_real_can_write_metadata;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) png_file_format_driver_real_create_writer;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) png_file_format_driver_real_create_metadata_writer;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) png_file_format_driver_real_create_sniffer;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) png_file_format_driver_real_create_metadata;
-#line 2061 "PngSupport.c"
-}
-
-
-static void
-png_file_format_driver_instance_init (PngFileFormatDriver * self)
-{
-}
-
-
-static void
-png_file_format_driver_finalize (PhotoFileFormatDriver * obj)
-{
- PngFileFormatDriver * self;
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver);
-#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala"
- PHOTO_FILE_FORMAT_DRIVER_CLASS (png_file_format_driver_parent_class)->finalize (obj);
-#line 2079 "PngSupport.c"
-}
-
-
-GType
-png_file_format_driver_get_type (void)
-{
- static volatile gsize png_file_format_driver_type_id__volatile = 0;
- if (g_once_init_enter (&png_file_format_driver_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PngFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngFileFormatDriver), 0, (GInstanceInitFunc) png_file_format_driver_instance_init, NULL };
- GType png_file_format_driver_type_id;
- png_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "PngFileFormatDriver", &g_define_type_info, 0);
- g_once_init_leave (&png_file_format_driver_type_id__volatile, png_file_format_driver_type_id);
- }
- return png_file_format_driver_type_id__volatile;
-}
-
-
-
diff --git a/src/photos/RawSupport.c b/src/photos/RawSupport.c
deleted file mode 100644
index bd5b4b7..0000000
--- a/src/photos/RawSupport.c
+++ /dev/null
@@ -1,3325 +0,0 @@
-/* RawSupport.c generated by valac 0.40.4, the Vala compiler
- * generated from RawSupport.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <glib/gi18n-lib.h>
-#include <libraw/libraw.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <float.h>
-#include <math.h>
-#include <time.h>
-
-
-#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ())
-#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver))
-#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-
-typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver;
-typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass;
-typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties;
-typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass;
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-
-#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
-#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
-#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-
-typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
-typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
-#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
-#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
-#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
-#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-
-typedef struct _PhotoFileSniffer PhotoFileSniffer;
-typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
-
-#define TYPE_RAW_FILE_FORMAT_DRIVER (raw_file_format_driver_get_type ())
-#define RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver))
-#define RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass))
-#define IS_RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_DRIVER))
-#define IS_RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_DRIVER))
-#define RAW_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass))
-
-typedef struct _RawFileFormatDriver RawFileFormatDriver;
-typedef struct _RawFileFormatDriverClass RawFileFormatDriverClass;
-typedef struct _RawFileFormatDriverPrivate RawFileFormatDriverPrivate;
-#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL)))
-
-#define TYPE_RAW_FILE_FORMAT_PROPERTIES (raw_file_format_properties_get_type ())
-#define RAW_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties))
-#define RAW_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatPropertiesClass))
-#define IS_RAW_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES))
-#define IS_RAW_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_PROPERTIES))
-#define RAW_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatPropertiesClass))
-
-typedef struct _RawFileFormatProperties RawFileFormatProperties;
-typedef struct _RawFileFormatPropertiesClass RawFileFormatPropertiesClass;
-
-#define TYPE_RAW_READER (raw_reader_get_type ())
-#define RAW_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_READER, RawReader))
-#define RAW_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_READER, RawReaderClass))
-#define IS_RAW_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_READER))
-#define IS_RAW_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_READER))
-#define RAW_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_READER, RawReaderClass))
-
-typedef struct _RawReader RawReader;
-typedef struct _RawReaderClass RawReaderClass;
-
-#define TYPE_RAW_SNIFFER (raw_sniffer_get_type ())
-#define RAW_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_SNIFFER, RawSniffer))
-#define RAW_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_SNIFFER, RawSnifferClass))
-#define IS_RAW_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_SNIFFER))
-#define IS_RAW_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_SNIFFER))
-#define RAW_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_SNIFFER, RawSnifferClass))
-
-typedef struct _RawSniffer RawSniffer;
-typedef struct _RawSnifferClass RawSnifferClass;
-typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ())
-typedef struct _RawFileFormatPropertiesPrivate RawFileFormatPropertiesPrivate;
-#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL)))
-typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate;
-
-#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
-#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
-#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
-#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
-#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-
-typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
-typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
-typedef struct _RawSnifferPrivate RawSnifferPrivate;
-
-#define GRAW_TYPE_PROCESSOR (graw_processor_get_type ())
-#define GRAW_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAW_TYPE_PROCESSOR, GRawProcessor))
-#define GRAW_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRAW_TYPE_PROCESSOR, GRawProcessorClass))
-#define GRAW_IS_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAW_TYPE_PROCESSOR))
-#define GRAW_IS_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRAW_TYPE_PROCESSOR))
-#define GRAW_PROCESSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAW_TYPE_PROCESSOR, GRawProcessorClass))
-
-typedef struct _GRawProcessor GRawProcessor;
-typedef struct _GRawProcessorClass GRawProcessorClass;
-
-#define GRAW_TYPE_FLIP (graw_flip_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _graw_processor_unref0(var) ((var == NULL) ? NULL : (var = (graw_processor_unref (var), NULL)))
-#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
-#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
-typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate;
-typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate;
-typedef struct _RawReaderPrivate RawReaderPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define GRAW_TYPE_PROCESSED_IMAGE (graw_processed_image_get_type ())
-#define GRAW_PROCESSED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImage))
-#define GRAW_PROCESSED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImageClass))
-#define GRAW_IS_PROCESSED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAW_TYPE_PROCESSED_IMAGE))
-#define GRAW_IS_PROCESSED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRAW_TYPE_PROCESSED_IMAGE))
-#define GRAW_PROCESSED_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImageClass))
-
-typedef struct _GRawProcessedImage GRawProcessedImage;
-typedef struct _GRawProcessedImageClass GRawProcessedImageClass;
-#define _graw_processed_image_unref0(var) ((var == NULL) ? NULL : (var = (graw_processed_image_unref (var), NULL)))
-
-#define PHOTO_FILE_READER_TYPE_ROLE (photo_file_reader_role_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
-#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
-#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
-#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
-#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
-
-typedef struct _BackingPhotoRow BackingPhotoRow;
-typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
-#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL)))
-typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
-
-#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
-typedef struct _BackingPhotoID BackingPhotoID;
-
-#define TYPE_ORIENTATION (orientation_get_type ())
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoFileFormatDriver {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatDriverPrivate * priv;
-};
-
-struct _PhotoFileFormatDriverClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatDriver *self);
- PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self);
- PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self);
- gboolean (*can_write_image) (PhotoFileFormatDriver* self);
- gboolean (*can_write_metadata) (PhotoFileFormatDriver* self);
- PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
-};
-
-struct _RawFileFormatDriver {
- PhotoFileFormatDriver parent_instance;
- RawFileFormatDriverPrivate * priv;
-};
-
-struct _RawFileFormatDriverClass {
- PhotoFileFormatDriverClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000
-} PhotoFileFormatFlags;
-
-struct _PhotoFileFormatProperties {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatPropertiesPrivate * priv;
-};
-
-struct _PhotoFileFormatPropertiesClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatProperties *self);
- PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self);
- PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self);
- gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext);
- gchar* (*get_default_extension) (PhotoFileFormatProperties* self);
- gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self);
- gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self);
-};
-
-struct _RawFileFormatProperties {
- PhotoFileFormatProperties parent_instance;
- RawFileFormatPropertiesPrivate * priv;
-};
-
-struct _RawFileFormatPropertiesClass {
- PhotoFileFormatPropertiesClass parent_class;
-};
-
-struct _PhotoFileSniffer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileSnifferPrivate * priv;
- GFile* file;
- PhotoFileSnifferOptions options;
- gboolean calc_md5;
-};
-
-struct _PhotoFileSnifferClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileSniffer *self);
- DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error);
-};
-
-struct _RawSniffer {
- PhotoFileSniffer parent_instance;
- RawSnifferPrivate * priv;
-};
-
-struct _RawSnifferClass {
- PhotoFileSnifferClass parent_class;
-};
-
-typedef enum {
- GRAW_FLIP_FROM_SOURCE = -1,
- GRAW_FLIP_NONE = 0,
- GRAW_FLIP_UPSIDE_DOWN = 3,
- GRAW_FLIP_COUNTERCLOCKWISE = 5,
- GRAW_FLIP_CLOCKWISE = 6
-} GRawFlip;
-
-typedef enum {
- GRAW_EXCEPTION_UNSPECIFIED,
- GRAW_EXCEPTION_UNSUPPORTED_FILE,
- GRAW_EXCEPTION_NONEXISTANT_IMAGE,
- GRAW_EXCEPTION_OUT_OF_ORDER_CALL,
- GRAW_EXCEPTION_NO_THUMBNAIL,
- GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL,
- GRAW_EXCEPTION_OUT_OF_MEMORY,
- GRAW_EXCEPTION_DATA_ERROR,
- GRAW_EXCEPTION_IO_ERROR,
- GRAW_EXCEPTION_CANCELLED_BY_CALLBACK,
- GRAW_EXCEPTION_BAD_CROP,
- GRAW_EXCEPTION_SYSTEM_ERROR
-} GRawException;
-#define GRAW_EXCEPTION graw_exception_quark ()
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _DetectedPhotoInformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DetectedPhotoInformationPrivate * priv;
- PhotoFileFormat file_format;
- PhotoMetadata* metadata;
- gchar* md5;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* format_name;
- Dimensions image_dim;
- GdkColorspace colorspace;
- gint channels;
- gint bits_per_channel;
-};
-
-struct _DetectedPhotoInformationClass {
- GTypeClass parent_class;
- void (*finalize) (DetectedPhotoInformation *self);
-};
-
-struct _PhotoFileAdapter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileAdapterPrivate * priv;
-};
-
-struct _PhotoFileAdapterClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileAdapter *self);
-};
-
-struct _PhotoFileReader {
- PhotoFileAdapter parent_instance;
- PhotoFileReaderPrivate * priv;
-};
-
-struct _PhotoFileReaderClass {
- PhotoFileAdapterClass parent_class;
- PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error);
-};
-
-struct _RawReader {
- PhotoFileReader parent_instance;
- RawReaderPrivate * priv;
-};
-
-struct _RawReaderClass {
- PhotoFileReaderClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_READER_ROLE_DEFAULT,
- PHOTO_FILE_READER_ROLE_THUMBNAIL
-} PhotoFileReaderRole;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _BackingPhotoID {
- gint64 id;
-};
-
-typedef enum {
- ORIENTATION_MIN = 1,
- ORIENTATION_TOP_LEFT = 1,
- ORIENTATION_TOP_RIGHT = 2,
- ORIENTATION_BOTTOM_RIGHT = 3,
- ORIENTATION_BOTTOM_LEFT = 4,
- ORIENTATION_LEFT_TOP = 5,
- ORIENTATION_RIGHT_TOP = 6,
- ORIENTATION_RIGHT_BOTTOM = 7,
- ORIENTATION_LEFT_BOTTOM = 8,
- ORIENTATION_MAX = 8
-} Orientation;
-
-struct _BackingPhotoRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackingPhotoRowPrivate * priv;
- BackingPhotoID id;
- time_t time_created;
- gchar* filepath;
- gint64 filesize;
- time_t timestamp;
- PhotoFileFormat file_format;
- Dimensions dim;
- Orientation original_orientation;
-};
-
-struct _BackingPhotoRowClass {
- GTypeClass parent_class;
- void (*finalize) (BackingPhotoRow *self);
-};
-
-
-static gpointer raw_file_format_driver_parent_class = NULL;
-static RawFileFormatDriver* raw_file_format_driver_instance;
-static RawFileFormatDriver* raw_file_format_driver_instance = NULL;
-static gpointer raw_file_format_properties_parent_class = NULL;
-static gchar** raw_file_format_properties_KNOWN_EXTENSIONS;
-static gint raw_file_format_properties_KNOWN_EXTENSIONS_length1;
-static gchar** raw_file_format_properties_KNOWN_EXTENSIONS = NULL;
-static gint raw_file_format_properties_KNOWN_EXTENSIONS_length1 = 0;
-static gint _raw_file_format_properties_KNOWN_EXTENSIONS_size_ = 0;
-static gchar** raw_file_format_properties_KNOWN_MIME_TYPES;
-static gint raw_file_format_properties_KNOWN_MIME_TYPES_length1;
-static gchar** raw_file_format_properties_KNOWN_MIME_TYPES = NULL;
-static gint raw_file_format_properties_KNOWN_MIME_TYPES_length1 = 0;
-static gint _raw_file_format_properties_KNOWN_MIME_TYPES_size_ = 0;
-static RawFileFormatProperties* raw_file_format_properties_instance;
-static RawFileFormatProperties* raw_file_format_properties_instance = NULL;
-static gpointer raw_sniffer_parent_class = NULL;
-static gpointer raw_reader_parent_class = NULL;
-
-gpointer photo_file_format_driver_ref (gpointer instance);
-void photo_file_format_driver_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_driver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_driver (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_driver (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_driver (const GValue* value);
-GType photo_file_format_driver_get_type (void) G_GNUC_CONST;
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_properties (const GValue* value);
-GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-gpointer photo_file_sniffer_ref (gpointer instance);
-void photo_file_sniffer_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_sniffer (GValue* value,
- gpointer v_object);
-void value_take_photo_file_sniffer (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_sniffer (const GValue* value);
-GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
-GType raw_file_format_driver_get_type (void) G_GNUC_CONST;
-void raw_file_format_driver_init (void);
-RawFileFormatDriver* raw_file_format_driver_new (void);
-RawFileFormatDriver* raw_file_format_driver_construct (GType object_type);
-void raw_file_format_properties_init (void);
-RawFileFormatDriver* raw_file_format_driver_get_instance (void);
-static PhotoFileFormatProperties* raw_file_format_driver_real_get_properties (PhotoFileFormatDriver* base);
-GType raw_file_format_properties_get_type (void) G_GNUC_CONST;
-RawFileFormatProperties* raw_file_format_properties_get_instance (void);
-static PhotoFileReader* raw_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath);
-RawReader* raw_reader_new (const gchar* filepath);
-RawReader* raw_reader_construct (GType object_type,
- const gchar* filepath);
-GType raw_reader_get_type (void) G_GNUC_CONST;
-static PhotoMetadata* raw_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base);
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-static gboolean raw_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base);
-static gboolean raw_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base);
-static PhotoFileWriter* raw_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-static PhotoFileMetadataWriter* raw_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-static PhotoFileSniffer* raw_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options);
-RawSniffer* raw_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options);
-RawSniffer* raw_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-GType raw_sniffer_get_type (void) G_GNUC_CONST;
-PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type);
-static void raw_file_format_driver_finalize (PhotoFileFormatDriver * obj);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType photo_file_format_flags_get_type (void) G_GNUC_CONST;
-RawFileFormatProperties* raw_file_format_properties_new (void);
-RawFileFormatProperties* raw_file_format_properties_construct (GType object_type);
-static PhotoFileFormat raw_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base);
-static gchar* raw_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base);
-static PhotoFileFormatFlags raw_file_format_properties_real_get_flags (PhotoFileFormatProperties* base);
-static gchar* raw_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base);
-static gchar** raw_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup10 (gchar** self,
- int length);
-static gchar* raw_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base);
-static gchar** raw_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup11 (gchar** self,
- int length);
-PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type);
-static void raw_file_format_properties_finalize (PhotoFileFormatProperties * obj);
-gpointer detected_photo_information_ref (gpointer instance);
-void detected_photo_information_unref (gpointer instance);
-GParamSpec* param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_detected_photo_information (GValue* value,
- gpointer v_object);
-void value_take_detected_photo_information (GValue* value,
- gpointer v_object);
-gpointer value_get_detected_photo_information (const GValue* value);
-GType detected_photo_information_get_type (void) G_GNUC_CONST;
-PhotoFileSniffer* photo_file_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error);
-DetectedPhotoInformation* detected_photo_information_new (void);
-DetectedPhotoInformation* detected_photo_information_construct (GType object_type);
-gpointer graw_processor_ref (gpointer instance);
-void graw_processor_unref (gpointer instance);
-GParamSpec* graw_param_spec_processor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void graw_value_set_processor (GValue* value,
- gpointer v_object);
-void graw_value_take_processor (GValue* value,
- gpointer v_object);
-gpointer graw_value_get_processor (const GValue* value);
-GType graw_processor_get_type (void) G_GNUC_CONST;
-GRawProcessor* graw_processor_new (enum LibRaw_constructor_flags options);
-GRawProcessor* graw_processor_construct (GType object_type,
- enum LibRaw_constructor_flags options);
-libraw_output_params_t* graw_processor_get_output_params (GRawProcessor* self);
-GType graw_flip_get_type (void) G_GNUC_CONST;
-GQuark graw_exception_quark (void);
-void graw_processor_open_file (GRawProcessor* self,
- const gchar* filename,
- GError** error);
-void graw_processor_unpack (GRawProcessor* self,
- GError** error);
-void graw_processor_adjust_sizes_info_only (GRawProcessor* self,
- GError** error);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-libraw_image_sizes_t graw_processor_get_sizes (GRawProcessor* self);
-void dimensions_init (Dimensions *self,
- gint width,
- gint height);
-PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self,
- GError** error);
-gchar* photo_metadata_exif_hash (PhotoMetadata* self);
-gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self);
-gchar* md5_file (GFile* file,
- GError** error);
-PhotoFileReader* photo_file_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static PhotoMetadata* raw_reader_real_read_metadata (PhotoFileReader* base,
- GError** error);
-void media_metadata_read_from_file (MediaMetadata* self,
- GFile* file,
- GError** error);
-GFile* photo_file_adapter_get_file (PhotoFileAdapter* self);
-static GdkPixbuf* raw_reader_real_unscaled_read (PhotoFileReader* base,
- GError** error);
-void graw_processor_configure_for_rgb_display (GRawProcessor* self,
- gboolean half_size);
-gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
-void graw_processor_process (GRawProcessor* self,
- GError** error);
-gpointer graw_processed_image_ref (gpointer instance);
-void graw_processed_image_unref (gpointer instance);
-GParamSpec* graw_param_spec_processed_image (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void graw_value_set_processed_image (GValue* value,
- gpointer v_object);
-void graw_value_take_processed_image (GValue* value,
- gpointer v_object);
-gpointer graw_value_get_processed_image (const GValue* value);
-GType graw_processed_image_get_type (void) G_GNUC_CONST;
-GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self,
- GError** error);
-GdkPixbuf* graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self);
-static GdkPixbuf* raw_reader_real_scaled_read (PhotoFileReader* base,
- Dimensions* full,
- Dimensions* scaled,
- GError** error);
-GType photo_file_reader_role_get_type (void) G_GNUC_CONST;
-PhotoFileReaderRole photo_file_reader_get_role (PhotoFileReader* self);
-void graw_processor_unpack_thumb (GRawProcessor* self,
- GError** error);
-GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self,
- GError** error);
-GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* resized,
- GdkInterpType interp);
-GType raw_developer_get_type (void) G_GNUC_CONST;
-RawDeveloper* raw_developer_as_array (int* result_length1);
-gchar* raw_developer_to_string (RawDeveloper self);
-RawDeveloper raw_developer_from_string (const gchar* value);
-gchar* raw_developer_get_label (RawDeveloper self);
-gboolean raw_developer_is_equivalent (RawDeveloper self,
- RawDeveloper d);
-gpointer backing_photo_row_ref (gpointer instance);
-void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_backing_photo_row (GValue* value,
- gpointer v_object);
-void value_take_backing_photo_row (GValue* value,
- gpointer v_object);
-gpointer value_get_backing_photo_row (const GValue* value);
-GType backing_photo_row_get_type (void) G_GNUC_CONST;
-BackingPhotoRow* raw_developer_create_backing_row_for_development (RawDeveloper self,
- const gchar* raw_filepath,
- const gchar* camera_development_filename,
- GError** error);
-BackingPhotoRow* backing_photo_row_new (void);
-BackingPhotoRow* backing_photo_row_construct (GType object_type);
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-gchar* library_files_convert_basename (const gchar* basename);
-GFile* generate_unique_file (GFile* dir,
- const gchar* basename,
- gboolean* collision,
- GError** error);
-gboolean claim_file (GFile* file,
- GError** error);
-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);
-GType orientation_get_type (void) G_GNUC_CONST;
-
-
-void
-raw_file_format_driver_init (void)
-{
- RawFileFormatDriver* _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_file_format_driver_new ();
-#line 11 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _photo_file_format_driver_unref0 (raw_file_format_driver_instance);
-#line 11 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_driver_instance = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_properties_init ();
-#line 766 "RawSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_driver_ref0 (gpointer self)
-{
-#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return self ? photo_file_format_driver_ref (self) : NULL;
-#line 775 "RawSupport.c"
-}
-
-
-RawFileFormatDriver*
-raw_file_format_driver_get_instance (void)
-{
- RawFileFormatDriver* result = NULL;
- RawFileFormatDriver* _tmp0_;
- RawFileFormatDriver* _tmp1_;
-#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_file_format_driver_instance;
-#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_);
-#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp1_;
-#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 793 "RawSupport.c"
-}
-
-
-static PhotoFileFormatProperties*
-raw_file_format_driver_real_get_properties (PhotoFileFormatDriver* base)
-{
- RawFileFormatDriver * self;
- PhotoFileFormatProperties* result = NULL;
- RawFileFormatProperties* _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 20 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_file_format_properties_get_instance ();
-#line 20 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties);
-#line 20 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 811 "RawSupport.c"
-}
-
-
-static PhotoFileReader*
-raw_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- RawFileFormatDriver * self;
- PhotoFileReader* result = NULL;
- RawReader* _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 23 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 24 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_reader_new (filepath);
-#line 24 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader);
-#line 24 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 832 "RawSupport.c"
-}
-
-
-static PhotoMetadata*
-raw_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base)
-{
- RawFileFormatDriver * self;
- PhotoMetadata* result = NULL;
- PhotoMetadata* _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 28 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = photo_metadata_new ();
-#line 28 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 850 "RawSupport.c"
-}
-
-
-static gboolean
-raw_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base)
-{
- RawFileFormatDriver * self;
- gboolean result = FALSE;
-#line 31 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 32 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = FALSE;
-#line 32 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 865 "RawSupport.c"
-}
-
-
-static gboolean
-raw_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base)
-{
- RawFileFormatDriver * self;
- gboolean result = FALSE;
-#line 35 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 36 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = FALSE;
-#line 36 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 880 "RawSupport.c"
-}
-
-
-static PhotoFileWriter*
-raw_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- RawFileFormatDriver * self;
- PhotoFileWriter* result = NULL;
-#line 39 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 39 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 40 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = NULL;
-#line 40 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 898 "RawSupport.c"
-}
-
-
-static PhotoFileMetadataWriter*
-raw_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- RawFileFormatDriver * self;
- PhotoFileMetadataWriter* result = NULL;
-#line 43 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 43 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 44 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = NULL;
-#line 44 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 916 "RawSupport.c"
-}
-
-
-static PhotoFileSniffer*
-raw_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- RawFileFormatDriver * self;
- PhotoFileSniffer* result = NULL;
- RawSniffer* _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 47 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 48 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_sniffer_new (file, options);
-#line 48 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer);
-#line 48 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 938 "RawSupport.c"
-}
-
-
-RawFileFormatDriver*
-raw_file_format_driver_construct (GType object_type)
-{
- RawFileFormatDriver* self = NULL;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = (RawFileFormatDriver*) photo_file_format_driver_construct (object_type);
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return self;
-#line 950 "RawSupport.c"
-}
-
-
-RawFileFormatDriver*
-raw_file_format_driver_new (void)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return raw_file_format_driver_construct (TYPE_RAW_FILE_FORMAT_DRIVER);
-#line 959 "RawSupport.c"
-}
-
-
-static void
-raw_file_format_driver_class_init (RawFileFormatDriverClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_driver_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->finalize = raw_file_format_driver_finalize;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) raw_file_format_driver_real_get_properties;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) raw_file_format_driver_real_create_reader;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) raw_file_format_driver_real_create_metadata;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) raw_file_format_driver_real_can_write_image;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) raw_file_format_driver_real_can_write_metadata;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) raw_file_format_driver_real_create_writer;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) raw_file_format_driver_real_create_metadata_writer;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) raw_file_format_driver_real_create_sniffer;
-#line 986 "RawSupport.c"
-}
-
-
-static void
-raw_file_format_driver_instance_init (RawFileFormatDriver * self)
-{
-}
-
-
-static void
-raw_file_format_driver_finalize (PhotoFileFormatDriver * obj)
-{
- RawFileFormatDriver * self;
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver);
-#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- PHOTO_FILE_FORMAT_DRIVER_CLASS (raw_file_format_driver_parent_class)->finalize (obj);
-#line 1004 "RawSupport.c"
-}
-
-
-GType
-raw_file_format_driver_get_type (void)
-{
- static volatile gsize raw_file_format_driver_type_id__volatile = 0;
- if (g_once_init_enter (&raw_file_format_driver_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RawFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raw_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RawFileFormatDriver), 0, (GInstanceInitFunc) raw_file_format_driver_instance_init, NULL };
- GType raw_file_format_driver_type_id;
- raw_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "RawFileFormatDriver", &g_define_type_info, 0);
- g_once_init_leave (&raw_file_format_driver_type_id__volatile, raw_file_format_driver_type_id);
- }
- return raw_file_format_driver_type_id__volatile;
-}
-
-
-void
-raw_file_format_properties_init (void)
-{
- RawFileFormatProperties* _tmp0_;
-#line 122 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_file_format_properties_new ();
-#line 122 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _photo_file_format_properties_unref0 (raw_file_format_properties_instance);
-#line 122 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_properties_instance = _tmp0_;
-#line 1032 "RawSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_properties_ref0 (gpointer self)
-{
-#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return self ? photo_file_format_properties_ref (self) : NULL;
-#line 1041 "RawSupport.c"
-}
-
-
-RawFileFormatProperties*
-raw_file_format_properties_get_instance (void)
-{
- RawFileFormatProperties* result = NULL;
- RawFileFormatProperties* _tmp0_;
- RawFileFormatProperties* _tmp1_;
-#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_file_format_properties_instance;
-#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_);
-#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp1_;
-#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1059 "RawSupport.c"
-}
-
-
-static PhotoFileFormat
-raw_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base)
-{
- RawFileFormatProperties * self;
- PhotoFileFormat result = 0;
-#line 129 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties);
-#line 130 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = PHOTO_FILE_FORMAT_RAW;
-#line 130 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1074 "RawSupport.c"
-}
-
-
-static gchar*
-raw_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base)
-{
- RawFileFormatProperties * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 133 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties);
-#line 134 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = g_strdup (_ ("RAW"));
-#line 134 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp0_;
-#line 134 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1092 "RawSupport.c"
-}
-
-
-static PhotoFileFormatFlags
-raw_file_format_properties_real_get_flags (PhotoFileFormatProperties* base)
-{
- RawFileFormatProperties * self;
- PhotoFileFormatFlags result = 0;
-#line 137 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties);
-#line 138 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = PHOTO_FILE_FORMAT_FLAGS_NONE;
-#line 138 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1107 "RawSupport.c"
-}
-
-
-static gchar*
-raw_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base)
-{
- RawFileFormatProperties * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 141 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties);
-#line 145 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = g_strdup ("raw");
-#line 145 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp0_;
-#line 145 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1125 "RawSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup10 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- for (i = 0; i < length; i++) {
-#line 1139 "RawSupport.c"
- gchar* _tmp0_;
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result[i] = _tmp0_;
-#line 1145 "RawSupport.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1149 "RawSupport.c"
-}
-
-
-static gchar**
-raw_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- RawFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 148 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties);
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_file_format_properties_KNOWN_EXTENSIONS;
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0__length1 = raw_file_format_properties_KNOWN_EXTENSIONS_length1;
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup10 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = _tmp1_;
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (result_length1) {
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 1183 "RawSupport.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp2_;
-#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1189 "RawSupport.c"
-}
-
-
-static gchar*
-raw_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base)
-{
- RawFileFormatProperties * self;
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 152 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties);
-#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_file_format_properties_KNOWN_MIME_TYPES;
-#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0__length1 = raw_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = _tmp0_[0];
-#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp2_;
-#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1216 "RawSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup11 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- for (i = 0; i < length; i++) {
-#line 1230 "RawSupport.c"
- gchar* _tmp0_;
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result[i] = _tmp0_;
-#line 1236 "RawSupport.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1240 "RawSupport.c"
-}
-
-
-static gchar**
-raw_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- RawFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 156 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties);
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = raw_file_format_properties_KNOWN_MIME_TYPES;
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0__length1 = raw_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup11 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = _tmp1_;
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (result_length1) {
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 1274 "RawSupport.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp2_;
-#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 1280 "RawSupport.c"
-}
-
-
-RawFileFormatProperties*
-raw_file_format_properties_construct (GType object_type)
-{
- RawFileFormatProperties* self = NULL;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = (RawFileFormatProperties*) photo_file_format_properties_construct (object_type);
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return self;
-#line 1292 "RawSupport.c"
-}
-
-
-RawFileFormatProperties*
-raw_file_format_properties_new (void)
-{
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return raw_file_format_properties_construct (TYPE_RAW_FILE_FORMAT_PROPERTIES);
-#line 1301 "RawSupport.c"
-}
-
-
-static void
-raw_file_format_properties_class_init (RawFileFormatPropertiesClass * klass)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
- gchar** _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- gchar* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_;
- gchar* _tmp56_;
- gchar* _tmp57_;
- gchar* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- gchar* _tmp65_;
- gchar* _tmp66_;
- gchar* _tmp67_;
- gchar* _tmp68_;
- gchar* _tmp69_;
- gchar* _tmp70_;
- gchar* _tmp71_;
- gchar* _tmp72_;
- gchar* _tmp73_;
- gchar* _tmp74_;
- gchar* _tmp75_;
- gchar* _tmp76_;
- gchar* _tmp77_;
- gchar* _tmp78_;
- gchar* _tmp79_;
- gchar* _tmp80_;
- gchar* _tmp81_;
- gchar* _tmp82_;
- gchar* _tmp83_;
- gchar* _tmp84_;
- gchar* _tmp85_;
- gchar* _tmp86_;
- gchar* _tmp87_;
- gchar** _tmp88_;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_properties_parent_class = g_type_class_peek_parent (klass);
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->finalize = raw_file_format_properties_finalize;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_file_format;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_user_visible_name;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_flags;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_default_extension;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) raw_file_format_properties_real_get_known_extensions;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_default_mime_type;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) raw_file_format_properties_real_get_mime_types;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = g_strdup ("3fr");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = g_strdup ("arw");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = g_strdup ("srf");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp3_ = g_strdup ("sr2");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp4_ = g_strdup ("bay");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp5_ = g_strdup ("crw");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp6_ = g_strdup ("cr2");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp7_ = g_strdup ("cap");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp8_ = g_strdup ("iiq");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp9_ = g_strdup ("eip");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp10_ = g_strdup ("dcs");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp11_ = g_strdup ("dcr");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp12_ = g_strdup ("drf");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp13_ = g_strdup ("k25");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp14_ = g_strdup ("kdc");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp15_ = g_strdup ("dng");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp16_ = g_strdup ("erf");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp17_ = g_strdup ("fff");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp18_ = g_strdup ("mef");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp19_ = g_strdup ("mos");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp20_ = g_strdup ("mrw");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp21_ = g_strdup ("nef");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp22_ = g_strdup ("nrw");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp23_ = g_strdup ("orf");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp24_ = g_strdup ("ptx");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp25_ = g_strdup ("pef");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp26_ = g_strdup ("pxn");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp27_ = g_strdup ("r3d");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp28_ = g_strdup ("raf");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp29_ = g_strdup ("raw");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp30_ = g_strdup ("rw2");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp31_ = g_strdup ("raw");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp32_ = g_strdup ("rwl");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp33_ = g_strdup ("rwz");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp34_ = g_strdup ("x3f");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp35_ = g_strdup ("srw");
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_ = g_new0 (gchar*, 36 + 1);
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[0] = _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[1] = _tmp1_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[2] = _tmp2_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[3] = _tmp3_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[4] = _tmp4_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[5] = _tmp5_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[6] = _tmp6_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[7] = _tmp7_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[8] = _tmp8_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[9] = _tmp9_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[10] = _tmp10_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[11] = _tmp11_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[12] = _tmp12_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[13] = _tmp13_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[14] = _tmp14_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[15] = _tmp15_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[16] = _tmp16_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[17] = _tmp17_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[18] = _tmp18_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[19] = _tmp19_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[20] = _tmp20_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[21] = _tmp21_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[22] = _tmp22_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[23] = _tmp23_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[24] = _tmp24_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[25] = _tmp25_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[26] = _tmp26_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[27] = _tmp27_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[28] = _tmp28_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[29] = _tmp29_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[30] = _tmp30_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[31] = _tmp31_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[32] = _tmp32_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[33] = _tmp33_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[34] = _tmp34_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_[35] = _tmp35_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_properties_KNOWN_EXTENSIONS = _tmp36_;
-#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_properties_KNOWN_EXTENSIONS_length1 = 36;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp37_ = g_strdup ("image/x-dcraw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp38_ = g_strdup ("image/x-canon-cr2");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp39_ = g_strdup ("image/x-canon-crw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp40_ = g_strdup ("image/x-fuji-raf");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp41_ = g_strdup ("image/x-adobe-dng");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp42_ = g_strdup ("image/x-panasonic-raw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp43_ = g_strdup ("image/x-raw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp44_ = g_strdup ("image/x-minolta-mrw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp45_ = g_strdup ("image/x-nikon-nef");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp46_ = g_strdup ("image/x-olympus-orf");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp47_ = g_strdup ("image/x-pentax-pef");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp48_ = g_strdup ("image/x-sony-arw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp49_ = g_strdup ("image/x-sony-srf");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp50_ = g_strdup ("image/x-sony-sr2");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp51_ = g_strdup ("image/x-samsung-raw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp52_ = g_strdup ("image/x-3fr");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp53_ = g_strdup ("image/x-arw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp54_ = g_strdup ("image/x-srf");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp55_ = g_strdup ("image/x-sr2");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp56_ = g_strdup ("image/x-bay");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp57_ = g_strdup ("image/x-crw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp58_ = g_strdup ("image/x-cr2");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp59_ = g_strdup ("image/x-cap");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp60_ = g_strdup ("image/x-iiq");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp61_ = g_strdup ("image/x-eip");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp62_ = g_strdup ("image/x-dcs");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp63_ = g_strdup ("image/x-dcr");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp64_ = g_strdup ("image/x-drf");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp65_ = g_strdup ("image/x-k25");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp66_ = g_strdup ("image/x-kdc");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp67_ = g_strdup ("image/x-dng");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp68_ = g_strdup ("image/x-erf");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp69_ = g_strdup ("image/x-fff");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp70_ = g_strdup ("image/x-mef");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp71_ = g_strdup ("image/x-mos");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp72_ = g_strdup ("image/x-mrw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp73_ = g_strdup ("image/x-nef");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp74_ = g_strdup ("image/x-nrw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp75_ = g_strdup ("image/x-orf");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp76_ = g_strdup ("image/x-ptx");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp77_ = g_strdup ("image/x-pef");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp78_ = g_strdup ("image/x-pxn");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp79_ = g_strdup ("image/x-r3d");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp80_ = g_strdup ("image/x-raf");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp81_ = g_strdup ("image/x-raw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp82_ = g_strdup ("image/x-rw2");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp83_ = g_strdup ("image/x-raw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp84_ = g_strdup ("image/x-rwl");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp85_ = g_strdup ("image/x-rwz");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp86_ = g_strdup ("image/x-x3f");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp87_ = g_strdup ("image/x-srw");
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_ = g_new0 (gchar*, 51 + 1);
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[0] = _tmp37_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[1] = _tmp38_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[2] = _tmp39_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[3] = _tmp40_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[4] = _tmp41_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[5] = _tmp42_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[6] = _tmp43_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[7] = _tmp44_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[8] = _tmp45_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[9] = _tmp46_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[10] = _tmp47_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[11] = _tmp48_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[12] = _tmp49_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[13] = _tmp50_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[14] = _tmp51_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[15] = _tmp52_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[16] = _tmp53_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[17] = _tmp54_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[18] = _tmp55_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[19] = _tmp56_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[20] = _tmp57_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[21] = _tmp58_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[22] = _tmp59_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[23] = _tmp60_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[24] = _tmp61_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[25] = _tmp62_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[26] = _tmp63_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[27] = _tmp64_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[28] = _tmp65_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[29] = _tmp66_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[30] = _tmp67_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[31] = _tmp68_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[32] = _tmp69_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[33] = _tmp70_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[34] = _tmp71_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[35] = _tmp72_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[36] = _tmp73_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[37] = _tmp74_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[38] = _tmp75_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[39] = _tmp76_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[40] = _tmp77_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[41] = _tmp78_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[42] = _tmp79_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[43] = _tmp80_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[44] = _tmp81_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[45] = _tmp82_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[46] = _tmp83_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[47] = _tmp84_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[48] = _tmp85_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[49] = _tmp86_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp88_[50] = _tmp87_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_properties_KNOWN_MIME_TYPES = _tmp88_;
-#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_file_format_properties_KNOWN_MIME_TYPES_length1 = 51;
-#line 1775 "RawSupport.c"
-}
-
-
-static void
-raw_file_format_properties_instance_init (RawFileFormatProperties * self)
-{
-}
-
-
-static void
-raw_file_format_properties_finalize (PhotoFileFormatProperties * obj)
-{
- RawFileFormatProperties * self;
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties);
-#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- PHOTO_FILE_FORMAT_PROPERTIES_CLASS (raw_file_format_properties_parent_class)->finalize (obj);
-#line 1793 "RawSupport.c"
-}
-
-
-GType
-raw_file_format_properties_get_type (void)
-{
- static volatile gsize raw_file_format_properties_type_id__volatile = 0;
- if (g_once_init_enter (&raw_file_format_properties_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RawFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raw_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RawFileFormatProperties), 0, (GInstanceInitFunc) raw_file_format_properties_instance_init, NULL };
- GType raw_file_format_properties_type_id;
- raw_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "RawFileFormatProperties", &g_define_type_info, 0);
- g_once_init_leave (&raw_file_format_properties_type_id__volatile, raw_file_format_properties_type_id);
- }
- return raw_file_format_properties_type_id__volatile;
-}
-
-
-RawSniffer*
-raw_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- RawSniffer* self = NULL;
-#line 162 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 163 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = (RawSniffer*) photo_file_sniffer_construct (object_type, file, options);
-#line 162 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return self;
-#line 1823 "RawSupport.c"
-}
-
-
-RawSniffer*
-raw_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options)
-{
-#line 162 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return raw_sniffer_construct (TYPE_RAW_SNIFFER, file, options);
-#line 1833 "RawSupport.c"
-}
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return self ? g_error_copy (self) : NULL;
-#line 1842 "RawSupport.c"
-}
-
-
-static DetectedPhotoInformation*
-raw_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error)
-{
- RawSniffer * self;
- gboolean _vala_is_corrupted = FALSE;
- DetectedPhotoInformation* result = NULL;
- DetectedPhotoInformation* detected = NULL;
- DetectedPhotoInformation* _tmp0_;
- GRawProcessor* processor = NULL;
- GRawProcessor* _tmp1_;
- GRawProcessor* _tmp2_;
- libraw_output_params_t* _tmp3_;
- libraw_output_params_t* _tmp4_;
- DetectedPhotoInformation* _tmp14_;
- GRawProcessor* _tmp15_;
- gushort _tmp16_;
- GRawProcessor* _tmp17_;
- gushort _tmp18_;
- DetectedPhotoInformation* _tmp19_;
- DetectedPhotoInformation* _tmp20_;
- DetectedPhotoInformation* _tmp21_;
- RawReader* reader = NULL;
- GFile* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- RawReader* _tmp25_;
- RawReader* _tmp26_;
- DetectedPhotoInformation* _tmp32_;
- PhotoMetadata* _tmp33_;
- gboolean _tmp42_;
- DetectedPhotoInformation* _tmp48_;
- gchar* _tmp49_;
- DetectedPhotoInformation* _tmp50_;
- GError * _inner_error_ = NULL;
-#line 166 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_SNIFFER, RawSniffer);
-#line 168 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _vala_is_corrupted = FALSE;
-#line 170 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = detected_photo_information_new ();
-#line 170 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- detected = _tmp0_;
-#line 172 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = graw_processor_new (LIBRAW_OPTIONS_NONE);
-#line 172 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- processor = _tmp1_;
-#line 173 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = processor;
-#line 173 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp3_ = graw_processor_get_output_params (_tmp2_);
-#line 173 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp4_ = _tmp3_;
-#line 173 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- (*_tmp4_).user_flip = (gint) GRAW_FLIP_NONE;
-#line 1902 "RawSupport.c"
- {
- GRawProcessor* _tmp5_;
- GFile* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- GRawProcessor* _tmp9_;
- GRawProcessor* _tmp10_;
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp5_ = processor;
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp7_ = g_file_get_path (_tmp6_);
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp8_ = _tmp7_;
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_open_file (_tmp5_, _tmp8_, &_inner_error_);
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp8_);
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 1926 "RawSupport.c"
- goto __catch36_graw_exception;
- }
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.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 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_clear_error (&_inner_error_);
-#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 1939 "RawSupport.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp9_ = processor;
-#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_unpack (_tmp9_, &_inner_error_);
-#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 1949 "RawSupport.c"
- goto __catch36_graw_exception;
- }
-#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.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 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_clear_error (&_inner_error_);
-#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 1962 "RawSupport.c"
- }
-#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp10_ = processor;
-#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_adjust_sizes_info_only (_tmp10_, &_inner_error_);
-#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_inner_error_->domain == GRAW_EXCEPTION) {
-#line 1972 "RawSupport.c"
- goto __catch36_graw_exception;
- }
-#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.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 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_clear_error (&_inner_error_);
-#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 1985 "RawSupport.c"
- }
- }
- goto __finally36;
- __catch36_graw_exception:
- {
- GError* exception = NULL;
- GError* _tmp11_;
- GError* _tmp12_;
- GError* _tmp13_;
-#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- exception = _inner_error_;
-#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _inner_error_ = NULL;
-#line 180 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp11_ = exception;
-#line 180 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (g_error_matches (_tmp11_, GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_FILE)) {
-#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = NULL;
-#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_error_free0 (exception);
-#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (is_corrupted) {
-#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 2015 "RawSupport.c"
- }
-#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2019 "RawSupport.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp12_ = exception;
-#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp13_ = _g_error_copy0 (_tmp12_);
-#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _inner_error_ = _tmp13_;
-#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_error_free0 (exception);
-#line 2029 "RawSupport.c"
- goto __finally36;
- }
- __finally36:
-#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"
- g_propagate_error (error, _inner_error_);
-#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2043 "RawSupport.c"
- }
-#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp14_ = detected;
-#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp15_ = processor;
-#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp16_ = graw_processor_get_sizes (_tmp15_).iwidth;
-#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp17_ = processor;
-#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp18_ = graw_processor_get_sizes (_tmp17_).iheight;
-#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- dimensions_init (&_tmp14_->image_dim, (gint) _tmp16_, (gint) _tmp18_);
-#line 187 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp19_ = detected;
-#line 187 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp19_->colorspace = GDK_COLORSPACE_RGB;
-#line 188 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp20_ = detected;
-#line 188 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp20_->channels = 3;
-#line 189 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp21_ = detected;
-#line 189 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp21_->bits_per_channel = 8;
-#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp23_ = g_file_get_path (_tmp22_);
-#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp24_ = _tmp23_;
-#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp25_ = raw_reader_new (_tmp24_);
-#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp26_ = _tmp25_;
-#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp24_);
-#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- reader = _tmp26_;
-#line 2083 "RawSupport.c"
- {
- PhotoMetadata* _tmp27_ = NULL;
- RawReader* _tmp28_;
- PhotoMetadata* _tmp29_;
- DetectedPhotoInformation* _tmp30_;
- PhotoMetadata* _tmp31_;
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp28_ = reader;
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp29_ = photo_file_reader_read_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_PHOTO_FILE_READER, PhotoFileReader), &_inner_error_);
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp27_ = _tmp29_;
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2098 "RawSupport.c"
- goto __catch37_g_error;
- }
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp30_ = detected;
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp31_ = _tmp27_;
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp27_ = NULL;
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _media_metadata_unref0 (_tmp30_->metadata);
-#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp30_->metadata = _tmp31_;
-#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _media_metadata_unref0 (_tmp27_);
-#line 2113 "RawSupport.c"
- }
- goto __finally37;
- __catch37_g_error:
- {
- GError* err = NULL;
-#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- err = _inner_error_;
-#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _inner_error_ = NULL;
-#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_error_free0 (err);
-#line 2125 "RawSupport.c"
- }
- __finally37:
-#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"
- g_propagate_error (error, _inner_error_);
-#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _photo_file_adapter_unref0 (reader);
-#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2140 "RawSupport.c"
- }
-#line 198 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp32_ = detected;
-#line 198 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp33_ = _tmp32_->metadata;
-#line 198 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_tmp33_ != NULL) {
-#line 2148 "RawSupport.c"
- DetectedPhotoInformation* _tmp34_;
- DetectedPhotoInformation* _tmp35_;
- PhotoMetadata* _tmp36_;
- gchar* _tmp37_;
- DetectedPhotoInformation* _tmp38_;
- DetectedPhotoInformation* _tmp39_;
- PhotoMetadata* _tmp40_;
- gchar* _tmp41_;
-#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp34_ = detected;
-#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp35_ = detected;
-#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_ = _tmp35_->metadata;
-#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp37_ = photo_metadata_exif_hash (_tmp36_);
-#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp34_->exif_md5);
-#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp34_->exif_md5 = _tmp37_;
-#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp38_ = detected;
-#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp39_ = detected;
-#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp40_ = _tmp39_->metadata;
-#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp41_ = photo_metadata_thumbnail_hash (_tmp40_);
-#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp38_->thumbnail_md5);
-#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp38_->thumbnail_md5 = _tmp41_;
-#line 2181 "RawSupport.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp42_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5;
-#line 203 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_tmp42_) {
-#line 2187 "RawSupport.c"
- gchar* _tmp43_ = NULL;
- GFile* _tmp44_;
- gchar* _tmp45_;
- DetectedPhotoInformation* _tmp46_;
- gchar* _tmp47_;
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp44_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp45_ = md5_file (_tmp44_, &_inner_error_);
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp43_ = _tmp45_;
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _photo_file_adapter_unref0 (reader);
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2211 "RawSupport.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp46_ = detected;
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp47_ = _tmp43_;
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp43_ = NULL;
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp46_->md5);
-#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp46_->md5 = _tmp47_;
-#line 203 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp43_);
-#line 2225 "RawSupport.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp48_ = detected;
-#line 206 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp49_ = g_strdup ("raw");
-#line 206 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp48_->format_name);
-#line 206 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp48_->format_name = _tmp49_;
-#line 207 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp50_ = detected;
-#line 207 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp50_->file_format = PHOTO_FILE_FORMAT_RAW;
-#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = detected;
-#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _photo_file_adapter_unref0 (reader);
-#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (is_corrupted) {
-#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 2249 "RawSupport.c"
- }
-#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2253 "RawSupport.c"
-}
-
-
-static void
-raw_sniffer_class_init (RawSnifferClass * klass)
-{
-#line 161 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 161 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) raw_sniffer_real_sniff;
-#line 2264 "RawSupport.c"
-}
-
-
-static void
-raw_sniffer_instance_init (RawSniffer * self)
-{
-}
-
-
-GType
-raw_sniffer_get_type (void)
-{
- static volatile gsize raw_sniffer_type_id__volatile = 0;
- if (g_once_init_enter (&raw_sniffer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RawSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raw_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RawSniffer), 0, (GInstanceInitFunc) raw_sniffer_instance_init, NULL };
- GType raw_sniffer_type_id;
- raw_sniffer_type_id = g_type_register_static (TYPE_PHOTO_FILE_SNIFFER, "RawSniffer", &g_define_type_info, 0);
- g_once_init_leave (&raw_sniffer_type_id__volatile, raw_sniffer_type_id);
- }
- return raw_sniffer_type_id__volatile;
-}
-
-
-RawReader*
-raw_reader_construct (GType object_type,
- const gchar* filepath)
-{
- RawReader* self = NULL;
-#line 214 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 215 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = (RawReader*) photo_file_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_RAW);
-#line 214 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return self;
-#line 2299 "RawSupport.c"
-}
-
-
-RawReader*
-raw_reader_new (const gchar* filepath)
-{
-#line 214 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return raw_reader_construct (TYPE_RAW_READER, filepath);
-#line 2308 "RawSupport.c"
-}
-
-
-static PhotoMetadata*
-raw_reader_real_read_metadata (PhotoFileReader* base,
- GError** error)
-{
- RawReader * self;
- PhotoMetadata* result = NULL;
- PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 218 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_READER, RawReader);
-#line 219 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = photo_metadata_new ();
-#line 219 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- metadata = _tmp0_;
-#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = _tmp1_;
-#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata), _tmp2_, &_inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (_tmp2_);
-#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _media_metadata_unref0 (metadata);
-#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2345 "RawSupport.c"
- }
-#line 222 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = metadata;
-#line 222 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2351 "RawSupport.c"
-}
-
-
-static GdkPixbuf*
-raw_reader_real_unscaled_read (PhotoFileReader* base,
- GError** error)
-{
- RawReader * self;
- GdkPixbuf* result = NULL;
- GRawProcessor* processor = NULL;
- GRawProcessor* _tmp0_;
- GRawProcessor* _tmp1_;
- GRawProcessor* _tmp2_;
- libraw_output_params_t* _tmp3_;
- libraw_output_params_t* _tmp4_;
- GRawProcessor* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- GRawProcessor* _tmp8_;
- GRawProcessor* _tmp9_;
- GRawProcessedImage* _tmp10_ = NULL;
- GRawProcessor* _tmp11_;
- GRawProcessedImage* _tmp12_;
- GdkPixbuf* _tmp13_;
- GError * _inner_error_ = NULL;
-#line 225 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_READER, RawReader);
-#line 226 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = graw_processor_new (LIBRAW_OPTIONS_NONE);
-#line 226 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- processor = _tmp0_;
-#line 227 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = processor;
-#line 227 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_configure_for_rgb_display (_tmp1_, FALSE);
-#line 228 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = processor;
-#line 228 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp3_ = graw_processor_get_output_params (_tmp2_);
-#line 228 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp4_ = _tmp3_;
-#line 228 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- (*_tmp4_).user_flip = (gint) GRAW_FLIP_NONE;
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp5_ = processor;
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp6_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp7_ = _tmp6_;
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_open_file (_tmp5_, _tmp7_, &_inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp7_);
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2413 "RawSupport.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp8_ = processor;
-#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_unpack (_tmp8_, &_inner_error_);
-#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2427 "RawSupport.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp9_ = processor;
-#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_process (_tmp9_, &_inner_error_);
-#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2441 "RawSupport.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp11_ = processor;
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp12_ = graw_processor_make_mem_image (_tmp11_, &_inner_error_);
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp10_ = _tmp12_;
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2457 "RawSupport.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp13_ = graw_processed_image_get_pixbuf_copy (_tmp10_);
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp13_;
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processed_image_unref0 (_tmp10_);
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2469 "RawSupport.c"
-}
-
-
-static GdkPixbuf*
-raw_reader_real_scaled_read (PhotoFileReader* base,
- Dimensions* full,
- Dimensions* scaled,
- GError** error)
-{
- RawReader * self;
- GdkPixbuf* result = NULL;
- gdouble width_proportion = 0.0;
- Dimensions _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
- gdouble height_proportion = 0.0;
- Dimensions _tmp4_;
- gint _tmp5_;
- Dimensions _tmp6_;
- gint _tmp7_;
- gboolean _tmp8_ = FALSE;
- gdouble _tmp9_;
- gboolean half_size = FALSE;
- GRawProcessor* processor = NULL;
- GRawProcessor* _tmp11_;
- GRawProcessor* _tmp12_;
- gboolean _tmp13_;
- GRawProcessor* _tmp14_;
- libraw_output_params_t* _tmp15_;
- libraw_output_params_t* _tmp16_;
- GRawProcessor* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- GRawProcessor* _tmp29_;
- GRawProcessor* _tmp30_;
- GRawProcessedImage* image = NULL;
- GRawProcessor* _tmp31_;
- GRawProcessedImage* _tmp32_;
- GRawProcessedImage* _tmp33_;
- GdkPixbuf* _tmp34_;
- GdkPixbuf* _tmp35_;
- Dimensions _tmp36_;
- GdkPixbuf* _tmp37_;
- GdkPixbuf* _tmp38_;
- GError * _inner_error_ = NULL;
-#line 237 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_READER, RawReader);
-#line 237 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (full != NULL, NULL);
-#line 237 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (scaled != NULL, NULL);
-#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = *scaled;
-#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = _tmp0_.width;
-#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = *full;
-#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp3_ = _tmp2_.width;
-#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- width_proportion = ((gdouble) _tmp1_) / ((gdouble) _tmp3_);
-#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp4_ = *scaled;
-#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp5_ = _tmp4_.height;
-#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp6_ = *full;
-#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp7_ = _tmp6_.height;
-#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- height_proportion = ((gdouble) _tmp5_) / ((gdouble) _tmp7_);
-#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp9_ = width_proportion;
-#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_tmp9_ < 0.5) {
-#line 2546 "RawSupport.c"
- gdouble _tmp10_;
-#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp10_ = height_proportion;
-#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp8_ = _tmp10_ < 0.5;
-#line 2552 "RawSupport.c"
- } else {
-#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp8_ = FALSE;
-#line 2556 "RawSupport.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- half_size = _tmp8_;
-#line 243 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp11_ = graw_processor_new (LIBRAW_OPTIONS_NONE);
-#line 243 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- processor = _tmp11_;
-#line 244 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp12_ = processor;
-#line 244 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp13_ = half_size;
-#line 244 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_configure_for_rgb_display (_tmp12_, _tmp13_);
-#line 245 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp14_ = processor;
-#line 245 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp15_ = graw_processor_get_output_params (_tmp14_);
-#line 245 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp16_ = _tmp15_;
-#line 245 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- (*_tmp16_).user_flip = (gint) GRAW_FLIP_NONE;
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp17_ = processor;
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp18_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp19_ = _tmp18_;
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_open_file (_tmp17_, _tmp19_, &_inner_error_);
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp19_);
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2596 "RawSupport.c"
- }
- {
-#line 249 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (photo_file_reader_get_role (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_READER, PhotoFileReader)) == PHOTO_FILE_READER_ROLE_THUMBNAIL) {
-#line 2601 "RawSupport.c"
- GRawProcessor* _tmp20_;
- GRawProcessedImage* image = NULL;
- GRawProcessor* _tmp21_;
- GRawProcessedImage* _tmp22_;
- GRawProcessedImage* _tmp23_;
- GdkPixbuf* _tmp24_;
- GdkPixbuf* _tmp25_;
- Dimensions _tmp26_;
- GdkPixbuf* _tmp27_;
- GdkPixbuf* _tmp28_;
-#line 250 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp20_ = processor;
-#line 250 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_unpack_thumb (_tmp20_, &_inner_error_);
-#line 250 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2618 "RawSupport.c"
- goto __catch38_g_error;
- }
-#line 251 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp21_ = processor;
-#line 251 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp22_ = graw_processor_make_thumb_image (_tmp21_, &_inner_error_);
-#line 251 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- image = _tmp22_;
-#line 251 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2629 "RawSupport.c"
- goto __catch38_g_error;
- }
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp23_ = image;
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp24_ = graw_processed_image_get_pixbuf_copy (_tmp23_);
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp25_ = _tmp24_;
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp26_ = *scaled;
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp27_ = resize_pixbuf (_tmp25_, &_tmp26_, GDK_INTERP_BILINEAR);
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp28_ = _tmp27_;
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (_tmp25_);
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp28_;
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processed_image_unref0 (image);
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2654 "RawSupport.c"
- }
- }
- goto __finally38;
- __catch38_g_error:
- {
- GError* _error_ = NULL;
-#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _error_ = _inner_error_;
-#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _inner_error_ = NULL;
-#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_error_free0 (_error_);
-#line 2667 "RawSupport.c"
- }
- __finally38:
-#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2678 "RawSupport.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp29_ = processor;
-#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_unpack (_tmp29_, &_inner_error_);
-#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2692 "RawSupport.c"
- }
-#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp30_ = processor;
-#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- graw_processor_process (_tmp30_, &_inner_error_);
-#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2706 "RawSupport.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp31_ = processor;
-#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp32_ = graw_processor_make_mem_image (_tmp31_, &_inner_error_);
-#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- image = _tmp32_;
-#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 2722 "RawSupport.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp33_ = image;
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp34_ = graw_processed_image_get_pixbuf_copy (_tmp33_);
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp35_ = _tmp34_;
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_ = *scaled;
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp37_ = resize_pixbuf (_tmp35_, &_tmp36_, GDK_INTERP_BILINEAR);
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp38_ = _tmp37_;
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (_tmp35_);
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp38_;
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processed_image_unref0 (image);
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _graw_processor_unref0 (processor);
-#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2746 "RawSupport.c"
-}
-
-
-static void
-raw_reader_class_init (RawReaderClass * klass)
-{
-#line 213 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- raw_reader_parent_class = g_type_class_peek_parent (klass);
-#line 213 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileReaderClass *) klass)->read_metadata = (PhotoMetadata* (*) (PhotoFileReader *, GError**)) raw_reader_real_read_metadata;
-#line 213 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileReaderClass *) klass)->unscaled_read = (GdkPixbuf* (*) (PhotoFileReader *, GError**)) raw_reader_real_unscaled_read;
-#line 213 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) raw_reader_real_scaled_read;
-#line 2761 "RawSupport.c"
-}
-
-
-static void
-raw_reader_instance_init (RawReader * self)
-{
-}
-
-
-GType
-raw_reader_get_type (void)
-{
- static volatile gsize raw_reader_type_id__volatile = 0;
- if (g_once_init_enter (&raw_reader_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RawReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raw_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RawReader), 0, (GInstanceInitFunc) raw_reader_instance_init, NULL };
- GType raw_reader_type_id;
- raw_reader_type_id = g_type_register_static (TYPE_PHOTO_FILE_READER, "RawReader", &g_define_type_info, 0);
- g_once_init_leave (&raw_reader_type_id__volatile, raw_reader_type_id);
- }
- return raw_reader_type_id__volatile;
-}
-
-
-RawDeveloper*
-raw_developer_as_array (int* result_length1)
-{
- RawDeveloper* result = NULL;
- RawDeveloper* _tmp0_;
- RawDeveloper* _tmp1_;
- gint _tmp1__length1;
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = g_new0 (RawDeveloper, 3);
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_[0] = RAW_DEVELOPER_SHOTWELL;
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_[1] = RAW_DEVELOPER_CAMERA;
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_[2] = RAW_DEVELOPER_EMBEDDED;
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = _tmp0_;
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1__length1 = 3;
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (result_length1) {
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- *result_length1 = _tmp1__length1;
-#line 2808 "RawSupport.c"
- }
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp1_;
-#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2814 "RawSupport.c"
-}
-
-
-gchar*
-raw_developer_to_string (RawDeveloper self)
-{
- gchar* result = NULL;
-#line 280 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- switch (self) {
-#line 280 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- case RAW_DEVELOPER_SHOTWELL:
-#line 2826 "RawSupport.c"
- {
- gchar* _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = g_strdup ("SHOTWELL");
-#line 282 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp0_;
-#line 282 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2835 "RawSupport.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- case RAW_DEVELOPER_CAMERA:
-#line 2839 "RawSupport.c"
- {
- gchar* _tmp1_;
-#line 284 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = g_strdup ("CAMERA");
-#line 284 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp1_;
-#line 284 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2848 "RawSupport.c"
- }
-#line 280 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- case RAW_DEVELOPER_EMBEDDED:
-#line 2852 "RawSupport.c"
- {
- gchar* _tmp2_;
-#line 286 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = g_strdup ("EMBEDDED");
-#line 286 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp2_;
-#line 286 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2861 "RawSupport.c"
- }
- default:
- {
-#line 288 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_assert_not_reached ();
-#line 2867 "RawSupport.c"
- }
- }
-}
-
-
-RawDeveloper
-raw_developer_from_string (const gchar* value)
-{
- RawDeveloper result = 0;
- const gchar* _tmp0_;
- GQuark _tmp2_ = 0U;
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- static GQuark _tmp1_label0 = 0;
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- static GQuark _tmp1_label1 = 0;
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- static GQuark _tmp1_label2 = 0;
-#line 292 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (value != NULL, 0);
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = value;
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_);
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("SHOTWELL")))) {
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- switch (0) {
-#line 2895 "RawSupport.c"
- default:
- {
-#line 295 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = RAW_DEVELOPER_SHOTWELL;
-#line 295 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2902 "RawSupport.c"
- }
- }
- } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("CAMERA")))) {
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- switch (0) {
-#line 2908 "RawSupport.c"
- default:
- {
-#line 297 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = RAW_DEVELOPER_CAMERA;
-#line 297 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2915 "RawSupport.c"
- }
- }
- } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("EMBEDDED")))) {
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- switch (0) {
-#line 2921 "RawSupport.c"
- default:
- {
-#line 299 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = RAW_DEVELOPER_EMBEDDED;
-#line 299 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2928 "RawSupport.c"
- }
- }
- } else {
-#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- switch (0) {
-#line 2934 "RawSupport.c"
- default:
- {
-#line 301 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_assert_not_reached ();
-#line 2939 "RawSupport.c"
- }
- }
- }
-}
-
-
-gchar*
-raw_developer_get_label (RawDeveloper self)
-{
- gchar* result = NULL;
-#line 306 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- switch (self) {
-#line 306 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- case RAW_DEVELOPER_SHOTWELL:
-#line 2954 "RawSupport.c"
- {
- gchar* _tmp0_;
-#line 308 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = g_strdup (_ ("Shotwell"));
-#line 308 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp0_;
-#line 308 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2963 "RawSupport.c"
- }
-#line 306 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- case RAW_DEVELOPER_CAMERA:
-#line 306 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- case RAW_DEVELOPER_EMBEDDED:
-#line 2969 "RawSupport.c"
- {
- gchar* _tmp1_;
-#line 311 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = g_strdup (_ ("Camera"));
-#line 311 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = _tmp1_;
-#line 311 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 2978 "RawSupport.c"
- }
- default:
- {
-#line 313 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_assert_not_reached ();
-#line 2984 "RawSupport.c"
- }
- }
-}
-
-
-gboolean
-raw_developer_is_equivalent (RawDeveloper self,
- RawDeveloper d)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
-#line 320 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (self == d) {
-#line 321 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = TRUE;
-#line 321 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 3003 "RawSupport.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (self == RAW_DEVELOPER_CAMERA) {
-#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = d == RAW_DEVELOPER_EMBEDDED;
-#line 3009 "RawSupport.c"
- } else {
-#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = FALSE;
-#line 3013 "RawSupport.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_tmp1_) {
-#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = TRUE;
-#line 3019 "RawSupport.c"
- } else {
- gboolean _tmp2_ = FALSE;
-#line 324 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (self == RAW_DEVELOPER_EMBEDDED) {
-#line 324 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = d == RAW_DEVELOPER_CAMERA;
-#line 3026 "RawSupport.c"
- } else {
-#line 324 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = FALSE;
-#line 3030 "RawSupport.c"
- }
-#line 324 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = _tmp2_;
-#line 3034 "RawSupport.c"
- }
-#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (_tmp0_) {
-#line 325 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = TRUE;
-#line 325 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 3042 "RawSupport.c"
- }
-#line 327 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = FALSE;
-#line 327 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 3048 "RawSupport.c"
-}
-
-
-BackingPhotoRow*
-raw_developer_create_backing_row_for_development (RawDeveloper self,
- const gchar* raw_filepath,
- const gchar* camera_development_filename,
- GError** error)
-{
- BackingPhotoRow* result = NULL;
- BackingPhotoRow* ns = NULL;
- BackingPhotoRow* _tmp0_;
- GFile* master = NULL;
- GFile* _tmp1_;
- gchar* name = NULL;
- gchar* ext = NULL;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* basename = NULL;
- gchar* newbasename = NULL;
- const gchar* _tmp24_;
- gchar* _tmp25_;
- gboolean c = FALSE;
- GFile* new_back = NULL;
- GFile* _tmp26_;
- GFile* _tmp27_;
- GFile* _tmp28_;
- const gchar* _tmp29_;
- gboolean _tmp30_ = FALSE;
- GFile* _tmp31_;
- GFile* _tmp32_;
- GFile* _tmp33_;
- BackingPhotoRow* _tmp34_;
- BackingPhotoRow* _tmp35_;
- GFile* _tmp36_;
- gchar* _tmp37_;
- GError * _inner_error_ = NULL;
-#line 332 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_return_val_if_fail (raw_filepath != NULL, NULL);
-#line 334 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp0_ = backing_photo_row_new ();
-#line 334 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ns = _tmp0_;
-#line 335 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp1_ = g_file_new_for_path (raw_filepath);
-#line 335 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- master = _tmp1_;
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp2_ = master;
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp3_ = g_file_get_basename (_tmp2_);
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp4_ = _tmp3_;
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- disassemble_filename (_tmp4_, &_tmp5_, &_tmp6_);
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (name);
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- name = _tmp5_;
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (ext);
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- ext = _tmp6_;
-#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp4_);
-#line 343 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (camera_development_filename == NULL) {
-#line 3119 "RawSupport.c"
- gchar* _tmp7_ = NULL;
- const gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- const gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (self != RAW_DEVELOPER_CAMERA) {
-#line 3132 "RawSupport.c"
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp8_ = raw_developer_to_string (self);
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp9_ = _tmp8_;
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp10_ = g_utf8_strdown (_tmp9_, (gssize) -1);
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp11_ = _tmp10_;
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp12_ = g_strconcat ("_", _tmp11_, NULL);
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp7_);
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp7_ = _tmp12_;
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp11_);
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp9_);
-#line 3156 "RawSupport.c"
- } else {
- gchar* _tmp13_;
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp13_ = g_strdup ("");
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp7_);
-#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp7_ = _tmp13_;
-#line 3165 "RawSupport.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp14_ = name;
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp15_ = g_strconcat (_tmp14_, "_", NULL);
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp16_ = _tmp15_;
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp17_ = ext;
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp18_ = g_strconcat (_tmp16_, _tmp17_, NULL);
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp19_ = _tmp18_;
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp20_ = g_strconcat (_tmp19_, _tmp7_, NULL);
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp21_ = _tmp20_;
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp22_ = g_strconcat (_tmp21_, ".jpg", NULL);
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (basename);
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- basename = _tmp22_;
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp21_);
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp19_);
-#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp16_);
-#line 343 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp7_);
-#line 3197 "RawSupport.c"
- } else {
- gchar* _tmp23_;
-#line 347 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp23_ = g_strdup (camera_development_filename);
-#line 347 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (basename);
-#line 347 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- basename = _tmp23_;
-#line 3206 "RawSupport.c"
- }
-#line 350 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp24_ = basename;
-#line 350 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp25_ = library_files_convert_basename (_tmp24_);
-#line 350 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- newbasename = _tmp25_;
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp26_ = master;
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp27_ = g_file_get_parent (_tmp26_);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp28_ = _tmp27_;
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp29_ = newbasename;
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp31_ = generate_unique_file (_tmp28_, _tmp29_, &_tmp30_, &_inner_error_);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- c = _tmp30_;
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp32_ = _tmp31_;
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (_tmp28_);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- new_back = _tmp32_;
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (newbasename);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (basename);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (ext);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (name);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (master);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _backing_photo_row_unref0 (ns);
-#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 3250 "RawSupport.c"
- }
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp33_ = new_back;
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- claim_file (_tmp33_, &_inner_error_);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (new_back);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (newbasename);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (basename);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (ext);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (name);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (master);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _backing_photo_row_unref0 (ns);
-#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return NULL;
-#line 3276 "RawSupport.c"
- }
-#line 355 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp34_ = ns;
-#line 355 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp34_->file_format = PHOTO_FILE_FORMAT_JFIF;
-#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp35_ = ns;
-#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp36_ = new_back;
-#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp37_ = g_file_get_path (_tmp36_);
-#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (_tmp35_->filepath);
-#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _tmp35_->filepath = _tmp37_;
-#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- result = ns;
-#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (new_back);
-#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (newbasename);
-#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (basename);
-#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (ext);
-#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_free0 (name);
-#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- _g_object_unref0 (master);
-#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala"
- return result;
-#line 3308 "RawSupport.c"
-}
-
-
-GType
-raw_developer_get_type (void)
-{
- static volatile gsize raw_developer_type_id__volatile = 0;
- if (g_once_init_enter (&raw_developer_type_id__volatile)) {
- static const GEnumValue values[] = {{RAW_DEVELOPER_SHOTWELL, "RAW_DEVELOPER_SHOTWELL", "shotwell"}, {RAW_DEVELOPER_CAMERA, "RAW_DEVELOPER_CAMERA", "camera"}, {RAW_DEVELOPER_EMBEDDED, "RAW_DEVELOPER_EMBEDDED", "embedded"}, {0, NULL, NULL}};
- GType raw_developer_type_id;
- raw_developer_type_id = g_enum_register_static ("RawDeveloper", values);
- g_once_init_leave (&raw_developer_type_id__volatile, raw_developer_type_id);
- }
- return raw_developer_type_id__volatile;
-}
-
-
-
diff --git a/src/photos/TiffSupport.c b/src/photos/TiffSupport.c
deleted file mode 100644
index d17a83b..0000000
--- a/src/photos/TiffSupport.c
+++ /dev/null
@@ -1,1862 +0,0 @@
-/* TiffSupport.c generated by valac 0.40.4, the Vala compiler
- * generated from TiffSupport.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <glib/gi18n-lib.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ())
-#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver))
-#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER))
-#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass))
-
-typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver;
-typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass;
-typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
-#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
-#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
-#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
-
-typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties;
-typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass;
-
-#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
-#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
-#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
-#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
-#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
-
-typedef struct _PhotoFileAdapter PhotoFileAdapter;
-typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
-
-#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
-#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
-#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
-#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
-#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
-
-typedef struct _PhotoFileReader PhotoFileReader;
-typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
-
-#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
-#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
-#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
-#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
-#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
-#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
-
-typedef struct _MediaMetadata MediaMetadata;
-typedef struct _MediaMetadataClass MediaMetadataClass;
-
-#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
-#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
-#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
-#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
-#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
-
-typedef struct _PhotoMetadata PhotoMetadata;
-typedef struct _PhotoMetadataClass PhotoMetadataClass;
-
-#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
-#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
-#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
-#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
-#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
-
-typedef struct _PhotoFileWriter PhotoFileWriter;
-typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
-
-#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
-#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
-#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
-#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
-
-typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
-typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
-
-#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
-
-#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ())
-#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer))
-#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER))
-#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER))
-#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass))
-
-typedef struct _PhotoFileSniffer PhotoFileSniffer;
-typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass;
-
-#define PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER (photos_tiff_file_format_driver_get_type ())
-#define PHOTOS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver))
-#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass))
-#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER))
-#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER))
-#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass))
-
-typedef struct _PhotosTiffFileFormatDriver PhotosTiffFileFormatDriver;
-typedef struct _PhotosTiffFileFormatDriverClass PhotosTiffFileFormatDriverClass;
-typedef struct _PhotosTiffFileFormatDriverPrivate PhotosTiffFileFormatDriverPrivate;
-#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL)))
-
-#define PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES (photos_tiff_file_format_properties_get_type ())
-#define PHOTOS_TIFF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties))
-#define PHOTOS_TIFF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatPropertiesClass))
-#define PHOTOS_IS_TIFF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES))
-#define PHOTOS_IS_TIFF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES))
-#define PHOTOS_TIFF_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatPropertiesClass))
-
-typedef struct _PhotosTiffFileFormatProperties PhotosTiffFileFormatProperties;
-typedef struct _PhotosTiffFileFormatPropertiesClass PhotosTiffFileFormatPropertiesClass;
-
-#define TYPE_GDK_READER (gdk_reader_get_type ())
-#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader))
-#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass))
-#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER))
-#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER))
-#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass))
-
-typedef struct _GdkReader GdkReader;
-typedef struct _GdkReaderClass GdkReaderClass;
-
-#define PHOTOS_TYPE_TIFF_READER (photos_tiff_reader_get_type ())
-#define PHOTOS_TIFF_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_READER, PhotosTiffReader))
-#define PHOTOS_TIFF_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_READER, PhotosTiffReaderClass))
-#define PHOTOS_IS_TIFF_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_READER))
-#define PHOTOS_IS_TIFF_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_READER))
-#define PHOTOS_TIFF_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_READER, PhotosTiffReaderClass))
-
-typedef struct _PhotosTiffReader PhotosTiffReader;
-typedef struct _PhotosTiffReaderClass PhotosTiffReaderClass;
-
-#define PHOTOS_TYPE_TIFF_WRITER (photos_tiff_writer_get_type ())
-#define PHOTOS_TIFF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_WRITER, PhotosTiffWriter))
-#define PHOTOS_TIFF_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_WRITER, PhotosTiffWriterClass))
-#define PHOTOS_IS_TIFF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_WRITER))
-#define PHOTOS_IS_TIFF_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_WRITER))
-#define PHOTOS_TIFF_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_WRITER, PhotosTiffWriterClass))
-
-typedef struct _PhotosTiffWriter PhotosTiffWriter;
-typedef struct _PhotosTiffWriterClass PhotosTiffWriterClass;
-
-#define PHOTOS_TYPE_TIFF_METADATA_WRITER (photos_tiff_metadata_writer_get_type ())
-#define PHOTOS_TIFF_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_METADATA_WRITER, PhotosTiffMetadataWriter))
-#define PHOTOS_TIFF_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_METADATA_WRITER, PhotosTiffMetadataWriterClass))
-#define PHOTOS_IS_TIFF_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_METADATA_WRITER))
-#define PHOTOS_IS_TIFF_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_METADATA_WRITER))
-#define PHOTOS_TIFF_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_METADATA_WRITER, PhotosTiffMetadataWriterClass))
-
-typedef struct _PhotosTiffMetadataWriter PhotosTiffMetadataWriter;
-typedef struct _PhotosTiffMetadataWriterClass PhotosTiffMetadataWriterClass;
-
-#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ())
-#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer))
-#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass))
-#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER))
-#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER))
-#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass))
-
-typedef struct _GdkSniffer GdkSniffer;
-typedef struct _GdkSnifferClass GdkSnifferClass;
-
-#define PHOTOS_TYPE_TIFF_SNIFFER (photos_tiff_sniffer_get_type ())
-#define PHOTOS_TIFF_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_SNIFFER, PhotosTiffSniffer))
-#define PHOTOS_TIFF_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_SNIFFER, PhotosTiffSnifferClass))
-#define PHOTOS_IS_TIFF_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_SNIFFER))
-#define PHOTOS_IS_TIFF_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_SNIFFER))
-#define PHOTOS_TIFF_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_SNIFFER, PhotosTiffSnifferClass))
-
-typedef struct _PhotosTiffSniffer PhotosTiffSniffer;
-typedef struct _PhotosTiffSnifferClass PhotosTiffSnifferClass;
-typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate;
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ())
-typedef struct _PhotosTiffFileFormatPropertiesPrivate PhotosTiffFileFormatPropertiesPrivate;
-#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL)))
-typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate;
-
-#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
-#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
-#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
-#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
-#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
-
-typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
-typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
-typedef struct _GdkSnifferPrivate GdkSnifferPrivate;
-typedef struct _PhotosTiffSnifferPrivate PhotosTiffSnifferPrivate;
-#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
-typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate;
-typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate;
-typedef struct _GdkReaderPrivate GdkReaderPrivate;
-typedef struct _PhotosTiffReaderPrivate PhotosTiffReaderPrivate;
-typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-typedef struct _PhotosTiffWriterPrivate PhotosTiffWriterPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate;
-typedef struct _PhotosTiffMetadataWriterPrivate PhotosTiffMetadataWriterPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-typedef enum {
- PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
- PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
-} PhotoFileSnifferOptions;
-
-struct _PhotoFileFormatDriver {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatDriverPrivate * priv;
-};
-
-struct _PhotoFileFormatDriverClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatDriver *self);
- PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self);
- PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self);
- gboolean (*can_write_image) (PhotoFileFormatDriver* self);
- gboolean (*can_write_metadata) (PhotoFileFormatDriver* self);
- PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath);
- PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options);
-};
-
-struct _PhotosTiffFileFormatDriver {
- PhotoFileFormatDriver parent_instance;
- PhotosTiffFileFormatDriverPrivate * priv;
-};
-
-struct _PhotosTiffFileFormatDriverClass {
- PhotoFileFormatDriverClass parent_class;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-typedef enum {
- PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000
-} PhotoFileFormatFlags;
-
-struct _PhotoFileFormatProperties {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileFormatPropertiesPrivate * priv;
-};
-
-struct _PhotoFileFormatPropertiesClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileFormatProperties *self);
- PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self);
- PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self);
- gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext);
- gchar* (*get_default_extension) (PhotoFileFormatProperties* self);
- gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self);
- gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1);
- gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self);
-};
-
-struct _PhotosTiffFileFormatProperties {
- PhotoFileFormatProperties parent_instance;
- PhotosTiffFileFormatPropertiesPrivate * priv;
-};
-
-struct _PhotosTiffFileFormatPropertiesClass {
- PhotoFileFormatPropertiesClass parent_class;
-};
-
-struct _PhotoFileSniffer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileSnifferPrivate * priv;
- GFile* file;
- PhotoFileSnifferOptions options;
- gboolean calc_md5;
-};
-
-struct _PhotoFileSnifferClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileSniffer *self);
- DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error);
-};
-
-struct _GdkSniffer {
- PhotoFileSniffer parent_instance;
- GdkSnifferPrivate * priv;
-};
-
-struct _GdkSnifferClass {
- PhotoFileSnifferClass parent_class;
-};
-
-struct _PhotosTiffSniffer {
- GdkSniffer parent_instance;
- PhotosTiffSnifferPrivate * priv;
-};
-
-struct _PhotosTiffSnifferClass {
- GdkSnifferClass parent_class;
-};
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _DetectedPhotoInformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- DetectedPhotoInformationPrivate * priv;
- PhotoFileFormat file_format;
- PhotoMetadata* metadata;
- gchar* md5;
- gchar* exif_md5;
- gchar* thumbnail_md5;
- gchar* format_name;
- Dimensions image_dim;
- GdkColorspace colorspace;
- gint channels;
- gint bits_per_channel;
-};
-
-struct _DetectedPhotoInformationClass {
- GTypeClass parent_class;
- void (*finalize) (DetectedPhotoInformation *self);
-};
-
-struct _PhotoFileAdapter {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PhotoFileAdapterPrivate * priv;
-};
-
-struct _PhotoFileAdapterClass {
- GTypeClass parent_class;
- void (*finalize) (PhotoFileAdapter *self);
-};
-
-struct _PhotoFileReader {
- PhotoFileAdapter parent_instance;
- PhotoFileReaderPrivate * priv;
-};
-
-struct _PhotoFileReaderClass {
- PhotoFileAdapterClass parent_class;
- PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error);
- GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error);
-};
-
-struct _GdkReader {
- PhotoFileReader parent_instance;
- GdkReaderPrivate * priv;
-};
-
-struct _GdkReaderClass {
- PhotoFileReaderClass parent_class;
-};
-
-struct _PhotosTiffReader {
- GdkReader parent_instance;
- PhotosTiffReaderPrivate * priv;
-};
-
-struct _PhotosTiffReaderClass {
- GdkReaderClass parent_class;
-};
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-struct _PhotoFileWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileWriterPrivate * priv;
-};
-
-struct _PhotoFileWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error);
-};
-
-struct _PhotosTiffWriter {
- PhotoFileWriter parent_instance;
- PhotosTiffWriterPrivate * priv;
-};
-
-struct _PhotosTiffWriterClass {
- PhotoFileWriterClass parent_class;
-};
-
-struct _PhotoFileMetadataWriter {
- PhotoFileAdapter parent_instance;
- PhotoFileMetadataWriterPrivate * priv;
-};
-
-struct _PhotoFileMetadataWriterClass {
- PhotoFileAdapterClass parent_class;
- void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error);
-};
-
-struct _PhotosTiffMetadataWriter {
- PhotoFileMetadataWriter parent_instance;
- PhotosTiffMetadataWriterPrivate * priv;
-};
-
-struct _PhotosTiffMetadataWriterClass {
- PhotoFileMetadataWriterClass parent_class;
-};
-
-
-static gpointer photos_tiff_file_format_driver_parent_class = NULL;
-static PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_instance;
-static PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_instance = NULL;
-static gpointer photos_tiff_file_format_properties_parent_class = NULL;
-static gchar** photos_tiff_file_format_properties_KNOWN_EXTENSIONS;
-static gint photos_tiff_file_format_properties_KNOWN_EXTENSIONS_length1;
-static gchar** photos_tiff_file_format_properties_KNOWN_EXTENSIONS = NULL;
-static gint photos_tiff_file_format_properties_KNOWN_EXTENSIONS_length1 = 0;
-static gint _photos_tiff_file_format_properties_KNOWN_EXTENSIONS_size_ = 0;
-static gchar** photos_tiff_file_format_properties_KNOWN_MIME_TYPES;
-static gint photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1;
-static gchar** photos_tiff_file_format_properties_KNOWN_MIME_TYPES = NULL;
-static gint photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1 = 0;
-static gint _photos_tiff_file_format_properties_KNOWN_MIME_TYPES_size_ = 0;
-static PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_instance;
-static PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_instance = NULL;
-static gpointer photos_tiff_sniffer_parent_class = NULL;
-static gpointer photos_tiff_reader_parent_class = NULL;
-static gpointer photos_tiff_writer_parent_class = NULL;
-static gpointer photos_tiff_metadata_writer_parent_class = NULL;
-
-gpointer photo_file_format_driver_ref (gpointer instance);
-void photo_file_format_driver_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_driver (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_driver (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_driver (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_driver (const GValue* value);
-GType photo_file_format_driver_get_type (void) G_GNUC_CONST;
-gpointer photo_file_format_properties_ref (gpointer instance);
-void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value,
- gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_format_properties (const GValue* value);
-GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
-gpointer photo_file_adapter_ref (gpointer instance);
-void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value,
- gpointer v_object);
-void value_take_photo_file_adapter (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_adapter (const GValue* value);
-GType photo_file_adapter_get_type (void) G_GNUC_CONST;
-GType photo_file_reader_get_type (void) G_GNUC_CONST;
-gpointer media_metadata_ref (gpointer instance);
-void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_metadata (GValue* value,
- gpointer v_object);
-void value_take_media_metadata (GValue* value,
- gpointer v_object);
-gpointer value_get_media_metadata (const GValue* value);
-GType media_metadata_get_type (void) G_GNUC_CONST;
-GType photo_metadata_get_type (void) G_GNUC_CONST;
-GType photo_file_writer_get_type (void) G_GNUC_CONST;
-GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
-GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
-gpointer photo_file_sniffer_ref (gpointer instance);
-void photo_file_sniffer_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_sniffer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_photo_file_sniffer (GValue* value,
- gpointer v_object);
-void value_take_photo_file_sniffer (GValue* value,
- gpointer v_object);
-gpointer value_get_photo_file_sniffer (const GValue* value);
-GType photo_file_sniffer_get_type (void) G_GNUC_CONST;
-GType photos_tiff_file_format_driver_get_type (void) G_GNUC_CONST;
-void photos_tiff_file_format_driver_init (void);
-PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_new (void);
-PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_construct (GType object_type);
-void photos_tiff_file_format_properties_init (void);
-PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_get_instance (void);
-static PhotoFileFormatProperties* photos_tiff_file_format_driver_real_get_properties (PhotoFileFormatDriver* base);
-GType photos_tiff_file_format_properties_get_type (void) G_GNUC_CONST;
-PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_get_instance (void);
-static PhotoFileReader* photos_tiff_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath);
-PhotosTiffReader* photos_tiff_reader_new (const gchar* filepath);
-PhotosTiffReader* photos_tiff_reader_construct (GType object_type,
- const gchar* filepath);
-GType gdk_reader_get_type (void) G_GNUC_CONST;
-GType photos_tiff_reader_get_type (void) G_GNUC_CONST;
-static PhotoMetadata* photos_tiff_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base);
-PhotoMetadata* photo_metadata_new (void);
-PhotoMetadata* photo_metadata_construct (GType object_type);
-static gboolean photos_tiff_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base);
-static gboolean photos_tiff_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base);
-static PhotoFileWriter* photos_tiff_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-PhotosTiffWriter* photos_tiff_writer_new (const gchar* filepath);
-PhotosTiffWriter* photos_tiff_writer_construct (GType object_type,
- const gchar* filepath);
-GType photos_tiff_writer_get_type (void) G_GNUC_CONST;
-static PhotoFileMetadataWriter* photos_tiff_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath);
-PhotosTiffMetadataWriter* photos_tiff_metadata_writer_new (const gchar* filepath);
-PhotosTiffMetadataWriter* photos_tiff_metadata_writer_construct (GType object_type,
- const gchar* filepath);
-GType photos_tiff_metadata_writer_get_type (void) G_GNUC_CONST;
-static PhotoFileSniffer* photos_tiff_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options);
-PhotosTiffSniffer* photos_tiff_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options);
-PhotosTiffSniffer* photos_tiff_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-GType gdk_sniffer_get_type (void) G_GNUC_CONST;
-GType photos_tiff_sniffer_get_type (void) G_GNUC_CONST;
-PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type);
-static void photos_tiff_file_format_driver_finalize (PhotoFileFormatDriver * obj);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-GType photo_file_format_flags_get_type (void) G_GNUC_CONST;
-PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_new (void);
-PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_construct (GType object_type);
-static PhotoFileFormat photos_tiff_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base);
-static PhotoFileFormatFlags photos_tiff_file_format_properties_real_get_flags (PhotoFileFormatProperties* base);
-static gchar* photos_tiff_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base);
-static gchar* photos_tiff_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base);
-static gchar** photos_tiff_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup14 (gchar** self,
- int length);
-static gchar* photos_tiff_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base);
-static gchar** photos_tiff_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1);
-static gchar** _vala_array_dup15 (gchar** self,
- int length);
-PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type);
-static void photos_tiff_file_format_properties_finalize (PhotoFileFormatProperties * obj);
-gpointer detected_photo_information_ref (gpointer instance);
-void detected_photo_information_unref (gpointer instance);
-GParamSpec* param_spec_detected_photo_information (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_detected_photo_information (GValue* value,
- gpointer v_object);
-void value_take_detected_photo_information (GValue* value,
- gpointer v_object);
-gpointer value_get_detected_photo_information (const GValue* value);
-GType detected_photo_information_get_type (void) G_GNUC_CONST;
-GdkSniffer* gdk_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options);
-static DetectedPhotoInformation* photos_tiff_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error);
-gboolean photos_is_tiff (GFile* file,
- GCancellable* cancellable,
- GError** error);
-DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self,
- gboolean* is_corrupted,
- GError** error);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-GdkReader* gdk_reader_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-#define PHOTOS_TIFF_WRITER_COMPRESSION_NONE "1"
-#define PHOTOS_TIFF_WRITER_COMPRESSION_HUFFMAN "2"
-#define PHOTOS_TIFF_WRITER_COMPRESSION_LZW "5"
-#define PHOTOS_TIFF_WRITER_COMPRESSION_JPEG "7"
-#define PHOTOS_TIFF_WRITER_COMPRESSION_DEFLATE "8"
-PhotoFileWriter* photo_file_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static void photos_tiff_writer_real_write (PhotoFileWriter* base,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error);
-gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
-PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type,
- const gchar* filepath,
- PhotoFileFormat file_format);
-static void photos_tiff_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base,
- PhotoMetadata* metadata,
- GError** error);
-void photo_metadata_write_to_file (PhotoMetadata* self,
- GFile* file,
- GError** error);
-GFile* photo_file_adapter_get_file (PhotoFileAdapter* self);
-
-
-void
-photos_tiff_file_format_driver_init (void)
-{
- PhotosTiffFileFormatDriver* _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_file_format_driver_new ();
-#line 13 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _photo_file_format_driver_unref0 (photos_tiff_file_format_driver_instance);
-#line 13 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_driver_instance = _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_properties_init ();
-#line 677 "TiffSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_driver_ref0 (gpointer self)
-{
-#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self ? photo_file_format_driver_ref (self) : NULL;
-#line 686 "TiffSupport.c"
-}
-
-
-PhotosTiffFileFormatDriver*
-photos_tiff_file_format_driver_get_instance (void)
-{
- PhotosTiffFileFormatDriver* result = NULL;
- PhotosTiffFileFormatDriver* _tmp0_;
- PhotosTiffFileFormatDriver* _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_file_format_driver_instance;
-#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_);
-#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 704 "TiffSupport.c"
-}
-
-
-static PhotoFileFormatProperties*
-photos_tiff_file_format_driver_real_get_properties (PhotoFileFormatDriver* base)
-{
- PhotosTiffFileFormatDriver * self;
- PhotoFileFormatProperties* result = NULL;
- PhotosTiffFileFormatProperties* _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 22 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_file_format_properties_get_instance ();
-#line 22 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties);
-#line 22 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 722 "TiffSupport.c"
-}
-
-
-static PhotoFileReader*
-photos_tiff_file_format_driver_real_create_reader (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PhotosTiffFileFormatDriver * self;
- PhotoFileReader* result = NULL;
- PhotosTiffReader* _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 25 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 26 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_reader_new (filepath);
-#line 26 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader);
-#line 26 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 743 "TiffSupport.c"
-}
-
-
-static PhotoMetadata*
-photos_tiff_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base)
-{
- PhotosTiffFileFormatDriver * self;
- PhotoMetadata* result = NULL;
- PhotoMetadata* _tmp0_;
-#line 29 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 30 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photo_metadata_new ();
-#line 30 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 761 "TiffSupport.c"
-}
-
-
-static gboolean
-photos_tiff_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base)
-{
- PhotosTiffFileFormatDriver * self;
- gboolean result = FALSE;
-#line 33 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 34 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = TRUE;
-#line 34 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 776 "TiffSupport.c"
-}
-
-
-static gboolean
-photos_tiff_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base)
-{
- PhotosTiffFileFormatDriver * self;
- gboolean result = FALSE;
-#line 37 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 38 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = TRUE;
-#line 38 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 791 "TiffSupport.c"
-}
-
-
-static PhotoFileWriter*
-photos_tiff_file_format_driver_real_create_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PhotosTiffFileFormatDriver * self;
- PhotoFileWriter* result = NULL;
- PhotosTiffWriter* _tmp0_;
-#line 41 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 41 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 42 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_writer_new (filepath);
-#line 42 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_WRITER, PhotoFileWriter);
-#line 42 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 812 "TiffSupport.c"
-}
-
-
-static PhotoFileMetadataWriter*
-photos_tiff_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base,
- const gchar* filepath)
-{
- PhotosTiffFileFormatDriver * self;
- PhotoFileMetadataWriter* result = NULL;
- PhotosTiffMetadataWriter* _tmp0_;
-#line 45 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 45 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 46 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_metadata_writer_new (filepath);
-#line 46 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter);
-#line 46 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 833 "TiffSupport.c"
-}
-
-
-static PhotoFileSniffer*
-photos_tiff_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PhotosTiffFileFormatDriver * self;
- PhotoFileSniffer* result = NULL;
- PhotosTiffSniffer* _tmp0_;
-#line 49 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 49 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 50 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_sniffer_new (file, options);
-#line 50 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer);
-#line 50 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 855 "TiffSupport.c"
-}
-
-
-PhotosTiffFileFormatDriver*
-photos_tiff_file_format_driver_construct (GType object_type)
-{
- PhotosTiffFileFormatDriver* self = NULL;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = (PhotosTiffFileFormatDriver*) photo_file_format_driver_construct (object_type);
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self;
-#line 867 "TiffSupport.c"
-}
-
-
-PhotosTiffFileFormatDriver*
-photos_tiff_file_format_driver_new (void)
-{
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return photos_tiff_file_format_driver_construct (PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER);
-#line 876 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_file_format_driver_class_init (PhotosTiffFileFormatDriverClass * klass)
-{
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_driver_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->finalize = photos_tiff_file_format_driver_finalize;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) photos_tiff_file_format_driver_real_get_properties;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) photos_tiff_file_format_driver_real_create_reader;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) photos_tiff_file_format_driver_real_create_metadata;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) photos_tiff_file_format_driver_real_can_write_image;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) photos_tiff_file_format_driver_real_can_write_metadata;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photos_tiff_file_format_driver_real_create_writer;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photos_tiff_file_format_driver_real_create_metadata_writer;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) photos_tiff_file_format_driver_real_create_sniffer;
-#line 903 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_file_format_driver_instance_init (PhotosTiffFileFormatDriver * self)
-{
-}
-
-
-static void
-photos_tiff_file_format_driver_finalize (PhotoFileFormatDriver * obj)
-{
- PhotosTiffFileFormatDriver * self;
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver);
-#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- PHOTO_FILE_FORMAT_DRIVER_CLASS (photos_tiff_file_format_driver_parent_class)->finalize (obj);
-#line 921 "TiffSupport.c"
-}
-
-
-GType
-photos_tiff_file_format_driver_get_type (void)
-{
- static volatile gsize photos_tiff_file_format_driver_type_id__volatile = 0;
- if (g_once_init_enter (&photos_tiff_file_format_driver_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffFileFormatDriver), 0, (GInstanceInitFunc) photos_tiff_file_format_driver_instance_init, NULL };
- GType photos_tiff_file_format_driver_type_id;
- photos_tiff_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "PhotosTiffFileFormatDriver", &g_define_type_info, 0);
- g_once_init_leave (&photos_tiff_file_format_driver_type_id__volatile, photos_tiff_file_format_driver_type_id);
- }
- return photos_tiff_file_format_driver_type_id__volatile;
-}
-
-
-void
-photos_tiff_file_format_properties_init (void)
-{
- PhotosTiffFileFormatProperties* _tmp0_;
-#line 66 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_file_format_properties_new ();
-#line 66 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _photo_file_format_properties_unref0 (photos_tiff_file_format_properties_instance);
-#line 66 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_properties_instance = _tmp0_;
-#line 949 "TiffSupport.c"
-}
-
-
-static gpointer
-_photo_file_format_properties_ref0 (gpointer self)
-{
-#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self ? photo_file_format_properties_ref (self) : NULL;
-#line 958 "TiffSupport.c"
-}
-
-
-PhotosTiffFileFormatProperties*
-photos_tiff_file_format_properties_get_instance (void)
-{
- PhotosTiffFileFormatProperties* result = NULL;
- PhotosTiffFileFormatProperties* _tmp0_;
- PhotosTiffFileFormatProperties* _tmp1_;
-#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_file_format_properties_instance;
-#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_);
-#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp1_;
-#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 976 "TiffSupport.c"
-}
-
-
-static PhotoFileFormat
-photos_tiff_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base)
-{
- PhotosTiffFileFormatProperties * self;
- PhotoFileFormat result = 0;
-#line 73 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties);
-#line 74 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = PHOTO_FILE_FORMAT_TIFF;
-#line 74 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 991 "TiffSupport.c"
-}
-
-
-static PhotoFileFormatFlags
-photos_tiff_file_format_properties_real_get_flags (PhotoFileFormatProperties* base)
-{
- PhotosTiffFileFormatProperties * self;
- PhotoFileFormatFlags result = 0;
-#line 77 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties);
-#line 78 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = PHOTO_FILE_FORMAT_FLAGS_NONE;
-#line 78 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1006 "TiffSupport.c"
-}
-
-
-static gchar*
-photos_tiff_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base)
-{
- PhotosTiffFileFormatProperties * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties);
-#line 82 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = g_strdup ("tif");
-#line 82 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp0_;
-#line 82 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1024 "TiffSupport.c"
-}
-
-
-static gchar*
-photos_tiff_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base)
-{
- PhotosTiffFileFormatProperties * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties);
-#line 86 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = g_strdup (_ ("TIFF"));
-#line 86 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp0_;
-#line 86 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1042 "TiffSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup14 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- for (i = 0; i < length; i++) {
-#line 1056 "TiffSupport.c"
- gchar* _tmp0_;
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result[i] = _tmp0_;
-#line 1062 "TiffSupport.c"
- }
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1066 "TiffSupport.c"
-}
-
-
-static gchar**
-photos_tiff_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- PhotosTiffFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 89 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties);
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_file_format_properties_KNOWN_EXTENSIONS;
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0__length1 = photos_tiff_file_format_properties_KNOWN_EXTENSIONS_length1;
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup14 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp2_ = _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (result_length1) {
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 1100 "TiffSupport.c"
- }
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp2_;
-#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1106 "TiffSupport.c"
-}
-
-
-static gchar*
-photos_tiff_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base)
-{
- PhotosTiffFileFormatProperties * self;
- gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 93 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties);
-#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_file_format_properties_KNOWN_MIME_TYPES;
-#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0__length1 = photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = _tmp0_[0];
-#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp2_;
-#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1133 "TiffSupport.c"
-}
-
-
-static gchar**
-_vala_array_dup15 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = g_new0 (gchar*, length + 1);
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- for (i = 0; i < length; i++) {
-#line 1147 "TiffSupport.c"
- gchar* _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result[i] = _tmp0_;
-#line 1153 "TiffSupport.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1157 "TiffSupport.c"
-}
-
-
-static gchar**
-photos_tiff_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base,
- int* result_length1)
-{
- PhotosTiffFileFormatProperties * self;
- gchar** result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
-#line 97 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties);
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_tiff_file_format_properties_KNOWN_MIME_TYPES;
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0__length1 = photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1;
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup15 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp2_ = _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (result_length1) {
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- *result_length1 = _tmp2__length1;
-#line 1191 "TiffSupport.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp2_;
-#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1197 "TiffSupport.c"
-}
-
-
-PhotosTiffFileFormatProperties*
-photos_tiff_file_format_properties_construct (GType object_type)
-{
- PhotosTiffFileFormatProperties* self = NULL;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = (PhotosTiffFileFormatProperties*) photo_file_format_properties_construct (object_type);
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self;
-#line 1209 "TiffSupport.c"
-}
-
-
-PhotosTiffFileFormatProperties*
-photos_tiff_file_format_properties_new (void)
-{
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return photos_tiff_file_format_properties_construct (PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES);
-#line 1218 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_file_format_properties_class_init (PhotosTiffFileFormatPropertiesClass * klass)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar** _tmp2_;
- gchar* _tmp3_;
- gchar** _tmp4_;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_properties_parent_class = g_type_class_peek_parent (klass);
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->finalize = photos_tiff_file_format_properties_finalize;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_file_format;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_flags;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_default_extension;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_user_visible_name;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) photos_tiff_file_format_properties_real_get_known_extensions;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_default_mime_type;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) photos_tiff_file_format_properties_real_get_mime_types;
-#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = g_strdup ("tif");
-#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = g_strdup ("tiff");
-#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp2_ = g_new0 (gchar*, 2 + 1);
-#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp2_[0] = _tmp0_;
-#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp2_[1] = _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_properties_KNOWN_EXTENSIONS = _tmp2_;
-#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_properties_KNOWN_EXTENSIONS_length1 = 2;
-#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp3_ = g_strdup ("image/tiff");
-#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp4_ = g_new0 (gchar*, 1 + 1);
-#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp4_[0] = _tmp3_;
-#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_properties_KNOWN_MIME_TYPES = _tmp4_;
-#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1 = 1;
-#line 1272 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_file_format_properties_instance_init (PhotosTiffFileFormatProperties * self)
-{
-}
-
-
-static void
-photos_tiff_file_format_properties_finalize (PhotoFileFormatProperties * obj)
-{
- PhotosTiffFileFormatProperties * self;
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties);
-#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- PHOTO_FILE_FORMAT_PROPERTIES_CLASS (photos_tiff_file_format_properties_parent_class)->finalize (obj);
-#line 1290 "TiffSupport.c"
-}
-
-
-GType
-photos_tiff_file_format_properties_get_type (void)
-{
- static volatile gsize photos_tiff_file_format_properties_type_id__volatile = 0;
- if (g_once_init_enter (&photos_tiff_file_format_properties_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffFileFormatProperties), 0, (GInstanceInitFunc) photos_tiff_file_format_properties_instance_init, NULL };
- GType photos_tiff_file_format_properties_type_id;
- photos_tiff_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "PhotosTiffFileFormatProperties", &g_define_type_info, 0);
- g_once_init_leave (&photos_tiff_file_format_properties_type_id__volatile, photos_tiff_file_format_properties_type_id);
- }
- return photos_tiff_file_format_properties_type_id__volatile;
-}
-
-
-PhotosTiffSniffer*
-photos_tiff_sniffer_construct (GType object_type,
- GFile* file,
- PhotoFileSnifferOptions options)
-{
- PhotosTiffSniffer* self = NULL;
-#line 103 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 104 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = (PhotosTiffSniffer*) gdk_sniffer_construct (object_type, file, options);
-#line 103 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self;
-#line 1320 "TiffSupport.c"
-}
-
-
-PhotosTiffSniffer*
-photos_tiff_sniffer_new (GFile* file,
- PhotoFileSnifferOptions options)
-{
-#line 103 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return photos_tiff_sniffer_construct (PHOTOS_TYPE_TIFF_SNIFFER, file, options);
-#line 1330 "TiffSupport.c"
-}
-
-
-static gpointer
-_detected_photo_information_ref0 (gpointer self)
-{
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self ? detected_photo_information_ref (self) : NULL;
-#line 1339 "TiffSupport.c"
-}
-
-
-static DetectedPhotoInformation*
-photos_tiff_sniffer_real_sniff (PhotoFileSniffer* base,
- gboolean* is_corrupted,
- GError** error)
-{
- PhotosTiffSniffer * self;
- gboolean _vala_is_corrupted = FALSE;
- DetectedPhotoInformation* result = NULL;
- gboolean _tmp0_ = FALSE;
- GFile* _tmp1_;
- DetectedPhotoInformation* detected = NULL;
- gboolean _tmp2_ = FALSE;
- DetectedPhotoInformation* _tmp3_;
- DetectedPhotoInformation* _tmp4_;
- DetectedPhotoInformation* _tmp5_ = NULL;
- DetectedPhotoInformation* _tmp6_;
- PhotoFileFormat _tmp7_;
- DetectedPhotoInformation* _tmp9_;
- GError * _inner_error_ = NULL;
-#line 107 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_SNIFFER, PhotosTiffSniffer);
-#line 109 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _vala_is_corrupted = FALSE;
-#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file;
-#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photos_is_tiff (_tmp1_, NULL, &_inner_error_);
-#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return NULL;
-#line 1376 "TiffSupport.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (!_tmp0_) {
-#line 112 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = NULL;
-#line 112 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (is_corrupted) {
-#line 112 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1386 "TiffSupport.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1390 "TiffSupport.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp3_ = PHOTO_FILE_SNIFFER_CLASS (photos_tiff_sniffer_parent_class)->sniff (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_GDK_SNIFFER, GdkSniffer), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer), &_tmp2_, &_inner_error_);
-#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _vala_is_corrupted = _tmp2_;
-#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- detected = _tmp3_;
-#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return NULL;
-#line 1404 "TiffSupport.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp4_ = detected;
-#line 115 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (_tmp4_ == NULL) {
-#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = NULL;
-#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (is_corrupted) {
-#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1418 "TiffSupport.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1422 "TiffSupport.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp6_ = detected;
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp7_ = _tmp6_->file_format;
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (_tmp7_ == PHOTO_FILE_FORMAT_TIFF) {
-#line 1430 "TiffSupport.c"
- DetectedPhotoInformation* _tmp8_;
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp8_ = detected;
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp5_ = _tmp8_;
-#line 1436 "TiffSupport.c"
- } else {
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp5_ = NULL;
-#line 1440 "TiffSupport.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp9_ = _detected_photo_information_ref0 (_tmp5_);
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = _tmp9_;
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _detected_photo_information_unref0 (detected);
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (is_corrupted) {
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- *is_corrupted = _vala_is_corrupted;
-#line 1452 "TiffSupport.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1456 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_sniffer_class_init (PhotosTiffSnifferClass * klass)
-{
-#line 102 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 102 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) photos_tiff_sniffer_real_sniff;
-#line 1467 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_sniffer_instance_init (PhotosTiffSniffer * self)
-{
-}
-
-
-GType
-photos_tiff_sniffer_get_type (void)
-{
- static volatile gsize photos_tiff_sniffer_type_id__volatile = 0;
- if (g_once_init_enter (&photos_tiff_sniffer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffSniffer), 0, (GInstanceInitFunc) photos_tiff_sniffer_instance_init, NULL };
- GType photos_tiff_sniffer_type_id;
- photos_tiff_sniffer_type_id = g_type_register_static (TYPE_GDK_SNIFFER, "PhotosTiffSniffer", &g_define_type_info, 0);
- g_once_init_leave (&photos_tiff_sniffer_type_id__volatile, photos_tiff_sniffer_type_id);
- }
- return photos_tiff_sniffer_type_id__volatile;
-}
-
-
-PhotosTiffReader*
-photos_tiff_reader_construct (GType object_type,
- const gchar* filepath)
-{
- PhotosTiffReader* self = NULL;
-#line 123 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 124 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = (PhotosTiffReader*) gdk_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_TIFF);
-#line 123 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self;
-#line 1502 "TiffSupport.c"
-}
-
-
-PhotosTiffReader*
-photos_tiff_reader_new (const gchar* filepath)
-{
-#line 123 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return photos_tiff_reader_construct (PHOTOS_TYPE_TIFF_READER, filepath);
-#line 1511 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_reader_class_init (PhotosTiffReaderClass * klass)
-{
-#line 122 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_reader_parent_class = g_type_class_peek_parent (klass);
-#line 1520 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_reader_instance_init (PhotosTiffReader * self)
-{
-}
-
-
-GType
-photos_tiff_reader_get_type (void)
-{
- static volatile gsize photos_tiff_reader_type_id__volatile = 0;
- if (g_once_init_enter (&photos_tiff_reader_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffReader), 0, (GInstanceInitFunc) photos_tiff_reader_instance_init, NULL };
- GType photos_tiff_reader_type_id;
- photos_tiff_reader_type_id = g_type_register_static (TYPE_GDK_READER, "PhotosTiffReader", &g_define_type_info, 0);
- g_once_init_leave (&photos_tiff_reader_type_id__volatile, photos_tiff_reader_type_id);
- }
- return photos_tiff_reader_type_id__volatile;
-}
-
-
-PhotosTiffWriter*
-photos_tiff_writer_construct (GType object_type,
- const gchar* filepath)
-{
- PhotosTiffWriter* self = NULL;
-#line 135 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 136 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = (PhotosTiffWriter*) photo_file_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_TIFF);
-#line 135 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self;
-#line 1555 "TiffSupport.c"
-}
-
-
-PhotosTiffWriter*
-photos_tiff_writer_new (const gchar* filepath)
-{
-#line 135 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return photos_tiff_writer_construct (PHOTOS_TYPE_TIFF_WRITER, filepath);
-#line 1564 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_writer_real_write (PhotoFileWriter* base,
- GdkPixbuf* pixbuf,
- JpegQuality quality,
- GError** error)
-{
- PhotosTiffWriter * self;
- gchar* _tmp0_;
- gchar* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 139 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_WRITER, PhotosTiffWriter);
-#line 139 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = _tmp0_;
-#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- gdk_pixbuf_save (pixbuf, _tmp1_, "tiff", &_inner_error_, "compression", PHOTOS_TIFF_WRITER_COMPRESSION_LZW, NULL);
-#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_free0 (_tmp1_);
-#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return;
-#line 1596 "TiffSupport.c"
- }
-}
-
-
-static void
-photos_tiff_writer_class_init (PhotosTiffWriterClass * klass)
-{
-#line 128 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_writer_parent_class = g_type_class_peek_parent (klass);
-#line 128 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) photos_tiff_writer_real_write;
-#line 1608 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_writer_instance_init (PhotosTiffWriter * self)
-{
-}
-
-
-GType
-photos_tiff_writer_get_type (void)
-{
- static volatile gsize photos_tiff_writer_type_id__volatile = 0;
- if (g_once_init_enter (&photos_tiff_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffWriter), 0, (GInstanceInitFunc) photos_tiff_writer_instance_init, NULL };
- GType photos_tiff_writer_type_id;
- photos_tiff_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_WRITER, "PhotosTiffWriter", &g_define_type_info, 0);
- g_once_init_leave (&photos_tiff_writer_type_id__volatile, photos_tiff_writer_type_id);
- }
- return photos_tiff_writer_type_id__volatile;
-}
-
-
-PhotosTiffMetadataWriter*
-photos_tiff_metadata_writer_construct (GType object_type,
- const gchar* filepath)
-{
- PhotosTiffMetadataWriter* self = NULL;
-#line 145 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (filepath != NULL, NULL);
-#line 146 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = (PhotosTiffMetadataWriter*) photo_file_metadata_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_TIFF);
-#line 145 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return self;
-#line 1643 "TiffSupport.c"
-}
-
-
-PhotosTiffMetadataWriter*
-photos_tiff_metadata_writer_new (const gchar* filepath)
-{
-#line 145 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return photos_tiff_metadata_writer_construct (PHOTOS_TYPE_TIFF_METADATA_WRITER, filepath);
-#line 1652 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base,
- PhotoMetadata* metadata,
- GError** error)
-{
- PhotosTiffMetadataWriter * self;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 149 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_METADATA_WRITER, PhotosTiffMetadataWriter);
-#line 149 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_if_fail (IS_PHOTO_METADATA (metadata));
-#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
-#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photo_metadata_write_to_file (metadata, _tmp1_, &_inner_error_);
-#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (_tmp1_);
-#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return;
-#line 1683 "TiffSupport.c"
- }
-}
-
-
-static void
-photos_tiff_metadata_writer_class_init (PhotosTiffMetadataWriterClass * klass)
-{
-#line 144 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- photos_tiff_metadata_writer_parent_class = g_type_class_peek_parent (klass);
-#line 144 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) photos_tiff_metadata_writer_real_write_metadata;
-#line 1695 "TiffSupport.c"
-}
-
-
-static void
-photos_tiff_metadata_writer_instance_init (PhotosTiffMetadataWriter * self)
-{
-}
-
-
-GType
-photos_tiff_metadata_writer_get_type (void)
-{
- static volatile gsize photos_tiff_metadata_writer_type_id__volatile = 0;
- if (g_once_init_enter (&photos_tiff_metadata_writer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffMetadataWriter), 0, (GInstanceInitFunc) photos_tiff_metadata_writer_instance_init, NULL };
- GType photos_tiff_metadata_writer_type_id;
- photos_tiff_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_METADATA_WRITER, "PhotosTiffMetadataWriter", &g_define_type_info, 0);
- g_once_init_leave (&photos_tiff_metadata_writer_type_id__volatile, photos_tiff_metadata_writer_type_id);
- }
- return photos_tiff_metadata_writer_type_id__volatile;
-}
-
-
-gboolean
-photos_is_tiff (GFile* file,
- GCancellable* cancellable,
- GError** error)
-{
- gboolean result = FALSE;
- GFileInputStream* _tmp0_ = NULL;
- GFileInputStream* _tmp1_;
- GDataInputStream* dins = NULL;
- GDataInputStream* _tmp3_;
- GDataStreamByteOrder order = 0;
- guint16 _tmp4_ = 0U;
- GDataInputStream* _tmp5_;
- GDataInputStream* _tmp7_;
- GDataStreamByteOrder _tmp8_;
- guint16 lue = 0U;
- GDataInputStream* _tmp9_;
- guint16 _tmp11_;
- GError * _inner_error_ = NULL;
-#line 154 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 154 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), FALSE);
-#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp1_ = g_file_read (file, NULL, &_inner_error_);
-#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp0_ = _tmp1_;
-#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1748 "TiffSupport.c"
- gboolean _tmp2_ = FALSE;
-#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return _tmp2_;
-#line 1754 "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_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"
- _tmp5_ = dins;
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp4_ = g_data_input_stream_read_uint16 (_tmp5_, cancellable, &_inner_error_);
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1766 "TiffSupport.c"
- gboolean _tmp6_ = FALSE;
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (dins);
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (_tmp0_);
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return _tmp6_;
-#line 1776 "TiffSupport.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- switch (_tmp4_) {
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- case 0x4949:
-#line 1782 "TiffSupport.c"
- {
-#line 161 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- order = G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN;
-#line 162 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- break;
-#line 1788 "TiffSupport.c"
- }
-#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- case 0x4D4D:
-#line 1792 "TiffSupport.c"
- {
-#line 165 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- order = G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN;
-#line 166 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- break;
-#line 1798 "TiffSupport.c"
- }
- default:
- {
-#line 169 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = FALSE;
-#line 169 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (dins);
-#line 169 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (_tmp0_);
-#line 169 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1810 "TiffSupport.c"
- }
- }
-#line 172 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp7_ = dins;
-#line 172 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp8_ = order;
-#line 172 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_data_input_stream_set_byte_order (_tmp7_, _tmp8_);
-#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp9_ = dins;
-#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- lue = g_data_input_stream_read_uint16 (_tmp9_, cancellable, &_inner_error_);
-#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1825 "TiffSupport.c"
- gboolean _tmp10_ = FALSE;
-#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- g_propagate_error (error, _inner_error_);
-#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (dins);
-#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (_tmp0_);
-#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return _tmp10_;
-#line 1835 "TiffSupport.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _tmp11_ = lue;
-#line 176 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- if (((gint) _tmp11_) != 42) {
-#line 177 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = FALSE;
-#line 177 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (dins);
-#line 177 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (_tmp0_);
-#line 177 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1849 "TiffSupport.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- result = TRUE;
-#line 180 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (dins);
-#line 180 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- _g_object_unref0 (_tmp0_);
-#line 180 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala"
- return result;
-#line 1859 "TiffSupport.c"
-}
-
-
-
diff --git a/src/plugins/DataImportsInterfaces.c b/src/plugins/DataImportsInterfaces.c
deleted file mode 100644
index eb06253..0000000
--- a/src/plugins/DataImportsInterfaces.c
+++ /dev/null
@@ -1,2034 +0,0 @@
-/* DataImportsInterfaces.c generated by valac 0.40.4, the Vala compiler
- * generated from DataImportsInterfaces.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <float.h>
-#include <math.h>
-#include <gtk/gtk.h>
-#include <time.h>
-
-
-#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER (spit_data_imports_data_importer_get_type ())
-#define SPIT_DATA_IMPORTS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER))
-#define SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporterIface))
-
-typedef struct _SpitDataImportsDataImporter SpitDataImportsDataImporter;
-typedef struct _SpitDataImportsDataImporterIface SpitDataImportsDataImporterIface;
-
-#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ())
-#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable))
-#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE))
-#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface))
-
-typedef struct _SpitPluggable SpitPluggable;
-typedef struct _SpitPluggableIface SpitPluggableIface;
-
-#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ())
-typedef struct _SpitPluggableInfo SpitPluggableInfo;
-
-#define SPIT_DATA_IMPORTS_TYPE_SERVICE (spit_data_imports_service_get_type ())
-#define SPIT_DATA_IMPORTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService))
-#define SPIT_DATA_IMPORTS_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE))
-#define SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsServiceIface))
-
-typedef struct _SpitDataImportsService SpitDataImportsService;
-typedef struct _SpitDataImportsServiceIface SpitDataImportsServiceIface;
-
-#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ())
-#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface))
-#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE))
-#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface))
-
-typedef struct _SpitHostInterface SpitHostInterface;
-typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface;
-
-#define SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST (spit_data_imports_plugin_host_get_type ())
-#define SPIT_DATA_IMPORTS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost))
-#define SPIT_DATA_IMPORTS_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST))
-#define SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHostIface))
-
-typedef struct _SpitDataImportsPluginHost SpitDataImportsPluginHost;
-typedef struct _SpitDataImportsPluginHostIface SpitDataImportsPluginHostIface;
-
-#define SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE (spit_data_imports_dialog_pane_get_type ())
-#define SPIT_DATA_IMPORTS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane))
-#define SPIT_DATA_IMPORTS_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE))
-#define SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPaneIface))
-
-typedef struct _SpitDataImportsDialogPane SpitDataImportsDialogPane;
-typedef struct _SpitDataImportsDialogPaneIface SpitDataImportsDialogPaneIface;
-
-#define SPIT_DATA_IMPORTS_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_data_imports_dialog_pane_geometry_options_get_type ())
-
-#define SPIT_DATA_IMPORTS_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_data_imports_plugin_host_button_mode_get_type ())
-
-#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY (spit_data_imports_importable_library_get_type ())
-#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibrary))
-#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY))
-#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibraryIface))
-
-typedef struct _SpitDataImportsImportableLibrary SpitDataImportsImportableLibrary;
-typedef struct _SpitDataImportsImportableLibraryIface SpitDataImportsImportableLibraryIface;
-
-#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM (spit_data_imports_importable_media_item_get_type ())
-#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem))
-#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM))
-#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItemIface))
-
-typedef struct _SpitDataImportsImportableMediaItem SpitDataImportsImportableMediaItem;
-typedef struct _SpitDataImportsImportableMediaItemIface SpitDataImportsImportableMediaItemIface;
-
-#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG (spit_data_imports_importable_tag_get_type ())
-#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag))
-#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG))
-#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTagIface))
-
-typedef struct _SpitDataImportsImportableTag SpitDataImportsImportableTag;
-typedef struct _SpitDataImportsImportableTagIface SpitDataImportsImportableTagIface;
-
-#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT (spit_data_imports_importable_event_get_type ())
-#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEvent))
-#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT))
-#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEventIface))
-
-typedef struct _SpitDataImportsImportableEvent SpitDataImportsImportableEvent;
-typedef struct _SpitDataImportsImportableEventIface SpitDataImportsImportableEventIface;
-
-#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING (spit_data_imports_importable_rating_get_type ())
-#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRating))
-#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING))
-#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRatingIface))
-
-typedef struct _SpitDataImportsImportableRating SpitDataImportsImportableRating;
-typedef struct _SpitDataImportsImportableRatingIface SpitDataImportsImportableRatingIface;
-
-/**
- * The error domain for alien databases
- */
-typedef enum {
- SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR_UNSUPPORTED_VERSION
-} SpitDataImportsDataImportError;
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR spit_data_imports_data_import_error_quark ()
-struct _SpitPluggableInfo {
- gchar* version;
- gchar* brief_description;
- gchar* authors;
- gchar* copyright;
- gchar* license;
- gboolean is_license_wordwrapped;
- gchar* website_url;
- gchar* website_name;
- gchar* translators;
- GdkPixbuf** icons;
- gint icons_length1;
-};
-
-struct _SpitPluggableIface {
- GTypeInterface parent_iface;
- gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface);
- const gchar* (*get_id) (SpitPluggable* self);
- const gchar* (*get_pluggable_name) (SpitPluggable* self);
- void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info);
- void (*activation) (SpitPluggable* self, gboolean enabled);
- void (*reserved0) (SpitPluggable* self);
- void (*reserved1) (SpitPluggable* self);
- void (*reserved2) (SpitPluggable* self);
- void (*reserved3) (SpitPluggable* self);
- void (*reserved4) (SpitPluggable* self);
- void (*reserved5) (SpitPluggable* self);
- void (*reserved6) (SpitPluggable* self);
- void (*reserved7) (SpitPluggable* self);
-};
-
-struct _SpitHostInterfaceIface {
- GTypeInterface parent_iface;
- GFile* (*get_module_file) (SpitHostInterface* self);
- gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def);
- void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val);
- gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def);
- void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val);
- gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def);
- void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val);
- gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def);
- void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val);
- void (*unset_config_key) (SpitHostInterface* self, const gchar* key);
- void (*reserved0) (SpitHostInterface* self);
- void (*reserved1) (SpitHostInterface* self);
- void (*reserved2) (SpitHostInterface* self);
- void (*reserved3) (SpitHostInterface* self);
- void (*reserved4) (SpitHostInterface* self);
- void (*reserved5) (SpitHostInterface* self);
- void (*reserved6) (SpitHostInterface* self);
- void (*reserved7) (SpitHostInterface* self);
-};
-
-typedef enum {
- SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0,
- SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0,
- SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1,
- SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2
-} SpitDataImportsDialogPaneGeometryOptions;
-
-struct _SpitDataImportsDialogPaneIface {
- GTypeInterface parent_iface;
- GtkWidget* (*get_widget) (SpitDataImportsDialogPane* self);
- SpitDataImportsDialogPaneGeometryOptions (*get_preferred_geometry) (SpitDataImportsDialogPane* self);
- void (*on_pane_installed) (SpitDataImportsDialogPane* self);
- void (*on_pane_uninstalled) (SpitDataImportsDialogPane* self);
- void (*reserved0) (SpitDataImportsDialogPane* self);
- void (*reserved1) (SpitDataImportsDialogPane* self);
- void (*reserved2) (SpitDataImportsDialogPane* self);
- void (*reserved3) (SpitDataImportsDialogPane* self);
- void (*reserved4) (SpitDataImportsDialogPane* self);
- void (*reserved5) (SpitDataImportsDialogPane* self);
- void (*reserved6) (SpitDataImportsDialogPane* self);
- void (*reserved7) (SpitDataImportsDialogPane* self);
-};
-
-typedef enum {
- SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0,
- SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1
-} SpitDataImportsPluginHostButtonMode;
-
-struct _SpitDataImportsImportableLibraryIface {
- GTypeInterface parent_iface;
- gchar* (*get_display_name) (SpitDataImportsImportableLibrary* self);
-};
-
-struct _SpitDataImportsImportableTagIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (SpitDataImportsImportableTag* self);
- SpitDataImportsImportableTag* (*get_parent) (SpitDataImportsImportableTag* self);
-};
-
-struct _SpitDataImportsImportableEventIface {
- GTypeInterface parent_iface;
- gchar* (*get_name) (SpitDataImportsImportableEvent* self);
-};
-
-struct _SpitDataImportsImportableRatingIface {
- GTypeInterface parent_iface;
- gboolean (*is_unrated) (SpitDataImportsImportableRating* self);
- gboolean (*is_rejected) (SpitDataImportsImportableRating* self);
- gint (*get_value) (SpitDataImportsImportableRating* self);
-};
-
-struct _SpitDataImportsImportableMediaItemIface {
- GTypeInterface parent_iface;
- SpitDataImportsImportableTag** (*get_tags) (SpitDataImportsImportableMediaItem* self, int* result_length1);
- SpitDataImportsImportableEvent* (*get_event) (SpitDataImportsImportableMediaItem* self);
- SpitDataImportsImportableRating* (*get_rating) (SpitDataImportsImportableMediaItem* self);
- gchar* (*get_title) (SpitDataImportsImportableMediaItem* self);
- gchar* (*get_folder_path) (SpitDataImportsImportableMediaItem* self);
- gchar* (*get_filename) (SpitDataImportsImportableMediaItem* self);
- time_t* (*get_exposure_time) (SpitDataImportsImportableMediaItem* self);
-};
-
-typedef void (*SpitDataImportsImportedItemsCountCallback) (gint imported_items_count, void* user_data);
-struct _SpitDataImportsPluginHostIface {
- GTypeInterface parent_iface;
- void (*post_error) (SpitDataImportsPluginHost* self, GError* err);
- void (*post_error_message) (SpitDataImportsPluginHost* self, const gchar* msg);
- void (*start_importing) (SpitDataImportsPluginHost* self);
- void (*stop_importing) (SpitDataImportsPluginHost* self);
- SpitDataImportsDataImporter* (*get_data_importer) (SpitDataImportsPluginHost* self);
- void (*install_dialog_pane) (SpitDataImportsPluginHost* self, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode mode);
- void (*install_static_message_pane) (SpitDataImportsPluginHost* self, const gchar* message, SpitDataImportsPluginHostButtonMode mode);
- void (*install_library_selection_pane) (SpitDataImportsPluginHost* self, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
- void (*install_import_progress_pane) (SpitDataImportsPluginHost* self, const gchar* message);
- void (*update_import_progress_pane) (SpitDataImportsPluginHost* self, gdouble progress, const gchar* progress_message);
- void (*prepare_media_items_for_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message);
- void (*finalize_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message);
- void (*reserved0) (SpitDataImportsPluginHost* self);
- void (*reserved1) (SpitDataImportsPluginHost* self);
- void (*reserved2) (SpitDataImportsPluginHost* self);
- void (*reserved3) (SpitDataImportsPluginHost* self);
- void (*reserved4) (SpitDataImportsPluginHost* self);
- void (*reserved5) (SpitDataImportsPluginHost* self);
- void (*reserved6) (SpitDataImportsPluginHost* self);
- void (*reserved7) (SpitDataImportsPluginHost* self);
-};
-
-struct _SpitDataImportsServiceIface {
- GTypeInterface parent_iface;
- SpitDataImportsDataImporter* (*create_data_importer) (SpitDataImportsService* self, SpitDataImportsPluginHost* host);
- void (*reserved0) (SpitDataImportsService* self);
- void (*reserved1) (SpitDataImportsService* self);
- void (*reserved2) (SpitDataImportsService* self);
- void (*reserved3) (SpitDataImportsService* self);
- void (*reserved4) (SpitDataImportsService* self);
- void (*reserved5) (SpitDataImportsService* self);
- void (*reserved6) (SpitDataImportsService* self);
- void (*reserved7) (SpitDataImportsService* self);
-};
-
-struct _SpitDataImportsDataImporterIface {
- GTypeInterface parent_iface;
- SpitDataImportsService* (*get_service) (SpitDataImportsDataImporter* self);
- void (*start) (SpitDataImportsDataImporter* self);
- gboolean (*is_running) (SpitDataImportsDataImporter* self);
- void (*stop) (SpitDataImportsDataImporter* self);
- void (*on_library_selected) (SpitDataImportsDataImporter* self, SpitDataImportsImportableLibrary* library);
- void (*on_file_selected) (SpitDataImportsDataImporter* self, GFile* file);
- void (*reserved0) (SpitDataImportsDataImporter* self);
- void (*reserved1) (SpitDataImportsDataImporter* self);
- void (*reserved2) (SpitDataImportsDataImporter* self);
- void (*reserved3) (SpitDataImportsDataImporter* self);
- void (*reserved4) (SpitDataImportsDataImporter* self);
- void (*reserved5) (SpitDataImportsDataImporter* self);
- void (*reserved6) (SpitDataImportsDataImporter* self);
- void (*reserved7) (SpitDataImportsDataImporter* self);
-};
-
-
-
-#define SPIT_DATA_IMPORTS_CURRENT_INTERFACE 0
-GQuark spit_data_imports_data_import_error_quark (void);
-GType spit_pluggable_info_get_type (void) G_GNUC_CONST;
-SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self);
-void spit_pluggable_info_free (SpitPluggableInfo* self);
-void spit_pluggable_info_copy (const SpitPluggableInfo* self,
- SpitPluggableInfo* dest);
-void spit_pluggable_info_destroy (SpitPluggableInfo* self);
-GType spit_pluggable_get_type (void) G_GNUC_CONST;
-GType spit_host_interface_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_dialog_pane_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_plugin_host_button_mode_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_importable_library_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_importable_tag_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_importable_event_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_importable_rating_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_importable_media_item_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_plugin_host_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_service_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_data_importer_get_type (void) G_GNUC_CONST;
-SpitDataImportsService* spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self);
-gboolean spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self,
- SpitDataImportsImportableLibrary* library);
-void spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self,
- GFile* file);
-void spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self);
-static void spit_data_imports_data_importer_real_reserved0 (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self);
-static void spit_data_imports_data_importer_real_reserved1 (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self);
-static void spit_data_imports_data_importer_real_reserved2 (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self);
-static void spit_data_imports_data_importer_real_reserved3 (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self);
-static void spit_data_imports_data_importer_real_reserved4 (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self);
-static void spit_data_imports_data_importer_real_reserved5 (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self);
-static void spit_data_imports_data_importer_real_reserved6 (SpitDataImportsDataImporter* self);
-void spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self);
-static void spit_data_imports_data_importer_real_reserved7 (SpitDataImportsDataImporter* self);
-gchar* spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self);
-SpitDataImportsImportableTag** spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self,
- int* result_length1);
-SpitDataImportsImportableEvent* spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self);
-SpitDataImportsImportableRating* spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self);
-gchar* spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self);
-gchar* spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self);
-gchar* spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self);
-time_t* spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self);
-gchar* spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self);
-SpitDataImportsImportableTag* spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self);
-gchar* spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self);
-gboolean spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self);
-gboolean spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self);
-gint spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self);
-GtkWidget* spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self);
-SpitDataImportsDialogPaneGeometryOptions spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self);
-static void spit_data_imports_dialog_pane_real_reserved0 (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self);
-static void spit_data_imports_dialog_pane_real_reserved1 (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self);
-static void spit_data_imports_dialog_pane_real_reserved2 (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self);
-static void spit_data_imports_dialog_pane_real_reserved3 (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self);
-static void spit_data_imports_dialog_pane_real_reserved4 (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self);
-static void spit_data_imports_dialog_pane_real_reserved5 (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self);
-static void spit_data_imports_dialog_pane_real_reserved6 (SpitDataImportsDialogPane* self);
-void spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self);
-static void spit_data_imports_dialog_pane_real_reserved7 (SpitDataImportsDialogPane* self);
-void spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self,
- GError* err);
-void spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self,
- const gchar* msg);
-void spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self);
-SpitDataImportsDataImporter* spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self,
- SpitDataImportsDialogPane* pane,
- SpitDataImportsPluginHostButtonMode mode);
-void spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self,
- const gchar* message,
- SpitDataImportsPluginHostButtonMode mode);
-void spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label);
-void spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self,
- const gchar* message);
-void spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self,
- gdouble progress,
- const gchar* progress_message);
-void spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self,
- SpitDataImportsImportableMediaItem** items,
- int items_length1,
- gdouble progress,
- gdouble host_progress_delta,
- const gchar* progress_message);
-void spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self,
- SpitDataImportsImportedItemsCountCallback report_imported_items_count,
- void* report_imported_items_count_target,
- const gchar* finalize_message);
-void spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self);
-static void spit_data_imports_plugin_host_real_reserved0 (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self);
-static void spit_data_imports_plugin_host_real_reserved1 (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self);
-static void spit_data_imports_plugin_host_real_reserved2 (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self);
-static void spit_data_imports_plugin_host_real_reserved3 (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self);
-static void spit_data_imports_plugin_host_real_reserved4 (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self);
-static void spit_data_imports_plugin_host_real_reserved5 (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self);
-static void spit_data_imports_plugin_host_real_reserved6 (SpitDataImportsPluginHost* self);
-void spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self);
-static void spit_data_imports_plugin_host_real_reserved7 (SpitDataImportsPluginHost* self);
-SpitDataImportsDataImporter* spit_data_imports_service_create_data_importer (SpitDataImportsService* self,
- SpitDataImportsPluginHost* host);
-void spit_data_imports_service_reserved0 (SpitDataImportsService* self);
-static void spit_data_imports_service_real_reserved0 (SpitDataImportsService* self);
-void spit_data_imports_service_reserved1 (SpitDataImportsService* self);
-static void spit_data_imports_service_real_reserved1 (SpitDataImportsService* self);
-void spit_data_imports_service_reserved2 (SpitDataImportsService* self);
-static void spit_data_imports_service_real_reserved2 (SpitDataImportsService* self);
-void spit_data_imports_service_reserved3 (SpitDataImportsService* self);
-static void spit_data_imports_service_real_reserved3 (SpitDataImportsService* self);
-void spit_data_imports_service_reserved4 (SpitDataImportsService* self);
-static void spit_data_imports_service_real_reserved4 (SpitDataImportsService* self);
-void spit_data_imports_service_reserved5 (SpitDataImportsService* self);
-static void spit_data_imports_service_real_reserved5 (SpitDataImportsService* self);
-void spit_data_imports_service_reserved6 (SpitDataImportsService* self);
-static void spit_data_imports_service_real_reserved6 (SpitDataImportsService* self);
-void spit_data_imports_service_reserved7 (SpitDataImportsService* self);
-static void spit_data_imports_service_real_reserved7 (SpitDataImportsService* self);
-
-
-GQuark
-spit_data_imports_data_import_error_quark (void)
-{
- return g_quark_from_static_string ("spit_data_imports_data_import_error-quark");
-}
-
-
-/**
- * Returns a {@link Service} object describing the service to which this connects.
- */
-SpitDataImportsService*
-spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self)
-{
-#line 53 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self), NULL);
-#line 53 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->get_service (self);
-#line 465 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Makes this data importer enter the running state and endows it with exclusive access
- * to the shared services provided by the {@link PluginHost}. Through the host’s interface,
- * this data importer can install user interface panes and query configuration information.
- */
-void
-spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self)
-{
-#line 60 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 60 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->start (self);
-#line 481 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Returns true if this data importer is in the running state; false otherwise.
- */
-gboolean
-spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self)
-{
-#line 65 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self), FALSE);
-#line 65 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->is_running (self);
-#line 495 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Causes this data importer to enter a non-running state. This data importer should stop all
- * data access operations and cease use of the shared services provided by the {@link PluginHost}.
- */
-void
-spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self)
-{
-#line 71 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 71 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->stop (self);
-#line 510 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Causes this data importer to enter start the import of a library.
- */
-void
-spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self,
- SpitDataImportsImportableLibrary* library)
-{
-#line 76 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 76 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->on_library_selected (self, library);
-#line 525 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Causes this data importer to enter start the import of a library file.
- */
-void
-spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self,
- GFile* file)
-{
-#line 81 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 81 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->on_file_selected (self, file);
-#line 540 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_real_reserved0 (SpitDataImportsDataImporter* self)
-{
-}
-
-
-void
-spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self)
-{
-#line 86 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 86 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved0 (self);
-#line 557 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_real_reserved1 (SpitDataImportsDataImporter* self)
-{
-}
-
-
-void
-spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self)
-{
-#line 87 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 87 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved1 (self);
-#line 574 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_real_reserved2 (SpitDataImportsDataImporter* self)
-{
-}
-
-
-void
-spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self)
-{
-#line 88 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 88 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved2 (self);
-#line 591 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_real_reserved3 (SpitDataImportsDataImporter* self)
-{
-}
-
-
-void
-spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self)
-{
-#line 89 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 89 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved3 (self);
-#line 608 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_real_reserved4 (SpitDataImportsDataImporter* self)
-{
-}
-
-
-void
-spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self)
-{
-#line 90 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 90 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved4 (self);
-#line 625 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_real_reserved5 (SpitDataImportsDataImporter* self)
-{
-}
-
-
-void
-spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self)
-{
-#line 91 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 91 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved5 (self);
-#line 642 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_real_reserved6 (SpitDataImportsDataImporter* self)
-{
-}
-
-
-void
-spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self)
-{
-#line 92 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 92 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved6 (self);
-#line 659 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_real_reserved7 (SpitDataImportsDataImporter* self)
-{
-}
-
-
-void
-spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self)
-{
-#line 93 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self));
-#line 93 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved7 (self);
-#line 676 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_data_importer_base_init (SpitDataImportsDataImporterIface * iface)
-{
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved0 = spit_data_imports_data_importer_real_reserved0;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved1 = spit_data_imports_data_importer_real_reserved1;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved2 = spit_data_imports_data_importer_real_reserved2;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved3 = spit_data_imports_data_importer_real_reserved3;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved4 = spit_data_imports_data_importer_real_reserved4;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved5 = spit_data_imports_data_importer_real_reserved5;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved6 = spit_data_imports_data_importer_real_reserved6;
-#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved7 = spit_data_imports_data_importer_real_reserved7;
-#line 705 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Represents a module that is able to import data from a specific database format.
- *
- * Developers of data import plugins provide a class that implements this interface. At
- * any given time, only one DataImporter can be running. When a data importer is running, it
- * has exclusive use of the shared user-interface and
- * configuration services provided by the {@link PluginHost}. Data importers are created in
- * a non-running state and do not begin running until start( ) is invoked. Data importers
- * run until stop( ) is invoked.
- */
-GType
-spit_data_imports_data_importer_get_type (void)
-{
- static volatile gsize spit_data_imports_data_importer_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_data_importer_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImporterIface), (GBaseInitFunc) spit_data_imports_data_importer_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_data_importer_type_id;
- spit_data_imports_data_importer_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsDataImporter", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_data_importer_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_data_imports_data_importer_type_id__volatile, spit_data_imports_data_importer_type_id);
- }
- return spit_data_imports_data_importer_type_id__volatile;
-}
-
-
-gchar*
-spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self)
-{
-#line 102 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (self), NULL);
-#line 102 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE (self)->get_display_name (self);
-#line 742 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_importable_library_base_init (SpitDataImportsImportableLibraryIface * iface)
-{
-#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 755 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Represents a library of importable media items.
- *
- * Developers of data import plugins provide a class that implements this interface.
- */
-GType
-spit_data_imports_importable_library_get_type (void)
-{
- static volatile gsize spit_data_imports_importable_library_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_importable_library_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableLibraryIface), (GBaseInitFunc) spit_data_imports_importable_library_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_importable_library_type_id;
- spit_data_imports_importable_library_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableLibrary", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_importable_library_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_data_imports_importable_library_type_id__volatile, spit_data_imports_importable_library_type_id);
- }
- return spit_data_imports_importable_library_type_id__volatile;
-}
-
-
-SpitDataImportsImportableTag**
-spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self,
- int* result_length1)
-{
-#line 111 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL);
-#line 111 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_tags (self, result_length1);
-#line 788 "DataImportsInterfaces.c"
-}
-
-
-SpitDataImportsImportableEvent*
-spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self)
-{
-#line 113 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL);
-#line 113 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_event (self);
-#line 799 "DataImportsInterfaces.c"
-}
-
-
-SpitDataImportsImportableRating*
-spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self)
-{
-#line 115 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL);
-#line 115 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_rating (self);
-#line 810 "DataImportsInterfaces.c"
-}
-
-
-gchar*
-spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self)
-{
-#line 117 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL);
-#line 117 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_title (self);
-#line 821 "DataImportsInterfaces.c"
-}
-
-
-gchar*
-spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self)
-{
-#line 119 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL);
-#line 119 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_folder_path (self);
-#line 832 "DataImportsInterfaces.c"
-}
-
-
-gchar*
-spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self)
-{
-#line 121 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL);
-#line 121 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_filename (self);
-#line 843 "DataImportsInterfaces.c"
-}
-
-
-time_t*
-spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self)
-{
-#line 123 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL);
-#line 123 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_exposure_time (self);
-#line 854 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_importable_media_item_base_init (SpitDataImportsImportableMediaItemIface * iface)
-{
-#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 867 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Represents an importable media item such as a photo or a video file.
- *
- * Developers of data import plugins provide a class that implements this interface.
- */
-GType
-spit_data_imports_importable_media_item_get_type (void)
-{
- static volatile gsize spit_data_imports_importable_media_item_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_importable_media_item_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableMediaItemIface), (GBaseInitFunc) spit_data_imports_importable_media_item_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_importable_media_item_type_id;
- spit_data_imports_importable_media_item_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableMediaItem", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_importable_media_item_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_data_imports_importable_media_item_type_id__volatile, spit_data_imports_importable_media_item_type_id);
- }
- return spit_data_imports_importable_media_item_type_id__volatile;
-}
-
-
-gchar*
-spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self)
-{
-#line 132 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (self), NULL);
-#line 132 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE (self)->get_name (self);
-#line 899 "DataImportsInterfaces.c"
-}
-
-
-SpitDataImportsImportableTag*
-spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self)
-{
-#line 134 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (self), NULL);
-#line 134 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE (self)->get_parent (self);
-#line 910 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_importable_tag_base_init (SpitDataImportsImportableTagIface * iface)
-{
-#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 923 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Represents an importable tag.
- *
- * Developers of data import plugins provide a class that implements this interface.
- */
-GType
-spit_data_imports_importable_tag_get_type (void)
-{
- static volatile gsize spit_data_imports_importable_tag_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_importable_tag_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableTagIface), (GBaseInitFunc) spit_data_imports_importable_tag_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_importable_tag_type_id;
- spit_data_imports_importable_tag_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableTag", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_importable_tag_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_data_imports_importable_tag_type_id__volatile, spit_data_imports_importable_tag_type_id);
- }
- return spit_data_imports_importable_tag_type_id__volatile;
-}
-
-
-gchar*
-spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self)
-{
-#line 143 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT (self), NULL);
-#line 143 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE (self)->get_name (self);
-#line 955 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_importable_event_base_init (SpitDataImportsImportableEventIface * iface)
-{
-#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 968 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Represents an importable event.
- *
- * Developers of data import plugins provide a class that implements this interface.
- */
-GType
-spit_data_imports_importable_event_get_type (void)
-{
- static volatile gsize spit_data_imports_importable_event_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_importable_event_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableEventIface), (GBaseInitFunc) spit_data_imports_importable_event_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_importable_event_type_id;
- spit_data_imports_importable_event_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableEvent", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_importable_event_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_data_imports_importable_event_type_id__volatile, spit_data_imports_importable_event_type_id);
- }
- return spit_data_imports_importable_event_type_id__volatile;
-}
-
-
-gboolean
-spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self)
-{
-#line 155 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), FALSE);
-#line 155 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->is_unrated (self);
-#line 1000 "DataImportsInterfaces.c"
-}
-
-
-gboolean
-spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self)
-{
-#line 157 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), FALSE);
-#line 157 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->is_rejected (self);
-#line 1011 "DataImportsInterfaces.c"
-}
-
-
-gint
-spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self)
-{
-#line 159 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), 0);
-#line 159 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->get_value (self);
-#line 1022 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_importable_rating_base_init (SpitDataImportsImportableRatingIface * iface)
-{
-#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 1035 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Represents an importable rating value.
- *
- * Developers of data import plugins provide a class that implements this interface.
- * Note that the value returned by the get_value method should be a value between
- * 1 and 5, unless the rating object is unrated or rejected, in which case the
- * value is unspecified.
- */
-GType
-spit_data_imports_importable_rating_get_type (void)
-{
- static volatile gsize spit_data_imports_importable_rating_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_importable_rating_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableRatingIface), (GBaseInitFunc) spit_data_imports_importable_rating_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_importable_rating_type_id;
- spit_data_imports_importable_rating_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableRating", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_importable_rating_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_data_imports_importable_rating_type_id__volatile, spit_data_imports_importable_rating_type_id);
- }
- return spit_data_imports_importable_rating_type_id__volatile;
-}
-
-
-/**
- * Describes how the on-screen publishing dialog box should look and behave when an associated
- * pane is installed in the on-screen publishing dialog box.
- */
-GType
-spit_data_imports_dialog_pane_geometry_options_get_type (void)
-{
- static volatile gsize spit_data_imports_dialog_pane_geometry_options_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_dialog_pane_geometry_options_type_id__volatile)) {
- static const GEnumValue values[] = {{SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE", "none"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE", "extended-size"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE", "resizable"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE", "colossal-size"}, {0, NULL, NULL}};
- GType spit_data_imports_dialog_pane_geometry_options_type_id;
- spit_data_imports_dialog_pane_geometry_options_type_id = g_enum_register_static ("SpitDataImportsDialogPaneGeometryOptions", values);
- g_once_init_leave (&spit_data_imports_dialog_pane_geometry_options_type_id__volatile, spit_data_imports_dialog_pane_geometry_options_type_id);
- }
- return spit_data_imports_dialog_pane_geometry_options_type_id__volatile;
-}
-
-
-/**
- * Returns the Gtk.Widget that is this pane's on-screen representation.
- */
-GtkWidget*
-spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self)
-{
-#line 204 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self), NULL);
-#line 204 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->get_widget (self);
-#line 1091 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Returns a {@link GeometryOptions} bitfield describing how the on-screen publishing dialog
- * box should look and behave when this pane is installed.
- */
-SpitDataImportsDialogPaneGeometryOptions
-spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self)
-{
-#line 210 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self), 0);
-#line 210 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->get_preferred_geometry (self);
-#line 1106 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Invoked automatically by Shotwell when this pane has been installed into the on-screen
- * publishing dialog box and become visible to the user.
- */
-void
-spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self)
-{
-#line 216 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 216 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->on_pane_installed (self);
-#line 1121 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Invoked automatically by Shotwell when this pane has been removed from the on-screen
- * publishing dialog box and is no longer visible to the user.
- */
-void
-spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self)
-{
-#line 222 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 222 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->on_pane_uninstalled (self);
-#line 1136 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_real_reserved0 (SpitDataImportsDialogPane* self)
-{
-}
-
-
-void
-spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self)
-{
-#line 227 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 227 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved0 (self);
-#line 1153 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_real_reserved1 (SpitDataImportsDialogPane* self)
-{
-}
-
-
-void
-spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self)
-{
-#line 228 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 228 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved1 (self);
-#line 1170 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_real_reserved2 (SpitDataImportsDialogPane* self)
-{
-}
-
-
-void
-spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self)
-{
-#line 229 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 229 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved2 (self);
-#line 1187 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_real_reserved3 (SpitDataImportsDialogPane* self)
-{
-}
-
-
-void
-spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self)
-{
-#line 230 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 230 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved3 (self);
-#line 1204 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_real_reserved4 (SpitDataImportsDialogPane* self)
-{
-}
-
-
-void
-spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self)
-{
-#line 231 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 231 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved4 (self);
-#line 1221 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_real_reserved5 (SpitDataImportsDialogPane* self)
-{
-}
-
-
-void
-spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self)
-{
-#line 232 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 232 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved5 (self);
-#line 1238 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_real_reserved6 (SpitDataImportsDialogPane* self)
-{
-}
-
-
-void
-spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self)
-{
-#line 233 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 233 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved6 (self);
-#line 1255 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_real_reserved7 (SpitDataImportsDialogPane* self)
-{
-}
-
-
-void
-spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self)
-{
-#line 234 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self));
-#line 234 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved7 (self);
-#line 1272 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_dialog_pane_base_init (SpitDataImportsDialogPaneIface * iface)
-{
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved0 = spit_data_imports_dialog_pane_real_reserved0;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved1 = spit_data_imports_dialog_pane_real_reserved1;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved2 = spit_data_imports_dialog_pane_real_reserved2;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved3 = spit_data_imports_dialog_pane_real_reserved3;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved4 = spit_data_imports_dialog_pane_real_reserved4;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved5 = spit_data_imports_dialog_pane_real_reserved5;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved6 = spit_data_imports_dialog_pane_real_reserved6;
-#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved7 = spit_data_imports_dialog_pane_real_reserved7;
-#line 1301 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Encapsulates a pane that can be installed in the on-screen import dialog box to
- * communicate status to and to get information from the user.
- *
- */
-GType
-spit_data_imports_dialog_pane_get_type (void)
-{
- static volatile gsize spit_data_imports_dialog_pane_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_dialog_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDialogPaneIface), (GBaseInitFunc) spit_data_imports_dialog_pane_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_dialog_pane_type_id;
- spit_data_imports_dialog_pane_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsDialogPane", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_dialog_pane_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_data_imports_dialog_pane_type_id__volatile, spit_data_imports_dialog_pane_type_id);
- }
- return spit_data_imports_dialog_pane_type_id__volatile;
-}
-
-
-/**
- * Specifies the label text on the push button control that appears in the
- * lower-right-hand corner of the on-screen publishing dialog box.
- */
-GType
-spit_data_imports_plugin_host_button_mode_get_type (void)
-{
- static volatile gsize spit_data_imports_plugin_host_button_mode_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_plugin_host_button_mode_type_id__volatile)) {
- static const GEnumValue values[] = {{SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE, "SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE", "close"}, {SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL, "SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL", "cancel"}, {0, NULL, NULL}};
- GType spit_data_imports_plugin_host_button_mode_type_id;
- spit_data_imports_plugin_host_button_mode_type_id = g_enum_register_static ("SpitDataImportsPluginHostButtonMode", values);
- g_once_init_leave (&spit_data_imports_plugin_host_button_mode_type_id__volatile, spit_data_imports_plugin_host_button_mode_type_id);
- }
- return spit_data_imports_plugin_host_button_mode_type_id__volatile;
-}
-
-
-/**
- * Notifies the user that an unrecoverable import error has occurred and halts
- * the import process.
- *
- * @param err An error object that describes the kind of error that occurred.
- */
-void
-spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self,
- GError* err)
-{
-#line 271 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 271 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->post_error (self, err);
-#line 1358 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Notifies the user that an unrecoverable import error has occurred and halts
- * the import process.
- *
- * @param msg A message that describes the kind of error that occurred.
- */
-void
-spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self,
- const gchar* msg)
-{
-#line 279 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 279 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->post_error_message (self, msg);
-#line 1376 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Starts the import process.
- *
- * Calling this method starts the import activity for this host.
- */
-void
-spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self)
-{
-#line 286 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 286 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->start_importing (self);
-#line 1392 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Halts the import process.
- *
- * Calling this method stops all import activity and hides the on-screen import
- * dialog box.
- */
-void
-spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self)
-{
-#line 294 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 294 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->stop_importing (self);
-#line 1409 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Returns a reference to the {@link DataImporter} object that this is currently hosting.
- */
-SpitDataImportsDataImporter*
-spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self)
-{
-#line 299 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self), NULL);
-#line 299 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->get_data_importer (self);
-#line 1423 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Attempts to install a pane in the on-screen data import dialog box, making the pane visible
- * and allowing it to interact with the user.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param pane the pane to install
- *
- * @param mode allows you to set the text displayed on the close/cancel button in the
- * lower-right-hand corner of the on-screen data import dialog box when pane is installed.
- * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is
- * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on
- * whether a cancellable action is in progress. For example, if your importer is in the
- * middle of processing 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if
- * the processing operation has completed and the success pane is displayed, then mode
- * should be ButtonMode.CLOSE, because all cancellable actions have already
- * occurred.
- */
-void
-spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self,
- SpitDataImportsDialogPane* pane,
- SpitDataImportsPluginHostButtonMode mode)
-{
-#line 319 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 319 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_dialog_pane (self, pane, mode);
-#line 1454 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Attempts to install a pane in the on-screen data import dialog box that contains
- * static text.
- *
- * The text appears centered in the data import dialog box and is drawn in
- * the system font. This is a convenience method only; similar results could be
- * achieved by manually constructing a Gtk.Label widget, wrapping it inside a
- * {@link DialogPane}, and installing it manually with a call to
- * install_dialog_pane( ). To provide visual consistency across data import services,
- * however, always use this convenience method instead of constructing label panes when
- * you need to display static text to the user.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param message the text to show in the pane
- *
- * @param mode allows you to set the text displayed on the close/cancel button in the
- * lower-right-hand corner of the on-screen data import dialog box when pane is installed.
- * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is
- * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on
- * whether a cancellable action is in progress. For example, if your importer is in the
- * middle of processing 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if
- * the processing operation has completed and the success pane is displayed, then mode
- * should be ButtonMode.CLOSE, because all cancellable actions have already
- * occurred.
- */
-void
-spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self,
- const gchar* message,
- SpitDataImportsPluginHostButtonMode mode)
-{
-#line 348 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 348 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_static_message_pane (self, message, mode);
-#line 1493 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Attempts to install a library selection pane that presents a list of
- * discovered libraries to the user.
- *
- * When the user clicks the “OK” button, you’ll be notified of the user’s action through
- * the 'on_library_selected' callback if a discovered library was selected or through
- * the 'on_file_selected' callback if a file was selected.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param welcome_message the text to be displayed above the list of discovered
- * libraries.
- *
- * @param discovered_libraries the list of importable libraries that the plugin
- * has discovered in well known locations.
- *
- * @param file_select_label the label to display for the file selection
- * option. If this label is null, the
- * user will not be presented with a file selection option.
- */
-void
-spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self,
- const gchar* welcome_message,
- SpitDataImportsImportableLibrary** discovered_libraries,
- int discovered_libraries_length1,
- const gchar* file_select_label)
-{
-#line 371 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 371 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_library_selection_pane (self, welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label);
-#line 1528 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Attempts to install a progress pane that provides the user with feedback
- * on import preparation.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param message the text to be displayed above the progress bar.
- */
-void
-spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self,
- const gchar* message)
-{
-#line 385 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 385 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_import_progress_pane (self, message);
-#line 1548 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Update the progress bar installed by install_import_progress_pane.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param progress a value between 0.0 and 1.0 identifying progress for the
- * plugin.
- *
- * @param progress_label the text to be displayed below the progress bar. If that
- * parameter is null, the message will be left unchanged.
- */
-void
-spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self,
- gdouble progress,
- const gchar* progress_message)
-{
-#line 400 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 400 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->update_import_progress_pane (self, progress, progress_message);
-#line 1572 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Sends an importable media item to the host in order to prepare it for import
- * and update the progress bar installed by install_import_progress_pane.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param item the importable media item to prepare for import.
- *
- * @param progress a value between 0.0 and 1.0 identifying progress for the
- * plugin.
- *
- * @param host_progress_delta the amount of progress the host should update
- * the progress bar during import preparation. Plugins should ensure that
- * a proportion of progress for each media item is set aside for the host
- * in oder to ensure a smoother update to the progress bar.
- *
- * @param progress_message the text to be displayed below the progress bar. If that
- * parameter is null, the message will be left unchanged.
- */
-void
-spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self,
- SpitDataImportsImportableMediaItem** items,
- int items_length1,
- gdouble progress,
- gdouble host_progress_delta,
- const gchar* progress_message)
-{
-#line 424 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 424 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->prepare_media_items_for_import (self, items, items_length1, progress, host_progress_delta, progress_message);
-#line 1607 "DataImportsInterfaces.c"
-}
-
-
-/**
- * Finalize the import sequence for the plugin. This tells the host that
- * all media items have been processed and that the plugin has finished all
- * import work. Once this method has been called, all resources used by the
- * plugin for import should be released and the plugin should be back to the
- * state it had just after running the start method. The host will then display
- * the final message and show progress as fully complete. In a standard import
- * scenario, the user is expected to click the Close button to dismiss the
- * dialog. On first run, the host may call the LibrarySelectedCallback again
- * to import another library handled by the same plugin.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param finalize_message the text to be displayed below the progress bar. If that
- * parameter is null, the message will be left unchanged.
- */
-void
-spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self,
- SpitDataImportsImportedItemsCountCallback report_imported_items_count,
- void* report_imported_items_count_target,
- const gchar* finalize_message)
-{
-#line 447 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 447 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->finalize_import (self, report_imported_items_count, report_imported_items_count_target, finalize_message);
-#line 1637 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_real_reserved0 (SpitDataImportsPluginHost* self)
-{
-}
-
-
-void
-spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self)
-{
-#line 455 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 455 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved0 (self);
-#line 1654 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_real_reserved1 (SpitDataImportsPluginHost* self)
-{
-}
-
-
-void
-spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self)
-{
-#line 456 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 456 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved1 (self);
-#line 1671 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_real_reserved2 (SpitDataImportsPluginHost* self)
-{
-}
-
-
-void
-spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self)
-{
-#line 457 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 457 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved2 (self);
-#line 1688 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_real_reserved3 (SpitDataImportsPluginHost* self)
-{
-}
-
-
-void
-spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self)
-{
-#line 458 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 458 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved3 (self);
-#line 1705 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_real_reserved4 (SpitDataImportsPluginHost* self)
-{
-}
-
-
-void
-spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self)
-{
-#line 459 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 459 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved4 (self);
-#line 1722 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_real_reserved5 (SpitDataImportsPluginHost* self)
-{
-}
-
-
-void
-spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self)
-{
-#line 460 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 460 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved5 (self);
-#line 1739 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_real_reserved6 (SpitDataImportsPluginHost* self)
-{
-}
-
-
-void
-spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self)
-{
-#line 461 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 461 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved6 (self);
-#line 1756 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_real_reserved7 (SpitDataImportsPluginHost* self)
-{
-}
-
-
-void
-spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self)
-{
-#line 462 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self));
-#line 462 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved7 (self);
-#line 1773 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_plugin_host_base_init (SpitDataImportsPluginHostIface * iface)
-{
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved0 = spit_data_imports_plugin_host_real_reserved0;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved1 = spit_data_imports_plugin_host_real_reserved1;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved2 = spit_data_imports_plugin_host_real_reserved2;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved3 = spit_data_imports_plugin_host_real_reserved3;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved4 = spit_data_imports_plugin_host_real_reserved4;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved5 = spit_data_imports_plugin_host_real_reserved5;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved6 = spit_data_imports_plugin_host_real_reserved6;
-#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved7 = spit_data_imports_plugin_host_real_reserved7;
-#line 1802 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Manages and provides services for data import plugins.
- *
- * Implemented inside Shotwell, the PluginHost provides an interface through which the
- * developers of data import plugins can query and make changes to the import
- * environment. Plugins can use the services of the PluginHost only when their
- * {@link DataImporter} is in the running state. This ensures that non-running data importers
- * don’t destructively interfere with the actively running importer.
- */
-GType
-spit_data_imports_plugin_host_get_type (void)
-{
- static volatile gsize spit_data_imports_plugin_host_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_plugin_host_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsPluginHostIface), (GBaseInitFunc) spit_data_imports_plugin_host_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_plugin_host_type_id;
- spit_data_imports_plugin_host_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsPluginHost", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_plugin_host_type_id, G_TYPE_OBJECT);
- g_type_interface_add_prerequisite (spit_data_imports_plugin_host_type_id, SPIT_TYPE_HOST_INTERFACE);
- g_once_init_leave (&spit_data_imports_plugin_host_type_id__volatile, spit_data_imports_plugin_host_type_id);
- }
- return spit_data_imports_plugin_host_type_id__volatile;
-}
-
-
-/**
- * A factory method that instantiates and returns a new {@link DataImporter} object
- * that this Service describes.
- */
-SpitDataImportsDataImporter*
-spit_data_imports_service_create_data_importer (SpitDataImportsService* self,
- SpitDataImportsPluginHost* host)
-{
-#line 475 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self), NULL);
-#line 475 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- return SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->create_data_importer (self, host);
-#line 1844 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_real_reserved0 (SpitDataImportsService* self)
-{
-}
-
-
-void
-spit_data_imports_service_reserved0 (SpitDataImportsService* self)
-{
-#line 480 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self));
-#line 480 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved0 (self);
-#line 1861 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_real_reserved1 (SpitDataImportsService* self)
-{
-}
-
-
-void
-spit_data_imports_service_reserved1 (SpitDataImportsService* self)
-{
-#line 481 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self));
-#line 481 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved1 (self);
-#line 1878 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_real_reserved2 (SpitDataImportsService* self)
-{
-}
-
-
-void
-spit_data_imports_service_reserved2 (SpitDataImportsService* self)
-{
-#line 482 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self));
-#line 482 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved2 (self);
-#line 1895 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_real_reserved3 (SpitDataImportsService* self)
-{
-}
-
-
-void
-spit_data_imports_service_reserved3 (SpitDataImportsService* self)
-{
-#line 483 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self));
-#line 483 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved3 (self);
-#line 1912 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_real_reserved4 (SpitDataImportsService* self)
-{
-}
-
-
-void
-spit_data_imports_service_reserved4 (SpitDataImportsService* self)
-{
-#line 484 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self));
-#line 484 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved4 (self);
-#line 1929 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_real_reserved5 (SpitDataImportsService* self)
-{
-}
-
-
-void
-spit_data_imports_service_reserved5 (SpitDataImportsService* self)
-{
-#line 485 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self));
-#line 485 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved5 (self);
-#line 1946 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_real_reserved6 (SpitDataImportsService* self)
-{
-}
-
-
-void
-spit_data_imports_service_reserved6 (SpitDataImportsService* self)
-{
-#line 486 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self));
-#line 486 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved6 (self);
-#line 1963 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_real_reserved7 (SpitDataImportsService* self)
-{
-}
-
-
-void
-spit_data_imports_service_reserved7 (SpitDataImportsService* self)
-{
-#line 487 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self));
-#line 487 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved7 (self);
-#line 1980 "DataImportsInterfaces.c"
-}
-
-
-static void
-spit_data_imports_service_base_init (SpitDataImportsServiceIface * iface)
-{
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- if (!initialized) {
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- initialized = TRUE;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved0 = spit_data_imports_service_real_reserved0;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved1 = spit_data_imports_service_real_reserved1;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved2 = spit_data_imports_service_real_reserved2;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved3 = spit_data_imports_service_real_reserved3;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved4 = spit_data_imports_service_real_reserved4;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved5 = spit_data_imports_service_real_reserved5;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved6 = spit_data_imports_service_real_reserved6;
-#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala"
- iface->reserved7 = spit_data_imports_service_real_reserved7;
-#line 2009 "DataImportsInterfaces.c"
- }
-}
-
-
-/**
- * Describes the features and capabilities of a data import service.
- *
- * Developers of data import plugins provide a class that implements this interface.
- */
-GType
-spit_data_imports_service_get_type (void)
-{
- static volatile gsize spit_data_imports_service_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_service_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsServiceIface), (GBaseInitFunc) spit_data_imports_service_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_data_imports_service_type_id;
- spit_data_imports_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsService", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_data_imports_service_type_id, G_TYPE_OBJECT);
- g_type_interface_add_prerequisite (spit_data_imports_service_type_id, SPIT_TYPE_PLUGGABLE);
- g_once_init_leave (&spit_data_imports_service_type_id__volatile, spit_data_imports_service_type_id);
- }
- return spit_data_imports_service_type_id__volatile;
-}
-
-
-
diff --git a/src/plugins/ManifestWidget.c b/src/plugins/ManifestWidget.c
deleted file mode 100644
index e5bad34..0000000
--- a/src/plugins/ManifestWidget.c
+++ /dev/null
@@ -1,2049 +0,0 @@
-/* ManifestWidget.c generated by valac 0.40.4, the Vala compiler
- * generated from ManifestWidget.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gdk/gdk.h>
-#include <gee.h>
-#include <gio/gio.h>
-
-
-#define PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR (plugins_manifest_widget_mediator_get_type ())
-#define PLUGINS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator))
-#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass))
-#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR))
-#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR))
-#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass))
-
-typedef struct _PluginsManifestWidgetMediator PluginsManifestWidgetMediator;
-typedef struct _PluginsManifestWidgetMediatorClass PluginsManifestWidgetMediatorClass;
-typedef struct _PluginsManifestWidgetMediatorPrivate PluginsManifestWidgetMediatorPrivate;
-
-#define PLUGINS_TYPE_MANIFEST_LIST_VIEW (plugins_manifest_list_view_get_type ())
-#define PLUGINS_MANIFEST_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView))
-#define PLUGINS_MANIFEST_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewClass))
-#define PLUGINS_IS_MANIFEST_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW))
-#define PLUGINS_IS_MANIFEST_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_LIST_VIEW))
-#define PLUGINS_MANIFEST_LIST_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewClass))
-
-typedef struct _PluginsManifestListView PluginsManifestListView;
-typedef struct _PluginsManifestListViewClass PluginsManifestListViewClass;
-enum {
- PLUGINS_MANIFEST_WIDGET_MEDIATOR_0_PROPERTY,
- PLUGINS_MANIFEST_WIDGET_MEDIATOR_NUM_PROPERTIES
-};
-static GParamSpec* plugins_manifest_widget_mediator_properties[PLUGINS_MANIFEST_WIDGET_MEDIATOR_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _PluginsManifestListViewPrivate PluginsManifestListViewPrivate;
-enum {
- PLUGINS_MANIFEST_LIST_VIEW_0_PROPERTY,
- PLUGINS_MANIFEST_LIST_VIEW_NUM_PROPERTIES
-};
-static GParamSpec* plugins_manifest_list_view_properties[PLUGINS_MANIFEST_LIST_VIEW_NUM_PROPERTIES];
-
-#define PLUGINS_MANIFEST_LIST_VIEW_TYPE_COLUMN (plugins_manifest_list_view_column_get_type ())
-
-#define PLUGINS_TYPE_EXTENSION_POINT (plugins_extension_point_get_type ())
-#define PLUGINS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint))
-#define PLUGINS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass))
-#define PLUGINS_IS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_EXTENSION_POINT))
-#define PLUGINS_IS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_EXTENSION_POINT))
-#define PLUGINS_EXTENSION_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass))
-
-typedef struct _PluginsExtensionPoint PluginsExtensionPoint;
-typedef struct _PluginsExtensionPointClass PluginsExtensionPointClass;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _gtk_icon_info_free0(var) ((var == NULL) ? NULL : (var = (gtk_icon_info_free (var), NULL)))
-#define _plugins_extension_point_unref0(var) ((var == NULL) ? NULL : (var = (plugins_extension_point_unref (var), NULL)))
-#define __vala_GtkTreePath_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL)))
-#define __g_list_free___vala_GtkTreePath_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free___vala_GtkTreePath_free0_ (var), NULL)))
-
-struct _PluginsManifestWidgetMediator {
- GtkBox parent_instance;
- PluginsManifestWidgetMediatorPrivate * priv;
-};
-
-struct _PluginsManifestWidgetMediatorClass {
- GtkBoxClass parent_class;
-};
-
-struct _PluginsManifestWidgetMediatorPrivate {
- GtkButton* about_button;
- GtkScrolledWindow* list_bin;
- PluginsManifestListView* list;
-};
-
-struct _PluginsManifestListView {
- GtkTreeView parent_instance;
- PluginsManifestListViewPrivate * priv;
-};
-
-struct _PluginsManifestListViewClass {
- GtkTreeViewClass parent_class;
-};
-
-struct _PluginsManifestListViewPrivate {
- GtkTreeStore* store;
-};
-
-typedef enum {
- PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED,
- PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE,
- PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON,
- PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME,
- PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID,
- PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS
-} PluginsManifestListViewColumn;
-
-
-static gpointer plugins_manifest_widget_mediator_parent_class = NULL;
-static gpointer plugins_manifest_list_view_parent_class = NULL;
-
-GType plugins_manifest_widget_mediator_get_type (void) G_GNUC_CONST;
-GType plugins_manifest_list_view_get_type (void) G_GNUC_CONST;
-#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorPrivate))
-PluginsManifestListView* plugins_manifest_list_view_new (void);
-PluginsManifestListView* plugins_manifest_list_view_construct (GType object_type);
-PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_new (void);
-PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_construct (GType object_type);
-static void plugins_manifest_widget_mediator_on_about (PluginsManifestWidgetMediator* self);
-static void _plugins_manifest_widget_mediator_on_about_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void plugins_manifest_widget_mediator_on_selection_changed (PluginsManifestWidgetMediator* self);
-static void _plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender,
- gpointer self);
-static void plugins_manifest_widget_mediator_set_about_button_sensitivity (PluginsManifestWidgetMediator* self);
-gchar** plugins_manifest_list_view_get_selected_ids (PluginsManifestListView* self,
- int* result_length1);
-gboolean plugins_get_pluggable_info (const gchar* id,
- SpitPluggableInfo* info);
-gboolean is_string_empty (const gchar* s);
-static void _vala_array_add52 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-GdkPixbuf* resources_get_icon (const gchar* name,
- gint scale);
-#define RESOURCES_ICON_GENERIC_PLUGIN "generic-plugin.png"
-#define RESOURCES_DEFAULT_ICON_SCALE 24
-gchar* plugins_get_pluggable_name (const gchar* id);
-static void plugins_manifest_widget_mediator_finalize (GObject * obj);
-#define PLUGINS_MANIFEST_LIST_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewPrivate))
-static GType plugins_manifest_list_view_column_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE 24
-#define PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING 6
-#define PLUGINS_MANIFEST_LIST_VIEW_ICON_Y_PADDING 2
-GtkIconTheme* resources_get_icon_theme_engine (void);
-gpointer plugins_extension_point_ref (gpointer instance);
-void plugins_extension_point_unref (gpointer instance);
-GParamSpec* plugins_param_spec_extension_point (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void plugins_value_set_extension_point (GValue* value,
- gpointer v_object);
-void plugins_value_take_extension_point (GValue* value,
- gpointer v_object);
-gpointer plugins_value_get_extension_point (const GValue* value);
-GType plugins_extension_point_get_type (void) G_GNUC_CONST;
-GeeCollection* plugins_get_extension_points (GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify);
-gint plugins_compare_extension_point_names (void* a,
- void* b);
-static gint _plugins_compare_extension_point_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-const gchar* plugins_extension_point_get_icon_name (PluginsExtensionPoint* self);
-const gchar* plugins_extension_point_get_name (PluginsExtensionPoint* self);
-GeeCollection* plugins_get_pluggables_for_type (GType type,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify,
- gboolean include_disabled);
-GType plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self);
-gint plugins_compare_pluggable_names (void* a,
- void* b);
-static gint _plugins_compare_pluggable_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-gboolean plugins_get_pluggable_enabled (const gchar* id,
- gboolean* enabled);
-static GtkTreePath* _vala_GtkTreePath_copy (GtkTreePath* self);
-static gchar* plugins_manifest_list_view_get_id_at_path (PluginsManifestListView* self,
- GtkTreePath* path,
- GtkTreeIter* iter);
-static void _vala_array_add53 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_GtkTreePath_free (GtkTreePath* self);
-static void __vala_GtkTreePath_free0_ (gpointer var);
-static inline void _g_list_free___vala_GtkTreePath_free0_ (GList* self);
-static gboolean plugins_manifest_list_view_real_button_press_event (GtkWidget* base,
- GdkEventButton* event);
-void plugins_set_pluggable_enabled (const gchar* id,
- gboolean enabled);
-static void plugins_manifest_list_view_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 gint _vala_array_length (gpointer array);
-
-
-static void
-_plugins_manifest_widget_mediator_on_about_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- plugins_manifest_widget_mediator_on_about ((PluginsManifestWidgetMediator*) self);
-#line 218 "ManifestWidget.c"
-}
-
-
-static void
-_plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender,
- gpointer self)
-{
-#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- plugins_manifest_widget_mediator_on_selection_changed ((PluginsManifestWidgetMediator*) self);
-#line 228 "ManifestWidget.c"
-}
-
-
-PluginsManifestWidgetMediator*
-plugins_manifest_widget_mediator_construct (GType object_type)
-{
- PluginsManifestWidgetMediator * self = NULL;
- GtkScrolledWindow* _tmp0_;
- PluginsManifestListView* _tmp1_;
- GtkButton* _tmp2_;
- PluginsManifestListView* _tmp3_;
- GtkTreeSelection* _tmp4_;
-#line 21 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self = (PluginsManifestWidgetMediator*) g_object_new (object_type, NULL);
-#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp0_ = self->priv->list_bin;
-#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp1_ = self->priv->list;
-#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp2_ = self->priv->about_button;
-#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_signal_connect_object (_tmp2_, "clicked", (GCallback) _plugins_manifest_widget_mediator_on_about_gtk_button_clicked, self, 0);
-#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp3_ = self->priv->list;
-#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp4_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tree_view_get_type (), GtkTreeView));
-#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_signal_connect_object (_tmp4_, "changed", (GCallback) _plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed, self, 0);
-#line 28 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- plugins_manifest_widget_mediator_set_about_button_sensitivity (self);
-#line 20 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return self;
-#line 263 "ManifestWidget.c"
-}
-
-
-PluginsManifestWidgetMediator*
-plugins_manifest_widget_mediator_new (void)
-{
-#line 20 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return plugins_manifest_widget_mediator_construct (PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR);
-#line 272 "ManifestWidget.c"
-}
-
-
-static gchar*
-string_strip (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strstrip (_tmp1_);
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 297 "ManifestWidget.c"
-}
-
-
-static void
-_vala_array_add52 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if ((*length) == (*size)) {
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 313 "ManifestWidget.c"
- }
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- (*array)[(*length)++] = value;
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- (*array)[*length] = NULL;
-#line 319 "ManifestWidget.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return self ? g_object_ref (self) : NULL;
-#line 328 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_widget_mediator_on_about (PluginsManifestWidgetMediator* self)
-{
- gchar** ids = NULL;
- PluginsManifestListView* _tmp0_;
- gint _tmp1_;
- gchar** _tmp2_;
- gint ids_length1;
- gint _ids_size_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- gchar* id = NULL;
- gchar** _tmp4_;
- gint _tmp4__length1;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- SpitPluggableInfo info = {0};
- const gchar* _tmp7_;
- gboolean _tmp8_;
- gchar** authors = NULL;
- gint authors_length1;
- gint _authors_size_;
- SpitPluggableInfo _tmp10_;
- const gchar* _tmp11_;
- GtkAboutDialog* about_dialog = NULL;
- GtkAboutDialog* _tmp30_;
- GtkAboutDialog* _tmp31_;
- gchar** _tmp32_;
- gint _tmp32__length1;
- GtkAboutDialog* _tmp33_;
- SpitPluggableInfo _tmp34_;
- const gchar* _tmp35_;
- GtkAboutDialog* _tmp36_;
- SpitPluggableInfo _tmp37_;
- const gchar* _tmp38_;
- GtkAboutDialog* _tmp39_;
- SpitPluggableInfo _tmp40_;
- const gchar* _tmp41_;
- GtkAboutDialog* _tmp42_;
- SpitPluggableInfo _tmp43_;
- gboolean _tmp44_;
- GdkPixbuf* _tmp45_ = NULL;
- gboolean _tmp46_ = FALSE;
- SpitPluggableInfo _tmp47_;
- GdkPixbuf** _tmp48_;
- gint _tmp48__length1;
- GtkAboutDialog* _tmp56_;
- GtkAboutDialog* _tmp57_;
- const gchar* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- GtkAboutDialog* _tmp61_;
- SpitPluggableInfo _tmp62_;
- const gchar* _tmp63_;
- GtkAboutDialog* _tmp64_;
- SpitPluggableInfo _tmp65_;
- const gchar* _tmp66_;
- GtkAboutDialog* _tmp67_;
- SpitPluggableInfo _tmp68_;
- const gchar* _tmp69_;
- GtkAboutDialog* _tmp70_;
- SpitPluggableInfo _tmp71_;
- const gchar* _tmp72_;
- GtkAboutDialog* _tmp73_;
- GtkAboutDialog* _tmp74_;
-#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self));
-#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp0_ = self->priv->list;
-#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp2_ = plugins_manifest_list_view_get_selected_ids (_tmp0_, &_tmp1_);
-#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids = _tmp2_;
-#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids_length1 = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _ids_size_ = ids_length1;
-#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp3_ = ids;
-#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp3__length1 = ids_length1;
-#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp3__length1 == 0) {
-#line 34 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL);
-#line 34 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return;
-#line 419 "ManifestWidget.c"
- }
-#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp4_ = ids;
-#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp4__length1 = ids_length1;
-#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp5_ = _tmp4_[0];
-#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- id = _tmp6_;
-#line 38 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- memset (&info, 0, sizeof (SpitPluggableInfo));
-#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp7_ = id;
-#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp8_ = plugins_get_pluggable_info (_tmp7_, &info);
-#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!_tmp8_) {
-#line 439 "ManifestWidget.c"
- const gchar* _tmp9_;
-#line 40 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp9_ = id;
-#line 40 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_warning ("ManifestWidget.vala:40: Unable to retrieve information for plugin %s", _tmp9_);
-#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- spit_pluggable_info_destroy (&info);
-#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_free0 (id);
-#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL);
-#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return;
-#line 453 "ManifestWidget.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- authors = NULL;
-#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- authors_length1 = 0;
-#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _authors_size_ = authors_length1;
-#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp10_ = info;
-#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp11_ = _tmp10_.authors;
-#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp11_ != NULL) {
-#line 467 "ManifestWidget.c"
- gchar** split = NULL;
- SpitPluggableInfo _tmp12_;
- const gchar* _tmp13_;
- gchar** _tmp14_;
- gchar** _tmp15_;
- gint split_length1;
- gint _split_size_;
-#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp12_ = info;
-#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp13_ = _tmp12_.authors;
-#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp15_ = _tmp14_ = g_strsplit (_tmp13_, ",", 0);
-#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- split = _tmp15_;
-#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- split_length1 = _vala_array_length (_tmp14_);
-#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _split_size_ = split_length1;
-#line 487 "ManifestWidget.c"
- {
- gint ctr = 0;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ctr = 0;
-#line 492 "ManifestWidget.c"
- {
- gboolean _tmp16_ = FALSE;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp16_ = TRUE;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- while (TRUE) {
-#line 499 "ManifestWidget.c"
- gint _tmp18_;
- gchar** _tmp19_;
- gint _tmp19__length1;
- gchar* stripped = NULL;
- gchar** _tmp20_;
- gint _tmp20__length1;
- gint _tmp21_;
- const gchar* _tmp22_;
- gchar* _tmp23_;
- const gchar* _tmp24_;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!_tmp16_) {
-#line 512 "ManifestWidget.c"
- gint _tmp17_;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp17_ = ctr;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ctr = _tmp17_ + 1;
-#line 518 "ManifestWidget.c"
- }
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp16_ = FALSE;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp18_ = ctr;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp19_ = split;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp19__length1 = split_length1;
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!(_tmp18_ < _tmp19__length1)) {
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- break;
-#line 532 "ManifestWidget.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp20_ = split;
-#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp20__length1 = split_length1;
-#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp21_ = ctr;
-#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp22_ = _tmp20_[_tmp21_];
-#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp23_ = string_strip (_tmp22_);
-#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- stripped = _tmp23_;
-#line 52 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp24_ = stripped;
-#line 52 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!is_string_empty (_tmp24_)) {
-#line 550 "ManifestWidget.c"
- gchar** _tmp25_;
- gint _tmp25__length1;
- gchar** _tmp27_;
- gint _tmp27__length1;
- const gchar* _tmp28_;
- gchar* _tmp29_;
-#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp25_ = authors;
-#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp25__length1 = authors_length1;
-#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp25_ == NULL) {
-#line 563 "ManifestWidget.c"
- gchar** _tmp26_;
-#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp26_ = g_new0 (gchar*, 0 + 1);
-#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
-#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- authors = _tmp26_;
-#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- authors_length1 = 0;
-#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _authors_size_ = authors_length1;
-#line 575 "ManifestWidget.c"
- }
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp27_ = authors;
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp27__length1 = authors_length1;
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp28_ = stripped;
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp29_ = g_strdup (_tmp28_);
-#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _vala_array_add52 (&authors, &authors_length1, &_authors_size_, _tmp29_);
-#line 587 "ManifestWidget.c"
- }
-#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_free0 (stripped);
-#line 591 "ManifestWidget.c"
- }
- }
- }
-#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL);
-#line 597 "ManifestWidget.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp30_ = (GtkAboutDialog*) gtk_about_dialog_new ();
-#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_ref_sink (_tmp30_);
-#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- about_dialog = _tmp30_;
-#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp31_ = about_dialog;
-#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp32_ = authors;
-#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp32__length1 = authors_length1;
-#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_authors (_tmp31_, _tmp32_);
-#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp33_ = about_dialog;
-#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp34_ = info;
-#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp35_ = _tmp34_.brief_description;
-#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_comments (_tmp33_, _tmp35_);
-#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp36_ = about_dialog;
-#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp37_ = info;
-#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp38_ = _tmp37_.copyright;
-#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_copyright (_tmp36_, _tmp38_);
-#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp39_ = about_dialog;
-#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp40_ = info;
-#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp41_ = _tmp40_.license;
-#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_license (_tmp39_, _tmp41_);
-#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp42_ = about_dialog;
-#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp43_ = info;
-#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp44_ = _tmp43_.is_license_wordwrapped;
-#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_wrap_license (_tmp42_, _tmp44_);
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp47_ = info;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp48_ = _tmp47_.icons;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp48__length1 = _tmp47_.icons_length1;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp48_ != NULL) {
-#line 653 "ManifestWidget.c"
- SpitPluggableInfo _tmp49_;
- GdkPixbuf** _tmp50_;
- gint _tmp50__length1;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp49_ = info;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp50_ = _tmp49_.icons;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp50__length1 = _tmp49_.icons_length1;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp46_ = _tmp50__length1 > 0;
-#line 665 "ManifestWidget.c"
- } else {
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp46_ = FALSE;
-#line 669 "ManifestWidget.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp46_) {
-#line 673 "ManifestWidget.c"
- SpitPluggableInfo _tmp51_;
- GdkPixbuf** _tmp52_;
- gint _tmp52__length1;
- GdkPixbuf* _tmp53_;
- GdkPixbuf* _tmp54_;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp51_ = info;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp52_ = _tmp51_.icons;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp52__length1 = _tmp51_.icons_length1;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp53_ = _tmp52_[0];
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp54_ = _g_object_ref0 (_tmp53_);
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp45_);
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp45_ = _tmp54_;
-#line 693 "ManifestWidget.c"
- } else {
- GdkPixbuf* _tmp55_;
-#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp55_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, RESOURCES_DEFAULT_ICON_SCALE);
-#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp45_);
-#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp45_ = _tmp55_;
-#line 702 "ManifestWidget.c"
- }
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp56_ = about_dialog;
-#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_logo (_tmp56_, _tmp45_);
-#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp57_ = about_dialog;
-#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp58_ = id;
-#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp59_ = plugins_get_pluggable_name (_tmp58_);
-#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp60_ = _tmp59_;
-#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_program_name (_tmp57_, _tmp60_);
-#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_free0 (_tmp60_);
-#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp61_ = about_dialog;
-#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp62_ = info;
-#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp63_ = _tmp62_.translators;
-#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_translator_credits (_tmp61_, _tmp63_);
-#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp64_ = about_dialog;
-#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp65_ = info;
-#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp66_ = _tmp65_.version;
-#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_version (_tmp64_, _tmp66_);
-#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp67_ = about_dialog;
-#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp68_ = info;
-#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp69_ = _tmp68_.website_url;
-#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_website (_tmp67_, _tmp69_);
-#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp70_ = about_dialog;
-#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp71_ = info;
-#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp72_ = _tmp71_.website_name;
-#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_about_dialog_set_website_label (_tmp70_, _tmp72_);
-#line 75 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp73_ = about_dialog;
-#line 75 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_dialog_get_type (), GtkDialog));
-#line 77 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp74_ = about_dialog;
-#line 77 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget));
-#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp45_);
-#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (about_dialog);
-#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
-#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- spit_pluggable_info_destroy (&info);
-#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_free0 (id);
-#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL);
-#line 772 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_widget_mediator_on_selection_changed (PluginsManifestWidgetMediator* self)
-{
-#line 80 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self));
-#line 81 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- plugins_manifest_widget_mediator_set_about_button_sensitivity (self);
-#line 783 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_widget_mediator_set_about_button_sensitivity (PluginsManifestWidgetMediator* self)
-{
- gchar** ids = NULL;
- PluginsManifestListView* _tmp0_;
- gint _tmp1_;
- gchar** _tmp2_;
- gint ids_length1;
- gint _ids_size_;
- GtkButton* _tmp3_;
-#line 84 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self));
-#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp0_ = self->priv->list;
-#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp2_ = plugins_manifest_list_view_get_selected_ids (_tmp0_, &_tmp1_);
-#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids = _tmp2_;
-#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids_length1 = _tmp1_;
-#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _ids_size_ = ids_length1;
-#line 90 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp3_ = self->priv->about_button;
-#line 90 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), ids_length1 == 1);
-#line 84 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL);
-#line 815 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_widget_mediator_class_init (PluginsManifestWidgetMediatorClass * klass)
-{
- gint PluginsManifestWidgetMediator_private_offset;
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- plugins_manifest_widget_mediator_parent_class = g_type_class_peek_parent (klass);
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_type_class_add_private (klass, sizeof (PluginsManifestWidgetMediatorPrivate));
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- G_OBJECT_CLASS (klass)->finalize = plugins_manifest_widget_mediator_finalize;
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- PluginsManifestWidgetMediator_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/manifest_widget.ui");
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "about_button", FALSE, PluginsManifestWidgetMediator_private_offset + G_STRUCT_OFFSET (PluginsManifestWidgetMediatorPrivate, about_button));
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "list_bin", FALSE, PluginsManifestWidgetMediator_private_offset + G_STRUCT_OFFSET (PluginsManifestWidgetMediatorPrivate, list_bin));
-#line 837 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_widget_mediator_instance_init (PluginsManifestWidgetMediator * self)
-{
- PluginsManifestListView* _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self->priv = PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_PRIVATE (self);
-#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp0_ = plugins_manifest_list_view_new ();
-#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_ref_sink (_tmp0_);
-#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self->priv->list = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 855 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_widget_mediator_finalize (GObject * obj)
-{
- PluginsManifestWidgetMediator * self;
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator);
-#line 13 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (self->priv->about_button);
-#line 16 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (self->priv->list_bin);
-#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (self->priv->list);
-#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- G_OBJECT_CLASS (plugins_manifest_widget_mediator_parent_class)->finalize (obj);
-#line 873 "ManifestWidget.c"
-}
-
-
-GType
-plugins_manifest_widget_mediator_get_type (void)
-{
- static volatile gsize plugins_manifest_widget_mediator_type_id__volatile = 0;
- if (g_once_init_enter (&plugins_manifest_widget_mediator_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PluginsManifestWidgetMediatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_manifest_widget_mediator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsManifestWidgetMediator), 0, (GInstanceInitFunc) plugins_manifest_widget_mediator_instance_init, NULL };
- GType plugins_manifest_widget_mediator_type_id;
- plugins_manifest_widget_mediator_type_id = g_type_register_static (gtk_box_get_type (), "PluginsManifestWidgetMediator", &g_define_type_info, 0);
- g_once_init_leave (&plugins_manifest_widget_mediator_type_id__volatile, plugins_manifest_widget_mediator_type_id);
- }
- return plugins_manifest_widget_mediator_type_id__volatile;
-}
-
-
-static GType
-plugins_manifest_list_view_column_get_type (void)
-{
- static volatile gsize plugins_manifest_list_view_column_type_id__volatile = 0;
- if (g_once_init_enter (&plugins_manifest_list_view_column_type_id__volatile)) {
- static const GEnumValue values[] = {{PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED", "enabled"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE", "can-enable"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON", "icon"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME", "name"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID", "id"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS", "n-columns"}, {0, NULL, NULL}};
- GType plugins_manifest_list_view_column_type_id;
- plugins_manifest_list_view_column_type_id = g_enum_register_static ("PluginsManifestListViewColumn", values);
- g_once_init_leave (&plugins_manifest_list_view_column_type_id__volatile, plugins_manifest_list_view_column_type_id);
- }
- return plugins_manifest_list_view_column_type_id__volatile;
-}
-
-
-static gint
-_plugins_compare_extension_point_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = plugins_compare_extension_point_names (a, b);
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 914 "ManifestWidget.c"
-}
-
-
-static gint
-_plugins_compare_pluggable_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = plugins_compare_pluggable_names (a, b);
-#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 927 "ManifestWidget.c"
-}
-
-
-PluginsManifestListView*
-plugins_manifest_list_view_construct (GType object_type)
-{
- PluginsManifestListView * self = NULL;
- GtkTreeStore* _tmp0_;
- GtkCellRendererToggle* checkbox_renderer = NULL;
- GtkCellRendererToggle* _tmp1_;
- GtkCellRendererToggle* _tmp2_;
- GtkCellRendererToggle* _tmp3_;
- GtkCellRendererPixbuf* icon_renderer = NULL;
- GtkCellRendererPixbuf* _tmp4_;
- GtkCellRendererPixbuf* _tmp5_;
- GtkCellRendererPixbuf* _tmp6_;
- GtkCellRendererPixbuf* _tmp7_;
- GtkCellRendererText* text_renderer = NULL;
- GtkCellRendererText* _tmp8_;
- GtkTreeViewColumn* column = NULL;
- GtkTreeViewColumn* _tmp9_;
- GtkTreeViewColumn* _tmp10_;
- GtkTreeViewColumn* _tmp11_;
- GtkCellRendererToggle* _tmp12_;
- GtkTreeViewColumn* _tmp13_;
- GtkCellRendererPixbuf* _tmp14_;
- GtkTreeViewColumn* _tmp15_;
- GtkCellRendererText* _tmp16_;
- GtkTreeViewColumn* _tmp17_;
- GtkCellRendererToggle* _tmp18_;
- GtkTreeViewColumn* _tmp19_;
- GtkCellRendererToggle* _tmp20_;
- GtkTreeViewColumn* _tmp21_;
- GtkCellRendererPixbuf* _tmp22_;
- GtkTreeViewColumn* _tmp23_;
- GtkCellRendererText* _tmp24_;
- GtkTreeViewColumn* _tmp25_;
- GtkTreeSelection* _tmp26_;
- GtkIconTheme* icon_theme = NULL;
- GtkIconTheme* _tmp27_;
- GError * _inner_error_ = NULL;
-#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self = (PluginsManifestListView*) g_object_new (object_type, NULL);
-#line 117 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp0_ = self->priv->store;
-#line 117 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_set_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel));
-#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp1_ = (GtkCellRendererToggle*) gtk_cell_renderer_toggle_new ();
-#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_ref_sink (_tmp1_);
-#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- checkbox_renderer = _tmp1_;
-#line 120 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp2_ = checkbox_renderer;
-#line 120 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_renderer_toggle_set_radio (_tmp2_, FALSE);
-#line 121 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp3_ = checkbox_renderer;
-#line 121 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_renderer_toggle_set_activatable (_tmp3_, TRUE);
-#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp4_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
-#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_ref_sink (_tmp4_);
-#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- icon_renderer = _tmp4_;
-#line 124 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp5_ = icon_renderer;
-#line 124 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_set (_tmp5_, "stock-size", (guint) GTK_ICON_SIZE_MENU, NULL);
-#line 125 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp6_ = icon_renderer;
-#line 125 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), "xpad", (guint) PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING, NULL);
-#line 126 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp7_ = icon_renderer;
-#line 126 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), "ypad", (guint) PLUGINS_MANIFEST_LIST_VIEW_ICON_Y_PADDING, NULL);
-#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp8_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
-#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_ref_sink (_tmp8_);
-#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- text_renderer = _tmp8_;
-#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp9_ = gtk_tree_view_column_new ();
-#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_object_ref_sink (_tmp9_);
-#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- column = _tmp9_;
-#line 131 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp10_ = column;
-#line 131 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_column_set_sizing (_tmp10_, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
-#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp11_ = column;
-#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp12_ = checkbox_renderer;
-#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE);
-#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp13_ = column;
-#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp14_ = icon_renderer;
-#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE);
-#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp15_ = column;
-#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp16_ = text_renderer;
-#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_layout_pack_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE);
-#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp17_ = column;
-#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp18_ = checkbox_renderer;
-#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_cell_renderer_get_type (), GtkCellRenderer), "active", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED);
-#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp19_ = column;
-#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp20_ = checkbox_renderer;
-#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_cell_renderer_get_type (), GtkCellRenderer), "visible", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE);
-#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp21_ = column;
-#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp22_ = icon_renderer;
-#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_cell_renderer_get_type (), GtkCellRenderer), "pixbuf", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON);
-#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp23_ = column;
-#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp24_ = text_renderer;
-#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME);
-#line 141 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp25_ = column;
-#line 141 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_append_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp25_);
-#line 143 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_set_headers_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE);
-#line 144 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_set_enable_search (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE);
-#line 145 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_set_show_expanders (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), TRUE);
-#line 146 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_set_reorderable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE);
-#line 147 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_set_enable_tree_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE);
-#line 148 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_set_grid_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), GTK_TREE_VIEW_GRID_LINES_NONE);
-#line 149 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp26_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 149 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_selection_set_mode (_tmp26_, GTK_SELECTION_BROWSE);
-#line 151 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp27_ = resources_get_icon_theme_engine ();
-#line 151 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- icon_theme = _tmp27_;
-#line 1089 "ManifestWidget.c"
- {
- GeeIterator* _extension_point_it = NULL;
- GeeCollection* _tmp28_;
- GeeCollection* _tmp29_;
- GeeIterator* _tmp30_;
- GeeIterator* _tmp31_;
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp28_ = plugins_get_extension_points (_plugins_compare_extension_point_names_gcompare_data_func, NULL, NULL);
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp29_ = _tmp28_;
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp30_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp31_ = _tmp30_;
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp29_);
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _extension_point_it = _tmp31_;
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- while (TRUE) {
-#line 1110 "ManifestWidget.c"
- GeeIterator* _tmp32_;
- PluginsExtensionPoint* extension_point = NULL;
- GeeIterator* _tmp33_;
- gpointer _tmp34_;
- GtkTreeIter category_iter = {0};
- GtkTreeStore* _tmp35_;
- GtkTreeIter _tmp36_ = {0};
- GdkPixbuf* icon = NULL;
- PluginsExtensionPoint* _tmp37_;
- const gchar* _tmp38_;
- const gchar* _tmp39_;
- GtkTreeStore* _tmp58_;
- GtkTreeIter _tmp59_;
- PluginsExtensionPoint* _tmp60_;
- const gchar* _tmp61_;
- const gchar* _tmp62_;
- GdkPixbuf* _tmp63_;
- GeeCollection* pluggables = NULL;
- PluginsExtensionPoint* _tmp64_;
- GType _tmp65_;
- GType _tmp66_;
- GeeCollection* _tmp67_;
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp32_ = _extension_point_it;
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!gee_iterator_next (_tmp32_)) {
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- break;
-#line 1139 "ManifestWidget.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp33_ = _extension_point_it;
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp34_ = gee_iterator_get (_tmp33_);
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- extension_point = (PluginsExtensionPoint*) _tmp34_;
-#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp35_ = self->priv->store;
-#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_store_append (_tmp35_, &_tmp36_, NULL);
-#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- category_iter = _tmp36_;
-#line 159 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- icon = NULL;
-#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp37_ = extension_point;
-#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp38_ = plugins_extension_point_get_icon_name (_tmp37_);
-#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp39_ = _tmp38_;
-#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp39_ != NULL) {
-#line 1163 "ManifestWidget.c"
- GtkIconInfo* icon_info = NULL;
- GtkIconTheme* _tmp40_;
- PluginsExtensionPoint* _tmp41_;
- const gchar* _tmp42_;
- const gchar* _tmp43_;
- GThemedIcon* _tmp44_;
- GThemedIcon* _tmp45_;
- GtkIconInfo* _tmp46_;
- GtkIconInfo* _tmp47_;
- GtkIconInfo* _tmp48_;
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp40_ = icon_theme;
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp41_ = extension_point;
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp42_ = plugins_extension_point_get_icon_name (_tmp41_);
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp43_ = _tmp42_;
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp44_ = (GThemedIcon*) g_themed_icon_new (_tmp43_);
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp45_ = _tmp44_;
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp46_ = gtk_icon_theme_lookup_by_gicon (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, g_icon_get_type (), GIcon), PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE, 0);
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp47_ = _tmp46_;
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp45_);
-#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- icon_info = _tmp47_;
-#line 163 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp48_ = icon_info;
-#line 163 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp48_ != NULL) {
-#line 1198 "ManifestWidget.c"
- {
- GdkPixbuf* _tmp49_ = NULL;
- GtkIconInfo* _tmp50_;
- GdkPixbuf* _tmp51_;
- GdkPixbuf* _tmp52_;
-#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp50_ = icon_info;
-#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp51_ = gtk_icon_info_load_icon (_tmp50_, &_inner_error_);
-#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp49_ = _tmp51_;
-#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1212 "ManifestWidget.c"
- goto __catch41_g_error;
- }
-#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp52_ = _tmp49_;
-#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp49_ = NULL;
-#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (icon);
-#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- icon = _tmp52_;
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp49_);
-#line 1225 "ManifestWidget.c"
- }
- goto __finally41;
- __catch41_g_error:
- {
- GError* err = NULL;
- PluginsExtensionPoint* _tmp53_;
- const gchar* _tmp54_;
- const gchar* _tmp55_;
- GError* _tmp56_;
- const gchar* _tmp57_;
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- err = _inner_error_;
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _inner_error_ = NULL;
-#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp53_ = extension_point;
-#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp54_ = plugins_extension_point_get_icon_name (_tmp53_);
-#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp55_ = _tmp54_;
-#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp56_ = err;
-#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp57_ = _tmp56_->message;
-#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_warning ("ManifestWidget.vala:167: Unable to load icon %s: %s", _tmp55_, _tmp57_);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_error_free0 (err);
-#line 1254 "ManifestWidget.c"
- }
- __finally41:
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _gtk_icon_info_free0 (icon_info);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (icon);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _plugins_extension_point_unref0 (extension_point);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_extension_point_it);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (icon_theme);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (column);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (text_renderer);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (icon_renderer);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (checkbox_renderer);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.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 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_clear_error (&_inner_error_);
-#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return NULL;
-#line 1283 "ManifestWidget.c"
- }
- }
-#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _gtk_icon_info_free0 (icon_info);
-#line 1288 "ManifestWidget.c"
- }
-#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp58_ = self->priv->store;
-#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp59_ = category_iter;
-#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp60_ = extension_point;
-#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp61_ = plugins_extension_point_get_name (_tmp60_);
-#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp62_ = _tmp61_;
-#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp63_ = icon;
-#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_store_set (_tmp58_, &_tmp59_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, _tmp62_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, FALSE, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, _tmp63_, -1);
-#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp64_ = extension_point;
-#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp65_ = plugins_extension_point_get_pluggable_type (_tmp64_);
-#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp66_ = _tmp65_;
-#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp67_ = plugins_get_pluggables_for_type (_tmp66_, _plugins_compare_pluggable_names_gcompare_data_func, NULL, NULL, TRUE);
-#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- pluggables = _tmp67_;
-#line 1314 "ManifestWidget.c"
- {
- GeeIterator* _pluggable_it = NULL;
- GeeCollection* _tmp68_;
- GeeIterator* _tmp69_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp68_ = pluggables;
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp69_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _pluggable_it = _tmp69_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- while (TRUE) {
-#line 1327 "ManifestWidget.c"
- GeeIterator* _tmp70_;
- SpitPluggable* pluggable = NULL;
- GeeIterator* _tmp71_;
- gpointer _tmp72_;
- gboolean enabled = FALSE;
- SpitPluggable* _tmp73_;
- const gchar* _tmp74_;
- gboolean _tmp75_ = FALSE;
- gboolean _tmp76_;
- SpitPluggableInfo info = {0};
- SpitPluggable* _tmp77_;
- GdkPixbuf* _tmp78_ = NULL;
- gboolean _tmp79_ = FALSE;
- SpitPluggableInfo _tmp80_;
- GdkPixbuf** _tmp81_;
- gint _tmp81__length1;
- GdkPixbuf* _tmp89_;
- GtkTreeIter plugin_iter = {0};
- GtkTreeStore* _tmp90_;
- GtkTreeIter _tmp91_;
- GtkTreeIter _tmp92_ = {0};
- GtkTreeStore* _tmp93_;
- GtkTreeIter _tmp94_;
- gboolean _tmp95_;
- SpitPluggable* _tmp96_;
- const gchar* _tmp97_;
- SpitPluggable* _tmp98_;
- const gchar* _tmp99_;
- GdkPixbuf* _tmp100_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp70_ = _pluggable_it;
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!gee_iterator_next (_tmp70_)) {
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- break;
-#line 1363 "ManifestWidget.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp71_ = _pluggable_it;
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp72_ = gee_iterator_get (_tmp71_);
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- pluggable = (SpitPluggable*) _tmp72_;
-#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp73_ = pluggable;
-#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp74_ = spit_pluggable_get_id (_tmp73_);
-#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp76_ = plugins_get_pluggable_enabled (_tmp74_, &_tmp75_);
-#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- enabled = _tmp75_;
-#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!_tmp76_) {
-#line 180 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (pluggable);
-#line 180 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- continue;
-#line 1385 "ManifestWidget.c"
- }
-#line 182 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- memset (&info, 0, sizeof (SpitPluggableInfo));
-#line 183 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp77_ = pluggable;
-#line 183 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- spit_pluggable_get_info (_tmp77_, &info);
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp80_ = info;
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp81_ = _tmp80_.icons;
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp81__length1 = _tmp80_.icons_length1;
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp81_ != NULL) {
-#line 1401 "ManifestWidget.c"
- SpitPluggableInfo _tmp82_;
- GdkPixbuf** _tmp83_;
- gint _tmp83__length1;
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp82_ = info;
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp83_ = _tmp82_.icons;
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp83__length1 = _tmp82_.icons_length1;
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp79_ = _tmp83__length1 > 0;
-#line 1413 "ManifestWidget.c"
- } else {
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp79_ = FALSE;
-#line 1417 "ManifestWidget.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp79_) {
-#line 1421 "ManifestWidget.c"
- SpitPluggableInfo _tmp84_;
- GdkPixbuf** _tmp85_;
- gint _tmp85__length1;
- GdkPixbuf* _tmp86_;
- GdkPixbuf* _tmp87_;
-#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp84_ = info;
-#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp85_ = _tmp84_.icons;
-#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp85__length1 = _tmp84_.icons_length1;
-#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp86_ = _tmp85_[0];
-#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp87_ = _g_object_ref0 (_tmp86_);
-#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp78_);
-#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp78_ = _tmp87_;
-#line 1441 "ManifestWidget.c"
- } else {
- GdkPixbuf* _tmp88_;
-#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp88_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE);
-#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp78_);
-#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp78_ = _tmp88_;
-#line 1450 "ManifestWidget.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp89_ = _g_object_ref0 (_tmp78_);
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (icon);
-#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- icon = _tmp89_;
-#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp90_ = self->priv->store;
-#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp91_ = category_iter;
-#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_store_append (_tmp90_, &_tmp92_, &_tmp91_);
-#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- plugin_iter = _tmp92_;
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp93_ = self->priv->store;
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp94_ = plugin_iter;
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp95_ = enabled;
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp96_ = pluggable;
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp97_ = spit_pluggable_get_pluggable_name (_tmp96_);
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp98_ = pluggable;
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp99_ = spit_pluggable_get_id (_tmp98_);
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp100_ = icon;
-#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_store_set (_tmp93_, &_tmp94_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, _tmp95_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, _tmp97_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, _tmp99_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, TRUE, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, _tmp100_, -1);
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_tmp78_);
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- spit_pluggable_info_destroy (&info);
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (pluggable);
-#line 1490 "ManifestWidget.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_pluggable_it);
-#line 1494 "ManifestWidget.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (pluggables);
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (icon);
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _plugins_extension_point_unref0 (extension_point);
-#line 1502 "ManifestWidget.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (_extension_point_it);
-#line 1506 "ManifestWidget.c"
- }
-#line 197 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_view_expand_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (icon_theme);
-#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (column);
-#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (text_renderer);
-#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (icon_renderer);
-#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (checkbox_renderer);
-#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return self;
-#line 1522 "ManifestWidget.c"
-}
-
-
-PluginsManifestListView*
-plugins_manifest_list_view_new (void)
-{
-#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return plugins_manifest_list_view_construct (PLUGINS_TYPE_MANIFEST_LIST_VIEW);
-#line 1531 "ManifestWidget.c"
-}
-
-
-static GtkTreePath*
-_vala_GtkTreePath_copy (GtkTreePath* self)
-{
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return g_boxed_copy (gtk_tree_path_get_type (), self);
-#line 1540 "ManifestWidget.c"
-}
-
-
-static gpointer
-__vala_GtkTreePath_copy0 (gpointer self)
-{
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return self ? _vala_GtkTreePath_copy (self) : NULL;
-#line 1549 "ManifestWidget.c"
-}
-
-
-static void
-_vala_array_add53 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if ((*length) == (*size)) {
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 1565 "ManifestWidget.c"
- }
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- (*array)[(*length)++] = value;
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- (*array)[*length] = NULL;
-#line 1571 "ManifestWidget.c"
-}
-
-
-static void
-_vala_GtkTreePath_free (GtkTreePath* self)
-{
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_boxed_free (gtk_tree_path_get_type (), self);
-#line 1580 "ManifestWidget.c"
-}
-
-
-static void
-__vala_GtkTreePath_free0_ (gpointer var)
-{
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- (var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL));
-#line 1589 "ManifestWidget.c"
-}
-
-
-static inline void
-_g_list_free___vala_GtkTreePath_free0_ (GList* self)
-{
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_list_free_full (self, (GDestroyNotify) __vala_GtkTreePath_free0_);
-#line 1598 "ManifestWidget.c"
-}
-
-
-gchar**
-plugins_manifest_list_view_get_selected_ids (PluginsManifestListView* self,
- int* result_length1)
-{
- gchar** result = NULL;
- gchar** ids = NULL;
- gchar** _tmp0_;
- gint ids_length1;
- gint _ids_size_;
- GList* selected = NULL;
- GtkTreeSelection* _tmp1_;
- GList* _tmp2_;
- GList* _tmp3_;
- gchar** _tmp12_;
- gint _tmp12__length1;
-#line 200 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_return_val_if_fail (PLUGINS_IS_MANIFEST_LIST_VIEW (self), NULL);
-#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids = _tmp0_;
-#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ids_length1 = 0;
-#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _ids_size_ = ids_length1;
-#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp1_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp2_ = gtk_tree_selection_get_selected_rows (_tmp1_, NULL);
-#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- selected = _tmp2_;
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp3_ = selected;
-#line 1635 "ManifestWidget.c"
- {
- GList* path_collection = NULL;
- GList* path_it = NULL;
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- path_collection = _tmp3_;
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- for (path_it = path_collection; path_it != NULL; path_it = path_it->next) {
-#line 1643 "ManifestWidget.c"
- GtkTreePath* _tmp4_;
- GtkTreePath* path = NULL;
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp4_ = __vala_GtkTreePath_copy0 ((GtkTreePath*) path_it->data);
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- path = _tmp4_;
-#line 1650 "ManifestWidget.c"
- {
- GtkTreeIter iter = {0};
- gchar* id = NULL;
- GtkTreePath* _tmp5_;
- GtkTreeIter _tmp6_ = {0};
- gchar* _tmp7_;
- const gchar* _tmp8_;
-#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp5_ = path;
-#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp7_ = plugins_manifest_list_view_get_id_at_path (self, _tmp5_, &_tmp6_);
-#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- iter = _tmp6_;
-#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- id = _tmp7_;
-#line 207 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp8_ = id;
-#line 207 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp8_ != NULL) {
-#line 1670 "ManifestWidget.c"
- gchar** _tmp9_;
- gint _tmp9__length1;
- const gchar* _tmp10_;
- gchar* _tmp11_;
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp9_ = ids;
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp9__length1 = ids_length1;
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp10_ = id;
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _vala_array_add53 (&ids, &ids_length1, &_ids_size_, _tmp11_);
-#line 1685 "ManifestWidget.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_free0 (id);
-#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1691 "ManifestWidget.c"
- }
- }
- }
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp12_ = ids;
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp12__length1 = ids_length1;
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (result_length1) {
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- *result_length1 = _tmp12__length1;
-#line 1703 "ManifestWidget.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- result = _tmp12_;
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- __g_list_free___vala_GtkTreePath_free0_0 (selected);
-#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 1711 "ManifestWidget.c"
-}
-
-
-static gchar*
-plugins_manifest_list_view_get_id_at_path (PluginsManifestListView* self,
- GtkTreePath* path,
- GtkTreeIter* iter)
-{
- GtkTreeIter _vala_iter = {0};
- gchar* result = NULL;
- GtkTreeStore* _tmp0_;
- GtkTreeIter _tmp1_ = {0};
- gboolean _tmp2_;
- const gchar* id = NULL;
- GtkTreeStore* _tmp3_;
- GtkTreeIter _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
-#line 214 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_return_val_if_fail (PLUGINS_IS_MANIFEST_LIST_VIEW (self), NULL);
-#line 214 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_return_val_if_fail (path != NULL, NULL);
-#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp0_ = self->priv->store;
-#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp2_ = gtk_tree_model_get_iter (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp1_, path);
-#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _vala_iter = _tmp1_;
-#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!_tmp2_) {
-#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- result = NULL;
-#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (iter) {
-#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- *iter = _vala_iter;
-#line 1748 "ManifestWidget.c"
- }
-#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 1752 "ManifestWidget.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp3_ = self->priv->store;
-#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp4_ = _vala_iter;
-#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_model_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp4_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, &id, -1);
-#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp5_ = id;
-#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp6_ = g_strdup (_tmp5_);
-#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- result = _tmp6_;
-#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (iter) {
-#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- *iter = _vala_iter;
-#line 1770 "ManifestWidget.c"
- }
-#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 1774 "ManifestWidget.c"
-}
-
-
-static gboolean
-plugins_manifest_list_view_real_button_press_event (GtkWidget* base,
- GdkEventButton* event)
-{
- PluginsManifestListView * self;
- gboolean result = FALSE;
- GtkTreePath* path = NULL;
- GtkTreeViewColumn* col = NULL;
- gint cellx = 0;
- gint celly = 0;
- gdouble _tmp0_;
- gdouble _tmp1_;
- GtkTreePath* _tmp2_ = NULL;
- GtkTreeViewColumn* _tmp3_ = NULL;
- gint _tmp4_ = 0;
- gint _tmp5_ = 0;
- gboolean _tmp6_;
- GtkTreeViewColumn* _tmp7_;
- gboolean _tmp8_ = FALSE;
- gint _tmp9_;
- GtkTreeIter iter = {0};
- gchar* id = NULL;
- GtkTreePath* _tmp11_;
- GtkTreeIter _tmp12_ = {0};
- gchar* _tmp13_;
- const gchar* _tmp14_;
- gboolean enabled = FALSE;
- const gchar* _tmp15_;
- gboolean _tmp16_ = FALSE;
- gboolean _tmp17_;
- gboolean _tmp18_;
- const gchar* _tmp19_;
- gboolean _tmp20_;
- GtkTreeStore* _tmp21_;
- GtkTreeIter _tmp22_;
- gboolean _tmp23_;
-#line 232 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView);
-#line 232 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp0_ = event->x;
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp1_ = event->y;
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp6_ = gtk_tree_view_get_path_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), (gint) _tmp0_, (gint) _tmp1_, &_tmp2_, &_tmp3_, &_tmp4_, &_tmp5_);
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- __vala_GtkTreePath_free0 (path);
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- path = _tmp2_;
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (col);
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp7_ = _g_object_ref0 (_tmp3_);
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- col = _tmp7_;
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- cellx = _tmp4_;
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- celly = _tmp5_;
-#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!_tmp6_) {
-#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- result = GTK_WIDGET_CLASS (plugins_manifest_list_view_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), event);
-#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (col);
-#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- __vala_GtkTreePath_free0 (path);
-#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 1848 "ManifestWidget.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp9_ = cellx;
-#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp9_ < (PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE + PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING)) {
-#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp8_ = TRUE;
-#line 1856 "ManifestWidget.c"
- } else {
- gint _tmp10_;
-#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp10_ = cellx;
-#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp8_ = _tmp10_ > (2 * (PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING + PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE));
-#line 1863 "ManifestWidget.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp8_) {
-#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- result = GTK_WIDGET_CLASS (plugins_manifest_list_view_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), event);
-#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (col);
-#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- __vala_GtkTreePath_free0 (path);
-#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 1875 "ManifestWidget.c"
- }
-#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp11_ = path;
-#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp13_ = plugins_manifest_list_view_get_id_at_path (self, _tmp11_, &_tmp12_);
-#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- iter = _tmp12_;
-#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- id = _tmp13_;
-#line 249 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp14_ = id;
-#line 249 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (_tmp14_ == NULL) {
-#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- result = GTK_WIDGET_CLASS (plugins_manifest_list_view_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), event);
-#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_free0 (id);
-#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (col);
-#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- __vala_GtkTreePath_free0 (path);
-#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 1899 "ManifestWidget.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp15_ = id;
-#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp17_ = plugins_get_pluggable_enabled (_tmp15_, &_tmp16_);
-#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- enabled = _tmp16_;
-#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- if (!_tmp17_) {
-#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- result = GTK_WIDGET_CLASS (plugins_manifest_list_view_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), event);
-#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_free0 (id);
-#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (col);
-#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- __vala_GtkTreePath_free0 (path);
-#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 1919 "ManifestWidget.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp18_ = enabled;
-#line 257 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- enabled = !_tmp18_;
-#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp19_ = id;
-#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp20_ = enabled;
-#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- plugins_set_pluggable_enabled (_tmp19_, _tmp20_);
-#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp21_ = self->priv->store;
-#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp22_ = iter;
-#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _tmp23_ = enabled;
-#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- gtk_tree_store_set (_tmp21_, &_tmp22_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, _tmp23_, -1);
-#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- result = TRUE;
-#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_free0 (id);
-#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (col);
-#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- __vala_GtkTreePath_free0 (path);
-#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- return result;
-#line 1949 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_list_view_class_init (PluginsManifestListViewClass * klass)
-{
-#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- plugins_manifest_list_view_parent_class = g_type_class_peek_parent (klass);
-#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- g_type_class_add_private (klass, sizeof (PluginsManifestListViewPrivate));
-#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) plugins_manifest_list_view_real_button_press_event;
-#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- G_OBJECT_CLASS (klass)->finalize = plugins_manifest_list_view_finalize;
-#line 1964 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_list_view_instance_init (PluginsManifestListView * self)
-{
- GtkTreeStore* _tmp0_;
-#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self->priv = PLUGINS_MANIFEST_LIST_VIEW_GET_PRIVATE (self);
-#line 108 "/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_pixbuf_get_type (), G_TYPE_STRING, G_TYPE_STRING);
-#line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self->priv->store = _tmp0_;
-#line 1978 "ManifestWidget.c"
-}
-
-
-static void
-plugins_manifest_list_view_finalize (GObject * obj)
-{
- PluginsManifestListView * self;
-#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView);
-#line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- _g_object_unref0 (self->priv->store);
-#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala"
- G_OBJECT_CLASS (plugins_manifest_list_view_parent_class)->finalize (obj);
-#line 1992 "ManifestWidget.c"
-}
-
-
-GType
-plugins_manifest_list_view_get_type (void)
-{
- static volatile gsize plugins_manifest_list_view_type_id__volatile = 0;
- if (g_once_init_enter (&plugins_manifest_list_view_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PluginsManifestListViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_manifest_list_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsManifestListView), 0, (GInstanceInitFunc) plugins_manifest_list_view_instance_init, NULL };
- GType plugins_manifest_list_view_type_id;
- plugins_manifest_list_view_type_id = g_type_register_static (gtk_tree_view_get_type (), "PluginsManifestListView", &g_define_type_info, 0);
- g_once_init_leave (&plugins_manifest_list_view_type_id__volatile, plugins_manifest_list_view_type_id);
- }
- return plugins_manifest_list_view_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/plugins/Plugins.c b/src/plugins/Plugins.c
deleted file mode 100644
index 55b8513..0000000
--- a/src/plugins/Plugins.c
+++ /dev/null
@@ -1,4582 +0,0 @@
-/* Plugins.c generated by valac 0.40.4, the Vala compiler
- * generated from Plugins.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <gmodule.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define PLUGINS_TYPE_EXTENSION_POINT (plugins_extension_point_get_type ())
-#define PLUGINS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint))
-#define PLUGINS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass))
-#define PLUGINS_IS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_EXTENSION_POINT))
-#define PLUGINS_IS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_EXTENSION_POINT))
-#define PLUGINS_EXTENSION_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass))
-
-typedef struct _PluginsExtensionPoint PluginsExtensionPoint;
-typedef struct _PluginsExtensionPointClass PluginsExtensionPointClass;
-typedef struct _PluginsExtensionPointPrivate PluginsExtensionPointPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-typedef struct _PluginsParamSpecExtensionPoint PluginsParamSpecExtensionPoint;
-
-#define PLUGINS_TYPE_MODULE_REP (plugins_module_rep_get_type ())
-#define PLUGINS_MODULE_REP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MODULE_REP, PluginsModuleRep))
-#define PLUGINS_MODULE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MODULE_REP, PluginsModuleRepClass))
-#define PLUGINS_IS_MODULE_REP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MODULE_REP))
-#define PLUGINS_IS_MODULE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MODULE_REP))
-#define PLUGINS_MODULE_REP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MODULE_REP, PluginsModuleRepClass))
-
-typedef struct _PluginsModuleRep PluginsModuleRep;
-typedef struct _PluginsModuleRepClass PluginsModuleRepClass;
-typedef struct _PluginsModuleRepPrivate PluginsModuleRepPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_module_close0(var) ((var == NULL) ? NULL : (var = (g_module_close (var), NULL)))
-#define _plugins_module_rep_unref0(var) ((var == NULL) ? NULL : (var = (plugins_module_rep_unref (var), NULL)))
-typedef struct _PluginsParamSpecModuleRep PluginsParamSpecModuleRep;
-
-#define PLUGINS_TYPE_PLUGGABLE_REP (plugins_pluggable_rep_get_type ())
-#define PLUGINS_PLUGGABLE_REP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRep))
-#define PLUGINS_PLUGGABLE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepClass))
-#define PLUGINS_IS_PLUGGABLE_REP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_PLUGGABLE_REP))
-#define PLUGINS_IS_PLUGGABLE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_PLUGGABLE_REP))
-#define PLUGINS_PLUGGABLE_REP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepClass))
-
-typedef struct _PluginsPluggableRep PluginsPluggableRep;
-typedef struct _PluginsPluggableRepClass PluginsPluggableRepClass;
-typedef struct _PluginsPluggableRepPrivate PluginsPluggableRepPrivate;
-
-#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ())
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-typedef struct _PluginsParamSpecPluggableRep PluginsParamSpecPluggableRep;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define PLUGINS_TYPE_NOTIFIER (plugins_notifier_get_type ())
-#define PLUGINS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifier))
-#define PLUGINS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass))
-#define PLUGINS_IS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_NOTIFIER))
-#define PLUGINS_IS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_NOTIFIER))
-#define PLUGINS_NOTIFIER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass))
-
-typedef struct _PluginsNotifier PluginsNotifier;
-typedef struct _PluginsNotifierClass PluginsNotifierClass;
-typedef struct _PluginsNotifierPrivate PluginsNotifierPrivate;
-#define _plugins_notifier_unref0(var) ((var == NULL) ? NULL : (var = (plugins_notifier_unref (var), NULL)))
-typedef struct _PluginsParamSpecNotifier PluginsParamSpecNotifier;
-enum {
- PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL,
- PLUGINS_NOTIFIER_NUM_SIGNALS
-};
-static guint plugins_notifier_signals[PLUGINS_NOTIFIER_NUM_SIGNALS] = {0};
-#define _plugins_extension_point_unref0(var) ((var == NULL) ? NULL : (var = (plugins_extension_point_unref (var), NULL)))
-#define _plugins_pluggable_rep_unref0(var) ((var == NULL) ? NULL : (var = (plugins_pluggable_rep_unref (var), NULL)))
-
-#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ())
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _PluginsExtensionPoint {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PluginsExtensionPointPrivate * priv;
-};
-
-struct _PluginsExtensionPointClass {
- GTypeClass parent_class;
- void (*finalize) (PluginsExtensionPoint *self);
-};
-
-struct _PluginsExtensionPointPrivate {
- GType _pluggable_type;
- gchar* _name;
- gchar* _icon_name;
- gchar** _core_ids;
- gint _core_ids_length1;
- gint __core_ids_size_;
-};
-
-struct _PluginsParamSpecExtensionPoint {
- GParamSpec parent_instance;
-};
-
-struct _PluginsModuleRep {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PluginsModuleRepPrivate * priv;
- GFile* file;
- GModule* module;
- SpitModule* spit_module;
- gint spit_interface;
- gchar* id;
-};
-
-struct _PluginsModuleRepClass {
- GTypeClass parent_class;
- void (*finalize) (PluginsModuleRep *self);
-};
-
-struct _PluginsParamSpecModuleRep {
- GParamSpec parent_instance;
-};
-
-struct _PluginsPluggableRep {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PluginsPluggableRepPrivate * priv;
-};
-
-struct _PluginsPluggableRepClass {
- GTypeClass parent_class;
- void (*finalize) (PluginsPluggableRep *self);
-};
-
-struct _PluginsPluggableRepPrivate {
- SpitPluggable* _pluggable;
- gchar* _id;
- gboolean _is_core;
- gboolean _activated;
- gboolean enabled;
-};
-
-typedef enum {
- FUZZY_PROPERTY_STATE_ENABLED,
- FUZZY_PROPERTY_STATE_DISABLED,
- FUZZY_PROPERTY_STATE_UNKNOWN
-} FuzzyPropertyState;
-
-struct _PluginsParamSpecPluggableRep {
- GParamSpec parent_instance;
-};
-
-struct _PluginsNotifier {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PluginsNotifierPrivate * priv;
-};
-
-struct _PluginsNotifierClass {
- GTypeClass parent_class;
- void (*finalize) (PluginsNotifier *self);
-};
-
-struct _PluginsParamSpecNotifier {
- GParamSpec parent_instance;
-};
-
-typedef enum {
- PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0,
- PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
- PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
- PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
- PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
-} PrepareInputTextOptions;
-
-
-static gpointer plugins_extension_point_parent_class = NULL;
-static gpointer plugins_module_rep_parent_class = NULL;
-static gpointer plugins_pluggable_rep_parent_class = NULL;
-extern GFile** plugins_search_dirs;
-extern gint plugins_search_dirs_length1;
-GFile** plugins_search_dirs = NULL;
-gint plugins_search_dirs_length1 = 0;
-static gint _plugins_search_dirs_size_ = 0;
-extern GeeHashMap* plugins_module_table;
-GeeHashMap* plugins_module_table = NULL;
-extern GeeHashMap* plugins_pluggable_table;
-GeeHashMap* plugins_pluggable_table = NULL;
-extern GeeHashMap* plugins_extension_points;
-GeeHashMap* plugins_extension_points = NULL;
-extern GeeHashSet* plugins_core_ids;
-GeeHashSet* plugins_core_ids = NULL;
-static gpointer plugins_notifier_parent_class = NULL;
-static PluginsNotifier* plugins_notifier_instance;
-static PluginsNotifier* plugins_notifier_instance = NULL;
-
-#define PLUGINS_MIN_SPIT_INTERFACE 0
-#define PLUGINS_MAX_SPIT_INTERFACE 0
-gpointer plugins_extension_point_ref (gpointer instance);
-void plugins_extension_point_unref (gpointer instance);
-GParamSpec* plugins_param_spec_extension_point (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void plugins_value_set_extension_point (GValue* value,
- gpointer v_object);
-void plugins_value_take_extension_point (GValue* value,
- gpointer v_object);
-gpointer plugins_value_get_extension_point (const GValue* value);
-GType plugins_extension_point_get_type (void) G_GNUC_CONST;
-#define PLUGINS_EXTENSION_POINT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointPrivate))
-PluginsExtensionPoint* plugins_extension_point_new (GType pluggable_type,
- const gchar* name,
- const gchar* icon_name,
- gchar** core_ids,
- int core_ids_length1);
-PluginsExtensionPoint* plugins_extension_point_construct (GType object_type,
- GType pluggable_type,
- const gchar* name,
- const gchar* icon_name,
- gchar** core_ids,
- int core_ids_length1);
-static void plugins_extension_point_set_pluggable_type (PluginsExtensionPoint* self,
- GType value);
-static void plugins_extension_point_set_name (PluginsExtensionPoint* self,
- const gchar* value);
-static void plugins_extension_point_set_icon_name (PluginsExtensionPoint* self,
- const gchar* value);
-static void plugins_extension_point_set_core_ids (PluginsExtensionPoint* self,
- gchar** value,
- int value_length1);
-GType plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self);
-const gchar* plugins_extension_point_get_name (PluginsExtensionPoint* self);
-const gchar* plugins_extension_point_get_icon_name (PluginsExtensionPoint* self);
-gchar** plugins_extension_point_get_core_ids (PluginsExtensionPoint* self,
- int* result_length1);
-static gchar** _vala_array_dup16 (gchar** self,
- int length);
-static void plugins_extension_point_finalize (PluginsExtensionPoint * obj);
-gpointer plugins_module_rep_ref (gpointer instance);
-void plugins_module_rep_unref (gpointer instance);
-GParamSpec* plugins_param_spec_module_rep (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void plugins_value_set_module_rep (GValue* value,
- gpointer v_object);
-void plugins_value_take_module_rep (GValue* value,
- gpointer v_object);
-gpointer plugins_value_get_module_rep (const GValue* value);
-GType plugins_module_rep_get_type (void) G_GNUC_CONST;
-static PluginsModuleRep* plugins_module_rep_new (GFile* file);
-static PluginsModuleRep* plugins_module_rep_construct (GType object_type,
- GFile* file);
-PluginsModuleRep* plugins_module_rep_open (GFile* file);
-static void plugins_module_rep_finalize (PluginsModuleRep * obj);
-gpointer plugins_pluggable_rep_ref (gpointer instance);
-void plugins_pluggable_rep_unref (gpointer instance);
-GParamSpec* plugins_param_spec_pluggable_rep (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void plugins_value_set_pluggable_rep (GValue* value,
- gpointer v_object);
-void plugins_value_take_pluggable_rep (GValue* value,
- gpointer v_object);
-gpointer plugins_value_get_pluggable_rep (const GValue* value);
-GType plugins_pluggable_rep_get_type (void) G_GNUC_CONST;
-#define PLUGINS_PLUGGABLE_REP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepPrivate))
-PluginsPluggableRep* plugins_pluggable_rep_new (SpitPluggable* pluggable);
-PluginsPluggableRep* plugins_pluggable_rep_construct (GType object_type,
- SpitPluggable* pluggable);
-static void plugins_pluggable_rep_set_pluggable (PluginsPluggableRep* self,
- SpitPluggable* value);
-static void plugins_pluggable_rep_set_id (PluginsPluggableRep* self,
- const gchar* value);
-void plugins_pluggable_rep_activate (PluginsPluggableRep* self);
-gboolean plugins_is_core_pluggable (SpitPluggable* pluggable);
-SpitPluggable* plugins_pluggable_rep_get_pluggable (PluginsPluggableRep* self);
-static void plugins_pluggable_rep_set_is_core (PluginsPluggableRep* self,
- gboolean value);
-GType fuzzy_property_state_get_type (void) G_GNUC_CONST;
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-FuzzyPropertyState configuration_facade_is_plugin_enabled (ConfigurationFacade* self,
- const gchar* id);
-const gchar* plugins_pluggable_rep_get_id (PluginsPluggableRep* self);
-gboolean plugins_pluggable_rep_get_is_core (PluginsPluggableRep* self);
-static void plugins_pluggable_rep_set_activated (PluginsPluggableRep* self,
- gboolean value);
-gboolean plugins_pluggable_rep_is_enabled (PluginsPluggableRep* self);
-gboolean plugins_pluggable_rep_set_enabled (PluginsPluggableRep* self,
- gboolean enabled);
-void configuration_facade_set_plugin_enabled (ConfigurationFacade* self,
- const gchar* id,
- gboolean enabled);
-gboolean plugins_pluggable_rep_get_activated (PluginsPluggableRep* self);
-static void plugins_pluggable_rep_finalize (PluginsPluggableRep * obj);
-void plugins_init (GError** error);
-GFile* app_dirs_get_user_plugins_dir (void);
-static void _vala_array_add50 (GFile** * array,
- int* length,
- int* size,
- GFile* value);
-GFile* app_dirs_get_system_plugins_dir (void);
-static void _vala_array_add51 (GFile** * array,
- int* length,
- int* size,
- GFile* value);
-void plugins_search_for_plugins (GFile* dir,
- GError** error);
-void plugins_terminate (void);
-gpointer plugins_notifier_ref (gpointer instance);
-void plugins_notifier_unref (gpointer instance);
-GParamSpec* plugins_param_spec_notifier (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void plugins_value_set_notifier (GValue* value,
- gpointer v_object);
-void plugins_value_take_notifier (GValue* value,
- gpointer v_object);
-gpointer plugins_value_get_notifier (const GValue* value);
-GType plugins_notifier_get_type (void) G_GNUC_CONST;
-static PluginsNotifier* plugins_notifier_new (void);
-static PluginsNotifier* plugins_notifier_construct (GType object_type);
-PluginsNotifier* plugins_notifier_get_instance (void);
-static void g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void plugins_notifier_finalize (PluginsNotifier * obj);
-void plugins_register_extension_point (GType type,
- const gchar* name,
- const gchar* icon_name,
- gchar** core_ids,
- int core_ids_length1);
-GeeCollection* plugins_get_pluggables (gboolean include_disabled);
-PluginsModuleRep* plugins_get_module_for_pluggable (SpitPluggable* needle);
-static SpitPluggable** _vala_array_dup17 (SpitPluggable** self,
- int length);
-gchar* plugins_get_pluggable_module_id (SpitPluggable* needle);
-GeeCollection* plugins_get_extension_points (GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify);
-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_name (const gchar* id);
-gboolean plugins_get_pluggable_info (const gchar* id,
- SpitPluggableInfo* info);
-gboolean plugins_get_pluggable_enabled (const gchar* id,
- gboolean* enabled);
-void plugins_set_pluggable_enabled (const gchar* id,
- gboolean enabled);
-GFile* plugins_get_pluggable_module_file (SpitPluggable* pluggable);
-gint plugins_compare_pluggable_names (void* a,
- void* b);
-gint plugins_compare_extension_point_names (void* a,
- void* b);
-gboolean plugins_is_shared_library (GFile* file);
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value"
-void plugins_load_module (GFile* file);
-GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
-gchar* prepare_input_text (const gchar* text,
- PrepareInputTextOptions options,
- gint dest_length);
-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);
-
-const gchar* PLUGINS_SHARED_LIB_EXTS[2] = {"so", "la"};
-
-PluginsExtensionPoint*
-plugins_extension_point_construct (GType object_type,
- GType pluggable_type,
- const gchar* name,
- const gchar* icon_name,
- gchar** core_ids,
- int core_ids_length1)
-{
- PluginsExtensionPoint* self = NULL;
-#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self = (PluginsExtensionPoint*) g_type_create_instance (object_type);
-#line 26 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_set_pluggable_type (self, pluggable_type);
-#line 27 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_set_name (self, name);
-#line 28 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_set_icon_name (self, icon_name);
-#line 29 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_set_core_ids (self, core_ids, core_ids_length1);
-#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return self;
-#line 446 "Plugins.c"
-}
-
-
-PluginsExtensionPoint*
-plugins_extension_point_new (GType pluggable_type,
- const gchar* name,
- const gchar* icon_name,
- gchar** core_ids,
- int core_ids_length1)
-{
-#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return plugins_extension_point_construct (PLUGINS_TYPE_EXTENSION_POINT, pluggable_type, name, icon_name, core_ids, core_ids_length1);
-#line 459 "Plugins.c"
-}
-
-
-GType
-plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self)
-{
- GType result;
- GType _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), 0UL);
-#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_pluggable_type;
-#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 476 "Plugins.c"
-}
-
-
-static void
-plugins_extension_point_set_pluggable_type (PluginsExtensionPoint* self,
- GType value)
-{
-#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self));
-#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_pluggable_type = value;
-#line 488 "Plugins.c"
-}
-
-
-const gchar*
-plugins_extension_point_get_name (PluginsExtensionPoint* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL);
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_name;
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 505 "Plugins.c"
-}
-
-
-static void
-plugins_extension_point_set_name (PluginsExtensionPoint* self,
- const gchar* value)
-{
- gchar* _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self));
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = g_strdup (value);
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (self->priv->_name);
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_name = _tmp0_;
-#line 522 "Plugins.c"
-}
-
-
-const gchar*
-plugins_extension_point_get_icon_name (PluginsExtensionPoint* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL);
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_icon_name;
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 539 "Plugins.c"
-}
-
-
-static void
-plugins_extension_point_set_icon_name (PluginsExtensionPoint* self,
- const gchar* value)
-{
- gchar* _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self));
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = g_strdup (value);
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (self->priv->_icon_name);
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_icon_name = _tmp0_;
-#line 556 "Plugins.c"
-}
-
-
-gchar**
-plugins_extension_point_get_core_ids (PluginsExtensionPoint* self,
- int* result_length1)
-{
- gchar** result;
- gchar** _tmp0_;
- gint _tmp0__length1;
- gchar** _tmp1_;
- gint _tmp1__length1;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL);
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_core_ids;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0__length1 = self->priv->_core_ids_length1;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (result_length1) {
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *result_length1 = _tmp1__length1;
-#line 583 "Plugins.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp1_;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 589 "Plugins.c"
-}
-
-
-static gchar**
-_vala_array_dup16 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = g_new0 (gchar*, length + 1);
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- for (i = 0; i < length; i++) {
-#line 603 "Plugins.c"
- gchar* _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result[i] = _tmp0_;
-#line 609 "Plugins.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 613 "Plugins.c"
-}
-
-
-static void
-plugins_extension_point_set_core_ids (PluginsExtensionPoint* self,
- gchar** value,
- int value_length1)
-{
- gchar** _tmp0_;
- gint _tmp0__length1;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self));
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = (value != NULL) ? _vala_array_dup16 (value, value_length1) : ((gpointer) value);
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0__length1 = value_length1;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_core_ids = (_vala_array_free (self->priv->_core_ids, self->priv->_core_ids_length1, (GDestroyNotify) g_free), NULL);
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_core_ids = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_core_ids_length1 = _tmp0__length1;
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->__core_ids_size_ = self->priv->_core_ids_length1;
-#line 638 "Plugins.c"
-}
-
-
-static void
-plugins_value_extension_point_init (GValue* value)
-{
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 647 "Plugins.c"
-}
-
-
-static void
-plugins_value_extension_point_free_value (GValue* value)
-{
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (value->data[0].v_pointer) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_unref (value->data[0].v_pointer);
-#line 658 "Plugins.c"
- }
-}
-
-
-static void
-plugins_value_extension_point_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (src_value->data[0].v_pointer) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dest_value->data[0].v_pointer = plugins_extension_point_ref (src_value->data[0].v_pointer);
-#line 671 "Plugins.c"
- } else {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 675 "Plugins.c"
- }
-}
-
-
-static gpointer
-plugins_value_extension_point_peek_pointer (const GValue* value)
-{
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return value->data[0].v_pointer;
-#line 685 "Plugins.c"
-}
-
-
-static gchar*
-plugins_value_extension_point_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (collect_values[0].v_pointer) {
-#line 697 "Plugins.c"
- PluginsExtensionPoint * object;
- object = collect_values[0].v_pointer;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 704 "Plugins.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.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 708 "Plugins.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = plugins_extension_point_ref (object);
-#line 712 "Plugins.c"
- } else {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 716 "Plugins.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return NULL;
-#line 720 "Plugins.c"
-}
-
-
-static gchar*
-plugins_value_extension_point_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PluginsExtensionPoint ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!object_p) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 736 "Plugins.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!value->data[0].v_pointer) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = NULL;
-#line 742 "Plugins.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = value->data[0].v_pointer;
-#line 746 "Plugins.c"
- } else {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = plugins_extension_point_ref (value->data[0].v_pointer);
-#line 750 "Plugins.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return NULL;
-#line 754 "Plugins.c"
-}
-
-
-GParamSpec*
-plugins_param_spec_extension_point (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PluginsParamSpecExtensionPoint* spec;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_EXTENSION_POINT), NULL);
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return G_PARAM_SPEC (spec);
-#line 774 "Plugins.c"
-}
-
-
-gpointer
-plugins_value_get_extension_point (const GValue* value)
-{
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT), NULL);
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return value->data[0].v_pointer;
-#line 785 "Plugins.c"
-}
-
-
-void
-plugins_value_set_extension_point (GValue* value,
- gpointer v_object)
-{
- PluginsExtensionPoint * old;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT));
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- old = value->data[0].v_pointer;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (v_object) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_EXTENSION_POINT));
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = v_object;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_ref (value->data[0].v_pointer);
-#line 808 "Plugins.c"
- } else {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 812 "Plugins.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (old) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_unref (old);
-#line 818 "Plugins.c"
- }
-}
-
-
-void
-plugins_value_take_extension_point (GValue* value,
- gpointer v_object)
-{
- PluginsExtensionPoint * old;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT));
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- old = value->data[0].v_pointer;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (v_object) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_EXTENSION_POINT));
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = v_object;
-#line 840 "Plugins.c"
- } else {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 844 "Plugins.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (old) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_unref (old);
-#line 850 "Plugins.c"
- }
-}
-
-
-static void
-plugins_extension_point_class_init (PluginsExtensionPointClass * klass)
-{
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_point_parent_class = g_type_class_peek_parent (klass);
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- ((PluginsExtensionPointClass *) klass)->finalize = plugins_extension_point_finalize;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_type_class_add_private (klass, sizeof (PluginsExtensionPointPrivate));
-#line 864 "Plugins.c"
-}
-
-
-static void
-plugins_extension_point_instance_init (PluginsExtensionPoint * self)
-{
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv = PLUGINS_EXTENSION_POINT_GET_PRIVATE (self);
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->ref_count = 1;
-#line 875 "Plugins.c"
-}
-
-
-static void
-plugins_extension_point_finalize (PluginsExtensionPoint * obj)
-{
- PluginsExtensionPoint * self;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint);
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_signal_handlers_destroy (self);
-#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (self->priv->_name);
-#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (self->priv->_icon_name);
-#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_core_ids = (_vala_array_free (self->priv->_core_ids, self->priv->_core_ids_length1, (GDestroyNotify) g_free), NULL);
-#line 893 "Plugins.c"
-}
-
-
-GType
-plugins_extension_point_get_type (void)
-{
- static volatile gsize plugins_extension_point_type_id__volatile = 0;
- if (g_once_init_enter (&plugins_extension_point_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { plugins_value_extension_point_init, plugins_value_extension_point_free_value, plugins_value_extension_point_copy_value, plugins_value_extension_point_peek_pointer, "p", plugins_value_extension_point_collect_value, "p", plugins_value_extension_point_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PluginsExtensionPointClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_extension_point_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsExtensionPoint), 0, (GInstanceInitFunc) plugins_extension_point_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType plugins_extension_point_type_id;
- plugins_extension_point_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsExtensionPoint", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&plugins_extension_point_type_id__volatile, plugins_extension_point_type_id);
- }
- return plugins_extension_point_type_id__volatile;
-}
-
-
-gpointer
-plugins_extension_point_ref (gpointer instance)
-{
- PluginsExtensionPoint * self;
- self = instance;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return instance;
-#line 922 "Plugins.c"
-}
-
-
-void
-plugins_extension_point_unref (gpointer instance)
-{
- PluginsExtensionPoint * self;
- self = instance;
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- PLUGINS_EXTENSION_POINT_GET_CLASS (self)->finalize (self);
-#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 937 "Plugins.c"
- }
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return self ? g_object_ref (self) : NULL;
-#line 947 "Plugins.c"
-}
-
-
-static PluginsModuleRep*
-plugins_module_rep_construct (GType object_type,
- GFile* file)
-{
- PluginsModuleRep* self = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GModule* _tmp3_;
-#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self = (PluginsModuleRep*) g_type_create_instance (object_type);
-#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = _g_object_ref0 (file);
-#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (self->file);
-#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->file = _tmp0_;
-#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = g_file_get_path (file);
-#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = _tmp1_;
-#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = g_module_open (_tmp2_, G_MODULE_BIND_LAZY);
-#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_module_close0 (self->module);
-#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->module = _tmp3_;
-#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp2_);
-#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return self;
-#line 984 "Plugins.c"
-}
-
-
-static PluginsModuleRep*
-plugins_module_rep_new (GFile* file)
-{
-#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return plugins_module_rep_construct (PLUGINS_TYPE_MODULE_REP, file);
-#line 993 "Plugins.c"
-}
-
-
-static gpointer
-_plugins_module_rep_ref0 (gpointer self)
-{
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return self ? plugins_module_rep_ref (self) : NULL;
-#line 1002 "Plugins.c"
-}
-
-
-PluginsModuleRep*
-plugins_module_rep_open (GFile* file)
-{
- PluginsModuleRep* result = NULL;
- PluginsModuleRep* module_rep = NULL;
- PluginsModuleRep* _tmp0_;
- PluginsModuleRep* _tmp1_ = NULL;
- PluginsModuleRep* _tmp2_;
- GModule* _tmp3_;
- PluginsModuleRep* _tmp5_;
-#line 54 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 55 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_module_rep_new (file);
-#line 55 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- module_rep = _tmp0_;
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = module_rep;
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = _tmp2_->module;
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp3_ != NULL) {
-#line 1028 "Plugins.c"
- PluginsModuleRep* _tmp4_;
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = module_rep;
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = _tmp4_;
-#line 1034 "Plugins.c"
- } else {
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = NULL;
-#line 1038 "Plugins.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = _plugins_module_rep_ref0 (_tmp1_);
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp5_;
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 1048 "Plugins.c"
-}
-
-
-static void
-plugins_value_module_rep_init (GValue* value)
-{
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 1057 "Plugins.c"
-}
-
-
-static void
-plugins_value_module_rep_free_value (GValue* value)
-{
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (value->data[0].v_pointer) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_module_rep_unref (value->data[0].v_pointer);
-#line 1068 "Plugins.c"
- }
-}
-
-
-static void
-plugins_value_module_rep_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (src_value->data[0].v_pointer) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dest_value->data[0].v_pointer = plugins_module_rep_ref (src_value->data[0].v_pointer);
-#line 1081 "Plugins.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1085 "Plugins.c"
- }
-}
-
-
-static gpointer
-plugins_value_module_rep_peek_pointer (const GValue* value)
-{
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return value->data[0].v_pointer;
-#line 1095 "Plugins.c"
-}
-
-
-static gchar*
-plugins_value_module_rep_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (collect_values[0].v_pointer) {
-#line 1107 "Plugins.c"
- PluginsModuleRep * object;
- object = collect_values[0].v_pointer;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1114 "Plugins.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.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 1118 "Plugins.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = plugins_module_rep_ref (object);
-#line 1122 "Plugins.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 1126 "Plugins.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return NULL;
-#line 1130 "Plugins.c"
-}
-
-
-static gchar*
-plugins_value_module_rep_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PluginsModuleRep ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!object_p) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1146 "Plugins.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!value->data[0].v_pointer) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = NULL;
-#line 1152 "Plugins.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = value->data[0].v_pointer;
-#line 1156 "Plugins.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = plugins_module_rep_ref (value->data[0].v_pointer);
-#line 1160 "Plugins.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return NULL;
-#line 1164 "Plugins.c"
-}
-
-
-GParamSpec*
-plugins_param_spec_module_rep (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PluginsParamSpecModuleRep* spec;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_MODULE_REP), NULL);
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return G_PARAM_SPEC (spec);
-#line 1184 "Plugins.c"
-}
-
-
-gpointer
-plugins_value_get_module_rep (const GValue* value)
-{
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP), NULL);
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return value->data[0].v_pointer;
-#line 1195 "Plugins.c"
-}
-
-
-void
-plugins_value_set_module_rep (GValue* value,
- gpointer v_object)
-{
- PluginsModuleRep * old;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP));
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- old = value->data[0].v_pointer;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (v_object) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_MODULE_REP));
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = v_object;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_module_rep_ref (value->data[0].v_pointer);
-#line 1218 "Plugins.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 1222 "Plugins.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (old) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_module_rep_unref (old);
-#line 1228 "Plugins.c"
- }
-}
-
-
-void
-plugins_value_take_module_rep (GValue* value,
- gpointer v_object)
-{
- PluginsModuleRep * old;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP));
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- old = value->data[0].v_pointer;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (v_object) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_MODULE_REP));
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = v_object;
-#line 1250 "Plugins.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 1254 "Plugins.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (old) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_module_rep_unref (old);
-#line 1260 "Plugins.c"
- }
-}
-
-
-static void
-plugins_module_rep_class_init (PluginsModuleRepClass * klass)
-{
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_module_rep_parent_class = g_type_class_peek_parent (klass);
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- ((PluginsModuleRepClass *) klass)->finalize = plugins_module_rep_finalize;
-#line 1272 "Plugins.c"
-}
-
-
-static void
-plugins_module_rep_instance_init (PluginsModuleRep * self)
-{
-#line 36 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->spit_module = NULL;
-#line 37 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->spit_interface = SPIT_UNSUPPORTED_INTERFACE;
-#line 38 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->id = NULL;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->ref_count = 1;
-#line 1287 "Plugins.c"
-}
-
-
-static void
-plugins_module_rep_finalize (PluginsModuleRep * obj)
-{
- PluginsModuleRep * self;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MODULE_REP, PluginsModuleRep);
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_signal_handlers_destroy (self);
-#line 48 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (self->spit_module);
-#line 48 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->spit_module = NULL;
-#line 34 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (self->file);
-#line 35 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_module_close0 (self->module);
-#line 36 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (self->spit_module);
-#line 38 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (self->id);
-#line 1311 "Plugins.c"
-}
-
-
-GType
-plugins_module_rep_get_type (void)
-{
- static volatile gsize plugins_module_rep_type_id__volatile = 0;
- if (g_once_init_enter (&plugins_module_rep_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { plugins_value_module_rep_init, plugins_value_module_rep_free_value, plugins_value_module_rep_copy_value, plugins_value_module_rep_peek_pointer, "p", plugins_value_module_rep_collect_value, "p", plugins_value_module_rep_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PluginsModuleRepClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_module_rep_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsModuleRep), 0, (GInstanceInitFunc) plugins_module_rep_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType plugins_module_rep_type_id;
- plugins_module_rep_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsModuleRep", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&plugins_module_rep_type_id__volatile, plugins_module_rep_type_id);
- }
- return plugins_module_rep_type_id__volatile;
-}
-
-
-gpointer
-plugins_module_rep_ref (gpointer instance)
-{
- PluginsModuleRep * self;
- self = instance;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return instance;
-#line 1340 "Plugins.c"
-}
-
-
-void
-plugins_module_rep_unref (gpointer instance)
-{
- PluginsModuleRep * self;
- self = instance;
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- PLUGINS_MODULE_REP_GET_CLASS (self)->finalize (self);
-#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1355 "Plugins.c"
- }
-}
-
-
-PluginsPluggableRep*
-plugins_pluggable_rep_construct (GType object_type,
- SpitPluggable* pluggable)
-{
- PluginsPluggableRep* self = NULL;
- const gchar* _tmp0_;
-#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL);
-#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self = (PluginsPluggableRep*) g_type_create_instance (object_type);
-#line 71 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_set_pluggable (self, pluggable);
-#line 72 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = spit_pluggable_get_id (pluggable);
-#line 72 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_set_id (self, _tmp0_);
-#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return self;
-#line 1378 "Plugins.c"
-}
-
-
-PluginsPluggableRep*
-plugins_pluggable_rep_new (SpitPluggable* pluggable)
-{
-#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return plugins_pluggable_rep_construct (PLUGINS_TYPE_PLUGGABLE_REP, pluggable);
-#line 1387 "Plugins.c"
-}
-
-
-void
-plugins_pluggable_rep_activate (PluginsPluggableRep* self)
-{
- SpitPluggable* _tmp0_;
- FuzzyPropertyState saved_state = 0;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- const gchar* _tmp3_;
- FuzzyPropertyState _tmp4_;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_;
- SpitPluggable* _tmp12_;
- gboolean _tmp13_;
-#line 75 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self));
-#line 78 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_pluggable;
-#line 78 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_set_is_core (self, plugins_is_core_pluggable (_tmp0_));
-#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = _tmp1_;
-#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = self->priv->_id;
-#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = configuration_facade_is_plugin_enabled (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_);
-#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp2_);
-#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- saved_state = _tmp4_;
-#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = self->priv->_is_core;
-#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp7_) {
-#line 1427 "Plugins.c"
- FuzzyPropertyState _tmp8_;
-#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = saved_state;
-#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = _tmp8_ != FUZZY_PROPERTY_STATE_DISABLED;
-#line 1433 "Plugins.c"
- } else {
-#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = FALSE;
-#line 1437 "Plugins.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp6_) {
-#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = TRUE;
-#line 1443 "Plugins.c"
- } else {
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_;
-#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = self->priv->_is_core;
-#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!_tmp10_) {
-#line 1451 "Plugins.c"
- FuzzyPropertyState _tmp11_;
-#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = saved_state;
-#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = _tmp11_ == FUZZY_PROPERTY_STATE_ENABLED;
-#line 1457 "Plugins.c"
- } else {
-#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = FALSE;
-#line 1461 "Plugins.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = _tmp9_;
-#line 1465 "Plugins.c"
- }
-#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->enabled = _tmp5_;
-#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = self->priv->_pluggable;
-#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = self->priv->enabled;
-#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_pluggable_activation (_tmp12_, _tmp13_);
-#line 87 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_set_activated (self, TRUE);
-#line 1477 "Plugins.c"
-}
-
-
-gboolean
-plugins_pluggable_rep_is_enabled (PluginsPluggableRep* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 90 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE);
-#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->enabled;
-#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp0_;
-#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 1494 "Plugins.c"
-}
-
-
-gboolean
-plugins_pluggable_rep_set_enabled (PluginsPluggableRep* self,
- gboolean enabled)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
- ConfigFacade* _tmp1_;
- ConfigFacade* _tmp2_;
- const gchar* _tmp3_;
- SpitPluggable* _tmp4_;
-#line 95 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE);
-#line 96 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->enabled;
-#line 96 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (enabled == _tmp0_) {
-#line 97 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = FALSE;
-#line 97 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 1518 "Plugins.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->enabled = enabled;
-#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = _tmp1_;
-#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = self->priv->_id;
-#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- configuration_facade_set_plugin_enabled (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_, enabled);
-#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp2_);
-#line 101 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = self->priv->_pluggable;
-#line 101 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_pluggable_activation (_tmp4_, enabled);
-#line 103 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = TRUE;
-#line 103 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 1540 "Plugins.c"
-}
-
-
-SpitPluggable*
-plugins_pluggable_rep_get_pluggable (PluginsPluggableRep* self)
-{
- SpitPluggable* result;
- SpitPluggable* _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), NULL);
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_pluggable;
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 1557 "Plugins.c"
-}
-
-
-static void
-plugins_pluggable_rep_set_pluggable (PluginsPluggableRep* self,
- SpitPluggable* value)
-{
- SpitPluggable* _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self));
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (self->priv->_pluggable);
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_pluggable = _tmp0_;
-#line 1574 "Plugins.c"
-}
-
-
-const gchar*
-plugins_pluggable_rep_get_id (PluginsPluggableRep* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), NULL);
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_id;
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 1591 "Plugins.c"
-}
-
-
-static void
-plugins_pluggable_rep_set_id (PluginsPluggableRep* self,
- const gchar* value)
-{
- gchar* _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self));
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = g_strdup (value);
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (self->priv->_id);
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_id = _tmp0_;
-#line 1608 "Plugins.c"
-}
-
-
-gboolean
-plugins_pluggable_rep_get_is_core (PluginsPluggableRep* self)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE);
-#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_is_core;
-#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 1625 "Plugins.c"
-}
-
-
-static void
-plugins_pluggable_rep_set_is_core (PluginsPluggableRep* self,
- gboolean value)
-{
-#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self));
-#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_is_core = value;
-#line 1637 "Plugins.c"
-}
-
-
-gboolean
-plugins_pluggable_rep_get_activated (PluginsPluggableRep* self)
-{
- gboolean result;
- gboolean _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE);
-#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = self->priv->_activated;
-#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 1654 "Plugins.c"
-}
-
-
-static void
-plugins_pluggable_rep_set_activated (PluginsPluggableRep* self,
- gboolean value)
-{
-#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self));
-#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_activated = value;
-#line 1666 "Plugins.c"
-}
-
-
-static void
-plugins_value_pluggable_rep_init (GValue* value)
-{
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 1675 "Plugins.c"
-}
-
-
-static void
-plugins_value_pluggable_rep_free_value (GValue* value)
-{
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (value->data[0].v_pointer) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_unref (value->data[0].v_pointer);
-#line 1686 "Plugins.c"
- }
-}
-
-
-static void
-plugins_value_pluggable_rep_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (src_value->data[0].v_pointer) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dest_value->data[0].v_pointer = plugins_pluggable_rep_ref (src_value->data[0].v_pointer);
-#line 1699 "Plugins.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1703 "Plugins.c"
- }
-}
-
-
-static gpointer
-plugins_value_pluggable_rep_peek_pointer (const GValue* value)
-{
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return value->data[0].v_pointer;
-#line 1713 "Plugins.c"
-}
-
-
-static gchar*
-plugins_value_pluggable_rep_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (collect_values[0].v_pointer) {
-#line 1725 "Plugins.c"
- PluginsPluggableRep * object;
- object = collect_values[0].v_pointer;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1732 "Plugins.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.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 1736 "Plugins.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = plugins_pluggable_rep_ref (object);
-#line 1740 "Plugins.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 1744 "Plugins.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return NULL;
-#line 1748 "Plugins.c"
-}
-
-
-static gchar*
-plugins_value_pluggable_rep_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PluginsPluggableRep ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!object_p) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1764 "Plugins.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!value->data[0].v_pointer) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = NULL;
-#line 1770 "Plugins.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = value->data[0].v_pointer;
-#line 1774 "Plugins.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = plugins_pluggable_rep_ref (value->data[0].v_pointer);
-#line 1778 "Plugins.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return NULL;
-#line 1782 "Plugins.c"
-}
-
-
-GParamSpec*
-plugins_param_spec_pluggable_rep (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PluginsParamSpecPluggableRep* spec;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_PLUGGABLE_REP), NULL);
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return G_PARAM_SPEC (spec);
-#line 1802 "Plugins.c"
-}
-
-
-gpointer
-plugins_value_get_pluggable_rep (const GValue* value)
-{
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP), NULL);
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return value->data[0].v_pointer;
-#line 1813 "Plugins.c"
-}
-
-
-void
-plugins_value_set_pluggable_rep (GValue* value,
- gpointer v_object)
-{
- PluginsPluggableRep * old;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP));
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- old = value->data[0].v_pointer;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (v_object) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_PLUGGABLE_REP));
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = v_object;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_ref (value->data[0].v_pointer);
-#line 1836 "Plugins.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 1840 "Plugins.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (old) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_unref (old);
-#line 1846 "Plugins.c"
- }
-}
-
-
-void
-plugins_value_take_pluggable_rep (GValue* value,
- gpointer v_object)
-{
- PluginsPluggableRep * old;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP));
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- old = value->data[0].v_pointer;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (v_object) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_PLUGGABLE_REP));
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = v_object;
-#line 1868 "Plugins.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 1872 "Plugins.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (old) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_unref (old);
-#line 1878 "Plugins.c"
- }
-}
-
-
-static void
-plugins_pluggable_rep_class_init (PluginsPluggableRepClass * klass)
-{
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_parent_class = g_type_class_peek_parent (klass);
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- ((PluginsPluggableRepClass *) klass)->finalize = plugins_pluggable_rep_finalize;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_type_class_add_private (klass, sizeof (PluginsPluggableRepPrivate));
-#line 1892 "Plugins.c"
-}
-
-
-static void
-plugins_pluggable_rep_instance_init (PluginsPluggableRep * self)
-{
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv = PLUGINS_PLUGGABLE_REP_GET_PRIVATE (self);
-#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_is_core = FALSE;
-#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->_activated = FALSE;
-#line 67 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->priv->enabled = FALSE;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->ref_count = 1;
-#line 1909 "Plugins.c"
-}
-
-
-static void
-plugins_pluggable_rep_finalize (PluginsPluggableRep * obj)
-{
- PluginsPluggableRep * self;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRep);
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_signal_handlers_destroy (self);
-#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (self->priv->_pluggable);
-#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (self->priv->_id);
-#line 1925 "Plugins.c"
-}
-
-
-GType
-plugins_pluggable_rep_get_type (void)
-{
- static volatile gsize plugins_pluggable_rep_type_id__volatile = 0;
- if (g_once_init_enter (&plugins_pluggable_rep_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { plugins_value_pluggable_rep_init, plugins_value_pluggable_rep_free_value, plugins_value_pluggable_rep_copy_value, plugins_value_pluggable_rep_peek_pointer, "p", plugins_value_pluggable_rep_collect_value, "p", plugins_value_pluggable_rep_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PluginsPluggableRepClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_pluggable_rep_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsPluggableRep), 0, (GInstanceInitFunc) plugins_pluggable_rep_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType plugins_pluggable_rep_type_id;
- plugins_pluggable_rep_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsPluggableRep", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&plugins_pluggable_rep_type_id__volatile, plugins_pluggable_rep_type_id);
- }
- return plugins_pluggable_rep_type_id__volatile;
-}
-
-
-gpointer
-plugins_pluggable_rep_ref (gpointer instance)
-{
- PluginsPluggableRep * self;
- self = instance;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return instance;
-#line 1954 "Plugins.c"
-}
-
-
-void
-plugins_pluggable_rep_unref (gpointer instance)
-{
- PluginsPluggableRep * self;
- self = instance;
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- PLUGINS_PLUGGABLE_REP_GET_CLASS (self)->finalize (self);
-#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1969 "Plugins.c"
- }
-}
-
-
-static void
-_vala_array_add50 (GFile** * array,
- int* length,
- int* size,
- GFile* value)
-{
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if ((*length) == (*size)) {
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *array = g_renew (GFile*, *array, (*size) + 1);
-#line 1986 "Plugins.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- (*array)[(*length)++] = value;
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- (*array)[*length] = NULL;
-#line 1992 "Plugins.c"
-}
-
-
-static void
-_vala_array_add51 (GFile** * array,
- int* length,
- int* size,
- GFile* value)
-{
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if ((*length) == (*size)) {
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *array = g_renew (GFile*, *array, (*size) + 1);
-#line 2008 "Plugins.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- (*array)[(*length)++] = value;
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- (*array)[*length] = NULL;
-#line 2014 "Plugins.c"
-}
-
-
-void
-plugins_init (GError** error)
-{
- GFile** _tmp0_;
- GFile** _tmp1_;
- gint _tmp1__length1;
- GFile* _tmp2_;
- GFile** _tmp3_;
- gint _tmp3__length1;
- GFile* _tmp4_;
- GeeHashMap* _tmp5_;
- GeeHashMap* _tmp6_;
- GeeHashMap* _tmp7_;
- GeeHashSet* _tmp8_;
- GFile** _tmp9_;
- gint _tmp9__length1;
- GError * _inner_error_ = NULL;
-#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = g_new0 (GFile*, 0 + 1);
-#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_search_dirs = (_vala_array_free (plugins_search_dirs, plugins_search_dirs_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_search_dirs = _tmp0_;
-#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_search_dirs_length1 = 0;
-#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_search_dirs_size_ = plugins_search_dirs_length1;
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = plugins_search_dirs;
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1__length1 = plugins_search_dirs_length1;
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = app_dirs_get_user_plugins_dir ();
-#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _vala_array_add50 (&plugins_search_dirs, &plugins_search_dirs_length1, &_plugins_search_dirs_size_, _tmp2_);
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = plugins_search_dirs;
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3__length1 = plugins_search_dirs_length1;
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = app_dirs_get_system_plugins_dir ();
-#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _vala_array_add51 (&plugins_search_dirs, &plugins_search_dirs_length1, &_plugins_search_dirs_size_, _tmp4_);
-#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, PLUGINS_TYPE_MODULE_REP, (GBoxedCopyFunc) plugins_module_rep_ref, (GDestroyNotify) plugins_module_rep_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (plugins_module_table);
-#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_module_table = _tmp5_;
-#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, PLUGINS_TYPE_PLUGGABLE_REP, (GBoxedCopyFunc) plugins_pluggable_rep_ref, (GDestroyNotify) plugins_pluggable_rep_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (plugins_pluggable_table);
-#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_table = _tmp6_;
-#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = gee_hash_map_new (G_TYPE_GTYPE, NULL, NULL, PLUGINS_TYPE_EXTENSION_POINT, (GBoxedCopyFunc) plugins_extension_point_ref, (GDestroyNotify) plugins_extension_point_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (plugins_extension_points);
-#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_points = _tmp7_;
-#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (plugins_core_ids);
-#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_core_ids = _tmp8_;
-#line 125 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!g_module_supported ()) {
-#line 126 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_warning ("Plugins.vala:126: Plugins not support: GModule not supported on this p" \
-"latform.");
-#line 128 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 2091 "Plugins.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = plugins_search_dirs;
-#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9__length1 = plugins_search_dirs_length1;
-#line 2097 "Plugins.c"
- {
- GFile** dir_collection = NULL;
- gint dir_collection_length1 = 0;
- gint _dir_collection_size_ = 0;
- gint dir_it = 0;
-#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dir_collection = _tmp9_;
-#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dir_collection_length1 = _tmp9__length1;
-#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- for (dir_it = 0; dir_it < _tmp9__length1; dir_it = dir_it + 1) {
-#line 2109 "Plugins.c"
- GFile* _tmp10_;
- GFile* dir = NULL;
-#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = _g_object_ref0 (dir_collection[dir_it]);
-#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dir = _tmp10_;
-#line 2116 "Plugins.c"
- {
- {
- GFile* _tmp11_;
-#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = dir;
-#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_search_for_plugins (_tmp11_, &_inner_error_);
-#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2126 "Plugins.c"
- goto __catch39_g_error;
- }
- }
- goto __finally39;
- __catch39_g_error:
- {
- GError* err = NULL;
- GFile* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- GError* _tmp15_;
- const gchar* _tmp16_;
-#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- err = _inner_error_;
-#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _inner_error_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = dir;
-#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = g_file_get_path (_tmp12_);
-#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_ = _tmp13_;
-#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp15_ = err;
-#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp16_ = _tmp15_->message;
-#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_debug ("Plugins.vala:135: Unable to search directory %s for plugins: %s", _tmp14_, _tmp16_);
-#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp14_);
-#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_error_free0 (err);
-#line 2159 "Plugins.c"
- }
- __finally39:
-#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"
- g_propagate_error (error, _inner_error_);
-#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (dir);
-#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 2170 "Plugins.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (dir);
-#line 2174 "Plugins.c"
- }
- }
- }
-}
-
-
-void
-plugins_terminate (void)
-{
-#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_search_dirs = (_vala_array_free (plugins_search_dirs, plugins_search_dirs_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_search_dirs = NULL;
-#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_search_dirs_length1 = 0;
-#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_search_dirs_size_ = plugins_search_dirs_length1;
-#line 142 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (plugins_pluggable_table);
-#line 142 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_table = NULL;
-#line 143 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (plugins_module_table);
-#line 143 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_module_table = NULL;
-#line 144 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (plugins_extension_points);
-#line 144 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_extension_points = NULL;
-#line 145 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (plugins_core_ids);
-#line 145 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_core_ids = NULL;
-#line 2208 "Plugins.c"
-}
-
-
-static PluginsNotifier*
-plugins_notifier_construct (GType object_type)
-{
- PluginsNotifier* self = NULL;
-#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self = (PluginsNotifier*) g_type_create_instance (object_type);
-#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return self;
-#line 2220 "Plugins.c"
-}
-
-
-static PluginsNotifier*
-plugins_notifier_new (void)
-{
-#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return plugins_notifier_construct (PLUGINS_TYPE_NOTIFIER);
-#line 2229 "Plugins.c"
-}
-
-
-static gpointer
-_plugins_notifier_ref0 (gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return self ? plugins_notifier_ref (self) : NULL;
-#line 2238 "Plugins.c"
-}
-
-
-PluginsNotifier*
-plugins_notifier_get_instance (void)
-{
- PluginsNotifier* result = NULL;
- PluginsNotifier* _tmp0_;
- PluginsNotifier* _tmp2_;
- PluginsNotifier* _tmp3_;
-#line 157 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_notifier_instance;
-#line 157 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp0_ == NULL) {
-#line 2253 "Plugins.c"
- PluginsNotifier* _tmp1_;
-#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = plugins_notifier_new ();
-#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_notifier_unref0 (plugins_notifier_instance);
-#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_notifier_instance = _tmp1_;
-#line 2261 "Plugins.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = plugins_notifier_instance;
-#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = _plugins_notifier_ref0 (_tmp2_);
-#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp3_;
-#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 2271 "Plugins.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gboolean arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_BOOLEAN callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (n_param_values == 3);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- data1 = closure->data;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- data2 = param_values->data[0].v_pointer;
-#line 2297 "Plugins.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- data1 = param_values->data[0].v_pointer;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- data2 = closure->data;
-#line 2303 "Plugins.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- callback = (GMarshalFunc_VOID__OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_boolean (param_values + 2), data2);
-#line 2309 "Plugins.c"
-}
-
-
-static void
-plugins_value_notifier_init (GValue* value)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 2318 "Plugins.c"
-}
-
-
-static void
-plugins_value_notifier_free_value (GValue* value)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (value->data[0].v_pointer) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_notifier_unref (value->data[0].v_pointer);
-#line 2329 "Plugins.c"
- }
-}
-
-
-static void
-plugins_value_notifier_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (src_value->data[0].v_pointer) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dest_value->data[0].v_pointer = plugins_notifier_ref (src_value->data[0].v_pointer);
-#line 2342 "Plugins.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2346 "Plugins.c"
- }
-}
-
-
-static gpointer
-plugins_value_notifier_peek_pointer (const GValue* value)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return value->data[0].v_pointer;
-#line 2356 "Plugins.c"
-}
-
-
-static gchar*
-plugins_value_notifier_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (collect_values[0].v_pointer) {
-#line 2368 "Plugins.c"
- PluginsNotifier * object;
- object = collect_values[0].v_pointer;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2375 "Plugins.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.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 2379 "Plugins.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = plugins_notifier_ref (object);
-#line 2383 "Plugins.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 2387 "Plugins.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return NULL;
-#line 2391 "Plugins.c"
-}
-
-
-static gchar*
-plugins_value_notifier_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- PluginsNotifier ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!object_p) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2407 "Plugins.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!value->data[0].v_pointer) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = NULL;
-#line 2413 "Plugins.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = value->data[0].v_pointer;
-#line 2417 "Plugins.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *object_p = plugins_notifier_ref (value->data[0].v_pointer);
-#line 2421 "Plugins.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return NULL;
-#line 2425 "Plugins.c"
-}
-
-
-GParamSpec*
-plugins_param_spec_notifier (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- PluginsParamSpecNotifier* spec;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_NOTIFIER), NULL);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return G_PARAM_SPEC (spec);
-#line 2445 "Plugins.c"
-}
-
-
-gpointer
-plugins_value_get_notifier (const GValue* value)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER), NULL);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return value->data[0].v_pointer;
-#line 2456 "Plugins.c"
-}
-
-
-void
-plugins_value_set_notifier (GValue* value,
- gpointer v_object)
-{
- PluginsNotifier * old;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER));
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- old = value->data[0].v_pointer;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (v_object) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_NOTIFIER));
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = v_object;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_notifier_ref (value->data[0].v_pointer);
-#line 2479 "Plugins.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 2483 "Plugins.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (old) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_notifier_unref (old);
-#line 2489 "Plugins.c"
- }
-}
-
-
-void
-plugins_value_take_notifier (GValue* value,
- gpointer v_object)
-{
- PluginsNotifier * old;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER));
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- old = value->data[0].v_pointer;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (v_object) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_NOTIFIER));
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = v_object;
-#line 2511 "Plugins.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- value->data[0].v_pointer = NULL;
-#line 2515 "Plugins.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (old) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_notifier_unref (old);
-#line 2521 "Plugins.c"
- }
-}
-
-
-static void
-plugins_notifier_class_init (PluginsNotifierClass * klass)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_notifier_parent_class = g_type_class_peek_parent (klass);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- ((PluginsNotifierClass *) klass)->finalize = plugins_notifier_finalize;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL] = g_signal_new ("pluggable-activation", PLUGINS_TYPE_NOTIFIER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN, G_TYPE_NONE, 2, SPIT_TYPE_PLUGGABLE, G_TYPE_BOOLEAN);
-#line 2535 "Plugins.c"
-}
-
-
-static void
-plugins_notifier_instance_init (PluginsNotifier * self)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self->ref_count = 1;
-#line 2544 "Plugins.c"
-}
-
-
-static void
-plugins_notifier_finalize (PluginsNotifier * obj)
-{
- PluginsNotifier * self;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_NOTIFIER, PluginsNotifier);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_signal_handlers_destroy (self);
-#line 2556 "Plugins.c"
-}
-
-
-GType
-plugins_notifier_get_type (void)
-{
- static volatile gsize plugins_notifier_type_id__volatile = 0;
- if (g_once_init_enter (&plugins_notifier_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { plugins_value_notifier_init, plugins_value_notifier_free_value, plugins_value_notifier_copy_value, plugins_value_notifier_peek_pointer, "p", plugins_value_notifier_collect_value, "p", plugins_value_notifier_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (PluginsNotifierClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_notifier_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsNotifier), 0, (GInstanceInitFunc) plugins_notifier_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType plugins_notifier_type_id;
- plugins_notifier_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsNotifier", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&plugins_notifier_type_id__volatile, plugins_notifier_type_id);
- }
- return plugins_notifier_type_id__volatile;
-}
-
-
-gpointer
-plugins_notifier_ref (gpointer instance)
-{
- PluginsNotifier * self;
- self = instance;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return instance;
-#line 2585 "Plugins.c"
-}
-
-
-void
-plugins_notifier_unref (gpointer instance)
-{
- PluginsNotifier * self;
- self = instance;
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- PLUGINS_NOTIFIER_GET_CLASS (self)->finalize (self);
-#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2600 "Plugins.c"
- }
-}
-
-
-void
-plugins_register_extension_point (GType type,
- const gchar* name,
- const gchar* icon_name,
- gchar** core_ids,
- int core_ids_length1)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
- PluginsExtensionPoint* _tmp2_;
- PluginsExtensionPoint* _tmp3_;
-#line 164 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (name != NULL);
-#line 166 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_extension_points;
-#line 166 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type)), "!extension_points.has_key(type)");
-#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = plugins_extension_points;
-#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = plugins_extension_point_new (type, name, icon_name, core_ids, core_ids_length1);
-#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = _tmp2_;
-#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type), _tmp3_);
-#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_extension_point_unref0 (_tmp3_);
-#line 171 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (core_ids != NULL) {
-#line 2634 "Plugins.c"
- {
- gchar** core_id_collection = NULL;
- gint core_id_collection_length1 = 0;
- gint _core_id_collection_size_ = 0;
- gint core_id_it = 0;
-#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- core_id_collection = core_ids;
-#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- core_id_collection_length1 = core_ids_length1;
-#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- for (core_id_it = 0; core_id_it < core_ids_length1; core_id_it = core_id_it + 1) {
-#line 2646 "Plugins.c"
- gchar* _tmp4_;
- gchar* core_id = NULL;
-#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = g_strdup (core_id_collection[core_id_it]);
-#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- core_id = _tmp4_;
-#line 2653 "Plugins.c"
- {
- GeeHashSet* _tmp5_;
- const gchar* _tmp6_;
-#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = plugins_core_ids;
-#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = core_id;
-#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_);
-#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (core_id);
-#line 2665 "Plugins.c"
- }
- }
- }
- }
- {
- GeeIterator* _pluggable_rep_it = NULL;
- GeeHashMap* _tmp7_;
- GeeCollection* _tmp8_;
- GeeCollection* _tmp9_;
- GeeCollection* _tmp10_;
- GeeIterator* _tmp11_;
- GeeIterator* _tmp12_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = plugins_pluggable_table;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = _tmp8_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = _tmp9_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = _tmp11_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp10_);
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _pluggable_rep_it = _tmp12_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- while (TRUE) {
-#line 2696 "Plugins.c"
- GeeIterator* _tmp13_;
- PluginsPluggableRep* pluggable_rep = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
- PluginsPluggableRep* _tmp16_;
- SpitPluggable* _tmp17_;
- SpitPluggable* _tmp18_;
- PluginsPluggableRep* _tmp19_;
- PluginsNotifier* _tmp20_;
- PluginsNotifier* _tmp21_;
- PluginsPluggableRep* _tmp22_;
- SpitPluggable* _tmp23_;
- SpitPluggable* _tmp24_;
- PluginsPluggableRep* _tmp25_;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = _pluggable_rep_it;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!gee_iterator_next (_tmp13_)) {
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- break;
-#line 2717 "Plugins.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_ = _pluggable_rep_it;
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_rep = (PluginsPluggableRep*) _tmp15_;
-#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp16_ = pluggable_rep;
-#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp17_ = plugins_pluggable_rep_get_pluggable (_tmp16_);
-#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp18_ = _tmp17_;
-#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, G_TYPE_OBJECT, GObject)), type)) {
-#line 179 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 179 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- continue;
-#line 2737 "Plugins.c"
- }
-#line 181 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp19_ = pluggable_rep;
-#line 181 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_pluggable_rep_activate (_tmp19_);
-#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp20_ = plugins_notifier_get_instance ();
-#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp21_ = _tmp20_;
-#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp22_ = pluggable_rep;
-#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp23_ = plugins_pluggable_rep_get_pluggable (_tmp22_);
-#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp24_ = _tmp23_;
-#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp25_ = pluggable_rep;
-#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_signal_emit (_tmp21_, plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL], 0, _tmp24_, plugins_pluggable_rep_is_enabled (_tmp25_));
-#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_notifier_unref0 (_tmp21_);
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 2761 "Plugins.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_pluggable_rep_it);
-#line 2765 "Plugins.c"
- }
-}
-
-
-GeeCollection*
-plugins_get_pluggables (gboolean include_disabled)
-{
- GeeCollection* result = NULL;
- GeeCollection* all = NULL;
- GeeHashSet* _tmp0_;
-#line 187 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = gee_hash_set_new (SPIT_TYPE_PLUGGABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 187 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- all = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 2780 "Plugins.c"
- {
- GeeIterator* _pluggable_rep_it = NULL;
- GeeHashMap* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeIterator* _tmp5_;
- GeeIterator* _tmp6_;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = plugins_pluggable_table;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = _tmp2_;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = _tmp3_;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = _tmp5_;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp4_);
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _pluggable_rep_it = _tmp6_;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- while (TRUE) {
-#line 2807 "Plugins.c"
- GeeIterator* _tmp7_;
- PluginsPluggableRep* pluggable_rep = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- gboolean _tmp10_ = FALSE;
- PluginsPluggableRep* _tmp11_;
- gboolean _tmp12_;
- gboolean _tmp13_;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = _pluggable_rep_it;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- break;
-#line 2822 "Plugins.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = _pluggable_rep_it;
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_rep = (PluginsPluggableRep*) _tmp9_;
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = pluggable_rep;
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = plugins_pluggable_rep_get_activated (_tmp11_);
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = _tmp12_;
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp13_) {
-#line 2838 "Plugins.c"
- gboolean _tmp14_ = FALSE;
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (include_disabled) {
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_ = TRUE;
-#line 2844 "Plugins.c"
- } else {
- PluginsPluggableRep* _tmp15_;
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp15_ = pluggable_rep;
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_ = plugins_pluggable_rep_is_enabled (_tmp15_);
-#line 2851 "Plugins.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = _tmp14_;
-#line 2855 "Plugins.c"
- } else {
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = FALSE;
-#line 2859 "Plugins.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp10_) {
-#line 2863 "Plugins.c"
- GeeCollection* _tmp16_;
- PluginsPluggableRep* _tmp17_;
- SpitPluggable* _tmp18_;
- SpitPluggable* _tmp19_;
-#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp16_ = all;
-#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp17_ = pluggable_rep;
-#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp18_ = plugins_pluggable_rep_get_pluggable (_tmp17_);
-#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp19_ = _tmp18_;
-#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- gee_collection_add (_tmp16_, _tmp19_);
-#line 2878 "Plugins.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 2882 "Plugins.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_pluggable_rep_it);
-#line 2886 "Plugins.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = all;
-#line 193 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 2892 "Plugins.c"
-}
-
-
-gboolean
-plugins_is_core_pluggable (SpitPluggable* pluggable)
-{
- gboolean result = FALSE;
- GeeHashSet* _tmp0_;
- const gchar* _tmp1_;
-#line 196 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), FALSE);
-#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_core_ids;
-#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = spit_pluggable_get_id (pluggable);
-#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_);
-#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 2912 "Plugins.c"
-}
-
-
-static SpitPluggable**
-_vala_array_dup17 (SpitPluggable** self,
- int length)
-{
- SpitPluggable** result;
- int i;
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = g_new0 (SpitPluggable*, length + 1);
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- for (i = 0; i < length; i++) {
-#line 2926 "Plugins.c"
- SpitPluggable* _tmp0_;
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = _g_object_ref0 (self[i]);
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result[i] = _tmp0_;
-#line 2932 "Plugins.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 2936 "Plugins.c"
-}
-
-
-PluginsModuleRep*
-plugins_get_module_for_pluggable (SpitPluggable* needle)
-{
- PluginsModuleRep* result = NULL;
-#line 200 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (needle), NULL);
-#line 2946 "Plugins.c"
- {
- GeeIterator* _module_rep_it = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_module_table;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = _tmp1_;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = _tmp2_;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = _tmp4_;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp3_);
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _module_rep_it = _tmp5_;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- while (TRUE) {
-#line 2973 "Plugins.c"
- GeeIterator* _tmp6_;
- PluginsModuleRep* module_rep = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- SpitPluggable** pluggables = NULL;
- PluginsModuleRep* _tmp9_;
- SpitModule* _tmp10_;
- gint _tmp11_;
- SpitPluggable** _tmp12_;
- SpitPluggable** _tmp13_;
- gint _tmp13__length1;
- gint pluggables_length1;
- gint _pluggables_size_;
- SpitPluggable** _tmp14_;
- gint _tmp14__length1;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = _module_rep_it;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- break;
-#line 2995 "Plugins.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = _module_rep_it;
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- module_rep = (PluginsModuleRep*) _tmp8_;
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = module_rep;
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = _tmp9_->spit_module;
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = spit_module_get_pluggables (_tmp10_, &_tmp11_);
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = (_tmp12_ != NULL) ? _vala_array_dup17 (_tmp12_, _tmp11_) : ((gpointer) _tmp12_);
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13__length1 = _tmp11_;
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggables = _tmp13_;
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggables_length1 = _tmp13__length1;
-#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _pluggables_size_ = pluggables_length1;
-#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_ = pluggables;
-#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14__length1 = pluggables_length1;
-#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp14_ != NULL) {
-#line 3025 "Plugins.c"
- SpitPluggable** _tmp15_;
- gint _tmp15__length1;
-#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp15_ = pluggables;
-#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp15__length1 = pluggables_length1;
-#line 3032 "Plugins.c"
- {
- SpitPluggable** pluggable_collection = NULL;
- gint pluggable_collection_length1 = 0;
- gint _pluggable_collection_size_ = 0;
- gint pluggable_it = 0;
-#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_collection = _tmp15_;
-#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_collection_length1 = _tmp15__length1;
-#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- for (pluggable_it = 0; pluggable_it < _tmp15__length1; pluggable_it = pluggable_it + 1) {
-#line 3044 "Plugins.c"
- SpitPluggable* _tmp16_;
- SpitPluggable* pluggable = NULL;
-#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp16_ = _g_object_ref0 (pluggable_collection[pluggable_it]);
-#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable = _tmp16_;
-#line 3051 "Plugins.c"
- {
- SpitPluggable* _tmp17_;
-#line 205 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp17_ = pluggable;
-#line 205 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp17_ == needle) {
-#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = module_rep;
-#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (pluggable);
-#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggables = (_vala_array_free (pluggables, pluggables_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_module_rep_it);
-#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3068 "Plugins.c"
- }
-#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (pluggable);
-#line 3072 "Plugins.c"
- }
- }
- }
- }
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggables = (_vala_array_free (pluggables, pluggables_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 3081 "Plugins.c"
- }
-#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_module_rep_it);
-#line 3085 "Plugins.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = NULL;
-#line 211 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3091 "Plugins.c"
-}
-
-
-gchar*
-plugins_get_pluggable_module_id (SpitPluggable* needle)
-{
- gchar* result = NULL;
- PluginsModuleRep* module_rep = NULL;
- PluginsModuleRep* _tmp0_;
- const gchar* _tmp1_ = NULL;
- PluginsModuleRep* _tmp2_;
- gchar* _tmp6_;
-#line 214 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (needle), NULL);
-#line 215 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_get_module_for_pluggable (needle);
-#line 215 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- module_rep = _tmp0_;
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = module_rep;
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp2_ != NULL) {
-#line 3114 "Plugins.c"
- PluginsModuleRep* _tmp3_;
- SpitModule* _tmp4_;
- const gchar* _tmp5_;
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = module_rep;
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = _tmp3_->spit_module;
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = spit_module_get_id (_tmp4_);
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = _tmp5_;
-#line 3126 "Plugins.c"
- } else {
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = NULL;
-#line 3130 "Plugins.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = g_strdup (_tmp1_);
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp6_;
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3140 "Plugins.c"
-}
-
-
-GeeCollection*
-plugins_get_extension_points (GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify)
-{
- GeeCollection* result = NULL;
- GeeCollection* sorted = NULL;
- GCompareDataFunc _tmp0_;
- void* _tmp0__target;
- GDestroyNotify _tmp0__target_destroy_notify;
- GeeTreeSet* _tmp1_;
- GeeHashMap* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
-#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = compare_func;
-#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0__target = compare_func_target;
-#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0__target_destroy_notify = compare_func_target_destroy_notify;
-#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func = NULL;
-#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func_target = NULL;
-#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func_target_destroy_notify = NULL;
-#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = gee_tree_set_new (PLUGINS_TYPE_EXTENSION_POINT, (GBoxedCopyFunc) plugins_extension_point_ref, (GDestroyNotify) plugins_extension_point_unref, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify);
-#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- sorted = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = plugins_extension_points;
-#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = _tmp3_;
-#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = _tmp4_;
-#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- gee_collection_add_all (sorted, _tmp5_);
-#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp5_);
-#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = sorted;
-#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func = NULL;
-#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func_target = NULL;
-#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func_target_destroy_notify = NULL;
-#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3199 "Plugins.c"
-}
-
-
-GeeCollection*
-plugins_get_pluggables_for_type (GType type,
- GCompareDataFunc compare_func,
- void* compare_func_target,
- GDestroyNotify compare_func_target_destroy_notify,
- gboolean include_disabled)
-{
- GeeCollection* result = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* for_type = NULL;
- GCompareDataFunc _tmp1_;
- void* _tmp1__target;
- GDestroyNotify _tmp1__target_destroy_notify;
- GeeTreeSet* _tmp2_;
-#line 230 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_extension_points;
-#line 230 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type)), "extension_points.has_key(type)");
-#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = compare_func;
-#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1__target = compare_func_target;
-#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1__target_destroy_notify = compare_func_target_destroy_notify;
-#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func = NULL;
-#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func_target = NULL;
-#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func_target_destroy_notify = NULL;
-#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = gee_tree_set_new (SPIT_TYPE_PLUGGABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify);
-#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- for_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 3237 "Plugins.c"
- {
- GeeIterator* _pluggable_rep_it = NULL;
- GeeHashMap* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
- GeeIterator* _tmp8_;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = plugins_pluggable_table;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = _tmp4_;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = _tmp5_;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = _tmp7_;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp6_);
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _pluggable_rep_it = _tmp8_;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- while (TRUE) {
-#line 3264 "Plugins.c"
- GeeIterator* _tmp9_;
- PluginsPluggableRep* pluggable_rep = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_ = FALSE;
- PluginsPluggableRep* _tmp14_;
- gboolean _tmp15_;
- gboolean _tmp16_;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = _pluggable_rep_it;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- break;
-#line 3280 "Plugins.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = _pluggable_rep_it;
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_rep = (PluginsPluggableRep*) _tmp11_;
-#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_ = pluggable_rep;
-#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp15_ = plugins_pluggable_rep_get_activated (_tmp14_);
-#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp16_ = _tmp15_;
-#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp16_) {
-#line 3296 "Plugins.c"
- PluginsPluggableRep* _tmp17_;
- SpitPluggable* _tmp18_;
- SpitPluggable* _tmp19_;
-#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp17_ = pluggable_rep;
-#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp18_ = plugins_pluggable_rep_get_pluggable (_tmp17_);
-#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp19_ = _tmp18_;
-#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, G_TYPE_OBJECT, GObject)), type);
-#line 3308 "Plugins.c"
- } else {
-#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = FALSE;
-#line 3312 "Plugins.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp13_) {
-#line 3316 "Plugins.c"
- gboolean _tmp20_ = FALSE;
-#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (include_disabled) {
-#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp20_ = TRUE;
-#line 3322 "Plugins.c"
- } else {
- PluginsPluggableRep* _tmp21_;
-#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp21_ = pluggable_rep;
-#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp20_ = plugins_pluggable_rep_is_enabled (_tmp21_);
-#line 3329 "Plugins.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = _tmp20_;
-#line 3333 "Plugins.c"
- } else {
-#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = FALSE;
-#line 3337 "Plugins.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp12_) {
-#line 3341 "Plugins.c"
- GeeCollection* _tmp22_;
- PluginsPluggableRep* _tmp23_;
- SpitPluggable* _tmp24_;
- SpitPluggable* _tmp25_;
-#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp22_ = for_type;
-#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp23_ = pluggable_rep;
-#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp24_ = plugins_pluggable_rep_get_pluggable (_tmp23_);
-#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp25_ = _tmp24_;
-#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- gee_collection_add (_tmp22_, _tmp25_);
-#line 3356 "Plugins.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 3360 "Plugins.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_pluggable_rep_it);
-#line 3364 "Plugins.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = for_type;
-#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
-#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func = NULL;
-#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func_target = NULL;
-#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- compare_func_target_destroy_notify = NULL;
-#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3378 "Plugins.c"
-}
-
-
-gchar*
-plugins_get_pluggable_name (const gchar* id)
-{
- gchar* result = NULL;
- PluginsPluggableRep* pluggable_rep = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- const gchar* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
- PluginsPluggableRep* _tmp4_;
- gchar* _tmp12_;
-#line 244 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_pluggable_table;
-#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id);
-#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_rep = (PluginsPluggableRep*) _tmp1_;
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = pluggable_rep;
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp4_ != NULL) {
-#line 3405 "Plugins.c"
- PluginsPluggableRep* _tmp5_;
- gboolean _tmp6_;
- gboolean _tmp7_;
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = pluggable_rep;
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = plugins_pluggable_rep_get_activated (_tmp5_);
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = _tmp6_;
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = _tmp7_;
-#line 3417 "Plugins.c"
- } else {
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = FALSE;
-#line 3421 "Plugins.c"
- }
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp3_) {
-#line 3425 "Plugins.c"
- PluginsPluggableRep* _tmp8_;
- SpitPluggable* _tmp9_;
- SpitPluggable* _tmp10_;
- const gchar* _tmp11_;
-#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = pluggable_rep;
-#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = plugins_pluggable_rep_get_pluggable (_tmp8_);
-#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = _tmp9_;
-#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = spit_pluggable_get_pluggable_name (_tmp10_);
-#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = _tmp11_;
-#line 3440 "Plugins.c"
- } else {
-#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = NULL;
-#line 3444 "Plugins.c"
- }
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = g_strdup (_tmp2_);
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp12_;
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3454 "Plugins.c"
-}
-
-
-gboolean
-plugins_get_pluggable_info (const gchar* id,
- SpitPluggableInfo* info)
-{
- gboolean result = FALSE;
- PluginsPluggableRep* pluggable_rep = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gboolean _tmp2_ = FALSE;
- PluginsPluggableRep* _tmp3_;
- PluginsPluggableRep* _tmp7_;
- SpitPluggable* _tmp8_;
- SpitPluggable* _tmp9_;
-#line 251 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (id != NULL, FALSE);
-#line 251 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (info != NULL, FALSE);
-#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_pluggable_table;
-#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id);
-#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_rep = (PluginsPluggableRep*) _tmp1_;
-#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = pluggable_rep;
-#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp3_ == NULL) {
-#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = TRUE;
-#line 3487 "Plugins.c"
- } else {
- PluginsPluggableRep* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = pluggable_rep;
-#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_);
-#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = _tmp5_;
-#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = !_tmp6_;
-#line 3500 "Plugins.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp2_) {
-#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = FALSE;
-#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3510 "Plugins.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = pluggable_rep;
-#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = plugins_pluggable_rep_get_pluggable (_tmp7_);
-#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = _tmp8_;
-#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_pluggable_get_info (_tmp9_, info);
-#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = TRUE;
-#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3526 "Plugins.c"
-}
-
-
-gboolean
-plugins_get_pluggable_enabled (const gchar* id,
- gboolean* enabled)
-{
- gboolean _vala_enabled = FALSE;
- gboolean result = FALSE;
- PluginsPluggableRep* pluggable_rep = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gboolean _tmp2_ = FALSE;
- PluginsPluggableRep* _tmp3_;
- PluginsPluggableRep* _tmp7_;
-#line 261 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (id != NULL, FALSE);
-#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_pluggable_table;
-#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id);
-#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_rep = (PluginsPluggableRep*) _tmp1_;
-#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = pluggable_rep;
-#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp3_ == NULL) {
-#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = TRUE;
-#line 3556 "Plugins.c"
- } else {
- PluginsPluggableRep* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = pluggable_rep;
-#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_);
-#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = _tmp5_;
-#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = !_tmp6_;
-#line 3569 "Plugins.c"
- }
-#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp2_) {
-#line 264 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _vala_enabled = FALSE;
-#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = FALSE;
-#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (enabled) {
-#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *enabled = _vala_enabled;
-#line 3583 "Plugins.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3587 "Plugins.c"
- }
-#line 269 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = pluggable_rep;
-#line 269 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _vala_enabled = plugins_pluggable_rep_is_enabled (_tmp7_);
-#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = TRUE;
-#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (enabled) {
-#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- *enabled = _vala_enabled;
-#line 3601 "Plugins.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3605 "Plugins.c"
-}
-
-
-void
-plugins_set_pluggable_enabled (const gchar* id,
- gboolean enabled)
-{
- PluginsPluggableRep* pluggable_rep = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gboolean _tmp2_ = FALSE;
- PluginsPluggableRep* _tmp3_;
- PluginsPluggableRep* _tmp7_;
-#line 274 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (id != NULL);
-#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_pluggable_table;
-#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id);
-#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_rep = (PluginsPluggableRep*) _tmp1_;
-#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = pluggable_rep;
-#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp3_ == NULL) {
-#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = TRUE;
-#line 3633 "Plugins.c"
- } else {
- PluginsPluggableRep* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = pluggable_rep;
-#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_);
-#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = _tmp5_;
-#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = !_tmp6_;
-#line 3646 "Plugins.c"
- }
-#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp2_) {
-#line 277 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 277 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 3654 "Plugins.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = pluggable_rep;
-#line 279 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (plugins_pluggable_rep_set_enabled (_tmp7_, enabled)) {
-#line 3660 "Plugins.c"
- PluginsNotifier* _tmp8_;
- PluginsNotifier* _tmp9_;
- PluginsPluggableRep* _tmp10_;
- SpitPluggable* _tmp11_;
- SpitPluggable* _tmp12_;
-#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = plugins_notifier_get_instance ();
-#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = _tmp8_;
-#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = pluggable_rep;
-#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = plugins_pluggable_rep_get_pluggable (_tmp10_);
-#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = _tmp11_;
-#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_signal_emit (_tmp9_, plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL], 0, _tmp12_, enabled);
-#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_notifier_unref0 (_tmp9_);
-#line 3680 "Plugins.c"
- }
-#line 274 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (pluggable_rep);
-#line 3684 "Plugins.c"
-}
-
-
-GFile*
-plugins_get_pluggable_module_file (SpitPluggable* pluggable)
-{
- GFile* result = NULL;
- PluginsModuleRep* module_rep = NULL;
- PluginsModuleRep* _tmp0_;
- GFile* _tmp1_ = NULL;
- PluginsModuleRep* _tmp2_;
- GFile* _tmp5_;
-#line 283 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL);
-#line 284 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_get_module_for_pluggable (pluggable);
-#line 284 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- module_rep = _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = module_rep;
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp2_ != NULL) {
-#line 3707 "Plugins.c"
- PluginsModuleRep* _tmp3_;
- GFile* _tmp4_;
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = module_rep;
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = _tmp3_->file;
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = _tmp4_;
-#line 3716 "Plugins.c"
- } else {
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = NULL;
-#line 3720 "Plugins.c"
- }
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = _g_object_ref0 (_tmp1_);
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = _tmp5_;
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3730 "Plugins.c"
-}
-
-
-gint
-plugins_compare_pluggable_names (void* a,
- void* b)
-{
- gint result = 0;
- SpitPluggable* apluggable = NULL;
- SpitPluggable* bpluggable = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 290 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- apluggable = (SpitPluggable*) a;
-#line 291 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- bpluggable = (SpitPluggable*) b;
-#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (apluggable, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (bpluggable, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = g_utf8_collate (_tmp0_, _tmp1_);
-#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3755 "Plugins.c"
-}
-
-
-gint
-plugins_compare_extension_point_names (void* a,
- void* b)
-{
- gint result = 0;
- PluginsExtensionPoint* apoint = NULL;
- PluginsExtensionPoint* bpoint = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 297 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- apoint = (PluginsExtensionPoint*) a;
-#line 298 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- bpoint = (PluginsExtensionPoint*) b;
-#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_extension_point_get_name (G_TYPE_CHECK_INSTANCE_CAST (apoint, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint));
-#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = _tmp0_;
-#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = plugins_extension_point_get_name (G_TYPE_CHECK_INSTANCE_CAST (bpoint, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint));
-#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = _tmp2_;
-#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = g_utf8_collate (_tmp1_, _tmp3_);
-#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3786 "Plugins.c"
-}
-
-
-gboolean
-plugins_is_shared_library (GFile* file)
-{
- gboolean result = FALSE;
- gchar* name = NULL;
- gchar* ext = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
-#line 303 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = g_file_get_basename (file);
-#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = _tmp0_;
-#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- disassemble_filename (_tmp1_, &_tmp2_, &_tmp3_);
-#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (name);
-#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- name = _tmp2_;
-#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (ext);
-#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- ext = _tmp3_;
-#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp1_);
-#line 3818 "Plugins.c"
- {
- const gchar** shared_ext_collection = NULL;
- gint shared_ext_collection_length1 = 0;
- gint _shared_ext_collection_size_ = 0;
- gint shared_ext_it = 0;
-#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- shared_ext_collection = PLUGINS_SHARED_LIB_EXTS;
-#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- shared_ext_collection_length1 = G_N_ELEMENTS (PLUGINS_SHARED_LIB_EXTS);
-#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- for (shared_ext_it = 0; shared_ext_it < G_N_ELEMENTS (PLUGINS_SHARED_LIB_EXTS); shared_ext_it = shared_ext_it + 1) {
-#line 3830 "Plugins.c"
- gchar* _tmp4_;
- gchar* shared_ext = NULL;
-#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = g_strdup (shared_ext_collection[shared_ext_it]);
-#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- shared_ext = _tmp4_;
-#line 3837 "Plugins.c"
- {
- const gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = ext;
-#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = shared_ext;
-#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (g_strcmp0 (_tmp5_, _tmp6_) == 0) {
-#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = TRUE;
-#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (shared_ext);
-#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (ext);
-#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (name);
-#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3857 "Plugins.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (shared_ext);
-#line 3861 "Plugins.c"
- }
- }
- }
-#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- result = FALSE;
-#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (ext);
-#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (name);
-#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return result;
-#line 3873 "Plugins.c"
-}
-
-
-void
-plugins_search_for_plugins (GFile* dir,
- GError** error)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- GFileEnumerator* enumerator = NULL;
- GFileEnumerator* _tmp2_;
- GError * _inner_error_ = NULL;
-#line 315 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = g_file_get_path (dir);
-#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = _tmp0_;
-#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_debug ("Plugins.vala:316: Searching %s for plugins…", _tmp1_);
-#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp1_);
-#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = g_file_enumerate_children (dir, UTIL_FILE_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- enumerator = _tmp2_;
-#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_propagate_error (error, _inner_error_);
-#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 3906 "Plugins.c"
- }
- {
- gboolean _tmp3_ = FALSE;
-#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = TRUE;
-#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- while (TRUE) {
-#line 3914 "Plugins.c"
- GFileInfo* info = NULL;
- GFileEnumerator* _tmp4_;
- GFileInfo* _tmp5_;
- GFileInfo* _tmp6_;
- GFileInfo* _tmp7_;
- GFile* file = NULL;
- GFileInfo* _tmp8_;
- const gchar* _tmp9_;
- GFile* _tmp10_;
- GFileInfo* _tmp11_;
-#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!_tmp3_) {
-#line 3927 "Plugins.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = FALSE;
-#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = enumerator;
-#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = g_file_enumerator_next_file (_tmp4_, NULL, &_inner_error_);
-#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- info = _tmp5_;
-#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_propagate_error (error, _inner_error_);
-#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (enumerator);
-#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 3945 "Plugins.c"
- }
-#line 324 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = info;
-#line 324 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp6_ == NULL) {
-#line 325 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (info);
-#line 325 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- break;
-#line 3955 "Plugins.c"
- }
-#line 327 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp7_ = info;
-#line 327 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (g_file_info_get_is_hidden (_tmp7_)) {
-#line 328 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (info);
-#line 328 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- continue;
-#line 3965 "Plugins.c"
- }
-#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = info;
-#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = g_file_info_get_name (_tmp8_);
-#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = g_file_get_child (dir, _tmp9_);
-#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- file = _tmp10_;
-#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = info;
-#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- switch (g_file_info_get_file_type (_tmp11_)) {
-#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- case G_FILE_TYPE_DIRECTORY:
-#line 3981 "Plugins.c"
- {
- {
- GFile* _tmp12_;
-#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = file;
-#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_search_for_plugins (_tmp12_, &_inner_error_);
-#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3991 "Plugins.c"
- goto __catch40_g_error;
- }
- }
- goto __finally40;
- __catch40_g_error:
- {
- GError* err = NULL;
- GFile* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- GError* _tmp16_;
- const gchar* _tmp17_;
-#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- err = _inner_error_;
-#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _inner_error_ = NULL;
-#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = file;
-#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_ = g_file_get_path (_tmp13_);
-#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp15_ = _tmp14_;
-#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp16_ = err;
-#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp17_ = _tmp16_->message;
-#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_warning ("Plugins.vala:337: Unable to search directory %s for plugins: %s", _tmp15_, _tmp17_);
-#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp15_);
-#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_error_free0 (err);
-#line 4024 "Plugins.c"
- }
- __finally40:
-#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"
- g_propagate_error (error, _inner_error_);
-#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (file);
-#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (info);
-#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (enumerator);
-#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 4039 "Plugins.c"
- }
-#line 339 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- break;
-#line 4043 "Plugins.c"
- }
-#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- case G_FILE_TYPE_REGULAR:
-#line 4047 "Plugins.c"
- {
- GFile* _tmp18_;
-#line 342 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp18_ = file;
-#line 342 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (plugins_is_shared_library (_tmp18_)) {
-#line 4054 "Plugins.c"
- GFile* _tmp19_;
-#line 343 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp19_ = file;
-#line 343 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- plugins_load_module (_tmp19_);
-#line 4060 "Plugins.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- break;
-#line 4064 "Plugins.c"
- }
- default:
- {
-#line 348 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- break;
-#line 4070 "Plugins.c"
- }
- }
-#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (file);
-#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (info);
-#line 4077 "Plugins.c"
- }
- }
-#line 315 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (enumerator);
-#line 4082 "Plugins.c"
-}
-
-
-void
-plugins_load_module (GFile* file)
-{
- PluginsModuleRep* module_rep = NULL;
- PluginsModuleRep* _tmp0_;
- PluginsModuleRep* _tmp1_;
- void* entry = NULL;
- PluginsModuleRep* _tmp5_;
- GModule* _tmp6_;
- void* _tmp7_ = NULL;
- gboolean _tmp8_;
- SpitEntryPoint spit_entry_point = NULL;
- void* _tmp11_;
- gboolean _tmp12_ = FALSE;
- SpitEntryPointParams params = {0};
- GFile* _tmp13_;
- PluginsModuleRep* _tmp14_;
- SpitEntryPoint _tmp15_;
- SpitModule* _tmp16_;
- SpitEntryPointParams _tmp17_;
- gint _tmp18_;
- gboolean _tmp21_ = FALSE;
- SpitEntryPointParams _tmp22_;
- gint _tmp23_;
- PluginsModuleRep* _tmp30_;
- SpitEntryPointParams _tmp31_;
- gint _tmp32_;
- PluginsModuleRep* _tmp33_;
- SpitModule* _tmp34_;
- PluginsModuleRep* _tmp36_;
- SpitModule* _tmp37_;
- PluginsModuleRep* _tmp42_;
- PluginsModuleRep* _tmp43_;
- SpitModule* _tmp44_;
- const gchar* _tmp45_;
- gchar* _tmp46_;
- PluginsModuleRep* _tmp47_;
- const gchar* _tmp48_;
- GeeHashMap* _tmp53_;
- PluginsModuleRep* _tmp54_;
- const gchar* _tmp55_;
- PluginsModuleRep* _tmp62_;
- SpitModule* _tmp63_;
- const gchar* _tmp64_;
- PluginsModuleRep* _tmp65_;
- SpitModule* _tmp66_;
- const gchar* _tmp67_;
- PluginsModuleRep* _tmp68_;
- const gchar* _tmp69_;
- gchar* _tmp70_;
- gchar* _tmp71_;
- GeeHashMap* _tmp72_;
- PluginsModuleRep* _tmp73_;
- const gchar* _tmp74_;
- PluginsModuleRep* _tmp75_;
- PluginsModuleRep* _tmp76_;
- SpitModule* _tmp77_;
- gint _tmp78_;
- SpitPluggable** _tmp79_;
-#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_return_if_fail (G_IS_FILE (file));
-#line 354 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp0_ = plugins_module_rep_open (file);
-#line 354 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- module_rep = _tmp0_;
-#line 355 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp1_ = module_rep;
-#line 355 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp1_ == NULL) {
-#line 4155 "Plugins.c"
- gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
-#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp2_ = g_file_get_path (file);
-#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp3_ = _tmp2_;
-#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp4_ = g_module_error ();
-#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_critical ("Plugins.vala:356: Unable to load module %s: %s", _tmp3_, _tmp4_);
-#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp3_);
-#line 358 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 358 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 4173 "Plugins.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp5_ = module_rep;
-#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp6_ = _tmp5_->module;
-#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp8_ = g_module_symbol (_tmp6_, SPIT_ENTRY_POINT_NAME, &_tmp7_);
-#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- entry = _tmp7_;
-#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!_tmp8_) {
-#line 4185 "Plugins.c"
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp9_ = g_file_get_path (file);
-#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp10_ = _tmp9_;
-#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_critical ("Plugins.vala:364: Unable to load module %s: well-known entry point %s " \
-"not found", _tmp10_, SPIT_ENTRY_POINT_NAME);
-#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp10_);
-#line 367 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 367 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 4200 "Plugins.c"
- }
-#line 370 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp11_ = entry;
-#line 370 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_entry_point = (SpitEntryPoint) _tmp11_;
-#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (PLUGINS_MIN_SPIT_INTERFACE <= SPIT_CURRENT_INTERFACE) {
-#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = SPIT_CURRENT_INTERFACE <= PLUGINS_MAX_SPIT_INTERFACE;
-#line 4210 "Plugins.c"
- } else {
-#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp12_ = FALSE;
-#line 4214 "Plugins.c"
- }
-#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _vala_assert (_tmp12_, "MIN_SPIT_INTERFACE <= Spit.CURRENT_INTERFACE && Spit.CURRENT_INTERFACE <= MAX_SPIT_INTERFACE");
-#line 373 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- memset (&params, 0, sizeof (SpitEntryPointParams));
-#line 374 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- params.host_min_spit_interface = PLUGINS_MIN_SPIT_INTERFACE;
-#line 375 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- params.host_max_spit_interface = PLUGINS_MAX_SPIT_INTERFACE;
-#line 376 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- params.module_spit_interface = SPIT_UNSUPPORTED_INTERFACE;
-#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp13_ = _g_object_ref0 (file);
-#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (params.module_file);
-#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- params.module_file = _tmp13_;
-#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_ = module_rep;
-#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp15_ = spit_entry_point;
-#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp16_ = _tmp15_ (&params);
-#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp14_->spit_module);
-#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp14_->spit_module = _tmp16_;
-#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp17_ = params;
-#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp18_ = _tmp17_.module_spit_interface;
-#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp18_ == SPIT_UNSUPPORTED_INTERFACE) {
-#line 4248 "Plugins.c"
- gchar* _tmp19_;
- gchar* _tmp20_;
-#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp19_ = g_file_get_path (file);
-#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp20_ = _tmp19_;
-#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_critical ("Plugins.vala:381: Unable to load module %s: module reports no support " \
-"for SPIT interfaces %d to %d", _tmp20_, PLUGINS_MIN_SPIT_INTERFACE, PLUGINS_MAX_SPIT_INTERFACE);
-#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp20_);
-#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_entry_point_params_destroy (&params);
-#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 4265 "Plugins.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp22_ = params;
-#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp23_ = _tmp22_.module_spit_interface;
-#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp23_ < PLUGINS_MIN_SPIT_INTERFACE) {
-#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp21_ = TRUE;
-#line 4275 "Plugins.c"
- } else {
- SpitEntryPointParams _tmp24_;
- gint _tmp25_;
-#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp24_ = params;
-#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp25_ = _tmp24_.module_spit_interface;
-#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp21_ = _tmp25_ > PLUGINS_MAX_SPIT_INTERFACE;
-#line 4285 "Plugins.c"
- }
-#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp21_) {
-#line 4289 "Plugins.c"
- gchar* _tmp26_;
- gchar* _tmp27_;
- PluginsModuleRep* _tmp28_;
- gint _tmp29_;
-#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp26_ = g_file_get_path (file);
-#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp27_ = _tmp26_;
-#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp28_ = module_rep;
-#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp29_ = _tmp28_->spit_interface;
-#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_critical ("Plugins.vala:388: Unable to load module %s: module reports unsupported" \
-" SPIT version %d (out of range %d to %d)", _tmp27_, _tmp29_, PLUGINS_MIN_SPIT_INTERFACE, PLUGINS_MAX_SPIT_INTERFACE);
-#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp27_);
-#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_entry_point_params_destroy (&params);
-#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 4312 "Plugins.c"
- }
-#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp30_ = module_rep;
-#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp31_ = params;
-#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp32_ = _tmp31_.module_spit_interface;
-#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp30_->spit_interface = _tmp32_;
-#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp33_ = module_rep;
-#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp34_ = _tmp33_->spit_module;
-#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp34_, SPIT_TYPE_MODULE)) {
-#line 4328 "Plugins.c"
- PluginsModuleRep* _tmp35_;
-#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp35_ = module_rep;
-#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (_tmp35_->spit_module);
-#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp35_->spit_module = NULL;
-#line 4336 "Plugins.c"
- }
-#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp36_ = module_rep;
-#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp37_ = _tmp36_->spit_module;
-#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp37_ == NULL) {
-#line 4344 "Plugins.c"
- gchar* _tmp38_;
- gchar* _tmp39_;
- PluginsModuleRep* _tmp40_;
- gint _tmp41_;
-#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp38_ = g_file_get_path (file);
-#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp39_ = _tmp38_;
-#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp40_ = module_rep;
-#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp41_ = _tmp40_->spit_interface;
-#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_critical ("Plugins.vala:401: Unable to load module %s (SPIT %d): no spit module r" \
-"eturned", _tmp39_, _tmp41_);
-#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp39_);
-#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_entry_point_params_destroy (&params);
-#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 4367 "Plugins.c"
- }
-#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp42_ = module_rep;
-#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp43_ = module_rep;
-#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp44_ = _tmp43_->spit_module;
-#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp45_ = spit_module_get_id (_tmp44_);
-#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp46_ = prepare_input_text (_tmp45_, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, -1);
-#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp42_->id);
-#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp42_->id = _tmp46_;
-#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp47_ = module_rep;
-#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp48_ = _tmp47_->id;
-#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (_tmp48_ == NULL) {
-#line 4389 "Plugins.c"
- gchar* _tmp49_;
- gchar* _tmp50_;
- PluginsModuleRep* _tmp51_;
- gint _tmp52_;
-#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp49_ = g_file_get_path (file);
-#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp50_ = _tmp49_;
-#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp51_ = module_rep;
-#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp52_ = _tmp51_->spit_interface;
-#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_critical ("Plugins.vala:411: Unable to load module %s (SPIT %d): invalid or empty" \
-" module name", _tmp50_, _tmp52_);
-#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp50_);
-#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_entry_point_params_destroy (&params);
-#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 4412 "Plugins.c"
- }
-#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp53_ = plugins_module_table;
-#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp54_ = module_rep;
-#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp55_ = _tmp54_->id;
-#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp55_)) {
-#line 4422 "Plugins.c"
- gchar* _tmp56_;
- gchar* _tmp57_;
- PluginsModuleRep* _tmp58_;
- gint _tmp59_;
- PluginsModuleRep* _tmp60_;
- const gchar* _tmp61_;
-#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp56_ = g_file_get_path (file);
-#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp57_ = _tmp56_;
-#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp58_ = module_rep;
-#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp59_ = _tmp58_->spit_interface;
-#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp60_ = module_rep;
-#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp61_ = _tmp60_->id;
-#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_critical ("Plugins.vala:418: Not loading module %s (SPIT %d): module with name \"" \
-"%s\" already loaded", _tmp57_, _tmp59_, _tmp61_);
-#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp57_);
-#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_entry_point_params_destroy (&params);
-#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- return;
-#line 4451 "Plugins.c"
- }
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp62_ = module_rep;
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp63_ = _tmp62_->spit_module;
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp64_ = spit_module_get_module_name (_tmp63_);
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp65_ = module_rep;
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp66_ = _tmp65_->spit_module;
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp67_ = spit_module_get_version (_tmp66_);
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp68_ = module_rep;
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp69_ = _tmp68_->id;
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp70_ = g_file_get_path (file);
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp71_ = _tmp70_;
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- g_debug ("Plugins.vala:424: Loaded SPIT module \"%s %s\" (%s) [%s]", _tmp64_, _tmp67_, _tmp69_, _tmp71_);
-#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_free0 (_tmp71_);
-#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp72_ = plugins_module_table;
-#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp73_ = module_rep;
-#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp74_ = _tmp73_->id;
-#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp75_ = module_rep;
-#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp74_, _tmp75_);
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp76_ = module_rep;
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp77_ = _tmp76_->spit_module;
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp79_ = spit_module_get_pluggables (_tmp77_, &_tmp78_);
-#line 4493 "Plugins.c"
- {
- SpitPluggable** pluggable_collection = NULL;
- gint pluggable_collection_length1 = 0;
- gint _pluggable_collection_size_ = 0;
- gint pluggable_it = 0;
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_collection = _tmp79_;
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable_collection_length1 = _tmp78_;
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- for (pluggable_it = 0; pluggable_it < _tmp78_; pluggable_it = pluggable_it + 1) {
-#line 4505 "Plugins.c"
- SpitPluggable* _tmp80_;
- SpitPluggable* pluggable = NULL;
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp80_ = _g_object_ref0 (pluggable_collection[pluggable_it]);
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- pluggable = _tmp80_;
-#line 4512 "Plugins.c"
- {
- GeeHashMap* _tmp81_;
- SpitPluggable* _tmp82_;
- const gchar* _tmp83_;
- SpitPluggable* _tmp84_;
- PluginsPluggableRep* _tmp85_;
- PluginsPluggableRep* _tmp86_;
-#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp81_ = plugins_pluggable_table;
-#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp82_ = pluggable;
-#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp83_ = spit_pluggable_get_id (_tmp82_);
-#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp84_ = pluggable;
-#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp85_ = plugins_pluggable_rep_new (_tmp84_);
-#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _tmp86_ = _tmp85_;
-#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp83_, _tmp86_);
-#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_pluggable_rep_unref0 (_tmp86_);
-#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _g_object_unref0 (pluggable);
-#line 4538 "Plugins.c"
- }
- }
- }
-#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- spit_entry_point_params_destroy (&params);
-#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala"
- _plugins_module_rep_unref0 (module_rep);
-#line 4546 "Plugins.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/plugins/Plugins.vala b/src/plugins/Plugins.vala
index 5f6613c..6aff461 100644
--- a/src/plugins/Plugins.vala
+++ b/src/plugins/Plugins.vala
@@ -112,6 +112,10 @@ private Gee.HashSet<string> core_ids;
public void init() throws Error {
search_dirs = new File[0];
+ unowned string plugin_dir = Environment.get_variable("SHOTWELL_PLUGIN_PATH");
+ if (plugin_dir != null && plugin_dir != "") {
+ search_dirs += File.new_for_commandline_arg(plugin_dir);
+ }
search_dirs += AppDirs.get_user_plugins_dir();
search_dirs += AppDirs.get_system_plugins_dir();
diff --git a/src/plugins/PublishingInterfaces.c b/src/plugins/PublishingInterfaces.c
deleted file mode 100644
index 54059fb..0000000
--- a/src/plugins/PublishingInterfaces.c
+++ /dev/null
@@ -1,2242 +0,0 @@
-/* PublishingInterfaces.c generated by valac 0.40.4, the Vala compiler
- * generated from PublishingInterfaces.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <float.h>
-#include <math.h>
-#include <gtk/gtk.h>
-#include <gee.h>
-
-
-#define SPIT_PUBLISHING_TYPE_PUBLISHER (spit_publishing_publisher_get_type ())
-#define SPIT_PUBLISHING_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))
-#define SPIT_PUBLISHING_IS_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER))
-#define SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisherIface))
-
-typedef struct _SpitPublishingPublisher SpitPublishingPublisher;
-typedef struct _SpitPublishingPublisherIface SpitPublishingPublisherIface;
-
-#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ())
-#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable))
-#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE))
-#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface))
-
-typedef struct _SpitPluggable SpitPluggable;
-typedef struct _SpitPluggableIface SpitPluggableIface;
-
-#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ())
-typedef struct _SpitPluggableInfo SpitPluggableInfo;
-
-#define SPIT_PUBLISHING_TYPE_SERVICE (spit_publishing_service_get_type ())
-#define SPIT_PUBLISHING_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService))
-#define SPIT_PUBLISHING_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_SERVICE))
-#define SPIT_PUBLISHING_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingServiceIface))
-
-typedef struct _SpitPublishingService SpitPublishingService;
-typedef struct _SpitPublishingServiceIface SpitPublishingServiceIface;
-
-#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ())
-#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface))
-#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE))
-#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface))
-
-typedef struct _SpitHostInterface SpitHostInterface;
-typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface;
-
-#define SPIT_PUBLISHING_TYPE_PLUGIN_HOST (spit_publishing_plugin_host_get_type ())
-#define SPIT_PUBLISHING_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost))
-#define SPIT_PUBLISHING_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST))
-#define SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHostIface))
-
-typedef struct _SpitPublishingPluginHost SpitPublishingPluginHost;
-typedef struct _SpitPublishingPluginHostIface SpitPublishingPluginHostIface;
-
-#define SPIT_PUBLISHING_TYPE_DIALOG_PANE (spit_publishing_dialog_pane_get_type ())
-#define SPIT_PUBLISHING_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane))
-#define SPIT_PUBLISHING_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE))
-#define SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPaneIface))
-
-typedef struct _SpitPublishingDialogPane SpitPublishingDialogPane;
-typedef struct _SpitPublishingDialogPaneIface SpitPublishingDialogPaneIface;
-
-#define SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_publishing_dialog_pane_geometry_options_get_type ())
-
-#define SPIT_PUBLISHING_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_publishing_plugin_host_button_mode_get_type ())
-
-#define SPIT_PUBLISHING_TYPE_PUBLISHABLE (spit_publishing_publishable_get_type ())
-#define SPIT_PUBLISHING_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable))
-#define SPIT_PUBLISHING_IS_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE))
-#define SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishableIface))
-
-typedef struct _SpitPublishingPublishable SpitPublishingPublishable;
-typedef struct _SpitPublishingPublishableIface SpitPublishingPublishableIface;
-
-#define SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE (spit_publishing_publisher_media_type_get_type ())
-
-#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR (spit_publishing_authenticator_get_type ())
-#define SPIT_PUBLISHING_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator))
-#define SPIT_PUBLISHING_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR))
-#define SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticatorIface))
-
-typedef struct _SpitPublishingAuthenticator SpitPublishingAuthenticator;
-typedef struct _SpitPublishingAuthenticatorIface SpitPublishingAuthenticatorIface;
-enum {
- SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATED_SIGNAL,
- SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATION_FAILED_SIGNAL,
- SPIT_PUBLISHING_AUTHENTICATOR_NUM_SIGNALS
-};
-static guint spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_NUM_SIGNALS] = {0};
-
-#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY (spit_publishing_authenticator_factory_get_type ())
-#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory))
-#define SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY))
-#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactoryIface))
-
-typedef struct _SpitPublishingAuthenticatorFactory SpitPublishingAuthenticatorFactory;
-typedef struct _SpitPublishingAuthenticatorFactoryIface SpitPublishingAuthenticatorFactoryIface;
-
-/**
- * Defines different kinds of errors that can occur during publishing.
- */
-typedef enum {
- SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER,
- SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED,
- SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR,
- SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR,
- SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE,
- SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR,
- SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION,
- SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED
-} SpitPublishingPublishingError;
-#define SPIT_PUBLISHING_PUBLISHING_ERROR spit_publishing_publishing_error_quark ()
-struct _SpitPluggableInfo {
- gchar* version;
- gchar* brief_description;
- gchar* authors;
- gchar* copyright;
- gchar* license;
- gboolean is_license_wordwrapped;
- gchar* website_url;
- gchar* website_name;
- gchar* translators;
- GdkPixbuf** icons;
- gint icons_length1;
-};
-
-struct _SpitPluggableIface {
- GTypeInterface parent_iface;
- gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface);
- const gchar* (*get_id) (SpitPluggable* self);
- const gchar* (*get_pluggable_name) (SpitPluggable* self);
- void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info);
- void (*activation) (SpitPluggable* self, gboolean enabled);
- void (*reserved0) (SpitPluggable* self);
- void (*reserved1) (SpitPluggable* self);
- void (*reserved2) (SpitPluggable* self);
- void (*reserved3) (SpitPluggable* self);
- void (*reserved4) (SpitPluggable* self);
- void (*reserved5) (SpitPluggable* self);
- void (*reserved6) (SpitPluggable* self);
- void (*reserved7) (SpitPluggable* self);
-};
-
-struct _SpitHostInterfaceIface {
- GTypeInterface parent_iface;
- GFile* (*get_module_file) (SpitHostInterface* self);
- gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def);
- void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val);
- gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def);
- void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val);
- gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def);
- void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val);
- gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def);
- void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val);
- void (*unset_config_key) (SpitHostInterface* self, const gchar* key);
- void (*reserved0) (SpitHostInterface* self);
- void (*reserved1) (SpitHostInterface* self);
- void (*reserved2) (SpitHostInterface* self);
- void (*reserved3) (SpitHostInterface* self);
- void (*reserved4) (SpitHostInterface* self);
- void (*reserved5) (SpitHostInterface* self);
- void (*reserved6) (SpitHostInterface* self);
- void (*reserved7) (SpitHostInterface* self);
-};
-
-typedef enum {
- SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0,
- SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0,
- SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1,
- SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2
-} SpitPublishingDialogPaneGeometryOptions;
-
-struct _SpitPublishingDialogPaneIface {
- GTypeInterface parent_iface;
- GtkWidget* (*get_widget) (SpitPublishingDialogPane* self);
- SpitPublishingDialogPaneGeometryOptions (*get_preferred_geometry) (SpitPublishingDialogPane* self);
- void (*on_pane_installed) (SpitPublishingDialogPane* self);
- void (*on_pane_uninstalled) (SpitPublishingDialogPane* self);
- void (*reserved0) (SpitPublishingDialogPane* self);
- void (*reserved1) (SpitPublishingDialogPane* self);
- void (*reserved2) (SpitPublishingDialogPane* self);
- void (*reserved3) (SpitPublishingDialogPane* self);
- void (*reserved4) (SpitPublishingDialogPane* self);
- void (*reserved5) (SpitPublishingDialogPane* self);
- void (*reserved6) (SpitPublishingDialogPane* self);
- void (*reserved7) (SpitPublishingDialogPane* self);
-};
-
-typedef enum {
- SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0,
- SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1
-} SpitPublishingPluginHostButtonMode;
-
-typedef void (*SpitPublishingLoginCallback) (void* user_data);
-typedef enum {
- SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE = 0,
- SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO = 1 << 0,
- SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO = 1 << 1
-} SpitPublishingPublisherMediaType;
-
-struct _SpitPublishingPublishableIface {
- GTypeInterface parent_iface;
- GFile* (*get_serialized_file) (SpitPublishingPublishable* self);
- gchar* (*get_publishing_name) (SpitPublishingPublishable* self);
- gchar* (*get_param_string) (SpitPublishingPublishable* self, const gchar* name);
- gchar** (*get_publishing_keywords) (SpitPublishingPublishable* self, int* result_length1);
- SpitPublishingPublisherMediaType (*get_media_type) (SpitPublishingPublishable* self);
- GDateTime* (*get_exposure_date_time) (SpitPublishingPublishable* self);
- void (*reserved0) (SpitPublishingPublishable* self);
- void (*reserved1) (SpitPublishingPublishable* self);
- void (*reserved2) (SpitPublishingPublishable* self);
- void (*reserved3) (SpitPublishingPublishable* self);
- void (*reserved4) (SpitPublishingPublishable* self);
- void (*reserved5) (SpitPublishingPublishable* self);
- void (*reserved6) (SpitPublishingPublishable* self);
- void (*reserved7) (SpitPublishingPublishable* self);
-};
-
-typedef void (*SpitPublishingProgressCallback) (gint file_number, gdouble fraction_complete, void* user_data);
-struct _SpitPublishingPluginHostIface {
- GTypeInterface parent_iface;
- void (*post_error) (SpitPublishingPluginHost* self, GError* err);
- void (*stop_publishing) (SpitPublishingPluginHost* self);
- SpitPublishingPublisher* (*get_publisher) (SpitPublishingPluginHost* self);
- void (*install_dialog_pane) (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode);
- void (*install_static_message_pane) (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode);
- void (*install_pango_message_pane) (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode);
- void (*install_success_pane) (SpitPublishingPluginHost* self);
- void (*install_account_fetch_wait_pane) (SpitPublishingPluginHost* self);
- void (*install_login_wait_pane) (SpitPublishingPluginHost* self);
- void (*install_welcome_pane) (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target);
- void (*set_service_locked) (SpitPublishingPluginHost* self, gboolean is_locked);
- void (*set_dialog_default_widget) (SpitPublishingPluginHost* self, GtkWidget* widget);
- SpitPublishingPublishable** (*get_publishables) (SpitPublishingPluginHost* self, int* result_length1);
- SpitPublishingProgressCallback (*serialize_publishables) (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify);
- SpitPublishingPublisherMediaType (*get_publishable_media_type) (SpitPublishingPluginHost* self);
- void (*reserved0) (SpitPublishingPluginHost* self);
- void (*reserved1) (SpitPublishingPluginHost* self);
- void (*reserved2) (SpitPublishingPluginHost* self);
- void (*reserved3) (SpitPublishingPluginHost* self);
- void (*reserved4) (SpitPublishingPluginHost* self);
- void (*reserved5) (SpitPublishingPluginHost* self);
- void (*reserved6) (SpitPublishingPluginHost* self);
- void (*reserved7) (SpitPublishingPluginHost* self);
-};
-
-struct _SpitPublishingServiceIface {
- GTypeInterface parent_iface;
- SpitPublishingPublisher* (*create_publisher) (SpitPublishingService* self, SpitPublishingPluginHost* host);
- SpitPublishingPublisherMediaType (*get_supported_media) (SpitPublishingService* self);
- void (*reserved0) (SpitPublishingService* self);
- void (*reserved1) (SpitPublishingService* self);
- void (*reserved2) (SpitPublishingService* self);
- void (*reserved3) (SpitPublishingService* self);
- void (*reserved4) (SpitPublishingService* self);
- void (*reserved5) (SpitPublishingService* self);
- void (*reserved6) (SpitPublishingService* self);
- void (*reserved7) (SpitPublishingService* self);
-};
-
-struct _SpitPublishingPublisherIface {
- GTypeInterface parent_iface;
- SpitPublishingService* (*get_service) (SpitPublishingPublisher* self);
- void (*start) (SpitPublishingPublisher* self);
- gboolean (*is_running) (SpitPublishingPublisher* self);
- void (*stop) (SpitPublishingPublisher* self);
- void (*reserved0) (SpitPublishingPublisher* self);
- void (*reserved1) (SpitPublishingPublisher* self);
- void (*reserved2) (SpitPublishingPublisher* self);
- void (*reserved3) (SpitPublishingPublisher* self);
- void (*reserved4) (SpitPublishingPublisher* self);
- void (*reserved5) (SpitPublishingPublisher* self);
- void (*reserved6) (SpitPublishingPublisher* self);
- void (*reserved7) (SpitPublishingPublisher* self);
-};
-
-struct _SpitPublishingAuthenticatorIface {
- GTypeInterface parent_iface;
- void (*authenticate) (SpitPublishingAuthenticator* self);
- gboolean (*can_logout) (SpitPublishingAuthenticator* self);
- void (*logout) (SpitPublishingAuthenticator* self);
- void (*refresh) (SpitPublishingAuthenticator* self);
- GHashTable* (*get_authentication_parameter) (SpitPublishingAuthenticator* self);
-};
-
-struct _SpitPublishingAuthenticatorFactoryIface {
- GTypeInterface parent_iface;
- GeeList* (*get_available_authenticators) (SpitPublishingAuthenticatorFactory* self);
- SpitPublishingAuthenticator* (*create) (SpitPublishingAuthenticatorFactory* self, const gchar* provider, SpitPublishingPluginHost* host);
-};
-
-
-
-#define SPIT_PUBLISHING_CURRENT_INTERFACE 0
-GQuark spit_publishing_publishing_error_quark (void);
-GType spit_pluggable_info_get_type (void) G_GNUC_CONST;
-SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self);
-void spit_pluggable_info_free (SpitPluggableInfo* self);
-void spit_pluggable_info_copy (const SpitPluggableInfo* self,
- SpitPluggableInfo* dest);
-void spit_pluggable_info_destroy (SpitPluggableInfo* self);
-GType spit_pluggable_get_type (void) G_GNUC_CONST;
-GType spit_host_interface_get_type (void) G_GNUC_CONST;
-GType spit_publishing_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST;
-GType spit_publishing_dialog_pane_get_type (void) G_GNUC_CONST;
-GType spit_publishing_plugin_host_button_mode_get_type (void) G_GNUC_CONST;
-GType spit_publishing_publisher_media_type_get_type (void) G_GNUC_CONST;
-GType spit_publishing_publishable_get_type (void) G_GNUC_CONST;
-GType spit_publishing_plugin_host_get_type (void) G_GNUC_CONST;
-GType spit_publishing_service_get_type (void) G_GNUC_CONST;
-GType spit_publishing_publisher_get_type (void) G_GNUC_CONST;
-SpitPublishingService* spit_publishing_publisher_get_service (SpitPublishingPublisher* self);
-void spit_publishing_publisher_start (SpitPublishingPublisher* self);
-gboolean spit_publishing_publisher_is_running (SpitPublishingPublisher* self);
-void spit_publishing_publisher_stop (SpitPublishingPublisher* self);
-void spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self);
-static void spit_publishing_publisher_real_reserved0 (SpitPublishingPublisher* self);
-void spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self);
-static void spit_publishing_publisher_real_reserved1 (SpitPublishingPublisher* self);
-void spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self);
-static void spit_publishing_publisher_real_reserved2 (SpitPublishingPublisher* self);
-void spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self);
-static void spit_publishing_publisher_real_reserved3 (SpitPublishingPublisher* self);
-void spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self);
-static void spit_publishing_publisher_real_reserved4 (SpitPublishingPublisher* self);
-void spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self);
-static void spit_publishing_publisher_real_reserved5 (SpitPublishingPublisher* self);
-void spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self);
-static void spit_publishing_publisher_real_reserved6 (SpitPublishingPublisher* self);
-void spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self);
-static void spit_publishing_publisher_real_reserved7 (SpitPublishingPublisher* self);
-GtkWidget* spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self);
-SpitPublishingDialogPaneGeometryOptions spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self);
-static void spit_publishing_dialog_pane_real_reserved0 (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self);
-static void spit_publishing_dialog_pane_real_reserved1 (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self);
-static void spit_publishing_dialog_pane_real_reserved2 (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self);
-static void spit_publishing_dialog_pane_real_reserved3 (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self);
-static void spit_publishing_dialog_pane_real_reserved4 (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self);
-static void spit_publishing_dialog_pane_real_reserved5 (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self);
-static void spit_publishing_dialog_pane_real_reserved6 (SpitPublishingDialogPane* self);
-void spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self);
-static void spit_publishing_dialog_pane_real_reserved7 (SpitPublishingDialogPane* self);
-void spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self,
- GError* err);
-void spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self);
-SpitPublishingPublisher* spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self,
- SpitPublishingDialogPane* pane,
- SpitPublishingPluginHostButtonMode mode);
-void spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self,
- const gchar* message,
- SpitPublishingPluginHostButtonMode mode);
-void spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self,
- const gchar* markup,
- SpitPublishingPluginHostButtonMode mode);
-void spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self,
- const gchar* welcome_message,
- SpitPublishingLoginCallback on_login_clicked,
- void* on_login_clicked_target);
-void spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self,
- gboolean is_locked);
-void spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self,
- GtkWidget* widget);
-SpitPublishingPublishable** spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self,
- int* result_length1);
-SpitPublishingProgressCallback spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self,
- gint content_major_axis,
- gboolean strip_metadata,
- void** result_target,
- GDestroyNotify* result_target_destroy_notify);
-SpitPublishingPublisherMediaType spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self);
-static void spit_publishing_plugin_host_real_reserved0 (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self);
-static void spit_publishing_plugin_host_real_reserved1 (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self);
-static void spit_publishing_plugin_host_real_reserved2 (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self);
-static void spit_publishing_plugin_host_real_reserved3 (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self);
-static void spit_publishing_plugin_host_real_reserved4 (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self);
-static void spit_publishing_plugin_host_real_reserved5 (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self);
-static void spit_publishing_plugin_host_real_reserved6 (SpitPublishingPluginHost* self);
-void spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self);
-static void spit_publishing_plugin_host_real_reserved7 (SpitPublishingPluginHost* self);
-GFile* spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self);
-gchar* spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self);
-gchar* spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self,
- const gchar* name);
-gchar** spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self,
- int* result_length1);
-SpitPublishingPublisherMediaType spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self);
-GDateTime* spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self);
-void spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self);
-static void spit_publishing_publishable_real_reserved0 (SpitPublishingPublishable* self);
-void spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self);
-static void spit_publishing_publishable_real_reserved1 (SpitPublishingPublishable* self);
-void spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self);
-static void spit_publishing_publishable_real_reserved2 (SpitPublishingPublishable* self);
-void spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self);
-static void spit_publishing_publishable_real_reserved3 (SpitPublishingPublishable* self);
-void spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self);
-static void spit_publishing_publishable_real_reserved4 (SpitPublishingPublishable* self);
-void spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self);
-static void spit_publishing_publishable_real_reserved5 (SpitPublishingPublishable* self);
-void spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self);
-static void spit_publishing_publishable_real_reserved6 (SpitPublishingPublishable* self);
-void spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self);
-static void spit_publishing_publishable_real_reserved7 (SpitPublishingPublishable* self);
-#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME "basename"
-#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE "title"
-#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT "comment"
-#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT "eventcomment"
-SpitPublishingPublisher* spit_publishing_service_create_publisher (SpitPublishingService* self,
- SpitPublishingPluginHost* host);
-SpitPublishingPublisherMediaType spit_publishing_service_get_supported_media (SpitPublishingService* self);
-void spit_publishing_service_reserved0 (SpitPublishingService* self);
-static void spit_publishing_service_real_reserved0 (SpitPublishingService* self);
-void spit_publishing_service_reserved1 (SpitPublishingService* self);
-static void spit_publishing_service_real_reserved1 (SpitPublishingService* self);
-void spit_publishing_service_reserved2 (SpitPublishingService* self);
-static void spit_publishing_service_real_reserved2 (SpitPublishingService* self);
-void spit_publishing_service_reserved3 (SpitPublishingService* self);
-static void spit_publishing_service_real_reserved3 (SpitPublishingService* self);
-void spit_publishing_service_reserved4 (SpitPublishingService* self);
-static void spit_publishing_service_real_reserved4 (SpitPublishingService* self);
-void spit_publishing_service_reserved5 (SpitPublishingService* self);
-static void spit_publishing_service_real_reserved5 (SpitPublishingService* self);
-void spit_publishing_service_reserved6 (SpitPublishingService* self);
-static void spit_publishing_service_real_reserved6 (SpitPublishingService* self);
-void spit_publishing_service_reserved7 (SpitPublishingService* self);
-static void spit_publishing_service_real_reserved7 (SpitPublishingService* self);
-GType spit_publishing_authenticator_get_type (void) G_GNUC_CONST;
-void spit_publishing_authenticator_authenticate (SpitPublishingAuthenticator* self);
-gboolean spit_publishing_authenticator_can_logout (SpitPublishingAuthenticator* self);
-void spit_publishing_authenticator_logout (SpitPublishingAuthenticator* self);
-void spit_publishing_authenticator_refresh (SpitPublishingAuthenticator* self);
-GHashTable* spit_publishing_authenticator_get_authentication_parameter (SpitPublishingAuthenticator* self);
-GType spit_publishing_authenticator_factory_get_type (void) G_GNUC_CONST;
-GeeList* spit_publishing_authenticator_factory_get_available_authenticators (SpitPublishingAuthenticatorFactory* self);
-SpitPublishingAuthenticator* spit_publishing_authenticator_factory_create (SpitPublishingAuthenticatorFactory* self,
- const gchar* provider,
- SpitPublishingPluginHost* host);
-
-
-GQuark
-spit_publishing_publishing_error_quark (void)
-{
- return g_quark_from_static_string ("spit_publishing_publishing_error-quark");
-}
-
-
-/**
- * Describes the kinds of media a publishing service supports.
- *
- * Values can be masked together, for example: {{{(MediaType.PHOTO | MediaType.VIDEO)}}}
- * indicates that a publishing service supports the upload of both photos and videos.
- */
-GType
-spit_publishing_publisher_media_type_get_type (void)
-{
- static volatile gsize spit_publishing_publisher_media_type_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_publisher_media_type_type_id__volatile)) {
- static const GEnumValue values[] = {{SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE", "none"}, {SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO", "photo"}, {SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO", "video"}, {0, NULL, NULL}};
- GType spit_publishing_publisher_media_type_type_id;
- spit_publishing_publisher_media_type_type_id = g_enum_register_static ("SpitPublishingPublisherMediaType", values);
- g_once_init_leave (&spit_publishing_publisher_media_type_type_id__volatile, spit_publishing_publisher_media_type_type_id);
- }
- return spit_publishing_publisher_media_type_type_id__volatile;
-}
-
-
-/**
- * Returns a {@link Service} object describing the service to which this connects.
- */
-SpitPublishingService*
-spit_publishing_publisher_get_service (SpitPublishingPublisher* self)
-{
-#line 121 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self), NULL);
-#line 121 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->get_service (self);
-#line 509 "PublishingInterfaces.c"
-}
-
-
-/**
- * Makes this publisher enter the running state and endows it with exclusive access
- * to the shared services provided by the {@link PluginHost}. Through the host’s interface,
- * this publisher can install user interface panes and query configuration information.
- * Only running services should perform network operations.
- */
-void
-spit_publishing_publisher_start (SpitPublishingPublisher* self)
-{
-#line 129 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 129 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->start (self);
-#line 526 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns true if this publisher is in the running state; false otherwise.
- */
-gboolean
-spit_publishing_publisher_is_running (SpitPublishingPublisher* self)
-{
-#line 134 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self), FALSE);
-#line 134 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->is_running (self);
-#line 540 "PublishingInterfaces.c"
-}
-
-
-/**
- * Causes this publisher to enter a non-running state. This publisher should stop all
- * network operations and cease use of the shared services provided by the {@link PluginHost}.
- */
-void
-spit_publishing_publisher_stop (SpitPublishingPublisher* self)
-{
-#line 140 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 140 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->stop (self);
-#line 555 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_real_reserved0 (SpitPublishingPublisher* self)
-{
-}
-
-
-void
-spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self)
-{
-#line 145 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 145 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved0 (self);
-#line 572 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_real_reserved1 (SpitPublishingPublisher* self)
-{
-}
-
-
-void
-spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self)
-{
-#line 146 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 146 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved1 (self);
-#line 589 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_real_reserved2 (SpitPublishingPublisher* self)
-{
-}
-
-
-void
-spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self)
-{
-#line 147 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 147 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved2 (self);
-#line 606 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_real_reserved3 (SpitPublishingPublisher* self)
-{
-}
-
-
-void
-spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self)
-{
-#line 148 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 148 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved3 (self);
-#line 623 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_real_reserved4 (SpitPublishingPublisher* self)
-{
-}
-
-
-void
-spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self)
-{
-#line 149 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 149 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved4 (self);
-#line 640 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_real_reserved5 (SpitPublishingPublisher* self)
-{
-}
-
-
-void
-spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self)
-{
-#line 150 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 150 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved5 (self);
-#line 657 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_real_reserved6 (SpitPublishingPublisher* self)
-{
-}
-
-
-void
-spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self)
-{
-#line 151 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 151 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved6 (self);
-#line 674 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_real_reserved7 (SpitPublishingPublisher* self)
-{
-}
-
-
-void
-spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self)
-{
-#line 152 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
-#line 152 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved7 (self);
-#line 691 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publisher_base_init (SpitPublishingPublisherIface * iface)
-{
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- if (!initialized) {
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- initialized = TRUE;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved0 = spit_publishing_publisher_real_reserved0;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved1 = spit_publishing_publisher_real_reserved1;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved2 = spit_publishing_publisher_real_reserved2;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved3 = spit_publishing_publisher_real_reserved3;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved4 = spit_publishing_publisher_real_reserved4;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved5 = spit_publishing_publisher_real_reserved5;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved6 = spit_publishing_publisher_real_reserved6;
-#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved7 = spit_publishing_publisher_real_reserved7;
-#line 720 "PublishingInterfaces.c"
- }
-}
-
-
-/**
- * Represents a connection to a publishing service.
- *
- * Developers of publishing plugins provide a class that implements this interface. At
- * any given time, only one Publisher can be running. When a publisher is running, it is
- * allowed to access the network and has exclusive use of the shared user-interface and
- * configuration services provided by the {@link PluginHost}. Publishers are created in
- * a non-running state and do not begin running until start( ) is invoked. Publishers
- * run until stop( ) is invoked.
- */
-GType
-spit_publishing_publisher_get_type (void)
-{
- static volatile gsize spit_publishing_publisher_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_publisher_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPublisherIface), (GBaseInitFunc) spit_publishing_publisher_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_publishing_publisher_type_id;
- spit_publishing_publisher_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPublisher", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_publishing_publisher_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_publishing_publisher_type_id__volatile, spit_publishing_publisher_type_id);
- }
- return spit_publishing_publisher_type_id__volatile;
-}
-
-
-/**
- * Describes how the on-screen publishing dialog box should look and behave when an associated
- * pane is installed in the on-screen publishing dialog box.
- */
-GType
-spit_publishing_dialog_pane_geometry_options_get_type (void)
-{
- static volatile gsize spit_publishing_dialog_pane_geometry_options_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_dialog_pane_geometry_options_type_id__volatile)) {
- static const GEnumValue values[] = {{SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE", "none"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE", "extended-size"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE", "resizable"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE", "colossal-size"}, {0, NULL, NULL}};
- GType spit_publishing_dialog_pane_geometry_options_type_id;
- spit_publishing_dialog_pane_geometry_options_type_id = g_enum_register_static ("SpitPublishingDialogPaneGeometryOptions", values);
- g_once_init_leave (&spit_publishing_dialog_pane_geometry_options_type_id__volatile, spit_publishing_dialog_pane_geometry_options_type_id);
- }
- return spit_publishing_dialog_pane_geometry_options_type_id__volatile;
-}
-
-
-/**
- * Returns the Gtk.Widget that is this pane's on-screen representation.
- */
-GtkWidget*
-spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self)
-{
-#line 197 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self), NULL);
-#line 197 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->get_widget (self);
-#line 778 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns a {@link GeometryOptions} bitfield describing how the on-screen publishing dialog
- * box should look and behave when this pane is installed.
- */
-SpitPublishingDialogPaneGeometryOptions
-spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self)
-{
-#line 203 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self), 0);
-#line 203 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->get_preferred_geometry (self);
-#line 793 "PublishingInterfaces.c"
-}
-
-
-/**
- * Invoked automatically by Shotwell when this pane has been installed into the on-screen
- * publishing dialog box and become visible to the user.
- */
-void
-spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self)
-{
-#line 209 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 209 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->on_pane_installed (self);
-#line 808 "PublishingInterfaces.c"
-}
-
-
-/**
- * Invoked automatically by Shotwell when this pane has been removed from the on-screen
- * publishing dialog box and is no longer visible to the user.
- */
-void
-spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self)
-{
-#line 215 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 215 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->on_pane_uninstalled (self);
-#line 823 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_real_reserved0 (SpitPublishingDialogPane* self)
-{
-}
-
-
-void
-spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self)
-{
-#line 220 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 220 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved0 (self);
-#line 840 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_real_reserved1 (SpitPublishingDialogPane* self)
-{
-}
-
-
-void
-spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self)
-{
-#line 221 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 221 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved1 (self);
-#line 857 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_real_reserved2 (SpitPublishingDialogPane* self)
-{
-}
-
-
-void
-spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self)
-{
-#line 222 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 222 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved2 (self);
-#line 874 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_real_reserved3 (SpitPublishingDialogPane* self)
-{
-}
-
-
-void
-spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self)
-{
-#line 223 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 223 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved3 (self);
-#line 891 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_real_reserved4 (SpitPublishingDialogPane* self)
-{
-}
-
-
-void
-spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self)
-{
-#line 224 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 224 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved4 (self);
-#line 908 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_real_reserved5 (SpitPublishingDialogPane* self)
-{
-}
-
-
-void
-spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self)
-{
-#line 225 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 225 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved5 (self);
-#line 925 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_real_reserved6 (SpitPublishingDialogPane* self)
-{
-}
-
-
-void
-spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self)
-{
-#line 226 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 226 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved6 (self);
-#line 942 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_real_reserved7 (SpitPublishingDialogPane* self)
-{
-}
-
-
-void
-spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self)
-{
-#line 227 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
-#line 227 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved7 (self);
-#line 959 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_dialog_pane_base_init (SpitPublishingDialogPaneIface * iface)
-{
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- if (!initialized) {
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- initialized = TRUE;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved0 = spit_publishing_dialog_pane_real_reserved0;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved1 = spit_publishing_dialog_pane_real_reserved1;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved2 = spit_publishing_dialog_pane_real_reserved2;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved3 = spit_publishing_dialog_pane_real_reserved3;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved4 = spit_publishing_dialog_pane_real_reserved4;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved5 = spit_publishing_dialog_pane_real_reserved5;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved6 = spit_publishing_dialog_pane_real_reserved6;
-#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved7 = spit_publishing_dialog_pane_real_reserved7;
-#line 988 "PublishingInterfaces.c"
- }
-}
-
-
-/**
- * Encapsulates a pane that can be installed in the on-screen publishing dialog box to
- * communicate status to and to get information from the user.
- *
- */
-GType
-spit_publishing_dialog_pane_get_type (void)
-{
- static volatile gsize spit_publishing_dialog_pane_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_dialog_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingDialogPaneIface), (GBaseInitFunc) spit_publishing_dialog_pane_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_publishing_dialog_pane_type_id;
- spit_publishing_dialog_pane_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingDialogPane", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_publishing_dialog_pane_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_publishing_dialog_pane_type_id__volatile, spit_publishing_dialog_pane_type_id);
- }
- return spit_publishing_dialog_pane_type_id__volatile;
-}
-
-
-/**
- * Specifies the label text on the push button control that appears in the
- * lower-right-hand corner of the on-screen publishing dialog box.
- */
-GType
-spit_publishing_plugin_host_button_mode_get_type (void)
-{
- static volatile gsize spit_publishing_plugin_host_button_mode_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_plugin_host_button_mode_type_id__volatile)) {
- static const GEnumValue values[] = {{SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE, "SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE", "close"}, {SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL, "SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL", "cancel"}, {0, NULL, NULL}};
- GType spit_publishing_plugin_host_button_mode_type_id;
- spit_publishing_plugin_host_button_mode_type_id = g_enum_register_static ("SpitPublishingPluginHostButtonMode", values);
- g_once_init_leave (&spit_publishing_plugin_host_button_mode_type_id__volatile, spit_publishing_plugin_host_button_mode_type_id);
- }
- return spit_publishing_plugin_host_button_mode_type_id__volatile;
-}
-
-
-/**
- * Notifies the user that an unrecoverable publishing error has occurred and halts
- * the publishing process.
- *
- * @param err An error object that describes the kind of error that occurred.
- */
-void
-spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self,
- GError* err)
-{
-#line 277 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 277 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->post_error (self, err);
-#line 1045 "PublishingInterfaces.c"
-}
-
-
-/**
- * Halts the publishing process.
- *
- * Calling this method stops all network activity and hides the on-screen publishing
- * dialog box.
- */
-void
-spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self)
-{
-#line 285 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 285 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->stop_publishing (self);
-#line 1062 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns a reference to the {@link Publisher} object that this is currently hosting.
- */
-SpitPublishingPublisher*
-spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self)
-{
-#line 290 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL);
-#line 290 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publisher (self);
-#line 1076 "PublishingInterfaces.c"
-}
-
-
-/**
- * Attempts to install a pane in the on-screen publishing dialog box, making the pane visible
- * and allowing it to interact with the user.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param pane the pane to install
- *
- * @param mode allows you to set the text displayed on the close/cancel button in the
- * lower-right-hand corner of the on-screen publishing dialog box when pane is installed.
- * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is
- * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on
- * whether a cancellable action is in progress. For example, if your publisher is in the
- * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if
- * the publishing operation has completed and the success pane is displayed, then mode
- * should be ButtonMode.CLOSE, because all cancellable publishing actions have already
- * occurred.
- */
-void
-spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self,
- SpitPublishingDialogPane* pane,
- SpitPublishingPluginHostButtonMode mode)
-{
-#line 310 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 310 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_dialog_pane (self, pane, mode);
-#line 1107 "PublishingInterfaces.c"
-}
-
-
-/**
- * Attempts to install a pane in the on-screen publishing dialog box that contains
- * static text.
- *
- * The text appears centered in the publishing dialog box and is drawn in
- * the system font. This is a convenience method only; similar results could be
- * achieved by manually constructing a Gtk.Label widget, wrapping it inside a
- * {@link DialogPane}, and installing it manually with a call to
- * install_dialog_pane( ). To provide visual consistency across publishing services,
- * however, always use this convenience method instead of constructing label panes when
- * you need to display static text to the user.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param message the text to show in the pane
- *
- * @param mode allows you to set the text displayed on the close/cancel button in the
- * lower-right-hand corner of the on-screen publishing dialog box when pane is installed.
- * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is
- * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on
- * whether a cancellable action is in progress. For example, if your publisher is in the
- * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if
- * the publishing operation has completed and the success pane is displayed, then mode
- * should be ButtonMode.CLOSE, because all cancellable publishing actions have already
- * occurred.
- */
-void
-spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self,
- const gchar* message,
- SpitPublishingPluginHostButtonMode mode)
-{
-#line 339 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 339 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_static_message_pane (self, message, mode);
-#line 1146 "PublishingInterfaces.c"
-}
-
-
-/**
- * Works just like {@link install_static_message_pane} but allows markup to contain
- * Pango text formatting tags as well as unstyled text.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param markup the text to show in the pane, marked up with Pango formatting tags.
- *
- * @param mode allows you to set the text displayed on the close/cancel button in the
- * lower-right-hand corner of the on-screen publishing dialog box when pane is installed.
- * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is
- * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on
- * whether a cancellable action is in progress. For example, if your publisher is in the
- * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if
- * the publishing operation has completed and the success pane is displayed, then mode
- * should be ButtonMode.CLOSE, because all cancellable publishing actions have already
- * occurred.
- */
-void
-spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self,
- const gchar* markup,
- SpitPublishingPluginHostButtonMode mode)
-{
-#line 360 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 360 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_pango_message_pane (self, markup, mode);
-#line 1177 "PublishingInterfaces.c"
-}
-
-
-/**
- * Attempts to install a pane in the on-screen publishing dialog box notifying the user
- * that his or her publishing operation completed successfully.
- *
- * The text displayed depends on the type of media the current publishing service
- * supports. To provide visual consistency across publishing services and to allow
- * Shotwell to handle internationalization, always use this convenience method; don’t
- * contruct and install success panes manually.
- *
- * If an error has posted, the {@link PluginHost} will not honor
- * this request.
- */
-void
-spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self)
-{
-#line 375 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 375 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_success_pane (self);
-#line 1200 "PublishingInterfaces.c"
-}
-
-
-/**
- * Attempts to install a pane displaying the static text “Fetching account information...”
- * in the on-screen publishing dialog box, making it visible to the user.
- *
- * This is a convenience method only; similar results could be achieved by calling
- * {@link install_static_message_pane} with an appropriate text argument. To provide
- * visual consistency across publishing services and to allow Shotwell to handle
- * internationalization, however, you should always use this convenience method whenever
- * you need to tell the user that you’re querying account information over the network.
- * Queries such as this are almost always performed immediately after the user has logged
- * in to the remote service.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- */
-void
-spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self)
-{
-#line 391 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 391 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_account_fetch_wait_pane (self);
-#line 1225 "PublishingInterfaces.c"
-}
-
-
-/**
- * Works just like {@link install_account_fetch_wait_pane} but displays the static text
- * “Logging in...“
- *
- * As with {@link install_account_fetch_wait_pane}, this is a convenience method, but
- * you should you use it provide to visual consistency and to let Shotwell handle
- * internationalization. See the description of {@link install_account_fetch_wait_pane}
- * for more information.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- */
-void
-spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self)
-{
-#line 405 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 405 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_login_wait_pane (self);
-#line 1247 "PublishingInterfaces.c"
-}
-
-
-/**
- * Attempts to install a pane displaying the text 'welcome_message' above a push
- * button labeled “Login” in the on-screen publishing dialog box, making it visible to the
- * user.
- *
- * When the user clicks the “Login” button, you’ll be notified of the user’s action through
- * the callback 'on_login_clicked'. Every Publisher should provide a welcome pane to
- * introduce the service and explain service-specific features or restrictions. To provide
- * visual consistency across publishing services and to allow Shotwell to handle
- * internationalization, always use this convenience method; don’t contruct and install
- * welcome panes manually.
- *
- * If an error has posted, the {@link PluginHost} will not honor this request.
- *
- * @param welcome_message the text to be displayed above a push button labeled “Login”
- * in the on-screen publishing dialog box.
- *
- * @param on_login_clicked specifies the callback that is invoked when the user clicks
- * the “Login” button.
- */
-void
-spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self,
- const gchar* welcome_message,
- SpitPublishingLoginCallback on_login_clicked,
- void* on_login_clicked_target)
-{
-#line 427 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 427 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_welcome_pane (self, welcome_message, on_login_clicked, on_login_clicked_target);
-#line 1281 "PublishingInterfaces.c"
-}
-
-
-/**
- * Toggles whether the service selector combo box in the upper-right-hand corner of the
- * on-screen publishing dialog box is sensitive to input.
- *
- * Publishers should make the service selector box insensitive to input when they are performing
- * non-interruptible file or network operations, since switching to another publishing
- * service will halt whatever service is currently running. Under certain circumstances,
- * the {@link PluginHost} may not honor this request.
- *
- * @param is_locked when is_locked is true, the service selector combo box is made insensitive.
- * It appears greyed out and the user is prevented from switching to another publishing service.
- * When is_locked is false, the combo box is sensitive, allowing the user to freely switch
- * from the current service to another service.
- */
-void
-spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self,
- gboolean is_locked)
-{
-#line 444 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 444 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->set_service_locked (self, is_locked);
-#line 1307 "PublishingInterfaces.c"
-}
-
-
-/**
- * Makes the designated widget the default widget for the publishing dialog.
- *
- * After a call to this method, the designated widget will be activated whenever the user
- * presses the [ENTER] key anywhere in the on-screen publishing dialog box. Under certain
- * circumstances, the {@link PluginHost} may not honor this request.
- *
- * @param widget a reference to the widget to designate as the default widget for the
- * publishing dialog.
- */
-void
-spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self,
- GtkWidget* widget)
-{
-#line 456 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 456 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->set_dialog_default_widget (self, widget);
-#line 1329 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns an array of the publishable media items that the user has selected for upload to the
- * remote service.
- */
-SpitPublishingPublishable**
-spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self,
- int* result_length1)
-{
-#line 462 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL);
-#line 462 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publishables (self, result_length1);
-#line 1345 "PublishingInterfaces.c"
-}
-
-
-/**
- * Writes all of the publishable media items that the user has selected for upload to the
- * remote service to a temporary directory on a local disk.
- *
- * You should call this method immediately before sending the publishable media items to the
- * remote service over the network. Because serializing several megabytes of data is a
- * potentially lengthy operation, calling this method installs an activity status pane in
- * the on-screen publishing dialog box. The activity status pane displays a progress bar along
- * with a string of informational text.
- *
- * Because sending items over the network to the remote service is also a potentially lengthy
- * operation, you should leave the activity status pane installed in the on-screen publishing
- * dialog box until this task is finished. Periodically during the sending process, you should
- * report to the user on the progress of his or her upload. You can do this by invoking the
- * returned {@link ProgressCallback} delegate.
- *
- * After calling this method, the activity status pane that this method installs remains
- * displayed in the on-screen publishing dialog box until you install a new pane.
- *
- * @param content_major_axis when serializing publishable media items that are photos,
- * ensure that neither the width nor the height of the serialized
- * photo is greater than content_major_axis pixels. The value of
- * this parameter has no effect on video publishables.
- *
- * @param strip_metadata when serializing publishable media items that are photos, if
- * strip_metadata is true, all EXIF, IPTC, and XMP metadata will be
- * removed from the serialized file. If strip_metadata is false, all
- * metadata will be left intact. The value of this parameter has no
- * effect on video publishables.
- */
-SpitPublishingProgressCallback
-spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self,
- gint content_major_axis,
- gboolean strip_metadata,
- void** result_target,
- GDestroyNotify* result_target_destroy_notify)
-{
-#line 494 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL);
-#line 494 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->serialize_publishables (self, content_major_axis, strip_metadata, result_target, result_target_destroy_notify);
-#line 1390 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns a {@link Publisher.MediaType} bitfield describing which kinds of media are present
- * in the set of publishable media items that the user has selected for upload to the remote
- * service.
- */
-SpitPublishingPublisherMediaType
-spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self)
-{
-#line 502 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), 0);
-#line 502 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publishable_media_type (self);
-#line 1406 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_real_reserved0 (SpitPublishingPluginHost* self)
-{
-}
-
-
-void
-spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self)
-{
-#line 507 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 507 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved0 (self);
-#line 1423 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_real_reserved1 (SpitPublishingPluginHost* self)
-{
-}
-
-
-void
-spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self)
-{
-#line 508 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 508 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved1 (self);
-#line 1440 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_real_reserved2 (SpitPublishingPluginHost* self)
-{
-}
-
-
-void
-spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self)
-{
-#line 509 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 509 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved2 (self);
-#line 1457 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_real_reserved3 (SpitPublishingPluginHost* self)
-{
-}
-
-
-void
-spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self)
-{
-#line 510 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 510 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved3 (self);
-#line 1474 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_real_reserved4 (SpitPublishingPluginHost* self)
-{
-}
-
-
-void
-spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self)
-{
-#line 511 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 511 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved4 (self);
-#line 1491 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_real_reserved5 (SpitPublishingPluginHost* self)
-{
-}
-
-
-void
-spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self)
-{
-#line 512 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 512 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved5 (self);
-#line 1508 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_real_reserved6 (SpitPublishingPluginHost* self)
-{
-}
-
-
-void
-spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self)
-{
-#line 513 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 513 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved6 (self);
-#line 1525 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_real_reserved7 (SpitPublishingPluginHost* self)
-{
-}
-
-
-void
-spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self)
-{
-#line 514 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
-#line 514 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved7 (self);
-#line 1542 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_plugin_host_base_init (SpitPublishingPluginHostIface * iface)
-{
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- if (!initialized) {
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- initialized = TRUE;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved0 = spit_publishing_plugin_host_real_reserved0;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved1 = spit_publishing_plugin_host_real_reserved1;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved2 = spit_publishing_plugin_host_real_reserved2;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved3 = spit_publishing_plugin_host_real_reserved3;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved4 = spit_publishing_plugin_host_real_reserved4;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved5 = spit_publishing_plugin_host_real_reserved5;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved6 = spit_publishing_plugin_host_real_reserved6;
-#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved7 = spit_publishing_plugin_host_real_reserved7;
-#line 1571 "PublishingInterfaces.c"
- }
-}
-
-
-/**
- * Manages and provides services for publishing plugins.
- *
- * Implemented inside Shotwell, the PluginHost provides an interface through which the
- * developers of publishing plugins can query and make changes to the publishing
- * environment. For example, through the PluginHost, plugins can get a list of the photos
- * and videos to be published, install and remove user-interface panes in the publishing
- * dialog box, and request that the items to be uploaded be serialized to a temporary
- * directory on disk. Plugins can use the services of the PluginHost only when their
- * {@link Publisher} is in the running state. This ensures that non-running publishers
- * don’t destructively interfere with the actively running publisher.
- */
-GType
-spit_publishing_plugin_host_get_type (void)
-{
- static volatile gsize spit_publishing_plugin_host_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_plugin_host_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPluginHostIface), (GBaseInitFunc) spit_publishing_plugin_host_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_publishing_plugin_host_type_id;
- spit_publishing_plugin_host_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPluginHost", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_publishing_plugin_host_type_id, G_TYPE_OBJECT);
- g_type_interface_add_prerequisite (spit_publishing_plugin_host_type_id, SPIT_TYPE_HOST_INTERFACE);
- g_once_init_leave (&spit_publishing_plugin_host_type_id__volatile, spit_publishing_plugin_host_type_id);
- }
- return spit_publishing_plugin_host_type_id__volatile;
-}
-
-
-/**
- * Returns a handle to the file on disk to which this publishable's data has been
- * serialized.
- *
- * You should use this file handle to read into memory the binary data you will send over
- * the network to the remote publishing service when this publishable is uploaded.
- */
-GFile*
-spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self)
-{
-#line 535 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
-#line 535 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_serialized_file (self);
-#line 1618 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns a name that can be used to identify this publishable to the remote service.
- * If the publishing host cannot derive a sensible name, this method will
- * return an empty string. Plugins should be able to handle that situation
- * and provide a fallback value. One possible option for a fallback is:
- * get_param_string(Spit.Publishing.Publishable.PARAM_STRING_BASENAME)
- */
-gchar*
-spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self)
-{
-#line 544 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
-#line 544 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_publishing_name (self);
-#line 1636 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns a string value from the publishable corresponding with the parameter name
- * provided, or null if there is no value for this name.
- */
-gchar*
-spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self,
- const gchar* name)
-{
-#line 550 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
-#line 550 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_param_string (self, name);
-#line 1652 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns an array of strings that should be used to tag or mark this publishable on the
- * remote service, or null if this publishable has no tags or markings.
- */
-gchar**
-spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self,
- int* result_length1)
-{
-#line 556 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
-#line 556 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_publishing_keywords (self, result_length1);
-#line 1668 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns the kind of media item this publishable encapsulates.
- */
-SpitPublishingPublisherMediaType
-spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self)
-{
-#line 561 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), 0);
-#line 561 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_media_type (self);
-#line 1682 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns the creation timestamp on the file.
- */
-GDateTime*
-spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self)
-{
-#line 566 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
-#line 566 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_exposure_date_time (self);
-#line 1696 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_real_reserved0 (SpitPublishingPublishable* self)
-{
-}
-
-
-void
-spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self)
-{
-#line 571 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
-#line 571 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved0 (self);
-#line 1713 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_real_reserved1 (SpitPublishingPublishable* self)
-{
-}
-
-
-void
-spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self)
-{
-#line 572 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
-#line 572 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved1 (self);
-#line 1730 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_real_reserved2 (SpitPublishingPublishable* self)
-{
-}
-
-
-void
-spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self)
-{
-#line 573 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
-#line 573 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved2 (self);
-#line 1747 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_real_reserved3 (SpitPublishingPublishable* self)
-{
-}
-
-
-void
-spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self)
-{
-#line 574 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
-#line 574 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved3 (self);
-#line 1764 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_real_reserved4 (SpitPublishingPublishable* self)
-{
-}
-
-
-void
-spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self)
-{
-#line 575 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
-#line 575 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved4 (self);
-#line 1781 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_real_reserved5 (SpitPublishingPublishable* self)
-{
-}
-
-
-void
-spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self)
-{
-#line 576 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
-#line 576 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved5 (self);
-#line 1798 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_real_reserved6 (SpitPublishingPublishable* self)
-{
-}
-
-
-void
-spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self)
-{
-#line 577 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
-#line 577 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved6 (self);
-#line 1815 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_real_reserved7 (SpitPublishingPublishable* self)
-{
-}
-
-
-void
-spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self)
-{
-#line 578 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
-#line 578 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved7 (self);
-#line 1832 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_publishable_base_init (SpitPublishingPublishableIface * iface)
-{
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- if (!initialized) {
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- initialized = TRUE;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved0 = spit_publishing_publishable_real_reserved0;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved1 = spit_publishing_publishable_real_reserved1;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved2 = spit_publishing_publishable_real_reserved2;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved3 = spit_publishing_publishable_real_reserved3;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved4 = spit_publishing_publishable_real_reserved4;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved5 = spit_publishing_publishable_real_reserved5;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved6 = spit_publishing_publishable_real_reserved6;
-#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved7 = spit_publishing_publishable_real_reserved7;
-#line 1861 "PublishingInterfaces.c"
- }
-}
-
-
-/**
- * Describes an underlying media item (such as a photo or a video) that your plugin
- * uploads to a remote publishing service.
- */
-GType
-spit_publishing_publishable_get_type (void)
-{
- static volatile gsize spit_publishing_publishable_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_publishable_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPublishableIface), (GBaseInitFunc) spit_publishing_publishable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_publishing_publishable_type_id;
- spit_publishing_publishable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPublishable", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_publishing_publishable_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_publishing_publishable_type_id__volatile, spit_publishing_publishable_type_id);
- }
- return spit_publishing_publishable_type_id__volatile;
-}
-
-
-/**
- * A factory method that instantiates and returns a new {@link Publisher} object that
- * encapsulates a connection to the remote publishing service that this Service describes.
- */
-SpitPublishingPublisher*
-spit_publishing_service_create_publisher (SpitPublishingService* self,
- SpitPublishingPluginHost* host)
-{
-#line 591 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (self), NULL);
-#line 591 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->create_publisher (self, host);
-#line 1897 "PublishingInterfaces.c"
-}
-
-
-/**
- * Returns the kinds of media that this service can work with.
- */
-SpitPublishingPublisherMediaType
-spit_publishing_service_get_supported_media (SpitPublishingService* self)
-{
-#line 596 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (self), 0);
-#line 596 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->get_supported_media (self);
-#line 1911 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_real_reserved0 (SpitPublishingService* self)
-{
-}
-
-
-void
-spit_publishing_service_reserved0 (SpitPublishingService* self)
-{
-#line 601 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
-#line 601 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved0 (self);
-#line 1928 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_real_reserved1 (SpitPublishingService* self)
-{
-}
-
-
-void
-spit_publishing_service_reserved1 (SpitPublishingService* self)
-{
-#line 602 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
-#line 602 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved1 (self);
-#line 1945 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_real_reserved2 (SpitPublishingService* self)
-{
-}
-
-
-void
-spit_publishing_service_reserved2 (SpitPublishingService* self)
-{
-#line 603 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
-#line 603 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved2 (self);
-#line 1962 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_real_reserved3 (SpitPublishingService* self)
-{
-}
-
-
-void
-spit_publishing_service_reserved3 (SpitPublishingService* self)
-{
-#line 604 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
-#line 604 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved3 (self);
-#line 1979 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_real_reserved4 (SpitPublishingService* self)
-{
-}
-
-
-void
-spit_publishing_service_reserved4 (SpitPublishingService* self)
-{
-#line 605 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
-#line 605 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved4 (self);
-#line 1996 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_real_reserved5 (SpitPublishingService* self)
-{
-}
-
-
-void
-spit_publishing_service_reserved5 (SpitPublishingService* self)
-{
-#line 606 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
-#line 606 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved5 (self);
-#line 2013 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_real_reserved6 (SpitPublishingService* self)
-{
-}
-
-
-void
-spit_publishing_service_reserved6 (SpitPublishingService* self)
-{
-#line 607 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
-#line 607 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved6 (self);
-#line 2030 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_real_reserved7 (SpitPublishingService* self)
-{
-}
-
-
-void
-spit_publishing_service_reserved7 (SpitPublishingService* self)
-{
-#line 608 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
-#line 608 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved7 (self);
-#line 2047 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_service_base_init (SpitPublishingServiceIface * iface)
-{
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- if (!initialized) {
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- initialized = TRUE;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved0 = spit_publishing_service_real_reserved0;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved1 = spit_publishing_service_real_reserved1;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved2 = spit_publishing_service_real_reserved2;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved3 = spit_publishing_service_real_reserved3;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved4 = spit_publishing_service_real_reserved4;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved5 = spit_publishing_service_real_reserved5;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved6 = spit_publishing_service_real_reserved6;
-#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- iface->reserved7 = spit_publishing_service_real_reserved7;
-#line 2076 "PublishingInterfaces.c"
- }
-}
-
-
-/**
- * Describes the features and capabilities of a remote publishing service.
- *
- * Developers of publishing plugins provide a class that implements this interface.
- */
-GType
-spit_publishing_service_get_type (void)
-{
- static volatile gsize spit_publishing_service_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_service_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingServiceIface), (GBaseInitFunc) spit_publishing_service_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_publishing_service_type_id;
- spit_publishing_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingService", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_publishing_service_type_id, G_TYPE_OBJECT);
- g_type_interface_add_prerequisite (spit_publishing_service_type_id, SPIT_TYPE_PLUGGABLE);
- g_once_init_leave (&spit_publishing_service_type_id__volatile, spit_publishing_service_type_id);
- }
- return spit_publishing_service_type_id__volatile;
-}
-
-
-void
-spit_publishing_authenticator_authenticate (SpitPublishingAuthenticator* self)
-{
-#line 615 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self));
-#line 615 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->authenticate (self);
-#line 2109 "PublishingInterfaces.c"
-}
-
-
-gboolean
-spit_publishing_authenticator_can_logout (SpitPublishingAuthenticator* self)
-{
-#line 616 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self), FALSE);
-#line 616 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->can_logout (self);
-#line 2120 "PublishingInterfaces.c"
-}
-
-
-void
-spit_publishing_authenticator_logout (SpitPublishingAuthenticator* self)
-{
-#line 617 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self));
-#line 617 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->logout (self);
-#line 2131 "PublishingInterfaces.c"
-}
-
-
-void
-spit_publishing_authenticator_refresh (SpitPublishingAuthenticator* self)
-{
-#line 618 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self));
-#line 618 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->refresh (self);
-#line 2142 "PublishingInterfaces.c"
-}
-
-
-GHashTable*
-spit_publishing_authenticator_get_authentication_parameter (SpitPublishingAuthenticator* self)
-{
-#line 620 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self), NULL);
-#line 620 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->get_authentication_parameter (self);
-#line 2153 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_authenticator_base_init (SpitPublishingAuthenticatorIface * iface)
-{
-#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- if (!initialized) {
-#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- initialized = TRUE;
-#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATED_SIGNAL] = g_signal_new ("authenticated", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATION_FAILED_SIGNAL] = g_signal_new ("authentication-failed", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 2170 "PublishingInterfaces.c"
- }
-}
-
-
-GType
-spit_publishing_authenticator_get_type (void)
-{
- static volatile gsize spit_publishing_authenticator_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_authenticator_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingAuthenticatorIface), (GBaseInitFunc) spit_publishing_authenticator_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_publishing_authenticator_type_id;
- spit_publishing_authenticator_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingAuthenticator", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_publishing_authenticator_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_publishing_authenticator_type_id__volatile, spit_publishing_authenticator_type_id);
- }
- return spit_publishing_authenticator_type_id__volatile;
-}
-
-
-GeeList*
-spit_publishing_authenticator_factory_get_available_authenticators (SpitPublishingAuthenticatorFactory* self)
-{
-#line 628 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY (self), NULL);
-#line 628 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE (self)->get_available_authenticators (self);
-#line 2197 "PublishingInterfaces.c"
-}
-
-
-SpitPublishingAuthenticator*
-spit_publishing_authenticator_factory_create (SpitPublishingAuthenticatorFactory* self,
- const gchar* provider,
- SpitPublishingPluginHost* host)
-{
-#line 629 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY (self), NULL);
-#line 629 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- return SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE (self)->create (self, provider, host);
-#line 2210 "PublishingInterfaces.c"
-}
-
-
-static void
-spit_publishing_authenticator_factory_base_init (SpitPublishingAuthenticatorFactoryIface * iface)
-{
-#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- if (!initialized) {
-#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
- initialized = TRUE;
-#line 2223 "PublishingInterfaces.c"
- }
-}
-
-
-GType
-spit_publishing_authenticator_factory_get_type (void)
-{
- static volatile gsize spit_publishing_authenticator_factory_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_authenticator_factory_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingAuthenticatorFactoryIface), (GBaseInitFunc) spit_publishing_authenticator_factory_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_publishing_authenticator_factory_type_id;
- spit_publishing_authenticator_factory_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingAuthenticatorFactory", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_publishing_authenticator_factory_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_publishing_authenticator_factory_type_id__volatile, spit_publishing_authenticator_factory_type_id);
- }
- return spit_publishing_authenticator_factory_type_id__volatile;
-}
-
-
-
diff --git a/src/plugins/SpitInterfaces.c b/src/plugins/SpitInterfaces.c
deleted file mode 100644
index d890484..0000000
--- a/src/plugins/SpitInterfaces.c
+++ /dev/null
@@ -1,1548 +0,0 @@
-/* SpitInterfaces.c generated by valac 0.40.4, the Vala compiler
- * generated from SpitInterfaces.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <float.h>
-#include <math.h>
-
-
-#define SPIT_TYPE_ENTRY_POINT_PARAMS (spit_entry_point_params_get_type ())
-typedef struct _SpitEntryPointParams SpitEntryPointParams;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define SPIT_TYPE_MODULE (spit_module_get_type ())
-#define SPIT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_MODULE, SpitModule))
-#define SPIT_IS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_MODULE))
-#define SPIT_MODULE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_MODULE, SpitModuleIface))
-
-typedef struct _SpitModule SpitModule;
-typedef struct _SpitModuleIface SpitModuleIface;
-
-#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ())
-#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable))
-#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE))
-#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface))
-
-typedef struct _SpitPluggable SpitPluggable;
-typedef struct _SpitPluggableIface SpitPluggableIface;
-
-#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ())
-typedef struct _SpitPluggableInfo SpitPluggableInfo;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ())
-#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface))
-#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE))
-#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface))
-
-typedef struct _SpitHostInterface SpitHostInterface;
-typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface;
-
-struct _SpitEntryPointParams {
- gint host_min_spit_interface;
- gint host_max_spit_interface;
- gint module_spit_interface;
- GFile* module_file;
-};
-
-struct _SpitPluggableInfo {
- gchar* version;
- gchar* brief_description;
- gchar* authors;
- gchar* copyright;
- gchar* license;
- gboolean is_license_wordwrapped;
- gchar* website_url;
- gchar* website_name;
- gchar* translators;
- GdkPixbuf** icons;
- gint icons_length1;
-};
-
-struct _SpitPluggableIface {
- GTypeInterface parent_iface;
- gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface);
- const gchar* (*get_id) (SpitPluggable* self);
- const gchar* (*get_pluggable_name) (SpitPluggable* self);
- void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info);
- void (*activation) (SpitPluggable* self, gboolean enabled);
- void (*reserved0) (SpitPluggable* self);
- void (*reserved1) (SpitPluggable* self);
- void (*reserved2) (SpitPluggable* self);
- void (*reserved3) (SpitPluggable* self);
- void (*reserved4) (SpitPluggable* self);
- void (*reserved5) (SpitPluggable* self);
- void (*reserved6) (SpitPluggable* self);
- void (*reserved7) (SpitPluggable* self);
-};
-
-struct _SpitModuleIface {
- GTypeInterface parent_iface;
- const gchar* (*get_module_name) (SpitModule* self);
- const gchar* (*get_version) (SpitModule* self);
- const gchar* (*get_id) (SpitModule* self);
- SpitPluggable** (*get_pluggables) (SpitModule* self, int* result_length1);
- void (*reserved0) (SpitModule* self);
- void (*reserved1) (SpitModule* self);
- void (*reserved2) (SpitModule* self);
- void (*reserved3) (SpitModule* self);
- void (*reserved4) (SpitModule* self);
- void (*reserved5) (SpitModule* self);
- void (*reserved6) (SpitModule* self);
- void (*reserved7) (SpitModule* self);
-};
-
-typedef SpitModule* (*SpitEntryPoint) (SpitEntryPointParams* params);
-struct _SpitHostInterfaceIface {
- GTypeInterface parent_iface;
- GFile* (*get_module_file) (SpitHostInterface* self);
- gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def);
- void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val);
- gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def);
- void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val);
- gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def);
- void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val);
- gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def);
- void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val);
- void (*unset_config_key) (SpitHostInterface* self, const gchar* key);
- void (*reserved0) (SpitHostInterface* self);
- void (*reserved1) (SpitHostInterface* self);
- void (*reserved2) (SpitHostInterface* self);
- void (*reserved3) (SpitHostInterface* self);
- void (*reserved4) (SpitHostInterface* self);
- void (*reserved5) (SpitHostInterface* self);
- void (*reserved6) (SpitHostInterface* self);
- void (*reserved7) (SpitHostInterface* self);
-};
-
-
-
-#define SPIT_UNSUPPORTED_INTERFACE -1
-#define SPIT_CURRENT_INTERFACE 0
-gint spit_negotiate_interfaces (gint min_host_interface,
- gint max_host_interface,
- gint plugin_interface);
-GType spit_entry_point_params_get_type (void) G_GNUC_CONST;
-SpitEntryPointParams* spit_entry_point_params_dup (const SpitEntryPointParams* self);
-void spit_entry_point_params_free (SpitEntryPointParams* self);
-void spit_entry_point_params_copy (const SpitEntryPointParams* self,
- SpitEntryPointParams* dest);
-void spit_entry_point_params_destroy (SpitEntryPointParams* self);
-GType spit_pluggable_info_get_type (void) G_GNUC_CONST;
-SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self);
-void spit_pluggable_info_free (SpitPluggableInfo* self);
-void spit_pluggable_info_copy (const SpitPluggableInfo* self,
- SpitPluggableInfo* dest);
-void spit_pluggable_info_destroy (SpitPluggableInfo* self);
-GType spit_pluggable_get_type (void) G_GNUC_CONST;
-GType spit_module_get_type (void) G_GNUC_CONST;
-#define SPIT_ENTRY_POINT_NAME "spit_entry_point"
-const gchar* spit_module_get_module_name (SpitModule* self);
-const gchar* spit_module_get_version (SpitModule* self);
-const gchar* spit_module_get_id (SpitModule* self);
-SpitPluggable** spit_module_get_pluggables (SpitModule* self,
- int* result_length1);
-void spit_module_reserved0 (SpitModule* self);
-static void spit_module_real_reserved0 (SpitModule* self);
-void spit_module_reserved1 (SpitModule* self);
-static void spit_module_real_reserved1 (SpitModule* self);
-void spit_module_reserved2 (SpitModule* self);
-static void spit_module_real_reserved2 (SpitModule* self);
-void spit_module_reserved3 (SpitModule* self);
-static void spit_module_real_reserved3 (SpitModule* self);
-void spit_module_reserved4 (SpitModule* self);
-static void spit_module_real_reserved4 (SpitModule* self);
-void spit_module_reserved5 (SpitModule* self);
-static void spit_module_real_reserved5 (SpitModule* self);
-void spit_module_reserved6 (SpitModule* self);
-static void spit_module_real_reserved6 (SpitModule* self);
-void spit_module_reserved7 (SpitModule* self);
-static void spit_module_real_reserved7 (SpitModule* self);
-static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self,
- int length);
-gint spit_pluggable_get_pluggable_interface (SpitPluggable* self,
- gint min_host_interface,
- gint max_host_interface);
-const gchar* spit_pluggable_get_id (SpitPluggable* self);
-const gchar* spit_pluggable_get_pluggable_name (SpitPluggable* self);
-void spit_pluggable_get_info (SpitPluggable* self,
- SpitPluggableInfo* info);
-void spit_pluggable_activation (SpitPluggable* self,
- gboolean enabled);
-void spit_pluggable_reserved0 (SpitPluggable* self);
-static void spit_pluggable_real_reserved0 (SpitPluggable* self);
-void spit_pluggable_reserved1 (SpitPluggable* self);
-static void spit_pluggable_real_reserved1 (SpitPluggable* self);
-void spit_pluggable_reserved2 (SpitPluggable* self);
-static void spit_pluggable_real_reserved2 (SpitPluggable* self);
-void spit_pluggable_reserved3 (SpitPluggable* self);
-static void spit_pluggable_real_reserved3 (SpitPluggable* self);
-void spit_pluggable_reserved4 (SpitPluggable* self);
-static void spit_pluggable_real_reserved4 (SpitPluggable* self);
-void spit_pluggable_reserved5 (SpitPluggable* self);
-static void spit_pluggable_real_reserved5 (SpitPluggable* self);
-void spit_pluggable_reserved6 (SpitPluggable* self);
-static void spit_pluggable_real_reserved6 (SpitPluggable* self);
-void spit_pluggable_reserved7 (SpitPluggable* self);
-static void spit_pluggable_real_reserved7 (SpitPluggable* self);
-GType spit_host_interface_get_type (void) G_GNUC_CONST;
-GFile* spit_host_interface_get_module_file (SpitHostInterface* self);
-gboolean spit_host_interface_get_config_bool (SpitHostInterface* self,
- const gchar* key,
- gboolean def);
-void spit_host_interface_set_config_bool (SpitHostInterface* self,
- const gchar* key,
- gboolean val);
-gint spit_host_interface_get_config_int (SpitHostInterface* self,
- const gchar* key,
- gint def);
-void spit_host_interface_set_config_int (SpitHostInterface* self,
- const gchar* key,
- gint val);
-gchar* spit_host_interface_get_config_string (SpitHostInterface* self,
- const gchar* key,
- const gchar* def);
-void spit_host_interface_set_config_string (SpitHostInterface* self,
- const gchar* key,
- const gchar* val);
-gdouble spit_host_interface_get_config_double (SpitHostInterface* self,
- const gchar* key,
- gdouble def);
-void spit_host_interface_set_config_double (SpitHostInterface* self,
- const gchar* key,
- gdouble val);
-void spit_host_interface_unset_config_key (SpitHostInterface* self,
- const gchar* key);
-void spit_host_interface_reserved0 (SpitHostInterface* self);
-static void spit_host_interface_real_reserved0 (SpitHostInterface* self);
-void spit_host_interface_reserved1 (SpitHostInterface* self);
-static void spit_host_interface_real_reserved1 (SpitHostInterface* self);
-void spit_host_interface_reserved2 (SpitHostInterface* self);
-static void spit_host_interface_real_reserved2 (SpitHostInterface* self);
-void spit_host_interface_reserved3 (SpitHostInterface* self);
-static void spit_host_interface_real_reserved3 (SpitHostInterface* self);
-void spit_host_interface_reserved4 (SpitHostInterface* self);
-static void spit_host_interface_real_reserved4 (SpitHostInterface* self);
-void spit_host_interface_reserved5 (SpitHostInterface* self);
-static void spit_host_interface_real_reserved5 (SpitHostInterface* self);
-void spit_host_interface_reserved6 (SpitHostInterface* self);
-static void spit_host_interface_real_reserved6 (SpitHostInterface* self);
-void spit_host_interface_reserved7 (SpitHostInterface* self);
-static void spit_host_interface_real_reserved7 (SpitHostInterface* self);
-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);
-
-
-/**
- * A utility function for checking host interfaces against one's own and returning the right value.
- *
- * Note that this only works if the caller operates on only one interface version (and cannot mutate
- * between multiple ones).
- *
- * @param min_host_interface The minimum supported host interface version.
- * @param max_host_interface The maximum supported host interface version.
- * @param plugin_interface The interface version supported by the Pluggable.
- *
- * @return The plugin's interface version if supported, {@link UNSUPPORTED_INTERFACE} otherwise.
- */
-gint
-spit_negotiate_interfaces (gint min_host_interface,
- gint max_host_interface,
- gint plugin_interface)
-{
- gint result = 0;
- gint _tmp0_ = 0;
- gboolean _tmp1_ = FALSE;
-#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- if (min_host_interface > plugin_interface) {
-#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp1_ = TRUE;
-#line 277 "SpitInterfaces.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp1_ = max_host_interface < plugin_interface;
-#line 281 "SpitInterfaces.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- if (_tmp1_) {
-#line 48 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp0_ = SPIT_UNSUPPORTED_INTERFACE;
-#line 287 "SpitInterfaces.c"
- } else {
-#line 48 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp0_ = plugin_interface;
-#line 291 "SpitInterfaces.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- result = _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return result;
-#line 297 "SpitInterfaces.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return self ? g_object_ref (self) : NULL;
-#line 306 "SpitInterfaces.c"
-}
-
-
-void
-spit_entry_point_params_copy (const SpitEntryPointParams* self,
- SpitEntryPointParams* dest)
-{
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp0_ = (*self).host_min_spit_interface;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).host_min_spit_interface = _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp1_ = (*self).host_max_spit_interface;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).host_max_spit_interface = _tmp1_;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp2_ = (*self).module_spit_interface;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).module_spit_interface = _tmp2_;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp3_ = (*self).module_file;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_object_unref0 ((*dest).module_file);
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).module_file = _tmp4_;
-#line 339 "SpitInterfaces.c"
-}
-
-
-void
-spit_entry_point_params_destroy (SpitEntryPointParams* self)
-{
-#line 79 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_object_unref0 ((*self).module_file);
-#line 348 "SpitInterfaces.c"
-}
-
-
-SpitEntryPointParams*
-spit_entry_point_params_dup (const SpitEntryPointParams* self)
-{
- SpitEntryPointParams* dup;
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- dup = g_new0 (SpitEntryPointParams, 1);
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- spit_entry_point_params_copy (self, dup);
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return dup;
-#line 362 "SpitInterfaces.c"
-}
-
-
-void
-spit_entry_point_params_free (SpitEntryPointParams* self)
-{
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- spit_entry_point_params_destroy (self);
-#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_free (self);
-#line 373 "SpitInterfaces.c"
-}
-
-
-GType
-spit_entry_point_params_get_type (void)
-{
- static volatile gsize spit_entry_point_params_type_id__volatile = 0;
- if (g_once_init_enter (&spit_entry_point_params_type_id__volatile)) {
- GType spit_entry_point_params_type_id;
- spit_entry_point_params_type_id = g_boxed_type_register_static ("SpitEntryPointParams", (GBoxedCopyFunc) spit_entry_point_params_dup, (GBoxedFreeFunc) spit_entry_point_params_free);
- g_once_init_leave (&spit_entry_point_params_type_id__volatile, spit_entry_point_params_type_id);
- }
- return spit_entry_point_params_type_id__volatile;
-}
-
-
-/**
- * Returns a user-visible string describing the module.
- */
-const gchar*
-spit_module_get_module_name (SpitModule* self)
-{
-#line 117 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_MODULE (self), NULL);
-#line 117 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_MODULE_GET_INTERFACE (self)->get_module_name (self);
-#line 400 "SpitInterfaces.c"
-}
-
-
-/**
- * Returns a user-visible string describing the module version.
- *
- * Note that this may be programmatically interpreted at some point, so use a widespread
- * versioning scheme.
- */
-const gchar*
-spit_module_get_version (SpitModule* self)
-{
-#line 125 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_MODULE (self), NULL);
-#line 125 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_MODULE_GET_INTERFACE (self)->get_version (self);
-#line 417 "SpitInterfaces.c"
-}
-
-
-/**
- * Returns a unique identifier for this module.
- *
- * This is used to differentiate between multiple
- * installed versions and to determine which one should be used (i.e. if a module is available
- * in a system directory and a user directory). This name is case-sensitive.
- *
- * Best practice: use a reverse-DNS-order scheme, a la Java's packages
- * (i.e. "org.yorba.shotwell.frotz").
- */
-const gchar*
-spit_module_get_id (SpitModule* self)
-{
-#line 137 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_MODULE (self), NULL);
-#line 137 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_MODULE_GET_INTERFACE (self)->get_id (self);
-#line 438 "SpitInterfaces.c"
-}
-
-
-/**
- * Returns an array of {@link Pluggable} that represent each plugin available in the module.
- *
- * May return NULL or an empty array.
- */
-SpitPluggable**
-spit_module_get_pluggables (SpitModule* self,
- int* result_length1)
-{
-#line 144 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_MODULE (self), NULL);
-#line 144 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_MODULE_GET_INTERFACE (self)->get_pluggables (self, result_length1);
-#line 455 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_real_reserved0 (SpitModule* self)
-{
-}
-
-
-void
-spit_module_reserved0 (SpitModule* self)
-{
-#line 149 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_MODULE (self));
-#line 149 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_MODULE_GET_INTERFACE (self)->reserved0 (self);
-#line 472 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_real_reserved1 (SpitModule* self)
-{
-}
-
-
-void
-spit_module_reserved1 (SpitModule* self)
-{
-#line 150 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_MODULE (self));
-#line 150 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_MODULE_GET_INTERFACE (self)->reserved1 (self);
-#line 489 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_real_reserved2 (SpitModule* self)
-{
-}
-
-
-void
-spit_module_reserved2 (SpitModule* self)
-{
-#line 151 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_MODULE (self));
-#line 151 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_MODULE_GET_INTERFACE (self)->reserved2 (self);
-#line 506 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_real_reserved3 (SpitModule* self)
-{
-}
-
-
-void
-spit_module_reserved3 (SpitModule* self)
-{
-#line 152 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_MODULE (self));
-#line 152 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_MODULE_GET_INTERFACE (self)->reserved3 (self);
-#line 523 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_real_reserved4 (SpitModule* self)
-{
-}
-
-
-void
-spit_module_reserved4 (SpitModule* self)
-{
-#line 153 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_MODULE (self));
-#line 153 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_MODULE_GET_INTERFACE (self)->reserved4 (self);
-#line 540 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_real_reserved5 (SpitModule* self)
-{
-}
-
-
-void
-spit_module_reserved5 (SpitModule* self)
-{
-#line 154 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_MODULE (self));
-#line 154 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_MODULE_GET_INTERFACE (self)->reserved5 (self);
-#line 557 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_real_reserved6 (SpitModule* self)
-{
-}
-
-
-void
-spit_module_reserved6 (SpitModule* self)
-{
-#line 155 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_MODULE (self));
-#line 155 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_MODULE_GET_INTERFACE (self)->reserved6 (self);
-#line 574 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_real_reserved7 (SpitModule* self)
-{
-}
-
-
-void
-spit_module_reserved7 (SpitModule* self)
-{
-#line 156 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_MODULE (self));
-#line 156 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_MODULE_GET_INTERFACE (self)->reserved7 (self);
-#line 591 "SpitInterfaces.c"
-}
-
-
-static void
-spit_module_base_init (SpitModuleIface * iface)
-{
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- if (!initialized) {
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- initialized = TRUE;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved0 = spit_module_real_reserved0;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved1 = spit_module_real_reserved1;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved2 = spit_module_real_reserved2;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved3 = spit_module_real_reserved3;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved4 = spit_module_real_reserved4;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved5 = spit_module_real_reserved5;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved6 = spit_module_real_reserved6;
-#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved7 = spit_module_real_reserved7;
-#line 620 "SpitInterfaces.c"
- }
-}
-
-
-/**
- * A Module represents the resources of an entire dynamically-linked module (i.e. a .so/.la).
- *
- * A module holds zero or more Shotwell plugins ({@link Pluggable}). Once the module has been
- * loaded into process space this object is retrieved by Shotwell. All calls to the module and
- * its plugins are resolved through this interface.
- *
- * Note: The module is responsible for holding the reference to the Module object, of which there
- * should be only one in the library file. The module should implement a g_module_unload method
- * and drop the reference there.
- */
-GType
-spit_module_get_type (void)
-{
- static volatile gsize spit_module_type_id__volatile = 0;
- if (g_once_init_enter (&spit_module_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitModuleIface), (GBaseInitFunc) spit_module_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_module_type_id;
- spit_module_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitModule", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_module_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_module_type_id__volatile, spit_module_type_id);
- }
- return spit_module_type_id__volatile;
-}
-
-
-static GdkPixbuf**
-_vala_array_dup1 (GdkPixbuf** self,
- int length)
-{
- GdkPixbuf** result;
- int i;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- result = g_new0 (GdkPixbuf*, length + 1);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- for (i = 0; i < length; i++) {
-#line 661 "SpitInterfaces.c"
- GdkPixbuf* _tmp0_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp0_ = _g_object_ref0 (self[i]);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- result[i] = _tmp0_;
-#line 667 "SpitInterfaces.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return result;
-#line 671 "SpitInterfaces.c"
-}
-
-
-void
-spit_pluggable_info_copy (const SpitPluggableInfo* self,
- SpitPluggableInfo* dest)
-{
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
- gboolean _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- GdkPixbuf** _tmp17_;
- gint _tmp17__length1;
- GdkPixbuf** _tmp18_;
- gint _tmp18__length1;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp0_ = (*self).version;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*dest).version);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).version = _tmp1_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp2_ = (*self).brief_description;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*dest).brief_description);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).brief_description = _tmp3_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp4_ = (*self).authors;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*dest).authors);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).authors = _tmp5_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp6_ = (*self).copyright;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp7_ = g_strdup (_tmp6_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*dest).copyright);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).copyright = _tmp7_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp8_ = (*self).license;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*dest).license);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).license = _tmp9_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp10_ = (*self).is_license_wordwrapped;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).is_license_wordwrapped = _tmp10_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp11_ = (*self).website_url;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp12_ = g_strdup (_tmp11_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*dest).website_url);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).website_url = _tmp12_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp13_ = (*self).website_name;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp14_ = g_strdup (_tmp13_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*dest).website_name);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).website_name = _tmp14_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp15_ = (*self).translators;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*dest).translators);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).translators = _tmp16_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp17_ = (*self).icons;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp17__length1 = (*self).icons_length1;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp18_ = (_tmp17_ != NULL) ? _vala_array_dup1 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _tmp18__length1 = _tmp17__length1;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).icons = (_vala_array_free ((*dest).icons, (*dest).icons_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).icons = _tmp18_;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*dest).icons_length1 = _tmp18__length1;
-#line 782 "SpitInterfaces.c"
-}
-
-
-void
-spit_pluggable_info_destroy (SpitPluggableInfo* self)
-{
-#line 163 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*self).version);
-#line 164 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*self).brief_description);
-#line 168 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*self).authors);
-#line 169 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*self).copyright);
-#line 170 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*self).license);
-#line 172 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*self).website_url);
-#line 173 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*self).website_name);
-#line 174 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- _g_free0 ((*self).translators);
-#line 179 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- (*self).icons = (_vala_array_free ((*self).icons, (*self).icons_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 807 "SpitInterfaces.c"
-}
-
-
-SpitPluggableInfo*
-spit_pluggable_info_dup (const SpitPluggableInfo* self)
-{
- SpitPluggableInfo* dup;
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- dup = g_new0 (SpitPluggableInfo, 1);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- spit_pluggable_info_copy (self, dup);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return dup;
-#line 821 "SpitInterfaces.c"
-}
-
-
-void
-spit_pluggable_info_free (SpitPluggableInfo* self)
-{
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- spit_pluggable_info_destroy (self);
-#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_free (self);
-#line 832 "SpitInterfaces.c"
-}
-
-
-GType
-spit_pluggable_info_get_type (void)
-{
- static volatile gsize spit_pluggable_info_type_id__volatile = 0;
- if (g_once_init_enter (&spit_pluggable_info_type_id__volatile)) {
- GType spit_pluggable_info_type_id;
- spit_pluggable_info_type_id = g_boxed_type_register_static ("SpitPluggableInfo", (GBoxedCopyFunc) spit_pluggable_info_dup, (GBoxedFreeFunc) spit_pluggable_info_free);
- g_once_init_leave (&spit_pluggable_info_type_id__volatile, spit_pluggable_info_type_id);
- }
- return spit_pluggable_info_type_id__volatile;
-}
-
-
-/**
- * Pluggable interface version negotiation.
- *
- * Like the {@link EntryPoint}, this mechanism allows for the host to negotiate with the Pluggable
- * for its interface version. If the pluggable does not support an interface between the
- * two ranges (inclusive), it should return {@link UNSUPPORTED_INTERFACE}.
- *
- * Note that this is ''not'' a negotiation of the SPIT interface versions (which is the
- * responsibility of {@link EntryPoint}. Rather, each extension point is expected to version
- * its own cluster of interfaces. It is that interface version that is being negotiated here.
- *
- * {@link negotiate_interfaces} can be used to implement this method.
- *
- * @param min_host_interface The host's minimum supported interface version number
- * //for this Pluggable's intended extension point//.
- * @param max_host_interface The host's maximum supported interface version number
- * //for this Pluggable's intended extension point//.
- *
- * @return The version number supported by the host and the Pluggable or
- * {@link UNSUPPORTED_INTERFACE}.
- */
-gint
-spit_pluggable_get_pluggable_interface (SpitPluggable* self,
- gint min_host_interface,
- gint max_host_interface)
-{
-#line 210 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), 0);
-#line 210 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_pluggable_interface (self, min_host_interface, max_host_interface);
-#line 879 "SpitInterfaces.c"
-}
-
-
-/**
- * Returns a unique identifier for this Pluggable.
- *
- * Like {@link Module.get_id}, best practice is to use a reverse-DNS-order scheme to avoid
- * conflicts.
- */
-const gchar*
-spit_pluggable_get_id (SpitPluggable* self)
-{
-#line 218 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), NULL);
-#line 218 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_id (self);
-#line 896 "SpitInterfaces.c"
-}
-
-
-/**
- * Returns a user-visible name for the Pluggable.
- */
-const gchar*
-spit_pluggable_get_pluggable_name (SpitPluggable* self)
-{
-#line 223 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), NULL);
-#line 223 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_pluggable_name (self);
-#line 910 "SpitInterfaces.c"
-}
-
-
-/**
- * Returns extra information about the Pluggable that is used to identify it to the user.
- */
-void
-spit_pluggable_get_info (SpitPluggable* self,
- SpitPluggableInfo* info)
-{
-#line 228 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 228 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->get_info (self, info);
-#line 925 "SpitInterfaces.c"
-}
-
-
-/**
- * Called when the Pluggable is enabled (activated) or disabled (deactivated).
- *
- * activation will be called at the start of the program if the user previously
- * enabled/disabled it as well as during program execution if the user changes its state. Note
- * that disabling a Pluggable does not require destroying existing resources or objects
- * the Pluggable has previously handed off to the host.
- *
- * This is purely informational. The Pluggable should acquire any long-term resources
- * it may be holding onto here, or wait until an extension-specific call is made to it.
- *
- * @param enabled ``true`` if the Pluggable has been enabled, ``false`` otherwise.
- */
-void
-spit_pluggable_activation (SpitPluggable* self,
- gboolean enabled)
-{
-#line 243 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 243 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->activation (self, enabled);
-#line 950 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_real_reserved0 (SpitPluggable* self)
-{
-}
-
-
-void
-spit_pluggable_reserved0 (SpitPluggable* self)
-{
-#line 248 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 248 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved0 (self);
-#line 967 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_real_reserved1 (SpitPluggable* self)
-{
-}
-
-
-void
-spit_pluggable_reserved1 (SpitPluggable* self)
-{
-#line 249 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 249 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved1 (self);
-#line 984 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_real_reserved2 (SpitPluggable* self)
-{
-}
-
-
-void
-spit_pluggable_reserved2 (SpitPluggable* self)
-{
-#line 250 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 250 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved2 (self);
-#line 1001 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_real_reserved3 (SpitPluggable* self)
-{
-}
-
-
-void
-spit_pluggable_reserved3 (SpitPluggable* self)
-{
-#line 251 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 251 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved3 (self);
-#line 1018 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_real_reserved4 (SpitPluggable* self)
-{
-}
-
-
-void
-spit_pluggable_reserved4 (SpitPluggable* self)
-{
-#line 252 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 252 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved4 (self);
-#line 1035 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_real_reserved5 (SpitPluggable* self)
-{
-}
-
-
-void
-spit_pluggable_reserved5 (SpitPluggable* self)
-{
-#line 253 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 253 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved5 (self);
-#line 1052 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_real_reserved6 (SpitPluggable* self)
-{
-}
-
-
-void
-spit_pluggable_reserved6 (SpitPluggable* self)
-{
-#line 254 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 254 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved6 (self);
-#line 1069 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_real_reserved7 (SpitPluggable* self)
-{
-}
-
-
-void
-spit_pluggable_reserved7 (SpitPluggable* self)
-{
-#line 255 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_PLUGGABLE (self));
-#line 255 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved7 (self);
-#line 1086 "SpitInterfaces.c"
-}
-
-
-static void
-spit_pluggable_base_init (SpitPluggableIface * iface)
-{
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- if (!initialized) {
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- initialized = TRUE;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved0 = spit_pluggable_real_reserved0;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved1 = spit_pluggable_real_reserved1;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved2 = spit_pluggable_real_reserved2;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved3 = spit_pluggable_real_reserved3;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved4 = spit_pluggable_real_reserved4;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved5 = spit_pluggable_real_reserved5;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved6 = spit_pluggable_real_reserved6;
-#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved7 = spit_pluggable_real_reserved7;
-#line 1115 "SpitInterfaces.c"
- }
-}
-
-
-/**
- * A generic interface to all Shotwell plugins.
- *
- * Each plugin in a module needs to implement this interface at a minimum. Extension
- * points may have (and probably will have) specific interface requirements as well.
- */
-GType
-spit_pluggable_get_type (void)
-{
- static volatile gsize spit_pluggable_type_id__volatile = 0;
- if (g_once_init_enter (&spit_pluggable_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPluggableIface), (GBaseInitFunc) spit_pluggable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_pluggable_type_id;
- spit_pluggable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPluggable", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_pluggable_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_pluggable_type_id__volatile, spit_pluggable_type_id);
- }
- return spit_pluggable_type_id__volatile;
-}
-
-
-/**
- * Returns a File object representing the library file (.so/la.) that the plugin was loaded
- * from.
- */
-GFile*
-spit_host_interface_get_module_file (SpitHostInterface* self)
-{
-#line 274 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), NULL);
-#line 274 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_module_file (self);
-#line 1152 "SpitInterfaces.c"
-}
-
-
-/**
- * Get a boolean from a persistent configuration store.
- *
- * @param key The name of the value to be retrieved.
- * @param def The default value (returned if the key has not been previously set).
- *
- * @return The value associated with key, def if not set.
- */
-gboolean
-spit_host_interface_get_config_bool (SpitHostInterface* self,
- const gchar* key,
- gboolean def)
-{
-#line 284 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), FALSE);
-#line 284 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_bool (self, key, def);
-#line 1173 "SpitInterfaces.c"
-}
-
-
-/**
- * Store a boolean in a persistent configuration store.
- *
- * @param key The name of the value to be stored.
- * @param val The value to be stored.
- */
-void
-spit_host_interface_set_config_bool (SpitHostInterface* self,
- const gchar* key,
- gboolean val)
-{
-#line 292 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 292 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_bool (self, key, val);
-#line 1192 "SpitInterfaces.c"
-}
-
-
-/**
- * Get an integer from a persistent configuration store.
- *
- * @param key The name of the value to be retrieved.
- * @param def The default value (returned if the key has not been previously set).
- *
- * @return The value associated with key, def if not set.
- */
-gint
-spit_host_interface_get_config_int (SpitHostInterface* self,
- const gchar* key,
- gint def)
-{
-#line 302 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), 0);
-#line 302 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_int (self, key, def);
-#line 1213 "SpitInterfaces.c"
-}
-
-
-/**
- * Store an integer in a persistent configuration store.
- *
- * @param key The name of the value to be stored.
- * @param val The value to be stored.
- */
-void
-spit_host_interface_set_config_int (SpitHostInterface* self,
- const gchar* key,
- gint val)
-{
-#line 310 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 310 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_int (self, key, val);
-#line 1232 "SpitInterfaces.c"
-}
-
-
-/**
- * Get a string from a persistent configuration store.
- *
- * @param key The name of the value to be retrieved.
- * @param def The default value (returned if the key has not been previously set).
- *
- * @return The value associated with key, def if not set.
- */
-gchar*
-spit_host_interface_get_config_string (SpitHostInterface* self,
- const gchar* key,
- const gchar* def)
-{
-#line 320 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), NULL);
-#line 320 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_string (self, key, def);
-#line 1253 "SpitInterfaces.c"
-}
-
-
-/**
- * Store a string in a persistent configuration store.
- *
- * @param key The name of the value to be stored.
- * @param val The value to be stored.
- */
-void
-spit_host_interface_set_config_string (SpitHostInterface* self,
- const gchar* key,
- const gchar* val)
-{
-#line 328 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 328 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_string (self, key, val);
-#line 1272 "SpitInterfaces.c"
-}
-
-
-/**
- * Get a double from a persistent configuration store.
- *
- * @param key The name of the value to be retrieved.
- * @param def The default value (returned if the key has not been previously set).
- *
- * @return The value associated with key, def if not set.
- */
-gdouble
-spit_host_interface_get_config_double (SpitHostInterface* self,
- const gchar* key,
- gdouble def)
-{
-#line 338 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), 0.0);
-#line 338 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_double (self, key, def);
-#line 1293 "SpitInterfaces.c"
-}
-
-
-/**
- * Store a double in a persistent configuration store.
- *
- * @param key The name of the value to be stored.
- * @param val The value to be stored.
- */
-void
-spit_host_interface_set_config_double (SpitHostInterface* self,
- const gchar* key,
- gdouble val)
-{
-#line 346 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 346 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_double (self, key, val);
-#line 1312 "SpitInterfaces.c"
-}
-
-
-/**
- * Delete the value from the persistent configuration store.
- */
-void
-spit_host_interface_unset_config_key (SpitHostInterface* self,
- const gchar* key)
-{
-#line 351 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 351 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->unset_config_key (self, key);
-#line 1327 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_real_reserved0 (SpitHostInterface* self)
-{
-}
-
-
-void
-spit_host_interface_reserved0 (SpitHostInterface* self)
-{
-#line 356 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 356 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved0 (self);
-#line 1344 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_real_reserved1 (SpitHostInterface* self)
-{
-}
-
-
-void
-spit_host_interface_reserved1 (SpitHostInterface* self)
-{
-#line 357 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 357 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved1 (self);
-#line 1361 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_real_reserved2 (SpitHostInterface* self)
-{
-}
-
-
-void
-spit_host_interface_reserved2 (SpitHostInterface* self)
-{
-#line 358 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 358 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved2 (self);
-#line 1378 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_real_reserved3 (SpitHostInterface* self)
-{
-}
-
-
-void
-spit_host_interface_reserved3 (SpitHostInterface* self)
-{
-#line 359 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 359 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved3 (self);
-#line 1395 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_real_reserved4 (SpitHostInterface* self)
-{
-}
-
-
-void
-spit_host_interface_reserved4 (SpitHostInterface* self)
-{
-#line 360 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 360 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved4 (self);
-#line 1412 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_real_reserved5 (SpitHostInterface* self)
-{
-}
-
-
-void
-spit_host_interface_reserved5 (SpitHostInterface* self)
-{
-#line 361 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 361 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved5 (self);
-#line 1429 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_real_reserved6 (SpitHostInterface* self)
-{
-}
-
-
-void
-spit_host_interface_reserved6 (SpitHostInterface* self)
-{
-#line 362 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 362 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved6 (self);
-#line 1446 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_real_reserved7 (SpitHostInterface* self)
-{
-}
-
-
-void
-spit_host_interface_reserved7 (SpitHostInterface* self)
-{
-#line 363 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- g_return_if_fail (SPIT_IS_HOST_INTERFACE (self));
-#line 363 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved7 (self);
-#line 1463 "SpitInterfaces.c"
-}
-
-
-static void
-spit_host_interface_base_init (SpitHostInterfaceIface * iface)
-{
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- if (!initialized) {
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- initialized = TRUE;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved0 = spit_host_interface_real_reserved0;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved1 = spit_host_interface_real_reserved1;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved2 = spit_host_interface_real_reserved2;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved3 = spit_host_interface_real_reserved3;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved4 = spit_host_interface_real_reserved4;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved5 = spit_host_interface_real_reserved5;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved6 = spit_host_interface_real_reserved6;
-#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala"
- iface->reserved7 = spit_host_interface_real_reserved7;
-#line 1492 "SpitInterfaces.c"
- }
-}
-
-
-/**
- * An interface to common services supplied by the host (Shotwell).
- *
- * Each {@link Pluggable} is offered a HostInterface for needs common to most plugins.
- *
- * Note that
- * a HostInterface is not explicitly handed to the Pluggable through the SPIT interface, but is expected
- * to be offered to the Pluggable through an interface applicable to the extension point. This
- * also allows the extension point to extend HostInterface to offer other services applicable to the
- * type of plugin.
- */
-GType
-spit_host_interface_get_type (void)
-{
- static volatile gsize spit_host_interface_type_id__volatile = 0;
- if (g_once_init_enter (&spit_host_interface_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitHostInterfaceIface), (GBaseInitFunc) spit_host_interface_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_host_interface_type_id;
- spit_host_interface_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitHostInterface", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_host_interface_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_host_interface_type_id__volatile, spit_host_interface_type_id);
- }
- return spit_host_interface_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/plugins/StandardHostInterface.c b/src/plugins/StandardHostInterface.c
deleted file mode 100644
index 4dfc7ed..0000000
--- a/src/plugins/StandardHostInterface.c
+++ /dev/null
@@ -1,737 +0,0 @@
-/* StandardHostInterface.c generated by valac 0.40.4, the Vala compiler
- * generated from StandardHostInterface.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <float.h>
-#include <math.h>
-
-
-#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ())
-#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface))
-#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-
-typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface;
-typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass;
-typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate;
-enum {
- PLUGINS_STANDARD_HOST_INTERFACE_0_PROPERTY,
- PLUGINS_STANDARD_HOST_INTERFACE_NUM_PROPERTIES
-};
-static GParamSpec* plugins_standard_host_interface_properties[PLUGINS_STANDARD_HOST_INTERFACE_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-struct _PluginsStandardHostInterface {
- GObject parent_instance;
- PluginsStandardHostInterfacePrivate * priv;
-};
-
-struct _PluginsStandardHostInterfaceClass {
- GObjectClass parent_class;
-};
-
-struct _PluginsStandardHostInterfacePrivate {
- gchar* config_domain;
- gchar* config_id;
- GFile* module_file;
- SpitPluggableInfo info;
-};
-
-
-static gpointer plugins_standard_host_interface_parent_class = NULL;
-static SpitHostInterfaceIface * plugins_standard_host_interface_spit_host_interface_parent_iface = NULL;
-
-GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST;
-#define PLUGINS_STANDARD_HOST_INTERFACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfacePrivate))
-PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable,
- const gchar* config_domain);
-PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type,
- SpitPluggable* pluggable,
- const gchar* config_domain);
-static gchar* plugins_standard_host_interface_parse_key (const gchar* id);
-GFile* plugins_get_pluggable_module_file (SpitPluggable* pluggable);
-static GFile* plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base);
-static gboolean plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base,
- const gchar* key,
- gboolean def);
-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_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean def);
-static void plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base,
- const gchar* key,
- gboolean val);
-void configuration_facade_set_plugin_bool (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gboolean val);
-static gint plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base,
- const gchar* key,
- gint def);
-gint configuration_facade_get_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint def);
-static void plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base,
- const gchar* key,
- gint val);
-void configuration_facade_set_plugin_int (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gint val);
-static gchar* plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base,
- const gchar* key,
- const gchar* def);
-gchar* configuration_facade_get_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* def);
-static void plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base,
- const gchar* key,
- const gchar* val);
-void configuration_facade_set_plugin_string (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- const gchar* val);
-static gdouble plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base,
- const gchar* key,
- gdouble def);
-gdouble configuration_facade_get_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble def);
-static void plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base,
- const gchar* key,
- gdouble val);
-void configuration_facade_set_plugin_double (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key,
- gdouble val);
-static void plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base,
- const gchar* key);
-void configuration_facade_unset_plugin_key (ConfigurationFacade* self,
- const gchar* domain,
- const gchar* id,
- const gchar* key);
-static void plugins_standard_host_interface_finalize (GObject * obj);
-
-
-PluginsStandardHostInterface*
-plugins_standard_host_interface_construct (GType object_type,
- SpitPluggable* pluggable,
- const gchar* config_domain)
-{
- PluginsStandardHostInterface * self = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- GFile* _tmp3_;
-#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL);
-#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_val_if_fail (config_domain != NULL, NULL);
-#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = (PluginsStandardHostInterface*) g_object_new (object_type, NULL);
-#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = g_strdup (config_domain);
-#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_free0 (self->priv->config_domain);
-#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self->priv->config_domain = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = spit_pluggable_get_id (pluggable);
-#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = plugins_standard_host_interface_parse_key (_tmp1_);
-#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_free0 (self->priv->config_id);
-#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self->priv->config_id = _tmp2_;
-#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = plugins_get_pluggable_module_file (pluggable);
-#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (self->priv->module_file);
-#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self->priv->module_file = _tmp3_;
-#line 19 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- spit_pluggable_get_info (pluggable, &self->priv->info);
-#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return self;
-#line 206 "StandardHostInterface.c"
-}
-
-
-PluginsStandardHostInterface*
-plugins_standard_host_interface_new (SpitPluggable* pluggable,
- const gchar* config_domain)
-{
-#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return plugins_standard_host_interface_construct (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, pluggable, config_domain);
-#line 216 "StandardHostInterface.c"
-}
-
-
-static gchar*
-plugins_standard_host_interface_parse_key (const gchar* id)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- GQuark _tmp2_ = 0U;
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- static GQuark _tmp1_label0 = 0;
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- static GQuark _tmp1_label1 = 0;
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- static GQuark _tmp1_label2 = 0;
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- static GQuark _tmp1_label3 = 0;
-#line 22 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_val_if_fail (id != NULL, NULL);
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = id;
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_);
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("org.yorba.shotwell.publishing.facebook")))) {
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- switch (0) {
-#line 244 "StandardHostInterface.c"
- default:
- {
- gchar* _tmp3_;
-#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = g_strdup ("facebook");
-#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp3_;
-#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 254 "StandardHostInterface.c"
- }
- }
- } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("org.yorba.shotwell.publishing.picasa")))) {
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- switch (0) {
-#line 260 "StandardHostInterface.c"
- default:
- {
- gchar* _tmp4_;
-#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp4_ = g_strdup ("picasa");
-#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp4_;
-#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 270 "StandardHostInterface.c"
- }
- }
- } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("org.yorba.shotwell.publishing.flickr")))) {
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- switch (0) {
-#line 276 "StandardHostInterface.c"
- default:
- {
- gchar* _tmp5_;
-#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp5_ = g_strdup ("flickr");
-#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp5_;
-#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 286 "StandardHostInterface.c"
- }
- }
- } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("org.yorba.shotwell.publishing.youtube")))) {
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- switch (0) {
-#line 292 "StandardHostInterface.c"
- default:
- {
- gchar* _tmp6_;
-#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp6_ = g_strdup ("youtube");
-#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp6_;
-#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 302 "StandardHostInterface.c"
- }
- }
- } else {
-#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- switch (0) {
-#line 308 "StandardHostInterface.c"
- default:
- {
- gchar* _tmp7_;
-#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp7_ = g_strdup (id);
-#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp7_;
-#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 318 "StandardHostInterface.c"
- }
- }
- }
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return self ? g_object_ref (self) : NULL;
-#line 330 "StandardHostInterface.c"
-}
-
-
-static GFile*
-plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base)
-{
- PluginsStandardHostInterface * self;
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 43 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = self->priv->module_file;
-#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 351 "StandardHostInterface.c"
-}
-
-
-static gboolean
-plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base,
- const gchar* key,
- gboolean def)
-{
- PluginsStandardHostInterface * self;
- gboolean result = FALSE;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gboolean _tmp4_;
-#line 47 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 47 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_val_if_fail (key != NULL, FALSE);
-#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp4_ = configuration_facade_get_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def);
-#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp4_;
-#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 387 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base,
- const gchar* key,
- gboolean val)
-{
- PluginsStandardHostInterface * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 51 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 51 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_if_fail (key != NULL);
-#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- configuration_facade_set_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val);
-#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 417 "StandardHostInterface.c"
-}
-
-
-static gint
-plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base,
- const gchar* key,
- gint def)
-{
- PluginsStandardHostInterface * self;
- gint result = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gint _tmp4_;
-#line 55 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 55 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_val_if_fail (key != NULL, 0);
-#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp4_ = configuration_facade_get_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def);
-#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp4_;
-#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 453 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base,
- const gchar* key,
- gint val)
-{
- PluginsStandardHostInterface * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 59 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 59 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_if_fail (key != NULL);
-#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- configuration_facade_set_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val);
-#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 483 "StandardHostInterface.c"
-}
-
-
-static gchar*
-plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base,
- const gchar* key,
- const gchar* def)
-{
- PluginsStandardHostInterface * self;
- gchar* result = NULL;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 63 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 63 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_val_if_fail (key != NULL, NULL);
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp4_ = configuration_facade_get_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def);
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp5_ = _tmp4_;
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp5_;
-#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 522 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base,
- const gchar* key,
- const gchar* val)
-{
- PluginsStandardHostInterface * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 67 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 67 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_if_fail (key != NULL);
-#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- configuration_facade_set_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val);
-#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 552 "StandardHostInterface.c"
-}
-
-
-static gdouble
-plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base,
- const gchar* key,
- gdouble def)
-{
- PluginsStandardHostInterface * self;
- gdouble result = 0.0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gdouble _tmp4_;
-#line 71 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 71 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_val_if_fail (key != NULL, 0.0);
-#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp4_ = configuration_facade_get_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def);
-#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- result = _tmp4_;
-#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- return result;
-#line 588 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base,
- const gchar* key,
- gdouble val)
-{
- PluginsStandardHostInterface * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 75 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 75 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_if_fail (key != NULL);
-#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- configuration_facade_set_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val);
-#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 618 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base,
- const gchar* key)
-{
- PluginsStandardHostInterface * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 79 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 79 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_return_if_fail (key != NULL);
-#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp1_ = _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp2_ = self->priv->config_domain;
-#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _tmp3_ = self->priv->config_id;
-#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- configuration_facade_unset_plugin_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key);
-#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (_tmp1_);
-#line 647 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_class_init (PluginsStandardHostInterfaceClass * klass)
-{
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- plugins_standard_host_interface_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- g_type_class_add_private (klass, sizeof (PluginsStandardHostInterfacePrivate));
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- G_OBJECT_CLASS (klass)->finalize = plugins_standard_host_interface_finalize;
-#line 660 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_spit_host_interface_interface_init (SpitHostInterfaceIface * iface)
-{
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- plugins_standard_host_interface_spit_host_interface_parent_iface = g_type_interface_peek_parent (iface);
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->get_module_file = (GFile* (*) (SpitHostInterface *)) plugins_standard_host_interface_real_get_module_file;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->get_config_bool = (gboolean (*) (SpitHostInterface *, const gchar*, gboolean)) plugins_standard_host_interface_real_get_config_bool;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->set_config_bool = (void (*) (SpitHostInterface *, const gchar*, gboolean)) plugins_standard_host_interface_real_set_config_bool;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->get_config_int = (gint (*) (SpitHostInterface *, const gchar*, gint)) plugins_standard_host_interface_real_get_config_int;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->set_config_int = (void (*) (SpitHostInterface *, const gchar*, gint)) plugins_standard_host_interface_real_set_config_int;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->get_config_string = (gchar* (*) (SpitHostInterface *, const gchar*, const gchar*)) plugins_standard_host_interface_real_get_config_string;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->set_config_string = (void (*) (SpitHostInterface *, const gchar*, const gchar*)) plugins_standard_host_interface_real_set_config_string;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->get_config_double = (gdouble (*) (SpitHostInterface *, const gchar*, gdouble)) plugins_standard_host_interface_real_get_config_double;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->set_config_double = (void (*) (SpitHostInterface *, const gchar*, gdouble)) plugins_standard_host_interface_real_set_config_double;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- iface->unset_config_key = (void (*) (SpitHostInterface *, const gchar*)) plugins_standard_host_interface_real_unset_config_key;
-#line 689 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_instance_init (PluginsStandardHostInterface * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self->priv = PLUGINS_STANDARD_HOST_INTERFACE_GET_PRIVATE (self);
-#line 698 "StandardHostInterface.c"
-}
-
-
-static void
-plugins_standard_host_interface_finalize (GObject * obj)
-{
- PluginsStandardHostInterface * self;
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface);
-#line 10 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_free0 (self->priv->config_domain);
-#line 11 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_free0 (self->priv->config_id);
-#line 12 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- _g_object_unref0 (self->priv->module_file);
-#line 13 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- spit_pluggable_info_destroy (&self->priv->info);
-#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala"
- G_OBJECT_CLASS (plugins_standard_host_interface_parent_class)->finalize (obj);
-#line 718 "StandardHostInterface.c"
-}
-
-
-GType
-plugins_standard_host_interface_get_type (void)
-{
- static volatile gsize plugins_standard_host_interface_type_id__volatile = 0;
- if (g_once_init_enter (&plugins_standard_host_interface_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PluginsStandardHostInterfaceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_standard_host_interface_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsStandardHostInterface), 0, (GInstanceInitFunc) plugins_standard_host_interface_instance_init, NULL };
- static const GInterfaceInfo spit_host_interface_info = { (GInterfaceInitFunc) plugins_standard_host_interface_spit_host_interface_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType plugins_standard_host_interface_type_id;
- plugins_standard_host_interface_type_id = g_type_register_static (G_TYPE_OBJECT, "PluginsStandardHostInterface", &g_define_type_info, 0);
- g_type_add_interface_static (plugins_standard_host_interface_type_id, SPIT_TYPE_HOST_INTERFACE, &spit_host_interface_info);
- g_once_init_leave (&plugins_standard_host_interface_type_id__volatile, plugins_standard_host_interface_type_id);
- }
- return plugins_standard_host_interface_type_id__volatile;
-}
-
-
-
diff --git a/src/plugins/TransitionsInterfaces.c b/src/plugins/TransitionsInterfaces.c
deleted file mode 100644
index 248a2e9..0000000
--- a/src/plugins/TransitionsInterfaces.c
+++ /dev/null
@@ -1,2249 +0,0 @@
-/* TransitionsInterfaces.c generated by valac 0.40.4, the Vala compiler
- * generated from TransitionsInterfaces.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gdk/gdk.h>
-#include <float.h>
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <cairo.h>
-
-
-#define SPIT_TRANSITIONS_TYPE_DIRECTION (spit_transitions_direction_get_type ())
-
-#define SPIT_TRANSITIONS_TYPE_VISUALS (spit_transitions_visuals_get_type ())
-#define SPIT_TRANSITIONS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals))
-#define SPIT_TRANSITIONS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass))
-#define SPIT_TRANSITIONS_IS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_VISUALS))
-#define SPIT_TRANSITIONS_IS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_VISUALS))
-#define SPIT_TRANSITIONS_VISUALS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass))
-
-typedef struct _SpitTransitionsVisuals SpitTransitionsVisuals;
-typedef struct _SpitTransitionsVisualsClass SpitTransitionsVisualsClass;
-typedef struct _SpitTransitionsVisualsPrivate SpitTransitionsVisualsPrivate;
-enum {
- SPIT_TRANSITIONS_VISUALS_0_PROPERTY,
- SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY,
- SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY,
- SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY,
- SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY,
- SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY,
- SPIT_TRANSITIONS_VISUALS_NUM_PROPERTIES
-};
-static GParamSpec* spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define SPIT_TRANSITIONS_TYPE_MOTION (spit_transitions_motion_get_type ())
-#define SPIT_TRANSITIONS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion))
-#define SPIT_TRANSITIONS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass))
-#define SPIT_TRANSITIONS_IS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_MOTION))
-#define SPIT_TRANSITIONS_IS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_MOTION))
-#define SPIT_TRANSITIONS_MOTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass))
-
-typedef struct _SpitTransitionsMotion SpitTransitionsMotion;
-typedef struct _SpitTransitionsMotionClass SpitTransitionsMotionClass;
-typedef struct _SpitTransitionsMotionPrivate SpitTransitionsMotionPrivate;
-enum {
- SPIT_TRANSITIONS_MOTION_0_PROPERTY,
- SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY,
- SPIT_TRANSITIONS_MOTION_FPS_PROPERTY,
- SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY,
- SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY,
- SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY,
- SPIT_TRANSITIONS_MOTION_NUM_PROPERTIES
-};
-static GParamSpec* spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_NUM_PROPERTIES];
-
-#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ())
-#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable))
-#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE))
-#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface))
-
-typedef struct _SpitPluggable SpitPluggable;
-typedef struct _SpitPluggableIface SpitPluggableIface;
-
-#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ())
-typedef struct _SpitPluggableInfo SpitPluggableInfo;
-
-#define SPIT_TRANSITIONS_TYPE_DESCRIPTOR (spit_transitions_descriptor_get_type ())
-#define SPIT_TRANSITIONS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor))
-#define SPIT_TRANSITIONS_IS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR))
-#define SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptorIface))
-
-typedef struct _SpitTransitionsDescriptor SpitTransitionsDescriptor;
-typedef struct _SpitTransitionsDescriptorIface SpitTransitionsDescriptorIface;
-
-#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ())
-#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface))
-#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE))
-#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface))
-
-typedef struct _SpitHostInterface SpitHostInterface;
-typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface;
-
-#define SPIT_TRANSITIONS_TYPE_EFFECT (spit_transitions_effect_get_type ())
-#define SPIT_TRANSITIONS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect))
-#define SPIT_TRANSITIONS_IS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT))
-#define SPIT_TRANSITIONS_EFFECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffectIface))
-
-typedef struct _SpitTransitionsEffect SpitTransitionsEffect;
-typedef struct _SpitTransitionsEffectIface SpitTransitionsEffectIface;
-
-typedef enum {
- SPIT_TRANSITIONS_DIRECTION_LEFT = 0,
- SPIT_TRANSITIONS_DIRECTION_RIGHT = 1,
- SPIT_TRANSITIONS_DIRECTION_FORWARD = SPIT_TRANSITIONS_DIRECTION_LEFT,
- SPIT_TRANSITIONS_DIRECTION_BACKWARD = SPIT_TRANSITIONS_DIRECTION_RIGHT
-} SpitTransitionsDirection;
-
-struct _SpitTransitionsVisuals {
- GObject parent_instance;
- SpitTransitionsVisualsPrivate * priv;
-};
-
-struct _SpitTransitionsVisualsClass {
- GObjectClass parent_class;
- void (*reserved0) (SpitTransitionsVisuals* self);
- void (*reserved1) (SpitTransitionsVisuals* self);
- void (*reserved2) (SpitTransitionsVisuals* self);
- void (*reserved3) (SpitTransitionsVisuals* self);
- void (*reserved4) (SpitTransitionsVisuals* self);
- void (*reserved5) (SpitTransitionsVisuals* self);
- void (*reserved6) (SpitTransitionsVisuals* self);
- void (*reserved7) (SpitTransitionsVisuals* self);
-};
-
-struct _SpitTransitionsVisualsPrivate {
- GdkPixbuf* _from_pixbuf;
- GdkRectangle _from_pos;
- GdkPixbuf* _to_pixbuf;
- GdkRectangle _to_pos;
- GdkRGBA _bg_color;
-};
-
-struct _SpitTransitionsMotion {
- GObject parent_instance;
- SpitTransitionsMotionPrivate * priv;
-};
-
-struct _SpitTransitionsMotionClass {
- GObjectClass parent_class;
- void (*reserved0) (SpitTransitionsMotion* self);
- void (*reserved1) (SpitTransitionsMotion* self);
- void (*reserved2) (SpitTransitionsMotion* self);
- void (*reserved3) (SpitTransitionsMotion* self);
- void (*reserved4) (SpitTransitionsMotion* self);
- void (*reserved5) (SpitTransitionsMotion* self);
- void (*reserved6) (SpitTransitionsMotion* self);
- void (*reserved7) (SpitTransitionsMotion* self);
-};
-
-struct _SpitTransitionsMotionPrivate {
- SpitTransitionsDirection _direction;
- gint _fps;
- gint _duration_msec;
-};
-
-struct _SpitPluggableInfo {
- gchar* version;
- gchar* brief_description;
- gchar* authors;
- gchar* copyright;
- gchar* license;
- gboolean is_license_wordwrapped;
- gchar* website_url;
- gchar* website_name;
- gchar* translators;
- GdkPixbuf** icons;
- gint icons_length1;
-};
-
-struct _SpitPluggableIface {
- GTypeInterface parent_iface;
- gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface);
- const gchar* (*get_id) (SpitPluggable* self);
- const gchar* (*get_pluggable_name) (SpitPluggable* self);
- void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info);
- void (*activation) (SpitPluggable* self, gboolean enabled);
- void (*reserved0) (SpitPluggable* self);
- void (*reserved1) (SpitPluggable* self);
- void (*reserved2) (SpitPluggable* self);
- void (*reserved3) (SpitPluggable* self);
- void (*reserved4) (SpitPluggable* self);
- void (*reserved5) (SpitPluggable* self);
- void (*reserved6) (SpitPluggable* self);
- void (*reserved7) (SpitPluggable* self);
-};
-
-struct _SpitHostInterfaceIface {
- GTypeInterface parent_iface;
- GFile* (*get_module_file) (SpitHostInterface* self);
- gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def);
- void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val);
- gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def);
- void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val);
- gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def);
- void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val);
- gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def);
- void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val);
- void (*unset_config_key) (SpitHostInterface* self, const gchar* key);
- void (*reserved0) (SpitHostInterface* self);
- void (*reserved1) (SpitHostInterface* self);
- void (*reserved2) (SpitHostInterface* self);
- void (*reserved3) (SpitHostInterface* self);
- void (*reserved4) (SpitHostInterface* self);
- void (*reserved5) (SpitHostInterface* self);
- void (*reserved6) (SpitHostInterface* self);
- void (*reserved7) (SpitHostInterface* self);
-};
-
-struct _SpitTransitionsEffectIface {
- GTypeInterface parent_iface;
- void (*get_fps) (SpitTransitionsEffect* self, gint* desired_fps, gint* min_fps);
- void (*start) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
- gboolean (*needs_clear_background) (SpitTransitionsEffect* self);
- void (*paint) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
- void (*advance) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
- void (*cancel) (SpitTransitionsEffect* self);
- void (*reserved0) (SpitTransitionsEffect* self);
- void (*reserved1) (SpitTransitionsEffect* self);
- void (*reserved2) (SpitTransitionsEffect* self);
- void (*reserved3) (SpitTransitionsEffect* self);
- void (*reserved4) (SpitTransitionsEffect* self);
- void (*reserved5) (SpitTransitionsEffect* self);
- void (*reserved6) (SpitTransitionsEffect* self);
- void (*reserved7) (SpitTransitionsEffect* self);
-};
-
-struct _SpitTransitionsDescriptorIface {
- GTypeInterface parent_iface;
- SpitTransitionsEffect* (*create) (SpitTransitionsDescriptor* self, SpitHostInterface* host);
- void (*reserved0) (SpitTransitionsDescriptor* self);
- void (*reserved1) (SpitTransitionsDescriptor* self);
- void (*reserved2) (SpitTransitionsDescriptor* self);
- void (*reserved3) (SpitTransitionsDescriptor* self);
- void (*reserved4) (SpitTransitionsDescriptor* self);
- void (*reserved5) (SpitTransitionsDescriptor* self);
- void (*reserved6) (SpitTransitionsDescriptor* self);
- void (*reserved7) (SpitTransitionsDescriptor* self);
-};
-
-
-static gpointer spit_transitions_visuals_parent_class = NULL;
-static gpointer spit_transitions_motion_parent_class = NULL;
-
-#define SPIT_TRANSITIONS_CURRENT_INTERFACE 0
-GType spit_transitions_direction_get_type (void) G_GNUC_CONST;
-GType spit_transitions_visuals_get_type (void) G_GNUC_CONST;
-#define SPIT_TRANSITIONS_VISUALS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsPrivate))
-SpitTransitionsVisuals* spit_transitions_visuals_new (GdkPixbuf* from_pixbuf,
- GdkRectangle* from_pos,
- GdkPixbuf* to_pixbuf,
- GdkRectangle* to_pos,
- GdkRGBA* bg_color);
-SpitTransitionsVisuals* spit_transitions_visuals_construct (GType object_type,
- GdkPixbuf* from_pixbuf,
- GdkRectangle* from_pos,
- GdkPixbuf* to_pixbuf,
- GdkRectangle* to_pos,
- GdkRGBA* bg_color);
-static void spit_transitions_visuals_set_from_pixbuf (SpitTransitionsVisuals* self,
- GdkPixbuf* value);
-static void spit_transitions_visuals_set_from_pos (SpitTransitionsVisuals* self,
- GdkRectangle * value);
-static void spit_transitions_visuals_set_to_pixbuf (SpitTransitionsVisuals* self,
- GdkPixbuf* value);
-static void spit_transitions_visuals_set_to_pos (SpitTransitionsVisuals* self,
- GdkRectangle * value);
-static void spit_transitions_visuals_set_bg_color (SpitTransitionsVisuals* self,
- GdkRGBA * value);
-void spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self);
-static void spit_transitions_visuals_real_reserved0 (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self);
-static void spit_transitions_visuals_real_reserved1 (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self);
-static void spit_transitions_visuals_real_reserved2 (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self);
-static void spit_transitions_visuals_real_reserved3 (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self);
-static void spit_transitions_visuals_real_reserved4 (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self);
-static void spit_transitions_visuals_real_reserved5 (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self);
-static void spit_transitions_visuals_real_reserved6 (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self);
-static void spit_transitions_visuals_real_reserved7 (SpitTransitionsVisuals* self);
-GdkPixbuf* spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self,
- GdkRectangle * result);
-static gboolean _cairo_rectangle_int_equal (const cairo_rectangle_int_t * s1,
- const cairo_rectangle_int_t * s2);
-GdkPixbuf* spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self);
-void spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self,
- GdkRectangle * result);
-void spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self,
- GdkRGBA * result);
-static gboolean _gdk_rgba_equal (const GdkRGBA * s1,
- const GdkRGBA * s2);
-static void spit_transitions_visuals_finalize (GObject * obj);
-static void _vala_spit_transitions_visuals_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_spit_transitions_visuals_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-GType spit_transitions_motion_get_type (void) G_GNUC_CONST;
-#define SPIT_TRANSITIONS_MOTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionPrivate))
-SpitTransitionsMotion* spit_transitions_motion_new (SpitTransitionsDirection direction,
- gint fps,
- gint duration_msec);
-SpitTransitionsMotion* spit_transitions_motion_construct (GType object_type,
- SpitTransitionsDirection direction,
- gint fps,
- gint duration_msec);
-static void spit_transitions_motion_set_direction (SpitTransitionsMotion* self,
- SpitTransitionsDirection value);
-static void spit_transitions_motion_set_fps (SpitTransitionsMotion* self,
- gint value);
-static void spit_transitions_motion_set_duration_msec (SpitTransitionsMotion* self,
- gint value);
-gdouble spit_transitions_motion_get_alpha (SpitTransitionsMotion* self,
- gint frame_number);
-gint spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self);
-void spit_transitions_motion_reserved0 (SpitTransitionsMotion* self);
-static void spit_transitions_motion_real_reserved0 (SpitTransitionsMotion* self);
-void spit_transitions_motion_reserved1 (SpitTransitionsMotion* self);
-static void spit_transitions_motion_real_reserved1 (SpitTransitionsMotion* self);
-void spit_transitions_motion_reserved2 (SpitTransitionsMotion* self);
-static void spit_transitions_motion_real_reserved2 (SpitTransitionsMotion* self);
-void spit_transitions_motion_reserved3 (SpitTransitionsMotion* self);
-static void spit_transitions_motion_real_reserved3 (SpitTransitionsMotion* self);
-void spit_transitions_motion_reserved4 (SpitTransitionsMotion* self);
-static void spit_transitions_motion_real_reserved4 (SpitTransitionsMotion* self);
-void spit_transitions_motion_reserved5 (SpitTransitionsMotion* self);
-static void spit_transitions_motion_real_reserved5 (SpitTransitionsMotion* self);
-void spit_transitions_motion_reserved6 (SpitTransitionsMotion* self);
-static void spit_transitions_motion_real_reserved6 (SpitTransitionsMotion* self);
-void spit_transitions_motion_reserved7 (SpitTransitionsMotion* self);
-static void spit_transitions_motion_real_reserved7 (SpitTransitionsMotion* self);
-SpitTransitionsDirection spit_transitions_motion_get_direction (SpitTransitionsMotion* self);
-gint spit_transitions_motion_get_fps (SpitTransitionsMotion* self);
-gint spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self);
-gint spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self);
-static void spit_transitions_motion_finalize (GObject * obj);
-static void _vala_spit_transitions_motion_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
-static void _vala_spit_transitions_motion_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
-GType spit_pluggable_info_get_type (void) G_GNUC_CONST;
-SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self);
-void spit_pluggable_info_free (SpitPluggableInfo* self);
-void spit_pluggable_info_copy (const SpitPluggableInfo* self,
- SpitPluggableInfo* dest);
-void spit_pluggable_info_destroy (SpitPluggableInfo* self);
-GType spit_pluggable_get_type (void) G_GNUC_CONST;
-GType spit_host_interface_get_type (void) G_GNUC_CONST;
-GType spit_transitions_effect_get_type (void) G_GNUC_CONST;
-GType spit_transitions_descriptor_get_type (void) G_GNUC_CONST;
-SpitTransitionsEffect* spit_transitions_descriptor_create (SpitTransitionsDescriptor* self,
- SpitHostInterface* host);
-void spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self);
-static void spit_transitions_descriptor_real_reserved0 (SpitTransitionsDescriptor* self);
-void spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self);
-static void spit_transitions_descriptor_real_reserved1 (SpitTransitionsDescriptor* self);
-void spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self);
-static void spit_transitions_descriptor_real_reserved2 (SpitTransitionsDescriptor* self);
-void spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self);
-static void spit_transitions_descriptor_real_reserved3 (SpitTransitionsDescriptor* self);
-void spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self);
-static void spit_transitions_descriptor_real_reserved4 (SpitTransitionsDescriptor* self);
-void spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self);
-static void spit_transitions_descriptor_real_reserved5 (SpitTransitionsDescriptor* self);
-void spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self);
-static void spit_transitions_descriptor_real_reserved6 (SpitTransitionsDescriptor* self);
-void spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self);
-static void spit_transitions_descriptor_real_reserved7 (SpitTransitionsDescriptor* self);
-void spit_transitions_effect_get_fps (SpitTransitionsEffect* self,
- gint* desired_fps,
- gint* min_fps);
-void spit_transitions_effect_start (SpitTransitionsEffect* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion);
-gboolean spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self);
-void spit_transitions_effect_paint (SpitTransitionsEffect* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion,
- cairo_t* ctx,
- gint width,
- gint height,
- gint frame_number);
-void spit_transitions_effect_advance (SpitTransitionsEffect* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion,
- gint frame_number);
-void spit_transitions_effect_cancel (SpitTransitionsEffect* self);
-void spit_transitions_effect_reserved0 (SpitTransitionsEffect* self);
-static void spit_transitions_effect_real_reserved0 (SpitTransitionsEffect* self);
-void spit_transitions_effect_reserved1 (SpitTransitionsEffect* self);
-static void spit_transitions_effect_real_reserved1 (SpitTransitionsEffect* self);
-void spit_transitions_effect_reserved2 (SpitTransitionsEffect* self);
-static void spit_transitions_effect_real_reserved2 (SpitTransitionsEffect* self);
-void spit_transitions_effect_reserved3 (SpitTransitionsEffect* self);
-static void spit_transitions_effect_real_reserved3 (SpitTransitionsEffect* self);
-void spit_transitions_effect_reserved4 (SpitTransitionsEffect* self);
-static void spit_transitions_effect_real_reserved4 (SpitTransitionsEffect* self);
-void spit_transitions_effect_reserved5 (SpitTransitionsEffect* self);
-static void spit_transitions_effect_real_reserved5 (SpitTransitionsEffect* self);
-void spit_transitions_effect_reserved6 (SpitTransitionsEffect* self);
-static void spit_transitions_effect_real_reserved6 (SpitTransitionsEffect* self);
-void spit_transitions_effect_reserved7 (SpitTransitionsEffect* self);
-static void spit_transitions_effect_real_reserved7 (SpitTransitionsEffect* self);
-
-
-/**
- * Direction indicates what direction (animated motion) the {@link Effect} should simulate the
- * images are moving, if appropriate.
- *
- * The direction indicates from what side or corner of the screen the new image should come in from.
- * Thus, a LEFT slide means the current image exits via the left-hand edge of the screen and the
- * new image moves into place from the right-hand edge.
- *
- * UP, DOWN, and diagonals may be added at some point.
- */
-GType
-spit_transitions_direction_get_type (void)
-{
- static volatile gsize spit_transitions_direction_type_id__volatile = 0;
- if (g_once_init_enter (&spit_transitions_direction_type_id__volatile)) {
- static const GEnumValue values[] = {{SPIT_TRANSITIONS_DIRECTION_LEFT, "SPIT_TRANSITIONS_DIRECTION_LEFT", "left"}, {SPIT_TRANSITIONS_DIRECTION_RIGHT, "SPIT_TRANSITIONS_DIRECTION_RIGHT", "right"}, {SPIT_TRANSITIONS_DIRECTION_FORWARD, "SPIT_TRANSITIONS_DIRECTION_FORWARD", "forward"}, {SPIT_TRANSITIONS_DIRECTION_BACKWARD, "SPIT_TRANSITIONS_DIRECTION_BACKWARD", "backward"}, {0, NULL, NULL}};
- GType spit_transitions_direction_type_id;
- spit_transitions_direction_type_id = g_enum_register_static ("SpitTransitionsDirection", values);
- g_once_init_leave (&spit_transitions_direction_type_id__volatile, spit_transitions_direction_type_id);
- }
- return spit_transitions_direction_type_id__volatile;
-}
-
-
-SpitTransitionsVisuals*
-spit_transitions_visuals_construct (GType object_type,
- GdkPixbuf* from_pixbuf,
- GdkRectangle* from_pos,
- GdkPixbuf* to_pixbuf,
- GdkRectangle* to_pos,
- GdkRGBA* bg_color)
-{
- SpitTransitionsVisuals * self = NULL;
- GdkRectangle _tmp0_;
- GdkRectangle _tmp1_;
- GdkRGBA _tmp2_;
-#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail ((from_pixbuf == NULL) || GDK_IS_PIXBUF (from_pixbuf), NULL);
-#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (from_pos != NULL, NULL);
-#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail ((to_pixbuf == NULL) || GDK_IS_PIXBUF (to_pixbuf), NULL);
-#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (to_pos != NULL, NULL);
-#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (bg_color != NULL, NULL);
-#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self = (SpitTransitionsVisuals*) g_object_new (object_type, NULL);
-#line 96 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_from_pixbuf (self, from_pixbuf);
-#line 97 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = *from_pos;
-#line 97 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_from_pos (self, &_tmp0_);
-#line 98 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_to_pixbuf (self, to_pixbuf);
-#line 99 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp1_ = *to_pos;
-#line 99 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_to_pos (self, &_tmp1_);
-#line 100 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp2_ = *bg_color;
-#line 100 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_bg_color (self, &_tmp2_);
-#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return self;
-#line 487 "TransitionsInterfaces.c"
-}
-
-
-SpitTransitionsVisuals*
-spit_transitions_visuals_new (GdkPixbuf* from_pixbuf,
- GdkRectangle* from_pos,
- GdkPixbuf* to_pixbuf,
- GdkRectangle* to_pos,
- GdkRGBA* bg_color)
-{
-#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return spit_transitions_visuals_construct (SPIT_TRANSITIONS_TYPE_VISUALS, from_pixbuf, from_pos, to_pixbuf, to_pos, bg_color);
-#line 500 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_real_reserved0 (SpitTransitionsVisuals* self)
-{
-}
-
-
-void
-spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self)
-{
-#line 106 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 106 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved0 (self);
-#line 517 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_real_reserved1 (SpitTransitionsVisuals* self)
-{
-}
-
-
-void
-spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self)
-{
-#line 107 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 107 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved1 (self);
-#line 534 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_real_reserved2 (SpitTransitionsVisuals* self)
-{
-}
-
-
-void
-spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self)
-{
-#line 108 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 108 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved2 (self);
-#line 551 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_real_reserved3 (SpitTransitionsVisuals* self)
-{
-}
-
-
-void
-spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self)
-{
-#line 109 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 109 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved3 (self);
-#line 568 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_real_reserved4 (SpitTransitionsVisuals* self)
-{
-}
-
-
-void
-spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self)
-{
-#line 110 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 110 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved4 (self);
-#line 585 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_real_reserved5 (SpitTransitionsVisuals* self)
-{
-}
-
-
-void
-spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self)
-{
-#line 111 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 111 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved5 (self);
-#line 602 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_real_reserved6 (SpitTransitionsVisuals* self)
-{
-}
-
-
-void
-spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self)
-{
-#line 112 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 112 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved6 (self);
-#line 619 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_real_reserved7 (SpitTransitionsVisuals* self)
-{
-}
-
-
-void
-spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self)
-{
-#line 113 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 113 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved7 (self);
-#line 636 "TransitionsInterfaces.c"
-}
-
-
-GdkPixbuf*
-spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self)
-{
- GdkPixbuf* result;
- GdkPixbuf* _tmp0_;
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self), NULL);
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_from_pixbuf;
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- result = _tmp0_;
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return result;
-#line 653 "TransitionsInterfaces.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return self ? g_object_ref (self) : NULL;
-#line 662 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_set_from_pixbuf (SpitTransitionsVisuals* self,
- GdkPixbuf* value)
-{
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (spit_transitions_visuals_get_from_pixbuf (self) != value) {
-#line 674 "TransitionsInterfaces.c"
- GdkPixbuf* _tmp0_;
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _g_object_unref0 (self->priv->_from_pixbuf);
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv->_from_pixbuf = _tmp0_;
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY]);
-#line 684 "TransitionsInterfaces.c"
- }
-}
-
-
-void
-spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self,
- GdkRectangle * result)
-{
- GdkRectangle _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_from_pos;
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- *result = _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return;
-#line 702 "TransitionsInterfaces.c"
-}
-
-
-static gboolean
-_cairo_rectangle_int_equal (const cairo_rectangle_int_t * s1,
- const cairo_rectangle_int_t * s2)
-{
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1 == s2) {
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return TRUE;
-#line 714 "TransitionsInterfaces.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1 == NULL) {
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 720 "TransitionsInterfaces.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s2 == NULL) {
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 726 "TransitionsInterfaces.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1->x != s2->x) {
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 732 "TransitionsInterfaces.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1->y != s2->y) {
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 738 "TransitionsInterfaces.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1->width != s2->width) {
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 744 "TransitionsInterfaces.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1->height != s2->height) {
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 750 "TransitionsInterfaces.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return TRUE;
-#line 754 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_set_from_pos (SpitTransitionsVisuals* self,
- GdkRectangle * value)
-{
- GdkRectangle old_value;
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (_cairo_rectangle_int_equal (value, (spit_transitions_visuals_get_from_pos (self, &old_value), &old_value)) != TRUE) {
-#line 767 "TransitionsInterfaces.c"
- GdkRectangle _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = *value;
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv->_from_pos = _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY]);
-#line 775 "TransitionsInterfaces.c"
- }
-}
-
-
-GdkPixbuf*
-spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self)
-{
- GdkPixbuf* result;
- GdkPixbuf* _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self), NULL);
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_to_pixbuf;
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- result = _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return result;
-#line 793 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_set_to_pixbuf (SpitTransitionsVisuals* self,
- GdkPixbuf* value)
-{
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (spit_transitions_visuals_get_to_pixbuf (self) != value) {
-#line 805 "TransitionsInterfaces.c"
- GdkPixbuf* _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = _g_object_ref0 (value);
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _g_object_unref0 (self->priv->_to_pixbuf);
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv->_to_pixbuf = _tmp0_;
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY]);
-#line 815 "TransitionsInterfaces.c"
- }
-}
-
-
-void
-spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self,
- GdkRectangle * result)
-{
- GdkRectangle _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_to_pos;
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- *result = _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return;
-#line 833 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_set_to_pos (SpitTransitionsVisuals* self,
- GdkRectangle * value)
-{
- GdkRectangle old_value;
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (_cairo_rectangle_int_equal (value, (spit_transitions_visuals_get_to_pos (self, &old_value), &old_value)) != TRUE) {
-#line 846 "TransitionsInterfaces.c"
- GdkRectangle _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = *value;
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv->_to_pos = _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY]);
-#line 854 "TransitionsInterfaces.c"
- }
-}
-
-
-void
-spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self,
- GdkRGBA * result)
-{
- GdkRGBA _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_bg_color;
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- *result = _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return;
-#line 872 "TransitionsInterfaces.c"
-}
-
-
-static gboolean
-_gdk_rgba_equal (const GdkRGBA * s1,
- const GdkRGBA * s2)
-{
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1 == s2) {
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return TRUE;
-#line 884 "TransitionsInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1 == NULL) {
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 890 "TransitionsInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s2 == NULL) {
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 896 "TransitionsInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1->red != s2->red) {
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 902 "TransitionsInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1->green != s2->green) {
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 908 "TransitionsInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1->blue != s2->blue) {
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 914 "TransitionsInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (s1->alpha != s2->alpha) {
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return FALSE;
-#line 920 "TransitionsInterfaces.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return TRUE;
-#line 924 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_set_bg_color (SpitTransitionsVisuals* self,
- GdkRGBA * value)
-{
- GdkRGBA old_value;
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self));
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (_gdk_rgba_equal (value, (spit_transitions_visuals_get_bg_color (self, &old_value), &old_value)) != TRUE) {
-#line 937 "TransitionsInterfaces.c"
- GdkRGBA _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = *value;
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv->_bg_color = _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY]);
-#line 945 "TransitionsInterfaces.c"
- }
-}
-
-
-static void
-spit_transitions_visuals_class_init (SpitTransitionsVisualsClass * klass)
-{
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_parent_class = g_type_class_peek_parent (klass);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_type_class_add_private (klass, sizeof (SpitTransitionsVisualsPrivate));
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsVisualsClass *) klass)->reserved0 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved0;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsVisualsClass *) klass)->reserved1 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved1;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsVisualsClass *) klass)->reserved2 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved2;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsVisualsClass *) klass)->reserved3 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved3;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsVisualsClass *) klass)->reserved4 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved4;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsVisualsClass *) klass)->reserved5 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved5;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsVisualsClass *) klass)->reserved6 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved6;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsVisualsClass *) klass)->reserved7 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved7;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_spit_transitions_visuals_get_property;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_spit_transitions_visuals_set_property;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_CLASS (klass)->finalize = spit_transitions_visuals_finalize;
-#line 979 "TransitionsInterfaces.c"
- /**
- * Returns the starting pixbuf (the pixbuf currently on the display).
- *
- * 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_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY] = g_param_spec_object ("from-pixbuf", "from-pixbuf", "from-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 987 "TransitionsInterfaces.c"
- /**
- * Returns the position of the starting pixbuf on the display.
- *
- * 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_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY] = g_param_spec_boxed ("from-pos", "from-pos", "from-pos", gdk_rectangle_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 995 "TransitionsInterfaces.c"
- /**
- * Returns the ending pixbuf (the pixbuf that the transition should result in).
- *
- * 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_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY] = g_param_spec_object ("to-pixbuf", "to-pixbuf", "to-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1003 "TransitionsInterfaces.c"
- /**
- * Returns the position of the ending pixbuf on the display.
- *
- * 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_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY] = g_param_spec_boxed ("to-pos", "to-pos", "to-pos", gdk_rectangle_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1011 "TransitionsInterfaces.c"
- /**
- * Returns the background color of the viewport.
- */
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY] = g_param_spec_boxed ("bg-color", "bg-color", "bg-color", gdk_rgba_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1017 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_instance_init (SpitTransitionsVisuals * self)
-{
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv = SPIT_TRANSITIONS_VISUALS_GET_PRIVATE (self);
-#line 1026 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_visuals_finalize (GObject * obj)
-{
- SpitTransitionsVisuals * self;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals);
-#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _g_object_unref0 (self->priv->_from_pixbuf);
-#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _g_object_unref0 (self->priv->_to_pixbuf);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_CLASS (spit_transitions_visuals_parent_class)->finalize (obj);
-#line 1042 "TransitionsInterfaces.c"
-}
-
-
-/**
- * Visuals contains the pertinent drawing information for the transition that must occur.
- *
- * A Visuals object is supplied to {@link Effect} at the start of the transition and during each
- * call to paint to the screen.
- *
- * Note that if starting with a blank screen, from_pixbuf will be null and from_pos will be
- * zeroed. The transition should be considered to start from a blank screen of the supplied
- * background color.
- *
- * Also note that if transitioning to a blank screen, to_pixbuf will be null and to_pos will be
- * zeroed. Like the prior case, the transition should move toward a blank screen of the background
- * color.
- */
-GType
-spit_transitions_visuals_get_type (void)
-{
- static volatile gsize spit_transitions_visuals_type_id__volatile = 0;
- if (g_once_init_enter (&spit_transitions_visuals_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsVisualsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_transitions_visuals_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitTransitionsVisuals), 0, (GInstanceInitFunc) spit_transitions_visuals_instance_init, NULL };
- GType spit_transitions_visuals_type_id;
- spit_transitions_visuals_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitTransitionsVisuals", &g_define_type_info, 0);
- g_once_init_leave (&spit_transitions_visuals_type_id__volatile, spit_transitions_visuals_type_id);
- }
- return spit_transitions_visuals_type_id__volatile;
-}
-
-
-static void
-_vala_spit_transitions_visuals_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- SpitTransitionsVisuals * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- switch (property_id) {
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_object (value, spit_transitions_visuals_get_from_pixbuf (self));
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY:
-#line 1092 "TransitionsInterfaces.c"
- {
- GdkRectangle boxed;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_get_from_pos (self, &boxed);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_boxed (value, &boxed);
-#line 1099 "TransitionsInterfaces.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_object (value, spit_transitions_visuals_get_to_pixbuf (self));
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY:
-#line 1111 "TransitionsInterfaces.c"
- {
- GdkRectangle boxed;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_get_to_pos (self, &boxed);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_boxed (value, &boxed);
-#line 1118 "TransitionsInterfaces.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY:
-#line 1124 "TransitionsInterfaces.c"
- {
- GdkRGBA boxed;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_get_bg_color (self, &boxed);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_boxed (value, &boxed);
-#line 1131 "TransitionsInterfaces.c"
- }
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 1135 "TransitionsInterfaces.c"
- default:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 1141 "TransitionsInterfaces.c"
- }
-}
-
-
-static void
-_vala_spit_transitions_visuals_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- SpitTransitionsVisuals * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- switch (property_id) {
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_from_pixbuf (self, g_value_get_object (value));
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_from_pos (self, g_value_get_boxed (value));
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_to_pixbuf (self, g_value_get_object (value));
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_to_pos (self, g_value_get_boxed (value));
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_visuals_set_bg_color (self, g_value_get_boxed (value));
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 1186 "TransitionsInterfaces.c"
- default:
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 1192 "TransitionsInterfaces.c"
- }
-}
-
-
-SpitTransitionsMotion*
-spit_transitions_motion_construct (GType object_type,
- SpitTransitionsDirection direction,
- gint fps,
- gint duration_msec)
-{
- SpitTransitionsMotion * self = NULL;
-#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self = (SpitTransitionsMotion*) g_object_new (object_type, NULL);
-#line 158 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_motion_set_direction (self, direction);
-#line 159 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_motion_set_fps (self, fps);
-#line 160 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_motion_set_duration_msec (self, duration_msec);
-#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return self;
-#line 1214 "TransitionsInterfaces.c"
-}
-
-
-SpitTransitionsMotion*
-spit_transitions_motion_new (SpitTransitionsDirection direction,
- gint fps,
- gint duration_msec)
-{
-#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return spit_transitions_motion_construct (SPIT_TRANSITIONS_TYPE_MOTION, direction, fps, duration_msec);
-#line 1225 "TransitionsInterfaces.c"
-}
-
-
-/**
- * Returns a value from 0.0 to 1.0 that represents the percentage of the transition's completion
- * for the specified frame.
- */
-gdouble
-spit_transitions_motion_get_alpha (SpitTransitionsMotion* self,
- gint frame_number)
-{
- gdouble result = 0.0;
- gint _tmp0_;
- gint _tmp1_;
-#line 167 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0.0);
-#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = spit_transitions_motion_get_total_frames (self);
-#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp1_ = _tmp0_;
-#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- result = ((gdouble) frame_number) / ((gdouble) _tmp1_);
-#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return result;
-#line 1250 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_real_reserved0 (SpitTransitionsMotion* self)
-{
-}
-
-
-void
-spit_transitions_motion_reserved0 (SpitTransitionsMotion* self)
-{
-#line 174 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 174 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved0 (self);
-#line 1267 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_real_reserved1 (SpitTransitionsMotion* self)
-{
-}
-
-
-void
-spit_transitions_motion_reserved1 (SpitTransitionsMotion* self)
-{
-#line 175 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 175 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved1 (self);
-#line 1284 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_real_reserved2 (SpitTransitionsMotion* self)
-{
-}
-
-
-void
-spit_transitions_motion_reserved2 (SpitTransitionsMotion* self)
-{
-#line 176 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 176 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved2 (self);
-#line 1301 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_real_reserved3 (SpitTransitionsMotion* self)
-{
-}
-
-
-void
-spit_transitions_motion_reserved3 (SpitTransitionsMotion* self)
-{
-#line 177 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 177 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved3 (self);
-#line 1318 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_real_reserved4 (SpitTransitionsMotion* self)
-{
-}
-
-
-void
-spit_transitions_motion_reserved4 (SpitTransitionsMotion* self)
-{
-#line 178 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 178 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved4 (self);
-#line 1335 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_real_reserved5 (SpitTransitionsMotion* self)
-{
-}
-
-
-void
-spit_transitions_motion_reserved5 (SpitTransitionsMotion* self)
-{
-#line 179 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 179 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved5 (self);
-#line 1352 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_real_reserved6 (SpitTransitionsMotion* self)
-{
-}
-
-
-void
-spit_transitions_motion_reserved6 (SpitTransitionsMotion* self)
-{
-#line 180 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 180 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved6 (self);
-#line 1369 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_real_reserved7 (SpitTransitionsMotion* self)
-{
-}
-
-
-void
-spit_transitions_motion_reserved7 (SpitTransitionsMotion* self)
-{
-#line 181 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 181 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved7 (self);
-#line 1386 "TransitionsInterfaces.c"
-}
-
-
-SpitTransitionsDirection
-spit_transitions_motion_get_direction (SpitTransitionsMotion* self)
-{
- SpitTransitionsDirection result;
- SpitTransitionsDirection _tmp0_;
-#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0);
-#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_direction;
-#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- result = _tmp0_;
-#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return result;
-#line 1403 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_set_direction (SpitTransitionsMotion* self,
- SpitTransitionsDirection value)
-{
-#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (spit_transitions_motion_get_direction (self) != value) {
-#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv->_direction = value;
-#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY]);
-#line 1419 "TransitionsInterfaces.c"
- }
-}
-
-
-gint
-spit_transitions_motion_get_fps (SpitTransitionsMotion* self)
-{
- gint result;
- gint _tmp0_;
-#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0);
-#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_fps;
-#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- result = _tmp0_;
-#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return result;
-#line 1437 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_set_fps (SpitTransitionsMotion* self,
- gint value)
-{
-#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (spit_transitions_motion_get_fps (self) != value) {
-#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv->_fps = value;
-#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_FPS_PROPERTY]);
-#line 1453 "TransitionsInterfaces.c"
- }
-}
-
-
-gint
-spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self)
-{
- gint result;
- gint _tmp0_;
-#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0);
-#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_duration_msec;
-#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- result = _tmp0_;
-#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return result;
-#line 1471 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_set_duration_msec (SpitTransitionsMotion* self,
- gint value)
-{
-#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self));
-#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (spit_transitions_motion_get_duration_msec (self) != value) {
-#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv->_duration_msec = value;
-#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY]);
-#line 1487 "TransitionsInterfaces.c"
- }
-}
-
-
-gint
-spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self)
-{
- gint result;
- gint _tmp0_;
- gint _tmp1_;
-#line 143 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0);
-#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_fps;
-#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp1_ = self->priv->_duration_msec;
-#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- result = (gint) (((gdouble) _tmp0_) * (((gdouble) _tmp1_) / 1000.0));
-#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return result;
-#line 1508 "TransitionsInterfaces.c"
-}
-
-
-gint
-spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self)
-{
- gint result;
- gint _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0);
-#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- _tmp0_ = self->priv->_fps;
-#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- result = (gint) (1000.0 / ((gdouble) _tmp0_));
-#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return result;
-#line 1525 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_class_init (SpitTransitionsMotionClass * klass)
-{
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_motion_parent_class = g_type_class_peek_parent (klass);
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_type_class_add_private (klass, sizeof (SpitTransitionsMotionPrivate));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsMotionClass *) klass)->reserved0 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved0;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsMotionClass *) klass)->reserved1 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved1;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsMotionClass *) klass)->reserved2 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved2;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsMotionClass *) klass)->reserved3 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved3;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsMotionClass *) klass)->reserved4 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved4;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsMotionClass *) klass)->reserved5 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved5;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsMotionClass *) klass)->reserved6 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved6;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- ((SpitTransitionsMotionClass *) klass)->reserved7 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved7;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_CLASS (klass)->get_property = _vala_spit_transitions_motion_get_property;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_CLASS (klass)->set_property = _vala_spit_transitions_motion_set_property;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_CLASS (klass)->finalize = spit_transitions_motion_finalize;
-#line 1558 "TransitionsInterfaces.c"
- /**
- * Returns the direction the transition should occur in (if pertinent to the {@link Effect}.
- */
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY] = g_param_spec_enum ("direction", "direction", "direction", SPIT_TRANSITIONS_TYPE_DIRECTION, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1564 "TransitionsInterfaces.c"
- /**
- * Returns the frames per second of the {@link Effect}.
- */
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_FPS_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_FPS_PROPERTY] = g_param_spec_int ("fps", "fps", "fps", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1570 "TransitionsInterfaces.c"
- /**
- * Returns the amount of time the transition should take (in milliseconds).
- */
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY] = g_param_spec_int ("duration-msec", "duration-msec", "duration-msec", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1576 "TransitionsInterfaces.c"
- /**
- * Returns the number of frames that should be required to perform the transition in the
- * expected {@link duration_msec}.
- */
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY] = g_param_spec_int ("total-frames", "total-frames", "total-frames", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1583 "TransitionsInterfaces.c"
- /**
- * Returns the approximate time between each frame draw (in milliseconds).
- */
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY] = g_param_spec_int ("tick-msec", "tick-msec", "tick-msec", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
-#line 1589 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_instance_init (SpitTransitionsMotion * self)
-{
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self->priv = SPIT_TRANSITIONS_MOTION_GET_PRIVATE (self);
-#line 1598 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_motion_finalize (GObject * obj)
-{
- SpitTransitionsMotion * self;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion);
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_CLASS (spit_transitions_motion_parent_class)->finalize (obj);
-#line 1610 "TransitionsInterfaces.c"
-}
-
-
-/**
- * Motion contains all the pertinent information regarding the animation of the transition.
- *
- * Some of Motion's information may not apply to a transition effect (such as Direction for a
- * fade effect).
- */
-GType
-spit_transitions_motion_get_type (void)
-{
- static volatile gsize spit_transitions_motion_type_id__volatile = 0;
- if (g_once_init_enter (&spit_transitions_motion_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsMotionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_transitions_motion_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitTransitionsMotion), 0, (GInstanceInitFunc) spit_transitions_motion_instance_init, NULL };
- GType spit_transitions_motion_type_id;
- spit_transitions_motion_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitTransitionsMotion", &g_define_type_info, 0);
- g_once_init_leave (&spit_transitions_motion_type_id__volatile, spit_transitions_motion_type_id);
- }
- return spit_transitions_motion_type_id__volatile;
-}
-
-
-static void
-_vala_spit_transitions_motion_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
-{
- SpitTransitionsMotion * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion);
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- switch (property_id) {
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_enum (value, spit_transitions_motion_get_direction (self));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_MOTION_FPS_PROPERTY:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_int (value, spit_transitions_motion_get_fps (self));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_int (value, spit_transitions_motion_get_duration_msec (self));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_int (value, spit_transitions_motion_get_total_frames (self));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_value_set_int (value, spit_transitions_motion_get_tick_msec (self));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 1674 "TransitionsInterfaces.c"
- default:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 1680 "TransitionsInterfaces.c"
- }
-}
-
-
-static void
-_vala_spit_transitions_motion_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
-{
- SpitTransitionsMotion * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion);
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- switch (property_id) {
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_motion_set_direction (self, g_value_get_enum (value));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_MOTION_FPS_PROPERTY:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_motion_set_fps (self, g_value_get_int (value));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- case SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- spit_transitions_motion_set_duration_msec (self, g_value_get_int (value));
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 1713 "TransitionsInterfaces.c"
- default:
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- break;
-#line 1719 "TransitionsInterfaces.c"
- }
-}
-
-
-/**
- * Returns an instance of the {@link Effect} this descriptor represents.
- */
-SpitTransitionsEffect*
-spit_transitions_descriptor_create (SpitTransitionsDescriptor* self,
- SpitHostInterface* host)
-{
-#line 191 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self), NULL);
-#line 191 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->create (self, host);
-#line 1735 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_real_reserved0 (SpitTransitionsDescriptor* self)
-{
-}
-
-
-void
-spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self)
-{
-#line 196 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self));
-#line 196 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved0 (self);
-#line 1752 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_real_reserved1 (SpitTransitionsDescriptor* self)
-{
-}
-
-
-void
-spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self)
-{
-#line 197 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self));
-#line 197 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved1 (self);
-#line 1769 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_real_reserved2 (SpitTransitionsDescriptor* self)
-{
-}
-
-
-void
-spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self)
-{
-#line 198 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self));
-#line 198 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved2 (self);
-#line 1786 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_real_reserved3 (SpitTransitionsDescriptor* self)
-{
-}
-
-
-void
-spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self)
-{
-#line 199 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self));
-#line 199 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved3 (self);
-#line 1803 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_real_reserved4 (SpitTransitionsDescriptor* self)
-{
-}
-
-
-void
-spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self)
-{
-#line 200 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self));
-#line 200 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved4 (self);
-#line 1820 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_real_reserved5 (SpitTransitionsDescriptor* self)
-{
-}
-
-
-void
-spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self)
-{
-#line 201 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self));
-#line 201 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved5 (self);
-#line 1837 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_real_reserved6 (SpitTransitionsDescriptor* self)
-{
-}
-
-
-void
-spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self)
-{
-#line 202 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self));
-#line 202 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved6 (self);
-#line 1854 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_real_reserved7 (SpitTransitionsDescriptor* self)
-{
-}
-
-
-void
-spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self)
-{
-#line 203 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self));
-#line 203 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved7 (self);
-#line 1871 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_descriptor_base_init (SpitTransitionsDescriptorIface * iface)
-{
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (!initialized) {
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- initialized = TRUE;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved0 = spit_transitions_descriptor_real_reserved0;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved1 = spit_transitions_descriptor_real_reserved1;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved2 = spit_transitions_descriptor_real_reserved2;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved3 = spit_transitions_descriptor_real_reserved3;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved4 = spit_transitions_descriptor_real_reserved4;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved5 = spit_transitions_descriptor_real_reserved5;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved6 = spit_transitions_descriptor_real_reserved6;
-#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved7 = spit_transitions_descriptor_real_reserved7;
-#line 1900 "TransitionsInterfaces.c"
- }
-}
-
-
-/**
- * A Descriptor offers a factory method for creating {@link Effect} instances.
- */
-GType
-spit_transitions_descriptor_get_type (void)
-{
- static volatile gsize spit_transitions_descriptor_type_id__volatile = 0;
- if (g_once_init_enter (&spit_transitions_descriptor_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsDescriptorIface), (GBaseInitFunc) spit_transitions_descriptor_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_transitions_descriptor_type_id;
- spit_transitions_descriptor_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitTransitionsDescriptor", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_transitions_descriptor_type_id, G_TYPE_OBJECT);
- g_type_interface_add_prerequisite (spit_transitions_descriptor_type_id, SPIT_TYPE_PLUGGABLE);
- g_once_init_leave (&spit_transitions_descriptor_type_id__volatile, spit_transitions_descriptor_type_id);
- }
- return spit_transitions_descriptor_type_id__volatile;
-}
-
-
-/**
- * Returns frames per second (FPS) information for this effect.
- *
- * If the min_fps is not met, the Effect may be cancelled or the host will skip ahead.
- *
- * @param desired_fps The desired FPS of the transition. Return zero if no
- * transition is to occur (instantaneous or null transition).
- * @param min_fps The minimum FPS before the effect is consider "ruined".
- * Return zero if any FPS is acceptable.
- */
-void
-spit_transitions_effect_get_fps (SpitTransitionsEffect* self,
- gint* desired_fps,
- gint* min_fps)
-{
-#line 240 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 240 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->get_fps (self, desired_fps, min_fps);
-#line 1943 "TransitionsInterfaces.c"
-}
-
-
-/**
- * Called when the effect is starting.
- *
- * All state should be reset. The frame number, which is not supplied, is one.
- */
-void
-spit_transitions_effect_start (SpitTransitionsEffect* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion)
-{
-#line 247 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 247 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->start (self, visuals, motion);
-#line 1961 "TransitionsInterfaces.c"
-}
-
-
-/**
- * Return true if the Effect needs the background cleared prior to calling {@link paint}.
- */
-gboolean
-spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self)
-{
-#line 252 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self), FALSE);
-#line 252 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- return SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->needs_clear_background (self);
-#line 1975 "TransitionsInterfaces.c"
-}
-
-
-/**
- * Called when the effect needs to paint (i.e. an expose or draw event has occurred).
- *
- * This call should ''not'' advance the state of the effect (i.e. it may be called more than
- * once for the same frame).
- *
- * @param ctx The Cairo context the Effect should use to paint the transition.
- * @param width The width (in pixels) of the Cairo surface.
- * @param height The height (in pixels) of the Cairo surface.
- * @param frame_number The ''one-based'' frame being drawn.
- */
-void
-spit_transitions_effect_paint (SpitTransitionsEffect* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion,
- cairo_t* ctx,
- gint width,
- gint height,
- gint frame_number)
-{
-#line 265 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 265 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->paint (self, visuals, motion, ctx, width, height, frame_number);
-#line 2003 "TransitionsInterfaces.c"
-}
-
-
-/**
- * Called to notify the effect that the state of the transition should advance to the specified
- * frame number.
- *
- * Note: There is no guarantee frame numbers will be consecutive between calls
- * to next, especially if the transition clock is attempting to catch up.
- *
- * @param frame_number The ''one-based'' frame being advanced to.
- */
-void
-spit_transitions_effect_advance (SpitTransitionsEffect* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion,
- gint frame_number)
-{
-#line 277 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 277 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->advance (self, visuals, motion, frame_number);
-#line 2026 "TransitionsInterfaces.c"
-}
-
-
-/**
- * Called if the Effect should halt the transition.
- *
- * It only needs to reset state if {@link start} is called again.
- */
-void
-spit_transitions_effect_cancel (SpitTransitionsEffect* self)
-{
-#line 284 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 284 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->cancel (self);
-#line 2042 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_real_reserved0 (SpitTransitionsEffect* self)
-{
-}
-
-
-void
-spit_transitions_effect_reserved0 (SpitTransitionsEffect* self)
-{
-#line 289 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 289 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved0 (self);
-#line 2059 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_real_reserved1 (SpitTransitionsEffect* self)
-{
-}
-
-
-void
-spit_transitions_effect_reserved1 (SpitTransitionsEffect* self)
-{
-#line 290 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 290 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved1 (self);
-#line 2076 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_real_reserved2 (SpitTransitionsEffect* self)
-{
-}
-
-
-void
-spit_transitions_effect_reserved2 (SpitTransitionsEffect* self)
-{
-#line 291 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 291 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved2 (self);
-#line 2093 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_real_reserved3 (SpitTransitionsEffect* self)
-{
-}
-
-
-void
-spit_transitions_effect_reserved3 (SpitTransitionsEffect* self)
-{
-#line 292 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 292 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved3 (self);
-#line 2110 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_real_reserved4 (SpitTransitionsEffect* self)
-{
-}
-
-
-void
-spit_transitions_effect_reserved4 (SpitTransitionsEffect* self)
-{
-#line 293 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 293 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved4 (self);
-#line 2127 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_real_reserved5 (SpitTransitionsEffect* self)
-{
-}
-
-
-void
-spit_transitions_effect_reserved5 (SpitTransitionsEffect* self)
-{
-#line 294 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 294 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved5 (self);
-#line 2144 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_real_reserved6 (SpitTransitionsEffect* self)
-{
-}
-
-
-void
-spit_transitions_effect_reserved6 (SpitTransitionsEffect* self)
-{
-#line 295 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 295 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved6 (self);
-#line 2161 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_real_reserved7 (SpitTransitionsEffect* self)
-{
-}
-
-
-void
-spit_transitions_effect_reserved7 (SpitTransitionsEffect* self)
-{
-#line 296 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self));
-#line 296 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved7 (self);
-#line 2178 "TransitionsInterfaces.c"
-}
-
-
-static void
-spit_transitions_effect_base_init (SpitTransitionsEffectIface * iface)
-{
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- static gboolean initialized = FALSE;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- if (!initialized) {
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- initialized = TRUE;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved0 = spit_transitions_effect_real_reserved0;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved1 = spit_transitions_effect_real_reserved1;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved2 = spit_transitions_effect_real_reserved2;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved3 = spit_transitions_effect_real_reserved3;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved4 = spit_transitions_effect_real_reserved4;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved5 = spit_transitions_effect_real_reserved5;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved6 = spit_transitions_effect_real_reserved6;
-#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala"
- iface->reserved7 = spit_transitions_effect_real_reserved7;
-#line 2207 "TransitionsInterfaces.c"
- }
-}
-
-
-/**
- * An Effect represents an interstitial effect that is used to transition the display from one
- * image to another.
- *
- * An Effect must hold state so that it knows what it should be drawn at any call to {@link paint}
- * (which is called regularly during a transition). That is, it should be able to draw any frame of
- * the transition at any time. The same frame may need to be drawn multiple times, or the host
- * may skip ahead and ask for a frame well ahead of the last requested one.
- *
- * ''Frame numbers are one-based throughout this interface''. This is because the initial state (the
- * blank viewport or the starting pixbuf) is frame zero. The Effect is never called to paint this
- * frame. The Effect is also not called to paint the final frame (a blank viewport or the ending
- * pixbuf).
- *
- * If the Effect uses background threads for its work, it should use the appropriate primitives
- * for critical sections. All calls to this interface will be from the context of the main UI
- * thread. ''None of these calls should block.''
- *
- * If the Details object needs to be held by the Effect, its reference to it should be dropped at
- * the end of the cycle (or shortly thereafter).
- *
- * An instance may be reused and should be prepared for restarts.
- */
-GType
-spit_transitions_effect_get_type (void)
-{
- static volatile gsize spit_transitions_effect_type_id__volatile = 0;
- if (g_once_init_enter (&spit_transitions_effect_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsEffectIface), (GBaseInitFunc) spit_transitions_effect_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType spit_transitions_effect_type_id;
- spit_transitions_effect_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitTransitionsEffect", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (spit_transitions_effect_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&spit_transitions_effect_type_id__volatile, spit_transitions_effect_type_id);
- }
- return spit_transitions_effect_type_id__volatile;
-}
-
-
-
diff --git a/src/publishing/APIGlue.c b/src/publishing/APIGlue.c
deleted file mode 100644
index 66f79d9..0000000
--- a/src/publishing/APIGlue.c
+++ /dev/null
@@ -1,1504 +0,0 @@
-/* APIGlue.c generated by valac 0.40.4, the Vala compiler
- * generated from APIGlue.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gio/gio.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-
-
-#define PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (publishing_glue_media_source_publishable_wrapper_get_type ())
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper))
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass))
-#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER))
-#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER))
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass))
-
-typedef struct _PublishingGlueMediaSourcePublishableWrapper PublishingGlueMediaSourcePublishableWrapper;
-typedef struct _PublishingGlueMediaSourcePublishableWrapperClass PublishingGlueMediaSourcePublishableWrapperClass;
-typedef struct _PublishingGlueMediaSourcePublishableWrapperPrivate PublishingGlueMediaSourcePublishableWrapperPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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;
-enum {
- PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_0_PROPERTY,
- PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_NUM_PROPERTIES
-};
-static GParamSpec* publishing_glue_media_source_publishable_wrapper_properties[PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#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_SCALING (scaling_get_type ())
-
-#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-typedef struct _Scaling Scaling;
-
-#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
-
-#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-struct _PublishingGlueMediaSourcePublishableWrapper {
- GObject parent_instance;
- PublishingGlueMediaSourcePublishableWrapperPrivate * priv;
-};
-
-struct _PublishingGlueMediaSourcePublishableWrapperClass {
- GObjectClass parent_class;
-};
-
-struct _PublishingGlueMediaSourcePublishableWrapperPrivate {
- MediaSource* wrapped;
- GFile* serialized_file;
- GeeMap* param_string;
-};
-
-typedef enum {
- SCALE_CONSTRAINT_ORIGINAL,
- SCALE_CONSTRAINT_DIMENSIONS,
- SCALE_CONSTRAINT_WIDTH,
- SCALE_CONSTRAINT_HEIGHT,
- SCALE_CONSTRAINT_FILL_VIEWPORT
-} ScaleConstraint;
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Scaling {
- ScaleConstraint constraint;
- gint scale;
- Dimensions viewport;
- gboolean scale_up;
-};
-
-typedef enum {
- JPEG_QUALITY_LOW = 50,
- JPEG_QUALITY_MEDIUM = 75,
- JPEG_QUALITY_HIGH = 90,
- JPEG_QUALITY_MAXIMUM = 100
-} JpegQuality;
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-
-static gpointer publishing_glue_media_source_publishable_wrapper_parent_class = NULL;
-static gint publishing_glue_media_source_publishable_wrapper_name_ticker;
-static gint publishing_glue_media_source_publishable_wrapper_name_ticker = 0;
-extern TagSourceCollection* tag_global;
-static SpitPublishingPublishableIface * publishing_glue_media_source_publishable_wrapper_spit_publishing_publishable_parent_iface = NULL;
-
-GType publishing_glue_media_source_publishable_wrapper_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperPrivate))
-PublishingGlueMediaSourcePublishableWrapper* publishing_glue_media_source_publishable_wrapper_new (MediaSource* to_wrap);
-PublishingGlueMediaSourcePublishableWrapper* publishing_glue_media_source_publishable_wrapper_construct (GType object_type,
- MediaSource* to_wrap);
-static void publishing_glue_media_source_publishable_wrapper_setup_parameters (PublishingGlueMediaSourcePublishableWrapper* self);
-void publishing_glue_media_source_publishable_wrapper_clean_up (PublishingGlueMediaSourcePublishableWrapper* self);
-gchar* media_source_get_basename (MediaSource* self);
-gchar* media_source_get_title (MediaSource* self);
-gchar* media_source_get_comment (MediaSource* self);
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-Event* media_source_get_event (MediaSource* self);
-gchar* event_source_get_comment (EventSource* self);
-GFile* publishing_glue_media_source_publishable_wrapper_serialize_for_publishing (PublishingGlueMediaSourcePublishableWrapper* self,
- gint content_major_axis,
- gboolean strip_metadata,
- GError** error);
-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;
-GFile* app_dirs_get_temp_dir (void);
-gchar* data_source_get_source_id (DataSource* self);
-GType scaling_get_type (void) G_GNUC_CONST;
-GType scale_constraint_get_type (void) G_GNUC_CONST;
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-Scaling* scaling_dup (const Scaling* self);
-void scaling_free (Scaling* self);
-void scaling_for_best_fit (gint pixels,
- gboolean scale_up,
- Scaling* result);
-void scaling_for_original (Scaling* result);
-GType jpeg_quality_get_type (void) G_GNUC_CONST;
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-void photo_export (Photo* self,
- GFile* dest_file,
- Scaling* scaling,
- JpegQuality quality,
- PhotoFileFormat export_format,
- gboolean direct_copy_unmodified,
- gboolean export_metadata,
- GError** error);
-gchar* data_object_get_name (DataObject* self);
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-GFile* media_source_get_file (MediaSource* self);
-void video_export (Video* self,
- GFile* dest_file,
- GError** error);
-static gchar* publishing_glue_media_source_publishable_wrapper_real_get_publishing_name (SpitPublishingPublishable* base);
-static gchar* publishing_glue_media_source_publishable_wrapper_real_get_param_string (SpitPublishingPublishable* base,
- const gchar* name);
-static gchar** publishing_glue_media_source_publishable_wrapper_real_get_publishing_keywords (SpitPublishingPublishable* base,
- int* result_length1);
-GType tag_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-GeeSortedSet* tag_source_collection_fetch_sorted_for_source (TagSourceCollection* self,
- MediaSource* photo);
-static void _vala_array_add63 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static gchar** _vala_array_dup20 (gchar** self,
- int length);
-static SpitPublishingPublisherMediaType publishing_glue_media_source_publishable_wrapper_real_get_media_type (SpitPublishingPublishable* base);
-static GFile* publishing_glue_media_source_publishable_wrapper_real_get_serialized_file (SpitPublishingPublishable* base);
-static GDateTime* publishing_glue_media_source_publishable_wrapper_real_get_exposure_date_time (SpitPublishingPublishable* base);
-time_t media_source_get_exposure_time (MediaSource* self);
-static void publishing_glue_media_source_publishable_wrapper_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 gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 16 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return self ? g_object_ref (self) : NULL;
-#line 388 "APIGlue.c"
-}
-
-
-PublishingGlueMediaSourcePublishableWrapper*
-publishing_glue_media_source_publishable_wrapper_construct (GType object_type,
- MediaSource* to_wrap)
-{
- PublishingGlueMediaSourcePublishableWrapper * self = NULL;
- MediaSource* _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (to_wrap), NULL);
-#line 15 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self = (PublishingGlueMediaSourcePublishableWrapper*) g_object_new (object_type, NULL);
-#line 16 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = _g_object_ref0 (to_wrap);
-#line 16 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (self->priv->wrapped);
-#line 16 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self->priv->wrapped = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- publishing_glue_media_source_publishable_wrapper_setup_parameters (self);
-#line 15 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return self;
-#line 412 "APIGlue.c"
-}
-
-
-PublishingGlueMediaSourcePublishableWrapper*
-publishing_glue_media_source_publishable_wrapper_new (MediaSource* to_wrap)
-{
-#line 15 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return publishing_glue_media_source_publishable_wrapper_construct (PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, to_wrap);
-#line 421 "APIGlue.c"
-}
-
-
-void
-publishing_glue_media_source_publishable_wrapper_clean_up (PublishingGlueMediaSourcePublishableWrapper* self)
-{
- GFile* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GError * _inner_error_ = NULL;
-#line 20 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_return_if_fail (PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (self));
-#line 21 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = self->priv->serialized_file;
-#line 21 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (_tmp0_ == NULL) {
-#line 22 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return;
-#line 441 "APIGlue.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = self->priv->serialized_file;
-#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp3_ = _tmp2_;
-#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_debug ("APIGlue.vala:24: cleaning up temporary publishing file '%s'.", _tmp3_);
-#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp3_);
-#line 453 "APIGlue.c"
- {
- GFile* _tmp4_;
-#line 27 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp4_ = self->priv->serialized_file;
-#line 27 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_file_delete (_tmp4_, NULL, &_inner_error_);
-#line 27 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 462 "APIGlue.c"
- goto __catch43_g_error;
- }
- }
- goto __finally43;
- __catch43_g_error:
- {
- GError* err = NULL;
- GFile* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- err = _inner_error_;
-#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _inner_error_ = NULL;
-#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp5_ = self->priv->serialized_file;
-#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp6_ = g_file_get_path (_tmp5_);
-#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp7_ = _tmp6_;
-#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_warning ("APIGlue.vala:29: couldn't delete temporary publishing file '%s'.", _tmp7_);
-#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp7_);
-#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_error_free0 (err);
-#line 489 "APIGlue.c"
- }
- __finally43:
-#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"
- 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 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_clear_error (&_inner_error_);
-#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return;
-#line 500 "APIGlue.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (self->priv->serialized_file);
-#line 32 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self->priv->serialized_file = NULL;
-#line 506 "APIGlue.c"
-}
-
-
-static void
-publishing_glue_media_source_publishable_wrapper_setup_parameters (PublishingGlueMediaSourcePublishableWrapper* self)
-{
- GeeMap* _tmp0_;
- MediaSource* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GeeMap* _tmp4_;
- MediaSource* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- GeeMap* _tmp8_;
- MediaSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- MediaSource* _tmp12_;
- Event* _tmp13_;
- Event* _tmp14_;
- gboolean _tmp15_;
-#line 35 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_return_if_fail (PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (self));
-#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = self->priv->param_string;
-#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = self->priv->wrapped;
-#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp2_ = media_source_get_basename (_tmp1_);
-#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp3_ = _tmp2_;
-#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- gee_map_set (_tmp0_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME, _tmp3_);
-#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp3_);
-#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp4_ = self->priv->param_string;
-#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp5_ = self->priv->wrapped;
-#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp6_ = media_source_get_title (_tmp5_);
-#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp7_ = _tmp6_;
-#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- gee_map_set (_tmp4_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE, _tmp7_);
-#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp7_);
-#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp8_ = self->priv->param_string;
-#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp9_ = self->priv->wrapped;
-#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp10_ = media_source_get_comment (_tmp9_);
-#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp11_ = _tmp10_;
-#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- gee_map_set (_tmp8_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT, _tmp11_);
-#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp11_);
-#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp12_ = self->priv->wrapped;
-#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp13_ = media_source_get_event (_tmp12_);
-#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp14_ = _tmp13_;
-#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp15_ = _tmp14_ != NULL;
-#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (_tmp14_);
-#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (_tmp15_) {
-#line 579 "APIGlue.c"
- GeeMap* _tmp16_;
- MediaSource* _tmp17_;
- Event* _tmp18_;
- Event* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp16_ = self->priv->param_string;
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp17_ = self->priv->wrapped;
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp18_ = media_source_get_event (_tmp17_);
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp19_ = _tmp18_;
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp20_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_EVENT_SOURCE, EventSource));
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp21_ = _tmp20_;
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- gee_map_set (_tmp16_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT, _tmp21_);
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp21_);
-#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (_tmp19_);
-#line 604 "APIGlue.c"
- } else {
- GeeMap* _tmp22_;
-#line 43 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp22_ = self->priv->param_string;
-#line 43 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- gee_map_set (_tmp22_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT, "");
-#line 611 "APIGlue.c"
- }
-}
-
-
-GFile*
-publishing_glue_media_source_publishable_wrapper_serialize_for_publishing (PublishingGlueMediaSourcePublishableWrapper* self,
- gint content_major_axis,
- gboolean strip_metadata,
- GError** error)
-{
- GFile* result = NULL;
- MediaSource* _tmp0_;
- GFile* _tmp60_;
- GFile* _tmp61_;
- GError * _inner_error_ = NULL;
-#line 46 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_return_val_if_fail (PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (self), NULL);
-#line 49 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = self->priv->wrapped;
-#line 49 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO)) {
-#line 633 "APIGlue.c"
- LibraryPhoto* photo = NULL;
- MediaSource* _tmp1_;
- LibraryPhoto* _tmp2_;
- GFile* to_file = NULL;
- GFile* _tmp3_;
- GFile* _tmp4_;
- gint _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- LibraryPhoto* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- GFile* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- GFile* _tmp27_;
- GFile* _tmp28_;
-#line 50 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = self->priv->wrapped;
-#line 50 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 50 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- photo = _tmp2_;
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp3_ = app_dirs_get_temp_dir ();
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp4_ = _tmp3_;
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp5_ = publishing_glue_media_source_publishable_wrapper_name_ticker;
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- publishing_glue_media_source_publishable_wrapper_name_ticker = _tmp5_ + 1;
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp6_ = g_strdup_printf ("publishing-%d.jpg", _tmp5_);
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp7_ = _tmp6_;
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp8_ = g_file_get_child (_tmp4_, _tmp7_);
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp9_ = _tmp8_;
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp7_);
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (_tmp4_);
-#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- to_file = _tmp9_;
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp10_ = photo;
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp11_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_SOURCE, DataSource));
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp12_ = _tmp11_;
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp13_ = to_file;
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp14_ = g_file_get_path (_tmp13_);
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp15_ = _tmp14_;
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_debug ("APIGlue.vala:55: writing photo '%s' to temporary file '%s' for publish" \
-"ing.", _tmp12_, _tmp15_);
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp15_);
-#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp12_);
-#line 699 "APIGlue.c"
- {
- Scaling _tmp16_ = {0};
- Scaling scaling = {0};
- LibraryPhoto* _tmp19_;
- GFile* _tmp20_;
- Scaling _tmp21_;
-#line 58 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (content_major_axis > 0) {
-#line 708 "APIGlue.c"
- Scaling _tmp17_ = {0};
-#line 59 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- scaling_for_best_fit (content_major_axis, FALSE, &_tmp17_);
-#line 59 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp16_ = _tmp17_;
-#line 714 "APIGlue.c"
- } else {
- Scaling _tmp18_ = {0};
-#line 59 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- scaling_for_original (&_tmp18_);
-#line 59 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp16_ = _tmp18_;
-#line 721 "APIGlue.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- scaling = _tmp16_;
-#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp19_ = photo;
-#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp20_ = to_file;
-#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp21_ = scaling;
-#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO, Photo), _tmp20_, &_tmp21_, JPEG_QUALITY_HIGH, PHOTO_FILE_FORMAT_JFIF, FALSE, !strip_metadata, &_inner_error_);
-#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 735 "APIGlue.c"
- goto __catch44_g_error;
- }
- }
- goto __finally44;
- __catch44_g_error:
- {
- GError* err = NULL;
- LibraryPhoto* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- GError* _tmp25_;
- GError* _tmp26_;
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- err = _inner_error_;
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _inner_error_ = NULL;
-#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp22_ = photo;
-#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp23_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject));
-#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp24_ = _tmp23_;
-#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp25_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, "unable to serialize photo '%s' for publishing.", _tmp24_);
-#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp26_ = _tmp25_;
-#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp24_);
-#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _inner_error_ = _tmp26_;
-#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_error_free0 (err);
-#line 768 "APIGlue.c"
- goto __finally44;
- }
- __finally44:
-#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"
- if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_propagate_error (error, _inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (to_file);
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (photo);
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return NULL;
-#line 784 "APIGlue.c"
- } else {
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (to_file);
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (photo);
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.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 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_clear_error (&_inner_error_);
-#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return NULL;
-#line 796 "APIGlue.c"
- }
- }
-#line 66 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp27_ = to_file;
-#line 66 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp28_ = _g_object_ref0 (_tmp27_);
-#line 66 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (self->priv->serialized_file);
-#line 66 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self->priv->serialized_file = _tmp28_;
-#line 49 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (to_file);
-#line 49 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (photo);
-#line 811 "APIGlue.c"
- } else {
- MediaSource* _tmp29_;
-#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp29_ = self->priv->wrapped;
-#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, TYPE_VIDEO)) {
-#line 818 "APIGlue.c"
- Video* video = NULL;
- MediaSource* _tmp30_;
- Video* _tmp31_;
- gchar* basename = NULL;
- gchar* extension = NULL;
- Video* _tmp32_;
- GFile* _tmp33_;
- GFile* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_ = NULL;
- gchar* _tmp38_ = NULL;
- GFile* to_file = NULL;
- gint _tmp39_;
- const gchar* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- GFile* _tmp43_;
- GFile* _tmp44_;
- Video* _tmp45_;
- gchar* _tmp46_;
- gchar* _tmp47_;
- GFile* _tmp48_;
- gchar* _tmp49_;
- gchar* _tmp50_;
- GFile* _tmp58_;
- GFile* _tmp59_;
-#line 68 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp30_ = self->priv->wrapped;
-#line 68 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_VIDEO, Video));
-#line 68 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- video = _tmp31_;
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp32_ = video;
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp33_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp34_ = _tmp33_;
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp35_ = g_file_get_basename (_tmp34_);
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp36_ = _tmp35_;
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- disassemble_filename (_tmp36_, &_tmp37_, &_tmp38_);
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (basename);
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- basename = _tmp37_;
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (extension);
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- extension = _tmp38_;
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp36_);
-#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (_tmp34_);
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp39_ = publishing_glue_media_source_publishable_wrapper_name_ticker;
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- publishing_glue_media_source_publishable_wrapper_name_ticker = _tmp39_ + 1;
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp40_ = extension;
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp41_ = g_strdup_printf ("publishing-%d.%s", _tmp39_, _tmp40_);
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp42_ = _tmp41_;
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp43_ = g_file_new_for_path (_tmp42_);
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp44_ = _tmp43_;
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp42_);
-#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- to_file = _tmp44_;
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp45_ = video;
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp46_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_DATA_SOURCE, DataSource));
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp47_ = _tmp46_;
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp48_ = to_file;
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp49_ = g_file_get_path (_tmp48_);
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp50_ = _tmp49_;
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_debug ("APIGlue.vala:77: writing video '%s' to temporary file '%s' for publish" \
-"ing.", _tmp47_, _tmp50_);
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp50_);
-#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp47_);
-#line 912 "APIGlue.c"
- {
- Video* _tmp51_;
- GFile* _tmp52_;
-#line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp51_ = video;
-#line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp52_ = to_file;
-#line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- video_export (_tmp51_, _tmp52_, &_inner_error_);
-#line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 924 "APIGlue.c"
- goto __catch45_g_error;
- }
- }
- goto __finally45;
- __catch45_g_error:
- {
- GError* err = NULL;
- Video* _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_;
- GError* _tmp56_;
- GError* _tmp57_;
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- err = _inner_error_;
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _inner_error_ = NULL;
-#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp53_ = video;
-#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp54_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_DATA_OBJECT, DataObject));
-#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp55_ = _tmp54_;
-#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp56_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, "unable to serialize video '%s' for publishing.", _tmp55_);
-#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp57_ = _tmp56_;
-#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp55_);
-#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _inner_error_ = _tmp57_;
-#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_error_free0 (err);
-#line 957 "APIGlue.c"
- goto __finally45;
- }
- __finally45:
-#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"
- if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_propagate_error (error, _inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (to_file);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (extension);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (basename);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (video);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return NULL;
-#line 977 "APIGlue.c"
- } else {
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (to_file);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (extension);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (basename);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (video);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.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 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_clear_error (&_inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return NULL;
-#line 993 "APIGlue.c"
- }
- }
-#line 86 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp58_ = to_file;
-#line 86 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp59_ = _g_object_ref0 (_tmp58_);
-#line 86 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (self->priv->serialized_file);
-#line 86 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self->priv->serialized_file = _tmp59_;
-#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (to_file);
-#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (extension);
-#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (basename);
-#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (video);
-#line 1012 "APIGlue.c"
- } else {
-#line 88 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_error ("APIGlue.vala:88: MediaSourcePublishableWrapper.serialize_for_publishin" \
-"g( ): unknown media type.");
-#line 1016 "APIGlue.c"
- }
- }
-#line 91 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp60_ = self->priv->serialized_file;
-#line 91 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp61_ = _g_object_ref0 (_tmp60_);
-#line 91 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = _tmp61_;
-#line 91 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1027 "APIGlue.c"
-}
-
-
-static gchar*
-publishing_glue_media_source_publishable_wrapper_real_get_publishing_name (SpitPublishingPublishable* base)
-{
- PublishingGlueMediaSourcePublishableWrapper * self;
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- MediaSource* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
-#line 94 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper);
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = self->priv->wrapped;
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp2_ = media_source_get_title (_tmp1_);
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp3_ = _tmp2_;
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp4_ = _tmp3_ != NULL;
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp3_);
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (_tmp4_) {
-#line 1055 "APIGlue.c"
- MediaSource* _tmp5_;
- gchar* _tmp6_;
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp5_ = self->priv->wrapped;
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp6_ = media_source_get_title (_tmp5_);
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp0_);
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = _tmp6_;
-#line 1066 "APIGlue.c"
- } else {
- gchar* _tmp7_;
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp7_ = g_strdup ("");
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_free0 (_tmp0_);
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = _tmp7_;
-#line 1075 "APIGlue.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = _tmp0_;
-#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1081 "APIGlue.c"
-}
-
-
-static gchar*
-publishing_glue_media_source_publishable_wrapper_real_get_param_string (SpitPublishingPublishable* base,
- const gchar* name)
-{
- PublishingGlueMediaSourcePublishableWrapper * self;
- gchar* result = NULL;
- GeeMap* _tmp0_;
- gpointer _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper);
-#line 98 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 99 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = self->priv->param_string;
-#line 99 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = gee_map_get (_tmp0_, name);
-#line 99 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = (gchar*) _tmp1_;
-#line 99 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1105 "APIGlue.c"
-}
-
-
-static void
-_vala_array_add63 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if ((*length) == (*size)) {
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 1121 "APIGlue.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- (*array)[(*length)++] = value;
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- (*array)[*length] = NULL;
-#line 1127 "APIGlue.c"
-}
-
-
-static gchar**
-_vala_array_dup20 (gchar** self,
- int length)
-{
- gchar** result;
- int i;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = g_new0 (gchar*, length + 1);
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- for (i = 0; i < length; i++) {
-#line 1141 "APIGlue.c"
- gchar* _tmp0_;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result[i] = _tmp0_;
-#line 1147 "APIGlue.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1151 "APIGlue.c"
-}
-
-
-static gchar**
-publishing_glue_media_source_publishable_wrapper_real_get_publishing_keywords (SpitPublishingPublishable* base,
- int* result_length1)
-{
- PublishingGlueMediaSourcePublishableWrapper * self;
- gchar** result = NULL;
- gchar** _result_ = NULL;
- gchar** _tmp0_;
- gint _result__length1;
- gint __result__size_;
- GeeCollection* tagset = NULL;
- TagSourceCollection* _tmp1_;
- MediaSource* _tmp2_;
- GeeSortedSet* _tmp3_;
- GeeCollection* _tmp4_;
- gchar** _tmp13_ = NULL;
- gint _tmp13__length1 = 0;
- gint __tmp13__size_ = 0;
- gchar** _tmp14_;
- gint _tmp14__length1;
- gchar** _tmp16_;
- gint _tmp16__length1;
- gchar** _tmp17_;
- gint _tmp17__length1;
-#line 102 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper);
-#line 103 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 103 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _result_ = _tmp0_;
-#line 103 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _result__length1 = 0;
-#line 103 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- __result__size_ = _result__length1;
-#line 105 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = tag_global;
-#line 105 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp2_ = self->priv->wrapped;
-#line 105 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp3_ = tag_source_collection_fetch_sorted_for_source (_tmp1_, _tmp2_);
-#line 105 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- tagset = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 106 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp4_ = tagset;
-#line 106 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (_tmp4_ != NULL) {
-#line 1201 "APIGlue.c"
- {
- GeeIterator* _tag_it = NULL;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp5_ = tagset;
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tag_it = _tmp6_;
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- while (TRUE) {
-#line 1214 "APIGlue.c"
- GeeIterator* _tmp7_;
- Tag* tag = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- gchar** _tmp10_;
- gint _tmp10__length1;
- Tag* _tmp11_;
- gchar* _tmp12_;
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp7_ = _tag_it;
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- break;
-#line 1229 "APIGlue.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp8_ = _tag_it;
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- tag = (Tag*) _tmp9_;
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp10_ = _result_;
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp10__length1 = _result__length1;
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp11_ = tag;
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp12_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject));
-#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _vala_array_add63 (&_result_, &_result__length1, &__result__size_, _tmp12_);
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (tag);
-#line 1249 "APIGlue.c"
- }
-#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (_tag_it);
-#line 1253 "APIGlue.c"
- }
- }
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp14_ = _result_;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp14__length1 = _result__length1;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (_tmp14__length1 > 0) {
-#line 1262 "APIGlue.c"
- gchar** _tmp15_;
- gint _tmp15__length1;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp15_ = _result_;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp15__length1 = _result__length1;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp13_ = _tmp15_;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp13__length1 = _tmp15__length1;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- __tmp13__size_ = _tmp13__length1;
-#line 1275 "APIGlue.c"
- } else {
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp13_ = NULL;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp13__length1 = 0;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- __tmp13__size_ = _tmp13__length1;
-#line 1283 "APIGlue.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp16_ = (_tmp13_ != NULL) ? _vala_array_dup20 (_tmp13_, _tmp13__length1) : ((gpointer) _tmp13_);
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp16__length1 = _tmp13__length1;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp17_ = _tmp16_;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp17__length1 = _tmp16__length1;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (result_length1) {
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- *result_length1 = _tmp17__length1;
-#line 1297 "APIGlue.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = _tmp17_;
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (tagset);
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) g_free), NULL);
-#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1307 "APIGlue.c"
-}
-
-
-static SpitPublishingPublisherMediaType
-publishing_glue_media_source_publishable_wrapper_real_get_media_type (SpitPublishingPublishable* base)
-{
- PublishingGlueMediaSourcePublishableWrapper * self;
- SpitPublishingPublisherMediaType result = 0;
- MediaSource* _tmp0_;
-#line 115 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper);
-#line 116 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = self->priv->wrapped;
-#line 116 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO)) {
-#line 117 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO;
-#line 117 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1327 "APIGlue.c"
- } else {
- MediaSource* _tmp1_;
-#line 118 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = self->priv->wrapped;
-#line 118 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIDEO)) {
-#line 119 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO;
-#line 119 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1338 "APIGlue.c"
- } else {
-#line 121 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE;
-#line 121 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1344 "APIGlue.c"
- }
- }
-}
-
-
-static GFile*
-publishing_glue_media_source_publishable_wrapper_real_get_serialized_file (SpitPublishingPublishable* base)
-{
- PublishingGlueMediaSourcePublishableWrapper * self;
- GFile* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
-#line 124 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper);
-#line 125 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = self->priv->serialized_file;
-#line 125 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 125 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = _tmp1_;
-#line 125 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1367 "APIGlue.c"
-}
-
-
-static GDateTime*
-publishing_glue_media_source_publishable_wrapper_real_get_exposure_date_time (SpitPublishingPublishable* base)
-{
- PublishingGlueMediaSourcePublishableWrapper * self;
- GDateTime* result = NULL;
- MediaSource* _tmp0_;
- GDateTime* _tmp1_;
-#line 128 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper);
-#line 129 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = self->priv->wrapped;
-#line 129 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp1_ = g_date_time_new_from_unix_local ((gint64) media_source_get_exposure_time (_tmp0_));
-#line 129 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- result = _tmp1_;
-#line 129 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- return result;
-#line 1388 "APIGlue.c"
-}
-
-
-static void
-publishing_glue_media_source_publishable_wrapper_class_init (PublishingGlueMediaSourcePublishableWrapperClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- publishing_glue_media_source_publishable_wrapper_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- g_type_class_add_private (klass, sizeof (PublishingGlueMediaSourcePublishableWrapperPrivate));
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- G_OBJECT_CLASS (klass)->finalize = publishing_glue_media_source_publishable_wrapper_finalize;
-#line 1401 "APIGlue.c"
-}
-
-
-static void
-publishing_glue_media_source_publishable_wrapper_spit_publishing_publishable_interface_init (SpitPublishingPublishableIface * iface)
-{
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- publishing_glue_media_source_publishable_wrapper_spit_publishing_publishable_parent_iface = g_type_interface_peek_parent (iface);
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- iface->get_publishing_name = (gchar* (*) (SpitPublishingPublishable *)) publishing_glue_media_source_publishable_wrapper_real_get_publishing_name;
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- iface->get_param_string = (gchar* (*) (SpitPublishingPublishable *, const gchar*)) publishing_glue_media_source_publishable_wrapper_real_get_param_string;
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- iface->get_publishing_keywords = (gchar** (*) (SpitPublishingPublishable *, int*)) publishing_glue_media_source_publishable_wrapper_real_get_publishing_keywords;
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- iface->get_media_type = (SpitPublishingPublisherMediaType (*) (SpitPublishingPublishable *)) publishing_glue_media_source_publishable_wrapper_real_get_media_type;
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- iface->get_serialized_file = (GFile* (*) (SpitPublishingPublishable *)) publishing_glue_media_source_publishable_wrapper_real_get_serialized_file;
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- iface->get_exposure_date_time = (GDateTime* (*) (SpitPublishingPublishable *)) publishing_glue_media_source_publishable_wrapper_real_get_exposure_date_time;
-#line 1422 "APIGlue.c"
-}
-
-
-static void
-publishing_glue_media_source_publishable_wrapper_instance_init (PublishingGlueMediaSourcePublishableWrapper * self)
-{
- GeeHashMap* _tmp0_;
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self->priv = PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_PRIVATE (self);
-#line 12 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self->priv->serialized_file = NULL;
-#line 13 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 13 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self->priv->param_string = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
-#line 1438 "APIGlue.c"
-}
-
-
-static void
-publishing_glue_media_source_publishable_wrapper_finalize (GObject * obj)
-{
- PublishingGlueMediaSourcePublishableWrapper * self;
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper);
-#line 11 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (self->priv->wrapped);
-#line 12 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (self->priv->serialized_file);
-#line 13 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- _g_object_unref0 (self->priv->param_string);
-#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala"
- G_OBJECT_CLASS (publishing_glue_media_source_publishable_wrapper_parent_class)->finalize (obj);
-#line 1456 "APIGlue.c"
-}
-
-
-GType
-publishing_glue_media_source_publishable_wrapper_get_type (void)
-{
- static volatile gsize publishing_glue_media_source_publishable_wrapper_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_glue_media_source_publishable_wrapper_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingGlueMediaSourcePublishableWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_glue_media_source_publishable_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGlueMediaSourcePublishableWrapper), 0, (GInstanceInitFunc) publishing_glue_media_source_publishable_wrapper_instance_init, NULL };
- static const GInterfaceInfo spit_publishing_publishable_info = { (GInterfaceInitFunc) publishing_glue_media_source_publishable_wrapper_spit_publishing_publishable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType publishing_glue_media_source_publishable_wrapper_type_id;
- publishing_glue_media_source_publishable_wrapper_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGlueMediaSourcePublishableWrapper", &g_define_type_info, 0);
- g_type_add_interface_static (publishing_glue_media_source_publishable_wrapper_type_id, SPIT_PUBLISHING_TYPE_PUBLISHABLE, &spit_publishing_publishable_info);
- g_once_init_leave (&publishing_glue_media_source_publishable_wrapper_type_id__volatile, publishing_glue_media_source_publishable_wrapper_type_id);
- }
- return publishing_glue_media_source_publishable_wrapper_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/publishing/Publishing.c b/src/publishing/Publishing.c
deleted file mode 100644
index 4bcc4db..0000000
--- a/src/publishing/Publishing.c
+++ /dev/null
@@ -1,246 +0,0 @@
-/* Publishing.c generated by valac 0.40.4, the Vala compiler
- * generated from Publishing.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <glib/gi18n-lib.h>
-
-
-
-
-void publishing_init (GError** error);
-static void _vala_array_add54 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add55 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add56 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add57 (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_PUBLISH "applications-internet"
-void publishing_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);
-
-
-static void
-_vala_array_add54 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- if ((*length) == (*size)) {
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 66 "Publishing.c"
- }
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- (*array)[(*length)++] = value;
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- (*array)[*length] = NULL;
-#line 72 "Publishing.c"
-}
-
-
-static void
-_vala_array_add55 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- if ((*length) == (*size)) {
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 88 "Publishing.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- (*array)[(*length)++] = value;
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- (*array)[*length] = NULL;
-#line 94 "Publishing.c"
-}
-
-
-static void
-_vala_array_add56 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- if ((*length) == (*size)) {
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 110 "Publishing.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- (*array)[(*length)++] = value;
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- (*array)[*length] = NULL;
-#line 116 "Publishing.c"
-}
-
-
-static void
-_vala_array_add57 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- if ((*length) == (*size)) {
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 132 "Publishing.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- (*array)[(*length)++] = value;
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- (*array)[*length] = NULL;
-#line 138 "Publishing.c"
-}
-
-
-void
-publishing_init (GError** error)
-{
- gchar** core_ids = NULL;
- gchar** _tmp0_;
- gint core_ids_length1;
- gint _core_ids_size_;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- gchar* _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- gchar* _tmp6_;
- gchar** _tmp7_;
- gint _tmp7__length1;
- gchar* _tmp8_;
- gchar** _tmp9_;
- gint _tmp9__length1;
-#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- core_ids = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- core_ids_length1 = 0;
-#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _core_ids_size_ = core_ids_length1;
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp1_ = core_ids;
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp1__length1 = core_ids_length1;
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp2_ = g_strdup ("org.yorba.shotwell.publishing.facebook");
-#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _vala_array_add54 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp2_);
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp3_ = core_ids;
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp3__length1 = core_ids_length1;
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp4_ = g_strdup ("org.yorba.shotwell.publishing.picasa");
-#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _vala_array_add55 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp4_);
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp5_ = core_ids;
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp5__length1 = core_ids_length1;
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp6_ = g_strdup ("org.yorba.shotwell.publishing.flickr");
-#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _vala_array_add56 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp6_);
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp7_ = core_ids;
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp7__length1 = core_ids_length1;
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp8_ = g_strdup ("org.yorba.shotwell.publishing.youtube");
-#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _vala_array_add57 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp8_);
-#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp9_ = core_ids;
-#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- _tmp9__length1 = core_ids_length1;
-#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- plugins_register_extension_point (SPIT_PUBLISHING_TYPE_SERVICE, _ ("Publishing"), RESOURCES_PUBLISH, _tmp9_, _tmp9__length1);
-#line 9 "/home/jens/Source/shotwell/src/publishing/Publishing.vala"
- core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL);
-#line 211 "Publishing.c"
-}
-
-
-void
-publishing_terminate (void)
-{
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/publishing/PublishingPluginHost.c b/src/publishing/PublishingPluginHost.c
deleted file mode 100644
index 8ee8e8d..0000000
--- a/src/publishing/PublishingPluginHost.c
+++ /dev/null
@@ -1,1582 +0,0 @@
-/* PublishingPluginHost.c generated by valac 0.40.4, the Vala compiler
- * generated from PublishingPluginHost.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <float.h>
-#include <math.h>
-#include <gio/gio.h>
-
-
-#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ())
-#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface))
-#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-
-typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface;
-typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass;
-typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate;
-
-#define SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST (spit_publishing_concrete_publishing_host_get_type ())
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost))
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostClass))
-#define SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST))
-#define SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST))
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostClass))
-
-typedef struct _SpitPublishingConcretePublishingHost SpitPublishingConcretePublishingHost;
-typedef struct _SpitPublishingConcretePublishingHostClass SpitPublishingConcretePublishingHostClass;
-typedef struct _SpitPublishingConcretePublishingHostPrivate SpitPublishingConcretePublishingHostPrivate;
-
-#define PUBLISHING_UI_TYPE_PUBLISHING_DIALOG (publishing_ui_publishing_dialog_get_type ())
-#define PUBLISHING_UI_PUBLISHING_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialog))
-#define PUBLISHING_UI_PUBLISHING_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogClass))
-#define PUBLISHING_UI_IS_PUBLISHING_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG))
-#define PUBLISHING_UI_IS_PUBLISHING_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG))
-#define PUBLISHING_UI_PUBLISHING_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogClass))
-
-typedef struct _PublishingUIPublishingDialog PublishingUIPublishingDialog;
-typedef struct _PublishingUIPublishingDialogClass PublishingUIPublishingDialogClass;
-enum {
- SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_0_PROPERTY,
- SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_NUM_PROPERTIES
-};
-static GParamSpec* spit_publishing_concrete_publishing_host_properties[SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (publishing_glue_media_source_publishable_wrapper_get_type ())
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper))
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass))
-#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER))
-#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER))
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass))
-
-typedef struct _PublishingGlueMediaSourcePublishableWrapper PublishingGlueMediaSourcePublishableWrapper;
-typedef struct _PublishingGlueMediaSourcePublishableWrapperClass PublishingGlueMediaSourcePublishableWrapperClass;
-
-#define PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE (publishing_ui_concrete_dialog_pane_get_type ())
-#define PUBLISHING_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane))
-#define PUBLISHING_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPaneClass))
-#define PUBLISHING_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE))
-#define PUBLISHING_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE))
-#define PUBLISHING_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPaneClass))
-
-typedef struct _PublishingUIConcreteDialogPane PublishingUIConcreteDialogPane;
-typedef struct _PublishingUIConcreteDialogPaneClass PublishingUIConcreteDialogPaneClass;
-
-#define PUBLISHING_UI_TYPE_PROGRESS_PANE (publishing_ui_progress_pane_get_type ())
-#define PUBLISHING_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane))
-#define PUBLISHING_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPaneClass))
-#define PUBLISHING_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE))
-#define PUBLISHING_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_PROGRESS_PANE))
-#define PUBLISHING_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPaneClass))
-
-typedef struct _PublishingUIProgressPane PublishingUIProgressPane;
-typedef struct _PublishingUIProgressPaneClass PublishingUIProgressPaneClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE (publishing_ui_static_message_pane_get_type ())
-#define PUBLISHING_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePane))
-#define PUBLISHING_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePaneClass))
-#define PUBLISHING_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE))
-#define PUBLISHING_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE))
-#define PUBLISHING_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePaneClass))
-
-typedef struct _PublishingUIStaticMessagePane PublishingUIStaticMessagePane;
-typedef struct _PublishingUIStaticMessagePaneClass PublishingUIStaticMessagePaneClass;
-
-#define PUBLISHING_UI_TYPE_SUCCESS_PANE (publishing_ui_success_pane_get_type ())
-#define PUBLISHING_UI_SUCCESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPane))
-#define PUBLISHING_UI_SUCCESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPaneClass))
-#define PUBLISHING_UI_IS_SUCCESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE))
-#define PUBLISHING_UI_IS_SUCCESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_SUCCESS_PANE))
-#define PUBLISHING_UI_SUCCESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPaneClass))
-
-typedef struct _PublishingUISuccessPane PublishingUISuccessPane;
-typedef struct _PublishingUISuccessPaneClass PublishingUISuccessPaneClass;
-
-#define PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE (publishing_ui_account_fetch_wait_pane_get_type ())
-#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPane))
-#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPaneClass))
-#define PUBLISHING_UI_IS_ACCOUNT_FETCH_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE))
-#define PUBLISHING_UI_IS_ACCOUNT_FETCH_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE))
-#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPaneClass))
-
-typedef struct _PublishingUIAccountFetchWaitPane PublishingUIAccountFetchWaitPane;
-typedef struct _PublishingUIAccountFetchWaitPaneClass PublishingUIAccountFetchWaitPaneClass;
-
-#define PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE (publishing_ui_login_wait_pane_get_type ())
-#define PUBLISHING_UI_LOGIN_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPane))
-#define PUBLISHING_UI_LOGIN_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPaneClass))
-#define PUBLISHING_UI_IS_LOGIN_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE))
-#define PUBLISHING_UI_IS_LOGIN_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE))
-#define PUBLISHING_UI_LOGIN_WAIT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPaneClass))
-
-typedef struct _PublishingUILoginWaitPane PublishingUILoginWaitPane;
-typedef struct _PublishingUILoginWaitPaneClass PublishingUILoginWaitPaneClass;
-
-#define PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE (publishing_ui_login_welcome_pane_get_type ())
-#define PUBLISHING_UI_LOGIN_WELCOME_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePane))
-#define PUBLISHING_UI_LOGIN_WELCOME_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePaneClass))
-#define PUBLISHING_UI_IS_LOGIN_WELCOME_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE))
-#define PUBLISHING_UI_IS_LOGIN_WELCOME_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE))
-#define PUBLISHING_UI_LOGIN_WELCOME_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePaneClass))
-
-typedef struct _PublishingUILoginWelcomePane PublishingUILoginWelcomePane;
-typedef struct _PublishingUILoginWelcomePaneClass PublishingUILoginWelcomePaneClass;
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-struct _PluginsStandardHostInterface {
- GObject parent_instance;
- PluginsStandardHostInterfacePrivate * priv;
-};
-
-struct _PluginsStandardHostInterfaceClass {
- GObjectClass parent_class;
-};
-
-struct _SpitPublishingConcretePublishingHost {
- PluginsStandardHostInterface parent_instance;
- SpitPublishingConcretePublishingHostPrivate * priv;
-};
-
-struct _SpitPublishingConcretePublishingHostClass {
- PluginsStandardHostInterfaceClass parent_class;
-};
-
-struct _SpitPublishingConcretePublishingHostPrivate {
- PublishingUIPublishingDialog* dialog;
- SpitPublishingPublisher* active_publisher;
- SpitPublishingPublishable** publishables;
- gint publishables_length1;
- gint _publishables_size_;
- SpitPublishingLoginCallback current_login_callback;
- gpointer current_login_callback_target;
- gboolean publishing_halted;
- SpitPublishingPublisherMediaType media_type;
-};
-
-
-static gpointer spit_publishing_concrete_publishing_host_parent_class = NULL;
-static SpitPublishingPluginHostIface * spit_publishing_concrete_publishing_host_spit_publishing_plugin_host_parent_iface = NULL;
-
-GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST;
-GType spit_publishing_concrete_publishing_host_get_type (void) G_GNUC_CONST;
-GType publishing_ui_publishing_dialog_get_type (void) G_GNUC_CONST;
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostPrivate))
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_PREPARE_STATUS_DESCRIPTION _ ("Preparing for upload")
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_UPLOAD_STATUS_DESCRIPTION _ ("Uploading %d of %d")
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_PREPARATION_FRACTION 0.3
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_UPLOAD_FRACTION 0.7
-SpitPublishingConcretePublishingHost* spit_publishing_concrete_publishing_host_new (SpitPublishingService* service,
- PublishingUIPublishingDialog* dialog,
- SpitPublishingPublishable** publishables,
- int publishables_length1);
-SpitPublishingConcretePublishingHost* spit_publishing_concrete_publishing_host_construct (GType object_type,
- SpitPublishingService* service,
- PublishingUIPublishingDialog* dialog,
- SpitPublishingPublishable** publishables,
- int publishables_length1);
-PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable,
- const gchar* config_domain);
-PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type,
- SpitPluggable* pluggable,
- const gchar* config_domain);
-static SpitPublishingPublishable** _vala_array_dup18 (SpitPublishingPublishable** self,
- int length);
-static void spit_publishing_concrete_publishing_host_on_login_clicked (SpitPublishingConcretePublishingHost* self);
-static void spit_publishing_concrete_publishing_host_clean_up (SpitPublishingConcretePublishingHost* self);
-GType publishing_glue_media_source_publishable_wrapper_get_type (void) G_GNUC_CONST;
-void publishing_glue_media_source_publishable_wrapper_clean_up (PublishingGlueMediaSourcePublishableWrapper* self);
-static void spit_publishing_concrete_publishing_host_report_plugin_upload_progress (SpitPublishingConcretePublishingHost* self,
- gint file_number,
- gdouble fraction_complete);
-SpitPublishingDialogPane* publishing_ui_publishing_dialog_get_active_pane (PublishingUIPublishingDialog* self);
-GType publishing_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST;
-GType publishing_ui_progress_pane_get_type (void) G_GNUC_CONST;
-void publishing_ui_progress_pane_set_status (PublishingUIProgressPane* self,
- const gchar* status_text,
- gdouble progress);
-static void spit_publishing_concrete_publishing_host_install_progress_pane (SpitPublishingConcretePublishingHost* self);
-PublishingUIProgressPane* publishing_ui_progress_pane_new (void);
-PublishingUIProgressPane* publishing_ui_progress_pane_construct (GType object_type);
-void publishing_ui_publishing_dialog_install_pane (PublishingUIPublishingDialog* self,
- SpitPublishingDialogPane* pane);
-void spit_publishing_concrete_publishing_host_set_button_mode (SpitPublishingConcretePublishingHost* self,
- SpitPublishingPluginHostButtonMode mode);
-static void spit_publishing_concrete_publishing_host_real_install_dialog_pane (SpitPublishingPluginHost* base,
- SpitPublishingDialogPane* pane,
- SpitPublishingPluginHostButtonMode button_mode);
-static void spit_publishing_concrete_publishing_host_real_post_error (SpitPublishingPluginHost* base,
- GError* err);
-PublishingUIStaticMessagePane* publishing_ui_static_message_pane_new (const gchar* message_string,
- gboolean enable_markup);
-PublishingUIStaticMessagePane* publishing_ui_static_message_pane_construct (GType object_type,
- const gchar* message_string,
- gboolean enable_markup);
-GType publishing_ui_static_message_pane_get_type (void) G_GNUC_CONST;
-void publishing_ui_publishing_dialog_set_close_button_mode (PublishingUIPublishingDialog* self);
-void publishing_ui_publishing_dialog_unlock_service (PublishingUIPublishingDialog* self);
-static void spit_publishing_concrete_publishing_host_real_stop_publishing (SpitPublishingPluginHost* base);
-void spit_publishing_concrete_publishing_host_start_publishing (SpitPublishingConcretePublishingHost* self);
-static SpitPublishingPublisher* spit_publishing_concrete_publishing_host_real_get_publisher (SpitPublishingPluginHost* base);
-static void spit_publishing_concrete_publishing_host_real_install_static_message_pane (SpitPublishingPluginHost* base,
- const gchar* message,
- SpitPublishingPluginHostButtonMode button_mode);
-static void spit_publishing_concrete_publishing_host_real_install_pango_message_pane (SpitPublishingPluginHost* base,
- const gchar* markup,
- SpitPublishingPluginHostButtonMode button_mode);
-static void spit_publishing_concrete_publishing_host_real_install_success_pane (SpitPublishingPluginHost* base);
-PublishingUISuccessPane* publishing_ui_success_pane_new (SpitPublishingPublisherMediaType published_media,
- gint num_uploaded);
-PublishingUISuccessPane* publishing_ui_success_pane_construct (GType object_type,
- SpitPublishingPublisherMediaType published_media,
- gint num_uploaded);
-GType publishing_ui_success_pane_get_type (void) G_GNUC_CONST;
-static void spit_publishing_concrete_publishing_host_real_install_account_fetch_wait_pane (SpitPublishingPluginHost* base);
-PublishingUIAccountFetchWaitPane* publishing_ui_account_fetch_wait_pane_new (void);
-PublishingUIAccountFetchWaitPane* publishing_ui_account_fetch_wait_pane_construct (GType object_type);
-GType publishing_ui_account_fetch_wait_pane_get_type (void) G_GNUC_CONST;
-static void spit_publishing_concrete_publishing_host_real_install_login_wait_pane (SpitPublishingPluginHost* base);
-PublishingUILoginWaitPane* publishing_ui_login_wait_pane_new (void);
-PublishingUILoginWaitPane* publishing_ui_login_wait_pane_construct (GType object_type);
-GType publishing_ui_login_wait_pane_get_type (void) G_GNUC_CONST;
-static void spit_publishing_concrete_publishing_host_real_install_welcome_pane (SpitPublishingPluginHost* base,
- const gchar* welcome_message,
- SpitPublishingLoginCallback login_clicked_callback,
- void* login_clicked_callback_target);
-GType publishing_ui_login_welcome_pane_get_type (void) G_GNUC_CONST;
-PublishingUILoginWelcomePane* publishing_ui_login_welcome_pane_new (const gchar* service_welcome_message);
-PublishingUILoginWelcomePane* publishing_ui_login_welcome_pane_construct (GType object_type,
- const gchar* service_welcome_message);
-static void _spit_publishing_concrete_publishing_host_on_login_clicked_publishing_ui_login_welcome_pane_login_requested (PublishingUILoginWelcomePane* _sender,
- gpointer self);
-static void spit_publishing_concrete_publishing_host_real_set_service_locked (SpitPublishingPluginHost* base,
- gboolean locked);
-void publishing_ui_publishing_dialog_lock_service (PublishingUIPublishingDialog* self);
-void publishing_ui_publishing_dialog_set_cancel_button_mode (PublishingUIPublishingDialog* self);
-static void spit_publishing_concrete_publishing_host_real_set_dialog_default_widget (SpitPublishingPluginHost* base,
- GtkWidget* widget);
-static SpitPublishingPublisherMediaType spit_publishing_concrete_publishing_host_real_get_publishable_media_type (SpitPublishingPluginHost* base);
-static SpitPublishingPublishable** spit_publishing_concrete_publishing_host_real_get_publishables (SpitPublishingPluginHost* base,
- int* result_length1);
-static SpitPublishingPublishable** _vala_array_dup19 (SpitPublishingPublishable** self,
- int length);
-static SpitPublishingProgressCallback spit_publishing_concrete_publishing_host_real_serialize_publishables (SpitPublishingPluginHost* base,
- gint content_major_axis,
- gboolean strip_metadata,
- void** result_target,
- GDestroyNotify* result_target_destroy_notify);
-void spin_event_loop (void);
-GFile* publishing_glue_media_source_publishable_wrapper_serialize_for_publishing (PublishingGlueMediaSourcePublishableWrapper* self,
- gint content_major_axis,
- gboolean strip_metadata,
- GError** error);
-static void _spit_publishing_concrete_publishing_host_report_plugin_upload_progress_spit_publishing_progress_callback (gint file_number,
- gdouble fraction_complete,
- gpointer self);
-static void spit_publishing_concrete_publishing_host_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 gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return self ? g_object_ref (self) : NULL;
-#line 307 "PublishingPluginHost.c"
-}
-
-
-static SpitPublishingPublishable**
-_vala_array_dup18 (SpitPublishingPublishable** self,
- int length)
-{
- SpitPublishingPublishable** result;
- int i;
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result = g_new0 (SpitPublishingPublishable*, length + 1);
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- for (i = 0; i < length; i++) {
-#line 321 "PublishingPluginHost.c"
- SpitPublishingPublishable* _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = _g_object_ref0 (self[i]);
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result[i] = _tmp0_;
-#line 327 "PublishingPluginHost.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return result;
-#line 331 "PublishingPluginHost.c"
-}
-
-
-SpitPublishingConcretePublishingHost*
-spit_publishing_concrete_publishing_host_construct (GType object_type,
- SpitPublishingService* service,
- PublishingUIPublishingDialog* dialog,
- SpitPublishingPublishable** publishables,
- int publishables_length1)
-{
- SpitPublishingConcretePublishingHost * self = NULL;
- SpitPublishingPublishable** _tmp0_;
- gint _tmp0__length1;
- SpitPublishingPublisher* _tmp4_;
-#line 24 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
-#line 24 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_val_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (dialog), NULL);
-#line 26 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = (SpitPublishingConcretePublishingHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (service, SPIT_TYPE_PLUGGABLE, SpitPluggable), "sharing");
-#line 27 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->dialog = dialog;
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = (publishables != NULL) ? _vala_array_dup18 (publishables, publishables_length1) : ((gpointer) publishables);
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0__length1 = publishables_length1;
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->publishables = _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->publishables_length1 = _tmp0__length1;
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->_publishables_size_ = self->priv->publishables_length1;
-#line 366 "PublishingPluginHost.c"
- {
- SpitPublishingPublishable** curr_publishable_collection = NULL;
- gint curr_publishable_collection_length1 = 0;
- gint _curr_publishable_collection_size_ = 0;
- gint curr_publishable_it = 0;
-#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- curr_publishable_collection = publishables;
-#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- curr_publishable_collection_length1 = publishables_length1;
-#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- for (curr_publishable_it = 0; curr_publishable_it < publishables_length1; curr_publishable_it = curr_publishable_it + 1) {
-#line 378 "PublishingPluginHost.c"
- SpitPublishingPublishable* _tmp1_;
- SpitPublishingPublishable* curr_publishable = NULL;
-#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = _g_object_ref0 (curr_publishable_collection[curr_publishable_it]);
-#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- curr_publishable = _tmp1_;
-#line 385 "PublishingPluginHost.c"
- {
- SpitPublishingPublisherMediaType _tmp2_;
- SpitPublishingPublishable* _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = self->priv->media_type;
-#line 31 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp3_ = curr_publishable;
-#line 31 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->media_type = _tmp2_ | spit_publishing_publishable_get_media_type (_tmp3_);
-#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (curr_publishable);
-#line 397 "PublishingPluginHost.c"
- }
- }
- }
-#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp4_ = spit_publishing_service_create_publisher (service, G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost));
-#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (self->priv->active_publisher);
-#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->active_publisher = _tmp4_;
-#line 24 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return self;
-#line 409 "PublishingPluginHost.c"
-}
-
-
-SpitPublishingConcretePublishingHost*
-spit_publishing_concrete_publishing_host_new (SpitPublishingService* service,
- PublishingUIPublishingDialog* dialog,
- SpitPublishingPublishable** publishables,
- int publishables_length1)
-{
-#line 24 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return spit_publishing_concrete_publishing_host_construct (SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, service, dialog, publishables, publishables_length1);
-#line 421 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_on_login_clicked (SpitPublishingConcretePublishingHost* self)
-{
- SpitPublishingLoginCallback _tmp0_;
- void* _tmp0__target;
-#line 36 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self));
-#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->current_login_callback;
-#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0__target = self->priv->current_login_callback_target;
-#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (_tmp0_ != NULL) {
-#line 438 "PublishingPluginHost.c"
- SpitPublishingLoginCallback _tmp1_;
- void* _tmp1__target;
-#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->current_login_callback;
-#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1__target = self->priv->current_login_callback_target;
-#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ (_tmp1__target);
-#line 447 "PublishingPluginHost.c"
- }
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_clean_up (SpitPublishingConcretePublishingHost* self)
-{
- SpitPublishingPublishable** _tmp0_;
- gint _tmp0__length1;
-#line 41 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self));
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->publishables;
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0__length1 = self->priv->publishables_length1;
-#line 463 "PublishingPluginHost.c"
- {
- SpitPublishingPublishable** publishable_collection = NULL;
- gint publishable_collection_length1 = 0;
- gint _publishable_collection_size_ = 0;
- gint publishable_it = 0;
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishable_collection = _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishable_collection_length1 = _tmp0__length1;
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- for (publishable_it = 0; publishable_it < _tmp0__length1; publishable_it = publishable_it + 1) {
-#line 475 "PublishingPluginHost.c"
- SpitPublishingPublishable* _tmp1_;
- SpitPublishingPublishable* publishable = NULL;
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = _g_object_ref0 (publishable_collection[publishable_it]);
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishable = _tmp1_;
-#line 482 "PublishingPluginHost.c"
- {
- SpitPublishingPublishable* _tmp2_;
-#line 43 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = publishable;
-#line 43 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_glue_media_source_publishable_wrapper_clean_up (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper));
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (publishable);
-#line 491 "PublishingPluginHost.c"
- }
- }
- }
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_report_plugin_upload_progress (SpitPublishingConcretePublishingHost* self,
- gint file_number,
- gdouble fraction_complete)
-{
- PublishingUIPublishingDialog* _tmp0_;
- SpitPublishingDialogPane* _tmp1_;
- SpitPublishingDialogPane* _tmp2_;
- gboolean _tmp3_;
- PublishingUIProgressPane* pane = NULL;
- PublishingUIPublishingDialog* _tmp4_;
- SpitPublishingDialogPane* _tmp5_;
- gchar* status_string = NULL;
- SpitPublishingPublishable** _tmp6_;
- gint _tmp6__length1;
- gchar* _tmp7_;
- gdouble status_fraction = 0.0;
- PublishingUIProgressPane* _tmp8_;
- const gchar* _tmp9_;
- gdouble _tmp10_;
-#line 46 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self));
-#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = publishing_ui_publishing_dialog_get_active_pane (_tmp0_);
-#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp3_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, PUBLISHING_UI_TYPE_PROGRESS_PANE);
-#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (_tmp3_) {
-#line 49 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return;
-#line 534 "PublishingPluginHost.c"
- }
-#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp4_ = self->priv->dialog;
-#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp5_ = publishing_ui_publishing_dialog_get_active_pane (_tmp4_);
-#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- pane = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane);
-#line 53 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp6_ = self->priv->publishables;
-#line 53 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp6__length1 = self->priv->publishables_length1;
-#line 53 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp7_ = g_strdup_printf (SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_UPLOAD_STATUS_DESCRIPTION, file_number, _tmp6__length1);
-#line 53 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- status_string = _tmp7_;
-#line 55 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- status_fraction = SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_PREPARATION_FRACTION + (SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_UPLOAD_FRACTION * fraction_complete);
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp8_ = pane;
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp9_ = status_string;
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp10_ = status_fraction;
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_progress_pane_set_status (_tmp8_, _tmp9_, _tmp10_);
-#line 46 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_free0 (status_string);
-#line 46 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (pane);
-#line 564 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_install_progress_pane (SpitPublishingConcretePublishingHost* self)
-{
- PublishingUIProgressPane* progress_pane = NULL;
- PublishingUIProgressPane* _tmp0_;
- PublishingUIPublishingDialog* _tmp1_;
-#line 61 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self));
-#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = publishing_ui_progress_pane_new ();
-#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- progress_pane = _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->dialog;
-#line 64 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (progress_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane));
-#line 65 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_set_button_mode (self, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
-#line 61 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (progress_pane);
-#line 588 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_install_dialog_pane (SpitPublishingPluginHost* base,
- SpitPublishingDialogPane* pane,
- SpitPublishingPluginHostButtonMode button_mode)
-{
- SpitPublishingConcretePublishingHost * self;
- gboolean _tmp0_ = FALSE;
- SpitPublishingPublisher* _tmp1_;
- PublishingUIPublishingDialog* _tmp3_;
-#line 68 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 68 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (pane));
-#line 70 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_debug ("PublishingPluginHost.vala:70: Publishing.PluginHost: install_dialog_pa" \
-"ne( ): invoked.");
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->active_publisher;
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (_tmp1_ == NULL) {
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = TRUE;
-#line 613 "PublishingPluginHost.c"
- } else {
- SpitPublishingPublisher* _tmp2_;
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = self->priv->active_publisher;
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = !spit_publishing_publisher_is_running (_tmp2_);
-#line 620 "PublishingPluginHost.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (_tmp0_) {
-#line 73 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return;
-#line 626 "PublishingPluginHost.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp3_ = self->priv->dialog;
-#line 75 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp3_, pane);
-#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_set_button_mode (self, button_mode);
-#line 634 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_post_error (SpitPublishingPluginHost* base,
- GError* err)
-{
- SpitPublishingConcretePublishingHost * self;
- gchar* msg = NULL;
- SpitPublishingPublisher* _tmp0_;
- SpitPublishingService* _tmp1_;
- SpitPublishingService* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- PublishingUIPublishingDialog* _tmp13_;
- const gchar* _tmp14_;
- PublishingUIStaticMessagePane* _tmp15_;
- PublishingUIStaticMessagePane* _tmp16_;
- PublishingUIPublishingDialog* _tmp17_;
- PublishingUIPublishingDialog* _tmp18_;
- SpitPublishingPublisher* _tmp19_;
-#line 80 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->active_publisher;
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = spit_publishing_publisher_get_service (_tmp0_);
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp3_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp4_ = g_strdup_printf (_ ("Publishing to %s can’t continue because an error occurred:"), _tmp3_);
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp5_ = _tmp4_;
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- msg = _tmp5_;
-#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp6_ = msg;
-#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp7_ = err->message;
-#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp8_ = g_markup_printf_escaped ("\n\n<i>%s</i>\n\n", _tmp7_);
-#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp9_ = _tmp8_;
-#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp10_ = g_strconcat (_tmp6_, _tmp9_, NULL);
-#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_free0 (msg);
-#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- msg = _tmp10_;
-#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_free0 (_tmp9_);
-#line 84 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp11_ = msg;
-#line 84 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp12_ = g_strconcat (_tmp11_, _ ("To try publishing to another service, select one from the above menu."), NULL);
-#line 84 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_free0 (msg);
-#line 84 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- msg = _tmp12_;
-#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp13_ = self->priv->dialog;
-#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp14_ = msg;
-#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp15_ = publishing_ui_static_message_pane_new (_tmp14_, TRUE);
-#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp16_ = _tmp15_;
-#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane));
-#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp16_);
-#line 87 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp17_ = self->priv->dialog;
-#line 87 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_set_close_button_mode (_tmp17_);
-#line 88 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp18_ = self->priv->dialog;
-#line 88 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_unlock_service (_tmp18_);
-#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp19_ = self->priv->active_publisher;
-#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_publisher_stop (_tmp19_);
-#line 95 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_clean_up (self);
-#line 80 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_free0 (msg);
-#line 734 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_stop_publishing (SpitPublishingPluginHost* base)
-{
- SpitPublishingConcretePublishingHost * self;
- SpitPublishingPublisher* _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 99 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_debug ("PublishingPluginHost.vala:99: ConcretePublishingHost.stop_publishing( " \
-"): invoked.");
-#line 101 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->active_publisher;
-#line 101 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (spit_publishing_publisher_is_running (_tmp0_)) {
-#line 751 "PublishingPluginHost.c"
- SpitPublishingPublisher* _tmp1_;
-#line 102 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->active_publisher;
-#line 102 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_publisher_stop (_tmp1_);
-#line 757 "PublishingPluginHost.c"
- }
-#line 104 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_clean_up (self);
-#line 106 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->publishing_halted = TRUE;
-#line 763 "PublishingPluginHost.c"
-}
-
-
-void
-spit_publishing_concrete_publishing_host_start_publishing (SpitPublishingConcretePublishingHost* self)
-{
- SpitPublishingPublisher* _tmp0_;
- SpitPublishingPublisher* _tmp1_;
-#line 109 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self));
-#line 110 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->active_publisher;
-#line 110 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (spit_publishing_publisher_is_running (_tmp0_)) {
-#line 111 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return;
-#line 780 "PublishingPluginHost.c"
- }
-#line 113 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_debug ("PublishingPluginHost.vala:113: ConcretePublishingHost.start_publishing" \
-"( ): invoked.");
-#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->active_publisher;
-#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_publisher_start (_tmp1_);
-#line 788 "PublishingPluginHost.c"
-}
-
-
-static SpitPublishingPublisher*
-spit_publishing_concrete_publishing_host_real_get_publisher (SpitPublishingPluginHost* base)
-{
- SpitPublishingConcretePublishingHost * self;
- SpitPublishingPublisher* result = NULL;
- SpitPublishingPublisher* _tmp0_;
- SpitPublishingPublisher* _tmp1_;
-#line 118 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 119 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->active_publisher;
-#line 119 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 119 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result = _tmp1_;
-#line 119 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return result;
-#line 809 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_install_static_message_pane (SpitPublishingPluginHost* base,
- const gchar* message,
- SpitPublishingPluginHostButtonMode button_mode)
-{
- SpitPublishingConcretePublishingHost * self;
- PublishingUIPublishingDialog* _tmp0_;
- PublishingUIStaticMessagePane* _tmp1_;
- PublishingUIStaticMessagePane* _tmp2_;
-#line 122 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 122 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (message != NULL);
-#line 125 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_set_button_mode (self, button_mode);
-#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = publishing_ui_static_message_pane_new (message, FALSE);
-#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane));
-#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 838 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_install_pango_message_pane (SpitPublishingPluginHost* base,
- const gchar* markup,
- SpitPublishingPluginHostButtonMode button_mode)
-{
- SpitPublishingConcretePublishingHost * self;
- PublishingUIPublishingDialog* _tmp0_;
- PublishingUIStaticMessagePane* _tmp1_;
- PublishingUIStaticMessagePane* _tmp2_;
-#line 130 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 130 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (markup != NULL);
-#line 132 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_set_button_mode (self, button_mode);
-#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = publishing_ui_static_message_pane_new (markup, TRUE);
-#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane));
-#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 867 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_install_success_pane (SpitPublishingPluginHost* base)
-{
- SpitPublishingConcretePublishingHost * self;
- PublishingUIPublishingDialog* _tmp0_;
- SpitPublishingPublishable** _tmp1_;
- gint _tmp1__length1;
- PublishingUISuccessPane* _tmp2_;
- PublishingUISuccessPane* _tmp3_;
- PublishingUIPublishingDialog* _tmp4_;
-#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->publishables;
-#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1__length1 = self->priv->publishables_length1;
-#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = publishing_ui_success_pane_new (spit_publishing_plugin_host_get_publishable_media_type (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)), _tmp1__length1);
-#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp3_ = _tmp2_;
-#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane));
-#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp3_);
-#line 140 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp4_ = self->priv->dialog;
-#line 140 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_set_close_button_mode (_tmp4_);
-#line 144 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_clean_up (self);
-#line 903 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_install_account_fetch_wait_pane (SpitPublishingPluginHost* base)
-{
- SpitPublishingConcretePublishingHost * self;
- PublishingUIPublishingDialog* _tmp0_;
- PublishingUIAccountFetchWaitPane* _tmp1_;
- PublishingUIAccountFetchWaitPane* _tmp2_;
-#line 147 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = publishing_ui_account_fetch_wait_pane_new ();
-#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane));
-#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 149 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_set_button_mode (self, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
-#line 928 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_install_login_wait_pane (SpitPublishingPluginHost* base)
-{
- SpitPublishingConcretePublishingHost * self;
- PublishingUIPublishingDialog* _tmp0_;
- PublishingUILoginWaitPane* _tmp1_;
- PublishingUILoginWaitPane* _tmp2_;
-#line 152 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = publishing_ui_login_wait_pane_new ();
-#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane));
-#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp2_);
-#line 951 "PublishingPluginHost.c"
-}
-
-
-static void
-_spit_publishing_concrete_publishing_host_on_login_clicked_publishing_ui_login_welcome_pane_login_requested (PublishingUILoginWelcomePane* _sender,
- gpointer self)
-{
-#line 160 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_on_login_clicked ((SpitPublishingConcretePublishingHost*) self);
-#line 961 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_install_welcome_pane (SpitPublishingPluginHost* base,
- const gchar* welcome_message,
- SpitPublishingLoginCallback login_clicked_callback,
- void* login_clicked_callback_target)
-{
- SpitPublishingConcretePublishingHost * self;
- PublishingUILoginWelcomePane* login_pane = NULL;
- PublishingUILoginWelcomePane* _tmp0_;
- PublishingUIPublishingDialog* _tmp1_;
-#line 156 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 156 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (welcome_message != NULL);
-#line 157 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = publishing_ui_login_welcome_pane_new (welcome_message);
-#line 157 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- login_pane = _tmp0_;
-#line 159 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->current_login_callback = login_clicked_callback;
-#line 159 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->current_login_callback_target = login_clicked_callback_target;
-#line 160 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_signal_connect_object (login_pane, "login-requested", (GCallback) _spit_publishing_concrete_publishing_host_on_login_clicked_publishing_ui_login_welcome_pane_login_requested, self, 0);
-#line 162 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_set_button_mode (self, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE);
-#line 164 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->dialog;
-#line 164 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (login_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane));
-#line 156 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (login_pane);
-#line 997 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_set_service_locked (SpitPublishingPluginHost* base,
- gboolean locked)
-{
- SpitPublishingConcretePublishingHost * self;
-#line 167 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 168 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (locked) {
-#line 1010 "PublishingPluginHost.c"
- PublishingUIPublishingDialog* _tmp0_;
-#line 169 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 169 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_lock_service (_tmp0_);
-#line 1016 "PublishingPluginHost.c"
- } else {
- PublishingUIPublishingDialog* _tmp1_;
-#line 171 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->dialog;
-#line 171 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_unlock_service (_tmp1_);
-#line 1023 "PublishingPluginHost.c"
- }
-}
-
-
-void
-spit_publishing_concrete_publishing_host_set_button_mode (SpitPublishingConcretePublishingHost* self,
- SpitPublishingPluginHostButtonMode mode)
-{
-#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self));
-#line 175 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (mode == SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE) {
-#line 1036 "PublishingPluginHost.c"
- PublishingUIPublishingDialog* _tmp0_;
-#line 176 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 176 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_set_close_button_mode (_tmp0_);
-#line 1042 "PublishingPluginHost.c"
- } else {
-#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (mode == SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL) {
-#line 1046 "PublishingPluginHost.c"
- PublishingUIPublishingDialog* _tmp1_;
-#line 178 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = self->priv->dialog;
-#line 178 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_publishing_dialog_set_cancel_button_mode (_tmp1_);
-#line 1052 "PublishingPluginHost.c"
- } else {
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_error ("PublishingPluginHost.vala:180: unrecognized button mode enumeration va" \
-"lue");
-#line 1056 "PublishingPluginHost.c"
- }
- }
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_real_set_dialog_default_widget (SpitPublishingPluginHost* base,
- GtkWidget* widget)
-{
- SpitPublishingConcretePublishingHost * self;
- PublishingUIPublishingDialog* _tmp0_;
-#line 183 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 183 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_return_if_fail (GTK_IS_WIDGET (widget));
-#line 184 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- gtk_widget_set_can_default (widget, TRUE);
-#line 185 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 185 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_window_get_type (), GtkWindow), widget);
-#line 1078 "PublishingPluginHost.c"
-}
-
-
-static SpitPublishingPublisherMediaType
-spit_publishing_concrete_publishing_host_real_get_publishable_media_type (SpitPublishingPluginHost* base)
-{
- SpitPublishingConcretePublishingHost * self;
- SpitPublishingPublisherMediaType result = 0;
- SpitPublishingPublisherMediaType _tmp0_;
-#line 188 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 189 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->media_type;
-#line 189 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result = _tmp0_;
-#line 189 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return result;
-#line 1096 "PublishingPluginHost.c"
-}
-
-
-static SpitPublishingPublishable**
-_vala_array_dup19 (SpitPublishingPublishable** self,
- int length)
-{
- SpitPublishingPublishable** result;
- int i;
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result = g_new0 (SpitPublishingPublishable*, length + 1);
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- for (i = 0; i < length; i++) {
-#line 1110 "PublishingPluginHost.c"
- SpitPublishingPublishable* _tmp0_;
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = _g_object_ref0 (self[i]);
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result[i] = _tmp0_;
-#line 1116 "PublishingPluginHost.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return result;
-#line 1120 "PublishingPluginHost.c"
-}
-
-
-static SpitPublishingPublishable**
-spit_publishing_concrete_publishing_host_real_get_publishables (SpitPublishingPluginHost* base,
- int* result_length1)
-{
- SpitPublishingConcretePublishingHost * self;
- SpitPublishingPublishable** result = NULL;
- SpitPublishingPublishable** _tmp0_;
- gint _tmp0__length1;
- SpitPublishingPublishable** _tmp1_;
- gint _tmp1__length1;
- SpitPublishingPublishable** _tmp2_;
- gint _tmp2__length1;
-#line 192 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->publishables;
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0__length1 = self->priv->publishables_length1;
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup19 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1__length1 = _tmp0__length1;
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = _tmp1_;
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2__length1 = _tmp1__length1;
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (result_length1) {
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- *result_length1 = _tmp2__length1;
-#line 1154 "PublishingPluginHost.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result = _tmp2_;
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return result;
-#line 1160 "PublishingPluginHost.c"
-}
-
-
-static void
-_spit_publishing_concrete_publishing_host_report_plugin_upload_progress_spit_publishing_progress_callback (gint file_number,
- gdouble fraction_complete,
- gpointer self)
-{
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_report_plugin_upload_progress ((SpitPublishingConcretePublishingHost*) self, file_number, fraction_complete);
-#line 1171 "PublishingPluginHost.c"
-}
-
-
-static SpitPublishingProgressCallback
-spit_publishing_concrete_publishing_host_real_serialize_publishables (SpitPublishingPluginHost* base,
- gint content_major_axis,
- gboolean strip_metadata,
- void** result_target,
- GDestroyNotify* result_target_destroy_notify)
-{
- SpitPublishingConcretePublishingHost * self;
- SpitPublishingProgressCallback result = NULL;
- PublishingUIProgressPane* progress_pane = NULL;
- PublishingUIPublishingDialog* _tmp0_;
- SpitPublishingDialogPane* _tmp1_;
- gint i = 0;
- SpitPublishingPublishable** _tmp2_;
- gint _tmp2__length1;
- SpitPublishingProgressCallback _tmp22_;
- void* _tmp22__target;
- GDestroyNotify _tmp22__target_destroy_notify;
- GError * _inner_error_ = NULL;
-#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 198 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_install_progress_pane (self);
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp0_ = self->priv->dialog;
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp1_ = publishing_ui_publishing_dialog_get_active_pane (_tmp0_);
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- progress_pane = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane);
-#line 205 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spin_event_loop ();
-#line 207 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- i = 0;
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2_ = self->priv->publishables;
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp2__length1 = self->priv->publishables_length1;
-#line 1212 "PublishingPluginHost.c"
- {
- SpitPublishingPublishable** publishable_collection = NULL;
- gint publishable_collection_length1 = 0;
- gint _publishable_collection_size_ = 0;
- gint publishable_it = 0;
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishable_collection = _tmp2_;
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishable_collection_length1 = _tmp2__length1;
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- for (publishable_it = 0; publishable_it < _tmp2__length1; publishable_it = publishable_it + 1) {
-#line 1224 "PublishingPluginHost.c"
- SpitPublishingPublishable* _tmp3_;
- SpitPublishingPublishable* publishable = NULL;
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp3_ = _g_object_ref0 (publishable_collection[publishable_it]);
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishable = _tmp3_;
-#line 1231 "PublishingPluginHost.c"
- {
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_;
- gdouble phase_fraction_complete = 0.0;
- gint _tmp15_;
- SpitPublishingPublishable** _tmp16_;
- gint _tmp16__length1;
- gdouble fraction_complete = 0.0;
- gdouble _tmp17_;
- gdouble _tmp18_;
- PublishingUIProgressPane* _tmp19_;
- gdouble _tmp20_;
- gint _tmp21_;
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp5_ = self->priv->publishing_halted;
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (_tmp5_) {
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp4_ = TRUE;
-#line 1251 "PublishingPluginHost.c"
- } else {
- SpitPublishingPublisher* _tmp6_;
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp6_ = self->priv->active_publisher;
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp4_ = !spit_publishing_publisher_is_running (_tmp6_);
-#line 1258 "PublishingPluginHost.c"
- }
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (_tmp4_) {
-#line 1262 "PublishingPluginHost.c"
- SpitPublishingProgressCallback _tmp7_;
- void* _tmp7__target;
- GDestroyNotify _tmp7__target_destroy_notify;
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp7_ = NULL;
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp7__target = NULL;
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp7__target_destroy_notify = NULL;
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- *result_target = _tmp7__target;
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- *result_target_destroy_notify = _tmp7__target_destroy_notify;
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result = _tmp7_;
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (publishable);
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (progress_pane);
-#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return result;
-#line 1284 "PublishingPluginHost.c"
- }
- {
- PublishingGlueMediaSourcePublishableWrapper* wrapper = NULL;
- SpitPublishingPublishable* _tmp8_;
- PublishingGlueMediaSourcePublishableWrapper* _tmp9_;
- PublishingGlueMediaSourcePublishableWrapper* _tmp10_;
- GFile* _tmp11_;
- GFile* _tmp12_;
-#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp8_ = publishable;
-#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper));
-#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- wrapper = _tmp9_;
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp10_ = wrapper;
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp11_ = publishing_glue_media_source_publishable_wrapper_serialize_for_publishing (_tmp10_, content_major_axis, strip_metadata, &_inner_error_);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp12_ = _tmp11_;
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (_tmp12_);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (wrapper);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
-#line 1313 "PublishingPluginHost.c"
- goto __catch42_spit_publishing_publishing_error;
- }
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (wrapper);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (publishable);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (progress_pane);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.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 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_clear_error (&_inner_error_);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return NULL;
-#line 1328 "PublishingPluginHost.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (wrapper);
-#line 1332 "PublishingPluginHost.c"
- }
- goto __finally42;
- __catch42_spit_publishing_publishing_error:
- {
- GError* err = NULL;
- GError* _tmp13_;
- SpitPublishingProgressCallback _tmp14_;
- void* _tmp14__target;
- GDestroyNotify _tmp14__target_destroy_notify;
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- err = _inner_error_;
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _inner_error_ = NULL;
-#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp13_ = err;
-#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_plugin_host_post_error (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost), _tmp13_);
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp14_ = NULL;
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp14__target = NULL;
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp14__target_destroy_notify = NULL;
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- *result_target = _tmp14__target;
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- *result_target_destroy_notify = _tmp14__target_destroy_notify;
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result = _tmp14_;
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_error_free0 (err);
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (publishable);
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (progress_pane);
-#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return result;
-#line 1370 "PublishingPluginHost.c"
- }
- __finally42:
-#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"
- _g_object_unref0 (publishable);
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (progress_pane);
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.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 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_clear_error (&_inner_error_);
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return NULL;
-#line 1385 "PublishingPluginHost.c"
- }
-#line 221 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp15_ = i;
-#line 221 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp16_ = self->priv->publishables;
-#line 221 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp16__length1 = self->priv->publishables_length1;
-#line 221 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- phase_fraction_complete = ((gdouble) (_tmp15_ + 1)) / ((gdouble) _tmp16__length1);
-#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp17_ = phase_fraction_complete;
-#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- fraction_complete = _tmp17_ * SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_PREPARATION_FRACTION;
-#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp18_ = fraction_complete;
-#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_debug ("PublishingPluginHost.vala:224: serialize_publishables( ): fraction_com" \
-"plete = %f.", _tmp18_);
-#line 226 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp19_ = progress_pane;
-#line 226 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp20_ = fraction_complete;
-#line 226 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- publishing_ui_progress_pane_set_status (_tmp19_, SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_PREPARE_STATUS_DESCRIPTION, _tmp20_);
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spin_event_loop ();
-#line 230 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp21_ = i;
-#line 230 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- i = _tmp21_ + 1;
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (publishable);
-#line 1417 "PublishingPluginHost.c"
- }
- }
- }
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp22_ = _spit_publishing_concrete_publishing_host_report_plugin_upload_progress_spit_publishing_progress_callback;
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp22__target = g_object_ref (self);
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _tmp22__target_destroy_notify = g_object_unref;
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- *result_target = _tmp22__target;
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- *result_target_destroy_notify = _tmp22__target_destroy_notify;
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- result = _tmp22_;
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (progress_pane);
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- return result;
-#line 1437 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_class_init (SpitPublishingConcretePublishingHostClass * klass)
-{
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- g_type_class_add_private (klass, sizeof (SpitPublishingConcretePublishingHostPrivate));
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- G_OBJECT_CLASS (klass)->finalize = spit_publishing_concrete_publishing_host_finalize;
-#line 1450 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_spit_publishing_plugin_host_interface_init (SpitPublishingPluginHostIface * iface)
-{
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- spit_publishing_concrete_publishing_host_spit_publishing_plugin_host_parent_iface = g_type_interface_peek_parent (iface);
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->install_dialog_pane = (void (*) (SpitPublishingPluginHost *, SpitPublishingDialogPane*, SpitPublishingPluginHostButtonMode)) spit_publishing_concrete_publishing_host_real_install_dialog_pane;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->post_error = (void (*) (SpitPublishingPluginHost *, GError*)) spit_publishing_concrete_publishing_host_real_post_error;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->stop_publishing = (void (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_stop_publishing;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->get_publisher = (SpitPublishingPublisher* (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_get_publisher;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->install_static_message_pane = (void (*) (SpitPublishingPluginHost *, const gchar*, SpitPublishingPluginHostButtonMode)) spit_publishing_concrete_publishing_host_real_install_static_message_pane;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->install_pango_message_pane = (void (*) (SpitPublishingPluginHost *, const gchar*, SpitPublishingPluginHostButtonMode)) spit_publishing_concrete_publishing_host_real_install_pango_message_pane;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->install_success_pane = (void (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_install_success_pane;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->install_account_fetch_wait_pane = (void (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_install_account_fetch_wait_pane;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->install_login_wait_pane = (void (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_install_login_wait_pane;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->install_welcome_pane = (void (*) (SpitPublishingPluginHost *, const gchar*, SpitPublishingLoginCallback, void*)) spit_publishing_concrete_publishing_host_real_install_welcome_pane;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->set_service_locked = (void (*) (SpitPublishingPluginHost *, gboolean)) spit_publishing_concrete_publishing_host_real_set_service_locked;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->set_dialog_default_widget = (void (*) (SpitPublishingPluginHost *, GtkWidget*)) spit_publishing_concrete_publishing_host_real_set_dialog_default_widget;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->get_publishable_media_type = (SpitPublishingPublisherMediaType (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_get_publishable_media_type;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->get_publishables = (SpitPublishingPublishable** (*) (SpitPublishingPluginHost *, int*)) spit_publishing_concrete_publishing_host_real_get_publishables;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- iface->serialize_publishables = (SpitPublishingProgressCallback (*) (SpitPublishingPluginHost *, gint, gboolean, void**, GDestroyNotify*)) spit_publishing_concrete_publishing_host_real_serialize_publishables;
-#line 1489 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_instance_init (SpitPublishingConcretePublishingHost * self)
-{
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv = SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_GET_PRIVATE (self);
-#line 16 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->dialog = NULL;
-#line 17 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->active_publisher = NULL;
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->publishables = NULL;
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->publishables_length1 = 0;
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->_publishables_size_ = self->priv->publishables_length1;
-#line 19 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->current_login_callback = NULL;
-#line 19 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->current_login_callback_target = self;
-#line 20 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->publishing_halted = FALSE;
-#line 21 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE;
-#line 1516 "PublishingPluginHost.c"
-}
-
-
-static void
-spit_publishing_concrete_publishing_host_finalize (GObject * obj)
-{
- SpitPublishingConcretePublishingHost * self;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost);
-#line 17 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- _g_object_unref0 (self->priv->active_publisher);
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala"
- G_OBJECT_CLASS (spit_publishing_concrete_publishing_host_parent_class)->finalize (obj);
-#line 1532 "PublishingPluginHost.c"
-}
-
-
-GType
-spit_publishing_concrete_publishing_host_get_type (void)
-{
- static volatile gsize spit_publishing_concrete_publishing_host_type_id__volatile = 0;
- if (g_once_init_enter (&spit_publishing_concrete_publishing_host_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingConcretePublishingHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_publishing_concrete_publishing_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitPublishingConcretePublishingHost), 0, (GInstanceInitFunc) spit_publishing_concrete_publishing_host_instance_init, NULL };
- static const GInterfaceInfo spit_publishing_plugin_host_info = { (GInterfaceInitFunc) spit_publishing_concrete_publishing_host_spit_publishing_plugin_host_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType spit_publishing_concrete_publishing_host_type_id;
- spit_publishing_concrete_publishing_host_type_id = g_type_register_static (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, "SpitPublishingConcretePublishingHost", &g_define_type_info, 0);
- g_type_add_interface_static (spit_publishing_concrete_publishing_host_type_id, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, &spit_publishing_plugin_host_info);
- g_once_init_leave (&spit_publishing_concrete_publishing_host_type_id__volatile, spit_publishing_concrete_publishing_host_type_id);
- }
- return spit_publishing_concrete_publishing_host_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/publishing/PublishingUI.c b/src/publishing/PublishingUI.c
deleted file mode 100644
index 218b1ff..0000000
--- a/src/publishing/PublishingUI.c
+++ /dev/null
@@ -1,3669 +0,0 @@
-/* PublishingUI.c generated by valac 0.40.4, the Vala compiler
- * generated from PublishingUI.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <float.h>
-#include <math.h>
-#include <glib/gi18n-lib.h>
-#include <gee.h>
-#include <gdk/gdk.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-
-#define PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE (publishing_ui_concrete_dialog_pane_get_type ())
-#define PUBLISHING_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane))
-#define PUBLISHING_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPaneClass))
-#define PUBLISHING_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE))
-#define PUBLISHING_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE))
-#define PUBLISHING_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPaneClass))
-
-typedef struct _PublishingUIConcreteDialogPane PublishingUIConcreteDialogPane;
-typedef struct _PublishingUIConcreteDialogPaneClass PublishingUIConcreteDialogPaneClass;
-typedef struct _PublishingUIConcreteDialogPanePrivate PublishingUIConcreteDialogPanePrivate;
-enum {
- PUBLISHING_UI_CONCRETE_DIALOG_PANE_0_PROPERTY,
- PUBLISHING_UI_CONCRETE_DIALOG_PANE_NUM_PROPERTIES
-};
-static GParamSpec* publishing_ui_concrete_dialog_pane_properties[PUBLISHING_UI_CONCRETE_DIALOG_PANE_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE (publishing_ui_static_message_pane_get_type ())
-#define PUBLISHING_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePane))
-#define PUBLISHING_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePaneClass))
-#define PUBLISHING_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE))
-#define PUBLISHING_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE))
-#define PUBLISHING_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePaneClass))
-
-typedef struct _PublishingUIStaticMessagePane PublishingUIStaticMessagePane;
-typedef struct _PublishingUIStaticMessagePaneClass PublishingUIStaticMessagePaneClass;
-typedef struct _PublishingUIStaticMessagePanePrivate PublishingUIStaticMessagePanePrivate;
-enum {
- PUBLISHING_UI_STATIC_MESSAGE_PANE_0_PROPERTY,
- PUBLISHING_UI_STATIC_MESSAGE_PANE_NUM_PROPERTIES
-};
-static GParamSpec* publishing_ui_static_message_pane_properties[PUBLISHING_UI_STATIC_MESSAGE_PANE_NUM_PROPERTIES];
-
-#define PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE (publishing_ui_login_welcome_pane_get_type ())
-#define PUBLISHING_UI_LOGIN_WELCOME_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePane))
-#define PUBLISHING_UI_LOGIN_WELCOME_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePaneClass))
-#define PUBLISHING_UI_IS_LOGIN_WELCOME_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE))
-#define PUBLISHING_UI_IS_LOGIN_WELCOME_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE))
-#define PUBLISHING_UI_LOGIN_WELCOME_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePaneClass))
-
-typedef struct _PublishingUILoginWelcomePane PublishingUILoginWelcomePane;
-typedef struct _PublishingUILoginWelcomePaneClass PublishingUILoginWelcomePaneClass;
-typedef struct _PublishingUILoginWelcomePanePrivate PublishingUILoginWelcomePanePrivate;
-enum {
- PUBLISHING_UI_LOGIN_WELCOME_PANE_0_PROPERTY,
- PUBLISHING_UI_LOGIN_WELCOME_PANE_NUM_PROPERTIES
-};
-static GParamSpec* publishing_ui_login_welcome_pane_properties[PUBLISHING_UI_LOGIN_WELCOME_PANE_NUM_PROPERTIES];
-enum {
- PUBLISHING_UI_LOGIN_WELCOME_PANE_LOGIN_REQUESTED_SIGNAL,
- PUBLISHING_UI_LOGIN_WELCOME_PANE_NUM_SIGNALS
-};
-static guint publishing_ui_login_welcome_pane_signals[PUBLISHING_UI_LOGIN_WELCOME_PANE_NUM_SIGNALS] = {0};
-
-#define PUBLISHING_UI_TYPE_PROGRESS_PANE (publishing_ui_progress_pane_get_type ())
-#define PUBLISHING_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane))
-#define PUBLISHING_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPaneClass))
-#define PUBLISHING_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE))
-#define PUBLISHING_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_PROGRESS_PANE))
-#define PUBLISHING_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPaneClass))
-
-typedef struct _PublishingUIProgressPane PublishingUIProgressPane;
-typedef struct _PublishingUIProgressPaneClass PublishingUIProgressPaneClass;
-typedef struct _PublishingUIProgressPanePrivate PublishingUIProgressPanePrivate;
-enum {
- PUBLISHING_UI_PROGRESS_PANE_0_PROPERTY,
- PUBLISHING_UI_PROGRESS_PANE_NUM_PROPERTIES
-};
-static GParamSpec* publishing_ui_progress_pane_properties[PUBLISHING_UI_PROGRESS_PANE_NUM_PROPERTIES];
-
-#define PUBLISHING_UI_TYPE_SUCCESS_PANE (publishing_ui_success_pane_get_type ())
-#define PUBLISHING_UI_SUCCESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPane))
-#define PUBLISHING_UI_SUCCESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPaneClass))
-#define PUBLISHING_UI_IS_SUCCESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE))
-#define PUBLISHING_UI_IS_SUCCESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_SUCCESS_PANE))
-#define PUBLISHING_UI_SUCCESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPaneClass))
-
-typedef struct _PublishingUISuccessPane PublishingUISuccessPane;
-typedef struct _PublishingUISuccessPaneClass PublishingUISuccessPaneClass;
-typedef struct _PublishingUISuccessPanePrivate PublishingUISuccessPanePrivate;
-enum {
- PUBLISHING_UI_SUCCESS_PANE_0_PROPERTY,
- PUBLISHING_UI_SUCCESS_PANE_NUM_PROPERTIES
-};
-static GParamSpec* publishing_ui_success_pane_properties[PUBLISHING_UI_SUCCESS_PANE_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE (publishing_ui_account_fetch_wait_pane_get_type ())
-#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPane))
-#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPaneClass))
-#define PUBLISHING_UI_IS_ACCOUNT_FETCH_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE))
-#define PUBLISHING_UI_IS_ACCOUNT_FETCH_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE))
-#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPaneClass))
-
-typedef struct _PublishingUIAccountFetchWaitPane PublishingUIAccountFetchWaitPane;
-typedef struct _PublishingUIAccountFetchWaitPaneClass PublishingUIAccountFetchWaitPaneClass;
-typedef struct _PublishingUIAccountFetchWaitPanePrivate PublishingUIAccountFetchWaitPanePrivate;
-enum {
- PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_0_PROPERTY,
- PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_NUM_PROPERTIES
-};
-static GParamSpec* publishing_ui_account_fetch_wait_pane_properties[PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_NUM_PROPERTIES];
-
-#define PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE (publishing_ui_login_wait_pane_get_type ())
-#define PUBLISHING_UI_LOGIN_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPane))
-#define PUBLISHING_UI_LOGIN_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPaneClass))
-#define PUBLISHING_UI_IS_LOGIN_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE))
-#define PUBLISHING_UI_IS_LOGIN_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE))
-#define PUBLISHING_UI_LOGIN_WAIT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPaneClass))
-
-typedef struct _PublishingUILoginWaitPane PublishingUILoginWaitPane;
-typedef struct _PublishingUILoginWaitPaneClass PublishingUILoginWaitPaneClass;
-typedef struct _PublishingUILoginWaitPanePrivate PublishingUILoginWaitPanePrivate;
-enum {
- PUBLISHING_UI_LOGIN_WAIT_PANE_0_PROPERTY,
- PUBLISHING_UI_LOGIN_WAIT_PANE_NUM_PROPERTIES
-};
-static GParamSpec* publishing_ui_login_wait_pane_properties[PUBLISHING_UI_LOGIN_WAIT_PANE_NUM_PROPERTIES];
-
-#define PUBLISHING_UI_TYPE_PUBLISHING_DIALOG (publishing_ui_publishing_dialog_get_type ())
-#define PUBLISHING_UI_PUBLISHING_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialog))
-#define PUBLISHING_UI_PUBLISHING_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogClass))
-#define PUBLISHING_UI_IS_PUBLISHING_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG))
-#define PUBLISHING_UI_IS_PUBLISHING_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG))
-#define PUBLISHING_UI_PUBLISHING_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogClass))
-
-typedef struct _PublishingUIPublishingDialog PublishingUIPublishingDialog;
-typedef struct _PublishingUIPublishingDialogClass PublishingUIPublishingDialogClass;
-typedef struct _PublishingUIPublishingDialogPrivate PublishingUIPublishingDialogPrivate;
-
-#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ())
-#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface))
-#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-
-typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface;
-typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass;
-
-#define SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST (spit_publishing_concrete_publishing_host_get_type ())
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost))
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostClass))
-#define SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST))
-#define SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST))
-#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostClass))
-
-typedef struct _SpitPublishingConcretePublishingHost SpitPublishingConcretePublishingHost;
-typedef struct _SpitPublishingConcretePublishingHostClass SpitPublishingConcretePublishingHostClass;
-enum {
- PUBLISHING_UI_PUBLISHING_DIALOG_0_PROPERTY,
- PUBLISHING_UI_PUBLISHING_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* publishing_ui_publishing_dialog_properties[PUBLISHING_UI_PUBLISHING_DIALOG_NUM_PROPERTIES];
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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 PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (publishing_glue_media_source_publishable_wrapper_get_type ())
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper))
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass))
-#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER))
-#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER))
-#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass))
-
-typedef struct _PublishingGlueMediaSourcePublishableWrapper PublishingGlueMediaSourcePublishableWrapper;
-typedef struct _PublishingGlueMediaSourcePublishableWrapperClass PublishingGlueMediaSourcePublishableWrapperClass;
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
-
-#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 (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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_VIDEO (video_get_type ())
-#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
-#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
-#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
-#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
-#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))
-
-typedef struct _Video Video;
-typedef struct _VideoClass VideoClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _PublishingUIConcreteDialogPane {
- GObject parent_instance;
- PublishingUIConcreteDialogPanePrivate * priv;
- GtkBox* pane_widget;
- GtkBuilder* builder;
-};
-
-struct _PublishingUIConcreteDialogPaneClass {
- GObjectClass parent_class;
-};
-
-struct _PublishingUIStaticMessagePane {
- PublishingUIConcreteDialogPane parent_instance;
- PublishingUIStaticMessagePanePrivate * priv;
-};
-
-struct _PublishingUIStaticMessagePaneClass {
- PublishingUIConcreteDialogPaneClass parent_class;
-};
-
-struct _PublishingUIStaticMessagePanePrivate {
- GtkLabel* msg_label;
-};
-
-struct _PublishingUILoginWelcomePane {
- PublishingUIConcreteDialogPane parent_instance;
- PublishingUILoginWelcomePanePrivate * priv;
-};
-
-struct _PublishingUILoginWelcomePaneClass {
- PublishingUIConcreteDialogPaneClass parent_class;
-};
-
-struct _PublishingUILoginWelcomePanePrivate {
- GtkButton* login_button;
- GtkLabel* not_logged_in_label;
-};
-
-struct _PublishingUIProgressPane {
- PublishingUIConcreteDialogPane parent_instance;
- PublishingUIProgressPanePrivate * priv;
-};
-
-struct _PublishingUIProgressPaneClass {
- PublishingUIConcreteDialogPaneClass parent_class;
-};
-
-struct _PublishingUIProgressPanePrivate {
- GtkProgressBar* progress_bar;
-};
-
-struct _PublishingUISuccessPane {
- PublishingUIStaticMessagePane parent_instance;
- PublishingUISuccessPanePrivate * priv;
-};
-
-struct _PublishingUISuccessPaneClass {
- PublishingUIStaticMessagePaneClass parent_class;
-};
-
-struct _PublishingUIAccountFetchWaitPane {
- PublishingUIStaticMessagePane parent_instance;
- PublishingUIAccountFetchWaitPanePrivate * priv;
-};
-
-struct _PublishingUIAccountFetchWaitPaneClass {
- PublishingUIStaticMessagePaneClass parent_class;
-};
-
-struct _PublishingUILoginWaitPane {
- PublishingUIStaticMessagePane parent_instance;
- PublishingUILoginWaitPanePrivate * priv;
-};
-
-struct _PublishingUILoginWaitPaneClass {
- PublishingUIStaticMessagePaneClass parent_class;
-};
-
-struct _PublishingUIPublishingDialog {
- GtkDialog parent_instance;
- PublishingUIPublishingDialogPrivate * priv;
-};
-
-struct _PublishingUIPublishingDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _PublishingUIPublishingDialogPrivate {
- GtkListStore* service_selector_box_model;
- GtkComboBox* service_selector_box;
- GtkBox* central_area_layouter;
- GtkButton* close_cancel_button;
- SpitPublishingDialogPane* active_pane;
- SpitPublishingPublishable** publishables;
- gint publishables_length1;
- gint _publishables_size_;
- SpitPublishingConcretePublishingHost* host;
- SpitPluggableInfo info;
-};
-
-
-static gpointer publishing_ui_concrete_dialog_pane_parent_class = NULL;
-static SpitPublishingDialogPaneIface * publishing_ui_concrete_dialog_pane_spit_publishing_dialog_pane_parent_iface = NULL;
-static gpointer publishing_ui_static_message_pane_parent_class = NULL;
-static gpointer publishing_ui_login_welcome_pane_parent_class = NULL;
-static gpointer publishing_ui_progress_pane_parent_class = NULL;
-static gpointer publishing_ui_success_pane_parent_class = NULL;
-static gpointer publishing_ui_account_fetch_wait_pane_parent_class = NULL;
-static gpointer publishing_ui_login_wait_pane_parent_class = NULL;
-static gpointer publishing_ui_publishing_dialog_parent_class = NULL;
-static PublishingUIPublishingDialog* publishing_ui_publishing_dialog_active_instance;
-static PublishingUIPublishingDialog* publishing_ui_publishing_dialog_active_instance = NULL;
-static GTimer* publishing_ui_publishing_dialog_since_last_start;
-static GTimer* publishing_ui_publishing_dialog_since_last_start = NULL;
-static gboolean publishing_ui_publishing_dialog_elapsed_is_valid;
-static gboolean publishing_ui_publishing_dialog_elapsed_is_valid = FALSE;
-
-GType publishing_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST;
-PublishingUIConcreteDialogPane* publishing_ui_concrete_dialog_pane_new (void);
-PublishingUIConcreteDialogPane* publishing_ui_concrete_dialog_pane_construct (GType object_type);
-GtkBuilder* app_window_create_builder (const gchar* glade_filename,
- void* user);
-static GtkWidget* publishing_ui_concrete_dialog_pane_real_get_widget (SpitPublishingDialogPane* base);
-static SpitPublishingDialogPaneGeometryOptions publishing_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
-static void publishing_ui_concrete_dialog_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
-static void publishing_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
-static void publishing_ui_concrete_dialog_pane_finalize (GObject * obj);
-GType publishing_ui_static_message_pane_get_type (void) G_GNUC_CONST;
-#define PUBLISHING_UI_STATIC_MESSAGE_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePanePrivate))
-PublishingUIStaticMessagePane* publishing_ui_static_message_pane_new (const gchar* message_string,
- gboolean enable_markup);
-PublishingUIStaticMessagePane* publishing_ui_static_message_pane_construct (GType object_type,
- const gchar* message_string,
- gboolean enable_markup);
-static void publishing_ui_static_message_pane_finalize (GObject * obj);
-GType publishing_ui_login_welcome_pane_get_type (void) G_GNUC_CONST;
-#define PUBLISHING_UI_LOGIN_WELCOME_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePanePrivate))
-PublishingUILoginWelcomePane* publishing_ui_login_welcome_pane_new (const gchar* service_welcome_message);
-PublishingUILoginWelcomePane* publishing_ui_login_welcome_pane_construct (GType object_type,
- const gchar* service_welcome_message);
-static void publishing_ui_login_welcome_pane_on_login_clicked (PublishingUILoginWelcomePane* self);
-static void _publishing_ui_login_welcome_pane_on_login_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void publishing_ui_login_welcome_pane_finalize (GObject * obj);
-GType publishing_ui_progress_pane_get_type (void) G_GNUC_CONST;
-#define PUBLISHING_UI_PROGRESS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPanePrivate))
-PublishingUIProgressPane* publishing_ui_progress_pane_new (void);
-PublishingUIProgressPane* publishing_ui_progress_pane_construct (GType object_type);
-void publishing_ui_progress_pane_set_text (PublishingUIProgressPane* self,
- const gchar* text);
-void publishing_ui_progress_pane_set_progress (PublishingUIProgressPane* self,
- gdouble progress);
-void publishing_ui_progress_pane_set_status (PublishingUIProgressPane* self,
- const gchar* status_text,
- gdouble progress);
-static void publishing_ui_progress_pane_finalize (GObject * obj);
-GType publishing_ui_success_pane_get_type (void) G_GNUC_CONST;
-PublishingUISuccessPane* publishing_ui_success_pane_new (SpitPublishingPublisherMediaType published_media,
- gint num_uploaded);
-PublishingUISuccessPane* publishing_ui_success_pane_construct (GType object_type,
- SpitPublishingPublisherMediaType published_media,
- gint num_uploaded);
-GType publishing_ui_account_fetch_wait_pane_get_type (void) G_GNUC_CONST;
-PublishingUIAccountFetchWaitPane* publishing_ui_account_fetch_wait_pane_new (void);
-PublishingUIAccountFetchWaitPane* publishing_ui_account_fetch_wait_pane_construct (GType object_type);
-GType publishing_ui_login_wait_pane_get_type (void) G_GNUC_CONST;
-PublishingUILoginWaitPane* publishing_ui_login_wait_pane_new (void);
-PublishingUILoginWaitPane* publishing_ui_login_wait_pane_construct (GType object_type);
-GType publishing_ui_publishing_dialog_get_type (void) G_GNUC_CONST;
-GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST;
-GType spit_publishing_concrete_publishing_host_get_type (void) G_GNUC_CONST;
-#define PUBLISHING_UI_PUBLISHING_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogPrivate))
-#define PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_WIDTH 860
-#define PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_HEIGHT 688
-#define PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_WIDTH 1024
-#define PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_HEIGHT 688
-#define PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_WIDTH 632
-#define PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_HEIGHT 540
-#define PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_WIDTH 16
-#define PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_HEIGHT 100
-#define PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_CONTENT_LABEL_WIDTH 500
-#define PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_ACTION_BUTTON_WIDTH 128
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-PublishingUIPublishingDialog* publishing_ui_publishing_dialog_new (GeeCollection* to_publish);
-PublishingUIPublishingDialog* publishing_ui_publishing_dialog_construct (GType object_type,
- GeeCollection* to_publish);
-gint resources_use_header_bar (void);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-static gboolean publishing_ui_publishing_dialog_on_window_close (PublishingUIPublishingDialog* self,
- GdkEventAny* evt);
-static gboolean _publishing_ui_publishing_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self);
-PublishingGlueMediaSourcePublishableWrapper* publishing_glue_media_source_publishable_wrapper_new (MediaSource* to_wrap);
-PublishingGlueMediaSourcePublishableWrapper* publishing_glue_media_source_publishable_wrapper_construct (GType object_type,
- MediaSource* to_wrap);
-GType publishing_glue_media_source_publishable_wrapper_get_type (void) G_GNUC_CONST;
-static void _vala_array_add58 (SpitPublishingPublishable** * array,
- int* length,
- int* size,
- SpitPublishingPublishable* value);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gchar* configuration_facade_get_last_used_service (ConfigurationFacade* self);
-static SpitPublishingService** publishing_ui_publishing_dialog_load_services (gboolean has_photos,
- gboolean has_videos,
- int* result_length1);
-GdkPixbuf* resources_get_icon (const gchar* name,
- gint scale);
-#define RESOURCES_ICON_GENERIC_PLUGIN "generic-plugin.png"
-#define RESOURCES_DEFAULT_ICON_SCALE 24
-static void publishing_ui_publishing_dialog_on_service_changed (PublishingUIPublishingDialog* self);
-static void _publishing_ui_publishing_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void publishing_ui_publishing_dialog_on_close_cancel_clicked (PublishingUIPublishingDialog* self);
-static void _publishing_ui_publishing_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void publishing_ui_publishing_dialog_set_standard_window_mode (PublishingUIPublishingDialog* self);
-static SpitPublishingService** publishing_ui_publishing_dialog_load_all_services (int* result_length1);
-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_add59 (SpitPublishingService** * array,
- int* length,
- int* size,
- SpitPublishingService* value);
-static gint __lambda16_ (void* a,
- void* b);
-gint utf8_cs_compare (void* a,
- void* b);
-static gint ___lambda16____compar_fn_t (void* key1,
- void* key2);
-static void _vala_array_add60 (SpitPublishingService** * array,
- int* length,
- int* size,
- SpitPublishingService* value);
-static void _vala_array_add61 (SpitPublishingService** * array,
- int* length,
- int* size,
- SpitPublishingService* value);
-static void _vala_array_add62 (SpitPublishingService** * array,
- int* length,
- int* size,
- SpitPublishingService* value);
-void publishing_ui_publishing_dialog_go (GeeCollection* to_publish);
-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;
-GType video_source_get_type (void) G_GNUC_CONST;
-GType video_get_type (void) G_GNUC_CONST;
-void media_source_collection_filter_media (GeeCollection* media,
- GeeCollection* photos,
- GeeCollection* videos);
-void app_window_error_message_with_title (const gchar* title,
- const gchar* message,
- GtkWindow* parent,
- gboolean should_escape);
-gint publishing_ui_publishing_dialog_run (PublishingUIPublishingDialog* self);
-void configuration_facade_set_last_used_service (ConfigurationFacade* self,
- const gchar* service_name);
-SpitPublishingConcretePublishingHost* spit_publishing_concrete_publishing_host_new (SpitPublishingService* service,
- PublishingUIPublishingDialog* dialog,
- SpitPublishingPublishable** publishables,
- int publishables_length1);
-SpitPublishingConcretePublishingHost* spit_publishing_concrete_publishing_host_construct (GType object_type,
- SpitPublishingService* service,
- PublishingUIPublishingDialog* dialog,
- SpitPublishingPublishable** publishables,
- int publishables_length1);
-void spit_publishing_concrete_publishing_host_start_publishing (SpitPublishingConcretePublishingHost* self);
-static void publishing_ui_publishing_dialog_set_large_window_mode (PublishingUIPublishingDialog* self);
-static void publishing_ui_publishing_dialog_set_colossal_window_mode (PublishingUIPublishingDialog* self);
-static void publishing_ui_publishing_dialog_set_free_sizable_window_mode (PublishingUIPublishingDialog* self);
-static void publishing_ui_publishing_dialog_clear_free_sizable_window_mode (PublishingUIPublishingDialog* self);
-SpitPublishingDialogPane* publishing_ui_publishing_dialog_get_active_pane (PublishingUIPublishingDialog* self);
-void publishing_ui_publishing_dialog_set_close_button_mode (PublishingUIPublishingDialog* self);
-void publishing_ui_publishing_dialog_set_cancel_button_mode (PublishingUIPublishingDialog* self);
-void publishing_ui_publishing_dialog_lock_service (PublishingUIPublishingDialog* self);
-void publishing_ui_publishing_dialog_unlock_service (PublishingUIPublishingDialog* self);
-void publishing_ui_publishing_dialog_install_pane (PublishingUIPublishingDialog* self,
- SpitPublishingDialogPane* pane);
-static void publishing_ui_publishing_dialog_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);
-
-
-PublishingUIConcreteDialogPane*
-publishing_ui_concrete_dialog_pane_construct (GType object_type)
-{
- PublishingUIConcreteDialogPane * self = NULL;
- GtkBuilder* _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = (PublishingUIConcreteDialogPane*) g_object_new (object_type, NULL);
-#line 14 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = app_window_create_builder ("shotwell.ui", NULL);
-#line 14 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->builder);
-#line 14 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->builder = _tmp0_;
-#line 13 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self;
-#line 640 "PublishingUI.c"
-}
-
-
-PublishingUIConcreteDialogPane*
-publishing_ui_concrete_dialog_pane_new (void)
-{
-#line 13 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return publishing_ui_concrete_dialog_pane_construct (PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE);
-#line 649 "PublishingUI.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self ? g_object_ref (self) : NULL;
-#line 658 "PublishingUI.c"
-}
-
-
-static GtkWidget*
-publishing_ui_concrete_dialog_pane_real_get_widget (SpitPublishingDialogPane* base)
-{
- PublishingUIConcreteDialogPane * self;
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 17 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane);
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->pane_widget;
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- result = _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 679 "PublishingUI.c"
-}
-
-
-static SpitPublishingDialogPaneGeometryOptions
-publishing_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base)
-{
- PublishingUIConcreteDialogPane * self;
- SpitPublishingDialogPaneGeometryOptions result = 0;
-#line 21 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane);
-#line 22 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
-#line 22 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 694 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_concrete_dialog_pane_real_on_pane_installed (SpitPublishingDialogPane* base)
-{
- PublishingUIConcreteDialogPane * self;
-#line 25 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane);
-#line 704 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base)
-{
- PublishingUIConcreteDialogPane * self;
-#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane);
-#line 714 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_concrete_dialog_pane_class_init (PublishingUIConcreteDialogPaneClass * klass)
-{
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_concrete_dialog_pane_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (klass)->finalize = publishing_ui_concrete_dialog_pane_finalize;
-#line 725 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_concrete_dialog_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface)
-{
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_concrete_dialog_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_ui_concrete_dialog_pane_real_get_widget;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_ui_concrete_dialog_pane_real_get_preferred_geometry;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_ui_concrete_dialog_pane_real_on_pane_installed;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_ui_concrete_dialog_pane_real_on_pane_uninstalled;
-#line 742 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_concrete_dialog_pane_instance_init (PublishingUIConcreteDialogPane * self)
-{
-#line 10 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->pane_widget = NULL;
-#line 11 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->builder = NULL;
-#line 753 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_concrete_dialog_pane_finalize (GObject * obj)
-{
- PublishingUIConcreteDialogPane * self;
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane);
-#line 10 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->pane_widget);
-#line 11 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->builder);
-#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (publishing_ui_concrete_dialog_pane_parent_class)->finalize (obj);
-#line 769 "PublishingUI.c"
-}
-
-
-GType
-publishing_ui_concrete_dialog_pane_get_type (void)
-{
- static volatile gsize publishing_ui_concrete_dialog_pane_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_ui_concrete_dialog_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingUIConcreteDialogPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_concrete_dialog_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIConcreteDialogPane), 0, (GInstanceInitFunc) publishing_ui_concrete_dialog_pane_instance_init, NULL };
- static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_ui_concrete_dialog_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType publishing_ui_concrete_dialog_pane_type_id;
- publishing_ui_concrete_dialog_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingUIConcreteDialogPane", &g_define_type_info, 0);
- g_type_add_interface_static (publishing_ui_concrete_dialog_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
- g_once_init_leave (&publishing_ui_concrete_dialog_pane_type_id__volatile, publishing_ui_concrete_dialog_pane_type_id);
- }
- return publishing_ui_concrete_dialog_pane_type_id__volatile;
-}
-
-
-PublishingUIStaticMessagePane*
-publishing_ui_static_message_pane_construct (GType object_type,
- const gchar* message_string,
- gboolean enable_markup)
-{
- PublishingUIStaticMessagePane * self = NULL;
- GtkBuilder* _tmp0_;
- GObject* _tmp1_;
- GtkLabel* _tmp2_;
- GtkBuilder* _tmp3_;
- GObject* _tmp4_;
- GtkBox* _tmp5_;
-#line 35 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_val_if_fail (message_string != NULL, NULL);
-#line 36 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = (PublishingUIStaticMessagePane*) publishing_ui_concrete_dialog_pane_construct (object_type);
-#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder;
-#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = gtk_builder_get_object (_tmp0_, "static_msg_label");
-#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp1_) : NULL);
-#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->msg_label);
-#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->msg_label = _tmp2_;
-#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder;
-#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = gtk_builder_get_object (_tmp3_, "static_msg_pane_widget");
-#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_box_get_type ()) ? ((GtkBox*) _tmp4_) : NULL);
-#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget);
-#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget = _tmp5_;
-#line 40 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (enable_markup) {
-#line 827 "PublishingUI.c"
- GtkLabel* _tmp6_;
- GtkLabel* _tmp7_;
- GtkLabel* _tmp8_;
-#line 41 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp6_ = self->priv->msg_label;
-#line 41 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_label_set_markup (_tmp6_, message_string);
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = self->priv->msg_label;
-#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_label_set_line_wrap (_tmp7_, TRUE);
-#line 43 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8_ = self->priv->msg_label;
-#line 43 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_label_set_use_markup (_tmp8_, TRUE);
-#line 843 "PublishingUI.c"
- } else {
- GtkLabel* _tmp9_;
-#line 45 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp9_ = self->priv->msg_label;
-#line 45 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_label_set_label (_tmp9_, message_string);
-#line 850 "PublishingUI.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self;
-#line 854 "PublishingUI.c"
-}
-
-
-PublishingUIStaticMessagePane*
-publishing_ui_static_message_pane_new (const gchar* message_string,
- gboolean enable_markup)
-{
-#line 35 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return publishing_ui_static_message_pane_construct (PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, message_string, enable_markup);
-#line 864 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_static_message_pane_class_init (PublishingUIStaticMessagePaneClass * klass)
-{
-#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_static_message_pane_parent_class = g_type_class_peek_parent (klass);
-#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_type_class_add_private (klass, sizeof (PublishingUIStaticMessagePanePrivate));
-#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (klass)->finalize = publishing_ui_static_message_pane_finalize;
-#line 877 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_static_message_pane_instance_init (PublishingUIStaticMessagePane * self)
-{
-#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv = PUBLISHING_UI_STATIC_MESSAGE_PANE_GET_PRIVATE (self);
-#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->msg_label = NULL;
-#line 888 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_static_message_pane_finalize (GObject * obj)
-{
- PublishingUIStaticMessagePane * self;
-#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePane);
-#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->msg_label);
-#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (publishing_ui_static_message_pane_parent_class)->finalize (obj);
-#line 902 "PublishingUI.c"
-}
-
-
-GType
-publishing_ui_static_message_pane_get_type (void)
-{
- static volatile gsize publishing_ui_static_message_pane_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_ui_static_message_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingUIStaticMessagePaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_static_message_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIStaticMessagePane), 0, (GInstanceInitFunc) publishing_ui_static_message_pane_instance_init, NULL };
- GType publishing_ui_static_message_pane_type_id;
- publishing_ui_static_message_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, "PublishingUIStaticMessagePane", &g_define_type_info, 0);
- g_once_init_leave (&publishing_ui_static_message_pane_type_id__volatile, publishing_ui_static_message_pane_type_id);
- }
- return publishing_ui_static_message_pane_type_id__volatile;
-}
-
-
-static void
-_publishing_ui_login_welcome_pane_on_login_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_login_welcome_pane_on_login_clicked ((PublishingUILoginWelcomePane*) self);
-#line 926 "PublishingUI.c"
-}
-
-
-PublishingUILoginWelcomePane*
-publishing_ui_login_welcome_pane_construct (GType object_type,
- const gchar* service_welcome_message)
-{
- PublishingUILoginWelcomePane * self = NULL;
- GtkBuilder* _tmp0_;
- GObject* _tmp1_;
- GtkBox* _tmp2_;
- GtkBuilder* _tmp3_;
- GObject* _tmp4_;
- GtkButton* _tmp5_;
- GtkBuilder* _tmp6_;
- GObject* _tmp7_;
- GtkLabel* _tmp8_;
- GtkButton* _tmp9_;
- GtkLabel* _tmp10_;
- GtkLabel* _tmp11_;
-#line 56 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_val_if_fail (service_welcome_message != NULL, NULL);
-#line 57 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = (PublishingUILoginWelcomePane*) publishing_ui_concrete_dialog_pane_construct (object_type);
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder;
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = gtk_builder_get_object (_tmp0_, "welcome_pane_widget");
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_box_get_type ()) ? ((GtkBox*) _tmp1_) : NULL);
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget);
-#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget = _tmp2_;
-#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder;
-#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = gtk_builder_get_object (_tmp3_, "login_button");
-#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_button_get_type ()) ? ((GtkButton*) _tmp4_) : NULL);
-#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->login_button);
-#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->login_button = _tmp5_;
-#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder;
-#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = gtk_builder_get_object (_tmp6_, "not_logged_in_label");
-#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp7_) : NULL);
-#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->not_logged_in_label);
-#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->not_logged_in_label = _tmp8_;
-#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp9_ = self->priv->login_button;
-#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_signal_connect_object (_tmp9_, "clicked", (GCallback) _publishing_ui_login_welcome_pane_on_login_clicked_gtk_button_clicked, self, 0);
-#line 63 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp10_ = self->priv->not_logged_in_label;
-#line 63 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_label_set_use_markup (_tmp10_, TRUE);
-#line 64 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp11_ = self->priv->not_logged_in_label;
-#line 64 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_label_set_markup (_tmp11_, service_welcome_message);
-#line 56 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self;
-#line 995 "PublishingUI.c"
-}
-
-
-PublishingUILoginWelcomePane*
-publishing_ui_login_welcome_pane_new (const gchar* service_welcome_message)
-{
-#line 56 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return publishing_ui_login_welcome_pane_construct (PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, service_welcome_message);
-#line 1004 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_login_welcome_pane_on_login_clicked (PublishingUILoginWelcomePane* self)
-{
-#line 67 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_LOGIN_WELCOME_PANE (self));
-#line 68 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_signal_emit (self, publishing_ui_login_welcome_pane_signals[PUBLISHING_UI_LOGIN_WELCOME_PANE_LOGIN_REQUESTED_SIGNAL], 0);
-#line 1015 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_login_welcome_pane_class_init (PublishingUILoginWelcomePaneClass * klass)
-{
-#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_login_welcome_pane_parent_class = g_type_class_peek_parent (klass);
-#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_type_class_add_private (klass, sizeof (PublishingUILoginWelcomePanePrivate));
-#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (klass)->finalize = publishing_ui_login_welcome_pane_finalize;
-#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_login_welcome_pane_signals[PUBLISHING_UI_LOGIN_WELCOME_PANE_LOGIN_REQUESTED_SIGNAL] = g_signal_new ("login-requested", PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 1030 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_login_welcome_pane_instance_init (PublishingUILoginWelcomePane * self)
-{
-#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv = PUBLISHING_UI_LOGIN_WELCOME_PANE_GET_PRIVATE (self);
-#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->login_button = NULL;
-#line 52 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->not_logged_in_label = NULL;
-#line 1043 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_login_welcome_pane_finalize (GObject * obj)
-{
- PublishingUILoginWelcomePane * self;
-#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePane);
-#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->login_button);
-#line 52 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->not_logged_in_label);
-#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (publishing_ui_login_welcome_pane_parent_class)->finalize (obj);
-#line 1059 "PublishingUI.c"
-}
-
-
-GType
-publishing_ui_login_welcome_pane_get_type (void)
-{
- static volatile gsize publishing_ui_login_welcome_pane_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_ui_login_welcome_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingUILoginWelcomePaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_login_welcome_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUILoginWelcomePane), 0, (GInstanceInitFunc) publishing_ui_login_welcome_pane_instance_init, NULL };
- GType publishing_ui_login_welcome_pane_type_id;
- publishing_ui_login_welcome_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, "PublishingUILoginWelcomePane", &g_define_type_info, 0);
- g_once_init_leave (&publishing_ui_login_welcome_pane_type_id__volatile, publishing_ui_login_welcome_pane_type_id);
- }
- return publishing_ui_login_welcome_pane_type_id__volatile;
-}
-
-
-PublishingUIProgressPane*
-publishing_ui_progress_pane_construct (GType object_type)
-{
- PublishingUIProgressPane * self = NULL;
- GtkBuilder* _tmp0_;
- GObject* _tmp1_;
- GtkBox* _tmp2_;
- GtkBuilder* _tmp3_;
- GObject* _tmp4_;
- GtkProgressBar* _tmp5_;
-#line 76 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = (PublishingUIProgressPane*) publishing_ui_concrete_dialog_pane_construct (object_type);
-#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder;
-#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = gtk_builder_get_object (_tmp0_, "progress_pane_widget");
-#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_box_get_type (), GtkBox));
-#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget);
-#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget = _tmp2_;
-#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder;
-#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = gtk_builder_get_object (_tmp3_, "publishing_progress_bar");
-#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_progress_bar_get_type (), GtkProgressBar));
-#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->progress_bar);
-#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->progress_bar = _tmp5_;
-#line 75 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self;
-#line 1111 "PublishingUI.c"
-}
-
-
-PublishingUIProgressPane*
-publishing_ui_progress_pane_new (void)
-{
-#line 75 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return publishing_ui_progress_pane_construct (PUBLISHING_UI_TYPE_PROGRESS_PANE);
-#line 1120 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_progress_pane_set_text (PublishingUIProgressPane* self,
- const gchar* text)
-{
- GtkProgressBar* _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PROGRESS_PANE (self));
-#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (text != NULL);
-#line 82 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->progress_bar;
-#line 82 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_progress_bar_set_text (_tmp0_, text);
-#line 1137 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_progress_pane_set_progress (PublishingUIProgressPane* self,
- gdouble progress)
-{
- GtkProgressBar* _tmp0_;
-#line 85 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PROGRESS_PANE (self));
-#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->progress_bar;
-#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_progress_bar_set_fraction (_tmp0_, progress);
-#line 1152 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_progress_pane_set_status (PublishingUIProgressPane* self,
- const gchar* status_text,
- gdouble progress)
-{
- GtkProgressBar* _tmp0_;
- const gchar* _tmp1_;
-#line 89 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PROGRESS_PANE (self));
-#line 89 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (status_text != NULL);
-#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->progress_bar;
-#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = gtk_progress_bar_get_text (_tmp0_);
-#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (g_strcmp0 (status_text, _tmp1_) != 0) {
-#line 1173 "PublishingUI.c"
- GtkProgressBar* _tmp2_;
-#line 91 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = self->priv->progress_bar;
-#line 91 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_progress_bar_set_text (_tmp2_, status_text);
-#line 1179 "PublishingUI.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_progress_pane_set_progress (self, progress);
-#line 1183 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_progress_pane_class_init (PublishingUIProgressPaneClass * klass)
-{
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_progress_pane_parent_class = g_type_class_peek_parent (klass);
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_type_class_add_private (klass, sizeof (PublishingUIProgressPanePrivate));
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (klass)->finalize = publishing_ui_progress_pane_finalize;
-#line 1196 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_progress_pane_instance_init (PublishingUIProgressPane * self)
-{
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv = PUBLISHING_UI_PROGRESS_PANE_GET_PRIVATE (self);
-#line 73 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->progress_bar = NULL;
-#line 1207 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_progress_pane_finalize (GObject * obj)
-{
- PublishingUIProgressPane * self;
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane);
-#line 73 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->progress_bar);
-#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (publishing_ui_progress_pane_parent_class)->finalize (obj);
-#line 1221 "PublishingUI.c"
-}
-
-
-GType
-publishing_ui_progress_pane_get_type (void)
-{
- static volatile gsize publishing_ui_progress_pane_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_ui_progress_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingUIProgressPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_progress_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIProgressPane), 0, (GInstanceInitFunc) publishing_ui_progress_pane_instance_init, NULL };
- GType publishing_ui_progress_pane_type_id;
- publishing_ui_progress_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, "PublishingUIProgressPane", &g_define_type_info, 0);
- g_once_init_leave (&publishing_ui_progress_pane_type_id__volatile, publishing_ui_progress_pane_type_id);
- }
- return publishing_ui_progress_pane_type_id__volatile;
-}
-
-
-PublishingUISuccessPane*
-publishing_ui_success_pane_construct (GType object_type,
- SpitPublishingPublisherMediaType published_media,
- gint num_uploaded)
-{
- PublishingUISuccessPane * self = NULL;
- gchar* message_string = NULL;
- const gchar* _tmp3_;
-#line 99 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- message_string = NULL;
-#line 103 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (published_media == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
-#line 1251 "PublishingUI.c"
- gchar* _tmp0_;
-#line 104 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = g_strdup (ngettext ("The selected video was successfully published.", "The selected videos were successfully published.", (gulong) num_uploaded));
-#line 104 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (message_string);
-#line 104 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- message_string = _tmp0_;
-#line 1259 "PublishingUI.c"
- } else {
-#line 108 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (published_media == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) {
-#line 1263 "PublishingUI.c"
- gchar* _tmp1_;
-#line 109 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = g_strdup (ngettext ("The selected photo was successfully published.", "The selected photos were successfully published.", (gulong) num_uploaded));
-#line 109 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (message_string);
-#line 109 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- message_string = _tmp1_;
-#line 1271 "PublishingUI.c"
- } else {
-#line 113 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (published_media == (SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO)) {
-#line 1275 "PublishingUI.c"
- gchar* _tmp2_;
-#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = g_strdup (_ ("The selected photos/videos were successfully published."));
-#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (message_string);
-#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- message_string = _tmp2_;
-#line 1283 "PublishingUI.c"
- } else {
-#line 118 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_assert_not_reached ();
-#line 1287 "PublishingUI.c"
- }
- }
- }
-#line 121 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = message_string;
-#line 121 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = (PublishingUISuccessPane*) publishing_ui_static_message_pane_construct (object_type, _tmp3_, FALSE);
-#line 98 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (message_string);
-#line 98 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self;
-#line 1299 "PublishingUI.c"
-}
-
-
-PublishingUISuccessPane*
-publishing_ui_success_pane_new (SpitPublishingPublisherMediaType published_media,
- gint num_uploaded)
-{
-#line 98 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return publishing_ui_success_pane_construct (PUBLISHING_UI_TYPE_SUCCESS_PANE, published_media, num_uploaded);
-#line 1309 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_success_pane_class_init (PublishingUISuccessPaneClass * klass)
-{
-#line 97 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_success_pane_parent_class = g_type_class_peek_parent (klass);
-#line 1318 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_success_pane_instance_init (PublishingUISuccessPane * self)
-{
-}
-
-
-GType
-publishing_ui_success_pane_get_type (void)
-{
- static volatile gsize publishing_ui_success_pane_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_ui_success_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingUISuccessPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_success_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUISuccessPane), 0, (GInstanceInitFunc) publishing_ui_success_pane_instance_init, NULL };
- GType publishing_ui_success_pane_type_id;
- publishing_ui_success_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, "PublishingUISuccessPane", &g_define_type_info, 0);
- g_once_init_leave (&publishing_ui_success_pane_type_id__volatile, publishing_ui_success_pane_type_id);
- }
- return publishing_ui_success_pane_type_id__volatile;
-}
-
-
-PublishingUIAccountFetchWaitPane*
-publishing_ui_account_fetch_wait_pane_construct (GType object_type)
-{
- PublishingUIAccountFetchWaitPane * self = NULL;
-#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = (PublishingUIAccountFetchWaitPane*) publishing_ui_static_message_pane_construct (object_type, _ ("Fetching account information…"), FALSE);
-#line 126 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self;
-#line 1350 "PublishingUI.c"
-}
-
-
-PublishingUIAccountFetchWaitPane*
-publishing_ui_account_fetch_wait_pane_new (void)
-{
-#line 126 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return publishing_ui_account_fetch_wait_pane_construct (PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE);
-#line 1359 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_account_fetch_wait_pane_class_init (PublishingUIAccountFetchWaitPaneClass * klass)
-{
-#line 125 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_account_fetch_wait_pane_parent_class = g_type_class_peek_parent (klass);
-#line 1368 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_account_fetch_wait_pane_instance_init (PublishingUIAccountFetchWaitPane * self)
-{
-}
-
-
-GType
-publishing_ui_account_fetch_wait_pane_get_type (void)
-{
- static volatile gsize publishing_ui_account_fetch_wait_pane_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_ui_account_fetch_wait_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingUIAccountFetchWaitPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_account_fetch_wait_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIAccountFetchWaitPane), 0, (GInstanceInitFunc) publishing_ui_account_fetch_wait_pane_instance_init, NULL };
- GType publishing_ui_account_fetch_wait_pane_type_id;
- publishing_ui_account_fetch_wait_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, "PublishingUIAccountFetchWaitPane", &g_define_type_info, 0);
- g_once_init_leave (&publishing_ui_account_fetch_wait_pane_type_id__volatile, publishing_ui_account_fetch_wait_pane_type_id);
- }
- return publishing_ui_account_fetch_wait_pane_type_id__volatile;
-}
-
-
-PublishingUILoginWaitPane*
-publishing_ui_login_wait_pane_construct (GType object_type)
-{
- PublishingUILoginWaitPane * self = NULL;
-#line 133 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = (PublishingUILoginWaitPane*) publishing_ui_static_message_pane_construct (object_type, _ ("Logging in…"), FALSE);
-#line 132 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self;
-#line 1400 "PublishingUI.c"
-}
-
-
-PublishingUILoginWaitPane*
-publishing_ui_login_wait_pane_new (void)
-{
-#line 132 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return publishing_ui_login_wait_pane_construct (PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE);
-#line 1409 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_login_wait_pane_class_init (PublishingUILoginWaitPaneClass * klass)
-{
-#line 131 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_login_wait_pane_parent_class = g_type_class_peek_parent (klass);
-#line 1418 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_login_wait_pane_instance_init (PublishingUILoginWaitPane * self)
-{
-}
-
-
-GType
-publishing_ui_login_wait_pane_get_type (void)
-{
- static volatile gsize publishing_ui_login_wait_pane_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_ui_login_wait_pane_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingUILoginWaitPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_login_wait_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUILoginWaitPane), 0, (GInstanceInitFunc) publishing_ui_login_wait_pane_instance_init, NULL };
- GType publishing_ui_login_wait_pane_type_id;
- publishing_ui_login_wait_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, "PublishingUILoginWaitPane", &g_define_type_info, 0);
- g_once_init_leave (&publishing_ui_login_wait_pane_type_id__volatile, publishing_ui_login_wait_pane_type_id);
- }
- return publishing_ui_login_wait_pane_type_id__volatile;
-}
-
-
-static gboolean
-_publishing_ui_publishing_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender,
- GdkEventAny* event,
- gpointer self)
-{
- gboolean result;
- result = publishing_ui_publishing_dialog_on_window_close ((PublishingUIPublishingDialog*) self, event);
-#line 175 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 1451 "PublishingUI.c"
-}
-
-
-static void
-_vala_array_add58 (SpitPublishingPublishable** * array,
- int* length,
- int* size,
- SpitPublishingPublishable* value)
-{
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((*length) == (*size)) {
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *array = g_renew (SpitPublishingPublishable*, *array, (*size) + 1);
-#line 1467 "PublishingUI.c"
- }
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[(*length)++] = value;
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[*length] = NULL;
-#line 1473 "PublishingUI.c"
-}
-
-
-static void
-_publishing_ui_publishing_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 256 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_on_service_changed ((PublishingUIPublishingDialog*) self);
-#line 1483 "PublishingUI.c"
-}
-
-
-static void
-_publishing_ui_publishing_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 308 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_on_close_cancel_clicked ((PublishingUIPublishingDialog*) self);
-#line 1493 "PublishingUI.c"
-}
-
-
-PublishingUIPublishingDialog*
-publishing_ui_publishing_dialog_construct (GType object_type,
- GeeCollection* to_publish)
-{
- PublishingUIPublishingDialog * self = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gboolean use_header = FALSE;
- gboolean _tmp2_;
- AppWindow* _tmp5_;
- AppWindow* _tmp6_;
- SpitPublishingPublishable** _tmp7_;
- gboolean has_photos = FALSE;
- gboolean has_videos = FALSE;
- gchar* title = NULL;
- gchar* label = NULL;
- gboolean _tmp19_ = FALSE;
- gboolean _tmp20_;
- const gchar* _tmp31_;
- GtkListStore* _tmp32_;
- GtkListStore* _tmp33_;
- GtkComboBox* _tmp34_;
- GtkCellRendererPixbuf* renderer_pix = NULL;
- GtkCellRendererPixbuf* _tmp35_;
- GtkComboBox* _tmp36_;
- GtkCellRendererPixbuf* _tmp37_;
- GtkComboBox* _tmp38_;
- GtkCellRendererPixbuf* _tmp39_;
- GtkCellRendererText* renderer_text = NULL;
- GtkCellRendererText* _tmp40_;
- GtkComboBox* _tmp41_;
- GtkCellRendererText* _tmp42_;
- GtkComboBox* _tmp43_;
- GtkCellRendererText* _tmp44_;
- GtkComboBox* _tmp45_;
- gchar* last_used_service = NULL;
- ConfigFacade* _tmp46_;
- ConfigFacade* _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
- SpitPublishingService** loaded_services = NULL;
- gboolean _tmp50_;
- gboolean _tmp51_;
- gint _tmp52_;
- SpitPublishingService** _tmp53_;
- gint loaded_services_length1;
- gint _loaded_services_size_;
- GtkTreeIter iter = {0};
- SpitPublishingService** _tmp54_;
- gint _tmp54__length1;
- GtkComboBox* _tmp92_;
- gboolean _tmp93_;
- GtkBox* _tmp123_;
- GtkBox* _tmp124_;
- GtkBox* _tmp125_;
- gboolean _tmp126_;
- GtkButton* _tmp135_;
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (to_publish), NULL);
-#line 162 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = gee_collection_get_size (to_publish);
-#line 162 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = _tmp0_;
-#line 162 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _vala_assert (_tmp1_ > 0, "to_publish.size > 0");
-#line 164 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- use_header = resources_use_header_bar () == 1;
-#line 165 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = (PublishingUIPublishingDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 166 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = use_header;
-#line 166 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp2_) {
-#line 1570 "PublishingUI.c"
- GtkWidget* _tmp3_;
-#line 167 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 167 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_header_bar_set_show_close_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_header_bar_get_type (), GtkHeaderBar), FALSE);
-#line 1576 "PublishingUI.c"
- } else {
- GtkBox* _tmp4_;
-#line 169 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 169 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_box_set_spacing (_tmp4_, 6);
-#line 1583 "PublishingUI.c"
- }
-#line 172 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 173 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = app_window_get_instance ();
-#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp6_ = _tmp5_;
-#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow));
-#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_tmp6_);
-#line 175 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _publishing_ui_publishing_dialog_on_window_close_gtk_widget_delete_event, self, 0);
-#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = g_new0 (SpitPublishingPublishable*, 0 + 1);
-#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->publishables = _tmp7_;
-#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->publishables_length1 = 0;
-#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->_publishables_size_ = self->priv->publishables_length1;
-#line 178 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- has_photos = FALSE;
-#line 179 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- has_videos = FALSE;
-#line 1613 "PublishingUI.c"
- {
- GeeIterator* _media_it = NULL;
- GeeIterator* _tmp8_;
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (to_publish, GEE_TYPE_ITERABLE, GeeIterable));
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _media_it = _tmp8_;
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- while (TRUE) {
-#line 1623 "PublishingUI.c"
- GeeIterator* _tmp9_;
- MediaSource* media = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- SpitPublishingPublishable* publishable = NULL;
- MediaSource* _tmp12_;
- PublishingGlueMediaSourcePublishableWrapper* _tmp13_;
- SpitPublishingPublishable* _tmp14_;
- SpitPublishingPublishable** _tmp16_;
- gint _tmp16__length1;
- SpitPublishingPublishable* _tmp17_;
- SpitPublishingPublishable* _tmp18_;
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp9_ = _media_it;
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- break;
-#line 1642 "PublishingUI.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp10_ = _media_it;
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- media = (MediaSource*) _tmp11_;
-#line 181 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp12_ = media;
-#line 181 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp13_ = publishing_glue_media_source_publishable_wrapper_new (_tmp12_);
-#line 181 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishable = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable);
-#line 183 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp14_ = publishable;
-#line 183 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (spit_publishing_publishable_get_media_type (_tmp14_) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) {
-#line 184 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- has_photos = TRUE;
-#line 1662 "PublishingUI.c"
- } else {
- SpitPublishingPublishable* _tmp15_;
-#line 185 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp15_ = publishable;
-#line 185 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (spit_publishing_publishable_get_media_type (_tmp15_) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
-#line 186 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- has_videos = TRUE;
-#line 1671 "PublishingUI.c"
- } else {
-#line 188 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_assert_not_reached ();
-#line 1675 "PublishingUI.c"
- }
- }
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp16_ = self->priv->publishables;
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp16__length1 = self->priv->publishables_length1;
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp17_ = publishable;
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp18_ = _g_object_ref0 (_tmp17_);
-#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _vala_array_add58 (&self->priv->publishables, &self->priv->publishables_length1, &self->priv->_publishables_size_, _tmp18_);
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (publishable);
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (media);
-#line 1692 "PublishingUI.c"
- }
-#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_media_it);
-#line 1696 "PublishingUI.c"
- }
-#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- title = NULL;
-#line 194 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- label = NULL;
-#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp20_ = has_photos;
-#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp20_) {
-#line 1706 "PublishingUI.c"
- gboolean _tmp21_;
-#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp21_ = has_videos;
-#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp19_ = !_tmp21_;
-#line 1712 "PublishingUI.c"
- } else {
-#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp19_ = FALSE;
-#line 1716 "PublishingUI.c"
- }
-#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp19_) {
-#line 1720 "PublishingUI.c"
- gchar* _tmp22_;
- gchar* _tmp23_;
-#line 197 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp22_ = g_strdup (_ ("Publish Photos"));
-#line 197 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (title);
-#line 197 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- title = _tmp22_;
-#line 198 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp23_ = g_strdup (_ ("Publish photos _to:"));
-#line 198 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (label);
-#line 198 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- label = _tmp23_;
-#line 1735 "PublishingUI.c"
- } else {
- gboolean _tmp24_ = FALSE;
- gboolean _tmp25_;
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp25_ = has_photos;
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (!_tmp25_) {
-#line 1743 "PublishingUI.c"
- gboolean _tmp26_;
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp26_ = has_videos;
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp24_ = _tmp26_;
-#line 1749 "PublishingUI.c"
- } else {
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp24_ = FALSE;
-#line 1753 "PublishingUI.c"
- }
-#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp24_) {
-#line 1757 "PublishingUI.c"
- gchar* _tmp27_;
- gchar* _tmp28_;
-#line 200 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp27_ = g_strdup (_ ("Publish Videos"));
-#line 200 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (title);
-#line 200 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- title = _tmp27_;
-#line 201 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp28_ = g_strdup (_ ("Publish videos _to"));
-#line 201 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (label);
-#line 201 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- label = _tmp28_;
-#line 1772 "PublishingUI.c"
- } else {
- gchar* _tmp29_;
- gchar* _tmp30_;
-#line 203 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp29_ = g_strdup (_ ("Publish Photos and Videos"));
-#line 203 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (title);
-#line 203 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- title = _tmp29_;
-#line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp30_ = g_strdup (_ ("Publish photos and videos _to"));
-#line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (label);
-#line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- label = _tmp30_;
-#line 1788 "PublishingUI.c"
- }
- }
-#line 206 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp31_ = title;
-#line 206 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp31_);
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp32_ = gtk_list_store_new (2, gdk_pixbuf_get_type (), G_TYPE_STRING, -1);
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->service_selector_box_model);
-#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->service_selector_box_model = _tmp32_;
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp33_ = self->priv->service_selector_box_model;
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp34_ = (GtkComboBox*) gtk_combo_box_new_with_model (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tree_model_get_type (), GtkTreeModel));
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp34_);
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->service_selector_box);
-#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->service_selector_box = _tmp34_;
-#line 211 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp35_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
-#line 211 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp35_);
-#line 211 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- renderer_pix = _tmp35_;
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp36_ = self->priv->service_selector_box;
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp37_ = renderer_pix;
-#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE);
-#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp38_ = self->priv->service_selector_box;
-#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp39_ = renderer_pix;
-#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_cell_renderer_get_type (), GtkCellRenderer), "pixbuf", 0);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp40_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp40_);
-#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- renderer_text = _tmp40_;
-#line 216 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp41_ = self->priv->service_selector_box;
-#line 216 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp42_ = renderer_text;
-#line 216 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE);
-#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp43_ = self->priv->service_selector_box;
-#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp44_ = renderer_text;
-#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", 1);
-#line 219 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp45_ = self->priv->service_selector_box;
-#line 219 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_combo_box_set_active (_tmp45_, 0);
-#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp46_ = config_facade_get_instance ();
-#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp47_ = _tmp46_;
-#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp48_ = configuration_facade_get_last_used_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp49_ = _tmp48_;
-#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_tmp47_);
-#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- last_used_service = _tmp49_;
-#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp50_ = has_photos;
-#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp51_ = has_videos;
-#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp53_ = publishing_ui_publishing_dialog_load_services (_tmp50_, _tmp51_, &_tmp52_);
-#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- loaded_services = _tmp53_;
-#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- loaded_services_length1 = _tmp52_;
-#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _loaded_services_size_ = loaded_services_length1;
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp54_ = loaded_services;
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp54__length1 = loaded_services_length1;
-#line 1879 "PublishingUI.c"
- {
- SpitPublishingService** service_collection = NULL;
- gint service_collection_length1 = 0;
- gint _service_collection_size_ = 0;
- gint service_it = 0;
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_collection = _tmp54_;
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_collection_length1 = _tmp54__length1;
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- for (service_it = 0; service_it < _tmp54__length1; service_it = service_it + 1) {
-#line 1891 "PublishingUI.c"
- SpitPublishingService* _tmp55_;
- SpitPublishingService* service = NULL;
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp55_ = _g_object_ref0 (service_collection[service_it]);
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service = _tmp55_;
-#line 1898 "PublishingUI.c"
- {
- GtkListStore* _tmp56_;
- GtkTreeIter _tmp57_ = {0};
- gchar* curr_service_id = NULL;
- SpitPublishingService* _tmp58_;
- const gchar* _tmp59_;
- gchar* _tmp60_;
- SpitPublishingService* _tmp61_;
- gboolean _tmp62_ = FALSE;
- SpitPluggableInfo _tmp63_;
- GdkPixbuf** _tmp64_;
- gint _tmp64__length1;
- const gchar* _tmp82_;
-#line 229 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp56_ = self->priv->service_selector_box_model;
-#line 229 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_list_store_append (_tmp56_, &_tmp57_);
-#line 229 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- iter = _tmp57_;
-#line 231 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp58_ = service;
-#line 231 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp59_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 231 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp60_ = g_strdup (_tmp59_);
-#line 231 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- curr_service_id = _tmp60_;
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp61_ = service;
-#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- spit_pluggable_get_info (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, SPIT_TYPE_PLUGGABLE, SpitPluggable), &self->priv->info);
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp63_ = self->priv->info;
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp64_ = _tmp63_.icons;
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp64__length1 = _tmp63_.icons_length1;
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (NULL != _tmp64_) {
-#line 1938 "PublishingUI.c"
- SpitPluggableInfo _tmp65_;
- GdkPixbuf** _tmp66_;
- gint _tmp66__length1;
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp65_ = self->priv->info;
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp66_ = _tmp65_.icons;
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp66__length1 = _tmp65_.icons_length1;
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp62_ = 0 < _tmp66__length1;
-#line 1950 "PublishingUI.c"
- } else {
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp62_ = FALSE;
-#line 1954 "PublishingUI.c"
- }
-#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp62_) {
-#line 1958 "PublishingUI.c"
- GtkListStore* _tmp67_;
- GtkTreeIter _tmp68_;
- SpitPluggableInfo _tmp69_;
- GdkPixbuf** _tmp70_;
- gint _tmp70__length1;
- GdkPixbuf* _tmp71_;
- SpitPublishingService* _tmp72_;
- const gchar* _tmp73_;
- GdkPixbuf* _tmp74_;
- GdkPixbuf* _tmp75_;
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp67_ = self->priv->service_selector_box_model;
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp68_ = iter;
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp69_ = self->priv->info;
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp70_ = _tmp69_.icons;
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp70__length1 = _tmp69_.icons_length1;
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp71_ = _tmp70_[0];
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp72_ = service;
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp73_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_list_store_set (_tmp67_, &_tmp68_, 0, _tmp71_, 1, _tmp73_, -1);
-#line 241 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp74_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, RESOURCES_DEFAULT_ICON_SCALE);
-#line 241 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->info.icons[0]);
-#line 241 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->info.icons[0] = _tmp74_;
-#line 241 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp75_ = self->priv->info.icons[0];
-#line 1995 "PublishingUI.c"
- } else {
- GtkListStore* _tmp76_;
- GtkTreeIter _tmp77_;
- GdkPixbuf* _tmp78_;
- GdkPixbuf* _tmp79_;
- SpitPublishingService* _tmp80_;
- const gchar* _tmp81_;
-#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp76_ = self->priv->service_selector_box_model;
-#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp77_ = iter;
-#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp78_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, RESOURCES_DEFAULT_ICON_SCALE);
-#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp79_ = _tmp78_;
-#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp80_ = service;
-#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp81_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_list_store_set (_tmp76_, &_tmp77_, 0, _tmp79_, 1, _tmp81_, -1);
-#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_tmp79_);
-#line 2019 "PublishingUI.c"
- }
-#line 248 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp82_ = last_used_service;
-#line 248 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp82_ == NULL) {
-#line 2025 "PublishingUI.c"
- GtkComboBox* _tmp83_;
- GtkTreeIter _tmp84_;
- SpitPublishingService* _tmp85_;
- const gchar* _tmp86_;
- gchar* _tmp87_;
-#line 249 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp83_ = self->priv->service_selector_box;
-#line 249 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp84_ = iter;
-#line 249 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_combo_box_set_active_iter (_tmp83_, &_tmp84_);
-#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp85_ = service;
-#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp86_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp87_ = g_strdup (_tmp86_);
-#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (last_used_service);
-#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- last_used_service = _tmp87_;
-#line 2047 "PublishingUI.c"
- } else {
- const gchar* _tmp88_;
- const gchar* _tmp89_;
-#line 251 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp88_ = last_used_service;
-#line 251 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp89_ = curr_service_id;
-#line 251 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (g_strcmp0 (_tmp88_, _tmp89_) == 0) {
-#line 2057 "PublishingUI.c"
- GtkComboBox* _tmp90_;
- GtkTreeIter _tmp91_;
-#line 252 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp90_ = self->priv->service_selector_box;
-#line 252 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp91_ = iter;
-#line 252 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_combo_box_set_active_iter (_tmp90_, &_tmp91_);
-#line 2066 "PublishingUI.c"
- }
- }
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (curr_service_id);
-#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (service);
-#line 2073 "PublishingUI.c"
- }
- }
- }
-#line 256 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp92_ = self->priv->service_selector_box;
-#line 256 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_signal_connect_object (_tmp92_, "changed", (GCallback) _publishing_ui_publishing_dialog_on_service_changed_gtk_combo_box_changed, self, 0);
-#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp93_ = use_header;
-#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (!_tmp93_) {
-#line 2085 "PublishingUI.c"
- GtkLabel* service_selector_box_label = NULL;
- const gchar* _tmp94_;
- GtkLabel* _tmp95_;
- GtkLabel* _tmp96_;
- GtkComboBox* _tmp97_;
- GtkLabel* _tmp98_;
- GtkLabel* _tmp99_;
- GtkComboBox* _tmp100_;
- GtkComboBox* _tmp101_;
- GtkComboBox* _tmp102_;
- GtkComboBox* _tmp103_;
- GtkBox* service_selector_layouter = NULL;
- GtkBox* _tmp104_;
- GtkBox* _tmp105_;
- GtkBox* _tmp106_;
- GtkBox* _tmp107_;
- GtkLabel* _tmp108_;
- GtkBox* _tmp109_;
- GtkComboBox* _tmp110_;
- GtkBox* service_area_layouter = NULL;
- GtkBox* _tmp111_;
- GtkBox* _tmp112_;
- GtkBox* _tmp113_;
- GtkBox* _tmp114_;
- GtkSeparator* _tmp115_;
- GtkSeparator* _tmp116_;
- GtkBox* _tmp117_;
- GtkBox* _tmp118_;
- GtkBox* _tmp119_;
- GtkBox* _tmp120_;
- GtkBox* _tmp121_;
- GtkBox* _tmp122_;
-#line 260 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp94_ = label;
-#line 260 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp95_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp94_);
-#line 260 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp95_);
-#line 260 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_selector_box_label = _tmp95_;
-#line 261 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp96_ = service_selector_box_label;
-#line 261 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp97_ = self->priv->service_selector_box;
-#line 261 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_label_set_mnemonic_widget (_tmp96_, G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, gtk_widget_get_type (), GtkWidget));
-#line 262 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp98_ = service_selector_box_label;
-#line 262 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 263 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp99_ = service_selector_box_label;
-#line 263 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 269 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp100_ = self->priv->service_selector_box;
-#line 269 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END);
-#line 270 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp101_ = self->priv->service_selector_box;
-#line 270 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
-#line 271 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp102_ = self->priv->service_selector_box;
-#line 271 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 272 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp103_ = self->priv->service_selector_box;
-#line 272 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp103_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 274 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp104_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
-#line 274 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp104_);
-#line 274 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_selector_layouter = _tmp104_;
-#line 275 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp105_ = service_selector_layouter;
-#line 275 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, gtk_container_get_type (), GtkContainer), (guint) 12);
-#line 276 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp106_ = service_selector_layouter;
-#line 276 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 277 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp107_ = service_selector_layouter;
-#line 277 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp108_ = service_selector_box_label;
-#line 277 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp108_, gtk_widget_get_type (), GtkWidget));
-#line 278 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp109_ = service_selector_layouter;
-#line 278 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp110_ = self->priv->service_selector_box;
-#line 278 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_box_pack_start (_tmp109_, G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 282 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp111_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 282 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp111_);
-#line 282 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_area_layouter = _tmp111_;
-#line 283 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp112_ = service_area_layouter;
-#line 283 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp113_ = service_selector_layouter;
-#line 283 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp112_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp113_, gtk_widget_get_type (), GtkWidget));
-#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp114_ = service_area_layouter;
-#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp115_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
-#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp115_);
-#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp116_ = _tmp115_;
-#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp116_, gtk_widget_get_type (), GtkWidget));
-#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_tmp116_);
-#line 285 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp117_ = service_area_layouter;
-#line 285 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL);
-#line 286 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp118_ = service_area_layouter;
-#line 286 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp118_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
-#line 287 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp119_ = service_area_layouter;
-#line 287 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp119_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 288 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp120_ = service_area_layouter;
-#line 288 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp120_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 290 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp121_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 290 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp122_ = service_area_layouter;
-#line 290 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_box_pack_start (_tmp121_, G_TYPE_CHECK_INSTANCE_CAST (_tmp122_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (service_area_layouter);
-#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (service_selector_layouter);
-#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (service_selector_box_label);
-#line 2234 "PublishingUI.c"
- }
-#line 293 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp123_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-#line 293 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp123_);
-#line 293 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->central_area_layouter);
-#line 293 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->central_area_layouter = _tmp123_;
-#line 295 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp124_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 295 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp125_ = self->priv->central_area_layouter;
-#line 295 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_box_pack_start (_tmp124_, G_TYPE_CHECK_INSTANCE_CAST (_tmp125_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
-#line 297 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp126_ = use_header;
-#line 297 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp126_) {
-#line 2254 "PublishingUI.c"
- GtkButton* _tmp127_;
- GtkButton* _tmp128_;
- GtkWidget* _tmp129_;
- GtkButton* _tmp130_;
- GtkWidget* _tmp131_;
- GtkComboBox* _tmp132_;
-#line 298 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp127_ = (GtkButton*) gtk_button_new_with_mnemonic ("_Cancel");
-#line 298 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp127_);
-#line 298 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->close_cancel_button);
-#line 298 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->close_cancel_button = _tmp127_;
-#line 299 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp128_ = self->priv->close_cancel_button;
-#line 299 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp128_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 301 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp129_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 301 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp130_ = self->priv->close_cancel_button;
-#line 301 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_header_bar_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp129_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, gtk_widget_get_type (), GtkWidget));
-#line 302 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp131_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 302 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp132_ = self->priv->service_selector_box;
-#line 302 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_header_bar_pack_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp131_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp132_, gtk_widget_get_type (), GtkWidget));
-#line 2285 "PublishingUI.c"
- } else {
- GtkWidget* _tmp133_;
- GtkButton* _tmp134_;
-#line 305 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), _ ("_Cancel"), (gint) GTK_RESPONSE_CANCEL);
-#line 306 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp133_ = gtk_dialog_get_widget_for_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_CANCEL);
-#line 306 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp134_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp133_, gtk_button_get_type ()) ? ((GtkButton*) _tmp133_) : NULL);
-#line 306 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->close_cancel_button);
-#line 306 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->close_cancel_button = _tmp134_;
-#line 2299 "PublishingUI.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp135_ = self->priv->close_cancel_button;
-#line 308 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_signal_connect_object (_tmp135_, "clicked", (GCallback) _publishing_ui_publishing_dialog_on_close_cancel_clicked_gtk_button_clicked, self, 0);
-#line 310 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_set_standard_window_mode (self);
-#line 312 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- loaded_services = (_vala_array_free (loaded_services, loaded_services_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (last_used_service);
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (renderer_text);
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (renderer_pix);
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (label);
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (title);
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return self;
-#line 2323 "PublishingUI.c"
-}
-
-
-PublishingUIPublishingDialog*
-publishing_ui_publishing_dialog_new (GeeCollection* to_publish)
-{
-#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return publishing_ui_publishing_dialog_construct (PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, to_publish);
-#line 2332 "PublishingUI.c"
-}
-
-
-static void
-_vala_array_add59 (SpitPublishingService** * array,
- int* length,
- int* size,
- SpitPublishingService* value)
-{
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((*length) == (*size)) {
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *array = g_renew (SpitPublishingService*, *array, (*size) + 1);
-#line 2348 "PublishingUI.c"
- }
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[(*length)++] = value;
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[*length] = NULL;
-#line 2354 "PublishingUI.c"
-}
-
-
-static gint
-__lambda16_ (void* a,
- void* b)
-{
- gint result = 0;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitPublishingService**) a), SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitPublishingService**) b), SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- result = utf8_cs_compare (_tmp0_, _tmp1_);
-#line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 2373 "PublishingUI.c"
-}
-
-
-static gint
-___lambda16____compar_fn_t (void* key1,
- void* key2)
-{
- gint result;
- result = __lambda16_ (key1, key2);
-#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 2385 "PublishingUI.c"
-}
-
-
-static SpitPublishingService**
-publishing_ui_publishing_dialog_load_all_services (int* result_length1)
-{
- SpitPublishingService** result = NULL;
- SpitPublishingService** loaded_services = NULL;
- SpitPublishingService** _tmp0_;
- gint loaded_services_length1;
- gint _loaded_services_size_;
- GeeCollection* pluggables = NULL;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- SpitPublishingService** _tmp23_;
- gint _tmp23__length1;
- SpitPublishingService** _tmp24_;
- gint _tmp24__length1;
- SpitPublishingService** _tmp25_;
- gint _tmp25__length1;
-#line 316 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = g_new0 (SpitPublishingService*, 0 + 1);
-#line 316 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- loaded_services = _tmp0_;
-#line 316 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- loaded_services_length1 = 0;
-#line 316 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _loaded_services_size_ = loaded_services_length1;
-#line 319 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = plugins_get_pluggables_for_type (SPIT_PUBLISHING_TYPE_SERVICE, NULL, NULL, NULL, FALSE);
-#line 319 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- pluggables = _tmp1_;
-#line 322 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = pluggables;
-#line 322 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = gee_collection_get_size (_tmp2_);
-#line 322 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = _tmp3_;
-#line 322 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_debug ("PublishingUI.vala:322: PublisingDialog: discovered %d pluggable publis" \
-"hing services.", _tmp4_);
-#line 2428 "PublishingUI.c"
- {
- GeeIterator* _pluggable_it = NULL;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = pluggables;
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _pluggable_it = _tmp6_;
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- while (TRUE) {
-#line 2441 "PublishingUI.c"
- GeeIterator* _tmp7_;
- SpitPluggable* pluggable = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- gint pluggable_interface = 0;
- SpitPluggable* _tmp10_;
- gint _tmp11_;
- SpitPublishingService* service = NULL;
- SpitPluggable* _tmp16_;
- SpitPublishingService* _tmp17_;
- SpitPublishingService* _tmp18_;
- const gchar* _tmp19_;
- SpitPublishingService** _tmp20_;
- gint _tmp20__length1;
- SpitPublishingService* _tmp21_;
- SpitPublishingService* _tmp22_;
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = _pluggable_it;
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (!gee_iterator_next (_tmp7_)) {
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- break;
-#line 2464 "PublishingUI.c"
- }
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8_ = _pluggable_it;
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- pluggable = (SpitPluggable*) _tmp9_;
-#line 325 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp10_ = pluggable;
-#line 325 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- pluggable_interface = spit_pluggable_get_pluggable_interface (_tmp10_, SPIT_PUBLISHING_CURRENT_INTERFACE, SPIT_PUBLISHING_CURRENT_INTERFACE);
-#line 327 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp11_ = pluggable_interface;
-#line 327 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp11_ != SPIT_PUBLISHING_CURRENT_INTERFACE) {
-#line 2480 "PublishingUI.c"
- SpitPluggable* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gint _tmp15_;
-#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp12_ = pluggable;
-#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp13_ = plugins_get_pluggable_module_id (_tmp12_);
-#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp14_ = _tmp13_;
-#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp15_ = pluggable_interface;
-#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_warning ("PublishingUI.vala:328: Unable to load publisher %s: reported interface" \
-" %d.", _tmp14_, _tmp15_);
-#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (_tmp14_);
-#line 331 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (pluggable);
-#line 331 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- continue;
-#line 2501 "PublishingUI.c"
- }
-#line 334 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp16_ = pluggable;
-#line 334 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService));
-#line 334 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service = _tmp17_;
-#line 337 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp18_ = service;
-#line 337 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp19_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 337 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_debug ("PublishingUI.vala:337: PublishingDialog: discovered pluggable publishi" \
-"ng service '%s'.", _tmp19_);
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp20_ = loaded_services;
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp20__length1 = loaded_services_length1;
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp21_ = service;
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp22_ = _g_object_ref0 (_tmp21_);
-#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _vala_array_add59 (&loaded_services, &loaded_services_length1, &_loaded_services_size_, _tmp22_);
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (service);
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (pluggable);
-#line 2529 "PublishingUI.c"
- }
-#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_pluggable_it);
-#line 2533 "PublishingUI.c"
- }
-#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp23_ = loaded_services;
-#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp23__length1 = loaded_services_length1;
-#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp24_ = loaded_services;
-#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp24__length1 = loaded_services_length1;
-#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- qsort (_tmp23_, (gsize) _tmp24__length1, (gsize) sizeof (SpitPublishingService*), ___lambda16____compar_fn_t);
-#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp25_ = loaded_services;
-#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp25__length1 = loaded_services_length1;
-#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (result_length1) {
-#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *result_length1 = _tmp25__length1;
-#line 2553 "PublishingUI.c"
- }
-#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- result = _tmp25_;
-#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (pluggables);
-#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 2561 "PublishingUI.c"
-}
-
-
-static void
-_vala_array_add60 (SpitPublishingService** * array,
- int* length,
- int* size,
- SpitPublishingService* value)
-{
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((*length) == (*size)) {
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *array = g_renew (SpitPublishingService*, *array, (*size) + 1);
-#line 2577 "PublishingUI.c"
- }
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[(*length)++] = value;
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[*length] = NULL;
-#line 2583 "PublishingUI.c"
-}
-
-
-static void
-_vala_array_add61 (SpitPublishingService** * array,
- int* length,
- int* size,
- SpitPublishingService* value)
-{
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((*length) == (*size)) {
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *array = g_renew (SpitPublishingService*, *array, (*size) + 1);
-#line 2599 "PublishingUI.c"
- }
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[(*length)++] = value;
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[*length] = NULL;
-#line 2605 "PublishingUI.c"
-}
-
-
-static void
-_vala_array_add62 (SpitPublishingService** * array,
- int* length,
- int* size,
- SpitPublishingService* value)
-{
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((*length) == (*size)) {
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *array = g_renew (SpitPublishingService*, *array, (*size) + 1);
-#line 2621 "PublishingUI.c"
- }
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[(*length)++] = value;
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- (*array)[*length] = NULL;
-#line 2627 "PublishingUI.c"
-}
-
-
-static SpitPublishingService**
-publishing_ui_publishing_dialog_load_services (gboolean has_photos,
- gboolean has_videos,
- int* result_length1)
-{
- SpitPublishingService** result = NULL;
- gboolean _tmp0_ = FALSE;
- SpitPublishingService** filtered_services = NULL;
- SpitPublishingService** _tmp1_;
- gint filtered_services_length1;
- gint _filtered_services_size_;
- SpitPublishingService** all_services = NULL;
- gint _tmp2_;
- SpitPublishingService** _tmp3_;
- gint all_services_length1;
- gint _all_services_size_;
- SpitPublishingService** _tmp4_;
- gint _tmp4__length1;
- SpitPublishingService** _tmp22_;
- gint _tmp22__length1;
-#line 353 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (has_photos) {
-#line 353 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = TRUE;
-#line 2655 "PublishingUI.c"
- } else {
-#line 353 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = has_videos;
-#line 2659 "PublishingUI.c"
- }
-#line 353 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _vala_assert (_tmp0_, "has_photos || has_videos");
-#line 355 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = g_new0 (SpitPublishingService*, 0 + 1);
-#line 355 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- filtered_services = _tmp1_;
-#line 355 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- filtered_services_length1 = 0;
-#line 355 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _filtered_services_size_ = filtered_services_length1;
-#line 356 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = publishing_ui_publishing_dialog_load_all_services (&_tmp2_);
-#line 356 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- all_services = _tmp3_;
-#line 356 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- all_services_length1 = _tmp2_;
-#line 356 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _all_services_size_ = all_services_length1;
-#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = all_services;
-#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4__length1 = all_services_length1;
-#line 2683 "PublishingUI.c"
- {
- SpitPublishingService** service_collection = NULL;
- gint service_collection_length1 = 0;
- gint _service_collection_size_ = 0;
- gint service_it = 0;
-#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_collection = _tmp4_;
-#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_collection_length1 = _tmp4__length1;
-#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- for (service_it = 0; service_it < _tmp4__length1; service_it = service_it + 1) {
-#line 2695 "PublishingUI.c"
- SpitPublishingService* _tmp5_;
- SpitPublishingService* service = NULL;
-#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = _g_object_ref0 (service_collection[service_it]);
-#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service = _tmp5_;
-#line 2702 "PublishingUI.c"
- {
- gboolean _tmp6_ = FALSE;
-#line 360 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (has_photos) {
-#line 360 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp6_ = !has_videos;
-#line 2709 "PublishingUI.c"
- } else {
-#line 360 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp6_ = FALSE;
-#line 2713 "PublishingUI.c"
- }
-#line 360 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp6_) {
-#line 2717 "PublishingUI.c"
- SpitPublishingService* _tmp7_;
-#line 361 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = service;
-#line 361 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((spit_publishing_service_get_supported_media (_tmp7_) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) {
-#line 2723 "PublishingUI.c"
- SpitPublishingService** _tmp8_;
- gint _tmp8__length1;
- SpitPublishingService* _tmp9_;
- SpitPublishingService* _tmp10_;
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8_ = filtered_services;
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8__length1 = filtered_services_length1;
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp9_ = service;
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _vala_array_add60 (&filtered_services, &filtered_services_length1, &_filtered_services_size_, _tmp10_);
-#line 2738 "PublishingUI.c"
- }
- } else {
- gboolean _tmp11_ = FALSE;
-#line 363 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (!has_photos) {
-#line 363 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp11_ = has_videos;
-#line 2746 "PublishingUI.c"
- } else {
-#line 363 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp11_ = FALSE;
-#line 2750 "PublishingUI.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp11_) {
-#line 2754 "PublishingUI.c"
- SpitPublishingService* _tmp12_;
-#line 364 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp12_ = service;
-#line 364 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((spit_publishing_service_get_supported_media (_tmp12_) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0) {
-#line 2760 "PublishingUI.c"
- SpitPublishingService** _tmp13_;
- gint _tmp13__length1;
- SpitPublishingService* _tmp14_;
- SpitPublishingService* _tmp15_;
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp13_ = filtered_services;
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp13__length1 = filtered_services_length1;
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp14_ = service;
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp15_ = _g_object_ref0 (_tmp14_);
-#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _vala_array_add61 (&filtered_services, &filtered_services_length1, &_filtered_services_size_, _tmp15_);
-#line 2775 "PublishingUI.c"
- }
- } else {
- gboolean _tmp16_ = FALSE;
- SpitPublishingService* _tmp17_;
-#line 367 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp17_ = service;
-#line 367 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((spit_publishing_service_get_supported_media (_tmp17_) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) {
-#line 2784 "PublishingUI.c"
- SpitPublishingService* _tmp18_;
-#line 368 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp18_ = service;
-#line 368 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp16_ = (spit_publishing_service_get_supported_media (_tmp18_) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0;
-#line 2790 "PublishingUI.c"
- } else {
-#line 367 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp16_ = FALSE;
-#line 2794 "PublishingUI.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp16_) {
-#line 2798 "PublishingUI.c"
- SpitPublishingService** _tmp19_;
- gint _tmp19__length1;
- SpitPublishingService* _tmp20_;
- SpitPublishingService* _tmp21_;
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp19_ = filtered_services;
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp19__length1 = filtered_services_length1;
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp20_ = service;
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp21_ = _g_object_ref0 (_tmp20_);
-#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _vala_array_add62 (&filtered_services, &filtered_services_length1, &_filtered_services_size_, _tmp21_);
-#line 2813 "PublishingUI.c"
- }
- }
- }
-#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (service);
-#line 2819 "PublishingUI.c"
- }
- }
- }
-#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp22_ = filtered_services;
-#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp22__length1 = filtered_services_length1;
-#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (result_length1) {
-#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- *result_length1 = _tmp22__length1;
-#line 2831 "PublishingUI.c"
- }
-#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- result = _tmp22_;
-#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- all_services = (_vala_array_free (all_services, all_services_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 2839 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_publishing_dialog_go (GeeCollection* to_publish)
-{
- PublishingUIPublishingDialog* _tmp0_;
- GTimer* _tmp1_;
- GeeArrayList* photos = NULL;
- GeeArrayList* _tmp10_;
- GeeArrayList* videos = NULL;
- GeeArrayList* _tmp11_;
- GeeArrayList* _tmp12_;
- GeeArrayList* _tmp13_;
- SpitPublishingService** avail_services = NULL;
- GeeArrayList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- GeeArrayList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- SpitPublishingService** _tmp21_;
- gint avail_services_length1;
- gint _avail_services_size_;
- SpitPublishingService** _tmp22_;
- gint _tmp22__length1;
- PublishingUIPublishingDialog* _tmp25_;
- PublishingUIPublishingDialog* _tmp26_;
- GTimer* _tmp27_;
-#line 387 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (GEE_IS_COLLECTION (to_publish));
-#line 388 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = publishing_ui_publishing_dialog_active_instance;
-#line 388 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp0_ != NULL) {
-#line 389 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return;
-#line 2878 "PublishingUI.c"
- }
-#line 391 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = publishing_ui_publishing_dialog_since_last_start;
-#line 391 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp1_ == NULL) {
-#line 2884 "PublishingUI.c"
- GTimer* _tmp2_;
- GTimer* _tmp3_;
- GTimer* _tmp4_;
-#line 394 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = g_timer_new ();
-#line 394 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_timer_destroy0 (publishing_ui_publishing_dialog_since_last_start);
-#line 394 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_since_last_start = _tmp2_;
-#line 395 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = publishing_ui_publishing_dialog_since_last_start;
-#line 395 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_timer_stop (_tmp3_);
-#line 396 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = publishing_ui_publishing_dialog_since_last_start;
-#line 396 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_timer_reset (_tmp4_);
-#line 397 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_elapsed_is_valid = FALSE;
-#line 2904 "PublishingUI.c"
- } else {
- gdouble elapsed = 0.0;
- GTimer* _tmp5_;
- gdouble _tmp6_;
- gboolean _tmp7_ = FALSE;
- gdouble _tmp8_;
-#line 399 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = publishing_ui_publishing_dialog_since_last_start;
-#line 399 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp6_ = g_timer_elapsed (_tmp5_, NULL);
-#line 399 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- elapsed = _tmp6_;
-#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8_ = elapsed;
-#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp8_ < 0.05) {
-#line 2921 "PublishingUI.c"
- gboolean _tmp9_;
-#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp9_ = publishing_ui_publishing_dialog_elapsed_is_valid;
-#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = _tmp9_;
-#line 2927 "PublishingUI.c"
- } else {
-#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = FALSE;
-#line 2931 "PublishingUI.c"
- }
-#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp7_) {
-#line 401 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return;
-#line 2937 "PublishingUI.c"
- }
- }
-#line 404 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp10_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 404 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- photos = _tmp10_;
-#line 405 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp11_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 405 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- videos = _tmp11_;
-#line 406 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp12_ = photos;
-#line 406 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp13_ = videos;
-#line 406 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- media_source_collection_filter_media (to_publish, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp14_ = photos;
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp16_ = _tmp15_;
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp17_ = videos;
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp18_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp19_ = _tmp18_;
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp21_ = publishing_ui_publishing_dialog_load_services (_tmp16_ > 0, _tmp19_ > 0, &_tmp20_);
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- avail_services = _tmp21_;
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- avail_services_length1 = _tmp20_;
-#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _avail_services_size_ = avail_services_length1;
-#line 411 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp22_ = avail_services;
-#line 411 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp22__length1 = avail_services_length1;
-#line 411 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp22__length1 == 0) {
-#line 2980 "PublishingUI.c"
- gchar* _tmp23_;
- gchar* _tmp24_;
-#line 414 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp23_ = g_strdup_printf (_ ("Shotwell cannot publish the selected items because you do not have a c" \
-"ompatible publishing plugin enabled. To correct this, choose <b>Edit %" \
-"s Preferences</b> and enable one or more of the publishing plugins on " \
-"the <b>Plugins</b> tab."), "▸");
-#line 414 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp24_ = _tmp23_;
-#line 414 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- app_window_error_message_with_title (_ ("Unable to publish"), _tmp24_, NULL, FALSE);
-#line 414 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (_tmp24_);
-#line 418 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- avail_services = (_vala_array_free (avail_services, avail_services_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 418 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (videos);
-#line 418 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (photos);
-#line 418 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return;
-#line 2999 "PublishingUI.c"
- }
-#line 424 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_debug ("PublishingUI.vala:424: PublishingDialog.go( )");
-#line 426 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp25_ = publishing_ui_publishing_dialog_new (to_publish);
-#line 426 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_object_ref_sink (_tmp25_);
-#line 426 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (publishing_ui_publishing_dialog_active_instance);
-#line 426 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_active_instance = _tmp25_;
-#line 428 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp26_ = publishing_ui_publishing_dialog_active_instance;
-#line 428 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_run (_tmp26_);
-#line 430 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (publishing_ui_publishing_dialog_active_instance);
-#line 430 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_active_instance = NULL;
-#line 433 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp27_ = publishing_ui_publishing_dialog_since_last_start;
-#line 433 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_timer_start (_tmp27_);
-#line 434 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_elapsed_is_valid = TRUE;
-#line 387 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- avail_services = (_vala_array_free (avail_services, avail_services_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 387 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (videos);
-#line 387 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (photos);
-#line 3031 "PublishingUI.c"
-}
-
-
-static gboolean
-publishing_ui_publishing_dialog_on_window_close (PublishingUIPublishingDialog* self,
- GdkEventAny* evt)
-{
- gboolean result = FALSE;
- SpitPublishingConcretePublishingHost* _tmp0_;
-#line 437 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_val_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self), FALSE);
-#line 437 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_val_if_fail (evt != NULL, FALSE);
-#line 438 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->host;
-#line 438 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- spit_publishing_plugin_host_stop_publishing (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost));
-#line 439 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->host);
-#line 439 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->host = NULL;
-#line 440 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 441 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 443 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- result = TRUE;
-#line 443 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 3061 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_on_service_changed (PublishingUIPublishingDialog* self)
-{
- GtkTreeIter iter = {0};
- gboolean have_active_iter = FALSE;
- GtkComboBox* _tmp0_;
- GtkTreeIter _tmp1_ = {0};
- gboolean _tmp2_;
- gboolean _tmp3_;
- GValue service_name_val = {0};
- GtkListStore* _tmp7_;
- GtkTreeIter _tmp8_;
- GValue _tmp9_ = {0};
- gchar* service_name = NULL;
- GValue _tmp10_;
- gchar* _tmp11_;
- SpitPublishingService* selected_service = NULL;
- SpitPublishingService** services = NULL;
- gint _tmp12_;
- SpitPublishingService** _tmp13_;
- gint services_length1;
- gint _services_size_;
- SpitPublishingService** _tmp14_;
- gint _tmp14__length1;
- SpitPublishingService* _tmp21_;
- ConfigFacade* _tmp22_;
- ConfigFacade* _tmp23_;
- SpitPublishingService* _tmp24_;
- const gchar* _tmp25_;
- SpitPublishingService* _tmp26_;
- SpitPublishingPublishable** _tmp27_;
- gint _tmp27__length1;
- SpitPublishingConcretePublishingHost* _tmp28_;
- SpitPublishingConcretePublishingHost* _tmp29_;
-#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 448 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- have_active_iter = FALSE;
-#line 449 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->service_selector_box;
-#line 449 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
-#line 449 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- iter = _tmp1_;
-#line 449 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- have_active_iter = _tmp2_;
-#line 452 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = have_active_iter;
-#line 452 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (!_tmp3_) {
-#line 3115 "PublishingUI.c"
- GtkComboBox* _tmp4_;
- GtkComboBox* _tmp5_;
- GtkTreeIter _tmp6_ = {0};
-#line 454 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = self->priv->service_selector_box;
-#line 454 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_combo_box_set_active (_tmp4_, 0);
-#line 457 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = self->priv->service_selector_box;
-#line 457 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_combo_box_get_active_iter (_tmp5_, &_tmp6_);
-#line 457 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- iter = _tmp6_;
-#line 3129 "PublishingUI.c"
- }
-#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = self->priv->service_selector_box_model;
-#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8_ = iter;
-#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_tree_model_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp8_, 1, &_tmp9_);
-#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_IS_VALUE (&service_name_val) ? (g_value_unset (&service_name_val), NULL) : NULL;
-#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_name_val = _tmp9_;
-#line 463 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp10_ = service_name_val;
-#line 463 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp11_ = g_strdup (g_value_get_string (&_tmp10_));
-#line 463 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_name = _tmp11_;
-#line 465 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- selected_service = NULL;
-#line 466 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp13_ = publishing_ui_publishing_dialog_load_all_services (&_tmp12_);
-#line 466 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- services = _tmp13_;
-#line 466 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- services_length1 = _tmp12_;
-#line 466 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _services_size_ = services_length1;
-#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp14_ = services;
-#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp14__length1 = services_length1;
-#line 3161 "PublishingUI.c"
- {
- SpitPublishingService** service_collection = NULL;
- gint service_collection_length1 = 0;
- gint _service_collection_size_ = 0;
- gint service_it = 0;
-#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_collection = _tmp14_;
-#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service_collection_length1 = _tmp14__length1;
-#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- for (service_it = 0; service_it < _tmp14__length1; service_it = service_it + 1) {
-#line 3173 "PublishingUI.c"
- SpitPublishingService* _tmp15_;
- SpitPublishingService* service = NULL;
-#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp15_ = _g_object_ref0 (service_collection[service_it]);
-#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- service = _tmp15_;
-#line 3180 "PublishingUI.c"
- {
- SpitPublishingService* _tmp16_;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
-#line 468 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp16_ = service;
-#line 468 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp17_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 468 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp18_ = service_name;
-#line 468 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (g_strcmp0 (_tmp17_, _tmp18_) == 0) {
-#line 3193 "PublishingUI.c"
- SpitPublishingService* _tmp19_;
- SpitPublishingService* _tmp20_;
-#line 469 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp19_ = service;
-#line 469 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp20_ = _g_object_ref0 (_tmp19_);
-#line 469 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (selected_service);
-#line 469 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- selected_service = _tmp20_;
-#line 470 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (service);
-#line 470 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- break;
-#line 3208 "PublishingUI.c"
- }
-#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (service);
-#line 3212 "PublishingUI.c"
- }
- }
- }
-#line 473 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp21_ = selected_service;
-#line 473 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _vala_assert (_tmp21_ != NULL, "selected_service != null");
-#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp22_ = config_facade_get_instance ();
-#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp23_ = _tmp22_;
-#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp24_ = selected_service;
-#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp25_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- configuration_facade_set_last_used_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp25_);
-#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_tmp23_);
-#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp26_ = selected_service;
-#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp27_ = self->priv->publishables;
-#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp27__length1 = self->priv->publishables_length1;
-#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp28_ = spit_publishing_concrete_publishing_host_new (_tmp26_, self, _tmp27_, _tmp27__length1);
-#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->host);
-#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->host = _tmp28_;
-#line 478 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp29_ = self->priv->host;
-#line 478 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- spit_publishing_concrete_publishing_host_start_publishing (_tmp29_);
-#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (selected_service);
-#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_free0 (service_name);
-#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_IS_VALUE (&service_name_val) ? (g_value_unset (&service_name_val), NULL) : NULL;
-#line 3256 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_on_close_cancel_clicked (PublishingUIPublishingDialog* self)
-{
- SpitPublishingConcretePublishingHost* _tmp0_;
-#line 481 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 482 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_debug ("PublishingUI.vala:482: PublishingDialog: on_close_cancel_clicked( ): i" \
-"nvoked.");
-#line 484 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->host;
-#line 484 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- spit_publishing_plugin_host_stop_publishing (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost));
-#line 485 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->host);
-#line 485 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->host = NULL;
-#line 486 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 487 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 3280 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_set_large_window_mode (PublishingUIPublishingDialog* self)
-{
- GtkBox* _tmp0_;
-#line 490 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 491 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_HEIGHT);
-#line 492 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->central_area_layouter;
-#line 492 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_WIDTH - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_HEIGHT - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_HEIGHT);
-#line 494 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 3298 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_set_colossal_window_mode (PublishingUIPublishingDialog* self)
-{
- GtkBox* _tmp0_;
-#line 497 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 498 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_HEIGHT);
-#line 499 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->central_area_layouter;
-#line 499 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_WIDTH - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_HEIGHT - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_HEIGHT);
-#line 501 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 3316 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_set_standard_window_mode (PublishingUIPublishingDialog* self)
-{
- GtkBox* _tmp0_;
-#line 504 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 505 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_HEIGHT);
-#line 506 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->central_area_layouter;
-#line 506 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_WIDTH - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_HEIGHT - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_HEIGHT);
-#line 508 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 3334 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_set_free_sizable_window_mode (PublishingUIPublishingDialog* self)
-{
-#line 511 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 512 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
-#line 3345 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_clear_free_sizable_window_mode (PublishingUIPublishingDialog* self)
-{
-#line 515 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 516 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
-#line 3356 "PublishingUI.c"
-}
-
-
-SpitPublishingDialogPane*
-publishing_ui_publishing_dialog_get_active_pane (PublishingUIPublishingDialog* self)
-{
- SpitPublishingDialogPane* result = NULL;
- SpitPublishingDialogPane* _tmp0_;
- SpitPublishingDialogPane* _tmp1_;
-#line 519 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_val_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self), NULL);
-#line 520 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->active_pane;
-#line 520 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 520 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- result = _tmp1_;
-#line 520 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 3376 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_publishing_dialog_set_close_button_mode (PublishingUIPublishingDialog* self)
-{
- GtkButton* _tmp0_;
- GtkButton* _tmp1_;
-#line 523 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 524 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->close_cancel_button;
-#line 524 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_button_set_label (_tmp0_, _ ("_Close"));
-#line 525 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = self->priv->close_cancel_button;
-#line 525 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 3395 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_publishing_dialog_set_cancel_button_mode (PublishingUIPublishingDialog* self)
-{
- GtkButton* _tmp0_;
-#line 528 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 529 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->close_cancel_button;
-#line 529 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_button_set_label (_tmp0_, _ ("_Cancel"));
-#line 3409 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_publishing_dialog_lock_service (PublishingUIPublishingDialog* self)
-{
- GtkComboBox* _tmp0_;
-#line 532 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 533 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->service_selector_box;
-#line 533 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 3423 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_publishing_dialog_unlock_service (PublishingUIPublishingDialog* self)
-{
- GtkComboBox* _tmp0_;
-#line 536 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 537 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->service_selector_box;
-#line 537 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 3437 "PublishingUI.c"
-}
-
-
-void
-publishing_ui_publishing_dialog_install_pane (PublishingUIPublishingDialog* self,
- SpitPublishingDialogPane* pane)
-{
- SpitPublishingDialogPane* _tmp0_;
- GtkBox* _tmp6_;
- GtkWidget* _tmp7_;
- GtkWidget* _tmp8_;
- SpitPublishingDialogPaneGeometryOptions geometry_options = 0;
- SpitPublishingDialogPaneGeometryOptions _tmp9_;
- SpitPublishingDialogPaneGeometryOptions _tmp11_;
- SpitPublishingDialogPane* _tmp12_;
-#line 540 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self));
-#line 540 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (pane));
-#line 541 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_debug ("PublishingUI.vala:541: PublishingDialog: install_pane( ): invoked.");
-#line 543 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp0_ = self->priv->active_pane;
-#line 543 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if (_tmp0_ != NULL) {
-#line 3463 "PublishingUI.c"
- SpitPublishingDialogPane* _tmp1_;
- GtkBox* _tmp2_;
- SpitPublishingDialogPane* _tmp3_;
- GtkWidget* _tmp4_;
- GtkWidget* _tmp5_;
-#line 544 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_debug ("PublishingUI.vala:544: PublishingDialog: install_pane( ): a pane is al" \
-"ready installed; removing it.");
-#line 546 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp1_ = self->priv->active_pane;
-#line 546 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- spit_publishing_dialog_pane_on_pane_uninstalled (_tmp1_);
-#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp2_ = self->priv->central_area_layouter;
-#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp3_ = self->priv->active_pane;
-#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp4_ = spit_publishing_dialog_pane_get_widget (_tmp3_);
-#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp5_ = _tmp4_;
-#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), _tmp5_);
-#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_tmp5_);
-#line 3487 "PublishingUI.c"
- }
-#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp6_ = self->priv->central_area_layouter;
-#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp7_ = spit_publishing_dialog_pane_get_widget (pane);
-#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp8_ = _tmp7_;
-#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_box_pack_start (_tmp6_, _tmp8_, TRUE, TRUE, (guint) 0);
-#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (_tmp8_);
-#line 551 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 553 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- geometry_options = spit_publishing_dialog_pane_get_preferred_geometry (pane);
-#line 555 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp9_ = geometry_options;
-#line 555 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((_tmp9_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE) != 0) {
-#line 556 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_set_large_window_mode (self);
-#line 3509 "PublishingUI.c"
- } else {
- SpitPublishingDialogPaneGeometryOptions _tmp10_;
-#line 557 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp10_ = geometry_options;
-#line 557 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((_tmp10_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE) != 0) {
-#line 558 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_set_colossal_window_mode (self);
-#line 3518 "PublishingUI.c"
- } else {
-#line 560 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_set_standard_window_mode (self);
-#line 3522 "PublishingUI.c"
- }
- }
-#line 562 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp11_ = geometry_options;
-#line 562 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- if ((_tmp11_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE) != 0) {
-#line 563 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_set_free_sizable_window_mode (self);
-#line 3531 "PublishingUI.c"
- } else {
-#line 565 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_clear_free_sizable_window_mode (self);
-#line 3535 "PublishingUI.c"
- }
-#line 567 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _tmp12_ = _g_object_ref0 (pane);
-#line 567 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->active_pane);
-#line 567 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->active_pane = _tmp12_;
-#line 568 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- spit_publishing_dialog_pane_on_pane_installed (pane);
-#line 3545 "PublishingUI.c"
-}
-
-
-gint
-publishing_ui_publishing_dialog_run (PublishingUIPublishingDialog* self)
-{
- gint result = 0;
- gint _result_ = 0;
-#line 571 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_return_val_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self), 0);
-#line 572 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_on_service_changed (self);
-#line 574 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _result_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 576 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->host);
-#line 576 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->host = NULL;
-#line 578 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- result = _result_;
-#line 578 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- return result;
-#line 3568 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_class_init (PublishingUIPublishingDialogClass * klass)
-{
-#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- publishing_ui_publishing_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- g_type_class_add_private (klass, sizeof (PublishingUIPublishingDialogPrivate));
-#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (klass)->finalize = publishing_ui_publishing_dialog_finalize;
-#line 3581 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_instance_init (PublishingUIPublishingDialog * self)
-{
-#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv = PUBLISHING_UI_PUBLISHING_DIALOG_GET_PRIVATE (self);
-#line 3590 "PublishingUI.c"
-}
-
-
-static void
-publishing_ui_publishing_dialog_finalize (GObject * obj)
-{
- PublishingUIPublishingDialog * self;
-#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialog);
-#line 152 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->service_selector_box_model);
-#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->service_selector_box);
-#line 154 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->central_area_layouter);
-#line 155 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->close_cancel_button);
-#line 156 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->active_pane);
-#line 157 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 158 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- _g_object_unref0 (self->priv->host);
-#line 159 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- spit_pluggable_info_destroy (&self->priv->info);
-#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala"
- G_OBJECT_CLASS (publishing_ui_publishing_dialog_parent_class)->finalize (obj);
-#line 3618 "PublishingUI.c"
-}
-
-
-GType
-publishing_ui_publishing_dialog_get_type (void)
-{
- static volatile gsize publishing_ui_publishing_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&publishing_ui_publishing_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (PublishingUIPublishingDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_publishing_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIPublishingDialog), 0, (GInstanceInitFunc) publishing_ui_publishing_dialog_instance_init, NULL };
- GType publishing_ui_publishing_dialog_type_id;
- publishing_ui_publishing_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "PublishingUIPublishingDialog", &g_define_type_info, 0);
- g_once_init_leave (&publishing_ui_publishing_dialog_type_id__volatile, publishing_ui_publishing_dialog_type_id);
- }
- return publishing_ui_publishing_dialog_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/searches/SavedSearchDialog.c b/src/searches/SavedSearchDialog.c
deleted file mode 100644
index 65e6df1..0000000
--- a/src/searches/SavedSearchDialog.c
+++ /dev/null
@@ -1,6239 +0,0 @@
-/* SavedSearchDialog.c generated by valac 0.40.4, the Vala compiler
- * generated from SavedSearchDialog.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* This dialog displays a boolean search configuration.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ())
-#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog))
-#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG))
-#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG))
-#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-
-typedef struct _SavedSearchDialog SavedSearchDialog;
-typedef struct _SavedSearchDialogClass SavedSearchDialogClass;
-typedef struct _SavedSearchDialogPrivate SavedSearchDialogPrivate;
-
-#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER (saved_search_dialog_search_row_container_get_type ())
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainer))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainerClass))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainerClass))
-
-typedef struct _SavedSearchDialogSearchRowContainer SavedSearchDialogSearchRowContainer;
-typedef struct _SavedSearchDialogSearchRowContainerClass SavedSearchDialogSearchRowContainerClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SAVED_SEARCH (saved_search_get_type ())
-#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch))
-#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass))
-#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH))
-#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH))
-#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass))
-
-typedef struct _SavedSearch SavedSearch;
-typedef struct _SavedSearchClass SavedSearchClass;
-enum {
- SAVED_SEARCH_DIALOG_0_PROPERTY,
- SAVED_SEARCH_DIALOG_NUM_PROPERTIES
-};
-static GParamSpec* saved_search_dialog_properties[SAVED_SEARCH_DIALOG_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ())
-#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable))
-#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE))
-#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE))
-#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-
-typedef struct _SavedSearchTable SavedSearchTable;
-typedef struct _SavedSearchTableClass SavedSearchTableClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL)))
-#define _saved_search_dialog_search_row_container_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_dialog_search_row_container_unref (var), NULL)))
-
-#define TYPE_SEARCH_OPERATOR (search_operator_get_type ())
-
-#define TYPE_SEARCH_CONDITION (search_condition_get_type ())
-#define SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION, SearchCondition))
-#define SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION, SearchConditionClass))
-#define IS_SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION))
-#define IS_SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION))
-#define SEARCH_CONDITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION, SearchConditionClass))
-
-typedef struct _SearchCondition SearchCondition;
-typedef struct _SearchConditionClass SearchConditionClass;
-#define _search_condition_unref0(var) ((var == NULL) ? NULL : (var = (search_condition_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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;
-typedef struct _SavedSearchDialogSearchRowContainerPrivate SavedSearchDialogSearchRowContainerPrivate;
-
-#define SEARCH_CONDITION_TYPE_SEARCH_TYPE (search_condition_search_type_get_type ())
-
-#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW (saved_search_dialog_search_row_get_type ())
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRowClass))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRowClass))
-
-typedef struct _SavedSearchDialogSearchRow SavedSearchDialogSearchRow;
-typedef struct _SavedSearchDialogSearchRowClass SavedSearchDialogSearchRowClass;
-#define _saved_search_dialog_search_row_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_dialog_search_row_unref (var), NULL)))
-
-#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT (saved_search_dialog_search_row_text_get_type ())
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowTextClass))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowTextClass))
-
-typedef struct _SavedSearchDialogSearchRowText SavedSearchDialogSearchRowText;
-typedef struct _SavedSearchDialogSearchRowTextClass SavedSearchDialogSearchRowTextClass;
-
-#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE (saved_search_dialog_search_row_media_type_get_type ())
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaTypeClass))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaTypeClass))
-
-typedef struct _SavedSearchDialogSearchRowMediaType SavedSearchDialogSearchRowMediaType;
-typedef struct _SavedSearchDialogSearchRowMediaTypeClass SavedSearchDialogSearchRowMediaTypeClass;
-
-#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED (saved_search_dialog_search_row_flagged_get_type ())
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlaggedClass))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlaggedClass))
-
-typedef struct _SavedSearchDialogSearchRowFlagged SavedSearchDialogSearchRowFlagged;
-typedef struct _SavedSearchDialogSearchRowFlaggedClass SavedSearchDialogSearchRowFlaggedClass;
-
-#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED (saved_search_dialog_search_row_modified_get_type ())
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModifiedClass))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModifiedClass))
-
-typedef struct _SavedSearchDialogSearchRowModified SavedSearchDialogSearchRowModified;
-typedef struct _SavedSearchDialogSearchRowModifiedClass SavedSearchDialogSearchRowModifiedClass;
-
-#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING (saved_search_dialog_search_row_rating_get_type ())
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRatingClass))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRatingClass))
-
-typedef struct _SavedSearchDialogSearchRowRating SavedSearchDialogSearchRowRating;
-typedef struct _SavedSearchDialogSearchRowRatingClass SavedSearchDialogSearchRowRatingClass;
-
-#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE (saved_search_dialog_search_row_date_get_type ())
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDateClass))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE))
-#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE))
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDateClass))
-
-typedef struct _SavedSearchDialogSearchRowDate SavedSearchDialogSearchRowDate;
-typedef struct _SavedSearchDialogSearchRowDateClass SavedSearchDialogSearchRowDateClass;
-typedef struct _SavedSearchDialogParamSpecSearchRowContainer SavedSearchDialogParamSpecSearchRowContainer;
-enum {
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_REMOVE_SIGNAL,
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL,
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_NUM_SIGNALS
-};
-static guint saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_NUM_SIGNALS] = {0};
-typedef struct _SavedSearchDialogSearchRowPrivate SavedSearchDialogSearchRowPrivate;
-typedef struct _SavedSearchDialogParamSpecSearchRow SavedSearchDialogParamSpecSearchRow;
-typedef struct _SavedSearchDialogSearchRowTextPrivate SavedSearchDialogSearchRowTextPrivate;
-
-#define SEARCH_CONDITION_TEXT_TYPE_CONTEXT (search_condition_text_context_get_type ())
-
-#define TYPE_SEARCH_CONDITION_TEXT (search_condition_text_get_type ())
-#define SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionText))
-#define SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass))
-#define IS_SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_TEXT))
-#define IS_SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_TEXT))
-#define SEARCH_CONDITION_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass))
-
-typedef struct _SearchConditionText SearchConditionText;
-typedef struct _SearchConditionTextClass SearchConditionTextClass;
-typedef struct _SavedSearchDialogSearchRowMediaTypePrivate SavedSearchDialogSearchRowMediaTypePrivate;
-
-#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_CONTEXT (search_condition_media_type_context_get_type ())
-
-#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_MEDIA_TYPE (search_condition_media_type_media_type_get_type ())
-
-#define TYPE_SEARCH_CONDITION_MEDIA_TYPE (search_condition_media_type_get_type ())
-#define SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType))
-#define SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass))
-#define IS_SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE))
-#define IS_SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE))
-#define SEARCH_CONDITION_MEDIA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass))
-
-typedef struct _SearchConditionMediaType SearchConditionMediaType;
-typedef struct _SearchConditionMediaTypeClass SearchConditionMediaTypeClass;
-typedef struct _SavedSearchDialogSearchRowModifiedPrivate SavedSearchDialogSearchRowModifiedPrivate;
-
-#define SEARCH_CONDITION_MODIFIED_TYPE_CONTEXT (search_condition_modified_context_get_type ())
-
-#define SEARCH_CONDITION_MODIFIED_TYPE_STATE (search_condition_modified_state_get_type ())
-
-#define TYPE_SEARCH_CONDITION_MODIFIED (search_condition_modified_get_type ())
-#define SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified))
-#define SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass))
-#define IS_SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MODIFIED))
-#define IS_SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MODIFIED))
-#define SEARCH_CONDITION_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass))
-
-typedef struct _SearchConditionModified SearchConditionModified;
-typedef struct _SearchConditionModifiedClass SearchConditionModifiedClass;
-typedef struct _SavedSearchDialogSearchRowFlaggedPrivate SavedSearchDialogSearchRowFlaggedPrivate;
-
-#define SEARCH_CONDITION_FLAGGED_TYPE_STATE (search_condition_flagged_state_get_type ())
-
-#define TYPE_SEARCH_CONDITION_FLAGGED (search_condition_flagged_get_type ())
-#define SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged))
-#define SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass))
-#define IS_SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_FLAGGED))
-#define IS_SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_FLAGGED))
-#define SEARCH_CONDITION_FLAGGED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass))
-
-typedef struct _SearchConditionFlagged SearchConditionFlagged;
-typedef struct _SearchConditionFlaggedClass SearchConditionFlaggedClass;
-typedef struct _SavedSearchDialogSearchRowRatingPrivate SavedSearchDialogSearchRowRatingPrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define SEARCH_CONDITION_RATING_TYPE_CONTEXT (search_condition_rating_context_get_type ())
-
-#define TYPE_SEARCH_CONDITION_RATING (search_condition_rating_get_type ())
-#define SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRating))
-#define SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass))
-#define IS_SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_RATING))
-#define IS_SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_RATING))
-#define SEARCH_CONDITION_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass))
-
-typedef struct _SearchConditionRating SearchConditionRating;
-typedef struct _SearchConditionRatingClass SearchConditionRatingClass;
-typedef struct _SavedSearchDialogSearchRowDatePrivate SavedSearchDialogSearchRowDatePrivate;
-
-#define SEARCH_CONDITION_DATE_TYPE_CONTEXT (search_condition_date_context_get_type ())
-#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
-
-#define TYPE_SEARCH_CONDITION_DATE (search_condition_date_get_type ())
-#define SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDate))
-#define SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass))
-#define IS_SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_DATE))
-#define IS_SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_DATE))
-#define SEARCH_CONDITION_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass))
-
-typedef struct _SearchConditionDate SearchConditionDate;
-typedef struct _SearchConditionDateClass SearchConditionDateClass;
-typedef struct _Block10Data Block10Data;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SavedSearchDialog {
- GtkDialog parent_instance;
- SavedSearchDialogPrivate * priv;
-};
-
-struct _SavedSearchDialogClass {
- GtkDialogClass parent_class;
-};
-
-struct _SavedSearchDialogPrivate {
- GtkButton* add_criteria;
- GtkComboBoxText* operator;
- GtkEntry* search_title;
- GtkListBox* row_listbox;
- GeeArrayList* row_list;
- gboolean edit_mode;
- SavedSearch* previous_search;
- gboolean valid;
-};
-
-typedef enum {
- SEARCH_OPERATOR_ANY = 0,
- SEARCH_OPERATOR_ALL,
- SEARCH_OPERATOR_NONE
-} SearchOperator;
-
-struct _SavedSearchDialogSearchRowContainer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SavedSearchDialogSearchRowContainerPrivate * priv;
-};
-
-struct _SavedSearchDialogSearchRowContainerClass {
- GTypeClass parent_class;
- void (*finalize) (SavedSearchDialogSearchRowContainer *self);
-};
-
-typedef enum {
- SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT = 0,
- SEARCH_CONDITION_SEARCH_TYPE_TITLE,
- SEARCH_CONDITION_SEARCH_TYPE_TAG,
- SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME,
- SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME,
- SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE,
- SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE,
- SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE,
- SEARCH_CONDITION_SEARCH_TYPE_RATING,
- SEARCH_CONDITION_SEARCH_TYPE_COMMENT,
- SEARCH_CONDITION_SEARCH_TYPE_DATE
-} SearchConditionSearchType;
-
-struct _SavedSearchDialogSearchRowContainerPrivate {
- GtkComboBoxText* type_combo;
- GtkBox* box;
- GtkButton* remove_button;
- SearchConditionSearchType* search_types;
- gint search_types_length1;
- gint _search_types_size_;
- GeeHashMap* search_types_index;
- SavedSearchDialogSearchRow* my_row;
-};
-
-struct _SavedSearchDialogParamSpecSearchRowContainer {
- GParamSpec parent_instance;
-};
-
-struct _SavedSearchDialogSearchRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SavedSearchDialogSearchRowPrivate * priv;
-};
-
-struct _SavedSearchDialogSearchRowClass {
- GTypeClass parent_class;
- void (*finalize) (SavedSearchDialogSearchRow *self);
- GtkWidget* (*get_widget) (SavedSearchDialogSearchRow* self);
- SearchCondition* (*get_search_condition) (SavedSearchDialogSearchRow* self);
- void (*populate) (SavedSearchDialogSearchRow* self, SearchCondition* sc);
- gboolean (*is_complete) (SavedSearchDialogSearchRow* self);
-};
-
-struct _SavedSearchDialogParamSpecSearchRow {
- GParamSpec parent_instance;
-};
-
-struct _SavedSearchDialogSearchRowText {
- SavedSearchDialogSearchRow parent_instance;
- SavedSearchDialogSearchRowTextPrivate * priv;
-};
-
-struct _SavedSearchDialogSearchRowTextClass {
- SavedSearchDialogSearchRowClass parent_class;
-};
-
-struct _SavedSearchDialogSearchRowTextPrivate {
- GtkBox* box;
- GtkComboBoxText* text_context;
- GtkEntry* entry;
- SavedSearchDialogSearchRowContainer* parent;
-};
-
-typedef enum {
- SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS = 0,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY,
- SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH,
- SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH,
- SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_SET
-} SearchConditionTextContext;
-
-struct _SavedSearchDialogSearchRowMediaType {
- SavedSearchDialogSearchRow parent_instance;
- SavedSearchDialogSearchRowMediaTypePrivate * priv;
-};
-
-struct _SavedSearchDialogSearchRowMediaTypeClass {
- SavedSearchDialogSearchRowClass parent_class;
-};
-
-struct _SavedSearchDialogSearchRowMediaTypePrivate {
- GtkBox* box;
- GtkComboBoxText* media_context;
- GtkComboBoxText* media_type;
- SavedSearchDialogSearchRowContainer* parent;
-};
-
-typedef enum {
- SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS = 0,
- SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT
-} SearchConditionMediaTypeContext;
-
-typedef enum {
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL = 0,
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW,
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO
-} SearchConditionMediaTypeMediaType;
-
-struct _SavedSearchDialogSearchRowModified {
- SavedSearchDialogSearchRow parent_instance;
- SavedSearchDialogSearchRowModifiedPrivate * priv;
-};
-
-struct _SavedSearchDialogSearchRowModifiedClass {
- SavedSearchDialogSearchRowClass parent_class;
-};
-
-struct _SavedSearchDialogSearchRowModifiedPrivate {
- GtkBox* box;
- GtkComboBoxText* modified_context;
- GtkComboBoxText* modified_state;
- SavedSearchDialogSearchRowContainer* parent;
-};
-
-typedef enum {
- SEARCH_CONDITION_MODIFIED_CONTEXT_HAS = 0,
- SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO
-} SearchConditionModifiedContext;
-
-typedef enum {
- SEARCH_CONDITION_MODIFIED_STATE_MODIFIED = 0,
- SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES,
- SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES
-} SearchConditionModifiedState;
-
-struct _SavedSearchDialogSearchRowFlagged {
- SavedSearchDialogSearchRow parent_instance;
- SavedSearchDialogSearchRowFlaggedPrivate * priv;
-};
-
-struct _SavedSearchDialogSearchRowFlaggedClass {
- SavedSearchDialogSearchRowClass parent_class;
-};
-
-struct _SavedSearchDialogSearchRowFlaggedPrivate {
- GtkBox* box;
- GtkComboBoxText* flagged_state;
- SavedSearchDialogSearchRowContainer* parent;
-};
-
-typedef enum {
- SEARCH_CONDITION_FLAGGED_STATE_FLAGGED = 0,
- SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED
-} SearchConditionFlaggedState;
-
-struct _SavedSearchDialogSearchRowRating {
- SavedSearchDialogSearchRow parent_instance;
- SavedSearchDialogSearchRowRatingPrivate * priv;
-};
-
-struct _SavedSearchDialogSearchRowRatingClass {
- SavedSearchDialogSearchRowClass parent_class;
-};
-
-struct _SavedSearchDialogSearchRowRatingPrivate {
- GtkBox* box;
- GtkComboBoxText* rating;
- GtkComboBoxText* context;
- SavedSearchDialogSearchRowContainer* parent;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER = 0,
- SEARCH_CONDITION_RATING_CONTEXT_ONLY,
- SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER
-} SearchConditionRatingContext;
-
-struct _SavedSearchDialogSearchRowDate {
- SavedSearchDialogSearchRow parent_instance;
- SavedSearchDialogSearchRowDatePrivate * priv;
-};
-
-struct _SavedSearchDialogSearchRowDateClass {
- SavedSearchDialogSearchRowClass parent_class;
-};
-
-struct _SavedSearchDialogSearchRowDatePrivate {
- GtkBox* box;
- GtkComboBoxText* context;
- GtkButton* label_one;
- GtkButton* label_two;
- GtkCalendar* cal_one;
- GtkCalendar* cal_two;
- GtkLabel* and;
- SavedSearchDialogSearchRowContainer* parent;
-};
-
-typedef enum {
- SEARCH_CONDITION_DATE_CONTEXT_EXACT = 0,
- SEARCH_CONDITION_DATE_CONTEXT_AFTER,
- SEARCH_CONDITION_DATE_CONTEXT_BEFORE,
- SEARCH_CONDITION_DATE_CONTEXT_BETWEEN,
- SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET
-} SearchConditionDateContext;
-
-struct _Block10Data {
- int _ref_count_;
- SavedSearchDialogSearchRowDate* self;
- GtkDialog* d;
-};
-
-
-static gpointer saved_search_dialog_parent_class = NULL;
-static gpointer saved_search_dialog_search_row_container_parent_class = NULL;
-static gpointer saved_search_dialog_search_row_parent_class = NULL;
-static gpointer saved_search_dialog_search_row_text_parent_class = NULL;
-static gpointer saved_search_dialog_search_row_media_type_parent_class = NULL;
-static gpointer saved_search_dialog_search_row_modified_parent_class = NULL;
-static gpointer saved_search_dialog_search_row_flagged_parent_class = NULL;
-static gpointer saved_search_dialog_search_row_rating_parent_class = NULL;
-static gpointer saved_search_dialog_search_row_date_parent_class = NULL;
-
-GType saved_search_dialog_get_type (void) G_GNUC_CONST;
-static gpointer saved_search_dialog_search_row_container_ref (gpointer instance);
-static void saved_search_dialog_search_row_container_unref (gpointer instance);
-static GParamSpec* saved_search_dialog_param_spec_search_row_container (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void saved_search_dialog_value_set_search_row_container (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void saved_search_dialog_value_take_search_row_container (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer saved_search_dialog_value_get_search_row_container (const GValue* value) G_GNUC_UNUSED;
-static GType saved_search_dialog_search_row_container_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType saved_search_get_type (void) G_GNUC_CONST;
-#define SAVED_SEARCH_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogPrivate))
-SavedSearchDialog* saved_search_dialog_new (void);
-SavedSearchDialog* saved_search_dialog_construct (GType object_type);
-gint resources_use_header_bar (void);
-static void saved_search_dialog_setup_dialog (SavedSearchDialog* self);
-gpointer saved_search_table_ref (gpointer instance);
-void saved_search_table_unref (gpointer instance);
-GParamSpec* param_spec_saved_search_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_saved_search_table (GValue* value,
- gpointer v_object);
-void value_take_saved_search_table (GValue* value,
- gpointer v_object);
-gpointer value_get_saved_search_table (const GValue* value);
-GType saved_search_table_get_type (void) G_GNUC_CONST;
-SavedSearchTable* saved_search_table_get_instance (void);
-gchar* saved_search_table_generate_unique_name (SavedSearchTable* self);
-static void saved_search_dialog_add_text_search (SavedSearchDialog* self);
-static void saved_search_dialog_search_row_container_allow_removal (SavedSearchDialogSearchRowContainer* self,
- gboolean allow);
-static void saved_search_dialog_set_valid (SavedSearchDialog* self,
- gboolean v);
-SavedSearchDialog* saved_search_dialog_new_edit_existing (SavedSearch* saved_search);
-SavedSearchDialog* saved_search_dialog_construct_edit_existing (GType object_type,
- SavedSearch* saved_search);
-GType search_operator_get_type (void) G_GNUC_CONST;
-SearchOperator saved_search_get_operator (SavedSearch* self);
-gchar* data_object_get_name (DataObject* self);
-gpointer search_condition_ref (gpointer instance);
-void search_condition_unref (gpointer instance);
-GParamSpec* param_spec_search_condition (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_search_condition (GValue* value,
- gpointer v_object);
-void value_take_search_condition (GValue* value,
- gpointer v_object);
-gpointer value_get_search_condition (const GValue* value);
-GType search_condition_get_type (void) G_GNUC_CONST;
-GeeList* saved_search_get_conditions (SavedSearch* self);
-static void saved_search_dialog_add_row (SavedSearchDialog* self,
- SavedSearchDialogSearchRowContainer* row);
-static SavedSearchDialogSearchRowContainer* saved_search_dialog_search_row_container_new_edit_existing (SearchCondition* sc);
-static SavedSearchDialogSearchRowContainer* saved_search_dialog_search_row_container_construct_edit_existing (GType object_type,
- SearchCondition* sc);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType app_window_get_type (void) G_GNUC_CONST;
-AppWindow* app_window_get_instance (void);
-static void saved_search_dialog_on_response (SavedSearchDialog* self,
- gint response_id);
-static void _saved_search_dialog_on_response_gtk_dialog_response (GtkDialog* _sender,
- gint response_id,
- gpointer self);
-static void saved_search_dialog_on_add_criteria (SavedSearchDialog* self);
-static void _saved_search_dialog_on_add_criteria_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void saved_search_dialog_on_title_changed (SavedSearchDialog* self);
-static void _saved_search_dialog_on_title_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
-void saved_search_dialog_show (SavedSearchDialog* self);
-static SavedSearchDialogSearchRowContainer* saved_search_dialog_search_row_container_new (void);
-static SavedSearchDialogSearchRowContainer* saved_search_dialog_search_row_container_construct (GType object_type);
-static GtkWidget* saved_search_dialog_search_row_container_get_widget (SavedSearchDialogSearchRowContainer* self);
-static void saved_search_dialog_on_remove_row (SavedSearchDialog* self,
- SavedSearchDialogSearchRowContainer* row);
-static void _saved_search_dialog_on_remove_row_saved_search_dialog_search_row_container_remove (SavedSearchDialogSearchRowContainer* _sender,
- SavedSearchDialogSearchRowContainer* this_row,
- gpointer self);
-static void saved_search_dialog_on_row_changed (SavedSearchDialog* self,
- SavedSearchDialogSearchRowContainer* row);
-static void _saved_search_dialog_on_row_changed_saved_search_dialog_search_row_container_changed (SavedSearchDialogSearchRowContainer* _sender,
- SavedSearchDialogSearchRowContainer* this_row,
- gpointer self);
-static gboolean saved_search_dialog_search_row_container_is_complete (SavedSearchDialogSearchRowContainer* self);
-gboolean saved_search_table_exists (SavedSearchTable* self,
- const gchar* search_name);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-gchar* resources_rename_search_exists_message (const gchar* name);
-void saved_search_table_remove (SavedSearchTable* self,
- SavedSearch* search);
-static SearchCondition* saved_search_dialog_search_row_container_get_search_condition (SavedSearchDialogSearchRowContainer* self);
-SavedSearch* saved_search_table_create (SavedSearchTable* self,
- const gchar* name,
- SearchOperator operator,
- GeeArrayList* conditions);
-static gboolean saved_search_dialog_is_title_valid (SavedSearchDialog* self);
-GType search_condition_search_type_get_type (void) G_GNUC_CONST;
-static gpointer saved_search_dialog_search_row_ref (gpointer instance);
-static void saved_search_dialog_search_row_unref (gpointer instance);
-static GParamSpec* saved_search_dialog_param_spec_search_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void saved_search_dialog_value_set_search_row (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void saved_search_dialog_value_take_search_row (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer saved_search_dialog_value_get_search_row (const GValue* value) G_GNUC_UNUSED;
-static GType saved_search_dialog_search_row_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainerPrivate))
-static void saved_search_dialog_search_row_container_setup_gui (SavedSearchDialogSearchRowContainer* self);
-static void saved_search_dialog_search_row_container_set_type (SavedSearchDialogSearchRowContainer* self,
- SearchConditionSearchType type);
-SearchConditionSearchType search_condition_get_search_type (SearchCondition* self);
-static void saved_search_dialog_search_row_container_set_type_combo_box (SavedSearchDialogSearchRowContainer* self,
- SearchConditionSearchType st);
-static void saved_search_dialog_search_row_populate (SavedSearchDialogSearchRow* self,
- SearchCondition* sc);
-SearchConditionSearchType* search_condition_search_type_as_array (int* result_length1);
-void search_condition_search_type_sort_array (SearchConditionSearchType** array,
- int* array_length1);
-gchar* search_condition_search_type_display_text (SearchConditionSearchType self);
-static void saved_search_dialog_search_row_container_on_type_changed (SavedSearchDialogSearchRowContainer* self);
-static void _saved_search_dialog_search_row_container_on_type_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void saved_search_dialog_search_row_container_on_removed (SavedSearchDialogSearchRowContainer* self);
-static void _saved_search_dialog_search_row_container_on_removed_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static SearchConditionSearchType saved_search_dialog_search_row_container_get_search_type (SavedSearchDialogSearchRowContainer* self);
-static GtkWidget* saved_search_dialog_search_row_get_widget (SavedSearchDialogSearchRow* self);
-static SavedSearchDialogSearchRowText* saved_search_dialog_search_row_text_new (SavedSearchDialogSearchRowContainer* parent);
-static SavedSearchDialogSearchRowText* saved_search_dialog_search_row_text_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent);
-static GType saved_search_dialog_search_row_text_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SavedSearchDialogSearchRowMediaType* saved_search_dialog_search_row_media_type_new (SavedSearchDialogSearchRowContainer* parent);
-static SavedSearchDialogSearchRowMediaType* saved_search_dialog_search_row_media_type_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent);
-static GType saved_search_dialog_search_row_media_type_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SavedSearchDialogSearchRowFlagged* saved_search_dialog_search_row_flagged_new (SavedSearchDialogSearchRowContainer* parent);
-static SavedSearchDialogSearchRowFlagged* saved_search_dialog_search_row_flagged_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent);
-static GType saved_search_dialog_search_row_flagged_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SavedSearchDialogSearchRowModified* saved_search_dialog_search_row_modified_new (SavedSearchDialogSearchRowContainer* parent);
-static SavedSearchDialogSearchRowModified* saved_search_dialog_search_row_modified_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent);
-static GType saved_search_dialog_search_row_modified_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SavedSearchDialogSearchRowRating* saved_search_dialog_search_row_rating_new (SavedSearchDialogSearchRowContainer* parent);
-static SavedSearchDialogSearchRowRating* saved_search_dialog_search_row_rating_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent);
-static GType saved_search_dialog_search_row_rating_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SavedSearchDialogSearchRowDate* saved_search_dialog_search_row_date_new (SavedSearchDialogSearchRowContainer* parent);
-static SavedSearchDialogSearchRowDate* saved_search_dialog_search_row_date_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent);
-static GType saved_search_dialog_search_row_date_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static SearchCondition* saved_search_dialog_search_row_get_search_condition (SavedSearchDialogSearchRow* self);
-static gboolean saved_search_dialog_search_row_is_complete (SavedSearchDialogSearchRow* self);
-static void g_cclosure_user_marshal_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void saved_search_dialog_search_row_container_finalize (SavedSearchDialogSearchRowContainer * obj);
-static GtkWidget* saved_search_dialog_search_row_real_get_widget (SavedSearchDialogSearchRow* self);
-static SearchCondition* saved_search_dialog_search_row_real_get_search_condition (SavedSearchDialogSearchRow* self);
-static void saved_search_dialog_search_row_real_populate (SavedSearchDialogSearchRow* self,
- SearchCondition* sc);
-static gboolean saved_search_dialog_search_row_real_is_complete (SavedSearchDialogSearchRow* self);
-static SavedSearchDialogSearchRow* saved_search_dialog_search_row_construct (GType object_type);
-static void saved_search_dialog_search_row_finalize (SavedSearchDialogSearchRow * obj);
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowTextPrivate))
-static void saved_search_dialog_search_row_text_on_changed (SavedSearchDialogSearchRowText* self);
-static void _saved_search_dialog_search_row_text_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static void _saved_search_dialog_search_row_text_on_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
-static GtkWidget* saved_search_dialog_search_row_text_real_get_widget (SavedSearchDialogSearchRow* base);
-static SearchCondition* saved_search_dialog_search_row_text_real_get_search_condition (SavedSearchDialogSearchRow* base);
-GType search_condition_text_context_get_type (void) G_GNUC_CONST;
-static SearchConditionTextContext saved_search_dialog_search_row_text_get_text_context (SavedSearchDialogSearchRowText* self);
-GType search_condition_text_get_type (void) G_GNUC_CONST;
-SearchConditionText* search_condition_text_new (SearchConditionSearchType search_type,
- const gchar* text,
- SearchConditionTextContext context);
-SearchConditionText* search_condition_text_construct (GType object_type,
- SearchConditionSearchType search_type,
- const gchar* text,
- SearchConditionTextContext context);
-static void saved_search_dialog_search_row_text_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc);
-SearchConditionTextContext search_condition_text_get_context (SearchConditionText* self);
-const gchar* search_condition_text_get_text (SearchConditionText* self);
-static gboolean saved_search_dialog_search_row_text_real_is_complete (SavedSearchDialogSearchRow* base);
-static void saved_search_dialog_search_row_text_finalize (SavedSearchDialogSearchRow * obj);
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaTypePrivate))
-static void saved_search_dialog_search_row_media_type_on_changed (SavedSearchDialogSearchRowMediaType* self);
-static void _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static GtkWidget* saved_search_dialog_search_row_media_type_real_get_widget (SavedSearchDialogSearchRow* base);
-static SearchCondition* saved_search_dialog_search_row_media_type_real_get_search_condition (SavedSearchDialogSearchRow* base);
-GType search_condition_media_type_context_get_type (void) G_GNUC_CONST;
-GType search_condition_media_type_media_type_get_type (void) G_GNUC_CONST;
-GType search_condition_media_type_get_type (void) G_GNUC_CONST;
-SearchConditionMediaType* search_condition_media_type_new (SearchConditionSearchType search_type,
- SearchConditionMediaTypeContext context,
- SearchConditionMediaTypeMediaType media_type);
-SearchConditionMediaType* search_condition_media_type_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionMediaTypeContext context,
- SearchConditionMediaTypeMediaType media_type);
-static void saved_search_dialog_search_row_media_type_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc);
-SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchConditionMediaType* self);
-SearchConditionMediaTypeMediaType search_condition_media_type_get_media_type (SearchConditionMediaType* self);
-static gboolean saved_search_dialog_search_row_media_type_real_is_complete (SavedSearchDialogSearchRow* base);
-static void saved_search_dialog_search_row_media_type_finalize (SavedSearchDialogSearchRow * obj);
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModifiedPrivate))
-static void saved_search_dialog_search_row_modified_on_changed (SavedSearchDialogSearchRowModified* self);
-static void _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static GtkWidget* saved_search_dialog_search_row_modified_real_get_widget (SavedSearchDialogSearchRow* base);
-static SearchCondition* saved_search_dialog_search_row_modified_real_get_search_condition (SavedSearchDialogSearchRow* base);
-GType search_condition_modified_context_get_type (void) G_GNUC_CONST;
-GType search_condition_modified_state_get_type (void) G_GNUC_CONST;
-GType search_condition_modified_get_type (void) G_GNUC_CONST;
-SearchConditionModified* search_condition_modified_new (SearchConditionSearchType search_type,
- SearchConditionModifiedContext context,
- SearchConditionModifiedState state);
-SearchConditionModified* search_condition_modified_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionModifiedContext context,
- SearchConditionModifiedState state);
-static void saved_search_dialog_search_row_modified_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc);
-SearchConditionModifiedState search_condition_modified_get_state (SearchConditionModified* self);
-SearchConditionModifiedContext search_condition_modified_get_context (SearchConditionModified* self);
-static gboolean saved_search_dialog_search_row_modified_real_is_complete (SavedSearchDialogSearchRow* base);
-static void saved_search_dialog_search_row_modified_finalize (SavedSearchDialogSearchRow * obj);
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlaggedPrivate))
-static void saved_search_dialog_search_row_flagged_on_changed (SavedSearchDialogSearchRowFlagged* self);
-static void _saved_search_dialog_search_row_flagged_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-static GtkWidget* saved_search_dialog_search_row_flagged_real_get_widget (SavedSearchDialogSearchRow* base);
-static SearchCondition* saved_search_dialog_search_row_flagged_real_get_search_condition (SavedSearchDialogSearchRow* base);
-GType search_condition_flagged_state_get_type (void) G_GNUC_CONST;
-GType search_condition_flagged_get_type (void) G_GNUC_CONST;
-SearchConditionFlagged* search_condition_flagged_new (SearchConditionSearchType search_type,
- SearchConditionFlaggedState state);
-SearchConditionFlagged* search_condition_flagged_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionFlaggedState state);
-static void saved_search_dialog_search_row_flagged_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc);
-SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionFlagged* self);
-static gboolean saved_search_dialog_search_row_flagged_real_is_complete (SavedSearchDialogSearchRow* base);
-static void saved_search_dialog_search_row_flagged_finalize (SavedSearchDialogSearchRow * obj);
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRatingPrivate))
-static void saved_search_dialog_search_row_rating_on_changed (SavedSearchDialogSearchRowRating* self);
-static void _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-GType rating_get_type (void) G_GNUC_CONST;
-const gchar* resources_rating_combo_box (Rating rating);
-static GtkWidget* saved_search_dialog_search_row_rating_real_get_widget (SavedSearchDialogSearchRow* base);
-static SearchCondition* saved_search_dialog_search_row_rating_real_get_search_condition (SavedSearchDialogSearchRow* base);
-GType search_condition_rating_context_get_type (void) G_GNUC_CONST;
-GType search_condition_rating_get_type (void) G_GNUC_CONST;
-SearchConditionRating* search_condition_rating_new (SearchConditionSearchType search_type,
- Rating rating,
- SearchConditionRatingContext context);
-SearchConditionRating* search_condition_rating_construct (GType object_type,
- SearchConditionSearchType search_type,
- Rating rating,
- SearchConditionRatingContext context);
-static void saved_search_dialog_search_row_rating_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc);
-SearchConditionRatingContext search_condition_rating_get_context (SearchConditionRating* self);
-Rating search_condition_rating_get_rating (SearchConditionRating* self);
-static gboolean saved_search_dialog_search_row_rating_real_is_complete (SavedSearchDialogSearchRow* base);
-static void saved_search_dialog_search_row_rating_finalize (SavedSearchDialogSearchRow * obj);
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDatePrivate))
-static void saved_search_dialog_search_row_date_on_changed (SavedSearchDialogSearchRowDate* self);
-static void _saved_search_dialog_search_row_date_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
-#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_DATE_FORMAT "%x"
-static void saved_search_dialog_search_row_date_on_one_clicked (SavedSearchDialogSearchRowDate* self);
-static void _saved_search_dialog_search_row_date_on_one_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void saved_search_dialog_search_row_date_on_two_clicked (SavedSearchDialogSearchRowDate* self);
-static void _saved_search_dialog_search_row_date_on_two_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self);
-static void saved_search_dialog_search_row_date_update_date_labels (SavedSearchDialogSearchRowDate* self);
-GType search_condition_date_context_get_type (void) G_GNUC_CONST;
-static GDateTime* saved_search_dialog_search_row_date_get_date_one (SavedSearchDialogSearchRowDate* self);
-static GDateTime* saved_search_dialog_search_row_date_get_date_two (SavedSearchDialogSearchRowDate* self);
-static GtkWidget* saved_search_dialog_search_row_date_real_get_widget (SavedSearchDialogSearchRow* base);
-static void saved_search_dialog_search_row_date_set_date_one (SavedSearchDialogSearchRowDate* self,
- GDateTime* date);
-static void saved_search_dialog_search_row_date_set_date_two (SavedSearchDialogSearchRowDate* self,
- GDateTime* date);
-static SearchCondition* saved_search_dialog_search_row_date_real_get_search_condition (SavedSearchDialogSearchRow* base);
-GType search_condition_date_get_type (void) G_GNUC_CONST;
-SearchConditionDate* search_condition_date_new (SearchConditionSearchType search_type,
- SearchConditionDateContext context,
- GDateTime* date_one,
- GDateTime* date_two);
-SearchConditionDate* search_condition_date_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionDateContext context,
- GDateTime* date_one,
- GDateTime* date_two);
-static void saved_search_dialog_search_row_date_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc);
-SearchConditionDateContext search_condition_date_get_context (SearchConditionDate* self);
-GDateTime* search_condition_date_get_date_one (SearchConditionDate* self);
-GDateTime* search_condition_date_get_date_two (SearchConditionDate* self);
-static gboolean saved_search_dialog_search_row_date_real_is_complete (SavedSearchDialogSearchRow* base);
-static void saved_search_dialog_search_row_date_popup_calendar (SavedSearchDialogSearchRowDate* self,
- GtkCalendar* cal);
-static Block10Data* block10_data_ref (Block10Data* _data10_);
-static void block10_data_unref (void * _userdata_);
-#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
-#define RESOURCES_OK_LABEL _ ("_OK")
-static void __lambda14_ (SavedSearchDialogSearchRowDate* self);
-static void ___lambda14__gtk_calendar_day_selected (GtkCalendar* _sender,
- gpointer self);
-static void __lambda15_ (Block10Data* _data10_);
-static void ___lambda15__gtk_calendar_day_selected_double_click (GtkCalendar* _sender,
- gpointer self);
-static void saved_search_dialog_search_row_date_finalize (SavedSearchDialogSearchRow * obj);
-static void saved_search_dialog_finalize (GObject * obj);
-
-
-SavedSearchDialog*
-saved_search_dialog_construct (GType object_type)
-{
- SavedSearchDialog * self = NULL;
- GtkEntry* _tmp0_;
- SavedSearchTable* _tmp1_;
- SavedSearchTable* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GtkEntry* _tmp5_;
- GeeArrayList* _tmp6_;
- gpointer _tmp7_;
- SavedSearchDialogSearchRowContainer* _tmp8_;
-#line 657 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 659 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_setup_dialog (self);
-#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->search_title;
-#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = saved_search_table_get_instance ();
-#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = _tmp1_;
-#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = saved_search_table_generate_unique_name (_tmp2_);
-#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = _tmp3_;
-#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_entry_set_text (_tmp0_, _tmp4_);
-#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp4_);
-#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_table_unref0 (_tmp2_);
-#line 663 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = self->priv->search_title;
-#line 663 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_editable_select_region (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_editable_get_type (), GtkEditable), 0, -1);
-#line 666 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_add_text_search (self);
-#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->row_list;
-#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = (SavedSearchDialogSearchRowContainer*) _tmp7_;
-#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_allow_removal (_tmp8_, FALSE);
-#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (_tmp8_);
-#line 669 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 670 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_set_valid (self, FALSE);
-#line 656 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 962 "SavedSearchDialog.c"
-}
-
-
-SavedSearchDialog*
-saved_search_dialog_new (void)
-{
-#line 656 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_construct (TYPE_SAVED_SEARCH_DIALOG);
-#line 971 "SavedSearchDialog.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 676 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self ? g_object_ref (self) : NULL;
-#line 980 "SavedSearchDialog.c"
-}
-
-
-SavedSearchDialog*
-saved_search_dialog_construct_edit_existing (GType object_type,
- SavedSearch* saved_search)
-{
- SavedSearchDialog * self = NULL;
- SavedSearch* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkEntry* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GeeArrayList* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 673 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (saved_search), NULL);
-#line 674 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
-#line 676 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _g_object_ref0 (saved_search);
-#line 676 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->previous_search);
-#line 676 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->previous_search = _tmp0_;
-#line 677 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->edit_mode = TRUE;
-#line 678 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_setup_dialog (self);
-#line 680 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 683 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->operator;
-#line 683 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) ((SearchOperator) saved_search_get_operator (saved_search)));
-#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->search_title;
-#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (saved_search, TYPE_DATA_OBJECT, DataObject));
-#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = _tmp3_;
-#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_entry_set_text (_tmp2_, _tmp4_);
-#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp4_);
-#line 1027 "SavedSearchDialog.c"
- {
- GeeList* _sc_list = NULL;
- GeeList* _tmp5_;
- gint _sc_size = 0;
- GeeList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _sc_index = 0;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = saved_search_get_conditions (saved_search);
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _sc_list = _tmp5_;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = _sc_list;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = _tmp7_;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _sc_size = _tmp8_;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _sc_index = -1;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- while (TRUE) {
-#line 1052 "SavedSearchDialog.c"
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- SearchCondition* sc = NULL;
- GeeList* _tmp12_;
- gint _tmp13_;
- gpointer _tmp14_;
- SearchCondition* _tmp15_;
- SavedSearchDialogSearchRowContainer* _tmp16_;
- SavedSearchDialogSearchRowContainer* _tmp17_;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = _sc_index;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _sc_index = _tmp9_ + 1;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = _sc_index;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = _sc_size;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!(_tmp10_ < _tmp11_)) {
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 1075 "SavedSearchDialog.c"
- }
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = _sc_list;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = _sc_index;
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = gee_list_get (_tmp12_, _tmp13_);
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- sc = (SearchCondition*) _tmp14_;
-#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = sc;
-#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = saved_search_dialog_search_row_container_new_edit_existing (_tmp15_);
-#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = _tmp16_;
-#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_add_row (self, _tmp17_);
-#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (_tmp17_);
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _search_condition_unref0 (sc);
-#line 1097 "SavedSearchDialog.c"
- }
-#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_sc_list);
-#line 1101 "SavedSearchDialog.c"
- }
-#line 689 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = self->priv->row_list;
-#line 689 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp19_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 689 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp20_ = _tmp19_;
-#line 689 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp20_ == 1) {
-#line 1111 "SavedSearchDialog.c"
- GeeArrayList* _tmp21_;
- gpointer _tmp22_;
- SavedSearchDialogSearchRowContainer* _tmp23_;
-#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp21_ = self->priv->row_list;
-#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp22_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp23_ = (SavedSearchDialogSearchRowContainer*) _tmp22_;
-#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_allow_removal (_tmp23_, FALSE);
-#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (_tmp23_);
-#line 1125 "SavedSearchDialog.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_set_valid (self, TRUE);
-#line 673 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 1131 "SavedSearchDialog.c"
-}
-
-
-SavedSearchDialog*
-saved_search_dialog_new_edit_existing (SavedSearch* saved_search)
-{
-#line 673 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_construct_edit_existing (TYPE_SAVED_SEARCH_DIALOG, saved_search);
-#line 1140 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_on_response_gtk_dialog_response (GtkDialog* _sender,
- gint response_id,
- gpointer self)
-{
-#line 698 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_on_response ((SavedSearchDialog*) self, response_id);
-#line 1151 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_on_add_criteria_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 700 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_on_add_criteria ((SavedSearchDialog*) self);
-#line 1161 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_on_title_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
-{
-#line 702 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_on_title_changed ((SavedSearchDialog*) self);
-#line 1171 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_setup_dialog (SavedSearchDialog* self)
-{
- AppWindow* _tmp0_;
- AppWindow* _tmp1_;
- GtkButton* _tmp2_;
- GtkEntry* _tmp3_;
-#line 696 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 697 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = app_window_get_instance ();
-#line 697 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _tmp0_;
-#line 697 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow));
-#line 697 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_tmp1_);
-#line 698 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), "response", (GCallback) _saved_search_dialog_on_response_gtk_dialog_response, self, 0);
-#line 700 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->add_criteria;
-#line 700 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect_object (_tmp2_, "clicked", (GCallback) _saved_search_dialog_on_add_criteria_gtk_button_clicked, self, 0);
-#line 702 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->search_title;
-#line 702 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _saved_search_dialog_on_title_changed_gtk_editable_changed, self, 0);
-#line 1202 "SavedSearchDialog.c"
-}
-
-
-void
-saved_search_dialog_show (SavedSearchDialog* self)
-{
-#line 706 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 707 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 708 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
-#line 1215 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_on_add_criteria (SavedSearchDialog* self)
-{
-#line 712 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 713 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_add_text_search (self);
-#line 1226 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_add_text_search (SavedSearchDialog* self)
-{
- SavedSearchDialogSearchRowContainer* text = NULL;
- SavedSearchDialogSearchRowContainer* _tmp0_;
-#line 716 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 717 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = saved_search_dialog_search_row_container_new ();
-#line 717 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- text = _tmp0_;
-#line 718 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_add_row (self, text);
-#line 716 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (text);
-#line 1245 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_on_remove_row_saved_search_dialog_search_row_container_remove (SavedSearchDialogSearchRowContainer* _sender,
- SavedSearchDialogSearchRowContainer* this_row,
- gpointer self)
-{
-#line 727 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_on_remove_row ((SavedSearchDialog*) self, this_row);
-#line 1256 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_on_row_changed_saved_search_dialog_search_row_container_changed (SavedSearchDialogSearchRowContainer* _sender,
- SavedSearchDialogSearchRowContainer* this_row,
- gpointer self)
-{
-#line 728 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_on_row_changed ((SavedSearchDialog*) self, this_row);
-#line 1267 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_add_row (SavedSearchDialog* self,
- SavedSearchDialogSearchRowContainer* row)
-{
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GtkListBox* _tmp6_;
- GtkWidget* _tmp7_;
- GtkWidget* _tmp8_;
- GeeArrayList* _tmp9_;
-#line 722 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 722 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (row));
-#line 723 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->row_list;
-#line 723 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 723 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = _tmp1_;
-#line 723 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp2_ == 1) {
-#line 1294 "SavedSearchDialog.c"
- GeeArrayList* _tmp3_;
- gpointer _tmp4_;
- SavedSearchDialogSearchRowContainer* _tmp5_;
-#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->row_list;
-#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = (SavedSearchDialogSearchRowContainer*) _tmp4_;
-#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_allow_removal (_tmp5_, TRUE);
-#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (_tmp5_);
-#line 1308 "SavedSearchDialog.c"
- }
-#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->row_listbox;
-#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = saved_search_dialog_search_row_container_get_widget (row);
-#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = _tmp7_;
-#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_container_get_type (), GtkContainer), _tmp8_);
-#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_tmp8_);
-#line 726 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = self->priv->row_list;
-#line 726 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), row);
-#line 727 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect_object (row, "remove", (GCallback) _saved_search_dialog_on_remove_row_saved_search_dialog_search_row_container_remove, self, 0);
-#line 728 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect_object (row, "changed", (GCallback) _saved_search_dialog_on_row_changed_saved_search_dialog_search_row_container_changed, self, 0);
-#line 729 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_set_valid (self, saved_search_dialog_search_row_container_is_complete (row));
-#line 1330 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_on_remove_row (SavedSearchDialog* self,
- SavedSearchDialogSearchRowContainer* row)
-{
- guint _tmp0_;
- guint _tmp1_;
- GtkListBox* _tmp2_;
- GtkWidget* _tmp3_;
- GtkWidget* _tmp4_;
- GtkContainer* _tmp5_;
- GeeArrayList* _tmp6_;
- GeeArrayList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 733 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 733 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (row));
-#line 734 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("remove", SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, &_tmp0_, NULL, FALSE);
-#line 734 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (row, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _saved_search_dialog_on_remove_row_saved_search_dialog_search_row_container_remove, self);
-#line 735 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, &_tmp1_, NULL, FALSE);
-#line 735 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (row, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_on_row_changed_saved_search_dialog_search_row_container_changed, self);
-#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->row_listbox;
-#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = saved_search_dialog_search_row_container_get_widget (row);
-#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = _tmp3_;
-#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = gtk_widget_get_parent (_tmp4_);
-#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget));
-#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_tmp4_);
-#line 737 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->row_list;
-#line 737 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), row);
-#line 738 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->row_list;
-#line 738 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 738 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = _tmp8_;
-#line 738 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp9_ == 1) {
-#line 1384 "SavedSearchDialog.c"
- GeeArrayList* _tmp10_;
- gpointer _tmp11_;
- SavedSearchDialogSearchRowContainer* _tmp12_;
-#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = self->priv->row_list;
-#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = (SavedSearchDialogSearchRowContainer*) _tmp11_;
-#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_allow_removal (_tmp12_, FALSE);
-#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (_tmp12_);
-#line 1398 "SavedSearchDialog.c"
- }
-#line 740 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_set_valid (self, TRUE);
-#line 1402 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_on_response (SavedSearchDialog* self,
- gint response_id)
-{
-#line 743 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 744 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (response_id == ((gint) GTK_RESPONSE_OK)) {
-#line 1414 "SavedSearchDialog.c"
- gboolean _tmp0_ = FALSE;
- SavedSearchTable* _tmp1_;
- SavedSearchTable* _tmp2_;
- GtkEntry* _tmp3_;
- const gchar* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp17_;
- GeeArrayList* conditions = NULL;
- GeeArrayList* _tmp21_;
- SearchOperator search_operator = 0;
- GtkComboBoxText* _tmp37_;
- SavedSearchTable* _tmp38_;
- SavedSearchTable* _tmp39_;
- GtkEntry* _tmp40_;
- const gchar* _tmp41_;
- SearchOperator _tmp42_;
- GeeArrayList* _tmp43_;
- SavedSearch* _tmp44_;
- SavedSearch* _tmp45_;
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = saved_search_table_get_instance ();
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = _tmp1_;
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->search_title;
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = gtk_entry_get_text (_tmp3_);
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = saved_search_table_exists (_tmp2_, _tmp4_);
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_table_unref0 (_tmp2_);
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp5_) {
-#line 1448 "SavedSearchDialog.c"
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_;
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->edit_mode;
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp7_) {
-#line 1455 "SavedSearchDialog.c"
- SavedSearch* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GtkEntry* _tmp11_;
- const gchar* _tmp12_;
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = self->priv->previous_search;
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = _tmp9_;
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = self->priv->search_title;
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = gtk_entry_get_text (_tmp11_);
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = g_strcmp0 (_tmp10_, _tmp12_) == 0;
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp10_);
-#line 1475 "SavedSearchDialog.c"
- } else {
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = FALSE;
-#line 1479 "SavedSearchDialog.c"
- }
-#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = !_tmp6_;
-#line 1483 "SavedSearchDialog.c"
- } else {
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = FALSE;
-#line 1487 "SavedSearchDialog.c"
- }
-#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp0_) {
-#line 1491 "SavedSearchDialog.c"
- GtkEntry* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = self->priv->search_title;
-#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = gtk_entry_get_text (_tmp13_);
-#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = resources_rename_search_exists_message (_tmp14_);
-#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = _tmp15_;
-#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- app_window_error_message (_tmp16_, NULL);
-#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp16_);
-#line 748 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return;
-#line 1510 "SavedSearchDialog.c"
- }
-#line 751 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = self->priv->edit_mode;
-#line 751 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp17_) {
-#line 1516 "SavedSearchDialog.c"
- SavedSearchTable* _tmp18_;
- SavedSearchTable* _tmp19_;
- SavedSearch* _tmp20_;
-#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = saved_search_table_get_instance ();
-#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp19_ = _tmp18_;
-#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp20_ = self->priv->previous_search;
-#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_table_remove (_tmp19_, _tmp20_);
-#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_table_unref0 (_tmp19_);
-#line 1530 "SavedSearchDialog.c"
- }
-#line 757 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp21_ = gee_array_list_new (TYPE_SEARCH_CONDITION, (GBoxedCopyFunc) search_condition_ref, (GDestroyNotify) search_condition_unref, NULL, NULL, NULL);
-#line 757 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- conditions = _tmp21_;
-#line 1536 "SavedSearchDialog.c"
- {
- GeeArrayList* _c_list = NULL;
- GeeArrayList* _tmp22_;
- GeeArrayList* _tmp23_;
- gint _c_size = 0;
- GeeArrayList* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- gint _c_index = 0;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp22_ = self->priv->row_list;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp23_ = _g_object_ref0 (_tmp22_);
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _c_list = _tmp23_;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp24_ = _c_list;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp25_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp26_ = _tmp25_;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _c_size = _tmp26_;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _c_index = -1;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- while (TRUE) {
-#line 1564 "SavedSearchDialog.c"
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
- SavedSearchDialogSearchRowContainer* c = NULL;
- GeeArrayList* _tmp30_;
- gint _tmp31_;
- gpointer _tmp32_;
- GeeArrayList* _tmp33_;
- SavedSearchDialogSearchRowContainer* _tmp34_;
- SearchCondition* _tmp35_;
- SearchCondition* _tmp36_;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp27_ = _c_index;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _c_index = _tmp27_ + 1;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp28_ = _c_index;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp29_ = _c_size;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!(_tmp28_ < _tmp29_)) {
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 1588 "SavedSearchDialog.c"
- }
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp30_ = _c_list;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp31_ = _c_index;
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp32_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp31_);
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = (SavedSearchDialogSearchRowContainer*) _tmp32_;
-#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp33_ = conditions;
-#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp34_ = c;
-#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp35_ = saved_search_dialog_search_row_container_get_search_condition (_tmp34_);
-#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp36_ = _tmp35_;
-#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_);
-#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _search_condition_unref0 (_tmp36_);
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (c);
-#line 1612 "SavedSearchDialog.c"
- }
-#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_c_list);
-#line 1616 "SavedSearchDialog.c"
- }
-#line 763 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp37_ = self->priv->operator;
-#line 763 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_operator = (SearchOperator) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_combo_box_get_type (), GtkComboBox));
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp38_ = saved_search_table_get_instance ();
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp39_ = _tmp38_;
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp40_ = self->priv->search_title;
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp41_ = gtk_entry_get_text (_tmp40_);
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp42_ = search_operator;
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp43_ = conditions;
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp44_ = saved_search_table_create (_tmp39_, _tmp41_, _tmp42_, _tmp43_);
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp45_ = _tmp44_;
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_tmp45_);
-#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_table_unref0 (_tmp39_);
-#line 744 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (conditions);
-#line 1644 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-saved_search_dialog_on_row_changed (SavedSearchDialog* self,
- SavedSearchDialogSearchRowContainer* row)
-{
-#line 768 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 768 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (row));
-#line 769 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_set_valid (self, saved_search_dialog_search_row_container_is_complete (row));
-#line 1659 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_on_title_changed (SavedSearchDialog* self)
-{
-#line 772 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 773 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_set_valid (self, saved_search_dialog_is_title_valid (self));
-#line 1670 "SavedSearchDialog.c"
-}
-
-
-static gchar*
-string_chomp (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1232 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strchomp (_tmp1_);
-#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1695 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_is_title_valid (SavedSearchDialog* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
- GtkEntry* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gboolean _tmp13_;
- SavedSearchTable* _tmp14_;
- SavedSearchTable* _tmp15_;
- GtkEntry* _tmp16_;
- const gchar* _tmp17_;
- gboolean _tmp18_;
-#line 776 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_DIALOG (self), FALSE);
-#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->edit_mode;
-#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp2_) {
-#line 1722 "SavedSearchDialog.c"
- SavedSearch* _tmp3_;
-#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->previous_search;
-#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _tmp3_ != NULL;
-#line 1728 "SavedSearchDialog.c"
- } else {
-#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = FALSE;
-#line 1732 "SavedSearchDialog.c"
- }
-#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp1_) {
-#line 1736 "SavedSearchDialog.c"
- SavedSearch* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GtkEntry* _tmp7_;
- const gchar* _tmp8_;
-#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->previous_search;
-#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
-#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = _tmp5_;
-#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->search_title;
-#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = gtk_entry_get_text (_tmp7_);
-#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = g_strcmp0 (_tmp6_, _tmp8_) == 0;
-#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp6_);
-#line 1756 "SavedSearchDialog.c"
- } else {
-#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = FALSE;
-#line 1760 "SavedSearchDialog.c"
- }
-#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp0_) {
-#line 779 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = TRUE;
-#line 779 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 1768 "SavedSearchDialog.c"
- }
-#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = self->priv->search_title;
-#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = gtk_entry_get_text (_tmp9_);
-#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = string_chomp (_tmp10_);
-#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = _tmp11_;
-#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = g_strcmp0 (_tmp12_, "") == 0;
-#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp12_);
-#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp13_) {
-#line 781 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = FALSE;
-#line 781 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 1788 "SavedSearchDialog.c"
- }
-#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = saved_search_table_get_instance ();
-#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = _tmp14_;
-#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = self->priv->search_title;
-#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = gtk_entry_get_text (_tmp16_);
-#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = saved_search_table_exists (_tmp15_, _tmp17_);
-#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_table_unref0 (_tmp15_);
-#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp18_) {
-#line 783 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = FALSE;
-#line 783 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 1808 "SavedSearchDialog.c"
- }
-#line 784 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = TRUE;
-#line 784 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 1814 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_set_valid (SavedSearchDialog* self,
- gboolean v)
-{
- gboolean _tmp18_;
-#line 788 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self));
-#line 789 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!v) {
-#line 790 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->valid = FALSE;
-#line 1829 "SavedSearchDialog.c"
- } else {
- gboolean _tmp0_;
-#line 791 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->valid;
-#line 791 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (v != _tmp0_) {
-#line 792 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (saved_search_dialog_is_title_valid (self)) {
-#line 1838 "SavedSearchDialog.c"
- gint valid_rows = 0;
- gint _tmp14_;
- GeeArrayList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 794 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- valid_rows = 0;
-#line 1846 "SavedSearchDialog.c"
- {
- GeeArrayList* _c_list = NULL;
- GeeArrayList* _tmp1_;
- GeeArrayList* _tmp2_;
- gint _c_size = 0;
- GeeArrayList* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _c_index = 0;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->row_list;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _c_list = _tmp2_;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _c_list;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = _tmp4_;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _c_size = _tmp5_;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _c_index = -1;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- while (TRUE) {
-#line 1874 "SavedSearchDialog.c"
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- SavedSearchDialogSearchRowContainer* c = NULL;
- GeeArrayList* _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
- SavedSearchDialogSearchRowContainer* _tmp12_;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = _c_index;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _c_index = _tmp6_ + 1;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = _c_index;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = _c_size;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!(_tmp7_ < _tmp8_)) {
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 1895 "SavedSearchDialog.c"
- }
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = _c_list;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = _c_index;
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp10_);
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = (SavedSearchDialogSearchRowContainer*) _tmp11_;
-#line 796 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = c;
-#line 796 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (saved_search_dialog_search_row_container_is_complete (_tmp12_)) {
-#line 1909 "SavedSearchDialog.c"
- gint _tmp13_;
-#line 797 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = valid_rows;
-#line 797 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- valid_rows = _tmp13_ + 1;
-#line 1915 "SavedSearchDialog.c"
- }
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (c);
-#line 1919 "SavedSearchDialog.c"
- }
-#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_c_list);
-#line 1923 "SavedSearchDialog.c"
- }
-#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = valid_rows;
-#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = self->priv->row_list;
-#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = _tmp16_;
-#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->valid = _tmp14_ == _tmp17_;
-#line 1935 "SavedSearchDialog.c"
- } else {
-#line 801 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->valid = FALSE;
-#line 1939 "SavedSearchDialog.c"
- }
- }
- }
-#line 805 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = self->priv->valid;
-#line 805 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp18_);
-#line 1947 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowContainer*
-saved_search_dialog_search_row_container_construct (GType object_type)
-{
- SavedSearchDialogSearchRowContainer* self = NULL;
-#line 24 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRowContainer*) g_type_create_instance (object_type);
-#line 25 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_setup_gui (self);
-#line 26 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_set_type (self, SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT);
-#line 24 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 1963 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowContainer*
-saved_search_dialog_search_row_container_new (void)
-{
-#line 24 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_search_row_container_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER);
-#line 1972 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowContainer*
-saved_search_dialog_search_row_container_construct_edit_existing (GType object_type,
- SearchCondition* sc)
-{
- SavedSearchDialogSearchRowContainer* self = NULL;
- SearchConditionSearchType _tmp0_;
- SearchConditionSearchType _tmp1_;
- SearchConditionSearchType _tmp2_;
- SearchConditionSearchType _tmp3_;
- SavedSearchDialogSearchRow* _tmp4_;
-#line 29 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION (sc), NULL);
-#line 29 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRowContainer*) g_type_create_instance (object_type);
-#line 30 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_setup_gui (self);
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = search_condition_get_search_type (sc);
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _tmp0_;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_set_type (self, _tmp1_);
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = search_condition_get_search_type (sc);
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_set_type_combo_box (self, _tmp3_);
-#line 33 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->my_row;
-#line 33 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_populate (_tmp4_, sc);
-#line 29 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 2010 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowContainer*
-saved_search_dialog_search_row_container_new_edit_existing (SearchCondition* sc)
-{
-#line 29 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_search_row_container_construct_edit_existing (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, sc);
-#line 2019 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_search_row_container_on_type_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 49 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_on_type_changed ((SavedSearchDialogSearchRowContainer*) self);
-#line 2029 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_search_row_container_on_removed_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 53 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_on_removed ((SavedSearchDialogSearchRowContainer*) self);
-#line 2039 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_setup_gui (SavedSearchDialogSearchRowContainer* self)
-{
- gint _tmp0_;
- SearchConditionSearchType* _tmp1_;
- GeeHashMap* _tmp2_;
- GtkComboBoxText* _tmp3_;
- GtkComboBoxText* _tmp18_;
- GtkButton* _tmp19_;
- GtkButton* _tmp20_;
- GtkButton* _tmp21_;
- GtkBox* _tmp22_;
- GtkBox* _tmp23_;
- GtkComboBoxText* _tmp24_;
- GtkBox* _tmp25_;
- GtkButton* _tmp26_;
- GtkBox* _tmp27_;
- GtkBox* _tmp28_;
- GtkBox* _tmp29_;
- GtkBox* _tmp30_;
- GtkBox* _tmp31_;
-#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self));
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = search_condition_search_type_as_array (&_tmp0_);
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->search_types = (g_free (self->priv->search_types), NULL);
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->search_types = _tmp1_;
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->search_types_length1 = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->_search_types_size_ = self->priv->search_types_length1;
-#line 39 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = gee_hash_map_new (SEARCH_CONDITION_TYPE_SEARCH_TYPE, NULL, NULL, G_TYPE_INT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 39 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->search_types_index);
-#line 39 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->search_types_index = _tmp2_;
-#line 40 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_condition_search_type_sort_array (&self->priv->search_types, &self->priv->search_types_length1);
-#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp3_);
-#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->type_combo);
-#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->type_combo = _tmp3_;
-#line 2092 "SavedSearchDialog.c"
- {
- gint i = 0;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- i = 0;
-#line 2097 "SavedSearchDialog.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = TRUE;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- while (TRUE) {
-#line 2104 "SavedSearchDialog.c"
- gint _tmp6_;
- SearchConditionSearchType* _tmp7_;
- gint _tmp7__length1;
- SearchConditionSearchType st = 0;
- SearchConditionSearchType* _tmp8_;
- gint _tmp8__length1;
- gint _tmp9_;
- SearchConditionSearchType _tmp10_;
- GeeHashMap* _tmp11_;
- SearchConditionSearchType _tmp12_;
- gint _tmp13_;
- GtkComboBoxText* _tmp14_;
- SearchConditionSearchType _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!_tmp4_) {
-#line 2122 "SavedSearchDialog.c"
- gint _tmp5_;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = i;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- i = _tmp5_ + 1;
-#line 2128 "SavedSearchDialog.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = FALSE;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = i;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->search_types;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7__length1 = self->priv->search_types_length1;
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!(_tmp6_ < _tmp7__length1)) {
-#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 2142 "SavedSearchDialog.c"
- }
-#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = self->priv->search_types;
-#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8__length1 = self->priv->search_types_length1;
-#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = i;
-#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = _tmp8_[_tmp9_];
-#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- st = _tmp10_;
-#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = self->priv->search_types_index;
-#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = st;
-#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = i;
-#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp12_), (gpointer) ((gintptr) _tmp13_));
-#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = self->priv->type_combo;
-#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = st;
-#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = search_condition_search_type_display_text (_tmp15_);
-#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = _tmp16_;
-#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp14_, _tmp17_);
-#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp17_);
-#line 2174 "SavedSearchDialog.c"
- }
- }
- }
-#line 48 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_set_type_combo_box (self, SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT);
-#line 49 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = self->priv->type_combo;
-#line 49 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_container_on_type_changed_gtk_combo_box_changed, self);
-#line 51 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp19_ = (GtkButton*) gtk_button_new_from_icon_name ("window-close-symbolic", (GtkIconSize) GTK_ICON_SIZE_BUTTON);
-#line 51 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp19_);
-#line 51 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->remove_button);
-#line 51 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->remove_button = _tmp19_;
-#line 52 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp20_ = self->priv->remove_button;
-#line 52 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_button_set_relief (_tmp20_, GTK_RELIEF_NONE);
-#line 53 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp21_ = self->priv->remove_button;
-#line 53 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (_tmp21_, "clicked", (GCallback) _saved_search_dialog_search_row_container_on_removed_gtk_button_clicked, self);
-#line 55 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp22_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
-#line 55 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp22_);
-#line 55 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 55 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->box = _tmp22_;
-#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp23_ = self->priv->box;
-#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp24_ = self->priv->type_combo;
-#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp25_ = self->priv->box;
-#line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp26_ = self->priv->remove_button;
-#line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_end (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 58 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp27_ = self->priv->box;
-#line 58 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), 2);
-#line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp28_ = self->priv->box;
-#line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), 2);
-#line 60 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp29_ = self->priv->box;
-#line 60 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), 8);
-#line 61 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp30_ = self->priv->box;
-#line 61 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), 8);
-#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp31_ = self->priv->box;
-#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget));
-#line 2240 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_on_type_changed (SavedSearchDialogSearchRowContainer* self)
-{
-#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self));
-#line 66 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_set_type (self, saved_search_dialog_search_row_container_get_search_type (self));
-#line 67 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_emit (self, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, self);
-#line 2253 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_set_type_combo_box (SavedSearchDialogSearchRowContainer* self,
- SearchConditionSearchType st)
-{
- GtkComboBoxText* _tmp0_;
- GeeHashMap* _tmp1_;
- gpointer _tmp2_;
-#line 70 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self));
-#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->type_combo;
-#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->search_types_index;
-#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) st));
-#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), (gint) ((gintptr) _tmp2_));
-#line 2274 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_set_type (SavedSearchDialogSearchRowContainer* self,
- SearchConditionSearchType type)
-{
- SavedSearchDialogSearchRow* _tmp0_;
- GtkBox* _tmp11_;
- SavedSearchDialogSearchRow* _tmp12_;
- GtkWidget* _tmp13_;
- GtkWidget* _tmp14_;
-#line 74 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self));
-#line 75 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->my_row;
-#line 75 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp0_ != NULL) {
-#line 2293 "SavedSearchDialog.c"
- GtkBox* _tmp1_;
- SavedSearchDialogSearchRow* _tmp2_;
- GtkWidget* _tmp3_;
- GtkWidget* _tmp4_;
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->box;
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->my_row;
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = saved_search_dialog_search_row_get_widget (_tmp2_);
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = _tmp3_;
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_container_get_type (), GtkContainer), _tmp4_);
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_tmp4_);
-#line 2310 "SavedSearchDialog.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- switch (type) {
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT:
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME:
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME:
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_TAG:
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_COMMENT:
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_TITLE:
-#line 2326 "SavedSearchDialog.c"
- {
- SavedSearchDialogSearchRowText* _tmp5_;
-#line 85 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = saved_search_dialog_search_row_text_new (self);
-#line 85 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_unref0 (self->priv->my_row);
-#line 85 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow);
-#line 86 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 2337 "SavedSearchDialog.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE:
-#line 2341 "SavedSearchDialog.c"
- {
- SavedSearchDialogSearchRowMediaType* _tmp6_;
-#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = saved_search_dialog_search_row_media_type_new (self);
-#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_unref0 (self->priv->my_row);
-#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow);
-#line 90 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 2352 "SavedSearchDialog.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE:
-#line 2356 "SavedSearchDialog.c"
- {
- SavedSearchDialogSearchRowFlagged* _tmp7_;
-#line 93 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = saved_search_dialog_search_row_flagged_new (self);
-#line 93 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_unref0 (self->priv->my_row);
-#line 93 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow);
-#line 94 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 2367 "SavedSearchDialog.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE:
-#line 2371 "SavedSearchDialog.c"
- {
- SavedSearchDialogSearchRowModified* _tmp8_;
-#line 97 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = saved_search_dialog_search_row_modified_new (self);
-#line 97 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_unref0 (self->priv->my_row);
-#line 97 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow);
-#line 98 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 2382 "SavedSearchDialog.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_RATING:
-#line 2386 "SavedSearchDialog.c"
- {
- SavedSearchDialogSearchRowRating* _tmp9_;
-#line 101 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = saved_search_dialog_search_row_rating_new (self);
-#line 101 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_unref0 (self->priv->my_row);
-#line 101 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow);
-#line 102 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 2397 "SavedSearchDialog.c"
- }
-#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_DATE:
-#line 2401 "SavedSearchDialog.c"
- {
- SavedSearchDialogSearchRowDate* _tmp10_;
-#line 105 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = saved_search_dialog_search_row_date_new (self);
-#line 105 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_unref0 (self->priv->my_row);
-#line 105 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow);
-#line 106 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- break;
-#line 2412 "SavedSearchDialog.c"
- }
- default:
- {
-#line 109 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_assert_not_reached ();
-#line 2418 "SavedSearchDialog.c"
- }
- }
-#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = self->priv->box;
-#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = self->priv->my_row;
-#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = saved_search_dialog_search_row_get_widget (_tmp12_);
-#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = _tmp13_;
-#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp11_, _tmp14_, TRUE, TRUE, (guint) 0);
-#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_tmp14_);
-#line 2433 "SavedSearchDialog.c"
-}
-
-
-static SearchConditionSearchType
-saved_search_dialog_search_row_container_get_search_type (SavedSearchDialogSearchRowContainer* self)
-{
- SearchConditionSearchType result = 0;
- SearchConditionSearchType* _tmp0_;
- gint _tmp0__length1;
- GtkComboBoxText* _tmp1_;
- SearchConditionSearchType _tmp2_;
-#line 115 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self), 0);
-#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->search_types;
-#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0__length1 = self->priv->search_types_length1;
-#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->type_combo;
-#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = _tmp0_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))];
-#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 2459 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_on_removed (SavedSearchDialogSearchRowContainer* self)
-{
-#line 119 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self));
-#line 120 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_emit (self, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_REMOVE_SIGNAL], 0, self);
-#line 2470 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_allow_removal (SavedSearchDialogSearchRowContainer* self,
- gboolean allow)
-{
- GtkButton* _tmp0_;
-#line 123 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self));
-#line 124 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->remove_button;
-#line 124 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), allow);
-#line 2485 "SavedSearchDialog.c"
-}
-
-
-static GtkWidget*
-saved_search_dialog_search_row_container_get_widget (SavedSearchDialogSearchRowContainer* self)
-{
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 127 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self), NULL);
-#line 128 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->box;
-#line 128 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 128 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp1_;
-#line 128 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 2505 "SavedSearchDialog.c"
-}
-
-
-static SearchCondition*
-saved_search_dialog_search_row_container_get_search_condition (SavedSearchDialogSearchRowContainer* self)
-{
- SearchCondition* result = NULL;
- SavedSearchDialogSearchRow* _tmp0_;
- SearchCondition* _tmp1_;
-#line 131 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self), NULL);
-#line 132 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->my_row;
-#line 132 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = saved_search_dialog_search_row_get_search_condition (_tmp0_);
-#line 132 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp1_;
-#line 132 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 2525 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_search_row_container_is_complete (SavedSearchDialogSearchRowContainer* self)
-{
- gboolean result = FALSE;
- SavedSearchDialogSearchRow* _tmp0_;
-#line 135 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self), FALSE);
-#line 136 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->my_row;
-#line 136 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = saved_search_dialog_search_row_is_complete (_tmp0_);
-#line 136 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 2542 "SavedSearchDialog.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER) (gpointer data1, gpointer arg_1, gpointer data2);
- register GMarshalFunc_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (n_param_values == 2);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- data1 = closure->data;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- data2 = param_values->data[0].v_pointer;
-#line 2568 "SavedSearchDialog.c"
- } else {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- data1 = param_values->data[0].v_pointer;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- data2 = closure->data;
-#line 2574 "SavedSearchDialog.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- callback = (GMarshalFunc_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER) (marshal_data ? marshal_data : cc->callback);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- callback (data1, saved_search_dialog_value_get_search_row_container (param_values + 1), data2);
-#line 2580 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_value_search_row_container_init (GValue* value)
-{
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = NULL;
-#line 2589 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_value_search_row_container_free_value (GValue* value)
-{
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (value->data[0].v_pointer) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_unref (value->data[0].v_pointer);
-#line 2600 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-saved_search_dialog_value_search_row_container_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (src_value->data[0].v_pointer) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- dest_value->data[0].v_pointer = saved_search_dialog_search_row_container_ref (src_value->data[0].v_pointer);
-#line 2613 "SavedSearchDialog.c"
- } else {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2617 "SavedSearchDialog.c"
- }
-}
-
-
-static gpointer
-saved_search_dialog_value_search_row_container_peek_pointer (const GValue* value)
-{
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return value->data[0].v_pointer;
-#line 2627 "SavedSearchDialog.c"
-}
-
-
-static gchar*
-saved_search_dialog_value_search_row_container_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (collect_values[0].v_pointer) {
-#line 2639 "SavedSearchDialog.c"
- SavedSearchDialogSearchRowContainer * object;
- object = collect_values[0].v_pointer;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2646 "SavedSearchDialog.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.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 2650 "SavedSearchDialog.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = saved_search_dialog_search_row_container_ref (object);
-#line 2654 "SavedSearchDialog.c"
- } else {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = NULL;
-#line 2658 "SavedSearchDialog.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return NULL;
-#line 2662 "SavedSearchDialog.c"
-}
-
-
-static gchar*
-saved_search_dialog_value_search_row_container_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SavedSearchDialogSearchRowContainer ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!object_p) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2678 "SavedSearchDialog.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!value->data[0].v_pointer) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- *object_p = NULL;
-#line 2684 "SavedSearchDialog.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- *object_p = value->data[0].v_pointer;
-#line 2688 "SavedSearchDialog.c"
- } else {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- *object_p = saved_search_dialog_search_row_container_ref (value->data[0].v_pointer);
-#line 2692 "SavedSearchDialog.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return NULL;
-#line 2696 "SavedSearchDialog.c"
-}
-
-
-static GParamSpec*
-saved_search_dialog_param_spec_search_row_container (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- SavedSearchDialogParamSpecSearchRowContainer* spec;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (g_type_is_a (object_type, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER), NULL);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return G_PARAM_SPEC (spec);
-#line 2716 "SavedSearchDialog.c"
-}
-
-
-static gpointer
-saved_search_dialog_value_get_search_row_container (const GValue* value)
-{
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER), NULL);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return value->data[0].v_pointer;
-#line 2727 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_value_set_search_row_container (GValue* value,
- gpointer v_object)
-{
- SavedSearchDialogSearchRowContainer * old;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER));
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- old = value->data[0].v_pointer;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (v_object) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER));
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = v_object;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_ref (value->data[0].v_pointer);
-#line 2750 "SavedSearchDialog.c"
- } else {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = NULL;
-#line 2754 "SavedSearchDialog.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (old) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_unref (old);
-#line 2760 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-saved_search_dialog_value_take_search_row_container (GValue* value,
- gpointer v_object)
-{
- SavedSearchDialogSearchRowContainer * old;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER));
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- old = value->data[0].v_pointer;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (v_object) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER));
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = v_object;
-#line 2782 "SavedSearchDialog.c"
- } else {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = NULL;
-#line 2786 "SavedSearchDialog.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (old) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_unref (old);
-#line 2792 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-saved_search_dialog_search_row_container_class_init (SavedSearchDialogSearchRowContainerClass * klass)
-{
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_parent_class = g_type_class_peek_parent (klass);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowContainerClass *) klass)->finalize = saved_search_dialog_search_row_container_finalize;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowContainerPrivate));
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_REMOVE_SIGNAL] = g_signal_new ("remove", SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER, G_TYPE_NONE, 1, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL] = g_signal_new ("changed", SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER, G_TYPE_NONE, 1, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER);
-#line 2810 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_instance_init (SavedSearchDialogSearchRowContainer * self)
-{
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_GET_PRIVATE (self);
-#line 22 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->my_row = NULL;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->ref_count = 1;
-#line 2823 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_finalize (SavedSearchDialogSearchRowContainer * obj)
-{
- SavedSearchDialogSearchRowContainer * self;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainer);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_destroy (self);
-#line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->type_combo);
-#line 17 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 18 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->remove_button);
-#line 19 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->search_types = (g_free (self->priv->search_types), NULL);
-#line 20 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->search_types_index);
-#line 22 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_unref0 (self->priv->my_row);
-#line 2847 "SavedSearchDialog.c"
-}
-
-
-static GType
-saved_search_dialog_search_row_container_get_type (void)
-{
- static volatile gsize saved_search_dialog_search_row_container_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_search_row_container_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { saved_search_dialog_value_search_row_container_init, saved_search_dialog_value_search_row_container_free_value, saved_search_dialog_value_search_row_container_copy_value, saved_search_dialog_value_search_row_container_peek_pointer, "p", saved_search_dialog_value_search_row_container_collect_value, "p", saved_search_dialog_value_search_row_container_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowContainerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_container_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowContainer), 0, (GInstanceInitFunc) saved_search_dialog_search_row_container_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType saved_search_dialog_search_row_container_type_id;
- saved_search_dialog_search_row_container_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SavedSearchDialogSearchRowContainer", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&saved_search_dialog_search_row_container_type_id__volatile, saved_search_dialog_search_row_container_type_id);
- }
- return saved_search_dialog_search_row_container_type_id__volatile;
-}
-
-
-static gpointer
-saved_search_dialog_search_row_container_ref (gpointer instance)
-{
- SavedSearchDialogSearchRowContainer * self;
- self = instance;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return instance;
-#line 2876 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_container_unref (gpointer instance)
-{
- SavedSearchDialogSearchRowContainer * self;
- self = instance;
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_GET_CLASS (self)->finalize (self);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2891 "SavedSearchDialog.c"
- }
-}
-
-
-static GtkWidget*
-saved_search_dialog_search_row_real_get_widget (SavedSearchDialogSearchRow* self)
-{
-#line 143 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_critical ("Type `%s' does not implement abstract method `saved_search_dialog_search_row_get_widget'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 143 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return NULL;
-#line 2903 "SavedSearchDialog.c"
-}
-
-
-GtkWidget*
-saved_search_dialog_search_row_get_widget (SavedSearchDialogSearchRow* self)
-{
-#line 143 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW (self), NULL);
-#line 143 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->get_widget (self);
-#line 2914 "SavedSearchDialog.c"
-}
-
-
-static SearchCondition*
-saved_search_dialog_search_row_real_get_search_condition (SavedSearchDialogSearchRow* self)
-{
-#line 146 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_critical ("Type `%s' does not implement abstract method `saved_search_dialog_search_row_get_search_condition'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 146 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return NULL;
-#line 2925 "SavedSearchDialog.c"
-}
-
-
-SearchCondition*
-saved_search_dialog_search_row_get_search_condition (SavedSearchDialogSearchRow* self)
-{
-#line 146 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW (self), NULL);
-#line 146 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->get_search_condition (self);
-#line 2936 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_real_populate (SavedSearchDialogSearchRow* self,
- SearchCondition* sc)
-{
-#line 149 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_critical ("Type `%s' does not implement abstract method `saved_search_dialog_search_row_populate'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 149 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return;
-#line 2948 "SavedSearchDialog.c"
-}
-
-
-void
-saved_search_dialog_search_row_populate (SavedSearchDialogSearchRow* self,
- SearchCondition* sc)
-{
-#line 149 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW (self));
-#line 149 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->populate (self, sc);
-#line 2960 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_search_row_real_is_complete (SavedSearchDialogSearchRow* self)
-{
- gboolean _tmp0_ = FALSE;
-#line 152 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_critical ("Type `%s' does not implement abstract method `saved_search_dialog_search_row_is_complete'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 152 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return _tmp0_;
-#line 2972 "SavedSearchDialog.c"
-}
-
-
-gboolean
-saved_search_dialog_search_row_is_complete (SavedSearchDialogSearchRow* self)
-{
-#line 152 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW (self), FALSE);
-#line 152 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->is_complete (self);
-#line 2983 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRow*
-saved_search_dialog_search_row_construct (GType object_type)
-{
- SavedSearchDialogSearchRow* self = NULL;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRow*) g_type_create_instance (object_type);
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 2995 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_value_search_row_init (GValue* value)
-{
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = NULL;
-#line 3004 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_value_search_row_free_value (GValue* value)
-{
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (value->data[0].v_pointer) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_unref (value->data[0].v_pointer);
-#line 3015 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-saved_search_dialog_value_search_row_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (src_value->data[0].v_pointer) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- dest_value->data[0].v_pointer = saved_search_dialog_search_row_ref (src_value->data[0].v_pointer);
-#line 3028 "SavedSearchDialog.c"
- } else {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 3032 "SavedSearchDialog.c"
- }
-}
-
-
-static gpointer
-saved_search_dialog_value_search_row_peek_pointer (const GValue* value)
-{
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return value->data[0].v_pointer;
-#line 3042 "SavedSearchDialog.c"
-}
-
-
-static gchar*
-saved_search_dialog_value_search_row_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (collect_values[0].v_pointer) {
-#line 3054 "SavedSearchDialog.c"
- SavedSearchDialogSearchRow * object;
- object = collect_values[0].v_pointer;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3061 "SavedSearchDialog.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.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 3065 "SavedSearchDialog.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = saved_search_dialog_search_row_ref (object);
-#line 3069 "SavedSearchDialog.c"
- } else {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = NULL;
-#line 3073 "SavedSearchDialog.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return NULL;
-#line 3077 "SavedSearchDialog.c"
-}
-
-
-static gchar*
-saved_search_dialog_value_search_row_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SavedSearchDialogSearchRow ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!object_p) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3093 "SavedSearchDialog.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (!value->data[0].v_pointer) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- *object_p = NULL;
-#line 3099 "SavedSearchDialog.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- *object_p = value->data[0].v_pointer;
-#line 3103 "SavedSearchDialog.c"
- } else {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- *object_p = saved_search_dialog_search_row_ref (value->data[0].v_pointer);
-#line 3107 "SavedSearchDialog.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return NULL;
-#line 3111 "SavedSearchDialog.c"
-}
-
-
-static GParamSpec*
-saved_search_dialog_param_spec_search_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- SavedSearchDialogParamSpecSearchRow* spec;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (g_type_is_a (object_type, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW), NULL);
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return G_PARAM_SPEC (spec);
-#line 3131 "SavedSearchDialog.c"
-}
-
-
-static gpointer
-saved_search_dialog_value_get_search_row (const GValue* value)
-{
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW), NULL);
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return value->data[0].v_pointer;
-#line 3142 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_value_set_search_row (GValue* value,
- gpointer v_object)
-{
- SavedSearchDialogSearchRow * old;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW));
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- old = value->data[0].v_pointer;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (v_object) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW));
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = v_object;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_ref (value->data[0].v_pointer);
-#line 3165 "SavedSearchDialog.c"
- } else {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = NULL;
-#line 3169 "SavedSearchDialog.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (old) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_unref (old);
-#line 3175 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-saved_search_dialog_value_take_search_row (GValue* value,
- gpointer v_object)
-{
- SavedSearchDialogSearchRow * old;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW));
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- old = value->data[0].v_pointer;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (v_object) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW));
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = v_object;
-#line 3197 "SavedSearchDialog.c"
- } else {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- value->data[0].v_pointer = NULL;
-#line 3201 "SavedSearchDialog.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (old) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_unref (old);
-#line 3207 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-saved_search_dialog_search_row_class_init (SavedSearchDialogSearchRowClass * klass)
-{
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_parent_class = g_type_class_peek_parent (klass);
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_finalize;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_real_get_widget;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_real_get_search_condition;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_real_populate;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_real_is_complete;
-#line 3227 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_instance_init (SavedSearchDialogSearchRow * self)
-{
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->ref_count = 1;
-#line 3236 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_finalize (SavedSearchDialogSearchRow * obj)
-{
- SavedSearchDialogSearchRow * self;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow);
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_destroy (self);
-#line 3248 "SavedSearchDialog.c"
-}
-
-
-static GType
-saved_search_dialog_search_row_get_type (void)
-{
- static volatile gsize saved_search_dialog_search_row_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_search_row_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { saved_search_dialog_value_search_row_init, saved_search_dialog_value_search_row_free_value, saved_search_dialog_value_search_row_copy_value, saved_search_dialog_value_search_row_peek_pointer, "p", saved_search_dialog_value_search_row_collect_value, "p", saved_search_dialog_value_search_row_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRow), 0, (GInstanceInitFunc) saved_search_dialog_search_row_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType saved_search_dialog_search_row_type_id;
- saved_search_dialog_search_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SavedSearchDialogSearchRow", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&saved_search_dialog_search_row_type_id__volatile, saved_search_dialog_search_row_type_id);
- }
- return saved_search_dialog_search_row_type_id__volatile;
-}
-
-
-static gpointer
-saved_search_dialog_search_row_ref (gpointer instance)
-{
- SavedSearchDialogSearchRow * self;
- self = instance;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return instance;
-#line 3277 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_unref (gpointer instance)
-{
- SavedSearchDialogSearchRow * self;
- self = instance;
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->finalize (self);
-#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3292 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-_saved_search_dialog_search_row_text_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 189 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_text_on_changed ((SavedSearchDialogSearchRowText*) self);
-#line 3303 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_search_row_text_on_changed_gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
-{
-#line 190 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_text_on_changed ((SavedSearchDialogSearchRowText*) self);
-#line 3313 "SavedSearchDialog.c"
-}
-
-
-static gpointer
-_saved_search_dialog_search_row_container_ref0 (gpointer self)
-{
-#line 163 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self ? saved_search_dialog_search_row_container_ref (self) : NULL;
-#line 3322 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowText*
-saved_search_dialog_search_row_text_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent)
-{
- SavedSearchDialogSearchRowText* self = NULL;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkComboBoxText* _tmp2_;
- GtkComboBoxText* _tmp3_;
- GtkComboBoxText* _tmp4_;
- GtkComboBoxText* _tmp5_;
- GtkComboBoxText* _tmp6_;
- GtkComboBoxText* _tmp7_;
- GtkComboBoxText* _tmp8_;
- GtkComboBoxText* _tmp9_;
- GtkComboBoxText* _tmp10_;
- GtkEntry* _tmp11_;
- GtkEntry* _tmp12_;
- GtkEntry* _tmp13_;
- GtkEntry* _tmp14_;
- GtkBox* _tmp15_;
- GtkBox* _tmp16_;
- GtkComboBoxText* _tmp17_;
- GtkBox* _tmp18_;
- GtkEntry* _tmp19_;
- GtkBox* _tmp20_;
-#line 162 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL);
-#line 162 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRowText*) saved_search_dialog_search_row_construct (object_type);
-#line 163 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent);
-#line 163 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 163 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->parent = _tmp0_;
-#line 166 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 166 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp1_);
-#line 166 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->text_context);
-#line 166 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->text_context = _tmp1_;
-#line 167 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->text_context;
-#line 167 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp2_, _ ("contains"));
-#line 168 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->text_context;
-#line 168 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp3_, _ ("is exactly"));
-#line 169 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->text_context;
-#line 169 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp4_, _ ("starts with"));
-#line 170 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = self->priv->text_context;
-#line 170 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp5_, _ ("ends with"));
-#line 171 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->text_context;
-#line 171 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp6_, _ ("does not contain"));
-#line 172 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->text_context;
-#line 172 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp7_, _ ("is not set"));
-#line 173 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = self->priv->text_context;
-#line 173 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp8_, _ ("is set"));
-#line 174 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = self->priv->text_context;
-#line 174 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 175 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = self->priv->text_context;
-#line 175 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_text_on_changed_gtk_combo_box_changed, self);
-#line 177 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = (GtkEntry*) gtk_entry_new ();
-#line 177 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp11_);
-#line 177 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->entry);
-#line 177 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->entry = _tmp11_;
-#line 178 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = self->priv->entry;
-#line 178 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_entry_set_width_chars (_tmp12_, 25);
-#line 179 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = self->priv->entry;
-#line 179 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_entry_set_activates_default (_tmp13_, TRUE);
-#line 180 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = self->priv->entry;
-#line 180 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _saved_search_dialog_search_row_text_on_changed_gtk_editable_changed, self);
-#line 182 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
-#line 182 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp15_);
-#line 182 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 182 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->box = _tmp15_;
-#line 183 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = self->priv->box;
-#line 183 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = self->priv->text_context;
-#line 183 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 184 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = self->priv->box;
-#line 184 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp19_ = self->priv->entry;
-#line 184 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 185 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp20_ = self->priv->box;
-#line 185 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget));
-#line 162 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 3452 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowText*
-saved_search_dialog_search_row_text_new (SavedSearchDialogSearchRowContainer* parent)
-{
-#line 162 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_search_row_text_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, parent);
-#line 3461 "SavedSearchDialog.c"
-}
-
-
-static GtkWidget*
-saved_search_dialog_search_row_text_real_get_widget (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowText * self;
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 193 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText);
-#line 194 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->box;
-#line 194 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 194 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp1_;
-#line 194 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 3482 "SavedSearchDialog.c"
-}
-
-
-static SearchCondition*
-saved_search_dialog_search_row_text_real_get_search_condition (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowText * self;
- SearchCondition* result = NULL;
- SearchConditionSearchType type = 0;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- gchar* text = NULL;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- SearchConditionTextContext context = 0;
- SearchConditionText* c = NULL;
- SearchConditionText* _tmp4_;
-#line 197 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText);
-#line 198 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 198 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- type = saved_search_dialog_search_row_container_get_search_type (_tmp0_);
-#line 199 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->entry;
-#line 199 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = gtk_entry_get_text (_tmp1_);
-#line 199 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 199 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- text = _tmp3_;
-#line 200 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- context = saved_search_dialog_search_row_text_get_text_context (self);
-#line 201 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = search_condition_text_new (type, text, context);
-#line 201 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = _tmp4_;
-#line 202 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition);
-#line 202 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (text);
-#line 202 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 3526 "SavedSearchDialog.c"
-}
-
-
-static gpointer
-_search_condition_ref0 (gpointer self)
-{
-#line 206 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self ? search_condition_ref (self) : NULL;
-#line 3535 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_text_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc)
-{
- SavedSearchDialogSearchRowText * self;
- SearchConditionText* text = NULL;
- SearchConditionText* _tmp0_;
- GtkComboBoxText* _tmp1_;
- SearchConditionTextContext _tmp2_;
- SearchConditionTextContext _tmp3_;
- GtkEntry* _tmp4_;
- const gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 205 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText);
-#line 205 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SEARCH_CONDITION (sc));
-#line 206 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_TEXT) ? ((SearchConditionText*) sc) : NULL);
-#line 206 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- text = _tmp0_;
-#line 207 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _vala_assert (text != NULL, "text != null");
-#line 208 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->text_context;
-#line 208 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = search_condition_text_get_context (text);
-#line 208 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 208 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_);
-#line 209 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->entry;
-#line 209 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = search_condition_text_get_text (text);
-#line 209 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = _tmp5_;
-#line 209 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_entry_set_text (_tmp4_, _tmp6_);
-#line 210 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_text_on_changed (self);
-#line 205 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _search_condition_unref0 (text);
-#line 3582 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_search_row_text_real_is_complete (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowText * self;
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GtkEntry* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gboolean _tmp7_;
-#line 213 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText);
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->entry;
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = gtk_entry_get_text (_tmp2_);
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = _tmp3_;
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = string_chomp (_tmp4_);
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = _tmp5_;
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = g_strcmp0 (_tmp6_, "") != 0;
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp6_);
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp7_) {
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = TRUE;
-#line 3619 "SavedSearchDialog.c"
- } else {
-#line 215 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = saved_search_dialog_search_row_text_get_text_context (self) == SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET;
-#line 3623 "SavedSearchDialog.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp1_) {
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = TRUE;
-#line 3629 "SavedSearchDialog.c"
- } else {
-#line 216 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = saved_search_dialog_search_row_text_get_text_context (self) == SEARCH_CONDITION_TEXT_CONTEXT_IS_SET;
-#line 3633 "SavedSearchDialog.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp0_;
-#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 3639 "SavedSearchDialog.c"
-}
-
-
-static SearchConditionTextContext
-saved_search_dialog_search_row_text_get_text_context (SavedSearchDialogSearchRowText* self)
-{
- SearchConditionTextContext result = 0;
- GtkComboBoxText* _tmp0_;
-#line 219 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_TEXT (self), 0);
-#line 220 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->text_context;
-#line 220 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = (SearchConditionTextContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
-#line 220 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 3656 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_text_on_changed (SavedSearchDialogSearchRowText* self)
-{
- gboolean _tmp0_ = FALSE;
- SavedSearchDialogSearchRowContainer* _tmp3_;
- SavedSearchDialogSearchRowContainer* _tmp4_;
-#line 223 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_TEXT (self));
-#line 224 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (saved_search_dialog_search_row_text_get_text_context (self) == SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET) {
-#line 224 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = TRUE;
-#line 3672 "SavedSearchDialog.c"
- } else {
-#line 225 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = saved_search_dialog_search_row_text_get_text_context (self) == SEARCH_CONDITION_TEXT_CONTEXT_IS_SET;
-#line 3676 "SavedSearchDialog.c"
- }
-#line 224 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp0_) {
-#line 3680 "SavedSearchDialog.c"
- GtkEntry* _tmp1_;
-#line 226 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->entry;
-#line 226 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
-#line 3686 "SavedSearchDialog.c"
- } else {
- GtkEntry* _tmp2_;
-#line 228 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->entry;
-#line 228 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 3693 "SavedSearchDialog.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->parent;
-#line 231 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->parent;
-#line 231 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_emit (_tmp3_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp4_);
-#line 3701 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_text_class_init (SavedSearchDialogSearchRowTextClass * klass)
-{
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_text_parent_class = g_type_class_peek_parent (klass);
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_text_finalize;
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowTextPrivate));
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_text_real_get_widget;
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_text_real_get_search_condition;
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_text_real_populate;
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_text_real_is_complete;
-#line 3722 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_text_instance_init (SavedSearchDialogSearchRowText * self)
-{
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT_GET_PRIVATE (self);
-#line 3731 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_text_finalize (SavedSearchDialogSearchRow * obj)
-{
- SavedSearchDialogSearchRowText * self;
- GtkComboBoxText* _tmp0_;
- guint _tmp1_;
- GtkEntry* _tmp2_;
- guint _tmp3_;
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText);
-#line 189 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->text_context;
-#line 189 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE);
-#line 189 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_text_on_changed_gtk_combo_box_changed, self);
-#line 190 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->entry;
-#line 190 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_editable_get_type (), &_tmp3_, NULL, FALSE);
-#line 190 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_editable_get_type (), GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _saved_search_dialog_search_row_text_on_changed_gtk_editable_changed, self);
-#line 156 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 157 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->text_context);
-#line 158 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->entry);
-#line 160 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_text_parent_class)->finalize (obj);
-#line 3767 "SavedSearchDialog.c"
-}
-
-
-static GType
-saved_search_dialog_search_row_text_get_type (void)
-{
- static volatile gsize saved_search_dialog_search_row_text_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_search_row_text_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowText), 0, (GInstanceInitFunc) saved_search_dialog_search_row_text_instance_init, NULL };
- GType saved_search_dialog_search_row_text_type_id;
- saved_search_dialog_search_row_text_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowText", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_dialog_search_row_text_type_id__volatile, saved_search_dialog_search_row_text_type_id);
- }
- return saved_search_dialog_search_row_text_type_id__volatile;
-}
-
-
-static void
-_saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 267 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_media_type_on_changed ((SavedSearchDialogSearchRowMediaType*) self);
-#line 3791 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowMediaType*
-saved_search_dialog_search_row_media_type_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent)
-{
- SavedSearchDialogSearchRowMediaType* self = NULL;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkComboBoxText* _tmp2_;
- GtkComboBoxText* _tmp3_;
- GtkComboBoxText* _tmp4_;
- GtkComboBoxText* _tmp5_;
- GtkComboBoxText* _tmp6_;
- GtkComboBoxText* _tmp7_;
- GtkComboBoxText* _tmp8_;
- GtkComboBoxText* _tmp9_;
- GtkComboBoxText* _tmp10_;
- GtkComboBoxText* _tmp11_;
- GtkBox* _tmp12_;
- GtkBox* _tmp13_;
- GtkComboBoxText* _tmp14_;
- GtkBox* _tmp15_;
- GtkComboBoxText* _tmp16_;
- GtkBox* _tmp17_;
-#line 242 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL);
-#line 242 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRowMediaType*) saved_search_dialog_search_row_construct (object_type);
-#line 243 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent);
-#line 243 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 243 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->parent = _tmp0_;
-#line 246 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 246 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp1_);
-#line 246 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->media_context);
-#line 246 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->media_context = _tmp1_;
-#line 247 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->media_context;
-#line 247 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp2_, _ ("is"));
-#line 248 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->media_context;
-#line 248 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp3_, _ ("is not"));
-#line 249 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->media_context;
-#line 249 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 250 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = self->priv->media_context;
-#line 250 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed, self);
-#line 253 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 253 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp6_);
-#line 253 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->media_type);
-#line 253 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->media_type = _tmp6_;
-#line 254 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->media_type;
-#line 254 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp7_, _ ("any photo"));
-#line 255 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = self->priv->media_type;
-#line 255 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp8_, _ ("a raw photo"));
-#line 256 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = self->priv->media_type;
-#line 256 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp9_, _ ("a video"));
-#line 257 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = self->priv->media_type;
-#line 257 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 258 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = self->priv->media_type;
-#line 258 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed, self);
-#line 260 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
-#line 260 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp12_);
-#line 260 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 260 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->box = _tmp12_;
-#line 261 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = self->priv->box;
-#line 261 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = self->priv->media_context;
-#line 261 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 262 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = self->priv->box;
-#line 262 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = self->priv->media_type;
-#line 262 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 263 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = self->priv->box;
-#line 263 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget));
-#line 242 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 3906 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowMediaType*
-saved_search_dialog_search_row_media_type_new (SavedSearchDialogSearchRowContainer* parent)
-{
-#line 242 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_search_row_media_type_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, parent);
-#line 3915 "SavedSearchDialog.c"
-}
-
-
-static GtkWidget*
-saved_search_dialog_search_row_media_type_real_get_widget (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowMediaType * self;
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 271 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType);
-#line 272 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->box;
-#line 272 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 272 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp1_;
-#line 272 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 3936 "SavedSearchDialog.c"
-}
-
-
-static SearchCondition*
-saved_search_dialog_search_row_media_type_real_get_search_condition (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowMediaType * self;
- SearchCondition* result = NULL;
- SearchConditionSearchType search_type = 0;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SearchConditionMediaTypeContext context = 0;
- GtkComboBoxText* _tmp1_;
- SearchConditionMediaTypeMediaType type = 0;
- GtkComboBoxText* _tmp2_;
- SearchConditionMediaType* c = NULL;
- SearchConditionMediaType* _tmp3_;
-#line 275 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType);
-#line 276 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 276 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_);
-#line 277 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->media_context;
-#line 277 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- context = (SearchConditionMediaTypeContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
-#line 278 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->media_type;
-#line 278 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- type = (SearchConditionMediaTypeMediaType) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox));
-#line 279 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = search_condition_media_type_new (search_type, context, type);
-#line 279 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = _tmp3_;
-#line 280 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition);
-#line 280 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 3975 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_media_type_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc)
-{
- SavedSearchDialogSearchRowMediaType * self;
- SearchConditionMediaType* media = NULL;
- SearchConditionMediaType* _tmp0_;
- GtkComboBoxText* _tmp1_;
- SearchConditionMediaTypeContext _tmp2_;
- SearchConditionMediaTypeContext _tmp3_;
- GtkComboBoxText* _tmp4_;
- SearchConditionMediaTypeMediaType _tmp5_;
- SearchConditionMediaTypeMediaType _tmp6_;
-#line 283 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType);
-#line 283 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SEARCH_CONDITION (sc));
-#line 284 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_MEDIA_TYPE) ? ((SearchConditionMediaType*) sc) : NULL);
-#line 284 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- media = _tmp0_;
-#line 285 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _vala_assert (media != NULL, "media != null");
-#line 286 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->media_context;
-#line 286 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = search_condition_media_type_get_context (media);
-#line 286 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 286 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_);
-#line 287 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->media_type;
-#line 287 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = search_condition_media_type_get_media_type (media);
-#line 287 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = _tmp5_;
-#line 287 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp6_);
-#line 283 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _search_condition_unref0 (media);
-#line 4020 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_search_row_media_type_real_is_complete (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowMediaType * self;
- gboolean result = FALSE;
-#line 290 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType);
-#line 291 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = TRUE;
-#line 291 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 4035 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_media_type_on_changed (SavedSearchDialogSearchRowMediaType* self)
-{
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SavedSearchDialogSearchRowContainer* _tmp1_;
-#line 294 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MEDIA_TYPE (self));
-#line 295 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 295 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->parent;
-#line 295 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_);
-#line 4052 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_media_type_class_init (SavedSearchDialogSearchRowMediaTypeClass * klass)
-{
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_media_type_parent_class = g_type_class_peek_parent (klass);
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_media_type_finalize;
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowMediaTypePrivate));
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_media_type_real_get_widget;
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_media_type_real_get_search_condition;
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_media_type_real_populate;
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_media_type_real_is_complete;
-#line 4073 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_media_type_instance_init (SavedSearchDialogSearchRowMediaType * self)
-{
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE_GET_PRIVATE (self);
-#line 4082 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_media_type_finalize (SavedSearchDialogSearchRow * obj)
-{
- SavedSearchDialogSearchRowMediaType * self;
- GtkComboBoxText* _tmp0_;
- guint _tmp1_;
- GtkComboBoxText* _tmp2_;
- guint _tmp3_;
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType);
-#line 267 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->media_context;
-#line 267 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE);
-#line 267 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed, self);
-#line 268 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->media_type;
-#line 268 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp3_, NULL, FALSE);
-#line 268 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed, self);
-#line 236 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 237 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->media_context);
-#line 238 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->media_type);
-#line 240 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_media_type_parent_class)->finalize (obj);
-#line 4118 "SavedSearchDialog.c"
-}
-
-
-static GType
-saved_search_dialog_search_row_media_type_get_type (void)
-{
- static volatile gsize saved_search_dialog_search_row_media_type_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_search_row_media_type_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowMediaTypeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_media_type_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowMediaType), 0, (GInstanceInitFunc) saved_search_dialog_search_row_media_type_instance_init, NULL };
- GType saved_search_dialog_search_row_media_type_type_id;
- saved_search_dialog_search_row_media_type_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowMediaType", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_dialog_search_row_media_type_type_id__volatile, saved_search_dialog_search_row_media_type_type_id);
- }
- return saved_search_dialog_search_row_media_type_type_id__volatile;
-}
-
-
-static void
-_saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 329 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_modified_on_changed ((SavedSearchDialogSearchRowModified*) self);
-#line 4142 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowModified*
-saved_search_dialog_search_row_modified_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent)
-{
- SavedSearchDialogSearchRowModified* self = NULL;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkComboBoxText* _tmp2_;
- GtkComboBoxText* _tmp3_;
- GtkComboBoxText* _tmp4_;
- GtkComboBoxText* _tmp5_;
- GtkComboBoxText* _tmp6_;
- GtkComboBoxText* _tmp7_;
- GtkComboBoxText* _tmp8_;
- GtkComboBoxText* _tmp9_;
- GtkComboBoxText* _tmp10_;
- GtkComboBoxText* _tmp11_;
- GtkBox* _tmp12_;
- GtkBox* _tmp13_;
- GtkComboBoxText* _tmp14_;
- GtkBox* _tmp15_;
- GtkComboBoxText* _tmp16_;
- GtkBox* _tmp17_;
-#line 306 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL);
-#line 306 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRowModified*) saved_search_dialog_search_row_construct (object_type);
-#line 307 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent);
-#line 307 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 307 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->parent = _tmp0_;
-#line 309 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 309 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp1_);
-#line 309 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->modified_context);
-#line 309 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->modified_context = _tmp1_;
-#line 310 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->modified_context;
-#line 310 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp2_, _ ("has"));
-#line 311 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->modified_context;
-#line 311 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp3_, _ ("has no"));
-#line 312 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->modified_context;
-#line 312 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 313 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = self->priv->modified_context;
-#line 313 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed, self);
-#line 315 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 315 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp6_);
-#line 315 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->modified_state);
-#line 315 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->modified_state = _tmp6_;
-#line 316 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->modified_state;
-#line 316 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp7_, _ ("modifications"));
-#line 317 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = self->priv->modified_state;
-#line 317 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp8_, _ ("internal modifications"));
-#line 318 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = self->priv->modified_state;
-#line 318 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp9_, _ ("external modifications"));
-#line 319 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = self->priv->modified_state;
-#line 319 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 320 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = self->priv->modified_state;
-#line 320 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed, self);
-#line 322 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
-#line 322 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp12_);
-#line 322 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 322 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->box = _tmp12_;
-#line 323 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = self->priv->box;
-#line 323 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = self->priv->modified_context;
-#line 323 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 324 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = self->priv->box;
-#line 324 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = self->priv->modified_state;
-#line 324 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 325 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = self->priv->box;
-#line 325 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget));
-#line 306 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 4257 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowModified*
-saved_search_dialog_search_row_modified_new (SavedSearchDialogSearchRowContainer* parent)
-{
-#line 306 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_search_row_modified_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, parent);
-#line 4266 "SavedSearchDialog.c"
-}
-
-
-static GtkWidget*
-saved_search_dialog_search_row_modified_real_get_widget (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowModified * self;
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 333 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified);
-#line 334 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->box;
-#line 334 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 334 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp1_;
-#line 334 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 4287 "SavedSearchDialog.c"
-}
-
-
-static SearchCondition*
-saved_search_dialog_search_row_modified_real_get_search_condition (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowModified * self;
- SearchCondition* result = NULL;
- SearchConditionSearchType search_type = 0;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SearchConditionModifiedContext context = 0;
- GtkComboBoxText* _tmp1_;
- SearchConditionModifiedState state = 0;
- GtkComboBoxText* _tmp2_;
- SearchConditionModified* c = NULL;
- SearchConditionModified* _tmp3_;
-#line 337 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified);
-#line 338 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 338 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_);
-#line 339 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->modified_context;
-#line 339 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- context = (SearchConditionModifiedContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
-#line 340 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->modified_state;
-#line 340 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- state = (SearchConditionModifiedState) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox));
-#line 341 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = search_condition_modified_new (search_type, context, state);
-#line 341 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = _tmp3_;
-#line 342 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition);
-#line 342 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 4326 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_modified_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc)
-{
- SavedSearchDialogSearchRowModified * self;
- SearchConditionModified* scm = NULL;
- SearchConditionModified* _tmp0_;
- GtkComboBoxText* _tmp1_;
- SearchConditionModifiedState _tmp2_;
- SearchConditionModifiedState _tmp3_;
- GtkComboBoxText* _tmp4_;
- SearchConditionModifiedContext _tmp5_;
- SearchConditionModifiedContext _tmp6_;
-#line 345 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified);
-#line 345 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SEARCH_CONDITION (sc));
-#line 346 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_MODIFIED) ? ((SearchConditionModified*) sc) : NULL);
-#line 346 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- scm = _tmp0_;
-#line 347 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _vala_assert (scm != NULL, "scm != null");
-#line 348 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->modified_state;
-#line 348 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = search_condition_modified_get_state (scm);
-#line 348 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 348 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_);
-#line 349 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->modified_context;
-#line 349 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = search_condition_modified_get_context (scm);
-#line 349 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = _tmp5_;
-#line 349 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp6_);
-#line 345 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _search_condition_unref0 (scm);
-#line 4371 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_search_row_modified_real_is_complete (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowModified * self;
- gboolean result = FALSE;
-#line 352 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified);
-#line 353 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = TRUE;
-#line 353 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 4386 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_modified_on_changed (SavedSearchDialogSearchRowModified* self)
-{
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SavedSearchDialogSearchRowContainer* _tmp1_;
-#line 356 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MODIFIED (self));
-#line 357 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 357 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->parent;
-#line 357 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_);
-#line 4403 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_modified_class_init (SavedSearchDialogSearchRowModifiedClass * klass)
-{
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_modified_parent_class = g_type_class_peek_parent (klass);
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_modified_finalize;
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowModifiedPrivate));
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_modified_real_get_widget;
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_modified_real_get_search_condition;
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_modified_real_populate;
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_modified_real_is_complete;
-#line 4424 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_modified_instance_init (SavedSearchDialogSearchRowModified * self)
-{
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED_GET_PRIVATE (self);
-#line 4433 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_modified_finalize (SavedSearchDialogSearchRow * obj)
-{
- SavedSearchDialogSearchRowModified * self;
- GtkComboBoxText* _tmp0_;
- guint _tmp1_;
- GtkComboBoxText* _tmp2_;
- guint _tmp3_;
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified);
-#line 329 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->modified_state;
-#line 329 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE);
-#line 329 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed, self);
-#line 330 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->modified_context;
-#line 330 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp3_, NULL, FALSE);
-#line 330 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed, self);
-#line 300 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 301 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->modified_context);
-#line 302 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->modified_state);
-#line 304 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_modified_parent_class)->finalize (obj);
-#line 4469 "SavedSearchDialog.c"
-}
-
-
-static GType
-saved_search_dialog_search_row_modified_get_type (void)
-{
- static volatile gsize saved_search_dialog_search_row_modified_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_search_row_modified_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowModifiedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_modified_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowModified), 0, (GInstanceInitFunc) saved_search_dialog_search_row_modified_instance_init, NULL };
- GType saved_search_dialog_search_row_modified_type_id;
- saved_search_dialog_search_row_modified_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowModified", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_dialog_search_row_modified_type_id__volatile, saved_search_dialog_search_row_modified_type_id);
- }
- return saved_search_dialog_search_row_modified_type_id__volatile;
-}
-
-
-static void
-_saved_search_dialog_search_row_flagged_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 384 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_flagged_on_changed ((SavedSearchDialogSearchRowFlagged*) self);
-#line 4493 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowFlagged*
-saved_search_dialog_search_row_flagged_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent)
-{
- SavedSearchDialogSearchRowFlagged* self = NULL;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkComboBoxText* _tmp2_;
- GtkComboBoxText* _tmp3_;
- GtkComboBoxText* _tmp4_;
- GtkComboBoxText* _tmp5_;
- GtkBox* _tmp6_;
- GtkBox* _tmp7_;
- GtkLabel* _tmp8_;
- GtkLabel* _tmp9_;
- GtkBox* _tmp10_;
- GtkComboBoxText* _tmp11_;
- GtkBox* _tmp12_;
-#line 367 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL);
-#line 367 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRowFlagged*) saved_search_dialog_search_row_construct (object_type);
-#line 368 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent);
-#line 368 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 368 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->parent = _tmp0_;
-#line 371 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 371 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp1_);
-#line 371 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->flagged_state);
-#line 371 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->flagged_state = _tmp1_;
-#line 372 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->flagged_state;
-#line 372 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp2_, _ ("flagged"));
-#line 373 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->flagged_state;
-#line 373 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp3_, _ ("not flagged"));
-#line 374 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->flagged_state;
-#line 374 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 375 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = self->priv->flagged_state;
-#line 375 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_flagged_on_changed_gtk_combo_box_changed, self);
-#line 377 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
-#line 377 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp6_);
-#line 377 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 377 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->box = _tmp6_;
-#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->box;
-#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = (GtkLabel*) gtk_label_new (_ ("is"));
-#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp8_);
-#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = _tmp8_;
-#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_tmp9_);
-#line 379 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = self->priv->box;
-#line 379 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = self->priv->flagged_state;
-#line 379 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 380 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = self->priv->box;
-#line 380 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
-#line 367 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 4581 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowFlagged*
-saved_search_dialog_search_row_flagged_new (SavedSearchDialogSearchRowContainer* parent)
-{
-#line 367 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_search_row_flagged_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, parent);
-#line 4590 "SavedSearchDialog.c"
-}
-
-
-static GtkWidget*
-saved_search_dialog_search_row_flagged_real_get_widget (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowFlagged * self;
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 387 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged);
-#line 388 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->box;
-#line 388 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 388 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp1_;
-#line 388 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 4611 "SavedSearchDialog.c"
-}
-
-
-static SearchCondition*
-saved_search_dialog_search_row_flagged_real_get_search_condition (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowFlagged * self;
- SearchCondition* result = NULL;
- SearchConditionSearchType search_type = 0;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SearchConditionFlaggedState state = 0;
- GtkComboBoxText* _tmp1_;
- SearchConditionFlagged* c = NULL;
- SearchConditionFlagged* _tmp2_;
-#line 391 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged);
-#line 392 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 392 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_);
-#line 393 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->flagged_state;
-#line 393 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- state = (SearchConditionFlaggedState) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
-#line 394 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = search_condition_flagged_new (search_type, state);
-#line 394 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = _tmp2_;
-#line 395 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition);
-#line 395 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 4644 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_flagged_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc)
-{
- SavedSearchDialogSearchRowFlagged * self;
- SearchConditionFlagged* f = NULL;
- SearchConditionFlagged* _tmp0_;
- GtkComboBoxText* _tmp1_;
- SearchConditionFlaggedState _tmp2_;
- SearchConditionFlaggedState _tmp3_;
-#line 398 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged);
-#line 398 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SEARCH_CONDITION (sc));
-#line 399 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_FLAGGED) ? ((SearchConditionFlagged*) sc) : NULL);
-#line 399 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- f = _tmp0_;
-#line 400 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _vala_assert (f != NULL, "f != null");
-#line 401 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->flagged_state;
-#line 401 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = search_condition_flagged_get_state (f);
-#line 401 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 401 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_);
-#line 398 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _search_condition_unref0 (f);
-#line 4678 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_search_row_flagged_real_is_complete (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowFlagged * self;
- gboolean result = FALSE;
-#line 404 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged);
-#line 405 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = TRUE;
-#line 405 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 4693 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_flagged_on_changed (SavedSearchDialogSearchRowFlagged* self)
-{
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SavedSearchDialogSearchRowContainer* _tmp1_;
-#line 408 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_FLAGGED (self));
-#line 409 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 409 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->parent;
-#line 409 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_);
-#line 4710 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_flagged_class_init (SavedSearchDialogSearchRowFlaggedClass * klass)
-{
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_flagged_parent_class = g_type_class_peek_parent (klass);
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_flagged_finalize;
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowFlaggedPrivate));
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_flagged_real_get_widget;
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_flagged_real_get_search_condition;
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_flagged_real_populate;
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_flagged_real_is_complete;
-#line 4731 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_flagged_instance_init (SavedSearchDialogSearchRowFlagged * self)
-{
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED_GET_PRIVATE (self);
-#line 4740 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_flagged_finalize (SavedSearchDialogSearchRow * obj)
-{
- SavedSearchDialogSearchRowFlagged * self;
- GtkComboBoxText* _tmp0_;
- guint _tmp1_;
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged);
-#line 384 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->flagged_state;
-#line 384 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE);
-#line 384 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_flagged_on_changed_gtk_combo_box_changed, self);
-#line 362 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 363 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->flagged_state);
-#line 365 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_flagged_parent_class)->finalize (obj);
-#line 4766 "SavedSearchDialog.c"
-}
-
-
-static GType
-saved_search_dialog_search_row_flagged_get_type (void)
-{
- static volatile gsize saved_search_dialog_search_row_flagged_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_search_row_flagged_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowFlaggedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_flagged_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowFlagged), 0, (GInstanceInitFunc) saved_search_dialog_search_row_flagged_instance_init, NULL };
- GType saved_search_dialog_search_row_flagged_type_id;
- saved_search_dialog_search_row_flagged_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowFlagged", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_dialog_search_row_flagged_type_id__volatile, saved_search_dialog_search_row_flagged_type_id);
- }
- return saved_search_dialog_search_row_flagged_type_id__volatile;
-}
-
-
-static void
-_saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 450 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_rating_on_changed ((SavedSearchDialogSearchRowRating*) self);
-#line 4790 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowRating*
-saved_search_dialog_search_row_rating_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent)
-{
- SavedSearchDialogSearchRowRating* self = NULL;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkComboBoxText* _tmp2_;
- const gchar* _tmp3_;
- GtkComboBoxText* _tmp4_;
- const gchar* _tmp5_;
- GtkComboBoxText* _tmp6_;
- const gchar* _tmp7_;
- GtkComboBoxText* _tmp8_;
- const gchar* _tmp9_;
- GtkComboBoxText* _tmp10_;
- const gchar* _tmp11_;
- GtkComboBoxText* _tmp12_;
- const gchar* _tmp13_;
- GtkComboBoxText* _tmp14_;
- const gchar* _tmp15_;
- GtkComboBoxText* _tmp16_;
- GtkComboBoxText* _tmp17_;
- GtkComboBoxText* _tmp18_;
- GtkComboBoxText* _tmp19_;
- GtkComboBoxText* _tmp20_;
- GtkComboBoxText* _tmp21_;
- GtkComboBoxText* _tmp22_;
- GtkComboBoxText* _tmp23_;
- GtkBox* _tmp24_;
- GtkBox* _tmp25_;
- GtkLabel* _tmp26_;
- GtkLabel* _tmp27_;
- GtkBox* _tmp28_;
- GtkComboBoxText* _tmp29_;
- GtkBox* _tmp30_;
- GtkComboBoxText* _tmp31_;
- GtkBox* _tmp32_;
-#line 420 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL);
-#line 420 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRowRating*) saved_search_dialog_search_row_construct (object_type);
-#line 421 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent);
-#line 421 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 421 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->parent = _tmp0_;
-#line 424 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 424 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp1_);
-#line 424 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->rating);
-#line 424 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->rating = _tmp1_;
-#line 425 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->rating;
-#line 425 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = resources_rating_combo_box (RATING_REJECTED);
-#line 425 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp2_, _tmp3_);
-#line 426 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->rating;
-#line 426 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = resources_rating_combo_box (RATING_UNRATED);
-#line 426 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp4_, _tmp5_);
-#line 427 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->rating;
-#line 427 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = resources_rating_combo_box (RATING_ONE);
-#line 427 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp6_, _tmp7_);
-#line 428 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = self->priv->rating;
-#line 428 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = resources_rating_combo_box (RATING_TWO);
-#line 428 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp8_, _tmp9_);
-#line 429 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = self->priv->rating;
-#line 429 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = resources_rating_combo_box (RATING_THREE);
-#line 429 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp10_, _tmp11_);
-#line 430 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = self->priv->rating;
-#line 430 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = resources_rating_combo_box (RATING_FOUR);
-#line 430 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp12_, _tmp13_);
-#line 431 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = self->priv->rating;
-#line 431 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = resources_rating_combo_box (RATING_FIVE);
-#line 431 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp14_, _tmp15_);
-#line 432 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = self->priv->rating;
-#line 432 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 433 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = self->priv->rating;
-#line 433 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed, self);
-#line 435 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 435 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp18_);
-#line 435 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->context);
-#line 435 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->context = _tmp18_;
-#line 436 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp19_ = self->priv->context;
-#line 436 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp19_, _ ("and higher"));
-#line 437 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp20_ = self->priv->context;
-#line 437 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp20_, _ ("only"));
-#line 438 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp21_ = self->priv->context;
-#line 438 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp21_, _ ("and lower"));
-#line 439 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp22_ = self->priv->context;
-#line 439 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 440 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp23_ = self->priv->context;
-#line 440 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed, self);
-#line 442 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp24_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
-#line 442 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp24_);
-#line 442 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 442 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->box = _tmp24_;
-#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp25_ = self->priv->box;
-#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp26_ = (GtkLabel*) gtk_label_new (_ ("is"));
-#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp26_);
-#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp27_ = _tmp26_;
-#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_tmp27_);
-#line 444 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp28_ = self->priv->box;
-#line 444 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp29_ = self->priv->rating;
-#line 444 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 445 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp30_ = self->priv->box;
-#line 445 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp31_ = self->priv->context;
-#line 445 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 446 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp32_ = self->priv->box;
-#line 446 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget));
-#line 420 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 4966 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowRating*
-saved_search_dialog_search_row_rating_new (SavedSearchDialogSearchRowContainer* parent)
-{
-#line 420 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_search_row_rating_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, parent);
-#line 4975 "SavedSearchDialog.c"
-}
-
-
-static GtkWidget*
-saved_search_dialog_search_row_rating_real_get_widget (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowRating * self;
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 454 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating);
-#line 455 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->box;
-#line 455 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 455 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp1_;
-#line 455 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 4996 "SavedSearchDialog.c"
-}
-
-
-static SearchCondition*
-saved_search_dialog_search_row_rating_real_get_search_condition (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowRating * self;
- SearchCondition* result = NULL;
- SearchConditionSearchType search_type = 0;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- Rating search_rating = 0;
- GtkComboBoxText* _tmp1_;
- SearchConditionRatingContext search_context = 0;
- GtkComboBoxText* _tmp2_;
- SearchConditionRating* c = NULL;
- SearchConditionRating* _tmp3_;
-#line 458 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating);
-#line 459 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 459 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_);
-#line 460 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->rating;
-#line 460 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_rating = ((Rating) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))) + RATING_REJECTED;
-#line 461 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->context;
-#line 461 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_context = (SearchConditionRatingContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox));
-#line 462 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = search_condition_rating_new (search_type, search_rating, search_context);
-#line 462 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = _tmp3_;
-#line 463 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition);
-#line 463 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 5035 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_rating_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc)
-{
- SavedSearchDialogSearchRowRating * self;
- SearchConditionRating* r = NULL;
- SearchConditionRating* _tmp0_;
- GtkComboBoxText* _tmp1_;
- SearchConditionRatingContext _tmp2_;
- SearchConditionRatingContext _tmp3_;
- GtkComboBoxText* _tmp4_;
- Rating _tmp5_;
- Rating _tmp6_;
-#line 466 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating);
-#line 466 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SEARCH_CONDITION (sc));
-#line 467 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_RATING) ? ((SearchConditionRating*) sc) : NULL);
-#line 467 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- r = _tmp0_;
-#line 468 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _vala_assert (r != NULL, "r != null");
-#line 469 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->context;
-#line 469 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = search_condition_rating_get_context (r);
-#line 469 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 469 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_);
-#line 470 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->rating;
-#line 470 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = search_condition_rating_get_rating (r);
-#line 470 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = _tmp5_;
-#line 470 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), (gint) (_tmp6_ - RATING_REJECTED));
-#line 466 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _search_condition_unref0 (r);
-#line 5080 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_search_row_rating_real_is_complete (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowRating * self;
- gboolean result = FALSE;
-#line 473 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating);
-#line 474 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = TRUE;
-#line 474 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 5095 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_rating_on_changed (SavedSearchDialogSearchRowRating* self)
-{
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SavedSearchDialogSearchRowContainer* _tmp1_;
-#line 477 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_RATING (self));
-#line 478 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 478 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->parent;
-#line 478 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_);
-#line 5112 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_rating_class_init (SavedSearchDialogSearchRowRatingClass * klass)
-{
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_rating_parent_class = g_type_class_peek_parent (klass);
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_rating_finalize;
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowRatingPrivate));
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_rating_real_get_widget;
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_rating_real_get_search_condition;
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_rating_real_populate;
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_rating_real_is_complete;
-#line 5133 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_rating_instance_init (SavedSearchDialogSearchRowRating * self)
-{
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING_GET_PRIVATE (self);
-#line 5142 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_rating_finalize (SavedSearchDialogSearchRow * obj)
-{
- SavedSearchDialogSearchRowRating * self;
- GtkComboBoxText* _tmp0_;
- guint _tmp1_;
- GtkComboBoxText* _tmp2_;
- guint _tmp3_;
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating);
-#line 450 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->rating;
-#line 450 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE);
-#line 450 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed, self);
-#line 451 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->context;
-#line 451 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp3_, NULL, FALSE);
-#line 451 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed, self);
-#line 414 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 415 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->rating);
-#line 416 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->context);
-#line 418 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_rating_parent_class)->finalize (obj);
-#line 5178 "SavedSearchDialog.c"
-}
-
-
-static GType
-saved_search_dialog_search_row_rating_get_type (void)
-{
- static volatile gsize saved_search_dialog_search_row_rating_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_search_row_rating_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowRatingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_rating_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowRating), 0, (GInstanceInitFunc) saved_search_dialog_search_row_rating_instance_init, NULL };
- GType saved_search_dialog_search_row_rating_type_id;
- saved_search_dialog_search_row_rating_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowRating", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_dialog_search_row_rating_type_id__volatile, saved_search_dialog_search_row_rating_type_id);
- }
- return saved_search_dialog_search_row_rating_type_id__volatile;
-}
-
-
-static void
-_saved_search_dialog_search_row_date_on_changed_gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
-{
-#line 528 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_on_changed ((SavedSearchDialogSearchRowDate*) self);
-#line 5202 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_search_row_date_on_one_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 511 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_on_one_clicked ((SavedSearchDialogSearchRowDate*) self);
-#line 5212 "SavedSearchDialog.c"
-}
-
-
-static void
-_saved_search_dialog_search_row_date_on_two_clicked_gtk_button_clicked (GtkButton* _sender,
- gpointer self)
-{
-#line 513 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_on_two_clicked ((SavedSearchDialogSearchRowDate*) self);
-#line 5222 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowDate*
-saved_search_dialog_search_row_date_construct (GType object_type,
- SavedSearchDialogSearchRowContainer* parent)
-{
- SavedSearchDialogSearchRowDate* self = NULL;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkComboBoxText* _tmp2_;
- GtkComboBoxText* _tmp3_;
- GtkComboBoxText* _tmp4_;
- GtkComboBoxText* _tmp5_;
- GtkComboBoxText* _tmp6_;
- GtkComboBoxText* _tmp7_;
- GtkComboBoxText* _tmp8_;
- GtkCalendar* _tmp9_;
- GtkCalendar* _tmp10_;
- GtkButton* _tmp11_;
- GtkButton* _tmp12_;
- GtkButton* _tmp13_;
- GtkButton* _tmp14_;
- GtkLabel* _tmp15_;
- GtkBox* _tmp16_;
- GtkBox* _tmp17_;
- GtkComboBoxText* _tmp18_;
- GtkBox* _tmp19_;
- GtkButton* _tmp20_;
- GtkBox* _tmp21_;
- GtkLabel* _tmp22_;
- GtkBox* _tmp23_;
- GtkButton* _tmp24_;
- GtkBox* _tmp25_;
-#line 494 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL);
-#line 494 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = (SavedSearchDialogSearchRowDate*) saved_search_dialog_search_row_construct (object_type);
-#line 495 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent);
-#line 495 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 495 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->parent = _tmp0_;
-#line 498 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
-#line 498 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp1_);
-#line 498 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->context);
-#line 498 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->context = _tmp1_;
-#line 499 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->context;
-#line 499 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp2_, _ ("is exactly"));
-#line 500 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->context;
-#line 500 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp3_, _ ("is after"));
-#line 501 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->context;
-#line 501 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp4_, _ ("is before"));
-#line 502 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = self->priv->context;
-#line 502 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp5_, _ ("is between"));
-#line 503 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->context;
-#line 503 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_text_append_text (_tmp6_, _ ("is not set"));
-#line 504 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->context;
-#line 504 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 505 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = self->priv->context;
-#line 505 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_date_on_changed_gtk_combo_box_changed, self);
-#line 507 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = (GtkCalendar*) gtk_calendar_new ();
-#line 507 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp9_);
-#line 507 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->cal_one);
-#line 507 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->cal_one = _tmp9_;
-#line 508 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = (GtkCalendar*) gtk_calendar_new ();
-#line 508 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp10_);
-#line 508 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->cal_two);
-#line 508 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->cal_two = _tmp10_;
-#line 510 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = (GtkButton*) gtk_button_new ();
-#line 510 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp11_);
-#line 510 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->label_one);
-#line 510 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->label_one = _tmp11_;
-#line 511 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = self->priv->label_one;
-#line 511 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (_tmp12_, "clicked", (GCallback) _saved_search_dialog_search_row_date_on_one_clicked_gtk_button_clicked, self);
-#line 512 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = (GtkButton*) gtk_button_new ();
-#line 512 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp13_);
-#line 512 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->label_two);
-#line 512 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->label_two = _tmp13_;
-#line 513 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = self->priv->label_two;
-#line 513 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_connect (_tmp14_, "clicked", (GCallback) _saved_search_dialog_search_row_date_on_two_clicked_gtk_button_clicked, self);
-#line 515 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = (GtkLabel*) gtk_label_new (_ ("and"));
-#line 515 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp15_);
-#line 515 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->and);
-#line 515 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->and = _tmp15_;
-#line 517 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
-#line 517 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp16_);
-#line 517 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 517 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->box = _tmp16_;
-#line 518 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = self->priv->box;
-#line 518 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = self->priv->context;
-#line 518 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 519 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp19_ = self->priv->box;
-#line 519 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp20_ = self->priv->label_one;
-#line 519 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 520 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp21_ = self->priv->box;
-#line 520 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp22_ = self->priv->and;
-#line 520 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 521 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp23_ = self->priv->box;
-#line 521 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp24_ = self->priv->label_two;
-#line 521 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_box_pack_start (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
-#line 523 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp25_ = self->priv->box;
-#line 523 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget));
-#line 524 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_update_date_labels (self);
-#line 494 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return self;
-#line 5391 "SavedSearchDialog.c"
-}
-
-
-static SavedSearchDialogSearchRowDate*
-saved_search_dialog_search_row_date_new (SavedSearchDialogSearchRowContainer* parent)
-{
-#line 494 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return saved_search_dialog_search_row_date_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, parent);
-#line 5400 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_update_date_labels (SavedSearchDialogSearchRowDate* self)
-{
- SearchConditionDateContext c = 0;
- GtkComboBoxText* _tmp0_;
- SearchConditionDateContext _tmp1_;
- GtkButton* _tmp12_;
- GDateTime* _tmp13_;
- GDateTime* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- GtkButton* _tmp17_;
- GDateTime* _tmp18_;
- GDateTime* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
-#line 531 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self));
-#line 532 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->context;
-#line 532 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = (SearchConditionDateContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
-#line 535 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = c;
-#line 535 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp1_ == SEARCH_CONDITION_DATE_CONTEXT_BETWEEN) {
-#line 5430 "SavedSearchDialog.c"
- GtkButton* _tmp2_;
- GtkLabel* _tmp3_;
- GtkButton* _tmp4_;
-#line 536 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->label_one;
-#line 536 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 537 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->and;
-#line 537 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
-#line 538 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = self->priv->label_two;
-#line 538 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
-#line 5446 "SavedSearchDialog.c"
- } else {
- SearchConditionDateContext _tmp5_;
-#line 539 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = c;
-#line 539 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp5_ == SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET) {
-#line 5453 "SavedSearchDialog.c"
- GtkButton* _tmp6_;
- GtkLabel* _tmp7_;
- GtkButton* _tmp8_;
-#line 540 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->label_one;
-#line 540 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget));
-#line 541 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = self->priv->and;
-#line 541 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
-#line 542 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = self->priv->label_two;
-#line 542 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
-#line 5469 "SavedSearchDialog.c"
- } else {
- GtkButton* _tmp9_;
- GtkLabel* _tmp10_;
- GtkButton* _tmp11_;
-#line 544 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = self->priv->label_one;
-#line 544 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
-#line 545 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = self->priv->and;
-#line 545 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
-#line 546 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = self->priv->label_two;
-#line 546 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget));
-#line 5486 "SavedSearchDialog.c"
- }
- }
-#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = self->priv->label_one;
-#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = saved_search_dialog_search_row_date_get_date_one (self);
-#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = _tmp13_;
-#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = g_date_time_format (_tmp14_, SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_DATE_FORMAT);
-#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = _tmp15_;
-#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_button_set_label (_tmp12_, _tmp16_);
-#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp16_);
-#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_date_time_unref0 (_tmp14_);
-#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = self->priv->label_two;
-#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = saved_search_dialog_search_row_date_get_date_two (self);
-#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp19_ = _tmp18_;
-#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp20_ = g_date_time_format (_tmp19_, SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_DATE_FORMAT);
-#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp21_ = _tmp20_;
-#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_button_set_label (_tmp17_, _tmp21_);
-#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_free0 (_tmp21_);
-#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_date_time_unref0 (_tmp19_);
-#line 5521 "SavedSearchDialog.c"
-}
-
-
-static GtkWidget*
-saved_search_dialog_search_row_date_real_get_widget (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowDate * self;
- GtkWidget* result = NULL;
- GtkBox* _tmp0_;
- GtkWidget* _tmp1_;
-#line 554 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate);
-#line 555 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->box;
-#line 555 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
-#line 555 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp1_;
-#line 555 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 5542 "SavedSearchDialog.c"
-}
-
-
-static GDateTime*
-saved_search_dialog_search_row_date_get_date_one (SavedSearchDialogSearchRowDate* self)
-{
- GDateTime* result = NULL;
- GtkCalendar* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GtkCalendar* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- GtkCalendar* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- GDateTime* _tmp9_;
-#line 558 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self), NULL);
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->cal_one;
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (_tmp0_, "year", &_tmp1_, NULL);
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = _tmp1_;
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->cal_one;
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (_tmp3_, "month", &_tmp4_, NULL);
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = _tmp4_;
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->cal_one;
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (_tmp6_, "day", &_tmp7_, NULL);
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = _tmp7_;
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = g_date_time_new_local (_tmp2_, _tmp5_ + 1, _tmp8_, 0, 0, 0.0);
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp9_;
-#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 5586 "SavedSearchDialog.c"
-}
-
-
-static GDateTime*
-saved_search_dialog_search_row_date_get_date_two (SavedSearchDialogSearchRowDate* self)
-{
- GDateTime* result = NULL;
- GtkCalendar* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- GtkCalendar* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- GtkCalendar* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- GDateTime* _tmp9_;
-#line 562 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self), NULL);
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->cal_two;
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (_tmp0_, "year", &_tmp1_, NULL);
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = _tmp1_;
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = self->priv->cal_two;
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (_tmp3_, "month", &_tmp4_, NULL);
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = _tmp4_;
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = self->priv->cal_two;
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (_tmp6_, "day", &_tmp7_, NULL);
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = _tmp7_;
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = g_date_time_new_local (_tmp2_, _tmp5_ + 1, _tmp8_, 0, 0, 0.0);
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = _tmp9_;
-#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 5630 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_set_date_one (SavedSearchDialogSearchRowDate* self,
- GDateTime* date)
-{
- GtkCalendar* _tmp0_;
- GtkCalendar* _tmp1_;
- GtkCalendar* _tmp2_;
-#line 566 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self));
-#line 566 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (date != NULL);
-#line 567 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->cal_one;
-#line 567 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (_tmp0_, "day", g_date_time_get_day_of_month (date), NULL);
-#line 568 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->cal_one;
-#line 568 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (_tmp1_, "month", g_date_time_get_month (date) - 1, NULL);
-#line 569 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->cal_one;
-#line 569 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (_tmp2_, "year", g_date_time_get_year (date), NULL);
-#line 5657 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_set_date_two (SavedSearchDialogSearchRowDate* self,
- GDateTime* date)
-{
- GtkCalendar* _tmp0_;
- GtkCalendar* _tmp1_;
- GtkCalendar* _tmp2_;
-#line 572 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self));
-#line 572 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (date != NULL);
-#line 573 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->cal_two;
-#line 573 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (_tmp0_, "day", g_date_time_get_day_of_month (date), NULL);
-#line 574 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->cal_two;
-#line 574 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (_tmp1_, "month", g_date_time_get_month (date) - 1, NULL);
-#line 575 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = self->priv->cal_two;
-#line 575 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (_tmp2_, "year", g_date_time_get_year (date), NULL);
-#line 5684 "SavedSearchDialog.c"
-}
-
-
-static SearchCondition*
-saved_search_dialog_search_row_date_real_get_search_condition (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowDate * self;
- SearchCondition* result = NULL;
- SearchConditionSearchType search_type = 0;
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SearchConditionDateContext search_context = 0;
- GtkComboBoxText* _tmp1_;
- SearchConditionDate* c = NULL;
- GDateTime* _tmp2_;
- GDateTime* _tmp3_;
- GDateTime* _tmp4_;
- GDateTime* _tmp5_;
- SearchConditionDate* _tmp6_;
- SearchConditionDate* _tmp7_;
-#line 578 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate);
-#line 579 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 579 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_);
-#line 580 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->context;
-#line 580 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- search_context = (SearchConditionDateContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = saved_search_dialog_search_row_date_get_date_one (self);
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = saved_search_dialog_search_row_date_get_date_two (self);
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = _tmp4_;
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = search_condition_date_new (search_type, search_context, _tmp3_, _tmp5_);
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = _tmp6_;
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_date_time_unref0 (_tmp5_);
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_date_time_unref0 (_tmp3_);
-#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- c = _tmp7_;
-#line 583 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition);
-#line 583 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 5736 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_real_populate (SavedSearchDialogSearchRow* base,
- SearchCondition* sc)
-{
- SavedSearchDialogSearchRowDate * self;
- SearchConditionDate* cond = NULL;
- SearchConditionDate* _tmp0_;
- GtkComboBoxText* _tmp1_;
- SearchConditionDateContext _tmp2_;
- SearchConditionDateContext _tmp3_;
- GDateTime* _tmp4_;
- GDateTime* _tmp5_;
- GDateTime* _tmp6_;
- GDateTime* _tmp7_;
-#line 586 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate);
-#line 586 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (IS_SEARCH_CONDITION (sc));
-#line 587 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_DATE) ? ((SearchConditionDate*) sc) : NULL);
-#line 587 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- cond = _tmp0_;
-#line 588 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _vala_assert (cond != NULL, "cond != null");
-#line 589 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->context;
-#line 589 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp2_ = search_condition_date_get_context (cond);
-#line 589 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 589 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_);
-#line 590 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp4_ = search_condition_date_get_date_one (cond);
-#line 590 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = _tmp4_;
-#line 590 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_set_date_one (self, _tmp5_);
-#line 591 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = search_condition_date_get_date_two (cond);
-#line 591 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = _tmp6_;
-#line 591 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_set_date_two (self, _tmp7_);
-#line 592 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_update_date_labels (self);
-#line 586 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _search_condition_unref0 (cond);
-#line 5788 "SavedSearchDialog.c"
-}
-
-
-static gboolean
-saved_search_dialog_search_row_date_real_is_complete (SavedSearchDialogSearchRow* base)
-{
- SavedSearchDialogSearchRowDate * self;
- gboolean result = FALSE;
-#line 595 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate);
-#line 596 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- result = TRUE;
-#line 596 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return result;
-#line 5803 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_on_changed (SavedSearchDialogSearchRowDate* self)
-{
- SavedSearchDialogSearchRowContainer* _tmp0_;
- SavedSearchDialogSearchRowContainer* _tmp1_;
-#line 599 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self));
-#line 600 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->parent;
-#line 600 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = self->priv->parent;
-#line 600 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_);
-#line 601 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_update_date_labels (self);
-#line 5822 "SavedSearchDialog.c"
-}
-
-
-static Block10Data*
-block10_data_ref (Block10Data* _data10_)
-{
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_atomic_int_inc (&_data10_->_ref_count_);
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- return _data10_;
-#line 5833 "SavedSearchDialog.c"
-}
-
-
-static void
-block10_data_unref (void * _userdata_)
-{
- Block10Data* _data10_;
- _data10_ = (Block10Data*) _userdata_;
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
-#line 5844 "SavedSearchDialog.c"
- SavedSearchDialogSearchRowDate* self;
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = _data10_->self;
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (_data10_->d);
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_unref0 (self);
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_slice_free (Block10Data, _data10_);
-#line 5854 "SavedSearchDialog.c"
- }
-}
-
-
-static void
-__lambda14_ (SavedSearchDialogSearchRowDate* self)
-{
-#line 615 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_update_date_labels (self);
-#line 5864 "SavedSearchDialog.c"
-}
-
-
-static void
-___lambda14__gtk_calendar_day_selected (GtkCalendar* _sender,
- gpointer self)
-{
-#line 615 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- __lambda14_ ((SavedSearchDialogSearchRowDate*) self);
-#line 5874 "SavedSearchDialog.c"
-}
-
-
-static void
-__lambda15_ (Block10Data* _data10_)
-{
- SavedSearchDialogSearchRowDate* self;
- GtkDialog* _tmp0_;
-#line 616 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = _data10_->self;
-#line 617 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = _data10_->d;
-#line 617 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_dialog_response (_tmp0_, (gint) GTK_RESPONSE_ACCEPT);
-#line 5889 "SavedSearchDialog.c"
-}
-
-
-static void
-___lambda15__gtk_calendar_day_selected_double_click (GtkCalendar* _sender,
- gpointer self)
-{
-#line 616 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- __lambda15_ (self);
-#line 5899 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_popup_calendar (SavedSearchDialogSearchRowDate* self,
- GtkCalendar* cal)
-{
- Block10Data* _data10_;
- gint orig_day = 0;
- gint _tmp0_;
- gint _tmp1_;
- gint orig_month = 0;
- gint _tmp2_;
- gint _tmp3_;
- gint orig_year = 0;
- gint _tmp4_;
- gint _tmp5_;
- GtkDialog* _tmp6_;
- GtkDialog* _tmp7_;
- GtkDialog* _tmp8_;
- GtkDialog* _tmp9_;
- GtkDialog* _tmp10_;
- GtkBox* _tmp11_;
- gulong id_1 = 0UL;
- gulong _tmp12_;
- gulong id_2 = 0UL;
- gulong _tmp13_;
- GtkDialog* _tmp14_;
- gint res = 0;
- GtkDialog* _tmp15_;
- gint _tmp16_;
- gulong _tmp20_;
- gulong _tmp21_;
- GtkDialog* _tmp22_;
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self));
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (GTK_IS_CALENDAR (cal));
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _data10_ = g_slice_new0 (Block10Data);
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _data10_->_ref_count_ = 1;
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _data10_->self = saved_search_dialog_search_row_ref (self);
-#line 605 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (cal, "day", &_tmp0_, NULL);
-#line 605 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp1_ = _tmp0_;
-#line 605 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- orig_day = _tmp1_;
-#line 606 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (cal, "month", &_tmp2_, NULL);
-#line 606 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp3_ = _tmp2_;
-#line 606 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- orig_month = _tmp3_;
-#line 607 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_get (cal, "year", &_tmp4_, NULL);
-#line 607 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp5_ = _tmp4_;
-#line 607 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- orig_year = _tmp5_;
-#line 608 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp6_ = (GtkDialog*) gtk_dialog_new_with_buttons (NULL, NULL, GTK_DIALOG_MODAL, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_REJECT, RESOURCES_OK_LABEL, GTK_RESPONSE_ACCEPT, NULL);
-#line 608 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_ref_sink (_tmp6_);
-#line 608 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _data10_->d = _tmp6_;
-#line 611 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp7_ = _data10_->d;
-#line 611 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_window_get_type (), GtkWindow), TRUE);
-#line 612 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp8_ = _data10_->d;
-#line 612 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_window_get_type (), GtkWindow), FALSE);
-#line 613 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp9_ = _data10_->d;
-#line 613 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_window_set_decorated (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_window_get_type (), GtkWindow), FALSE);
-#line 614 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp10_ = _data10_->d;
-#line 614 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp11_ = gtk_dialog_get_content_area (_tmp10_);
-#line 614 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (cal, gtk_widget_get_type (), GtkWidget));
-#line 615 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp12_ = g_signal_connect (cal, "day-selected", (GCallback) ___lambda14__gtk_calendar_day_selected, self);
-#line 615 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- id_1 = _tmp12_;
-#line 616 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp13_ = g_signal_connect_data (cal, "day-selected-double-click", (GCallback) ___lambda15__gtk_calendar_day_selected_double_click, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
-#line 616 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- id_2 = _tmp13_;
-#line 619 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp14_ = _data10_->d;
-#line 619 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget));
-#line 620 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp15_ = _data10_->d;
-#line 620 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- res = gtk_dialog_run (_tmp15_);
-#line 621 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp16_ = res;
-#line 621 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- if (_tmp16_ != ((gint) GTK_RESPONSE_ACCEPT)) {
-#line 6006 "SavedSearchDialog.c"
- gint _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
-#line 623 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp17_ = orig_day;
-#line 623 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (cal, "day", _tmp17_, NULL);
-#line 624 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp18_ = orig_month;
-#line 624 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (cal, "month", _tmp18_, NULL);
-#line 625 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp19_ = orig_year;
-#line 625 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_object_set (cal, "year", _tmp19_, NULL);
-#line 6022 "SavedSearchDialog.c"
- }
-#line 627 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp20_ = id_1;
-#line 627 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_CAST (cal, G_TYPE_OBJECT, GObject), _tmp20_);
-#line 628 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp21_ = id_2;
-#line 628 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_CAST (cal, G_TYPE_OBJECT, GObject), _tmp21_);
-#line 629 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp22_ = _data10_->d;
-#line 629 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget));
-#line 630 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_update_date_labels (self);
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- block10_data_unref (_data10_);
-#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _data10_ = NULL;
-#line 6042 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_on_one_clicked (SavedSearchDialogSearchRowDate* self)
-{
- GtkCalendar* _tmp0_;
-#line 633 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self));
-#line 634 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->cal_one;
-#line 634 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_popup_calendar (self, _tmp0_);
-#line 6056 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_on_two_clicked (SavedSearchDialogSearchRowDate* self)
-{
- GtkCalendar* _tmp0_;
-#line 637 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self));
-#line 638 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->cal_two;
-#line 638 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_popup_calendar (self, _tmp0_);
-#line 6070 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_class_init (SavedSearchDialogSearchRowDateClass * klass)
-{
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_search_row_date_parent_class = g_type_class_peek_parent (klass);
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_date_finalize;
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowDatePrivate));
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_date_real_get_widget;
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_date_real_get_search_condition;
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_date_real_populate;
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_date_real_is_complete;
-#line 6091 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_instance_init (SavedSearchDialogSearchRowDate * self)
-{
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_GET_PRIVATE (self);
-#line 6100 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_search_row_date_finalize (SavedSearchDialogSearchRow * obj)
-{
- SavedSearchDialogSearchRowDate * self;
- GtkComboBoxText* _tmp0_;
- guint _tmp1_;
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate);
-#line 528 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = self->priv->context;
-#line 528 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE);
-#line 528 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_date_on_changed_gtk_combo_box_changed, self);
-#line 484 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->box);
-#line 485 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->context);
-#line 486 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->label_one);
-#line 487 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->label_two);
-#line 488 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->cal_one);
-#line 489 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->cal_two);
-#line 490 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->and);
-#line 492 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _saved_search_dialog_search_row_container_unref0 (self->priv->parent);
-#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_date_parent_class)->finalize (obj);
-#line 6136 "SavedSearchDialog.c"
-}
-
-
-static GType
-saved_search_dialog_search_row_date_get_type (void)
-{
- static volatile gsize saved_search_dialog_search_row_date_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_search_row_date_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowDateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_date_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowDate), 0, (GInstanceInitFunc) saved_search_dialog_search_row_date_instance_init, NULL };
- GType saved_search_dialog_search_row_date_type_id;
- saved_search_dialog_search_row_date_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowDate", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_dialog_search_row_date_type_id__volatile, saved_search_dialog_search_row_date_type_id);
- }
- return saved_search_dialog_search_row_date_type_id__volatile;
-}
-
-
-static void
-saved_search_dialog_class_init (SavedSearchDialogClass * klass)
-{
- gint SavedSearchDialog_private_offset;
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- saved_search_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchDialogPrivate));
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- G_OBJECT_CLASS (klass)->finalize = saved_search_dialog_finalize;
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- SavedSearchDialog_private_offset = g_type_class_get_instance_private_offset (klass);
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/saved_search_dialog.ui");
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "add_criteria", FALSE, SavedSearchDialog_private_offset + G_STRUCT_OFFSET (SavedSearchDialogPrivate, add_criteria));
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "operator", FALSE, SavedSearchDialog_private_offset + G_STRUCT_OFFSET (SavedSearchDialogPrivate, operator));
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "search_title", FALSE, SavedSearchDialog_private_offset + G_STRUCT_OFFSET (SavedSearchDialogPrivate, search_title));
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "row_listbox", FALSE, SavedSearchDialog_private_offset + G_STRUCT_OFFSET (SavedSearchDialogPrivate, row_listbox));
-#line 6176 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_instance_init (SavedSearchDialog * self)
-{
- GeeArrayList* _tmp0_;
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv = SAVED_SEARCH_DIALOG_GET_PRIVATE (self);
-#line 651 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _tmp0_ = gee_array_list_new (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, (GBoxedCopyFunc) saved_search_dialog_search_row_container_ref, (GDestroyNotify) saved_search_dialog_search_row_container_unref, NULL, NULL, NULL);
-#line 651 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->row_list = _tmp0_;
-#line 652 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->edit_mode = FALSE;
-#line 653 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->previous_search = NULL;
-#line 654 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self->priv->valid = FALSE;
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- gtk_widget_init_template (GTK_WIDGET (self));
-#line 6198 "SavedSearchDialog.c"
-}
-
-
-static void
-saved_search_dialog_finalize (GObject * obj)
-{
- SavedSearchDialog * self;
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog);
-#line 643 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->add_criteria);
-#line 645 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->operator);
-#line 647 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->search_title);
-#line 649 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->row_listbox);
-#line 651 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->row_list);
-#line 653 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- _g_object_unref0 (self->priv->previous_search);
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala"
- G_OBJECT_CLASS (saved_search_dialog_parent_class)->finalize (obj);
-#line 6222 "SavedSearchDialog.c"
-}
-
-
-GType
-saved_search_dialog_get_type (void)
-{
- static volatile gsize saved_search_dialog_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_dialog_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialog), 0, (GInstanceInitFunc) saved_search_dialog_instance_init, NULL };
- GType saved_search_dialog_type_id;
- saved_search_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SavedSearchDialog", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_dialog_type_id__volatile, saved_search_dialog_type_id);
- }
- return saved_search_dialog_type_id__volatile;
-}
-
-
-
diff --git a/src/searches/SavedSearchDialog.vala b/src/searches/SavedSearchDialog.vala
index d31140a..f5558bf 100644
--- a/src/searches/SavedSearchDialog.vala
+++ b/src/searches/SavedSearchDialog.vala
@@ -79,6 +79,9 @@ public class SavedSearchDialog : Gtk.Dialog {
case SearchCondition.SearchType.ANY_TEXT:
case SearchCondition.SearchType.EVENT_NAME:
case SearchCondition.SearchType.FILE_NAME:
+#if ENABLE_FACES
+ case SearchCondition.SearchType.FACE:
+#endif
case SearchCondition.SearchType.TAG:
case SearchCondition.SearchType.COMMENT:
case SearchCondition.SearchType.TITLE:
diff --git a/src/searches/SavedSearchPage.c b/src/searches/SavedSearchPage.c
deleted file mode 100644
index e7eda88..0000000
--- a/src/searches/SavedSearchPage.c
+++ /dev/null
@@ -1,1500 +0,0 @@
-/* SavedSearchPage.c generated by valac 0.40.4, the Vala compiler
- * generated from SavedSearchPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* Source monitoring for saved searches.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <gdk/gdk.h>
-
-
-#define TYPE_VIEW_MANAGER (view_manager_get_type ())
-#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
-#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
-#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
-#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
-#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))
-
-typedef struct _ViewManager ViewManager;
-typedef struct _ViewManagerClass ViewManagerClass;
-typedef struct _ViewManagerPrivate ViewManagerPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ())
-#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager))
-#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER))
-#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER))
-#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
-
-typedef struct _CollectionViewManager CollectionViewManager;
-typedef struct _CollectionViewManagerClass CollectionViewManagerClass;
-typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate;
-
-#define TYPE_SAVED_SEARCH_MANAGER (saved_search_manager_get_type ())
-#define SAVED_SEARCH_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_MANAGER, SavedSearchManager))
-#define SAVED_SEARCH_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_MANAGER, SavedSearchManagerClass))
-#define IS_SAVED_SEARCH_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_MANAGER))
-#define IS_SAVED_SEARCH_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_MANAGER))
-#define SAVED_SEARCH_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_MANAGER, SavedSearchManagerClass))
-
-typedef struct _SavedSearchManager SavedSearchManager;
-typedef struct _SavedSearchManagerClass SavedSearchManagerClass;
-typedef struct _SavedSearchManagerPrivate SavedSearchManagerPrivate;
-
-#define TYPE_SAVED_SEARCH (saved_search_get_type ())
-#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch))
-#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass))
-#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH))
-#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH))
-#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass))
-
-typedef struct _SavedSearch SavedSearch;
-typedef struct _SavedSearchClass SavedSearchClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define TYPE_SAVED_SEARCH_PAGE (saved_search_page_get_type ())
-#define SAVED_SEARCH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_PAGE, SavedSearchPage))
-#define SAVED_SEARCH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_PAGE, SavedSearchPageClass))
-#define IS_SAVED_SEARCH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_PAGE))
-#define IS_SAVED_SEARCH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_PAGE))
-#define SAVED_SEARCH_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_PAGE, SavedSearchPageClass))
-
-typedef struct _SavedSearchPage SavedSearchPage;
-typedef struct _SavedSearchPageClass SavedSearchPageClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-typedef struct _CollectionPagePrivate CollectionPagePrivate;
-typedef struct _SavedSearchPagePrivate SavedSearchPagePrivate;
-enum {
- SAVED_SEARCH_PAGE_0_PROPERTY,
- SAVED_SEARCH_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* saved_search_page_properties[SAVED_SEARCH_PAGE_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
-#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
-#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
-#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
-#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
-
-typedef struct _MediaSourceCollection MediaSourceCollection;
-typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-
-#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ())
-#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor))
-#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR))
-#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass))
-
-typedef struct _ViewCollectionMonitor ViewCollectionMonitor;
-typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass;
-#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL)))
-#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL)))
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ())
-#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand))
-#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-
-typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
-typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
-
-#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ())
-#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand))
-#define DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass))
-#define IS_DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND))
-#define IS_DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND))
-#define DELETE_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass))
-
-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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ())
-#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog))
-#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG))
-#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG))
-#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-
-typedef struct _SavedSearchDialog SavedSearchDialog;
-typedef struct _SavedSearchDialogClass SavedSearchDialogClass;
-
-struct _ViewManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- ViewManagerPrivate * priv;
-};
-
-struct _ViewManagerClass {
- GTypeClass parent_class;
- void (*finalize) (ViewManager *self);
- gboolean (*include_in_view) (ViewManager* self, DataSource* source);
- DataView* (*create_view) (ViewManager* self, DataSource* source);
-};
-
-struct _CollectionViewManager {
- ViewManager parent_instance;
- CollectionViewManagerPrivate * priv;
-};
-
-struct _CollectionViewManagerClass {
- ViewManagerClass parent_class;
-};
-
-struct _SavedSearchManager {
- CollectionViewManager parent_instance;
- SavedSearchManagerPrivate * priv;
-};
-
-struct _SavedSearchManagerClass {
- CollectionViewManagerClass parent_class;
-};
-
-struct _SavedSearchManagerPrivate {
- SavedSearch* search;
-};
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _CollectionPage {
- MediaPage parent_instance;
- CollectionPagePrivate * priv;
-};
-
-struct _CollectionPageClass {
- MediaPageClass parent_class;
-};
-
-struct _SavedSearchPage {
- CollectionPage parent_instance;
- SavedSearchPagePrivate * priv;
-};
-
-struct _SavedSearchPageClass {
- CollectionPageClass parent_class;
-};
-
-struct _SavedSearchPagePrivate {
- SavedSearch* search;
-};
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-
-static gpointer saved_search_manager_parent_class = NULL;
-static gpointer saved_search_page_parent_class = NULL;
-
-gpointer view_manager_ref (gpointer instance);
-void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_manager (GValue* value,
- gpointer v_object);
-void value_take_view_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_view_manager (const GValue* value);
-GType view_manager_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType collection_view_manager_get_type (void) G_GNUC_CONST;
-GType saved_search_manager_get_type (void) G_GNUC_CONST;
-GType saved_search_get_type (void) G_GNUC_CONST;
-#define SAVED_SEARCH_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_MANAGER, SavedSearchManagerPrivate))
-GType page_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType saved_search_page_get_type (void) G_GNUC_CONST;
-SavedSearchManager* saved_search_manager_new (SavedSearchPage* owner,
- SavedSearch* search);
-SavedSearchManager* saved_search_manager_construct (GType object_type,
- SavedSearchPage* owner,
- SavedSearch* search);
-CollectionViewManager* collection_view_manager_new (CollectionPage* page);
-CollectionViewManager* collection_view_manager_construct (GType object_type,
- CollectionPage* page);
-static gboolean saved_search_manager_real_include_in_view (ViewManager* base,
- DataSource* source);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-gboolean saved_search_predicate (SavedSearch* self,
- MediaSource* source);
-static void saved_search_manager_finalize (ViewManager * obj);
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-#define SAVED_SEARCH_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_PAGE, SavedSearchPagePrivate))
-static void saved_search_page_on_rename_search (SavedSearchPage* self);
-static void _saved_search_page_on_rename_search_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void saved_search_page_on_edit_search (SavedSearchPage* self);
-static void _saved_search_page_on_edit_search_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void saved_search_page_on_delete_search (SavedSearchPage* self);
-static void _saved_search_page_on_delete_search_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-SavedSearchPage* saved_search_page_new (SavedSearch* search);
-SavedSearchPage* saved_search_page_construct (GType object_type,
- SavedSearch* search);
-gchar* data_object_get_name (DataObject* self);
-CollectionPage* collection_page_construct (GType object_type,
- const gchar* page_name);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType media_source_collection_get_type (void) G_GNUC_CONST;
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self);
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer view_collection_monitor_ref (gpointer instance);
-void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value,
- gpointer v_object);
-void view_collection_value_take_monitor (GValue* value,
- gpointer v_object);
-gpointer view_collection_value_get_monitor (const GValue* value);
-GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
- SourceCollection* sources,
- ViewManager* manager,
- Alteration* prereq,
- GeeCollection* initial,
- ProgressMonitor progress_monitor,
- void* progress_monitor_target);
-void checkerboard_page_init_page_context_menu (CheckerboardPage* self,
- const gchar* path);
-static void saved_search_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_get_library_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void saved_search_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by);
-void configuration_facade_set_library_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-static 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,
- 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);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* app_window_get_command_manager (void);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search);
-DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type,
- SavedSearch* search);
-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);
-GType saved_search_dialog_get_type (void) G_GNUC_CONST;
-SavedSearchDialog* saved_search_dialog_new_edit_existing (SavedSearch* saved_search);
-SavedSearchDialog* saved_search_dialog_construct_edit_existing (GType object_type,
- SavedSearch* saved_search);
-void saved_search_dialog_show (SavedSearchDialog* self);
-static void saved_search_page_real_update_actions (Page* base,
- gint selected_count,
- gint count);
-void page_set_action_sensitive (Page* self,
- const gchar* name,
- gboolean sensitive);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-static void saved_search_page_finalize (GObject * obj);
-
-static const GActionEntry SAVED_SEARCH_PAGE_entries[3] = {{"RenameSearch", _saved_search_page_on_rename_search_gsimple_action_activate_callback}, {"EditSearch", _saved_search_page_on_edit_search_gsimple_action_activate_callback}, {"DeleteSearch", _saved_search_page_on_delete_search_gsimple_action_activate_callback}};
-
-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 926 "SavedSearchPage.c"
-}
-
-
-SavedSearchManager*
-saved_search_manager_construct (GType object_type,
- SavedSearchPage* owner,
- SavedSearch* search)
-{
- SavedSearchManager* self = NULL;
- SavedSearch* _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_PAGE (owner), NULL);
-#line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
-#line 11 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = (SavedSearchManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, TYPE_COLLECTION_PAGE, CollectionPage));
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = _g_object_ref0 (search);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (self->priv->search);
-#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self->priv->search = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- return self;
-#line 951 "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 961 "SavedSearchPage.c"
-}
-
-
-static gboolean
-saved_search_manager_real_include_in_view (ViewManager* base,
- DataSource* source)
-{
- SavedSearchManager * self;
- gboolean result = FALSE;
- SavedSearch* _tmp0_;
-#line 15 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_MANAGER, SavedSearchManager);
-#line 15 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
-#line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = self->priv->search;
-#line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- result = saved_search_predicate (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
-#line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- return result;
-#line 982 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_manager_class_init (SavedSearchManagerClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- saved_search_manager_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ((ViewManagerClass *) klass)->finalize = saved_search_manager_finalize;
-#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchManagerPrivate));
-#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) saved_search_manager_real_include_in_view;
-#line 997 "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 1006 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_manager_finalize (ViewManager * obj)
-{
- SavedSearchManager * self;
-#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_MANAGER, SavedSearchManager);
-#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _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 1020 "SavedSearchPage.c"
-}
-
-
-GType
-saved_search_manager_get_type (void)
-{
- static volatile gsize saved_search_manager_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_manager_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchManager), 0, (GInstanceInitFunc) saved_search_manager_instance_init, NULL };
- GType saved_search_manager_type_id;
- saved_search_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "SavedSearchManager", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_manager_type_id__volatile, saved_search_manager_type_id);
- }
- return saved_search_manager_type_id__volatile;
-}
-
-
-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 1045 "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 1056 "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 1067 "SavedSearchPage.c"
-}
-
-
-SavedSearchPage*
-saved_search_page_construct (GType object_type,
- SavedSearch* search)
-{
- SavedSearchPage * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- SavedSearch* _tmp2_;
-#line 26 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
-#line 27 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 27 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp1_ = _tmp0_;
-#line 27 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = (SavedSearchPage*) collection_page_construct (object_type, _tmp1_);
-#line 27 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_free0 (_tmp1_);
-#line 28 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp2_ = _g_object_ref0 (search);
-#line 28 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (self->priv->search);
-#line 28 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self->priv->search = _tmp2_;
-#line 1095 "SavedSearchPage.c"
- {
- GeeIterator* _sources_it = NULL;
- MediaCollectionRegistry* _tmp3_;
- MediaCollectionRegistry* _tmp4_;
- GeeCollection* _tmp5_;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
- GeeIterator* _tmp8_;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp3_ = media_collection_registry_get_instance ();
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp4_ = _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp5_ = media_collection_registry_get_all (_tmp4_);
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp6_ = _tmp5_;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp8_ = _tmp7_;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (_tmp6_);
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _media_collection_registry_unref0 (_tmp4_);
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _sources_it = _tmp8_;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- while (TRUE) {
-#line 1124 "SavedSearchPage.c"
- GeeIterator* _tmp9_;
- MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- MediaSourceCollection* _tmp14_;
- SavedSearchManager* _tmp15_;
- SavedSearchManager* _tmp16_;
- ViewCollectionMonitor* _tmp17_;
- ViewCollectionMonitor* _tmp18_;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp9_ = _sources_it;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- break;
-#line 1142 "SavedSearchPage.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp10_ = _sources_it;
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- sources = (MediaSourceCollection*) _tmp11_;
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp13_ = _tmp12_;
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp14_ = sources;
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp15_ = saved_search_manager_new (self, search);
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp16_ = _tmp15_;
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp17_ = view_collection_monitor_source_collection (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL);
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp18_ = _tmp17_;
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _view_collection_monitor_unref0 (_tmp18_);
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _view_manager_unref0 (_tmp16_);
-#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _data_collection_unref0 (sources);
-#line 1172 "SavedSearchPage.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (_sources_it);
-#line 1176 "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 1182 "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 1191 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by)
-{
- SavedSearchPage * self;
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_ = 0;
-#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage);
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp1_ = _tmp0_;
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_);
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _vala_sort_order = _tmp2_;
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _vala_sort_by = _tmp3_;
-#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- if (sort_order) {
-#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- *sort_order = _vala_sort_order;
-#line 1225 "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 1231 "SavedSearchPage.c"
- }
-}
-
-
-static void
-saved_search_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by)
-{
- SavedSearchPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 41 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage);
-#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp1_ = _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by);
-#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1254 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- SavedSearchPage * self;
-#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage);
-#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- PAGE_CLASS (saved_search_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), ui_filenames);
-#line 47 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "savedsearch.ui");
-#line 1271 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- SavedSearchPage * self;
-#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), map);
-#line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_action_map_add_action_entries (map, SAVED_SEARCH_PAGE_entries, G_N_ELEMENTS (SAVED_SEARCH_PAGE_entries), self);
-#line 1288 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- SavedSearchPage * self;
-#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"
- 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), map);
-#line 1303 "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 1315 "SavedSearchPage.c"
- GActionEntry entry = {0};
-#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- entry = entry_collection[entry_it];
-#line 1319 "SavedSearchPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = entry;
-#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 1329 "SavedSearchPage.c"
- }
- }
- }
-}
-
-
-static void
-saved_search_page_on_delete_search (SavedSearchPage* self)
-{
- SavedSearch* _tmp0_;
-#line 70 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_return_if_fail (IS_SAVED_SEARCH_PAGE (self));
-#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = self->priv->search;
-#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- if (dialogs_confirm_delete_saved_search (_tmp0_)) {
-#line 1346 "SavedSearchPage.c"
- CommandManager* _tmp1_;
- CommandManager* _tmp2_;
- SavedSearch* _tmp3_;
- DeleteSavedSearchCommand* _tmp4_;
- DeleteSavedSearchCommand* _tmp5_;
-#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp1_ = app_window_get_command_manager ();
-#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp2_ = _tmp1_;
-#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp3_ = self->priv->search;
-#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp4_ = delete_saved_search_command_new (_tmp3_);
-#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp5_ = _tmp4_;
-#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command));
-#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _command_manager_unref0 (_tmp2_);
-#line 1368 "SavedSearchPage.c"
- }
-}
-
-
-static void
-saved_search_page_on_rename_search (SavedSearchPage* self)
-{
- LibraryWindow* _tmp0_;
- LibraryWindow* _tmp1_;
- SavedSearch* _tmp2_;
-#line 75 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_return_if_fail (IS_SAVED_SEARCH_PAGE (self));
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = library_window_get_app ();
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp1_ = _tmp0_;
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp2_ = self->priv->search;
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- library_window_rename_search_in_sidebar (_tmp1_, _tmp2_);
-#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1391 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_page_on_edit_search (SavedSearchPage* self)
-{
- SavedSearchDialog* ssd = NULL;
- SavedSearch* _tmp0_;
- SavedSearchDialog* _tmp1_;
-#line 79 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_return_if_fail (IS_SAVED_SEARCH_PAGE (self));
-#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp0_ = self->priv->search;
-#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _tmp1_ = saved_search_dialog_new_edit_existing (_tmp0_);
-#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_object_ref_sink (_tmp1_);
-#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ssd = _tmp1_;
-#line 81 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- saved_search_dialog_show (ssd);
-#line 79 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _g_object_unref0 (ssd);
-#line 1415 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- SavedSearchPage * self;
-#line 84 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage);
-#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 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 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 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), selected_count, count);
-#line 1435 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_page_class_init (SavedSearchPageClass * klass)
-{
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- saved_search_page_parent_class = g_type_class_peek_parent (klass);
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchPagePrivate));
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) saved_search_page_real_get_config_photos_sort;
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) saved_search_page_real_set_config_photos_sort;
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) saved_search_page_real_init_collect_ui_filenames;
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) saved_search_page_real_add_actions;
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) saved_search_page_real_remove_actions;
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) 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 1460 "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 1469 "SavedSearchPage.c"
-}
-
-
-static void
-saved_search_page_finalize (GObject * obj)
-{
- SavedSearchPage * self;
-#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage);
-#line 24 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala"
- _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 1483 "SavedSearchPage.c"
-}
-
-
-GType
-saved_search_page_get_type (void)
-{
- static volatile gsize saved_search_page_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchPage), 0, (GInstanceInitFunc) saved_search_page_instance_init, NULL };
- GType saved_search_page_type_id;
- saved_search_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "SavedSearchPage", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_page_type_id__volatile, saved_search_page_type_id);
- }
- return saved_search_page_type_id__volatile;
-}
-
-
-
diff --git a/src/searches/SearchBoolean.c b/src/searches/SearchBoolean.c
deleted file mode 100644
index 3a38f9e..0000000
--- a/src/searches/SearchBoolean.c
+++ /dev/null
@@ -1,6867 +0,0 @@
-/* SearchBoolean.c generated by valac 0.40.4, the Vala compiler
- * generated from SearchBoolean.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* For specifying whether a search should be ORed (any) or ANDed (all).*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib/gi18n-lib.h>
-#include <gee.h>
-#include <time.h>
-#include <gtk/gtk.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_SEARCH_OPERATOR (search_operator_get_type ())
-
-#define TYPE_SEARCH_CONDITION (search_condition_get_type ())
-#define SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION, SearchCondition))
-#define SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION, SearchConditionClass))
-#define IS_SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION))
-#define IS_SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION))
-#define SEARCH_CONDITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION, SearchConditionClass))
-
-typedef struct _SearchCondition SearchCondition;
-typedef struct _SearchConditionClass SearchConditionClass;
-typedef struct _SearchConditionPrivate SearchConditionPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 SEARCH_CONDITION_TYPE_SEARCH_TYPE (search_condition_search_type_get_type ())
-typedef struct _ParamSpecSearchCondition ParamSpecSearchCondition;
-
-#define TYPE_SEARCH_CONDITION_TEXT (search_condition_text_get_type ())
-#define SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionText))
-#define SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass))
-#define IS_SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_TEXT))
-#define IS_SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_TEXT))
-#define SEARCH_CONDITION_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass))
-
-typedef struct _SearchConditionText SearchConditionText;
-typedef struct _SearchConditionTextClass SearchConditionTextClass;
-typedef struct _SearchConditionTextPrivate SearchConditionTextPrivate;
-
-#define SEARCH_CONDITION_TEXT_TYPE_CONTEXT (search_condition_text_context_get_type ())
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_EVENT_SOURCE (event_source_get_type ())
-#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
-#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
-#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
-#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
-#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
-
-typedef struct _EventSource EventSource;
-typedef struct _EventSourceClass EventSourceClass;
-
-#define TYPE_EVENT (event_get_type ())
-#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
-#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
-#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
-#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
-#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
-
-typedef struct _Event Event;
-typedef struct _EventClass EventClass;
-
-#define TYPE_SEARCH_CONDITION_MEDIA_TYPE (search_condition_media_type_get_type ())
-#define SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType))
-#define SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass))
-#define IS_SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE))
-#define IS_SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE))
-#define SEARCH_CONDITION_MEDIA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass))
-
-typedef struct _SearchConditionMediaType SearchConditionMediaType;
-typedef struct _SearchConditionMediaTypeClass SearchConditionMediaTypeClass;
-typedef struct _SearchConditionMediaTypePrivate SearchConditionMediaTypePrivate;
-
-#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_MEDIA_TYPE (search_condition_media_type_media_type_get_type ())
-
-#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_CONTEXT (search_condition_media_type_context_get_type ())
-
-#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_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
-
-#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))
-#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
-#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
-#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))
-
-typedef struct _VideoSource VideoSource;
-typedef struct _VideoSourceClass VideoSourceClass;
-
-#define TYPE_SEARCH_CONDITION_FLAGGED (search_condition_flagged_get_type ())
-#define SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged))
-#define SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass))
-#define IS_SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_FLAGGED))
-#define IS_SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_FLAGGED))
-#define SEARCH_CONDITION_FLAGGED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass))
-
-typedef struct _SearchConditionFlagged SearchConditionFlagged;
-typedef struct _SearchConditionFlaggedClass SearchConditionFlaggedClass;
-typedef struct _SearchConditionFlaggedPrivate SearchConditionFlaggedPrivate;
-
-#define SEARCH_CONDITION_FLAGGED_TYPE_STATE (search_condition_flagged_state_get_type ())
-
-#define TYPE_FLAGGABLE (flaggable_get_type ())
-#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
-#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
-#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
-
-typedef struct _Flaggable Flaggable;
-typedef struct _FlaggableIface FlaggableIface;
-
-#define TYPE_SEARCH_CONDITION_MODIFIED (search_condition_modified_get_type ())
-#define SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified))
-#define SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass))
-#define IS_SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MODIFIED))
-#define IS_SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MODIFIED))
-#define SEARCH_CONDITION_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass))
-
-typedef struct _SearchConditionModified SearchConditionModified;
-typedef struct _SearchConditionModifiedClass SearchConditionModifiedClass;
-typedef struct _SearchConditionModifiedPrivate SearchConditionModifiedPrivate;
-
-#define SEARCH_CONDITION_MODIFIED_TYPE_STATE (search_condition_modified_state_get_type ())
-
-#define SEARCH_CONDITION_MODIFIED_TYPE_CONTEXT (search_condition_modified_context_get_type ())
-
-#define TYPE_SEARCH_CONDITION_RATING (search_condition_rating_get_type ())
-#define SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRating))
-#define SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass))
-#define IS_SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_RATING))
-#define IS_SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_RATING))
-#define SEARCH_CONDITION_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass))
-
-typedef struct _SearchConditionRating SearchConditionRating;
-typedef struct _SearchConditionRatingClass SearchConditionRatingClass;
-typedef struct _SearchConditionRatingPrivate SearchConditionRatingPrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define SEARCH_CONDITION_RATING_TYPE_CONTEXT (search_condition_rating_context_get_type ())
-
-#define TYPE_SEARCH_CONDITION_DATE (search_condition_date_get_type ())
-#define SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDate))
-#define SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass))
-#define IS_SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_DATE))
-#define IS_SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_DATE))
-#define SEARCH_CONDITION_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass))
-
-typedef struct _SearchConditionDate SearchConditionDate;
-typedef struct _SearchConditionDateClass SearchConditionDateClass;
-typedef struct _SearchConditionDatePrivate SearchConditionDatePrivate;
-
-#define SEARCH_CONDITION_DATE_TYPE_CONTEXT (search_condition_date_context_get_type ())
-#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
-typedef struct _DataObjectPrivate DataObjectPrivate;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-typedef struct _DataSourcePrivate DataSourcePrivate;
-
-#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
-#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
-#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
-#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
-#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
-
-typedef struct _SourceHoldingTank SourceHoldingTank;
-typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
-
-#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ())
-#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
-#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
-#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
-#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
-
-typedef struct _SourceSnapshot SourceSnapshot;
-typedef struct _SourceSnapshotClass SourceSnapshotClass;
-
-#define TYPE_SAVED_SEARCH (saved_search_get_type ())
-#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch))
-#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass))
-#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH))
-#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH))
-#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass))
-
-typedef struct _SavedSearch SavedSearch;
-typedef struct _SavedSearchClass SavedSearchClass;
-typedef struct _SavedSearchPrivate SavedSearchPrivate;
-
-#define TYPE_SAVED_SEARCH_ROW (saved_search_row_get_type ())
-#define SAVED_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_ROW, SavedSearchRow))
-#define SAVED_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_ROW, SavedSearchRowClass))
-#define IS_SAVED_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_ROW))
-#define IS_SAVED_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_ROW))
-#define SAVED_SEARCH_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_ROW, SavedSearchRowClass))
-
-typedef struct _SavedSearchRow SavedSearchRow;
-typedef struct _SavedSearchRowClass SavedSearchRowClass;
-enum {
- SAVED_SEARCH_0_PROPERTY,
- SAVED_SEARCH_NUM_PROPERTIES
-};
-static GParamSpec* saved_search_properties[SAVED_SEARCH_NUM_PROPERTIES];
-#define _saved_search_row_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_row_unref (var), NULL)))
-typedef struct _SavedSearchRowPrivate SavedSearchRowPrivate;
-
-#define TYPE_SAVED_SEARCH_ID (saved_search_id_get_type ())
-typedef struct _SavedSearchID SavedSearchID;
-#define _search_condition_unref0(var) ((var == NULL) ? NULL : (var = (search_condition_unref (var), NULL)))
-
-#define TYPE_DATABASE_TABLE (database_table_get_type ())
-#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
-#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
-#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
-#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
-#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
-
-typedef struct _DatabaseTable DatabaseTable;
-typedef struct _DatabaseTableClass DatabaseTableClass;
-
-#define TYPE_SAVED_SEARCH_DB_TABLE (saved_search_db_table_get_type ())
-#define SAVED_SEARCH_DB_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTable))
-#define SAVED_SEARCH_DB_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTableClass))
-#define IS_SAVED_SEARCH_DB_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DB_TABLE))
-#define IS_SAVED_SEARCH_DB_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DB_TABLE))
-#define SAVED_SEARCH_DB_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTableClass))
-
-typedef struct _SavedSearchDBTable SavedSearchDBTable;
-typedef struct _SavedSearchDBTableClass SavedSearchDBTableClass;
-#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ())
-#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable))
-#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE))
-#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE))
-#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-
-typedef struct _SavedSearchTable SavedSearchTable;
-typedef struct _SavedSearchTableClass SavedSearchTableClass;
-#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-typedef struct _SavedSearchTablePrivate SavedSearchTablePrivate;
-typedef struct _ParamSpecSavedSearchTable ParamSpecSavedSearchTable;
-enum {
- SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL,
- SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL,
- SAVED_SEARCH_TABLE_NUM_SIGNALS
-};
-static guint saved_search_table_signals[SAVED_SEARCH_TABLE_NUM_SIGNALS] = {0};
-
-typedef enum {
- SEARCH_OPERATOR_ANY = 0,
- SEARCH_OPERATOR_ALL,
- SEARCH_OPERATOR_NONE
-} SearchOperator;
-
-struct _SearchCondition {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SearchConditionPrivate * priv;
-};
-
-struct _SearchConditionClass {
- GTypeClass parent_class;
- void (*finalize) (SearchCondition *self);
- gboolean (*predicate) (SearchCondition* self, MediaSource* source);
-};
-
-typedef enum {
- SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT = 0,
- SEARCH_CONDITION_SEARCH_TYPE_TITLE,
- SEARCH_CONDITION_SEARCH_TYPE_TAG,
- SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME,
- SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME,
- SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE,
- SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE,
- SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE,
- SEARCH_CONDITION_SEARCH_TYPE_RATING,
- SEARCH_CONDITION_SEARCH_TYPE_COMMENT,
- SEARCH_CONDITION_SEARCH_TYPE_DATE
-} SearchConditionSearchType;
-
-struct _SearchConditionPrivate {
- SearchConditionSearchType _search_type;
-};
-
-struct _ParamSpecSearchCondition {
- GParamSpec parent_instance;
-};
-
-struct _SearchConditionText {
- SearchCondition parent_instance;
- SearchConditionTextPrivate * priv;
-};
-
-struct _SearchConditionTextClass {
- SearchConditionClass parent_class;
-};
-
-typedef enum {
- SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS = 0,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY,
- SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH,
- SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH,
- SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET,
- SEARCH_CONDITION_TEXT_CONTEXT_IS_SET
-} SearchConditionTextContext;
-
-struct _SearchConditionTextPrivate {
- gchar* _text;
- SearchConditionTextContext _context;
-};
-
-struct _SearchConditionMediaType {
- SearchCondition parent_instance;
- SearchConditionMediaTypePrivate * priv;
-};
-
-struct _SearchConditionMediaTypeClass {
- SearchConditionClass parent_class;
-};
-
-typedef enum {
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL = 0,
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW,
- SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO
-} SearchConditionMediaTypeMediaType;
-
-typedef enum {
- SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS = 0,
- SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT
-} SearchConditionMediaTypeContext;
-
-struct _SearchConditionMediaTypePrivate {
- SearchConditionMediaTypeMediaType _media_type;
- SearchConditionMediaTypeContext _context;
-};
-
-typedef enum {
- PHOTO_FILE_FORMAT_JFIF,
- PHOTO_FILE_FORMAT_RAW,
- PHOTO_FILE_FORMAT_PNG,
- PHOTO_FILE_FORMAT_TIFF,
- PHOTO_FILE_FORMAT_BMP,
- PHOTO_FILE_FORMAT_UNKNOWN
-} PhotoFileFormat;
-
-struct _SearchConditionFlagged {
- SearchCondition parent_instance;
- SearchConditionFlaggedPrivate * priv;
-};
-
-struct _SearchConditionFlaggedClass {
- SearchConditionClass parent_class;
-};
-
-typedef enum {
- SEARCH_CONDITION_FLAGGED_STATE_FLAGGED = 0,
- SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED
-} SearchConditionFlaggedState;
-
-struct _SearchConditionFlaggedPrivate {
- SearchConditionFlaggedState _state;
-};
-
-struct _FlaggableIface {
- GTypeInterface parent_iface;
- gboolean (*is_flagged) (Flaggable* self);
- void (*mark_flagged) (Flaggable* self);
- void (*mark_unflagged) (Flaggable* self);
-};
-
-struct _SearchConditionModified {
- SearchCondition parent_instance;
- SearchConditionModifiedPrivate * priv;
-};
-
-struct _SearchConditionModifiedClass {
- SearchConditionClass parent_class;
-};
-
-typedef enum {
- SEARCH_CONDITION_MODIFIED_STATE_MODIFIED = 0,
- SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES,
- SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES
-} SearchConditionModifiedState;
-
-typedef enum {
- SEARCH_CONDITION_MODIFIED_CONTEXT_HAS = 0,
- SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO
-} SearchConditionModifiedContext;
-
-struct _SearchConditionModifiedPrivate {
- SearchConditionModifiedState _state;
- SearchConditionModifiedContext _context;
-};
-
-struct _SearchConditionRating {
- SearchCondition parent_instance;
- SearchConditionRatingPrivate * priv;
-};
-
-struct _SearchConditionRatingClass {
- SearchConditionClass parent_class;
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER = 0,
- SEARCH_CONDITION_RATING_CONTEXT_ONLY,
- SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER
-} SearchConditionRatingContext;
-
-struct _SearchConditionRatingPrivate {
- Rating _rating;
- SearchConditionRatingContext _context;
-};
-
-struct _SearchConditionDate {
- SearchCondition parent_instance;
- SearchConditionDatePrivate * priv;
-};
-
-struct _SearchConditionDateClass {
- SearchConditionClass parent_class;
-};
-
-typedef enum {
- SEARCH_CONDITION_DATE_CONTEXT_EXACT = 0,
- SEARCH_CONDITION_DATE_CONTEXT_AFTER,
- SEARCH_CONDITION_DATE_CONTEXT_BEFORE,
- SEARCH_CONDITION_DATE_CONTEXT_BETWEEN,
- SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET
-} SearchConditionDateContext;
-
-struct _SearchConditionDatePrivate {
- GDateTime* _date_one;
- GDateTime* _date_two;
- SearchConditionDateContext _context;
-};
-
-struct _DataObject {
- GObject parent_instance;
- DataObjectPrivate * priv;
-};
-
-struct _DataObjectClass {
- GObjectClass parent_class;
- void (*notify_altered) (DataObject* self, Alteration* alteration);
- void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
- void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
- void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
- gchar* (*get_name) (DataObject* self);
- gchar* (*to_string) (DataObject* self);
-};
-
-struct _DataSource {
- DataObject parent_instance;
- DataSourcePrivate * priv;
-};
-
-struct _DataSourceClass {
- DataObjectClass parent_class;
- void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
- void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
- void (*notify_unlinked) (DataSource* self);
- void (*notify_relinking) (DataSource* self, SourceCollection* collection);
- void (*notify_relinked) (DataSource* self);
- gchar* (*get_typename) (DataSource* self);
- gint64 (*get_instance_id) (DataSource* self);
- gchar* (*get_source_id) (DataSource* self);
- void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
- SourceSnapshot* (*save_snapshot) (DataSource* self);
- gboolean (*internal_delete_backing) (DataSource* self, GError** error);
- gboolean (*equals) (DataSource* self, DataSource* source);
- void (*destroy) (DataSource* self);
- void (*unlinked) (DataSource* self, SourceCollection* sources);
- void (*relinked) (DataSource* self, SourceCollection* sources);
- void (*destroyed) (DataSource* self);
-};
-
-struct _SavedSearch {
- DataSource parent_instance;
- SavedSearchPrivate * priv;
-};
-
-struct _SavedSearchClass {
- DataSourceClass parent_class;
-};
-
-struct _SavedSearchPrivate {
- SavedSearchRow* row;
-};
-
-struct _SavedSearchID {
- gint64 id;
-};
-
-struct _SavedSearchRow {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SavedSearchRowPrivate * priv;
- SavedSearchID search_id;
- gchar* name;
- SearchOperator operator;
- GeeList* conditions;
-};
-
-struct _SavedSearchRowClass {
- GTypeClass parent_class;
- void (*finalize) (SavedSearchRow *self);
-};
-
-typedef enum {
- DATABASE_ERROR_ERROR,
- DATABASE_ERROR_BACKING,
- DATABASE_ERROR_MEMORY,
- DATABASE_ERROR_ABORT,
- DATABASE_ERROR_LIMITS,
- DATABASE_ERROR_TYPESPEC
-} DatabaseError;
-#define DATABASE_ERROR database_error_quark ()
-struct _SavedSearchTable {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SavedSearchTablePrivate * priv;
-};
-
-struct _SavedSearchTableClass {
- GTypeClass parent_class;
- void (*finalize) (SavedSearchTable *self);
-};
-
-struct _SavedSearchTablePrivate {
- GeeHashMap* search_map;
-};
-
-struct _ParamSpecSavedSearchTable {
- GParamSpec parent_instance;
-};
-
-
-static gpointer search_condition_parent_class = NULL;
-static gpointer search_condition_text_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-static gpointer search_condition_media_type_parent_class = NULL;
-static gpointer search_condition_flagged_parent_class = NULL;
-static gpointer search_condition_modified_parent_class = NULL;
-static gpointer search_condition_rating_parent_class = NULL;
-static gpointer search_condition_date_parent_class = NULL;
-static gpointer saved_search_parent_class = NULL;
-static gpointer saved_search_table_parent_class = NULL;
-static SavedSearchTable* saved_search_table_instance;
-static SavedSearchTable* saved_search_table_instance = NULL;
-
-GType search_operator_get_type (void) G_GNUC_CONST;
-gchar* search_operator_to_string (SearchOperator self);
-SearchOperator search_operator_from_string (const gchar* str);
-gpointer search_condition_ref (gpointer instance);
-void search_condition_unref (gpointer instance);
-GParamSpec* param_spec_search_condition (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_search_condition (GValue* value,
- gpointer v_object);
-void value_take_search_condition (GValue* value,
- gpointer v_object);
-gpointer value_get_search_condition (const GValue* value);
-GType search_condition_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType search_condition_search_type_get_type (void) G_GNUC_CONST;
-#define SEARCH_CONDITION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION, SearchConditionPrivate))
-SearchConditionSearchType* search_condition_search_type_as_array (int* result_length1);
-void search_condition_search_type_sort_array (SearchConditionSearchType** array,
- int* array_length1);
-static gint __lambda13_ (void* a,
- void* b);
-gint utf8_cs_compare (void* a,
- void* b);
-gchar* search_condition_search_type_display_text (SearchConditionSearchType self);
-static gint ___lambda13____compar_fn_t (void* key1,
- void* key2);
-gchar* search_condition_search_type_to_string (SearchConditionSearchType self);
-SearchConditionSearchType search_condition_search_type_from_string (const gchar* str);
-gboolean search_condition_predicate (SearchCondition* self,
- MediaSource* source);
-static gboolean search_condition_real_predicate (SearchCondition* self,
- MediaSource* source);
-SearchCondition* search_condition_construct (GType object_type);
-SearchConditionSearchType search_condition_get_search_type (SearchCondition* self);
-void search_condition_set_search_type (SearchCondition* self,
- SearchConditionSearchType value);
-static void search_condition_finalize (SearchCondition * obj);
-GType search_condition_text_get_type (void) G_GNUC_CONST;
-GType search_condition_text_context_get_type (void) G_GNUC_CONST;
-#define SEARCH_CONDITION_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextPrivate))
-gchar* search_condition_text_context_to_string (SearchConditionTextContext self);
-SearchConditionTextContext search_condition_text_context_from_string (const gchar* str);
-SearchConditionText* search_condition_text_new (SearchConditionSearchType search_type,
- const gchar* text,
- SearchConditionTextContext context);
-SearchConditionText* search_condition_text_construct (GType object_type,
- SearchConditionSearchType search_type,
- const gchar* text,
- SearchConditionTextContext context);
-gchar* string_remove_diacritics (const gchar* istring);
-static void search_condition_text_set_text (SearchConditionText* self,
- const gchar* value);
-static void search_condition_text_set_context (SearchConditionText* self,
- SearchConditionTextContext value);
-static gboolean search_condition_text_string_match (SearchConditionText* self,
- const gchar* needle,
- const gchar* haystack);
-SearchConditionTextContext search_condition_text_get_context (SearchConditionText* self);
-gboolean is_string_empty (const gchar* s);
-static gboolean search_condition_text_real_predicate (SearchCondition* base,
- MediaSource* source);
-gchar* media_source_get_title (MediaSource* self);
-const gchar* search_condition_text_get_text (SearchConditionText* self);
-GType tag_get_type (void) G_GNUC_CONST;
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self,
- MediaSource* source);
-gchar* tag_get_searchable_name (Tag* self);
-GType event_source_get_type (void) G_GNUC_CONST;
-GType event_get_type (void) G_GNUC_CONST;
-Event* media_source_get_event (MediaSource* self);
-gchar* data_object_get_name (DataObject* self);
-gchar* media_source_get_comment (MediaSource* self);
-gchar* media_source_get_basename (MediaSource* self);
-static void search_condition_text_finalize (SearchCondition * obj);
-GType search_condition_media_type_get_type (void) G_GNUC_CONST;
-GType search_condition_media_type_media_type_get_type (void) G_GNUC_CONST;
-GType search_condition_media_type_context_get_type (void) G_GNUC_CONST;
-#define SEARCH_CONDITION_MEDIA_TYPE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypePrivate))
-gchar* search_condition_media_type_context_to_string (SearchConditionMediaTypeContext self);
-SearchConditionMediaTypeContext search_condition_media_type_context_from_string (const gchar* str);
-gchar* search_condition_media_type_media_type_to_string (SearchConditionMediaTypeMediaType self);
-SearchConditionMediaTypeMediaType search_condition_media_type_media_type_from_string (const gchar* str);
-SearchConditionMediaType* search_condition_media_type_new (SearchConditionSearchType search_type,
- SearchConditionMediaTypeContext context,
- SearchConditionMediaTypeMediaType media_type);
-SearchConditionMediaType* search_condition_media_type_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionMediaTypeContext context,
- SearchConditionMediaTypeMediaType media_type);
-static void search_condition_media_type_set_context (SearchConditionMediaType* self,
- SearchConditionMediaTypeContext value);
-static void search_condition_media_type_set_media_type (SearchConditionMediaType* self,
- SearchConditionMediaTypeMediaType value);
-static gboolean search_condition_media_type_real_predicate (SearchCondition* base,
- MediaSource* source);
-SearchConditionMediaTypeMediaType search_condition_media_type_get_media_type (SearchConditionMediaType* self);
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchConditionMediaType* self);
-GType photo_file_format_get_type (void) G_GNUC_CONST;
-PhotoFileFormat photo_get_master_file_format (Photo* self);
-GType video_source_get_type (void) G_GNUC_CONST;
-static void search_condition_media_type_finalize (SearchCondition * obj);
-GType search_condition_flagged_get_type (void) G_GNUC_CONST;
-GType search_condition_flagged_state_get_type (void) G_GNUC_CONST;
-#define SEARCH_CONDITION_FLAGGED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedPrivate))
-gchar* search_condition_flagged_state_to_string (SearchConditionFlaggedState self);
-SearchConditionFlaggedState search_condition_flagged_state_from_string (const gchar* str);
-SearchConditionFlagged* search_condition_flagged_new (SearchConditionSearchType search_type,
- SearchConditionFlaggedState state);
-SearchConditionFlagged* search_condition_flagged_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionFlaggedState state);
-static void search_condition_flagged_set_state (SearchConditionFlagged* self,
- SearchConditionFlaggedState value);
-static gboolean search_condition_flagged_real_predicate (SearchCondition* base,
- MediaSource* source);
-SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionFlagged* self);
-GType flaggable_get_type (void) G_GNUC_CONST;
-gboolean flaggable_is_flagged (Flaggable* self);
-static void search_condition_flagged_finalize (SearchCondition * obj);
-GType search_condition_modified_get_type (void) G_GNUC_CONST;
-GType search_condition_modified_state_get_type (void) G_GNUC_CONST;
-GType search_condition_modified_context_get_type (void) G_GNUC_CONST;
-#define SEARCH_CONDITION_MODIFIED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedPrivate))
-gchar* search_condition_modified_context_to_string (SearchConditionModifiedContext self);
-SearchConditionModifiedContext search_condition_modified_context_from_string (const gchar* str);
-gchar* search_condition_modified_state_to_string (SearchConditionModifiedState self);
-SearchConditionModifiedState search_condition_modified_state_from_string (const gchar* str);
-SearchConditionModified* search_condition_modified_new (SearchConditionSearchType search_type,
- SearchConditionModifiedContext context,
- SearchConditionModifiedState state);
-SearchConditionModified* search_condition_modified_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionModifiedContext context,
- SearchConditionModifiedState state);
-static void search_condition_modified_set_context (SearchConditionModified* self,
- SearchConditionModifiedContext value);
-static void search_condition_modified_set_state (SearchConditionModified* self,
- SearchConditionModifiedState value);
-static gboolean search_condition_modified_real_predicate (SearchCondition* base,
- MediaSource* source);
-SearchConditionModifiedState search_condition_modified_get_state (SearchConditionModified* self);
-gboolean photo_has_transformations (Photo* self);
-gboolean photo_has_editable (Photo* self);
-SearchConditionModifiedContext search_condition_modified_get_context (SearchConditionModified* self);
-static void search_condition_modified_finalize (SearchCondition * obj);
-GType search_condition_rating_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType search_condition_rating_context_get_type (void) G_GNUC_CONST;
-#define SEARCH_CONDITION_RATING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingPrivate))
-gchar* search_condition_rating_context_to_string (SearchConditionRatingContext self);
-SearchConditionRatingContext search_condition_rating_context_from_string (const gchar* str);
-SearchConditionRating* search_condition_rating_new (SearchConditionSearchType search_type,
- Rating rating,
- SearchConditionRatingContext context);
-SearchConditionRating* search_condition_rating_construct (GType object_type,
- SearchConditionSearchType search_type,
- Rating rating,
- SearchConditionRatingContext context);
-static void search_condition_rating_set_rating (SearchConditionRating* self,
- Rating value);
-static void search_condition_rating_set_context (SearchConditionRating* self,
- SearchConditionRatingContext value);
-static gboolean search_condition_rating_real_predicate (SearchCondition* base,
- MediaSource* source);
-Rating media_source_get_rating (MediaSource* self);
-SearchConditionRatingContext search_condition_rating_get_context (SearchConditionRating* self);
-Rating search_condition_rating_get_rating (SearchConditionRating* self);
-static void search_condition_rating_finalize (SearchCondition * obj);
-GType search_condition_date_get_type (void) G_GNUC_CONST;
-GType search_condition_date_context_get_type (void) G_GNUC_CONST;
-#define SEARCH_CONDITION_DATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_DATE, SearchConditionDatePrivate))
-gchar* search_condition_date_context_to_string (SearchConditionDateContext self);
-SearchConditionDateContext search_condition_date_context_from_string (const gchar* str);
-SearchConditionDate* search_condition_date_new (SearchConditionSearchType search_type,
- SearchConditionDateContext context,
- GDateTime* date_one,
- GDateTime* date_two);
-SearchConditionDate* search_condition_date_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionDateContext context,
- GDateTime* date_one,
- GDateTime* date_two);
-static void search_condition_date_set_context (SearchConditionDate* self,
- SearchConditionDateContext value);
-static void search_condition_date_set_date_one (SearchConditionDate* self,
- GDateTime* value);
-static void search_condition_date_set_date_two (SearchConditionDate* self,
- GDateTime* value);
-static gboolean search_condition_date_real_predicate (SearchCondition* base,
- MediaSource* source);
-time_t media_source_get_exposure_time (MediaSource* self);
-SearchConditionDateContext search_condition_date_get_context (SearchConditionDate* self);
-GDateTime* search_condition_date_get_date_one (SearchConditionDate* self);
-GDateTime* search_condition_date_get_date_two (SearchConditionDate* self);
-static void search_condition_date_finalize (SearchCondition * obj);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-gpointer source_holding_tank_ref (gpointer instance);
-void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_holding_tank (GValue* value,
- gpointer v_object);
-void value_take_source_holding_tank (GValue* value,
- gpointer v_object);
-gpointer value_get_source_holding_tank (const GValue* value);
-GType source_holding_tank_get_type (void) G_GNUC_CONST;
-gpointer source_snapshot_ref (gpointer instance);
-void source_snapshot_unref (gpointer instance);
-GParamSpec* param_spec_source_snapshot (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_source_snapshot (GValue* value,
- gpointer v_object);
-void value_take_source_snapshot (GValue* value,
- gpointer v_object);
-gpointer value_get_source_snapshot (const GValue* value);
-GType source_snapshot_get_type (void) G_GNUC_CONST;
-GType saved_search_get_type (void) G_GNUC_CONST;
-gpointer saved_search_row_ref (gpointer instance);
-void saved_search_row_unref (gpointer instance);
-GParamSpec* param_spec_saved_search_row (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_saved_search_row (GValue* value,
- gpointer v_object);
-void value_take_saved_search_row (GValue* value,
- gpointer v_object);
-gpointer value_get_saved_search_row (const GValue* value);
-GType saved_search_row_get_type (void) G_GNUC_CONST;
-#define SAVED_SEARCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH, SavedSearchPrivate))
-#define SAVED_SEARCH_TYPENAME "saved_search"
-SavedSearch* saved_search_new (SavedSearchRow* row,
- gint64 object_id);
-SavedSearch* saved_search_construct (GType object_type,
- SavedSearchRow* row,
- gint64 object_id);
-DataSource* data_source_construct (GType object_type,
- gint64 object_id);
-static gchar* saved_search_real_get_name (DataObject* base);
-GType saved_search_id_get_type (void) G_GNUC_CONST;
-SavedSearchID* saved_search_id_dup (const SavedSearchID* self);
-void saved_search_id_free (SavedSearchID* self);
-static gchar* saved_search_real_to_string (DataObject* base);
-static gchar* saved_search_real_get_typename (DataSource* base);
-void saved_search_get_saved_search_id (SavedSearch* self,
- SavedSearchID* result);
-static gint64 saved_search_real_get_instance_id (DataSource* base);
-gint saved_search_compare_names (void* a,
- void* b);
-gint string_collated_compare (void* a,
- void* b);
-gboolean saved_search_predicate (SavedSearch* self,
- MediaSource* source);
-void saved_search_reconstitute (SavedSearch* self);
-gpointer database_table_ref (gpointer instance);
-void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_database_table (GValue* value,
- gpointer v_object);
-void value_take_database_table (GValue* value,
- gpointer v_object);
-gpointer value_get_database_table (const GValue* value);
-GType database_table_get_type (void) G_GNUC_CONST;
-GType saved_search_db_table_get_type (void) G_GNUC_CONST;
-SavedSearchDBTable* saved_search_db_table_get_instance (void);
-GQuark database_error_quark (void);
-void saved_search_db_table_create_from_row (SavedSearchDBTable* self,
- SavedSearchRow* row,
- SavedSearchID* result,
- GError** error);
-void app_window_database_error (GError* err);
-gpointer saved_search_table_ref (gpointer instance);
-void saved_search_table_unref (gpointer instance);
-GParamSpec* param_spec_saved_search_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_saved_search_table (GValue* value,
- gpointer v_object);
-void value_take_saved_search_table (GValue* value,
- gpointer v_object);
-gpointer value_get_saved_search_table (const GValue* value);
-GType saved_search_table_get_type (void) G_GNUC_CONST;
-SavedSearchTable* saved_search_table_get_instance (void);
-void saved_search_table_add_to_map (SavedSearchTable* self,
- SavedSearch* search);
-gchar* data_object_to_string (DataObject* self);
-gboolean saved_search_rename (SavedSearch* self,
- const gchar* new_name);
-gboolean saved_search_table_exists (SavedSearchTable* self,
- const gchar* search_name);
-void saved_search_db_table_rename (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- const gchar* new_name,
- GError** error);
-void saved_search_table_remove_from_map (SavedSearchTable* self,
- SavedSearch* search);
-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;
-LibraryWindow* library_window_get_app (void);
-void library_window_switch_to_saved_search (LibraryWindow* self,
- SavedSearch* search);
-GeeList* saved_search_get_conditions (SavedSearch* self);
-SearchOperator saved_search_get_operator (SavedSearch* self);
-static void saved_search_finalize (GObject * obj);
-#define SAVED_SEARCH_TABLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_TABLE, SavedSearchTablePrivate))
-static SavedSearchTable* saved_search_table_new (void);
-static SavedSearchTable* saved_search_table_construct (GType object_type);
-GeeList* saved_search_db_table_get_all_rows (SavedSearchDBTable* self,
- GError** error);
-#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
-GeeCollection* saved_search_table_get_all (SavedSearchTable* self);
-SavedSearch* saved_search_table_create (SavedSearchTable* self,
- const gchar* name,
- SearchOperator operator,
- GeeArrayList* conditions);
-SavedSearchRow* saved_search_db_table_add (SavedSearchDBTable* self,
- const gchar* name,
- SearchOperator operator,
- GeeArrayList* conditions,
- GError** error);
-void saved_search_table_remove (SavedSearchTable* self,
- SavedSearch* search);
-void saved_search_db_table_remove (SavedSearchDBTable* self,
- SavedSearchID* search_id,
- GError** error);
-GeeIterable* saved_search_table_get_saved_searches (SavedSearchTable* self);
-gint saved_search_table_get_count (SavedSearchTable* self);
-gchar* saved_search_table_generate_unique_name (SavedSearchTable* self);
-#define RESOURCES_DEFAULT_SAVED_SEARCH_NAME _ ("Saved Search")
-static void saved_search_table_finalize (SavedSearchTable * obj);
-
-
-gchar*
-search_operator_to_string (SearchOperator self)
-{
- gchar* result = NULL;
-#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_OPERATOR_ANY:
-#line 1128 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("ANY");
-#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1137 "SearchBoolean.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_OPERATOR_ALL:
-#line 1141 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("ALL");
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1150 "SearchBoolean.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_OPERATOR_NONE:
-#line 1154 "SearchBoolean.c"
- {
- gchar* _tmp2_;
-#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup ("NONE");
-#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1163 "SearchBoolean.c"
- }
- default:
- {
-#line 25 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:25: unrecognized search operator enumeration value");
-#line 1169 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchOperator
-search_operator_from_string (const gchar* str)
-{
- SearchOperator result = 0;
-#line 29 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 30 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "ANY") == 0) {
-#line 31 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_OPERATOR_ANY;
-#line 31 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1187 "SearchBoolean.c"
- } else {
-#line 33 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "ALL") == 0) {
-#line 34 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_OPERATOR_ALL;
-#line 34 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1195 "SearchBoolean.c"
- } else {
-#line 36 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "NONE") == 0) {
-#line 37 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_OPERATOR_NONE;
-#line 37 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1203 "SearchBoolean.c"
- } else {
-#line 40 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:40: unrecognized search operator name: %s", str);
-#line 1207 "SearchBoolean.c"
- }
- }
- }
-}
-
-
-GType
-search_operator_get_type (void)
-{
- static volatile gsize search_operator_type_id__volatile = 0;
- if (g_once_init_enter (&search_operator_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_OPERATOR_ANY, "SEARCH_OPERATOR_ANY", "any"}, {SEARCH_OPERATOR_ALL, "SEARCH_OPERATOR_ALL", "all"}, {SEARCH_OPERATOR_NONE, "SEARCH_OPERATOR_NONE", "none"}, {0, NULL, NULL}};
- GType search_operator_type_id;
- search_operator_type_id = g_enum_register_static ("SearchOperator", values);
- g_once_init_leave (&search_operator_type_id__volatile, search_operator_type_id);
- }
- return search_operator_type_id__volatile;
-}
-
-
-SearchConditionSearchType*
-search_condition_search_type_as_array (int* result_length1)
-{
- SearchConditionSearchType* result = NULL;
- SearchConditionSearchType* _tmp0_;
- SearchConditionSearchType* _tmp1_;
- gint _tmp1__length1;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_new0 (SearchConditionSearchType, 11);
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[0] = SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[1] = SEARCH_CONDITION_SEARCH_TYPE_TITLE;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[2] = SEARCH_CONDITION_SEARCH_TYPE_TAG;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[3] = SEARCH_CONDITION_SEARCH_TYPE_COMMENT;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[4] = SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[5] = SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[6] = SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[7] = SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[8] = SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[9] = SEARCH_CONDITION_SEARCH_TYPE_RATING;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_[10] = SEARCH_CONDITION_SEARCH_TYPE_DATE;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1__length1 = 11;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (result_length1) {
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- *result_length1 = _tmp1__length1;
-#line 1267 "SearchBoolean.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1273 "SearchBoolean.c"
-}
-
-
-static gint
-__lambda13_ (void* a,
- void* b)
-{
- gint result = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = search_condition_search_type_display_text (*((SearchConditionSearchType*) a));
-#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = search_condition_search_type_display_text (*((SearchConditionSearchType*) b));
-#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = utf8_cs_compare (_tmp0_, _tmp1_);
-#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1292 "SearchBoolean.c"
-}
-
-
-static gint
-___lambda13____compar_fn_t (void* key1,
- void* key2)
-{
- gint result;
- result = __lambda13_ (key1, key2);
-#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1304 "SearchBoolean.c"
-}
-
-
-void
-search_condition_search_type_sort_array (SearchConditionSearchType** array,
- int* array_length1)
-{
-#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- qsort (*array, (gsize) (*array_length1), (gsize) sizeof (SearchConditionSearchType), ___lambda13____compar_fn_t);
-#line 1314 "SearchBoolean.c"
-}
-
-
-gchar*
-search_condition_search_type_to_string (SearchConditionSearchType self)
-{
- gchar* result = NULL;
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT:
-#line 1326 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("ANY_TEXT");
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1335 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_TITLE:
-#line 1339 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("TITLE");
-#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1348 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_TAG:
-#line 1352 "SearchBoolean.c"
- {
- gchar* _tmp2_;
-#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup ("TAG");
-#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1361 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_COMMENT:
-#line 1365 "SearchBoolean.c"
- {
- gchar* _tmp3_;
-#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = g_strdup ("COMMENT");
-#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
-#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1374 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME:
-#line 1378 "SearchBoolean.c"
- {
- gchar* _tmp4_;
-#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = g_strdup ("EVENT_NAME");
-#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp4_;
-#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1387 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME:
-#line 1391 "SearchBoolean.c"
- {
- gchar* _tmp5_;
-#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = g_strdup ("FILE_NAME");
-#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp5_;
-#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1400 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE:
-#line 1404 "SearchBoolean.c"
- {
- gchar* _tmp6_;
-#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = g_strdup ("MEDIA_TYPE");
-#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp6_;
-#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1413 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE:
-#line 1417 "SearchBoolean.c"
- {
- gchar* _tmp7_;
-#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = g_strdup ("FLAG_STATE");
-#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp7_;
-#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1426 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE:
-#line 1430 "SearchBoolean.c"
- {
- gchar* _tmp8_;
-#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = g_strdup ("MODIFIED_STATE");
-#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp8_;
-#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1439 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_RATING:
-#line 1443 "SearchBoolean.c"
- {
- gchar* _tmp9_;
-#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = g_strdup ("RATING");
-#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp9_;
-#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1452 "SearchBoolean.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_DATE:
-#line 1456 "SearchBoolean.c"
- {
- gchar* _tmp10_;
-#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = g_strdup ("DATE");
-#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp10_;
-#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1465 "SearchBoolean.c"
- }
- default:
- {
-#line 112 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:112: unrecognized search type enumeration value");
-#line 1471 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionSearchType
-search_condition_search_type_from_string (const gchar* str)
-{
- SearchConditionSearchType result = 0;
-#line 116 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 117 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "ANY_TEXT") == 0) {
-#line 118 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT;
-#line 118 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1489 "SearchBoolean.c"
- } else {
-#line 120 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "TITLE") == 0) {
-#line 121 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_TITLE;
-#line 121 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1497 "SearchBoolean.c"
- } else {
-#line 123 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "TAG") == 0) {
-#line 124 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_TAG;
-#line 124 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1505 "SearchBoolean.c"
- } else {
-#line 126 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "COMMENT") == 0) {
-#line 127 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_COMMENT;
-#line 127 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1513 "SearchBoolean.c"
- } else {
-#line 129 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "EVENT_NAME") == 0) {
-#line 130 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME;
-#line 130 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1521 "SearchBoolean.c"
- } else {
-#line 132 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "FILE_NAME") == 0) {
-#line 133 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME;
-#line 133 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1529 "SearchBoolean.c"
- } else {
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "MEDIA_TYPE") == 0) {
-#line 136 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE;
-#line 136 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1537 "SearchBoolean.c"
- } else {
-#line 138 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "FLAG_STATE") == 0) {
-#line 139 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE;
-#line 139 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1545 "SearchBoolean.c"
- } else {
-#line 141 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "MODIFIED_STATE") == 0) {
-#line 142 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE;
-#line 142 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1553 "SearchBoolean.c"
- } else {
-#line 144 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "RATING") == 0) {
-#line 145 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_RATING;
-#line 145 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1561 "SearchBoolean.c"
- } else {
-#line 147 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "DATE") == 0) {
-#line 148 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_SEARCH_TYPE_DATE;
-#line 148 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1569 "SearchBoolean.c"
- } else {
-#line 151 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:151: unrecognized search type name: %s", str);
-#line 1573 "SearchBoolean.c"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}
-
-
-gchar*
-search_condition_search_type_display_text (SearchConditionSearchType self)
-{
- gchar* result = NULL;
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT:
-#line 1596 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup (_ ("Any text"));
-#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1605 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_TITLE:
-#line 1609 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup (_ ("Title"));
-#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1618 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_TAG:
-#line 1622 "SearchBoolean.c"
- {
- gchar* _tmp2_;
-#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup (_ ("Tag"));
-#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1631 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_COMMENT:
-#line 1635 "SearchBoolean.c"
- {
- gchar* _tmp3_;
-#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = g_strdup (_ ("Comment"));
-#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
-#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1644 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME:
-#line 1648 "SearchBoolean.c"
- {
- gchar* _tmp4_;
-#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = g_strdup (_ ("Event name"));
-#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp4_;
-#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1657 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME:
-#line 1661 "SearchBoolean.c"
- {
- gchar* _tmp5_;
-#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = g_strdup (_ ("File name"));
-#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp5_;
-#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1670 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE:
-#line 1674 "SearchBoolean.c"
- {
- gchar* _tmp6_;
-#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = g_strdup (_ ("Media type"));
-#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp6_;
-#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1683 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE:
-#line 1687 "SearchBoolean.c"
- {
- gchar* _tmp7_;
-#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = g_strdup (_ ("Flag state"));
-#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp7_;
-#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1696 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE:
-#line 1700 "SearchBoolean.c"
- {
- gchar* _tmp8_;
-#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = g_strdup (_ ("Photo state"));
-#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp8_;
-#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1709 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_RATING:
-#line 1713 "SearchBoolean.c"
- {
- gchar* _tmp9_;
-#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = g_strdup (_ ("Rating"));
-#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp9_;
-#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1722 "SearchBoolean.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_SEARCH_TYPE_DATE:
-#line 1726 "SearchBoolean.c"
- {
- gchar* _tmp10_;
-#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = g_strdup (_ ("Date"));
-#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp10_;
-#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1735 "SearchBoolean.c"
- }
- default:
- {
-#line 190 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:190: unrecognized search type enumeration value");
-#line 1741 "SearchBoolean.c"
- }
- }
-}
-
-
-GType
-search_condition_search_type_get_type (void)
-{
- static volatile gsize search_condition_search_type_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_search_type_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT, "SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT", "any-text"}, {SEARCH_CONDITION_SEARCH_TYPE_TITLE, "SEARCH_CONDITION_SEARCH_TYPE_TITLE", "title"}, {SEARCH_CONDITION_SEARCH_TYPE_TAG, "SEARCH_CONDITION_SEARCH_TYPE_TAG", "tag"}, {SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME, "SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME", "event-name"}, {SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME, "SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME", "file-name"}, {SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE, "SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE", "media-type"}, {SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE, "SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE", "flag-state"}, {SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE, "SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE", "modified-state"}, {SEARCH_CONDITION_SEARCH_TYPE_RATING, "SEARCH_CONDITION_SEARCH_TYPE_RATING", "rating"}, {SEARCH_CONDITION_SEARCH_TYPE_COMMENT, "SEARCH_CONDITION_SEARCH_TYPE_COMMENT", "comment"}, {SEARCH_CONDITION_SEARCH_TYPE_DATE, "SEARCH_CONDITION_SEARCH_TYPE_DATE", "date"}, {0, NULL, NULL}};
- GType search_condition_search_type_type_id;
- search_condition_search_type_type_id = g_enum_register_static ("SearchConditionSearchType", values);
- g_once_init_leave (&search_condition_search_type_type_id__volatile, search_condition_search_type_type_id);
- }
- return search_condition_search_type_type_id__volatile;
-}
-
-
-static gboolean
-search_condition_real_predicate (SearchCondition* self,
- MediaSource* source)
-{
- gboolean _tmp0_ = FALSE;
-#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_critical ("Type `%s' does not implement abstract method `search_condition_predicate'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return _tmp0_;
-#line 1770 "SearchBoolean.c"
-}
-
-
-gboolean
-search_condition_predicate (SearchCondition* self,
- MediaSource* source)
-{
-#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION (self), FALSE);
-#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return SEARCH_CONDITION_GET_CLASS (self)->predicate (self, source);
-#line 1782 "SearchBoolean.c"
-}
-
-
-SearchCondition*
-search_condition_construct (GType object_type)
-{
- SearchCondition* self = NULL;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SearchCondition*) g_type_create_instance (object_type);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 1794 "SearchBoolean.c"
-}
-
-
-SearchConditionSearchType
-search_condition_get_search_type (SearchCondition* self)
-{
- SearchConditionSearchType result;
- SearchConditionSearchType _tmp0_;
-#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION (self), 0);
-#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_search_type;
-#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 1811 "SearchBoolean.c"
-}
-
-
-void
-search_condition_set_search_type (SearchCondition* self,
- SearchConditionSearchType value)
-{
-#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION (self));
-#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_search_type = value;
-#line 1823 "SearchBoolean.c"
-}
-
-
-static void
-value_search_condition_init (GValue* value)
-{
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = NULL;
-#line 1832 "SearchBoolean.c"
-}
-
-
-static void
-value_search_condition_free_value (GValue* value)
-{
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (value->data[0].v_pointer) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_unref (value->data[0].v_pointer);
-#line 1843 "SearchBoolean.c"
- }
-}
-
-
-static void
-value_search_condition_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (src_value->data[0].v_pointer) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- dest_value->data[0].v_pointer = search_condition_ref (src_value->data[0].v_pointer);
-#line 1856 "SearchBoolean.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1860 "SearchBoolean.c"
- }
-}
-
-
-static gpointer
-value_search_condition_peek_pointer (const GValue* value)
-{
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return value->data[0].v_pointer;
-#line 1870 "SearchBoolean.c"
-}
-
-
-static gchar*
-value_search_condition_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (collect_values[0].v_pointer) {
-#line 1882 "SearchBoolean.c"
- SearchCondition * object;
- object = collect_values[0].v_pointer;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1889 "SearchBoolean.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.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 1893 "SearchBoolean.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = search_condition_ref (object);
-#line 1897 "SearchBoolean.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = NULL;
-#line 1901 "SearchBoolean.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return NULL;
-#line 1905 "SearchBoolean.c"
-}
-
-
-static gchar*
-value_search_condition_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SearchCondition ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!object_p) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1921 "SearchBoolean.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!value->data[0].v_pointer) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- *object_p = NULL;
-#line 1927 "SearchBoolean.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- *object_p = value->data[0].v_pointer;
-#line 1931 "SearchBoolean.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- *object_p = search_condition_ref (value->data[0].v_pointer);
-#line 1935 "SearchBoolean.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return NULL;
-#line 1939 "SearchBoolean.c"
-}
-
-
-GParamSpec*
-param_spec_search_condition (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecSearchCondition* spec;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SEARCH_CONDITION), NULL);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return G_PARAM_SPEC (spec);
-#line 1959 "SearchBoolean.c"
-}
-
-
-gpointer
-value_get_search_condition (const GValue* value)
-{
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION), NULL);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return value->data[0].v_pointer;
-#line 1970 "SearchBoolean.c"
-}
-
-
-void
-value_set_search_condition (GValue* value,
- gpointer v_object)
-{
- SearchCondition * old;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION));
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- old = value->data[0].v_pointer;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (v_object) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SEARCH_CONDITION));
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = v_object;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_ref (value->data[0].v_pointer);
-#line 1993 "SearchBoolean.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = NULL;
-#line 1997 "SearchBoolean.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (old) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_unref (old);
-#line 2003 "SearchBoolean.c"
- }
-}
-
-
-void
-value_take_search_condition (GValue* value,
- gpointer v_object)
-{
- SearchCondition * old;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION));
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- old = value->data[0].v_pointer;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (v_object) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SEARCH_CONDITION));
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = v_object;
-#line 2025 "SearchBoolean.c"
- } else {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = NULL;
-#line 2029 "SearchBoolean.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (old) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_unref (old);
-#line 2035 "SearchBoolean.c"
- }
-}
-
-
-static void
-search_condition_class_init (SearchConditionClass * klass)
-{
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_parent_class = g_type_class_peek_parent (klass);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->finalize = search_condition_finalize;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SearchConditionPrivate));
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_real_predicate;
-#line 2051 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_instance_init (SearchCondition * self)
-{
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SEARCH_CONDITION_GET_PRIVATE (self);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->ref_count = 1;
-#line 2062 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_finalize (SearchCondition * obj)
-{
- SearchCondition * self;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION, SearchCondition);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_signal_handlers_destroy (self);
-#line 2074 "SearchBoolean.c"
-}
-
-
-GType
-search_condition_get_type (void)
-{
- static volatile gsize search_condition_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_search_condition_init, value_search_condition_free_value, value_search_condition_copy_value, value_search_condition_peek_pointer, "p", value_search_condition_collect_value, "p", value_search_condition_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SearchConditionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchCondition), 0, (GInstanceInitFunc) search_condition_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType search_condition_type_id;
- search_condition_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SearchCondition", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&search_condition_type_id__volatile, search_condition_type_id);
- }
- return search_condition_type_id__volatile;
-}
-
-
-gpointer
-search_condition_ref (gpointer instance)
-{
- SearchCondition * self;
- self = instance;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return instance;
-#line 2103 "SearchBoolean.c"
-}
-
-
-void
-search_condition_unref (gpointer instance)
-{
- SearchCondition * self;
- self = instance;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- SEARCH_CONDITION_GET_CLASS (self)->finalize (self);
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2118 "SearchBoolean.c"
- }
-}
-
-
-gchar*
-search_condition_text_context_to_string (SearchConditionTextContext self)
-{
- gchar* result = NULL;
-#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS:
-#line 2131 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("CONTAINS");
-#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2140 "SearchBoolean.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY:
-#line 2144 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("IS_EXACTLY");
-#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2153 "SearchBoolean.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH:
-#line 2157 "SearchBoolean.c"
- {
- gchar* _tmp2_;
-#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup ("STARTS_WITH");
-#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2166 "SearchBoolean.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH:
-#line 2170 "SearchBoolean.c"
- {
- gchar* _tmp3_;
-#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = g_strdup ("ENDS_WITH");
-#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
-#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2179 "SearchBoolean.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN:
-#line 2183 "SearchBoolean.c"
- {
- gchar* _tmp4_;
-#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = g_strdup ("DOES_NOT_CONTAIN");
-#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp4_;
-#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2192 "SearchBoolean.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET:
-#line 2196 "SearchBoolean.c"
- {
- gchar* _tmp5_;
-#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = g_strdup ("IS_NOT_SET");
-#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp5_;
-#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2205 "SearchBoolean.c"
- }
-#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_IS_SET:
-#line 2209 "SearchBoolean.c"
- {
- gchar* _tmp6_;
-#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = g_strdup ("IS_SET");
-#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp6_;
-#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2218 "SearchBoolean.c"
- }
- default:
- {
-#line 236 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:236: unrecognized text search context enumeration v" \
-"alue");
-#line 2224 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionTextContext
-search_condition_text_context_from_string (const gchar* str)
-{
- SearchConditionTextContext result = 0;
-#line 240 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 241 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "CONTAINS") == 0) {
-#line 242 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS;
-#line 242 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2242 "SearchBoolean.c"
- } else {
-#line 244 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "IS_EXACTLY") == 0) {
-#line 245 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY;
-#line 245 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2250 "SearchBoolean.c"
- } else {
-#line 247 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "STARTS_WITH") == 0) {
-#line 248 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH;
-#line 248 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2258 "SearchBoolean.c"
- } else {
-#line 250 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "ENDS_WITH") == 0) {
-#line 251 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH;
-#line 251 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2266 "SearchBoolean.c"
- } else {
-#line 253 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "DOES_NOT_CONTAIN") == 0) {
-#line 254 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN;
-#line 254 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2274 "SearchBoolean.c"
- } else {
-#line 256 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "IS_NOT_SET") == 0) {
-#line 257 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET;
-#line 257 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2282 "SearchBoolean.c"
- } else {
-#line 259 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "IS_SET") == 0) {
-#line 260 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_TEXT_CONTEXT_IS_SET;
-#line 260 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2290 "SearchBoolean.c"
- } else {
-#line 263 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:263: unrecognized text search context name: %s", str);
-#line 2294 "SearchBoolean.c"
- }
- }
- }
- }
- }
- }
- }
-}
-
-
-GType
-search_condition_text_context_get_type (void)
-{
- static volatile gsize search_condition_text_context_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_text_context_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS, "SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS", "contains"}, {SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY, "SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY", "is-exactly"}, {SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH, "SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH", "starts-with"}, {SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH, "SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH", "ends-with"}, {SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN, "SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN", "does-not-contain"}, {SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET, "SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET", "is-not-set"}, {SEARCH_CONDITION_TEXT_CONTEXT_IS_SET, "SEARCH_CONDITION_TEXT_CONTEXT_IS_SET", "is-set"}, {0, NULL, NULL}};
- GType search_condition_text_context_type_id;
- search_condition_text_context_type_id = g_enum_register_static ("SearchConditionTextContext", values);
- g_once_init_leave (&search_condition_text_context_type_id__volatile, search_condition_text_context_type_id);
- }
- return search_condition_text_context_type_id__volatile;
-}
-
-
-SearchConditionText*
-search_condition_text_construct (GType object_type,
- SearchConditionSearchType search_type,
- const gchar* text,
- SearchConditionTextContext context)
-{
- SearchConditionText* self = NULL;
- gchar* _tmp0_ = NULL;
-#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SearchConditionText*) search_condition_construct (object_type);
-#line 274 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type);
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (text != NULL) {
-#line 2333 "SearchBoolean.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_utf8_strdown (text, (gssize) -1);
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = string_remove_diacritics (_tmp2_);
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp0_);
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _tmp3_;
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp2_);
-#line 2349 "SearchBoolean.c"
- } else {
- gchar* _tmp4_;
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = g_strdup ("");
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp0_);
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _tmp4_;
-#line 2358 "SearchBoolean.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_text_set_text (self, _tmp0_);
-#line 276 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_text_set_context (self, context);
-#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp0_);
-#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 2368 "SearchBoolean.c"
-}
-
-
-SearchConditionText*
-search_condition_text_new (SearchConditionSearchType search_type,
- const gchar* text,
- SearchConditionTextContext context)
-{
-#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return search_condition_text_construct (TYPE_SEARCH_CONDITION_TEXT, search_type, text, context);
-#line 2379 "SearchBoolean.c"
-}
-
-
-static gboolean
-string_contains (const gchar* self,
- const gchar* needle)
-{
- gboolean result = FALSE;
- gchar* _tmp0_;
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_ != NULL;
-#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2399 "SearchBoolean.c"
-}
-
-
-static gboolean
-search_condition_text_string_match (SearchConditionText* self,
- const gchar* needle,
- const gchar* haystack)
-{
- gboolean result = FALSE;
- SearchConditionTextContext _tmp0_;
-#line 280 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), FALSE);
-#line 280 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_context;
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (_tmp0_) {
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS:
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN:
-#line 2422 "SearchBoolean.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!is_string_empty (haystack)) {
-#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = string_contains (haystack, needle);
-#line 2429 "SearchBoolean.c"
- } else {
-#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = FALSE;
-#line 2433 "SearchBoolean.c"
- }
-#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2439 "SearchBoolean.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY:
-#line 2443 "SearchBoolean.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!is_string_empty (haystack)) {
-#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strcmp0 (haystack, needle) == 0;
-#line 2450 "SearchBoolean.c"
- } else {
-#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = FALSE;
-#line 2454 "SearchBoolean.c"
- }
-#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2460 "SearchBoolean.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH:
-#line 2464 "SearchBoolean.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!is_string_empty (haystack)) {
-#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = g_str_has_prefix (haystack, needle);
-#line 2471 "SearchBoolean.c"
- } else {
-#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = FALSE;
-#line 2475 "SearchBoolean.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
-#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2481 "SearchBoolean.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH:
-#line 2485 "SearchBoolean.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!is_string_empty (haystack)) {
-#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = g_str_has_suffix (haystack, needle);
-#line 2492 "SearchBoolean.c"
- } else {
-#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = FALSE;
-#line 2496 "SearchBoolean.c"
- }
-#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp4_;
-#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2502 "SearchBoolean.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET:
-#line 2506 "SearchBoolean.c"
- {
-#line 296 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = is_string_empty (haystack);
-#line 296 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2512 "SearchBoolean.c"
- }
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_TEXT_CONTEXT_IS_SET:
-#line 2516 "SearchBoolean.c"
- {
-#line 299 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = !is_string_empty (haystack);
-#line 299 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2522 "SearchBoolean.c"
- }
- default:
-#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- break;
-#line 2527 "SearchBoolean.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = FALSE;
-#line 302 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 2533 "SearchBoolean.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self ? g_object_ref (self) : NULL;
-#line 2542 "SearchBoolean.c"
-}
-
-
-static gboolean
-search_condition_text_real_predicate (SearchCondition* base,
- MediaSource* source)
-{
- SearchConditionText * self;
- gboolean result = FALSE;
- gboolean ret = FALSE;
- gboolean _tmp0_ = FALSE;
- SearchConditionSearchType _tmp1_;
- SearchConditionSearchType _tmp2_;
- gboolean _tmp18_ = FALSE;
- SearchConditionSearchType _tmp19_;
- SearchConditionSearchType _tmp20_;
- gboolean _tmp46_ = FALSE;
- SearchConditionSearchType _tmp47_;
- SearchConditionSearchType _tmp48_;
- gboolean _tmp66_ = FALSE;
- SearchConditionSearchType _tmp67_;
- SearchConditionSearchType _tmp68_;
- gboolean _tmp80_ = FALSE;
- SearchConditionSearchType _tmp81_;
- SearchConditionSearchType _tmp82_;
- gboolean _tmp93_ = FALSE;
- SearchConditionTextContext _tmp94_;
-#line 306 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_TEXT, SearchConditionText);
-#line 306 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 307 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = FALSE;
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp2_) {
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = TRUE;
-#line 2584 "SearchBoolean.c"
- } else {
- SearchConditionSearchType _tmp3_;
- SearchConditionSearchType _tmp4_;
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = _tmp3_;
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = SEARCH_CONDITION_SEARCH_TYPE_TITLE == _tmp4_;
-#line 2594 "SearchBoolean.c"
- }
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp0_) {
-#line 2598 "SearchBoolean.c"
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gboolean _tmp8_;
- gchar* title = NULL;
- gchar* _tmp14_;
- gboolean _tmp15_;
- const gchar* _tmp16_;
- const gchar* _tmp17_;
-#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = media_source_get_title (source);
-#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = _tmp6_;
-#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = NULL != _tmp7_;
-#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp7_);
-#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp8_) {
-#line 2618 "SearchBoolean.c"
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = media_source_get_title (source);
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = _tmp9_;
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp11_ = g_utf8_strdown (_tmp10_, (gssize) -1);
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp12_ = _tmp11_;
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp13_ = string_remove_diacritics (_tmp12_);
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp5_);
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = _tmp13_;
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp12_);
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp10_);
-#line 2642 "SearchBoolean.c"
- } else {
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp5_);
-#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = NULL;
-#line 2648 "SearchBoolean.c"
- }
-#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp14_ = g_strdup (_tmp5_);
-#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- title = _tmp14_;
-#line 313 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp15_ = ret;
-#line 313 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp16_ = self->priv->_text;
-#line 313 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp17_ = title;
-#line 313 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp15_ | search_condition_text_string_match (self, _tmp16_, _tmp17_);
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (title);
-#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp5_);
-#line 2666 "SearchBoolean.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp19_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp20_ = _tmp19_;
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp20_) {
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp18_ = TRUE;
-#line 2676 "SearchBoolean.c"
- } else {
- SearchConditionSearchType _tmp21_;
- SearchConditionSearchType _tmp22_;
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp21_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp22_ = _tmp21_;
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp18_ = SEARCH_CONDITION_SEARCH_TYPE_TAG == _tmp22_;
-#line 2686 "SearchBoolean.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp18_) {
-#line 2690 "SearchBoolean.c"
- GeeList* tag_list = NULL;
- TagSourceCollection* _tmp23_;
- GeeList* _tmp24_;
- GeeList* _tmp25_;
-#line 318 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp23_ = tag_global;
-#line 318 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp24_ = tag_source_collection_fetch_for_source (_tmp23_, source);
-#line 318 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- tag_list = _tmp24_;
-#line 319 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp25_ = tag_list;
-#line 319 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (NULL != _tmp25_) {
-#line 2705 "SearchBoolean.c"
- gchar* itag = NULL;
- {
- GeeList* _tag_list = NULL;
- GeeList* _tmp26_;
- GeeList* _tmp27_;
- gint _tag_size = 0;
- GeeList* _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
- gint _tag_index = 0;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp26_ = tag_list;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp27_ = _g_object_ref0 (_tmp26_);
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tag_list = _tmp27_;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp28_ = _tag_list;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp29_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp30_ = _tmp29_;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tag_size = _tmp30_;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tag_index = -1;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- while (TRUE) {
-#line 2734 "SearchBoolean.c"
- gint _tmp31_;
- gint _tmp32_;
- gint _tmp33_;
- Tag* tag = NULL;
- GeeList* _tmp34_;
- gint _tmp35_;
- gpointer _tmp36_;
- Tag* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gboolean _tmp41_;
- const gchar* _tmp42_;
- const gchar* _tmp43_;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp31_ = _tag_index;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tag_index = _tmp31_ + 1;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp32_ = _tag_index;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp33_ = _tag_size;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!(_tmp32_ < _tmp33_)) {
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- break;
-#line 2761 "SearchBoolean.c"
- }
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp34_ = _tag_list;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp35_ = _tag_index;
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp36_ = gee_list_get (_tmp34_, _tmp35_);
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- tag = (Tag*) _tmp36_;
-#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp37_ = tag;
-#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp38_ = tag_get_searchable_name (_tmp37_);
-#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp39_ = _tmp38_;
-#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp40_ = g_utf8_strdown (_tmp39_, (gssize) -1);
-#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (itag);
-#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- itag = _tmp40_;
-#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp39_);
-#line 323 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp41_ = ret;
-#line 323 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp42_ = self->priv->_text;
-#line 323 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp43_ = itag;
-#line 323 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp41_ | search_condition_text_string_match (self, _tmp42_, _tmp43_);
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (tag);
-#line 2795 "SearchBoolean.c"
- }
-#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_tag_list);
-#line 2799 "SearchBoolean.c"
- }
-#line 319 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (itag);
-#line 2803 "SearchBoolean.c"
- } else {
- gboolean _tmp44_;
- const gchar* _tmp45_;
-#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp44_ = ret;
-#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp45_ = self->priv->_text;
-#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp44_ | search_condition_text_string_match (self, _tmp45_, NULL);
-#line 2813 "SearchBoolean.c"
- }
-#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (tag_list);
-#line 2817 "SearchBoolean.c"
- }
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp47_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp48_ = _tmp47_;
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp48_) {
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp46_ = TRUE;
-#line 2827 "SearchBoolean.c"
- } else {
- SearchConditionSearchType _tmp49_;
- SearchConditionSearchType _tmp50_;
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp49_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp50_ = _tmp49_;
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp46_ = SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME == _tmp50_;
-#line 2837 "SearchBoolean.c"
- }
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp46_) {
-#line 2841 "SearchBoolean.c"
- gchar* _tmp51_ = NULL;
- Event* _tmp52_;
- Event* _tmp53_;
- gboolean _tmp54_;
- gchar* event_name = NULL;
- gchar* _tmp62_;
- gboolean _tmp63_;
- const gchar* _tmp64_;
- const gchar* _tmp65_;
-#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp52_ = media_source_get_event (source);
-#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp53_ = _tmp52_;
-#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp54_ = NULL != _tmp53_;
-#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_tmp53_);
-#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp54_) {
-#line 2861 "SearchBoolean.c"
- Event* _tmp55_;
- Event* _tmp56_;
- gchar* _tmp57_;
- gchar* _tmp58_;
- gchar* _tmp59_;
- gchar* _tmp60_;
- gchar* _tmp61_;
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp55_ = media_source_get_event (source);
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp56_ = _tmp55_;
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp57_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_DATA_OBJECT, DataObject));
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp58_ = _tmp57_;
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp59_ = g_utf8_strdown (_tmp58_, (gssize) -1);
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp60_ = _tmp59_;
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp61_ = string_remove_diacritics (_tmp60_);
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp51_);
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp51_ = _tmp61_;
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp60_);
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp58_);
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_tmp56_);
-#line 2893 "SearchBoolean.c"
- } else {
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp51_);
-#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp51_ = NULL;
-#line 2899 "SearchBoolean.c"
- }
-#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp62_ = g_strdup (_tmp51_);
-#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- event_name = _tmp62_;
-#line 334 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp63_ = ret;
-#line 334 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp64_ = self->priv->_text;
-#line 334 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp65_ = event_name;
-#line 334 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp63_ | search_condition_text_string_match (self, _tmp64_, _tmp65_);
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (event_name);
-#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp51_);
-#line 2917 "SearchBoolean.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp67_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp68_ = _tmp67_;
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp68_) {
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp66_ = TRUE;
-#line 2927 "SearchBoolean.c"
- } else {
- SearchConditionSearchType _tmp69_;
- SearchConditionSearchType _tmp70_;
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp69_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp70_ = _tmp69_;
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp66_ = SEARCH_CONDITION_SEARCH_TYPE_COMMENT == _tmp70_;
-#line 2937 "SearchBoolean.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp66_) {
-#line 2941 "SearchBoolean.c"
- gchar* comment = NULL;
- gchar* _tmp71_;
- const gchar* _tmp72_;
-#line 339 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp71_ = media_source_get_comment (source);
-#line 339 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- comment = _tmp71_;
-#line 340 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp72_ = comment;
-#line 340 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (NULL != _tmp72_) {
-#line 2953 "SearchBoolean.c"
- gboolean _tmp73_;
- const gchar* _tmp74_;
- const gchar* _tmp75_;
- gchar* _tmp76_;
- gchar* _tmp77_;
- gchar* _tmp78_;
- gchar* _tmp79_;
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp73_ = ret;
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp74_ = self->priv->_text;
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp75_ = comment;
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp76_ = g_utf8_strdown (_tmp75_, (gssize) -1);
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp77_ = _tmp76_;
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp78_ = string_remove_diacritics (_tmp77_);
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp79_ = _tmp78_;
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp73_ | search_condition_text_string_match (self, _tmp74_, _tmp79_);
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp79_);
-#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp77_);
-#line 2981 "SearchBoolean.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (comment);
-#line 2985 "SearchBoolean.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp81_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp82_ = _tmp81_;
-#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp82_) {
-#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp80_ = TRUE;
-#line 2995 "SearchBoolean.c"
- } else {
- SearchConditionSearchType _tmp83_;
- SearchConditionSearchType _tmp84_;
-#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp83_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
-#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp84_ = _tmp83_;
-#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp80_ = SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME == _tmp84_;
-#line 3005 "SearchBoolean.c"
- }
-#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp80_) {
-#line 3009 "SearchBoolean.c"
- gboolean _tmp85_;
- const gchar* _tmp86_;
- gchar* _tmp87_;
- gchar* _tmp88_;
- gchar* _tmp89_;
- gchar* _tmp90_;
- gchar* _tmp91_;
- gchar* _tmp92_;
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp85_ = ret;
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp86_ = self->priv->_text;
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp87_ = media_source_get_basename (source);
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp88_ = _tmp87_;
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp89_ = g_utf8_strdown (_tmp88_, (gssize) -1);
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp90_ = _tmp89_;
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp91_ = string_remove_diacritics (_tmp90_);
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp92_ = _tmp91_;
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp85_ | search_condition_text_string_match (self, _tmp86_, _tmp92_);
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp92_);
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp90_);
-#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp88_);
-#line 3042 "SearchBoolean.c"
- }
-#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp94_ = self->priv->_context;
-#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp94_ == SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN) {
-#line 3048 "SearchBoolean.c"
- gboolean _tmp95_;
-#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp95_ = ret;
-#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp93_ = !_tmp95_;
-#line 3054 "SearchBoolean.c"
- } else {
- gboolean _tmp96_;
-#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp96_ = ret;
-#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp93_ = _tmp96_;
-#line 3061 "SearchBoolean.c"
- }
-#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp93_;
-#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3067 "SearchBoolean.c"
-}
-
-
-const gchar*
-search_condition_text_get_text (SearchConditionText* self)
-{
- const gchar* result;
- const gchar* _tmp0_;
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), NULL);
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_text;
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3084 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_text_set_text (SearchConditionText* self,
- const gchar* value)
-{
- gchar* _tmp0_;
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_TEXT (self));
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup (value);
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (self->priv->_text);
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_text = _tmp0_;
-#line 3101 "SearchBoolean.c"
-}
-
-
-SearchConditionTextContext
-search_condition_text_get_context (SearchConditionText* self)
-{
- SearchConditionTextContext result;
- SearchConditionTextContext _tmp0_;
-#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), 0);
-#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_context;
-#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3118 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_text_set_context (SearchConditionText* self,
- SearchConditionTextContext value)
-{
-#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_TEXT (self));
-#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_context = value;
-#line 3130 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_text_class_init (SearchConditionTextClass * klass)
-{
-#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_text_parent_class = g_type_class_peek_parent (klass);
-#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->finalize = search_condition_text_finalize;
-#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SearchConditionTextPrivate));
-#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_text_real_predicate;
-#line 3145 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_text_instance_init (SearchConditionText * self)
-{
-#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SEARCH_CONDITION_TEXT_GET_PRIVATE (self);
-#line 3154 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_text_finalize (SearchCondition * obj)
-{
- SearchConditionText * self;
-#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_TEXT, SearchConditionText);
-#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (self->priv->_text);
-#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- SEARCH_CONDITION_CLASS (search_condition_text_parent_class)->finalize (obj);
-#line 3168 "SearchBoolean.c"
-}
-
-
-GType
-search_condition_text_get_type (void)
-{
- static volatile gsize search_condition_text_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_text_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchConditionTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionText), 0, (GInstanceInitFunc) search_condition_text_instance_init, NULL };
- GType search_condition_text_type_id;
- search_condition_text_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionText", &g_define_type_info, 0);
- g_once_init_leave (&search_condition_text_type_id__volatile, search_condition_text_type_id);
- }
- return search_condition_text_type_id__volatile;
-}
-
-
-gchar*
-search_condition_media_type_context_to_string (SearchConditionMediaTypeContext self)
-{
- gchar* result = NULL;
-#line 360 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 360 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS:
-#line 3194 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("IS");
-#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3203 "SearchBoolean.c"
- }
-#line 360 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT:
-#line 3207 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("IS_NOT");
-#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3216 "SearchBoolean.c"
- }
- default:
- {
-#line 368 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:368: unrecognized media search context enumeration " \
-"value");
-#line 3222 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionMediaTypeContext
-search_condition_media_type_context_from_string (const gchar* str)
-{
- SearchConditionMediaTypeContext result = 0;
-#line 372 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 373 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "IS") == 0) {
-#line 374 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS;
-#line 374 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3240 "SearchBoolean.c"
- } else {
-#line 376 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "IS_NOT") == 0) {
-#line 377 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT;
-#line 377 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3248 "SearchBoolean.c"
- } else {
-#line 380 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:380: unrecognized media search context name: %s", str);
-#line 3252 "SearchBoolean.c"
- }
- }
-}
-
-
-GType
-search_condition_media_type_context_get_type (void)
-{
- static volatile gsize search_condition_media_type_context_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_media_type_context_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS, "SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS", "is"}, {SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT, "SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT", "is-not"}, {0, NULL, NULL}};
- GType search_condition_media_type_context_type_id;
- search_condition_media_type_context_type_id = g_enum_register_static ("SearchConditionMediaTypeContext", values);
- g_once_init_leave (&search_condition_media_type_context_type_id__volatile, search_condition_media_type_context_type_id);
- }
- return search_condition_media_type_context_type_id__volatile;
-}
-
-
-gchar*
-search_condition_media_type_media_type_to_string (SearchConditionMediaTypeMediaType self)
-{
- gchar* result = NULL;
-#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL:
-#line 3280 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("PHOTO_ALL");
-#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3289 "SearchBoolean.c"
- }
-#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW:
-#line 3293 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("PHOTO_RAW");
-#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3302 "SearchBoolean.c"
- }
-#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO:
-#line 3306 "SearchBoolean.c"
- {
- gchar* _tmp2_;
-#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup ("VIDEO");
-#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3315 "SearchBoolean.c"
- }
- default:
- {
-#line 401 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:401: unrecognized media search type enumeration val" \
-"ue");
-#line 3321 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionMediaTypeMediaType
-search_condition_media_type_media_type_from_string (const gchar* str)
-{
- SearchConditionMediaTypeMediaType result = 0;
-#line 405 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 406 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "PHOTO_ALL") == 0) {
-#line 407 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL;
-#line 407 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3339 "SearchBoolean.c"
- } else {
-#line 409 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "PHOTO_RAW") == 0) {
-#line 410 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW;
-#line 410 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3347 "SearchBoolean.c"
- } else {
-#line 412 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "VIDEO") == 0) {
-#line 413 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO;
-#line 413 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3355 "SearchBoolean.c"
- } else {
-#line 416 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:416: unrecognized media search type name: %s", str);
-#line 3359 "SearchBoolean.c"
- }
- }
- }
-}
-
-
-GType
-search_condition_media_type_media_type_get_type (void)
-{
- static volatile gsize search_condition_media_type_media_type_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_media_type_media_type_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL, "SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL", "photo-all"}, {SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW, "SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW", "photo-raw"}, {SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO, "SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO", "video"}, {0, NULL, NULL}};
- GType search_condition_media_type_media_type_type_id;
- search_condition_media_type_media_type_type_id = g_enum_register_static ("SearchConditionMediaTypeMediaType", values);
- g_once_init_leave (&search_condition_media_type_media_type_type_id__volatile, search_condition_media_type_media_type_type_id);
- }
- return search_condition_media_type_media_type_type_id__volatile;
-}
-
-
-SearchConditionMediaType*
-search_condition_media_type_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionMediaTypeContext context,
- SearchConditionMediaTypeMediaType media_type)
-{
- SearchConditionMediaType* self = NULL;
-#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SearchConditionMediaType*) search_condition_construct (object_type);
-#line 427 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type);
-#line 428 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_media_type_set_context (self, context);
-#line 429 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_media_type_set_media_type (self, media_type);
-#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 3397 "SearchBoolean.c"
-}
-
-
-SearchConditionMediaType*
-search_condition_media_type_new (SearchConditionSearchType search_type,
- SearchConditionMediaTypeContext context,
- SearchConditionMediaTypeMediaType media_type)
-{
-#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return search_condition_media_type_construct (TYPE_SEARCH_CONDITION_MEDIA_TYPE, search_type, context, media_type);
-#line 3408 "SearchBoolean.c"
-}
-
-
-static gboolean
-search_condition_media_type_real_predicate (SearchCondition* base,
- MediaSource* source)
-{
- SearchConditionMediaType * self;
- gboolean result = FALSE;
- SearchConditionMediaTypeMediaType _tmp0_;
-#line 433 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType);
-#line 433 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_media_type;
-#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (_tmp0_) {
-#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL:
-#line 3429 "SearchBoolean.c"
- {
-#line 438 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO)) {
-#line 3433 "SearchBoolean.c"
- SearchConditionMediaTypeContext _tmp1_;
-#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = self->priv->_context;
-#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS;
-#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3441 "SearchBoolean.c"
- } else {
- SearchConditionMediaTypeContext _tmp2_;
-#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = self->priv->_context;
-#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT;
-#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3450 "SearchBoolean.c"
- }
- }
-#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW:
-#line 3455 "SearchBoolean.c"
- {
- gboolean _tmp3_ = FALSE;
-#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO)) {
-#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = photo_get_master_file_format (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo)) == PHOTO_FILE_FORMAT_RAW;
-#line 3462 "SearchBoolean.c"
- } else {
-#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = FALSE;
-#line 3466 "SearchBoolean.c"
- }
-#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp3_) {
-#line 3470 "SearchBoolean.c"
- SearchConditionMediaTypeContext _tmp4_;
-#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = self->priv->_context;
-#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp4_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS;
-#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3478 "SearchBoolean.c"
- } else {
- SearchConditionMediaTypeContext _tmp5_;
-#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = self->priv->_context;
-#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp5_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT;
-#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3487 "SearchBoolean.c"
- }
- }
-#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO:
-#line 3492 "SearchBoolean.c"
- {
-#line 450 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_VIDEO_SOURCE)) {
-#line 3496 "SearchBoolean.c"
- SearchConditionMediaTypeContext _tmp6_;
-#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = self->priv->_context;
-#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp6_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS;
-#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3504 "SearchBoolean.c"
- } else {
- SearchConditionMediaTypeContext _tmp7_;
-#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = self->priv->_context;
-#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp7_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT;
-#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3513 "SearchBoolean.c"
- }
- }
- default:
- {
-#line 456 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:456: unrecognized media search type enumeration val" \
-"ue");
-#line 3520 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionMediaTypeMediaType
-search_condition_media_type_get_media_type (SearchConditionMediaType* self)
-{
- SearchConditionMediaTypeMediaType result;
- SearchConditionMediaTypeMediaType _tmp0_;
-#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self), 0);
-#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_media_type;
-#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3539 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_media_type_set_media_type (SearchConditionMediaType* self,
- SearchConditionMediaTypeMediaType value)
-{
-#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self));
-#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_media_type = value;
-#line 3551 "SearchBoolean.c"
-}
-
-
-SearchConditionMediaTypeContext
-search_condition_media_type_get_context (SearchConditionMediaType* self)
-{
- SearchConditionMediaTypeContext result;
- SearchConditionMediaTypeContext _tmp0_;
-#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self), 0);
-#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_context;
-#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3568 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_media_type_set_context (SearchConditionMediaType* self,
- SearchConditionMediaTypeContext value)
-{
-#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self));
-#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_context = value;
-#line 3580 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_media_type_class_init (SearchConditionMediaTypeClass * klass)
-{
-#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_media_type_parent_class = g_type_class_peek_parent (klass);
-#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->finalize = search_condition_media_type_finalize;
-#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SearchConditionMediaTypePrivate));
-#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_media_type_real_predicate;
-#line 3595 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_media_type_instance_init (SearchConditionMediaType * self)
-{
-#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SEARCH_CONDITION_MEDIA_TYPE_GET_PRIVATE (self);
-#line 3604 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_media_type_finalize (SearchCondition * obj)
-{
- SearchConditionMediaType * self;
-#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType);
-#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- SEARCH_CONDITION_CLASS (search_condition_media_type_parent_class)->finalize (obj);
-#line 3616 "SearchBoolean.c"
-}
-
-
-GType
-search_condition_media_type_get_type (void)
-{
- static volatile gsize search_condition_media_type_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_media_type_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchConditionMediaTypeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_media_type_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionMediaType), 0, (GInstanceInitFunc) search_condition_media_type_instance_init, NULL };
- GType search_condition_media_type_type_id;
- search_condition_media_type_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionMediaType", &g_define_type_info, 0);
- g_once_init_leave (&search_condition_media_type_type_id__volatile, search_condition_media_type_type_id);
- }
- return search_condition_media_type_type_id__volatile;
-}
-
-
-gchar*
-search_condition_flagged_state_to_string (SearchConditionFlaggedState self)
-{
- gchar* result = NULL;
-#line 468 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 468 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_FLAGGED_STATE_FLAGGED:
-#line 3642 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("FLAGGED");
-#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3651 "SearchBoolean.c"
- }
-#line 468 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED:
-#line 3655 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("UNFLAGGED");
-#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3664 "SearchBoolean.c"
- }
- default:
- {
-#line 476 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:476: unrecognized flagged search state enumeration " \
-"value");
-#line 3670 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionFlaggedState
-search_condition_flagged_state_from_string (const gchar* str)
-{
- SearchConditionFlaggedState result = 0;
-#line 480 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 481 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "FLAGGED") == 0) {
-#line 482 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_FLAGGED_STATE_FLAGGED;
-#line 482 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3688 "SearchBoolean.c"
- } else {
-#line 484 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "UNFLAGGED") == 0) {
-#line 485 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED;
-#line 485 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3696 "SearchBoolean.c"
- } else {
-#line 488 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:488: unrecognized flagged search state name: %s", str);
-#line 3700 "SearchBoolean.c"
- }
- }
-}
-
-
-GType
-search_condition_flagged_state_get_type (void)
-{
- static volatile gsize search_condition_flagged_state_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_flagged_state_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_FLAGGED_STATE_FLAGGED, "SEARCH_CONDITION_FLAGGED_STATE_FLAGGED", "flagged"}, {SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED, "SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED", "unflagged"}, {0, NULL, NULL}};
- GType search_condition_flagged_state_type_id;
- search_condition_flagged_state_type_id = g_enum_register_static ("SearchConditionFlaggedState", values);
- g_once_init_leave (&search_condition_flagged_state_type_id__volatile, search_condition_flagged_state_type_id);
- }
- return search_condition_flagged_state_type_id__volatile;
-}
-
-
-SearchConditionFlagged*
-search_condition_flagged_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionFlaggedState state)
-{
- SearchConditionFlagged* self = NULL;
-#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SearchConditionFlagged*) search_condition_construct (object_type);
-#line 496 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type);
-#line 497 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_flagged_set_state (self, state);
-#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 3734 "SearchBoolean.c"
-}
-
-
-SearchConditionFlagged*
-search_condition_flagged_new (SearchConditionSearchType search_type,
- SearchConditionFlaggedState state)
-{
-#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return search_condition_flagged_construct (TYPE_SEARCH_CONDITION_FLAGGED, search_type, state);
-#line 3744 "SearchBoolean.c"
-}
-
-
-static gboolean
-search_condition_flagged_real_predicate (SearchCondition* base,
- MediaSource* source)
-{
- SearchConditionFlagged * self;
- gboolean result = FALSE;
- SearchConditionFlaggedState _tmp0_;
-#line 501 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged);
-#line 501 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 502 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_state;
-#line 502 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp0_ == SEARCH_CONDITION_FLAGGED_STATE_FLAGGED) {
-#line 503 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_FLAGGABLE, Flaggable));
-#line 503 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3767 "SearchBoolean.c"
- } else {
- SearchConditionFlaggedState _tmp1_;
-#line 504 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = self->priv->_state;
-#line 504 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp1_ == SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED) {
-#line 505 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = !flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_FLAGGABLE, Flaggable));
-#line 505 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3778 "SearchBoolean.c"
- } else {
-#line 507 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:507: unrecognized flagged search state");
-#line 3782 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionFlaggedState
-search_condition_flagged_get_state (SearchConditionFlagged* self)
-{
- SearchConditionFlaggedState result;
- SearchConditionFlaggedState _tmp0_;
-#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_FLAGGED (self), 0);
-#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_state;
-#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3801 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_flagged_set_state (SearchConditionFlagged* self,
- SearchConditionFlaggedState value)
-{
-#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_FLAGGED (self));
-#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_state = value;
-#line 3813 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_flagged_class_init (SearchConditionFlaggedClass * klass)
-{
-#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_flagged_parent_class = g_type_class_peek_parent (klass);
-#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->finalize = search_condition_flagged_finalize;
-#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SearchConditionFlaggedPrivate));
-#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_flagged_real_predicate;
-#line 3828 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_flagged_instance_init (SearchConditionFlagged * self)
-{
-#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SEARCH_CONDITION_FLAGGED_GET_PRIVATE (self);
-#line 3837 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_flagged_finalize (SearchCondition * obj)
-{
- SearchConditionFlagged * self;
-#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged);
-#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- SEARCH_CONDITION_CLASS (search_condition_flagged_parent_class)->finalize (obj);
-#line 3849 "SearchBoolean.c"
-}
-
-
-GType
-search_condition_flagged_get_type (void)
-{
- static volatile gsize search_condition_flagged_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_flagged_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchConditionFlaggedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_flagged_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionFlagged), 0, (GInstanceInitFunc) search_condition_flagged_instance_init, NULL };
- GType search_condition_flagged_type_id;
- search_condition_flagged_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionFlagged", &g_define_type_info, 0);
- g_once_init_leave (&search_condition_flagged_type_id__volatile, search_condition_flagged_type_id);
- }
- return search_condition_flagged_type_id__volatile;
-}
-
-
-gchar*
-search_condition_modified_context_to_string (SearchConditionModifiedContext self)
-{
- gchar* result = NULL;
-#line 520 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 520 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MODIFIED_CONTEXT_HAS:
-#line 3875 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("HAS");
-#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3884 "SearchBoolean.c"
- }
-#line 520 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO:
-#line 3888 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("HAS_NO");
-#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3897 "SearchBoolean.c"
- }
- default:
- {
-#line 528 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:528: unrecognized modified search context enumerati" \
-"on value");
-#line 3903 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionModifiedContext
-search_condition_modified_context_from_string (const gchar* str)
-{
- SearchConditionModifiedContext result = 0;
-#line 532 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 533 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "HAS") == 0) {
-#line 534 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MODIFIED_CONTEXT_HAS;
-#line 534 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3921 "SearchBoolean.c"
- } else {
-#line 536 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "HAS_NO") == 0) {
-#line 537 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO;
-#line 537 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3929 "SearchBoolean.c"
- } else {
-#line 540 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:540: unrecognized modified search context name: %s", str);
-#line 3933 "SearchBoolean.c"
- }
- }
-}
-
-
-GType
-search_condition_modified_context_get_type (void)
-{
- static volatile gsize search_condition_modified_context_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_modified_context_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_MODIFIED_CONTEXT_HAS, "SEARCH_CONDITION_MODIFIED_CONTEXT_HAS", "has"}, {SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO, "SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO", "has-no"}, {0, NULL, NULL}};
- GType search_condition_modified_context_type_id;
- search_condition_modified_context_type_id = g_enum_register_static ("SearchConditionModifiedContext", values);
- g_once_init_leave (&search_condition_modified_context_type_id__volatile, search_condition_modified_context_type_id);
- }
- return search_condition_modified_context_type_id__volatile;
-}
-
-
-gchar*
-search_condition_modified_state_to_string (SearchConditionModifiedState self)
-{
- gchar* result = NULL;
-#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MODIFIED_STATE_MODIFIED:
-#line 3961 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("MODIFIED");
-#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3970 "SearchBoolean.c"
- }
-#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES:
-#line 3974 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("INTERNAL_CHANGES");
-#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3983 "SearchBoolean.c"
- }
-#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES:
-#line 3987 "SearchBoolean.c"
- {
- gchar* _tmp2_;
-#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup ("EXTERNAL_CHANGES");
-#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 3996 "SearchBoolean.c"
- }
- default:
- {
-#line 561 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:561: unrecognized modified search state enumeration" \
-" value");
-#line 4002 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionModifiedState
-search_condition_modified_state_from_string (const gchar* str)
-{
- SearchConditionModifiedState result = 0;
-#line 565 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 566 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "MODIFIED") == 0) {
-#line 567 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MODIFIED_STATE_MODIFIED;
-#line 567 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4020 "SearchBoolean.c"
- } else {
-#line 569 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "INTERNAL_CHANGES") == 0) {
-#line 570 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES;
-#line 570 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4028 "SearchBoolean.c"
- } else {
-#line 572 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "EXTERNAL_CHANGES") == 0) {
-#line 573 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES;
-#line 573 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4036 "SearchBoolean.c"
- } else {
-#line 576 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:576: unrecognized modified search state name: %s", str);
-#line 4040 "SearchBoolean.c"
- }
- }
- }
-}
-
-
-GType
-search_condition_modified_state_get_type (void)
-{
- static volatile gsize search_condition_modified_state_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_modified_state_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_MODIFIED_STATE_MODIFIED, "SEARCH_CONDITION_MODIFIED_STATE_MODIFIED", "modified"}, {SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES, "SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES", "internal-changes"}, {SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES, "SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES", "external-changes"}, {0, NULL, NULL}};
- GType search_condition_modified_state_type_id;
- search_condition_modified_state_type_id = g_enum_register_static ("SearchConditionModifiedState", values);
- g_once_init_leave (&search_condition_modified_state_type_id__volatile, search_condition_modified_state_type_id);
- }
- return search_condition_modified_state_type_id__volatile;
-}
-
-
-SearchConditionModified*
-search_condition_modified_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionModifiedContext context,
- SearchConditionModifiedState state)
-{
- SearchConditionModified* self = NULL;
-#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SearchConditionModified*) search_condition_construct (object_type);
-#line 587 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type);
-#line 588 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_modified_set_context (self, context);
-#line 589 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_modified_set_state (self, state);
-#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 4078 "SearchBoolean.c"
-}
-
-
-SearchConditionModified*
-search_condition_modified_new (SearchConditionSearchType search_type,
- SearchConditionModifiedContext context,
- SearchConditionModifiedState state)
-{
-#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return search_condition_modified_construct (TYPE_SEARCH_CONDITION_MODIFIED, search_type, context, state);
-#line 4089 "SearchBoolean.c"
-}
-
-
-static gboolean
-search_condition_modified_real_predicate (SearchCondition* base,
- MediaSource* source)
-{
- SearchConditionModified * self;
- gboolean result = FALSE;
- Photo* photo = NULL;
- Photo* _tmp0_;
- Photo* _tmp1_;
- gboolean match = FALSE;
- SearchConditionModifiedState _tmp2_;
- gboolean _tmp10_;
-#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified);
-#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 595 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL);
-#line 595 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- photo = _tmp0_;
-#line 596 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = photo;
-#line 596 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp1_ == NULL) {
-#line 597 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = FALSE;
-#line 597 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (photo);
-#line 597 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4123 "SearchBoolean.c"
- }
-#line 600 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = self->priv->_state;
-#line 600 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp2_ == SEARCH_CONDITION_MODIFIED_STATE_MODIFIED) {
-#line 4129 "SearchBoolean.c"
- gboolean _tmp3_ = FALSE;
- Photo* _tmp4_;
-#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = photo;
-#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (photo_has_transformations (_tmp4_)) {
-#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = TRUE;
-#line 4138 "SearchBoolean.c"
- } else {
- Photo* _tmp5_;
-#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = photo;
-#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = photo_has_editable (_tmp5_);
-#line 4145 "SearchBoolean.c"
- }
-#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- match = _tmp3_;
-#line 4149 "SearchBoolean.c"
- } else {
- SearchConditionModifiedState _tmp6_;
-#line 602 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = self->priv->_state;
-#line 602 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp6_ == SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES) {
-#line 4156 "SearchBoolean.c"
- Photo* _tmp7_;
-#line 603 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = photo;
-#line 603 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- match = photo_has_transformations (_tmp7_);
-#line 4162 "SearchBoolean.c"
- } else {
- SearchConditionModifiedState _tmp8_;
-#line 604 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = self->priv->_state;
-#line 604 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp8_ == SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES) {
-#line 4169 "SearchBoolean.c"
- Photo* _tmp9_;
-#line 605 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = photo;
-#line 605 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- match = photo_has_editable (_tmp9_);
-#line 4175 "SearchBoolean.c"
- } else {
-#line 607 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:607: unrecognized modified search state");
-#line 4179 "SearchBoolean.c"
- }
- }
- }
-#line 609 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = match;
-#line 609 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp10_) {
-#line 4187 "SearchBoolean.c"
- SearchConditionModifiedContext _tmp11_;
-#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp11_ = self->priv->_context;
-#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp11_ == SEARCH_CONDITION_MODIFIED_CONTEXT_HAS;
-#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (photo);
-#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4197 "SearchBoolean.c"
- } else {
- SearchConditionModifiedContext _tmp12_;
-#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp12_ = self->priv->_context;
-#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp12_ == SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO;
-#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (photo);
-#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4208 "SearchBoolean.c"
- }
-#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (photo);
-#line 4212 "SearchBoolean.c"
-}
-
-
-SearchConditionModifiedState
-search_condition_modified_get_state (SearchConditionModified* self)
-{
- SearchConditionModifiedState result;
- SearchConditionModifiedState _tmp0_;
-#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_MODIFIED (self), 0);
-#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_state;
-#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4229 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_modified_set_state (SearchConditionModified* self,
- SearchConditionModifiedState value)
-{
-#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_MODIFIED (self));
-#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_state = value;
-#line 4241 "SearchBoolean.c"
-}
-
-
-SearchConditionModifiedContext
-search_condition_modified_get_context (SearchConditionModified* self)
-{
- SearchConditionModifiedContext result;
- SearchConditionModifiedContext _tmp0_;
-#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_MODIFIED (self), 0);
-#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_context;
-#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4258 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_modified_set_context (SearchConditionModified* self,
- SearchConditionModifiedContext value)
-{
-#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_MODIFIED (self));
-#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_context = value;
-#line 4270 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_modified_class_init (SearchConditionModifiedClass * klass)
-{
-#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_modified_parent_class = g_type_class_peek_parent (klass);
-#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->finalize = search_condition_modified_finalize;
-#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SearchConditionModifiedPrivate));
-#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_modified_real_predicate;
-#line 4285 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_modified_instance_init (SearchConditionModified * self)
-{
-#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SEARCH_CONDITION_MODIFIED_GET_PRIVATE (self);
-#line 4294 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_modified_finalize (SearchCondition * obj)
-{
- SearchConditionModified * self;
-#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified);
-#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- SEARCH_CONDITION_CLASS (search_condition_modified_parent_class)->finalize (obj);
-#line 4306 "SearchBoolean.c"
-}
-
-
-GType
-search_condition_modified_get_type (void)
-{
- static volatile gsize search_condition_modified_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_modified_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchConditionModifiedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_modified_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionModified), 0, (GInstanceInitFunc) search_condition_modified_instance_init, NULL };
- GType search_condition_modified_type_id;
- search_condition_modified_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionModified", &g_define_type_info, 0);
- g_once_init_leave (&search_condition_modified_type_id__volatile, search_condition_modified_type_id);
- }
- return search_condition_modified_type_id__volatile;
-}
-
-
-gchar*
-search_condition_rating_context_to_string (SearchConditionRatingContext self)
-{
- gchar* result = NULL;
-#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER:
-#line 4332 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("AND_HIGHER");
-#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4341 "SearchBoolean.c"
- }
-#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_RATING_CONTEXT_ONLY:
-#line 4345 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("ONLY");
-#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4354 "SearchBoolean.c"
- }
-#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER:
-#line 4358 "SearchBoolean.c"
- {
- gchar* _tmp2_;
-#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup ("AND_LOWER");
-#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4367 "SearchBoolean.c"
- }
- default:
- {
-#line 636 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:636: unrecognized rating search context enumeration" \
-" value");
-#line 4373 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionRatingContext
-search_condition_rating_context_from_string (const gchar* str)
-{
- SearchConditionRatingContext result = 0;
-#line 640 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 641 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "AND_HIGHER") == 0) {
-#line 642 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER;
-#line 642 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4391 "SearchBoolean.c"
- } else {
-#line 644 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "ONLY") == 0) {
-#line 645 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_RATING_CONTEXT_ONLY;
-#line 645 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4399 "SearchBoolean.c"
- } else {
-#line 647 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "AND_LOWER") == 0) {
-#line 648 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER;
-#line 648 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4407 "SearchBoolean.c"
- } else {
-#line 651 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:651: unrecognized rating search context name: %s", str);
-#line 4411 "SearchBoolean.c"
- }
- }
- }
-}
-
-
-GType
-search_condition_rating_context_get_type (void)
-{
- static volatile gsize search_condition_rating_context_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_rating_context_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER, "SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER", "and-higher"}, {SEARCH_CONDITION_RATING_CONTEXT_ONLY, "SEARCH_CONDITION_RATING_CONTEXT_ONLY", "only"}, {SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER, "SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER", "and-lower"}, {0, NULL, NULL}};
- GType search_condition_rating_context_type_id;
- search_condition_rating_context_type_id = g_enum_register_static ("SearchConditionRatingContext", values);
- g_once_init_leave (&search_condition_rating_context_type_id__volatile, search_condition_rating_context_type_id);
- }
- return search_condition_rating_context_type_id__volatile;
-}
-
-
-SearchConditionRating*
-search_condition_rating_construct (GType object_type,
- SearchConditionSearchType search_type,
- Rating rating,
- SearchConditionRatingContext context)
-{
- SearchConditionRating* self = NULL;
-#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SearchConditionRating*) search_condition_construct (object_type);
-#line 662 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type);
-#line 663 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_rating_set_rating (self, rating);
-#line 664 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_rating_set_context (self, context);
-#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 4449 "SearchBoolean.c"
-}
-
-
-SearchConditionRating*
-search_condition_rating_new (SearchConditionSearchType search_type,
- Rating rating,
- SearchConditionRatingContext context)
-{
-#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return search_condition_rating_construct (TYPE_SEARCH_CONDITION_RATING, search_type, rating, context);
-#line 4460 "SearchBoolean.c"
-}
-
-
-static gboolean
-search_condition_rating_real_predicate (SearchCondition* base,
- MediaSource* source)
-{
- SearchConditionRating * self;
- gboolean result = FALSE;
- Rating source_rating = 0;
- SearchConditionRatingContext _tmp0_;
-#line 668 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_RATING, SearchConditionRating);
-#line 668 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 669 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- source_rating = media_source_get_rating (source);
-#line 670 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_context;
-#line 670 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp0_ == SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER) {
-#line 4482 "SearchBoolean.c"
- Rating _tmp1_;
- Rating _tmp2_;
-#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = source_rating;
-#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = self->priv->_rating;
-#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_ >= _tmp2_;
-#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4493 "SearchBoolean.c"
- } else {
- SearchConditionRatingContext _tmp3_;
-#line 672 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = self->priv->_context;
-#line 672 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp3_ == SEARCH_CONDITION_RATING_CONTEXT_ONLY) {
-#line 4500 "SearchBoolean.c"
- Rating _tmp4_;
- Rating _tmp5_;
-#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = source_rating;
-#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = self->priv->_rating;
-#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp4_ == _tmp5_;
-#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4511 "SearchBoolean.c"
- } else {
- SearchConditionRatingContext _tmp6_;
-#line 674 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = self->priv->_context;
-#line 674 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp6_ == SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER) {
-#line 4518 "SearchBoolean.c"
- Rating _tmp7_;
- Rating _tmp8_;
-#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = source_rating;
-#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = self->priv->_rating;
-#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp7_ <= _tmp8_;
-#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4529 "SearchBoolean.c"
- } else {
-#line 677 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:677: unknown rating search context");
-#line 4533 "SearchBoolean.c"
- }
- }
- }
-}
-
-
-Rating
-search_condition_rating_get_rating (SearchConditionRating* self)
-{
- Rating result;
- Rating _tmp0_;
-#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_RATING (self), 0);
-#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_rating;
-#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4553 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_rating_set_rating (SearchConditionRating* self,
- Rating value)
-{
-#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_RATING (self));
-#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_rating = value;
-#line 4565 "SearchBoolean.c"
-}
-
-
-SearchConditionRatingContext
-search_condition_rating_get_context (SearchConditionRating* self)
-{
- SearchConditionRatingContext result;
- SearchConditionRatingContext _tmp0_;
-#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_RATING (self), 0);
-#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_context;
-#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4582 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_rating_set_context (SearchConditionRating* self,
- SearchConditionRatingContext value)
-{
-#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_RATING (self));
-#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_context = value;
-#line 4594 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_rating_class_init (SearchConditionRatingClass * klass)
-{
-#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_rating_parent_class = g_type_class_peek_parent (klass);
-#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->finalize = search_condition_rating_finalize;
-#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SearchConditionRatingPrivate));
-#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_rating_real_predicate;
-#line 4609 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_rating_instance_init (SearchConditionRating * self)
-{
-#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SEARCH_CONDITION_RATING_GET_PRIVATE (self);
-#line 4618 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_rating_finalize (SearchCondition * obj)
-{
- SearchConditionRating * self;
-#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_RATING, SearchConditionRating);
-#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- SEARCH_CONDITION_CLASS (search_condition_rating_parent_class)->finalize (obj);
-#line 4630 "SearchBoolean.c"
-}
-
-
-GType
-search_condition_rating_get_type (void)
-{
- static volatile gsize search_condition_rating_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_rating_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchConditionRatingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_rating_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionRating), 0, (GInstanceInitFunc) search_condition_rating_instance_init, NULL };
- GType search_condition_rating_type_id;
- search_condition_rating_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionRating", &g_define_type_info, 0);
- g_once_init_leave (&search_condition_rating_type_id__volatile, search_condition_rating_type_id);
- }
- return search_condition_rating_type_id__volatile;
-}
-
-
-gchar*
-search_condition_date_context_to_string (SearchConditionDateContext self)
-{
- gchar* result = NULL;
-#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (self) {
-#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_EXACT:
-#line 4656 "SearchBoolean.c"
- {
- gchar* _tmp0_;
-#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup ("EXACT");
-#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4665 "SearchBoolean.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_AFTER:
-#line 4669 "SearchBoolean.c"
- {
- gchar* _tmp1_;
-#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup ("AFTER");
-#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4678 "SearchBoolean.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_BEFORE:
-#line 4682 "SearchBoolean.c"
- {
- gchar* _tmp2_;
-#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup ("BEFORE");
-#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4691 "SearchBoolean.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_BETWEEN:
-#line 4695 "SearchBoolean.c"
- {
- gchar* _tmp3_;
-#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = g_strdup ("BETWEEN");
-#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
-#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4704 "SearchBoolean.c"
- }
-#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET:
-#line 4708 "SearchBoolean.c"
- {
- gchar* _tmp4_;
-#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = g_strdup ("IS_NOT_SET");
-#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp4_;
-#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4717 "SearchBoolean.c"
- }
- default:
- {
-#line 709 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:709: unrecognized date search context enumeration v" \
-"alue");
-#line 4723 "SearchBoolean.c"
- }
- }
-}
-
-
-SearchConditionDateContext
-search_condition_date_context_from_string (const gchar* str)
-{
- SearchConditionDateContext result = 0;
-#line 713 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (str != NULL, 0);
-#line 714 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "EXACT") == 0) {
-#line 715 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_DATE_CONTEXT_EXACT;
-#line 715 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4741 "SearchBoolean.c"
- }
-#line 717 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "AFTER") == 0) {
-#line 718 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_DATE_CONTEXT_AFTER;
-#line 718 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4749 "SearchBoolean.c"
- } else {
-#line 720 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "BEFORE") == 0) {
-#line 721 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_DATE_CONTEXT_BEFORE;
-#line 721 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4757 "SearchBoolean.c"
- } else {
-#line 723 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "BETWEEN") == 0) {
-#line 724 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_DATE_CONTEXT_BETWEEN;
-#line 724 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4765 "SearchBoolean.c"
- } else {
-#line 726 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_strcmp0 (str, "IS_NOT_SET") == 0) {
-#line 727 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET;
-#line 727 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4773 "SearchBoolean.c"
- } else {
-#line 730 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:730: unrecognized date search context name: %s", str);
-#line 4777 "SearchBoolean.c"
- }
- }
- }
- }
-}
-
-
-GType
-search_condition_date_context_get_type (void)
-{
- static volatile gsize search_condition_date_context_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_date_context_type_id__volatile)) {
- static const GEnumValue values[] = {{SEARCH_CONDITION_DATE_CONTEXT_EXACT, "SEARCH_CONDITION_DATE_CONTEXT_EXACT", "exact"}, {SEARCH_CONDITION_DATE_CONTEXT_AFTER, "SEARCH_CONDITION_DATE_CONTEXT_AFTER", "after"}, {SEARCH_CONDITION_DATE_CONTEXT_BEFORE, "SEARCH_CONDITION_DATE_CONTEXT_BEFORE", "before"}, {SEARCH_CONDITION_DATE_CONTEXT_BETWEEN, "SEARCH_CONDITION_DATE_CONTEXT_BETWEEN", "between"}, {SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET, "SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET", "is-not-set"}, {0, NULL, NULL}};
- GType search_condition_date_context_type_id;
- search_condition_date_context_type_id = g_enum_register_static ("SearchConditionDateContext", values);
- g_once_init_leave (&search_condition_date_context_type_id__volatile, search_condition_date_context_type_id);
- }
- return search_condition_date_context_type_id__volatile;
-}
-
-
-SearchConditionDate*
-search_condition_date_construct (GType object_type,
- SearchConditionSearchType search_type,
- SearchConditionDateContext context,
- GDateTime* date_one,
- GDateTime* date_two)
-{
- SearchConditionDate* self = NULL;
- gboolean _tmp0_ = FALSE;
-#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (date_one != NULL, NULL);
-#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (date_two != NULL, NULL);
-#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SearchConditionDate*) search_condition_construct (object_type);
-#line 743 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type);
-#line 744 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_date_set_context (self, context);
-#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (context != SEARCH_CONDITION_DATE_CONTEXT_BETWEEN) {
-#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = TRUE;
-#line 4822 "SearchBoolean.c"
- } else {
-#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_date_time_compare (date_two, date_one) >= 1;
-#line 4826 "SearchBoolean.c"
- }
-#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp0_) {
-#line 746 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_date_set_date_one (self, date_one);
-#line 747 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_date_set_date_two (self, date_two);
-#line 4834 "SearchBoolean.c"
- } else {
-#line 749 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_date_set_date_one (self, date_two);
-#line 750 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_date_set_date_two (self, date_one);
-#line 4840 "SearchBoolean.c"
- }
-#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 4844 "SearchBoolean.c"
-}
-
-
-SearchConditionDate*
-search_condition_date_new (SearchConditionSearchType search_type,
- SearchConditionDateContext context,
- GDateTime* date_one,
- GDateTime* date_two)
-{
-#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return search_condition_date_construct (TYPE_SEARCH_CONDITION_DATE, search_type, context, date_one, date_two);
-#line 4856 "SearchBoolean.c"
-}
-
-
-static gboolean
-search_condition_date_real_predicate (SearchCondition* base,
- MediaSource* source)
-{
- SearchConditionDate * self;
- gboolean result = FALSE;
- time_t exposure_time = 0;
- time_t _tmp0_;
- GDateTime* dt = NULL;
- time_t _tmp2_;
- GDateTime* _tmp3_;
- SearchConditionDateContext _tmp4_;
-#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_DATE, SearchConditionDate);
-#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 757 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- exposure_time = media_source_get_exposure_time (source);
-#line 758 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = exposure_time;
-#line 758 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp0_ == ((time_t) 0)) {
-#line 4882 "SearchBoolean.c"
- SearchConditionDateContext _tmp1_;
-#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = self->priv->_context;
-#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_ == SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET;
-#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4890 "SearchBoolean.c"
- }
-#line 761 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = exposure_time;
-#line 761 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = g_date_time_new_from_unix_local ((gint64) _tmp2_);
-#line 761 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- dt = _tmp3_;
-#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = self->priv->_context;
-#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- switch (_tmp4_) {
-#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_EXACT:
-#line 4904 "SearchBoolean.c"
- {
- GDateTime* second = NULL;
- GDateTime* _tmp5_;
- GDateTime* _tmp6_;
- gboolean _tmp7_ = FALSE;
- GDateTime* _tmp8_;
- GDateTime* _tmp9_;
-#line 764 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = self->priv->_date_one;
-#line 764 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = g_date_time_add_days (_tmp5_, 1);
-#line 764 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- second = _tmp6_;
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = dt;
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = self->priv->_date_one;
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_date_time_compare (_tmp8_, _tmp9_) >= 0) {
-#line 4924 "SearchBoolean.c"
- GDateTime* _tmp10_;
- GDateTime* _tmp11_;
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = dt;
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp11_ = second;
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = g_date_time_compare (_tmp10_, _tmp11_) < 0;
-#line 4933 "SearchBoolean.c"
- } else {
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = FALSE;
-#line 4937 "SearchBoolean.c"
- }
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp7_;
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (second);
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (dt);
-#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4947 "SearchBoolean.c"
- }
-#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_AFTER:
-#line 4951 "SearchBoolean.c"
- {
- GDateTime* _tmp12_;
- GDateTime* _tmp13_;
-#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp12_ = dt;
-#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp13_ = self->priv->_date_one;
-#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = g_date_time_compare (_tmp12_, _tmp13_) >= 0;
-#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (dt);
-#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4965 "SearchBoolean.c"
- }
-#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_BEFORE:
-#line 4969 "SearchBoolean.c"
- {
- GDateTime* _tmp14_;
- GDateTime* _tmp15_;
-#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp14_ = dt;
-#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp15_ = self->priv->_date_one;
-#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = g_date_time_compare (_tmp14_, _tmp15_) <= 0;
-#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (dt);
-#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 4983 "SearchBoolean.c"
- }
-#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_BETWEEN:
-#line 4987 "SearchBoolean.c"
- {
- GDateTime* second = NULL;
- GDateTime* _tmp16_;
- GDateTime* _tmp17_;
- gboolean _tmp18_ = FALSE;
- GDateTime* _tmp19_;
- GDateTime* _tmp20_;
-#line 774 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp16_ = self->priv->_date_two;
-#line 774 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp17_ = g_date_time_add_days (_tmp16_, 1);
-#line 774 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- second = _tmp17_;
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp19_ = dt;
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp20_ = self->priv->_date_one;
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_date_time_compare (_tmp19_, _tmp20_) >= 0) {
-#line 5007 "SearchBoolean.c"
- GDateTime* _tmp21_;
- GDateTime* _tmp22_;
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp21_ = dt;
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp22_ = second;
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp18_ = g_date_time_compare (_tmp21_, _tmp22_) < 0;
-#line 5016 "SearchBoolean.c"
- } else {
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp18_ = FALSE;
-#line 5020 "SearchBoolean.c"
- }
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp18_;
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (second);
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (dt);
-#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5030 "SearchBoolean.c"
- }
-#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- case SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET:
-#line 5034 "SearchBoolean.c"
- {
-#line 778 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = FALSE;
-#line 778 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (dt);
-#line 778 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5042 "SearchBoolean.c"
- }
- default:
- {
-#line 781 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_error ("SearchBoolean.vala:781: unrecognized date search context enumeration v" \
-"alue");
-#line 5048 "SearchBoolean.c"
- }
- }
-#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (dt);
-#line 5053 "SearchBoolean.c"
-}
-
-
-GDateTime*
-search_condition_date_get_date_one (SearchConditionDate* self)
-{
- GDateTime* result;
- GDateTime* _tmp0_;
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), NULL);
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_date_one;
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5070 "SearchBoolean.c"
-}
-
-
-static gpointer
-_g_date_time_ref0 (gpointer self)
-{
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self ? g_date_time_ref (self) : NULL;
-#line 5079 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_date_set_date_one (SearchConditionDate* self,
- GDateTime* value)
-{
- GDateTime* _tmp0_;
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_DATE (self));
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _g_date_time_ref0 (value);
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (self->priv->_date_one);
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_date_one = _tmp0_;
-#line 5096 "SearchBoolean.c"
-}
-
-
-GDateTime*
-search_condition_date_get_date_two (SearchConditionDate* self)
-{
- GDateTime* result;
- GDateTime* _tmp0_;
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), NULL);
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_date_two;
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5113 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_date_set_date_two (SearchConditionDate* self,
- GDateTime* value)
-{
- GDateTime* _tmp0_;
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_DATE (self));
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _g_date_time_ref0 (value);
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (self->priv->_date_two);
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_date_two = _tmp0_;
-#line 5130 "SearchBoolean.c"
-}
-
-
-SearchConditionDateContext
-search_condition_date_get_context (SearchConditionDate* self)
-{
- SearchConditionDateContext result;
- SearchConditionDateContext _tmp0_;
-#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), 0);
-#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->_context;
-#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5147 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_date_set_context (SearchConditionDate* self,
- SearchConditionDateContext value)
-{
-#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SEARCH_CONDITION_DATE (self));
-#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->_context = value;
-#line 5159 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_date_class_init (SearchConditionDateClass * klass)
-{
-#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search_condition_date_parent_class = g_type_class_peek_parent (klass);
-#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->finalize = search_condition_date_finalize;
-#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SearchConditionDatePrivate));
-#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_date_real_predicate;
-#line 5174 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_date_instance_init (SearchConditionDate * self)
-{
-#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SEARCH_CONDITION_DATE_GET_PRIVATE (self);
-#line 5183 "SearchBoolean.c"
-}
-
-
-static void
-search_condition_date_finalize (SearchCondition * obj)
-{
- SearchConditionDate * self;
-#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_DATE, SearchConditionDate);
-#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (self->priv->_date_one);
-#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_date_time_unref0 (self->priv->_date_two);
-#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- SEARCH_CONDITION_CLASS (search_condition_date_parent_class)->finalize (obj);
-#line 5199 "SearchBoolean.c"
-}
-
-
-GType
-search_condition_date_get_type (void)
-{
- static volatile gsize search_condition_date_type_id__volatile = 0;
- if (g_once_init_enter (&search_condition_date_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchConditionDateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_date_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionDate), 0, (GInstanceInitFunc) search_condition_date_instance_init, NULL };
- GType search_condition_date_type_id;
- search_condition_date_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionDate", &g_define_type_info, 0);
- g_once_init_leave (&search_condition_date_type_id__volatile, search_condition_date_type_id);
- }
- return search_condition_date_type_id__volatile;
-}
-
-
-static gpointer
-_saved_search_row_ref0 (gpointer self)
-{
-#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self ? saved_search_row_ref (self) : NULL;
-#line 5222 "SearchBoolean.c"
-}
-
-
-SavedSearch*
-saved_search_construct (GType object_type,
- SavedSearchRow* row,
- gint64 object_id)
-{
- SavedSearch * self = NULL;
- SavedSearchRow* _tmp0_;
-#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_ROW (row), NULL);
-#line 795 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SavedSearch*) data_source_construct (object_type, object_id);
-#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _saved_search_row_ref0 (row);
-#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_row_unref0 (self->priv->row);
-#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->row = _tmp0_;
-#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 5245 "SearchBoolean.c"
-}
-
-
-SavedSearch*
-saved_search_new (SavedSearchRow* row,
- gint64 object_id)
-{
-#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return saved_search_construct (TYPE_SAVED_SEARCH, row, object_id);
-#line 5255 "SearchBoolean.c"
-}
-
-
-static gchar*
-saved_search_real_get_name (DataObject* base)
-{
- SavedSearch * self;
- gchar* result = NULL;
- SavedSearchRow* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
-#line 800 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch);
-#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->row;
-#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_->name;
-#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5279 "SearchBoolean.c"
-}
-
-
-static gchar*
-saved_search_real_to_string (DataObject* base)
-{
- SavedSearch * self;
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 804 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch);
-#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_;
-#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = g_strconcat ("SavedSearch ", _tmp1_, NULL);
-#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = _tmp2_;
-#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp1_);
-#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
-#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5308 "SearchBoolean.c"
-}
-
-
-static gchar*
-saved_search_real_get_typename (DataSource* base)
-{
- SavedSearch * self;
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 808 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch);
-#line 809 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = g_strdup (SAVED_SEARCH_TYPENAME);
-#line 809 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp0_;
-#line 809 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5326 "SearchBoolean.c"
-}
-
-
-void
-saved_search_get_saved_search_id (SavedSearch* self,
- SavedSearchID* result)
-{
- SavedSearchRow* _tmp0_;
- SavedSearchID _tmp1_;
-#line 812 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SAVED_SEARCH (self));
-#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->row;
-#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_->search_id;
-#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- *result = _tmp1_;
-#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return;
-#line 5346 "SearchBoolean.c"
-}
-
-
-static gint64
-saved_search_real_get_instance_id (DataSource* base)
-{
- SavedSearch * self;
- gint64 result = 0LL;
- SavedSearchID _tmp0_ = {0};
- gint64 _tmp1_;
-#line 816 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch);
-#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_get_saved_search_id (self, &_tmp0_);
-#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_.id;
-#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5367 "SearchBoolean.c"
-}
-
-
-gint
-saved_search_compare_names (void* a,
- void* b)
-{
- gint result = 0;
- SavedSearch* asearch = NULL;
- SavedSearch* bsearch = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 821 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- asearch = (SavedSearch*) a;
-#line 822 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- bsearch = (SavedSearch*) b;
-#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (asearch, TYPE_DATA_OBJECT, DataObject));
-#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (bsearch, TYPE_DATA_OBJECT, DataObject));
-#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = string_collated_compare (_tmp0_, _tmp1_);
-#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5392 "SearchBoolean.c"
-}
-
-
-gboolean
-saved_search_predicate (SavedSearch* self,
- MediaSource* source)
-{
- gboolean result = FALSE;
- gboolean ret = FALSE;
- gboolean _tmp0_ = FALSE;
- SavedSearchRow* _tmp1_;
- SearchOperator _tmp2_;
-#line 827 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (self), FALSE);
-#line 827 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = self->priv->row;
-#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_->operator;
-#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_OPERATOR_ALL == _tmp2_) {
-#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = TRUE;
-#line 5417 "SearchBoolean.c"
- } else {
- SavedSearchRow* _tmp3_;
- SearchOperator _tmp4_;
-#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = self->priv->row;
-#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = _tmp3_->operator;
-#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = SEARCH_OPERATOR_NONE == _tmp4_;
-#line 5427 "SearchBoolean.c"
- }
-#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp0_) {
-#line 830 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = TRUE;
-#line 5433 "SearchBoolean.c"
- } else {
-#line 832 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = FALSE;
-#line 5437 "SearchBoolean.c"
- }
- {
- GeeList* _c_list = NULL;
- SavedSearchRow* _tmp5_;
- GeeList* _tmp6_;
- GeeList* _tmp7_;
- gint _c_size = 0;
- GeeList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gint _c_index = 0;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = self->priv->row;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = _tmp5_->conditions;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _c_list = _tmp7_;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = _c_list;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = _tmp9_;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _c_size = _tmp10_;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _c_index = -1;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- while (TRUE) {
-#line 5469 "SearchBoolean.c"
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- SearchCondition* c = NULL;
- GeeList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- SavedSearchRow* _tmp17_;
- SearchOperator _tmp18_;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp11_ = _c_index;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _c_index = _tmp11_ + 1;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp12_ = _c_index;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp13_ = _c_size;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- break;
-#line 5491 "SearchBoolean.c"
- }
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp14_ = _c_list;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp15_ = _c_index;
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp16_ = gee_list_get (_tmp14_, _tmp15_);
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- c = (SearchCondition*) _tmp16_;
-#line 835 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp17_ = self->priv->row;
-#line 835 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp18_ = _tmp17_->operator;
-#line 835 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_OPERATOR_ALL == _tmp18_) {
-#line 5507 "SearchBoolean.c"
- gboolean _tmp19_;
- SearchCondition* _tmp20_;
-#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp19_ = ret;
-#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp20_ = c;
-#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp19_ & search_condition_predicate (_tmp20_, source);
-#line 5516 "SearchBoolean.c"
- } else {
- SavedSearchRow* _tmp21_;
- SearchOperator _tmp22_;
-#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp21_ = self->priv->row;
-#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp22_ = _tmp21_->operator;
-#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_OPERATOR_ANY == _tmp22_) {
-#line 5526 "SearchBoolean.c"
- gboolean _tmp23_;
- SearchCondition* _tmp24_;
-#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp23_ = ret;
-#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp24_ = c;
-#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp23_ | search_condition_predicate (_tmp24_, source);
-#line 5535 "SearchBoolean.c"
- } else {
- SavedSearchRow* _tmp25_;
- SearchOperator _tmp26_;
-#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp25_ = self->priv->row;
-#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp26_ = _tmp25_->operator;
-#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (SEARCH_OPERATOR_NONE == _tmp26_) {
-#line 5545 "SearchBoolean.c"
- gboolean _tmp27_;
- SearchCondition* _tmp28_;
-#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp27_ = ret;
-#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp28_ = c;
-#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ret = _tmp27_ & (!search_condition_predicate (_tmp28_, source));
-#line 5554 "SearchBoolean.c"
- }
- }
- }
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _search_condition_unref0 (c);
-#line 5560 "SearchBoolean.c"
- }
-#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_c_list);
-#line 5564 "SearchBoolean.c"
- }
-#line 842 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = ret;
-#line 842 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5570 "SearchBoolean.c"
-}
-
-
-void
-saved_search_reconstitute (SavedSearch* self)
-{
- SavedSearchTable* _tmp8_;
- SavedSearchTable* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GError * _inner_error_ = NULL;
-#line 845 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SAVED_SEARCH (self));
-#line 5584 "SearchBoolean.c"
- {
- SavedSearchID _tmp0_ = {0};
- SavedSearchDBTable* _tmp1_;
- SavedSearchDBTable* _tmp2_;
- SavedSearchRow* _tmp3_;
- SavedSearchID _tmp4_ = {0};
- SavedSearchID _tmp5_;
- SavedSearchRow* _tmp6_;
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = saved_search_db_table_get_instance ();
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = self->priv->row;
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_db_table_create_from_row (_tmp2_, _tmp3_, &_tmp4_, &_inner_error_);
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = _tmp4_;
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _database_table_unref0 (_tmp2_);
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _tmp5_;
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5611 "SearchBoolean.c"
- goto __catch86_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);
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return;
-#line 5620 "SearchBoolean.c"
- }
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = self->priv->row;
-#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_->search_id = _tmp0_;
-#line 5626 "SearchBoolean.c"
- }
- goto __finally86;
- __catch86_database_error:
- {
- GError* err = NULL;
- GError* _tmp7_;
-#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- err = _inner_error_;
-#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _inner_error_ = NULL;
-#line 849 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = err;
-#line 849 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- app_window_database_error (_tmp7_);
-#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_error_free0 (err);
-#line 5643 "SearchBoolean.c"
- }
- __finally86:
-#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"
- 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 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return;
-#line 5654 "SearchBoolean.c"
- }
-#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = saved_search_table_get_instance ();
-#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = _tmp8_;
-#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_add_to_map (_tmp9_, self);
-#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_table_unref0 (_tmp9_);
-#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
-#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp11_ = _tmp10_;
-#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_debug ("SearchBoolean.vala:853: Reconstituted %s", _tmp11_);
-#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp11_);
-#line 5672 "SearchBoolean.c"
-}
-
-
-gboolean
-saved_search_rename (SavedSearch* self,
- const gchar* new_name)
-{
- gboolean result = FALSE;
- SavedSearchTable* _tmp0_;
- SavedSearchTable* _tmp1_;
- gboolean _tmp2_;
- SavedSearchTable* _tmp10_;
- SavedSearchTable* _tmp11_;
- SavedSearchRow* _tmp12_;
- gchar* _tmp13_;
- SavedSearchTable* _tmp14_;
- SavedSearchTable* _tmp15_;
- LibraryWindow* _tmp16_;
- LibraryWindow* _tmp17_;
- GError * _inner_error_ = NULL;
-#line 857 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (self), FALSE);
-#line 857 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (new_name != NULL, FALSE);
-#line 858 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (is_string_empty (new_name)) {
-#line 859 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = FALSE;
-#line 859 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5703 "SearchBoolean.c"
- }
-#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = saved_search_table_get_instance ();
-#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_;
-#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = saved_search_table_exists (_tmp1_, new_name);
-#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_table_unref0 (_tmp1_);
-#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp2_) {
-#line 862 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = FALSE;
-#line 862 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5719 "SearchBoolean.c"
- }
- {
- SavedSearchDBTable* _tmp3_;
- SavedSearchDBTable* _tmp4_;
- SavedSearchRow* _tmp5_;
- SavedSearchID _tmp6_;
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = saved_search_db_table_get_instance ();
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = _tmp3_;
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = self->priv->row;
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = _tmp5_->search_id;
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_db_table_rename (_tmp4_, &_tmp6_, new_name, &_inner_error_);
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _database_table_unref0 (_tmp4_);
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5740 "SearchBoolean.c"
- gboolean _tmp7_ = FALSE;
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5744 "SearchBoolean.c"
- goto __catch87_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);
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return _tmp7_;
-#line 5753 "SearchBoolean.c"
- }
- }
- goto __finally87;
- __catch87_database_error:
- {
- GError* err = NULL;
- GError* _tmp8_;
-#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- err = _inner_error_;
-#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _inner_error_ = NULL;
-#line 867 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = err;
-#line 867 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- app_window_database_error (_tmp8_);
-#line 868 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = FALSE;
-#line 868 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_error_free0 (err);
-#line 868 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5775 "SearchBoolean.c"
- }
- __finally87:
-#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5780 "SearchBoolean.c"
- gboolean _tmp9_ = FALSE;
-#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.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/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return _tmp9_;
-#line 5788 "SearchBoolean.c"
- }
-#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = saved_search_table_get_instance ();
-#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp11_ = _tmp10_;
-#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_remove_from_map (_tmp11_, self);
-#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_table_unref0 (_tmp11_);
-#line 872 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp12_ = self->priv->row;
-#line 872 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp13_ = g_strdup (new_name);
-#line 872 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp12_->name);
-#line 872 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp12_->name = _tmp13_;
-#line 873 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp14_ = saved_search_table_get_instance ();
-#line 873 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp15_ = _tmp14_;
-#line 873 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_add_to_map (_tmp15_, self);
-#line 873 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_table_unref0 (_tmp15_);
-#line 875 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp16_ = library_window_get_app ();
-#line 875 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp17_ = _tmp16_;
-#line 875 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- library_window_switch_to_saved_search (_tmp17_, self);
-#line 875 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_tmp17_);
-#line 876 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = TRUE;
-#line 876 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5826 "SearchBoolean.c"
-}
-
-
-GeeList*
-saved_search_get_conditions (SavedSearch* self)
-{
- GeeList* result = NULL;
- SavedSearchRow* _tmp0_;
- GeeList* _tmp1_;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
-#line 879 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (self), NULL);
-#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->row;
-#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_->conditions;
-#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = gee_list_get_read_only_view (_tmp1_);
-#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = _tmp2_;
-#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
-#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5852 "SearchBoolean.c"
-}
-
-
-SearchOperator
-saved_search_get_operator (SavedSearch* self)
-{
- SearchOperator result = 0;
- SavedSearchRow* _tmp0_;
- SearchOperator _tmp1_;
-#line 883 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (self), 0);
-#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->row;
-#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_->operator;
-#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
-#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 5872 "SearchBoolean.c"
-}
-
-
-static void
-saved_search_class_init (SavedSearchClass * klass)
-{
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_parent_class = g_type_class_peek_parent (klass);
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchPrivate));
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) saved_search_real_get_name;
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) saved_search_real_to_string;
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) saved_search_real_get_typename;
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) saved_search_real_get_instance_id;
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- G_OBJECT_CLASS (klass)->finalize = saved_search_finalize;
-#line 5893 "SearchBoolean.c"
-}
-
-
-static void
-saved_search_instance_init (SavedSearch * self)
-{
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SAVED_SEARCH_GET_PRIVATE (self);
-#line 5902 "SearchBoolean.c"
-}
-
-
-static void
-saved_search_finalize (GObject * obj)
-{
- SavedSearch * self;
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH, SavedSearch);
-#line 792 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_row_unref0 (self->priv->row);
-#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- G_OBJECT_CLASS (saved_search_parent_class)->finalize (obj);
-#line 5916 "SearchBoolean.c"
-}
-
-
-GType
-saved_search_get_type (void)
-{
- static volatile gsize saved_search_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearch), 0, (GInstanceInitFunc) saved_search_instance_init, NULL };
- GType saved_search_type_id;
- saved_search_type_id = g_type_register_static (TYPE_DATA_SOURCE, "SavedSearch", &g_define_type_info, 0);
- g_once_init_leave (&saved_search_type_id__volatile, saved_search_type_id);
- }
- return saved_search_type_id__volatile;
-}
-
-
-static SavedSearchTable*
-saved_search_table_construct (GType object_type)
-{
- SavedSearchTable* self = NULL;
- GError * _inner_error_ = NULL;
-#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = (SavedSearchTable*) g_type_create_instance (object_type);
-#line 5941 "SearchBoolean.c"
- {
- GeeList* _tmp0_ = NULL;
- SavedSearchDBTable* _tmp1_;
- SavedSearchDBTable* _tmp2_;
- GeeList* _tmp3_;
- GeeList* _tmp4_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = saved_search_db_table_get_instance ();
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = saved_search_db_table_get_all_rows (_tmp2_, &_inner_error_);
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = _tmp3_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _database_table_unref0 (_tmp2_);
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _tmp4_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5964 "SearchBoolean.c"
- goto __catch88_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);
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return NULL;
-#line 5973 "SearchBoolean.c"
- }
- {
- GeeList* _row_list = NULL;
- GeeList* _tmp5_;
- gint _row_size = 0;
- GeeList* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- gint _row_index = 0;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = _g_object_ref0 (_tmp0_);
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _row_list = _tmp5_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = _row_list;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = _tmp7_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _row_size = _tmp8_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _row_index = -1;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- while (TRUE) {
-#line 5999 "SearchBoolean.c"
- gint _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- SavedSearchRow* row = NULL;
- GeeList* _tmp12_;
- gint _tmp13_;
- gpointer _tmp14_;
- SavedSearchRow* _tmp15_;
- SavedSearch* _tmp16_;
- SavedSearch* _tmp17_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = _row_index;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _row_index = _tmp9_ + 1;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = _row_index;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp11_ = _row_size;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!(_tmp10_ < _tmp11_)) {
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- break;
-#line 6022 "SearchBoolean.c"
- }
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp12_ = _row_list;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp13_ = _row_index;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp14_ = gee_list_get (_tmp12_, _tmp13_);
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- row = (SavedSearchRow*) _tmp14_;
-#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp15_ = row;
-#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp16_ = saved_search_new (_tmp15_, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp17_ = _tmp16_;
-#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_add_to_map (self, _tmp17_);
-#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_tmp17_);
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_row_unref0 (row);
-#line 6044 "SearchBoolean.c"
- }
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_row_list);
-#line 6048 "SearchBoolean.c"
- }
-#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_tmp0_);
-#line 6052 "SearchBoolean.c"
- }
- goto __finally88;
- __catch88_database_error:
- {
- GError* err = NULL;
- GError* _tmp18_;
-#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- err = _inner_error_;
-#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _inner_error_ = NULL;
-#line 903 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp18_ = err;
-#line 903 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- app_window_database_error (_tmp18_);
-#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_error_free0 (err);
-#line 6069 "SearchBoolean.c"
- }
- __finally88:
-#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"
- 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 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return NULL;
-#line 6080 "SearchBoolean.c"
- }
-#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self;
-#line 6084 "SearchBoolean.c"
-}
-
-
-static SavedSearchTable*
-saved_search_table_new (void)
-{
-#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return saved_search_table_construct (TYPE_SAVED_SEARCH_TABLE);
-#line 6093 "SearchBoolean.c"
-}
-
-
-static gpointer
-_saved_search_table_ref0 (gpointer self)
-{
-#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return self ? saved_search_table_ref (self) : NULL;
-#line 6102 "SearchBoolean.c"
-}
-
-
-SavedSearchTable*
-saved_search_table_get_instance (void)
-{
- SavedSearchTable* result = NULL;
- SavedSearchTable* _tmp0_;
- SavedSearchTable* _tmp2_;
- SavedSearchTable* _tmp3_;
-#line 909 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = saved_search_table_instance;
-#line 909 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_tmp0_ == NULL) {
-#line 6117 "SearchBoolean.c"
- SavedSearchTable* _tmp1_;
-#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = saved_search_table_new ();
-#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_table_unref0 (saved_search_table_instance);
-#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_instance = _tmp1_;
-#line 6125 "SearchBoolean.c"
- }
-#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = saved_search_table_instance;
-#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = _saved_search_table_ref0 (_tmp2_);
-#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
-#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 6135 "SearchBoolean.c"
-}
-
-
-GeeCollection*
-saved_search_table_get_all (SavedSearchTable* self)
-{
- GeeCollection* result = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
-#line 915 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL);
-#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->search_map;
-#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 6158 "SearchBoolean.c"
-}
-
-
-SavedSearch*
-saved_search_table_create (SavedSearchTable* self,
- const gchar* name,
- SearchOperator operator,
- GeeArrayList* conditions)
-{
- SavedSearch* result = NULL;
- SavedSearch* search = NULL;
- SavedSearch* _tmp7_;
- LibraryWindow* _tmp8_;
- LibraryWindow* _tmp9_;
- SavedSearch* _tmp10_;
- GError * _inner_error_ = NULL;
-#line 921 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL);
-#line 921 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 921 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (GEE_IS_ARRAY_LIST (conditions), NULL);
-#line 923 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search = NULL;
-#line 6183 "SearchBoolean.c"
- {
- SavedSearchRow* _tmp0_ = NULL;
- SavedSearchDBTable* _tmp1_;
- SavedSearchDBTable* _tmp2_;
- SavedSearchRow* _tmp3_;
- SavedSearchRow* _tmp4_;
- SavedSearch* _tmp5_;
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = saved_search_db_table_get_instance ();
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = saved_search_db_table_add (_tmp2_, name, operator, conditions, &_inner_error_);
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = _tmp3_;
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _database_table_unref0 (_tmp2_);
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _tmp4_;
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6207 "SearchBoolean.c"
- goto __catch89_database_error;
- }
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (search);
-#line 926 "/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);
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return NULL;
-#line 6218 "SearchBoolean.c"
- }
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = saved_search_new (_tmp0_, DATA_OBJECT_INVALID_OBJECT_ID);
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (search);
-#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- search = _tmp5_;
-#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _saved_search_row_unref0 (_tmp0_);
-#line 6228 "SearchBoolean.c"
- }
- goto __finally89;
- __catch89_database_error:
- {
- GError* err = NULL;
- GError* _tmp6_;
-#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- err = _inner_error_;
-#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _inner_error_ = NULL;
-#line 928 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = err;
-#line 928 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- app_window_database_error (_tmp6_);
-#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_error_free0 (err);
-#line 6245 "SearchBoolean.c"
- }
- __finally89:
-#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"
- _g_object_unref0 (search);
-#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.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 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return NULL;
-#line 6258 "SearchBoolean.c"
- }
-#line 932 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = search;
-#line 932 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_add_to_map (self, _tmp7_);
-#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = library_window_get_app ();
-#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = _tmp8_;
-#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = search;
-#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- library_window_switch_to_saved_search (_tmp9_, _tmp10_);
-#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (_tmp9_);
-#line 934 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = search;
-#line 934 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 6278 "SearchBoolean.c"
-}
-
-
-void
-saved_search_table_remove (SavedSearchTable* self,
- SavedSearch* search)
-{
- GError * _inner_error_ = NULL;
-#line 938 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SAVED_SEARCH_TABLE (self));
-#line 938 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 6291 "SearchBoolean.c"
- {
- SavedSearchDBTable* _tmp0_;
- SavedSearchDBTable* _tmp1_;
- SavedSearchID _tmp2_ = {0};
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = saved_search_db_table_get_instance ();
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = _tmp0_;
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_get_saved_search_id (search, &_tmp2_);
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_db_table_remove (_tmp1_, &_tmp2_, &_inner_error_);
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _database_table_unref0 (_tmp1_);
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6310 "SearchBoolean.c"
- goto __catch90_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);
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return;
-#line 6319 "SearchBoolean.c"
- }
- }
- goto __finally90;
- __catch90_database_error:
- {
- GError* err = NULL;
- GError* _tmp3_;
-#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- err = _inner_error_;
-#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _inner_error_ = NULL;
-#line 942 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = err;
-#line 942 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- app_window_database_error (_tmp3_);
-#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_error_free0 (err);
-#line 6337 "SearchBoolean.c"
- }
- __finally90:
-#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"
- 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 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_clear_error (&_inner_error_);
-#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return;
-#line 6348 "SearchBoolean.c"
- }
-#line 945 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_remove_from_map (self, search);
-#line 6352 "SearchBoolean.c"
-}
-
-
-void
-saved_search_table_add_to_map (SavedSearchTable* self,
- SavedSearch* search)
-{
- GeeHashMap* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 948 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SAVED_SEARCH_TABLE (self));
-#line 948 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->search_map;
-#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_, search);
-#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp2_);
-#line 950 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_signal_emit (self, saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL], 0, search);
-#line 6379 "SearchBoolean.c"
-}
-
-
-void
-saved_search_table_remove_from_map (SavedSearchTable* self,
- SavedSearch* search)
-{
- GeeHashMap* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 953 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SAVED_SEARCH_TABLE (self));
-#line 953 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->search_map;
-#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
-#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_, NULL);
-#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (_tmp2_);
-#line 955 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_signal_emit (self, saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL], 0, search);
-#line 6406 "SearchBoolean.c"
-}
-
-
-GeeIterable*
-saved_search_table_get_saved_searches (SavedSearchTable* self)
-{
- GeeIterable* result = NULL;
- GeeHashMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
-#line 958 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL);
-#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->search_map;
-#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable);
-#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 6429 "SearchBoolean.c"
-}
-
-
-gint
-saved_search_table_get_count (SavedSearchTable* self)
-{
- gint result = 0;
- GeeHashMap* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
-#line 962 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), 0);
-#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->search_map;
-#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _tmp1_;
-#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp2_;
-#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 6452 "SearchBoolean.c"
-}
-
-
-gboolean
-saved_search_table_exists (SavedSearchTable* self,
- const gchar* search_name)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
-#line 966 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), FALSE);
-#line 966 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (search_name != NULL, FALSE);
-#line 967 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = self->priv->search_map;
-#line 967 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search_name);
-#line 967 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 6472 "SearchBoolean.c"
-}
-
-
-gchar*
-saved_search_table_generate_unique_name (SavedSearchTable* self)
-{
- gchar* result = NULL;
- gchar* _tmp6_;
-#line 971 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL);
-#line 6483 "SearchBoolean.c"
- {
- gint ctr = 0;
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ctr = 1;
-#line 6488 "SearchBoolean.c"
- {
- gboolean _tmp0_ = FALSE;
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = TRUE;
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- while (TRUE) {
-#line 6495 "SearchBoolean.c"
- gint _tmp2_;
- gchar* name = NULL;
- gint _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!_tmp0_) {
-#line 6503 "SearchBoolean.c"
- gint _tmp1_;
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = ctr;
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ctr = _tmp1_ + 1;
-#line 6509 "SearchBoolean.c"
- }
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = FALSE;
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = ctr;
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!(_tmp2_ < G_MAXINT)) {
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- break;
-#line 6519 "SearchBoolean.c"
- }
-#line 973 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = ctr;
-#line 973 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = g_strdup_printf ("%s %d", RESOURCES_DEFAULT_SAVED_SEARCH_NAME, _tmp3_);
-#line 973 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- name = _tmp4_;
-#line 975 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = name;
-#line 975 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!saved_search_table_exists (self, _tmp5_)) {
-#line 976 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = name;
-#line 976 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 6535 "SearchBoolean.c"
- }
-#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_free0 (name);
-#line 6539 "SearchBoolean.c"
- }
- }
- }
-#line 978 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = g_strdup ("");
-#line 978 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp6_;
-#line 978 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return result;
-#line 6549 "SearchBoolean.c"
-}
-
-
-static void
-value_saved_search_table_init (GValue* value)
-{
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = NULL;
-#line 6558 "SearchBoolean.c"
-}
-
-
-static void
-value_saved_search_table_free_value (GValue* value)
-{
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (value->data[0].v_pointer) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_unref (value->data[0].v_pointer);
-#line 6569 "SearchBoolean.c"
- }
-}
-
-
-static void
-value_saved_search_table_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (src_value->data[0].v_pointer) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- dest_value->data[0].v_pointer = saved_search_table_ref (src_value->data[0].v_pointer);
-#line 6582 "SearchBoolean.c"
- } else {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 6586 "SearchBoolean.c"
- }
-}
-
-
-static gpointer
-value_saved_search_table_peek_pointer (const GValue* value)
-{
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return value->data[0].v_pointer;
-#line 6596 "SearchBoolean.c"
-}
-
-
-static gchar*
-value_saved_search_table_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (collect_values[0].v_pointer) {
-#line 6608 "SearchBoolean.c"
- SavedSearchTable * object;
- object = collect_values[0].v_pointer;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 6615 "SearchBoolean.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.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 6619 "SearchBoolean.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = saved_search_table_ref (object);
-#line 6623 "SearchBoolean.c"
- } else {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = NULL;
-#line 6627 "SearchBoolean.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return NULL;
-#line 6631 "SearchBoolean.c"
-}
-
-
-static gchar*
-value_saved_search_table_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SavedSearchTable ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!object_p) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 6647 "SearchBoolean.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (!value->data[0].v_pointer) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- *object_p = NULL;
-#line 6653 "SearchBoolean.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- *object_p = value->data[0].v_pointer;
-#line 6657 "SearchBoolean.c"
- } else {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- *object_p = saved_search_table_ref (value->data[0].v_pointer);
-#line 6661 "SearchBoolean.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return NULL;
-#line 6665 "SearchBoolean.c"
-}
-
-
-GParamSpec*
-param_spec_saved_search_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecSavedSearchTable* spec;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_SAVED_SEARCH_TABLE), NULL);
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return G_PARAM_SPEC (spec);
-#line 6685 "SearchBoolean.c"
-}
-
-
-gpointer
-value_get_saved_search_table (const GValue* value)
-{
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE), NULL);
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return value->data[0].v_pointer;
-#line 6696 "SearchBoolean.c"
-}
-
-
-void
-value_set_saved_search_table (GValue* value,
- gpointer v_object)
-{
- SavedSearchTable * old;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE));
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- old = value->data[0].v_pointer;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (v_object) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SAVED_SEARCH_TABLE));
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = v_object;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_ref (value->data[0].v_pointer);
-#line 6719 "SearchBoolean.c"
- } else {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = NULL;
-#line 6723 "SearchBoolean.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (old) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_unref (old);
-#line 6729 "SearchBoolean.c"
- }
-}
-
-
-void
-value_take_saved_search_table (GValue* value,
- gpointer v_object)
-{
- SavedSearchTable * old;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE));
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- old = value->data[0].v_pointer;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (v_object) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SAVED_SEARCH_TABLE));
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = v_object;
-#line 6751 "SearchBoolean.c"
- } else {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- value->data[0].v_pointer = NULL;
-#line 6755 "SearchBoolean.c"
- }
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (old) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_unref (old);
-#line 6761 "SearchBoolean.c"
- }
-}
-
-
-static void
-saved_search_table_class_init (SavedSearchTableClass * klass)
-{
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_parent_class = g_type_class_peek_parent (klass);
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SavedSearchTableClass *) klass)->finalize = saved_search_table_finalize;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_class_add_private (klass, sizeof (SavedSearchTablePrivate));
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL] = g_signal_new ("search-added", TYPE_SAVED_SEARCH_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL] = g_signal_new ("search-removed", TYPE_SAVED_SEARCH_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
-#line 6779 "SearchBoolean.c"
-}
-
-
-static void
-saved_search_table_instance_init (SavedSearchTable * self)
-{
- GeeHashMap* _tmp0_;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv = SAVED_SEARCH_TABLE_GET_PRIVATE (self);
-#line 892 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_SAVED_SEARCH, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 892 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->priv->search_map = _tmp0_;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self->ref_count = 1;
-#line 6795 "SearchBoolean.c"
-}
-
-
-static void
-saved_search_table_finalize (SavedSearchTable * obj)
-{
- SavedSearchTable * self;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_TABLE, SavedSearchTable);
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_signal_handlers_destroy (self);
-#line 892 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _g_object_unref0 (self->priv->search_map);
-#line 6809 "SearchBoolean.c"
-}
-
-
-GType
-saved_search_table_get_type (void)
-{
- static volatile gsize saved_search_table_type_id__volatile = 0;
- if (g_once_init_enter (&saved_search_table_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_saved_search_table_init, value_saved_search_table_free_value, value_saved_search_table_copy_value, value_saved_search_table_peek_pointer, "p", value_saved_search_table_collect_value, "p", value_saved_search_table_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SavedSearchTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchTable), 0, (GInstanceInitFunc) saved_search_table_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType saved_search_table_type_id;
- saved_search_table_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SavedSearchTable", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&saved_search_table_type_id__volatile, saved_search_table_type_id);
- }
- return saved_search_table_type_id__volatile;
-}
-
-
-gpointer
-saved_search_table_ref (gpointer instance)
-{
- SavedSearchTable * self;
- self = instance;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- return instance;
-#line 6838 "SearchBoolean.c"
-}
-
-
-void
-saved_search_table_unref (gpointer instance)
-{
- SavedSearchTable * self;
- self = instance;
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- SAVED_SEARCH_TABLE_GET_CLASS (self)->finalize (self);
-#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 6853 "SearchBoolean.c"
- }
-}
-
-
-
diff --git a/src/searches/SearchBoolean.vala b/src/searches/SearchBoolean.vala
index 1c6a5f3..2be8302 100644
--- a/src/searches/SearchBoolean.vala
+++ b/src/searches/SearchBoolean.vala
@@ -52,6 +52,9 @@ public abstract class SearchCondition {
TAG,
EVENT_NAME,
FILE_NAME,
+#if ENABLE_FACES
+ FACE,
+#endif
MEDIA_TYPE,
FLAG_STATE,
MODIFIED_STATE,
@@ -62,7 +65,10 @@ public abstract class SearchCondition {
public static SearchType[] as_array() {
return { ANY_TEXT, TITLE, TAG, COMMENT, EVENT_NAME, FILE_NAME,
- MEDIA_TYPE, FLAG_STATE, MODIFIED_STATE, RATING, DATE };
+#if ENABLE_FACES
+ FACE,
+#endif
+ MEDIA_TYPE, FLAG_STATE, MODIFIED_STATE, RATING, DATE };
}
// Sorts an array alphabetically by display name.
@@ -92,7 +98,10 @@ public abstract class SearchCondition {
case SearchType.FILE_NAME:
return "FILE_NAME";
-
+#if ENABLE_FACES
+ case SearchType.FACE:
+ return "FACE";
+#endif
case SearchType.MEDIA_TYPE:
return "MEDIA_TYPE";
@@ -131,7 +140,10 @@ public abstract class SearchCondition {
else if (str == "FILE_NAME")
return SearchType.FILE_NAME;
-
+#if ENABLE_FACES
+ else if (str == "FACE")
+ return SearchType.FACE;
+#endif
else if (str == "MEDIA_TYPE")
return SearchType.MEDIA_TYPE;
@@ -170,7 +182,10 @@ public abstract class SearchCondition {
case SearchType.FILE_NAME:
return _("File name");
-
+#if ENABLE_FACES
+ case SearchType.FACE:
+ return _("Face");
+#endif
case SearchType.MEDIA_TYPE:
return _("Media type");
@@ -346,6 +361,19 @@ public class SearchConditionText : SearchCondition {
ret |= string_match(text, String.remove_diacritics(source.get_basename().down()));
}
+#if ENABLE_FACES
+ if (SearchType.ANY_TEXT == search_type || SearchType.FACE == search_type) {
+ Gee.List<Face>? face_list = Face.global.fetch_for_source(source);
+ if (null != face_list) {
+ foreach (Face face in face_list) {
+ ret |= string_match(text, face.get_name().down());
+ }
+ } else {
+ ret |= string_match(text, null); // for IS_NOT_SET
+ }
+ }
+#endif
+
return (context == Context.DOES_NOT_CONTAIN) ? !ret : ret;
}
}
diff --git a/src/searches/Searches.c b/src/searches/Searches.c
deleted file mode 100644
index f13dde0..0000000
--- a/src/searches/Searches.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Searches.c generated by valac 0.40.4, the Vala compiler
- * generated from Searches.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* This file is the master unit file for the Searches unit. It should be edited to include
- * whatever code is deemed necessary.
- *
- * The init() and terminate() methods are mandatory.
- *
- * If the unit needs to be configured prior to initialization, add the proper parameters to
- * the preconfigure() method, implement it, and ensure in init() that it's been called.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void searches_preconfigure (void);
-void searches_init (GError** error);
-void searches_sidebar_entry_init (void);
-void searches_terminate (void);
-void searches_sidebar_entry_terminate (void);
-
-
-void
-searches_preconfigure (void)
-{
-}
-
-
-void
-searches_init (GError** error)
-{
-#line 23 "/home/jens/Source/shotwell/src/searches/Searches.vala"
- searches_sidebar_entry_init ();
-#line 44 "Searches.c"
-}
-
-
-void
-searches_terminate (void)
-{
-#line 27 "/home/jens/Source/shotwell/src/searches/Searches.vala"
- searches_sidebar_entry_terminate ();
-#line 53 "Searches.c"
-}
-
-
-
diff --git a/src/searches/SearchesBranch.c b/src/searches/SearchesBranch.c
deleted file mode 100644
index ce75f2a..0000000
--- a/src/searches/SearchesBranch.c
+++ /dev/null
@@ -1,1609 +0,0 @@
-/* SearchesBranch.c generated by valac 0.40.4, the Vala compiler
- * generated from SearchesBranch.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
-
-#define SEARCHES_TYPE_BRANCH (searches_branch_get_type ())
-#define SEARCHES_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_BRANCH, SearchesBranch))
-#define SEARCHES_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_BRANCH, SearchesBranchClass))
-#define SEARCHES_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_BRANCH))
-#define SEARCHES_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_BRANCH))
-#define SEARCHES_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_BRANCH, SearchesBranchClass))
-
-typedef struct _SearchesBranch SearchesBranch;
-typedef struct _SearchesBranchClass SearchesBranchClass;
-typedef struct _SearchesBranchPrivate SearchesBranchPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_SAVED_SEARCH (saved_search_get_type ())
-#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch))
-#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass))
-#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH))
-#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH))
-#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass))
-
-typedef struct _SavedSearch SavedSearch;
-typedef struct _SavedSearchClass SavedSearchClass;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-
-#define SEARCHES_TYPE_SIDEBAR_ENTRY (searches_sidebar_entry_get_type ())
-#define SEARCHES_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry))
-#define SEARCHES_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryClass))
-#define SEARCHES_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY))
-#define SEARCHES_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_SIDEBAR_ENTRY))
-#define SEARCHES_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryClass))
-
-typedef struct _SearchesSidebarEntry SearchesSidebarEntry;
-typedef struct _SearchesSidebarEntryClass SearchesSidebarEntryClass;
-enum {
- SEARCHES_BRANCH_0_PROPERTY,
- SEARCHES_BRANCH_NUM_PROPERTIES
-};
-static GParamSpec* searches_branch_properties[SEARCHES_BRANCH_NUM_PROPERTIES];
-
-#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ())
-#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable))
-#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE))
-#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE))
-#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass))
-
-typedef struct _SavedSearchTable SavedSearchTable;
-typedef struct _SavedSearchTableClass SavedSearchTableClass;
-#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
-#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
-#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-
-typedef struct _SidebarGrouping SidebarGrouping;
-typedef struct _SidebarGroupingClass SidebarGroupingClass;
-
-#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
-#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
-#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-
-typedef struct _SidebarHeader SidebarHeader;
-typedef struct _SidebarHeaderClass SidebarHeaderClass;
-
-#define SEARCHES_TYPE_HEADER (searches_header_get_type ())
-#define SEARCHES_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_HEADER, SearchesHeader))
-#define SEARCHES_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_HEADER, SearchesHeaderClass))
-#define SEARCHES_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_HEADER))
-#define SEARCHES_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_HEADER))
-#define SEARCHES_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_HEADER, SearchesHeaderClass))
-
-typedef struct _SearchesHeader SearchesHeader;
-typedef struct _SearchesHeaderClass SearchesHeaderClass;
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
-
-#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-
-#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
-#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
-#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
-#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
-
-typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
-typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
-typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate;
-
-#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ())
-#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry))
-#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY))
-#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface))
-
-typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry;
-typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface;
-typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-typedef struct _SearchesHeaderPrivate SearchesHeaderPrivate;
-enum {
- SEARCHES_HEADER_0_PROPERTY,
- SEARCHES_HEADER_NUM_PROPERTIES
-};
-static GParamSpec* searches_header_properties[SEARCHES_HEADER_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-
-#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ())
-#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry))
-#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY))
-#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface))
-
-typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry;
-typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface;
-typedef struct _SearchesSidebarEntryPrivate SearchesSidebarEntryPrivate;
-enum {
- SEARCHES_SIDEBAR_ENTRY_0_PROPERTY,
- SEARCHES_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* searches_sidebar_entry_properties[SEARCHES_SIDEBAR_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define TYPE_SAVED_SEARCH_PAGE (saved_search_page_get_type ())
-#define SAVED_SEARCH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_PAGE, SavedSearchPage))
-#define SAVED_SEARCH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_PAGE, SavedSearchPageClass))
-#define IS_SAVED_SEARCH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_PAGE))
-#define IS_SAVED_SEARCH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_PAGE))
-#define SAVED_SEARCH_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_PAGE, SavedSearchPageClass))
-
-typedef struct _SavedSearchPage SavedSearchPage;
-typedef struct _SavedSearchPageClass SavedSearchPageClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ())
-#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand))
-#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND))
-#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass))
-
-typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
-typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
-
-#define TYPE_RENAME_SAVED_SEARCH_COMMAND (rename_saved_search_command_get_type ())
-#define RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand))
-#define RENAME_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandClass))
-#define IS_RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND))
-#define IS_RENAME_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_SAVED_SEARCH_COMMAND))
-#define RENAME_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandClass))
-
-typedef struct _RenameSavedSearchCommand RenameSavedSearchCommand;
-typedef struct _RenameSavedSearchCommandClass RenameSavedSearchCommandClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ())
-#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand))
-#define DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass))
-#define IS_DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND))
-#define IS_DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND))
-#define DELETE_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass))
-
-typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand;
-typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SidebarBranch {
- GObject parent_instance;
- SidebarBranchPrivate * priv;
-};
-
-struct _SidebarBranchClass {
- GObjectClass parent_class;
-};
-
-struct _SearchesBranch {
- SidebarBranch parent_instance;
- SearchesBranchPrivate * priv;
-};
-
-struct _SearchesBranchClass {
- SidebarBranchClass parent_class;
-};
-
-struct _SearchesBranchPrivate {
- GeeHashMap* entry_map;
-};
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-typedef enum {
- SIDEBAR_BRANCH_OPTIONS_NONE = 0,
- SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
- SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
-} SidebarBranchOptions;
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _SidebarRenameableEntryIface {
- GTypeInterface parent_iface;
- void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
- gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
-};
-
-struct _SidebarGrouping {
- GObject parent_instance;
- SidebarGroupingPrivate * priv;
-};
-
-struct _SidebarGroupingClass {
- GObjectClass parent_class;
-};
-
-struct _SidebarEmphasizableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*is_emphasized) (SidebarEmphasizableEntry* self);
-};
-
-struct _SidebarHeader {
- SidebarGrouping parent_instance;
- SidebarHeaderPrivate * priv;
-};
-
-struct _SidebarHeaderClass {
- SidebarGroupingClass parent_class;
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SearchesHeader {
- SidebarHeader parent_instance;
- SearchesHeaderPrivate * priv;
-};
-
-struct _SearchesHeaderClass {
- SidebarHeaderClass parent_class;
-};
-
-struct _SearchesHeaderPrivate {
- GtkBuilder* builder;
- GtkMenu* context_menu;
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _SidebarDestroyableEntryIface {
- GTypeInterface parent_iface;
- void (*destroy_source) (SidebarDestroyableEntry* self);
-};
-
-struct _SearchesSidebarEntry {
- SidebarSimplePageEntry parent_instance;
- SearchesSidebarEntryPrivate * priv;
-};
-
-struct _SearchesSidebarEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _SearchesSidebarEntryPrivate {
- SavedSearch* search;
-};
-
-
-static gpointer searches_branch_parent_class = NULL;
-static gpointer searches_header_parent_class = NULL;
-static SidebarContextableIface * searches_header_sidebar_contextable_parent_iface = NULL;
-static gpointer searches_sidebar_entry_parent_class = NULL;
-static gchar* searches_sidebar_entry_single_search_icon;
-static gchar* searches_sidebar_entry_single_search_icon = NULL;
-static SidebarRenameableEntryIface * searches_sidebar_entry_sidebar_renameable_entry_parent_iface = NULL;
-static SidebarDestroyableEntryIface * searches_sidebar_entry_sidebar_destroyable_entry_parent_iface = NULL;
-
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-GType searches_branch_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType saved_search_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType searches_sidebar_entry_get_type (void) G_GNUC_CONST;
-#define SEARCHES_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCHES_TYPE_BRANCH, SearchesBranchPrivate))
-gpointer saved_search_table_ref (gpointer instance);
-void saved_search_table_unref (gpointer instance);
-GParamSpec* param_spec_saved_search_table (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_saved_search_table (GValue* value,
- gpointer v_object);
-void value_take_saved_search_table (GValue* value,
- gpointer v_object);
-gpointer value_get_saved_search_table (const GValue* value);
-GType saved_search_table_get_type (void) G_GNUC_CONST;
-SavedSearchTable* saved_search_table_get_instance (void);
-static void searches_branch_on_saved_search_added (SearchesBranch* self,
- SavedSearch* search);
-static void _searches_branch_on_saved_search_added_saved_search_table_search_added (SavedSearchTable* _sender,
- SavedSearch* search,
- gpointer self);
-static void searches_branch_on_saved_search_removed (SearchesBranch* self,
- SavedSearch* search);
-static void _searches_branch_on_saved_search_removed_saved_search_table_search_removed (SavedSearchTable* _sender,
- SavedSearch* search,
- gpointer self);
-SearchesBranch* searches_branch_new (void);
-SearchesBranch* searches_branch_construct (GType object_type);
-SearchesHeader* searches_header_new (void);
-SearchesHeader* searches_header_construct (GType object_type);
-GType sidebar_grouping_get_type (void) G_GNUC_CONST;
-GType sidebar_header_get_type (void) G_GNUC_CONST;
-GType searches_header_get_type (void) G_GNUC_CONST;
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-static gint searches_branch_comparator (SidebarEntry* a,
- SidebarEntry* b);
-static gint _searches_branch_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-GeeCollection* saved_search_table_get_all (SavedSearchTable* self);
-SearchesSidebarEntry* searches_branch_get_entry_for_saved_search (SearchesBranch* self,
- SavedSearch* search);
-gint saved_search_compare_names (void* a,
- void* b);
-SavedSearch* searches_sidebar_entry_for_saved_search (SearchesSidebarEntry* self);
-SearchesSidebarEntry* searches_sidebar_entry_new (SavedSearch* search);
-SearchesSidebarEntry* searches_sidebar_entry_construct (GType object_type,
- SavedSearch* search);
-void sidebar_branch_graft (SidebarBranch* self,
- SidebarEntry* parent,
- SidebarEntry* entry,
- GCompareFunc comparator);
-SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-void sidebar_branch_prune (SidebarBranch* self,
- SidebarEntry* entry);
-static void searches_branch_finalize (GObject * obj);
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-#define SEARCHES_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCHES_TYPE_HEADER, SearchesHeaderPrivate))
-SidebarHeader* sidebar_header_new (const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type,
- const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-static void searches_header_setup_context_menu (SearchesHeader* self);
-gchar* resources_get_ui (const gchar* filename);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-void application_panic (Application* self);
-static GtkMenu* searches_header_real_get_sidebar_context_menu (SidebarContextable* base,
- GdkEventButton* event);
-static void searches_header_finalize (GObject * obj);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST;
-#define SEARCHES_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryPrivate))
-SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
-void searches_sidebar_entry_init (void);
-void searches_sidebar_entry_terminate (void);
-static gchar* searches_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-gchar* data_object_get_name (DataObject* self);
-static gchar* searches_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static Page* searches_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-SavedSearchPage* saved_search_page_new (SavedSearch* search);
-SavedSearchPage* saved_search_page_construct (GType object_type,
- SavedSearch* search);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType saved_search_page_get_type (void) G_GNUC_CONST;
-static gboolean searches_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base);
-static void searches_sidebar_entry_real_rename (SidebarRenameableEntry* base,
- const gchar* new_name);
-gboolean saved_search_table_exists (SavedSearchTable* self,
- const gchar* search_name);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* app_window_get_command_manager (void);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-RenameSavedSearchCommand* rename_saved_search_command_new (SavedSearch* search,
- const gchar* new_name);
-RenameSavedSearchCommand* rename_saved_search_command_construct (GType object_type,
- SavedSearch* search,
- const gchar* new_name);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType single_data_source_command_get_type (void) G_GNUC_CONST;
-GType rename_saved_search_command_get_type (void) G_GNUC_CONST;
-gchar* resources_rename_search_exists_message (const gchar* name);
-static void searches_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base);
-gboolean dialogs_confirm_delete_saved_search (SavedSearch* search);
-DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search);
-DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type,
- SavedSearch* search);
-GType delete_saved_search_command_get_type (void) G_GNUC_CONST;
-static void searches_sidebar_entry_finalize (GObject * obj);
-
-
-static void
-_searches_branch_on_saved_search_added_saved_search_table_search_added (SavedSearchTable* _sender,
- SavedSearch* search,
- gpointer self)
-{
-#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_branch_on_saved_search_added ((SearchesBranch*) self, search);
-#line 678 "SearchesBranch.c"
-}
-
-
-static void
-_searches_branch_on_saved_search_removed_saved_search_table_search_removed (SavedSearchTable* _sender,
- SavedSearch* search,
- gpointer self)
-{
-#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_branch_on_saved_search_removed ((SearchesBranch*) self, search);
-#line 689 "SearchesBranch.c"
-}
-
-
-static gint
-_searches_branch_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = searches_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 701 "SearchesBranch.c"
-}
-
-
-SearchesBranch*
-searches_branch_construct (GType object_type)
-{
- SearchesBranch * self = NULL;
- SearchesHeader* _tmp0_;
- SearchesHeader* _tmp1_;
- SavedSearchTable* _tmp12_;
- SavedSearchTable* _tmp13_;
- SavedSearchTable* _tmp14_;
- SavedSearchTable* _tmp15_;
-#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = searches_header_new ();
-#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = (SearchesBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY | SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD) | SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD, _searches_branch_comparator_gcompare_func, NULL);
-#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 723 "SearchesBranch.c"
- {
- GeeIterator* _search_it = NULL;
- SavedSearchTable* _tmp2_;
- SavedSearchTable* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
- GeeIterator* _tmp7_;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp2_ = saved_search_table_get_instance ();
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp3_ = _tmp2_;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp4_ = saved_search_table_get_all (_tmp3_);
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp5_ = _tmp4_;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp7_ = _tmp6_;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (_tmp5_);
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _saved_search_table_unref0 (_tmp3_);
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _search_it = _tmp7_;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- while (TRUE) {
-#line 752 "SearchesBranch.c"
- GeeIterator* _tmp8_;
- SavedSearch* search = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- SavedSearch* _tmp11_;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp8_ = _search_it;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- break;
-#line 764 "SearchesBranch.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp9_ = _search_it;
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- search = (SavedSearch*) _tmp10_;
-#line 20 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp11_ = search;
-#line 20 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_branch_on_saved_search_added (self, _tmp11_);
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (search);
-#line 778 "SearchesBranch.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (_search_it);
-#line 782 "SearchesBranch.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp12_ = saved_search_table_get_instance ();
-#line 23 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp13_ = _tmp12_;
-#line 23 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_signal_connect_object (_tmp13_, "search-added", (GCallback) _searches_branch_on_saved_search_added_saved_search_table_search_added, self, 0);
-#line 23 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _saved_search_table_unref0 (_tmp13_);
-#line 24 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp14_ = saved_search_table_get_instance ();
-#line 24 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp15_ = _tmp14_;
-#line 24 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_signal_connect_object (_tmp15_, "search-removed", (GCallback) _searches_branch_on_saved_search_removed_saved_search_table_search_removed, self, 0);
-#line 24 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _saved_search_table_unref0 (_tmp15_);
-#line 11 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return self;
-#line 802 "SearchesBranch.c"
-}
-
-
-SearchesBranch*
-searches_branch_new (void)
-{
-#line 11 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return searches_branch_construct (SEARCHES_TYPE_BRANCH);
-#line 811 "SearchesBranch.c"
-}
-
-
-SearchesSidebarEntry*
-searches_branch_get_entry_for_saved_search (SearchesBranch* self,
- SavedSearch* search)
-{
- SearchesSidebarEntry* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_val_if_fail (SEARCHES_IS_BRANCH (self), NULL);
-#line 32 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
-#line 33 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = self->priv->entry_map;
-#line 33 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search);
-#line 33 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = (SearchesSidebarEntry*) _tmp1_;
-#line 33 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 834 "SearchesBranch.c"
-}
-
-
-static gint
-searches_branch_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- SavedSearch* _tmp0_;
- SavedSearch* _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 36 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 37 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- if (a == b) {
-#line 38 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = 0;
-#line 38 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 855 "SearchesBranch.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = searches_sidebar_entry_for_saved_search (G_TYPE_CHECK_INSTANCE_CAST (a, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry));
-#line 40 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = searches_sidebar_entry_for_saved_search (G_TYPE_CHECK_INSTANCE_CAST (b, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry));
-#line 40 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = saved_search_compare_names (_tmp0_, _tmp1_);
-#line 40 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 865 "SearchesBranch.c"
-}
-
-
-static void
-searches_branch_on_saved_search_added (SearchesBranch* self,
- SavedSearch* search)
-{
- SearchesSidebarEntry* entry = NULL;
- SearchesSidebarEntry* _tmp0_;
- GeeHashMap* _tmp1_;
- SidebarEntry* _tmp2_;
- SidebarEntry* _tmp3_;
-#line 44 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_if_fail (SEARCHES_IS_BRANCH (self));
-#line 44 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 45 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_debug ("SearchesBranch.vala:45: search added");
-#line 46 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = searches_sidebar_entry_new (search);
-#line 46 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- entry = _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = self->priv->entry_map;
-#line 47 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search, entry);
-#line 48 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 48 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp3_ = _tmp2_;
-#line 48 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
-#line 48 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 44 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (entry);
-#line 902 "SearchesBranch.c"
-}
-
-
-static void
-searches_branch_on_saved_search_removed (SearchesBranch* self,
- SavedSearch* search)
-{
- SearchesSidebarEntry* entry = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp2_;
- gboolean _tmp3_;
-#line 51 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_if_fail (SEARCHES_IS_BRANCH (self));
-#line 51 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 52 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_debug ("SearchesBranch.vala:52: search removed");
-#line 53 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = self->priv->entry_map;
-#line 53 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search);
-#line 53 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- entry = (SearchesSidebarEntry*) _tmp1_;
-#line 54 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _vala_assert (entry != NULL, "entry != null");
-#line 56 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp2_ = self->priv->entry_map;
-#line 56 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp3_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search, NULL);
-#line 56 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- is_removed = _tmp3_;
-#line 57 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _vala_assert (is_removed, "is_removed");
-#line 59 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 51 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (entry);
-#line 942 "SearchesBranch.c"
-}
-
-
-static void
-searches_branch_class_init (SearchesBranchClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_branch_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_type_class_add_private (klass, sizeof (SearchesBranchPrivate));
-#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = searches_branch_finalize;
-#line 955 "SearchesBranch.c"
-}
-
-
-static void
-searches_branch_instance_init (SearchesBranch * self)
-{
- GeeHashMap* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self->priv = SEARCHES_BRANCH_GET_PRIVATE (self);
-#line 8 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = gee_hash_map_new (TYPE_SAVED_SEARCH, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, SEARCHES_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 8 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self->priv->entry_map = _tmp0_;
-#line 969 "SearchesBranch.c"
-}
-
-
-static void
-searches_branch_finalize (GObject * obj)
-{
- SearchesBranch * self;
- SavedSearchTable* _tmp0_;
- SavedSearchTable* _tmp1_;
- guint _tmp2_;
- SavedSearchTable* _tmp3_;
- SavedSearchTable* _tmp4_;
- guint _tmp5_;
-#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCHES_TYPE_BRANCH, SearchesBranch);
-#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = saved_search_table_get_instance ();
-#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = _tmp0_;
-#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_signal_parse_name ("search-added", TYPE_SAVED_SEARCH_TABLE, &_tmp2_, NULL, FALSE);
-#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _searches_branch_on_saved_search_added_saved_search_table_search_added, self);
-#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _saved_search_table_unref0 (_tmp1_);
-#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp3_ = saved_search_table_get_instance ();
-#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp4_ = _tmp3_;
-#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_signal_parse_name ("search-removed", TYPE_SAVED_SEARCH_TABLE, &_tmp5_, NULL, FALSE);
-#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _searches_branch_on_saved_search_removed_saved_search_table_search_removed, self);
-#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _saved_search_table_unref0 (_tmp4_);
-#line 8 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (self->priv->entry_map);
-#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- G_OBJECT_CLASS (searches_branch_parent_class)->finalize (obj);
-#line 1009 "SearchesBranch.c"
-}
-
-
-GType
-searches_branch_get_type (void)
-{
- static volatile gsize searches_branch_type_id__volatile = 0;
- if (g_once_init_enter (&searches_branch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchesBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) searches_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchesBranch), 0, (GInstanceInitFunc) searches_branch_instance_init, NULL };
- GType searches_branch_type_id;
- searches_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "SearchesBranch", &g_define_type_info, 0);
- g_once_init_leave (&searches_branch_type_id__volatile, searches_branch_type_id);
- }
- return searches_branch_type_id__volatile;
-}
-
-
-SearchesHeader*
-searches_header_construct (GType object_type)
-{
- SearchesHeader * self = NULL;
-#line 68 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = (SearchesHeader*) sidebar_header_construct (object_type, _ ("Saved Searches"), _ ("Organize your saved searches"), TRUE);
-#line 69 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_header_setup_context_menu (self);
-#line 67 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return self;
-#line 1037 "SearchesBranch.c"
-}
-
-
-SearchesHeader*
-searches_header_new (void)
-{
-#line 67 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return searches_header_construct (SEARCHES_TYPE_HEADER);
-#line 1046 "SearchesBranch.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1055 "SearchesBranch.c"
-}
-
-
-static void
-searches_header_setup_context_menu (SearchesHeader* self)
-{
- GtkBuilder* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 72 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_if_fail (SEARCHES_IS_HEADER (self));
-#line 73 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = gtk_builder_new ();
-#line 73 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (self->priv->builder);
-#line 73 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self->priv->builder = _tmp0_;
-#line 1072 "SearchesBranch.c"
- {
- GtkBuilder* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GMenuModel* model = NULL;
- GtkBuilder* _tmp4_;
- GObject* _tmp5_;
- GMenuModel* _tmp6_;
- GMenuModel* _tmp7_;
- GtkMenu* _tmp8_;
-#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = self->priv->builder;
-#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp2_ = resources_get_ui ("search_sidebar_context.ui");
-#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp3_ = _tmp2_;
-#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- gtk_builder_add_from_resource (_tmp1_, _tmp3_, &_inner_error_);
-#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_free0 (_tmp3_);
-#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1095 "SearchesBranch.c"
- goto __catch85_g_error;
- }
-#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp4_ = self->priv->builder;
-#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp5_ = gtk_builder_get_object (_tmp4_, "popup-menu");
-#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp5_) : NULL);
-#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- model = _tmp6_;
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp7_ = model;
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp8_ = (GtkMenu*) gtk_menu_new_from_model (_tmp7_);
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_object_ref_sink (_tmp8_);
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (self->priv->context_menu);
-#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self->priv->context_menu = _tmp8_;
-#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (model);
-#line 1118 "SearchesBranch.c"
- }
- goto __finally85;
- __catch85_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- Application* _tmp13_;
- Application* _tmp14_;
-#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _error_ = _inner_error_;
-#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _inner_error_ = NULL;
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp9_ = _error_;
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp10_ = _tmp9_->message;
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp11_ = g_strdup_printf ("Error loading UI resource: %s", _tmp10_);
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp12_ = _tmp11_;
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- app_window_error_message (_tmp12_, NULL);
-#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_free0 (_tmp12_);
-#line 81 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp13_ = application_get_instance ();
-#line 81 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp14_ = _tmp13_;
-#line 81 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- application_panic (_tmp14_);
-#line 81 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _application_unref0 (_tmp14_);
-#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_error_free0 (_error_);
-#line 1156 "SearchesBranch.c"
- }
- __finally85:
-#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.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 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_clear_error (&_inner_error_);
-#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return;
-#line 1167 "SearchesBranch.c"
- }
-}
-
-
-static GtkMenu*
-searches_header_real_get_sidebar_context_menu (SidebarContextable* base,
- GdkEventButton* event)
-{
- SearchesHeader * self;
- GtkMenu* result = NULL;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp1_;
-#line 85 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_HEADER, SearchesHeader);
-#line 86 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = self->priv->context_menu;
-#line 86 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 86 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 1190 "SearchesBranch.c"
-}
-
-
-static void
-searches_header_class_init (SearchesHeaderClass * klass)
-{
-#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_header_parent_class = g_type_class_peek_parent (klass);
-#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_type_class_add_private (klass, sizeof (SearchesHeaderPrivate));
-#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = searches_header_finalize;
-#line 1203 "SearchesBranch.c"
-}
-
-
-static void
-searches_header_sidebar_contextable_interface_init (SidebarContextableIface * iface)
-{
-#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_header_sidebar_contextable_parent_iface = g_type_interface_peek_parent (iface);
-#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- iface->get_sidebar_context_menu = (GtkMenu* (*) (SidebarContextable *, GdkEventButton*)) searches_header_real_get_sidebar_context_menu;
-#line 1214 "SearchesBranch.c"
-}
-
-
-static void
-searches_header_instance_init (SearchesHeader * self)
-{
-#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self->priv = SEARCHES_HEADER_GET_PRIVATE (self);
-#line 65 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self->priv->context_menu = NULL;
-#line 1225 "SearchesBranch.c"
-}
-
-
-static void
-searches_header_finalize (GObject * obj)
-{
- SearchesHeader * self;
-#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCHES_TYPE_HEADER, SearchesHeader);
-#line 64 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (self->priv->builder);
-#line 65 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (self->priv->context_menu);
-#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- G_OBJECT_CLASS (searches_header_parent_class)->finalize (obj);
-#line 1241 "SearchesBranch.c"
-}
-
-
-GType
-searches_header_get_type (void)
-{
- static volatile gsize searches_header_type_id__volatile = 0;
- if (g_once_init_enter (&searches_header_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchesHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) searches_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchesHeader), 0, (GInstanceInitFunc) searches_header_instance_init, NULL };
- static const GInterfaceInfo sidebar_contextable_info = { (GInterfaceInitFunc) searches_header_sidebar_contextable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType searches_header_type_id;
- searches_header_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "SearchesHeader", &g_define_type_info, 0);
- g_type_add_interface_static (searches_header_type_id, SIDEBAR_TYPE_CONTEXTABLE, &sidebar_contextable_info);
- g_once_init_leave (&searches_header_type_id__volatile, searches_header_type_id);
- }
- return searches_header_type_id__volatile;
-}
-
-
-SearchesSidebarEntry*
-searches_sidebar_entry_construct (GType object_type,
- SavedSearch* search)
-{
- SearchesSidebarEntry * self = NULL;
- SavedSearch* _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
-#line 96 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = (SearchesSidebarEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 97 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = _g_object_ref0 (search);
-#line 97 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (self->priv->search);
-#line 97 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self->priv->search = _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return self;
-#line 1279 "SearchesBranch.c"
-}
-
-
-SearchesSidebarEntry*
-searches_sidebar_entry_new (SavedSearch* search)
-{
-#line 96 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return searches_sidebar_entry_construct (SEARCHES_TYPE_SIDEBAR_ENTRY, search);
-#line 1288 "SearchesBranch.c"
-}
-
-
-void
-searches_sidebar_entry_init (void)
-{
-}
-
-
-void
-searches_sidebar_entry_terminate (void)
-{
-}
-
-
-SavedSearch*
-searches_sidebar_entry_for_saved_search (SearchesSidebarEntry* self)
-{
- SavedSearch* result = NULL;
- SavedSearch* _tmp0_;
- SavedSearch* _tmp1_;
-#line 106 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_val_if_fail (SEARCHES_IS_SIDEBAR_ENTRY (self), NULL);
-#line 107 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = self->priv->search;
-#line 107 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 107 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = _tmp1_;
-#line 107 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 1320 "SearchesBranch.c"
-}
-
-
-static gchar*
-searches_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- SearchesSidebarEntry * self;
- gchar* result = NULL;
- SavedSearch* _tmp0_;
- gchar* _tmp1_;
-#line 110 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry);
-#line 111 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = self->priv->search;
-#line 111 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject));
-#line 111 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 1341 "SearchesBranch.c"
-}
-
-
-static gchar*
-searches_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- SearchesSidebarEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 114 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry);
-#line 115 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = searches_sidebar_entry_single_search_icon;
-#line 115 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 115 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = _tmp1_;
-#line 115 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 1362 "SearchesBranch.c"
-}
-
-
-static Page*
-searches_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- SearchesSidebarEntry * self;
- Page* result = NULL;
- SavedSearch* _tmp0_;
- SavedSearchPage* _tmp1_;
-#line 118 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry);
-#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = self->priv->search;
-#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = saved_search_page_new (_tmp0_);
-#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_object_ref_sink (_tmp1_);
-#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 1385 "SearchesBranch.c"
-}
-
-
-static gboolean
-searches_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base)
-{
- SearchesSidebarEntry * self;
- gboolean result = FALSE;
-#line 122 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry);
-#line 123 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- result = TRUE;
-#line 123 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- return result;
-#line 1400 "SearchesBranch.c"
-}
-
-
-static void
-searches_sidebar_entry_real_rename (SidebarRenameableEntry* base,
- const gchar* new_name)
-{
- SearchesSidebarEntry * self;
- SavedSearchTable* _tmp0_;
- SavedSearchTable* _tmp1_;
- gboolean _tmp2_;
-#line 126 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry);
-#line 126 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_return_if_fail (new_name != NULL);
-#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = saved_search_table_get_instance ();
-#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = _tmp0_;
-#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp2_ = !saved_search_table_exists (_tmp1_, new_name);
-#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _saved_search_table_unref0 (_tmp1_);
-#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- if (_tmp2_) {
-#line 1426 "SearchesBranch.c"
- CommandManager* _tmp3_;
- CommandManager* _tmp4_;
- SavedSearch* _tmp5_;
- RenameSavedSearchCommand* _tmp6_;
- RenameSavedSearchCommand* _tmp7_;
-#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp3_ = app_window_get_command_manager ();
-#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp4_ = _tmp3_;
-#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp5_ = self->priv->search;
-#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp6_ = rename_saved_search_command_new (_tmp5_, new_name);
-#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp7_ = _tmp6_;
-#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command));
-#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (_tmp7_);
-#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _command_manager_unref0 (_tmp4_);
-#line 1448 "SearchesBranch.c"
- } else {
- SavedSearch* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gboolean _tmp11_;
-#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp8_ = self->priv->search;
-#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp9_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
-#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp10_ = _tmp9_;
-#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp11_ = g_strcmp0 (new_name, _tmp10_) != 0;
-#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_free0 (_tmp10_);
-#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- if (_tmp11_) {
-#line 1466 "SearchesBranch.c"
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 130 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp12_ = resources_rename_search_exists_message (new_name);
-#line 130 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp13_ = _tmp12_;
-#line 130 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- app_window_error_message (_tmp13_, NULL);
-#line 130 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_free0 (_tmp13_);
-#line 1477 "SearchesBranch.c"
- }
- }
-}
-
-
-static void
-searches_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base)
-{
- SearchesSidebarEntry * self;
- SavedSearch* _tmp0_;
-#line 133 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry);
-#line 134 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = self->priv->search;
-#line 134 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- if (dialogs_confirm_delete_saved_search (_tmp0_)) {
-#line 1494 "SearchesBranch.c"
- CommandManager* _tmp1_;
- CommandManager* _tmp2_;
- SavedSearch* _tmp3_;
- DeleteSavedSearchCommand* _tmp4_;
- DeleteSavedSearchCommand* _tmp5_;
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp1_ = app_window_get_command_manager ();
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp2_ = _tmp1_;
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp3_ = self->priv->search;
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp4_ = delete_saved_search_command_new (_tmp3_);
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp5_ = _tmp4_;
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command));
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (_tmp5_);
-#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _command_manager_unref0 (_tmp2_);
-#line 1516 "SearchesBranch.c"
- }
-}
-
-
-static void
-searches_sidebar_entry_class_init (SearchesSidebarEntryClass * klass)
-{
- gchar* _tmp0_;
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- g_type_class_add_private (klass, sizeof (SearchesSidebarEntryPrivate));
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) searches_sidebar_entry_real_get_sidebar_name;
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) searches_sidebar_entry_real_get_sidebar_icon;
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) searches_sidebar_entry_real_create_page;
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = searches_sidebar_entry_finalize;
-#line 92 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _tmp0_ = g_strdup ("edit-find");
-#line 92 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_sidebar_entry_single_search_icon = _tmp0_;
-#line 1541 "SearchesBranch.c"
-}
-
-
-static void
-searches_sidebar_entry_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface)
-{
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_sidebar_entry_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- iface->is_user_renameable = (gboolean (*) (SidebarRenameableEntry *)) searches_sidebar_entry_real_is_user_renameable;
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- iface->rename = (void (*) (SidebarRenameableEntry *, const gchar*)) searches_sidebar_entry_real_rename;
-#line 1554 "SearchesBranch.c"
-}
-
-
-static void
-searches_sidebar_entry_sidebar_destroyable_entry_interface_init (SidebarDestroyableEntryIface * iface)
-{
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- searches_sidebar_entry_sidebar_destroyable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- iface->destroy_source = (void (*) (SidebarDestroyableEntry *)) searches_sidebar_entry_real_destroy_source;
-#line 1565 "SearchesBranch.c"
-}
-
-
-static void
-searches_sidebar_entry_instance_init (SearchesSidebarEntry * self)
-{
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self->priv = SEARCHES_SIDEBAR_ENTRY_GET_PRIVATE (self);
-#line 1574 "SearchesBranch.c"
-}
-
-
-static void
-searches_sidebar_entry_finalize (GObject * obj)
-{
- SearchesSidebarEntry * self;
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry);
-#line 94 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- _g_object_unref0 (self->priv->search);
-#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala"
- G_OBJECT_CLASS (searches_sidebar_entry_parent_class)->finalize (obj);
-#line 1588 "SearchesBranch.c"
-}
-
-
-GType
-searches_sidebar_entry_get_type (void)
-{
- static volatile gsize searches_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&searches_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SearchesSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) searches_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchesSidebarEntry), 0, (GInstanceInitFunc) searches_sidebar_entry_instance_init, NULL };
- static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) searches_sidebar_entry_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_destroyable_entry_info = { (GInterfaceInitFunc) searches_sidebar_entry_sidebar_destroyable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType searches_sidebar_entry_type_id;
- searches_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "SearchesSidebarEntry", &g_define_type_info, 0);
- g_type_add_interface_static (searches_sidebar_entry_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info);
- g_type_add_interface_static (searches_sidebar_entry_type_id, SIDEBAR_TYPE_DESTROYABLE_ENTRY, &sidebar_destroyable_entry_info);
- g_once_init_leave (&searches_sidebar_entry_type_id__volatile, searches_sidebar_entry_type_id);
- }
- return searches_sidebar_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/searches/SearchesBranch.vala b/src/searches/SearchesBranch.vala
index caf8ac6..22a38e2 100644
--- a/src/searches/SearchesBranch.vala
+++ b/src/searches/SearchesBranch.vala
@@ -89,7 +89,7 @@ public class Searches.Header : Sidebar.Header, Sidebar.Contextable {
public class Searches.SidebarEntry : Sidebar.SimplePageEntry, Sidebar.RenameableEntry,
Sidebar.DestroyableEntry {
- private static string single_search_icon = "edit-find";
+ private static string single_search_icon = "edit-find-symbolic";
private SavedSearch search;
diff --git a/src/shotwell-graphics-processor.h b/src/shotwell-graphics-processor.h
deleted file mode 100644
index 9dbd564..0000000
--- a/src/shotwell-graphics-processor.h
+++ /dev/null
@@ -1,767 +0,0 @@
-/* shotwell-graphics-processor.h generated by valac 0.40.4, the Vala compiler, do not modify */
-
-
-#ifndef __SRC_SHOTWELL_GRAPHICS_PROCESSOR_H__
-#define __SRC_SHOTWELL_GRAPHICS_PROCESSOR_H__
-
-#include <glib.h>
-#include <glib-object.h>
-#include <float.h>
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gio/gio.h>
-#include <gdk/gdk.h>
-
-G_BEGIN_DECLS
-
-
-#define TYPE_RGB_ANALYTIC_PIXEL (rgb_analytic_pixel_get_type ())
-typedef struct _RGBAnalyticPixel RGBAnalyticPixel;
-
-#define TYPE_HSV_ANALYTIC_PIXEL (hsv_analytic_pixel_get_type ())
-typedef struct _HSVAnalyticPixel HSVAnalyticPixel;
-
-#define TYPE_COMPOSITION_MODE (composition_mode_get_type ())
-
-#define TYPE_PIXEL_FORMAT (pixel_format_get_type ())
-
-#define TYPE_PIXEL_TRANSFORMATION_TYPE (pixel_transformation_type_get_type ())
-
-#define TYPE_PIXEL_TRANSFORMATION_BUNDLE (pixel_transformation_bundle_get_type ())
-#define PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle))
-#define PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
-#define IS_PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
-#define IS_PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
-#define PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
-
-typedef struct _PixelTransformationBundle PixelTransformationBundle;
-typedef struct _PixelTransformationBundleClass PixelTransformationBundleClass;
-typedef struct _PixelTransformationBundlePrivate PixelTransformationBundlePrivate;
-
-#define TYPE_PIXEL_TRANSFORMATION (pixel_transformation_get_type ())
-#define PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformation))
-#define PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass))
-#define IS_PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION))
-#define IS_PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION))
-#define PIXEL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass))
-
-typedef struct _PixelTransformation PixelTransformation;
-typedef struct _PixelTransformationClass PixelTransformationClass;
-
-#define TYPE_KEY_VALUE_MAP (key_value_map_get_type ())
-#define KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY_VALUE_MAP, KeyValueMap))
-#define KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY_VALUE_MAP, KeyValueMapClass))
-#define IS_KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY_VALUE_MAP))
-#define IS_KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY_VALUE_MAP))
-#define KEY_VALUE_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY_VALUE_MAP, KeyValueMapClass))
-
-typedef struct _KeyValueMap KeyValueMap;
-typedef struct _KeyValueMapClass KeyValueMapClass;
-
-#define TYPE_PIXEL_TRANSFORMER (pixel_transformer_get_type ())
-#define PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformer))
-#define PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass))
-#define IS_PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMER))
-#define IS_PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMER))
-#define PIXEL_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass))
-
-typedef struct _PixelTransformer PixelTransformer;
-typedef struct _PixelTransformerClass PixelTransformerClass;
-typedef struct _PixelTransformationPrivate PixelTransformationPrivate;
-
-#define TYPE_RGB_TRANSFORMATION (rgb_transformation_get_type ())
-#define RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformation))
-#define RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_TRANSFORMATION, RGBTransformationClass))
-#define IS_RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_TRANSFORMATION))
-#define IS_RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_TRANSFORMATION))
-#define RGB_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformationClass))
-
-typedef struct _RGBTransformation RGBTransformation;
-typedef struct _RGBTransformationClass RGBTransformationClass;
-typedef struct _RGBTransformationPrivate RGBTransformationPrivate;
-
-#define TYPE_HSV_TRANSFORMATION (hsv_transformation_get_type ())
-#define HSV_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HSV_TRANSFORMATION, HSVTransformation))
-#define HSV_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HSV_TRANSFORMATION, HSVTransformationClass))
-#define IS_HSV_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HSV_TRANSFORMATION))
-#define IS_HSV_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HSV_TRANSFORMATION))
-#define HSV_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HSV_TRANSFORMATION, HSVTransformationClass))
-
-typedef struct _HSVTransformation HSVTransformation;
-typedef struct _HSVTransformationClass HSVTransformationClass;
-typedef struct _HSVTransformationPrivate HSVTransformationPrivate;
-
-#define TYPE_TINT_TRANSFORMATION (tint_transformation_get_type ())
-#define TINT_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TINT_TRANSFORMATION, TintTransformation))
-#define TINT_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TINT_TRANSFORMATION, TintTransformationClass))
-#define IS_TINT_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TINT_TRANSFORMATION))
-#define IS_TINT_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TINT_TRANSFORMATION))
-#define TINT_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TINT_TRANSFORMATION, TintTransformationClass))
-
-typedef struct _TintTransformation TintTransformation;
-typedef struct _TintTransformationClass TintTransformationClass;
-typedef struct _TintTransformationPrivate TintTransformationPrivate;
-
-#define TYPE_TEMPERATURE_TRANSFORMATION (temperature_transformation_get_type ())
-#define TEMPERATURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation))
-#define TEMPERATURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationClass))
-#define IS_TEMPERATURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEMPERATURE_TRANSFORMATION))
-#define IS_TEMPERATURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEMPERATURE_TRANSFORMATION))
-#define TEMPERATURE_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationClass))
-
-typedef struct _TemperatureTransformation TemperatureTransformation;
-typedef struct _TemperatureTransformationClass TemperatureTransformationClass;
-typedef struct _TemperatureTransformationPrivate TemperatureTransformationPrivate;
-
-#define TYPE_SATURATION_TRANSFORMATION (saturation_transformation_get_type ())
-#define SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformation))
-#define SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass))
-#define IS_SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SATURATION_TRANSFORMATION))
-#define IS_SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SATURATION_TRANSFORMATION))
-#define SATURATION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass))
-
-typedef struct _SaturationTransformation SaturationTransformation;
-typedef struct _SaturationTransformationClass SaturationTransformationClass;
-typedef struct _SaturationTransformationPrivate SaturationTransformationPrivate;
-
-#define TYPE_EXPOSURE_TRANSFORMATION (exposure_transformation_get_type ())
-#define EXPOSURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation))
-#define EXPOSURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationClass))
-#define IS_EXPOSURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPOSURE_TRANSFORMATION))
-#define IS_EXPOSURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPOSURE_TRANSFORMATION))
-#define EXPOSURE_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationClass))
-
-typedef struct _ExposureTransformation ExposureTransformation;
-typedef struct _ExposureTransformationClass ExposureTransformationClass;
-typedef struct _ExposureTransformationPrivate ExposureTransformationPrivate;
-
-#define TYPE_CONTRAST_TRANSFORMATION (contrast_transformation_get_type ())
-#define CONTRAST_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation))
-#define CONTRAST_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationClass))
-#define IS_CONTRAST_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTRAST_TRANSFORMATION))
-#define IS_CONTRAST_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTRAST_TRANSFORMATION))
-#define CONTRAST_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationClass))
-
-typedef struct _ContrastTransformation ContrastTransformation;
-typedef struct _ContrastTransformationClass ContrastTransformationClass;
-typedef struct _ContrastTransformationPrivate ContrastTransformationPrivate;
-typedef struct _PixelTransformerPrivate PixelTransformerPrivate;
-
-#define TYPE_RGB_HISTOGRAM (rgb_histogram_get_type ())
-#define RGB_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_HISTOGRAM, RGBHistogram))
-#define RGB_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_HISTOGRAM, RGBHistogramClass))
-#define IS_RGB_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_HISTOGRAM))
-#define IS_RGB_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_HISTOGRAM))
-#define RGB_HISTOGRAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_HISTOGRAM, RGBHistogramClass))
-
-typedef struct _RGBHistogram RGBHistogram;
-typedef struct _RGBHistogramClass RGBHistogramClass;
-typedef struct _RGBHistogramPrivate RGBHistogramPrivate;
-
-#define TYPE_INTENSITY_HISTOGRAM (intensity_histogram_get_type ())
-#define INTENSITY_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INTENSITY_HISTOGRAM, IntensityHistogram))
-#define INTENSITY_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramClass))
-#define IS_INTENSITY_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INTENSITY_HISTOGRAM))
-#define IS_INTENSITY_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INTENSITY_HISTOGRAM))
-#define INTENSITY_HISTOGRAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramClass))
-
-typedef struct _IntensityHistogram IntensityHistogram;
-typedef struct _IntensityHistogramClass IntensityHistogramClass;
-typedef struct _IntensityHistogramPrivate IntensityHistogramPrivate;
-
-#define TYPE_EXPANSION_TRANSFORMATION (expansion_transformation_get_type ())
-#define EXPANSION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation))
-#define EXPANSION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationClass))
-#define IS_EXPANSION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPANSION_TRANSFORMATION))
-#define IS_EXPANSION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPANSION_TRANSFORMATION))
-#define EXPANSION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationClass))
-
-typedef struct _ExpansionTransformation ExpansionTransformation;
-typedef struct _ExpansionTransformationClass ExpansionTransformationClass;
-typedef struct _ExpansionTransformationPrivate ExpansionTransformationPrivate;
-
-#define TYPE_SHADOW_DETAIL_TRANSFORMATION (shadow_detail_transformation_get_type ())
-#define SHADOW_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation))
-#define SHADOW_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationClass))
-#define IS_SHADOW_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION))
-#define IS_SHADOW_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHADOW_DETAIL_TRANSFORMATION))
-#define SHADOW_DETAIL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationClass))
-
-typedef struct _ShadowDetailTransformation ShadowDetailTransformation;
-typedef struct _ShadowDetailTransformationClass ShadowDetailTransformationClass;
-typedef struct _ShadowDetailTransformationPrivate ShadowDetailTransformationPrivate;
-
-#define TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION (hermite_gamma_approximation_function_get_type ())
-#define HERMITE_GAMMA_APPROXIMATION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunction))
-#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionClass))
-#define IS_HERMITE_GAMMA_APPROXIMATION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION))
-#define IS_HERMITE_GAMMA_APPROXIMATION_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION))
-#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionClass))
-
-typedef struct _HermiteGammaApproximationFunction HermiteGammaApproximationFunction;
-typedef struct _HermiteGammaApproximationFunctionClass HermiteGammaApproximationFunctionClass;
-typedef struct _HermiteGammaApproximationFunctionPrivate HermiteGammaApproximationFunctionPrivate;
-
-#define TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION (highlight_detail_transformation_get_type ())
-#define HIGHLIGHT_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation))
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationClass))
-#define IS_HIGHLIGHT_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION))
-#define IS_HIGHLIGHT_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION))
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationClass))
-
-typedef struct _HighlightDetailTransformation HighlightDetailTransformation;
-typedef struct _HighlightDetailTransformationClass HighlightDetailTransformationClass;
-typedef struct _HighlightDetailTransformationPrivate HighlightDetailTransformationPrivate;
-typedef struct _KeyValueMapPrivate KeyValueMapPrivate;
-
-struct _RGBAnalyticPixel {
- gfloat red;
- gfloat green;
- gfloat blue;
-};
-
-struct _HSVAnalyticPixel {
- gfloat hue;
- gfloat saturation;
- gfloat light_value;
-};
-
-typedef enum {
- COMPOSITION_MODE_NONE,
- COMPOSITION_MODE_RGB_MATRIX,
- COMPOSITION_MODE_HSV_LOOKUP
-} CompositionMode;
-
-typedef enum {
- PIXEL_FORMAT_RGB,
- PIXEL_FORMAT_HSV
-} PixelFormat;
-
-typedef enum {
- PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION,
- PIXEL_TRANSFORMATION_TYPE_SHADOWS,
- PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS,
- PIXEL_TRANSFORMATION_TYPE_TEMPERATURE,
- PIXEL_TRANSFORMATION_TYPE_TINT,
- PIXEL_TRANSFORMATION_TYPE_SATURATION,
- PIXEL_TRANSFORMATION_TYPE_EXPOSURE,
- PIXEL_TRANSFORMATION_TYPE_CONTRAST
-} PixelTransformationType;
-
-struct _PixelTransformationBundle {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PixelTransformationBundlePrivate * priv;
-};
-
-struct _PixelTransformationBundleClass {
- GTypeClass parent_class;
- void (*finalize) (PixelTransformationBundle *self);
-};
-
-struct _PixelTransformation {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PixelTransformationPrivate * priv;
-};
-
-struct _PixelTransformationClass {
- GTypeClass parent_class;
- void (*finalize) (PixelTransformation *self);
- CompositionMode (*get_composition_mode) (PixelTransformation* self);
- void (*compose_with) (PixelTransformation* self, PixelTransformation* other);
- gboolean (*is_identity) (PixelTransformation* self);
- void (*transform_pixel_hsv) (PixelTransformation* self, HSVAnalyticPixel* p, HSVAnalyticPixel* result);
- void (*transform_pixel_rgb) (PixelTransformation* self, RGBAnalyticPixel* p, RGBAnalyticPixel* result);
- gchar* (*to_string) (PixelTransformation* self);
- PixelTransformation* (*copy) (PixelTransformation* self);
-};
-
-struct _RGBTransformation {
- PixelTransformation parent_instance;
- RGBTransformationPrivate * priv;
- gfloat* matrix_entries;
- gint matrix_entries_length1;
- gboolean identity;
-};
-
-struct _RGBTransformationClass {
- PixelTransformationClass parent_class;
-};
-
-struct _HSVTransformation {
- PixelTransformation parent_instance;
- HSVTransformationPrivate * priv;
- gfloat remap_table[256];
-};
-
-struct _HSVTransformationClass {
- PixelTransformationClass parent_class;
-};
-
-struct _TintTransformation {
- RGBTransformation parent_instance;
- TintTransformationPrivate * priv;
-};
-
-struct _TintTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _TemperatureTransformation {
- RGBTransformation parent_instance;
- TemperatureTransformationPrivate * priv;
-};
-
-struct _TemperatureTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _SaturationTransformation {
- RGBTransformation parent_instance;
- SaturationTransformationPrivate * priv;
-};
-
-struct _SaturationTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _ExposureTransformation {
- RGBTransformation parent_instance;
- ExposureTransformationPrivate * priv;
-};
-
-struct _ExposureTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _ContrastTransformation {
- RGBTransformation parent_instance;
- ContrastTransformationPrivate * priv;
-};
-
-struct _ContrastTransformationClass {
- RGBTransformationClass parent_class;
-};
-
-struct _PixelTransformer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- PixelTransformerPrivate * priv;
- PixelTransformation** optimized_transformations;
- gint optimized_transformations_length1;
- gint optimized_slots_used;
-};
-
-struct _PixelTransformerClass {
- GTypeClass parent_class;
- void (*finalize) (PixelTransformer *self);
-};
-
-struct _RGBHistogram {
- GTypeInstance parent_instance;
- volatile int ref_count;
- RGBHistogramPrivate * priv;
-};
-
-struct _RGBHistogramClass {
- GTypeClass parent_class;
- void (*finalize) (RGBHistogram *self);
-};
-
-struct _IntensityHistogram {
- GTypeInstance parent_instance;
- volatile int ref_count;
- IntensityHistogramPrivate * priv;
-};
-
-struct _IntensityHistogramClass {
- GTypeClass parent_class;
- void (*finalize) (IntensityHistogram *self);
-};
-
-struct _ExpansionTransformation {
- HSVTransformation parent_instance;
- ExpansionTransformationPrivate * priv;
-};
-
-struct _ExpansionTransformationClass {
- HSVTransformationClass parent_class;
-};
-
-struct _ShadowDetailTransformation {
- HSVTransformation parent_instance;
- ShadowDetailTransformationPrivate * priv;
-};
-
-struct _ShadowDetailTransformationClass {
- HSVTransformationClass parent_class;
-};
-
-struct _HermiteGammaApproximationFunction {
- GTypeInstance parent_instance;
- volatile int ref_count;
- HermiteGammaApproximationFunctionPrivate * priv;
-};
-
-struct _HermiteGammaApproximationFunctionClass {
- GTypeClass parent_class;
- void (*finalize) (HermiteGammaApproximationFunction *self);
-};
-
-struct _HighlightDetailTransformation {
- HSVTransformation parent_instance;
- HighlightDetailTransformationPrivate * priv;
-};
-
-struct _HighlightDetailTransformationClass {
- HSVTransformationClass parent_class;
-};
-
-struct _KeyValueMap {
- GTypeInstance parent_instance;
- volatile int ref_count;
- KeyValueMapPrivate * priv;
-};
-
-struct _KeyValueMapClass {
- GTypeClass parent_class;
- void (*finalize) (KeyValueMap *self);
-};
-
-
-GType rgb_analytic_pixel_get_type (void) G_GNUC_CONST;
-RGBAnalyticPixel* rgb_analytic_pixel_dup (const RGBAnalyticPixel* self);
-void rgb_analytic_pixel_free (RGBAnalyticPixel* self);
-void rgb_analytic_pixel_init (RGBAnalyticPixel *self);
-void rgb_analytic_pixel_init_from_components (RGBAnalyticPixel *self,
- gfloat red,
- gfloat green,
- gfloat blue);
-void rgb_analytic_pixel_init_from_quantized_components (RGBAnalyticPixel *self,
- guchar red_quantized,
- guchar green_quantized,
- guchar blue_quantized);
-GType hsv_analytic_pixel_get_type (void) G_GNUC_CONST;
-HSVAnalyticPixel* hsv_analytic_pixel_dup (const HSVAnalyticPixel* self);
-void hsv_analytic_pixel_free (HSVAnalyticPixel* self);
-void rgb_analytic_pixel_init_from_hsv (RGBAnalyticPixel *self,
- HSVAnalyticPixel* hsv_pixel);
-guchar rgb_analytic_pixel_quantized_red (RGBAnalyticPixel *self);
-guchar rgb_analytic_pixel_quantized_green (RGBAnalyticPixel *self);
-guchar rgb_analytic_pixel_quantized_blue (RGBAnalyticPixel *self);
-gboolean rgb_analytic_pixel_equals (RGBAnalyticPixel *self,
- RGBAnalyticPixel* rhs);
-guint rgb_analytic_pixel_hash_code (RGBAnalyticPixel *self);
-void rgb_analytic_pixel_to_hsv (RGBAnalyticPixel *self,
- HSVAnalyticPixel* result);
-void hsv_analytic_pixel_init (HSVAnalyticPixel *self);
-void hsv_analytic_pixel_init_from_components (HSVAnalyticPixel *self,
- gfloat hue,
- gfloat saturation,
- gfloat light_value);
-void hsv_analytic_pixel_init_from_quantized_components (HSVAnalyticPixel *self,
- guchar hue_quantized,
- guchar saturation_quantized,
- guchar light_value_quantized);
-void hsv_analytic_pixel_init_from_rgb (HSVAnalyticPixel *self,
- RGBAnalyticPixel* p);
-void hsv_analytic_pixel_to_rgb (HSVAnalyticPixel *self,
- RGBAnalyticPixel* result);
-gboolean hsv_analytic_pixel_equals (HSVAnalyticPixel *self,
- HSVAnalyticPixel* rhs);
-guint hsv_analytic_pixel_hash_code (HSVAnalyticPixel *self);
-GType composition_mode_get_type (void) G_GNUC_CONST;
-GType pixel_format_get_type (void) G_GNUC_CONST;
-GType pixel_transformation_type_get_type (void) G_GNUC_CONST;
-gpointer pixel_transformation_bundle_ref (gpointer instance);
-void pixel_transformation_bundle_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformation_bundle (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_pixel_transformation_bundle (GValue* value,
- gpointer v_object);
-void value_take_pixel_transformation_bundle (GValue* value,
- gpointer v_object);
-gpointer value_get_pixel_transformation_bundle (const GValue* value);
-GType pixel_transformation_bundle_get_type (void) G_GNUC_CONST;
-PixelTransformationBundle* pixel_transformation_bundle_new (void);
-PixelTransformationBundle* pixel_transformation_bundle_construct (GType object_type);
-PixelTransformationBundle* pixel_transformation_bundle_get_copied_color_adjustments (void);
-void pixel_transformation_bundle_set_copied_color_adjustments (PixelTransformationBundle* adjustments);
-gboolean pixel_transformation_bundle_has_copied_color_adjustments (void);
-gpointer pixel_transformation_ref (gpointer instance);
-void pixel_transformation_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformation (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_pixel_transformation (GValue* value,
- gpointer v_object);
-void value_take_pixel_transformation (GValue* value,
- gpointer v_object);
-gpointer value_get_pixel_transformation (const GValue* value);
-GType pixel_transformation_get_type (void) G_GNUC_CONST;
-void pixel_transformation_bundle_set (PixelTransformationBundle* self,
- PixelTransformation* transformation);
-void pixel_transformation_bundle_set_to_identity (PixelTransformationBundle* self);
-gpointer key_value_map_ref (gpointer instance);
-void key_value_map_unref (gpointer instance);
-GParamSpec* param_spec_key_value_map (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_key_value_map (GValue* value,
- gpointer v_object);
-void value_take_key_value_map (GValue* value,
- gpointer v_object);
-gpointer value_get_key_value_map (const GValue* value);
-GType key_value_map_get_type (void) G_GNUC_CONST;
-void pixel_transformation_bundle_load (PixelTransformationBundle* self,
- KeyValueMap* store);
-KeyValueMap* pixel_transformation_bundle_save (PixelTransformationBundle* self,
- const gchar* group);
-gint pixel_transformation_bundle_get_count (PixelTransformationBundle* self);
-PixelTransformation* pixel_transformation_bundle_get_transformation (PixelTransformationBundle* self,
- PixelTransformationType type);
-GeeIterable* pixel_transformation_bundle_get_transformations (PixelTransformationBundle* self);
-gboolean pixel_transformation_bundle_is_identity (PixelTransformationBundle* self);
-gpointer pixel_transformer_ref (gpointer instance);
-void pixel_transformer_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_pixel_transformer (GValue* value,
- gpointer v_object);
-void value_take_pixel_transformer (GValue* value,
- gpointer v_object);
-gpointer value_get_pixel_transformer (const GValue* value);
-GType pixel_transformer_get_type (void) G_GNUC_CONST;
-PixelTransformer* pixel_transformation_bundle_generate_transformer (PixelTransformationBundle* self);
-PixelTransformationBundle* pixel_transformation_bundle_copy (PixelTransformationBundle* self);
-PixelTransformation* pixel_transformation_construct (GType object_type,
- PixelTransformationType type,
- PixelFormat preferred_format);
-PixelTransformationType pixel_transformation_get_transformation_type (PixelTransformation* self);
-PixelFormat pixel_transformation_get_preferred_format (PixelTransformation* self);
-CompositionMode pixel_transformation_get_composition_mode (PixelTransformation* self);
-void pixel_transformation_compose_with (PixelTransformation* self,
- PixelTransformation* other);
-gboolean pixel_transformation_is_identity (PixelTransformation* self);
-void pixel_transformation_transform_pixel_hsv (PixelTransformation* self,
- HSVAnalyticPixel* p,
- HSVAnalyticPixel* result);
-void pixel_transformation_transform_pixel_rgb (PixelTransformation* self,
- RGBAnalyticPixel* p,
- RGBAnalyticPixel* result);
-gchar* pixel_transformation_to_string (PixelTransformation* self);
-PixelTransformation* pixel_transformation_copy (PixelTransformation* self);
-GType rgb_transformation_get_type (void) G_GNUC_CONST;
-#define RGB_TRANSFORMATION_MATRIX_SIZE 16
-RGBTransformation* rgb_transformation_new (PixelTransformationType type);
-RGBTransformation* rgb_transformation_construct (GType object_type,
- PixelTransformationType type);
-GType hsv_transformation_get_type (void) G_GNUC_CONST;
-HSVTransformation* hsv_transformation_construct (GType object_type,
- PixelTransformationType type);
-GType tint_transformation_get_type (void) G_GNUC_CONST;
-#define TINT_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define TINT_TRANSFORMATION_MAX_PARAMETER 16.0f
-TintTransformation* tint_transformation_new (gfloat client_param);
-TintTransformation* tint_transformation_construct (GType object_type,
- gfloat client_param);
-gfloat tint_transformation_get_parameter (TintTransformation* self);
-GType temperature_transformation_get_type (void) G_GNUC_CONST;
-#define TEMPERATURE_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define TEMPERATURE_TRANSFORMATION_MAX_PARAMETER 16.0f
-TemperatureTransformation* temperature_transformation_new (gfloat client_parameter);
-TemperatureTransformation* temperature_transformation_construct (GType object_type,
- gfloat client_parameter);
-gfloat temperature_transformation_get_parameter (TemperatureTransformation* self);
-GType saturation_transformation_get_type (void) G_GNUC_CONST;
-#define SATURATION_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define SATURATION_TRANSFORMATION_MAX_PARAMETER 16.0f
-SaturationTransformation* saturation_transformation_new (gfloat client_parameter);
-SaturationTransformation* saturation_transformation_construct (GType object_type,
- gfloat client_parameter);
-gfloat saturation_transformation_get_parameter (SaturationTransformation* self);
-GType exposure_transformation_get_type (void) G_GNUC_CONST;
-#define EXPOSURE_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define EXPOSURE_TRANSFORMATION_MAX_PARAMETER 16.0f
-ExposureTransformation* exposure_transformation_new (gfloat client_parameter);
-ExposureTransformation* exposure_transformation_construct (GType object_type,
- gfloat client_parameter);
-gfloat exposure_transformation_get_parameter (ExposureTransformation* self);
-GType contrast_transformation_get_type (void) G_GNUC_CONST;
-#define CONTRAST_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-#define CONTRAST_TRANSFORMATION_MAX_PARAMETER 16.0f
-ContrastTransformation* contrast_transformation_new (gfloat client_parameter);
-ContrastTransformation* contrast_transformation_construct (GType object_type,
- gfloat client_parameter);
-gfloat contrast_transformation_get_parameter (ContrastTransformation* self);
-PixelTransformer* pixel_transformer_new (void);
-PixelTransformer* pixel_transformer_construct (GType object_type);
-PixelTransformer* pixel_transformer_copy (PixelTransformer* self);
-void pixel_transformer_attach_transformation (PixelTransformer* self,
- PixelTransformation* trans);
-void pixel_transformer_detach_transformation (PixelTransformer* self,
- PixelTransformation* victim);
-void pixel_transformer_replace_transformation (PixelTransformer* self,
- PixelTransformation* old_trans,
- PixelTransformation* new_trans);
-void pixel_transformer_transform_pixbuf (PixelTransformer* self,
- GdkPixbuf* pixbuf,
- GCancellable* cancellable);
-void pixel_transformer_transform_from_fp (PixelTransformer* self,
- gfloat** fp_pixel_cache,
- int* fp_pixel_cache_length1,
- GdkPixbuf* dest);
-void pixel_transformer_transform_to_other_pixbuf (PixelTransformer* self,
- GdkPixbuf* source,
- GdkPixbuf* dest,
- GCancellable* cancellable,
- gint jobs);
-gpointer rgb_histogram_ref (gpointer instance);
-void rgb_histogram_unref (gpointer instance);
-GParamSpec* param_spec_rgb_histogram (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_rgb_histogram (GValue* value,
- gpointer v_object);
-void value_take_rgb_histogram (GValue* value,
- gpointer v_object);
-gpointer value_get_rgb_histogram (const GValue* value);
-GType rgb_histogram_get_type (void) G_GNUC_CONST;
-#define RGB_HISTOGRAM_GRAPHIC_WIDTH 256
-#define RGB_HISTOGRAM_GRAPHIC_HEIGHT 100
-RGBHistogram* rgb_histogram_new (GdkPixbuf* pixbuf);
-RGBHistogram* rgb_histogram_construct (GType object_type,
- GdkPixbuf* pixbuf);
-GdkPixbuf* rgb_histogram_get_graphic (RGBHistogram* self);
-gpointer intensity_histogram_ref (gpointer instance);
-void intensity_histogram_unref (gpointer instance);
-GParamSpec* param_spec_intensity_histogram (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_intensity_histogram (GValue* value,
- gpointer v_object);
-void value_take_intensity_histogram (GValue* value,
- gpointer v_object);
-gpointer value_get_intensity_histogram (const GValue* value);
-GType intensity_histogram_get_type (void) G_GNUC_CONST;
-IntensityHistogram* intensity_histogram_new (GdkPixbuf* pixbuf);
-IntensityHistogram* intensity_histogram_construct (GType object_type,
- GdkPixbuf* pixbuf);
-gfloat intensity_histogram_get_cumulative_probability (IntensityHistogram* self,
- gint level);
-GType expansion_transformation_get_type (void) G_GNUC_CONST;
-ExpansionTransformation* expansion_transformation_new (IntensityHistogram* histogram);
-ExpansionTransformation* expansion_transformation_construct (GType object_type,
- IntensityHistogram* histogram);
-ExpansionTransformation* expansion_transformation_new_from_extrema (gint black_point,
- gint white_point);
-ExpansionTransformation* expansion_transformation_construct_from_extrema (GType object_type,
- gint black_point,
- gint white_point);
-ExpansionTransformation* expansion_transformation_new_from_string (const gchar* encoded_transformation);
-ExpansionTransformation* expansion_transformation_construct_from_string (GType object_type,
- const gchar* encoded_transformation);
-gint expansion_transformation_get_white_point (ExpansionTransformation* self);
-gint expansion_transformation_get_black_point (ExpansionTransformation* self);
-GType shadow_detail_transformation_get_type (void) G_GNUC_CONST;
-#define SHADOW_DETAIL_TRANSFORMATION_MIN_PARAMETER 0.0f
-#define SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER 32.0f
-ShadowDetailTransformation* shadow_detail_transformation_new (gfloat user_intensity);
-ShadowDetailTransformation* shadow_detail_transformation_construct (GType object_type,
- gfloat user_intensity);
-gfloat shadow_detail_transformation_get_parameter (ShadowDetailTransformation* self);
-gpointer hermite_gamma_approximation_function_ref (gpointer instance);
-void hermite_gamma_approximation_function_unref (gpointer instance);
-GParamSpec* param_spec_hermite_gamma_approximation_function (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hermite_gamma_approximation_function (GValue* value,
- gpointer v_object);
-void value_take_hermite_gamma_approximation_function (GValue* value,
- gpointer v_object);
-gpointer value_get_hermite_gamma_approximation_function (const GValue* value);
-GType hermite_gamma_approximation_function_get_type (void) G_GNUC_CONST;
-HermiteGammaApproximationFunction* hermite_gamma_approximation_function_new (gfloat user_interval_upper);
-HermiteGammaApproximationFunction* hermite_gamma_approximation_function_construct (GType object_type,
- gfloat user_interval_upper);
-gfloat hermite_gamma_approximation_function_evaluate (HermiteGammaApproximationFunction* self,
- gfloat x);
-GType highlight_detail_transformation_get_type (void) G_GNUC_CONST;
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_PARAMETER (-32.0f)
-#define HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_PARAMETER 0.0f
-HighlightDetailTransformation* highlight_detail_transformation_new (gfloat user_intensity);
-HighlightDetailTransformation* highlight_detail_transformation_construct (GType object_type,
- gfloat user_intensity);
-gfloat highlight_detail_transformation_get_parameter (HighlightDetailTransformation* self);
-PixelTransformationBundle* auto_enhance_create_auto_enhance_adjustments (GdkPixbuf* pixbuf);
-KeyValueMap* key_value_map_new (const gchar* group);
-KeyValueMap* key_value_map_construct (GType object_type,
- const gchar* group);
-KeyValueMap* key_value_map_copy (KeyValueMap* self);
-gchar* key_value_map_get_group (KeyValueMap* self);
-GeeSet* key_value_map_get_keys (KeyValueMap* self);
-gboolean key_value_map_has_key (KeyValueMap* self,
- const gchar* key);
-void key_value_map_set_string (KeyValueMap* self,
- const gchar* key,
- const gchar* value);
-void key_value_map_set_int (KeyValueMap* self,
- const gchar* key,
- gint value);
-void key_value_map_set_double (KeyValueMap* self,
- const gchar* key,
- gdouble value);
-void key_value_map_set_float (KeyValueMap* self,
- const gchar* key,
- gfloat value);
-void key_value_map_set_bool (KeyValueMap* self,
- const gchar* key,
- gboolean value);
-gchar* key_value_map_get_string (KeyValueMap* self,
- const gchar* key,
- const gchar* def);
-gint key_value_map_get_int (KeyValueMap* self,
- const gchar* key,
- gint def);
-gdouble key_value_map_get_double (KeyValueMap* self,
- const gchar* key,
- gdouble def);
-gfloat key_value_map_get_float (KeyValueMap* self,
- const gchar* key,
- gfloat def);
-gboolean key_value_map_get_bool (KeyValueMap* self,
- const gchar* key,
- gboolean def);
-void key_value_map_get_point (KeyValueMap* self,
- const gchar* key,
- GdkPoint* def,
- GdkPoint* result);
-void key_value_map_set_point (KeyValueMap* self,
- const gchar* key,
- GdkPoint* point);
-
-extern const gfloat rgb_lookup_table[256];
-
-G_END_DECLS
-
-#endif
diff --git a/src/shotwell-graphics-processor.vapi b/src/shotwell-graphics-processor.vapi
deleted file mode 100644
index 38ccee5..0000000
--- a/src/shotwell-graphics-processor.vapi
+++ /dev/null
@@ -1,225 +0,0 @@
-/* shotwell-graphics-processor.vapi generated by valac 0.40.4, do not modify. */
-
-namespace AutoEnhance {
- [CCode (cheader_filename = "shotwell-graphics-processor.h")]
- public static PixelTransformationBundle create_auto_enhance_adjustments (Gdk.Pixbuf pixbuf);
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public enum CompositionMode {
- NONE,
- RGB_MATRIX,
- HSV_LOOKUP
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public enum PixelFormat {
- RGB,
- HSV
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public enum PixelTransformationType {
- TONE_EXPANSION,
- SHADOWS,
- HIGHLIGHTS,
- TEMPERATURE,
- TINT,
- SATURATION,
- EXPOSURE,
- CONTRAST
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class PixelTransformationBundle {
- public PixelTransformationBundle ();
- public PixelTransformationBundle copy ();
- public PixelTransformer generate_transformer ();
- public static PixelTransformationBundle? get_copied_color_adjustments ();
- public int get_count ();
- public PixelTransformation? get_transformation (PixelTransformationType type);
- public Gee.Iterable<PixelTransformation> get_transformations ();
- public static bool has_copied_color_adjustments ();
- public bool is_identity ();
- public void load (KeyValueMap store);
- public KeyValueMap save (string group);
- public void @set (PixelTransformation transformation);
- public static void set_copied_color_adjustments (PixelTransformationBundle adjustments);
- public void set_to_identity ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public abstract class PixelTransformation {
- public PixelTransformation (PixelTransformationType type, PixelFormat preferred_format);
- public virtual void compose_with (PixelTransformation other);
- public abstract PixelTransformation copy ();
- public virtual CompositionMode get_composition_mode ();
- public PixelFormat get_preferred_format ();
- public PixelTransformationType get_transformation_type ();
- public virtual bool is_identity ();
- public virtual string to_string ();
- public virtual HSVAnalyticPixel transform_pixel_hsv (HSVAnalyticPixel p);
- public virtual RGBAnalyticPixel transform_pixel_rgb (RGBAnalyticPixel p);
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class RGBTransformation : PixelTransformation {
- protected bool identity;
- protected float[] matrix_entries;
- protected const int MATRIX_SIZE;
- public RGBTransformation (PixelTransformationType type);
- public override void compose_with (PixelTransformation other);
- public override PixelTransformation copy ();
- public override CompositionMode get_composition_mode ();
- public override bool is_identity ();
- public override HSVAnalyticPixel transform_pixel_hsv (HSVAnalyticPixel p);
- public override RGBAnalyticPixel transform_pixel_rgb (RGBAnalyticPixel p);
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public abstract class HSVTransformation : PixelTransformation {
- protected float remap_table[256];
- public HSVTransformation (PixelTransformationType type);
- public override void compose_with (PixelTransformation other);
- public override CompositionMode get_composition_mode ();
- public override HSVAnalyticPixel transform_pixel_hsv (HSVAnalyticPixel pixel);
- public override RGBAnalyticPixel transform_pixel_rgb (RGBAnalyticPixel p);
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class TintTransformation : RGBTransformation {
- public const float MAX_PARAMETER;
- public const float MIN_PARAMETER;
- public TintTransformation (float client_param);
- public float get_parameter ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class TemperatureTransformation : RGBTransformation {
- public const float MAX_PARAMETER;
- public const float MIN_PARAMETER;
- public TemperatureTransformation (float client_parameter);
- public float get_parameter ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class SaturationTransformation : RGBTransformation {
- public const float MAX_PARAMETER;
- public const float MIN_PARAMETER;
- public SaturationTransformation (float client_parameter);
- public float get_parameter ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class ExposureTransformation : RGBTransformation {
- public const float MAX_PARAMETER;
- public const float MIN_PARAMETER;
- public ExposureTransformation (float client_parameter);
- public float get_parameter ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class ContrastTransformation : RGBTransformation {
- public const float MAX_PARAMETER;
- public const float MIN_PARAMETER;
- public ContrastTransformation (float client_parameter);
- public float get_parameter ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class PixelTransformer {
- public int optimized_slots_used;
- public PixelTransformation[] optimized_transformations;
- public PixelTransformer ();
- public void attach_transformation (PixelTransformation trans);
- public PixelTransformer copy ();
- public void detach_transformation (PixelTransformation victim);
- public void replace_transformation (PixelTransformation old_trans, PixelTransformation new_trans);
- public void transform_from_fp (ref float[] fp_pixel_cache, Gdk.Pixbuf dest);
- public void transform_pixbuf (Gdk.Pixbuf pixbuf, GLib.Cancellable? cancellable = null);
- public void transform_to_other_pixbuf (Gdk.Pixbuf source, Gdk.Pixbuf dest, GLib.Cancellable? cancellable = null, int jobs = -1);
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class RGBHistogram {
- public const int GRAPHIC_HEIGHT;
- public const int GRAPHIC_WIDTH;
- public RGBHistogram (Gdk.Pixbuf pixbuf);
- public Gdk.Pixbuf get_graphic ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class IntensityHistogram {
- public IntensityHistogram (Gdk.Pixbuf pixbuf);
- public float get_cumulative_probability (int level);
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class ExpansionTransformation : HSVTransformation {
- public ExpansionTransformation (IntensityHistogram histogram);
- public override PixelTransformation copy ();
- public ExpansionTransformation.from_extrema (int black_point, int white_point);
- public ExpansionTransformation.from_string (string encoded_transformation);
- public int get_black_point ();
- public int get_white_point ();
- public override bool is_identity ();
- public override string to_string ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class ShadowDetailTransformation : HSVTransformation {
- public const float MAX_PARAMETER;
- public const float MIN_PARAMETER;
- public ShadowDetailTransformation (float user_intensity);
- public override PixelTransformation copy ();
- public float get_parameter ();
- public override bool is_identity ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class HermiteGammaApproximationFunction {
- public HermiteGammaApproximationFunction (float user_interval_upper);
- public float evaluate (float x);
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class HighlightDetailTransformation : HSVTransformation {
- public const float MAX_PARAMETER;
- public const float MIN_PARAMETER;
- public HighlightDetailTransformation (float user_intensity);
- public override PixelTransformation copy ();
- public float get_parameter ();
- public override bool is_identity ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public class KeyValueMap {
- public KeyValueMap (string group);
- public KeyValueMap copy ();
- public bool get_bool (string key, bool def);
- public double get_double (string key, double def);
- public float get_float (string key, float def);
- public string get_group ();
- public int get_int (string key, int def);
- public Gee.Set<string> get_keys ();
- public Gdk.Point get_point (string key, Gdk.Point def);
- public string get_string (string key, string? def);
- public bool has_key (string key);
- public void set_bool (string key, bool value);
- public void set_double (string key, double value);
- public void set_float (string key, float value);
- public void set_int (string key, int value);
- public void set_point (string key, Gdk.Point point);
- public void set_string (string key, string value);
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public struct RGBAnalyticPixel {
- public float red;
- public float green;
- public float blue;
- public RGBAnalyticPixel ();
- public bool equals (RGBAnalyticPixel? rhs);
- public RGBAnalyticPixel.from_components (float red, float green, float blue);
- public RGBAnalyticPixel.from_hsv (HSVAnalyticPixel hsv_pixel);
- public RGBAnalyticPixel.from_quantized_components (uchar red_quantized, uchar green_quantized, uchar blue_quantized);
- public uint hash_code ();
- public uchar quantized_blue ();
- public uchar quantized_green ();
- public uchar quantized_red ();
- public HSVAnalyticPixel to_hsv ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public struct HSVAnalyticPixel {
- public float hue;
- public float saturation;
- public float light_value;
- public HSVAnalyticPixel ();
- public bool equals (ref HSVAnalyticPixel rhs);
- public HSVAnalyticPixel.from_components (float hue, float saturation, float light_value);
- public HSVAnalyticPixel.from_quantized_components (uchar hue_quantized, uchar saturation_quantized, uchar light_value_quantized);
- public HSVAnalyticPixel.from_rgb (RGBAnalyticPixel p);
- public uint hash_code ();
- public RGBAnalyticPixel to_rgb ();
-}
-[CCode (cheader_filename = "shotwell-graphics-processor.h")]
-public const float[] rgb_lookup_table;
diff --git a/src/sidebar/Branch.c b/src/sidebar/Branch.c
deleted file mode 100644
index e855a99..0000000
--- a/src/sidebar/Branch.c
+++ /dev/null
@@ -1,2741 +0,0 @@
-/* Branch.c generated by valac 0.40.4, the Vala compiler
- * generated from Branch.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
-
-#define SIDEBAR_BRANCH_TYPE_NODE (sidebar_branch_node_get_type ())
-#define SIDEBAR_BRANCH_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_BRANCH_TYPE_NODE, SidebarBranchNode))
-#define SIDEBAR_BRANCH_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_BRANCH_TYPE_NODE, SidebarBranchNodeClass))
-#define SIDEBAR_BRANCH_IS_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_BRANCH_TYPE_NODE))
-#define SIDEBAR_BRANCH_IS_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_BRANCH_TYPE_NODE))
-#define SIDEBAR_BRANCH_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_BRANCH_TYPE_NODE, SidebarBranchNodeClass))
-
-typedef struct _SidebarBranchNode SidebarBranchNode;
-typedef struct _SidebarBranchNodeClass SidebarBranchNodeClass;
-
-#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-enum {
- SIDEBAR_BRANCH_0_PROPERTY,
- SIDEBAR_BRANCH_NUM_PROPERTIES
-};
-static GParamSpec* sidebar_branch_properties[SIDEBAR_BRANCH_NUM_PROPERTIES];
-#define _sidebar_branch_node_unref0(var) ((var == NULL) ? NULL : (var = (sidebar_branch_node_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _SidebarBranchNodePrivate SidebarBranchNodePrivate;
-typedef struct _SidebarBranchParamSpecNode SidebarBranchParamSpecNode;
-enum {
- SIDEBAR_BRANCH_ENTRY_ADDED_SIGNAL,
- SIDEBAR_BRANCH_ENTRY_REMOVED_SIGNAL,
- SIDEBAR_BRANCH_ENTRY_MOVED_SIGNAL,
- SIDEBAR_BRANCH_ENTRY_REPARENTED_SIGNAL,
- SIDEBAR_BRANCH_CHILDREN_REORDERED_SIGNAL,
- SIDEBAR_BRANCH_SHOW_BRANCH_SIGNAL,
- SIDEBAR_BRANCH_NUM_SIGNALS
-};
-static guint sidebar_branch_signals[SIDEBAR_BRANCH_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gboolean (*Locator) (gconstpointer item, void* user_data);
-struct _SidebarBranch {
- GObject parent_instance;
- SidebarBranchPrivate * priv;
-};
-
-struct _SidebarBranchClass {
- GObjectClass parent_class;
-};
-
-typedef enum {
- SIDEBAR_BRANCH_OPTIONS_NONE = 0,
- SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
- SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
-} SidebarBranchOptions;
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _SidebarBranchPrivate {
- SidebarBranchNode* root;
- SidebarBranchOptions options;
- gboolean shown;
- GCompareFunc default_comparator;
- GeeHashMap* map;
-};
-
-struct _SidebarBranchNode {
- GTypeInstance parent_instance;
- volatile int ref_count;
- SidebarBranchNodePrivate * priv;
- SidebarEntry* entry;
- SidebarBranchNode* parent;
- GCompareFunc comparator;
- GeeSortedSet* children;
-};
-
-struct _SidebarBranchNodeClass {
- GTypeClass parent_class;
- void (*finalize) (SidebarBranchNode *self);
-};
-
-typedef void (*SidebarBranchNodePruneCallback) (SidebarBranchNode* node, void* user_data);
-typedef void (*SidebarBranchNodeChildrenReorderedCallback) (SidebarBranchNode* node, void* user_data);
-struct _SidebarBranchParamSpecNode {
- GParamSpec parent_instance;
-};
-
-
-static gpointer sidebar_branch_parent_class = NULL;
-static gpointer sidebar_branch_node_parent_class = NULL;
-
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-static gpointer sidebar_branch_node_ref (gpointer instance);
-static void sidebar_branch_node_unref (gpointer instance);
-static GParamSpec* sidebar_branch_param_spec_node (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void sidebar_branch_value_set_node (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void sidebar_branch_value_take_node (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer sidebar_branch_value_get_node (const GValue* value) G_GNUC_UNUSED;
-static GType sidebar_branch_node_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-#define SIDEBAR_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_BRANCH, SidebarBranchPrivate))
-gboolean sidebar_branch_options_is_hide_if_empty (SidebarBranchOptions self);
-gboolean sidebar_branch_options_is_auto_open_on_new_child (SidebarBranchOptions self);
-gboolean sidebar_branch_options_is_startup_expand_to_first_child (SidebarBranchOptions self);
-gboolean sidebar_branch_options_is_startup_open_grouping (SidebarBranchOptions self);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-static SidebarBranchNode* sidebar_branch_node_new (SidebarEntry* entry,
- SidebarBranchNode* parent,
- GCompareFunc comparator);
-static SidebarBranchNode* sidebar_branch_node_construct (GType object_type,
- SidebarEntry* entry,
- SidebarBranchNode* parent,
- GCompareFunc comparator);
-void sidebar_branch_set_show_branch (SidebarBranch* self,
- gboolean shown);
-SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-gboolean sidebar_branch_get_show_branch (SidebarBranch* self);
-gboolean sidebar_branch_is_auto_open_on_new_child (SidebarBranch* self);
-gboolean sidebar_branch_is_startup_expand_to_first_child (SidebarBranch* self);
-gboolean sidebar_branch_is_startup_open_grouping (SidebarBranch* self);
-void sidebar_branch_graft (SidebarBranch* self,
- SidebarEntry* parent,
- SidebarEntry* entry,
- GCompareFunc comparator);
-static void sidebar_branch_node_add_child (SidebarBranchNode* self,
- SidebarBranchNode* child);
-void sidebar_branch_prune (SidebarBranch* self,
- SidebarEntry* entry);
-static void sidebar_branch_node_prune_children (SidebarBranchNode* self,
- SidebarBranchNodePruneCallback cb,
- void* cb_target);
-static void sidebar_branch_prune_callback (SidebarBranch* self,
- SidebarBranchNode* node);
-static void _sidebar_branch_prune_callback_sidebar_branch_node_prune_callback (SidebarBranchNode* node,
- gpointer self);
-static void sidebar_branch_node_remove_child (SidebarBranchNode* self,
- SidebarBranchNode* child);
-static gboolean sidebar_branch_node_has_children (SidebarBranchNode* self);
-void sidebar_branch_reparent (SidebarBranch* self,
- SidebarEntry* new_parent,
- SidebarEntry* entry);
-gboolean sidebar_branch_has_entry (SidebarBranch* self,
- SidebarEntry* entry);
-void sidebar_branch_reorder (SidebarBranch* self,
- SidebarEntry* entry);
-static gboolean sidebar_branch_node_reorder_child (SidebarBranchNode* self,
- SidebarBranchNode* child);
-void sidebar_branch_reorder_all (SidebarBranch* self);
-static void sidebar_branch_node_reorder_children (SidebarBranchNode* self,
- gboolean recursive,
- SidebarBranchNodeChildrenReorderedCallback cb,
- void* cb_target);
-static void sidebar_branch_children_reordered_callback (SidebarBranch* self,
- SidebarBranchNode* node);
-static void _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback (SidebarBranchNode* node,
- gpointer self);
-void sidebar_branch_reorder_children (SidebarBranch* self,
- SidebarEntry* entry,
- gboolean recursive);
-void sidebar_branch_change_all_comparators (SidebarBranch* self,
- GCompareFunc comparator);
-static void sidebar_branch_node_change_comparator (SidebarBranchNode* self,
- GCompareFunc comparator,
- gboolean recursive,
- SidebarBranchNodeChildrenReorderedCallback cb,
- void* cb_target);
-void sidebar_branch_change_comparator (SidebarBranch* self,
- SidebarEntry* entry,
- gboolean recursive,
- GCompareFunc comparator);
-gint sidebar_branch_get_child_count (SidebarBranch* self,
- SidebarEntry* parent);
-GeeList* sidebar_branch_get_children (SidebarBranch* self,
- SidebarEntry* parent);
-SidebarEntry* sidebar_branch_find_first_child (SidebarBranch* self,
- SidebarEntry* parent,
- Locator locator,
- void* locator_target);
-SidebarEntry* sidebar_branch_get_parent (SidebarBranch* self,
- SidebarEntry* entry);
-SidebarEntry* sidebar_branch_get_previous_sibling (SidebarBranch* self,
- SidebarEntry* entry);
-SidebarEntry* sidebar_branch_get_next_sibling (SidebarBranch* self,
- SidebarEntry* entry);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static gint sidebar_branch_node_comparator_wrapper (SidebarBranchNode* anode,
- SidebarBranchNode* bnode);
-static gint _sidebar_branch_node_comparator_wrapper_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-static gint sidebar_branch_node_index_of_by_reference (SidebarBranchNode* self,
- SidebarBranchNode* child);
-static void sidebar_branch_node_finalize (SidebarBranchNode * obj);
-static void sidebar_branch_finalize (GObject * obj);
-
-
-gboolean
-sidebar_branch_options_is_hide_if_empty (SidebarBranchOptions self)
-{
- gboolean result = FALSE;
-#line 19 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = (self & SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY) != 0;
-#line 19 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 280 "Branch.c"
-}
-
-
-gboolean
-sidebar_branch_options_is_auto_open_on_new_child (SidebarBranchOptions self)
-{
- gboolean result = FALSE;
-#line 23 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = (self & SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD) != 0;
-#line 23 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 292 "Branch.c"
-}
-
-
-gboolean
-sidebar_branch_options_is_startup_expand_to_first_child (SidebarBranchOptions self)
-{
- gboolean result = FALSE;
-#line 27 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = (self & SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD) != 0;
-#line 27 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 304 "Branch.c"
-}
-
-
-gboolean
-sidebar_branch_options_is_startup_open_grouping (SidebarBranchOptions self)
-{
- gboolean result = FALSE;
-#line 31 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = (self & SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING) != 0;
-#line 31 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 316 "Branch.c"
-}
-
-
-GType
-sidebar_branch_options_get_type (void)
-{
- static volatile gsize sidebar_branch_options_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_branch_options_type_id__volatile)) {
- static const GFlagsValue values[] = {{SIDEBAR_BRANCH_OPTIONS_NONE, "SIDEBAR_BRANCH_OPTIONS_NONE", "none"}, {SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY, "SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY", "hide-if-empty"}, {SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD, "SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD", "auto-open-on-new-child"}, {SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD, "SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD", "startup-expand-to-first-child"}, {SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING, "SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING", "startup-open-grouping"}, {0, NULL, NULL}};
- GType sidebar_branch_options_type_id;
- sidebar_branch_options_type_id = g_flags_register_static ("SidebarBranchOptions", values);
- g_once_init_leave (&sidebar_branch_options_type_id__volatile, sidebar_branch_options_type_id);
- }
- return sidebar_branch_options_type_id__volatile;
-}
-
-
-SidebarBranch*
-sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator)
-{
- SidebarBranch * self = NULL;
- GCompareFunc _tmp0_ = NULL;
- SidebarBranchNode* _tmp1_;
- GeeHashMap* _tmp2_;
- SidebarBranchNode* _tmp3_;
-#line 206 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (root), NULL);
-#line 206 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self = (SidebarBranch*) g_object_new (object_type, NULL);
-#line 208 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->priv->default_comparator = default_comparator;
-#line 210 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (root_comparator != NULL) {
-#line 210 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = root_comparator;
-#line 356 "Branch.c"
- } else {
-#line 210 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = default_comparator;
-#line 360 "Branch.c"
- }
-#line 209 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = sidebar_branch_node_new (root, NULL, _tmp0_);
-#line 209 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (self->priv->root);
-#line 209 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->priv->root = _tmp1_;
-#line 211 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->priv->options = options;
-#line 213 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->priv->map;
-#line 213 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = self->priv->root;
-#line 213 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), root, _tmp3_);
-#line 215 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (sidebar_branch_options_is_hide_if_empty (options)) {
-#line 216 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_set_show_branch (self, FALSE);
-#line 380 "Branch.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return self;
-#line 384 "Branch.c"
-}
-
-
-SidebarBranch*
-sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator)
-{
-#line 206 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return sidebar_branch_construct (SIDEBAR_TYPE_BRANCH, root, options, default_comparator, root_comparator);
-#line 396 "Branch.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return self ? g_object_ref (self) : NULL;
-#line 405 "Branch.c"
-}
-
-
-SidebarEntry*
-sidebar_branch_get_root (SidebarBranch* self)
-{
- SidebarEntry* result = NULL;
- SidebarBranchNode* _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
-#line 219 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL);
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = _tmp0_->entry;
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp2_;
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 428 "Branch.c"
-}
-
-
-void
-sidebar_branch_set_show_branch (SidebarBranch* self,
- gboolean shown)
-{
- gboolean _tmp0_;
-#line 223 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 224 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->shown;
-#line 224 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp0_ == shown) {
-#line 225 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return;
-#line 445 "Branch.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->priv->shown = shown;
-#line 228 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_SHOW_BRANCH_SIGNAL], 0, shown);
-#line 451 "Branch.c"
-}
-
-
-gboolean
-sidebar_branch_get_show_branch (SidebarBranch* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE);
-#line 232 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->shown;
-#line 232 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp0_;
-#line 232 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 468 "Branch.c"
-}
-
-
-gboolean
-sidebar_branch_is_auto_open_on_new_child (SidebarBranch* self)
-{
- gboolean result = FALSE;
- SidebarBranchOptions _tmp0_;
-#line 235 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE);
-#line 236 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->options;
-#line 236 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = sidebar_branch_options_is_auto_open_on_new_child (_tmp0_);
-#line 236 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 485 "Branch.c"
-}
-
-
-gboolean
-sidebar_branch_is_startup_expand_to_first_child (SidebarBranch* self)
-{
- gboolean result = FALSE;
- SidebarBranchOptions _tmp0_;
-#line 239 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE);
-#line 240 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->options;
-#line 240 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = sidebar_branch_options_is_startup_expand_to_first_child (_tmp0_);
-#line 240 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 502 "Branch.c"
-}
-
-
-gboolean
-sidebar_branch_is_startup_open_grouping (SidebarBranch* self)
-{
- gboolean result = FALSE;
- SidebarBranchOptions _tmp0_;
-#line 243 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE);
-#line 244 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->options;
-#line 244 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = sidebar_branch_options_is_startup_open_grouping (_tmp0_);
-#line 244 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 519 "Branch.c"
-}
-
-
-void
-sidebar_branch_graft (SidebarBranch* self,
- SidebarEntry* parent,
- SidebarEntry* entry,
- GCompareFunc comparator)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
- SidebarBranchOptions _tmp2_;
- SidebarBranchNode* parent_node = NULL;
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
- GCompareFunc _tmp5_ = NULL;
- SidebarBranchNode* entry_node = NULL;
- SidebarBranchNode* _tmp7_;
- SidebarBranchNode* _tmp8_;
- SidebarBranchNode* _tmp9_;
- GeeHashMap* _tmp10_;
-#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (parent));
-#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 249 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->map;
-#line 249 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent), "map.has_key(parent)");
-#line 250 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = self->priv->map;
-#line 250 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry), "!map.has_key(entry)");
-#line 252 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->priv->options;
-#line 252 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (sidebar_branch_options_is_hide_if_empty (_tmp2_)) {
-#line 253 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_set_show_branch (self, TRUE);
-#line 561 "Branch.c"
- }
-#line 255 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = self->priv->map;
-#line 255 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent);
-#line 255 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- parent_node = (SidebarBranchNode*) _tmp4_;
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (comparator != NULL) {
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = comparator;
-#line 573 "Branch.c"
- } else {
- GCompareFunc _tmp6_;
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = self->priv->default_comparator;
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = _tmp6_;
-#line 580 "Branch.c"
- }
-#line 256 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = parent_node;
-#line 256 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = sidebar_branch_node_new (entry, _tmp7_, _tmp5_);
-#line 256 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = _tmp8_;
-#line 259 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = parent_node;
-#line 259 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_add_child (_tmp9_, entry_node);
-#line 260 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = self->priv->map;
-#line 260 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry, entry_node);
-#line 262 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_ADDED_SIGNAL], 0, entry);
-#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (parent_node);
-#line 602 "Branch.c"
-}
-
-
-static void
-_sidebar_branch_prune_callback_sidebar_branch_node_prune_callback (SidebarBranchNode* node,
- gpointer self)
-{
-#line 272 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_prune_callback ((SidebarBranch*) self, node);
-#line 612 "Branch.c"
-}
-
-
-void
-sidebar_branch_prune (SidebarBranch* self,
- SidebarEntry* entry)
-{
- SidebarBranchNode* _tmp0_;
- SidebarEntry* _tmp1_;
- GeeHashMap* _tmp2_;
- SidebarBranchNode* entry_node = NULL;
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
- SidebarBranchNode* _tmp5_;
- SidebarBranchNode* _tmp6_;
- SidebarBranchNode* _tmp7_;
- SidebarBranchNode* _tmp8_;
- SidebarBranchNode* _tmp9_;
- SidebarBranchNode* _tmp10_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp11_;
- gboolean _tmp12_;
- gboolean _tmp13_;
- gboolean _tmp14_ = FALSE;
- SidebarBranchOptions _tmp15_;
-#line 266 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 266 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 267 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 267 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = _tmp0_->entry;
-#line 267 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (entry != _tmp1_, "entry != root.entry");
-#line 268 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->priv->map;
-#line 268 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry), "map.has_key(entry)");
-#line 270 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = self->priv->map;
-#line 270 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 270 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = (SidebarBranchNode*) _tmp4_;
-#line 272 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = entry_node;
-#line 272 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_prune_children (_tmp5_, _sidebar_branch_prune_callback_sidebar_branch_node_prune_callback, self);
-#line 274 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = entry_node;
-#line 274 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = _tmp6_->parent;
-#line 274 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp7_ != NULL, "entry_node.parent != null");
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = entry_node;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = _tmp8_->parent;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = entry_node;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_remove_child (_tmp9_, _tmp10_);
-#line 277 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = self->priv->map;
-#line 277 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp12_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry, NULL);
-#line 277 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- removed = _tmp12_;
-#line 278 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp13_ = removed;
-#line 278 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp13_, "removed");
-#line 280 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REMOVED_SIGNAL], 0, entry);
-#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp15_ = self->priv->options;
-#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (sidebar_branch_options_is_hide_if_empty (_tmp15_)) {
-#line 692 "Branch.c"
- SidebarBranchNode* _tmp16_;
-#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp16_ = self->priv->root;
-#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp14_ = !sidebar_branch_node_has_children (_tmp16_);
-#line 698 "Branch.c"
- } else {
-#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp14_ = FALSE;
-#line 702 "Branch.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp14_) {
-#line 283 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_set_show_branch (self, FALSE);
-#line 708 "Branch.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 712 "Branch.c"
-}
-
-
-void
-sidebar_branch_reparent (SidebarBranch* self,
- SidebarEntry* new_parent,
- SidebarEntry* entry)
-{
- SidebarBranchNode* _tmp0_;
- SidebarEntry* _tmp1_;
- GeeHashMap* _tmp2_;
- GeeHashMap* _tmp3_;
- SidebarBranchNode* entry_node = NULL;
- GeeHashMap* _tmp4_;
- gpointer _tmp5_;
- SidebarBranchNode* new_parent_node = NULL;
- GeeHashMap* _tmp6_;
- gpointer _tmp7_;
- SidebarBranchNode* _tmp8_;
- SidebarEntry* old_parent = NULL;
- SidebarBranchNode* _tmp9_;
- SidebarEntry* _tmp10_;
- SidebarEntry* _tmp11_;
- SidebarBranchNode* _tmp12_;
-#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (new_parent));
-#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = _tmp0_->entry;
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (entry != _tmp1_, "entry != root.entry");
-#line 289 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->priv->map;
-#line 289 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry), "map.has_key(entry)");
-#line 290 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = self->priv->map;
-#line 290 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_parent), "map.has_key(new_parent)");
-#line 292 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = self->priv->map;
-#line 292 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 292 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = (SidebarBranchNode*) _tmp5_;
-#line 293 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = self->priv->map;
-#line 293 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_parent);
-#line 293 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- new_parent_node = (SidebarBranchNode*) _tmp7_;
-#line 295 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = entry_node->parent;
-#line 295 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp8_ != NULL, "entry_node.parent != null");
-#line 296 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = entry_node->parent;
-#line 296 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = _tmp9_->entry;
-#line 296 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 296 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- old_parent = _tmp11_;
-#line 298 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp12_ = entry_node->parent;
-#line 298 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_remove_child (_tmp12_, entry_node);
-#line 299 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_add_child (new_parent_node, entry_node);
-#line 301 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REPARENTED_SIGNAL], 0, entry, old_parent);
-#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (old_parent);
-#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (new_parent_node);
-#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 795 "Branch.c"
-}
-
-
-gboolean
-sidebar_branch_has_entry (SidebarBranch* self,
- SidebarEntry* entry)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- SidebarBranchNode* _tmp1_;
- SidebarEntry* _tmp2_;
-#line 304 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE);
-#line 304 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = self->priv->root;
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = _tmp1_->entry;
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp2_ == entry) {
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = TRUE;
-#line 819 "Branch.c"
- } else {
- GeeHashMap* _tmp3_;
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = self->priv->map;
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 826 "Branch.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp0_;
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 832 "Branch.c"
-}
-
-
-void
-sidebar_branch_reorder (SidebarBranch* self,
- SidebarEntry* entry)
-{
- SidebarBranchNode* _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarBranchNode* entry_node = NULL;
- GeeHashMap* _tmp2_;
- gpointer _tmp3_;
- SidebarBranchNode* _tmp4_;
- SidebarBranchNode* _tmp5_;
- SidebarBranchNode* _tmp6_;
- SidebarBranchNode* _tmp7_;
- SidebarBranchNode* _tmp8_;
- SidebarBranchNode* _tmp9_;
-#line 310 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 310 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 311 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 311 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = _tmp0_->entry;
-#line 311 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (entry != _tmp1_, "entry != root.entry");
-#line 313 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->priv->map;
-#line 313 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 313 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = (SidebarBranchNode*) _tmp3_;
-#line 314 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = entry_node;
-#line 314 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp4_ != NULL, "entry_node != null");
-#line 316 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = entry_node;
-#line 316 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = _tmp5_->parent;
-#line 316 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp6_ != NULL, "entry_node.parent != null");
-#line 317 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = entry_node;
-#line 317 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = _tmp7_->parent;
-#line 317 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = entry_node;
-#line 317 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (sidebar_branch_node_reorder_child (_tmp8_, _tmp9_)) {
-#line 318 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_MOVED_SIGNAL], 0, entry);
-#line 887 "Branch.c"
- }
-#line 310 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 891 "Branch.c"
-}
-
-
-static void
-_sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback (SidebarBranchNode* node,
- gpointer self)
-{
-#line 323 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_children_reordered_callback ((SidebarBranch*) self, node);
-#line 901 "Branch.c"
-}
-
-
-void
-sidebar_branch_reorder_all (SidebarBranch* self)
-{
- SidebarBranchNode* _tmp0_;
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 323 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 323 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_reorder_children (_tmp0_, TRUE, _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback, self);
-#line 915 "Branch.c"
-}
-
-
-void
-sidebar_branch_reorder_children (SidebarBranch* self,
- SidebarEntry* entry,
- gboolean recursive)
-{
- SidebarBranchNode* entry_node = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 327 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 327 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 328 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->map;
-#line 328 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 328 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = (SidebarBranchNode*) _tmp1_;
-#line 329 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (entry_node != NULL, "entry_node != null");
-#line 331 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_reorder_children (entry_node, recursive, _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback, self);
-#line 327 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 943 "Branch.c"
-}
-
-
-void
-sidebar_branch_change_all_comparators (SidebarBranch* self,
- GCompareFunc comparator)
-{
- SidebarBranchNode* _tmp0_;
-#line 334 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 335 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 335 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_change_comparator (_tmp0_, comparator, TRUE, _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback, self);
-#line 958 "Branch.c"
-}
-
-
-void
-sidebar_branch_change_comparator (SidebarBranch* self,
- SidebarEntry* entry,
- gboolean recursive,
- GCompareFunc comparator)
-{
- SidebarBranchNode* entry_node = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 338 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 338 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 340 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->map;
-#line 340 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 340 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = (SidebarBranchNode*) _tmp1_;
-#line 341 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (entry_node != NULL, "entry_node != null");
-#line 343 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_change_comparator (entry_node, comparator, recursive, _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback, self);
-#line 338 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 987 "Branch.c"
-}
-
-
-gint
-sidebar_branch_get_child_count (SidebarBranch* self,
- SidebarEntry* parent)
-{
- gint result = 0;
- SidebarBranchNode* parent_node = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- SidebarBranchNode* _tmp2_;
- gint _tmp3_ = 0;
- SidebarBranchNode* _tmp4_;
- GeeSortedSet* _tmp5_;
-#line 346 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), 0);
-#line 346 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (parent), 0);
-#line 347 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->map;
-#line 347 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent);
-#line 347 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- parent_node = (SidebarBranchNode*) _tmp1_;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = parent_node;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp2_ != NULL, "parent_node != null");
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = parent_node;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = _tmp4_->children;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp5_ != NULL) {
-#line 1023 "Branch.c"
- SidebarBranchNode* _tmp6_;
- GeeSortedSet* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = parent_node;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = _tmp6_->children;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = _tmp8_;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = _tmp9_;
-#line 1038 "Branch.c"
- } else {
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = 0;
-#line 1042 "Branch.c"
- }
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp3_;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (parent_node);
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1050 "Branch.c"
-}
-
-
-GeeList*
-sidebar_branch_get_children (SidebarBranch* self,
- SidebarEntry* parent)
-{
- GeeList* result = NULL;
- GeeHashMap* _tmp0_;
- SidebarBranchNode* parent_node = NULL;
- GeeHashMap* _tmp1_;
- gpointer _tmp2_;
- SidebarBranchNode* _tmp3_;
- GeeSortedSet* _tmp4_;
- GeeList* child_entries = NULL;
- GeeArrayList* _tmp5_;
-#line 355 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL);
-#line 355 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (parent), NULL);
-#line 356 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->map;
-#line 356 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent), "map.has_key(parent)");
-#line 358 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = self->priv->map;
-#line 358 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent);
-#line 358 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- parent_node = (SidebarBranchNode*) _tmp2_;
-#line 359 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = parent_node;
-#line 359 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = _tmp3_->children;
-#line 359 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp4_ == NULL) {
-#line 360 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = NULL;
-#line 360 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (parent_node);
-#line 360 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1093 "Branch.c"
- }
-#line 362 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = gee_array_list_new (SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 362 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child_entries = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList);
-#line 1099 "Branch.c"
- {
- GeeIterator* _child_it = NULL;
- SidebarBranchNode* _tmp6_;
- GeeSortedSet* _tmp7_;
- GeeIterator* _tmp8_;
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = parent_node;
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = _tmp6_->children;
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _child_it = _tmp8_;
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- while (TRUE) {
-#line 1115 "Branch.c"
- GeeIterator* _tmp9_;
- SidebarBranchNode* child = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- GeeList* _tmp12_;
- SidebarBranchNode* _tmp13_;
- SidebarEntry* _tmp14_;
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = _child_it;
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- break;
-#line 1129 "Branch.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = _child_it;
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child = (SidebarBranchNode*) _tmp11_;
-#line 364 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp12_ = child_entries;
-#line 364 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp13_ = child;
-#line 364 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp14_ = _tmp13_->entry;
-#line 364 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_);
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (child);
-#line 1147 "Branch.c"
- }
-#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_child_it);
-#line 1151 "Branch.c"
- }
-#line 366 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = child_entries;
-#line 366 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (parent_node);
-#line 366 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1159 "Branch.c"
-}
-
-
-SidebarEntry*
-sidebar_branch_find_first_child (SidebarBranch* self,
- SidebarEntry* parent,
- Locator locator,
- void* locator_target)
-{
- SidebarEntry* result = NULL;
- SidebarBranchNode* parent_node = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- SidebarBranchNode* _tmp2_;
- SidebarBranchNode* _tmp3_;
- GeeSortedSet* _tmp4_;
-#line 369 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL);
-#line 369 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (parent), NULL);
-#line 370 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->map;
-#line 370 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent);
-#line 370 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- parent_node = (SidebarBranchNode*) _tmp1_;
-#line 371 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = parent_node;
-#line 371 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp2_ != NULL, "parent_node != null");
-#line 373 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = parent_node;
-#line 373 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = _tmp3_->children;
-#line 373 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp4_ == NULL) {
-#line 374 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = NULL;
-#line 374 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (parent_node);
-#line 374 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1202 "Branch.c"
- }
- {
- GeeIterator* _child_it = NULL;
- SidebarBranchNode* _tmp5_;
- GeeSortedSet* _tmp6_;
- GeeIterator* _tmp7_;
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = parent_node;
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = _tmp5_->children;
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _child_it = _tmp7_;
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- while (TRUE) {
-#line 1219 "Branch.c"
- GeeIterator* _tmp8_;
- SidebarBranchNode* child = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- SidebarBranchNode* _tmp11_;
- SidebarEntry* _tmp12_;
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = _child_it;
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- break;
-#line 1232 "Branch.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = _child_it;
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child = (SidebarBranchNode*) _tmp10_;
-#line 377 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = child;
-#line 377 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp12_ = _tmp11_->entry;
-#line 377 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (locator (_tmp12_, locator_target)) {
-#line 1246 "Branch.c"
- SidebarBranchNode* _tmp13_;
- SidebarEntry* _tmp14_;
- SidebarEntry* _tmp15_;
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp13_ = child;
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp14_ = _tmp13_->entry;
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp15_ = _g_object_ref0 (_tmp14_);
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp15_;
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (child);
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_child_it);
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (parent_node);
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1266 "Branch.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (child);
-#line 1270 "Branch.c"
- }
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_child_it);
-#line 1274 "Branch.c"
- }
-#line 381 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = NULL;
-#line 381 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (parent_node);
-#line 381 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1282 "Branch.c"
-}
-
-
-SidebarEntry*
-sidebar_branch_get_parent (SidebarBranch* self,
- SidebarEntry* entry)
-{
- SidebarEntry* result = NULL;
- SidebarBranchNode* _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarBranchNode* entry_node = NULL;
- GeeHashMap* _tmp2_;
- gpointer _tmp3_;
- SidebarBranchNode* _tmp4_;
- SidebarBranchNode* _tmp5_;
- SidebarBranchNode* _tmp6_;
- SidebarBranchNode* _tmp7_;
- SidebarBranchNode* _tmp8_;
- SidebarEntry* _tmp9_;
- SidebarEntry* _tmp10_;
-#line 385 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL);
-#line 385 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL);
-#line 386 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 386 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = _tmp0_->entry;
-#line 386 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (entry == _tmp1_) {
-#line 387 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = NULL;
-#line 387 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1317 "Branch.c"
- }
-#line 389 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->priv->map;
-#line 389 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 389 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = (SidebarBranchNode*) _tmp3_;
-#line 390 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = entry_node;
-#line 390 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp4_ != NULL, "entry_node != null");
-#line 391 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = entry_node;
-#line 391 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = _tmp5_->parent;
-#line 391 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp6_ != NULL, "entry_node.parent != null");
-#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = entry_node;
-#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = _tmp7_->parent;
-#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = _tmp8_->entry;
-#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
-#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp10_;
-#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1349 "Branch.c"
-}
-
-
-SidebarEntry*
-sidebar_branch_get_previous_sibling (SidebarBranch* self,
- SidebarEntry* entry)
-{
- SidebarEntry* result = NULL;
- SidebarBranchNode* _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarBranchNode* entry_node = NULL;
- GeeHashMap* _tmp2_;
- gpointer _tmp3_;
- SidebarBranchNode* _tmp4_;
- SidebarBranchNode* _tmp5_;
- SidebarBranchNode* _tmp6_;
- SidebarBranchNode* _tmp7_;
- SidebarBranchNode* _tmp8_;
- GeeSortedSet* _tmp9_;
- SidebarBranchNode* sibling = NULL;
- SidebarBranchNode* _tmp10_;
- SidebarBranchNode* _tmp11_;
- GeeSortedSet* _tmp12_;
- SidebarBranchNode* _tmp13_;
- gpointer _tmp14_;
- SidebarEntry* _tmp15_ = NULL;
- SidebarBranchNode* _tmp16_;
- SidebarEntry* _tmp19_;
-#line 397 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL);
-#line 397 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL);
-#line 398 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 398 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = _tmp0_->entry;
-#line 398 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (entry == _tmp1_) {
-#line 399 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = NULL;
-#line 399 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1392 "Branch.c"
- }
-#line 401 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->priv->map;
-#line 401 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 401 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = (SidebarBranchNode*) _tmp3_;
-#line 402 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = entry_node;
-#line 402 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp4_ != NULL, "entry_node != null");
-#line 403 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = entry_node;
-#line 403 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = _tmp5_->parent;
-#line 403 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp6_ != NULL, "entry_node.parent != null");
-#line 404 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = entry_node;
-#line 404 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = _tmp7_->parent;
-#line 404 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = _tmp8_->children;
-#line 404 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp9_ != NULL, "entry_node.parent.children != null");
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = entry_node;
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = _tmp10_->parent;
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp12_ = _tmp11_->children;
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp13_ = entry_node;
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp14_ = gee_sorted_set_lower (_tmp12_, _tmp13_);
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sibling = (SidebarBranchNode*) _tmp14_;
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp16_ = sibling;
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp16_ != NULL) {
-#line 1434 "Branch.c"
- SidebarBranchNode* _tmp17_;
- SidebarEntry* _tmp18_;
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp17_ = sibling;
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp18_ = _tmp17_->entry;
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp15_ = _tmp18_;
-#line 1443 "Branch.c"
- } else {
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp15_ = NULL;
-#line 1447 "Branch.c"
- }
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp19_ = _g_object_ref0 (_tmp15_);
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp19_;
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (sibling);
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1459 "Branch.c"
-}
-
-
-SidebarEntry*
-sidebar_branch_get_next_sibling (SidebarBranch* self,
- SidebarEntry* entry)
-{
- SidebarEntry* result = NULL;
- SidebarBranchNode* _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarBranchNode* entry_node = NULL;
- GeeHashMap* _tmp2_;
- gpointer _tmp3_;
- SidebarBranchNode* _tmp4_;
- SidebarBranchNode* _tmp5_;
- SidebarBranchNode* _tmp6_;
- SidebarBranchNode* _tmp7_;
- SidebarBranchNode* _tmp8_;
- GeeSortedSet* _tmp9_;
- SidebarBranchNode* sibling = NULL;
- SidebarBranchNode* _tmp10_;
- SidebarBranchNode* _tmp11_;
- GeeSortedSet* _tmp12_;
- SidebarBranchNode* _tmp13_;
- gpointer _tmp14_;
- SidebarEntry* _tmp15_ = NULL;
- SidebarBranchNode* _tmp16_;
- SidebarEntry* _tmp19_;
-#line 412 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL);
-#line 412 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL);
-#line 413 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->priv->root;
-#line 413 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = _tmp0_->entry;
-#line 413 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (entry == _tmp1_) {
-#line 414 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = NULL;
-#line 414 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1502 "Branch.c"
- }
-#line 416 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->priv->map;
-#line 416 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 416 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- entry_node = (SidebarBranchNode*) _tmp3_;
-#line 417 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = entry_node;
-#line 417 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp4_ != NULL, "entry_node != null");
-#line 418 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = entry_node;
-#line 418 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = _tmp5_->parent;
-#line 418 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp6_ != NULL, "entry_node.parent != null");
-#line 419 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = entry_node;
-#line 419 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = _tmp7_->parent;
-#line 419 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = _tmp8_->children;
-#line 419 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp9_ != NULL, "entry_node.parent.children != null");
-#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = entry_node;
-#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = _tmp10_->parent;
-#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp12_ = _tmp11_->children;
-#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp13_ = entry_node;
-#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp14_ = gee_sorted_set_higher (_tmp12_, _tmp13_);
-#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sibling = (SidebarBranchNode*) _tmp14_;
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp16_ = sibling;
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp16_ != NULL) {
-#line 1544 "Branch.c"
- SidebarBranchNode* _tmp17_;
- SidebarEntry* _tmp18_;
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp17_ = sibling;
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp18_ = _tmp17_->entry;
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp15_ = _tmp18_;
-#line 1553 "Branch.c"
- } else {
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp15_ = NULL;
-#line 1557 "Branch.c"
- }
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp19_ = _g_object_ref0 (_tmp15_);
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp19_;
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (sibling);
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (entry_node);
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1569 "Branch.c"
-}
-
-
-static void
-sidebar_branch_prune_callback (SidebarBranch* self,
- SidebarBranchNode* node)
-{
- SidebarEntry* _tmp0_;
-#line 426 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 426 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (node));
-#line 427 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = node->entry;
-#line 427 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REMOVED_SIGNAL], 0, _tmp0_);
-#line 1586 "Branch.c"
-}
-
-
-static void
-sidebar_branch_children_reordered_callback (SidebarBranch* self,
- SidebarBranchNode* node)
-{
- SidebarEntry* _tmp0_;
-#line 430 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (self));
-#line 430 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (node));
-#line 431 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = node->entry;
-#line 431 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_CHILDREN_REORDERED_SIGNAL], 0, _tmp0_);
-#line 1603 "Branch.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (n_param_values == 3);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- data1 = closure->data;
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- data2 = param_values->data[0].v_pointer;
-#line 1629 "Branch.c"
- } else {
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- data1 = param_values->data[0].v_pointer;
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- data2 = closure->data;
-#line 1635 "Branch.c"
- }
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 1641 "Branch.c"
-}
-
-
-static SidebarBranchNode*
-sidebar_branch_node_construct (GType object_type,
- SidebarEntry* entry,
- SidebarBranchNode* parent,
- GCompareFunc comparator)
-{
- SidebarBranchNode* self = NULL;
- SidebarEntry* _tmp0_;
-#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL);
-#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail ((parent == NULL) || SIDEBAR_BRANCH_IS_NODE (parent), NULL);
-#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self = (SidebarBranchNode*) g_type_create_instance (object_type);
-#line 46 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = _g_object_ref0 (entry);
-#line 46 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->entry);
-#line 46 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->entry = _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->parent = parent;
-#line 48 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->comparator = comparator;
-#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return self;
-#line 1671 "Branch.c"
-}
-
-
-static SidebarBranchNode*
-sidebar_branch_node_new (SidebarEntry* entry,
- SidebarBranchNode* parent,
- GCompareFunc comparator)
-{
-#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return sidebar_branch_node_construct (SIDEBAR_BRANCH_TYPE_NODE, entry, parent, comparator);
-#line 1682 "Branch.c"
-}
-
-
-static gint
-sidebar_branch_node_comparator_wrapper (SidebarBranchNode* anode,
- SidebarBranchNode* bnode)
-{
- gint result = 0;
- SidebarBranchNode* _tmp0_;
- SidebarBranchNode* _tmp1_;
- SidebarBranchNode* _tmp2_;
- GCompareFunc _tmp3_;
- SidebarEntry* _tmp4_;
- SidebarEntry* _tmp5_;
-#line 51 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (anode), 0);
-#line 51 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (bnode), 0);
-#line 52 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (anode == bnode) {
-#line 53 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = 0;
-#line 53 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1707 "Branch.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = anode->parent;
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = bnode->parent;
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp0_ == _tmp1_, "anode.parent == bnode.parent");
-#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = anode->parent;
-#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = _tmp2_->comparator;
-#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = anode->entry;
-#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = bnode->entry;
-#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp3_ (_tmp4_, _tmp5_);
-#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1727 "Branch.c"
-}
-
-
-static gboolean
-sidebar_branch_node_has_children (SidebarBranchNode* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GeeSortedSet* _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (self), FALSE);
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = self->children;
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp1_ != NULL) {
-#line 1743 "Branch.c"
- GeeSortedSet* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->children;
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = _tmp3_;
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = _tmp4_ > 0;
-#line 1755 "Branch.c"
- } else {
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = FALSE;
-#line 1759 "Branch.c"
- }
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = _tmp0_;
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1765 "Branch.c"
-}
-
-
-static gint
-_sidebar_branch_node_comparator_wrapper_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = sidebar_branch_node_comparator_wrapper ((SidebarBranchNode*) a, (SidebarBranchNode*) b);
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 1778 "Branch.c"
-}
-
-
-static void
-sidebar_branch_node_add_child (SidebarBranchNode* self,
- SidebarBranchNode* child)
-{
- GeeSortedSet* _tmp0_;
- gboolean added = FALSE;
- GeeSortedSet* _tmp2_;
-#line 64 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self));
-#line 64 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (child));
-#line 65 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child->parent = self;
-#line 67 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->children;
-#line 67 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp0_ == NULL) {
-#line 1799 "Branch.c"
- GeeTreeSet* _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_tree_set_new (SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, _sidebar_branch_node_comparator_wrapper_gcompare_data_func, NULL, NULL);
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->children);
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->children = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 1807 "Branch.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->children;
-#line 70 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- added = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), child);
-#line 71 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (added, "added");
-#line 1815 "Branch.c"
-}
-
-
-static void
-sidebar_branch_node_remove_child (SidebarBranchNode* self,
- SidebarBranchNode* child)
-{
- GeeSortedSet* _tmp0_;
- GeeSortedSet* new_children = NULL;
- GeeTreeSet* _tmp1_;
- gboolean found = FALSE;
- gboolean _tmp10_;
- GeeSortedSet* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
-#line 74 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self));
-#line 74 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (child));
-#line 75 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->children;
-#line 75 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp0_ != NULL, "children != null");
-#line 77 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_tree_set_new (SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, _sidebar_branch_node_comparator_wrapper_gcompare_data_func, NULL, NULL);
-#line 77 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- new_children = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 81 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- found = FALSE;
-#line 1845 "Branch.c"
- {
- GeeIterator* _c_it = NULL;
- GeeSortedSet* _tmp2_;
- GeeIterator* _tmp3_;
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->children;
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _c_it = _tmp3_;
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- while (TRUE) {
-#line 1858 "Branch.c"
- GeeIterator* _tmp4_;
- SidebarBranchNode* c = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- SidebarBranchNode* _tmp7_;
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = _c_it;
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- break;
-#line 1870 "Branch.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = _c_it;
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- c = (SidebarBranchNode*) _tmp6_;
-#line 83 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = c;
-#line 83 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp7_ != child) {
-#line 1882 "Branch.c"
- GeeSortedSet* _tmp8_;
- SidebarBranchNode* _tmp9_;
-#line 84 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = new_children;
-#line 84 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = c;
-#line 84 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_);
-#line 1891 "Branch.c"
- } else {
-#line 86 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- found = TRUE;
-#line 1895 "Branch.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (c);
-#line 1899 "Branch.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_c_it);
-#line 1903 "Branch.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = found;
-#line 89 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp10_, "found");
-#line 91 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = new_children;
-#line 91 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 91 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp13_ = _tmp12_;
-#line 91 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp13_ != 0) {
-#line 1917 "Branch.c"
- GeeSortedSet* _tmp14_;
- GeeSortedSet* _tmp15_;
-#line 92 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp14_ = new_children;
-#line 92 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp15_ = _g_object_ref0 (_tmp14_);
-#line 92 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->children);
-#line 92 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->children = _tmp15_;
-#line 1928 "Branch.c"
- } else {
-#line 94 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->children);
-#line 94 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->children = NULL;
-#line 1934 "Branch.c"
- }
-#line 96 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child->parent = NULL;
-#line 74 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (new_children);
-#line 1940 "Branch.c"
-}
-
-
-static void
-sidebar_branch_node_prune_children (SidebarBranchNode* self,
- SidebarBranchNodePruneCallback cb,
- void* cb_target)
-{
- GeeSortedSet* _tmp0_;
- GeeSortedSet* old_children = NULL;
- GeeSortedSet* _tmp7_;
- GeeSortedSet* _tmp8_;
-#line 99 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self));
-#line 100 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->children;
-#line 100 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp0_ == NULL) {
-#line 101 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return;
-#line 1961 "Branch.c"
- }
- {
- GeeIterator* _child_it = NULL;
- GeeSortedSet* _tmp1_;
- GeeIterator* _tmp2_;
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = self->children;
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _child_it = _tmp2_;
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- while (TRUE) {
-#line 1975 "Branch.c"
- GeeIterator* _tmp3_;
- SidebarBranchNode* child = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SidebarBranchNode* _tmp6_;
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = _child_it;
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- break;
-#line 1987 "Branch.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = _child_it;
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child = (SidebarBranchNode*) _tmp5_;
-#line 104 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = child;
-#line 104 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_prune_children (_tmp6_, cb, cb_target);
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (child);
-#line 2001 "Branch.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_child_it);
-#line 2005 "Branch.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = self->children;
-#line 106 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
-#line 106 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- old_children = _tmp8_;
-#line 107 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->children);
-#line 107 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->children = NULL;
-#line 2017 "Branch.c"
- {
- GeeIterator* _child_it = NULL;
- GeeSortedSet* _tmp9_;
- GeeIterator* _tmp10_;
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = old_children;
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _child_it = _tmp10_;
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- while (TRUE) {
-#line 2030 "Branch.c"
- GeeIterator* _tmp11_;
- SidebarBranchNode* child = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- SidebarBranchNode* _tmp14_;
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = _child_it;
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- break;
-#line 2042 "Branch.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp12_ = _child_it;
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child = (SidebarBranchNode*) _tmp13_;
-#line 113 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp14_ = child;
-#line 113 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- cb (_tmp14_, cb_target);
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (child);
-#line 2056 "Branch.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_child_it);
-#line 2060 "Branch.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (old_children);
-#line 2064 "Branch.c"
-}
-
-
-static gint
-sidebar_branch_node_index_of_by_reference (SidebarBranchNode* self,
- SidebarBranchNode* child)
-{
- gint result = 0;
- GeeSortedSet* _tmp0_;
- gint index = 0;
-#line 118 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (self), 0);
-#line 118 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (child), 0);
-#line 119 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->children;
-#line 119 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp0_ == NULL) {
-#line 120 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = -1;
-#line 120 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 2087 "Branch.c"
- }
-#line 122 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- index = 0;
-#line 2091 "Branch.c"
- {
- GeeIterator* _c_it = NULL;
- GeeSortedSet* _tmp1_;
- GeeIterator* _tmp2_;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = self->children;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _c_it = _tmp2_;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- while (TRUE) {
-#line 2104 "Branch.c"
- GeeIterator* _tmp3_;
- SidebarBranchNode* c = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SidebarBranchNode* _tmp6_;
- gint _tmp7_;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = _c_it;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!gee_iterator_next (_tmp3_)) {
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- break;
-#line 2117 "Branch.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = _c_it;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- c = (SidebarBranchNode*) _tmp5_;
-#line 124 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = c;
-#line 124 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (child == _tmp6_) {
-#line 125 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = index;
-#line 125 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (c);
-#line 125 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_c_it);
-#line 125 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 2137 "Branch.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = index;
-#line 127 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- index = _tmp7_ + 1;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (c);
-#line 2145 "Branch.c"
- }
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_c_it);
-#line 2149 "Branch.c"
- }
-#line 130 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = -1;
-#line 130 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 2155 "Branch.c"
-}
-
-
-static gboolean
-sidebar_branch_node_reorder_child (SidebarBranchNode* self,
- SidebarBranchNode* child)
-{
- gboolean result = FALSE;
- GeeSortedSet* _tmp0_;
- gint old_index = 0;
- GeeSortedSet* new_children = NULL;
- GeeTreeSet* _tmp1_;
- gboolean added = FALSE;
- GeeSortedSet* _tmp2_;
- GeeSortedSet* _tmp3_;
- gint new_index = 0;
-#line 134 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (self), FALSE);
-#line 134 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (child), FALSE);
-#line 135 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->children;
-#line 135 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (_tmp0_ != NULL, "children != null");
-#line 137 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- old_index = sidebar_branch_node_index_of_by_reference (self, child);
-#line 138 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (old_index >= 0, "old_index >= 0");
-#line 146 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_tree_set_new (SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, _sidebar_branch_node_comparator_wrapper_gcompare_data_func, NULL, NULL);
-#line 146 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- new_children = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 147 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = self->children;
-#line 147 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- added = gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (new_children, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 148 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (added, "added");
-#line 150 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = _g_object_ref0 (new_children);
-#line 150 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->children);
-#line 150 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->children = _tmp3_;
-#line 152 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- new_index = sidebar_branch_node_index_of_by_reference (self, child);
-#line 153 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _vala_assert (new_index >= 0, "new_index >= 0");
-#line 155 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- result = old_index != new_index;
-#line 155 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (new_children);
-#line 155 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return result;
-#line 2210 "Branch.c"
-}
-
-
-static void
-sidebar_branch_node_reorder_children (SidebarBranchNode* self,
- gboolean recursive,
- SidebarBranchNodeChildrenReorderedCallback cb,
- void* cb_target)
-{
- GeeSortedSet* _tmp0_;
- GeeSortedSet* reordered = NULL;
- GeeTreeSet* _tmp1_;
- GeeSortedSet* _tmp2_;
- GeeSortedSet* _tmp3_;
- GeeSortedSet* _tmp4_;
- GeeSortedSet* _tmp5_;
-#line 158 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self));
-#line 159 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->children;
-#line 159 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (_tmp0_ == NULL) {
-#line 160 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return;
-#line 2235 "Branch.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_tree_set_new (SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, _sidebar_branch_node_comparator_wrapper_gcompare_data_func, NULL, NULL);
-#line 162 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- reordered = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 163 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = reordered;
-#line 163 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = self->children;
-#line 163 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 164 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = reordered;
-#line 164 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 164 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->children);
-#line 164 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->children = _tmp5_;
-#line 166 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (recursive) {
-#line 2257 "Branch.c"
- {
- GeeIterator* _child_it = NULL;
- GeeSortedSet* _tmp6_;
- GeeIterator* _tmp7_;
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp6_ = self->children;
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _child_it = _tmp7_;
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- while (TRUE) {
-#line 2270 "Branch.c"
- GeeIterator* _tmp8_;
- SidebarBranchNode* child = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- SidebarBranchNode* _tmp11_;
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp8_ = _child_it;
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- break;
-#line 2282 "Branch.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp9_ = _child_it;
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child = (SidebarBranchNode*) _tmp10_;
-#line 168 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp11_ = child;
-#line 168 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_reorder_children (_tmp11_, TRUE, cb, cb_target);
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (child);
-#line 2296 "Branch.c"
- }
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_child_it);
-#line 2300 "Branch.c"
- }
- }
-#line 171 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- cb (self, cb_target);
-#line 158 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (reordered);
-#line 2307 "Branch.c"
-}
-
-
-static void
-sidebar_branch_node_change_comparator (SidebarBranchNode* self,
- GCompareFunc comparator,
- gboolean recursive,
- SidebarBranchNodeChildrenReorderedCallback cb,
- void* cb_target)
-{
-#line 174 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self));
-#line 176 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->comparator = comparator;
-#line 179 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_reorder_children (self, FALSE, cb, cb_target);
-#line 181 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (recursive) {
-#line 2326 "Branch.c"
- {
- GeeIterator* _child_it = NULL;
- GeeSortedSet* _tmp0_;
- GeeIterator* _tmp1_;
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = self->children;
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _child_it = _tmp1_;
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- while (TRUE) {
-#line 2339 "Branch.c"
- GeeIterator* _tmp2_;
- SidebarBranchNode* child = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- SidebarBranchNode* _tmp5_;
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp2_ = _child_it;
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- break;
-#line 2351 "Branch.c"
- }
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp3_ = _child_it;
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- child = (SidebarBranchNode*) _tmp4_;
-#line 183 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp5_ = child;
-#line 183 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_change_comparator (_tmp5_, comparator, TRUE, cb, cb_target);
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (child);
-#line 2365 "Branch.c"
- }
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (_child_it);
-#line 2369 "Branch.c"
- }
- }
-}
-
-
-static void
-sidebar_branch_value_node_init (GValue* value)
-{
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- value->data[0].v_pointer = NULL;
-#line 2380 "Branch.c"
-}
-
-
-static void
-sidebar_branch_value_node_free_value (GValue* value)
-{
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (value->data[0].v_pointer) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_unref (value->data[0].v_pointer);
-#line 2391 "Branch.c"
- }
-}
-
-
-static void
-sidebar_branch_value_node_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (src_value->data[0].v_pointer) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- dest_value->data[0].v_pointer = sidebar_branch_node_ref (src_value->data[0].v_pointer);
-#line 2404 "Branch.c"
- } else {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2408 "Branch.c"
- }
-}
-
-
-static gpointer
-sidebar_branch_value_node_peek_pointer (const GValue* value)
-{
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return value->data[0].v_pointer;
-#line 2418 "Branch.c"
-}
-
-
-static gchar*
-sidebar_branch_value_node_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (collect_values[0].v_pointer) {
-#line 2430 "Branch.c"
- SidebarBranchNode * object;
- object = collect_values[0].v_pointer;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2437 "Branch.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.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 2441 "Branch.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- value->data[0].v_pointer = sidebar_branch_node_ref (object);
-#line 2445 "Branch.c"
- } else {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- value->data[0].v_pointer = NULL;
-#line 2449 "Branch.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return NULL;
-#line 2453 "Branch.c"
-}
-
-
-static gchar*
-sidebar_branch_value_node_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- SidebarBranchNode ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!object_p) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2469 "Branch.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (!value->data[0].v_pointer) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- *object_p = NULL;
-#line 2475 "Branch.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- *object_p = value->data[0].v_pointer;
-#line 2479 "Branch.c"
- } else {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- *object_p = sidebar_branch_node_ref (value->data[0].v_pointer);
-#line 2483 "Branch.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return NULL;
-#line 2487 "Branch.c"
-}
-
-
-static GParamSpec*
-sidebar_branch_param_spec_node (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- SidebarBranchParamSpecNode* spec;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (g_type_is_a (object_type, SIDEBAR_BRANCH_TYPE_NODE), NULL);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return G_PARAM_SPEC (spec);
-#line 2507 "Branch.c"
-}
-
-
-static gpointer
-sidebar_branch_value_get_node (const GValue* value)
-{
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SIDEBAR_BRANCH_TYPE_NODE), NULL);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return value->data[0].v_pointer;
-#line 2518 "Branch.c"
-}
-
-
-static void
-sidebar_branch_value_set_node (GValue* value,
- gpointer v_object)
-{
- SidebarBranchNode * old;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SIDEBAR_BRANCH_TYPE_NODE));
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- old = value->data[0].v_pointer;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (v_object) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SIDEBAR_BRANCH_TYPE_NODE));
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- value->data[0].v_pointer = v_object;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_ref (value->data[0].v_pointer);
-#line 2541 "Branch.c"
- } else {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- value->data[0].v_pointer = NULL;
-#line 2545 "Branch.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (old) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_unref (old);
-#line 2551 "Branch.c"
- }
-}
-
-
-static void
-sidebar_branch_value_take_node (GValue* value,
- gpointer v_object)
-{
- SidebarBranchNode * old;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SIDEBAR_BRANCH_TYPE_NODE));
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- old = value->data[0].v_pointer;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (v_object) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SIDEBAR_BRANCH_TYPE_NODE));
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- value->data[0].v_pointer = v_object;
-#line 2573 "Branch.c"
- } else {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- value->data[0].v_pointer = NULL;
-#line 2577 "Branch.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (old) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_unref (old);
-#line 2583 "Branch.c"
- }
-}
-
-
-static void
-sidebar_branch_node_class_init (SidebarBranchNodeClass * klass)
-{
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_node_parent_class = g_type_class_peek_parent (klass);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- ((SidebarBranchNodeClass *) klass)->finalize = sidebar_branch_node_finalize;
-#line 2595 "Branch.c"
-}
-
-
-static void
-sidebar_branch_node_instance_init (SidebarBranchNode * self)
-{
-#line 43 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->children = NULL;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->ref_count = 1;
-#line 2606 "Branch.c"
-}
-
-
-static void
-sidebar_branch_node_finalize (SidebarBranchNode * obj)
-{
- SidebarBranchNode * self;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_BRANCH_TYPE_NODE, SidebarBranchNode);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_signal_handlers_destroy (self);
-#line 40 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->entry);
-#line 43 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->children);
-#line 2622 "Branch.c"
-}
-
-
-static GType
-sidebar_branch_node_get_type (void)
-{
- static volatile gsize sidebar_branch_node_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_branch_node_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { sidebar_branch_value_node_init, sidebar_branch_value_node_free_value, sidebar_branch_value_node_copy_value, sidebar_branch_value_node_peek_pointer, "p", sidebar_branch_value_node_collect_value, "p", sidebar_branch_value_node_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (SidebarBranchNodeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_branch_node_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarBranchNode), 0, (GInstanceInitFunc) sidebar_branch_node_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType sidebar_branch_node_type_id;
- sidebar_branch_node_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SidebarBranchNode", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&sidebar_branch_node_type_id__volatile, sidebar_branch_node_type_id);
- }
- return sidebar_branch_node_type_id__volatile;
-}
-
-
-static gpointer
-sidebar_branch_node_ref (gpointer instance)
-{
- SidebarBranchNode * self;
- self = instance;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- return instance;
-#line 2651 "Branch.c"
-}
-
-
-static void
-sidebar_branch_node_unref (gpointer instance)
-{
- SidebarBranchNode * self;
- self = instance;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- SIDEBAR_BRANCH_NODE_GET_CLASS (self)->finalize (self);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2666 "Branch.c"
- }
-}
-
-
-static void
-sidebar_branch_class_init (SidebarBranchClass * klass)
-{
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_parent_class = g_type_class_peek_parent (klass);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- g_type_class_add_private (klass, sizeof (SidebarBranchPrivate));
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- G_OBJECT_CLASS (klass)->finalize = sidebar_branch_finalize;
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_ADDED_SIGNAL] = g_signal_new ("entry-added", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_ENTRY);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REMOVED_SIGNAL] = g_signal_new ("entry-removed", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_ENTRY);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_MOVED_SIGNAL] = g_signal_new ("entry-moved", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_ENTRY);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REPARENTED_SIGNAL] = g_signal_new ("entry-reparented", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, SIDEBAR_TYPE_ENTRY, SIDEBAR_TYPE_ENTRY);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_signals[SIDEBAR_BRANCH_CHILDREN_REORDERED_SIGNAL] = g_signal_new ("children-reordered", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_ENTRY);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- sidebar_branch_signals[SIDEBAR_BRANCH_SHOW_BRANCH_SIGNAL] = g_signal_new ("show-branch", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 2692 "Branch.c"
-}
-
-
-static void
-sidebar_branch_instance_init (SidebarBranch * self)
-{
- GeeHashMap* _tmp0_;
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->priv = SIDEBAR_BRANCH_GET_PRIVATE (self);
-#line 190 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->priv->shown = TRUE;
-#line 192 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _tmp0_ = gee_hash_map_new (SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 192 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self->priv->map = _tmp0_;
-#line 2708 "Branch.c"
-}
-
-
-static void
-sidebar_branch_finalize (GObject * obj)
-{
- SidebarBranch * self;
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_BRANCH, SidebarBranch);
-#line 188 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _sidebar_branch_node_unref0 (self->priv->root);
-#line 192 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- _g_object_unref0 (self->priv->map);
-#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala"
- G_OBJECT_CLASS (sidebar_branch_parent_class)->finalize (obj);
-#line 2724 "Branch.c"
-}
-
-
-GType
-sidebar_branch_get_type (void)
-{
- static volatile gsize sidebar_branch_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_branch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarBranch), 0, (GInstanceInitFunc) sidebar_branch_instance_init, NULL };
- GType sidebar_branch_type_id;
- sidebar_branch_type_id = g_type_register_static (G_TYPE_OBJECT, "SidebarBranch", &g_define_type_info, 0);
- g_once_init_leave (&sidebar_branch_type_id__volatile, sidebar_branch_type_id);
- }
- return sidebar_branch_type_id__volatile;
-}
-
-
-
diff --git a/src/sidebar/Entry.c b/src/sidebar/Entry.c
deleted file mode 100644
index ab4bbdb..0000000
--- a/src/sidebar/Entry.c
+++ /dev/null
@@ -1,750 +0,0 @@
-/* Entry.c generated by valac 0.40.4, the Vala compiler
- * generated from Entry.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gee.h>
-
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-enum {
- SIDEBAR_ENTRY_SIDEBAR_TOOLTIP_CHANGED_SIGNAL,
- SIDEBAR_ENTRY_SIDEBAR_ICON_CHANGED_SIGNAL,
- SIDEBAR_ENTRY_NUM_SIGNALS
-};
-static guint sidebar_entry_signals[SIDEBAR_ENTRY_NUM_SIGNALS] = {0};
-
-#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-enum {
- SIDEBAR_PAGE_REPRESENTATIVE_PAGE_CREATED_SIGNAL,
- SIDEBAR_PAGE_REPRESENTATIVE_DESTROYING_PAGE_SIGNAL,
- SIDEBAR_PAGE_REPRESENTATIVE_NUM_SIGNALS
-};
-static guint sidebar_page_representative_signals[SIDEBAR_PAGE_REPRESENTATIVE_NUM_SIGNALS] = {0};
-
-#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
-#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
-#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
-#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
-
-typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
-typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
-enum {
- SIDEBAR_RENAMEABLE_ENTRY_SIDEBAR_NAME_CHANGED_SIGNAL,
- SIDEBAR_RENAMEABLE_ENTRY_NUM_SIGNALS
-};
-static guint sidebar_renameable_entry_signals[SIDEBAR_RENAMEABLE_ENTRY_NUM_SIGNALS] = {0};
-
-#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ())
-#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry))
-#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY))
-#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface))
-
-typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry;
-typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface;
-enum {
- SIDEBAR_EMPHASIZABLE_ENTRY_IS_EMPHASIZED_CHANGED_SIGNAL,
- SIDEBAR_EMPHASIZABLE_ENTRY_NUM_SIGNALS
-};
-static guint sidebar_emphasizable_entry_signals[SIDEBAR_EMPHASIZABLE_ENTRY_NUM_SIGNALS] = {0};
-
-#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ())
-#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry))
-#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY))
-#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface))
-
-typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry;
-typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface;
-
-#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ())
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry))
-#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY))
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface))
-
-typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry;
-typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY (sidebar_internal_drag_source_entry_get_type ())
-#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntry))
-#define SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY))
-#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntryIface))
-
-typedef struct _SidebarInternalDragSourceEntry SidebarInternalDragSourceEntry;
-typedef struct _SidebarInternalDragSourceEntryIface SidebarInternalDragSourceEntryIface;
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarRenameableEntryIface {
- GTypeInterface parent_iface;
- void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
- gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
-};
-
-struct _SidebarEmphasizableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*is_emphasized) (SidebarEmphasizableEntry* self);
-};
-
-struct _SidebarDestroyableEntryIface {
- GTypeInterface parent_iface;
- void (*destroy_source) (SidebarDestroyableEntry* self);
-};
-
-struct _SidebarInternalDropTargetEntryIface {
- GTypeInterface parent_iface;
- gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources);
- gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data);
-};
-
-struct _SidebarInternalDragSourceEntryIface {
- GTypeInterface parent_iface;
- void (*prepare_selection_data) (SidebarInternalDragSourceEntry* self, GtkSelectionData* data);
-};
-
-
-
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-gchar* sidebar_entry_get_sidebar_name (SidebarEntry* self);
-gchar* sidebar_entry_get_sidebar_tooltip (SidebarEntry* self);
-gchar* sidebar_entry_get_sidebar_icon (SidebarEntry* self);
-gchar* sidebar_entry_to_string (SidebarEntry* self);
-void sidebar_entry_grafted (SidebarEntry* self,
- SidebarTree* tree);
-static void sidebar_entry_real_grafted (SidebarEntry* self,
- SidebarTree* tree);
-void sidebar_entry_pruned (SidebarEntry* self,
- SidebarTree* tree);
-static void sidebar_entry_real_pruned (SidebarEntry* self,
- SidebarTree* tree);
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-gboolean sidebar_expandable_entry_expand_on_select (SidebarExpandableEntry* self);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-gboolean sidebar_page_representative_has_page (SidebarPageRepresentative* self);
-Page* sidebar_page_representative_get_page (SidebarPageRepresentative* self);
-GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
-void sidebar_renameable_entry_rename (SidebarRenameableEntry* self,
- const gchar* new_name);
-gboolean sidebar_renameable_entry_is_user_renameable (SidebarRenameableEntry* self);
-GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST;
-gboolean sidebar_emphasizable_entry_is_emphasized (SidebarEmphasizableEntry* self);
-GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST;
-void sidebar_destroyable_entry_destroy_source (SidebarDestroyableEntry* self);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST;
-gboolean sidebar_internal_drop_target_entry_internal_drop_received (SidebarInternalDropTargetEntry* self,
- GeeList* sources);
-gboolean sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* self,
- GtkSelectionData* data);
-GType sidebar_internal_drag_source_entry_get_type (void) G_GNUC_CONST;
-void sidebar_internal_drag_source_entry_prepare_selection_data (SidebarInternalDragSourceEntry* self,
- GtkSelectionData* data);
-
-
-gchar*
-sidebar_entry_get_sidebar_name (SidebarEntry* self)
-{
-#line 12 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (self), NULL);
-#line 12 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_ENTRY_GET_INTERFACE (self)->get_sidebar_name (self);
-#line 278 "Entry.c"
-}
-
-
-gchar*
-sidebar_entry_get_sidebar_tooltip (SidebarEntry* self)
-{
-#line 14 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (self), NULL);
-#line 14 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_ENTRY_GET_INTERFACE (self)->get_sidebar_tooltip (self);
-#line 289 "Entry.c"
-}
-
-
-gchar*
-sidebar_entry_get_sidebar_icon (SidebarEntry* self)
-{
-#line 16 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (self), NULL);
-#line 16 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_ENTRY_GET_INTERFACE (self)->get_sidebar_icon (self);
-#line 300 "Entry.c"
-}
-
-
-gchar*
-sidebar_entry_to_string (SidebarEntry* self)
-{
-#line 18 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (self), NULL);
-#line 18 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_ENTRY_GET_INTERFACE (self)->to_string (self);
-#line 311 "Entry.c"
-}
-
-
-static void
-sidebar_entry_real_grafted (SidebarEntry* self,
- SidebarTree* tree)
-{
-#line 20 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (tree));
-#line 321 "Entry.c"
-}
-
-
-void
-sidebar_entry_grafted (SidebarEntry* self,
- SidebarTree* tree)
-{
-#line 20 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (self));
-#line 20 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- SIDEBAR_ENTRY_GET_INTERFACE (self)->grafted (self, tree);
-#line 333 "Entry.c"
-}
-
-
-static void
-sidebar_entry_real_pruned (SidebarEntry* self,
- SidebarTree* tree)
-{
-#line 23 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (tree));
-#line 343 "Entry.c"
-}
-
-
-void
-sidebar_entry_pruned (SidebarEntry* self,
- SidebarTree* tree)
-{
-#line 23 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (self));
-#line 23 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- SIDEBAR_ENTRY_GET_INTERFACE (self)->pruned (self, tree);
-#line 355 "Entry.c"
-}
-
-
-static void
-sidebar_entry_base_init (SidebarEntryIface * iface)
-{
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- sidebar_entry_signals[SIDEBAR_ENTRY_SIDEBAR_TOOLTIP_CHANGED_SIGNAL] = g_signal_new ("sidebar-tooltip-changed", SIDEBAR_TYPE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- sidebar_entry_signals[SIDEBAR_ENTRY_SIDEBAR_ICON_CHANGED_SIGNAL] = g_signal_new ("sidebar-icon-changed", SIDEBAR_TYPE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- iface->grafted = sidebar_entry_real_grafted;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- iface->pruned = sidebar_entry_real_pruned;
-#line 376 "Entry.c"
- }
-}
-
-
-GType
-sidebar_entry_get_type (void)
-{
- static volatile gsize sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarEntryIface), (GBaseInitFunc) sidebar_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_entry_type_id;
- sidebar_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_entry_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&sidebar_entry_type_id__volatile, sidebar_entry_type_id);
- }
- return sidebar_entry_type_id__volatile;
-}
-
-
-gboolean
-sidebar_expandable_entry_expand_on_select (SidebarExpandableEntry* self)
-{
-#line 28 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_EXPANDABLE_ENTRY (self), FALSE);
-#line 28 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE (self)->expand_on_select (self);
-#line 403 "Entry.c"
-}
-
-
-static void
-sidebar_expandable_entry_base_init (SidebarExpandableEntryIface * iface)
-{
-#line 27 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 27 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 27 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 416 "Entry.c"
- }
-}
-
-
-GType
-sidebar_expandable_entry_get_type (void)
-{
- static volatile gsize sidebar_expandable_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_expandable_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarExpandableEntryIface), (GBaseInitFunc) sidebar_expandable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_expandable_entry_type_id;
- sidebar_expandable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarExpandableEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_expandable_entry_type_id, SIDEBAR_TYPE_ENTRY);
- g_once_init_leave (&sidebar_expandable_entry_type_id__volatile, sidebar_expandable_entry_type_id);
- }
- return sidebar_expandable_entry_type_id__volatile;
-}
-
-
-static void
-sidebar_selectable_entry_base_init (SidebarSelectableEntryIface * iface)
-{
-#line 31 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 31 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 31 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 445 "Entry.c"
- }
-}
-
-
-GType
-sidebar_selectable_entry_get_type (void)
-{
- static volatile gsize sidebar_selectable_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_selectable_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarSelectableEntryIface), (GBaseInitFunc) sidebar_selectable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_selectable_entry_type_id;
- sidebar_selectable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarSelectableEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_selectable_entry_type_id, SIDEBAR_TYPE_ENTRY);
- g_once_init_leave (&sidebar_selectable_entry_type_id__volatile, sidebar_selectable_entry_type_id);
- }
- return sidebar_selectable_entry_type_id__volatile;
-}
-
-
-gboolean
-sidebar_page_representative_has_page (SidebarPageRepresentative* self)
-{
-#line 41 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (self), FALSE);
-#line 41 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE (self)->has_page (self);
-#line 472 "Entry.c"
-}
-
-
-Page*
-sidebar_page_representative_get_page (SidebarPageRepresentative* self)
-{
-#line 43 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (self), NULL);
-#line 43 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE (self)->get_page (self);
-#line 483 "Entry.c"
-}
-
-
-static void
-sidebar_page_representative_base_init (SidebarPageRepresentativeIface * iface)
-{
-#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- sidebar_page_representative_signals[SIDEBAR_PAGE_REPRESENTATIVE_PAGE_CREATED_SIGNAL] = g_signal_new ("page-created", SIDEBAR_TYPE_PAGE_REPRESENTATIVE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_PAGE);
-#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- sidebar_page_representative_signals[SIDEBAR_PAGE_REPRESENTATIVE_DESTROYING_PAGE_SIGNAL] = g_signal_new ("destroying-page", SIDEBAR_TYPE_PAGE_REPRESENTATIVE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_PAGE);
-#line 500 "Entry.c"
- }
-}
-
-
-GType
-sidebar_page_representative_get_type (void)
-{
- static volatile gsize sidebar_page_representative_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_page_representative_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarPageRepresentativeIface), (GBaseInitFunc) sidebar_page_representative_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_page_representative_type_id;
- sidebar_page_representative_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarPageRepresentative", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_page_representative_type_id, SIDEBAR_TYPE_ENTRY);
- g_type_interface_add_prerequisite (sidebar_page_representative_type_id, SIDEBAR_TYPE_SELECTABLE_ENTRY);
- g_once_init_leave (&sidebar_page_representative_type_id__volatile, sidebar_page_representative_type_id);
- }
- return sidebar_page_representative_type_id__volatile;
-}
-
-
-void
-sidebar_renameable_entry_rename (SidebarRenameableEntry* self,
- const gchar* new_name)
-{
-#line 49 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_if_fail (SIDEBAR_IS_RENAMEABLE_ENTRY (self));
-#line 49 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE (self)->rename (self, new_name);
-#line 529 "Entry.c"
-}
-
-
-gboolean
-sidebar_renameable_entry_is_user_renameable (SidebarRenameableEntry* self)
-{
-#line 52 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_RENAMEABLE_ENTRY (self), FALSE);
-#line 52 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE (self)->is_user_renameable (self);
-#line 540 "Entry.c"
-}
-
-
-static void
-sidebar_renameable_entry_base_init (SidebarRenameableEntryIface * iface)
-{
-#line 46 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 46 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 46 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 46 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- sidebar_renameable_entry_signals[SIDEBAR_RENAMEABLE_ENTRY_SIDEBAR_NAME_CHANGED_SIGNAL] = g_signal_new ("sidebar-name-changed", SIDEBAR_TYPE_RENAMEABLE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
-#line 555 "Entry.c"
- }
-}
-
-
-GType
-sidebar_renameable_entry_get_type (void)
-{
- static volatile gsize sidebar_renameable_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_renameable_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarRenameableEntryIface), (GBaseInitFunc) sidebar_renameable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_renameable_entry_type_id;
- sidebar_renameable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarRenameableEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_renameable_entry_type_id, SIDEBAR_TYPE_ENTRY);
- g_once_init_leave (&sidebar_renameable_entry_type_id__volatile, sidebar_renameable_entry_type_id);
- }
- return sidebar_renameable_entry_type_id__volatile;
-}
-
-
-gboolean
-sidebar_emphasizable_entry_is_emphasized (SidebarEmphasizableEntry* self)
-{
-#line 58 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_EMPHASIZABLE_ENTRY (self), FALSE);
-#line 58 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE (self)->is_emphasized (self);
-#line 582 "Entry.c"
-}
-
-
-static void
-sidebar_emphasizable_entry_base_init (SidebarEmphasizableEntryIface * iface)
-{
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- sidebar_emphasizable_entry_signals[SIDEBAR_EMPHASIZABLE_ENTRY_IS_EMPHASIZED_CHANGED_SIGNAL] = g_signal_new ("is-emphasized-changed", SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 597 "Entry.c"
- }
-}
-
-
-GType
-sidebar_emphasizable_entry_get_type (void)
-{
- static volatile gsize sidebar_emphasizable_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_emphasizable_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarEmphasizableEntryIface), (GBaseInitFunc) sidebar_emphasizable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_emphasizable_entry_type_id;
- sidebar_emphasizable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarEmphasizableEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_emphasizable_entry_type_id, SIDEBAR_TYPE_ENTRY);
- g_once_init_leave (&sidebar_emphasizable_entry_type_id__volatile, sidebar_emphasizable_entry_type_id);
- }
- return sidebar_emphasizable_entry_type_id__volatile;
-}
-
-
-void
-sidebar_destroyable_entry_destroy_source (SidebarDestroyableEntry* self)
-{
-#line 62 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_if_fail (SIDEBAR_IS_DESTROYABLE_ENTRY (self));
-#line 62 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE (self)->destroy_source (self);
-#line 624 "Entry.c"
-}
-
-
-static void
-sidebar_destroyable_entry_base_init (SidebarDestroyableEntryIface * iface)
-{
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 61 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 637 "Entry.c"
- }
-}
-
-
-GType
-sidebar_destroyable_entry_get_type (void)
-{
- static volatile gsize sidebar_destroyable_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_destroyable_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarDestroyableEntryIface), (GBaseInitFunc) sidebar_destroyable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_destroyable_entry_type_id;
- sidebar_destroyable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarDestroyableEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_destroyable_entry_type_id, SIDEBAR_TYPE_ENTRY);
- g_once_init_leave (&sidebar_destroyable_entry_type_id__volatile, sidebar_destroyable_entry_type_id);
- }
- return sidebar_destroyable_entry_type_id__volatile;
-}
-
-
-gboolean
-sidebar_internal_drop_target_entry_internal_drop_received (SidebarInternalDropTargetEntry* self,
- GeeList* sources)
-{
-#line 67 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY (self), FALSE);
-#line 67 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE (self)->internal_drop_received (self, sources);
-#line 665 "Entry.c"
-}
-
-
-gboolean
-sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* self,
- GtkSelectionData* data)
-{
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_val_if_fail (SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY (self), FALSE);
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- return SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE (self)->internal_drop_received_arbitrary (self, data);
-#line 677 "Entry.c"
-}
-
-
-static void
-sidebar_internal_drop_target_entry_base_init (SidebarInternalDropTargetEntryIface * iface)
-{
-#line 65 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 65 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 65 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 690 "Entry.c"
- }
-}
-
-
-GType
-sidebar_internal_drop_target_entry_get_type (void)
-{
- static volatile gsize sidebar_internal_drop_target_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_internal_drop_target_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarInternalDropTargetEntryIface), (GBaseInitFunc) sidebar_internal_drop_target_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_internal_drop_target_entry_type_id;
- sidebar_internal_drop_target_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarInternalDropTargetEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_internal_drop_target_entry_type_id, SIDEBAR_TYPE_ENTRY);
- g_once_init_leave (&sidebar_internal_drop_target_entry_type_id__volatile, sidebar_internal_drop_target_entry_type_id);
- }
- return sidebar_internal_drop_target_entry_type_id__volatile;
-}
-
-
-void
-sidebar_internal_drag_source_entry_prepare_selection_data (SidebarInternalDragSourceEntry* self,
- GtkSelectionData* data)
-{
-#line 72 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- g_return_if_fail (SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY (self));
-#line 72 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE (self)->prepare_selection_data (self, data);
-#line 718 "Entry.c"
-}
-
-
-static void
-sidebar_internal_drag_source_entry_base_init (SidebarInternalDragSourceEntryIface * iface)
-{
-#line 71 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- static gboolean initialized = FALSE;
-#line 71 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- if (!initialized) {
-#line 71 "/home/jens/Source/shotwell/src/sidebar/Entry.vala"
- initialized = TRUE;
-#line 731 "Entry.c"
- }
-}
-
-
-GType
-sidebar_internal_drag_source_entry_get_type (void)
-{
- static volatile gsize sidebar_internal_drag_source_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_internal_drag_source_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarInternalDragSourceEntryIface), (GBaseInitFunc) sidebar_internal_drag_source_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_internal_drag_source_entry_type_id;
- sidebar_internal_drag_source_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarInternalDragSourceEntry", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_internal_drag_source_entry_type_id, SIDEBAR_TYPE_ENTRY);
- g_once_init_leave (&sidebar_internal_drag_source_entry_type_id__volatile, sidebar_internal_drag_source_entry_type_id);
- }
- return sidebar_internal_drag_source_entry_type_id__volatile;
-}
-
-
-
diff --git a/src/sidebar/Sidebar.c b/src/sidebar/Sidebar.c
deleted file mode 100644
index fcafa8d..0000000
--- a/src/sidebar/Sidebar.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Sidebar.c generated by valac 0.40.4, the Vala compiler
- * generated from Sidebar.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void sidebar_init (GError** error);
-void sidebar_terminate (void);
-
-
-void
-sidebar_init (GError** error)
-{
-}
-
-
-void
-sidebar_terminate (void)
-{
-}
-
-
-
diff --git a/src/sidebar/Tree.c b/src/sidebar/Tree.c
deleted file mode 100644
index edb6a3f..0000000
--- a/src/sidebar/Tree.c
+++ /dev/null
@@ -1,7875 +0,0 @@
-/* Tree.c generated by valac 0.40.4, the Vala compiler
- * generated from Tree.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gio/gio.h>
-#include <pango/pango.h>
-#include <float.h>
-#include <math.h>
-
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-typedef struct _SidebarTreePrivate SidebarTreePrivate;
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TREE_TYPE_ENTRY_WRAPPER (sidebar_tree_entry_wrapper_get_type ())
-#define SIDEBAR_TREE_ENTRY_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapper))
-#define SIDEBAR_TREE_ENTRY_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapperClass))
-#define SIDEBAR_TREE_IS_ENTRY_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER))
-#define SIDEBAR_TREE_IS_ENTRY_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER))
-#define SIDEBAR_TREE_ENTRY_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapperClass))
-
-typedef struct _SidebarTreeEntryWrapper SidebarTreeEntryWrapper;
-typedef struct _SidebarTreeEntryWrapperClass SidebarTreeEntryWrapperClass;
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-enum {
- SIDEBAR_TREE_0_PROPERTY,
- SIDEBAR_TREE_NUM_PROPERTIES
-};
-static GParamSpec* sidebar_tree_properties[SIDEBAR_TREE_NUM_PROPERTIES];
-
-#define SIDEBAR_TREE_TYPE_COLUMNS (sidebar_tree_columns_get_type ())
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define __vala_GtkTreeRowReference_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreeRowReference_free (var), NULL)))
-
-#define LIBRARY_WINDOW_TYPE_TARGET_TYPE (library_window_target_type_get_type ())
-typedef struct _SidebarTreeEntryWrapperPrivate SidebarTreeEntryWrapperPrivate;
-
-#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
-#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
-#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-
-typedef struct _SidebarGrouping SidebarGrouping;
-typedef struct _SidebarGroupingClass SidebarGroupingClass;
-
-#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
-#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
-#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-
-typedef struct _SidebarHeader SidebarHeader;
-typedef struct _SidebarHeaderClass SidebarHeaderClass;
-#define __vala_GtkTreePath_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define __g_list_free___vala_GtkTreePath_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free___vala_GtkTreePath_free0_ (var), NULL)))
-
-#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ())
-#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry))
-#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY))
-#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface))
-
-typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry;
-typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface;
-
-#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
-#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
-#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
-#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
-
-typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
-typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TREE_TYPE_ROOT_WRAPPER (sidebar_tree_root_wrapper_get_type ())
-#define SIDEBAR_TREE_ROOT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TREE_TYPE_ROOT_WRAPPER, SidebarTreeRootWrapper))
-#define SIDEBAR_TREE_ROOT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TREE_TYPE_ROOT_WRAPPER, SidebarTreeRootWrapperClass))
-#define SIDEBAR_TREE_IS_ROOT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TREE_TYPE_ROOT_WRAPPER))
-#define SIDEBAR_TREE_IS_ROOT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TREE_TYPE_ROOT_WRAPPER))
-#define SIDEBAR_TREE_ROOT_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TREE_TYPE_ROOT_WRAPPER, SidebarTreeRootWrapperClass))
-
-typedef struct _SidebarTreeRootWrapper SidebarTreeRootWrapper;
-typedef struct _SidebarTreeRootWrapperClass SidebarTreeRootWrapperClass;
-typedef struct _SidebarTreeRootWrapperPrivate SidebarTreeRootWrapperPrivate;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-
-#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-
-#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ())
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry))
-#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY))
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface))
-
-typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry;
-typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY (sidebar_internal_drag_source_entry_get_type ())
-#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntry))
-#define SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY))
-#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntryIface))
-
-typedef struct _SidebarInternalDragSourceEntry SidebarInternalDragSourceEntry;
-typedef struct _SidebarInternalDragSourceEntryIface SidebarInternalDragSourceEntryIface;
-
-#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ())
-#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry))
-#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY))
-#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface))
-
-typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry;
-typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface;
-
-#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ())
-#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog))
-#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG))
-#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG))
-#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass))
-
-typedef struct _SavedSearchDialog SavedSearchDialog;
-typedef struct _SavedSearchDialogClass SavedSearchDialogClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_NEW_ROOT_TAG_COMMAND (new_root_tag_command_get_type ())
-#define NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand))
-#define NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass))
-#define IS_NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_ROOT_TAG_COMMAND))
-#define IS_NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_ROOT_TAG_COMMAND))
-#define NEW_ROOT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass))
-
-typedef struct _NewRootTagCommand NewRootTagCommand;
-typedef struct _NewRootTagCommandClass NewRootTagCommandClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-enum {
- SIDEBAR_TREE_ENTRY_WRAPPER_0_PROPERTY,
- SIDEBAR_TREE_ENTRY_WRAPPER_NUM_PROPERTIES
-};
-static GParamSpec* sidebar_tree_entry_wrapper_properties[SIDEBAR_TREE_ENTRY_WRAPPER_NUM_PROPERTIES];
-enum {
- SIDEBAR_TREE_ROOT_WRAPPER_0_PROPERTY,
- SIDEBAR_TREE_ROOT_WRAPPER_NUM_PROPERTIES
-};
-static GParamSpec* sidebar_tree_root_wrapper_properties[SIDEBAR_TREE_ROOT_WRAPPER_NUM_PROPERTIES];
-enum {
- SIDEBAR_TREE_ENTRY_SELECTED_SIGNAL,
- SIDEBAR_TREE_SELECTED_ENTRY_REMOVED_SIGNAL,
- SIDEBAR_TREE_BRANCH_ADDED_SIGNAL,
- SIDEBAR_TREE_BRANCH_REMOVED_SIGNAL,
- SIDEBAR_TREE_BRANCH_SHOWN_SIGNAL,
- SIDEBAR_TREE_PAGE_CREATED_SIGNAL,
- SIDEBAR_TREE_DESTROYING_PAGE_SIGNAL,
- SIDEBAR_TREE_NUM_SIGNALS
-};
-static guint sidebar_tree_signals[SIDEBAR_TREE_NUM_SIGNALS] = {0};
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SidebarTree {
- GtkTreeView parent_instance;
- SidebarTreePrivate * priv;
-};
-
-struct _SidebarTreeClass {
- GtkTreeViewClass parent_class;
- gboolean (*accept_cursor_changed) (SidebarTree* self);
-};
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-typedef void (*SidebarTreeExternalDropHandler) (GdkDragContext* context, SidebarEntry* entry, GtkSelectionData* data, guint info, guint time, void* user_data);
-struct _SidebarTreePrivate {
- GtkTreeStore* store;
- GtkBuilder* builder;
- GtkCellRendererText* text_renderer;
- SidebarTreeExternalDropHandler drop_handler;
- gpointer drop_handler_target;
- GtkEntry* text_entry;
- GeeHashMap* entry_map;
- GeeHashMap* branches;
- gint editing_disabled;
- gboolean mask_entry_selected_signal;
- SidebarTreeEntryWrapper* selected_wrapper;
- GtkMenu* default_context_menu;
- gboolean expander_called_manually;
- gint expander_special_count;
- gboolean is_internal_drag_in_progress;
- SidebarEntry* internal_drag_source_entry;
- GtkTreeRowReference* old_path_ref;
-};
-
-typedef enum {
- SIDEBAR_TREE_COLUMNS_NAME,
- SIDEBAR_TREE_COLUMNS_TOOLTIP,
- SIDEBAR_TREE_COLUMNS_WRAPPER,
- SIDEBAR_TREE_COLUMNS_ICON,
- SIDEBAR_TREE_COLUMNS_N_COLUMNS
-} SidebarTreeColumns;
-
-typedef enum {
- LIBRARY_WINDOW_TARGET_TYPE_URI_LIST,
- LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST,
- LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH
-} LibraryWindowTargetType;
-
-struct _SidebarTreeEntryWrapper {
- GObject parent_instance;
- SidebarTreeEntryWrapperPrivate * priv;
- SidebarEntry* entry;
- GtkTreeRowReference* row;
-};
-
-struct _SidebarTreeEntryWrapperClass {
- GObjectClass parent_class;
-};
-
-struct _SidebarEmphasizableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*is_emphasized) (SidebarEmphasizableEntry* self);
-};
-
-struct _SidebarRenameableEntryIface {
- GTypeInterface parent_iface;
- void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
- gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarTreeRootWrapper {
- SidebarTreeEntryWrapper parent_instance;
- SidebarTreeRootWrapperPrivate * priv;
- gint root_position;
-};
-
-struct _SidebarTreeRootWrapperClass {
- SidebarTreeEntryWrapperClass parent_class;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _SidebarInternalDropTargetEntryIface {
- GTypeInterface parent_iface;
- gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources);
- gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data);
-};
-
-struct _SidebarInternalDragSourceEntryIface {
- GTypeInterface parent_iface;
- void (*prepare_selection_data) (SidebarInternalDragSourceEntry* self, GtkSelectionData* data);
-};
-
-struct _SidebarDestroyableEntryIface {
- GTypeInterface parent_iface;
- void (*destroy_source) (SidebarDestroyableEntry* self);
-};
-
-
-static gpointer sidebar_tree_parent_class = NULL;
-static gpointer sidebar_tree_entry_wrapper_parent_class = NULL;
-static gpointer sidebar_tree_root_wrapper_parent_class = NULL;
-
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-static GType sidebar_tree_entry_wrapper_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-#define SIDEBAR_TREE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_TREE, SidebarTreePrivate))
-static void sidebar_tree_on_editing_canceled (SidebarTree* self);
-static void _sidebar_tree_on_editing_canceled_gtk_cell_renderer_editing_canceled (GtkCellRenderer* _sender,
- gpointer self);
-static void sidebar_tree_on_editing_started (SidebarTree* self,
- GtkCellEditable* editable,
- const gchar* path);
-static void _sidebar_tree_on_editing_started_gtk_cell_renderer_editing_started (GtkCellRenderer* _sender,
- GtkCellEditable* editable,
- const gchar* path,
- gpointer self);
-static GType sidebar_tree_columns_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static void _vala_GtkTreeRowReference_free (GtkTreeRowReference* self);
-#define SIDEBAR_TREE_ICON_SIZE 16
-static void sidebar_tree_on_new_tag (SidebarTree* self);
-static void _sidebar_tree_on_new_tag_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void sidebar_tree_on_new_search (SidebarTree* self);
-static void _sidebar_tree_on_new_search_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-SidebarTree* sidebar_tree_new (GtkTargetEntry* target_entries,
- int target_entries_length1,
- GdkDragAction actions,
- SidebarTreeExternalDropHandler drop_handler,
- void* drop_handler_target);
-SidebarTree* sidebar_tree_construct (GType object_type,
- GtkTargetEntry* target_entries,
- int target_entries_length1,
- GdkDragAction actions,
- SidebarTreeExternalDropHandler drop_handler,
- void* drop_handler_target);
-void sidebar_tree_icon_renderer_function (SidebarTree* self,
- GtkCellLayout* layout,
- GtkCellRenderer* renderer,
- GtkTreeModel* model,
- GtkTreeIter* iter);
-static void _sidebar_tree_icon_renderer_function_gtk_cell_layout_data_func (GtkCellLayout* cell_layout,
- GtkCellRenderer* cell,
- GtkTreeModel* tree_model,
- GtkTreeIter* iter,
- gpointer self);
-static gboolean sidebar_tree_on_selection (SidebarTree* self,
- GtkTreeSelection* selection,
- GtkTreeModel* model,
- GtkTreePath* path,
- gboolean path_currently_selected);
-static gboolean _sidebar_tree_on_selection_gtk_tree_selection_func (GtkTreeSelection* selection,
- GtkTreeModel* model,
- GtkTreePath* path,
- gboolean path_currently_selected,
- gpointer self);
-gboolean sidebar_tree_on_toggle_row (SidebarTree* self,
- GtkTreeIter* iter,
- GtkTreePath* path);
-static gboolean _sidebar_tree_on_toggle_row_gtk_tree_view_test_expand_row (GtkTreeView* _sender,
- GtkTreeIter* iter,
- GtkTreePath* path,
- gpointer self);
-static gboolean _sidebar_tree_on_toggle_row_gtk_tree_view_test_collapse_row (GtkTreeView* _sender,
- GtkTreeIter* iter,
- GtkTreePath* path,
- gpointer self);
-GType library_window_target_type_get_type (void) G_GNUC_CONST;
-static void _vala_array_add67 (GtkTargetEntry* * array,
- int* length,
- int* size,
- const GtkTargetEntry* value);
-static gboolean sidebar_tree_on_context_menu_keypress (SidebarTree* self);
-static gboolean _sidebar_tree_on_context_menu_keypress_gtk_widget_popup_menu (GtkWidget* _sender,
- gpointer self);
-static void sidebar_tree_setup_default_context_menu (SidebarTree* self);
-static void sidebar_tree_on_drag_begin (SidebarTree* self,
- GdkDragContext* ctx);
-static void _sidebar_tree_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self);
-static void sidebar_tree_on_drag_end (SidebarTree* self,
- GdkDragContext* ctx);
-static void _sidebar_tree_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self);
-static gboolean sidebar_tree_on_drag_motion (SidebarTree* self,
- GdkDragContext* context,
- gint x,
- gint y,
- guint time_);
-static gboolean _sidebar_tree_on_drag_motion_gtk_widget_drag_motion (GtkWidget* _sender,
- GdkDragContext* context,
- gint x,
- gint y,
- guint time_,
- gpointer self);
-static SidebarTreeEntryWrapper* sidebar_tree_get_wrapper_at_iter (SidebarTree* self,
- GtkTreeIter* iter);
-GType sidebar_grouping_get_type (void) G_GNUC_CONST;
-GType sidebar_header_get_type (void) G_GNUC_CONST;
-static void _vala_GtkTreePath_free (GtkTreePath* self);
-static SidebarTreeEntryWrapper* sidebar_tree_get_wrapper_at_path (SidebarTree* self,
- GtkTreePath* path);
-gchar* resources_get_ui (const gchar* filename);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-void application_panic (Application* self);
-static gboolean sidebar_tree_has_wrapper (SidebarTree* self,
- SidebarEntry* entry);
-static SidebarTreeEntryWrapper* sidebar_tree_get_wrapper (SidebarTree* self,
- SidebarEntry* entry);
-gchar* sidebar_entry_to_string (SidebarEntry* self);
-gboolean sidebar_tree_place_cursor (SidebarTree* self,
- SidebarEntry* entry,
- gboolean mask_signal);
-gboolean sidebar_tree_expand_to_entry (SidebarTree* self,
- SidebarEntry* entry);
-static GtkTreePath* sidebar_tree_entry_wrapper_get_path (SidebarTreeEntryWrapper* self);
-gboolean sidebar_tree_scroll_to_entry (SidebarTree* self,
- SidebarEntry* entry);
-gboolean sidebar_tree_is_selected (SidebarTree* self,
- SidebarEntry* entry);
-gboolean sidebar_tree_is_any_selected (SidebarTree* self);
-static GtkTreePath* sidebar_tree_get_selected_path (SidebarTree* self);
-static GtkTreePath* _vala_GtkTreePath_copy (GtkTreePath* self);
-static void __vala_GtkTreePath_free0_ (gpointer var);
-static inline void _g_list_free___vala_GtkTreePath_free0_ (GList* self);
-static gchar* sidebar_tree_get_name_for_entry (SidebarTree* self,
- SidebarEntry* entry);
-gchar* guarded_markup_escape_text (const gchar* plain);
-gchar* sidebar_entry_get_sidebar_name (SidebarEntry* self);
-GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST;
-gboolean sidebar_emphasizable_entry_is_emphasized (SidebarEmphasizableEntry* self);
-gboolean sidebar_tree_accept_cursor_changed (SidebarTree* self);
-static gboolean sidebar_tree_real_accept_cursor_changed (SidebarTree* self);
-static void sidebar_tree_real_cursor_changed (GtkTreeView* base);
-GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
-gboolean sidebar_renameable_entry_is_user_renameable (SidebarRenameableEntry* self);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-void sidebar_tree_disable_editing (SidebarTree* self);
-void sidebar_tree_enable_editing (SidebarTree* self);
-void sidebar_tree_toggle_branch_expansion (SidebarTree* self,
- GtkTreePath* path,
- gboolean expand_all);
-void sidebar_tree_expand_to_first_child (SidebarTree* self,
- SidebarEntry* entry);
-void sidebar_tree_graft (SidebarTree* self,
- SidebarBranch* branch,
- gint position);
-gboolean sidebar_branch_get_show_branch (SidebarBranch* self);
-static void sidebar_tree_associate_branch (SidebarTree* self,
- SidebarBranch* branch);
-gboolean sidebar_branch_is_startup_expand_to_first_child (SidebarBranch* self);
-SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-gboolean sidebar_branch_is_startup_open_grouping (SidebarBranch* self);
-static void sidebar_tree_on_branch_entry_added (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry);
-static void _sidebar_tree_on_branch_entry_added_sidebar_branch_entry_added (SidebarBranch* _sender,
- SidebarEntry* entry,
- gpointer self);
-static void sidebar_tree_on_branch_entry_removed (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry);
-static void _sidebar_tree_on_branch_entry_removed_sidebar_branch_entry_removed (SidebarBranch* _sender,
- SidebarEntry* entry,
- gpointer self);
-static void sidebar_tree_on_branch_entry_moved (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry);
-static void _sidebar_tree_on_branch_entry_moved_sidebar_branch_entry_moved (SidebarBranch* _sender,
- SidebarEntry* entry,
- gpointer self);
-static void sidebar_tree_on_branch_entry_reparented (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry,
- SidebarEntry* old_parent);
-static void _sidebar_tree_on_branch_entry_reparented_sidebar_branch_entry_reparented (SidebarBranch* _sender,
- SidebarEntry* entry,
- SidebarEntry* old_parent,
- gpointer self);
-static void sidebar_tree_on_branch_children_reordered (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry);
-static void _sidebar_tree_on_branch_children_reordered_sidebar_branch_children_reordered (SidebarBranch* _sender,
- SidebarEntry* entry,
- gpointer self);
-static void sidebar_tree_on_show_branch (SidebarTree* self,
- SidebarBranch* branch,
- gboolean shown);
-static void _sidebar_tree_on_show_branch_sidebar_branch_show_branch (SidebarBranch* _sender,
- gboolean show,
- gpointer self);
-static GType sidebar_tree_root_wrapper_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-static GtkTreeIter* _gtk_tree_iter_dup (GtkTreeIter* self);
-static void sidebar_tree_associate_wrapper (SidebarTree* self,
- GtkTreeIter* assoc_iter,
- SidebarTreeEntryWrapper* wrapper);
-static SidebarTreeRootWrapper* sidebar_tree_root_wrapper_new (GtkTreeModel* model,
- SidebarEntry* entry,
- GtkTreePath* path,
- gint root_position);
-static SidebarTreeRootWrapper* sidebar_tree_root_wrapper_construct (GType object_type,
- GtkTreeModel* model,
- SidebarEntry* entry,
- GtkTreePath* path,
- gint root_position);
-static void sidebar_tree_associate_children (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* parent,
- GtkTreeIter* parent_iter);
-GeeList* sidebar_branch_get_children (SidebarBranch* self,
- SidebarEntry* parent);
-static void sidebar_tree_associate_entry (SidebarTree* self,
- GtkTreeIter* assoc_iter,
- SidebarEntry* entry);
-static SidebarTreeEntryWrapper* sidebar_tree_entry_wrapper_new (GtkTreeModel* model,
- SidebarEntry* entry,
- GtkTreePath* path);
-static SidebarTreeEntryWrapper* sidebar_tree_entry_wrapper_construct (GType object_type,
- GtkTreeModel* model,
- SidebarEntry* entry,
- GtkTreePath* path);
-gchar* sidebar_entry_get_sidebar_tooltip (SidebarEntry* self);
-static void sidebar_tree_load_entry_icons (SidebarTree* self,
- GtkTreeIter* iter);
-static void sidebar_tree_on_sidebar_tooltip_changed (SidebarTree* self,
- SidebarEntry* entry,
- const gchar* tooltip);
-static void _sidebar_tree_on_sidebar_tooltip_changed_sidebar_entry_sidebar_tooltip_changed (SidebarEntry* _sender,
- const gchar* tooltip,
- gpointer self);
-static void sidebar_tree_on_sidebar_icon_changed (SidebarTree* self,
- SidebarEntry* entry,
- const gchar* icon_name);
-static void _sidebar_tree_on_sidebar_icon_changed_sidebar_entry_sidebar_icon_changed (SidebarEntry* _sender,
- const gchar* icon,
- gpointer self);
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-static void sidebar_tree_on_sidebar_page_created (SidebarTree* self,
- SidebarPageRepresentative* entry,
- Page* page);
-static void _sidebar_tree_on_sidebar_page_created_sidebar_page_representative_page_created (SidebarPageRepresentative* _sender,
- Page* page,
- gpointer self);
-static void sidebar_tree_on_sidebar_destroying_page (SidebarTree* self,
- SidebarPageRepresentative* entry,
- Page* page);
-static void _sidebar_tree_on_sidebar_destroying_page_sidebar_page_representative_destroying_page (SidebarPageRepresentative* _sender,
- Page* page,
- gpointer self);
-static void sidebar_tree_on_is_emphasized_changed (SidebarTree* self,
- SidebarEmphasizableEntry* entry,
- gboolean is_emphasized);
-static void _sidebar_tree_on_is_emphasized_changed_sidebar_emphasizable_entry_is_emphasized_changed (SidebarEmphasizableEntry* _sender,
- gboolean emphasized,
- gpointer self);
-static void sidebar_tree_on_sidebar_name_changed (SidebarTree* self,
- SidebarEntry* entry,
- const gchar* name);
-static void _sidebar_tree_on_sidebar_name_changed_sidebar_renameable_entry_sidebar_name_changed (SidebarRenameableEntry* _sender,
- const gchar* name,
- gpointer self);
-void sidebar_entry_grafted (SidebarEntry* self,
- SidebarTree* tree);
-static SidebarTreeEntryWrapper* sidebar_tree_reparent_wrapper (SidebarTree* self,
- GtkTreeIter* new_iter,
- SidebarTreeEntryWrapper* current_wrapper);
-void sidebar_tree_prune (SidebarTree* self,
- SidebarBranch* branch);
-static void sidebar_tree_disassociate_branch (SidebarTree* self,
- SidebarBranch* branch);
-static void sidebar_tree_disassociate_wrapper_and_signal (SidebarTree* self,
- SidebarTreeEntryWrapper* wrapper,
- gboolean only_children);
-static void sidebar_tree_disassociate_wrapper (SidebarTree* self,
- SidebarTreeEntryWrapper* wrapper,
- gboolean only_children);
-static void sidebar_tree_entry_wrapper_get_iter (SidebarTreeEntryWrapper* self,
- GtkTreeIter* result);
-void sidebar_entry_pruned (SidebarEntry* self,
- SidebarTree* tree);
-SidebarEntry* sidebar_branch_get_parent (SidebarBranch* self,
- SidebarEntry* entry);
-SidebarEntry* sidebar_branch_get_next_sibling (SidebarBranch* self,
- SidebarEntry* entry);
-gboolean sidebar_branch_is_auto_open_on_new_child (SidebarBranch* self);
-SidebarEntry* sidebar_branch_get_previous_sibling (SidebarBranch* self,
- SidebarEntry* entry);
-static GtkTreePath* sidebar_tree_get_current_path (SidebarTree* self);
-static void sidebar_tree_rename_entry (SidebarTree* self,
- SidebarEntry* entry);
-gchar* sidebar_entry_get_sidebar_icon (SidebarEntry* self);
-static void sidebar_tree_load_branch_icons (SidebarTree* self,
- GtkTreeIter* iter);
-static GtkTreePath* sidebar_tree_get_path_from_event (SidebarTree* self,
- GdkEventButton* event);
-static gboolean sidebar_tree_popup_context_menu (SidebarTree* self,
- GtkTreePath* path,
- GdkEventButton* event);
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-GtkMenu* sidebar_contextable_get_sidebar_context_menu (SidebarContextable* self,
- GdkEventButton* event);
-static gboolean sidebar_tree_popup_default_context_menu (SidebarTree* self,
- GdkEventButton* event);
-static gboolean sidebar_tree_real_button_press_event (GtkWidget* base,
- GdkEventButton* event);
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST;
-gboolean sidebar_tree_is_keypress_interpreted (SidebarTree* self,
- GdkEventKey* event);
-static gboolean sidebar_tree_real_key_press_event (GtkWidget* base,
- GdkEventKey* event);
-static gboolean sidebar_tree_rename_in_place (SidebarTree* self);
-static gboolean sidebar_tree_destroy_path (SidebarTree* self,
- GtkTreePath* path);
-gboolean sidebar_tree_rename_entry_in_place (SidebarTree* self,
- SidebarEntry* entry);
-static gboolean sidebar_tree_can_rename_path (SidebarTree* self,
- GtkTreePath* path);
-static void sidebar_tree_real_drag_data_get (GtkWidget* base,
- GdkDragContext* context,
- GtkSelectionData* selection_data,
- guint info,
- guint time);
-GType sidebar_internal_drag_source_entry_get_type (void) G_GNUC_CONST;
-void sidebar_internal_drag_source_entry_prepare_selection_data (SidebarInternalDragSourceEntry* self,
- GtkSelectionData* data);
-static void sidebar_tree_real_drag_data_received (GtkWidget* base,
- GdkDragContext* context,
- gint x,
- gint y,
- GtkSelectionData* selection_data,
- guint info,
- guint time);
-#define LIBRARY_WINDOW_TAG_PATH_MIME_TYPE "shotwell/tag-path"
-gboolean sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* self,
- GtkSelectionData* data);
-GeeList* unserialize_media_sources (guchar* serialized,
- gint size);
-gboolean sidebar_internal_drop_target_entry_internal_drop_received (SidebarInternalDropTargetEntry* self,
- GeeList* sources);
-static gboolean sidebar_tree_real_drag_motion (GtkWidget* base,
- GdkDragContext* context,
- gint x,
- gint y,
- guint time);
-GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST;
-void sidebar_destroyable_entry_destroy_source (SidebarDestroyableEntry* self);
-static void sidebar_tree_on_editing_done (SidebarTree* self);
-static void _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done (GtkCellEditable* _sender,
- gpointer self);
-static gboolean sidebar_tree_on_editing_focus_out (SidebarTree* self,
- GdkEventFocus* event);
-static gboolean _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self);
-void sidebar_renameable_entry_rename (SidebarRenameableEntry* self,
- const gchar* new_name);
-SavedSearchDialog* saved_search_dialog_new (void);
-SavedSearchDialog* saved_search_dialog_construct (GType object_type);
-GType saved_search_dialog_get_type (void) G_GNUC_CONST;
-void saved_search_dialog_show (SavedSearchDialog* self);
-GType command_get_type (void) G_GNUC_CONST;
-GType page_command_get_type (void) G_GNUC_CONST;
-GType new_root_tag_command_get_type (void) G_GNUC_CONST;
-NewRootTagCommand* new_root_tag_command_new (void);
-NewRootTagCommand* new_root_tag_command_construct (GType object_type);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-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 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;
-LibraryWindow* library_window_get_app (void);
-GType tag_get_type (void) G_GNUC_CONST;
-void library_window_rename_tag_in_sidebar (LibraryWindow* self,
- Tag* tag);
-Tag* new_root_tag_command_get_created_tag (NewRootTagCommand* self);
-static void g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-static void sidebar_tree_entry_wrapper_finalize (GObject * obj);
-static void sidebar_tree_root_wrapper_finalize (GObject * obj);
-static void sidebar_tree_finalize (GObject * obj);
-
-static const GActionEntry SIDEBAR_TREE_entries[2] = {{"tag.new", _sidebar_tree_on_new_tag_gsimple_action_activate_callback}, {"search.new", _sidebar_tree_on_new_search_gsimple_action_activate_callback}};
-
-static void
-_sidebar_tree_on_editing_canceled_gtk_cell_renderer_editing_canceled (GtkCellRenderer* _sender,
- gpointer self)
-{
-#line 155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_editing_canceled ((SidebarTree*) self);
-#line 925 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_editing_started_gtk_cell_renderer_editing_started (GtkCellRenderer* _sender,
- GtkCellEditable* editable,
- const gchar* path,
- gpointer self)
-{
-#line 156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_editing_started ((SidebarTree*) self, editable, path);
-#line 937 "Tree.c"
-}
-
-
-static GType
-sidebar_tree_columns_get_type (void)
-{
- static volatile gsize sidebar_tree_columns_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_tree_columns_type_id__volatile)) {
- static const GEnumValue values[] = {{SIDEBAR_TREE_COLUMNS_NAME, "SIDEBAR_TREE_COLUMNS_NAME", "name"}, {SIDEBAR_TREE_COLUMNS_TOOLTIP, "SIDEBAR_TREE_COLUMNS_TOOLTIP", "tooltip"}, {SIDEBAR_TREE_COLUMNS_WRAPPER, "SIDEBAR_TREE_COLUMNS_WRAPPER", "wrapper"}, {SIDEBAR_TREE_COLUMNS_ICON, "SIDEBAR_TREE_COLUMNS_ICON", "icon"}, {SIDEBAR_TREE_COLUMNS_N_COLUMNS, "SIDEBAR_TREE_COLUMNS_N_COLUMNS", "n-columns"}, {0, NULL, NULL}};
- GType sidebar_tree_columns_type_id;
- sidebar_tree_columns_type_id = g_enum_register_static ("SidebarTreeColumns", values);
- g_once_init_leave (&sidebar_tree_columns_type_id__volatile, sidebar_tree_columns_type_id);
- }
- return sidebar_tree_columns_type_id__volatile;
-}
-
-
-static void
-_vala_GtkTreeRowReference_free (GtkTreeRowReference* self)
-{
-#line 77 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_boxed_free (gtk_tree_row_reference_get_type (), self);
-#line 960 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_new_tag_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 192 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_new_tag ((SidebarTree*) self);
-#line 971 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_new_search_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self)
-{
-#line 192 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_new_search ((SidebarTree*) self);
-#line 982 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_icon_renderer_function_gtk_cell_layout_data_func (GtkCellLayout* cell_layout,
- GtkCellRenderer* cell,
- GtkTreeModel* tree_model,
- GtkTreeIter* iter,
- gpointer self)
-{
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_icon_renderer_function ((SidebarTree*) self, cell_layout, cell, tree_model, iter);
-#line 995 "Tree.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1004 "Tree.c"
-}
-
-
-static gboolean
-_sidebar_tree_on_selection_gtk_tree_selection_func (GtkTreeSelection* selection,
- GtkTreeModel* model,
- GtkTreePath* path,
- gboolean path_currently_selected,
- gpointer self)
-{
- gboolean result;
- result = sidebar_tree_on_selection ((SidebarTree*) self, selection, model, path, path_currently_selected);
-#line 128 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1019 "Tree.c"
-}
-
-
-static gboolean
-_sidebar_tree_on_toggle_row_gtk_tree_view_test_expand_row (GtkTreeView* _sender,
- GtkTreeIter* iter,
- GtkTreePath* path,
- gpointer self)
-{
- gboolean result;
- result = sidebar_tree_on_toggle_row ((SidebarTree*) self, iter, path);
-#line 130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1033 "Tree.c"
-}
-
-
-static gboolean
-_sidebar_tree_on_toggle_row_gtk_tree_view_test_collapse_row (GtkTreeView* _sender,
- GtkTreeIter* iter,
- GtkTreePath* path,
- gpointer self)
-{
- gboolean result;
- result = sidebar_tree_on_toggle_row ((SidebarTree*) self, iter, path);
-#line 131 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1047 "Tree.c"
-}
-
-
-static void
-_vala_array_add67 (GtkTargetEntry* * array,
- int* length,
- int* size,
- const GtkTargetEntry* value)
-{
-#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if ((*length) == (*size)) {
-#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- *array = g_renew (GtkTargetEntry, *array, *size);
-#line 1063 "Tree.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- (*array)[(*length)++] = *value;
-#line 1067 "Tree.c"
-}
-
-
-static gboolean
-_sidebar_tree_on_context_menu_keypress_gtk_widget_popup_menu (GtkWidget* _sender,
- gpointer self)
-{
- gboolean result;
- result = sidebar_tree_on_context_menu_keypress ((SidebarTree*) self);
-#line 145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1079 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self)
-{
-#line 149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_drag_begin ((SidebarTree*) self, context);
-#line 1090 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender,
- GdkDragContext* context,
- gpointer self)
-{
-#line 150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_drag_end ((SidebarTree*) self, context);
-#line 1101 "Tree.c"
-}
-
-
-static gboolean
-_sidebar_tree_on_drag_motion_gtk_widget_drag_motion (GtkWidget* _sender,
- GdkDragContext* context,
- gint x,
- gint y,
- guint time_,
- gpointer self)
-{
- gboolean result;
- result = sidebar_tree_on_drag_motion ((SidebarTree*) self, context, x, y, time_);
-#line 151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1117 "Tree.c"
-}
-
-
-SidebarTree*
-sidebar_tree_construct (GType object_type,
- GtkTargetEntry* target_entries,
- int target_entries_length1,
- GdkDragAction actions,
- SidebarTreeExternalDropHandler drop_handler,
- void* drop_handler_target)
-{
- SidebarTree * self = NULL;
- GtkTreeStore* _tmp0_;
- GtkTreeViewColumn* text_column = NULL;
- GtkTreeViewColumn* _tmp1_;
- GtkCellRendererPixbuf* icon_renderer = NULL;
- GtkCellRendererPixbuf* _tmp2_;
- GtkCellRendererText* _tmp3_;
- GtkCellRendererText* _tmp4_;
- GtkCellRendererText* _tmp5_;
- GtkCellRendererText* _tmp6_;
- GtkCellRendererText* _tmp7_;
- GtkCellRendererText* _tmp8_;
- GtkCellRendererText* invisitext = NULL;
- GtkCellRendererText* _tmp9_;
- GtkTreeViewColumn* page_holder = NULL;
- GtkTreeViewColumn* _tmp10_;
- GtkTreeSelection* selection = NULL;
- GtkTreeSelection* _tmp11_;
- GtkTreeSelection* _tmp12_;
- GtkTargetEntry* source_entries = NULL;
- GtkTargetEntry* _tmp13_;
- gint source_entries_length1;
- gint _source_entries_size_;
- GtkTargetEntry* _tmp14_;
- gint _tmp14__length1;
- GtkTargetEntry _tmp15_;
- GtkTargetEntry* _tmp16_;
- gint _tmp16__length1;
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = (SidebarTree*) g_object_new (object_type, NULL);
-#line 95 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->store;
-#line 95 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel));
-#line 97 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gtk_tree_view_column_new ();
-#line 97 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_ref_sink (_tmp1_);
-#line 97 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- text_column = _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_column_set_expand (text_column, TRUE);
-#line 99 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
-#line 99 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_ref_sink (_tmp2_);
-#line 99 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- icon_renderer = _tmp2_;
-#line 100 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (icon_renderer, "follow-state", TRUE, NULL);
-#line 101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (icon_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE);
-#line 102 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (icon_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), "gicon", (gint) SIDEBAR_TREE_COLUMNS_ICON);
-#line 103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_cell_layout_set_cell_data_func (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (icon_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), _sidebar_tree_icon_renderer_function_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
-#line 104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
-#line 104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_ref_sink (_tmp3_);
-#line 104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->text_renderer);
-#line 104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->text_renderer = _tmp3_;
-#line 105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = self->priv->text_renderer;
-#line 105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp4_, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
-#line 106 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = self->priv->text_renderer;
-#line 106 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_cell_renderer_get_type (), GtkCellRenderer), "editing-canceled", (GCallback) _sidebar_tree_on_editing_canceled_gtk_cell_renderer_editing_canceled, self, 0);
-#line 107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = self->priv->text_renderer;
-#line 107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), "editing-started", (GCallback) _sidebar_tree_on_editing_started_gtk_cell_renderer_editing_started, self, 0);
-#line 108 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = self->priv->text_renderer;
-#line 108 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE);
-#line 109 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = self->priv->text_renderer;
-#line 109 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_cell_renderer_get_type (), GtkCellRenderer), "markup", (gint) SIDEBAR_TREE_COLUMNS_NAME);
-#line 110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_append_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), text_column);
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_ref_sink (_tmp9_);
-#line 112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- invisitext = _tmp9_;
-#line 113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = gtk_tree_view_column_new ();
-#line 113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_ref_sink (_tmp10_);
-#line 113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- page_holder = _tmp10_;
-#line 114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (page_holder, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (invisitext, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE);
-#line 115 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_column_set_visible (page_holder, FALSE);
-#line 116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_append_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), page_holder);
-#line 118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_headers_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE);
-#line 119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_enable_search (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE);
-#line 120 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_show_expanders (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), TRUE);
-#line 121 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_reorderable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE);
-#line 122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_enable_tree_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE);
-#line 123 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_grid_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), GTK_TREE_VIEW_GRID_LINES_NONE);
-#line 124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_tooltip_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), (gint) SIDEBAR_TREE_COLUMNS_TOOLTIP);
-#line 126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = _g_object_ref0 (_tmp11_);
-#line 126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selection = _tmp12_;
-#line 127 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
-#line 128 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_selection_set_select_function (selection, _sidebar_tree_on_selection_gtk_tree_selection_func, g_object_ref (self), g_object_unref);
-#line 130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), "test-expand-row", (GCallback) _sidebar_tree_on_toggle_row_gtk_tree_view_test_expand_row, self, 0);
-#line 131 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), "test-collapse-row", (GCallback) _sidebar_tree_on_toggle_row_gtk_tree_view_test_collapse_row, self, 0);
-#line 136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_enable_model_drag_dest (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), target_entries, target_entries_length1, actions);
-#line 138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = g_new0 (GtkTargetEntry, 0);
-#line 138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- source_entries = _tmp13_;
-#line 138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- source_entries_length1 = 0;
-#line 138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _source_entries_size_ = source_entries_length1;
-#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = source_entries;
-#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14__length1 = source_entries_length1;
-#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = target_entries[LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH];
-#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_array_add67 (&source_entries, &source_entries_length1, &_source_entries_size_, &_tmp15_);
-#line 140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = source_entries;
-#line 140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16__length1 = source_entries_length1;
-#line 140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_enable_model_drag_source (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), GDK_BUTTON1_MASK, _tmp16_, _tmp16__length1, GDK_ACTION_COPY);
-#line 143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->drop_handler = drop_handler;
-#line 143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->drop_handler_target = drop_handler_target;
-#line 145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "popup-menu", (GCallback) _sidebar_tree_on_context_menu_keypress_gtk_widget_popup_menu, self, 0);
-#line 147 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_setup_default_context_menu (self);
-#line 149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-begin", (GCallback) _sidebar_tree_on_drag_begin_gtk_widget_drag_begin, self, 0);
-#line 150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-end", (GCallback) _sidebar_tree_on_drag_end_gtk_widget_drag_end, self, 0);
-#line 151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-motion", (GCallback) _sidebar_tree_on_drag_motion_gtk_widget_drag_motion, self, 0);
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- source_entries = (g_free (source_entries), NULL);
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selection);
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (page_holder);
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (invisitext);
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (icon_renderer);
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (text_column);
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return self;
-#line 1313 "Tree.c"
-}
-
-
-SidebarTree*
-sidebar_tree_new (GtkTargetEntry* target_entries,
- int target_entries_length1,
- GdkDragAction actions,
- SidebarTreeExternalDropHandler drop_handler,
- void* drop_handler_target)
-{
-#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return sidebar_tree_construct (SIDEBAR_TYPE_TREE, target_entries, target_entries_length1, actions, drop_handler, drop_handler_target);
-#line 1326 "Tree.c"
-}
-
-
-void
-sidebar_tree_icon_renderer_function (SidebarTree* self,
- GtkCellLayout* layout,
- GtkCellRenderer* renderer,
- GtkTreeModel* model,
- GtkTreeIter* iter)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreeIter _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
- SidebarTreeEntryWrapper* _tmp3_;
- SidebarEntry* _tmp4_;
-#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (GTK_IS_CELL_LAYOUT (layout));
-#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (GTK_IS_CELL_RENDERER (renderer));
-#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (GTK_IS_TREE_MODEL (model));
-#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (iter != NULL);
-#line 160 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = *iter;
-#line 160 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp0_);
-#line 160 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ == NULL) {
-#line 162 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 162 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 1367 "Tree.c"
- }
-#line 164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = wrapper;
-#line 164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_->entry;
-#line 164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_cell_renderer_set_visible (renderer, !G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_HEADER));
-#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1377 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_drag_begin (SidebarTree* self,
- GdkDragContext* ctx)
-{
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (ctx));
-#line 168 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->is_internal_drag_in_progress = TRUE;
-#line 1391 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_drag_end (SidebarTree* self,
- GdkDragContext* ctx)
-{
-#line 171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (ctx));
-#line 172 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->is_internal_drag_in_progress = FALSE;
-#line 173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->internal_drag_source_entry);
-#line 173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->internal_drag_source_entry = NULL;
-#line 1409 "Tree.c"
-}
-
-
-static void
-_vala_GtkTreePath_free (GtkTreePath* self)
-{
-#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_boxed_free (gtk_tree_path_get_type (), self);
-#line 1418 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_on_drag_motion (SidebarTree* self,
- GdkDragContext* context,
- gint x,
- gint y,
- guint time_)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_;
-#line 176 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 176 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE);
-#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->is_internal_drag_in_progress;
-#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_) {
-#line 1440 "Tree.c"
- SidebarEntry* _tmp2_;
-#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = self->priv->internal_drag_source_entry;
-#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = _tmp2_ == NULL;
-#line 1446 "Tree.c"
- } else {
-#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = FALSE;
-#line 1450 "Tree.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp0_) {
-#line 1454 "Tree.c"
- GtkTreePath* path = NULL;
- GtkTreeViewDropPosition position = 0;
- GtkTreePath* _tmp3_ = NULL;
- GtkTreeViewDropPosition _tmp4_ = 0;
- GtkTreePath* _tmp5_;
-#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_get_dest_row_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), x, y, &_tmp3_, &_tmp4_);
-#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp3_;
-#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- position = _tmp4_;
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = path;
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_ != NULL) {
-#line 1472 "Tree.c"
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreePath* _tmp6_;
- SidebarTreeEntryWrapper* _tmp7_;
- SidebarTreeEntryWrapper* _tmp8_;
-#line 183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = path;
-#line 183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = sidebar_tree_get_wrapper_at_path (self, _tmp6_);
-#line 183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp7_;
-#line 184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = wrapper;
-#line 184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp8_ != NULL) {
-#line 1487 "Tree.c"
- SidebarTreeEntryWrapper* _tmp9_;
- SidebarEntry* _tmp10_;
- SidebarEntry* _tmp11_;
-#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = wrapper;
-#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = _tmp9_->entry;
-#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->internal_drag_source_entry);
-#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->internal_drag_source_entry = _tmp11_;
-#line 1501 "Tree.c"
- }
-#line 182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1505 "Tree.c"
- }
-#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1509 "Tree.c"
- }
-#line 189 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 189 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1515 "Tree.c"
-}
-
-
-static void
-sidebar_tree_setup_default_context_menu (SidebarTree* self)
-{
- GError * _inner_error_ = NULL;
-#line 197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 1525 "Tree.c"
- {
- GtkBuilder* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- GMenuModel* model = NULL;
- GtkBuilder* _tmp3_;
- GObject* _tmp4_;
- GMenuModel* _tmp5_;
- GMenuModel* _tmp6_;
- GtkMenu* _tmp7_;
- GSimpleActionGroup* group = NULL;
- GSimpleActionGroup* _tmp8_;
- GSimpleActionGroup* _tmp9_;
- GSimpleActionGroup* _tmp10_;
- GtkMenu* _tmp11_;
-#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->builder;
-#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = resources_get_ui ("sidebar_default_context.ui");
-#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _tmp1_;
-#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_builder_add_from_resource (_tmp0_, _tmp2_, &_inner_error_);
-#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp2_);
-#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1553 "Tree.c"
- goto __catch55_g_error;
- }
-#line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = self->priv->builder;
-#line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = gtk_builder_get_object (_tmp3_, "popup-menu");
-#line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp4_) : NULL);
-#line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- model = _tmp5_;
-#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = model;
-#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = (GtkMenu*) gtk_menu_new_from_model (_tmp6_);
-#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_ref_sink (_tmp7_);
-#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->default_context_menu);
-#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->default_context_menu = _tmp7_;
-#line 202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = g_simple_action_group_new ();
-#line 202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- group = _tmp8_;
-#line 203 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = group;
-#line 203 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, g_action_map_get_type (), GActionMap), SIDEBAR_TREE_entries, G_N_ELEMENTS (SIDEBAR_TREE_entries), self);
-#line 204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = group;
-#line 204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_widget_insert_action_group (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "sidebar", G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_action_group_get_type (), GActionGroup));
-#line 205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->default_context_menu;
-#line 205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_menu_attach_to_widget (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL);
-#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (group);
-#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (model);
-#line 1594 "Tree.c"
- }
- goto __finally55;
- __catch55_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- Application* _tmp16_;
- Application* _tmp17_;
-#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _error_ = _inner_error_;
-#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _inner_error_ = NULL;
-#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = _error_;
-#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = _tmp12_->message;
-#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = g_strdup_printf ("Error loading UI resource: %s", _tmp13_);
-#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = _tmp14_;
-#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- app_window_error_message (_tmp15_, NULL);
-#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp15_);
-#line 209 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = application_get_instance ();
-#line 209 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = _tmp16_;
-#line 209 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- application_panic (_tmp17_);
-#line 209 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _application_unref0 (_tmp17_);
-#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_error_free0 (_error_);
-#line 1632 "Tree.c"
- }
- __finally55:
-#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.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 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_clear_error (&_inner_error_);
-#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 1643 "Tree.c"
- }
-}
-
-
-static gboolean
-sidebar_tree_has_wrapper (SidebarTree* self,
- SidebarEntry* entry)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
-#line 213 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 213 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 214 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->entry_map;
-#line 214 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 214 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1664 "Tree.c"
-}
-
-
-static SidebarTreeEntryWrapper*
-sidebar_tree_get_wrapper (SidebarTree* self,
- SidebarEntry* entry)
-{
- SidebarTreeEntryWrapper* result = NULL;
- SidebarTreeEntryWrapper* wrapper = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
-#line 217 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL);
-#line 217 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL);
-#line 218 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->entry_map;
-#line 218 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry);
-#line 218 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = (SidebarTreeEntryWrapper*) _tmp1_;
-#line 219 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 219 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ == NULL) {
-#line 1691 "Tree.c"
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_entry_to_string (entry);
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_warning ("Tree.vala:220: Entry %s not found in sidebar", _tmp4_);
-#line 220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp4_);
-#line 1702 "Tree.c"
- }
-#line 222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = wrapper;
-#line 222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1708 "Tree.c"
-}
-
-
-static SidebarTreeEntryWrapper*
-sidebar_tree_get_wrapper_at_iter (SidebarTree* self,
- GtkTreeIter* iter)
-{
- SidebarTreeEntryWrapper* result = NULL;
- GValue val = {0};
- GtkTreeStore* _tmp0_;
- GtkTreeIter _tmp1_;
- GValue _tmp2_ = {0};
- SidebarTreeEntryWrapper* wrapper = NULL;
- GValue _tmp3_;
- SidebarTreeEntryWrapper* _tmp4_;
- SidebarTreeEntryWrapper* _tmp5_;
-#line 225 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL);
-#line 225 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (iter != NULL, NULL);
-#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->store;
-#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = *iter;
-#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_model_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp1_, (gint) SIDEBAR_TREE_COLUMNS_WRAPPER, &_tmp2_);
-#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
-#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- val = _tmp2_;
-#line 229 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = val;
-#line 229 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _g_object_ref0 (g_value_get_object (&_tmp3_));
-#line 229 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp4_;
-#line 230 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = wrapper;
-#line 230 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_ == NULL) {
-#line 1749 "Tree.c"
- GtkTreeStore* _tmp6_;
- GtkTreeIter _tmp7_;
- GtkTreePath* _tmp8_;
- GtkTreePath* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = self->priv->store;
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = *iter;
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = gtk_tree_model_get_path (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp7_);
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = _tmp8_;
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = gtk_tree_path_to_string (_tmp9_);
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = _tmp10_;
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_message ("Tree.vala:231: No entry found in sidebar at %s", _tmp11_);
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp11_);
-#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp9_);
-#line 1774 "Tree.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = wrapper;
-#line 233 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
-#line 233 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1782 "Tree.c"
-}
-
-
-static SidebarTreeEntryWrapper*
-sidebar_tree_get_wrapper_at_path (SidebarTree* self,
- GtkTreePath* path)
-{
- SidebarTreeEntryWrapper* result = NULL;
- GtkTreeIter iter = {0};
- GtkTreeStore* _tmp0_;
- GtkTreeIter _tmp1_ = {0};
- gboolean _tmp2_;
- GtkTreeIter _tmp5_;
- SidebarTreeEntryWrapper* _tmp6_;
-#line 236 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL);
-#line 236 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (path != NULL, NULL);
-#line 238 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->store;
-#line 238 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = gtk_tree_model_get_iter (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp1_, path);
-#line 238 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- iter = _tmp1_;
-#line 238 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!_tmp2_) {
-#line 1809 "Tree.c"
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 239 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = gtk_tree_path_to_string (path);
-#line 239 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 239 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_message ("Tree.vala:239: No entry found in sidebar at %s", _tmp4_);
-#line 239 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp4_);
-#line 241 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = NULL;
-#line 241 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1824 "Tree.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = iter;
-#line 244 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp5_);
-#line 244 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = _tmp6_;
-#line 244 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1834 "Tree.c"
-}
-
-
-gboolean
-sidebar_tree_place_cursor (SidebarTree* self,
- SidebarEntry* entry,
- gboolean mask_signal)
-{
- gboolean result = FALSE;
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- GtkTreeSelection* _tmp2_;
- SidebarTreeEntryWrapper* _tmp3_;
- GtkTreePath* _tmp4_;
- GtkTreePath* _tmp5_;
- SidebarTreeEntryWrapper* _tmp6_;
- GtkTreePath* _tmp7_;
- GtkTreePath* _tmp8_;
-#line 249 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 249 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 250 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!sidebar_tree_expand_to_entry (self, entry)) {
-#line 251 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 251 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1864 "Tree.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 253 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 254 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 254 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 255 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 255 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 255 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1880 "Tree.c"
- }
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = wrapper;
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = sidebar_tree_entry_wrapper_get_path (_tmp3_);
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = _tmp4_;
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_selection_select_path (_tmp2_, _tmp5_);
-#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp5_);
-#line 259 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->mask_entry_selected_signal = mask_signal;
-#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = wrapper;
-#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = sidebar_tree_entry_wrapper_get_path (_tmp6_);
-#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = _tmp7_;
-#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_set_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp8_, NULL, FALSE);
-#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp8_);
-#line 261 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->mask_entry_selected_signal = FALSE;
-#line 263 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = sidebar_tree_scroll_to_entry (self, entry);
-#line 263 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 263 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1914 "Tree.c"
-}
-
-
-gboolean
-sidebar_tree_is_selected (SidebarTree* self,
- SidebarEntry* entry)
-{
- gboolean result = FALSE;
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- GtkTreeSelection* selection = NULL;
- GtkTreeSelection* _tmp1_;
- GtkTreeSelection* _tmp2_;
- GtkTreeSelection* _tmp3_;
- gboolean _tmp4_ = FALSE;
- SidebarTreeEntryWrapper* _tmp5_;
-#line 266 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 266 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 267 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 267 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 271 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 271 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 271 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selection = _tmp2_;
-#line 272 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = selection;
-#line 272 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp3_ == NULL) {
-#line 273 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 273 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selection);
-#line 273 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 273 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1957 "Tree.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = wrapper;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_ != NULL) {
-#line 1963 "Tree.c"
- GtkTreeSelection* _tmp6_;
- SidebarTreeEntryWrapper* _tmp7_;
- GtkTreePath* _tmp8_;
- GtkTreePath* _tmp9_;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = selection;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = wrapper;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = sidebar_tree_entry_wrapper_get_path (_tmp7_);
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = _tmp8_;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = gtk_tree_selection_path_is_selected (_tmp6_, _tmp9_);
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp9_);
-#line 1980 "Tree.c"
- } else {
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = FALSE;
-#line 1984 "Tree.c"
- }
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = _tmp4_;
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selection);
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 1994 "Tree.c"
-}
-
-
-gboolean
-sidebar_tree_is_any_selected (SidebarTree* self)
-{
- gboolean result = FALSE;
- GtkTreeSelection* _tmp0_;
-#line 278 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 279 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 279 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = gtk_tree_selection_count_selected_rows (_tmp0_) != 0;
-#line 279 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 2011 "Tree.c"
-}
-
-
-static GtkTreePath*
-_vala_GtkTreePath_copy (GtkTreePath* self)
-{
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return g_boxed_copy (gtk_tree_path_get_type (), self);
-#line 2020 "Tree.c"
-}
-
-
-static gpointer
-__vala_GtkTreePath_copy0 (gpointer self)
-{
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return self ? _vala_GtkTreePath_copy (self) : NULL;
-#line 2029 "Tree.c"
-}
-
-
-static void
-__vala_GtkTreePath_free0_ (gpointer var)
-{
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- (var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL));
-#line 2038 "Tree.c"
-}
-
-
-static inline void
-_g_list_free___vala_GtkTreePath_free0_ (GList* self)
-{
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_list_free_full (self, (GDestroyNotify) __vala_GtkTreePath_free0_);
-#line 2047 "Tree.c"
-}
-
-
-static GtkTreePath*
-sidebar_tree_get_selected_path (SidebarTree* self)
-{
- GtkTreePath* result = NULL;
- GtkTreeModel* model = NULL;
- GtkTreeSelection* selection = NULL;
- GtkTreeSelection* _tmp0_;
- GtkTreeSelection* _tmp1_;
- GtkTreeSelection* _tmp2_;
- GList* rows = NULL;
- GtkTreeSelection* _tmp3_;
- GtkTreeModel* _tmp4_ = NULL;
- GList* _tmp5_;
- GtkTreeModel* _tmp6_;
- gboolean _tmp7_ = FALSE;
- GList* _tmp8_;
- GtkTreePath* _tmp10_ = NULL;
- GList* _tmp11_;
- GtkTreePath* _tmp14_;
-#line 282 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL);
-#line 284 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 284 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 284 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selection = _tmp1_;
-#line 285 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = selection;
-#line 285 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ == NULL) {
-#line 286 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = NULL;
-#line 286 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selection);
-#line 286 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (model);
-#line 286 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 2090 "Tree.c"
- }
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = selection;
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = gtk_tree_selection_get_selected_rows (_tmp3_, &_tmp4_);
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (model);
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = _g_object_ref0 (_tmp4_);
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- model = _tmp6_;
-#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- rows = _tmp5_;
-#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = rows;
-#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (g_list_length (_tmp8_) == ((guint) 0)) {
-#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = TRUE;
-#line 2110 "Tree.c"
- } else {
- GList* _tmp9_;
-#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = rows;
-#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = g_list_length (_tmp9_) == ((guint) 1);
-#line 2117 "Tree.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp7_, "rows.length() == 0 || rows.length() == 1");
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = rows;
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (g_list_length (_tmp11_) != ((guint) 0)) {
-#line 2125 "Tree.c"
- GList* _tmp12_;
- gconstpointer _tmp13_;
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = rows;
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = g_list_nth_data (_tmp12_, (guint) 0);
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = (GtkTreePath*) _tmp13_;
-#line 2134 "Tree.c"
- } else {
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = NULL;
-#line 2138 "Tree.c"
- }
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = __vala_GtkTreePath_copy0 (_tmp10_);
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = _tmp14_;
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __g_list_free___vala_GtkTreePath_free0_0 (rows);
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selection);
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (model);
-#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 2152 "Tree.c"
-}
-
-
-static gchar*
-sidebar_tree_get_name_for_entry (SidebarTree* self,
- SidebarEntry* entry)
-{
- gchar* result = NULL;
- gchar* name = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- SidebarEmphasizableEntry* emphasizable_entry = NULL;
- SidebarEmphasizableEntry* _tmp4_;
- gboolean _tmp5_ = FALSE;
- SidebarEmphasizableEntry* _tmp6_;
-#line 294 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL);
-#line 294 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL);
-#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_entry_get_sidebar_name (entry);
-#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = _tmp0_;
-#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = guarded_markup_escape_text (_tmp1_);
-#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _tmp2_;
-#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp1_);
-#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- name = _tmp3_;
-#line 297 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (entry, SIDEBAR_TYPE_EMPHASIZABLE_ENTRY) ? ((SidebarEmphasizableEntry*) entry) : NULL);
-#line 297 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- emphasizable_entry = _tmp4_;
-#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = emphasizable_entry;
-#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp6_ != NULL) {
-#line 2194 "Tree.c"
- SidebarEmphasizableEntry* _tmp7_;
-#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = emphasizable_entry;
-#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = sidebar_emphasizable_entry_is_emphasized (_tmp7_);
-#line 2200 "Tree.c"
- } else {
-#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = FALSE;
-#line 2204 "Tree.c"
- }
-#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_) {
-#line 2208 "Tree.c"
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 299 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = name;
-#line 299 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = g_strdup_printf ("<b>%s</b>", _tmp8_);
-#line 299 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (name);
-#line 299 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- name = _tmp9_;
-#line 2219 "Tree.c"
- }
-#line 301 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = name;
-#line 301 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (emphasizable_entry);
-#line 301 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 2227 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_real_accept_cursor_changed (SidebarTree* self)
-{
- gboolean result = FALSE;
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 305 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 2239 "Tree.c"
-}
-
-
-gboolean
-sidebar_tree_accept_cursor_changed (SidebarTree* self)
-{
-#line 304 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 304 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return SIDEBAR_TREE_GET_CLASS (self)->accept_cursor_changed (self);
-#line 2250 "Tree.c"
-}
-
-
-static void
-sidebar_tree_real_cursor_changed (GtkTreeView* base)
-{
- SidebarTree * self;
- GtkTreePath* path = NULL;
- GtkTreePath* _tmp0_;
- GtkTreePath* _tmp1_;
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreePath* _tmp2_;
- SidebarTreeEntryWrapper* _tmp3_;
- SidebarTreeEntryWrapper* _tmp4_;
- SidebarTreeEntryWrapper* _tmp5_;
-#line 308 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree);
-#line 309 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_selected_path (self);
-#line 309 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp0_;
-#line 310 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = path;
-#line 310 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 311 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (GTK_TREE_VIEW_CLASS (sidebar_tree_parent_class)->cursor_changed != NULL) {
-#line 312 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- GTK_TREE_VIEW_CLASS (sidebar_tree_parent_class)->cursor_changed (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 2280 "Tree.c"
- }
-#line 313 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 313 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 2286 "Tree.c"
- }
-#line 316 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = path;
-#line 316 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_get_wrapper_at_path (self, _tmp2_);
-#line 316 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp3_;
-#line 318 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = self->priv->selected_wrapper;
-#line 318 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = wrapper;
-#line 318 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp4_ != _tmp5_) {
-#line 2300 "Tree.c"
- SidebarTreeEntryWrapper* old_wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp6_;
- SidebarTreeEntryWrapper* _tmp7_;
- SidebarTreeEntryWrapper* _tmp8_;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_ = FALSE;
- gint _tmp11_;
- gboolean _tmp18_ = FALSE;
- SidebarTreeEntryWrapper* _tmp19_;
-#line 319 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = self->priv->selected_wrapper;
-#line 319 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 319 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- old_wrapper = _tmp7_;
-#line 320 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = wrapper;
-#line 320 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->selected_wrapper = _tmp8_;
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->editing_disabled;
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp11_ == 0) {
-#line 2324 "Tree.c"
- SidebarTreeEntryWrapper* _tmp12_;
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = wrapper;
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = _tmp12_ != NULL;
-#line 2330 "Tree.c"
- } else {
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = FALSE;
-#line 2334 "Tree.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp10_) {
-#line 2338 "Tree.c"
- SidebarTreeEntryWrapper* _tmp13_;
- SidebarEntry* _tmp14_;
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = wrapper;
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = _tmp13_->entry;
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, SIDEBAR_TYPE_RENAMEABLE_ENTRY);
-#line 2347 "Tree.c"
- } else {
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = FALSE;
-#line 2351 "Tree.c"
- }
-#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp9_) {
-#line 2355 "Tree.c"
- GtkCellRendererText* _tmp15_;
- SidebarTreeEntryWrapper* _tmp16_;
- SidebarEntry* _tmp17_;
-#line 323 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = self->priv->text_renderer;
-#line 323 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = wrapper;
-#line 323 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = _tmp16_->entry;
-#line 323 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp15_, "editable", sidebar_renameable_entry_is_user_renameable (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)), NULL);
-#line 2367 "Tree.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = wrapper;
-#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp19_ != NULL) {
-#line 2373 "Tree.c"
- gboolean _tmp20_;
-#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = self->priv->mask_entry_selected_signal;
-#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = !_tmp20_;
-#line 2379 "Tree.c"
- } else {
-#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = FALSE;
-#line 2383 "Tree.c"
- }
-#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp18_) {
-#line 2387 "Tree.c"
- SidebarSelectableEntry* selectable = NULL;
- SidebarTreeEntryWrapper* _tmp21_;
- SidebarEntry* _tmp22_;
- SidebarSelectableEntry* _tmp23_;
- SidebarSelectableEntry* _tmp24_;
-#line 326 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp21_ = wrapper;
-#line 326 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = _tmp21_->entry;
-#line 326 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, SIDEBAR_TYPE_SELECTABLE_ENTRY) ? ((SidebarSelectableEntry*) _tmp22_) : NULL);
-#line 326 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selectable = _tmp23_;
-#line 327 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = selectable;
-#line 327 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp24_ != NULL) {
-#line 328 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (sidebar_tree_accept_cursor_changed (self)) {
-#line 2407 "Tree.c"
- SidebarSelectableEntry* _tmp25_;
-#line 329 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp25_ = selectable;
-#line 329 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_ENTRY_SELECTED_SIGNAL], 0, _tmp25_);
-#line 2413 "Tree.c"
- } else {
- SidebarTreeEntryWrapper* _tmp26_;
- SidebarEntry* _tmp27_;
-#line 331 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp26_ = old_wrapper;
-#line 331 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp27_ = _tmp26_->entry;
-#line 331 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_place_cursor (self, _tmp27_, TRUE);
-#line 2423 "Tree.c"
- }
- }
-#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selectable);
-#line 2428 "Tree.c"
- }
-#line 318 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (old_wrapper);
-#line 2432 "Tree.c"
- }
-#line 337 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (GTK_TREE_VIEW_CLASS (sidebar_tree_parent_class)->cursor_changed != NULL) {
-#line 338 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- GTK_TREE_VIEW_CLASS (sidebar_tree_parent_class)->cursor_changed (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 2438 "Tree.c"
- }
-#line 308 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 308 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 2444 "Tree.c"
-}
-
-
-void
-sidebar_tree_disable_editing (SidebarTree* self)
-{
- gint _tmp0_;
-#line 341 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 342 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->editing_disabled;
-#line 342 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->editing_disabled = _tmp0_ + 1;
-#line 342 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp0_ == 0) {
-#line 2460 "Tree.c"
- GtkCellRendererText* _tmp1_;
-#line 343 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->text_renderer;
-#line 343 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp1_, "editable", FALSE, NULL);
-#line 2466 "Tree.c"
- }
-}
-
-
-void
-sidebar_tree_enable_editing (SidebarTree* self)
-{
- GtkTreePath* path = NULL;
- GtkTreePath* _tmp0_;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- GtkTreePath* _tmp3_;
-#line 346 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 347 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_selected_path (self);
-#line 347 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp0_;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = path;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp3_ != NULL) {
-#line 2489 "Tree.c"
- gint _tmp4_;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = self->priv->editing_disabled;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _tmp4_ > 0;
-#line 2495 "Tree.c"
- } else {
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = FALSE;
-#line 2499 "Tree.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_) {
-#line 2503 "Tree.c"
- gint _tmp5_;
- gint _tmp6_;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = self->priv->editing_disabled;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->editing_disabled = _tmp5_ - 1;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = self->priv->editing_disabled;
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = _tmp6_ == 0;
-#line 2514 "Tree.c"
- } else {
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = FALSE;
-#line 2518 "Tree.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_) {
-#line 2522 "Tree.c"
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreePath* _tmp7_;
- SidebarTreeEntryWrapper* _tmp8_;
- gboolean _tmp9_ = FALSE;
- SidebarTreeEntryWrapper* _tmp10_;
-#line 349 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = path;
-#line 349 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = sidebar_tree_get_wrapper_at_path (self, _tmp7_);
-#line 349 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp8_;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = wrapper;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp10_ != NULL) {
-#line 2538 "Tree.c"
- SidebarTreeEntryWrapper* _tmp11_;
- SidebarEntry* _tmp12_;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = wrapper;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = _tmp11_->entry;
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, SIDEBAR_TYPE_RENAMEABLE_ENTRY);
-#line 2547 "Tree.c"
- } else {
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = FALSE;
-#line 2551 "Tree.c"
- }
-#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp9_) {
-#line 2555 "Tree.c"
- GtkCellRendererText* _tmp13_;
- SidebarTreeEntryWrapper* _tmp14_;
- SidebarEntry* _tmp15_;
-#line 351 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = self->priv->text_renderer;
-#line 351 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = wrapper;
-#line 351 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = _tmp14_->entry;
-#line 351 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp13_, "editable", sidebar_renameable_entry_is_user_renameable (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)), NULL);
-#line 2567 "Tree.c"
- }
-#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 2571 "Tree.c"
- }
-#line 346 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 2575 "Tree.c"
-}
-
-
-void
-sidebar_tree_toggle_branch_expansion (SidebarTree* self,
- GtkTreePath* path,
- gboolean expand_all)
-{
-#line 356 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 356 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (path != NULL);
-#line 357 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->expander_called_manually = TRUE;
-#line 358 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (gtk_tree_view_row_expanded (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), path)) {
-#line 359 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_collapse_row (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), path);
-#line 2594 "Tree.c"
- } else {
-#line 361 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_expand_row (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), path, expand_all);
-#line 2598 "Tree.c"
- }
-}
-
-
-gboolean
-sidebar_tree_expand_to_entry (SidebarTree* self,
- SidebarEntry* entry)
-{
- gboolean result = FALSE;
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
- GtkTreePath* _tmp3_;
- GtkTreePath* _tmp4_;
-#line 364 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 364 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 365 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->expander_called_manually = TRUE;
-#line 366 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 366 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 367 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 367 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 368 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 368 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 368 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 2634 "Tree.c"
- }
-#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_entry_wrapper_get_path (_tmp2_);
-#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_expand_to_path (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp4_);
-#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp4_);
-#line 372 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 372 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 372 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 2652 "Tree.c"
-}
-
-
-void
-sidebar_tree_expand_to_first_child (SidebarTree* self,
- SidebarEntry* entry)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- GtkTreePath* path = NULL;
- SidebarTreeEntryWrapper* _tmp2_;
- GtkTreePath* _tmp3_;
- GtkTreeIter iter = {0};
- GtkTreePath* _tmp11_;
-#line 375 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 375 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 376 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->expander_called_manually = TRUE;
-#line 377 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 377 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 378 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 379 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 379 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 2686 "Tree.c"
- }
-#line 381 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 381 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_entry_wrapper_get_path (_tmp2_);
-#line 381 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp3_;
-#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- while (TRUE) {
-#line 2696 "Tree.c"
- GtkTreeStore* _tmp4_;
- GtkTreePath* _tmp5_;
- GtkTreeIter _tmp6_ = {0};
- gboolean _tmp7_;
- GtkTreeStore* _tmp8_;
- GtkTreeIter _tmp9_;
- GtkTreePath* _tmp10_;
-#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = self->priv->store;
-#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = path;
-#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = gtk_tree_model_get_iter (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp6_, _tmp5_);
-#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- iter = _tmp6_;
-#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!_tmp7_) {
-#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 2716 "Tree.c"
- }
-#line 385 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = self->priv->store;
-#line 385 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = iter;
-#line 385 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!gtk_tree_model_iter_has_child (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp9_)) {
-#line 386 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 2726 "Tree.c"
- }
-#line 388 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = path;
-#line 388 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_path_down (_tmp10_);
-#line 2732 "Tree.c"
- }
-#line 391 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = path;
-#line 391 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_view_expand_to_path (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp11_);
-#line 375 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 375 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 2742 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_branch_entry_added_sidebar_branch_entry_added (SidebarBranch* _sender,
- SidebarEntry* entry,
- gpointer self)
-{
-#line 409 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_branch_entry_added ((SidebarTree*) self, _sender, entry);
-#line 2753 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_branch_entry_removed_sidebar_branch_entry_removed (SidebarBranch* _sender,
- SidebarEntry* entry,
- gpointer self)
-{
-#line 410 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_branch_entry_removed ((SidebarTree*) self, _sender, entry);
-#line 2764 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_branch_entry_moved_sidebar_branch_entry_moved (SidebarBranch* _sender,
- SidebarEntry* entry,
- gpointer self)
-{
-#line 411 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_branch_entry_moved ((SidebarTree*) self, _sender, entry);
-#line 2775 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_branch_entry_reparented_sidebar_branch_entry_reparented (SidebarBranch* _sender,
- SidebarEntry* entry,
- SidebarEntry* old_parent,
- gpointer self)
-{
-#line 412 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_branch_entry_reparented ((SidebarTree*) self, _sender, entry, old_parent);
-#line 2787 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_branch_children_reordered_sidebar_branch_children_reordered (SidebarBranch* _sender,
- SidebarEntry* entry,
- gpointer self)
-{
-#line 413 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_branch_children_reordered ((SidebarTree*) self, _sender, entry);
-#line 2798 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_show_branch_sidebar_branch_show_branch (SidebarBranch* _sender,
- gboolean show,
- gpointer self)
-{
-#line 414 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_show_branch ((SidebarTree*) self, _sender, show);
-#line 2809 "Tree.c"
-}
-
-
-void
-sidebar_tree_graft (SidebarTree* self,
- SidebarBranch* branch,
- gint position)
-{
- GeeHashMap* _tmp0_;
- GeeHashMap* _tmp1_;
-#line 394 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 394 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 394 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_return_if_fail (position >= 0, "position >= 0");
-#line 395 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->branches;
-#line 395 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch), "!branches.has_key(branch)");
-#line 397 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->branches;
-#line 397 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch, (gpointer) ((gintptr) position));
-#line 399 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (sidebar_branch_get_show_branch (branch)) {
-#line 400 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_branch (self, branch);
-#line 402 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (sidebar_branch_is_startup_expand_to_first_child (branch)) {
-#line 2840 "Tree.c"
- SidebarEntry* _tmp2_;
- SidebarEntry* _tmp3_;
-#line 403 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = sidebar_branch_get_root (branch);
-#line 403 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _tmp2_;
-#line 403 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_expand_to_first_child (self, _tmp3_);
-#line 403 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp3_);
-#line 2851 "Tree.c"
- }
-#line 405 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (sidebar_branch_is_startup_open_grouping (branch)) {
-#line 2855 "Tree.c"
- SidebarEntry* _tmp4_;
- SidebarEntry* _tmp5_;
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = sidebar_branch_get_root (branch);
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = _tmp4_;
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_expand_to_entry (self, _tmp5_);
-#line 406 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp5_);
-#line 2866 "Tree.c"
- }
- }
-#line 409 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (branch, "entry-added", (GCallback) _sidebar_tree_on_branch_entry_added_sidebar_branch_entry_added, self, 0);
-#line 410 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (branch, "entry-removed", (GCallback) _sidebar_tree_on_branch_entry_removed_sidebar_branch_entry_removed, self, 0);
-#line 411 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (branch, "entry-moved", (GCallback) _sidebar_tree_on_branch_entry_moved_sidebar_branch_entry_moved, self, 0);
-#line 412 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (branch, "entry-reparented", (GCallback) _sidebar_tree_on_branch_entry_reparented_sidebar_branch_entry_reparented, self, 0);
-#line 413 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (branch, "children-reordered", (GCallback) _sidebar_tree_on_branch_children_reordered_sidebar_branch_children_reordered, self, 0);
-#line 414 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (branch, "show-branch", (GCallback) _sidebar_tree_on_show_branch_sidebar_branch_show_branch, self, 0);
-#line 416 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_BRANCH_ADDED_SIGNAL], 0, branch);
-#line 2883 "Tree.c"
-}
-
-
-static GtkTreeIter*
-_gtk_tree_iter_dup (GtkTreeIter* self)
-{
- GtkTreeIter* dup;
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- dup = g_new0 (GtkTreeIter, 1);
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- memcpy (dup, self, sizeof (GtkTreeIter));
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return dup;
-#line 2897 "Tree.c"
-}
-
-
-static gpointer
-__gtk_tree_iter_dup0 (gpointer self)
-{
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return self ? _gtk_tree_iter_dup (self) : NULL;
-#line 2906 "Tree.c"
-}
-
-
-static void
-sidebar_tree_associate_branch (SidebarTree* self,
- SidebarBranch* branch)
-{
- GeeHashMap* _tmp0_;
- gint position = 0;
- GeeHashMap* _tmp1_;
- gpointer _tmp2_;
- GtkTreeIter* insertion_iter = NULL;
- GtkTreeIter iter = {0};
- gboolean found = FALSE;
- GtkTreeStore* _tmp3_;
- GtkTreeIter _tmp4_ = {0};
- gboolean _tmp5_;
- GtkTreeIter* _tmp21_;
- GtkTreeIter* _tmp26_;
- GtkTreeStore* _tmp27_;
- SidebarEntry* _tmp28_;
- SidebarEntry* _tmp29_;
- GtkTreeStore* _tmp30_;
- GtkTreeIter* _tmp31_;
- GtkTreeIter _tmp32_;
- GtkTreePath* _tmp33_;
- GtkTreePath* _tmp34_;
- gint _tmp35_;
- SidebarTreeRootWrapper* _tmp36_;
- SidebarTreeRootWrapper* _tmp37_;
- GtkTreeIter _tmp38_;
- SidebarEntry* _tmp39_;
- SidebarEntry* _tmp40_;
- GtkTreeIter* _tmp41_;
- GtkTreeIter _tmp42_;
-#line 420 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 420 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 421 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->branches;
-#line 421 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch), "branches.has_key(branch)");
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->branches;
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch);
-#line 423 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- position = (gint) ((gintptr) _tmp2_);
-#line 425 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- insertion_iter = NULL;
-#line 429 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = self->priv->store;
-#line 429 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = gtk_tree_model_get_iter_first (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp4_);
-#line 429 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- iter = _tmp4_;
-#line 429 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- found = _tmp5_;
-#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- while (TRUE) {
-#line 2968 "Tree.c"
- gboolean _tmp6_;
- SidebarTreeRootWrapper* root_wrapper = NULL;
- GtkTreeIter _tmp7_;
- SidebarTreeEntryWrapper* _tmp8_;
- SidebarTreeRootWrapper* _tmp9_;
- SidebarTreeRootWrapper* _tmp10_;
- gint _tmp11_;
- SidebarTreeRootWrapper* _tmp12_;
- gint _tmp13_;
- GtkTreeStore* _tmp19_;
- gboolean _tmp20_;
-#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = found;
-#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!_tmp6_) {
-#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 2986 "Tree.c"
- }
-#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = iter;
-#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp7_);
-#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, SIDEBAR_TREE_TYPE_ROOT_WRAPPER) ? ((SidebarTreeRootWrapper*) _tmp8_) : NULL;
-#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp9_ == NULL) {
-#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp8_);
-#line 2998 "Tree.c"
- }
-#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- root_wrapper = _tmp9_;
-#line 432 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = root_wrapper;
-#line 432 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp10_ != NULL, "root_wrapper != null");
-#line 434 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = position;
-#line 434 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = root_wrapper;
-#line 434 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = _tmp12_->root_position;
-#line 434 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp11_ < _tmp13_) {
-#line 3014 "Tree.c"
- GtkTreeStore* _tmp14_;
- GtkTreeIter _tmp15_;
- GtkTreeIter _tmp16_ = {0};
- GtkTreeIter _tmp17_;
- GtkTreeIter* _tmp18_;
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = self->priv->store;
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = iter;
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_insert_before (_tmp14_, &_tmp16_, NULL, &_tmp15_);
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (insertion_iter);
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = _tmp16_;
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = __gtk_tree_iter_dup0 (&_tmp17_);
-#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- insertion_iter = _tmp18_;
-#line 437 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (root_wrapper);
-#line 437 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 3038 "Tree.c"
- }
-#line 440 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = self->priv->store;
-#line 440 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = gtk_tree_model_iter_next (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tree_model_get_type (), GtkTreeModel), &iter);
-#line 440 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- found = _tmp20_;
-#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (root_wrapper);
-#line 3048 "Tree.c"
- }
-#line 444 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp21_ = insertion_iter;
-#line 444 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp21_ == NULL) {
-#line 3054 "Tree.c"
- GtkTreeStore* _tmp22_;
- GtkTreeIter _tmp23_ = {0};
- GtkTreeIter _tmp24_;
- GtkTreeIter* _tmp25_;
-#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = self->priv->store;
-#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_append (_tmp22_, &_tmp23_, NULL);
-#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (insertion_iter);
-#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = _tmp23_;
-#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp25_ = __gtk_tree_iter_dup0 (&_tmp24_);
-#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- insertion_iter = _tmp25_;
-#line 3071 "Tree.c"
- }
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp26_ = insertion_iter;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp27_ = self->priv->store;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp28_ = sidebar_branch_get_root (branch);
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp29_ = _tmp28_;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp30_ = self->priv->store;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp31_ = insertion_iter;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp32_ = *_tmp31_;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp33_ = gtk_tree_model_get_path (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp32_);
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp34_ = _tmp33_;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp35_ = position;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp36_ = sidebar_tree_root_wrapper_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_tree_model_get_type (), GtkTreeModel), _tmp29_, _tmp34_, _tmp35_);
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp37_ = _tmp36_;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp38_ = *_tmp26_;
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_wrapper (self, &_tmp38_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapper));
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp37_);
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp34_);
-#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp29_);
-#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp39_ = sidebar_branch_get_root (branch);
-#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp40_ = _tmp39_;
-#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp41_ = insertion_iter;
-#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp42_ = *_tmp41_;
-#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_children (self, branch, _tmp40_, &_tmp42_);
-#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp40_);
-#line 420 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (insertion_iter);
-#line 3121 "Tree.c"
-}
-
-
-static void
-sidebar_tree_associate_children (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* parent,
- GtkTreeIter* parent_iter)
-{
- GeeList* children = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
-#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (parent));
-#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (parent_iter != NULL);
-#line 457 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_branch_get_children (branch, parent);
-#line 457 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- children = _tmp0_;
-#line 458 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = children;
-#line 458 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 459 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (children);
-#line 459 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 3154 "Tree.c"
- }
- {
- GeeList* _child_list = NULL;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _child_size = 0;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _child_index = 0;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = children;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_list = _tmp3_;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _child_list;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = _tmp5_;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_size = _tmp6_;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_index = -1;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- while (TRUE) {
-#line 3183 "Tree.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- SidebarEntry* child = NULL;
- GeeList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- GtkTreeIter append_iter = {0};
- GtkTreeStore* _tmp13_;
- GtkTreeIter _tmp14_;
- GtkTreeIter _tmp15_ = {0};
- GtkTreeIter _tmp16_;
- SidebarEntry* _tmp17_;
- SidebarEntry* _tmp18_;
- GtkTreeIter _tmp19_;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _child_index;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_index = _tmp7_ + 1;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = _child_index;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = _child_size;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 3211 "Tree.c"
- }
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = _child_list;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = _child_index;
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- child = (SidebarEntry*) _tmp12_;
-#line 463 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = self->priv->store;
-#line 463 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = *parent_iter;
-#line 463 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_append (_tmp13_, &_tmp15_, &_tmp14_);
-#line 463 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- append_iter = _tmp15_;
-#line 465 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = append_iter;
-#line 465 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = child;
-#line 465 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_entry (self, &_tmp16_, _tmp17_);
-#line 466 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = child;
-#line 466 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = append_iter;
-#line 466 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_children (self, branch, _tmp18_, &_tmp19_);
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (child);
-#line 3243 "Tree.c"
- }
-#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_child_list);
-#line 3247 "Tree.c"
- }
-#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (children);
-#line 3251 "Tree.c"
-}
-
-
-static void
-sidebar_tree_associate_entry (SidebarTree* self,
- GtkTreeIter* assoc_iter,
- SidebarEntry* entry)
-{
- GtkTreeIter _tmp0_;
- GtkTreeStore* _tmp1_;
- GtkTreeStore* _tmp2_;
- GtkTreeIter _tmp3_;
- GtkTreePath* _tmp4_;
- GtkTreePath* _tmp5_;
- SidebarTreeEntryWrapper* _tmp6_;
- SidebarTreeEntryWrapper* _tmp7_;
-#line 470 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 470 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (assoc_iter != NULL);
-#line 470 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = *assoc_iter;
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->store;
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = self->priv->store;
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = *assoc_iter;
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = gtk_tree_model_get_path (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp3_);
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = _tmp4_;
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = sidebar_tree_entry_wrapper_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_tree_model_get_type (), GtkTreeModel), entry, _tmp5_);
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _tmp6_;
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_wrapper (self, &_tmp0_, _tmp7_);
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp7_);
-#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp5_);
-#line 3296 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_sidebar_tooltip_changed_sidebar_entry_sidebar_tooltip_changed (SidebarEntry* _sender,
- const gchar* tooltip,
- gpointer self)
-{
-#line 485 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_sidebar_tooltip_changed ((SidebarTree*) self, _sender, tooltip);
-#line 3307 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_sidebar_icon_changed_sidebar_entry_sidebar_icon_changed (SidebarEntry* _sender,
- const gchar* icon,
- gpointer self)
-{
-#line 486 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_sidebar_icon_changed ((SidebarTree*) self, _sender, icon);
-#line 3318 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_sidebar_page_created_sidebar_page_representative_page_created (SidebarPageRepresentative* _sender,
- Page* page,
- gpointer self)
-{
-#line 490 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_sidebar_page_created ((SidebarTree*) self, _sender, page);
-#line 3329 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_sidebar_destroying_page_sidebar_page_representative_destroying_page (SidebarPageRepresentative* _sender,
- Page* page,
- gpointer self)
-{
-#line 491 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_sidebar_destroying_page ((SidebarTree*) self, _sender, page);
-#line 3340 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_is_emphasized_changed_sidebar_emphasizable_entry_is_emphasized_changed (SidebarEmphasizableEntry* _sender,
- gboolean emphasized,
- gpointer self)
-{
-#line 496 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_is_emphasized_changed ((SidebarTree*) self, _sender, emphasized);
-#line 3351 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_sidebar_name_changed_sidebar_renameable_entry_sidebar_name_changed (SidebarRenameableEntry* _sender,
- const gchar* name,
- gpointer self)
-{
-#line 500 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_sidebar_name_changed ((SidebarTree*) self, _sender, name);
-#line 3362 "Tree.c"
-}
-
-
-static void
-sidebar_tree_associate_wrapper (SidebarTree* self,
- GtkTreeIter* assoc_iter,
- SidebarTreeEntryWrapper* wrapper)
-{
- SidebarEntry* entry = NULL;
- SidebarEntry* _tmp0_;
- SidebarEntry* _tmp1_;
- GeeHashMap* _tmp2_;
- SidebarEntry* _tmp3_;
- GeeHashMap* _tmp4_;
- SidebarEntry* _tmp5_;
- GtkTreeStore* _tmp6_;
- GtkTreeIter _tmp7_;
- SidebarEntry* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- GtkTreeStore* _tmp11_;
- GtkTreeIter _tmp12_;
- SidebarEntry* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- GtkTreeStore* _tmp18_;
- GtkTreeIter _tmp19_;
- GtkTreeIter _tmp20_;
- SidebarEntry* _tmp21_;
- SidebarEntry* _tmp22_;
- SidebarPageRepresentative* pageable = NULL;
- SidebarEntry* _tmp23_;
- SidebarPageRepresentative* _tmp24_;
- SidebarPageRepresentative* _tmp25_;
- SidebarEmphasizableEntry* emphasizable = NULL;
- SidebarEntry* _tmp28_;
- SidebarEmphasizableEntry* _tmp29_;
- SidebarEmphasizableEntry* _tmp30_;
- SidebarRenameableEntry* renameable = NULL;
- SidebarEntry* _tmp32_;
- SidebarRenameableEntry* _tmp33_;
- SidebarRenameableEntry* _tmp34_;
- SidebarEntry* _tmp36_;
-#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (assoc_iter != NULL);
-#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (wrapper));
-#line 475 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = wrapper->entry;
-#line 475 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 475 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- entry = _tmp1_;
-#line 477 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = self->priv->entry_map;
-#line 477 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = entry;
-#line 477 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_), "!entry_map.has_key(entry)");
-#line 478 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = self->priv->entry_map;
-#line 478 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = entry;
-#line 478 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_, wrapper);
-#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = self->priv->store;
-#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = *assoc_iter;
-#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = entry;
-#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = sidebar_tree_get_name_for_entry (self, _tmp8_);
-#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = _tmp9_;
-#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp6_, &_tmp7_, SIDEBAR_TREE_COLUMNS_NAME, _tmp10_, -1);
-#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp10_);
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->store;
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = *assoc_iter;
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = entry;
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = sidebar_entry_get_sidebar_tooltip (_tmp13_);
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = _tmp14_;
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = guarded_markup_escape_text (_tmp15_);
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = _tmp16_;
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp11_, &_tmp12_, SIDEBAR_TREE_COLUMNS_TOOLTIP, _tmp17_, -1);
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp17_);
-#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp15_);
-#line 482 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = self->priv->store;
-#line 482 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = *assoc_iter;
-#line 482 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp18_, &_tmp19_, SIDEBAR_TREE_COLUMNS_WRAPPER, wrapper, -1);
-#line 483 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = *assoc_iter;
-#line 483 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_load_entry_icons (self, &_tmp20_);
-#line 485 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp21_ = entry;
-#line 485 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (_tmp21_, "sidebar-tooltip-changed", (GCallback) _sidebar_tree_on_sidebar_tooltip_changed_sidebar_entry_sidebar_tooltip_changed, self, 0);
-#line 486 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = entry;
-#line 486 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (_tmp22_, "sidebar-icon-changed", (GCallback) _sidebar_tree_on_sidebar_icon_changed_sidebar_entry_sidebar_icon_changed, self, 0);
-#line 488 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp23_ = entry;
-#line 488 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE) ? ((SidebarPageRepresentative*) _tmp23_) : NULL);
-#line 488 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- pageable = _tmp24_;
-#line 489 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp25_ = pageable;
-#line 489 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp25_ != NULL) {
-#line 3494 "Tree.c"
- SidebarPageRepresentative* _tmp26_;
- SidebarPageRepresentative* _tmp27_;
-#line 490 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp26_ = pageable;
-#line 490 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (_tmp26_, "page-created", (GCallback) _sidebar_tree_on_sidebar_page_created_sidebar_page_representative_page_created, self, 0);
-#line 491 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp27_ = pageable;
-#line 491 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (_tmp27_, "destroying-page", (GCallback) _sidebar_tree_on_sidebar_destroying_page_sidebar_page_representative_destroying_page, self, 0);
-#line 3505 "Tree.c"
- }
-#line 494 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp28_ = entry;
-#line 494 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, SIDEBAR_TYPE_EMPHASIZABLE_ENTRY) ? ((SidebarEmphasizableEntry*) _tmp28_) : NULL);
-#line 494 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- emphasizable = _tmp29_;
-#line 495 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp30_ = emphasizable;
-#line 495 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp30_ != NULL) {
-#line 3517 "Tree.c"
- SidebarEmphasizableEntry* _tmp31_;
-#line 496 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp31_ = emphasizable;
-#line 496 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (_tmp31_, "is-emphasized-changed", (GCallback) _sidebar_tree_on_is_emphasized_changed_sidebar_emphasizable_entry_is_emphasized_changed, self, 0);
-#line 3523 "Tree.c"
- }
-#line 498 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp32_ = entry;
-#line 498 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp32_) : NULL);
-#line 498 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- renameable = _tmp33_;
-#line 499 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp34_ = renameable;
-#line 499 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp34_ != NULL) {
-#line 3535 "Tree.c"
- SidebarRenameableEntry* _tmp35_;
-#line 500 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp35_ = renameable;
-#line 500 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (_tmp35_, "sidebar-name-changed", (GCallback) _sidebar_tree_on_sidebar_name_changed_sidebar_renameable_entry_sidebar_name_changed, self, 0);
-#line 3541 "Tree.c"
- }
-#line 502 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp36_ = entry;
-#line 502 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_entry_grafted (_tmp36_, self);
-#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (renameable);
-#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (emphasizable);
-#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (pageable);
-#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (entry);
-#line 3555 "Tree.c"
-}
-
-
-static SidebarTreeEntryWrapper*
-sidebar_tree_reparent_wrapper (SidebarTree* self,
- GtkTreeIter* new_iter,
- SidebarTreeEntryWrapper* current_wrapper)
-{
- SidebarTreeEntryWrapper* result = NULL;
- SidebarEntry* entry = NULL;
- SidebarEntry* _tmp0_;
- SidebarEntry* _tmp1_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp2_;
- gboolean _tmp3_;
- SidebarTreeEntryWrapper* new_wrapper = NULL;
- GtkTreeStore* _tmp4_;
- GtkTreeStore* _tmp5_;
- GtkTreeIter _tmp6_;
- GtkTreePath* _tmp7_;
- GtkTreePath* _tmp8_;
- SidebarTreeEntryWrapper* _tmp9_;
- SidebarTreeEntryWrapper* _tmp10_;
- GeeHashMap* _tmp11_;
- GtkTreeStore* _tmp12_;
- GtkTreeIter _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- GtkTreeStore* _tmp16_;
- GtkTreeIter _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GtkTreeStore* _tmp22_;
- GtkTreeIter _tmp23_;
- GtkTreeIter _tmp24_;
-#line 505 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL);
-#line 505 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (new_iter != NULL, NULL);
-#line 505 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (current_wrapper), NULL);
-#line 506 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = current_wrapper->entry;
-#line 506 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 506 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- entry = _tmp1_;
-#line 508 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = self->priv->entry_map;
-#line 508 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry, NULL);
-#line 508 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- removed = _tmp3_;
-#line 509 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (removed, "removed");
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = self->priv->store;
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = self->priv->store;
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = *new_iter;
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = gtk_tree_model_get_path (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp6_);
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = _tmp7_;
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = sidebar_tree_entry_wrapper_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tree_model_get_type (), GtkTreeModel), entry, _tmp8_);
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = _tmp9_;
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp8_);
-#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- new_wrapper = _tmp10_;
-#line 512 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->entry_map;
-#line 512 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry, new_wrapper);
-#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = self->priv->store;
-#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = *new_iter;
-#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = sidebar_tree_get_name_for_entry (self, entry);
-#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = _tmp14_;
-#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp12_, &_tmp13_, SIDEBAR_TREE_COLUMNS_NAME, _tmp15_, -1);
-#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp15_);
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = self->priv->store;
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = *new_iter;
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = sidebar_entry_get_sidebar_tooltip (entry);
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = _tmp18_;
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = guarded_markup_escape_text (_tmp19_);
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp21_ = _tmp20_;
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp16_, &_tmp17_, SIDEBAR_TREE_COLUMNS_TOOLTIP, _tmp21_, -1);
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp21_);
-#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp19_);
-#line 516 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = self->priv->store;
-#line 516 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp23_ = *new_iter;
-#line 516 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp22_, &_tmp23_, SIDEBAR_TREE_COLUMNS_WRAPPER, new_wrapper, -1);
-#line 517 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = *new_iter;
-#line 517 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_load_entry_icons (self, &_tmp24_);
-#line 519 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = new_wrapper;
-#line 519 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (entry);
-#line 519 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 3681 "Tree.c"
-}
-
-
-void
-sidebar_tree_prune (SidebarTree* self,
- SidebarBranch* branch)
-{
- GeeHashMap* _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarEntry* _tmp2_;
- gboolean _tmp3_;
- guint _tmp4_;
- guint _tmp5_;
- guint _tmp6_;
- guint _tmp7_;
- guint _tmp8_;
- guint _tmp9_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp10_;
- gboolean _tmp11_;
-#line 522 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 522 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 523 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->branches;
-#line 523 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch), "branches.has_key(branch)");
-#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = sidebar_branch_get_root (branch);
-#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _tmp1_;
-#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_has_wrapper (self, _tmp2_);
-#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp2_);
-#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp3_) {
-#line 526 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_disassociate_branch (self, branch);
-#line 3722 "Tree.c"
- }
-#line 528 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("entry-added", SIDEBAR_TYPE_BRANCH, &_tmp4_, NULL, FALSE);
-#line 528 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _sidebar_tree_on_branch_entry_added_sidebar_branch_entry_added, self);
-#line 529 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("entry-removed", SIDEBAR_TYPE_BRANCH, &_tmp5_, NULL, FALSE);
-#line 529 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _sidebar_tree_on_branch_entry_removed_sidebar_branch_entry_removed, self);
-#line 530 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("entry-moved", SIDEBAR_TYPE_BRANCH, &_tmp6_, NULL, FALSE);
-#line 530 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _sidebar_tree_on_branch_entry_moved_sidebar_branch_entry_moved, self);
-#line 531 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("entry-reparented", SIDEBAR_TYPE_BRANCH, &_tmp7_, NULL, FALSE);
-#line 531 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _sidebar_tree_on_branch_entry_reparented_sidebar_branch_entry_reparented, self);
-#line 532 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("children-reordered", SIDEBAR_TYPE_BRANCH, &_tmp8_, NULL, FALSE);
-#line 532 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _sidebar_tree_on_branch_children_reordered_sidebar_branch_children_reordered, self);
-#line 533 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("show-branch", SIDEBAR_TYPE_BRANCH, &_tmp9_, NULL, FALSE);
-#line 533 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _sidebar_tree_on_show_branch_sidebar_branch_show_branch, self);
-#line 535 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = self->priv->branches;
-#line 535 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch, NULL);
-#line 535 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- removed = _tmp11_;
-#line 536 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (removed, "removed");
-#line 538 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_BRANCH_REMOVED_SIGNAL], 0, branch);
-#line 3758 "Tree.c"
-}
-
-
-static void
-sidebar_tree_disassociate_branch (SidebarTree* self,
- SidebarBranch* branch)
-{
- SidebarTreeRootWrapper* root_wrapper = NULL;
- SidebarEntry* _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
- SidebarTreeRootWrapper* _tmp3_;
- SidebarTreeRootWrapper* _tmp4_;
-#line 541 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 541 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_branch_get_root (branch);
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = _tmp0_;
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = sidebar_tree_get_wrapper (self, _tmp1_);
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SIDEBAR_TREE_TYPE_ROOT_WRAPPER) ? ((SidebarTreeRootWrapper*) _tmp2_) : NULL;
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp3_ == NULL) {
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp2_);
-#line 3788 "Tree.c"
- }
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp1_);
-#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- root_wrapper = _tmp4_;
-#line 543 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (root_wrapper != NULL, "root_wrapper != null");
-#line 545 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_disassociate_wrapper_and_signal (self, G_TYPE_CHECK_INSTANCE_CAST (root_wrapper, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapper), FALSE);
-#line 541 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (root_wrapper);
-#line 3802 "Tree.c"
-}
-
-
-static void
-sidebar_tree_disassociate_wrapper_and_signal (SidebarTree* self,
- SidebarTreeEntryWrapper* wrapper,
- gboolean only_children)
-{
- gboolean selected = FALSE;
- SidebarEntry* _tmp0_;
- gboolean _tmp1_;
-#line 550 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 550 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (wrapper));
-#line 551 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = wrapper->entry;
-#line 551 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selected = sidebar_tree_is_selected (self, _tmp0_);
-#line 553 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_disassociate_wrapper (self, wrapper, only_children);
-#line 555 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = selected;
-#line 555 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_) {
-#line 3828 "Tree.c"
- SidebarSelectableEntry* selectable = NULL;
- SidebarEntry* _tmp2_;
- SidebarSelectableEntry* _tmp3_;
- SidebarSelectableEntry* _tmp4_;
- SidebarSelectableEntry* _tmp5_;
-#line 556 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper->entry;
-#line 556 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SIDEBAR_TYPE_SELECTABLE_ENTRY) ? ((SidebarSelectableEntry*) _tmp2_) : NULL);
-#line 556 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selectable = _tmp3_;
-#line 557 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = selectable;
-#line 557 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp4_ != NULL, "selectable != null");
-#line 559 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = selectable;
-#line 559 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_SELECTED_ENTRY_REMOVED_SIGNAL], 0, _tmp5_);
-#line 555 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selectable);
-#line 3850 "Tree.c"
- }
-}
-
-
-static void
-sidebar_tree_disassociate_wrapper (SidebarTree* self,
- SidebarTreeEntryWrapper* wrapper,
- gboolean only_children)
-{
- GeeArrayList* children = NULL;
- GeeArrayList* _tmp0_;
- GtkTreeIter child_iter = {0};
- gboolean found = FALSE;
- GtkTreeStore* _tmp1_;
- GtkTreeIter _tmp2_ = {0};
- GtkTreeIter _tmp3_ = {0};
- gboolean _tmp4_;
- GtkTreeIter iter = {0};
- GtkTreeIter _tmp25_ = {0};
- GtkTreeStore* _tmp26_;
- SidebarTreeEntryWrapper* _tmp27_;
- SidebarEntry* entry = NULL;
- SidebarEntry* _tmp28_;
- SidebarEntry* _tmp29_;
- SidebarEntry* _tmp30_;
- SidebarEntry* _tmp31_;
- guint _tmp32_;
- SidebarEntry* _tmp33_;
- guint _tmp34_;
- SidebarPageRepresentative* pageable = NULL;
- SidebarEntry* _tmp35_;
- SidebarPageRepresentative* _tmp36_;
- SidebarPageRepresentative* _tmp37_;
- SidebarRenameableEntry* renameable = NULL;
- SidebarEntry* _tmp42_;
- SidebarRenameableEntry* _tmp43_;
- SidebarRenameableEntry* _tmp44_;
- SidebarEmphasizableEntry* emphasizable = NULL;
- SidebarEntry* _tmp47_;
- SidebarEmphasizableEntry* _tmp48_;
- SidebarEmphasizableEntry* _tmp49_;
- gboolean removed = FALSE;
- GeeHashMap* _tmp52_;
- SidebarEntry* _tmp53_;
- gboolean _tmp54_;
- gboolean _tmp55_;
-#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (wrapper));
-#line 564 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = gee_array_list_new (SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 564 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- children = _tmp0_;
-#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->store;
-#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (wrapper, &_tmp2_);
-#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = gtk_tree_model_iter_children (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp3_, &_tmp2_);
-#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- child_iter = _tmp3_;
-#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- found = _tmp4_;
-#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- while (TRUE) {
-#line 3917 "Tree.c"
- gboolean _tmp5_;
- SidebarTreeEntryWrapper* child_wrapper = NULL;
- GtkTreeIter _tmp6_;
- SidebarTreeEntryWrapper* _tmp7_;
- SidebarTreeEntryWrapper* _tmp8_;
- GeeArrayList* _tmp9_;
- SidebarTreeEntryWrapper* _tmp10_;
- GtkTreeStore* _tmp11_;
- gboolean _tmp12_;
-#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = found;
-#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!_tmp5_) {
-#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 3933 "Tree.c"
- }
-#line 569 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = child_iter;
-#line 569 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp6_);
-#line 569 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- child_wrapper = _tmp7_;
-#line 570 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = child_wrapper;
-#line 570 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp8_ != NULL, "child_wrapper != null");
-#line 572 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = children;
-#line 572 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = child_wrapper;
-#line 572 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
-#line 574 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->store;
-#line 574 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = gtk_tree_model_iter_next (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_tree_model_get_type (), GtkTreeModel), &child_iter);
-#line 574 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- found = _tmp12_;
-#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (child_wrapper);
-#line 3959 "Tree.c"
- }
- {
- GeeArrayList* _child_wrapper_list = NULL;
- GeeArrayList* _tmp13_;
- GeeArrayList* _tmp14_;
- gint _child_wrapper_size = 0;
- GeeArrayList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gint _child_wrapper_index = 0;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = children;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = _g_object_ref0 (_tmp13_);
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_wrapper_list = _tmp14_;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = _child_wrapper_list;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = _tmp16_;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_wrapper_size = _tmp17_;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_wrapper_index = -1;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- while (TRUE) {
-#line 3988 "Tree.c"
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- SidebarTreeEntryWrapper* child_wrapper = NULL;
- GeeArrayList* _tmp21_;
- gint _tmp22_;
- gpointer _tmp23_;
- SidebarTreeEntryWrapper* _tmp24_;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = _child_wrapper_index;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_wrapper_index = _tmp18_ + 1;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = _child_wrapper_index;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = _child_wrapper_size;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!(_tmp19_ < _tmp20_)) {
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 4009 "Tree.c"
- }
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp21_ = _child_wrapper_list;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = _child_wrapper_index;
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp23_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp22_);
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- child_wrapper = (SidebarTreeEntryWrapper*) _tmp23_;
-#line 578 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = child_wrapper;
-#line 578 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_disassociate_wrapper (self, _tmp24_, FALSE);
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (child_wrapper);
-#line 4025 "Tree.c"
- }
-#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_child_wrapper_list);
-#line 4029 "Tree.c"
- }
-#line 580 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (only_children) {
-#line 581 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (children);
-#line 581 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 4037 "Tree.c"
- }
-#line 583 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (wrapper, &_tmp25_);
-#line 583 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- iter = _tmp25_;
-#line 584 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp26_ = self->priv->store;
-#line 584 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_remove (_tmp26_, &iter);
-#line 586 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp27_ = self->priv->selected_wrapper;
-#line 586 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp27_ == wrapper) {
-#line 587 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->selected_wrapper = NULL;
-#line 4053 "Tree.c"
- }
-#line 589 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp28_ = wrapper->entry;
-#line 589 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp29_ = _g_object_ref0 (_tmp28_);
-#line 589 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- entry = _tmp29_;
-#line 591 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp30_ = entry;
-#line 591 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_entry_pruned (_tmp30_, self);
-#line 593 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp31_ = entry;
-#line 593 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("sidebar-tooltip-changed", SIDEBAR_TYPE_ENTRY, &_tmp32_, NULL, FALSE);
-#line 593 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (_tmp31_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp32_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_tooltip_changed_sidebar_entry_sidebar_tooltip_changed, self);
-#line 594 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp33_ = entry;
-#line 594 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("sidebar-icon-changed", SIDEBAR_TYPE_ENTRY, &_tmp34_, NULL, FALSE);
-#line 594 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (_tmp33_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp34_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_icon_changed_sidebar_entry_sidebar_icon_changed, self);
-#line 596 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp35_ = entry;
-#line 596 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE) ? ((SidebarPageRepresentative*) _tmp35_) : NULL);
-#line 596 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- pageable = _tmp36_;
-#line 597 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp37_ = pageable;
-#line 597 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp37_ != NULL) {
-#line 4087 "Tree.c"
- SidebarPageRepresentative* _tmp38_;
- guint _tmp39_;
- SidebarPageRepresentative* _tmp40_;
- guint _tmp41_;
-#line 598 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp38_ = pageable;
-#line 598 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("page-created", SIDEBAR_TYPE_PAGE_REPRESENTATIVE, &_tmp39_, NULL, FALSE);
-#line 598 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (_tmp38_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp39_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_page_created_sidebar_page_representative_page_created, self);
-#line 599 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp40_ = pageable;
-#line 599 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("destroying-page", SIDEBAR_TYPE_PAGE_REPRESENTATIVE, &_tmp41_, NULL, FALSE);
-#line 599 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (_tmp40_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp41_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_destroying_page_sidebar_page_representative_destroying_page, self);
-#line 4104 "Tree.c"
- }
-#line 602 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp42_ = entry;
-#line 602 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp43_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp42_) : NULL);
-#line 602 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- renameable = _tmp43_;
-#line 603 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp44_ = renameable;
-#line 603 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp44_ != NULL) {
-#line 4116 "Tree.c"
- SidebarRenameableEntry* _tmp45_;
- guint _tmp46_;
-#line 604 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp45_ = renameable;
-#line 604 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("sidebar-name-changed", SIDEBAR_TYPE_RENAMEABLE_ENTRY, &_tmp46_, NULL, FALSE);
-#line 604 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (_tmp45_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp46_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_name_changed_sidebar_renameable_entry_sidebar_name_changed, self);
-#line 4125 "Tree.c"
- }
-#line 606 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp47_ = entry;
-#line 606 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp48_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp47_, SIDEBAR_TYPE_EMPHASIZABLE_ENTRY) ? ((SidebarEmphasizableEntry*) _tmp47_) : NULL);
-#line 606 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- emphasizable = _tmp48_;
-#line 607 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp49_ = emphasizable;
-#line 607 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp49_ != NULL) {
-#line 4137 "Tree.c"
- SidebarEmphasizableEntry* _tmp50_;
- guint _tmp51_;
-#line 608 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp50_ = emphasizable;
-#line 608 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("is-emphasized-changed", SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, &_tmp51_, NULL, FALSE);
-#line 608 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (_tmp50_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp51_, 0, NULL, (GCallback) _sidebar_tree_on_is_emphasized_changed_sidebar_emphasizable_entry_is_emphasized_changed, self);
-#line 4146 "Tree.c"
- }
-#line 610 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp52_ = self->priv->entry_map;
-#line 610 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp53_ = entry;
-#line 610 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp54_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp53_, NULL);
-#line 610 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- removed = _tmp54_;
-#line 611 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp55_ = removed;
-#line 611 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp55_, "removed");
-#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (emphasizable);
-#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (renameable);
-#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (pageable);
-#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (entry);
-#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (children);
-#line 4170 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_branch_entry_added (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry)
-{
- SidebarEntry* parent = NULL;
- SidebarEntry* _tmp0_;
- SidebarEntry* _tmp1_;
- SidebarTreeEntryWrapper* parent_wrapper = NULL;
- SidebarEntry* _tmp2_;
- SidebarTreeEntryWrapper* _tmp3_;
- SidebarTreeEntryWrapper* _tmp4_;
- GtkTreeIter insertion_iter = {0};
- SidebarEntry* next = NULL;
- SidebarEntry* _tmp5_;
- SidebarEntry* _tmp6_;
- GtkTreeIter _tmp19_;
- GtkTreeIter _tmp20_;
-#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 615 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_branch_get_parent (branch, entry);
-#line 615 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- parent = _tmp0_;
-#line 616 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = parent;
-#line 616 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp1_ != NULL, "parent != null");
-#line 618 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = parent;
-#line 618 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_get_wrapper (self, _tmp2_);
-#line 618 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- parent_wrapper = _tmp3_;
-#line 619 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = parent_wrapper;
-#line 619 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp4_ != NULL, "parent_wrapper != null");
-#line 622 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = sidebar_branch_get_next_sibling (branch, entry);
-#line 622 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- next = _tmp5_;
-#line 623 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = next;
-#line 623 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp6_ != NULL) {
-#line 4224 "Tree.c"
- SidebarTreeEntryWrapper* next_wrapper = NULL;
- SidebarEntry* _tmp7_;
- SidebarTreeEntryWrapper* _tmp8_;
- GtkTreeStore* _tmp9_;
- SidebarTreeEntryWrapper* _tmp10_;
- GtkTreeIter _tmp11_ = {0};
- SidebarTreeEntryWrapper* _tmp12_;
- GtkTreeIter _tmp13_ = {0};
- GtkTreeIter _tmp14_ = {0};
-#line 624 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = next;
-#line 624 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = sidebar_tree_get_wrapper (self, _tmp7_);
-#line 624 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- next_wrapper = _tmp8_;
-#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = self->priv->store;
-#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = parent_wrapper;
-#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp10_, &_tmp11_);
-#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = next_wrapper;
-#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp12_, &_tmp13_);
-#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_insert_before (_tmp9_, &_tmp14_, &_tmp11_, &_tmp13_);
-#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- insertion_iter = _tmp14_;
-#line 623 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (next_wrapper);
-#line 4256 "Tree.c"
- } else {
- GtkTreeStore* _tmp15_;
- SidebarTreeEntryWrapper* _tmp16_;
- GtkTreeIter _tmp17_ = {0};
- GtkTreeIter _tmp18_ = {0};
-#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = self->priv->store;
-#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = parent_wrapper;
-#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp16_, &_tmp17_);
-#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_append (_tmp15_, &_tmp18_, &_tmp17_);
-#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- insertion_iter = _tmp18_;
-#line 4272 "Tree.c"
- }
-#line 633 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = insertion_iter;
-#line 633 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_entry (self, &_tmp19_, entry);
-#line 634 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = insertion_iter;
-#line 634 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_children (self, branch, entry, &_tmp20_);
-#line 636 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (sidebar_branch_is_auto_open_on_new_child (branch)) {
-#line 637 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_expand_to_entry (self, entry);
-#line 4286 "Tree.c"
- }
-#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (next);
-#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (parent_wrapper);
-#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (parent);
-#line 4294 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_branch_entry_removed (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
-#line 640 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 640 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 640 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 641 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 641 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 642 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (wrapper != NULL, "wrapper != null");
-#line 643 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (!G_TYPE_CHECK_INSTANCE_TYPE (wrapper, SIDEBAR_TREE_TYPE_ROOT_WRAPPER), "!(wrapper is RootWrapper)");
-#line 645 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_disassociate_wrapper_and_signal (self, wrapper, FALSE);
-#line 640 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 4323 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_branch_entry_moved (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
- GtkTreeIter* prev_iter = NULL;
- SidebarEntry* prev = NULL;
- SidebarEntry* _tmp3_;
- SidebarEntry* _tmp4_;
- GtkTreeIter entry_iter = {0};
- SidebarTreeEntryWrapper* _tmp11_;
- GtkTreeIter _tmp12_ = {0};
- GtkTreeStore* _tmp13_;
- GtkTreeIter* _tmp14_;
-#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 649 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 649 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 650 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 650 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp1_ != NULL, "wrapper != null");
-#line 651 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 651 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SIDEBAR_TREE_TYPE_ROOT_WRAPPER), "!(wrapper is RootWrapper)");
-#line 654 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- prev_iter = NULL;
-#line 655 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_branch_get_previous_sibling (branch, entry);
-#line 655 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- prev = _tmp3_;
-#line 656 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = prev;
-#line 656 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp4_ != NULL) {
-#line 4373 "Tree.c"
- SidebarTreeEntryWrapper* prev_wrapper = NULL;
- SidebarEntry* _tmp5_;
- SidebarTreeEntryWrapper* _tmp6_;
- SidebarTreeEntryWrapper* _tmp7_;
- SidebarTreeEntryWrapper* _tmp8_;
- GtkTreeIter _tmp9_ = {0};
- GtkTreeIter* _tmp10_;
-#line 657 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = prev;
-#line 657 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = sidebar_tree_get_wrapper (self, _tmp5_);
-#line 657 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- prev_wrapper = _tmp6_;
-#line 658 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = prev_wrapper;
-#line 658 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp7_ != NULL, "prev_wrapper != null");
-#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = prev_wrapper;
-#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp8_, &_tmp9_);
-#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = __gtk_tree_iter_dup0 (&_tmp9_);
-#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (prev_iter);
-#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- prev_iter = _tmp10_;
-#line 656 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (prev_wrapper);
-#line 4403 "Tree.c"
- }
-#line 663 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = wrapper;
-#line 663 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp11_, &_tmp12_);
-#line 663 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- entry_iter = _tmp12_;
-#line 664 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = self->priv->store;
-#line 664 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = prev_iter;
-#line 664 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_move_after (_tmp13_, &entry_iter, _tmp14_);
-#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (prev);
-#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (prev_iter);
-#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 4423 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_branch_entry_reparented (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry,
- SidebarEntry* old_parent)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
- gboolean selected = FALSE;
- GtkTreePath* _tmp3_;
- GtkTreePath* _tmp4_;
- SidebarTreeEntryWrapper* _tmp5_;
- GtkTreePath* _tmp6_;
- GtkTreePath* _tmp7_;
- gboolean _tmp8_;
- GtkTreeIter iter = {0};
- SidebarTreeEntryWrapper* _tmp9_;
- GtkTreeIter _tmp10_ = {0};
- GtkTreeStore* _tmp11_;
- SidebarEntry* parent = NULL;
- SidebarEntry* _tmp12_;
- SidebarEntry* _tmp13_;
- SidebarTreeEntryWrapper* parent_wrapper = NULL;
- SidebarEntry* _tmp14_;
- SidebarTreeEntryWrapper* _tmp15_;
- SidebarTreeEntryWrapper* _tmp16_;
- GtkTreeIter* prev_iter = NULL;
- SidebarEntry* prev = NULL;
- SidebarEntry* _tmp17_;
- SidebarEntry* _tmp18_;
- GtkTreeIter new_iter = {0};
- GtkTreeStore* _tmp25_;
- SidebarTreeEntryWrapper* _tmp26_;
- GtkTreeIter _tmp27_ = {0};
- GtkTreeIter* _tmp28_;
- GtkTreeIter _tmp29_ = {0};
- SidebarTreeEntryWrapper* new_wrapper = NULL;
- GtkTreeIter _tmp30_;
- SidebarTreeEntryWrapper* _tmp31_;
- SidebarTreeEntryWrapper* _tmp32_;
- gboolean _tmp33_;
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (old_parent));
-#line 669 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 669 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 670 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 670 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp1_ != NULL, "wrapper != null");
-#line 671 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 671 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SIDEBAR_TREE_TYPE_ROOT_WRAPPER), "!(wrapper is RootWrapper)");
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_get_current_path (self);
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = wrapper;
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = sidebar_tree_entry_wrapper_get_path (_tmp5_);
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _tmp6_;
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = gtk_tree_path_compare (_tmp4_, _tmp7_) == 0;
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp7_);
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp4_);
-#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selected = _tmp8_;
-#line 676 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = wrapper;
-#line 676 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp9_, &_tmp10_);
-#line 676 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- iter = _tmp10_;
-#line 677 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->store;
-#line 677 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_remove (_tmp11_, &iter);
-#line 679 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = sidebar_branch_get_parent (branch, entry);
-#line 679 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- parent = _tmp12_;
-#line 680 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = parent;
-#line 680 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp13_ != NULL, "parent != null");
-#line 682 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = parent;
-#line 682 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = sidebar_tree_get_wrapper (self, _tmp14_);
-#line 682 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- parent_wrapper = _tmp15_;
-#line 683 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = parent_wrapper;
-#line 683 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp16_ != NULL, "parent_wrapper != null");
-#line 686 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- prev_iter = NULL;
-#line 687 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = sidebar_branch_get_previous_sibling (branch, entry);
-#line 687 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- prev = _tmp17_;
-#line 688 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = prev;
-#line 688 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp18_ != NULL) {
-#line 4546 "Tree.c"
- SidebarTreeEntryWrapper* prev_wrapper = NULL;
- SidebarEntry* _tmp19_;
- SidebarTreeEntryWrapper* _tmp20_;
- SidebarTreeEntryWrapper* _tmp21_;
- SidebarTreeEntryWrapper* _tmp22_;
- GtkTreeIter _tmp23_ = {0};
- GtkTreeIter* _tmp24_;
-#line 689 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = prev;
-#line 689 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = sidebar_tree_get_wrapper (self, _tmp19_);
-#line 689 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- prev_wrapper = _tmp20_;
-#line 690 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp21_ = prev_wrapper;
-#line 690 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp21_ != NULL, "prev_wrapper != null");
-#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = prev_wrapper;
-#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp22_, &_tmp23_);
-#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = __gtk_tree_iter_dup0 (&_tmp23_);
-#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (prev_iter);
-#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- prev_iter = _tmp24_;
-#line 688 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (prev_wrapper);
-#line 4576 "Tree.c"
- }
-#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp25_ = self->priv->store;
-#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp26_ = parent_wrapper;
-#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp26_, &_tmp27_);
-#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp28_ = prev_iter;
-#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_insert_after (_tmp25_, &_tmp29_, &_tmp27_, _tmp28_);
-#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- new_iter = _tmp29_;
-#line 698 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp30_ = new_iter;
-#line 698 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp31_ = wrapper;
-#line 698 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp32_ = sidebar_tree_reparent_wrapper (self, &_tmp30_, _tmp31_);
-#line 698 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- new_wrapper = _tmp32_;
-#line 700 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp33_ = selected;
-#line 700 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp33_) {
-#line 4602 "Tree.c"
- SidebarTreeEntryWrapper* _tmp34_;
- SidebarEntry* _tmp35_;
- SidebarTreeEntryWrapper* _tmp36_;
- SidebarEntry* _tmp37_;
-#line 701 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp34_ = new_wrapper;
-#line 701 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp35_ = _tmp34_->entry;
-#line 701 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_expand_to_entry (self, _tmp35_);
-#line 702 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp36_ = new_wrapper;
-#line 702 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp37_ = _tmp36_->entry;
-#line 702 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_place_cursor (self, _tmp37_, FALSE);
-#line 4619 "Tree.c"
- }
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (new_wrapper);
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (prev);
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (prev_iter);
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (parent_wrapper);
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (parent);
-#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 4633 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_branch_children_reordered (SidebarTree* self,
- SidebarBranch* branch,
- SidebarEntry* entry)
-{
- GeeList* children = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
-#line 706 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 706 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 706 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 707 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_branch_get_children (branch, entry);
-#line 707 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- children = _tmp0_;
-#line 708 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = children;
-#line 708 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 709 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (children);
-#line 709 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 4663 "Tree.c"
- }
- {
- GeeList* _child_list = NULL;
- GeeList* _tmp2_;
- GeeList* _tmp3_;
- gint _child_size = 0;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- gint _child_index = 0;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = children;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_list = _tmp3_;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _child_list;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = _tmp5_;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_size = _tmp6_;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_index = -1;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- while (TRUE) {
-#line 4692 "Tree.c"
- gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- SidebarEntry* child = NULL;
- GeeList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
- SidebarTreeEntryWrapper* child_wrapper = NULL;
- SidebarEntry* _tmp13_;
- SidebarTreeEntryWrapper* _tmp14_;
- SidebarTreeEntryWrapper* _tmp15_;
- GtkTreeIter child_iter = {0};
- SidebarTreeEntryWrapper* _tmp16_;
- GtkTreeIter _tmp17_ = {0};
- GtkTreeStore* _tmp18_;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _child_index;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _child_index = _tmp7_ + 1;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = _child_index;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = _child_size;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 4720 "Tree.c"
- }
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = _child_list;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = _child_index;
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- child = (SidebarEntry*) _tmp12_;
-#line 714 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = child;
-#line 714 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = sidebar_tree_get_wrapper (self, _tmp13_);
-#line 714 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- child_wrapper = _tmp14_;
-#line 715 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = child_wrapper;
-#line 715 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp15_ != NULL, "child_wrapper != null");
-#line 717 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = child_wrapper;
-#line 717 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp16_, &_tmp17_);
-#line 717 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- child_iter = _tmp17_;
-#line 718 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = self->priv->store;
-#line 718 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_move_before (_tmp18_, &child_iter, NULL);
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (child_wrapper);
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (child);
-#line 4754 "Tree.c"
- }
-#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_child_list);
-#line 4758 "Tree.c"
- }
-#line 706 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (children);
-#line 4762 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_show_branch (SidebarTree* self,
- SidebarBranch* branch,
- gboolean shown)
-{
-#line 722 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 722 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_BRANCH (branch));
-#line 723 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (shown) {
-#line 724 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_associate_branch (self, branch);
-#line 4779 "Tree.c"
- } else {
-#line 726 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_disassociate_branch (self, branch);
-#line 4783 "Tree.c"
- }
-#line 728 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_BRANCH_SHOWN_SIGNAL], 0, branch, shown);
-#line 4787 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_sidebar_tooltip_changed (SidebarTree* self,
- SidebarEntry* entry,
- const gchar* tooltip)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- GtkTreeStore* _tmp1_;
- GtkTreeIter _tmp2_ = {0};
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 731 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 731 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 732 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 732 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 733 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (wrapper != NULL, "wrapper != null");
-#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->store;
-#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (wrapper, &_tmp2_);
-#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = guarded_markup_escape_text (tooltip);
-#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp1_, &_tmp2_, SIDEBAR_TREE_COLUMNS_TOOLTIP, _tmp4_, -1);
-#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp4_);
-#line 731 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 4826 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_sidebar_icon_changed (SidebarTree* self,
- SidebarEntry* entry,
- const gchar* icon_name)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- GIcon* icon = NULL;
- GtkTreeStore* _tmp5_;
- SidebarTreeEntryWrapper* _tmp6_;
- GtkTreeIter _tmp7_ = {0};
- GIcon* _tmp8_;
- GError * _inner_error_ = NULL;
-#line 738 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 738 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 739 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 739 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 740 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 740 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp1_ != NULL, "wrapper != null");
-#line 741 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- icon = NULL;
-#line 4858 "Tree.c"
- {
-#line 744 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (icon_name != NULL) {
-#line 4862 "Tree.c"
- GIcon* _tmp2_ = NULL;
- GIcon* _tmp3_;
- GIcon* _tmp4_;
-#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = g_icon_new_for_string (icon_name, &_inner_error_);
-#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _tmp3_;
-#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4872 "Tree.c"
- goto __catch56_g_error;
- }
-#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp2_;
-#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = NULL;
-#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (icon);
-#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- icon = _tmp4_;
-#line 744 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp2_);
-#line 4885 "Tree.c"
- }
- }
- goto __finally56;
- __catch56_g_error:
- {
- GError* e = NULL;
-#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- e = _inner_error_;
-#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _inner_error_ = NULL;
-#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_error_free0 (e);
-#line 4898 "Tree.c"
- }
- __finally56:
-#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (icon);
-#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.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 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_clear_error (&_inner_error_);
-#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 4913 "Tree.c"
- }
-#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = self->priv->store;
-#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = wrapper;
-#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (_tmp6_, &_tmp7_);
-#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = icon;
-#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp5_, &_tmp7_, SIDEBAR_TREE_COLUMNS_ICON, _tmp8_, -1);
-#line 738 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (icon);
-#line 738 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 4929 "Tree.c"
-}
-
-
-static void
-sidebar_tree_rename_entry (SidebarTree* self,
- SidebarEntry* entry)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- GtkTreeStore* _tmp1_;
- GtkTreeIter _tmp2_ = {0};
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 752 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 752 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 753 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 753 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 754 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (wrapper != NULL, "wrapper != null");
-#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->store;
-#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_entry_wrapper_get_iter (wrapper, &_tmp2_);
-#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_get_name_for_entry (self, entry);
-#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp1_, &_tmp2_, SIDEBAR_TREE_COLUMNS_NAME, _tmp4_, -1);
-#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp4_);
-#line 752 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 4967 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_sidebar_name_changed (SidebarTree* self,
- SidebarEntry* entry,
- const gchar* name)
-{
-#line 759 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 759 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
-#line 759 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (name != NULL);
-#line 760 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_rename_entry (self, entry);
-#line 4984 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_sidebar_page_created (SidebarTree* self,
- SidebarPageRepresentative* entry,
- Page* page)
-{
-#line 763 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 763 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry));
-#line 763 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 764 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_PAGE_CREATED_SIGNAL], 0, entry, page);
-#line 5001 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_is_emphasized_changed (SidebarTree* self,
- SidebarEmphasizableEntry* entry,
- gboolean is_emphasized)
-{
-#line 767 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 767 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_EMPHASIZABLE_ENTRY (entry));
-#line 768 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_rename_entry (self, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 5016 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_sidebar_destroying_page (SidebarTree* self,
- SidebarPageRepresentative* entry,
- Page* page)
-{
-#line 771 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 771 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry));
-#line 771 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (IS_PAGE (page));
-#line 772 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_DESTROYING_PAGE_SIGNAL], 0, entry, page);
-#line 5033 "Tree.c"
-}
-
-
-static void
-sidebar_tree_load_entry_icons (SidebarTree* self,
- GtkTreeIter* iter)
-{
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreeIter _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- GIcon* icon = NULL;
- SidebarTreeEntryWrapper* _tmp2_;
- GtkTreeStore* _tmp11_;
- GtkTreeIter _tmp12_;
- GIcon* _tmp13_;
- GError * _inner_error_ = NULL;
-#line 775 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 775 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (iter != NULL);
-#line 776 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = *iter;
-#line 776 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp0_);
-#line 776 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp1_;
-#line 777 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- icon = NULL;
-#line 778 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 778 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ == NULL) {
-#line 779 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (icon);
-#line 779 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 779 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 5072 "Tree.c"
- }
- {
- gchar* name = NULL;
- SidebarTreeEntryWrapper* _tmp3_;
- SidebarEntry* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 782 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = wrapper;
-#line 782 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_->entry;
-#line 782 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = sidebar_entry_get_sidebar_icon (_tmp4_);
-#line 782 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- name = _tmp5_;
-#line 783 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = name;
-#line 783 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp6_ != NULL) {
-#line 5092 "Tree.c"
- GIcon* _tmp7_ = NULL;
- const gchar* _tmp8_;
- GIcon* _tmp9_;
- GIcon* _tmp10_;
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = name;
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = g_icon_new_for_string (_tmp8_, &_inner_error_);
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _tmp9_;
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (name);
-#line 5107 "Tree.c"
- goto __catch57_g_error;
- }
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = _tmp7_;
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = NULL;
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (icon);
-#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- icon = _tmp10_;
-#line 783 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp7_);
-#line 5120 "Tree.c"
- }
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (name);
-#line 5124 "Tree.c"
- }
- goto __finally57;
- __catch57_g_error:
- {
- GError* e = NULL;
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- e = _inner_error_;
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _inner_error_ = NULL;
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_error_free0 (e);
-#line 5136 "Tree.c"
- }
- __finally57:
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (icon);
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.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 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_clear_error (&_inner_error_);
-#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 5151 "Tree.c"
- }
-#line 789 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->store;
-#line 789 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = *iter;
-#line 789 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = icon;
-#line 789 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_store_set (_tmp11_, &_tmp12_, SIDEBAR_TREE_COLUMNS_ICON, _tmp13_, -1);
-#line 775 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (icon);
-#line 775 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 5165 "Tree.c"
-}
-
-
-static void
-sidebar_tree_load_branch_icons (SidebarTree* self,
- GtkTreeIter* iter)
-{
- GtkTreeIter _tmp0_;
- GtkTreeIter child_iter = {0};
- GtkTreeStore* _tmp1_;
- GtkTreeIter _tmp2_;
- GtkTreeIter _tmp3_ = {0};
- gboolean _tmp4_;
-#line 792 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 792 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (iter != NULL);
-#line 793 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = *iter;
-#line 793 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_load_entry_icons (self, &_tmp0_);
-#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->store;
-#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = *iter;
-#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = gtk_tree_model_iter_children (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp3_, &_tmp2_);
-#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- child_iter = _tmp3_;
-#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp4_) {
-#line 5197 "Tree.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 797 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = TRUE;
-#line 797 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- while (TRUE) {
-#line 5204 "Tree.c"
- GtkTreeIter _tmp8_;
-#line 797 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!_tmp5_) {
-#line 5208 "Tree.c"
- GtkTreeStore* _tmp6_;
- gboolean _tmp7_;
-#line 799 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = self->priv->store;
-#line 799 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = gtk_tree_model_iter_next (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tree_model_get_type (), GtkTreeModel), &child_iter);
-#line 799 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!_tmp7_) {
-#line 799 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- break;
-#line 5219 "Tree.c"
- }
- }
-#line 797 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = FALSE;
-#line 798 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = child_iter;
-#line 798 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_load_branch_icons (self, &_tmp8_);
-#line 5228 "Tree.c"
- }
- }
- }
-}
-
-
-static gboolean
-sidebar_tree_on_selection (SidebarTree* self,
- GtkTreeSelection* selection,
- GtkTreeModel* model,
- GtkTreePath* path,
- gboolean path_currently_selected)
-{
- gboolean result = FALSE;
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- gboolean _tmp1_ = FALSE;
- SidebarTreeEntryWrapper* _tmp2_;
-#line 803 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 803 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (GTK_IS_TREE_SELECTION (selection), FALSE);
-#line 803 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (GTK_IS_TREE_MODEL (model), FALSE);
-#line 803 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (path != NULL, FALSE);
-#line 806 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper_at_path (self, path);
-#line 806 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ != NULL) {
-#line 5263 "Tree.c"
- SidebarTreeEntryWrapper* _tmp3_;
- SidebarEntry* _tmp4_;
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = wrapper;
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_->entry;
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_SELECTABLE_ENTRY);
-#line 5272 "Tree.c"
- } else {
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = FALSE;
-#line 5276 "Tree.c"
- }
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = _tmp1_;
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5284 "Tree.c"
-}
-
-
-static GtkTreePath*
-sidebar_tree_get_path_from_event (SidebarTree* self,
- GdkEventButton* event)
-{
- GtkTreePath* result = NULL;
- gint x = 0;
- gint y = 0;
- GdkModifierType mask = 0;
- GdkWindow* _tmp0_;
- GdkDisplay* _tmp1_;
- GdkDeviceManager* _tmp2_;
- GdkDevice* _tmp3_;
- gint _tmp4_ = 0;
- gint _tmp5_ = 0;
- GdkModifierType _tmp6_ = 0;
- gint cell_x = 0;
- gint cell_y = 0;
- GtkTreePath* path = NULL;
- GtkTreePath* _tmp7_ = NULL;
- gint _tmp8_;
- gint _tmp9_;
- GtkTreePath* _tmp10_ = NULL;
- gint _tmp11_ = 0;
- gint _tmp12_ = 0;
- gboolean _tmp13_;
- GtkTreePath* _tmp15_;
-#line 811 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL);
-#line 811 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (event != NULL, NULL);
-#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = event->window;
-#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gdk_display_get_default ();
-#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = gdk_display_get_device_manager (_tmp1_);
-#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = gdk_device_manager_get_client_pointer (_tmp2_);
-#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gdk_window_get_device_position (_tmp0_, _tmp3_, &_tmp4_, &_tmp5_, &_tmp6_);
-#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- x = _tmp4_;
-#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- y = _tmp5_;
-#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- mask = _tmp6_;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = x;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = y;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = gtk_tree_view_get_path_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp8_, _tmp9_, &_tmp10_, NULL, &_tmp11_, &_tmp12_);
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp10_;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- cell_x = _tmp11_;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- cell_y = _tmp12_;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp13_) {
-#line 5350 "Tree.c"
- GtkTreePath* _tmp14_;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = path;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _tmp14_;
-#line 5356 "Tree.c"
- } else {
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = NULL;
-#line 5360 "Tree.c"
- }
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = __vala_GtkTreePath_copy0 (_tmp7_);
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = _tmp15_;
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5370 "Tree.c"
-}
-
-
-static GtkTreePath*
-sidebar_tree_get_current_path (SidebarTree* self)
-{
- GtkTreePath* result = NULL;
- GtkTreeModel* model = NULL;
- GList* rows = NULL;
- GtkTreeSelection* _tmp0_;
- GtkTreeModel* _tmp1_ = NULL;
- GList* _tmp2_;
- GtkTreeModel* _tmp3_;
- gboolean _tmp4_ = FALSE;
- GList* _tmp5_;
- GtkTreePath* _tmp7_ = NULL;
- GList* _tmp8_;
- GtkTreePath* _tmp11_;
-#line 822 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL);
-#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = gtk_tree_selection_get_selected_rows (_tmp0_, &_tmp1_);
-#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (model);
-#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _g_object_ref0 (_tmp1_);
-#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- model = _tmp3_;
-#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- rows = _tmp2_;
-#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = rows;
-#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (g_list_length (_tmp5_) == ((guint) 0)) {
-#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = TRUE;
-#line 5409 "Tree.c"
- } else {
- GList* _tmp6_;
-#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = rows;
-#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = g_list_length (_tmp6_) == ((guint) 1);
-#line 5416 "Tree.c"
- }
-#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (_tmp4_, "rows.length() == 0 || rows.length() == 1");
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = rows;
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (g_list_length (_tmp8_) != ((guint) 0)) {
-#line 5424 "Tree.c"
- GList* _tmp9_;
- gconstpointer _tmp10_;
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = rows;
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = g_list_nth_data (_tmp9_, (guint) 0);
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = (GtkTreePath*) _tmp10_;
-#line 5433 "Tree.c"
- } else {
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = NULL;
-#line 5437 "Tree.c"
- }
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = __vala_GtkTreePath_copy0 (_tmp7_);
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = _tmp11_;
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __g_list_free___vala_GtkTreePath_free0_0 (rows);
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (model);
-#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5449 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_on_context_menu_keypress (SidebarTree* self)
-{
- gboolean result = FALSE;
- GList* rows = NULL;
- GtkTreeSelection* _tmp0_;
- GList* _tmp1_;
- GList* _tmp2_;
- GtkTreePath* path = NULL;
- GList* _tmp3_;
- gconstpointer _tmp4_;
- GtkTreePath* _tmp5_;
- GtkTreePath* _tmp6_;
- GtkTreePath* _tmp7_;
- GtkTreePath* _tmp8_;
-#line 830 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 831 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 831 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gtk_tree_selection_get_selected_rows (_tmp0_, NULL);
-#line 831 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- rows = _tmp1_;
-#line 832 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = rows;
-#line 832 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ == NULL) {
-#line 833 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 833 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __g_list_free___vala_GtkTreePath_free0_0 (rows);
-#line 833 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5486 "Tree.c"
- }
-#line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = rows;
-#line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_->data;
-#line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = __vala_GtkTreePath_copy0 ((GtkTreePath*) _tmp4_);
-#line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp5_;
-#line 836 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = path;
-#line 836 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp6_ == NULL) {
-#line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __g_list_free___vala_GtkTreePath_free0_0 (rows);
-#line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5508 "Tree.c"
- }
-#line 839 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = path;
-#line 839 "/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), _tmp7_, NULL, FALSE, (gfloat) 0, (gfloat) 0);
-#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = path;
-#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = sidebar_tree_popup_context_menu (self, _tmp8_, NULL);
-#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __g_list_free___vala_GtkTreePath_free0_0 (rows);
-#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5524 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_popup_context_menu (SidebarTree* self,
- GtkTreePath* path,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarContextable* contextable = NULL;
- SidebarTreeEntryWrapper* _tmp2_;
- SidebarEntry* _tmp3_;
- SidebarContextable* _tmp4_;
- SidebarContextable* _tmp5_;
- SidebarSelectableEntry* selectable = NULL;
- SidebarTreeEntryWrapper* _tmp6_;
- SidebarEntry* _tmp7_;
- SidebarSelectableEntry* _tmp8_;
- SidebarSelectableEntry* _tmp9_;
- GtkMenu* context_menu = NULL;
- SidebarContextable* _tmp11_;
- GtkMenu* _tmp12_;
- GtkMenu* _tmp13_;
- GtkMenu* _tmp14_;
- GtkWidget* _tmp15_;
-#line 844 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 844 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (path != NULL, FALSE);
-#line 845 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper_at_path (self, path);
-#line 845 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 846 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 846 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 847 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 847 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 847 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5571 "Tree.c"
- }
-#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _tmp2_->entry;
-#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, SIDEBAR_TYPE_CONTEXTABLE) ? ((SidebarContextable*) _tmp3_) : NULL);
-#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- contextable = _tmp4_;
-#line 850 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = contextable;
-#line 850 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_ == NULL) {
-#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (contextable);
-#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5593 "Tree.c"
- }
-#line 854 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = wrapper;
-#line 854 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _tmp6_->entry;
-#line 854 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, SIDEBAR_TYPE_SELECTABLE_ENTRY) ? ((SidebarSelectableEntry*) _tmp7_) : NULL);
-#line 854 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selectable = _tmp8_;
-#line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = selectable;
-#line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp9_ != NULL) {
-#line 5607 "Tree.c"
- SidebarSelectableEntry* _tmp10_;
-#line 856 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = selectable;
-#line 856 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_ENTRY_SELECTED_SIGNAL], 0, _tmp10_);
-#line 5613 "Tree.c"
- }
-#line 858 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = contextable;
-#line 858 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = sidebar_contextable_get_sidebar_context_menu (_tmp11_, event);
-#line 858 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- context_menu = _tmp12_;
-#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = context_menu;
-#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp13_ == NULL) {
-#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (context_menu);
-#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selectable);
-#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (contextable);
-#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5637 "Tree.c"
- }
-#line 862 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = context_menu;
-#line 862 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = gtk_menu_get_attach_widget (_tmp14_);
-#line 862 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp15_ == NULL) {
-#line 5645 "Tree.c"
- GtkMenu* _tmp16_;
-#line 863 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = context_menu;
-#line 863 "/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 5651 "Tree.c"
- }
-#line 866 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (event != NULL) {
-#line 5655 "Tree.c"
- GtkMenu* _tmp17_;
- guint _tmp18_;
- guint32 _tmp19_;
-#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = context_menu;
-#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = event->button;
-#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = event->time;
-#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_menu_popup (_tmp17_, NULL, NULL, NULL, NULL, _tmp18_, _tmp19_);
-#line 5667 "Tree.c"
- } else {
- GtkMenu* _tmp20_;
-#line 869 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = context_menu;
-#line 869 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_menu_popup (_tmp20_, NULL, NULL, NULL, NULL, (guint) 0, gtk_get_current_event_time ());
-#line 5674 "Tree.c"
- }
-#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (context_menu);
-#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selectable);
-#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (contextable);
-#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5688 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_popup_default_context_menu (SidebarTree* self,
- GdkEventButton* event)
-{
- gboolean result = FALSE;
- GtkMenu* _tmp0_;
- guint _tmp1_;
- guint32 _tmp2_;
-#line 874 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 874 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 875 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->default_context_menu;
-#line 875 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = event->button;
-#line 875 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = event->time;
-#line 875 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_menu_popup (_tmp0_, NULL, NULL, NULL, NULL, _tmp1_, _tmp2_);
-#line 876 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 876 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5716 "Tree.c"
-}
-
-
-gboolean
-sidebar_tree_on_toggle_row (SidebarTree* self,
- GtkTreeIter* iter,
- GtkTreePath* path)
-{
- gboolean result = FALSE;
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreeIter _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
- gboolean should_allow_toggle = FALSE;
- gboolean _tmp3_;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp13_;
-#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (iter != NULL, FALSE);
-#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (path != NULL, FALSE);
-#line 881 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = *iter;
-#line 881 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp0_);
-#line 881 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp1_;
-#line 882 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 882 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ == NULL) {
-#line 883 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 883 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 883 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5757 "Tree.c"
- }
-#line 887 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = self->priv->expander_called_manually;
-#line 887 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- should_allow_toggle = _tmp3_;
-#line 890 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->expander_called_manually = FALSE;
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (gtk_tree_view_row_expanded (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), path)) {
-#line 5767 "Tree.c"
- GtkTreeStore* _tmp6_;
- GtkTreeIter _tmp7_;
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = self->priv->store;
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = *iter;
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = gtk_tree_model_iter_has_child (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp7_);
-#line 5776 "Tree.c"
- } else {
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = FALSE;
-#line 5780 "Tree.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_) {
-#line 5784 "Tree.c"
- SidebarTreeEntryWrapper* _tmp8_;
- SidebarEntry* _tmp9_;
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = wrapper;
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = _tmp8_->entry;
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, SIDEBAR_TYPE_SELECTABLE_ENTRY);
-#line 5793 "Tree.c"
- } else {
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = FALSE;
-#line 5797 "Tree.c"
- }
-#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp4_) {
-#line 5801 "Tree.c"
- gint _tmp10_;
- gint _tmp11_;
-#line 895 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = self->priv->expander_special_count;
-#line 895 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->expander_special_count = _tmp10_ + 1;
-#line 896 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->expander_special_count;
-#line 896 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp11_ == 1) {
-#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5818 "Tree.c"
- } else {
- gboolean _tmp12_;
-#line 901 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = should_allow_toggle;
-#line 901 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- should_allow_toggle = !_tmp12_;
-#line 5825 "Tree.c"
- }
- } else {
-#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->expander_special_count = 0;
-#line 5830 "Tree.c"
- }
-#line 908 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = should_allow_toggle;
-#line 908 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp13_) {
-#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5842 "Tree.c"
- }
-#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5850 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_real_button_press_event (GtkWidget* base,
- GdkEventButton* event)
-{
- SidebarTree * self;
- gboolean result = FALSE;
- GtkTreePath* path = NULL;
- GtkTreePath* _tmp0_;
- gboolean _tmp1_ = FALSE;
- GtkTreePath* _tmp2_;
- gboolean _tmp4_ = FALSE;
- guint _tmp5_;
-#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree);
-#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_path_from_event (self, event);
-#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp0_;
-#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = path;
-#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ == NULL) {
-#line 5878 "Tree.c"
- guint _tmp3_;
-#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = event->button;
-#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = _tmp3_ != ((guint) 3);
-#line 5884 "Tree.c"
- } else {
-#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = FALSE;
-#line 5888 "Tree.c"
- }
-#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_) {
-#line 920 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 920 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 920 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5898 "Tree.c"
- }
-#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = event->button;
-#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_ == ((guint) 3)) {
-#line 5904 "Tree.c"
- GdkEventType _tmp6_;
-#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = event->type;
-#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp6_ == GDK_BUTTON_PRESS;
-#line 5910 "Tree.c"
- } else {
-#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = FALSE;
-#line 5914 "Tree.c"
- }
-#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp4_) {
-#line 5918 "Tree.c"
- GtkTreePath* _tmp7_;
-#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = path;
-#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp7_ != NULL) {
-#line 5924 "Tree.c"
- GtkTreePath* _tmp8_;
-#line 926 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = path;
-#line 926 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_popup_context_menu (self, _tmp8_, event);
-#line 5930 "Tree.c"
- } else {
-#line 928 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_popup_default_context_menu (self, event);
-#line 5934 "Tree.c"
- }
- } else {
- gboolean _tmp9_ = FALSE;
- guint _tmp10_;
-#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = event->button;
-#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp10_ == ((guint) 1)) {
-#line 5943 "Tree.c"
- GdkEventType _tmp11_;
-#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = event->type;
-#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = _tmp11_ == GDK_BUTTON_PRESS;
-#line 5949 "Tree.c"
- } else {
-#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = FALSE;
-#line 5953 "Tree.c"
- }
-#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp9_) {
-#line 5957 "Tree.c"
- GtkTreePath* _tmp12_;
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreePath* _tmp13_;
- SidebarTreeEntryWrapper* _tmp14_;
- SidebarTreeEntryWrapper* _tmp15_;
- gboolean _tmp16_ = FALSE;
- SidebarTreeEntryWrapper* _tmp17_;
- SidebarEntry* _tmp18_;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_ = FALSE;
- GtkTreeRowReference* _tmp24_;
- gboolean _tmp33_ = FALSE;
- SidebarTreeEntryWrapper* _tmp34_;
- SidebarEntry* _tmp35_;
- GtkTreeStore* _tmp39_;
- GtkTreePath* _tmp40_;
- GtkTreeRowReference* _tmp41_;
-#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = path;
-#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp12_ == NULL) {
-#line 931 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreeRowReference_free0 (self->priv->old_path_ref);
-#line 931 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->old_path_ref = NULL;
-#line 932 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = 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), event);
-#line 932 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 932 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 5989 "Tree.c"
- }
-#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = path;
-#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = sidebar_tree_get_wrapper_at_path (self, _tmp13_);
-#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp14_;
-#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = wrapper;
-#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp15_ == NULL) {
-#line 938 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreeRowReference_free0 (self->priv->old_path_ref);
-#line 938 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->old_path_ref = NULL;
-#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = 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), event);
-#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6013 "Tree.c"
- }
-#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = wrapper;
-#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = _tmp17_->entry;
-#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, SIDEBAR_TYPE_EXPANDABLE_ENTRY)) {
-#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = TRUE;
-#line 6023 "Tree.c"
- } else {
- SidebarTreeEntryWrapper* _tmp19_;
- SidebarEntry* _tmp20_;
-#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = wrapper;
-#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = _tmp19_->entry;
-#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY);
-#line 6033 "Tree.c"
- }
-#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp16_) {
-#line 6037 "Tree.c"
- GtkTreePath* _tmp21_;
-#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp21_ = path;
-#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_toggle_branch_expansion (self, _tmp21_, FALSE);
-#line 6043 "Tree.c"
- }
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = self->priv->old_path_ref;
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp24_ != NULL) {
-#line 6049 "Tree.c"
- GtkTreeRowReference* _tmp25_;
- GtkTreePath* _tmp26_;
- GtkTreePath* _tmp27_;
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp25_ = self->priv->old_path_ref;
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp26_ = gtk_tree_row_reference_get_path (_tmp25_);
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp27_ = _tmp26_;
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp23_ = _tmp27_ != NULL;
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp27_);
-#line 6063 "Tree.c"
- } else {
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp23_ = FALSE;
-#line 6067 "Tree.c"
- }
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp23_) {
-#line 6071 "Tree.c"
- GtkTreeRowReference* _tmp28_;
- GtkTreePath* _tmp29_;
- GtkTreePath* _tmp30_;
- GtkTreePath* _tmp31_;
-#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp28_ = self->priv->old_path_ref;
-#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp29_ = gtk_tree_row_reference_get_path (_tmp28_);
-#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp30_ = _tmp29_;
-#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp31_ = path;
-#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = gtk_tree_path_compare (_tmp30_, _tmp31_) == 0;
-#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp30_);
-#line 6088 "Tree.c"
- } else {
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = FALSE;
-#line 6092 "Tree.c"
- }
-#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp22_) {
-#line 6096 "Tree.c"
- GtkCellRendererText* _tmp32_;
-#line 954 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp32_ = self->priv->text_renderer;
-#line 954 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp32_, "editable", FALSE, NULL);
-#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = 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), event);
-#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6110 "Tree.c"
- }
-#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp34_ = wrapper;
-#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp35_ = _tmp34_->entry;
-#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, SIDEBAR_TYPE_RENAMEABLE_ENTRY)) {
-#line 6118 "Tree.c"
- SidebarTreeEntryWrapper* _tmp36_;
- SidebarEntry* _tmp37_;
-#line 961 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp36_ = wrapper;
-#line 961 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp37_ = _tmp36_->entry;
-#line 961 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp33_ = sidebar_renameable_entry_is_user_renameable (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry));
-#line 6127 "Tree.c"
- } else {
-#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp33_ = FALSE;
-#line 6131 "Tree.c"
- }
-#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp33_) {
-#line 6135 "Tree.c"
- GtkCellRendererText* _tmp38_;
-#line 962 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp38_ = self->priv->text_renderer;
-#line 962 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp38_, "editable", TRUE, NULL);
-#line 6141 "Tree.c"
- }
-#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp39_ = self->priv->store;
-#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp40_ = path;
-#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp41_ = gtk_tree_row_reference_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_tree_model_get_type (), GtkTreeModel), _tmp40_);
-#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreeRowReference_free0 (self->priv->old_path_ref);
-#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->old_path_ref = _tmp41_;
-#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 6155 "Tree.c"
- }
- }
-#line 969 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = 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), event);
-#line 969 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 969 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6164 "Tree.c"
-}
-
-
-gboolean
-sidebar_tree_is_keypress_interpreted (SidebarTree* self,
- GdkEventKey* event)
-{
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- GQuark _tmp4_ = 0U;
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- static GQuark _tmp3_label0 = 0;
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- static GQuark _tmp3_label1 = 0;
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- static GQuark _tmp3_label2 = 0;
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- static GQuark _tmp3_label3 = 0;
-#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = event->keyval;
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _tmp1_;
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if ((((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("F2")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("Delete"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("Return"))))) || (_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("KP_Enter"))))) {
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- switch (0) {
-#line 6201 "Tree.c"
- default:
- {
-#line 978 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 978 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6208 "Tree.c"
- }
- }
- } else {
-#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- switch (0) {
-#line 6214 "Tree.c"
- default:
- {
-#line 981 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 981 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6221 "Tree.c"
- }
- }
- }
-}
-
-
-static gboolean
-sidebar_tree_real_key_press_event (GtkWidget* base,
- GdkEventKey* event)
-{
- SidebarTree * self;
- gboolean result = FALSE;
- guint _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- GQuark _tmp4_ = 0U;
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- static GQuark _tmp3_label0 = 0;
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- static GQuark _tmp3_label1 = 0;
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- static GQuark _tmp3_label2 = 0;
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- static GQuark _tmp3_label3 = 0;
-#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree);
-#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = event->keyval;
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gdk_keyval_name (_tmp0_);
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _tmp1_;
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if ((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("Return")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("KP_Enter"))))) {
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- switch (0) {
-#line 6262 "Tree.c"
- default:
- {
- GtkTreePath* path = NULL;
- GtkTreePath* _tmp5_;
- GtkTreePath* _tmp6_;
-#line 989 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = sidebar_tree_get_current_path (self);
-#line 989 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp5_;
-#line 990 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = path;
-#line 990 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp6_ != NULL) {
-#line 6276 "Tree.c"
- GtkTreePath* _tmp7_;
-#line 991 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = path;
-#line 991 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_toggle_branch_expansion (self, _tmp7_, FALSE);
-#line 6282 "Tree.c"
- }
-#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6290 "Tree.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("F2")))) {
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- switch (0) {
-#line 6296 "Tree.c"
- default:
- {
-#line 996 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = sidebar_tree_rename_in_place (self);
-#line 996 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6303 "Tree.c"
- }
- }
- } else if (_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("Delete")))) {
-#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- switch (0) {
-#line 6309 "Tree.c"
- default:
- {
- GtkTreePath* path = NULL;
- GtkTreePath* _tmp8_;
- gboolean _tmp9_ = FALSE;
- GtkTreePath* _tmp10_;
-#line 999 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = sidebar_tree_get_current_path (self);
-#line 999 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp8_;
-#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = path;
-#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp10_ != NULL) {
-#line 6324 "Tree.c"
- GtkTreePath* _tmp11_;
-#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = path;
-#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = sidebar_tree_destroy_path (self, _tmp11_);
-#line 6330 "Tree.c"
- } else {
-#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = FALSE;
-#line 6334 "Tree.c"
- }
-#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = _tmp9_;
-#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6342 "Tree.c"
- }
- }
- }
-#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = 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), event);
-#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6350 "Tree.c"
-}
-
-
-gboolean
-sidebar_tree_rename_entry_in_place (SidebarTree* self,
- SidebarEntry* entry)
-{
- gboolean result = FALSE;
-#line 1007 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 1007 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 1008 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!sidebar_tree_expand_to_entry (self, entry)) {
-#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6369 "Tree.c"
- }
-#line 1011 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!sidebar_tree_place_cursor (self, entry, FALSE)) {
-#line 1012 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1012 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6377 "Tree.c"
- }
-#line 1014 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = sidebar_tree_rename_in_place (self);
-#line 1014 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6383 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_rename_in_place (SidebarTree* self)
-{
- gboolean result = FALSE;
- GtkTreePath* cursor_path = NULL;
- GtkTreeViewColumn* cursor_column = NULL;
- GtkTreePath* _tmp0_ = NULL;
- GtkTreeViewColumn* _tmp1_ = NULL;
- GtkTreeViewColumn* _tmp2_;
- GtkTreePath* _tmp3_;
-#line 1017 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 1020 "/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 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (cursor_path);
-#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- cursor_path = _tmp0_;
-#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (cursor_column);
-#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- cursor_column = _tmp2_;
-#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = cursor_path;
-#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (sidebar_tree_can_rename_path (self, _tmp3_)) {
-#line 6415 "Tree.c"
- GtkTreePath* _tmp4_;
- GtkTreeViewColumn* _tmp5_;
- GtkCellRendererText* _tmp6_;
-#line 1023 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = cursor_path;
-#line 1023 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = cursor_column;
-#line 1023 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = self->priv->text_renderer;
-#line 1023 "/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), _tmp4_, _tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE);
-#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (cursor_column);
-#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (cursor_path);
-#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6435 "Tree.c"
- }
-#line 1028 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1028 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (cursor_column);
-#line 1028 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (cursor_path);
-#line 1028 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6445 "Tree.c"
-}
-
-
-gboolean
-sidebar_tree_scroll_to_entry (SidebarTree* self,
- SidebarEntry* entry)
-{
- gboolean result = FALSE;
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
- GtkTreePath* _tmp3_;
- GtkTreePath* _tmp4_;
-#line 1031 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 1031 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE);
-#line 1032 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper (self, entry);
-#line 1032 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 1033 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 1033 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 1034 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1034 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1034 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6478 "Tree.c"
- }
-#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_entry_wrapper_get_path (_tmp2_);
-#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 1036 "/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), _tmp4_, NULL, FALSE, (gfloat) 0, (gfloat) 0);
-#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp4_);
-#line 1038 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 1038 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1038 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6496 "Tree.c"
-}
-
-
-static void
-sidebar_tree_real_drag_data_get (GtkWidget* base,
- GdkDragContext* context,
- GtkSelectionData* selection_data,
- guint info,
- guint time)
-{
- SidebarTree * self;
- SidebarInternalDragSourceEntry* drag_source = NULL;
- SidebarEntry* _tmp0_;
- SidebarInternalDragSourceEntry* _tmp6_;
- SidebarInternalDragSourceEntry* _tmp16_;
-#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree);
-#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (selection_data != NULL);
-#line 1043 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- drag_source = NULL;
-#line 1045 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->internal_drag_source_entry;
-#line 1045 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp0_ != NULL) {
-#line 6524 "Tree.c"
- SidebarSelectableEntry* selectable = NULL;
- SidebarEntry* _tmp1_;
- SidebarSelectableEntry* _tmp2_;
- SidebarSelectableEntry* _tmp3_;
-#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->internal_drag_source_entry;
-#line 1046 "/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 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selectable = _tmp2_;
-#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = selectable;
-#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp3_ == NULL) {
-#line 6539 "Tree.c"
- SidebarEntry* _tmp4_;
- SidebarInternalDragSourceEntry* _tmp5_;
-#line 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = self->priv->internal_drag_source_entry;
-#line 1049 "/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 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (drag_source);
-#line 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- drag_source = _tmp5_;
-#line 6550 "Tree.c"
- }
-#line 1045 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (selectable);
-#line 6554 "Tree.c"
- }
-#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = drag_source;
-#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp6_ == NULL) {
-#line 6560 "Tree.c"
- GtkTreePath* selected_path = NULL;
- GtkTreePath* _tmp7_;
- GtkTreePath* _tmp8_;
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreePath* _tmp9_;
- SidebarTreeEntryWrapper* _tmp10_;
- SidebarTreeEntryWrapper* _tmp11_;
- SidebarTreeEntryWrapper* _tmp12_;
- SidebarEntry* _tmp13_;
- SidebarInternalDragSourceEntry* _tmp14_;
- SidebarInternalDragSourceEntry* _tmp15_;
-#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = sidebar_tree_get_selected_path (self);
-#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- selected_path = _tmp7_;
-#line 1055 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = selected_path;
-#line 1055 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp8_ == NULL) {
-#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (selected_path);
-#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (drag_source);
-#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 6586 "Tree.c"
- }
-#line 1058 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = selected_path;
-#line 1058 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = sidebar_tree_get_wrapper_at_path (self, _tmp9_);
-#line 1058 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp10_;
-#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = wrapper;
-#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp11_ == NULL) {
-#line 1060 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1060 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (selected_path);
-#line 1060 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (drag_source);
-#line 1060 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 6606 "Tree.c"
- }
-#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = wrapper;
-#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = _tmp12_->entry;
-#line 1062 "/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 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (drag_source);
-#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- drag_source = _tmp14_;
-#line 1063 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = drag_source;
-#line 1063 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp15_ == NULL) {
-#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (selected_path);
-#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (drag_source);
-#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 6630 "Tree.c"
- }
-#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (selected_path);
-#line 6636 "Tree.c"
- }
-#line 1067 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = drag_source;
-#line 1067 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_internal_drag_source_entry_prepare_selection_data (_tmp16_, selection_data);
-#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (drag_source);
-#line 6644 "Tree.c"
-}
-
-
-static void
-sidebar_tree_real_drag_data_received (GtkWidget* base,
- GdkDragContext* context,
- gint x,
- gint y,
- GtkSelectionData* selection_data,
- guint info,
- guint time)
-{
- SidebarTree * self;
- GtkTreePath* path = NULL;
- GtkTreeViewDropPosition pos = 0;
- GtkTreePath* _tmp0_ = NULL;
- GtkTreeViewDropPosition _tmp1_ = 0;
- gboolean _tmp2_;
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreePath* _tmp5_;
- SidebarTreeEntryWrapper* _tmp6_;
- GtkWidget* _tmp7_;
- SidebarTreeEntryWrapper* _tmp13_;
- SidebarInternalDropTargetEntry* targetable = NULL;
- SidebarTreeEntryWrapper* _tmp14_;
- SidebarEntry* _tmp15_;
- SidebarInternalDropTargetEntry* _tmp16_;
- SidebarInternalDropTargetEntry* _tmp17_;
- gboolean success = FALSE;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gboolean _tmp20_;
- gboolean _tmp31_;
-#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree);
-#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (selection_data != NULL);
-#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = gtk_tree_view_get_dest_row_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), x, y, &_tmp0_, &_tmp1_);
-#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp0_;
-#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- pos = _tmp1_;
-#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!_tmp2_) {
-#line 6694 "Tree.c"
- GtkWidget* _tmp3_;
-#line 1077 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = gtk_drag_get_source_widget (context);
-#line 1077 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp3_ == NULL) {
-#line 6700 "Tree.c"
- SidebarTreeExternalDropHandler _tmp4_;
- void* _tmp4__target;
-#line 1078 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = self->priv->drop_handler;
-#line 1078 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4__target = self->priv->drop_handler_target;
-#line 1078 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ (context, NULL, selection_data, info, time, _tmp4__target);
-#line 6709 "Tree.c"
- } else {
-#line 1080 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_drag_finish (context, FALSE, FALSE, (guint32) time);
-#line 6713 "Tree.c"
- }
-#line 1082 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1082 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 6719 "Tree.c"
- }
-#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = path;
-#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = sidebar_tree_get_wrapper_at_path (self, _tmp5_);
-#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp6_;
-#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = gtk_drag_get_source_widget (context);
-#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp7_ == NULL) {
-#line 6731 "Tree.c"
- SidebarEntry* _tmp8_ = NULL;
- SidebarTreeEntryWrapper* _tmp9_;
- SidebarTreeExternalDropHandler _tmp12_;
- void* _tmp12__target;
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = wrapper;
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp9_ != NULL) {
-#line 6740 "Tree.c"
- SidebarTreeEntryWrapper* _tmp10_;
- SidebarEntry* _tmp11_;
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = wrapper;
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = _tmp10_->entry;
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = _tmp11_;
-#line 6749 "Tree.c"
- } else {
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = NULL;
-#line 6753 "Tree.c"
- }
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = self->priv->drop_handler;
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12__target = self->priv->drop_handler_target;
-#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ (context, _tmp8_, selection_data, info, time, _tmp12__target);
-#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 6767 "Tree.c"
- }
-#line 1097 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = wrapper;
-#line 1097 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp13_ == NULL) {
-#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_drag_finish (context, FALSE, FALSE, (guint32) time);
-#line 1100 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1100 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1100 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 6781 "Tree.c"
- }
-#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp14_ = wrapper;
-#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = _tmp14_->entry;
-#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY) ? ((SidebarInternalDropTargetEntry*) _tmp15_) : NULL);
-#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- targetable = _tmp16_;
-#line 1104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp17_ = targetable;
-#line 1104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp17_ == NULL) {
-#line 1105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_drag_finish (context, FALSE, FALSE, (guint32) time);
-#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (targetable);
-#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 6805 "Tree.c"
- }
-#line 1110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- success = FALSE;
-#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp18_ = gdk_atom_name (gtk_selection_data_get_data_type (selection_data));
-#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp19_ = _tmp18_;
-#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp20_ = g_strcmp0 (_tmp19_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0;
-#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_free0 (_tmp19_);
-#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp20_) {
-#line 6819 "Tree.c"
- SidebarInternalDropTargetEntry* _tmp21_;
-#line 1113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp21_ = targetable;
-#line 1113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- success = sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (_tmp21_, selection_data);
-#line 6825 "Tree.c"
- } else {
- GeeList* media = NULL;
- guint8* _tmp22_;
- GeeList* _tmp23_;
- gboolean _tmp24_ = FALSE;
- GeeList* _tmp25_;
-#line 1115 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp22_ = gtk_selection_data_get_data (selection_data);
-#line 1115 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp23_ = unserialize_media_sources (_tmp22_, gtk_selection_data_get_length (selection_data));
-#line 1115 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- media = _tmp23_;
-#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp25_ = media;
-#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp25_ != NULL) {
-#line 6842 "Tree.c"
- GeeList* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
-#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp26_ = media;
-#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp28_ = _tmp27_;
-#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = _tmp28_ > 0;
-#line 6854 "Tree.c"
- } else {
-#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp24_ = FALSE;
-#line 6858 "Tree.c"
- }
-#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp24_) {
-#line 6862 "Tree.c"
- SidebarInternalDropTargetEntry* _tmp29_;
- GeeList* _tmp30_;
-#line 1118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp29_ = targetable;
-#line 1118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp30_ = media;
-#line 1118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- success = sidebar_internal_drop_target_entry_internal_drop_received (_tmp29_, _tmp30_);
-#line 6871 "Tree.c"
- }
-#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (media);
-#line 6875 "Tree.c"
- }
-#line 1121 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp31_ = success;
-#line 1121 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_drag_finish (context, _tmp31_, FALSE, (guint32) time);
-#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (targetable);
-#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 6887 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_real_drag_motion (GtkWidget* base,
- GdkDragContext* context,
- gint x,
- gint y,
- guint time)
-{
- SidebarTree * self;
- gboolean result = FALSE;
- GtkTreePath* path = NULL;
- GtkTreeViewDropPosition pos = 0;
- gboolean has_dest = FALSE;
- GtkTreePath* _tmp0_ = NULL;
- GtkTreeViewDropPosition _tmp1_ = 0;
- gboolean _tmp2_;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_;
-#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree);
-#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE);
-#line 1126 "/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), context, x, y, time);
-#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = gtk_tree_view_get_dest_row_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), x, y, &_tmp0_, &_tmp1_);
-#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- path = _tmp0_;
-#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- pos = _tmp1_;
-#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- has_dest = _tmp2_;
-#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = has_dest;
-#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (!_tmp4_) {
-#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = TRUE;
-#line 6930 "Tree.c"
- } else {
- GtkTreeViewDropPosition _tmp5_;
-#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = pos;
-#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _tmp5_ == GTK_TREE_VIEW_DROP_BEFORE;
-#line 6937 "Tree.c"
- }
-#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp3_) {
-#line 6941 "Tree.c"
- GtkTreePath* _tmp6_;
-#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = path;
-#line 1134 "/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), _tmp6_, GTK_TREE_VIEW_DROP_INTO_OR_BEFORE);
-#line 6947 "Tree.c"
- } else {
- GtkTreeViewDropPosition _tmp7_;
-#line 1135 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = pos;
-#line 1135 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp7_ == GTK_TREE_VIEW_DROP_AFTER) {
-#line 6954 "Tree.c"
- GtkTreePath* _tmp8_;
-#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = path;
-#line 1136 "/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), _tmp8_, GTK_TREE_VIEW_DROP_INTO_OR_AFTER);
-#line 6960 "Tree.c"
- }
- }
-#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gdk_drag_status (context, gdk_drag_context_get_suggested_action (context), (guint32) time);
-#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = has_dest;
-#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (path);
-#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 6971 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_can_rename_path (SidebarTree* self,
- GtkTreePath* path)
-{
- gboolean result = FALSE;
- gint _tmp0_;
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarTreeEntryWrapper* _tmp2_;
- SidebarRenameableEntry* renameable = NULL;
- SidebarTreeEntryWrapper* _tmp3_;
- SidebarEntry* _tmp4_;
- SidebarRenameableEntry* _tmp5_;
- SidebarRenameableEntry* _tmp6_;
- SidebarTreeEntryWrapper* _tmp7_;
- SidebarEntry* _tmp8_;
- GtkTreeSelection* _tmp9_;
-#line 1144 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 1144 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (path != NULL, FALSE);
-#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->editing_disabled;
-#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp0_ > 0) {
-#line 1146 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1146 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7004 "Tree.c"
- }
-#line 1148 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = sidebar_tree_get_wrapper_at_path (self, path);
-#line 1148 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp1_;
-#line 1149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 1149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp2_ == NULL) {
-#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7020 "Tree.c"
- }
-#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = wrapper;
-#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_->entry;
-#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp4_) : NULL);
-#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- renameable = _tmp5_;
-#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = renameable;
-#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp6_ == NULL) {
-#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (renameable);
-#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7042 "Tree.c"
- }
-#line 1156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = wrapper;
-#line 1156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp8_ = _tmp7_->entry;
-#line 1156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, SIDEBAR_TYPE_HEADER)) {
-#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (renameable);
-#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7058 "Tree.c"
- }
-#line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
-#line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- gtk_tree_selection_select_path (_tmp9_, path);
-#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (renameable);
-#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7072 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_destroy_path (SidebarTree* self,
- GtkTreePath* path)
-{
- gboolean result = FALSE;
- SidebarTreeEntryWrapper* wrapper = NULL;
- SidebarTreeEntryWrapper* _tmp0_;
- SidebarTreeEntryWrapper* _tmp1_;
- SidebarDestroyableEntry* destroyable = NULL;
- SidebarTreeEntryWrapper* _tmp2_;
- SidebarEntry* _tmp3_;
- SidebarDestroyableEntry* _tmp4_;
- SidebarDestroyableEntry* _tmp5_;
- SidebarDestroyableEntry* _tmp6_;
-#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (path != NULL, FALSE);
-#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = sidebar_tree_get_wrapper_at_path (self, path);
-#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp0_;
-#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = wrapper;
-#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp1_ == NULL) {
-#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7108 "Tree.c"
- }
-#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = wrapper;
-#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _tmp2_->entry;
-#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, SIDEBAR_TYPE_DESTROYABLE_ENTRY) ? ((SidebarDestroyableEntry*) _tmp3_) : NULL);
-#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- destroyable = _tmp4_;
-#line 1170 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = destroyable;
-#line 1170 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_ == NULL) {
-#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (destroyable);
-#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7130 "Tree.c"
- }
-#line 1173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = destroyable;
-#line 1173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_destroyable_entry_destroy_source (_tmp6_);
-#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = TRUE;
-#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (destroyable);
-#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7144 "Tree.c"
-}
-
-
-static void
-_sidebar_tree_on_editing_done_gtk_cell_editable_editing_done (GtkCellEditable* _sender,
- gpointer self)
-{
-#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_on_editing_done ((SidebarTree*) self);
-#line 7154 "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 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7167 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_editing_started (SidebarTree* self,
- GtkCellEditable* editable,
- const gchar* path)
-{
-#line 1178 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 1178 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (GTK_IS_CELL_EDITABLE (editable));
-#line 1178 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (path != NULL);
-#line 1179 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (editable, gtk_entry_get_type ())) {
-#line 7184 "Tree.c"
- GtkEntry* _tmp0_;
- GtkEntry* _tmp1_;
- GtkEntry* _tmp2_;
- GtkEntry* _tmp3_;
-#line 1180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (editable, gtk_entry_get_type (), GtkEntry));
-#line 1180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->text_entry);
-#line 1180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->text_entry = _tmp0_;
-#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->text_entry;
-#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_cell_editable_get_type (), GtkCellEditable), "editing-done", (GCallback) _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done, self, 0);
-#line 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = self->priv->text_entry;
-#line 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event, self, 0);
-#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = self->priv->text_entry;
-#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp3_, "editable", TRUE, NULL);
-#line 7207 "Tree.c"
- }
-}
-
-
-static void
-sidebar_tree_on_editing_canceled (SidebarTree* self)
-{
- GtkEntry* _tmp0_;
- GtkEntry* _tmp1_;
- guint _tmp2_;
- GtkEntry* _tmp3_;
- guint _tmp4_;
-#line 1187 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 1188 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->text_entry;
-#line 1188 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp0_, "editable", FALSE, NULL);
-#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = self->priv->text_entry;
-#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("editing-done", gtk_cell_editable_get_type (), &_tmp2_, NULL, FALSE);
-#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_cell_editable_get_type (), 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 1191 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = self->priv->text_entry;
-#line 1191 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp4_, NULL, FALSE);
-#line 1191 "/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 7238 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_editing_done (SidebarTree* self)
-{
- GtkEntry* _tmp0_;
- SidebarTreeEntryWrapper* wrapper = NULL;
- GtkTreePath* _tmp1_;
- GtkTreePath* _tmp2_;
- SidebarTreeEntryWrapper* _tmp3_;
- SidebarTreeEntryWrapper* _tmp4_;
- SidebarTreeEntryWrapper* _tmp5_;
- GtkEntry* _tmp13_;
- guint _tmp14_;
- GtkEntry* _tmp15_;
- guint _tmp16_;
-#line 1194 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 1195 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->text_entry;
-#line 1195 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_set (_tmp0_, "editable", FALSE, NULL);
-#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = sidebar_tree_get_current_path (self);
-#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _tmp1_;
-#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = sidebar_tree_get_wrapper_at_path (self, _tmp2_);
-#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp2_);
-#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- wrapper = _tmp4_;
-#line 1198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = wrapper;
-#line 1198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp5_ != NULL) {
-#line 7278 "Tree.c"
- SidebarRenameableEntry* renameable = NULL;
- SidebarTreeEntryWrapper* _tmp6_;
- SidebarEntry* _tmp7_;
- SidebarRenameableEntry* _tmp8_;
- SidebarRenameableEntry* _tmp9_;
-#line 1199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = wrapper;
-#line 1199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp7_ = _tmp6_->entry;
-#line 1199 "/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 1199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- renameable = _tmp8_;
-#line 1200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp9_ = renameable;
-#line 1200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (_tmp9_ != NULL) {
-#line 7296 "Tree.c"
- SidebarRenameableEntry* _tmp10_;
- GtkEntry* _tmp11_;
- const gchar* _tmp12_;
-#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp10_ = renameable;
-#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp11_ = self->priv->text_entry;
-#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp12_ = gtk_entry_get_text (_tmp11_);
-#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_renameable_entry_rename (_tmp10_, _tmp12_);
-#line 7308 "Tree.c"
- }
-#line 1198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (renameable);
-#line 7312 "Tree.c"
- }
-#line 1204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp13_ = self->priv->text_entry;
-#line 1204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("editing-done", gtk_cell_editable_get_type (), &_tmp14_, NULL, FALSE);
-#line 1204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_cell_editable_get_type (), 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 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp15_ = self->priv->text_entry;
-#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp16_, NULL, FALSE);
-#line 1205 "/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 1194 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (wrapper);
-#line 7328 "Tree.c"
-}
-
-
-static gboolean
-sidebar_tree_on_editing_focus_out (SidebarTree* self,
- GdkEventFocus* event)
-{
- gboolean result = FALSE;
-#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE);
-#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (event != NULL, FALSE);
-#line 1212 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = FALSE;
-#line 1212 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7345 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_new_search (SidebarTree* self)
-{
- SavedSearchDialog* _tmp0_;
- SavedSearchDialog* _tmp1_;
-#line 1215 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = saved_search_dialog_new ();
-#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_object_ref_sink (_tmp0_);
-#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = _tmp0_;
-#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- saved_search_dialog_show (_tmp1_);
-#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp1_);
-#line 7366 "Tree.c"
-}
-
-
-static void
-sidebar_tree_on_new_tag (SidebarTree* self)
-{
- NewRootTagCommand* creation_command = NULL;
- NewRootTagCommand* _tmp0_;
- CommandManager* _tmp1_;
- CommandManager* _tmp2_;
- LibraryWindow* _tmp3_;
- LibraryWindow* _tmp4_;
- Tag* _tmp5_;
- Tag* _tmp6_;
-#line 1219 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (self));
-#line 1220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = new_root_tag_command_new ();
-#line 1220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- creation_command = _tmp0_;
-#line 1221 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = app_window_get_command_manager ();
-#line 1221 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = _tmp1_;
-#line 1221 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (creation_command, TYPE_COMMAND, Command));
-#line 1221 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _command_manager_unref0 (_tmp2_);
-#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = library_window_get_app ();
-#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp4_ = _tmp3_;
-#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = new_root_tag_command_get_created_tag (creation_command);
-#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = _tmp5_;
-#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- library_window_rename_tag_in_sidebar (_tmp4_, _tmp6_);
-#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp6_);
-#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (_tmp4_);
-#line 1219 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (creation_command);
-#line 7411 "Tree.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gboolean arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_BOOLEAN callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (n_param_values == 3);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- data1 = closure->data;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- data2 = param_values->data[0].v_pointer;
-#line 7437 "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 7443 "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 7449 "Tree.c"
-}
-
-
-static void
-g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
- GValue * return_value,
- guint n_param_values,
- const GValue * param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
- register GMarshalFunc_VOID__OBJECT_OBJECT callback;
- register GCClosure * cc;
- register gpointer data1;
- register gpointer data2;
- cc = (GCClosure *) closure;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (n_param_values == 3);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- data1 = closure->data;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- data2 = param_values->data[0].v_pointer;
-#line 7475 "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 7481 "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 7487 "Tree.c"
-}
-
-
-static SidebarTreeEntryWrapper*
-sidebar_tree_entry_wrapper_construct (GType object_type,
- GtkTreeModel* model,
- SidebarEntry* entry,
- GtkTreePath* path)
-{
- SidebarTreeEntryWrapper * self = NULL;
- SidebarEntry* _tmp0_;
- GtkTreeRowReference* _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (GTK_IS_TREE_MODEL (model), NULL);
-#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL);
-#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (path != NULL, NULL);
-#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = (SidebarTreeEntryWrapper*) g_object_new (object_type, NULL);
-#line 20 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = _g_object_ref0 (entry);
-#line 20 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->entry);
-#line 20 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->entry = _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gtk_tree_row_reference_new (model, path);
-#line 21 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreeRowReference_free0 (self->row);
-#line 21 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->row = _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return self;
-#line 7522 "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 7533 "Tree.c"
-}
-
-
-static GtkTreePath*
-sidebar_tree_entry_wrapper_get_path (SidebarTreeEntryWrapper* self)
-{
- GtkTreePath* result = NULL;
- GtkTreeRowReference* _tmp0_;
- GtkTreePath* _tmp1_;
-#line 24 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (self), NULL);
-#line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->row;
-#line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gtk_tree_row_reference_get_path (_tmp0_);
-#line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- result = _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return result;
-#line 7553 "Tree.c"
-}
-
-
-static void
-sidebar_tree_entry_wrapper_get_iter (SidebarTreeEntryWrapper* self,
- GtkTreeIter* result)
-{
- GtkTreeIter iter = {0};
- gboolean valid = FALSE;
- GtkTreeRowReference* _tmp0_;
- GtkTreeModel* _tmp1_;
- GtkTreePath* _tmp2_;
- GtkTreePath* _tmp3_;
- GtkTreeIter _tmp4_ = {0};
- gboolean _tmp5_;
- gboolean _tmp6_;
-#line 28 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (self));
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->row;
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gtk_tree_row_reference_get_model (_tmp0_);
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = sidebar_tree_entry_wrapper_get_path (self);
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = _tmp2_;
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp5_ = gtk_tree_model_get_iter (_tmp1_, &_tmp4_, _tmp3_);
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- iter = _tmp4_;
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp6_ = _tmp5_;
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreePath_free0 (_tmp3_);
-#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- valid = _tmp6_;
-#line 31 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _vala_assert (valid, "valid");
-#line 33 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- *result = iter;
-#line 33 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return;
-#line 7596 "Tree.c"
-}
-
-
-static void
-sidebar_tree_entry_wrapper_class_init (SidebarTreeEntryWrapperClass * klass)
-{
-#line 15 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- 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 7607 "Tree.c"
-}
-
-
-static void
-sidebar_tree_entry_wrapper_instance_init (SidebarTreeEntryWrapper * self)
-{
-}
-
-
-static void
-sidebar_tree_entry_wrapper_finalize (GObject * obj)
-{
- SidebarTreeEntryWrapper * self;
-#line 15 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapper);
-#line 16 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->entry);
-#line 17 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreeRowReference_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 7629 "Tree.c"
-}
-
-
-static GType
-sidebar_tree_entry_wrapper_get_type (void)
-{
- static volatile gsize sidebar_tree_entry_wrapper_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_tree_entry_wrapper_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarTreeEntryWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_tree_entry_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarTreeEntryWrapper), 0, (GInstanceInitFunc) sidebar_tree_entry_wrapper_instance_init, NULL };
- GType sidebar_tree_entry_wrapper_type_id;
- sidebar_tree_entry_wrapper_type_id = g_type_register_static (G_TYPE_OBJECT, "SidebarTreeEntryWrapper", &g_define_type_info, 0);
- g_once_init_leave (&sidebar_tree_entry_wrapper_type_id__volatile, sidebar_tree_entry_wrapper_type_id);
- }
- return sidebar_tree_entry_wrapper_type_id__volatile;
-}
-
-
-static SidebarTreeRootWrapper*
-sidebar_tree_root_wrapper_construct (GType object_type,
- GtkTreeModel* model,
- SidebarEntry* entry,
- GtkTreePath* path,
- gint root_position)
-{
- SidebarTreeRootWrapper * self = NULL;
-#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (GTK_IS_TREE_MODEL (model), NULL);
-#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL);
-#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_return_val_if_fail (path != NULL, NULL);
-#line 41 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = (SidebarTreeRootWrapper*) sidebar_tree_entry_wrapper_construct (object_type, model, entry, path);
-#line 43 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->root_position = root_position;
-#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- return self;
-#line 7667 "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 7679 "Tree.c"
-}
-
-
-static void
-sidebar_tree_root_wrapper_class_init (SidebarTreeRootWrapperClass * klass)
-{
-#line 37 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- 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 7690 "Tree.c"
-}
-
-
-static void
-sidebar_tree_root_wrapper_instance_init (SidebarTreeRootWrapper * self)
-{
-}
-
-
-static void
-sidebar_tree_root_wrapper_finalize (GObject * obj)
-{
- SidebarTreeRootWrapper * self;
-#line 37 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- 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 7708 "Tree.c"
-}
-
-
-static GType
-sidebar_tree_root_wrapper_get_type (void)
-{
- static volatile gsize sidebar_tree_root_wrapper_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_tree_root_wrapper_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarTreeRootWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_tree_root_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarTreeRootWrapper), 0, (GInstanceInitFunc) sidebar_tree_root_wrapper_instance_init, NULL };
- GType sidebar_tree_root_wrapper_type_id;
- sidebar_tree_root_wrapper_type_id = g_type_register_static (SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, "SidebarTreeRootWrapper", &g_define_type_info, 0);
- g_once_init_leave (&sidebar_tree_root_wrapper_type_id__volatile, sidebar_tree_root_wrapper_type_id);
- }
- return sidebar_tree_root_wrapper_type_id__volatile;
-}
-
-
-static void
-sidebar_tree_class_init (SidebarTreeClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_type_class_add_private (klass, sizeof (SidebarTreePrivate));
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- ((SidebarTreeClass *) klass)->accept_cursor_changed = (gboolean (*) (SidebarTree *)) sidebar_tree_real_accept_cursor_changed;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- ((GtkTreeViewClass *) klass)->cursor_changed = (void (*) (GtkTreeView *)) sidebar_tree_real_cursor_changed;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) sidebar_tree_real_button_press_event;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) sidebar_tree_real_key_press_event;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- ((GtkWidgetClass *) klass)->drag_data_get = (void (*) (GtkWidget *, GdkDragContext*, GtkSelectionData*, guint, guint)) sidebar_tree_real_drag_data_get;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- ((GtkWidgetClass *) klass)->drag_data_received = (void (*) (GtkWidget *, GdkDragContext*, gint, gint, GtkSelectionData*, guint, guint)) sidebar_tree_real_drag_data_received;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- ((GtkWidgetClass *) klass)->drag_motion = (gboolean (*) (GtkWidget *, GdkDragContext*, gint, gint, guint)) sidebar_tree_real_drag_motion;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- G_OBJECT_CLASS (klass)->finalize = sidebar_tree_finalize;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_signals[SIDEBAR_TREE_ENTRY_SELECTED_SIGNAL] = g_signal_new ("entry-selected", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_SELECTABLE_ENTRY);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_signals[SIDEBAR_TREE_SELECTED_ENTRY_REMOVED_SIGNAL] = g_signal_new ("selected-entry-removed", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_SELECTABLE_ENTRY);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_signals[SIDEBAR_TREE_BRANCH_ADDED_SIGNAL] = g_signal_new ("branch-added", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_BRANCH);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_signals[SIDEBAR_TREE_BRANCH_REMOVED_SIGNAL] = g_signal_new ("branch-removed", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_BRANCH);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_signals[SIDEBAR_TREE_BRANCH_SHOWN_SIGNAL] = g_signal_new ("branch-shown", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN, G_TYPE_NONE, 2, SIDEBAR_TYPE_BRANCH, G_TYPE_BOOLEAN);
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- sidebar_tree_signals[SIDEBAR_TREE_PAGE_CREATED_SIGNAL] = 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"
- sidebar_tree_signals[SIDEBAR_TREE_DESTROYING_PAGE_SIGNAL] = 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 7763 "Tree.c"
-}
-
-
-static void
-sidebar_tree_instance_init (SidebarTree * self)
-{
- GtkTreeStore* _tmp0_;
- GtkBuilder* _tmp1_;
- GeeHashMap* _tmp2_;
- GeeHashMap* _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv = SIDEBAR_TREE_GET_PRIVATE (self);
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = gtk_tree_store_new ((gint) SIDEBAR_TREE_COLUMNS_N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, g_icon_get_type ());
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->store = _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp1_ = gtk_builder_new ();
-#line 62 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->builder = _tmp1_;
-#line 65 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->text_entry = NULL;
-#line 66 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = gee_hash_map_new (SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 66 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->entry_map = _tmp2_;
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp3_ = gee_hash_map_new (SIDEBAR_TYPE_BRANCH, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->branches = _tmp3_;
-#line 69 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->editing_disabled = 0;
-#line 70 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->mask_entry_selected_signal = FALSE;
-#line 71 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->selected_wrapper = NULL;
-#line 72 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->default_context_menu = NULL;
-#line 73 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->expander_called_manually = FALSE;
-#line 74 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->expander_special_count = 0;
-#line 75 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->is_internal_drag_in_progress = FALSE;
-#line 76 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->internal_drag_source_entry = NULL;
-#line 77 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self->priv->old_path_ref = NULL;
-#line 7812 "Tree.c"
-}
-
-
-static void
-sidebar_tree_finalize (GObject * obj)
-{
- SidebarTree * self;
- GtkCellRendererText* _tmp0_;
- guint _tmp1_;
- GtkCellRendererText* _tmp2_;
- guint _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_TREE, SidebarTree);
-#line 155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp0_ = self->priv->text_renderer;
-#line 155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("editing-canceled", gtk_cell_renderer_get_type (), &_tmp1_, NULL, FALSE);
-#line 155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_cell_renderer_get_type (), GtkCellRenderer), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _sidebar_tree_on_editing_canceled_gtk_cell_renderer_editing_canceled, self);
-#line 156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _tmp2_ = self->priv->text_renderer;
-#line 156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_parse_name ("editing-started", gtk_cell_renderer_get_type (), &_tmp3_, NULL, FALSE);
-#line 156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_cell_renderer_get_type (), GtkCellRenderer), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _sidebar_tree_on_editing_started_gtk_cell_renderer_editing_started, self);
-#line 55 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->store);
-#line 62 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->builder);
-#line 63 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->text_renderer);
-#line 65 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->text_entry);
-#line 66 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->entry_map);
-#line 68 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->branches);
-#line 72 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->default_context_menu);
-#line 76 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- _g_object_unref0 (self->priv->internal_drag_source_entry);
-#line 77 "/home/jens/Source/shotwell/src/sidebar/Tree.vala"
- __vala_GtkTreeRowReference_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 7858 "Tree.c"
-}
-
-
-GType
-sidebar_tree_get_type (void)
-{
- static volatile gsize sidebar_tree_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_tree_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarTreeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_tree_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarTree), 0, (GInstanceInitFunc) sidebar_tree_instance_init, NULL };
- GType sidebar_tree_type_id;
- sidebar_tree_type_id = g_type_register_static (gtk_tree_view_get_type (), "SidebarTree", &g_define_type_info, 0);
- g_once_init_leave (&sidebar_tree_type_id__volatile, sidebar_tree_type_id);
- }
- return sidebar_tree_type_id__volatile;
-}
-
-
-
diff --git a/src/sidebar/Tree.vala b/src/sidebar/Tree.vala
index c707c63..ea039ea 100644
--- a/src/sidebar/Tree.vala
+++ b/src/sidebar/Tree.vala
@@ -101,6 +101,7 @@ public class Sidebar.Tree : Gtk.TreeView {
text_column.pack_start (icon_renderer, false);
text_column.add_attribute(icon_renderer, "gicon", Columns.ICON);
text_column.set_cell_data_func(icon_renderer, icon_renderer_function);
+ text_column.set_spacing(6);
text_renderer = new Gtk.CellRendererText();
text_renderer.ellipsize = Pango.EllipsizeMode.END;
text_renderer.editing_canceled.connect(on_editing_canceled);
@@ -811,8 +812,8 @@ public class Sidebar.Tree : Gtk.TreeView {
private Gtk.TreePath? get_path_from_event(Gdk.EventButton event) {
int x, y;
Gdk.ModifierType mask;
- event.window.get_device_position(Gdk.Display.get_default().get_device_manager().
- get_client_pointer(), out x, out y, out mask);
+ var seat = event.get_seat();
+ event.window.get_device_position(seat.get_pointer(), out x, out y, out mask);
int cell_x, cell_y;
Gtk.TreePath path;
@@ -863,16 +864,13 @@ public class Sidebar.Tree : Gtk.TreeView {
context_menu.attach_to_widget (this, null);
}
- if (event != null)
- context_menu.popup(null, null, null, event.button, event.time);
- else
- context_menu.popup(null, null, null, 0, Gtk.get_current_event_time());
-
+ context_menu.popup_at_pointer(event);
+
return true;
}
private bool popup_default_context_menu(Gdk.EventButton event) {
- default_context_menu.popup(null, null, null, event.button, event.time);
+ default_context_menu.popup_at_pointer(event);
return true;
}
diff --git a/src/sidebar/common.c b/src/sidebar/common.c
deleted file mode 100644
index 0940f40..0000000
--- a/src/sidebar/common.c
+++ /dev/null
@@ -1,1307 +0,0 @@
-/* common.c generated by valac 0.40.4, the Vala compiler
- * generated from common.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* A simple grouping Entry that is only expandable*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-
-#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
-#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
-#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
-#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
-
-typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
-typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
-
-#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
-#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
-#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-
-typedef struct _SidebarGrouping SidebarGrouping;
-typedef struct _SidebarGroupingClass SidebarGroupingClass;
-typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate;
-enum {
- SIDEBAR_GROUPING_0_PROPERTY,
- SIDEBAR_GROUPING_NUM_PROPERTIES
-};
-static GParamSpec* sidebar_grouping_properties[SIDEBAR_GROUPING_NUM_PROPERTIES];
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-enum {
- SIDEBAR_SIMPLE_PAGE_ENTRY_0_PROPERTY,
- SIDEBAR_SIMPLE_PAGE_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* sidebar_simple_page_entry_properties[SIDEBAR_SIMPLE_PAGE_ENTRY_NUM_PROPERTIES];
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
-
-#define SIDEBAR_TYPE_ROOT_ONLY_BRANCH (sidebar_root_only_branch_get_type ())
-#define SIDEBAR_ROOT_ONLY_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ROOT_ONLY_BRANCH, SidebarRootOnlyBranch))
-#define SIDEBAR_ROOT_ONLY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_ROOT_ONLY_BRANCH, SidebarRootOnlyBranchClass))
-#define SIDEBAR_IS_ROOT_ONLY_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ROOT_ONLY_BRANCH))
-#define SIDEBAR_IS_ROOT_ONLY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_ROOT_ONLY_BRANCH))
-#define SIDEBAR_ROOT_ONLY_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_ROOT_ONLY_BRANCH, SidebarRootOnlyBranchClass))
-
-typedef struct _SidebarRootOnlyBranch SidebarRootOnlyBranch;
-typedef struct _SidebarRootOnlyBranchClass SidebarRootOnlyBranchClass;
-typedef struct _SidebarRootOnlyBranchPrivate SidebarRootOnlyBranchPrivate;
-enum {
- SIDEBAR_ROOT_ONLY_BRANCH_0_PROPERTY,
- SIDEBAR_ROOT_ONLY_BRANCH_NUM_PROPERTIES
-};
-static GParamSpec* sidebar_root_only_branch_properties[SIDEBAR_ROOT_ONLY_BRANCH_NUM_PROPERTIES];
-
-#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
-
-#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ())
-#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry))
-#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY))
-#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface))
-
-typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry;
-typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface;
-
-#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
-#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
-#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-
-typedef struct _SidebarHeader SidebarHeader;
-typedef struct _SidebarHeaderClass SidebarHeaderClass;
-typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate;
-enum {
- SIDEBAR_HEADER_0_PROPERTY,
- SIDEBAR_HEADER_NUM_PROPERTIES
-};
-static GParamSpec* sidebar_header_properties[SIDEBAR_HEADER_NUM_PROPERTIES];
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _SidebarRenameableEntryIface {
- GTypeInterface parent_iface;
- void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
- gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
-};
-
-struct _SidebarGrouping {
- GObject parent_instance;
- SidebarGroupingPrivate * priv;
-};
-
-struct _SidebarGroupingClass {
- GObjectClass parent_class;
-};
-
-struct _SidebarGroupingPrivate {
- gchar* name;
- gchar* tooltip;
- gchar* icon;
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _SidebarSimplePageEntryPrivate {
- Page* page;
-};
-
-struct _SidebarBranch {
- GObject parent_instance;
- SidebarBranchPrivate * priv;
-};
-
-struct _SidebarBranchClass {
- GObjectClass parent_class;
-};
-
-struct _SidebarRootOnlyBranch {
- SidebarBranch parent_instance;
- SidebarRootOnlyBranchPrivate * priv;
-};
-
-struct _SidebarRootOnlyBranchClass {
- SidebarBranchClass parent_class;
-};
-
-typedef enum {
- SIDEBAR_BRANCH_OPTIONS_NONE = 0,
- SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
- SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
-} SidebarBranchOptions;
-
-struct _SidebarEmphasizableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*is_emphasized) (SidebarEmphasizableEntry* self);
-};
-
-struct _SidebarHeader {
- SidebarGrouping parent_instance;
- SidebarHeaderPrivate * priv;
-};
-
-struct _SidebarHeaderClass {
- SidebarGroupingClass parent_class;
-};
-
-struct _SidebarHeaderPrivate {
- gboolean emphasized;
-};
-
-
-static gpointer sidebar_grouping_parent_class = NULL;
-static SidebarEntryIface * sidebar_grouping_sidebar_entry_parent_iface = NULL;
-static SidebarExpandableEntryIface * sidebar_grouping_sidebar_expandable_entry_parent_iface = NULL;
-static SidebarRenameableEntryIface * sidebar_grouping_sidebar_renameable_entry_parent_iface = NULL;
-static gpointer sidebar_simple_page_entry_parent_class = NULL;
-static SidebarEntryIface * sidebar_simple_page_entry_sidebar_entry_parent_iface = NULL;
-static SidebarSelectableEntryIface * sidebar_simple_page_entry_sidebar_selectable_entry_parent_iface = NULL;
-static SidebarPageRepresentativeIface * sidebar_simple_page_entry_sidebar_page_representative_parent_iface = NULL;
-static SidebarContextableIface * sidebar_simple_page_entry_sidebar_contextable_parent_iface = NULL;
-static gpointer sidebar_root_only_branch_parent_class = NULL;
-static gpointer sidebar_header_parent_class = NULL;
-static SidebarEmphasizableEntryIface * sidebar_header_sidebar_emphasizable_entry_parent_iface = NULL;
-
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_grouping_get_type (void) G_GNUC_CONST;
-#define SIDEBAR_GROUPING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_GROUPING, SidebarGroupingPrivate))
-SidebarGrouping* sidebar_grouping_new (const gchar* name,
- const gchar* icon,
- const gchar* tooltip);
-SidebarGrouping* sidebar_grouping_construct (GType object_type,
- const gchar* name,
- const gchar* icon,
- const gchar* tooltip);
-static void sidebar_grouping_real_rename (SidebarRenameableEntry* base,
- const gchar* name);
-static gboolean sidebar_grouping_real_is_user_renameable (SidebarRenameableEntry* base);
-static gchar* sidebar_grouping_real_get_sidebar_name (SidebarEntry* base);
-static gchar* sidebar_grouping_real_get_sidebar_tooltip (SidebarEntry* base);
-static gchar* sidebar_grouping_real_get_sidebar_icon (SidebarEntry* base);
-static gchar* sidebar_grouping_real_to_string (SidebarEntry* base);
-static gboolean sidebar_grouping_real_expand_on_select (SidebarExpandableEntry* base);
-static void sidebar_grouping_finalize (GObject * obj);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryPrivate))
-SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
-gchar* sidebar_simple_page_entry_get_sidebar_name (SidebarSimplePageEntry* self);
-static gchar* sidebar_simple_page_entry_real_get_sidebar_name (SidebarSimplePageEntry* self);
-gchar* sidebar_simple_page_entry_get_sidebar_tooltip (SidebarSimplePageEntry* self);
-static gchar* sidebar_simple_page_entry_real_get_sidebar_tooltip (SidebarSimplePageEntry* self);
-gchar* sidebar_simple_page_entry_get_sidebar_icon (SidebarSimplePageEntry* self);
-static gchar* sidebar_simple_page_entry_real_get_sidebar_icon (SidebarSimplePageEntry* self);
-gchar* sidebar_simple_page_entry_to_string (SidebarSimplePageEntry* self);
-static gchar* sidebar_simple_page_entry_real_to_string (SidebarSimplePageEntry* self);
-Page* sidebar_simple_page_entry_create_page (SidebarSimplePageEntry* self);
-static Page* sidebar_simple_page_entry_real_create_page (SidebarSimplePageEntry* self);
-static gboolean sidebar_simple_page_entry_real_has_page (SidebarPageRepresentative* base);
-static Page* sidebar_simple_page_entry_real_get_page (SidebarPageRepresentative* base);
-static void sidebar_simple_page_entry_real_pruned (SidebarEntry* base,
- SidebarTree* tree);
-static GtkMenu* sidebar_simple_page_entry_real_get_sidebar_context_menu (SidebarContextable* base,
- GdkEventButton* event);
-Page* sidebar_page_representative_get_page (SidebarPageRepresentative* self);
-GtkMenu* page_get_page_context_menu (Page* self);
-static void sidebar_simple_page_entry_finalize (GObject * obj);
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-GType sidebar_root_only_branch_get_type (void) G_GNUC_CONST;
-SidebarRootOnlyBranch* sidebar_root_only_branch_new (SidebarEntry* root);
-SidebarRootOnlyBranch* sidebar_root_only_branch_construct (GType object_type,
- SidebarEntry* root);
-GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-static gint sidebar_root_only_branch_null_comparator (SidebarEntry* a,
- SidebarEntry* b);
-static gint _sidebar_root_only_branch_null_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_header_get_type (void) G_GNUC_CONST;
-#define SIDEBAR_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_HEADER, SidebarHeaderPrivate))
-SidebarHeader* sidebar_header_new (const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type,
- const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-static gboolean sidebar_header_real_is_emphasized (SidebarEmphasizableEntry* base);
-static void sidebar_header_finalize (GObject * obj);
-GtkMenu* sidebar_contextable_get_sidebar_context_menu (SidebarContextable* self,
- GdkEventButton* event);
-
-
-SidebarGrouping*
-sidebar_grouping_construct (GType object_type,
- const gchar* name,
- const gchar* icon,
- const gchar* tooltip)
-{
- SidebarGrouping * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 15 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 15 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = (SidebarGrouping*) g_object_new (object_type, NULL);
-#line 16 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = g_strdup (name);
-#line 16 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_free0 (self->priv->name);
-#line 16 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->name = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = g_strdup (icon);
-#line 17 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_free0 (self->priv->icon);
-#line 17 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->icon = _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp2_ = g_strdup (tooltip);
-#line 18 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_free0 (self->priv->tooltip);
-#line 18 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->tooltip = _tmp2_;
-#line 15 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return self;
-#line 420 "common.c"
-}
-
-
-SidebarGrouping*
-sidebar_grouping_new (const gchar* name,
- const gchar* icon,
- const gchar* tooltip)
-{
-#line 15 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return sidebar_grouping_construct (SIDEBAR_TYPE_GROUPING, name, icon, tooltip);
-#line 431 "common.c"
-}
-
-
-static void
-sidebar_grouping_real_rename (SidebarRenameableEntry* base,
- const gchar* name)
-{
- SidebarGrouping * self;
- gchar* _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping);
-#line 21 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_if_fail (name != NULL);
-#line 22 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = g_strdup (name);
-#line 22 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_free0 (self->priv->name);
-#line 22 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->name = _tmp0_;
-#line 23 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry), "sidebar-name-changed", name);
-#line 453 "common.c"
-}
-
-
-static gboolean
-sidebar_grouping_real_is_user_renameable (SidebarRenameableEntry* base)
-{
- SidebarGrouping * self;
- gboolean result = FALSE;
-#line 26 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping);
-#line 27 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = FALSE;
-#line 27 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 468 "common.c"
-}
-
-
-static gchar*
-sidebar_grouping_real_get_sidebar_name (SidebarEntry* base)
-{
- SidebarGrouping * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 30 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping);
-#line 31 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = self->priv->name;
-#line 31 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 31 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp1_;
-#line 31 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 489 "common.c"
-}
-
-
-static gchar*
-sidebar_grouping_real_get_sidebar_tooltip (SidebarEntry* base)
-{
- SidebarGrouping * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 34 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = self->priv->tooltip;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 35 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp1_;
-#line 35 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 510 "common.c"
-}
-
-
-static gchar*
-sidebar_grouping_real_get_sidebar_icon (SidebarEntry* base)
-{
- SidebarGrouping * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 38 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping);
-#line 39 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = self->priv->icon;
-#line 39 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 39 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp1_;
-#line 39 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 531 "common.c"
-}
-
-
-static gchar*
-sidebar_grouping_real_to_string (SidebarEntry* base)
-{
- SidebarGrouping * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 42 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping);
-#line 43 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = self->priv->name;
-#line 43 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 43 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp1_;
-#line 43 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 552 "common.c"
-}
-
-
-static gboolean
-sidebar_grouping_real_expand_on_select (SidebarExpandableEntry* base)
-{
- SidebarGrouping * self;
- gboolean result = FALSE;
-#line 46 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping);
-#line 47 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = TRUE;
-#line 47 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 567 "common.c"
-}
-
-
-static void
-sidebar_grouping_class_init (SidebarGroupingClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_grouping_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_type_class_add_private (klass, sizeof (SidebarGroupingPrivate));
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- G_OBJECT_CLASS (klass)->finalize = sidebar_grouping_finalize;
-#line 580 "common.c"
-}
-
-
-static void
-sidebar_grouping_sidebar_entry_interface_init (SidebarEntryIface * iface)
-{
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_grouping_sidebar_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->get_sidebar_name = (gchar* (*) (SidebarEntry *)) sidebar_grouping_real_get_sidebar_name;
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->get_sidebar_tooltip = (gchar* (*) (SidebarEntry *)) sidebar_grouping_real_get_sidebar_tooltip;
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->get_sidebar_icon = (gchar* (*) (SidebarEntry *)) sidebar_grouping_real_get_sidebar_icon;
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->to_string = (gchar* (*) (SidebarEntry *)) sidebar_grouping_real_to_string;
-#line 597 "common.c"
-}
-
-
-static void
-sidebar_grouping_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface)
-{
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_grouping_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->expand_on_select = (gboolean (*) (SidebarExpandableEntry *)) sidebar_grouping_real_expand_on_select;
-#line 608 "common.c"
-}
-
-
-static void
-sidebar_grouping_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface)
-{
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_grouping_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->rename = (void (*) (SidebarRenameableEntry *, const gchar*)) sidebar_grouping_real_rename;
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->is_user_renameable = (gboolean (*) (SidebarRenameableEntry *)) sidebar_grouping_real_is_user_renameable;
-#line 621 "common.c"
-}
-
-
-static void
-sidebar_grouping_instance_init (SidebarGrouping * self)
-{
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv = SIDEBAR_GROUPING_GET_PRIVATE (self);
-#line 630 "common.c"
-}
-
-
-static void
-sidebar_grouping_finalize (GObject * obj)
-{
- SidebarGrouping * self;
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_GROUPING, SidebarGrouping);
-#line 11 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_free0 (self->priv->name);
-#line 12 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_free0 (self->priv->tooltip);
-#line 13 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_free0 (self->priv->icon);
-#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- G_OBJECT_CLASS (sidebar_grouping_parent_class)->finalize (obj);
-#line 648 "common.c"
-}
-
-
-GType
-sidebar_grouping_get_type (void)
-{
- static volatile gsize sidebar_grouping_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_grouping_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarGroupingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_grouping_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarGrouping), 0, (GInstanceInitFunc) sidebar_grouping_instance_init, NULL };
- static const GInterfaceInfo sidebar_entry_info = { (GInterfaceInitFunc) sidebar_grouping_sidebar_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) sidebar_grouping_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) sidebar_grouping_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType sidebar_grouping_type_id;
- sidebar_grouping_type_id = g_type_register_static (G_TYPE_OBJECT, "SidebarGrouping", &g_define_type_info, 0);
- g_type_add_interface_static (sidebar_grouping_type_id, SIDEBAR_TYPE_ENTRY, &sidebar_entry_info);
- g_type_add_interface_static (sidebar_grouping_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info);
- g_type_add_interface_static (sidebar_grouping_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info);
- g_once_init_leave (&sidebar_grouping_type_id__volatile, sidebar_grouping_type_id);
- }
- return sidebar_grouping_type_id__volatile;
-}
-
-
-SidebarSimplePageEntry*
-sidebar_simple_page_entry_construct (GType object_type)
-{
- SidebarSimplePageEntry * self = NULL;
-#line 58 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = (SidebarSimplePageEntry*) g_object_new (object_type, NULL);
-#line 58 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return self;
-#line 680 "common.c"
-}
-
-
-static gchar*
-sidebar_simple_page_entry_real_get_sidebar_name (SidebarSimplePageEntry* self)
-{
-#line 61 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_critical ("Type `%s' does not implement abstract method `sidebar_simple_page_entry_get_sidebar_name'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 61 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return NULL;
-#line 691 "common.c"
-}
-
-
-gchar*
-sidebar_simple_page_entry_get_sidebar_name (SidebarSimplePageEntry* self)
-{
-#line 61 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL);
-#line 61 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->get_sidebar_name (self);
-#line 702 "common.c"
-}
-
-
-static gchar*
-sidebar_simple_page_entry_real_get_sidebar_tooltip (SidebarSimplePageEntry* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = sidebar_simple_page_entry_get_sidebar_name (self);
-#line 64 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp0_;
-#line 64 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 717 "common.c"
-}
-
-
-gchar*
-sidebar_simple_page_entry_get_sidebar_tooltip (SidebarSimplePageEntry* self)
-{
-#line 63 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL);
-#line 63 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->get_sidebar_tooltip (self);
-#line 728 "common.c"
-}
-
-
-static gchar*
-sidebar_simple_page_entry_real_get_sidebar_icon (SidebarSimplePageEntry* self)
-{
-#line 67 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_critical ("Type `%s' does not implement abstract method `sidebar_simple_page_entry_get_sidebar_icon'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 67 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return NULL;
-#line 739 "common.c"
-}
-
-
-gchar*
-sidebar_simple_page_entry_get_sidebar_icon (SidebarSimplePageEntry* self)
-{
-#line 67 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL);
-#line 67 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->get_sidebar_icon (self);
-#line 750 "common.c"
-}
-
-
-static gchar*
-sidebar_simple_page_entry_real_to_string (SidebarSimplePageEntry* self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 70 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = sidebar_simple_page_entry_get_sidebar_name (self);
-#line 70 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp0_;
-#line 70 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 765 "common.c"
-}
-
-
-gchar*
-sidebar_simple_page_entry_to_string (SidebarSimplePageEntry* self)
-{
-#line 69 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL);
-#line 69 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->to_string (self);
-#line 776 "common.c"
-}
-
-
-static Page*
-sidebar_simple_page_entry_real_create_page (SidebarSimplePageEntry* self)
-{
-#line 73 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_critical ("Type `%s' does not implement abstract method `sidebar_simple_page_entry_create_page'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 73 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return NULL;
-#line 787 "common.c"
-}
-
-
-Page*
-sidebar_simple_page_entry_create_page (SidebarSimplePageEntry* self)
-{
-#line 73 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL);
-#line 73 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->create_page (self);
-#line 798 "common.c"
-}
-
-
-static gboolean
-sidebar_simple_page_entry_real_has_page (SidebarPageRepresentative* base)
-{
- SidebarSimplePageEntry * self;
- gboolean result = FALSE;
- Page* _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry);
-#line 76 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = self->priv->page;
-#line 76 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp0_ != NULL;
-#line 76 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 816 "common.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return self ? g_object_ref (self) : NULL;
-#line 825 "common.c"
-}
-
-
-static Page*
-sidebar_simple_page_entry_real_get_page (SidebarPageRepresentative* base)
-{
- SidebarSimplePageEntry * self;
- Page* result = NULL;
- Page* _tmp0_;
- Page* _tmp3_;
- Page* _tmp4_;
-#line 79 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry);
-#line 80 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = self->priv->page;
-#line 80 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- if (_tmp0_ == NULL) {
-#line 843 "common.c"
- Page* _tmp1_;
- Page* _tmp2_;
-#line 81 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = sidebar_simple_page_entry_create_page (self);
-#line 81 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_object_unref0 (self->priv->page);
-#line 81 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->page = _tmp1_;
-#line 82 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp2_ = self->priv->page;
-#line 82 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative), "page-created", _tmp2_);
-#line 856 "common.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp3_ = self->priv->page;
-#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
-#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp4_;
-#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 866 "common.c"
-}
-
-
-static void
-sidebar_simple_page_entry_real_pruned (SidebarEntry* base,
- SidebarTree* tree)
-{
- SidebarSimplePageEntry * self;
- Page* _tmp0_;
- Page* _tmp1_;
- Page* _tmp2_;
-#line 88 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry);
-#line 88 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_if_fail (SIDEBAR_IS_TREE (tree));
-#line 89 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = self->priv->page;
-#line 89 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- if (_tmp0_ == NULL) {
-#line 90 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return;
-#line 888 "common.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = self->priv->page;
-#line 92 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative), "destroying-page", _tmp1_);
-#line 93 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp2_ = self->priv->page;
-#line 93 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
-#line 94 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_object_unref0 (self->priv->page);
-#line 94 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->page = NULL;
-#line 902 "common.c"
-}
-
-
-static GtkMenu*
-sidebar_simple_page_entry_real_get_sidebar_context_menu (SidebarContextable* base,
- GdkEventButton* event)
-{
- SidebarSimplePageEntry * self;
- GtkMenu* result = NULL;
- Page* _tmp0_;
- Page* _tmp1_;
- GtkMenu* _tmp2_;
- GtkMenu* _tmp3_;
-#line 97 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry);
-#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative));
-#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp2_ = page_get_page_context_menu (_tmp1_);
-#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp3_ = _tmp2_;
-#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_object_unref0 (_tmp1_);
-#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp3_;
-#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 932 "common.c"
-}
-
-
-static void
-sidebar_simple_page_entry_class_init (SidebarSimplePageEntryClass * klass)
-{
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_simple_page_entry_parent_class = g_type_class_peek_parent (klass);
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_type_class_add_private (klass, sizeof (SidebarSimplePageEntryPrivate));
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_get_sidebar_name;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_tooltip = (gchar* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_get_sidebar_tooltip;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_get_sidebar_icon;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- ((SidebarSimplePageEntryClass *) klass)->to_string = (gchar* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_to_string;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_create_page;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- G_OBJECT_CLASS (klass)->finalize = sidebar_simple_page_entry_finalize;
-#line 955 "common.c"
-}
-
-
-static void
-sidebar_simple_page_entry_sidebar_entry_interface_init (SidebarEntryIface * iface)
-{
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_simple_page_entry_sidebar_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->get_sidebar_name = (gchar* (*) (SidebarEntry *)) sidebar_simple_page_entry_get_sidebar_name;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->get_sidebar_tooltip = (gchar* (*) (SidebarEntry *)) sidebar_simple_page_entry_get_sidebar_tooltip;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->get_sidebar_icon = (gchar* (*) (SidebarEntry *)) sidebar_simple_page_entry_get_sidebar_icon;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->to_string = (gchar* (*) (SidebarEntry *)) sidebar_simple_page_entry_to_string;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->pruned = (void (*) (SidebarEntry *, SidebarTree*)) sidebar_simple_page_entry_real_pruned;
-#line 974 "common.c"
-}
-
-
-static void
-sidebar_simple_page_entry_sidebar_selectable_entry_interface_init (SidebarSelectableEntryIface * iface)
-{
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_simple_page_entry_sidebar_selectable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 983 "common.c"
-}
-
-
-static void
-sidebar_simple_page_entry_sidebar_page_representative_interface_init (SidebarPageRepresentativeIface * iface)
-{
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_simple_page_entry_sidebar_page_representative_parent_iface = g_type_interface_peek_parent (iface);
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->has_page = (gboolean (*) (SidebarPageRepresentative *)) sidebar_simple_page_entry_real_has_page;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->get_page = (Page* (*) (SidebarPageRepresentative *)) sidebar_simple_page_entry_real_get_page;
-#line 996 "common.c"
-}
-
-
-static void
-sidebar_simple_page_entry_sidebar_contextable_interface_init (SidebarContextableIface * iface)
-{
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_simple_page_entry_sidebar_contextable_parent_iface = g_type_interface_peek_parent (iface);
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->get_sidebar_context_menu = (GtkMenu* (*) (SidebarContextable *, GdkEventButton*)) sidebar_simple_page_entry_real_get_sidebar_context_menu;
-#line 1007 "common.c"
-}
-
-
-static void
-sidebar_simple_page_entry_instance_init (SidebarSimplePageEntry * self)
-{
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv = SIDEBAR_SIMPLE_PAGE_ENTRY_GET_PRIVATE (self);
-#line 56 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->page = NULL;
-#line 1018 "common.c"
-}
-
-
-static void
-sidebar_simple_page_entry_finalize (GObject * obj)
-{
- SidebarSimplePageEntry * self;
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry);
-#line 56 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _g_object_unref0 (self->priv->page);
-#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- G_OBJECT_CLASS (sidebar_simple_page_entry_parent_class)->finalize (obj);
-#line 1032 "common.c"
-}
-
-
-GType
-sidebar_simple_page_entry_get_type (void)
-{
- static volatile gsize sidebar_simple_page_entry_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_simple_page_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarSimplePageEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_simple_page_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarSimplePageEntry), 0, (GInstanceInitFunc) sidebar_simple_page_entry_instance_init, NULL };
- static const GInterfaceInfo sidebar_entry_info = { (GInterfaceInitFunc) sidebar_simple_page_entry_sidebar_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_selectable_entry_info = { (GInterfaceInitFunc) sidebar_simple_page_entry_sidebar_selectable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_page_representative_info = { (GInterfaceInitFunc) sidebar_simple_page_entry_sidebar_page_representative_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_contextable_info = { (GInterfaceInitFunc) sidebar_simple_page_entry_sidebar_contextable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType sidebar_simple_page_entry_type_id;
- sidebar_simple_page_entry_type_id = g_type_register_static (G_TYPE_OBJECT, "SidebarSimplePageEntry", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_type_add_interface_static (sidebar_simple_page_entry_type_id, SIDEBAR_TYPE_ENTRY, &sidebar_entry_info);
- g_type_add_interface_static (sidebar_simple_page_entry_type_id, SIDEBAR_TYPE_SELECTABLE_ENTRY, &sidebar_selectable_entry_info);
- g_type_add_interface_static (sidebar_simple_page_entry_type_id, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, &sidebar_page_representative_info);
- g_type_add_interface_static (sidebar_simple_page_entry_type_id, SIDEBAR_TYPE_CONTEXTABLE, &sidebar_contextable_info);
- g_once_init_leave (&sidebar_simple_page_entry_type_id__volatile, sidebar_simple_page_entry_type_id);
- }
- return sidebar_simple_page_entry_type_id__volatile;
-}
-
-
-static gint
-_sidebar_root_only_branch_null_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = sidebar_root_only_branch_null_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 105 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 1066 "common.c"
-}
-
-
-SidebarRootOnlyBranch*
-sidebar_root_only_branch_construct (GType object_type,
- SidebarEntry* root)
-{
- SidebarRootOnlyBranch * self = NULL;
-#line 104 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (root), NULL);
-#line 105 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = (SidebarRootOnlyBranch*) sidebar_branch_construct (object_type, root, SIDEBAR_BRANCH_OPTIONS_NONE, _sidebar_root_only_branch_null_comparator_gcompare_func, NULL);
-#line 104 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return self;
-#line 1081 "common.c"
-}
-
-
-SidebarRootOnlyBranch*
-sidebar_root_only_branch_new (SidebarEntry* root)
-{
-#line 104 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return sidebar_root_only_branch_construct (SIDEBAR_TYPE_ROOT_ONLY_BRANCH, root);
-#line 1090 "common.c"
-}
-
-
-static gint
-sidebar_root_only_branch_null_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- gint _tmp0_ = 0;
-#line 108 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 108 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- if (a != b) {
-#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = -1;
-#line 1108 "common.c"
- } else {
-#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = 0;
-#line 1112 "common.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp0_;
-#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 1118 "common.c"
-}
-
-
-static void
-sidebar_root_only_branch_class_init (SidebarRootOnlyBranchClass * klass)
-{
-#line 103 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_root_only_branch_parent_class = g_type_class_peek_parent (klass);
-#line 1127 "common.c"
-}
-
-
-static void
-sidebar_root_only_branch_instance_init (SidebarRootOnlyBranch * self)
-{
-}
-
-
-GType
-sidebar_root_only_branch_get_type (void)
-{
- static volatile gsize sidebar_root_only_branch_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_root_only_branch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarRootOnlyBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_root_only_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarRootOnlyBranch), 0, (GInstanceInitFunc) sidebar_root_only_branch_instance_init, NULL };
- GType sidebar_root_only_branch_type_id;
- sidebar_root_only_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "SidebarRootOnlyBranch", &g_define_type_info, 0);
- g_once_init_leave (&sidebar_root_only_branch_type_id__volatile, sidebar_root_only_branch_type_id);
- }
- return sidebar_root_only_branch_type_id__volatile;
-}
-
-
-SidebarHeader*
-sidebar_header_construct (GType object_type,
- const gchar* name,
- const gchar* tooltip,
- gboolean emphasized)
-{
- SidebarHeader * self = NULL;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 124 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = (SidebarHeader*) sidebar_grouping_construct (object_type, name, NULL, tooltip);
-#line 125 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->emphasized = emphasized;
-#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return self;
-#line 1166 "common.c"
-}
-
-
-SidebarHeader*
-sidebar_header_new (const gchar* name,
- const gchar* tooltip,
- gboolean emphasized)
-{
-#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return sidebar_header_construct (SIDEBAR_TYPE_HEADER, name, tooltip, emphasized);
-#line 1177 "common.c"
-}
-
-
-static gboolean
-sidebar_header_real_is_emphasized (SidebarEmphasizableEntry* base)
-{
- SidebarHeader * self;
- gboolean result = FALSE;
- gboolean _tmp0_;
-#line 128 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_HEADER, SidebarHeader);
-#line 129 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp0_ = self->priv->emphasized;
-#line 129 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- result = _tmp0_;
-#line 129 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return result;
-#line 1195 "common.c"
-}
-
-
-static void
-sidebar_header_class_init (SidebarHeaderClass * klass)
-{
-#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_header_parent_class = g_type_class_peek_parent (klass);
-#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_type_class_add_private (klass, sizeof (SidebarHeaderPrivate));
-#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- G_OBJECT_CLASS (klass)->finalize = sidebar_header_finalize;
-#line 1208 "common.c"
-}
-
-
-static void
-sidebar_header_sidebar_emphasizable_entry_interface_init (SidebarEmphasizableEntryIface * iface)
-{
-#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- sidebar_header_sidebar_emphasizable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- iface->is_emphasized = (gboolean (*) (SidebarEmphasizableEntry *)) sidebar_header_real_is_emphasized;
-#line 1219 "common.c"
-}
-
-
-static void
-sidebar_header_instance_init (SidebarHeader * self)
-{
-#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv = SIDEBAR_HEADER_GET_PRIVATE (self);
-#line 1228 "common.c"
-}
-
-
-static void
-sidebar_header_finalize (GObject * obj)
-{
- SidebarHeader * self;
-#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_HEADER, SidebarHeader);
-#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- G_OBJECT_CLASS (sidebar_header_parent_class)->finalize (obj);
-#line 1240 "common.c"
-}
-
-
-/**
- * A header is an entry that is visually distinguished from its children. Bug 6397 recommends
- * headers to appear bolded and without any icons. To prevent the icons from rendering, we set the
- * icons to null in the base class @see Sidebar.Grouping. But we also go a step further by
- * using a custom cell_data_function (@see Sidebar.Tree::icon_renderer_function) which ensures that
- * header icons won't be rendered. This approach avoids the blank icon spacing issues.
- */
-GType
-sidebar_header_get_type (void)
-{
- static volatile gsize sidebar_header_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_header_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarHeader), 0, (GInstanceInitFunc) sidebar_header_instance_init, NULL };
- static const GInterfaceInfo sidebar_emphasizable_entry_info = { (GInterfaceInitFunc) sidebar_header_sidebar_emphasizable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType sidebar_header_type_id;
- sidebar_header_type_id = g_type_register_static (SIDEBAR_TYPE_GROUPING, "SidebarHeader", &g_define_type_info, 0);
- g_type_add_interface_static (sidebar_header_type_id, SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, &sidebar_emphasizable_entry_info);
- g_once_init_leave (&sidebar_header_type_id__volatile, sidebar_header_type_id);
- }
- return sidebar_header_type_id__volatile;
-}
-
-
-GtkMenu*
-sidebar_contextable_get_sidebar_context_menu (SidebarContextable* self,
- GdkEventButton* event)
-{
-#line 135 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- g_return_val_if_fail (SIDEBAR_IS_CONTEXTABLE (self), NULL);
-#line 135 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return SIDEBAR_CONTEXTABLE_GET_INTERFACE (self)->get_sidebar_context_menu (self, event);
-#line 1275 "common.c"
-}
-
-
-static void
-sidebar_contextable_base_init (SidebarContextableIface * iface)
-{
-#line 133 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- static gboolean initialized = FALSE;
-#line 133 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- if (!initialized) {
-#line 133 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- initialized = TRUE;
-#line 1288 "common.c"
- }
-}
-
-
-GType
-sidebar_contextable_get_type (void)
-{
- static volatile gsize sidebar_contextable_type_id__volatile = 0;
- if (g_once_init_enter (&sidebar_contextable_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SidebarContextableIface), (GBaseInitFunc) sidebar_contextable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
- GType sidebar_contextable_type_id;
- sidebar_contextable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarContextable", &g_define_type_info, 0);
- g_type_interface_add_prerequisite (sidebar_contextable_type_id, G_TYPE_OBJECT);
- g_once_init_leave (&sidebar_contextable_type_id__volatile, sidebar_contextable_type_id);
- }
- return sidebar_contextable_type_id__volatile;
-}
-
-
-
diff --git a/src/slideshow/Slideshow.c b/src/slideshow/Slideshow.c
deleted file mode 100644
index 63e0bda..0000000
--- a/src/slideshow/Slideshow.c
+++ /dev/null
@@ -1,475 +0,0 @@
-/* Slideshow.c generated by valac 0.40.4, the Vala compiler
- * generated from Slideshow.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <glib/gi18n-lib.h>
-
-
-
-
-void slideshow_init (GError** error);
-static void _vala_array_add36 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add37 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add38 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add39 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add40 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add41 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add42 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add43 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add44 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void _vala_array_add45 (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_ICON_SLIDESHOW_EXTENSION_POINT "slideshow-extension-point"
-void transition_effects_manager_init (void);
-void slideshow_terminate (void);
-void transition_effects_manager_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);
-
-
-static void
-_vala_array_add36 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 92 "Slideshow.c"
- }
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 98 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add37 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 114 "Slideshow.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 120 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add38 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 136 "Slideshow.c"
- }
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 142 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add39 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 158 "Slideshow.c"
- }
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 164 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add40 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 180 "Slideshow.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 186 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add41 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 202 "Slideshow.c"
- }
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 208 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add42 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 224 "Slideshow.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 230 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add43 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 246 "Slideshow.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 252 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add44 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 268 "Slideshow.c"
- }
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 274 "Slideshow.c"
-}
-
-
-static void
-_vala_array_add45 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- if ((*length) == (*size)) {
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 290 "Slideshow.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[(*length)++] = value;
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- (*array)[*length] = NULL;
-#line 296 "Slideshow.c"
-}
-
-
-void
-slideshow_init (GError** error)
-{
- gchar** core_ids = NULL;
- gchar** _tmp0_;
- gint core_ids_length1;
- gint _core_ids_size_;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- gchar* _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- gchar* _tmp6_;
- gchar** _tmp7_;
- gint _tmp7__length1;
- gchar* _tmp8_;
- gchar** _tmp9_;
- gint _tmp9__length1;
- gchar* _tmp10_;
- gchar** _tmp11_;
- gint _tmp11__length1;
- gchar* _tmp12_;
- gchar** _tmp13_;
- gint _tmp13__length1;
- gchar* _tmp14_;
- gchar** _tmp15_;
- gint _tmp15__length1;
- gchar* _tmp16_;
- gchar** _tmp17_;
- gint _tmp17__length1;
- gchar* _tmp18_;
- gchar** _tmp19_;
- gint _tmp19__length1;
- gchar* _tmp20_;
- gchar** _tmp21_;
- gint _tmp21__length1;
-#line 10 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 10 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- core_ids = _tmp0_;
-#line 10 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- core_ids_length1 = 0;
-#line 10 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _core_ids_size_ = core_ids_length1;
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp1_ = core_ids;
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp1__length1 = core_ids_length1;
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp2_ = g_strdup ("org.yorba.shotwell.transitions.crumble");
-#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add36 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp2_);
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp3_ = core_ids;
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp3__length1 = core_ids_length1;
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp4_ = g_strdup ("org.yorba.shotwell.transitions.fade");
-#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add37 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp4_);
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp5_ = core_ids;
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp5__length1 = core_ids_length1;
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp6_ = g_strdup ("org.yorba.shotwell.transitions.slide");
-#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add38 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp6_);
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp7_ = core_ids;
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp7__length1 = core_ids_length1;
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp8_ = g_strdup ("org.yorba.shotwell.transitions.blinds");
-#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add39 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp8_);
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp9_ = core_ids;
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp9__length1 = core_ids_length1;
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp10_ = g_strdup ("org.yorba.shotwell.transitions.circle");
-#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add40 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp10_);
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp11_ = core_ids;
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp11__length1 = core_ids_length1;
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp12_ = g_strdup ("org.yorba.shotwell.transitions.circles");
-#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add41 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp12_);
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp13_ = core_ids;
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp13__length1 = core_ids_length1;
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp14_ = g_strdup ("org.yorba.shotwell.transitions.clock");
-#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add42 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp14_);
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp15_ = core_ids;
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp15__length1 = core_ids_length1;
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp16_ = g_strdup ("org.yorba.shotwell.transitions.stripes");
-#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add43 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp16_);
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp17_ = core_ids;
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp17__length1 = core_ids_length1;
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp18_ = g_strdup ("org.yorba.shotwell.transitions.squares");
-#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add44 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp18_);
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp19_ = core_ids;
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp19__length1 = core_ids_length1;
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp20_ = g_strdup ("org.yorba.shotwell.transitions.chess");
-#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _vala_array_add45 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp20_);
-#line 22 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp21_ = core_ids;
-#line 22 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- _tmp21__length1 = core_ids_length1;
-#line 22 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- plugins_register_extension_point (SPIT_TRANSITIONS_TYPE_DESCRIPTOR, _ ("Slideshow Transitions"), RESOURCES_ICON_SLIDESHOW_EXTENSION_POINT, _tmp21_, _tmp21__length1);
-#line 24 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- transition_effects_manager_init ();
-#line 9 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL);
-#line 437 "Slideshow.c"
-}
-
-
-void
-slideshow_terminate (void)
-{
-#line 28 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
- transition_effects_manager_terminate ();
-#line 446 "Slideshow.c"
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/slideshow/TransitionEffects.c b/src/slideshow/TransitionEffects.c
deleted file mode 100644
index b19b640..0000000
--- a/src/slideshow/TransitionEffects.c
+++ /dev/null
@@ -1,2886 +0,0 @@
-/* TransitionEffects.c generated by valac 0.40.4, the Vala compiler
- * generated from TransitionEffects.vala, do not modify */
-
-/* Copyright 2010 Maxim Kartashev
- * Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <glib/gi18n-lib.h>
-#include <float.h>
-#include <math.h>
-#include <cairo.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_TRANSITION_EFFECTS_MANAGER (transition_effects_manager_get_type ())
-#define TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager))
-#define TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass))
-#define IS_TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_EFFECTS_MANAGER))
-#define IS_TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_EFFECTS_MANAGER))
-#define TRANSITION_EFFECTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass))
-
-typedef struct _TransitionEffectsManager TransitionEffectsManager;
-typedef struct _TransitionEffectsManagerClass TransitionEffectsManagerClass;
-typedef struct _TransitionEffectsManagerPrivate TransitionEffectsManagerPrivate;
-
-#define PLUGINS_TYPE_NOTIFIER (plugins_notifier_get_type ())
-#define PLUGINS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifier))
-#define PLUGINS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass))
-#define PLUGINS_IS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_NOTIFIER))
-#define PLUGINS_IS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_NOTIFIER))
-#define PLUGINS_NOTIFIER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass))
-
-typedef struct _PluginsNotifier PluginsNotifier;
-typedef struct _PluginsNotifierClass PluginsNotifierClass;
-#define _plugins_notifier_unref0(var) ((var == NULL) ? NULL : (var = (plugins_notifier_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define TYPE_NULL_TRANSITION_DESCRIPTOR (null_transition_descriptor_get_type ())
-#define NULL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor))
-#define NULL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptorClass))
-#define IS_NULL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NULL_TRANSITION_DESCRIPTOR))
-#define IS_NULL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NULL_TRANSITION_DESCRIPTOR))
-#define NULL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptorClass))
-
-typedef struct _NullTransitionDescriptor NullTransitionDescriptor;
-typedef struct _NullTransitionDescriptorClass NullTransitionDescriptorClass;
-
-#define TYPE_RANDOM_EFFECT_DESCRIPTOR (random_effect_descriptor_get_type ())
-#define RANDOM_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor))
-#define RANDOM_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptorClass))
-#define IS_RANDOM_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RANDOM_EFFECT_DESCRIPTOR))
-#define IS_RANDOM_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RANDOM_EFFECT_DESCRIPTOR))
-#define RANDOM_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptorClass))
-
-typedef struct _RandomEffectDescriptor RandomEffectDescriptor;
-typedef struct _RandomEffectDescriptorClass RandomEffectDescriptorClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _transition_effects_manager_unref0(var) ((var == NULL) ? NULL : (var = (transition_effects_manager_unref (var), NULL)))
-
-#define TYPE_TRANSITION_CLOCK (transition_clock_get_type ())
-#define TRANSITION_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_CLOCK, TransitionClock))
-#define TRANSITION_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_CLOCK, TransitionClockClass))
-#define IS_TRANSITION_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_CLOCK))
-#define IS_TRANSITION_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_CLOCK))
-#define TRANSITION_CLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_CLOCK, TransitionClockClass))
-
-typedef struct _TransitionClock TransitionClock;
-typedef struct _TransitionClockClass TransitionClockClass;
-#define _transition_clock_unref0(var) ((var == NULL) ? NULL : (var = (transition_clock_unref (var), NULL)))
-typedef struct _ParamSpecTransitionEffectsManager ParamSpecTransitionEffectsManager;
-typedef struct _TransitionClockPrivate TransitionClockPrivate;
-
-#define TYPE_OP_TIMER (op_timer_get_type ())
-#define OP_TIMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OP_TIMER, OpTimer))
-#define OP_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OP_TIMER, OpTimerClass))
-#define IS_OP_TIMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OP_TIMER))
-#define IS_OP_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OP_TIMER))
-#define OP_TIMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OP_TIMER, OpTimerClass))
-
-typedef struct _OpTimer OpTimer;
-typedef struct _OpTimerClass OpTimerClass;
-#define _op_timer_unref0(var) ((var == NULL) ? NULL : (var = (op_timer_unref (var), NULL)))
-
-#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ())
-#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface))
-#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
-#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
-
-typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface;
-typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass;
-typedef struct _ParamSpecTransitionClock ParamSpecTransitionClock;
-typedef struct _NullTransitionDescriptorPrivate NullTransitionDescriptorPrivate;
-enum {
- NULL_TRANSITION_DESCRIPTOR_0_PROPERTY,
- NULL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES
-};
-static GParamSpec* null_transition_descriptor_properties[NULL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES];
-
-#define TYPE_NULL_EFFECT (null_effect_get_type ())
-#define NULL_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NULL_EFFECT, NullEffect))
-#define NULL_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NULL_EFFECT, NullEffectClass))
-#define IS_NULL_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NULL_EFFECT))
-#define IS_NULL_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NULL_EFFECT))
-#define NULL_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NULL_EFFECT, NullEffectClass))
-
-typedef struct _NullEffect NullEffect;
-typedef struct _NullEffectClass NullEffectClass;
-typedef struct _NullEffectPrivate NullEffectPrivate;
-enum {
- NULL_EFFECT_0_PROPERTY,
- NULL_EFFECT_NUM_PROPERTIES
-};
-static GParamSpec* null_effect_properties[NULL_EFFECT_NUM_PROPERTIES];
-typedef struct _RandomEffectDescriptorPrivate RandomEffectDescriptorPrivate;
-enum {
- RANDOM_EFFECT_DESCRIPTOR_0_PROPERTY,
- RANDOM_EFFECT_DESCRIPTOR_NUM_PROPERTIES
-};
-static GParamSpec* random_effect_descriptor_properties[RANDOM_EFFECT_DESCRIPTOR_NUM_PROPERTIES];
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _TransitionEffectsManager {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TransitionEffectsManagerPrivate * priv;
-};
-
-struct _TransitionEffectsManagerClass {
- GTypeClass parent_class;
- void (*finalize) (TransitionEffectsManager *self);
-};
-
-struct _TransitionEffectsManagerPrivate {
- GeeMap* effects;
- SpitTransitionsDescriptor* null_descriptor;
- SpitTransitionsDescriptor* random_descriptor;
-};
-
-struct _ParamSpecTransitionEffectsManager {
- GParamSpec parent_instance;
-};
-
-struct _TransitionClock {
- GTypeInstance parent_instance;
- volatile int ref_count;
- TransitionClockPrivate * priv;
-};
-
-struct _TransitionClockClass {
- GTypeClass parent_class;
- void (*finalize) (TransitionClock *self);
-};
-
-typedef void (*TransitionClockRepaintCallback) (void* user_data);
-struct _TransitionClockPrivate {
- SpitTransitionsDescriptor* desc;
- SpitTransitionsEffect* effect;
- gint desired_fps;
- gint min_fps;
- gint current_fps;
- OpTimer* paint_timer;
- SpitTransitionsVisuals* visuals;
- SpitTransitionsMotion* motion;
- TransitionClockRepaintCallback repaint;
- gpointer repaint_target;
- guint timer_id;
- gulong time_started;
- gint frame_number;
- gboolean cancelled;
-};
-
-struct _ParamSpecTransitionClock {
- GParamSpec parent_instance;
-};
-
-struct _NullTransitionDescriptor {
- GObject parent_instance;
- NullTransitionDescriptorPrivate * priv;
-};
-
-struct _NullTransitionDescriptorClass {
- GObjectClass parent_class;
-};
-
-struct _NullEffect {
- GObject parent_instance;
- NullEffectPrivate * priv;
-};
-
-struct _NullEffectClass {
- GObjectClass parent_class;
-};
-
-struct _RandomEffectDescriptor {
- GObject parent_instance;
- RandomEffectDescriptorPrivate * priv;
-};
-
-struct _RandomEffectDescriptorClass {
- GObjectClass parent_class;
-};
-
-
-static gpointer transition_effects_manager_parent_class = NULL;
-static TransitionEffectsManager* transition_effects_manager_instance;
-static TransitionEffectsManager* transition_effects_manager_instance = NULL;
-static gpointer transition_clock_parent_class = NULL;
-static gpointer null_transition_descriptor_parent_class = NULL;
-static SpitPluggableIface * null_transition_descriptor_spit_pluggable_parent_iface = NULL;
-static SpitTransitionsDescriptorIface * null_transition_descriptor_spit_transitions_descriptor_parent_iface = NULL;
-static gpointer null_effect_parent_class = NULL;
-static SpitTransitionsEffectIface * null_effect_spit_transitions_effect_parent_iface = NULL;
-static gpointer random_effect_descriptor_parent_class = NULL;
-static SpitPluggableIface * random_effect_descriptor_spit_pluggable_parent_iface = NULL;
-static SpitTransitionsDescriptorIface * random_effect_descriptor_spit_transitions_descriptor_parent_iface = NULL;
-
-gpointer transition_effects_manager_ref (gpointer instance);
-void transition_effects_manager_unref (gpointer instance);
-GParamSpec* param_spec_transition_effects_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transition_effects_manager (GValue* value,
- gpointer v_object);
-void value_take_transition_effects_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_transition_effects_manager (const GValue* value);
-GType transition_effects_manager_get_type (void) G_GNUC_CONST;
-#define TRANSITION_EFFECTS_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerPrivate))
-gpointer plugins_notifier_ref (gpointer instance);
-void plugins_notifier_unref (gpointer instance);
-GParamSpec* plugins_param_spec_notifier (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void plugins_value_set_notifier (GValue* value,
- gpointer v_object);
-void plugins_value_take_notifier (GValue* value,
- gpointer v_object);
-gpointer plugins_value_get_notifier (const GValue* value);
-GType plugins_notifier_get_type (void) G_GNUC_CONST;
-PluginsNotifier* plugins_notifier_get_instance (void);
-static void transition_effects_manager_load_transitions (TransitionEffectsManager* self);
-static void _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation (PluginsNotifier* _sender,
- SpitPluggable* pluggable,
- gboolean enabled,
- gpointer self);
-NullTransitionDescriptor* null_transition_descriptor_new (void);
-NullTransitionDescriptor* null_transition_descriptor_construct (GType object_type);
-GType null_transition_descriptor_get_type (void) G_GNUC_CONST;
-RandomEffectDescriptor* random_effect_descriptor_new (void);
-RandomEffectDescriptor* random_effect_descriptor_construct (GType object_type);
-GType random_effect_descriptor_get_type (void) G_GNUC_CONST;
-#define NULL_TRANSITION_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.null"
-#define TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID NULL_TRANSITION_DESCRIPTOR_EFFECT_ID
-#define RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.random"
-#define TRANSITION_EFFECTS_MANAGER_RANDOM_EFFECT_ID RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID
-static TransitionEffectsManager* transition_effects_manager_new (void);
-static TransitionEffectsManager* transition_effects_manager_construct (GType object_type);
-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);
-void transition_effects_manager_init (void);
-void transition_effects_manager_terminate (void);
-TransitionEffectsManager* transition_effects_manager_get_instance (void);
-GeeCollection* transition_effects_manager_get_effect_ids (TransitionEffectsManager* self);
-GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsManager* self,
- GCompareDataFunc comparator,
- void* comparator_target,
- GDestroyNotify comparator_target_destroy_notify);
-gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self,
- const gchar* effect_name);
-SpitTransitionsDescriptor* transition_effects_manager_get_effect_descriptor (TransitionEffectsManager* self,
- const gchar* effect_id);
-gchar* transition_effects_manager_get_effect_name (TransitionEffectsManager* self,
- const gchar* effect_id);
-SpitTransitionsDescriptor* transition_effects_manager_get_null_descriptor (TransitionEffectsManager* self);
-gpointer transition_clock_ref (gpointer instance);
-void transition_clock_unref (gpointer instance);
-GParamSpec* param_spec_transition_clock (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_transition_clock (GValue* value,
- gpointer v_object);
-void value_take_transition_clock (GValue* value,
- gpointer v_object);
-gpointer value_get_transition_clock (const GValue* value);
-GType transition_clock_get_type (void) G_GNUC_CONST;
-TransitionClock* transition_effects_manager_create_transition_clock (TransitionEffectsManager* self,
- const gchar* effect_id);
-TransitionClock* transition_clock_new (SpitTransitionsDescriptor* desc);
-TransitionClock* transition_clock_construct (GType object_type,
- SpitTransitionsDescriptor* desc);
-TransitionClock* transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self);
-static void transition_effects_manager_finalize (TransitionEffectsManager * obj);
-gpointer op_timer_ref (gpointer instance);
-void op_timer_unref (gpointer instance);
-GParamSpec* param_spec_op_timer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_op_timer (GValue* value,
- gpointer v_object);
-void value_take_op_timer (GValue* value,
- gpointer v_object);
-gpointer value_get_op_timer (const GValue* value);
-GType op_timer_get_type (void) G_GNUC_CONST;
-#define TRANSITION_CLOCK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRANSITION_CLOCK, TransitionClockPrivate))
-static void transition_clock_cancel_timer (TransitionClock* self);
-gchar* op_timer_to_string (OpTimer* self);
-PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable,
- const gchar* config_domain);
-PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type,
- SpitPluggable* pluggable,
- const gchar* config_domain);
-GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST;
-OpTimer* op_timer_new (const gchar* name);
-OpTimer* op_timer_construct (GType object_type,
- const gchar* name);
-gboolean transition_clock_is_in_progress (TransitionClock* self);
-void transition_clock_start (TransitionClock* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsDirection direction,
- gint duration_msec,
- TransitionClockRepaintCallback repaint,
- void* repaint_target);
-static void transition_clock_reset (TransitionClock* self);
-gulong now_ms (void);
-static gboolean transition_clock_tick (TransitionClock* self);
-static gboolean _transition_clock_tick_gsource_func (gpointer self);
-static gboolean transition_clock_is_fps_ok (TransitionClock* self);
-void transition_clock_cancel (TransitionClock* self);
-gboolean transition_clock_paint (TransitionClock* self,
- cairo_t* ctx,
- gint width,
- gint height);
-void op_timer_start (OpTimer* self);
-void op_timer_stop (OpTimer* self);
-static void transition_clock_finalize (TransitionClock * obj);
-static gint null_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base,
- gint min_host_version,
- gint max_host_version);
-static const gchar* null_transition_descriptor_real_get_id (SpitPluggable* base);
-static const gchar* null_transition_descriptor_real_get_pluggable_name (SpitPluggable* base);
-static void null_transition_descriptor_real_get_info (SpitPluggable* base,
- SpitPluggableInfo* info);
-static void null_transition_descriptor_real_activation (SpitPluggable* base,
- gboolean enabled);
-static SpitTransitionsEffect* null_transition_descriptor_real_create (SpitTransitionsDescriptor* base,
- SpitHostInterface* host);
-NullEffect* null_effect_new (void);
-NullEffect* null_effect_construct (GType object_type);
-GType null_effect_get_type (void) G_GNUC_CONST;
-static void null_effect_real_get_fps (SpitTransitionsEffect* base,
- gint* desired_fps,
- gint* min_fps);
-static void null_effect_real_start (SpitTransitionsEffect* base,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion);
-static gboolean null_effect_real_needs_clear_background (SpitTransitionsEffect* base);
-static void null_effect_real_paint (SpitTransitionsEffect* base,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion,
- cairo_t* ctx,
- gint width,
- gint height,
- gint frame_number);
-static void null_effect_real_advance (SpitTransitionsEffect* base,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion,
- gint frame_number);
-static void null_effect_real_cancel (SpitTransitionsEffect* base);
-static gint random_effect_descriptor_real_get_pluggable_interface (SpitPluggable* base,
- gint min_host_version,
- gint max_host_version);
-static const gchar* random_effect_descriptor_real_get_id (SpitPluggable* base);
-static const gchar* random_effect_descriptor_real_get_pluggable_name (SpitPluggable* base);
-static void random_effect_descriptor_real_get_info (SpitPluggable* base,
- SpitPluggableInfo* info);
-static void random_effect_descriptor_real_activation (SpitPluggable* base,
- gboolean enabled);
-static SpitTransitionsEffect* random_effect_descriptor_real_create (SpitTransitionsDescriptor* base,
- SpitHostInterface* host);
-
-
-static void
-_transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation (PluginsNotifier* _sender,
- SpitPluggable* pluggable,
- gboolean enabled,
- gpointer self)
-{
-#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_load_transitions ((TransitionEffectsManager*) self);
-#line 418 "TransitionEffects.c"
-}
-
-
-static TransitionEffectsManager*
-transition_effects_manager_construct (GType object_type)
-{
- TransitionEffectsManager* self = NULL;
- PluginsNotifier* _tmp0_;
- PluginsNotifier* _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = (TransitionEffectsManager*) g_type_create_instance (object_type);
-#line 20 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_load_transitions (self);
-#line 21 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = plugins_notifier_get_instance ();
-#line 21 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_signal_connect (_tmp1_, "pluggable-activation", (GCallback) _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation, self);
-#line 21 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _plugins_notifier_unref0 (_tmp1_);
-#line 19 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return self;
-#line 442 "TransitionEffects.c"
-}
-
-
-static TransitionEffectsManager*
-transition_effects_manager_new (void)
-{
-#line 19 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return transition_effects_manager_construct (TYPE_TRANSITION_EFFECTS_MANAGER);
-#line 451 "TransitionEffects.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return self ? g_object_ref (self) : NULL;
-#line 460 "TransitionEffects.c"
-}
-
-
-static void
-transition_effects_manager_load_transitions (TransitionEffectsManager* self)
-{
- GeeMap* _tmp0_;
- GeeMap* _tmp1_;
- SpitTransitionsDescriptor* _tmp2_;
- const gchar* _tmp3_;
- SpitTransitionsDescriptor* _tmp4_;
- GeeMap* _tmp5_;
- SpitTransitionsDescriptor* _tmp6_;
- const gchar* _tmp7_;
- SpitTransitionsDescriptor* _tmp8_;
- GeeCollection* pluggables = NULL;
- GeeCollection* _tmp9_;
-#line 28 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self));
-#line 29 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->effects;
-#line 29 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- gee_map_clear (_tmp0_);
-#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = self->priv->effects;
-#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = self->priv->null_descriptor;
-#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = self->priv->null_descriptor;
-#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- gee_map_set (_tmp1_, _tmp3_, _tmp4_);
-#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = self->priv->effects;
-#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = self->priv->random_descriptor;
-#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = self->priv->random_descriptor;
-#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- gee_map_set (_tmp5_, _tmp7_, _tmp8_);
-#line 36 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp9_ = plugins_get_pluggables_for_type (SPIT_TRANSITIONS_TYPE_DESCRIPTOR, NULL, NULL, NULL, FALSE);
-#line 36 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- pluggables = _tmp9_;
-#line 508 "TransitionEffects.c"
- {
- GeeIterator* _pluggable_it = NULL;
- GeeCollection* _tmp10_;
- GeeIterator* _tmp11_;
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp10_ = pluggables;
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _pluggable_it = _tmp11_;
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- while (TRUE) {
-#line 521 "TransitionEffects.c"
- GeeIterator* _tmp12_;
- SpitPluggable* pluggable = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- gint pluggable_interface = 0;
- SpitPluggable* _tmp15_;
- gint _tmp16_;
- SpitTransitionsDescriptor* desc = NULL;
- SpitPluggable* _tmp21_;
- SpitTransitionsDescriptor* _tmp22_;
- GeeMap* _tmp23_;
- SpitTransitionsDescriptor* _tmp24_;
- const gchar* _tmp25_;
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp12_ = _pluggable_it;
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- break;
-#line 541 "TransitionEffects.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp13_ = _pluggable_it;
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- pluggable = (SpitPluggable*) _tmp14_;
-#line 39 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp15_ = pluggable;
-#line 39 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- pluggable_interface = spit_pluggable_get_pluggable_interface (_tmp15_, SPIT_TRANSITIONS_CURRENT_INTERFACE, SPIT_TRANSITIONS_CURRENT_INTERFACE);
-#line 41 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp16_ = pluggable_interface;
-#line 41 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp16_ != SPIT_TRANSITIONS_CURRENT_INTERFACE) {
-#line 557 "TransitionEffects.c"
- SpitPluggable* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gint _tmp20_;
-#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp17_ = pluggable;
-#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp18_ = plugins_get_pluggable_module_id (_tmp17_);
-#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp19_ = _tmp18_;
-#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp20_ = pluggable_interface;
-#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_warning ("TransitionEffects.vala:42: Unable to load transitions plug-in %s: repo" \
-"rted interface %d", _tmp19_, _tmp20_);
-#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_free0 (_tmp19_);
-#line 45 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (pluggable);
-#line 45 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- continue;
-#line 578 "TransitionEffects.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp21_ = pluggable;
-#line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor));
-#line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- desc = _tmp22_;
-#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp23_ = self->priv->effects;
-#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp24_ = desc;
-#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp25_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (gee_map_has_key (_tmp23_, _tmp25_)) {
-#line 594 "TransitionEffects.c"
- SpitTransitionsDescriptor* _tmp26_;
- const gchar* _tmp27_;
-#line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp26_ = desc;
-#line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp27_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_warning ("TransitionEffects.vala:50: Multiple transitions loaded with same effec" \
-"t ID %s", _tmp27_);
-#line 603 "TransitionEffects.c"
- } else {
- GeeMap* _tmp28_;
- SpitTransitionsDescriptor* _tmp29_;
- const gchar* _tmp30_;
- SpitTransitionsDescriptor* _tmp31_;
-#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp28_ = self->priv->effects;
-#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp29_ = desc;
-#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp30_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp31_ = desc;
-#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- gee_map_set (_tmp28_, _tmp30_, _tmp31_);
-#line 619 "TransitionEffects.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (desc);
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (pluggable);
-#line 625 "TransitionEffects.c"
- }
-#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (_pluggable_it);
-#line 629 "TransitionEffects.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (pluggables);
-#line 633 "TransitionEffects.c"
-}
-
-
-void
-transition_effects_manager_init (void)
-{
- TransitionEffectsManager* _tmp0_;
-#line 57 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = transition_effects_manager_new ();
-#line 57 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _transition_effects_manager_unref0 (transition_effects_manager_instance);
-#line 57 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_instance = _tmp0_;
-#line 647 "TransitionEffects.c"
-}
-
-
-void
-transition_effects_manager_terminate (void)
-{
-#line 61 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _transition_effects_manager_unref0 (transition_effects_manager_instance);
-#line 61 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_instance = NULL;
-#line 658 "TransitionEffects.c"
-}
-
-
-static gpointer
-_transition_effects_manager_ref0 (gpointer self)
-{
-#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return self ? transition_effects_manager_ref (self) : NULL;
-#line 667 "TransitionEffects.c"
-}
-
-
-TransitionEffectsManager*
-transition_effects_manager_get_instance (void)
-{
- TransitionEffectsManager* result = NULL;
- TransitionEffectsManager* _tmp0_;
- TransitionEffectsManager* _tmp1_;
- TransitionEffectsManager* _tmp2_;
-#line 65 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = transition_effects_manager_instance;
-#line 65 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _vala_assert (_tmp0_ != NULL, "instance != null");
-#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = transition_effects_manager_instance;
-#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = _transition_effects_manager_ref0 (_tmp1_);
-#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _tmp2_;
-#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 690 "TransitionEffects.c"
-}
-
-
-GeeCollection*
-transition_effects_manager_get_effect_ids (TransitionEffectsManager* self)
-{
- GeeCollection* result = NULL;
- GeeMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
-#line 70 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL);
-#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->effects;
-#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = gee_map_get_keys (_tmp0_);
-#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = _tmp1_;
-#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 713 "TransitionEffects.c"
-}
-
-
-GeeCollection*
-transition_effects_manager_get_effect_names (TransitionEffectsManager* self,
- GCompareDataFunc comparator,
- void* comparator_target,
- GDestroyNotify comparator_target_destroy_notify)
-{
- GeeCollection* result = NULL;
- GeeCollection* effect_names = NULL;
- GCompareDataFunc _tmp0_;
- void* _tmp0__target;
- GDestroyNotify _tmp0__target_destroy_notify;
- GeeTreeSet* _tmp1_;
-#line 74 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL);
-#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = comparator;
-#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0__target = comparator_target;
-#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0__target_destroy_notify = comparator_target_destroy_notify;
-#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- comparator = NULL;
-#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- comparator_target = NULL;
-#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- comparator_target_destroy_notify = NULL;
-#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify);
-#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- effect_names = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 747 "TransitionEffects.c"
- {
- GeeIterator* _desc_it = NULL;
- GeeMap* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
- GeeIterator* _tmp7_;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = self->priv->effects;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = gee_map_get_values (_tmp2_);
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = _tmp3_;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = _tmp4_;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = _tmp6_;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (_tmp5_);
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _desc_it = _tmp7_;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- while (TRUE) {
-#line 774 "TransitionEffects.c"
- GeeIterator* _tmp8_;
- SpitTransitionsDescriptor* desc = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- GeeCollection* _tmp11_;
- SpitTransitionsDescriptor* _tmp12_;
- const gchar* _tmp13_;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = _desc_it;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- break;
-#line 788 "TransitionEffects.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp9_ = _desc_it;
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- desc = (SpitTransitionsDescriptor*) _tmp10_;
-#line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp11_ = effect_names;
-#line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp12_ = desc;
-#line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp13_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- gee_collection_add (_tmp11_, _tmp13_);
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (desc);
-#line 806 "TransitionEffects.c"
- }
-#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (_desc_it);
-#line 810 "TransitionEffects.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = effect_names;
-#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL);
-#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- comparator = NULL;
-#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- comparator_target = NULL;
-#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- comparator_target_destroy_notify = NULL;
-#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 824 "TransitionEffects.c"
-}
-
-
-gchar*
-transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self,
- const gchar* effect_name)
-{
- gchar* result = NULL;
-#line 82 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL);
-#line 82 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (effect_name != NULL, NULL);
-#line 837 "TransitionEffects.c"
- {
- GeeIterator* _desc_it = NULL;
- GeeMap* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->effects;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = gee_map_get_values (_tmp0_);
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = _tmp1_;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = _tmp2_;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = _tmp4_;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (_tmp3_);
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _desc_it = _tmp5_;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- while (TRUE) {
-#line 864 "TransitionEffects.c"
- GeeIterator* _tmp6_;
- SpitTransitionsDescriptor* desc = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- SpitTransitionsDescriptor* _tmp9_;
- const gchar* _tmp10_;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = _desc_it;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!gee_iterator_next (_tmp6_)) {
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- break;
-#line 877 "TransitionEffects.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = _desc_it;
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- desc = (SpitTransitionsDescriptor*) _tmp8_;
-#line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp9_ = desc;
-#line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp10_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (g_strcmp0 (_tmp10_, effect_name) == 0) {
-#line 891 "TransitionEffects.c"
- SpitTransitionsDescriptor* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
-#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp11_ = desc;
-#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp12_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _tmp13_;
-#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (desc);
-#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (_desc_it);
-#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 909 "TransitionEffects.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (desc);
-#line 913 "TransitionEffects.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (_desc_it);
-#line 917 "TransitionEffects.c"
- }
-#line 88 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = NULL;
-#line 88 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 923 "TransitionEffects.c"
-}
-
-
-SpitTransitionsDescriptor*
-transition_effects_manager_get_effect_descriptor (TransitionEffectsManager* self,
- const gchar* effect_id)
-{
- SpitTransitionsDescriptor* result = NULL;
- GeeMap* _tmp0_;
- gpointer _tmp1_;
-#line 91 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL);
-#line 91 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (effect_id != NULL, NULL);
-#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->effects;
-#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = gee_map_get (_tmp0_, effect_id);
-#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = (SpitTransitionsDescriptor*) _tmp1_;
-#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 946 "TransitionEffects.c"
-}
-
-
-gchar*
-transition_effects_manager_get_effect_name (TransitionEffectsManager* self,
- const gchar* effect_id)
-{
- gchar* result = NULL;
- SpitTransitionsDescriptor* desc = NULL;
- SpitTransitionsDescriptor* _tmp0_;
- const gchar* _tmp1_ = NULL;
- SpitTransitionsDescriptor* _tmp2_;
- gchar* _tmp5_;
-#line 95 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL);
-#line 95 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (effect_id != NULL, NULL);
-#line 96 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = transition_effects_manager_get_effect_descriptor (self, effect_id);
-#line 96 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- desc = _tmp0_;
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = desc;
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp2_ != NULL) {
-#line 972 "TransitionEffects.c"
- SpitTransitionsDescriptor* _tmp3_;
- const gchar* _tmp4_;
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = desc;
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = _tmp4_;
-#line 981 "TransitionEffects.c"
- } else {
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = _ ("(None)");
-#line 985 "TransitionEffects.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = g_strdup (_tmp1_);
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _tmp5_;
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (desc);
-#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 995 "TransitionEffects.c"
-}
-
-
-SpitTransitionsDescriptor*
-transition_effects_manager_get_null_descriptor (TransitionEffectsManager* self)
-{
- SpitTransitionsDescriptor* result = NULL;
- SpitTransitionsDescriptor* _tmp0_;
- SpitTransitionsDescriptor* _tmp1_;
-#line 101 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL);
-#line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->null_descriptor;
-#line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _tmp1_;
-#line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1015 "TransitionEffects.c"
-}
-
-
-TransitionClock*
-transition_effects_manager_create_transition_clock (TransitionEffectsManager* self,
- const gchar* effect_id)
-{
- TransitionClock* result = NULL;
- SpitTransitionsDescriptor* desc = NULL;
- SpitTransitionsDescriptor* _tmp0_;
- TransitionClock* _tmp1_ = NULL;
- SpitTransitionsDescriptor* _tmp2_;
-#line 105 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL);
-#line 105 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (effect_id != NULL, NULL);
-#line 106 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = transition_effects_manager_get_effect_descriptor (self, effect_id);
-#line 106 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- desc = _tmp0_;
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = desc;
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp2_ != NULL) {
-#line 1040 "TransitionEffects.c"
- SpitTransitionsDescriptor* _tmp3_;
- TransitionClock* _tmp4_;
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = desc;
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = transition_clock_new (_tmp3_);
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _transition_clock_unref0 (_tmp1_);
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = _tmp4_;
-#line 1051 "TransitionEffects.c"
- } else {
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _transition_clock_unref0 (_tmp1_);
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = NULL;
-#line 1057 "TransitionEffects.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _tmp1_;
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (desc);
-#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1065 "TransitionEffects.c"
-}
-
-
-TransitionClock*
-transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self)
-{
- TransitionClock* result = NULL;
- SpitTransitionsDescriptor* _tmp0_;
- TransitionClock* _tmp1_;
-#line 111 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL);
-#line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->null_descriptor;
-#line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = transition_clock_new (_tmp0_);
-#line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _tmp1_;
-#line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1085 "TransitionEffects.c"
-}
-
-
-static void
-value_transition_effects_manager_init (GValue* value)
-{
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = NULL;
-#line 1094 "TransitionEffects.c"
-}
-
-
-static void
-value_transition_effects_manager_free_value (GValue* value)
-{
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (value->data[0].v_pointer) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_unref (value->data[0].v_pointer);
-#line 1105 "TransitionEffects.c"
- }
-}
-
-
-static void
-value_transition_effects_manager_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (src_value->data[0].v_pointer) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- dest_value->data[0].v_pointer = transition_effects_manager_ref (src_value->data[0].v_pointer);
-#line 1118 "TransitionEffects.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1122 "TransitionEffects.c"
- }
-}
-
-
-static gpointer
-value_transition_effects_manager_peek_pointer (const GValue* value)
-{
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return value->data[0].v_pointer;
-#line 1132 "TransitionEffects.c"
-}
-
-
-static gchar*
-value_transition_effects_manager_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (collect_values[0].v_pointer) {
-#line 1144 "TransitionEffects.c"
- TransitionEffectsManager * object;
- object = collect_values[0].v_pointer;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1151 "TransitionEffects.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.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 1155 "TransitionEffects.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = transition_effects_manager_ref (object);
-#line 1159 "TransitionEffects.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = NULL;
-#line 1163 "TransitionEffects.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return NULL;
-#line 1167 "TransitionEffects.c"
-}
-
-
-static gchar*
-value_transition_effects_manager_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TransitionEffectsManager ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!object_p) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1183 "TransitionEffects.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!value->data[0].v_pointer) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- *object_p = NULL;
-#line 1189 "TransitionEffects.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- *object_p = value->data[0].v_pointer;
-#line 1193 "TransitionEffects.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- *object_p = transition_effects_manager_ref (value->data[0].v_pointer);
-#line 1197 "TransitionEffects.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return NULL;
-#line 1201 "TransitionEffects.c"
-}
-
-
-GParamSpec*
-param_spec_transition_effects_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTransitionEffectsManager* spec;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TRANSITION_EFFECTS_MANAGER), NULL);
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return G_PARAM_SPEC (spec);
-#line 1221 "TransitionEffects.c"
-}
-
-
-gpointer
-value_get_transition_effects_manager (const GValue* value)
-{
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER), NULL);
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return value->data[0].v_pointer;
-#line 1232 "TransitionEffects.c"
-}
-
-
-void
-value_set_transition_effects_manager (GValue* value,
- gpointer v_object)
-{
- TransitionEffectsManager * old;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER));
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- old = value->data[0].v_pointer;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (v_object) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSITION_EFFECTS_MANAGER));
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- 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/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = v_object;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_ref (value->data[0].v_pointer);
-#line 1255 "TransitionEffects.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = NULL;
-#line 1259 "TransitionEffects.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (old) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_unref (old);
-#line 1265 "TransitionEffects.c"
- }
-}
-
-
-void
-value_take_transition_effects_manager (GValue* value,
- gpointer v_object)
-{
- TransitionEffectsManager * old;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER));
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- old = value->data[0].v_pointer;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (v_object) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSITION_EFFECTS_MANAGER));
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- 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/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = v_object;
-#line 1287 "TransitionEffects.c"
- } else {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = NULL;
-#line 1291 "TransitionEffects.c"
- }
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (old) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_unref (old);
-#line 1297 "TransitionEffects.c"
- }
-}
-
-
-static void
-transition_effects_manager_class_init (TransitionEffectsManagerClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_effects_manager_parent_class = g_type_class_peek_parent (klass);
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- ((TransitionEffectsManagerClass *) klass)->finalize = transition_effects_manager_finalize;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_type_class_add_private (klass, sizeof (TransitionEffectsManagerPrivate));
-#line 1311 "TransitionEffects.c"
-}
-
-
-static void
-transition_effects_manager_instance_init (TransitionEffectsManager * self)
-{
- GeeHashMap* _tmp0_;
- NullTransitionDescriptor* _tmp1_;
- RandomEffectDescriptor* _tmp2_;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv = TRANSITION_EFFECTS_MANAGER_GET_PRIVATE (self);
-#line 14 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 14 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->effects = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
-#line 16 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = null_transition_descriptor_new ();
-#line 16 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->null_descriptor = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor);
-#line 17 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = random_effect_descriptor_new ();
-#line 17 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->random_descriptor = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor);
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->ref_count = 1;
-#line 1337 "TransitionEffects.c"
-}
-
-
-static void
-transition_effects_manager_finalize (TransitionEffectsManager * obj)
-{
- TransitionEffectsManager * self;
- PluginsNotifier* _tmp0_;
- PluginsNotifier* _tmp1_;
- guint _tmp2_;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager);
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_signal_handlers_destroy (self);
-#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = plugins_notifier_get_instance ();
-#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_signal_parse_name ("pluggable-activation", PLUGINS_TYPE_NOTIFIER, &_tmp2_, NULL, FALSE);
-#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation, self);
-#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _plugins_notifier_unref0 (_tmp1_);
-#line 14 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->effects);
-#line 16 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->null_descriptor);
-#line 17 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->random_descriptor);
-#line 1368 "TransitionEffects.c"
-}
-
-
-GType
-transition_effects_manager_get_type (void)
-{
- static volatile gsize transition_effects_manager_type_id__volatile = 0;
- if (g_once_init_enter (&transition_effects_manager_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_transition_effects_manager_init, value_transition_effects_manager_free_value, value_transition_effects_manager_copy_value, value_transition_effects_manager_peek_pointer, "p", value_transition_effects_manager_collect_value, "p", value_transition_effects_manager_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TransitionEffectsManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transition_effects_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransitionEffectsManager), 0, (GInstanceInitFunc) transition_effects_manager_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType transition_effects_manager_type_id;
- transition_effects_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TransitionEffectsManager", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&transition_effects_manager_type_id__volatile, transition_effects_manager_type_id);
- }
- return transition_effects_manager_type_id__volatile;
-}
-
-
-gpointer
-transition_effects_manager_ref (gpointer instance)
-{
- TransitionEffectsManager * self;
- self = instance;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return instance;
-#line 1397 "TransitionEffects.c"
-}
-
-
-void
-transition_effects_manager_unref (gpointer instance)
-{
- TransitionEffectsManager * self;
- self = instance;
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- TRANSITION_EFFECTS_MANAGER_GET_CLASS (self)->finalize (self);
-#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1412 "TransitionEffects.c"
- }
-}
-
-
-TransitionClock*
-transition_clock_construct (GType object_type,
- SpitTransitionsDescriptor* desc)
-{
- TransitionClock* self = NULL;
- SpitTransitionsDescriptor* _tmp0_;
- PluginsStandardHostInterface* _tmp1_;
- PluginsStandardHostInterface* _tmp2_;
- SpitTransitionsEffect* _tmp3_;
- SpitTransitionsEffect* _tmp4_;
- gint _tmp5_ = 0;
- gint _tmp6_ = 0;
- const gchar* _tmp7_;
- OpTimer* _tmp8_;
-#line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (desc), NULL);
-#line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = (TransitionClock*) g_type_create_instance (object_type);
-#line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = _g_object_ref0 (desc);
-#line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->desc);
-#line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->desc = _tmp0_;
-#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = plugins_standard_host_interface_new (G_TYPE_CHECK_INSTANCE_CAST (desc, SPIT_TYPE_PLUGGABLE, SpitPluggable), "transitions");
-#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = _tmp1_;
-#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = spit_transitions_descriptor_create (desc, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface));
-#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->effect);
-#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->effect = _tmp3_;
-#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (_tmp2_);
-#line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = self->priv->effect;
-#line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_effect_get_fps (_tmp4_, &_tmp5_, &_tmp6_);
-#line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->desired_fps = _tmp5_;
-#line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->min_fps = _tmp6_;
-#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (desc, SPIT_TYPE_PLUGGABLE, SpitPluggable));
-#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = op_timer_new (_tmp7_);
-#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _op_timer_unref0 (self->priv->paint_timer);
-#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->paint_timer = _tmp8_;
-#line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return self;
-#line 1471 "TransitionEffects.c"
-}
-
-
-TransitionClock*
-transition_clock_new (SpitTransitionsDescriptor* desc)
-{
-#line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return transition_clock_construct (TYPE_TRANSITION_CLOCK, desc);
-#line 1480 "TransitionEffects.c"
-}
-
-
-gboolean
-transition_clock_is_in_progress (TransitionClock* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_;
-#line 151 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE);
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = self->priv->cancelled;
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!_tmp2_) {
-#line 1497 "TransitionEffects.c"
- SpitTransitionsMotion* _tmp3_;
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = self->priv->motion;
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = _tmp3_ != NULL;
-#line 1503 "TransitionEffects.c"
- } else {
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = FALSE;
-#line 1507 "TransitionEffects.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp1_) {
-#line 1511 "TransitionEffects.c"
- gint _tmp4_;
- SpitTransitionsMotion* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = self->priv->frame_number;
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = self->priv->motion;
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = spit_transitions_motion_get_total_frames (_tmp5_);
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = _tmp6_;
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = _tmp4_ < _tmp7_;
-#line 1526 "TransitionEffects.c"
- } else {
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = FALSE;
-#line 1530 "TransitionEffects.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1536 "TransitionEffects.c"
-}
-
-
-static gboolean
-_transition_clock_tick_gsource_func (gpointer self)
-{
- gboolean result;
- result = transition_clock_tick ((TransitionClock*) self);
-#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1547 "TransitionEffects.c"
-}
-
-
-void
-transition_clock_start (TransitionClock* self,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsDirection direction,
- gint duration_msec,
- TransitionClockRepaintCallback repaint,
- void* repaint_target)
-{
- gint _tmp0_;
- SpitTransitionsVisuals* _tmp1_;
- gint _tmp2_;
- SpitTransitionsMotion* _tmp3_;
- SpitTransitionsEffect* _tmp4_;
- SpitTransitionsMotion* _tmp5_;
- SpitTransitionsMotion* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 155 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (IS_TRANSITION_CLOCK (self));
-#line 155 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
-#line 157 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_reset (self);
-#line 160 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->desired_fps;
-#line 160 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp0_ == 0) {
-#line 161 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return;
-#line 1580 "TransitionEffects.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = _g_object_ref0 (visuals);
-#line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->visuals);
-#line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->visuals = _tmp1_;
-#line 164 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->repaint = repaint;
-#line 164 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->repaint_target = repaint_target;
-#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = self->priv->desired_fps;
-#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = spit_transitions_motion_new (direction, _tmp2_, duration_msec);
-#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->motion);
-#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->motion = _tmp3_;
-#line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = self->priv->effect;
-#line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = self->priv->motion;
-#line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_effect_start (_tmp4_, visuals, _tmp5_);
-#line 172 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->time_started = now_ms ();
-#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = self->priv->motion;
-#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = spit_transitions_motion_get_tick_msec (_tmp6_);
-#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = _tmp7_;
-#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->timer_id = g_timeout_add_full (G_PRIORITY_HIGH, (guint) _tmp8_, _transition_clock_tick_gsource_func, transition_clock_ref (self), transition_clock_unref);
-#line 1616 "TransitionEffects.c"
-}
-
-
-static void
-transition_clock_reset (TransitionClock* self)
-{
-#line 177 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (IS_TRANSITION_CLOCK (self));
-#line 178 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->visuals);
-#line 178 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->visuals = NULL;
-#line 179 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->motion);
-#line 179 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->motion = NULL;
-#line 180 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->repaint = NULL;
-#line 180 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->repaint_target = NULL;
-#line 181 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_cancel_timer (self);
-#line 182 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->time_started = (gulong) 0;
-#line 183 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->frame_number = 1;
-#line 184 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->current_fps = 0;
-#line 185 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->cancelled = FALSE;
-#line 1647 "TransitionEffects.c"
-}
-
-
-static void
-transition_clock_cancel_timer (TransitionClock* self)
-{
- guint _tmp0_;
-#line 188 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (IS_TRANSITION_CLOCK (self));
-#line 189 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->timer_id;
-#line 189 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp0_ != ((guint) 0)) {
-#line 1661 "TransitionEffects.c"
- guint _tmp1_;
-#line 190 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = self->priv->timer_id;
-#line 190 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_source_remove (_tmp1_);
-#line 191 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->timer_id = (guint) 0;
-#line 1669 "TransitionEffects.c"
- }
-}
-
-
-static gboolean
-transition_clock_is_fps_ok (TransitionClock* self)
-{
- gboolean result = FALSE;
- gulong _tmp0_;
- gint _tmp1_;
- gdouble elapsed_msec = 0.0;
- gulong _tmp2_;
- gdouble _tmp3_;
- gint _tmp4_;
- gdouble _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _tmp12_;
- gint _tmp13_;
-#line 196 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE);
-#line 197 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->time_started;
-#line 197 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _vala_assert (_tmp0_ > ((gulong) 0), "time_started > 0");
-#line 199 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = self->priv->frame_number;
-#line 199 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp1_ <= 3) {
-#line 200 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = TRUE;
-#line 200 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1703 "TransitionEffects.c"
- }
-#line 202 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = self->priv->time_started;
-#line 202 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- elapsed_msec = (gdouble) (now_ms () - _tmp2_);
-#line 203 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = elapsed_msec;
-#line 203 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp3_ <= 0.0) {
-#line 204 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = TRUE;
-#line 204 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1717 "TransitionEffects.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = self->priv->frame_number;
-#line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = elapsed_msec;
-#line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->current_fps = (gint) ((_tmp4_ * 1000.0) / _tmp5_);
-#line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = self->priv->current_fps;
-#line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = self->priv->min_fps;
-#line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp6_ < _tmp7_) {
-#line 1731 "TransitionEffects.c"
- gint _tmp8_;
- gint _tmp9_;
- gdouble _tmp10_;
- gint _tmp11_;
-#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = self->priv->current_fps;
-#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp9_ = self->priv->min_fps;
-#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp10_ = elapsed_msec;
-#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp11_ = self->priv->frame_number;
-#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_debug ("TransitionEffects.vala:208: Transition rate of %dfps below minimum of " \
-"%dfps (elapsed=%lf frames=%d)", _tmp8_, _tmp9_, _tmp10_, _tmp11_);
-#line 1746 "TransitionEffects.c"
- }
-#line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp12_ = self->priv->current_fps;
-#line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp13_ = self->priv->min_fps;
-#line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _tmp12_ >= _tmp13_;
-#line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1756 "TransitionEffects.c"
-}
-
-
-void
-transition_clock_cancel (TransitionClock* self)
-{
- SpitTransitionsEffect* _tmp0_;
- TransitionClockRepaintCallback _tmp1_;
- void* _tmp1__target;
-#line 216 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (IS_TRANSITION_CLOCK (self));
-#line 217 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->cancelled = TRUE;
-#line 218 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_cancel_timer (self);
-#line 219 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->effect;
-#line 219 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_effect_cancel (_tmp0_);
-#line 222 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = self->priv->repaint;
-#line 222 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1__target = self->priv->repaint_target;
-#line 222 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ (_tmp1__target);
-#line 1782 "TransitionEffects.c"
-}
-
-
-gboolean
-transition_clock_paint (TransitionClock* self,
- cairo_t* ctx,
- gint width,
- gint height)
-{
- gboolean result = FALSE;
- OpTimer* _tmp0_;
- SpitTransitionsEffect* _tmp1_;
- SpitTransitionsEffect* _tmp18_;
- SpitTransitionsVisuals* _tmp19_;
- SpitTransitionsMotion* _tmp20_;
- gint _tmp21_;
- OpTimer* _tmp22_;
-#line 227 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE);
-#line 227 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (ctx != NULL, FALSE);
-#line 228 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!transition_clock_is_in_progress (self)) {
-#line 229 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = FALSE;
-#line 229 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1810 "TransitionEffects.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->paint_timer;
-#line 231 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- op_timer_start (_tmp0_);
-#line 233 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- cairo_save (ctx);
-#line 235 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = self->priv->effect;
-#line 235 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (spit_transitions_effect_needs_clear_background (_tmp1_)) {
-#line 1822 "TransitionEffects.c"
- SpitTransitionsVisuals* _tmp2_;
- GdkRGBA _tmp3_ = {0};
- GdkRGBA _tmp4_;
- gdouble _tmp5_;
- SpitTransitionsVisuals* _tmp6_;
- GdkRGBA _tmp7_ = {0};
- GdkRGBA _tmp8_;
- gdouble _tmp9_;
- SpitTransitionsVisuals* _tmp10_;
- GdkRGBA _tmp11_ = {0};
- GdkRGBA _tmp12_;
- gdouble _tmp13_;
- SpitTransitionsVisuals* _tmp14_;
- GdkRGBA _tmp15_ = {0};
- GdkRGBA _tmp16_;
- gdouble _tmp17_;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = self->priv->visuals;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_visuals_get_bg_color (_tmp2_, &_tmp3_);
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = _tmp3_;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = _tmp4_.red;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = self->priv->visuals;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_visuals_get_bg_color (_tmp6_, &_tmp7_);
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = _tmp7_;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp9_ = _tmp8_.green;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp10_ = self->priv->visuals;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_visuals_get_bg_color (_tmp10_, &_tmp11_);
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp12_ = _tmp11_;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp13_ = _tmp12_.blue;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp14_ = self->priv->visuals;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_visuals_get_bg_color (_tmp14_, &_tmp15_);
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp16_ = _tmp15_;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp17_ = _tmp16_.alpha;
-#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- cairo_set_source_rgba (ctx, _tmp5_, _tmp9_, _tmp13_, _tmp17_);
-#line 238 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) width, (gdouble) height);
-#line 239 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- cairo_fill (ctx);
-#line 1877 "TransitionEffects.c"
- }
-#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp18_ = self->priv->effect;
-#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp19_ = self->priv->visuals;
-#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp20_ = self->priv->motion;
-#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp21_ = self->priv->frame_number;
-#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_effect_paint (_tmp18_, _tmp19_, _tmp20_, ctx, width, height, _tmp21_);
-#line 244 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- cairo_restore (ctx);
-#line 246 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp22_ = self->priv->paint_timer;
-#line 246 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- op_timer_stop (_tmp22_);
-#line 248 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = TRUE;
-#line 248 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1899 "TransitionEffects.c"
-}
-
-
-static gboolean
-transition_clock_tick (TransitionClock* self)
-{
- gboolean result = FALSE;
- TransitionClockRepaintCallback _tmp0_;
- void* _tmp0__target;
- gint _tmp1_;
- SpitTransitionsMotion* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 251 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE);
-#line 252 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!transition_clock_is_fps_ok (self)) {
-#line 253 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_debug ("TransitionEffects.vala:253: Cancelling transition: below minimum fps");
-#line 254 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_cancel (self);
-#line 1921 "TransitionEffects.c"
- }
-#line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = self->priv->repaint;
-#line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0__target = self->priv->repaint_target;
-#line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ (_tmp0__target);
-#line 261 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!transition_clock_is_in_progress (self)) {
-#line 262 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_cancel_timer (self);
-#line 264 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = FALSE;
-#line 264 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1937 "TransitionEffects.c"
- }
-#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = self->priv->frame_number;
-#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = self->priv->motion;
-#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = spit_transitions_motion_get_total_frames (_tmp2_);
-#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = _tmp3_;
-#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp1_ < _tmp4_) {
-#line 1949 "TransitionEffects.c"
- SpitTransitionsEffect* _tmp5_;
- SpitTransitionsVisuals* _tmp6_;
- SpitTransitionsMotion* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = self->priv->effect;
-#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = self->priv->visuals;
-#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = self->priv->motion;
-#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = self->priv->frame_number;
-#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->frame_number = _tmp8_ + 1;
-#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp9_ = self->priv->frame_number;
-#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spit_transitions_effect_advance (_tmp5_, _tmp6_, _tmp7_, _tmp9_);
-#line 1969 "TransitionEffects.c"
- }
-#line 271 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = TRUE;
-#line 271 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 1975 "TransitionEffects.c"
-}
-
-
-static void
-value_transition_clock_init (GValue* value)
-{
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = NULL;
-#line 1984 "TransitionEffects.c"
-}
-
-
-static void
-value_transition_clock_free_value (GValue* value)
-{
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (value->data[0].v_pointer) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_unref (value->data[0].v_pointer);
-#line 1995 "TransitionEffects.c"
- }
-}
-
-
-static void
-value_transition_clock_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (src_value->data[0].v_pointer) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- dest_value->data[0].v_pointer = transition_clock_ref (src_value->data[0].v_pointer);
-#line 2008 "TransitionEffects.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2012 "TransitionEffects.c"
- }
-}
-
-
-static gpointer
-value_transition_clock_peek_pointer (const GValue* value)
-{
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return value->data[0].v_pointer;
-#line 2022 "TransitionEffects.c"
-}
-
-
-static gchar*
-value_transition_clock_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (collect_values[0].v_pointer) {
-#line 2034 "TransitionEffects.c"
- TransitionClock * object;
- object = collect_values[0].v_pointer;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2041 "TransitionEffects.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.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 2045 "TransitionEffects.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = transition_clock_ref (object);
-#line 2049 "TransitionEffects.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = NULL;
-#line 2053 "TransitionEffects.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return NULL;
-#line 2057 "TransitionEffects.c"
-}
-
-
-static gchar*
-value_transition_clock_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- TransitionClock ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!object_p) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2073 "TransitionEffects.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (!value->data[0].v_pointer) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- *object_p = NULL;
-#line 2079 "TransitionEffects.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- *object_p = value->data[0].v_pointer;
-#line 2083 "TransitionEffects.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- *object_p = transition_clock_ref (value->data[0].v_pointer);
-#line 2087 "TransitionEffects.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return NULL;
-#line 2091 "TransitionEffects.c"
-}
-
-
-GParamSpec*
-param_spec_transition_clock (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecTransitionClock* spec;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_TRANSITION_CLOCK), NULL);
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return G_PARAM_SPEC (spec);
-#line 2111 "TransitionEffects.c"
-}
-
-
-gpointer
-value_get_transition_clock (const GValue* value)
-{
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK), NULL);
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return value->data[0].v_pointer;
-#line 2122 "TransitionEffects.c"
-}
-
-
-void
-value_set_transition_clock (GValue* value,
- gpointer v_object)
-{
- TransitionClock * old;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK));
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- old = value->data[0].v_pointer;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (v_object) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSITION_CLOCK));
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = v_object;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_ref (value->data[0].v_pointer);
-#line 2145 "TransitionEffects.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = NULL;
-#line 2149 "TransitionEffects.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (old) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_unref (old);
-#line 2155 "TransitionEffects.c"
- }
-}
-
-
-void
-value_take_transition_clock (GValue* value,
- gpointer v_object)
-{
- TransitionClock * old;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK));
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- old = value->data[0].v_pointer;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (v_object) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSITION_CLOCK));
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = v_object;
-#line 2177 "TransitionEffects.c"
- } else {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- value->data[0].v_pointer = NULL;
-#line 2181 "TransitionEffects.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (old) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_unref (old);
-#line 2187 "TransitionEffects.c"
- }
-}
-
-
-static void
-transition_clock_class_init (TransitionClockClass * klass)
-{
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_parent_class = g_type_class_peek_parent (klass);
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- ((TransitionClockClass *) klass)->finalize = transition_clock_finalize;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_type_class_add_private (klass, sizeof (TransitionClockPrivate));
-#line 2201 "TransitionEffects.c"
-}
-
-
-static void
-transition_clock_instance_init (TransitionClock * self)
-{
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv = TRANSITION_CLOCK_GET_PRIVATE (self);
-#line 126 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->current_fps = 0;
-#line 128 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->visuals = NULL;
-#line 129 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->motion = NULL;
-#line 130 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->repaint = NULL;
-#line 130 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->repaint_target = self;
-#line 131 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->timer_id = (guint) 0;
-#line 132 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->time_started = (gulong) 0;
-#line 133 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->frame_number = 0;
-#line 134 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->priv->cancelled = FALSE;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self->ref_count = 1;
-#line 2230 "TransitionEffects.c"
-}
-
-
-static void
-transition_clock_finalize (TransitionClock * obj)
-{
- TransitionClock * self;
- gint _tmp0_ = 0;
- SpitTransitionsMotion* _tmp1_;
- OpTimer* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRANSITION_CLOCK, TransitionClock);
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_signal_handlers_destroy (self);
-#line 146 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- transition_clock_cancel_timer (self);
-#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp1_ = self->priv->motion;
-#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (_tmp1_ != NULL) {
-#line 2256 "TransitionEffects.c"
- SpitTransitionsMotion* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
-#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp2_ = self->priv->motion;
-#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp3_ = spit_transitions_motion_get_tick_msec (_tmp2_);
-#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp4_ = _tmp3_;
-#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = _tmp4_;
-#line 2268 "TransitionEffects.c"
- } else {
-#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = 0;
-#line 2272 "TransitionEffects.c"
- }
-#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp5_ = self->priv->paint_timer;
-#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp6_ = op_timer_to_string (_tmp5_);
-#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp7_ = _tmp6_;
-#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp8_ = self->priv->min_fps;
-#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp9_ = self->priv->desired_fps;
-#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp10_ = self->priv->current_fps;
-#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_debug ("TransitionEffects.vala:147: %s tick_msec=%d min/desired/current fps=%d" \
-"/%d/%d", _tmp7_, _tmp0_, _tmp8_, _tmp9_, _tmp10_);
-#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_free0 (_tmp7_);
-#line 122 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->desc);
-#line 123 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->effect);
-#line 127 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _op_timer_unref0 (self->priv->paint_timer);
-#line 128 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->visuals);
-#line 129 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _g_object_unref0 (self->priv->motion);
-#line 2300 "TransitionEffects.c"
-}
-
-
-GType
-transition_clock_get_type (void)
-{
- static volatile gsize transition_clock_type_id__volatile = 0;
- if (g_once_init_enter (&transition_clock_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_transition_clock_init, value_transition_clock_free_value, value_transition_clock_copy_value, value_transition_clock_peek_pointer, "p", value_transition_clock_collect_value, "p", value_transition_clock_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (TransitionClockClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transition_clock_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransitionClock), 0, (GInstanceInitFunc) transition_clock_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType transition_clock_type_id;
- transition_clock_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TransitionClock", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&transition_clock_type_id__volatile, transition_clock_type_id);
- }
- return transition_clock_type_id__volatile;
-}
-
-
-gpointer
-transition_clock_ref (gpointer instance)
-{
- TransitionClock * self;
- self = instance;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return instance;
-#line 2329 "TransitionEffects.c"
-}
-
-
-void
-transition_clock_unref (gpointer instance)
-{
- TransitionClock * self;
- self = instance;
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- TRANSITION_CLOCK_GET_CLASS (self)->finalize (self);
-#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2344 "TransitionEffects.c"
- }
-}
-
-
-static gint
-null_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base,
- gint min_host_version,
- gint max_host_version)
-{
- NullTransitionDescriptor * self;
- gint result = 0;
-#line 278 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor);
-#line 279 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = SPIT_TRANSITIONS_CURRENT_INTERFACE;
-#line 279 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2362 "TransitionEffects.c"
-}
-
-
-static const gchar*
-null_transition_descriptor_real_get_id (SpitPluggable* base)
-{
- NullTransitionDescriptor * self;
- const gchar* result = NULL;
-#line 282 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor);
-#line 283 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = NULL_TRANSITION_DESCRIPTOR_EFFECT_ID;
-#line 283 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2377 "TransitionEffects.c"
-}
-
-
-static const gchar*
-null_transition_descriptor_real_get_pluggable_name (SpitPluggable* base)
-{
- NullTransitionDescriptor * self;
- const gchar* result = NULL;
-#line 286 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor);
-#line 287 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _ ("None");
-#line 287 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2392 "TransitionEffects.c"
-}
-
-
-static void
-null_transition_descriptor_real_get_info (SpitPluggable* base,
- SpitPluggableInfo* info)
-{
- NullTransitionDescriptor * self;
-#line 290 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor);
-#line 290 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (info != NULL);
-#line 2405 "TransitionEffects.c"
-}
-
-
-static void
-null_transition_descriptor_real_activation (SpitPluggable* base,
- gboolean enabled)
-{
- NullTransitionDescriptor * self;
-#line 293 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor);
-#line 2416 "TransitionEffects.c"
-}
-
-
-static SpitTransitionsEffect*
-null_transition_descriptor_real_create (SpitTransitionsDescriptor* base,
- SpitHostInterface* host)
-{
- NullTransitionDescriptor * self;
- SpitTransitionsEffect* result = NULL;
- NullEffect* _tmp0_;
-#line 296 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor);
-#line 296 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
-#line 297 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = null_effect_new ();
-#line 297 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
-#line 297 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2437 "TransitionEffects.c"
-}
-
-
-NullTransitionDescriptor*
-null_transition_descriptor_construct (GType object_type)
-{
- NullTransitionDescriptor * self = NULL;
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = (NullTransitionDescriptor*) g_object_new (object_type, NULL);
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return self;
-#line 2449 "TransitionEffects.c"
-}
-
-
-NullTransitionDescriptor*
-null_transition_descriptor_new (void)
-{
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return null_transition_descriptor_construct (TYPE_NULL_TRANSITION_DESCRIPTOR);
-#line 2458 "TransitionEffects.c"
-}
-
-
-static void
-null_transition_descriptor_class_init (NullTransitionDescriptorClass * klass)
-{
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- null_transition_descriptor_parent_class = g_type_class_peek_parent (klass);
-#line 2467 "TransitionEffects.c"
-}
-
-
-static void
-null_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface)
-{
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- null_transition_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) null_transition_descriptor_real_get_pluggable_interface;
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_id = (const gchar* (*) (SpitPluggable *)) null_transition_descriptor_real_get_id;
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) null_transition_descriptor_real_get_pluggable_name;
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) null_transition_descriptor_real_get_info;
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->activation = (void (*) (SpitPluggable *, gboolean)) null_transition_descriptor_real_activation;
-#line 2486 "TransitionEffects.c"
-}
-
-
-static void
-null_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface)
-{
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- null_transition_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface);
-#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) null_transition_descriptor_real_create;
-#line 2497 "TransitionEffects.c"
-}
-
-
-static void
-null_transition_descriptor_instance_init (NullTransitionDescriptor * self)
-{
-}
-
-
-GType
-null_transition_descriptor_get_type (void)
-{
- static volatile gsize null_transition_descriptor_type_id__volatile = 0;
- if (g_once_init_enter (&null_transition_descriptor_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (NullTransitionDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_transition_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullTransitionDescriptor), 0, (GInstanceInitFunc) null_transition_descriptor_instance_init, NULL };
- static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) null_transition_descriptor_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo spit_transitions_descriptor_info = { (GInterfaceInitFunc) null_transition_descriptor_spit_transitions_descriptor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType null_transition_descriptor_type_id;
- null_transition_descriptor_type_id = g_type_register_static (G_TYPE_OBJECT, "NullTransitionDescriptor", &g_define_type_info, 0);
- g_type_add_interface_static (null_transition_descriptor_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
- g_type_add_interface_static (null_transition_descriptor_type_id, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, &spit_transitions_descriptor_info);
- g_once_init_leave (&null_transition_descriptor_type_id__volatile, null_transition_descriptor_type_id);
- }
- return null_transition_descriptor_type_id__volatile;
-}
-
-
-NullEffect*
-null_effect_construct (GType object_type)
-{
- NullEffect * self = NULL;
-#line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = (NullEffect*) g_object_new (object_type, NULL);
-#line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return self;
-#line 2533 "TransitionEffects.c"
-}
-
-
-NullEffect*
-null_effect_new (void)
-{
-#line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return null_effect_construct (TYPE_NULL_EFFECT);
-#line 2542 "TransitionEffects.c"
-}
-
-
-static void
-null_effect_real_get_fps (SpitTransitionsEffect* base,
- gint* desired_fps,
- gint* min_fps)
-{
- NullEffect * self;
- gint _vala_desired_fps = 0;
- gint _vala_min_fps = 0;
-#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect);
-#line 306 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _vala_desired_fps = 0;
-#line 307 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _vala_min_fps = 0;
-#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (desired_fps) {
-#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- *desired_fps = _vala_desired_fps;
-#line 2564 "TransitionEffects.c"
- }
-#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- if (min_fps) {
-#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- *min_fps = _vala_min_fps;
-#line 2570 "TransitionEffects.c"
- }
-}
-
-
-static void
-null_effect_real_start (SpitTransitionsEffect* base,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion)
-{
- NullEffect * self;
-#line 310 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect);
-#line 310 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
-#line 310 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
-#line 2587 "TransitionEffects.c"
-}
-
-
-static gboolean
-null_effect_real_needs_clear_background (SpitTransitionsEffect* base)
-{
- NullEffect * self;
- gboolean result = FALSE;
-#line 313 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect);
-#line 314 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = FALSE;
-#line 314 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2602 "TransitionEffects.c"
-}
-
-
-static void
-null_effect_real_paint (SpitTransitionsEffect* base,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion,
- cairo_t* ctx,
- gint width,
- gint height,
- gint frame_number)
-{
- NullEffect * self;
-#line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect);
-#line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
-#line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
-#line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (ctx != NULL);
-#line 2624 "TransitionEffects.c"
-}
-
-
-static void
-null_effect_real_advance (SpitTransitionsEffect* base,
- SpitTransitionsVisuals* visuals,
- SpitTransitionsMotion* motion,
- gint frame_number)
-{
- NullEffect * self;
-#line 321 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect);
-#line 321 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
-#line 321 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
-#line 2641 "TransitionEffects.c"
-}
-
-
-static void
-null_effect_real_cancel (SpitTransitionsEffect* base)
-{
- NullEffect * self;
-#line 324 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect);
-#line 2651 "TransitionEffects.c"
-}
-
-
-static void
-null_effect_class_init (NullEffectClass * klass)
-{
-#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- null_effect_parent_class = g_type_class_peek_parent (klass);
-#line 2660 "TransitionEffects.c"
-}
-
-
-static void
-null_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface)
-{
-#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- null_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
-#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) null_effect_real_get_fps;
-#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) null_effect_real_start;
-#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) null_effect_real_needs_clear_background;
-#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) null_effect_real_paint;
-#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) null_effect_real_advance;
-#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->cancel = (void (*) (SpitTransitionsEffect *)) null_effect_real_cancel;
-#line 2681 "TransitionEffects.c"
-}
-
-
-static void
-null_effect_instance_init (NullEffect * self)
-{
-}
-
-
-GType
-null_effect_get_type (void)
-{
- static volatile gsize null_effect_type_id__volatile = 0;
- if (g_once_init_enter (&null_effect_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (NullEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullEffect), 0, (GInstanceInitFunc) null_effect_instance_init, NULL };
- static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) null_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType null_effect_type_id;
- null_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "NullEffect", &g_define_type_info, 0);
- g_type_add_interface_static (null_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
- g_once_init_leave (&null_effect_type_id__volatile, null_effect_type_id);
- }
- return null_effect_type_id__volatile;
-}
-
-
-static gint
-random_effect_descriptor_real_get_pluggable_interface (SpitPluggable* base,
- gint min_host_version,
- gint max_host_version)
-{
- RandomEffectDescriptor * self;
- gint result = 0;
-#line 330 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor);
-#line 331 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = SPIT_TRANSITIONS_CURRENT_INTERFACE;
-#line 331 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2720 "TransitionEffects.c"
-}
-
-
-static const gchar*
-random_effect_descriptor_real_get_id (SpitPluggable* base)
-{
- RandomEffectDescriptor * self;
- const gchar* result = NULL;
-#line 334 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor);
-#line 335 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID;
-#line 335 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2735 "TransitionEffects.c"
-}
-
-
-static const gchar*
-random_effect_descriptor_real_get_pluggable_name (SpitPluggable* base)
-{
- RandomEffectDescriptor * self;
- const gchar* result = NULL;
-#line 338 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor);
-#line 339 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = _ ("Random");
-#line 339 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2750 "TransitionEffects.c"
-}
-
-
-static void
-random_effect_descriptor_real_get_info (SpitPluggable* base,
- SpitPluggableInfo* info)
-{
- RandomEffectDescriptor * self;
-#line 342 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor);
-#line 342 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_if_fail (info != NULL);
-#line 2763 "TransitionEffects.c"
-}
-
-
-static void
-random_effect_descriptor_real_activation (SpitPluggable* base,
- gboolean enabled)
-{
- RandomEffectDescriptor * self;
-#line 345 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor);
-#line 2774 "TransitionEffects.c"
-}
-
-
-static SpitTransitionsEffect*
-random_effect_descriptor_real_create (SpitTransitionsDescriptor* base,
- SpitHostInterface* host)
-{
- RandomEffectDescriptor * self;
- SpitTransitionsEffect* result = NULL;
- NullEffect* _tmp0_;
-#line 348 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor);
-#line 348 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
-#line 349 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- _tmp0_ = null_effect_new ();
-#line 349 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
-#line 349 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return result;
-#line 2795 "TransitionEffects.c"
-}
-
-
-RandomEffectDescriptor*
-random_effect_descriptor_construct (GType object_type)
-{
- RandomEffectDescriptor * self = NULL;
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- self = (RandomEffectDescriptor*) g_object_new (object_type, NULL);
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return self;
-#line 2807 "TransitionEffects.c"
-}
-
-
-RandomEffectDescriptor*
-random_effect_descriptor_new (void)
-{
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- return random_effect_descriptor_construct (TYPE_RANDOM_EFFECT_DESCRIPTOR);
-#line 2816 "TransitionEffects.c"
-}
-
-
-static void
-random_effect_descriptor_class_init (RandomEffectDescriptorClass * klass)
-{
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- random_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
-#line 2825 "TransitionEffects.c"
-}
-
-
-static void
-random_effect_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface)
-{
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- random_effect_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) random_effect_descriptor_real_get_pluggable_interface;
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_id = (const gchar* (*) (SpitPluggable *)) random_effect_descriptor_real_get_id;
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) random_effect_descriptor_real_get_pluggable_name;
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) random_effect_descriptor_real_get_info;
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->activation = (void (*) (SpitPluggable *, gboolean)) random_effect_descriptor_real_activation;
-#line 2844 "TransitionEffects.c"
-}
-
-
-static void
-random_effect_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface)
-{
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- random_effect_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface);
-#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala"
- iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) random_effect_descriptor_real_create;
-#line 2855 "TransitionEffects.c"
-}
-
-
-static void
-random_effect_descriptor_instance_init (RandomEffectDescriptor * self)
-{
-}
-
-
-GType
-random_effect_descriptor_get_type (void)
-{
- static volatile gsize random_effect_descriptor_type_id__volatile = 0;
- if (g_once_init_enter (&random_effect_descriptor_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (RandomEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) random_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RandomEffectDescriptor), 0, (GInstanceInitFunc) random_effect_descriptor_instance_init, NULL };
- static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) random_effect_descriptor_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo spit_transitions_descriptor_info = { (GInterfaceInitFunc) random_effect_descriptor_spit_transitions_descriptor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType random_effect_descriptor_type_id;
- random_effect_descriptor_type_id = g_type_register_static (G_TYPE_OBJECT, "RandomEffectDescriptor", &g_define_type_info, 0);
- g_type_add_interface_static (random_effect_descriptor_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
- g_type_add_interface_static (random_effect_descriptor_type_id, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, &spit_transitions_descriptor_info);
- g_once_init_leave (&random_effect_descriptor_type_id__volatile, random_effect_descriptor_type_id);
- }
- return random_effect_descriptor_type_id__volatile;
-}
-
-
-
diff --git a/src/tags/HierarchicalTagIndex.c b/src/tags/HierarchicalTagIndex.c
deleted file mode 100644
index 44d6fae..0000000
--- a/src/tags/HierarchicalTagIndex.c
+++ /dev/null
@@ -1,1086 +0,0 @@
-/* HierarchicalTagIndex.c generated by valac 0.40.4, the Vala compiler
- * generated from HierarchicalTagIndex.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-typedef struct _HierarchicalTagIndexPrivate HierarchicalTagIndexPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-typedef struct _ParamSpecHierarchicalTagIndex ParamSpecHierarchicalTagIndex;
-
-struct _HierarchicalTagIndex {
- GTypeInstance parent_instance;
- volatile int ref_count;
- HierarchicalTagIndexPrivate * priv;
-};
-
-struct _HierarchicalTagIndexClass {
- GTypeClass parent_class;
- void (*finalize) (HierarchicalTagIndex *self);
-};
-
-struct _HierarchicalTagIndexPrivate {
- GeeMap* tag_table;
- GeeSortedSet* known_paths;
-};
-
-struct _ParamSpecHierarchicalTagIndex {
- GParamSpec parent_instance;
-};
-
-
-static gpointer hierarchical_tag_index_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-#define HIERARCHICAL_TAG_INDEX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexPrivate))
-HierarchicalTagIndex* hierarchical_tag_index_new (void);
-HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type);
-HierarchicalTagIndex* hierarchical_tag_index_from_paths (GeeCollection* client_paths);
-#define TAG_PATH_SEPARATOR_STRING "/"
-GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
-void hierarchical_tag_index_add_path (HierarchicalTagIndex* self,
- const gchar* tag,
- const gchar* path);
-HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-GeeCollection* tag_source_collection_get_all_names (TagSourceCollection* self);
-GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
-gboolean hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self,
- const gchar* tag);
-GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self);
-gboolean hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self,
- const gchar* path);
-gchar* hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self,
- const gchar* name);
-gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self,
- gchar** names,
- int names_length1,
- int* result_length1);
-static void _vala_array_add68 (gchar** * array,
- int* length,
- int* size,
- gchar* value);
-static void hierarchical_tag_index_finalize (HierarchicalTagIndex * 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);
-
-
-HierarchicalTagIndex*
-hierarchical_tag_index_construct (GType object_type)
-{
- HierarchicalTagIndex* self = NULL;
- GeeHashMap* _tmp0_;
- GeeTreeSet* _tmp1_;
-#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- self = (HierarchicalTagIndex*) g_type_create_instance (object_type);
-#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_ARRAY_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (self->priv->tag_table);
-#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- self->priv->tag_table = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
-#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp1_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (self->priv->known_paths);
-#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- self->priv->known_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return self;
-#line 197 "HierarchicalTagIndex.c"
-}
-
-
-HierarchicalTagIndex*
-hierarchical_tag_index_new (void)
-{
-#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return hierarchical_tag_index_construct (TYPE_HIERARCHICAL_TAG_INDEX);
-#line 206 "HierarchicalTagIndex.c"
-}
-
-
-HierarchicalTagIndex*
-hierarchical_tag_index_from_paths (GeeCollection* client_paths)
-{
- HierarchicalTagIndex* result = NULL;
- GeeCollection* paths = NULL;
- GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- HierarchicalTagIndex* _result_ = NULL;
- HierarchicalTagIndex* _tmp2_;
-#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (client_paths), NULL);
-#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = gee_collection_get_read_only_view (client_paths);
-#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp1_ = _tmp0_;
-#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- paths = _tmp1_;
-#line 19 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp2_ = hierarchical_tag_index_new ();
-#line 19 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _result_ = _tmp2_;
-#line 231 "HierarchicalTagIndex.c"
- {
- GeeIterator* _path_it = NULL;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp3_ = paths;
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _path_it = _tmp4_;
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- while (TRUE) {
-#line 244 "HierarchicalTagIndex.c"
- GeeIterator* _tmp5_;
- gchar* path = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- const gchar* _tmp8_;
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp5_ = _path_it;
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- break;
-#line 256 "HierarchicalTagIndex.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp6_ = _path_it;
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- path = (gchar*) _tmp7_;
-#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp8_ = path;
-#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (g_str_has_prefix (_tmp8_, TAG_PATH_SEPARATOR_STRING)) {
-#line 268 "HierarchicalTagIndex.c"
- GeeCollection* components = NULL;
- const gchar* _tmp9_;
- GeeList* _tmp10_;
-#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp9_ = path;
-#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp10_ = hierarchical_tag_utilities_enumerate_path_components (_tmp9_);
-#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- components = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 278 "HierarchicalTagIndex.c"
- {
- GeeIterator* _component_it = NULL;
- GeeCollection* _tmp11_;
- GeeIterator* _tmp12_;
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp11_ = components;
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _component_it = _tmp12_;
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- while (TRUE) {
-#line 291 "HierarchicalTagIndex.c"
- GeeIterator* _tmp13_;
- gchar* component = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
- HierarchicalTagIndex* _tmp16_;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp13_ = _component_it;
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (!gee_iterator_next (_tmp13_)) {
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- break;
-#line 305 "HierarchicalTagIndex.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp14_ = _component_it;
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- component = (gchar*) _tmp15_;
-#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp16_ = _result_;
-#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp17_ = component;
-#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp18_ = path;
-#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- hierarchical_tag_index_add_path (_tmp16_, _tmp17_, _tmp18_);
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_free0 (component);
-#line 323 "HierarchicalTagIndex.c"
- }
-#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (_component_it);
-#line 327 "HierarchicalTagIndex.c"
- }
-#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (components);
-#line 331 "HierarchicalTagIndex.c"
- } else {
- HierarchicalTagIndex* _tmp19_;
- const gchar* _tmp20_;
- const gchar* _tmp21_;
-#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp19_ = _result_;
-#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp20_ = path;
-#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp21_ = path;
-#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- hierarchical_tag_index_add_path (_tmp19_, _tmp20_, _tmp21_);
-#line 344 "HierarchicalTagIndex.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_free0 (path);
-#line 348 "HierarchicalTagIndex.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (_path_it);
-#line 352 "HierarchicalTagIndex.c"
- }
-#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = _result_;
-#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (paths);
-#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 360 "HierarchicalTagIndex.c"
-}
-
-
-HierarchicalTagIndex*
-hierarchical_tag_index_get_global_index (void)
-{
- HierarchicalTagIndex* result = NULL;
- TagSourceCollection* _tmp0_;
- GeeCollection* _tmp1_;
- GeeCollection* _tmp2_;
- HierarchicalTagIndex* _tmp3_;
- HierarchicalTagIndex* _tmp4_;
-#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = tag_global;
-#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp1_ = tag_source_collection_get_all_names (_tmp0_);
-#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp2_ = _tmp1_;
-#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp3_ = hierarchical_tag_index_from_paths (_tmp2_);
-#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp4_ = _tmp3_;
-#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (_tmp2_);
-#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = _tmp4_;
-#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 389 "HierarchicalTagIndex.c"
-}
-
-
-void
-hierarchical_tag_index_add_path (HierarchicalTagIndex* self,
- const gchar* tag,
- const gchar* path)
-{
- GeeMap* _tmp0_;
- GeeMap* _tmp4_;
- gpointer _tmp5_;
- GeeCollection* _tmp6_;
- GeeSortedSet* _tmp7_;
-#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_if_fail (IS_HIERARCHICAL_TAG_INDEX (self));
-#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_if_fail (tag != NULL);
-#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_if_fail (path != NULL);
-#line 41 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = self->priv->tag_table;
-#line 41 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (!gee_map_has_key (_tmp0_, tag)) {
-#line 413 "HierarchicalTagIndex.c"
- GeeMap* _tmp1_;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
-#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp1_ = self->priv->tag_table;
-#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp2_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp3_ = _tmp2_;
-#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- gee_map_set (_tmp1_, tag, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (_tmp3_);
-#line 427 "HierarchicalTagIndex.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp4_ = self->priv->tag_table;
-#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp5_ = gee_map_get (_tmp4_, tag);
-#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp6_ = (GeeCollection*) _tmp5_;
-#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- gee_collection_add (_tmp6_, path);
-#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (_tmp6_);
-#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp7_ = self->priv->known_paths;
-#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), path);
-#line 443 "HierarchicalTagIndex.c"
-}
-
-
-GeeCollection*
-hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self)
-{
- GeeCollection* result = NULL;
- GeeSortedSet* _tmp0_;
- GeeSortedSet* _tmp1_;
- GeeSortedSet* _tmp2_;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL);
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = self->priv->known_paths;
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp1_ = gee_sorted_set_get_read_only_view (_tmp0_);
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp2_ = _tmp1_;
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 466 "HierarchicalTagIndex.c"
-}
-
-
-gboolean
-hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self,
- const gchar* tag)
-{
- gboolean result = FALSE;
- GeeMap* _tmp0_;
-#line 53 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), FALSE);
-#line 53 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (tag != NULL, FALSE);
-#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = self->priv->tag_table;
-#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = gee_map_has_key (_tmp0_, tag);
-#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 486 "HierarchicalTagIndex.c"
-}
-
-
-GeeCollection*
-hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self)
-{
- GeeCollection* result = NULL;
- GeeMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
-#line 57 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL);
-#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = self->priv->tag_table;
-#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp1_ = gee_map_get_keys (_tmp0_);
-#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp2_ = _tmp1_;
-#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 509 "HierarchicalTagIndex.c"
-}
-
-
-gboolean
-hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self,
- const gchar* path)
-{
- gboolean result = FALSE;
- GeeSortedSet* _tmp0_;
-#line 61 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), FALSE);
-#line 61 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (path != NULL, FALSE);
-#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = self->priv->known_paths;
-#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), path);
-#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 529 "HierarchicalTagIndex.c"
-}
-
-
-gchar*
-hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self,
- const gchar* name)
-{
- gchar* result = NULL;
- GeeCollection* paths = NULL;
- GeeMap* _tmp1_;
- gpointer _tmp2_;
-#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL);
-#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 66 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (!hierarchical_tag_index_is_tag_in_index (self, name)) {
-#line 547 "HierarchicalTagIndex.c"
- gchar* _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = g_strdup (name);
-#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 555 "HierarchicalTagIndex.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp1_ = self->priv->tag_table;
-#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp2_ = gee_map_get (_tmp1_, name);
-#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- paths = (GeeCollection*) _tmp2_;
-#line 563 "HierarchicalTagIndex.c"
- {
- GeeIterator* _path_it = NULL;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp3_ = paths;
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _path_it = _tmp4_;
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- while (TRUE) {
-#line 576 "HierarchicalTagIndex.c"
- GeeIterator* _tmp5_;
- gchar* path = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- GeeList* components = NULL;
- const gchar* _tmp8_;
- GeeList* _tmp9_;
- GeeList* _tmp10_;
- GeeList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gpointer _tmp14_;
- gchar* _tmp15_;
- gboolean _tmp16_;
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp5_ = _path_it;
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- break;
-#line 597 "HierarchicalTagIndex.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp6_ = _path_it;
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- path = (gchar*) _tmp7_;
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp8_ = path;
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp9_ = hierarchical_tag_utilities_enumerate_path_components (_tmp8_);
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- components = _tmp9_;
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp10_ = components;
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp11_ = components;
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp13_ = _tmp12_;
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp14_ = gee_list_get (_tmp10_, _tmp13_ - 1);
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp15_ = (gchar*) _tmp14_;
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp16_ = g_strcmp0 (_tmp15_, name) == 0;
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_free0 (_tmp15_);
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (_tmp16_) {
-#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = path;
-#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (components);
-#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (_path_it);
-#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (paths);
-#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 639 "HierarchicalTagIndex.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (components);
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_free0 (path);
-#line 645 "HierarchicalTagIndex.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (_path_it);
-#line 649 "HierarchicalTagIndex.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_assert_not_reached ();
-#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (paths);
-#line 655 "HierarchicalTagIndex.c"
-}
-
-
-static void
-_vala_array_add68 (gchar** * array,
- int* length,
- int* size,
- gchar* value)
-{
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if ((*length) == (*size)) {
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- *array = g_renew (gchar*, *array, (*size) + 1);
-#line 671 "HierarchicalTagIndex.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- (*array)[(*length)++] = value;
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- (*array)[*length] = NULL;
-#line 677 "HierarchicalTagIndex.c"
-}
-
-
-gchar**
-hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self,
- gchar** names,
- int names_length1,
- int* result_length1)
-{
- gchar** result = NULL;
- gchar** _result_ = NULL;
- gchar** _tmp0_;
- gint _result__length1;
- gint __result__size_;
- gchar** _tmp5_;
- gint _tmp5__length1;
-#line 80 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL);
-#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp0_ = g_new0 (gchar*, 0 + 1);
-#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _result_ = _tmp0_;
-#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _result__length1 = 0;
-#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- __result__size_ = _result__length1;
-#line 704 "HierarchicalTagIndex.c"
- {
- gchar** name_collection = NULL;
- gint name_collection_length1 = 0;
- gint _name_collection_size_ = 0;
- gint name_it = 0;
-#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- name_collection = names;
-#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- name_collection_length1 = names_length1;
-#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- for (name_it = 0; name_it < names_length1; name_it = name_it + 1) {
-#line 716 "HierarchicalTagIndex.c"
- gchar* _tmp1_;
- gchar* name = NULL;
-#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp1_ = g_strdup (name_collection[name_it]);
-#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- name = _tmp1_;
-#line 723 "HierarchicalTagIndex.c"
- {
- gchar** _tmp2_;
- gint _tmp2__length1;
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp2_ = _result_;
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp2__length1 = _result__length1;
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp3_ = name;
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp4_ = hierarchical_tag_index_get_path_for_name (self, _tmp3_);
-#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _vala_array_add68 (&_result_, &_result__length1, &__result__size_, _tmp4_);
-#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_free0 (name);
-#line 741 "HierarchicalTagIndex.c"
- }
- }
- }
-#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp5_ = _result_;
-#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _tmp5__length1 = _result__length1;
-#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (result_length1) {
-#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- *result_length1 = _tmp5__length1;
-#line 753 "HierarchicalTagIndex.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- result = _tmp5_;
-#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return result;
-#line 759 "HierarchicalTagIndex.c"
-}
-
-
-static void
-value_hierarchical_tag_index_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- value->data[0].v_pointer = NULL;
-#line 768 "HierarchicalTagIndex.c"
-}
-
-
-static void
-value_hierarchical_tag_index_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- hierarchical_tag_index_unref (value->data[0].v_pointer);
-#line 779 "HierarchicalTagIndex.c"
- }
-}
-
-
-static void
-value_hierarchical_tag_index_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- dest_value->data[0].v_pointer = hierarchical_tag_index_ref (src_value->data[0].v_pointer);
-#line 792 "HierarchicalTagIndex.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 796 "HierarchicalTagIndex.c"
- }
-}
-
-
-static gpointer
-value_hierarchical_tag_index_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return value->data[0].v_pointer;
-#line 806 "HierarchicalTagIndex.c"
-}
-
-
-static gchar*
-value_hierarchical_tag_index_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (collect_values[0].v_pointer) {
-#line 818 "HierarchicalTagIndex.c"
- HierarchicalTagIndex * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 825 "HierarchicalTagIndex.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.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 829 "HierarchicalTagIndex.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- value->data[0].v_pointer = hierarchical_tag_index_ref (object);
-#line 833 "HierarchicalTagIndex.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- value->data[0].v_pointer = NULL;
-#line 837 "HierarchicalTagIndex.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return NULL;
-#line 841 "HierarchicalTagIndex.c"
-}
-
-
-static gchar*
-value_hierarchical_tag_index_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- HierarchicalTagIndex ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 857 "HierarchicalTagIndex.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- *object_p = NULL;
-#line 863 "HierarchicalTagIndex.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- *object_p = value->data[0].v_pointer;
-#line 867 "HierarchicalTagIndex.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- *object_p = hierarchical_tag_index_ref (value->data[0].v_pointer);
-#line 871 "HierarchicalTagIndex.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return NULL;
-#line 875 "HierarchicalTagIndex.c"
-}
-
-
-GParamSpec*
-param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecHierarchicalTagIndex* spec;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_TAG_INDEX), NULL);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return G_PARAM_SPEC (spec);
-#line 895 "HierarchicalTagIndex.c"
-}
-
-
-gpointer
-value_get_hierarchical_tag_index (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX), NULL);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return value->data[0].v_pointer;
-#line 906 "HierarchicalTagIndex.c"
-}
-
-
-void
-value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object)
-{
- HierarchicalTagIndex * old;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX));
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_INDEX));
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- 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/tags/HierarchicalTagIndex.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- hierarchical_tag_index_ref (value->data[0].v_pointer);
-#line 929 "HierarchicalTagIndex.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- value->data[0].v_pointer = NULL;
-#line 933 "HierarchicalTagIndex.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- hierarchical_tag_index_unref (old);
-#line 939 "HierarchicalTagIndex.c"
- }
-}
-
-
-void
-value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object)
-{
- HierarchicalTagIndex * old;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX));
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_INDEX));
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- 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/tags/HierarchicalTagIndex.vala"
- value->data[0].v_pointer = v_object;
-#line 961 "HierarchicalTagIndex.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- value->data[0].v_pointer = NULL;
-#line 965 "HierarchicalTagIndex.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- hierarchical_tag_index_unref (old);
-#line 971 "HierarchicalTagIndex.c"
- }
-}
-
-
-static void
-hierarchical_tag_index_class_init (HierarchicalTagIndexClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- hierarchical_tag_index_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- ((HierarchicalTagIndexClass *) klass)->finalize = hierarchical_tag_index_finalize;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_type_class_add_private (klass, sizeof (HierarchicalTagIndexPrivate));
-#line 985 "HierarchicalTagIndex.c"
-}
-
-
-static void
-hierarchical_tag_index_instance_init (HierarchicalTagIndex * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- self->priv = HIERARCHICAL_TAG_INDEX_GET_PRIVATE (self);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- self->ref_count = 1;
-#line 996 "HierarchicalTagIndex.c"
-}
-
-
-static void
-hierarchical_tag_index_finalize (HierarchicalTagIndex * obj)
-{
- HierarchicalTagIndex * self;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_signal_handlers_destroy (self);
-#line 8 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (self->priv->tag_table);
-#line 9 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- _g_object_unref0 (self->priv->known_paths);
-#line 1012 "HierarchicalTagIndex.c"
-}
-
-
-GType
-hierarchical_tag_index_get_type (void)
-{
- static volatile gsize hierarchical_tag_index_type_id__volatile = 0;
- if (g_once_init_enter (&hierarchical_tag_index_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_hierarchical_tag_index_init, value_hierarchical_tag_index_free_value, value_hierarchical_tag_index_copy_value, value_hierarchical_tag_index_peek_pointer, "p", value_hierarchical_tag_index_collect_value, "p", value_hierarchical_tag_index_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (HierarchicalTagIndexClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hierarchical_tag_index_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HierarchicalTagIndex), 0, (GInstanceInitFunc) hierarchical_tag_index_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType hierarchical_tag_index_type_id;
- hierarchical_tag_index_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HierarchicalTagIndex", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&hierarchical_tag_index_type_id__volatile, hierarchical_tag_index_type_id);
- }
- return hierarchical_tag_index_type_id__volatile;
-}
-
-
-gpointer
-hierarchical_tag_index_ref (gpointer instance)
-{
- HierarchicalTagIndex * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- return instance;
-#line 1041 "HierarchicalTagIndex.c"
-}
-
-
-void
-hierarchical_tag_index_unref (gpointer instance)
-{
- HierarchicalTagIndex * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- HIERARCHICAL_TAG_INDEX_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1056 "HierarchicalTagIndex.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/tags/HierarchicalTagUtilities.c b/src/tags/HierarchicalTagUtilities.c
deleted file mode 100644
index 554ce6c..0000000
--- a/src/tags/HierarchicalTagUtilities.c
+++ /dev/null
@@ -1,2251 +0,0 @@
-/* HierarchicalTagUtilities.c generated by valac 0.40.4, the Vala compiler
- * generated from HierarchicalTagUtilities.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_HIERARCHICAL_TAG_UTILITIES (hierarchical_tag_utilities_get_type ())
-#define HIERARCHICAL_TAG_UTILITIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilities))
-#define HIERARCHICAL_TAG_UTILITIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilitiesClass))
-#define IS_HIERARCHICAL_TAG_UTILITIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES))
-#define IS_HIERARCHICAL_TAG_UTILITIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_UTILITIES))
-#define HIERARCHICAL_TAG_UTILITIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilitiesClass))
-
-typedef struct _HierarchicalTagUtilities HierarchicalTagUtilities;
-typedef struct _HierarchicalTagUtilitiesClass HierarchicalTagUtilitiesClass;
-typedef struct _HierarchicalTagUtilitiesPrivate HierarchicalTagUtilitiesPrivate;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-typedef struct _ParamSpecHierarchicalTagUtilities ParamSpecHierarchicalTagUtilities;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _HierarchicalTagUtilities {
- GTypeInstance parent_instance;
- volatile int ref_count;
- HierarchicalTagUtilitiesPrivate * priv;
-};
-
-struct _HierarchicalTagUtilitiesClass {
- GTypeClass parent_class;
- void (*finalize) (HierarchicalTagUtilities *self);
-};
-
-struct _ParamSpecHierarchicalTagUtilities {
- GParamSpec parent_instance;
-};
-
-
-static gpointer hierarchical_tag_utilities_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-
-gpointer hierarchical_tag_utilities_ref (gpointer instance);
-void hierarchical_tag_utilities_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_utilities (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_utilities (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_utilities (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_utilities (const GValue* value);
-GType hierarchical_tag_utilities_get_type (void) G_GNUC_CONST;
-gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name);
-#define TAG_PATH_SEPARATOR_STRING "/"
-gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path);
-GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
-GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
-gchar* hierarchical_tag_utilities_join_path_components (gchar** path_components,
- int path_components_length1);
-gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path);
-gchar* hierarchical_tag_utilities_canonicalize (const gchar* in_tag,
- const gchar* foreign_separator);
-gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-HierarchicalTagIndex* hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords);
-HierarchicalTagIndex* hierarchical_tag_index_new (void);
-HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type);
-gboolean hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self,
- const gchar* path);
-void hierarchical_tag_index_add_path (HierarchicalTagIndex* self,
- const gchar* tag,
- const gchar* path);
-gchar* hierarchical_tag_utilities_get_root_path_form (const gchar* client_path);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-gboolean tag_source_collection_exists (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root);
-void hierarchical_tag_utilities_cleanup_root_path (const gchar* path);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType tag_get_type (void) G_GNUC_CONST;
-Tag* tag_for_path (const gchar* name);
-GeeList* tag_get_hierarchical_children (Tag* self);
-void tag_flatten (Tag* self);
-HierarchicalTagUtilities* hierarchical_tag_utilities_new (void);
-HierarchicalTagUtilities* hierarchical_tag_utilities_construct (GType object_type);
-static void hierarchical_tag_utilities_finalize (HierarchicalTagUtilities * 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 gint _vala_array_length (gpointer array);
-
-
-/**
- * converts a flat tag name 'name' (e.g., "Animals") to a tag path compatible with the
- * hierarchical tag data model (e.g., "/Animals"). if 'name' is already a path compatible with
- * the hierarchical data model, 'name' is returned untouched
- */
-gchar*
-hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name)
-{
- gchar* result = NULL;
-#line 14 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 15 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!g_str_has_prefix (name, TAG_PATH_SEPARATOR_STRING)) {
-#line 248 "HierarchicalTagUtilities.c"
- gchar* _tmp0_;
-#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, name, NULL);
-#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp0_;
-#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 256 "HierarchicalTagUtilities.c"
- } else {
- gchar* _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = g_strdup (name);
-#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp1_;
-#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 265 "HierarchicalTagUtilities.c"
- }
-}
-
-
-/**
- * converts a hierarchical tag path 'path' (e.g., "/Animals") to a flat tag name
- * (e.g., "Animals"); if 'path' is already a flat tag name, 'path' is returned untouched; note
- * that 'path' must be a top-level path (i.e., "/Animals" not "/Animals/Mammals/…") with
- * only one path component; invoking this method with a 'path' argument other than a top-level
- * path will cause an assertion failure.
- */
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 297 "HierarchicalTagUtilities.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 306 "HierarchicalTagUtilities.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 327 "HierarchicalTagUtilities.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 331 "HierarchicalTagUtilities.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 337 "HierarchicalTagUtilities.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 347 "HierarchicalTagUtilities.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 351 "HierarchicalTagUtilities.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 359 "HierarchicalTagUtilities.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 366 "HierarchicalTagUtilities.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 370 "HierarchicalTagUtilities.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 376 "HierarchicalTagUtilities.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 388 "HierarchicalTagUtilities.c"
-}
-
-
-gchar*
-hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path)
-{
- gchar* result = NULL;
-#line 28 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (path != NULL, NULL);
-#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (g_str_has_prefix (path, TAG_PATH_SEPARATOR_STRING)) {
-#line 400 "HierarchicalTagUtilities.c"
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gchar* _tmp4_;
-#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = hierarchical_tag_utilities_enumerate_path_components (path);
-#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = _tmp0_;
-#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp3_ = _tmp2_;
-#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _vala_assert (_tmp3_ == 1, "enumerate_path_components(path).size == 1");
-#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (_tmp1_);
-#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = string_substring (path, (glong) 1, (glong) -1);
-#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp4_;
-#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 424 "HierarchicalTagUtilities.c"
- } else {
- gchar* _tmp5_;
-#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = g_strdup (path);
-#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp5_;
-#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 433 "HierarchicalTagUtilities.c"
- }
-}
-
-
-/**
- * given a path 'path', generate all parent paths of 'path' and return them in sorted order,
- * from most basic to most derived. For example, if 'path' == "/Animals/Mammals/Elephant",
- * the list { "/Animals", "/Animals/Mammals" } is returned
- */
-GeeList*
-hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path)
-{
- GeeList* result = NULL;
- gchar* path = NULL;
- gchar* _tmp0_;
- GeeList* _result_ = NULL;
- GeeArrayList* _tmp1_;
- gchar* accumulator = NULL;
- gchar* _tmp2_;
-#line 43 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (in_path != NULL, NULL);
-#line 44 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = hierarchical_tag_utilities_flat_to_hierarchical (in_path);
-#line 44 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- path = _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList);
-#line 48 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = g_strdup ("");
-#line 48 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- accumulator = _tmp2_;
-#line 467 "HierarchicalTagUtilities.c"
- {
- GeeList* _component_list = NULL;
- const gchar* _tmp3_;
- GeeList* _tmp4_;
- gint _component_size = 0;
- GeeList* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
- gint _component_index = 0;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp3_ = path;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = hierarchical_tag_utilities_enumerate_path_components (_tmp3_);
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _component_list = _tmp4_;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = _component_list;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp7_ = _tmp6_;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _component_size = _tmp7_;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _component_index = -1;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- while (TRUE) {
-#line 495 "HierarchicalTagUtilities.c"
- gint _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gchar* component = NULL;
- GeeList* _tmp11_;
- gint _tmp12_;
- gpointer _tmp13_;
- const gchar* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- const gchar* _tmp19_;
- const gchar* _tmp20_;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp8_ = _component_index;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _component_index = _tmp8_ + 1;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp9_ = _component_index;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp10_ = _component_size;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!(_tmp9_ < _tmp10_)) {
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- break;
-#line 522 "HierarchicalTagUtilities.c"
- }
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp11_ = _component_list;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp12_ = _component_index;
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp13_ = gee_list_get (_tmp11_, _tmp12_);
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- component = (gchar*) _tmp13_;
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp14_ = accumulator;
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp15_ = component;
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp16_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp15_, NULL);
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp17_ = _tmp16_;
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp18_ = g_strconcat (_tmp14_, _tmp17_, NULL);
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (accumulator);
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- accumulator = _tmp18_;
-#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (_tmp17_);
-#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp19_ = accumulator;
-#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp20_ = path;
-#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (g_strcmp0 (_tmp19_, _tmp20_) != 0) {
-#line 554 "HierarchicalTagUtilities.c"
- GeeList* _tmp21_;
- const gchar* _tmp22_;
-#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp21_ = _result_;
-#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp22_ = accumulator;
-#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_);
-#line 563 "HierarchicalTagUtilities.c"
- }
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (component);
-#line 567 "HierarchicalTagUtilities.c"
- }
-#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (_component_list);
-#line 571 "HierarchicalTagUtilities.c"
- }
-#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _result_;
-#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (accumulator);
-#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (path);
-#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 581 "HierarchicalTagUtilities.c"
-}
-
-
-/**
- * given a path 'path', enumerate all of the components of 'path' and return them in
- * order, excluding the path component separator. For example if
- * 'path' == "/Animals/Mammals/Elephant" the list { "Animals", "Mammals", "Elephant" } will
- * be returned
- */
-GeeList*
-hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path)
-{
- GeeList* result = NULL;
- gchar* path = NULL;
- gchar* _tmp0_;
- GeeArrayList* components = NULL;
- GeeArrayList* _tmp1_;
- gchar** raw_components = NULL;
- const gchar* _tmp2_;
- gchar** _tmp3_;
- gchar** _tmp4_;
- gint raw_components_length1;
- gint _raw_components_size_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- GeeArrayList* _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
-#line 64 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (in_path != NULL, NULL);
-#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = hierarchical_tag_utilities_flat_to_hierarchical (in_path);
-#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- path = _tmp0_;
-#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- components = _tmp1_;
-#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = path;
-#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = _tmp3_ = g_strsplit (_tmp2_, TAG_PATH_SEPARATOR_STRING, 0);
-#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- raw_components = _tmp4_;
-#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- raw_components_length1 = _vala_array_length (_tmp3_);
-#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _raw_components_size_ = raw_components_length1;
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = raw_components;
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5__length1 = raw_components_length1;
-#line 634 "HierarchicalTagUtilities.c"
- {
- gchar** component_collection = NULL;
- gint component_collection_length1 = 0;
- gint _component_collection_size_ = 0;
- gint component_it = 0;
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- component_collection = _tmp5_;
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- component_collection_length1 = _tmp5__length1;
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- for (component_it = 0; component_it < _tmp5__length1; component_it = component_it + 1) {
-#line 646 "HierarchicalTagUtilities.c"
- gchar* _tmp6_;
- gchar* component = NULL;
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp6_ = g_strdup (component_collection[component_it]);
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- component = _tmp6_;
-#line 653 "HierarchicalTagUtilities.c"
- {
- const gchar* _tmp7_;
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp7_ = component;
-#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (g_strcmp0 (_tmp7_, "") != 0) {
-#line 660 "HierarchicalTagUtilities.c"
- GeeArrayList* _tmp8_;
- const gchar* _tmp9_;
-#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp8_ = components;
-#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp9_ = component;
-#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_);
-#line 669 "HierarchicalTagUtilities.c"
- }
-#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (component);
-#line 673 "HierarchicalTagUtilities.c"
- }
- }
- }
-#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp10_ = components;
-#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp11_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp12_ = _tmp11_;
-#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _vala_assert (_tmp12_ > 0, "components.size > 0");
-#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (components, GEE_TYPE_LIST, GeeList);
-#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- raw_components = (_vala_array_free (raw_components, raw_components_length1, (GDestroyNotify) g_free), NULL);
-#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (path);
-#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 693 "HierarchicalTagUtilities.c"
-}
-
-
-/**
- * given a list of path elements, create a fully qualified path string.
- * For example if 'path_elements' is the list { "Animals", "Mammals", "Elephant" }
- * the path "/Animals/Mammals/Elephant" will be returned
- */
-static gchar*
-_vala_g_strjoinv (const gchar* separator,
- gchar** str_array,
- int str_array_length1)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
-#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (separator == NULL) {
-#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- separator = "";
-#line 713 "HierarchicalTagUtilities.c"
- }
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array != NULL) {
-#line 717 "HierarchicalTagUtilities.c"
- gboolean _tmp1_ = FALSE;
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array_length1 > 0) {
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 723 "HierarchicalTagUtilities.c"
- } else {
- gboolean _tmp2_ = FALSE;
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array_length1 == -1) {
-#line 728 "HierarchicalTagUtilities.c"
- const gchar* _tmp3_;
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = str_array[0];
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp3_ != NULL;
-#line 734 "HierarchicalTagUtilities.c"
- } else {
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = FALSE;
-#line 738 "HierarchicalTagUtilities.c"
- }
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _tmp2_;
-#line 742 "HierarchicalTagUtilities.c"
- }
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = _tmp1_;
-#line 746 "HierarchicalTagUtilities.c"
- } else {
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 750 "HierarchicalTagUtilities.c"
- }
-#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 754 "HierarchicalTagUtilities.c"
- gint i = 0;
- gsize len = 0UL;
- gint _tmp20_;
- gint _tmp22_;
- gint _tmp23_;
- gsize _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
- const gchar* res = NULL;
- gsize _tmp28_;
- void* _tmp29_;
- void* ptr = NULL;
- const gchar* _tmp30_;
- const gchar* _tmp31_;
- void* _tmp32_;
- const gchar* _tmp45_;
-#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = (gsize) 1;
-#line 774 "HierarchicalTagUtilities.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- i = 0;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = TRUE;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- while (TRUE) {
-#line 783 "HierarchicalTagUtilities.c"
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- gint _tmp12_ = 0;
- gint _tmp13_;
- const gchar* _tmp14_;
- gsize _tmp19_;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (!_tmp4_) {
-#line 792 "HierarchicalTagUtilities.c"
- gint _tmp5_;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = i;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- i = _tmp5_ + 1;
-#line 798 "HierarchicalTagUtilities.c"
- }
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = FALSE;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array_length1 != -1) {
-#line 804 "HierarchicalTagUtilities.c"
- gint _tmp8_;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = i;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp8_ < str_array_length1;
-#line 810 "HierarchicalTagUtilities.c"
- } else {
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = FALSE;
-#line 814 "HierarchicalTagUtilities.c"
- }
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp7_) {
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = TRUE;
-#line 820 "HierarchicalTagUtilities.c"
- } else {
- gboolean _tmp9_ = FALSE;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (str_array_length1 == -1) {
-#line 825 "HierarchicalTagUtilities.c"
- gint _tmp10_;
- const gchar* _tmp11_;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = i;
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp11_ = str_array[_tmp10_];
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = _tmp11_ != NULL;
-#line 834 "HierarchicalTagUtilities.c"
- } else {
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = FALSE;
-#line 838 "HierarchicalTagUtilities.c"
- }
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp9_;
-#line 842 "HierarchicalTagUtilities.c"
- }
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (!_tmp6_) {
-#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- break;
-#line 848 "HierarchicalTagUtilities.c"
- }
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp13_ = i;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp14_ = str_array[_tmp13_];
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp14_ != NULL) {
-#line 856 "HierarchicalTagUtilities.c"
- gint _tmp15_;
- const gchar* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp15_ = i;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp16_ = str_array[_tmp15_];
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp17_ = strlen ((const gchar*) _tmp16_);
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp18_ = _tmp17_;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp12_ = _tmp18_;
-#line 871 "HierarchicalTagUtilities.c"
- } else {
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp12_ = 0;
-#line 875 "HierarchicalTagUtilities.c"
- }
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp19_ = len;
-#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp19_ + _tmp12_;
-#line 881 "HierarchicalTagUtilities.c"
- }
- }
-#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp20_ = i;
-#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp20_ == 0) {
-#line 888 "HierarchicalTagUtilities.c"
- gchar* _tmp21_;
-#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp21_ = g_strdup ("");
-#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp21_;
-#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 896 "HierarchicalTagUtilities.c"
- }
-#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp22_ = i;
-#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- str_array_length1 = _tmp22_;
-#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp23_ = str_array_length1;
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp24_ = len;
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp25_ = strlen ((const gchar*) separator);
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp26_ = _tmp25_;
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp27_ = i;
-#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1));
-#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp28_ = len;
-#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp29_ = g_malloc (_tmp28_);
-#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res = _tmp29_;
-#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp30_ = res;
-#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp31_ = str_array[0];
-#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_);
-#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- ptr = _tmp32_;
-#line 928 "HierarchicalTagUtilities.c"
- {
- gboolean _tmp33_ = FALSE;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- i = 1;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp33_ = TRUE;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- while (TRUE) {
-#line 937 "HierarchicalTagUtilities.c"
- gint _tmp35_;
- void* _tmp36_;
- void* _tmp37_;
- const gchar* _tmp38_ = NULL;
- gint _tmp39_;
- const gchar* _tmp40_;
- void* _tmp43_;
- void* _tmp44_;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (!_tmp33_) {
-#line 948 "HierarchicalTagUtilities.c"
- gint _tmp34_;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp34_ = i;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- i = _tmp34_ + 1;
-#line 954 "HierarchicalTagUtilities.c"
- }
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp33_ = FALSE;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp35_ = i;
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (!(_tmp35_ < str_array_length1)) {
-#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- break;
-#line 964 "HierarchicalTagUtilities.c"
- }
-#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp36_ = ptr;
-#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator);
-#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- ptr = _tmp37_;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp39_ = i;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp40_ = str_array[_tmp39_];
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp40_ != NULL) {
-#line 978 "HierarchicalTagUtilities.c"
- gint _tmp41_;
- const gchar* _tmp42_;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp41_ = i;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp42_ = str_array[_tmp41_];
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp38_ = (const gchar*) _tmp42_;
-#line 987 "HierarchicalTagUtilities.c"
- } else {
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp38_ = "";
-#line 991 "HierarchicalTagUtilities.c"
- }
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp43_ = ptr;
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp44_ = g_stpcpy (_tmp43_, _tmp38_);
-#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- ptr = _tmp44_;
-#line 999 "HierarchicalTagUtilities.c"
- }
- }
-#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp45_ = res;
-#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res = NULL;
-#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gchar*) _tmp45_;
-#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1010 "HierarchicalTagUtilities.c"
- } else {
- gchar* _tmp46_;
-#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp46_ = g_strdup ("");
-#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp46_;
-#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1019 "HierarchicalTagUtilities.c"
- }
-}
-
-
-gchar*
-hierarchical_tag_utilities_join_path_components (gchar** path_components,
- int path_components_length1)
-{
- gchar* result = NULL;
- gchar* tmp = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gchar** _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 87 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (path_components_length1 <= 0) {
-#line 88 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = NULL;
-#line 88 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1045 "HierarchicalTagUtilities.c"
- }
-#line 89 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = _vala_g_strjoinv (TAG_PATH_SEPARATOR_STRING, path_components, path_components_length1);
-#line 89 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- tmp = _tmp0_;
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = g_strdup ("");
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = tmp;
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = g_new0 (gchar*, 2 + 1);
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_[0] = _tmp1_;
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_[1] = _tmp3_;
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = _tmp4_;
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5__length1 = 2;
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp6_ = _vala_g_strjoinv (TAG_PATH_SEPARATOR_STRING, _tmp5_, 2);
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp7_ = _tmp6_;
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL);
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp7_;
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (tmp);
-#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1079 "HierarchicalTagUtilities.c"
-}
-
-
-gchar*
-hierarchical_tag_utilities_get_basename (const gchar* in_path)
-{
- gchar* result = NULL;
- gchar* path = NULL;
- gchar* _tmp0_;
- GeeList* components = NULL;
- GeeList* _tmp1_;
- gchar* basename = NULL;
- gint _tmp2_;
- gint _tmp3_;
- gpointer _tmp4_;
-#line 93 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (in_path != NULL, NULL);
-#line 94 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = hierarchical_tag_utilities_flat_to_hierarchical (in_path);
-#line 94 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- path = _tmp0_;
-#line 96 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = hierarchical_tag_utilities_enumerate_path_components (path);
-#line 96 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- components = _tmp1_;
-#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (components, GEE_TYPE_COLLECTION, GeeCollection));
-#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp3_ = _tmp2_;
-#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = gee_list_get (components, _tmp3_ - 1);
-#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- basename = (gchar*) _tmp4_;
-#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = basename;
-#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (components);
-#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (path);
-#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1121 "HierarchicalTagUtilities.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 1144 "HierarchicalTagUtilities.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 1148 "HierarchicalTagUtilities.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 1154 "HierarchicalTagUtilities.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 1158 "HierarchicalTagUtilities.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1162 "HierarchicalTagUtilities.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1170 "HierarchicalTagUtilities.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 1198 "HierarchicalTagUtilities.c"
- goto __catch63_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1207 "HierarchicalTagUtilities.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 1221 "HierarchicalTagUtilities.c"
- goto __catch63_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1232 "HierarchicalTagUtilities.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1246 "HierarchicalTagUtilities.c"
- }
- goto __finally63;
- __catch63_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 1260 "HierarchicalTagUtilities.c"
- }
- __finally63:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 1271 "HierarchicalTagUtilities.c"
- }
-}
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1290 "HierarchicalTagUtilities.c"
-}
-
-
-gchar*
-hierarchical_tag_utilities_canonicalize (const gchar* in_tag,
- const gchar* foreign_separator)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- gboolean is_valid = FALSE;
- const gchar* _tmp12_ = NULL;
- gboolean _tmp13_;
- gchar* _tmp15_;
-#line 103 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (in_tag != NULL, NULL);
-#line 103 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (foreign_separator != NULL, NULL);
-#line 104 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = string_replace (in_tag, foreign_separator, TAG_PATH_SEPARATOR_STRING);
-#line 104 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _result_ = _tmp0_;
-#line 106 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = _result_;
-#line 106 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!g_str_has_prefix (_tmp1_, TAG_PATH_SEPARATOR_STRING)) {
-#line 1318 "HierarchicalTagUtilities.c"
- const gchar* _tmp2_;
- gchar* _tmp3_;
-#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = _result_;
-#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp3_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp2_, NULL);
-#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (_result_);
-#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _result_ = _tmp3_;
-#line 1329 "HierarchicalTagUtilities.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- is_valid = FALSE;
-#line 1333 "HierarchicalTagUtilities.c"
- {
- gint i = 0;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- i = 0;
-#line 1338 "HierarchicalTagUtilities.c"
- {
- gboolean _tmp4_ = FALSE;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = TRUE;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- while (TRUE) {
-#line 1345 "HierarchicalTagUtilities.c"
- gint _tmp6_;
- const gchar* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
- const gchar* _tmp10_;
- gint _tmp11_;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!_tmp4_) {
-#line 1354 "HierarchicalTagUtilities.c"
- gint _tmp5_;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = i;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- i = _tmp5_ + 1;
-#line 1360 "HierarchicalTagUtilities.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = FALSE;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp6_ = i;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp7_ = _result_;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp8_ = strlen (_tmp7_);
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp9_ = _tmp8_;
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!(_tmp6_ < _tmp9_)) {
-#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- break;
-#line 1376 "HierarchicalTagUtilities.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp10_ = _result_;
-#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp11_ = i;
-#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (string_get (_tmp10_, (glong) _tmp11_) != string_get (TAG_PATH_SEPARATOR_STRING, (glong) 0)) {
-#line 113 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- is_valid = TRUE;
-#line 114 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- break;
-#line 1388 "HierarchicalTagUtilities.c"
- }
- }
- }
- }
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp13_ = is_valid;
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (_tmp13_) {
-#line 1397 "HierarchicalTagUtilities.c"
- const gchar* _tmp14_;
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp14_ = _result_;
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp12_ = _tmp14_;
-#line 1403 "HierarchicalTagUtilities.c"
- } else {
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp12_ = NULL;
-#line 1407 "HierarchicalTagUtilities.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp15_ = g_strdup (_tmp12_);
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp15_;
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (_result_);
-#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1417 "HierarchicalTagUtilities.c"
-}
-
-
-gchar*
-hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 121 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (in_tag != NULL, NULL);
-#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = string_replace (in_tag, TAG_PATH_SEPARATOR_STRING, "-");
-#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp0_;
-#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1434 "HierarchicalTagUtilities.c"
-}
-
-
-HierarchicalTagIndex*
-hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords)
-{
- HierarchicalTagIndex* result = NULL;
- HierarchicalTagIndex* index = NULL;
- HierarchicalTagIndex* _tmp0_;
-#line 125 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (h_keywords), NULL);
-#line 126 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = hierarchical_tag_index_new ();
-#line 126 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- index = _tmp0_;
-#line 1450 "HierarchicalTagUtilities.c"
- {
- GeeIterator* _keyword_it = NULL;
- GeeIterator* _tmp1_;
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (h_keywords, GEE_TYPE_ITERABLE, GeeIterable));
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _keyword_it = _tmp1_;
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- while (TRUE) {
-#line 1460 "HierarchicalTagUtilities.c"
- GeeIterator* _tmp2_;
- gchar* keyword = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- GeeList* parent_paths = NULL;
- const gchar* _tmp5_;
- GeeList* _tmp6_;
- GeeList* path_components = NULL;
- const gchar* _tmp7_;
- GeeList* _tmp8_;
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- GeeList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- HierarchicalTagIndex* _tmp36_;
- const gchar* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- const gchar* _tmp40_;
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = _keyword_it;
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- break;
-#line 1488 "HierarchicalTagUtilities.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp3_ = _keyword_it;
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- keyword = (gchar*) _tmp4_;
-#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = keyword;
-#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp6_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp5_);
-#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- parent_paths = _tmp6_;
-#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp7_ = keyword;
-#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp8_ = hierarchical_tag_utilities_enumerate_path_components (_tmp7_);
-#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- path_components = _tmp8_;
-#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp9_ = parent_paths;
-#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp11_ = _tmp10_;
-#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp12_ = path_components;
-#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp14_ = _tmp13_;
-#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _vala_assert (_tmp11_ <= _tmp14_, "parent_paths.size <= path_components.size");
-#line 1522 "HierarchicalTagUtilities.c"
- {
- gint i = 0;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- i = 0;
-#line 1527 "HierarchicalTagUtilities.c"
- {
- gboolean _tmp15_ = FALSE;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp15_ = TRUE;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- while (TRUE) {
-#line 1534 "HierarchicalTagUtilities.c"
- gint _tmp17_;
- GeeList* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- HierarchicalTagIndex* _tmp21_;
- GeeList* _tmp22_;
- gint _tmp23_;
- gpointer _tmp24_;
- gchar* _tmp25_;
- gboolean _tmp26_;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!_tmp15_) {
-#line 1547 "HierarchicalTagUtilities.c"
- gint _tmp16_;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp16_ = i;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- i = _tmp16_ + 1;
-#line 1553 "HierarchicalTagUtilities.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp15_ = FALSE;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp17_ = i;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp18_ = parent_paths;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp20_ = _tmp19_;
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!(_tmp17_ < _tmp20_)) {
-#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- break;
-#line 1569 "HierarchicalTagUtilities.c"
- }
-#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp21_ = index;
-#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp22_ = path_components;
-#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp23_ = i;
-#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp24_ = gee_list_get (_tmp22_, _tmp23_);
-#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp25_ = (gchar*) _tmp24_;
-#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp26_ = !hierarchical_tag_index_is_path_known (_tmp21_, _tmp25_);
-#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (_tmp25_);
-#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (_tmp26_) {
-#line 1587 "HierarchicalTagUtilities.c"
- HierarchicalTagIndex* _tmp27_;
- GeeList* _tmp28_;
- gint _tmp29_;
- gpointer _tmp30_;
- gchar* _tmp31_;
- GeeList* _tmp32_;
- gint _tmp33_;
- gpointer _tmp34_;
- gchar* _tmp35_;
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp27_ = index;
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp28_ = path_components;
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp29_ = i;
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp30_ = gee_list_get (_tmp28_, _tmp29_);
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp31_ = (gchar*) _tmp30_;
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp32_ = parent_paths;
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp33_ = i;
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp34_ = gee_list_get (_tmp32_, _tmp33_);
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp35_ = (gchar*) _tmp34_;
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- hierarchical_tag_index_add_path (_tmp27_, _tmp31_, _tmp35_);
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (_tmp35_);
-#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (_tmp31_);
-#line 1621 "HierarchicalTagUtilities.c"
- }
- }
- }
- }
-#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp36_ = index;
-#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp37_ = keyword;
-#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp38_ = hierarchical_tag_utilities_get_basename (_tmp37_);
-#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp39_ = _tmp38_;
-#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp40_ = keyword;
-#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- hierarchical_tag_index_add_path (_tmp36_, _tmp39_, _tmp40_);
-#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (_tmp39_);
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (path_components);
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (parent_paths);
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (keyword);
-#line 1646 "HierarchicalTagUtilities.c"
- }
-#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (_keyword_it);
-#line 1650 "HierarchicalTagUtilities.c"
- }
-#line 144 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = index;
-#line 144 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1656 "HierarchicalTagUtilities.c"
-}
-
-
-gchar*
-hierarchical_tag_utilities_get_root_path_form (const gchar* client_path)
-{
- gchar* result = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gboolean _tmp4_;
- gchar* path = NULL;
- gchar* _tmp6_;
- TagSourceCollection* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp14_ = NULL;
- TagSourceCollection* _tmp15_;
- const gchar* _tmp16_;
- gchar* _tmp18_;
-#line 148 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (client_path == NULL) {
-#line 149 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = NULL;
-#line 149 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1683 "HierarchicalTagUtilities.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = hierarchical_tag_utilities_enumerate_parent_paths (client_path);
-#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = _tmp0_;
-#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp3_ = _tmp2_;
-#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = _tmp3_ != 0;
-#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (_tmp1_);
-#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (_tmp4_) {
-#line 1699 "HierarchicalTagUtilities.c"
- gchar* _tmp5_;
-#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = g_strdup (client_path);
-#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp5_;
-#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1707 "HierarchicalTagUtilities.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp6_ = g_strdup (client_path);
-#line 154 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- path = _tmp6_;
-#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp7_ = tag_global;
-#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp8_ = path;
-#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!tag_source_collection_exists (_tmp7_, _tmp8_, FALSE)) {
-#line 1719 "HierarchicalTagUtilities.c"
- const gchar* _tmp9_;
-#line 157 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp9_ = path;
-#line 157 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (g_str_has_prefix (_tmp9_, TAG_PATH_SEPARATOR_STRING)) {
-#line 1725 "HierarchicalTagUtilities.c"
- const gchar* _tmp10_;
- gchar* _tmp11_;
-#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp10_ = path;
-#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp11_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp10_);
-#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (path);
-#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- path = _tmp11_;
-#line 1736 "HierarchicalTagUtilities.c"
- } else {
- const gchar* _tmp12_;
- gchar* _tmp13_;
-#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp12_ = path;
-#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp13_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp12_);
-#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (path);
-#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- path = _tmp13_;
-#line 1748 "HierarchicalTagUtilities.c"
- }
- }
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp15_ = tag_global;
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp16_ = path;
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (tag_source_collection_exists (_tmp15_, _tmp16_, FALSE)) {
-#line 1757 "HierarchicalTagUtilities.c"
- const gchar* _tmp17_;
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp17_ = path;
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp14_ = _tmp17_;
-#line 1763 "HierarchicalTagUtilities.c"
- } else {
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp14_ = NULL;
-#line 1767 "HierarchicalTagUtilities.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp18_ = g_strdup (_tmp14_);
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- result = _tmp18_;
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (path);
-#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return result;
-#line 1777 "HierarchicalTagUtilities.c"
-}
-
-
-void
-hierarchical_tag_utilities_cleanup_root_path (const gchar* path)
-{
- GeeList* paths = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 166 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_if_fail (path != NULL);
-#line 167 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp0_ = hierarchical_tag_utilities_enumerate_parent_paths (path);
-#line 167 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- paths = _tmp0_;
-#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp1_ = paths;
-#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp3_ = _tmp2_;
-#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (_tmp3_ == 0) {
-#line 1803 "HierarchicalTagUtilities.c"
- gchar* actual_path = NULL;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- Tag* t = NULL;
- TagSourceCollection* _tmp6_;
- const gchar* _tmp7_;
- gboolean _tmp10_ = FALSE;
- Tag* _tmp11_;
-#line 170 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp4_ = hierarchical_tag_utilities_get_root_path_form (path);
-#line 170 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- actual_path = _tmp4_;
-#line 172 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp5_ = actual_path;
-#line 172 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (_tmp5_ == NULL) {
-#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (actual_path);
-#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (paths);
-#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return;
-#line 1826 "HierarchicalTagUtilities.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- t = NULL;
-#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp6_ = tag_global;
-#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp7_ = actual_path;
-#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (tag_source_collection_exists (_tmp6_, _tmp7_, FALSE)) {
-#line 1836 "HierarchicalTagUtilities.c"
- const gchar* _tmp8_;
- Tag* _tmp9_;
-#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp8_ = actual_path;
-#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp9_ = tag_for_path (_tmp8_);
-#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (t);
-#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- t = _tmp9_;
-#line 1847 "HierarchicalTagUtilities.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp11_ = t;
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (_tmp11_ != NULL) {
-#line 1853 "HierarchicalTagUtilities.c"
- Tag* _tmp12_;
- GeeList* _tmp13_;
- GeeList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp12_ = t;
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp13_ = tag_get_hierarchical_children (_tmp12_);
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp14_ = _tmp13_;
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp16_ = _tmp15_;
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp10_ = _tmp16_ == 0;
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (_tmp14_);
-#line 1873 "HierarchicalTagUtilities.c"
- } else {
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp10_ = FALSE;
-#line 1877 "HierarchicalTagUtilities.c"
- }
-#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (_tmp10_) {
-#line 1881 "HierarchicalTagUtilities.c"
- Tag* _tmp17_;
-#line 180 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _tmp17_ = t;
-#line 180 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- tag_flatten (_tmp17_);
-#line 1887 "HierarchicalTagUtilities.c"
- }
-#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (t);
-#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_free0 (actual_path);
-#line 1893 "HierarchicalTagUtilities.c"
- }
-#line 166 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- _g_object_unref0 (paths);
-#line 1897 "HierarchicalTagUtilities.c"
-}
-
-
-HierarchicalTagUtilities*
-hierarchical_tag_utilities_construct (GType object_type)
-{
- HierarchicalTagUtilities* self = NULL;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- self = (HierarchicalTagUtilities*) g_type_create_instance (object_type);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return self;
-#line 1909 "HierarchicalTagUtilities.c"
-}
-
-
-HierarchicalTagUtilities*
-hierarchical_tag_utilities_new (void)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return hierarchical_tag_utilities_construct (TYPE_HIERARCHICAL_TAG_UTILITIES);
-#line 1918 "HierarchicalTagUtilities.c"
-}
-
-
-static void
-value_hierarchical_tag_utilities_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- value->data[0].v_pointer = NULL;
-#line 1927 "HierarchicalTagUtilities.c"
-}
-
-
-static void
-value_hierarchical_tag_utilities_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- hierarchical_tag_utilities_unref (value->data[0].v_pointer);
-#line 1938 "HierarchicalTagUtilities.c"
- }
-}
-
-
-static void
-value_hierarchical_tag_utilities_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- dest_value->data[0].v_pointer = hierarchical_tag_utilities_ref (src_value->data[0].v_pointer);
-#line 1951 "HierarchicalTagUtilities.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1955 "HierarchicalTagUtilities.c"
- }
-}
-
-
-static gpointer
-value_hierarchical_tag_utilities_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return value->data[0].v_pointer;
-#line 1965 "HierarchicalTagUtilities.c"
-}
-
-
-static gchar*
-value_hierarchical_tag_utilities_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (collect_values[0].v_pointer) {
-#line 1977 "HierarchicalTagUtilities.c"
- HierarchicalTagUtilities * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1984 "HierarchicalTagUtilities.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.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 1988 "HierarchicalTagUtilities.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- value->data[0].v_pointer = hierarchical_tag_utilities_ref (object);
-#line 1992 "HierarchicalTagUtilities.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- value->data[0].v_pointer = NULL;
-#line 1996 "HierarchicalTagUtilities.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return NULL;
-#line 2000 "HierarchicalTagUtilities.c"
-}
-
-
-static gchar*
-value_hierarchical_tag_utilities_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- HierarchicalTagUtilities ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2016 "HierarchicalTagUtilities.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- *object_p = NULL;
-#line 2022 "HierarchicalTagUtilities.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- *object_p = value->data[0].v_pointer;
-#line 2026 "HierarchicalTagUtilities.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- *object_p = hierarchical_tag_utilities_ref (value->data[0].v_pointer);
-#line 2030 "HierarchicalTagUtilities.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return NULL;
-#line 2034 "HierarchicalTagUtilities.c"
-}
-
-
-GParamSpec*
-param_spec_hierarchical_tag_utilities (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecHierarchicalTagUtilities* spec;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_TAG_UTILITIES), NULL);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return G_PARAM_SPEC (spec);
-#line 2054 "HierarchicalTagUtilities.c"
-}
-
-
-gpointer
-value_get_hierarchical_tag_utilities (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES), NULL);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return value->data[0].v_pointer;
-#line 2065 "HierarchicalTagUtilities.c"
-}
-
-
-void
-value_set_hierarchical_tag_utilities (GValue* value,
- gpointer v_object)
-{
- HierarchicalTagUtilities * old;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES));
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_UTILITIES));
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- 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/tags/HierarchicalTagUtilities.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- hierarchical_tag_utilities_ref (value->data[0].v_pointer);
-#line 2088 "HierarchicalTagUtilities.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- value->data[0].v_pointer = NULL;
-#line 2092 "HierarchicalTagUtilities.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- hierarchical_tag_utilities_unref (old);
-#line 2098 "HierarchicalTagUtilities.c"
- }
-}
-
-
-void
-value_take_hierarchical_tag_utilities (GValue* value,
- gpointer v_object)
-{
- HierarchicalTagUtilities * old;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES));
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_UTILITIES));
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- 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/tags/HierarchicalTagUtilities.vala"
- value->data[0].v_pointer = v_object;
-#line 2120 "HierarchicalTagUtilities.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- value->data[0].v_pointer = NULL;
-#line 2124 "HierarchicalTagUtilities.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- hierarchical_tag_utilities_unref (old);
-#line 2130 "HierarchicalTagUtilities.c"
- }
-}
-
-
-static void
-hierarchical_tag_utilities_class_init (HierarchicalTagUtilitiesClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- hierarchical_tag_utilities_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- ((HierarchicalTagUtilitiesClass *) klass)->finalize = hierarchical_tag_utilities_finalize;
-#line 2142 "HierarchicalTagUtilities.c"
-}
-
-
-static void
-hierarchical_tag_utilities_instance_init (HierarchicalTagUtilities * self)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- self->ref_count = 1;
-#line 2151 "HierarchicalTagUtilities.c"
-}
-
-
-static void
-hierarchical_tag_utilities_finalize (HierarchicalTagUtilities * obj)
-{
- HierarchicalTagUtilities * self;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilities);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_signal_handlers_destroy (self);
-#line 2163 "HierarchicalTagUtilities.c"
-}
-
-
-GType
-hierarchical_tag_utilities_get_type (void)
-{
- static volatile gsize hierarchical_tag_utilities_type_id__volatile = 0;
- if (g_once_init_enter (&hierarchical_tag_utilities_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_hierarchical_tag_utilities_init, value_hierarchical_tag_utilities_free_value, value_hierarchical_tag_utilities_copy_value, value_hierarchical_tag_utilities_peek_pointer, "p", value_hierarchical_tag_utilities_collect_value, "p", value_hierarchical_tag_utilities_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (HierarchicalTagUtilitiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hierarchical_tag_utilities_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HierarchicalTagUtilities), 0, (GInstanceInitFunc) hierarchical_tag_utilities_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType hierarchical_tag_utilities_type_id;
- hierarchical_tag_utilities_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HierarchicalTagUtilities", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&hierarchical_tag_utilities_type_id__volatile, hierarchical_tag_utilities_type_id);
- }
- return hierarchical_tag_utilities_type_id__volatile;
-}
-
-
-gpointer
-hierarchical_tag_utilities_ref (gpointer instance)
-{
- HierarchicalTagUtilities * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- return instance;
-#line 2192 "HierarchicalTagUtilities.c"
-}
-
-
-void
-hierarchical_tag_utilities_unref (gpointer instance)
-{
- HierarchicalTagUtilities * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- HIERARCHICAL_TAG_UTILITIES_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2207 "HierarchicalTagUtilities.c"
- }
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-static gint
-_vala_array_length (gpointer array)
-{
- int length;
- length = 0;
- if (array) {
- while (((gpointer*) array)[length]) {
- length++;
- }
- }
- return length;
-}
-
-
-
diff --git a/src/tags/TagPage.c b/src/tags/TagPage.c
deleted file mode 100644
index fa5f9eb..0000000
--- a/src/tags/TagPage.c
+++ /dev/null
@@ -1,1585 +0,0 @@
-/* TagPage.c generated by valac 0.40.4, the Vala compiler
- * generated from TagPage.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <gdk/gdk.h>
-
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _PagePrivate PagePrivate;
-
-#define TYPE_PAGE_WINDOW (page_window_get_type ())
-#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
-#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
-#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
-#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
-#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
-
-typedef struct _PageWindow PageWindow;
-typedef struct _PageWindowClass PageWindowClass;
-
-#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
-#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
-#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
-#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
-#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
-
-typedef struct _FullscreenWindow FullscreenWindow;
-typedef struct _FullscreenWindowClass FullscreenWindowClass;
-
-#define TYPE_INJECTION_GROUP (injection_group_get_type ())
-#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
-#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
-#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
-#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
-#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
-
-typedef struct _InjectionGroup InjectionGroup;
-typedef struct _InjectionGroupClass InjectionGroupClass;
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_VIEW (data_view_get_type ())
-#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
-#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
-#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
-#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
-#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
-
-typedef struct _DataView DataView;
-typedef struct _DataViewClass DataViewClass;
-
-#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
-#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
-#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
-#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
-#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
-
-typedef struct _ThumbnailView ThumbnailView;
-typedef struct _ThumbnailViewClass ThumbnailViewClass;
-
-#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
-#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
-#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
-#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
-#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
-
-typedef struct _CheckerboardItem CheckerboardItem;
-typedef struct _CheckerboardItemClass CheckerboardItemClass;
-
-#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
-
-#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
-typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
-
-#define TYPE_VIEW_FILTER (view_filter_get_type ())
-#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
-#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
-#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
-#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
-#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
-
-typedef struct _ViewFilter ViewFilter;
-typedef struct _ViewFilterClass ViewFilterClass;
-
-#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
-#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
-#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
-#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
-#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
-
-typedef struct _SearchViewFilter SearchViewFilter;
-typedef struct _SearchViewFilterClass SearchViewFilterClass;
-
-#define CORE_TYPE_TRACKER (core_tracker_get_type ())
-#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
-#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
-#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
-#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
-#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
-
-typedef struct _CoreTracker CoreTracker;
-typedef struct _CoreTrackerClass CoreTrackerClass;
-
-#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
-#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
-#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
-#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
-#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
-
-typedef struct _CoreViewTracker CoreViewTracker;
-typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-typedef struct _MediaPagePrivate MediaPagePrivate;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-typedef struct _CollectionPagePrivate CollectionPagePrivate;
-
-#define TYPE_TAG_PAGE (tag_page_get_type ())
-#define TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_PAGE, TagPage))
-#define TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_PAGE, TagPageClass))
-#define IS_TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_PAGE))
-#define IS_TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_PAGE))
-#define TAG_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_PAGE, TagPageClass))
-
-typedef struct _TagPage TagPage;
-typedef struct _TagPageClass TagPageClass;
-typedef struct _TagPagePrivate TagPagePrivate;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-enum {
- TAG_PAGE_0_PROPERTY,
- TAG_PAGE_NUM_PROPERTIES
-};
-static GParamSpec* tag_page_properties[TAG_PAGE_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#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_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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ())
-#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand))
-#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-
-typedef struct _SimpleProxyableCommand SimpleProxyableCommand;
-typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass;
-
-#define TYPE_NEW_CHILD_TAG_COMMAND (new_child_tag_command_get_type ())
-#define NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand))
-#define NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass))
-#define IS_NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_CHILD_TAG_COMMAND))
-#define IS_NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_CHILD_TAG_COMMAND))
-#define NEW_CHILD_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass))
-
-typedef struct _NewChildTagCommand NewChildTagCommand;
-typedef struct _NewChildTagCommandClass NewChildTagCommandClass;
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-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))
-#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
-#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
-#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
-
-typedef struct _LibraryWindow LibraryWindow;
-typedef struct _LibraryWindowClass LibraryWindowClass;
-
-#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ())
-#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand))
-#define DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
-#define IS_DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_TAG_COMMAND))
-#define IS_DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_TAG_COMMAND))
-#define DELETE_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
-
-typedef struct _DeleteTagCommand DeleteTagCommand;
-typedef struct _DeleteTagCommandClass DeleteTagCommandClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ())
-#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand))
-#define TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
-#define IS_TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
-#define IS_TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
-#define TAG_UNTAG_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
-
-typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand;
-typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass;
-
-struct _Page {
- GtkScrolledWindow parent_instance;
- PagePrivate * priv;
- GtkBuilder* builder;
- GtkToolbar* toolbar;
- gboolean in_view;
-};
-
-struct _PageClass {
- GtkScrolledWindowClass parent_class;
- void (*set_page_name) (Page* self, const gchar* page_name);
- void (*set_container) (Page* self, GtkWindow* container);
- void (*clear_container) (Page* self);
- GtkToolbar* (*get_toolbar) (Page* self);
- GtkMenu* (*get_page_context_menu) (Page* self);
- void (*switching_from) (Page* self);
- void (*switched_to) (Page* self);
- 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, 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);
- void (*update_actions) (Page* self, gint selected_count, gint count);
- gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
- gboolean (*on_left_click) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
- gboolean (*on_right_click) (Page* self, GdkEventButton* event);
- gboolean (*on_left_released) (Page* self, GdkEventButton* event);
- gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
- gboolean (*on_right_released) (Page* self, GdkEventButton* event);
- gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
- gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_super_released) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
- gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
- void (*on_move) (Page* self, GdkRectangle* rect);
- void (*on_move_start) (Page* self, GdkRectangle* rect);
- void (*on_move_finished) (Page* self, GdkRectangle* rect);
- void (*on_resize) (Page* self, GdkRectangle* rect);
- void (*on_resize_start) (Page* self, GdkRectangle* rect);
- void (*on_resize_finished) (Page* self, GdkRectangle* rect);
- gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
- gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
- gboolean (*on_leave_notify_event) (Page* self);
- gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
- gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
- gboolean (*on_context_keypress) (Page* self);
- gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
- gboolean (*on_context_invoked) (Page* self);
- void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
-};
-
-typedef enum {
- CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
- CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
-} CheckerboardPageActivator;
-
-struct _CheckerboardPageKeyboardModifiers {
- gboolean ctrl_pressed;
- gboolean alt_pressed;
- gboolean shift_pressed;
- gboolean super_pressed;
-};
-
-struct _CheckerboardPage {
- Page parent_instance;
- CheckerboardPagePrivate * priv;
- CheckerboardItem* anchor;
- CheckerboardItem* cursor;
-};
-
-struct _CheckerboardPageClass {
- PageClass parent_class;
- GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
- gchar* (*get_view_empty_message) (CheckerboardPage* self);
- gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
- void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
- SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
- CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
- gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
- void (*set_display_titles) (CheckerboardPage* self, gboolean display);
- void (*set_display_comments) (CheckerboardPage* self, gboolean display);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-typedef enum {
- RAW_DEVELOPER_SHOTWELL = 0,
- RAW_DEVELOPER_CAMERA,
- RAW_DEVELOPER_EMBEDDED
-} RawDeveloper;
-
-struct _MediaPage {
- CheckerboardPage parent_instance;
- MediaPagePrivate * priv;
-};
-
-struct _MediaPageClass {
- CheckerboardPageClass parent_class;
- void (*on_zoom_changed) (MediaPage* self);
- void (*on_export) (MediaPage* self);
- void (*on_increase_size) (MediaPage* self);
- void (*on_decrease_size) (MediaPage* self);
- void (*on_increase_rating) (MediaPage* self);
- void (*on_decrease_rating) (MediaPage* self);
- void (*on_set_rating) (MediaPage* self, Rating rating);
- void (*on_rate_rejected) (MediaPage* self);
- void (*on_rate_unrated) (MediaPage* self);
- void (*on_rate_one) (MediaPage* self);
- void (*on_rate_two) (MediaPage* self);
- void (*on_rate_three) (MediaPage* self);
- void (*on_rate_four) (MediaPage* self);
- void (*on_rate_five) (MediaPage* self);
- void (*on_move_to_trash) (MediaPage* self);
- void (*on_edit_title) (MediaPage* self);
- void (*on_edit_comment) (MediaPage* self);
- void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
- void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
- void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
- void (*developer_changed) (MediaPage* self, RawDeveloper rd);
- DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
-};
-
-struct _CollectionPage {
- MediaPage parent_instance;
- CollectionPagePrivate * priv;
-};
-
-struct _CollectionPageClass {
- MediaPageClass parent_class;
-};
-
-struct _TagPage {
- CollectionPage parent_instance;
- TagPagePrivate * priv;
-};
-
-struct _TagPageClass {
- CollectionPageClass parent_class;
-};
-
-struct _TagPagePrivate {
- Tag* tag;
-};
-
-typedef DataView* (*CreateView) (DataSource* source, void* user_data);
-
-static gpointer tag_page_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-
-GType page_get_type (void) G_GNUC_CONST;
-GType page_window_get_type (void) G_GNUC_CONST;
-GType fullscreen_window_get_type (void) G_GNUC_CONST;
-gpointer injection_group_ref (gpointer instance);
-void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_injection_group (GValue* value,
- gpointer v_object);
-void value_take_injection_group (GValue* value,
- gpointer v_object);
-gpointer value_get_injection_group (const GValue* value);
-GType injection_group_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_view_get_type (void) G_GNUC_CONST;
-GType thumbnail_view_get_type (void) G_GNUC_CONST;
-GType checkerboard_item_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
-GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
-CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
-void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
-gpointer view_filter_ref (gpointer instance);
-void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_view_filter (GValue* value,
- gpointer v_object);
-void value_take_view_filter (GValue* value,
- gpointer v_object);
-gpointer value_get_view_filter (const GValue* value);
-GType view_filter_get_type (void) G_GNUC_CONST;
-GType search_view_filter_get_type (void) G_GNUC_CONST;
-gpointer core_tracker_ref (gpointer instance);
-void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void core_value_set_tracker (GValue* value,
- gpointer v_object);
-void core_value_take_tracker (GValue* value,
- gpointer v_object);
-gpointer core_value_get_tracker (const GValue* value);
-GType core_tracker_get_type (void) G_GNUC_CONST;
-GType core_view_tracker_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType rating_get_type (void) G_GNUC_CONST;
-GType raw_developer_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType tag_page_get_type (void) G_GNUC_CONST;
-GType tag_get_type (void) G_GNUC_CONST;
-#define TAG_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_PAGE, TagPagePrivate))
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType view_collection_get_type (void) G_GNUC_CONST;
-ViewCollection* page_get_view (Page* self);
-void view_collection_halt_mirroring (ViewCollection* self);
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void tag_page_on_tags_altered (TagPage* self,
- GeeMap* map);
-static void _tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-static void tag_page_on_delete_tag (TagPage* self);
-static void _tag_page_on_delete_tag_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void tag_page_on_rename_tag (TagPage* self);
-static void _tag_page_on_rename_tag_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void tag_page_on_remove_tag_from_photos (TagPage* self);
-static void _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-static void tag_page_on_new_child_tag_sidebar (TagPage* self);
-static void _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback (GSimpleAction* action,
- GVariant* parameter,
- gpointer self);
-TagPage* tag_page_new (Tag* tag);
-TagPage* tag_page_construct (GType object_type,
- Tag* tag);
-gchar* data_object_get_name (DataObject* self);
-CollectionPage* collection_page_construct (GType object_type,
- const gchar* page_name);
-void tag_mirror_sources (Tag* self,
- ViewCollection* view,
- CreateView mirroring_ctor,
- void* mirroring_ctor_target);
-DataView* media_page_create_thumbnail (MediaPage* self,
- DataSource* source);
-static DataView* _media_page_create_thumbnail_create_view (DataSource* source,
- gpointer self);
-void checkerboard_page_init_page_context_menu (CheckerboardPage* self,
- const gchar* path);
-static void tag_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames);
-void page_init_collect_ui_filenames (Page* self,
- GeeList* ui_filenames);
-Tag* tag_page_get_tag (TagPage* self);
-static void tag_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_get_event_photos_sort (ConfigurationFacade* self,
- gboolean* sort_order,
- gint* sort_by);
-static void tag_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by);
-void configuration_facade_set_event_photos_sort (ConfigurationFacade* self,
- gboolean sort_order,
- gint sort_by);
-static void tag_page_real_add_actions (Page* base,
- GActionMap* map);
-void page_add_actions (Page* self,
- GActionMap* map);
-static void tag_page_real_remove_actions (Page* base,
- GActionMap* map);
-void page_remove_actions (Page* self,
- GActionMap* map);
-void page_set_page_name (Page* self,
- const gchar* page_name);
-void page_update_actions (Page* self,
- gint selected_count,
- gint count);
-gint view_collection_get_selected_count (ViewCollection* self);
-gint data_collection_get_count (DataCollection* self);
-static void tag_page_real_switched_to (Page* base);
-void page_switched_to (Page* self);
-void page_update_menu_item_label (Page* self,
- const gchar* id,
- const gchar* new_label);
-gchar* resources_delete_tag_menu (const gchar* name);
-gchar* tag_get_user_visible_name (Tag* self);
-gchar* resources_rename_tag_menu (const gchar* name);
-gchar* resources_untag_photos_menu (const gchar* name,
- gint count);
-static void tag_page_real_update_actions (Page* base,
- gint selected_count,
- gint count);
-void page_set_action_details (Page* self,
- const gchar* name,
- const gchar* label,
- const gchar* tooltip,
- gboolean sensitive);
-GType command_get_type (void) G_GNUC_CONST;
-GType page_command_get_type (void) G_GNUC_CONST;
-GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
-GType new_child_tag_command_get_type (void) G_GNUC_CONST;
-NewChildTagCommand* new_child_tag_command_new (Tag* tag);
-NewChildTagCommand* new_child_tag_command_construct (GType object_type,
- Tag* tag);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-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);
-Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self);
-gboolean dialogs_confirm_delete_tag (Tag* tag);
-DeleteTagCommand* delete_tag_command_new (Tag* tag);
-DeleteTagCommand* delete_tag_command_construct (GType object_type,
- Tag* tag);
-GType delete_tag_command_get_type (void) G_GNUC_CONST;
-CommandManager* page_get_command_manager (Page* self);
-GeeList* view_collection_get_selected_sources (ViewCollection* self);
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag,
- GeeCollection* sources,
- gint count,
- gboolean attach);
-TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type,
- Tag* tag,
- GeeCollection* sources,
- gint count,
- gboolean attach);
-GType tag_untag_photos_command_get_type (void) G_GNUC_CONST;
-static void tag_page_finalize (GObject * obj);
-
-static const GActionEntry TAG_PAGE_entries[4] = {{"DeleteTag", _tag_page_on_delete_tag_gsimple_action_activate_callback}, {"RenameTag", _tag_page_on_rename_tag_gsimple_action_activate_callback}, {"RemoveTagFromPhotos", _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback}, {"NewChildTagSidebar", _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback}};
-
-static void
-_tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- tag_page_on_tags_altered ((TagPage*) self, items);
-#line 840 "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 851 "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 862 "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 873 "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 884 "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 893 "TagPage.c"
-}
-
-
-static DataView*
-_media_page_create_thumbnail_create_view (DataSource* source,
- gpointer self)
-{
- DataView* result;
- result = media_page_create_thumbnail ((MediaPage*) self, source);
-#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- return result;
-#line 905 "TagPage.c"
-}
-
-
-TagPage*
-tag_page_construct (GType object_type,
- Tag* tag)
-{
- TagPage * self = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- Tag* _tmp2_;
- TagSourceCollection* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
-#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
-#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self = (TagPage*) collection_page_construct (object_type, _tmp1_);
-#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp1_);
-#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = _g_object_ref0 (tag);
-#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (self->priv->tag);
-#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self->priv->tag = _tmp2_;
-#line 15 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = tag_global;
-#line 15 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _tag_page_on_tags_altered_data_collection_items_altered, self, 0);
-#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = _tmp4_;
-#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- tag_mirror_sources (tag, _tmp5_, _media_page_create_thumbnail_create_view, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
-#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 18 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "TagsContextMenu");
-#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- return self;
-#line 952 "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 961 "TagPage.c"
-}
-
-
-static void
-tag_page_real_init_collect_ui_filenames (Page* base,
- GeeList* ui_filenames)
-{
- TagPage * self;
-#line 26 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
-#line 26 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_if_fail (GEE_IS_LIST (ui_filenames));
-#line 27 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- PAGE_CLASS (tag_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), ui_filenames);
-#line 28 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "tags.ui");
-#line 978 "TagPage.c"
-}
-
-
-Tag*
-tag_page_get_tag (TagPage* self)
-{
- Tag* result = NULL;
- Tag* _tmp0_;
- Tag* _tmp1_;
-#line 31 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_val_if_fail (IS_TAG_PAGE (self), NULL);
-#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = self->priv->tag;
-#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- result = _tmp1_;
-#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- return result;
-#line 998 "TagPage.c"
-}
-
-
-static void
-tag_page_real_get_config_photos_sort (MediaPage* base,
- gboolean* sort_order,
- gint* sort_by)
-{
- TagPage * self;
- gboolean _vala_sort_order = FALSE;
- gint _vala_sort_by = 0;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gint _tmp3_ = 0;
-#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
-#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- configuration_facade_get_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_);
-#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _vala_sort_order = _tmp2_;
-#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _vala_sort_by = _tmp3_;
-#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- if (sort_order) {
-#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- *sort_order = _vala_sort_order;
-#line 1032 "TagPage.c"
- }
-#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- if (sort_by) {
-#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- *sort_by = _vala_sort_by;
-#line 1038 "TagPage.c"
- }
-}
-
-
-static void
-tag_page_real_set_config_photos_sort (MediaPage* base,
- gboolean sort_order,
- gint sort_by)
-{
- TagPage * self;
- ConfigFacade* _tmp0_;
- ConfigFacade* _tmp1_;
-#line 39 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
-#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = config_facade_get_instance ();
-#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by);
-#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1061 "TagPage.c"
-}
-
-
-static void
-tag_page_real_add_actions (Page* base,
- GActionMap* map)
-{
- TagPage * self;
-#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), map);
-#line 53 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_action_map_add_action_entries (map, TAG_PAGE_entries, G_N_ELEMENTS (TAG_PAGE_entries), self);
-#line 1078 "TagPage.c"
-}
-
-
-static void
-tag_page_real_remove_actions (Page* base,
- GActionMap* map)
-{
- TagPage * self;
-#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"
- PAGE_CLASS (tag_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map);
-#line 1093 "TagPage.c"
- {
- GActionEntry* entry_collection = NULL;
- gint entry_collection_length1 = 0;
- 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 1105 "TagPage.c"
- GActionEntry entry = {0};
-#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- entry = entry_collection[entry_it];
-#line 1109 "TagPage.c"
- {
- GActionEntry _tmp0_;
- const gchar* _tmp1_;
-#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = entry;
-#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = _tmp0_.name;
-#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_action_map_remove_action (map, _tmp1_);
-#line 1119 "TagPage.c"
- }
- }
- }
-}
-
-
-static void
-tag_page_on_tags_altered (TagPage* self,
- GeeMap* map)
-{
- Tag* _tmp0_;
-#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_if_fail (IS_TAG_PAGE (self));
-#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_if_fail (GEE_IS_MAP (map));
-#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = self->priv->tag;
-#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- if (gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject))) {
-#line 1139 "TagPage.c"
- Tag* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
-#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = self->priv->tag;
-#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
-#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = _tmp2_;
-#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp3_);
-#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp3_);
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = _tmp4_;
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp7_ = _tmp6_;
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- page_update_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), view_collection_get_selected_count (_tmp5_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)));
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp7_);
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 1171 "TagPage.c"
- }
-}
-
-
-static void
-tag_page_real_switched_to (Page* base)
-{
- TagPage * self;
- Tag* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- Tag* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- Tag* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 70 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
-#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 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = self->priv->tag;
-#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = tag_get_user_visible_name (_tmp0_);
-#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = _tmp1_;
-#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = resources_delete_tag_menu (_tmp2_);
-#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = _tmp3_;
-#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 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp4_);
-#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp2_);
-#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = self->priv->tag;
-#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = tag_get_user_visible_name (_tmp5_);
-#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp7_ = _tmp6_;
-#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp8_ = resources_rename_tag_menu (_tmp7_);
-#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp9_ = _tmp8_;
-#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 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp9_);
-#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp7_);
-#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp10_ = self->priv->tag;
-#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp11_ = tag_get_user_visible_name (_tmp10_);
-#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp12_ = _tmp11_;
-#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp13_ = resources_untag_photos_menu (_tmp12_, 0);
-#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp14_ = _tmp13_;
-#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 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp14_);
-#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp12_);
-#line 1247 "TagPage.c"
-}
-
-
-static void
-tag_page_real_update_actions (Page* base,
- gint selected_count,
- gint count)
-{
- TagPage * self;
- Tag* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- Tag* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- Tag* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 80 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
-#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = self->priv->tag;
-#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = tag_get_user_visible_name (_tmp0_);
-#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = _tmp1_;
-#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = resources_delete_tag_menu (_tmp2_);
-#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = _tmp3_;
-#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 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp4_);
-#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp2_);
-#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = self->priv->tag;
-#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = tag_get_user_visible_name (_tmp5_);
-#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp7_ = _tmp6_;
-#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp8_ = resources_rename_tag_menu (_tmp7_);
-#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp9_ = _tmp8_;
-#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 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp9_);
-#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp7_);
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp10_ = self->priv->tag;
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp11_ = tag_get_user_visible_name (_tmp10_);
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp12_ = _tmp11_;
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp13_ = resources_untag_photos_menu (_tmp12_, selected_count);
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp14_ = _tmp13_;
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveTagFromPhotos", _tmp14_, NULL, selected_count > 0);
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp14_);
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp12_);
-#line 96 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- PAGE_CLASS (tag_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), selected_count, count);
-#line 1324 "TagPage.c"
-}
-
-
-static void
-tag_page_on_new_child_tag_sidebar (TagPage* self)
-{
- NewChildTagCommand* creation_command = NULL;
- Tag* _tmp0_;
- NewChildTagCommand* _tmp1_;
- CommandManager* _tmp2_;
- CommandManager* _tmp3_;
- LibraryWindow* _tmp4_;
- LibraryWindow* _tmp5_;
- Tag* _tmp6_;
- Tag* _tmp7_;
-#line 99 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_if_fail (IS_TAG_PAGE (self));
-#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = self->priv->tag;
-#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = new_child_tag_command_new (_tmp0_);
-#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- creation_command = _tmp1_;
-#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = app_window_get_command_manager ();
-#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = _tmp2_;
-#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 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _command_manager_unref0 (_tmp3_);
-#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = library_window_get_app ();
-#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = _tmp4_;
-#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = new_child_tag_command_get_created_child (creation_command);
-#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp7_ = _tmp6_;
-#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- library_window_rename_tag_in_sidebar (_tmp5_, _tmp7_);
-#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 99 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (creation_command);
-#line 1372 "TagPage.c"
-}
-
-
-static void
-tag_page_on_rename_tag (TagPage* self)
-{
- LibraryWindow* _tmp0_;
- LibraryWindow* _tmp1_;
- Tag* _tmp2_;
-#line 107 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_if_fail (IS_TAG_PAGE (self));
-#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = library_window_get_app ();
-#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = _tmp0_;
-#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = self->priv->tag;
-#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- library_window_rename_tag_in_sidebar (_tmp1_, _tmp2_);
-#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp1_);
-#line 1394 "TagPage.c"
-}
-
-
-static void
-tag_page_on_delete_tag (TagPage* self)
-{
- Tag* _tmp0_;
-#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_if_fail (IS_TAG_PAGE (self));
-#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = self->priv->tag;
-#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- if (dialogs_confirm_delete_tag (_tmp0_)) {
-#line 1408 "TagPage.c"
- CommandManager* _tmp1_;
- CommandManager* _tmp2_;
- Tag* _tmp3_;
- DeleteTagCommand* _tmp4_;
- DeleteTagCommand* _tmp5_;
-#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = app_window_get_command_manager ();
-#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = _tmp1_;
-#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = self->priv->tag;
-#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = delete_tag_command_new (_tmp3_);
-#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = _tmp4_;
-#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command));
-#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp5_);
-#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _command_manager_unref0 (_tmp2_);
-#line 1430 "TagPage.c"
- }
-}
-
-
-static void
-tag_page_on_remove_tag_from_photos (TagPage* self)
-{
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- gboolean _tmp2_;
-#line 116 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_return_if_fail (IS_TAG_PAGE (self));
-#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = _tmp0_;
-#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
-#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- if (_tmp2_) {
-#line 1453 "TagPage.c"
- CommandManager* _tmp3_;
- CommandManager* _tmp4_;
- Tag* _tmp5_;
- ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- GeeList* _tmp8_;
- GeeCollection* _tmp9_;
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- TagUntagPhotosCommand* _tmp12_;
- TagUntagPhotosCommand* _tmp13_;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = _tmp3_;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = self->priv->tag;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp7_ = _tmp6_;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp8_ = view_collection_get_selected_sources (_tmp7_);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp11_ = _tmp10_;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp12_ = tag_untag_photos_command_new (_tmp5_, _tmp9_, view_collection_get_selected_count (_tmp11_), FALSE);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp13_ = _tmp12_;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_COMMAND, Command));
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp11_);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp7_);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _command_manager_unref0 (_tmp4_);
-#line 1499 "TagPage.c"
- }
-}
-
-
-static void
-tag_page_class_init (TagPageClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- tag_page_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_type_class_add_private (klass, sizeof (TagPagePrivate));
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) tag_page_real_init_collect_ui_filenames;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) tag_page_real_get_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) tag_page_real_set_config_photos_sort;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) tag_page_real_add_actions;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) tag_page_real_remove_actions;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- ((PageClass *) klass)->switched_to = (void (*) (Page *)) tag_page_real_switched_to;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) tag_page_real_update_actions;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- G_OBJECT_CLASS (klass)->finalize = tag_page_finalize;
-#line 1527 "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 1536 "TagPage.c"
-}
-
-
-static void
-tag_page_finalize (GObject * obj)
-{
- TagPage * self;
- ViewCollection* _tmp0_;
- ViewCollection* _tmp1_;
- TagSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_PAGE, TagPage);
-#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- view_collection_halt_mirroring (_tmp1_);
-#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp1_);
-#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = tag_global;
-#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.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) _tag_page_on_tags_altered_data_collection_items_altered, self);
-#line 8 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _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 1568 "TagPage.c"
-}
-
-
-GType
-tag_page_get_type (void)
-{
- static volatile gsize tag_page_type_id__volatile = 0;
- if (g_once_init_enter (&tag_page_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagPage), 0, (GInstanceInitFunc) tag_page_instance_init, NULL };
- GType tag_page_type_id;
- tag_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "TagPage", &g_define_type_info, 0);
- g_once_init_leave (&tag_page_type_id__volatile, tag_page_type_id);
- }
- return tag_page_type_id__volatile;
-}
-
-
-
diff --git a/src/tags/Tags.c b/src/tags/Tags.c
deleted file mode 100644
index f03516a..0000000
--- a/src/tags/Tags.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Tags.c generated by valac 0.40.4, the Vala compiler
- * generated from Tags.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void tags_init (GError** error);
-void tags_sidebar_entry_init (void);
-void tags_terminate (void);
-void tags_sidebar_entry_terminate (void);
-
-
-void
-tags_init (GError** error)
-{
-#line 10 "/home/jens/Source/shotwell/src/tags/Tags.vala"
- tags_sidebar_entry_init ();
-#line 29 "Tags.c"
-}
-
-
-void
-tags_terminate (void)
-{
-#line 14 "/home/jens/Source/shotwell/src/tags/Tags.vala"
- tags_sidebar_entry_terminate ();
-#line 38 "Tags.c"
-}
-
-
-
diff --git a/src/tags/TagsBranch.c b/src/tags/TagsBranch.c
deleted file mode 100644
index a2494fc..0000000
--- a/src/tags/TagsBranch.c
+++ /dev/null
@@ -1,3233 +0,0 @@
-/* TagsBranch.c generated by valac 0.40.4, the Vala compiler
- * generated from TagsBranch.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <glib/gi18n-lib.h>
-#include <gio/gio.h>
-
-
-#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
-#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
-#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
-#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
-
-typedef struct _SidebarBranch SidebarBranch;
-typedef struct _SidebarBranchClass SidebarBranchClass;
-typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
-
-#define TAGS_TYPE_BRANCH (tags_branch_get_type ())
-#define TAGS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_BRANCH, TagsBranch))
-#define TAGS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_BRANCH, TagsBranchClass))
-#define TAGS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_BRANCH))
-#define TAGS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_BRANCH))
-#define TAGS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_BRANCH, TagsBranchClass))
-
-typedef struct _TagsBranch TagsBranch;
-typedef struct _TagsBranchClass TagsBranchClass;
-typedef struct _TagsBranchPrivate TagsBranchPrivate;
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
-#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
-#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
-
-typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
-typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
-
-#define TAGS_TYPE_SIDEBAR_ENTRY (tags_sidebar_entry_get_type ())
-#define TAGS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry))
-#define TAGS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass))
-#define TAGS_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_SIDEBAR_ENTRY))
-#define TAGS_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_SIDEBAR_ENTRY))
-#define TAGS_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass))
-
-typedef struct _TagsSidebarEntry TagsSidebarEntry;
-typedef struct _TagsSidebarEntryClass TagsSidebarEntryClass;
-enum {
- TAGS_BRANCH_0_PROPERTY,
- TAGS_BRANCH_NUM_PROPERTIES
-};
-static GParamSpec* tags_branch_properties[TAGS_BRANCH_NUM_PROPERTIES];
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#define TYPE_ALTERATION (alteration_get_type ())
-#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
-#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
-#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
-#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
-#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
-
-typedef struct _Alteration Alteration;
-typedef struct _AlterationClass AlterationClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
-#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
-#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
-#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
-
-typedef struct _SidebarGrouping SidebarGrouping;
-typedef struct _SidebarGroupingClass SidebarGroupingClass;
-
-#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
-#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
-#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
-#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
-
-typedef struct _SidebarHeader SidebarHeader;
-typedef struct _SidebarHeaderClass SidebarHeaderClass;
-
-#define TAGS_TYPE_HEADER (tags_header_get_type ())
-#define TAGS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_HEADER, TagsHeader))
-#define TAGS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_HEADER, TagsHeaderClass))
-#define TAGS_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_HEADER))
-#define TAGS_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_HEADER))
-#define TAGS_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_HEADER, TagsHeaderClass))
-
-typedef struct _TagsHeader TagsHeader;
-typedef struct _TagsHeaderClass TagsHeaderClass;
-
-#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
-#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
-#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
-#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
-
-typedef struct _SidebarEntry SidebarEntry;
-typedef struct _SidebarEntryIface SidebarEntryIface;
-
-#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
-#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
-#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
-#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
-
-typedef struct _SidebarTree SidebarTree;
-typedef struct _SidebarTreeClass SidebarTreeClass;
-
-#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
-#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
-
-#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
-#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
-#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
-#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
-
-typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
-typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
-#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
-#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
-#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
-
-typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
-typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
-typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate;
-
-#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ())
-#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry))
-#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY))
-#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface))
-
-typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry;
-typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface;
-typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate;
-
-#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ())
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry))
-#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY))
-#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface))
-
-typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry;
-typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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 SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY (sidebar_internal_drag_source_entry_get_type ())
-#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntry))
-#define SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY))
-#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntryIface))
-
-typedef struct _SidebarInternalDragSourceEntry SidebarInternalDragSourceEntry;
-typedef struct _SidebarInternalDragSourceEntryIface SidebarInternalDragSourceEntryIface;
-
-#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
-#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
-#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
-#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
-
-typedef struct _SidebarContextable SidebarContextable;
-typedef struct _SidebarContextableIface SidebarContextableIface;
-typedef struct _TagsHeaderPrivate TagsHeaderPrivate;
-enum {
- TAGS_HEADER_0_PROPERTY,
- TAGS_HEADER_NUM_PROPERTIES
-};
-static GParamSpec* tags_header_properties[TAGS_HEADER_NUM_PROPERTIES];
-
-#define TYPE_APPLICATION (application_get_type ())
-#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
-#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
-#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
-#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
-#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
-
-typedef struct _Application Application;
-typedef struct _ApplicationClass ApplicationClass;
-#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ())
-#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
-#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
-
-typedef struct _TextEntryDialogMediator TextEntryDialogMediator;
-typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass;
-
-#define TYPE_TAGS_DIALOG (tags_dialog_get_type ())
-#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog))
-#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass))
-#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG))
-#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG))
-#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass))
-
-typedef struct _TagsDialog TagsDialog;
-typedef struct _TagsDialogClass TagsDialogClass;
-
-#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ())
-#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog))
-#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
-#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG))
-#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG))
-#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
-
-typedef struct _AddTagsDialog AddTagsDialog;
-typedef struct _AddTagsDialogClass AddTagsDialogClass;
-#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL)))
-
-#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))
-#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
-#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
-#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
-
-typedef struct _CommandManager CommandManager;
-typedef struct _CommandManagerClass CommandManagerClass;
-
-#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))
-#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
-#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
-#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
-
-typedef struct _Command Command;
-typedef struct _CommandClass CommandClass;
-
-#define TYPE_PAGE_COMMAND (page_command_get_type ())
-#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
-#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
-#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
-#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
-#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
-
-typedef struct _PageCommand PageCommand;
-typedef struct _PageCommandClass PageCommandClass;
-
-#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ())
-#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand))
-#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
-#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND))
-#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND))
-#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
-
-typedef struct _AddTagsCommand AddTagsCommand;
-typedef struct _AddTagsCommandClass AddTagsCommandClass;
-#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
-
-#define TYPE_REPARENT_TAG_COMMAND (reparent_tag_command_get_type ())
-#define REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand))
-#define REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass))
-#define IS_REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REPARENT_TAG_COMMAND))
-#define IS_REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REPARENT_TAG_COMMAND))
-#define REPARENT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass))
-
-typedef struct _ReparentTagCommand ReparentTagCommand;
-typedef struct _ReparentTagCommandClass ReparentTagCommandClass;
-
-#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
-#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
-#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
-#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
-
-typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
-typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
-
-#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
-#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
-#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
-#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
-
-typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
-typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
-
-#define TYPE_PAGE (page_get_type ())
-#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
-#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
-#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
-#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
-#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
-
-typedef struct _Page Page;
-typedef struct _PageClass PageClass;
-typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
-
-#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ())
-#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry))
-#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY))
-#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface))
-
-typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry;
-typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface;
-typedef struct _TagsSidebarEntryPrivate TagsSidebarEntryPrivate;
-enum {
- TAGS_SIDEBAR_ENTRY_0_PROPERTY,
- TAGS_SIDEBAR_ENTRY_NUM_PROPERTIES
-};
-static GParamSpec* tags_sidebar_entry_properties[TAGS_SIDEBAR_ENTRY_NUM_PROPERTIES];
-
-#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
-#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
-#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
-#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
-#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
-
-typedef struct _CheckerboardPage CheckerboardPage;
-typedef struct _CheckerboardPageClass CheckerboardPageClass;
-
-#define TYPE_MEDIA_PAGE (media_page_get_type ())
-#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
-#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
-#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
-#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
-#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
-
-typedef struct _MediaPage MediaPage;
-typedef struct _MediaPageClass MediaPageClass;
-
-#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
-#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
-#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
-#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
-#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
-#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
-
-typedef struct _CollectionPage CollectionPage;
-typedef struct _CollectionPageClass CollectionPageClass;
-
-#define TYPE_TAG_PAGE (tag_page_get_type ())
-#define TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_PAGE, TagPage))
-#define TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_PAGE, TagPageClass))
-#define IS_TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_PAGE))
-#define IS_TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_PAGE))
-#define TAG_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_PAGE, TagPageClass))
-
-typedef struct _TagPage TagPage;
-typedef struct _TagPageClass TagPageClass;
-#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
-
-#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ())
-#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand))
-#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND))
-#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
-
-typedef struct _SimpleProxyableCommand SimpleProxyableCommand;
-typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass;
-
-#define TYPE_RENAME_TAG_COMMAND (rename_tag_command_get_type ())
-#define RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommand))
-#define RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass))
-#define IS_RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_TAG_COMMAND))
-#define IS_RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_TAG_COMMAND))
-#define RENAME_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass))
-
-typedef struct _RenameTagCommand RenameTagCommand;
-typedef struct _RenameTagCommandClass RenameTagCommandClass;
-
-#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ())
-#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand))
-#define DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
-#define IS_DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_TAG_COMMAND))
-#define IS_DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_TAG_COMMAND))
-#define DELETE_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
-
-typedef struct _DeleteTagCommand DeleteTagCommand;
-typedef struct _DeleteTagCommandClass DeleteTagCommandClass;
-
-#define TYPE_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ())
-#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand))
-#define TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
-#define IS_TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
-#define IS_TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
-#define TAG_UNTAG_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
-
-typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand;
-typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SidebarBranch {
- GObject parent_instance;
- SidebarBranchPrivate * priv;
-};
-
-struct _SidebarBranchClass {
- GObjectClass parent_class;
-};
-
-struct _TagsBranch {
- SidebarBranch parent_instance;
- TagsBranchPrivate * priv;
-};
-
-struct _TagsBranchClass {
- SidebarBranchClass parent_class;
-};
-
-struct _TagsBranchPrivate {
- GeeHashMap* entry_map;
-};
-
-struct _SidebarEntryIface {
- GTypeInterface parent_iface;
- gchar* (*get_sidebar_name) (SidebarEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
- gchar* (*get_sidebar_icon) (SidebarEntry* self);
- gchar* (*to_string) (SidebarEntry* self);
- void (*grafted) (SidebarEntry* self, SidebarTree* tree);
- void (*pruned) (SidebarEntry* self, SidebarTree* tree);
-};
-
-typedef enum {
- SIDEBAR_BRANCH_OPTIONS_NONE = 0,
- SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
- SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
- SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
-} SidebarBranchOptions;
-
-struct _SidebarRenameableEntryIface {
- GTypeInterface parent_iface;
- void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
- gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
-};
-
-struct _SidebarExpandableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*expand_on_select) (SidebarExpandableEntry* self);
-};
-
-struct _SidebarGrouping {
- GObject parent_instance;
- SidebarGroupingPrivate * priv;
-};
-
-struct _SidebarGroupingClass {
- GObjectClass parent_class;
-};
-
-struct _SidebarEmphasizableEntryIface {
- GTypeInterface parent_iface;
- gboolean (*is_emphasized) (SidebarEmphasizableEntry* self);
-};
-
-struct _SidebarHeader {
- SidebarGrouping parent_instance;
- SidebarHeaderPrivate * priv;
-};
-
-struct _SidebarHeaderClass {
- SidebarGroupingClass parent_class;
-};
-
-struct _SidebarInternalDropTargetEntryIface {
- GTypeInterface parent_iface;
- gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources);
- gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data);
-};
-
-struct _SidebarInternalDragSourceEntryIface {
- GTypeInterface parent_iface;
- void (*prepare_selection_data) (SidebarInternalDragSourceEntry* self, GtkSelectionData* data);
-};
-
-struct _SidebarContextableIface {
- GTypeInterface parent_iface;
- GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
-};
-
-struct _TagsHeader {
- SidebarHeader parent_instance;
- TagsHeaderPrivate * priv;
-};
-
-struct _TagsHeaderClass {
- SidebarHeaderClass parent_class;
-};
-
-struct _TagsHeaderPrivate {
- GtkBuilder* builder;
- GtkMenu* context_menu;
-};
-
-struct _SidebarSelectableEntryIface {
- GTypeInterface parent_iface;
-};
-
-struct _SidebarPageRepresentativeIface {
- GTypeInterface parent_iface;
- gboolean (*has_page) (SidebarPageRepresentative* self);
- Page* (*get_page) (SidebarPageRepresentative* self);
-};
-
-struct _SidebarSimplePageEntry {
- GObject parent_instance;
- SidebarSimplePageEntryPrivate * priv;
-};
-
-struct _SidebarSimplePageEntryClass {
- GObjectClass parent_class;
- gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
- gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
- gchar* (*to_string) (SidebarSimplePageEntry* self);
- Page* (*create_page) (SidebarSimplePageEntry* self);
-};
-
-struct _SidebarDestroyableEntryIface {
- GTypeInterface parent_iface;
- void (*destroy_source) (SidebarDestroyableEntry* self);
-};
-
-struct _TagsSidebarEntry {
- SidebarSimplePageEntry parent_instance;
- TagsSidebarEntryPrivate * priv;
-};
-
-struct _TagsSidebarEntryClass {
- SidebarSimplePageEntryClass parent_class;
-};
-
-struct _TagsSidebarEntryPrivate {
- gchar* single_tag_icon;
- Tag* tag;
-};
-
-
-static gpointer tags_branch_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-static gpointer tags_header_parent_class = NULL;
-static SidebarInternalDropTargetEntryIface * tags_header_sidebar_internal_drop_target_entry_parent_iface = NULL;
-static SidebarInternalDragSourceEntryIface * tags_header_sidebar_internal_drag_source_entry_parent_iface = NULL;
-static SidebarContextableIface * tags_header_sidebar_contextable_parent_iface = NULL;
-static gpointer tags_sidebar_entry_parent_class = NULL;
-static SidebarRenameableEntryIface * tags_sidebar_entry_sidebar_renameable_entry_parent_iface = NULL;
-static SidebarDestroyableEntryIface * tags_sidebar_entry_sidebar_destroyable_entry_parent_iface = NULL;
-static SidebarInternalDropTargetEntryIface * tags_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = NULL;
-static SidebarExpandableEntryIface * tags_sidebar_entry_sidebar_expandable_entry_parent_iface = NULL;
-static SidebarInternalDragSourceEntryIface * tags_sidebar_entry_sidebar_internal_drag_source_entry_parent_iface = NULL;
-
-GType sidebar_branch_get_type (void) G_GNUC_CONST;
-GType tags_branch_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType tag_get_type (void) G_GNUC_CONST;
-GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
-GType tags_sidebar_entry_get_type (void) G_GNUC_CONST;
-#define TAGS_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_BRANCH, TagsBranchPrivate))
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-static void tags_branch_on_tags_added_removed (TagsBranch* self,
- GeeIterable* added_raw,
- GeeIterable* removed);
-static void _tags_branch_on_tags_added_removed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self);
-gpointer alteration_ref (gpointer instance);
-void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_alteration (GValue* value,
- gpointer v_object);
-void value_take_alteration (GValue* value,
- gpointer v_object);
-gpointer value_get_alteration (const GValue* value);
-GType alteration_get_type (void) G_GNUC_CONST;
-static void tags_branch_on_tags_altered (TagsBranch* self,
- GeeMap* altered);
-static void _tags_branch_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self);
-TagsBranch* tags_branch_new (void);
-TagsBranch* tags_branch_construct (GType object_type);
-TagsHeader* tags_header_new (void);
-TagsHeader* tags_header_construct (GType object_type);
-GType sidebar_grouping_get_type (void) G_GNUC_CONST;
-GType sidebar_header_get_type (void) G_GNUC_CONST;
-GType tags_header_get_type (void) G_GNUC_CONST;
-GType sidebar_tree_get_type (void) G_GNUC_CONST;
-GType sidebar_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-static gint tags_branch_comparator (SidebarEntry* a,
- SidebarEntry* b);
-static gint _tags_branch_comparator_gcompare_func (gconstpointer a,
- gconstpointer b);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type,
- SidebarEntry* root,
- SidebarBranchOptions options,
- GCompareFunc default_comparator,
- GCompareFunc root_comparator);
-GeeCollection* data_collection_get_all (DataCollection* self);
-TagsSidebarEntry* tags_branch_get_entry_for_tag (TagsBranch* self,
- Tag* tag);
-gboolean tags_branch_is_user_renameable (TagsBranch* self);
-gint tag_compare_names (Tag* a,
- Tag* b);
-Tag* tags_sidebar_entry_for_tag (TagsSidebarEntry* self);
-static gint _tag_compare_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-Tag* tag_get_hierarchical_parent (Tag* self);
-TagsSidebarEntry* tags_sidebar_entry_new (Tag* tag);
-TagsSidebarEntry* tags_sidebar_entry_construct (GType object_type,
- Tag* tag);
-void sidebar_branch_graft (SidebarBranch* self,
- SidebarEntry* parent,
- SidebarEntry* entry,
- GCompareFunc comparator);
-SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-void sidebar_branch_prune (SidebarBranch* self,
- SidebarEntry* entry);
-gboolean alteration_has_detail (Alteration* self,
- const gchar* subject,
- const gchar* detail);
-GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
-gchar* tag_get_user_visible_name (Tag* self);
-void sidebar_branch_reorder (SidebarBranch* self,
- SidebarEntry* entry);
-static void tags_branch_finalize (GObject * obj);
-GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_internal_drag_source_entry_get_type (void) G_GNUC_CONST;
-GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-#define TAGS_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_HEADER, TagsHeaderPrivate))
-SidebarHeader* sidebar_header_new (const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type,
- const gchar* name,
- const gchar* tooltip,
- gboolean emphasized);
-static void tags_header_setup_context_menu (TagsHeader* self);
-gchar* resources_get_ui (const gchar* filename);
-void app_window_error_message (const gchar* message,
- GtkWindow* parent);
-gpointer application_ref (gpointer instance);
-void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_application (GValue* value,
- gpointer v_object);
-void value_take_application (GValue* value,
- gpointer v_object);
-gpointer value_get_application (const GValue* value);
-GType application_get_type (void) G_GNUC_CONST;
-Application* application_get_instance (void);
-void application_panic (Application* self);
-static gboolean tags_header_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media);
-gpointer text_entry_dialog_mediator_ref (gpointer instance);
-void text_entry_dialog_mediator_unref (gpointer instance);
-GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-void value_take_text_entry_dialog_mediator (GValue* value,
- gpointer v_object);
-gpointer value_get_text_entry_dialog_mediator (const GValue* value);
-GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
-GType tags_dialog_get_type (void) G_GNUC_CONST;
-GType add_tags_dialog_get_type (void) G_GNUC_CONST;
-AddTagsDialog* add_tags_dialog_new (void);
-AddTagsDialog* add_tags_dialog_construct (GType object_type);
-gchar** add_tags_dialog_execute (AddTagsDialog* self,
- int* result_length1);
-gpointer command_manager_ref (gpointer instance);
-void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_command_manager (GValue* value,
- gpointer v_object);
-void value_take_command_manager (GValue* value,
- gpointer v_object);
-gpointer value_get_command_manager (const GValue* value);
-GType command_manager_get_type (void) G_GNUC_CONST;
-CommandManager* app_window_get_command_manager (void);
-GType command_get_type (void) G_GNUC_CONST;
-void command_manager_execute (CommandManager* self,
- Command* command);
-AddTagsCommand* add_tags_command_new (gchar** paths,
- int paths_length1,
- GeeCollection* sources);
-AddTagsCommand* add_tags_command_construct (GType object_type,
- gchar** paths,
- int paths_length1,
- GeeCollection* sources);
-GType page_command_get_type (void) G_GNUC_CONST;
-GType add_tags_command_get_type (void) G_GNUC_CONST;
-static gboolean tags_header_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data);
-#define LIBRARY_WINDOW_TAG_PATH_MIME_TYPE "shotwell/tag-path"
-gboolean tag_source_collection_exists (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root);
-GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
-Tag* tag_for_path (const gchar* name);
-ReparentTagCommand* reparent_tag_command_new (Tag* tag,
- const gchar* new_parent_path);
-ReparentTagCommand* reparent_tag_command_construct (GType object_type,
- Tag* tag,
- const gchar* new_parent_path);
-GType reparent_tag_command_get_type (void) G_GNUC_CONST;
-static void tags_header_real_prepare_selection_data (SidebarInternalDragSourceEntry* base,
- GtkSelectionData* data);
-static GtkMenu* tags_header_real_get_sidebar_context_menu (SidebarContextable* base,
- GdkEventButton* event);
-static void tags_header_finalize (GObject * obj);
-GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
-GType page_get_type (void) G_GNUC_CONST;
-GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
-GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST;
-#define TAGS_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryPrivate))
-#define RESOURCES_ICON_ONE_TAG "one-tag"
-SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
-void tags_sidebar_entry_init (void);
-void tags_sidebar_entry_terminate (void);
-static gchar* tags_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
-static gchar* tags_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
-static Page* tags_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
-TagPage* tag_page_new (Tag* tag);
-TagPage* tag_page_construct (GType object_type,
- Tag* tag);
-GType checkerboard_page_get_type (void) G_GNUC_CONST;
-GType media_page_get_type (void) G_GNUC_CONST;
-GType collection_page_get_type (void) G_GNUC_CONST;
-GType tag_page_get_type (void) G_GNUC_CONST;
-static gboolean tags_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base);
-static void tags_sidebar_entry_real_rename (SidebarRenameableEntry* base,
- const gchar* new_name);
-gchar* tag_prep_tag_name (const gchar* name);
-RenameTagCommand* rename_tag_command_new (Tag* tag,
- const gchar* new_name);
-RenameTagCommand* rename_tag_command_construct (GType object_type,
- Tag* tag,
- const gchar* new_name);
-GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
-GType rename_tag_command_get_type (void) G_GNUC_CONST;
-static void tags_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base);
-gboolean dialogs_confirm_delete_tag (Tag* tag);
-DeleteTagCommand* delete_tag_command_new (Tag* tag);
-DeleteTagCommand* delete_tag_command_construct (GType object_type,
- Tag* tag);
-GType delete_tag_command_get_type (void) G_GNUC_CONST;
-static gboolean tags_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media);
-TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag,
- GeeCollection* sources,
- gint count,
- gboolean attach);
-TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type,
- Tag* tag,
- GeeCollection* sources,
- gint count,
- gboolean attach);
-GType tag_untag_photos_command_get_type (void) G_GNUC_CONST;
-static gboolean tags_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data);
-gchar* tag_get_path (Tag* self);
-GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
-static gboolean tags_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base);
-static void tags_sidebar_entry_real_prepare_selection_data (SidebarInternalDragSourceEntry* base,
- GtkSelectionData* data);
-static void tags_sidebar_entry_finalize (GObject * obj);
-static void _vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func);
-static void _vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func);
-
-
-static void
-_tags_branch_on_tags_added_removed_data_collection_contents_altered (DataCollection* _sender,
- GeeIterable* added,
- GeeIterable* removed,
- gpointer self)
-{
-#line 26 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_branch_on_tags_added_removed ((TagsBranch*) self, added, removed);
-#line 944 "TagsBranch.c"
-}
-
-
-static void
-_tags_branch_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
- GeeMap* items,
- gpointer self)
-{
-#line 27 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_branch_on_tags_altered ((TagsBranch*) self, items);
-#line 955 "TagsBranch.c"
-}
-
-
-static gint
-_tags_branch_comparator_gcompare_func (gconstpointer a,
- gconstpointer b)
-{
- gint result;
- result = tags_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
-#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 967 "TagsBranch.c"
-}
-
-
-TagsBranch*
-tags_branch_construct (GType object_type)
-{
- TagsBranch * self = NULL;
- TagsHeader* _tmp0_;
- TagsHeader* _tmp1_;
- TagSourceCollection* _tmp2_;
- GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
- TagSourceCollection* _tmp5_;
- TagSourceCollection* _tmp6_;
-#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = tags_header_new ();
-#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = (TagsBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY | SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD) | SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING, _tags_branch_comparator_gcompare_func, NULL);
-#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = tag_global;
-#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection));
-#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_branch_on_tags_added_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable), NULL);
-#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp4_);
-#line 21 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = tag_global;
-#line 21 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _tags_branch_on_tags_added_removed_data_collection_contents_altered, self, 0);
-#line 22 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = tag_global;
-#line 22 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _tags_branch_on_tags_altered_data_collection_items_altered, self, 0);
-#line 10 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return self;
-#line 1010 "TagsBranch.c"
-}
-
-
-TagsBranch*
-tags_branch_new (void)
-{
-#line 10 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return tags_branch_construct (TAGS_TYPE_BRANCH);
-#line 1019 "TagsBranch.c"
-}
-
-
-TagsSidebarEntry*
-tags_branch_get_entry_for_tag (TagsBranch* self,
- Tag* tag)
-{
- TagsSidebarEntry* result = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
-#line 30 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (TAGS_IS_BRANCH (self), NULL);
-#line 30 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 31 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = self->priv->entry_map;
-#line 31 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), tag);
-#line 31 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = (TagsSidebarEntry*) _tmp1_;
-#line 31 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 1042 "TagsBranch.c"
-}
-
-
-gboolean
-tags_branch_is_user_renameable (TagsBranch* self)
-{
- gboolean result = FALSE;
-#line 34 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (TAGS_IS_BRANCH (self), FALSE);
-#line 35 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 35 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 1056 "TagsBranch.c"
-}
-
-
-static gint
-tags_branch_comparator (SidebarEntry* a,
- SidebarEntry* b)
-{
- gint result = 0;
- Tag* _tmp0_;
- Tag* _tmp1_;
- Tag* _tmp2_;
- Tag* _tmp3_;
- gint _tmp4_;
-#line 38 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
-#line 38 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
-#line 39 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (a == b) {
-#line 40 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = 0;
-#line 40 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 1080 "TagsBranch.c"
- }
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = tags_sidebar_entry_for_tag (G_TYPE_CHECK_INSTANCE_CAST (a, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry));
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = tags_sidebar_entry_for_tag (G_TYPE_CHECK_INSTANCE_CAST (b, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry));
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = _tmp2_;
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = tag_compare_names (_tmp1_, _tmp3_);
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp1_);
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = _tmp4_;
-#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 1100 "TagsBranch.c"
-}
-
-
-static gint
-_tag_compare_names_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = tag_compare_names ((Tag*) a, (Tag*) b);
-#line 57 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 1113 "TagsBranch.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 59 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1122 "TagsBranch.c"
-}
-
-
-static void
-tags_branch_on_tags_added_removed (TagsBranch* self,
- GeeIterable* added_raw,
- GeeIterable* removed)
-{
- Tag* restore_point = NULL;
-#line 46 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail (TAGS_IS_BRANCH (self));
-#line 46 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail ((added_raw == NULL) || GEE_IS_ITERABLE (added_raw));
-#line 46 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
-#line 51 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- restore_point = NULL;
-#line 53 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (added_raw != NULL) {
-#line 1142 "TagsBranch.c"
- GeeSortedSet* added = NULL;
- GeeTreeSet* _tmp0_;
-#line 57 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = gee_tree_set_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tag_compare_names_gcompare_data_func, NULL, NULL);
-#line 57 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- added = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 1149 "TagsBranch.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp1_;
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = gee_iterable_iterator (added_raw);
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _object_it = _tmp1_;
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- while (TRUE) {
-#line 1159 "TagsBranch.c"
- GeeIterator* _tmp2_;
- DataObject* object = NULL;
- GeeIterator* _tmp3_;
- gpointer _tmp4_;
- Tag* tag = NULL;
- DataObject* _tmp5_;
- Tag* _tmp6_;
- GeeSortedSet* _tmp7_;
- Tag* _tmp8_;
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = _object_it;
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (!gee_iterator_next (_tmp2_)) {
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- break;
-#line 1175 "TagsBranch.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = _object_it;
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = gee_iterator_get (_tmp3_);
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- object = (DataObject*) _tmp4_;
-#line 59 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = object;
-#line 59 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_TAG, Tag));
-#line 59 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tag = _tmp6_;
-#line 60 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp7_ = added;
-#line 60 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp8_ = tag;
-#line 60 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp8_);
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (tag);
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (object);
-#line 1199 "TagsBranch.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_object_it);
-#line 1203 "TagsBranch.c"
- }
- {
- GeeIterator* _tag_it = NULL;
- GeeSortedSet* _tmp9_;
- GeeIterator* _tmp10_;
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp9_ = added;
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tag_it = _tmp10_;
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- while (TRUE) {
-#line 1217 "TagsBranch.c"
- GeeIterator* _tmp11_;
- Tag* tag = NULL;
- GeeIterator* _tmp12_;
- gpointer _tmp13_;
- Tag* parent_tag = NULL;
- Tag* _tmp14_;
- Tag* _tmp15_;
- TagsSidebarEntry* entry = NULL;
- Tag* _tmp26_;
- TagsSidebarEntry* _tmp27_;
- GeeHashMap* _tmp28_;
- Tag* _tmp29_;
- TagsSidebarEntry* _tmp30_;
- Tag* _tmp31_;
- Tag* _tmp32_;
- Tag* _tmp33_;
- Tag* _tmp42_;
- Tag* _tmp43_;
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp11_ = _tag_it;
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (!gee_iterator_next (_tmp11_)) {
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- break;
-#line 1242 "TagsBranch.c"
- }
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp12_ = _tag_it;
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp13_ = gee_iterator_get (_tmp12_);
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tag = (Tag*) _tmp13_;
-#line 66 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp14_ = tag;
-#line 66 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp15_ = tag_get_hierarchical_parent (_tmp14_);
-#line 66 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- parent_tag = _tmp15_;
-#line 67 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- while (TRUE) {
-#line 1258 "TagsBranch.c"
- Tag* _tmp16_;
- GeeHashMap* _tmp17_;
- Tag* _tmp18_;
- Tag* _tmp24_;
- Tag* _tmp25_;
-#line 67 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp16_ = parent_tag;
-#line 67 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (!(_tmp16_ != NULL)) {
-#line 67 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- break;
-#line 1270 "TagsBranch.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp17_ = self->priv->entry_map;
-#line 68 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp18_ = parent_tag;
-#line 68 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp18_)) {
-#line 1278 "TagsBranch.c"
- TagsSidebarEntry* parent_entry = NULL;
- Tag* _tmp19_;
- TagsSidebarEntry* _tmp20_;
- GeeHashMap* _tmp21_;
- Tag* _tmp22_;
- TagsSidebarEntry* _tmp23_;
-#line 69 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp19_ = parent_tag;
-#line 69 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp20_ = tags_sidebar_entry_new (_tmp19_);
-#line 69 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- parent_entry = _tmp20_;
-#line 70 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp21_ = self->priv->entry_map;
-#line 70 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp22_ = parent_tag;
-#line 70 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp23_ = parent_entry;
-#line 70 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, _tmp23_);
-#line 68 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (parent_entry);
-#line 1301 "TagsBranch.c"
- }
-#line 73 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp24_ = parent_tag;
-#line 73 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp25_ = tag_get_hierarchical_parent (_tmp24_);
-#line 73 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (parent_tag);
-#line 73 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- parent_tag = _tmp25_;
-#line 1311 "TagsBranch.c"
- }
-#line 77 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp26_ = tag;
-#line 77 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp27_ = tags_sidebar_entry_new (_tmp26_);
-#line 77 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- entry = _tmp27_;
-#line 78 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp28_ = self->priv->entry_map;
-#line 78 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp29_ = tag;
-#line 78 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp30_ = entry;
-#line 78 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, _tmp30_);
-#line 80 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp31_ = tag;
-#line 80 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp32_ = tag_get_hierarchical_parent (_tmp31_);
-#line 80 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (parent_tag);
-#line 80 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- parent_tag = _tmp32_;
-#line 81 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp33_ = parent_tag;
-#line 81 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp33_ != NULL) {
-#line 1339 "TagsBranch.c"
- TagsSidebarEntry* parent_entry = NULL;
- GeeHashMap* _tmp34_;
- Tag* _tmp35_;
- gpointer _tmp36_;
- TagsSidebarEntry* _tmp37_;
- TagsSidebarEntry* _tmp38_;
-#line 82 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp34_ = self->priv->entry_map;
-#line 82 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp35_ = parent_tag;
-#line 82 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp36_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp35_);
-#line 82 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- parent_entry = (TagsSidebarEntry*) _tmp36_;
-#line 83 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp37_ = parent_entry;
-#line 83 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp38_ = entry;
-#line 83 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, SIDEBAR_TYPE_ENTRY, SidebarEntry), G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
-#line 81 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (parent_entry);
-#line 1362 "TagsBranch.c"
- } else {
- SidebarEntry* _tmp39_;
- SidebarEntry* _tmp40_;
- TagsSidebarEntry* _tmp41_;
-#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp39_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
-#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp40_ = _tmp39_;
-#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp41_ = entry;
-#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
-#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp40_);
-#line 1377 "TagsBranch.c"
- }
-#line 90 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp42_ = tag;
-#line 90 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp43_ = _g_object_ref0 (_tmp42_);
-#line 90 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (restore_point);
-#line 90 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- restore_point = _tmp43_;
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (entry);
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (parent_tag);
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (tag);
-#line 1393 "TagsBranch.c"
- }
-#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tag_it);
-#line 1397 "TagsBranch.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (added);
-#line 1401 "TagsBranch.c"
- }
-#line 94 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (removed != NULL) {
-#line 1405 "TagsBranch.c"
- {
- GeeIterator* _object_it = NULL;
- GeeIterator* _tmp44_;
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp44_ = gee_iterable_iterator (removed);
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _object_it = _tmp44_;
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- while (TRUE) {
-#line 1415 "TagsBranch.c"
- GeeIterator* _tmp45_;
- DataObject* object = NULL;
- GeeIterator* _tmp46_;
- gpointer _tmp47_;
- Tag* tag = NULL;
- DataObject* _tmp48_;
- Tag* _tmp49_;
- TagsSidebarEntry* entry = NULL;
- GeeHashMap* _tmp50_;
- Tag* _tmp51_;
- gpointer _tmp52_;
- TagsSidebarEntry* _tmp53_;
- gboolean is_removed = FALSE;
- GeeHashMap* _tmp54_;
- Tag* _tmp55_;
- gboolean _tmp56_;
- gboolean _tmp57_;
- TagsSidebarEntry* _tmp58_;
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp45_ = _object_it;
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (!gee_iterator_next (_tmp45_)) {
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- break;
-#line 1440 "TagsBranch.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp46_ = _object_it;
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp47_ = gee_iterator_get (_tmp46_);
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- object = (DataObject*) _tmp47_;
-#line 96 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp48_ = object;
-#line 96 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp49_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_TAG, Tag));
-#line 96 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tag = _tmp49_;
-#line 98 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp50_ = self->priv->entry_map;
-#line 98 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp51_ = tag;
-#line 98 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp52_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp51_);
-#line 98 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- entry = (TagsSidebarEntry*) _tmp52_;
-#line 99 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp53_ = entry;
-#line 99 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _vala_assert (_tmp53_ != NULL, "entry != null");
-#line 101 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp54_ = self->priv->entry_map;
-#line 101 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp55_ = tag;
-#line 101 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp56_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp55_, NULL);
-#line 101 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- is_removed = _tmp56_;
-#line 102 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp57_ = is_removed;
-#line 102 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _vala_assert (_tmp57_, "is_removed");
-#line 104 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp58_ = entry;
-#line 104 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (entry);
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (tag);
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (object);
-#line 1488 "TagsBranch.c"
- }
-#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_object_it);
-#line 1492 "TagsBranch.c"
- }
- }
-#line 46 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (restore_point);
-#line 1497 "TagsBranch.c"
-}
-
-
-static void
-tags_branch_on_tags_altered (TagsBranch* self,
- GeeMap* altered)
-{
-#line 109 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail (TAGS_IS_BRANCH (self));
-#line 109 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail (GEE_IS_MAP (altered));
-#line 1509 "TagsBranch.c"
- {
- GeeIterator* _object_it = NULL;
- GeeSet* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
- GeeIterator* _tmp3_;
- GeeIterator* _tmp4_;
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = gee_map_get_keys (altered);
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = _tmp1_;
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp2_);
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _object_it = _tmp4_;
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- while (TRUE) {
-#line 1533 "TagsBranch.c"
- GeeIterator* _tmp5_;
- DataObject* object = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- DataObject* _tmp8_;
- gpointer _tmp9_;
- Alteration* _tmp10_;
- gboolean _tmp11_;
- Tag* tag = NULL;
- DataObject* _tmp12_;
- Tag* _tmp13_;
- TagsSidebarEntry* entry = NULL;
- GeeHashMap* _tmp14_;
- Tag* _tmp15_;
- gpointer _tmp16_;
- TagsSidebarEntry* _tmp17_;
- TagsSidebarEntry* _tmp18_;
- Tag* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- TagsSidebarEntry* _tmp22_;
- Tag* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- TagsSidebarEntry* _tmp26_;
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = _object_it;
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (!gee_iterator_next (_tmp5_)) {
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- break;
-#line 1565 "TagsBranch.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = _object_it;
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- object = (DataObject*) _tmp7_;
-#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp8_ = object;
-#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp9_ = gee_map_get (altered, _tmp8_);
-#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp10_ = (Alteration*) _tmp9_;
-#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp11_ = !alteration_has_detail (_tmp10_, "metadata", "name");
-#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _alteration_unref0 (_tmp10_);
-#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp11_) {
-#line 112 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (object);
-#line 112 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- continue;
-#line 1589 "TagsBranch.c"
- }
-#line 114 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp12_ = object;
-#line 114 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_TAG, Tag));
-#line 114 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tag = _tmp13_;
-#line 115 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp14_ = self->priv->entry_map;
-#line 115 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp15_ = tag;
-#line 115 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_);
-#line 115 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- entry = (TagsSidebarEntry*) _tmp16_;
-#line 116 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp17_ = entry;
-#line 116 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _vala_assert (_tmp17_ != NULL, "entry != null");
-#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp18_ = entry;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp19_ = tag;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp20_ = tag_get_user_visible_name (_tmp19_);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp21_ = _tmp20_;
-#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry), "sidebar-name-changed", _tmp21_);
-#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp21_);
-#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp22_ = entry;
-#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp23_ = tag;
-#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp24_ = tag_get_user_visible_name (_tmp23_);
-#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp25_ = _tmp24_;
-#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-tooltip-changed", _tmp25_);
-#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp25_);
-#line 120 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp26_ = entry;
-#line 120 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- sidebar_branch_reorder (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (entry);
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (tag);
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (object);
-#line 1643 "TagsBranch.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_object_it);
-#line 1647 "TagsBranch.c"
- }
-}
-
-
-static void
-tags_branch_class_init (TagsBranchClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_branch_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_type_class_add_private (klass, sizeof (TagsBranchPrivate));
-#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = tags_branch_finalize;
-#line 1661 "TagsBranch.c"
-}
-
-
-static void
-tags_branch_instance_init (TagsBranch * self)
-{
- GeeHashMap* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv = TAGS_BRANCH_GET_PRIVATE (self);
-#line 8 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = gee_hash_map_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TAGS_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 8 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv->entry_map = _tmp0_;
-#line 1675 "TagsBranch.c"
-}
-
-
-static void
-tags_branch_finalize (GObject * obj)
-{
- TagsBranch * self;
- TagSourceCollection* _tmp0_;
- guint _tmp1_;
- TagSourceCollection* _tmp2_;
- guint _tmp3_;
-#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_BRANCH, TagsBranch);
-#line 26 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = tag_global;
-#line 26 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
-#line 26 "/home/jens/Source/shotwell/src/tags/TagsBranch.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) _tags_branch_on_tags_added_removed_data_collection_contents_altered, self);
-#line 27 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = tag_global;
-#line 27 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
-#line 27 "/home/jens/Source/shotwell/src/tags/TagsBranch.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) _tags_branch_on_tags_altered_data_collection_items_altered, self);
-#line 8 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (self->priv->entry_map);
-#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- G_OBJECT_CLASS (tags_branch_parent_class)->finalize (obj);
-#line 1705 "TagsBranch.c"
-}
-
-
-GType
-tags_branch_get_type (void)
-{
- static volatile gsize tags_branch_type_id__volatile = 0;
- if (g_once_init_enter (&tags_branch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagsBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsBranch), 0, (GInstanceInitFunc) tags_branch_instance_init, NULL };
- GType tags_branch_type_id;
- tags_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "TagsBranch", &g_define_type_info, 0);
- g_once_init_leave (&tags_branch_type_id__volatile, tags_branch_type_id);
- }
- return tags_branch_type_id__volatile;
-}
-
-
-TagsHeader*
-tags_header_construct (GType object_type)
-{
- TagsHeader * self = NULL;
-#line 131 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = (TagsHeader*) sidebar_header_construct (object_type, _ ("Tags"), _ ("Organize and browse your photo’s tags"), TRUE);
-#line 132 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_header_setup_context_menu (self);
-#line 130 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return self;
-#line 1733 "TagsBranch.c"
-}
-
-
-TagsHeader*
-tags_header_new (void)
-{
-#line 130 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return tags_header_construct (TAGS_TYPE_HEADER);
-#line 1742 "TagsBranch.c"
-}
-
-
-static void
-tags_header_setup_context_menu (TagsHeader* self)
-{
- GtkBuilder* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail (TAGS_IS_HEADER (self));
-#line 136 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = gtk_builder_new ();
-#line 136 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (self->priv->builder);
-#line 136 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv->builder = _tmp0_;
-#line 1759 "TagsBranch.c"
- {
- GtkBuilder* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GMenuModel* model = NULL;
- GtkBuilder* _tmp4_;
- GObject* _tmp5_;
- GMenuModel* _tmp6_;
- GMenuModel* _tmp7_;
- GtkMenu* _tmp8_;
-#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = self->priv->builder;
-#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = resources_get_ui ("tag_sidebar_context.ui");
-#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = _tmp2_;
-#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- gtk_builder_add_from_resource (_tmp1_, _tmp3_, &_inner_error_);
-#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp3_);
-#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1782 "TagsBranch.c"
- goto __catch61_g_error;
- }
-#line 139 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = self->priv->builder;
-#line 139 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = gtk_builder_get_object (_tmp4_, "popup-menu");
-#line 139 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp5_) : NULL);
-#line 139 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- model = _tmp6_;
-#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp7_ = model;
-#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp8_ = (GtkMenu*) gtk_menu_new_from_model (_tmp7_);
-#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_object_ref_sink (_tmp8_);
-#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (self->priv->context_menu);
-#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv->context_menu = _tmp8_;
-#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (model);
-#line 1805 "TagsBranch.c"
- }
- goto __finally61;
- __catch61_g_error:
- {
- GError* _error_ = NULL;
- GError* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- Application* _tmp13_;
- Application* _tmp14_;
-#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _error_ = _inner_error_;
-#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _inner_error_ = NULL;
-#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp9_ = _error_;
-#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp10_ = _tmp9_->message;
-#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp11_ = g_strdup_printf ("Error loading UI resource: %s", _tmp10_);
-#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp12_ = _tmp11_;
-#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- app_window_error_message (_tmp12_, NULL);
-#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp12_);
-#line 144 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp13_ = application_get_instance ();
-#line 144 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp14_ = _tmp13_;
-#line 144 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- application_panic (_tmp14_);
-#line 144 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _application_unref0 (_tmp14_);
-#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_error_free0 (_error_);
-#line 1843 "TagsBranch.c"
- }
- __finally61:
-#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.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 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_clear_error (&_inner_error_);
-#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return;
-#line 1854 "TagsBranch.c"
- }
-}
-
-
-static gboolean
-tags_header_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media)
-{
- TagsHeader * self;
- gboolean result = FALSE;
- AddTagsDialog* dialog = NULL;
- AddTagsDialog* _tmp0_;
- gchar** names = NULL;
- AddTagsDialog* _tmp1_;
- gint _tmp2_;
- gchar** _tmp3_;
- gint names_length1;
- gint _names_size_;
- gboolean _tmp4_ = FALSE;
- gchar** _tmp5_;
- gint _tmp5__length1;
- CommandManager* _tmp7_;
- CommandManager* _tmp8_;
- gchar** _tmp9_;
- gint _tmp9__length1;
- AddTagsCommand* _tmp10_;
- AddTagsCommand* _tmp11_;
-#line 148 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader);
-#line 148 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (GEE_IS_LIST (media), FALSE);
-#line 149 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = add_tags_dialog_new ();
-#line 149 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- dialog = _tmp0_;
-#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = dialog;
-#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = add_tags_dialog_execute (_tmp1_, &_tmp2_);
-#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- names = _tmp3_;
-#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- names_length1 = _tmp2_;
-#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _names_size_ = names_length1;
-#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = names;
-#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5__length1 = names_length1;
-#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp5_ == NULL) {
-#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = TRUE;
-#line 1908 "TagsBranch.c"
- } else {
- gchar** _tmp6_;
- gint _tmp6__length1;
-#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = names;
-#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6__length1 = names_length1;
-#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = _tmp6__length1 == 0;
-#line 1918 "TagsBranch.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp4_) {
-#line 152 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = FALSE;
-#line 152 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL);
-#line 152 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _text_entry_dialog_mediator_unref0 (dialog);
-#line 152 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 1930 "TagsBranch.c"
- }
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp7_ = app_window_get_command_manager ();
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp8_ = _tmp7_;
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp9_ = names;
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp9__length1 = names_length1;
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp10_ = add_tags_command_new (_tmp9_, _tmp9__length1, G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection));
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp11_ = _tmp10_;
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- command_manager_execute (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp11_);
-#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _command_manager_unref0 (_tmp8_);
-#line 156 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 156 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL);
-#line 156 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _text_entry_dialog_mediator_unref0 (dialog);
-#line 156 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 1958 "TagsBranch.c"
-}
-
-
-static gboolean
-tags_header_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data)
-{
- TagsHeader * self;
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
-#line 159 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader);
-#line 159 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (data != NULL, FALSE);
-#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = gdk_atom_name (gtk_selection_data_get_data_type (data));
-#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = g_strcmp0 (_tmp1_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0;
-#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp1_);
-#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp2_) {
-#line 1985 "TagsBranch.c"
- gchar* old_tag_path = NULL;
- guint8* _tmp3_;
- gchar* _tmp4_;
- TagSourceCollection* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- GeeList* _tmp8_;
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gboolean _tmp12_;
- CommandManager* _tmp13_;
- CommandManager* _tmp14_;
- const gchar* _tmp15_;
- Tag* _tmp16_;
- Tag* _tmp17_;
- ReparentTagCommand* _tmp18_;
- ReparentTagCommand* _tmp19_;
-#line 161 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = gtk_selection_data_get_data (data);
-#line 161 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = g_strdup ((const gchar*) _tmp3_);
-#line 161 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- old_tag_path = _tmp4_;
-#line 162 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = tag_global;
-#line 162 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = old_tag_path;
-#line 162 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _vala_assert (tag_source_collection_exists (_tmp5_, _tmp6_, FALSE), "Tag.global.exists(old_tag_path)");
-#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp7_ = old_tag_path;
-#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp8_ = hierarchical_tag_utilities_enumerate_path_components (_tmp7_);
-#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp9_ = _tmp8_;
-#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp11_ = _tmp10_;
-#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp12_ = _tmp11_ < 2;
-#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp9_);
-#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp12_) {
-#line 166 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 166 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (old_tag_path);
-#line 166 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2038 "TagsBranch.c"
- }
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp13_ = app_window_get_command_manager ();
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp14_ = _tmp13_;
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp15_ = old_tag_path;
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp16_ = tag_for_path (_tmp15_);
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp17_ = _tmp16_;
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp18_ = reparent_tag_command_new (_tmp17_, "/");
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp19_ = _tmp18_;
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- command_manager_execute (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_COMMAND, Command));
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp19_);
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp17_);
-#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _command_manager_unref0 (_tmp14_);
-#line 171 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 171 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (old_tag_path);
-#line 171 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2068 "TagsBranch.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = FALSE;
-#line 174 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2074 "TagsBranch.c"
-}
-
-
-static void
-tags_header_real_prepare_selection_data (SidebarInternalDragSourceEntry* base,
- GtkSelectionData* data)
-{
- TagsHeader * self;
-#line 177 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader);
-#line 177 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail (data != NULL);
-#line 2087 "TagsBranch.c"
-}
-
-
-static GtkMenu*
-tags_header_real_get_sidebar_context_menu (SidebarContextable* base,
- GdkEventButton* event)
-{
- TagsHeader * self;
- GtkMenu* result = NULL;
- GtkMenu* _tmp0_;
- GtkMenu* _tmp1_;
-#line 181 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader);
-#line 182 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = self->priv->context_menu;
-#line 182 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 182 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = _tmp1_;
-#line 182 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2109 "TagsBranch.c"
-}
-
-
-static void
-tags_header_class_init (TagsHeaderClass * klass)
-{
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_header_parent_class = g_type_class_peek_parent (klass);
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_type_class_add_private (klass, sizeof (TagsHeaderPrivate));
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = tags_header_finalize;
-#line 2122 "TagsBranch.c"
-}
-
-
-static void
-tags_header_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface)
-{
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_header_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) tags_header_real_internal_drop_received;
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) tags_header_real_internal_drop_received_arbitrary;
-#line 2135 "TagsBranch.c"
-}
-
-
-static void
-tags_header_sidebar_internal_drag_source_entry_interface_init (SidebarInternalDragSourceEntryIface * iface)
-{
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_header_sidebar_internal_drag_source_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->prepare_selection_data = (void (*) (SidebarInternalDragSourceEntry *, GtkSelectionData*)) tags_header_real_prepare_selection_data;
-#line 2146 "TagsBranch.c"
-}
-
-
-static void
-tags_header_sidebar_contextable_interface_init (SidebarContextableIface * iface)
-{
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_header_sidebar_contextable_parent_iface = g_type_interface_peek_parent (iface);
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->get_sidebar_context_menu = (GtkMenu* (*) (SidebarContextable *, GdkEventButton*)) tags_header_real_get_sidebar_context_menu;
-#line 2157 "TagsBranch.c"
-}
-
-
-static void
-tags_header_instance_init (TagsHeader * self)
-{
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv = TAGS_HEADER_GET_PRIVATE (self);
-#line 128 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv->context_menu = NULL;
-#line 2168 "TagsBranch.c"
-}
-
-
-static void
-tags_header_finalize (GObject * obj)
-{
- TagsHeader * self;
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_HEADER, TagsHeader);
-#line 127 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (self->priv->builder);
-#line 128 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (self->priv->context_menu);
-#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- G_OBJECT_CLASS (tags_header_parent_class)->finalize (obj);
-#line 2184 "TagsBranch.c"
-}
-
-
-GType
-tags_header_get_type (void)
-{
- static volatile gsize tags_header_type_id__volatile = 0;
- if (g_once_init_enter (&tags_header_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagsHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsHeader), 0, (GInstanceInitFunc) tags_header_instance_init, NULL };
- static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) tags_header_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_internal_drag_source_entry_info = { (GInterfaceInitFunc) tags_header_sidebar_internal_drag_source_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_contextable_info = { (GInterfaceInitFunc) tags_header_sidebar_contextable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType tags_header_type_id;
- tags_header_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "TagsHeader", &g_define_type_info, 0);
- g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info);
- g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, &sidebar_internal_drag_source_entry_info);
- g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_CONTEXTABLE, &sidebar_contextable_info);
- g_once_init_leave (&tags_header_type_id__volatile, tags_header_type_id);
- }
- return tags_header_type_id__volatile;
-}
-
-
-TagsSidebarEntry*
-tags_sidebar_entry_construct (GType object_type,
- Tag* tag)
-{
- TagsSidebarEntry * self = NULL;
- Tag* _tmp0_;
-#line 193 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (IS_TAG (tag), NULL);
-#line 193 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = (TagsSidebarEntry*) sidebar_simple_page_entry_construct (object_type);
-#line 194 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = _g_object_ref0 (tag);
-#line 194 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (self->priv->tag);
-#line 194 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv->tag = _tmp0_;
-#line 193 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return self;
-#line 2226 "TagsBranch.c"
-}
-
-
-TagsSidebarEntry*
-tags_sidebar_entry_new (Tag* tag)
-{
-#line 193 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return tags_sidebar_entry_construct (TAGS_TYPE_SIDEBAR_ENTRY, tag);
-#line 2235 "TagsBranch.c"
-}
-
-
-void
-tags_sidebar_entry_init (void)
-{
-}
-
-
-void
-tags_sidebar_entry_terminate (void)
-{
-}
-
-
-Tag*
-tags_sidebar_entry_for_tag (TagsSidebarEntry* self)
-{
- Tag* result = NULL;
- Tag* _tmp0_;
- Tag* _tmp1_;
-#line 203 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (TAGS_IS_SIDEBAR_ENTRY (self), NULL);
-#line 204 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = self->priv->tag;
-#line 204 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 204 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = _tmp1_;
-#line 204 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2267 "TagsBranch.c"
-}
-
-
-static gchar*
-tags_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
-{
- TagsSidebarEntry * self;
- gchar* result = NULL;
- Tag* _tmp0_;
- gchar* _tmp1_;
-#line 207 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 208 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = self->priv->tag;
-#line 208 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = tag_get_user_visible_name (_tmp0_);
-#line 208 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = _tmp1_;
-#line 208 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2288 "TagsBranch.c"
-}
-
-
-static gchar*
-tags_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
-{
- TagsSidebarEntry * self;
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 211 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 212 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = self->priv->single_tag_icon;
-#line 212 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 212 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = _tmp1_;
-#line 212 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2309 "TagsBranch.c"
-}
-
-
-static Page*
-tags_sidebar_entry_real_create_page (SidebarSimplePageEntry* base)
-{
- TagsSidebarEntry * self;
- Page* result = NULL;
- Tag* _tmp0_;
- TagPage* _tmp1_;
-#line 215 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = self->priv->tag;
-#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = tag_page_new (_tmp0_);
-#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_object_ref_sink (_tmp1_);
-#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
-#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2332 "TagsBranch.c"
-}
-
-
-static gboolean
-tags_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base)
-{
- TagsSidebarEntry * self;
- gboolean result = FALSE;
-#line 219 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 220 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 220 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2347 "TagsBranch.c"
-}
-
-
-static gchar*
-string_replace (const gchar* self,
- const gchar* old,
- const gchar* replacement)
-{
- gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (old != NULL, NULL);
-#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (replacement != NULL, NULL);
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if ((*((gchar*) self)) == '\0') {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = TRUE;
-#line 2370 "TagsBranch.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) old)) == '\0';
-#line 2374 "TagsBranch.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_) {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = TRUE;
-#line 2380 "TagsBranch.c"
- } else {
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (old, replacement) == 0;
-#line 2384 "TagsBranch.c"
- }
-#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 2388 "TagsBranch.c"
- gchar* _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_strdup (self);
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp2_;
-#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2396 "TagsBranch.c"
- }
- {
- GRegex* regex = NULL;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GRegex* _tmp5_;
- GRegex* _tmp6_;
- gchar* _tmp7_ = NULL;
- GRegex* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_escape_string (old, -1);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = _tmp5_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp4_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- regex = _tmp6_;
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 2424 "TagsBranch.c"
- goto __catch62_g_regex_error;
- }
-#line 1426 "/usr/share/vala-0.40/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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 2433 "TagsBranch.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = regex;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp9_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 2447 "TagsBranch.c"
- goto __catch62_g_regex_error;
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 2458 "TagsBranch.c"
- }
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp7_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = NULL;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp10_;
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_free0 (_tmp7_);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_regex_unref0 (regex);
-#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 2472 "TagsBranch.c"
- }
- goto __finally62;
- __catch62_g_regex_error:
- {
- GError* e = NULL;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- e = _inner_error_;
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _inner_error_ = NULL;
-#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_assert_not_reached ();
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _g_error_free0 (e);
-#line 2486 "TagsBranch.c"
- }
- __finally62:
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1425 "/usr/share/vala-0.40/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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_clear_error (&_inner_error_);
-#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return NULL;
-#line 2497 "TagsBranch.c"
- }
-}
-
-
-static void
-tags_sidebar_entry_real_rename (SidebarRenameableEntry* base,
- const gchar* new_name)
-{
- TagsSidebarEntry * self;
- gchar* prepped = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- Tag* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gboolean _tmp8_;
- const gchar* _tmp9_;
- CommandManager* _tmp10_;
- CommandManager* _tmp11_;
- Tag* _tmp12_;
- const gchar* _tmp13_;
- RenameTagCommand* _tmp14_;
- RenameTagCommand* _tmp15_;
-#line 223 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 223 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail (new_name != NULL);
-#line 224 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = tag_prep_tag_name (new_name);
-#line 224 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- prepped = _tmp0_;
-#line 225 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = prepped;
-#line 225 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp1_ == NULL) {
-#line 226 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (prepped);
-#line 226 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return;
-#line 2540 "TagsBranch.c"
- }
-#line 228 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = prepped;
-#line 228 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = string_replace (_tmp2_, "/", "");
-#line 228 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (prepped);
-#line 228 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- prepped = _tmp3_;
-#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = prepped;
-#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = self->priv->tag;
-#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = tag_get_user_visible_name (_tmp5_);
-#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp7_ = _tmp6_;
-#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp8_ = g_strcmp0 (_tmp4_, _tmp7_) == 0;
-#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp7_);
-#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp8_) {
-#line 231 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (prepped);
-#line 231 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return;
-#line 2568 "TagsBranch.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp9_ = prepped;
-#line 233 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (g_strcmp0 (_tmp9_, "") == 0) {
-#line 234 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (prepped);
-#line 234 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return;
-#line 2578 "TagsBranch.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp10_ = app_window_get_command_manager ();
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp11_ = _tmp10_;
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp12_ = self->priv->tag;
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp13_ = prepped;
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp14_ = rename_tag_command_new (_tmp12_, _tmp13_);
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp15_ = _tmp14_;
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_COMMAND, Command));
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp15_);
-#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _command_manager_unref0 (_tmp11_);
-#line 223 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (prepped);
-#line 2600 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base)
-{
- TagsSidebarEntry * self;
- Tag* _tmp0_;
-#line 239 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 240 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = self->priv->tag;
-#line 240 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (dialogs_confirm_delete_tag (_tmp0_)) {
-#line 2615 "TagsBranch.c"
- CommandManager* _tmp1_;
- CommandManager* _tmp2_;
- Tag* _tmp3_;
- DeleteTagCommand* _tmp4_;
- DeleteTagCommand* _tmp5_;
-#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = app_window_get_command_manager ();
-#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = _tmp1_;
-#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = self->priv->tag;
-#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = delete_tag_command_new (_tmp3_);
-#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = _tmp4_;
-#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command));
-#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp5_);
-#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _command_manager_unref0 (_tmp2_);
-#line 2637 "TagsBranch.c"
- }
-}
-
-
-static gboolean
-tags_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base,
- GeeList* media)
-{
- TagsSidebarEntry * self;
- gboolean result = FALSE;
- CommandManager* _tmp0_;
- CommandManager* _tmp1_;
- Tag* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- TagUntagPhotosCommand* _tmp5_;
- TagUntagPhotosCommand* _tmp6_;
-#line 244 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 244 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (GEE_IS_LIST (media), FALSE);
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = app_window_get_command_manager ();
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = self->priv->tag;
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection));
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = tag_untag_photos_command_new (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), _tmp4_, TRUE);
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = _tmp5_;
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_COMMAND, Command));
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp6_);
-#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _command_manager_unref0 (_tmp1_);
-#line 248 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 248 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2683 "TagsBranch.c"
-}
-
-
-static gboolean
-tags_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base,
- GtkSelectionData* data)
-{
- TagsSidebarEntry * self;
- gboolean result = FALSE;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gboolean _tmp2_;
-#line 251 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 251 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_val_if_fail (data != NULL, FALSE);
-#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = gdk_atom_name (gtk_selection_data_get_data_type (data));
-#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = _tmp0_;
-#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = g_strcmp0 (_tmp1_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0;
-#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp1_);
-#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp2_) {
-#line 2710 "TagsBranch.c"
- gchar* old_tag_path = NULL;
- guint8* _tmp3_;
- gchar* _tmp4_;
- const gchar* _tmp5_;
- Tag* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- gboolean _tmp9_;
- TagSourceCollection* _tmp26_;
- const gchar* _tmp27_;
- Tag* old_tag = NULL;
- const gchar* _tmp28_;
- Tag* _tmp29_;
- Tag* old_tag_parent = NULL;
- Tag* _tmp30_;
- Tag* _tmp31_;
- gboolean _tmp32_ = FALSE;
- Tag* _tmp33_;
- CommandManager* _tmp40_;
- CommandManager* _tmp41_;
- Tag* _tmp42_;
- Tag* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- ReparentTagCommand* _tmp46_;
- ReparentTagCommand* _tmp47_;
-#line 253 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = gtk_selection_data_get_data (data);
-#line 253 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = g_strdup ((const gchar*) _tmp3_);
-#line 253 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- old_tag_path = _tmp4_;
-#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp5_ = old_tag_path;
-#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp6_ = self->priv->tag;
-#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp7_ = tag_get_path (_tmp6_);
-#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp8_ = _tmp7_;
-#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp9_ = g_strcmp0 (_tmp5_, _tmp8_) == 0;
-#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp8_);
-#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp9_) {
-#line 257 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 257 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (old_tag_path);
-#line 257 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2763 "TagsBranch.c"
- }
- {
- GeeList* _parent_path_list = NULL;
- Tag* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- GeeList* _tmp13_;
- GeeList* _tmp14_;
- gint _parent_path_size = 0;
- GeeList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gint _parent_path_index = 0;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp10_ = self->priv->tag;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp11_ = tag_get_path (_tmp10_);
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp12_ = _tmp11_;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp13_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp12_);
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp14_ = _tmp13_;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp12_);
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _parent_path_list = _tmp14_;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp15_ = _parent_path_list;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp17_ = _tmp16_;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _parent_path_size = _tmp17_;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _parent_path_index = -1;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- while (TRUE) {
-#line 2803 "TagsBranch.c"
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- gchar* parent_path = NULL;
- GeeList* _tmp21_;
- gint _tmp22_;
- gpointer _tmp23_;
- const gchar* _tmp24_;
- const gchar* _tmp25_;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp18_ = _parent_path_index;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _parent_path_index = _tmp18_ + 1;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp19_ = _parent_path_index;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp20_ = _parent_path_size;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (!(_tmp19_ < _tmp20_)) {
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- break;
-#line 2825 "TagsBranch.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp21_ = _parent_path_list;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp22_ = _parent_path_index;
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp23_ = gee_list_get (_tmp21_, _tmp22_);
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- parent_path = (gchar*) _tmp23_;
-#line 261 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp24_ = parent_path;
-#line 261 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp25_ = old_tag_path;
-#line 261 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (g_strcmp0 (_tmp24_, _tmp25_) == 0) {
-#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (parent_path);
-#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_parent_path_list);
-#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (old_tag_path);
-#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2851 "TagsBranch.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (parent_path);
-#line 2855 "TagsBranch.c"
- }
-#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_parent_path_list);
-#line 2859 "TagsBranch.c"
- }
-#line 265 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp26_ = tag_global;
-#line 265 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp27_ = old_tag_path;
-#line 265 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _vala_assert (tag_source_collection_exists (_tmp26_, _tmp27_, FALSE), "Tag.global.exists(old_tag_path)");
-#line 268 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp28_ = old_tag_path;
-#line 268 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp29_ = tag_for_path (_tmp28_);
-#line 268 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- old_tag = _tmp29_;
-#line 269 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp30_ = old_tag;
-#line 269 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp31_ = tag_get_hierarchical_parent (_tmp30_);
-#line 269 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- old_tag_parent = _tmp31_;
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp33_ = old_tag_parent;
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp33_ != NULL) {
-#line 2883 "TagsBranch.c"
- Tag* _tmp34_;
- gchar* _tmp35_;
- gchar* _tmp36_;
- Tag* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp34_ = old_tag_parent;
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp35_ = tag_get_path (_tmp34_);
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp36_ = _tmp35_;
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp37_ = self->priv->tag;
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp38_ = tag_get_path (_tmp37_);
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp39_ = _tmp38_;
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp32_ = g_strcmp0 (_tmp36_, _tmp39_) == 0;
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp39_);
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp36_);
-#line 2908 "TagsBranch.c"
- } else {
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp32_ = FALSE;
-#line 2912 "TagsBranch.c"
- }
-#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- if (_tmp32_) {
-#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (old_tag_parent);
-#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (old_tag);
-#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (old_tag_path);
-#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2926 "TagsBranch.c"
- }
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp40_ = app_window_get_command_manager ();
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp41_ = _tmp40_;
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp42_ = old_tag;
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp43_ = self->priv->tag;
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp44_ = tag_get_path (_tmp43_);
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp45_ = _tmp44_;
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp46_ = reparent_tag_command_new (_tmp42_, _tmp45_);
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp47_ = _tmp46_;
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- command_manager_execute (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_COMMAND, Command));
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (_tmp47_);
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp45_);
-#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _command_manager_unref0 (_tmp41_);
-#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = TRUE;
-#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (old_tag_parent);
-#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (old_tag);
-#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (old_tag_path);
-#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2962 "TagsBranch.c"
- }
-#line 279 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = FALSE;
-#line 279 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2968 "TagsBranch.c"
-}
-
-
-static gboolean
-tags_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base)
-{
- TagsSidebarEntry * self;
- gboolean result = FALSE;
-#line 282 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 283 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- result = FALSE;
-#line 283 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- return result;
-#line 2983 "TagsBranch.c"
-}
-
-
-static guint8*
-string_get_data (const gchar* self,
- int* result_length1)
-{
- guint8* result;
- guint8* res = NULL;
- gint res_length1;
- gint _res_size_;
- gint _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- guint8* _tmp3_;
- gint _tmp3__length1;
- guint8* _tmp4_;
- gint _tmp4__length1;
-#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res = (guint8*) self;
-#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res_length1 = -1;
-#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _res_size_ = res_length1;
-#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strlen (self);
-#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _tmp0_;
-#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- res_length1 = (gint) _tmp1_;
-#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = res_length1;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = res;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3__length1 = res_length1;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4__length1 = _tmp3__length1;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (result_length1) {
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *result_length1 = _tmp4__length1;
-#line 3030 "TagsBranch.c"
- }
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp4_;
-#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 3036 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_real_prepare_selection_data (SidebarInternalDragSourceEntry* base,
- GtkSelectionData* data)
-{
- TagsSidebarEntry * self;
- Tag* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- guint8* _tmp3_;
- gint _tmp3__length1;
- guint8* _tmp4_;
- gint _tmp4__length1;
-#line 286 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 286 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_return_if_fail (data != NULL);
-#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = self->priv->tag;
-#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp1_ = tag_get_path (_tmp0_);
-#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp2_ = _tmp1_;
-#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp3_ = string_get_data (_tmp2_, &_tmp3__length1);
-#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4_ = _tmp3_;
-#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp4__length1 = _tmp3__length1;
-#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- gtk_selection_data_set (data, gdk_atom_intern_static_string (LIBRARY_WINDOW_TAG_PATH_MIME_TYPE), 0, _tmp4_, _tmp4__length1);
-#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (_tmp2_);
-#line 3072 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_class_init (TagsSidebarEntryClass * klass)
-{
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- g_type_class_add_private (klass, sizeof (TagsSidebarEntryPrivate));
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) tags_sidebar_entry_real_get_sidebar_name;
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) tags_sidebar_entry_real_get_sidebar_icon;
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) tags_sidebar_entry_real_create_page;
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- G_OBJECT_CLASS (klass)->finalize = tags_sidebar_entry_finalize;
-#line 3091 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface)
-{
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_sidebar_entry_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->is_user_renameable = (gboolean (*) (SidebarRenameableEntry *)) tags_sidebar_entry_real_is_user_renameable;
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->rename = (void (*) (SidebarRenameableEntry *, const gchar*)) tags_sidebar_entry_real_rename;
-#line 3104 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_sidebar_destroyable_entry_interface_init (SidebarDestroyableEntryIface * iface)
-{
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_sidebar_entry_sidebar_destroyable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->destroy_source = (void (*) (SidebarDestroyableEntry *)) tags_sidebar_entry_real_destroy_source;
-#line 3115 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface)
-{
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) tags_sidebar_entry_real_internal_drop_received;
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) tags_sidebar_entry_real_internal_drop_received_arbitrary;
-#line 3128 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface)
-{
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_sidebar_entry_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->expand_on_select = (gboolean (*) (SidebarExpandableEntry *)) tags_sidebar_entry_real_expand_on_select;
-#line 3139 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_sidebar_internal_drag_source_entry_interface_init (SidebarInternalDragSourceEntryIface * iface)
-{
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- tags_sidebar_entry_sidebar_internal_drag_source_entry_parent_iface = g_type_interface_peek_parent (iface);
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- iface->prepare_selection_data = (void (*) (SidebarInternalDragSourceEntry *, GtkSelectionData*)) tags_sidebar_entry_real_prepare_selection_data;
-#line 3150 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_instance_init (TagsSidebarEntry * self)
-{
- gchar* _tmp0_;
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv = TAGS_SIDEBAR_ENTRY_GET_PRIVATE (self);
-#line 189 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _tmp0_ = g_strdup (RESOURCES_ICON_ONE_TAG);
-#line 189 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self->priv->single_tag_icon = _tmp0_;
-#line 3164 "TagsBranch.c"
-}
-
-
-static void
-tags_sidebar_entry_finalize (GObject * obj)
-{
- TagsSidebarEntry * self;
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
-#line 189 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_free0 (self->priv->single_tag_icon);
-#line 191 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- _g_object_unref0 (self->priv->tag);
-#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala"
- G_OBJECT_CLASS (tags_sidebar_entry_parent_class)->finalize (obj);
-#line 3180 "TagsBranch.c"
-}
-
-
-GType
-tags_sidebar_entry_get_type (void)
-{
- static volatile gsize tags_sidebar_entry_type_id__volatile = 0;
- if (g_once_init_enter (&tags_sidebar_entry_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (TagsSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsSidebarEntry), 0, (GInstanceInitFunc) tags_sidebar_entry_instance_init, NULL };
- static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_destroyable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_destroyable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- static const GInterfaceInfo sidebar_internal_drag_source_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_internal_drag_source_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
- GType tags_sidebar_entry_type_id;
- tags_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "TagsSidebarEntry", &g_define_type_info, 0);
- g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info);
- g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_DESTROYABLE_ENTRY, &sidebar_destroyable_entry_info);
- g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info);
- g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info);
- g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, &sidebar_internal_drag_source_entry_info);
- g_once_init_leave (&tags_sidebar_entry_type_id__volatile, tags_sidebar_entry_type_id);
- }
- return tags_sidebar_entry_type_id__volatile;
-}
-
-
-static void
-_vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void
-_vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
-{
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-
diff --git a/src/threads/BackgroundJob.c b/src/threads/BackgroundJob.c
deleted file mode 100644
index 1de262e..0000000
--- a/src/threads/BackgroundJob.c
+++ /dev/null
@@ -1,2086 +0,0 @@
-/* BackgroundJob.c generated by valac 0.40.4, the Vala compiler
- * generated from BackgroundJob.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* This callback is executed when an associated BackgroundJob completes. It is called from within*/
-/* the Gtk event loop, *not* the background thread's context.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define TYPE_NOTIFICATION_OBJECT (notification_object_get_type ())
-#define NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NOTIFICATION_OBJECT, NotificationObject))
-#define NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NOTIFICATION_OBJECT, NotificationObjectClass))
-#define IS_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NOTIFICATION_OBJECT))
-#define IS_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NOTIFICATION_OBJECT))
-#define NOTIFICATION_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NOTIFICATION_OBJECT, NotificationObjectClass))
-
-typedef struct _NotificationObject NotificationObject;
-typedef struct _NotificationObjectClass NotificationObjectClass;
-typedef struct _NotificationObjectPrivate NotificationObjectPrivate;
-typedef struct _ParamSpecNotificationObject ParamSpecNotificationObject;
-
-#define TYPE_INTERLOCKED_NOTIFICATION_OBJECT (interlocked_notification_object_get_type ())
-#define INTERLOCKED_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObject))
-#define INTERLOCKED_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectClass))
-#define IS_INTERLOCKED_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT))
-#define IS_INTERLOCKED_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INTERLOCKED_NOTIFICATION_OBJECT))
-#define INTERLOCKED_NOTIFICATION_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectClass))
-
-typedef struct _InterlockedNotificationObject InterlockedNotificationObject;
-typedef struct _InterlockedNotificationObjectClass InterlockedNotificationObjectClass;
-typedef struct _InterlockedNotificationObjectPrivate InterlockedNotificationObjectPrivate;
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-
-#define TYPE_SEMAPHORE (semaphore_get_type ())
-#define SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEMAPHORE, Semaphore))
-#define SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEMAPHORE, SemaphoreClass))
-#define IS_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEMAPHORE))
-#define IS_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEMAPHORE))
-#define SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEMAPHORE, SemaphoreClass))
-
-typedef struct _Semaphore Semaphore;
-typedef struct _SemaphoreClass SemaphoreClass;
-#define _abstract_semaphore_unref0(var) ((var == NULL) ? NULL : (var = (abstract_semaphore_unref (var), NULL)))
-typedef struct _BackgroundJobPrivate BackgroundJobPrivate;
-
-#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())
-
-#define BACKGROUND_JOB_TYPE_NOTIFICATION_JOB (background_job_notification_job_get_type ())
-#define BACKGROUND_JOB_NOTIFICATION_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJob))
-#define BACKGROUND_JOB_NOTIFICATION_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJobClass))
-#define BACKGROUND_JOB_IS_NOTIFICATION_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB))
-#define BACKGROUND_JOB_IS_NOTIFICATION_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB))
-#define BACKGROUND_JOB_NOTIFICATION_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJobClass))
-
-typedef struct _BackgroundJobNotificationJob BackgroundJobNotificationJob;
-typedef struct _BackgroundJobNotificationJobClass BackgroundJobNotificationJobClass;
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-#define _background_job_notification_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_notification_job_unref (var), NULL)))
-#define _notification_object_unref0(var) ((var == NULL) ? NULL : (var = (notification_object_unref (var), NULL)))
-typedef struct _BackgroundJobNotificationJobPrivate BackgroundJobNotificationJobPrivate;
-typedef struct _BackgroundJobParamSpecNotificationJob BackgroundJobParamSpecNotificationJob;
-typedef struct _ParamSpecBackgroundJob ParamSpecBackgroundJob;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data);
-typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data);
-struct _NotificationObject {
- GTypeInstance parent_instance;
- volatile int ref_count;
- NotificationObjectPrivate * priv;
-};
-
-struct _NotificationObjectClass {
- GTypeClass parent_class;
- void (*finalize) (NotificationObject *self);
-};
-
-struct _ParamSpecNotificationObject {
- GParamSpec parent_instance;
-};
-
-struct _InterlockedNotificationObject {
- NotificationObject parent_instance;
- InterlockedNotificationObjectPrivate * priv;
-};
-
-struct _InterlockedNotificationObjectClass {
- NotificationObjectClass parent_class;
-};
-
-struct _InterlockedNotificationObjectPrivate {
- Semaphore* semaphore;
-};
-
-typedef void (*NotificationCallback) (BackgroundJob* job, NotificationObject* user, void* user_data);
-typedef enum {
- BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
- BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
- BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
- BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
- BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
-} BackgroundJobJobPriority;
-
-struct _BackgroundJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobPrivate * priv;
-};
-
-struct _BackgroundJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJob *self);
- void (*execute) (BackgroundJob* self);
- BackgroundJobJobPriority (*get_priority) (BackgroundJob* self);
-};
-
-struct _BackgroundJobPrivate {
- GObject* owner;
- CompletionCallback callback;
- gpointer callback_target;
- GCancellable* cancellable;
- CancellationCallback cancellation;
- gpointer cancellation_target;
- BackgroundJob* self;
- AbstractSemaphore* semaphore;
- gint completion_priority;
- gint notification_priority;
-};
-
-struct _BackgroundJobNotificationJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BackgroundJobNotificationJobPrivate * priv;
- NotificationCallback callback;
- gpointer callback_target;
- BackgroundJob* background_job;
- NotificationObject* user;
-};
-
-struct _BackgroundJobNotificationJobClass {
- GTypeClass parent_class;
- void (*finalize) (BackgroundJobNotificationJob *self);
-};
-
-struct _BackgroundJobParamSpecNotificationJob {
- GParamSpec parent_instance;
-};
-
-struct _ParamSpecBackgroundJob {
- GParamSpec parent_instance;
-};
-
-
-static gpointer notification_object_parent_class = NULL;
-static gpointer interlocked_notification_object_parent_class = NULL;
-static gpointer background_job_parent_class = NULL;
-static GeeArrayList* background_job_notify_queue;
-static GRecMutex __lock_background_job_notify_queue = {0};
-static GeeArrayList* background_job_notify_queue = NULL;
-static gpointer background_job_notification_job_parent_class = NULL;
-
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-gpointer notification_object_ref (gpointer instance);
-void notification_object_unref (gpointer instance);
-GParamSpec* param_spec_notification_object (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_notification_object (GValue* value,
- gpointer v_object);
-void value_take_notification_object (GValue* value,
- gpointer v_object);
-gpointer value_get_notification_object (const GValue* value);
-GType notification_object_get_type (void) G_GNUC_CONST;
-NotificationObject* notification_object_construct (GType object_type);
-static void notification_object_finalize (NotificationObject * obj);
-GType interlocked_notification_object_get_type (void) G_GNUC_CONST;
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-GType semaphore_get_type (void) G_GNUC_CONST;
-#define INTERLOCKED_NOTIFICATION_OBJECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectPrivate))
-Semaphore* semaphore_new (void);
-Semaphore* semaphore_construct (GType object_type);
-void interlocked_notification_object_internal_wait_for_completion (InterlockedNotificationObject* self);
-void abstract_semaphore_wait (AbstractSemaphore* self);
-void interlocked_notification_object_internal_completed (InterlockedNotificationObject* self);
-void abstract_semaphore_notify (AbstractSemaphore* self);
-InterlockedNotificationObject* interlocked_notification_object_construct (GType object_type);
-static void interlocked_notification_object_finalize (NotificationObject * obj);
-GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-#define BACKGROUND_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BACKGROUND_JOB, BackgroundJobPrivate))
-gint background_job_job_priority_compare (BackgroundJobJobPriority self,
- BackgroundJobJobPriority other);
-gint background_job_job_priority_compare_func (BackgroundJobJobPriority a,
- BackgroundJobJobPriority b);
-static gpointer background_job_notification_job_ref (gpointer instance);
-static void background_job_notification_job_unref (gpointer instance);
-static GParamSpec* background_job_param_spec_notification_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags) G_GNUC_UNUSED;
-static void background_job_value_set_notification_job (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static void background_job_value_take_notification_job (GValue* value,
- gpointer v_object) G_GNUC_UNUSED;
-static gpointer background_job_value_get_notification_job (const GValue* value) G_GNUC_UNUSED;
-static GType background_job_notification_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-BackgroundJob* background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore);
-void background_job_execute (BackgroundJob* self);
-static void background_job_real_execute (BackgroundJob* self);
-BackgroundJobJobPriority background_job_get_priority (BackgroundJob* self);
-static BackgroundJobJobPriority background_job_real_get_priority (BackgroundJob* self);
-gint background_job_priority_compare_func (BackgroundJob* a,
- BackgroundJob* b);
-gint64 background_job_priority_comparator (void* a,
- void* b);
-void background_job_set_completion_priority (BackgroundJob* self,
- gint priority);
-void background_job_set_notification_priority (BackgroundJob* self,
- gint priority);
-void background_job_wait_for_completion (BackgroundJob* self);
-GCancellable* background_job_get_cancellable (BackgroundJob* self);
-gboolean background_job_is_cancelled (BackgroundJob* self);
-void background_job_cancel (BackgroundJob* self);
-void background_job_internal_notify_completion (BackgroundJob* self);
-static gboolean background_job_on_notify_completion (BackgroundJob* self);
-static gboolean _background_job_on_notify_completion_gsource_func (gpointer self);
-void background_job_notify (BackgroundJob* self,
- NotificationCallback callback,
- void* callback_target,
- NotificationObject* user);
-static BackgroundJobNotificationJob* background_job_notification_job_new (NotificationCallback callback,
- void* callback_target,
- BackgroundJob* background_job,
- NotificationObject* user);
-static BackgroundJobNotificationJob* background_job_notification_job_construct (GType object_type,
- NotificationCallback callback,
- void* callback_target,
- BackgroundJob* background_job,
- NotificationObject* user);
-static gboolean background_job_on_notification_ready (BackgroundJob* self);
-static gboolean _background_job_on_notification_ready_gsource_func (gpointer self);
-static void background_job_notification_job_finalize (BackgroundJobNotificationJob * obj);
-static void background_job_finalize (BackgroundJob * obj);
-
-
-NotificationObject*
-notification_object_construct (GType object_type)
-{
- NotificationObject* self = NULL;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self = (NotificationObject*) g_type_create_instance (object_type);
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return self;
-#line 321 "BackgroundJob.c"
-}
-
-
-static void
-value_notification_object_init (GValue* value)
-{
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 330 "BackgroundJob.c"
-}
-
-
-static void
-value_notification_object_free_value (GValue* value)
-{
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (value->data[0].v_pointer) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- notification_object_unref (value->data[0].v_pointer);
-#line 341 "BackgroundJob.c"
- }
-}
-
-
-static void
-value_notification_object_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (src_value->data[0].v_pointer) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- dest_value->data[0].v_pointer = notification_object_ref (src_value->data[0].v_pointer);
-#line 354 "BackgroundJob.c"
- } else {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 358 "BackgroundJob.c"
- }
-}
-
-
-static gpointer
-value_notification_object_peek_pointer (const GValue* value)
-{
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return value->data[0].v_pointer;
-#line 368 "BackgroundJob.c"
-}
-
-
-static gchar*
-value_notification_object_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (collect_values[0].v_pointer) {
-#line 380 "BackgroundJob.c"
- NotificationObject * object;
- object = collect_values[0].v_pointer;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 387 "BackgroundJob.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.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 391 "BackgroundJob.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = notification_object_ref (object);
-#line 395 "BackgroundJob.c"
- } else {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 399 "BackgroundJob.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return NULL;
-#line 403 "BackgroundJob.c"
-}
-
-
-static gchar*
-value_notification_object_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- NotificationObject ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (!object_p) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 419 "BackgroundJob.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (!value->data[0].v_pointer) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = NULL;
-#line 425 "BackgroundJob.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = value->data[0].v_pointer;
-#line 429 "BackgroundJob.c"
- } else {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = notification_object_ref (value->data[0].v_pointer);
-#line 433 "BackgroundJob.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return NULL;
-#line 437 "BackgroundJob.c"
-}
-
-
-GParamSpec*
-param_spec_notification_object (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecNotificationObject* spec;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_NOTIFICATION_OBJECT), NULL);
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return G_PARAM_SPEC (spec);
-#line 457 "BackgroundJob.c"
-}
-
-
-gpointer
-value_get_notification_object (const GValue* value)
-{
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT), NULL);
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return value->data[0].v_pointer;
-#line 468 "BackgroundJob.c"
-}
-
-
-void
-value_set_notification_object (GValue* value,
- gpointer v_object)
-{
- NotificationObject * old;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT));
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- old = value->data[0].v_pointer;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (v_object) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_NOTIFICATION_OBJECT));
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = v_object;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- notification_object_ref (value->data[0].v_pointer);
-#line 491 "BackgroundJob.c"
- } else {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 495 "BackgroundJob.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (old) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- notification_object_unref (old);
-#line 501 "BackgroundJob.c"
- }
-}
-
-
-void
-value_take_notification_object (GValue* value,
- gpointer v_object)
-{
- NotificationObject * old;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT));
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- old = value->data[0].v_pointer;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (v_object) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_NOTIFICATION_OBJECT));
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = v_object;
-#line 523 "BackgroundJob.c"
- } else {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 527 "BackgroundJob.c"
- }
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (old) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- notification_object_unref (old);
-#line 533 "BackgroundJob.c"
- }
-}
-
-
-static void
-notification_object_class_init (NotificationObjectClass * klass)
-{
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- notification_object_parent_class = g_type_class_peek_parent (klass);
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- ((NotificationObjectClass *) klass)->finalize = notification_object_finalize;
-#line 545 "BackgroundJob.c"
-}
-
-
-static void
-notification_object_instance_init (NotificationObject * self)
-{
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->ref_count = 1;
-#line 554 "BackgroundJob.c"
-}
-
-
-static void
-notification_object_finalize (NotificationObject * obj)
-{
- NotificationObject * self;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFICATION_OBJECT, NotificationObject);
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_signal_handlers_destroy (self);
-#line 566 "BackgroundJob.c"
-}
-
-
-GType
-notification_object_get_type (void)
-{
- static volatile gsize notification_object_type_id__volatile = 0;
- if (g_once_init_enter (&notification_object_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_notification_object_init, value_notification_object_free_value, value_notification_object_copy_value, value_notification_object_peek_pointer, "p", value_notification_object_collect_value, "p", value_notification_object_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (NotificationObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) notification_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NotificationObject), 0, (GInstanceInitFunc) notification_object_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType notification_object_type_id;
- notification_object_type_id = g_type_register_fundamental (g_type_fundamental_next (), "NotificationObject", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&notification_object_type_id__volatile, notification_object_type_id);
- }
- return notification_object_type_id__volatile;
-}
-
-
-gpointer
-notification_object_ref (gpointer instance)
-{
- NotificationObject * self;
- self = instance;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return instance;
-#line 595 "BackgroundJob.c"
-}
-
-
-void
-notification_object_unref (gpointer instance)
-{
- NotificationObject * self;
- self = instance;
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- NOTIFICATION_OBJECT_GET_CLASS (self)->finalize (self);
-#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 610 "BackgroundJob.c"
- }
-}
-
-
-void
-interlocked_notification_object_internal_wait_for_completion (InterlockedNotificationObject* self)
-{
- Semaphore* _tmp0_;
-#line 41 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_INTERLOCKED_NOTIFICATION_OBJECT (self));
-#line 42 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = self->priv->semaphore;
-#line 42 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- abstract_semaphore_wait (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 625 "BackgroundJob.c"
-}
-
-
-void
-interlocked_notification_object_internal_completed (InterlockedNotificationObject* self)
-{
- Semaphore* _tmp0_;
-#line 46 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_INTERLOCKED_NOTIFICATION_OBJECT (self));
-#line 47 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = self->priv->semaphore;
-#line 47 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- abstract_semaphore_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 639 "BackgroundJob.c"
-}
-
-
-InterlockedNotificationObject*
-interlocked_notification_object_construct (GType object_type)
-{
- InterlockedNotificationObject* self = NULL;
-#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self = (InterlockedNotificationObject*) notification_object_construct (object_type);
-#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return self;
-#line 651 "BackgroundJob.c"
-}
-
-
-static void
-interlocked_notification_object_class_init (InterlockedNotificationObjectClass * klass)
-{
-#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked_notification_object_parent_class = g_type_class_peek_parent (klass);
-#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- ((NotificationObjectClass *) klass)->finalize = interlocked_notification_object_finalize;
-#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_type_class_add_private (klass, sizeof (InterlockedNotificationObjectPrivate));
-#line 664 "BackgroundJob.c"
-}
-
-
-static void
-interlocked_notification_object_instance_init (InterlockedNotificationObject * self)
-{
- Semaphore* _tmp0_;
-#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv = INTERLOCKED_NOTIFICATION_OBJECT_GET_PRIVATE (self);
-#line 38 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = semaphore_new ();
-#line 38 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->semaphore = _tmp0_;
-#line 678 "BackgroundJob.c"
-}
-
-
-static void
-interlocked_notification_object_finalize (NotificationObject * obj)
-{
- InterlockedNotificationObject * self;
-#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObject);
-#line 38 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _abstract_semaphore_unref0 (self->priv->semaphore);
-#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- NOTIFICATION_OBJECT_CLASS (interlocked_notification_object_parent_class)->finalize (obj);
-#line 692 "BackgroundJob.c"
-}
-
-
-GType
-interlocked_notification_object_get_type (void)
-{
- static volatile gsize interlocked_notification_object_type_id__volatile = 0;
- if (g_once_init_enter (&interlocked_notification_object_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (InterlockedNotificationObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) interlocked_notification_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (InterlockedNotificationObject), 0, (GInstanceInitFunc) interlocked_notification_object_instance_init, NULL };
- GType interlocked_notification_object_type_id;
- interlocked_notification_object_type_id = g_type_register_static (TYPE_NOTIFICATION_OBJECT, "InterlockedNotificationObject", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&interlocked_notification_object_type_id__volatile, interlocked_notification_object_type_id);
- }
- return interlocked_notification_object_type_id__volatile;
-}
-
-
-gint
-background_job_job_priority_compare (BackgroundJobJobPriority self,
- BackgroundJobJobPriority other)
-{
- gint result = 0;
-#line 75 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = ((gint) other) - ((gint) self);
-#line 75 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 719 "BackgroundJob.c"
-}
-
-
-gint
-background_job_job_priority_compare_func (BackgroundJobJobPriority a,
- BackgroundJobJobPriority b)
-{
- gint result = 0;
-#line 79 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = ((gint) b) - ((gint) a);
-#line 79 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 732 "BackgroundJob.c"
-}
-
-
-GType
-background_job_job_priority_get_type (void)
-{
- static volatile gsize background_job_job_priority_type_id__volatile = 0;
- if (g_once_init_enter (&background_job_job_priority_type_id__volatile)) {
- static const GEnumValue values[] = {{BACKGROUND_JOB_JOB_PRIORITY_HIGHEST, "BACKGROUND_JOB_JOB_PRIORITY_HIGHEST", "highest"}, {BACKGROUND_JOB_JOB_PRIORITY_HIGH, "BACKGROUND_JOB_JOB_PRIORITY_HIGH", "high"}, {BACKGROUND_JOB_JOB_PRIORITY_NORMAL, "BACKGROUND_JOB_JOB_PRIORITY_NORMAL", "normal"}, {BACKGROUND_JOB_JOB_PRIORITY_LOW, "BACKGROUND_JOB_JOB_PRIORITY_LOW", "low"}, {BACKGROUND_JOB_JOB_PRIORITY_LOWEST, "BACKGROUND_JOB_JOB_PRIORITY_LOWEST", "lowest"}, {0, NULL, NULL}};
- GType background_job_job_priority_type_id;
- background_job_job_priority_type_id = g_enum_register_static ("BackgroundJobJobPriority", values);
- g_once_init_leave (&background_job_job_priority_type_id__volatile, background_job_job_priority_type_id);
- }
- return background_job_job_priority_type_id__volatile;
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return self ? g_object_ref (self) : NULL;
-#line 755 "BackgroundJob.c"
-}
-
-
-static gpointer
-_abstract_semaphore_ref0 (gpointer self)
-{
-#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return self ? abstract_semaphore_ref (self) : NULL;
-#line 764 "BackgroundJob.c"
-}
-
-
-BackgroundJob*
-background_job_construct (GType object_type,
- GObject* owner,
- CompletionCallback callback,
- void* callback_target,
- GCancellable* cancellable,
- CancellationCallback cancellation,
- void* cancellation_target,
- AbstractSemaphore* completion_semaphore)
-{
- BackgroundJob* self = NULL;
- GObject* _tmp0_;
- GCancellable* _tmp1_;
- AbstractSemaphore* _tmp2_;
-#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail ((owner == NULL) || G_IS_OBJECT (owner), NULL);
-#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL);
-#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail ((completion_semaphore == NULL) || IS_ABSTRACT_SEMAPHORE (completion_semaphore), NULL);
-#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self = (BackgroundJob*) g_type_create_instance (object_type);
-#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = _g_object_ref0 (owner);
-#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _g_object_unref0 (self->priv->owner);
-#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->owner = _tmp0_;
-#line 117 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->callback = callback;
-#line 117 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->callback_target = callback_target;
-#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = _g_object_ref0 (cancellable);
-#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->cancellable = _tmp1_;
-#line 119 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->cancellation = cancellation;
-#line 119 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->cancellation_target = cancellation_target;
-#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = _abstract_semaphore_ref0 (completion_semaphore);
-#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _abstract_semaphore_unref0 (self->priv->semaphore);
-#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->semaphore = _tmp2_;
-#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return self;
-#line 818 "BackgroundJob.c"
-}
-
-
-static void
-background_job_real_execute (BackgroundJob* self)
-{
-#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_critical ("Type `%s' does not implement abstract method `background_job_execute'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return;
-#line 829 "BackgroundJob.c"
-}
-
-
-void
-background_job_execute (BackgroundJob* self)
-{
-#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (self));
-#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- BACKGROUND_JOB_GET_CLASS (self)->execute (self);
-#line 840 "BackgroundJob.c"
-}
-
-
-static BackgroundJobJobPriority
-background_job_real_get_priority (BackgroundJob* self)
-{
- BackgroundJobJobPriority result = 0;
-#line 126 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = BACKGROUND_JOB_JOB_PRIORITY_NORMAL;
-#line 126 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 852 "BackgroundJob.c"
-}
-
-
-BackgroundJobJobPriority
-background_job_get_priority (BackgroundJob* self)
-{
-#line 125 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (IS_BACKGROUND_JOB (self), 0);
-#line 125 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return BACKGROUND_JOB_GET_CLASS (self)->get_priority (self);
-#line 863 "BackgroundJob.c"
-}
-
-
-gint
-background_job_priority_compare_func (BackgroundJob* a,
- BackgroundJob* b)
-{
- gint result = 0;
-#line 130 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (IS_BACKGROUND_JOB (a), 0);
-#line 130 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (IS_BACKGROUND_JOB (b), 0);
-#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = background_job_job_priority_compare (background_job_get_priority (a), background_job_get_priority (b));
-#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 880 "BackgroundJob.c"
-}
-
-
-gint64
-background_job_priority_comparator (void* a,
- void* b)
-{
- gint64 result = 0LL;
-#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = (gint64) background_job_priority_compare_func (G_TYPE_CHECK_INSTANCE_CAST (a, TYPE_BACKGROUND_JOB, BackgroundJob), G_TYPE_CHECK_INSTANCE_CAST (b, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 893 "BackgroundJob.c"
-}
-
-
-void
-background_job_set_completion_priority (BackgroundJob* self,
- gint priority)
-{
-#line 140 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (self));
-#line 141 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->completion_priority = priority;
-#line 905 "BackgroundJob.c"
-}
-
-
-void
-background_job_set_notification_priority (BackgroundJob* self,
- gint priority)
-{
-#line 145 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (self));
-#line 146 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->notification_priority = priority;
-#line 917 "BackgroundJob.c"
-}
-
-
-void
-background_job_wait_for_completion (BackgroundJob* self)
-{
- AbstractSemaphore* _tmp0_;
-#line 152 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (self));
-#line 153 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = self->priv->semaphore;
-#line 153 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp0_ != NULL) {
-#line 931 "BackgroundJob.c"
- AbstractSemaphore* _tmp1_;
-#line 154 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = self->priv->semaphore;
-#line 154 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- abstract_semaphore_wait (_tmp1_);
-#line 937 "BackgroundJob.c"
- }
-}
-
-
-GCancellable*
-background_job_get_cancellable (BackgroundJob* self)
-{
- GCancellable* result = NULL;
- GCancellable* _tmp0_;
- GCancellable* _tmp1_;
-#line 157 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (IS_BACKGROUND_JOB (self), NULL);
-#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = self->priv->cancellable;
-#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = _tmp1_;
-#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 958 "BackgroundJob.c"
-}
-
-
-gboolean
-background_job_is_cancelled (BackgroundJob* self)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- GCancellable* _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE);
-#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = self->priv->cancellable;
-#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp1_ != NULL) {
-#line 974 "BackgroundJob.c"
- GCancellable* _tmp2_;
-#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = self->priv->cancellable;
-#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = g_cancellable_is_cancelled (_tmp2_);
-#line 980 "BackgroundJob.c"
- } else {
-#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = FALSE;
-#line 984 "BackgroundJob.c"
- }
-#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = _tmp0_;
-#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 990 "BackgroundJob.c"
-}
-
-
-void
-background_job_cancel (BackgroundJob* self)
-{
- GCancellable* _tmp0_;
-#line 165 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (self));
-#line 166 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = self->priv->cancellable;
-#line 166 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp0_ != NULL) {
-#line 1004 "BackgroundJob.c"
- GCancellable* _tmp1_;
-#line 167 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = self->priv->cancellable;
-#line 167 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_cancellable_cancel (_tmp1_);
-#line 1010 "BackgroundJob.c"
- }
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return self ? background_job_ref (self) : NULL;
-#line 1020 "BackgroundJob.c"
-}
-
-
-static gboolean
-_background_job_on_notify_completion_gsource_func (gpointer self)
-{
- gboolean result;
- result = background_job_on_notify_completion ((BackgroundJob*) self);
-#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 1031 "BackgroundJob.c"
-}
-
-
-void
-background_job_internal_notify_completion (BackgroundJob* self)
-{
- AbstractSemaphore* _tmp0_;
- gboolean _tmp2_ = FALSE;
- CompletionCallback _tmp3_;
- void* _tmp3__target;
- gboolean _tmp5_ = FALSE;
- BackgroundJob* _tmp7_;
- gint _tmp8_;
-#line 171 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (self));
-#line 172 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = self->priv->semaphore;
-#line 172 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp0_ != NULL) {
-#line 1051 "BackgroundJob.c"
- AbstractSemaphore* _tmp1_;
-#line 173 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = self->priv->semaphore;
-#line 173 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- abstract_semaphore_notify (_tmp1_);
-#line 1057 "BackgroundJob.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = self->priv->callback;
-#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3__target = self->priv->callback_target;
-#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp3_ == NULL) {
-#line 1065 "BackgroundJob.c"
- CancellationCallback _tmp4_;
- void* _tmp4__target;
-#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ = self->priv->cancellation;
-#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4__target = self->priv->cancellation_target;
-#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = _tmp4_ == NULL;
-#line 1074 "BackgroundJob.c"
- } else {
-#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = FALSE;
-#line 1078 "BackgroundJob.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp2_) {
-#line 176 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return;
-#line 1084 "BackgroundJob.c"
- }
-#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (background_job_is_cancelled (self)) {
-#line 1088 "BackgroundJob.c"
- CancellationCallback _tmp6_;
- void* _tmp6__target;
-#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp6_ = self->priv->cancellation;
-#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp6__target = self->priv->cancellation_target;
-#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp5_ = _tmp6_ == NULL;
-#line 1097 "BackgroundJob.c"
- } else {
-#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp5_ = FALSE;
-#line 1101 "BackgroundJob.c"
- }
-#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp5_) {
-#line 179 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return;
-#line 1107 "BackgroundJob.c"
- }
-#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp7_ = _background_job_ref0 (self);
-#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_unref0 (self->priv->self);
-#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->self = _tmp7_;
-#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp8_ = self->priv->completion_priority;
-#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_idle_add_full (_tmp8_, _background_job_on_notify_completion_gsource_func, background_job_ref (self), background_job_unref);
-#line 1119 "BackgroundJob.c"
-}
-
-
-static gboolean
-background_job_on_notify_completion (BackgroundJob* self)
-{
- gboolean result = FALSE;
-#line 188 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE);
-#line 193 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (background_job_is_cancelled (self)) {
-#line 1131 "BackgroundJob.c"
- CancellationCallback _tmp0_;
- void* _tmp0__target;
-#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = self->priv->cancellation;
-#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0__target = self->priv->cancellation_target;
-#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp0_ != NULL) {
-#line 1140 "BackgroundJob.c"
- CancellationCallback _tmp1_;
- void* _tmp1__target;
-#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = self->priv->cancellation;
-#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1__target = self->priv->cancellation_target;
-#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ (self, _tmp1__target);
-#line 1149 "BackgroundJob.c"
- }
- } else {
- CompletionCallback _tmp2_;
- void* _tmp2__target;
-#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = self->priv->callback;
-#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2__target = self->priv->callback_target;
-#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp2_ != NULL) {
-#line 1160 "BackgroundJob.c"
- CompletionCallback _tmp3_;
- void* _tmp3__target;
-#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = self->priv->callback;
-#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3__target = self->priv->callback_target;
-#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ (self, _tmp3__target);
-#line 1169 "BackgroundJob.c"
- }
- }
-#line 202 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_unref0 (self->priv->self);
-#line 202 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->self = NULL;
-#line 204 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = FALSE;
-#line 204 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 1180 "BackgroundJob.c"
-}
-
-
-static gboolean
-_background_job_on_notification_ready_gsource_func (gpointer self)
-{
- gboolean result;
- result = background_job_on_notification_ready ((BackgroundJob*) self);
-#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 1191 "BackgroundJob.c"
-}
-
-
-static gpointer
-_notification_object_ref0 (gpointer self)
-{
-#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return self ? notification_object_ref (self) : NULL;
-#line 1200 "BackgroundJob.c"
-}
-
-
-void
-background_job_notify (BackgroundJob* self,
- NotificationCallback callback,
- void* callback_target,
- NotificationObject* user)
-{
- gint _tmp5_;
- InterlockedNotificationObject* interlocked = NULL;
- InterlockedNotificationObject* _tmp6_;
- InterlockedNotificationObject* _tmp7_;
- GError * _inner_error_ = NULL;
-#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (self));
-#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user));
-#line 1219 "BackgroundJob.c"
- {
- GeeArrayList* _tmp0_;
-#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = background_job_notify_queue;
-#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_rec_mutex_lock (&__lock_background_job_notify_queue);
-#line 1226 "BackgroundJob.c"
- {
- GeeArrayList* _tmp1_;
- BackgroundJobNotificationJob* _tmp2_;
- BackgroundJobNotificationJob* _tmp3_;
-#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = background_job_notify_queue;
-#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = background_job_notification_job_new (callback, callback_target, self, user);
-#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = _tmp2_;
-#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp3_);
-#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_notification_job_unref0 (_tmp3_);
-#line 1241 "BackgroundJob.c"
- }
- __finally13:
- {
- GeeArrayList* _tmp4_;
-#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ = background_job_notify_queue;
-#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_rec_mutex_unlock (&__lock_background_job_notify_queue);
-#line 1250 "BackgroundJob.c"
- }
-#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.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 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_clear_error (&_inner_error_);
-#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return;
-#line 1260 "BackgroundJob.c"
- }
- }
-#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp5_ = self->priv->notification_priority;
-#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_idle_add_full (_tmp5_, _background_job_on_notification_ready_gsource_func, background_job_ref (self), background_job_unref);
-#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp6_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (user, TYPE_INTERLOCKED_NOTIFICATION_OBJECT) ? ((InterlockedNotificationObject*) user) : NULL);
-#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked = _tmp6_;
-#line 219 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp7_ = interlocked;
-#line 219 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp7_ != NULL) {
-#line 1275 "BackgroundJob.c"
- InterlockedNotificationObject* _tmp8_;
-#line 220 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp8_ = interlocked;
-#line 220 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked_notification_object_internal_wait_for_completion (_tmp8_);
-#line 1281 "BackgroundJob.c"
- }
-#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _notification_object_unref0 (interlocked);
-#line 1285 "BackgroundJob.c"
-}
-
-
-static gboolean
-background_job_on_notification_ready (BackgroundJob* self)
-{
- gboolean result = FALSE;
- BackgroundJobNotificationJob* notification_job = NULL;
- BackgroundJobNotificationJob* _tmp8_;
- BackgroundJobNotificationJob* _tmp9_;
- NotificationCallback _tmp10_;
- void* _tmp10__target;
- BackgroundJobNotificationJob* _tmp11_;
- BackgroundJob* _tmp12_;
- BackgroundJobNotificationJob* _tmp13_;
- NotificationObject* _tmp14_;
- InterlockedNotificationObject* interlocked = NULL;
- BackgroundJobNotificationJob* _tmp15_;
- NotificationObject* _tmp16_;
- InterlockedNotificationObject* _tmp17_;
- InterlockedNotificationObject* _tmp18_;
- GError * _inner_error_ = NULL;
-#line 223 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE);
-#line 226 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- notification_job = NULL;
-#line 1312 "BackgroundJob.c"
- {
- GeeArrayList* _tmp0_;
-#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = background_job_notify_queue;
-#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_rec_mutex_lock (&__lock_background_job_notify_queue);
-#line 1319 "BackgroundJob.c"
- {
- GeeArrayList* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
-#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = background_job_notify_queue;
-#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = _tmp2_;
-#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp3_ > 0) {
-#line 1332 "BackgroundJob.c"
- GeeArrayList* _tmp4_;
- gpointer _tmp5_;
-#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ = background_job_notify_queue;
-#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp5_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_notification_job_unref0 (notification_job);
-#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- notification_job = (BackgroundJobNotificationJob*) _tmp5_;
-#line 1343 "BackgroundJob.c"
- }
- }
- __finally14:
- {
- GeeArrayList* _tmp6_;
-#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp6_ = background_job_notify_queue;
-#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_rec_mutex_unlock (&__lock_background_job_notify_queue);
-#line 1353 "BackgroundJob.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1357 "BackgroundJob.c"
- gboolean _tmp7_ = FALSE;
-#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_notification_job_unref0 (notification_job);
-#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.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 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_clear_error (&_inner_error_);
-#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return _tmp7_;
-#line 1367 "BackgroundJob.c"
- }
- }
-#line 231 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp8_ = notification_job;
-#line 231 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _vala_assert (_tmp8_ != NULL, "notification_job != null");
-#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp9_ = notification_job;
-#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp10_ = _tmp9_->callback;
-#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp10__target = _tmp9_->callback_target;
-#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp11_ = notification_job;
-#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp12_ = _tmp11_->background_job;
-#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp13_ = notification_job;
-#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp14_ = _tmp13_->user;
-#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp10_ (_tmp12_, _tmp14_, _tmp10__target);
-#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp15_ = notification_job;
-#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp16_ = _tmp15_->user;
-#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp17_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_INTERLOCKED_NOTIFICATION_OBJECT) ? ((InterlockedNotificationObject*) _tmp16_) : NULL);
-#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked = _tmp17_;
-#line 237 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp18_ = interlocked;
-#line 237 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp18_ != NULL) {
-#line 1402 "BackgroundJob.c"
- InterlockedNotificationObject* _tmp19_;
-#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp19_ = interlocked;
-#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked_notification_object_internal_completed (_tmp19_);
-#line 1408 "BackgroundJob.c"
- }
-#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = FALSE;
-#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _notification_object_unref0 (interlocked);
-#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_notification_job_unref0 (notification_job);
-#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return result;
-#line 1418 "BackgroundJob.c"
-}
-
-
-static BackgroundJobNotificationJob*
-background_job_notification_job_construct (GType object_type,
- NotificationCallback callback,
- void* callback_target,
- BackgroundJob* background_job,
- NotificationObject* user)
-{
- BackgroundJobNotificationJob* self = NULL;
- BackgroundJob* _tmp0_;
- NotificationObject* _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (IS_BACKGROUND_JOB (background_job), NULL);
-#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user), NULL);
-#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self = (BackgroundJobNotificationJob*) g_type_create_instance (object_type);
-#line 90 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->callback = callback;
-#line 90 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->callback_target = callback_target;
-#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = _background_job_ref0 (background_job);
-#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_unref0 (self->background_job);
-#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->background_job = _tmp0_;
-#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = _notification_object_ref0 (user);
-#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _notification_object_unref0 (self->user);
-#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->user = _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return self;
-#line 1456 "BackgroundJob.c"
-}
-
-
-static BackgroundJobNotificationJob*
-background_job_notification_job_new (NotificationCallback callback,
- void* callback_target,
- BackgroundJob* background_job,
- NotificationObject* user)
-{
-#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return background_job_notification_job_construct (BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, callback, callback_target, background_job, user);
-#line 1468 "BackgroundJob.c"
-}
-
-
-static void
-background_job_value_notification_job_init (GValue* value)
-{
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 1477 "BackgroundJob.c"
-}
-
-
-static void
-background_job_value_notification_job_free_value (GValue* value)
-{
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (value->data[0].v_pointer) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_notification_job_unref (value->data[0].v_pointer);
-#line 1488 "BackgroundJob.c"
- }
-}
-
-
-static void
-background_job_value_notification_job_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (src_value->data[0].v_pointer) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- dest_value->data[0].v_pointer = background_job_notification_job_ref (src_value->data[0].v_pointer);
-#line 1501 "BackgroundJob.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1505 "BackgroundJob.c"
- }
-}
-
-
-static gpointer
-background_job_value_notification_job_peek_pointer (const GValue* value)
-{
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return value->data[0].v_pointer;
-#line 1515 "BackgroundJob.c"
-}
-
-
-static gchar*
-background_job_value_notification_job_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (collect_values[0].v_pointer) {
-#line 1527 "BackgroundJob.c"
- BackgroundJobNotificationJob * object;
- object = collect_values[0].v_pointer;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1534 "BackgroundJob.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.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 1538 "BackgroundJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = background_job_notification_job_ref (object);
-#line 1542 "BackgroundJob.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 1546 "BackgroundJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return NULL;
-#line 1550 "BackgroundJob.c"
-}
-
-
-static gchar*
-background_job_value_notification_job_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- BackgroundJobNotificationJob ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (!object_p) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1566 "BackgroundJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (!value->data[0].v_pointer) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = NULL;
-#line 1572 "BackgroundJob.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = value->data[0].v_pointer;
-#line 1576 "BackgroundJob.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = background_job_notification_job_ref (value->data[0].v_pointer);
-#line 1580 "BackgroundJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return NULL;
-#line 1584 "BackgroundJob.c"
-}
-
-
-static GParamSpec*
-background_job_param_spec_notification_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- BackgroundJobParamSpecNotificationJob* spec;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (g_type_is_a (object_type, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB), NULL);
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return G_PARAM_SPEC (spec);
-#line 1604 "BackgroundJob.c"
-}
-
-
-static gpointer
-background_job_value_get_notification_job (const GValue* value)
-{
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB), NULL);
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return value->data[0].v_pointer;
-#line 1615 "BackgroundJob.c"
-}
-
-
-static void
-background_job_value_set_notification_job (GValue* value,
- gpointer v_object)
-{
- BackgroundJobNotificationJob * old;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB));
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- old = value->data[0].v_pointer;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (v_object) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB));
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = v_object;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_notification_job_ref (value->data[0].v_pointer);
-#line 1638 "BackgroundJob.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 1642 "BackgroundJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (old) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_notification_job_unref (old);
-#line 1648 "BackgroundJob.c"
- }
-}
-
-
-static void
-background_job_value_take_notification_job (GValue* value,
- gpointer v_object)
-{
- BackgroundJobNotificationJob * old;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB));
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- old = value->data[0].v_pointer;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (v_object) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB));
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = v_object;
-#line 1670 "BackgroundJob.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 1674 "BackgroundJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (old) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_notification_job_unref (old);
-#line 1680 "BackgroundJob.c"
- }
-}
-
-
-static void
-background_job_notification_job_class_init (BackgroundJobNotificationJobClass * klass)
-{
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_notification_job_parent_class = g_type_class_peek_parent (klass);
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- ((BackgroundJobNotificationJobClass *) klass)->finalize = background_job_notification_job_finalize;
-#line 1692 "BackgroundJob.c"
-}
-
-
-static void
-background_job_notification_job_instance_init (BackgroundJobNotificationJob * self)
-{
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->ref_count = 1;
-#line 1701 "BackgroundJob.c"
-}
-
-
-static void
-background_job_notification_job_finalize (BackgroundJobNotificationJob * obj)
-{
- BackgroundJobNotificationJob * self;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJob);
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_signal_handlers_destroy (self);
-#line 85 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_unref0 (self->background_job);
-#line 86 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _notification_object_unref0 (self->user);
-#line 1717 "BackgroundJob.c"
-}
-
-
-static GType
-background_job_notification_job_get_type (void)
-{
- static volatile gsize background_job_notification_job_type_id__volatile = 0;
- if (g_once_init_enter (&background_job_notification_job_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { background_job_value_notification_job_init, background_job_value_notification_job_free_value, background_job_value_notification_job_copy_value, background_job_value_notification_job_peek_pointer, "p", background_job_value_notification_job_collect_value, "p", background_job_value_notification_job_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (BackgroundJobNotificationJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_job_notification_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundJobNotificationJob), 0, (GInstanceInitFunc) background_job_notification_job_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType background_job_notification_job_type_id;
- background_job_notification_job_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BackgroundJobNotificationJob", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&background_job_notification_job_type_id__volatile, background_job_notification_job_type_id);
- }
- return background_job_notification_job_type_id__volatile;
-}
-
-
-static gpointer
-background_job_notification_job_ref (gpointer instance)
-{
- BackgroundJobNotificationJob * self;
- self = instance;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return instance;
-#line 1746 "BackgroundJob.c"
-}
-
-
-static void
-background_job_notification_job_unref (gpointer instance)
-{
- BackgroundJobNotificationJob * self;
- self = instance;
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- BACKGROUND_JOB_NOTIFICATION_JOB_GET_CLASS (self)->finalize (self);
-#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1761 "BackgroundJob.c"
- }
-}
-
-
-static void
-value_background_job_init (GValue* value)
-{
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 1771 "BackgroundJob.c"
-}
-
-
-static void
-value_background_job_free_value (GValue* value)
-{
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (value->data[0].v_pointer) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_unref (value->data[0].v_pointer);
-#line 1782 "BackgroundJob.c"
- }
-}
-
-
-static void
-value_background_job_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (src_value->data[0].v_pointer) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- dest_value->data[0].v_pointer = background_job_ref (src_value->data[0].v_pointer);
-#line 1795 "BackgroundJob.c"
- } else {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 1799 "BackgroundJob.c"
- }
-}
-
-
-static gpointer
-value_background_job_peek_pointer (const GValue* value)
-{
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return value->data[0].v_pointer;
-#line 1809 "BackgroundJob.c"
-}
-
-
-static gchar*
-value_background_job_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (collect_values[0].v_pointer) {
-#line 1821 "BackgroundJob.c"
- BackgroundJob * object;
- object = collect_values[0].v_pointer;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1828 "BackgroundJob.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.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 1832 "BackgroundJob.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = background_job_ref (object);
-#line 1836 "BackgroundJob.c"
- } else {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 1840 "BackgroundJob.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return NULL;
-#line 1844 "BackgroundJob.c"
-}
-
-
-static gchar*
-value_background_job_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- BackgroundJob ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (!object_p) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1860 "BackgroundJob.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (!value->data[0].v_pointer) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = NULL;
-#line 1866 "BackgroundJob.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = value->data[0].v_pointer;
-#line 1870 "BackgroundJob.c"
- } else {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- *object_p = background_job_ref (value->data[0].v_pointer);
-#line 1874 "BackgroundJob.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return NULL;
-#line 1878 "BackgroundJob.c"
-}
-
-
-GParamSpec*
-param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecBackgroundJob* spec;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_BACKGROUND_JOB), NULL);
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return G_PARAM_SPEC (spec);
-#line 1898 "BackgroundJob.c"
-}
-
-
-gpointer
-value_get_background_job (const GValue* value)
-{
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB), NULL);
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return value->data[0].v_pointer;
-#line 1909 "BackgroundJob.c"
-}
-
-
-void
-value_set_background_job (GValue* value,
- gpointer v_object)
-{
- BackgroundJob * old;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB));
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- old = value->data[0].v_pointer;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (v_object) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKGROUND_JOB));
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = v_object;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_ref (value->data[0].v_pointer);
-#line 1932 "BackgroundJob.c"
- } else {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 1936 "BackgroundJob.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (old) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_unref (old);
-#line 1942 "BackgroundJob.c"
- }
-}
-
-
-void
-value_take_background_job (GValue* value,
- gpointer v_object)
-{
- BackgroundJob * old;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB));
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- old = value->data[0].v_pointer;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (v_object) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKGROUND_JOB));
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = v_object;
-#line 1964 "BackgroundJob.c"
- } else {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- value->data[0].v_pointer = NULL;
-#line 1968 "BackgroundJob.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (old) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_unref (old);
-#line 1974 "BackgroundJob.c"
- }
-}
-
-
-static void
-background_job_class_init (BackgroundJobClass * klass)
-{
- GeeArrayList* _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_parent_class = g_type_class_peek_parent (klass);
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- ((BackgroundJobClass *) klass)->finalize = background_job_finalize;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_type_class_add_private (klass, sizeof (BackgroundJobPrivate));
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) background_job_real_execute;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- ((BackgroundJobClass *) klass)->get_priority = (BackgroundJobJobPriority (*) (BackgroundJob *)) background_job_real_get_priority;
-#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_rec_mutex_init (&__lock_background_job_notify_queue);
-#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = gee_array_list_new (BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, (GBoxedCopyFunc) background_job_notification_job_ref, (GDestroyNotify) background_job_notification_job_unref, NULL, NULL, NULL);
-#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- background_job_notify_queue = _tmp0_;
-#line 1999 "BackgroundJob.c"
-}
-
-
-static void
-background_job_instance_init (BackgroundJob * self)
-{
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv = BACKGROUND_JOB_GET_PRIVATE (self);
-#line 102 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->self = NULL;
-#line 103 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->semaphore = NULL;
-#line 110 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->completion_priority = G_PRIORITY_HIGH;
-#line 111 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->notification_priority = G_PRIORITY_DEFAULT_IDLE;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->ref_count = 1;
-#line 2018 "BackgroundJob.c"
-}
-
-
-static void
-background_job_finalize (BackgroundJob * obj)
-{
- BackgroundJob * self;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKGROUND_JOB, BackgroundJob);
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_signal_handlers_destroy (self);
-#line 98 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _g_object_unref0 (self->priv->owner);
-#line 100 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _g_object_unref0 (self->priv->cancellable);
-#line 102 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_unref0 (self->priv->self);
-#line 103 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _abstract_semaphore_unref0 (self->priv->semaphore);
-#line 2038 "BackgroundJob.c"
-}
-
-
-GType
-background_job_get_type (void)
-{
- static volatile gsize background_job_type_id__volatile = 0;
- if (g_once_init_enter (&background_job_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_background_job_init, value_background_job_free_value, value_background_job_copy_value, value_background_job_peek_pointer, "p", value_background_job_collect_value, "p", value_background_job_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (BackgroundJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundJob), 0, (GInstanceInitFunc) background_job_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType background_job_type_id;
- background_job_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BackgroundJob", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&background_job_type_id__volatile, background_job_type_id);
- }
- return background_job_type_id__volatile;
-}
-
-
-gpointer
-background_job_ref (gpointer instance)
-{
- BackgroundJob * self;
- self = instance;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return instance;
-#line 2067 "BackgroundJob.c"
-}
-
-
-void
-background_job_unref (gpointer instance)
-{
- BackgroundJob * self;
- self = instance;
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- BACKGROUND_JOB_GET_CLASS (self)->finalize (self);
-#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2082 "BackgroundJob.c"
- }
-}
-
-
-
diff --git a/src/threads/Semaphore.c b/src/threads/Semaphore.c
deleted file mode 100644
index 0d5bd4d..0000000
--- a/src/threads/Semaphore.c
+++ /dev/null
@@ -1,1267 +0,0 @@
-/* Semaphore.c generated by valac 0.40.4, the Vala compiler
- * generated from Semaphore.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* Semaphores may be used to be notified when a job is completed. This provides an alternate*/
-/* mechanism (essentially, a blocking mechanism) to the system of callbacks that BackgroundJob*/
-/* offers. They can also be used for other job-dependent notification mechanisms.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-typedef struct _AbstractSemaphorePrivate AbstractSemaphorePrivate;
-
-#define ABSTRACT_SEMAPHORE_TYPE_NOTIFY_ACTION (abstract_semaphore_notify_action_get_type ())
-
-#define ABSTRACT_SEMAPHORE_TYPE_WAIT_ACTION (abstract_semaphore_wait_action_get_type ())
-
-#define ABSTRACT_SEMAPHORE_TYPE_TYPE (abstract_semaphore_type_get_type ())
-typedef struct _ParamSpecAbstractSemaphore ParamSpecAbstractSemaphore;
-
-#define TYPE_SEMAPHORE (semaphore_get_type ())
-#define SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEMAPHORE, Semaphore))
-#define SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEMAPHORE, SemaphoreClass))
-#define IS_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEMAPHORE))
-#define IS_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEMAPHORE))
-#define SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEMAPHORE, SemaphoreClass))
-
-typedef struct _Semaphore Semaphore;
-typedef struct _SemaphoreClass SemaphoreClass;
-typedef struct _SemaphorePrivate SemaphorePrivate;
-
-#define TYPE_COUNTDOWN_SEMAPHORE (countdown_semaphore_get_type ())
-#define COUNTDOWN_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphore))
-#define COUNTDOWN_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphoreClass))
-#define IS_COUNTDOWN_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COUNTDOWN_SEMAPHORE))
-#define IS_COUNTDOWN_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COUNTDOWN_SEMAPHORE))
-#define COUNTDOWN_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphoreClass))
-
-typedef struct _CountdownSemaphore CountdownSemaphore;
-typedef struct _CountdownSemaphoreClass CountdownSemaphoreClass;
-typedef struct _CountdownSemaphorePrivate CountdownSemaphorePrivate;
-
-#define TYPE_EVENT_SEMAPHORE (event_semaphore_get_type ())
-#define EVENT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SEMAPHORE, EventSemaphore))
-#define EVENT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SEMAPHORE, EventSemaphoreClass))
-#define IS_EVENT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SEMAPHORE))
-#define IS_EVENT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SEMAPHORE))
-#define EVENT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SEMAPHORE, EventSemaphoreClass))
-
-typedef struct _EventSemaphore EventSemaphore;
-typedef struct _EventSemaphoreClass EventSemaphoreClass;
-typedef struct _EventSemaphorePrivate EventSemaphorePrivate;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef enum {
- ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE,
- ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL
-} AbstractSemaphoreNotifyAction;
-
-typedef enum {
- ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP,
- ABSTRACT_SEMAPHORE_WAIT_ACTION_READY
-} AbstractSemaphoreWaitAction;
-
-struct _AbstractSemaphore {
- GTypeInstance parent_instance;
- volatile int ref_count;
- AbstractSemaphorePrivate * priv;
-};
-
-struct _AbstractSemaphoreClass {
- GTypeClass parent_class;
- void (*finalize) (AbstractSemaphore *self);
- AbstractSemaphoreNotifyAction (*do_notify) (AbstractSemaphore* self);
- AbstractSemaphoreWaitAction (*do_wait) (AbstractSemaphore* self);
- gboolean (*do_reset) (AbstractSemaphore* self);
-};
-
-typedef enum {
- ABSTRACT_SEMAPHORE_TYPE_SERIAL,
- ABSTRACT_SEMAPHORE_TYPE_BROADCAST
-} AbstractSemaphoreType;
-
-struct _AbstractSemaphorePrivate {
- AbstractSemaphoreType type;
- GMutex mutex;
- GCond monitor;
-};
-
-struct _ParamSpecAbstractSemaphore {
- GParamSpec parent_instance;
-};
-
-struct _Semaphore {
- AbstractSemaphore parent_instance;
- SemaphorePrivate * priv;
-};
-
-struct _SemaphoreClass {
- AbstractSemaphoreClass parent_class;
-};
-
-struct _SemaphorePrivate {
- gboolean passed;
-};
-
-struct _CountdownSemaphore {
- AbstractSemaphore parent_instance;
- CountdownSemaphorePrivate * priv;
-};
-
-struct _CountdownSemaphoreClass {
- AbstractSemaphoreClass parent_class;
-};
-
-struct _CountdownSemaphorePrivate {
- gint total;
- gint passed;
-};
-
-struct _EventSemaphore {
- AbstractSemaphore parent_instance;
- EventSemaphorePrivate * priv;
-};
-
-struct _EventSemaphoreClass {
- AbstractSemaphoreClass parent_class;
-};
-
-struct _EventSemaphorePrivate {
- gboolean fired;
-};
-
-
-static gpointer abstract_semaphore_parent_class = NULL;
-static gpointer semaphore_parent_class = NULL;
-static gpointer countdown_semaphore_parent_class = NULL;
-static gpointer event_semaphore_parent_class = NULL;
-
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-GType abstract_semaphore_notify_action_get_type (void) G_GNUC_CONST;
-GType abstract_semaphore_wait_action_get_type (void) G_GNUC_CONST;
-GType abstract_semaphore_type_get_type (void) G_GNUC_CONST;
-#define ABSTRACT_SEMAPHORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphorePrivate))
-AbstractSemaphore* abstract_semaphore_construct (GType object_type,
- AbstractSemaphoreType type);
-static void abstract_semaphore_trigger (AbstractSemaphore* self);
-void abstract_semaphore_notify (AbstractSemaphore* self);
-AbstractSemaphoreNotifyAction abstract_semaphore_do_notify (AbstractSemaphore* self);
-const gchar* abstract_semaphore_notify_action_to_string (AbstractSemaphoreNotifyAction self);
-static AbstractSemaphoreNotifyAction abstract_semaphore_real_do_notify (AbstractSemaphore* self);
-void abstract_semaphore_wait (AbstractSemaphore* self);
-AbstractSemaphoreWaitAction abstract_semaphore_do_wait (AbstractSemaphore* self);
-static AbstractSemaphoreWaitAction abstract_semaphore_real_do_wait (AbstractSemaphore* self);
-gboolean abstract_semaphore_reset (AbstractSemaphore* self);
-gboolean abstract_semaphore_do_reset (AbstractSemaphore* self);
-static gboolean abstract_semaphore_real_do_reset (AbstractSemaphore* self);
-static void abstract_semaphore_finalize (AbstractSemaphore * obj);
-GType semaphore_get_type (void) G_GNUC_CONST;
-#define SEMAPHORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEMAPHORE, SemaphorePrivate))
-Semaphore* semaphore_new (void);
-Semaphore* semaphore_construct (GType object_type);
-static AbstractSemaphoreNotifyAction semaphore_real_do_notify (AbstractSemaphore* base);
-static AbstractSemaphoreWaitAction semaphore_real_do_wait (AbstractSemaphore* base);
-static void semaphore_finalize (AbstractSemaphore * obj);
-GType countdown_semaphore_get_type (void) G_GNUC_CONST;
-#define COUNTDOWN_SEMAPHORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphorePrivate))
-CountdownSemaphore* countdown_semaphore_new (gint total);
-CountdownSemaphore* countdown_semaphore_construct (GType object_type,
- gint total);
-static AbstractSemaphoreNotifyAction countdown_semaphore_real_do_notify (AbstractSemaphore* base);
-static AbstractSemaphoreWaitAction countdown_semaphore_real_do_wait (AbstractSemaphore* base);
-static void countdown_semaphore_finalize (AbstractSemaphore * obj);
-GType event_semaphore_get_type (void) G_GNUC_CONST;
-#define EVENT_SEMAPHORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT_SEMAPHORE, EventSemaphorePrivate))
-EventSemaphore* event_semaphore_new (void);
-EventSemaphore* event_semaphore_construct (GType object_type);
-static AbstractSemaphoreNotifyAction event_semaphore_real_do_notify (AbstractSemaphore* base);
-static AbstractSemaphoreWaitAction event_semaphore_real_do_wait (AbstractSemaphore* base);
-static gboolean event_semaphore_real_do_reset (AbstractSemaphore* base);
-static void event_semaphore_finalize (AbstractSemaphore * obj);
-static void _vala_clear_GMutex (GMutex * mutex);
-static void _vala_clear_GRecMutex (GRecMutex * mutex);
-static void _vala_clear_GRWLock (GRWLock * mutex);
-static void _vala_clear_GCond (GCond * mutex);
-
-
-GType
-abstract_semaphore_type_get_type (void)
-{
- static volatile gsize abstract_semaphore_type_type_id__volatile = 0;
- if (g_once_init_enter (&abstract_semaphore_type_type_id__volatile)) {
- static const GEnumValue values[] = {{ABSTRACT_SEMAPHORE_TYPE_SERIAL, "ABSTRACT_SEMAPHORE_TYPE_SERIAL", "serial"}, {ABSTRACT_SEMAPHORE_TYPE_BROADCAST, "ABSTRACT_SEMAPHORE_TYPE_BROADCAST", "broadcast"}, {0, NULL, NULL}};
- GType abstract_semaphore_type_type_id;
- abstract_semaphore_type_type_id = g_enum_register_static ("AbstractSemaphoreType", values);
- g_once_init_leave (&abstract_semaphore_type_type_id__volatile, abstract_semaphore_type_type_id);
- }
- return abstract_semaphore_type_type_id__volatile;
-}
-
-
-GType
-abstract_semaphore_notify_action_get_type (void)
-{
- static volatile gsize abstract_semaphore_notify_action_type_id__volatile = 0;
- if (g_once_init_enter (&abstract_semaphore_notify_action_type_id__volatile)) {
- static const GEnumValue values[] = {{ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE, "ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE", "none"}, {ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL, "ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL", "signal"}, {0, NULL, NULL}};
- GType abstract_semaphore_notify_action_type_id;
- abstract_semaphore_notify_action_type_id = g_enum_register_static ("AbstractSemaphoreNotifyAction", values);
- g_once_init_leave (&abstract_semaphore_notify_action_type_id__volatile, abstract_semaphore_notify_action_type_id);
- }
- return abstract_semaphore_notify_action_type_id__volatile;
-}
-
-
-GType
-abstract_semaphore_wait_action_get_type (void)
-{
- static volatile gsize abstract_semaphore_wait_action_type_id__volatile = 0;
- if (g_once_init_enter (&abstract_semaphore_wait_action_type_id__volatile)) {
- static const GEnumValue values[] = {{ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP, "ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP", "sleep"}, {ABSTRACT_SEMAPHORE_WAIT_ACTION_READY, "ABSTRACT_SEMAPHORE_WAIT_ACTION_READY", "ready"}, {0, NULL, NULL}};
- GType abstract_semaphore_wait_action_type_id;
- abstract_semaphore_wait_action_type_id = g_enum_register_static ("AbstractSemaphoreWaitAction", values);
- g_once_init_leave (&abstract_semaphore_wait_action_type_id__volatile, abstract_semaphore_wait_action_type_id);
- }
- return abstract_semaphore_wait_action_type_id__volatile;
-}
-
-
-AbstractSemaphore*
-abstract_semaphore_construct (GType object_type,
- AbstractSemaphoreType type)
-{
- AbstractSemaphore* self = NULL;
- gboolean _tmp0_ = FALSE;
-#line 30 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = (AbstractSemaphore*) g_type_create_instance (object_type);
-#line 31 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (type == ABSTRACT_SEMAPHORE_TYPE_SERIAL) {
-#line 31 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = TRUE;
-#line 276 "Semaphore.c"
- } else {
-#line 31 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = type == ABSTRACT_SEMAPHORE_TYPE_BROADCAST;
-#line 280 "Semaphore.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _vala_assert (_tmp0_, "type == Type.SERIAL || type == Type.BROADCAST");
-#line 33 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->type = type;
-#line 30 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return self;
-#line 288 "Semaphore.c"
-}
-
-
-static void
-abstract_semaphore_trigger (AbstractSemaphore* self)
-{
- AbstractSemaphoreType _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (IS_ABSTRACT_SEMAPHORE (self));
-#line 37 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = self->priv->type;
-#line 37 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (_tmp0_ == ABSTRACT_SEMAPHORE_TYPE_SERIAL) {
-#line 38 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_cond_signal (&self->priv->monitor);
-#line 304 "Semaphore.c"
- } else {
-#line 40 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_cond_broadcast (&self->priv->monitor);
-#line 308 "Semaphore.c"
- }
-}
-
-
-void
-abstract_semaphore_notify (AbstractSemaphore* self)
-{
- AbstractSemaphoreNotifyAction action = 0;
- AbstractSemaphoreNotifyAction _tmp0_;
-#line 43 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (IS_ABSTRACT_SEMAPHORE (self));
-#line 44 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_mutex_lock (&self->priv->mutex);
-#line 46 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- action = abstract_semaphore_do_notify (self);
-#line 47 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = action;
-#line 47 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- switch (_tmp0_) {
-#line 47 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- case ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE:
-#line 330 "Semaphore.c"
- {
-#line 50 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- break;
-#line 334 "Semaphore.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- case ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL:
-#line 338 "Semaphore.c"
- {
-#line 53 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- abstract_semaphore_trigger (self);
-#line 54 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- break;
-#line 344 "Semaphore.c"
- }
- default:
- {
- AbstractSemaphoreNotifyAction _tmp1_;
- GEnumValue* _tmp2_;
-#line 57 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp1_ = action;
-#line 57 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp2_ = g_enum_get_value (g_type_class_ref (ABSTRACT_SEMAPHORE_TYPE_NOTIFY_ACTION), _tmp1_);
-#line 57 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_error ("Semaphore.vala:57: Unknown semaphore action: %s", (_tmp2_ != NULL) ? _tmp2_->value_name : NULL);
-#line 356 "Semaphore.c"
- }
- }
-#line 60 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_mutex_unlock (&self->priv->mutex);
-#line 361 "Semaphore.c"
-}
-
-
-static AbstractSemaphoreNotifyAction
-abstract_semaphore_real_do_notify (AbstractSemaphore* self)
-{
-#line 64 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_critical ("Type `%s' does not implement abstract method `abstract_semaphore_do_notify'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 64 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return 0;
-#line 372 "Semaphore.c"
-}
-
-
-AbstractSemaphoreNotifyAction
-abstract_semaphore_do_notify (AbstractSemaphore* self)
-{
-#line 64 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_val_if_fail (IS_ABSTRACT_SEMAPHORE (self), 0);
-#line 64 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return ABSTRACT_SEMAPHORE_GET_CLASS (self)->do_notify (self);
-#line 383 "Semaphore.c"
-}
-
-
-void
-abstract_semaphore_wait (AbstractSemaphore* self)
-{
-#line 66 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (IS_ABSTRACT_SEMAPHORE (self));
-#line 67 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_mutex_lock (&self->priv->mutex);
-#line 69 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- while (TRUE) {
-#line 69 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (!(abstract_semaphore_do_wait (self) == ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP)) {
-#line 69 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- break;
-#line 400 "Semaphore.c"
- }
-#line 70 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_cond_wait (&self->priv->monitor, &self->priv->mutex);
-#line 404 "Semaphore.c"
- }
-#line 72 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_mutex_unlock (&self->priv->mutex);
-#line 408 "Semaphore.c"
-}
-
-
-static AbstractSemaphoreWaitAction
-abstract_semaphore_real_do_wait (AbstractSemaphore* self)
-{
-#line 76 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_critical ("Type `%s' does not implement abstract method `abstract_semaphore_do_wait'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 76 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return 0;
-#line 419 "Semaphore.c"
-}
-
-
-AbstractSemaphoreWaitAction
-abstract_semaphore_do_wait (AbstractSemaphore* self)
-{
-#line 76 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_val_if_fail (IS_ABSTRACT_SEMAPHORE (self), 0);
-#line 76 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return ABSTRACT_SEMAPHORE_GET_CLASS (self)->do_wait (self);
-#line 430 "Semaphore.c"
-}
-
-
-gboolean
-abstract_semaphore_reset (AbstractSemaphore* self)
-{
- gboolean result = FALSE;
- gboolean is_reset = FALSE;
-#line 79 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_val_if_fail (IS_ABSTRACT_SEMAPHORE (self), FALSE);
-#line 80 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_mutex_lock (&self->priv->mutex);
-#line 81 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- is_reset = abstract_semaphore_do_reset (self);
-#line 82 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_mutex_unlock (&self->priv->mutex);
-#line 84 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = is_reset;
-#line 84 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 451 "Semaphore.c"
-}
-
-
-static gboolean
-abstract_semaphore_real_do_reset (AbstractSemaphore* self)
-{
- gboolean result = FALSE;
-#line 90 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = FALSE;
-#line 90 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 463 "Semaphore.c"
-}
-
-
-gboolean
-abstract_semaphore_do_reset (AbstractSemaphore* self)
-{
-#line 89 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_val_if_fail (IS_ABSTRACT_SEMAPHORE (self), FALSE);
-#line 89 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return ABSTRACT_SEMAPHORE_GET_CLASS (self)->do_reset (self);
-#line 474 "Semaphore.c"
-}
-
-
-static void
-value_abstract_semaphore_init (GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- value->data[0].v_pointer = NULL;
-#line 483 "Semaphore.c"
-}
-
-
-static void
-value_abstract_semaphore_free_value (GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- abstract_semaphore_unref (value->data[0].v_pointer);
-#line 494 "Semaphore.c"
- }
-}
-
-
-static void
-value_abstract_semaphore_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (src_value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- dest_value->data[0].v_pointer = abstract_semaphore_ref (src_value->data[0].v_pointer);
-#line 507 "Semaphore.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 511 "Semaphore.c"
- }
-}
-
-
-static gpointer
-value_abstract_semaphore_peek_pointer (const GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return value->data[0].v_pointer;
-#line 521 "Semaphore.c"
-}
-
-
-static gchar*
-value_abstract_semaphore_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (collect_values[0].v_pointer) {
-#line 533 "Semaphore.c"
- AbstractSemaphore * object;
- object = collect_values[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 540 "Semaphore.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.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 544 "Semaphore.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- value->data[0].v_pointer = abstract_semaphore_ref (object);
-#line 548 "Semaphore.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- value->data[0].v_pointer = NULL;
-#line 552 "Semaphore.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return NULL;
-#line 556 "Semaphore.c"
-}
-
-
-static gchar*
-value_abstract_semaphore_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- AbstractSemaphore ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (!object_p) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 572 "Semaphore.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (!value->data[0].v_pointer) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- *object_p = NULL;
-#line 578 "Semaphore.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- *object_p = value->data[0].v_pointer;
-#line 582 "Semaphore.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- *object_p = abstract_semaphore_ref (value->data[0].v_pointer);
-#line 586 "Semaphore.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return NULL;
-#line 590 "Semaphore.c"
-}
-
-
-GParamSpec*
-param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecAbstractSemaphore* spec;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_ABSTRACT_SEMAPHORE), NULL);
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return G_PARAM_SPEC (spec);
-#line 610 "Semaphore.c"
-}
-
-
-gpointer
-value_get_abstract_semaphore (const GValue* value)
-{
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ABSTRACT_SEMAPHORE), NULL);
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return value->data[0].v_pointer;
-#line 621 "Semaphore.c"
-}
-
-
-void
-value_set_abstract_semaphore (GValue* value,
- gpointer v_object)
-{
- AbstractSemaphore * old;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ABSTRACT_SEMAPHORE));
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- old = value->data[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (v_object) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ABSTRACT_SEMAPHORE));
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- value->data[0].v_pointer = v_object;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- abstract_semaphore_ref (value->data[0].v_pointer);
-#line 644 "Semaphore.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- value->data[0].v_pointer = NULL;
-#line 648 "Semaphore.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (old) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- abstract_semaphore_unref (old);
-#line 654 "Semaphore.c"
- }
-}
-
-
-void
-value_take_abstract_semaphore (GValue* value,
- gpointer v_object)
-{
- AbstractSemaphore * old;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ABSTRACT_SEMAPHORE));
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- old = value->data[0].v_pointer;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (v_object) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ABSTRACT_SEMAPHORE));
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- value->data[0].v_pointer = v_object;
-#line 676 "Semaphore.c"
- } else {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- value->data[0].v_pointer = NULL;
-#line 680 "Semaphore.c"
- }
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (old) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- abstract_semaphore_unref (old);
-#line 686 "Semaphore.c"
- }
-}
-
-
-static void
-abstract_semaphore_class_init (AbstractSemaphoreClass * klass)
-{
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- abstract_semaphore_parent_class = g_type_class_peek_parent (klass);
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->finalize = abstract_semaphore_finalize;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_type_class_add_private (klass, sizeof (AbstractSemaphorePrivate));
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_notify = (AbstractSemaphoreNotifyAction (*) (AbstractSemaphore *)) abstract_semaphore_real_do_notify;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_wait = (AbstractSemaphoreWaitAction (*) (AbstractSemaphore *)) abstract_semaphore_real_do_wait;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_reset = (gboolean (*) (AbstractSemaphore *)) abstract_semaphore_real_do_reset;
-#line 706 "Semaphore.c"
-}
-
-
-static void
-abstract_semaphore_instance_init (AbstractSemaphore * self)
-{
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv = ABSTRACT_SEMAPHORE_GET_PRIVATE (self);
-#line 27 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_mutex_init (&self->priv->mutex);
-#line 28 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_cond_init (&self->priv->monitor);
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->ref_count = 1;
-#line 721 "Semaphore.c"
-}
-
-
-static void
-abstract_semaphore_finalize (AbstractSemaphore * obj)
-{
- AbstractSemaphore * self;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore);
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_signal_handlers_destroy (self);
-#line 27 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _vala_clear_GMutex (&self->priv->mutex);
-#line 28 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _vala_clear_GCond (&self->priv->monitor);
-#line 737 "Semaphore.c"
-}
-
-
-GType
-abstract_semaphore_get_type (void)
-{
- static volatile gsize abstract_semaphore_type_id__volatile = 0;
- if (g_once_init_enter (&abstract_semaphore_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_abstract_semaphore_init, value_abstract_semaphore_free_value, value_abstract_semaphore_copy_value, value_abstract_semaphore_peek_pointer, "p", value_abstract_semaphore_collect_value, "p", value_abstract_semaphore_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (AbstractSemaphoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) abstract_semaphore_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AbstractSemaphore), 0, (GInstanceInitFunc) abstract_semaphore_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType abstract_semaphore_type_id;
- abstract_semaphore_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AbstractSemaphore", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
- g_once_init_leave (&abstract_semaphore_type_id__volatile, abstract_semaphore_type_id);
- }
- return abstract_semaphore_type_id__volatile;
-}
-
-
-gpointer
-abstract_semaphore_ref (gpointer instance)
-{
- AbstractSemaphore * self;
- self = instance;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return instance;
-#line 766 "Semaphore.c"
-}
-
-
-void
-abstract_semaphore_unref (gpointer instance)
-{
- AbstractSemaphore * self;
- self = instance;
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ABSTRACT_SEMAPHORE_GET_CLASS (self)->finalize (self);
-#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 781 "Semaphore.c"
- }
-}
-
-
-Semaphore*
-semaphore_construct (GType object_type)
-{
- Semaphore* self = NULL;
-#line 98 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = (Semaphore*) abstract_semaphore_construct (object_type, ABSTRACT_SEMAPHORE_TYPE_BROADCAST);
-#line 97 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return self;
-#line 794 "Semaphore.c"
-}
-
-
-Semaphore*
-semaphore_new (void)
-{
-#line 97 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return semaphore_construct (TYPE_SEMAPHORE);
-#line 803 "Semaphore.c"
-}
-
-
-static AbstractSemaphoreNotifyAction
-semaphore_real_do_notify (AbstractSemaphore* base)
-{
- Semaphore * self;
- AbstractSemaphoreNotifyAction result = 0;
- gboolean _tmp0_;
-#line 101 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEMAPHORE, Semaphore);
-#line 102 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = self->priv->passed;
-#line 102 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (_tmp0_) {
-#line 103 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE;
-#line 103 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 823 "Semaphore.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->passed = TRUE;
-#line 107 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL;
-#line 107 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 831 "Semaphore.c"
-}
-
-
-static AbstractSemaphoreWaitAction
-semaphore_real_do_wait (AbstractSemaphore* base)
-{
- Semaphore * self;
- AbstractSemaphoreWaitAction result = 0;
- AbstractSemaphoreWaitAction _tmp0_ = 0;
- gboolean _tmp1_;
-#line 110 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEMAPHORE, Semaphore);
-#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp1_ = self->priv->passed;
-#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (_tmp1_) {
-#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_READY;
-#line 850 "Semaphore.c"
- } else {
-#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP;
-#line 854 "Semaphore.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = _tmp0_;
-#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 860 "Semaphore.c"
-}
-
-
-static void
-semaphore_class_init (SemaphoreClass * klass)
-{
-#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- semaphore_parent_class = g_type_class_peek_parent (klass);
-#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->finalize = semaphore_finalize;
-#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_type_class_add_private (klass, sizeof (SemaphorePrivate));
-#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_notify = (AbstractSemaphoreNotifyAction (*) (AbstractSemaphore *)) semaphore_real_do_notify;
-#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_wait = (AbstractSemaphoreWaitAction (*) (AbstractSemaphore *)) semaphore_real_do_wait;
-#line 877 "Semaphore.c"
-}
-
-
-static void
-semaphore_instance_init (Semaphore * self)
-{
-#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv = SEMAPHORE_GET_PRIVATE (self);
-#line 95 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->passed = FALSE;
-#line 888 "Semaphore.c"
-}
-
-
-static void
-semaphore_finalize (AbstractSemaphore * obj)
-{
- Semaphore * self;
-#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEMAPHORE, Semaphore);
-#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ABSTRACT_SEMAPHORE_CLASS (semaphore_parent_class)->finalize (obj);
-#line 900 "Semaphore.c"
-}
-
-
-GType
-semaphore_get_type (void)
-{
- static volatile gsize semaphore_type_id__volatile = 0;
- if (g_once_init_enter (&semaphore_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SemaphoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) semaphore_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Semaphore), 0, (GInstanceInitFunc) semaphore_instance_init, NULL };
- GType semaphore_type_id;
- semaphore_type_id = g_type_register_static (TYPE_ABSTRACT_SEMAPHORE, "Semaphore", &g_define_type_info, 0);
- g_once_init_leave (&semaphore_type_id__volatile, semaphore_type_id);
- }
- return semaphore_type_id__volatile;
-}
-
-
-CountdownSemaphore*
-countdown_semaphore_construct (GType object_type,
- gint total)
-{
- CountdownSemaphore* self = NULL;
-#line 120 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = (CountdownSemaphore*) abstract_semaphore_construct (object_type, ABSTRACT_SEMAPHORE_TYPE_BROADCAST);
-#line 122 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->total = total;
-#line 119 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return self;
-#line 929 "Semaphore.c"
-}
-
-
-CountdownSemaphore*
-countdown_semaphore_new (gint total)
-{
-#line 119 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return countdown_semaphore_construct (TYPE_COUNTDOWN_SEMAPHORE, total);
-#line 938 "Semaphore.c"
-}
-
-
-static AbstractSemaphoreNotifyAction
-countdown_semaphore_real_do_notify (AbstractSemaphore* base)
-{
- CountdownSemaphore * self;
- AbstractSemaphoreNotifyAction result = 0;
- gint _tmp0_;
- gint _tmp1_;
- AbstractSemaphoreNotifyAction _tmp4_ = 0;
- gint _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
-#line 125 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphore);
-#line 126 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = self->priv->passed;
-#line 126 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp1_ = self->priv->total;
-#line 126 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (_tmp0_ >= _tmp1_) {
-#line 961 "Semaphore.c"
- gint _tmp2_;
- gint _tmp3_;
-#line 127 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp2_ = self->priv->passed;
-#line 127 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp3_ = self->priv->total;
-#line 127 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_critical ("Semaphore.vala:127: CountdownSemaphore overrun: %d/%d", _tmp2_ + 1, _tmp3_);
-#line 970 "Semaphore.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp5_ = self->priv->passed;
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->passed = _tmp5_ + 1;
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp6_ = self->priv->passed;
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp7_ = self->priv->total;
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (_tmp6_ >= _tmp7_) {
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp4_ = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL;
-#line 984 "Semaphore.c"
- } else {
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp4_ = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE;
-#line 988 "Semaphore.c"
- }
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = _tmp4_;
-#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 994 "Semaphore.c"
-}
-
-
-static AbstractSemaphoreWaitAction
-countdown_semaphore_real_do_wait (AbstractSemaphore* base)
-{
- CountdownSemaphore * self;
- AbstractSemaphoreWaitAction result = 0;
- AbstractSemaphoreWaitAction _tmp0_ = 0;
- gint _tmp1_;
- gint _tmp2_;
-#line 132 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphore);
-#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp1_ = self->priv->passed;
-#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp2_ = self->priv->total;
-#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (_tmp1_ < _tmp2_) {
-#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP;
-#line 1016 "Semaphore.c"
- } else {
-#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_READY;
-#line 1020 "Semaphore.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = _tmp0_;
-#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 1026 "Semaphore.c"
-}
-
-
-static void
-countdown_semaphore_class_init (CountdownSemaphoreClass * klass)
-{
-#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- countdown_semaphore_parent_class = g_type_class_peek_parent (klass);
-#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->finalize = countdown_semaphore_finalize;
-#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_type_class_add_private (klass, sizeof (CountdownSemaphorePrivate));
-#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_notify = (AbstractSemaphoreNotifyAction (*) (AbstractSemaphore *)) countdown_semaphore_real_do_notify;
-#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_wait = (AbstractSemaphoreWaitAction (*) (AbstractSemaphore *)) countdown_semaphore_real_do_wait;
-#line 1043 "Semaphore.c"
-}
-
-
-static void
-countdown_semaphore_instance_init (CountdownSemaphore * self)
-{
-#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv = COUNTDOWN_SEMAPHORE_GET_PRIVATE (self);
-#line 117 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->passed = 0;
-#line 1054 "Semaphore.c"
-}
-
-
-static void
-countdown_semaphore_finalize (AbstractSemaphore * obj)
-{
- CountdownSemaphore * self;
-#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphore);
-#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ABSTRACT_SEMAPHORE_CLASS (countdown_semaphore_parent_class)->finalize (obj);
-#line 1066 "Semaphore.c"
-}
-
-
-GType
-countdown_semaphore_get_type (void)
-{
- static volatile gsize countdown_semaphore_type_id__volatile = 0;
- if (g_once_init_enter (&countdown_semaphore_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (CountdownSemaphoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) countdown_semaphore_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CountdownSemaphore), 0, (GInstanceInitFunc) countdown_semaphore_instance_init, NULL };
- GType countdown_semaphore_type_id;
- countdown_semaphore_type_id = g_type_register_static (TYPE_ABSTRACT_SEMAPHORE, "CountdownSemaphore", &g_define_type_info, 0);
- g_once_init_leave (&countdown_semaphore_type_id__volatile, countdown_semaphore_type_id);
- }
- return countdown_semaphore_type_id__volatile;
-}
-
-
-EventSemaphore*
-event_semaphore_construct (GType object_type)
-{
- EventSemaphore* self = NULL;
-#line 141 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = (EventSemaphore*) abstract_semaphore_construct (object_type, ABSTRACT_SEMAPHORE_TYPE_BROADCAST);
-#line 140 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return self;
-#line 1092 "Semaphore.c"
-}
-
-
-EventSemaphore*
-event_semaphore_new (void)
-{
-#line 140 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return event_semaphore_construct (TYPE_EVENT_SEMAPHORE);
-#line 1101 "Semaphore.c"
-}
-
-
-static AbstractSemaphoreNotifyAction
-event_semaphore_real_do_notify (AbstractSemaphore* base)
-{
- EventSemaphore * self;
- AbstractSemaphoreNotifyAction result = 0;
-#line 144 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SEMAPHORE, EventSemaphore);
-#line 145 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->fired = TRUE;
-#line 147 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL;
-#line 147 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 1118 "Semaphore.c"
-}
-
-
-static AbstractSemaphoreWaitAction
-event_semaphore_real_do_wait (AbstractSemaphore* base)
-{
- EventSemaphore * self;
- AbstractSemaphoreWaitAction result = 0;
- AbstractSemaphoreWaitAction _tmp0_ = 0;
- gboolean _tmp1_;
-#line 150 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SEMAPHORE, EventSemaphore);
-#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp1_ = self->priv->fired;
-#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- if (_tmp1_) {
-#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_READY;
-#line 1137 "Semaphore.c"
- } else {
-#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP;
-#line 1141 "Semaphore.c"
- }
-#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = _tmp0_;
-#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 1147 "Semaphore.c"
-}
-
-
-static gboolean
-event_semaphore_real_do_reset (AbstractSemaphore* base)
-{
- EventSemaphore * self;
- gboolean result = FALSE;
-#line 154 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SEMAPHORE, EventSemaphore);
-#line 155 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->fired = FALSE;
-#line 157 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- result = TRUE;
-#line 157 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- return result;
-#line 1164 "Semaphore.c"
-}
-
-
-static void
-event_semaphore_class_init (EventSemaphoreClass * klass)
-{
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- event_semaphore_parent_class = g_type_class_peek_parent (klass);
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->finalize = event_semaphore_finalize;
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- g_type_class_add_private (klass, sizeof (EventSemaphorePrivate));
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_notify = (AbstractSemaphoreNotifyAction (*) (AbstractSemaphore *)) event_semaphore_real_do_notify;
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_wait = (AbstractSemaphoreWaitAction (*) (AbstractSemaphore *)) event_semaphore_real_do_wait;
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ((AbstractSemaphoreClass *) klass)->do_reset = (gboolean (*) (AbstractSemaphore *)) event_semaphore_real_do_reset;
-#line 1183 "Semaphore.c"
-}
-
-
-static void
-event_semaphore_instance_init (EventSemaphore * self)
-{
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv = EVENT_SEMAPHORE_GET_PRIVATE (self);
-#line 138 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self->priv->fired = FALSE;
-#line 1194 "Semaphore.c"
-}
-
-
-static void
-event_semaphore_finalize (AbstractSemaphore * obj)
-{
- EventSemaphore * self;
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_SEMAPHORE, EventSemaphore);
-#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala"
- ABSTRACT_SEMAPHORE_CLASS (event_semaphore_parent_class)->finalize (obj);
-#line 1206 "Semaphore.c"
-}
-
-
-GType
-event_semaphore_get_type (void)
-{
- static volatile gsize event_semaphore_type_id__volatile = 0;
- if (g_once_init_enter (&event_semaphore_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (EventSemaphoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_semaphore_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventSemaphore), 0, (GInstanceInitFunc) event_semaphore_instance_init, NULL };
- GType event_semaphore_type_id;
- event_semaphore_type_id = g_type_register_static (TYPE_ABSTRACT_SEMAPHORE, "EventSemaphore", &g_define_type_info, 0);
- g_once_init_leave (&event_semaphore_type_id__volatile, event_semaphore_type_id);
- }
- return event_semaphore_type_id__volatile;
-}
-
-
-static void
-_vala_clear_GMutex (GMutex * mutex)
-{
- GMutex zero_mutex = { 0 };
- if (memcmp (mutex, &zero_mutex, sizeof (GMutex))) {
- g_mutex_clear (mutex);
- memset (mutex, 0, sizeof (GMutex));
- }
-}
-
-
-static void
-_vala_clear_GRecMutex (GRecMutex * mutex)
-{
- GRecMutex zero_mutex = { 0 };
- if (memcmp (mutex, &zero_mutex, sizeof (GRecMutex))) {
- g_rec_mutex_clear (mutex);
- memset (mutex, 0, sizeof (GRecMutex));
- }
-}
-
-
-static void
-_vala_clear_GRWLock (GRWLock * mutex)
-{
- GRWLock zero_mutex = { 0 };
- if (memcmp (mutex, &zero_mutex, sizeof (GRWLock))) {
- g_rw_lock_clear (mutex);
- memset (mutex, 0, sizeof (GRWLock));
- }
-}
-
-
-static void
-_vala_clear_GCond (GCond * mutex)
-{
- GCond zero_mutex = { 0 };
- if (memcmp (mutex, &zero_mutex, sizeof (GCond))) {
- g_cond_clear (mutex);
- memset (mutex, 0, sizeof (GCond));
- }
-}
-
-
-
diff --git a/src/threads/Threads.c b/src/threads/Threads.c
deleted file mode 100644
index 369492b..0000000
--- a/src/threads/Threads.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Threads.c generated by valac 0.40.4, the Vala compiler
- * generated from Threads.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void threads_init (GError** error);
-void threads_terminate (void);
-
-
-void
-threads_init (GError** error)
-{
-}
-
-
-void
-threads_terminate (void)
-{
-}
-
-
-
diff --git a/src/threads/Workers.c b/src/threads/Workers.c
deleted file mode 100644
index 4f250d1..0000000
--- a/src/threads/Workers.c
+++ /dev/null
@@ -1,1159 +0,0 @@
-/* Workers.c generated by valac 0.40.4, the Vala compiler
- * generated from Workers.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gee.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_SORTED_LIST (sorted_list_get_type ())
-#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
-#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
-#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
-#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
-#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
-
-typedef struct _SortedList SortedList;
-typedef struct _SortedListClass SortedListClass;
-typedef struct _SortedListPrivate SortedListPrivate;
-
-#define TYPE_BACKGROUND_JOB_BATCH (background_job_batch_get_type ())
-#define BACKGROUND_JOB_BATCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB_BATCH, BackgroundJobBatch))
-#define BACKGROUND_JOB_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB_BATCH, BackgroundJobBatchClass))
-#define IS_BACKGROUND_JOB_BATCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB_BATCH))
-#define IS_BACKGROUND_JOB_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB_BATCH))
-#define BACKGROUND_JOB_BATCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB_BATCH, BackgroundJobBatchClass))
-
-typedef struct _BackgroundJobBatch BackgroundJobBatch;
-typedef struct _BackgroundJobBatchClass BackgroundJobBatchClass;
-typedef struct _BackgroundJobBatchPrivate BackgroundJobBatchPrivate;
-enum {
- BACKGROUND_JOB_BATCH_0_PROPERTY,
- BACKGROUND_JOB_BATCH_NUM_PROPERTIES
-};
-static GParamSpec* background_job_batch_properties[BACKGROUND_JOB_BATCH_NUM_PROPERTIES];
-
-#define TYPE_BACKGROUND_JOB (background_job_get_type ())
-#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob))
-#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB))
-#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB))
-#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass))
-
-typedef struct _BackgroundJob BackgroundJob;
-typedef struct _BackgroundJobClass BackgroundJobClass;
-
-#define TYPE_WORKERS (workers_get_type ())
-#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
-#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
-#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
-#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
-#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
-
-typedef struct _Workers Workers;
-typedef struct _WorkersClass WorkersClass;
-typedef struct _WorkersPrivate WorkersPrivate;
-
-#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ())
-#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore))
-#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE))
-#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE))
-#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass))
-
-typedef struct _AbstractSemaphore AbstractSemaphore;
-typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass;
-
-#define TYPE_EVENT_SEMAPHORE (event_semaphore_get_type ())
-#define EVENT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SEMAPHORE, EventSemaphore))
-#define EVENT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SEMAPHORE, EventSemaphoreClass))
-#define IS_EVENT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SEMAPHORE))
-#define IS_EVENT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SEMAPHORE))
-#define EVENT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SEMAPHORE, EventSemaphoreClass))
-
-typedef struct _EventSemaphore EventSemaphore;
-typedef struct _EventSemaphoreClass EventSemaphoreClass;
-#define _g_thread_pool_free0(var) ((var == NULL) ? NULL : (var = (g_thread_pool_free (var, FALSE, TRUE), NULL)))
-#define _g_async_queue_unref0(var) ((var == NULL) ? NULL : (var = (g_async_queue_unref (var), NULL)))
-#define _abstract_semaphore_unref0(var) ((var == NULL) ? NULL : (var = (abstract_semaphore_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-typedef struct _ParamSpecWorkers ParamSpecWorkers;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _SortedList {
- GObject parent_instance;
- SortedListPrivate * priv;
-};
-
-struct _SortedListClass {
- GObjectClass parent_class;
-};
-
-struct _BackgroundJobBatch {
- SortedList parent_instance;
- BackgroundJobBatchPrivate * priv;
-};
-
-struct _BackgroundJobBatchClass {
- SortedListClass parent_class;
-};
-
-typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
-struct _Workers {
- GTypeInstance parent_instance;
- volatile int ref_count;
- WorkersPrivate * priv;
-};
-
-struct _WorkersClass {
- GTypeClass parent_class;
- void (*finalize) (Workers *self);
-};
-
-struct _WorkersPrivate {
- GThreadPool* thread_pool;
- GAsyncQueue* queue;
- GRecMutex __lock_queue;
- EventSemaphore* empty_event;
- gint enqueued;
-};
-
-struct _ParamSpecWorkers {
- GParamSpec parent_instance;
-};
-
-
-static gpointer background_job_batch_parent_class = NULL;
-static gpointer workers_parent_class = NULL;
-
-GType sorted_list_get_type (void) G_GNUC_CONST;
-GType background_job_batch_get_type (void) G_GNUC_CONST;
-BackgroundJobBatch* background_job_batch_new (void);
-BackgroundJobBatch* background_job_batch_construct (GType object_type);
-gint64 background_job_priority_comparator (void* a,
- void* b);
-static gint64 _background_job_priority_comparator_comparator (void* a,
- void* b,
- gpointer self);
-SortedList* sorted_list_new (GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-SortedList* sorted_list_construct (GType object_type,
- GType g_type,
- GBoxedCopyFunc g_dup_func,
- GDestroyNotify g_destroy_func,
- Comparator cmp,
- void* cmp_target);
-gpointer background_job_ref (gpointer instance);
-void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_background_job (GValue* value,
- gpointer v_object);
-void value_take_background_job (GValue* value,
- gpointer v_object);
-gpointer value_get_background_job (const GValue* value);
-GType background_job_get_type (void) G_GNUC_CONST;
-gpointer workers_ref (gpointer instance);
-void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_workers (GValue* value,
- gpointer v_object);
-void value_take_workers (GValue* value,
- gpointer v_object);
-gpointer value_get_workers (const GValue* value);
-GType workers_get_type (void) G_GNUC_CONST;
-gpointer abstract_semaphore_ref (gpointer instance);
-void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value,
- gpointer v_object);
-void value_take_abstract_semaphore (GValue* value,
- gpointer v_object);
-gpointer value_get_abstract_semaphore (const GValue* value);
-GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-GType event_semaphore_get_type (void) G_GNUC_CONST;
-#define WORKERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_WORKERS, WorkersPrivate))
-static void _background_job_unref0_ (gpointer var);
-EventSemaphore* event_semaphore_new (void);
-EventSemaphore* event_semaphore_construct (GType object_type);
-#define WORKERS_UNLIMITED_THREADS -1
-Workers* workers_new (guint max_threads,
- gboolean exclusive);
-Workers* workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive);
-void abstract_semaphore_notify (AbstractSemaphore* self);
-static void workers_thread_start (Workers* self,
- void* ignored);
-static void _workers_thread_start_gfunc (gpointer data,
- gpointer self);
-guint workers_threads_per_cpu (gint per,
- gint max);
-guint workers_thread_per_cpu_minus_one (void);
-void workers_enqueue (Workers* self,
- BackgroundJob* job);
-gboolean abstract_semaphore_reset (AbstractSemaphore* self);
-gint background_job_priority_compare_func (BackgroundJob* a,
- BackgroundJob* b);
-static gint _background_job_priority_compare_func_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self);
-void workers_enqueue_many (Workers* self,
- BackgroundJobBatch* batch);
-void workers_wait_for_empty_queue (Workers* self);
-void abstract_semaphore_wait (AbstractSemaphore* self);
-gint workers_get_pending_job_count (Workers* self);
-gboolean background_job_is_cancelled (BackgroundJob* self);
-void background_job_execute (BackgroundJob* self);
-void background_job_internal_notify_completion (BackgroundJob* self);
-static void workers_finalize (Workers * obj);
-
-
-static gint64
-_background_job_priority_comparator_comparator (void* a,
- void* b,
- gpointer self)
-{
- gint64 result;
- result = background_job_priority_comparator (a, b);
-#line 10 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return result;
-#line 249 "Workers.c"
-}
-
-
-BackgroundJobBatch*
-background_job_batch_construct (GType object_type)
-{
- BackgroundJobBatch * self = NULL;
-#line 10 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self = (BackgroundJobBatch*) sorted_list_construct (object_type, TYPE_BACKGROUND_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, _background_job_priority_comparator_comparator, NULL);
-#line 9 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return self;
-#line 261 "Workers.c"
-}
-
-
-BackgroundJobBatch*
-background_job_batch_new (void)
-{
-#line 9 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return background_job_batch_construct (TYPE_BACKGROUND_JOB_BATCH);
-#line 270 "Workers.c"
-}
-
-
-static void
-background_job_batch_class_init (BackgroundJobBatchClass * klass)
-{
-#line 8 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- background_job_batch_parent_class = g_type_class_peek_parent (klass);
-#line 279 "Workers.c"
-}
-
-
-static void
-background_job_batch_instance_init (BackgroundJobBatch * self)
-{
-}
-
-
-GType
-background_job_batch_get_type (void)
-{
- static volatile gsize background_job_batch_type_id__volatile = 0;
- if (g_once_init_enter (&background_job_batch_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (BackgroundJobBatchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_job_batch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundJobBatch), 0, (GInstanceInitFunc) background_job_batch_instance_init, NULL };
- GType background_job_batch_type_id;
- background_job_batch_type_id = g_type_register_static (TYPE_SORTED_LIST, "BackgroundJobBatch", &g_define_type_info, 0);
- g_once_init_leave (&background_job_batch_type_id__volatile, background_job_batch_type_id);
- }
- return background_job_batch_type_id__volatile;
-}
-
-
-static void
-_background_job_unref0_ (gpointer var)
-{
-#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- (var == NULL) ? NULL : (var = (background_job_unref (var), NULL));
-#line 308 "Workers.c"
-}
-
-
-static void
-_workers_thread_start_gfunc (gpointer data,
- gpointer self)
-{
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- workers_thread_start ((Workers*) self, data);
-#line 318 "Workers.c"
-}
-
-
-Workers*
-workers_construct (GType object_type,
- guint max_threads,
- gboolean exclusive)
-{
- Workers* self = NULL;
- gboolean _tmp0_ = FALSE;
- EventSemaphore* _tmp1_;
- GError * _inner_error_ = NULL;
-#line 23 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self = (Workers*) g_type_create_instance (object_type);
-#line 24 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (max_threads <= ((guint) 0)) {
-#line 24 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = max_threads != ((guint) WORKERS_UNLIMITED_THREADS);
-#line 337 "Workers.c"
- } else {
-#line 24 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = FALSE;
-#line 341 "Workers.c"
- }
-#line 24 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (_tmp0_) {
-#line 25 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- max_threads = (guint) 1;
-#line 347 "Workers.c"
- }
-#line 28 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp1_ = self->priv->empty_event;
-#line 28 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- abstract_semaphore_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 353 "Workers.c"
- {
- GThreadPool* _tmp2_ = NULL;
- GThreadPool* _tmp3_;
- GThreadPool* _tmp4_;
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp3_ = g_thread_pool_new (_workers_thread_start_gfunc, self, (gint) max_threads, exclusive, &_inner_error_);
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp2_ = _tmp3_;
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (_inner_error_->domain == G_THREAD_ERROR) {
-#line 366 "Workers.c"
- 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);
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_clear_error (&_inner_error_);
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return NULL;
-#line 375 "Workers.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp4_ = _tmp2_;
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp2_ = NULL;
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _g_thread_pool_free0 (self->priv->thread_pool);
-#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self->priv->thread_pool = _tmp4_;
-#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _g_thread_pool_free0 (_tmp2_);
-#line 387 "Workers.c"
- }
- goto __finally8;
- __catch8_g_thread_error:
- {
- GError* err = NULL;
- const gchar* _tmp5_;
-#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- err = _inner_error_;
-#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _inner_error_ = NULL;
-#line 33 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp5_ = err->message;
-#line 33 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_error ("Workers.vala:33: Unable to create thread pool: %s", _tmp5_);
-#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _g_error_free0 (err);
-#line 404 "Workers.c"
- }
- __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"
- 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 30 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_clear_error (&_inner_error_);
-#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return NULL;
-#line 415 "Workers.c"
- }
-#line 23 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return self;
-#line 419 "Workers.c"
-}
-
-
-Workers*
-workers_new (guint max_threads,
- gboolean exclusive)
-{
-#line 23 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return workers_construct (TYPE_WORKERS, max_threads, exclusive);
-#line 429 "Workers.c"
-}
-
-
-guint
-workers_threads_per_cpu (gint per,
- gint max)
-{
- guint result = 0U;
- guint count = 0U;
- guint _tmp0_ = 0U;
- guint _tmp3_;
- guint _tmp4_;
-#line 37 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _vala_return_val_if_fail (per > 0, "per > 0", 0U);
-#line 38 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- count = g_get_num_processors () * per;
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (max < 0) {
-#line 448 "Workers.c"
- guint _tmp1_;
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp1_ = count;
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = _tmp1_;
-#line 454 "Workers.c"
- } else {
- guint _tmp2_;
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp2_ = count;
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = CLAMP (_tmp2_, (guint) 0, (guint) max);
-#line 461 "Workers.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- result = _tmp0_;
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp3_ = result;
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _vala_warn_if_fail (_tmp3_ > ((guint) 0), "result > 0");
-#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return result;
-#line 471 "Workers.c"
-}
-
-
-guint
-workers_thread_per_cpu_minus_one (void)
-{
- guint result = 0U;
- guint _tmp0_;
- guint _tmp1_;
-#line 46 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- result = CLAMP (g_get_num_processors () - 1, (guint) 1, (guint) G_MAXINT);
-#line 46 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = result;
-#line 46 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _vala_warn_if_fail (_tmp0_ > ((guint) 0), "result > 0");
-#line 46 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return result;
-#line 489 "Workers.c"
-}
-
-
-static gpointer
-_background_job_ref0 (gpointer self)
-{
-#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return self ? background_job_ref (self) : NULL;
-#line 498 "Workers.c"
-}
-
-
-static gint
-_background_job_priority_compare_func_gcompare_data_func (gconstpointer a,
- gconstpointer b,
- gpointer self)
-{
- gint result;
- result = background_job_priority_compare_func ((BackgroundJob*) a, (BackgroundJob*) b);
-#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return result;
-#line 511 "Workers.c"
-}
-
-
-void
-workers_enqueue (Workers* self,
- BackgroundJob* job)
-{
- EventSemaphore* _tmp0_;
- GError * _inner_error_ = NULL;
-#line 51 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (IS_WORKERS (self));
-#line 51 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (IS_BACKGROUND_JOB (job));
-#line 52 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = self->priv->empty_event;
-#line 52 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- abstract_semaphore_reset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 529 "Workers.c"
- {
- GAsyncQueue* _tmp1_;
-#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp1_ = self->priv->queue;
-#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_lock (&self->priv->__lock_queue);
-#line 536 "Workers.c"
- {
- GAsyncQueue* _tmp2_;
- BackgroundJob* _tmp3_;
- gint _tmp4_;
-#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp2_ = self->priv->queue;
-#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp3_ = _background_job_ref0 (job);
-#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_async_queue_push_sorted (_tmp2_, _tmp3_, _background_job_priority_compare_func_gcompare_data_func, NULL);
-#line 56 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp4_ = self->priv->enqueued;
-#line 56 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self->priv->enqueued = _tmp4_ + 1;
-#line 551 "Workers.c"
- }
- __finally9:
- {
- GAsyncQueue* _tmp5_;
-#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp5_ = self->priv->queue;
-#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_unlock (&self->priv->__lock_queue);
-#line 560 "Workers.c"
- }
-#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 54 "/home/jens/Source/shotwell/src/threads/Workers.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 54 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_clear_error (&_inner_error_);
-#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return;
-#line 570 "Workers.c"
- }
- }
- {
- GThreadPool* _tmp6_;
-#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp6_ = self->priv->thread_pool;
-#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_thread_pool_push (_tmp6_, job, &_inner_error_);
-#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (_inner_error_->domain == G_THREAD_ERROR) {
-#line 583 "Workers.c"
- 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);
-#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_clear_error (&_inner_error_);
-#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return;
-#line 592 "Workers.c"
- }
- }
- goto __finally10;
- __catch10_g_thread_error:
- {
- GError* err = NULL;
- GError* _tmp7_;
- const gchar* _tmp8_;
-#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- err = _inner_error_;
-#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _inner_error_ = NULL;
-#line 64 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp7_ = err;
-#line 64 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp8_ = _tmp7_->message;
-#line 64 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_warning ("Workers.vala:64: Unable to create worker thread: %s", _tmp8_);
-#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _g_error_free0 (err);
-#line 613 "Workers.c"
- }
- __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"
- 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 59 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_clear_error (&_inner_error_);
-#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return;
-#line 624 "Workers.c"
- }
-}
-
-
-void
-workers_enqueue_many (Workers* self,
- BackgroundJobBatch* batch)
-{
-#line 68 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (IS_WORKERS (self));
-#line 68 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (IS_BACKGROUND_JOB_BATCH (batch));
-#line 637 "Workers.c"
- {
- GeeIterator* _job_it = NULL;
- GeeIterator* _tmp0_;
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (batch, GEE_TYPE_ITERABLE, GeeIterable));
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _job_it = _tmp0_;
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- while (TRUE) {
-#line 647 "Workers.c"
- GeeIterator* _tmp1_;
- BackgroundJob* job = NULL;
- GeeIterator* _tmp2_;
- gpointer _tmp3_;
- BackgroundJob* _tmp4_;
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp1_ = _job_it;
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (!gee_iterator_next (_tmp1_)) {
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- break;
-#line 659 "Workers.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp2_ = _job_it;
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp3_ = gee_iterator_get (_tmp2_);
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- job = (BackgroundJob*) _tmp3_;
-#line 70 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp4_ = job;
-#line 70 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- workers_enqueue (self, _tmp4_);
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _background_job_unref0 (job);
-#line 673 "Workers.c"
- }
-#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _g_object_unref0 (_job_it);
-#line 677 "Workers.c"
- }
-}
-
-
-void
-workers_wait_for_empty_queue (Workers* self)
-{
- EventSemaphore* _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (IS_WORKERS (self));
-#line 74 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = self->priv->empty_event;
-#line 74 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- abstract_semaphore_wait (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 692 "Workers.c"
-}
-
-
-gint
-workers_get_pending_job_count (Workers* self)
-{
- gint result = 0;
- GError * _inner_error_ = NULL;
-#line 78 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_val_if_fail (IS_WORKERS (self), 0);
-#line 703 "Workers.c"
- {
- GAsyncQueue* _tmp0_;
- gint _tmp4_ = 0;
-#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = self->priv->queue;
-#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_lock (&self->priv->__lock_queue);
-#line 711 "Workers.c"
- {
- gint _tmp1_;
-#line 80 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp1_ = self->priv->enqueued;
-#line 80 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- result = _tmp1_;
-#line 718 "Workers.c"
- {
- GAsyncQueue* _tmp2_;
-#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp2_ = self->priv->queue;
-#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_unlock (&self->priv->__lock_queue);
-#line 725 "Workers.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return result;
-#line 729 "Workers.c"
- }
- __finally11:
- {
- GAsyncQueue* _tmp3_;
-#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp3_ = self->priv->queue;
-#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_unlock (&self->priv->__lock_queue);
-#line 738 "Workers.c"
- }
-#line 79 "/home/jens/Source/shotwell/src/threads/Workers.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 79 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_clear_error (&_inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return _tmp4_;
-#line 746 "Workers.c"
- }
-}
-
-
-static void
-workers_thread_start (Workers* self,
- void* ignored)
-{
- BackgroundJob* job = NULL;
- gboolean empty = FALSE;
- GError * _inner_error_ = NULL;
-#line 84 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (IS_WORKERS (self));
-#line 760 "Workers.c"
- {
- GAsyncQueue* _tmp0_;
-#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = self->priv->queue;
-#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_lock (&self->priv->__lock_queue);
-#line 767 "Workers.c"
- {
- GAsyncQueue* _tmp1_;
- gpointer _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
-#line 88 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp1_ = self->priv->queue;
-#line 88 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp2_ = g_async_queue_try_pop (_tmp1_);
-#line 88 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _background_job_unref0 (job);
-#line 88 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- job = (BackgroundJob*) _tmp2_;
-#line 89 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _vala_assert (job != NULL, "job != null");
-#line 91 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp3_ = self->priv->enqueued;
-#line 91 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _vala_assert (_tmp3_ > 0, "enqueued > 0");
-#line 92 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp4_ = self->priv->enqueued;
-#line 92 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self->priv->enqueued = _tmp4_ - 1;
-#line 92 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp5_ = self->priv->enqueued;
-#line 92 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- empty = _tmp5_ == 0;
-#line 796 "Workers.c"
- }
- __finally12:
- {
- GAsyncQueue* _tmp6_;
-#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp6_ = self->priv->queue;
-#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_unlock (&self->priv->__lock_queue);
-#line 805 "Workers.c"
- }
-#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _background_job_unref0 (job);
-#line 87 "/home/jens/Source/shotwell/src/threads/Workers.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 87 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_clear_error (&_inner_error_);
-#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return;
-#line 817 "Workers.c"
- }
- }
-#line 95 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (!background_job_is_cancelled (job)) {
-#line 96 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- background_job_execute (job);
-#line 824 "Workers.c"
- }
-#line 98 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- background_job_internal_notify_completion (job);
-#line 100 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (empty) {
-#line 830 "Workers.c"
- EventSemaphore* _tmp7_;
-#line 101 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp7_ = self->priv->empty_event;
-#line 101 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- abstract_semaphore_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 836 "Workers.c"
- }
-#line 84 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _background_job_unref0 (job);
-#line 840 "Workers.c"
-}
-
-
-static void
-value_workers_init (GValue* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- value->data[0].v_pointer = NULL;
-#line 849 "Workers.c"
-}
-
-
-static void
-value_workers_free_value (GValue* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (value->data[0].v_pointer) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- workers_unref (value->data[0].v_pointer);
-#line 860 "Workers.c"
- }
-}
-
-
-static void
-value_workers_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (src_value->data[0].v_pointer) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- dest_value->data[0].v_pointer = workers_ref (src_value->data[0].v_pointer);
-#line 873 "Workers.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 877 "Workers.c"
- }
-}
-
-
-static gpointer
-value_workers_peek_pointer (const GValue* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return value->data[0].v_pointer;
-#line 887 "Workers.c"
-}
-
-
-static gchar*
-value_workers_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (collect_values[0].v_pointer) {
-#line 899 "Workers.c"
- Workers * object;
- object = collect_values[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 906 "Workers.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.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 910 "Workers.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- value->data[0].v_pointer = workers_ref (object);
-#line 914 "Workers.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- value->data[0].v_pointer = NULL;
-#line 918 "Workers.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return NULL;
-#line 922 "Workers.c"
-}
-
-
-static gchar*
-value_workers_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- Workers ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (!object_p) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 938 "Workers.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (!value->data[0].v_pointer) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- *object_p = NULL;
-#line 944 "Workers.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- *object_p = value->data[0].v_pointer;
-#line 948 "Workers.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- *object_p = workers_ref (value->data[0].v_pointer);
-#line 952 "Workers.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return NULL;
-#line 956 "Workers.c"
-}
-
-
-GParamSpec*
-param_spec_workers (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecWorkers* spec;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_WORKERS), NULL);
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return G_PARAM_SPEC (spec);
-#line 976 "Workers.c"
-}
-
-
-gpointer
-value_get_workers (const GValue* value)
-{
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_WORKERS), NULL);
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return value->data[0].v_pointer;
-#line 987 "Workers.c"
-}
-
-
-void
-value_set_workers (GValue* value,
- gpointer v_object)
-{
- Workers * old;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_WORKERS));
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- old = value->data[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (v_object) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_WORKERS));
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- value->data[0].v_pointer = v_object;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- workers_ref (value->data[0].v_pointer);
-#line 1010 "Workers.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- value->data[0].v_pointer = NULL;
-#line 1014 "Workers.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (old) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- workers_unref (old);
-#line 1020 "Workers.c"
- }
-}
-
-
-void
-value_take_workers (GValue* value,
- gpointer v_object)
-{
- Workers * old;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_WORKERS));
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- old = value->data[0].v_pointer;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (v_object) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_WORKERS));
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- value->data[0].v_pointer = v_object;
-#line 1042 "Workers.c"
- } else {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- value->data[0].v_pointer = NULL;
-#line 1046 "Workers.c"
- }
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (old) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- workers_unref (old);
-#line 1052 "Workers.c"
- }
-}
-
-
-static void
-workers_class_init (WorkersClass * klass)
-{
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- workers_parent_class = g_type_class_peek_parent (klass);
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- ((WorkersClass *) klass)->finalize = workers_finalize;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_type_class_add_private (klass, sizeof (WorkersPrivate));
-#line 1066 "Workers.c"
-}
-
-
-static void
-workers_instance_init (Workers * self)
-{
- GAsyncQueue* _tmp0_;
- EventSemaphore* _tmp1_;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self->priv = WORKERS_GET_PRIVATE (self);
-#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_init (&self->priv->__lock_queue);
-#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp0_ = g_async_queue_new_full (_background_job_unref0_);
-#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self->priv->queue = _tmp0_;
-#line 20 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _tmp1_ = event_semaphore_new ();
-#line 20 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self->priv->empty_event = _tmp1_;
-#line 21 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self->priv->enqueued = 0;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self->ref_count = 1;
-#line 1091 "Workers.c"
-}
-
-
-static void
-workers_finalize (Workers * obj)
-{
- Workers * self;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_WORKERS, Workers);
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_signal_handlers_destroy (self);
-#line 18 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _g_thread_pool_free0 (self->priv->thread_pool);
-#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_rec_mutex_clear (&self->priv->__lock_queue);
-#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _g_async_queue_unref0 (self->priv->queue);
-#line 20 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- _abstract_semaphore_unref0 (self->priv->empty_event);
-#line 1111 "Workers.c"
-}
-
-
-GType
-workers_get_type (void)
-{
- static volatile gsize workers_type_id__volatile = 0;
- if (g_once_init_enter (&workers_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_workers_init, value_workers_free_value, value_workers_copy_value, value_workers_peek_pointer, "p", value_workers_collect_value, "p", value_workers_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (WorkersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) workers_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Workers), 0, (GInstanceInitFunc) workers_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType workers_type_id;
- workers_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Workers", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&workers_type_id__volatile, workers_type_id);
- }
- return workers_type_id__volatile;
-}
-
-
-gpointer
-workers_ref (gpointer instance)
-{
- Workers * self;
- self = instance;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- return instance;
-#line 1140 "Workers.c"
-}
-
-
-void
-workers_unref (gpointer instance)
-{
- Workers * self;
- self = instance;
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- WORKERS_GET_CLASS (self)->finalize (self);
-#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1155 "Workers.c"
- }
-}
-
-
-
diff --git a/src/unit/Unit.c b/src/unit/Unit.c
deleted file mode 100644
index 263bdf9..0000000
--- a/src/unit/Unit.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Unit.c generated by valac 0.40.4, the Vala compiler
- * generated from Unit.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void unit_init (GError** error);
-void unit_terminate (void);
-
-
-void
-unit_init (GError** error)
-{
-}
-
-
-void
-unit_terminate (void)
-{
-}
-
-
-
diff --git a/src/core/Core.c b/src/unit/rc/Unit.m4
index df6c104..2665dd6 100644
--- a/src/core/Core.c
+++ b/src/unit/rc/Unit.m4
@@ -1,12 +1,10 @@
-/* Core.c generated by valac 0.40.4, the Vala compiler
- * generated from Core.vala, do not modify */
-
/* Copyright 2016 Software Freedom Conservancy Inc.
*
* This software is licensed under the GNU Lesser General Public License
* (version 2.1 or later). See the COPYING file in this distribution.
*/
-/* This file is the master unit file for the Core unit. It should be edited to include
+
+/* This file is the master unit file for the _UNIT_NAME_ unit. It should be edited to include
* whatever code is deemed necessary.
*
* The init() and terminate() methods are mandatory.
@@ -15,34 +13,17 @@
* the preconfigure() method, implement it, and ensure in init() that it's been called.
*/
+namespace _UNIT_NAME_ {
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-void core_preconfigure (void);
-void core_init (GError** error);
-void core_terminate (void);
-
-
-void
-core_preconfigure (void)
-{
+// preconfigure may be deleted if not used.
+public void preconfigure() {
}
-
-void
-core_init (GError** error)
-{
+public void init() throws Error {
}
-
-void
-core_terminate (void)
-{
+public void terminate() {
}
-
+}
diff --git a/src/unit/rc/UnitInternals.m4 b/src/unit/rc/UnitInternals.m4
new file mode 100644
index 0000000..71614d4
--- /dev/null
+++ b/src/unit/rc/UnitInternals.m4
@@ -0,0 +1,32 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ *
+ * Auto-generated file. Do not modify!
+ */
+
+namespace _UNIT_NAME_ {
+
+private int _unit_init_count = 0;
+
+public void init_entry() throws Error {
+ if (_unit_init_count++ != 0)
+ return;
+
+ _UNIT_USES_INITS_
+
+ _UNIT_NAME_.init();
+}
+
+public void terminate_entry() {
+ if (_unit_init_count == 0 || --_unit_init_count != 0)
+ return;
+
+ _UNIT_NAME_.terminate();
+
+ _UNIT_USES_TERMINATORS_
+}
+
+}
+
diff --git a/src/UnityProgressBar.c b/src/unit/rc/template.vala
index 609947c..31fc93d 100644
--- a/src/UnityProgressBar.c
+++ b/src/unit/rc/template.vala
@@ -1,6 +1,3 @@
-/* UnityProgressBar.c generated by valac 0.40.4, the Vala compiler
- * generated from UnityProgressBar.vala, do not modify */
-
/* Copyright 2016 Software Freedom Conservancy Inc.
*
* This software is licensed under the GNU Lesser General Public License
@@ -8,12 +5,3 @@
*/
-#include <glib.h>
-#include <glib-object.h>
-
-
-
-
-
-
-
diff --git a/src/unit/rc/unitize_entry.m4 b/src/unit/rc/unitize_entry.m4
new file mode 100644
index 0000000..31602b2
--- /dev/null
+++ b/src/unit/rc/unitize_entry.m4
@@ -0,0 +1,19 @@
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ *
+ * Auto-generated file. Do not modify!
+ */
+
+namespace _APP_UNIT_ {
+
+public void app_init() throws Error {
+ _APP_UNIT_.init_entry();
+}
+
+public void app_terminate() {
+ _APP_UNIT_.terminate_entry();
+}
+
+}
diff --git a/src/util/KeyValueMap.c b/src/util/KeyValueMap.c
deleted file mode 100644
index f1405c4..0000000
--- a/src/util/KeyValueMap.c
+++ /dev/null
@@ -1,1143 +0,0 @@
-/* KeyValueMap.c generated by valac 0.40.4, the Vala compiler
- * generated from KeyValueMap.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <float.h>
-#include <math.h>
-#include <gdk/gdk.h>
-#include <stdio.h>
-#include <gobject/gvaluecollector.h>
-
-
-#define TYPE_KEY_VALUE_MAP (key_value_map_get_type ())
-#define KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY_VALUE_MAP, KeyValueMap))
-#define KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY_VALUE_MAP, KeyValueMapClass))
-#define IS_KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY_VALUE_MAP))
-#define IS_KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY_VALUE_MAP))
-#define KEY_VALUE_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY_VALUE_MAP, KeyValueMapClass))
-
-typedef struct _KeyValueMap KeyValueMap;
-typedef struct _KeyValueMapClass KeyValueMapClass;
-typedef struct _KeyValueMapPrivate KeyValueMapPrivate;
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL)))
-typedef struct _ParamSpecKeyValueMap ParamSpecKeyValueMap;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _KeyValueMap {
- GTypeInstance parent_instance;
- volatile int ref_count;
- KeyValueMapPrivate * priv;
-};
-
-struct _KeyValueMapClass {
- GTypeClass parent_class;
- void (*finalize) (KeyValueMap *self);
-};
-
-struct _KeyValueMapPrivate {
- gchar* group;
- GeeHashMap* map;
-};
-
-struct _ParamSpecKeyValueMap {
- GParamSpec parent_instance;
-};
-
-
-static gpointer key_value_map_parent_class = NULL;
-
-gpointer key_value_map_ref (gpointer instance);
-void key_value_map_unref (gpointer instance);
-GParamSpec* param_spec_key_value_map (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_key_value_map (GValue* value,
- gpointer v_object);
-void value_take_key_value_map (GValue* value,
- gpointer v_object);
-gpointer value_get_key_value_map (const GValue* value);
-GType key_value_map_get_type (void) G_GNUC_CONST;
-#define KEY_VALUE_MAP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_KEY_VALUE_MAP, KeyValueMapPrivate))
-KeyValueMap* key_value_map_new (const gchar* group);
-KeyValueMap* key_value_map_construct (GType object_type,
- const gchar* group);
-KeyValueMap* key_value_map_copy (KeyValueMap* self);
-gchar* key_value_map_get_group (KeyValueMap* self);
-GeeSet* key_value_map_get_keys (KeyValueMap* self);
-gboolean key_value_map_has_key (KeyValueMap* self,
- const gchar* key);
-void key_value_map_set_string (KeyValueMap* self,
- const gchar* key,
- const gchar* value);
-void key_value_map_set_int (KeyValueMap* self,
- const gchar* key,
- gint value);
-void key_value_map_set_double (KeyValueMap* self,
- const gchar* key,
- gdouble value);
-void key_value_map_set_float (KeyValueMap* self,
- const gchar* key,
- gfloat value);
-void key_value_map_set_bool (KeyValueMap* self,
- const gchar* key,
- gboolean value);
-gchar* key_value_map_get_string (KeyValueMap* self,
- const gchar* key,
- const gchar* def);
-gint key_value_map_get_int (KeyValueMap* self,
- const gchar* key,
- gint def);
-gdouble key_value_map_get_double (KeyValueMap* self,
- const gchar* key,
- gdouble def);
-gfloat key_value_map_get_float (KeyValueMap* self,
- const gchar* key,
- gfloat def);
-gboolean key_value_map_get_bool (KeyValueMap* self,
- const gchar* key,
- gboolean def);
-void key_value_map_get_point (KeyValueMap* self,
- const gchar* key,
- GdkPoint* def,
- GdkPoint* result);
-void key_value_map_set_point (KeyValueMap* self,
- const gchar* key,
- GdkPoint* point);
-static void key_value_map_finalize (KeyValueMap * obj);
-
-
-KeyValueMap*
-key_value_map_construct (GType object_type,
- const gchar* group)
-{
- KeyValueMap* self = NULL;
- gchar* _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- self = (KeyValueMap*) g_type_create_instance (object_type);
-#line 12 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = g_strdup (group);
-#line 12 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (self->priv->group);
-#line 12 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- self->priv->group = _tmp0_;
-#line 11 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return self;
-#line 144 "KeyValueMap.c"
-}
-
-
-KeyValueMap*
-key_value_map_new (const gchar* group)
-{
-#line 11 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return key_value_map_construct (TYPE_KEY_VALUE_MAP, group);
-#line 153 "KeyValueMap.c"
-}
-
-
-KeyValueMap*
-key_value_map_copy (KeyValueMap* self)
-{
- KeyValueMap* result = NULL;
- KeyValueMap* clone = NULL;
- const gchar* _tmp0_;
- KeyValueMap* _tmp1_;
-#line 16 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->group;
-#line 16 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = key_value_map_new (_tmp0_);
-#line 16 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- clone = _tmp1_;
-#line 170 "KeyValueMap.c"
- {
- GeeIterator* _key_it = NULL;
- GeeHashMap* _tmp2_;
- GeeSet* _tmp3_;
- GeeSet* _tmp4_;
- GeeSet* _tmp5_;
- GeeIterator* _tmp6_;
- GeeIterator* _tmp7_;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = self->priv->map;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp3_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp4_ = _tmp3_;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp5_ = _tmp4_;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp7_ = _tmp6_;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_object_unref0 (_tmp5_);
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _key_it = _tmp7_;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- while (TRUE) {
-#line 197 "KeyValueMap.c"
- GeeIterator* _tmp8_;
- gchar* key = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- KeyValueMap* _tmp11_;
- GeeHashMap* _tmp12_;
- const gchar* _tmp13_;
- GeeHashMap* _tmp14_;
- const gchar* _tmp15_;
- gpointer _tmp16_;
- gchar* _tmp17_;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp8_ = _key_it;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (!gee_iterator_next (_tmp8_)) {
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- break;
-#line 215 "KeyValueMap.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp9_ = _key_it;
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- key = (gchar*) _tmp10_;
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp11_ = clone;
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp12_ = _tmp11_->priv->map;
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp13_ = key;
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp14_ = self->priv->map;
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp15_ = key;
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_);
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp17_ = (gchar*) _tmp16_;
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp17_);
-#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (_tmp17_);
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (key);
-#line 243 "KeyValueMap.c"
- }
-#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_object_unref0 (_key_it);
-#line 247 "KeyValueMap.c"
- }
-#line 20 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = clone;
-#line 20 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 253 "KeyValueMap.c"
-}
-
-
-gchar*
-key_value_map_get_group (KeyValueMap* self)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 24 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->group;
-#line 24 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 24 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = _tmp1_;
-#line 24 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 271 "KeyValueMap.c"
-}
-
-
-GeeSet*
-key_value_map_get_keys (KeyValueMap* self)
-{
- GeeSet* result = NULL;
- GeeHashMap* _tmp0_;
- GeeSet* _tmp1_;
- GeeSet* _tmp2_;
-#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = _tmp1_;
-#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = _tmp2_;
-#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 292 "KeyValueMap.c"
-}
-
-
-gboolean
-key_value_map_has_key (KeyValueMap* self,
- const gchar* key)
-{
- gboolean result = FALSE;
- GeeHashMap* _tmp0_;
-#line 32 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 32 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key);
-#line 32 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 308 "KeyValueMap.c"
-}
-
-
-void
-key_value_map_set_string (KeyValueMap* self,
- const gchar* key,
- const gchar* value)
-{
- GeeHashMap* _tmp0_;
-#line 36 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _vala_assert (key != NULL, "key != null");
-#line 38 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 38 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, value);
-#line 324 "KeyValueMap.c"
-}
-
-
-void
-key_value_map_set_int (KeyValueMap* self,
- const gchar* key,
- gint value)
-{
- GeeHashMap* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 42 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _vala_assert (key != NULL, "key != null");
-#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = g_strdup_printf ("%i", value);
-#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = _tmp1_;
-#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp2_);
-#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (_tmp2_);
-#line 348 "KeyValueMap.c"
-}
-
-
-static gchar*
-double_to_string (gdouble self)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gint _tmp1__length1;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _tmp0_;
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1__length1 = G_ASCII_DTOSTR_BUF_SIZE;
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = g_ascii_dtostr (_tmp1_, G_ASCII_DTOSTR_BUF_SIZE, self);
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_strdup (_tmp2_);
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = (g_free (_tmp1_), NULL);
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp4_;
-#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 380 "KeyValueMap.c"
-}
-
-
-void
-key_value_map_set_double (KeyValueMap* self,
- const gchar* key,
- gdouble value)
-{
- GeeHashMap* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 48 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _vala_assert (key != NULL, "key != null");
-#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = double_to_string (value);
-#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = _tmp1_;
-#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp2_);
-#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (_tmp2_);
-#line 404 "KeyValueMap.c"
-}
-
-
-void
-key_value_map_set_float (KeyValueMap* self,
- const gchar* key,
- gfloat value)
-{
- GeeHashMap* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 54 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _vala_assert (key != NULL, "key != null");
-#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = g_strdup_printf ("%g", value);
-#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp2_);
-#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (_tmp2_);
-#line 428 "KeyValueMap.c"
-}
-
-
-static gchar*
-bool_to_string (gboolean self)
-{
- gchar* result = NULL;
-#line 37 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (self) {
-#line 438 "KeyValueMap.c"
- gchar* _tmp0_;
-#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup ("true");
-#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 446 "KeyValueMap.c"
- } else {
- gchar* _tmp1_;
-#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = g_strdup ("false");
-#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp1_;
-#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 455 "KeyValueMap.c"
- }
-}
-
-
-void
-key_value_map_set_bool (KeyValueMap* self,
- const gchar* key,
- gboolean value)
-{
- GeeHashMap* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
-#line 60 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _vala_assert (key != NULL, "key != null");
-#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = bool_to_string (value);
-#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = _tmp1_;
-#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp2_);
-#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (_tmp2_);
-#line 480 "KeyValueMap.c"
-}
-
-
-gchar*
-key_value_map_get_string (KeyValueMap* self,
- const gchar* key,
- const gchar* def)
-{
- gchar* result = NULL;
- gchar* value = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- const gchar* _tmp2_ = NULL;
- const gchar* _tmp3_;
- gchar* _tmp5_;
-#line 66 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 66 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key);
-#line 66 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value = (gchar*) _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp3_ = value;
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (_tmp3_ != NULL) {
-#line 506 "KeyValueMap.c"
- const gchar* _tmp4_;
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp4_ = value;
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = _tmp4_;
-#line 512 "KeyValueMap.c"
- } else {
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = def;
-#line 516 "KeyValueMap.c"
- }
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp5_ = g_strdup (_tmp2_);
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = _tmp5_;
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 526 "KeyValueMap.c"
-}
-
-
-gint
-key_value_map_get_int (KeyValueMap* self,
- const gchar* key,
- gint def)
-{
- gint result = 0;
- gchar* value = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gint _tmp2_ = 0;
- const gchar* _tmp3_;
-#line 72 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 72 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key);
-#line 72 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value = (gchar*) _tmp1_;
-#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp3_ = value;
-#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (_tmp3_ != NULL) {
-#line 551 "KeyValueMap.c"
- const gchar* _tmp4_;
-#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp4_ = value;
-#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = atoi (_tmp4_);
-#line 557 "KeyValueMap.c"
- } else {
-#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = def;
-#line 561 "KeyValueMap.c"
- }
-#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = _tmp2_;
-#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 569 "KeyValueMap.c"
-}
-
-
-static gdouble
-double_parse (const gchar* str)
-{
- gdouble result = 0.0;
- gdouble _tmp0_;
-#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_ascii_strtod (str, NULL);
-#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 584 "KeyValueMap.c"
-}
-
-
-gdouble
-key_value_map_get_double (KeyValueMap* self,
- const gchar* key,
- gdouble def)
-{
- gdouble result = 0.0;
- gchar* value = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gdouble _tmp2_ = 0.0;
- const gchar* _tmp3_;
-#line 78 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 78 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key);
-#line 78 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value = (gchar*) _tmp1_;
-#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp3_ = value;
-#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (_tmp3_ != NULL) {
-#line 609 "KeyValueMap.c"
- const gchar* _tmp4_;
-#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp4_ = value;
-#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = double_parse (_tmp4_);
-#line 615 "KeyValueMap.c"
- } else {
-#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = def;
-#line 619 "KeyValueMap.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = _tmp2_;
-#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 627 "KeyValueMap.c"
-}
-
-
-gfloat
-key_value_map_get_float (KeyValueMap* self,
- const gchar* key,
- gfloat def)
-{
- gfloat result = 0.0F;
- gchar* value = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gfloat _tmp2_ = 0.0F;
- const gchar* _tmp3_;
-#line 84 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 84 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key);
-#line 84 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value = (gchar*) _tmp1_;
-#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp3_ = value;
-#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (_tmp3_ != NULL) {
-#line 652 "KeyValueMap.c"
- const gchar* _tmp4_;
-#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp4_ = value;
-#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = (gfloat) double_parse (_tmp4_);
-#line 658 "KeyValueMap.c"
- } else {
-#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = def;
-#line 662 "KeyValueMap.c"
- }
-#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = _tmp2_;
-#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 670 "KeyValueMap.c"
-}
-
-
-static gboolean
-bool_parse (const gchar* str)
-{
- gboolean result = FALSE;
-#line 45 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (g_strcmp0 (str, "true") == 0) {
-#line 46 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = TRUE;
-#line 46 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 684 "KeyValueMap.c"
- } else {
-#line 48 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = FALSE;
-#line 48 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 690 "KeyValueMap.c"
- }
-}
-
-
-gboolean
-key_value_map_get_bool (KeyValueMap* self,
- const gchar* key,
- gboolean def)
-{
- gboolean result = FALSE;
- gchar* value = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- gboolean _tmp2_ = FALSE;
- const gchar* _tmp3_;
-#line 90 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 90 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key);
-#line 90 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value = (gchar*) _tmp1_;
-#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp3_ = value;
-#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (_tmp3_ != NULL) {
-#line 716 "KeyValueMap.c"
- const gchar* _tmp4_;
-#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp4_ = value;
-#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = bool_parse (_tmp4_);
-#line 722 "KeyValueMap.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = def;
-#line 726 "KeyValueMap.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- result = _tmp2_;
-#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return result;
-#line 734 "KeyValueMap.c"
-}
-
-
-void
-key_value_map_get_point (KeyValueMap* self,
- const gchar* key,
- GdkPoint* def,
- GdkPoint* result)
-{
- gchar* value = NULL;
- GeeHashMap* _tmp0_;
- gpointer _tmp1_;
- const gchar* _tmp2_;
-#line 101 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 101 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key);
-#line 101 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value = (gchar*) _tmp1_;
-#line 103 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = value;
-#line 103 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (_tmp2_ == NULL) {
-#line 758 "KeyValueMap.c"
- GdkPoint _tmp3_;
-#line 104 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp3_ = *def;
-#line 104 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- *result = _tmp3_;
-#line 104 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 104 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return;
-#line 768 "KeyValueMap.c"
- } else {
- GdkPoint _result_ = {0};
- GdkPoint _tmp4_ = {0};
- const gchar* _tmp5_;
-#line 106 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp4_.x = 0;
-#line 106 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _result_ = _tmp4_;
-#line 107 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp5_ = value;
-#line 107 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (sscanf (_tmp5_, "(%d, %d)", &_result_.x, &_result_.y) == 2) {
-#line 108 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- *result = _result_;
-#line 108 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 108 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return;
-#line 787 "KeyValueMap.c"
- } else {
- GdkPoint _tmp6_;
-#line 110 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp6_ = *def;
-#line 110 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- *result = _tmp6_;
-#line 110 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 110 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return;
-#line 798 "KeyValueMap.c"
- }
- }
-#line 100 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (value);
-#line 803 "KeyValueMap.c"
-}
-
-
-void
-key_value_map_set_point (KeyValueMap* self,
- const gchar* key,
- GdkPoint* point)
-{
- GeeHashMap* _tmp0_;
- GdkPoint _tmp1_;
- gint _tmp2_;
- GdkPoint _tmp3_;
- gint _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = self->priv->map;
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp1_ = *point;
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp2_ = _tmp1_.x;
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp3_ = *point;
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp4_ = _tmp3_.y;
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp5_ = g_strdup_printf ("(%d, %d)", _tmp2_, _tmp4_);
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp6_ = _tmp5_;
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp6_);
-#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (_tmp6_);
-#line 837 "KeyValueMap.c"
-}
-
-
-static void
-value_key_value_map_init (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value->data[0].v_pointer = NULL;
-#line 846 "KeyValueMap.c"
-}
-
-
-static void
-value_key_value_map_free_value (GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- key_value_map_unref (value->data[0].v_pointer);
-#line 857 "KeyValueMap.c"
- }
-}
-
-
-static void
-value_key_value_map_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (src_value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- dest_value->data[0].v_pointer = key_value_map_ref (src_value->data[0].v_pointer);
-#line 870 "KeyValueMap.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 874 "KeyValueMap.c"
- }
-}
-
-
-static gpointer
-value_key_value_map_peek_pointer (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return value->data[0].v_pointer;
-#line 884 "KeyValueMap.c"
-}
-
-
-static gchar*
-value_key_value_map_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (collect_values[0].v_pointer) {
-#line 896 "KeyValueMap.c"
- KeyValueMap * object;
- object = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 903 "KeyValueMap.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.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 907 "KeyValueMap.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value->data[0].v_pointer = key_value_map_ref (object);
-#line 911 "KeyValueMap.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value->data[0].v_pointer = NULL;
-#line 915 "KeyValueMap.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return NULL;
-#line 919 "KeyValueMap.c"
-}
-
-
-static gchar*
-value_key_value_map_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- KeyValueMap ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (!object_p) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 935 "KeyValueMap.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (!value->data[0].v_pointer) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- *object_p = NULL;
-#line 941 "KeyValueMap.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- *object_p = value->data[0].v_pointer;
-#line 945 "KeyValueMap.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- *object_p = key_value_map_ref (value->data[0].v_pointer);
-#line 949 "KeyValueMap.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return NULL;
-#line 953 "KeyValueMap.c"
-}
-
-
-GParamSpec*
-param_spec_key_value_map (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecKeyValueMap* spec;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_KEY_VALUE_MAP), NULL);
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return G_PARAM_SPEC (spec);
-#line 973 "KeyValueMap.c"
-}
-
-
-gpointer
-value_get_key_value_map (const GValue* value)
-{
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEY_VALUE_MAP), NULL);
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return value->data[0].v_pointer;
-#line 984 "KeyValueMap.c"
-}
-
-
-void
-value_set_key_value_map (GValue* value,
- gpointer v_object)
-{
- KeyValueMap * old;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEY_VALUE_MAP));
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_KEY_VALUE_MAP));
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- 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/util/KeyValueMap.vala"
- value->data[0].v_pointer = v_object;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- key_value_map_ref (value->data[0].v_pointer);
-#line 1007 "KeyValueMap.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value->data[0].v_pointer = NULL;
-#line 1011 "KeyValueMap.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- key_value_map_unref (old);
-#line 1017 "KeyValueMap.c"
- }
-}
-
-
-void
-value_take_key_value_map (GValue* value,
- gpointer v_object)
-{
- KeyValueMap * old;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEY_VALUE_MAP));
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- old = value->data[0].v_pointer;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (v_object) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_KEY_VALUE_MAP));
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- 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/util/KeyValueMap.vala"
- value->data[0].v_pointer = v_object;
-#line 1039 "KeyValueMap.c"
- } else {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- value->data[0].v_pointer = NULL;
-#line 1043 "KeyValueMap.c"
- }
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (old) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- key_value_map_unref (old);
-#line 1049 "KeyValueMap.c"
- }
-}
-
-
-static void
-key_value_map_class_init (KeyValueMapClass * klass)
-{
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- key_value_map_parent_class = g_type_class_peek_parent (klass);
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- ((KeyValueMapClass *) klass)->finalize = key_value_map_finalize;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_type_class_add_private (klass, sizeof (KeyValueMapPrivate));
-#line 1063 "KeyValueMap.c"
-}
-
-
-static void
-key_value_map_instance_init (KeyValueMap * self)
-{
- GeeHashMap* _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- self->priv = KEY_VALUE_MAP_GET_PRIVATE (self);
-#line 9 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 9 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- self->priv->map = _tmp0_;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- self->ref_count = 1;
-#line 1079 "KeyValueMap.c"
-}
-
-
-static void
-key_value_map_finalize (KeyValueMap * obj)
-{
- KeyValueMap * self;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_KEY_VALUE_MAP, KeyValueMap);
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_signal_handlers_destroy (self);
-#line 8 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_free0 (self->priv->group);
-#line 9 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- _g_object_unref0 (self->priv->map);
-#line 1095 "KeyValueMap.c"
-}
-
-
-GType
-key_value_map_get_type (void)
-{
- static volatile gsize key_value_map_type_id__volatile = 0;
- if (g_once_init_enter (&key_value_map_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_key_value_map_init, value_key_value_map_free_value, value_key_value_map_copy_value, value_key_value_map_peek_pointer, "p", value_key_value_map_collect_value, "p", value_key_value_map_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (KeyValueMapClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) key_value_map_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (KeyValueMap), 0, (GInstanceInitFunc) key_value_map_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType key_value_map_type_id;
- key_value_map_type_id = g_type_register_fundamental (g_type_fundamental_next (), "KeyValueMap", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&key_value_map_type_id__volatile, key_value_map_type_id);
- }
- return key_value_map_type_id__volatile;
-}
-
-
-gpointer
-key_value_map_ref (gpointer instance)
-{
- KeyValueMap * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- return instance;
-#line 1124 "KeyValueMap.c"
-}
-
-
-void
-key_value_map_unref (gpointer instance)
-{
- KeyValueMap * self;
- self = instance;
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- KEY_VALUE_MAP_GET_CLASS (self)->finalize (self);
-#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 1139 "KeyValueMap.c"
- }
-}
-
-
-
diff --git a/src/util/Util.c b/src/util/Util.c
deleted file mode 100644
index 3a44398..0000000
--- a/src/util/Util.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Util.c generated by valac 0.40.4, the Vala compiler
- * generated from Util.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-
-
-#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value"
-void util_init (GError** error);
-void util_terminate (void);
-
-
-void
-util_init (GError** error)
-{
-}
-
-
-void
-util_terminate (void)
-{
-}
-
-
-
diff --git a/src/util/file.c b/src/util/file.c
deleted file mode 100644
index ccb75a9..0000000
--- a/src/util/file.c
+++ /dev/null
@@ -1,1733 +0,0 @@
-/* file.c generated by valac 0.40.4, the Vala compiler
- * generated from file.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-/* Returns true if the file is claimed, false if it exists, and throws an Error otherwise. The file*/
-/* will be created when the function exits and should be overwritten. Note that the file is not*/
-/* held open; claiming a file is merely based on its existence.*/
-/**/
-/* This function is thread-safe.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <time.h>
-
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
-
-
-gboolean claim_file (GFile* file,
- GError** error);
-GFile* generate_unique_file (GFile* dir,
- const gchar* basename,
- gboolean* collision,
- GError** error);
-void disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext);
-glong find_last_offset (const gchar* str,
- gchar c);
-guint64 query_total_file_size (GFile* file_or_dir,
- GCancellable* cancellable,
- GError** error);
-void delete_all_files (GFile* dir,
- GeeSet* exceptions,
- ProgressMonitor monitor,
- void* monitor_target,
- guint64 file_count,
- GCancellable* cancellable,
- GError** error);
-time_t query_file_modified (GFile* file,
- GError** error);
-gboolean query_is_directory (GFile* file);
-gboolean query_is_directory_empty (GFile* dir,
- GError** error);
-gchar* get_display_pathname (GFile* file);
-gchar* strip_pretty_path (const gchar* path);
-gchar* get_file_info_id (GFileInfo* info);
-void skip_uint64 (GInputStream* input,
- guint64 skip_amount,
- GError** error);
-guint64 count_files_in_directory (GFile* dir,
- GError** error);
-gboolean file_equal (GFile* a,
- GFile* b);
-guint file_hash (GFile* file);
-
-
-static gpointer
-_g_error_copy0 (gpointer self)
-{
-#line 23 "/home/jens/Source/shotwell/src/util/file.vala"
- return self ? g_error_copy (self) : NULL;
-#line 76 "file.c"
-}
-
-
-gboolean
-claim_file (GFile* file,
- GError** error)
-{
- gboolean result = FALSE;
- gboolean _tmp9_ = FALSE;
- GError * _inner_error_ = NULL;
-#line 12 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 89 "file.c"
- {
- GFileOutputStream* _tmp0_;
- GFileOutputStream* _tmp1_;
-#line 14 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_create (file, G_FILE_CREATE_NONE, NULL, &_inner_error_);
-#line 14 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = _tmp0_;
-#line 14 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp1_);
-#line 14 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 101 "file.c"
- goto __catch0_g_error;
- }
-#line 17 "/home/jens/Source/shotwell/src/util/file.vala"
- result = TRUE;
-#line 17 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 108 "file.c"
- }
- goto __finally0;
- __catch0_g_error:
- {
- GError* err = NULL;
- GError* _tmp2_;
-#line 13 "/home/jens/Source/shotwell/src/util/file.vala"
- err = _inner_error_;
-#line 13 "/home/jens/Source/shotwell/src/util/file.vala"
- _inner_error_ = NULL;
-#line 20 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = err;
-#line 20 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!g_error_matches (_tmp2_, G_IO_ERROR, G_IO_ERROR_EXISTS)) {
-#line 123 "file.c"
- gchar* _tmp3_;
- gchar* _tmp4_;
- GError* _tmp5_;
- const gchar* _tmp6_;
- GError* _tmp7_;
- GError* _tmp8_;
-#line 21 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = g_file_get_path (file);
-#line 21 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp4_ = _tmp3_;
-#line 21 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = err;
-#line 21 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp6_ = _tmp5_->message;
-#line 21 "/home/jens/Source/shotwell/src/util/file.vala"
- g_warning ("file.vala:21: claim_file %s: %s", _tmp4_, _tmp6_);
-#line 21 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp4_);
-#line 23 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp7_ = err;
-#line 23 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp8_ = _g_error_copy0 (_tmp7_);
-#line 23 "/home/jens/Source/shotwell/src/util/file.vala"
- _inner_error_ = _tmp8_;
-#line 23 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_error_free0 (err);
-#line 150 "file.c"
- goto __finally0;
- }
-#line 26 "/home/jens/Source/shotwell/src/util/file.vala"
- result = FALSE;
-#line 26 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_error_free0 (err);
-#line 26 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 159 "file.c"
- }
- __finally0:
-#line 13 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 13 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp9_;
-#line 166 "file.c"
-}
-
-
-GFile*
-generate_unique_file (GFile* dir,
- const gchar* basename,
- gboolean* collision,
- GError** error)
-{
- gboolean _vala_collision = FALSE;
- GFile* result = NULL;
- GFile* file = NULL;
- GFile* _tmp0_;
- gboolean _tmp1_ = FALSE;
- GFile* _tmp2_;
- gchar* name = NULL;
- gchar* ext = NULL;
- gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GError * _inner_error_ = NULL;
-#line 36 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE (dir), NULL);
-#line 36 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (basename != NULL, NULL);
-#line 38 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_get_child (dir, basename);
-#line 38 "/home/jens/Source/shotwell/src/util/file.vala"
- file = _tmp0_;
-#line 39 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = file;
-#line 39 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = claim_file (_tmp2_, &_inner_error_);
-#line 39 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 39 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 39 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (file);
-#line 39 "/home/jens/Source/shotwell/src/util/file.vala"
- return NULL;
-#line 209 "file.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp1_) {
-#line 40 "/home/jens/Source/shotwell/src/util/file.vala"
- _vala_collision = FALSE;
-#line 42 "/home/jens/Source/shotwell/src/util/file.vala"
- result = file;
-#line 42 "/home/jens/Source/shotwell/src/util/file.vala"
- if (collision) {
-#line 42 "/home/jens/Source/shotwell/src/util/file.vala"
- *collision = _vala_collision;
-#line 221 "file.c"
- }
-#line 42 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 225 "file.c"
- }
-#line 46 "/home/jens/Source/shotwell/src/util/file.vala"
- _vala_collision = TRUE;
-#line 49 "/home/jens/Source/shotwell/src/util/file.vala"
- disassemble_filename (basename, &_tmp3_, &_tmp4_);
-#line 49 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (name);
-#line 49 "/home/jens/Source/shotwell/src/util/file.vala"
- name = _tmp3_;
-#line 49 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (ext);
-#line 49 "/home/jens/Source/shotwell/src/util/file.vala"
- ext = _tmp4_;
-#line 239 "file.c"
- {
- gint ctr = 0;
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- ctr = 1;
-#line 244 "file.c"
- {
- gboolean _tmp5_ = FALSE;
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = TRUE;
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- while (TRUE) {
-#line 251 "file.c"
- gint _tmp7_;
- gchar* _tmp8_ = NULL;
- const gchar* _tmp9_;
- gchar* new_name = NULL;
- gchar* _tmp17_;
- const gchar* _tmp18_;
- GFile* _tmp19_;
- gboolean _tmp20_ = FALSE;
- GFile* _tmp21_;
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!_tmp5_) {
-#line 263 "file.c"
- gint _tmp6_;
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp6_ = ctr;
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- ctr = _tmp6_ + 1;
-#line 269 "file.c"
- }
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = FALSE;
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp7_ = ctr;
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!(_tmp7_ < G_MAXINT)) {
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- break;
-#line 279 "file.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp9_ = ext;
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp9_ != NULL) {
-#line 285 "file.c"
- const gchar* _tmp10_;
- gint _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp10_ = name;
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp11_ = ctr;
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp12_ = ext;
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp13_ = g_strdup_printf ("%s_%d.%s", _tmp10_, _tmp11_, _tmp12_);
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp8_);
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp8_ = _tmp13_;
-#line 302 "file.c"
- } else {
- const gchar* _tmp14_;
- gint _tmp15_;
- gchar* _tmp16_;
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp14_ = name;
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp15_ = ctr;
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp16_ = g_strdup_printf ("%s_%d", _tmp14_, _tmp15_);
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp8_);
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp8_ = _tmp16_;
-#line 317 "file.c"
- }
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp17_ = g_strdup (_tmp8_);
-#line 53 "/home/jens/Source/shotwell/src/util/file.vala"
- new_name = _tmp17_;
-#line 55 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp18_ = new_name;
-#line 55 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp19_ = g_file_get_child (dir, _tmp18_);
-#line 55 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (file);
-#line 55 "/home/jens/Source/shotwell/src/util/file.vala"
- file = _tmp19_;
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp21_ = file;
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp20_ = claim_file (_tmp21_, &_inner_error_);
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (new_name);
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp8_);
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (ext);
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (name);
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (file);
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- return NULL;
-#line 351 "file.c"
- }
-#line 56 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp20_) {
-#line 57 "/home/jens/Source/shotwell/src/util/file.vala"
- result = file;
-#line 57 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (new_name);
-#line 57 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp8_);
-#line 57 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (ext);
-#line 57 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (name);
-#line 57 "/home/jens/Source/shotwell/src/util/file.vala"
- if (collision) {
-#line 57 "/home/jens/Source/shotwell/src/util/file.vala"
- *collision = _vala_collision;
-#line 369 "file.c"
- }
-#line 57 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 373 "file.c"
- }
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (new_name);
-#line 52 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp8_);
-#line 379 "file.c"
- }
- }
- }
-#line 60 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp22_ = g_file_get_path (dir);
-#line 60 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp23_ = _tmp22_;
-#line 60 "/home/jens/Source/shotwell/src/util/file.vala"
- g_warning ("file.vala:60: generate_unique_filename %s for %s: unable to claim file", _tmp23_, basename);
-#line 60 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp23_);
-#line 62 "/home/jens/Source/shotwell/src/util/file.vala"
- result = NULL;
-#line 62 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (ext);
-#line 62 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (name);
-#line 62 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (file);
-#line 62 "/home/jens/Source/shotwell/src/util/file.vala"
- if (collision) {
-#line 62 "/home/jens/Source/shotwell/src/util/file.vala"
- *collision = _vala_collision;
-#line 403 "file.c"
- }
-#line 62 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 407 "file.c"
-}
-
-
-static glong
-string_strnlen (gchar* str,
- glong maxlen)
-{
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
-#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp0_;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = end;
-#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ == NULL) {
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = maxlen;
-#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 431 "file.c"
- } else {
- gchar* _tmp2_;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = end;
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (glong) (_tmp2_ - str);
-#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 440 "file.c"
- }
-}
-
-
-static gchar*
-string_substring (const gchar* self,
- glong offset,
- glong len)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
-#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset >= ((glong) 0)) {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = len >= ((glong) 0);
-#line 461 "file.c"
- } else {
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = FALSE;
-#line 465 "file.c"
- }
-#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_) {
-#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = string_strnlen ((gchar*) self, offset + len);
-#line 471 "file.c"
- } else {
- gint _tmp1_;
- gint _tmp2_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = strlen (self);
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp2_;
-#line 481 "file.c"
- }
-#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (offset < ((glong) 0)) {
-#line 485 "file.c"
- glong _tmp3_;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- offset = _tmp3_ + offset;
-#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
-#line 493 "file.c"
- } else {
- glong _tmp4_;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = string_length;
-#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (offset <= _tmp4_, NULL);
-#line 500 "file.c"
- }
-#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (len < ((glong) 0)) {
-#line 504 "file.c"
- glong _tmp5_;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- len = _tmp5_ - offset;
-#line 510 "file.c"
- }
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = string_length;
-#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp7_;
-#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 522 "file.c"
-}
-
-
-void
-disassemble_filename (const gchar* basename,
- gchar* * name,
- gchar* * ext)
-{
- gchar* _vala_name = NULL;
- gchar* _vala_ext = NULL;
- glong offset = 0L;
- glong _tmp0_;
-#line 65 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_if_fail (basename != NULL);
-#line 66 "/home/jens/Source/shotwell/src/util/file.vala"
- offset = find_last_offset (basename, '.');
-#line 67 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = offset;
-#line 67 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp0_ <= ((glong) 0)) {
-#line 543 "file.c"
- gchar* _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = g_strdup (basename);
-#line 68 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_vala_name);
-#line 68 "/home/jens/Source/shotwell/src/util/file.vala"
- _vala_name = _tmp1_;
-#line 69 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_vala_ext);
-#line 69 "/home/jens/Source/shotwell/src/util/file.vala"
- _vala_ext = NULL;
-#line 555 "file.c"
- } else {
- glong _tmp2_;
- gchar* _tmp3_;
- glong _tmp4_;
- gchar* _tmp5_;
-#line 71 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = offset;
-#line 71 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = string_substring (basename, (glong) 0, _tmp2_);
-#line 71 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_vala_name);
-#line 71 "/home/jens/Source/shotwell/src/util/file.vala"
- _vala_name = _tmp3_;
-#line 72 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp4_ = offset;
-#line 72 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = string_substring (basename, _tmp4_ + 1, (glong) -1);
-#line 72 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_vala_ext);
-#line 72 "/home/jens/Source/shotwell/src/util/file.vala"
- _vala_ext = _tmp5_;
-#line 577 "file.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/util/file.vala"
- if (name) {
-#line 65 "/home/jens/Source/shotwell/src/util/file.vala"
- *name = _vala_name;
-#line 583 "file.c"
- } else {
-#line 65 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_vala_name);
-#line 587 "file.c"
- }
-#line 65 "/home/jens/Source/shotwell/src/util/file.vala"
- if (ext) {
-#line 65 "/home/jens/Source/shotwell/src/util/file.vala"
- *ext = _vala_ext;
-#line 593 "file.c"
- } else {
-#line 65 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_vala_ext);
-#line 597 "file.c"
- }
-}
-
-
-guint64
-query_total_file_size (GFile* file_or_dir,
- GCancellable* cancellable,
- GError** error)
-{
- guint64 result = 0ULL;
- GFileType type = 0;
- GFileType _tmp0_;
- GFileEnumerator* enumerator = NULL;
- guint64 total_bytes = 0ULL;
- GFileInfo* info = NULL;
- GError * _inner_error_ = NULL;
-#line 77 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE (file_or_dir), 0ULL);
-#line 77 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), 0ULL);
-#line 78 "/home/jens/Source/shotwell/src/util/file.vala"
- type = g_file_query_file_type (file_or_dir, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL);
-#line 79 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = type;
-#line 79 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp0_ == G_FILE_TYPE_REGULAR) {
-#line 624 "file.c"
- GFileInfo* info = NULL;
- GFileInfo* _tmp12_;
-#line 80 "/home/jens/Source/shotwell/src/util/file.vala"
- info = NULL;
-#line 629 "file.c"
- {
- GFileInfo* _tmp1_ = NULL;
- GFileInfo* _tmp2_;
- GFileInfo* _tmp3_;
-#line 82 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = g_file_query_info (file_or_dir, G_FILE_ATTRIBUTE_STANDARD_SIZE, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, &_inner_error_);
-#line 82 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = _tmp2_;
-#line 82 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 640 "file.c"
- goto __catch1_g_error;
- }
-#line 82 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = _tmp1_;
-#line 82 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = NULL;
-#line 82 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 82 "/home/jens/Source/shotwell/src/util/file.vala"
- info = _tmp3_;
-#line 81 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp1_);
-#line 653 "file.c"
- }
- goto __finally1;
- __catch1_g_error:
- {
- GError* err = NULL;
- GError* _tmp4_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- GError* _tmp9_;
- const gchar* _tmp10_;
-#line 81 "/home/jens/Source/shotwell/src/util/file.vala"
- err = _inner_error_;
-#line 81 "/home/jens/Source/shotwell/src/util/file.vala"
- _inner_error_ = NULL;
-#line 85 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp4_ = err;
-#line 85 "/home/jens/Source/shotwell/src/util/file.vala"
- if (g_error_matches (_tmp4_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
-#line 672 "file.c"
- GError* _tmp5_;
- GError* _tmp6_;
-#line 86 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = err;
-#line 86 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp6_ = _g_error_copy0 (_tmp5_);
-#line 86 "/home/jens/Source/shotwell/src/util/file.vala"
- _inner_error_ = _tmp6_;
-#line 86 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_error_free0 (err);
-#line 683 "file.c"
- goto __finally1;
- }
-#line 88 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp7_ = g_file_get_path (file_or_dir);
-#line 88 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp8_ = _tmp7_;
-#line 88 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp9_ = err;
-#line 88 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp10_ = _tmp9_->message;
-#line 88 "/home/jens/Source/shotwell/src/util/file.vala"
- g_debug ("file.vala:88: Unable to query filesize for %s: %s", _tmp8_, _tmp10_);
-#line 88 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp8_);
-#line 90 "/home/jens/Source/shotwell/src/util/file.vala"
- result = (guint64) 0;
-#line 90 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_error_free0 (err);
-#line 90 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 90 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 706 "file.c"
- }
- __finally1:
-#line 81 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 711 "file.c"
- guint64 _tmp11_ = 0ULL;
-#line 81 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 81 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp11_;
-#line 719 "file.c"
- }
-#line 93 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp12_ = info;
-#line 93 "/home/jens/Source/shotwell/src/util/file.vala"
- result = (guint64) g_file_info_get_size (_tmp12_);
-#line 93 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 93 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 729 "file.c"
- } else {
- GFileType _tmp13_;
-#line 94 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp13_ = type;
-#line 94 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp13_ != G_FILE_TYPE_DIRECTORY) {
-#line 95 "/home/jens/Source/shotwell/src/util/file.vala"
- result = (guint64) 0;
-#line 95 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 740 "file.c"
- }
- }
- {
- GFileEnumerator* _tmp14_ = NULL;
- GFileEnumerator* _tmp15_;
- GFileEnumerator* _tmp16_;
- GFileEnumerator* _tmp17_;
-#line 100 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp15_ = g_file_enumerate_children (file_or_dir, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, &_inner_error_);
-#line 100 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp14_ = _tmp15_;
-#line 100 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 754 "file.c"
- goto __catch2_g_error;
- }
-#line 100 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp16_ = _tmp14_;
-#line 100 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp14_ = NULL;
-#line 100 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 100 "/home/jens/Source/shotwell/src/util/file.vala"
- enumerator = _tmp16_;
-#line 102 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp17_ = enumerator;
-#line 102 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp17_ == NULL) {
-#line 103 "/home/jens/Source/shotwell/src/util/file.vala"
- result = (guint64) 0;
-#line 103 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp14_);
-#line 103 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 103 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 777 "file.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp14_);
-#line 781 "file.c"
- }
- goto __finally2;
- __catch2_g_error:
- {
- GError* err = NULL;
- gboolean _tmp18_ = FALSE;
- GError* _tmp19_;
- GError* _tmp21_;
- GError* _tmp22_;
-#line 99 "/home/jens/Source/shotwell/src/util/file.vala"
- err = _inner_error_;
-#line 99 "/home/jens/Source/shotwell/src/util/file.vala"
- _inner_error_ = NULL;
-#line 106 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp19_ = err;
-#line 106 "/home/jens/Source/shotwell/src/util/file.vala"
- if (g_error_matches (_tmp19_, G_FILE_ERROR, G_FILE_ERROR_PERM)) {
-#line 106 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp18_ = TRUE;
-#line 801 "file.c"
- } else {
- GError* _tmp20_;
-#line 106 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp20_ = err;
-#line 106 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp18_ = g_error_matches (_tmp20_, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED);
-#line 808 "file.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp18_) {
-#line 107 "/home/jens/Source/shotwell/src/util/file.vala"
- result = (guint64) 0;
-#line 107 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_error_free0 (err);
-#line 107 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 107 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 820 "file.c"
- }
-#line 109 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp21_ = err;
-#line 109 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp22_ = _g_error_copy0 (_tmp21_);
-#line 109 "/home/jens/Source/shotwell/src/util/file.vala"
- _inner_error_ = _tmp22_;
-#line 109 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_error_free0 (err);
-#line 830 "file.c"
- goto __finally2;
- }
- __finally2:
-#line 99 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 836 "file.c"
- guint64 _tmp23_ = 0ULL;
-#line 99 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 99 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 99 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp23_;
-#line 844 "file.c"
- }
-#line 112 "/home/jens/Source/shotwell/src/util/file.vala"
- total_bytes = (guint64) 0;
-#line 114 "/home/jens/Source/shotwell/src/util/file.vala"
- info = NULL;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- while (TRUE) {
-#line 852 "file.c"
- GFileInfo* _tmp24_ = NULL;
- GFileEnumerator* _tmp25_;
- GFileInfo* _tmp26_;
- GFileInfo* _tmp28_;
- GFileInfo* _tmp29_;
- guint64 _tmp30_ = 0ULL;
- GFileInfo* _tmp31_;
- const gchar* _tmp32_;
- GFile* _tmp33_;
- GFile* _tmp34_;
- guint64 _tmp35_;
- guint64 _tmp37_;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp25_ = enumerator;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp26_ = g_file_enumerator_next_file (_tmp25_, cancellable, &_inner_error_);
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp24_ = _tmp26_;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 873 "file.c"
- guint64 _tmp27_ = 0ULL;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp27_;
-#line 883 "file.c"
- }
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp28_ = _tmp24_;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp24_ = NULL;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- info = _tmp28_;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp29_ = info;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!(_tmp29_ != NULL)) {
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp24_);
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- break;
-#line 901 "file.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp31_ = info;
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp32_ = g_file_info_get_name (_tmp31_);
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp33_ = g_file_get_child (file_or_dir, _tmp32_);
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp34_ = _tmp33_;
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp35_ = query_total_file_size (_tmp34_, cancellable, &_inner_error_);
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp34_);
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp30_ = _tmp35_;
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 919 "file.c"
- guint64 _tmp36_ = 0ULL;
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp24_);
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp36_;
-#line 931 "file.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp37_ = total_bytes;
-#line 116 "/home/jens/Source/shotwell/src/util/file.vala"
- total_bytes = _tmp37_ + _tmp30_;
-#line 115 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp24_);
-#line 939 "file.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/util/file.vala"
- result = total_bytes;
-#line 118 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 118 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 118 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 949 "file.c"
-}
-
-
-void
-delete_all_files (GFile* dir,
- GeeSet* exceptions,
- ProgressMonitor monitor,
- void* monitor_target,
- guint64 file_count,
- GCancellable* cancellable,
- GError** error)
-{
- GFileType type = 0;
- GFileType _tmp0_;
- GFileEnumerator* enumerator = NULL;
- GFileEnumerator* _tmp7_;
- GFileInfo* info = NULL;
- guint64 i = 0ULL;
- GError * _inner_error_ = NULL;
-#line 125 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_if_fail (G_IS_FILE (dir));
-#line 125 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_if_fail ((exceptions == NULL) || GEE_IS_SET (exceptions));
-#line 125 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable));
-#line 127 "/home/jens/Source/shotwell/src/util/file.vala"
- type = g_file_query_file_type (dir, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL);
-#line 128 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = type;
-#line 128 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp0_ != G_FILE_TYPE_DIRECTORY) {
-#line 981 "file.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- GError* _tmp5_;
- GError* _tmp6_;
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = g_file_get_path (dir);
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = _tmp1_;
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = g_strdup_printf ("%s is not a directory", _tmp2_);
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp4_ = _tmp3_;
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_NOT_DIRECTORY, _tmp4_);
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp6_ = _tmp5_;
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp4_);
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp2_);
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- _inner_error_ = _tmp6_;
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 129 "/home/jens/Source/shotwell/src/util/file.vala"
- return;
-#line 1010 "file.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp7_ = g_file_enumerate_children (dir, "standard::name,standard::type", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, &_inner_error_);
-#line 131 "/home/jens/Source/shotwell/src/util/file.vala"
- enumerator = _tmp7_;
-#line 131 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 131 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 131 "/home/jens/Source/shotwell/src/util/file.vala"
- return;
-#line 1022 "file.c"
- }
-#line 133 "/home/jens/Source/shotwell/src/util/file.vala"
- info = NULL;
-#line 134 "/home/jens/Source/shotwell/src/util/file.vala"
- i = (guint64) 0;
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- while (TRUE) {
-#line 1030 "file.c"
- GFileInfo* _tmp8_ = NULL;
- GFileEnumerator* _tmp9_;
- GFileInfo* _tmp10_;
- GFileInfo* _tmp11_;
- GFileInfo* _tmp12_;
- GFileInfo* _tmp13_;
- gboolean _tmp14_ = FALSE;
- GFile* file = NULL;
- GFileInfo* _tmp17_;
- const gchar* _tmp18_;
- GFile* _tmp19_;
- gboolean _tmp26_ = FALSE;
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp9_ = enumerator;
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp10_ = g_file_enumerator_next_file (_tmp9_, cancellable, &_inner_error_);
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp8_ = _tmp10_;
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- return;
-#line 1059 "file.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp11_ = _tmp8_;
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp8_ = NULL;
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- info = _tmp11_;
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp12_ = info;
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!(_tmp12_ != NULL)) {
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp8_);
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- break;
-#line 1077 "file.c"
- }
-#line 136 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp13_ = info;
-#line 136 "/home/jens/Source/shotwell/src/util/file.vala"
- if (g_file_info_get_file_type (_tmp13_) != G_FILE_TYPE_REGULAR) {
-#line 137 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp8_);
-#line 137 "/home/jens/Source/shotwell/src/util/file.vala"
- continue;
-#line 1087 "file.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/util/file.vala"
- if (exceptions != NULL) {
-#line 1091 "file.c"
- GFileInfo* _tmp15_;
- const gchar* _tmp16_;
-#line 139 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp15_ = info;
-#line 139 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp16_ = g_file_info_get_name (_tmp15_);
-#line 139 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp14_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (exceptions, GEE_TYPE_COLLECTION, GeeCollection), _tmp16_);
-#line 1100 "file.c"
- } else {
-#line 139 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp14_ = FALSE;
-#line 1104 "file.c"
- }
-#line 139 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp14_) {
-#line 140 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp8_);
-#line 140 "/home/jens/Source/shotwell/src/util/file.vala"
- continue;
-#line 1112 "file.c"
- }
-#line 142 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp17_ = info;
-#line 142 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp18_ = g_file_info_get_name (_tmp17_);
-#line 142 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp19_ = g_file_get_child (dir, _tmp18_);
-#line 142 "/home/jens/Source/shotwell/src/util/file.vala"
- file = _tmp19_;
-#line 1122 "file.c"
- {
- GFile* _tmp20_;
-#line 144 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp20_ = file;
-#line 144 "/home/jens/Source/shotwell/src/util/file.vala"
- g_file_delete (_tmp20_, cancellable, &_inner_error_);
-#line 144 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1131 "file.c"
- goto __catch3_g_error;
- }
- }
- goto __finally3;
- __catch3_g_error:
- {
- GError* err = NULL;
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GError* _tmp24_;
- const gchar* _tmp25_;
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- err = _inner_error_;
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- _inner_error_ = NULL;
-#line 146 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp21_ = file;
-#line 146 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp22_ = g_file_get_path (_tmp21_);
-#line 146 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp23_ = _tmp22_;
-#line 146 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp24_ = err;
-#line 146 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp25_ = _tmp24_->message;
-#line 146 "/home/jens/Source/shotwell/src/util/file.vala"
- g_warning ("file.vala:146: Unable to delete file %s: %s", _tmp23_, _tmp25_);
-#line 146 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp23_);
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_error_free0 (err);
-#line 1164 "file.c"
- }
- __finally3:
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (file);
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp8_);
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 143 "/home/jens/Source/shotwell/src/util/file.vala"
- return;
-#line 1181 "file.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/util/file.vala"
- if (monitor != NULL) {
-#line 149 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp26_ = file_count > ((guint64) 0);
-#line 1187 "file.c"
- } else {
-#line 149 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp26_ = FALSE;
-#line 1191 "file.c"
- }
-#line 149 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp26_) {
-#line 1195 "file.c"
- guint64 _tmp27_;
- guint64 _tmp28_;
-#line 150 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp27_ = i;
-#line 150 "/home/jens/Source/shotwell/src/util/file.vala"
- i = _tmp27_ + 1;
-#line 150 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp28_ = i;
-#line 150 "/home/jens/Source/shotwell/src/util/file.vala"
- monitor (file_count, _tmp28_, TRUE, monitor_target);
-#line 1206 "file.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (file);
-#line 135 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp8_);
-#line 1212 "file.c"
- }
-#line 125 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 125 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 1218 "file.c"
-}
-
-
-time_t
-query_file_modified (GFile* file,
- GError** error)
-{
- time_t result = 0;
- GFileInfo* info = NULL;
- GFileInfo* _tmp0_;
- GTimeVal _tmp2_ = {0};
- glong _tmp3_;
- GError * _inner_error_ = NULL;
-#line 154 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE (file), 0);
-#line 155 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_query_info (file, G_FILE_ATTRIBUTE_TIME_MODIFIED, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 155 "/home/jens/Source/shotwell/src/util/file.vala"
- info = _tmp0_;
-#line 155 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1240 "file.c"
- time_t _tmp1_ = 0;
-#line 155 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 155 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp1_;
-#line 1246 "file.c"
- }
-#line 158 "/home/jens/Source/shotwell/src/util/file.vala"
- g_file_info_get_modification_time (info, &_tmp2_);
-#line 158 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = _tmp2_.tv_sec;
-#line 158 "/home/jens/Source/shotwell/src/util/file.vala"
- result = (time_t) _tmp3_;
-#line 158 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 158 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1258 "file.c"
-}
-
-
-gboolean
-query_is_directory (GFile* file)
-{
- gboolean result = FALSE;
-#line 161 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE (file), FALSE);
-#line 162 "/home/jens/Source/shotwell/src/util/file.vala"
- result = g_file_query_file_type (file, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL) == G_FILE_TYPE_DIRECTORY;
-#line 162 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1272 "file.c"
-}
-
-
-gboolean
-query_is_directory_empty (GFile* dir,
- GError** error)
-{
- gboolean result = FALSE;
- GFileEnumerator* enumerator = NULL;
- GFileEnumerator* _tmp0_;
- GFileEnumerator* _tmp2_;
- GFileInfo* _tmp3_ = NULL;
- GFileEnumerator* _tmp4_;
- GFileInfo* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 165 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE (dir), FALSE);
-#line 166 "/home/jens/Source/shotwell/src/util/file.vala"
- if (g_file_query_file_type (dir, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL) != G_FILE_TYPE_DIRECTORY) {
-#line 167 "/home/jens/Source/shotwell/src/util/file.vala"
- result = FALSE;
-#line 167 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1296 "file.c"
- }
-#line 169 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_enumerate_children (dir, "standard::name", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 169 "/home/jens/Source/shotwell/src/util/file.vala"
- enumerator = _tmp0_;
-#line 169 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1304 "file.c"
- gboolean _tmp1_ = FALSE;
-#line 169 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 169 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp1_;
-#line 1310 "file.c"
- }
-#line 171 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = enumerator;
-#line 171 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp2_ == NULL) {
-#line 172 "/home/jens/Source/shotwell/src/util/file.vala"
- result = FALSE;
-#line 172 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 172 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1322 "file.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp4_ = enumerator;
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = g_file_enumerator_next_file (_tmp4_, NULL, &_inner_error_);
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = _tmp5_;
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1332 "file.c"
- gboolean _tmp6_ = FALSE;
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp6_;
-#line 1340 "file.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- result = _tmp3_ == NULL;
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp3_);
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 174 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1350 "file.c"
-}
-
-
-gchar*
-get_display_pathname (GFile* file)
-{
- gchar* result = NULL;
- gchar* path = NULL;
- gchar* _tmp0_;
- gchar* home = NULL;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
-#line 177 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 179 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_get_parse_name (file);
-#line 179 "/home/jens/Source/shotwell/src/util/file.vala"
- path = _tmp0_;
-#line 180 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = g_get_home_dir ();
-#line 180 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 180 "/home/jens/Source/shotwell/src/util/file.vala"
- home = _tmp2_;
-#line 182 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = path;
-#line 182 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp4_ = home;
-#line 182 "/home/jens/Source/shotwell/src/util/file.vala"
- if (g_strcmp0 (_tmp3_, _tmp4_) == 0) {
-#line 1385 "file.c"
- gchar* _tmp5_;
-#line 183 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = g_strdup ("~");
-#line 183 "/home/jens/Source/shotwell/src/util/file.vala"
- result = _tmp5_;
-#line 183 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (home);
-#line 183 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (path);
-#line 183 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1397 "file.c"
- }
-#line 185 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp6_ = path;
-#line 185 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp7_ = home;
-#line 185 "/home/jens/Source/shotwell/src/util/file.vala"
- if (g_str_has_prefix (_tmp6_, _tmp7_)) {
-#line 1405 "file.c"
- const gchar* _tmp8_;
- const gchar* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp8_ = path;
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp9_ = home;
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp10_ = strlen (_tmp9_);
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp11_ = _tmp10_;
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp12_ = string_substring (_tmp8_, (glong) _tmp11_, (glong) -1);
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp13_ = _tmp12_;
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp14_ = g_strdup_printf ("~%s", _tmp13_);
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp15_ = _tmp14_;
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp13_);
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- result = _tmp15_;
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (home);
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (path);
-#line 186 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1440 "file.c"
- }
-#line 188 "/home/jens/Source/shotwell/src/util/file.vala"
- result = path;
-#line 188 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (home);
-#line 188 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1448 "file.c"
-}
-
-
-gchar*
-strip_pretty_path (const gchar* path)
-{
- gchar* result = NULL;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 191 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (path != NULL, NULL);
-#line 192 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!g_str_has_prefix (path, "~")) {
-#line 1465 "file.c"
- gchar* _tmp0_;
-#line 193 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_strdup (path);
-#line 193 "/home/jens/Source/shotwell/src/util/file.vala"
- result = _tmp0_;
-#line 193 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1473 "file.c"
- }
-#line 195 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = g_get_home_dir ();
-#line 195 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = string_substring (path, (glong) 1, (glong) -1);
-#line 195 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = _tmp2_;
-#line 195 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp4_ = g_strconcat (_tmp1_, _tmp3_, NULL);
-#line 195 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp5_ = _tmp4_;
-#line 195 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_free0 (_tmp3_);
-#line 195 "/home/jens/Source/shotwell/src/util/file.vala"
- result = _tmp5_;
-#line 195 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1491 "file.c"
-}
-
-
-gchar*
-get_file_info_id (GFileInfo* info)
-{
- gchar* result = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 198 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
-#line 199 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_ID_FILE);
-#line 199 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 199 "/home/jens/Source/shotwell/src/util/file.vala"
- result = _tmp1_;
-#line 199 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1511 "file.c"
-}
-
-
-void
-skip_uint64 (GInputStream* input,
- guint64 skip_amount,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 203 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_if_fail (G_IS_INPUT_STREAM (input));
-#line 204 "/home/jens/Source/shotwell/src/util/file.vala"
- while (TRUE) {
-#line 204 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!(skip_amount > ((guint64) 0))) {
-#line 204 "/home/jens/Source/shotwell/src/util/file.vala"
- break;
-#line 1529 "file.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/util/file.vala"
- if (skip_amount >= ((guint64) G_MAXSSIZE)) {
-#line 207 "/home/jens/Source/shotwell/src/util/file.vala"
- g_input_stream_skip (input, (gsize) G_MAXSSIZE, NULL, &_inner_error_);
-#line 207 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 207 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 207 "/home/jens/Source/shotwell/src/util/file.vala"
- return;
-#line 1541 "file.c"
- }
-#line 208 "/home/jens/Source/shotwell/src/util/file.vala"
- skip_amount = skip_amount - G_MAXSSIZE;
-#line 1545 "file.c"
- } else {
-#line 210 "/home/jens/Source/shotwell/src/util/file.vala"
- g_input_stream_skip (input, (gsize) skip_amount, NULL, &_inner_error_);
-#line 210 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 210 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 210 "/home/jens/Source/shotwell/src/util/file.vala"
- return;
-#line 1555 "file.c"
- }
-#line 211 "/home/jens/Source/shotwell/src/util/file.vala"
- skip_amount = (guint64) 0;
-#line 1559 "file.c"
- }
- }
-}
-
-
-guint64
-count_files_in_directory (GFile* dir,
- GError** error)
-{
- guint64 result = 0ULL;
- guint64 count = 0ULL;
- GFileEnumerator* enumerator = NULL;
- GFileEnumerator* _tmp0_;
- GFileInfo* info = NULL;
- GError * _inner_error_ = NULL;
-#line 217 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail (G_IS_FILE (dir), 0ULL);
-#line 218 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!query_is_directory (dir)) {
-#line 219 "/home/jens/Source/shotwell/src/util/file.vala"
- result = (guint64) 0;
-#line 219 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1583 "file.c"
- }
-#line 221 "/home/jens/Source/shotwell/src/util/file.vala"
- count = (guint64) 0;
-#line 222 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_enumerate_children (dir, "standard::*", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 222 "/home/jens/Source/shotwell/src/util/file.vala"
- enumerator = _tmp0_;
-#line 222 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1593 "file.c"
- guint64 _tmp1_ = 0ULL;
-#line 222 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 222 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp1_;
-#line 1599 "file.c"
- }
-#line 225 "/home/jens/Source/shotwell/src/util/file.vala"
- info = NULL;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- while (TRUE) {
-#line 1605 "file.c"
- GFileInfo* _tmp2_ = NULL;
- GFileEnumerator* _tmp3_;
- GFileInfo* _tmp4_;
- GFileInfo* _tmp6_;
- GFileInfo* _tmp7_;
- guint64 _tmp8_;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp3_ = enumerator;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp4_ = g_file_enumerator_next_file (_tmp3_, NULL, &_inner_error_);
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = _tmp4_;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1620 "file.c"
- guint64 _tmp5_ = 0ULL;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- g_propagate_error (error, _inner_error_);
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- return _tmp5_;
-#line 1630 "file.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp6_ = _tmp2_;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp2_ = NULL;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- info = _tmp6_;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp7_ = info;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- if (!(_tmp7_ != NULL)) {
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp2_);
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- break;
-#line 1648 "file.c"
- }
-#line 227 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp8_ = count;
-#line 227 "/home/jens/Source/shotwell/src/util/file.vala"
- count = _tmp8_ + 1;
-#line 226 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (_tmp2_);
-#line 1656 "file.c"
- }
-#line 229 "/home/jens/Source/shotwell/src/util/file.vala"
- result = count;
-#line 229 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (info);
-#line 229 "/home/jens/Source/shotwell/src/util/file.vala"
- _g_object_unref0 (enumerator);
-#line 229 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1666 "file.c"
-}
-
-
-gboolean
-file_equal (GFile* a,
- GFile* b)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
-#line 233 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail ((a == NULL) || G_IS_FILE (a), FALSE);
-#line 233 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail ((b == NULL) || G_IS_FILE (b), FALSE);
-#line 234 "/home/jens/Source/shotwell/src/util/file.vala"
- if (a != NULL) {
-#line 234 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = b != NULL;
-#line 1685 "file.c"
- } else {
-#line 234 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp1_ = FALSE;
-#line 1689 "file.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/util/file.vala"
- if (_tmp1_) {
-#line 234 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_equal (a, b);
-#line 1695 "file.c"
- } else {
-#line 234 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = FALSE;
-#line 1699 "file.c"
- }
-#line 234 "/home/jens/Source/shotwell/src/util/file.vala"
- result = _tmp0_;
-#line 234 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1705 "file.c"
-}
-
-
-guint
-file_hash (GFile* file)
-{
- guint result = 0U;
- guint _tmp0_ = 0U;
-#line 238 "/home/jens/Source/shotwell/src/util/file.vala"
- g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), 0U);
-#line 239 "/home/jens/Source/shotwell/src/util/file.vala"
- if (file != NULL) {
-#line 239 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = g_file_hash (file);
-#line 1720 "file.c"
- } else {
-#line 239 "/home/jens/Source/shotwell/src/util/file.vala"
- _tmp0_ = (guint) 0;
-#line 1724 "file.c"
- }
-#line 239 "/home/jens/Source/shotwell/src/util/file.vala"
- result = _tmp0_;
-#line 239 "/home/jens/Source/shotwell/src/util/file.vala"
- return result;
-#line 1730 "file.c"
-}
-
-
-
diff --git a/src/util/image.c b/src/util/image.c
deleted file mode 100644
index 5f3cbd0..0000000
--- a/src/util/image.c
+++ /dev/null
@@ -1,2633 +0,0 @@
-/* image.c generated by valac 0.40.4, the Vala compiler
- * generated from image.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* XPM */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk/gdk.h>
-#include <cairo.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gtk/gtk.h>
-#include <float.h>
-#include <math.h>
-
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#define TYPE_DIMENSIONS (dimensions_get_type ())
-typedef struct _Dimensions Dimensions;
-#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
-#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
-
-#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))
-#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
-#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
-#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
-
-typedef struct _ConfigurationFacade ConfigurationFacade;
-typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
-
-#define CONFIG_TYPE_FACADE (config_facade_get_type ())
-#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
-#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
-#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
-#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
-
-typedef struct _ConfigFacade ConfigFacade;
-typedef struct _ConfigFacadeClass ConfigFacadeClass;
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_BOX (box_get_type ())
-typedef struct _Box Box;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _Dimensions {
- gint width;
- gint height;
-};
-
-struct _Box {
- gint left;
- gint top;
- gint right;
- gint bottom;
-};
-
-
-extern cairo_surface_t* background_surface;
-cairo_surface_t* background_surface = NULL;
-
-gboolean is_color_parsable (const gchar* spec);
-void parse_color (const gchar* spec,
- GdkRGBA* result);
-void fetch_color (const gchar* spec,
- GdkRGBA* result);
-void set_source_color_from_string (cairo_t* ctx,
- const gchar* spec);
-#define MIN_SCALED_WIDTH 10
-#define MIN_SCALED_HEIGHT 10
-GdkPixbuf* get_placeholder_pixbuf (void);
-GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf,
- gint scale,
- GdkInterpType interp,
- gboolean scale_up);
-GType dimensions_get_type (void) G_GNUC_CONST;
-Dimensions* dimensions_dup (const Dimensions* self);
-void dimensions_free (Dimensions* self);
-void dimensions_for_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* result);
-void dimensions_get_scaled (Dimensions *self,
- gint scale,
- gboolean scale_up,
- Dimensions* result);
-void dimensions_with_min (Dimensions *self,
- gint min_width,
- gint min_height,
- Dimensions* result);
-GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* resized,
- GdkInterpType interp);
-#define DEGREE (G_PI / 180.0)
-void draw_rounded_corners_filled (cairo_t* ctx,
- Dimensions* dim,
- GdkPoint* origin,
- gdouble radius_proportion);
-void context_rounded_corners (cairo_t* cx,
- Dimensions* dim,
- GdkPoint* origin,
- gdouble radius_proportion);
-gint dimensions_minor_axis (Dimensions *self);
-guchar shift_color_byte (gint b,
- gint shift);
-void shift_colors (GdkPixbuf* pixbuf,
- gint red,
- gint green,
- gint blue,
- gint alpha);
-gboolean coord_in_rectangle (gint x,
- gint y,
- GdkRectangle* rect);
-gboolean rectangles_equal (GdkRectangle* a,
- GdkRectangle* b);
-gchar* rectangle_to_string (GdkRectangle* rect);
-void clamp_rectangle (GdkRectangle* original,
- Dimensions* max,
- GdkRectangle* result);
-void scale_point (GdkPoint* p,
- gdouble factor,
- GdkPoint* result);
-void add_points (GdkPoint* p1,
- GdkPoint* p2,
- GdkPoint* result);
-void subtract_points (GdkPoint* p1,
- GdkPoint* p2,
- GdkPoint* result);
-void fix_cairo_pixbuf (GdkPixbuf* pixbuf);
-void compute_arb_rotated_size (gdouble src_width,
- gdouble src_height,
- gdouble angle,
- gdouble* dest_width,
- gdouble* dest_height);
-gdouble degrees_to_radians (gdouble theta);
-GdkPixbuf* rotate_arb (GdkPixbuf* source_pixbuf,
- gdouble angle);
-void rotate_point_arb (GdkPoint* source_point,
- gint img_w,
- gint img_h,
- gdouble angle,
- gboolean invert,
- GdkPoint* result);
-void derotate_point_arb (GdkPoint* source_point,
- gint img_w,
- gint img_h,
- gdouble angle,
- GdkPoint* result);
-cairo_surface_t* get_background_surface (void);
-GType configuration_facade_get_type (void) G_GNUC_CONST;
-GType config_facade_get_type (void) G_GNUC_CONST;
-ConfigFacade* config_facade_get_instance (void);
-gchar* configuration_facade_get_transparent_background_type (ConfigurationFacade* self);
-gchar* configuration_facade_get_transparent_background_color (ConfigurationFacade* self);
-void invalidate_transparent_background (void);
-void paint_pixmap_with_background (cairo_t* ctx,
- GdkPixbuf* pixbuf,
- gint x,
- gint y);
-GType box_get_type (void) G_GNUC_CONST;
-Box* box_dup (const Box* self);
-void box_free (Box* self);
-void clamp_inside_rotated_image (Box* src,
- gint img_w,
- gint img_h,
- gdouble angle_deg,
- gboolean preserve_geom,
- Box* result);
-void box_get_offset (Box *self,
- gint xofs,
- gint yofs,
- Box* result);
-void box_init (Box *self,
- gint left,
- gint top,
- gint right,
- gint bottom);
-
-const gchar* fallback_image_missing[103] = {"48 48 54 1 ", " c #6A6D67", ". c #6C6E69", "X c #72746F", "o c #747672", "O c #777974", "+ c #797B77", "@ c #7C7E7A", "# c #7F817C", "$ c #81837F", "% c #848682", "& c #878984", "* c #888A86", "= c #8C8D8A", "- c #8F908C", "; c #90928E", ": c #949591", "> c #969894", ", c #999B96", "< c #9C9E9A", "1 c #9FA09C", "2 c #A1A39E", "3 c #A4A6A2", "4 c #A6A9A4", "5 c #A9ABA6", "6 c #ACADA9", "7 c #AEB1AB", "8 c #B1B2AF", "9 c #B3B4B1", "0 c #B6B9B3", "q c #B9BCB6", "w c #BDBEBA", "e c #BEC2BB", "r c #C1C4BE", "t c #C5C5C2", "y c #C6C9C3", "u c #C9CCC6", "i c #CCCDCB", "p c #CED2CA", "a c #D2D6CE", "s c #D5D5D3", "d c #D7D8D5", "f c #D9D9D6", "g c #DCDCDA", "h c #DFE0DD", "j c #E0E0DE", "k c #E4E4E2", "l c #E7E8E5", "z c #E9E9E7", "x c #EDEDEC", "c c #EFF0EE", "v c #F1F1EF", "b c #F2F2F1", "n c #FFFFFF", "m c None", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmaaaaaaaaaasaisaaaaaaaaaaaaaaaaaaapppiipuuuuumm", "mannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnym", "manbbbbbbbbbvbbvvvvxvvvbvvvvvvvvccccccxxvxvxxnym", "manbt89898888988888888888999999999999999999txnrm", "manb6======================-;;=;;;;;;;;;;=:7znrm", "manv6&%%**%*%%%%*%%****=======;==;;;;=;=;==7znem", "manv4%%%%$%%%%%%%%%%%=****=======;==-======6znwm", "manx3%%#$$$$##%#$%%%*%**==========-=--=====6znqm", "manx1$@%#$@$###%%%%=****=*===--;;----====*=5lnqm", "manx<@@@@@@@@##%$%%%%****========-==-======5kn0m", "manz<@@@+@+@@@#$%%%%%=%=%===;=:=--------=-*4kn8m", "manz>O+O+O+@@@#$$%%%%========;;=--------=*=3kn9m", "mpnl:OOOOO+@@$##%%%%%=%=====;=;;--;-----===3kn8m", "munl;OooOOO@@@#$%%%%%======;;;;;:;;;;;---==1hn7m", "munl;oXoOO+@###$%%=%=======;::;::::;;---&#+-gn7m", "mynk*XXooOO+$$#$%%%%=%===;;:;:::::;:-$#XooX-fn5m", "mynk*XXOOO@@$$$$%%=%====;::::>::;*#OXXXXXXX*dn5m", "mrnk*oOO@@@#$$$$%=====::::>>>=%@OXOooXXXooo&dn3m", "mrnj*++@$$$$**$===-;;::>>:=@Ooo@XOOoo#o#OOO=fn3m", "menj*@#$$$$$**===;;:::=%@@@@@@O@#O#Oo#o#++@;gn2m", "menj*$$$$&**===;:;=*#@@@@@@@@@@@#######o##%>gn2m", "menh*$$%**===;=*%###########%@@@###$####$%=,gn1m", "m0nj=%***=**&$$$%$$$%$$%$$$$%$$$$$$$$$$%*;:2hn<m", "m0nj****&&&$$&&$%%%%%%%%%%%%%%%%$$*$%%%*;>13gn,m", "m0ng****&&&&&&&&&&&&*%*%*%%*%******%**-:,136kz;m", "m0nh***$&&&&&&&&&&&&%**********%*$***;:,1358r7*m", "m8ng*&&&&&&&&&*$&*&&&&$=$=$=&&&&&&**=:,<11>$65mm", "m7ng*&&&&&&&&&**&&&&&&**=$-$&&&&&&*-:,1..&1wi:mm", "m7ng&&&&&&&&=$*$&&&&&***$$$$&&&***=>,1<onxsi6*mm", "m6nf*&&&&&*&$***&&&&*$*$--$-&&&%*=;,13,:ztw9%mmm", "m5nf*%&&&&&&=$=$%*&&**%*$$&&&&**=>,225;5srw%mmmm", "m4nf3*&&**&&$-$-*******%$;&&*&*->,2365+ui7$mmmmm", "m3nsfffdddsddaffssssdassgaaaassddfgjg4wu;ommmmmm", "m3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvq3<$.mmmmmmm", "mm2211111,<,,,,,,>>>>:::;::;----=====@mmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm"};
-
-gboolean
-is_color_parsable (const gchar* spec)
-{
- gboolean result = FALSE;
- GdkRGBA color = {0};
-#line 117 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (spec != NULL, FALSE);
-#line 118 "/home/jens/Source/shotwell/src/util/image.vala"
- memset (&color, 0, sizeof (GdkRGBA));
-#line 119 "/home/jens/Source/shotwell/src/util/image.vala"
- result = gdk_rgba_parse (&color, spec);
-#line 119 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 206 "image.c"
-}
-
-
-void
-parse_color (const gchar* spec,
- GdkRGBA* result)
-{
- GdkRGBA _tmp0_ = {0};
-#line 122 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (spec != NULL);
-#line 123 "/home/jens/Source/shotwell/src/util/image.vala"
- fetch_color (spec, &_tmp0_);
-#line 123 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = _tmp0_;
-#line 123 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 223 "image.c"
-}
-
-
-void
-fetch_color (const gchar* spec,
- GdkRGBA* result)
-{
- GdkRGBA rgba = {0};
-#line 126 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (spec != NULL);
-#line 127 "/home/jens/Source/shotwell/src/util/image.vala"
- memset (&rgba, 0, sizeof (GdkRGBA));
-#line 128 "/home/jens/Source/shotwell/src/util/image.vala"
- if (!gdk_rgba_parse (&rgba, spec)) {
-#line 129 "/home/jens/Source/shotwell/src/util/image.vala"
- g_error ("image.vala:129: Can't parse color %s", spec);
-#line 240 "image.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = rgba;
-#line 131 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 246 "image.c"
-}
-
-
-void
-set_source_color_from_string (cairo_t* ctx,
- const gchar* spec)
-{
- GdkRGBA rgba = {0};
- GdkRGBA _tmp0_ = {0};
- GdkRGBA _tmp1_;
- gdouble _tmp2_;
- GdkRGBA _tmp3_;
- gdouble _tmp4_;
- GdkRGBA _tmp5_;
- gdouble _tmp6_;
- GdkRGBA _tmp7_;
- gdouble _tmp8_;
-#line 134 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (ctx != NULL);
-#line 134 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (spec != NULL);
-#line 135 "/home/jens/Source/shotwell/src/util/image.vala"
- fetch_color (spec, &_tmp0_);
-#line 135 "/home/jens/Source/shotwell/src/util/image.vala"
- rgba = _tmp0_;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = rgba;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = _tmp1_.red;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = rgba;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_.green;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = rgba;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_.blue;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = rgba;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = _tmp7_.alpha;
-#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_set_source_rgba (ctx, _tmp2_, _tmp4_, _tmp6_, _tmp8_);
-#line 290 "image.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 147 "/home/jens/Source/shotwell/src/util/image.vala"
- return self ? g_object_ref (self) : NULL;
-#line 299 "image.c"
-}
-
-
-GdkPixbuf*
-get_placeholder_pixbuf (void)
-{
- GdkPixbuf* result = NULL;
- GdkPixbuf* pixbuf = NULL;
- GError * _inner_error_ = NULL;
-#line 144 "/home/jens/Source/shotwell/src/util/image.vala"
- pixbuf = NULL;
-#line 311 "image.c"
- {
- GtkIconTheme* icon_theme = NULL;
- GtkIconTheme* _tmp0_;
- GtkIconTheme* _tmp1_;
- GdkPixbuf* _tmp2_ = NULL;
- GdkPixbuf* _tmp3_;
- GdkPixbuf* _tmp4_;
-#line 147 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = gtk_icon_theme_get_default ();
-#line 147 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 147 "/home/jens/Source/shotwell/src/util/image.vala"
- icon_theme = _tmp1_;
-#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = gtk_icon_theme_load_icon (icon_theme, "image-missing", (gint) GTK_ICON_SIZE_DIALOG, 0, &_inner_error_);
-#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = _tmp3_;
-#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_object_unref0 (icon_theme);
-#line 333 "image.c"
- goto __catch4_g_error;
- }
-#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp2_;
-#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = NULL;
-#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_object_unref0 (pixbuf);
-#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
- pixbuf = _tmp4_;
-#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_object_unref0 (_tmp2_);
-#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_object_unref0 (icon_theme);
-#line 348 "image.c"
- }
- goto __finally4;
- __catch4_g_error:
- {
- GError* _error_ = NULL;
- GdkPixbuf* _tmp5_;
- GError* _tmp6_;
- const gchar* _tmp7_;
-#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
- _error_ = _inner_error_;
-#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
- _inner_error_ = NULL;
-#line 151 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = gdk_pixbuf_new_from_xpm_data (fallback_image_missing);
-#line 151 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_object_unref0 (pixbuf);
-#line 151 "/home/jens/Source/shotwell/src/util/image.vala"
- pixbuf = _tmp5_;
-#line 152 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _error_;
-#line 152 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = _tmp6_->message;
-#line 152 "/home/jens/Source/shotwell/src/util/image.vala"
- g_warning ("image.vala:152: Could not load icon from theme: %s", _tmp7_);
-#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_error_free0 (_error_);
-#line 375 "image.c"
- }
- __finally4:
-#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_object_unref0 (pixbuf);
-#line 146 "/home/jens/Source/shotwell/src/util/image.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 146 "/home/jens/Source/shotwell/src/util/image.vala"
- g_clear_error (&_inner_error_);
-#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
- return NULL;
-#line 388 "image.c"
- }
-#line 155 "/home/jens/Source/shotwell/src/util/image.vala"
- result = pixbuf;
-#line 155 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 394 "image.c"
-}
-
-
-GdkPixbuf*
-scale_pixbuf (GdkPixbuf* pixbuf,
- gint scale,
- GdkInterpType interp,
- gboolean scale_up)
-{
- GdkPixbuf* result = NULL;
- Dimensions original = {0};
- Dimensions _tmp0_ = {0};
- Dimensions scaled = {0};
- Dimensions _tmp1_ = {0};
- gboolean _tmp2_ = FALSE;
- Dimensions _tmp3_;
- gint _tmp4_;
- Dimensions _tmp5_;
- gint _tmp6_;
- Dimensions _tmp12_ = {0};
- Dimensions _tmp13_;
- gint _tmp14_;
- Dimensions _tmp15_;
- gint _tmp16_;
- GdkPixbuf* _tmp17_;
-#line 158 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 159 "/home/jens/Source/shotwell/src/util/image.vala"
- dimensions_for_pixbuf (pixbuf, &_tmp0_);
-#line 159 "/home/jens/Source/shotwell/src/util/image.vala"
- original = _tmp0_;
-#line 160 "/home/jens/Source/shotwell/src/util/image.vala"
- dimensions_get_scaled (&original, scale, scale_up, &_tmp1_);
-#line 160 "/home/jens/Source/shotwell/src/util/image.vala"
- scaled = _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = original;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_.width;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = scaled;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_.width;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp4_ == _tmp6_) {
-#line 440 "image.c"
- Dimensions _tmp7_;
- gint _tmp8_;
- Dimensions _tmp9_;
- gint _tmp10_;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = original;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = _tmp7_.height;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = scaled;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = _tmp9_.height;
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = _tmp8_ == _tmp10_;
-#line 455 "image.c"
- } else {
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = FALSE;
-#line 459 "image.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp2_) {
-#line 463 "image.c"
- GdkPixbuf* _tmp11_;
-#line 162 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = _g_object_ref0 (pixbuf);
-#line 162 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp11_;
-#line 162 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 471 "image.c"
- }
-#line 165 "/home/jens/Source/shotwell/src/util/image.vala"
- dimensions_with_min (&scaled, MIN_SCALED_WIDTH, MIN_SCALED_HEIGHT, &_tmp12_);
-#line 165 "/home/jens/Source/shotwell/src/util/image.vala"
- scaled = _tmp12_;
-#line 167 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = scaled;
-#line 167 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = _tmp13_.width;
-#line 167 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = scaled;
-#line 167 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_ = _tmp15_.height;
-#line 167 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp17_ = gdk_pixbuf_scale_simple (pixbuf, _tmp14_, _tmp16_, interp);
-#line 167 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp17_;
-#line 167 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 491 "image.c"
-}
-
-
-GdkPixbuf*
-resize_pixbuf (GdkPixbuf* pixbuf,
- Dimensions* resized,
- GdkInterpType interp)
-{
- GdkPixbuf* result = NULL;
- Dimensions original = {0};
- Dimensions _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
- Dimensions _tmp2_;
- gint _tmp3_;
- Dimensions _tmp4_;
- gint _tmp5_;
- Dimensions _tmp11_ = {0};
- Dimensions _tmp12_;
- gint _tmp13_;
- Dimensions _tmp14_;
- gint _tmp15_;
- GdkPixbuf* _tmp16_;
-#line 170 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-#line 170 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (resized != NULL, NULL);
-#line 171 "/home/jens/Source/shotwell/src/util/image.vala"
- dimensions_for_pixbuf (pixbuf, &_tmp0_);
-#line 171 "/home/jens/Source/shotwell/src/util/image.vala"
- original = _tmp0_;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = original;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = _tmp2_.width;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = *resized;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = _tmp4_.width;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp3_ == _tmp5_) {
-#line 532 "image.c"
- Dimensions _tmp6_;
- gint _tmp7_;
- Dimensions _tmp8_;
- gint _tmp9_;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = original;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = _tmp6_.height;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = *resized;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = _tmp8_.height;
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _tmp7_ == _tmp9_;
-#line 547 "image.c"
- } else {
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = FALSE;
-#line 551 "image.c"
- }
-#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp1_) {
-#line 555 "image.c"
- GdkPixbuf* _tmp10_;
-#line 173 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = _g_object_ref0 (pixbuf);
-#line 173 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp10_;
-#line 173 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 563 "image.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/util/image.vala"
- dimensions_with_min (resized, MIN_SCALED_WIDTH, MIN_SCALED_HEIGHT, &_tmp11_);
-#line 176 "/home/jens/Source/shotwell/src/util/image.vala"
- *resized = _tmp11_;
-#line 178 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = *resized;
-#line 178 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = _tmp12_.width;
-#line 178 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = *resized;
-#line 178 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = _tmp14_.height;
-#line 178 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_ = gdk_pixbuf_scale_simple (pixbuf, _tmp13_, _tmp15_, interp);
-#line 178 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp16_;
-#line 178 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 583 "image.c"
-}
-
-
-void
-draw_rounded_corners_filled (cairo_t* ctx,
- Dimensions* dim,
- GdkPoint* origin,
- gdouble radius_proportion)
-{
- Dimensions _tmp0_;
- GdkPoint _tmp1_;
-#line 183 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (ctx != NULL);
-#line 183 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (dim != NULL);
-#line 183 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (origin != NULL);
-#line 185 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = *dim;
-#line 185 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = *origin;
-#line 185 "/home/jens/Source/shotwell/src/util/image.vala"
- context_rounded_corners (ctx, &_tmp0_, &_tmp1_, radius_proportion);
-#line 186 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_paint (ctx);
-#line 609 "image.c"
-}
-
-
-void
-context_rounded_corners (cairo_t* cx,
- Dimensions* dim,
- GdkPoint* origin,
- gdouble radius_proportion)
-{
- gdouble left = 0.0;
- GdkPoint _tmp0_;
- gint _tmp1_;
- gdouble top = 0.0;
- GdkPoint _tmp2_;
- gint _tmp3_;
- gdouble right = 0.0;
- GdkPoint _tmp4_;
- gint _tmp5_;
- Dimensions _tmp6_;
- gint _tmp7_;
- gdouble bottom = 0.0;
- GdkPoint _tmp8_;
- gint _tmp9_;
- Dimensions _tmp10_;
- gint _tmp11_;
- gdouble radius = 0.0;
-#line 189 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (cx != NULL);
-#line 189 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (dim != NULL);
-#line 189 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (origin != NULL);
-#line 192 "/home/jens/Source/shotwell/src/util/image.vala"
- radius_proportion = CLAMP (radius_proportion, 2.0, 100.0);
-#line 194 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = *origin;
-#line 194 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _tmp0_.x;
-#line 194 "/home/jens/Source/shotwell/src/util/image.vala"
- left = (gdouble) _tmp1_;
-#line 195 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = *origin;
-#line 195 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = _tmp2_.y;
-#line 195 "/home/jens/Source/shotwell/src/util/image.vala"
- top = (gdouble) _tmp3_;
-#line 196 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = *origin;
-#line 196 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = _tmp4_.x;
-#line 196 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = *dim;
-#line 196 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = _tmp6_.width;
-#line 196 "/home/jens/Source/shotwell/src/util/image.vala"
- right = (gdouble) (_tmp5_ + _tmp7_);
-#line 197 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = *origin;
-#line 197 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = _tmp8_.y;
-#line 197 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = *dim;
-#line 197 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = _tmp10_.height;
-#line 197 "/home/jens/Source/shotwell/src/util/image.vala"
- bottom = (gdouble) (_tmp9_ + _tmp11_);
-#line 200 "/home/jens/Source/shotwell/src/util/image.vala"
- radius = ((gdouble) dimensions_minor_axis (dim)) / radius_proportion;
-#line 204 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_move_to (cx, left, top);
-#line 205 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_arc (cx, right - radius, top + radius, radius, -90 * DEGREE, 0 * DEGREE);
-#line 206 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_arc (cx, right - radius, bottom - radius, radius, 0 * DEGREE, 90 * DEGREE);
-#line 207 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_arc (cx, left + radius, bottom - radius, radius, 90 * DEGREE, 180 * DEGREE);
-#line 208 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_arc (cx, left + radius, top + radius, radius, 180 * DEGREE, 270 * DEGREE);
-#line 209 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_clip (cx);
-#line 690 "image.c"
-}
-
-
-inline guchar
-shift_color_byte (gint b,
- gint shift)
-{
- guchar result = '\0';
-#line 213 "/home/jens/Source/shotwell/src/util/image.vala"
- result = (guchar) CLAMP (b + shift, 0, 255);
-#line 213 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 703 "image.c"
-}
-
-
-void
-shift_colors (GdkPixbuf* pixbuf,
- gint red,
- gint green,
- gint blue,
- gint alpha)
-{
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- gint width = 0;
- gint height = 0;
- gint rowstride = 0;
- gint channels = 0;
- guchar* pixels = NULL;
- guint8* _tmp4_;
- gint _tmp5_;
-#line 216 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
- if (red >= -255) {
-#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = red <= 255;
-#line 731 "image.c"
- } else {
-#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = FALSE;
-#line 735 "image.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (_tmp0_, "red >= -255 && red <= 255");
-#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
- if (green >= -255) {
-#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = green <= 255;
-#line 743 "image.c"
- } else {
-#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = FALSE;
-#line 747 "image.c"
- }
-#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (_tmp1_, "green >= -255 && green <= 255");
-#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
- if (blue >= -255) {
-#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = blue <= 255;
-#line 755 "image.c"
- } else {
-#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = FALSE;
-#line 759 "image.c"
- }
-#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (_tmp2_, "blue >= -255 && blue <= 255");
-#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
- if (alpha >= -255) {
-#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = alpha <= 255;
-#line 767 "image.c"
- } else {
-#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = FALSE;
-#line 771 "image.c"
- }
-#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (_tmp3_, "alpha >= -255 && alpha <= 255");
-#line 222 "/home/jens/Source/shotwell/src/util/image.vala"
- width = gdk_pixbuf_get_width (pixbuf);
-#line 223 "/home/jens/Source/shotwell/src/util/image.vala"
- height = gdk_pixbuf_get_height (pixbuf);
-#line 224 "/home/jens/Source/shotwell/src/util/image.vala"
- rowstride = gdk_pixbuf_get_rowstride (pixbuf);
-#line 225 "/home/jens/Source/shotwell/src/util/image.vala"
- channels = gdk_pixbuf_get_n_channels (pixbuf);
-#line 226 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = gdk_pixbuf_get_pixels (pixbuf);
-#line 226 "/home/jens/Source/shotwell/src/util/image.vala"
- pixels = _tmp4_;
-#line 228 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = channels;
-#line 228 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (_tmp5_ >= 3, "channels >= 3");
-#line 229 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB, "pixbuf.get_colorspace() == Gdk.Colorspace.RGB");
-#line 230 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8, "pixbuf.get_bits_per_sample() == 8");
-#line 795 "image.c"
- {
- gint y = 0;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- y = 0;
-#line 800 "image.c"
- {
- gboolean _tmp6_ = FALSE;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = TRUE;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- while (TRUE) {
-#line 807 "image.c"
- gint _tmp8_;
- gint _tmp9_;
- gint y_offset = 0;
- gint _tmp10_;
- gint _tmp11_;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- if (!_tmp6_) {
-#line 815 "image.c"
- gint _tmp7_;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = y;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- y = _tmp7_ + 1;
-#line 821 "image.c"
- }
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = FALSE;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = y;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = height;
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- if (!(_tmp8_ < _tmp9_)) {
-#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
- break;
-#line 833 "image.c"
- }
-#line 233 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = y;
-#line 233 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = rowstride;
-#line 233 "/home/jens/Source/shotwell/src/util/image.vala"
- y_offset = _tmp10_ * _tmp11_;
-#line 841 "image.c"
- {
- gint x = 0;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- x = 0;
-#line 846 "image.c"
- {
- gboolean _tmp12_ = FALSE;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = TRUE;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- while (TRUE) {
-#line 853 "image.c"
- gint _tmp14_;
- gint _tmp15_;
- gint offset = 0;
- gint _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- gboolean _tmp37_ = FALSE;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- if (!_tmp12_) {
-#line 863 "image.c"
- gint _tmp13_;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = x;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- x = _tmp13_ + 1;
-#line 869 "image.c"
- }
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = FALSE;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = x;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = width;
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- if (!(_tmp14_ < _tmp15_)) {
-#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
- break;
-#line 881 "image.c"
- }
-#line 236 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_ = y_offset;
-#line 236 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp17_ = x;
-#line 236 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp18_ = channels;
-#line 236 "/home/jens/Source/shotwell/src/util/image.vala"
- offset = _tmp16_ + (_tmp17_ * _tmp18_);
-#line 238 "/home/jens/Source/shotwell/src/util/image.vala"
- if (red != 0) {
-#line 893 "image.c"
- guchar* _tmp19_;
- gint _tmp20_;
- guchar* _tmp21_;
- gint _tmp22_;
- guchar _tmp23_;
- guchar _tmp24_;
-#line 239 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp19_ = pixels;
-#line 239 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp20_ = offset;
-#line 239 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp21_ = pixels;
-#line 239 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp22_ = offset;
-#line 239 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp23_ = _tmp21_[_tmp22_];
-#line 239 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp19_[_tmp20_] = shift_color_byte ((gint) _tmp23_, red);
-#line 239 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp24_ = _tmp19_[_tmp20_];
-#line 914 "image.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/util/image.vala"
- if (green != 0) {
-#line 918 "image.c"
- guchar* _tmp25_;
- gint _tmp26_;
- guchar* _tmp27_;
- gint _tmp28_;
- guchar _tmp29_;
- guchar _tmp30_;
-#line 242 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp25_ = pixels;
-#line 242 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp26_ = offset;
-#line 242 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp27_ = pixels;
-#line 242 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp28_ = offset;
-#line 242 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp29_ = _tmp27_[_tmp28_ + 1];
-#line 242 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp25_[_tmp26_ + 1] = shift_color_byte ((gint) _tmp29_, green);
-#line 242 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp30_ = _tmp25_[_tmp26_ + 1];
-#line 939 "image.c"
- }
-#line 244 "/home/jens/Source/shotwell/src/util/image.vala"
- if (blue != 0) {
-#line 943 "image.c"
- guchar* _tmp31_;
- gint _tmp32_;
- guchar* _tmp33_;
- gint _tmp34_;
- guchar _tmp35_;
- guchar _tmp36_;
-#line 245 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp31_ = pixels;
-#line 245 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp32_ = offset;
-#line 245 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp33_ = pixels;
-#line 245 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp34_ = offset;
-#line 245 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp35_ = _tmp33_[_tmp34_ + 2];
-#line 245 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp31_[_tmp32_ + 2] = shift_color_byte ((gint) _tmp35_, blue);
-#line 245 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp36_ = _tmp31_[_tmp32_ + 2];
-#line 964 "image.c"
- }
-#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
- if (alpha != 0) {
-#line 968 "image.c"
- gint _tmp38_;
-#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp38_ = channels;
-#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp37_ = _tmp38_ >= 4;
-#line 974 "image.c"
- } else {
-#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp37_ = FALSE;
-#line 978 "image.c"
- }
-#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp37_) {
-#line 982 "image.c"
- guchar* _tmp39_;
- gint _tmp40_;
- guchar* _tmp41_;
- gint _tmp42_;
- guchar _tmp43_;
- guchar _tmp44_;
-#line 248 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp39_ = pixels;
-#line 248 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp40_ = offset;
-#line 248 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp41_ = pixels;
-#line 248 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp42_ = offset;
-#line 248 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp43_ = _tmp41_[_tmp42_ + 3];
-#line 248 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp39_[_tmp40_ + 3] = shift_color_byte ((gint) _tmp43_, alpha);
-#line 248 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp44_ = _tmp39_[_tmp40_ + 3];
-#line 1003 "image.c"
- }
- }
- }
- }
- }
- }
- }
-}
-
-
-gboolean
-coord_in_rectangle (gint x,
- gint y,
- GdkRectangle* rect)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- GdkRectangle _tmp3_;
- gint _tmp4_;
-#line 253 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (rect != NULL, FALSE);
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = *rect;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_.x;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- if (x >= _tmp4_) {
-#line 1033 "image.c"
- GdkRectangle _tmp5_;
- gint _tmp6_;
- GdkRectangle _tmp7_;
- gint _tmp8_;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = *rect;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_.x;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = *rect;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = _tmp7_.width;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = x < (_tmp6_ + _tmp8_);
-#line 1048 "image.c"
- } else {
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = FALSE;
-#line 1052 "image.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp2_) {
-#line 1056 "image.c"
- GdkRectangle _tmp9_;
- gint _tmp10_;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = *rect;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = _tmp9_.y;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = y >= _tmp10_;
-#line 1065 "image.c"
- } else {
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = FALSE;
-#line 1069 "image.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp1_) {
-#line 1073 "image.c"
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = *rect;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = _tmp11_.y;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = *rect;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = _tmp13_.height;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = y <= (_tmp12_ + _tmp14_);
-#line 1088 "image.c"
- } else {
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = FALSE;
-#line 1092 "image.c"
- }
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp0_;
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 1098 "image.c"
-}
-
-
-gboolean
-rectangles_equal (GdkRectangle* a,
- GdkRectangle* b)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- GdkRectangle _tmp3_;
- gint _tmp4_;
- GdkRectangle _tmp5_;
- gint _tmp6_;
-#line 257 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (a != NULL, FALSE);
-#line 257 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (b != NULL, FALSE);
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = *a;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_.x;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = *b;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_.x;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp4_ == _tmp6_) {
-#line 1128 "image.c"
- GdkRectangle _tmp7_;
- gint _tmp8_;
- GdkRectangle _tmp9_;
- gint _tmp10_;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = *a;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = _tmp7_.y;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = *b;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = _tmp9_.y;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = _tmp8_ == _tmp10_;
-#line 1143 "image.c"
- } else {
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = FALSE;
-#line 1147 "image.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp2_) {
-#line 1151 "image.c"
- GdkRectangle _tmp11_;
- gint _tmp12_;
- GdkRectangle _tmp13_;
- gint _tmp14_;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = *a;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = _tmp11_.width;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = *b;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = _tmp13_.width;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _tmp12_ == _tmp14_;
-#line 1166 "image.c"
- } else {
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = FALSE;
-#line 1170 "image.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp1_) {
-#line 1174 "image.c"
- GdkRectangle _tmp15_;
- gint _tmp16_;
- GdkRectangle _tmp17_;
- gint _tmp18_;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = *a;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_ = _tmp15_.height;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp17_ = *b;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp18_ = _tmp17_.height;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = _tmp16_ == _tmp18_;
-#line 1189 "image.c"
- } else {
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = FALSE;
-#line 1193 "image.c"
- }
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp0_;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 1199 "image.c"
-}
-
-
-gchar*
-rectangle_to_string (GdkRectangle* rect)
-{
- gchar* result = NULL;
- GdkRectangle _tmp0_;
- gint _tmp1_;
- GdkRectangle _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- GdkRectangle _tmp6_;
- gint _tmp7_;
- gchar* _tmp8_;
-#line 261 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (rect != NULL, NULL);
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _tmp0_.x;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = _tmp2_.y;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = _tmp4_.width;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = _tmp6_.height;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = g_strdup_printf ("%d,%d %dx%d", _tmp1_, _tmp3_, _tmp5_, _tmp7_);
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp8_;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 1240 "image.c"
-}
-
-
-void
-clamp_rectangle (GdkRectangle* original,
- Dimensions* max,
- GdkRectangle* result)
-{
- GdkRectangle rect = {0};
- GdkRectangle _tmp0_;
- gint _tmp1_;
- Dimensions _tmp2_;
- gint _tmp3_;
- GdkRectangle _tmp4_;
- gint _tmp5_;
- Dimensions _tmp6_;
- gint _tmp7_;
- GdkRectangle _tmp8_;
- gint _tmp9_;
- Dimensions _tmp10_;
- gint _tmp11_;
- GdkRectangle _tmp12_;
- gint _tmp13_;
- Dimensions _tmp14_;
- gint _tmp15_;
-#line 265 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (original != NULL);
-#line 265 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (max != NULL);
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
- memset (&rect, 0, sizeof (GdkRectangle));
-#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = *original;
-#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _tmp0_.x;
-#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = *max;
-#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = _tmp2_.width;
-#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
- rect.x = CLAMP (_tmp1_, 0, _tmp3_);
-#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = *original;
-#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = _tmp4_.y;
-#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = *max;
-#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = _tmp6_.height;
-#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
- rect.y = CLAMP (_tmp5_, 0, _tmp7_);
-#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = *original;
-#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = _tmp8_.width;
-#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = *max;
-#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = _tmp10_.width;
-#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
- rect.width = CLAMP (_tmp9_, 0, _tmp11_);
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = *original;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = _tmp12_.height;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = *max;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = _tmp14_.height;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
- rect.height = CLAMP (_tmp13_, 0, _tmp15_);
-#line 272 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = rect;
-#line 272 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 1316 "image.c"
-}
-
-
-void
-scale_point (GdkPoint* p,
- gdouble factor,
- GdkPoint* result)
-{
- GdkPoint _result_ = {0};
- GdkPoint _tmp0_ = {0};
- GdkPoint _tmp1_;
- gint _tmp2_;
- GdkPoint _tmp3_;
- gint _tmp4_;
-#line 275 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (p != NULL);
-#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_.x = 0;
-#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_ = _tmp0_;
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = *p;
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = _tmp1_.x;
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_.x = (gint) ((factor * _tmp2_) + 0.5);
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = *p;
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_.y;
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_.y = (gint) ((factor * _tmp4_) + 0.5);
-#line 280 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = _result_;
-#line 280 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 1353 "image.c"
-}
-
-
-void
-add_points (GdkPoint* p1,
- GdkPoint* p2,
- GdkPoint* result)
-{
- GdkPoint _result_ = {0};
- GdkPoint _tmp0_ = {0};
- GdkPoint _tmp1_;
- gint _tmp2_;
- GdkPoint _tmp3_;
- gint _tmp4_;
- GdkPoint _tmp5_;
- gint _tmp6_;
- GdkPoint _tmp7_;
- gint _tmp8_;
-#line 283 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (p1 != NULL);
-#line 283 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (p2 != NULL);
-#line 284 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_.x = 0;
-#line 284 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_ = _tmp0_;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = *p1;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = _tmp1_.x;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = *p2;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_.x;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_.x = _tmp2_ + _tmp4_;
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = *p1;
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_.y;
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = *p2;
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = _tmp7_.y;
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_.y = _tmp6_ + _tmp8_;
-#line 288 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = _result_;
-#line 288 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 1404 "image.c"
-}
-
-
-void
-subtract_points (GdkPoint* p1,
- GdkPoint* p2,
- GdkPoint* result)
-{
- GdkPoint _result_ = {0};
- GdkPoint _tmp0_ = {0};
- GdkPoint _tmp1_;
- gint _tmp2_;
- GdkPoint _tmp3_;
- gint _tmp4_;
- GdkPoint _tmp5_;
- gint _tmp6_;
- GdkPoint _tmp7_;
- gint _tmp8_;
-#line 291 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (p1 != NULL);
-#line 291 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (p2 != NULL);
-#line 292 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_.x = 0;
-#line 292 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_ = _tmp0_;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = *p1;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = _tmp1_.x;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = *p2;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_.x;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_.x = _tmp2_ - _tmp4_;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = *p1;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_.y;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = *p2;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = _tmp7_.y;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
- _result_.y = _tmp6_ - _tmp8_;
-#line 296 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = _result_;
-#line 296 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 1455 "image.c"
-}
-
-
-void
-fix_cairo_pixbuf (GdkPixbuf* pixbuf)
-{
- guchar* gdk_pixels = NULL;
- void* _tmp0_;
- void* _tmp1_;
-#line 300 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = gdk_pixbuf_get_pixels (pixbuf);
-#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _tmp0_;
-#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
- gdk_pixels = _tmp1_;
-#line 1473 "image.c"
- {
- gint j = 0;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- j = 0;
-#line 1478 "image.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = TRUE;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- while (TRUE) {
-#line 1485 "image.c"
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- guchar* p = NULL;
- guchar* _tmp7_;
- guchar* end = NULL;
- guchar* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- guchar* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- if (!_tmp2_) {
-#line 1500 "image.c"
- gint _tmp3_;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = j;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- j = _tmp3_ + 1;
-#line 1506 "image.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = FALSE;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = j;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = gdk_pixbuf_get_height (pixbuf);
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- if (!(_tmp4_ < _tmp6_)) {
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
- break;
-#line 1520 "image.c"
- }
-#line 303 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = gdk_pixels;
-#line 303 "/home/jens/Source/shotwell/src/util/image.vala"
- p = _tmp7_;
-#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = p;
-#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = gdk_pixbuf_get_width (pixbuf);
-#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = _tmp9_;
-#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
- end = _tmp8_ + (4 * _tmp10_);
-#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
- while (TRUE) {
-#line 1536 "image.c"
- guchar* _tmp11_;
- guchar* _tmp12_;
- guchar tmp = '\0';
- guchar* _tmp13_;
- guchar _tmp14_;
- guchar* _tmp15_;
- guchar* _tmp16_;
- guchar _tmp17_;
- guchar _tmp18_;
- guchar* _tmp19_;
- guchar _tmp20_;
- guchar _tmp21_;
- guchar* _tmp22_;
-#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = p;
-#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = end;
-#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
- if (!(_tmp11_ < _tmp12_)) {
-#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
- break;
-#line 1558 "image.c"
- }
-#line 307 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = p;
-#line 307 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = _tmp13_[0];
-#line 307 "/home/jens/Source/shotwell/src/util/image.vala"
- tmp = _tmp14_;
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = p;
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_ = p;
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp17_ = _tmp16_[2];
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_[0] = _tmp17_;
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp18_ = _tmp15_[0];
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp19_ = p;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp20_ = tmp;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp19_[2] = _tmp20_;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp21_ = _tmp19_[2];
-#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp22_ = p;
-#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
- p = _tmp22_ + 4;
-#line 1588 "image.c"
- }
-#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp23_ = gdk_pixels;
-#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp24_ = gdk_pixbuf_get_rowstride (pixbuf);
-#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp25_ = _tmp24_;
-#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
- gdk_pixels = _tmp23_ + _tmp25_;
-#line 1598 "image.c"
- }
- }
- }
-}
-
-
-/**
- * Finds the size of the smallest axially-aligned rectangle that could contain
- * a rectangle src_width by src_height, rotated by angle.
- *
- * @param src_width The width of the incoming rectangle.
- * @param src_height The height of the incoming rectangle.
- * @param angle The amount to rotate by, given in degrees.
- * @param dest_width The width of the computed rectangle.
- * @param dest_height The height of the computed rectangle.
- */
-void
-compute_arb_rotated_size (gdouble src_width,
- gdouble src_height,
- gdouble angle,
- gdouble* dest_width,
- gdouble* dest_height)
-{
- gdouble _vala_dest_width = 0.0;
- gdouble _vala_dest_height = 0.0;
-#line 337 "/home/jens/Source/shotwell/src/util/image.vala"
- angle = fabs (degrees_to_radians (angle));
-#line 338 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (angle <= G_PI_2, "angle <= Math.PI_2");
-#line 339 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_dest_width = (src_width * cos (angle)) + (src_height * sin (angle));
-#line 340 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_dest_height = (src_height * cos (angle)) + (src_width * sin (angle));
-#line 334 "/home/jens/Source/shotwell/src/util/image.vala"
- if (dest_width) {
-#line 334 "/home/jens/Source/shotwell/src/util/image.vala"
- *dest_width = _vala_dest_width;
-#line 1636 "image.c"
- }
-#line 334 "/home/jens/Source/shotwell/src/util/image.vala"
- if (dest_height) {
-#line 334 "/home/jens/Source/shotwell/src/util/image.vala"
- *dest_height = _vala_dest_height;
-#line 1642 "image.c"
- }
-}
-
-
-/**
- * @brief Rotates a pixbuf to an arbitrary angle, given in degrees, and returns the rotated pixbuf.
- *
- * @param source_pixbuf The source image that needs to be angled.
- * @param angle The angle the source image should be rotated by.
- */
-GdkPixbuf*
-rotate_arb (GdkPixbuf* source_pixbuf,
- gdouble angle)
-{
- GdkPixbuf* result = NULL;
- gdouble x_tmp = 0.0;
- gdouble y_tmp = 0.0;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gdouble _tmp5_ = 0.0;
- gdouble _tmp6_ = 0.0;
- GdkPixbuf* dest_pixbuf = NULL;
- gdouble _tmp7_;
- gdouble _tmp8_;
- GdkPixbuf* _tmp9_;
- cairo_format_t _tmp10_ = 0;
- gboolean _tmp11_;
- gboolean _tmp12_;
- cairo_surface_t* surface = NULL;
- GdkPixbuf* _tmp13_;
- void* _tmp14_;
- void* _tmp15_;
- GdkPixbuf* _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
- GdkPixbuf* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- GdkPixbuf* _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- cairo_surface_t* _tmp25_;
- cairo_t* context = NULL;
- cairo_surface_t* _tmp26_;
- cairo_t* _tmp27_;
- cairo_t* _tmp28_;
- cairo_t* _tmp29_;
- GdkPixbuf* _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
- GdkPixbuf* _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- cairo_t* _tmp36_;
- cairo_t* _tmp37_;
- GdkPixbuf* _tmp38_;
- gint _tmp39_;
- gint _tmp40_;
- GdkPixbuf* _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- cairo_t* _tmp44_;
- cairo_t* _tmp45_;
- gint _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
- cairo_t* _tmp50_;
- cairo_t* _tmp51_;
- cairo_pattern_t* _tmp52_;
- cairo_t* _tmp53_;
- GdkPixbuf* _tmp54_;
-#line 349 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_val_if_fail (GDK_IS_PIXBUF (source_pixbuf), NULL);
-#line 353 "/home/jens/Source/shotwell/src/util/image.vala"
- if (angle == 0.0) {
-#line 1721 "image.c"
- GdkPixbuf* _tmp0_;
-#line 354 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = _g_object_ref0 (source_pixbuf);
-#line 354 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp0_;
-#line 354 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 1729 "image.c"
- }
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = gdk_pixbuf_get_width (source_pixbuf);
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = _tmp1_;
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = gdk_pixbuf_get_height (source_pixbuf);
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_;
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
- compute_arb_rotated_size ((gdouble) _tmp2_, (gdouble) _tmp4_, angle, &_tmp5_, &_tmp6_);
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
- x_tmp = _tmp5_;
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
- y_tmp = _tmp6_;
-#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = x_tmp;
-#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = y_tmp;
-#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, (gint) round (_tmp7_), (gint) round (_tmp8_));
-#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
- dest_pixbuf = _tmp9_;
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = gdk_pixbuf_get_has_alpha (source_pixbuf);
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = _tmp11_;
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp12_) {
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = CAIRO_FORMAT_ARGB32;
-#line 1761 "image.c"
- } else {
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = CAIRO_FORMAT_RGB24;
-#line 1765 "image.c"
- }
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = dest_pixbuf;
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = gdk_pixbuf_get_pixels (_tmp13_);
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = _tmp14_;
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_ = dest_pixbuf;
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp17_ = gdk_pixbuf_get_width (_tmp16_);
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp18_ = _tmp17_;
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp19_ = dest_pixbuf;
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp20_ = gdk_pixbuf_get_height (_tmp19_);
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp21_ = _tmp20_;
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp22_ = dest_pixbuf;
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp23_ = gdk_pixbuf_get_rowstride (_tmp22_);
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp24_ = _tmp23_;
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp25_ = cairo_image_surface_create_for_data ((guchar*) _tmp15_, _tmp10_, _tmp18_, _tmp21_, _tmp24_);
-#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
- surface = _tmp25_;
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp26_ = surface;
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp27_ = cairo_create (_tmp26_);
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
- context = _tmp27_;
-#line 374 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp28_ = context;
-#line 374 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_set_source_rgb (_tmp28_, (gdouble) 0, (gdouble) 0, (gdouble) 0);
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp29_ = context;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp30_ = dest_pixbuf;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp31_ = gdk_pixbuf_get_width (_tmp30_);
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp32_ = _tmp31_;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp33_ = dest_pixbuf;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp34_ = gdk_pixbuf_get_height (_tmp33_);
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp35_ = _tmp34_;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_rectangle (_tmp29_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp32_, (gdouble) _tmp35_);
-#line 376 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp36_ = context;
-#line 376 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_fill (_tmp36_);
-#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp37_ = context;
-#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp38_ = dest_pixbuf;
-#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp39_ = gdk_pixbuf_get_width (_tmp38_);
-#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp40_ = _tmp39_;
-#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp41_ = dest_pixbuf;
-#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp42_ = gdk_pixbuf_get_height (_tmp41_);
-#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp43_ = _tmp42_;
-#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_translate (_tmp37_, (gdouble) (_tmp40_ / 2), (gdouble) (_tmp43_ / 2));
-#line 379 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp44_ = context;
-#line 379 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_rotate (_tmp44_, degrees_to_radians (angle));
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp45_ = context;
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp46_ = gdk_pixbuf_get_width (source_pixbuf);
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp47_ = _tmp46_;
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp48_ = gdk_pixbuf_get_height (source_pixbuf);
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp49_ = _tmp48_;
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_translate (_tmp45_, (gdouble) ((-_tmp47_) / 2), (gdouble) ((-_tmp49_) / 2));
-#line 382 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp50_ = context;
-#line 382 "/home/jens/Source/shotwell/src/util/image.vala"
- gdk_cairo_set_source_pixbuf (_tmp50_, source_pixbuf, (gdouble) 0, (gdouble) 0);
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp51_ = context;
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp52_ = cairo_get_source (_tmp51_);
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_pattern_set_filter (_tmp52_, CAIRO_FILTER_BEST);
-#line 384 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp53_ = context;
-#line 384 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_paint (_tmp53_);
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp54_ = dest_pixbuf;
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
- fix_cairo_pixbuf (_tmp54_);
-#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
- result = dest_pixbuf;
-#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
- _cairo_destroy0 (context);
-#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
- _cairo_surface_destroy0 (surface);
-#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 1883 "image.c"
-}
-
-
-/**
- * @brief Rotates a point around the upper left corner of an image to an arbitrary angle,
- * given in degrees, and returns the rotated point, translated such that it, along with its attendant
- * image, are in positive x, positive y.
- *
- * @note May be subject to slight inaccuracy as Gdk points' coordinates may only be in whole pixels,
- * so the fractional component is lost.
- *
- * @param source_point The point to be rotated and scaled.
- * @param img_w The width of the source image (unrotated).
- * @param img_h The height of the source image (unrotated).
- * @param angle The angle the source image is to be rotated by to straighten it.
- */
-void
-rotate_point_arb (GdkPoint* source_point,
- gint img_w,
- gint img_h,
- gdouble angle,
- gboolean invert,
- GdkPoint* result)
-{
- gdouble dest_width = 0.0;
- gdouble dest_height = 0.0;
- gdouble _tmp1_ = 0.0;
- gdouble _tmp2_ = 0.0;
- cairo_matrix_t matrix = {0};
- gdouble _tmp3_;
- gdouble _tmp4_;
- gdouble dest_x = 0.0;
- GdkPoint _tmp5_;
- gint _tmp6_;
- gdouble dest_y = 0.0;
- GdkPoint _tmp7_;
- gint _tmp8_;
- gdouble _tmp9_;
- gdouble _tmp10_;
- GdkPoint _tmp11_ = {0};
-#line 406 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (source_point != NULL);
-#line 409 "/home/jens/Source/shotwell/src/util/image.vala"
- if (angle == 0.0) {
-#line 1928 "image.c"
- GdkPoint _tmp0_;
-#line 411 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = *source_point;
-#line 411 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = _tmp0_;
-#line 411 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 1936 "image.c"
- }
-#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
- compute_arb_rotated_size ((gdouble) img_w, (gdouble) img_h, angle, &_tmp1_, &_tmp2_);
-#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
- dest_width = _tmp1_;
-#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
- dest_height = _tmp2_;
-#line 418 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_matrix_init_identity (&matrix);
-#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = dest_width;
-#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = dest_height;
-#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_matrix_translate (&matrix, _tmp3_ / 2, _tmp4_ / 2);
-#line 420 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_matrix_rotate (&matrix, degrees_to_radians (angle));
-#line 421 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_matrix_translate (&matrix, (gdouble) ((-img_w) / 2), (gdouble) ((-img_h) / 2));
-#line 422 "/home/jens/Source/shotwell/src/util/image.vala"
- if (invert) {
-#line 423 "/home/jens/Source/shotwell/src/util/image.vala"
- _vala_assert (cairo_matrix_invert (&matrix) == CAIRO_STATUS_SUCCESS, "matrix.invert() == Cairo.Status.SUCCESS");
-#line 1960 "image.c"
- }
-#line 425 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = *source_point;
-#line 425 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_.x;
-#line 425 "/home/jens/Source/shotwell/src/util/image.vala"
- dest_x = (gdouble) _tmp6_;
-#line 426 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = *source_point;
-#line 426 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = _tmp7_.y;
-#line 426 "/home/jens/Source/shotwell/src/util/image.vala"
- dest_y = (gdouble) _tmp8_;
-#line 427 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_matrix_transform_point (&matrix, &dest_x, &dest_y);
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = dest_x;
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = dest_y;
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_.x = (gint) _tmp9_;
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_.y = (gint) _tmp10_;
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = _tmp11_;
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 1988 "image.c"
-}
-
-
-/**
- * @brief <u>De</u>rotates a point around the upper left corner of an image from an arbitrary angle,
- * given in degrees, and returns the de-rotated point, taking into account any translation necessary
- * to make sure all of the rotated image stays in positive x, positive y.
- *
- * @note May be subject to slight inaccuracy as Gdk points' coordinates may only be in whole pixels,
- * so the fractional component is lost.
- *
- * @param source_point The point to be de-rotated.
- * @param img_w The width of the source image (unrotated).
- * @param img_h The height of the source image (unrotated).
- * @param angle The angle the source image is to be rotated by to straighten it.
- */
-void
-derotate_point_arb (GdkPoint* source_point,
- gint img_w,
- gint img_h,
- gdouble angle,
- GdkPoint* result)
-{
- GdkPoint _tmp0_;
- GdkPoint _tmp1_ = {0};
-#line 445 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (source_point != NULL);
-#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = *source_point;
-#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
- rotate_point_arb (&_tmp0_, img_w, img_h, angle, TRUE, &_tmp1_);
-#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = _tmp1_;
-#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 2024 "image.c"
-}
-
-
-static gpointer
-_cairo_surface_reference0 (gpointer self)
-{
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
- return self ? cairo_surface_reference (self) : NULL;
-#line 2033 "image.c"
-}
-
-
-cairo_surface_t*
-get_background_surface (void)
-{
- cairo_surface_t* result = NULL;
- cairo_surface_t* _tmp0_;
- cairo_surface_t* _tmp31_;
- cairo_surface_t* _tmp32_;
-#line 452 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = background_surface;
-#line 452 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp0_ == NULL) {
-#line 2048 "image.c"
- gchar* color_a = NULL;
- gchar* color_b = NULL;
- ConfigFacade* config = NULL;
- ConfigFacade* _tmp1_;
- gchar* type = NULL;
- ConfigFacade* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- const gchar* _tmp5_;
- GQuark _tmp7_ = 0U;
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- static GQuark _tmp6_label0 = 0;
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- static GQuark _tmp6_label1 = 0;
-#line 2063 "image.c"
- cairo_surface_t* _tmp17_;
- cairo_t* ctx = NULL;
- cairo_surface_t* _tmp18_;
- cairo_t* _tmp19_;
- cairo_t* _tmp20_;
- cairo_t* _tmp21_;
- const gchar* _tmp22_;
- cairo_t* _tmp23_;
- cairo_t* _tmp24_;
- cairo_t* _tmp25_;
- cairo_t* _tmp26_;
- const gchar* _tmp27_;
- cairo_t* _tmp28_;
- cairo_t* _tmp29_;
- cairo_t* _tmp30_;
-#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = config_facade_get_instance ();
-#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
- config = _tmp1_;
-#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = config;
-#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = configuration_facade_get_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
- type = _tmp3_;
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = type;
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = _tmp4_;
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = (NULL == _tmp5_) ? 0 : g_quark_from_string (_tmp5_);
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp7_ == ((0 != _tmp6_label0) ? _tmp6_label0 : (_tmp6_label0 = g_quark_from_static_string ("checkered")))) {
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- switch (0) {
-#line 2099 "image.c"
- default:
- {
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 460 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = g_strdup ("#808080");
-#line 460 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (color_a);
-#line 460 "/home/jens/Source/shotwell/src/util/image.vala"
- color_a = _tmp8_;
-#line 461 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = g_strdup ("#ccc");
-#line 461 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (color_b);
-#line 461 "/home/jens/Source/shotwell/src/util/image.vala"
- color_b = _tmp9_;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
- break;
-#line 2118 "image.c"
- }
- }
- } else if (_tmp7_ == ((0 != _tmp6_label1) ? _tmp6_label1 : (_tmp6_label1 = g_quark_from_static_string ("solid")))) {
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- switch (0) {
-#line 2124 "image.c"
- default:
- {
- ConfigFacade* _tmp10_;
- gchar* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_ = config;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp11_ = configuration_facade_get_transparent_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (color_b);
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
- color_b = _tmp11_;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = color_b;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (color_a);
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
- color_a = _tmp13_;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
- break;
-#line 2149 "image.c"
- }
- }
- } else {
-#line 458 "/home/jens/Source/shotwell/src/util/image.vala"
- switch (0) {
-#line 2155 "image.c"
- default:
- {
- gchar* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = g_strdup ("#000");
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (color_b);
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
- color_b = _tmp14_;
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = color_b;
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (color_a);
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
- color_a = _tmp16_;
-#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
- break;
-#line 2177 "image.c"
- }
- }
- }
-#line 471 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp17_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 16, 16);
-#line 471 "/home/jens/Source/shotwell/src/util/image.vala"
- _cairo_surface_destroy0 (background_surface);
-#line 471 "/home/jens/Source/shotwell/src/util/image.vala"
- background_surface = _tmp17_;
-#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp18_ = background_surface;
-#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp19_ = cairo_create (_tmp18_);
-#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
- ctx = _tmp19_;
-#line 473 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp20_ = ctx;
-#line 473 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_set_operator (_tmp20_, CAIRO_OPERATOR_SOURCE);
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp21_ = ctx;
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp22_ = color_a;
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
- set_source_color_from_string (_tmp21_, _tmp22_);
-#line 475 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp23_ = ctx;
-#line 475 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_rectangle (_tmp23_, (gdouble) 0, (gdouble) 0, (gdouble) 8, (gdouble) 8);
-#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp24_ = ctx;
-#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_rectangle (_tmp24_, (gdouble) 8, (gdouble) 8, (gdouble) 8, (gdouble) 8);
-#line 477 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp25_ = ctx;
-#line 477 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_fill (_tmp25_);
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp26_ = ctx;
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp27_ = color_b;
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
- set_source_color_from_string (_tmp26_, _tmp27_);
-#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp28_ = ctx;
-#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_rectangle (_tmp28_, (gdouble) 0, (gdouble) 8, (gdouble) 8, (gdouble) 8);
-#line 480 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp29_ = ctx;
-#line 480 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_rectangle (_tmp29_, (gdouble) 8, (gdouble) 0, (gdouble) 8, (gdouble) 8);
-#line 481 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp30_ = ctx;
-#line 481 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_fill (_tmp30_);
-#line 452 "/home/jens/Source/shotwell/src/util/image.vala"
- _cairo_destroy0 (ctx);
-#line 452 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (type);
-#line 452 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_object_unref0 (config);
-#line 452 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (color_b);
-#line 452 "/home/jens/Source/shotwell/src/util/image.vala"
- _g_free0 (color_a);
-#line 2243 "image.c"
- }
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp31_ = background_surface;
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp32_ = _cairo_surface_reference0 (_tmp31_);
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
- result = _tmp32_;
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
- return result;
-#line 2253 "image.c"
-}
-
-
-void
-invalidate_transparent_background (void)
-{
-#line 488 "/home/jens/Source/shotwell/src/util/image.vala"
- _cairo_surface_destroy0 (background_surface);
-#line 488 "/home/jens/Source/shotwell/src/util/image.vala"
- background_surface = NULL;
-#line 2264 "image.c"
-}
-
-
-void
-paint_pixmap_with_background (cairo_t* ctx,
- GdkPixbuf* pixbuf,
- gint x,
- gint y)
-{
-#line 491 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (ctx != NULL);
-#line 491 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 492 "/home/jens/Source/shotwell/src/util/image.vala"
- if (gdk_pixbuf_get_has_alpha (pixbuf)) {
-#line 2280 "image.c"
- cairo_surface_t* _tmp0_;
- cairo_surface_t* _tmp1_;
- cairo_pattern_t* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 493 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = get_background_surface ();
-#line 493 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _tmp0_;
-#line 493 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_set_source_surface (ctx, _tmp1_, (gdouble) 0, (gdouble) 0);
-#line 493 "/home/jens/Source/shotwell/src/util/image.vala"
- _cairo_surface_destroy0 (_tmp1_);
-#line 494 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = cairo_get_source (ctx);
-#line 494 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_pattern_set_extend (_tmp2_, CAIRO_EXTEND_REPEAT);
-#line 495 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = gdk_pixbuf_get_width (pixbuf);
-#line 495 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_ = _tmp3_;
-#line 495 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp5_ = gdk_pixbuf_get_height (pixbuf);
-#line 495 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = _tmp5_;
-#line 495 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_rectangle (ctx, (gdouble) x, (gdouble) y, (gdouble) _tmp4_, (gdouble) _tmp6_);
-#line 496 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_fill (ctx);
-#line 2312 "image.c"
- }
-#line 499 "/home/jens/Source/shotwell/src/util/image.vala"
- gdk_cairo_set_source_pixbuf (ctx, pixbuf, (gdouble) x, (gdouble) y);
-#line 500 "/home/jens/Source/shotwell/src/util/image.vala"
- cairo_paint (ctx);
-#line 2318 "image.c"
-}
-
-
-void
-clamp_inside_rotated_image (Box* src,
- gint img_w,
- gint img_h,
- gdouble angle_deg,
- gboolean preserve_geom,
- Box* result)
-{
- GdkPoint top_left = {0};
- Box _tmp0_;
- gint _tmp1_;
- Box _tmp2_;
- gint _tmp3_;
- GdkPoint _tmp4_ = {0};
- GdkPoint _tmp5_ = {0};
- GdkPoint top_right = {0};
- Box _tmp6_;
- gint _tmp7_;
- Box _tmp8_;
- gint _tmp9_;
- GdkPoint _tmp10_ = {0};
- GdkPoint _tmp11_ = {0};
- GdkPoint bottom_left = {0};
- Box _tmp12_;
- gint _tmp13_;
- Box _tmp14_;
- gint _tmp15_;
- GdkPoint _tmp16_ = {0};
- GdkPoint _tmp17_ = {0};
- GdkPoint bottom_right = {0};
- Box _tmp18_;
- gint _tmp19_;
- Box _tmp20_;
- gint _tmp21_;
- GdkPoint _tmp22_ = {0};
- GdkPoint _tmp23_ = {0};
- gdouble angle = 0.0;
- gint top_offset = 0;
- gint bottom_offset = 0;
- gint left_offset = 0;
- gint right_offset = 0;
- gint top = 0;
- GdkPoint _tmp24_;
- gint _tmp25_;
- GdkPoint _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
- gint bottom = 0;
- GdkPoint _tmp31_;
- gint _tmp32_;
- GdkPoint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- gint left = 0;
- GdkPoint _tmp38_;
- gint _tmp39_;
- GdkPoint _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- gint right = 0;
- GdkPoint _tmp45_;
- gint _tmp46_;
- GdkPoint _tmp47_;
- gint _tmp48_;
- gint _tmp49_;
- Box _tmp52_ = {0};
-#line 504 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (src != NULL);
-#line 507 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = *src;
-#line 507 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = _tmp0_.left;
-#line 507 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = *src;
-#line 507 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = _tmp2_.top;
-#line 507 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_.x = _tmp1_;
-#line 507 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp4_.y = _tmp3_;
-#line 507 "/home/jens/Source/shotwell/src/util/image.vala"
- derotate_point_arb (&_tmp4_, img_w, img_h, angle_deg, &_tmp5_);
-#line 507 "/home/jens/Source/shotwell/src/util/image.vala"
- top_left = _tmp5_;
-#line 508 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp6_ = *src;
-#line 508 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp7_ = _tmp6_.right;
-#line 508 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp8_ = *src;
-#line 508 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp9_ = _tmp8_.top;
-#line 508 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_.x = _tmp7_;
-#line 508 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp10_.y = _tmp9_;
-#line 508 "/home/jens/Source/shotwell/src/util/image.vala"
- derotate_point_arb (&_tmp10_, img_w, img_h, angle_deg, &_tmp11_);
-#line 508 "/home/jens/Source/shotwell/src/util/image.vala"
- top_right = _tmp11_;
-#line 509 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp12_ = *src;
-#line 509 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp13_ = _tmp12_.left;
-#line 509 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp14_ = *src;
-#line 509 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp15_ = _tmp14_.bottom;
-#line 509 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_.x = _tmp13_;
-#line 509 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp16_.y = _tmp15_;
-#line 509 "/home/jens/Source/shotwell/src/util/image.vala"
- derotate_point_arb (&_tmp16_, img_w, img_h, angle_deg, &_tmp17_);
-#line 509 "/home/jens/Source/shotwell/src/util/image.vala"
- bottom_left = _tmp17_;
-#line 510 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp18_ = *src;
-#line 510 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp19_ = _tmp18_.right;
-#line 510 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp20_ = *src;
-#line 510 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp21_ = _tmp20_.bottom;
-#line 510 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp22_.x = _tmp19_;
-#line 510 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp22_.y = _tmp21_;
-#line 510 "/home/jens/Source/shotwell/src/util/image.vala"
- derotate_point_arb (&_tmp22_, img_w, img_h, angle_deg, &_tmp23_);
-#line 510 "/home/jens/Source/shotwell/src/util/image.vala"
- bottom_right = _tmp23_;
-#line 512 "/home/jens/Source/shotwell/src/util/image.vala"
- angle = degrees_to_radians (angle_deg);
-#line 513 "/home/jens/Source/shotwell/src/util/image.vala"
- top_offset = 0;
-#line 513 "/home/jens/Source/shotwell/src/util/image.vala"
- bottom_offset = 0;
-#line 513 "/home/jens/Source/shotwell/src/util/image.vala"
- left_offset = 0;
-#line 513 "/home/jens/Source/shotwell/src/util/image.vala"
- right_offset = 0;
-#line 515 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp24_ = top_left;
-#line 515 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp25_ = _tmp24_.y;
-#line 515 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp26_ = top_right;
-#line 515 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp27_ = _tmp26_.y;
-#line 515 "/home/jens/Source/shotwell/src/util/image.vala"
- top = MIN (_tmp25_, _tmp27_);
-#line 516 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp28_ = top;
-#line 516 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp28_ < 0) {
-#line 2478 "image.c"
- gint _tmp29_;
- gdouble _tmp30_;
-#line 517 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp29_ = top;
-#line 517 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp30_ = angle;
-#line 517 "/home/jens/Source/shotwell/src/util/image.vala"
- top_offset = (gint) ((0 - _tmp29_) * cos (_tmp30_));
-#line 2487 "image.c"
- }
-#line 519 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp31_ = bottom_left;
-#line 519 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp32_ = _tmp31_.y;
-#line 519 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp33_ = bottom_right;
-#line 519 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp34_ = _tmp33_.y;
-#line 519 "/home/jens/Source/shotwell/src/util/image.vala"
- bottom = MAX (_tmp32_, _tmp34_);
-#line 520 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp35_ = bottom;
-#line 520 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp35_ > img_h) {
-#line 2503 "image.c"
- gint _tmp36_;
- gdouble _tmp37_;
-#line 521 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp36_ = bottom;
-#line 521 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp37_ = angle;
-#line 521 "/home/jens/Source/shotwell/src/util/image.vala"
- bottom_offset = (gint) ((img_h - _tmp36_) * cos (_tmp37_));
-#line 2512 "image.c"
- }
-#line 523 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp38_ = top_left;
-#line 523 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp39_ = _tmp38_.x;
-#line 523 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp40_ = bottom_left;
-#line 523 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp41_ = _tmp40_.x;
-#line 523 "/home/jens/Source/shotwell/src/util/image.vala"
- left = MIN (_tmp39_, _tmp41_);
-#line 524 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp42_ = left;
-#line 524 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp42_ < 0) {
-#line 2528 "image.c"
- gint _tmp43_;
- gdouble _tmp44_;
-#line 525 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp43_ = left;
-#line 525 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp44_ = angle;
-#line 525 "/home/jens/Source/shotwell/src/util/image.vala"
- left_offset = (gint) ((0 - _tmp43_) * cos (_tmp44_));
-#line 2537 "image.c"
- }
-#line 527 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp45_ = top_right;
-#line 527 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp46_ = _tmp45_.x;
-#line 527 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp47_ = bottom_right;
-#line 527 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp48_ = _tmp47_.x;
-#line 527 "/home/jens/Source/shotwell/src/util/image.vala"
- right = MAX (_tmp46_, _tmp48_);
-#line 528 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp49_ = right;
-#line 528 "/home/jens/Source/shotwell/src/util/image.vala"
- if (_tmp49_ > img_w) {
-#line 2553 "image.c"
- gint _tmp50_;
- gdouble _tmp51_;
-#line 529 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp50_ = right;
-#line 529 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp51_ = angle;
-#line 529 "/home/jens/Source/shotwell/src/util/image.vala"
- right_offset = (gint) ((img_w - _tmp50_) * cos (_tmp51_));
-#line 2562 "image.c"
- }
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- if (preserve_geom) {
-#line 2566 "image.c"
- gint _tmp53_;
- gint _tmp54_;
- gint _tmp55_;
- gint _tmp56_;
- Box _tmp57_ = {0};
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp53_ = left_offset;
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp54_ = right_offset;
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp55_ = top_offset;
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp56_ = bottom_offset;
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- box_get_offset (src, _tmp53_ + _tmp54_, _tmp55_ + _tmp56_, &_tmp57_);
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp52_ = _tmp57_;
-#line 2584 "image.c"
- } else {
- Box _tmp58_;
- gint _tmp59_;
- gint _tmp60_;
- Box _tmp61_;
- gint _tmp62_;
- gint _tmp63_;
- Box _tmp64_;
- gint _tmp65_;
- gint _tmp66_;
- Box _tmp67_;
- gint _tmp68_;
- gint _tmp69_;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp58_ = *src;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp59_ = _tmp58_.left;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp60_ = left_offset;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp61_ = *src;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp62_ = _tmp61_.top;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp63_ = top_offset;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp64_ = *src;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp65_ = _tmp64_.right;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp66_ = right_offset;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp67_ = *src;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp68_ = _tmp67_.bottom;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp69_ = bottom_offset;
-#line 532 "/home/jens/Source/shotwell/src/util/image.vala"
- box_init (&_tmp52_, _tmp59_ + _tmp60_, _tmp62_ + _tmp63_, _tmp65_ + _tmp66_, _tmp68_ + _tmp69_);
-#line 2624 "image.c"
- }
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- *result = _tmp52_;
-#line 531 "/home/jens/Source/shotwell/src/util/image.vala"
- return;
-#line 2630 "image.c"
-}
-
-
-
diff --git a/src/util/image.vala b/src/util/image.vala
index f8646e2..0a30339 100644
--- a/src/util/image.vala
+++ b/src/util/image.vala
@@ -4,121 +4,6 @@
* See the COPYING file in this distribution.
*/
-
-/* XPM */
-private const string fallback_image_missing[] = {
-/* columns rows colors chars-per-pixel */
-"48 48 54 1 ",
-" c #6A6D67",
-". c #6C6E69",
-"X c #72746F",
-"o c #747672",
-"O c #777974",
-"+ c #797B77",
-"@ c #7C7E7A",
-"# c #7F817C",
-"$ c #81837F",
-"% c #848682",
-"& c #878984",
-"* c #888A86",
-"= c #8C8D8A",
-"- c #8F908C",
-"; c #90928E",
-": c #949591",
-"> c #969894",
-", c #999B96",
-"< c #9C9E9A",
-"1 c #9FA09C",
-"2 c #A1A39E",
-"3 c #A4A6A2",
-"4 c #A6A9A4",
-"5 c #A9ABA6",
-"6 c #ACADA9",
-"7 c #AEB1AB",
-"8 c #B1B2AF",
-"9 c #B3B4B1",
-"0 c #B6B9B3",
-"q c #B9BCB6",
-"w c #BDBEBA",
-"e c #BEC2BB",
-"r c #C1C4BE",
-"t c #C5C5C2",
-"y c #C6C9C3",
-"u c #C9CCC6",
-"i c #CCCDCB",
-"p c #CED2CA",
-"a c #D2D6CE",
-"s c #D5D5D3",
-"d c #D7D8D5",
-"f c #D9D9D6",
-"g c #DCDCDA",
-"h c #DFE0DD",
-"j c #E0E0DE",
-"k c #E4E4E2",
-"l c #E7E8E5",
-"z c #E9E9E7",
-"x c #EDEDEC",
-"c c #EFF0EE",
-"v c #F1F1EF",
-"b c #F2F2F1",
-"n c #FFFFFF",
-"m c None",
-/* pixels */
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmaaaaaaaaaasaisaaaaaaaaaaaaaaaaaaapppiipuuuuumm",
-"mannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnym",
-"manbbbbbbbbbvbbvvvvxvvvbvvvvvvvvccccccxxvxvxxnym",
-"manbt89898888988888888888999999999999999999txnrm",
-"manb6======================-;;=;;;;;;;;;;=:7znrm",
-"manv6&%%**%*%%%%*%%****=======;==;;;;=;=;==7znem",
-"manv4%%%%$%%%%%%%%%%%=****=======;==-======6znwm",
-"manx3%%#$$$$##%#$%%%*%**==========-=--=====6znqm",
-"manx1$@%#$@$###%%%%=****=*===--;;----====*=5lnqm",
-"manx<@@@@@@@@##%$%%%%****========-==-======5kn0m",
-"manz<@@@+@+@@@#$%%%%%=%=%===;=:=--------=-*4kn8m",
-"manz>O+O+O+@@@#$$%%%%========;;=--------=*=3kn9m",
-"mpnl:OOOOO+@@$##%%%%%=%=====;=;;--;-----===3kn8m",
-"munl;OooOOO@@@#$%%%%%======;;;;;:;;;;;---==1hn7m",
-"munl;oXoOO+@###$%%=%=======;::;::::;;---&#+-gn7m",
-"mynk*XXooOO+$$#$%%%%=%===;;:;:::::;:-$#XooX-fn5m",
-"mynk*XXOOO@@$$$$%%=%====;::::>::;*#OXXXXXXX*dn5m",
-"mrnk*oOO@@@#$$$$%=====::::>>>=%@OXOooXXXooo&dn3m",
-"mrnj*++@$$$$**$===-;;::>>:=@Ooo@XOOoo#o#OOO=fn3m",
-"menj*@#$$$$$**===;;:::=%@@@@@@O@#O#Oo#o#++@;gn2m",
-"menj*$$$$&**===;:;=*#@@@@@@@@@@@#######o##%>gn2m",
-"menh*$$%**===;=*%###########%@@@###$####$%=,gn1m",
-"m0nj=%***=**&$$$%$$$%$$%$$$$%$$$$$$$$$$%*;:2hn<m",
-"m0nj****&&&$$&&$%%%%%%%%%%%%%%%%$$*$%%%*;>13gn,m",
-"m0ng****&&&&&&&&&&&&*%*%*%%*%******%**-:,136kz;m",
-"m0nh***$&&&&&&&&&&&&%**********%*$***;:,1358r7*m",
-"m8ng*&&&&&&&&&*$&*&&&&$=$=$=&&&&&&**=:,<11>$65mm",
-"m7ng*&&&&&&&&&**&&&&&&**=$-$&&&&&&*-:,1..&1wi:mm",
-"m7ng&&&&&&&&=$*$&&&&&***$$$$&&&***=>,1<onxsi6*mm",
-"m6nf*&&&&&*&$***&&&&*$*$--$-&&&%*=;,13,:ztw9%mmm",
-"m5nf*%&&&&&&=$=$%*&&**%*$$&&&&**=>,225;5srw%mmmm",
-"m4nf3*&&**&&$-$-*******%$;&&*&*->,2365+ui7$mmmmm",
-"m3nsfffdddsddaffssssdassgaaaassddfgjg4wu;ommmmmm",
-"m3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvq3<$.mmmmmmm",
-"mm2211111,<,,,,,,>>>>:::;::;----=====@mmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
-"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm"
-};
-
-bool is_color_parsable(string spec) {
- var color = Gdk.RGBA ();
- return color.parse(spec);
-}
-
Gdk.RGBA parse_color(string spec) {
return fetch_color(spec);
}
@@ -148,7 +33,11 @@ Gdk.Pixbuf get_placeholder_pixbuf () {
pixbuf = icon_theme.load_icon("image-missing",
Gtk.IconSize.DIALOG, 0);
} catch (Error error) {
- pixbuf = new Gdk.Pixbuf.from_xpm_data(fallback_image_missing);
+ try {
+ pixbuf = new Gdk.Pixbuf.from_resource("/org/gnome/Shotwell/icons/image-missing.png");
+ } catch (Error err) {
+ warning("Could not load fall-back icon: %s", err.message);
+ }
warning("Could not load icon from theme: %s", error.message);
}
diff --git a/src/util/misc.c b/src/util/misc.c
deleted file mode 100644
index cfc0b70..0000000
--- a/src/util/misc.c
+++ /dev/null
@@ -1,3020 +0,0 @@
-/* misc.c generated by valac 0.40.4, the Vala compiler
- * generated from misc.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <time.h>
-#include <gio/gio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gee.h>
-#include <gdk/gdk.h>
-#include <float.h>
-#include <math.h>
-#include <gobject/gvaluecollector.h>
-
-#define _g_checksum_free0(var) ((var == NULL) ? NULL : (var = (g_checksum_free (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-
-#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))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#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))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#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_PHOTO_ID (photo_id_get_type ())
-typedef struct _PhotoID PhotoID;
-
-#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
-#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
-#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY))
-#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass))
-
-typedef struct _MediaCollectionRegistry MediaCollectionRegistry;
-typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
-#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL)))
-
-#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
-#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
-#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
-#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
-#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
-
-typedef struct _OneShotScheduler OneShotScheduler;
-typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
-typedef struct _OneShotSchedulerPrivate OneShotSchedulerPrivate;
-typedef struct _ParamSpecOneShotScheduler ParamSpecOneShotScheduler;
-
-#define TYPE_OP_TIMER (op_timer_get_type ())
-#define OP_TIMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OP_TIMER, OpTimer))
-#define OP_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OP_TIMER, OpTimerClass))
-#define IS_OP_TIMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OP_TIMER))
-#define IS_OP_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OP_TIMER))
-#define OP_TIMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OP_TIMER, OpTimerClass))
-
-typedef struct _OpTimer OpTimer;
-typedef struct _OpTimerClass OpTimerClass;
-typedef struct _OpTimerPrivate OpTimerPrivate;
-#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
-typedef struct _ParamSpecOpTimer ParamSpecOpTimer;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data);
-struct _PhotoID {
- gint64 id;
-};
-
-typedef void (*OneShotCallback) (void* user_data);
-struct _OneShotScheduler {
- GTypeInstance parent_instance;
- volatile int ref_count;
- OneShotSchedulerPrivate * priv;
-};
-
-struct _OneShotSchedulerClass {
- GTypeClass parent_class;
- void (*finalize) (OneShotScheduler *self);
-};
-
-struct _OneShotSchedulerPrivate {
- gchar* name;
- OneShotCallback callback;
- gpointer callback_target;
- guint scheduled;
-};
-
-struct _ParamSpecOneShotScheduler {
- GParamSpec parent_instance;
-};
-
-struct _OpTimer {
- GTypeInstance parent_instance;
- volatile int ref_count;
- OpTimerPrivate * priv;
-};
-
-struct _OpTimerClass {
- GTypeClass parent_class;
- void (*finalize) (OpTimer *self);
-};
-
-struct _OpTimerPrivate {
- gchar* name;
- GTimer* timer;
- glong count;
- gdouble elapsed;
- gdouble shortest;
- gdouble longest;
-};
-
-struct _ParamSpecOpTimer {
- GParamSpec parent_instance;
-};
-
-
-static gpointer one_shot_scheduler_parent_class = NULL;
-static gpointer op_timer_parent_class = NULL;
-
-guint int64_hash (gint64* n);
-gboolean int64_equal (gint64* a,
- gint64* b);
-gint int64_compare (gint64* a,
- gint64* b);
-gint uint64_compare (guint64* a,
- guint64* b);
-gboolean bool_value_equals (GValue* a,
- GValue* b);
-gboolean int_value_equals (GValue* a,
- GValue* b);
-gulong timeval_to_ms (GTimeVal* time_val);
-gulong now_ms (void);
-gulong now_sec (void);
-time_t now_time_t (void);
-gchar* md5_file (GFile* file,
- GError** error);
-gboolean equal_sets (GeeSet* a,
- GeeSet* b);
-GeeSet* intersection_of_sets (GeeSet* a,
- GeeSet* b,
- GeeSet* excluded);
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-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;
-guchar* serialize_photo_ids (GeeCollection* photos,
- int* result_length1);
-GType photo_id_get_type (void) G_GNUC_CONST;
-PhotoID* photo_id_dup (const PhotoID* self);
-void photo_id_free (PhotoID* self);
-void photo_get_photo_id (Photo* self,
- PhotoID* result);
-GeeList* unserialize_photo_ids (guchar* serialized,
- gint size);
-void photo_id_init (PhotoID *self,
- gint64 id);
-guchar* serialize_media_sources (GeeCollection* media,
- int* result_length1);
-gchar* data_source_get_source_id (DataSource* self);
-GeeList* unserialize_media_sources (guchar* serialized,
- gint size);
-gpointer media_collection_registry_ref (gpointer instance);
-void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_media_collection_registry (GValue* value,
- gpointer v_object);
-void value_take_media_collection_registry (GValue* value,
- gpointer v_object);
-gpointer value_get_media_collection_registry (const GValue* value);
-GType media_collection_registry_get_type (void) G_GNUC_CONST;
-MediaCollectionRegistry* media_collection_registry_get_instance (void);
-MediaSource* media_collection_registry_fetch_media (MediaCollectionRegistry* self,
- const gchar* source_id);
-gchar* format_local_datespan (struct tm* from_date,
- struct tm* to_date);
-gchar* resources_get_start_multiday_span_format_string (void);
-gchar* resources_get_end_multiday_span_format_string (void);
-gchar* resources_get_start_multimonth_span_format_string (void);
-gchar* resources_get_end_multimonth_span_format_string (void);
-gchar* resources_get_long_date_format_string (void);
-gchar* string_strip_leading_zeroes (const gchar* str);
-gchar* format_local_date (struct tm* date);
-gpointer one_shot_scheduler_ref (gpointer instance);
-void one_shot_scheduler_unref (gpointer instance);
-GParamSpec* param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_one_shot_scheduler (GValue* value,
- gpointer v_object);
-void value_take_one_shot_scheduler (GValue* value,
- gpointer v_object);
-gpointer value_get_one_shot_scheduler (const GValue* value);
-GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
-#define ONE_SHOT_SCHEDULER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerPrivate))
-void one_shot_scheduler_cancel (OneShotScheduler* self);
-OneShotScheduler* one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-OneShotScheduler* one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target);
-gboolean one_shot_scheduler_is_scheduled (OneShotScheduler* self);
-void one_shot_scheduler_at_idle (OneShotScheduler* self);
-void one_shot_scheduler_at_priority_idle (OneShotScheduler* self,
- gint priority);
-static gboolean one_shot_scheduler_callback_wrapper (OneShotScheduler* self);
-static gboolean _one_shot_scheduler_callback_wrapper_gsource_func (gpointer self);
-void one_shot_scheduler_after_timeout (OneShotScheduler* self,
- guint msec,
- gboolean reschedule);
-void one_shot_scheduler_priority_after_timeout (OneShotScheduler* self,
- gint priority,
- guint msec,
- gboolean reschedule);
-static void one_shot_scheduler_finalize (OneShotScheduler * obj);
-gpointer op_timer_ref (gpointer instance);
-void op_timer_unref (gpointer instance);
-GParamSpec* param_spec_op_timer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_op_timer (GValue* value,
- gpointer v_object);
-void value_take_op_timer (GValue* value,
- gpointer v_object);
-gpointer value_get_op_timer (const GValue* value);
-GType op_timer_get_type (void) G_GNUC_CONST;
-#define OP_TIMER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_OP_TIMER, OpTimerPrivate))
-OpTimer* op_timer_new (const gchar* name);
-OpTimer* op_timer_construct (GType object_type,
- const gchar* name);
-void op_timer_start (OpTimer* self);
-void op_timer_stop (OpTimer* self);
-gchar* op_timer_to_string (OpTimer* self);
-static void op_timer_finalize (OpTimer * obj);
-
-
-guint
-int64_hash (gint64* n)
-{
- guint result = 0U;
- guint8* u8 = NULL;
- guint hash = 0U;
-#line 9 "/home/jens/Source/shotwell/src/util/misc.vala"
- u8 = (guint8*) n;
-#line 10 "/home/jens/Source/shotwell/src/util/misc.vala"
- hash = (guint) 0;
-#line 326 "misc.c"
- {
- gint ctr = 0;
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- ctr = 0;
-#line 331 "misc.c"
- {
- gboolean _tmp0_ = FALSE;
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = TRUE;
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- while (TRUE) {
-#line 338 "misc.c"
- gint _tmp2_;
- guint _tmp3_;
- guint _tmp4_;
- guint8* _tmp5_;
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!_tmp0_) {
-#line 345 "misc.c"
- gint _tmp1_;
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = ctr;
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- ctr = _tmp1_ + 1;
-#line 351 "misc.c"
- }
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = FALSE;
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = ctr;
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!(((gulong) _tmp2_) < (sizeof (gint64) / sizeof (guint8)))) {
-#line 11 "/home/jens/Source/shotwell/src/util/misc.vala"
- break;
-#line 361 "misc.c"
- }
-#line 12 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = hash;
-#line 12 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = hash;
-#line 12 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = u8;
-#line 12 "/home/jens/Source/shotwell/src/util/misc.vala"
- u8 = _tmp5_ + 1;
-#line 12 "/home/jens/Source/shotwell/src/util/misc.vala"
- hash = ((_tmp3_ << 4) ^ (_tmp4_ >> 28)) ^ (*_tmp5_);
-#line 373 "misc.c"
- }
- }
- }
-#line 15 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = hash;
-#line 15 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 381 "misc.c"
-}
-
-
-gboolean
-int64_equal (gint64* a,
- gint64* b)
-{
- gboolean result = FALSE;
- gint64* bia = NULL;
- gint64* bib = NULL;
-#line 19 "/home/jens/Source/shotwell/src/util/misc.vala"
- bia = (gint64*) a;
-#line 20 "/home/jens/Source/shotwell/src/util/misc.vala"
- bib = (gint64*) b;
-#line 22 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = (*bia) == (*bib);
-#line 22 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 400 "misc.c"
-}
-
-
-gint
-int64_compare (gint64* a,
- gint64* b)
-{
- gint result = 0;
- gint64 diff = 0LL;
- gint64 _tmp0_;
-#line 26 "/home/jens/Source/shotwell/src/util/misc.vala"
- diff = (*((gint64*) a)) - (*((gint64*) b));
-#line 27 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = diff;
-#line 27 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_ < ((gint64) 0)) {
-#line 28 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = -1;
-#line 28 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 421 "misc.c"
- } else {
- gint64 _tmp1_;
-#line 29 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = diff;
-#line 29 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp1_ > ((gint64) 0)) {
-#line 30 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = 1;
-#line 30 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 432 "misc.c"
- } else {
-#line 32 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = 0;
-#line 32 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 438 "misc.c"
- }
- }
-}
-
-
-gint
-uint64_compare (guint64* a,
- guint64* b)
-{
- gint result = 0;
- guint64 a64 = 0ULL;
- guint64 b64 = 0ULL;
- guint64 _tmp0_;
- guint64 _tmp1_;
-#line 36 "/home/jens/Source/shotwell/src/util/misc.vala"
- a64 = *((guint64*) a);
-#line 37 "/home/jens/Source/shotwell/src/util/misc.vala"
- b64 = *((guint64*) b);
-#line 39 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = a64;
-#line 39 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = b64;
-#line 39 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_ < _tmp1_) {
-#line 40 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = -1;
-#line 40 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 467 "misc.c"
- } else {
- guint64 _tmp2_;
- guint64 _tmp3_;
-#line 41 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = a64;
-#line 41 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = b64;
-#line 41 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp2_ > _tmp3_) {
-#line 42 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = 1;
-#line 42 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 481 "misc.c"
- } else {
-#line 44 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = 0;
-#line 44 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 487 "misc.c"
- }
- }
-}
-
-
-gboolean
-bool_value_equals (GValue* a,
- GValue* b)
-{
- gboolean result = FALSE;
- GValue _tmp0_;
- GValue _tmp1_;
-#line 49 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (a != NULL, FALSE);
-#line 49 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (b != NULL, FALSE);
-#line 50 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = *a;
-#line 50 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = *b;
-#line 50 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = g_value_get_boolean (&_tmp0_) == g_value_get_boolean (&_tmp1_);
-#line 50 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 512 "misc.c"
-}
-
-
-gboolean
-int_value_equals (GValue* a,
- GValue* b)
-{
- gboolean result = FALSE;
- GValue _tmp0_;
- GValue _tmp1_;
-#line 53 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (a != NULL, FALSE);
-#line 53 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (b != NULL, FALSE);
-#line 54 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = *a;
-#line 54 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = *b;
-#line 54 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = g_value_get_int (&_tmp0_) == g_value_get_int (&_tmp1_);
-#line 54 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 535 "misc.c"
-}
-
-
-gulong
-timeval_to_ms (GTimeVal* time_val)
-{
- gulong result = 0UL;
- GTimeVal _tmp0_;
- glong _tmp1_;
- GTimeVal _tmp2_;
- glong _tmp3_;
-#line 57 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (time_val != NULL, 0UL);
-#line 58 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = *time_val;
-#line 58 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = _tmp0_.tv_sec;
-#line 58 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = *time_val;
-#line 58 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = _tmp2_.tv_usec;
-#line 58 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = (((gulong) _tmp1_) * 1000) + (((gulong) _tmp3_) / 1000);
-#line 58 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 561 "misc.c"
-}
-
-
-gulong
-now_ms (void)
-{
- gulong result = 0UL;
- GTimeVal _tmp0_ = {0};
-#line 62 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_get_current_time (&_tmp0_);
-#line 62 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = timeval_to_ms (&_tmp0_);
-#line 62 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 576 "misc.c"
-}
-
-
-gulong
-now_sec (void)
-{
- gulong result = 0UL;
- GTimeVal time_val = {0};
- GTimeVal _tmp0_;
- glong _tmp1_;
-#line 66 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_get_current_time (&time_val);
-#line 68 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = time_val;
-#line 68 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = _tmp0_.tv_sec;
-#line 68 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = (gulong) _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 597 "misc.c"
-}
-
-
-inline time_t
-now_time_t (void)
-{
- time_t result = 0;
-#line 72 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = (time_t) now_sec ();
-#line 72 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 609 "misc.c"
-}
-
-
-gchar*
-md5_file (GFile* file,
- GError** error)
-{
- gchar* result = NULL;
- GChecksum* md5 = NULL;
- GChecksum* _tmp0_;
- guint8* buffer = NULL;
- guint8* _tmp1_;
- gint buffer_length1;
- gint _buffer_size_;
- GFileInputStream* fins = NULL;
- GFileInputStream* _tmp2_;
- GChecksum* _tmp15_;
- const gchar* _tmp16_;
- gchar* _tmp17_;
- GError * _inner_error_ = NULL;
-#line 75 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 76 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = g_checksum_new (G_CHECKSUM_MD5);
-#line 76 "/home/jens/Source/shotwell/src/util/misc.vala"
- md5 = _tmp0_;
-#line 77 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = g_new0 (guint8, 64 * 1024);
-#line 77 "/home/jens/Source/shotwell/src/util/misc.vala"
- buffer = _tmp1_;
-#line 77 "/home/jens/Source/shotwell/src/util/misc.vala"
- buffer_length1 = 64 * 1024;
-#line 77 "/home/jens/Source/shotwell/src/util/misc.vala"
- _buffer_size_ = buffer_length1;
-#line 79 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = g_file_read (file, NULL, &_inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/util/misc.vala"
- fins = _tmp2_;
-#line 79 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 79 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_propagate_error (error, _inner_error_);
-#line 79 "/home/jens/Source/shotwell/src/util/misc.vala"
- buffer = (g_free (buffer), NULL);
-#line 79 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_checksum_free0 (md5);
-#line 79 "/home/jens/Source/shotwell/src/util/misc.vala"
- return NULL;
-#line 658 "misc.c"
- }
- {
- gboolean _tmp3_ = FALSE;
-#line 80 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = TRUE;
-#line 80 "/home/jens/Source/shotwell/src/util/misc.vala"
- while (TRUE) {
-#line 666 "misc.c"
- gsize bytes_read = 0UL;
- GFileInputStream* _tmp4_;
- guint8* _tmp5_;
- gint _tmp5__length1;
- gsize _tmp6_;
- GChecksum* _tmp7_;
- guint8* _tmp8_;
- gint _tmp8__length1;
- gsize _tmp9_;
-#line 80 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!_tmp3_) {
-#line 678 "misc.c"
- }
-#line 80 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = FALSE;
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = fins;
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = buffer;
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5__length1 = buffer_length1;
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- bytes_read = (gsize) g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, g_input_stream_get_type (), GInputStream), _tmp5_, (gsize) _tmp5__length1, NULL, &_inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_propagate_error (error, _inner_error_);
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (fins);
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- buffer = (g_free (buffer), NULL);
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_checksum_free0 (md5);
-#line 81 "/home/jens/Source/shotwell/src/util/misc.vala"
- return NULL;
-#line 702 "misc.c"
- }
-#line 82 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = bytes_read;
-#line 82 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp6_ <= ((gsize) 0)) {
-#line 83 "/home/jens/Source/shotwell/src/util/misc.vala"
- break;
-#line 710 "misc.c"
- }
-#line 85 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = md5;
-#line 85 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = buffer;
-#line 85 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8__length1 = buffer_length1;
-#line 85 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = bytes_read;
-#line 85 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_checksum_update (_tmp7_, (guchar*) _tmp8_, _tmp9_);
-#line 722 "misc.c"
- }
- }
- {
- GFileInputStream* _tmp10_;
-#line 89 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = fins;
-#line 89 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_);
-#line 89 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 733 "misc.c"
- goto __catch5_g_error;
- }
- }
- goto __finally5;
- __catch5_g_error:
- {
- GError* err = NULL;
- gchar* _tmp11_;
- gchar* _tmp12_;
- GError* _tmp13_;
- const gchar* _tmp14_;
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- err = _inner_error_;
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- _inner_error_ = NULL;
-#line 91 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp11_ = g_file_get_path (file);
-#line 91 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp12_ = _tmp11_;
-#line 91 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp13_ = err;
-#line 91 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp14_ = _tmp13_->message;
-#line 91 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_warning ("misc.vala:91: Unable to close MD5 input stream for %s: %s", _tmp12_, _tmp14_);
-#line 91 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (_tmp12_);
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_error_free0 (err);
-#line 763 "misc.c"
- }
- __finally5:
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_propagate_error (error, _inner_error_);
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (fins);
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- buffer = (g_free (buffer), NULL);
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_checksum_free0 (md5);
-#line 88 "/home/jens/Source/shotwell/src/util/misc.vala"
- return NULL;
-#line 778 "misc.c"
- }
-#line 94 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp15_ = md5;
-#line 94 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16_ = g_checksum_get_string (_tmp15_);
-#line 94 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp17_ = g_strdup (_tmp16_);
-#line 94 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp17_;
-#line 94 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (fins);
-#line 94 "/home/jens/Source/shotwell/src/util/misc.vala"
- buffer = (g_free (buffer), NULL);
-#line 94 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_checksum_free0 (md5);
-#line 94 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 796 "misc.c"
-}
-
-
-gboolean
-equal_sets (GeeSet* a,
- GeeSet* b)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp11_ = FALSE;
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
-#line 98 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail ((a == NULL) || GEE_IS_SET (a), FALSE);
-#line 98 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail ((b == NULL) || GEE_IS_SET (b), FALSE);
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (a != NULL) {
-#line 821 "misc.c"
- gint _tmp2_;
- gint _tmp3_;
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection));
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = _tmp2_;
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = _tmp3_ == 0;
-#line 830 "misc.c"
- } else {
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = FALSE;
-#line 834 "misc.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp1_) {
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = b == NULL;
-#line 840 "misc.c"
- } else {
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = FALSE;
-#line 844 "misc.c"
- }
-#line 99 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_) {
-#line 100 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = TRUE;
-#line 100 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 852 "misc.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (a == NULL) {
-#line 856 "misc.c"
- gboolean _tmp5_ = FALSE;
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (b != NULL) {
-#line 860 "misc.c"
- gint _tmp6_;
- gint _tmp7_;
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection));
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = _tmp6_;
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = _tmp7_ == 0;
-#line 869 "misc.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = FALSE;
-#line 873 "misc.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = _tmp5_;
-#line 877 "misc.c"
- } else {
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = FALSE;
-#line 881 "misc.c"
- }
-#line 102 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp4_) {
-#line 103 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = TRUE;
-#line 103 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 889 "misc.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (a == NULL) {
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = b != NULL;
-#line 895 "misc.c"
- } else {
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = FALSE;
-#line 899 "misc.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp9_) {
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = TRUE;
-#line 905 "misc.c"
- } else {
- gboolean _tmp10_ = FALSE;
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (a != NULL) {
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = b == NULL;
-#line 912 "misc.c"
- } else {
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = FALSE;
-#line 916 "misc.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = _tmp10_;
-#line 920 "misc.c"
- }
-#line 105 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp8_) {
-#line 106 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = FALSE;
-#line 106 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 928 "misc.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (a == NULL) {
-#line 108 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp11_ = b == NULL;
-#line 934 "misc.c"
- } else {
-#line 108 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp11_ = FALSE;
-#line 938 "misc.c"
- }
-#line 108 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp11_) {
-#line 109 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = TRUE;
-#line 109 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 946 "misc.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection));
-#line 111 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp13_ = _tmp12_;
-#line 111 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp14_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection));
-#line 111 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp15_ = _tmp14_;
-#line 111 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp13_ != _tmp15_) {
-#line 112 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = FALSE;
-#line 112 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 962 "misc.c"
- }
- {
- GeeIterator* _element_it = NULL;
- GeeIterator* _tmp16_;
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ITERABLE, GeeIterable));
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- _element_it = _tmp16_;
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- while (TRUE) {
-#line 973 "misc.c"
- GeeIterator* _tmp17_;
- gchar* element = NULL;
- GeeIterator* _tmp18_;
- gpointer _tmp19_;
- const gchar* _tmp20_;
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp17_ = _element_it;
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!gee_iterator_next (_tmp17_)) {
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- break;
-#line 985 "misc.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp18_ = _element_it;
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp19_ = gee_iterator_get (_tmp18_);
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- element = (gchar*) _tmp19_;
-#line 117 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp20_ = element;
-#line 117 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_)) {
-#line 118 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = FALSE;
-#line 118 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (element);
-#line 118 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (_element_it);
-#line 118 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1005 "misc.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (element);
-#line 1009 "misc.c"
- }
-#line 116 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (_element_it);
-#line 1013 "misc.c"
- }
-#line 121 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = TRUE;
-#line 121 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1019 "misc.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- return self ? g_object_ref (self) : NULL;
-#line 1028 "misc.c"
-}
-
-
-GeeSet*
-intersection_of_sets (GeeSet* a,
- GeeSet* b,
- GeeSet* excluded)
-{
- GeeSet* result = NULL;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- GeeSet* intersection = NULL;
- GeeHashSet* _tmp2_;
- GeeSet* _tmp19_ = NULL;
- GeeSet* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- GeeSet* _tmp24_;
-#line 125 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail ((a == NULL) || GEE_IS_SET (a), NULL);
-#line 125 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail ((b == NULL) || GEE_IS_SET (b), NULL);
-#line 125 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail ((excluded == NULL) || GEE_IS_SET (excluded), NULL);
-#line 127 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (a != NULL) {
-#line 127 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = b == NULL;
-#line 1057 "misc.c"
- } else {
-#line 127 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = FALSE;
-#line 1061 "misc.c"
- }
-#line 127 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_) {
-#line 128 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (excluded != NULL) {
-#line 129 "/home/jens/Source/shotwell/src/util/misc.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (excluded, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1069 "misc.c"
- }
-#line 131 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = NULL;
-#line 131 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1075 "misc.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (a == NULL) {
-#line 134 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = b != NULL;
-#line 1081 "misc.c"
- } else {
-#line 134 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = FALSE;
-#line 1085 "misc.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp1_) {
-#line 135 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (excluded != NULL) {
-#line 136 "/home/jens/Source/shotwell/src/util/misc.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (excluded, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1093 "misc.c"
- }
-#line 138 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = NULL;
-#line 138 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1099 "misc.c"
- }
-#line 141 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 141 "/home/jens/Source/shotwell/src/util/misc.vala"
- intersection = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_SET, GeeSet);
-#line 1105 "misc.c"
- {
- GeeIterator* _element_it = NULL;
- GeeIterator* _tmp3_;
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ITERABLE, GeeIterable));
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- _element_it = _tmp3_;
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- while (TRUE) {
-#line 1115 "misc.c"
- GeeIterator* _tmp4_;
- gchar* element = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- const gchar* _tmp7_;
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = _element_it;
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- break;
-#line 1127 "misc.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = _element_it;
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- element = (gchar*) _tmp6_;
-#line 144 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = element;
-#line 144 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection), _tmp7_)) {
-#line 1139 "misc.c"
- GeeSet* _tmp8_;
- const gchar* _tmp9_;
-#line 145 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = intersection;
-#line 145 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = element;
-#line 145 "/home/jens/Source/shotwell/src/util/misc.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_);
-#line 1148 "misc.c"
- } else {
-#line 146 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (excluded != NULL) {
-#line 1152 "misc.c"
- const gchar* _tmp10_;
-#line 147 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = element;
-#line 147 "/home/jens/Source/shotwell/src/util/misc.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (excluded, GEE_TYPE_COLLECTION, GeeCollection), _tmp10_);
-#line 1158 "misc.c"
- }
- }
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (element);
-#line 1163 "misc.c"
- }
-#line 143 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (_element_it);
-#line 1167 "misc.c"
- }
- {
- GeeIterator* _element_it = NULL;
- GeeIterator* _tmp11_;
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_ITERABLE, GeeIterable));
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- _element_it = _tmp11_;
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- while (TRUE) {
-#line 1178 "misc.c"
- GeeIterator* _tmp12_;
- gchar* element = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- const gchar* _tmp15_;
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp12_ = _element_it;
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!gee_iterator_next (_tmp12_)) {
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- break;
-#line 1190 "misc.c"
- }
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp13_ = _element_it;
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- element = (gchar*) _tmp14_;
-#line 151 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp15_ = element;
-#line 151 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_)) {
-#line 1202 "misc.c"
- GeeSet* _tmp16_;
- const gchar* _tmp17_;
-#line 152 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16_ = intersection;
-#line 152 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp17_ = element;
-#line 152 "/home/jens/Source/shotwell/src/util/misc.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_);
-#line 1211 "misc.c"
- } else {
-#line 153 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (excluded != NULL) {
-#line 1215 "misc.c"
- const gchar* _tmp18_;
-#line 154 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp18_ = element;
-#line 154 "/home/jens/Source/shotwell/src/util/misc.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (excluded, GEE_TYPE_COLLECTION, GeeCollection), _tmp18_);
-#line 1221 "misc.c"
- }
- }
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (element);
-#line 1226 "misc.c"
- }
-#line 150 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (_element_it);
-#line 1230 "misc.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp20_ = intersection;
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp22_ = _tmp21_;
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp22_ > 0) {
-#line 1240 "misc.c"
- GeeSet* _tmp23_;
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp23_ = intersection;
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp19_ = _tmp23_;
-#line 1246 "misc.c"
- } else {
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp19_ = NULL;
-#line 1250 "misc.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp24_ = _g_object_ref0 (_tmp19_);
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp24_;
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (intersection);
-#line 157 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1260 "misc.c"
-}
-
-
-guchar*
-serialize_photo_ids (GeeCollection* photos,
- int* result_length1)
-{
- guchar* result = NULL;
- gint64* ids = NULL;
- gint _tmp0_;
- gint _tmp1_;
- gint64* _tmp2_;
- gint ids_length1;
- gint _ids_size_;
- gint ctr = 0;
- gsize bytes = 0UL;
- gint _tmp13_;
- gint _tmp14_;
- guchar* serialized = NULL;
- guchar* _tmp15_;
- gint serialized_length1;
- gint _serialized_size_;
- gint64* _tmp16_;
- gint _tmp16__length1;
- guchar* _tmp17_;
- gint _tmp17__length1;
-#line 160 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (photos), NULL);
-#line 161 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = gee_collection_get_size (photos);
-#line 161 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = _tmp0_;
-#line 161 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = g_new0 (gint64, _tmp1_);
-#line 161 "/home/jens/Source/shotwell/src/util/misc.vala"
- ids = _tmp2_;
-#line 161 "/home/jens/Source/shotwell/src/util/misc.vala"
- ids_length1 = _tmp1_;
-#line 161 "/home/jens/Source/shotwell/src/util/misc.vala"
- _ids_size_ = ids_length1;
-#line 162 "/home/jens/Source/shotwell/src/util/misc.vala"
- ctr = 0;
-#line 1303 "misc.c"
- {
- GeeIterator* _photo_it = NULL;
- GeeIterator* _tmp3_;
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable));
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- _photo_it = _tmp3_;
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- while (TRUE) {
-#line 1313 "misc.c"
- GeeIterator* _tmp4_;
- Photo* photo = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- gint64* _tmp7_;
- gint _tmp7__length1;
- gint _tmp8_;
- Photo* _tmp9_;
- PhotoID _tmp10_ = {0};
- gint64 _tmp11_;
- gint64 _tmp12_;
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = _photo_it;
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- break;
-#line 1331 "misc.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = _photo_it;
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- photo = (Photo*) _tmp6_;
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = ids;
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7__length1 = ids_length1;
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = ctr;
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- ctr = _tmp8_ + 1;
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = photo;
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- photo_get_photo_id (_tmp9_, &_tmp10_);
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp11_ = _tmp10_.id;
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_[_tmp8_] = _tmp11_;
-#line 164 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp12_ = _tmp7_[_tmp8_];
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (photo);
-#line 1359 "misc.c"
- }
-#line 163 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (_photo_it);
-#line 1363 "misc.c"
- }
-#line 166 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp13_ = gee_collection_get_size (photos);
-#line 166 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp14_ = _tmp13_;
-#line 166 "/home/jens/Source/shotwell/src/util/misc.vala"
- bytes = (gsize) (_tmp14_ * sizeof (gint64));
-#line 167 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp15_ = g_new0 (guchar, bytes);
-#line 167 "/home/jens/Source/shotwell/src/util/misc.vala"
- serialized = _tmp15_;
-#line 167 "/home/jens/Source/shotwell/src/util/misc.vala"
- serialized_length1 = bytes;
-#line 167 "/home/jens/Source/shotwell/src/util/misc.vala"
- _serialized_size_ = serialized_length1;
-#line 168 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16_ = ids;
-#line 168 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16__length1 = ids_length1;
-#line 168 "/home/jens/Source/shotwell/src/util/misc.vala"
- memcpy (serialized, _tmp16_, bytes);
-#line 170 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp17_ = serialized;
-#line 170 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp17__length1 = serialized_length1;
-#line 170 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (result_length1) {
-#line 170 "/home/jens/Source/shotwell/src/util/misc.vala"
- *result_length1 = _tmp17__length1;
-#line 1393 "misc.c"
- }
-#line 170 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp17_;
-#line 170 "/home/jens/Source/shotwell/src/util/misc.vala"
- ids = (g_free (ids), NULL);
-#line 170 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1401 "misc.c"
-}
-
-
-GeeList*
-unserialize_photo_ids (guchar* serialized,
- gint size)
-{
- GeeList* result = NULL;
- gsize count = 0UL;
- gboolean _tmp0_ = FALSE;
- gsize _tmp1_;
- gint64* ids = NULL;
- gsize _tmp2_;
- gint64* _tmp3_;
- gint ids_length1;
- gint _ids_size_;
- gint64* _tmp4_;
- gint _tmp4__length1;
- GeeArrayList* list = NULL;
- GeeArrayList* _tmp5_;
- gint64* _tmp6_;
- gint _tmp6__length1;
-#line 174 "/home/jens/Source/shotwell/src/util/misc.vala"
- count = (gsize) (size / sizeof (gint64));
-#line 175 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = count;
-#line 175 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp1_ <= ((gsize) 0)) {
-#line 175 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = TRUE;
-#line 1432 "misc.c"
- } else {
-#line 175 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = serialized == NULL;
-#line 1436 "misc.c"
- }
-#line 175 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_) {
-#line 176 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = NULL;
-#line 176 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1444 "misc.c"
- }
-#line 178 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = count;
-#line 178 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = g_new0 (gint64, _tmp2_);
-#line 178 "/home/jens/Source/shotwell/src/util/misc.vala"
- ids = _tmp3_;
-#line 178 "/home/jens/Source/shotwell/src/util/misc.vala"
- ids_length1 = _tmp2_;
-#line 178 "/home/jens/Source/shotwell/src/util/misc.vala"
- _ids_size_ = ids_length1;
-#line 179 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = ids;
-#line 179 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4__length1 = ids_length1;
-#line 179 "/home/jens/Source/shotwell/src/util/misc.vala"
- memcpy (_tmp4_, serialized, (gsize) size);
-#line 181 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = gee_array_list_new (TYPE_PHOTO_ID, (GBoxedCopyFunc) photo_id_dup, (GDestroyNotify) photo_id_free, NULL, NULL, NULL);
-#line 181 "/home/jens/Source/shotwell/src/util/misc.vala"
- list = _tmp5_;
-#line 182 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = ids;
-#line 182 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6__length1 = ids_length1;
-#line 1470 "misc.c"
- {
- gint64* id_collection = NULL;
- gint id_collection_length1 = 0;
- gint _id_collection_size_ = 0;
- gint id_it = 0;
-#line 182 "/home/jens/Source/shotwell/src/util/misc.vala"
- id_collection = _tmp6_;
-#line 182 "/home/jens/Source/shotwell/src/util/misc.vala"
- id_collection_length1 = _tmp6__length1;
-#line 182 "/home/jens/Source/shotwell/src/util/misc.vala"
- for (id_it = 0; id_it < _tmp6__length1; id_it = id_it + 1) {
-#line 1482 "misc.c"
- gint64 id = 0LL;
-#line 182 "/home/jens/Source/shotwell/src/util/misc.vala"
- id = id_collection[id_it];
-#line 1486 "misc.c"
- {
- GeeArrayList* _tmp7_;
- gint64 _tmp8_;
- PhotoID _tmp9_ = {0};
-#line 183 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = list;
-#line 183 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = id;
-#line 183 "/home/jens/Source/shotwell/src/util/misc.vala"
- photo_id_init (&_tmp9_, _tmp8_);
-#line 183 "/home/jens/Source/shotwell/src/util/misc.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp9_);
-#line 1499 "misc.c"
- }
- }
- }
-#line 185 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_LIST, GeeList);
-#line 185 "/home/jens/Source/shotwell/src/util/misc.vala"
- ids = (g_free (ids), NULL);
-#line 185 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1509 "misc.c"
-}
-
-
-guchar*
-serialize_media_sources (GeeCollection* media,
- int* result_length1)
-{
- guchar* result = NULL;
- GdkAtom* atoms = NULL;
- gint _tmp0_;
- gint _tmp1_;
- GdkAtom* _tmp2_;
- gint atoms_length1;
- gint _atoms_size_;
- gint ctr = 0;
- gsize bytes = 0UL;
- gint _tmp13_;
- gint _tmp14_;
- guchar* serialized = NULL;
- guchar* _tmp15_;
- gint serialized_length1;
- gint _serialized_size_;
- GdkAtom* _tmp16_;
- gint _tmp16__length1;
- guchar* _tmp17_;
- gint _tmp17__length1;
-#line 188 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (GEE_IS_COLLECTION (media), NULL);
-#line 189 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = gee_collection_get_size (media);
-#line 189 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = _tmp0_;
-#line 189 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = g_new0 (GdkAtom, _tmp1_);
-#line 189 "/home/jens/Source/shotwell/src/util/misc.vala"
- atoms = _tmp2_;
-#line 189 "/home/jens/Source/shotwell/src/util/misc.vala"
- atoms_length1 = _tmp1_;
-#line 189 "/home/jens/Source/shotwell/src/util/misc.vala"
- _atoms_size_ = atoms_length1;
-#line 190 "/home/jens/Source/shotwell/src/util/misc.vala"
- ctr = 0;
-#line 1552 "misc.c"
- {
- GeeIterator* _current_media_it = NULL;
- GeeIterator* _tmp3_;
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable));
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- _current_media_it = _tmp3_;
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- while (TRUE) {
-#line 1562 "misc.c"
- GeeIterator* _tmp4_;
- MediaSource* current_media = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
- GdkAtom* _tmp7_;
- gint _tmp7__length1;
- gint _tmp8_;
- MediaSource* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GdkAtom _tmp12_;
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = _current_media_it;
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!gee_iterator_next (_tmp4_)) {
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- break;
-#line 1580 "misc.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = _current_media_it;
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- current_media = (MediaSource*) _tmp6_;
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = atoms;
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7__length1 = atoms_length1;
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = ctr;
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- ctr = _tmp8_ + 1;
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = current_media;
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource));
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp11_ = _tmp10_;
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_[_tmp8_] = gdk_atom_intern (_tmp11_, FALSE);
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp12_ = _tmp7_[_tmp8_];
-#line 192 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (_tmp11_);
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (current_media);
-#line 1610 "misc.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (_current_media_it);
-#line 1614 "misc.c"
- }
-#line 194 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp13_ = gee_collection_get_size (media);
-#line 194 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp14_ = _tmp13_;
-#line 194 "/home/jens/Source/shotwell/src/util/misc.vala"
- bytes = (gsize) (_tmp14_ * sizeof (GdkAtom));
-#line 195 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp15_ = g_new0 (guchar, bytes);
-#line 195 "/home/jens/Source/shotwell/src/util/misc.vala"
- serialized = _tmp15_;
-#line 195 "/home/jens/Source/shotwell/src/util/misc.vala"
- serialized_length1 = bytes;
-#line 195 "/home/jens/Source/shotwell/src/util/misc.vala"
- _serialized_size_ = serialized_length1;
-#line 196 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16_ = atoms;
-#line 196 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16__length1 = atoms_length1;
-#line 196 "/home/jens/Source/shotwell/src/util/misc.vala"
- memcpy (serialized, _tmp16_, bytes);
-#line 198 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp17_ = serialized;
-#line 198 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp17__length1 = serialized_length1;
-#line 198 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (result_length1) {
-#line 198 "/home/jens/Source/shotwell/src/util/misc.vala"
- *result_length1 = _tmp17__length1;
-#line 1644 "misc.c"
- }
-#line 198 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp17_;
-#line 198 "/home/jens/Source/shotwell/src/util/misc.vala"
- atoms = (g_free (atoms), NULL);
-#line 198 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1652 "misc.c"
-}
-
-
-GeeList*
-unserialize_media_sources (guchar* serialized,
- gint size)
-{
- GeeList* result = NULL;
- gsize count = 0UL;
- gboolean _tmp0_ = FALSE;
- gsize _tmp1_;
- GdkAtom* atoms = NULL;
- gsize _tmp2_;
- GdkAtom* _tmp3_;
- gint atoms_length1;
- gint _atoms_size_;
- GdkAtom* _tmp4_;
- gint _tmp4__length1;
- GeeArrayList* list = NULL;
- GeeArrayList* _tmp5_;
- GdkAtom* _tmp6_;
- gint _tmp6__length1;
-#line 202 "/home/jens/Source/shotwell/src/util/misc.vala"
- count = (gsize) (size / sizeof (GdkAtom));
-#line 203 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = count;
-#line 203 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp1_ <= ((gsize) 0)) {
-#line 203 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = TRUE;
-#line 1683 "misc.c"
- } else {
-#line 203 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = serialized == NULL;
-#line 1687 "misc.c"
- }
-#line 203 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_) {
-#line 204 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = NULL;
-#line 204 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1695 "misc.c"
- }
-#line 206 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = count;
-#line 206 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = g_new0 (GdkAtom, _tmp2_);
-#line 206 "/home/jens/Source/shotwell/src/util/misc.vala"
- atoms = _tmp3_;
-#line 206 "/home/jens/Source/shotwell/src/util/misc.vala"
- atoms_length1 = _tmp2_;
-#line 206 "/home/jens/Source/shotwell/src/util/misc.vala"
- _atoms_size_ = atoms_length1;
-#line 207 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = atoms;
-#line 207 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4__length1 = atoms_length1;
-#line 207 "/home/jens/Source/shotwell/src/util/misc.vala"
- memcpy (_tmp4_, serialized, (gsize) size);
-#line 209 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 209 "/home/jens/Source/shotwell/src/util/misc.vala"
- list = _tmp5_;
-#line 210 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = atoms;
-#line 210 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6__length1 = atoms_length1;
-#line 1721 "misc.c"
- {
- GdkAtom* current_atom_collection = NULL;
- gint current_atom_collection_length1 = 0;
- gint _current_atom_collection_size_ = 0;
- gint current_atom_it = 0;
-#line 210 "/home/jens/Source/shotwell/src/util/misc.vala"
- current_atom_collection = _tmp6_;
-#line 210 "/home/jens/Source/shotwell/src/util/misc.vala"
- current_atom_collection_length1 = _tmp6__length1;
-#line 210 "/home/jens/Source/shotwell/src/util/misc.vala"
- for (current_atom_it = 0; current_atom_it < _tmp6__length1; current_atom_it = current_atom_it + 1) {
-#line 1733 "misc.c"
- GdkAtom current_atom = 0U;
-#line 210 "/home/jens/Source/shotwell/src/util/misc.vala"
- current_atom = current_atom_collection[current_atom_it];
-#line 1737 "misc.c"
- {
- MediaSource* media = NULL;
- MediaCollectionRegistry* _tmp7_;
- MediaCollectionRegistry* _tmp8_;
- GdkAtom _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- MediaSource* _tmp12_;
- MediaSource* _tmp13_;
- MediaSource* _tmp14_;
- GeeArrayList* _tmp15_;
- MediaSource* _tmp16_;
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = media_collection_registry_get_instance ();
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = _tmp7_;
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = current_atom;
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = gdk_atom_name (_tmp9_);
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp11_ = _tmp10_;
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp12_ = media_collection_registry_fetch_media (_tmp8_, _tmp11_);
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp13_ = _tmp12_;
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (_tmp11_);
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- _media_collection_registry_unref0 (_tmp8_);
-#line 211 "/home/jens/Source/shotwell/src/util/misc.vala"
- media = _tmp13_;
-#line 212 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp14_ = media;
-#line 212 "/home/jens/Source/shotwell/src/util/misc.vala"
- _vala_assert (_tmp14_ != NULL, "media != null");
-#line 213 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp15_ = list;
-#line 213 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16_ = media;
-#line 213 "/home/jens/Source/shotwell/src/util/misc.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_);
-#line 210 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_object_unref0 (media);
-#line 1782 "misc.c"
- }
- }
- }
-#line 216 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_LIST, GeeList);
-#line 216 "/home/jens/Source/shotwell/src/util/misc.vala"
- atoms = (g_free (atoms), NULL);
-#line 216 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 1792 "misc.c"
-}
-
-
-static gchar*
-g_time_format (struct tm *self,
- const gchar* format)
-{
- gchar* result = NULL;
- gchar* buffer = NULL;
- gchar* _tmp0_;
- gint buffer_length1;
- gint _buffer_size_;
- gchar* _tmp1_;
- gint _tmp1__length1;
- gchar* _tmp2_;
- gint _tmp2__length1;
- gchar* _tmp3_;
-#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (format != NULL, NULL);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_new0 (gchar, 64);
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = _tmp0_;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer_length1 = 64;
-#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _buffer_size_ = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = buffer;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1__length1 = buffer_length1;
-#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- strftime (_tmp1_, _tmp1__length1, format, &(*self));
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = buffer;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2__length1 = buffer_length1;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = g_strdup ((const gchar*) _tmp2_);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp3_;
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- buffer = (g_free (buffer), NULL);
-#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1838 "misc.c"
-}
-
-
-gchar*
-format_local_datespan (struct tm* from_date,
- struct tm* to_date)
-{
- gchar* result = NULL;
- gchar* from_format = NULL;
- gchar* to_format = NULL;
- struct tm _tmp0_;
- gint _tmp1_;
- struct tm _tmp2_;
- gint _tmp3_;
- const gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- const gchar* _tmp22_;
- gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
-#line 219 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (from_date != NULL, NULL);
-#line 219 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (to_date != NULL, NULL);
-#line 224 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = *from_date;
-#line 224 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = _tmp0_.tm_year;
-#line 224 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = *to_date;
-#line 224 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = _tmp2_.tm_year;
-#line 224 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp1_ == _tmp3_) {
-#line 1877 "misc.c"
- gboolean _tmp4_ = FALSE;
- struct tm _tmp5_;
- gint _tmp6_;
- struct tm _tmp7_;
- gint _tmp8_;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = *from_date;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = _tmp5_.tm_mon;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = *to_date;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = _tmp7_.tm_mon;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp6_ == _tmp8_) {
-#line 1893 "misc.c"
- struct tm _tmp9_;
- gint _tmp10_;
- struct tm _tmp11_;
- gint _tmp12_;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = *from_date;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = _tmp9_.tm_mday;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp11_ = *to_date;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp12_ = _tmp11_.tm_mday;
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = _tmp10_ == (_tmp12_ - 1);
-#line 1908 "misc.c"
- } else {
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = FALSE;
-#line 1912 "misc.c"
- }
-#line 226 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp4_) {
-#line 1916 "misc.c"
- gchar* _tmp13_;
- gchar* _tmp14_;
-#line 228 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp13_ = resources_get_start_multiday_span_format_string ();
-#line 228 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (from_format);
-#line 228 "/home/jens/Source/shotwell/src/util/misc.vala"
- from_format = _tmp13_;
-#line 229 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp14_ = resources_get_end_multiday_span_format_string ();
-#line 229 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (to_format);
-#line 229 "/home/jens/Source/shotwell/src/util/misc.vala"
- to_format = _tmp14_;
-#line 1931 "misc.c"
- } else {
- gchar* _tmp15_;
- gchar* _tmp16_;
-#line 233 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp15_ = resources_get_start_multimonth_span_format_string ();
-#line 233 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (from_format);
-#line 233 "/home/jens/Source/shotwell/src/util/misc.vala"
- from_format = _tmp15_;
-#line 234 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp16_ = resources_get_end_multimonth_span_format_string ();
-#line 234 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (to_format);
-#line 234 "/home/jens/Source/shotwell/src/util/misc.vala"
- to_format = _tmp16_;
-#line 1947 "misc.c"
- }
- } else {
- gchar* _tmp17_;
- gchar* _tmp18_;
-#line 239 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp17_ = resources_get_long_date_format_string ();
-#line 239 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (from_format);
-#line 239 "/home/jens/Source/shotwell/src/util/misc.vala"
- from_format = _tmp17_;
-#line 240 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp18_ = resources_get_long_date_format_string ();
-#line 240 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (to_format);
-#line 240 "/home/jens/Source/shotwell/src/util/misc.vala"
- to_format = _tmp18_;
-#line 1964 "misc.c"
- }
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp19_ = from_format;
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp20_ = g_time_format (from_date, _tmp19_);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp21_ = _tmp20_;
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp22_ = to_format;
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp23_ = g_time_format (to_date, _tmp22_);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp24_ = _tmp23_;
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp25_ = g_strdup_printf ("%s - %s", _tmp21_, _tmp24_);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp26_ = _tmp25_;
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp27_ = string_strip_leading_zeroes (_tmp26_);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp28_ = _tmp27_;
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (_tmp26_);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (_tmp24_);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (_tmp21_);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp28_;
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (to_format);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (from_format);
-#line 243 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 2000 "misc.c"
-}
-
-
-gchar*
-format_local_date (struct tm* date)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 247 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (date != NULL, NULL);
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = resources_get_long_date_format_string ();
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = _tmp0_;
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = g_time_format (date, _tmp1_);
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = _tmp2_;
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = string_strip_leading_zeroes (_tmp3_);
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = _tmp4_;
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (_tmp3_);
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (_tmp1_);
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp5_;
-#line 248 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 2036 "misc.c"
-}
-
-
-OneShotScheduler*
-one_shot_scheduler_construct (GType object_type,
- const gchar* name,
- OneShotCallback callback,
- void* callback_target)
-{
- OneShotScheduler* self = NULL;
- gchar* _tmp0_;
-#line 258 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 258 "/home/jens/Source/shotwell/src/util/misc.vala"
- self = (OneShotScheduler*) g_type_create_instance (object_type);
-#line 259 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = g_strdup (name);
-#line 259 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (self->priv->name);
-#line 259 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->name = _tmp0_;
-#line 260 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->callback = callback;
-#line 260 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->callback_target = callback_target;
-#line 258 "/home/jens/Source/shotwell/src/util/misc.vala"
- return self;
-#line 2064 "misc.c"
-}
-
-
-OneShotScheduler*
-one_shot_scheduler_new (const gchar* name,
- OneShotCallback callback,
- void* callback_target)
-{
-#line 258 "/home/jens/Source/shotwell/src/util/misc.vala"
- return one_shot_scheduler_construct (TYPE_ONE_SHOT_SCHEDULER, name, callback, callback_target);
-#line 2075 "misc.c"
-}
-
-
-gboolean
-one_shot_scheduler_is_scheduled (OneShotScheduler* self)
-{
- gboolean result = FALSE;
- guint _tmp0_;
-#line 271 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (IS_ONE_SHOT_SCHEDULER (self), FALSE);
-#line 272 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = self->priv->scheduled;
-#line 272 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp0_ != ((guint) 0);
-#line 272 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 2092 "misc.c"
-}
-
-
-void
-one_shot_scheduler_at_idle (OneShotScheduler* self)
-{
-#line 275 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self));
-#line 276 "/home/jens/Source/shotwell/src/util/misc.vala"
- one_shot_scheduler_at_priority_idle (self, G_PRIORITY_DEFAULT_IDLE);
-#line 2103 "misc.c"
-}
-
-
-static gboolean
-_one_shot_scheduler_callback_wrapper_gsource_func (gpointer self)
-{
- gboolean result;
- result = one_shot_scheduler_callback_wrapper ((OneShotScheduler*) self);
-#line 281 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 2114 "misc.c"
-}
-
-
-void
-one_shot_scheduler_at_priority_idle (OneShotScheduler* self,
- gint priority)
-{
- guint _tmp0_;
-#line 279 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self));
-#line 280 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = self->priv->scheduled;
-#line 280 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_ == ((guint) 0)) {
-#line 281 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->scheduled = g_idle_add_full (priority, _one_shot_scheduler_callback_wrapper_gsource_func, one_shot_scheduler_ref (self), one_shot_scheduler_unref);
-#line 2131 "misc.c"
- }
-}
-
-
-void
-one_shot_scheduler_after_timeout (OneShotScheduler* self,
- guint msec,
- gboolean reschedule)
-{
-#line 284 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self));
-#line 285 "/home/jens/Source/shotwell/src/util/misc.vala"
- one_shot_scheduler_priority_after_timeout (self, G_PRIORITY_DEFAULT, msec, reschedule);
-#line 2145 "misc.c"
-}
-
-
-void
-one_shot_scheduler_priority_after_timeout (OneShotScheduler* self,
- gint priority,
- guint msec,
- gboolean reschedule)
-{
- gboolean _tmp0_ = FALSE;
- guint _tmp1_;
- guint _tmp2_;
-#line 288 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self));
-#line 289 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = self->priv->scheduled;
-#line 289 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp1_ != ((guint) 0)) {
-#line 289 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = !reschedule;
-#line 2166 "misc.c"
- } else {
-#line 289 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = FALSE;
-#line 2170 "misc.c"
- }
-#line 289 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_) {
-#line 290 "/home/jens/Source/shotwell/src/util/misc.vala"
- return;
-#line 2176 "misc.c"
- }
-#line 292 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = self->priv->scheduled;
-#line 292 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp2_ != ((guint) 0)) {
-#line 2182 "misc.c"
- guint _tmp3_;
-#line 293 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = self->priv->scheduled;
-#line 293 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_source_remove (_tmp3_);
-#line 2188 "misc.c"
- }
-#line 295 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->scheduled = g_timeout_add_full (priority, msec, _one_shot_scheduler_callback_wrapper_gsource_func, one_shot_scheduler_ref (self), one_shot_scheduler_unref);
-#line 2192 "misc.c"
-}
-
-
-void
-one_shot_scheduler_cancel (OneShotScheduler* self)
-{
- guint _tmp0_;
- guint _tmp1_;
-#line 298 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self));
-#line 299 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = self->priv->scheduled;
-#line 299 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_ == ((guint) 0)) {
-#line 300 "/home/jens/Source/shotwell/src/util/misc.vala"
- return;
-#line 2209 "misc.c"
- }
-#line 302 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = self->priv->scheduled;
-#line 302 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_source_remove (_tmp1_);
-#line 303 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->scheduled = (guint) 0;
-#line 2217 "misc.c"
-}
-
-
-static gboolean
-one_shot_scheduler_callback_wrapper (OneShotScheduler* self)
-{
- gboolean result = FALSE;
- OneShotCallback _tmp0_;
- void* _tmp0__target;
-#line 306 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (IS_ONE_SHOT_SCHEDULER (self), FALSE);
-#line 307 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->scheduled = (guint) 0;
-#line 308 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = self->priv->callback;
-#line 308 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0__target = self->priv->callback_target;
-#line 308 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ (_tmp0__target);
-#line 310 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = FALSE;
-#line 310 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 2241 "misc.c"
-}
-
-
-static void
-value_one_shot_scheduler_init (GValue* value)
-{
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = NULL;
-#line 2250 "misc.c"
-}
-
-
-static void
-value_one_shot_scheduler_free_value (GValue* value)
-{
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (value->data[0].v_pointer) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- one_shot_scheduler_unref (value->data[0].v_pointer);
-#line 2261 "misc.c"
- }
-}
-
-
-static void
-value_one_shot_scheduler_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (src_value->data[0].v_pointer) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- dest_value->data[0].v_pointer = one_shot_scheduler_ref (src_value->data[0].v_pointer);
-#line 2274 "misc.c"
- } else {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2278 "misc.c"
- }
-}
-
-
-static gpointer
-value_one_shot_scheduler_peek_pointer (const GValue* value)
-{
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- return value->data[0].v_pointer;
-#line 2288 "misc.c"
-}
-
-
-static gchar*
-value_one_shot_scheduler_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (collect_values[0].v_pointer) {
-#line 2300 "misc.c"
- OneShotScheduler * object;
- object = collect_values[0].v_pointer;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2307 "misc.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.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 2311 "misc.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = one_shot_scheduler_ref (object);
-#line 2315 "misc.c"
- } else {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = NULL;
-#line 2319 "misc.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- return NULL;
-#line 2323 "misc.c"
-}
-
-
-static gchar*
-value_one_shot_scheduler_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- OneShotScheduler ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!object_p) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2339 "misc.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!value->data[0].v_pointer) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- *object_p = NULL;
-#line 2345 "misc.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- *object_p = value->data[0].v_pointer;
-#line 2349 "misc.c"
- } else {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- *object_p = one_shot_scheduler_ref (value->data[0].v_pointer);
-#line 2353 "misc.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- return NULL;
-#line 2357 "misc.c"
-}
-
-
-GParamSpec*
-param_spec_one_shot_scheduler (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecOneShotScheduler* spec;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_ONE_SHOT_SCHEDULER), NULL);
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- return G_PARAM_SPEC (spec);
-#line 2377 "misc.c"
-}
-
-
-gpointer
-value_get_one_shot_scheduler (const GValue* value)
-{
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ONE_SHOT_SCHEDULER), NULL);
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- return value->data[0].v_pointer;
-#line 2388 "misc.c"
-}
-
-
-void
-value_set_one_shot_scheduler (GValue* value,
- gpointer v_object)
-{
- OneShotScheduler * old;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ONE_SHOT_SCHEDULER));
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- old = value->data[0].v_pointer;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (v_object) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ONE_SHOT_SCHEDULER));
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = v_object;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- one_shot_scheduler_ref (value->data[0].v_pointer);
-#line 2411 "misc.c"
- } else {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = NULL;
-#line 2415 "misc.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (old) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- one_shot_scheduler_unref (old);
-#line 2421 "misc.c"
- }
-}
-
-
-void
-value_take_one_shot_scheduler (GValue* value,
- gpointer v_object)
-{
- OneShotScheduler * old;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ONE_SHOT_SCHEDULER));
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- old = value->data[0].v_pointer;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (v_object) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ONE_SHOT_SCHEDULER));
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = v_object;
-#line 2443 "misc.c"
- } else {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = NULL;
-#line 2447 "misc.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (old) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- one_shot_scheduler_unref (old);
-#line 2453 "misc.c"
- }
-}
-
-
-static void
-one_shot_scheduler_class_init (OneShotSchedulerClass * klass)
-{
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- one_shot_scheduler_parent_class = g_type_class_peek_parent (klass);
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- ((OneShotSchedulerClass *) klass)->finalize = one_shot_scheduler_finalize;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_type_class_add_private (klass, sizeof (OneShotSchedulerPrivate));
-#line 2467 "misc.c"
-}
-
-
-static void
-one_shot_scheduler_instance_init (OneShotScheduler * self)
-{
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv = ONE_SHOT_SCHEDULER_GET_PRIVATE (self);
-#line 256 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->scheduled = (guint) 0;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->ref_count = 1;
-#line 2480 "misc.c"
-}
-
-
-static void
-one_shot_scheduler_finalize (OneShotScheduler * obj)
-{
- OneShotScheduler * self;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler);
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_signal_handlers_destroy (self);
-#line 268 "/home/jens/Source/shotwell/src/util/misc.vala"
- one_shot_scheduler_cancel (self);
-#line 254 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (self->priv->name);
-#line 2496 "misc.c"
-}
-
-
-GType
-one_shot_scheduler_get_type (void)
-{
- static volatile gsize one_shot_scheduler_type_id__volatile = 0;
- if (g_once_init_enter (&one_shot_scheduler_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_one_shot_scheduler_init, value_one_shot_scheduler_free_value, value_one_shot_scheduler_copy_value, value_one_shot_scheduler_peek_pointer, "p", value_one_shot_scheduler_collect_value, "p", value_one_shot_scheduler_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (OneShotSchedulerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) one_shot_scheduler_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OneShotScheduler), 0, (GInstanceInitFunc) one_shot_scheduler_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType one_shot_scheduler_type_id;
- one_shot_scheduler_type_id = g_type_register_fundamental (g_type_fundamental_next (), "OneShotScheduler", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&one_shot_scheduler_type_id__volatile, one_shot_scheduler_type_id);
- }
- return one_shot_scheduler_type_id__volatile;
-}
-
-
-gpointer
-one_shot_scheduler_ref (gpointer instance)
-{
- OneShotScheduler * self;
- self = instance;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- return instance;
-#line 2525 "misc.c"
-}
-
-
-void
-one_shot_scheduler_unref (gpointer instance)
-{
- OneShotScheduler * self;
- self = instance;
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- ONE_SHOT_SCHEDULER_GET_CLASS (self)->finalize (self);
-#line 253 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 2540 "misc.c"
- }
-}
-
-
-OpTimer*
-op_timer_construct (GType object_type,
- const gchar* name)
-{
- OpTimer* self = NULL;
- gchar* _tmp0_;
-#line 322 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (name != NULL, NULL);
-#line 322 "/home/jens/Source/shotwell/src/util/misc.vala"
- self = (OpTimer*) g_type_create_instance (object_type);
-#line 323 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = g_strdup (name);
-#line 323 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (self->priv->name);
-#line 323 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->name = _tmp0_;
-#line 322 "/home/jens/Source/shotwell/src/util/misc.vala"
- return self;
-#line 2563 "misc.c"
-}
-
-
-OpTimer*
-op_timer_new (const gchar* name)
-{
-#line 322 "/home/jens/Source/shotwell/src/util/misc.vala"
- return op_timer_construct (TYPE_OP_TIMER, name);
-#line 2572 "misc.c"
-}
-
-
-void
-op_timer_start (OpTimer* self)
-{
- GTimer* _tmp0_;
-#line 326 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (IS_OP_TIMER (self));
-#line 327 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = self->priv->timer;
-#line 327 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_timer_start (_tmp0_);
-#line 2586 "misc.c"
-}
-
-
-void
-op_timer_stop (OpTimer* self)
-{
- gdouble time = 0.0;
- GTimer* _tmp0_;
- gdouble _tmp1_;
- gdouble _tmp2_;
- gdouble _tmp3_;
- gdouble _tmp4_;
- gdouble _tmp5_;
- gdouble _tmp7_;
- gdouble _tmp8_;
- glong _tmp10_;
-#line 330 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (IS_OP_TIMER (self));
-#line 331 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = self->priv->timer;
-#line 331 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = g_timer_elapsed (_tmp0_, NULL);
-#line 331 "/home/jens/Source/shotwell/src/util/misc.vala"
- time = _tmp1_;
-#line 333 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = self->priv->elapsed;
-#line 333 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = time;
-#line 333 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->elapsed = _tmp2_ + _tmp3_;
-#line 335 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = time;
-#line 335 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = self->priv->shortest;
-#line 335 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp4_ < _tmp5_) {
-#line 2623 "misc.c"
- gdouble _tmp6_;
-#line 336 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = time;
-#line 336 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->shortest = _tmp6_;
-#line 2629 "misc.c"
- }
-#line 338 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = time;
-#line 338 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = self->priv->longest;
-#line 338 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp7_ > _tmp8_) {
-#line 2637 "misc.c"
- gdouble _tmp9_;
-#line 339 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = time;
-#line 339 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->longest = _tmp9_;
-#line 2643 "misc.c"
- }
-#line 341 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = self->priv->count;
-#line 341 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->count = _tmp10_ + 1;
-#line 2649 "misc.c"
-}
-
-
-gchar*
-op_timer_to_string (OpTimer* self)
-{
- gchar* result = NULL;
- glong _tmp0_;
-#line 344 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (IS_OP_TIMER (self), NULL);
-#line 345 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = self->priv->count;
-#line 345 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (_tmp0_ > ((glong) 0)) {
-#line 2664 "misc.c"
- const gchar* _tmp1_;
- glong _tmp2_;
- gdouble _tmp3_;
- gdouble _tmp4_;
- gdouble _tmp5_;
- glong _tmp6_;
- gdouble _tmp7_;
- gchar* _tmp8_;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp1_ = self->priv->name;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp2_ = self->priv->count;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp3_ = self->priv->elapsed;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp4_ = self->priv->shortest;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp5_ = self->priv->elapsed;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp6_ = self->priv->count;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp7_ = self->priv->longest;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp8_ = g_strdup_printf ("%s: count=%ld elapsed=%.03lfs min/avg/max=%.03lf/%.03lf/%.03lf", _tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_ / ((gdouble) _tmp6_), _tmp7_);
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp8_;
-#line 346 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 2693 "misc.c"
- } else {
- const gchar* _tmp9_;
- gchar* _tmp10_;
-#line 349 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp9_ = self->priv->name;
-#line 349 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp10_ = g_strdup_printf ("%s: no operations", _tmp9_);
-#line 349 "/home/jens/Source/shotwell/src/util/misc.vala"
- result = _tmp10_;
-#line 349 "/home/jens/Source/shotwell/src/util/misc.vala"
- return result;
-#line 2705 "misc.c"
- }
-}
-
-
-static void
-value_op_timer_init (GValue* value)
-{
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = NULL;
-#line 2715 "misc.c"
-}
-
-
-static void
-value_op_timer_free_value (GValue* value)
-{
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (value->data[0].v_pointer) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- op_timer_unref (value->data[0].v_pointer);
-#line 2726 "misc.c"
- }
-}
-
-
-static void
-value_op_timer_copy_value (const GValue* src_value,
- GValue* dest_value)
-{
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (src_value->data[0].v_pointer) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- dest_value->data[0].v_pointer = op_timer_ref (src_value->data[0].v_pointer);
-#line 2739 "misc.c"
- } else {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- dest_value->data[0].v_pointer = NULL;
-#line 2743 "misc.c"
- }
-}
-
-
-static gpointer
-value_op_timer_peek_pointer (const GValue* value)
-{
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- return value->data[0].v_pointer;
-#line 2753 "misc.c"
-}
-
-
-static gchar*
-value_op_timer_collect_value (GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (collect_values[0].v_pointer) {
-#line 2765 "misc.c"
- OpTimer * object;
- object = collect_values[0].v_pointer;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (object->parent_instance.g_class == NULL) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2772 "misc.c"
- } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.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 2776 "misc.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = op_timer_ref (object);
-#line 2780 "misc.c"
- } else {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = NULL;
-#line 2784 "misc.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- return NULL;
-#line 2788 "misc.c"
-}
-
-
-static gchar*
-value_op_timer_lcopy_value (const GValue* value,
- guint n_collect_values,
- GTypeCValue* collect_values,
- guint collect_flags)
-{
- OpTimer ** object_p;
- object_p = collect_values[0].v_pointer;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!object_p) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2804 "misc.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (!value->data[0].v_pointer) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- *object_p = NULL;
-#line 2810 "misc.c"
- } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- *object_p = value->data[0].v_pointer;
-#line 2814 "misc.c"
- } else {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- *object_p = op_timer_ref (value->data[0].v_pointer);
-#line 2818 "misc.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- return NULL;
-#line 2822 "misc.c"
-}
-
-
-GParamSpec*
-param_spec_op_timer (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags)
-{
- ParamSpecOpTimer* spec;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (g_type_is_a (object_type, TYPE_OP_TIMER), NULL);
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- G_PARAM_SPEC (spec)->value_type = object_type;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- return G_PARAM_SPEC (spec);
-#line 2842 "misc.c"
-}
-
-
-gpointer
-value_get_op_timer (const GValue* value)
-{
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_OP_TIMER), NULL);
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- return value->data[0].v_pointer;
-#line 2853 "misc.c"
-}
-
-
-void
-value_set_op_timer (GValue* value,
- gpointer v_object)
-{
- OpTimer * old;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_OP_TIMER));
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- old = value->data[0].v_pointer;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (v_object) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_OP_TIMER));
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = v_object;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- op_timer_ref (value->data[0].v_pointer);
-#line 2876 "misc.c"
- } else {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = NULL;
-#line 2880 "misc.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (old) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- op_timer_unref (old);
-#line 2886 "misc.c"
- }
-}
-
-
-void
-value_take_op_timer (GValue* value,
- gpointer v_object)
-{
- OpTimer * old;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_OP_TIMER));
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- old = value->data[0].v_pointer;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (v_object) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_OP_TIMER));
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = v_object;
-#line 2908 "misc.c"
- } else {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- value->data[0].v_pointer = NULL;
-#line 2912 "misc.c"
- }
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (old) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- op_timer_unref (old);
-#line 2918 "misc.c"
- }
-}
-
-
-static void
-op_timer_class_init (OpTimerClass * klass)
-{
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- op_timer_parent_class = g_type_class_peek_parent (klass);
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- ((OpTimerClass *) klass)->finalize = op_timer_finalize;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_type_class_add_private (klass, sizeof (OpTimerPrivate));
-#line 2932 "misc.c"
-}
-
-
-static void
-op_timer_instance_init (OpTimer * self)
-{
- GTimer* _tmp0_;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv = OP_TIMER_GET_PRIVATE (self);
-#line 316 "/home/jens/Source/shotwell/src/util/misc.vala"
- _tmp0_ = g_timer_new ();
-#line 316 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->timer = _tmp0_;
-#line 317 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->count = (glong) 0;
-#line 318 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->elapsed = (gdouble) 0;
-#line 319 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->shortest = DBL_MAX;
-#line 320 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->priv->longest = DBL_MIN;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- self->ref_count = 1;
-#line 2956 "misc.c"
-}
-
-
-static void
-op_timer_finalize (OpTimer * obj)
-{
- OpTimer * self;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_OP_TIMER, OpTimer);
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_signal_handlers_destroy (self);
-#line 315 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_free0 (self->priv->name);
-#line 316 "/home/jens/Source/shotwell/src/util/misc.vala"
- _g_timer_destroy0 (self->priv->timer);
-#line 2972 "misc.c"
-}
-
-
-GType
-op_timer_get_type (void)
-{
- static volatile gsize op_timer_type_id__volatile = 0;
- if (g_once_init_enter (&op_timer_type_id__volatile)) {
- static const GTypeValueTable g_define_type_value_table = { value_op_timer_init, value_op_timer_free_value, value_op_timer_copy_value, value_op_timer_peek_pointer, "p", value_op_timer_collect_value, "p", value_op_timer_lcopy_value };
- static const GTypeInfo g_define_type_info = { sizeof (OpTimerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) op_timer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OpTimer), 0, (GInstanceInitFunc) op_timer_instance_init, &g_define_type_value_table };
- static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
- GType op_timer_type_id;
- op_timer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "OpTimer", &g_define_type_info, &g_define_type_fundamental_info, 0);
- g_once_init_leave (&op_timer_type_id__volatile, op_timer_type_id);
- }
- return op_timer_type_id__volatile;
-}
-
-
-gpointer
-op_timer_ref (gpointer instance)
-{
- OpTimer * self;
- self = instance;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_atomic_int_inc (&self->ref_count);
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- return instance;
-#line 3001 "misc.c"
-}
-
-
-void
-op_timer_unref (gpointer instance)
-{
- OpTimer * self;
- self = instance;
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- OP_TIMER_GET_CLASS (self)->finalize (self);
-#line 314 "/home/jens/Source/shotwell/src/util/misc.vala"
- g_type_free_instance ((GTypeInstance *) self);
-#line 3016 "misc.c"
- }
-}
-
-
-
diff --git a/src/util/string.c b/src/util/string.c
deleted file mode 100644
index 0b503fb..0000000
--- a/src/util/string.c
+++ /dev/null
@@ -1,2033 +0,0 @@
-/* string.c generated by valac 0.40.4, the Vala compiler
- * generated from string.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-#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,
- PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
- PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
- PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
- PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
-} PrepareInputTextOptions;
-
-
-
-gint64 g_ascii_strtoll (const gchar* str,
- gchar** endptr,
- guint num_base);
-#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024
-gboolean is_string_empty (const gchar* s);
-gint utf8_cs_compare (void* a,
- void* b);
-gint utf8_ci_compare (void* a,
- void* b);
-gchar* uchar_array_to_string (guchar* data,
- int data_length1,
- gint length);
-guchar* string_to_uchar_array (const gchar* str,
- int* result_length1);
-static void _vala_array_add1 (guchar* * array,
- int* length,
- int* size,
- guchar value);
-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);
-gboolean string_contains_str (const gchar* haystack,
- const gchar* needle);
-gchar* string_sliced_at (const gchar* str,
- gint index);
-gchar* string_sliced_at_first_str (const gchar* haystack,
- const gchar* needle,
- gint start_index);
-gchar* string_sliced_at_last_str (const gchar* haystack,
- const gchar* needle,
- gint start_index);
-gchar* string_sliced_at_first_char (const gchar* haystack,
- gunichar ch,
- gint start_index);
-gchar* string_sliced_at_last_char (const gchar* haystack,
- gunichar ch,
- gint start_index);
-gchar* string_strip_leading_zeroes (const gchar* str);
-gchar* string_remove_diacritics (const gchar* istring);
-gchar* string_to_hex_string (const gchar* str);
-guint string_collated_hash (void* ptr);
-guint string_precollated_hash (void* ptr);
-gint string_collated_compare (void* a,
- void* b);
-gint string_precollated_compare (const gchar* astr,
- const gchar* akey,
- const gchar* bstr,
- const gchar* bkey);
-gboolean string_collated_equals (void* a,
- void* b);
-gboolean string_precollated_equals (const gchar* astr,
- const gchar* akey,
- const gchar* bstr,
- const gchar* bkey);
-
-
-static gchar
-string_get (const gchar* self,
- glong index)
-{
- gchar result = '\0';
- gchar _tmp0_;
-#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, '\0');
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = ((gchar*) self)[index];
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp0_;
-#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 117 "string.c"
-}
-
-
-inline gboolean
-is_string_empty (const gchar* s)
-{
- gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
-#line 12 "/home/jens/Source/shotwell/src/util/string.vala"
- if (s == NULL) {
-#line 12 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = TRUE;
-#line 130 "string.c"
- } else {
-#line 12 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = string_get (s, (glong) 0) == '\0';
-#line 134 "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 140 "string.c"
-}
-
-
-gint
-utf8_cs_compare (void* a,
- void* b)
-{
- gint result = 0;
-#line 17 "/home/jens/Source/shotwell/src/util/string.vala"
- result = g_utf8_collate ((const gchar*) a, (const gchar*) b);
-#line 17 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 153 "string.c"
-}
-
-
-gint
-utf8_ci_compare (void* a,
- void* b)
-{
- gint result = 0;
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gint _tmp4_;
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_utf8_strdown ((const gchar*) a, (gssize) -1);
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = _tmp0_;
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = g_utf8_strdown ((const gchar*) b, (gssize) -1);
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = _tmp2_;
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = g_utf8_collate (_tmp1_, _tmp3_);
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (_tmp3_);
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (_tmp1_);
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp4_;
-#line 22 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 185 "string.c"
-}
-
-
-gchar*
-uchar_array_to_string (guchar* data,
- int data_length1,
- gint length)
-{
- gchar* result = NULL;
- GString* builder = NULL;
- GString* _tmp0_;
- GString* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
-#line 27 "/home/jens/Source/shotwell/src/util/string.vala"
- if (length < 0) {
-#line 28 "/home/jens/Source/shotwell/src/util/string.vala"
- length = data_length1;
-#line 204 "string.c"
- }
-#line 30 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_string_new ("");
-#line 30 "/home/jens/Source/shotwell/src/util/string.vala"
- builder = _tmp0_;
-#line 210 "string.c"
- {
- gint ctr = 0;
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- ctr = 0;
-#line 215 "string.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = TRUE;
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- while (TRUE) {
-#line 222 "string.c"
- gint _tmp3_;
- gint _tmp4_;
- guchar _tmp5_;
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!_tmp1_) {
-#line 228 "string.c"
- gint _tmp2_;
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = ctr;
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- ctr = _tmp2_ + 1;
-#line 234 "string.c"
- }
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = FALSE;
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = ctr;
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!(_tmp3_ < length)) {
-#line 31 "/home/jens/Source/shotwell/src/util/string.vala"
- break;
-#line 244 "string.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = ctr;
-#line 32 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp5_ = data[_tmp4_];
-#line 32 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp5_ != ((guchar) '\0')) {
-#line 252 "string.c"
- GString* _tmp6_;
- gint _tmp7_;
- guchar _tmp8_;
-#line 33 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = builder;
-#line 33 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp7_ = ctr;
-#line 33 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8_ = data[_tmp7_];
-#line 33 "/home/jens/Source/shotwell/src/util/string.vala"
- g_string_append_c (_tmp6_, (gchar) _tmp8_);
-#line 264 "string.c"
- } else {
-#line 35 "/home/jens/Source/shotwell/src/util/string.vala"
- break;
-#line 268 "string.c"
- }
- }
- }
- }
-#line 38 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp9_ = builder;
-#line 38 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp10_ = _tmp9_->str;
-#line 38 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 38 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp11_;
-#line 38 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_string_free0 (builder);
-#line 38 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 285 "string.c"
-}
-
-
-static void
-_vala_array_add1 (guchar* * array,
- int* length,
- int* size,
- guchar value)
-{
-#line 45 "/home/jens/Source/shotwell/src/util/string.vala"
- if ((*length) == (*size)) {
-#line 45 "/home/jens/Source/shotwell/src/util/string.vala"
- *size = (*size) ? (2 * (*size)) : 4;
-#line 45 "/home/jens/Source/shotwell/src/util/string.vala"
- *array = g_renew (guchar, *array, *size);
-#line 301 "string.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/util/string.vala"
- (*array)[(*length)++] = value;
-#line 305 "string.c"
-}
-
-
-guchar*
-string_to_uchar_array (const gchar* str,
- int* result_length1)
-{
- guchar* result = NULL;
- guchar* data = NULL;
- guchar* _tmp0_;
- gint data_length1;
- gint _data_size_;
- guchar* _tmp8_;
- gint _tmp8__length1;
-#line 42 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (str != NULL, NULL);
-#line 43 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_new0 (guchar, 0);
-#line 43 "/home/jens/Source/shotwell/src/util/string.vala"
- data = _tmp0_;
-#line 43 "/home/jens/Source/shotwell/src/util/string.vala"
- data_length1 = 0;
-#line 43 "/home/jens/Source/shotwell/src/util/string.vala"
- _data_size_ = data_length1;
-#line 330 "string.c"
- {
- gint ctr = 0;
-#line 44 "/home/jens/Source/shotwell/src/util/string.vala"
- ctr = 0;
-#line 335 "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 342 "string.c"
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- guchar* _tmp6_;
- gint _tmp6__length1;
- gint _tmp7_;
-#line 44 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!_tmp1_) {
-#line 351 "string.c"
- gint _tmp2_;
-#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 357 "string.c"
- }
-#line 44 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = FALSE;
-#line 44 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = ctr;
-#line 44 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = strlen (str);
-#line 44 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp5_ = _tmp4_;
-#line 44 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!(_tmp3_ < _tmp5_)) {
-#line 44 "/home/jens/Source/shotwell/src/util/string.vala"
- break;
-#line 371 "string.c"
- }
-#line 45 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = data;
-#line 45 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6__length1 = data_length1;
-#line 45 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp7_ = ctr;
-#line 45 "/home/jens/Source/shotwell/src/util/string.vala"
- _vala_array_add1 (&data, &data_length1, &_data_size_, (guchar) string_get (str, (glong) _tmp7_));
-#line 381 "string.c"
- }
- }
- }
-#line 47 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8_ = data;
-#line 47 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8__length1 = data_length1;
-#line 47 "/home/jens/Source/shotwell/src/util/string.vala"
- if (result_length1) {
-#line 47 "/home/jens/Source/shotwell/src/util/string.vala"
- *result_length1 = _tmp8__length1;
-#line 393 "string.c"
- }
-#line 47 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp8_;
-#line 47 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 399 "string.c"
-}
-
-
-inline gchar*
-guarded_markup_escape_text (const gchar* plain)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!is_string_empty (plain)) {
-#line 411 "string.c"
- gboolean _tmp2_;
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = g_utf8_validate (plain, (gssize) -1, NULL);
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = _tmp2_;
-#line 417 "string.c"
- } else {
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = FALSE;
-#line 421 "string.c"
- }
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp1_) {
-#line 425 "string.c"
- gchar* _tmp3_;
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = g_markup_escape_text (plain, (gssize) -1);
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (_tmp0_);
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = _tmp3_;
-#line 433 "string.c"
- } else {
- gchar* _tmp4_;
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = g_strdup ("");
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (_tmp0_);
-#line 58 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = _tmp4_;
-#line 442 "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 448 "string.c"
-}
-
-
-glong
-find_last_offset (const gchar* str,
- gchar c)
-{
- glong result = 0L;
- glong offset = 0L;
- gint _tmp0_;
- gint _tmp1_;
-#line 61 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (str != NULL, 0L);
-#line 62 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = strlen (str);
-#line 62 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = _tmp0_;
-#line 62 "/home/jens/Source/shotwell/src/util/string.vala"
- offset = (glong) _tmp1_;
-#line 63 "/home/jens/Source/shotwell/src/util/string.vala"
- while (TRUE) {
-#line 470 "string.c"
- glong _tmp2_;
- glong _tmp3_;
- glong _tmp4_;
-#line 63 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = offset;
-#line 63 "/home/jens/Source/shotwell/src/util/string.vala"
- offset = _tmp2_ - 1;
-#line 63 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = offset;
-#line 63 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!(_tmp3_ >= ((glong) 0))) {
-#line 63 "/home/jens/Source/shotwell/src/util/string.vala"
- break;
-#line 484 "string.c"
- }
-#line 64 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = offset;
-#line 64 "/home/jens/Source/shotwell/src/util/string.vala"
- if (string_get (str, _tmp4_) == c) {
-#line 65 "/home/jens/Source/shotwell/src/util/string.vala"
- result = offset;
-#line 65 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 494 "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 501 "string.c"
-}
-
-
-gboolean
-is_in_ci_array (const gchar* str,
- gchar** strings,
- int strings_length1)
-{
- gboolean result = FALSE;
- gchar* strdown = NULL;
- gchar* _tmp0_;
-#line 73 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (str != NULL, FALSE);
-#line 74 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_utf8_strdown (str, (gssize) -1);
-#line 74 "/home/jens/Source/shotwell/src/util/string.vala"
- strdown = _tmp0_;
-#line 519 "string.c"
- {
- gchar** str_element_collection = NULL;
- gint str_element_collection_length1 = 0;
- gint _str_element_collection_size_ = 0;
- gint str_element_it = 0;
-#line 75 "/home/jens/Source/shotwell/src/util/string.vala"
- str_element_collection = strings;
-#line 75 "/home/jens/Source/shotwell/src/util/string.vala"
- str_element_collection_length1 = strings_length1;
-#line 75 "/home/jens/Source/shotwell/src/util/string.vala"
- for (str_element_it = 0; str_element_it < strings_length1; str_element_it = str_element_it + 1) {
-#line 531 "string.c"
- gchar* _tmp1_;
- gchar* str_element = NULL;
-#line 75 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = g_strdup (str_element_collection[str_element_it]);
-#line 75 "/home/jens/Source/shotwell/src/util/string.vala"
- str_element = _tmp1_;
-#line 538 "string.c"
- {
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 76 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = strdown;
-#line 76 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = str_element;
-#line 76 "/home/jens/Source/shotwell/src/util/string.vala"
- if (g_strcmp0 (_tmp2_, _tmp3_) == 0) {
-#line 77 "/home/jens/Source/shotwell/src/util/string.vala"
- result = TRUE;
-#line 77 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (str_element);
-#line 77 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (strdown);
-#line 77 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 556 "string.c"
- }
-#line 75 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (str_element);
-#line 560 "string.c"
- }
- }
- }
-#line 80 "/home/jens/Source/shotwell/src/util/string.vala"
- result = FALSE;
-#line 80 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (strdown);
-#line 80 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 570 "string.c"
-}
-
-
-GType
-prepare_input_text_options_get_type (void)
-{
- static volatile gsize prepare_input_text_options_type_id__volatile = 0;
- if (g_once_init_enter (&prepare_input_text_options_type_id__volatile)) {
- static const GFlagsValue values[] = {{PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL, "PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL", "empty-is-null"}, {PREPARE_INPUT_TEXT_OPTIONS_VALIDATE, "PREPARE_INPUT_TEXT_OPTIONS_VALIDATE", "validate"}, {PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL, "PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL", "invalid-is-null"}, {PREPARE_INPUT_TEXT_OPTIONS_STRIP, "PREPARE_INPUT_TEXT_OPTIONS_STRIP", "strip"}, {PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF, "PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF", "strip-crlf"}, {PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE, "PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE", "normalize"}, {PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, "PREPARE_INPUT_TEXT_OPTIONS_DEFAULT", "default"}, {0, NULL, NULL}};
- GType prepare_input_text_options_type_id;
- prepare_input_text_options_type_id = g_flags_register_static ("PrepareInputTextOptions", values);
- g_once_init_leave (&prepare_input_text_options_type_id__volatile, prepare_input_text_options_type_id);
- }
- return prepare_input_text_options_type_id__volatile;
-}
-
-
-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_;
- gsize _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- 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 617 "string.c"
- gint _tmp2_;
- gint _tmp3_;
- gsize _tmp4_ = 0UL;
- gchar* _tmp5_;
- gsize _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
-#line 102 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = strlen (text);
-#line 102 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = _tmp2_;
-#line 102 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp5_ = g_locale_to_utf8 (text, (gssize) _tmp3_, &_tmp4_, NULL, NULL);
-#line 102 "/home/jens/Source/shotwell/src/util/string.vala"
- bytes_read = _tmp4_;
-#line 102 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (output);
-#line 102 "/home/jens/Source/shotwell/src/util/string.vala"
- output = _tmp5_;
-#line 103 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = bytes_read;
-#line 103 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp7_ = strlen (text);
-#line 103 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8_ = _tmp7_;
-#line 103 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp6_ == ((gsize) _tmp8_)) {
-#line 645 "string.c"
- const gchar* _tmp9_;
-#line 104 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp9_ = 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", _tmp9_);
-#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 655 "string.c"
- }
- }
- {
- gchar* _tmp10_ = NULL;
- gint _tmp11_;
- gint _tmp12_;
- gsize _tmp13_ = 0UL;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 110 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp11_ = strlen (text);
-#line 110 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp12_ = _tmp11_;
-#line 110 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp14_ = g_convert (text, (gssize) _tmp12_, "UTF-8", "WINDOWS-1252", &_tmp13_, NULL, &_inner_error_);
-#line 110 "/home/jens/Source/shotwell/src/util/string.vala"
- bytes_read = _tmp13_;
-#line 110 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp10_ = _tmp14_;
-#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 679 "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 690 "string.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp15_ = _tmp10_;
-#line 110 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp10_ = 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 = _tmp15_;
-#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 (_tmp10_);
-#line 704 "string.c"
- }
- goto __finally6;
- __catch6_g_convert_error:
- {
- GError* _error_ = NULL;
- GError* _tmp16_;
-#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"
- _tmp16_ = _error_;
-#line 113 "/home/jens/Source/shotwell/src/util/string.vala"
- if (g_error_matches (_tmp16_, G_CONVERT_ERROR, G_CONVERT_ERROR_NO_CONVERSION)) {
-#line 719 "string.c"
- {
- gchar* _tmp17_ = NULL;
- gint _tmp18_;
- gint _tmp19_;
- gsize _tmp20_ = 0UL;
- gchar* _tmp21_;
- gchar* _tmp22_;
-#line 115 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp18_ = strlen (text);
-#line 115 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp19_ = _tmp18_;
-#line 115 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp21_ = g_convert (text, (gssize) _tmp19_, "UTF-8", "ISO-8859-1", &_tmp20_, NULL, &_inner_error_);
-#line 115 "/home/jens/Source/shotwell/src/util/string.vala"
- bytes_read = _tmp20_;
-#line 115 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp17_ = _tmp21_;
-#line 115 "/home/jens/Source/shotwell/src/util/string.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 739 "string.c"
- goto __catch7_g_error;
- }
-#line 115 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp22_ = _tmp17_;
-#line 115 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp17_ = 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 = _tmp22_;
-#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 (_tmp17_);
-#line 754 "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 766 "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 783 "string.c"
- }
- }
-#line 109 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_error_free0 (_error_);
-#line 788 "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 801 "string.c"
- }
-#line 121 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp23_ = bytes_read;
-#line 121 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp24_ = strlen (text);
-#line 121 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp25_ = _tmp24_;
-#line 121 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp23_ == ((gsize) _tmp25_)) {
-#line 811 "string.c"
- const gchar* _tmp26_;
-#line 122 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp26_ = charset;
-#line 122 "/home/jens/Source/shotwell/src/util/string.vala"
- g_debug ("string.vala:122: CONVERT: Guessed conversion from %s", _tmp26_);
-#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 821 "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 829 "string.c"
-}
-
-
-static gchar*
-string_strip (const gchar* self)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strstrip (_tmp1_);
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 854 "string.c"
-}
-
-
-static gchar*
-string_delimit (const gchar* self,
- const gchar* delimiters,
- gchar new_delimiter)
-{
- gchar* result = NULL;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
-#line 1256 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1256 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (delimiters != NULL, NULL);
-#line 1257 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strdup (self);
-#line 1257 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1258 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1258 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_strdelimit (_tmp1_, delimiters, new_delimiter);
-#line 1259 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _result_;
-#line 1259 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 883 "string.c"
-}
-
-
-gchar*
-prepare_input_text (const gchar* text,
- PrepareInputTextOptions options,
- gint dest_length)
-{
- gchar* result = NULL;
- gchar* prepped = NULL;
- gchar* _tmp0_;
- gboolean _tmp12_ = FALSE;
-#line 131 "/home/jens/Source/shotwell/src/util/string.vala"
- if (text == NULL) {
-#line 132 "/home/jens/Source/shotwell/src/util/string.vala"
- result = NULL;
-#line 132 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 902 "string.c"
- }
-#line 134 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_strdup (text);
-#line 134 "/home/jens/Source/shotwell/src/util/string.vala"
- prepped = _tmp0_;
-#line 135 "/home/jens/Source/shotwell/src/util/string.vala"
- if ((options & PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) == PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) {
-#line 910 "string.c"
- gboolean _tmp1_;
-#line 136 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = g_utf8_validate (text, (gssize) -1, NULL);
-#line 136 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!_tmp1_) {
-#line 916 "string.c"
- gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 137 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = guess_convert (text);
-#line 137 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (prepped);
-#line 137 "/home/jens/Source/shotwell/src/util/string.vala"
- prepped = _tmp2_;
-#line 139 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = prepped;
-#line 139 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp3_ == NULL) {
-#line 929 "string.c"
- const gchar* _tmp4_ = NULL;
- gchar* _tmp5_;
-#line 140 "/home/jens/Source/shotwell/src/util/string.vala"
- if ((options & PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) != 0) {
-#line 140 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = NULL;
-#line 936 "string.c"
- } else {
-#line 140 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = "";
-#line 940 "string.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 140 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp5_;
-#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 950 "string.c"
- }
- }
- }
-#line 149 "/home/jens/Source/shotwell/src/util/string.vala"
- if ((options & PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE) != 0) {
-#line 956 "string.c"
- const gchar* _tmp6_;
- gchar* _tmp7_;
-#line 150 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = prepped;
-#line 150 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp7_ = g_utf8_normalize (_tmp6_, (gssize) -1, G_NORMALIZE_NFC);
-#line 150 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (prepped);
-#line 150 "/home/jens/Source/shotwell/src/util/string.vala"
- prepped = _tmp7_;
-#line 967 "string.c"
- }
-#line 152 "/home/jens/Source/shotwell/src/util/string.vala"
- if ((options & PREPARE_INPUT_TEXT_OPTIONS_STRIP) != 0) {
-#line 971 "string.c"
- const gchar* _tmp8_;
- gchar* _tmp9_;
-#line 153 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8_ = prepped;
-#line 153 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp9_ = string_strip (_tmp8_);
-#line 153 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (prepped);
-#line 153 "/home/jens/Source/shotwell/src/util/string.vala"
- prepped = _tmp9_;
-#line 982 "string.c"
- }
-#line 157 "/home/jens/Source/shotwell/src/util/string.vala"
- if ((options & PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) != 0) {
-#line 986 "string.c"
- const gchar* _tmp10_;
- gchar* _tmp11_;
-#line 158 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp10_ = prepped;
-#line 158 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp11_ = string_delimit (_tmp10_, "\n\r", ' ');
-#line 158 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (prepped);
-#line 158 "/home/jens/Source/shotwell/src/util/string.vala"
- prepped = _tmp11_;
-#line 997 "string.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/util/string.vala"
- if ((options & PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL) != 0) {
-#line 1001 "string.c"
- const gchar* _tmp13_;
-#line 160 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp13_ = prepped;
-#line 160 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp12_ = is_string_empty (_tmp13_);
-#line 1007 "string.c"
- } else {
-#line 160 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp12_ = FALSE;
-#line 1011 "string.c"
- }
-#line 160 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp12_) {
-#line 161 "/home/jens/Source/shotwell/src/util/string.vala"
- result = NULL;
-#line 161 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (prepped);
-#line 161 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1021 "string.c"
- }
-#line 166 "/home/jens/Source/shotwell/src/util/string.vala"
- if (dest_length >= 0) {
-#line 1025 "string.c"
- GString* sb = NULL;
- const gchar* _tmp14_;
- GString* _tmp15_;
- GString* _tmp16_;
- GString* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
-#line 167 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp14_ = prepped;
-#line 167 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp15_ = g_string_new (_tmp14_);
-#line 167 "/home/jens/Source/shotwell/src/util/string.vala"
- sb = _tmp15_;
-#line 168 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp16_ = sb;
-#line 168 "/home/jens/Source/shotwell/src/util/string.vala"
- g_string_truncate (_tmp16_, (gsize) dest_length);
-#line 169 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp17_ = sb;
-#line 169 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp18_ = _tmp17_->str;
-#line 169 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp19_ = g_strdup (_tmp18_);
-#line 169 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp19_;
-#line 169 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_string_free0 (sb);
-#line 169 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (prepped);
-#line 169 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1057 "string.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/util/string.vala"
- result = prepped;
-#line 173 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1063 "string.c"
-}
-
-
-gint64
-parse_int64 (const gchar* str,
- gint num_base)
-{
- gint64 result = 0LL;
- gint64 _tmp0_;
-#line 176 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (str != NULL, 0LL);
-#line 177 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_ascii_strtoll (str, NULL, (guint) num_base);
-#line 177 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp0_;
-#line 177 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1081 "string.c"
-}
-
-
-static gint
-string_index_of_char (const gchar* self,
- gunichar c,
- gint start_index)
-{
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1045 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 1046 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_utf8_strchr (((gchar*) self) + start_index, (gssize) -1, c);
-#line 1046 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1048 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1048 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ != NULL) {
-#line 1104 "string.c"
- gchar* _tmp2_;
-#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _result_;
-#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) (_tmp2_ - ((gchar*) self));
-#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1112 "string.c"
- } else {
-#line 1051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = -1;
-#line 1051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1118 "string.c"
- }
-}
-
-
-inline gboolean
-string_contains_char (const gchar* haystack,
- gunichar needle)
-{
- gboolean result = FALSE;
-#line 182 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (haystack != NULL, FALSE);
-#line 183 "/home/jens/Source/shotwell/src/util/string.vala"
- result = string_index_of_char (haystack, needle, 0) >= 0;
-#line 183 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1134 "string.c"
-}
-
-
-static gint
-string_index_of (const gchar* self,
- const gchar* needle,
- gint start_index)
-{
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, 0);
-#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle);
-#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ != NULL) {
-#line 1159 "string.c"
- gchar* _tmp2_;
-#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _result_;
-#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) (_tmp2_ - ((gchar*) self));
-#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1167 "string.c"
- } else {
-#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = -1;
-#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1173 "string.c"
- }
-}
-
-
-inline gboolean
-string_contains_str (const gchar* haystack,
- const gchar* needle)
-{
- gboolean result = FALSE;
-#line 186 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (haystack != NULL, FALSE);
-#line 186 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (needle != NULL, FALSE);
-#line 187 "/home/jens/Source/shotwell/src/util/string.vala"
- result = string_index_of (haystack, needle, 0) >= 0;
-#line 187 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1191 "string.c"
-}
-
-
-static gchar*
-string_slice (const gchar* self,
- glong start,
- glong end)
-{
- gchar* result = NULL;
- glong string_length = 0L;
- gint _tmp0_;
- gint _tmp1_;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp6_ = FALSE;
- gchar* _tmp8_;
-#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, NULL);
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = strlen (self);
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _tmp0_;
-#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp1_;
-#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (start < ((glong) 0)) {
-#line 1217 "string.c"
- glong _tmp2_;
-#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = string_length;
-#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- start = _tmp2_ + start;
-#line 1223 "string.c"
- }
-#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (end < ((glong) 0)) {
-#line 1227 "string.c"
- glong _tmp3_;
-#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp3_ = string_length;
-#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- end = _tmp3_ + end;
-#line 1233 "string.c"
- }
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (start >= ((glong) 0)) {
-#line 1237 "string.c"
- glong _tmp5_;
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp5_ = string_length;
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = start <= _tmp5_;
-#line 1243 "string.c"
- } else {
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp4_ = FALSE;
-#line 1247 "string.c"
- }
-#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp4_, NULL);
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (end >= ((glong) 0)) {
-#line 1253 "string.c"
- glong _tmp7_;
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp7_ = string_length;
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = end <= _tmp7_;
-#line 1259 "string.c"
- } else {
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp6_ = FALSE;
-#line 1263 "string.c"
- }
-#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp6_, NULL);
-#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (start <= end, NULL);
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start));
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = _tmp8_;
-#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1275 "string.c"
-}
-
-
-inline gchar*
-string_sliced_at (const gchar* str,
- gint index)
-{
- gchar* result = NULL;
- gchar* _tmp0_ = NULL;
-#line 190 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (str != NULL, NULL);
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- if (index >= 0) {
-#line 1289 "string.c"
- gint _tmp1_;
- gint _tmp2_;
- gchar* _tmp3_;
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = strlen (str);
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = _tmp1_;
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = string_slice (str, (glong) index, (glong) _tmp2_);
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (_tmp0_);
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = _tmp3_;
-#line 1303 "string.c"
- } else {
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (_tmp0_);
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = NULL;
-#line 1309 "string.c"
- }
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp0_;
-#line 191 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1315 "string.c"
-}
-
-
-inline gchar*
-string_sliced_at_first_str (const gchar* haystack,
- const gchar* needle,
- gint start_index)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 194 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (haystack != NULL, NULL);
-#line 194 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (needle != NULL, NULL);
-#line 195 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = string_sliced_at (haystack, string_index_of (haystack, needle, start_index));
-#line 195 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp0_;
-#line 195 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1336 "string.c"
-}
-
-
-static gint
-string_last_index_of (const gchar* self,
- const gchar* needle,
- gint start_index)
-{
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1035 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 1035 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (needle != NULL, 0);
-#line 1036 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_strrstr (((gchar*) self) + start_index, (gchar*) needle);
-#line 1036 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1038 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1038 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ != NULL) {
-#line 1361 "string.c"
- gchar* _tmp2_;
-#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _result_;
-#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) (_tmp2_ - ((gchar*) self));
-#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1369 "string.c"
- } else {
-#line 1041 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = -1;
-#line 1041 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1375 "string.c"
- }
-}
-
-
-inline gchar*
-string_sliced_at_last_str (const gchar* haystack,
- const gchar* needle,
- gint start_index)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 198 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (haystack != NULL, NULL);
-#line 198 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (needle != NULL, NULL);
-#line 199 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = string_sliced_at (haystack, string_last_index_of (haystack, needle, start_index));
-#line 199 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp0_;
-#line 199 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1397 "string.c"
-}
-
-
-inline gchar*
-string_sliced_at_first_char (const gchar* haystack,
- gunichar ch,
- gint start_index)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 202 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (haystack != NULL, NULL);
-#line 203 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = string_sliced_at (haystack, string_index_of_char (haystack, ch, start_index));
-#line 203 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp0_;
-#line 203 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1416 "string.c"
-}
-
-
-static gint
-string_last_index_of_char (const gchar* self,
- gunichar c,
- gint start_index)
-{
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1055 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0);
-#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = g_utf8_strrchr (((gchar*) self) + start_index, (gssize) -1, c);
-#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _result_ = _tmp0_;
-#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = _result_;
-#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp1_ != NULL) {
-#line 1439 "string.c"
- gchar* _tmp2_;
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp2_ = _result_;
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = (gint) (_tmp2_ - ((gchar*) self));
-#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1447 "string.c"
- } else {
-#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = -1;
-#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1453 "string.c"
- }
-}
-
-
-inline gchar*
-string_sliced_at_last_char (const gchar* haystack,
- gunichar ch,
- gint start_index)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 206 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (haystack != NULL, NULL);
-#line 207 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = string_sliced_at (haystack, string_last_index_of_char (haystack, ch, start_index));
-#line 207 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp0_;
-#line 207 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1473 "string.c"
-}
-
-
-static gunichar
-string_get_char (const gchar* self,
- glong index)
-{
- gunichar result = 0U;
-#line 1154 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0U);
-#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = g_utf8_get_char (((gchar*) self) + index);
-#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1488 "string.c"
-}
-
-
-gchar*
-string_strip_leading_zeroes (const gchar* str)
-{
- gchar* result = NULL;
- GString* stripped = NULL;
- GString* _tmp0_;
- gboolean prev_is_space = FALSE;
- GString* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
-#line 211 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (str != NULL, NULL);
-#line 212 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_string_new ("");
-#line 212 "/home/jens/Source/shotwell/src/util/string.vala"
- stripped = _tmp0_;
-#line 213 "/home/jens/Source/shotwell/src/util/string.vala"
- prev_is_space = TRUE;
-#line 1510 "string.c"
- {
- const gchar* iter = NULL;
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- iter = str;
-#line 1515 "string.c"
- {
- gboolean _tmp1_ = FALSE;
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = TRUE;
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- while (TRUE) {
-#line 1522 "string.c"
- const gchar* _tmp4_;
- gunichar ch = 0U;
- const gchar* _tmp5_;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_;
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!_tmp1_) {
-#line 1530 "string.c"
- const gchar* _tmp2_;
- const gchar* _tmp3_;
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = iter;
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = g_utf8_next_char (_tmp2_);
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- iter = _tmp3_;
-#line 1539 "string.c"
- }
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = FALSE;
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = iter;
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!(string_get_char (_tmp4_, (glong) 0) != ((gunichar) 0))) {
-#line 214 "/home/jens/Source/shotwell/src/util/string.vala"
- break;
-#line 1549 "string.c"
- }
-#line 215 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp5_ = iter;
-#line 215 "/home/jens/Source/shotwell/src/util/string.vala"
- ch = string_get_char (_tmp5_, (glong) 0);
-#line 217 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp7_ = prev_is_space;
-#line 217 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!_tmp7_) {
-#line 217 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = TRUE;
-#line 1561 "string.c"
- } else {
- gunichar _tmp8_;
-#line 217 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8_ = ch;
-#line 217 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = _tmp8_ != ((gunichar) '0');
-#line 1568 "string.c"
- }
-#line 217 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp6_) {
-#line 1572 "string.c"
- GString* _tmp9_;
- gunichar _tmp10_;
- gunichar _tmp11_;
-#line 218 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp9_ = stripped;
-#line 218 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp10_ = ch;
-#line 218 "/home/jens/Source/shotwell/src/util/string.vala"
- g_string_append_unichar (_tmp9_, _tmp10_);
-#line 219 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp11_ = ch;
-#line 219 "/home/jens/Source/shotwell/src/util/string.vala"
- prev_is_space = g_unichar_isspace (_tmp11_);
-#line 1586 "string.c"
- }
- }
- }
- }
-#line 223 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp12_ = stripped;
-#line 223 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp13_ = _tmp12_->str;
-#line 223 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp14_ = g_strdup (_tmp13_);
-#line 223 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp14_;
-#line 223 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_string_free0 (stripped);
-#line 223 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1603 "string.c"
-}
-
-
-static gboolean
-string_get_next_char (const gchar* self,
- gint* index,
- gunichar* c)
-{
- gunichar _vala_c = 0U;
- gboolean result = FALSE;
- gunichar _tmp0_;
-#line 1143 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, FALSE);
-#line 1144 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _vala_c = g_utf8_get_char (((gchar*) self) + (*index));
-#line 1145 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp0_ = _vala_c;
-#line 1145 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (_tmp0_ != ((gunichar) 0)) {
-#line 1623 "string.c"
- gchar* _tmp1_;
-#line 1146 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- _tmp1_ = g_utf8_next_char (((gchar*) self) + (*index));
-#line 1146 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *index = (gint) (_tmp1_ - ((gchar*) self));
-#line 1147 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = TRUE;
-#line 1147 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (c) {
-#line 1147 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *c = _vala_c;
-#line 1635 "string.c"
- }
-#line 1147 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1639 "string.c"
- } else {
-#line 1149 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- result = FALSE;
-#line 1149 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (c) {
-#line 1149 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *c = _vala_c;
-#line 1647 "string.c"
- }
-#line 1149 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- return result;
-#line 1651 "string.c"
- }
-#line 1143 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- if (c) {
-#line 1143 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
- *c = _vala_c;
-#line 1657 "string.c"
- }
-}
-
-
-gchar*
-string_remove_diacritics (const gchar* istring)
-{
- gchar* result = NULL;
- GString* builder = NULL;
- GString* _tmp0_;
- gunichar ch = 0U;
- gint i = 0;
- GString* _tmp9_;
- const gchar* _tmp10_;
- gchar* _tmp11_;
-#line 226 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (istring != NULL, NULL);
-#line 227 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_string_new ("");
-#line 227 "/home/jens/Source/shotwell/src/util/string.vala"
- builder = _tmp0_;
-#line 229 "/home/jens/Source/shotwell/src/util/string.vala"
- i = 0;
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- while (TRUE) {
-#line 1683 "string.c"
- gchar* _tmp1_;
- gchar* _tmp2_;
- gunichar _tmp3_ = 0U;
- gboolean _tmp4_;
- gboolean _tmp5_;
- gunichar _tmp6_;
- GString* _tmp7_;
- gunichar _tmp8_;
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = g_utf8_normalize (istring, (gssize) -1, G_NORMALIZE_DEFAULT);
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = _tmp1_;
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = string_get_next_char (_tmp2_, &i, &_tmp3_);
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- ch = _tmp3_;
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp5_ = !_tmp4_;
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (_tmp2_);
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp5_) {
-#line 230 "/home/jens/Source/shotwell/src/util/string.vala"
- break;
-#line 1708 "string.c"
- }
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = ch;
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- switch (g_unichar_type (_tmp6_)) {
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- case G_UNICODE_CONTROL:
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- case G_UNICODE_FORMAT:
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- case G_UNICODE_UNASSIGNED:
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- case G_UNICODE_NON_SPACING_MARK:
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- case G_UNICODE_COMBINING_MARK:
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- case G_UNICODE_ENCLOSING_MARK:
-#line 1726 "string.c"
- {
-#line 239 "/home/jens/Source/shotwell/src/util/string.vala"
- continue;
-#line 1730 "string.c"
- }
- default:
-#line 231 "/home/jens/Source/shotwell/src/util/string.vala"
- break;
-#line 1735 "string.c"
- }
-#line 241 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp7_ = builder;
-#line 241 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8_ = ch;
-#line 241 "/home/jens/Source/shotwell/src/util/string.vala"
- g_string_append_unichar (_tmp7_, _tmp8_);
-#line 1743 "string.c"
- }
-#line 243 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp9_ = builder;
-#line 243 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp10_ = _tmp9_->str;
-#line 243 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp11_ = g_strdup (_tmp10_);
-#line 243 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp11_;
-#line 243 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_string_free0 (builder);
-#line 243 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1757 "string.c"
-}
-
-
-gchar*
-string_to_hex_string (const gchar* str)
-{
- gchar* result = NULL;
- GString* builder = NULL;
- GString* _tmp0_;
- guint8* data = NULL;
- GString* _tmp6_;
- const gchar* _tmp7_;
- gchar* _tmp8_;
-#line 246 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (str != NULL, NULL);
-#line 247 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_string_new ("");
-#line 247 "/home/jens/Source/shotwell/src/util/string.vala"
- builder = _tmp0_;
-#line 249 "/home/jens/Source/shotwell/src/util/string.vala"
- data = (guint8*) str;
-#line 250 "/home/jens/Source/shotwell/src/util/string.vala"
- while (TRUE) {
-#line 1781 "string.c"
- guint8* _tmp1_;
- const gchar* _tmp2_ = NULL;
- guint8* _tmp3_;
- GString* _tmp4_;
- guint8* _tmp5_;
-#line 250 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = data;
-#line 250 "/home/jens/Source/shotwell/src/util/string.vala"
- if (!(((gint) (*_tmp1_)) != 0)) {
-#line 250 "/home/jens/Source/shotwell/src/util/string.vala"
- break;
-#line 1793 "string.c"
- }
-#line 251 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = data;
-#line 251 "/home/jens/Source/shotwell/src/util/string.vala"
- if (((gint) (*_tmp3_)) != 0) {
-#line 251 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = " ";
-#line 1801 "string.c"
- } else {
-#line 251 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = "";
-#line 1805 "string.c"
- }
-#line 251 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = builder;
-#line 251 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp5_ = data;
-#line 251 "/home/jens/Source/shotwell/src/util/string.vala"
- data = _tmp5_ + 1;
-#line 251 "/home/jens/Source/shotwell/src/util/string.vala"
- g_string_append_printf (_tmp4_, "%02Xh%s", (guint) (*_tmp5_), _tmp2_);
-#line 1815 "string.c"
- }
-#line 253 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = builder;
-#line 253 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp7_ = _tmp6_->str;
-#line 253 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8_ = g_strdup (_tmp7_);
-#line 253 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp8_;
-#line 253 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_string_free0 (builder);
-#line 253 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1829 "string.c"
-}
-
-
-guint
-string_collated_hash (void* ptr)
-{
- guint result = 0U;
- gchar* str = NULL;
- gchar* _tmp0_;
- GHashFunc _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- guint _tmp4_;
-#line 273 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_strdup ((const gchar*) ptr);
-#line 273 "/home/jens/Source/shotwell/src/util/string.vala"
- str = _tmp0_;
-#line 275 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = g_str_hash;
-#line 275 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = g_utf8_collate_key (str, (gssize) -1);
-#line 275 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = _tmp2_;
-#line 275 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = _tmp1_ (_tmp3_);
-#line 275 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (_tmp3_);
-#line 275 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp4_;
-#line 275 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (str);
-#line 275 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1863 "string.c"
-}
-
-
-guint
-string_precollated_hash (void* ptr)
-{
- guint result = 0U;
- GHashFunc _tmp0_;
-#line 280 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_str_hash;
-#line 280 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp0_ ((const gchar*) ptr);
-#line 280 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1878 "string.c"
-}
-
-
-gint
-string_collated_compare (void* a,
- void* b)
-{
- gint result = 0;
- gchar* astr = NULL;
- gchar* _tmp0_;
- gchar* bstr = NULL;
- gchar* _tmp1_;
- gint _result_ = 0;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gint _tmp4_ = 0;
- gint _tmp5_;
-#line 285 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_strdup ((const gchar*) a);
-#line 285 "/home/jens/Source/shotwell/src/util/string.vala"
- astr = _tmp0_;
-#line 286 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = g_strdup ((const gchar*) b);
-#line 286 "/home/jens/Source/shotwell/src/util/string.vala"
- bstr = _tmp1_;
-#line 288 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = astr;
-#line 288 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = bstr;
-#line 288 "/home/jens/Source/shotwell/src/util/string.vala"
- _result_ = g_utf8_collate (_tmp2_, _tmp3_);
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp5_ = _result_;
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp5_ != 0) {
-#line 1914 "string.c"
- gint _tmp6_;
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp6_ = _result_;
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = _tmp6_;
-#line 1920 "string.c"
- } else {
- GCompareFunc _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp7_ = g_strcmp0;
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp8_ = astr;
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp9_ = bstr;
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = _tmp7_ (_tmp8_, _tmp9_);
-#line 1933 "string.c"
- }
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp4_;
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (bstr);
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- _g_free0 (astr);
-#line 290 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1943 "string.c"
-}
-
-
-gint
-string_precollated_compare (const gchar* astr,
- const gchar* akey,
- const gchar* bstr,
- const gchar* bkey)
-{
- gint result = 0;
- gint _result_ = 0;
- GCompareFunc _tmp0_;
- gint _tmp1_ = 0;
- gint _tmp2_;
-#line 294 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (astr != NULL, 0);
-#line 294 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (akey != NULL, 0);
-#line 294 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (bstr != NULL, 0);
-#line 294 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (bkey != NULL, 0);
-#line 295 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp0_ = g_strcmp0;
-#line 295 "/home/jens/Source/shotwell/src/util/string.vala"
- _result_ = _tmp0_ (akey, bkey);
-#line 297 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp2_ = _result_;
-#line 297 "/home/jens/Source/shotwell/src/util/string.vala"
- if (_tmp2_ != 0) {
-#line 1974 "string.c"
- gint _tmp3_;
-#line 297 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp3_ = _result_;
-#line 297 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = _tmp3_;
-#line 1980 "string.c"
- } else {
- GCompareFunc _tmp4_;
-#line 297 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp4_ = g_strcmp0;
-#line 297 "/home/jens/Source/shotwell/src/util/string.vala"
- _tmp1_ = _tmp4_ (astr, bstr);
-#line 1987 "string.c"
- }
-#line 297 "/home/jens/Source/shotwell/src/util/string.vala"
- result = _tmp1_;
-#line 297 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 1993 "string.c"
-}
-
-
-gboolean
-string_collated_equals (void* a,
- void* b)
-{
- gboolean result = FALSE;
-#line 302 "/home/jens/Source/shotwell/src/util/string.vala"
- result = string_collated_compare (a, b) == 0;
-#line 302 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 2006 "string.c"
-}
-
-
-gboolean
-string_precollated_equals (const gchar* astr,
- const gchar* akey,
- const gchar* bstr,
- const gchar* bkey)
-{
- gboolean result = FALSE;
-#line 306 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (astr != NULL, FALSE);
-#line 306 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (akey != NULL, FALSE);
-#line 306 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (bstr != NULL, FALSE);
-#line 306 "/home/jens/Source/shotwell/src/util/string.vala"
- g_return_val_if_fail (bkey != NULL, FALSE);
-#line 307 "/home/jens/Source/shotwell/src/util/string.vala"
- result = string_precollated_compare (astr, akey, bstr, bkey) == 0;
-#line 307 "/home/jens/Source/shotwell/src/util/string.vala"
- return result;
-#line 2029 "string.c"
-}
-
-
-
diff --git a/src/util/system.c b/src/util/system.c
deleted file mode 100644
index 958256c..0000000
--- a/src/util/system.c
+++ /dev/null
@@ -1,189 +0,0 @@
-/* system.c generated by valac 0.40.4, the Vala compiler
- * generated from system.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-/* Return the directory in which Shotwell is installed, or null if uninstalled.*/
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <gio/gio.h>
-#include <glib/gstdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-
-
-
-GFile* get_sys_install_dir (GFile* exec_dir);
-#define RESOURCES_PREFIX _PREFIX
-gchar* get_nautilus_install_location (void);
-void sys_show_uri (GdkScreen* screen,
- const gchar* uri,
- GError** error);
-void show_file_in_nautilus (const gchar* filename,
- GError** error);
-
-
-GFile*
-get_sys_install_dir (GFile* exec_dir)
-{
- GFile* result = NULL;
- GFile* child = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
-#line 8 "/home/jens/Source/shotwell/src/util/system.vala"
- g_return_val_if_fail (G_IS_FILE (exec_dir), NULL);
-#line 10 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp0_ = g_file_get_child (exec_dir, "ui");
-#line 10 "/home/jens/Source/shotwell/src/util/system.vala"
- child = _tmp0_;
-#line 12 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp1_ = child;
-#line 12 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 12 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp3_ = _tmp2_;
-#line 12 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp4_ = !g_file_test (_tmp3_, G_FILE_TEST_IS_DIR | G_FILE_TEST_EXISTS);
-#line 12 "/home/jens/Source/shotwell/src/util/system.vala"
- _g_free0 (_tmp3_);
-#line 12 "/home/jens/Source/shotwell/src/util/system.vala"
- if (_tmp4_) {
-#line 65 "system.c"
- gchar* _tmp5_;
- gchar* _tmp6_;
- gboolean _tmp7_;
- GFile* _tmp8_;
-#line 14 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp5_ = g_file_get_basename (exec_dir);
-#line 14 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp6_ = _tmp5_;
-#line 14 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp7_ = g_strcmp0 (_tmp6_, "src") == 0;
-#line 14 "/home/jens/Source/shotwell/src/util/system.vala"
- _g_free0 (_tmp6_);
-#line 14 "/home/jens/Source/shotwell/src/util/system.vala"
- if (_tmp7_) {
-#line 15 "/home/jens/Source/shotwell/src/util/system.vala"
- result = NULL;
-#line 15 "/home/jens/Source/shotwell/src/util/system.vala"
- _g_object_unref0 (child);
-#line 15 "/home/jens/Source/shotwell/src/util/system.vala"
- return result;
-#line 86 "system.c"
- }
-#line 18 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp8_ = g_file_new_for_path (RESOURCES_PREFIX);
-#line 18 "/home/jens/Source/shotwell/src/util/system.vala"
- result = _tmp8_;
-#line 18 "/home/jens/Source/shotwell/src/util/system.vala"
- _g_object_unref0 (child);
-#line 18 "/home/jens/Source/shotwell/src/util/system.vala"
- return result;
-#line 96 "system.c"
- }
-#line 21 "/home/jens/Source/shotwell/src/util/system.vala"
- result = NULL;
-#line 21 "/home/jens/Source/shotwell/src/util/system.vala"
- _g_object_unref0 (child);
-#line 21 "/home/jens/Source/shotwell/src/util/system.vala"
- return result;
-#line 104 "system.c"
-}
-
-
-gchar*
-get_nautilus_install_location (void)
-{
- gchar* result = NULL;
- gchar* _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp0_ = g_find_program_in_path ("nautilus");
-#line 25 "/home/jens/Source/shotwell/src/util/system.vala"
- result = _tmp0_;
-#line 25 "/home/jens/Source/shotwell/src/util/system.vala"
- return result;
-#line 119 "system.c"
-}
-
-
-void
-sys_show_uri (GdkScreen* screen,
- const gchar* uri,
- GError** error)
-{
- GError * _inner_error_ = NULL;
-#line 28 "/home/jens/Source/shotwell/src/util/system.vala"
- g_return_if_fail (GDK_IS_SCREEN (screen));
-#line 28 "/home/jens/Source/shotwell/src/util/system.vala"
- g_return_if_fail (uri != NULL);
-#line 29 "/home/jens/Source/shotwell/src/util/system.vala"
- gtk_show_uri (screen, uri, (guint32) GDK_CURRENT_TIME, &_inner_error_);
-#line 29 "/home/jens/Source/shotwell/src/util/system.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 29 "/home/jens/Source/shotwell/src/util/system.vala"
- g_propagate_error (error, _inner_error_);
-#line 29 "/home/jens/Source/shotwell/src/util/system.vala"
- return;
-#line 141 "system.c"
- }
-}
-
-
-void
-show_file_in_nautilus (const gchar* filename,
- GError** error)
-{
- gchar* _tmp0_;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- GError * _inner_error_ = NULL;
-#line 32 "/home/jens/Source/shotwell/src/util/system.vala"
- g_return_if_fail (filename != NULL);
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp0_ = get_nautilus_install_location ();
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp1_ = _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp2_ = g_strconcat (_tmp1_, " ", NULL);
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp3_ = _tmp2_;
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp4_ = g_strconcat (_tmp3_, filename, NULL);
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _tmp5_ = _tmp4_;
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- g_spawn_command_line_async (_tmp5_, &_inner_error_);
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _g_free0 (_tmp5_);
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _g_free0 (_tmp3_);
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- _g_free0 (_tmp1_);
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- g_propagate_error (error, _inner_error_);
-#line 33 "/home/jens/Source/shotwell/src/util/system.vala"
- return;
-#line 185 "system.c"
- }
-}
-
-
-
diff --git a/src/util/system.vala b/src/util/system.vala
index 38abf1e..1e69304 100644
--- a/src/util/system.vala
+++ b/src/util/system.vala
@@ -21,15 +21,29 @@ File? get_sys_install_dir(File exec_dir) {
return null;
}
-string get_nautilus_install_location() {
- return Environment.find_program_in_path("nautilus");
+[DBus (name = "org.freedesktop.FileManager1")]
+public interface org.freedesktop.FileManager1 : Object {
+ public const string NAME = "org.freedesktop.FileManager1";
+ public const string PATH = "/org/freedesktop/FileManager1";
+
+ public abstract async void show_folders(string[] uris, string startup_id) throws IOError, DBusError;
+ public abstract async void show_items(string[] uris, string startup_id) throws IOError, DBusError;
+ public abstract async void show_item_properties(string[] uris, string startup_id) throws IOError, DBusError;
}
-void sys_show_uri(Gdk.Screen screen, string uri) throws Error {
- Gtk.show_uri(screen, uri, Gdk.CURRENT_TIME);
-}
-
-void show_file_in_nautilus(string filename) throws Error {
- GLib.Process.spawn_command_line_async(get_nautilus_install_location() + " " + filename);
+async void show_file_in_filemanager(File file) throws Error {
+ try {
+ org.freedesktop.FileManager1? manager = yield Bus.get_proxy (BusType.SESSION,
+ org.freedesktop.FileManager1.NAME,
+ org.freedesktop.FileManager1.PATH,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES |
+ DBusProxyFlags.DO_NOT_CONNECT_SIGNALS);
+ var id = "%s_%s_%d_%s".printf(Environment.get_prgname(), Environment.get_host_name(),
+ Posix.getpid(), TimeVal().to_iso8601());
+ yield manager.show_items({file.get_uri()}, id);
+ } catch (Error e) {
+ warning("Failed to launch file manager using DBus, using fall-back: %s", e.message);
+ Gtk.show_uri_on_window(AppWindow.get_instance(), file.get_parent().get_uri(), Gdk.CURRENT_TIME);
+ }
}
diff --git a/src/util/ui.c b/src/util/ui.c
deleted file mode 100644
index 98f35de..0000000
--- a/src/util/ui.c
+++ /dev/null
@@ -1,234 +0,0 @@
-/* ui.c generated by valac 0.40.4, the Vala compiler
- * generated from ui.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-
-
-#define TYPE_ADJUSTMENT_RELATION (adjustment_relation_get_type ())
-
-#define TYPE_COMPASS_POINT (compass_point_get_type ())
-
-#define TYPE_DIRECTION (direction_get_type ())
-
-typedef enum {
- ADJUSTMENT_RELATION_BELOW,
- ADJUSTMENT_RELATION_IN_RANGE,
- ADJUSTMENT_RELATION_ABOVE
-} AdjustmentRelation;
-
-typedef enum {
- COMPASS_POINT_NORTH,
- COMPASS_POINT_SOUTH,
- COMPASS_POINT_EAST,
- COMPASS_POINT_WEST
-} CompassPoint;
-
-typedef enum {
- DIRECTION_FORWARD,
- DIRECTION_BACKWARD
-} Direction;
-
-
-
-GType adjustment_relation_get_type (void) G_GNUC_CONST;
-GType compass_point_get_type (void) G_GNUC_CONST;
-GType direction_get_type (void) G_GNUC_CONST;
-SpitTransitionsDirection direction_to_transition_direction (Direction self);
-const gchar* direction_to_string (Direction self);
-void spin_event_loop (void);
-AdjustmentRelation get_adjustment_relation (GtkAdjustment* adjustment,
- gint value);
-void get_adjustment_page (GtkAdjustment* hadj,
- GtkAdjustment* vadj,
- GdkRectangle* result);
-gboolean has_only_key_modifier (GdkModifierType field,
- GdkModifierType mask);
-
-
-GType
-adjustment_relation_get_type (void)
-{
- static volatile gsize adjustment_relation_type_id__volatile = 0;
- if (g_once_init_enter (&adjustment_relation_type_id__volatile)) {
- static const GEnumValue values[] = {{ADJUSTMENT_RELATION_BELOW, "ADJUSTMENT_RELATION_BELOW", "below"}, {ADJUSTMENT_RELATION_IN_RANGE, "ADJUSTMENT_RELATION_IN_RANGE", "in-range"}, {ADJUSTMENT_RELATION_ABOVE, "ADJUSTMENT_RELATION_ABOVE", "above"}, {0, NULL, NULL}};
- GType adjustment_relation_type_id;
- adjustment_relation_type_id = g_enum_register_static ("AdjustmentRelation", values);
- g_once_init_leave (&adjustment_relation_type_id__volatile, adjustment_relation_type_id);
- }
- return adjustment_relation_type_id__volatile;
-}
-
-
-GType
-compass_point_get_type (void)
-{
- static volatile gsize compass_point_type_id__volatile = 0;
- if (g_once_init_enter (&compass_point_type_id__volatile)) {
- static const GEnumValue values[] = {{COMPASS_POINT_NORTH, "COMPASS_POINT_NORTH", "north"}, {COMPASS_POINT_SOUTH, "COMPASS_POINT_SOUTH", "south"}, {COMPASS_POINT_EAST, "COMPASS_POINT_EAST", "east"}, {COMPASS_POINT_WEST, "COMPASS_POINT_WEST", "west"}, {0, NULL, NULL}};
- GType compass_point_type_id;
- compass_point_type_id = g_enum_register_static ("CompassPoint", values);
- g_once_init_leave (&compass_point_type_id__volatile, compass_point_type_id);
- }
- return compass_point_type_id__volatile;
-}
-
-
-SpitTransitionsDirection
-direction_to_transition_direction (Direction self)
-{
- SpitTransitionsDirection result = 0;
-#line 25 "/home/jens/Source/shotwell/src/util/ui.vala"
- switch (self) {
-#line 25 "/home/jens/Source/shotwell/src/util/ui.vala"
- case DIRECTION_FORWARD:
-#line 98 "ui.c"
- {
-#line 27 "/home/jens/Source/shotwell/src/util/ui.vala"
- result = SPIT_TRANSITIONS_DIRECTION_FORWARD;
-#line 27 "/home/jens/Source/shotwell/src/util/ui.vala"
- return result;
-#line 104 "ui.c"
- }
-#line 25 "/home/jens/Source/shotwell/src/util/ui.vala"
- case DIRECTION_BACKWARD:
-#line 108 "ui.c"
- {
-#line 30 "/home/jens/Source/shotwell/src/util/ui.vala"
- result = SPIT_TRANSITIONS_DIRECTION_BACKWARD;
-#line 30 "/home/jens/Source/shotwell/src/util/ui.vala"
- return result;
-#line 114 "ui.c"
- }
- default:
- {
- GEnumValue* _tmp0_;
-#line 33 "/home/jens/Source/shotwell/src/util/ui.vala"
- _tmp0_ = g_enum_get_value (g_type_class_ref (TYPE_DIRECTION), self);
-#line 33 "/home/jens/Source/shotwell/src/util/ui.vala"
- g_error ("ui.vala:33: Unknown Direction %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL);
-#line 123 "ui.c"
- }
- }
-}
-
-
-GType
-direction_get_type (void)
-{
- static volatile gsize direction_type_id__volatile = 0;
- if (g_once_init_enter (&direction_type_id__volatile)) {
- static const GEnumValue values[] = {{DIRECTION_FORWARD, "DIRECTION_FORWARD", "forward"}, {DIRECTION_BACKWARD, "DIRECTION_BACKWARD", "backward"}, {0, NULL, NULL}};
- GType direction_type_id;
- direction_type_id = g_enum_register_static ("Direction", values);
- g_once_init_leave (&direction_type_id__volatile, direction_type_id);
- }
- return direction_type_id__volatile;
-}
-
-
-void
-spin_event_loop (void)
-{
-#line 39 "/home/jens/Source/shotwell/src/util/ui.vala"
- while (TRUE) {
-#line 39 "/home/jens/Source/shotwell/src/util/ui.vala"
- if (!gtk_events_pending ()) {
-#line 39 "/home/jens/Source/shotwell/src/util/ui.vala"
- break;
-#line 152 "ui.c"
- }
-#line 40 "/home/jens/Source/shotwell/src/util/ui.vala"
- gtk_main_iteration ();
-#line 156 "ui.c"
- }
-}
-
-
-AdjustmentRelation
-get_adjustment_relation (GtkAdjustment* adjustment,
- gint value)
-{
- AdjustmentRelation result = 0;
-#line 43 "/home/jens/Source/shotwell/src/util/ui.vala"
- g_return_val_if_fail (GTK_IS_ADJUSTMENT (adjustment), 0);
-#line 44 "/home/jens/Source/shotwell/src/util/ui.vala"
- if (value < ((gint) gtk_adjustment_get_value (adjustment))) {
-#line 45 "/home/jens/Source/shotwell/src/util/ui.vala"
- result = ADJUSTMENT_RELATION_BELOW;
-#line 45 "/home/jens/Source/shotwell/src/util/ui.vala"
- return result;
-#line 174 "ui.c"
- } else {
-#line 46 "/home/jens/Source/shotwell/src/util/ui.vala"
- if (value > ((gint) (gtk_adjustment_get_value (adjustment) + gtk_adjustment_get_page_size (adjustment)))) {
-#line 47 "/home/jens/Source/shotwell/src/util/ui.vala"
- result = ADJUSTMENT_RELATION_ABOVE;
-#line 47 "/home/jens/Source/shotwell/src/util/ui.vala"
- return result;
-#line 182 "ui.c"
- } else {
-#line 49 "/home/jens/Source/shotwell/src/util/ui.vala"
- result = ADJUSTMENT_RELATION_IN_RANGE;
-#line 49 "/home/jens/Source/shotwell/src/util/ui.vala"
- return result;
-#line 188 "ui.c"
- }
- }
-}
-
-
-void
-get_adjustment_page (GtkAdjustment* hadj,
- GtkAdjustment* vadj,
- GdkRectangle* result)
-{
- GdkRectangle rect = {0};
-#line 52 "/home/jens/Source/shotwell/src/util/ui.vala"
- g_return_if_fail (GTK_IS_ADJUSTMENT (hadj));
-#line 52 "/home/jens/Source/shotwell/src/util/ui.vala"
- g_return_if_fail (GTK_IS_ADJUSTMENT (vadj));
-#line 53 "/home/jens/Source/shotwell/src/util/ui.vala"
- memset (&rect, 0, sizeof (GdkRectangle));
-#line 54 "/home/jens/Source/shotwell/src/util/ui.vala"
- rect.x = (gint) gtk_adjustment_get_value (hadj);
-#line 55 "/home/jens/Source/shotwell/src/util/ui.vala"
- rect.y = (gint) gtk_adjustment_get_value (vadj);
-#line 56 "/home/jens/Source/shotwell/src/util/ui.vala"
- rect.width = (gint) gtk_adjustment_get_page_size (hadj);
-#line 57 "/home/jens/Source/shotwell/src/util/ui.vala"
- rect.height = (gint) gtk_adjustment_get_page_size (vadj);
-#line 59 "/home/jens/Source/shotwell/src/util/ui.vala"
- *result = rect;
-#line 59 "/home/jens/Source/shotwell/src/util/ui.vala"
- return;
-#line 218 "ui.c"
-}
-
-
-gboolean
-has_only_key_modifier (GdkModifierType field,
- GdkModifierType mask)
-{
- gboolean result = FALSE;
-#line 77 "/home/jens/Source/shotwell/src/util/ui.vala"
- result = (field & ((((((((GDK_SHIFT_MASK | GDK_CONTROL_MASK) | GDK_MOD1_MASK) | GDK_MOD3_MASK) | GDK_MOD4_MASK) | GDK_MOD5_MASK) | GDK_SUPER_MASK) | GDK_HYPER_MASK) | GDK_META_MASK)) == mask;
-#line 77 "/home/jens/Source/shotwell/src/util/ui.vala"
- return result;
-#line 231 "ui.c"
-}
-
-
-
diff --git a/src/util/ui.vala b/src/util/ui.vala
index e1c22f1..7e7348f 100644
--- a/src/util/ui.vala
+++ b/src/util/ui.vala
@@ -86,3 +86,20 @@ public bool has_only_key_modifier(Gdk.ModifierType field, Gdk.ModifierType mask)
| Gdk.ModifierType.META_MASK)) == mask;
}
+#if ENABLE_FACES
+bool is_pointer_over(Gdk.Window window) {
+ Gdk.DeviceManager? devmgr = window.get_display().get_device_manager();
+ if (devmgr == null) {
+ debug("No device for display");
+
+ return false;
+ }
+
+ int x, y;
+ devmgr.get_client_pointer().get_position(null, out x, out y);
+ //gdk_device_get_position(devmgr.get_client_pointer(), null, out x, out y);
+
+ return x >= 0 && y >= 0 && x < window.get_width() && y < window.get_height();
+}
+#endif
+